/* The launch sits beside the existing rail legend. The original B, stages and hero artwork retain their own rules. */
#design-reveal .study-launch-row {display:flex;align-items:center;justify-content:space-between;gap:.6rem;width:100%}
#design-reveal .study-launch-row p {flex:1;min-width:0}
#design-reveal [data-study-open] {flex:none;display:inline-flex;align-items:center;justify-content:center;gap:.32rem;min-height:44px;padding:0 .5rem;border:1px solid #ffffff70;border-radius:2px 8px 2px 4px;background:#14292fe8;color:#fff;font:650 .76rem/1.18 inherit;font-family:inherit;font-weight:650;font-size:.76rem;white-space:nowrap;cursor:pointer;touch-action:manipulation;text-shadow:none}
#design-reveal [data-study-open] svg {width:14px;height:14px}
#design-reveal [data-study-open]:is(:hover,:focus-visible) {color:#fff;border-color:#9df1ff;background:#183b44;outline:2px solid #9df1ff;outline-offset:2px}
#design-reveal [data-study-open][hidden] {display:none}
html.v7-study-open {overflow:hidden}
#design-study-modal {
  --sheet:#f8f5ee;--ink:#192d32;--rule:#b9b5a9;--accent:#00b9eb;
  position:fixed;inset:0;box-sizing:border-box;width:100%;max-width:none;height:100%;height:100dvh;max-height:none;
  margin:0;padding:0;border:0;border-radius:0;background:var(--sheet);color:var(--ink);overflow-y:auto;
  overscroll-behavior:contain;text-align:left;font:inherit;box-shadow:none;color-scheme:light;
}
#design-study-modal:not([open]),#design-study-modal [hidden] {display:none!important}
#design-study-modal::backdrop {background:#14272b}
#design-study-modal * {box-sizing:border-box}
#design-study-modal .study-shell {max-width:1792px;min-height:100%;margin:auto;padding:0 clamp(18px,3.8vw,78px) clamp(20px,3.1vw,56px)}
#design-study-modal button {appearance:none;margin:0;font:inherit;color:inherit;cursor:pointer;touch-action:manipulation}
#design-study-modal :is(button,.study-viewport):focus-visible {outline:3px solid #a44430;outline-offset:3px}
#design-study-modal .study-head {display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:63px;padding:0;border-bottom:1px solid var(--rule)}
#design-study-modal .study-ident {display:flex;align-items:center;gap:12px;font-size:.87rem;font-weight:725;letter-spacing:.02em}
#design-study-modal .study-ident img {width:29px;height:29px;padding:0;object-fit:contain;background:none}
#design-study-modal .study-close {display:flex;align-items:center;gap:.65rem;min-height:44px;padding:.25rem 0 .25rem .75rem;border:0;background:none;font-weight:700;font-size:.9rem}
#design-study-modal .study-close span {font-weight:400;font-size:1.65rem;line-height:.9}
#design-study-modal .study-title-row {display:flex;align-items:flex-end;justify-content:space-between;gap:1.5rem;padding:clamp(16px,2.8vh,32px) 0 clamp(14px,2.4vh,29px)}
#design-study-modal h2,#design-study-modal h3 {font-family:inherit;text-transform:none;text-wrap:balance;color:var(--ink);margin:0;padding:0}
#design-study-modal h2 {font-weight:560;line-height:.99;font-size:clamp(2.15rem,4.6vw,5.2rem);letter-spacing:-.068em}
#design-study-modal .study-stages {display:grid;grid-template-columns:repeat(3,1fr);flex:none;border-bottom:1px solid var(--rule)}
#design-study-modal .study-stages button {display:flex;align-items:center;justify-content:center;gap:6px;min-height:44px;min-width:78px;padding:.4rem .95rem;border:0;border-bottom:3px solid transparent;border-radius:0;margin-bottom:-1px;background:none;font-weight:680;font-size:.94rem;line-height:1}
#design-study-modal .study-stages small {font-size:.62rem;font-weight:560;font-variant-numeric:tabular-nums}
#design-study-modal .study-stages [aria-pressed=true] {border-bottom-color:var(--ink);background:#e5e7df}
#design-study-modal .study-desk {display:grid;grid-template-columns:minmax(0,1fr) minmax(215px,20%);gap:clamp(20px,2.7vw,46px);align-items:start}
#design-study-modal .study-plate {min-width:0;background:transparent}
#design-study-modal .study-viewport {
  display:flex;position:relative;isolation:isolate;align-items:flex-start;justify-content:flex-start;
  width:100%;height: min(48vw,calc(100vh - 215px));height:min(48vw,calc(100dvh - 215px));min-height:250px;
  overflow:auto;overscroll-behavior:contain;background:#dcdad1;border:1px solid #aaa99d;
  touch-action:pan-x pan-y pinch-zoom;scroll-behavior:auto;
}
#design-study-modal[data-stage=cad] .study-viewport {background:#172e36;border-color:#314751}
#design-study-modal .study-mount {position:relative;flex:none;aspect-ratio:3 / 2;width:100%;margin:auto;line-height:0}
#design-study-modal .study-art {position:absolute;inset:0;display:block;width:100%;height:100%;max-width:none;object-fit:contain;border:none;border-radius:0;box-shadow:none;user-select:none;-webkit-user-drag:none}
#design-study-modal [data-zoomed=true] {cursor:grab}
#design-study-modal [data-dragging=true] {cursor:grabbing}
#design-study-modal .study-plate-foot {display:flex;align-items:center;justify-content:space-between;gap:8px;border-bottom:1px solid var(--rule);padding:.125rem 0}
#design-study-modal [data-study-medium] {font-size:.76rem;font-weight:670;line-height:1.25;letter-spacing:.012em}
#design-study-modal [data-study-zoom] {display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;padding:.25rem .2rem .25rem .75rem;border:0;background:none;font-size:.82rem;font-weight:690}
#design-study-modal [data-study-zoom]>span:first-child {font-size:1.22rem;line-height:1}
#design-study-modal [data-study-zoom]:disabled {cursor:default;color:#58605f}
#design-study-modal .study-reading {border-top:3px solid var(--ink);padding-top:clamp(14px,1.4vw,24px)}
#design-study-modal .study-eyebrow {margin:0 0 .72rem;font-size:.66rem;letter-spacing:.12em;text-transform:uppercase;line-height:1.3;font-weight:750;color:#52625d}
#design-study-modal h3 {font-size:clamp(1.75rem,2.5vw,3.05rem);font-weight:560;line-height:1.02;letter-spacing:-.057em}
#design-study-modal .study-description,#design-study-modal [data-study-observation] {max-width:44ch;margin:.85rem 0 1rem;font-size:clamp(.94rem,1.08vw,1.06rem);line-height:1.47;letter-spacing:-.009em;color:#31464a}
#design-study-modal [data-study-notes] {display:flex;align-items:center;gap:.55rem;min-height:44px;width:100%;padding:.42rem 0;border:none;border-top:1px solid var(--rule);border-bottom:1px solid var(--rule);border-radius:0;background:none;font-size:.88rem;font-weight:710;text-align:left}
#design-study-modal .study-switch {display:inline-flex;align-items:center;width:26px;height:15px;padding:2px;border:1px solid #52625d;border-radius:12px}
#design-study-modal .study-switch::after {content:"";width:9px;height:9px;border-radius:50%;background:#52625d}
#design-study-modal [data-study-notes][aria-pressed=true] .study-switch {justify-content:flex-end;background:#17343e;border-color:#17343e}
#design-study-modal [data-study-notes][aria-pressed=true] .study-switch::after {background:#88e9f8}
#design-study-modal .study-index {display:flex;flex-direction:column;margin:.38rem 0 0}
#design-study-modal .study-index button {display:flex;align-items:center;gap:8px;width:100%;min-height:44px;padding:5px 8px;border:0;border-left:2px solid transparent;border-radius:0;background:none;text-align:left;font-size:.89rem;line-height:1.15;font-weight:640}
#design-study-modal .study-index button span {font-size:.68rem;letter-spacing:.035em}
#design-study-modal .study-index button[aria-pressed=true] {border-color:#19718a;background:#e3e9e5}
#design-study-modal [data-study-observation] {margin:8px 0 0}
#design-study-modal .study-markers {position:absolute;inset:0;pointer-events:none}
#design-study-modal .study-markers button {position:absolute;transform:translate(-50%,-50%);display:grid;place-items:center;pointer-events:auto;user-select:none;width:44px;height:44px;min-width:0;padding:0;border:0;border-radius:50%;background:transparent}
#design-study-modal .study-markers button span {display:grid;place-items:center;width:29px;height:29px;border:1.5px solid #fff;border-radius:50%;font-size:.67rem;line-height:1;letter-spacing:.01em;font-weight:750;background:#1b3035;color:#fff;box-shadow:0 1px 6px #0c1e2566}
#design-study-modal .study-markers button[aria-pressed=true] span {background:#91e9f5;border:2px solid #172f35;color:#172f35;box-shadow:0 0 0 2px #fff,0 1px 6px #0c1e2566}
@media(max-width:760px) {
  #design-study-modal .study-shell {padding:0 max(14px,env(safe-area-inset-left)) max(22px,env(safe-area-inset-bottom))}
  #design-study-modal .study-head {min-height:49px}
  #design-study-modal .study-title-row {display:block;padding:16px 0 10px}
  #design-study-modal h2 {font-size:clamp(2.05rem,8.6vw,3.1rem)}
  #design-study-modal .study-stages {width:100%;margin-top:10px}
  #design-study-modal .study-stages button {min-width:0;min-height:44px}
  #design-study-modal .study-desk {display:block}
  #design-study-modal .study-viewport {height:auto;min-height:0;aspect-ratio:3 / 2}
  #design-study-modal .study-reading {padding-top:16px;border-top:0}
  #design-study-modal .study-description {margin:.5rem 0 .7rem}
  #design-study-modal .study-eyebrow {margin:0 0 5px}
  #design-study-modal h3 {font-size:1.85rem}
  #design-study-modal .study-index {display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:4px}
  #design-study-modal .study-index button {align-items:center;gap:4px;padding:4px 5px;font-size:.79rem}
  #design-study-modal .study-index button span {font-size:.61rem}
  #design-study-modal [data-study-medium] {font-size:.71rem}
}
@media(max-height:550px) and (min-width:761px) {
  #design-study-modal .study-viewport {height:58vh;min-height:170px}
  #design-study-modal .study-title-row {padding:12px 0}
}
@media(prefers-reduced-motion:reduce) {
  #design-study-modal *,#design-reveal [data-study-open] {animation:none!important;transition:none!important;scroll-behavior:auto!important}
}
