/* Browser chrome stays quiet around the shared remote page. */
.mast-inner{gap:clamp(12px,2vw,32px)}
#pricing[hidden]{display:none!important}
.language-link{display:inline-flex;align-items:center;justify-content:center;min-height:44px;color:#d5dce5;font-size:12px;font-weight:570;letter-spacing:.035em;white-space:nowrap}
.language-link::before{content:"";width:1px;height:13px;margin-inline-end:clamp(10px,1.4vw,21px);background:#ffffff24}
.language-link:hover{color:#fff}
.br-tabs-row{height:4.95cqw;gap:.6cqw}
.br-tab{height:4.15cqw;max-width:25cqw;border-radius:1.25cqw 1.25cqw 0 0;padding:.25cqw .9cqw}
.br-tab>button:first-child{gap:.75cqw}
.br-tab>button>span{font-size:2.02cqw}
.br-tabs{flex:0 1 auto}
.br-lights{margin-inline-end:1.35cqw}
.br-controls{height:5.05cqw;padding:.3cqw 1.35cqw;gap:.75cqw}
.br-controls>button{width:3.7cqw;height:3.7cqw}
.br-omnibox{height:3.65cqw}
.br-tab-mark{width:2.05cqw;height:2.05cqw;background:transparent;box-shadow:none}
.br-tab-mark[data-kind=codex]{background:transparent url("assets/codex-dark.webp") center/contain no-repeat;box-shadow:none}
.br-tab-action{padding-inline:.65cqw}
html[lang=en-US] .intro h1{font-size:clamp(28px,12.2cqw,66px);line-height:1.06;letter-spacing:-.052em}
html[lang=en-US] .intro-lead{max-width:29em;line-height:1.63;text-wrap:pretty}
html[lang=en-US] .intro .mode-note{max-width:32em}
html[lang=en-US] .route-tabs button{white-space:nowrap}
@container (min-width:520px){.br-tabs-row{height:4.25cqw}.br-tab{height:3.65cqw}.br-controls{height:4.6cqw}.br-controls>button{width:3.25cqw;height:3.25cqw}.br-omnibox{height:3.2cqw}}
@media(max-width:760px){html[lang=en-US] .intro h1{font-size:clamp(34px,10.35cqw,51px)}}

@container (min-width:480px){
  .br-tab>button>span,.br-omnibox input{font-size:clamp(10px,1.85cqw,12px)}
  .br-article p,.code-note p{font-size:clamp(11px,2.1cqw,14px)}
  .code-lines>div{font-size:clamp(10px,1.9cqw,13px)}
  .br-frame .br-reading-head h3,.br-frame .br-article h3{font-size:clamp(24px,5cqw,34px)}
}

.footer .wrap{justify-content:flex-start;gap:clamp(12px,2vw,28px)}
.footer .brand{margin-inline-end:auto}
.footer .language-link::before{margin-inline-end:0}
.footer .language-link{column-gap:clamp(12px,2vw,28px)}

.input-chapter .section-intro>.use-example{font-size:clamp(14px,1.1vw,17px);line-height:1.68;color:#94a2b3;margin-top:1.1em;max-width:32em}

/* Pages use the same reading margin inside the remote browser, independent of its physical scale. */
.br-scroll{--reading-gutter:clamp(12px,4cqw,27px)}
.br-mast{margin-inline:var(--reading-gutter)}
.br-reading-head,.br-article,.br-entries,.code-workspace,.cx-fixture,.br-supper,.br-pond-page,.rs-page{padding-inline:var(--reading-gutter)}
.br-reading-head p,.br-deck,.code-note p{max-width:43em}
.br-article section{max-width:48em}.br-article .br-topic,.br-reading-head .br-topic{font-size:clamp(7.5px,1.8cqw,11px)}
.code-workspace .code-lines{overflow-x:auto}.code-workspace .code-lines>div{min-width:max-content}
.supper-mast,.rs-page header{gap:1em}.supper-mast strong,.rs-page header strong{min-width:0}
.supper-feature>div,.rs-label{min-width:0}.rs-label h3{overflow-wrap:break-word}
.supper-actions,.pond-actions{flex-wrap:wrap;row-gap:.65cqw}
.cx-fixture,.br-supper,.rs-page,.br-pond-page,.br-article,.code-workspace{min-width:0}
@container(max-width:460px){
  .br-mast button,.br-topic,.code-note small,.code-file,.rs-label small,.rs-time,.supper-feature small{font-size:clamp(8px,2.1cqw,10px)}
  .br-entry>span:nth-child(2),.br-entry b{min-width:0}
  .br-article p,.code-note p,.supper-method p{font-size:clamp(10px,2.65cqw,13px);line-height:1.48}
  .rs-page header{min-height:7cqw}.rs-layout{grid-template-columns:minmax(0,.9fr) minmax(0,1.1fr);gap:3cqw}
}

.br-tabs{flex:0 1 68cqw}
.br-tab{flex:1 1 0}
@container(min-width:520px){.br-tabs{flex-basis:min(68cqw,410px)}}

/* English labels keep crisp single-line alignment inside the native capsule switch. */
html[lang=en-US] .host-identity .service-switch{box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;flex-wrap:nowrap;width:auto;max-width:100%;gap:.95cqw;white-space:nowrap;text-align:center}
html[lang=en-US] .service-switch>span{min-width:0;line-height:1.2;white-space:nowrap}
html[lang=en-US] .iswitch{flex:none}
html[lang=en-US] .host-status{max-width:100%;gap:.55cqw}
html[lang=en-US] .host-status>span{min-width:0;text-wrap:balance}
html[lang=en-US] .devices[data-route=phone]:not(.host-focus) .host-cards p{max-width:none;white-space:normal;overflow:visible;text-overflow:clip;line-height:1.3}
html[lang=en-US] .native-card .shared-card>button:first-child,html[lang=en-US] .shared-card>button:first-child>span{min-width:0}
html[lang=en-US] .shared-card .native-pill{flex:none}
html[lang=en-US] .mac-native .pref-row{gap:1cqw}.pref-row>span{min-width:0}
html[lang=en-US] .mac-list small,html[lang=en-US] .mac-pop p{overflow-wrap:anywhere}
html[lang=en-US] mm-phone .mmp-access-wrap{width:236px;left:calc(50% - 118px)}
html[lang=en-US] mm-phone .mmp-access-pill{width:100%;grid-template-columns:repeat(2,minmax(0,1fr))}
html[lang=en-US] mm-phone .mmp-access-btn{min-width:0;padding-inline:5px;gap:5px;white-space:nowrap;line-height:1.15}
html[lang=en-US] mm-phone .mmp-access-btn>span{white-space:nowrap}
html[lang=en-US] .intro h1{line-height:1.17;padding-block-start:.04em}
html[lang=en-US] .intro h1 span{max-width:100%;white-space:normal}
html[lang=en-US] h2{line-height:1.2}
html[lang=en-US] .peer-titlebar>b{line-height:1.25}
html[lang=en-US] .cx-msg p{overflow-wrap:anywhere;hyphens:auto;text-wrap:pretty}
html[lang=en-US] .cx-msg.assistant p{hyphens:none;padding-inline-end:.34em}
html[lang=en-US] .br-frame .cx-history button{white-space:normal;overflow-wrap:break-word;text-overflow:clip;line-height:1.26;padding-block:.42em}
html[lang=en-US] .cx-projects>div{min-width:0}
html[lang=en-US] .cx-projects>div>span{white-space:normal;text-overflow:clip;overflow-wrap:anywhere}
html[lang=en-US] .cx-compose-controls .cx-model{white-space:nowrap;flex:none}
html[lang=en-US] .reading-strip strong{white-space:normal;overflow-wrap:anywhere}

/* ==========================================================================
   UNIFIED GRAPHITE-OBSIDIAN ATMOSPHERE & TYPOGRAPHY (MATCHING SCREEN 1 #hero)
   ========================================================================== */
body {
  background:var(--night,#101317);
  color:var(--white,#f4f5f8);
}

main>section {
  scroll-margin-top:var(--nav-h,64px);
}

.studio-chapter {
  position:relative;
  color:var(--white,#f4f5f8);
  color-scheme:dark;
  border:0;
  min-height:clamp(640px,82svh,750px);
  padding-top:clamp(36px,4.5vh,54px);
  padding-bottom:clamp(42px,5vh,60px);
  scroll-margin-top:var(--nav-h,64px);
  overflow:hidden;
  box-sizing:border-box;
  display:flex;
  flex-direction:column;
  justify-content:center;
  background:
    radial-gradient(760px 420px at 66% 52%,rgba(62,74,92,.11),transparent 74%),
    var(--night,#101317);
}

#hero.opening {
  min-height:calc(100svh - var(--nav-h,58px));
  display:flex;
  align-items:center;
  padding-block:clamp(18px,2.8vh,36px);
  border-bottom:0;
  scroll-margin-top:0;
  box-sizing:border-box;
  background:
    radial-gradient(64% 44% at 74% 50%,#202a33 0%,#161c23 42%,#11151a 72%,#101317 100%),
    var(--night,#101317);
}

#hero .hero-grid {
  width:min(1480px,calc(100% - 2 * var(--side)));
  min-height:min(740px,calc(100svh - 94px));
  padding-top:clamp(12px,2vh,26px);
  padding-bottom:clamp(12px,2vh,26px);
}

#gestures.studio-chapter,
#orientation.studio-chapter,
#keyboard.studio-chapter,
#terminal.studio-chapter {
  background:
    radial-gradient(780px 440px at 68% 52%,rgba(62,74,92,.12),transparent 74%),
    var(--night,#101317);
}

.studio-center-stack {
  width:100%;
  display:grid;
  justify-items:center;
  gap:clamp(12px,1.5vh,18px);
}

.studio-grid {
  width:100%;
  display:grid;
  grid-template-columns:minmax(320px,.95fr) minmax(0,1.05fr);
  align-items:center;
  gap:clamp(32px,4.2vw,68px);
}

/* ==========================================================================
   SCREEN 2 (#gestures): Upper-Lower Layout + Borderless Cyber-Pixel Holograms
   ========================================================================== */
#gestures.studio-chapter {
  min-height:calc(100svh - var(--nav-h,58px));
  scroll-margin-top:var(--nav-h,58px);
  padding-top:clamp(32px,4vh,48px);
  padding-bottom:clamp(40px,4.8vh,58px);
}

.gest-stack-wrap {
  width:100%;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:clamp(18px,2.4vh,26px);
}

.intro.is-gestures-intro.is-top-intro {
  padding:0;
  width:100%;
  max-width:880px;
  margin-inline:auto;
  text-align:center;
  display:grid;
  justify-items:center;
}

.intro.is-gestures-intro.is-top-intro h2 {
  margin:0;
  font-size:clamp(30px,3.2vw,40px);
  line-height:1.1;
  letter-spacing:-.04em;
  font-weight:590;
  color:#f5f6fa;
}

html[lang=en-US] .intro.is-gestures-intro.is-top-intro h2 {
  font-size:clamp(28px,3vw,37px);
  line-height:1.08;
}

.intro.is-gestures-intro.is-top-intro .intro-lead {
  margin:7px auto 0;
  max-width:52em;
  font-size:13.5px;
  line-height:1.42;
  color:#a8b5c5;
  text-align:center;
}

#gestures .gest-cx-dl {
  font-size:9.1px;
  grid-template-columns:20px 1fr;
  padding:3px 7px;
}

.gest-feature-type {
  position:relative;
  margin-top:clamp(12px,1.6vh,16px);
  display:grid;
  justify-items:center;
  gap:10px;
}

.gest-burst-canvas {
  position:absolute;
  inset:-24px -36px;
  width:calc(100% + 72px);
  height:calc(100% + 48px);
  pointer-events:none;
  z-index:4;
  display:block;
  image-rendering:pixelated;
}

.gest-feature-type .type-line {
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  column-gap:clamp(28px,3.4vw,46px);
  row-gap:10px;
}

.gest-feature-type .type-word[data-gesture-mode="glide"] {--ink-light:#9dfde9;--ink-deep:#54ccff;--letter-tone:#58dbec;--cyber-hot:#ff4fd8}
.gest-feature-type .type-word[data-gesture-mode="scroll"] {--ink-light:#a7dbff;--ink-deep:#6495ff;--letter-tone:#73b4ff;--cyber-hot:#00f0ff}
.gest-feature-type .type-word[data-gesture-mode="zoom"] {--ink-light:#e6c6ff;--ink-deep:#bb8bff;--letter-tone:#cc9bff;--cyber-hot:#58dbec}
.gest-feature-type .type-word[data-gesture-mode="drag"] {--ink-light:#a7f4c1;--ink-deep:#58dba7;--letter-tone:#70eab0;--cyber-hot:#ffe66d}

.gest-feature-type .type-word {
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:0;
  border:0;
  border-radius:0;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  opacity:.68;
  transition:opacity .18s ease,filter .18s ease,transform .18s ease;
}

.gest-feature-type .type-word:hover,
.gest-feature-type .type-word:focus-visible,
.gest-feature-type .type-word.is-active {
  opacity:1;
  transform:translateY(-1px);
}

.gest-feature-type .type-word.is-vanishing {
  opacity:.08!important;
  transform:translateY(-4px) scale(.94)!important;
  filter:blur(2px) brightness(2)!important;
}

.cyber-px-meta {
  display:inline-flex;
  align-items:center;
  gap:7px;
  font:700 9.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.12em;
  color:var(--letter-tone);
  text-shadow:0 0 8px color-mix(in srgb,var(--letter-tone) 60%,transparent);
}

.cyber-px-meta i {
  font-style:normal;
}

.px-bars {
  display:inline-flex;
  align-items:flex-end;
  gap:2px;
  height:8px;
}

.px-bars s {
  width:3px;
  background:var(--letter-tone);
  box-shadow:0 0 4px var(--letter-tone);
  display:block;
  text-decoration:none;
  opacity:.55;
}

.px-bars s:nth-child(1) {height:3px}
.px-bars s:nth-child(2) {height:5px}
.px-bars s:nth-child(3) {height:8px}
.px-bars s:nth-child(4) {height:6px}

.gest-feature-type .type-word.is-active .px-bars s,
.gest-feature-type .type-word:hover .px-bars s {
  opacity:1;
}

.gest-feature-type .type-word.is-active .px-bars s:nth-child(3),
.gest-feature-type .type-word:hover .px-bars s:nth-child(3) {
  background:var(--cyber-hot);
  box-shadow:0 0 6px var(--cyber-hot);
}

.cyber-px-main {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.px-glyph {
  width:24px;
  height:24px;
  flex:none;
  fill:var(--letter-tone);
  shape-rendering:crispEdges;
  filter:drop-shadow(0 0 6px color-mix(in srgb,var(--letter-tone) 55%,transparent));
}

.px-glyph .px-accent {
  fill:var(--ink-light);
}

.px-glyph .px-hot {
  fill:var(--cyber-hot);
}

.gest-feature-type .type-word .type-ink {
  font-size:clamp(24px,2.35vw,31px);
  font-weight:680;
  letter-spacing:-.03em;
  line-height:1.1;
}

html[lang=en-US] .gest-feature-type .type-word .type-ink {
  font-size:clamp(20px,1.95vw,25px);
}

.gest-feature-type .type-word.is-active .type-ink,
.gest-feature-type .type-word:hover .type-ink {
  filter:
    drop-shadow(-1.5px 0 0 rgba(255,79,216,.38))
    drop-shadow(1.5px 0 0 rgba(0,240,255,.42))
    drop-shadow(0 0 12px color-mix(in srgb,var(--letter-tone) 45%,transparent));
}

.cyber-px-rail {
  display:inline-flex;
  align-items:center;
  gap:5px;
  margin-top:3px;
  padding-left:0;
}

.cyber-px-rail i {
  width:5px;
  height:5px;
  background:var(--letter-tone);
  opacity:.26;
  box-shadow:0 0 4px var(--letter-tone);
  transition:opacity .18s ease,transform .18s ease,background .18s ease;
}

.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(1),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(1) {opacity:1;background:var(--ink-light)}
.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(2),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(2) {opacity:.92}
.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(3),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(3) {opacity:.88;background:var(--cyber-hot);box-shadow:0 0 6px var(--cyber-hot)}
.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(4),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(4) {opacity:.64}
.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(5),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(5) {opacity:.42}
.gest-feature-type .type-word.is-active .cyber-px-rail i:nth-child(6),
.gest-feature-type .type-word:hover .cyber-px-rail i:nth-child(6) {opacity:.24}

.gest-mode-note {
  margin-top:clamp(14px,1.8vh,18px);
  max-width:29em;
  font-size:12.5px;
  color:#a9b7c6;
  line-height:1.5;
  min-height:3em;
}

.chapter-intro.is-centered {
  text-align:center;
  display:grid;
  justify-items:center;
  max-width:820px;
  margin-inline:auto;
}

.chapter-intro.is-centered.is-wide-intro {
  max-width:860px;
}

.chapter-intro h2 {
  margin:0;
  font-size:clamp(26px,2.9vw,36px);
  line-height:1.14;
  letter-spacing:-.038em;
  font-weight:600;
  color:#f4f5f8;
  text-wrap:balance;
}

.chapter-intro h2 span {
  display:block;
}

html[lang=en-US] .chapter-intro h2 {
  font-size:clamp(24px,2.75vw,34px);
  line-height:1.12;
  letter-spacing:-.04em;
}

.chapter-lead {
  margin:clamp(6px,1vh,10px) 0 0;
  max-width:34em;
  font-size:clamp(14px,1vw,15.5px);
  line-height:1.52;
  color:rgba(219,224,232,.74);
  text-wrap:pretty;
}

.chapter-intro.is-centered .chapter-lead {
  max-width:44em;
  margin-inline:auto;
  text-align:center;
}

html[lang=en-US] .chapter-lead {
  font-size:clamp(14px,.98vw,15.2px);
  line-height:1.5;
}

/* Segmented Mode Switcher Pills — Matching Screen 1 (.route-tabs) */
.stage-pills {
  display:inline-flex;
  flex-wrap:wrap;
  align-items:center;
  gap:2px;
  margin-top:clamp(10px,1.3vh,14px);
  padding:3px;
  border-radius:999px;
  background:rgba(255,255,255,.055);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.075),0 0 0 1px rgba(255,255,255,.075);
}

.stage-pills.is-centered {
  justify-content:center;
}

.stage-pills.is-compact-pills {
  margin-top:0;
  justify-content:center;
}

.stage-pills button {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  min-height:31px;
  padding:4px 14px;
  border-radius:999px;
  border:0;
  background:transparent;
  color:rgba(235,240,247,.72);
  font:560 12.5px/1.2 var(--ui);
  letter-spacing:-.012em;
  white-space:nowrap;
  cursor:pointer;
  transition:color .16s ease,background .16s ease,box-shadow .16s ease;
}

.stage-pills.is-compact-pills button {
  min-height:28px;
  padding:3px 11px;
  font-size:11.5px;
}

.stage-pills button>i {
  display:none;
}

.stage-pills button:hover {
  color:#f4f6fa;
}

.stage-pills button[aria-selected="true"],
.stage-pills button[aria-pressed="true"],
.stage-pills button.is-active {
  background:linear-gradient(180deg,#eff2f6,#dfe5ec);
  color:#16202d;
  font-weight:600;
  box-shadow:0 2px 6px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.88);
}

@keyframes stage-fade-in {from{opacity:.4;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes caret-blink {to{opacity:0}}

.os-lights,.ctrl-dots {
  display:inline-flex;
  gap:5.5px;
  align-items:center;
  flex:none;
}
.os-lights i,.ctrl-dots i {
  width:8.5px;
  height:8.5px;
  border-radius:50%;
  background:#ff5f57;
  box-shadow:inset 0 0 0 .5px rgba(0,0,0,.18);
}
.os-lights i:nth-child(2),.ctrl-dots i:nth-child(2) {background:#febc2e}
.os-lights i:nth-child(3),.ctrl-dots i:nth-child(3) {background:#28c840}

.gest-home-indicator {
  width:96px;
  height:3.5px;
  border-radius:99px;
  background:rgba(255,255,255,.36);
  margin:3px auto 6px;
  flex:none;
}

/* ==========================================================================
   TRUE-PROPORTION PORTRAIT IPHONE AIR HARDWARE (451:943 with air-shell.webp)
   Used across #gestures, #keyboard, and #terminal
   ========================================================================== */
.is-portrait-phone-stage,
.gest-iphone-col {
  margin:0;
  width:100%;
  display:block;
}

.air-portrait-phone {
  position:relative;
  width:100%;
  max-width:266px;
  margin-inline:auto;
  aspect-ratio:451 / 943;
  user-select:none;
  filter:drop-shadow(0 24px 48px rgba(0,0,0,.52));
}

.air-portrait-phone.gest-iphone-air {
  width:100%;
  max-width:260px;
  margin-inline:auto;
}

.air-portrait-chassis {
  position:relative;
  width:100%;
  height:100%;
  isolation:isolate;
}

.air-portrait-chassis>.air-case-art {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:fill;
  pointer-events:none;
  z-index:1;
}

.air-portrait-phone>.air-side-buttons {
  position:absolute;
  inset:0;
  pointer-events:none;
  z-index:0;
}

.air-portrait-screen {
  position:absolute;
  left:3.437%;
  top:1.644%;
  width:93.126%;
  height:96.713%;
  border-radius:0;
  overflow:hidden;
  z-index:3;
  box-sizing:border-box;
  background:#000;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  -webkit-mask:url("assets/air-display.svg") center/100% 100% no-repeat;
  mask:url("assets/air-display.svg") center/100% 100% no-repeat;
}

/* Authentic iPhone Status Bar & Session Header (Matching Screen 1 mm-phone) */
.air-portrait-screen.is-authentic-phone .mmp-status-bar {
  position:relative;
  height:36px;
  padding:11px 20px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  flex:none;
  z-index:3;
}

.air-portrait-screen.is-authentic-phone .mmp-status-time-img {
  height:9.5px;
  width:auto;
  display:block;
}

.air-portrait-screen.is-authentic-phone .mmp-island {
  width:68px;
  height:20px;
  visibility:hidden;
}

.air-portrait-screen.is-authentic-phone .mmp-status-icons {
  display:flex;
  align-items:center;
  gap:4px;
  height:10px;
}

.air-portrait-screen.is-authentic-phone .mmp-status-icon {
  height:9.5px;
  width:auto;
  display:block;
}

/* air-status-cell.webp has a 22.33:4 aspect ratio in air.css; keep its true 2.7px height */
.air-portrait-screen.is-authentic-phone .mmp-status-icon.mmp-status-cell {
  height:2.6px;
  width:auto;
  align-self:flex-end;
  margin-bottom:1.1px;
}

.auth-phone-body {
  flex:1;
  min-height:0;
  padding:2px 10px 4px;
  display:flex;
  flex-direction:column;
  gap:5px;
}

.auth-nav-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  min-height:24px;
  padding:0 2px;
  flex:none;
}

.auth-back-btn {
  width:25px;
  height:25px;
  border-radius:50%;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.11);
  display:grid;
  place-items:center;
  color:#f2f5f9;
  flex:none;
}

.auth-back-btn .air-icon {
  width:11px;
  height:14px;
}

.auth-host-title {
  font:600 13.5px/1.1 var(--ui);
  letter-spacing:-.02em;
  color:#f4f6fa;
}

.auth-conn-dot {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#34d399;
  box-shadow:0 0 8px rgba(52,211,153,.55);
  margin-inline:9px;
  flex:none;
}

.auth-nav-spacer {
  width:25px;
  height:25px;
  flex:none;
}

.auth-access-pill {
  align-self:center;
  display:grid;
  grid-template-columns:1fr 1fr;
  padding:2.5px;
  border-radius:99px;
  background:#1c1d22;
  border:1px solid rgba(255,255,255,.08);
  width:148px;
  font:560 9.8px/1.2 var(--ui);
  text-align:center;
  color:rgba(235,240,247,.58);
  flex:none;
}

.auth-access-item {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:4px;
  padding:3px 6px;
  border-radius:99px;
  white-space:nowrap;
}

.auth-access-item .air-icon[data-sym="view"] {
  width:11px;
  height:7.5px;
}

.auth-access-item .air-icon[data-sym="control"] {
  width:7.5px;
  height:11px;
}

.auth-access-pill .is-active {
  background:#2d3039;
  color:#f4f6fa;
  font-weight:600;
  box-shadow:0 1px 3px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
}

.auth-remote-stage {
  position:relative;
  aspect-ratio:16 / 10;
  border-radius:9px;
  overflow:hidden;
  background:#141923;
  border:1px solid rgba(255,255,255,.12);
  box-shadow:0 6px 18px rgba(0,0,0,.34);
  flex:none;
}

.auth-remote-canvas {
  position:absolute;
  inset:0;
  transform-origin:52% 48%;
  transition:transform .24s cubic-bezier(.22,1,.36,1);
}

.auth-remote-wall {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}

.auth-mini-menu {
  position:absolute;
  inset:0 0 auto;
  height:11px;
  padding:0 6px;
  background:rgba(242,240,236,.84);
  color:#1d1d1f;
  font:600 6px/11px var(--ui);
  display:flex;
  justify-content:space-between;
  z-index:2;
}

.auth-mini-codex {
  position:absolute;
  left:4%;
  top:12%;
  width:74%;
  height:75%;
  border-radius:5px;
  background:#fff;
  box-shadow:0 4px 12px rgba(0,0,0,.32);
  display:grid;
  grid-template-columns:22% 1fr;
  overflow:hidden;
}

.auth-mini-rail {
  background:#f3f3f5;
  border-right:1px solid #e4e4e7;
  padding:4px 3px;
  display:flex;
  flex-direction:column;
  gap:3px;
}

.auth-mini-rail .os-lights {gap:2px}
.auth-mini-rail .os-lights i {width:3.8px;height:3.8px}
.auth-mini-rail>i {
  display:block;
  height:4px;
  border-radius:2px;
  background:#e2e2e7;
}
.auth-mini-rail>i:first-of-type {
  background:#d4d4dc;
  margin-top:2px;
}

.auth-mini-main {
  padding:4px 5px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:2.5px;
  color:#18181b;
  min-width:0;
  transition:transform .26s cubic-bezier(.22,1,.36,1);
}

.auth-mini-title {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:3px;
  font:600 6.2px/1.15 var(--ui);
  color:#18181b;
  border-bottom:1px solid #f1f1f4;
  padding-bottom:2px;
}
.auth-mini-title span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.auth-mini-title b {
  color:#15803d;
  font:600 5.6px/1 ui-monospace,monospace;
  flex:none;
}

.auth-mini-prompt {
  align-self:flex-end;
  padding:2px 4px;
  border-radius:4px;
  background:#f1f2f5;
  color:#27272a;
  font:500 5.6px/1.15 var(--ui);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:92%;
}

.auth-mini-diff {
  padding:2px 4px;
  border-radius:3px;
  background:#dcfce7;
  color:#14532d;
  font:600 5.1px/1.15 ui-monospace,SFMono-Regular,monospace;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-mini-composer {
  padding:2px 4px;
  border-radius:4px;
  border:1px solid #d4d4d8;
  background:#fff;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:3px;
  font:520 5.6px/1.1 var(--ui);
  color:#18181b;
}
.auth-mini-composer span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.auth-mini-composer i {
  width:8px;
  height:8px;
  border-radius:50%;
  background:#18181b;
  color:#fff;
  font-style:normal;
  font-size:5px;
  display:grid;
  place-items:center;
  flex:none;
}

.auth-mini-finder {
  position:absolute;
  right:3.5%;
  bottom:13%;
  width:36%;
  border-radius:5px;
  background:rgba(250,250,252,.96);
  box-shadow:0 4px 10px rgba(0,0,0,.32),0 0 0 .5px rgba(0,0,0,.12);
  overflow:hidden;
  color:#18181b;
  transition:transform .26s cubic-bezier(.22,1,.36,1);
}

.auth-mini-fbar {
  padding:2px 4px;
  background:#f1f1f4;
  border-bottom:1px solid #e2e2e7;
  font:600 5.6px/1.1 var(--ui);
}

.auth-mini-frow {
  padding:2.5px 4px;
  display:flex;
  align-items:center;
  gap:3px;
  background:#0071e3;
  color:#fff;
  font:560 5.5px/1.1 var(--ui);
}
.auth-mini-frow b {
  padding:1px 2px;
  border-radius:2px;
  background:rgba(255,255,255,.22);
  font:700 4.8px/1 ui-monospace,monospace;
}
.auth-mini-frow span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-mini-dock {
  position:absolute;
  left:50%;
  bottom:2px;
  transform:translateX(-50%);
  display:flex;
  gap:2.5px;
  padding:1.5px 4px;
  border-radius:5px;
  background:rgba(245,245,247,.55);
  backdrop-filter:blur(6px);
}
.auth-mini-dock i {
  width:5.5px;
  height:5.5px;
  border-radius:1.5px;
  background:#3b82f6;
}
.auth-mini-dock i:nth-child(2) {background:#18181b}
.auth-mini-dock i:nth-child(3) {background:#10b981}
.auth-mini-dock i:nth-child(4) {background:#0f172a}
.auth-mini-dock i:nth-child(5) {background:#f59e0b}

.auth-mini-cursor {
  position:absolute;
  left:52%;
  top:54%;
  width:10px;
  height:12px;
  transform:translate(-2px,-2px);
  pointer-events:none;
  z-index:4;
  transition:left .08s linear,top .08s linear;
}

.auth-mini-cursor svg {
  width:100%;
  height:100%;
  fill:#111318;
  stroke:#fff;
  stroke-width:1.4;
}

.auth-toolbar {
  display:grid;
  grid-template-columns:repeat(5,1fr);
  gap:4px;
  padding:3px 6px;
  border-radius:999px;
  background:#1c1d22;
  border:1px solid rgba(255,255,255,.08);
  flex:none;
}

.auth-tool-btn {
  height:27px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:rgba(235,240,247,.74);
}

.auth-tool-btn .air-icon,
.auth-tool-btn .sys-symbol {
  width:14px;
  height:12px;
}

.auth-tool-btn .air-icon[data-sym="more"] {
  width:13px;
  height:4.5px;
}

.auth-tool-btn.is-active {
  background:#2d323e;
  color:#8ec5ff;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
}

/* ==========================================================================
   SCREEN 2 (#gestures): Paired macOS Sequoia Desktop + iPhone Air Trackpad
   ========================================================================== */
.gesture-stage.is-paired-stage {
  margin:0 auto;
  width:fit-content;
  max-width:100%;
  display:grid;
  grid-template-columns:minmax(0,652px) 252px;
  justify-content:center;
  align-items:start;
  gap:0;
  position:relative;
}

.gest-mac-display {
  width:calc(100% + 52px);
  margin:14px 0 0;
  border-radius:18px;
  padding:8px;
  background:linear-gradient(180deg,#272d35,#171b21);
  box-shadow:
    0 24px 56px rgba(0,0,0,.48),
    0 0 0 1px rgba(255,255,255,.1),
    inset 0 1px 0 rgba(255,255,255,.12);
  z-index:1;
}

#gestures .gest-iphone-col {
  position:relative;
  z-index:4;
}

#gestures .air-portrait-phone.gest-iphone-air {
  width:100%;
  max-width:270px;
  margin-inline:auto;
  filter:drop-shadow(-18px 24px 48px rgba(0,0,0,.64));
}

#gestures .auth-remote-stage {
  aspect-ratio:16 / 9.2;
}

#gestures .gest-finder-window,
#gestures .auth-mini-finder,
#gestures .gest-menu-pill,
#gestures .gest-cx-log,
#gestures .gest-cx-dl:not(.is-add) {
  display:none!important;
}

.gest-pixel-canvas {
  position:absolute;
  inset:24px 6px 10px;
  width:calc(100% - 12px);
  height:calc(100% - 34px);
  pointer-events:none;
  z-index:2;
  image-rendering:pixelated;
}

.gest-os-desktop {
  position:relative;
  aspect-ratio:16 / 10;
  border-radius:12px;
  overflow:hidden;
  background:#141923;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);
}

.gest-os-menu {
  position:absolute;
  inset:0 0 auto;
  z-index:5;
  height:25px;
  padding:0 54px 0 12px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:rgba(242,240,236,.82);
  backdrop-filter:blur(16px);
  color:#1d1d1f;
  font:540 11.5px/1 var(--ui);
  border-bottom:1px solid rgba(0,0,0,.08);
  white-space:nowrap;
}

.gest-os-menu-left,
.gest-os-menu-right {
  display:flex;
  align-items:center;
  gap:11px;
  white-space:nowrap;
  min-width:0;
}

.gest-os-menu-left .os-apple {
  font-size:13px;
}

.gest-os-menu-left b {
  font-weight:650;
}

.gest-menu-pill {
  padding:2.5px 8px;
  border-radius:99px;
  background:rgba(0,113,227,.12);
  color:#0058b9;
  font:600 10.5px/1.2 var(--ui);
  white-space:nowrap;
}

.gest-os-canvas {
  position:absolute;
  inset:25px 0 0;
  overflow:hidden;
  transform-origin:52% 48%;
  transition:transform .36s cubic-bezier(.22,1,.36,1);
}

.gesture-stage[data-gesture-mode="zoom"] .gest-os-canvas,
.gesture-stage[data-gesture-mode="zoom"] .auth-remote-canvas {
  transform:scale(1.24) translate(-4%,-3%);
}

.gest-os-wallpaper {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  pointer-events:none;
}

/* Authentic Light-Mode Codex Window Inside Screen 2 Mac Desktop */
.gest-cx-window {
  position:absolute;
  left:5.5%;
  top:6.5%;
  width:79%;
  height:78%;
  border-radius:11px;
  overflow:hidden;
  display:grid;
  grid-template-columns:138px minmax(0,1fr);
  background:#fff;
  color:#18181b;
  box-shadow:0 18px 44px rgba(0,0,0,.34),0 0 0 1px rgba(0,0,0,.12);
  z-index:2;
  transition:transform .28s cubic-bezier(.22,1,.36,1),box-shadow .28s ease;
}

.gesture-stage[data-gesture-mode="drag"] .gest-cx-window {
  transform:translate(-14px,-10px);
  box-shadow:0 24px 48px rgba(0,0,0,.46),0 0 0 1.5px #0071e3;
}

.gest-cx-rail {
  background:#f3f3f5;
  border-right:1px solid #e5e5ea;
  padding:10px 8px;
  display:flex;
  flex-direction:column;
  gap:5px;
  font-size:11px;
  color:#52525b;
  min-width:0;
}

.gest-cx-rail-top {
  padding:2px 2px 6px;
}

.gest-cx-group-label {
  font:600 10px/1.2 var(--ui);
  color:#8e8e93;
  padding:0 4px;
  margin-top:2px;
}

.gest-cx-project {
  padding:3px 6px;
  font:600 11px/1.2 var(--ui);
  color:#18181b;
}

.gest-cx-thread {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  padding:4.5px 6px;
  border-radius:7px;
  color:#3f3f46;
  font:520 10px/1.25 var(--ui);
  min-width:0;
  white-space:nowrap;
  overflow:hidden;
}

.gest-cx-thread>span {
  min-width:0;
  overflow:hidden;
  text-overflow:ellipsis;
  white-space:nowrap;
}

.gest-cx-thread.is-active {
  background:#e4e4e9;
  color:#111113;
  font-weight:600;
}

.gest-cx-thread small {
  color:#15803d;
  font:600 9px/1 ui-monospace,SFMono-Regular,monospace;
  flex:none;
}

.gest-cx-main {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  background:#fff;
  min-width:0;
  min-height:0;
}

.gest-cx-bar {
  height:34px;
  padding:0 13px;
  border-bottom:1px solid #ececef;
  display:flex;
  align-items:center;
  justify-content:space-between;
  background:#fafafa;
  flex:none;
}

.gest-cx-title {
  display:flex;
  align-items:baseline;
  gap:8px;
  min-width:0;
}

.gest-cx-title strong {
  font:600 12px/1.2 var(--ui);
  color:#18181b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gest-cx-title span {
  font:500 11px/1.2 var(--ui);
  color:#71717a;
}

.gest-cx-diff-pill {
  padding:2px 7px;
  border-radius:99px;
  background:#dcfce7;
  color:#15803d;
  font:600 10px/1.2 ui-monospace,SFMono-Regular,monospace;
}

.gest-cx-scroll {
  flex:1;
  padding:10px 13px;
  display:flex;
  flex-direction:column;
  gap:6px;
  overflow:hidden;
  transition:transform .34s cubic-bezier(.22,1,.36,1);
}

.gesture-stage[data-gesture-mode="scroll"] .gest-cx-scroll {
  transform:translateY(-18px);
}

.gest-cx-prompt {
  align-self:flex-end;
  max-width:86%;
  padding:6px 11px;
  border-radius:12px;
  background:#f1f2f5;
  color:#18181b;
  font:500 11px/1.38 var(--ui);
}

.gest-cx-log {
  font:480 10.6px/1.36 var(--ui);
  color:#52525b;
}

.gest-cx-log b {
  color:#18181b;
  font-weight:600;
}

.gest-cx-diff-card {
  border-radius:9px;
  border:1px solid #e4e4e7;
  background:#fbfbfc;
  overflow:hidden;
  font:500 10px/1.38 ui-monospace,SFMono-Regular,Menlo,monospace;
  transition:box-shadow .25s ease,border-color .25s ease;
}

.gesture-stage[data-gesture-mode="zoom"] .gest-cx-diff-card {
  border-color:#60a5fa;
  box-shadow:0 0 0 3px rgba(59,130,246,.16);
}

.gest-cx-diff-head {
  padding:5px 9px;
  background:#f4f4f6;
  border-bottom:1px solid #e4e4e7;
  display:flex;
  justify-content:space-between;
  font-family:var(--ui);
  font-size:10.5px;
  color:#3f3f46;
}

.gest-cx-stat b {color:#15803d}
.gest-cx-stat s {color:#dc2626;text-decoration:none}

.gest-cx-diff-body {
  padding:4px 0;
}

.gest-cx-dl {
  display:grid;
  grid-template-columns:26px 1fr;
  padding:1.5px 9px;
  color:#3f3f46;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gest-cx-dl i {
  font-style:normal;
  color:#a1a1aa;
}

.gest-cx-dl.is-add {
  background:#dcfce7;
  color:#14532d;
  font-weight:560;
}

.gest-cx-reply {
  max-width:65%;
  font:520 10.5px/1.34 var(--ui);
  color:#18181b;
}

.gest-cx-composer {
  margin:0 12px 10px;
  padding:7px 10px;
  border-radius:10px;
  border:1px solid #d4d4d8;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.04);
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  flex:none;
}

.gest-cx-composer-text {
  font:500 11px/1.2 var(--ui);
  color:#18181b;
}

.gest-cx-composer-foot {
  display:flex;
  align-items:center;
  gap:7px;
  font:550 10px/1 var(--ui);
  color:#71717a;
}

.gest-cx-send {
  width:18px;
  height:18px;
  border-radius:50%;
  background:#18181b;
  color:#fff;
  display:grid;
  place-items:center;
  font-style:normal;
  font-size:10px;
}

/* Draggable Light-Mode macOS Finder Window */
.gest-finder-window {
  position:absolute;
  right:3%;
  bottom:11.5%;
  width:31.5%;
  border-radius:11px;
  overflow:hidden;
  background:rgba(250,250,252,.96);
  backdrop-filter:blur(16px);
  color:#18181b;
  box-shadow:0 16px 38px rgba(0,0,0,.36),0 0 0 1px rgba(0,0,0,.14);
  z-index:3;
  transition:transform .28s cubic-bezier(.22,1,.36,1),box-shadow .28s ease;
}

.gesture-stage[data-gesture-mode="drag"] .gest-finder-window {
  transform:translate(-18px,-14px);
  box-shadow:0 24px 48px rgba(0,0,0,.46),0 0 0 1.5px #0071e3;
}

.gesture-stage[data-gesture-mode="drag"] .auth-mini-finder {
  transform:translate(-8px,-6px);
}

.gest-finder-bar {
  height:28px;
  padding:0 10px;
  background:#f1f1f4;
  border-bottom:1px solid #e2e2e7;
  display:flex;
  align-items:center;
  gap:7px;
  font-size:11px;
}

.gest-finder-bar strong {
  font:600 11px/1 var(--ui);
  color:#18181b;
  white-space:nowrap;
}

.gest-finder-bar small {
  margin-inline-start:auto;
  font:560 9.8px/1.2 var(--ui);
  color:#0058b9;
  background:rgba(0,113,227,.10);
  padding:2px 6px;
  border-radius:99px;
  white-space:nowrap;
}

.gest-finder-body {
  padding:6px;
  display:grid;
  gap:3px;
}

.gest-finder-row {
  display:flex;
  align-items:center;
  gap:8px;
  padding:4.5px 7px;
  border-radius:7px;
  font-size:10.8px;
}

.gest-finder-row.is-selected {
  background:#0071e3;
  color:#fff;
}

.gest-file-badge {
  width:26px;
  height:22px;
  border-radius:5px;
  display:grid;
  place-items:center;
  font:700 8.5px/1 ui-monospace,SFMono-Regular,monospace;
  color:#fff;
  flex:none;
}
.gest-file-badge.is-png {background:#2563eb}
.gest-file-badge.is-pdf {background:#dc2626}
.gest-file-badge.is-md {background:#059669}

.gest-file-info {
  min-width:0;
  flex:1;
}

.gest-file-info strong {
  display:block;
  font:600 10.8px/1.2 var(--ui);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.gest-file-info small {
  display:block;
  font:480 9.5px/1.2 var(--ui);
  opacity:.72;
}

.gest-os-dock {
  position:absolute;
  left:50%;
  bottom:6px;
  transform:translateX(-50%);
  z-index:4;
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 8px;
  border-radius:13px;
  background:rgba(245,245,247,.52);
  backdrop-filter:blur(18px);
  box-shadow:0 8px 20px rgba(0,0,0,.28),inset 0 0 0 .5px rgba(255,255,255,.55);
}

.gest-dock-item img {
  width:24px;
  height:24px;
  display:block;
  object-fit:contain;
}

/* Mac Pointer in Screen 2 */
.gest-mac-cursor {
  position:absolute;
  left:44%;
  top:48%;
  z-index:6;
  width:18px;
  height:22px;
  pointer-events:none;
  transform:translate(-2px,-2px);
  transition:left .08s linear,top .08s linear;
}

.gest-mac-cursor svg {
  width:18px;
  height:22px;
  fill:#111318;
  stroke:#fff;
  stroke-width:1.4;
  filter:drop-shadow(0 3px 6px rgba(0,0,0,.38));
}

.gest-cursor-ring {
  position:absolute;
  left:-8px;
  top:-8px;
  width:28px;
  height:28px;
  border-radius:50%;
  border:1.5px solid rgba(0,113,227,.65);
  opacity:0;
  transform:scale(.6);
}

.gesture-stage[data-gesture-mode="drag"] .gest-cursor-ring,
.gest-cursor-ring.is-pulsing {
  opacity:1;
  transform:scale(1);
  transition:transform .24s ease,opacity .24s ease;
}

/* Interactive Trackpad Card Inside Screen 2 iPhone Air */
.auth-trackpad-card {
  position:relative;
  flex:1;
  min-height:152px;
  border-radius:16px;
  overflow:hidden;
  background:linear-gradient(180deg,#171c24,#11151c);
  border:1px solid rgba(255,255,255,.11);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  cursor:crosshair;
  touch-action:none;
}

.auth-pad-topline {
  position:relative;
  z-index:2;
  padding:8px 10px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:4px;
  font:500 8.8px/1.2 var(--ui);
  color:rgba(255,255,255,.52);
  white-space:nowrap;
  pointer-events:none;
}

.auth-pad-topline span {
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-pad-topline b {
  font:540 8.5px/1.2 var(--ui);
  color:rgba(255,255,255,.58);
  padding:0;
  background:transparent;
  flex:none;
}

.auth-trackpad-card mm-pad-dots {
  position:absolute;
  left:7px;
  top:6px;
  width:calc((100% - 14px) / .64);
  height:calc((100% - 14px) / .64);
  transform:scale(.64);
  transform-origin:top left;
  border-radius:19px;
  overflow:hidden;
  display:block;
  pointer-events:none;
  z-index:1;
}

.auth-trackpad-card .gest-touch-layer,
.auth-trackpad-card .gest-pixel-canvas {
  display:none!important;
}

.auth-trackpad-card mm-pad-dots canvas {
  width:100%;
  height:100%;
  display:block;
}

.auth-pad-grip {
  position:relative;
  z-index:2;
  width:32px;
  height:3px;
  border-radius:99px;
  background:rgba(255,255,255,.16);
  margin:0 auto 5px;
  pointer-events:none;
}

.gest-touch-layer {
  position:absolute;
  inset:24px 8px 10px;
  pointer-events:none;
  z-index:3;
}

.gest-finger {
  position:absolute;
  left:44%;
  top:48%;
  width:24px;
  height:24px;
  margin:-12px 0 0 -12px;
  border-radius:50%;
  background:radial-gradient(circle,rgba(121,178,255,.38) 0,rgba(121,178,255,.16) 62%,transparent 75%);
  border:1.3px solid rgba(175,213,255,.78);
  box-shadow:0 2px 10px rgba(0,0,0,.34),0 0 12px rgba(121,178,255,.28);
  display:grid;
  place-items:center;
  transition:left .08s linear,top .08s linear,opacity .16s ease;
}

.gest-finger i {
  width:6px;
  height:6px;
  border-radius:50%;
  background:#fff;
}

.gest-finger[hidden],
.gest-pinch-beam[hidden] {
  display:none!important;
}

.gest-pinch-beam {
  position:absolute;
  height:1.5px;
  background:linear-gradient(90deg,rgba(255,255,255,.15),rgba(255,255,255,.65),rgba(255,255,255,.15));
  transform-origin:center center;
}

/* ==========================================================================
   SCREEN 3 (#orientation): Gyro-Horizon Telemetry + Centered Device Stage
   ========================================================================== */
#orientation.studio-chapter,
#keyboard.studio-chapter,
#terminal.studio-chapter,
#security.studio-chapter,
#pricing.studio-chapter,
#faq.studio-chapter {
  min-height:calc(100svh - var(--nav-h,58px));
  scroll-margin-top:var(--nav-h,58px);
  padding-top:clamp(34px,4.2vh,52px);
  padding-bottom:clamp(44px,5.2vh,64px);
  background:
    radial-gradient(780px 440px at 68% 52%,rgba(62,74,92,.12),transparent 74%),
    var(--night,#101317);
}

.orient-gyro-strip,
.kwave-strip {
  position:relative;
  margin-top:clamp(12px,1.6vh,16px);
  display:grid;
  justify-items:center;
  gap:10px;
}

.orient-gyro-strip .type-line,
.kwave-strip .type-line {
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  column-gap:clamp(26px,3.2vw,44px);
  row-gap:12px;
}

/* Gyro-Horizon Triggers (Screen 3) — Borderless Radar & Axis-Lock */
.gyro-word[data-orient-pill="wide"] {--ink-light:#9dfde9;--ink-deep:#54ccff;--letter-tone:#58dbec;--cyber-hot:#00f0ff}
.gyro-word[data-orient-pill="tall"] {--ink-light:#a7dbff;--ink-deep:#6495ff;--letter-tone:#73b4ff;--cyber-hot:#ff4fd8}
.gyro-word[data-orient-pill="zoom"] {--ink-light:#e6c6ff;--ink-deep:#bb8bff;--letter-tone:#cc9bff;--cyber-hot:#58dbec}
.gyro-word[data-orient-pill="rail"] {--ink-light:#a7f4c1;--ink-deep:#58dba7;--letter-tone:#70eab0;--cyber-hot:#ffe66d}

.gyro-word {
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  opacity:.66;
  transition:opacity .18s ease,transform .2s cubic-bezier(.22,1,.36,1),filter .2s ease;
}

.gyro-word:hover,
.gyro-word:focus-visible,
.gyro-word.is-active {
  opacity:1;
  transform:translateY(-1.5px);
}

.gyro-word.is-spinning .type-ink {
  transform:perspective(320px) rotateX(18deg) scale(.96);
  filter:brightness(1.8) drop-shadow(0 0 12px var(--cyber-hot));
}

.gyro-meta {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:700 9.4px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;
  color:var(--letter-tone);
}

.gyro-meta i {
  font-style:normal;
  text-shadow:0 0 8px color-mix(in srgb,var(--letter-tone) 55%,transparent);
}

.gyro-badge {
  font:700 8.2px/1 ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.06em;
  color:var(--ink-light);
  opacity:.72;
  position:relative;
  padding-left:7px;
}

.gyro-badge::before {
  content:"⌖";
  position:absolute;
  left:0;
  top:-.5px;
  color:var(--cyber-hot);
}

.gyro-main {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.gyro-svg {
  width:25px;
  height:25px;
  flex:none;
  fill:none;
  stroke:var(--letter-tone);
  stroke-width:1.5;
  filter:drop-shadow(0 0 6px color-mix(in srgb,var(--letter-tone) 50%,transparent));
  transition:transform .38s cubic-bezier(.22,1,.36,1);
}

.gyro-svg .gyro-ring {
  stroke-dasharray:4 2.5;
  opacity:.65;
}

.gyro-svg .gyro-orbit {
  stroke:var(--ink-light);
  stroke-width:1.35;
  transform-origin:13px 13px;
  transition:transform .42s cubic-bezier(.22,1,.36,1);
}

.gyro-svg .gyro-needle {
  stroke:var(--cyber-hot);
  stroke-width:1.5;
  stroke-linecap:round;
  transform-origin:13px 13px;
  transition:transform .38s cubic-bezier(.22,1,.36,1);
}

.gyro-svg .gyro-core {
  fill:var(--ink-light);
  stroke:none;
}

.gyro-word:hover .gyro-svg,
.gyro-word.is-active .gyro-svg {
  transform:rotate(15deg) scale(1.06);
}

.gyro-word:hover .gyro-svg .gyro-orbit,
.gyro-word.is-active .gyro-svg .gyro-orbit {
  transform:rotate(-28deg);
}

.gyro-word .type-ink,
.kwave-word .type-ink,
.cli-word .type-ink {
  font-size:clamp(23px,2.25vw,30px);
  font-weight:680;
  letter-spacing:-.03em;
  line-height:1.1;
  transition:transform .18s ease,filter .18s ease;
}

html[lang=en-US] .gyro-word .type-ink,
html[lang=en-US] .kwave-word .type-ink {
  font-size:clamp(19px,1.88vw,24px);
}

.gyro-word.is-active .type-ink,
.gyro-word:hover .type-ink {
  filter:
    drop-shadow(0 0 12px color-mix(in srgb,var(--letter-tone) 50%,transparent))
    drop-shadow(0 2px 0 rgba(0,240,255,.32));
}

/* Horizon Vernier Tick Ruler */
.gyro-ruler {
  display:inline-flex;
  align-items:center;
  gap:5px;
  height:7px;
  margin-top:2px;
  position:relative;
}

.gyro-ruler i {
  width:1.5px;
  height:5px;
  background:var(--letter-tone);
  opacity:.34;
  transition:height .18s ease,opacity .18s ease;
}

.gyro-ruler i:nth-child(odd) {
  height:7px;
  opacity:.52;
}

.gyro-ruler b.is-needle {
  width:9px;
  height:3px;
  border-radius:99px;
  background:var(--cyber-hot);
  box-shadow:0 0 8px var(--cyber-hot);
  transition:transform .28s cubic-bezier(.22,1,.36,1),width .2s ease;
}

.gyro-word:hover .gyro-ruler b.is-needle,
.gyro-word.is-active .gyro-ruler b.is-needle {
  width:15px;
  transform:translateX(3px);
}

.rotate-stage.is-centered-stage {
  margin-inline:auto;
  width:min(100%,860px);
  min-height:clamp(310px,40vh,400px);
  height:auto;
  padding:0;
  display:grid;
  place-items:center;
}

#orientation .rotator[data-orientation=wide] {
  width:min(100%,760px);
}

.rotate-stage[data-layout=tall] {
  min-height:0;
  height:auto;
  padding:0;
}

.rotate-stage[data-layout=tall] .orientation-phone-slot {
  display:block;
  width:min(100%,256px);
  margin-inline:auto;
}

/* ==========================================================================
   SCREEN 4 (#keyboard): Acoustic Key-Wave Triggers + Paired Mac & iPhone Stage
   ========================================================================== */
.kwave-word[data-toolbar-mode="keys"] {--ink-light:#9dfde9;--ink-deep:#54ccff;--letter-tone:#58dbec;--cyber-hot:#ff4fd8}
.kwave-word[data-toolbar-mode="mods"] {--ink-light:#a7dbff;--ink-deep:#6495ff;--letter-tone:#73b4ff;--cyber-hot:#00f0ff}
.kwave-word[data-toolbar-mode="clip"] {--ink-light:#e6c6ff;--ink-deep:#bb8bff;--letter-tone:#cc9bff;--cyber-hot:#ffe66d}
.kwave-word[data-toolbar-mode="cand"] {--ink-light:#a7f4c1;--ink-deep:#58dba7;--letter-tone:#70eab0;--cyber-hot:#58dbec}

.kwave-word {
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:4px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  opacity:.66;
  transition:opacity .18s ease,transform .16s ease;
}

.kwave-word:hover,
.kwave-word:focus-visible,
.kwave-word.is-active {
  opacity:1;
  transform:translateY(-1px);
}

.kwave-word.is-striking .kwave-svg {
  transform:translateY(2.5px) scale(.95)!important;
}

.kwave-word.is-striking .type-ink {
  filter:brightness(1.9) drop-shadow(0 0 14px var(--cyber-hot))!important;
}

.kwave-meta {
  display:inline-flex;
  align-items:center;
  gap:6px;
  font:700 9.4px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;
  color:var(--letter-tone);
}

.kwave-meta i {
  font-style:normal;
}

.kwave-cap {
  font:700 8.5px/1 ui-monospace,SFMono-Regular,monospace;
  color:var(--ink-light);
  padding:0;
  background:transparent;
  border:0;
  text-shadow:0 0 8px var(--cyber-hot);
}

.kwave-main {
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.kwave-svg {
  width:25px;
  height:25px;
  flex:none;
  fill:none;
  stroke:var(--letter-tone);
  stroke-width:1.5;
  stroke-linecap:round;
  stroke-linejoin:round;
  filter:drop-shadow(0 0 6px color-mix(in srgb,var(--letter-tone) 50%,transparent));
  transition:transform .16s cubic-bezier(.22,1,.36,1);
}

.kwave-svg .kwave-key-top {
  fill:color-mix(in srgb,var(--letter-tone) 14%,transparent);
}

.kwave-svg .kwave-key-stem {
  stroke:var(--ink-deep);
  opacity:.65;
}

.kwave-svg .kwave-key-legend {
  stroke:var(--ink-light);
  stroke-width:1.65;
}

.kwave-word:hover .kwave-svg,
.kwave-word.is-active .kwave-svg {
  transform:translateY(1px);
}

.kwave-word.is-active .type-ink,
.kwave-word:hover .type-ink {
  filter:
    drop-shadow(0 0 12px color-mix(in srgb,var(--letter-tone) 52%,transparent))
    drop-shadow(1.5px 0 0 rgba(255,79,216,.34));
}

/* 9-Bar Acoustic Synthesizer Equalizer */
.kwave-eq {
  display:inline-flex;
  align-items:flex-end;
  gap:2.5px;
  height:8px;
  margin-top:2px;
}

.kwave-eq i {
  width:2.5px;
  height:3px;
  border-radius:1px;
  background:var(--letter-tone);
  opacity:.35;
  transition:height .18s ease,opacity .18s ease,background .18s ease;
}

.kwave-eq i:nth-child(2),
.kwave-eq i:nth-child(8) {height:5px}
.kwave-eq i:nth-child(3),
.kwave-eq i:nth-child(7) {height:7px}
.kwave-eq i:nth-child(4),
.kwave-eq i:nth-child(6) {height:4px}
.kwave-eq i:nth-child(5) {height:8px;background:var(--cyber-hot)}

@keyframes kwave-pulse {
  0%,100% {transform:scaleY(.55)}
  50% {transform:scaleY(1.28)}
}

.kwave-word.is-active .kwave-eq i,
.kwave-word:hover .kwave-eq i {
  opacity:.95;
  transform-origin:bottom center;
  animation:kwave-pulse .72s ease-in-out infinite;
}

.kwave-word.is-active .kwave-eq i:nth-child(2n),
.kwave-word:hover .kwave-eq i:nth-child(2n) {
  animation-delay:.18s;
}

.kwave-word.is-active .kwave-eq i:nth-child(3n),
.kwave-word:hover .kwave-eq i:nth-child(3n) {
  animation-delay:.34s;
}

/* Paired Mac Codex Window + Portrait iPhone Air Stage (Screen 4) */
.kb-paired-stage {
  margin:0 auto;
  width:fit-content;
  max-width:100%;
  display:grid;
  grid-template-columns:minmax(0,680px) 266px;
  justify-content:center;
  align-items:center;
  gap:0;
  position:relative;
}

@media (min-width:961px) {
  .kb-paired-stage .kb-mac-display {
    position:relative;
    z-index:2;
    transition:transform .34s cubic-bezier(.22,1,.36,1),filter .34s ease;
  }
  .kb-paired-stage #toolbar-stage {
    position:relative;
    z-index:4;
    margin-left:-38px;
    transform:translateY(12px);
    transition:transform .34s cubic-bezier(.22,1,.36,1),filter .34s ease;
  }
  .kb-paired-stage .kb-mac-display:hover {
    z-index:6;
    transform:translateY(-4px) scale(1.008);
    filter:drop-shadow(0 28px 60px rgba(0,0,0,.62));
  }
  .kb-paired-stage #toolbar-stage:hover {
    z-index:6;
    transform:translateY(6px) scale(1.012);
  }
}

.kb-mac-display {
  margin-top:0;
  width:100%;
  border-radius:14px;
  padding:0;
  background:none;
  box-shadow:none;
}

.kb-os-desktop {
  position:relative;
  border-radius:14px;
  overflow:hidden;
  background:#141923;
  box-shadow:0 28px 68px rgba(0,0,0,.56),0 6px 20px rgba(0,0,0,.32),inset 0 0 0 1px rgba(255,255,255,.14);
}

.kb-os-menu {
  position:relative;
  z-index:3;
  height:24px;
  padding:0 11px;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  background:rgba(242,240,236,.84);
  backdrop-filter:blur(16px);
  color:#1d1d1f;
  font:540 11px/1 var(--ui);
  border-bottom:1px solid rgba(0,0,0,.08);
  white-space:nowrap;
}

.kb-os-menu-left,
.kb-os-menu-right {
  display:flex;
  align-items:center;
  gap:10px;
  white-space:nowrap;
  min-width:0;
}

.kb-os-menu-left .os-apple {
  font-size:12.5px;
}

.kb-os-menu-left b {
  font-weight:650;
}

.kb-menu-pill {
  padding:2px 7px;
  border-radius:99px;
  background:rgba(0,113,227,.13);
  color:#0058b9;
  font:600 10px/1.2 var(--ui);
  white-space:nowrap;
}

.kb-os-canvas {
  position:relative;
  padding:12px 14px 38px;
  overflow:hidden;
}

.kb-os-wallpaper {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.88);
  pointer-events:none;
}

.kb-mac-window {
  position:relative;
  z-index:2;
  margin-top:0;
  border-radius:11px;
  overflow:hidden;
  background:#fff;
  color:#18181b;
  box-shadow:
    0 16px 38px rgba(0,0,0,.38),
    0 0 0 1px rgba(0,0,0,.12);
}

.kb-mac-bar {
  height:32px;
  padding:0 12px;
  background:#f4f4f6;
  border-bottom:1px solid #e4e4e7;
  display:flex;
  align-items:center;
  gap:9px;
}

.kb-mac-bar-title {
  display:flex;
  align-items:baseline;
  gap:7px;
  min-width:0;
}

.kb-mac-bar-title strong {
  font:600 12px/1.2 var(--ui);
  color:#18181b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-mac-bar-title span {
  font:500 10.5px/1.2 var(--ui);
  color:#71717a;
}

.kb-mac-status-pill {
  margin-inline-start:auto;
  padding:2.5px 8px;
  border-radius:99px;
  background:#e0f2fe;
  color:#0369a1;
  font:600 10px/1.2 var(--ui);
  white-space:nowrap;
}

.kb-mac-body {
  padding:11px 14px 12px;
  background:#fff;
  display:grid;
  gap:9px;
}

.kb-mac-diff-context {
  border-radius:8px;
  border:1px solid #e4e4e7;
  background:#fbfbfc;
  overflow:hidden;
}

.kb-diff-bar {
  padding:4.5px 9px;
  background:#f4f4f6;
  border-bottom:1px solid #e4e4e7;
  display:flex;
  justify-content:space-between;
  font:540 10.5px/1.2 var(--ui);
  color:#52525b;
}

.kb-diff-bar b {
  color:#15803d;
}

.kb-diff-code {
  padding:5px 9px;
  background:#dcfce7;
  color:#14532d;
  font:560 10.5px/1.32 ui-monospace,SFMono-Regular,Menlo,monospace;
}

.kb-cx-composer {
  padding:8px 11px;
  border-radius:10px;
  border:1.5px solid #d4d4d8;
  background:#fff;
  box-shadow:0 2px 8px rgba(0,0,0,.04);
  display:grid;
  gap:7px;
  transition:border-color .18s ease,box-shadow .18s ease;
}

.kb-cx-composer.is-pulsing {
  border-color:#0071e3;
  box-shadow:0 0 0 3px rgba(0,113,227,.14);
}

.kb-cx-input-line {
  display:flex;
  align-items:center;
  gap:4px;
  min-height:20px;
  font:540 13.5px/1.32 var(--ui);
  color:#18181b;
}

.ime-caret {
  width:2px;
  height:15px;
  background:#0071e3;
  display:inline-block;
  animation:caret-blink 1s steps(2,start) infinite;
}

.tb-key-badge {
  margin-inline-start:auto;
  padding:2px 7px;
  border-radius:6px;
  background:#f1f5f9;
  border:1px solid #cbd5e1;
  color:#0f172a;
  font:600 11px/1.2 ui-monospace,SFMono-Regular,monospace;
}

.tb-key-badge[hidden] {
  display:none!important;
}

.kb-cx-composer-foot {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding-top:4px;
  border-top:1px solid #f1f1f4;
}

.kb-cx-meta {
  display:flex;
  align-items:center;
  gap:8px;
  font:550 10.5px/1 var(--ui);
  color:#71717a;
}

.kb-cx-send {
  width:21px;
  height:21px;
  border-radius:50%;
  background:#18181b;
  color:#fff;
  display:grid;
  place-items:center;
  font-size:10.5px;
  font-weight:700;
}

.kb-mac-subnote {
  margin:0;
  font:480 11.5px/1.4 var(--ui);
  color:#71717a;
}

/* Right Portrait iPhone Air in Screen 4 (#keyboard) */
.auth-remote-stage.is-kb-remote {
  aspect-ratio:16 / 10.2;
}

.kb-phone-codex {
  position:absolute;
  inset:14px 6px 5px;
  border-radius:7px;
  background:#fff;
  color:#18181b;
  box-shadow:0 4px 12px rgba(0,0,0,.28);
  padding:4.5px 6.5px;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:2px;
  overflow:hidden;
}

.kb-phone-codex-head {
  display:flex;
  align-items:center;
  gap:5px;
  font-size:8.2px;
}

.kb-phone-codex-head .os-lights {gap:3px}
.kb-phone-codex-head .os-lights i {width:5px;height:5px}

.kb-phone-codex-head strong {
  font:600 8.2px/1.1 var(--ui);
  color:#18181b;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-phone-codex-head small {
  margin-inline-start:auto;
  color:#15803d;
  font:600 7.8px/1 ui-monospace,monospace;
}

.kb-phone-codex-prompt {
  align-self:flex-end;
  padding:2px 5.5px;
  border-radius:5px;
  background:#f4f4f6;
  color:#27272a;
  font:540 7px/1.2 var(--ui);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  max-width:92%;
}

.kb-phone-codex-diff {
  padding:2px 5px;
  border-radius:4px;
  background:#dcfce7;
  color:#14532d;
  font:600 6.6px/1.2 ui-monospace,SFMono-Regular,monospace;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-phone-codex-input {
  padding:3px 5.5px;
  border-radius:5px;
  border:1px solid #cbd5e1;
  background:#fff;
  display:flex;
  align-items:center;
  gap:3px;
  font:550 8.4px/1.2 var(--ui);
  color:#18181b;
}

.kb-phone-codex-input .air-slice-text {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.kb-phone-codex-input .ime-caret {
  height:10px;
}

/* 5-Icon Toolbar Inside Screen 4 iPhone Air (Matched to Screen 1 .mmp-toolbar) */
.tb-dock-bar.is-compact-dock {
  position:relative;
  display:grid;
  grid-template-columns:repeat(5,minmax(0,1fr));
  gap:3px;
  padding:2.5px;
  border-radius:999px;
  background:#1c1d22;
  border:1px solid rgba(255,255,255,.07);
  flex:none;
}

.tb-dock-pill {
  position:absolute;
  top:2.5px;
  bottom:2.5px;
  left:2.5px;
  width:calc((100% - 5px) / 5);
  border-radius:999px;
  background:#2d323e;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.1);
  transform:translateX(calc(var(--tb-idx,1) * 100%));
  transition:transform .22s cubic-bezier(.22,1,.36,1);
  pointer-events:none;
}

.tb-dock-btn {
  position:relative;
  z-index:1;
  height:25px;
  border-radius:999px;
  display:grid;
  place-items:center;
  color:#d9dee7;
  cursor:pointer;
}

.tb-dock-btn.is-active {
  color:#8ec5ff;
}

.tb-dock-btn .air-icon,
.tb-dock-btn .sys-symbol {
  width:14px;
  height:14px;
}

.tb-drawer-pane {
  flex:1;
  min-height:0;
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
}

.tb-drawer-pane[hidden] {
  display:none!important;
}

.tb-keys-sheet {
  flex:1;
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4.5px;
  padding:6.5px;
  border-radius:14px;
  background:#161a21;
  border:1px solid rgba(255,255,255,.09);
}

.tb-clip-sheet {
  flex:1;
  min-width:0;
  overflow:hidden;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4.5px;
  padding:6.5px;
  border-radius:14px;
  background:#161a21;
  border:1px solid rgba(255,255,255,.09);
}

.tb-pinyin-buffer {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:4.5px 8px;
  border-radius:7px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  font-size:9.5px;
}

.pinyin-raw {
  font:600 9.8px/1.2 ui-monospace,SFMono-Regular,monospace;
  color:#f4f6fa;
  letter-spacing:.02em;
}

.tb-pinyin-buffer small {
  color:rgba(219,224,232,.56);
  font-size:8.6px;
}

.tb-cand-strip {
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:3.5px;
}

.tb-cand {
  padding:4.5px 3px;
  border-radius:6px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.08);
  color:#dbe2ec;
  font:540 8.2px/1.2 var(--ui);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
  cursor:pointer;
}

.tb-cand.is-picked,
.tb-cand:hover {
  background:rgba(255,255,255,.16);
  border-color:rgba(255,255,255,.28);
  color:#fff;
  font-weight:600;
}

.tb-mod-strip {
  display:grid;
  grid-template-columns:repeat(11,minmax(0,1fr));
  gap:2px;
  padding:3px;
  border-radius:7px;
  background:#0f1217;
  border:1px solid rgba(255,255,255,.08);
  transition:border-color .18s ease,box-shadow .18s ease;
}

.toolbar-stage[data-toolbar-mode="mods"] .tb-mod-strip {
  border-color:rgba(142,197,255,.55);
  box-shadow:0 0 0 2px rgba(0,113,227,.22);
}

.tb-mod-strip button {
  min-height:21px;
  padding:0 1px;
  border-radius:4.5px;
  background:#232832;
  color:#e9eef5;
  font:600 8.2px/1 ui-monospace,SFMono-Regular,monospace;
  cursor:pointer;
}

.tb-mod-strip button.is-mod {
  background:#2c3545;
  color:#fff;
}

.tb-mod-strip button.is-enter {
  background:#0071e3;
  color:#fff;
}

.tb-mod-strip button.is-pressed,
.tb-mod-strip button:active {
  background:#eff2f6;
  color:#16202d;
}

.tb-mini-qwerty {
  display:grid;
  gap:3.5px;
  padding-top:1px;
  font:580 9.6px/1 var(--ui);
  color:#f2f5f9;
}

.tb-mini-qwerty>div {
  display:grid;
  grid-template-columns:repeat(10,1fr);
  gap:2.5px;
}

.tb-mini-qwerty .row-mid {
  grid-template-columns:repeat(9,1fr);
  padding-inline:4%;
}

.tb-mini-qwerty .row-bot {
  grid-template-columns:1.3fr repeat(7,1fr) 1.3fr;
}

.tb-mini-qwerty .row-space {
  grid-template-columns:1.25fr 1fr 4.5fr 1.6fr;
}

.tb-mini-qwerty span {
  height:23px;
  border-radius:4.5px;
  background:#323741;
  box-shadow:0 1px 0 rgba(0,0,0,.45);
  display:grid;
  place-items:center;
}

.tb-mini-qwerty span.fn {
  background:#232730;
  color:#cfd6e0;
  font-size:8.4px;
}

.tb-mini-qwerty span.is-go {
  background:#0071e3;
  color:#fff;
  font-weight:600;
}

.tb-clip-note {
  font:520 9.5px/1.3 var(--ui);
  color:rgba(219,224,232,.68);
  text-align:center;
}

.tb-clip-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:5px;
}

.tb-clip-btn {
  padding:5px 7px;
  border-radius:7px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
  color:#eef2f7;
  font:580 9.8px/1.2 var(--ui);
  cursor:pointer;
}

.tb-clip-btn.is-primary {
  background:#eff2f6;
  color:#16202d;
  border-color:#fff;
}

.tb-clip-list {
  display:grid;
  gap:4px;
  min-width:0;
}

.tb-clip-item {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:6px;
  padding:5px 7px;
  border-radius:8px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-align:start;
  cursor:pointer;
}

.tb-clip-item>div {
  flex:1;
  min-width:0;
}

.tb-clip-item.is-selected,
.tb-clip-item:hover {
  background:rgba(255,255,255,.10);
  border-color:rgba(255,255,255,.22);
}

.tb-clip-item strong {
  display:block;
  font:600 8.8px/1.2 ui-monospace,SFMono-Regular,monospace;
  color:#f2f5f9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tb-clip-item small {
  display:block;
  margin-top:1.5px;
  font:480 8.1px/1.2 var(--ui);
  color:rgba(219,224,232,.62);
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.tb-clip-item>span {
  flex:none;
  padding:2px 5.5px;
  border-radius:99px;
  background:rgba(255,255,255,.1);
  color:#f2f5f9;
  font:580 8.2px/1.1 var(--ui);
  white-space:nowrap;
}

/* ==========================================================================
   SCREEN 5 (#terminal): Dual Portrait iPhone Air (Remote Terminal + Files)
   ========================================================================== */
.workflow-dual-grid {
  width:min(100%,960px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(20px,3vw,40px);
  align-items:start;
}

.workflow-phone-col {
  display:grid;
  gap:8px;
  min-width:0;
}

.workflow-phone-col .air-portrait-phone {
  max-width:262px;
}

.workflow-col-head.is-cli-head {
  position:relative;
  display:flex;
  justify-content:center;
  align-items:center;
  padding-bottom:6px;
}

.cli-trigger-row {
  position:relative;
  z-index:2;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:flex-start;
  gap:clamp(18px,2.2vw,28px);
}

.cli-word[data-term-mode="codex"] {--ink-light:#a7f4c1;--ink-deep:#58dba7;--letter-tone:#70eab0;--cyber-hot:#00f0ff}
.cli-word[data-term-mode="claude"] {--ink-light:#ffdaa1;--ink-deep:#ffa45e;--letter-tone:#ffba70;--cyber-hot:#ff4fd8}
.cli-word[data-term-mode="sessions"] {--ink-light:#a7dbff;--ink-deep:#6495ff;--letter-tone:#73b4ff;--cyber-hot:#58dbec}
.cli-word[data-files-mode="pull"] {--ink-light:#9dfde9;--ink-deep:#54ccff;--letter-tone:#58dbec;--cyber-hot:#ffe66d}
.cli-word[data-files-mode="preview"] {--ink-light:#e6c6ff;--ink-deep:#bb8bff;--letter-tone:#cc9bff;--cyber-hot:#00f0ff}
.cli-word[data-files-mode="send"] {--ink-light:#f6c4db;--ink-deep:#f18fae;--letter-tone:#f6aac6;--cyber-hot:#70eab0}

.cli-word {
  position:relative;
  display:inline-flex;
  flex-direction:column;
  align-items:flex-start;
  gap:3px;
  padding:0;
  border:0;
  background:transparent;
  box-shadow:none;
  cursor:pointer;
  text-align:left;
  opacity:.64;
  transition:opacity .18s ease,transform .18s ease;
}

.cli-word:hover,
.cli-word:focus-visible,
.cli-word.is-active {
  opacity:1;
  transform:translateY(-1px);
}

.cli-meta {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font:700 8.8px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.1em;
  color:var(--letter-tone);
}

.cli-meta i {
  font-style:normal;
}

.cli-cursor {
  font-weight:700;
  color:var(--cyber-hot);
  text-shadow:0 0 8px var(--cyber-hot);
  animation:caret-blink 1.1s steps(2,start) infinite;
}

.cli-main {
  display:inline-flex;
  align-items:baseline;
  gap:5px;
}

.cli-prompt {
  font:700 16px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:var(--letter-tone);
  text-shadow:0 0 8px color-mix(in srgb,var(--letter-tone) 60%,transparent);
}

.cli-word .type-ink {
  font-size:clamp(19px,1.75vw,23px);
}

html[lang=en-US] .cli-word .type-ink {
  font-size:clamp(17px,1.55vw,20px);
}

.cli-word.is-active .type-ink,
.cli-word:hover .type-ink {
  filter:drop-shadow(0 0 10px color-mix(in srgb,var(--letter-tone) 50%,transparent));
}

.cli-pipe {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-top:1px;
}

.cli-pipe i {
  width:7px;
  height:2.5px;
  border-radius:1px;
  background:var(--letter-tone);
  opacity:.32;
  transition:opacity .18s ease,background .18s ease,box-shadow .18s ease;
}

.cli-word.is-active .cli-pipe i:nth-child(1),
.cli-word:hover .cli-pipe i:nth-child(1) {
  opacity:1;
  background:var(--ink-light);
}

.cli-word.is-active .cli-pipe i:nth-child(2),
.cli-word:hover .cli-pipe i:nth-child(2) {
  opacity:.9;
  background:var(--cyber-hot);
  box-shadow:0 0 6px var(--cyber-hot);
}

.cli-word.is-active .cli-pipe i:nth-child(3),
.cli-word:hover .cli-pipe i:nth-child(3) {
  opacity:.75;
}

.cli-pipe b {
  font:700 7.8px/1 ui-monospace,SFMono-Regular,monospace;
  letter-spacing:.08em;
  color:var(--ink-light);
  opacity:.78;
}

.term-count-pill,
.files-scope-tag {
  padding:2.5px 7px;
  border-radius:99px;
  background:rgba(255,255,255,.08);
  border:1px solid rgba(255,255,255,.11);
  color:#dbe2ec;
  font:560 9.4px/1.1 var(--ui);
  white-space:nowrap;
}

.term-count-pill {
  cursor:pointer;
}

/* Mirrored Mac Desktop Peek Above Native iOS Sheet */
.auth-desktop-peek {
  position:relative;
  height:42px;
  border-radius:9px;
  overflow:hidden;
  background:#141923;
  border:1px solid rgba(255,255,255,.11);
  flex:none;
}

.auth-desktop-peek img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.82);
}

.auth-peek-window {
  position:absolute;
  left:6px;
  right:6px;
  top:4px;
  bottom:0;
  border-radius:6px 6px 0 0;
  background:rgba(250,250,252,.96);
  color:#18181b;
  padding:3px 6px;
  display:flex;
  flex-direction:column;
  gap:1.5px;
  font:600 8.2px/1.1 var(--ui);
  box-shadow:0 4px 12px rgba(0,0,0,.28);
  overflow:hidden;
}

.auth-peek-bar {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
}

.auth-peek-bar span {
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-peek-window .os-lights {gap:3px;flex:none}
.auth-peek-window .os-lights i {width:4.5px;height:4.5px}

.auth-peek-code {
  padding:1.5px 4.5px;
  border-radius:3px;
  background:#dcfce7;
  color:#14532d;
  font:600 6.2px/1.12 ui-monospace,SFMono-Regular,monospace;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.auth-peek-file {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:1.5px 4.5px;
  border-radius:3px;
  background:#eff6ff;
  color:#1e40af;
  font:580 6.8px/1.12 var(--ui);
  white-space:nowrap;
  overflow:hidden;
}

.auth-peek-file b {
  color:#0284c7;
  font-family:ui-monospace,SFMono-Regular,monospace;
}

.auth-sheet-card {
  flex:1;
  min-height:0;
  min-width:0;
  overflow:hidden;
  padding:6.5px;
  border-radius:14px;
  background:#14181f;
  border:1px solid rgba(255,255,255,.1);
  display:flex;
  flex-direction:column;
  gap:4.5px;
}

.term-reconnect-banner {
  display:flex;
  align-items:center;
  gap:5px;
  padding:4px 7px;
  border-radius:7px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#cfd8e3;
  font:520 9.4px/1.2 var(--ui);
  flex:none;
}

.reconnect-dot {
  width:5.5px;
  height:5.5px;
  border-radius:50%;
  background:#34d399;
  flex:none;
}

.term-session-tabs {
  display:flex;
  align-items:center;
  gap:3.5px;
  flex:none;
}

.term-tab {
  flex:1;
  min-width:0;
  min-height:23px;
  padding:0 5px;
  border-radius:6px;
  background:rgba(255,255,255,.045);
  border:1px solid rgba(255,255,255,.08);
  color:rgba(235,240,247,.68);
  font:560 9.5px/1 ui-monospace,SFMono-Regular,monospace;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:3.5px;
  white-space:nowrap;
  cursor:pointer;
}

.term-tab.is-add {
  flex:0 0 23px;
  padding:0;
  font-size:12px;
}

.term-tab.is-active {
  background:rgba(255,255,255,.15);
  border-color:rgba(255,255,255,.24);
  color:#fff;
  font-weight:600;
}

.dot-codex,.dot-claude,.dot-zsh {
  width:5px;
  height:5px;
  border-radius:50%;
  flex:none;
}
.dot-codex {background:#60a5fa}
.dot-claude {background:#fb923c}
.dot-zsh {background:#34d399}

.term-pane[hidden] {display:none!important}
.term-pane.is-active {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4.5px;
  min-height:0;
  min-width:0;
  overflow:hidden;
}

.term-console-box {
  flex:1;
  min-width:0;
  overflow:hidden;
  padding:6.5px 7.5px;
  border-radius:9px;
  background:#0b0e13;
  border:1px solid rgba(255,255,255,.09);
  display:flex;
  flex-direction:column;
  justify-content:flex-start;
  gap:4.5px;
  font:480 9.2px/1.32 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#d4dce6;
}

.term-agent-banner {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  padding:3.5px 6px;
  border-radius:5px;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.09);
}

.term-agent-banner strong {
  color:#f4f6fa;
  font-size:8.6px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.term-agent-banner span {
  color:rgba(219,224,232,.62);
  font-size:8.4px;
  white-space:nowrap;
}

.term-line.is-prompt {color:#f4f6fa;font-size:8.8px;font-weight:580;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.term-line.is-success {
  padding:3px 6px;
  border-radius:5px;
  background:rgba(52,211,153,.14);
  border:1px solid rgba(52,211,153,.32);
  color:#a7f3d0;
  font-size:9px;
}
.term-line[hidden] {display:none!important}

.term-diff-card {
  padding:4.5px 6.5px;
  border-radius:7px;
  background:#11161f;
  border:1px solid rgba(255,255,255,.07);
  display:grid;
  gap:2px;
  font-size:8.2px;
  min-width:0;
  overflow:hidden;
}

.term-diff-head {
  display:flex;
  justify-content:space-between;
  color:#94a3b8;
  padding-bottom:1.5px;
  border-bottom:1px solid rgba(255,255,255,.06);
}

.term-diff-head b {color:#4ade80}
.term-diff-minus {
  color:#fca5a5;
  background:rgba(239,68,68,.12);
  padding:1px 4px;
  border-radius:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.term-diff-plus {
  color:#86efac;
  background:rgba(34,197,94,.14);
  padding:1px 4px;
  border-radius:3px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.term-confirm-row {
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:4px;
  color:#e2e8f0;
  font-size:9px;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.term-confirm-row b {color:#4ade80}
.term-cursor {
  width:4.5px;
  height:10px;
  background:#4ade80;
  display:inline-block;
  flex:none;
  animation:caret-blink 1s steps(2,start) infinite;
}

.term-quick-bar {
  display:flex;
  gap:3.5px;
  flex:none;
}

.term-quick-bar button {
  flex:1 0 auto;
  min-height:24px;
  padding:0 5px;
  border-radius:6px;
  background:#222731;
  border:1px solid rgba(255,255,255,.1);
  color:#eef2f7;
  font:580 8.8px/1 ui-monospace,SFMono-Regular,monospace;
  white-space:nowrap;
  cursor:pointer;
}

.term-quick-bar button.is-approve {
  flex:1.15 0 auto;
  background:#eff2f6;
  color:#16202d;
  border-color:#fff;
  font-weight:650;
}

.term-quick-bar button.is-warn {
  color:#fca5a5;
}

.term-step-list {display:grid;gap:3px;min-width:0}
.term-step {
  display:flex;
  align-items:center;
  gap:4px;
  min-width:0;
  overflow:hidden;
  padding:3px 5.5px;
  border-radius:5px;
  background:#11161f;
  border:1px solid rgba(255,255,255,.06);
  font-size:8.6px;
}
.term-step .ok {color:#4ade80;font-weight:700;flex:none}
.term-step b {color:#fdba74;flex:none}
.term-step code {color:#cbd5e1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.term-claude-reply {
  padding:5px 7px;
  border-radius:6px;
  background:rgba(255,255,255,.04);
  border-left:2px solid #fb923c;
  color:#e2e8f0;
  font:480 9px/1.32 var(--ui);
}

.term-claude-input {
  margin-top:auto;
  display:flex;
  align-items:center;
  gap:4px;
  padding:3.5px 5.5px;
  border-radius:6px;
  background:#141923;
  border:1px solid rgba(255,255,255,.12);
}
.term-claude-input span {color:#fb923c;font-weight:700}
.term-claude-input input {
  flex:1;
  min-width:0;
  background:0 0;
  border:0;
  color:#f1f5f9;
  font:520 8.5px/1.2 var(--ui);
  outline:none;
}
.term-claude-input button {
  padding:2.5px 6px;
  border-radius:4.5px;
  background:#eff2f6;
  color:#16202d;
  font:600 9px/1 var(--ui);
  cursor:pointer;
}

.term-sessions-drawer {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:5px;
  flex:1;
}

.term-sessions-list {display:grid;gap:4px}
.term-sess-card {
  display:grid;
  gap:1.5px;
  padding:5.5px 8px;
  border-radius:8px;
  background:#0e1218;
  border:1px solid rgba(255,255,255,.08);
  text-align:start;
  cursor:pointer;
}
.term-sess-card.is-active,
.term-sess-card:hover {
  background:rgba(255,255,255,.09);
  border-color:rgba(255,255,255,.22);
}
.term-sess-top {display:flex;align-items:center;justify-content:space-between;gap:5px}
.term-sess-top strong {
  display:inline-flex;
  align-items:center;
  gap:5px;
  font:600 9.8px/1.2 ui-monospace,SFMono-Regular,monospace;
  color:#f1f5f9;
}
.sess-badge {
  padding:1.5px 5.5px;
  border-radius:99px;
  background:rgba(255,255,255,.08);
  color:#cbd5e1;
  font:560 8.8px/1.2 var(--ui);
}
.sess-badge.is-blue {background:rgba(96,165,250,.18);color:#bfdbfe}
.sess-badge.is-green {background:rgba(74,222,128,.18);color:#bbf7d0}
.term-sess-card small {font:460 9px/1.22 var(--ui);color:#94a3b8}
.term-new-sess-btn {
  padding:5.5px;
  border-radius:7px;
  background:rgba(255,255,255,.06);
  border:1px dashed rgba(255,255,255,.2);
  color:#e2e8f0;
  font:560 9.8px/1.2 var(--ui);
  text-align:center;
  cursor:pointer;
}

/* Right Portrait iPhone Air: Shared Folder File Transfer */
.files-context-banner {
  padding:4.5px 7px;
  border-radius:7px;
  background:rgba(255,255,255,.05);
  border:1px solid rgba(255,255,255,.08);
  color:#cfd8e3;
  font:500 9.4px/1.3 var(--ui);
  flex:none;
}

.files-pane[hidden] {display:none!important}
.files-pane.is-active {
  flex:1;
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:4.5px;
  min-height:0;
}

.files-list-box {display:grid;gap:4px;width:100%;min-width:0}
.files-card {
  width:100%;
  min-width:0;
  box-sizing:border-box;
  display:flex;
  align-items:center;
  gap:5px;
  padding:4.5px 6px;
  border-radius:8.5px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.08);
  text-align:start;
  cursor:pointer;
  transition:background .15s,border-color .15s;
}
.files-card.is-featured,
.files-card:hover {
  background:rgba(255,255,255,.1);
  border-color:rgba(255,255,255,.22);
}
.files-thumb {
  width:24px;
  height:24px;
  border-radius:6px;
  display:grid;
  place-items:center;
  flex:none;
  font:700 7.8px/1 ui-monospace,SFMono-Regular,monospace;
  color:#fff;
}
.files-thumb.is-img {background:#2563eb}
.files-thumb.is-pdf {background:#dc2626}
.files-thumb.is-md {background:#059669}
.files-thumb.is-shot {background:#7c3aed}

.files-meta {flex:1;min-width:0}
.files-meta strong {
  display:block;
  font:600 9.2px/1.18 var(--ui);
  color:#f1f5f9;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.files-meta small {
  display:block;
  margin-top:1px;
  font-size:8.2px;
  color:#94a3b8;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}

.files-action-pill {
  padding:2px 5.5px;
  border-radius:99px;
  background:rgba(255,255,255,.09);
  color:#e2e8f0;
  font:580 8.2px/1.1 var(--ui);
  white-space:nowrap;
  flex:none;
}
.files-action-pill.is-done {
  background:rgba(52,211,153,.18);
  color:#a7f3d0;
}
.files-action-pill.is-up {
  background:rgba(167,139,250,.18);
  color:#ddd6fe;
}

.files-foot-note {
  padding:2.5px 5px;
  color:#94a3b8;
  font-size:8.8px;
  line-height:1.25;
  text-align:center;
}

.files-preview-sheet {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:5px;
  flex:1;
}
.files-preview-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  font-size:9.8px;
  color:#94a3b8;
}
.files-back-link {color:#93c5fd;font-weight:580;cursor:pointer}
.files-preview-bar strong {color:#f1f5f9;font-size:10.2px}
.files-preview-canvas {
  border-radius:10px;
  overflow:hidden;
  flex:1;
  border:1px solid rgba(255,255,255,.12);
  background:#0b0e13;
  display:grid;
}
.preview-render-frame {
  position:relative;
  min-height:110px;
  padding:8px;
  box-sizing:border-box;
  overflow:hidden;
  display:grid;
  place-items:center;
}
.preview-bg-img {
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  object-fit:cover;
  filter:brightness(.76);
}
.preview-ui-overlay {
  position:relative;
  z-index:1;
  width:100%;
}
.preview-ui-window {
  width:100%;
  padding:7px 9px;
  border-radius:8px;
  box-sizing:border-box;
  background:rgba(250,250,252,.94);
  color:#18181b;
  box-shadow:0 10px 24px rgba(0,0,0,.45);
}
.preview-ui-head {
  display:flex;
  align-items:center;
  gap:4px;
  padding-bottom:4px;
  margin-bottom:4px;
  border-bottom:1px solid #e4e4e7;
  font-size:9.2px;
  color:#18181b;
}
.preview-ui-cols {
  display:grid;
  grid-template-columns:42px 1fr;
  align-items:center;
  gap:7px;
}
.preview-mac-art {
  width:42px!important;
  height:28px!important;
  object-fit:contain;
}
.preview-ui-metrics strong {display:block;font-size:9.6px;color:#18181b}
.preview-ui-metrics span {display:block;margin-top:1px;font-size:8.6px;color:#52525b;font-family:ui-monospace,monospace}
.files-preview-actions {display:grid;grid-template-columns:1fr 1.15fr;gap:4px}
.files-preview-actions button {
  padding:5px 6px;
  border-radius:7px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.11);
  color:#eef2f7;
  font:580 9.4px/1.2 var(--ui);
  cursor:pointer;
}
.files-preview-actions button.is-primary {
  background:#eff2f6;
  color:#16202d;
  border-color:#fff;
}

.files-send-sheet {
  display:flex;
  flex-direction:column;
  justify-content:space-between;
  gap:5px;
  flex:1;
}
.files-shot-card {
  display:flex;
  align-items:center;
  gap:7px;
  padding:7px;
  border-radius:9px;
  background:rgba(255,255,255,.04);
  border:1px solid rgba(255,255,255,.1);
}
.shot-preview-box {
  width:72px;
  padding:4px;
  border-radius:6px;
  background:#1a202c;
  border:1px solid rgba(255,255,255,.1);
  text-align:center;
  flex:none;
}
.shot-mock-ui {
  position:relative;
  height:25px;
  border-radius:4px;
  background:#0e1218;
  display:grid;
  place-items:center;
  font-size:8px;
  color:#94a3b8;
}
.shot-red-circle {
  position:absolute;
  inset:3px 6px;
  border-radius:99px;
  border:1.5px solid #f87171;
}
.shot-tag {display:block;margin-top:2.5px;font:560 6.5px/1.1 var(--ui);color:#cbd5e1;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.shot-status-row strong {display:block;font-size:10px;color:#86efac}
.shot-status-row small {display:block;margin-top:1.5px;font-size:9px;color:#94a3b8;line-height:1.25}
.files-codex-ref {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:5px;
  padding:5px 7px;
  border-radius:7px;
  background:#0b0e13;
  border:1px solid rgba(255,255,255,.08);
  font-size:8.4px;
}
.files-codex-ref code {color:#cbd5e1;font-family:ui-monospace,SFMono-Regular,monospace;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.files-codex-ref span {color:#4ade80;font-weight:580;white-space:nowrap}
.files-re-pull-btn {
  padding:5.5px;
  border-radius:7px;
  background:rgba(255,255,255,.06);
  border:1px solid rgba(255,255,255,.1);
  color:#e2e8f0;
  font:560 9.8px/1.2 var(--ui);
  cursor:pointer;
}

/* ==========================================================================
   COMMERCIAL SECTIONS: Setup Guide & Security (#security), Pricing (#pricing), Q&A (#faq)
   ========================================================================== */
.guide-steps-grid {
  width:min(100%,980px);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(16px,2vw,24px);
  margin-top:6px;
}

.guide-step-card {
  position:relative;
  padding:22px 22px 20px;
  border-radius:16px;
  background:linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.02));
  border:1px solid rgba(255,255,255,.09);
  box-shadow:0 16px 40px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:10px;
  text-align:left;
  transition:border-color .2s ease,transform .2s ease;
}

.guide-step-card:hover {
  border-color:rgba(121,178,255,.32);
  transform:translateY(-2px);
}

.guide-step-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
}

.guide-step-num {
  font:700 10px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.12em;
  color:#58dbec;
}

.guide-step-card:nth-child(2) .guide-step-num {color:#cc9bff}
.guide-step-card:nth-child(3) .guide-step-num {color:#70eab0}

.guide-step-tag {
  padding:3px 8px;
  border-radius:99px;
  background:rgba(255,255,255,.07);
  border:1px solid rgba(255,255,255,.1);
  color:#cfd8e3;
  font:600 10px/1.1 ui-monospace,SFMono-Regular,monospace;
}

.guide-step-card h3 {
  margin:2px 0 0;
  font:620 17.5px/1.28 var(--ui);
  letter-spacing:-.02em;
  color:#f4f6fa;
}

.guide-step-card p {
  margin:0;
  font:450 13.5px/1.6 var(--ui);
  color:#a8b5c5;
  flex:1;
}

.guide-step-card code,
.faq-item code {
  padding:1.5px 5px;
  border-radius:4px;
  background:rgba(255,255,255,.08);
  color:#e2e8f0;
  font:560 12px/1.2 ui-monospace,SFMono-Regular,monospace;
}

.guide-step-badges {
  display:flex;
  flex-wrap:wrap;
  gap:6px;
  margin-top:4px;
}

.guide-step-badges span {
  padding:4px 9px;
  border-radius:6px;
  background:rgba(14,18,24,.7);
  border:1px solid rgba(255,255,255,.08);
  color:#dbe4f0;
  font:560 11px/1.2 var(--ui);
}

/* Pricing Grid (#pricing) */
.pricing-grid {
  width:min(100%,860px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:clamp(18px,2.4vw,28px);
  margin-top:6px;
}

.price-card {
  position:relative;
  padding:26px 26px 24px;
  border-radius:18px;
  background:linear-gradient(180deg,rgba(255,255,255,.04),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.1);
  box-shadow:0 20px 48px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.08);
  display:flex;
  flex-direction:column;
  gap:14px;
  text-align:left;
}

.price-card.is-featured {
  background:
    radial-gradient(420px 220px at 85% 0%,rgba(88,219,236,.12),transparent 70%),
    linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.022));
  border-color:rgba(88,219,236,.36);
  box-shadow:0 24px 56px rgba(0,0,0,.42),0 0 0 1px rgba(88,219,236,.16),inset 0 1px 0 rgba(255,255,255,.14);
}

.price-head {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
}

.price-tier {
  font:700 10.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.12em;
  color:#58dbec;
}

.price-card:not(.is-featured) .price-tier {
  color:#cc9bff;
}

.price-pill {
  padding:3.5px 9px;
  border-radius:99px;
  background:rgba(52,211,153,.16);
  border:1px solid rgba(52,211,153,.35);
  color:#a7f3d0;
  font:600 10.5px/1.1 var(--ui);
}

.price-pill.is-muted {
  background:rgba(255,255,255,.07);
  border-color:rgba(255,255,255,.12);
  color:#cbd5e1;
}

.price-amount {
  display:flex;
  align-items:baseline;
  gap:10px;
}

.price-amount strong {
  font:700 clamp(34px,3.6vw,44px)/1 var(--ui);
  letter-spacing:-.04em;
  color:#f8fafc;
}

.price-amount span {
  font:520 13px/1.2 var(--ui);
  color:#94a3b8;
}

.price-desc {
  margin:0;
  font:450 13.5px/1.55 var(--ui);
  color:#a8b5c5;
}

.price-list {
  margin:2px 0 6px;
  padding:0;
  list-style:none;
  display:grid;
  gap:8px;
  font:500 13.2px/1.45 var(--ui);
  color:#dbe4f0;
  flex:1;
}

.price-cta {
  width:100%;
  margin-top:auto;
}

/* FAQ Accordion Grid (#faq) */
.faq-grid {
  width:min(100%,960px);
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px 18px;
  align-items:start;
  margin-top:6px;
}

.faq-item {
  border-radius:14px;
  background:linear-gradient(180deg,rgba(255,255,255,.042),rgba(255,255,255,.018));
  border:1px solid rgba(255,255,255,.09);
  padding:15px 18px;
  text-align:left;
  transition:border-color .18s ease,background .18s ease;
}

.faq-item[open] {
  border-color:rgba(121,178,255,.28);
  background:linear-gradient(180deg,rgba(255,255,255,.06),rgba(255,255,255,.025));
}

.faq-item summary {
  list-style:none;
  cursor:pointer;
  display:grid;
  grid-template-columns:1fr auto;
  gap:4px 12px;
  align-items:center;
}

.faq-item summary::-webkit-details-marker {
  display:none;
}

.faq-item summary span {
  grid-column:1 / -1;
  font:700 9.5px/1 ui-monospace,SFMono-Regular,Menlo,monospace;
  letter-spacing:.11em;
  color:#73b4ff;
}

.faq-item:nth-child(2n) summary span {color:#58dbec}
.faq-item:nth-child(3n) summary span {color:#cc9bff}

.faq-item summary b {
  font:600 14.8px/1.36 var(--ui);
  letter-spacing:-.015em;
  color:#f2f5f9;
}

.faq-item summary i {
  font:400 18px/1 ui-monospace,SFMono-Regular,monospace;
  color:#94a3b8;
  transition:transform .2s ease,color .2s ease;
}

.faq-item[open] summary i {
  transform:rotate(45deg);
  color:#58dbec;
}

.faq-item p {
  margin:10px 0 0;
  padding-top:10px;
  border-top:1px solid rgba(255,255,255,.07);
  font:450 13.3px/1.62 var(--ui);
  color:#a8b5c5;
}

@media(max-width:960px){
  .kb-paired-stage,
  .guide-steps-grid,
  .pricing-grid,
  .faq-grid {
    grid-template-columns:minmax(0,1fr);
  }
}

/* ==========================================================================
   SCREEN 6 (#closing): Centered Closing Summary & CTA Section
   ========================================================================== */
.closing-chapter {
  position:relative;
  scroll-margin-top:0;
  min-height:calc(100svh - var(--nav-h,64px) - 80px);
  display:flex;
  align-items:center;
  justify-content:center;
  box-sizing:border-box;
  padding-block:clamp(44px,5.5vh,68px);
  background:
    radial-gradient(680px 360px at 50% 20%,rgba(62,74,92,.12),transparent 72%),
    var(--night,#101317);
  color:var(--white,#f4f5f8);
  text-align:center;
}

.closing-inner {
  display:grid;
  justify-items:center;
  max-width:660px;
  margin-inline:auto;
  gap:14px;
}

.closing-mark {
  width:50px;
  height:50px;
  border-radius:14px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.055);
  border:1px solid rgba(255,255,255,.11);
  box-shadow:0 12px 30px rgba(0,0,0,.38),inset 0 1px 0 rgba(255,255,255,.14);
  margin-bottom:4px;
}

.closing-mark .nav-mark {width:27px;height:26px}
.closing-inner h2 {
  margin:0;
  font-size:clamp(28px,3.6vw,42px);
  line-height:1.14;
  letter-spacing:-.038em;
  font-weight:600;
  color:#f4f5f8;
}
.closing-lead {
  margin:0;
  max-width:34em;
  font-size:clamp(15px,1.08vw,17px);
  line-height:1.64;
  color:rgba(219,224,232,.74);
  text-wrap:pretty;
}
.closing-actions {
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  justify-content:center;
  gap:10px;
  margin-top:8px;
}
.closing-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:8px;
  min-height:42px;
  padding:0 18px;
  border-radius:999px;
  font:600 13.5px/1.2 var(--ui);
  letter-spacing:-.012em;
  cursor:pointer;
  text-decoration:none;
  transition:transform .15s ease,box-shadow .16s ease,background .16s ease;
}
.closing-btn.is-primary {
  background:linear-gradient(180deg,#eff2f6,#dfe5ec);
  color:#16202d;
  box-shadow:0 4px 16px rgba(0,0,0,.28),inset 0 1px 0 rgba(255,255,255,.9);
}
.closing-btn.is-primary:hover {
  background:#fff;
  transform:translateY(-1px);
}
.closing-btn.is-secondary {
  background:rgba(255,255,255,.075);
  color:#f2f5f9;
  border:1px solid rgba(255,255,255,.14);
}
.closing-btn.is-secondary:hover {
  background:rgba(255,255,255,.12);
}
.closing-btn.is-ghost {
  background:transparent;
  color:rgba(219,224,232,.74);
  border:1px solid rgba(255,255,255,.1);
}
.closing-btn.is-ghost:hover {
  background:rgba(255,255,255,.06);
  color:#fff;
}
.closing-meta {
  margin:6px 0 0;
  font-size:12px;
  color:rgba(219,224,232,.52);
}

/* Footer & Legal Modals */
.footer{background:var(--night,#101317);border-top:1px solid rgba(255,255,255,.07);padding-block:28px}
.footer .wrap{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 28px;min-height:56px}
.footer-identity{display:flex;flex-wrap:wrap;align-items:baseline;gap:10px 18px;margin-inline-end:auto}
.footer .brand{margin-inline-end:0;font-size:18px;color:#f2f5f9}
.footer-meta{font-size:12.5px;color:#8d99a8}
.footer-meta a{color:#b6c4d6;text-decoration:underline;text-underline-offset:3px}
.footer-meta a:hover{color:#fff}
.footer-links{display:flex;flex-wrap:wrap;align-items:center;gap:14px 22px;font-size:13px;color:#aab5c3}
.footer-links>a{color:#aab5c3;transition:color .15s}
.footer-links>a:hover{color:#fff}

dialog.legal-modal{max-width:min(680px,calc(100vw - 32px));width:100%;max-height:min(82vh,740px);margin:auto;padding:0;border:1px solid #ffffff24;border-radius:18px;background:#141922;color:#e9eef5;box-shadow:0 28px 70px #00000088}
dialog.legal-modal::backdrop{background:#06090ecc;backdrop-filter:blur(6px)}
.legal-modal-inner{display:flex;flex-direction:column;max-height:min(82vh,740px)}
.legal-modal-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:18px 24px;border-bottom:1px solid #ffffff14}
.legal-modal-head h3{font-size:19px;font-weight:600;letter-spacing:-.02em}
.legal-close{padding:5px 12px;border-radius:8px;background:#ffffff12;font-size:12.5px;color:#d6e0ec;cursor:pointer}
.legal-close:hover{background:#ffffff22;color:#fff}
.legal-modal-body{padding:20px 24px 26px;overflow-y:auto;font-size:14px;line-height:1.72;color:#b8c4d4;display:grid;gap:14px}
.legal-modal-body h4{font-size:14.5px;font-weight:600;color:#eef3f9;margin:6px 0 0}
.legal-modal-body p{margin:0}
.legal-modal-body a{color:#8ec8ff;text-decoration:underline}

/* ==========================================================================
   RESPONSIVE & NARROW-SCREEN LAYOUT
   ========================================================================== */
@media(max-width:960px){
  .studio-chapter {padding-top:36px;padding-bottom:48px}
  .studio-chapter>.wrap {min-width:0;max-width:calc(100% - 2 * var(--side))}
  .gest-top-bar {
    grid-template-columns:minmax(0,1fr);
    align-items:start;
    gap:16px;
  }
  .gesture-stage.is-macro-stage,
  .gesture-stage.is-paired-stage {
    grid-template-columns:minmax(0,1fr);
    gap:24px;
  }
  .gest-mac-display {width:min(100%,680px);margin-inline:auto}
  .gest-cx-window {grid-template-columns:120px minmax(0,1fr)}
  .studio-grid,.studio-grid.is-keyboard-grid {
    grid-template-columns:minmax(0,1fr);
    gap:24px;
  }
  .studio-grid.is-keyboard-grid .chapter-intro {
    text-align:center;
    display:grid;
    justify-items:center;
  }
  .studio-grid.is-keyboard-grid .chapter-lead {
    text-align:center;
    margin-inline:auto;
  }
  .studio-grid.is-keyboard-grid .stage-pills {
    justify-content:center;
  }
  .kb-mac-display {
    width:min(100%,560px);
    margin-inline:auto;
    text-align:start;
  }
  .workflow-dual-grid {
    grid-template-columns:minmax(0,1fr);
    gap:36px;
  }
}

@media(max-width:860px){
  .footer .wrap{flex-direction:column;align-items:flex-start;gap:14px}
}

@media(max-width:760px){
  #hero .devices[data-route=phone]:not(.host-focus) {
    display:grid;
    grid-template-columns:minmax(0,1fr);
    justify-items:center;
    gap:18px;
    height:auto!important;
    min-height:auto;
    padding:16px 12px 24px;
  }
  #hero .devices[data-route=phone]:not(.host-focus) .hero-mac {
    position:relative;
    left:0;
    right:auto;
    top:0;
    width:100%;
    transform:none;
  }
  #hero .devices[data-route=phone]:not(.host-focus) .hero-phone {
    position:relative;
    left:auto;
    right:auto;
    top:0;
    width:min(74%,268px);
    margin-inline:auto;
  }
}

@media(max-width:640px){
  .chapter-intro h2 {font-size:clamp(26px,7.2vw,34px)}
  .chapter-intro h2 span {white-space:normal}
  html[lang=en-US] .chapter-intro h2 {font-size:clamp(24px,6.6vw,31px)}
  .stage-pills {
    border-radius:16px;
  }
  .stage-pills.is-four-pills {
    display:grid;
    grid-template-columns:repeat(2,minmax(0,1fr));
    width:min(100%,348px);
    gap:4px;
  }
  .stage-pills.is-four-pills button {
    width:100%;
    padding:7px 10px;
    font-size:12.5px;
  }
  .gest-os-menu-left span:nth-of-type(n+3),
  .kb-os-menu-left span:nth-of-type(n+3) {
    display:none;
  }
  .gest-cx-window {
    grid-template-columns:minmax(0,1fr);
    width:82%;
  }
  .gest-cx-rail {
    display:none;
  }
  .gest-finder-window {
    width:52%;
  }
  .gest-finder-bar small {
    display:none;
  }
  .closing-actions {flex-direction:column;width:100%}
  .closing-btn {width:min(100%,320px)}
}

#mini-viewport .sidebar button {
  font-size:8.6px;
  padding:4px 5px;
}

#mini-viewport .sidebar .ws-head span {
  font-size:8.5px;
}

/* ==========================================================================
   INTERACTIVE EASTER EGGS (3D WATCH NEBULA PAIRING & CNC GEAR OVERDRIVE)
   ========================================================================== */
.nebula-easter-wrap {
  display:grid;
  justify-items:center;
  gap:6px;
  padding:4px 0 2px;
  text-align:center;
}
.nebula-easter-canvas {
  width:116px;
  height:116px;
  border-radius:50%;
  background:radial-gradient(circle at 50% 50%,rgba(22,40,76,.85),rgba(10,15,24,.96) 72%);
  box-shadow:inset 0 0 16px rgba(90,190,255,.22),0 4px 16px rgba(0,0,0,.45);
  cursor:pointer;
  display:block;
}
.nebula-easter-btn {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:5px;
  padding:4px 10px;
  border-radius:100px;
  border:1px solid rgba(134,216,255,.32);
  background:rgba(60,160,250,.14);
  color:#bce3ff;
  font:600 10px/1.2 var(--ui);
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease,color .16s ease;
}
.nebula-easter-btn:hover {
  background:rgba(60,160,250,.26);
  border-color:rgba(134,216,255,.55);
  color:#fff;
}
.nebula-easter-btn[data-paired="true"] {
  background:rgba(52,211,153,.18);
  border-color:rgba(52,211,153,.48);
  color:#86efac;
}

.mac-side button[data-page="settings"] .sys-symbol {
  transition:transform .45s cubic-bezier(.22,1,.36,1),filter .3s ease;
}
.mac-side button[data-page="settings"]:hover .sys-symbol {
  transform:rotate(90deg);
}
.mac-settings header .gear-easter-trigger {
  position:relative;
  display:inline-grid;
  place-items:center;
  padding:4px;
  border:0;
  border-radius:8px;
  background:transparent;
  color:inherit;
  cursor:pointer;
}
.mac-settings header .gear-easter-trigger .sys-symbol {
  display:inline-block;
  transition:transform .55s cubic-bezier(.18,.88,.32,1.15),filter .25s ease;
}
.mac-settings header .gear-easter-trigger[data-overdrive="true"] .sys-symbol {
  filter:drop-shadow(0 0 6px rgba(251,146,60,.85));
}
.gear-rpm-badge {
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin-inline-start:auto;
  padding:2px 7px;
  border-radius:100px;
  background:rgba(125,188,255,.12);
  border:1px solid rgba(145,202,255,.26);
  color:#9fd4ff;
  font:600 9.5px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  white-space:nowrap;
}
.gear-rpm-badge[data-overdrive="true"] {
  background:rgba(251,146,60,.18);
  border-color:rgba(251,146,60,.48);
  color:#fdba74;
}
.gear-rpm-badge[hidden] {
  display:none!important;
}

/* ==========================================================================
   DE-CLUTTERED FLAT PHONE SHEETS (ZERO NESTED CARDS)
   ========================================================================== */
.auth-phone-body.is-clean-phone {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  padding:8px 14px 12px;
  gap:10px;
}

.clean-sheet {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  background:transparent;
  border:0;
  border-radius:0;
  padding:4px 2px;
  gap:12px;
}

.clean-sheet .term-session-tabs {
  display:flex;
  align-items:center;
  gap:16px;
  padding:0 2px 8px;
  border-bottom:1px solid rgba(255,255,255,.07);
  background:transparent;
}

.clean-sheet .term-tab {
  padding:2px 0;
  border:0;
  border-bottom:2px solid transparent;
  border-radius:0;
  background:transparent!important;
  box-shadow:none!important;
  color:#7e8d9f;
  font:580 12px/1.3 ui-monospace,SFMono-Regular,Menlo,monospace;
  cursor:pointer;
}

.clean-sheet .term-tab.is-active {
  color:#f2f6fb;
  border-bottom-color:#63b3ff;
}

.clean-sheet .term-pane {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  justify-content:space-between;
  gap:12px;
}
.clean-sheet .term-pane[hidden],
.clean-sheet .files-pane[hidden] {
  display:none!important;
}

.clean-term-screen {
  display:flex;
  flex-direction:column;
  gap:10px;
  padding:6px 2px;
  font:480 11.5px/1.65 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#d9e3ee;
}

.clean-term-screen .ct-cmd {
  color:#f3f7fc;
  font-weight:600;
}
.clean-term-screen .ct-p {
  color:#58dbec;
  margin-right:4px;
}
.clean-term-screen .ct-p.is-claude {
  color:#ffba70;
}
.clean-term-screen .ct-out {
  color:#a9b8c9;
}
.clean-term-screen .ct-out b {
  color:#e2ebf5;
  font-weight:560;
}
.clean-term-screen .ct-ok {
  color:#5ce0a0;
  margin-right:5px;
}
.clean-term-screen .ct-add {
  color:#6be6a8;
  margin-left:4px;
}
.clean-term-screen .ct-code {
  color:#7ee8b2;
  padding-left:14px;
}
.clean-term-screen .ct-reply {
  color:#c5d3e3;
  padding-top:4px;
}
.clean-term-screen .ct-prompt {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  color:#8ec8ff;
}
.clean-term-screen .ct-done {
  margin-top:8px;
  color:#6be6a8;
}
.clean-term-screen .ct-input {
  display:flex;
  align-items:center;
  gap:6px;
  margin-top:8px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.07);
}
.clean-term-screen .ct-input span {
  color:#ffba70;
}
.clean-term-screen .ct-input input {
  flex:1;
  min-width:0;
  border:0;
  background:transparent;
  color:#eef4fa;
  font:inherit;
  outline:0;
}
.clean-term-screen .ct-input button {
  border:0;
  border-radius:6px;
  padding:2px 8px;
  background:rgba(255,255,255,.1);
  color:#fff;
  font:inherit;
  cursor:pointer;
}

.clean-sheet .term-quick-bar {
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:6px;
  padding-top:8px;
  border-top:1px solid rgba(255,255,255,.06);
}

.clean-list {
  display:flex;
  flex-direction:column;
}

.clean-row {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  width:100%;
  padding:13px 4px;
  border:0;
  border-bottom:1px solid rgba(255,255,255,.06);
  border-radius:0;
  background:transparent;
  color:#e8eff7;
  text-align:start;
  cursor:pointer;
  transition:color .15s ease;
}
.clean-row:last-child {
  border-bottom:0;
}
.clean-row:hover {
  color:#fff;
}
.clean-row-main {
  display:flex;
  align-items:center;
  gap:8px;
  min-width:0;
}
.clean-row-main strong {
  font:580 12.5px/1.3 var(--ui);
  color:#f0f5fa;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.clean-row-main small {
  font:450 11px/1.2 var(--ui);
  color:#7e8fa3;
  white-space:nowrap;
}
.clean-ext {
  font:620 10px/1 var(--ui);
  padding:3px 5px;
  border-radius:4px;
  background:rgba(255,255,255,.07);
  color:#9fc4eb;
}
.clean-ext.is-img {color:#7cc4ff}
.clean-ext.is-pdf {color:#ff9b9b}
.clean-ext.is-md {color:#6ee7b7}

.clean-tag {
  font:560 11px/1.2 var(--ui);
  font-style:normal;
  color:#8fa1b5;
  white-space:nowrap;
}
.clean-tag.is-green {color:#6ee7b7}
.clean-tag.is-blue {color:#7cc4ff}

.clean-sheet .files-pane {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  justify-content:space-between;
  gap:12px;
}

.clean-bottom-btn {
  width:100%;
  padding:9px 12px;
  border-radius:10px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#dce7f3;
  font:560 12px/1.2 var(--ui);
  cursor:pointer;
  transition:background .15s ease;
}
.clean-bottom-btn:hover {
  background:rgba(255,255,255,.1);
  color:#fff;
}

.clean-preview {
  display:flex;
  flex-direction:column;
  flex:1;
  min-height:0;
  justify-content:space-between;
  gap:10px;
}
.clean-preview-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:8px;
  padding-bottom:6px;
  border-bottom:1px solid rgba(255,255,255,.07);
  font:550 11.5px/1.2 var(--ui);
  color:#cbd7e6;
}
.clean-preview-bar span {
  color:#7e8fa3;
  font-size:11px;
}
.clean-preview-stage {
  flex:1;
  min-height:130px;
  display:grid;
  place-items:center;
  border-radius:12px;
  background:radial-gradient(circle at 50% 45%,rgba(54,88,145,.22),rgba(12,16,22,.85));
  padding:12px;
}
.clean-preview-img {
  width:78%;
  max-height:120px;
  object-fit:contain;
  filter:drop-shadow(0 10px 20px rgba(0,0,0,.45));
}
.clean-preview-img.is-phone-art {
  width:46%;
}
.clean-preview-actions {
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:8px;
}
.clean-preview-actions button {
  padding:8px 8px;
  border-radius:9px;
  border:1px solid rgba(255,255,255,.1);
  background:rgba(255,255,255,.05);
  color:#dbe6f2;
  font:560 11.5px/1.2 var(--ui);
  white-space:nowrap;
  cursor:pointer;
}
.clean-preview-actions button.is-primary {
  background:#e8f2ff;
  border-color:#e8f2ff;
  color:#111924;
}

/* Simplify Keyboard & Clipboard Phone Sheet (#keyboard) */
#toolbar-stage .tb-cand-strip {
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 2px 6px;
  border-bottom:1px solid rgba(255,255,255,.07);
}
#toolbar-stage .tb-cand-strip .pinyin-raw {
  font:600 11px/1.2 ui-monospace,SFMono-Regular,Menlo,monospace;
  color:#7ec2ff;
  margin-right:auto;
}
#toolbar-stage .tb-mod-strip {
  display:grid;
  grid-template-columns:repeat(6,minmax(0,1fr));
  gap:5px;
}
#toolbar-stage .tb-clip-list {
  display:flex;
  flex-direction:column;
  gap:0;
}
#toolbar-stage .tb-clip-item {
  border:0!important;
  border-bottom:1px solid rgba(255,255,255,.07)!important;
  border-radius:0!important;
  background:transparent!important;
  padding:12px 4px!important;
}

/* ==========================================================================
   REAL <mm-phone> & REAL <mm-browser> MAC DESKTOP ACROSS ALL CHAPTERS
   ========================================================================== */
.gest-phone-slot.phone-fit,
.kb-phone-slot.phone-fit,
.workflow-phone-slot.phone-fit {
  position:relative;
  width:100%;
  max-width:266px;
  margin-inline:auto;
  aspect-ratio:451 / 943;
  filter:drop-shadow(0 24px 48px rgba(0,0,0,.52));
}

.gest-os-canvas,
.kb-os-canvas {
  position:absolute;
  inset:0!important;
  overflow:hidden;
  transform-origin:52% 48%;
  transition:transform .36s cubic-bezier(.22,1,.36,1);
}

.kb-mac-display {
  width:100%;
  min-width:0;
}

.kb-os-desktop {
  position:relative;
  aspect-ratio:1470 / 956;
  border-radius:14px;
  overflow:hidden;
  background:#141923;
  box-shadow:0 28px 68px rgba(0,0,0,.58),0 6px 20px rgba(0,0,0,.34),inset 0 0 0 1px rgba(255,255,255,.14);
}

mm-phone .mmp-accessory-strip.is-highlighted-strip {
  box-shadow:0 0 0 1.5px rgba(115,180,255,.85),0 0 16px rgba(115,180,255,.28);
  border-radius:9px;
}

#gest-real-phone .mmp-trackpad-card .gest-touch-layer {
  position:absolute;
  inset:0;
  z-index:4;
  pointer-events:none;
}

/* ==========================================================================
   CLEAN, RESTRAINED BOTTOM SECTIONS (#security, #faq, #closing)
   ========================================================================== */
#security.studio-chapter,
#faq.studio-chapter,
#closing.closing-chapter {
  min-height:0!important;
  height:auto!important;
  justify-content:flex-start;
  padding-top:clamp(52px,6vh,72px);
  padding-bottom:clamp(52px,6vh,72px);
  border-top:1px solid rgba(255,255,255,.07);
}

.guide-clean-wrap {
  width:min(1180px,calc(100% - 2 * var(--side)));
  margin-inline:auto;
  display:grid;
  gap:clamp(28px,3.6vh,40px);
}

.guide-clean-head {
  max-width:680px;
  display:grid;
  gap:10px;
}

.guide-clean-head h2,
.faq-clean-intro h2,
.closing-clean-copy h2 {
  margin:0;
  font:620 clamp(28px,3vw,38px)/1.14 var(--ui);
  letter-spacing:-.035em;
  color:#f4f6fa;
}

.guide-clean-head p,
.faq-clean-intro p,
.closing-clean-copy p {
  margin:0;
  font:440 15px/1.62 var(--ui);
  color:#98a7b9;
}

.guide-clean-list {
  list-style:none;
  margin:0;
  padding:0;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:clamp(24px,3.2vw,44px);
}

.guide-clean-step {
  padding-top:20px;
  border-top:1px solid rgba(255,255,255,.12);
  display:grid;
  align-content:start;
  gap:10px;
}

.guide-clean-idx {
  width:26px;
  height:26px;
  border-radius:50%;
  display:inline-grid;
  place-items:center;
  background:rgba(255,255,255,.07);
  color:#dbe6f3;
  font:600 12.5px/1 var(--ui);
}

.guide-clean-step h3 {
  margin:2px 0 0;
  font:600 18px/1.3 var(--ui);
  letter-spacing:-.02em;
  color:#f2f6fb;
}

.guide-clean-step p {
  margin:0;
  font:440 14px/1.62 var(--ui);
  color:#95a4b6;
}

.faq-clean-layout {
  width:min(1180px,calc(100% - 2 * var(--side)));
  margin-inline:auto;
  display:grid;
  grid-template-columns:minmax(250px,340px) minmax(0,1fr);
  gap:clamp(28px,4.5vw,64px);
  align-items:start;
}

.faq-clean-intro {
  display:grid;
  gap:10px;
}

.faq-clean-mail {
  margin-top:4px;
  font:450 13.5px/1.5 var(--ui)!important;
  color:#7f90a4!important;
}

.faq-clean-mail a {
  color:#c8daf0;
  text-decoration:none;
  border-bottom:1px solid rgba(200,218,240,.28);
  transition:color .15s ease,border-color .15s ease;
}

.faq-clean-mail a:hover {
  color:#fff;
  border-color:rgba(255,255,255,.65);
}

.faq-clean-rows {
  border-top:1px solid rgba(255,255,255,.1);
}

.faq-clean-rows details {
  border-bottom:1px solid rgba(255,255,255,.09);
}

.faq-clean-rows summary {
  list-style:none;
  cursor:pointer;
  padding:18px 0;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:16px;
  font:580 15.5px/1.4 var(--ui);
  letter-spacing:-.015em;
  color:#edf2f8;
  transition:color .15s ease;
}

.faq-clean-rows summary::-webkit-details-marker {
  display:none;
}

.faq-clean-rows summary::after {
  content:"+";
  flex:none;
  font:400 18px/1 var(--ui);
  color:#7e90a4;
  transition:transform .18s ease,color .18s ease;
}

.faq-clean-rows details[open] summary::after {
  content:"−";
  color:#dbe7f5;
}

.faq-clean-rows summary:hover {
  color:#fff;
}

.faq-clean-rows details p {
  margin:0;
  padding:0 28px 18px 0;
  font:440 14px/1.65 var(--ui);
  color:#96a5b7;
}

.closing-clean-wrap {
  width:min(1180px,calc(100% - 2 * var(--side)));
  margin-inline:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:32px;
  flex-wrap:wrap;
  text-align:left;
}

.closing-clean-copy {
  max-width:580px;
  display:grid;
  gap:8px;
  text-align:left;
}

.closing-clean-copy small {
  margin-top:2px;
  font:450 13px/1.5 var(--ui);
  color:#7c8da1;
}

.closing-clean-actions {
  display:flex;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

@media(max-width:960px) {
  .guide-clean-list {
    grid-template-columns:1fr;
    gap:20px;
  }
  .faq-clean-layout {
    grid-template-columns:1fr;
    gap:24px;
  }
  .closing-clean-wrap {
    flex-direction:column;
    align-items:flex-start;
  }
}





