/* White dashboard chrome; navigation structure and artwork stay unchanged. */
/* Library and study folders share the same compact paired layout. */
#dashboardWorkspace .folder-cluster .folder-group {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 76px));
    justify-content: center;
    gap: 2px;
    padding: 4px 0 0;
}
#dashboardWorkspace .folder-cluster .folder-tool {
    flex-direction: column;
    justify-content: center;
    height: 76px;
    min-height: 76px;
    padding: 6px 2px 0;
    gap: 4px;
    text-align: center;
}
#dashboardWorkspace .folder-cluster .folder-tool__visual {
    width: 70px;
    height: 50px;
    min-height: 50px;
    flex: 0 0 50px !important;
}
#dashboardWorkspace .folder-cluster .react-folder-mount {
    transform: translate(-50%, -50%) scale(1.1, .9);
}
@media (max-width: 700px) {
    #dashboardWorkspace .folder-cluster .react-folder-mount { transform: translate(-50%, -50%) scale(1.04, .9); }
}
#dashboardWorkspace .folder-cluster .folder-tool:is(:hover, :focus-visible, .is-active) {
    background: transparent;
}
#dashboardWorkspace .folder-cluster .folder-tool-label {
    width: 100%;
    font-size: 12px !important;
    line-height: 16px !important;
    text-align: center;
    white-space: nowrap;
}
/* The library's children grow to document height; scroll its bounded outer pane. */
body:has(#dashboardWorkspace:not([hidden])) .app-shell .main > .workspace.paper-selection-open:not([hidden]) {
    overflow-y: auto;
    min-height: 0;
    overscroll-behavior-y: contain;
}
#themeToggle { display: none !important; }
.topbar .account-trigger { width: 36px; height: 36px; min-width: 36px; min-height: 36px; padding: 0; justify-content: center; border: 0; background: transparent; }
.topbar #accountButtonLabel { display: none; }
.topbar .account-trigger .account-trigger-avatar { display: inline-flex; width: 30px; height: 30px; flex: 0 0 30px; }
.topbar-settings-button { display: grid; place-items: center; width: 34px; height: 34px; padding: 7px; border: 0; border-radius: 8px; color: var(--muted); background: transparent; cursor: pointer; }
.topbar-settings-button:is(:hover, [aria-expanded="true"]) { background: var(--surface-soft); color: var(--text); }
.topbar-settings-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.topbar-settings-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 100; width: min(230px, calc(100vw - 24px)); padding: 10px 6px; border: 1px solid var(--border); border-radius: 12px; background: var(--surface); color: var(--text); box-shadow: 0 2px 6px rgb(0 0 0 / 12%); font: 13px/1.4 var(--font-ui); }
.topbar-settings-menu[hidden] { display: none; }
.topbar-settings-menu { max-height: calc(100dvh - 106px); overflow-y: auto; overscroll-behavior-y: contain; }
.topbar-settings-menu h3 { margin: 10px 12px 5px; font-size: 11px; font-weight: 400; color: var(--muted); }
.topbar-settings-menu h3:first-child { margin-top: 3px; }
.topbar-settings-menu button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; color: var(--text); background: transparent; text-align: left; font: inherit; cursor: pointer; }
.topbar-settings-menu button svg { display: block; width: 17px; height: 17px; color: var(--muted); }
.topbar-settings-menu button:is(:hover, [aria-pressed="true"]) { background: var(--surface-soft); }
.topbar-settings-menu button:focus-visible, .topbar-settings-button:focus-visible { outline: 2px solid var(--muted); outline-offset: -2px; }
/* These pages contain a document-length flow rather than their own reader panes.
   The shared bezel must not clip that flow inside the fixed-height grid cell. */
body:has(#dashboardWorkspace:not([hidden])) .app-shell:not(.notes-editor-mode) .main > :is(.app-home-panel, .account-page, .settings-page, .find-question-page, .review-workspace, .notes-workspace):not([hidden]) {
    min-height: 0;
    overflow-y: auto;
    overscroll-behavior-y: contain;
}
body:has(#dashboardWorkspace:not([hidden])),
[data-theme="dark"] body:has(#dashboardWorkspace:not([hidden])) {
    --dashboard-join-surface: var(--surface);
    --dashboard-sidebar-width: 198px;
    --dashboard-chrome-radius: 14px;
    --shell-bar-height: 46px;
}
html:not([data-theme="dark"]) body:has(#dashboardWorkspace:not([hidden])) {
    --bg: #fff;
    --accent: #555d68;
    --accent-hover: #303740;
}
body:has(#dashboardWorkspace:not([hidden])) .app-shell:not(.topical-reader-mode):not(:has(.topical-workspace:not([hidden]) #topicalQuestionView:not([hidden]))) .main {
    grid-template-rows: var(--shell-bar-height) minmax(0, 1fr);
    padding: 0;
    background: var(--surface);
}
body:has(#dashboardWorkspace:not([hidden])) .main > .topbar {
    display: flex !important;
    grid-column: 1 / -1;
    grid-row: 1;
    height: var(--shell-bar-height);
    min-height: 0;
    padding: 4px 10px;
    box-sizing: border-box;
    background: var(--surface);
    border: 0;
    z-index: 10;
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-left { gap: 6px; flex: 0 0 auto; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-brand {
    width: auto; margin: 0; transform: none; opacity: 1; pointer-events: auto;
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-brand-logo { width: auto; max-width: none; }
.prep-atlas-brand__mascot-frame { background: transparent; }
body:has(#dashboardWorkspace:not([hidden])) .topbar .sidebar-toggle-button { transform: none; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-search-button {
    position: static; flex: 0 1 260px; width: 260px; min-width: 100px;
    min-height: 30px; margin: 0 auto 0 6px; padding: 0 11px;
    color: var(--muted); background: var(--surface); border: 1px solid var(--border);
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-search-button:hover,
body:has(#dashboardWorkspace:not([hidden])) .topbar-search-button:focus-visible { background: var(--surface-soft); border-color: var(--muted); }
body:has(#dashboardWorkspace:not([hidden])) .main > #dashboardWorkspace { grid-row: 2; background: var(--surface); }
body:has(#dashboardWorkspace:not([hidden])) .main > #dashboardWorkspace .dashboard-inner {
    --text: #252a31; --muted: #747b85; --border: #d9dde3;
    --surface: #fff; --surface-soft: #f3f4f6; --dashboard-accent: #747b85;
    padding-top: 6px; background: var(--surface);
}
[data-theme="dark"] body:has(#dashboardWorkspace:not([hidden])) .main > #dashboardWorkspace .dashboard-inner {
    --text: #e8eaed; --muted: #9aa1ad; --border: #353b45;
    --surface: #171b23; --surface-soft: #242a34; --dashboard-accent: #9aa1ad;
}
#dashboardWorkspace .dashboard-sidebar-brand,
#dashboardWorkspace .dashboard-sidebar-footer { display: none; }
body:has(#dashboardWorkspace:not([hidden])) .main::after {
    inset: var(--shell-bar-height) 0 0 var(--dashboard-sidebar-width) !important;
    border: 0 !important;
    border-top: 2px solid var(--border) !important;
    border-left: 2px solid var(--border) !important;
    border-radius: var(--dashboard-chrome-radius) 0 0 0;
}
body:has(#dashboardWorkspace:not([hidden])) .app-shell:not(.notes-editor-mode):not(.topical-reader-mode) .main > section:not(#dashboardWorkspace):not(.global-search):not([hidden]) {
    grid-row: 2 !important; border-top: 2px solid var(--border); border-left: 2px solid var(--border);
    border-radius: var(--dashboard-chrome-radius) 0 0 0;
    box-sizing: border-box;
}
#dashboardWorkspace .dashboard-subject-trigger,
#dashboardWorkspace .dashboard-subject-trigger:hover,
#dashboardWorkspace .dashboard-subject-trigger[aria-expanded="true"] { color: var(--text); background: var(--surface-soft); }
#dashboardWorkspace .dashboard-subject-plan { color: var(--muted); background: var(--surface); border-color: var(--border); }
#dashboardWorkspace .sidebar-section-label { color: var(--muted); }
#dashboardWorkspace :is(.dashboard-home-button, .quick-chat-button, .sidebar-nav-button, .folder-tool),
#dashboardWorkspace .atlas-launcher__items button { color: var(--text); background: transparent; }
#dashboardWorkspace :is(.dashboard-home-button-icon, .quick-chat-button-icon, .sidebar-nav-icon),
#dashboardWorkspace .atlas-launcher__items button.is-active .sidebar-nav-icon { color: var(--muted); }
#dashboardWorkspace :is(.dashboard-home-button, .quick-chat-button, .sidebar-nav-button, .folder-tool):is(:hover, :focus-visible, .is-active),
#dashboardWorkspace .atlas-launcher__items button:is(:hover, :focus-visible, .is-active) { color: var(--text); background: var(--surface-soft); }
#dashboardWorkspace .dashboard-columns button:focus-visible { outline: 2px solid var(--muted); outline-offset: -2px; }
#dashboardWorkspace .dashboard-columns { padding-bottom: 12px; }
/* A quiet original aurora above the home overview; the cards remain in normal scroll flow. */
body:has(#dashboardWorkspace:not([hidden])) .main > #appHomeWorkspace:not(.is-analytics-page) {
    padding-top: 114px;
    background:
        radial-gradient(ellipse 55% 110px at 15% 0, rgb(99 208 184 / 19%), transparent 85%),
        radial-gradient(ellipse 60% 125px at 77% -20px, rgb(177 143 235 / 18%), transparent 85%),
        radial-gradient(ellipse 42% 90px at 48% 0, rgb(166 213 234 / 15%), transparent 90%),
        var(--bg);
}
#appHomeWorkspace .app-home-header { display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.home-exam-countdown { position: relative; flex: 0 0 auto; text-align: right; }
.home-exam-clock { display: flex; justify-content: flex-end; gap: 6px; }
.home-exam-clock[hidden] { display: none; }
.home-exam-clock > div { display: grid; gap: 2px; min-width: 49px; padding: 7px 8px; border-radius: 8px; background: var(--surface-soft); text-align: center; }
.home-exam-clock strong { color: var(--text); font-size: 21px; line-height: 1.1; font-weight: 500; font-variant-numeric: tabular-nums; }
.home-exam-clock span { color: var(--muted); font-size: 10px; }
.home-exam-countdown p { margin: 6px 0 0; color: var(--muted); font-size: 11px; }
#homeExamCaption { cursor: pointer; }
#homeExamCaption:focus-visible { outline: 2px solid var(--muted); outline-offset: 3px; border-radius: 3px; }
#homeExamEdit[hidden] { display: none; }
.exam-select { position: relative; min-width: 0; }
#appHomeWorkspace .exam-select-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; min-height: 34px; padding: 7px 9px; text-align: left; }
#appHomeWorkspace .exam-select-trigger::after { content: ""; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg) translateY(-2px); flex: 0 0 auto; }
.exam-select-options { position: absolute; top: calc(100% + 4px); left: 0; right: 0; z-index: 30; padding: 4px; border: 1px solid var(--border); border-radius: 7px; background: var(--surface); box-shadow: 0 2px 6px rgb(20 25 35 / 8%); max-height: 190px; overflow-y: auto; }
.exam-select-options[hidden] { display: none; }
#appHomeWorkspace .exam-select-options button { display: block; width: 100%; padding: 7px 5px; border: 0; text-align: left; white-space: nowrap; }
#appHomeWorkspace .exam-select-options button:is(:hover, :focus-visible, [aria-selected="true"]) { background: var(--surface-soft); outline: none; transform: none; }
#appHomeWorkspace .home-exam-countdown button { padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 11px; text-decoration: underline; text-underline-offset: 3px; }
.home-exam-dialog { position: absolute; z-index: 25; right: calc(100% + 12px); top: 0; width: 300px; box-sizing: border-box; padding: 18px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); color: var(--text); font-family: var(--font-ui); text-align: left; box-shadow: 0 2px 6px rgb(20 25 35 / 8%); }
.home-exam-dialog[hidden] { display: none; }
.home-exam-dialog::after { content: ""; position: absolute; left: 100%; top: 0; width: 14px; height: 100%; }
.home-exam-dialog h2 { margin: 0 0 8px; font-size: 16px; font-weight: 600; }
#appHomeWorkspace .home-exam-dialog p { margin: 8px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.home-exam-fields { display: grid; grid-template-columns: minmax(0, 1fr) 82px; gap: 10px; margin: 14px 0; }
.home-exam-dialog label { display: grid; gap: 6px; font-size: 12px; }
#appHomeWorkspace .home-exam-dialog select { box-sizing: border-box; width: 100%; padding: 8px 5px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; }
.home-exam-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }
#appHomeWorkspace .home-exam-dialog button { padding: 7px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--text); font: inherit; font-size: 12px; cursor: pointer; text-decoration: none; }
#appHomeWorkspace .home-exam-dialog button[type="submit"] { background: var(--text); color: var(--surface); border-color: var(--text); }
.home-exam-dialog .home-exam-error { color: #be4646; }
.home-exam-source { display: inline-block; margin-top: 2px; color: var(--muted); font-size: 11px; text-underline-offset: 3px; }
.subject-save-button { flex: 0 0 auto; padding: 5px 9px; border: 1px solid var(--border); border-radius: 6px; background: var(--surface); color: var(--muted); font: inherit; font-size: 12px; cursor: pointer; }
.subject-save-button[aria-pressed="true"] { color: var(--text); background: var(--surface-soft); }
.dashboard-subject-menu.is-compact { display: block; position: fixed; inset: auto; left: var(--subject-menu-left); top: var(--subject-menu-top); width: var(--subject-menu-width, 236px); z-index: 100; padding: 0; }
.dashboard-subject-menu.is-compact[hidden] { display: none; }
.dashboard-subject-menu.is-compact :is(.dashboard-subject-menu-backdrop, .dashboard-subject-menu-header) { display: none; }
.dashboard-subject-menu.is-compact .dashboard-subject-menu-panel { width: 100%; max-height: min(400px, var(--subject-menu-height)); padding: 6px; border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 2px 6px rgb(20 25 35 / 8%); background: var(--surface); }
.dashboard-subject-menu.is-compact .dashboard-subject-menu-options { display: grid; gap: 2px; max-height: inherit; overflow-y: auto; }
.saved-subject-item, .saved-subject-add { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px; border: 0; border-radius: 6px; background: transparent; color: var(--text); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.saved-subject-item small { margin-left: auto; color: var(--muted); font-size: 10px; }
.saved-subject-item:is(:hover, :focus-visible), .saved-subject-add:is(:hover, :focus-visible) { background: color-mix(in srgb, var(--surface-soft) 55%, var(--surface)); }
.saved-subject-toolbar { display: flex; align-items: center; justify-content: space-between; padding-left: 10px; color: var(--muted); font-size: 11px; }
.saved-subject-add { justify-content: center; width: 28px; height: 28px; padding: 5px; color: #ff5267; }
.saved-subject-add svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.saved-subject-item { flex-wrap: wrap; }
.saved-subject-item span { min-width: 0; overflow-wrap: anywhere; }
.saved-subject-item:focus-visible, .saved-subject-add:focus-visible { outline: 2px solid #ff5267; outline-offset: -2px; }
.dashboard-subject-menu:not(.is-compact) .dashboard-subject-menu-panel { width: min(560px, 100%); padding: 18px; border-radius: 10px; box-shadow: 0 2px 6px rgb(20 25 35 / 8%); }
.dashboard-subject-menu-header { gap: 12px; margin-bottom: 14px; }
.dashboard-subject-menu-header h2 { font-size: 18px; font-weight: 600; }
.dashboard-subject-menu-close { width: 30px; height: 30px; border: 0; border-radius: 6px; color: var(--muted); }
.dashboard-subject-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; padding: 10px 12px; min-height: 56px; border: 0; border-radius: 18px; }
.dashboard-subject-option.active { background: transparent; }
.dashboard-subject-option:hover { background: color-mix(in srgb, var(--surface-soft) 55%, var(--surface)); }
.dashboard-subject-option-copy strong { white-space: normal; font-size: 14px; font-weight: 600; }
.dashboard-subject-level-options { grid-column: 2; grid-row: 1; justify-self: end; padding: 3px; border-radius: 999px; background: var(--surface-soft); }
.dashboard-subject-level-button { min-height: 28px; padding: 4px 10px; border-radius: 999px; background: transparent; font-size: 11px; font-weight: 400; }
.dashboard-subject-level-button:hover { color: var(--text); background: var(--surface); }
.dashboard-subject-level-button.active { color: var(--text); background: var(--surface); box-shadow: none; }
.subject-save-button { grid-column: 3; grid-row: 1; display: grid; place-items: center; width: 28px; height: 28px; padding: 5px; border: 0; background: transparent; color: #c5c9d0; }
.subject-save-button[aria-pressed="true"] { color: #ff5267; background: transparent; }
.subject-save-button svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2.5; stroke-linecap: round; }
.dashboard-subject-option .dashboard-subject-level-options { max-width: 0; padding-inline: 0; opacity: 0; overflow: hidden; transform: translateX(8px); visibility: hidden; transition: max-width 200ms ease, padding 200ms ease, opacity 160ms ease, transform 200ms ease, visibility 0s 200ms; }
.dashboard-subject-option.is-saved .dashboard-subject-level-options { max-width: 150px; padding-inline: 3px; opacity: 1; transform: translateX(0); visibility: visible; transition-delay: 0s; }
.dashboard-subject-menu:not(.is-compact) .dashboard-subject-menu-panel { overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c5c9d0 transparent; }
.dashboard-subject-menu:not(.is-compact) .dashboard-subject-menu-header { flex-shrink: 0; padding-right: 36px; }
.dashboard-subject-menu:not(.is-compact) .dashboard-subject-menu-options { overflow: visible; flex-shrink: 0; }
.dashboard-subject-menu-panel > .dashboard-subject-menu-close { position: sticky; top: 0; align-self: flex-end; z-index: 2; margin-bottom: -30px; flex-shrink: 0; background: var(--surface); }
.dashboard-subject-menu.is-compact .dashboard-subject-menu-panel > .dashboard-subject-menu-close { display: none; }
@media (prefers-reduced-motion: reduce) { .dashboard-subject-option .dashboard-subject-level-options { transition: none; } }
.dashboard-subject-menu-options { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--muted) 30%, var(--surface)) transparent; }
.dashboard-subject-menu-options::-webkit-scrollbar { width: 6px; }
.dashboard-subject-menu-options::-webkit-scrollbar-track { background: transparent; }
.dashboard-subject-menu-options::-webkit-scrollbar-thumb { border-radius: 999px; background: color-mix(in srgb, var(--muted) 30%, var(--surface)); }
@media (max-width: 420px) {
    .dashboard-subject-option { gap: 5px; padding-inline: 6px; }
    .dashboard-subject-option-copy strong { font-size: 12px; }
    .dashboard-subject-level-button { padding-inline: 6px; font-size: 10px; }
}
@media (max-width: 700px) {
    body:has(#dashboardWorkspace:not([hidden])) .main > #appHomeWorkspace:not(.is-analytics-page) { padding-top: 76px; }
    #appHomeWorkspace .app-home-header { align-items: flex-start; flex-direction: column; gap: 18px; }
    .home-exam-countdown { text-align: left; }
    .home-exam-clock { justify-content: flex-start; }
    .home-exam-dialog { right: auto; left: 0; top: calc(100% + 8px); width: min(300px, calc(100vw - 218px)); }
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-actions { margin-left: auto; flex: 0 0 auto; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats {
    height: 30px;
    border: 2px solid color-mix(in srgb, var(--border) 45%, var(--surface));
    border-radius: 14px;
    background: var(--surface);
    box-shadow: none;
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > button {
    position: relative;
    height: 26px;
    min-height: 26px;
    justify-content: center;
    padding-inline: 8px;
    gap: 5px;
    border: 0;
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > .topbar-streak { min-width: 42px; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > .topbar-xp { min-width: 60px; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > .topbar-energy-status { min-width: 50px; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > button + button { border-left: 0 !important; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats > button + button::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 2px;
    background: color-mix(in srgb, var(--border) 45%, var(--surface));
}
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats svg { width: 16px; height: 16px; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-stats strong { font-size: 12px; font-weight: 400; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-xp__copy { gap: 0; }
body:has(#dashboardWorkspace:not([hidden])) .topbar-xp__copy > span { font-size: 12px; }
body:has(#dashboardWorkspace:not([hidden])) .account-trigger { background: var(--surface); color: var(--text); border-color: var(--border); }
body:has(#dashboardWorkspace:not([hidden])) #energyPopover { position: absolute; top: calc(100% + 8px); bottom: auto; left: auto; right: 0; width: min(320px, calc(100vw - 24px)); }
body.dashboard-sidebar-collapsed:has(#dashboardWorkspace:not([hidden])) { --dashboard-sidebar-width: 0px; }
body.dashboard-sidebar-collapsed:has(#dashboardWorkspace:not([hidden])) .main > #dashboardWorkspace { visibility: hidden; }
@media (max-width: 700px) {
    body:has(#dashboardWorkspace:not([hidden])) { --dashboard-sidebar-width: 176px; --shell-bar-height: 88px; }
    body:has(#dashboardWorkspace:not([hidden])) .main > .topbar { flex-wrap: wrap; align-content: center; gap: 4px 8px; }
    body:has(#dashboardWorkspace:not([hidden])) .topbar .sidebar-toggle-button { display: grid !important; }
    body:has(#dashboardWorkspace:not([hidden])) .topbar-search-button { flex: 1 1 100px; width: auto; margin-left: 0; }
    body:has(#dashboardWorkspace:not([hidden])) .topbar-actions { width: 100%; justify-content: flex-end; }
    body:has(#dashboardWorkspace:not([hidden])) .account-trigger .account-trigger-avatar { display: inline-flex; }
    body:has(#dashboardWorkspace:not([hidden])) .prep-atlas-brand__name { font-size: 18px; }
    body.dashboard-sidebar-collapsed:has(#dashboardWorkspace:not([hidden])) { --dashboard-sidebar-width: 0px; }
}
.app-home-inner .home-side-bottom { display: block; }
.home-progress-wrap { position: relative; min-height: 320px; }
.home-progress-wrap > .home-metrics-panel { position: absolute; top: 0; left: 0; width: 244px; z-index: 1; }
/* Compact rectangular modules align to a six-pixel placement grid. */
.home-syllabus-heading { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.home-syllabus-map { position: relative; height: 320px; box-sizing: border-box; padding: 12px 30px 12px 12px; isolation: isolate; }
.home-syllabus-map::before { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 16px; background: #87ceeb; }
.home-syllabus-map #homeSyllabusGrid { position: relative; display: block; height: 100%; min-width: 0; overflow: hidden; outline-offset: 3px; touch-action: pan-x pinch-zoom; }
.home-syllabus-page { position: absolute; inset: 0; }
.home-syllabus-page[hidden] { display: none; }
.home-syllabus-map .analytics-accuracy-cluster { position: absolute; box-sizing: border-box; min-width: 0; padding: 0; border: 0; border-radius: 6px; background: #c5e7f4; pointer-events: none; }
.home-syllabus-map .analytics-accuracy-cluster h3 { position: relative; display: block; width: max-content; margin: 6px 0 0 6px; color: #203f51; font-size: 10px; line-height: 13px; font-weight: 600; overflow-wrap: anywhere; }
.home-syllabus-map .analytics-accuracy-group { position: static; display: block; width: auto; }
.home-syllabus-topic-row { position: absolute; left: 6px; display: flex; gap: 4px; width: max-content; }
.home-syllabus-map .analytics-accuracy-square { flex: 0 0 18px; box-sizing: border-box; width: 18px; height: 18px; min-width: 0; min-height: 0; padding: 0; border-radius: 4px; pointer-events: auto; }
.home-syllabus-map .analytics-accuracy-square:focus-visible { outline: 2px solid #35617b; outline-offset: 2px; }
.home-syllabus-pagination { position: absolute; top: 8px; bottom: 8px; right: 3px; width: 24px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; color: #203f51; }
.home-syllabus-pagination[hidden] { display: none; }
.home-syllabus-pagination button { display: grid; place-items: center; width: 24px; height: 24px; padding: 0; border: 0; border-radius: 6px; background: transparent; color: inherit; cursor: pointer; }
.home-syllabus-pagination button:hover { background: #ffffff50; }
.home-syllabus-pagination button:disabled { opacity: .3; cursor: default; }
.home-syllabus-pagination button:focus-visible { outline: 2px solid #35617b; outline-offset: 1px; }
.home-syllabus-pagination svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.home-syllabus-page-dots { display: flex; flex-direction: column; max-height: 65%; overflow-y: auto; scrollbar-width: none; }
.home-syllabus-page-dots button { height: 18px; flex: 0 0 18px; }
.home-syllabus-page-dots span { width: 4px; height: 4px; border-radius: 6px; background: #203f5140; transition: height .2s ease, background .2s ease; }
.home-syllabus-page-dots [aria-current] span { height: 13px; background: #35617b; }
.home-syllabus-page-count { font-size: 8px; white-space: nowrap; font-variant-numeric: tabular-nums; text-align: center; }
.home-syllabus-empty { max-width: 45%; margin: 16px 0 0 auto; font-size: 12px; line-height: 1.6; color: #203f51; }
@media (min-width: 1001px) {
 .home-progress-wrap > .home-metrics-panel { width: calc(50% - 14px); }
 .home-syllabus-map::before { background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 560 320' preserveAspectRatio='none'%3E%3Cpath fill='%2387ceeb' d='M298 0H542Q560 0 560 18V302Q560 320 542 320H18Q0 320 0 302V208Q0 190 18 190H262Q280 190 280 172V18Q280 0 298 0Z'/%3E%3C/svg%3E") center / 100% 100% no-repeat; }
}
@media (max-width: 1000px) {
 .home-progress-wrap { min-height: 0; }
 .home-progress-wrap > .home-metrics-panel { position: static; margin-bottom: 18px; }
 .home-syllabus-empty { max-width: 100%; margin: 16px; }
}
@media (prefers-reduced-motion: reduce) { .home-syllabus-page-dots span { transition: none; } }
.home-paper-progress-card { display: flex; flex-direction: column; overflow: hidden; }
.home-paper-progress-card .progress-card-windowbar { flex-shrink: 0; }
.home-progress-scroll { flex: 1; min-height: 0; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #c5c8ce #fff; margin-top: 8px; padding: 2px 10px 10px; }
.home-progress-scroll::-webkit-scrollbar { width: 6px; }
.home-progress-scroll::-webkit-scrollbar-track { background: #fff; }
.home-progress-scroll::-webkit-scrollbar-thumb { background: #c5c8ce; border: 0; border-radius: 3px; box-shadow: none; }
.home-progress-scroll::-webkit-scrollbar-thumb:hover { background: #c5c8ce; }
.home-progress-scroll::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
@supports selector(::-webkit-scrollbar) {
 .home-progress-scroll { scrollbar-width: auto; scrollbar-color: auto; }
}
.home-paper-progress-card .paper-progress-chart { height: auto; overflow: visible; padding: 0; }
.home-paper-progress-card .paper-progress-page { min-height: 0 !important; }
.home-question-donuts { display: grid; grid-template-columns: minmax(0,1fr); gap: 10px; margin-bottom: 16px; }
.home-question-donuts .analytics-insight { padding: 12px 8px; min-width: 0; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.home-question-donuts .analytics-insight + .analytics-insight { position: relative; padding-top: 22px; }
.home-question-donuts .analytics-insight + .analytics-insight::before { content: ''; position: absolute; top: 0; left: 8%; right: 8%; height: 2px; border-radius: 1px; background: #c5c8ce; }
.home-question-donuts h3 { margin: 0; font-size: 13px; font-weight: 600; }
.home-question-donuts .insight-donut { width: 110px; height: 110px; padding: 10px; margin: 16px auto; }
.home-question-donuts .insight-legend { font-size: 10px; }
.home-question-donuts .insight-legend li { display: grid; grid-template-columns: 7px minmax(0,1fr) auto 36px; gap: 8px; align-items: center; }
.home-question-donuts .insight-legend strong { margin-left: 0; white-space: nowrap; text-align: right; }
.home-question-donuts .insight-legend small { color: var(--muted); font-weight: 400; font-size: 10px; white-space: nowrap; }
.home-question-source { margin: 12px 2px 16px; font-size: 10px; color: var(--muted); }
@media (max-width: 700px) { .home-question-donuts { grid-template-columns: 1fr; } }

/* Keep the mascot and wordmark visible in the dashboard header. */
.topbar-brand-logo.prep-atlas-brand { flex-shrink: 0; width: max-content; }
.prep-atlas-brand__name { font-family: var(--font-ui); font-weight: 600; letter-spacing: -.6px; }
.topbar .prep-atlas-brand__mascot-frame { background: transparent; }

.prep-atlas-brand__mascot { clip-path: inset(4% round 22%); }
