#value {
  color-scheme: dark;
  line-height: normal;
  --bg: #161719;
  --fg: #f5f2e9;
  --muted: #b6b5b1;
  --line: #45464a;
  --accent: #ddbc80;
}
#value * {
  box-sizing: border-box;
}
#value {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font-family: "Helvetica Neue", "Hiragino Sans", sans-serif;
}
#value button,
#value a,
#value input {
  font: inherit;
  color: inherit;
}
#value button,
#value a {
  -webkit-tap-highlight-color: transparent;
}
#value button {
  cursor: pointer;
}
#value .board {
  max-width: 1700px;
  min-height: 680px;
  height: calc(100svh - 94px);
  margin: auto;
  padding: 20px 4.5% 12px;
  display: grid;
  grid-template-columns: minmax(0, 2.1fr) minmax(290px, 0.9fr);
  grid-template-rows: auto 1fr 36px;
  column-gap: 4%;
}
#value #headline {
  grid-column: 1/-1;
  white-space: pre-line;
  font-size: clamp(38px, 3.8vw, 62px);
  line-height: 1.3;
  font-weight: 400;
  letter-spacing: -0.05em;
  margin: 20px 0 12px;
}
#value .story {
  align-self: center;
  min-width: 0;
}
#value .stage {
  position: relative;
  height: clamp(240px, calc(100svh - 406px), 558px);
  overflow: hidden;
}
#value .frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
#value .frame:not(:first-child) {
  opacity: 0;
}
body[data-page="support"] #value p {
  font-weight: 400;
}
#value .transport {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-top: 8px;
}
#value output {
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  min-width: 70px;
}
#value .buttons {
  display: flex;
  gap: 18px;
}
#value .buttons button {
  padding: 6px 0;
  border: 0;
  background: transparent;
  font-size: 11px;
  color: var(--muted);
}
#value .buttons button:disabled {
  opacity: 0.4;
  cursor: default;
}
#value input[type="range"] {
  display: block;
  width: 100%;
  height: 17px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  cursor: ew-resize;
}
#value .ticks {
  position: relative;
  height: 14px;
  font-size: 10px;
  color: var(--muted);
}
#value .ticks span {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
}
#value .ticks span:first-child {
  transform: none;
}
#value .ticks span:last-child {
  transform: translateX(-100%);
}
#value .numbers {
  min-width: 0;
  align-self: center;
  font-variant-numeric: tabular-nums;
  /* Preserve the approved counter anchor as supporting rows leave the layout. */
  padding-bottom: 146px;
}
#value .context {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  margin: 0 0 8px;
}
#value .subject {
  margin: 0;
  font-size: 18px;
}
#value .big {
  display: flex;
  gap: 5px;
  align-items: baseline;
  color: var(--accent);
  white-space: nowrap;
  margin: 15px 0 0;
}
#value .big > span {
  font-size: 24px;
}
#value .big strong {
  font-size: clamp(48px, 4.6vw, 72px);
  font-weight: 400;
  line-height: 1.15;
}
#value .big .fraction {
  font-size: 24px;
}
#value .big .unit {
  font-size: 20px;
}
#value .tail {
  min-height: 16px;
  font-size: 10px;
  color: var(--muted);
  margin: 4px 0 0;
  text-align: right;
}
#value .tail[hidden] {
  display: block;
  visibility: hidden;
}
#value .outcomes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 18px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
#value .outcome-icons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
#value .outcome {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  white-space: nowrap;
}
#value .outcome svg {
  display: block;
  width: 43px;
  height: 36px;
  fill: none;
  stroke: var(--muted);
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
#value .basis {
  font-size: 9px;
  line-height: 1.5;
  color: var(--muted);
  margin: 22px 0 0;
}
#value footer {
  grid-column: 1/-1;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}
#value footer button {
  background: transparent;
  color: var(--muted);
  border: 0;
  width: 40px;
  height: 36px;
  font-size: 25px;
  line-height: 1;
}
#value button:focus-visible,
#value a:focus-visible,
#value input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 4px;
}
#value dialog {
  padding: 0;
  width: min(680px, calc(100% - 24px));
  max-height: 85svh;
  background: var(--bg);
  color: var(--fg);
  border: 1px solid var(--line);
}
#value dialog::backdrop {
  background: #000b;
}
#value .notes-top {
  position: sticky;
  top: 0;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 22px;
}
#value .notes-top h2 {
  font-size: 18px;
  margin: 0;
}
#value .notes-top button {
  padding: 10px;
  border: 1px solid var(--line);
  background: transparent;
}
#value article {
  padding: 0 22px 24px;
  font-size: 14px;
  line-height: 1.8;
}
#value article h3 {
  font-size: 16px;
  margin-top: 24px;
}
#value article a {
  text-underline-offset: 4px;
}
@media (max-width: 760px) {
  #value .board {
    display: block;
    height: auto;
    min-height: 0;
    padding: 14px 20px 0;
  }
  #value #headline {
    font-size: clamp(24px, 7.4vw, 31px);
    margin: 18px 0 10px;
    line-height: 1.35;
  }
  #value .stage {
    height: auto;
    aspect-ratio: 3/2;
    margin: 0 -20px;
  }
  #value .transport {
    margin-top: 2px;
  }
  #value output {
    font-size: 14px;
  }
  #value .buttons {
    gap: 20px;
  }
  #value .buttons button {
    font-size: 10px;
  }
  #value .ticks {
    font-size: 9px;
  }
  #value .numbers {
    margin-top: 16px;
    padding-bottom: 12px;
  }
  #value .context {
    font-size: 10px;
    margin-bottom: 5px;
  }
  #value .subject {
    font-size: 14px;
  }
  #value .big {
    margin-top: 8px;
  }
  #value .big strong {
    font-size: 48px;
  }
  #value .big > span,
  #value .big .fraction {
    font-size: 20px;
  }
  #value .big .unit {
    font-size: 17px;
  }
  #value .tail {
    font-size: 9px;
    min-height: 12px;
    margin-top: 0;
  }
  #value .basis {
    margin-top: 12px;
    font-size: 8px;
  }
  #value .outcomes {
    margin-top: 10px;
    padding-top: 7px;
    gap: 10px;
  }
  #value .outcome {
    gap: 2px;
    font-size: 9px;
  }
  #value .outcome svg {
    width: 34px;
    height: 28px;
  }
  #value footer {
    height: 36px;
  }
}
