:root {
  color-scheme: dark;
  --bg: #071016;
  --panel: rgba(11, 22, 31, 0.92);
  --panel-soft: rgba(16, 29, 40, 0.82);
  --text: #edf7f5;
  --muted: #a5c0ba;
  --line: rgba(147, 219, 198, 0.14);
  --accent: #96f0d0;
  --accent-strong: #5fe3b7;
  --accent-warm: #ffe0a0;
  --success: #8cf0bb;
  --warning: #ffd17f;
  --danger: #ff9e9c;
  --shadow: 0 24px 60px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', system-ui, sans-serif;
  background:
    radial-gradient(circle at top left, rgba(95, 227, 183, 0.18), transparent 28%),
    radial-gradient(circle at top right, rgba(255, 224, 160, 0.14), transparent 24%),
    linear-gradient(180deg, #071016, #0c151d 52%, #091017);
  color: var(--text);
}
a { color: inherit; }
main { padding-bottom: 72px; }
.shell, .docs-shell { width: min(1120px, calc(100vw - 32px)); margin: 0 auto; }
.hero { padding: 72px 0 32px; }
.hero-grid, .tool-layout, .result-grid { display: grid; gap: 20px; }
.hero-grid { grid-template-columns: 1.24fr 0.96fr; align-items: start; }
.tool-layout { grid-template-columns: 1.22fr 0.78fr; align-items: start; }
.result-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 20px; }
.section { padding-top: 12px; }
.card, .doc-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}
.hero-card { background: linear-gradient(180deg, rgba(13, 27, 37, 0.95), rgba(10, 21, 30, 0.9)); }
.accent-card { background: linear-gradient(180deg, rgba(11, 35, 32, 0.98), rgba(9, 22, 24, 0.92)); }
.caveat-card { background: linear-gradient(180deg, rgba(43, 30, 14, 0.88), rgba(25, 18, 12, 0.92)); }
.eyebrow, .mini-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--accent);
  font-size: 0.76rem;
  font-weight: 700;
}
.mini-label { margin-bottom: 8px; }
h1, h2, h3 { line-height: 1.08; margin: 0 0 14px; }
h1 { font-size: clamp(2.15rem, 5vw, 4rem); max-width: 13ch; }
h2 { font-size: clamp(1.45rem, 2.4vw, 2rem); }
h3 { font-size: 1.08rem; }
p { color: var(--muted); line-height: 1.65; margin: 0 0 14px; }
.lead { font-size: 1.05rem; max-width: 68ch; }
.cta-row, .planner-actions, .table-header, .preset-buttons { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-row, .planner-actions { margin: 24px 0 20px; }
.btn {
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--accent-strong), #bfffe6); color: #04110c; }
.btn-secondary { background: rgba(255,255,255,0.03); border-color: var(--line); color: var(--text); }
.btn-small { padding: 10px 14px; font-size: 0.92rem; }
.bullet-list { margin: 0; padding-left: 18px; color: var(--muted); line-height: 1.65; }
.bullet-list li + li { margin-top: 8px; }
.compact li + li { margin-top: 6px; }
.small-note { font-size: 0.92rem; color: #90aca6; }
.no-top { margin-top: 0; }
.field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}
.meta-grid { margin-bottom: 16px; }
.field-grid label { display: grid; gap: 8px; color: var(--text); font-weight: 600; }
.field-grid span, .preset-label { font-size: 0.93rem; }
input, select, textarea {
  width: 100%;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(6, 12, 17, 0.88);
  color: var(--text);
  padding: 14px 15px;
  font: inherit;
}
textarea { resize: vertical; }
.preset-row {
  display: grid;
  gap: 10px;
  margin-bottom: 16px;
  padding: 16px;
  border-radius: 20px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}
.item-stack { display: grid; gap: 16px; }
.item-card {
  padding: 18px;
  border-radius: 22px;
  background: rgba(255,255,255,0.02);
  border: 1px solid var(--line);
}
.item-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: baseline; margin-bottom: 12px; }
.item-head p { margin: 0; font-size: 0.92rem; }
.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  border-radius: 999px;
  background: rgba(140, 240, 187, 0.12);
  border: 1px solid rgba(140, 240, 187, 0.26);
  color: var(--success);
  font-weight: 700;
}
.result-zone.hidden { display: none; }
.top-gap { margin-top: 18px; }
.metric-list strong { color: var(--text); }
.score-table { display: grid; gap: 12px; }
.score-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
}
.score-row:last-child { border-bottom: 0; }
.score-row strong { color: var(--text); font-size: 1.05rem; text-align: right; }
.board-list { display: grid; gap: 12px; }
.site-footer {
  border-top: 1px solid var(--line);
  padding: 22px 0 34px;
  color: var(--muted);
}
.site-footer .shell {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: space-between;
}
.site-footer p { margin: 0; }
.board-item {
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--line);
}
.board-top { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.03em;
}
.badge.urgent { background: rgba(255, 158, 156, 0.12); color: var(--danger); border: 1px solid rgba(255, 158, 156, 0.24); }
.badge.soon { background: rgba(255, 209, 127, 0.12); color: var(--warning); border: 1px solid rgba(255, 209, 127, 0.24); }
.badge.stable { background: rgba(140, 240, 187, 0.12); color: var(--success); border: 1px solid rgba(140, 240, 187, 0.24); }
.board-meta { display: grid; gap: 4px; color: var(--muted); font-size: 0.94rem; }
.empty-state {
  padding: 18px;
  border-radius: 18px;
  border: 1px dashed var(--line);
  color: var(--muted);
}
.brief-output {
  min-height: 240px;
  line-height: 1.6;
  background: rgba(4, 10, 14, 0.92);
}
.docs-shell { padding: 32px 0 72px; }
.back-link {
  display: inline-block;
  margin: 8px 0 18px;
  color: var(--accent);
  text-decoration: none;
  font-weight: 700;
}
.doc-card h2 { margin-top: 24px; }
.doc-card ul, .doc-card ol { color: var(--muted); line-height: 1.7; padding-left: 20px; }
.info-card h3 { margin-bottom: 12px; }
@media (max-width: 920px) {
  .hero-grid, .tool-layout, .result-grid { grid-template-columns: 1fr; }
  h1 { max-width: none; }
}
@media (max-width: 680px) {
  .field-grid { grid-template-columns: 1fr; }
  .card, .doc-card { padding: 20px; border-radius: 20px; }
  .hero { padding-top: 42px; }
  .item-card { padding: 16px; }
}
