/* ==========================================================
   Montażownia v3: program do montażu jako strona.
   Pulpit z v2 leży pod programem. 5 motywów: data-theme="a|b|c|d|e" na <html>.
   ========================================================== */

@font-face { font-family: "Geist"; src: url("fonts/geist-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist"; src: url("fonts/geist-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("fonts/geist-mono-latin-ext-wght-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-standard-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Archivo"; src: url("fonts/archivo-latin-ext-standard-normal.woff2") format("woff2-variations"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap;
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

/* ==========================================================
   Motywy. Wszystkie kolory, cienie i glow tylko tutaj.
   ========================================================== */
:root {
  color-scheme: dark;
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Archivo", "Geist", ui-sans-serif, system-ui, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  --r: 16px;          /* zaokrąglenie paneli */
  --r-sm: 10px;
  --gap: 8px;         /* szczeliny między panelami */
  --bar-h: 40px;
  --dock-h: 42px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.4, .64, 1);
  --layout: cubic-bezier(.3, 1.12, .4, 1);   /* przejścia układu: lekka sprężystość */
  --grain-o: .05;
  /* domyślne dla ciemnych motywów; jasny D je nadpisuje */
  --screen-text: var(--text);
  --screen-muted: var(--muted);
  --drop: rgba(0, 0, 0, .9);
  --icon-shadow: 0 1px 2px rgba(0, 0, 0, .8);
  --scrim: rgba(0, 0, 0, .55);
}

/* ---------- A: Nocna montażownia (domyślny) ---------- */
:root, [data-theme="a"] {
  --bg: #0b0a09;
  --bg-fx:
    radial-gradient(900px 560px at 50% 38%, rgba(255, 176, 92, .07), transparent 70%),
    radial-gradient(1400px 800px at 80% 110%, rgba(255, 80, 40, .05), transparent 60%);
  --panel: #151311;
  --panel-blur: none;
  --panel-2: #1d1a17;      /* pola, kafle w panelach */
  --panel-3: #27231f;      /* hover */
  --edge: rgba(255, 236, 214, .075);
  --edge-top: rgba(255, 236, 214, .12);
  --edge-2: rgba(255, 236, 214, .14);
  --text: #f3ede4;
  --muted: #b0a698;
  --dim: #8b8276;
  --acc: #ffb44c;
  --acc-2: #ffd08a;
  --acc-ink: #241504;
  --acc-soft: rgba(255, 180, 76, .12);
  --acc-line: rgba(255, 180, 76, .42);
  --glow: 0 0 0 1px rgba(255, 196, 120, .35), 0 8px 26px -6px rgba(255, 160, 50, .55), 0 0 44px -8px rgba(255, 150, 40, .45);
  --glow-hi: 0 0 0 1px rgba(255, 210, 150, .55), 0 10px 34px -4px rgba(255, 160, 50, .75), 0 0 70px -6px rgba(255, 150, 40, .6);
  --glow-s: 0 0 14px rgba(255, 170, 60, .55);
  --rec: #ff3b2f;
  --rec-glow: 0 0 6px rgba(255, 59, 47, .9), 0 0 18px rgba(255, 59, 47, .6), 0 0 36px rgba(255, 59, 47, .3);
  --video: #3f6fa8; --video-2: #2c5282;
  --audio: #2f8a64; --audio-2: #236a4c;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
  --mon-glow: 0 0 120px 6px rgba(255, 196, 140, .08), 0 0 260px 40px rgba(255, 150, 80, .05);
  --screen: radial-gradient(800px 420px at 70% 0%, rgba(255, 190, 120, .08), transparent 70%), #080706;
  --blk-1: #c9a979; --blk-2: #4f86c6; --blk-3: #3fa17a; --blk-4: #ffb44c; --blk-5: #d9705f; --blk-6: #ffd08a;
  --paper: #f3ede4;
}

/* ---------- B: Szkło studyjne ---------- */
[data-theme="b"] {
  --bg: #0a0f19;
  --bg-fx:
    radial-gradient(50vw 50vw at 18% 22%, rgba(28, 215, 240, .36), transparent 62%),
    radial-gradient(56vw 56vw at 86% 88%, rgba(48, 98, 255, .42), transparent 62%),
    radial-gradient(30vw 30vw at 70% 8%, rgba(60, 120, 255, .14), transparent 60%),
    linear-gradient(180deg, #0b1220, #090d16);
  --panel: rgba(18, 26, 42, .48);
  --panel-blur: blur(26px) saturate(150%);
  --panel-2: rgba(255, 255, 255, .05);
  --panel-3: rgba(255, 255, 255, .09);
  --edge: rgba(200, 225, 255, .10);
  --edge-top: rgba(220, 240, 255, .30);
  --edge-2: rgba(200, 225, 255, .18);
  --text: #eef5fd;
  --muted: #b3c2d6;
  --dim: #8d9db3;
  --acc: #34e4f2;
  --acc-2: #9cf4fb;
  --acc-ink: #02171b;
  --acc-soft: rgba(52, 228, 242, .12);
  --acc-line: rgba(52, 228, 242, .45);
  --glow: 0 0 0 1px rgba(140, 245, 255, .45), 0 8px 26px -6px rgba(30, 210, 240, .6), 0 0 46px -8px rgba(30, 210, 240, .5);
  --glow-hi: 0 0 0 1px rgba(170, 250, 255, .65), 0 10px 34px -4px rgba(30, 210, 240, .8), 0 0 72px -6px rgba(30, 210, 240, .6);
  --glow-s: 0 0 14px rgba(52, 228, 242, .6);
  --rec: #ff4d5e;
  --rec-glow: 0 0 6px rgba(255, 77, 94, .9), 0 0 18px rgba(255, 77, 94, .55), 0 0 34px rgba(255, 77, 94, .3);
  --video: #4b7fe0; --video-2: #2f5bb5;
  --audio: #2a9d8f; --audio-2: #1d7268;
  --shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 24px 50px -26px rgba(0, 0, 0, .8);
  --mon-glow: 0 0 140px 0 rgba(52, 228, 242, .07);
  --screen: radial-gradient(800px 420px at 70% 0%, rgba(80, 160, 255, .12), transparent 70%), rgba(4, 8, 14, .88);
  --blk-1: #8fb4e8; --blk-2: #4b7fe0; --blk-3: #2a9d8f; --blk-4: #34e4f2; --blk-5: #ff7d8a; --blk-6: #9cf4fb;
  --paper: #eef5fd;
}

/* ---------- C: Zorza ---------- */
[data-theme="c"] {
  --bg: #060808;
  --bg-fx: linear-gradient(180deg, #070a0a, #050606);
  --panel: rgba(12, 15, 15, .8);
  --panel-blur: blur(10px);
  --panel-2: #161b1a;
  --panel-3: #1f2624;
  --edge: rgba(210, 255, 230, .07);
  --edge-top: rgba(210, 255, 230, .13);
  --edge-2: rgba(210, 255, 230, .14);
  --text: #eef5ef;
  --muted: #a7b6ad;
  --dim: #82918a;
  --acc: #c4f55f;
  --acc-2: #e0ff9e;
  --acc-ink: #142003;
  --acc-soft: rgba(196, 245, 95, .11);
  --acc-line: rgba(196, 245, 95, .42);
  --glow: 0 0 0 1px rgba(214, 255, 140, .4), 0 8px 26px -6px rgba(170, 240, 70, .5), 0 0 44px -8px rgba(160, 240, 60, .42);
  --glow-hi: 0 0 0 1px rgba(224, 255, 170, .6), 0 10px 34px -4px rgba(170, 240, 70, .7), 0 0 70px -6px rgba(160, 240, 60, .55);
  --glow-s: 0 0 14px rgba(196, 245, 95, .55);
  --rec: #ff4a3d;
  --rec-glow: 0 0 6px rgba(255, 74, 61, .9), 0 0 18px rgba(255, 74, 61, .55), 0 0 34px rgba(255, 74, 61, .28);
  --video: #3d74c9; --video-2: #2a539a;
  --audio: #1f8f86; --audio-2: #176a63;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 20px 44px -26px rgba(0, 0, 0, .95);
  --mon-glow: 0 0 120px 0 rgba(120, 255, 200, .05);
  --screen: radial-gradient(800px 420px at 70% 0%, rgba(90, 255, 190, .07), transparent 70%), #040606;
  --blk-1: #9fc9b4; --blk-2: #3d74c9; --blk-3: #1f8f86; --blk-4: #c4f55f; --blk-5: #f08a6b; --blk-6: #e0ff9e;
  --paper: #eef5ef;
}

/* ---------- D: Guma balonowa (jasny) ---------- */
[data-theme="d"] {
  color-scheme: light;
  --bg: hsl(344 75% 94%);
  --bg-fx:
    radial-gradient(60% 70% at 20% 0%, hsl(344 75% 99% / .7), transparent 70%),
    radial-gradient(60% 60% at 90% 100%, hsl(339 76% 70% / .48), transparent 70%);
  --panel: hsl(344 75% 99%);
  --panel-blur: none;
  --panel-2: hsl(344 68% 96%);
  --panel-3: hsl(344 70% 92%);
  --edge: hsl(339 70% 30% / .14);
  --edge-top: hsl(0 0% 100% / .9);
  --edge-2: hsl(339 70% 30% / .22);
  --text: hsl(339 50% 15%);
  --muted: hsl(339 22% 38%);
  --dim: hsl(339 16% 46%);
  --acc: hsl(339 76% 57%);
  --acc-2: hsl(339 85% 72%);
  --acc-ink: #fff;
  --acc-soft: hsl(339 76% 57% / .12);
  --acc-line: hsl(339 76% 57% / .45);
  --glow: 0 0 0 1px hsl(339 76% 71% / .72), 0 6px 22px -4px hsl(339 76% 57% / 1), 0 0 44px -6px hsl(339 76% 57% / 1);
  --glow-hi: 0 0 0 1px hsl(339 76% 78% / .85), 0 10px 30px -4px hsl(339 76% 52% / 1), 0 0 64px -6px hsl(339 76% 57% / 1);
  --glow-s: 0 0 14px hsl(339 76% 57% / .55);
  --rec: #e3304a;
  --rec-glow: 0 0 6px rgba(227, 48, 74, .8), 0 0 16px rgba(227, 48, 74, .45);
  --video: #6e9be6; --video-2: #4a78c8;
  --audio: #46ad8a; --audio-2: #33896b;
  --shadow: 0 1px 0 rgba(255, 255, 255, .8) inset, 0 18px 40px -24px hsl(339 50% 30% / .45);
  --mon-glow: 0 0 120px 6px hsl(339 76% 60% / .16);
  --screen: radial-gradient(80% 70% at 70% 0%, hsl(339 76% 60% / .35), transparent 70%), hsl(339 55% 10%);
  --screen-text: hsl(339 80% 96%);
  --screen-muted: hsl(339 30% 78%);
  --blk-1: hsl(339 61% 80%); --blk-2: #8fbaff; --blk-3: #7fd8b9; --blk-4: hsl(339 76% 57%); --blk-5: #ffb08a; --blk-6: hsl(339 90% 90%);
  --paper: hsl(344 75% 99%);
  --drop: hsl(339 50% 25% / .35);
  --icon-shadow: 0 1px 2px hsl(0 0% 100% / .9);
  --scrim: hsl(339 50% 20% / .35);
}

/* ---------- E: Różowe złoto ---------- */
[data-theme="e"] {
  --bg: hsl(356 39% 5%);
  --bg-fx:
    radial-gradient(70% 60% at 50% 35%, hsl(16 65% 81% / .11), transparent 70%),
    radial-gradient(60% 50% at 100% 100%, hsl(16 65% 81% / .07), transparent 70%);
  --panel: hsl(356 29% 10%);
  --panel-blur: none;
  --panel-2: hsl(356 25% 13%);
  --panel-3: hsl(356 22% 17%);
  --edge: hsl(16 60% 85% / .1);
  --edge-top: hsl(16 60% 85% / .16);
  --edge-2: hsl(16 60% 85% / .18);
  --text: hsl(16 45% 95%);
  --muted: hsl(16 18% 68%);
  --dim: hsl(16 12% 56%);
  --acc: hsl(16 65% 81%);
  --acc-2: hsl(16 59% 88%);
  --acc-ink: hsl(16 80% 8%);
  --acc-soft: hsl(16 65% 81% / .12);
  --acc-line: hsl(16 65% 81% / .42);
  --glow: 0 0 0 1px hsl(16 65% 92% / .43), 0 6px 22px -4px hsl(16 65% 81% / .71), 0 0 44px -6px hsl(16 65% 81% / .62);
  --glow-hi: 0 0 0 1px hsl(16 65% 94% / .6), 0 10px 32px -4px hsl(16 65% 81% / .85), 0 0 70px -6px hsl(16 65% 81% / .7);
  --glow-s: 0 0 14px hsl(16 65% 81% / .55);
  --rec: #ff5a4f;
  --rec-glow: 0 0 6px rgba(255, 90, 79, .9), 0 0 18px rgba(255, 90, 79, .55), 0 0 34px rgba(255, 90, 79, .3);
  --video: #5d6f93; --video-2: #475877;
  --audio: #5d8570; --audio-2: #476a57;
  --shadow: 0 1px 0 rgba(255, 255, 255, .03) inset, 0 18px 40px -24px rgba(0, 0, 0, .9);
  --mon-glow: 0 0 120px 6px hsl(16 65% 81% / .07);
  --screen: hsl(356 23% 4%);
  --screen-text: hsl(16 60% 96%);
  --blk-1: hsl(16 35% 72%); --blk-2: #7f93b6; --blk-3: #8db09b; --blk-4: hsl(16 65% 81%); --blk-5: #b86d6f; --blk-6: hsl(16 59% 86%);
  --paper: hsl(16 45% 95%);
}

/* ==========================================================
   Baza
   ========================================================== */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg-fx), var(--bg);
  background-attachment: fixed;
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  transition: background-color .4s ease;
}
/* ziarno na wszystkim, bardzo nisko kryjące */
body::after {
  content: ""; position: fixed; inset: 0; z-index: 4000; pointer-events: none; opacity: var(--grain-o);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .9 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
/* zorza (tylko motyw C) */
body::before {
  content: ""; position: fixed; inset: -20%; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity .6s ease;
}
[data-theme="c"] body::before, [data-theme="c"] .win--app::before {
  opacity: .72;
  background:
    radial-gradient(38% 30% at 30% 30%, rgba(80, 255, 190, .55), transparent 70%),
    radial-gradient(34% 26% at 62% 22%, rgba(60, 170, 255, .45), transparent 70%),
    radial-gradient(30% 24% at 78% 40%, rgba(196, 245, 95, .35), transparent 70%);
  filter: blur(60px) saturate(120%);
  animation: aurora 38s ease-in-out infinite alternate;
}
@keyframes aurora {
  0%   { transform: translate3d(-6%, -4%, 0) rotate(-4deg) scale(1); }
  50%  { transform: translate3d(5%, 3%, 0) rotate(3deg) scale(1.12); }
  100% { transform: translate3d(-2%, 6%, 0) rotate(-1deg) scale(1.04); }
}

img, svg, video { display: block; max-width: 100%; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3 { margin: 0; text-wrap: balance; font-weight: 700; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
kbd { font: 500 10px/1 var(--mono); padding: 2px 5px; border-radius: 4px; border: 1px solid var(--edge-2); color: var(--dim); }

.mono { font-family: var(--mono); font-size: 11.5px; letter-spacing: .03em; text-transform: uppercase; font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.noscript { position: relative; z-index: 5000; padding: 16px; background: var(--rec); color: #fff; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; border-radius: 6px; }
.rec-dot { display: inline-block; flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--rec); box-shadow: var(--rec-glow); animation: blink 1.6s steps(1) infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- przyciski ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em;
  padding: 11px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, var(--acc-2), var(--acc) 55%); color: var(--acc-ink);
  font: 600 15px/1 var(--sans); letter-spacing: -.005em;
  text-decoration: none; white-space: nowrap;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .25) inset, 0 1px 0 rgba(255, 255, 255, .35) inset;
  transition: transform .25s var(--spring), box-shadow .3s var(--ease), filter .2s;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.05); }
.btn:active { transform: translateY(1px) scale(.98); }
.btn svg { width: 16px; height: 16px; }
.btn--glow { box-shadow: 0 1px 0 rgba(255, 255, 255, .4) inset, var(--glow); }
.btn--glow:hover { box-shadow: 0 1px 0 rgba(255, 255, 255, .45) inset, var(--glow-hi); }
.btn--lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn--sm { padding: 8px 13px; font-size: 13.5px; border-radius: 10px; }
.btn--xs { padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn--ghost { background: var(--panel-2); color: var(--text); box-shadow: 0 0 0 1px var(--edge-2) inset; }
.btn--ghost:hover { background: var(--panel-3); box-shadow: 0 0 0 1px var(--acc-line) inset; filter: none; }
.link { background: none; border: 0; padding: 0 0 2px; color: var(--muted); border-bottom: 1px solid var(--edge-2); font-size: 14.5px; transition: color .2s, border-color .2s; }
.link:hover { color: var(--text); border-color: var(--acc); }

/* ==========================================================
   Pulpit (warstwa pod programem, kod z v2 na nowych tokenach)
   ========================================================== */
.menubar {
  position: sticky; top: 0; z-index: 1000;
  display: flex; align-items: center; gap: 8px;
  height: var(--bar-h); padding: 0 8px 0 10px;
  background: color-mix(in srgb, var(--bg) 70%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--edge);
}
/* Logo: sygnet (klipy + playhead, symbol #i-logo) i napis „montaż” 620 + „ownia” 160, „.ai” w akcencie. Wielkość tylko przez font-size. */
.logo, .ed__logo { display: inline-flex; align-items: center; font-family: var(--sans); font-weight: 620; letter-spacing: -.045em; line-height: 1; white-space: nowrap; color: var(--text); }
.logo { padding: 4px 8px; background: none; border: 0; border-radius: 8px; font-size: 19px; }
.logo:hover { background: var(--panel-3); }
.logo__sig { flex: none; width: 1.15em; height: 1.15em; margin-right: .3em; }
.logo__thin { font-weight: 160; }
.logo__tld { font-size: .66em; margin-left: .28em; color: var(--acc); }
.menubar__nav { display: none; gap: 2px; margin-left: 6px; }
.menubar__nav button { background: none; border: 0; font: 500 13px/1 var(--sans); color: var(--muted); padding: 8px 10px; border-radius: 8px; transition: color .2s, background-color .2s; }
.menubar__nav button:hover { color: var(--text); background: var(--panel-3); }
@media (min-width: 700px) { .menubar__nav { display: flex; } }

.desk { position: relative; z-index: 1; }

.icons { display: grid; grid-template-columns: repeat(3, 1fr); gap: 4px; }
.icon { display: grid; justify-items: center; gap: 7px; width: 100%; padding: 10px 4px 8px; background: none; border: 1px solid transparent; border-radius: 12px; transition: background-color .2s, border-color .2s; }
.icon:hover { background: var(--panel-2); }
.icon.is-sel { background: var(--acc-soft); border-color: var(--acc-line); }
.icon__name { font: 500 11.5px/1.25 var(--mono); color: var(--text); padding: 1px 6px; border-radius: 5px; text-shadow: var(--icon-shadow); white-space: nowrap; max-width: 112px; overflow: hidden; text-overflow: ellipsis; }
.icon.is-sel .icon__name { background: var(--acc); color: var(--acc-ink); text-shadow: none; }

.art { position: relative; display: block; width: 64px; height: 52px; }
.art--video {
  height: 40px; margin: 6px 0; border-radius: 6px; overflow: hidden;
  background: linear-gradient(160deg, var(--video), var(--video-2));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 6px 14px -6px rgba(0, 0, 0, .8), 0 0 0 2px var(--video-2);
  display: flex; align-items: flex-end; justify-content: center; gap: 6%;
}
.art--video svg { width: 30%; fill: rgba(0, 0, 0, .42); margin-bottom: -6%; }
.art--video b { position: absolute; right: 3px; bottom: 3px; font: 600 8px/1 var(--mono); padding: 2px 3px; background: rgba(0, 0, 0, .65); border-radius: 3px; color: #fff; }
.art--sheet {
  width: 44px; margin: 0 10px; background: var(--paper);
  clip-path: polygon(0 0, 68% 0, 100% 24%, 100% 100%, 0 100%);
  border-radius: 3px; padding: 16px 7px 0; display: grid; align-content: start; gap: 4px;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .6));
}
.art--sheet::before { content: ""; position: absolute; left: 68%; top: 0; width: 32%; height: 24%; background: #c9c3b6; clip-path: polygon(0 0, 0 100%, 100% 100%); }
.art--sheet i { display: block; height: 3px; border-radius: 2px; background: #c3bdb0; }
.art--sheet i:nth-child(2) { width: 70%; }
.art--sheet em { position: absolute; left: -3px; right: -3px; bottom: 6px; font: 700 7.5px/1 var(--mono); font-style: normal; letter-spacing: .06em; text-align: center; padding: 3px 0; }
.art--pdf em { background: var(--rec); color: #fff; }
.art--txt em { background: #3a3f48; color: #fff; }
/* ikona programu: kafel z mini osią czasu */
.art--bin { width: 44px; height: 52px; margin: 0 10px; }
.art--bin b { position: absolute; left: -3px; right: -3px; top: 4px; height: 5px; border-radius: 3px; background: var(--muted); transform-origin: 8% 100%; transition: transform .3s var(--ease); }
.art--bin b::before { content: ""; position: absolute; left: 38%; right: 38%; top: -4px; height: 4px; border: 2px solid var(--muted); border-bottom: 0; border-radius: 3px 3px 0 0; }
.art--bin::after { content: ""; position: absolute; left: 3px; right: 3px; top: 12px; bottom: 0; border-radius: 3px 3px 8px 8px; background: var(--panel-3); box-shadow: 0 0 0 1.5px var(--muted) inset, 0 8px 18px -8px rgba(0, 0, 0, .9); }
.art--bin i { position: absolute; z-index: 1; top: 18px; bottom: 6px; width: 2px; border-radius: 2px; background: var(--dim); }
.art--bin i:nth-of-type(1) { left: 13px; } .art--bin i:nth-of-type(2) { left: 21px; } .art--bin i:nth-of-type(3) { left: 29px; }
.icon--bin:hover .art--bin b, .icon--bin.is-sel .art--bin b { transform: rotate(-24deg) translateY(-3px); }
.art--app { width: 52px; height: 52px; border-radius: 14px; background: linear-gradient(160deg, var(--panel-3), var(--panel)); box-shadow: 0 0 0 1px var(--edge-2) inset, 0 8px 18px -8px var(--drop), var(--glow-s); display: grid; align-content: center; gap: 4px; padding: 0 9px; }
.art--app i { display: block; height: 5px; border-radius: 3px; background: var(--video); }
.art--app i:nth-child(1) { width: 55%; margin-left: 30%; background: var(--acc); box-shadow: var(--glow-s); }
.art--app i:nth-child(3) { background: var(--audio); width: 80%; }
.art--app b { position: absolute; top: 7px; bottom: 7px; left: 50%; width: 2px; background: var(--rec); box-shadow: var(--rec-glow); }

/* ---------- okna pulpitu ---------- */
.win {
  position: absolute; left: 0; top: 0;
  display: flex; flex-direction: column;
  min-width: 340px; min-height: 220px;
  background: var(--panel); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
  border: 1px solid var(--edge-2); border-radius: 18px; overflow: hidden;
  box-shadow: 0 30px 80px -30px var(--drop), 0 0 0 1px var(--edge);
  resize: both; transform-origin: 50% 100%;
  transition: opacity .25s var(--ease), transform .35s var(--ease), box-shadow .3s;
}
.win[hidden] { display: none; }
.win.is-pop { animation: win-in .32s var(--spring); }
.win.is-closing { animation: win-out .16s ease-in forwards; pointer-events: none; }
.win.is-min { opacity: 0; transform: translateY(40px) scale(.9); visibility: hidden; pointer-events: none; transition: opacity .25s ease, transform .35s var(--ease), visibility 0s linear .35s; }
.win.is-max { left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; border-radius: 0; resize: none; }
.win.is-anim { transition: left .38s var(--layout), top .38s var(--layout), width .38s var(--layout), height .38s var(--layout), border-radius .3s, opacity .25s, transform .35s var(--ease); }
@keyframes win-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
@keyframes win-out { to { opacity: 0; transform: scale(.97); } }

.win__bar { flex: none; display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--edge); cursor: grab; user-select: none; -webkit-user-select: none; touch-action: none; }
.win.is-max .win__bar { cursor: default; }
.win__title { flex: 1; min-width: 0; font: 500 12px/1 var(--mono); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.win__sub { color: var(--dim); }
.win__ico { flex: none; width: 10px; height: 10px; border-radius: 3px; }
.win__ico--txt, .t--txt { background: #7b8490; }
.win__ico--bin, .t--bin { background: var(--muted); }
.bin { padding: 26px 28px; }
.bin__h { display: flex; align-items: center; gap: 12px; font: 600 14px/1 var(--sans); color: var(--text); }
.bin__h::before { content: ""; width: 14px; height: 1.5px; background: var(--muted); }
.bin__h::after { content: ""; flex: 1; height: 1px; background: var(--edge-2); }
.bin__files { display: flex; flex-wrap: wrap; gap: 8px; padding: 22px 0 0 26px; }
.bin__files li { display: grid; justify-items: center; gap: 10px; width: 120px; padding: 10px 4px; border-radius: 10px; text-align: center; }
.bin__files li:hover { background: var(--panel-2); }
.bin__pr { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 11px; background: var(--panel-3); box-shadow: 0 0 0 2.5px var(--acc) inset; font: 700 22px/1 var(--sans); letter-spacing: -.04em; color: var(--acc); }
.bin__name { font: 500 13px/1.3 var(--sans); color: var(--text); }
.win__ctrl { flex: none; display: flex; gap: 2px; }
.win__ctrl button { display: grid; place-items: center; width: 30px; height: 26px; padding: 0; background: none; border: 0; border-radius: 8px; color: var(--muted); transition: background-color .2s, color .2s; }
.win__ctrl button svg { width: 12px; height: 12px; }
.win__ctrl button:hover { background: var(--panel-3); color: var(--text); }
.win__ctrl button[data-act="close"]:hover { background: var(--rec); color: #fff; }
.win__body { position: relative; flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; }
.win__body:focus { outline: none; }
.win__status { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 40px; padding: 0 6px 0 14px; border-top: 1px solid var(--edge); color: var(--dim); font-size: 11px; }

.txt { padding: 14px 0; counter-reset: ln; }
.txt__lines { font: 400 14px/1.9 var(--mono); }
.txt__lines li { counter-increment: ln; display: grid; grid-template-columns: 48px 1fr; min-height: 1.9em; }
.txt__lines li::before { content: counter(ln); text-align: right; padding-right: 14px; color: var(--dim); border-right: 1px solid var(--edge); margin-right: 14px; }
.txt__lines a { color: var(--acc); text-decoration: none; border-bottom: 1px solid var(--acc-line); justify-self: start; }
.txt__c { color: var(--muted); }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -.2em; margin-left: 2px; background: var(--acc); box-shadow: var(--glow-s); animation: blink 1.1s steps(1) infinite; }

/* ---------- pasek zadań ---------- */
.dock {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000;
  display: flex; align-items: center; gap: 10px; height: var(--dock-h); padding: 0 12px;
  background: color-mix(in srgb, var(--bg) 72%, transparent);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-top: 1px solid var(--edge);
}
.dock__label { color: var(--dim); font-size: 10px; padding-right: 10px; border-right: 1px solid var(--edge); }
.dock__items { display: flex; gap: 4px; min-width: 0; overflow-x: auto; scrollbar-width: none; }
.dock__items button { position: relative; flex: none; display: inline-flex; align-items: center; gap: 8px; height: 30px; padding: 0 12px; border: 0; border-radius: 9px; background: var(--panel-2); color: var(--muted); font: 500 12px/1 var(--sans); transition: background-color .2s, color .2s, box-shadow .3s; }
.dock__items button:hover { color: var(--text); background: var(--panel-3); }
.dock__items button.is-active { color: var(--text); box-shadow: 0 -2px 0 var(--acc) inset; }
.dock__items button.is-min { background: transparent; box-shadow: 0 0 0 1px var(--edge-2) inset; }
.dock__items button.is-app.is-min { color: var(--text); box-shadow: 0 0 0 1px var(--acc-line) inset, var(--glow-s); }
.dock__items .t { width: 8px; height: 8px; border-radius: 2px; }
.dock__items .t--app { background: var(--rec); border-radius: 50%; box-shadow: var(--rec-glow); }
.dock__status { margin-left: auto; color: var(--dim); font-size: 10.5px; white-space: nowrap; }
@media (max-width: 699px) { .dock__status .hide-narrow, .dock__label { display: none; } }

/* ==========================================================
   Program: stany okna
   ========================================================== */
.win--app {
  min-width: 860px; min-height: 560px;
  background: var(--bg-fx), var(--bg); border-radius: 22px;
  transform-origin: 12% 100%;
}
.win--app::before { content: ""; position: absolute; inset: -20%; z-index: 0; pointer-events: none; opacity: 0; }
.win--app > * { position: relative; z-index: 1; }
.win--app > .ed__bar { z-index: 30; }
.win--app.is-max {
  top: calc(-1 * var(--bar-h)) !important; height: calc(100% + var(--bar-h) + var(--dock-h)) !important;
  border: 0; border-radius: 0; box-shadow: none;
}
/* zjazd do paska zadań */
.win--app.is-min { transform: translateY(70%) scale(.25); opacity: 0; transition: opacity .3s ease .08s, transform .45s cubic-bezier(.5, 0, .75, .3), visibility 0s linear .45s; }
body.app-max .desk { z-index: 1100; overflow: visible !important; }
.win--app .ed__bar { cursor: grab; }
.win--app.is-max .ed__bar { cursor: default; }

/* ==========================================================
   Program: pasek tytułowy i menu
   ========================================================== */
.ed__bar { height: 52px; gap: 10px; padding: 0 10px 0 16px; border-bottom: 0; position: relative; z-index: 30; }
.ed__logo { font-size: 24px; }
.ed__proj { position: absolute; left: 50%; transform: translateX(-50%); font-size: 13px; color: var(--text); white-space: nowrap; pointer-events: none; }
.ed__file { font-weight: 550; }
.ed__saved { color: var(--dim); }
.ed__bar .win__ctrl { margin-left: auto; }
.win__ctrl button[aria-pressed="true"] { color: var(--acc); }

.menu { position: relative; }
.menu__btn { display: inline-flex; align-items: center; gap: 4px; padding: 6px 9px; background: none; border: 0; border-radius: 8px; color: var(--muted); font-size: 13px; transition: background-color .2s, color .2s; }
.menu__btn svg { width: 12px; height: 12px; transition: transform .25s var(--spring); }
.menu__btn:hover, .menu__btn[aria-expanded="true"] { background: var(--panel-3); color: var(--text); }
.menu__btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu__pop {
  position: absolute; left: 0; top: calc(100% + 6px); z-index: 50; min-width: 240px; padding: 6px;
  background: color-mix(in srgb, var(--bg) 82%, var(--text) 4%); backdrop-filter: blur(24px); -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--edge-2); border-radius: 14px; box-shadow: 0 24px 60px -20px var(--drop);
  animation: pop-in .22s var(--spring); transform-origin: 20px 0;
}
.menu__pop[hidden] { display: none; }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px) scale(.96); } }
.menu__h { display: flex; justify-content: space-between; align-items: center; color: var(--dim); font-size: 10.5px; padding: 6px 10px 6px; }
.menu__pop button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; background: none; border: 0; border-radius: 9px; text-align: left; font-size: 13.5px; color: var(--text); }
.menu__pop button:hover, .menu__pop button:focus-visible { background: var(--panel-3); outline: none; }
.menu__pop button[aria-checked="true"]::after { content: ""; margin-left: auto; width: 7px; height: 7px; border-radius: 50%; background: var(--acc); box-shadow: var(--glow-s); }
.menu__pop hr { border: 0; height: 1px; background: var(--edge); margin: 6px 4px; }
.sw { width: 18px; height: 18px; border-radius: 6px; flex: none; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset; }
.sw--a { background: radial-gradient(circle at 70% 30%, #ffb44c 0 22%, transparent 24%), #151311; }
.sw--b { background: radial-gradient(circle at 70% 30%, #34e4f2 0 22%, transparent 24%), radial-gradient(circle at 20% 90%, #3062ff, transparent 60%), #141c2c; }
.sw--d { background: radial-gradient(circle at 70% 30%, hsl(339 76% 57%) 0 22%, transparent 24%), hsl(344 75% 92%); }
.sw--e { background: radial-gradient(circle at 70% 30%, hsl(16 65% 81%) 0 22%, transparent 24%), hsl(356 29% 10%); }
.sw--c { background: radial-gradient(circle at 70% 30%, #c4f55f 0 22%, transparent 24%), linear-gradient(120deg, rgba(80, 255, 190, .5), rgba(60, 170, 255, .4)), #0d1010; }

/* ==========================================================
   Program: przestrzeń robocza i panele
   ========================================================== */
.ed { display: flex; flex-direction: column; overflow: hidden; overflow: clip; container: ed / inline-size; }
.ws {
  position: relative; flex: 1; min-height: 0; margin: 0 var(--gap);
  container: ws / size;
  --g: var(--gap);
  --side: 300px; --insp: 330px; --tl: 252px;
  --top: calc(100% - var(--tl) - var(--g));
}
@container ed (max-width: 1280px) { .ws { --side: 262px; --insp: 300px; } }
@container ed (max-width: 1060px) { .ws { --side: 228px; --insp: 270px; } }

.pn {
  position: absolute; left: var(--x, 0px); top: var(--y, 0px); width: var(--w, 100%); height: var(--h, 100%);
  display: flex; flex-direction: column; min-width: 0;
  background: var(--panel); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur);
  border: 1px solid var(--edge); border-radius: var(--r);
  box-shadow: var(--shadow);
  overflow: hidden;
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.985);
  transition:
    left .6s var(--layout), top .6s var(--layout), width .6s var(--layout), height .6s var(--layout),
    opacity .3s ease, transform .5s var(--ease), visibility 0s linear .6s,
    background-color .4s, border-color .4s, box-shadow .4s;
}
/* cienka jaśniejsza krawędź u góry panelu */
.pn::before { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2; padding: 1px; background: linear-gradient(180deg, var(--edge-top), transparent 38%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
.pn.is-on { opacity: 1; visibility: visible; transform: none; transition-delay: 0s, 0s, 0s, 0s, .12s, 0s, 0s, 0s, 0s, 0s; }
.pn.is-flash { animation: flash 1.3s var(--ease); }
@keyframes flash { 0%, 100% { border-color: var(--edge); } 25% { border-color: var(--acc); box-shadow: var(--shadow), var(--glow); } }

/* geometria: strona Montaż */
.pn--insp  { --w: var(--insp); --h: var(--top); }
.pn--mon   { --x: calc(var(--insp) + var(--g)); --w: calc(100% - var(--side) - var(--insp) - 2 * var(--g)); --h: var(--top); }
.pn--media { --x: calc(100% - var(--side)); --w: var(--side); --h: var(--top); }
.pn--tl    { --y: calc(100% - var(--tl)); --h: var(--tl); }
[data-page="wyslij"] .pn--insp { --h: 100%; --x: calc(-.4 * var(--insp)); }
/* Wyślij materiał */
.pn--exp { --w: calc(100% - var(--insp) - var(--g)); }
.pn--contact { --x: calc(100% - var(--insp)); --w: var(--insp); }

/* nagłówek panelu */
.pn__head { flex: none; display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 14px; }
.pn__title { font-size: 13px; font-weight: 600; letter-spacing: -.005em; }
.pn__meta { margin-left: auto; color: var(--dim); font-size: 10.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pn__x { display: none; }
.pn__body { flex: 1; min-height: 0; overflow: auto; overscroll-behavior: contain; padding: 4px 16px 16px; scrollbar-width: thin; scrollbar-color: var(--panel-3) transparent; }
.pn__h { font: 700 19px/1.18 var(--sans); letter-spacing: -.012em; }
.pn__h--lg { font: 800 clamp(26px, 3.2cqw, 40px)/1.02 var(--display); font-stretch: 80%; letter-spacing: -.01em; word-spacing: .08em; }
.kicker { color: var(--dim); font-size: 10.5px; margin-bottom: 6px; }

/* ---------- panele boczne: przygaszone, jaśniejsze przy najechaniu, fokusie i narracji ---------- */
.pn--side .pn__body { opacity: .55; transition: opacity .35s var(--ease); }
.pn--side:hover .pn__body, .pn--side:focus-within .pn__body, .pn--side.is-lit .pn__body { opacity: 1; }
.pn--side .pn__h { font-size: 16px; line-height: 1.25; }
.pn__lead { color: var(--muted); font-size: 13.5px; line-height: 1.5; margin-top: 8px; }

/* ---------- Biblioteka: klipy z animacjami ----------
   hover i fokus: miniatura się unosi i rozjaśnia, ramka w akcencie, na środku przycisk odtwarzania */
.clips { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; margin-top: 16px; }
.clip { position: relative; display: grid; width: 100%; padding: 0; border: 0; background: none; text-align: left; border-radius: 8px; outline: none; transition: transform .3s var(--ease); }
.clip img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: var(--panel-2); box-shadow: 0 0 0 1px var(--edge-2); filter: brightness(.82) saturate(.9); transition: box-shadow .3s var(--ease), filter .3s var(--ease); }
/* margin-top w % liczy się od szerokości: środek miniatury 16:9 */
.clip__play { position: absolute; left: 50%; top: 0; width: 34px; height: 34px; margin: calc(28.125% - 17px) 0 0 -17px; display: grid; place-items: center; border-radius: 50%; background: var(--acc); color: var(--acc-ink); box-shadow: var(--glow-s); opacity: 0; transform: scale(.7); transition: opacity .25s var(--ease), transform .3s var(--spring); pointer-events: none; }
.clip__play svg { width: 16px; height: 16px; margin-left: 2px; }
.clip:is(:hover, :focus-visible) { transform: translateY(-2px); }
.clip:is(:hover, :focus-visible) img { filter: none; box-shadow: 0 0 0 2px var(--acc-line), var(--glow-s); }
.clip:is(:hover, :focus-visible) .clip__play { opacity: 1; transform: none; }
.clip:is(:hover, :focus-visible) .clip__name { color: var(--acc); }
.clip:is(:hover, :focus-visible) .clip__desc { color: var(--muted); }
.clip:active { transform: translateY(0) scale(.98); }
.clip.is-playing img { filter: none; box-shadow: var(--glow); }
.clip__dur, .clip__tag { position: absolute; top: 5px; padding: 2px 4px; border-radius: 4px; background: color-mix(in srgb, var(--bg) 75%, transparent); color: var(--text); font-size: 9.5px; letter-spacing: .02em; }
.clip__dur { right: 5px; }
.clip__tag { left: 5px; }
.clip__name { margin-top: 6px; color: var(--text); font-size: 9.5px; letter-spacing: .01em; text-transform: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: color .25s; }
.clip.is-playing .clip__name { color: var(--acc); }
.clip__desc { color: var(--dim); font-size: 11.5px; line-height: 1.3; transition: color .25s; }

/* ---------- Inspektor: ustawienia montażu ----------
   spoczynek: wszystko odhaczone, bez ruchu; rozjaśniony panel: wiersze idą w rytm osi czasu */
.props { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--edge); }
.props li { display: grid; grid-template-columns: 14px 1fr auto; gap: 8px; align-items: baseline; padding: 9px 2px; border-bottom: 1px solid var(--edge); color: var(--muted); font-size: 12.5px; transition: color .3s; }
.props li::before { content: "✓"; font: 600 11px/1 var(--mono); color: var(--dim); transition: color .3s, opacity .3s; }
.props b { font-weight: 500; font-size: 10.5px; color: var(--dim); text-align: right; transition: color .3s; }
.preset { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; color: var(--dim); font-size: 10.5px; }
.preset b { font-weight: 600; color: var(--muted); }
.preset__old { display: none; }

.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li:not(.is-done, .is-now) { color: var(--dim); }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li:not(.is-done, .is-now)::before { opacity: 0; }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.is-done::before { color: var(--acc); }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.is-now { color: var(--text); }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.is-now::before { content: "●"; color: var(--acc); text-shadow: var(--glow-s); }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.is-now b { color: var(--acc); }
/* poprawki robi człowiek: bez akcentu AI */
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.props__human.is-now::before { color: var(--text); text-shadow: none; }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet) .props li.props__human.is-now b { color: var(--text); }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet):not(.is-fixed) .preset__old { display: inline; }
.pn--insp:is(:hover, :focus-within, .is-lit, .is-sheet):not(.is-fixed) .preset__new { display: none; }
.pn--insp.is-fixed .preset__new { display: inline-block; animation: pop .45s var(--spring); }

/* ---------- Program Monitor z hero ---------- */
.pn--mon { box-shadow: var(--shadow), var(--mon-glow); }
.mon__screen { position: relative; flex: 1; display: grid; align-content: center; min-height: 0; margin: 0 10px; border-radius: 12px; background: var(--screen); box-shadow: 0 0 0 1px var(--edge) inset; container-type: size; overflow: hidden; color: var(--screen-text); }
.mon__safe { position: absolute; inset: 6% 5%; border: 1px dashed rgba(255, 255, 255, .05); border-radius: 6px; pointer-events: none; }
.mon__safe::before, .mon__safe::after { content: ""; position: absolute; width: 14px; height: 14px; border: solid rgba(255, 255, 255, .18); }
.mon__safe::before { left: -1px; top: -1px; border-width: 1px 0 0 1px; }
.mon__safe::after { right: -1px; bottom: -1px; border-width: 0 1px 1px 0; }
.hero { position: relative; padding: clamp(16px, min(5cqi, 6cqh), 56px) clamp(18px, 7cqi, 72px); }
.hero__h { font-family: var(--display); font-size: clamp(30px, min(7.6cqi, 13cqh), 92px); line-height: .94; letter-spacing: -.012em; word-spacing: .08em; font-stretch: 78%; font-weight: 800; max-width: 18ch; }
.hero__lead { color: var(--screen-muted); font-size: clamp(14px, min(1.9cqi, 4.2cqh), 18px); max-width: 50ch; margin-top: clamp(10px, min(2.4cqi, 4cqh), 22px); }
.hero__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 22px; margin-top: clamp(14px, min(3.2cqi, 5cqh), 30px); }
.mon__foot { flex: none; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: 42px; padding: 0 16px; color: var(--muted); font-size: 11px; }
.mon__foot b { color: var(--text); font-weight: 500; }
/* odtwarzanie klipu z Biblioteki: wideo na ekranie, hero chowa tytuł i lead, CTA przypięte na dole */
.player { position: absolute; inset: 0; z-index: 1; background: var(--bg); animation: fade .3s var(--ease); transition: opacity .6s ease-in-out; }
/* koniec klipu: wideo gaśnie, spod niego wraca hero (tytuł, lead i CTA po kolei) */
.player.is-out { opacity: 0; pointer-events: none; }
.pn--mon.is-back .hero > * { animation: back .7s var(--ease) both; }
.pn--mon.is-back .hero__h { animation-delay: .12s; }
.pn--mon.is-back .hero__lead { animation-delay: .22s; }
.pn--mon.is-back .hero__cta { animation-delay: .32s; }
.pn--mon.is-back .mon__safe { animation: fade .8s var(--ease) .2s both; }
@keyframes back { from { opacity: 0; transform: translateY(14px); filter: blur(4px); } }
.player[hidden] { display: none; }
.player video { width: 100%; height: 100%; max-width: none; object-fit: contain; }
.player__ctrl { position: absolute; top: 10px; right: 10px; z-index: 3; display: flex; gap: 6px; }
.player__btn { display: grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 0; border-radius: 10px; background: color-mix(in srgb, var(--bg) 78%, transparent); box-shadow: 0 0 0 1px var(--edge-2) inset; color: var(--text); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); transition: background-color .2s; }
.player__btn:hover { background: var(--panel-3); }
.player__btn svg { width: 16px; height: 16px; }
.player__btn[data-clip-mute] svg { width: 20px; height: 20px; }
.player__off, [aria-pressed="true"] > .player__on { display: none; }
[aria-pressed="true"] > .player__off { display: block; }
.cta__play { display: none; }
.pn--mon.is-playing .hero { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 0 16px; }
.pn--mon.is-playing :is(.hero__h, .hero__lead, .mon__safe) { display: none; }
.pn--mon.is-playing .hero__cta { justify-content: center; margin: 0; animation: fade .3s var(--ease); }
.pn--mon.is-playing .cta__rest { display: none; }
.pn--mon.is-playing .cta__play { display: inline; }
@keyframes fade { from { opacity: 0; } }
.pn--mon .mon__foot > b { color: var(--rec); text-shadow: 0 0 10px color-mix(in srgb, var(--rec) 60%, transparent); min-width: 11ch; }

/* ---------- Oś czasu Montażu: 5 etapów w pętli ---------- */
.pn--tl.is-on { overflow: visible; }
.tlw { flex: 1; min-height: 0; display: flex; flex-direction: column; }
.tlw__main { flex: 1; min-height: 0; min-width: 0; display: flex; flex-direction: column; padding: 0 16px 12px; }
.tk { --lab: 92px; position: relative; flex: 1; min-height: 0; display: grid; grid-template-columns: var(--lab) minmax(0, 1fr); grid-auto-rows: minmax(0, 1fr); gap: 4px 8px; }
.tk__lab { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 0 8px; border-radius: 8px; background: var(--panel-2); color: var(--dim); font-size: 10px; }
.tk__lab small { font-size: 9px; text-transform: lowercase; }
.tk__lane { position: relative; min-width: 0; border-radius: 8px; background: var(--panel-2); }
.tk__clip { position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); padding: 5px 6px; border-radius: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font: 500 10px/1 var(--mono); font-style: normal; color: var(--bg); }
.tk__clip--c { background: var(--blk-1); }
.tk__clip--g { background: var(--blk-5); }
.tk__clip--m { display: flex; align-items: center; gap: 8px; color: var(--text); background: linear-gradient(180deg, var(--audio), var(--audio-2)); box-shadow: 0 0 0 1px rgba(255, 255, 255, .08) inset; }
.tk__clip--m::after { content: ""; flex: 1; align-self: stretch; margin: 2px 0; opacity: .5; background: repeating-linear-gradient(90deg, var(--text) 0 2px, transparent 2px 5px); -webkit-mask: linear-gradient(0deg, #000 0 30%, transparent 30% 35%, #000 35% 70%, transparent 70%); mask: linear-gradient(0deg, #000 0 30%, transparent 30% 35%, #000 35% 70%, transparent 70%); }
.tk__clip--v { color: var(--text); background: linear-gradient(180deg, var(--video), var(--video-2)); }
.tk__cand { position: absolute; top: 2px; bottom: 2px; left: var(--l); width: var(--w); border-radius: 6px; outline: 2px dashed var(--acc-line); background: var(--acc-soft); opacity: 0; transition: opacity .5s; }
.tk__cuttag { position: absolute; left: 48%; top: 50%; z-index: 3; transform: translate(-50%, -50%); padding: 4px 9px; border-radius: 99px; background: var(--text); color: var(--bg); font-size: 10.5px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .3s, left .7s var(--ease); }
.tk__scan { position: absolute; top: 0; bottom: 0; left: calc(var(--lab) + 8px); right: 0; z-index: 4; overflow: hidden; pointer-events: none; }
.tk__scan::after { content: ""; position: absolute; top: 0; bottom: 0; left: -18%; width: 18%; opacity: 0; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--acc) 22%, transparent) 70%, color-mix(in srgb, var(--acc-2) 70%, transparent)); }
.is-thinking .tk__scan::after { opacity: 1; animation: scan 1.25s linear infinite; }
@keyframes scan { to { left: 100%; } }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
@keyframes bounce { 50% { transform: translateY(-3px); opacity: .4; } }

/* nad osią: bieżący etap i 5 kresek postępu */
.pn__head--stage { position: relative; height: 72px; }
.stage { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); display: grid; justify-items: center; gap: 9px; }
.stage__now { display: flex; align-items: center; gap: 12px; white-space: nowrap; font: 800 28px/1 var(--display); font-stretch: 80%; letter-spacing: -.005em; }
.stage__now > b { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font: 600 15px/1 var(--mono); background: var(--acc); color: var(--acc-ink); box-shadow: var(--glow-s); transition: background-color .3s, color .3s, box-shadow .3s; }
.is-human .stage__now > b { background: var(--text); color: var(--bg); box-shadow: none; }
.stage__who { color: var(--acc); font-size: 11px; }
.is-human .stage__who { color: var(--text); }
.stage__dots { display: inline-flex; gap: 4px; opacity: 0; transition: opacity .2s; }
.stage__dots i { width: 6px; height: 6px; border-radius: 50%; background: var(--acc); }
.is-thinking .stage__dots { opacity: 1; }
.is-thinking .stage__dots i { animation: bounce 1s infinite ease-in-out; }
.stage__dots i:nth-child(2) { animation-delay: .15s; }
.stage__dots i:nth-child(3) { animation-delay: .3s; }
.stage__t { animation: rise .35s var(--ease); }
.pips { display: flex; gap: 6px; }
.pips i { width: 40px; height: 3px; border-radius: 2px; background: var(--edge-2); transition: background-color .3s, box-shadow .3s; }
.pips i.is-done { background: var(--acc-line); }
.pips i.is-now { background: var(--acc); box-shadow: var(--glow-s); }

/* stany animacji osi (klasy ustawia main.js): surowe nagranie → wybór → cięcie → napisy → animacje → poprawka */
.tk--montaz .tk__raw { left: 0; width: 100%; transition: opacity .6s; }
.tk--montaz .tk__frag { left: var(--l0); width: var(--w0); opacity: 0; outline: 2px dashed var(--acc-line); outline-offset: -2px; transition: left .9s var(--ease), width .9s var(--ease), opacity .4s, outline-color .3s; }
.tk--montaz.s-mark .tk__frag, .tk--montaz.s-mark .tk__cand { opacity: 1; }
.tk--montaz.s-choose:not(.s-cut) .tk__frag { outline: 2px solid var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 12%, transparent); }
.tk--montaz.s-choose .tk__cand, .tk--montaz.s-cut .tk__cand { opacity: 0; }
.tk--montaz.s-cut .tk__raw { opacity: 0; }
.tk--montaz.s-cut .tk__frag { left: calc(var(--l1) + 1px); width: calc(var(--w1) - 2px); outline-color: transparent; }
.tk--montaz .tk__lane[data-k] .tk__clip { opacity: 0; transform: translateY(6px); transition: opacity .3s var(--d, 0s), transform .4s var(--ease) var(--d, 0s), left .6s var(--ease), width .7s var(--ease); }
.tk--montaz .tk__lane[data-k="gfx"] .tk__clip { transform: translateY(-10px) scale(.85); }
.tk--montaz.s-cap [data-k="cap"] .tk__clip, .tk--montaz.s-gfx [data-k="gfx"] .tk__clip { opacity: 1; transform: none; }
.tk--montaz.s-gfx:not(.s-pick) [data-k="gfx"] .tk__clip { box-shadow: var(--glow-s); }
/* etap 5: montażysta zaznacza ujęcie 2 i je wycina, reszta ścieżek dosuwa się w lewo */
.tk--montaz.s-pick:not(.s-fix) .tk__frag[data-f="1"] { outline: 2px solid var(--text); box-shadow: 0 0 0 4px color-mix(in srgb, var(--text) 15%, transparent); }
.tk--montaz.s-pick:not(.s-fix) .in2 { box-shadow: 0 0 0 1px var(--text); }
.tk--montaz.s-pick .tk__cuttag { opacity: 1; }
.tk--montaz.s-cut.s-fix .tk__frag[data-f="1"] { width: 0; opacity: 0; }
.tk--montaz.s-cut.s-fix .tk__frag[data-f="2"] { left: calc(29.3% + 1px); }
.tk--montaz.s-fix .in2 { opacity: 0 !important; transform: scaleX(.3) !important; }
.tk--montaz.s-fix .after2 { left: calc(var(--l) - 37.6%); }
.tk--montaz.s-fix .tk__cuttag { left: 29.3%; }
.tk.no-trans, .tk.no-trans * { transition: none !important; }

/* ---------- Eksport ---------- */
.exp { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.exp__grid { flex: 1; min-height: 0; overflow: auto; display: grid; grid-template-columns: minmax(0, 1fr); scrollbar-width: thin; }
.exp__main { padding: 4px clamp(16px, 3cqw, 32px) 16px; display: grid; gap: 14px; align-content: start; }
.exp__intro p { color: var(--muted); margin-top: 8px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { display: grid; gap: 6px; }
.field label { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.field small { color: var(--dim); font-weight: 400; margin-left: 6px; }
.field input, .field textarea {
  width: 100%; padding: 11px 13px; background: var(--panel-2); color: var(--text);
  border: 1px solid var(--edge-2); border-radius: 11px; font: 15px/1.4 var(--sans);
  transition: border-color .2s, box-shadow .3s var(--ease);
}
.field textarea { resize: vertical; min-height: 72px; }
.field input::placeholder, .field textarea::placeholder { color: var(--dim); }
.field input:focus, .field textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 4px var(--acc-soft), 0 0 20px -6px var(--acc); }
.field input[aria-invalid="true"] { border-color: var(--rec); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.exp__foot { flex: none; display: flex; align-items: center; justify-content: flex-end; gap: 10px; padding: 12px 16px; border-top: 1px solid var(--edge); }
.exp__status { margin-right: auto; color: var(--muted); font-size: 13px; }
.exp__status.is-err { color: var(--rec); }

.render { position: absolute; inset: 0; z-index: 5; display: grid; place-items: center; padding: 20px; background: color-mix(in srgb, var(--bg) 70%, transparent); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); opacity: 0; visibility: hidden; transition: opacity .25s, visibility 0s linear .25s; }
.exp[data-state] .render { opacity: 1; visibility: visible; transition: opacity .25s; }
.render__box { width: min(460px, 100%); padding: 22px; border-radius: 18px; background: var(--panel); border: 1px solid var(--edge-2); box-shadow: 0 30px 70px -20px var(--drop); display: none; gap: 12px; animation: win-in .35s var(--spring); }
.exp[data-state="render"] .render__box--run, .exp[data-state="done"] .render__box--done { display: grid; }
.render__h { display: flex; align-items: center; gap: 9px; color: var(--text); text-transform: none; font-size: 12.5px; }
.render__bar { position: relative; height: 10px; border-radius: 5px; background: var(--panel-2); overflow: hidden; box-shadow: 0 0 0 1px var(--edge) inset; }
.render__bar i { position: absolute; inset: 0; transform-origin: left; transform: scaleX(0); border-radius: inherit;
  background: repeating-linear-gradient(-45deg, var(--acc) 0 8px, var(--acc-2) 8px 16px); background-size: 200% 100%; animation: stripes .8s linear infinite; box-shadow: var(--glow-s); }
@keyframes stripes { to { background-position: -22.6px 0; } }
.render__meta { display: flex; justify-content: space-between; gap: 12px; font-size: 11px; color: var(--muted); }
.render__meta b { color: var(--acc); font-weight: 500; }
.render__box--done { justify-items: center; text-align: center; padding: 28px 22px 22px; }
.render__ok { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--acc); color: var(--acc-ink); box-shadow: var(--glow); animation: pop .45s var(--spring); }
.render__ok svg { width: 26px; height: 26px; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } }
.render__done { font: 800 26px/1.1 var(--display); font-stretch: 82%; word-spacing: .08em; text-wrap: balance; }
.render__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 6px; }

/* ---------- Wyślij materiał ---------- */
.rodo { color: var(--dim); font-size: 12px; line-height: 1.5; max-width: 84ch; }
.rodo a { color: var(--muted); }
.contact { display: grid; gap: 6px; align-content: start; }
.contact .kicker { margin: 12px 0 0; }
.contact .kicker:first-child { margin-top: 4px; }
.contact__mail { font-size: 15px; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--edge-2); }
.contact__mail:hover { border-color: var(--acc); }
.contact__who { color: var(--muted); font-size: 13.5px; }
.contact .link { justify-self: start; font-size: 13px; }
.render__meta a { color: var(--text); }

/* ---------- Pomoc → O programie ---------- */
.about { width: min(520px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); padding: 18px 22px 22px; color: var(--text); background: color-mix(in srgb, var(--bg) 88%, var(--text) 4%); border: 1px solid var(--edge-2); border-radius: 18px; box-shadow: 0 30px 80px -24px var(--drop); }
.about::backdrop { background: var(--scrim); }
.about[open] { animation: win-in .3s var(--spring); }
.about__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.about__x { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 8px; background: none; color: var(--muted); }
.about__x:hover { background: var(--panel-3); color: var(--text); }
.about__x svg { width: 12px; height: 12px; }
.about__h { font: 800 30px/1 var(--display); font-stretch: 80%; word-spacing: .06em; }
.about__ver { color: var(--dim); font-size: 10.5px; margin-top: 8px; }
.about__copy { color: var(--muted); margin-top: 12px; font-size: 14px; }
.about__data { display: grid; margin: 14px 0 0; font-size: 13px; }
.about__data div { display: grid; grid-template-columns: 130px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--edge); }
.about__data dt { color: var(--dim); }
.about__data dd { margin: 0; }
.about__links { margin-top: 16px; }
@media (max-width: 520px) { .about__data div { grid-template-columns: 1fr; gap: 2px; } }
.menu__keys { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 10px; font-size: 12.5px; color: var(--muted); }

/* ---------- pasek stron ---------- */
.pages { flex: none; position: relative; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; padding: 0 18px; }
.pages__app { justify-self: start; color: var(--dim); font-size: 10.5px; text-decoration: none; border-bottom: 1px solid transparent; transition: color .2s, border-color .2s; }
.pages__app:hover { color: var(--text); border-color: var(--edge-2); }
.pages__list { display: flex; gap: 4px; padding: 4px; border-radius: 16px; background: var(--panel); backdrop-filter: var(--panel-blur); -webkit-backdrop-filter: var(--panel-blur); box-shadow: 0 0 0 1px var(--edge) inset, var(--shadow); }
.pg { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; gap: 2px 9px; padding: 8px 16px 8px 12px; background: none; border: 0; border-radius: 12px; color: var(--muted); font-size: 13.5px; font-weight: 500; transition: color .25s, background-color .25s, box-shadow .35s var(--ease); }
.pg svg { width: 19px; height: 19px; transition: transform .3s var(--spring), filter .3s; }
.pg kbd { position: absolute; top: 4px; right: 5px; padding: 0 3px; border: 0; font-size: 8.5px; opacity: 0; transition: opacity .2s; }
.pg:hover { color: var(--text); background: var(--panel-3); }
.pg:hover svg { transform: translateY(-1px) scale(1.06); }
.pg:hover kbd { opacity: .8; }
.pg[aria-current="page"] { color: var(--acc); background: var(--acc-soft); box-shadow: 0 0 0 1px var(--acc-line) inset, 0 8px 26px -12px var(--acc); }
.pg[aria-current="page"] svg { filter: drop-shadow(0 0 6px var(--acc)); }
.pg[aria-current="page"]::after { content: ""; position: absolute; left: 30%; right: 30%; bottom: -5px; height: 2px; border-radius: 2px; background: var(--acc); box-shadow: var(--glow-s); }
.pages__status { justify-self: end; color: var(--dim); font-size: 10.5px; text-align: right; transition: color .2s; }
.pages__status.is-msg { color: var(--acc); }
.pages__status.is-busy { color: var(--acc); }

.mtools, .sheet-bg { display: none; }
.desk-only { }
@container (max-width: 520px) { .hide-narrow { display: none; } }

/* ==========================================================
   Desktop: pulpit na pełnym ekranie
   ========================================================== */
@media (min-width: 900px) {
  html, body { height: 100%; overflow: hidden; }
  .desk { position: fixed; left: 0; right: 0; top: var(--bar-h); bottom: var(--dock-h); overflow: hidden; }
  .icons { position: absolute; left: 10px; top: 12px; bottom: 12px; display: flex; flex-direction: column; flex-wrap: wrap; align-content: flex-start; gap: 4px; }
  .icon { width: 120px; }
  .icon--bin { position: absolute; right: 14px; bottom: 12px; }
}
/* niskie ekrany laptopów */
@media (min-width: 900px) and (max-height: 820px) {
  .ws { --tl: 222px; }
  .ed__bar { height: 48px; }
  .pages { height: 58px; }
}
@media (min-width: 900px) and (max-height: 700px) {
  .ws { --tl: 196px; }
}

/* ==========================================================
   Mobile: program zawsze na pełnym ekranie, układ jak w aplikacji
   ========================================================== */
@media (max-width: 899px) {
  html, body { height: 100%; overflow: hidden; }
  .desk-only { display: none !important; }
  .win--app, .win--app.is-max {
    position: fixed; inset: 0 !important; left: 0 !important; top: 0 !important; width: 100% !important; height: 100% !important; height: 100dvh !important;
    min-width: 0; min-height: 0; z-index: 1500; border: 0; border-radius: 0; resize: none; box-shadow: none;
  }
  .ed__bar { height: 54px; padding: 0 10px 0 14px; padding-top: env(safe-area-inset-top); cursor: default; gap: 6px; }
  .ed__proj { display: none; }
  .ed__logo { font-size: 20px; }

  .ws { container-type: normal; overflow-y: auto; overscroll-behavior: contain; margin: 0; padding: 0 10px 16px; display: flex; flex-direction: column; gap: 10px; }
  .pn { position: relative; left: auto; top: auto; width: auto; height: auto; transform: none; transition: opacity .3s ease; flex: none; }
  .pn:not(.is-on) { display: none; }
  .pn--mon .mon__screen { container-type: inline-size; min-height: 0; margin: 0 8px; }
  .hero { padding: 22px 18px 24px; }
  .hero__h { font-size: clamp(34px, 10.5vw, 56px); }
  .hero__lead { font-size: 15px; }
  .hero .btn--lg { width: 100%; }
  .pn--mon.is-playing .mon__screen { aspect-ratio: 16 / 9; }
  .pn--mon.is-playing.is-portrait .mon__screen { aspect-ratio: 4 / 5; }
  .pn--mon.is-playing .hero { padding: 0 12px 12px; }

  .mtools { display: flex; gap: 8px; order: 1; }
  .mtools button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; border: 0; border-radius: 14px; background: var(--panel); box-shadow: 0 0 0 1px var(--edge) inset; color: var(--text); font-size: 14px; font-weight: 500; }
  .mtools svg { width: 18px; height: 18px; color: var(--acc); }
  .mtools button { display: none; }
  [data-page="montaz"] .mtools .mt--montaz { display: inline-flex; }
  .pn--contact { order: 5; }
  .pn--mon { order: 0; } .pn--tl { order: 2; }
  .pn--side .pn__body { opacity: 1; }

  /* oś czasu przewijana poziomo */
  .tlw { display: block; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: none; }
  .tlw__main { width: 760px; padding: 0 12px 12px 0; }
  .tlw .tk { height: 170px; flex: none; }
  .pn__head--stage { height: auto; flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 14px 12px; }
  .stage { position: static; transform: none; justify-items: start; }
  .stage__now { font-size: 20px; gap: 10px; }
  .stage__now > b { width: 28px; height: 28px; font-size: 13px; }
  .pips i { width: 28px; }

  /* wysuwane panele od dołu */
  .pn--media, .pn--insp {
    display: flex !important; position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 60; max-height: 78dvh;
    border-radius: 22px 22px 0 0; padding-bottom: env(safe-area-inset-bottom);
    opacity: 1; visibility: hidden; transform: translateY(105%);
    transition: transform .45s var(--layout), visibility 0s linear .45s;
    background: color-mix(in srgb, var(--bg) 70%, var(--panel));
  }
  .ed .pn--media:not(.is-sheet), .ed .pn--insp:not(.is-sheet) { visibility: hidden; transform: translateY(105%); transition: transform .45s var(--layout), visibility 0s linear .45s; }
  .ed .pn--media.is-sheet, .ed .pn--insp.is-sheet { opacity: 1; visibility: visible; transform: none; transition: transform .45s var(--layout); }
  .pn--media .pn__head::before, .pn--insp .pn__head::before { content: ""; position: absolute; left: 50%; top: 7px; width: 36px; height: 4px; margin-left: -18px; border-radius: 2px; background: var(--edge-2); }
  .pn__x { display: grid; place-items: center; width: 32px; height: 32px; margin-left: 4px; border: 0; border-radius: 10px; background: var(--panel-3); color: var(--text); }
  .pn__x svg { width: 12px; height: 12px; }
  .sheet-bg { display: block; position: fixed; inset: 0; z-index: 55; background: var(--scrim); opacity: 0; visibility: hidden; transition: opacity .3s, visibility 0s linear .3s; }
  .ed.has-sheet .sheet-bg { opacity: 1; visibility: visible; transition: opacity .3s; }

  .pn__h--lg { font-size: clamp(28px, 8vw, 40px); }
  .exp__grid { grid-template-columns: 1fr; overflow: visible; }
  .row2 { grid-template-columns: 1fr; }
  .exp__foot .btn { flex: 1; }

  .pages { height: auto; display: block; padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); }
  .pages__app, .pages__status { display: none; }
  .pages__list { display: grid; grid-template-columns: repeat(2, 1fr); }
  .pg { grid-template-columns: 1fr; justify-items: center; gap: 4px; padding: 8px 2px; font-size: 11px; line-height: 1.15; text-align: center; }
  .pg kbd { display: none; }
  .pg[aria-current="page"]::after { display: none; }

  .desk { padding: 12px; }
  .icon--bin { width: 120px; margin-top: 8px; }
  .menubar, .dock { display: none; }
}

/* ---------- mniej ruchu: stan końcowy, bez zorzy i pulsowania ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition-duration: 0s !important; transition-delay: 0s !important; animation: none !important; }
}
