:root {
  color-scheme: light;
  --bg: #f5f7f8;
  --ink: #12201b;
  --muted: #5a6863;
  --line: #d8e0dc;
  --accent: #0b6b57;
  --accent-2: #d4a017;
  --surface: #ffffff;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; font-weight: 700; }
main { width: min(100%, 960px); margin: 0 auto; padding: 18px; }
.topbar { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.brand { font-size: 1.2rem; color: var(--ink); }
nav { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.hero { padding: 38px 0 24px; }
h1 { font-size: clamp(2rem, 12vw, 4.8rem); line-height: .94; margin: 0 0 16px; }
h2 { margin: 0 0 14px; font-size: 1.25rem; }
h3 { margin: 0 0 8px; }
p { color: var(--muted); line-height: 1.5; }
.actions, .tabs { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; }
.button, button, .tabs a { border: 0; border-radius: 8px; background: var(--accent); color: #fff; padding: 11px 14px; font: inherit; font-weight: 800; cursor: pointer; white-space: nowrap; }
.secondary, .button.secondary { background: #e7ece9; color: var(--ink); }
.panel, .placeholder, .stat-card, .result, .request { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 16px; margin: 14px 0; }
.stat-grid { display: grid; gap: 12px; }
.form { display: grid; gap: 12px; }
.form.compact { margin-top: 12px; }
label { display: grid; gap: 6px; color: var(--muted); font-weight: 700; }
input { width: 100%; min-height: 42px; border: 1px solid var(--line); border-radius: 8px; padding: 9px 10px; font: inherit; color: var(--ink); background: #fff; }
fieldset { border: 1px solid var(--line); border-radius: 8px; padding: 10px; }
legend { color: var(--muted); font-weight: 800; }
.choice { display: flex; align-items: center; grid-template-columns: auto 1fr; gap: 10px; margin: 8px 0; }
.choice input { width: auto; min-height: auto; }
.inline { display: inline-flex; margin-right: 8px; }
.error { color: #a02727; font-weight: 800; }
.dashboard-head { display: flex; align-items: end; justify-content: space-between; gap: 12px; }

@media (min-width: 720px) {
  main { padding: 28px; }
  .stat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: end; }
  .form button, fieldset { grid-column: 1 / -1; }
}
