/* Interior polish for the existing, capability-filtered Space shell.
   Load after role-navigation-refresh.css. No data, controls or routes are removed. */
html.space-nav-refresh #roleShellReturn {margin:0 0 12px;font-size:.75rem}
html.space-nav-refresh #roleShellReturn button {padding:5px 0;min-height:36px;border:0;background:none;box-shadow:none;color:var(--snr-muted)}
html.space-nav-refresh #roleShellSection:not([data-space-directory]) {padding:0 0 18px;margin:0 0 22px;border:0;border-bottom:1px solid var(--snr-line);border-radius:0;background:transparent;box-shadow:none}
html.space-nav-refresh #roleShellSection:not([data-space-directory]) > h2 {font:700 1.4rem/1.12 "De Fonte Plus",Helvetica,Arial,sans-serif;margin:0 0 13px}
html.space-nav-refresh #roleShellSection[data-space-area="classes"] > h2,
html.space-nav-refresh #roleShellSection[data-space-area="practice"] > h2 {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.space-nav-refresh #roleShellSection:not([data-space-directory]) .role-shell-section__nav {display:flex;flex-wrap:wrap;gap:7px;overflow:visible;padding:0;margin:0}
html.space-nav-refresh #roleShellSection:not([data-space-directory]) .role-shell-section__nav button {flex:0 1 auto;width:auto;min-width:0;min-height:39px;padding:9px 13px;font:500 .8rem/1.2 Helvetica,Arial,sans-serif;border:1px solid var(--snr-line);border-radius:10px;background:var(--snr-card);color:var(--snr-ink);text-align:center;white-space:normal;overflow-wrap:anywhere;box-shadow:none}
html.space-nav-refresh #roleShellSection:not([data-space-directory]) .role-shell-section__nav button[aria-current="page"] {background:#161616;border-color:#161616;color:#dcfc73;font-weight:700}
html.space-nav-refresh #roleShellSection .role-shell-section__status:empty {display:none}
html.space-nav-refresh :is(#classHubView,#studentView) > .topbar {margin:0 0 22px;padding:0;display:flex;align-items:flex-start;justify-content:space-between;gap:14px;min-height:0}
html.space-nav-refresh :is(#classHubView,#studentView) > .topbar .eyebrow {display:none}
html.space-nav-refresh :is(#classHubView,#studentView) > .topbar h1 {font:700 clamp(1.9rem,3.6vw,2.65rem)/1.08 "De Fonte Plus",Helvetica,Arial,sans-serif;letter-spacing:-.025em;margin:0 0 8px;color:var(--snr-ink)}
html.space-nav-refresh #classHubView > .topbar p {font:400 .9rem/1.5 Helvetica,Arial,sans-serif;color:var(--snr-muted);margin:0;max-width:58ch}
html.space-nav-refresh #classHubView .home-classes {margin:0 0 22px;max-width:none;padding:0;background:transparent;border:0;box-shadow:none}
html.space-nav-refresh #classHubView .home-classes-head {margin-bottom:15px}
html.space-nav-refresh #classHubView .home-classes-head h2 {font:700 1.25rem/1.2 "De Fonte Plus",Helvetica,Arial,sans-serif;margin:0}
html.space-nav-refresh #classHubView .home-class-card {background:#dcfc73;color:#161616;border:0;border-radius:20px;padding:25px;box-shadow:none}
html.space-nav-refresh #classHubView .home-class-card :is(h2,h3) {font:700 clamp(1.35rem,3vw,1.8rem)/1.12 "De Fonte Plus",Helvetica,Arial,sans-serif;color:inherit}
html.space-nav-refresh #classHubView .home-class-card p {color:inherit;line-height:1.5}
html.space-nav-refresh #classHubView .home-class-actions {gap:10px;flex-wrap:wrap}
html.space-nav-refresh #classHubView .home-class-actions a {min-height:44px;padding:12px 20px;background:#161616;border:1px solid #161616;color:#fff;border-radius:11px;font:700 .9rem/1.2 Helvetica,Arial,sans-serif;display:inline-flex;align-items:center;justify-content:center;text-decoration:none}
html.space-nav-refresh #classHubView > .space-class-shortcuts {margin:28px 0 0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}
html.space-nav-refresh #classHubView > .space-class-shortcuts[hidden] {display:none!important}
html.space-nav-refresh #classHubView .space-class-shortcuts__card {padding:23px;border:1px solid var(--snr-line);border-radius:18px;background:var(--snr-card);color:var(--snr-ink)}
html.space-nav-refresh #classHubView .space-class-shortcuts__card h3 {font:700 1.45rem/1.12 "De Fonte Plus",Helvetica,Arial,sans-serif;margin:0 0 12px}
html.space-nav-refresh #classHubView .space-class-shortcuts__card p {font-size:.88rem;line-height:1.6;color:var(--snr-muted);margin:0 0 18px}
html.space-nav-refresh #classHubView .space-class-shortcuts__card button {min-height:42px;padding:10px 15px;border-radius:10px;border:1px solid var(--snr-line);font:700 .85rem/1.25 Helvetica,Arial,sans-serif;color:var(--snr-ink);background:transparent}
/* Existing real progress counters remain visible, but don't dominate the first fold. */
html.space-nav-refresh #studentView .student-topbar-stats {display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:0}
html.space-nav-refresh #studentView .student-topbar-stats :is(.atoms-chip,.streak) {display:inline-flex;align-items:center;gap:5px;margin:0;min-height:34px;padding:7px 11px;border-radius:9px;border:1px solid var(--snr-line);background:var(--snr-card);color:var(--snr-ink);font:400 .76rem/1.2 Helvetica,Arial,sans-serif;box-shadow:none}
html.space-nav-refresh #studentView .student-topbar-stats b {font:700 .9rem/1.2 Helvetica,Arial,sans-serif}
html.space-nav-refresh #studentView #latestHero:not([hidden]) {display:flex;align-items:flex-start;justify-content:space-between;gap:23px;margin:0 0 24px;padding:28px;border:0;border-radius:20px;background:#054ff0;color:white;box-shadow:none;min-height:0}
html.space-nav-refresh #studentView #latestHero h2 {font:700 clamp(1.6rem,3vw,2.25rem)/1.12 "De Fonte Plus",Helvetica,Arial,sans-serif;color:inherit;margin:0 0 14px;max-width:24ch}
html.space-nav-refresh #studentView #latestHero p {font:400 .95rem/1.5 Helvetica,Arial,sans-serif;color:inherit;margin:0;max-width:62ch}
html.space-nav-refresh #studentView #latestHero button {flex-shrink:0;min-height:44px;padding:12px 20px;border:0;border-radius:11px;background:#dcfc73;color:#161616;font:700 .9rem/1.25 Helvetica,Arial,sans-serif;box-shadow:none}
html.space-nav-refresh #studentView > .toolbar {display:grid;grid-template-columns:minmax(0,2fr) minmax(0,1fr) minmax(0,1fr);align-items:center;gap:9px;margin:0 0 23px}
html.space-nav-refresh #studentView .toolbar :is(input,select) {width:100%;min-width:0;min-height:44px;margin:0;padding:11px 12px;border-radius:10px;font:400 .84rem/1.3 Helvetica,Arial,sans-serif;background:var(--snr-card);border:1px solid var(--snr-line);color:var(--snr-ink)}
html.space-nav-refresh #studentView > .student-contact {display:flex;flex-wrap:wrap;gap:9px;margin:28px 0 0;padding-top:18px;border-top:1px solid var(--snr-line)}
html.space-nav-refresh #studentView > .student-contact button {width:auto;min-height:40px;padding:9px 13px;font:500 .82rem/1.25 Helvetica,Arial,sans-serif;color:var(--snr-muted);border:1px solid var(--snr-line);border-radius:10px;background:transparent;box-shadow:none;white-space:normal}
html.space-nav-refresh[data-appearance="dark"] #roleShellSection:not([data-space-directory]) .role-shell-section__nav button[aria-current="page"] {background:#dcfc73;border-color:#dcfc73;color:#161616}
html.space-nav-refresh :is(#roleShellSection,#classHubView,#studentView) :is(button,a,input,select):focus-visible {outline:3px solid var(--snr-focus,#054ff0);outline-offset:3px}
@media(max-width:740px){
 html.space-nav-refresh .space-navigation-top {height:76px;min-height:0;margin-bottom:18px}
 html.space-nav-refresh #roleShellSection:not([data-space-directory]) {margin-bottom:22px;padding-bottom:16px}
 html.space-nav-refresh :is(#classHubView,#studentView) > .topbar {display:block;margin-bottom:20px}
 html.space-nav-refresh #studentView .student-topbar-stats {margin-top:12px}
 html.space-nav-refresh #studentView #latestHero:not([hidden]) {display:block;padding:25px;margin-bottom:22px}
 html.space-nav-refresh #studentView #latestHero button {margin-top:23px}
 html.space-nav-refresh #studentView > .toolbar {grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
 html.space-nav-refresh #studentView > .toolbar > .search {grid-column:1/-1}
 html.space-nav-refresh #classHubView > .space-class-shortcuts {grid-template-columns:1fr;margin-top:24px}
 html.space-nav-refresh #roleShellSection:not([data-space-directory]) .role-shell-section__nav button {min-height:38px;font-size:.76rem;padding:9px 11px}
 html.space-nav-refresh #classHubView .home-class-card {padding:23px}
}
@media(prefers-reduced-motion:reduce){html.space-nav-refresh :is(#roleShellSection,#classHubView,#studentView) * {scroll-behavior:auto!important}}
/* The page already names Classes; retain the section's accessible label without a second visual title. */
html.space-nav-refresh #classHubView .home-classes-head > div {position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
html.space-nav-refresh #classHubView #homeClassCount {font:500 .76rem/1.4 Helvetica,Arial,sans-serif;color:var(--snr-muted)}

/* Counter numbers inherit readable ink rather than the old dark-chip lime. */
html.space-nav-refresh #studentView .student-topbar-stats :is(.atoms-chip,.streak) b,
html.space-nav-refresh #studentView #completedCount,
html.space-nav-refresh #studentView #headerAtoms {color:var(--snr-ink)!important}
