:root {
  color-scheme: light;
  --ink: #17221c;
  --muted: #65736b;
  --paper: #f5f2e9;
  --card: #fffdf7;
  --line: #d8d3c5;
  --brand: #145c43;
  --brand-2: #e8a63b;
  --danger: #a3362b;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: radial-gradient(circle at top left, #e8efe7, var(--paper) 46%); font: 15px/1.5 Inter, ui-sans-serif, system-ui, sans-serif; }
button, input, select, textarea { font: inherit; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 34px auto 64px; }
.card { background: color-mix(in srgb, var(--card) 94%, transparent); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 60px #25423312; }
.login { width: min(460px, 100%); margin: 10vh auto; padding: 34px; }
.eyebrow { margin: 0 0 5px; color: var(--brand); font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
h1, h2 { margin: 0; letter-spacing: -.025em; }
h1 { font-size: clamp(28px, 5vw, 46px); }
h2 { font-size: 23px; }
.muted { color: var(--muted); }
form { display: grid; gap: 14px; margin-top: 24px; }
label { display: grid; gap: 6px; color: var(--muted); font-size: 13px; font-weight: 700; }
input, select, textarea { width: 100%; min-height: 44px; padding: 9px 12px; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 10px; }
textarea { min-height: 82px; resize: vertical; }
button { min-height: 42px; padding: 9px 15px; color: #fff; background: var(--brand); border: 0; border-radius: 10px; cursor: pointer; font-weight: 800; }
button:hover { filter: brightness(1.08); }
button.secondary, .tabs button { color: var(--brand); background: transparent; border: 1px solid var(--line); }
.topbar, .panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.tabs { display: flex; gap: 8px; margin: 20px 0; overflow-x: auto; }
.tabs button.active { color: #fff; background: var(--brand); border-color: var(--brand); }
.panel { padding: 24px; }
.report { min-height: 240px; margin: 20px 0 0; padding: 20px; overflow: auto; white-space: pre-wrap; color: #e9f5ee; background: #173629; border-radius: 13px; font: 14px/1.65 ui-monospace, SFMono-Regular, Menlo, monospace; }
.compact-report { min-height: 160px; max-height: 420px; }
.grid-form { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 18px; background: #f2eee3; border-radius: 13px; }
.grid-form button { align-self: end; }
.span-3 { grid-column: 1 / -1; }
.inline-form { grid-template-columns: 2fr 2fr auto; align-items: end; }
.stack { display: grid; gap: 12px; margin-top: 20px; }
.item { padding: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; }
.item-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.item-actions button.reject { background: var(--danger); }
.item-actions button.correct { color: var(--ink); background: var(--brand-2); }
.notice { padding: 12px 14px; background: #fff1cf; border-left: 4px solid var(--brand-2); }
.error { min-height: 22px; color: var(--danger); font-weight: 700; }
@media (max-width: 760px) { .grid-form, .inline-form { grid-template-columns: 1fr; } .span-3 { grid-column: auto; } .shell { width: min(100% - 20px, 1180px); margin-top: 16px; } .panel { padding: 18px; } }
