:root {
  color-scheme: light;
  --ink: #172b2a;
  --muted: #526663;
  --teal: #155b50;
  --line: #cdd8d2;
  --paper: #f5f5ed;
  font-family: "Inter", "Arial", sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
}
* { box-sizing: border-box; }
body { margin: 0; }
a { color: var(--teal); text-underline-offset: .18em; }
p { margin: .5rem 0 1rem; }
h1, h2, h3 { line-height: 1.15; }
h1 { font-family: "Georgia", serif; font-weight: 500; letter-spacing: -.038em; font-size: clamp(2.1rem, 6vw, 3.7rem); margin: .2em 0 .55em; }
h2 { font-size: 1.24rem; margin: .15em 0 .85em; }
h3 { font-size: 1rem; margin: 1.4rem 0 .55rem; }
.shell { width: min(1080px, calc(100% - 3rem)); margin-inline: auto; }
main.shell { padding-block: 2.5rem 5rem; }
.mast { background: #163b36; color: #fff; }
.top, nav, .brand, .heading, .row, .meta { display: flex; align-items: center; }
.top { min-height: 4.25rem; justify-content: space-between; gap: .8rem 2rem; flex-wrap: wrap; }
.brand { gap: .7rem; font-size: 1.1rem; font-weight: 700; }
.brand, nav a { color: #fff; text-decoration: none; }
.mark { width: 1.65rem; height: 1.65rem; display: grid; place-items: center; background: #bde4b0; color: #163b36; border-radius: .28rem; font-family: Georgia, serif; }
nav { flex-wrap: wrap; gap: .15rem .8rem; }
nav a, .nav-exit { padding: .6rem .25rem; font-size: .94rem; }
nav a[aria-current] { text-decoration: underline; text-underline-offset: .34em; }
.nav-exit { border: 0; color: #c3dbd1; background: transparent; margin: 0; }
.demo, .overline { color: var(--muted); font-size: .84rem; }
.demo { margin: 0 0 1.4rem; padding-left: .65rem; border-left: 3px solid #749e76; }
.overline { margin: 0; }
.heading { justify-content: space-between; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.35rem; }
.heading h1 { margin-bottom: .12em; }
.card, .rows { background: #fffefa; border: 1px solid var(--line); border-radius: .75rem; }
.card { padding: clamp(1rem, 3vw, 1.8rem); margin-bottom: 1.25rem; }
.narrow { max-width: 28rem; margin: 5vh auto; }
.narrow h1 { font-size: 2.1rem; }
.form-card { max-width: 47rem; }
.queue-section { margin: 2rem 0; }
.queue-section h2 { display: flex; align-items: center; gap: .5rem; }
.count { color: var(--muted); font-size: .88rem; font-weight: 500; }
.row { gap: .8rem; padding: .9rem 1.15rem; text-decoration: none; color: var(--ink); overflow-wrap: anywhere; }
.row + .row { border-top: 1px solid var(--line); }
.row > :first-child { flex: 1; }
.row strong { display: block; }
.row .muted { font-size: .9rem; }
.row:hover { background: #eff5ed; }
.arrow { color: var(--muted); }
.status { border-radius: 3rem; background: #e9ece7; color: #354641; padding: .2rem .66rem; font-size: .82rem; font-weight: 600; }
.status.draft, .status.generate { background: #dff0d9; color: #25502d; }
.status.error, .status.uncertain { background: #fae5d1; color: #854518; }
.status.waiting { background: #e0eaf3; color: #34556b; }
.back { display: inline-block; margin: 0 0 .7rem; }
.source { display: flex; flex-wrap: wrap; gap: .9rem 2.8rem; border-block: 1px solid var(--line); padding: 1rem 0; margin-bottom: 1.4rem; overflow-wrap: anywhere; }
.source h2, .meta, .hint, .muted, .demo { color: var(--muted); }
.source h2 { font-size: .86rem; margin: 0 0 .25rem; }
.columns { display: grid; grid-template-columns: 1.05fr 1fr; gap: 1rem; align-items: start; }
.columns > * { min-width: 0; }
.decision { border-top: 3px solid #759677; }
.message { background: #f1f4ed; border-radius: .6rem; padding: .75rem 1rem; margin-bottom: .7rem; max-width: 92%; }
.message.out { background: #edf4f2; margin-left: auto; }
.message:target { outline: 2px solid var(--teal); }
.meta { justify-content: space-between; font-size: .82rem; }
.verbatim, blockquote, .choice { white-space: pre-wrap; overflow-wrap: anywhere; }
.message p, dd p { margin: .25rem 0; }
.preview { border-left: 3px solid #70927a; padding: .7rem 1rem; background: #f3f6ef; margin-bottom: .6rem; }
button, .btn, input, textarea { font: inherit; }
button, .btn { border-radius: .45rem; border: 1px solid #91aaa0; background: transparent; color: var(--teal); cursor: pointer; padding: .5rem .85rem; min-height: 2.7rem; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-weight: 600; }
button:hover, .btn:hover { text-decoration: underline; }
.main { background: var(--teal); color: white; border-color: var(--teal); }
.quiet { border-color: transparent; padding-left: 0; color: var(--muted); }
.close { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .4rem; }
label, legend { display: block; font-weight: 600; margin: .85rem 0 .35rem; }
input:not([type=checkbox],[type=hidden]), textarea { width: 100%; display: block; border: 1px solid #8d9e97; background: #fff; color: var(--ink); border-radius: .4rem; padding: .6rem .75rem; margin-bottom: .9rem; }
textarea { resize: vertical; min-height: 5rem; }
[hidden] { display: none !important; }
.hint { font-size: .92rem; }
details { border-top: 1px solid var(--line); margin-top: 1rem; padding-top: .7rem; }
summary { cursor: pointer; color: var(--teal); font-weight: 600; padding: .35rem 0; }
.notice, .error { padding: .65rem .9rem; border-radius: .35rem; background: #e2eedf; }
.error { background: #f8e4d7; color: #743f24; }
.result { margin-top: .5rem; }
blockquote { margin: .55rem 0; border-left: 3px solid #a4b5a8; padding-left: .75rem; }
blockquote a { font-size: .84rem; }
.facts { margin: .5rem 0; }
.facts > div { display: grid; grid-template-columns: minmax(9rem, 32%) 1fr; gap: .7rem; padding: .55rem 0; border-bottom: 1px solid var(--line); }
dd { margin: 0; overflow-wrap: anywhere; }
fieldset { border: 0; padding: 0; margin: .5rem 0 1rem; }
.choice { display: flex; align-items: start; gap: .6rem; font-weight: 400; }
.choice input { margin-top: .45rem; }
.group + .group { border-top: 1px solid var(--line); }
.skip { position: absolute; left: -10000px; }
.skip:focus { left: .5rem; background: white; padding: .5rem; }
:focus-visible { outline: 3px solid #bd721e; outline-offset: 2px; }
@media (max-width: 700px) {
  .shell { width: min(100% - 2rem, 40rem); }
  main.shell { padding-top: 1.4rem; }
  .top { align-items: flex-start; flex-direction: column; gap: 0; padding-block: .75rem .1rem; }
  nav { width: 100%; justify-content: space-between; gap: .15rem; }
  .columns { display: flex; flex-direction: column; gap: 0; }
  .columns > * { width: 100%; }
  .decision { order: -1; }
  .row { gap: .4rem; padding: .75rem; }
  .facts > div { grid-template-columns: minmax(7rem, 42%) 1fr; }
}
