/*
author: codex
updated_by: gpt-6.2-astra
updated: 2026-11-24
status: draft
tags: [walked, sample-comparison, accessibility]
*/

.shift-lab {
  --lab-ink: #f1f2f6;
  --lab-muted: #b0b5c3;
  --lab-accent: #b4b6ff;
  --lab-line: #343b4d;
  min-width: 0;
  margin-top: 44px;
  padding: 24px 16px;
  border: 1px solid #2b3040;
  border-radius: 24px;
  background: #11141c;
  color: var(--lab-ink);
  font-family: Manrope, Inter, system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  font-variant-numeric: tabular-nums;
}

.shift-lab *, .shift-lab *::before, .shift-lab *::after { box-sizing: border-box; }
.shift-lab [hidden] { display: none !important; }
.shift-lab p, .shift-lab h3 { margin: 0; }
.shift-lab p { color: var(--lab-muted); }
.shift-lab button, .shift-lab input { font: inherit; }
.shift-lab :is(button, input):focus-visible { outline: 2px solid var(--lab-accent); outline-offset: 5px; }
.shift-lab__sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shift-lab__toolbar { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; justify-content: space-between; }
.shift-lab__context { display: grid; gap: 3px; }
.shift-lab__context strong { font-size: 16px; font-weight: 600; }
.shift-lab__context span { font-size: 14px; color: var(--lab-muted); }
.shift-lab__mode { display: flex; flex: 0 0 auto; width: max-content; max-width: 100%; min-width: 0; margin: 0; padding: 4px; border: 1px solid var(--lab-line); border-radius: 999px; background: #0b0d12; }
.shift-lab__mode legend { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shift-lab__mode label { position: relative; min-width: 0; flex: 0 0 auto; }
.shift-lab__mode input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shift-lab__mode span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 17px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--lab-muted); cursor: pointer; white-space: nowrap; transition: background-color 180ms, color 180ms; }
.shift-lab__mode input:checked + span { color: #111225; background: var(--lab-accent); }
.shift-lab__mode input:focus-visible + span { outline: 2px solid var(--lab-accent); outline-offset: 5px; }
.shift-lab__columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 28px; }
.shift-lab__column { min-width: 0; }
.shift-lab__choices { min-width: 0; padding: 0; margin: 0; border: 0; }
.shift-lab__choices legend { padding: 0; margin: 0 0 9px; color: var(--lab-muted); font-size: 14px; }
.shift-lab__chips { display: flex; flex-wrap: wrap; gap: 4px; }
.shift-lab__chips label { position: relative; flex: 1 0 44px; min-width: 44px; }
.shift-lab__chips input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.shift-lab__chips span { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 4px; border: 1px solid #566078; border-radius: 10px; color: var(--lab-ink); font-size: 14px; font-weight: 550; cursor: pointer; transition: background-color 180ms, border-color 180ms, color 180ms; }
.shift-lab__chips input:checked + span { border-color: var(--lab-accent); background: #282b43; color: #e0e1ff; }
.shift-lab__chips input:disabled + span { color: #949bab; border-color: #343b4d; cursor: not-allowed; }
.shift-lab__chips input:focus-visible + span { outline: 2px solid var(--lab-accent); outline-offset: 3px; }
.shift-lab__chips label:has(input:not(:disabled)):hover span { border-color: var(--lab-accent); }
.shift-lab__name { font-size: 18px; font-weight: 600; letter-spacing: -.025em; line-height: 1.25; }
.shift-lab[data-ready="true"] .shift-lab__name { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.shift-lab__metric { margin-top: 24px; }
.shift-lab__amount { display: block; font-size: clamp(29px, 4.2vw, 62px); font-weight: 500; line-height: 1.14; letter-spacing: -.065em; color: var(--lab-ink); }
.shift-lab__unit { display: block; margin-top: 7px; color: var(--lab-muted); font-size: 14px; }
.shift-lab__detail { margin-top: 13px !important; font-size: 14px; }
.shift-lab__chart { display: block; width: 100%; height: 166px; overflow: hidden; contain: paint; margin-top: 8px; }
.shift-lab__baseline { stroke: #697287; stroke-width: 1; vector-effect: non-scaling-stroke; }
.shift-lab__bar, .shift-lab__gloss { transition: height 280ms cubic-bezier(.22, 1, .36, 1), y 280ms cubic-bezier(.22, 1, .36, 1); }
.shift-lab__tone-top { stop-color: #a7b1c6; }
.shift-lab__tone-middle { stop-color: #6f7c97; }
.shift-lab__tone-bottom { stop-color: #4d5971; }
.shift-lab__column[data-winner="true"] .shift-lab__tone-top { stop-color: #d5d6ff; }
.shift-lab__column[data-winner="true"] .shift-lab__tone-middle { stop-color: #b4b6ff; }
.shift-lab__column[data-winner="true"] .shift-lab__tone-bottom { stop-color: #7e83cb; }
.shift-lab__gloss { pointer-events: none; }
.shift-lab__result { display: block; min-height: 21px; margin-top: 10px; font-size: 14px; color: var(--lab-muted); }
.shift-lab__column[data-winner="true"] .shift-lab__result { color: var(--lab-accent); }
.shift-lab__hours { margin-top: 28px; }
.shift-lab__hours-heading { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 8px; }
.shift-lab__hours-heading label { font-size: 14px; color: var(--lab-muted); }
.shift-lab__hours-heading output { font-size: 16px; font-weight: 650; color: var(--lab-ink); }
.shift-lab input[type="range"] { display: block; width: 100%; height: 44px; padding: 0; margin: 4px 0 0; background: transparent; accent-color: var(--lab-accent); cursor: pointer; }
.shift-lab input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 6px; background: #697287; }
.shift-lab input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -8px; border: 3px solid #11141c; border-radius: 50%; background: var(--lab-accent); box-shadow: 0 0 0 1px var(--lab-accent); }
.shift-lab input[type="range"] { -webkit-appearance: none; appearance: none; }
.shift-lab input[type="range"]::-moz-range-track { height: 6px; border-radius: 6px; background: #697287; }
.shift-lab input[type="range"]::-moz-range-thumb { width: 16px; height: 16px; border: 3px solid #11141c; border-radius: 50%; background: var(--lab-accent); box-shadow: 0 0 0 1px var(--lab-accent); }
.shift-lab__instruction { margin-top: 20px !important; max-width: 58ch; font-size: 14px; }
.shift-lab__footer { margin-top: 25px; padding-top: 23px; border-top: 1px solid var(--lab-line); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.shift-lab__summary { max-width: 42ch; font-size: clamp(18px, 2.1vw, 25px); line-height: 1.4; font-weight: 500; letter-spacing: -.03em; color: var(--lab-ink) !important; }
.shift-lab__reset { min-height: 44px; padding: 9px 16px; border: 1px solid #697287; border-radius: 999px; background: transparent; color: var(--lab-ink); font-size: 14px; white-space: nowrap; cursor: pointer; transition: background-color 180ms; }
.shift-lab__reset:hover { background: #252b3a; }
.shift-lab__disclosure { margin-top: 18px !important; font-size: 14px; }

@media (max-width: 639px) {
  .shift-lab { padding-top: 20px; padding-bottom: 20px; }
  .shift-lab__context span { display: none; }
  .shift-lab__toolbar { gap: 12px; }
  .shift-lab__mode span { padding: 0 13px; }
  .shift-lab__columns { margin-top: 22px; }
  .shift-lab__metric { margin-top: 18px; }
  .shift-lab__chart { height: 136px; }
  .shift-lab__hours { margin-top: 15px; }
  .shift-lab__instruction { margin-top: 12px !important; }
  .shift-lab__footer { margin-top: 18px; padding-top: 18px; }
  .shift-lab__disclosure { margin-top: 13px !important; }
}

@media (min-width: 640px) {
  .shift-lab { padding: 32px; }
  .shift-lab__columns { gap: 48px; margin-top: 36px; }
  .shift-lab__metric { margin-top: 30px; }
  .shift-lab__amount { font-size: clamp(42px, 5.2vw, 66px); }
  .shift-lab__chart { height: 220px; }
  .shift-lab__chips { gap: 8px; }
  .shift-lab__chips span { min-height: 48px; }
}

@media (min-width: 1024px) {
  .shift-lab { padding: 38px 48px 30px; }
  .shift-lab__columns { gap: 88px; }
  .shift-lab__chart { height: 240px; }
  .shift-lab__metric { margin-top: 34px; }
}

html[data-motion="off"] .shift-lab *,
html[data-motion="off"] .shift-lab *::before,
html[data-motion="off"] .shift-lab *::after { transition: none !important; animation: none !important; }

@media (prefers-reduced-motion: reduce) {
  .shift-lab *, .shift-lab *::before, .shift-lab *::after { transition: none !important; animation: none !important; }
}

@media (forced-colors: active) {
  .shift-lab { border-color: CanvasText; }
  .shift-lab__bar { fill: GrayText; }
  .shift-lab__column[data-winner="true"] .shift-lab__bar { fill: Highlight; }
  .shift-lab__gloss { display: none; }
  .shift-lab__chips input:checked + span { outline: 2px solid Highlight; }
  .shift-lab__mode input:checked + span { outline: 2px solid Highlight; }
  .shift-lab__baseline { stroke: CanvasText; }
}
