:root {
  color-scheme: light;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #183028;
  background: #f4f7f5;
  --muted: #566861;
  --accent: #175d46;
  --line: #d9e4de;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
[hidden] { display: none !important; }
.shell { width: min(960px, calc(100% - 48px)); margin-inline: auto; }
.site-header { background: #fcfefd; border-bottom: 1px solid var(--line); }
.brand { height: 72px; display: flex; align-items: center; gap: 12px; font-size: 1.05rem; font-weight: 750; }
.brand-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--accent);
  display: grid;
  place-items: center;
}
.brand-icon i { width: 13px; height: 10px; position: relative; margin-top: 4px; border: 1.5px solid white; border-radius: 2px; }
.brand-icon i::before { content: ""; position: absolute; top: -7px; left: 1.5px; right: 1.5px; height: 6px; border: 1.5px solid white; border-bottom: 0; border-radius: 6px 6px 0 0; }
.intro { padding-block: 77px 36px; }
h1 { margin: 0; font-size: clamp(2rem, 5vw, 3.25rem); letter-spacing: -.055em; line-height: 1.15; }
.intro p { color: var(--muted); font-size: 1.05rem; margin: 18px 0 0; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: 1.1fr 1fr; gap: 20px; }
.card { min-width: 0; padding: 28px; border: 1px solid var(--line); border-radius: 20px; }
.input-card { background: #fff; }
.result-card { background: #e8f1eb; display: flex; flex-direction: column; }
h2 { margin: 0; font-size: 1.2rem; }
.description { margin: 8px 0 24px; color: var(--muted); font-size: .94rem; line-height: 1.6; }
label { display: block; margin-bottom: 8px; font-weight: 650; font-size: .9rem; }
.input-row { display: flex; border: 1px solid #b7cac0; border-radius: 9px; background: #f8fbf9; }
.input-row:focus-within { outline: 2px solid #368061; outline-offset: 2px; }
.input-row:has(input[aria-invalid="true"]) { border-color: #b33a37; }
input { width: 100%; min-width: 0; padding: 12px 14px; font: inherit; color: inherit; background: transparent; border: 0; outline: 0; }
button { font: inherit; font-size: .91rem; font-weight: 650; white-space: nowrap; cursor: pointer; border-radius: 8px; }
button:focus-visible { outline: 2px solid #368061; outline-offset: 3px; }
.toggle { border: 0; padding: 0 12px; color: var(--accent); background: transparent; }
.toggle:hover { background: #e9f2ed; }
.actions { display: flex; gap: 10px; margin-top: 18px; }
.primary, .secondary { min-height: 42px; padding: 9px 14px; border: 1px solid transparent; }
.primary { color: white; background: var(--accent); }
.primary:hover { background: #104934; }
.secondary { color: var(--accent); border-color: #b7cac0; background: transparent; }
.secondary:hover:not(:disabled) { background: #dcebe2; }
.secondary:disabled { color: #5c7368; cursor: default; }
.error { margin: 10px 0 0; color: #a5262a; font-size: .9rem; }
.result-header, .result-footer { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.timer { color: #285a46; font-size: .88rem; font-variant-numeric: tabular-nums; }
.digits { color: #28513f; margin: 26px 0 18px; font: 650 clamp(1.7rem, 5vw, 3.2rem)/1.12 ui-monospace, monospace; font-variant-numeric: tabular-nums; letter-spacing: .07em; white-space: nowrap; }
progress { appearance: none; display: block; height: 5px; width: 100%; margin: 0 0 18px; border: 0; border-radius: 10px; background: #cbded2; color: var(--accent); }
progress::-webkit-progress-bar { background: #cbded2; border-radius: 10px; }
progress::-webkit-progress-value { background: var(--accent); border-radius: 10px; }
progress::-moz-progress-bar { background: var(--accent); border-radius: 10px; }
.result-footer { margin-top: auto; }
.result-footer p, .privacy { color: var(--muted); font-size: .87rem; line-height: 1.5; }
.result-footer p { margin: 0; }
.privacy { display: flex; align-items: center; gap: 9px; margin: 20px 0 30px; }
.privacy-dot { width: 7px; height: 7px; border-radius: 50%; background: #398266; }
.guide { max-width: 740px; margin: 42px 0 56px; }
.guide section { border-top: 1px solid var(--line); padding-top: 24px; }
.guide section + section { margin-top: 28px; }
.guide h3 { margin: 18px 0 6px; font-size: 1rem; }
.guide p, .guide li { color: var(--muted); line-height: 1.75; }
.guide p { margin: 0; }
.guide ol { margin: 12px 0 0; padding-inline-start: 1.6rem; }
.guide li + li { margin-top: 6px; }
.guide a { color: var(--accent); }
@media (max-width: 700px) {
  .shell { width: calc(100% - 32px); }
  .brand { height: 60px; }
  .intro { padding-block: 44px 24px; }
  .workspace { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
}
