:root {
  color-scheme: light;
  --background: #f5f2e6;
  --paper: #fffdf4;
  --ink: #1d2b21;
  --muted: #576354;
  --line: #d7d8c8;
  --forest: #204b34;
  --forest-dark: #153725;
  --light-green: #e8efdc;
  --gold: #eaca6c;
  --sand: #f2e5bd;
  --copper: #873b25;
  --panel-shadow: 4px 4px 0 #dedac6;
  --ui: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--background); font: 16px/1.58 var(--ui); }
#app { min-height: 100vh; display: flex; flex-direction: column; }
.noscript { padding: 24px; }
[hidden] { display: none !important; }
::selection { background: #ecd577; color: var(--ink); }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: var(--forest-dark); text-decoration: none; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .62; }
:focus-visible { outline: 3px solid #ab651c; outline-offset: 4px; }
p, h1, h2, h3, h4, ul, ol { margin-block: 0; }
p + p { margin-top: 8px; }
h1, h2, h3, h4 { line-height: 1.22; }
h1 { font-weight: 850; letter-spacing: -.03em; }
h2 { font-size: 22px; }
h3 { font-size: 18px; }
h4 { font-size: 14px; }
pre { margin: 0; font: 15px/1.55 var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; }
input:not([type=radio]), select {
  width: 100%; min-width: 0; min-height: 44px; padding: 8px 10px;
  color: var(--ink); background: #fffef8; border: 1px solid #8e9889; border-radius: 0;
}
.container { width: min(1120px, calc(100% - 64px)); margin-inline: auto; }
.container.wide { width: min(1240px, calc(100% - 64px)); }
.topbar { min-height: 74px; border-bottom: 1px solid var(--line); background: var(--paper); }
.top-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 74px; }
.top-inner nav { display: flex; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-width: 0; gap: 13px; font-size: 19px; font-weight: 850; line-height: 1.12; }
.brand small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 650; letter-spacing: .08em; }
.brand-block {
  display: inline-block; flex: none; width: 34px; height: 34px; border: 2px solid #283a27;
  background: linear-gradient(180deg, #80a459 0 28%, #557b48 28% 40%, #946245 40%);
  box-shadow: 3px 3px 0 #bec8a5; position: relative;
}
.brand-block::before { content: ""; position: absolute; width: 5px; height: 5px; left: 5px; top: 5px; background: #b0bf72; box-shadow: 10px -2px 0 #aaba70, 15px 10px 0 #b78a59, 3px 16px 0 #704b3c, 15px 21px 0 #704b3c; }
.footer { margin-top: auto; padding: 23px 0 26px; color: var(--muted); font-size: 13px; }
.footer span { margin-inline: 4px; }
.button {
  min-height: 45px; display: inline-flex; align-items: center; justify-content: center; gap: 14px;
  padding: 8px 17px; border: 1px solid var(--forest-dark); border-radius: 0;
  font-weight: 750; line-height: 1.35; text-align: center; color: var(--forest-dark); background: var(--paper);
}
.button.small { min-height: 36px; padding: 6px 12px; font-size: 14px; }
.button.primary { color: #fffdf4; background: var(--forest); box-shadow: 3px 3px 0 #132d20; }
.button.outline:hover { background: var(--light-green); }
.button.primary:hover { background: var(--forest-dark); }
.button.primary:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #132d20; }
.button span[aria-hidden=true] { font-size: 19px; line-height: 1; }
.text-button { color: var(--forest-dark); background: transparent; border: 0; padding: 8px 0; font-weight: 750; }
.text-button:hover { text-decoration: underline; }
.panel { min-width: 0; background: var(--paper); border: 1px solid var(--line); box-shadow: var(--panel-shadow); }
.section-heading { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.state-chip { background: var(--light-green); color: var(--forest-dark); padding: 3px 8px; font-size: 13px; white-space: nowrap; }
.time-chip { color: #513c18; background: var(--sand); font-weight: 800; }
.muted { color: var(--muted); }
.alert { margin: 10px 0; padding: 10px 12px; background: var(--sand); color: #513c18; border-left: 4px solid #a77923; font-size: 14px; }
.alert.danger { color: #772d1a; background: #f7e2d9; border-color: #a14629; }
.alert.success { color: var(--forest-dark); background: var(--light-green); border-color: #548153; }
.kicker { display: flex; align-items: center; gap: 9px; color: var(--forest); letter-spacing: .06em; font-size: 13px; font-weight: 850; }
.pixel-icon { width: 10px; height: 10px; background: #78964e; box-shadow: 2px 2px 0 #345537; display: inline-block; flex: none; }
.panel-icon { display: inline-grid; place-items: center; width: 36px; height: 36px; background: #e6edce; color: #355944; font-size: 21px; font-weight: 800; line-height: 1; }

.landscape { position: absolute; inset: auto 0 0 0; height: 158px; overflow: hidden; isolation: isolate; }
.landscape i { position: absolute; display: block; }
.landscape .sun { top: 3px; right: 19%; width: 42px; height: 42px; background: #edce71; box-shadow: 9px 9px 0 #f0dfa3; }
.landscape .cloud { width: 48px; height: 13px; background: #fffdf1; box-shadow: 10px -7px 0 #fffdf1; }
.landscape .cloud.one { top: 35px; left: 18%; }
.landscape .cloud.two { top: 22px; right: 35%; transform: scale(.65); }
.landscape .hill.back { bottom: 17px; width: 78%; height: 96px; left: 0; background: #b0bd84; clip-path: polygon(0 48%, 19% 48%, 19% 28%, 31% 28%, 31% 11%, 44% 11%, 44% 0, 53% 0, 53% 11%, 65% 11%, 65% 28%, 75% 28%, 75% 43%, 84% 43%, 84% 61%, 100% 61%, 100% 100%, 0 100%); }
.landscape .hill.front { height: 111px; width: 67%; bottom: 0; right: 0; background: #71915b; clip-path: polygon(0 77%, 13% 77%, 13% 61%, 27% 61%, 27% 46%, 44% 46%, 44% 30%, 55% 30%, 55% 14%, 67% 14%, 67% 0, 78% 0, 78% 14%, 91% 14%, 91% 30%, 100% 30%, 100% 100%, 0 100%); }
.landscape .grass { inset: auto 0 0; }
.landscape .grass-back { height: 45px; background: #597951; clip-path: polygon(0 32%, 17% 32%, 17% 7%, 41% 7%, 41% 32%, 64% 32%, 64% 0, 83% 0, 83% 38%, 100% 38%, 100% 100%, 0 100%); }
.landscape .grass-front { height: 29px; background: #526f4b; border-bottom: 11px solid #806045; clip-path: polygon(0 25%, 29% 25%, 29% 0, 53% 0, 53% 32%, 73% 32%, 73% 17%, 100% 17%, 100% 100%, 0 100%); }
.landscape .ore { width: 9px; height: 9px; background: #c49a5b; bottom: 4px; }
.landscape .ore-one { left: 14%; box-shadow: 22px 1px 0 #9d7650; }
.landscape .ore-two { left: 49%; }
.landscape .ore-three { left: 80%; box-shadow: 16px 1px 0 #9d7650; }
.landscape .tree { width: 7px; height: 31px; background: #774f37; bottom: 29px; }
.landscape .tree::before { content: ""; position: absolute; background: #395d43; width: 27px; height: 18px; left: -10px; top: -8px; box-shadow: 0 4px 0 #456e4a; }
.landscape .tree::after { content: ""; position: absolute; background: #395d43; width: 13px; height: 10px; left: -3px; top: -16px; }
.landscape .tree-one { left: 22%; }
.landscape .tree-two { right: 8%; bottom: 22px; transform: scale(.78); }
.landscape .flag { height: 41px; width: 5px; background: #473d2d; bottom: 107px; right: 25%; }
.landscape .flag::after { content: ""; position: absolute; inset: 1px auto auto 4px; width: 24px; height: 16px; background: #edc963; clip-path: polygon(0 0, 100% 0, 79% 50%, 100% 100%, 0 100%); }

.login-layout { display: grid; grid-template-columns: 1.5fr 1fr; gap: 32px; align-items: center; margin: clamp(48px, 9vh, 115px) auto; }
.login-intro { min-height: 423px; position: relative; overflow: hidden; padding: 36px 36px 172px; background: #e8edd5; border: 1px solid #a9b59a; }
.login-intro h1 { font-size: clamp(37px, 5vw, 62px); margin: 16px 0 12px; }
.login-intro h1 span { display: block; color: var(--forest); }
.login-intro > p:last-of-type { max-width: 380px; color: var(--muted); }
.login-panel { padding: clamp(22px, 4vw, 45px); }
.login-panel h2 { margin: 15px 0 21px; font-size: 28px; }
.login-panel .button { width: 100%; justify-content: space-between; margin-top: 17px; }
.login-panel label { display: block; font-weight: 700; margin-bottom: 7px; }

.today-hero {
  margin: 30px 0 23px; padding: 27px 30px; min-height: 176px; position: relative;
  overflow: hidden; background: #e8edd5; border: 1px solid #a9b59a;
}
.today-hero > div:first-child { position: relative; z-index: 1; max-width: 65%; }
.today-hero h1, .report-hero h1 { font-size: clamp(35px, 5vw, 54px); margin: 8px 0; }
.today-hero p:last-of-type, .report-hero p:last-of-type { color: var(--muted); }
.today-hero .landscape { left: 53%; right: 0; }
.dashboard-grid { display: grid; grid-template-columns: 1.6fr 1fr; gap: 24px; align-items: start; }
.today-card, .route-card { padding: 23px 26px 28px; }
.today-card .muted { margin-top: 5px; font-size: 14px; }
.today-card .button { margin-top: 17px; }
.task-list { list-style: none; padding-left: 0; margin-top: 16px; border-top: 1px solid var(--line); }
.task-list li { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 11px 0; border-bottom: 1px solid var(--line); }
.task-dot { width: 13px; height: 13px; border: 1px solid #886a2f; background: var(--gold); box-shadow: 2px 2px 0 #d1a447; }
.task-list small { display: block; color: var(--muted); line-height: 1.4; }
.route-map { display: grid; grid-template-columns: repeat(7, minmax(20px, 1fr)); gap: 9px; margin-top: 19px; }
.route-map span { background: #e9eddc; aspect-ratio: 1.17; display: grid; place-items: center; color: #4c6247; border: 1px solid #d9dec8; font-size: 13px; font-weight: 700; }
.route-map span.route-current { background: var(--gold); color: #422d13; border: 1px solid #83612e; box-shadow: 2px 2px 0 #83612e; }
.empty { margin: 35px 0; padding: 28px; }
.empty h1 { font-size: 26px; }

.task-nav { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 17px 0 14px; }
.task-nav > div { display: flex; flex-wrap: wrap; gap: 8px; }
.editor-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 15px; }
.editor-title h1 { font-size: clamp(30px, 4vw, 43px); margin-top: 2px; }
.question-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 13px; }
.workspace-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 19px; align-items: start; }
.prompt-panel { padding: 20px 22px 23px; }
.prompt-panel h2 { margin-bottom: 10px; }
.prompt-panel h3 { margin: 17px 0 7px; }
.prompt-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.topic { margin-bottom: 9px; font-size: 13px; }
.sample-prompt, .sample-result { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.sample-prompt > div, .sample-result > div { min-width: 0; background: #f0eee0; border: 1px solid var(--line); }
.sample-prompt h4, .sample-result h4 { padding: 6px 8px; background: #e9e8d9; color: #4c5547; }
.sample-prompt pre, .sample-result pre { min-height: 56px; padding: 7px 8px; }
.points-line { color: var(--muted); margin-top: 14px; font-size: 13px; }
.help-panel { border-top: 1px solid var(--line); margin-top: 17px; padding-top: 15px; }
.help-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.hint-note { margin-top: 8px; padding: 9px 10px; background: #f2e8c9; border-left: 3px solid #a77923; font-size: 14px; }
.hint-note p { margin-top: 3px; white-space: pre-wrap; }
.observation-form { margin: 10px 0; display: flex; gap: 7px; flex-direction: column; padding: 10px; background: #eff0e5; }
.observation-form label { font-size: 14px; font-weight: 750; }
.observation-form input, .observation-form select { margin-top: 3px; font-weight: 400; }
.observation-form .observation-timing { font-size: 13px; margin-bottom: 3px; }
.observation-form button + button { margin-left: 7px; }
.editor-column { min-width: 0; }
.editor-shell { background: #18261e; color: #f2f3e8; border: 1px solid #1a3828; box-shadow: 3px 3px 0 #bfc5ac; }
.editor-header { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; justify-content: space-between; background: #253a2b; padding: 9px 13px; }
.editor-header label { font-size: 14px; font-weight: 750; display: flex; align-items: center; gap: 8px; }
.editor-square { display: inline-block; width: 9px; height: 9px; background: #9cb577; }
#draft-status { font-size: 12px; color: #d2e0c1; }
#draft-status.unsent { color: #f7d58d; }
.editor-area { min-height: 245px; display: flex; }
#code {
  display: block; resize: vertical; width: 100%; min-width: 0; min-height: 245px;
  border: 0; border-radius: 0; color: #fbfbef; background: transparent; padding: 12px 13px;
  font: 15px/1.62 var(--mono); caret-color: #fff3c6; tab-size: 4;
}
#code:focus-visible { outline: 2px solid #edc971; outline-offset: -2px; }
#code::placeholder { color: #acbaa8; }
#editor-keyboard { padding: 6px 13px; color: #c7d3c6; font-size: 12px; border-top: 1px solid #36493a; }
.editor-actions { margin: 11px 0 10px; display: flex; gap: 9px; flex-wrap: wrap; }
.result-card { margin-top: 10px; padding: 13px 15px 15px; }
.result-card h3 { margin-bottom: 6px; }
.result-card p { font-size: 14px; }
.result-card .result-empty { color: var(--muted); }
.result-heading { display: flex; align-items: center; gap: 12px; margin: 4px 0; }
.result-heading strong { color: var(--forest-dark); }
.result-heading > span { color: var(--muted); font-size: 13px; }
.sample-result { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 8px; }
.case-list, .evidence-list { padding: 0; margin-top: 6px; list-style: none; font-size: 14px; }
.case-list li, .evidence-list li { padding: 4px 0; border-top: 1px solid var(--line); }
.case-list li { display: flex; gap: 10px; justify-content: space-between; }
.result-card .button { margin-top: 6px; }
.attempt-details { padding: 5px 0; font-size: 14px; }
.attempt-details > summary { cursor: pointer; font-weight: 750; }
.attempt-details pre { background: #f0eee0; padding: 8px; margin-top: 5px; }

.report-hero { display: flex; gap: 24px; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; margin-top: 30px; padding-bottom: 20px; }
.date-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.date-form label { font-size: 14px; }
.date-form input { width: auto; min-height: 36px; }
.summary-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.summary-card { min-height: 159px; padding: 18px 19px 22px; }
.summary-card h2 { margin: 9px 0 7px; font-size: 19px; }
.summary-card p { color: var(--muted); overflow-wrap: anywhere; }
.evidence-section { margin-top: 28px; }
.evidence-section h2 { margin-bottom: 10px; }
.report-task { margin-bottom: 12px; padding: 14px 18px; }
.report-task > .section-heading { margin-bottom: 11px; }
.question-evidence { border-top: 1px solid var(--line); }
.question-evidence > summary { padding: 10px 0; font-weight: 800; cursor: pointer; }
.question-evidence > summary .state-chip { float: right; margin-left: 8px; font-weight: 650; }
.evidence-body { margin-bottom: 10px; padding-left: 12px; }
.evidence-body h4 { margin-top: 12px; }
.evidence-body p { font-size: 14px; }
.score-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; max-width: 480px; font-size: 14px; }
.score-row > div { display: flex; flex-direction: column; padding: 6px 8px; background: var(--light-green); }
.evidence-body .button { margin-top: 10px; }
.evidence-body .observation-form { max-width: 550px; }

@media (max-width: 760px) {
  .container, .container.wide { width: calc(100% - 32px); }
  .login-layout, .dashboard-grid, .workspace-grid, .summary-grid { grid-template-columns: 1fr; gap: 15px; }
  .login-layout { margin: 21px auto; }
  .login-intro { min-height: 300px; padding: 22px 20px 128px; }
  .login-intro .landscape { transform: scaleY(.8); transform-origin: bottom; }
  .today-hero { padding: 22px 16px; }
  .today-hero > div:first-child { max-width: 74%; }
  .today-hero .landscape { left: 62%; }
  .section-heading { gap: 8px; }
  .task-nav { margin-bottom: 12px; }
  .route-map { max-width: 500px; }
  .summary-card { min-height: 0; }
}
@media (max-width: 420px) {
  .button { padding-inline: 10px; }
  .task-list li { gap: 8px; }
  .today-card, .route-card, .prompt-panel { padding-inline: 13px; }
  .sample-result { grid-template-columns: 1fr; }
  .sample-result pre { min-height: 0; }
}

.choice-grid { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 19px; align-items: start; }
.choice-panel { padding: 21px 24px; }
.choice-options { border: 0; min-width: 0; padding: 0; margin: 0; }
.choice-options legend { font-size: 22px; font-weight: 800; line-height: 1.22; margin-bottom: 13px; }
.choice-option { display: flex; align-items: flex-start; gap: 10px; color: var(--ink); padding: 11px 10px; border: 1px solid var(--line); background: #faf7ec; margin-bottom: 8px; cursor: pointer; }
.choice-option:has(:checked) { border-color: var(--forest); background: var(--light-green); }
.choice-option:focus-within { outline: 2px solid #ab651c; outline-offset: 1px; }
.choice-option input { accent-color: var(--forest); margin: 5px 1px 0; flex: none; }
.choice-option > span:last-child { white-space: pre-wrap; overflow-wrap: anywhere; }
.option-letter { flex: none; font: 700 13px/23px var(--mono); width: 23px; height: 23px; text-align: center; background: #e4e6cf; color: var(--forest-dark); }
.choice-options .button { margin-top: 6px; }
.choice-feedback { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.choice-feedback h3 { margin-bottom: 8px; }
.choice-feedback p { white-space: pre-wrap; }
.timed-start { max-width: 730px; margin-bottom: 20px; padding: 25px; }
.timed-start h1 { margin: 8px 0; font-size: clamp(30px, 4vw, 44px); }
.timed-start .button { margin-top: 15px; }
.timed-result { margin-bottom: 14px; padding: 12px 15px 14px; }
.timed-result .score-row { margin: 9px 0; }
.timed-result p { font-size: 14px; }
.timed-result .button { margin-bottom: 9px; }
.turn-in { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
#task-clock { font-variant-numeric: tabular-nums; }
.mock-link { display: flex; align-items: center; justify-content: space-between; margin-top: 15px; gap: 12px; padding: 15px 22px; }
.report-basis { margin-top: 12px; }
.report-metrics { margin-top: 17px; padding: 12px 15px; }
.report-metrics h2 { font-size: 17px; margin: 5px 0 8px; }
.report-metrics ul { margin-top: 6px; }
.report-metrics li { display: flex; flex-wrap: wrap; gap: 4px 12px; }
.report-metrics li > strong { min-width: 135px; }
@media (max-width: 760px) {
  .choice-grid { grid-template-columns: 1fr; gap: 15px; }
  .choice-panel, .timed-start { padding-inline: 15px; }
}
.reference { overflow-wrap: anywhere; font-size: 12px; }
.diagnostic-note { margin-bottom: 9px; padding: 6px 8px; color: #513c18; background: var(--sand); font-size: 13px; }
