:root {
  color-scheme: light;
  --ink: #172a3a;
  --muted: #647485;
  --line: #dce4e9;
  --paper: #f5f7f8;
  --white: #fff;
  --teal: #167c80;
  --teal-dark: #105e63;
  --gold: #a8731f;
  --red: #a43d3d;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; background: var(--paper); color: var(--ink); font-size: 15px; line-height: 1.55; }
a { color: var(--teal-dark); }
button, input, select, textarea { font: inherit; }
button, .button {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 7px; padding: 10px 15px;
  background: var(--teal); color: white; text-decoration: none; font-weight: 650; cursor: pointer;
}
button:hover, .button:hover { background: var(--teal-dark); }
button.secondary, .button.secondary { background: white; color: var(--ink); border-color: var(--line); }
button.secondary:hover, .button.secondary:hover { background: #edf2f4; }
button.danger { background: #fff; color: var(--red); border-color: #e5c4c4; }
button:disabled { opacity: .6; cursor: wait; }
header.site-header {
  background: var(--white); border-bottom: 1px solid var(--line);
}
.header-inner, main, footer {
  width: min(1120px, calc(100% - 40px)); margin: 0 auto;
}
.header-inner { min-height: 76px; display: flex; justify-content: space-between; align-items: center; gap: 22px; }
.brand { color: var(--ink); text-decoration: none; font-size: 18px; font-weight: 750; letter-spacing: -.03em; }
.brand span { color: var(--teal); }
nav { display: flex; align-items: center; gap: 18px; }
nav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
nav a:hover { color: var(--teal-dark); }
main { padding: 34px 0 70px; }
.hero { padding: 17px 0 27px; }
.eyebrow { color: var(--teal-dark); font-size: 11px; font-weight: 750; letter-spacing: .13em; text-transform: uppercase; }
h1 { margin: 7px 0 7px; font-size: clamp(30px, 5vw, 46px); line-height: 1.1; letter-spacing: -.045em; }
h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 14px; }
h3 { font-size: 17px; margin: 0; letter-spacing: -.015em; }
p { color: var(--muted); margin: 6px 0; }
.hero p { max-width: 700px; font-size: 16px; }
.toolbar { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin: 12px 0 18px; }
.toolbar p { margin: 0; font-size: 13px; }
.toolbar select { min-width: 190px; }
.panel, .card, .notice {
  border: 1px solid var(--line); background: var(--white); border-radius: 10px;
}
.panel { padding: 20px; }
.cards { display: grid; gap: 14px; }
.card { padding: 20px; }
.card-top { display: flex; align-items: start; justify-content: space-between; gap: 18px; }
.score { color: var(--teal-dark); font-size: 25px; font-weight: 750; white-space: nowrap; }
.score small { color: var(--muted); font-size: 12px; font-weight: 500; }
.meta { display: flex; flex-wrap: wrap; gap: 7px; margin: 11px 0 14px; }
.tag { display: inline-flex; border: 1px solid var(--line); border-radius: 99px; padding: 3px 9px; color: var(--muted); font-size: 11px; }
.tag.published { color: var(--teal-dark); background: #edf8f7; border-color: #c5e1df; }
.payload { display: grid; grid-template-columns: minmax(140px, .34fr) 1fr; gap: 9px 16px; border-top: 1px solid var(--line); padding-top: 15px; font-size: 13px; }
.payload dt { color: var(--muted); text-transform: capitalize; }
.payload dd { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.sources { margin: 17px 0 0; padding: 15px 0 0 20px; border-top: 1px solid var(--line); font-size: 13px; }
.sources li + li { margin-top: 6px; }
.timeline { margin-top: 12px; color: var(--muted); font-size: 12px; }
.timeline summary { cursor: pointer; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
label { display: block; margin: 12px 0 5px; font-size: 12px; color: var(--muted); font-weight: 650; }
input, select, textarea {
  width: 100%; padding: 10px 11px; color: var(--ink); background: white;
  border: 1px solid #cbd6dd; border-radius: 6px;
}
textarea { min-height: 75px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #9ed0d0; border-color: var(--teal); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.notice { padding: 12px 14px; color: var(--muted); font-size: 13px; margin: 12px 0; }
.notice.error { color: var(--red); border-color: #e8caca; background: #fffafa; }
.notice.success { color: var(--teal-dark); border-color: #c5e1df; background: #f5fbfa; }
.empty { padding: 33px 15px; border: 1px dashed #cbd6dd; border-radius: 9px; color: var(--muted); text-align: center; }
.queue-card { border-left: 3px solid var(--gold); }
.queue-card .payload { margin-top: 13px; }
.queue-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.muted { color: var(--muted); font-size: 12px; }
.section { margin-top: 34px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 16px; margin-bottom: 13px; }
.section-heading p { margin: 0; font-size: 13px; }
.disclosure { font-size: 11px !important; color: #73501c !important; }
footer { border-top: 1px solid var(--line); padding: 20px 0 30px; color: var(--muted); font-size: 12px; }
@media (max-width: 680px) {
  .header-inner, main, footer { width: min(100% - 24px, 580px); }
  .header-inner { align-items: flex-start; flex-direction: column; padding: 14px 0; gap: 9px; }
  nav { gap: 14px; flex-wrap: wrap; }
  main { padding-top: 22px; }
  .toolbar, .section-heading { align-items: stretch; flex-direction: column; }
  .toolbar select { width: 100%; }
  .card-top { flex-direction: column; gap: 4px; }
  .payload { grid-template-columns: 1fr; gap: 3px; }
  .payload dd { margin-bottom: 9px; }
  .form-grid { grid-template-columns: 1fr; gap: 0; }
}
