/* D2: presentation only, scoped to the two static projects. See DESIGN.md.
   Data series and labeled warning/success states retain their separate meanings. */
body:is(.studio-lab,.studio-desk) { color-scheme:light; font:400 16px/1.65 var(--studio-font); }
body.studio-lab main,body.studio-desk .app { width:min(1160px,calc(100% - 96px)); margin-inline:auto; }
body:is(.studio-lab,.studio-desk) :is(button,input,select,textarea) { font-family:var(--studio-font); }
body:is(.studio-lab,.studio-desk) :is(h1,h2,h3,h4) { font-family:var(--studio-font); font-style:normal; }
body:is(.studio-lab,.studio-desk) .intro h1 { font:600 clamp(48px,5.7vw,72px)/1.05 var(--studio-font); letter-spacing:-.055em; text-wrap:initial; margin:0; }
body:is(.studio-lab,.studio-desk) .intro h1 > span { color:var(--studio-accent); }
body:is(.studio-lab,.studio-desk) .intro .studio-eyebrow { margin:0 0 14px; }
body:is(.studio-lab,.studio-desk) .project-tagline { font-size:21px; line-height:1.45; letter-spacing:-.025em; color:var(--studio-accent); margin:16px 0 0; }
body:is(.studio-lab,.studio-desk) .project-actions { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; width:100%; max-width:420px; }
body:is(.studio-lab,.studio-desk) .project-actions .studio-button { gap:12px; padding-inline:16px; min-width:0; white-space:nowrap; }
body:is(.studio-lab,.studio-desk) .project-secondary { background:transparent; color:var(--studio-accent); border-color:#ba9fd2; }
body:is(.studio-lab,.studio-desk) .project-secondary:hover { color:var(--studio-accent-hover); background:var(--studio-wash); border-color:var(--studio-accent); }
body:is(.studio-lab,.studio-desk) .project-note { color:var(--studio-muted); font-size:14px; line-height:1.6; margin:14px 0 0; }
body:is(.studio-lab,.studio-desk) :is(.site-footer,.project-source) a { text-underline-offset:4px; }
body:is(.studio-lab,.studio-desk) :is(.action,.act,select,input[type='search']) { min-height:48px; border-radius:8px; }
body:is(.studio-lab,.studio-desk) :is(summary,.text-button) { min-height:44px; }
body:is(.studio-lab,.studio-desk) :is(.panel,.intro,.about,.foot)[id] { scroll-margin-top:88px; }

/* Lab: compact identity, clear experiment selection, then the actual visualization. */
body.studio-lab { --mint:var(--studio-accent); }
body.studio-lab .intro { grid-template-columns:minmax(0,1fr) 380px; align-items:end; gap:36px; padding:48px 0 32px; }
body.studio-lab .intro-note { width:100%; max-width:none; justify-self:stretch; }
body.studio-lab .experiments { gap:14px; margin-bottom:24px; }
body.studio-lab .experiment { padding:20px; border-radius:12px; min-height:154px; }
body.studio-lab .experiment.active { background:#322044; border-color:#4b335e; box-shadow:inset 0 0 0 1px #715489; }
body.studio-lab .experiment[aria-pressed='true'] .experiment-top::after { content:'Selected'; font-size:13px; letter-spacing:0; margin-left:auto; }
body.studio-lab .experiment.active :is(.experiment-top,.experiment-description,.experiment-stat) { color:#e6daed; }
body.studio-lab .experiment.active :is(strong,.experiment-arrow,.experiment-name svg) { color:#fffaff; }
body.studio-lab .experiment-top { margin-bottom:12px; letter-spacing:.03em; }
body.studio-lab .experiment strong { font-size:21px; }
body.studio-lab .experiment-description { display:block; margin-top:8px; font-size:14px; line-height:1.5; color:var(--studio-muted); }
body.studio-lab .experiment-stat { font-size:13px; margin-top:auto; padding-top:12px; }
body.studio-lab .experiment-description + .experiment-stat { margin-top:14px; }
body.studio-lab .panel { padding:28px 28px 0; border-radius:14px; }
body.studio-lab .panel-heading { gap:32px; margin-bottom:20px; }
body.studio-lab h2 { font-size:clamp(30px,3.3vw,42px); line-height:1.15; }
body.studio-lab h3 { font-size:22px; line-height:1.3; }
body.studio-lab .freshness { max-width:270px; padding:12px 16px; border:1px solid var(--studio-line); border-radius:8px; background:var(--studio-paper); font-size:13px; line-height:1.65; text-align:left; }
body.studio-lab .scope-note { margin:0 0 20px; font-size:14px; }
body.studio-lab .project-purpose { font-size:16px; line-height:1.6; }
body.studio-lab .insight { border:1px solid var(--studio-line); border-left:3px solid var(--studio-accent); padding:20px; border-radius:12px; margin:20px 0 24px; }
body.studio-lab .power-layout { grid-template-columns:minmax(0,1fr) 250px; gap:20px; padding-bottom:0; margin-bottom:24px; align-items:stretch; }
body.studio-lab .power-main {
  --studio-paper:#2b2c3a; --studio-ink:#fffaff; --studio-line:#62586f; --studio-tint:#363244;
  --studio-accent:#d8b5f5; --studio-accent-hover:#e9d3ff; --accent:#d8b5f5;
  --muted:#d1ccd9; --ink:#fffaff; --line:#62586f; --panel:#222431;
  background:#222431; color:#fffaff; padding:24px; border-radius:12px;
}
body.studio-lab .power-main :is(.label,.phase,.chart-guide,.time-labels,.legend) { color:#d1ccd9; }
body.studio-lab .power-main .chart-heading strong { color:#fffaff; font-size:38px; }
body.studio-lab .power-main .action { background:#e9e0f3; color:#322044; border-color:#e9e0f3; }
body.studio-lab .power-main .action:hover { background:#fffaff; }
body.studio-lab .power-main .segmented { background:#222431; border-color:#62586f; }
body.studio-lab .power-main .segmented button { color:#e6daed; background:transparent; min-height:44px; }
body.studio-lab .power-main .segmented button[aria-pressed='true'] { color:#322044; background:#e9e0f3; border-radius:6px; }
body.studio-lab .power-main :focus-visible { outline-color:#e3c6ff; }
body.studio-lab .power-main #power-slider { height:44px; }
body.studio-lab .power-main .chart-guide { margin-block:12px; font-size:13px; }
body.studio-lab .power-main .chart-controls { gap:12px; }
body.studio-lab .power-main #power-date { color:#e6daed; font-size:13px; }
body.studio-lab #power-chart .power-axis-unit { font-size:13px; }
body.studio-lab .power-aside { padding:24px 20px; border-radius:12px; background:var(--studio-wash); border-color:#d6c6e3; }
body.studio-lab .large-number { color:#322044; font-size:52px; }
body.studio-lab :is(.kpi,.map-frame,.job-card,.function-tile) { border-radius:12px; }
body.studio-lab .kpis { gap:14px; }
body.studio-lab .kpi { border:1px solid var(--studio-line); background:var(--studio-tint); padding:20px; }
body.studio-lab .kpi strong { color:var(--studio-accent); font-size:36px; font-weight:600; }
body.studio-lab :is(.filter-row,.search-label) select,body.studio-lab input[type='search'] { font-size:16px; }
body.studio-lab :is(.job-list,.ranking,.city-trend-scroll) { scrollbar-color:#b49bc9 var(--studio-paper); }
body.studio-lab .rank-row { border-radius:8px; min-height:48px; }
body.studio-lab #city-map .map-water-label { font-style:normal; letter-spacing:.02em; }
body.studio-lab .planet-entry { justify-content:space-between; gap:12px; min-height:64px; padding:16px 20px; margin:32px 0 0; background:var(--studio-wash); border:1px solid var(--studio-line); border-radius:12px; font-size:15px; }
body.studio-lab .planet-entry > span:first-child { font-size:13px; }
body.studio-lab .about { padding:48px 0; }
body.studio-lab .about h2 > span { color:var(--studio-accent); }
body.studio-lab .about > div { gap:48px; }
body.studio-lab .about p { font-size:16px; line-height:1.65; }
body.studio-lab .about .eyebrow { font-size:13px; }
body.studio-lab .build-grid h3 { font-size:18px; }
body.studio-lab .build-grid p { font-size:15px; line-height:1.65; }

/* Desk: the same photo-led hero, purple proof panel and legible work surfaces. */
body.studio-desk { --go-wash:#edf4ee; --go-edge:#bed0c0; }
body.studio-desk .intro { display:grid; grid-template-columns:minmax(0,1fr) 380px; grid-template-areas:'copy image' 'source source'; align-items:center; gap:24px 56px; padding:48px 0 32px; }
body.studio-desk .desk-identity { grid-area:copy; min-width:0; }
body.studio-desk .project-actions { margin-top:24px; }
body.studio-desk .desk-visual { grid-area:image; position:relative; margin:0; aspect-ratio:4 / 3; overflow:hidden; background:#222431; border-radius:14px; border:1px solid #4b335e; }
body.studio-desk .desk-visual img { display:block; width:100%; height:100%; object-fit:cover; object-position:65% 50%; }
body.studio-desk .desk-visual figcaption { position:absolute; inset:auto 0 0; background:linear-gradient(transparent,#17101fe6); color:#fffaff; padding:36px 18px 14px; font-size:13px; line-height:1.5; }
body.studio-desk .source-line { grid-area:source; max-width:none; margin:0; padding-top:18px; border-top:1px solid var(--studio-line); font-size:14px; line-height:1.6; }
body.studio-desk .source-line a { color:var(--studio-accent); }
body.studio-desk .tabs-bar { padding-block:10px; background:var(--studio-paper); }
body.studio-desk .tabs { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:12px; }
body.studio-desk .tab { min-height:48px; border:1px solid var(--studio-line); border-radius:8px; margin:0; padding:10px 16px; background:var(--studio-surface); font-size:15px; line-height:1.4; white-space:nowrap; }
body.studio-desk .tab:hover { background:var(--studio-wash); color:var(--studio-accent); }
body.studio-desk .tab[aria-selected='true'] { background:#322044; border-color:#4b335e; color:#fffaff; }
body.studio-desk .panel { padding:28px 0 48px; scroll-margin-top:88px; }
body.studio-desk .summary { background:#322044; color:#fffaff; border-color:#4b335e; border-radius:14px; padding:28px; }
body.studio-desk .summary :is(.summary-period,.progress) { color:#e6daed; }
body.studio-desk .summary-title { font-size:36px; line-height:1.2; color:#fffaff; }
body.studio-desk .split { margin-top:20px; gap:12px; }
body.studio-desk .split li { padding:12px 16px; border-radius:8px; gap:10px; }
body.studio-desk .split strong { font-size:32px; line-height:1.1; font-weight:600; font-variant-numeric:tabular-nums; letter-spacing:-.04em; }
body.studio-desk .summary .act { background:#e9e0f3; color:#322044; border-color:#e9e0f3; }
body.studio-desk .summary .act:hover { background:#fffaff; }
body.studio-desk .summary .act--quiet { background:transparent; color:#fffaff; border-color:#aa85c5; }
body.studio-desk .summary .text-button { color:#e3c6ff; }
body.studio-desk .summary :focus-visible { outline-color:#e3c6ff; }
body.studio-desk .summary .progress-bar { background:#715489; }
body.studio-desk .summary .progress-bar span { background:#d1e8d5; }
body.studio-desk .summary .done { color:#282331; }
body.studio-desk .summary .done p,body.studio-desk .summary-text { color:#282331; }
body.studio-desk .summary .done .text-button { color:#7043a0; }
body.studio-desk .lane-head h2 { font-size:26px; line-height:1.25; letter-spacing:-.035em; }
body.studio-desk .lane-count { font-size:14px; padding:4px 9px; }
body.studio-desk .lane-list { gap:12px; margin-top:18px; }
body.studio-desk .item { border-radius:12px; }
body.studio-desk .item-title { font-size:18px; }
body.studio-desk .item-line { line-height:1.6; }
body.studio-desk .item-details { font-size:16px; line-height:1.65; }
body.studio-desk .facts { overflow-wrap:anywhere; }
body.studio-desk .panel-intro h2 { font-size:clamp(30px,3.3vw,42px); }
body.studio-desk .panel-intro p { max-width:760px; line-height:1.65; }
body.studio-desk .stage { border-radius:14px; }
body.studio-desk .stage-count { color:var(--studio-accent); font-size:44px; }
body.studio-desk .chart .bar { fill:#b49bc9; }
body.studio-desk .chart .bar--latest { fill:#7043a0; }
body.studio-desk .chart .bar.is-active { fill:#8d65b3; }
body.studio-desk .chart .bar--latest.is-active { fill:#5e338c; }
body.studio-desk .chart .tick { font-size:13px; }
body.studio-desk .numbers { overflow-x:auto; }
body.studio-desk .numbers table { min-width:440px; }
body.studio-desk .figures { gap:14px; }
body.studio-desk .figures strong { color:var(--studio-accent); font-size:36px; }
body.studio-desk .figures li { background:var(--studio-tint); }
body.studio-desk .flow li { border-top:3px solid var(--studio-accent); }
body.studio-desk .flow li::before { display:none; }
body.studio-desk .flow strong { font-size:22px; line-height:1.3; }
body.studio-desk .flow span,body.studio-desk .rules span { line-height:1.65; }
body.studio-desk .foot { grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:40px; padding-block:32px 48px; }
body.studio-desk .foot a { color:var(--studio-accent); }

@media (min-width:761px) and (max-width:1050px) {
 body.studio-lab .intro { grid-template-columns:1fr; gap:24px; }
 body.studio-lab .intro-note { max-width:440px; }
 body.studio-lab .power-layout { grid-template-columns:1fr; }
 body.studio-lab .power-aside .mix { display:grid; grid-template-columns:1fr 1fr; gap:0 28px; }
 body.studio-desk .intro { grid-template-columns:minmax(0,1fr) 300px; gap:24px 32px; }
 body.studio-desk .intro h1 { font-size:52px; }
}
@media (max-width:760px) {
 body.studio-lab main,body.studio-desk .app { width:calc(100% - 40px); }
 body:is(.studio-lab,.studio-desk) .intro h1 { font-size:clamp(38px,10.5vw,48px); line-height:1.08; letter-spacing:-.05em; }
 body:is(.studio-lab,.studio-desk) .intro .studio-eyebrow { font-size:13px; letter-spacing:.025em; margin-bottom:12px; }
 body:is(.studio-lab,.studio-desk) .project-tagline { font-size:19px; margin-top:12px; }
 body:is(.studio-lab,.studio-desk) .project-actions { gap:10px; max-width:none; }
 body:is(.studio-lab,.studio-desk) .project-actions .studio-button { font-size:14px; gap:8px; padding:12px 10px; }
 body.studio-lab .intro { display:grid; grid-template-columns:1fr; gap:20px; padding:24px 0; }
 body.studio-lab .intro-note { margin:0; }
 body.studio-lab .experiments { gap:8px; margin-bottom:20px; }
 body.studio-lab .experiment { min-height:92px; padding:12px 10px; justify-content:center; }
 body.studio-lab .experiment-top { font-size:13px; margin-bottom:6px; }
 body.studio-lab .experiment strong { font-size:15px; line-height:1.35; min-height:0; }
 body.studio-lab .experiment-description,body.studio-lab .experiment[aria-pressed='true'] .experiment-top::after { display:none; }
 body.studio-lab .panel { padding:20px 18px 0; }
 body.studio-lab .panel-heading { margin-bottom:16px; }
 body.studio-lab h2 { font-size:30px; }
 body.studio-lab h3 { font-size:21px; }
 body.studio-lab .freshness { margin-top:14px; padding:10px 12px; max-width:none; }
 body.studio-lab .power-layout { display:block; }
 body.studio-lab .power-main { padding:18px 14px; }
 body.studio-lab .chart-heading { align-items:flex-start; gap:12px; }
 body.studio-lab .power-main .chart-heading strong { font-size:32px; }
 body.studio-lab .power-main .time-value { display:block; }
 body.studio-lab .power-main .action { padding-inline:12px; font-size:14px; }
 body.studio-lab .power-main .chart-controls { display:block; margin-top:18px; }
 body.studio-lab .power-main .segmented { display:grid; grid-template-columns:1fr 1fr; }
 body.studio-lab .power-main .segmented button { padding:8px; font-size:13px; }
 body.studio-lab .power-main #power-date { display:block; margin-top:12px; }
 body.studio-lab .power-aside { margin-top:16px; padding:20px; gap:0 16px; }
 body.studio-lab .large-number { font-size:44px; }
 body.studio-lab .power-aside .mix { column-gap:16px; }
 body.studio-lab .mix-label { flex-wrap:wrap; gap:4px 8px; }
 body.studio-lab .insight { padding:16px; margin-block:16px 20px; }
 body.studio-lab .kpis { gap:10px; }
 body.studio-lab .kpi { padding:16px; }
 body.studio-lab .kpi strong { font-size:30px; }
 body.studio-lab .planet-entry { margin-top:24px; gap:8px 12px; }
 body.studio-lab .planet-entry > span:first-child { width:100%; }
 body.studio-lab .about { padding:40px 0; }
 body.studio-lab .about > div { gap:24px; }
 body.studio-desk .intro { grid-template-columns:1fr; grid-template-areas:'copy' 'image' 'source'; gap:20px; padding:24px 0; }
 body.studio-desk .desk-visual { height:184px; aspect-ratio:auto; border-radius:12px; }
 body.studio-desk .project-actions { margin-top:20px; }
 body.studio-desk .project-note { font-size:13px; margin-top:12px; }
 body.studio-desk .source-line { padding-top:16px; }
 body.studio-desk .tabs { gap:8px; }
 body.studio-desk .tab { padding:10px 6px; font-size:14px; }
 body.studio-desk .panel { padding:20px 0 40px; }
 body.studio-desk .summary { padding:20px; border-radius:12px; }
 body.studio-desk .summary-title { font-size:28px; }
 body.studio-desk .split { gap:8px; }
 body.studio-desk .split li { padding:10px 12px; font-size:14px; }
 body.studio-desk .split strong { font-size:28px; }
 body.studio-desk .lane-head h2 { font-size:23px; }
 body.studio-desk .item-title { font-size:16px; }
 body.studio-desk .item-toggle { gap:12px; padding:16px; }
 body.studio-desk .item-act { padding:0 16px 16px; }
 body.studio-desk .item-details { padding:0 16px 18px; }
 body.studio-desk .panel-intro h2 { font-size:30px; }
 body.studio-desk .stage-count { font-size:36px; }
 body.studio-desk .figures li { gap:16px; }
 body.studio-desk .figures strong { font-size:30px; }
 body.studio-desk .foot { grid-template-columns:1fr; gap:20px; padding-block:24px 36px; }
}
@media (max-width:360px) {
 body:is(.studio-lab,.studio-desk) .project-actions .studio-button { font-size:13px; gap:6px; padding-inline:8px; }
 body.studio-desk .tab { font-size:13px; padding-inline:3px; }
 body.studio-lab .experiment { padding-inline:8px; }
 body.studio-lab .power-main .chart-heading { flex-wrap:wrap; }
}
@media (hover:hover) and (pointer:fine) and (prefers-reduced-motion:no-preference) {
 body:is(.studio-lab,.studio-desk) .project-actions .studio-button { transition:background 180ms var(--studio-ease),border-color 180ms var(--studio-ease),transform 180ms var(--studio-ease); }
 body.studio-lab .experiment { transition:background 180ms var(--studio-ease),border-color 180ms var(--studio-ease); }
}
@media (prefers-reduced-motion:reduce) {
 html:has(body.studio-lab),html:has(body.studio-desk) { scroll-behavior:auto !important; }
 body:is(.studio-lab,.studio-desk) *,body:is(.studio-lab,.studio-desk) *::before,body:is(.studio-lab,.studio-desk) *::after { animation:none !important; transition:none !important; scroll-behavior:auto !important; }
 body:is(.studio-lab,.studio-desk) .studio-button:hover { transform:none !important; }
 body:is(.studio-lab,.studio-desk) .studio-link:hover svg { translate:none !important; }
 /* Functional transforms such as chart cursors, checkmarks and disclosure arrows are retained. */
}
@media print {
 body:is(.studio-lab,.studio-desk) :is(.site-header,.project-actions,.tabs-bar,.site-footer) { display:none !important; }
 body.studio-lab main,body.studio-desk .app { width:100%; }
 body.studio-desk .desk-visual { display:none; }
 body.studio-desk .intro { display:block; }
}
