:root { color-scheme: light; --ink: #172334; --muted: #58687a; --line: #dce3ea; --accent: #087b91; }
* { box-sizing: border-box; }
body { margin: 0; background: #f5f7fa; color: var(--ink); font: 15px/1.65 system-ui, sans-serif; }
header, main, footer { width: min(1520px, calc(100% - 48px)); margin: auto; }
header { padding: 36px 0 20px; }
a { color: var(--accent); text-underline-offset: 3px; }
.back { font-weight: 650; text-decoration: none; }
.badge { float: right; color: var(--muted); font-size: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 4px 12px; }
h1 { margin: 26px 0 8px; font-size: clamp(30px, 4vw, 52px); line-height: 1.15; letter-spacing: -.04em; }
header p { color: var(--muted); margin: 0; }
h2 { font-size: 21px; letter-spacing: -.025em; margin: 0; }
.toolbar { display: flex; flex-direction: column; gap: 8px; align-items: stretch; align-self: stretch; min-width: 0; padding: 10px; background: white; border: 1px solid var(--line); border-radius: 14px; }
.toolbar h2 { font-size: 17px; margin: 0 0 4px; }
.toolbar select, .toolbar input[type=range] { width: 100%; min-width: 0; }
label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; font-weight: 650; }
select, button { min-height: 34px; border: 1px solid #bbc9d6; border-radius: 7px; background: white; color: var(--ink); padding: 5px 8px; font: inherit; }
button { cursor: pointer; font-size: 13px; font-weight: 600; }
button:hover { background: #eaf5f7; }
input[type=range] { min-height: 26px; width: 100px; accent-color: var(--accent); }
.check { flex-direction: row; align-items: center; height: 40px; }
:focus-visible { outline: 3px solid #087b91; outline-offset: 4px; }
#status { margin: 0; font-size: 11px; line-height: 1.4; color: var(--muted); overflow-wrap: anywhere; }
.embedded #status.status-ready { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.instructions { color: var(--muted); font-size: 13px; margin: 0 0 16px; }
.viewers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)) 150px; gap: 10px; align-items: start; }
.viewer { position: relative; min-width: 0; overflow: hidden; border: 1px solid #26374a; border-radius: 14px; background: #101a28; color: #ecf2f8; }
.viewer-heading { display: flex; align-items: center; padding: 6px 10px; height: 40px; border-bottom: 1px solid #293748; }
.viewer-heading h2 { font-size: 16px; line-height: 1.2; }
.viewer-heading small { font-size: 12px; font-weight: 400; color: #b8c8d8; }
.viewer-heading > span { font-size: 12px; color: #d2dfeb; }
canvas { display: block; width: 100%; height: clamp(310px, 30vw, 460px); touch-action: none; cursor: grab; }
canvas:active { cursor: grabbing; }
.cloud-count { position: absolute; bottom: 0; left: 0; right: 0; margin: 0; padding: 4px 8px; font-size: 10px; line-height: 1.4; color: #bbcbdc; background: rgba(16,26,40,.85); pointer-events: none; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 7px; }
.lingbot { background: #cf791b; }.anchor { background: #07889d; }.gt { background: #dc2626; }
.trajectory-viewer { background: white; color: var(--ink); border-color: var(--line); }
.trajectory-viewer .viewer-heading, .trajectory-viewer .cloud-count { border-color: var(--line); }
.trajectory-viewer .viewer-heading > span, .trajectory-viewer .cloud-count { color: var(--muted); }
.trajectory-viewer .cloud-count { background: rgba(255,255,255,.9); }
.trajectory-legend { position: absolute; top: 46px; right: 6px; z-index: 1; padding: 4px 6px; border: 1px solid #e4e9ef; border-radius: 6px; background: rgba(255,255,255,.92); font-size: 10px; line-height: 1.6; pointer-events: none; }
.trajectory-legend > div { display: flex; justify-content: space-between; gap: 10px; }
.trajectory-legend .dot { width: 7px; height: 7px; margin-right: 5px; }
.notice { background: #fff9ed; border: 1px solid #e4d8b4; border-radius: 12px; padding: 18px 22px; margin: 8px 0 30px; font-size: 13px; }
.notice p { margin: 8px 0 0; }
.plot-section { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 26px; margin: 22px 0; }
.section-heading { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.section-heading a { font-size: 13px; }
.plot-section p { color: var(--muted); font-size: 13px; }
.plot-section img { width: 100%; height: auto; display: block; }
.table-scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; white-space: nowrap; font-size: 13px; margin: 16px 0; text-align: left; }
th, td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-size: 12px; }
footer { padding: 20px 0 40px; font-size: 13px; color: var(--muted); }
.embedded body { background: transparent; }
.embedded main { width: 100%; }
.embedded .sequence-control { display: none; }
.embedded header, .embedded footer, .embedded .plot-section { display: none; }
.embedded canvas { height: 340px; }
.embedded .instructions { display: none; }
@media (max-width: 800px) {
  header, main, footer { width: calc(100% - 24px); }
  .badge { display: none; }
  .viewers { grid-template-columns: 1fr; }
  canvas { height: 360px; }
  .toolbar { padding: 14px; gap: 10px; }
  .plot-section { padding: 16px; }
  .embedded main { width: 100%; }
  .embedded canvas { height: 340px; }
}
