/* StudyConcept Clear palette
 * App-shell accents and layout refinements use the shared global color tokens.
 */

:root,
html[data-sc-color-scheme="studio"] {
  --sc-spectrum-ink: #142a43;
  --sc-spectrum-canvas: #f8fafc;
  --sc-spectrum-paper: #ffffff;
  --sc-spectrum-soft: #eef4f8;
  --sc-spectrum-line: rgba(20, 42, 67, 0.12);
  --sc-spectrum-muted: #52677d;
  --sc-spectrum-iris: #176dce;
  --sc-spectrum-iris-soft: #eaf4ff;
  --sc-spectrum-jade: #16877f;
  --sc-spectrum-jade-soft: #e2f7f7;
  --sc-spectrum-persimmon: var(--sc-theme-primary, #176dce);
  --sc-spectrum-persimmon-soft: #eaf4ff;
  --sc-spectrum-marigold: #f4b740;
  --sc-spectrum-marigold-soft: #fff6df;
  --sc-spectrum-raspberry: #16877f;
  --sc-spectrum-raspberry-soft: #e2f7f7;
  --sc-spectrum-cyan: #176dce;
  --sc-spectrum-cyan-soft: #eaf4ff;
  --sc-theme-bg: var(--sc-spectrum-canvas);
  --sc-theme-surface: var(--sc-spectrum-paper);
  --sc-theme-soft: var(--sc-spectrum-soft);
  --sc-theme-text: var(--sc-spectrum-ink);
  --sc-theme-muted: var(--sc-spectrum-muted);
  --sc-theme-border: var(--sc-spectrum-line);
  --sc-theme-primary: #176dce;
  --sc-theme-primary-hover: #125cad;
  --sc-theme-accent: var(--sc-spectrum-jade);
  --sc-theme-primary-soft: var(--sc-spectrum-iris-soft);
  --sc-intelligence: var(--sc-spectrum-iris);
  --sc-progress: var(--sc-spectrum-jade);
  --sc-action: #176dce;
  --sc-achievement: var(--sc-spectrum-marigold);
  --sc-connection: var(--sc-spectrum-raspberry);
  --sc-discovery: var(--sc-spectrum-cyan);
}

/* Focused application refinements: preserve the established layout while
   tightening high-whitespace library headers and honoring hidden sync actions. */
[data-bbk12-disconnect][hidden],
[data-google-calendar-disconnect][hidden] {
  display: none !important;
}

@media (min-width: 768px) {
  html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl {
    padding-top: 2rem !important;
  }

  html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl > .mb-16 {
    margin-bottom: 2.25rem !important;
  }

  html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl > .mb-16 h1 {
    margin-bottom: 1rem !important;
    font-size: clamp(2.75rem, 5vw, 4.8rem) !important;
  }
}

html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] {
  --sc-sidebar-bg: rgba(248, 250, 252, 0.96);
  --sc-sidebar-surface: rgba(255, 255, 255, 0.96);
  --sc-sidebar-surface-strong: #ffffff;
  --sc-sidebar-surface-soft: #eef4f8;
  --sc-sidebar-border: rgba(20, 42, 67, 0.12);
  --sc-sidebar-border-soft: rgba(20, 42, 67, 0.07);
  --sc-sidebar-primary: #176dce;
  --sc-sidebar-primary-soft: #eaf4ff;
  --sc-sidebar-accent: #16877f;
  --sc-sidebar-accent-soft: #e2f7f7;
  --sc-sidebar-text: #142a43;
  --sc-sidebar-muted: #52677d;
  --sc-sidebar-faint: #65788d;
  --sc-ui-card-border: rgba(20, 42, 67, 0.11);
  --sc-ui-card-shadow: 0 8px 24px rgba(20, 42, 67, 0.045);
  --sc-ui-surface: rgba(255, 255, 255, 0.97);
  --sc-ui-surface-soft: rgba(238, 244, 248, 0.96);
  --sc-ui-focus-ring: 0 0 0 3px rgba(23, 109, 206, 0.2);
  --sc-ui-success: #0c6f68;
  --sc-ui-warning: #805000;
  --sc-ui-danger: #c84b4b;
  --sc-page-accent: var(--sc-spectrum-iris);
  --sc-page-accent-soft: var(--sc-spectrum-iris-soft);
  background: #f8fafc !important;
  color: #142a43 !important;
}

html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] { --sc-page-accent: var(--sc-spectrum-iris); --sc-page-accent-soft: var(--sc-spectrum-iris-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="schedule"] { --sc-page-accent: var(--sc-spectrum-persimmon); --sc-page-accent-soft: var(--sc-spectrum-persimmon-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="analytics"] { --sc-page-accent: var(--sc-spectrum-cyan); --sc-page-accent-soft: var(--sc-spectrum-cyan-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="achievements"] { --sc-page-accent: var(--sc-spectrum-marigold); --sc-page-accent-soft: var(--sc-spectrum-marigold-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="profile"] { --sc-page-accent: var(--sc-spectrum-raspberry); --sc-page-accent-soft: var(--sc-spectrum-raspberry-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="subjects"],
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="library"] { --sc-page-accent: var(--sc-spectrum-cyan); --sc-page-accent-soft: var(--sc-spectrum-cyan-soft); }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="cards"],
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="study"] { --sc-page-accent: var(--sc-spectrum-iris); --sc-page-accent-soft: var(--sc-spectrum-iris-soft); }
/* Quiet architecture: cool white canvas, paper surfaces and focused blue actions. */
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.bg-background) { background-color: #f8fafc !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.bg-surface, .bg-surface-bright, .bg-surface-container-lowest, .bg-white) { background-color: #ffffff !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.bg-surface-container, .bg-surface-container-low, .bg-surface-container-high) { background-color: #eef4f8 !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.text-on-background, .text-on-surface) { color: #142a43 !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.text-primary) { color: #176dce !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.text-on-surface-variant, .text-outline) { color: #52677d !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.border-outline-variant) { border-color: rgba(20, 42, 67, 0.12) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.bg-primary) { background-color: #176dce !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.bg-secondary) { background-color: #0c6f68 !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.text-secondary) { color: #0c6f68 !important; }
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(button, a, input, select, textarea):focus-visible {
  outline-color: var(--sc-page-accent, #176dce) !important;
}

/* Navigation uses the current page colour as a small wayfinding signal. */
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-unified-nav .sc-app-sidebar-link.is-active,
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-app-sidebar-link.is-active,
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .mobile-app-item[data-active="true"] {
  background: var(--sc-page-accent-soft, #eaf4ff) !important;
  color: var(--sc-page-accent, #176dce) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-unified-nav .sc-app-sidebar-link.is-active::before,
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-app-sidebar-link.is-active::before {
  background: var(--sc-page-accent, #176dce) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-theme-toggle,
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-command-launcher {
  color: var(--sc-spectrum-iris);
}
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-context-topbar {
  border-color: rgba(20, 42, 67, 0.11) !important;
  background: rgba(255, 255, 255, 0.96) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] .sc-context-lyne {
  color: var(--sc-spectrum-iris) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] :where(.sc-context-trigger, .sc-context-icon, .sc-context-profile):hover {
  background: #eef4f8 !important;
}

/* Dashboard semantic colour: ideas, progress, urgency and reward never compete. */
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] {
  --sc-paper: #f8fafc;
  --sc-ink: #142a43;
  --sc-muted: #52677d;
  --sc-line: rgba(20, 42, 67, 0.12);
  --sc-green: #142a43;
  --sc-green-dark: #142a43;
  --sc-mint: #eef4f8;
  --sc-purple: #176dce;
  --sc-orange: #176dce;
  --sc-spectrum-iris: #176dce;
  --sc-spectrum-jade: #16877f;
  --sc-spectrum-persimmon: #176dce;
  --sc-spectrum-cyan: #176dce;
  --sc-spectrum-raspberry: #0c6f68;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-dashboard-shell,
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-dashboard-main { background: #f8fafc !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] :where(.sc-next-action, .sc-today-card, .sc-courses-card, .sc-review-card, .sc-lyne-card, .sc-quick-create, .sc-streak-metric, .sc-weekly-metric) {
  border-color: rgba(20, 42, 67, 0.11) !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(20, 42, 67, 0.025) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-streak-metric {
  border-color: #e1e8ef !important;
  background: #ffffff !important;
  color: #805000 !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-progress-ring {
  background: conic-gradient(var(--sc-spectrum-jade) calc(var(--progress) * 1%), #e2f7f7 0) !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-desk-resume {
  border-color: #176dce !important;
  background: #176dce !important;
  color: #ffffff !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-desk-resume:hover { background: #125cad !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-today-card .sc-desk-timeline-empty__actions a:last-child {
  border-color: #176dce !important;
  background: #176dce !important;
  color: #ffffff !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-desk-workspace__kicker,
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-desk-view-tabs button[aria-selected="true"] { color: #52677d !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-desk-view-tabs button[aria-selected="true"] { border-color: #e1e8ef !important; background: #eef4f8 !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-card,
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-message {
  border-color: #e1e8ef !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-message { background: #f8fafc !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-card header .material-symbols-outlined,
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-message > .material-symbols-outlined { color: var(--sc-spectrum-iris) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-message > .material-symbols-outlined { background: var(--sc-spectrum-iris-soft) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-lyne-actions button:first-child {
  border-color: #176dce !important;
  background: #176dce !important;
}
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-review-stats > span:first-child :where(strong, small) { color: var(--sc-spectrum-persimmon) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-review-stats > span:nth-child(2) :where(strong, small) { color: var(--sc-spectrum-iris) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-review-stats > span:nth-child(3) :where(strong, small) { color: var(--sc-spectrum-jade) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-quick-create a:nth-child(1) > .material-symbols-outlined:first-child { color: var(--sc-spectrum-cyan) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-quick-create a:nth-child(2) > .material-symbols-outlined:first-child { color: var(--sc-spectrum-persimmon) !important; }
html[data-sc-color-scheme="studio"] body[data-sc-sidebar-page="dashboard"] .sc-quick-create a:nth-child(3) > .material-symbols-outlined:first-child { color: var(--sc-spectrum-raspberry) !important; }

html[data-sc-color-scheme="studio"] .sc-app-update-copy strong { color: var(--sc-spectrum-iris) !important; }
html[data-sc-color-scheme="studio"] .sc-app-update-apply,
html[data-sc-color-scheme="studio"] .sc-signin-toast-link { background: #176dce !important; color: #ffffff !important; }

@media (max-width: 767px) {
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero {
    position: relative;
    grid-template-columns: minmax(0, 1fr) !important;
    align-items: start !important;
    overflow: hidden;
    border: 1px solid rgba(20, 42, 67, 0.11) !important;
    background: #ffffff !important;
    color: #142a43 !important;
    box-shadow: 0 7px 22px rgba(20, 42, 67, 0.045) !important;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero::before {
    position: absolute;
    inset: 0 auto 0 0;
    width: 4px;
    background: linear-gradient(180deg, var(--sc-spectrum-iris), var(--sc-spectrum-persimmon));
    content: "";
    display: block !important;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero [data-dashboard-heading] {
    color: #142a43 !important;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero :where([data-dashboard-kicker], [data-dashboard-summary]) {
    color: #52677d !important;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero > .flex {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero .sc-streak-metric {
    border-color: rgba(227, 167, 47, 0.25) !important;
    background: var(--sc-spectrum-marigold-soft) !important;
    color: #805000 !important;
  }
  html[data-sc-color-scheme="studio"] body.sc-mobile-remake.sc-mobile-v2[data-sc-sidebar-page="dashboard"] .sc-mv2-dashboard-hero .sc-weekly-metric {
    background: var(--sc-spectrum-jade-soft) !important;
  }
}

/* LYNE owns iris; the assistant remains recognisable on every app page. */
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 {
  --lyne-spectrum: #176dce;
  --lyne-spectrum-soft: #eaf4ff;
}
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-panel-kicker,
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-command-section > header .material-symbols-outlined,
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-panel-icon-btn:hover { color: #176dce !important; }
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-dock-action:hover { border-color: rgba(23, 109, 206, 0.3) !important; background: #eaf4ff !important; box-shadow: 0 7px 18px rgba(23, 109, 206, 0.08) !important; }
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-dock-action .material-symbols-outlined,
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-command-option > .material-symbols-outlined { background: #eaf4ff !important; color: #176dce !important; }
html[data-sc-color-scheme="studio"] #lyne-widget.lyne-companion-v2 .lyne-command-menu-count { border-color: rgba(23, 109, 206, 0.15) !important; background: #eaf4ff !important; color: #176dce !important; }

/* Semantic status conventions available to current and future app components. */
html[data-sc-color-scheme="studio"] [data-sc-semantic="insight"] { --sc-semantic: var(--sc-spectrum-iris); --sc-semantic-soft: var(--sc-spectrum-iris-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic="progress"] { --sc-semantic: var(--sc-spectrum-jade); --sc-semantic-soft: var(--sc-spectrum-jade-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic="action"] { --sc-semantic: var(--sc-spectrum-persimmon); --sc-semantic-soft: var(--sc-spectrum-persimmon-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic="achievement"] { --sc-semantic: var(--sc-spectrum-marigold); --sc-semantic-soft: var(--sc-spectrum-marigold-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic="connection"] { --sc-semantic: var(--sc-spectrum-raspberry); --sc-semantic-soft: var(--sc-spectrum-raspberry-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic="discovery"] { --sc-semantic: var(--sc-spectrum-cyan); --sc-semantic-soft: var(--sc-spectrum-cyan-soft); }
html[data-sc-color-scheme="studio"] [data-sc-semantic] { color: var(--sc-semantic); }

@media (prefers-reduced-motion: reduce) {
  html[data-sc-color-scheme="studio"] body[data-sc-navigation-shell="true"] * { scroll-behavior: auto; }
}

/* Application hierarchy. Keep layout and interaction states in their owning
   components; these shared rules govern type, surfaces and visual emphasis. */
body[data-sc-ui-cohesive] {
  font-family: var(--sc-font-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
  -webkit-font-smoothing: antialiased;
  --sc-ui-card-radius: var(--sc-radius-panel, 12px);
  --sc-ui-card-shadow: var(--sc-shadow-panel, 0 1px 2px rgb(20 42 67 / 3%));
  --sc-unified-line: var(--sc-theme-border);
  --sc-unified-paper: var(--sc-theme-bg);
  --sc-unified-ink: var(--sc-theme-text);
  --sc-unified-muted: var(--sc-theme-muted);
  --sc-unified-green: var(--sc-theme-primary);
  --sc-unified-mint: var(--sc-theme-primary-soft);
}
html[data-sc-color-scheme] body[data-sc-ui-cohesive][data-sc-sidebar-page] {
  background: var(--sc-theme-bg) !important;
  color: var(--sc-theme-text) !important;
}
html[data-sc-color-scheme] body[data-sc-ui-cohesive] :is(.sc-app-sidebar, .sc-context-topbar, .sc-study-sidebar-footer, .sc-unified-sidebar-profile, .sc-help-menu) {
  background: var(--sc-theme-surface) !important;
  color: var(--sc-theme-text) !important;
  border-color: var(--sc-theme-border) !important;
}
html[data-sc-color-scheme] body[data-sc-ui-cohesive] .sc-unified-nav .sc-app-sidebar-link.is-active {
  background: var(--sc-theme-primary-soft) !important;
  color: var(--sc-theme-primary) !important;
}
body[data-sc-ui-cohesive] :is(.font-headline, .font-label, .font-body, input, button, select, textarea, .dash h1, .dash h2, .sc-context-topbar, .sc-app-sidebar) {
  font-family: var(--sc-font-ui, Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif) !important;
}
body[data-sc-ui-cohesive] :is(.dash-card, .schedule-surface, .sc-library-continue, .sc-library-rail) {
  border-color: var(--sc-theme-border) !important;
  border-radius: var(--sc-radius-panel, 12px) !important;
  background: var(--sc-theme-surface) !important;
  color: var(--sc-theme-text);
  box-shadow: var(--sc-shadow-panel) !important;
}
body[data-sc-ui-cohesive] :is(.dash-card-head h2, .sc-library-rail-title) {
  color: var(--sc-theme-text) !important;
  font-size: 17px;
  font-weight: 650;
  letter-spacing: -.025em;
  line-height: 1.4;
}
body[data-sc-ui-cohesive] :is(.dash-card-head a, .dash-text-button, .dash-calendar-link) {
  color: var(--sc-theme-primary) !important;
  font-size: 13px;
  font-weight: 500;
}
body[data-sc-ui-cohesive] :is(.dash-tabs button, .dash-assignment small, .dash-meta, .dash-week, .dash-heading p) {
  color: var(--sc-theme-muted);
}
body[data-sc-ui-cohesive] :is(.dash-tabs [aria-pressed="true"], .dash-tabs [aria-pressed="true"]:hover) {
  border-color: var(--sc-theme-primary);
  color: var(--sc-theme-primary);
}
body[data-sc-ui-cohesive] :is(.dash-dialog, .sc-confirm, .sc-feedback) {
  background: var(--sc-theme-surface);
  color: var(--sc-theme-text);
}
body[data-sc-ui-cohesive] :is(.dash-dialog input, .dash-dialog textarea, .dash-schedule-navigation input, .dash-schedule-navigation button) {
  border-color: var(--sc-theme-border);
  border-radius: var(--sc-radius-control, 8px);
  background: var(--sc-theme-surface);
  color: var(--sc-theme-text);
}
body[data-sc-ui-cohesive] :is(.sc-app-sidebar-link, .sc-app-sidebar-footer-link, .sc-library-chip) {
  border-radius: var(--sc-radius-control, 8px);
  box-shadow: none !important;
  transform: none !important;
}
body[data-sc-ui-cohesive] .sc-library-chip {
  font: 500 13px/1.3 var(--sc-font-ui, system-ui);
  letter-spacing: 0;
  text-transform: none;
}
body[data-sc-ui-cohesive] :is(.sc-feedback button, .sc-confirm button) {
  font-family: inherit;
  border-radius: var(--sc-radius-control, 8px);
}
body[data-sc-ui-cohesive] .sc-context-brand { color: var(--sc-theme-text) !important; }
body[data-sc-ui-cohesive] .sc-context-brand span { font-size: 15px !important; font-weight: 650 !important; letter-spacing: -.025em; }
body[data-sc-ui-cohesive] .sc-context-trigger {
  background: transparent !important;
  border-color: transparent !important;
  border-radius: var(--sc-radius-control, 8px) !important;
  box-shadow: none !important;
  color: var(--sc-theme-text) !important;
  font-weight: 500 !important;
}
body[data-sc-ui-cohesive] .sc-context-trigger:is(:hover, [aria-expanded="true"]) { background: var(--sc-theme-soft) !important; }
body[data-sc-ui-cohesive] .sc-context-trigger-leading { color: var(--sc-theme-muted) !important; }
body[data-sc-ui-cohesive] .sc-context-mode { color: var(--sc-theme-muted); font-size: 11px; font-weight: 400; }
body[data-sc-ui-cohesive] :is(.sc-context-lyne, .sc-context-all) {
  background: var(--sc-theme-surface) !important;
  border-color: var(--sc-theme-border) !important;
  border-radius: var(--sc-radius-control, 8px) !important;
  box-shadow: none !important;
  font-weight: 550;
}
body[data-sc-ui-cohesive] .sc-context-topbar { box-shadow: none !important; }
body[data-sc-ui-cohesive] .sc-app-sidebar-link:hover { transform: none !important; }

@media (min-width: 768px) {
  html body[data-sc-ui-cohesive][data-sc-sidebar-page]:not([data-sc-sidebar-page="documents"]):not([data-sc-sidebar-page="document"]) main[data-sidebar-main] h1 {
    font-size: 30px !important;
    font-weight: 650 !important;
    line-height: 1.25 !important;
    letter-spacing: -.035em !important;
    color: var(--sc-theme-text) !important;
  }
  body[data-sc-ui-cohesive] .dash-hero { gap: 24px; margin-bottom: 24px !important; padding: 0; }
  body[data-sc-ui-cohesive] .dash-lyne-hero { display: none; }
  body[data-sc-ui-cohesive] .dash-greeting { font-size: 12px !important; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--sc-theme-muted); margin-bottom: 6px; }
  body[data-sc-ui-cohesive] .dash-hero-copy > p:last-child { font-size: 14px; }
  body[data-sc-ui-cohesive] .dash-progress-card { min-width: 0; border: 0; border-radius: 0; padding: 0 0 0 20px; border-left: 1px solid var(--sc-theme-border); background: transparent; box-shadow: none; }
  body[data-sc-ui-cohesive] .dash-progress-icon { width: 36px; height: 36px; border-radius: 8px; }
  body[data-sc-ui-cohesive] .dash-progress-card strong { font-size: 14px; font-weight: 600; }
  body[data-sc-ui-cohesive] .dash-next { padding: 20px; border: 1px solid var(--sc-theme-border); border-radius: var(--sc-radius-panel, 12px); background: var(--sc-theme-surface); box-shadow: none; }
  body[data-sc-ui-cohesive] .dash-next h2 { font-size: 21px; font-weight: 650; color: var(--sc-theme-text); }
  body[data-sc-ui-cohesive] .dash-next-kicker { text-transform: none; letter-spacing: 0; font-size: 12px; font-weight: 500; color: var(--sc-theme-muted); }
  body[data-sc-ui-cohesive] .dash-card { padding: 20px; }
  body[data-sc-ui-cohesive] .dash-card-head { margin-bottom: 14px; }
  body[data-sc-ui-cohesive] .dash-grid { gap: 20px; }
  body[data-sc-ui-cohesive] .dash-assignment strong { font-size: 14px; font-weight: 550; }
  body[data-sc-ui-cohesive] .dash-assignment small { font-size: 12px; }
  body[data-sc-ui-cohesive] .dash-slot { padding-block: 14px; }
  body[data-sc-ui-cohesive] .dash-slot-body strong { font-size: 14px; font-weight: 550; }
  body[data-sc-ui-cohesive] .dash-slot-body small { font-size: 12px; }
  body[data-sc-ui-cohesive][data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl > .mb-16 { margin-bottom: 24px !important; }
  body[data-sc-ui-cohesive][data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl > .mb-16 h1 { margin-bottom: 8px !important; }
  body[data-sc-ui-cohesive][data-sc-sidebar-page="subjects"] main[data-sidebar-main] > .max-w-7xl > .mb-16 p { font-size: 14px; line-height: 1.5; }
  body[data-sc-ui-cohesive] .sc-app-sidebar-link { min-height: 40px; padding-block: 8px; }
  body[data-sc-ui-cohesive] .sc-app-sidebar-label { font-size: 13px; font-weight: 500; }
  body[data-sc-ui-cohesive] .sc-app-sidebar-link .sc-app-sidebar-icon { width: 22px; height: 22px; font-size: 20px; }
}
@media (pointer: coarse) {
  body[data-sc-ui-cohesive] :is(.sc-app-sidebar-link, .sc-app-sidebar-footer-link, .sc-library-chip) { min-height: 44px; }
}
