.model-slot {
  position: absolute;
  inset: 0;
  perspective: 1280px;
  perspective-origin: 51% 44%;
  pointer-events: none;
}
.model-slot::before {
  content: "";
  position: absolute;
  left: 23%;
  right: 19%;
  bottom: 6.5%;
  height: 8.5%;
  background: radial-gradient(ellipse at center, #263b5743 0, #263b5719 47%, transparent 73%);
  transform: rotate(-8deg);
}
.duo-slot::before { left: 4%; right: 3%; bottom: 13%; transform: none; opacity: .75; }
.model-camera { position: absolute; inset: 0; display: grid; place-items: center; transform-style: preserve-3d; }
.hardware, .duo-model, .hardware-rails { position: relative; transform-style: preserve-3d; }
.hardware { --depth: 18px; --corner: 28px; }
.hardware-back, .hardware-glass, .hardware-rails { position: absolute; inset: 0; }
.hardware-back {
  border-radius: var(--corner);
  background: linear-gradient(145deg, #596679 0%, #263341 51%, #111b27 100%);
  transform: translateZ(calc(var(--depth) / -2)) rotateY(180deg);
  backface-visibility: hidden;
}
.hardware-rails i {
  position: absolute;
  top: var(--y);
  left: var(--x);
  width: var(--span);
  height: calc(var(--depth) - .85px);
  display: block;
  transform-origin: 0 50%;
  transform: translateY(-50%) rotateZ(var(--angle)) rotateX(90deg);
  background: linear-gradient(180deg, #dce5ef7a, transparent 14%, transparent 43%, #1119224d 94%), var(--metal);
}
.hardware-glass {
  display: grid;
  overflow: hidden;
  padding: 5px;
  border-radius: var(--corner);
  background: #090d13;
  border: 1px solid #8090a4;
  box-shadow: inset 0 0 0 1px #1f2a3b, 12px 18px 34px #172a3b21;
  transform: translateZ(calc(var(--depth) / 2));
  backface-visibility: hidden;
}
.hardware-screen { position: relative; height: 100%; overflow: hidden; border-radius: max(8px, calc(var(--corner) - 5px)); background: #141c28; color: #eff5ff; color-scheme: dark; }
.air-model::after {
  content: "";
  position: absolute;
  top: 25%;
  left: calc(100% - 1px);
  height: 11%;
  width: 5px;
  background: linear-gradient(90deg, #3b495c, #a3adbb 55%, #4c5c72);
  border-radius: 3px;
  transform: rotateY(28deg);
}
.phone-status { position: relative; display: flex; align-items: center; justify-content: space-between; padding-inline: 8%; height: 8.4%; min-height: 34px; z-index: 1; font-size: .77rem; font-weight: 700; }
.status-symbols { display: inline-flex; align-items: center; gap: 3px; color: #f5f8fe; }
.status-symbols svg { width: 14px; height: 11px; }
.status-symbols .battery { width: 19px; }
.dynamic-island {
  position: absolute; width: 31%; height: 45%; left: 50%; top: 48%;
  transform: translate(-50%, -50%); border-radius: 999px; background: #010205;
  box-shadow: 0 0 0 1px #515b7059;
}
.dynamic-island::after { content: ""; position: absolute; right: 10%; top: 27%; height: 46%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 40% 33%, #29405c, #101a2c 44%, #02030a 71%); }
.air-app { height: 90%; display: flex; flex-direction: column; overflow: hidden; }
.air-app .sample-page { flex: 1; align-content: center; padding: 12%; }
.air-app .sample-content { grid-template-columns: 1fr; }
.air-app .sample-content h3 { font-size: clamp(1.55rem, 3.3vw, 2.8rem); }
.air-app .sample-content img { min-height: 0; }
.air-app .mini-dock { flex: none; padding: 8px 11px 13px; background: #162a32; }
.air-app .mini-address { min-width: 0; white-space: nowrap; }
.air-app .wave-button { width: 40px; height: 31px; }
.air-app .wave-button[aria-pressed="true"] { color: #142932; background: #91e7d2; border-color: #91e7d2; }
.home-indicator { position: absolute; left: 34%; bottom: 1.1%; width: 32%; height: 3px; border-radius: 6px; background: #65748a; }

.duo-model {
  --fold: 3deg;
  width: min(97%, 715px);
  aspect-ratio: 164.6 / 117.8;
}
.duo-leaf { position: absolute; top: 0; bottom: 0; width: 49.92%; }
.duo-left { left: 0; transform-origin: right center; transform: rotateY(var(--fold)); }
.duo-right { right: 0; transform-origin: left center; transform: rotateY(calc(-1 * var(--fold))); }
.duo-hinge {
  position: absolute; top: 0; bottom: 0; left: calc(50% - 5px); width: 10px; border-radius: 4px;
  transform: translateZ(-6px); background: linear-gradient(90deg, #263041, #8998a8 48%, #263041);
}
.duo-left .hardware-glass, .duo-left .hardware-back { border-top-right-radius: 4px; border-bottom-right-radius: 4px; }
.duo-right .hardware-glass, .duo-right .hardware-back { border-top-left-radius: 4px; border-bottom-left-radius: 4px; }
.duo-left .hardware-glass { padding-right: 1px; }
.duo-right .hardware-glass { padding-left: 1px; }
.duo-left .hardware-screen { border-top-right-radius: 2px; border-bottom-right-radius: 2px; }
.duo-right .hardware-screen { border-top-left-radius: 2px; border-bottom-left-radius: 2px; }
.duo-panes { position: absolute; inset: 28px 0 0; }
.duo-pane {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background: #141d2a;
}
.duo-time, .duo-status { position: absolute; top: 8px; z-index: 1; font-size: .69rem; font-weight: 700; }
.duo-time { left: 14px; }
.duo-status { right: 14px; }
.dynamic-island.vertical { z-index: 2; width: 7px; height: 40px; left: auto; right: 3px; top: 50%; transform: translateY(-50%); }
.dynamic-island.vertical::after { right: 21%; top: 14%; height: auto; width: 53%; }

.screen-report { height: 100%; position: relative; padding: 13px 14px; background: #141d2a; }
.screen-report h3 { margin: 12px 0 8px; font-size: 1rem; letter-spacing: -.024em; }
.screen-section-name { color: #dbe8ff; font-size: .85rem; font-weight: 670; border-bottom: 1px solid #36485e; padding-bottom: 6px; }
.screen-report dt { color: #b6c5d9; font-size: .72rem; }
.screen-report dd { margin: 4px 0 0; color: #eff5ff; font: 650 1.16rem monospace; }
.screen-address { margin-top: 11px; font: .73rem/1.55 monospace; color: #becde2; overflow-wrap: anywhere; }

.recorder-report h3 small { color: #adbdd3; font-size: .69rem; font-weight: 500; }
.recorded-list { list-style: none; padding: 0; margin: 9px 0 5px; }
.recorded-list li { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; gap: 7px; align-items: center; min-height: 45px; border-top: 1px solid #35445a; color: #e0ebfc; }
.record-index { font: .71rem monospace; color: #accaff; }
.recorded-list :is(b, small) { display: block; font-size: .72rem; }
.recorded-list small { font: .65rem monospace; color: #bdcee5; overflow-wrap: anywhere; margin-top: 3px; }
.record-check { opacity: .14; font-size: .9rem; }
.recorded .record-check { opacity: 1; color: #8ae0b7; }
.record-status { font-size: .74rem; color: #9fdbbf; padding-top: 2px; }
.playback-page { --playback-scroll: 0; height: 100%; display: flex; flex-direction: column; color: #252722; background: #edece4; }
.playback-label { flex: none; padding: 9px 13px; border-bottom: 1px solid #c6cbc3; font: 700 1rem Georgia, serif; letter-spacing: .08em; }
.playback-label small { font: .68rem system-ui; margin-left: 5px; }
.playback-window { position: relative; overflow: hidden; }
.playback-scroll { position: relative; padding: 9px 13px 24px; transform: translate3d(0, calc(-73px * var(--playback-scroll)), 0); }
.playback-scroll h3 { margin: 0 0 9px; font: 650 clamp(1.1rem, 2.15vw, 1.9rem)/1.07 Georgia, serif; letter-spacing: -.02em; }
.playback-refresh { display: inline-block; padding: 5px 7px; border-radius: 4px; background: #25372e; color: #fff; font-size: .67rem; }
.playback-confirm { visibility: hidden; color: #385846; font-size: .68rem; padding-top: 3px; }
.playback-page.has-refreshed .playback-confirm { visibility: visible; }
.playback-filter { display: flex; flex-wrap: wrap; gap: 4px; justify-content: space-between; padding: 5px 7px; margin: 7px 0; border: 1px solid #8f9d91; border-radius: 4px; font: .7rem monospace; }
.playback-filter strong { visibility: hidden; }
.playback-page:is(.is-typing, [data-completed="2"], [data-completed="3"]) .playback-filter strong { visibility: visible; }
.is-typing .playback-filter { border-color: #7b532e; box-shadow: 0 0 0 2px #c19c7360; }
.is-typing .playback-filter strong::after { content: ""; display: inline-block; width: 1px; height: 1em; vertical-align: middle; background: #5a3c21; margin-left: 2px; }
.playback-cursor { position: absolute; left: 0; top: 0; display: block; width: 23px; height: 28px; opacity: 0; pointer-events: none; transform: translate3d(var(--cursor-x, 0px), var(--cursor-y, 0px), 0); }
.playback-cursor svg { width: 100%; height: 100%; filter: drop-shadow(1px 2px 3px #43241361); }
.show-cursor .playback-cursor { opacity: 1; }
.playback-cursor::before { content: ""; position: absolute; left: -11px; top: -11px; width: 27px; height: 27px; border: 2px solid #916637; border-radius: 50%; opacity: 0; transform: scale(.66); }
.press-cursor .playback-cursor::before { animation: click-ripple .29s ease-out; }
@keyframes click-ripple {
  35% { opacity: .8; }
  100% { opacity: 0; transform: scale(1.38); }
}
.record-timeline { margin-top: 12px; height: 3px; border-radius: 3px; background: #6d523b; overflow: hidden; }
.record-timeline i { display: block; height: 100%; background: #efbd83; transform-origin: left; transform: scaleX(var(--record-progress, 0)); }
.playback-scroll img { width: 100%; max-height: 104px; object-fit: cover; }
.playback-result { padding-top: 3px; color: #4e5049; font: .72rem Georgia, serif; }

@media (max-width: 670px) {
  .phone-status { font-size: .62rem; }
  .phone-status svg { width: 10px; height: 9px; }
  .phone-status .battery { width: 14px; }
  .phone-status .status-symbols { gap: 2px; }
}

.network-stage .duo-slot { pointer-events: auto; }
.network-stage .duo-model { width: min(98%, 787px); }
.network-stage .duo-pane { background: #102126; }
.network-stage .hardware-screen { background: #102126; }
.network-stage .hardware-back { backface-visibility: visible; background: #102126; }
.network-stage .duo-pane { overflow: hidden; }
.network-stage .duo-slot::before { background: radial-gradient(ellipse, #0c3b4eaa 0, #44a8b347 42%, transparent 72%); }
@media (min-width: 901px) and (max-width: 1100px) {
  .network-stage .response-code { max-height: 158px; }
  .network-stage .waterfall-rows button { min-height: 30px; }
}
@media (max-width: 900px) {
  .network-stage .duo-slot { pointer-events: none; }
}
@media (max-width: 740px) {
  .air-app .sample-page { padding: 8%; gap: 10px; }
  .air-app .sample-content h3 { font-size: 1.37rem; }
  .air-app .mini-address { font-size: .57rem; }
}



.air-page { flex: 1; min-height: 0; overflow: auto; background: #eae8e0; color: #202520; scrollbar-width: thin; }
.air-app .sample-page { min-height: 100%; padding: 10%; }
.sample-actions button { background: #303a33; border: 0; border-radius: 4px; padding: 7px 10px; color: #fff; font-size: .75rem; }
.air-refresh-note { color: #264b3c; font-size: .67rem; }
.air-tools { flex: none; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; padding: 4px 6px 0; background: #162a32; }
.air-tools button { border: 0; border-radius: 4px; background: #233940; min-height: 32px; padding: 4px 1px; font-size: .66rem; }
.air-tools button[aria-pressed="true"] { background: #8ee6cf; color: #122520; font-weight: 670; }
.air-tools button:focus-visible { outline-offset: -2px; }
.air-reader { padding: 13px 17px; }
.air-reader h3 { font: 680 1.65rem/1.03 Georgia,serif; margin: 8px 0 12px; }
.air-reader h4 { margin: 9px 0 2px; font: 680 .87rem Georgia,serif; }
.air-reader p { color: #314139; font: .77rem/1.44 Georgia,serif; }
.air-reader mark { background: #f1d7a0; color: #211b13; }
.air-reader mark.active { background: #dba64b; }
.air-find { display: grid; grid-template-columns: minmax(0, 1fr) auto 27px 27px; align-items: center; gap: 4px; position: sticky; top: 0; background: #dae5db; padding: 6px; }
.air-find :is(input,button) { min-width: 0; min-height: 34px; border: 1px solid #819687; border-radius: 3px; color: #1c362b; background: #f0f4ec; }
.air-find input { padding: 4px; font-size: .7rem; }
.air-find output { font-size: .68rem; white-space: nowrap; }
.network-stage .duo-model { width: min(98%, 963px); }
@media (max-width: 740px) {
  .air-app .sample-page { padding: 7%; }
  .air-app .sample-content { gap: 6px; }
  .air-app .sample-content h3 { font-size: 1.35rem; }
  .air-reader { padding: 7px 9px; }
  .air-reader h3 { font-size: 1.2rem; margin-block: 6px; }
  .air-reader p { font-size: .63rem; }
  .air-app .mini-dock { padding: 5px 8px 8px; }
  .air-app .wave-button { height: 24px; width: 29px; }
  .air-app .wave-button svg { width: 17px; height: 17px; }
}
@media (max-width: 1160px) {
  .duo-pane .waterfall-legend, .duo-pane .response-timing { display: none; }
}

.air-tapping [data-air-refresh] { box-shadow: 0 0 0 5px #70b89c80; }
.duo-pane .source-code { max-height: min(220px, 22vw); }

#overview .air-stage, #workflow .network-stage { transform: none; opacity: 1; }
.duo-static { display: none; position: absolute; inset: 0; }
.opening-rig {
  --accent: #96e6f1;
  position: absolute; z-index: 1; left: 0; top: 0;
  width: var(--opening-width, 0px); height: var(--opening-height, 0px);
  transform: translate3d(var(--opening-x, 0px), var(--opening-y, 0px), 0);
  perspective: 1400px;
  pointer-events: none;
}
.opening-camera {
  width: 100%; height: 100%; transform-style: preserve-3d;
  transform: rotateY(var(--opening-tilt, 0deg)) rotateZ(var(--opening-roll, 0deg));
}
.opening-left, .opening-right {
  --depth: 10px;
  position: absolute; top: 0; width: 100%; height: 100%; aspect-ratio: auto;
  pointer-events: auto;
}
.opening-rig .opening-left { left: 0; width: 100%; }
.opening-right {
  left: 100%; transform-origin: left center;
  transform: rotateY(var(--opening-angle, 88deg));
}
.opening-rig:not([data-source-visible]) .opening-right { visibility: hidden; }
.opening-rig .hardware-rails { display: none; }
.opening-rig :is(.hardware-back, .hardware-glass) {
  padding: 4px; border: 1px solid #627780;
  border-radius: var(--opening-corner);
  background: linear-gradient(135deg, #4c5c66, #131c23 38%, #263740 82%, #52626c);
}
.opening-rig .hardware-back {
  transform: translate3d(3px, 4px, -5px);
  box-shadow: 0 14px 37px #02091166;
}
.opening-rig .opening-left :is(.hardware-back, .hardware-glass, .hardware-screen) {
  border-top-right-radius: var(--opening-inner-corner);
  border-bottom-right-radius: var(--opening-inner-corner);
}
.opening-rig .opening-right :is(.hardware-back, .hardware-glass, .hardware-screen) {
  border-top-left-radius: 4px; border-bottom-left-radius: 4px;
}
.opening-rig .hardware-screen { background: #102126; border-radius: max(3px, calc(var(--opening-corner) - 4px)); }
.opening-rig .phone-status { height: var(--opening-status); min-height: 0; }
.opening-rig .air-app { height: calc(100% - var(--opening-status)); }
.opening-rig .air-app[inert] { visibility: hidden; }
.opening-rig .dynamic-island:not(.vertical) {
  scale: calc(1 - var(--opening-unfold, 0) * .27) 1;
}
.opening-sheet {
  position: absolute; inset: var(--opening-status) 0 0; z-index: 2;
  background: #102126;
  border-radius: calc(14px * (1 - var(--opening-unfold, 0))) calc(14px * (1 - var(--opening-unfold, 0))) 0 0;
  overflow: hidden;
  transform: translate3d(0, calc((1 - var(--opening-sheet, 0)) * 100%), 0);
  box-shadow: 0 -6px 18px rgb(2 12 16 / calc((1 - var(--opening-unfold, 0)) * .44));
}
.opening-rig:not([data-sheet-visible]) .opening-sheet { visibility: hidden; }
.opening-rig[data-settled] .opening-sheet { border-radius: 0; }
.opening-waterfall, .opening-response { height: 100%; overflow: auto; scrollbar-width: thin; }
.opening-rig:not([data-settled], [data-analysis]) .opening-waterfall { overflow: hidden; }
.opening-response { position: absolute; inset: 29px 0 0; height: auto; }
.opening-close {
  position: absolute; right: 12px; bottom: 11px; width: 40px; height: 34px;
  border: 1px solid #6b939f; border-radius: 8px; background: #182f37; color: #e3f8fc;
}
.opening-close[hidden] { display: none; }
.opening-hinge {
  position: absolute; left: 100%; top: 8px; bottom: 8px; width: 6px;
  transform-origin: left center; transform: translateX(-50%) scaleX(var(--opening-unfold, 0));
  background: linear-gradient(90deg, #293640, #758893, #202a32);
}
@media (max-width: 900px) {
  .opening-rig .waterfall-live, .opening-rig .request-inspection { padding: 7px 9px; }
  .opening-rig .waterfall-rows button { min-height: 30px; padding: 4px; }
  .opening-rig .inspection-tabs { gap: 3px; margin-block: 7px; }
  .opening-rig .inspection-tabs button { min-height: 28px; font-size: .62rem; }
  .opening-rig .response-code { font-size: .62rem; }
}
@media (max-width: 470px) {
  .opening-rig .waterfall-axis, .opening-rig .inspection-meta { font-size: .57rem; }
  .opening-rig .waterfall-live header code { display: none; }
  .opening-rig .waterfall-rows button strong, .opening-rig .inspection-path { font-size: .65rem; }
}
@media (max-width: 740px) and (prefers-reduced-motion: no-preference) {
  #workflow .screen-copy {
    transform: translateY(var(--network-advance, 0px));
    opacity: var(--network-controls-entry, 0);
    pointer-events: none;
  }
  #workflow:is([data-controls-visible], :focus-within) .screen-copy { pointer-events: auto; }
  #workflow .screen-copy:focus-within { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .duo-static { display: block; }
}

/* One side-mounted island on the unfolded inner display. The optical
   treatment is intentionally subtle so it never reduces source contrast. */
.opening-rig[data-settled] .opening-left .phone-status .dynamic-island { visibility: hidden; }
.opening-rig .opening-left .phone-status .dynamic-island {
  scale: calc(1 - var(--opening-unfold, 0)) 1;
}
.duo-right .hardware-screen::after,
.opening-right .hardware-screen::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0 0 0 auto;
  width: 42%;
  pointer-events: none;
  background: linear-gradient(112deg, transparent 49%, #c9eff80b 82%, #b0dce61e 100%);
  border-radius: inherit;
}
.duo-right .dynamic-island.vertical, .opening-right .dynamic-island.vertical {
  top: 48%;
  right: clamp(3px, 1.7%, 8px);
  width: clamp(8px, 3.1%, 15px);
  height: clamp(37px, 10%, 67px);
  background: linear-gradient(166deg, #2e535b70, #091316ed 48%, #152c34df);
  box-shadow: inset 0 1px #c4edf24d, inset 1px 0 #94d8e530, 0 0 0 1px #0106086f;
  backdrop-filter: blur(5px);
}
.duo-right .dynamic-island.vertical::after,
.opening-right .dynamic-island.vertical::after { display: none; }
.duo-right .duo-status, .opening-right .duo-status {
  display: flex;
  align-items: center;
  min-height: 20px;
  padding: 4px 8px;
  top: 3px;
  right: 7px;
  border-radius: 100px;
  background: #c8ebf414;
  box-shadow: inset 0 1px #deffff1d;
}
.opening-response, .duo-right .duo-panes { right: 17px; }
