@charset "UTF-8";
:root {
  color-scheme: light;
  --bg: #f7f7f1;
  --surface: #fffefa;
  --ink: #182d23;
  --muted: #54645a;
  --line: #dfe4da;
  --green: #244536;
  --green-deep: #19382a;
  --lime: #e7f69e;
  --red: #9e3d31;
  --success: #295936;
  font-family: "PingFang SC", "Microsoft YaHei UI", "Noto Sans CJK SC", system-ui, sans-serif;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-height: 100svh; color: var(--ink); background: var(--bg); }
button, input, select { font: inherit; }
button { color: inherit; }
button, a, select { touch-action: manipulation; }
button { cursor: pointer; user-select: none; -webkit-user-select: none; }
button:disabled { cursor: default; }
:focus-visible { outline: 3px solid #6f8f3b; outline-offset: 3px; }
svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.symbol-library { position: absolute; width: 0; height: 0; overflow: hidden; }
h1, h2, h3, p { margin: 0; }
.frame { width: min(1088px, calc(100% - 64px)); margin-inline: auto; }
.site-header { border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top, 0px); }
.topbar { min-height: 76px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: inline-flex; align-items: center; text-align: left; gap: 11px; color: var(--ink); background: none; border: 0; padding: 0; font-size: 18px; font-weight: 750; }
.brand-mark { width: 39px; height: 39px; border-radius: 11px; display: grid; place-items: center; background: var(--green); color: var(--lime); }
.brand-mark svg { width: 23px; height: 23px; }
.button { min-height: 46px; display: inline-flex; justify-content: center; align-items: center; gap: 9px; padding: 9px 16px; border-radius: 11px; border: 1px solid transparent; font-size: 14px; font-weight: 720; line-height: 1.35; text-decoration: none; }
.button svg { width: 17px; height: 17px; }
.button:active:not(:disabled), .tile:active:not(:disabled), .option:active:not(:disabled), .tab:active { filter: brightness(.91); }
.button.subtle { background: var(--surface); border-color: #d8e0d5; }
.button.primary { color: white; background: var(--green); }
.button.lime { color: #1b3124; background: var(--lime); }
.button.back { background: none; border-color: transparent; padding-inline: 0 10px; }
.button:disabled { opacity: .46; }
#main { padding-top: 37px; }
.loading { padding: 36px 0; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(236px, 33%);
  gap: 34px; align-items: center; min-height: 318px; padding: 38px 56px; border-radius: 24px;
  color: #f8f9f1; background: linear-gradient(117deg, #214231, #173529 78%);
}
.hero::before {
  content: ""; position: absolute; z-index: -1; width: 58%; inset: 0 0 0 auto;
  background-image: radial-gradient(circle, #cfe2a43b 1px, transparent 1.3px);
  background-size: 16px 16px; opacity: .55;
  mask-image: linear-gradient(90deg, transparent, #000 57%);
}
.hero-kicker { display: flex; align-items: center; gap: 10px; color: #e0eead; font-size: 14px; font-weight: 650; }
.hero-kicker::before { content: ""; width: 17px; height: 2px; background: var(--lime); }
.hero h1 { margin-top: 13px; font-size: clamp(32px, 4.6vw, 54px); line-height: 1.21; letter-spacing: -.035em; }
.hero p { max-width: 32em; margin-top: 13px; font-size: 15px; color: #e0e8dc; line-height: 1.75; }
.hero .button { margin-top: 25px; }
.goal { text-align: center; justify-self: center; }
.ring {
  width: 170px; aspect-ratio: 1; border-radius: 50%; margin-inline: auto; display: grid; place-items: center;
  background: conic-gradient(var(--lime) calc(var(--progress) * 1%), #496557 0); position: relative;
  box-shadow: 0 0 0 11px #a9c78b11, 0 0 0 12px #a9c78b22;
}
.ring::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #1b3a2d; }
.ring > div { position: relative; display: grid; gap: 2px; }
.ring strong { font: 630 48px/1.1 system-ui, sans-serif; letter-spacing: -.055em; font-variant-numeric: tabular-nums; }
.ring span, .goal > p { font-size: 13px; color: #e0e8dc; }
.goal > p { margin: 18px auto 0; padding: 3px 12px; border-radius: 20px; background: #142e24; }
.section-heading { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin: 33px 0 14px; }
.section-heading h2 { font-size: 23px; letter-spacing: -.02em; }
.section-heading p { font-size: 13px; color: var(--muted); }
.practice-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 15px; }
.tile {
  width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 17px;
  padding: 18px 19px 19px; display: grid; grid-template-columns: 1fr auto; align-items: start; gap: 7px 10px; min-height: 136px;
}
.tile-icon { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; background: #e9f1df; color: #33523d; }
.tile:nth-child(2) .tile-icon { background: #f8eddb; color: #785424; }
.tile:nth-child(3) .tile-icon { background: #e8edf7; color: #445782; }
.tile > svg { width: 19px; align-self: center; }
.tile strong { grid-column: 1/-1; font-size: 18px; margin-top: 4px; }
.tile small { grid-column: 1/-1; color: var(--muted); font-size: 13px; line-height: 1.5; }
.tile:disabled { background: #f5f5ed; color: #58665c; }
.breakdown { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); border: 1px solid var(--line); background: var(--surface); border-radius: 17px; }
.type-row { text-align: left; min-width: 0; background: none; border: 0; padding: 18px; display: grid; gap: 8px; }
.type-row + .type-row { border-inline-start: 1px solid var(--line); }
.type-row > span { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; font-size: 14px; font-weight: 650; }
.type-row small { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 12px; font-weight: 500; }
.track { height: 5px; border-radius: 10px; background: #e6ebe1; overflow: hidden; }
.track span { display: block; height: 100%; background: #61864a; border-radius: inherit; }
.site-footer { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 20px; padding: 24px 0 max(23px, env(safe-area-inset-bottom, 0px)); font-size: 12px; line-height: 1.7; color: var(--muted); }
.site-footer:empty { display: none; }
.session-shell { max-width: 780px; margin-inline: auto; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 11px; }
.session-tools { display: flex; align-items: center; gap: 9px; }
.timer { font: 650 15px/1.3 ui-monospace, Consolas, monospace; display: inline-flex; align-items: center; gap: 5px; }
.timer.urgent { color: var(--red); }
.timer svg { width: 17px; }
.session-progress { display: flex; align-items: center; justify-content: space-between; gap: 15px; margin-bottom: 15px; font-size: 13px; color: var(--muted); }
.session-progress .track { flex: 1; }
.question, .results { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: clamp(17px, 4vw, 34px); }
.question-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 9px; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.chip { border-radius: 6px; color: #2c5139; background: #e8f0de; padding: 4px 8px; font-size: 12px; font-weight: 720; }
.question h1 { font-size: clamp(19px, 3vw, 25px); line-height: 1.55; font-weight: 720; overflow-wrap: anywhere; white-space: pre-line; }
.options { margin: 20px 0 0; display: grid; gap: 10px; }
.option { border: 1px solid #dce2d7; border-radius: 11px; min-height: 53px; width: 100%; display: flex; align-items: center; gap: 12px; padding: 10px 13px; background: #fbfcf8; text-align: left; font-size: 16px; line-height: 1.55; }
.option span:last-child { white-space: pre-line; overflow-wrap: anywhere; min-width: 0; }
.option .letter { display: grid; place-items: center; border: 1px solid #dce2d7; border-radius: 7px; background: white; width: 30px; height: 30px; flex: 0 0 30px; font: 650 14px system-ui, sans-serif; }
.option.selected { border-color: #709356; background: #eff6e5; }
.option.selected .letter { color: white; border-color: var(--green); background: var(--green); }
.option.good { border-color: #81a77c; background: #eaf5e8; color: #24522f; }
.option.bad { border-color: #d4a094; background: #fff0ec; color: #87392e; }
.option.good .letter { color: white; border-color: var(--success); background: var(--success); }
.option.bad .letter { color: white; border-color: var(--red); background: var(--red); }
.feedback { margin-top: 16px; padding: 12px 14px; border-radius: 9px; background: #eaf5e8; color: var(--success); line-height: 1.6; font-size: 14px; }
.feedback.incorrect { background: #fff1e9; color: #863f2f; }
.actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px; margin-top: 19px; }
.actions > div { display: flex; flex-wrap: wrap; gap: 8px; }
.actions .button.primary { min-width: 111px; }
.results h1 { font-size: clamp(23px, 4vw, 33px); margin: 8px 0 15px; }
.result-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 9px; margin: 18px 0; }
.result-stat { padding: 14px 10px; text-align: center; border-radius: 10px; background: #f1f4eb; display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.result-stat strong { font: 650 27px/1.1 system-ui; color: var(--ink); }
.result-types { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); padding-block: 11px; display: flex; flex-wrap: wrap; gap: 8px 16px; color: var(--muted); font-size: 13px; }
.results-note { font-size: 14px; color: var(--muted); line-height: 1.7; }
dialog {
  width: min(470px, calc(100% - 32px)); max-height: min(700px, calc(100dvh - 48px)); overflow: auto;
  border: 1px solid var(--line); border-radius: 21px; padding: 20px; background: var(--surface); color: var(--ink);
}
dialog::backdrop { background: #172b21a8; }
.dialog-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.dialog-head h2 { font-size: 21px; }
.icon-button { display: grid; place-items: center; border: 1px solid var(--line); border-radius: 9px; background: var(--bg); min-height: 44px; min-width: 44px; }
.dialog-note { color: var(--muted); font-size: 14px; line-height: 1.65; }
.dialog-actions { display: flex; gap: 9px; justify-content: flex-end; flex-wrap: wrap; margin-top: 15px; }
.scan-code { width: min(100%,230px); aspect-ratio: 1; display: block; margin: 10px auto; border-radius: 11px; border: 1px solid var(--line); }
.scan-link { display: block; text-align: center; color: #315644; overflow-wrap: anywhere; font-size: 13px; }
.copy-status { display: block; font-size: 13px; color: var(--success); text-align: right; }
.setup-field { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; font-size: 14px; font-weight: 680; }
.setup-field select, .setup-field input { border: 1px solid #cdd7c9; color: var(--ink); border-radius: 9px; padding: 10px; background: #f9faf5; min-height: 46px; width: 100%; font-size: 16px; }
.navigator { display: grid; grid-template-columns: repeat(auto-fill,minmax(41px,1fr)); gap: 6px; margin-top: 12px; }
.navigator button { min-height: 42px; border-radius: 7px; border: 1px solid var(--line); background: white; padding: 0 2px; font: 650 13px system-ui; }
.navigator button.current { border-color: #52764a; outline: 2px solid #52764a; outline-offset: -2px; }
.navigator button.good, .navigator button.answered { color: #255030; background: #e8f3df; }
.navigator button.bad { color: #8b3b2e; background: #faeae5; }
@media (hover: hover) and (pointer: fine) {
  .button.subtle:hover:not(:disabled), .icon-button:hover, .type-row:hover, .navigator button:hover { background: #eff3e9; }
  .button.primary:hover:not(:disabled) { background: #315743; }
  .button.lime:hover { background: #f1ffaf; }
  .tile:hover:not(:disabled), .option:hover:not(:disabled) { border-color: #96aa8a; }
}
@media (max-width: 700px) {
  .frame { width: calc(100% - max(32px, env(safe-area-inset-right, 0px) + env(safe-area-inset-left, 0px))); }
  .topbar { min-height: 64px; }
  .brand { font-size: 15px; gap: 8px; }
  .brand-mark { width: 35px; height: 35px; }
  .share { padding-inline: 10px; min-height: 44px; font-size: 13px; }
  #main { padding-top: 20px; }
  .hero { grid-template-columns: 1fr auto; gap: 13px; border-radius: 19px; padding: 25px 18px; min-height: auto; }
  .hero p { margin-top: 9px; font-size: 13px; }
  .hero h1 { font-size: clamp(24px, 5.5vw, 36px); margin-top: 9px; }
  .hero-kicker { font-size: 12px; gap: 6px; }
  .hero-kicker::before { width: 10px; }
  .hero .button { margin-top: 16px; }
  .ring { width: 86px; box-shadow: 0 0 0 6px #a9c78b17; }
  .ring::before { inset: 4px; }
  .ring strong { font-size: 26px; }
  .ring span, .goal > p { font-size: 10px; }
  .goal > p { margin-top: 11px; padding-inline: 5px; }
  .section-heading { margin: 24px 0 10px; }
  .section-heading h2 { font-size: 19px; }
  .section-heading p { font-size: 12px; }
  .practice-grid { grid-template-columns: 1fr; gap: 8px; }
  .tile { min-height: 68px; grid-template-columns: auto 1fr auto; gap: 1px 10px; padding: 10px 11px; align-items: center; border-radius: 12px; }
  .tile-icon { grid-row: 1/3; }
  .tile > svg { grid-row: 1/3; grid-column: 3; }
  .tile strong { grid-column: 2; grid-row: 1; margin: 0; font-size: 15px; align-self: end; }
  .tile small { grid-column: 2; grid-row: 2; font-size: 12px; align-self: start; }
  .type-row { padding: 11px 8px; }
  .type-row > span { flex-wrap: wrap; justify-content: flex-start; column-gap: 8px; font-size: 13px; }
  .session-tools { gap: 6px; }
  .session-tools .button { padding-inline: 9px; }
  .session-tools .button svg { display: none; }
  .question, .results { border-radius: 15px; }
}
@media (max-width: 350px) {
  .hero { gap: 9px; padding-inline: 12px; }
  .ring { width: 73px; }
  .share svg { display: none; }
}

.auth-shell { max-width: 480px; }
