:root {
  color-scheme: light;
  font-family: "Instrument Sans", "Segoe UI", sans-serif;
  color: #162a32;
  background: #ecf2f0;
  --line: #cddbd8;
  --green: #096458;
  --muted: #465d63;
}
* { box-sizing: border-box; }
body { margin: 0; }
main { max-width: 1440px; margin: auto; padding: clamp(12px, 3vw, 44px); }
header { background: #102933; color: #eefbf7; border-radius: 24px; padding: clamp(20px, 4vw, 52px); }
.top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.top a { color: #adf2dc; }
.eyebrow { color: #adf2dc; font-size: .9rem; font-weight: 700; }
h1 { font-size: clamp(2rem, 5.5vw, 4.5rem); line-height: 1.02; letter-spacing: -.045em; margin: .2em 0; }
h2 { font-size: 1.35rem; margin: 0 0 .4em; }
p { margin: .45em 0; line-height: 1.48; }
nav, #controls, #references, #legend, .source-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
nav { margin: 20px 0; }
button, select, textarea { font: inherit; }
button, select { border: 1px solid var(--line); border-radius: 9px; padding: 8px 12px; min-height: 40px; background: white; color: inherit; }
button, summary { cursor: pointer; }
button[aria-pressed="true"], button.primary { background: var(--green); color: white; border-color: var(--green); }
button:disabled { opacity: .5; cursor: default; }
button:focus-visible, select:focus-visible, summary:focus-visible, canvas:focus-visible, a:focus-visible { outline: 3px solid #218dba; outline-offset: 3px; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.viewer, .work, .source { background: white; border: 1px solid var(--line); border-radius: 18px; }
.viewer { position: sticky; top: 12px; overflow: hidden; }
.pad, .work, .source { padding: clamp(12px, 2vw, 22px); }
#scene-description { color: var(--muted); }
.stage { position: relative; background: #10232d; color: #daf1ed; }
#model { display: block; width: 100%; height: clamp(260px, 34vw, 440px); touch-action: none; cursor: grab; }
#model.plot { touch-action: auto; cursor: default; }
#camera-hint { position: absolute; bottom: 8px; left: 12px; font-size: .76rem; pointer-events: none; }
#controls label, .source-tools label { display: inline-flex; align-items: center; gap: 7px; flex-wrap: wrap; }
#controls .range { flex: 1 1 180px; }
input[type="range"] { accent-color: var(--green); flex: 1; min-width: 85px; }
#measurements { display: block; margin-top: 12px; font-variant-numeric: tabular-nums; font-weight: 650; line-height: 1.55; }
#legend { color: var(--muted); margin-top: 7px; font-size: .86rem; }
.key { display: inline-flex; align-items: center; gap: 6px; padding: 3px 6px; }
.key i { width: 12px; height: 12px; border: 1px solid #536666; border-radius: 3px; }
#references { margin: 12px 0; }
#references button { font-size: .83rem; }
.question { border-top: 1px solid var(--line); padding: 13px 0; }
.question label { display: block; font-weight: 650; margin-bottom: 7px; }
textarea { display: block; width: 100%; resize: vertical; min-height: 58px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.question details { color: var(--green); margin-top: 7px; }
.question details p { color: #243940; white-space: pre-wrap; }
.source { margin-top: 20px; }
.source summary { font-weight: 700; }
.source-tools { margin: 14px 0; }
.paper { position: relative; max-width: 1050px; margin: auto; }
.paper img { width: 100%; height: auto; display: block; }
#ink-layer { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
#ink-layer.active { pointer-events: auto; touch-action: none; cursor: crosshair; }
@media (max-width: 820px) { .workspace { grid-template-columns: minmax(0, 1fr); } .viewer { position: static; } }

