:root {
  --paper: #f4f7f5;
  --white: #fff;
  --ink: #1b2a25;
  --muted: #536660;
  --line: #d4e0da;
  --green: #15513b;
  --accent: #e0f3e8;
  font-family: Inter, "Helvetica Neue", system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
button, textarea, select { font: inherit; }
button:focus-visible, textarea:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 3px solid #288262;
  outline-offset: 3px;
}
.shell { width: min(1040px, calc(100% - 40px)); margin: 0 auto; }
.masthead { border-bottom: 1px solid var(--line); background: var(--white); }
.masthead-inner { min-height: 70px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.brand { color: #173a2c; font-size: 1.65rem; font-weight: 850; letter-spacing: -.09em; }
.brand span { color: #22714e; }
.brand .brand-dot { margin-left: 2px; }
.environment { display: inline-flex; align-items: center; gap: 8px; font-size: .85rem; color: var(--green); }
.environment i { width: 8px; height: 8px; border-radius: 50%; background: #26825a; }
main { padding: 49px 0 64px; }
.intro { margin-bottom: 30px; }
h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); line-height: 1.08; font-weight: 730; letter-spacing: -.065em; }
.intro p { margin-top: 12px; color: var(--muted); font-size: 1.07rem; line-height: 1.6; }
.layout { display: grid; grid-template-columns: 1.08fr .92fr; gap: 18px; }
.card { min-width: 0; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 15px; }
h2 { font-size: 1.15rem; letter-spacing: -.025em; }
.count, .hint { color: var(--muted); font-size: .83rem; line-height: 1.55; }
.count { white-space: nowrap; font-variant-numeric: tabular-nums; }
textarea, select { width: 100%; padding: 13px 14px; border: 1px solid #b8cac0; border-radius: 10px; background: #fbfdfb; color: var(--ink); line-height: 1.45; }
textarea { display: block; resize: vertical; }
textarea::placeholder { color: #576b63; }
#sample { min-height: 167px; }
.composer .hint { margin-top: 9px; }
.actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 15px; }
button { min-height: 42px; border-radius: 9px; padding: 8px 14px; border: 1px solid transparent; cursor: pointer; font-weight: 650; }
button:disabled { cursor: default; opacity: .56; }
.primary { background: var(--green); color: var(--white); }
.primary:hover:not(:disabled) { background: #0f3d2c; }
.primary span, .secondary span { margin-left: 6px; }
.plain { background: transparent; color: var(--green); }
.plain:hover { background: #edf5ef; }
.secondary { color: var(--green); background: var(--accent); border-color: #b8dbc7; }
.secondary:hover:not(:disabled) { background: #d0ebdc; }
.error { color: #93282d; margin-top: 12px; font-size: .9rem; }
.decision { background: #fbfdfb; }
.decision-content { display: grid; min-height: 230px; }
.empty { align-self: center; color: var(--muted); line-height: 1.6; max-width: 23ch; }
.empty-icon { display: grid; place-items: center; width: 35px; height: 35px; background: #e9f3ec; color: var(--green); border-radius: 50%; font-size: 1.3rem; margin-bottom: 12px; }
.verdict { display: inline-flex; font-size: .95rem; font-weight: 720; border-radius: 7px; padding: 7px 10px; }
.verdict.publish { color: #15513b; background: #dff2e7; }
.verdict.review { color: #704713; background: #f9ecd4; }
.verdict.block { color: #85292e; background: #fbe3e3; }
.reason { line-height: 1.5; margin-top: 14px; }
.metadata { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 7px 13px; font-size: .85rem; line-height: 1.4; padding-top: 12px; border-top: 1px solid var(--line); }
.metadata dt { color: var(--muted); }
.metadata dd { margin: 0; overflow-wrap: anywhere; }
details { margin: 11px 0; font-size: .85rem; color: var(--green); }
summary { cursor: pointer; }
details ul { padding-left: 20px; color: var(--ink); overflow-wrap: anywhere; }
.version { overflow-wrap: anywhere; }
.review { grid-column: 1 / -1; }
.review > .hint { margin-top: 7px; }
fieldset { border: 0; margin: 15px 0 0; padding: 0; min-inline-size: 0; }
fieldset:disabled :is(select, textarea) { opacity: .68; }
.review-fields { display: grid; grid-template-columns: minmax(150px, 230px) 1fr; align-items: start; gap: 12px; }
.sr-only { position: absolute; height: 1px; width: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

@media (max-width: 710px) {
  main { padding-top: 34px; }
  .layout, .review-fields { grid-template-columns: 1fr; }
  .card { padding: 19px; }
  .decision-content { min-height: 132px; }
}
