/* =====================================================================================================================
   ICEMOON v2 INNER PAGES: the "docs" group (/mcp and /devices). Loaded after inner.css, by these two pages only.
   Every rule sits under body.pg-mcp or body.pg-devices; inner.css is never edited. Same kit as the install frame:
   the page top, the tools panel and its drawings, the big calm tables, the home page's iPhone and Mac window.
   ---------------------------------------------------------------------------------------------------------------------
   /mcp      page top: a plain terminal (an illustration, marked on its window) prints real MCP tool calls and the iPhone
             beside it answers each one (the approved Instagram and YouTube screens). The film is CSS only and plays once
             on load; the default CSS is its last frame, so reduced motion and no JavaScript show the finished picture.
             Steps 1-2 and the fan-out: drawings in the tools panel. Step 3: the real AI Plan capture, in the steps column
             in a panel of the same size. The prompts: one terminal window like the page top's, a prompt per line. After
             them: the real capture of a recording the AI started, in the Mac window.
   /devices  page top: three iPhones at their true relative sizes (each body at its real width and height in mm, one scale);
             the 13 mini and the 13 with the 13-series notch, the 16 Pro Max with the Dynamic Island of its screen.
             The model tables keep their grid from 760px; below that each row becomes a two-line entry whose details
             stay in aligned columns. A drawing: one tap by coordinates against taps by element, at true point scale.
   (polish 18.11: the prompts window, step 3 in the column, the tools-table dots, the 320px page top, the notch;
    fix 1: the narrow phones' meta line and typed prompt on /mcp, the hero labels of /devices below 400px)
   ===================================================================================================================== */

/* nothing on these pages may pan the page sideways (lights may spill past a picture, never past the screen) */
.pg-docs .doc{overflow-x:clip}

/* ================================================== /mcp ================================================== */

/* ---------- the title: the promise big, the product's name as its second line ---------- */
.pg-mcp .pg-top.long h1{max-width:12.4em}
.pg-mcp .h1-tail{display:block;margin-top:.55em;font-size:.34em;font-weight:500;line-height:1.2;letter-spacing:-.02em;color:rgba(255,255,255,.62)}
/* narrow phones: the meta line would wrap (it needs 320px, up to a 367px screen) and leave its separator dot at the start
   of the second line, so its two parts stack, as on /devices (a few px of margin for other browsers' text widths) */
@media (max-width:374px){ .pg-mcp .pg-meta{flex-direction:column;gap:2px} .pg-mcp .pg-meta>*+*::before{display:none} }

/* ---------- page top: the terminal (left) and the iPhone it drives (right, overlapping). --H = the iPhone's height ---------- */
.pg-mcp .hv-term{--H:clamp(380px,100svh - 405px,580px);--pw:calc(var(--H)/2.076);--tw:calc(var(--H)*1.24);--tf:clamp(14px,var(--H)*.032,17px);
  width:min(100%,calc(var(--tw) + var(--pw)*.66));height:var(--H)}
.pg-mcp .hv-term .light{opacity:.85}
.pg-mcp .l-ice{left:-24%;top:-20%;width:94%;height:140%;--lc:var(--ice2)}
.pg-mcp .l-ig{right:-30%;top:-16%;width:78%;height:132%;--lc:#ff2d7a}

.pg-mcp .tm{position:absolute;z-index:2;left:0;top:calc(var(--H)*.1);width:calc(100% - var(--pw)*.66);border-radius:14px;background:#0a0d11;text-align:left;
  box-shadow:0 0 0 1px rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.09),0 50px 110px -40px rgba(0,0,0,.95),0 30px 120px -50px rgba(95,157,255,.32)}
.pg-mcp .tm-bar{position:relative;display:flex;align-items:center;height:40px;padding:0 16px;border-radius:14px 14px 0 0;background:linear-gradient(#1d2128,#16191e);
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.07),inset 1px 0 0 rgba(255,255,255,.05),inset -1px 0 0 rgba(255,255,255,.05)}
.pg-mcp .tm-dots{display:flex;gap:8px}
.pg-mcp .tm-dots i{width:12px;height:12px;border-radius:50%;background:#ff5f57;box-shadow:inset 0 0 0 .5px rgba(0,0,0,.3)}
.pg-mcp .tm-dots i:nth-child(2){background:#febc2e}
.pg-mcp .tm-dots i:nth-child(3){background:#28c840}
.pg-mcp .tm-name{position:absolute;left:50%;transform:translateX(-50%);font-size:13px;font-weight:500;color:rgba(255,255,255,.6);white-space:nowrap}
.pg-mcp .tm-ill{margin-left:auto;margin-right:calc(var(--pw)*.34 - 4px);font-size:12.5px;letter-spacing:.01em;color:rgba(255,255,255,.58)}
.pg-mcp .tm-log{padding:20px 24px 24px}
.pg-mcp .doc .tm-l,.pg-mcp .tm-l{font-family:var(--mono);font-size:var(--tf);line-height:1.6;letter-spacing:0;color:rgba(255,255,255,.9);
  white-space:pre-wrap;overflow-wrap:anywhere;padding-left:2ch;text-indent:-2ch}
.pg-mcp .tm-p{color:var(--ice)}
.pg-mcp .tm-l.tm-ask{margin:.15em 0 .55em;color:#fff;font-weight:500}
.pg-mcp .tm-call b{font-weight:500;color:var(--ice)}
.pg-mcp .tm-l q{quotes:none;color:var(--ice3)}
.pg-mcp .tm-l.tm-res{color:rgba(255,255,255,.52)}
.pg-mcp .tm-res::before{content:"\2192\00a0";color:rgba(169,210,255,.6)}
.pg-mcp .tm-l.tm-hot{color:rgba(255,255,255,.86)}
.pg-mcp .tm-pt{color:#fff}
.pg-mcp .tm-l.tm-end{margin-top:.55em}
.pg-mcp .tm-caret{display:inline-block;width:.6em;height:1.2em;vertical-align:-.24em;background:var(--ice);opacity:.85}

/* the iPhone: the home page's, sized by --pw; 1em on its glass = the screen's width, so a canvas pixel is 1em/1179 */
.pg-mcp .tph{position:absolute;z-index:3;right:0;top:0}
.pg-mcp .tph .ph{--w:var(--pw)}
.pg-mcp .tph .ph-s{font-size:calc(var(--pw)*.92);line-height:1}
.pg-mcp .tph-wake{position:absolute;left:-30%;right:-30%;top:-14%;bottom:-14%;border-radius:50%;opacity:0;pointer-events:none;
  background:radial-gradient(closest-side,rgba(140,190,255,.34),rgba(140,190,255,.1) 55%,rgba(140,190,255,0))}
.pg-mcp .scr{position:absolute;inset:0;background:#000}
.pg-mcp .scr img{width:100%;height:100%}
.pg-mcp .scr-a{display:none}
/* what the AI reads: the outlines of the elements get_visible_elements returns (cine only) */
.pg-mcp .els i{position:absolute;z-index:5;left:calc(var(--x)*1em/1179);top:calc(var(--y)*1em/1179);width:calc(var(--bw)*1em/1179);height:calc(var(--bh)*1em/1179);
  border-radius:calc(var(--br,16)*1em/1179);box-shadow:0 0 0 max(1.5px,.0035em) rgba(169,210,255,.92),inset 0 0 0 999px rgba(169,210,255,.08);opacity:0}
/* Like, tapped: the red heart of the liked screen, cut to its box (canvas 40,2059 76x70), over the white outline */
.pg-mcp .hp{position:absolute;z-index:6;left:calc(40em/1179);top:calc(2059em/1179);width:calc(76em/1179);height:calc(70em/1179);
  background:url(/assets/v2-apps-instagram-720-d471ecac.webp) calc(-40em/1179) calc(-2059em/1179)/1em auto no-repeat}
/* the find ring (final fixes 24.11): centred on the heart (its glyph in the capture: x 43-112, y 2063-2125, so 78,2094,
   the tap's point) and as tight as on apple-shortcuts, 84x84 with radius 21. Its line (.007em, at least 1px) stays left
   of the like count, whose "1" starts at x 134: 128 at 1440 and 1920, 129 at 390, 131 at 320 (the 136px ring covered it,
   and the count read "2.4K") */
.pg-mcp .find{position:absolute;z-index:6;left:calc(36em/1179);top:calc(2052em/1179);width:calc(84em/1179);height:calc(84em/1179);border-radius:calc(21em/1179);
  box-shadow:0 0 0 max(1px,.007em) var(--ice),0 0 .07em rgba(110,170,255,.95),inset 0 0 .04em rgba(110,170,255,.5)}
.pg-mcp .touch{position:absolute;z-index:8;left:calc(78em/1179);top:calc(2094em/1179);width:.17em;height:.17em;margin:-.085em 0 0 -.085em;border-radius:50%;opacity:0;
  background:radial-gradient(circle,#fff 0 24%,rgba(214,236,255,.9) 27%,rgba(150,200,255,.38) 31% 100%);
  box-shadow:0 0 0 max(1.5px,.008em) rgba(214,236,255,.95),0 0 .06em rgba(95,157,255,.95),0 .012em .05em rgba(0,0,0,.5)}
.pg-mcp .ripple{position:absolute;z-index:7;left:calc(78em/1179);top:calc(2094em/1179);width:.17em;height:.17em;margin:-.085em 0 0 -.085em;border-radius:50%;opacity:0;
  box-shadow:0 0 0 max(1.5px,.008em) #fff,0 0 .05em rgba(140,190,255,.8)}

/* the film (motion only): ask, list_devices (the iPhone wakes), open_app (Instagram opens), get_visible_elements (the
   outlines), tap_by_label (touch, ripple, the heart turns red), a new prompt with its caret */
html.cine .pg-mcp .tm-l[style]{animation:tm-show .01s linear var(--t) both}
/* the typed prompt is one block (it types in as one). When it wraps (phones below 355px) it is as wide as its line, and a
   rounding error in that line's measure pushed it below its ">": .1px narrower, it starts on the line of its ">",
   top-aligned with it, and wraps exactly as the still picture does */
html.cine .pg-mcp .tm-ask .tm-tx{display:inline-block;max-width:calc(100% - .1px);vertical-align:top;text-indent:0;animation:tm-type 1.2s steps(34,end) .7s both}
html.cine .pg-mcp .tm-caret{animation:tm-blink 1.1s steps(1,end) 6.5s 9}
html.cine .pg-mcp .scr-a{display:block}
html.cine .pg-mcp .tph-wake{animation:tm-wake 1.6s ease 2.3s both}
html.cine .pg-mcp .scr-ig{animation:tm-open .6s cubic-bezier(.2,.8,.2,1) 3s backwards}
html.cine .pg-mcp .l-ig{animation:tm-fade 1.4s ease 3s both}
html.cine .pg-mcp .els i{animation:tm-el 1.35s ease calc(3.95s + var(--k)*.04s) both}
html.cine .pg-mcp .find{animation:tm-find .5s cubic-bezier(.2,.8,.2,1) 4.6s backwards}
html.cine .pg-mcp .touch{animation:tm-touch .8s ease 5.45s both}
html.cine .pg-mcp .ripple{animation:tm-rip .8s cubic-bezier(.2,.7,.3,1) 5.7s both}
html.cine .pg-mcp .hp{animation:tm-heart .55s cubic-bezier(.3,1.7,.5,1) 5.72s backwards}
/* the screen, the ring and the heart fill "backwards" only (final fixes 24.11): each one's end (opacity 1, no transform) is
   its own style, so once it has run it is drawn from that style again, the same pixels as the still, instead of staying
   on its own layer (the screen ended up to 1px off and up to 7% softer on 1x screens, the ring 1px off) */
@keyframes tm-show{from{opacity:0}to{opacity:1}}
@keyframes tm-type{from{clip-path:inset(0 100% 0 0)}to{clip-path:inset(0 0 0 0)}}
@keyframes tm-blink{0%{opacity:.85}50%{opacity:0}}
@keyframes tm-wake{0%{opacity:0}30%{opacity:1}100%{opacity:0}}
@keyframes tm-open{from{opacity:0;transform:scale(.86)}to{opacity:1;transform:none}}
@keyframes tm-fade{from{opacity:0}}
@keyframes tm-el{0%{opacity:0;transform:scale(1.06)}16%{opacity:1;transform:none}70%{opacity:1}100%{opacity:0}}
@keyframes tm-find{from{opacity:0;transform:scale(1.4)}to{opacity:1;transform:none}}
@keyframes tm-touch{0%{opacity:0;transform:scale(1.7)}22%{opacity:1;transform:none}45%{transform:scale(.84)}72%{opacity:1;transform:scale(.84)}100%{opacity:0;transform:scale(.84)}}
@keyframes tm-rip{0%{opacity:0;transform:scale(1)}2%{opacity:.95}100%{opacity:0;transform:scale(3.6)}}
@keyframes tm-heart{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}

@media (max-width:899px){
  .pg-mcp .hv-term{--H:clamp(330px,100svh - 480px,470px);--tw:480px;--tf:14px}
  /* the iPhone covers the terminal's last --pw*.34: the text stops 8px before it (a line that would reach it wraps instead) */
  .pg-mcp .tm-log{padding:16px calc(var(--pw)*.34 + 8px) 20px 18px}
}
/* 600-659px (7-inch tablets upright): a smaller iPhone and the phones' type size, so the longest line ends before the iPhone */
@media (min-width:600px) and (max-width:659px){
  .pg-mcp .hv-term{--H:clamp(330px,100svh - 480px,400px);--tf:13px}
}
/* the place in a result line that must not break: its coordinates */
.pg-mcp .tm-nw{white-space:nowrap}
/* phones: the terminal full width, the iPhone hanging off its lower right corner */
@media (max-width:599px){
  .pg-mcp .hv-term{--pw:clamp(118px,36vw,160px);--tf:13px;width:100%;height:auto;padding-bottom:calc(var(--pw)*2.076 - 64px)}
  .pg-mcp .tm{position:relative;top:auto;width:100%}
  .pg-mcp .tm-bar{height:34px;padding:0 12px}
  .pg-mcp .tm-dots{gap:6px}
  .pg-mcp .tm-dots i{width:10px;height:10px}
  .pg-mcp .tm-name,.pg-mcp .tm-ill{font-size:12px}
  .pg-mcp .tm-ill{margin-right:0}
  .pg-mcp .tm-log{padding:13px 13px 16px}
  .pg-mcp .tph{top:auto;bottom:0;right:-4px}
  .pg-mcp .l-ice{left:-30%;top:-14%;width:130%;height:90%}
  .pg-mcp .l-ig{right:-40%;top:34%;width:110%;height:80%}
  .pg-mcp .h1-tail{font-size:.42em}
}
/* the narrowest phones (320-359px): the iPhone hangs 24px lower, so its corner no longer covers the end of the
   "tapped at 26, 698" line (from 360px the iPhone sits right of that line) */
@media (max-width:359px){ .pg-mcp .hv-term{padding-bottom:calc(var(--pw)*2.076 - 40px)} }

/* ---------- step 3: the real AI Plan capture (its crop: the left part, where all the plan's words are) in the steps
   column, in a frame of the same panel and size as the drawings of steps 1-2, clear of the progress line.
   Phones: the plan's left 840 px (the goal and all six steps with their status), big enough to read; the goal line fades
   out at the right edge, as on the home page ---------- */
.pg-mcp .doc .slot-plan{display:flex;align-items:center;justify-content:center;aspect-ratio:2/1}
.pg-mcp .slot-plan picture{position:relative;z-index:2;display:block;width:88%;border-radius:10px;overflow:hidden;
  box-shadow:0 0 0 1px rgba(255,255,255,.08),0 30px 70px -24px rgba(0,0,0,.9),0 30px 120px -50px rgba(95,157,255,.5)}
.pg-mcp .slot-plan img{display:block;width:100%;height:auto}
@media (max-width:599px){
  .pg-mcp .doc .slot-plan{aspect-ratio:4/3}
  .pg-mcp .slot-plan picture{width:calc(100% - 24px);aspect-ratio:840/376;border-radius:8px;box-shadow:none;
    -webkit-mask-image:linear-gradient(90deg,#000 94%,transparent);mask-image:linear-gradient(90deg,#000 94%,transparent)}
  .pg-mcp .slot-plan img{width:calc(1120/840*100%);max-width:none}
}

/* ---------- things you can just ask: the five prompts in one terminal window, the page top's (its bar without a title),
   one prompt per line after the prompt sign; a line that is too long for the window wraps under its own text ---------- */
.pg-mcp .doc>.asks{width:min(1000px,100% - var(--pad)*2);margin-top:26px;border-radius:14px;background:#0a0d11;text-align:left;
  box-shadow:0 0 0 1px rgba(0,0,0,.8),inset 0 0 0 1px rgba(255,255,255,.09),0 50px 110px -40px rgba(0,0,0,.95),0 30px 120px -50px rgba(95,157,255,.32)}
.pg-mcp .asks-bar{display:flex;align-items:center;height:40px;padding:0 16px;border-radius:14px 14px 0 0;background:linear-gradient(#1d2128,#16191e);
  box-shadow:inset 0 -1px 0 rgba(0,0,0,.65),inset 0 1px 0 rgba(255,255,255,.07),inset 1px 0 0 rgba(255,255,255,.05),inset -1px 0 0 rgba(255,255,255,.05)}
.pg-mcp .doc .asks-log{margin:0;padding:22px 26px 24px}
.pg-mcp .doc .asks-log>li{margin:0;padding-left:2ch;font-family:var(--mono);font-size:15px;font-weight:500;line-height:1.6;letter-spacing:0;color:#fff;text-wrap:pretty}
.pg-mcp .doc .asks-log>li+li{margin-top:.55em}
/* the prompt sign is decoration: screen readers skip it where the alternative-text syntax is known */
.pg-mcp .doc .asks-log>li::before{content:">";content:">"/"";left:0;top:0;width:auto;height:auto;border-radius:0;background:none;font-weight:400;color:var(--ice)}
@media (max-width:1099px){ .pg-mcp .doc .asks-log>li{font-size:14px} }
@media (max-width:599px){
  .pg-mcp .doc>.asks{margin-top:22px}
  .pg-mcp .asks-bar{height:34px;padding:0 12px}
  .pg-mcp .doc .asks-log{padding:14px 14px 16px}
  .pg-mcp .doc .asks-log>li{font-size:13px}
  .pg-mcp .doc .asks-log>li+li{margin-top:.8em}
}

/* ---------- the real capture of a recording the AI started, in the Mac window ---------- */
.pg-mcp .doc>.shot{position:relative;width:min(1000px,100% - var(--pad)*2);margin-top:clamp(44px,5.5vw,72px);margin-bottom:clamp(40px,5vw,64px)}
.pg-mcp .shot .light{left:-8%;right:-8%;top:-14%;bottom:-10%;--lc:var(--ice2);opacity:.8}
@media (max-width:899px){ .pg-mcp .shot .light{left:-2%;right:-2%} }

/* ---------- the tools table: tool names never break; the Tools column lit, as Icemoon's column is in the comparisons ---------- */
.pg-mcp table.tools td code{white-space:nowrap}
.pg-mcp table.tools td:nth-child(2){line-height:2}
.pg-mcp table.tools .chips{display:block;min-width:0}
@media (min-width:760px){
  .pg-mcp .doc table.tools td:first-child,.pg-mcp .doc table.tools th:first-child{width:19%}
  .pg-mcp .doc table.tools td:nth-child(2){width:44%}
  .pg-mcp .doc table.tools td:nth-child(3){width:37%}
}

/* each separator dot stays on the line of the tool before it (a no-break space in the page); on the narrowest phones
   (320-359px) the label column of the stacked table is a little narrower, so the longest tool name and its dot fit in the
   lit cell */
@media (max-width:359px){ .pg-mcp .doc table.tools.stack{--lw:4.8em} .pg-mcp .doc table.tools.stack td[data-l]{gap:10px} }

/* ---------- the fan-out drawing sits between two paragraphs, not before a step: room under it ---------- */
.pg-mcp .doc>.fan{margin-bottom:36px}

/* ---------- drawings: the step 2 pointer (the kit's ptr-in motion, its own delay) ---------- */
html:not(.cine) .pg-mcp .art .ptr-m{opacity:1}
html.cine .pg-mcp .art.in .ptr-m{animation:ptr-in 1s cubic-bezier(.45,0,.2,1) 1.1s both}

/* ================================================== /devices ================================================== */

/* ---------- page top: three iPhones at their true relative sizes. --u = px per mm, one scale for all three ---------- */
.pg-devices .hv-trio{--gap:clamp(16px,4.6vw,80px);--u:min(clamp(2.1px,(100svh - 420px)/163,3.8px),(100vw - var(--pad)*2 - var(--gap)*2)/213.3);
  display:flex;justify-content:center;align-items:flex-end;gap:var(--gap);width:100%}
.pg-devices .hv-trio .light{left:6%;right:6%;top:-16%;bottom:6%;--lc:var(--ice2);opacity:.9}
.pg-devices .tr{position:relative;display:flex;flex-direction:column;align-items:center}
.pg-devices .tr .ph{--w:calc(var(--mw)*var(--u));height:calc(var(--mh)*var(--u))}
.pg-devices .tr .ph-s img{object-fit:cover;object-position:50% 0}
.pg-devices .tr::before{content:"";position:absolute;z-index:-1;left:50%;top:calc(var(--mh)*var(--u) - 8px);width:calc(var(--mw)*var(--u)*1.7);height:28px;transform:translateX(-50%);
  border-radius:50%;background:radial-gradient(closest-side,rgba(150,190,255,.2),rgba(150,190,255,0))}
.pg-devices .doc .tr-l{margin-top:clamp(16px,2.4vh,24px);text-align:center;line-height:1.3;letter-spacing:-.01em}
.pg-devices .tr-l b{display:block;font-size:clamp(14px,1.2vw,17px);font-weight:600;color:#fff;white-space:nowrap}
.pg-devices .tr-l span{display:block;margin-top:4px;font-size:clamp(13px,1.05vw,15px);color:var(--dim2);white-space:nowrap;font-variant-numeric:tabular-nums}
/* narrow phones: the labels do not wrap and are wider than the two outer iPhones, so the row ran into the page's side
   margins (at 320px past the screen's edges). Below 400px their type steps down with the width (14 to 12.5px; the iPhones
   keep their size); below 360px the iPhones also stand 12px apart. The labels then keep 12px from the screen's edges at
   320px and about 22px from 350px up */
@media (max-width:399px){
  .pg-devices .tr-l b{font-size:clamp(12.5px,3.9vw - 1.6px,14px)}
  .pg-devices .tr-l span{font-size:clamp(11.5px,3.9vw - 2.6px,13px)}
}
@media (max-width:359px){ .pg-devices .hv-trio{--gap:12px} }
/* motion: the three rise one after another and their screens light up (the figure itself stays put). The rise fills
   "backwards" only (final fixes 24.11): its end (opacity 1, no transform) is the phones' own style, so once it has run
   each phone is drawn from its style again, crisp, instead of staying on the rise's own layer at a fractional x, which
   left the screens softer than the still on 1x screens */
html.cine .pg-devices .hv-trio{animation:none}
html.cine .pg-devices .tr{animation:pg-rise 1.1s var(--ease-out) backwards}
html.cine .pg-devices .tr:nth-of-type(1){animation-delay:.12s}
html.cine .pg-devices .tr:nth-of-type(2){animation-delay:.26s}
html.cine .pg-devices .tr:nth-of-type(3){animation-delay:.4s}
.pg-devices .tr .ph-s::after{content:"";position:absolute;inset:0;z-index:11;background:#000;opacity:0;pointer-events:none}
html.cine .pg-devices .tr .ph-s::after{animation:tr-wake .9s ease both}
html.cine .pg-devices .tr:nth-of-type(1) .ph-s::after{animation-delay:.75s}
html.cine .pg-devices .tr:nth-of-type(2) .ph-s::after{animation-delay:.95s}
html.cine .pg-devices .tr:nth-of-type(3) .ph-s::after{animation-delay:1.15s}
@keyframes tr-wake{from{opacity:.92}to{opacity:0}}
/* the 13 mini and the 13: the 13-series notch, 26.8 x 5.35 mm (20% narrower than the 12's, a little taller), drawn in mm
   at the trio's scale (--u) from the top of the screen, the front camera at its left. A hairline of light shows its outline
   on the black status bars; the time and the status icons of the screens sit beside it. (The 16 Pro Max's Dynamic Island
   is part of its screen.) */
.pg-devices .ph-n{position:absolute;z-index:9;left:50%;top:0;width:calc(26.8*var(--u));height:calc(5.35*var(--u));margin-left:calc(-13.4*var(--u));
  border-radius:0 0 calc(2.5*var(--u)) calc(2.5*var(--u));
  background:radial-gradient(circle at 29% 50%,#1a2236 0 calc(.5*var(--u)),#070a10 calc(.62*var(--u)) calc(.9*var(--u)),#000 calc(1*var(--u)));
  box-shadow:0 0 0 max(.5px,calc(.12*var(--u))) rgba(214,236,255,.16)}
.pg-devices .ph-n::before,.pg-devices .ph-n::after{content:"";position:absolute;top:0;width:calc(.8*var(--u));height:calc(.8*var(--u))}
.pg-devices .ph-n::before{right:100%;background:radial-gradient(circle at 0 100%,transparent calc(.8*var(--u) - .5px),#000 calc(.8*var(--u)))}
.pg-devices .ph-n::after{left:100%;background:radial-gradient(circle at 100% 100%,transparent calc(.8*var(--u) - .5px),#000 calc(.8*var(--u)))}

/* narrow screens: the meta line would wrap and leave its separator dot at the start of a line, so its two parts stack */
@media (max-width:440px){ .pg-devices .pg-meta{flex-direction:column;gap:2px} .pg-devices .pg-meta>*+*::before{display:none} }
/* the title in WebKit (final fixes 24.11; inner.css keeps the gradient phrase in one piece there): "for automation" is
   278.6px wide at 44px, wider than the line below a 326.6px screen, where Chrome wraps it inside itself; there it may
   wrap in WebKit too, instead of running past the title's box */
/* there it is an inline-block again, as in Chrome, so 'for' and 'automation' each carry the whole gradient (one wrapped
   inline left 'for' plain white), its own lines balanced; the title wraps plainly (final fixes, round 2) */
@supports (hanging-punctuation:first){ @media (max-width:327.98px){ .pg-devices .pg-top h1 .g{white-space:normal;display:inline-block;text-wrap:balance} .pg-devices .pg-top h1{text-wrap:wrap} } }

/* ---------- the model tables ---------- */
.pg-devices .doc table.models{font-size:17px}
.pg-devices .doc table.models th,.pg-devices .doc table.models td{padding:15px 18px}
.pg-devices .doc table.models thead th{padding-top:4px;padding-bottom:16px}
.pg-devices .doc table.models td:not(:first-child){white-space:nowrap;font-variant-numeric:tabular-nums}
/* the three model tables share one set of column widths, so their columns line up down the page */
@media (min-width:760px){
  .pg-devices .doc table.models{table-layout:fixed}
  .pg-devices .doc table.models th:nth-child(1){width:27%} .pg-devices .doc table.models th:nth-child(2){width:9%}
  .pg-devices .doc table.models th:nth-child(3){width:13%} .pg-devices .doc table.models th:nth-child(4){width:9%}
  .pg-devices .doc table.models th:nth-child(5){width:13%} .pg-devices .doc table.models th:nth-child(6){width:12%}
  .pg-devices .doc table.models th:nth-child(7){width:17%}
}
.pg-devices .doc table.models tbody tr{transition:background-color .2s ease}
.pg-devices .doc table.models tbody tr:hover{background:rgba(255,255,255,.025)}
.pg-devices .vd{font-weight:500;color:rgba(255,255,255,.76)}
.pg-devices .vd-best,.pg-devices .vd-good{color:var(--ice)}
.pg-devices .vd-best{font-weight:600}
.pg-devices .vd-last{color:rgba(255,255,255,.56)}
.pg-devices .vd-no{color:rgba(255,255,255,.45)}   /* 4.52:1 on the page (.44 was 4.37:1): the lowest that reaches 4.5:1 (final fixes 24.11) */
.pg-devices .doc table.models.below td{color:rgba(255,255,255,.5)}
.pg-devices .doc table.models.below td:first-child{color:rgba(255,255,255,.66)}
/* phones: a two-line entry per model. The name and the verdict, then year, points, size, unlock and iOS in columns that
   line up from entry to entry (the header row stays for screen readers) */
@media (max-width:759px){
  .pg-devices .doc table.models,.pg-devices .doc table.models tbody{display:block;width:auto}
  .pg-devices .doc table.models thead{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}
  .pg-devices .doc table.models tr{display:grid;grid-template-columns:2.8em 4.7em 2.6em 4.7em minmax(0,1fr);column-gap:10px;row-gap:5px;align-items:baseline;
    padding:15px 0;border-bottom:1px solid rgba(255,255,255,.085);font-size:15px}
  .pg-devices .doc table.models tr:first-child{border-top:1px solid rgba(255,255,255,.22)}
  .pg-devices .doc table.models td{display:block;padding:0;border:0;font-size:15px;line-height:1.35}
  .pg-devices .doc table.models td:first-child{grid-column:1/4;grid-row:1;font-size:17px}
  .pg-devices .doc table.models td:last-child{grid-column:4/6;grid-row:1;justify-self:end;text-align:right;font-size:15px}
  .pg-devices .doc table.models td:nth-child(2){grid-column:1;grid-row:2}
  .pg-devices .doc table.models td:nth-child(3){grid-column:2;grid-row:2}
  .pg-devices .doc table.models td:nth-child(4){grid-column:3;grid-row:2}
  .pg-devices .doc table.models td:nth-child(5){grid-column:4;grid-row:2}
  .pg-devices .doc table.models td:nth-child(6){grid-column:5;grid-row:2}
  .pg-devices .doc table.models td:nth-child(n+2):not(:last-child){color:var(--dim2)}
  .pg-devices .doc table.models tbody tr:hover{background:none}
}
@media (max-width:359px){ .pg-devices .doc table.models tr{column-gap:7px;font-size:14px} .pg-devices .doc table.models td{font-size:14px} }

/* ---------- screen classes: the drawing a little wider than the text; the table of classes ---------- */
.pg-devices .doc>.geo{width:min(var(--midw),100% - var(--pad)*2);margin-top:36px;margin-bottom:20px}
.pg-devices .doc table.classes td:nth-child(2){font-variant-numeric:tabular-nums}
/* 390x844, the class the page's conclusion names, lit softly like Icemoon's column in the comparisons */
.pg-devices .doc table.classes tbody tr:first-child td{background:rgba(169,210,255,.055);color:rgba(255,255,255,.9)}
.pg-devices .doc table.classes tbody tr:first-child td:first-child{border-radius:12px 0 0 12px}
.pg-devices .doc table.classes tbody tr:first-child td:last-child{border-radius:0 12px 12px 0}
.pg-devices .doc table.classes tbody tr:first-child strong{color:var(--ice)}
@media (max-width:759px){
  .pg-devices .doc table.classes tbody tr:first-child{padding-left:14px;padding-right:14px;margin:0 -14px;border-radius:12px;background:rgba(169,210,255,.055)}
  .pg-devices .doc table.classes tbody tr:first-child td{background:none}
}
@media (min-width:760px){
  .pg-devices .doc table.classes td:first-child,.pg-devices .doc table.classes th:first-child{width:24%}
  .pg-devices .doc table.classes td:nth-child(2),.pg-devices .doc table.classes th:nth-child(2){width:16%}
}

/* ---------- /mcp hero on the narrowest phones (polish 18.11, group "frames") ----------
   Below 355px the typed prompt wraps into two lines. The typing is a clip that opens from left to right in 34 steps, one
   letter of the one-line prompt each: on two lines it opened both lines at once and cut letters in half. There the
   prompt fades in instead, when the typing would start (.3s from .7s); its end picture is the same. The animation keeps
   its name, only its keyframes and timing change below 355px: a new name would start it again whenever the width crosses
   355px (a phone turned), the prompt hidden for .7s. The bound is written .98: at 355px the one-line prompt has .1px to
   spare, so a fractional viewport between 354 and 355px (a zoomed page in Chrome) also wraps it and gets the fade. */
@media (max-width:354.98px){
  html.cine .pg-mcp .tm-ask .tm-tx{animation-duration:.3s;animation-timing-function:ease}
  @keyframes tm-type{from{opacity:0}to{opacity:1}}
}
