/* Account-only ALTURA shell. Decorative terrain is not a progress visualization. */
:root {
  color-scheme: dark;
  --bg: #080d13;
  --surface: #101820;
  --surface-2: #15212b;
  --surface-3: #1a2b36;
  --ink: #e5edf2;
  --muted: #a0b0bc;
  --line: #24323e;
  --field-line: #354653;
  --accent-text: #80dfef;
  --accent-soft: #122e38;
  --primary: #91e8f4;
  --primary-ink: #09202a;
  --focus: #b5f4ff;
  --sidebar-width: 224px;
}
body { min-width: 280px; background: radial-gradient(ellipse at 70% 0, #111c27 0, transparent 50%), var(--bg); }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button, input, select, textarea { font-size: 14px; }
button, a { touch-action: manipulation; }
button { transition: background-color .16s ease, border-color .16s ease, color .16s ease; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, summary:focus-visible { outline-width: 2px; outline-offset: 4px; }
button.primary:hover, a.primary:hover { background: #b8f3fa; border-color: #b8f3fa; color: var(--primary-ink); }
h1, h2, h3, p { overflow-wrap: anywhere; }
.skip-link { position: fixed; z-index: 100; left: 16px; top: -100px; padding: 12px 18px; background: var(--primary); color: var(--primary-ink); border-radius: 6px; }
.skip-link:focus { top: 12px; }
.account-topbar .brand { letter-spacing: .22em; font-size: 20px; }
.account-topbar { min-height: 76px; }
.account-email { min-width: 0; margin-left: auto; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 12px; color: var(--muted); }
.account-topbar #signout { margin-left: 0; flex: 0 0 auto; min-height: 40px; padding: 7px 13px; background: transparent; font-size: 12px; }
.account-topbar .brand ~ #signout { margin-left: auto; }
.workspace-context { color: #94a8b6; font-size: 11px; text-transform: uppercase; letter-spacing: .14em; }
.workspace-active .account-topbar { max-width: none; margin-left: var(--sidebar-width); padding: 17px 32px; border-color: #1c2a35; background: #0a1016e6; }
.workspace-active .account-topbar .brand, .workspace-active .account-topbar .edition { display: none; }
.workspace-active .account-topbar #signout { margin-left: 0; }
.workspace-active #account-main { max-width: 1680px; margin: 0 auto 0 var(--sidebar-width); padding: 22px 32px 40px; }
.workspace-active > footer { max-width: none; margin: 0 32px 0 calc(var(--sidebar-width) + 32px); padding: 20px 0 30px; border-top: 1px solid #1c2a35; font-size: 11px; letter-spacing: .035em; }
.workspace-active #status:empty, #specialty-status:empty, #dashboard-status:empty { display: none; }
.workspace-active #status { min-height: 0; margin: 0 0 18px; font-size: 13px; }
.specialty-workspace { margin: 0; }
.workspace-sidebar { position: fixed; inset: 0 auto 0 0; z-index: 30; width: var(--sidebar-width); padding: 27px 18px 18px; display: flex; flex-direction: column; background: linear-gradient(170deg, #101a24, #0c141d 58%, #0a1119); border-right: 1px solid #26333f; overflow-y: auto; }
.sidebar-brand { display: flex; align-items: center; gap: 10px; margin: 0 1px 35px; color: #8fe5f4; text-decoration: none; min-height: 48px; }
.brand-mark { width: 44px; height: 44px; flex: 0 0 44px; }
.sidebar-brand strong { display: block; color: #e0e9ee; font-weight: 500; font-size: 22px; letter-spacing: .19em; }
.sidebar-brand small { display: block; color: #9aacb8; font-size: 9px; letter-spacing: .07em; white-space: nowrap; }
.sidebar-specialty { padding: 0 12px 25px; }
.sidebar-specialty .eyebrow { display: block; color: #8499a8; font-size: 9px; margin-bottom: 8px; letter-spacing: .14em; }
.sidebar-specialty strong { display: block; font-size: 13px; font-weight: 500; color: #d0dce5; overflow-wrap: anywhere; }
.workspace-tabs { display: flex; flex-direction: column; gap: 7px; padding: 0; border: 0; }
.workspace-tabs button { position: relative; display: flex; align-items: center; gap: 13px; width: 100%; min-width: 0; min-height: 47px; padding: 12px 14px; text-align: left; color: #a9bac7; background: transparent; border: 1px solid transparent; border-radius: 7px; font-size: 13px; font-weight: 500; }
.workspace-tabs svg { width: 18px; height: 18px; flex: 0 0 18px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.workspace-tabs button:hover { background: #162631; color: #ebf8fc; border-color: #2c4351; }
.workspace-tabs button[aria-pressed=true] { background: linear-gradient(90deg, #16303d, #13232f); border-color: #284959; color: #b9f3fc; }
.workspace-tabs button[aria-pressed=true]::before { content: ''; position: absolute; left: -19px; top: 11px; bottom: 11px; width: 2px; background: #81e4f5; box-shadow: 0 0 12px #64d3e780; }
.sidebar-secondary { margin-top: 28px; padding: 18px 0 0; border-top: 1px solid #23313d; }
.sidebar-secondary button { width: 100%; text-align: left; padding: 11px 13px; font-size: 12px; color: #a3b5c2; border-color: transparent; background: transparent; }
.sidebar-secondary button[aria-pressed=true] { background: #162b37; color: var(--accent-text); }
.sidebar-secondary:has(button[hidden]) { display: none; }
.sidebar-footnote { margin: auto 12px 0; padding-top: 35px; color: #78909f; font-size: 10px; }
.workspace-page-heading { margin: 3px 0 21px; }
.workspace-page-heading .eyebrow { color: #8aa2b2; font-size: 10px; letter-spacing: .18em; margin: 0 0 8px; }
.workspace-page-heading h1 { margin: 0; color: #e5edf3; font-size: clamp(28px, 3.3vw, 38px); font-weight: 400; letter-spacing: -.035em; }
#specialty-status { margin: 0 0 15px; min-height: 0; }
#dashboard-status { color: var(--muted); min-height: 0; margin: 0 0 16px; }
#dashboard-retry { margin: 0 0 20px; }
.dashboard-summary { display: flex; gap: 20px; flex-wrap: wrap; margin: 0 0 19px; color: #93a8b7; font-size: 12px; }
.dashboard-summary span + span { border-left: 1px solid #334550; padding-left: 20px; }
.dashboard-summary strong { color: #d9e5ed; font-weight: 500; }
.dashboard-top { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: stretch; }
.ascent-panel { position: relative; min-width: 0; min-height: 430px; overflow: hidden; border: 1px solid #29414f; border-radius: 10px; background: #0b1118; isolation: isolate; }
.ascent-visual { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: -1; }
.ascent-artwork { width: 100%; height: 100%; display: block; object-fit: cover; }
.ascent-panel-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 23px 24px 0; gap: 16px; position: relative; z-index: 1; }
.ascent-panel-head h2 { font-size: 14px; font-weight: 500; margin: 0; letter-spacing: .01em; }
.ascent-panel-head p { margin: 5px 0 0; font-size: 11px; color: #8da5b4; }
.ascent-label { display: inline-flex; align-items: center; gap: 6px; flex-shrink: 0; padding: 5px 8px; border: 1px solid #315261; border-radius: 4px; color: #92cfdd; background: #0c1a24b3; font-size: 9px; letter-spacing: .07em; text-transform: uppercase; }
.ascent-label::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: #83e4f1; }
.ascent-waypoints { min-height: 295px; position: relative; margin: 0 22px; }
.ascent-waypoint { position: absolute; display: flex; align-items: flex-start; gap: 9px; width: max-content; max-width: 45%; min-height: 48px; padding: 9px 11px; border-radius: 5px; border-color: #335a69; background: #0a151eea; color: #d5eaf3; font-size: 12px; text-align: left; box-shadow: 0 5px 22px #02070d70; }
.ascent-waypoint::before { content: ''; width: 6px; height: 6px; margin-top: 6px; flex: 0 0 6px; border-radius: 50%; background: #8cedf6; box-shadow: 0 0 11px #4dd7ed7a; }
.ascent-waypoint span { display: block; min-width: 0; }
.ascent-waypoint strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.4; }
.ascent-waypoint small { display: block; margin-top: 4px; color: #95b5c4; font-size: 10px; font-weight: 400; }
.ascent-waypoint:nth-child(1) { top: 36px; left: 1%; }
.ascent-waypoint:nth-child(2) { top: 148px; right: 1%; }
.ascent-waypoint:nth-child(3) { bottom: 8px; left: 9%; }
.ascent-waypoint:hover { background: #122b37; border-color: #89dcec; }
.ascent-panel-bottom { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 0 24px 20px; }
.ascent-caption { margin: 0; max-width: 200px; font-size: 10px; line-height: 1.5; color: #8ca4b4; }
.dashboard-action { display: inline-flex; justify-content: center; align-items: center; min-height: 44px; padding: 10px 15px; border: 1px solid #375565; border-radius: 6px; background: #142936; color: #d6eef8; font-size: 12px; font-weight: 500; text-decoration: none; text-align: center; gap: 10px; }
.dashboard-action.primary { background: #a2e9f3; border-color: #a2e9f3; color: #0c2632; }
.dashboard-action::after { content: '↗'; font-size: 15px; line-height: 1; }
.dashboard-action[data-internal]::after { content: '→'; }
.dashboard-action:hover { background: #1b3a49; border-color: #79c9da; color: #ebfafd; }
.dashboard-rail { display: grid; gap: 16px; grid-template-rows: 1fr 1fr; min-width: 0; }
.dashboard-card { background: linear-gradient(140deg, #14202a, #0f1821); border: 1px solid #293c4b; border-radius: 9px; padding: 22px; min-width: 0; }
.dashboard-card .eyebrow { font-size: 9px; color: #8da7b8; margin: 0 0 12px; letter-spacing: .15em; }
.dashboard-card h2 { font-size: 18px; font-weight: 400; line-height: 1.35; margin: 0 0 10px; }
.dashboard-card > p:not(.eyebrow) { color: #a3b6c3; font-size: 12px; line-height: 1.65; margin: 0 0 19px; }
.dashboard-card .dashboard-action { width: 100%; margin-top: 2px; }
.dashboard-card.review-card { background: radial-gradient(ellipse at 90% 0, #16303d70, transparent 75%), #101a23; }
.review-counts { display: flex; gap: 24px; margin: 0 0 15px; }
.review-counts div { display: flex; flex-direction: column; }
.review-counts strong { font-size: 30px; line-height: 1.1; font-weight: 400; color: #d8f4fa; letter-spacing: -.04em; }
.review-counts span { font-size: 10px; color: #a3bac9; margin-top: 5px; }
.dashboard-bottom { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 24px; }
.dashboard-section { min-width: 0; padding: 23px 24px; border: 1px solid #263a48; background: #0f1821b8; border-radius: 9px; }
.dashboard-section-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 17px; }
.dashboard-section-head h2 { margin: 0; font-size: 15px; font-weight: 500; }
.dashboard-section-head button { border-color: transparent; background: transparent; color: #9bc8d7; font-size: 11px; padding: 5px 0 5px 10px; min-height: 44px; }
.library-totals { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin: 0 0 20px; }
.library-total { padding: 11px 10px; border: 1px solid #2a3c49; border-radius: 5px; background: #13212c; }
.library-total strong { display: block; font-size: 22px; font-weight: 400; line-height: 1.3; color: #d3e9f3; }
.library-total span { display: block; font-size: 10px; color: #9eb3c1; }
.dashboard-recent { display: grid; gap: 0; }
.dashboard-item { display: flex; align-items: center; gap: 12px; border: 0; border-top: 1px solid #263845; border-radius: 0; background: transparent; text-align: left; min-height: 62px; padding: 12px 0; width: 100%; }
.dashboard-item:hover { background: #142531; }
.dashboard-item-copy { min-width: 0; flex: 1; }
.dashboard-item strong { display: block; font-size: 12px; font-weight: 500; line-height: 1.5; overflow-wrap: anywhere; }
.dashboard-item small { display: block; color: #8da7b8; font-size: 10px; margin-top: 3px; }
.dashboard-item-arrow { color: #7da7ba; font-size: 15px; }
.item-kind-icon { display: flex; align-items: center; justify-content: center; width: 31px; height: 34px; border: 1px solid #365061; border-radius: 5px; color: #8ec5d7; flex: 0 0 31px; }
.item-kind-icon svg { width: 15px; height: 15px; stroke: currentColor; fill: none; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.dashboard-domain-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dashboard-domain { display: flex; flex-direction: column; justify-content: space-between; min-height: 88px; padding: 14px; border-color: #2b424f; border-radius: 6px; background: #12202b; text-align: left; }
.dashboard-domain strong { font-size: 12px; font-weight: 500; line-height: 1.5; }
.dashboard-domain small { display: block; color: #94adbc; font-size: 10px; margin-top: 7px; }
.dashboard-domain small span { color: #9fe5ef; }
.dashboard-empty { margin: 0; padding: 21px 0; color: #9fb4c2; font-size: 12px; line-height: 1.7; }
.dashboard-section-note { color: #91a9b8; font-size: 10px; margin: 18px 0 0; }
.dashboard-loading { position: relative; min-height: 400px; display: flex; align-items: center; justify-content: center; overflow: hidden; border: 1px solid #29414f; border-radius: 9px; background: #0b1118; isolation: isolate; }
.dashboard-loading .ascent-visual { opacity: .5; }
.dashboard-loading p { padding: 13px 18px; border: 1px solid #345264; border-radius: 6px; color: #c9e2ef; font-size: 13px; background: #0c1720ed; }
.capability-panel { max-width: 720px; padding: 30px; }
.capability-panel h2 { font-size: 25px; font-weight: 400; }
.capability-panel .eyebrow { color: #92b0c1; font-size: 10px; margin-top: 0; }
.capability-panel .muted { font-size: 14px; }
.specialty-workspace > .panel { background: #101a23; border-color: #2a3c49; border-radius: 9px; }
.specialty-workspace .curriculum-topic { background: #13212c; border-color: #2c414f; }
.specialty-workspace .topic-name { font-size: 14px; font-weight: 500; }
.specialty-workspace select { min-width: 0; }
#workspace { padding-top: 10px; }
.library-detail { scroll-margin-top: 20px; }
@media (min-width: 1800px) {
  .dashboard-top { grid-template-columns: minmax(0, 1fr) 320px; }
  .ascent-panel { min-height: 510px; }
  .ascent-waypoints { min-height: 370px; }
  .ascent-waypoint:nth-child(1) { top: 70px; }
  .ascent-waypoint:nth-child(2) { top: 200px; }
}
@media (max-width: 1160px) {
  .workspace-active .account-topbar { padding: 17px 24px; }
  .workspace-active #account-main { padding: 22px 24px 35px; }
  .dashboard-top { grid-template-columns: 1fr; }
  .dashboard-rail { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .ascent-panel { min-height: 430px; }
  .ascent-waypoint { max-width: 42%; }
  .dashboard-bottom { grid-template-columns: 1fr; }
  .dashboard-domain-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 800px) {
  :root { --sidebar-width: 0px; }
  html { scroll-padding-block-end: calc(96px + env(safe-area-inset-bottom)); }
  /* Leave focused content above the fixed navigation, including form actions.
     Keep mobile form text at 16px to avoid Safari's focus-triggered zoom. */
  .workspace-active #account-main :is(input, select, textarea, summary, [tabindex], .actions > button) { scroll-margin-block-end: calc(96px + env(safe-area-inset-bottom)); }
  input, select, textarea { font-size: 16px; }
  .workspace-active .account-topbar { padding: 14px 20px; min-height: 66px; gap: 14px; }
  .workspace-active .account-topbar .brand { display: block; font-size: 17px; }
  .workspace-active .account-topbar .workspace-context { display: none; }
  .account-email { max-width: 42%; font-size: 10px; }
  .workspace-active #account-main { margin: 0; padding: 16px 20px 32px; }
  .workspace-active > footer { margin: 0 20px 0; padding-bottom: calc(108px + env(safe-area-inset-bottom)); }
  .workspace-sidebar { position: static; width: auto; padding: 0; display: block; border: 0; background: transparent; overflow: visible; }
  .sidebar-brand, .sidebar-specialty, .sidebar-footnote { display: none; }
  .workspace-tabs { position: fixed; z-index: 40; bottom: 0; left: 0; right: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding: 7px 7px calc(7px + env(safe-area-inset-bottom)); border-top: 1px solid #355061; background: #0b1721fa; box-shadow: 0 -5px 30px #05090e66; }
  .workspace-tabs button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; padding: 9px 3px; min-height: 59px; font-size: 11px; border-radius: 5px; line-height: 1.2; flex: none; }
  .workspace-tabs button[aria-pressed=true]::before { display: none; }
  .workspace-tabs svg { width: 18px; height: 18px; }
  .sidebar-secondary { position: relative; display: flex; justify-content: flex-end; margin: 0 0 12px; padding: 0; border: 0; }
  .sidebar-secondary button { width: auto; min-height: 44px; padding: 5px 10px; font-size: 11px; }
  .workspace-page-heading { margin-top: 0; }
  .workspace-page-heading h1 { font-size: 32px; }
  .ascent-waypoints { min-height: 285px; }
  .ascent-panel { min-height: 430px; }
  .dashboard-bottom { margin-top: 20px; }
  .dashboard-section, .dashboard-card { padding: 20px; }
  .dashboard-domain-list { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .workspace-active .account-topbar { padding: 12px 16px; gap: 10px; }
  .account-email { display: none; }
  .workspace-active .account-topbar #signout { margin-left: auto; min-height: 44px; }
  .workspace-active #account-main { padding: 12px 16px 28px; }
  .workspace-active > footer { margin-left: 16px; margin-right: 16px; }
  .workspace-page-heading { margin-bottom: 17px; }
  .workspace-page-heading h1 { font-size: 30px; }
  .dashboard-summary { gap: 12px; font-size: 11px; }
  .dashboard-summary span + span { padding-left: 12px; }
  .dashboard-top { gap: 16px; }
  .ascent-panel { min-height: 500px; }
  .ascent-visual { height: 340px; }
  .ascent-artwork { width: 150%; max-width: none; margin-left: -25%; }
  .ascent-panel-head { padding: 18px 17px 0; }
  .ascent-label { font-size: 8px; max-width: 100px; }
  .ascent-waypoints { margin: 180px 16px 16px; display: grid; gap: 8px; min-height: 0; }
  .ascent-waypoint, .ascent-waypoint:nth-child(n) { position: static; width: 100%; max-width: none; padding: 10px 12px; box-shadow: none; min-height: 50px; }
  .ascent-waypoint span { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; }
  .ascent-waypoint strong { font-size: 12px; }
  .ascent-waypoint small { flex: 0 0 auto; max-width: 105px; font-size: 10px; margin: 0; text-align: right; }
  .ascent-panel-bottom { padding: 0 16px 17px; flex-direction: column-reverse; gap: 12px; }
  .ascent-panel-bottom .dashboard-action { width: 100%; }
  .ascent-caption { max-width: none; font-size: 10px; text-align: center; }
  .dashboard-rail { grid-template-columns: 1fr; gap: 14px; }
  .dashboard-card { padding: 20px; }
  .dashboard-card .dashboard-action { margin-top: 0; }
  .dashboard-card > p:not(.eyebrow) { margin-bottom: 15px; }
  .dashboard-bottom { gap: 16px; }
  .dashboard-section { padding: 18px 16px; }
  .library-totals { gap: 5px; }
  .library-total { padding: 10px 7px; }
  .library-total span { font-size: 10px; }
  .dashboard-domain-list { grid-template-columns: 1fr; gap: 8px; }
  .dashboard-domain { min-height: 74px; }
  .dashboard-domain strong { font-size: 13px; }
  .dashboard-domain small { font-size: 11px; }
  .dashboard-section-head h2 { font-size: 14px; }
  .capability-panel { padding: 22px; }
  .capability-panel .actions { flex-direction: column; }
  .capability-panel .actions > * { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
.dashboard-practice-goal{padding:16px 0;border-bottom:1px solid var(--line)}.dashboard-practice-goal p{margin:5px 0}.dashboard-section details{margin:14px 0}.dashboard-section summary{cursor:pointer;font-weight:600}.dashboard-section details p{overflow-wrap:anywhere}
