/* moduleone.ai/os, v19 (../2026-11-21-t-v19-uwagi/uwagi-wlasciciela.md, 21.11.2026): on top of v18. Loaded last; v18.css stays as it is.
   The owner looked at v18 on an iPhone: "hide the questions tab, move the notch UI to the centre / middle, and adjust the hero
   animation to fit the multiplayer superagent scenario with glauka ... the send prompt from your phone doesn't work bc only one
   phone interface is shown ... The autopilot toggle should be clickable and somehow funny/fun."
   Every rule here is for a phone (max-width 700 px; the notch and the opening keep the page's own phone line, 640 px), except §5,
   the Autopilot switch, which is the same on every screen. A desktop of 701 px and more is v18's but for that switch.
   1. the contents strip: no "Questions" (the chapter itself stays at the end of README.md)
   2. the notch in the middle: the camera on the screen's axis, the black shape symmetric about it (v15.js makes the band symmetric;
      here the widget's box, the open shell and the cards under the bar), the safe area of a real iPhone
   3. act 3 (Multiplayer) laid out for a portrait screen: the guest's question, then our answer with context.zip, stacked like a
      chat above the two owls; the headline block lower so nothing goes under the bar
   4. the phone scene: the phone behind (the one that plays the scene) first, the session as a second card (scroll-snap, two dots)
   5. the Autopilot switch: a real switch with a springy knob, blue when on, a glow on the chosen agent and a counter (a show on
      this page: the badge "coming soon" stays)
   6. small fixes found going down the whole page on a phone
   Only the tokens of site.css; no new fonts, no frame in a frame, no accent bar on any edge. */

:root{--sat:env(safe-area-inset-top,0px)}

/* ── 1. the contents strip and the bar: no "Questions" on a phone ── */
@media (max-width:700px){
  .uk-toc-c:has(>a[href="#questions"]){display:none}
  .mb-t[href="#questions"]{display:none}
}

/* ── 2. the notch in the middle (up to 640 px, the page's phone line for the notch) ──
   v12 §7 kept the widget's shell, its open line and the team's card clear of the signet (x >= 40), so they were not centred. Now
   every one of them is symmetric about the camera (--mos-c, the middle of the bar in px): the closed box 14 px + the wing on both
   sides (at least 12 px from the screen's edges), the open shell and the cards under the bar 2 x min(180, middle - 17) wide. The
   signet and the clock give way while the shell is open (as in the opening, hero.css), so nothing lies on the notch. */
@media (max-width:640px){
  .w.mos{--mos-lr:max(12px,calc(var(--mos-c) - var(--notch)/2 - 14px - var(--wing)));
    --mos-rr:calc(2*var(--mos-c) - var(--mos-lr));
    --mos-lo:calc(var(--mos-c) - var(--mos-ho))}
  .mos-l,.mos-r,.mos-pet{left:calc(var(--mos-c) - var(--mos-ho))}
  .mos-l,.mos-r{width:calc(2*var(--mos-ho))}
  .mbar:has(.w.mos.open) .mb-sig{opacity:0}
  /* the black shape is centred, but the widget's tap zone keeps clear of the signet as in v12 §7 (x >= 40): without this the zone
     began at the box's edge (x = 17 at 390) and a tap on the signet opened the widget's list instead of the signet's menu */
  .w.mos .mos-hit{left:max(0px,calc(40px - var(--mos-x)));width:calc(var(--mos-nl) + var(--notch) - max(0px,calc(40px - var(--mos-x))))}
  /* while the shell is open (the demo shows a card) its left edge lies under the signet: the signet stays above it, so a tap there
     still opens the menu (v18 kept the open shell at x >= 40), and it shows again while its menu is open */
  .mb-sig{z-index:3}
  .mbar:has(.w.mos.open) .mb-sig[aria-expanded="true"]{opacity:1}
  /* a real iPhone: the bar never goes under the system's clock and island (env() is 0 where the browser keeps its own strip) */
  .mbar{top:var(--sat)}
  .scene::before{content:"";position:fixed;z-index:9;left:0;right:0;top:0;height:var(--sat);background:var(--page);pointer-events:none}
  html.mb-dark .scene::before{background:#000}
  .uk-toc{top:calc(var(--band) + var(--sat))}                  /* the contents strip sticks under the bar, wherever the bar is */
}

/* ── 5. the Autopilot switch (every screen): a button with role switch. Off at rest: a dim track, the knob on the left. On: blue,
   the knob jumps right with a small spring. 44 px of height answer a finger (::before). The counter next to the label (v19.js) is
   mono and dim; it says what Autopilot would do, and stays a show of this page. prefers-reduced-motion: no spring, no flashing. ── */
.dk-sw{all:unset;box-sizing:border-box;position:relative;flex:none;display:block;width:44px;height:26px;border-radius:999px;cursor:pointer;
  background:rgba(255,255,255,.2);box-shadow:inset 0 0 0 1px rgba(255,255,255,.08);pointer-events:auto;
  transition:background-color .22s ease-out,box-shadow .22s ease-out,transform .12s ease-out;-webkit-tap-highlight-color:transparent}
.dk-sw::before{content:"";position:absolute;inset:-9px -6px}
.dk-sw i{position:absolute;top:2px;left:2px;right:auto;width:22px;height:22px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.35);
  transform:translateX(0);transition:transform .42s cubic-bezier(.3,1.6,.5,1),width .16s ease-out}
.dk-sw[aria-checked="true"]{background:var(--link);box-shadow:inset 0 0 0 1px rgba(255,255,255,.12),0 0 14px rgba(91,137,255,.45)}
.dk-sw[aria-checked="true"] i{transform:translateX(18px)}
.dk-sw:active{transform:scale(.94)}
.dk-sw:active i{width:26px}
.dk-sw[aria-checked="true"]:active i{transform:translateX(14px)}
.dk-sw:focus-visible{outline:2px solid var(--tx);outline-offset:3px}
.dk-sw:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.22)}
.dk-sw[aria-checked="true"]:hover{box-shadow:inset 0 0 0 1px rgba(255,255,255,.2),0 0 16px rgba(91,137,255,.55)}
.dk-sw-row{flex-wrap:wrap;row-gap:10px}
.dk-ap-c{font:400 .75rem/1 var(--mono);color:var(--dim);white-space:nowrap;opacity:0;transition:opacity .3s ease-out}
.dk-ap-c b{font-weight:500;color:var(--tx)}
.dk-ap-c.is-on{opacity:1}
.dk-ap-c.is-log{color:#9db8ff}
.dk-ap-c:empty{display:none}
/* the chosen agent on the stage next to it: a soft blue light around the figure and on its floor (the figure itself unchanged) */
.ag-floor::after{content:"";position:absolute;inset:-6px -4%;border-radius:50%;background:radial-gradient(closest-side,rgba(91,137,255,.34),rgba(91,137,255,0));opacity:0;transition:opacity .45s ease-out}
.dk-art.ag-ap .ag-floor::after{opacity:1}
.ag-ch .ag-body::after{content:"";position:absolute;left:50%;bottom:4%;width:92%;height:70%;transform:translateX(-50%);border-radius:50%;
  background:radial-gradient(closest-side,rgba(91,137,255,.3),rgba(91,137,255,0));opacity:0;transition:opacity .45s ease-out;pointer-events:none;z-index:-1}
.dk-art.ag-ap .ag-ch.is-on .ag-body::after{opacity:1}
@media (prefers-reduced-motion:reduce){
  .dk-sw,.dk-sw i,.dk-ap-c,.ag-floor::after,.ag-ch .ag-body::after{transition:none}
  .dk-sw:active{transform:none}
  .dk-sw:active i{width:22px}
  .dk-sw[aria-checked="true"]:active i{transform:translateX(18px)}
}

/* ── 3. act 3 (Multiplayer) on a portrait screen (up to 640 px): a chat above the two owls. The guest's question first, at the top
   on the right (over the blue owl), then our answer with context.zip under it on the left (over Glauka); 14 px type, the file's
   name 14 px and its line 11 px mono. The headline block stands where the chat and the owls leave room: v19.js measures the two
   messages and writes --v19-tt (the title's top) and --v19-uh (our message's height), so nothing goes under the bar and nothing
   moves once the act plays. Without v19.js: the same layout from fixed heights. ── */
@media (max-width:640px){
  .mp-meet{--mp-owl:84px;--mp-off:58px;--mp-gap:44px;--mp-chat:10px}
  .mp-say{padding:8px 12px 9px;font:400 14px/19px var(--sans);white-space:normal;text-wrap:pretty}
  .mp-say-guest{left:auto;right:calc(50% - var(--mp-off) - var(--mp-owl-w)/2 - 14px);width:max-content;
    max-width:min(250px,calc(50% + var(--mp-off) + var(--mp-owl-w)/2 + 14px - 16px));
    bottom:calc(var(--mp-gap) + var(--mp-owl) + var(--mp-chat) + var(--v19-uh,92px) + 8px);border-radius:14px 14px 4px 14px;transform-origin:100% 100%}
  .mp-say-us{right:auto;left:calc(50% - var(--mp-off) - var(--mp-owl-w)/2 - 14px);width:max-content;max-width:calc(100% - 32px);
    bottom:calc(var(--mp-gap) + var(--mp-owl) + var(--mp-chat));border-radius:14px 14px 14px 4px;transform-origin:0 100%}
  .mp-say-by{font-size:12px;line-height:15px;margin-bottom:3px}
  .mp-say-us .mos-file{margin-top:8px;padding:7px 12px 7px 9px;border-radius:10px}
  .mp-say-us .mos-file-i{width:22px;height:22px}
  .mp-say-us .mos-file-t b{font-size:14px;line-height:18px}
  .mp-say-us .mos-file-t small{font-size:11px;line-height:14px}
  .title{top:var(--v19-tt,356px)}
  .a2{--a2-title-top:var(--v19-tt,356px)}
  /* the page under the opening starts where v9.js measured it, plus the safe area the stage was moved by */
  .scene{box-sizing:border-box;padding-top:var(--sat)}
  .stage{height:calc(100svh - var(--sat))}
}
/* a short screen (iPhone SE, 667 px): smaller owls and a tighter headline block, so the lede still fits the first screen */
@media (max-width:640px) and (max-height:740px){
  .mp-meet{--mp-owl:72px;--mp-gap:40px;--mp-chat:8px}
  .title h1{font-size:2.15rem}
  .title .lede{margin-top:20px;font-size:1rem}
}

/* ── 4. the phone scene on a phone: two cards in a row. v18 showed only the session phone there, so the scene (which plays on the
   phone behind) had nothing to show. Now the phone behind comes first and the session is the second card: one swipe of the thumb
   sideways (scroll-snap), two dots under them (v19.js) that say which one shows and take a tap. Chosen over one phone under the
   other: the scene stays in one screen with its button right under it, and the page is about 600 px shorter. The button that plays
   the scene: a 44 px pill in the ink of the page, centred under the dots. ── */
@media (max-width:700px){
  @container ip3 (max-width:559px){
    .ip3-stage{display:flex;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
    .ip3-stage::-webkit-scrollbar{display:none}
    .ip3-slot{flex:0 0 100%;scroll-snap-align:center;scroll-snap-stop:always}
    .ip3-slot+.ip3-slot{margin-top:0}
    .ip3-narrow-one .ip3-back{display:block;order:-1}
    .ip3-back .ip3-phone{--ry:-12deg;--x:0px}
    .ip3-front .ip3-phone{--ry:12deg;--x:0px}
  }
  .ip3-pg{display:flex;justify-content:center;margin:-6px 0 0;position:relative;z-index:1}   /* above the stage: all 44 px take a tap */
  .ip3-pg[hidden]{display:none}
  .ip3-pg button{all:unset;box-sizing:border-box;display:grid;place-items:center;width:44px;height:44px;cursor:pointer;-webkit-tap-highlight-color:transparent}
  .ip3-pg i{display:block;width:8px;height:8px;border-radius:50%;background:var(--rule);transition:background-color .2s ease-out,transform .2s ease-out}
  .ip3-pg button[aria-current="true"] i{background:var(--ink);transform:scale(1.15)}
  .ip3-pg button:focus-visible{outline:2px solid var(--ink);outline-offset:-6px;border-radius:50%}
  html.dm-on .kg-play{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;margin:8px auto 0;padding:0 20px;
    border:1px solid var(--rule);border-radius:999px;font-size:13px;line-height:18px;color:var(--ink);width:max-content;max-width:100%}
  html.dm-on .kg-play span{margin-right:0}

}
/* a short screen (667 px: iPhone SE, 320 or 375 wide): the phone a little smaller (.72 / .66 -> .62 of the device), so when the
   scene scrolls it under the contents strip and the line under the notch (v19.js §C) the whole phone stays in the window */
@media (max-width:700px) and (max-height:759px){
  @container ip3 (max-width:559px){ .ip3-stage{--ip3-k:.62} }
}

/* ── 6. small fixes found going down the whole page at 320 / 375 / 390 / 430 (each one named in the README) ── */
@media (max-width:700px){
  /* a. the contents strip at 320: three items and the pause sign in one line (the numbers go below 360 px, the words stay whole) */
  /* b. the names under the stage (ELON ...) and "trade-off": mono at least 11 px, "trade-off" never broken in two */
  .ag-nm{font-size:11px}
  .dk-to{font-size:11px;white-space:nowrap}
  /* c. finger targets of at least 44 px without moving anything: the names under the stage, the modular-context pill, the
        "100+ on GitHub" link under the diagram, the signet of the bar */
  .ag-col{position:relative}
  .ag-col::before{content:"";position:absolute;left:0;right:0;top:-8px;bottom:-8px}
  .dk-gh{height:44px}
  .sx-gh::before{content:"";position:absolute;left:-6px;right:-6px;top:-14px;bottom:-14px}
  .sx-gh{z-index:1}                                   /* the drawing around it no longer covers the top and bottom of that 44 px */
  .mb-sig{position:relative}
  .mb-sig::after{content:"";position:absolute;left:-2px;right:-10px;top:-7px;bottom:-7px}
  /* the contents strip: the demo's progress line goes under the links (still over the strip's ground), so all 44 px of a link take
     a tap; its segments still take one below the strip and beside the links */
  .dm-on .dm-line{z-index:-1}
  /* "Skip" in the opening: 47 x 24 drawn, 55 x 44 to a finger (nothing else lies in that corner) */
  .op-skip::before{content:"";position:absolute;inset:-10px -4px}
  /* d. the empty paper between Questions and the black section: 176 px on a phone (80 + 96), now 104 like the other gaps */
  #hats{margin-top:24px}
}
@media (max-width:359px){
  .uk-toc-c>a::before{display:none}
  .uk-toc-c>a{padding:0 10px}
  html.dm-on .kg-play{padding:0 14px;font-size:12px}
  /* v20: Nora's full card (now also at the top of the page) at 320: "Share context" filled its button to the pixel (101 of 101 px)
     and was cut to "Share conte..."; 8 px of padding instead of 12 leave it room, the type stays 13 px (only the team's card) */
  .mos-r .mos-btn{padding:0 8px}
}
/* §5 on a phone: the counter does not fit beside the badge, so it has its own line under the label, kept also while off, so the
   paragraph under it never jumps when the switch is turned on */
@media (max-width:700px){
  .dk-ap-c,.dk-ap-c:empty{display:block;flex-basis:100%;min-height:12px;padding-left:56px}
}
