/* Ported from the návrh 46 v2 prototype (Peter 5. 11.: "Návrh 46 v2: ok"); the port's own lines are marked "port:".
   Návrh 46 v2 (Peter 5. 11.: "graficky nie je v súlade s čistotou a prehľadnosťou, chýbajú ikony"): the Iná replika
   panel in the language of návrh 47 — a tool head with Späť, numbered quiet groups, one amber next step, small outline
   buttons with a drawing where the drawing helps, the explanations behind (i) and the "kedy" bubble.
   Every rule is scoped to form.n46 (or to the bubble and the anchored menu, which live outside the panel's scroll). */
form.n46{font-size:13px;line-height:1.35;--accent-soft:rgba(245,170,40,.13);--accent-line:rgba(245,170,40,.5);--info:#9CC6EE;--info-bg:rgba(156,198,238,.12);--hover:#262C30}
form.n46 .ic47{display:block;flex:none}
form.n46 .tm40{font-size:11px;font-weight:400;color:var(--faint)}
form.n46 .sp{flex:1}
/* ---- head: Späť · the tool's name and term · (i); then where it comes from and where it goes ---- */
form.n46 .hd46{display:flex;align-items:center;gap:10px;padding:7px 16px;border-bottom:1px solid var(--line)}
form.n46 .bk46{text-decoration:none;display:inline-flex;align-items:center;gap:4px;height:30px;padding:0 10px 0 7px;border-radius:8px;border:1px solid var(--line2);background:none;color:var(--text2);font:500 12.5px var(--font);cursor:pointer;flex:none}
form.n46 .bk46:hover{background:var(--hover);color:var(--text)}
form.n46 .tt46{min-width:0;display:flex;align-items:baseline;gap:6px;flex-wrap:wrap}
form.n46 .tt46 b{font-size:14.5px;font-weight:700;color:var(--text)}
form.n46 .hd46 .tip{margin-left:auto;flex:none}
form.n46 .fr46{display:grid;grid-template-columns:56px minmax(0,1fr);gap:10px;align-items:center;padding:6px 16px 7px;border-bottom:1px solid var(--line)}
form.n46 .th46{width:56px;height:32px;border-radius:5px;border:1px solid var(--line2);background:linear-gradient(180deg,#2A3540,#151B21);position:relative;overflow:hidden}
form.n46 .th46 video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover} /* port: the version's own frame */
form.n46 .fr46 .ft46{min-width:0;font-size:12.5px;color:var(--text)}
form.n46 .fr46 .ft46 small{display:block;color:var(--faint);font-size:11.5px;margin-top:1px}
form.n46 .ds46{color:var(--info);font-weight:600}
/* ---- groups: a number, an uppercase label, its (i) at the right end ---- */
form.n46 .ibody{padding:0}
form.n46 .sec46{padding:9px 16px 10px;border-bottom:1px solid var(--line)}
form.n46 .sec46:last-child{border-bottom:0}
form.n46 .sl46{display:flex;align-items:center;gap:8px;margin:0 0 6px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--faint);font-weight:600;min-height:18px}
form.n46 .sl46 label{margin:0;font:inherit;color:inherit;letter-spacing:inherit;text-transform:inherit}
form.n46 .num46{width:17px;height:17px;border-radius:50%;background:var(--raised);color:var(--text2);display:grid;place-items:center;font-size:10px;letter-spacing:0;flex:none}
form.n46 .sl46 .tip{flex:none}
form.n46 .sl46 .tip > summary, form.n46 .hd46 .tip > summary{width:17px;height:17px;font-size:10.5px}
/* "mimo obrazu" as a small switch in the group's head, with its drawing and its word */
form.n46 .sl46 .mo46{margin-left:auto;display:inline-flex;align-items:center;gap:5px;height:24px;padding:0 8px;border-radius:7px;border:1px solid var(--line2);color:var(--muted);font:500 11.5px var(--font);letter-spacing:0;text-transform:none;cursor:pointer}
form.n46 .sl46 .mo46 input{position:absolute;opacity:0;width:1px;height:1px}
form.n46 .sl46 .mo46:hover{color:var(--text);background:var(--hover)}
form.n46 .sl46 .mo46:has(input:checked){border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
form.n46 .sl46 .mo46:has(input:focus-visible){outline:2px solid var(--accent);outline-offset:2px}
form.n46 .sl46 .mo46 + .tip{margin-left:0}
/* ---- the line itself: one card = who · words · delivery · ▶ · the state of its sound ---- */
form.n46 .ln46{border:1px solid var(--line);border-radius:10px;background:var(--well);overflow:hidden}
form.n46 .who46{display:grid;grid-template-columns:28px minmax(0,1fr) minmax(0,.82fr);gap:6px;align-items:center;padding:6px 6px 0}
form.n46 .av46{width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:#22302A;color:#9BD3A8;border:1px solid #2F4A39;text-decoration:none}
form.n46 .av46:hover,form.n46 .av46:focus-visible{border-color:var(--accent);color:var(--accent);outline:none}
form.n46 .av46.none{background:var(--raised);color:var(--faint);border-color:var(--line2)}
form.n46 .who46 select{min-height:30px;height:30px;padding:0 26px 0 9px;font-size:12.5px;background-color:var(--panel);border-color:var(--line);background-position:right 8px center}
form.n46 .wd46{padding:6px 6px 0}
form.n46 .wd46 input[type=text]{min-height:34px;height:34px;font-size:13.5px;background:var(--panel);border-color:var(--line)}
form.n46 .wd46 input[type=text]:disabled{opacity:.7}
form.n46 .snd46{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 6px 6px 8px}
form.n46 .ln46 .snd46{margin-top:6px;border-top:1px solid var(--line)}
form.n46 .pl46{width:28px;height:28px;border-radius:50%;border:1px solid var(--line2);background:var(--raised);color:var(--text);display:grid;place-items:center;cursor:pointer;flex:none;padding:0}
form.n46 .pl46:hover,form.n46 .pl46:focus-visible{border-color:var(--accent);color:var(--accent);outline:none}
form.n46 .pl46 .ic47{margin-left:2px}
form.n46 .no46{width:28px;height:28px;border-radius:50%;border:1.5px dashed var(--line2);flex:none}
form.n46 .no46.warn{border-color:rgba(240,198,114,.6)}
form.n46 .no46.spin{border:2px solid var(--line2);border-top-color:var(--accent);animation:r46 .8s linear infinite}
@keyframes r46{to{transform:rotate(1turn)}}
@media (prefers-reduced-motion:reduce){form.n46 .no46.spin{animation:none}}
form.n46 .st46{min-width:0;flex:1;font-size:12.5px;color:var(--text2);line-height:1.3}
form.n46 .st46 small{display:block;font-size:11px;color:var(--faint)}
form.n46 .st46.warn{color:var(--warn)}
form.n46 .st46.warn small{color:var(--muted)}
/* the recording replaces the sound row in place: red dot, time, Zastaviť a použiť, Zrušiť */
form.n46 .rec46{display:flex;align-items:center;gap:8px;min-height:40px;padding:6px 6px 6px 8px;margin-top:6px;border-top:1px solid var(--line);background:rgba(240,154,139,.08)}
form.n46 .rec46 .rd46{width:10px;height:10px;border-radius:50%;background:#F09A8B;flex:none;animation:p46 1.2s infinite}
@keyframes p46{50%{opacity:.35}}
@media (prefers-reduced-motion:reduce){form.n46 .rec46 .rd46{animation:none}}
form.n46 .rec46 .st46 b{font-variant-numeric:tabular-nums;color:var(--text)}
/* ---- small outline buttons (the dec47 grammar): drawing + word, a price in grey ---- */
form.n46 .ob46{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 11px 0 9px;border-radius:8px;border:1px solid var(--line2);background:none;color:var(--text2);font:500 12.5px var(--font);cursor:pointer;white-space:nowrap;text-decoration:none;flex:none}
form.n46 .ob46:hover:not(:disabled),form.n46 .ob46:focus-visible{background:var(--hover);color:var(--text);border-color:var(--control);outline:none}
form.n46 .ob46 .pr46{color:var(--faint);font-weight:400}
form.n46 .ob46.need{border-color:var(--accent);background:var(--accent-soft);color:var(--text)}
form.n46 .ob46.need .ic47{color:var(--accent)}
form.n46 .ob46:disabled{opacity:.6;cursor:default}
form.n46 .ob46.sm{height:28px;padding:0 8px 0 10px;font-size:12px}
form.n46 .act46{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:8px}
form.n46 .act46:not(:has(> :not([hidden]))){display:none}
form.n46 .wy46{font-size:12px;color:var(--warn);min-width:0}
form.n46 .wy46 a{color:var(--accent)}
form.n46 .er46{margin:8px 0 0;font-size:12px;color:var(--warn);line-height:1.4}
/* the field the waiting button points at lights up (návrh 47 rule 5) */
form.n46 .want46{box-shadow:0 0 0 3px rgba(245,170,40,.28) !important;border-color:var(--accent) !important;transition:box-shadow .2s}
/* the anchored menu of the rare ways to a sound: a details whose pop is placed by script (never cut by the scroll) */
form.n46 .mn46{position:relative;flex:none}
form.n46 .mn46 > summary{list-style:none}
form.n46 .mn46 > summary::-webkit-details-marker{display:none}
form.n46 .mn46[open] > summary{background:var(--hover);color:var(--text);border-color:var(--control)}
.pop46{position:fixed;z-index:60;width:272px;padding:4px;border-radius:10px;background:var(--raised);border:1px solid var(--line2);box-shadow:0 18px 40px rgba(0,0,0,.55);font:13px/1.35 var(--font);color:var(--text)}
.pop46 .mi46{display:grid;grid-template-columns:18px minmax(0,1fr);column-gap:10px;align-items:center;width:100%;text-align:left;padding:7px 9px;border-radius:7px;border:0;background:none;color:var(--text);font:500 12.5px var(--font);cursor:pointer;margin:0}
.pop46 .mi46 .ic47{grid-row:1/span 2;color:var(--text2)}
.pop46 .mi46 small{grid-column:2;color:var(--muted);font-size:11px;font-weight:400}
.pop46 .mi46:hover,.pop46 .mi46:focus-visible{background:var(--hover);outline:none}
.pop46 .mi46:hover .ic47{color:var(--accent)}
.pop46 .mi46.demo46 b{color:var(--text2);font-weight:500}
.pop46 hr{border:0;border-top:1px solid var(--line2);margin:4px 6px}
.pop46 .gh46{display:flex;align-items:center;gap:8px;padding:6px 9px 4px;font-size:10.5px;letter-spacing:.09em;text-transform:uppercase;color:var(--muted);font-weight:600}
.pop46 .gh46 .ic47{color:var(--muted)}
.pop46 .tk46{display:grid;grid-template-columns:16px minmax(0,1fr) 26px;gap:8px;align-items:center;padding:5px 6px 5px 9px;border-radius:7px;cursor:pointer;margin:0;font:400 12.5px var(--font);color:var(--text2)}
.pop46 .tk46:hover{background:var(--hover)}
.pop46 .tk46 input{margin:0;accent-color:var(--accent)}
.pop46 .tk46 small{color:var(--muted);font-size:11px}
.pop46 .tk46:has(input:checked){color:var(--text)}
.pop46 .tk46 .pl46{width:26px;height:26px;border-radius:50%;border:1px solid var(--line2);background:none;color:var(--text2);display:grid;place-items:center;cursor:pointer;padding:0}
.pop46 .tk46 .pl46:hover{border-color:var(--accent);color:var(--accent)}
.pop46 .em46{padding:4px 9px 8px;font-size:12px;color:var(--muted)}
/* ---- runbox: Model dostane · model and time · the reason · the one amber button ---- */
/* pinned like the portal's .ifoot: the panel scrolls (only on a low window), the run box stays */
form.n46 .f46{flex:0 0 auto;position:sticky;bottom:0;z-index:2;margin-top:auto;border-top:1px solid var(--line);background:var(--head,#181C1F);padding:8px 16px 9px;box-shadow:0 -12px 16px -8px rgba(0,0,0,.55)}
form.n46 > .ibody{flex:0 0 auto}
form.n46 .sent46{display:flex;align-items:center;gap:8px;width:100%;border:1px solid var(--line);background:var(--well);border-radius:9px;padding:6px 10px;color:var(--text2);font:400 12px var(--font);cursor:pointer;text-align:left;margin:0 0 6px;min-height:0}
form.n46 .sent46:hover{border-color:var(--line2)}
form.n46 .sent46 b{color:var(--text);font-weight:600;flex:none}
form.n46 .sent46 .sm46{flex:1;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;color:var(--muted)}
form.n46 .sent46 .ok46{color:var(--ok);flex:none}
form.n46 .sent46 .wt46{color:var(--warn);flex:none}
form.n46 .md46{display:flex;align-items:center;gap:8px;font-size:12px;color:var(--muted);margin:0 0 6px}
form.n46 .md46 .sel46{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);border-radius:7px;padding:3px 8px;color:var(--text2);white-space:nowrap;background:none;font:400 12px var(--font);cursor:pointer}
form.n46 .md46 .sel46 b{color:var(--text);font-weight:600}
form.n46 .md46 .sel46 i{width:7px;height:7px;border-radius:50%;background:var(--ok)}
form.n46 .md46 .t46{margin-left:auto;white-space:nowrap;font-variant-numeric:tabular-nums}
form.n46 .why46{display:flex;align-items:flex-start;gap:6px;width:100%;margin:0 0 6px;padding:0;border:0;background:none;text-align:left;font:400 12px/1.35 var(--font);color:var(--warn);cursor:pointer}
form.n46 .why46[hidden]{display:none}
form.n46 .why46:hover{color:#F7D693}
form.n46 .go46{width:100%;height:44px;border:0;border-radius:10px;background:var(--accent);color:var(--accent-ink);font:600 14px var(--font);display:flex;align-items:center;justify-content:space-between;gap:8px;padding:0 7px 0 14px;cursor:pointer;min-height:44px}
form.n46 .go46:hover:not(:disabled){background:var(--accent-hover)}
form.n46 .go46 .tm40{color:rgba(20,23,25,.62);font-size:11.5px;margin-left:6px}
form.n46 .go46 .pr{background:rgba(20,23,25,.14);border-radius:7px;padding:5px 9px;font-size:12.5px;font-weight:600}
form.n46 .go46:disabled{background:var(--raised);color:var(--faint);cursor:not-allowed}
form.n46 .go46:disabled .tm40{color:var(--faint)}
form.n46 .go46:disabled .pr{background:var(--hover)}
form.n46 .md46 .cr46{color:var(--faint)}
/* the "kedy" bubble of návrh 47 (#kedy47 of portal.js): one, fixed, kept inside the window */
/* port: the bubble itself is #kedy47 of portal.js (navrh47.css); "Title|text" gives it a title line */
.kedy47 b{display:block;font-weight:600}
form.n46 .sent46 .sc23{flex:none;transition:transform .15s}
form.n46 .sent46[aria-expanded="true"] .sc23{transform:rotate(90deg)}

/* ---- port: the parts that are the portal's own, in the prototype's look ---- */
/* Model dostane's arrow turns when the text is open (the line's script writes only .sm23) */
form.n46 .sent46 .sc46{flex:none;color:var(--text2);transition:transform .15s}
form.n46 .sent46[aria-expanded="true"] .sc46{transform:rotate(90deg)}
form.n46 .sent46 .sh23,form.n46 .sent46 .sv23{display:none}
/* the reason above the button points up at what is missing (návrh 47 rule 5); AKU.why writes its text */
form.n46 .why46::before{content:"↑ ";flex:none}
/* the real model menu (details.pick of every tool) drawn as the prototype's small pill */
form.n46 .md46 .sel46 > summary.selbtn{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--line2);border-radius:7px;padding:3px 8px;min-height:0;height:auto;width:auto;color:var(--text2);white-space:nowrap;background:none;font:400 12px var(--font)}
form.n46 .md46 .sel46 > summary .val b{color:var(--text);font-weight:600}
form.n46 .md46 .sel46 > summary .dot{width:7px;height:7px}
form.n46 .md46 .sel46{flex:0 1 auto;min-width:0;margin:0;position:static}
/* the model name never widens the panel (aside.ws-panel scrolled sideways under it, aku-test 6. 11.): the pill
   shrinks with an ellipsis and its menu spans the row */
form.n46 .md46{position:relative}
form.n46 .md46 .sel46 > summary.selbtn{max-width:100%;min-width:0}
form.n46 .md46 .sel46 > summary .val{min-width:0;overflow:hidden;text-overflow:ellipsis}
form.n46 .md46 .sel46 > .pick-pop{left:0;right:0;width:auto}
form.n46 .md46 .t46{flex:none}
/* the menu Iný zvuk lives in the panel's scroll; its pop is placed by the script (never cut by the scroll) */
.pop46[hidden]{display:none}
form.n46 .wd46 input[type=text]:read-only{opacity:.7}
form.n46 .er46[hidden]{display:none}
.n46 textarea.ta46{min-height:46px;padding:7px 10px 3px;font-size:13px;resize:none}
