/* Today, Coda and Plan share the light from the student design board. */
html #app-shell[data-simple-workspace]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) {
  --board-lavender:#c5e9f7; --board-mint:#c3f5ec; --board-base:#eff7fb;
  --board-card:#f5fcff; --board-line:#cddfea; --board-ink:#121e47;
  background:radial-gradient(ellipse at 96% 4%,var(--board-mint),transparent 42rem),
    radial-gradient(ellipse at 12% 0%,var(--board-lavender),transparent 46rem),var(--board-base)!important;
}
html.theme-dark #app-shell[data-simple-workspace]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) {
  --board-lavender:#202852; --board-mint:#17383c; --board-base:#10152b;
  --board-card:#1c2440; --board-line:#3d4769; --board-ink:#f0f3ff;
}
#app-shell .student-board-avatar {display:block;object-fit:contain;}
#app-shell .mc-nav--sidebar .student-board-avatar {width:30px;height:30px;}
#app-shell .mc-nav--mobile .student-board-avatar {width:38px;height:38px;}
#app-shell .student-board-orbit {
  display:grid;place-items:center;position:relative;isolation:isolate;
  width:92px;height:92px;margin:0 auto 10px;padding:0;border:1px solid #a2d9ff6b;
  border-radius:50%;background:radial-gradient(circle,#354bc1,#182e7d 70%);
  box-shadow:0 0 0 7px #a2e6ff12,0 0 32px #6adfff55;cursor:pointer;
}
#app-shell .student-board-orbit::before {content:'';position:absolute;inset:10px -14px;border:1px solid #94edff88;border-radius:50%;transform:rotate(-22deg);pointer-events:none;}
#app-shell .student-board-orbit img {width:72px;height:72px;}
html body.student-experience #app-shell[data-simple-workspace] [data-view=home] .mc-home-calm [data-home-next].mc-card.today-next {
  order:-2; padding:clamp(20px,3.2vw,40px)!important;border:1px solid #5267a8!important;
  border-radius:26px!important;background:radial-gradient(ellipse at 15% 0%,#3679cd,transparent 60%),linear-gradient(145deg,#213f9f 30%,#171e60 80%,#3e3182)!important;
  color:white;box-shadow:0 18px 36px -24px #101a62b0!important;
}
html #app-shell [data-home-next] :is(h2,[data-home-focus-label],[data-next-context],[data-next-title],[data-next-copy],[data-next-step],.mc-home-start-cue,.mc-home-time-label,.mc-button--text,summary,.small-print,[data-home-focus-sync]) {color:#f3f6ff!important;}
html #app-shell [data-home-next] :is([data-home-duration],.mc-button--secondary) {color:#142054!important;background:#e3e8ff!important;}
html #app-shell [data-home-next] [data-home-duration][aria-pressed=true] {color:#0d3435!important;background:#b2f5dd!important;outline:2px solid #80caaf;}
html body.student-experience #app-shell[data-simple-workspace] [data-view=home] [data-home-next] .home-start-focus[data-home-start-focus] {background:white!important;color:#142054!important;border:0!important;border-radius:15px!important;}
html #app-shell [data-home-next] [data-home-start-focus] * {color:inherit!important;}
html #app-shell[data-simple-workspace] :is(#home-title,#planner-title) {font:750 clamp(1.65rem,3.5vw,2.8rem)/1.12 system-ui,sans-serif!important;letter-spacing:-.05em!important;color:var(--board-ink);}
html #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm]:not([data-coda-flow=conversation]) .ai-conversation-header {
  display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:8px;text-align:center;
  background:radial-gradient(ellipse at 50% 25%,var(--board-mint),transparent 67%),linear-gradient(145deg,var(--board-lavender),var(--board-base));
  border-radius:22px;padding:20px 16px!important;color:var(--board-ink);
}
html #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm]:not([data-coda-flow=conversation]) .coda-chat-presence {position:static!important;display:flex!important;flex:0 0 auto;align-items:center;justify-content:center;padding:0;order:-1;margin:auto;}
html #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm]:not([data-coda-flow=conversation]) .ai-conversation-header h2 {font-family:system-ui,sans-serif;font-weight:730!important;margin:4px auto!important;letter-spacing:-.045em;}
html #app-shell[data-simple-workspace] [data-view=planner] :is(.planner-command-strip,.planner-timeline-card,.planner-page-header,.mc-event-agenda) {
  background:var(--board-card)!important;border:1px solid var(--board-line)!important;border-radius:20px!important;padding:clamp(14px,2vw,24px)!important;
}
html #app-shell[data-simple-workspace] [data-view=planner] .planner-page-header {
  background:linear-gradient(110deg,var(--board-lavender),var(--board-base) 58%,var(--board-mint))!important;
}
html #app-shell[data-simple-workspace] [data-view=planner] .planner-date-nav {border-radius:16px;background:var(--board-card);padding:4px;}
@media(max-width:760px) {
  html #app-shell[data-simple-workspace]:has([data-student-trio]) .glass-topbar>.mobile-sections-button {display:inline-flex!important;}
  html #app-shell .mc-nav--mobile[data-student-trio] {grid-template-columns:repeat(3,minmax(0,1fr))!important;}
  html #app-shell .mc-nav--mobile[data-student-trio] [data-mobile-menu] {display:none!important;}
  #app-shell .mc-nav--mobile[data-student-trio] [data-mobile-tab=ai] {overflow:visible;gap:0;}
}
@media(prefers-reduced-motion:no-preference) {
  html:not(.mc-reduce-motion,[data-reduced-motion=true],[data-personalize-motion=true]) body:not([data-student-coda-artwork=still],[data-student-coda-artwork=none]):not(:has([data-coda-quiet=true],dialog[open],textarea:focus,input:focus)) .student-board-avatar {
    animation:student-board-hover 4.8s ease-in-out infinite alternate;
  }
}
@keyframes student-board-hover {to {transform:translateY(-3px);}}
body[data-student-coda-artwork=none] #app-shell .student-board-avatar {visibility:hidden;}
body[data-student-coda-artwork=none] #app-shell .student-board-orbit {display:none;}
/* The journey initializes after sign-in. Keep the same dock throughout that transition. */
html #app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]):not([data-keyboard-open=true]) .mc-nav--mobile:not([hidden]) {
  display:grid!important;position:fixed;z-index:80;inset:auto 8px max(6px,env(safe-area-inset-bottom));margin-inline:auto;
  width:calc(100% - 16px);max-width:480px;transform:none;box-sizing:border-box;
  grid-template-columns:repeat(var(--mobile-tab-count),minmax(0,1fr));align-items:stretch;gap:2px;
  padding:5px;border-radius:22px;background:var(--board-card);border:1px solid var(--board-line);box-shadow:0 6px 22px #141f4a24;
}
html #app-shell[data-coda-journey=true] .mc-nav--mobile[data-student-trio] {grid-template-columns:repeat(3,minmax(0,1fr))!important;max-width:360px!important;}
html #app-shell[data-coda-journey=true] .mc-nav--mobile[data-student-trio] [data-mobile-menu] {display:none!important;}
html #app-shell[data-coda-journey=true] .mc-nav--mobile button {display:flex;flex-direction:column;align-items:center;justify-content:center;min-width:0;min-height:48px;padding:3px;gap:2px;font:600 .75rem/1.2 system-ui;color:var(--board-ink);}
html #app-shell[data-coda-journey=true] .mc-nav--mobile button svg {width:20px;height:20px;}
html #app-shell[data-coda-journey=true] .mc-nav--mobile [data-mobile-tab=ai] img {width:34px;height:34px;}
html #app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner])>.app-main {padding-bottom:calc(98px + env(safe-area-inset-bottom));}
html #app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) .journey-rail {background:transparent;border:0;margin:0;padding:0;min-height:0;justify-content:flex-end;}
html #app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) .journey-rail>:not(.journey-options) {display:none;}
html #app-shell .journey-coda .journey-coda-copy h2 {color:#f0f7ff!important;}
html #app-shell .journey-coda .journey-coda-copy p {color:#cee1f6!important;}
html #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .coda-next-moves__choices [data-coda-suggestion] {background:var(--board-card)!important;border:1px solid var(--board-line)!important;border-radius:16px!important;}
@media(max-width:760px) {
  html #app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) .glass-topbar {gap:4px;padding:4px 6px!important;margin-bottom:10px!important;}
}
#app-shell .student-plan-week:not([hidden]) {display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:2px;margin:0 0 16px;padding:5px;border:1px solid var(--board-line);border-radius:18px;background:var(--board-card);}
#app-shell .student-plan-week button {display:grid;place-items:center;gap:2px;min-width:0;min-height:52px;padding:4px 0;border:0;border-radius:12px;background:transparent;color:var(--board-ink);cursor:pointer;font:inherit;}
#app-shell .student-plan-week span {font-size:.7rem;opacity:.8;}
#app-shell .student-plan-week button[aria-pressed=true] {background:#172c75;color:#fff;}
#app-shell .student-plan-week button:focus-visible {outline:2px solid #667fd8;outline-offset:1px;}
body:has(#app-shell[data-coda-journey=true]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner])) .mc-coda-companion__launcher .mc-coda-companion__portrait {display:none!important;}
html #app-shell[data-simple-workspace] [data-view=ai] .coda-chat-presence__orb:has(img) {background:transparent!important;border-radius:50%!important;}
html body.student-experience #app-shell[data-simple-workspace] [data-view=home] [data-home-next] .mc-home-time-options {background:#1c2d70!important;}
html body.student-experience #app-shell[data-simple-workspace] [data-home-next] .mc-home-time-options button[aria-pressed=true] {background:#b2f5dd!important;color:#102c35!important;}

/* Keep the preview's ocean palette on the real signed-in screens. */
@media (min-width:761px) {
  html:not(.theme-dark) #app-shell[data-simple-workspace]:is([data-active-view=home],[data-active-view=ai],[data-active-view=planner]) .app-sidebar {
    background:linear-gradient(150deg,#f5fcff 12%,#def5fa 72%,#d1f2f1)!important;
    border-inline-end:1px solid #cddfea;
  }
  #app-shell[data-simple-workspace] .mc-nav--sidebar .mc-nav__item.is-active {
    background:linear-gradient(115deg,#1949c9,#111a61 84%)!important;
    color:white!important;
    border-radius:14px;
  }
}
#app-shell .focus-brainfm-card > a { align-self:flex-start;min-height:44px; }

#app-shell .sidebar-syllabus { min-height:44px;width:100%;justify-content:flex-start;gap:8px; }
#app-shell .sidebar-syllabus svg { width:18px;height:18px;flex:none; }

/* Coda's design-board cards use the live planner, material and reminder controls. */
@media(min-width:1000px) {
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai]:not([hidden]) {
    display:grid!important;
    grid-template-columns:230px minmax(0,1fr);
  }
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai] > .app-sidebar {
    display:flex!important;
    position:sticky;
    top:16px;
    width:auto;
    height:calc(100dvh - 32px);
    min-height:0;
    margin:16px 0 16px 16px;
    padding:20px 14px;
    border:1px solid var(--board-line);
    border-radius:26px;
    box-sizing:border-box;
    overflow-y:auto;
  }
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai][data-sidebar-collapsed=true] {
    grid-template-columns:100px minmax(0,1fr);
  }
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai][data-sidebar-collapsed=true] .sidebar-syllabus span {
    display:none;
  }
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai] > .app-main {
    width:100%;
    min-width:0;
    max-width:1180px;
    padding:20px 28px;
    box-sizing:border-box;
  }
  html body.student-experience #app-shell[data-coda-journey=true][data-active-view=ai] .mc-nav--mobile:not([hidden]) {
    display:none!important;
  }
}
html body.student-experience #app-shell[data-active-view=ai] .glass-topbar {
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-end;
  gap:8px!important;
  padding:10px!important;
  border-radius:22px;
  background:var(--board-card)!important;
}
html body.student-experience #app-shell[data-active-view=ai] .glass-time-weather {
  flex:1 1 200px;
  width:auto!important;
  min-width:0!important;
  padding:0!important;
  margin:0!important;
  background:transparent!important;
}
html body.student-experience #app-shell[data-active-view=ai] .glass-clock {
  display:flex!important;
  flex-wrap:wrap;
  align-items:center;
  justify-content:flex-start;
  gap:10px!important;
  min-width:0!important;
  width:auto!important;
}
html body.student-experience #app-shell[data-active-view=ai] .glass-topbar > button {
  position:static!important;
  flex:0 0 auto;
  min-height:44px;
  margin:0!important;
}
html body.student-experience #app-shell[data-active-view=ai] .glass-topbar .account-signout {
  order:5;
}
html body.student-experience #app-shell[data-active-view=ai] .glass-clock time {
  font-size:16px!important;
  line-height:1.4;
  white-space:nowrap;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] {
  max-width:940px!important;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .ai-conversation-card {
  padding:clamp(18px,3vw,32px)!important;
  border:1px solid var(--board-line)!important;
  border-radius:28px;
  background:color-mix(in srgb,var(--board-card) 86%,transparent)!important;
  box-shadow:0 18px 48px -36px #16255180!important;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .ai-conversation-header {
  background:transparent;
  text-align:center!important;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm]:not([data-coda-flow=conversation]) .coda-chat-presence__orb {
  width:112px!important;
  height:112px!important;
  flex-basis:112px!important;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .coda-space-hint {
  margin-inline:auto!important;
  color:var(--flow-muted);
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
  margin:0 0 16px;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions button {
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  justify-content:space-between;
  gap:20px;
  min-width:0;
  min-height:106px;
  padding:18px;
  border:1px solid var(--board-line);
  border-radius:20px;
  background:var(--board-card);
  color:var(--board-ink);
  font-family:inherit;
  font-size:16px;
  font-weight:700;
  line-height:1.35;
  text-align:left;
  cursor:pointer;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions svg {
  width:22px;
  height:22px;
  fill:none;
  stroke:currentColor;
  stroke-width:1.7;
  color:var(--flow-accent);
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions button:focus-visible {
  outline:3px solid var(--flow-accent);
  outline-offset:3px;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .ai-tutor-layout[data-has-messages=true] .coda-board-actions {
  display:none;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .coda-next-moves {
  margin:0 0 8px;
  max-width:none;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .coda-next-moves__choices [data-coda-suggestion] {
  min-height:44px;
  padding:10px 26px 10px 12px;
  border-radius:24px!important;
}
html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .coda-next-moves__choices [data-coda-suggestion] small {
  display:none;
}
@media(hover:hover) {
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions button:hover {
    background:color-mix(in srgb,var(--board-mint) 60%,var(--board-card));
    border-color:var(--flow-accent);
  }
}
@media(max-width:600px) {
  html body.student-experience #app-shell[data-active-view=ai] .glass-time-weather {
    flex-basis:100%;
  }
  html body.student-experience #app-shell[data-active-view=ai] .glass-topbar > button {
    flex:1 1 auto;
    padding-inline:8px!important;
    font-size:12px;
  }
  html body.student-experience #app-shell[data-active-view=ai] .glass-clock {
    justify-content:space-between;
  }
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .ai-conversation-card {
    padding:16px!important;
    border-radius:24px;
  }
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm]:not([data-coda-flow=conversation]) .coda-chat-presence__orb {
    width:72px!important;
    height:72px!important;
    flex-basis:72px!important;
  }
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai][data-coda-space=calm] .ai-conversation-header {
    padding:4px 0 8px!important;
  }
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions {
    gap:8px;
    margin-bottom:12px;
  }
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions button {
    min-height:84px;
    gap:12px;
    padding:12px;
    border-radius:16px;
    font-size:14px;
  }
}
@media(forced-colors:active) {
  html body.student-experience #app-shell[data-simple-workspace] [data-view=ai] .coda-board-actions button {
    border-color:ButtonText;
  }
}
