:root { color-scheme: light; color: #192f32; background: #f8faf7; font: 100%/1.5 Inter, system-ui, sans-serif; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; }
header { background: #fff; border-bottom: 1px solid #d7dfda; }
main, nav { width: min(calc(100% - 2rem), 72rem); margin-inline: auto; }
nav, nav span, .panel-head, .selection { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
nav { min-height: 3.6rem; }
a, summary { color: #075e52; text-underline-offset: .2em; }
nav a { text-decoration: none; }
.brand { font-weight: 750; color: #192f32; }
main { padding-block: clamp(1.8rem, 4vw, 3.6rem) 2rem; }
h1, h2, h3, p, figure { margin: 0; }
h1 { font: 500 clamp(2.4rem, 5.2vw, 4.5rem)/1.03 Georgia, serif; max-width: 19ch; letter-spacing: -.045em; }
.intro { max-width: 59ch; margin-block: .9rem 1.5rem; color: #445d58; }
.workbench { display: grid; grid-template-columns: 1.4fr 1fr; align-items: start; gap: 1rem; }
.operator, .agent { min-width: 0; overflow: hidden; border-radius: .7rem; }
.operator { background: white; border: 1px solid #cedad4; }
.agent { color: #ecfaf5; background: #142f30; padding: 0 1.25rem 1.2rem; }
.panel-head { min-height: 3.2rem; padding: .7rem 1rem; }
.agent .panel-head { padding-inline: 0; border-bottom: 1px solid #43605e; }
.panel-head h2, #outcome h2 { font-size: 1.15rem; }
.panel-head span, .revision { font-size: .8rem; }
.panel-head span { color: #48615c; }
.camera { position: relative; }
img { width: 100%; height: auto; display: block; }
button { cursor: pointer; font: inherit; }
.camera button { position: absolute; top: 70.33%; translate: -50% -50%; min-width: 44px; min-height: 44px; border: 2px solid white; border-radius: 50%; color: #fff; background: #143432; font-weight: 750; box-shadow: 0 0 0 3px #10392d99; }
.camera [data-pick=A] { left: 40.5%; }
.camera [data-pick=B] { left: 60.375%; }
.camera button[aria-pressed=true] { background: #f5dc6e; color: #152e29; border-color: #1e3832; }
.camera button:hover:enabled { box-shadow: 0 0 0 5px #e7f9efac; }
:focus-visible { outline: 3px solid #4497ef; outline-offset: 3px; }
.selection { flex-wrap: wrap; padding: .8rem 1rem; gap: .2rem .8rem; font-size: .9rem; }
#position, pre, .revision { font-family: ui-monospace, monospace; }
#position { color: #405950; }
.answer { padding: 1.1rem 0 .5rem; }
.revision { color: #acd5c5; }
h3 { font-size: clamp(1.3rem, 2vw, 1.85rem); line-height: 1.2; margin-block: .45rem; }
#explanation { color: #d2e3db; }
.agent-fields { margin: .65rem 0 1rem; border-block: 1px solid #43605e; padding-block: .5rem; font: .85rem/1.5 ui-monospace, monospace; }
.agent-fields div { display: flex; flex-wrap: wrap; gap: .15rem .8rem; padding: .25rem 0; }
.agent-fields dt { color: #acd5c5; }
.agent-fields dd { margin: 0; overflow-wrap: anywhere; }
.agent-actions { display: grid; justify-items: start; gap: .8rem; }
.agent-actions details { width: 100%; min-width: 0; }
.agent summary { color: #bcebd5; }
summary { cursor: pointer; font-weight: 600; }
.primary, #reset { border: 0; border-radius: .35rem; padding: .55rem .8rem; font-weight: 650; }
.primary { background: #c5eed7; color: #14372c; margin-top: .5rem; }
#reset { font-size: .8rem; color: #dcf4e6; background: #284a47; }
pre { white-space: pre-wrap; overflow-wrap: anywhere; background: #e9f1ec; padding: .85rem; font-size: .85rem; }
.agent pre { max-height: 18rem; overflow: auto; color: #d2efe1; background: #0b2224; }
#outcome { margin-block: 1.6rem; }
#distance-label { color: #4a6057; margin: .3rem 0 .8rem; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
figure { background: white; border: 1px solid #cedad4; border-radius: .6rem; overflow: hidden; }
figcaption { padding: .6rem .85rem; }
figcaption strong { display: block; font-size: 1.35rem; }
footer { border-top: 1px solid #cddad2; margin-top: 1.5rem; padding-top: 1rem; font-size: .9rem; }
footer p { max-width: 82ch; margin-top: .6rem; }
@media(max-width: 48rem) {
  .workbench { grid-template-columns: 1fr; }
  .panel-head { min-height: 2.7rem; }
  .intro { margin-bottom: 1rem; }
  nav, nav span { gap: .65rem; }
  nav span { font-size: .85rem; }
}
@media(max-width: 27rem) { .panel-head span { font-size: .71rem; } .results figcaption { padding: .5rem; font-size: .85rem; } }
