:root{
  --ambient-bg:#f4f6f8;
  --ambient-glow-a:rgba(89,101,216,.12);
  --ambient-glow-b:rgba(22,134,111,.09);
  --ambient-panel:rgba(255,255,255,.88);
  --ambient-panel-strong:#fff;
  --ambient-shadow:rgba(41,48,66,.08);
  color-scheme:light;
}

html[data-theme="dark"]{
  --bg:#0b0e13;
  --bg2:#10151d;
  --surface:#151b24;
  --surface2:#1b2330;
  --border:#283342;
  --border2:#39485c;
  --text:#d8e0ea;
  --text-dim:#9ba8b8;
  --text-bright:#f4f7fb;
  --blue:#7d87f2;
  --blue2:#a7adff;
  --blue-dim:rgba(125,135,242,.16);
  --blue-dim2:rgba(125,135,242,.09);
  --green:#54c9a8;
  --green-dim:rgba(84,201,168,.14);
  --red:#ff7970;
  --red-dim:rgba(255,121,112,.13);
  --orange:#efad59;
  --purple:#b69ae7;
  --ambient-bg:#0b0e13;
  --ambient-glow-a:rgba(125,135,242,.16);
  --ambient-glow-b:rgba(84,201,168,.10);
  --ambient-panel:rgba(21,27,36,.88);
  --ambient-panel-strong:#151b24;
  --ambient-shadow:rgba(0,0,0,.28);
  color-scheme:dark;
}

html,body{background:var(--ambient-bg)!important}
body{
  position:relative;
  transition:background-color .32s ease,color .24s ease;
}
body:before{
  content:"";
  position:fixed;
  inset:0;
  z-index:0;
  pointer-events:none;
  background:
    radial-gradient(circle at 84% 10%,var(--ambient-glow-a),transparent 32rem),
    radial-gradient(circle at 8% 74%,var(--ambient-glow-b),transparent 28rem);
}
#limbic-ambient-canvas{
  position:fixed;
  inset:0;
  z-index:0;
  width:100%;
  height:100%;
  pointer-events:none;
  opacity:.62;
  transition:opacity .3s ease;
}
html[data-theme="dark"] #limbic-ambient-canvas{opacity:.84}
#layout{position:relative;z-index:1;background:transparent!important}
#main{background:transparent!important}
#topnav,.mobile-bottom-nav,.limbic-dialog{isolation:isolate}

.theme-toggle{
  position:relative;
  display:grid;
  place-items:center;
  width:38px;
  min-width:38px;
  padding:0!important;
  overflow:hidden;
}
.theme-toggle:before{
  content:"";
  position:absolute;
  inset:6px;
  border-radius:9px;
  background:var(--blue-dim);
  transform:scale(.7);
  opacity:0;
  transition:transform .28s cubic-bezier(.22,1,.36,1),opacity .2s ease;
}
.theme-toggle:hover:before{transform:scale(1);opacity:1}
.theme-toggle-icon{position:relative;z-index:1;font-size:17px;line-height:1;transition:transform .35s cubic-bezier(.22,1,.36,1)}
.theme-toggle:hover .theme-toggle-icon{transform:rotate(16deg) scale(1.06)}
html[data-theme="dark"] .theme-toggle-icon{transform:rotate(-12deg)}

html[data-theme="dark"] .app-topbar{
  background:rgba(11,14,19,.88)!important;
  border-color:rgba(255,255,255,.08)!important;
  box-shadow:0 8px 32px rgba(0,0,0,.18);
}
html[data-theme="dark"] .brand-mark{background:#161d27!important;border-color:#344154!important}
html[data-theme="dark"] .global-search-trigger,
html[data-theme="dark"] .global-search-trigger kbd,
html[data-theme="dark"] .topbar-actions :where(.account-pill,.icon-action){background:#151b24;color:var(--text);border-color:var(--border)}
html[data-theme="dark"] .global-search-trigger:hover,
html[data-theme="dark"] .topbar-actions :where(.account-pill,.icon-action):hover{background:#1c2531;border-color:#4b5b70}
html[data-theme="dark"] #sidebar{background:rgba(14,19,27,.94)!important;border-color:var(--border)!important;box-shadow:16px 0 50px rgba(0,0,0,.16)}
html[data-theme="dark"] :where(.sidebar-primary:hover,.sidebar-primary.active,.sidebar-section-title:hover,.sidebar-subtopic:hover,.sidebar-subtopic.active){background:#19212c!important;color:var(--text-bright)!important;box-shadow:none}
html[data-theme="dark"] .sidebar-count{background:#202a37;color:#9aa6b5}
html[data-theme="dark"] .sidebar-kicker{color:#758191}

html[data-theme="dark"] :where(.continue-card,.progress-card,.quick-action,.course-card,.topic-progress-pill,.task-card,.task-body,.hint-body,.multipart-answer-part,.limbic-dialog-card,.search-dialog-card,.search-result,.practice-module-frame-wrap,.rating-card,.rated-practice-toggle,.profile-card,.profile-modal-card,.community-composer,.community-post,.community-signin,.community-icon-button,.community-count){
  background:var(--ambient-panel-strong)!important;
  border-color:var(--border)!important;
  color:var(--text);
  box-shadow:0 12px 34px var(--ambient-shadow);
}
html[data-theme="dark"] .continue-card{background:linear-gradient(135deg,#171d28,#171827)!important}
html[data-theme="dark"] :where(.task-condition,.multipart-answer-head,.multipart-answer-part,.community-post-body){color:var(--text)!important}
html[data-theme="dark"] :where(.answer-input,.practice-select,.practice-input-number,.auth-input,.profile-field input,.profile-field textarea,.profile-field select){background:#10161e!important;color:var(--text-bright)!important;border-color:var(--border2)!important}
html[data-theme="dark"] :where(.search-dialog-head button,.limbic-close,.auth-tab.active,.task-toolbar button,.profile-command button,.profile-modal-actions button,.profile-modal-head button,.rating-error button,.rating-guest button){background:#1b2430!important;color:var(--text)!important;border-color:var(--border)!important}
html[data-theme="dark"] :where(.search-result:hover,.community-post-actions button:hover,.community-spoiler.revealed){background:#1c2531!important}
html[data-theme="dark"] :where(.community-panel,.community-image-preview,.community-image-picker,.community-post-image,.community-post-image img){background:#111923!important;border-color:var(--border)!important}
html[data-theme="dark"] .community-image-preview button{background:#1b2430!important;color:var(--text)!important}
html[data-theme="dark"] .community-image-picker:hover{background:#1c2531!important;border-color:#5968a7!important}
html[data-theme="dark"] .community-composer.is-dragging{background:rgba(125,135,242,.08)!important;border-color:#7d87f2!important}
html[data-theme="dark"] .search-result{border-bottom-color:var(--border)!important}
html[data-theme="dark"] .progress-ring{background:conic-gradient(var(--green) 0deg,#26303d 0deg)}
html[data-theme="dark"] .progress-ring:after{background:var(--surface)}
html[data-theme="dark"] .progress-track{background:#26303d}
html[data-theme="dark"] :where(.course-card-icon,.course-card-arrow,.course-topic-chip,.rating-avatar,.rating-stat,.user-stat){background:#202937!important;color:var(--text)!important}
html[data-theme="dark"] .course-topic-chip.more{background:var(--blue-dim)!important;color:var(--blue2)!important}
html[data-theme="dark"] .quick-icon.coral{background:rgba(125,135,242,.15)}
html[data-theme="dark"] .quick-icon.mint{background:rgba(84,201,168,.14)}
html[data-theme="dark"] .quick-icon.sand{background:rgba(239,173,89,.14);color:#efad59}
html[data-theme="dark"] .dna-orbit{background:linear-gradient(145deg,#272c52,#1b2340)}
html[data-theme="dark"] .about-section{background:#111720;border-color:var(--border)}
html[data-theme="dark"] :where(.author-card-new,.about-link-button){background:#151b24!important;border-color:var(--border)!important;color:var(--text)}
html[data-theme="dark"] .author-placeholder{background:#202936!important}

/* Inline task context: remove light islands inside dark problem cards. */
html[data-theme="dark"] .context-card{
  background:linear-gradient(135deg,#14231f,#151d27)!important;
  border-color:#31443e!important;
  border-left-color:var(--green)!important;
  color:var(--text)!important;
  box-shadow:inset 0 1px rgba(255,255,255,.025);
}
html[data-theme="dark"] .context-card-title{color:#75d7b9!important}
html[data-theme="dark"] .context-card :where(p,li,span,.task-condition){color:var(--text)!important}
html[data-theme="dark"] .context-card :where(strong,b){color:var(--text-bright)!important}
html[data-theme="dark"] .condition-brief{border-color:var(--border2)!important;color:var(--text-dim)!important}
html[data-theme="dark"] .condition-brief strong{color:var(--text-bright)!important}

/* Complete dark reading surface for task statements and solutions. */
html[data-theme="dark"] :where(.subtopic-title,.task-condition h3.task-story-title,.task-condition h4,.hint-body h4){color:var(--text-bright)!important}
html[data-theme="dark"] :where(.subtopic-desc,.task-edition-label,.task-rounding-note){color:var(--text-dim)!important}
html[data-theme="dark"] .task-givens{
  background:linear-gradient(135deg,#13211e,#141c26)!important;
  border-color:#31443e!important;
  color:var(--text)!important;
  box-shadow:inset 3px 0 #4cb897;
}
html[data-theme="dark"] .task-givens :where(h4,p,li,span,strong){color:inherit!important}
html[data-theme="dark"] :where(.task-questions,.crossover-questions,.multipart-part-prompt,.multipart-model-answer){color:var(--text)!important}
html[data-theme="dark"] :where(.task-toggle,.hint-header){background:#1c2535!important;border-color:#3a4760!important;color:#c7ccff!important}
html[data-theme="dark"] :where(.task-toggle,.hint-header):hover{background:#253047!important;color:#fff!important}
html[data-theme="dark"] :where(.answer-zone,.multipart-answer-zone){background:#101720!important;border-color:var(--border)!important}
html[data-theme="dark"] .task-table-scroll{border-color:var(--border2)!important}
html[data-theme="dark"] .task-condition table{background:#111923!important;color:var(--text)!important}
html[data-theme="dark"] .task-condition table th{background:#202a37!important;color:var(--text-bright)!important}
html[data-theme="dark"] .task-condition table td{border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] .task-condition table tbody tr:nth-child(even){background:#151d27!important}
html[data-theme="dark"] :where(.formula,.task-lab summary){background:#1b2430!important;border-color:var(--border2)!important;color:var(--text)!important}
html[data-theme="dark"] .answer-box{background:#152a25!important;border-color:#315f52!important;color:#8bdbc3!important}
html[data-theme="dark"] .task-lab{border-color:var(--border2)!important}
html[data-theme="dark"] .task-lab iframe{background:#111923!important}

/* Dashboard learning promos */
html[data-theme="dark"] .learning-promo{
  background:linear-gradient(135deg,#171e31 0%,#1b2541 54%,#14242b 118%)!important;
  border-color:#34425a!important;
  color:var(--text)!important;
  box-shadow:0 14px 36px rgba(0,0,0,.18);
}
html[data-theme="dark"] .learning-promo:last-child{
  background:linear-gradient(135deg,#14231f 0%,#18302b 58%,#1b2540 125%)!important;
  border-color:#345047!important;
}
html[data-theme="dark"] .learning-promo:hover{border-color:#5968a7!important;box-shadow:0 18px 42px rgba(0,0,0,.28)}
html[data-theme="dark"] .learning-promo span{color:#aeb6ff!important}
html[data-theme="dark"] .learning-promo h3{color:#f4f7fb!important}
html[data-theme="dark"] .learning-promo p{color:#b6c1ce!important}
html[data-theme="dark"] .learning-promo i{background:#27324a!important;color:#c9ceff!important;border:1px solid #445170}

/* Practice builder and account dialogs */
html[data-theme="dark"] :where(.limbic-dialog-title,.practice-field-label,.practice-field>label,.practice-topic-option,.rated-practice-toggle strong){color:var(--text-bright)!important}
html[data-theme="dark"] :where(.limbic-dialog-copy,.practice-selection-note,.practice-exam-info span,.rated-practice-toggle small){color:var(--text-dim)!important}
html[data-theme="dark"] :where(.practice-topic-picker,.practice-settings-column){background:#101720!important;border-color:var(--border)!important}
html[data-theme="dark"] .practice-topic-group+.practice-topic-group{border-color:var(--border)!important}
html[data-theme="dark"] .practice-topic-group h4{color:#9faabe!important}
html[data-theme="dark"] .practice-topic-option:hover{background:#1a2430!important}
html[data-theme="dark"] .practice-topic-option em{color:#8f9bac!important}
html[data-theme="dark"] :where(.practice-select,.practice-input-number,#practice-count,#practice-minutes){background:#0d141c!important;color:var(--text-bright)!important;border-color:var(--border2)!important}
html[data-theme="dark"] :where(.practice-select option,#practice-count option){background:#111923;color:var(--text-bright)}
html[data-theme="dark"] :where(.rated-practice-toggle,.practice-exam-info){border-color:var(--border)!important}
html[data-theme="dark"] :where(.btn-ghost,.auth-link){color:var(--text)!important}

/* Feynman mode and Symbiosis */
html[data-theme="dark"] :where(.learning-page,#feynman-page,#symbiosis-page){background:linear-gradient(180deg,rgba(13,18,25,.94),rgba(9,13,18,.9))!important;color:var(--text)}
html[data-theme="dark"] .learning-back{color:#a9b5c3!important}
html[data-theme="dark"] .learning-back:hover{color:var(--blue2)!important}
html[data-theme="dark"] .learning-hero:not(.symbiosis-hero){background:linear-gradient(135deg,#171e2c 0%,#202749 58%,#15342f 118%)!important;border-color:#344258!important;box-shadow:0 24px 70px rgba(0,0,0,.28)}
html[data-theme="dark"] .learning-hero:not(.symbiosis-hero) h1{color:#f7f9fc!important}
html[data-theme="dark"] .learning-hero:not(.symbiosis-hero) p{color:#bdc7d3!important}
html[data-theme="dark"] .learning-eyebrow{color:#aeb5ff!important}
html[data-theme="dark"] :where(.learning-step,.learning-card,.feynman-history,.event-info,.event-form,.limbic-support){background:#151c26!important;border-color:var(--border)!important;color:var(--text);box-shadow:0 14px 38px rgba(0,0,0,.18)}
html[data-theme="dark"] .learning-step.active{background:#1d2740!important;border-color:#5968a7!important}
html[data-theme="dark"] .learning-step>span{background:#232d3b!important;color:#bcc5d2!important}
html[data-theme="dark"] .learning-step.active>span{background:var(--blue)!important;color:#fff!important}
html[data-theme="dark"] :where(.learning-card h2,.learning-card h3,.feynman-principle b,.event-cycle b,.criteria-item b,.event-prize h3){color:var(--text-bright)!important}
html[data-theme="dark"] :where(.learning-card-lead,.learning-field label,.learning-field label small,.learning-topic-manual>span,.learning-input-help,.voice-status,.feynman-principle p,.event-cycle p,.criteria-item small,.event-prize li,.learning-check,.event-submit-note,.limbic-support,.limbic-support .support-terms,.limbic-support .support-check){color:var(--text-dim)!important}
html[data-theme="dark"] :where(.feynman-coach,.feynman-availability,.feynman-quota){background:linear-gradient(135deg,#192237,#152a27)!important;border-color:#35445a!important;color:var(--text)!important}
html[data-theme="dark"] .feynman-coach strong{color:#b7bdff!important}
html[data-theme="dark"] .feynman-coach span{background:#111923!important;border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] :where(.learning-select,.learning-input,.learning-textarea,.followup-answer){background:#0e151e!important;border-color:var(--border2)!important;color:var(--text-bright)!important}
html[data-theme="dark"] :where(.learning-select,.learning-input,.learning-textarea)::placeholder{color:#718093!important}
html[data-theme="dark"] :where(.learning-select,.learning-input,.learning-textarea):focus{background:#111a25!important;border-color:#7d87f2!important;box-shadow:0 0 0 3px rgba(125,135,242,.15)!important}
html[data-theme="dark"] .learning-select option{background:#111923;color:var(--text-bright)}
html[data-theme="dark"] :where(.learning-secondary,.voice-button,.model-use-button,.recommendation-chip){background:#1a2430!important;border-color:var(--border2)!important;color:#dce3ed!important}
html[data-theme="dark"] :where(.learning-secondary,.voice-button,.model-use-button,.recommendation-chip):hover{background:#222d3a!important;color:#fff!important}
html[data-theme="dark"] .voice-button.listening{background:#38201f!important;border-color:#8c4e48!important;color:#ffaaa0!important}
html[data-theme="dark"] .followup-question{background:linear-gradient(135deg,#192136,#141c26)!important;border-color:#3a4661!important;color:var(--text)!important}
html[data-theme="dark"] .followup-question :where(label,label small){color:var(--text-dim)!important}
html[data-theme="dark"] .score-ring{background:conic-gradient(var(--lab-indigo) var(--score-angle),#283442 0)!important}
html[data-theme="dark"] .score-ring:after{background:#151c26!important}
html[data-theme="dark"] :where(.feedback-panel,.feedback-panel.good,.feedback-panel.gap,.misconception-card,.model-explanation){background:#121a23!important;border-color:var(--border2)!important}
html[data-theme="dark"] :where(.feedback-panel li,.misconception-card p,.model-explanation p,.result-summary,.dimension-row){color:var(--text)!important}
html[data-theme="dark"] .dimension-track{background:#283341!important}
html[data-theme="dark"] .history-item{background:#111923!important;border-color:var(--border)!important}
html[data-theme="dark"] .history-item:hover{background:#192330!important;border-color:#515e8f!important}
html[data-theme="dark"] :where(.event-cycle article,.criteria-item){background:#111923!important;border-color:var(--border)!important}
html[data-theme="dark"] .criteria-item strong{background:#252e43!important;color:#b9c0ff!important}
html[data-theme="dark"] .event-prize{background:linear-gradient(135deg,#2c201d,#1c2136)!important;border-color:#55403b!important}
html[data-theme="dark"] .event-closed{background:#311c1b!important;border-color:#70423c!important;color:#ff9c91!important}
html[data-theme="dark"] .limbic-support summary{color:#b5bcff!important}
html[data-theme="dark"] .learning-status.info{background:#1c2541;color:#bdc4ff;border-color:#3f4c7b}
html[data-theme="dark"] .learning-status.success{background:#152a25;color:#7bd2b7;border-color:#315f52}
html[data-theme="dark"] .learning-status.error{background:#321d1d;color:#ffaca3;border-color:#70413d}

/* Profile hub */
html[data-theme="dark"] #profile-page{background:transparent!important}
html[data-theme="dark"] .profile-tabs button.active{background:#283245!important;color:#c7ccff!important;box-shadow:none}
html[data-theme="dark"] :where(.profile-card,.profile-kpi,.achievement,.activity-summary div,.next-goal-main,.profile-modal-card,.profile-list-row button,.profile-error button){background:#151c26!important;border-color:var(--border)!important;color:var(--text)!important}
html[data-theme="dark"] .profile-kpi{background:#111923!important}
html[data-theme="dark"] :where(.profile-xp-track,.skill-track,.heatmap-day,.heatmap-legend i){background:#293441!important}
html[data-theme="dark"] .next-goal-main{background:linear-gradient(135deg,#1c2540,#17302b)!important}
html[data-theme="dark"] .quest{background:#111923!important;border-color:var(--border)!important}
html[data-theme="dark"] .profile-modal-head button{background:#222d3a!important;color:var(--text-bright)!important}
html[data-theme="dark"] .profile-avatar-picker{background:#111923;border-color:var(--border2)}
html[data-theme="dark"] .profile-avatar-edit{background:#202a38!important;color:#f4f7fb!important;border-color:#3d4a5c!important}

html[data-theme="dark"] #past-papers-page{background:linear-gradient(180deg,rgba(18,24,33,.9),rgba(11,14,19,.82))}
html[data-theme="dark"] :where(.papers-overview,.papers-collection-nav,.papers-workspace,.paper-control,.papers-filter-toggle,.papers-results-heading button,.paper-group,.paper-card,.papers-empty,.papers-quick-item>span){background:var(--ambient-panel)!important;border-color:var(--border)!important;color:var(--text)}
html[data-theme="dark"] .papers-workspace{background:rgba(17,23,32,.94)!important}
html[data-theme="dark"] .paper-group-grid{background:#10161e}
html[data-theme="dark"] .paper-group>details>summary:hover,
html[data-theme="dark"] .paper-group>details[open]>summary{background:#1a222e}
html[data-theme="dark"] :where(.paper-resource,.paper-more){background:#1a222d!important;border-color:var(--border)!important}
html[data-theme="dark"] .paper-resource:hover{background:#202941!important}
html[data-theme="dark"] :where(.paper-language-row b,.paper-group-side span,.papers-active-filters button){background:#20283a;border-color:#39445e;color:var(--blue2)}
html[data-theme="dark"] .papers-note{background:#211f18;border-color:#4a422d}

html[data-theme="dark"] #olympiad-results-page{background:radial-gradient(circle at 92% 4%,rgba(84,201,168,.1),transparent 26rem),linear-gradient(180deg,#0d1218,#0b0e13);color:var(--text)}
html[data-theme="dark"] :where(.results-hero,.results-series-card,.results-toolbar,.results-protocol){background:rgba(21,27,36,.92);border-color:var(--border);box-shadow:0 20px 55px rgba(0,0,0,.18)}
html[data-theme="dark"] :where(.results-hero h1,.results-meta-row h2,.results-series-card b,.results-protocol-title b){color:var(--text-bright)}
html[data-theme="dark"] :where(.results-hero p,.results-series-card small,.results-count,.results-source-note,.results-protocol-title small){color:var(--text-dim)}
html[data-theme="dark"] .results-hero-stat{background:#18212a;border-color:var(--border)}
html[data-theme="dark"] .results-series-card.active{background:#172720;border-color:#438d76}
html[data-theme="dark"] :where(.results-search input,.results-control,.results-reset){background:#10161e;color:var(--text);border-color:var(--border2)}
html[data-theme="dark"] .results-protocol>summary{background:#171e27}
html[data-theme="dark"] .results-table th{background:#1c2630;color:#9ca8b6}
html[data-theme="dark"] .results-table td{border-color:var(--border);color:var(--text)}
html[data-theme="dark"] .results-table td:first-child{background:#151b24}
html[data-theme="dark"] .results-table tbody tr:hover td,
html[data-theme="dark"] .results-table tbody tr:hover td:first-child{background:#1b2430}
html[data-theme="dark"] .results-award-summary span,
html[data-theme="dark"] .results-chevron{background:#222c37;color:#aab5c1}

html[data-theme="dark"] :where(.rating-table td,.rating-history-row){border-color:var(--border)}
html[data-theme="dark"] .rating-avatar{background:#222c38;color:var(--text)}
html[data-theme="dark"] .rating-chart-point{fill:var(--surface)}
html[data-theme="dark"] :where(.community-entry,.community-panel){background:#111820!important;border-color:var(--border)!important}
html[data-theme="dark"] .community-post.deleted{background:#181d24!important}
html[data-theme="dark"] .community-spoiler.revealed{color:var(--text)}

html[data-theme="dark"] :where(.profile-kpi,.profile-panel,.achievement-card,.activity-card,.skill-row,.profile-paper-item){background:var(--surface)!important;border-color:var(--border)!important;color:var(--text)}
html[data-theme="dark"] .profile-tabs{background:rgba(15,20,28,.92)!important;border-color:var(--border)!important}

html[data-theme="dark"] .btn-ghost{background:#1a2430!important;border-color:var(--border2)!important;color:var(--text-bright)!important}
html[data-theme="dark"] .btn-ghost:hover{background:#222d3a!important;border-color:#6875ae!important;color:#fff!important}
html[data-theme="dark"] .auth-link{color:#b9c0ff!important}

@media(max-width:768px){
  /* Let the fixed drawer escape #layout's desktop stacking context. Otherwise
     the body scrim sits above it and the whole menu becomes blurred/unclickable. */
  #layout{z-index:auto}
  #sidebar{isolation:isolate;will-change:transform;transform:translate3d(-105%,0,0)!important}
  body.sidebar-open:after{content:none!important;display:none!important}
  #sidebar.open{transform:translate3d(0,0,0)!important;visibility:visible!important;opacity:1!important;box-shadow:20px 0 50px rgba(0,0,0,.25),0 0 0 100vmax rgba(5,8,12,.62)!important}
  #limbic-ambient-canvas{opacity:.54}
  html[data-theme="dark"] #limbic-ambient-canvas{opacity:.74}
  .theme-toggle{display:grid!important;width:36px;min-width:36px;height:36px}
  html[data-theme="dark"] .mobile-bottom-nav{background:rgba(15,20,28,.94);border-color:var(--border);box-shadow:0 14px 38px rgba(0,0,0,.35)}
}

@media(prefers-reduced-motion:reduce){
  body,#limbic-ambient-canvas,.theme-toggle:before,.theme-toggle-icon{transition:none!important}
  .theme-toggle:hover .theme-toggle-icon{transform:none}
}
