/* Lexojmë administration. Load after the feature styles and typography. */
:root {
  --paper: #f4f6f8;
  --surface: #ffffff;
  --surface-tint: #e9f4f5;
  --ink: #18252f;
  --ink-soft: #344653;
  --muted: #526471;
  --line: #dce3e8;
  --line-strong: #81939f;
  --teal-950: #075762;
  --teal-800: #087e8b;
  --teal-700: #087e8b;
  --teal-100: #e6f3f4;
  --gold-700: #775300;
  --gold-100: #fff5db;
  --red-700: #a32f35;
  --red-100: #fff0f0;
  --radius: 14px;
  --rail-width: 240px;
  --shadow: 0 8px 24px rgb(24 37 47 / 8%);
  --shadow-small: none;
  --font-body: "Source Sans 3", Arial, sans-serif;
  --font-display: var(--font-body);
  --font-utility: var(--font-body);
}
html, body { background: var(--paper); }
.connected-shell, .connected-state-shell {
  --connected-cream: #f4f6f8;
  --connected-cream-deep: #eef2f5;
  --connected-paper: #ffffff;
  --connected-ink: #18252f;
  --connected-muted: #526471;
  --connected-teal: #087e8b;
  --connected-teal-action: #087e8b;
  --connected-teal-deep: #075762;
  --connected-teal-pale: #e6f3f4;
  --connected-sky-pale: #edf3f8;
  --connected-sun-dark: #775300;
  --connected-sun-pale: #fff5db;
  --connected-coral-dark: #a32f35;
  --connected-coral-pale: #fff0f0;
  --connected-hairline: #dce3e8;
  --connected-hairline-soft: #e8edf1;
  --connected-glass: #ffffff;
  --connected-glass-warm: #fff5db;
  --connected-glass-edge: #dce3e8;
  --connected-blur: none;
  --connected-shadow: none;
  --connected-shadow-sm: none;
  --connected-radius: 16px;
  --connected-radius-sm: 12px;
  --connected-radius-lg: 16px;
  --connected-measure: 1480px;
  --connected-signature: #087e8b;
  --connected-signature-line: #087e8b;
  --rail-width: 240px;
  --space-1: 8px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --paper: #f4f6f8;
  --surface: #ffffff;
  --surface-tint: #e6f3f4;
  --ink: #18252f;
  --ink-soft: #344653;
  --muted: #526471;
  --line: #dce3e8;
  --line-strong: #81939f;
  --teal-950: #075762;
  --teal-800: #087e8b;
  --teal-700: #087e8b;
  --teal-100: #e6f3f4;
  --gold-700: #775300;
  --gold-100: #fff5db;
  --red-700: #a32f35;
  --red-100: #fff0f0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.5;
  font-optical-sizing: auto;
  -webkit-font-smoothing: antialiased;
}
.connected-shell::before, .connected-state-shell::before { content: none; }
.connected-shell .app-frame { grid-template-columns: 240px minmax(0, 1fr); }
.connected-shell .context-rail {
  position: sticky; top: 0; height: 100vh; height: 100dvh;
  display: flex; flex-direction: column; gap: 24px; padding: 28px 16px 16px;
  background: #142c36; color: #dce8ec; border-right: 1px solid #29434d;
  -webkit-backdrop-filter: none; backdrop-filter: none; overflow-y: auto;
}
.connected-shell .brand { gap: 8px; padding: 0 8px; }
.connected-shell .brand > .connected-logo { width: 160px; max-width: 100%; }
.connected-shell .brand .brand__kind { margin-top: 4px; color: #a7bbc4; font-size: 12px; font-weight: 500; letter-spacing: .04em; }
.connected-shell .app-nav { display: grid; gap: 24px; overflow: visible; }
.connected-shell .app-nav--desktop { display: grid; }
.connected-shell .nav-group { display: grid; gap: 4px; }
.connected-shell .nav-group__label { margin: 0 12px 4px; color: #a7bbc4; font-size: 12px; font-weight: 600; letter-spacing: .04em; }
.connected-shell .app-nav .nav-link {
  position: relative; min-height: 44px; gap: 12px; padding: 10px 12px;
  border: 1px solid transparent; border-radius: 10px; background: transparent;
  color: #dce8ec; font-size: 15px; font-weight: 500; box-shadow: none;
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
.connected-shell .app-nav .nav-link::before { content: none; }
.connected-shell .app-nav .nav-link:hover { background: #203b46; color: #ffffff; transform: none; }
.connected-shell .app-nav .nav-link[aria-current="page"] { background: #234852; border-color: #35626b; color: #ffffff; font-weight: 600; box-shadow: inset 3px 0 0 #55c8cc; }
.connected-shell .app-nav .nav-link > .nav-link__icon { width: 20px; height: 20px; border-radius: 0; background: none; }
.connected-shell .app-nav .nav-link > .nav-link__icon > .icon { width: 20px; height: 20px; stroke-width: 1.7; }
.connected-shell .app-nav .nav-external { color: #b9cbd2; }
.connected-shell .rail-context { margin-top: auto; padding: 16px 0 0; border-top: 1px solid #35505b; }
.connected-shell .context-card { border: 0; border-radius: 0; background: transparent; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.connected-shell .context-card__top { padding: 0 8px; }
.connected-shell .context-card__avatar { width: 32px; height: 32px; background: #284752; color: #eef8fb; border-radius: 10px; }
.connected-shell .context-card__name { color: #dce8ec; font-size: 14px; }
.connected-shell :is(.context-card__role, .context-card__email) { color: #b9cbd2; }
.connected-shell .compact-navigation { display: none; }
.connected-shell .workspace { min-width: 0; background: var(--paper); }
.connected-shell .workspace-header {
  position: sticky; z-index: 20; top: 0; min-height: 76px;
  gap: 16px; padding: 16px 32px; border-bottom: 1px solid var(--line);
  background: rgb(255 255 255 / 96%); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
}
.connected-shell .workspace-header::after { content: none; }
.connected-shell .workspace-header__title { display: grid; gap: 3px; align-items: start; }
.connected-shell .workspace-header h1 { margin: 0; color: var(--ink); font-size: 22px; font-weight: 650; line-height: 1.25; letter-spacing: -.015em; white-space: normal; }
.connected-shell .workspace-header__context { margin: 0; color: var(--muted); font-size: 13px; }
.connected-shell .workspace-account-label { max-width: 24ch; color: var(--muted); font-size: 14px; overflow-wrap: anywhere; }
.connected-shell .workspace-actions { gap: 16px; }
.connected-shell .connected-context-note { margin: 0; padding: 0; border: 0; color: var(--muted); font-weight: 500; }
.connected-shell .app-main { width: min(1480px, 100%); padding: 24px 32px 48px; margin-inline: auto; }
.connected-shell .connected-page-back { margin: 0 0 16px; }
.connected-shell .connected-page-back__link { min-height: 44px; padding: 8px 0; border: 0; background: transparent; box-shadow: none; color: var(--muted); }
.connected-shell .connected-page-back__link:hover { background: transparent; color: var(--teal-950); }
.connected-shell :is(.feature-page, .hierarchy-page, .demo-request-page, .connected-overview, .usage-workspace, .reading-program-admin) { max-width: none; gap: 24px; }
.connected-shell .feature-outlet > *, .connected-shell .feature-outlet :is(form, fieldset, section, article, header, label, dl, .field) { min-width: 0; }
.connected-shell :is(h2, h3, h4) { color: var(--ink); font-family: var(--font-body); font-weight: 600; line-height: 1.35; letter-spacing: -.01em; overflow-wrap: anywhere; text-wrap: balance; }
.connected-shell .feature-outlet h2:not(.sr-only) { font-size: 22px; }
.connected-shell .feature-outlet h3 { font-size: 18px; }
.connected-shell .feature-outlet h4 { font-size: 16px; }
.connected-shell .feature-outlet p { text-wrap: pretty; }
.connected-shell .feature-outlet a { text-underline-offset: 3px; }
.connected-shell :is(.connected-section-head h3, .connected-read-card h3)::before { content: none; }
.connected-shell :is(.hierarchy-heading, .demo-page-heading, .demo-hero, .support-hero) { padding: 20px 24px; gap: 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: none; }
.connected-shell :is(.hierarchy-heading h2, .demo-hero h2, .demo-page-heading h2, .support-hero h2) { max-width: none; font-size: 24px; line-height: 1.3; }
.connected-shell :is(.hierarchy-heading, .demo-page-heading, .demo-hero, .support-hero) p { font-size: 15px; color: var(--muted); }
.connected-shell .hierarchy-heading:has(> h2.sr-only):not(:has(> p)) { display: contents; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.connected-shell :is(.hierarchy-trail, .demo-eyebrow, .hierarchy-kind, .explorer-card__eyebrow) { font-family: var(--font-body); font-size: 13px; letter-spacing: 0; text-transform: none; }

/* Flat content surfaces; feature-specific layouts and disclosure behavior survive. */
.connected-shell :is(.connected-read-card, .work-grid, .work-disclosure, .hierarchy-search, .hierarchy-school-filter, .hierarchy-check-group, .hierarchy-place-card, .hierarchy-detail-card, .hierarchy-related, .hierarchy-state, .hierarchy-list, .school-directory-controls, .demo-request-list-card, .demo-direct-card, .demo-claim-panel, .demo-review-card, .demo-availability-card, .support-panel, .responsive-record-card, .content-card, .usage-overview, .usage-history, .usage-state, .reading-program-admin__list, .reading-program-admin__empty, .student-presence-table) {
  border-color: var(--line); border-radius: 14px; background: var(--surface);
  box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none;
}
.connected-shell :is(.hierarchy-detail-card, .hierarchy-related, .hierarchy-check-group, .hierarchy-place-card, .school-directory-controls, .demo-request-list-card, .demo-direct-card, .demo-claim-panel, .demo-review-card, .support-panel, .usage-history, .usage-state, .reading-program-admin__empty) { padding: 24px; }
.connected-shell .demo-section-heading { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; }
.connected-shell .support-panel { margin-bottom: 24px; }
.connected-shell .support-hero { margin-bottom: 24px; }
.connected-shell :is(.start-work-card, .start-work-card:nth-child(2), .hierarchy-metric, .today-metrics, .empty-state) { background: var(--surface); border-color: var(--line); border-radius: 14px; box-shadow: none; -webkit-backdrop-filter: none; backdrop-filter: none; }
.connected-shell .empty-state { padding: 24px; }
.connected-shell .empty-state h2 { margin-top: 8px; font-size: 24px; }
.connected-shell .demo-availability-card { padding: 16px 24px; }
.connected-shell .demo-availability-card h3 { white-space: normal; }
.connected-shell :is(.demo-claim-panel, .product-school-invitation) { border-left: 3px solid var(--teal-800); }
.connected-shell .premium-contracts-workspace > .responsive-record-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.connected-shell .premium-contracts-workspace .responsive-record-card { padding: 20px; }
.connected-shell .premium-contracts-workspace .demo-review-card { margin-top: 16px; padding: 16px 0 0; border: 0; border-top: 1px solid var(--line); border-radius: 0; background: none; }
.connected-shell .premium-contracts-workspace :is(form, form label) { display: grid; gap: 8px; }
.connected-shell .premium-contracts-workspace form { gap: 16px; }
.connected-shell .premium-contracts-workspace summary { margin-top: 16px; }
.connected-shell .premium-contracts-workspace > h2 { margin: 8px 0 0; }
.connected-shell .hierarchy-list { overflow: visible; }
.connected-shell .hierarchy-list-item:first-child .hierarchy-card-link { border-radius: 13px 13px 0 0; }
.connected-shell .hierarchy-list-item:last-child .hierarchy-card-link { border-radius: 0 0 13px 13px; }
.connected-shell :is(.hierarchy-card-link, .hierarchy-related-row) { min-height: 72px; padding: 16px 20px; gap: 16px; }
.connected-shell .hierarchy-card-link:hover { background: #f5f9fa; }
.connected-shell .hierarchy-card-copy { gap: 4px; }
.connected-shell .hierarchy-card-copy strong { font-size: 16px; }
.connected-shell .hierarchy-card-copy span { font-size: 14px; color: var(--muted); }
.connected-shell .connected-details > div { padding-block: 16px; gap: 16px; border-color: var(--line); }
.connected-shell .connected-details dt { color: var(--muted); font-size: 14px; font-weight: 500; }
.connected-shell .connected-details dd { color: var(--ink); font-size: 15px; line-height: 1.5; }
.connected-shell :is(.teacher-class-summary, .support-case-list) { border-color: var(--line); }
.connected-shell .support-case-row { padding: 16px; border-color: var(--line); border-radius: 10px; background: var(--surface); }
.connected-shell .support-case-row strong { font-size: 16px; }
.connected-shell .support-case-meta { color: var(--muted); font-size: 14px; }
.connected-shell .demo-request-row { border-color: var(--line); background: var(--surface); }
.connected-shell .demo-request-cell__label { color: var(--muted); font-size: 13px; }
.connected-shell .demo-request-cell__value { color: var(--ink); font-size: 15px; }
.connected-shell :is(.hierarchy-pagination, .support-pagination, .reading-program-admin__pagination, .student-presence-pagination) { gap: 8px; font-variant-numeric: tabular-nums; }

/* Controls share geometry, keyboard treatment and error affordances. */
.connected-shell .button, .connected-state-shell .button {
  min-height: 44px; min-width: 44px; padding: 10px 16px; border: 1px solid transparent;
  border-radius: 10px; background: var(--teal-800); color: #ffffff;
  font-family: var(--font-body); font-size: 15px; font-weight: 600; line-height: 1.35;
  gap: 8px; align-items: center; justify-content: center; text-align: center;
  white-space: normal; box-shadow: none; text-decoration: none;
  transition: background-color 140ms ease, border-color 140ms ease, color 140ms ease;
}
.connected-shell .button:hover, .connected-state-shell .button:hover { background: var(--teal-950); color: #ffffff; transform: none; box-shadow: none; }
.connected-shell .button:active, .connected-state-shell .button:active { background: #064b55; transform: none; }
.connected-shell .button.button--quiet, .connected-state-shell .button.button--quiet { border-color: var(--line-strong); background: var(--surface); color: var(--ink-soft); }
.connected-shell .button.button--quiet:hover, .connected-state-shell .button.button--quiet:hover { border-color: var(--teal-800); background: #edf6f7; color: var(--teal-950); }
.connected-shell .button.button--danger { background: var(--red-700); color: #ffffff; }
.connected-shell .button.button--danger:hover { background: #82262b; }
.connected-shell .workspace-actions .button { border-radius: 10px; font-size: 14px; padding-inline: 14px; }
.connected-shell .feature-outlet :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea),
.connected-state-shell .connected-login-form input {
  width: 100%; min-width: 0; min-height: 44px; padding: 10px 12px;
  border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface);
  color: var(--ink); font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.4;
  box-shadow: none; caret-color: var(--teal-800);
}
.connected-shell .feature-outlet textarea { min-height: 112px; resize: vertical; }
/* Keep the native select interaction, but give single-line arrows predictable geometry. */
.connected-shell .feature-outlet select:not([multiple]):not([role="listbox"]):is(:not([size]), [size="0"], [size="1"]) {
  -webkit-appearance: none;
  appearance: none;
  padding-inline-end: 44px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23536674' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 7.5 5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 16px;
}
.connected-shell .feature-outlet select:not([multiple]):not([role="listbox"]):is(:not([size]), [size="0"], [size="1"]):dir(rtl) {
  background-position: left 14px center;
}
.connected-shell .feature-outlet :is(input, select, textarea):hover { border-color: #7c939f; }
.connected-shell .feature-outlet :is(input, textarea)::placeholder { color: var(--muted); opacity: 1; }
.connected-shell .feature-outlet :is(input, select, textarea)[aria-invalid="true"] { border-color: var(--red-700); background: #fffafa; }
.connected-shell .feature-outlet :is(input[type="checkbox"], input[type="radio"]) { width: 18px; height: 18px; margin: 0 8px 0 0; accent-color: var(--teal-800); vertical-align: middle; }
.connected-shell .feature-outlet label:has(> :is(input[type="checkbox"], input[type="radio"])) { min-height: 44px; align-content: center; }
.connected-shell .feature-outlet input[type="file"] { max-width: 100%; font-size: 15px; }
.connected-shell .feature-outlet input::file-selector-button { min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); color: var(--ink-soft); font: inherit; }
.connected-shell .feature-outlet :is(label, .field > span) { color: var(--ink-soft); font-size: 14px; font-weight: 500; letter-spacing: 0; }
.connected-shell .feature-outlet :is(.demo-form-field, .field) { gap: 8px; }
.connected-shell .feature-outlet summary { min-height: 44px; padding-block: 12px; color: var(--ink-soft); font-size: 15px; font-weight: 600; cursor: pointer; }
.connected-shell .feature-outlet :is(.reading-program-admin__text-button, .student-code-copy) { min-height: 44px; border-radius: 8px; }
.connected-shell :is(button, input, select, textarea):disabled { opacity: .65; cursor: not-allowed; }
.connected-shell :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.connected-shell .feature-outlet :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible,
.connected-state-shell :is(a, button, input, select, textarea, summary, [tabindex]):focus-visible { outline: 3px solid var(--teal-800); outline-offset: 3px; box-shadow: none; }
.connected-shell .context-rail :is(a, summary):focus-visible { outline-color: #8ee0e3; }
.connected-shell ::selection, .connected-state-shell ::selection { color: var(--ink); background: #c7e9ec; }

/* Tables remain semantic; mobile row/card patterns are supplied by each view. */
.connected-shell .feature-outlet table { width: 100%; max-width: 100%; border-collapse: collapse; color: var(--ink); font-size: 15px; font-variant-numeric: tabular-nums; }
.connected-shell .feature-outlet :is(th, td) { padding: 12px 16px; border-color: var(--line); vertical-align: top; overflow-wrap: anywhere; line-height: 1.5; }
.connected-shell .feature-outlet thead th { background: #f4f6f8; color: var(--muted); font-size: 13px; font-weight: 600; }
.connected-shell .feature-outlet tbody th { font-weight: 600; }
.connected-shell .feature-outlet caption:not(.sr-only) { padding-block: 12px; color: var(--ink-soft); font-size: 14px; text-align: left; }
.connected-shell :is(.connected-status, .hierarchy-status, .status-pill, .reading-program-admin__status) { max-width: 100%; padding: 4px 8px; border-radius: 6px; background: var(--teal-100); color: var(--teal-950); font-family: var(--font-body); font-size: 13px; font-weight: 600; letter-spacing: 0; line-height: 1.4; text-transform: none; white-space: normal; }
.connected-shell :is(.hierarchy-status--inactive, .connected-status--invited, .reading-program-admin__status--draft) { background: var(--gold-100); color: var(--gold-700); }
.connected-shell :is(.hierarchy-status--paused, .status-pill--suspended, .connected-status--closed, .reading-program-admin__status--withdrawn) { background: var(--red-100); color: var(--red-700); }
.connected-shell .support-priority-badge { color: #775300; background: #fff5db; border-radius: 6px; }
.connected-shell :is(.form-error, .connected-field-error, .support-reference-search__error) { color: var(--red-700); font-size: 14px; }
.connected-shell :is(.form-success, .teacher-management-feedback) { color: var(--teal-950); }
.connected-shell :is(.demo-notice, .teacher-management-note, .teacher-management-feedback) { padding: 12px 16px; border: 1px solid #c8e1e4; border-radius: 10px; background: #edf7f7; font-size: 15px; }
.connected-shell :is(.demo-notice--error, .teacher-management-feedback--error, .usage-state--error, .hierarchy-state--error) { border-color: #e6bfc2; background: var(--red-100); color: var(--red-700); }
.connected-shell :is(.teacher-danger-zone, .product-school-suspension) { border-color: #e6bfc2; border-radius: 12px; background: #fffafa; }
.connected-shell :is(.hierarchy-empty, .support-empty, .student-presence-empty, .student-presence-unavailable, .student-presence-loading, .explorer-empty) { padding: 24px; color: var(--muted); font-size: 15px; border-color: var(--line); background: var(--surface); }
.connected-shell :is(.usage-skeleton span, .student-presence-loading span) { background: #e8edf1; border-radius: 5px; }
.connected-shell .support-private-image { max-width: 100%; border-radius: 10px; outline: 1px solid var(--line); outline-offset: -1px; }
.connected-shell .student-access-image { padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.connected-shell .student-access-qr { display: block; width: 100%; height: auto; }
.connected-shell :is(.student-directory-tabs, .hierarchy-status-filter) { gap: 4px; }
.connected-shell .student-directory-tabs { border-radius: 12px; background: var(--surface); border-color: var(--line); padding: 4px; }
.connected-shell .student-directory-tabs a { min-height: 44px; padding: 10px 16px; border-radius: 8px; font-size: 15px; }
.connected-shell .student-directory-tabs a[aria-current="page"] { background: var(--teal-100); color: var(--teal-950); }
.connected-shell .student-presence-summary { padding: 16px 0; gap: 16px 32px; border-color: var(--line); }
.connected-shell .student-presence-summary strong { font-size: 30px; font-weight: 650; }
.connected-shell .student-presence-filters { margin-block: 16px; gap: 16px; }
.connected-shell :is(.student-presence-note, .student-presence-updated) { font-size: 13px; color: var(--muted); }
.connected-shell .usage-metrics { padding-block: 24px; }
.connected-shell .usage-metric { padding-inline: 24px; }
.connected-shell .usage-metric__value { font-size: 30px; }
.connected-shell :is(.usage-note, .usage-freshness, .usage-overview__foot, .usage-chart figcaption, .usage-axis) { color: var(--muted); font-size: 14px; }
.connected-shell .usage-filter { min-width: 0; }
.connected-shell .reading-program-admin__row { padding: 16px 20px; border-radius: 0; }
.connected-shell .reading-program-admin__title { font-size: 16px; }
.connected-shell .reading-program-admin__review { padding: 24px; gap: 24px; }
.connected-shell .reading-program-admin__meta { font-size: 14px; }
.connected-shell .reading-program-admin__body { color: var(--ink); font-size: 16px; line-height: 1.65; }
.connected-state-shell .connected-state-card { padding: 32px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); box-shadow: var(--shadow); -webkit-backdrop-filter: none; backdrop-filter: none; }
.connected-state-shell .connected-state-card h1 { font-size: 28px; }
.connected-state-shell .connected-state-card p { color: var(--muted); font-size: 15px; }

/* Overview: four facts, useful work queues and recent schools. */
.connected-shell .admin-overview { display: grid; gap: 24px; }
.connected-shell .admin-overview-heading { display: grid; gap: 8px; }
.connected-shell .admin-overview-heading h2 { margin: 0; font-size: 26px; line-height: 1.2; }
.connected-shell .admin-overview-intro { margin: 0; color: var(--muted); font-size: 15px; }
.connected-shell .admin-overview-section { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.connected-shell .admin-overview-section:has(> .admin-overview-metrics) { padding: 0; border: 0; border-radius: 0; background: transparent; }
.connected-shell .admin-overview-section:has(> .admin-overview-metrics) > h3 { margin: 0 0 16px; }
.connected-shell .admin-overview-section-header { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px 16px; margin-bottom: 16px; }
.connected-shell .admin-overview-section-header :is(h2, h3) { margin: 0; font-size: 18px; }
.connected-shell .admin-overview-section-header a { display: inline-flex; align-items: center; min-height: 44px; color: var(--teal-950); font-size: 14px; }
.connected-shell .admin-overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.connected-shell .admin-overview-metric { display: grid; align-content: center; gap: 8px; min-width: 0; min-height: 112px; padding: 20px 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); color: var(--ink); text-decoration: none; }
.connected-shell .admin-overview-metric strong { font-size: 32px; font-weight: 650; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.connected-shell .admin-overview-metric span { color: var(--muted); font-size: 15px; }
.connected-shell .admin-overview-metric:hover { border-color: #7cabb2; background: #fbfdfd; }
.connected-shell .admin-overview-columns { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.connected-shell :is(.admin-overview-work, .admin-overview-shortcuts, .admin-overview-schools) { min-width: 0; margin: 0; padding: 0; list-style: none; }
.connected-shell :is(.admin-overview-work-item, .admin-overview-shortcut) { display: grid; gap: 4px; min-width: 0; min-height: 64px; padding: 12px 0; color: var(--ink); text-decoration: none; }
.connected-shell :is(.admin-overview-work-item, .admin-overview-shortcut) + :is(.admin-overview-work-item, .admin-overview-shortcut) { border-top: 1px solid var(--line); }
.connected-shell :is(.admin-overview-work-item, .admin-overview-shortcut) strong { font-size: 16px; font-weight: 600; line-height: 1.4; }
.connected-shell :is(.admin-overview-work-item, .admin-overview-shortcut) span { color: var(--muted); font-size: 14px; }
.connected-shell .admin-overview-work-item { grid-template-columns: minmax(48px, max-content) minmax(0, 1fr); grid-template-areas: "count label" "count note"; column-gap: 16px; align-content: center; min-height: 80px; padding-block: 16px; }
.connected-shell .admin-overview-work-item > strong { grid-area: count; align-self: center; font-size: 32px; font-weight: 650; line-height: 1.2; font-variant-numeric: tabular-nums; }
.connected-shell .admin-overview-work-item > span { grid-area: label; color: var(--ink); font-size: 16px; font-weight: 600; }
.connected-shell .admin-overview-work-item > small { grid-area: note; color: var(--muted); font-size: 14px; }
.connected-shell .admin-overview-work-item:hover > span, .connected-shell .admin-overview-shortcut:hover strong { color: var(--teal-950); text-decoration: underline; text-underline-offset: 3px; }
.connected-shell .admin-overview-schools { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; }
.connected-shell .admin-overview-school { display: grid; align-content: start; gap: 8px; min-width: 0; padding: 12px 16px; border: 0; border-radius: 6px; background: transparent; color: var(--ink); text-decoration: none; }
.connected-shell .admin-overview-school + .admin-overview-school { border-left: 1px solid var(--line); }
.connected-shell .admin-overview-school h4 { margin: 0; font-size: 16px; }
.connected-shell .admin-overview-school:hover { background: #f4f7f9; }
.connected-shell .admin-overview-school-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 0; color: var(--muted); font-size: 14px; }
.connected-shell .admin-overview-school time { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.connected-shell .admin-overview-empty { margin: 0; padding: 16px 0; color: var(--muted); font-size: 15px; }
.connected-shell .button.connected-page-back__link { padding-inline: 0; border: 0; background: transparent; color: var(--muted); }
.connected-shell .button.connected-page-back__link:hover { background: transparent; color: var(--teal-950); }

@media (min-width: 1440px) {
  .connected-shell .app-main { padding-inline: 40px; }
  .connected-shell .workspace-header { padding-inline: 40px; }
}
@media (max-width: 999px) {
  .connected-shell .app-frame { display: block; }
  .connected-shell .context-rail { position: relative; top: auto; height: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding: 16px 24px; border-right: 0; border-bottom: 1px solid #29434d; overflow: visible; }
  .connected-shell .brand { padding: 0; }
  .connected-shell .brand > .connected-logo { width: 144px; }
  .connected-shell .app-nav--desktop { display: none; }
  .connected-shell .compact-navigation { display: block; grid-column: 1 / -1; border: 1px solid #45606b; border-radius: 10px; background: #193540; }
  .connected-shell .compact-navigation > summary { min-height: 44px; padding: 10px 16px; color: #dce8ec; font-size: 15px; font-weight: 600; }
  .connected-shell .compact-navigation[open] > summary { border-bottom: 1px solid #45606b; background: #193540; }
  .connected-shell .compact-navigation > .app-nav { padding: 16px 8px; gap: 20px; background: transparent; }
  .connected-shell .compact-navigation:not([open]) > .app-nav { display: none; }
  .connected-shell .rail-context { grid-column: 1 / -1; padding: 12px 0 0; margin-top: 0; }
  .connected-shell:has(.workspace-account-label) .rail-context { display: none; }
  .connected-shell .workspace-header { padding: 16px 24px; }
  .connected-shell .app-main { padding: 24px 24px 40px; }
  .connected-shell .school-directory-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connected-shell .school-directory-filters > label:first-child { grid-column: 1 / -1; }
  .connected-shell .admin-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .connected-shell .admin-overview-school { padding: 16px; }
}
@media (max-width: 719px) {
  .connected-shell .admin-overview-columns { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .connected-shell .admin-overview-schools { grid-template-columns: minmax(0, 1fr); }
  .connected-shell .admin-overview-school + .admin-overview-school { border-left: 0; border-top: 1px solid var(--line); }
}
@media (max-width: 600px) {
  .connected-shell .context-rail { padding: 16px; gap: 12px; }
  .connected-shell .workspace-header { min-height: 72px; padding: 12px 16px; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
  .connected-shell .workspace-header__title { flex: 1 1 160px; }
  .connected-shell .workspace-header h1 { font-size: 20px; white-space: normal; }
  .connected-shell .workspace-actions { gap: 8px; flex: 0 1 auto; }
  .connected-shell .workspace-account-label { max-width: 12ch; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
  .connected-shell .app-main { padding: 16px 16px 32px; }
  .connected-shell :is(.hierarchy-heading, .demo-page-heading, .demo-hero, .support-hero, .hierarchy-detail-card, .hierarchy-related, .hierarchy-check-group, .hierarchy-place-card, .school-directory-controls, .demo-request-list-card, .demo-direct-card, .demo-claim-panel, .demo-review-card, .support-panel, .usage-history, .usage-state, .reading-program-admin__empty) { padding: 16px; border-radius: 12px; }
  .connected-shell :is(.hierarchy-heading h2, .demo-hero h2, .demo-page-heading h2, .support-hero h2) { font-size: 22px; }
  .connected-shell :is(.hierarchy-page, .demo-request-page, .usage-workspace, .reading-program-admin) { gap: 16px; }
  .connected-shell :is(.hierarchy-card-link, .hierarchy-related-row) { padding: 16px; }
  .connected-shell .hierarchy-pagination .button { width: auto; flex: 1 1 auto; }
  .connected-shell .hierarchy-pagination > span { width: auto; order: 0; }
  .connected-shell .feature-outlet :is(th, td) { padding: 10px 8px; font-size: 14px; }
  .connected-shell .student-presence-table :is(th, td) { padding: 0; grid-template-columns: 70px minmax(0, 1fr); gap: 8px; }
  .connected-shell .student-presence-table tr { padding: 16px; gap: 8px; }
  .connected-shell .student-presence-filters { grid-template-columns: minmax(0, 1fr); }
  .connected-shell .school-directory-filters { grid-template-columns: minmax(0, 1fr); }
  .connected-shell .reading-program-admin__row { padding: 16px; }
  .connected-shell .reading-program-admin__review { padding: 16px; }
  .connected-shell .reading-program-admin__filters { gap: 12px; }
  .connected-shell .usage-metrics { padding: 0 16px; }
  .connected-shell .usage-metric { padding: 16px 0; }
  .connected-shell .usage-metric__value { font-size: 28px; }
  .connected-state-shell .connected-state-card { padding: 24px; }
  .connected-shell .admin-overview { gap: 16px; }
  .connected-shell .admin-overview-metrics { gap: 12px; }
  .connected-shell .admin-overview-metric { min-height: 104px; padding: 16px; }
  .connected-shell .admin-overview-metric strong { font-size: 30px; }
  .connected-shell .admin-overview-metric span { font-size: 14px; }
  .connected-shell .admin-overview-section { padding: 16px; }
  .connected-shell .admin-overview-section-header { margin-bottom: 8px; }
}
@media (prefers-reduced-transparency: reduce) {
  .connected-shell .workspace-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
@media (prefers-reduced-motion: reduce) {
  .connected-shell *, .connected-shell *::before, .connected-shell *::after,
  .connected-state-shell *, .connected-state-shell *::before, .connected-state-shell *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
@media (prefers-contrast: more) {
  .connected-shell, .connected-state-shell { --line: #8495a1; --connected-hairline: #8495a1; --connected-hairline-soft: #a3b1bb; --muted: #344653; --connected-muted: #344653; }
  .connected-shell .workspace-header { background: var(--surface); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .connected-shell .app-nav .nav-link[aria-current="page"] { border-color: #91dadd; }
}
@media (forced-colors: active) {
  .connected-shell, .connected-state-shell { --ink: CanvasText; --muted: CanvasText; --line: CanvasText; --line-strong: CanvasText; --surface: Canvas; --paper: Canvas; }
  .connected-shell .context-rail, .connected-shell .workspace-header { background: Canvas; color: CanvasText; border-color: CanvasText; -webkit-backdrop-filter: none; backdrop-filter: none; }
  .connected-shell .app-nav .nav-link { color: LinkText; }
  .connected-shell .app-nav .nav-link[aria-current="page"] { border: 2px solid Highlight; color: Highlight; box-shadow: none; }
  .connected-shell .button { border: 1px solid ButtonText; background: ButtonFace; color: ButtonText; }
  .connected-shell :is(a, button, input, select, textarea, summary):focus-visible { outline-color: Highlight; }
  .connected-shell .student-presence-table :is(th, td)::before { color: CanvasText; }
  .connected-shell .feature-outlet select:not([multiple]):not([role="listbox"]):is(:not([size]), [size="0"], [size="1"]) {
    -webkit-appearance: menulist;
    appearance: auto;
    padding-inline-end: 12px;
    background-image: none;
  }
}

/* Directory workbench: session-only filters and semantic, selectable tables. */
.connected-shell .directory-workbench-controls { min-width: 0; padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); }
.connected-shell .directory-workbench-summary { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 24px; margin-bottom: 16px; }
.connected-shell .directory-workbench-summary p { margin: 0; color: var(--muted); font-size: 14px; }
.connected-shell .directory-workbench-summary strong { color: var(--ink); font-size: 20px; font-weight: 650; }
.connected-shell .directory-workbench-summary > a { margin-left: auto; }
.connected-shell .directory-due-chip { display: inline-block; margin: 0 0 16px; padding: 8px 12px; border: 1px solid #aacdd2; border-radius: 8px; background: var(--teal-100); color: var(--teal-950); font-size: 14px; }
.connected-shell .directory-workbench-views { display: flex; flex-wrap: wrap; gap: 8px; min-width: 0; margin: 0 0 20px; padding: 0; border: 0; }
.connected-shell .directory-workbench-views legend { margin-bottom: 8px; color: var(--ink-soft); font-size: 14px; font-weight: 600; }
.connected-shell .directory-workbench-views label { display: inline-flex; align-items: center; min-height: 44px; gap: 8px; padding: 8px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: var(--surface); cursor: pointer; }
.connected-shell .directory-workbench-views label:has(:checked) { border-color: var(--teal-800); background: var(--teal-100); color: var(--teal-950); }
.connected-shell .directory-workbench-views label:hover { border-color: var(--teal-800); }
.connected-shell .directory-workbench-views input { flex: 0 0 18px; }
.connected-shell .directory-workbench-filters { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: end; gap: 12px; }
.connected-shell .hierarchy-heading:has(> .sr-only):not(:has(> p)) { display: contents; }
.connected-shell .teacher-usage-controls { display: grid; gap: 8px; }
.connected-shell .teacher-usage-controls .teacher-usage-toolbar { margin: 0; }
.connected-shell .teacher-usage-controls .teacher-usage-help { margin: 0; }
.connected-shell .directory-workbench-field { display: grid; min-width: 0; }
.connected-shell .directory-workbench-field:first-child { grid-column: span 2; }
.connected-shell .directory-workbench-filters > .button { justify-self: start; }
.connected-shell .directory-workbench-note { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.connected-shell .directory-workbench-selection { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; padding-block: 8px; }
.connected-shell .directory-workbench-selection p { margin: 0; color: var(--ink-soft); font-size: 14px; }
.connected-shell .directory-workbench-selection > div { display: flex; flex-wrap: wrap; gap: 8px; }
.connected-shell .directory-worktable-scroll { width: 100%; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.connected-shell .directory-worktable { min-width: 900px; table-layout: fixed; }
.connected-shell .directory-worktable--students { min-width: 740px; }
.connected-shell .directory-worktable :is(th, td) { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; text-align: left; }
.connected-shell .directory-worktable :is(th, td):first-child { width: 56px; padding: 4px 6px; }
.connected-shell .directory-worktable :is(th, td):nth-child(2) { width: 25%; }
.connected-shell .directory-worktable--teachers :is(th, td):nth-child(5) { width: 64px; }
.connected-shell .directory-worktable tbody tr:last-child :is(th, td) { border-bottom: 0; }
.connected-shell .directory-worktable tbody tr:hover { background: #f8fafb; }
.connected-shell .directory-worktable tbody tr[data-selected="true"] { background: #edf7f7; }
.connected-shell .directory-worktable-name { display: inline-flex; align-items: center; min-height: 32px; color: var(--ink); text-decoration: none; }
.connected-shell .directory-worktable-name:hover { color: var(--teal-950); text-decoration: underline; text-underline-offset: 3px; }
.connected-shell .directory-worktable-name strong { font-size: 15px; font-weight: 600; }
.connected-shell .directory-worktable-meta { display: block; margin-top: 4px; color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.5; }
.connected-shell .directory-worktable-select { display: flex; align-items: center; justify-content: center; width: 44px; min-height: 44px; cursor: pointer; }
.connected-shell .directory-worktable-select input { margin: 0; }
.connected-shell .directory-worktable-count { font-variant-numeric: tabular-nums; }
.connected-shell .directory-worktable-label { display: none; }
.connected-shell .directory-worktable-empty { margin: 0; padding: 20px 12px; color: var(--muted); font-size: 15px; font-weight: 400; }
.connected-shell .directory-worktable td[colspan] { width: auto; }
.connected-shell .directory-worktable .teacher-usage-reading { margin: 0; padding: 0; border: 0; background: transparent; font-size: 13px; }
.connected-shell .directory-worktable .teacher-usage-reading strong { font-weight: 600; }
.connected-shell .directory-worktable .teacher-usage-reading time { white-space: nowrap; }

@media (max-width: 999px) {
  .connected-shell .directory-workbench-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 760px) {
  .connected-shell .directory-workbench-controls { padding: 16px; }
  .connected-shell .directory-worktable-scroll { overflow: visible; }
  .connected-shell .directory-worktable { display: block; min-width: 0; }
  .connected-shell .directory-worktable thead { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); clip-path: inset(50%); white-space: nowrap; border: 0; }
  .connected-shell .directory-worktable tbody { display: block; }
  .connected-shell .directory-worktable tbody tr { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 8px; padding: 12px; border-bottom: 1px solid var(--line); }
  .connected-shell .directory-worktable tbody tr:last-child { border-bottom: 0; }
  .connected-shell .directory-worktable tbody :is(th, td) { display: grid; grid-column: 1 / -1; grid-template-columns: 88px minmax(0, 1fr); gap: 12px; width: auto; min-width: 0; padding: 0; border: 0; font-size: 14px; }
  .connected-shell .directory-worktable tbody td:first-child { display: block; grid-column: 1; width: auto; padding: 0; }
  .connected-shell .directory-worktable tbody th[scope="row"] { display: block; grid-column: 2; width: auto; padding-block: 4px; }
  .connected-shell .directory-worktable-label { display: block; color: var(--muted); font-size: 13px; font-weight: 400; }
  .connected-shell .directory-worktable tbody td[colspan] { display: block; grid-column: 1 / -1; }
  .connected-shell .directory-worktable-empty { padding: 12px 0; }
  .connected-shell .directory-worktable :is(th, td) > div { min-width: 0; }
}
@media (max-width: 480px) {
  .connected-shell .directory-workbench-filters { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .connected-shell .directory-workbench-field:first-child { grid-column: auto; }
  .connected-shell .directory-workbench-views { gap: 6px; }
  .connected-shell .directory-workbench-views label { flex: 1 1 140px; }
  .connected-shell .directory-workbench-selection > div { width: 100%; }
  .connected-shell .directory-workbench-selection .button { flex: 1 1 auto; }
}
@media (forced-colors: active) {
  .connected-shell .directory-workbench-views label:has(:checked) { border-color: Highlight; }
  .connected-shell .directory-worktable tbody tr[data-selected="true"] { outline: 1px solid Highlight; outline-offset: -1px; background: Canvas; }
}

/* Polish pass: one spacing rhythm, without changing any feature's actions. */
.connected-shell .feature-outlet :is(.support-toolbar label, .support-form label, .support-account-help__form label, .support-reference-search, .request-workbench label, .reading-program-admin__filters label) {
  gap: 8px;
}
.connected-shell .directory-workbench-filters { gap: 16px; }
.connected-shell .feature-outlet .button > svg { flex-shrink: 0; }
.connected-shell :is(.support-panel, .demo-direct-card, .responsive-record-card) > :is(h2, h3, h4) {
  margin: 0 0 8px;
}
.connected-shell .premium-contracts-workspace .demo-section-heading h2 { margin: 0 0 8px; }
.connected-shell .premium-contracts-workspace .demo-section-heading p { margin: 0; }
.connected-shell .premium-contracts-workspace .demo-review-card :is(h4, p) { margin: 0; }
.connected-shell .premium-contracts-workspace form label:has(> input[type="checkbox"]) {
  display: flex; align-items: flex-start; gap: 8px;
}
.connected-shell .premium-contracts-workspace form label > input[type="checkbox"] {
  flex: 0 0 18px; margin: 2px 0 0;
}
.connected-shell .support-workflow > .support-panel { margin: 0; }
.connected-shell .support-panel.support-workflow__technical { padding: 0; }
.connected-shell .support-panel.support-workflow__technical > summary:focus-visible { outline-offset: -4px; }
.connected-shell .feature-outlet :is([data-support-resolution-form], [data-support-reply-form]) {
  display: grid; gap: 8px;
}
.connected-shell .feature-outlet :is([data-support-resolution-form], [data-support-reply-form]) > .button {
  margin-top: 8px; justify-self: start;
}
.connected-shell .feature-outlet :is([data-support-resolution-form], [data-support-reply-form]) > .support-actions {
  margin-top: 8px;
}
.connected-shell .usage-overview__foot, .connected-shell .usage-breakdown { padding-inline: 24px; }

@media (min-width: 1000px) {
  .connected-shell .school-directory-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  /* 16px avoids the browser zooming a focused field on small iPhones. */
  .connected-shell .feature-outlet :is(input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea),
  .connected-state-shell .connected-login-form input { font-size: 16px; }
  .connected-shell .support-workflow__technical > summary { padding: 16px; }
  .connected-shell .support-workflow__technical-body { padding: 0 16px 16px; }
  .connected-shell .usage-overview__foot, .connected-shell .usage-breakdown { padding-inline: 16px; }
}
