:root {
  --ink: #242438; --muted: #747487; --accent: #6255c7; --accent-hover: #5144b0;
  --soft: #f0edfc; --line: #e8e7ee; --canvas: #f8f9fc; --white: #fff;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
button, input, textarea, select { font: inherit; }
button, summary, input[type=submit] { cursor: pointer; }
button:disabled, input:disabled { cursor: wait; opacity: .6; }
:focus-visible { outline: 3px solid #9f92e8; outline-offset: 3px; }
[hidden] { display: none !important; }
.skip-link { position: fixed; top: -60px; left: 16px; z-index: 100; padding: 12px 20px; background: white; }
.skip-link:focus { top: 12px; }
.app-shell { display: grid; grid-template-columns: 228px minmax(0,1fr); min-height: 100dvh; background: var(--canvas); }
.app-sidebar { position: sticky; top: 0; height: 100dvh; display: flex; flex-direction: column; gap: 24px; padding: 30px 20px 20px; border-right: 1px solid var(--line); background: #fff; }
.app-brand { display: inline-flex; align-items: center; gap: 9px; color: var(--ink); font-size: 19px; font-weight: 800; letter-spacing: -.7px; }
.brand-mark { width: 31px; height: 34px; display: grid; place-items: center; background: var(--accent); border-radius: 10px; color: white; font-size: 19px; font-weight: 600; }
.brand-ai { color: var(--accent); margin-left: -6px; font-weight: 500; }
.sidebar-caption { color: #858493; font-size: 10px; font-weight: 600; letter-spacing: 1.35px; margin: 19px 10px -11px; }
.app-nav { display: grid; gap: 5px; }
.nav-link { display: block; width: 100%; padding: 12px 13px; text-align: left; border: 0; border-radius: 8px; background: transparent; font-size: 13px; font-weight: 500; color: #666476; }
.nav-link:hover { background: #f7f6fb; color: var(--accent); }
.nav-link-active { background: var(--soft); color: #5544ac; font-weight: 650; }
.sidebar-footer { display: grid; gap: 22px; margin-top: auto; padding-top: 30px; }
.sidebar-note { background: #f8f7fc; border: 1px solid #efedf7; border-radius: 10px; padding: 17px 14px; font-size: 12px; line-height: 1.7; }
.sidebar-note strong { font-weight: 600; }
.sidebar-note p { margin: 9px 0 0; color: var(--muted); font-size: 11px; }
.account-link { display: flex; min-width: 0; gap: 10px; align-items: center; }
.account-avatar { display: grid; place-items: center; flex-shrink: 0; width: 33px; height: 33px; border-radius: 50%; background: #eeecf4; color: #696279; font-size: 12px; }
.account-link > span:last-child { min-width: 0; }
.account-link strong { display: block; font-size: 12px; font-weight: 600; }
.account-link small { display: block; overflow: hidden; text-overflow: ellipsis; font-size: 10px; margin-top: 4px; color: var(--muted); }
.sidebar-legal { display: flex; justify-content: space-between; align-items: center; font-size: 11px; color: var(--muted); }
.text-action { border: 0; background: none; color: inherit; padding: 0; }
.app-main { min-width: 0; }
.app-topbar { min-height: 65px; padding: 16px 36px; display: flex; align-items: center; justify-content: space-between; gap: 16px; border-bottom: 1px solid var(--line); background: white; }
.topbar-context { display: flex; align-items: center; gap: 13px; font-size: 12px; color: #666477; }
.context-brand { font-size: 11px; font-weight: 650; color: #504e61; }
.topbar-divider { color: #cfccd9; }
.desktop-note { color: #8a8897; font-size: 11px; }
.mobile-nav { display: none; }
.app-content { max-width: 1260px; margin: auto; padding: 48px 52px 64px; }
.eyebrow { font-size: 10px; font-weight: 650; letter-spacing: 1.6px; color: var(--accent); text-transform: uppercase; margin: 0 0 13px; }
.page-header { display: flex; justify-content: space-between; align-items: center; gap: 22px; margin-bottom: 30px; }
.page-title { font-size: clamp(25px, 3vw, 33px); font-weight: 650; line-height: 1.25; letter-spacing: -1px; margin: 0; }
.page-subtitle { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.btn-primary, .btn-secondary, .btn-quiet { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 42px; padding: 10px 17px; border-radius: 8px; font-size: 12px; font-weight: 600; white-space: nowrap; transition: background .15s; }
.btn-primary { background: var(--accent); color: white; border: 1px solid var(--accent); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border: 1px solid #dedbe8; background: white; color: #57516e; }
.btn-secondary:hover { background: #f4f2fb; }
.btn-quiet { color: var(--muted); border: 1px solid transparent; background: transparent; }
.btn-quiet:hover { background: #eeedf5; }
.welcome-panel { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 25px; border: 1px solid #e6e1f3; background: #f1eef9; border-radius: 13px; padding: 28px 30px; margin-bottom: 34px; }
.welcome-panel h2 { font-size: 19px; font-weight: 600; letter-spacing: -.4px; margin: 0 0 8px; }
.welcome-panel p { color: #79708d; line-height: 1.7; font-size: 12px; max-width: 500px; margin: 0; }
.welcome-label { display: inline-flex; padding: 7px 10px; border: 1px solid #dcd5ee; border-radius: 7px; font-size: 10px; color: #79689c; background: #faf8ff; }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 18px; }
.section-heading h2 { margin: 0; font-size: 14px; font-weight: 600; }
.section-heading small { color: var(--muted); font-weight: 400; margin-left: 8px; }
.search-form { display: flex; gap: 7px; align-items: center; }
.search-input { width: 215px; height: 36px; border: 1px solid var(--line); background: #fff; border-radius: 7px; padding: 8px 11px; font-size: 11px; }
.search-form button { font-size: 11px; min-height: 36px; padding: 7px 11px; }
.project-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 18px; }
.project-card { display: flex; flex-direction: column; align-items: flex-start; gap: 15px; padding: 24px; min-height: 222px; border: 1px solid var(--line); background: white; border-radius: 12px; transition: border-color .15s, box-shadow .15s; }
.project-card:hover { border-color: #c8bee7; box-shadow: 0 4px 15px #28204205; }
.tutor-badge { display: inline-flex; align-items: center; padding: 5px 9px; border-radius: 5px; background: #eeebfa; color: #7960a5; font-size: 10px; font-weight: 550; white-space: nowrap; }
.tutor-badge-programming { background: #eaf2f6; color: #507b89; }
.project-card h3 { font-size: 17px; font-weight: 600; line-height: 1.4; letter-spacing: -.3px; margin: 0; overflow-wrap: anywhere; }
.project-card p { font-size: 12px; line-height: 1.75; color: var(--muted); margin: -6px 0 4px; }
.project-card-footer { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: auto; padding-top: 15px; border-top: 1px solid #f1eff5; font-size: 10px; color: #8b8796; }
.project-card-footer a { color: var(--accent); font-size: 11px; font-weight: 550; }
.empty-panel { text-align: center; border: 1px dashed #d8d2e6; border-radius: 12px; padding: 45px 28px; background: #fff; }
.empty-panel h2 { font-size: 22px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 12px; }
.empty-panel p { font-size: 13px; line-height: 1.8; color: var(--muted); max-width: 470px; margin: 0 auto 24px; }
.empty-actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; }
.workspace-footnote { text-align: center; font-size: 11px; color: #918c9f; margin-top: 30px; }
.form-page { max-width: 720px; margin: auto; }
.back-link { display: inline-block; color: var(--muted); font-size: 12px; margin-bottom: 26px; }
.form-panel { border: 1px solid var(--line); border-radius: 12px; background: white; padding: 30px; }
.field { margin-bottom: 24px; }
.field label, .field legend { display: block; font-size: 12px; font-weight: 600; margin-bottom: 9px; }
.field .optional { color: var(--muted); font-weight: 400; }
.field-input { display: block; width: 100%; border: 1px solid #dad7e4; border-radius: 8px; padding: 12px; background: #fff; font-size: 13px; line-height: 1.6; }
.field-input::placeholder { color: #9993a5; }
.field-hint { display: block; font-size: 11px; line-height: 1.7; color: var(--muted); margin: 8px 0 0; }
.tutor-options { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tutor-option { position: relative; display: flex !important; align-items: flex-start; gap: 12px; margin: 0 !important; padding: 18px; border: 1px solid #e2deeb; border-radius: 10px; cursor: pointer; }
.tutor-option:has(input:checked) { background: #f6f3ff; border-color: #9b88d6; }
.tutor-option input { margin-top: 3px; accent-color: var(--accent); color: var(--accent); }
.tutor-option strong { display: block; font-size: 13px; font-weight: 600; }
.tutor-option small { display: block; color: var(--muted); font-weight: 400; font-size: 11px; line-height: 1.7; margin-top: 7px; }
.form-actions { display: flex; align-items: center; gap: 12px; border-top: 1px solid var(--line); padding-top: 23px; margin-top: 28px; }
.flash { font-size: 12px; padding: 12px 18px; border-radius: 8px; margin-bottom: 20px; line-height: 1.6; }
.flash-success { background: #eef7f0; color: #3e704b; border: 1px solid #dcecdf; }
.flash-error { background: #fdf1f0; color: #a0403b; border: 1px solid #f1d5d3; }
.flash ul { list-style: disc; padding-left: 18px; margin-top: 5px; }
.app-main-chat { display: flex; height: 100dvh; flex-direction: column; }
.chat-main { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.chat-main > .flash { margin: 10px 24px 0; padding: 8px 14px; }
.conversation-header { display: flex; justify-content: space-between; align-items: center; flex-shrink: 0; gap: 14px; padding: 22px 34px; border-bottom: 1px solid var(--line); background: #fff; }
.conversation-heading { min-width: 0; }
.conversation-heading h1 { font-size: 19px; font-weight: 600; letter-spacing: -.5px; margin: 0 0 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.conversation-meta { display: flex; align-items: center; gap: 10px; color: #8c859c; font-size: 10px; }
.conversation-actions { display: flex; align-items: center; gap: 10px; }
.conversation-actions .btn-secondary { min-height: 35px; font-size: 11px; padding: 7px 11px; }
.conversation-details { position: relative; font-size: 11px; color: var(--muted); }
.conversation-details summary { padding: 8px 0; }
.details-panel { position: absolute; right: 0; top: 100%; width: 280px; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 25px #24243810; z-index: 5; line-height: 1.8; overflow-wrap: anywhere; }
.details-panel a { display: inline-block; margin-top: 12px; color: var(--accent); }
.conversation { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.conversation-scroll { overflow-y: auto; flex: 1; min-height: 0; overscroll-behavior: contain; padding: 32px 28px 16px; }
.conversation-column { max-width: 760px; margin: 0 auto; }
.chat-empty { padding: 25px 10px 20px; max-width: 600px; margin: auto; text-align: center; }
.chat-empty .eyebrow { margin-bottom: 14px; }
.chat-empty h2 { font-size: clamp(23px, 3vw, 30px); letter-spacing: -.8px; line-height: 1.35; font-weight: 550; margin: 0 0 14px; }
.chat-empty > p { max-width: 445px; margin: 0 auto; color: var(--muted); font-size: 13px; line-height: 1.8; }
.starter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 28px; text-align: left; }
.starter { display: block; width: 100%; text-align: left; padding: 17px; border: 1px solid var(--line); border-radius: 10px; background: white; }
.starter:hover { border-color: #b7a9df; background: #fbfaff; }
.starter strong { display: block; color: #585066; font-size: 12px; font-weight: 600; margin-bottom: 7px; }
.starter span { font-size: 11px; line-height: 1.7; color: var(--muted); }
.message { display: flex; gap: 12px; margin-bottom: 28px; }
.message-avatar { display: grid; place-items: center; flex-shrink: 0; width: 29px; height: 29px; border: 1px solid #e4dfed; border-radius: 8px; background: white; color: #82748b; font-size: 10px; font-weight: 600; }
.message-ai .message-avatar { background: var(--soft); color: var(--accent); border-color: #e4def5; }
.message-body { min-width: 0; flex: 1; }
.message-meta { display: flex; justify-content: space-between; gap: 14px; align-items: center; min-height: 29px; margin-bottom: 10px; }
.message-meta strong { font-size: 11px; font-weight: 600; }
.message-meta time { font-size: 10px; color: #93899f; }
.message-actions { display: flex; align-items: center; gap: 9px; }
.message-copy, .code-copy { border: 0; background: transparent; color: #746388; font: inherit; cursor: pointer; }
.message-copy { padding: 4px 0 4px 5px; font-size: 9px; }
.message-copy:hover, .code-copy:hover { color: var(--accent); text-decoration: underline; }
.message-copy:focus-visible, .code-copy:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.message-copy:disabled, .code-copy:disabled { opacity: .55; cursor: wait; }
.message-user .message-content { background: #efedf6; border-radius: 0 10px 10px 10px; padding: 14px 17px; }
.ai-response { min-width: 0; font-size: 14px; line-height: 1.85; overflow-wrap: anywhere; word-break: normal; }
.ai-response p { margin: 0 0 15px; }
.ai-response p:last-child { margin-bottom: 0; }
.ai-response h1, .ai-response h2, .ai-response h3, .ai-response h4 { font-weight: 650; line-height: 1.5; margin: 20px 0 10px; font-size: 17px; }
.ai-response ul, .ai-response ol { padding-left: 24px; margin: 13px 0; }
.ai-response ul { list-style-type: disc; }
.ai-response ol { list-style-type: decimal; }
.ai-response li { margin: 6px 0; }
.ai-response a { color: var(--accent); text-decoration: underline; }
.ai-response blockquote { border-left: 3px solid #d7cdec; margin: 18px 0; padding-left: 16px; color: #736581; }
.ai-response pre { position: relative; max-width: 100%; overflow-x: auto; background: #f0f1f6; border: 1px solid #e4e4ed; border-radius: 8px; padding: 42px 15px 15px; margin: 15px 0; font-size: 12px; line-height: 1.7; }
.ai-response pre code { display: block; min-width: max-content; white-space: pre; overflow-wrap: normal; word-break: normal; }
.code-copy { position: absolute; top: 9px; right: 10px; padding: 4px 7px; border: 1px solid #d8d5e0; border-radius: 5px; background: #fafafd; font-size: 9px; line-height: 1.2; }
.ai-response :not(pre) > code { background: #eeeaf4; padding: 2px 5px; border-radius: 4px; font-size: .88em; }
.ai-response table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; margin: 18px 0; font-size: 12px; }
.ai-response th, .ai-response td { border: 1px solid #dedbe7; padding: 8px 12px; text-align: left; }
.ai-response th { background: #efedf6; }
.ai-response mjx-container[display="true"] { display: block; max-width: 100%; overflow-x: auto; overflow-y: hidden; padding: 4px 0; }
.composer-area { flex-shrink: 0; background: var(--canvas); padding: 12px 28px 18px; }
.composer { max-width: 760px; margin: auto; border: 1px solid #d9d3e6; border-radius: 12px; background: #fff; box-shadow: 0 3px 12px #33274504; padding: 15px 17px 12px; }
.composer:focus-within { border-color: #ac9ad6; box-shadow: 0 0 0 3px #6255c709; }
.composer label { display: block; font-size: 10px; font-weight: 600; color: #655b78; margin-bottom: 6px; }
.composer textarea { width: 100%; resize: none; border: 0; outline: 0; padding: 4px 0; min-height: 44px; max-height: 150px; background: transparent; font-size: 13px; line-height: 1.7; box-shadow: none; }
.composer textarea:focus { outline: 0; box-shadow: none; }
.composer textarea::placeholder { color: #9890a3; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 7px; }
.composer-hint { color: #9a92a5; font-size: 10px; }
.composer-actions { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.composer-count { color: #9a92a5; font-size: 9px; font-variant-numeric: tabular-nums; }
.composer-count-near-limit { color: #a04444; font-weight: 600; }
.composer .btn-primary { min-height: 34px; padding: 7px 16px; font-size: 11px; }
.composer-disclaimer { text-align: center; color: #938b9e; font-size: 10px; line-height: 1.7; margin: 10px 0 0; }
.chat-error { max-width: 760px; margin: 0 auto 9px; color: #a04444; font-size: 12px; line-height: 1.6; }
.thinking { max-width: 760px; margin: 0 auto 14px; font-size: 12px; color: #80718e; }
.legacy-context { border: 1px solid var(--line); padding: 18px; border-radius: 9px; margin-bottom: 25px; background: #fff; }
.legacy-context summary { font-size: 12px; font-weight: 600; }
.legacy-context .ai-response { margin-top: 14px; }
.spark-public { background: var(--canvas); }
.public-header { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 75px; padding: 18px 5%; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.94); }
.public-header nav { display: flex; align-items: center; gap: 22px; font-size: 12px; }
.public-nav-link { color: #625e70; font-weight: 550; }
.public-nav-link:hover { color: var(--accent); }
.public-header .btn-primary { min-height: 38px; padding: 8px 15px; }
.public-content { min-height: calc(100dvh - 148px); padding: 0 24px; }
.public-footer { display: flex; justify-content: space-between; gap: 20px; padding: 24px 5%; color: var(--muted); border-top: 1px solid var(--line); font-size: 11px; }
.public-footer a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.landing-page { max-width: 1180px; margin: 0 auto; }
.landing-hero { display: grid; grid-template-columns: minmax(360px,.76fr) minmax(560px,1.24fr); align-items: center; gap: clamp(34px,4vw,58px); min-height: 630px; padding: 78px 0 86px; }
.landing-hero-copy h1 { max-width: 650px; margin: 0; font-size: clamp(42px,5vw,66px); font-weight: 620; line-height: 1.08; letter-spacing: -3px; }
.landing-lede { max-width: 610px; margin: 24px 0 0; color: #686678; font-size: 16px; line-height: 1.85; }
.landing-name { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; width: fit-content; margin: 17px 0 0; padding: 8px 12px; border: 1px solid #ded8ed; border-radius: 999px; background: rgba(255,255,255,.66); color: #746d81; font-size: 12px; line-height: 1.45; }
.landing-name strong { color: var(--accent); font-weight: 720; letter-spacing: .8px; }
.landing-name span { color: #b0a8ba; }
.landing-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 11px; margin-top: 25px; }
.landing-actions .btn-primary, .landing-actions .btn-secondary { min-height: 46px; padding: 12px 20px; font-size: 13px; }
.landing-points { display: flex; flex-wrap: wrap; gap: 9px 22px; margin: 27px 0 0; padding: 0; list-style: none; color: #777384; font-size: 11px; }
.landing-points li::before { content: "✓"; color: var(--accent); font-weight: 700; margin-right: 7px; }
.landing-framework-visual { min-width: 0; margin: 0; }
.landing-framework-visual > a { display: block; transition: transform .18s ease, filter .18s ease; }
.landing-framework-visual > a:hover { transform: translateY(-2px); filter: drop-shadow(0 16px 22px rgba(57,45,94,.08)); }
.landing-framework-image { display: block; width: 100%; height: auto; }
.conversation-preview { padding: 24px; border: 1px solid #e2deeb; border-radius: 18px; background: white; box-shadow: 0 24px 65px rgba(57,45,94,.1); transform: rotate(1deg); }
.conversation-preview-header { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 18px; border-bottom: 1px solid #efedf4; color: #706b7d; font-size: 10px; font-weight: 550; }
.preview-status { display: inline-block; width: 7px; height: 7px; margin-right: 6px; border-radius: 50%; background: #74ad7f; }
.preview-message { display: flex; align-items: flex-start; gap: 11px; margin-top: 22px; }
.preview-avatar { display: grid; place-items: center; flex: 0 0 31px; height: 31px; border: 1px solid #e4dfed; border-radius: 9px; background: #f7f5fa; color: #71687b; font-size: 9px; font-weight: 650; }
.preview-message-tutor .preview-avatar { background: var(--soft); color: var(--accent); }
.preview-message > div { min-width: 0; flex: 1; }
.preview-message strong { font-size: 10px; font-weight: 650; }
.preview-message p { margin: 7px 0 0; padding: 13px 15px; border-radius: 3px 10px 10px 10px; background: #f2f0f7; font-size: 12px; line-height: 1.7; }
.preview-message-tutor p { padding: 4px 0 0; background: transparent; font-size: 13px; line-height: 1.8; }
.preview-caption { margin: 21px 0 0; padding-top: 15px; border-top: 1px solid #efedf4; color: #918a9b; font-size: 10px; text-align: center; }
.landing-section { padding: 86px 0; border-top: 1px solid var(--line); }
.landing-section-heading { max-width: 630px; }
.landing-section-heading h2, .landing-split h2, .landing-cta h2 { margin: 0; font-size: clamp(29px,3.2vw,42px); font-weight: 610; line-height: 1.2; letter-spacing: -1.6px; }
.landing-section-heading > p:last-child, .landing-split > div > p { margin: 15px 0 0; color: var(--muted); font-size: 13px; line-height: 1.8; }
.steps-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; margin: 38px 0 0; padding: 0; list-style: none; }
.steps-grid li { padding: 26px; border: 1px solid var(--line); border-radius: 13px; background: white; }
.steps-grid li > span { display: grid; place-items: center; width: 28px; height: 28px; margin-bottom: 31px; border-radius: 8px; background: var(--soft); color: var(--accent); font-size: 10px; font-weight: 700; }
.steps-grid h3 { margin: 0 0 10px; font-size: 15px; font-weight: 620; }
.steps-grid p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.75; }
.domain-showcase { padding: 86px 0; border-top: 1px solid var(--line); }
.domain-showcase-header { display: grid; grid-template-columns: minmax(320px,.9fr) minmax(0,1.1fr); align-items: end; gap: clamp(42px,7vw,96px); margin-bottom: 34px; }
.domain-showcase-header h2 { max-width: 560px; margin: 0; font-size: clamp(29px,3.2vw,42px); font-weight: 610; line-height: 1.2; letter-spacing: -1.6px; }
.domain-showcase-header > p { max-width: 610px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.85; }
.domain-diagram { margin: 0; overflow: hidden; border: 1px solid #e2deeb; border-radius: 18px; background: white; box-shadow: 0 18px 55px rgba(57,45,94,.07); }
.domain-diagram > a { display: block; overflow: hidden; background: white; }
.domain-diagram img { display: block; width: 100%; height: auto; transition: transform .22s ease; }
.domain-diagram > a:hover img { transform: scale(1.008); }
.domain-diagram figcaption { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 13px 17px; border-top: 1px solid #efedf4; color: #888394; font-size: 10px; line-height: 1.5; }
.domain-diagram figcaption span:first-child { color: #625e70; font-weight: 620; }
.domain-showcase-programming { padding-top: 18px; border-top: 0; }
.landing-split { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(310px,.8fr); align-items: center; gap: clamp(50px,8vw,110px); padding: 92px clamp(28px,5vw,64px); border-radius: 18px; background: #eeebf7; }
.text-link { display: inline-block; margin-top: 23px; color: var(--accent); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 4px; }
.beta-note { padding: 27px; border: 1px solid #e0d9ef; border-radius: 13px; background: rgba(255,255,255,.68); }
.beta-note h3 { margin: 17px 0 9px; font-size: 17px; font-weight: 620; }
.beta-note p { margin: 0; color: #726c7b; font-size: 12px; line-height: 1.8; }
.landing-cta { display: flex; align-items: center; justify-content: space-between; gap: 35px; padding: 90px 0; }
.landing-cta h2 { max-width: 690px; }
.landing-cta .btn-primary { flex-shrink: 0; min-height: 48px; padding: 13px 21px; font-size: 13px; }
.guide-page { max-width: 960px; margin: 0 auto; padding: 64px 0 88px; }
.spark-app .guide-page { padding: 0 0 30px; }
.guide-header { max-width: 760px; padding-bottom: 54px; }
.guide-header h1 { margin: 0; font-size: clamp(35px,5vw,52px); font-weight: 610; line-height: 1.14; letter-spacing: -2px; }
.guide-header > p:not(.eyebrow) { max-width: 650px; margin: 19px 0 0; color: var(--muted); font-size: 14px; line-height: 1.85; }
.guide-section { padding: 48px 0; border-top: 1px solid var(--line); }
.guide-section-title { display: grid; grid-template-columns: 42px minmax(0,1fr); gap: 14px; margin-bottom: 28px; }
.guide-section-title > span { color: var(--accent); font-size: 10px; font-weight: 700; letter-spacing: 1px; padding-top: 6px; }
.guide-section-title h2 { margin: 0; font-size: 24px; font-weight: 620; letter-spacing: -.7px; }
.guide-section-title p { margin: 8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; }
.guide-cards { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 14px; margin-left: 56px; }
.guide-cards article, .example-grid article { padding: 22px; border: 1px solid var(--line); border-radius: 11px; background: white; }
.guide-cards h3 { margin: 0 0 9px; font-size: 13px; font-weight: 650; }
.guide-cards p, .example-grid p { margin: 0; color: var(--muted); font-size: 11px; line-height: 1.75; }
.prompt-pattern { margin-left: 56px; padding: 19px 22px; border-left: 3px solid var(--accent); background: #efedf8; }
.prompt-pattern p { margin: 0; font-size: 13px; }
.prompt-pattern-label { margin-bottom: 8px !important; color: #80778b; font-size: 9px !important; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.example-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0 0 56px; }
.example-grid p { margin-top: 14px; color: #5f5b69; font-size: 12px; }
.guide-checklist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 34px; margin: 0 0 0 56px; padding: 0; list-style: none; }
.guide-checklist li { position: relative; padding: 17px 0 17px 23px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; line-height: 1.75; }
.guide-checklist li::before { content: "✓"; position: absolute; left: 0; color: var(--accent); font-weight: 700; }
.guide-checklist strong { color: var(--ink); font-weight: 650; }
.guide-compact { padding-bottom: 58px; }
.guide-finish { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding: 30px; border-radius: 13px; background: #eeebf7; }
.guide-finish h2 { margin: 0; font-size: 20px; font-weight: 620; }
.guide-finish p { margin: 8px 0 0; color: var(--muted); font-size: 12px; }
.guide-finish .btn-primary { flex-shrink: 0; }
.auth-card { max-width: 420px; margin: 32px auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 30px; }
.auth-card h1 { font-size: 25px; font-weight: 600; letter-spacing: -.8px; margin: 0 0 10px; }
.auth-card > p { font-size: 12px; color: var(--muted); line-height: 1.8; margin-bottom: 26px; }
.auth-card > .eyebrow { color: var(--accent); line-height: 1.4; margin-bottom: 13px; }
.auth-card .btn-primary { width: 100%; }
.auth-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; font-size: 11px; color: var(--accent); }
@media (min-width: 1500px) { .project-grid { grid-template-columns: repeat(3,minmax(0,1fr)); } }
@media (max-width: 1100px) { .app-content { padding: 35px 30px; } .welcome-label { display: none; } .landing-hero { grid-template-columns: minmax(330px,.8fr) minmax(460px,1.2fr); gap: 34px; } }
@media (max-width: 760px) {
  .app-shell { display: block; } .app-sidebar { display: none; }
  .app-topbar { min-height: 57px; padding: 12px 18px; } .desktop-note { display: none; }
  .mobile-nav { display: block; position: relative; font-size: 12px; }
  .mobile-nav summary { padding: 8px 11px; border: 1px solid var(--line); border-radius: 6px; }
  .mobile-nav-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 220px; background: white; z-index: 20; padding: 12px; border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 8px 30px #24243815; }
  .app-content { padding: 29px 20px 40px; } .page-header { align-items: flex-start; gap: 15px; flex-wrap: wrap; margin-bottom: 24px; }
  .page-title { font-size: 27px; } .page-subtitle { font-size: 12px; }
  .welcome-panel { padding: 23px; grid-template-columns: 1fr; margin-bottom: 28px; }
  .welcome-panel h2 { font-size: 18px; } .section-heading { flex-wrap: wrap; }
  .search-form { width: 100%; } .search-input { flex: 1; width: auto; min-width: 0; }
  .project-grid { grid-template-columns: 1fr; } .project-card { min-height: 210px; }
  .form-panel { padding: 22px; } .tutor-options { grid-template-columns: 1fr; }
  .conversation-header { padding: 16px 18px; gap: 9px; } .conversation-heading h1 { font-size: 16px; max-width: 210px; }
  .conversation-actions { gap: 9px; } .conversation-actions > .btn-secondary { display: none; }
  .conversation-meta { font-size: 9px; gap: 6px; } .conversation-meta .tutor-badge { font-size: 9px; }
  .conversation-scroll { padding: 24px 18px 10px; } .chat-empty { padding: 12px 0; } .chat-empty h2 { font-size: 24px; }
  .starter-grid { grid-template-columns: 1fr; gap: 10px; margin-top: 22px; }
  .starter { padding: 13px 15px; } .starter strong { margin-bottom: 5px; }
  .composer-area { padding: 8px 14px max(10px, env(safe-area-inset-bottom)); }
  .composer { padding: 12px 13px 10px; } .composer textarea { font-size: 16px; max-height: 110px; }
  .composer-hint { font-size: 9px; } .composer-disclaimer { font-size: 9px; margin-top: 7px; }
  .composer-bottom { align-items: flex-end; } .composer-actions { gap: 8px; } .composer-count { font-size: 8px; }
  .message-meta { align-items: flex-start; } .message-actions { gap: 7px; }
  .message { gap: 8px; } .ai-response { font-size: 13px; } .message-avatar { width: 25px; height: 25px; }
  .public-header { min-height: 65px; padding: 14px 16px; } .public-header nav { gap: 13px; } .public-header .btn-primary { min-height: 36px; padding: 7px 12px; }
  .public-nav-how { display: none; }
  .public-content { padding: 0 16px; } .public-footer { flex-wrap: wrap; padding: 20px; }
  .landing-hero { grid-template-columns: 1fr; gap: 45px; min-height: 0; padding: 55px 0 65px; }
  .landing-hero-copy h1 { font-size: clamp(39px,12vw,53px); letter-spacing: -2px; }
  .landing-lede { margin-top: 20px; font-size: 14px; line-height: 1.75; }
  .landing-name { border-radius: 10px; }
  .landing-points { display: grid; gap: 9px; }
  .conversation-preview { padding: 19px; transform: none; }
  .landing-framework-visual > a:hover { transform: none; filter: none; }
  .landing-section { padding: 62px 0; }
  .steps-grid { grid-template-columns: 1fr; gap: 11px; margin-top: 28px; }
  .steps-grid li { padding: 21px; } .steps-grid li > span { margin-bottom: 20px; }
  .domain-showcase { padding: 62px 0; }
  .domain-showcase-programming { padding-top: 8px; }
  .domain-showcase-header { grid-template-columns: 1fr; align-items: start; gap: 18px; margin-bottom: 25px; }
  .domain-showcase-header h2 { font-size: 31px; }
  .domain-diagram { border-radius: 12px; }
  .domain-diagram figcaption { padding: 11px 13px; }
  .landing-split { grid-template-columns: 1fr; gap: 35px; padding: 48px 24px; margin: 0 -1px; }
  .landing-cta { align-items: flex-start; flex-direction: column; padding: 65px 0; }
  .landing-section-heading h2, .landing-split h2, .landing-cta h2 { font-size: 31px; }
  .guide-page { padding: 48px 0 65px; }
  .spark-app .guide-page { padding: 0 0 20px; }
  .guide-header { padding-bottom: 42px; }
  .guide-header h1 { font-size: 36px; letter-spacing: -1.3px; }
  .guide-section { padding: 40px 0; }
  .guide-section-title { grid-template-columns: 34px minmax(0,1fr); gap: 8px; }
  .guide-cards, .example-grid { grid-template-columns: 1fr; margin-left: 42px; }
  .prompt-pattern { margin-left: 42px; }
  .guide-checklist { grid-template-columns: 1fr; margin-left: 42px; }
  .guide-finish { align-items: flex-start; flex-direction: column; padding: 25px; }
  .auth-card { padding: 24px; margin: 18px auto; }
  .chat-main > .flash { margin: 8px 14px 0; font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
