/* seocontrol.app — the hero phone (site-hero-1118): an iPhone Duo with the app's interface in HTML and CSS.
   Markup: scripts/site/templates/duo.html; behaviour: duo.js. The screen inside follows the app (docs/design/seo-control/
   tokens.json, docs/CARD_STANDARD.md): light or dark with the visitor's system, colour only for state. Geometry: the
   open device is 972 x 698 px, each half 486 px; the left half (leaf) folds over the right one about the hinge.
   Only transform and opacity move; the stage's height comes from the layout alone, so folding never shifts the page.
   First screen (round 2): on desktop the copy, the whole phone and Folded / Unfolded fit the window without scrolling;
   on wide, low windows the copy stands left of the phone; on phones the buttons sit above the phone. */

/* ---------- hero layout ---------- */
.v11 .hero { padding: 24px 0 28px }
.hero-in { display: flex; flex-direction: column }
.v11 .hero .hero-copy { gap: 14px }
.v11 .hero .cta { margin-top: 2px }
.duo-zone { position: relative; margin: 22px 0 0; display: flex; flex-direction: column; align-items: center; gap: 12px }
.duo-defs { position: absolute; width: 0; height: 0; overflow: hidden }
.duo-stage { position: relative; width: 100%; height: min(600px, calc((100vw - 32px) * 1.36)); isolation: isolate; -webkit-tap-highlight-color: transparent;
  --sw: 0.296; --sh: 1; --s: min(var(--sw), var(--sh)); --sf: var(--s) }
.duo-stage::before { content: ""; position: absolute; z-index: -1; inset: -6% 4%; background: radial-gradient(closest-side, rgba(99, 102, 241, 0.36), rgba(99, 102, 241, 0.08) 62%, transparent 80%); pointer-events: none }
.duo { position: absolute; inset: 0 }
.duo-move { position: absolute; top: calc(50% - 349px); left: calc(50% - 486px); width: 972px; height: 698px; transform-origin: 486px 349px;
  transform: scale(var(--s)); perspective: 3600px; perspective-origin: 486px 349px }
.duo.is-folded .duo-move { transform: translateX(calc(-243px * var(--sf))) scale(var(--sf)) }
/* Horizontal: the folded phone turned a quarter right, so the hinge is on top (as on iPhone Duo) and the camera bottom right */
.duo.is-horizontal .duo-move { transform: translate(0px, calc(-243px * var(--sz, var(--sf)))) rotate(90deg) scale(var(--sz, var(--sf))) }
/* the device box is larger than what shows (turned, it reaches over the buttons): only the visible faces take taps */
.duo-move { pointer-events: none }
.duo .face { pointer-events: auto }
.duo.is-folded .duo-fixed, .duo:not(.is-folded) .leaf-back { pointer-events: none }
/* phones: buttons above the phone, so they are on the first screen with the top of the folded phone */
@media (max-width: 699px) {
  .v11 .hero { padding-top: 20px }
  .duo-zone { margin-top: 20px }
  .duo-view { order: -1 }
}
/* tablets and high windows: copy above, the phone takes the rest of the first screen */
@media (min-width: 700px) {
  .hero-in { min-height: calc(100vh - var(--head-h) - 52px); min-height: calc(100svh - var(--head-h) - 52px) }
  .v11 .hero h1 { font-size: min(clamp(34px, 5.6vw, 66px), calc(5.2vh + 18px)); font-size: min(clamp(34px, 5.6vw, 66px), calc(5.2svh + 18px)) }
  .v11 .hero .lead { font-size: max(16px, min(clamp(18px, 2.1vw, 22px), calc(1.7svh + 6px))) }
  .duo-zone { flex: 1 1 auto; min-height: 0 }
  .duo-stage { flex: 1 1 0; height: auto; min-height: 360px; max-height: 700px }
}
/* wide, low windows (laptops): copy on the left, the phone on the right, both in the first screen */
@media (min-width: 960px) and (max-height: 999px) {
  .hero-in.wrap { max-width: 1320px; display: grid; grid-template-columns: minmax(330px, 5fr) minmax(0, 8fr); column-gap: 48px; align-items: center;
    min-height: calc(100vh - var(--head-h) - 52px); min-height: calc(100svh - var(--head-h) - 52px) }
  .v11 .hero .hero-copy { align-items: flex-start; text-align: left; gap: 18px }
  .v11 .hero h1 { max-width: 13ch; font-size: clamp(40px, 3.9vw, 58px) }
  .v11 .hero .lead { font-size: clamp(17px, 1.4vw, 20px); max-width: 30em; text-wrap: pretty }
  .v11 .hero .cta { justify-content: flex-start }
  .duo-zone { margin: 0; height: calc(100vh - var(--head-h) - 52px); height: calc(100svh - var(--head-h) - 52px); max-height: 860px;
    justify-content: center; container-type: inline-size }
  /* as tall as the open phone at this column's width (972 x 698), so Folded / Unfolded sit right under it */
  .duo-stage { flex: 0 1 auto; min-height: 0; max-height: none; height: calc(100% - 52px); height: min(calc(100% - 52px), calc(71.8cqw + 6px)) }
}
/* no-JS scale steps: width (--sw) and window height (--sh); duo.js sets the exact values */
@media (min-width: 360px) { .duo-stage { --sw: 0.337 } }
@media (min-width: 390px) { .duo-stage { --sw: 0.368 } }
@media (min-width: 430px) { .duo-stage { --sw: 0.409 } }
@media (min-width: 480px) { .duo-stage { --sw: 0.46 } }
@media (min-width: 540px) { .duo-stage { --sw: 0.522 } }
@media (min-width: 600px) { .duo-stage { --sw: 0.584 } }
@media (min-width: 680px) { .duo-stage { --sw: 0.666 } }
@media (min-width: 768px) { .duo-stage { --sw: 0.757 } }
@media (min-width: 860px) { .duo-stage { --sw: 0.851 } }
@media (min-width: 952px) { .duo-stage { --sw: 0.9 } }
@media (min-width: 960px) and (max-height: 999px) { .duo-stage { --sw: 0.56 } }
@media (min-width: 1200px) and (max-height: 999px) { .duo-stage { --sw: 0.7 } }
@media (min-width: 1360px) and (max-height: 999px) { .duo-stage { --sw: 0.78 } }
@media (min-width: 700px) and (max-height: 1100px) { .duo-stage { --sh: 0.84 } }
@media (min-width: 700px) and (max-height: 900px) { .duo-stage { --sh: 0.76 } }
@media (min-width: 700px) and (max-height: 780px) { .duo-stage { --sh: 0.68 } }
@media (min-width: 700px) and (max-height: 680px) { .duo-stage { --sh: 0.55 } }

/* ---------- body ---------- */
/* one edge (task 522, owner 2026-11-19): a hairline round an even body; the dark band inside the hairline and the right
   half showing square corners from under the folded leaf read as a second outline, most of all in Horizontal */
.duo .face { position: absolute; top: 0; width: 486px; height: 698px; background: #17171C;
  box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12) }
.duo-fixed { z-index: 1; left: 486px; border-radius: 0 50px 50px 0; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 30px 50px 90px -30px rgba(8, 6, 30, 0.75) !important }
.duo-leaf { position: absolute; z-index: 2; left: 0; top: 0; width: 486px; height: 698px; transform-origin: 100% 50%; transform-style: preserve-3d; transform: rotateY(0deg) }
.duo.is-folded .duo-leaf { transform: rotateY(180deg) }
/* at rest unfolded the leaf is flat, so the text renders as sharply as the rest of the page */
.duo:not(.is-moving):not(.is-folded) .duo-leaf { transform: none; transform-style: flat }
/* WebKit ignores backface-visibility once the leaf is flat: the face that cannot be seen is hidden outright at rest */
.duo:not(.is-moving):not(.is-folded) .leaf-back, .duo.is-folded:not(.is-moving) .leaf-front { visibility: hidden }
/* folded, except while the leaf turns: the right half under the leaf is hidden (its square hinge corners showed round the
   leaf's rounded ones) */
.duo.is-folded:not(.is-folding) .duo-fixed { visibility: hidden }
/* while folding: the moving parts get their own layers */
.duo.is-moving .duo-move, .duo.is-moving .duo-leaf { will-change: transform }
.duo.is-moving .shade { will-change: opacity }
.leaf-front, .leaf-back { left: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden }
.leaf-front { border-radius: 50px 0 0 50px; box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), -30px 50px 90px -30px rgba(8, 6, 30, 0.75) !important }
.leaf-back { border-radius: 20px 50px 50px 20px; transform: rotateY(180deg); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, 0.12), 0 50px 90px -30px rgba(8, 6, 30, 0.75) !important }
/* hinge: a metal edge on the folded phone's left */
.leaf-back::before { content: ""; position: absolute; z-index: 4; left: 0; top: 18px; bottom: 18px; width: 6px; border-radius: 3px; background: linear-gradient(90deg, #A3A3AB, #4A4A52 55%, #1C1C21) }
.duo .scr { position: absolute; top: 10px; height: 678px; overflow: hidden; isolation: isolate }
.scr-l { left: 10px; width: 476px; border-radius: 40px 0 0 40px }
.scr-r { left: 0; width: 476px; border-radius: 0 40px 40px 0 }
.scr-o { left: 10px; width: 466px; border-radius: 13px 40px 40px 13px }
/* home indicator: centred under the open inner screen, and on the outer screen */
.duo .hbar { position: absolute; z-index: 11; height: 5px; border-radius: 3px; background: rgba(20, 20, 19, 0.42); pointer-events: none; transition: opacity 0.2s }
.hbar-in { left: 396px; top: 679px; width: 180px }
.hbar-o { left: calc(50% - 60px); bottom: 8px; width: 120px }
@media (prefers-color-scheme: dark) { .duo .hbar { background: rgba(244, 244, 246, 0.5) } }
.duo.is-folded .hbar-in, .duo.is-moving .hbar-in { opacity: 0 }
.duo.is-horizontal .hbar-o { opacity: 0 }
/* the crease of the inner screen */
.scr-r::after { content: ""; position: absolute; z-index: 9; left: 0; top: 0; bottom: 0; width: 6px; background: linear-gradient(90deg, rgba(0, 0, 0, 0.07), transparent); pointer-events: none }
.duo .shade { position: absolute; z-index: 10; top: 10px; height: 678px; opacity: 0; pointer-events: none }
.shade-l { left: 10px; width: 476px; border-radius: 40px 0 0 40px; background: linear-gradient(to left, rgba(0, 0, 0, 0.25), #000 95%) }
.shade-r { left: 0; width: 476px; border-radius: 0 40px 40px 0; background: linear-gradient(to right, rgba(0, 0, 0, 0.75), rgba(0, 0, 0, 0.2)) }
.shade-o { left: 10px; width: 466px; border-radius: 13px 40px 40px 13px; background: linear-gradient(to right, rgba(0, 0, 0, 0.3), #000 95%) }

/* ---------- the app inside: tokens (light and dark like the app) ---------- */
.duo .ui { --u-bg: #F5F5F7; --u-card: #FFFFFF; --u-line: #E6E6EA; --u-line2: #C9C9D1; --u-track: #E6E6EA; --u-ink: #141413;
  --u-muted: #5B5B66; --u-faint: #8E8E99; --u-brand: #4338CA; --u-soft: #EEF0FF; --u-mid: #A5ABFB; --u-green: #15803D;
  --u-amber: #B45309; --u-red: #B91C1C; --u-press: #EDEDF1;
  --u-font: -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  background: var(--u-bg); color: var(--u-ink); font: 400 15px/1.35 var(--u-font);
  letter-spacing: -0.1px; text-align: left; font-variant-numeric: tabular-nums; -webkit-user-select: none; user-select: none }
@media (prefers-color-scheme: dark) {
  .duo .ui { --u-bg: #0B0B0F; --u-card: #17171C; --u-line: #2A2A31; --u-line2: #3A3A44; --u-track: #2A2A31; --u-ink: #F4F4F6;
    --u-muted: #A1A1AB; --u-faint: #7A7A85; --u-brand: #A5ABFB; --u-soft: #23244A; --u-mid: #5A5FC4; --u-green: #4ADE80;
    --u-amber: #FBBF24; --u-red: #F87171; --u-press: #202027 }
}
.duo .ui p { margin: 0 }
.duo .ui button { margin: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; letter-spacing: inherit; text-align: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent }
.duo .ui button:focus-visible { outline: 3px solid var(--u-brand); outline-offset: 2px }
.duo .ui svg { display: block; flex: none }
.duo .ui small { font-size: 13px; color: var(--u-muted) }

/* status bar, rail, stacked pages */
.rail { position: absolute; z-index: 3; top: 0; right: 0; bottom: 0; width: 54px; display: flex; flex-direction: column; align-items: center; gap: 12px; padding-top: 18px; font: 600 14px/1 var(--u-font); background: var(--u-bg) }
.rail svg { width: 32px; height: 32px } /* the Duo's connection mark is about as wide as the time */
.scr-o .rail { padding-top: 46px }
/* Horizontal: the status strip lies along the bottom next to the camera; time and mark stay upright over desk mode */
.duo.is-horizontal .scr-o .rail { z-index: 9; background: transparent; color: #F4F4F6 }
.duo.is-horizontal .scr-o .rail > * { transform: rotate(-90deg) }
.duo.is-horizontal .scr-o .rail { gap: 16px; padding-top: 48px }
.rail-in { width: 52px; padding-top: 18px }
/* the outer screen's camera sits top right above the time; it stays visible over desk mode (it is a hole in the screen) */
.cam { position: absolute; z-index: 9; top: 18px; right: 20px; width: 14px; height: 14px; border-radius: 50%; background: #050507; box-shadow: inset 0 0 0 3px #17171E, 0 0 0 1px rgba(255, 255, 255, 0.05) }
.duo .stack { position: absolute; top: 0; left: 0; right: 0; bottom: 0; overflow: hidden }
.scr-r .stack { right: 52px }
.scr-o .stack { top: 0; right: 54px }
.pg { position: absolute; inset: 0; display: flex; flex-direction: column; background: var(--u-bg) }
.pg-top { flex: none; position: relative; height: 54px; display: flex; align-items: center; justify-content: center; padding: 0 64px }
.pg-host { font-size: 13px; color: var(--u-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis }
.duo .ui .pg-back { position: absolute; left: 16px; top: 7px; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center; background: var(--u-card); border: 1px solid var(--u-line) }
.pg-back svg { width: 20px; height: 20px }
.scr-l .pg.is-root .pg-back { visibility: hidden } /* task 501: the section pane is on the left; its first section has no Back */
.pg-scroll { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; padding: 2px 20px 28px; display: flex; flex-direction: column; gap: 12px }
.pg-scroll::-webkit-scrollbar { display: none }
/* on touch screens a swipe over the phone scrolls the page until the visitor taps the phone (duo.js adds .is-live) */
@media (pointer: coarse) { .duo:not(.is-live) .pg-scroll { overflow-y: hidden } }
.scr-o .pg-scroll { padding-left: 16px; padding-right: 12px }
.scr-o .pg-top { padding: 0 54px }
.scr-o .ui .pg-back { left: 12px }
.home .pg-scroll { padding-top: 26px; gap: 12px }
.scr-l .pg-top, .scr-r .pg-top { margin-top: 14px }
.scr-o .home .pg-scroll { padding-top: 14px }
.pg-title { font: 700 26px/1.15 var(--u-font); letter-spacing: -0.5px; margin-top: 2px !important }
.pg-sub { color: var(--u-muted); margin-top: -6px !important }

/* ---------- Home ---------- */
.h-top { display: flex; align-items: center; justify-content: space-between; min-height: 46px }
.h-site { display: flex; align-items: center; gap: 6px; font: 700 22px/1.1 var(--u-font); letter-spacing: -0.5px; white-space: nowrap }
.h-site svg { width: 17px; height: 17px }
.h-icons { display: flex; align-items: center; gap: 4px }
.duo .ui .h-ico { position: relative; width: 40px; height: 40px; border-radius: 20px; display: grid; place-items: center }
.h-ico svg { width: 24px; height: 24px }
.h-ava { background: var(--u-card); border: 1px solid var(--u-line) }
.h-ava svg { width: 22px; height: 22px }
.h-dot { position: absolute; top: 2px; right: 1px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--u-brand); color: #FFF; font: 700 11px/17px var(--u-font); font-style: normal; text-align: center; box-shadow: 0 0 0 2px var(--u-bg) }
@media (prefers-color-scheme: dark) { .h-dot { color: #0B0B0F } }
.card { background: var(--u-card); border: 1px solid var(--u-line); border-radius: 16px }
.duo .ui button.card { width: 100%; background: var(--u-card); border: 1px solid var(--u-line); transition: transform 0.15s var(--ease), border-color 0.2s, box-shadow 0.2s }
.duo .ui button.card:active, .duo .ui button.card.is-press { transform: scale(0.98) }
.duo .ui .is-sel { border-color: var(--u-brand) !important; box-shadow: 0 0 0 1px var(--u-brand) }
.card.pad { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px }
.fixhero { border-radius: 20px; padding: 14px 16px 2px }
.fh-t { display: flex; align-items: center; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid var(--u-line) }
.fh-t b { font: 700 22px/1.15 var(--u-font); letter-spacing: -0.4px }
.mark { width: 38px; height: 38px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #FFF; font: 800 24px/1 var(--u-font) }
.mark.am { background: #B45309 }
.duo .ui .fh-row { width: 100%; display: flex; align-items: center; gap: 12px; padding: 12px 0; line-height: 1.3 }
.fh-row + .fh-row { border-top: 1px solid var(--u-line) }
.fh-row > span { flex: 1; min-width: 0 }
.dot, .legend i, .t-leg i { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block }
.dot.rd, i.rd { background: var(--u-red) }
.dot.am, i.am { background: var(--u-amber) }
i.ok { background: var(--u-green) }
.chev { width: 16px !important; height: 16px !important; color: var(--u-faint) }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px }
.duo .ui .tile { height: 96px; display: flex; flex-direction: column; align-items: center; justify-content: space-between; padding: 11px 6px 11px; text-align: center }
.cap { font-size: 13px; color: var(--u-muted); white-space: nowrap; letter-spacing: -0.2px; max-width: 100%; overflow: hidden; text-overflow: ellipsis }
.t-val { font: 700 25px/1 var(--u-font); letter-spacing: -0.4px }
.t-val.ok { color: var(--u-green) }
.segs7 { display: flex; gap: 3px; width: 86% }
.segs7 i { flex: 1; height: 9px; border-radius: 3px; background: var(--u-green) }
.stackbar { display: flex; gap: 2px; width: 86%; height: 9px }
.stackbar i { display: block; height: 100% }
.stackbar i.ok { border-radius: 3px 0 0 3px; flex: 230 }
.stackbar i.am, .stackbar i.rd { width: 6px; flex: none }
.stackbar i.rd { border-radius: 0 3px 3px 0 }
.stackbar.lg { width: 100%; height: 12px; margin: 4px 0 2px }
.stackbar.sm { width: 64px; height: 8px }
.t-leg { display: flex; align-items: center; gap: 3px; font-size: 11px; color: var(--u-muted); margin-top: -4px }
.t-leg i { width: 6px; height: 6px }
.t-by { font-size: 12px; color: var(--u-muted) }
.duo .ui u { color: var(--u-ink); text-underline-offset: 2px }
.today-l { color: var(--u-muted); margin: 4px 0 -4px !important }
.today { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px }
.duo .ui .td { position: relative; min-height: 118px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 22px 10px 12px; text-align: center }
.td .chev { position: absolute; right: 8px; top: calc(50% - 8px) }
.td .cap { white-space: normal; line-height: 1.25 }
.td-v { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 2px 6px; font: 700 26px/1.1 var(--u-font); letter-spacing: -0.5px }
.td-v .nw { white-space: nowrap }
.scr-o .td-v { font-size: 24px }
.td-ico { width: 24px; height: 24px; color: var(--u-brand) }
.td-s { font-size: 13px; color: var(--u-muted); line-height: 1.3 }
.pdots { display: flex; justify-content: center; gap: 7px; margin-top: -4px !important }
.pdots i { width: 7px; height: 7px; border-radius: 50%; background: var(--u-mid); opacity: 0.45 }
.pdots i.on { background: var(--u-brand); opacity: 1 }
.duo .ui .crd { display: flex; align-items: center; gap: 12px; min-height: 86px; padding: 12px 10px 12px 16px }
.crd-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px }
.crd-t b { font: 600 17px/1.25 var(--u-font); letter-spacing: -0.3px }
.crd-t > span { color: var(--u-muted); line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden }
.viz { width: 78px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-align: center }
.viz small { font-size: 11px !important; line-height: 1.15; white-space: nowrap }
.viz small.wrap { white-space: normal }
.viz .bars14 { display: flex; width: 66px; height: 34px }
.crd-t > span.ln { -webkit-line-clamp: 1 }
.crd-t .ln b { font-weight: 600 }
.rk { display: flex; align-items: center; gap: 2px }
.rk b { font: 700 24px/1 var(--u-font) }
.rk svg { width: 18px; height: 18px; color: var(--u-green) }
.duo .ui .nw { white-space: nowrap }
.gauge { width: 66px; height: 42px }
.gauge path { fill: none; stroke-width: 7; stroke-linecap: round }
.g-tr { stroke: var(--u-track) }
.g-on { stroke: var(--u-brand) }
.gauge text, .ring text { font: 700 18px/1 -apple-system, BlinkMacSystemFont, system-ui, sans-serif; fill: var(--u-ink); text-anchor: middle }
.ring { width: 46px; height: 46px }
.ring circle { fill: none; stroke-width: 5 }
.ring .r-tr { stroke: var(--u-track) }
.ring .r-on { stroke-linecap: round }
.ring .r-on.am { stroke: var(--u-amber) }
.ring text { font-size: 14px; dominant-baseline: middle }
.ring.lg { width: 76px; height: 76px }
.kp { display: flex; flex-direction: row; align-items: flex-end; gap: 4px } /* 522: in a row, as on the other cards */
.kp i { position: relative; display: block }
.kp i svg { width: 22px; height: 26px }
.kp .kp-ok { position: absolute; width: 13px !important; height: 13px !important; right: -3px; bottom: -2px; padding: 1.5px; border-radius: 50%; background: var(--u-card); color: var(--u-green) }
.bars14 { flex-direction: row; align-items: flex-end; gap: 2px; height: 40px }
.bars14 i, .chart i { display: block; flex: 1; height: calc(var(--h) * 1%); min-height: 2px; background: var(--u-mid); border-radius: 2px 2px 0 0; transform-origin: 50% 100% }
.bars14 i.now, .chart i.now, .bars-u i, .bars-m i { background: var(--u-brand) }
.bars14 i.part, .chart i.part { background: var(--u-soft) }
.ppl > span { display: flex; align-items: center; gap: 4px; color: var(--u-brand) }
.ppl svg { width: 24px; height: 24px }
.ppl b { font: 700 24px/1 var(--u-font); color: var(--u-ink) }
.v-num { font: 700 21px/1 var(--u-font); margin-bottom: 4px }
.cal { width: 46px; border-radius: 9px; overflow: hidden; border: 1px solid var(--u-line); background: var(--u-card); text-align: center }
.cal b { display: block; font: 700 10px/1 var(--u-font); letter-spacing: 0.4px; padding: 4px 0 3px; background: var(--u-green); color: #FFF }
.cal span { display: block; font: 700 19px/1 var(--u-font); padding: 5px 0 6px }

/* ---------- screens ---------- */
.duo .ui .sg { padding: 0 16px }
.sg-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; padding: 14px 0 12px; font: 600 17px/1.25 var(--u-font) }
.sg-h > span { display: flex; align-items: center; gap: 6px; color: var(--u-muted); font-weight: 400 }
.chev-d { width: 16px; height: 16px; color: var(--u-faint); transition: transform 0.25s var(--ease) }
.duo .ui .sg-tog { padding: 14px 0 12px }
.sg-tog[aria-expanded="true"] .chev-d { transform: rotate(180deg) }
.duo .ui .sg-row { width: 100%; display: flex; align-items: center; gap: 10px; padding: 13px 0; border-top: 1px solid var(--u-line); line-height: 1.3 }
.sg-row > span { flex: 1; min-width: 0 }
.sg-row small { display: block; margin-top: 2px }
.tick { width: 18px !important; height: 18px !important; color: var(--u-green) }
.big { font: 700 30px/1.1 var(--u-font); letter-spacing: -0.5px }
.big.ok, .duo .ui b.ok { color: var(--u-green) }
.duo .ui b.am { color: var(--u-amber) }
.legend { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--u-muted) }
.legend span { display: inline-flex; align-items: center; gap: 6px }
.legend i.mid { background: var(--u-mid) }
.legend i.br { background: var(--u-brand) }
.legend i.soft { background: var(--u-soft); box-shadow: inset 0 0 0 1px var(--u-mid) }
.legend i.dash { width: 14px; height: 0; border-radius: 0; border-top: 1.5px dashed var(--u-faint) }
.bars-g i { background: var(--u-brand) }
.c-h { font: 600 17px/1.25 var(--u-font); letter-spacing: -0.3px }
.c-h.ai { display: flex; align-items: center; gap: 8px }
.c-h.ai svg { width: 21px; height: 21px }
.c-h.sp { margin-top: 10px !important }
.mut { color: var(--u-muted) }
.step { display: flex; align-items: flex-start; gap: 12px; padding-top: 10px; border-top: 1px solid var(--u-line); line-height: 1.35 }
.step b { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--u-soft); color: var(--u-brand); font: 600 13px/1 var(--u-font) }
.li.col { flex-direction: column; align-items: flex-start; gap: 2px }
.li.col small { line-height: 1.3 }
.li { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-top: 10px; border-top: 1px solid var(--u-line) }
.duo .ui .btn-ai { position: relative; margin-top: 4px; height: 52px; border-radius: 15px; padding: 2px;
  background: linear-gradient(90deg, #4F7CF7, #B0688A 30%, #F07A2E 52%, #F2B11D 66%, #5BA65D 84%, #4F7CF7) }
.btn-ai > span { display: flex; align-items: center; justify-content: center; gap: 10px; height: 100%; border-radius: 13px; background: var(--u-card); font: 600 17px/1 var(--u-font) }
.btn-ai svg { width: 20px; height: 20px }
.duo .ui .btn-re { min-height: 56px; display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font: 600 17px/1.25 var(--u-font); text-align: center }
.duo .ui .btn-re.is-done { flex-direction: column; gap: 3px; cursor: default; font-weight: 400 }
.btn-re .fx-a, .btn-re .fx-t { font-size: 13px; color: var(--u-muted) }
.btn-re .fx-b { display: flex; align-items: center; gap: 8px; color: var(--u-green); font-weight: 700 }
.duo .ui .btn-pdf { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; font: 600 17px/1.2 var(--u-font); color: var(--u-brand) }
.btn-pdf svg { width: 20px; height: 20px }
.seg { display: flex; align-self: flex-start; gap: 2px; padding: 3px; border-radius: 10px; background: var(--u-track); font-size: 13px }
.seg span { padding: 4px 12px; border-radius: 8px; color: var(--u-muted) }
.seg span.on { background: var(--u-card); color: var(--u-ink); font-weight: 600 }
.zones { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 12px; color: var(--u-muted) }
.btn-re .spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--u-line); border-top-color: var(--u-brand); animation: duo-spin 0.8s linear infinite }
.btn-re .ok-mark { width: 26px; height: 26px }
.stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 12px } /* as in the app: two numbers a row */
.stats span { display: flex; flex-direction: column; gap: 2px; min-width: 0 }
.stats small { font-size: 12px !important; line-height: 1.2 }
.stats b { font: 700 23px/1.1 var(--u-font); letter-spacing: -0.4px }
.chart { position: relative; display: flex; align-items: flex-end; gap: 5px; height: 124px; margin-top: 8px; isolation: isolate }
.bars-u { gap: 2px; height: 110px }
.bars-m { gap: 2px; height: 70px }
.chart .avg { position: absolute; left: 0; right: 0; bottom: calc(var(--h) * 1%); border-top: 1.5px dashed var(--u-faint); opacity: 0.8 }
.bars-u .a1 { right: 50% }
.bars-u .a2 { left: 64.3% }
.bars-u .band { position: absolute; z-index: -1; top: -6px; bottom: 0; left: 50%; width: 14.3%; background: var(--u-soft); border-radius: 4px }
.axis { display: flex; justify-content: space-between; gap: 10px; font-size: 12px; color: var(--u-muted) }
.kv { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding-top: 10px; border-top: 1px solid var(--u-line) }
.kv b { font-weight: 600; text-align: right }
.big-kv { border-top: 0; padding-top: 0 }
.big-kv span { font-size: 17px; font-weight: 600 }
.big-kv b { font: 700 30px/1 var(--u-font) }
.big-kv b small { font-size: 15px; font-weight: 400 }
.u-src { font-size: 13px; color: var(--u-muted); line-height: 1.35 }
.tb { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 6px; padding-top: 10px; border-top: 1px solid var(--u-line); text-align: right }
.tb > :first-child { text-align: left }
.tb3 { grid-template-columns: 1.7fr 1fr 0.8fr }
.tb2 { grid-template-columns: 1fr auto }
.tb-h { border-top: 0; padding-top: 2px; font-size: 13px; color: var(--u-muted) }
.live-n { display: flex; align-items: center; gap: 10px }
.live-n b { font: 700 44px/1 var(--u-font); letter-spacing: -1px }
.live-n span { color: var(--u-muted); line-height: 1.25 }
.pulse { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--u-green); flex: none }
.pulse::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--u-green); animation: duo-pulse 2s ease-out infinite }
.segs30 { display: flex; gap: 2px; height: 28px; margin-top: 4px }
.segs30 i { flex: 1; border-radius: 2px; background: var(--u-green) }
.segs30 i.am { background: var(--u-amber) }
.dr { display: flex; gap: 4px; margin-top: 4px }
.dr i { flex: 1; height: 9px; border-radius: 5px; background: var(--u-track) }
.dr i.on { background: var(--u-brand) }
.ring-row { display: flex; align-items: center; gap: 14px; color: var(--u-muted) }
.duo .ui .nt { display: flex; align-items: center; gap: 10px; padding: 13px 10px 13px 16px }
.nt-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; line-height: 1.3 }
.nt-t b { font-weight: 600 }
.nt-t span { color: var(--u-muted) }
.nt-t small { font-size: 12px !important; color: var(--u-faint) !important }

/* ---------- desk mode (always dark, like the app) ---------- */
/* Horizontal: the outer screen is 466 x 678 and the phone is turned 90deg, so desk mode is laid out 678 x 466 and turned back */
.dm-rot { position: absolute; z-index: 8; left: -106px; top: 106px; width: 678px; height: 466px; transform: rotate(-90deg); overflow: hidden }
/* The desk-mode screen (templates/desk.html) in the hero's Horizontal and in the desk block. Every size is a multiple
   of --u: 1px in the hero phone, the screen's width / 852 in the block (iPhone landscape is 852 x 393 pt).
   Colour is state (docs/DESK_STYLES.md): violet light drifting = online, red restless light = down. */
@property --dk1 { syntax: "<color>"; inherits: true; initial-value: rgba(99, 102, 241, 0.55) }
@property --dk2 { syntax: "<color>"; inherits: true; initial-value: rgba(139, 92, 246, 0.45) }
.dm { --u: 1px; --dk1: rgba(99, 102, 241, 0.55); --dk2: rgba(139, 92, 246, 0.45); position: absolute; inset: 0; z-index: 6; overflow: hidden; background: #000;
  color: #F4F4F6; font: 400 calc(15 * var(--u))/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, "Segoe UI", Roboto, sans-serif;
  text-align: center; font-variant-numeric: tabular-nums; transition: --dk1 1.4s, --dk2 1.4s }
.dm[data-state="down"] { --dk1: rgba(220, 38, 38, 0.6); --dk2: rgba(248, 113, 113, 0.42) }
.dm p { margin: 0 }
.dm[data-state="online"] .dm-down, .dm[data-state="down"] .dm-on { display: none !important }
.dm-bg { position: absolute; inset: 0; display: none; pointer-events: none }
.dm[data-style="glow"] .dm-glow, .dm[data-style="aurora"] .dm-aurora, .dm[data-style="stars"] .dm-stars { display: block }
/* Glow: three soft lights */
.dm-glow i { position: absolute; width: 62%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, var(--dk1), transparent) }
.dm-glow i:nth-child(1) { left: 6%; top: 22% }
.dm-glow i:nth-child(2) { right: 2%; top: -18%; width: 52%; background: radial-gradient(closest-side, var(--dk2), transparent) }
.dm-glow i:nth-child(3) { left: 38%; top: 48%; width: 40%; opacity: 0.7 }
/* Aurora: three curtains of light, far to near */
.dm-aurora i { position: absolute; left: -20%; width: 140%; height: 74%; top: -6%; transform-origin: 50% 0;
  background: linear-gradient(to bottom, transparent 0%, var(--dk1) 42%, var(--dk2) 62%, transparent 100%);
  -webkit-mask-image: repeating-linear-gradient(90deg, #000 0 3%, rgba(0, 0, 0, 0.62) 4.5% 6%, #000 8% 11%);
  mask-image: repeating-linear-gradient(90deg, #000 0 3%, rgba(0, 0, 0, 0.62) 4.5% 6%, #000 8% 11%);
  filter: blur(calc(9 * var(--u))); border-radius: 0 0 50% 50% / 0 0 34% 34%; opacity: 0.38 }
.dm-aurora i:nth-child(2) { top: 4%; height: 62%; opacity: 0.5; transform: skewX(-8deg) }
.dm-aurora i:nth-child(3) { top: 12%; height: 56%; opacity: 0.62; transform: skewX(10deg) }
/* Stars: two nebulae and the sky turning slowly; the three bright stars are the three people on the site */
.dm-neb { position: absolute; width: 70%; aspect-ratio: 1.6; border-radius: 50%; background: radial-gradient(closest-side, var(--dk1), transparent); opacity: 0.7 }
.dm-neb:nth-child(1) { left: -10%; top: 20% }
.dm-neb:nth-child(2) { right: -14%; top: -30%; background: radial-gradient(closest-side, var(--dk2), transparent) }
.dm-sky, .dm-me { position: absolute; left: 50%; top: 50%; width: 125%; aspect-ratio: 1; transform: translate(-50%, -50%) }
.dm-sky { background: radial-gradient(2.5px 2.5px at 31% 92%, rgba(255,255,255,0.55), transparent), radial-gradient(1.5px 1.5px at 25% 69%, rgba(255,255,255,0.7), transparent), radial-gradient(1.5px 1.5px at 29% 2%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 45% 54%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 51% 66%, rgba(255,255,255,0.85), transparent), radial-gradient(2.5px 2.5px at 57% 50%, rgba(255,255,255,1), transparent), radial-gradient(2px 2px at 96% 87%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 3% 28%, rgba(255,255,255,0.55), transparent), radial-gradient(2px 2px at 81% 2%, rgba(255,255,255,1), transparent), radial-gradient(2.5px 2.5px at 86% 45%, rgba(255,255,255,1), transparent), radial-gradient(2px 2px at 83% 36%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 68% 65%, rgba(255,255,255,0.55), transparent), radial-gradient(1.5px 1.5px at 86% 83%, rgba(255,255,255,0.55), transparent), radial-gradient(2px 2px at 39% 85%, rgba(255,255,255,0.55), transparent), radial-gradient(2.5px 2.5px at 44% 87%, rgba(255,255,255,0.85), transparent), radial-gradient(2px 2px at 28% 82%, rgba(255,255,255,0.7), transparent), radial-gradient(2.5px 2.5px at 30% 88%, rgba(255,255,255,0.7), transparent), radial-gradient(1.5px 1.5px at 55% 89%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 62% 63%, rgba(255,255,255,0.55), transparent), radial-gradient(2px 2px at 27% 35%, rgba(255,255,255,0.85), transparent), radial-gradient(2px 2px at 92% 35%, rgba(255,255,255,1), transparent), radial-gradient(2px 2px at 55% 40%, rgba(255,255,255,0.7), transparent), radial-gradient(2.5px 2.5px at 83% 50%, rgba(255,255,255,0.7), transparent), radial-gradient(2px 2px at 83% 46%, rgba(255,255,255,0.85), transparent), radial-gradient(2.5px 2.5px at 74% 61%, rgba(255,255,255,0.85), transparent), radial-gradient(2px 2px at 58% 32%, rgba(255,255,255,0.85), transparent), radial-gradient(2.5px 2.5px at 31% 54%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 67% 70%, rgba(255,255,255,0.7), transparent), radial-gradient(2.5px 2.5px at 10% 77%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 48% 8%, rgba(255,255,255,0.55), transparent), radial-gradient(2.5px 2.5px at 63% 78%, rgba(255,255,255,0.7), transparent), radial-gradient(2.5px 2.5px at 93% 61%, rgba(255,255,255,0.85), transparent), radial-gradient(2.5px 2.5px at 90% 72%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 72% 93%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 56% 2%, rgba(255,255,255,0.55), transparent), radial-gradient(1.5px 1.5px at 15% 16%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 50% 95%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 60% 92%, rgba(255,255,255,1), transparent), radial-gradient(2.5px 2.5px at 76% 88%, rgba(255,255,255,0.7), transparent), radial-gradient(2px 2px at 17% 15%, rgba(255,255,255,0.7), transparent), radial-gradient(2px 2px at 50% 79%, rgba(255,255,255,1), transparent), radial-gradient(1.5px 1.5px at 40% 2%, rgba(255,255,255,0.55), transparent), radial-gradient(2px 2px at 84% 86%, rgba(255,255,255,0.85), transparent), radial-gradient(1.5px 1.5px at 33% 9%, rgba(255,255,255,0.55), transparent), radial-gradient(1.5px 1.5px at 16% 95%, rgba(255,255,255,0.55), transparent), radial-gradient(2px 2px at 96% 67%, rgba(255,255,255,0.7), transparent) }
.dm-me { width: 100%; background: radial-gradient(calc(3 * var(--u)) calc(3 * var(--u)) at 30% 34%, #fff, transparent), radial-gradient(calc(3 * var(--u)) calc(3 * var(--u)) at 64% 22%, #fff, transparent), radial-gradient(calc(3 * var(--u)) calc(3 * var(--u)) at 76% 60%, #fff, transparent);
  filter: drop-shadow(0 0 calc(4 * var(--u)) rgba(255, 255, 255, 0.9)) }
.dm-x, .dm-set { position: absolute; z-index: 2; top: calc(16 * var(--u)); width: calc(40 * var(--u)); height: calc(40 * var(--u)); border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, 0.08); color: #F4F4F6 }
.dm-x { left: calc(16 * var(--u)) }
.dm-set { right: calc(16 * var(--u)) }
.dm-x svg, .dm-set svg { width: calc(19 * var(--u)); height: calc(19 * var(--u)) }
.dm-live { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: calc(16 * var(--u)) }
.dm[data-style="utility"] .dm-live, .dm:not([data-style="utility"]) .dm-ut { display: none }
.dm-card { position: relative; width: min(84%, calc(560 * var(--u))); padding: calc(14 * var(--u)) calc(24 * var(--u)) calc(11 * var(--u)); border-radius: calc(22 * var(--u));
  border: 1px solid rgba(255, 255, 255, 0.08); background: rgba(23, 23, 32, 0.55); display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)) }
.dm-card > div { display: flex; flex-direction: column; align-items: center; gap: calc(4 * var(--u)); width: 100% }
.dm-st { display: flex; align-items: center; gap: calc(9 * var(--u)); font-size: calc(14 * var(--u)); color: #A1A1AB }
.dm-st i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #4ADE80; box-shadow: 0 0 calc(9 * var(--u)) rgba(74, 222, 128, 0.7) }
.dm[data-state="down"] .dm-st i { background: #F87171; box-shadow: 0 0 calc(9 * var(--u)) rgba(248, 113, 113, 0.8) }
.dm-st b { color: #E4E4EA; font-weight: 500 }
.dm[data-state="down"] .dm-st b { color: #F87171 }
.dm-n { font-weight: 700; font-size: calc(92 * var(--u)); line-height: 1; letter-spacing: calc(-3 * var(--u)); transition: opacity 0.3s }
.dm-big { font-weight: 700; font-size: calc(70 * var(--u)); line-height: 1.05; letter-spacing: calc(-2 * var(--u)); color: #F87171 }
.dm-w { color: #B5B5BF; font-size: calc(15 * var(--u)) }
.dm-bars, .dm-up { display: flex; align-items: flex-end; gap: calc(3 * var(--u)); width: 100%; height: calc(42 * var(--u)); margin-top: calc(8 * var(--u)) }
.dm-bars i { flex: 1; height: calc(var(--h) * 1%); min-height: calc(2 * var(--u)); border-radius: calc(2 * var(--u)) calc(2 * var(--u)) 0 0; background: #4ADE80 }
.dm-up { height: calc(30 * var(--u)) }
.dm-up i { flex: 1; height: 100%; border-radius: calc(2 * var(--u)); background: #4ADE80 }
.dm-up i.rd { background: #F87171 }
.dm-l, .dm-ax { font-size: calc(12 * var(--u)); color: #8E8E99 }
.dm-ax { display: flex; justify-content: space-between; width: 100% }
.dm-f { display: flex; align-items: center; gap: calc(28 * var(--u)); color: #B5B5BF; font-size: calc(15 * var(--u)) }
.dm-f b { color: #F4F4F6 }
/* Utility: the panel with numbers, no moving background */
.dm-ut { position: absolute; inset: 0; padding: calc(16 * var(--u)) calc(64 * var(--u)) calc(18 * var(--u)); display: flex; flex-direction: column; gap: calc(10 * var(--u)); background: #0B0B0F; text-align: left }
.ut-top { display: flex; justify-content: space-between; align-items: baseline; font-size: calc(15 * var(--u)); color: #8E8E99; padding: calc(10 * var(--u)) 0 0 }
.ut-top b { color: #F4F4F6; font-weight: 600; font-size: calc(17 * var(--u)) }
.ut-grid { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.3fr 1fr; gap: calc(10 * var(--u)) }
.ut-card { border-radius: calc(18 * var(--u)); background: #17171C; border: 1px solid rgba(255, 255, 255, 0.07); padding: calc(12 * var(--u)) calc(16 * var(--u)) }
.ut-main > div { display: flex; flex-direction: column; gap: calc(3 * var(--u)); height: 100% }
.dm[data-state="down"] .ut-main { background: #3B1515; border-color: rgba(248, 113, 113, 0.4) }
.ut-st { display: flex; align-items: center; gap: calc(8 * var(--u)); color: #A1A1AB; font-size: calc(14 * var(--u)) }
.ut-st i { width: calc(8 * var(--u)); height: calc(8 * var(--u)); border-radius: 50%; background: #4ADE80 }
.ut-n b { font-size: calc(36 * var(--u)); letter-spacing: calc(-1 * var(--u)); line-height: 1.1 }
.ut-n.sm b { font-size: calc(26 * var(--u)) }
.ut-mut { color: #8E8E99; font-size: calc(13 * var(--u)) }
.ut-bars { flex: none; height: calc(64 * var(--u)); margin-top: auto }
.ut-downw { font-weight: 700; font-size: calc(58 * var(--u)); line-height: 1; letter-spacing: calc(-2 * var(--u)); color: #F87171; margin: calc(2 * var(--u)) 0 calc(6 * var(--u)) !important }
.ut-side { display: flex; flex-direction: column; gap: calc(10 * var(--u)) }
.ut-side .ut-card { display: flex; flex-direction: column; gap: calc(4 * var(--u)) }
.ut-onw { display: flex; align-items: center; gap: calc(8 * var(--u)); font-weight: 700; font-size: calc(26 * var(--u)); color: #4ADE80 }
.ut-onw i { width: calc(9 * var(--u)); height: calc(9 * var(--u)); border-radius: 50%; background: #4ADE80 }
.ut-pair { display: flex; gap: calc(26 * var(--u)) }
.ut-pair span { display: flex; flex-direction: column; color: #8E8E99; font-size: calc(13 * var(--u)) }
.ut-pair b { color: #F4F4F6; font-size: calc(32 * var(--u)); line-height: 1.1 }
.ut-fix { margin-top: auto !important; border-radius: calc(14 * var(--u)); background: #3A2A0C; padding: calc(10 * var(--u)) calc(14 * var(--u)); font-size: calc(14 * var(--u)); display: flex; align-items: center; gap: calc(8 * var(--u)) }
.ut-fix::before { content: ""; width: calc(7 * var(--u)); height: calc(7 * var(--u)); border-radius: 50%; background: #FBBF24 }
/* the hero's outer screen is narrower: a smaller number */
.scr-o .dm-n { font-size: 84px }
.scr-o .dm-card { width: 88% }
@media (prefers-reduced-motion: no-preference) {
  .dm-glow i:nth-child(1) { animation: dm-drift 9s ease-in-out infinite alternate }
  .dm-glow i:nth-child(2) { animation: dm-drift 12s ease-in-out infinite alternate-reverse }
  .dm-glow i:nth-child(3) { animation: dm-drift 15s ease-in-out infinite alternate }
  .dm-aurora i:nth-child(1) { animation: dm-curtain 13s ease-in-out infinite alternate }
  .dm-aurora i:nth-child(2) { animation: dm-curtain2 10s ease-in-out infinite alternate }
  .dm-aurora i:nth-child(3) { animation: dm-curtain3 8s ease-in-out infinite alternate }
  .dm-sky { animation: dm-turn 240s linear infinite }
  .dm-me { animation: dm-twinkle 4s ease-in-out infinite alternate }
  /* down: the light gets restless (slower than 1 Hz, no flashing) */
  .dm[data-state="down"] .dm-glow i { animation: dm-restless 1.7s ease-in-out infinite alternate }
  .dm[data-state="down"] .dm-glow i:nth-child(2) { animation-duration: 2.3s }
  .dm[data-state="down"] .dm-aurora i { animation-duration: 2.4s }
  .duo.is-paused .dm *, .dkb.is-paused .dm * { animation-play-state: paused !important }
}
@keyframes dm-drift { from { transform: translate(-6%, 4%) } to { transform: translate(8%, -6%) } }
@keyframes dm-restless { 0% { transform: translate(-3%, 2%) scale(1) } 50% { transform: translate(4%, -3%) scale(1.12) } 100% { transform: translate(-2%, -4%) scale(0.94) } }
@keyframes dm-curtain { from { transform: translateX(-5%) scaleY(0.9) } to { transform: translateX(5%) scaleY(1.08) } }
@keyframes dm-curtain2 { from { transform: skewX(-8deg) translateX(4%) scaleY(1) } to { transform: skewX(-2deg) translateX(-5%) scaleY(0.86) } }
@keyframes dm-curtain3 { from { transform: skewX(10deg) translateX(-3%) scaleY(0.92) } to { transform: skewX(4deg) translateX(6%) scaleY(1.1) } }
@keyframes dm-turn { to { transform: translate(-50%, -50%) rotate(360deg) } }
@keyframes dm-twinkle { from { opacity: 0.65 } to { opacity: 1 } }

/* ---------- the desk block: the screen in an iPhone lying on its side, styles and the alert under it ---------- */
.dkb { display: flex; flex-direction: column; align-items: center; gap: 16px; width: 100% }
.dkb-dev { position: relative }
.dkb-scr { position: relative; container-type: inline-size; aspect-ratio: 852 / 393; border-radius: 50px; overflow: hidden; background: #000; isolation: isolate }
.dkb-scr .dm { --u: calc(100cqw / 852) }
.dkb-ctl { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px; position: relative; z-index: 1; margin-top: 14px; visibility: hidden } /* 522: room under the phone, over its shadow */
.dkb.is-ready .dkb-ctl, .dkb.is-ready .dkb-view { visibility: visible }
.dkb-alert { display: inline-flex; align-items: center; gap: 9px; min-height: 48px; padding: 8px 20px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, 0.05);
  color: var(--muted); font: 600 15px/1.2 var(--font); cursor: pointer; transition: color 0.2s, background-color 0.25s, border-color 0.25s }
.dkb-alert i { width: 9px; height: 9px; border-radius: 50%; background: #8E8E99 }
.dkb-alert:hover { color: var(--ink) }
.dkb-alert[aria-pressed="true"] { color: #FFF; background: rgba(220, 38, 38, 0.22); border-color: rgba(248, 113, 113, 0.55) }
.dkb-alert[aria-pressed="true"] i { background: #F87171; box-shadow: 0 0 10px rgba(248, 113, 113, 0.8) }
.dkb-alert:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
.dkb-hint { min-height: 1.6em; margin: 0; color: var(--muted); font-size: 15px }
@media (max-width: 760px) { .dkb-scr { border-radius: 28px } }
@media (prefers-reduced-motion: reduce) { .dm, .dm *, .dkb, .dkb * { transition: none !important } }

/* ---------- touch mark, Fold / Unfold ---------- */
.duo-zone .touch { position: absolute; z-index: 30; left: 0; top: 0; width: 38px; height: 38px; margin: -19px 0 0 -19px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: rgba(130, 130, 145, 0.38); border: 2px solid rgba(255, 255, 255, 0.92); box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.12), 0 6px 16px rgba(0, 0, 0, 0.28);
  transform: translate(var(--x, 486px), var(--y, 349px)); transition: transform 0.55s cubic-bezier(0.3, 0.7, 0.2, 1), opacity 0.25s }
.duo-zone .touch.is-on { opacity: 1 }
.duo-zone .touch.is-tap { animation: duo-press 0.32s ease-out }
.duo-zone .touch::after { content: ""; position: absolute; inset: -2px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, 0.9); opacity: 0 }
.duo-zone .touch.is-tap::after { animation: duo-ring 0.6s ease-out }
/* Folded / Unfolded / Horizontal and the desk styles (task 522, owner 2026-11-19): the group sits over the phone's shadow
   and glow (z-index), and one thumb slides to the pressed option (duo.js sets its place and width from the button, so
   it fits every language and window width); without the thumb the pressed button is filled */
.duo-view { position: relative; z-index: 2; display: flex; justify-content: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.05); border: 1px solid var(--line); visibility: hidden }
.duo-view .thumb { position: absolute; z-index: 0; left: 0; top: 0; width: var(--tw, 0); height: var(--th, 0); transform: translate(var(--tx, 0), var(--ty, 0)); border-radius: 999px;
  background: #F4F4F6; pointer-events: none; transition: transform 0.42s cubic-bezier(0.3, 0.7, 0.2, 1), width 0.42s cubic-bezier(0.3, 0.7, 0.2, 1), height 0.42s cubic-bezier(0.3, 0.7, 0.2, 1) }
.duo-view.is-snap .thumb { transition: none }
.duo-view .thumb { display: none }
.duo-view.has-thumb .thumb { display: block }
.duo-ready .duo-view, .duo-zone.duo-ready .duo-view { visibility: visible }
.duo-view button { position: relative; z-index: 1; min-width: 104px; min-height: 40px; padding: 8px 18px; border: 0; border-radius: 999px; background: none; color: var(--muted); font: 600 15px/1.2 var(--font); cursor: pointer; transition: color 0.3s, background-color 0.25s }
.duo-view button:hover { color: var(--ink) }
.duo-view button[aria-pressed="true"] { background: #F4F4F6; color: #0B0B0F }
.duo-view.has-thumb button[aria-pressed="true"] { background: none }
.duo-view button:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px }
.duo [inert] { pointer-events: none }

@keyframes duo-spin { to { transform: rotate(360deg) } }
@keyframes duo-pulse { 0% { transform: scale(1); opacity: 0.5 } 100% { transform: scale(2.6); opacity: 0 } }
@keyframes duo-press { 0% { transform: translate(var(--x), var(--y)) scale(1) } 40% { transform: translate(var(--x), var(--y)) scale(0.8) } 100% { transform: translate(var(--x), var(--y)) scale(1) } }
@keyframes duo-ring { 0% { transform: scale(1); opacity: 0.9 } 100% { transform: scale(2.2); opacity: 0 } }
@keyframes duo-grow { from { transform: scaleY(0) } }
@media (prefers-reduced-motion: no-preference) {
  .pg.is-new .chart i, .pg.is-new .bars14 i { animation: duo-grow 0.45s var(--ease) both; animation-delay: calc(var(--i, 0) * 22ms) }
  .duo.is-paused .pulse::after { animation-play-state: paused }
}
@media (prefers-reduced-motion: reduce) {
  /* site.css gives everything a 0.15 s transition here; the phone switches with no movement at all */
  .duo-zone, .duo-zone * { transition: none !important }
  .pulse::after, .btn-re .spin { animation: none }
}
@media (max-width: 600px) {
  .duo-view { gap: 2px }
  .duo-view button { min-width: 0; padding: 8px 13px; font-size: 14px }
}
@media (max-width: 420px) {
  .dkb-view { gap: 0 }
  .dkb-view button { padding: 8px 9px; font-size: 13px }
}
.dkb-hint { text-align: center }
@media (max-width: 600px) { .dkb-hint { min-height: 3em } }
