:root {
  color-scheme: light;
  --ink: #17202a;
  --muted: #66727d;
  --line: #dfe5e8;
  --paper: #f6f8f7;
  --surface: #ffffff;
  --accent: #087f5b;
  --accent-dark: #056044;
  --warm: #e68a36;
  --danger: #ad3a32;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: var(--paper); color: var(--ink); font: 16px/1.6 Arial, "Microsoft YaHei", sans-serif; }
.shell { width: min(760px, calc(100% - 32px)); margin: 0 auto; padding: 72px 0 36px; }
.hero { margin-bottom: 28px; }
.compact-hero { margin-bottom: 20px; }
h1, h2, p { margin-top: 0; }
h1 { margin-bottom: 10px; font-size: clamp(36px, 8vw, 64px); line-height: 1.05; letter-spacing: 0; }
h2 { margin-bottom: 0; font-size: 22px; line-height: 1.2; }
.lede { max-width: 540px; margin-bottom: 0; color: var(--muted); font-size: 18px; }
.eyebrow { margin-bottom: 10px; color: var(--accent); font-size: 12px; font-weight: 700; letter-spacing: 1.8px; }
.panel { margin: 14px 0; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: 6px; box-shadow: 0 8px 24px rgba(23, 32, 42, .05); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.status-dot { width: 10px; height: 10px; flex: 0 0 auto; border-radius: 50%; background: var(--warm); box-shadow: 0 0 0 5px #fff2df; }
label { display: block; margin-bottom: 8px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, textarea { width: 100%; border: 1px solid #cbd4d8; border-radius: 4px; background: #fff; color: var(--ink); font: inherit; }
input { height: 48px; padding: 0 14px; }
textarea { display: block; margin-top: 8px; padding: 12px 14px; resize: vertical; font: 13px/1.5 Consolas, monospace; }
input:focus, textarea:focus { outline: 3px solid rgba(8, 127, 91, .15); border-color: var(--accent); }
.input-row { display: grid; grid-template-columns: 1fr auto; gap: 10px; }
button { min-height: 48px; padding: 0 20px; border: 0; border-radius: 4px; background: var(--accent); color: #fff; cursor: pointer; font: inherit; font-weight: 700; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: .6; }
button.secondary { background: #edf1ef; color: var(--ink); }
button.secondary:hover { background: #dfe7e3; }
.message { min-height: 26px; margin: 14px 0 0; color: var(--muted); }
.message.success { color: var(--accent-dark); }
.message.error { color: var(--danger); }
.fine-print, .helper, .note-panel p { margin-bottom: 0; color: var(--muted); font-size: 13px; }
.helper { margin: -10px 0 18px; }
code { padding: 2px 4px; background: #f0f3f2; border-radius: 3px; font: 12px Consolas, monospace; }
.actions { display: flex; gap: 10px; margin-top: 16px; }
.stats { color: var(--muted); font-size: 13px; }
footer { padding-top: 12px; color: var(--muted); font-size: 13px; }
@media (max-width: 560px) {
  .shell { width: min(100% - 24px, 760px); padding-top: 44px; }
  .panel { padding: 18px; }
  .input-row { grid-template-columns: 1fr; }
  .input-row button { width: 100%; }
  .actions { flex-direction: column; }
}
