/* Text and surface pairs for expanded tools and sheets, including Focus's
   permanently dark room when the surrounding account prefers Light. */
html.theme-dark body.student-experience :is(.eyebrow,.mc-home-progress__eyebrow) { color:#c6cee8!important; }
html.theme-dark body.student-experience #app-shell .mc-home-progress :is(.mc-home-progress__ask,.mc-home-progress__switch button[aria-pressed=true]) { background:#c7fce0; color:#05145c; }
html.theme-dark body.student-experience .availability-preset { background:#26365c; color:#edf4ff; }
html.theme-dark body.student-experience .availability-preset.is-selected { background:#c7fce0; color:#05145c; }
html.theme-dark body.student-experience .coda-settings-done { background:#c7fce0; color:#05145c; }
html.theme-dark body.student-experience #shared-timer-panel .coda-timer-buttons button:first-child { background:#c7fce0; color:#05145c; }
html.theme-dark body.student-experience .plan-board-dialog header button { background:#26365c; color:#edf4ff; }
html.theme-dark body.student-experience #app-shell .maps-node.root { color:#071735; }
html.theme-dark body.student-experience #app-shell .maps-node.root small { color:inherit; opacity:1; }

html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack {
  --mc-ink:#f1fbff; --mc-ink-secondary:#d0d8f2; --mc-surface:#142446;
  --mc-pearl:#0c1733; --mc-glass-standard:#142446; --mc-glass-strong:#142446;
  --mc-line:rgba(208,216,242,.25); --mc-line-strong:rgba(208,216,242,.45);
}
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack .mc-card { color:#f1fbff; background:#142446!important; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack .eyebrow { color:#d0d8f2!important; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-toggle { background:#26365c; color:#f1fbff; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack .focus-preset strong { color:inherit; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack .focus-preset { color:#edf4ff; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] .focus-side-stack .focus-preset.is-selected { background:#c7fce0; color:#05145c; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] [data-view=focus] [data-focus-countdown-toggle] { color:#edf4ff!important; }
html body.student-experience #app-shell#app-shell[data-active-view=focus] .coda-workspace-details>summary { color:#d0d8f2; }
html body.student-experience #app-shell .focus-world-tag { color:#05145c; background:#c7fce0; }
html body.student-experience dialog.focus-strict-screen { color:#edf4ff!important; background:#030711!important; }
html body.student-experience dialog.focus-strict-screen p { color:#d0d8f2; }

/* Opaque text badges remain readable over every time-of-day sky. */
html body.student-experience #app-shell#app-shell[data-preview-shell=true] .today-free { color:#fff!important; background:#183e7f!important; }
html:not(.theme-dark) body.student-experience #app-shell .plan-board-empty { color:#3c4c66; }
html:not(.theme-dark) body.student-experience #app-shell#app-shell .page-kicker { color:#3c4c66!important; }
html:not(.theme-dark) body.student-experience #app-shell#app-shell .mc-home-tools .mc-button { color:#142044; }
html body.student-experience dialog.mobile-tabs-dialog :is(p,.eyebrow) { color:var(--mc-ink-secondary)!important; }
html:not(.theme-dark) body.student-experience .roam-heading p { color:#3c4c66; }
html:not(.theme-dark) body.student-experience .roam-beta { color:#3c4c66; }
html body.student-experience #app-shell .text-size-choice__options input:checked+span { background:#1d3f8c; border-color:#1d3f8c; color:#fff; }
html.theme-dark body.student-experience #app-shell .text-size-choice__options input:checked+span { background:#c7fce0; border-color:#c7fce0; color:#05145c; }
html:not(.theme-dark) body.student-experience .plan-view-select { color-scheme:light; color:#102044; background:#fff; }
html.theme-dark body.student-experience .plan-view-select { color-scheme:dark; color:#edf4ff; background:#26365c; }
html body.student-experience dialog.mc-sheet .sheet-surface>h2 { padding-inline-end:40px; overflow-wrap:anywhere; }
html body.student-experience #planner-suggestions-sheet .planner-form__actions--stack { display:grid!important; grid-template-columns:minmax(0,1fr)!important; }
html body.student-experience dialog.mc-sheet .planner-form__actions>button { min-width:0; white-space:normal; overflow-wrap:anywhere; }
html.theme-dark body.student-experience .plan-board-dialog .plan-board-note { color:#c6cee8; }
html.theme-dark body.student-experience .top-study-music__panel .focus-music-card :is(p,small,summary) { color:#d0d8f2!important; }
html.theme-dark body.student-experience #app-shell#app-shell .course-extra-resources>summary { background:#1d2a63; color:#edf4ff!important; }
html.theme-dark body.student-experience #app-shell#app-shell#app-shell[data-preview-shell=true] details.reading-settings { background:#142446!important; color:#edf4ff; }
html.theme-dark body.student-experience #app-shell#app-shell#app-shell[data-preview-shell=true] .reading-settings>p { color:#d0d8f2!important; }
/* Sign-in remains a dark card even when the public page uses Light. */
html #account-sheet#account-sheet.mc-student-signin .entry-early-access>p,
html #account-sheet#account-sheet.mc-student-signin .account-form .small-print { color:#dce3ff!important; }
html:not(.theme-dark) body.is-marketing .mc-signin-explore { color:#2d4f7c!important; }
html:not(.theme-dark) #marketing-page #cap1>.eyebrow { color:#19624f; background:#f7f8fc; }
html.theme-dark #marketing-page #cap1>.eyebrow { color:#c7fce0; background:#0f1b4d; }
#marketing-page #cap1>.eyebrow { width:fit-content; max-width:100%; border-radius:8px; padding:4px 6px; }
#marketing-page #cap1 { z-index:6; }
html.theme-dark body.student-experience #app-shell#app-shell#app-shell[data-preview-shell=true] .app-view:not([data-view=focus]) .mc-task-capture__fields input { color:#edf4ff!important; background:#26365c!important; }
html body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status [data-live-focus-button] { color:#05145c!important; background:#c7fce0!important; }
html body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status [data-live-focus-button] span { color:inherit!important; }
html:not(.theme-dark) #marketing-page #web-arrival .link-btn { color:#19624f; background:#f7f8fc; }
html.theme-dark #marketing-page #web-arrival .link-btn { color:#edf4ff; background:#0f1b4d; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] .today-day-priority { color:#fff; background:#183e7f; border-radius:8px; padding:6px 10px; }
html body.student-experience #app-shell#app-shell[data-preview-shell=true] .today-day-priority::before { display:none; }
/* Enlarged reading sizes need one-column controls inside the zoomed canvas. */
@media(max-width:760px) {
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] :is(.mc-task-capture__buttons,.mc-home-tools,.mc-course-learning__actions) { display:grid!important; grid-template-columns:minmax(0,1fr)!important; width:100%!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] :is(.mc-task-capture__buttons,.mc-course-learning__actions)>.mc-button { width:100%!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .audit-secondary details>div { display:grid; grid-template-columns:minmax(0,1fr); }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] :is(.audit-secondary,.profile-settings-card) .mc-button { width:100%!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preference-row { flex-direction:column; align-items:start; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .theme-picker { display:grid!important; grid-template-columns:minmax(0,1fr); width:100%; border-radius:12px; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] :is(.focus-settings-form,.focus-settings-durations,.focus-custom,.focus-settings-footer) { display:grid; grid-template-columns:minmax(0,1fr)!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .focus-settings-form { margin-inline:0; padding:8px!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .profile-layout .mc-button { width:100%!important; overflow-wrap:anywhere; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] :is(.profile-person,.account-card__actions,.google-connectors__actions) { display:flex; flex-direction:column; align-items:stretch; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .google-connectors__cards { grid-template-columns:minmax(0,1fr); }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .mc-button { overflow-wrap:anywhere!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .mc-card .mc-card { padding:8px!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .mc-live-custom__row { display:grid; grid-template-columns:minmax(0,1fr); }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .mc-live-custom__row select { width:100%; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .mc-weather-appearance { padding-inline:0; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .profile-layout>.simple-tools { padding:8px!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .profile-layout>.simple-tools>article { padding:8px!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status :is([data-live-focus-button],.mc-live-header,[data-workspace-lock]) { flex-wrap:wrap!important; height:auto!important; min-height:44px!important; padding:10px!important; white-space:normal!important; line-height:1.4!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status .mc-live-header { flex-direction:column!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status [data-live-clock] { white-space:normal!important; overflow-wrap:anywhere; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell #shared-workspace-status#shared-workspace-status .mc-app-weather__details { margin-inline-start:0!important; padding-inline-start:0!important; border:0!important; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-heading { flex-direction:column; align-items:start; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-heading strong { white-space:normal; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-chart { height:auto!important; grid-template-columns:minmax(0,1fr); }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-day { display:grid; grid-template-columns:28px 24px minmax(0,1fr); gap:6px; min-height:44px; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-plot { grid-column:3; grid-row:1; min-height:0; text-align:end; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-letter { grid-column:1; grid-row:1; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-date { grid-column:2; grid-row:1; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-amount { position:static; transform:none; white-space:normal; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .preview-plan-week-stack { display:none; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .plan-week-limit { position:static; grid-column:1/-1; }
  html:not([data-text-scale="100"]) body.student-experience #app-shell#app-shell[data-preview-shell=true] .plan-week-limit b { position:static; white-space:normal; }
}
@media(max-width:760px) { .roam-field :is(input,select,textarea) { font-size:16px; } }
@media(max-width:760px) {
  .mc-task-capture__fields { grid-template-columns:minmax(0,1fr); }
  .mc-task-capture__fields :is(label,input) { min-width:0; max-width:100%; }
  .mc-task-capture__fields input { width:100%; box-sizing:border-box; }
}
@media(forced-colors:active) {
  html body.student-experience #app-shell .text-size-choice__options input:checked+span { background:Highlight; color:HighlightText; border-color:Highlight; }
}
