:root {
  --bg: #f6f5f1;
  --ink: #1d2321;
  --muted: #5f6b66;
  --line: #d9ddd5;
  --panel: #ffffff;
  --accent: #0f766e;
  --accent-dark: #115e59;
  --gold: #a16207;
  --rose: #be123c;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
.shell { width: min(1180px, calc(100vw - 32px)); margin: 0 auto; padding: 32px 0; }
.hero { display: flex; justify-content: space-between; gap: 24px; align-items: end; padding-bottom: 24px; }
.eyebrow { margin: 0 0 8px; color: var(--accent-dark); font-size: 12px; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(34px, 5vw, 64px); line-height: 1; letter-spacing: 0; }
.lede { margin: 14px 0 0; max-width: 620px; color: var(--muted); font-size: 18px; }
.status { min-width: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; background: var(--panel); color: var(--accent-dark); font-weight: 700; text-align: center; }
.workspace { display: grid; grid-template-columns: 380px 1fr; gap: 18px; align-items: start; }
.input-panel, .output-panel { border: 1px solid var(--line); border-radius: 8px; background: var(--panel); box-shadow: 0 12px 30px rgba(29, 35, 33, 0.07); }
.input-panel { display: grid; gap: 10px; padding: 18px; position: sticky; top: 18px; }
label { color: var(--muted); font-size: 13px; font-weight: 800; }
select, textarea, button { width: 100%; border-radius: 7px; font: inherit; }
select, textarea { border: 1px solid var(--line); padding: 10px 12px; background: #fbfbf9; color: var(--ink); }
textarea { resize: vertical; min-height: 220px; line-height: 1.5; }
button { border: 0; min-height: 44px; margin-top: 4px; background: var(--accent); color: white; font-weight: 800; cursor: pointer; }
button:hover { background: var(--accent-dark); }
button:disabled { cursor: wait; opacity: 0.7; }
.output-panel { padding: 18px; }
.notice { margin-bottom: 14px; border: 1px solid #fecdd3; border-radius: 8px; padding: 12px; background: #fff1f2; color: var(--rose); font-weight: 700; line-height: 1.4; }
.summary { border-bottom: 1px solid var(--line); padding-bottom: 16px; margin-bottom: 18px; }
.summary p:last-child { margin: 0; color: var(--ink); font-size: 18px; line-height: 1.45; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
h2 { margin: 0 0 10px; font-size: 16px; }
.stack { display: grid; gap: 10px; }
.item { min-height: 86px; border: 1px solid var(--line); border-radius: 8px; padding: 12px; background: #fbfbf9; }
.item strong { display: block; margin-bottom: 6px; }
.item p { margin: 0; color: var(--muted); line-height: 1.45; }
.score { color: var(--gold); font-weight: 800; }
details { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
summary { cursor: pointer; font-weight: 800; }
pre { overflow: auto; border-radius: 8px; padding: 12px; background: #1d2321; color: #f6f5f1; }
@media (max-width: 840px) {
  .hero, .workspace { display: grid; grid-template-columns: 1fr; }
  .input-panel { position: static; }
  .grid { grid-template-columns: 1fr; }
}
