/* moduleone.ai/os, v13 (zlecenie-v13.md, projekt-v13b.md and the owner's correction after v13b): on top of v12. Loaded last.
   A. the demo by the notch is v12's; its widths are v12's variables times one multiplier --wk (1.0: see §A);
   B. buttons on the two decision cards of the demo; Nora's card: "Nora's Superagent", her question in a bubble, Glauka's answer
      as a draft ready to send with context.zip, sent in place;
   D. the black section's left column: a stage of the agents (scena.js), a row of choice with a copper clock, the chosen card;
   E. Autopilot as one line of "Knows your style.".
   Only the tokens of site.css; no new fonts, no frame in a frame, no accent bar on any edge. */

/* ── A. the owner's correction after v13b: the demo by the notch is v12's (mechanics, look, the opening's question). Widths: v12's
   own variables and formulas, all scaled by ONE multiplier --wk on the variables v12 computes every state from: the camera housing
   (--notch 220, and --notch-w 220 that places act 3's blue team dots), the wings (--wing 75, + --mos-xr 18 on the right), the open
   shell (--w-open 400, --w-wide 520; the widget's open shell is its band, as in v12). The constants of v12's formulas (28, 56, the
   10 px gaps, dot and head sizes) stay. Rule: every dot and head at least 14 px inside the black shape in every state; the
   multiplier is the smallest of 0.82 / 0.88 / 0.94 / 1.0 that keeps it (_build/sprawdz-v13d.mjs measures the four). The three heads
   of the team (3 x 27 + 2 x 8, 10 px from the housing) need the right wing 28 + 93 x --wk >= 121, so only 1.0 keeps them: the
   page has v12's widths. --notch, --notch-w and --wing are registered lengths, so hero.js and pasek.js still read pixels. ── */
@property --notch{syntax:'<length>';inherits:true;initial-value:220px}
@property --notch-w{syntax:'<length>';inherits:true;initial-value:220px}
@property --wing{syntax:'<length>';inherits:true;initial-value:75px}
@media (min-width:641px){
  :root{--wk:1;--notch:calc(220px*var(--wk));--notch-w:calc(220px*var(--wk));--wing:calc(75px*var(--wk));--mos-xr:calc(18px*var(--wk));
    --w-open:calc(400px*var(--wk));--w-wide:calc(520px*var(--wk))}
  .w.open{width:var(--w-open)}
  .w.open.wide{width:var(--w-wide)}
  .a2{--a2-card-w:var(--w-wide)}
}

/* ── B. the buttons of a decision card (Deck's question, Nora's request): a row 14 px under the words, two buttons of equal width
   over the whole card, 36 px tall, the main one light with dark words, the other outlined in a dim line with light words; the key
   a small dim sign before the word ── */
.mos-bts{display:flex;gap:8px;margin-top:14px}
.mos-btn{all:unset;box-sizing:border-box;position:relative;flex:1 1 0;min-width:0;display:flex;align-items:center;justify-content:center;gap:7px;height:36px;padding:0 12px;
  border-radius:18px;font:500 13px/1 var(--mono);color:var(--tx);white-space:nowrap;cursor:pointer;
  box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--dim) 55%,var(--shell));transition:background-color var(--t-ui) ease-out,box-shadow var(--t-ui) ease-out}
.mos-btn span{overflow:hidden;text-overflow:ellipsis}
.mos-btn kbd{flex:none;font:500 11px/1 var(--mono);color:var(--dim)}
.mos-btn:hover{background:var(--mos-hov);box-shadow:inset 0 0 0 1px var(--dim)}
.mos-btn.mos-press{background:#2e2c29}
.mos-btn.mos-pri{background:var(--tx);color:var(--shell);box-shadow:none}
.mos-btn.mos-pri kbd{color:color-mix(in srgb,var(--shell) 55%,var(--tx))}
.mos-btn.mos-pri:hover,.mos-btn.mos-pri.mos-press{background:#fff}
.mos-btn:focus-visible{outline:2px solid var(--tx);outline-offset:2px}
@media (max-width:640px),(hover:none){.mos-btn kbd{display:none}}    /* no Return key on a phone: the word alone */
/* Nora's card, as a messenger: her message comes in on the LEFT (her head, a bubble of her colour, the sharp corner at the bottom
   left); Glauka's draft goes out on the RIGHT (the owl at the bottom right, a bubble as wide as its words, at most 80% of the card,
   the sharp corner at the bottom right): a dashed copper outline before, solid and filled once shared; context.zip a file in it;
   the delivery state under the bubble at the right: "ready to send", then "sent ✓" */
.mos-st.mos-ver{gap:4px;color:var(--dim)}
.mos-st.mos-ver .mos-i{color:var(--dim)}
.mos-bub{margin:5px 0 0 32px}
.mos-bub p{display:inline-block;margin:0;padding:7px 11px;border-radius:14px 14px 14px 4px;
  background:color-mix(in srgb,var(--mos-pc,#5882de) 30%,var(--shell));color:var(--tx);overflow-wrap:anywhere}
.mos-dr{display:flex;justify-content:flex-end;align-items:flex-end;gap:10px;margin-top:8px}
.mos-dr>.mos-cf{flex:none;width:22px;height:18px;margin:0 0 2px}
.mos-drb{box-sizing:border-box;max-width:80%;padding:7px 11px 8px;border:1px dashed color-mix(in srgb,var(--cu) 80%,var(--shell));border-radius:14px 14px 4px 14px;
  text-align:left;transition:background-color .25s ease-out,border-color .25s ease-out}
.mos-drb p{margin:0;color:var(--tx);overflow-wrap:anywhere}
.mos-file{display:flex;align-items:center;gap:8px;margin-top:8px;padding:6px 10px 6px 8px;border-radius:8px;background:rgba(255,255,255,.06);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.14);opacity:.75;transition:opacity .25s ease-out}
.mos-file-i{flex:none;width:18px;height:18px;color:var(--tx)}
.mos-file-t{display:flex;flex-direction:column;min-width:0}
.mos-file-t b{font:500 12px/15px var(--sans);color:var(--tx);margin:0}
.mos-file-t small{font:400 10px/13px var(--mono);color:var(--dim)}
.mos-drk{margin:4px 32px 0 0;text-align:right;font:400 10px/14px var(--mono);color:var(--dim)}
.mos-drk.mos-sent{color:var(--green)}
.mos-dr.mos-sent .mos-drb{border-style:solid;border-color:transparent;background:color-mix(in srgb,var(--cu) 26%,var(--shell));animation:mos-sent .25s ease-out both}
.mos-dr.mos-sent .mos-file{opacity:1}
@keyframes mos-sent{from{background-color:transparent;border-color:color-mix(in srgb,var(--cu) 80%,var(--shell))}}
/* the buttons fold away in 200 ms after sharing, so the card does not jump */
.mos-bts-gone{height:0;animation:mos-fold .2s ease-out both}
@keyframes mos-fold{from{height:50px}to{height:0}}
@media (prefers-reduced-motion:reduce){.mos-dr.mos-sent .mos-drb,.mos-bts-gone{animation:none}.mos-drb{transition:none}}
.mos-still .mos-bts-gone,.mos-still .mos-dr.mos-sent .mos-drb{animation:none}
/* the guest's bubble in the opening (act 3): the caption "Nora's Superagent" over the question */
.mp-say-guest{white-space:normal;width:max-content;max-width:min(230px,calc(50vw - var(--mp-off) - var(--mp-owl-w)/2 - 24px))}
.mp-say-by{display:block;margin-bottom:2px;font:600 11px/14px var(--sans);color:var(--muted,#66625a)}

/* ── D. v13b (projekt-v13b §2): the black section's left column, a minimal stage of the agents ──
   No frames, no cards with a ground, no shadow under text: light, a thin ring, one copper note. scena.js places the figures. */
.dk{--dk-line:rgba(255,255,255,.14);overflow:clip}
.dk-in{align-items:start}
.dk-art{position:relative;width:100%;max-width:560px;justify-self:start}
/* the vignette: a faint light centred on the stage, gone at 520 px */
.dk-art::before{content:"";position:absolute;z-index:0;left:50%;top:150px;width:1040px;height:1040px;margin:-520px 0 0 -520px;border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.035),rgba(255,255,255,0));pointer-events:none}
.dk-art>*{position:relative;z-index:1}
.dk-defs{position:absolute;width:0;height:0;overflow:hidden}
/* 2.1 the stage: 300 px (220 on a phone) */
.ag{--sc-front:210px;--sc-back:96px;--sc-foot:30px;--sc-rx:.39;position:relative;height:300px;overflow:hidden}
.ag-floor{position:absolute;left:11%;width:78%;height:64px;bottom:calc(var(--sc-foot) - 32px);border-radius:50%;
  background:radial-gradient(closest-side,rgba(255,255,255,.07),rgba(255,255,255,0))}
.ag-cone{position:absolute;left:calc(50% - 90px);top:0;width:180px;bottom:var(--sc-foot);clip-path:polygon(34% 0,66% 0,100% 100%,0 100%);
  background:linear-gradient(rgba(255,255,255,.05),rgba(255,255,255,0));filter:blur(12px)}
.ag-ring{position:absolute;box-sizing:border-box;border:1px solid var(--dk-line);border-radius:50%;pointer-events:none}
.ag-ch{all:unset;position:absolute;display:block;width:0;height:0;cursor:pointer;-webkit-tap-highlight-color:transparent}
.ag-mark{position:absolute;left:-2.5px;top:-2.5px;width:5px;height:5px;border-radius:50%;background:var(--dk-line);transition:background-color .3s ease-out}
.ag-ch.is-on .ag-mark{background:var(--cu)}
.ag-body{position:absolute;left:0;bottom:0;display:block;height:var(--sc-front);transform:translateX(-50%) scale(var(--sc-s,1));transform-origin:50% 100%}
.ag-fig{display:block;height:100%;width:auto;max-width:none;margin-bottom:-6px;opacity:var(--sc-o,1);
  filter:grayscale(var(--sc-g,0)) brightness(var(--sc-b,1));-webkit-user-drag:none;user-select:none}
.ag-ch[data-sc-name="Glauka"] .ag-fig{margin-bottom:-2px}
.ag-refl{position:absolute;left:0;top:calc(100% - 4px);display:block;height:100%;width:auto;max-width:none;transform:scaleY(-1);opacity:var(--sc-r,0);
  -webkit-mask-image:linear-gradient(to top,#000,transparent 60px);mask-image:linear-gradient(to top,#000,transparent 60px);pointer-events:none}
.ag-cap{display:none}
/* without the script: the four figures in a row with their names; no ring, no light */
html:not(.js) .ag,.dk-art:not(.ag-on) .ag{display:flex;justify-content:center;align-items:flex-end;gap:12px;height:auto;padding:24px 0 8px}
html:not(.js) .ag-ring,html:not(.js) .ag-cone,.dk-art:not(.ag-on) .ag-ring,.dk-art:not(.ag-on) .ag-cone,html:not(.js) .ag-refl,.dk-art:not(.ag-on) .ag-refl,
html:not(.js) .ag-mark,.dk-art:not(.ag-on) .ag-mark{display:none}
html:not(.js) .ag-ch,.dk-art:not(.ag-on) .ag-ch{position:relative;display:flex;flex-direction:column;align-items:center;gap:8px;width:auto;height:auto}
html:not(.js) .ag-body,.dk-art:not(.ag-on) .ag-body{position:static;height:96px;transform:none}
html:not(.js) .ag-cap,.dk-art:not(.ag-on) .ag-cap{display:block;font:400 11px/1 var(--mono);color:var(--dim)}
/* 2.2 the row of choice: four equal columns; over each a 1 px line; over the chosen one it fills with copper in 5 s (the clock) */
.ag-row{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-top:8px}
html:not(.js) .ag-row{display:none}
.ag-col{all:unset;display:block;padding:0 0 6px;cursor:pointer;text-align:left}
.ag-ln{position:relative;display:block;height:1px;background:var(--dk-line);overflow:hidden}
.ag-fill{position:absolute;inset:0;display:block;background:var(--cu);transform:scaleX(0);transform-origin:0 50%}
.ag-col.is-on .ag-fill{transform:scaleX(1)}
.ag-col.is-run .ag-fill{animation:ag-fill 5s linear both}
.ag-hold .ag-col.is-run .ag-fill{animation-play-state:paused}
@keyframes ag-fill{from{transform:scaleX(0)}to{transform:scaleX(1)}}
.ag-nm{display:block;margin-top:12px;font:500 11px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--dim);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;transition:color var(--t-ui) ease-out}
.ag-col:hover .ag-nm{color:var(--tx2)}
.ag-col.is-on .ag-nm{color:var(--tx)}
.ag-col:focus-visible{outline:2px solid var(--tx);outline-offset:4px;border-radius:2px}
/* 2.3 the card of the chosen agent: 28 px under the row, no lines; its height is the tallest card's (the cards share one cell) */
.dk-cards{display:grid;margin-top:28px}
.dk-card{grid-area:1/1;visibility:hidden;opacity:0}
.dk-card.is-on{visibility:visible;opacity:1;animation:dk-in .22s ease-out .12s both}
.dk-card.is-on.is-out{animation:dk-out .12s ease-in both}
@keyframes dk-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
@keyframes dk-out{from{opacity:1;transform:none}to{opacity:0;transform:translateY(-4px)}}
html:not(.js) .dk-card{grid-area:auto;visibility:visible;opacity:1}
html:not(.js) .dk-card+.dk-card{margin-top:40px}
.dk-ck{margin:0;font:400 11px/1 var(--mono);color:var(--dim)}
.dk-sep{margin:0 10px}
.dk-ct{margin:14px 0 0;font:500 34px/1.1 var(--sans);letter-spacing:-.022em;color:var(--tx);text-wrap:balance}
.dk-q{margin:14px 0 0;font:400 12px/1.5 var(--mono);color:var(--dim)}
.dk-gt{margin-right:8px;color:var(--cu)}
.dk-ca{margin:10px 0 0;min-height:calc(2*1.4*19px);font:400 19px/1.4 var(--sans);color:var(--tx);text-wrap:balance}
.dk-rt{margin:22px 0 0}
.dk-rt>div{display:grid;grid-template-columns:150px auto;align-items:center;height:26px}
.dk-rt dt{font:400 14px/1 var(--sans);color:var(--tx2)}
.dk-rt dd{display:flex;align-items:center;gap:7px;margin:0}
.dk-st{display:block;flex:none;width:13px;height:13px;fill:transparent;stroke:var(--dk-line);stroke-width:1.23;stroke-linejoin:round}
.dk-st.dk-full{fill:var(--tx);stroke:var(--tx)}
.dk-card.is-on .dk-st.dk-full{animation:dk-star .18s ease-out both}
.dk-rt dd .dk-st:nth-of-type(2){animation-delay:.04s}.dk-rt dd .dk-st:nth-of-type(3){animation-delay:.08s}
.dk-rt dd .dk-st:nth-of-type(4){animation-delay:.12s}.dk-rt dd .dk-st:nth-of-type(5){animation-delay:.16s}
@keyframes dk-star{from{fill:transparent;stroke:rgba(255,255,255,.14)}}
.dk-to{margin-left:12px;font:500 10px/1 var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--dim)}
@media (max-width:700px){
  .ag{--sc-front:150px;--sc-back:72px;--sc-foot:22px;--sc-rx:.37;height:220px}
  .dk-art::before{top:110px}
  .ag-row{gap:8px}
  .ag-nm{font-size:10px;letter-spacing:.06em}
  .dk-ct{font-size:28px}
  .dk-ca{font-size:17px;min-height:calc(3*1.4*17px)}
  .dk-rt>div{grid-template-columns:132px auto}
}
@media (prefers-reduced-motion:reduce){
  .dk-card.is-on,.dk-card.is-on.is-out,.dk-card.is-on .dk-st.dk-full{animation:none}
  .ag-col.is-run .ag-fill{animation:none}
}
/* ── E. Autopilot: one line of "Knows your style.", 20 px under the pill, no heading of its own ── */
.dk-ap{margin-top:20px;scroll-margin-top:calc(var(--band) + 40px)}
.dk-ap .dk-sw-row{margin:0}
.dk-ap .dk-ap-p{margin-top:10px}

/* v13b (projekt-v13b §1) on a phone: the closed right wing (78 px, v12.css §7, so the clock stays clear at 390) holds one head;
   the other two heads show only while the shell is open (the line or the team's card), never cut by the closed edge */
@media (max-width:640px){
  .w.mos:not(.open) .mos-rw .mos-mk[data-person]:nth-child(n+2){opacity:0!important;visibility:hidden!important;transition:opacity .15s ease-out,visibility 0s linear .15s}
}
