/* One compact route bar; content stays above the device safe area. */
@layer mindcoda-workspace {
 @media(max-width:999px) {
  html body #app-shell#app-shell[data-student-frame]>.mc-nav--mobile:not([hidden]) {grid-template-columns:repeat(var(--mobile-tab-count,5),minmax(0,1fr))!important;height:56px!important;min-height:56px!important;padding:4px!important;border-radius:18px!important;}
  html body #app-shell#app-shell[data-student-frame]>.mc-nav--mobile>.mc-nav__item {min-height:48px!important;padding:3px!important;gap:3px!important;transform:none!important;border-radius:13px!important;}
  html body #app-shell#app-shell[data-student-frame]>.mc-nav--mobile>.mc-nav__item :is(svg,img) {width:24px!important;height:24px!important;margin:0!important;transform:none!important;position:static!important;filter:none!important;}
  html body #app-shell#app-shell[data-student-frame]>.mc-nav--mobile>.mc-nav__item>span {font-size:.75rem!important;line-height:1.2!important;}
  html body #app-shell#app-shell[data-student-frame]>#main {padding-bottom:calc(80px + env(safe-area-inset-bottom,0px))!important;}
 }
 html body #app-shell#app-shell [data-view=planner] .preview-plan-tabs {display:none!important;}
 html body #app-shell#app-shell [data-view=planner] .reference-plan-toolbar [data-plan-views] {display:flex!important;align-items:center;gap:8px;margin:0!important;}
 html body #app-shell#app-shell [data-view=planner] .reference-plan-toolbar select {min-height:44px;min-width:7rem;font-size:1rem;border:1px solid var(--frame-edge,#bacbdb);border-radius:12px;padding:8px 12px;color:var(--frame-ink,#17334b);background:var(--frame-surface,#fff);}
 html body #app-shell#app-shell [data-view=study] :is(.mc-study-workflows,[data-study-workspace-tools])[hidden] {display:none!important;}
 html body #app-shell#app-shell [data-view=focus][data-session-finished=true] :is(.focus-ring,.focus-countdown-calm,.focus-countdown-toggle,[data-focus-toggle]) {display:none!important;}
 html body #app-shell#app-shell [data-view=focus] :is(.focus-finish-summary,[data-focus-reflection]) {box-sizing:border-box;width:100%;padding:16px;margin:12px 0;border:1px solid #5b7b93;border-radius:16px;background:#132a40!important;color:#eff8ff!important;}
 html body #app-shell#app-shell [data-view=focus] .focus-finish-summary h2 {margin:0 0 8px;color:#eff8ff!important;font-size:1.5rem;line-height:1.25;}
 html body #app-shell#app-shell [data-view=focus] :is(.focus-finish-summary p,[data-focus-reflection] p,[data-focus-reflection] label) {color:#d0e1ef!important;font-size:1rem!important;line-height:1.5;}
 html body #app-shell#app-shell [data-view=focus] [data-focus-reflection] label {display:grid;gap:8px;text-align:left;}
 html body #app-shell#app-shell [data-view=focus] [data-focus-reflection] textarea {box-sizing:border-box;min-height:80px;width:100%;padding:12px;border:1px solid #85a4bb;border-radius:12px;resize:vertical;background:#203e55!important;color:#f2f8ff!important;font:400 1rem/1.5 Manrope,system-ui;}
 html body #app-shell#app-shell [data-view=focus] [data-focus-reflection] button {min-height:44px;margin-top:10px;background:#bcf6df!important;color:#113d30!important;}
 html body #app-shell#app-shell [data-view=focus] :is(.focus-finish-summary,[data-focus-reflection])[hidden] {display:none!important;}
}

/* Short, named destinations rather than a second dashboard of buttons. */
html body dialog.mobile-tabs-dialog {width:min(30rem,calc(100% - 24px));max-height:calc(100dvh - 24px);overflow:auto;border-radius:22px;padding:20px;background:#f7fbff!important;color:#18334b!important;}
html.theme-dark body dialog.mobile-tabs-dialog {background:#172e45!important;color:#edf6ff!important;}
html body dialog.mobile-tabs-dialog .mobile-all-sections {display:grid!important;grid-template-columns:1fr!important;gap:12px;}
html body dialog.mobile-tabs-dialog :is(.mobile-all-sections section,.mobile-workspace-shortcuts) {display:grid;grid-template-columns:1fr!important;gap:4px;}
html body dialog.mobile-tabs-dialog h3 {margin:12px 0 4px;font-size:.875rem;color:inherit;}
html body dialog.mobile-tabs-dialog :is(.mobile-all-sections,.mobile-workspace-shortcuts) button {min-height:44px;text-align:left;padding:10px 12px;border:1px solid #8195ab66!important;border-radius:12px;background:transparent!important;color:inherit!important;font:600 1rem/1.4 Manrope,system-ui;box-shadow:none!important;}
html body dialog.mobile-tabs-dialog [data-customize-tabs] {margin-top:14px;}
html body dialog.mobile-tabs-dialog [data-customize-tabs]>summary {min-height:44px;align-content:center;font-size:.9375rem;}

/* The player is body-mounted once. Closing its dialog does not replace it. */
html body dialog.top-study-music__panel {box-sizing:border-box;width:min(30rem,calc(100vw - 24px));max-height:calc(100dvh - 24px);margin:auto;padding:20px;inset:0;border:1px solid #9aafc3;border-radius:22px;background:#f5fbff;color:#17334b;overflow:auto;}
html body dialog.top-study-music__panel:not([open]) {display:block;position:fixed;inset:0 auto auto -10000px;max-height:none;opacity:0;pointer-events:none;}
html body dialog.top-study-music__panel::backdrop {background:#07162999;}
html body dialog.top-study-music__panel .focus-music-card {margin:0!important;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;color:inherit!important;}
html body dialog.top-study-music__panel :is(p,label,small,strong,summary) {color:inherit!important;}
html body dialog.top-study-music__panel :is(button,input,select) {min-height:44px;font-size:1rem;}
html body dialog.top-study-music__panel iframe {width:100%;min-height:352px;border:0;border-radius:12px;}
html.theme-dark body dialog.top-study-music__panel {background:#172e45;color:#edf6ff;}
.study-update {margin-top:16px;padding:14px;border:1px solid var(--frame-edge,#a5b8ca);border-radius:14px;}
.study-update p {font-size:.9375rem;line-height:1.5;}.study-update [role=status]:empty {display:none;}
.study-update button {min-height:44px;font-size:1rem;}

/* Context is one removable chip; the message remains the main action. */
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer {padding:12px!important;gap:8px!important;}
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer textarea {min-height:44px!important;max-height:144px!important;line-height:1.5!important;}
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer [data-coda-thread-attachment] {display:flex;flex-direction:row!important;align-items:center;gap:8px;min-height:44px;width:auto;max-width:100%;padding:0 8px!important;margin:0!important;border-radius:12px;background:var(--coda-surface)!important;}
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer [data-coda-thread-attachment]>span {overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.875rem!important;}
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer [data-coda-thread-attachment]>button {flex:none;width:auto!important;min-width:44px;min-height:44px;margin:0!important;padding:4px 8px!important;background:transparent!important;font-size:.9375rem!important;}
html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer [data-coda-thread-attachment][hidden] {display:none!important;}
@media(max-width:999px) {
 .coda-workspace-chat-empty {min-height:180px!important;padding:16px 0!important;gap:8px!important;}
 .coda-workspace-welcome-avatar {width:88px!important;height:88px!important;}
 html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-welcome-avatar .coda-approved-tap {width:80px!important;height:80px!important;}
 html body.student-experience #app-shell#app-shell#app-shell#app-shell [data-coda-workspace] .coda-workspace-chat #ai-composer {bottom:calc(64px + env(safe-area-inset-bottom,0px))!important;}
 html body.student-experience #app-shell#app-shell#app-shell#app-shell[data-keyboard-open=true] [data-coda-workspace] .coda-workspace-chat #ai-composer {bottom:8px!important;}
}
@media(forced-colors:active) {html body dialog:is(.mobile-tabs-dialog,.top-study-music__panel) {background:Canvas!important;color:CanvasText!important;}}

.study-update-notice {min-height:44px;padding:8px 12px;}
.study-update-notice-status {margin:8px 16px;font-size:.9375rem;line-height:1.5;color:var(--frame-ink,#17334b);}

.coda-narration {display:flex;flex-wrap:wrap;align-items:center;gap:.35rem .75rem;}
.coda-narration-control {min-height:44px;font:600 .9375rem/1.4 Manrope,system-ui,sans-serif;}
.coda-narration-status {font-size:.875rem;line-height:1.5;}
.coda-narration-status:empty {display:none;}
.mc-coda-intro .coda-narration {justify-content:flex-end;margin:.25rem 0 .75rem;}
.mc-signin-hero .coda-narration {justify-content:center;}
.mc-coda-intro [data-tour-copy] {max-width:48ch;font-size:1.0625rem;line-height:1.55;}
.student-frame .student-deck__coda {display:inline-flex;align-items:center;gap:.375rem;min-height:44px;white-space:nowrap;}
.student-frame .student-deck__coda img {object-fit:contain;}
.student-frame .student-deck__coda[hidden],body:has(#app-shell[data-student-deck=true]) .coda-workspace-corner {display:none!important;}
.student-frame .student-deck__motion {display:flex;align-items:center;justify-content:space-between;gap:1rem;min-height:44px;padding:.25rem .75rem;color:var(--frame-ink);font-size:1rem;}
.student-deck__motion input {width:1.25rem;height:1.25rem;accent-color:#135ca2;}
@media(max-width:999px) {
 #app-shell:has(.mc-nav--mobile:not([hidden]) [data-mobile-tab=ai]) .student-deck__coda {display:none!important;}
}
html body.student-experience #app-shell[data-student-deck=true] .coda-workspace-welcome-avatar {
 border-radius:50%;background:radial-gradient(circle at 45% 40%,#c0f9ee77,transparent 72%);
}
html body #app-shell [data-view=ai] .coda-free-preview [hidden] {display:none!important;}
