:root {
  --ink: #10213b;
  --ink-soft: #324765;
  --muted: #6d7d94;
  --line: rgba(85, 125, 173, .18);
  --blue: #1769d5;
  --blue-deep: #0b4da8;
  --blue-soft: #e6f1ff;
  --sky: #edf6ff;
  --paper: rgba(255, 255, 255, .76);
  --shadow: 0 24px 70px rgba(51, 101, 157, .13);
  --radius: 16px;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: #eaf3ff; }
body { min-height: 100%; margin: 0; color: var(--ink); font-family: "Segoe UI", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; background: radial-gradient(circle at 12% 8%, rgba(255,255,255,.92), transparent 30%), linear-gradient(135deg, #eaf4ff 0%, #f5f9ff 52%, #e4f0ff 100%); }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 85% 15%, rgba(126, 190, 255, .2), transparent 24%), radial-gradient(circle at 55% 92%, rgba(116, 163, 231, .12), transparent 28%); }
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell { min-height: 100vh; display: flex; flex-direction: column; position: relative; }
.topbar { height: 72px; padding: 0 max(24px, calc((100vw - 1240px) / 2)); display: flex; align-items: center; justify-content: flex-end; border-bottom: 1px solid rgba(72, 117, 170, .14); background: rgba(242, 248, 255, .66); backdrop-filter: blur(24px); position: sticky; top: 0; z-index: 10; }
.brand { display: inline-flex; align-items: center; gap: 11px; color: var(--ink); text-decoration: none; font-weight: 760; letter-spacing: -.02em; }
.brand-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; color: #fff; background: linear-gradient(145deg, #3587ea, #0d58be); box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 6px 14px rgba(30, 105, 209, .22); }
.top-actions { display: flex; align-items: center; gap: 18px; }
.save-chip { display: inline-flex; align-items: center; gap: 7px; color: #4f6f94; font-size: 12px; }
.save-chip i, .live-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #35b985; box-shadow: 0 0 0 4px rgba(53,185,133,.12); }
.ghost-button, .secondary-button { border: 1px solid var(--line); border-radius: 10px; padding: 9px 13px; color: var(--ink-soft); background: rgba(255,255,255,.4); transition: .2s ease; }
.ghost-button:hover, .secondary-button:hover { border-color: rgba(23,105,213,.35); color: var(--blue); background: #fff; }
footer { margin-top: auto; padding: 28px 20px 34px; text-align: center; color: #7f91aa; font-size: 12px; }
.question-body { min-width: 0; }
.question-table { margin: 22px 0; max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.74); }
.question-table table { width: 100%; border-collapse: collapse; color: var(--ink-soft); font-size: 14px; line-height: 1.65; }
.question-table caption { padding: 12px 16px; text-align: left; font-weight: 700; color: var(--ink); background: var(--blue-soft); }
.question-table th, .question-table td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); }
.question-table th { background: rgba(230,241,255,.58); font-weight: 700; }
.question-table tr:last-child td { border-bottom: 0; }
.question-table th:last-child, .question-table td:last-child { border-right: 0; }
.question-image figcaption { padding: 10px 14px; color: var(--muted); font-size: 12px; line-height: 1.6; }
.auth-page { width: min(1080px, calc(100% - 40px)); min-height: min(680px, calc(100vh - 130px)); margin: auto; display: grid; grid-template-columns: 1.1fr .9fr; overflow: hidden; border: 1px solid rgba(98, 144, 198, .22); border-radius: 24px; box-shadow: var(--shadow); background: rgba(255,255,255,.45); backdrop-filter: blur(28px); }
.auth-visual { position: relative; overflow: hidden; padding: 72px 64px; background: linear-gradient(145deg, rgba(218,236,255,.78), rgba(241,248,255,.4)); }
.aurora { position: absolute; border-radius: 50%; filter: blur(4px); opacity: .72; }
.aurora-one { width: 390px; height: 390px; top: -150px; right: -130px; background: radial-gradient(circle, rgba(57,141,239,.35), transparent 65%); }
.aurora-two { width: 300px; height: 300px; bottom: -120px; left: -90px; background: radial-gradient(circle, rgba(50,113,220,.18), transparent 67%); }
.visual-kicker, .eyebrow { color: #3d74b9; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.auth-visual h1 { position: relative; margin: 28px 0 20px; max-width: 520px; font-size: clamp(42px, 6vw, 74px); line-height: 1.02; letter-spacing: -.06em; }
.auth-visual h1 em { color: var(--blue); font-style: normal; }
.auth-visual p { position: relative; max-width: 420px; color: var(--ink-soft); line-height: 1.85; font-size: 16px; }
.visual-path { position: absolute; bottom: 52px; left: 64px; display: flex; align-items: center; gap: 10px; color: #6682a4; font-size: 12px; }
.visual-path i { width: 32px; height: 1px; background: #9bb9db; }
.path-dot { display: grid; place-items: center; width: 25px; height: 25px; border: 1px solid #9bb9db; border-radius: 50%; }
.path-dot.active { color: #fff; background: var(--blue); border-color: var(--blue); }
.visual-path b { margin-left: 8px; font-weight: 650; }
.auth-form { display: flex; flex-direction: column; justify-content: center; padding: 64px 58px; background: rgba(255,255,255,.68); border-left: 1px solid rgba(93, 137, 187, .14); }
.form-heading h2 { margin: 14px 0 8px; font-size: 32px; letter-spacing: -.04em; }
.form-heading p, .profile-intro p, .phase-heading p, .welcome-row p { margin: 0; color: var(--muted); line-height: 1.75; }
#login-form, .acrylic-form { display: grid; gap: 18px; margin-top: 34px; }
label { display: grid; gap: 8px; color: var(--ink-soft); font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; outline: none; border: 1px solid rgba(89, 130, 177, .22); border-radius: 11px; color: var(--ink); background: rgba(255,255,255,.7); transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; }
input { height: 48px; padding: 0 14px; }
textarea { min-height: 165px; padding: 15px 16px; resize: vertical; line-height: 1.8; }
input::placeholder, textarea::placeholder { color: #9baabd; }
input:focus, textarea:focus { border-color: rgba(23,105,213,.65); background: #fff; box-shadow: 0 0 0 4px rgba(23,105,213,.1); }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 14px; min-height: 48px; padding: 0 19px; border: 0; border-radius: 11px; color: #fff; background: linear-gradient(135deg, #277be0, #0f5fc7); box-shadow: 0 9px 20px rgba(23,105,213,.22), inset 0 1px 0 rgba(255,255,255,.3); font-weight: 750; transition: transform .2s ease, box-shadow .2s ease, filter .2s ease; }
.primary-button:hover { transform: translateY(-2px); box-shadow: 0 13px 26px rgba(23,105,213,.27), inset 0 1px 0 rgba(255,255,255,.3); filter: saturate(1.06); }
.primary-button:active { transform: translateY(0); }
.primary-button:disabled { opacity: .6; cursor: not-allowed; }
.page-header { display: flex; align-items: end; justify-content: space-between; gap: 24px; margin-bottom: 24px; }
.page-header h1 { margin: 0; font-size: 34px; }
.page-header span { color: var(--muted); font-size: 13px; font-weight: 700; }
.page-nav-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 20px; }
.submission-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; }
.page-readonly textarea[readonly] { color: #71839a; border-color: rgba(105,130,160,.18); background: rgba(237,243,249,.72); caret-color: transparent; resize: none; }
.page-readonly .dialogue-card { opacity: .92; }
.form-footnote { margin-top: auto; padding-top: 32px; color: #8a9bb0; font-size: 12px; }
.content-wrap { width: min(1160px, calc(100% - 40px)); margin: 64px auto; }
.narrow-wrap { width: min(760px, calc(100% - 40px)); }
.profile-intro { max-width: 640px; margin-bottom: 28px; }
.profile-intro h1, .welcome-row h1, .phase-heading h1 { margin: 15px 0 12px; font-size: clamp(32px, 5vw, 52px); line-height: 1.08; letter-spacing: -.055em; }
.acrylic-form { padding: 34px; border: 1px solid rgba(98, 144, 198, .2); border-radius: 18px; background: rgba(255,255,255,.6); box-shadow: var(--shadow); backdrop-filter: blur(20px); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.welcome-row { display: flex; justify-content: space-between; gap: 32px; align-items: end; margin-bottom: 40px; }
.welcome-row > div:first-child { max-width: 680px; }
.welcome-orb { display: grid; place-items: center; width: 108px; height: 108px; flex: 0 0 auto; border: 1px solid rgba(44, 123, 213, .25); border-radius: 30px; color: var(--blue); background: linear-gradient(145deg, rgba(255,255,255,.82), rgba(214,234,255,.68)); box-shadow: inset 0 1px 0 #fff, 0 15px 32px rgba(49,113,190,.15); }
.welcome-orb span { font-size: 38px; font-weight: 800; line-height: 1; }.welcome-orb small { color: var(--muted); font-size: 11px; }
.stage-list { display: grid; gap: 12px; }.stage-card { display: grid; grid-template-columns: 58px 1fr 40px; gap: 20px; align-items: center; padding: 22px 24px; border: 1px solid rgba(100, 143, 195, .2); border-radius: 16px; background: rgba(255,255,255,.6); box-shadow: 0 11px 30px rgba(51,101,157,.07); transition: .2s ease; }.stage-card:hover { transform: translateY(-2px); background: rgba(255,255,255,.86); box-shadow: 0 18px 38px rgba(51,101,157,.12); }.stage-index { color: #7ba5d6; font-size: 18px; font-weight: 800; }.stage-copy span { color: #537ca9; font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }.stage-copy h2 { margin: 5px 0 5px; font-size: 20px; letter-spacing: -.03em; }.stage-copy p { margin: 0; color: var(--muted); font-size: 13px; }.stage-state { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 20px; }.stage-card.done .stage-state { color: #23976e; background: #e6f8f0; }.wide-button { width: 100%; margin-top: 22px; }
.phase-wrap { width: min(940px, calc(100% - 40px)); }.phase-content { min-width: 0; }.phase-heading { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 30px; }.progress-pill { flex: 0 0 auto; padding: 10px 13px; border: 1px solid rgba(23,105,213,.18); border-radius: 99px; color: var(--blue); background: rgba(231,242,255,.75); font-size: 12px; font-weight: 800; }
.questionnaire-page { display: grid; gap: 18px; }.paper-question, .dialogue-card { overflow: hidden; border: 1px solid rgba(98, 144, 198, .2); border-radius: 18px; background: rgba(255,255,255,.62); box-shadow: 0 14px 38px rgba(51,101,157,.08); }.paper-question { display: grid; grid-template-columns: 72px 1fr; }.question-number { padding-top: 31px; color: #83a7cf; font-size: 20px; font-weight: 800; text-align: center; background: rgba(229,241,255,.5); border-right: 1px solid rgba(98,144,198,.13); }.question-body { padding: 28px 32px 32px; }.question-body h2, .dialogue-top h2 { margin: 0 0 14px; font-size: 21px; letter-spacing: -.03em; }.stimulus-paragraph, .prompt-text { color: var(--ink-soft); font-size: 18px; line-height: 1.9; white-space: pre-wrap; overflow-wrap: anywhere; }.stimulus-paragraph { margin: 18px 0; text-indent: 2em; }.prompt-text { margin: 18px 0 21px; text-indent: 2em; }.prompt-part { display: block; margin: 14px 0; }.answer-form { padding-top: 7px; }.answer-label { color: var(--ink-soft); }.answer-input { min-height: 145px; background: rgba(255,255,255,.78); }.composer-footer { display: flex; justify-content: space-between; margin: 9px 1px 16px; color: #7b8da4; font-size: 11px; }.paper-question.locked .question-body { opacity: .78; }.locked-answer { display: grid; place-items: center; min-height: 76px; border: 1px dashed #b8cbe0; border-radius: 11px; color: #8aa0ba; background: rgba(242,248,255,.6); font-size: 13px; }.submitted-answer { padding: 14px 16px; border-radius: 11px; background: rgba(230,248,240,.72); }.submitted-answer span { color: #328866; font-size: 11px; font-weight: 800; }.submitted-answer p { margin: 7px 0 0; color: #355b4e; line-height: 1.75; white-space: pre-wrap; }
.dialogue-card { background: rgba(255,255,255,.7); }.dialogue-top { padding: 32px; border-bottom: 1px solid rgba(98,144,198,.14); }.question-tag { display: inline-flex; padding: 6px 10px; border-radius: 8px; color: var(--blue); background: var(--blue-soft); font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }.dialogue-top h2 { margin-top: 17px; font-size: 26px; }.prompt-text.large { max-width: 760px; font-size: 17px; }.question-image { margin: 23px 0 26px; overflow: hidden; border: 1px solid rgba(89,130,177,.2); border-radius: 12px; background: #eef6ff; }.question-image img { display: block; width: 100%; height: auto; }.conversation { display: grid; gap: 16px; padding: 28px 32px; background: linear-gradient(180deg, rgba(239,247,255,.72), rgba(249,252,255,.62)); }.conversation-hint { padding: 14px 16px; border: 1px dashed #b4cbe4; border-radius: 12px; color: #7289a4; font-size: 13px; }.bubble-row { display: flex; flex-direction: column; max-width: 82%; }.bubble-row.student { justify-self: end; align-items: end; }.bubble-row.system { justify-self: start; align-items: start; }.bubble { padding: 14px 17px; border-radius: 14px; line-height: 1.75; white-space: pre-wrap; }.system-bubble { border: 1px solid rgba(97,143,199,.2); border-top-left-radius: 4px; color: var(--ink-soft); background: rgba(255,255,255,.88); }.student-bubble { border-top-right-radius: 4px; color: #fff; background: linear-gradient(135deg, #2d80e3, #145ec0); box-shadow: 0 8px 18px rgba(23,105,213,.18); }.bubble-label { margin-top: 5px; color: #8a9db5; font-size: 10px; }.dialogue-composer { padding: 28px 32px 34px; }.final-answer { margin-top: 18px; padding: 22px; border: 1px solid rgba(23,105,213,.23); border-radius: 14px; background: linear-gradient(145deg, rgba(231,242,255,.7), rgba(255,255,255,.72)); }.final-callout { margin-bottom: 18px; }.final-callout h3 { margin: 9px 0 7px; font-size: 21px; letter-spacing: -.03em; }.final-callout p { margin: 0; color: var(--muted); line-height: 1.75; font-size: 13px; }
.error-message { margin: 0; padding: 11px 13px; border: 1px solid rgba(196,83,78,.2); border-radius: 10px; color: #a64e4b; background: #fff1f0; font-size: 13px; line-height: 1.5; }.status-page { width: min(720px, calc(100% - 40px)); margin: auto; padding: 50px 0; }.status-card { padding: 62px 38px; border: 1px solid rgba(98,144,198,.2); border-radius: 22px; text-align: center; background: rgba(255,255,255,.7); box-shadow: var(--shadow); backdrop-filter: blur(20px); }.status-mark { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 22px; border-radius: 50%; color: var(--blue); background: var(--blue-soft); font-size: 23px; font-weight: 800; }.status-mark.spinning { border: 3px solid #d2e2f4; border-top-color: var(--blue); background: transparent; animation: spin .8s linear infinite; }.status-card h1 { margin: 0 0 12px; font-size: 30px; letter-spacing: -.045em; }.status-card p { margin: 0 auto 24px; color: var(--muted); line-height: 1.8; }.secondary-button { padding: 11px 17px; }
@keyframes spin { to { transform: rotate(360deg); } }
.stage-submit-panel { display: flex; align-items: center; justify-content: flex-end; gap: 16px; margin-top: 10px; }
.stage-submit-panel h3 { margin: 7px 0 5px; font-size: 20px; letter-spacing: -.03em; }
.stage-submit-panel p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.stage-submit-panel .primary-button { min-width: 178px; flex: 0 0 auto; }
.bundle-question { display: block; }.bundle-fields { display: grid; gap: 28px; margin-top: 25px; }.bundle-field + .bundle-field { padding-top: 26px; border-top: 1px solid rgba(98,144,198,.14); }.bundle-field h3 { margin: 0 0 14px; color: var(--ink-soft); font-size: 16px; line-height: 1.75; }.dimension-bundle .answer-input { min-height: 126px; }
.loading-bubble { display: inline-flex; align-items: center; gap: 10px; }
.loading-dots { display: inline-flex; gap: 4px; }
.loading-dots i { width: 6px; height: 6px; border-radius: 50%; background: #5f95d4; animation: loading-breathe 1.1s infinite ease-in-out; }
.loading-dots i:nth-child(2) { animation-delay: .15s; }
.loading-dots i:nth-child(3) { animation-delay: .3s; }
.processing-composer-note { padding: 12px 14px; border: 1px solid rgba(98,144,198,.16); border-radius: 10px; color: #6d829f; background: rgba(239,247,255,.7); font-size: 13px; }
.question-copy { margin: 20px 0 0; color: var(--ink-soft); font-size: 18px; line-height: 1.9; white-space: pre-wrap; }
.dialogue-top .question-tag { display: block; margin: 0 0 14px; padding: 0; color: var(--ink); background: transparent; border-radius: 0; font-size: 21px; letter-spacing: -.03em; }
.dialogue-step { border-top: 1px solid rgba(98,144,198,.14); background: linear-gradient(180deg, rgba(239,247,255,.62), rgba(249,252,255,.46)); }
.task-step-heading { display: flex; align-items: flex-start; gap: 13px; padding: 27px 32px 17px; }
.task-step-heading > span { flex: 0 0 auto; padding: 7px 10px; border-radius: 9px; color: #fff; background: var(--blue); font-size: 11px; font-weight: 800; letter-spacing: .04em; }
.task-step-heading h2 { margin: 1px 0 6px; font-size: 21px; letter-spacing: -.03em; }
.task-step-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.dialogue-step .conversation { padding-top: 10px; }
.dialogue-complete-note { padding: 13px 15px; border: 1px solid rgba(50,136,102,.2); border-radius: 10px; color: #327b60; background: rgba(230,248,240,.72); font-size: 13px; }
.final-step { padding: 29px 32px 34px; border-top: 1px solid rgba(98,144,198,.16); background: rgba(255,255,255,.54); }
.final-step > .task-step-heading { padding: 0 0 18px; }
.locked-final-input { color: #8b9db2; background: rgba(242,247,252,.82); cursor: not-allowed; }
.locked-final-actions { display: flex; align-items: center; justify-content: flex-end; gap: 14px; }
.final-gate-message { min-height: 18px; color: #c8333d; font-size: 12px; font-weight: 800; }
.locked-final-button { background: linear-gradient(135deg, #7e9cbb, #6686a7); box-shadow: 0 8px 18px rgba(74,105,136,.16); }
@keyframes loading-breathe { 0%, 80%, 100% { opacity: .28; transform: scale(.82); } 40% { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .loading-dots i { animation: none; opacity: .65; } }
@media (max-width: 580px) { .stage-submit-panel { display: grid; padding: 22px 18px; } .stage-submit-panel .primary-button { width: 100%; } }
@media (max-width: 580px) { .page-header { align-items: flex-start; flex-direction: column; gap: 7px; } .page-nav-actions { flex-direction: column; } .page-nav-actions button { width: 100%; } }
@media (max-width: 580px) { .task-step-heading, .final-step { padding-left: 18px; padding-right: 18px; } .final-step > .task-step-heading { padding-left: 0; padding-right: 0; } .locked-final-actions { align-items: stretch; flex-direction: column; } .locked-final-button { width: 100%; } }
@media (max-width: 850px) { .auth-page { grid-template-columns: 1fr; width: min(600px, calc(100% - 24px)); margin: 26px auto; }.auth-visual { min-height: 390px; padding: 42px 32px; }.auth-visual h1 { font-size: 51px; }.visual-path { left: 32px; bottom: 32px; }.auth-form { padding: 42px 32px; }.phase-wrap { grid-template-columns: 1fr; gap: 25px; }.phase-rail { position: static; }.phase-steps { grid-template-columns: repeat(3, 1fr); gap: 8px; }.rail-line { top: 15px; bottom: auto; left: 12px; right: 12px; width: auto; height: 1px; }.rail-step { grid-template-columns: 29px 1fr; column-gap: 8px; }.rail-step small { grid-column: 2; }.rail-note { margin-top: 16px; }.phase-heading { align-items: start; }.content-wrap { margin: 39px auto; } }
@media (max-width: 580px) { .topbar { height: 62px; padding: 0 15px; }.brand { font-size: 14px; }.save-chip { display: none; }.content-wrap, .narrow-wrap { width: calc(100% - 24px); margin: 30px auto; }.field-grid { grid-template-columns: 1fr; }.welcome-row { align-items: start; }.welcome-orb { width: 78px; height: 78px; border-radius: 22px; }.welcome-orb span { font-size: 28px; }.welcome-row h1, .phase-heading h1 { font-size: 35px; }.phase-heading { display: block; }.progress-pill { display: inline-block; margin-top: 16px; }.paper-question { grid-template-columns: 45px 1fr; }.question-number { padding-top: 25px; font-size: 15px; }.question-body { padding: 23px 18px 25px; }.question-body h2 { font-size: 18px; }.dialogue-top, .conversation, .dialogue-composer { padding: 22px 18px; }.dialogue-top h2 { font-size: 22px; }.bubble-row { max-width: 94%; }.acrylic-form { padding: 22px 18px; }.auth-page { width: calc(100% - 16px); margin: 8px auto; border-radius: 18px; }.auth-visual { min-height: 350px; padding: 34px 23px; }.auth-visual h1 { font-size: 46px; }.visual-path { left: 23px; right: 23px; gap: 6px; }.visual-path i { width: 22px; }.visual-path b { font-size: 10px; } }
