/* Shared learning experience. Route-specific layouts retain their own sizing. */
:root { --text-muted: #526178; --text-accent: #6730cb; --surface-raised: #fff; --ui-control-border: #7b879b; --ui-success-text: #06734e; --ui-warning-text: #865300; --ui-danger-text: #b42332; --ui-radius: 10px; --ui-card-radius: 16px; }
html.dark, body.dark { --text-muted: #a5b2c7; --text-accent: #c4b0ff; --surface-raised: #19162d; --border: #39334f; --ui-control-border: #776e94; --ui-success-text: #70dfb0; --ui-warning-text: #f6ce79; --ui-danger-text: #ffabb3; }
:where(a,button,input,select,textarea,summary,[tabindex]):focus-visible { outline: 3px solid var(--text-accent); outline-offset: 3px; }
.skip-link { position: fixed; top: 8px; left: 16px; transform: translateY(-200%); z-index: 20000; background: var(--bg-card); color: var(--text); padding: 12px 20px; border: 2px solid var(--text-accent); border-radius: 8px; }
.skip-link:focus { transform: none; }
.primary-navigation .sidebar-item { min-height: 46px; font-size: .95rem; }
.sidebar-item > i { width: 20px; flex: 0 0 20px; text-align: center; }
.sidebar-subnav { margin: 8px 0 12px 20px; padding-left: 8px; border-left: 1px solid var(--border); }
.sidebar-subnav .sidebar-item { min-height: 38px; font-size: .82rem; }
/* Navigation disclosures share the menu rhythm, without nested card surfaces. */
.app-sidebar .sidebar-item { border-left:0; border-radius:8px; padding:10px 14px; gap:12px; min-height:44px; }
.app-sidebar .sidebar-item.active { box-shadow:inset 3px 0 var(--text-accent); }
/* The current page is subordinate to the selected main navigation section. */
.app-sidebar .sidebar-subnav .sidebar-item.active { background:transparent; box-shadow:none; color:var(--text-accent); font-weight:600; }
.app-sidebar .sidebar-subnav .sidebar-item.active::before { content:''; position:absolute; left:-12px; top:50%; width:6px; height:6px; border-radius:50%; background:currentColor; transform:translateY(-50%); pointer-events:none; }
.app-sidebar .sidebar-subnav .sidebar-item.active:hover { background:var(--bg-subtle); }
.app-sidebar .sidebar-item svg { opacity:1; }
.sidebar-group { border:0; border-radius:0; background:transparent; }
.platform-navigation { margin:8px 6px; padding-bottom:8px; border-bottom:1px solid var(--border); flex-shrink:0; }
.sidebar-more { margin:8px 0; padding-top:8px; border-top:1px solid var(--border); }
.sidebar-group > summary { display:flex; align-items:center; gap:12px; min-height:44px; padding:10px 14px; cursor:pointer; list-style:none; color:var(--text-secondary); border-radius:8px; transition:background .15s,color .15s; }
.sidebar-group > summary::-webkit-details-marker { display:none; }
.sidebar-group > summary::marker { content:''; }
.sidebar-group > summary:hover { color:var(--text); background:var(--bg-subtle); }
.sidebar-group > summary:focus-visible { outline-offset:-3px; }
.sidebar-group > summary .sidebar-item-text { white-space:normal; overflow:visible; font-size:.8125rem; font-weight:600; line-height:1.45; }
.sidebar-group-icon { display:grid; place-items:center; width:20px; height:20px; flex:0 0 20px; color:var(--text-muted); font-size:.9375rem; }
.sidebar-group-chevron { width:14px; height:14px; flex:0 0 14px; color:var(--text-muted); transition:transform .18s ease; }
.sidebar-group[open] > summary { color:var(--text); }
.sidebar-group[open] > summary .sidebar-group-chevron { transform:rotate(90deg); }
.sidebar-group .primary-navigation, .sidebar-group-links { padding:4px 0 0; }
.sidebar-group .sidebar-item { font-size:.8125rem; line-height:1.4; }
.sidebar-group .sidebar-item + .sidebar-item { margin-top:2px; }
.sidebar-group .sidebar-item .sidebar-item-text { white-space:normal; }
.platform-navigation[open] { max-height:60dvh; overflow-y:auto; scrollbar-width:thin; }
@media (min-width:1025px) {
  .layout-collapsed .app-sidebar:not(:hover):not(:focus-within) .platform-navigation { margin:8px 6px; }
  .layout-collapsed .app-sidebar:not(:hover):not(:focus-within) .sidebar-group > summary { justify-content:center; padding:10px 6px; gap:0; }
  .layout-collapsed .app-sidebar:not(:hover):not(:focus-within) .sidebar-group-chevron { display:none; }
}
.sidebar-close { display: none; align-self: flex-end; margin: 8px; width: 40px; height: 40px; border: 1px solid var(--border); background: var(--bg-card); color: var(--text); border-radius: 8px; font-size: 1.5rem; cursor: pointer; }
.app-sidebar.open .sidebar-close { display: block; }
.section-navigation { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; padding: 8px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 14px; }
.section-navigation a { padding: 10px 14px; border-radius: 8px; color: var(--text-secondary); font-size: .875rem; }
.section-navigation a.active { background: var(--primary-light); color: var(--text-accent); font-weight: 700; }
.mobile-nav-item > i { font-size: 19px; }
body .mobile-nav-item { min-width: 0; flex: 1; padding-inline: 2px; }
body .mobile-nav-item span { font-size: .67rem; }
body.layout-learning .app-sidebar.open { display: flex; position: fixed; top: 0; left: 0; bottom: 0; width: min(300px,85vw); height: 100dvh; z-index: 1200; transform: none; }
body.layout-learning .topbar-toggle { display: inline-flex; }
body .sidebar-overlay { position: fixed; inset: 0; z-index: 1100; background: rgba(0,0,0,.55); display: none; }
body .sidebar-overlay.active { display: block; }
body .app-sidebar.open { z-index: 1200; }
.dashboard .stat-card, .dashboard .course-card, .sidebar-user { background: var(--bg-card); }
.dashboard .stat-card { box-shadow: none; border: 1px solid var(--border); padding: 16px; }
.dashboard .stat-icon { font-size: 1.25rem; margin-bottom: 8px; }
.dashboard .stat-value { font-size: 1.5rem; }
.dashboard .section-link, .dashboard .pickup-cta { color: var(--text-accent); }
.dashboard .welcome-avatar { width: 48px; height: 48px; font-size: 1.35rem; box-shadow: none; }
.dashboard .welcome-section { margin-bottom: 20px; }
.dashboard .welcome-text h1 { font-size: clamp(1.35rem,2.4vw,1.9rem); }
.home-focus { padding:24px; border:1px solid var(--border); border-top:3px solid var(--primary); border-radius:var(--ui-card-radius); background:var(--bg-card); margin-bottom:28px; }
.home-focus h2 { font-size: clamp(1.4rem,2.4vw,1.85rem); margin: 8px 0 10px; }
.home-focus p { color: var(--text-secondary); line-height: 1.65; margin-bottom: 18px; }
.home-eyebrow { text-transform: uppercase; letter-spacing: .08em; color: var(--text-accent); font-size: .75rem; font-weight: 700; }
.home-choices { display:flex; flex-wrap:wrap; gap:8px; margin-top:12px; }
.home-choices a { display:inline-flex; align-items:center; gap:8px; min-height:44px; padding:8px 0; color:var(--text-accent); font-size:.875rem; }
.home-summary { margin: 24px 0; }
.home-summary > summary { cursor: pointer; font-weight: 600; padding: 12px 0; }
.home-summary p { color: var(--text-secondary); font-size: .875rem; margin-bottom: 12px; }
.prose { white-space: normal !important; overflow-wrap: anywhere; }
.prose p { margin-bottom: 12px; }
.prose pre { padding: 16px; margin: 14px 0; background: var(--bg-subtle); border: 1px solid var(--border); border-radius: 10px; overflow-x: auto; white-space: pre; }
.prose code { font-family: ui-monospace,monospace; }
.prose ul, .prose ol { padding-left: 22px; margin: 12px 0; }
.ui-note { color: var(--text-secondary); font-size: .875rem; line-height: 1.6; margin: 12px 0; }
.ui-empty { text-align: center; padding: 36px 20px; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.ui-empty p { color: var(--text-secondary); margin: 12px auto 20px; max-width: 45ch; }
@media (max-width: 768px) {
  body .app-sidebar.open { display: flex; }
  .dashboard { padding: 12px 12px 32px !important; }
  .dashboard .welcome-avatar { display: none; }
  .home-focus { padding: 20px; margin-bottom: 16px; }
  .home-focus .btn { width: 100%; justify-content: center; }
  .home-choices { gap: 8px; }
  .home-choices a { justify-content:center; width:100%; }
  .section-navigation { gap: 4px; padding: 4px; margin-bottom: 16px; }
  .section-navigation a { padding: 10px; }
  .dashboard .stats-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .dashboard .sidebar-card { box-shadow: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

#cookieBanner { max-height: min(50dvh, 400px); overflow-y: auto; }
@media(max-width:600px) {
  #cookieBanner { padding:12px 16px!important; }
  #cookieBanner > div { gap:10px!important; flex-direction:column; align-items:stretch!important; }
  #cookieBanner > div > div { min-width:0!important; }
  #cookieBanner button { padding:10px 12px!important; min-height:40px; }
  .auth-page { padding:24px 16px!important; }
  .auth-card { padding:28px 22px!important; }
}
.lesson-sections-note { margin: 0 0 12px; }

#gradingToast [hidden] { display:none!important; }

/* Match the actual class-based theme controller used across the platform. */
html:not(.dark) .topbar-brand-logo.light-only { display:block; }
html:not(.dark) .topbar-brand-logo.dark-only { display:none; }
html.dark .topbar-brand-logo.light-only { display:none; }
html.dark .topbar-brand-logo.dark-only { display:block; }
.task-mobile-jumps { display:none; }
@media(max-width:768px) {
  .task-mobile-jumps { display:flex; gap:8px; padding:8px 12px; position:sticky; top:0; z-index:40; background:var(--bg-card); border-block:1px solid var(--border); }
  .task-mobile-jumps button { flex:1; padding:10px 8px; min-height:40px; background:var(--bg-subtle); color:var(--text); border:1px solid var(--border); border-radius:8px; font-weight:600; }
  .task-grid .pane { scroll-margin-top:64px; }
}

.skill-summary { list-style:none; padding:0; margin:0 0 16px; }
.skill-summary li { display:flex; align-items:baseline; justify-content:space-between; gap:16px; padding:10px 0; border-bottom:1px solid var(--border); font-size:.85rem; }
.skill-summary li span { min-width:0; overflow-wrap:anywhere; color:var(--text-secondary); }
.skill-summary li strong { flex-shrink:0; color:var(--text-accent); font-variant-numeric:tabular-nums; }

/* Readable active links and statistics in both themes. */
.sidebar-item.active { color: var(--text-accent); }
.dashboard .stat-value, .adventure-page .adventure-stat-card .stat-value {
  background: none;
  -webkit-text-fill-color: currentColor;
  color: var(--text);
}
.skill-tree-view { display:flex; flex-direction:column; position:relative; height:clamp(420px,75dvh,900px); margin-top:20px; border-radius:14px; overflow:hidden; background:#0a0e1a; }
.skill-tree-toolbar { display:flex; flex-wrap:wrap; align-items:center; justify-content:space-between; gap:16px; padding:16px; color:#94a3b8; }
.skill-tree-toolbar input { flex:1 1 180px; max-width:280px; min-width:0; padding:10px 12px; border-radius:6px; border:1px solid #334155; background:#111827; color:#f8fafc; font-size:.875rem; }
.skill-tree-stage { position:relative; flex:1; min-height:0; }

/* Keep translated breadcrumbs and search from covering the menu button. */
.topbar-left { min-width:36px; }
.topbar-center { min-width:0; }
.topbar-search-input { min-width:0; }

/* Common controls: one shape, stable hover and clear field boundaries. */
body :is(.btn, .btn-primary, .btn-secondary, .submit-btn, .add-btn, .btn-cancel, .btn-back) { border-radius:var(--ui-radius); min-height:44px; line-height:1.4; }
body :is(.btn-primary, .submit-btn, .add-btn) { background:var(--primary); color:#fff; box-shadow:none; }
body :is(.btn-primary, .submit-btn, .add-btn):hover { background:var(--primary-hover); color:#fff; box-shadow:none; transform:none; }
body .btn-secondary { border:1px solid var(--ui-control-border); }
body .btn-secondary:hover { color:var(--text-accent); }
body :is(.form-input, .form-select, .form-textarea), body .form-group :is(input:not([type=checkbox]):not([type=radio]), select, textarea), body .cat-search input, body .cat-select {
  border-color:var(--ui-control-border); border-radius:var(--ui-radius); min-height:44px;
}
body :is(.form-input, .form-select, .form-textarea, .cat-select):focus-visible, body .form-group :is(input,select,textarea):focus-visible, body .cat-search input:focus-visible { outline:3px solid var(--text-accent); outline-offset:2px; }
body :is(.form-input, .form-textarea)::placeholder, body .form-group input::placeholder, body .cat-search input::placeholder { color:var(--text-muted); opacity:1; }
body :is(.form-card, .ui-empty, .cat-card), .teacher-page :is(.tile,.overview,.subs,.onboard) { border-radius:var(--ui-card-radius); }
body .cat-card:hover { transform:none; box-shadow:var(--shadow-sm); }
body .cat-pill { background:#273046; }
body .cat-pill.is-access-free { background:#087a54; }
body .cat-pill.is-access-pro { background:#865300; }
body .cat-pill.is-access-paid { background:#096b80; }
.teacher-page :is(.dash-eyebrow,.section-link,.join-code-value,.tile-hint,.ov-icon,.sub-av) { color:var(--text-accent); }
.section-navigation { gap:8px; padding:0 0 8px; border:0; border-bottom:1px solid var(--border); border-radius:0; background:transparent; }
.section-navigation a { display:inline-flex; align-items:center; min-height:44px; padding:10px 12px; }
.section-navigation a:hover { background:var(--bg-subtle); color:var(--text); }
.section-navigation a.active { color:var(--text-accent); }

/* Authentication uses the same controls while provider branding remains explicit. */
body .auth-card { border-radius:var(--ui-card-radius); }
body .auth-btn { border-radius:var(--ui-radius); min-height:44px; }
.auth-card .auth-btn:not(.auth-btn-provider) { background:var(--primary); color:#fff; box-shadow:none; }
.auth-card .auth-btn:not(.auth-btn-provider):hover { background:var(--primary-hover); transform:none; box-shadow:none; }

/* One primary action; quiet, consistent secondary activities. */
.dashboard .home-focus h2 { line-height:1.25; overflow-wrap:anywhere; }
.dashboard .home-focus .btn-primary { min-height:46px; padding:12px 20px; }
.dashboard .welcome-content, .dashboard .welcome-text { min-width:0; }
.dashboard .welcome-text h1 { overflow-wrap:anywhere; }
.dashboard .welcome-content { gap:14px; }
.dashboard .streak-badge { background:var(--bg-subtle); color:var(--text-secondary); box-shadow:none; border-radius:var(--ui-radius); padding:10px 14px; font-size:.875rem; }
.dashboard .streak-badge .fire { font-size:1rem; }
.home-section-title { color:var(--text-secondary); font-size:.875rem; font-weight:600; margin:0 0 12px; }
.home-activities { display:grid; grid-template-columns:repeat(auto-fit,minmax(min(100%,280px),1fr)); gap:12px; margin-bottom:12px; }
.home-activity { display:grid; grid-template-columns:32px minmax(0,1fr) auto; align-items:center; gap:12px; padding:16px; color:var(--text); background:var(--bg-card); border:1px solid var(--border); border-radius:var(--ui-card-radius); text-decoration:none; }
.home-activity:hover { color:var(--text); border-color:var(--text-accent); background:var(--bg-subtle); }
.home-activity-icon { display:grid; place-items:center; width:32px; height:32px; border-radius:8px; background:var(--bg-subtle); color:var(--text-muted); font-size:1rem; }
.home-activity-body { min-width:0; }
.home-activity h3 { font-size:.875rem; line-height:1.4; font-weight:600; margin:0 0 6px; overflow-wrap:anywhere; }
.home-activity-meta { display:flex; flex-wrap:wrap; gap:4px 10px; font-size:.75rem; line-height:1.5; color:var(--text-secondary); }
.home-activity-meta i { margin-right:3px; }
.home-activity-action { display:flex; align-items:center; gap:6px; color:var(--text-accent); font-size:.8125rem; font-weight:600; }
.home-activity-action i { font-size:.75rem; }
.dashboard .pickup-row { grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr)); gap:12px; margin-bottom:0; }
.dashboard .pickup-card { border-radius:var(--ui-card-radius); padding:16px; gap:8px; }
.dashboard .pickup-card:hover { transform:none; box-shadow:none; border-color:var(--text-accent); }
.dashboard .pickup-card::before { display:none; }
.dashboard .pickup-dot { display:none; }
.dashboard .pickup-title { font-size:1rem; line-height:1.4; overflow-wrap:anywhere; }
.dashboard .pickup-eyebrow { font-size:.6875rem; letter-spacing:.04em; }
.dashboard .pickup-card .pickup-cta { margin-top:auto; padding-top:4px; color:var(--text-accent); font-size:.8125rem; }
.dashboard .pickup-diff--easy { color:var(--ui-success-text); }
.dashboard .pickup-diff--medium { color:var(--ui-warning-text); }
.dashboard .pickup-diff--hard { color:var(--ui-danger-text); }
.dashboard .home-summary { margin:20px 0 24px; border-block:1px solid var(--border); }
.dashboard .home-summary > summary { min-height:44px; font-size:.875rem; }
.dashboard :is(.sidebar-card,.stat-card,.course-card,.xp-progress-section,.learning-path-card,.nb-card,.empty-state) { border-radius:var(--ui-card-radius); }
.dashboard .stat-card:hover { transform:none; border-color:var(--border); box-shadow:none; }
.dashboard .stat-card::before { display:none; }
.dashboard .stat-icon, .dashboard .section-title .icon { color:var(--text-muted); }
.dashboard .course-card:hover { transform:none; box-shadow:none; }
.dashboard .progress-text { color:var(--text-accent); }
.dashboard .section-header { gap:12px; }
.dashboard .section-title { font-size:1rem; }
.dashboard .section-link { display:inline-flex; align-items:center; min-height:44px; }
.dashboard .empty-state { padding:24px; background:var(--bg-card); border:1px solid var(--border); }
.dashboard .empty-icon { color:var(--text-muted); font-size:1.5rem; margin-bottom:12px; }
.dashboard .empty-state h3 { font-size:1rem; }
.dashboard .empty-state p { font-size:.875rem; }
.dashboard .skill-summary li { gap:12px; }
.dashboard .daily-challenge-sidebar { border:1px solid var(--border); background:var(--bg-card); }
.dashboard .daily-challenge-sidebar::before { display:none; }
.dashboard .daily-challenge-badge, .dashboard .daily-info strong { color:var(--ui-warning-text); }
.dashboard .daily-challenge-sidebar.completed .daily-challenge-badge { color:var(--ui-success-text); }
.dashboard .daily-challenge-btn { border-radius:var(--ui-radius); min-height:44px; background:var(--bg-subtle); color:var(--text-accent); box-shadow:none; }
.dashboard .daily-challenge-btn:hover { transform:none; box-shadow:none; background:var(--primary-light); }
@media(max-width:768px) {
  .dashboard .welcome-section { gap:12px; margin-bottom:16px; }
  .dashboard .welcome-text p { font-size:.875rem; }
  .dashboard .home-focus { padding:18px; margin-bottom:20px; }
  .dashboard .home-focus h2 { font-size:1.35rem; margin:8px 0; }
  .dashboard .home-focus p { font-size:.875rem; line-height:1.5; margin-bottom:16px; }
  .dashboard .home-activity { padding:14px; gap:10px; }
  .dashboard .sidebar-card { padding:16px; }
  .section-navigation { gap:4px; }
  .section-navigation a { padding:10px; }
}
@media(max-width:480px) {
  .home-activity { grid-template-columns:28px minmax(0,1fr); }
  .home-activity-icon { width:28px; height:28px; }
  .home-activity-action { grid-column:2; }
  .dashboard .home-activity { row-gap:4px; }
  .dashboard .home-activity-icon { align-self:start; }
  .dashboard .home-activity h3 { margin-bottom:4px; }
  .dashboard .home-summary { margin:16px 0; }
  .dashboard .pickup-card { padding:14px; }
  .dashboard .course-card { padding:16px; }
  body :is(.btn,.btn-primary,.btn-secondary,.submit-btn,.add-btn,.btn-cancel,.btn-back) { white-space:normal; text-align:center; }
}

/* Progress stays visible near the primary action without oversized metric cards. */
.dashboard .home-summary .xp-progress-section { padding:14px 16px; margin-bottom:12px; }
.dashboard .home-summary .stats-grid { grid-template-columns:repeat(auto-fit,minmax(min(100%,140px),1fr)); gap:8px; margin-bottom:16px; }
.dashboard .home-summary .stat-card { display:grid; grid-template-columns:20px minmax(0,1fr); column-gap:10px; row-gap:4px; padding:12px; text-align:left; align-items:center; }
.dashboard .home-summary .stat-icon { grid-column:1; grid-row:1 / span 2; width:20px; margin:0; font-size:1rem; justify-self:start; }
.dashboard .home-summary .stat-value { grid-column:2; justify-self:start; font-size:1.25rem; line-height:1.2; }
.dashboard .home-summary .stat-label { grid-column:2; justify-self:start; margin:0; font-size:.75rem; line-height:1.4; }
.dashboard .home-summary .xp-header { gap:12px; flex-wrap:wrap; }

.dashboard .home-summary p a { color:var(--text-accent); }

/* Light theme: neutral canvas, white surfaces and restrained accent colors.
   Scope to both theme markers so switching themes restores the dark palette. */
html:not(.dark) body:not(.dark) {
  --bg:#f3f4f7; --bg-card:#fff; --bg-elevated:#fff; --bg-subtle:#eceef3;
  --bg-glass:rgba(255,255,255,.96); --surface-raised:#fff;
  --text:#202534; --text-primary:#202534; --text-secondary:#4b5565; --text-muted:#606b7b;
  --border:#dce0e7; --border-strong:#c3cad5; --ui-control-border:#7b8596;
  --primary:#6742c7; --primary-hover:#5632af; --text-accent:#5c36b3; --primary-light:#eee9f8;
  --primary-gradient:linear-gradient(135deg,#6742c7,#5058bd);
  --shadow-sm:0 2px 5px rgba(32,37,52,.04);
  --shadow-md:0 5px 18px rgba(32,37,52,.06);
  --shadow-lg:0 10px 28px rgba(32,37,52,.08);
}
html:not(.dark) body:not(.dark) .app-sidebar { background:#fafbfc; }
html:not(.dark) body:not(.dark) .sidebar-user { background:transparent; }
html:not(.dark) body:not(.dark) .sidebar-user:hover { background:var(--bg-subtle); }
html:not(.dark) body:not(.dark) .app-topbar { box-shadow:0 1px 4px rgba(32,37,52,.03); }
html:not(.dark) body:not(.dark) .topbar-search-input { background:var(--bg); }
html:not(.dark) body:not(.dark) :is(.home-focus,.home-activity,.cat-card,.cd-card,.account-card,.profile-hero,.form-card,.auth-card) { box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) .dashboard :is(.sidebar-card,.course-card,.xp-progress-section) { box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) .dashboard .home-focus { border-top-color:var(--border); }
html:not(.dark) body:not(.dark) .dashboard .pickup-card { background:var(--bg-card); }
html:not(.dark) body:not(.dark) .section-navigation a.active { background:var(--bg-card); box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) .cat-cover:not([style]) { background:linear-gradient(135deg,#eae5f4,#e5eaf3); }
html:not(.dark) body:not(.dark) .cat-cover-mark { color:var(--text-accent); }
html:not(.dark) body:not(.dark) .cat-rating { color:var(--ui-warning-text); }
html:not(.dark) body:not(.dark) .cd-card-cover { background:var(--primary-light); }
html:not(.dark) body:not(.dark) .cd-card-cover svg { color:var(--text-accent); }
html:not(.dark) body:not(.dark) .cd-cta.primary { background:var(--primary); box-shadow:none; }
html:not(.dark) body:not(.dark) .cd-cta.primary:hover { background:var(--primary-hover); }
html:not(.dark) body:not(.dark) .profile-banner { background:linear-gradient(120deg,#e4ddf3,#e7ecf5); }
html:not(.dark) body:not(.dark) .profile-avatar { box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) :is(.reps-hub h1,.reps-hero h1) { background:none; -webkit-text-fill-color:currentColor; color:var(--text); }
html:not(.dark) body:not(.dark) .reps-hub .card { border-color:var(--border); box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) .reps-hub .card::before { display:none; }
html:not(.dark) body:not(.dark) .reps-hub .card:hover { transform:none; border-color:var(--text-accent); box-shadow:var(--shadow-md); }
html:not(.dark) body:not(.dark) .reps-hub .card :is(.icon,.paths-list .count) { color:var(--text); }
html:not(.dark) body:not(.dark) .reps-hub .card .cta { background:var(--primary); }
html:not(.dark) body:not(.dark) .reps-hub .continue-cta { background:var(--primary); box-shadow:var(--shadow-sm); }
html:not(.dark) body:not(.dark) .reps-hub .continue-cta:hover { background:var(--primary-hover); transform:none; filter:none; }
html:not(.dark) body:not(.dark) .site-footer .footer-gradient { background:var(--border); height:1px; }

/* Anonymous navigation remains available at narrow widths without scripting. */
.public-mobile-menu{display:none;position:relative}
.public-mobile-menu summary{cursor:pointer;padding:8px;border:1px solid var(--border);border-radius:8px;font-size:.8rem;color:var(--text)}
.public-mobile-menu nav{position:absolute;right:0;top:calc(100% + 8px);min-width:200px;padding:8px;background:var(--bg-card);border:1px solid var(--border);border-radius:12px;box-shadow:0 8px 24px #0003;z-index:1000}
.public-mobile-menu nav a{display:block;padding:12px;color:var(--text);text-decoration:none}
.public-mobile-menu nav a:hover,.public-mobile-menu nav a:focus-visible{background:var(--bg-subtle);text-decoration:underline}
@media(max-width:1024px){.public-mobile-menu{display:block}.anon-layout .topbar-right{gap:6px}}
@media(max-width:600px){.anon-layout .topbar-brand span{display:none}.anon-layout .app-topbar{padding-left:10px;padding-right:10px}.anon-layout .topbar-right>.btn{padding:6px 8px;font-size:.75rem}}

.footer-logo{width:80px;height:80px;object-fit:contain}
@media(max-width:600px){.anon-layout .topbar-right>.public-login{display:none}.anon-layout .app-topbar{gap:8px}.anon-layout .topbar-left{min-width:26px}}

.public-breadcrumb{padding:8px 0 16px;font-size:.8125rem;color:var(--text-secondary);overflow-wrap:anywhere}.public-breadcrumb a{color:var(--text);text-decoration:underline}
