:root {
  color-scheme: light;
  font-family: "Instrument Sans", system-ui, sans-serif;
  background: #f8fafc;
  color: #111827;
  --blue: #185c94;
  --line: #d6e1eb;
  --muted: #43556a;
}

* { box-sizing: border-box; }
body { margin: 0; }
.shell { max-width: 72rem; margin: auto; padding-inline: 1.35rem; }
header { background: white; border-bottom: 1px solid var(--line); }
.bar { display: flex; min-height: 3.5rem; align-items: center; justify-content: space-between; gap: .75rem; }
.brand { font-weight: 800; font-size: 1.03rem; letter-spacing: -.04em; text-decoration: none; color: inherit; }
.brand span, strong { color: var(--blue); }
nav { display: flex; gap: 1rem; }
nav a { font-size: .9rem; text-decoration: none; }
a { color: var(--blue); text-underline-offset: .18em; }
a:hover { text-decoration: underline; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.skip { position: absolute; top: -6rem; left: .8rem; padding: .6rem; background: white; }
.skip:focus { top: .5rem; z-index: 2; }
main { padding-block: 2.1rem 1.6rem; }
h1 { margin: 0; font-size: clamp(2rem, 4.8vw, 3rem); letter-spacing: -.055em; line-height: 1.08; }
h2 { margin: 0; font-size: 1.19rem; letter-spacing: -.025em; }
h3 { margin: 0; font-size: .98rem; }
p { margin: .5rem 0; line-height: 1.5; }
.note, footer { color: var(--muted); font-size: .88rem; line-height: 1.5; }
.work { margin-top: 1.3rem; padding: 1.12rem; border: 1px solid var(--line); border-radius: .55rem; background: white; }
.head { display: flex; align-items: center; flex-wrap: wrap; justify-content: space-between; gap: .5rem; }
#status { padding: .28rem .48rem; background: #e9f2fb; color: #174b77; border-radius: .25rem; font-size: .84rem; font-weight: 650; }
label { display: block; font-size: .87rem; font-weight: 650; margin: .76rem 0 .33rem; }
select { display: block; width: min(100%, 24rem); font: inherit; color: inherit; min-height: 2.55rem; padding: .42rem .6rem; border: 1px solid #9dafc0; border-radius: .27rem; background: white; }
#decision { display: flex; gap: .65rem 1.35rem; flex-wrap: wrap; margin: .85rem 0 1rem; padding: .65rem 0; border-block: 1px solid var(--line); }
dt { font-size: .8rem; color: var(--muted); }
dd { margin: .2rem 0 0; font-weight: 650; }
.workspace { display: grid; grid-template-columns: minmax(13rem, .74fr) minmax(0, 1.6fr); gap: 1rem; }
.evidence { min-width: 0; }
#candidates { display: grid; gap: .42rem; }
.trip { text-align: left; background: white; color: inherit; padding: .48rem .58rem; border: 1px solid var(--line); border-radius: .26rem; font: inherit; cursor: pointer; }
.trip[aria-pressed="true"] { border-color: var(--blue); box-shadow: inset 3px 0 var(--blue); }
.trip span { display: block; font-weight: 650; font-size: .88rem; }
.trip small { color: var(--muted); font-size: .8rem; }
canvas { display: block; width: 100%; height: auto; border: 1px solid var(--line); border-radius: .25rem; }
details { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .58rem; }
summary { cursor: pointer; font-size: .88rem; font-weight: 650; }
pre { overflow: auto; max-height: 16rem; padding: .7rem; border: 1px solid var(--line); font-size: .79rem; }
.scroll { overflow-x: auto; margin-top: .35rem; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { border-bottom: 1px solid var(--line); padding: .49rem .42rem; text-align: left; font-size: .83rem; }
th { font-weight: 650; }
.lower, footer { margin-top: 1.25rem; padding-top: .9rem; border-top: 1px solid var(--line); }

@media (max-width: 45rem) {
  .shell { padding-inline: .86rem; }
  main { padding-block: 1.4rem; }
  .work { padding: .78rem; }
  .workspace { grid-template-columns: 1fr; }
}
