:root {
  font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  color: #20242c; background: #f5f6f8; font-synthesis: none;
  --ink: #20242c; --muted: #626975; --line: #e0e3e8; --blue: #245bd6;
  --sidebar: 244px; --paper: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; font-size: 15px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
button, input, textarea { font: inherit; }
button { cursor: pointer; color: inherit; border: 0; background: none; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button:disabled { cursor: not-allowed; }
button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #7299f0; outline-offset: 3px; }
svg { flex-shrink: 0; }
.icon { width: 18px; height: 18px; vertical-align: middle; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* Course navigation */
.sidebar { width: var(--sidebar); position: fixed; inset: 0 auto 0 0; display: flex; flex-direction: column; padding: 26px 16px 20px; background: #20232b; color: #e1e4eb; z-index: 30; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 12px; text-decoration: none; color: #fff; }
.brand svg { display: block; width: 100%; max-width: 180px; height: auto; }
.brand-tag { margin: 6px 0 28px 12px; font-size: 12px; color: #a9afbf; }
.side-nav { display: grid; gap: 5px; }
.nav-item { display: flex; align-items: center; gap: 11px; width: 100%; border-radius: 7px; padding: 10px 12px; text-align: left; font-size: 14px; color: #c5cad5; }
.nav-item:hover, .nav-item.active { background: #30343f; color: #fff; }
.nav-count { margin-left: auto; font-size: 12px; color: #adb7cc; }
.course-nav { border-top: 1px solid #3b3f49; margin-top: 25px; padding-top: 23px; }
.course-label { display: flex; justify-content: space-between; align-items: center; padding: 0 12px; margin-bottom: 12px; color: #aeb5c5; }
.eyebrow { font-size: 11px; letter-spacing: 1.1px; font-weight: 650; text-transform: uppercase; }
.course-label .icon { width: 14px; }
.lesson-nav { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px; margin: 3px 0; border-radius: 7px; text-align: left; color: #b7bfce; }
.lesson-nav.current { background: #324568; color: #fff; }
.lesson-nav.available:hover { background: #303e58; }
.lesson-nav:disabled { color: #a8afbd; }
.lesson-num { display: grid; place-items: center; flex-shrink: 0; width: 25px; height: 25px; border: 1px solid #586071; border-radius: 7px; font-size: 11px; font-weight: 600; }
.current .lesson-num { background: #86aafa; border-color: #86aafa; color: #192b4e; }
.done .lesson-num { background: #2f4d42; border-color: #4b7b65; color: #a8e1c3; }
.lesson-num .icon { width: 14px; }
.lesson-name { font-size: 13px; line-height: 1.4; }
.lesson-nav > .icon { margin-left: auto; width: 13px; color: #929eb4; }
.side-bottom { margin-top: auto; padding-top: 28px; }
.journey { padding: 16px 12px; background: #2a2e38; border: 1px solid #3d424f; border-radius: 8px; }
.journey-top { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: 600; }
.journey-top .icon { color: #9bb6ed; width: 15px; }
.progress-track { height: 5px; background: #495161; border-radius: 3px; overflow: hidden; margin: 13px 0 9px; }
.progress-fill { height: 100%; background: #90b2fd; transition: width .3s; }
.journey p { font-size: 12px; color: #b7becc; }
.side-help { display: flex; align-items: center; gap: 9px; padding: 19px 10px 0; font-size: 12px; color: #bac3d3; width: 100%; }
.side-help .icon:last-child { margin-left: auto; width: 14px; }

/* Workspace */
.shell { margin-left: var(--sidebar); min-height: 100vh; }
.topbar { height: 60px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; padding: 0 28px; gap: 20px; background: #fff; }
.breadcrumbs { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--muted); }
.breadcrumbs .icon { width: 13px; color: #7d8592; }
.breadcrumbs strong { color: var(--ink); font-weight: 600; }
.top-actions { display: flex; align-items: center; gap: 18px; }
.saved { font-size: 12px; color: #526459; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.saved .icon { width: 15px; }
.avatar { width: 31px; height: 31px; border: 1px solid #d8dee9; border-radius: 50%; background: #eef1f6; color: #475571; font-size: 12px; font-weight: 600; }
.mobile-menu { display: none; }
.main { padding: 26px 28px; max-width: 1840px; margin: auto; }
.intro-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
.intro-kicker { color: #596578; font-size: 10px; font-weight: 700; letter-spacing: 1.4px; margin-bottom: 5px; }
.intro-row h1 { font-size: 28px; font-weight: 650; letter-spacing: -.8px; line-height: 1.25; }
.intro-row p { font-size: 14px; color: var(--muted); margin-top: 6px; }
.course-badge { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: #526459; }
.course-badge .icon { width: 16px; }
.workspace { display: grid; grid-template-columns: minmax(380px, .92fr) minmax(420px, 1.18fr); gap: 24px; align-items: start; }
.left-column, .right-column { min-width: 0; }
.lesson-card, .chat-card, .preview-card, .check-card { background: #fff; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.lesson-head { padding: 14px 20px; display: flex; justify-content: space-between; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.lesson-step { display: flex; align-items: center; gap: 7px; font-size: 11px; font-weight: 600; letter-spacing: .25px; color: #515e73; }
.lesson-step .icon { width: 16px; color: var(--blue); }
.time { display: flex; align-items: center; gap: 5px; font-size: 12px; white-space: nowrap; color: var(--muted); }
.time .icon { width: 14px; }
.lesson-body { padding: 18px 20px 0; }
.lesson-body h2 { font-size: 22px; font-weight: 650; line-height: 1.35; letter-spacing: -.5px; }
.lesson-background { margin-top: 7px; }
.lesson-background summary { cursor: pointer; font-size: 12px; color: #596578; width: fit-content; padding: 3px 0; }
.lesson-description { font-size: 14px; color: #505865; line-height: 1.7; margin-top: 8px; }
.mission { margin-top: 15px; border-left: 3px solid #7b9fe9; background: #f4f7fd; padding: 13px 15px; border-radius: 0 6px 6px 0; }
.mission-label { display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 650; color: #315181; margin-bottom: 7px; }
.mission-label .icon { width: 14px; }
.mission > p { font-size: 15px; line-height: 1.65; color: #303947; }
.mission ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 5px; }
.mission li { display: flex; align-items: baseline; gap: 8px; font-size: 13px; color: #525e70; }
.mission li:before { content: '•'; color: #627da7; }
.lesson-tools { display: flex; align-items: center; gap: 15px; padding: 14px 20px; }
.text-button { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: #3e577a; padding: 5px 0; }
.text-button:hover { color: var(--blue); text-decoration: underline; }
.text-button:disabled { color: #727987; }
.text-button .icon { width: 16px; }
.divider { height: 15px; width: 1px; background: var(--line); }
.hint-box { margin: 0 20px 18px; padding: 14px; border: 1px solid #e7d6a8; border-radius: 6px; background: #fff9ec; color: #66522b; font-size: 14px; }
.hint-box p + p { margin-top: 9px; }
.hint-count { font-size: 11px; font-weight: 600; margin-bottom: 7px; }

/* Conversation and prompt */
.chat-card { margin-top: 18px; }
.chat-header { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 600; }
.chat-header > .icon { color: #536a91; }
.mode-label { display: flex; align-items: center; gap: 6px; margin-left: auto; padding: 4px 6px; font-size: 11px; font-weight: 500; color: #52605a; border-radius: 4px; }
.mode-label:hover { background: #f0f3f7; }
.mode-label .icon { width: 12px; }
.status-dot { width: 6px; height: 6px; border-radius: 50%; background: #357859; display: inline-block; flex-shrink: 0; }
.chat-messages { padding: 20px 18px 6px; max-height: 390px; overflow: auto; display: flex; flex-direction: column; gap: 22px; scrollbar-width: thin; }
.chat-message { display: flex; align-items: flex-start; gap: 11px; }
.message-avatar { display: grid; place-items: center; flex-shrink: 0; width: 28px; height: 28px; background: #edf2fa; color: #365d98; border-radius: 7px; }
.message-avatar .icon { width: 16px; }
.message-content { font-size: 15px; line-height: 1.75; color: #303641; white-space: pre-wrap; overflow-wrap: anywhere; padding-top: 0; }
.chat-message.user .message-avatar { background: #e9ecf1; color: #49515f; font-size: 12px; font-weight: 650; }
.chat-message.user .message-content { background: #f3f5f8; border-radius: 0 8px 8px 8px; padding: 9px 12px; color: #303641; }
.change-chip { display: flex; align-items: center; gap: 6px; width: fit-content; margin-top: 11px; padding: 4px 8px; border: 1px solid #cde2d5; border-radius: 5px; background: #f1f8f3; color: #386348; font-size: 11px; }
.change-chip .icon { width: 13px; }
.composer { padding: 18px 16px 9px; }
.composer-box { border: 1px solid #aeb9ca; border-radius: 10px; background: #fff; box-shadow: 0 2px 5px #172c4910; overflow: hidden; }
.composer-box:focus-within { border-color: #5b82d9; box-shadow: 0 0 0 3px #e5edfc; }
.composer textarea { display: block; width: 100%; min-height: 88px; max-height: 260px; padding: 13px 14px 5px; resize: vertical; outline: none; border: 0; background: transparent; color: #232d3c; font-size: 15px; line-height: 1.65; }
.composer textarea::placeholder { color: #707887; }
.composer-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 8px 8px 13px; }
.composer-note { display: flex; align-items: center; gap: 5px; font-size: 11px; color: #626d7f; }
.composer-note .icon { width: 13px; }
.send-button { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 7px; background: var(--blue); color: #fff; }
.send-button:hover { background: #174ab7; }
.send-button:disabled { background: #dce2ed; color: #6b778c; }
.send-button .icon { width: 20px; }
.chat-caption { padding: 2px 18px 14px; font-size: 10px; text-align: center; color: #656c79; line-height: 1.6; }
.busy-note { font-size: 13px; color: #5c6778; margin-top: 4px; }
.live-message .message-content { min-width: 0; width: 100%; }
.streamed-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.streamed-text:empty { display: none; }
.live-message .busy-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin-top: 8px; }
.busy-elapsed { flex-basis: 100%; padding-left: 33px; font-size: 12px; color: #667085; }
.loading-dots { display: inline-flex; gap: 5px; padding: 8px 0; }
.loading-dots i { width: 5px; height: 5px; background: #6b85b5; border-radius: 50%; animation: pulse 1.2s infinite; }
.loading-dots i:nth-child(2) { animation-delay: .2s; }
.loading-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes pulse { 50% { opacity: .3; } }
.error-banner { margin: 12px 16px 0; padding: 12px 14px; background: #fff4ed; border: 1px solid #e8c6ae; border-radius: 6px; color: #874723; font-size: 14px; }
.review-banner { padding: 14px 18px; background: #f0f7f2; color: #386148; font-size: 14px; }

/* The app being built */
.preview-card { box-shadow: 0 3px 12px #1c315a06; }
.preview-header { height: 54px; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.tabs { display: flex; align-self: stretch; gap: 23px; }
.tab { display: flex; align-items: center; gap: 7px; position: relative; padding: 0 1px; font-size: 13px; color: #636d7d; }
.tab.selected { font-weight: 600; color: #264d90; }
.tab.selected:after { content: ''; position: absolute; height: 2px; bottom: -1px; inset-inline: 0; background: var(--blue); }
.tab .icon { width: 16px; }
.preview-controls { display: flex; align-items: center; gap: 3px; }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 5px; color: #687385; }
.icon-button .icon { width: 17px; }
.icon-button:hover, .icon-button.selected { color: #2c5597; background: #eaf0fb; }
.preview-controls .expand-preview { display: flex; gap: 5px; width: auto; padding: 0 8px; color: #264d90; background: #eaf0fb; font-size: 12px; }
.control-divider { width: 1px; height: 17px; background: var(--line); margin: 0 5px; }
.browser-bar { display: flex; align-items: center; gap: 12px; height: 37px; padding: 0 16px; background: #fafbfc; border-bottom: 1px solid #eaedf1; }
.window-dots { display: flex; gap: 5px; }
.window-dots i { width: 6px; height: 6px; background: #c4cad4; border-radius: 50%; }
.address { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 11px; color: #667184; flex: 1; }
.address .icon { width: 11px; }
.preview-body { position: relative; height: 505px; display: flex; justify-content: center; overflow: hidden; background: #edf0f5; }
.preview-body iframe { border: 0; width: 100%; height: 100%; background: #fff; }
.preview-body.mobile iframe { width: 340px; max-width: 100%; box-shadow: 0 0 12px #20365218; }
.source-code { margin: 0; width: 100%; height: 100%; padding: 20px; overflow: auto; background: #f8fafc; color: #34465d; font: 13px/1.7 ui-monospace, SFMono-Regular, Consolas, monospace; white-space: pre-wrap; overflow-wrap: anywhere; tab-size: 2; }
.preview-footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; min-height: 37px; padding: 8px 16px; font-size: 10px; color: #636f81; border-top: 1px solid var(--line); }
.preview-footer span { display: flex; align-items: center; gap: 6px; }
.preview-footer .icon { width: 12px; }
.empty-preview { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 28px; text-align: center; background: #fff; }
.empty-canvas { width: 162px; height: 111px; margin-bottom: 25px; border: 1px solid #cdd7e7; border-radius: 8px; transform: rotate(-3deg); background: #fafcff; box-shadow: 7px 7px 0 #edf2fa; }
.canvas-toolbar { display: flex; gap: 4px; padding: 8px; border-bottom: 1px solid #dfe6f0; }
.canvas-toolbar i { width: 4px; height: 4px; border-radius: 50%; background: #b6c4da; }
.canvas-content { padding: 16px; position: relative; }
.canvas-content > span { display: block; height: 5px; background: #dde5f2; border-radius: 2px; width: 65%; margin-bottom: 7px; }
.canvas-content > span:first-child { height: 7px; width: 46%; background: #9fb7df; margin-bottom: 12px; }
.canvas-content > span:nth-child(3) { width: 51%; }
.canvas-content > div { position: absolute; right: -12px; bottom: 4px; width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; background: #e6eefc; border: 1px solid #c8d8f5; color: #416caf; }
.empty-preview h3 { font-size: 24px; font-weight: 600; letter-spacing: -.6px; line-height: 1.4; }
.empty-preview > p { max-width: 310px; font-size: 14px; color: #677285; line-height: 1.75; margin-top: 10px; }
.empty-preview .secondary { margin-top: 22px; }
.build-flow { display: flex; align-items: center; gap: 12px; margin-top: 31px; color: #657287; font-size: 11px; }
.build-flow span { display: flex; align-items: center; gap: 6px; }
.build-flow b { display: grid; place-items: center; height: 19px; width: 19px; border: 1px solid #d7e0ee; border-radius: 50%; font-weight: 500; color: #5472a2; }
.build-flow > .icon { width: 12px; color: #a0adc1; }
.below-preview { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 2px 16px; }
.preview-note { display: flex; align-items: center; gap: 7px; font-size: 11px; color: #626f83; }
.preview-note .icon { width: 14px; }
.below-preview .text-button { font-size: 12px; white-space: nowrap; }
.preview-card.expanded { position: fixed; inset: 20px; z-index: 60; display: flex; flex-direction: column; box-shadow: 0 0 0 100vmax #141b2dbb; }
.preview-card.expanded .preview-body { height: auto; min-height: 0; flex: 1; }
.preview-card.expanded .preview-header, .preview-card.expanded .browser-bar, .preview-card.expanded .preview-footer { flex-shrink: 0; }

/* Checking and continuing */
.check-card { padding: 18px 20px; }
.check-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.check-heading h3 { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 600; }
.check-heading h3 .icon { color: #55765e; width: 18px; }
.check-heading > span { color: #626e80; font-size: 10px; }
.check-card > p { color: #5d6776; font-size: 13px; margin-top: 8px; }
.check-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.check-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #586475; }
.check-list .icon { width: 16px; }
.check-list .pending:before { content: ''; width: 13px; height: 13px; border: 1px solid #9caabd; border-radius: 50%; margin: 0 1px; flex-shrink: 0; }
.check-list .passed { color: #367149; }
.check-list .failed { color: #a64d34; }
.check-button { display: inline-flex; align-items: center; gap: 7px; padding: 9px 12px; margin-top: 17px; background: #f5f7fb; border: 1px solid #cbd4e1; border-radius: 6px; color: #3f5779; font-size: 12px; }
.check-button:disabled { color: #79818d; background: #f6f7f9; border-color: #dce0e6; }
.check-button:not(:disabled):hover { background: #eaf0fb; }
.reflection { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.reflection h4 { margin: 0 0 12px; font-size: 14px; line-height: 1.6; }
.answer { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; padding: 11px 12px; margin-top: 7px; border: 1px solid #d6dce6; border-radius: 6px; font-size: 13px; background: #fafbfd; color: #475368; }
.answer:before { content: ''; height: 13px; width: 13px; flex-shrink: 0; border: 1px solid #9cabbe; border-radius: 50%; }
.answer.correct { background: #edf7f0; border-color: #96bba3; color: #2a653e; }
.answer.correct:before { background: #579568; }
.answer.incorrect { background: #fff6ee; border-color: #d9b599; }
.reflection-feedback { margin-top: 12px; font-size: 13px; color: #675842; }
.lesson-footer { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding-top: 20px; margin-top: 24px; border-top: 1px solid var(--line); }
.footer-thought { display: flex; align-items: center; gap: 8px; color: #657286; font-size: 12px; }
.primary, .secondary { display: inline-flex; align-items: center; justify-content: center; gap: 9px; border-radius: 7px; font-size: 13px; font-weight: 500; padding: 10px 16px; min-height: 40px; }
.primary { background: var(--blue); border: 1px solid var(--blue); color: #fff; }
.primary:hover { background: #194dbd; }
.primary:disabled { background: #e4e8ef; border-color: #d9dfe8; color: #727c8c; }
.secondary { background: #fff; border: 1px solid #cbd5e5; color: #355788; }
.secondary:hover { background: #eff4fc; }
.primary .icon, .secondary .icon { width: 16px; }

/* Dialogs */
.modal-backdrop { position: fixed; inset: 0; z-index: 80; background: #18223677; display: flex; justify-content: center; align-items: center; padding: 24px; }
.modal { width: 560px; max-width: 100%; max-height: 85vh; overflow: auto; padding: 28px; border: 1px solid #d3d9e4; border-radius: 12px; background: #fff; box-shadow: 0 24px 90px #121e3a33; }
.modal-top { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.modal-top h2 { font-size: 22px; font-weight: 600; letter-spacing: -.4px; }
.modal > p, .modal-section p { color: #586376; font-size: 15px; line-height: 1.75; margin: 12px 0; }
.modal h3 { font-size: 16px; margin: 23px 0 8px; }
.example-prompt { padding: 18px; background: #f1f5fc; border: 1px solid #d8e2f2; border-radius: 8px; color: #354a6b; font-size: 15px; line-height: 1.85; margin: 16px 0; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.checkpoint { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 17px 0; border-top: 1px solid var(--line); }
.checkpoint h3 { font-size: 14px; margin: 0; }
.checkpoint p { font-size: 12px; color: #667183; margin-top: 5px; }
.checkpoint button { font-size: 12px; border: 1px solid #cbd6e8; border-radius: 5px; padding: 7px 11px; }
.tag { display: inline-block; padding: 4px 8px; border-radius: 5px; background: #eaf0fa; color: #46618e; font-size: 11px; }
.course-tile { padding: 20px; border: 1px solid #d7e0ec; border-radius: 8px; background: #f6f8fc; margin-top: 20px; }
.course-tile h3 { font-size: 22px; margin: 12px 0; }
.course-tile p { font-size: 14px; color: #586579; line-height: 1.8; }
.course-tile .primary { margin-top: 16px; }
.project-actions { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-top: 12px; }
.celebration { font-size: 48px; color: #5d83d4; margin: 12px 0 20px; }
.modal.complete { text-align: center; }
.modal.complete .modal-top, .modal.complete .modal-actions { justify-content: center; }
.stat-row { display: flex; justify-content: space-around; padding: 22px 0; margin: 20px 0; border-block: 1px solid var(--line); }
.stat-row strong { display: block; font-size: 27px; font-weight: 600; }
.stat-row span { display: block; margin-top: 6px; font-size: 12px; color: #627087; }
.danger { color: #a04d40; }
.mode-status { overflow-wrap: anywhere; }
#toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar)/2); transform: translate(-50%, 20px); padding: 13px 20px; border: 1px solid #424e63; border-radius: 8px; background: #263348; color: #fff; font-size: 13px; box-shadow: 0 8px 25px #18264225; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 36px); }
#toast.visible { opacity: 1; transform: translate(-50%, 0); }
.mobile-scrim { display: none; }

@media (min-width: 1600px) { .main { padding: 30px 40px; } .preview-body { height: 580px; } .workspace { grid-template-columns: minmax(460px, .9fr) minmax(550px, 1.25fr); gap: 28px; } }
@media (max-width: 1250px) { :root { --sidebar: 220px; } .main { padding: 24px 20px; } .topbar { padding: 0 20px; } .workspace { grid-template-columns: minmax(340px, 1fr) minmax(350px, 1.05fr); gap: 18px; } .lesson-name { font-size: 12px; } .course-badge { display: none; } .lesson-body, .lesson-head { padding-inline: 16px; } .mission { padding: 12px; } .preview-header { padding-inline: 12px; } .tabs { gap: 14px; } .preview-controls { gap: 1px; } .icon-button { width: 29px; } .check-heading > span { display: none; } }
@media (max-width: 1050px) { :root { --sidebar: 220px; } .workspace { grid-template-columns: minmax(0, 1fr); gap: 24px; } .preview-body { height: 510px; } .main { max-width: 820px; } .topbar .breadcrumbs > span:first-of-type, .topbar .breadcrumbs > .icon:first-of-type { display: none; } .chat-messages { max-height: 340px; } .course-nav { margin-top: 20px; } }
@media (max-width: 700px) { :root { --sidebar: 0px; } .sidebar { width: 260px; transform: translateX(-100%); transition: transform .2s; } .sidebar.open { transform: translateX(0); } .sidebar.open ~ .mobile-scrim { display: block; position: fixed; inset: 0; background: #15213477; z-index: 25; } .mobile-menu { display: grid; place-items: center; width: 30px; height: 36px; margin-left: -6px; } .topbar { height: 56px; padding: 0 16px; gap: 8px; } .breadcrumbs { font-size: 11px; gap: 7px; } .breadcrumbs > span { display: none; } .breadcrumbs > .icon { display: none; } .top-actions { gap: 10px; } .saved { font-size: 10px; } .avatar { width: 28px; height: 28px; } .main { padding: 22px 14px; } .intro-row { margin-bottom: 20px; } .intro-row h1 { font-size: 27px; } .intro-row p { font-size: 13px; } .workspace { gap: 22px; } .lesson-body h2 { font-size: 22px; } .lesson-step { font-size: 10px; } .lesson-tools { padding-inline: 16px; gap: 12px; } .text-button { font-size: 12px; } .mission > p { font-size: 15px; } .chat-header { padding-inline: 14px; font-size: 13px; gap: 6px; } .mode-label { font-size: 10px; gap: 4px; } .chat-messages { padding-inline: 14px; } .message-content { font-size: 15px; } .composer textarea { font-size: 16px; } .chat-caption { font-size: 10px; } .preview-header { gap: 6px; padding: 0 10px; } .tab { font-size: 12px; gap: 5px; } .tab .icon { width: 15px; } .tabs { gap: 14px; } .icon-button { width: 29px; } .control-divider { margin-inline: 3px; } .preview-body { height: 465px; } .preview-footer { padding-inline: 10px; font-size: 9px; } .empty-preview { padding: 25px 18px; } .empty-preview h3 { font-size: 22px; } .build-flow { gap: 9px; } .below-preview { align-items: flex-start; gap: 10px; } .preview-note { font-size: 11px; } .check-card { padding: 18px 16px; } .lesson-footer { margin-top: 20px; } .footer-thought { font-size: 11px; } .primary { font-size: 12px; padding-inline: 13px; } .modal-backdrop { padding: 14px; } .modal { padding: 22px; } .modal-top h2 { font-size: 21px; } .preview-card.expanded { inset: 8px; } #toast { left: 50%; width: max-content; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

.clarification-note { display: flex; align-items: center; gap: 6px; margin-top: 10px; color: #586579; font-size: 12px; }
.clarification-note .icon { width: 14px; height: 14px; }

/* Project catalog and evidence for authored courses. */
.catalog-modal { max-width: 1060px; width: 100%; }
.catalog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 24px; }
.catalog-card { border: 1px solid #e1e6ec; border-radius: 12px; padding: 20px; display: flex; flex-direction: column; background: #fff; }
.catalog-card h3 { margin: 12px 0 8px; font-size: 20px; }
.catalog-card p { font-size: 14px; line-height: 1.6; margin: 0 0 12px; }
.catalog-card .secondary { margin-top: auto; justify-content: space-between; }
.catalog-art { display: grid; place-items: center; height: 82px; border-radius: 8px; font-size: 47px; color: #46647b; background: #edf4fa; }
.violet .catalog-art, .indigo .catalog-art { color: #665ba9; background: #f0ecfc; }
.pink .catalog-art { color: #b4588b; background: #fbeaf3; }
.teal .catalog-art, .cyan .catalog-art { color: #277e87; background: #e5f5f3; }
.orange .catalog-art, .amber .catalog-art { color: #b97528; background: #fff2df; }
.green .catalog-art { color: #628344; background: #f0f5e8; }
.catalog-meta { margin-top: 14px; font-size: 11px; color: #626e7b; text-transform: uppercase; letter-spacing: .5px; }
.catalog-card .catalog-progress { color: #61765a; font-size: 12px; }
.playtest { border-top: 1px solid #e1e6ec; padding-top: 18px; margin-top: 20px; }
.playtest h4 { margin: 0 0 8px; font-size: 15px; }
.playtest h4 span { display: inline-block; margin-left: 5px; font-size: 10px; font-weight: 500; color: #677c53; background: #f0f4e9; padding: 4px 6px; border-radius: 4px; }
.playtest > p, .check-kind { font-size: 12px; color: #667085; }
.playtest-item { display: flex; align-items: flex-start; gap: 10px; padding: 12px 0; cursor: pointer; }
.playtest-item input { margin: 3px 0 0; width: 17px; height: 17px; flex: none; accent-color: #668a45; }
.playtest-item strong { display: block; font-size: 13px; font-weight: 600; }
.playtest-item small { display: block; font-size: 12px; line-height: 1.65; color: #667085; margin-top: 5px; }
@media (max-width: 800px) { .catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .catalog-grid { grid-template-columns: 1fr; } .intro-row { flex-wrap: wrap; gap: 14px; } .browse-projects { font-size: 12px; } }

.curriculum-notice { display:flex; align-items:center; gap:16px; margin-bottom:20px; padding:14px 18px; border:1px solid #cadcc4; border-radius:8px; background:#f4f8ef; }
.curriculum-notice p { margin:0; font-size:14px; line-height:1.6; flex:1; }

.custom-project-intro { display:flex; align-items:center; justify-content:space-between; gap:20px; padding:22px; margin-top:22px; background:#f4f0ff; border:1px solid #ded5f3; border-radius:12px; }
.custom-project-intro h3 { margin:0 0 7px; font-size:21px; }
.custom-project-intro p { margin:0; max-width:550px; }
.custom-project-intro .primary { flex-shrink:0; }
.custom-idea-label { display:block; font-weight:600; margin:20px 0 8px; }
#custom-idea { width:100%; padding:14px; border:1px solid #bac3cf; border-radius:8px; resize:vertical; line-height:1.6; font-size:16px; }
#custom-idea:focus { outline:2px solid #7461b5; outline-offset:2px; }
.custom-scope-note { font-size:13px; color:#5c6879; }
#plan-status { color:#675090; min-height:24px; }
.custom-scope { background:#f4f6fa; padding:16px; border-radius:8px; margin-top:20px; }
.custom-scope h4 { margin:0 0 8px; }
.custom-scope p { margin:0; }
.custom-lesson-list { padding-left:24px; }
.custom-lesson-list li { padding:8px 0; }
.custom-lesson-list p { margin:4px 0; font-size:14px; }
@media (max-width:700px) { .custom-project-intro { flex-direction:column; align-items:stretch; } }

.custom-plan-modal { max-width: 820px; }

/* Account controls share the workshop's existing dialog and focus styles. */
.account-button{border:1px solid #cdd4c4;border-radius:999px;padding:9px 14px;background:#fff;color:#293322;font:inherit;font-size:13px;font-weight:650;white-space:nowrap;cursor:pointer}
.account-button:hover{background:#f3f6ed}.account-signin{min-height:50px;margin:24px 0 12px}.account-note{font-size:13px!important;color:#626a5d;line-height:1.6}.modal-actions a.primary{text-decoration:none;display:inline-flex;align-items:center;gap:8px}.account-button:focus-visible{outline:3px solid #78885b;outline-offset:3px}
@media(max-width:650px){.top-actions .saved{display:none}.account-button{font-size:12px;padding:8px 10px}.breadcrumbs>span:not(:first-child){display:none}}

.account-button{display:inline-flex;align-items:center;gap:8px}.account-avatar{position:relative;display:inline-grid;place-items:center;flex:0 0 28px;width:28px;height:28px;border-radius:50%;overflow:hidden;background:#e4eadb;color:#394731;font-size:11px;line-height:1}.account-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
