/* Daily Life Science - Stitch enterprise polish layer.
   This file intentionally does not define page layouts. Each route keeps its
   own Stitch-designed HTML; these rules only normalize spacing, overflow,
   local navigation behavior, and live-data-friendly empty states. */

:root {
  --dls-primary: #003a40;
  --dls-primary-container: #00535b;
  --dls-aqua: #83c5be;
  --dls-accent: #7209b7;
  --dls-surface: #f8fafa;
  --dls-surface-glass: rgba(255, 255, 255, 0.82);
  --dls-outline: rgba(191, 200, 202, 0.55);
  --dls-text: #191c1d;
  --dls-muted: #3f484a;
  --dls-shadow: 0 24px 70px rgba(0, 58, 64, 0.11);
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  overflow-x: hidden;
  background:
    radial-gradient(circle at 8% 10%, rgba(131, 197, 190, 0.16), transparent 34rem),
    radial-gradient(circle at 92% 22%, rgba(114, 9, 183, 0.07), transparent 36rem),
    var(--dls-surface);
}

a[href^="http://dailylifescience.org"],
a[href^="https://dailylifescience.org"],
a[href^="https://new.dailylifescience.org"] {
  pointer-events: none;
}

.glass-card,
.glass-panel,
[class*="bg-surface-glass"] {
  box-shadow: 0 18px 48px rgba(0, 58, 64, 0.07);
}

.dls-page-shell {
  max-width: 1280px;
  margin-inline: auto;
  padding-inline: clamp(1rem, 3vw, 3rem);
}

.dls-dashboard-main,
main.ml-64,
main[class*="ml-64"] {
  padding-top: max(6rem, 96px) !important;
}

aside.fixed,
aside[class*="fixed"] {
  min-height: 100vh;
}

button,
a,
input,
select,
textarea {
  min-width: 0;
}

button,
a[href] {
  touch-action: manipulation;
}

.dls-empty-state {
  border: 1px solid var(--dls-outline);
  background: var(--dls-surface-glass);
  border-radius: 2rem;
  box-shadow: var(--dls-shadow);
}

.dls-live-zero [style*="width"] {
  width: 0% !important;
}

/* Fluid shell sizing keeps the desktop layout useful on smaller laptops. */
@media (min-width: 1101px) and (max-width: 1360px) {
  .dls-shell > .dls-sidebar {
    width: clamp(15rem, 20vw, 16.875rem) !important;
    padding-inline: clamp(1rem, 1.7vw, 1.5rem) !important;
  }

  .dls-main-with-sidebar {
    margin-left: clamp(15rem, 20vw, 16.875rem) !important;
  }

  .dls-page {
    padding: clamp(1.25rem, 2.2vw, 2rem);
  }

  .dls-page .grid.lg\:grid-cols-4,
  .dls-page .grid.xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 1100px) {
  main.ml-64,
  main[class*="ml-64"],
  .dls-main-with-sidebar {
    margin-left: 0 !important;
    width: 100% !important;
    padding-inline: clamp(1rem, 4vw, 2rem) !important;
  }

  .dls-shell > aside.fixed,
  .dls-shell > aside[class*="fixed"],
  .dls-shell > .dls-sidebar {
    position: relative !important;
    width: 100% !important;
    min-height: auto;
    height: auto !important;
    top: auto !important;
    bottom: auto !important;
    padding: 1rem !important;
    overflow: visible !important;
  }

  .dls-shell > .dls-sidebar > div:first-child {
    margin-bottom: .75rem !important;
  }

  .dls-shell > .dls-sidebar > nav {
    display: flex;
    gap: .55rem;
    overflow-x: auto;
    padding: .25rem 0 .65rem;
    scrollbar-width: thin;
    scroll-snap-type: x proximity;
  }

  .dls-shell > .dls-sidebar > nav > * {
    flex: 0 0 auto;
    margin: 0 !important;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .dls-shell > .dls-sidebar > nav .dls-sidebar-link {
    min-height: 3rem;
    padding: .72rem .9rem;
  }

  .dls-shell > .dls-sidebar > nav .dls-subject-switcher {
    min-width: 12rem;
  }

  .dls-shell > .dls-sidebar > nav .dls-subject-switcher[open] {
    position: relative;
  }

  .dls-shell > .dls-sidebar > nav .dls-subject-menu {
    position: absolute;
    z-index: 80;
    width: min(20rem, calc(100vw - 2rem));
    background: #fff;
    border: 1px solid #d7e1e3;
    border-radius: 1rem;
    box-shadow: var(--dls-shadow);
  }

  /* The mobile menu is absolutely positioned. Let an opened <details>
     paint beyond its compact summary instead of clipping every option. */
  .dls-shell > .dls-sidebar > nav .dls-subject-switcher[open] {
    overflow: visible;
    z-index: 81;
  }

  .dls-shell > .dls-sidebar > div:not(:first-child):not(:has(nav)),
  .dls-shell > .dls-sidebar > nav + div {
    display: none !important;
  }

  .dls-main-with-sidebar > .sticky > div {
    min-height: 5rem;
    height: auto !important;
    flex-wrap: wrap;
    padding-block: .75rem;
  }

  .dls-main-with-sidebar > .sticky > div > :first-child {
    flex: 1 1 22rem;
    max-width: none;
  }

  .dls-page,
  .dls-page-shell {
    max-width: 100%;
  }

  .dls-page {
    padding: clamp(1rem, 3vw, 1.75rem);
  }

  .dls-page > *,
  .dls-section,
  .glass-card,
  .glass-panel {
    min-width: 0;
    max-width: 100%;
  }

  .dls-page :is(p, li, td, th, label, input, select, textarea, button, a) {
    font-size: max(0.925rem, 14px);
    overflow-wrap: anywhere;
  }

  .dls-page :is(img, video, canvas, iframe) {
    max-width: 100%;
  }

  .dls-page .grid.lg\:grid-cols-4,
  .dls-page .grid.xl\:grid-cols-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  .dls-main-with-sidebar {
    padding-inline: 0 !important;
  }

  .dls-main-with-sidebar > .sticky > div > :first-child {
    flex-basis: 100%;
  }

  .dls-main-with-sidebar > .sticky > div > .flex {
    width: 100%;
    overflow-x: auto;
    padding-bottom: .15rem;
  }

  .dls-page .grid.lg\:grid-cols-4,
  .dls-page .grid.xl\:grid-cols-4 {
    grid-template-columns: 1fr !important;
  }

  .dls-page :is(.dls-section, .glass-card, .glass-panel) {
    border-radius: clamp(1rem, 5vw, 1.5rem);
  }

  .dls-action-modal,
  .dls-school-auth-modal {
    align-items: end;
    padding: .5rem;
  }

  .dls-action-card,
  .dls-school-auth-card {
    width: 100%;
    max-height: calc(100dvh - 1rem);
    border-radius: 1.5rem 1.5rem 1rem 1rem;
    padding: 1.25rem;
  }

  .dls-action-card h2,
  .dls-school-auth-card h2 {
    font-size: clamp(2rem, 10vw, 3rem);
    line-height: 1.05;
  }
}

@media (max-width: 520px) {
  .dls-shell > .dls-sidebar {
    padding: .75rem !important;
  }

  .dls-shell > .dls-sidebar > div:first-child {
    transform: scale(.92);
    transform-origin: left center;
  }

  .dls-shell > .dls-sidebar > nav .dls-sidebar-link {
    min-height: 2.75rem;
    padding: .62rem .78rem;
  }

  .dls-main-with-sidebar > .sticky > div {
    padding-inline: .75rem !important;
  }

  .dls-main-with-sidebar > .sticky .dls-button-primary,
  .dls-main-with-sidebar > .sticky .dls-button-secondary {
    padding: .72rem .85rem;
  }

  .dls-page {
    padding: .75rem;
  }

  .dls-page :is(p, li, td, th, label, input, select, textarea, button, a) {
    font-size: max(.95rem, 15px);
  }
}

/* Accessible mobile navigation shared by every public page and role dashboard. */
.dls-mobile-nav-toggle,
.dls-mobile-nav-close,
.dls-mobile-nav-backdrop,
.dls-public-mobile-navigation {
  display: none;
}

@media (max-width: 1100px) {
  html.dls-mobile-nav-open,
  html.dls-mobile-nav-open body {
    overflow: hidden !important;
  }

  .dls-mobile-nav-toggle {
    position: fixed;
    top: max(.75rem, env(safe-area-inset-top));
    left: max(.75rem, env(safe-area-inset-left));
    z-index: 1002;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-width: 3rem;
    min-height: 3rem;
    padding: .65rem .9rem;
    color: #fff;
    background: var(--dls-primary);
    border: 1px solid rgba(255, 255, 255, .3);
    border-radius: 999px;
    box-shadow: 0 12px 32px rgba(0, 58, 64, .24);
  }

  .dls-mobile-nav-toggle-label {
    font-weight: 800;
    font-size: .9rem;
  }

  .dls-mobile-nav-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    color: var(--dls-primary);
    background: #edf9f9;
    border: 1px solid #c8dddd;
    border-radius: 999px;
  }

  .dls-mobile-nav-backdrop {
    position: fixed;
    inset: 0;
    z-index: 999;
    display: block;
    width: 100%;
    height: 100%;
    padding: 0;
    background: rgba(7, 20, 47, .46);
    border: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .dls-mobile-nav-backdrop[hidden] {
    display: none;
  }

  .dls-shell > aside.fixed,
  .dls-shell > aside[class*="fixed"],
  .dls-shell > .dls-sidebar {
    position: fixed !important;
    inset: 0 auto 0 0 !important;
    z-index: 1001 !important;
    width: min(22rem, 88vw) !important;
    min-height: 100dvh !important;
    height: 100dvh !important;
    padding: 1.25rem !important;
    padding-top: max(1.25rem, env(safe-area-inset-top)) !important;
    overflow: auto !important;
    color: var(--dls-primary) !important;
    background: #fff !important;
    opacity: 1 !important;
    filter: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    transform: translateX(-105%);
    transition: transform 220ms ease;
    box-shadow: 22px 0 55px rgba(0, 58, 64, .2);
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  html.dls-mobile-nav-open .dls-shell > .dls-sidebar {
    transform: none;
  }

  .dls-shell > .dls-sidebar > div:first-of-type {
    padding-right: 3rem;
    margin-bottom: 1.25rem !important;
  }

  .dls-shell > .dls-sidebar > nav {
    display: grid;
    gap: .35rem;
    overflow: visible;
    padding: 0 0 1rem;
    scroll-snap-type: none;
  }

  .dls-shell > .dls-sidebar > nav > * {
    width: 100%;
    white-space: normal;
  }

  .dls-shell > .dls-sidebar > nav .dls-sidebar-link {
    min-height: 3.25rem;
    padding: .8rem 1rem;
  }

  .dls-shell > .dls-sidebar > div:not(:first-child):not(:has(nav)),
  .dls-shell > .dls-sidebar > nav + div {
    display: block !important;
  }

  .dls-main-with-sidebar > .sticky {
    padding-left: 4.5rem;
  }

  .dls-public-mobile-navigation {
    position: absolute;
    top: calc(100% + .5rem);
    right: 1rem;
    left: 1rem;
    z-index: 1001;
    display: grid;
    gap: .25rem;
    max-height: calc(100dvh - 7rem);
    padding: .75rem;
    overflow: auto;
    color: var(--dls-primary);
    background: #fff;
    border: 1px solid var(--dls-outline);
    border-radius: 1.25rem;
    box-shadow: var(--dls-shadow);
    opacity: 0;
    visibility: hidden;
    filter: none;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    transform: translateY(-.5rem);
    transition: opacity 160ms ease, transform 160ms ease, visibility 160ms;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
  }

  html.dls-mobile-nav-open .dls-public-mobile-navigation {
    opacity: 1;
    visibility: visible;
    transform: none;
  }

  .dls-public-mobile-navigation a {
    display: flex;
    align-items: center;
    min-height: 3rem;
    padding: .75rem 1rem;
    color: var(--dls-primary);
    font-weight: 800;
    border-radius: .85rem;
  }

  .dls-public-mobile-navigation a:hover,
  .dls-public-mobile-navigation a:focus-visible {
    background: #e9fbfc;
    outline: none;
  }
}

@media (max-width: 520px) {
  .dls-mobile-nav-toggle {
    width: 3rem;
    padding-inline: 0;
  }

  .dls-mobile-nav-toggle-label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
  }

  .dls-main-with-sidebar > .sticky {
    padding-left: 3.75rem;
  }
}


/* Stitch Science+Math modal forms used by dashboard actions. */
.dls-action-modal.is-hidden { display: none; }
.dls-action-modal { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: clamp(1rem, 3vw, 3rem); }
.dls-action-backdrop { position: absolute; inset: 0; background: rgba(7, 20, 47, 0.38); backdrop-filter: blur(14px); }
.dls-action-card {
  position: relative;
  width: min(920px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 2.5rem;
  border: 1px solid rgba(191, 200, 202, 0.72);
  background:
    radial-gradient(circle at 8% 10%, rgba(131, 197, 190, 0.22), transparent 18rem),
    radial-gradient(circle at 100% 0%, rgba(114, 9, 183, 0.08), transparent 20rem),
    rgba(255, 255, 255, 0.96);
  box-shadow: 0 44px 120px rgba(0, 58, 64, 0.28);
  padding: clamp(1.5rem, 4vw, 3.75rem);
}
.dls-action-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 3.25rem;
  height: 3.25rem;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: #eef7f8;
  color: var(--dls-primary);
  font-size: 2rem;
  font-weight: 900;
  cursor: pointer;
}
.dls-action-kicker {
  color: #008f83;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 1rem;
}
.dls-action-card h2 {
  margin: 0;
  color: #07142f;
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: clamp(2.6rem, 6vw, 5rem);
  line-height: 0.98;
  letter-spacing: -0.045em;
}
.dls-action-card p {
  color: #52627c;
  font-size: clamp(1rem, 2vw, 1.35rem);
  line-height: 1.55;
  margin: 1rem 0 0;
}
.dls-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2rem;
}
.dls-action-field { display: grid; gap: .55rem; }
.dls-action-field:has(textarea) { grid-column: 1 / -1; }
.dls-action-field span { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #24324a; font-weight: 900; }
.dls-action-field em,
.dls-action-field small {
  font-style: normal;
  border-radius: 999px;
  padding: .25rem .55rem;
  font-size: .68rem;
  letter-spacing: .05em;
  text-transform: uppercase;
}
.dls-action-field em { background: rgba(0, 191, 166, .14); color: #006b62; }
.dls-action-field small { background: rgba(82, 98, 124, .08); color: #52627c; }
.dls-action-field input,
.dls-action-field select,
.dls-action-field textarea {
  width: 100%;
  border: 2px solid #dbe7ea;
  border-radius: 1.35rem;
  background: #fff;
  color: #07142f;
  font-weight: 800;
  padding: 1rem 1.1rem;
  outline: none;
  box-shadow: 0 10px 30px rgba(0, 58, 64, .05);
}
.dls-action-field textarea { resize: vertical; min-height: 7.5rem; }
.dls-action-field input:focus,
.dls-action-field select:focus,
.dls-action-field textarea:focus { border-color: #00bfa6; box-shadow: 0 0 0 5px rgba(0, 191, 166, .14); }
.dls-action-row { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }
.dls-action-primary,
.dls-action-secondary {
  border: 0;
  border-radius: 999px;
  padding: 1rem 1.65rem;
  font-weight: 900;
  font-size: 1rem;
  cursor: pointer;
}
.dls-action-primary { color: #fff; background: linear-gradient(135deg, #00bfa6, #1f8fff); box-shadow: 0 18px 42px rgba(31, 143, 255, .22); }
.dls-action-secondary { color: #24324a; background: #eef3f6; }
.dls-action-toast {
  position: fixed;
  right: 1.5rem;
  bottom: 1.5rem;
  z-index: 10000;
  transform: translateY(120%);
  opacity: 0;
  transition: .25s ease;
  border-radius: 999px;
  background: #003a40;
  color: #fff;
  font-weight: 900;
  padding: 1rem 1.35rem;
  box-shadow: 0 24px 60px rgba(0,58,64,.25);
}
.dls-action-toast.is-visible { transform: translateY(0); opacity: 1; }
@media (max-width: 760px) {
  .dls-action-fields { grid-template-columns: 1fr; }
  .dls-action-card { border-radius: 1.75rem; }
}

/* Stitch Science+Math full-page forms used inside dashboard workspaces. */
.dls-stitch-form {
  width: 100%;
  max-width: 980px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.15rem;
  margin-top: 1.35rem;
  text-align: left;
}
.dls-governance-form,
.dls-phase78-form,
.dls-phase910-search-form,
.dls-phase910-settings-form,
.dls-p1-form-grid,
.dls-auth-form {
  width: 100%;
  display: grid;
  gap: 1rem;
  text-align: left;
}
.dls-phase78-form,
.dls-p1-form-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.dls-governance-form label,
.dls-phase78-form label,
.dls-phase910-settings-form label,
.dls-p1-form-grid label,
.dls-auth-form label {
  display: grid;
  gap: .55rem;
  color: #24324a;
  font-weight: 900;
}
.dls-governance-form label:has(textarea),
.dls-phase78-form .wide,
.dls-p1-form-grid .wide {
  grid-column: 1 / -1;
}
.dls-governance-form input,
.dls-governance-form select,
.dls-governance-form textarea,
.dls-phase78-form input,
.dls-phase78-form select,
.dls-phase78-form textarea,
.dls-phase910-search-form input,
.dls-phase910-settings-form input:not([type="checkbox"]),
.dls-phase910-settings-form select,
.dls-p1-form-grid input,
.dls-p1-form-grid select,
.dls-p1-form-grid textarea,
.dls-auth-form input,
.dls-auth-form select,
.dls-auth-form textarea {
  width: 100%;
  border: 2px solid #dbe7ea !important;
  border-radius: 1.35rem !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #07142f;
  font-weight: 850;
  padding: 1rem 1.1rem !important;
  outline: none;
  box-shadow: 0 14px 34px rgba(0, 58, 64, .06);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.dls-governance-form textarea,
.dls-phase78-form textarea,
.dls-p1-form-grid textarea,
.dls-auth-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.dls-governance-form input:focus,
.dls-governance-form select:focus,
.dls-governance-form textarea:focus,
.dls-phase78-form input:focus,
.dls-phase78-form select:focus,
.dls-phase78-form textarea:focus,
.dls-phase910-search-form input:focus,
.dls-phase910-settings-form input:not([type="checkbox"]):focus,
.dls-phase910-settings-form select:focus,
.dls-p1-form-grid input:focus,
.dls-p1-form-grid select:focus,
.dls-p1-form-grid textarea:focus,
.dls-auth-form input:focus,
.dls-auth-form select:focus,
.dls-auth-form textarea:focus {
  border-color: #00bfa6 !important;
  box-shadow: 0 0 0 5px rgba(0, 191, 166, .14), 0 18px 42px rgba(0, 58, 64, .08);
}
.dls-governance-form button,
.dls-phase78-form button,
.dls-phase910-search-form button,
.dls-phase910-settings-form button,
.dls-p1-form-grid button,
.dls-auth-form button {
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 3.15rem;
  padding: .9rem 1.45rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, #00bfa6, #1f8fff) !important;
  box-shadow: 0 18px 42px rgba(31, 143, 255, .22);
  font-weight: 1000 !important;
  cursor: pointer;
}
.dls-phase78-actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  align-items: center;
}
.dls-phase910-settings-form label:has(input[type="checkbox"]) {
  display: flex;
  align-items: center;
  gap: .75rem;
  border: 1px solid rgba(0, 89, 91, .13);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, .92);
  padding: .9rem 1rem;
}
.dls-phase910-settings-form input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: #00bfa6;
}
.dls-stitch-form label,
.dls-stitch-form fieldset {
  color: #24324a;
  font-weight: 900;
}
.dls-stitch-form label {
  display: grid;
  gap: .6rem;
}
.dls-stitch-form label:has(textarea),
.dls-stitch-form label:has(input[name="standardsText"]),
.dls-stitch-form fieldset,
.dls-stitch-form > div:has(button[type="submit"]) {
  grid-column: 1 / -1;
}
.dls-stitch-form label > span,
.dls-stitch-form legend {
  font-size: .78rem;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.dls-stitch-form label > span span,
.dls-stitch-form label > span .text-primary,
.dls-stitch-form label > span .text-on-surface-variant {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  padding: .24rem .55rem;
  margin-left: .45rem;
  background: rgba(0, 191, 166, .13);
  color: #006b62;
  font-size: .65rem;
  font-weight: 1000;
  letter-spacing: .08em;
}
.dls-stitch-form input,
.dls-stitch-form select,
.dls-stitch-form textarea {
  width: 100%;
  border: 2px solid #dbe7ea !important;
  border-radius: 1.35rem !important;
  background: rgba(255, 255, 255, .96) !important;
  color: #07142f;
  font-weight: 850;
  padding: 1rem 1.1rem !important;
  outline: none;
  box-shadow: 0 14px 34px rgba(0, 58, 64, .06);
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.dls-stitch-form textarea {
  min-height: 8rem;
  resize: vertical;
}
.dls-stitch-form input:focus,
.dls-stitch-form select:focus,
.dls-stitch-form textarea:focus {
  border-color: #00bfa6 !important;
  box-shadow: 0 0 0 5px rgba(0, 191, 166, .14), 0 18px 42px rgba(0, 58, 64, .08);
}
.dls-stitch-form fieldset {
  border: 1px solid rgba(0, 89, 91, .16) !important;
  border-radius: 1.75rem !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(131, 197, 190, .17), transparent 13rem),
    rgba(255, 255, 255, .82) !important;
  padding: 1.2rem !important;
  box-shadow: 0 16px 34px rgba(13, 94, 99, .08);
}
.dls-stitch-form fieldset > div {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)) !important;
  gap: .85rem !important;
  margin-top: .85rem !important;
}
.dls-stitch-form fieldset label {
  display: flex !important;
  align-items: center;
  gap: .75rem;
  border: 1px solid rgba(0, 89, 91, .13) !important;
  border-radius: 1.15rem !important;
  background: rgba(255, 255, 255, .92) !important;
  color: #24324a !important;
  padding: .9rem 1rem !important;
  box-shadow: 0 10px 24px rgba(0, 58, 64, .04);
}
.dls-stitch-form input[type="checkbox"] {
  width: 1.1rem !important;
  height: 1.1rem !important;
  padding: 0 !important;
  border-radius: .32rem !important;
  accent-color: #00bfa6;
  box-shadow: none;
}
.dls-stitch-form > div:has(button[type="submit"]) {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem !important;
  margin-top: .4rem;
}
.dls-stitch-form button[type="submit"],
.dls-stitch-submit {
  border: 0 !important;
  border-radius: 999px !important;
  min-height: 3.25rem;
  padding: .95rem 1.55rem !important;
  color: #fff !important;
  background: linear-gradient(135deg, #00bfa6, #1f8fff) !important;
  box-shadow: 0 18px 42px rgba(31, 143, 255, .22);
  font-weight: 1000 !important;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.dls-stitch-form button[name="draft"],
.dls-stitch-form .dls-stitch-secondary {
  color: #006b62 !important;
  background: rgba(255, 255, 255, .9) !important;
  border: 2px solid rgba(0, 191, 166, .24) !important;
  box-shadow: 0 12px 28px rgba(0, 58, 64, .07);
}
.dls-stitch-form [data-dls-form-message] {
  margin: 0;
  color: #006b62 !important;
  font-weight: 1000;
}
.dls-stitch-form [data-dls-form-message].text-red-700 {
  color: #ba1a1a !important;
}
@media (max-width: 760px) {
  .dls-stitch-form { grid-template-columns: 1fr; }
}
/* Stitch Science+Math saved-record cards for form-driven pages */
.dls-record-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.15rem;
  margin-top: 1.75rem;
  text-align: left;
}
.dls-record-card {
  border: 1px solid rgba(0, 89, 91, 0.16);
  border-radius: 1.45rem;
  background: linear-gradient(145deg, rgba(255,255,255,0.96), rgba(236,253,251,0.9));
  box-shadow: 0 18px 38px rgba(13, 94, 99, 0.10);
  padding: 1.15rem;
  display: grid;
  gap: 0.85rem;
}
.dls-record-card small {
  display: block;
  color: #688092;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 0.18rem;
}
.dls-record-card strong {
  color: #071329;
  font-size: 1rem;
  font-weight: 900;
  line-height: 1.25;
}


/* Topic Library Science/Math switcher */
.dls-topic-switcher-control {
  display: inline-flex;
  gap: .45rem;
  padding: .45rem;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(191,200,202,.68);
  box-shadow: 0 16px 42px rgba(0,58,64,.08);
}
.dls-topic-switcher-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 999px;
  padding: .85rem 1.1rem;
  background: transparent;
  color: #3f484a;
  font-weight: 900;
  cursor: pointer;
  transition: transform .2s ease, background .2s ease, color .2s ease, box-shadow .2s ease;
}
.dls-topic-switcher-button strong {
  min-width: 1.75rem;
  height: 1.75rem;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(0,83,91,.08);
  color: inherit;
  font-size: .8rem;
}
.dls-topic-switcher-button:hover { transform: translateY(-1px); }
.dls-topic-switcher-button.is-active {
  background: linear-gradient(135deg, #003a40, #2588f3);
  color: #fff;
  box-shadow: 0 14px 34px rgba(31,143,255,.22);
}
.dls-topic-switcher-button.is-active strong { background: rgba(255,255,255,.18); color: #fff; }
@media (max-width: 640px) {
  .dls-topic-switcher-control { width: 100%; display: grid; grid-template-columns: 1fr 1fr; }
  .dls-topic-switcher-button { padding-inline: .75rem; }
}

/* Compact topic learning workspace */
.dls-topic-compact-layout {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 320px !important;
  gap: 1.25rem !important;
  align-items: start;
}
.dls-topic-compact-layout > nav {
  grid-column: 1 / -1;
  position: sticky !important;
  top: 5.25rem !important;
  z-index: 24;
  display: flex !important;
  gap: .55rem;
  overflow-x: auto;
  padding: .65rem !important;
  border-radius: 1.55rem !important;
  background: rgba(255,255,255,.9) !important;
  border: 1px solid rgba(191,200,202,.56) !important;
  box-shadow: 0 18px 48px rgba(0,58,64,.08) !important;
  scrollbar-width: thin;
}
.dls-topic-compact-layout > nav .dls-sidebar-link {
  flex: 0 0 auto;
  min-height: 2.85rem;
  padding: .72rem .95rem;
  border-radius: 999px;
  white-space: nowrap;
  background: rgba(242,246,247,.72);
  border: 1px solid transparent;
}
.dls-topic-compact-layout > nav .dls-sidebar-link.active {
  background: linear-gradient(135deg, #003a40, #2588f3);
  color: #fff;
  box-shadow: 0 12px 30px rgba(37,136,243,.18);
}
.dls-topic-compact-layout > .space-y-5 {
  display: block;
  min-width: 0;
}
.dls-topic-compact-panel {
  display: none;
  min-height: 540px;
  animation: dlsTopicPanelIn .22s ease-out;
}
.dls-topic-compact-panel.is-active {
  display: block;
}
.dls-topic-compact-panel > .dls-pill {
  margin-bottom: 1rem;
}
.dls-topic-compact-panel h2 {
  font-size: clamp(1.8rem, 3vw, 2.65rem);
}
.dls-topic-compact-panel .grid {
  align-items: stretch;
}
.dls-topic-compact-panel .rounded-2xl {
  min-height: 0;
}
.dls-topic-compact-progress {
  top: 12.25rem !important;
}
.dls-topic-compact-progress .dls-button-primary,
.dls-topic-compact-progress .dls-button-secondary {
  min-height: 3rem;
}
@keyframes dlsTopicPanelIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
@media (max-width: 1100px) {
  .dls-topic-compact-layout {
    grid-template-columns: 1fr !important;
  }
  .dls-topic-compact-layout > nav,
  .dls-topic-compact-progress {
    position: relative !important;
    top: auto !important;
  }
  .dls-topic-compact-panel {
    min-height: auto;
  }
}


/* School code onboarding modal */
.dls-school-auth-modal,
.dls-action-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}
.dls-school-auth-modal.is-hidden,
.dls-action-modal.is-hidden { display: none; }
.dls-school-auth-backdrop,
.dls-action-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, .46);
  backdrop-filter: blur(12px);
}
.dls-school-auth-card,
.dls-action-card {
  position: relative;
  z-index: 1;
  width: min(940px, 100%);
  max-height: min(92vh, 920px);
  overflow: auto;
  border-radius: 2.4rem;
  background: linear-gradient(135deg, rgba(255,255,255,.98), rgba(240,255,253,.96));
  border: 1px solid rgba(191,200,202,.72);
  box-shadow: 0 34px 100px rgba(0,58,64,.22);
  padding: clamp(1.4rem, 4vw, 2.6rem);
}
.dls-school-auth-card h2,
.dls-action-card h2 {
  font-family: Manrope, Inter, sans-serif;
  color: #003a40;
  font-weight: 900;
  font-size: clamp(2rem, 5vw, 4rem);
  letter-spacing: -.03em;
  margin: .35rem 0 .65rem;
}
.dls-school-auth-card p,
.dls-action-card p { color: #3f484a; font-weight: 650; line-height: 1.55; }
.dls-action-kicker {
  color: #00a996;
  font-weight: 900;
  letter-spacing: .18em;
  text-transform: uppercase;
}
.dls-action-close {
  position: absolute;
  right: 1.35rem;
  top: 1.35rem;
  width: 3.5rem;
  height: 3.5rem;
  border-radius: 999px;
  border: 0;
  background: #eef7fb;
  color: #0f172a;
  font-size: 2.5rem;
  font-weight: 900;
  line-height: 1;
}
.dls-school-auth-tabs,
.dls-school-auth-switch,
.dls-school-auth-providers,
.dls-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: .8rem;
  margin-top: 1.15rem;
}
.dls-school-auth-tabs button,
.dls-school-auth-switch button,
.dls-school-auth-providers button,
.dls-action-secondary,
.dls-action-primary {
  border-radius: 999px;
  border: 1px solid #d7e1e3;
  background: #fff;
  color: #003a40;
  font-weight: 900;
  padding: .9rem 1.25rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  box-shadow: 0 10px 28px rgba(0,58,64,.06);
}
.dls-school-auth-tabs button.active,
.dls-school-auth-switch button.active,
.dls-action-primary {
  background: linear-gradient(135deg, #00bda8, #2588f3);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(37,136,243,.2);
}
.dls-school-auth-form,
.dls-action-fields {
  margin-top: 1.25rem;
  display: grid;
  gap: 1rem;
}
.dls-school-form-grid,
.dls-action-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.dls-school-auth-form label,
.dls-action-field {
  color: #243237;
  font-weight: 900;
  display: grid;
  gap: .45rem;
}
.dls-school-auth-form small,
.dls-action-field small,
.dls-action-field em {
  color: #69787c;
  font-size: .78rem;
  font-style: normal;
  margin-left: .35rem;
}
.dls-school-auth-form input,
.dls-school-auth-form select,
.dls-action-field input,
.dls-action-field select,
.dls-action-field textarea {
  min-height: 3.55rem;
  border-radius: 1.25rem;
  border: 1px solid #d7e1e3;
  background: #fff;
  padding: .85rem 1rem;
  font-weight: 750;
  color: #003a40;
  outline: none;
}
.dls-school-auth-form input:focus,
.dls-school-auth-form select:focus,
.dls-action-field input:focus,
.dls-action-field select:focus,
.dls-action-field textarea:focus {
  border-color: #00bda8;
  box-shadow: 0 0 0 4px rgba(0,189,168,.14);
}
.dls-school-auth-form-title {
  font-family: Manrope, Inter, sans-serif;
  color: #003a40;
  font-size: 1.35rem;
  font-weight: 900;
}
.dls-school-auth-form > .dls-action-primary { justify-self: end; margin-top: .4rem; }
.dls-school-auth-note {
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border-radius: 1.25rem;
  background: rgba(131,197,190,.18);
  color: #003a40 !important;
}
.dls-oauth-dot.google {
  width: 1.8rem;
  height: 1.8rem;
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: #fff;
  color: #4285f4;
  font-weight: 900;
  border: 1px solid #d7e1e3;
}
.dls-oauth-dot.microsoft {
  width: 1.55rem;
  height: 1.55rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .12rem;
}
.dls-oauth-dot.microsoft i:nth-child(1){background:#f35325}.dls-oauth-dot.microsoft i:nth-child(2){background:#81bc06}.dls-oauth-dot.microsoft i:nth-child(3){background:#05a6f0}.dls-oauth-dot.microsoft i:nth-child(4){background:#ffba08}
.dls-action-toast {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translate(-50%, 1rem);
  opacity: 0;
  pointer-events: none;
  z-index: 10000;
  background: #003a40;
  color: #fff;
  border-radius: 999px;
  padding: .85rem 1.2rem;
  font-weight: 900;
  box-shadow: 0 18px 50px rgba(0,58,64,.22);
  transition: opacity .2s ease, transform .2s ease;
}
.dls-action-toast.is-visible { opacity: 1; transform: translate(-50%, 0); }
@media (max-width: 760px) {
  .dls-school-form-grid,
  .dls-action-fields { grid-template-columns: 1fr; }
  .dls-school-auth-card,
  .dls-action-card { border-radius: 1.6rem; padding: 1.2rem; }
}


/* Role-aware Subject switcher for dashboard sidebars */
.dls-subject-switcher{margin:.45rem 0;border-radius:1.25rem;border:1px solid rgba(0,83,91,.10);background:rgba(255,255,255,.62);overflow:hidden;}
.dls-subject-switcher>summary,.dls-subject-math>summary{display:flex;align-items:center;gap:.75rem;cursor:pointer;list-style:none;color:#3f484a;font-weight:800;padding:.85rem 1rem;}
.dls-subject-switcher>summary::-webkit-details-marker,.dls-subject-math>summary::-webkit-details-marker{display:none;}
.dls-subject-switcher[open]>summary{background:#e9fbfc;color:#003a40;}
.dls-subject-caret{margin-left:auto;transition:transform .2s ease;}
.dls-subject-switcher[open]>summary .dls-subject-caret,.dls-subject-math[open]>summary .dls-subject-caret{transform:rotate(180deg);}
.dls-subject-menu{display:grid;gap:.45rem;padding:.55rem;}
.dls-subject-option,.dls-subject-course{display:flex;align-items:center;gap:.7rem;border-radius:1rem;padding:.72rem .82rem;color:#003a40;text-decoration:none;font-weight:800;background:rgba(255,255,255,.76);border:1px solid rgba(191,200,202,.42);}
.dls-subject-option:hover,.dls-subject-course:hover{background:#f0fbfc;border-color:rgba(0,83,91,.2);}
.dls-subject-option small,.dls-subject-math small{display:block;color:#52627c;font-size:.72rem;font-weight:800;line-height:1.2;margin-top:.12rem;}
.dls-subject-math{border-radius:1rem;background:rgba(248,250,250,.86);border:1px solid rgba(191,200,202,.42);}
.dls-subject-math>summary{padding:.72rem .82rem;}
.dls-subject-course{margin:.2rem .45rem .55rem .45rem;background:#fff;}
.dls-global-search-host{position:relative;isolation:isolate}
.dls-global-search-host .dls-input::-webkit-search-cancel-button{cursor:pointer}
.dls-global-search-panel{position:absolute;z-index:200;left:0;right:0;top:calc(100% + .7rem);max-height:min(70vh,580px);overflow:auto;border:1px solid #d7e1e3;border-radius:1.35rem;background:rgba(255,255,255,.98);box-shadow:0 24px 70px rgba(0,58,64,.2);padding:.7rem}
.dls-global-search-panel[hidden]{display:none}
.dls-global-search-summary{padding:.7rem .8rem .85rem;color:#617074;font-size:.8rem;font-weight:700;border-bottom:1px solid #e4ebec}
.dls-global-search-summary strong{color:#003a40}
.dls-global-search-groups{display:grid;gap:.65rem;padding-top:.6rem}
.dls-global-search-group h3{padding:.35rem .65rem;color:#007c87;font-size:.7rem;font-weight:900;letter-spacing:.14em;text-transform:uppercase}
.dls-global-search-group a{display:grid;grid-template-columns:2.25rem minmax(0,1fr) 1.5rem;align-items:center;gap:.65rem;border-radius:1rem;padding:.72rem .75rem;color:#003a40;text-decoration:none;transition:background .15s ease,transform .15s ease}
.dls-global-search-group a:hover,.dls-global-search-group a.is-active{background:#e9fbfc;transform:translateX(2px)}
.dls-global-search-group a>.material-symbols-outlined:first-child{display:grid;place-items:center;width:2.1rem;height:2.1rem;border-radius:.75rem;background:#e8f4f4;color:#006b73;font-size:1.15rem}
.dls-global-search-group a strong,.dls-global-search-group a small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.dls-global-search-group a strong{font-size:.88rem;font-weight:900}
.dls-global-search-group a small{margin-top:.12rem;color:#68777a;font-size:.74rem;font-weight:650}
.dls-global-search-open{color:#718084;font-size:1.1rem}
.dls-global-search-message{display:grid;gap:.25rem;justify-items:center;padding:1.35rem;text-align:center;color:#667578;font-size:.84rem}
.dls-global-search-message strong{color:#003a40;font-size:.95rem}
.dls-global-search-loading{grid-template-columns:auto auto;justify-content:center;align-items:center}
.dls-global-search-loading span{width:.9rem;height:.9rem;border:2px solid #b9d9da;border-top-color:#007c87;border-radius:999px;animation:dls-global-search-spin .65s linear infinite}
@keyframes dls-global-search-spin{to{transform:rotate(360deg)}}

/* A high-contrast checkmark makes selected options unmistakable at a glance. */
input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  width: 1.65rem !important;
  height: 1.65rem !important;
  margin: 0;
  padding: 0 !important;
  cursor: pointer;
  border: 3px solid #315c64 !important;
  border-radius: .4rem !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 58, 64, .18) !important;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease, transform .14s ease;
}
input[type="checkbox"]:hover { border-color: #007f76 !important; }
input[type="checkbox"]:checked {
  border-color: #006c63 !important;
  background-color: #007f76 !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M4 12.5 9.2 18 20 6' fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='4'/%3E%3C/svg%3E") !important;
  background-position: center;
  background-repeat: no-repeat;
  background-size: 1.15rem;
  box-shadow: 0 0 0 3px rgba(0, 191, 166, .24), 0 2px 5px rgba(0, 58, 64, .26) !important;
}
input[type="checkbox"]:focus-visible {
  outline: 3px solid #1f8fff;
  outline-offset: 3px;
}
input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .55; }

/* Recipient choices are radio controls, so use an equally visible selected state. */
input[type="radio"] {
  appearance: none;
  -webkit-appearance: none;
  display: inline-grid;
  place-content: center;
  flex: 0 0 auto;
  width: 1.65rem !important;
  height: 1.65rem !important;
  margin: 0;
  padding: 0 !important;
  cursor: pointer;
  border: 3px solid #315c64 !important;
  border-radius: 50% !important;
  background: #fff !important;
  box-shadow: 0 1px 2px rgba(0, 58, 64, .18) !important;
  transition: background-color .14s ease, border-color .14s ease, box-shadow .14s ease;
}
input[type="radio"]:hover { border-color: #007f76 !important; }
input[type="radio"]:checked {
  border: .42rem solid #007f76 !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(0, 191, 166, .24), 0 2px 5px rgba(0, 58, 64, .26) !important;
}
input[type="radio"]:focus-visible {
  outline: 3px solid #1f8fff;
  outline-offset: 3px;
}
input[type="radio"]:disabled { cursor: not-allowed; opacity: .55; }
@media (forced-colors: active) {
  input[type="checkbox"], input[type="radio"] { appearance: auto; -webkit-appearance: auto; }
}
@media(max-width:760px){.dls-global-search-panel{position:fixed;left:1rem;right:1rem;top:5rem;max-height:calc(100vh - 6rem)}}

/* Master control plane -----------------------------------------------------
   A deliberately restrained, data-forward system for platform operations.
   Scoped by the master navigation so learning and teacher surfaces retain
   their own visual language. */
body:has(.dls-sidebar a[href="/master-dashboard"]) { background: #f6f8fa !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-shell { background: #f6f8fa !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .soft-grid { background-image: none !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar {
  width: 272px !important; padding: 20px 14px !important; background: #fff !important;
  border-color: #e5e9ee !important; box-shadow: none !important;
}
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar > div:first-child { margin: 0 8px 26px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar > div:first-child > a > span:first-child {
  width: 36px !important; height: 36px !important; border-radius: 9px !important; box-shadow: none !important;
}
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar > div:first-child > a > span:last-child { font-size: 16px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar nav { display: grid; gap: 3px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar-link {
  min-height: 40px; border-radius: 7px !important; padding: 9px 10px !important;
  color: #52606d !important; font-size: 13px !important; font-weight: 700 !important;
}
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar-link .material-symbols-outlined { font-size: 19px !important; color: #74808c; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar-link:hover { background: #f1f7f7 !important; color: #075f63 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar-link.active {
  background: #e2f2f1 !important; color: #075f63 !important; box-shadow: inset 3px 0 0 #007c7a;
}
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar-link.active .material-symbols-outlined { color: #007c7a !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar .mt-10 { margin: auto 6px 4px !important; border-radius: 8px !important; padding: 14px !important; background: #f0f7f6 !important; color: #245154 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar .mt-10 .text-brand-aqua { color: #007c7a !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-main-with-sidebar { margin-left: 272px !important; background: #f6f8fa; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-main-with-sidebar > .sticky { background: rgba(255,255,255,.95) !important; border-color: #e5e9ee !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-main-with-sidebar > .sticky > div { height: 64px !important; padding: 0 28px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-input { border-radius: 7px !important; border-color: #d9e0e6 !important; padding-top: 10px !important; padding-bottom: 10px !important; box-shadow: none !important; font-size: 13px !important; font-weight: 500 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-button-primary,
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-button-secondary { border-radius: 7px !important; padding: .7rem 1rem !important; box-shadow: none !important; font-size: 13px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-button-primary { background: #007c7a !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-button-primary:hover { background: #006864 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-button-secondary { border-color: #d9e0e6 !important; color: #34424e !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page { max-width: 1440px !important; padding: 28px 32px 48px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child {
  min-height: 0 !important; padding: 28px 30px !important; border: 1px solid #dce5e8 !important;
  border-radius: 10px !important; background: #fff !important; color: #1f2933 !important;
}
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child .math-pattern { display: none; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child h1 { color: #132c35 !important; font-size: clamp(28px,3vw,38px) !important; letter-spacing: -.035em !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child p { color: #667681 !important; font-size: 15px !important; line-height: 1.55 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child .dls-pill { border-color: #cde4e3 !important; background: #eff9f8 !important; color: #08716f !important; font-size: 11px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > section:first-child img { height: 150px !important; border: 1px solid #e2e8ed !important; border-radius: 8px !important; box-shadow: none !important; filter: saturate(.78); }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-section { border: 1px solid #dfe6eb !important; border-radius: 9px !important; background: #fff !important; box-shadow: none !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-section:hover { border-color: #cddadd !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > .grid .dls-section { padding: 19px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > .grid .dls-section > p:first-child { color: #667681 !important; font-size: 12px !important; font-weight: 700 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > .grid .dls-section > p:nth-child(2) { color: #1c3941 !important; font-size: 30px !important; margin-top: 8px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page > .grid .dls-section > p:last-child { color: #8a969f !important; font-size: 11px !important; margin-top: 7px !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table { border-spacing: 0 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table th { color: #667681 !important; background: #f8fafb; border-bottom: 1px solid #dfe6eb; font-size: 11px !important; letter-spacing: .05em; text-transform: uppercase; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table td { border-bottom: 1px solid #edf0f2; color: #3e4d57 !important; font-size: 13px; }
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table tr td:first-child,
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table tr th:first-child,
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table tr td:last-child,
body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-table tr th:last-child { border-radius: 0 !important; }
body:has(.dls-sidebar a[href="/master-dashboard"]) footer { margin-left: 272px !important; background: #fff !important; border-color: #e5e9ee !important; }
@media(max-width:900px){body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-sidebar{width:auto!important;padding:14px!important}body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-main-with-sidebar,body:has(.dls-sidebar a[href="/master-dashboard"]) footer{margin-left:0!important}body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page{padding:18px 14px 32px!important}body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-main-with-sidebar>.sticky>div{height:auto!important;min-height:62px;padding:10px 14px!important}body:has(.dls-sidebar a[href="/master-dashboard"]) .dls-page>section:first-child{padding:22px!important}}
.dls-support-workspace{display:grid;gap:1.5rem}.dls-support-toolbar{display:flex;align-items:center;justify-content:space-between;gap:2rem;padding:1.75rem 2rem}.dls-support-toolbar h2,.dls-support-section-heading h2,.dls-support-modal-heading h2{color:#003a40;font-family:Manrope,sans-serif;font-size:clamp(1.5rem,2.3vw,2.25rem);font-weight:800;line-height:1.15}.dls-support-toolbar p,.dls-support-section-heading p,.dls-support-modal-heading p{color:#59686b;margin-top:.45rem}.dls-support-kicker{color:#007c87!important;font-size:.78rem;font-weight:800;letter-spacing:.16em;margin:0!important;text-transform:uppercase}.dls-support-metrics{display:grid;gap:1rem;grid-template-columns:repeat(4,minmax(0,1fr))}.dls-support-metrics article{padding:1.4rem}.dls-support-metrics span{color:#59686b;font-weight:700}.dls-support-metrics strong{color:#003a40;display:block;font-family:Manrope,sans-serif;font-size:2.35rem;line-height:1;margin-top:.75rem}.dls-support-metrics small{color:#718084;display:block;margin-top:.55rem}.dls-support-list-section{padding:1.7rem}.dls-support-section-heading{align-items:center;display:flex;gap:1.5rem;justify-content:space-between;margin-bottom:1.5rem}.dls-support-filter{align-items:center;display:flex;gap:.7rem}.dls-support-filter label{color:#003a40;font-weight:800}.dls-support-filter .dls-input{min-width:180px}.dls-support-ticket-list{display:grid;gap:1rem}.dls-support-ticket-card{align-items:stretch;background:#fff;border:1px solid #d7e1e3;border-radius:1.4rem;color:#191c1d;display:grid;gap:1.5rem;grid-template-columns:minmax(0,1fr) minmax(170px,.25fr);padding:1.35rem;text-align:left;width:100%}.dls-support-ticket-card.is-action{cursor:pointer;transition:border-color .2s ease,box-shadow .2s ease,transform .2s ease}.dls-support-ticket-card.is-action:hover{border-color:#83c5be;box-shadow:0 16px 36px rgba(0,58,64,.1);transform:translateY(-2px)}.dls-support-ticket-main h3{color:#003a40;font-family:Manrope,sans-serif;font-size:1.15rem;font-weight:800;margin-top:.7rem}.dls-support-ticket-main>p{color:#4f5e61;display:-webkit-box;line-height:1.55;margin-top:.45rem;overflow:hidden;-webkit-box-orient:vertical;-webkit-line-clamp:2}.dls-support-ticket-card aside{align-items:flex-end;border-left:1px solid #e1e8e9;display:flex;flex-direction:column;gap:.45rem;justify-content:center;padding-left:1.25rem}.dls-support-ticket-card aside strong{color:#003a40}.dls-support-ticket-card aside small{color:#718084}.dls-support-ticket-badges,.dls-support-meta{align-items:center;display:flex;flex-wrap:wrap;gap:.5rem}.dls-support-meta{color:#667578;font-size:.82rem;font-weight:700;margin-top:.85rem}.dls-support-meta span+span:before{content:'•';margin-right:.5rem}.dls-support-badge{border-radius:999px;display:inline-flex;font-size:.72rem;font-weight:800;letter-spacing:.04em;padding:.36rem .65rem;text-transform:uppercase}.status-open{background:#fff2cc;color:#805800}.status-in_progress{background:#dcebff;color:#174f93}.status-resolved{background:#dcf7e9;color:#08653b}.status-closed{background:#e7ecee;color:#465457}.priority-urgent{background:#ffe0df;color:#a41818}.priority-high{background:#ffead8;color:#994900}.priority-normal{background:#e6f7f5;color:#006c72}.priority-low{background:#eef0f1;color:#586568}.dls-support-resolution{background:#eaf8f0;border-radius:1rem;color:#1f6544;margin-top:.65rem;padding:.8rem;width:100%}.dls-support-resolution p{font-size:.82rem;margin-top:.25rem}.dls-support-empty{align-items:center;display:flex;flex-direction:column;justify-content:center;min-height:260px;padding:2rem;text-align:center}.dls-support-empty>.material-symbols-outlined{background:#e7f7f6;border-radius:999px;color:#00535b;font-size:2.2rem;padding:1rem}.dls-support-empty h3{color:#003a40;font-family:Manrope,sans-serif;font-size:1.4rem;font-weight:800;margin-top:1rem}.dls-support-empty p{color:#667578;margin:.5rem auto 1.2rem;max-width:540px}.dls-support-notice{border-radius:1rem;font-weight:800;padding:1rem 1.2rem;position:sticky;top:5.5rem;z-index:60}.dls-support-notice.is-success{background:#ddf7e9;color:#075b36}.dls-support-notice.is-error{background:#ffe5e4;color:#981b1b}.dls-support-modal{align-items:center;display:flex;inset:0;justify-content:center;padding:1.25rem;position:fixed;z-index:1000}.dls-support-modal-backdrop{background:rgba(0,35,39,.62);border:0;inset:0;position:absolute}.dls-support-modal-card{background:#f8fafa;border:1px solid rgba(255,255,255,.7);border-radius:2rem;box-shadow:0 32px 100px rgba(0,35,39,.35);max-height:calc(100vh - 2.5rem);max-width:820px;overflow:auto;padding:2rem;position:relative;width:100%;z-index:1}.dls-support-modal-heading{align-items:flex-start;display:flex;gap:1rem;justify-content:space-between;margin-bottom:1.5rem}.dls-support-icon-button{align-items:center;background:#e7f4f4;border:0;border-radius:999px;color:#003a40;display:flex;height:46px;justify-content:center;width:46px}.dls-support-form{display:grid;gap:1rem;grid-template-columns:repeat(2,minmax(0,1fr))}.dls-support-field{display:flex;flex-direction:column;gap:.45rem}.dls-support-field.is-wide,.dls-support-form-actions,.dls-support-form-error{grid-column:1/-1}.dls-support-field>span{color:#003a40;font-weight:800}.dls-support-field small{color:#b42318;font-size:.78rem;min-height:.9rem}.dls-support-field textarea{min-height:130px;resize:vertical}.dls-support-form-actions{display:flex;gap:.8rem;justify-content:flex-end;margin-top:.5rem}.dls-support-form-error{background:#ffe5e4;border-radius:.8rem;color:#981b1b;font-weight:700;padding:.8rem}.dls-support-ticket-detail{display:grid;gap:1rem;margin-bottom:1.5rem}.dls-support-ticket-detail dl{display:grid;gap:.7rem;grid-template-columns:repeat(4,minmax(0,1fr))}.dls-support-ticket-detail dl div,.dls-support-ticket-detail section{background:#fff;border:1px solid #dce5e6;border-radius:1rem;padding:1rem}.dls-support-ticket-detail dt{color:#718084;font-size:.72rem;font-weight:800;letter-spacing:.08em;text-transform:uppercase}.dls-support-ticket-detail dd,.dls-support-ticket-detail h3{color:#003a40;font-weight:800;margin-top:.25rem}.dls-support-ticket-detail section p{color:#4f5e61;line-height:1.6;margin-top:.5rem;white-space:pre-wrap}@media(max-width:900px){.dls-support-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.dls-support-toolbar,.dls-support-section-heading{align-items:flex-start;flex-direction:column}.dls-support-ticket-card{grid-template-columns:1fr}.dls-support-ticket-card aside{align-items:flex-start;border-left:0;border-top:1px solid #e1e8e9;padding-left:0;padding-top:1rem}.dls-support-ticket-detail dl{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:560px){.dls-support-metrics,.dls-support-form,.dls-support-ticket-detail dl{grid-template-columns:1fr}.dls-support-modal-card{border-radius:1.4rem;padding:1.25rem}.dls-support-form-actions{flex-direction:column-reverse}.dls-support-form-actions button{width:100%}}
