:root {
  color-scheme: light;
  --paper: #f6f7f2;
  --ink: #152c26;
  --accent: #246b50;
  --muted: #53665e;
  --line: #ced8ce;
  --focus: #b48020;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--paper);
}
* { box-sizing: border-box; }
body, h1, figure, p { margin: 0; }
[hidden] { display: none !important; }
button, select { color: inherit; font: inherit; cursor: pointer; touch-action: manipulation; }
button:focus-visible, .task-picker:has(select:focus-visible) { outline: 3px solid var(--focus); outline-offset: 3px; }
main { max-width: 1280px; margin: auto; padding: 36px 28px; }
/* The parent sizes the iframe to its content and owns vertical scrolling. */
html.embedded { overflow: clip; }
.embedded main { padding: 4px 2px 6px; }
.task-bar {
  padding: 14px 0 13px; border-block: 1px solid var(--line);
}
#suite { display: block; margin-bottom: 1px; font-size: 13px; font-weight: 550; color: var(--accent); }
.task-picker { width: fit-content; max-width: 100%; min-height: 44px; position: relative; display: flex; align-items: center; gap: 9px; border-radius: 3px; }
.task-picker:hover { color: var(--accent); }
.task-picker h1 { font-size: clamp(20px, 2.2vw, 30px); line-height: 1.16; letter-spacing: -.035em; font-weight: 650; text-wrap: pretty; }
.task-picker svg { flex: none; width: 19px; color: var(--accent); }
.task-picker select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; background: var(--paper); color: var(--ink); }
.comparison { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(12px, 2vw, 24px); }
figure { min-width: 0; }
figcaption { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 14px 0 8px; }
figcaption strong { font-size: clamp(17px, 1.6vw, 21px); font-weight: 640; letter-spacing: -.025em; }
figcaption > span { font-size: 12px; color: var(--muted); }
.screen {
  position: relative; display: grid; place-items: center; width: 100%; aspect-ratio: 2 / 1;
  border-radius: 5px; overflow: hidden; background: #e9ece6;
}
.screen img, .screen video { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.three-views .screen { aspect-ratio: 1.5; max-height: 420px; }
#poster { z-index: 1; }
.screen.forecast { container-type: size; --forecast-ratio: 2; }
.three-views .screen.forecast { --forecast-ratio: calc(640 / 528); }
.forecast-native {
  position: relative; overflow: hidden; width: min(100cqw, calc(100cqh * var(--forecast-ratio)));
  aspect-ratio: var(--forecast-ratio);
}
.forecast-native .detail-denoise {
  z-index: 2; inset: 0 auto auto 0; width: 600%; max-width: none; height: 100%; object-fit: fill;
  transform: translateX(calc(var(--denoise-index, 0) * -100% / 6));
}
.transport { display: flex; align-items: center; gap: 18px; padding-top: 14px; }
.playback { display: grid; place-items: center; width: 44px; height: 44px; flex: none; padding: 0; border: 1px solid var(--accent); border-radius: 50%; background: var(--accent); color: white; }
.playback:hover { background: #194f3b; }
.playback svg { width: 16px; height: 16px; }
.playback[data-playing="false"] .pause-icon, .playback[data-playing="true"] .play-icon { display: none; }
#timeline { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
#timeline button {
  --progress: 0;
  display: flex; justify-content: center; flex-direction: column; gap: 5px; min-width: 0; min-height: 44px;
  padding: 3px 0; border: 0; background: transparent; color: var(--muted); font-size: 12px; text-align: left; font-variant-numeric: tabular-nums;
}
.track { display: block; overflow: hidden; width: 100%; height: 4px; border-radius: 2px; background: #cbd5cd; }
.track::after { content: ""; display: block; width: 100%; height: 100%; transform: scaleX(var(--progress)); transform-origin: left; background: var(--accent); }
#timeline button[aria-current="step"] { color: #194f3b; font-weight: 700; }
#timeline button[aria-current="step"] .track { background: #a3bca9; }
#timeline button:hover .track { background: #91ad99; }
.legend { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 24px; margin-top: 15px; font-size: 13px; }
.legend > span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; font-weight: 600; }
.key { display: inline-block; width: 12px; height: 12px; margin-right: 3px; border-radius: 2px; }
.key.core { border: 2px solid #ba3d4b; background: #f1c4c6; }
.key.stable { border: 1px solid #22589e; background: #2865b7; }
.key.cached { border: 1px dashed #707477; background: transparent; }
#status { color: var(--muted); font-size: 12px; line-height: 1.5; text-align: center; margin: 6px auto 0; }
#status:empty { display: none; }
@media (max-width: 660px) {
  main { padding: 18px 16px; }
  .task-bar { padding-block: 9px; }
  #suite, figcaption > span { font-size: 12px; }
  .comparison { grid-template-columns: 1fr; gap: 0; }
  figcaption { padding: 10px 0 5px; }
  .screen.observation { aspect-ratio: 2.4 / 1; }
  .three-views .screen.observation { aspect-ratio: 2.15 / 1; }
  .three-views .screen.forecast { aspect-ratio: 640 / 528; max-height: none; }
  .transport { gap: 11px; padding-top: 7px; }
  #timeline { gap: 5px; }
  .legend { gap: 3px 12px; margin-top: 9px; font-size: 12px; }
}
@media (max-width: 410px) {
  .legend { justify-content: flex-start; gap: 2px 12px; }
}

#overview-view { max-width: 1080px; margin: 0 auto; }
#overview-video { position: absolute; width: 1px; height: 1px; pointer-events: none; clip-path: inset(50%); }
.overview-heading {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-top: 1px solid var(--line); padding: 13px 0 12px;
}
.overview-heading h1 { font-size: clamp(20px, 2.25vw, 30px); line-height: 1.18; font-weight: 650; letter-spacing: -.035em; }
.overview-title-row { display: flex; align-items: baseline; gap: clamp(6px, 1vw, 12px); }
#overview-chunk { color: var(--muted); font-size: clamp(12px, 1.1vw, 15px); font-weight: 550; font-variant-numeric: tabular-nums; white-space: nowrap; }
#overview-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px 20px; }
.overview-tile {
  --native-aspect: 2 / 1;
  display: flex; flex-direction: column; align-items: stretch; min-width: 0;
  padding: 0; background: transparent; border: 0; border-radius: 4px; text-align: left;
}
.overview-tile[data-model="edge"] { --native-aspect: 640 / 528; }
.tile-media { display: block; width: 100%; position: relative; overflow: hidden; border-radius: 4px; background: #e6ebe4; aspect-ratio: 2 / 1; }
/* The upper 640 × 360 is the complete wrist view. The detail retains all three cameras. */
.overview-tile[data-model="edge"] .tile-media { aspect-ratio: 16 / 9; }
.tile-native { display: block; position: absolute; inset: 0 0 auto; width: 100%; aspect-ratio: var(--native-aspect); overflow: hidden; }
.tile-still { display: block; width: 100%; height: 100%; position: absolute; inset: 0; pointer-events: none; }
.tile-native canvas { display: block; position: absolute; inset: 0 0 auto; width: 100%; height: auto; pointer-events: none; }
.tile-still { z-index: 1; }
.tile-caption { display: block; width: 100%; padding: 8px 0 0; }
.tile-caption strong { font-size: clamp(14px, 1.55vw, 20px); line-height: 1.22; font-weight: 640; letter-spacing: -.02em; }
#overview-status:not(:empty) { margin-top: 8px; color: var(--muted); font-size: 13px; }
#mechanism-carousel { position: relative; }
#mechanism-pages { margin-inline: 58px; padding: 2px; overflow: clip; touch-action: pan-y pinch-zoom; }
.carousel-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); display: grid; place-items: center;
  width: 50px; height: 50px; padding: 0; border-radius: 50%; border: 1px solid #b7c8bb;
  background: #e5ece4; color: var(--accent);
}
.carousel-arrow:hover, .carousel-arrow:focus-visible { background: #cfdfd0; color: #193e2e; }
.carousel-arrow svg { width: 29px; height: 29px; }
#mechanism-prev { left: 3px; }
#mechanism-next { right: 3px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
@media (max-width: 840px) {
  #mechanism-pages { margin-inline: 0; }
  .carousel-footer { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 6px; margin-top: 12px; }
  .carousel-footer .legend { margin: 0; justify-content: center; }
  .carousel-arrow { position: static; transform: none; width: 46px; height: 46px; }
}
@media (max-width: 660px) {
  .overview-heading { padding: 10px 0; }
  .overview-heading h1 { max-width: 24ch; }
  #overview-grid { gap: 12px 9px; }
  .tile-caption { padding: 5px 0 0; }
}
@media (max-width: 410px) {
  .overview-heading { align-items: flex-start; }
  .overview-heading h1 { font-size: 19px; }
}
@media (max-width: 320px) {
  .overview-heading { gap: 6px; align-items: center; }
  .overview-heading h1 { font-size: 17px; }
}
