:root {
  color-scheme: light;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei UI", sans-serif;
  background: #f4f6f3;
  color: #203029;
  --ink: #203029;
  --muted: #4c6055;
  --line: #d9e2da;
  --accent: #176145;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
.shell { width: min(920px, calc(100% - 40px)); margin: 44px auto; padding-bottom: env(safe-area-inset-bottom); }
.heading { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; margin-bottom: 25px; }
.heading p { margin-top: 5px; }
.heading time { white-space: nowrap; }
h1, h2, p, dl, ul, dd { margin: 0; }
h1 { font-size: 33px; letter-spacing: -.025em; }
h2 { font-size: 20px; margin-bottom: 10px; }
p { line-height: 1.55; }
time, .muted, dt { color: var(--muted); font-size: 14px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.section, .records { background: white; border: 1px solid var(--line); border-radius: 13px; padding: 23px; }
.metrics { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 19px 0; margin: 18px 0; border-block: 1px solid var(--line); }
dd { margin-top: 7px; font-weight: 680; font-variant-numeric: tabular-nums; }
button, input { font: inherit; min-height: 44px; border-radius: 7px; }
button { padding: 9px 14px; border: 1px solid var(--accent); cursor: pointer; font-weight: 650; }
button:disabled { opacity: .6; cursor: default; }
.primary { color: white; background: var(--accent); }
.primary:hover:enabled { background: #114f37; }
.quiet { color: var(--accent); background: #fff; border-color: #93ad9e; }
.quiet:hover:enabled { background: #ecf4ee; }
:focus-visible { outline: 3px solid #39835f; outline-offset: 2px; }
.locate { margin-block: 4px 15px; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 13px; }
.full { grid-column: 1 / -1; }
label { display: grid; gap: 5px; color: var(--muted); font-size: 14px; }
input { width: 100%; min-width: 0; padding: 8px 10px; border: 1px solid #a4b5a9; color: var(--ink); font-size: 16px; }
.message { color: var(--muted); font-size: 14px; margin-top: 11px; }
.message:empty { display: none; }
.message[data-tone="good"] { color: #176145; }
.message[data-tone="error"] { color: #903d2c; }
.detail { margin-top: 5px; }
.records { margin-top: 16px; }
.records ul { list-style: none; padding: 0; }
.records li { display: flex; gap: 12px; justify-content: space-between; align-items: baseline; border-top: 1px solid var(--line); padding: 11px 0; font-size: 14px; }
.records li:last-child { padding-bottom: 0; }
@media (max-width: 640px) {
  .shell { margin-block: 26px; width: calc(100% - 28px); }
  .heading { align-items: flex-start; flex-direction: column; gap: 6px; }
  .layout { grid-template-columns: 1fr; }
  .section, .records { padding: 18px; }
}
