:root {
  color-scheme: light;
  --ink: #1d2935;
  --muted: #718091;
  --faint: #9aa7b5;
  --line: #e4eaf0;
  --canvas: #f4f7fa;
  --surface: #ffffff;
  --blue: #2769e8;
  --blue-soft: #e9f0ff;
  --mint: #1ba978;
  --sidebar: #131c25;
  --terminal: #10171e;
  --terminal-surface: #151e27;
  --shadow: 0 12px 30px rgba(23, 42, 60, .06);
}

* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { background: var(--canvas); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; font-size: 14px; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, input:focus-visible, textarea:focus-visible { outline: 3px solid rgba(39, 105, 232, .32); outline-offset: 2px; }
.skip-link { position: fixed; top: 8px; left: 8px; z-index: 100; padding: 8px 12px; border-radius: 8px; background: #fff; color: #111; transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100vh; }

.topbar { height: 66px; display: flex; align-items: center; justify-content: space-between; gap: 22px; padding: 0 24px; background: #111a22; color: #e8eff5; border-bottom: 1px solid rgba(255,255,255,.075); position: sticky; top: 0; z-index: 40; }
.brand-lockup, .top-actions, .top-progress, .profile-chip, .brand-copy, .terminal-tab, .terminal-tools, .terminal-foot-left, .terminal-foot-right, .workspace-topline, .breadcrumbs, .workspace-status { display: flex; align-items: center; }
.brand-lockup { gap: 11px; min-width: 265px; }
.brand-mark { width: 29px; height: 29px; display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 3px; padding: 6px 5px; border: 1px solid rgba(109,166,255,.28); border-radius: 8px; background: linear-gradient(145deg, #21456b, #172735); }
.brand-mark span { border-radius: 2px 2px 1px 1px; background: #64a7ff; }
.brand-mark span:nth-child(1) { height: 45%; opacity: .65; }.brand-mark span:nth-child(2) { height: 75%; }.brand-mark span:nth-child(3) { height: 100%; background: #8edfc4; }
.brand-copy { flex-direction: column; align-items: flex-start; gap: 1px; line-height: 1; }
.brand-copy strong { font-size: 15px; letter-spacing: -.35px; color: #f6f9fc; }.brand-copy small { font-size: 8px; color: #8193a5; font-weight: 800; letter-spacing: 1.1px; margin-top: 4px; }
.brand-divider { height: 25px; width: 1px; background: #34414d; margin: 0 5px; }.course-label { font-size: 12px; color: #a7b4c0; white-space: nowrap; }
.top-progress { gap: 12px; width: min(380px, 32vw); font-size: 11px; color: #aab8c5; }.progress-label { white-space: nowrap; display: flex; align-items: center; gap: 7px; }.online-dot, .terminal-live-dot, .foot-ready i, .status-pill i, .ai-state i { width: 7px; height: 7px; display: inline-block; border-radius: 50%; background: #45d7a3; box-shadow: 0 0 0 3px rgba(69,215,163,.12); }
.progress-track { height: 5px; flex: 1; min-width: 60px; border-radius: 99px; background: #34414d; overflow: hidden; }.progress-track span, .course-meter span { display: block; width: 0; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #44c89d, #6fc7ff); transition: width .35s ease; }.top-progress strong { color: #e6eef5; font-size: 10px; white-space: nowrap; }
.top-actions { gap: 9px; }.search-trigger { height: 34px; display: flex; align-items: center; gap: 16px; padding: 0 9px 0 11px; border: 1px solid #34414d; border-radius: 8px; color: #aab8c5; background: #1a2631; }.search-trigger span { font-size: 20px; line-height: 10px; }.search-trigger kbd, kbd { font: 10px ui-monospace, SFMono-Regular, Menlo, monospace; color: #8594a3; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: 4px; padding: 3px 5px; white-space: nowrap; }
.icon-button { width: 34px; height: 34px; border: 1px solid #34414d; border-radius: 8px; color: #b5c1cc; background: #1a2631; font-size: 17px; }.icon-button:hover, .search-trigger:hover { background: #22313f; color: #fff; }.icon-button.tiny { width: 27px; height: 27px; font-size: 18px; border: 0; background: transparent; color: inherit; }
.profile-chip { border: 0; background: transparent; color: #dce5ec; gap: 8px; padding: 3px 0 3px 7px; font-size: 11px; }.profile-avatar { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; font-weight: 800; color: #deeeff; background: linear-gradient(145deg, #4775a2, #355271); }.chevron { color: #8091a0; font-size: 15px; }.mobile-menu, .mobile-chat { display: none; }

.app-grid { min-height: calc(100vh - 66px); display: grid; grid-template-columns: 258px minmax(500px, 1fr) 336px; }
.sidebar { background: var(--sidebar); color: #d9e1e8; min-width: 0; display: flex; flex-direction: column; border-right: 1px solid #26313b; }
.sidebar-scroll { display: flex; flex-direction: column; min-height: calc(100vh - 66px); overflow-y: auto; padding: 22px 15px 15px; }
.sidebar-heading { display: flex; align-items: center; justify-content: space-between; padding: 0 5px; margin-bottom: 16px; }.eyebrow, .module-heading, .task-label { color: #8092a3; font-size: 9px; line-height: 1.2; font-weight: 800; letter-spacing: 1.15px; }.sidebar-heading h1 { font-size: 16px; color: #f4f7fa; margin: 5px 0 0; letter-spacing: -.35px; }
.course-card { border: 1px solid #2c3c4a; background: linear-gradient(145deg, #1c2a36, #17232d); border-radius: 12px; padding: 13px 12px 12px; box-shadow: inset 0 1px rgba(255,255,255,.03); }.course-card-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }.course-symbol { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: #90c2ff; background: #243c52; font-size: 16px; }.course-chip { font-size: 8px; letter-spacing: .6px; color: #87a3bb; border: 1px solid #354a5d; border-radius: 5px; padding: 4px 5px; font-weight: 700; }.course-card strong { font-size: 12px; color: #f2f7fb; }.course-card p { margin: 5px 0 13px; max-width: 190px; font-size: 10px; line-height: 1.5; color: #91a3b2; }.course-meter { height: 4px; border-radius: 99px; background: #2d3c49; overflow: hidden; }.course-meter-caption { display: flex; justify-content: space-between; color: #8fa1b0; font-size: 9px; margin-top: 7px; }
.module-heading { display: flex; align-items: center; justify-content: space-between; margin: 23px 5px 8px; color: #718394; }.module-count { font-size: 9px; font-weight: 700; color: #8a9cab; border-radius: 5px; background: #24323e; padding: 3px 6px; }
.module-list { display: flex; flex-direction: column; gap: 4px; }.module-entry { border-radius: 8px; overflow: hidden; }.module-button { width: 100%; display: grid; grid-template-columns: 24px 1fr auto; align-items: center; gap: 8px; padding: 9px 7px; border: 0; border-radius: 8px; color: #aab8c5; background: transparent; text-align: left; }.module-button:hover { color: #eff6fc; background: #1b2935; }.module-button.active { color: #d8eaff; background: #1d3447; box-shadow: inset 2px 0 #5ea2ff; }.module-icon { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 6px; background: #202f3b; color: #8fa3b5; font-size: 13px; }.module-button.active .module-icon { color: #8ec1ff; background: #29455f; }.module-title { min-width: 0; display: flex; flex-direction: column; gap: 3px; }.module-title strong { font-size: 10px; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.module-title small { font-size: 8px; color: #718394; }.module-progress { font-size: 9px; font-variant-numeric: tabular-nums; color: #718394; }.module-button.locked { opacity: .45; }.module-button.locked .module-progress { color: #738390; }
.sidebar-footer { margin-top: auto; padding: 18px 4px 2px; }.sandbox-note { display: flex; align-items: center; gap: 8px; padding: 10px 9px; border: 1px solid #2a3945; border-radius: 9px; background: #18242e; }.shield-icon { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 7px; color: #7cd9b6; background: #1d3b37; font-size: 14px; }.sandbox-note span:last-child { display: grid; gap: 3px; }.sandbox-note strong { color: #c7d6df; font-size: 9px; }.sandbox-note small { color: #8193a1; font-size: 8px; }.text-button { margin: 10px 0 0 4px; border: 0; padding: 4px; background: transparent; color: #778c9d; font-size: 9px; }.text-button:hover { color: #e7b2b2; }

.workspace { min-width: 0; padding: 21px clamp(18px, 2.25vw, 34px) 18px; display: flex; flex-direction: column; gap: 17px; overflow: hidden; }.workspace-topline { justify-content: space-between; gap: 16px; min-height: 20px; }.breadcrumbs { gap: 9px; color: #8a98a5; font-size: 10px; }.breadcrumbs strong { color: #526272; font-weight: 650; }.crumb-sep { color: #b5c1cb; }.workspace-status { gap: 14px; }.status-pill { display: inline-flex; align-items: center; gap: 6px; color: #527766; font-size: 8px; font-weight: 800; letter-spacing: .6px; background: #e7f7f0; padding: 5px 7px; border-radius: 99px; }.status-pill i { width: 5px; height: 5px; box-shadow: none; }.keyboard-hint { color: #94a2af; font-size: 9px; }.keyboard-hint kbd { background: #eef2f5; border-color: #dce4ea; color: #6f7c88; }
.mission-panel { flex: 0 0 auto; }.mission-kicker-row { display: flex; justify-content: space-between; align-items: center; }.mission-kicker { display: flex; align-items: center; gap: 8px; color: #8b99a6; font-size: 8px; font-weight: 800; letter-spacing: .8px; }.mission-number { color: #2769e8; background: #e8f0ff; padding: 5px 7px; border-radius: 5px; }.dot-separator { color: #c1cbd3; }.week-tag { border: 1px solid #dfe7ee; color: #758493; border-radius: 5px; padding: 4px 6px; font-size: 7px; }.bookmark-button { color: #82909c; border: 0; background: transparent; font-size: 12px; }.bookmark-button span { font-size: 9px; margin-left: 3px; }.bookmark-button.saved { color: #d5982d; }
.mission-title-row { display: flex; align-items: center; gap: 12px; margin: 14px 0 13px; }.mission-icon { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: #3a79dc; font-size: 19px; background: linear-gradient(145deg, #e7f1ff, #dceaff); }.mission-title-copy { min-width: 0; flex: 1; }.mission-title-copy h2 { margin: 0; color: #1e2c39; font-size: clamp(19px, 1.65vw, 23px); line-height: 1.15; letter-spacing: -.7px; }.mission-title-copy p { margin: 5px 0 0; font-size: 10px; color: #82909c; }.difficulty-chip { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 6px; color: #81909d; border: 1px solid #e2e8ee; font-size: 7px; font-weight: 800; letter-spacing: .55px; white-space: nowrap; }.difficulty-dots { color: #f3b459; letter-spacing: -2px; font-size: 9px; }
.task-card { display: flex; gap: 11px; padding: 13px 14px; border: 1px solid #dfe9f2; background: linear-gradient(105deg, #f8fbff, #f0f6fd); border-radius: 10px; }.task-icon { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; color: #4e86da; background: #e3efff; font-size: 17px; }.task-copy { min-width: 0; flex: 1; }.task-label { color: #748ca5; font-size: 8px; }.task-copy p { color: #405366; margin: 4px 0 8px; line-height: 1.45; font-size: 12px; }.task-copy code, .chat-bubble code { color: #2865c6; border-radius: 4px; background: #e2edfb; padding: 1px 4px; font: 11px ui-monospace, SFMono-Regular, Menlo, monospace; }.task-meta { display: flex; align-items: center; gap: 13px; color: #8c9aa7; font-size: 8px; }.hint-row { min-height: 27px; display: flex; align-items: center; gap: 10px; margin-top: 7px; }.hint-button { border: 0; padding: 4px 2px; color: #557eac; background: transparent; font-size: 9px; font-weight: 650; }.hint-button span { color: #e2a740; font-size: 12px; margin-right: 3px; }.hint-text { margin: 0; color: #677889; font-size: 9px; }.hint-text code { color: #306abd; background: #e7effa; border-radius: 3px; padding: 1px 3px; font: 9px ui-monospace, monospace; }.mission-feedback { margin-left: auto; color: #698273; font-size: 9px; }.mission-feedback.success { color: #17885f; font-weight: 700; }.mission-feedback.error { color: #b4614f; }

.terminal-panel { min-height: 320px; flex: 1 1 360px; display: flex; flex-direction: column; border: 1px solid #202d37; border-radius: 11px; overflow: hidden; background: var(--terminal); box-shadow: var(--shadow); }.terminal-toolbar { min-height: 42px; display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 12px; color: #abb8c4; background: #18232d; border-bottom: 1px solid #27343f; }.terminal-tab { height: 42px; gap: 8px; border-bottom: 2px solid #63a5ff; color: #eef5fa; font-size: 10px; }.terminal-icon { display: grid; place-items: center; width: 21px; height: 21px; border-radius: 5px; color: #91c4ff; background: #253d53; font: 12px ui-monospace, monospace; }.terminal-tab-sub { color: #7f91a0; font-size: 9px; }.terminal-live-dot { width: 5px; height: 5px; margin-left: 2px; box-shadow: none; }.terminal-live-label { color: #7e9387; font-size: 8px; }.terminal-tools { gap: 12px; }.cwd-chip { max-width: 145px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 4px 7px; border: 1px solid #30414e; background: #1d2a35; border-radius: 5px; color: #8ca0b0; font: 8px ui-monospace, monospace; }.terminal-tool { display: inline-flex; align-items: center; gap: 4px; border: 0; padding: 4px 2px; background: transparent; color: #8495a3; font-size: 12px; }.terminal-tool span { font-size: 8px; }.terminal-tool:hover { color: #e9f1f7; }.terminal-expand { font-size: 15px; }
.terminal-screen { min-height: 0; flex: 1; display: flex; flex-direction: column; padding: 13px 15px 10px; color: #c3cdd6; overflow: auto; font: 11px/1.65 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }.terminal-welcome { display: flex; align-items: flex-start; gap: 9px; padding: 3px 0 11px; color: #a8b7c4; border-bottom: 1px solid rgba(255,255,255,.06); }.welcome-mark { width: 20px; height: 20px; display: grid; place-items: center; color: #a9dece; background: #1d3c38; border-radius: 6px; font: 10px system-ui; font-weight: 800; }.terminal-welcome strong { color: #dce6ed; font: 10px system-ui; }.terminal-welcome p { margin: 2px 0 0; color: #81919e; font: 9px system-ui; }.terminal-welcome code { color: #90d5bc; background: #203a35; padding: 1px 4px; border-radius: 3px; font: 9px ui-monospace, monospace; }.terminal-lines { flex: 1; padding: 8px 0; overflow-y: auto; }.terminal-row { display: grid; grid-template-columns: minmax(112px, max-content) 1fr; gap: 10px; white-space: pre-wrap; overflow-wrap: anywhere; }.terminal-row + .terminal-row { margin-top: 3px; }.terminal-row .command-label { color: #83d9b9; }.terminal-row .command-output { color: #c1cbd2; }.terminal-row.error .command-output { color: #f1a497; }.terminal-row.success .command-output { color: #a6e2be; }.terminal-input-row { display: flex; align-items: center; gap: 9px; border-top: 1px solid rgba(255,255,255,.07); padding-top: 9px; }.terminal-prompt { flex: 0 0 auto; color: #79c8a9; white-space: nowrap; }.terminal-input-row input { flex: 1; min-width: 20px; color: #eef4f8; border: 0; outline: 0; background: transparent; font: inherit; }.terminal-input-row input::placeholder { color: #687986; }.terminal-input-row input:focus-visible { outline: 0; }.run-command { width: 25px; height: 25px; flex: 0 0 25px; border: 0; border-radius: 6px; color: #12251f; background: #71d2af; font-size: 16px; }.run-command:hover { background: #97e4c7; }.terminal-footer { min-height: 28px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px; color: #728290; background: #131c24; border-top: 1px solid #24313b; font-size: 8px; }.terminal-foot-left, .terminal-foot-right { gap: 10px; }.foot-ready { display: inline-flex; align-items: center; gap: 6px; color: #87a495; }.foot-ready i { width: 5px; height: 5px; box-shadow: none; }.foot-divider { width: 1px; height: 10px; background: #34414a; }
.workspace-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; }.next-step-note { display: flex; align-items: center; gap: 7px; color: #8997a3; font-size: 9px; }.note-icon { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #cbd7e0; border-radius: 50%; color: #7d92a6; font: 9px Georgia, serif; }.check-button { display: inline-flex; align-items: center; gap: 7px; border: 0; border-radius: 8px; padding: 9px 12px; color: #fff; background: #286de6; box-shadow: 0 4px 10px rgba(39,105,232,.17); font-size: 10px; font-weight: 700; white-space: nowrap; }.check-button:hover { background: #1e5dcc; transform: translateY(-1px); }.check-button span { font-size: 14px; }.check-button kbd { color: #d9e7ff; background: rgba(255,255,255,.12); border-color: rgba(255,255,255,.17); font-size: 8px; }

.tutor-panel { min-width: 0; display: flex; flex-direction: column; background: #fff; border-left: 1px solid #e1e8ee; height: calc(100vh - 66px); min-height: 500px; position: sticky; top: 66px; }.tutor-header { height: 62px; flex: 0 0 62px; display: flex; justify-content: space-between; align-items: center; padding: 0 15px; border-bottom: 1px solid #edf1f4; }.tutor-brand { display: flex; align-items: center; gap: 9px; }.tutor-brand > div:last-child { display: grid; gap: 3px; }.tutor-brand strong { font-size: 12px; color: #263747; }.tutor-brand small { color: #8c9aa5; letter-spacing: .8px; font-size: 8px; font-weight: 750; }.bot-avatar { position: relative; width: 31px; height: 27px; display: flex; justify-content: center; align-items: center; gap: 4px; border-radius: 11px 11px 9px 9px; background: linear-gradient(145deg, #366fb5, #244b83); box-shadow: inset 0 -3px rgba(5,25,53,.25); }.bot-avatar:before { content: ""; position: absolute; top: -4px; width: 2px; height: 5px; border-radius: 2px; background: #6a9ddd; }.bot-avatar:after { content: ""; position: absolute; top: -5px; width: 5px; height: 5px; border-radius: 50%; background: #80b5f4; }.bot-eye { width: 4px; height: 5px; border-radius: 2px; background: #d6ecff; }.bot-avatar i { position: absolute; bottom: 4px; width: 9px; height: 2px; border-radius: 5px; background: #79aedf; }.tutor-head-actions { display: flex; align-items: center; gap: 8px; }.ai-state { display: inline-flex; align-items: center; gap: 5px; border-radius: 99px; padding: 5px 7px; color: #587966; background: #edf8f2; font-size: 7px; font-weight: 800; letter-spacing: .4px; }.ai-state i { width: 5px; height: 5px; box-shadow: none; }.ai-state.offline { color: #98754e; background: #fbf3e7; }.ai-state.offline i { background: #d4a458; }.ai-state.busy i { background: #e0ad46; animation: pulse 1s infinite; }.tutor-context { margin: 12px 13px 5px; padding: 8px 9px; border: 1px solid #e2eaf2; border-radius: 8px; display: flex; align-items: center; gap: 7px; color: #5d7285; background: #f7faff; font-size: 9px; }.context-spark { color: #d89d36; font-size: 13px; }.tutor-context button { margin-left: auto; border: 0; background: transparent; color: #7d90a2; }.context-detail { margin: 0 13px 8px; padding: 0 9px 7px; color: #7f8d98; font-size: 8px; }.context-detail strong { color: #3a536b; font-size: 9px; }.context-detail p { margin: 3px 0 0; line-height: 1.45; }
.chat-stream { min-height: 120px; flex: 1; overflow-y: auto; padding: 11px 13px 7px; display: flex; flex-direction: column; gap: 15px; }.chat-day-label { display: flex; align-items: center; gap: 8px; color: #a3afb9; }.chat-day-label span { height: 1px; background: #edf1f4; flex: 1; }.chat-day-label small { white-space: nowrap; font-size: 7px; letter-spacing: .7px; font-weight: 750; }.chat-message { display: flex; align-items: flex-start; gap: 8px; }.chat-avatar { flex: 0 0 23px; width: 23px; height: 23px; display: grid; place-items: center; color: #f3f8ff; background: linear-gradient(145deg, #4c7eb8, #31588d); border-radius: 8px; font-size: 9px; font-weight: 800; }.chat-bubble-wrap { min-width: 0; max-width: 100%; }.chat-name { margin: 1px 0 5px; color: #4c6273; font-size: 8px; font-weight: 750; }.chat-name span { color: #9aa6b0; font-weight: 500; }.chat-bubble { padding: 9px 10px; border: 1px solid #e6edf2; border-radius: 3px 10px 10px 10px; background: #f7f9fb; color: #546474; font-size: 10px; line-height: 1.55; overflow-wrap: anywhere; }.chat-bubble p { margin: 0; }.chat-bubble p + p { margin-top: 7px; }.chat-message time { display: block; margin: 4px 0 0; color: #b0bac3; font-size: 7px; }.user-message { flex-direction: row-reverse; }.user-message .chat-avatar { background: #dceaff; color: #346bb4; }.user-message .chat-bubble { border-color: #dce9fb; border-radius: 10px 3px 10px 10px; background: #eef5ff; color: #426181; }.user-message .chat-bubble-wrap { align-items: flex-end; display: flex; flex-direction: column; }.user-message .chat-name { align-self: flex-end; }.assistant-message.error .chat-bubble { color: #a75b49; background: #fff6f2; }
.suggestion-row { display: flex; gap: 6px; padding: 6px 13px 8px; overflow-x: auto; }.suggestion-chip { border: 1px solid #dfe8ef; border-radius: 99px; background: #fff; color: #6c7d8c; padding: 6px 8px; white-space: nowrap; font-size: 8px; }.suggestion-chip:hover { border-color: #b8d1f3; color: #3f75b9; background: #f7faff; }.chat-composer { margin: 0 12px; border: 1px solid #dfe6eb; border-radius: 10px; background: #fff; box-shadow: 0 3px 10px rgba(31,48,65,.04); }.chat-composer textarea { display: block; width: 100%; resize: none; min-height: 48px; max-height: 120px; border: 0; outline: 0; padding: 10px 10px 5px; color: #344758; background: transparent; font-size: 10px; line-height: 1.45; }.chat-composer textarea::placeholder { color: #a1adb7; }.chat-composer textarea:focus-visible { outline: 0; }.composer-bottom { display: flex; align-items: center; justify-content: space-between; padding: 3px 7px 7px 10px; }.local-ai-note { color: #8c9aa5; font-size: 7px; }.privacy-lock { color: #60a586; margin-right: 3px; }.send-button { width: 26px; height: 26px; border: 0; border-radius: 7px; background: #2e73dc; color: white; font-size: 15px; font-weight: 700; }.send-button:disabled { opacity: .5; cursor: wait; }.tutor-footer { display: flex; justify-content: space-between; gap: 8px; padding: 10px 14px 12px; color: #a0abb4; font-size: 7px; }.tutor-footer button { border: 0; padding: 0; background: transparent; color: #82909b; font-size: 7px; }

.toast-region { position: fixed; right: 20px; bottom: 18px; z-index: 90; display: grid; gap: 8px; pointer-events: none; }.toast { padding: 10px 13px; border-radius: 9px; background: #17232c; color: #e8f1f7; box-shadow: 0 10px 25px rgba(10,18,26,.2); font-size: 10px; animation: toast-in .18s ease-out; }.toast.success { border-left: 3px solid #55c69a; }.toast.warning { border-left: 3px solid #e2ae54; }
.search-overlay { position: fixed; inset: 0; z-index: 100; display: grid; place-items: start center; padding-top: min(19vh, 170px); background: rgba(12, 19, 26, .46); backdrop-filter: blur(3px); }.search-overlay[hidden] { display: none; }.search-dialog { width: min(580px, calc(100% - 28px)); border: 1px solid #dfe6ec; border-radius: 14px; background: #fff; box-shadow: 0 20px 70px rgba(14,27,39,.25); overflow: hidden; }.search-input-wrap { height: 54px; display: flex; align-items: center; gap: 10px; padding: 0 15px; border-bottom: 1px solid #ecf0f3; color: #7f95a6; }.search-input-wrap > span { font-size: 24px; }.search-input-wrap input { flex: 1; border: 0; outline: 0; color: #273849; font-size: 13px; }.search-input-wrap input:focus-visible { outline: 0; }.search-input-wrap kbd { background: #f3f5f7; color: #82909a; border-color: #e7ecef; }.search-results { max-height: 340px; overflow-y: auto; padding: 8px; }.search-result { width: 100%; display: flex; align-items: center; gap: 10px; padding: 9px; text-align: left; border: 0; border-radius: 8px; color: #354a5c; background: transparent; }.search-result:hover, .search-result.selected { background: #eef5ff; }.search-result-icon { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 7px; background: #e6eef9; color: #4377b7; }.search-result div { display: grid; gap: 3px; }.search-result strong { font-size: 10px; }.search-result small { color: #8a98a5; font-size: 8px; }.search-empty { padding: 24px 12px; color: #8b99a5; text-align: center; font-size: 10px; }.search-help { min-height: 31px; display: flex; gap: 15px; align-items: center; padding: 0 13px; border-top: 1px solid #eef1f3; color: #95a1aa; font-size: 8px; }
.mobile-scrim { display: none; }

body[data-theme="dark"] { --ink: #dce5ec; --muted: #9daeba; --line: #2c3944; --canvas: #18222c; --surface: #202c36; --blue-soft: #1e344c; --shadow: 0 12px 30px rgba(0,0,0,.2); color: var(--ink); }
body[data-theme="dark"] .workspace { color: #d9e2e9; }
body[data-theme="dark"] .breadcrumbs strong, body[data-theme="dark"] .mission-title-copy h2 { color: #e3ebf1; }
body[data-theme="dark"] .task-card { border-color: #2a3e50; background: linear-gradient(110deg, #233345, #202e3d); }
body[data-theme="dark"] .task-copy p { color: #c0cfdb; }
body[data-theme="dark"] .task-meta, body[data-theme="dark"] .mission-title-copy p, body[data-theme="dark"] .breadcrumbs { color: #93a5b4; }
body[data-theme="dark"] .difficulty-chip, body[data-theme="dark"] .week-tag { border-color: #3b4b58; color: #9eafbc; }
body[data-theme="dark"] .mission-icon { background: #263e57; color: #92bfff; }
body[data-theme="dark"] .mission-number { color: #9dc5ff; background: #233c58; }
body[data-theme="dark"] .tutor-panel { background: #202c36; border-color: #32404d; }
body[data-theme="dark"] .tutor-header, body[data-theme="dark"] .chat-day-label span { border-color: #34414b; }
body[data-theme="dark"] .tutor-brand strong, body[data-theme="dark"] .context-detail strong { color: #e2eaf0; }
body[data-theme="dark"] .tutor-context, body[data-theme="dark"] .chat-bubble { border-color: #35434f; background: #263440; color: #c1ced8; }
body[data-theme="dark"] .chat-composer { border-color: #3a4a57; background: #1d2932; }
body[data-theme="dark"] .chat-composer textarea { color: #e5edf2; }
body[data-theme="dark"] .suggestion-chip { border-color: #3b4b58; background: #26343f; color: #b0bec8; }
body[data-theme="dark"] .status-pill { background: #203b34; color: #90d7b8; }
body[data-theme="dark"] .keyboard-hint kbd { background: #263540; border-color: #3c4a54; color: #bdc9d2; }
body[data-theme="dark"] .note-icon { border-color: #50616e; color: #aab8c3; }

@keyframes pulse { 50% { opacity: .35; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }

@media (max-width: 1340px) { .app-grid { grid-template-columns: 235px minmax(430px, 1fr) 310px; }.sidebar-scroll { padding-left: 12px; padding-right: 12px; }.workspace { padding-left: 21px; padding-right: 21px; }.top-progress { width: min(330px, 28vw); } }
@media (max-width: 1160px) { .app-grid { grid-template-columns: 230px minmax(0, 1fr); }.tutor-panel { position: fixed; top: 66px; right: 0; bottom: 0; z-index: 31; width: min(360px, 93vw); height: auto; min-height: 0; transform: translateX(105%); transition: transform .24s ease; box-shadow: -15px 0 35px rgba(13,24,34,.13); }.app-shell.chat-open .tutor-panel { transform: translateX(0); }.mobile-chat { display: inline-grid; place-items: center; }.top-progress { width: 31vw; }.mobile-scrim { position: fixed; inset: 66px 0 0; z-index: 29; background: rgba(11,18,24,.36); }.app-shell.chat-open .mobile-scrim, .app-shell.sidebar-open .mobile-scrim { display: block; } }
@media (max-width: 900px) { .topbar { gap: 12px; padding: 0 15px; }.brand-lockup { min-width: auto; }.course-label, .brand-divider, .top-progress { display: none; }.app-grid { display: block; min-height: calc(100vh - 66px); }.sidebar { position: fixed; top: 66px; bottom: 0; left: 0; z-index: 31; width: min(290px, 88vw); transform: translateX(-105%); transition: transform .24s ease; box-shadow: 15px 0 35px rgba(13,24,34,.16); }.app-shell.sidebar-open .sidebar { transform: translateX(0); }.mobile-menu { display: inline-grid; place-items: center; order: -1; }.brand-lockup { margin-right: auto; }.workspace { min-height: calc(100vh - 66px); padding: 18px clamp(14px, 4vw, 28px); }.workspace-status .keyboard-hint { display: none; }.terminal-panel { min-height: 370px; }.mission-panel { padding-bottom: 2px; } }
.mission-sublist { display: grid; gap: 2px; padding: 3px 0 7px 31px; }
.mission-nav-item { width: 100%; min-width: 0; display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 5px; padding: 6px 7px; border: 0; border-radius: 6px; background: transparent; color: #91a1af; text-align: left; font-size: 8px; }
.mission-nav-item span:last-child { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mission-nav-item:hover { color: #e1edf6; background: #1c2b36; }
.mission-nav-item.selected { background: #223a4e; color: #dbeaff; }
.mission-nav-item.done { color: #80c8a8; }
.mission-nav-item.locked { opacity: .42; cursor: not-allowed; }
.mission-nav-status { font: 8px ui-monospace, monospace; color: #6e8292; }
.mission-nav-item.done .mission-nav-status { color: #79cfaa; }
.app-shell.terminal-expanded .terminal-panel { position: fixed; z-index: 65; inset: 82px 355px 22px 275px; min-height: 0; box-shadow: 0 20px 80px rgba(0,0,0,.42); }
.app-shell.terminal-expanded:after { content: ""; position: fixed; z-index: 64; inset: 66px 0 0; background: rgba(8,14,20,.45); }
@media (max-width: 1160px) { .app-shell.terminal-expanded .terminal-panel { inset: 78px 16px 16px; } }
@media (max-width: 560px) { .app-shell.terminal-expanded .terminal-panel { inset: 68px 8px 8px; } }
@media (max-width: 560px) { .topbar { height: 58px; }.brand-mark { width: 27px; height: 27px; }.top-actions { gap: 5px; }.profile-name, .profile-chip .chevron, .search-trigger kbd { display: none; }.search-trigger { width: 33px; justify-content: center; padding: 0; }.top-actions .icon-button { width: 32px; height: 32px; }.sidebar, .tutor-panel { top: 58px; }.mobile-scrim { inset: 58px 0 0; }.workspace { min-height: calc(100vh - 58px); padding: 14px 12px; gap: 12px; }.workspace-topline { gap: 6px; }.workspace-status { gap: 0; }.breadcrumbs { font-size: 9px; gap: 6px; }.status-pill { font-size: 7px; padding: 5px 6px; }.mission-kicker { font-size: 7px; gap: 5px; }.week-tag { display: none; }.mission-title-row { margin: 11px 0; gap: 9px; }.mission-icon { width: 35px; height: 35px; flex-basis: 35px; }.mission-title-copy h2 { font-size: 18px; }.difficulty-chip { padding: 5px; font-size: 6px; }.task-card { padding: 10px; gap: 8px; }.task-meta { gap: 7px; font-size: 7px; flex-wrap: wrap; }.hint-row { flex-wrap: wrap; gap: 6px; }.mission-feedback { flex-basis: 100%; margin-left: 0; }.terminal-panel { min-height: 360px; flex-basis: 380px; }.terminal-toolbar { padding: 0 8px; }.terminal-tools { gap: 7px; }.terminal-tool span, .terminal-live-label, .terminal-tab-sub { display: none; }.cwd-chip { max-width: 100px; }.terminal-screen { padding: 10px 9px; font-size: 10px; }.terminal-row { grid-template-columns: 1fr; gap: 0; }.terminal-prompt { font-size: 9px; }.terminal-footer { font-size: 7px; padding: 0 8px; }.terminal-foot-right span:not(.foot-divider) { display: none; }.workspace-bottom { align-items: stretch; }.next-step-note { max-width: 56%; font-size: 8px; line-height: 1.4; }.check-button { padding: 8px; font-size: 9px; }.check-button kbd { display: none; } }
