:root {
  color-scheme: light;
  --paper: #edf2ec;
  --panel: #fbfdf8;
  --ink: #182e23;
  --muted: #43574a;
  --line: #bdcbbc;
  --accent: #215a42;
  font: 16px/1.55 "Instrument Sans", Inter, system-ui, sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); }
a { color: var(--accent); text-underline-offset: .22em; }
.wrap { width: min(1130px, calc(100% - 3rem)); margin-inline: auto; }
.mast { display: flex; justify-content: space-between; align-items: center; min-height: 62px; border-bottom: 1px solid var(--line); }
.brand { font-weight: 850; color: var(--ink); text-decoration: none; }
.hero { padding: 3.1rem 0 2rem; }
h1, h2 { line-height: 1.08; letter-spacing: -.055em; }
h1 { margin: 0; font-size: clamp(2.65rem, 7vw, 5.25rem); }
.hero p { max-width: 40rem; margin: .8rem 0 0; font-size: 1.12rem; color: var(--muted); }
h2 { margin: 0 0 .6rem; font-size: clamp(1.4rem, 3.5vw, 2rem); }
.card { padding: clamp(1rem, 2.7vw, 1.6rem); border-radius: 10px; border: 1px solid var(--line); background: var(--panel); min-width: 0; }
.incident { display: grid; grid-template-columns: 1fr auto; column-gap: 1rem; align-items: end; margin-bottom: 1rem; }
.incident .muted { grid-column: 1 / -1; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.section-head, .buttons { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.section-head { justify-content: space-between; }
.section-head h2 { margin: 0; }
.muted { margin: .6rem 0 0; font-size: .88rem; color: var(--muted); overflow-wrap: anywhere; }
label { display: block; font-weight: 740; margin: .6rem 0 .2rem; }
input, textarea, select { width: 100%; background: white; color: var(--ink); border: 1px solid #83998a; border-radius: 6px; padding: .55rem .65rem; font: inherit; }
textarea { display: block; resize: vertical; }
button { min-height: 41px; border: 1px solid var(--accent); border-radius: 6px; padding: .45rem .72rem; background: var(--accent); color: white; font-family: inherit; font-size: .88rem; font-weight: 740; cursor: pointer; }
button:disabled { opacity: .55; cursor: default; }
button:not(:disabled):hover { filter: brightness(.9); }
.secondary { background: transparent; color: var(--accent); }
.danger { color: #912f30; border-color: #a45d5d; }
:focus-visible { outline: 3px solid #2f7659; outline-offset: 3px; }
ol { list-style: none; margin: .65rem 0 0; padding: 0; }
li + li { margin-top: .45rem; }
li ol { border-left: 2px solid #a5baaa; margin: .38rem 0 .5rem .68rem; padding-left: .7rem; }
.branch { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: .35rem .65rem; flex-wrap: wrap; text-align: left; padding: .5rem .62rem; color: var(--ink); background: white; border-color: var(--line); overflow-wrap: anywhere; }
.branch[aria-pressed="true"] { border-color: var(--accent); background: #e5f3e4; box-shadow: inset 3px 0 var(--accent); }
.badge { display: inline-block; border-radius: 4px; padding: .12rem .35rem; background: #f4ebd4; color: #563d0c; font-size: .75rem; }
.badge.supported { background: #dcefd6; color: #244921; }
.badge.ruled-out { background: #e9e9e5; color: #454845; }
.editor-actions { margin-top: .8rem; }
.guide { max-width: 48rem; padding: 2.7rem 0 1.85rem; }
.guide p { color: var(--muted); }
footer { border-top: 1px solid var(--line); padding: 1rem 0; font-weight: 750; }
@media (max-width: 730px) {
  .wrap { width: calc(100% - 1.5rem); }
  .hero { padding: 2rem 0 1.4rem; }
  .workspace, .incident { grid-template-columns: 1fr; }
  .incident .buttons { margin-top: .75rem; }
}
