/* =====================================================================================
   OKO 2.0 — SYSTEM PROJEKTOWY (1.53)
   Warstwa wyglądu nad silnikiem Oka. Nie zmienia tras, handlerów, API ani danych.
   Struktura: 1 tokeny · 2 baza i typografia · 3 komponenty (przyciski, pola, tabele, komunikaty)
   · 4 powłoka (menu przestrzeni, nagłówek kontekstowy) · 5 paleta komend · 6 Produkcja
   · 7 Centrum dowodzenia · 8 Materiały (biblioteka) · 9 akcenty przestrzeni
   ===================================================================================== */

/* ---------- 1. TOKENY ---------- */
:root {
  /* powierzchnie: grafit + głęboki granat */
  --bg: #0D1117; --bg2: #10151D; --card: #151B24; --card2: #1A212C; --raise: #1E2632;
  --line: #242D3A; --line2: #303B4A; --line3: #3D4A5C;
  --text: #E6EBF2; --muted: #A3AFBF; --faint: #7C889A;
  --ok: #34D399; --warn: #F5B544; --bad: #F87171; --info: #60A5FA;
  --mc: #22D3EE; --mart: url(/img/oko2/system.svg);
  /* typografia */
  --f-ui: Inter, 'IBM Plex Sans', system-ui, sans-serif; --f-disp: 'Space Grotesk', Sora, Inter, sans-serif; --f-mono: 'JetBrains Mono', 'IBM Plex Mono', ui-monospace, monospace;
  --fs-h1: 32px; --fs-h2: 26px; --fs-h3: 20px; --fs-h4: 16px; --fs-body: 15px; --fs-help: 13px; --fs-meta: 12px;
  /* odstępy 4/8 */
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --r1: 6px; --r2: 10px; --r3: 14px; --r4: 20px;
  --sh1: 0 1px 2px rgba(0, 0, 0, .25); --sh2: 0 10px 30px -14px rgba(0, 0, 0, .55); --sh3: 0 24px 60px -24px rgba(0, 0, 0, .7);
  --o2-r: var(--r3); --o2-rs: var(--r2);
  --glass: rgba(230, 235, 242, .03); --glass2: rgba(230, 235, 242, .055); --gline: var(--line);
}

/* ---------- 2. BAZA I TYPOGRAFIA ---------- */
html, body { background: var(--bg); }
body { font-family: var(--f-ui); font-size: var(--fs-body); line-height: 1.55; color: var(--text); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
:is(h1, h2, h3, h4) { font-family: var(--f-ui); letter-spacing: -.015em; }
#main :is(h1) { font: 700 var(--fs-h1)/1.15 var(--f-disp); }
#main :is(h2) { font-size: clamp(18px, 1.6vw, 22px); font-weight: 650; line-height: 1.25; }
#main :is(h3) { font-size: 17px; font-weight: 600; }
.mono, code, kbd, time { font-family: var(--f-mono); font-variant-numeric: tabular-nums; }
td, th, dd { font-variant-numeric: tabular-nums; }
small { font-size: var(--fs-help); }
::selection { background: color-mix(in srgb, var(--mc) 35%, transparent); }
:focus-visible { outline: 2px solid var(--mc); outline-offset: 2px; }
a { text-underline-offset: 3px; }
hr { border: 0; border-top: 1px solid var(--line); }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2A3442; border-radius: 10px; border: 2px solid var(--bg); }
* { scrollbar-color: #2A3442 transparent; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
kbd { display: inline-block; min-width: 18px; padding: 1px 6px; border-radius: 5px; border: 1px solid var(--line3); border-bottom-width: 2px; background: var(--bg2); color: var(--muted); font: 600 11px/1.5 var(--f-mono); text-align: center; }

/* ---------- 3. KOMPONENTY ---------- */
/* przyciski: główna · drugorzędna · tekstowa · ikonowa · destrukcyjna */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: var(--r2); border: 1px solid var(--line2); background: var(--card2); color: var(--text); font: 600 14px/1 var(--f-ui); letter-spacing: 0; text-decoration: none; cursor: pointer; transition: background .12s, border-color .12s, color .12s; box-shadow: var(--sh1); }
.btn:hover { background: var(--raise); border-color: var(--line3); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--mc); border-color: transparent; color: #061016; box-shadow: 0 1px 0 rgba(255, 255, 255, .25) inset, var(--sh1); }
.btn.primary:hover { background: color-mix(in srgb, var(--mc) 86%, #fff); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--glass2); color: var(--text); }
:is(.btn.danger, .btn.bad) { background: transparent; border-color: color-mix(in srgb, var(--bad) 45%, transparent); color: #FCA5A5; box-shadow: none; }
:is(.btn.danger, .btn.bad):hover { background: color-mix(in srgb, var(--bad) 12%, transparent); }
.btn.small { min-height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn:disabled, .btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.o2-ib { position: relative; width: 40px; height: 40px; flex: none; display: grid; place-items: center; border-radius: var(--r2); border: 1px solid transparent; background: transparent; color: var(--muted); cursor: pointer; }
.o2-ib:hover { background: var(--glass2); color: var(--text); }
.o2-ib.on { color: var(--mc); background: color-mix(in srgb, var(--mc) 12%, transparent); }

/* pola */
input:where(:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file])), select, textarea {
  font-family: var(--f-ui); font-size: 15px; color: var(--text); background: var(--bg2); border: 1px solid var(--line2); border-radius: var(--r2); transition: border-color .12s, box-shadow .12s; }
input:where(:not([type=checkbox], [type=radio], [type=range], [type=color], [type=file])), select { min-height: 40px; }
:where(input, select, textarea):hover { border-color: var(--line3); }
:where(input, select, textarea):focus { outline: none; border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 22%, transparent); }
::placeholder { color: var(--faint); }
select:where(:not([multiple])) { appearance: none; padding-right: 32px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3AFBF' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 12px center; background-size: 10px; }
input:where([type=checkbox], [type=radio]) { appearance: none; width: 18px; height: 18px; margin: 0 6px 0 0; vertical-align: -3px; border: 1.5px solid var(--line3); background: var(--bg2); display: inline-grid; place-content: center; cursor: pointer; flex: none; transition: background .12s, border-color .12s; }
input:where([type=checkbox]) { border-radius: 5px; }
input:where([type=radio]) { border-radius: 50%; }
input:where([type=checkbox])::before { content: ''; width: 10px; height: 10px; clip-path: polygon(14% 52%, 0 66%, 40% 100%, 100% 22%, 86% 8%, 38% 70%); background: #061016; transform: scale(0); transition: transform .1s; }
input:where([type=radio])::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: #061016; transform: scale(0); transition: transform .1s; }
input:where([type=checkbox], [type=radio]):checked { background: var(--mc); border-color: var(--mc); }
input:where([type=checkbox], [type=radio]):checked::before { transform: scale(1); }
input:where([type=range]) { accent-color: var(--mc); }
input[type=file]::file-selector-button { border: 1px solid var(--line2); border-radius: 8px; background: var(--card2); color: var(--text); padding: 8px 12px; margin-right: 10px; cursor: pointer; font: 600 13px var(--f-ui); }
label > span:first-child, .field > span { color: var(--muted); font-size: 13px; font-weight: 500; }
fieldset { border: 1px solid var(--line); border-radius: var(--r3); }
legend { padding: 0 6px; color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
details > summary { cursor: pointer; }

/* tabele */
table { border-collapse: separate; border-spacing: 0; }
thead th { background: var(--bg2); color: var(--muted); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; border-bottom: 1px solid var(--line2); }
tbody tr:hover td { background: var(--glass); }
.o2-tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 8px; }
.o2-tbar label { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; color: var(--muted); }
.o2-tbar input { flex: 1; min-height: 36px; padding: 0 12px; }
.o2-tbar output { font: 12px var(--f-mono); color: var(--faint); }
th.o2-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.o2-sort::after { content: '↕'; margin-left: 6px; opacity: .35; font-size: 11px; }
th.o2-sort[aria-sort=ascending]::after { content: '↑'; opacity: 1; color: var(--mc); }
th.o2-sort[aria-sort=descending]::after { content: '↓'; opacity: 1; color: var(--mc); }

/* komunikaty */
.toast { background: var(--raise); border: 1px solid var(--line2); border-radius: var(--r3); box-shadow: var(--sh3); }
dialog { background: var(--card); color: var(--text); border: 1px solid var(--line2); border-radius: var(--r4); box-shadow: var(--sh3); }
dialog::backdrop { background: rgba(4, 7, 11, .7); backdrop-filter: blur(3px); }
.o2-top { position: fixed; right: 20px; bottom: 22px; z-index: 45; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line2); background: var(--card2); color: var(--muted); display: grid; place-items: center; cursor: pointer; opacity: 0; pointer-events: none; transform: translateY(8px); transition: opacity .2s, transform .2s; box-shadow: var(--sh2); }
.o2-top svg { transform: rotate(180deg); }
.o2-top.on { opacity: 1; pointer-events: auto; transform: none; }

/* ---------- 4. POWŁOKA ---------- */
body.o2-shell { --sw: 264px; }
body.o2-shell.o2-mini { --sw: 72px; }
.o2-side { position: fixed; inset: 0 auto 0 0; z-index: 60; width: var(--sw); display: flex; flex-direction: column; gap: var(--s3); padding: var(--s4) var(--s3); box-sizing: border-box; background: #0A0F16; border-right: 1px solid var(--line); transition: width .18s ease; overflow: hidden; }
.o2-logo { display: flex; align-items: center; gap: 12px; padding: 2px 8px 6px; text-decoration: none; color: #fff; }
.o2-logo svg { width: 38px; height: 38px; flex: none; }
.o2-logo b { display: block; font: 700 19px/1 var(--f-disp); letter-spacing: -.01em; white-space: nowrap; }
.o2-logo b i { font-style: normal; font-weight: 500; color: #67E8F9; }
.o2-logo small { display: block; margin-top: 3px; color: var(--faint); font-size: 12px; white-space: nowrap; }
.o2-find { display: flex; align-items: center; gap: 10px; height: 40px; padding: 0 10px 0 12px; border-radius: var(--r2); border: 1px solid var(--line); background: var(--bg2); color: var(--faint); font: 14px var(--f-ui); cursor: pointer; white-space: nowrap; }
.o2-find span { flex: 1; text-align: left; }
.o2-find:hover { border-color: var(--line3); color: var(--muted); }
.o2-nav { flex: 1; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; overflow-x: hidden; scrollbar-width: none; margin: 0 -4px; padding: 0 4px; }
.o2-gl { margin: 14px 10px 6px; color: var(--faint); font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.o2-gl:first-child { margin-top: 4px; }
.o2-wsh { position: relative; display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px; box-sizing: border-box; border: 0; border-radius: var(--r2); background: none; color: #C9D2DE; font: 500 14.5px var(--f-ui); text-align: left; text-decoration: none; cursor: pointer; white-space: nowrap; }
.o2-wsh svg { flex: none; color: #8A96A8; }
.o2-wsh span { flex: 1; overflow: hidden; text-overflow: ellipsis; }
.o2-wsh:hover { background: var(--glass2); color: #fff; }
.o2-ws.cur > .o2-wsh, a.o2-wsh.on { color: #fff; }
.o2-ws.cur > .o2-wsh svg, a.o2-wsh.on svg { color: var(--wa); }
a.o2-wsh.on, .o2-ws.cur > .o2-wsh { background: color-mix(in srgb, var(--wa) 10%, transparent); }
a.o2-wsh.on::before, .o2-ws.cur > .o2-wsh::before { content: ''; position: absolute; left: -4px; top: 10px; bottom: 10px; width: 3px; border-radius: 2px; background: var(--wa); }
.o2-chev { width: 7px; height: 7px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); opacity: .5; transition: transform .15s; }
.o2-ws.open .o2-chev { transform: rotate(45deg); }
.o2-mods { display: none; flex-direction: column; gap: 1px; margin: 2px 0 8px 22px; padding-left: 12px; border-left: 1px solid var(--line); }
.o2-ws.open .o2-mods { display: flex; }
.o2-mod { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.o2-mod svg { flex: none; opacity: .75; }
.o2-mod:hover { color: var(--text); background: var(--glass2); }
.o2-mod.on { color: #fff; background: var(--glass2); font-weight: 600; }
.o2-mod.on svg { color: var(--wa); opacity: 1; }
.o2-qi { display: flex; align-items: center; gap: 12px; min-height: 36px; padding: 0 12px; border-radius: 8px; color: var(--muted); text-decoration: none; font-size: 14px; white-space: nowrap; }
.o2-qi i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--qc); margin: 0 6px; }
.o2-qi span { overflow: hidden; text-overflow: ellipsis; }
.o2-qi:hover { background: var(--glass2); color: var(--text); }
.o2-foot { display: grid; gap: 6px; padding-top: var(--s3); border-top: 1px solid var(--line); }
.o2-foot .o2-mods { margin-bottom: 4px; }
.o2-user { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: var(--r3); }
.o2-av { width: 34px; height: 34px; flex: none; border-radius: 50%; display: grid; place-items: center; background: #1F3A4A; color: #A5F3FC; font: 700 14px var(--f-disp); }
.o2-un { min-width: 0; flex: 1; white-space: nowrap; }
.o2-un b { display: block; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; }
.o2-un small { color: var(--faint); font-size: 12px; font-family: var(--f-mono); }
.o2-out { width: 34px; height: 34px; flex: none; border-radius: 8px; border: 0; background: transparent; color: var(--faint); display: grid; place-items: center; cursor: pointer; }
.o2-out:hover { color: var(--bad); background: var(--glass2); }
body.o2-mini :is(.o2-logo span, .o2-wsh span, .o2-chev, .o2-mods, .o2-un, .o2-gl, .o2-quick, .o2-find span, .o2-find kbd) { display: none; }
body.o2-mini :is(.o2-wsh, .o2-find) { justify-content: center; padding: 0; }
body.o2-mini .o2-user { flex-direction: column; padding: 4px 0; }

.o2-stage { margin-left: var(--sw); min-height: 100vh; transition: margin-left .18s ease; }
.o2-bar { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: var(--s3); min-height: 68px; padding: 0 clamp(16px, 2.2vw, 32px); box-sizing: border-box; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.o2-wsi { width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 11px; color: var(--wa); background: color-mix(in srgb, var(--wa) 13%, transparent); border: 1px solid color-mix(in srgb, var(--wa) 25%, transparent); }
.o2-ctx { min-width: 0; display: grid; gap: 1px; }
.o2-ctx > b { font: 650 18px/1.2 var(--f-disp); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o2-trail { display: flex; align-items: center; gap: 6px; min-width: 0; color: var(--faint); font-size: 13px; white-space: nowrap; overflow: hidden; }
.o2-trail a { color: var(--muted); text-decoration: none; } .o2-trail a:hover { color: var(--text); text-decoration: underline; }
.o2-trail i { font-style: normal; opacity: .5; }
.o2-trail [aria-current] { color: var(--text); overflow: hidden; text-overflow: ellipsis; }
.o2-bsp { flex: 1; }
.o2-csearch { display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; min-width: 220px; border-radius: var(--r2); border: 1px solid var(--line2); background: var(--bg2); color: var(--faint); font: 14px var(--f-ui); cursor: pointer; white-space: nowrap; }
.o2-csearch:hover { border-color: var(--line3); color: var(--muted); }
.o2-bell .o2-bdg { position: absolute; top: 3px; right: 3px; min-width: 16px; height: 16px; padding: 0 4px; border-radius: 8px; background: #F43F5E; color: #fff; font: 700 10px/16px var(--f-ui); font-style: normal; text-align: center; }
.o2-date { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border-radius: var(--r2); color: var(--muted); font-size: 13.5px; font-weight: 500; white-space: nowrap; }
#main.wrap { max-width: 1440px; padding-top: var(--s5); }
.o2-pop { position: absolute; top: 62px; right: clamp(16px, 2.2vw, 32px); z-index: 70; width: min(420px, calc(100vw - 28px)); padding: var(--s4); border-radius: var(--r4); border: 1px solid var(--line2); background: var(--card); box-shadow: var(--sh3); }
.o2-pop h3 { margin: 0 0 var(--s3); display: flex; align-items: center; gap: 8px; font: 650 16px var(--f-ui); }
.o2-pop h3 em { font-style: normal; padding: 1px 8px; border-radius: 10px; background: #F43F5E; color: #fff; font-size: 12px; }
.o2-load { color: var(--muted); margin: 6px 4px; list-style: none; font-size: 14px; }
.o2-att { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.o2-att a { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: var(--r2); text-decoration: none; color: inherit; }
.o2-att a:hover { background: var(--glass2); }
.o2-att i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--info); }
.o2-att .bad i { background: var(--bad); } .o2-att .warn i { background: var(--warn); }
.o2-att span { flex: 1; min-width: 0; display: grid; }
.o2-att b { font-weight: 600; font-size: 14.5px; }
.o2-att small { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o2-dock, .o2-scrim { display: none; }
@media (max-width: 1100px) { .o2-csearch { min-width: 0; } .o2-csearch span, .o2-date { display: none; } }
@media (max-width: 900px) {
  body.o2-shell, body.o2-shell.o2-mini { --sw: 0px; }
  .o2-side { width: 284px; transform: translateX(-100%); transition: transform .2s ease; }
  body.o2-navopen .o2-side { transform: none; box-shadow: 30px 0 60px -30px #000; }
  body.o2-navopen .o2-scrim { display: block; position: fixed; inset: 0; z-index: 55; background: rgba(3, 6, 10, .6); }
  body.o2-mini :is(.o2-logo span, .o2-wsh span, .o2-chev, .o2-un, .o2-gl, .o2-quick, .o2-find span) { display: initial; }
  body.o2-mini .o2-ws.open .o2-mods { display: flex; }
  .o2-bar { min-height: 60px; gap: 8px; padding: 0 12px; }
  .o2-wsi { display: none; }
  .o2-ctx > b { font-size: 16px; }
  .o2-csearch { width: 40px; padding: 0; justify-content: center; border-color: transparent; background: none; }
  .o2-dock { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); background: rgba(10, 15, 22, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); }
  .o2-dock a, .o2-dock button { display: grid; justify-items: center; gap: 2px; padding: 4px 0; border: 0; background: none; color: var(--faint); font: 600 11.5px var(--f-ui); text-decoration: none; cursor: pointer; }
  .o2-dock .on { color: #22D3EE; }
  .o2-stage { padding-bottom: 80px; }
  .o2-top { bottom: 92px; }
}

/* ---------- 5. PALETA KOMEND ---------- */
.o2-pal { position: fixed; inset: 0; z-index: 100; display: grid; justify-items: center; align-items: start; padding: 10vh 14px 14px; background: rgba(4, 8, 13, .72); backdrop-filter: blur(4px); animation: o2fade .15s; }
@keyframes o2fade { from { opacity: 0; } }
.o2-pbox { width: min(680px, 100%); max-height: 76vh; display: flex; flex-direction: column; border-radius: 18px; border: 1px solid var(--line2); border-top: 3px solid var(--mc); background: #111925; box-shadow: 0 40px 100px -30px #000; overflow: hidden; }
.o2-pin-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); color: var(--mc); }
.o2-pin-in input { flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 17px; color: var(--text); padding: 8px 0; }
#o2res { list-style: none; margin: 0; padding: 6px; overflow: auto; }
#o2res li[role=option] { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 10px; cursor: pointer; }
#o2res li[aria-selected=true], #o2res li[role=option]:hover { background: color-mix(in srgb, var(--mc) 14%, transparent); }
#o2res li small { color: var(--faint); font: 12px 'IBM Plex Mono', monospace; }
#o2res .o2-grp { padding: 10px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
#o2res .o2-none { padding: 18px; color: var(--muted); }
.o2-pbox footer { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12px; color: var(--faint); }
.o2-help .o2-pbox { padding: 18px 20px; gap: 10px; }
.o2-help h2 { margin: 0; font: 700 20px Sora, sans-serif; }
.o2-help dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 6px 18px; overflow: auto; }
.o2-help dl div { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.o2-help dd { margin: 0; color: var(--muted); font-size: 14px; text-align: right; }
.o2-help .btn { align-self: flex-end; }

/* ---------- tabele ---------- */
.o2-tbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 8px; }
.o2-tbar label { display: flex; align-items: center; gap: 8px; flex: 1; max-width: 360px; color: var(--mc); }
.o2-tbar input { flex: 1; min-height: 36px; padding: 0 12px; }
.o2-tbar output { font: 12px 'IBM Plex Mono', monospace; color: var(--faint); }
th.o2-sort { cursor: pointer; user-select: none; white-space: nowrap; }
th.o2-sort::after { content: '↕'; margin-left: 6px; opacity: .35; font-size: 11px; }
th.o2-sort[aria-sort=ascending]::after { content: '↑'; opacity: 1; color: var(--mc); }
th.o2-sort[aria-sort=descending]::after { content: '↓'; opacity: 1; color: var(--mc); }
th.o2-sort:hover { color: var(--text); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* ---------- 6. PRODUKCJA (bez zmian od 1.50) ---------- */
body[data-mod=start]{--mc:#39D8F2;--mart:url(/img/oko2/start.svg)}
body[data-mod=aplikacje]{--mc:#67E8F9;--mart:url(/img/oko2/aplikacje.svg)}
body[data-mod=budzet]{--mc:#4ADE80;--mart:url(/img/oko2/budzet.svg)}
body[data-mod=btc]{--mc:#F5A94A;--mart:url(/img/oko2/btc.svg)}
body[data-mod=wiadomosci]{--mc:#F38BA8;--mart:url(/img/oko2/wiadomosci.svg)}
body[data-mod=notatki]{--mc:#D6B6F5;--mart:url(/img/oko2/notatki.svg)}
body[data-mod=biznes]{--mc:#60A5FA;--mart:url(/img/oko2/biznes.svg)}
body[data-mod=haiku]{--mc:#2DD4BF;--mart:url(/img/oko2/haiku.svg)}
body[data-mod=dokumentacja]{--mc:#FCD34D;--mart:url(/img/oko2/dokumentacja.svg)}
body[data-mod=koszty]{--mc:#A3E635;--mart:url(/img/oko2/koszty.svg)}
body[data-mod=cele]{--mc:#C084FC;--mart:url(/img/oko2/cele.svg)}
body[data-mod=kuznia]{--mc:#FB923C;--mart:url(/img/oko2/kuznia.svg)}
body[data-mod=bezpieczenstwo]{--mc:#FB7185;--mart:url(/img/oko2/bezpieczenstwo.svg)}
body[data-mod=klucze]{--mc:#FBBF24;--mart:url(/img/oko2/klucze.svg)}
body[data-mod=system]{--mc:#94A3B8;--mart:url(/img/oko2/system.svg)}
body[data-mod=studio]{--mc:#A78BFA;--mart:url(/img/oko2/studio.svg)}
body[data-mod=materialy]{--mc:#E879F9;--mart:url(/img/oko2/materialy.svg)}
body[data-mod=produkcja]{--mc:#818CF8;--mart:url(/img/oko2/produkcja.svg)}
body[data-mod=azymut]{--mc:#E8B86D;--mart:url(/img/oko2/azymut.svg)}
body[data-mod=research]{--mc:#79A9D1;--mart:url(/img/oko2/research.svg)}
body[data-mod=publikacje]{--mc:#8B85FF;--mart:url(/img/oko2/publikacje.svg)}
body[data-mod=promptownia]{--mc:#D6B6F5;--mart:url(/img/oko2/promptownia.svg)}
body[data-mod=analityka]{--mc:#4ADE80;--mart:url(/img/oko2/analityka.svg)}
body[data-mod=prod-rezyser]{--mc:#E8B86D;--mart:url(/img/oko2/rezyser.svg)}
body[data-mod=prod-scenarzysta]{--mc:#B69CFF;--mart:url(/img/oko2/scenarzysta.svg)}
body[data-mod=prod-obraz]{--mc:#60A5FA;--mart:url(/img/oko2/obraz.svg)}
body[data-mod=prod-glos]{--mc:#2DD4BF;--mart:url(/img/oko2/glos.svg)}
body[data-mod=prod-kamera]{--mc:#39D8F2;--mart:url(/img/oko2/kamera.svg)}
body[data-mod=prod-kompozytor]{--mc:#F38BA8;--mart:url(/img/oko2/kompozytor.svg)}
body[data-mod=prod-mikser]{--mc:#F5A94A;--mart:url(/img/oko2/mikser.svg)}
body[data-mod=prod-studio]{--mc:#4ADE80;--mart:url(/img/oko2/render.svg)}
body[data-mod=prod-prompty]{--mc:#D6B6F5;--mart:url(/img/oko2/promptownia.svg)}
body[data-mod=prod-biblioteka]{--mc:#E879F9;--mart:url(/img/oko2/materialy.svg)}
/* =========================================================================
   MODUŁ: Studio AI → Produkcja — układ montażowy (oś etapów + grupy narzędzi)
   ========================================================================= */
body[data-mod] .pv-head { background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 7%, #111925), #111925); border: 1px solid var(--line); border-radius: 18px; padding: 16px 18px; }
body[data-mod] .pv-head .pv-title b { font-size: 20px; letter-spacing: -.01em; }
body[data-mod] .pv-head .pv-stages { order: 2; flex: 1 1 100%; display: flex; gap: 0; padding: 10px 8px 8px; border-radius: 16px; background: #0A0F16; border: 1px solid var(--line); overflow-x: auto; scroll-snap-type: x proximity; }
body[data-mod] .pv-stages button { --sc: #94A3B8; position: relative; flex: 1 0 104px; display: grid; justify-items: center; align-content: start; gap: 5px; padding: 6px 6px 8px; background: transparent; border: 0; border-radius: 12px; box-shadow: none; color: var(--faint); scroll-snap-align: start; font-size: 12.5px; text-align: center; }
body[data-mod] .pv-stages button > svg, body[data-mod] .pv-stages button > .ico { display: none; }
body[data-mod] .pv-stages button:not(:last-child)::after { content: ''; position: absolute; top: 19px; left: calc(50% + 22px); right: calc(-50% + 22px); height: 2px; border-radius: 2px; background: #223044; }
body[data-mod] .pv-stages button.before::after { background: color-mix(in srgb, var(--sc) 55%, #223044); }
body[data-mod] .pv-stages .pv-stn { position: absolute; top: 2px; left: calc(50% + 10px); z-index: 1; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #1A2636; border: 1px solid #2C3D52; color: var(--muted); font: 700 10.5px/15px var(--mono, monospace); font-style: normal; }
body[data-mod] .pv-stages .pv-stem { width: 34px; height: 34px; border-radius: 11px; padding: 2px; background: #121A25; border: 1.5px solid #2C3D52; transition: transform .15s, border-color .15s, box-shadow .15s; filter: saturate(.55) brightness(.85); }
body[data-mod] .pv-stages button:hover { background: rgba(232, 239, 247, .035); color: var(--text); }
body[data-mod] .pv-stages button:hover .pv-stem { transform: translateY(-2px); filter: none; border-color: var(--sc); }
body[data-mod] .pv-stages button.before .pv-stem { filter: saturate(.85); border-color: color-mix(in srgb, var(--sc) 45%, #2C3D52); }
body[data-mod] .pv-stages button.on { background: color-mix(in srgb, var(--sc) 11%, transparent); color: var(--text); box-shadow: inset 0 -2px 0 var(--sc); }
body[data-mod] .pv-stages button.on .pv-stem { filter: none; border-color: var(--sc); box-shadow: 0 0 0 4px color-mix(in srgb, var(--sc) 18%, transparent), 0 8px 22px -10px var(--sc); }
body[data-mod] .pv-stages button.on .pv-stn { background: var(--sc); border-color: var(--sc); color: #08121B; }
body[data-mod] .pv-stages button span { font-weight: 600; line-height: 1.15; }
body[data-mod] .pv-stages em { font-style: normal; font-size: 11px; padding: 1px 7px; border-radius: 999px; background: rgba(232, 239, 247, .05); color: var(--muted); }
body[data-mod] .pv-stages button.on em { background: color-mix(in srgb, var(--sc) 20%, transparent); color: var(--text); }
.pv-stages button[data-art=rezyser]{--sc:#E8B86D} .pv-stages button[data-art=scenarzysta]{--sc:#B69CFF} .pv-stages button[data-art=obraz]{--sc:#60A5FA}
.pv-stages button[data-art=glos]{--sc:#2DD4BF} .pv-stages button[data-art=kamera]{--sc:#39D8F2} .pv-stages button[data-art=kompozytor]{--sc:#F38BA8}
.pv-stages button[data-art=mikser]{--sc:#F5A94A} .pv-stages button[data-art=render]{--sc:#4ADE80} .pv-stages button[data-art=promptownia]{--sc:#D6B6F5}
.pv-stages button[data-art=materialy]{--sc:#E879F9}
body[data-mod] .pv-head .pv-tools { order: 3; flex: 1 1 100%; display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-start; padding-top: 10px; border-top: 1px solid var(--line); }
.pv-tg { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 4px 6px 4px 4px; border: 1px solid var(--line); border-radius: 12px; background: rgba(232, 239, 247, .02); }
.pv-tl { padding: 0 8px 0 6px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); border-right: 1px solid var(--line); margin-right: 2px; }
.pv-tg-gpt { border-color: color-mix(in srgb, #10A37F 40%, var(--line)); background: color-mix(in srgb, #10A37F 6%, transparent); }
.pv-tg-gpt .pv-tl { color: #6EE7B7; }
body[data-mod] .pv-tools .pv-repbtn { border-color: color-mix(in srgb, var(--mc) 50%, transparent); }
body[data-mod] .pv-head .pv-meter { background: #1A2636; border-radius: 6px; overflow: hidden; }
body[data-mod] .pv-head .pv-meter i { background: linear-gradient(90deg, var(--mc), #4ADE80); }
@media (max-width: 760px) {
  body[data-mod] .pv-stages button { flex-basis: 84px; font-size: 11.5px; }
  .pv-tl { display: none; }
}
@media (prefers-reduced-motion: reduce) { body[data-mod] .pv-stages button:hover .pv-stem { transform: none; } }
body[data-mod] .pv-head { grid-template-columns: minmax(240px, 1fr) auto; grid-template-areas: 'id ss' 'st st' 'tools tools'; position: relative; top: auto; backdrop-filter: none; }
@media (max-width: 900px) { body[data-mod] .pv-head { grid-template-columns: 1fr; grid-template-areas: 'id' 'ss' 'st' 'tools'; } }
body[data-mod] .pv-tools > .pv-tg { flex: 0 1 auto; width: auto; min-width: min(100%, max-content); }
body[data-mod] .pv-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
body[data-mod] .pv-title .pg-hsel select { margin-left: 0; height: 28px; min-height: 0; padding: 0 26px 0 10px; border-radius: 999px; font: 600 12px var(--sans, inherit); background-position: right 9px center; }
body[data-mod] .pv-head .pv-stages { flex-wrap: nowrap; }
body[data-mod] .pv-tg .pv-tl { border: 0; border-right: 1px solid var(--line); border-radius: 0; background: none; box-shadow: none; padding: 0 8px 0 6px; min-height: 0; }
details:not(.menu):not(.secmenu) > summary.btn::before { display: none; }
/* dolny pasek na telefonie: wszystkie strefy w jednym rzędzie (wcześniej 9. strefa spadała do drugiego rzędu) */
/* ---------- 7. CENTRUM DOWODZENIA ---------- */
.oh { padding: var(--s2) 0 var(--s7); display: grid; gap: var(--s5); }
.oh h2 { display: flex; align-items: baseline; gap: 8px; margin: 0 0 var(--s3); font: 650 17px var(--f-ui); color: var(--text); }
.oh h2 a { margin-left: auto; font: 600 13px var(--f-ui); color: #0E7490; text-decoration: none; }
.oh h2 em { font-style: normal; font-size: 13px; color: #B91C1C; font-weight: 700; }
.oh-top { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr); gap: var(--s5); align-items: stretch; }
.oh-hi { align-self: center; }
.oh-date { margin: 0 0 6px; color: var(--faint); font-size: 14px; font-weight: 500; text-transform: capitalize; }
.oh-hi h1 { margin: 0; font: 700 clamp(30px, 3vw, 36px)/1.12 var(--f-disp) !important; letter-spacing: -.025em; color: #0E1726; }
.oh-hi h1 span { color: #0E7490; }
.oh-ctx { margin: 10px 0 0; color: var(--muted); font-size: 16px; }
.oh-season { position: relative; display: flex; align-items: flex-end; min-height: 150px; border-radius: var(--r4); overflow: hidden; text-decoration: none; color: #fff; background: #13243C; box-shadow: 0 18px 40px -26px rgba(14, 23, 38, .7); }
.oh-seasart { position: absolute; inset: 0; background-size: cover; background-position: center 35%; transition: transform .6s ease; }
.oh-season::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(10, 18, 32, .88) 0%, rgba(10, 18, 32, .35) 70%, rgba(10, 18, 32, .1)); }
.oh-season:hover .oh-seasart { transform: scale(1.03); }
.oh-seast { position: relative; z-index: 1; display: grid; gap: 6px; padding: 20px 24px; max-width: 70%; }
.oh-seast small { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #FCD9A8; }
.oh-seast b { font: 600 18px/1.35 var(--f-disp); }
.oh-main { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(240px, .8fr) minmax(0, 1.1fr); gap: var(--s5); align-items: stretch; }
.oh-focus { position: static; display: flex; flex-direction: column; gap: var(--s3); margin: 0; padding: 26px 28px; border-radius: var(--r4); background: #0E1726; color: #fff; border: 0; box-shadow: 0 24px 50px -30px rgba(14, 23, 38, .9); }
.oh-k { margin: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #67E8F9; }
.oh-focus .ft { display: grid; gap: 8px; }
.oh-focus .ft b { font: 650 clamp(22px, 2vw, 28px)/1.2 var(--f-disp); color: #fff; }
.oh-focus .ft span, .oh-focus .ft small { color: #A9B6C7; font-size: 15px; }
.oh-focus .fa { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: var(--s3); }
.oh-core { display: grid; justify-items: center; align-content: center; gap: var(--s4); text-align: center; }
.oh-eye { position: relative; width: min(216px, 100%); aspect-ratio: 1; }
.oh-eye img { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 50%; box-shadow: 0 0 0 8px #fff, 0 0 0 9px var(--line), 0 30px 60px -24px rgba(8, 60, 80, .55); animation: ohb 7s ease-in-out infinite; }
.oh-pulse { position: absolute; inset: -18px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .2), transparent 65%); animation: ohp 7s ease-in-out infinite; }
@keyframes ohb { 50% { transform: scale(1.02); } }
@keyframes ohp { 50% { opacity: .4; transform: scale(1.06); } }
.oh-core .voice { max-width: 320px; color: var(--muted); font-size: 14.5px; }
.oh-core .voice b { color: #0E7490; }
.oh-side { display: grid; gap: var(--s4); align-content: start; }
.oh-attn, .oh-proc, .oh-recent, .oh-short, .oh-ops { padding: 20px 22px; border-radius: var(--r4); background: #fff; border: 1px solid var(--line); }
.oh-attn .o2-att a:hover { background: #F3F6F9; }
.oh-proc ul, .oh-recent ul { list-style: none; margin: 0; padding: 0; display: grid; }
.oh-proc li a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 40px; color: var(--text); text-decoration: none; border-top: 1px solid #EEF2F6; }
.oh-proc li:first-child a { border-top: 0; }
.oh-proc i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; }
.oh-proc i.run { background: #0EA5E9; box-shadow: 0 0 0 0 rgba(14, 165, 233, .5); animation: ohrun 1.6s infinite; }
.oh-proc i.bad { background: #EF4444; }
@keyframes ohrun { 70% { box-shadow: 0 0 0 7px rgba(14, 165, 233, 0); } }
.oh-proc b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-proc span { color: var(--muted); font-size: 13.5px; font-family: var(--f-mono); }
.oh-spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-auto-rows: 132px; gap: var(--s4); }
.oh-sp { position: relative; display: flex; align-items: flex-end; gap: 10px; padding: 16px 18px; border-radius: var(--r4); overflow: hidden; text-decoration: none; color: #fff; background: #13202F; isolation: isolate; transition: transform .2s, box-shadow .2s; box-shadow: 0 16px 34px -26px rgba(14, 23, 38, .8); }
.oh-sp.oh-big { grid-column: span 2; grid-row: span 1; }
.oh-spart { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: right center; transition: transform .5s ease; }
.oh-sp::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 14, 24, .86) 0%, rgba(8, 14, 24, .45) 55%, rgba(8, 14, 24, .05)); }
.oh-sp:hover { transform: translateY(-3px); box-shadow: 0 22px 44px -24px rgba(14, 23, 38, .8); }
.oh-sp:hover .oh-spart { transform: scale(1.04); }
.oh-spt { display: grid; gap: 2px; flex: 1; min-width: 0; }
.oh-spt b { font: 650 19px var(--f-disp); }
.oh-spt small { color: #CBD5E1; font-size: 13px; }
.oh-sp em { font-style: normal; padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .14); backdrop-filter: blur(6px); font: 600 12.5px var(--f-mono); white-space: nowrap; }
.oh-bottom { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--s5); }
.oh-recent li a { display: grid; grid-template-columns: minmax(0, 1fr) 90px 44px; align-items: center; gap: 12px; min-height: 44px; color: var(--text); text-decoration: none; border-top: 1px solid #EEF2F6; }
.oh-recent li:first-child a { border-top: 0; }
.oh-recent b { font-weight: 550; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh-recent small { text-align: right; color: var(--muted); font-family: var(--f-mono); }
.oh-bar { height: 6px; border-radius: 3px; background: #E8EDF3; overflow: hidden; }
.oh-bar i { display: block; height: 100%; background: #0E7490; border-radius: 3px; }
.oh-empty { color: var(--muted); margin: 0; } .oh-empty a { color: #0E7490; font-weight: 600; }
.oh-shg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oh-sc { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border-radius: var(--r2); background: #F4F7FA; color: var(--text); text-decoration: none; font-size: 14px; font-weight: 550; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.oh-sc svg { flex: none; color: #0E7490; }
.oh-sc:hover { background: #E8F6F9; }
.oh-ops dl { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; margin: 0 0 14px; }
.oh-ops dt { color: var(--faint); font-size: 12.5px; }
.oh-ops dd { margin: 2px 0 0; font: 600 16px var(--f-mono); color: var(--text); }
.oh-ops dd.neg { color: #B91C1C; }
.oh-ops .oh-link { display: inline-flex; margin: 0 10px 0 0; color: #0E7490; font-weight: 600; font-size: 13.5px; text-decoration: none; background: none; border: 0; padding: 0; box-shadow: none; min-height: 0; }
.oh-ops .oh-link:hover { text-decoration: underline; }
.oh .flog { margin: 0; }
.oh .flog .fl { background: #fff; border: 1px solid var(--line); color: var(--muted); }
@media (max-width: 1200px) { .oh-main { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .oh-core { grid-column: 1 / -1; grid-row: 1; grid-template-columns: auto minmax(0, 360px); justify-content: center; text-align: left; } .oh-eye { width: 150px; } .oh-bottom { grid-template-columns: 1fr 1fr; } .oh-recent { grid-column: 1 / -1; } }
@media (max-width: 760px) {
  .oh-top, .oh-main, .oh-bottom { grid-template-columns: 1fr; }
  .oh-core { grid-template-columns: 96px 1fr; } .oh-eye { width: 96px; }
  .oh-spaces { grid-template-columns: 1fr 1fr; grid-auto-rows: 112px; }
  .oh-sp.oh-big { grid-column: 1 / -1; }
  .oh-seast { max-width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .oh-eye img, .oh-pulse, .oh-proc i.run { animation: none; } }

/* ---------- 8. MATERIAŁY — biblioteka (DAM) ---------- */
.dam { display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 0; min-height: calc(100vh - 150px); margin: calc(-1 * var(--s5)) calc(-1 * clamp(16px, 2.2vw, 32px)) 0; border-top: 1px solid var(--line); }
.dam.insp { grid-template-columns: 248px minmax(0, 1fr) 340px; }
.dam-nav { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; padding: var(--s4) var(--s3) var(--s6); border-right: 1px solid var(--line); background: var(--bg2); scrollbar-width: thin; }
.dam-gl { margin: var(--s4) 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dam-gl:first-child { margin-top: 0; }
.dam-ni { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 36px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--muted); font: 500 14px var(--f-ui); text-align: left; text-decoration: none; cursor: pointer; }
.dam-ni span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dam-ni em { font-style: normal; font: 12px var(--f-mono); color: var(--faint); }
.dam-ni:hover { background: var(--glass2); color: var(--text); }
.dam-ni.on { background: var(--raise); color: var(--text); font-weight: 600; box-shadow: inset 2px 0 0 var(--mc); }
.dam-dot { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--info); }
.dam-dot[data-tone=ok] { background: var(--ok); } .dam-dot[data-tone=warn] { background: var(--warn); } .dam-dot[data-tone=bad] { background: var(--bad); }
.dam-tags { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 6px; margin: 0; }
.dam-tag { padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line2); background: transparent; color: var(--muted); font: 500 12.5px var(--f-ui); cursor: pointer; }
.dam-tag em { font-style: normal; color: var(--faint); font-family: var(--f-mono); font-size: 11px; }
.dam-tag:hover, .dam-tag.on { color: var(--text); border-color: var(--mc); background: color-mix(in srgb, var(--mc) 10%, transparent); }
.dam-flt { margin: var(--s4) 4px 0; padding: 0 6px; }
.dam-flt > summary { min-height: 36px; display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; list-style: none; }
.dam-flt label { display: grid; gap: 4px; margin: 8px 0; }
.dam-flt input, .dam-flt select { width: 100%; box-sizing: border-box; }
.dam-clr { width: 100%; margin-top: var(--s3); }
.dam-main { min-width: 0; padding: 0 clamp(16px, 2vw, 28px) var(--s6); }
.dam-bar { position: sticky; top: 68px; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: var(--s3) 0; background: var(--bg); border-bottom: 1px solid var(--line); }
.dam-q { flex: 1 1 280px; display: flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); color: var(--faint); }
.dam-q:focus-within { border-color: var(--mc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--mc) 20%, transparent); }
.dam-q input { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; min-height: 38px; padding: 0; }
.dam-sel { display: flex; align-items: center; gap: 6px; height: 40px; padding-left: 10px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); color: var(--faint); }
.dam-sel select { border: 0 !important; background-color: transparent !important; box-shadow: none !important; min-height: 38px; padding-left: 0; font-size: 14px; }
.dam-views { display: flex; padding: 3px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line2); }
.dam-views button { display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--faint); font: 500 13px var(--f-ui); cursor: pointer; }
.dam-views button span { display: none; }
.dam-views button.on { background: var(--raise); color: var(--text); box-shadow: var(--sh1); }
.dam-views button.on span { display: inline; }
.dam-views button:hover { color: var(--text); }
.dam-size { display: flex; align-items: center; gap: 6px; color: var(--faint); }
.dam-size input { width: 90px; }
.dam-sb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-height: 52px; padding: 6px 0; color: var(--faint); font-size: 13.5px; }
.dam-sb > span { flex: 1; }
.dam-sb.on { margin: var(--s3) 0; padding: 6px 8px 6px 16px; border-radius: var(--r3); background: color-mix(in srgb, var(--mc) 10%, var(--card)); border: 1px solid color-mix(in srgb, var(--mc) 30%, var(--line)); color: var(--text); }
.dam-sb.on b { margin-right: auto; font-weight: 650; }
.dam-body { padding-top: var(--s2); }
.dam-grp { margin-bottom: var(--s5); }
.dam-grp h3 { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--s3); font: 600 14px var(--f-ui) !important; color: var(--muted); }
.dam-grp h3 em { font-style: normal; font: 12px var(--f-mono); color: var(--faint); }
.dam-grp h3 small { color: var(--faint); font-weight: 400; }
.dam-gal { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--sz), 1fr)); gap: var(--s4); }
.dam-grid { --sz: 150px; gap: var(--s3); }
.dam-it { position: relative; border-radius: var(--r3); cursor: default; outline: none; }
.dam-gal .dam-it { display: grid; gap: 10px; padding: 8px; border: 1px solid transparent; transition: background .12s, border-color .12s; }
.dam-gal .dam-it:hover { background: var(--card); }
.dam-it.cur { background: var(--card); border-color: var(--line3); }
.dam-it.sel { background: color-mix(in srgb, var(--mc) 9%, var(--card)); border-color: color-mix(in srgb, var(--mc) 55%, transparent); }
.dam-it:focus-visible { border-color: var(--mc); box-shadow: 0 0 0 2px color-mix(in srgb, var(--mc) 35%, transparent); }
.dam-cb { position: absolute; top: 16px; left: 16px; z-index: 2; opacity: 0; transition: opacity .12s; }
.dam-it:hover .dam-cb, .dam-it.sel .dam-cb, .dam-it:focus-within .dam-cb, .dam-row .dam-cb { opacity: 1; }
.dam-doc { position: relative; aspect-ratio: 4 / 3; display: flex; flex-direction: column; gap: 6px; padding: 14px 14px 12px; border-radius: 10px; box-sizing: border-box; overflow: hidden; background: linear-gradient(180deg, #F4F1EA, #E9E4DA); color: #1E2430; box-shadow: 0 1px 0 rgba(255, 255, 255, .6) inset, 0 6px 16px -8px rgba(0, 0, 0, .6); }
.dam-doc::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: hsl(var(--hue) 55% 48%); }
.dam-dtab { align-self: flex-start; padding: 2px 8px; border-radius: 4px; background: hsl(var(--hue) 45% 88%); color: hsl(var(--hue) 50% 28%); font: 600 10.5px var(--f-ui); letter-spacing: .03em; text-transform: uppercase; }
.dam-doc b { font: 650 14px/1.25 var(--f-ui); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.dam-doc i { display: block; height: 4px; border-radius: 2px; background: #CFC8BA; }
.dam-doc i:nth-of-type(2) { width: 85%; } .dam-doc i:nth-of-type(3) { width: 62%; } .dam-doc i:nth-of-type(4) { width: 90%; } .dam-doc i:nth-of-type(5) { width: 70%; }
.dam-dcode { margin-top: auto; font: 600 10.5px var(--f-mono); color: #7A7365; }
.dam-doc.big { aspect-ratio: 4 / 3.2; padding: 22px 22px 18px; gap: 9px; }
.dam-doc.big b { font-size: 18px; -webkit-line-clamp: 4; }
.dam-grid .dam-doc { padding: 10px; gap: 5px; }
.dam-grid .dam-doc b { font-size: 12.5px; }
.dam-cap { display: grid; gap: 6px; padding: 0 2px; min-width: 0; }
.dam-cap b { font-weight: 600; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.dam-cap > span { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dam-cap small { margin-left: auto; color: var(--faint); font: 12px var(--f-mono); }
.dam-grid .dam-cap > span { display: none; }
.dam-grid .dam-cap b { font-size: 13px; }
.dam-upd { font-style: normal; font-size: 11.5px; font-weight: 600; color: var(--warn); }
.mt-red { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--info) 14%, transparent); color: #93C5FD; }
.mt-red[data-tone=ok] { background: color-mix(in srgb, var(--ok) 14%, transparent); color: #6EE7B7; }
.mt-red[data-tone=warn] { background: color-mix(in srgb, var(--warn) 14%, transparent); color: #FCD34D; }
.mt-red[data-tone=bad] { background: color-mix(in srgb, var(--bad) 14%, transparent); color: #FCA5A5; }
.dam-list { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.dam-row { display: grid; grid-template-columns: 28px 32px minmax(0, 1fr) 150px 130px 64px 120px; align-items: center; gap: 12px; min-height: 52px; padding: 0 14px; border-radius: 0; border-top: 1px solid var(--line); }
.dam-row:first-child { border-top: 0; }
.dam-row:hover { background: var(--card); }
.dam-row .dam-cb { position: static; }
.dam-mini { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 7px; background: hsl(var(--hue) 35% 20%); color: hsl(var(--hue) 70% 75%); }
.dam-rt { font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dam-rc { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dam-rs, .dam-rd { color: var(--faint); font-size: 12.5px; text-align: right; }
.dam-tw { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r3); }
.dam-tbl { width: 100%; min-width: 1100px; font-size: 14px; }
.dam-tbl th, .dam-tbl td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); white-space: nowrap; }
.dam-tbl td.dam-tt { white-space: normal; font-weight: 550; min-width: 260px; }
.dam-tbl tr.sel td { background: color-mix(in srgb, var(--mc) 8%, transparent); }
.dam-tbl tr.cur td { background: var(--card); }
.dam-c0 { width: 32px; }
.dam-prev { display: grid; gap: var(--s4); }
.dam-stagep { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: var(--s5); align-items: start; padding: var(--s5); border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.dam-pt h3 { margin: 4px 0 10px; font: 650 22px/1.25 var(--f-disp) !important; color: var(--text) !important; }
.dam-pt p { color: var(--muted); line-height: 1.65; }
.dam-pt .mono { color: var(--faint); font-size: 12.5px; margin: 0; }
.dam-strip { list-style: none; margin: 0; padding: 4px 0 10px; display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: var(--s3); overflow-x: auto; }
.dam-strip .dam-it { display: grid; gap: 8px; padding: 6px; border: 1px solid transparent; }
.dam-strip .dam-cap > span { display: none; }
.dam-empty { display: grid; justify-items: center; gap: 8px; padding: var(--s7) var(--s4); text-align: center; color: var(--muted); }
.dam-empty > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--card); border: 1px solid var(--line); color: var(--faint); }
.dam-empty b { color: var(--text); font-size: 17px; }
.dam-empty p { margin: 0; max-width: 46ch; }
.dam-insp { position: sticky; top: 68px; align-self: start; max-height: calc(100vh - 68px); overflow-y: auto; padding: var(--s5) var(--s5) var(--s6); border-left: 1px solid var(--line); background: var(--bg2); display: grid; gap: var(--s3); align-content: start; }
.dam-ik { margin: 6px 0 0; color: var(--faint); font-size: 12px; }
.dam-ih { margin: 0 !important; font: 650 19px/1.3 var(--f-disp) !important; color: var(--text) !important; }
.dam-is { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.dam-iact { display: flex; flex-wrap: wrap; gap: 8px; }
.dam-iact .btn.primary { flex: 1; }
.dam-more { position: relative; }
.dam-more > summary { list-style: none; width: 40px; padding: 0; }
.dam-more > summary::-webkit-details-marker { display: none; }
.dam-more > div { position: absolute; right: 0; top: 46px; z-index: 10; min-width: 230px; display: grid; padding: 6px; border-radius: var(--r3); background: var(--raise); border: 1px solid var(--line2); box-shadow: var(--sh3); }
.dam-more button, .dam-ctx button { display: flex; align-items: center; gap: 10px; min-height: 38px; padding: 0 10px; border: 0; border-radius: 8px; background: none; color: var(--text); font: 500 14px var(--f-ui); text-align: left; cursor: pointer; }
.dam-more button:hover, .dam-ctx button:hover, .dam-ctx button:focus-visible { background: var(--glass2); outline: none; }
.dam-isec { padding-top: var(--s3); border-top: 1px solid var(--line); }
.dam-isec h4 { margin: 0 0 8px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.dam-isec p { margin: 0; color: var(--muted); font-size: 14.5px; line-height: 1.6; }
.dam-meta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 14px; margin: 0; }
.dam-meta dt { color: var(--faint); font-size: 12px; }
.dam-meta dd { margin: 2px 0 0; font-size: 14px; font-weight: 550; }
.dam-isec .dam-tags { padding: 0; }
.dam-warn { display: flex; gap: 8px; margin: 0; padding: 10px 12px; border-radius: var(--r2); background: color-mix(in srgb, var(--warn) 10%, transparent); color: #FCD34D; font-size: 13.5px; }
.dam-ie { display: grid; justify-items: center; gap: 10px; padding: var(--s6) var(--s3); text-align: center; color: var(--faint); }
.dam-ie > span { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; border: 1px dashed var(--line3); }
.dam-ctx { position: fixed; z-index: 120; min-width: 240px; padding: 6px; border-radius: var(--r3); background: var(--raise); border: 1px solid var(--line2); box-shadow: var(--sh3); display: grid; }
.dam-ctx p { margin: 2px 10px 6px; font: 12px var(--f-mono); color: var(--faint); }
.dam-ctx hr { margin: 4px 6px; }
.dam .mt-pending { margin: var(--s3) 0; }
@media (max-width: 1280px) { .dam.insp { grid-template-columns: 220px minmax(0, 1fr); } .dam-insp { position: fixed; right: 0; top: 68px; bottom: 0; width: min(360px, 92vw); z-index: 40; max-height: none; box-shadow: var(--sh3); } }
@media (max-width: 900px) {
  .dam, .dam.insp { grid-template-columns: 1fr; margin: calc(-1 * var(--s5)) -12px 0; }
  .dam-nav { position: static; max-height: none; display: flex; flex-wrap: nowrap; gap: 6px; overflow-x: auto; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .dam-nav .dam-gl, .dam-flt, .dam-nav .dam-tags, .dam-clr { display: none; }
  .dam-nav .dam-ni { flex: none; width: auto; border: 1px solid var(--line2); border-radius: 999px; }
  .dam-main { padding: 0 12px var(--s6); }
  .dam-bar { top: 60px; }
  .dam-views button.on span { display: none; }
  .dam-insp { top: 60px; }
  .dam-row { grid-template-columns: 28px 32px minmax(0, 1fr) auto; }
  .dam-rc, .dam-rs, .dam-rd { display: none; }
  .dam-stagep { grid-template-columns: 1fr; }
}

/* pozostałe zakładki Materiałów (Paczki, Źródła, Kategorie) — spokojny układ */
.mt-head { padding-bottom: var(--s3); margin-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.mt-head h2 { margin: 0; }
.mt-head p { margin: 4px 0 0; color: var(--muted); }
.mt-tabs button.on { border-bottom-color: var(--mc); }

/* ---------- 9. AKCENTY PRZESTRZENI (tylko akcent — nie tło całego ekranu) ---------- */
body[data-ws=prod] { --mc: #A78BFA; } body[data-ws=ai] { --mc: #2DD4BF; } body[data-ws=an] { --mc: #60A5FA; }
body[data-ws=fin] { --mc: #34D399; } body[data-ws=red] { --mc: #93A8D6; } body[data-ws=me] { --mc: #C4B5FD; } body[data-ws=sys] { --mc: #94A3B8; }
body[data-mod=azymut] { --mc: #F5B544; }
body[data-ws=prod] .btn.primary, body[data-ws=me] .btn.primary { color: #12081F; }
/* Studio AI: jedno menu — stary pasek zakładek tylko na telefonie */
@media (min-width: 901px) { body.o2-shell .sd-top .sd-nav { display: none; } }
body.o2-shell .sd-top { min-height: 0; border-radius: var(--r3); }

/* neutralizacja starych stylów Startu (gałęzie i fokus z 1.19–1.48) w nowym Centrum */
.oh .oh-focus.focus { display: flex; flex-direction: column; align-items: stretch; gap: var(--s3); flex-wrap: nowrap; padding: 26px 28px; border: 0; border-radius: var(--r4); background: #0E1726; text-align: left; box-shadow: 0 24px 50px -30px rgba(14, 23, 38, .9); margin: 0; }
.oh .oh-focus.focus::after, .oh .oh-focus.focus::before { display: none; }
.oh .oh-focus .ft { flex: none; min-width: 0; }
.oh .oh-focus .ft b { font: 650 clamp(22px, 2vw, 28px)/1.2 var(--f-disp); color: #fff; }
.oh .oh-focus .ft small { color: #A9B6C7; text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
.oh .oh-focus .fa { position: static; }
.oh .br.oh-sp { display: flex; align-content: normal; min-height: 0; padding: 16px 18px; border: 0; border-radius: var(--r4); background: #13202F; box-shadow: 0 16px 34px -26px rgba(14, 23, 38, .8); }
.oh .br.oh-sp::after { display: none; }
.oh .br.oh-sp::before { content: ''; position: absolute; inset: 0; width: auto; height: auto; right: 0; top: 0; border-radius: 0; z-index: -1; transform: none; background: linear-gradient(90deg, rgba(8, 14, 24, .86) 0%, rgba(8, 14, 24, .45) 55%, rgba(8, 14, 24, .05)); }
.oh .br.oh-sp:hover::before { transform: none; }
.oh .br.oh-sp b { font: 650 19px var(--f-disp); color: #fff; }
.oh .br.oh-sp small { color: #CBD5E1; font-size: 13px; }
.oh-date { text-transform: none; }
.oh-date::first-letter { text-transform: uppercase; }
.oh-spaces .oh-sp:nth-child(7), .oh-spaces .oh-sp:nth-child(8) { grid-column: span 2; }
.oh .oh-ops .br.oh-link { display: inline-flex; min-height: 0; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; color: #0E7490; font-size: 13.5px; font-weight: 600; }
.oh .oh-ops .br.oh-link::before, .oh .oh-ops .br.oh-link::after { display: none; }
body[data-ws=cmd] .o2-trail { display: none; }
@media (max-width: 760px) { .oh-spaces .oh-sp:nth-child(7), .oh-spaces .oh-sp:nth-child(8) { grid-column: span 1; } }
.dam { margin: var(--s3) 0 0; border: 1px solid var(--line); border-radius: var(--r4); background: var(--bg); }
.dam-nav { border-radius: var(--r4) 0 0 var(--r4); }
.dam-size input[type=range] { width: 96px; }
@media (max-width: 900px) { .dam, .dam.insp { margin: var(--s3) 0 0; } }
.dam-insp .dam-doc.big { aspect-ratio: auto; min-height: 210px; }
.dam-sb.on .btn { min-height: 34px; padding: 0 12px; font-size: 13.5px; }
.dam-bar .o2-ib { margin-left: auto; }

/* =====================================================================================
   1.54 — TYPOGRAFIA TEKSTÓW (czytnik Materiałów, wyniki Haiku)
   ===================================================================================== */
.md { font-size: 16.5px; line-height: 1.75; color: var(--text); max-width: 72ch; }
.md > :first-child { margin-top: 0; }
.md h2 { margin: 2em 0 .6em; font: 650 23px/1.3 var(--f-disp); letter-spacing: -.015em; scroll-margin-top: 90px; }
.md h3 { margin: 1.6em 0 .4em; font: 650 18px/1.35 var(--f-ui); scroll-margin-top: 90px; }
.md h4 { margin: 1.3em 0 .3em; font: 600 15px var(--f-ui); color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.md p { margin: 0 0 1em; }
.md ul, .md ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.md li { margin: .3em 0; }
.md li::marker { color: var(--faint); }
.md strong { font-weight: 650; color: var(--text); }
.md blockquote { margin: 1.2em 0; padding: .4em 0 .4em 1.2em; border-left: 3px solid var(--mc); color: var(--muted); font-style: italic; }
.md code { font-size: .88em; padding: 1px 6px; border-radius: 5px; background: var(--bg2); border: 1px solid var(--line); }
.md pre { padding: 14px 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); overflow-x: auto; font-size: 13.5px; line-height: 1.55; }
.md pre code { border: 0; padding: 0; background: none; }
.md hr { margin: 2em 0; }
.md a { color: var(--mc); }
.md-tw { overflow-x: auto; margin: 1em 0 1.4em; border: 1px solid var(--line); border-radius: var(--r2); }
.md table { width: 100%; font-size: 14.5px; }
.md th, .md td { padding: 9px 12px; text-align: left; border-bottom: 1px solid var(--line); }
.md tr:last-child td { border-bottom: 0; }
.md-task { list-style: none; margin-left: -1.4em; display: flex; gap: 10px; }
.md-task span { width: 16px; height: 16px; margin-top: .35em; flex: none; border-radius: 4px; border: 1.5px solid var(--line3); }
.md-task.done span { background: var(--ok); border-color: var(--ok); }
.md-task.done { color: var(--faint); text-decoration: line-through; }
.lr-back { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-size: 14px; font-weight: 500; }
.lr-back:hover { color: var(--text); }
.lr-hint { color: var(--faint); font-size: 13.5px; line-height: 1.5; margin: 6px 0; }
.lr-none { color: var(--faint); }
.o2-chk { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 14px; cursor: pointer; }

/* =====================================================================================
   1.54 — MATERIAŁY 2.0: półki, układy półek, czytnik, edytor
   ===================================================================================== */
.lb { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--s6); align-items: start; padding-bottom: var(--s7); }
.lb-shelves { position: sticky; top: 92px; display: grid; gap: 2px; }
.lb-sh { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--s3); }
.lb-sh h2 { margin: 0; font: 700 22px var(--f-disp) !important; }
.lb-gl { margin: var(--s4) 10px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lb-sb { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 42px; padding: 0 10px; border: 0; border-radius: var(--r2); background: none; color: var(--muted); font: 500 14.5px var(--f-ui); text-align: left; text-decoration: none; cursor: pointer; }
.lb-sb span:nth-child(2) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lb-si { width: 30px; height: 30px; flex: none; display: grid; place-items: center; border-radius: 9px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.lb-sb em { font-style: normal; font: 12px var(--f-mono); color: var(--faint); }
.lb-sb:hover { background: var(--glass2); color: var(--text); }
.lb-sb.on { background: var(--card); color: var(--text); font-weight: 600; box-shadow: inset 0 0 0 1px var(--line2); }
.lb-dupes { margin-top: var(--s4); padding: 12px 14px; border-radius: var(--r3); background: color-mix(in srgb, var(--warn) 9%, var(--card)); border: 1px solid color-mix(in srgb, var(--warn) 28%, var(--line)); display: grid; gap: 4px; font-size: 13.5px; }
.lb-dupes span { color: var(--muted); }
.lb-dupes a { color: var(--warn); font-weight: 600; text-decoration: none; }
.lb-main { min-width: 0; }
.lb-hd { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--s4); align-items: center; padding-bottom: var(--s5); margin-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.lb-hi { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 16px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent); }
.lb-hd h1 { margin: 0; font: 700 28px/1.15 var(--f-disp) !important; }
.lb-hd p { margin: 4px 0 0; color: var(--muted); }
.lb-hact { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: var(--s3); }
.lb-q { flex: 1 1 260px; display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r2); background: var(--bg2); color: var(--faint); }
.lb-q:focus-within { border-color: var(--mc); }
.lb-q input { flex: 1; border: 0 !important; background: none !important; box-shadow: none !important; padding: 0; min-height: 38px; }
.lb-seg { display: flex; padding: 3px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line2); }
.lb-seg button { height: 32px; padding: 0 12px; border: 0; border-radius: 7px; background: none; color: var(--faint); font: 500 13.5px var(--f-ui); cursor: pointer; white-space: nowrap; }
.lb-seg button.on { background: var(--raise); color: var(--text); box-shadow: var(--sh1); }
.lb-sel select { min-height: 40px; font-size: 14px; }
.lb-count { margin: var(--s2) 0 var(--s3); color: var(--faint); font-size: 13px; }
.lb-st { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: color-mix(in srgb, var(--info) 15%, transparent); color: #93C5FD; white-space: nowrap; }
.lb-st[data-t=ok] { background: color-mix(in srgb, var(--ok) 15%, transparent); color: #6EE7B7; }
.lb-st[data-t=warn] { background: color-mix(in srgb, var(--warn) 15%, transparent); color: #FCD34D; }
.lb-st[data-t=used] { background: rgba(167, 139, 250, .16); color: #C4B5FD; }
.lb-st[data-t=bad] { background: color-mix(in srgb, var(--bad) 15%, transparent); color: #FCA5A5; }
.lb-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; color: var(--faint); font-size: 12.5px; }
.lb-meta time { margin-left: auto; font-family: var(--f-mono); font-size: 12px; }
.lb-meta svg { vertical-align: -2px; }
.lb-hk { color: #5EEAD4; }
.lb-it { display: block; text-decoration: none; color: inherit; }
.lb-it b { font-weight: 650; }
.lb-it p { margin: 6px 0 10px; color: var(--muted); font-size: 14.5px; line-height: 1.55; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lb-it.pin b::after { content: ' ★'; color: #F5B544; font-size: .8em; }
/* lista (teksty) */
.lb-list { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.lb-list .lb-row { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 14px; padding: 18px 8px; border-bottom: 1px solid var(--line); transition: background .12s; }
.lb-list .lb-row:hover { background: var(--card); }
.lb-mark { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.lb-lt small { color: var(--c); font-size: 12px; font-weight: 600; letter-spacing: .03em; text-transform: uppercase; }
.lb-lt b { display: block; margin-top: 2px; font-size: 17px; line-height: 1.35; }
/* siatka: podcast, dossier */
.lb-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--s4); }
.lb-grid .lb-it { height: 100%; box-sizing: border-box; padding: 18px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); transition: border-color .12s, transform .12s; }
.lb-grid .lb-it:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); transform: translateY(-2px); }
.lb-grid .lb-it b { display: block; font-size: 16.5px; line-height: 1.35; }
.lb-wave { width: 100%; height: 34px; margin-bottom: 12px; fill: color-mix(in srgb, var(--c) 70%, transparent); }
.lb-pm { display: block; margin-bottom: 8px; color: var(--c); font: 600 12.5px var(--f-mono); }
.lb-dos .lb-it { border-top: 3px solid var(--c); }
.lb-dtab { display: inline-block; margin-bottom: 8px; padding: 2px 9px; border-radius: 5px; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
/* książka */
.lb-books { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: var(--s5) var(--s4); }
.lb-books .lb-it { display: grid; gap: 12px; }
.lb-cover { position: relative; aspect-ratio: 3 / 4; display: flex; flex-direction: column; justify-content: space-between; padding: 18px 16px 18px 24px; border-radius: 4px 10px 10px 4px; background: linear-gradient(135deg, hsl(var(--h) 35% 34%), hsl(var(--h) 40% 18%)); color: #fff; box-shadow: inset 8px 0 0 rgba(0, 0, 0, .22), 0 14px 26px -16px rgba(0, 0, 0, .8); transition: transform .15s; }
.lb-books .lb-it:hover .lb-cover { transform: translateY(-3px) rotate(-1deg); }
.lb-cover small { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; opacity: .75; }
.lb-cover b { font: 600 17px/1.3 var(--f-disp); }
.lb-cover i { height: 2px; width: 40px; background: rgba(255, 255, 255, .5); }
.lb-bt { display: grid; gap: 4px; justify-items: start; }
.lb-bt b { font-size: 14.5px; }
.lb-bt small { color: var(--faint); font-size: 12.5px; }
/* tygodnie */
.lb-weeks { display: grid; gap: var(--s5); }
.lb-wk { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: var(--s4); }
.lb-wkb { position: sticky; top: 92px; align-self: start; display: grid; justify-items: center; padding: 12px 6px; border-radius: var(--r3); background: color-mix(in srgb, var(--c, #60A5FA) 12%, var(--card)); border: 1px solid var(--line); }
.lb-wkb small { color: var(--faint); font: 12px var(--f-mono); }
.lb-wkb b { font: 700 32px/1 var(--f-disp); color: #93C5FD; }
.lb-wkb span { color: var(--muted); font-size: 12px; }
.lb-wk ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.lb-wk .lb-row { padding: 16px 18px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); }
.lb-wk .lb-row b { font-size: 16.5px; }
/* finanse (tabela) */
.lb-ledger { border: 1px solid var(--line); border-radius: var(--r3); overflow: hidden; }
.lb-ledger table { width: 100%; }
.lb-ledger th { text-align: left; padding: 10px 14px; }
.lb-ledger td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lb-ledger tr:last-child td { border-bottom: 0; }
.lb-ledger td a { display: grid; gap: 3px; text-decoration: none; color: inherit; }
.lb-ledger td a b { font-weight: 600; } .lb-ledger td a:hover b { color: var(--mc); }
.lb-ledger td small { color: var(--faint); font-size: 13px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.lb-ledger .r { text-align: right; }
/* nawyki (dni) */
.lb-days { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s3); }
.lb-days .lb-it { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 14px; padding: 14px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); }
.lb-days .lb-it:hover { border-color: color-mix(in srgb, var(--c) 50%, var(--line)); }
.lb-dn { display: grid; place-content: center; text-align: center; border-radius: 12px; background: color-mix(in srgb, var(--c) 14%, var(--bg2)); color: var(--c); }
.lb-dn small { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; }
.lb-dn b { font: 700 30px/1 var(--f-disp); }
.lb-dt b { font-size: 15.5px; }
.lb-empty { display: grid; justify-items: center; gap: 10px; padding: var(--s7) var(--s4); text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r4); }
.lb-empty > span { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 18px; background: var(--card); color: var(--faint); }
.lb-empty b { color: var(--text); font-size: 17px; } .lb-empty p { margin: 0; max-width: 48ch; }
/* czytnik */
.lr { display: grid; grid-template-columns: 220px minmax(0, 1fr) 320px; gap: var(--s6); align-items: start; padding-bottom: var(--s7); }
.lr-toc { position: sticky; top: 92px; display: grid; gap: 10px; }
.lr-shelf { display: inline-flex; align-items: center; gap: 6px; color: var(--c); font-size: 13px; font-weight: 600; }
.lr-gl { margin: 10px 0 0; font-size: 11.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lr-toc ol { list-style: none; margin: 0; padding: 0 0 0 10px; border-left: 1px solid var(--line); display: grid; gap: 2px; }
.lr-toc li a { display: block; padding: 5px 8px; border-radius: 6px; color: var(--muted); text-decoration: none; font-size: 13.5px; line-height: 1.35; }
.lr-toc li.l3 a { padding-left: 20px; font-size: 13px; color: var(--faint); }
.lr-toc li a:hover { color: var(--text); background: var(--glass2); }
.lr-doc { min-width: 0; }
.lr-doc header { margin-bottom: var(--s6); padding-bottom: var(--s5); border-bottom: 1px solid var(--line); }
.lr-k { margin: 0 0 10px; color: var(--c); font-size: 12.5px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.lr-doc h1 { margin: 0 0 14px; font: 700 clamp(28px, 2.6vw, 36px)/1.15 var(--f-disp) !important; letter-spacing: -.025em; max-width: 30ch; }
.lr-m { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0; color: var(--faint); font-size: 13.5px; }
.lr-lead { margin: 18px 0 0; max-width: 64ch; font-size: 18px; line-height: 1.6; color: var(--muted); }
.lr-side { position: sticky; top: 92px; display: grid; gap: var(--s3); max-height: calc(100vh - 110px); overflow-y: auto; scrollbar-width: thin; }
.lr-acts { display: flex; gap: 8px; align-items: center; }
.lr-acts .btn.primary { flex: 1; }
.lr-more { position: relative; }
.lr-more > summary { list-style: none; }
.lr-more > summary::-webkit-details-marker { display: none; }
.lr-more > div { position: absolute; right: 0; top: 46px; z-index: 10; width: 280px; display: grid; padding: 6px; border-radius: var(--r3); background: var(--raise); border: 1px solid var(--line2); box-shadow: var(--sh3); }
.lr-more button { display: flex; gap: 12px; align-items: flex-start; padding: 10px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; cursor: pointer; }
.lr-more button:hover { background: var(--glass2); }
.lr-more button svg { margin-top: 2px; color: #2DD4BF; }
.lr-more button span { display: grid; gap: 2px; } .lr-more button b { font-size: 14px; } .lr-more button small { color: var(--faint); font-size: 12.5px; }
.lr-sec { padding: 14px 16px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); display: grid; gap: 10px; }
.lr-sec h3, .lr-sec summary h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 12px !important; font-weight: 600 !important; letter-spacing: .06em; text-transform: uppercase; color: var(--faint); }
.lr-sec h3 em { font-style: normal; font-family: var(--f-mono); }
.lr-sec > summary { list-style: none; cursor: pointer; }
.lr-sec label { display: grid; gap: 4px; }
.lr-sec select, .lr-sec input { width: 100%; box-sizing: border-box; }
.lr-films, .lr-ver, .lr-log { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.lr-films li { display: flex; align-items: center; gap: 6px; }
.lr-films a { flex: 1; display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 14px; }
.lr-films a:hover { background: var(--glass2); }
.lr-films .o2-ib { width: 30px; height: 30px; }
.lr-ver li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 6px 0; border-top: 1px solid var(--line); }
.lr-ver li:first-child { border-top: 0; }
.lr-ver span { display: grid; } .lr-ver b { font-size: 13.5px; font-weight: 600; } .lr-ver small { color: var(--faint); font-size: 12px; }
.lr-log li { font-size: 12.5px; color: var(--muted); padding: 3px 0; } .lr-log time { font-family: var(--f-mono); color: var(--faint); margin-right: 6px; }
.lr-foot { display: flex; flex-wrap: wrap; gap: 6px; }
.lr-foot .danger { color: #FCA5A5; }
/* edytor */
.le { display: grid; gap: var(--s4); padding-bottom: var(--s7); }
.le-h { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.le-h h1 { margin: 0; font: 700 24px var(--f-disp) !important; flex: 1; }
.le-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.le-file { cursor: pointer; }
.le-meta { display: grid; grid-template-columns: minmax(0, 1fr) 200px 170px 220px; gap: 12px; align-items: end; }
.le-meta label { display: grid; gap: 4px; }
.le-title input { font: 650 22px var(--f-disp); min-height: 52px; }
.le-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); }
.le-bar button { height: 32px; padding: 0 10px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 500 13px var(--f-ui); cursor: pointer; }
.le-bar button:hover { background: var(--glass2); color: var(--text); }
.le-wc { margin-left: auto; padding-right: 8px; color: var(--faint); font: 12px var(--f-mono); }
.le-work { display: grid; gap: var(--s4); }
.le-work.split { grid-template-columns: 1fr 1fr; }
.le-work textarea { min-height: 62vh; padding: 20px 22px; font: 16px/1.7 var(--f-ui); resize: vertical; }
.le-prev { padding: 20px 26px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); max-height: 62vh; overflow-y: auto; }
/* Reżyser: źródła filmu */
.ps { margin: 0 0 var(--s4); padding: 14px 16px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); }
.ps-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ps-h h3 { display: inline-flex; align-items: center; gap: 8px; margin: 0; font-size: 15px !important; }
.ps-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ps-list li { display: flex; align-items: center; gap: 2px; padding: 3px 3px 3px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 10%, var(--bg2)); border: 1px solid color-mix(in srgb, var(--c) 30%, var(--line)); }
.ps-list a { display: flex; align-items: center; gap: 6px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.ps-list a span { color: var(--c); display: grid; } .ps-list small { color: var(--faint); font-size: 12px; }
.ps-list .o2-ib { width: 28px; height: 28px; }
.ps-none { margin: 8px 0 0; color: var(--faint); font-size: 13.5px; }
.ps-pick { list-style: none; margin: 10px 0 0; padding: 0; max-height: 50vh; overflow-y: auto; display: grid; gap: 2px; }
.ps-pick label { display: grid; grid-template-columns: auto 28px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px; border-radius: 8px; cursor: pointer; }
.ps-pick label:hover { background: var(--glass2); }
.ps-pick b { font-weight: 550; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ps-pick small { color: var(--faint); font-size: 12px; white-space: nowrap; }
.ps-c { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 8px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
@media (max-width: 1200px) { .lr { grid-template-columns: minmax(0, 1fr) 300px; } .lr-toc { display: none; } .le-meta { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) {
  .lb { grid-template-columns: 1fr; gap: var(--s4); }
  .lb-shelves { position: static; display: flex; overflow-x: auto; gap: 6px; padding-bottom: 6px; }
  .lb-sh, .lb-gl, .lb-dupes { display: none; }
  .lb-sb { flex: none; width: auto; border: 1px solid var(--line2); border-radius: 999px; min-height: 38px; }
  .lb-sb .lb-si { width: 24px; height: 24px; }
  .lb-hd { grid-template-columns: auto 1fr; } .lb-hact { grid-column: 1 / -1; justify-content: flex-start; }
  .lr { grid-template-columns: 1fr; } .lr-side { position: static; max-height: none; }
  .le-work.split { grid-template-columns: 1fr; }
  .lb-wk { grid-template-columns: 1fr; } .lb-wkb { position: static; grid-auto-flow: column; justify-content: start; gap: 8px; align-items: baseline; }
}

/* =====================================================================================
   1.54 — HAIKU 2.0
   ===================================================================================== */
body[data-zone=haiku] { --mc: #2DD4BF; }
.h2 { display: grid; gap: var(--s5); padding-bottom: var(--s7); }
.h2-tabs { display: flex; gap: 4px; padding: 4px; border-radius: var(--r3); background: var(--bg2); border: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.h2-tabs a { display: flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: var(--r2); color: var(--muted); text-decoration: none; font-weight: 500; font-size: 14.5px; white-space: nowrap; }
.h2-tabs a:hover { color: var(--text); background: var(--glass2); }
.h2-tabs a.on { background: var(--card2); color: var(--text); font-weight: 600; box-shadow: var(--sh1), inset 0 -2px 0 #2DD4BF; }
.h2-tabs a.on svg { color: #2DD4BF; }
.h2-k { margin: 0 0 6px; color: #5EEAD4; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.h2-ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 24px; }
.h2-ph h1 { margin: 4px 0 0; font: 700 28px/1.15 var(--f-disp) !important; }
.h2-ph p { margin: 6px 0 0; color: var(--muted); max-width: 70ch; }
.h2-pctl { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.h2-none { color: var(--faint); font-size: 14px; margin: 4px 0; }
.h2-empty { display: grid; justify-items: center; gap: 10px; padding: var(--s7) var(--s4); text-align: center; color: var(--muted); border: 1px dashed var(--line2); border-radius: var(--r4); }
.h2-empty b { color: var(--text); font-size: 17px; } .h2-empty p { margin: 0; max-width: 52ch; }
.h2-st { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: color-mix(in srgb, var(--info) 15%, transparent); color: #93C5FD; }
.h2-st[data-t=ok] { background: color-mix(in srgb, var(--ok) 15%, transparent); color: #6EE7B7; }
.h2-st[data-t=warn] { background: color-mix(in srgb, var(--warn) 15%, transparent); color: #FCD34D; }
.h2-st[data-t=bad] { background: color-mix(in srgb, var(--bad) 15%, transparent); color: #FCA5A5; }
.h2-st[data-t=run] { background: rgba(45, 212, 191, .14); color: #5EEAD4; }
.h2-st[data-t=run]::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: o2blink 1.2s infinite; }
/* pulpit */
.h2-hero { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(260px, .8fr); gap: var(--s5); align-items: center; padding: 28px 32px; border-radius: var(--r4); background: linear-gradient(135deg, #0F2A2E 0%, #0B1A20 60%); border: 1px solid #1D3E44; overflow: hidden; }
.h2-heroT h1 { margin: 0; font: 700 clamp(24px, 2.4vw, 32px)/1.2 var(--f-disp) !important; }
.h2-heroT > p { margin: 10px 0 0; color: #A7C6CB; max-width: 60ch; }
.h2-new { display: flex; flex-wrap: wrap; gap: 8px; margin-top: var(--s5); }
.h2-kq { display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 14px; border-radius: var(--r2); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); color: #E6F6F6; text-decoration: none; font-weight: 600; font-size: 14px; }
.h2-kq svg { color: var(--c); }
.h2-kq:hover { background: rgba(255, 255, 255, .09); border-color: var(--c); }
.h2-kq.more svg { color: #A7C6CB; }
.h2-heroA { display: grid; place-items: center; }
.h2-flow { width: 100%; max-width: 320px; filter: drop-shadow(0 20px 30px rgba(0, 0, 0, .45)); }
.h2-flow g.on { animation: h2lift 2.6s ease-in-out infinite; }
@keyframes h2lift { 50% { transform: translateY(-5px); } }
.h2-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1fr); gap: var(--s4); align-items: start; }
.h2-pan { padding: 18px 20px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-pan h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 16px !important; font-weight: 650 !important; }
.h2-pan h2 svg { color: #2DD4BF; }
.h2-pan h2 em { font-style: normal; padding: 0 8px; border-radius: 10px; background: var(--warn); color: #1F1300; font-size: 12px; }
.h2-pan h2 a { margin-left: auto; color: #5EEAD4; font-size: 13px; font-weight: 600; text-decoration: none; }
.h2-wait, .h2-res, .h2-prj { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.h2-wait a { display: grid; gap: 2px; padding: 10px; border-radius: var(--r2); text-decoration: none; color: inherit; border-left: 3px solid var(--warn); background: color-mix(in srgb, var(--warn) 6%, transparent); }
.h2-wait a:hover { background: color-mix(in srgb, var(--warn) 12%, transparent); }
.h2-wait b { font-weight: 600; font-size: 14.5px; } .h2-wait small { color: var(--faint); font-size: 12.5px; }
.h2-res a { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r2); text-decoration: none; color: inherit; }
.h2-res a:hover { background: var(--glass2); }
.h2-res a > span:nth-child(2), .h2-res a > span:first-child:not(.h2-ri) { display: grid; min-width: 0; }
.h2-res b { font-weight: 600; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-res small { color: var(--faint); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.h2-ri { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.h2-prj a { display: grid; gap: 6px; padding: 10px; border-radius: var(--r2); text-decoration: none; color: inherit; }
.h2-prj a:hover { background: var(--glass2); }
.h2-prj b { font-weight: 600; } .h2-prj small { color: var(--faint); font-size: 12.5px; }
.h2-stg { display: flex; gap: 4px; }
.h2-stg i { flex: 1; height: 5px; border-radius: 3px; background: var(--line2); }
.h2-stg i.d { background: #2DD4BF; } .h2-stg i.c { background: linear-gradient(90deg, #2DD4BF, var(--line2)); }
.h2-stg.big i { height: 7px; }
.h2-tools h2 { margin: 0 0 10px; font-size: 13px !important; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.h2-tools > div { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.h2-tool { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; text-align: left; cursor: pointer; font: inherit; }
.h2-tool svg { color: #2DD4BF; flex: none; }
.h2-tool span { display: grid; } .h2-tool b { font-size: 14.5px; } .h2-tool small { color: var(--faint); font-size: 12.5px; }
.h2-tool:hover { border-color: #2DD4BF; }
/* zlecenia */
.h2-filt { display: flex; flex-wrap: wrap; gap: 6px; }
.h2-filt button { height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--muted); font: 500 13.5px var(--f-ui); cursor: pointer; }
.h2-filt button.on { background: var(--card2); color: var(--text); border-color: #2DD4BF; }
.h2-olist { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.h2-olist a { display: grid; grid-template-columns: 42px minmax(0, 1fr) auto 80px; gap: 14px; align-items: center; padding: 16px 8px; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.h2-olist a:hover { background: var(--card); }
.h2-oi { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); }
.h2-ot { min-width: 0; display: grid; gap: 2px; }
.h2-ot small { color: var(--faint); font-size: 12.5px; } .h2-ot b { font-size: 16px; font-weight: 600; }
.h2-ot p { margin: 2px 0 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.h2-oc { text-align: right; color: var(--faint); font-size: 12.5px; }
.h2-kinds { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.h2-kinds button, .h2-kinds a { width: 100%; height: 100%; box-sizing: border-box; display: grid; gap: 6px; justify-items: start; padding: 16px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); color: var(--text); text-align: left; text-decoration: none; font: inherit; cursor: pointer; }
.h2-kinds span { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.h2-kinds b { font-size: 15px; } .h2-kinds small { color: var(--faint); font-size: 13px; line-height: 1.45; }
.h2-kinds button:hover, .h2-kinds a:hover { border-color: var(--c); }
.h2-kinds button.on { border-color: var(--c); box-shadow: inset 0 0 0 1px var(--c); background: color-mix(in srgb, var(--c) 7%, var(--card)); }
.h2-form { display: grid; gap: var(--s3); max-width: 820px; padding: 22px 24px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-form h2 { margin: 0; font-size: 19px !important; }
.h2-form .field { display: grid; gap: 4px; }
.h2-form textarea, .h2-form input:not([type=checkbox]):not([type=radio]) { width: 100%; box-sizing: border-box; }
.h2-form fieldset { padding: 12px; display: grid; gap: 8px; }
.h2-pick { max-height: 280px; }
.h2-fa { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 6px; }
.h2-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h2-kpick { grid-template-columns: repeat(3, minmax(0, 1fr)); border: 0; padding: 0; }
.h2-kpick label { cursor: pointer; }
.h2-kpick input { position: absolute; opacity: 0; }
.h2-kpick label > span { display: grid; gap: 4px; padding: 14px; height: 100%; box-sizing: border-box; border-radius: var(--r3); border: 1px solid var(--line2); background: var(--bg2); }
.h2-kpick svg { color: #2DD4BF; } .h2-kpick b { font-size: 14.5px; } .h2-kpick small { color: var(--faint); font-size: 12.5px; }
.h2-kpick input:checked + span { border-color: #2DD4BF; box-shadow: inset 0 0 0 1px #2DD4BF; background: rgba(45, 212, 191, .06); }
.h2-kpick input:focus-visible + span { outline: 2px solid #2DD4BF; }
/* karta zlecenia */
.h2-card { display: grid; gap: var(--s5); max-width: 1180px; }
.h2-ch { display: grid; gap: 12px; padding-bottom: var(--s4); border-bottom: 1px solid var(--line); }
.h2-cht { display: flex; gap: 16px; align-items: center; }
.h2-ci { width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 15px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.h2-cht h1 { margin: 0; font: 700 28px/1.2 var(--f-disp) !important; }
.h2-chm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; color: var(--faint); font-size: 13.5px; }
.h2-cha { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-run { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r3); background: rgba(45, 212, 191, .08); border: 1px solid rgba(45, 212, 191, .3); color: #99F6E4; }
.h2-run span:last-child { color: var(--faint); font-size: 13px; }
.h2-spin { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(45, 212, 191, .3); border-top-color: #2DD4BF; animation: o2spin .9s linear infinite; }
.h2-err { padding: 12px 16px; border-radius: var(--r3); background: color-mix(in srgb, var(--bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); color: #FCA5A5; display: flex; gap: 10px; }
.h2-lead { padding: 22px 26px; border-radius: var(--r4); background: color-mix(in srgb, var(--c) 8%, var(--card)); border: 1px solid color-mix(in srgb, var(--c) 25%, var(--line)); }
.h2-lead h2, .h2-sum h2, .h2-full h2, .h2-acts h2, .h2-brief h2 { margin: 0 0 10px; font-size: 12.5px !important; font-weight: 600 !important; letter-spacing: .07em; text-transform: uppercase; color: var(--faint); }
.h2-lead p { margin: 0; font: 500 19px/1.6 var(--f-ui); max-width: 72ch; }
.h2-sum { padding: 4px 2px; }
.h2-cbody { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--s6); align-items: start; }
.h2-full { padding-top: var(--s4); border-top: 1px solid var(--line); }
.h2-acts { position: sticky; top: 92px; display: grid; gap: 10px; padding: 18px; border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); }
.h2-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line2); display: grid; gap: 10px; }
.h2-tl li { position: relative; display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); }
.h2-tl li::before { content: ''; position: absolute; left: -20px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 3px var(--card); }
.h2-tl time { font: 12px var(--f-mono); color: var(--faint); }
.h2-in { display: grid; gap: 8px; margin: 0; }
.h2-in dt { color: var(--faint); font-size: 12px; } .h2-in dd { margin: 0; font-size: 13.5px; color: var(--muted); }
.h2-brief { display: grid; gap: var(--s4); padding: 22px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-bgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.h2-bgrid div { padding: 12px 14px; border-radius: var(--r2); background: var(--bg2); }
.h2-bgrid h3 { margin: 0 0 6px; font-size: 13px !important; color: #93A8D6; }
.h2-bgrid ul { margin: 0; padding-left: 1.1em; font-size: 14px; color: var(--muted); display: grid; gap: 3px; }
.h2-ph2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.h2-ph2 h3 { margin: 0; font-size: 15px !important; }
.h2-prompt pre { margin: 0; max-height: 300px; overflow: auto; padding: 14px 16px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); white-space: pre-wrap; font: 13.5px/1.6 var(--f-mono); color: var(--muted); }
.h2-brief form { display: grid; gap: 10px; }
.h2-brief textarea { width: 100%; box-sizing: border-box; }
.h2-chk { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.h2-chk li { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; align-items: start; padding: 12px 14px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); }
.h2-chk i { width: 12px; height: 12px; margin-top: 4px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.h2-chk li[data-t=warn] i { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 18%, transparent); }
.h2-chk li[data-t=bad] i { background: var(--bad); box-shadow: 0 0 0 4px color-mix(in srgb, var(--bad) 18%, transparent); }
.h2-chk span { display: grid; gap: 2px; } .h2-chk b { font-size: 14.5px; } .h2-chk small { color: var(--muted); font-size: 13.5px; }
.h2-chk em { font-style: normal; color: var(--faint); font-size: 13px; }
.h2-score { display: flex; align-items: center; gap: var(--s5); padding: 20px 24px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-score h2 { margin: 0; font-size: 20px !important; } .h2-score p { margin: 4px 0 0; color: var(--faint); }
.h2-ring { width: 110px; height: 110px; flex: none; border-radius: 50%; display: grid; place-content: center; text-align: center; background: radial-gradient(closest-side, var(--card) 76%, transparent 78% 100%), conic-gradient(#34D399 calc(var(--p) * 1%), var(--line2) 0); }
.h2-ring b { font: 700 24px var(--f-disp); } .h2-ring span { color: var(--faint); font-size: 12px; }
.h2-hist ul { list-style: none; padding: 0; display: grid; gap: 4px; font-size: 13.5px; }
.h2-hist li { display: flex; gap: 12px; } .h2-hist time { font-family: var(--f-mono); color: var(--faint); }
.h2-hist .ok { color: #6EE7B7; } .h2-hist .warn { color: #FCD34D; } .h2-hist .bad { color: #FCA5A5; }
/* projekty */
.h2-pgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--s4); }
.h2-pc { display: grid; gap: 10px; height: 100%; box-sizing: border-box; padding: 20px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); text-decoration: none; color: inherit; transition: border-color .12s, transform .12s; }
.h2-pc:hover { border-color: #2DD4BF; transform: translateY(-2px); }
.h2-pk { display: inline-flex; align-items: center; gap: 8px; color: #5EEAD4; font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.h2-pc[data-k=podcast] .h2-pk { color: #F9A8D4; }
.h2-pc b { font: 650 19px/1.3 var(--f-disp); }
.h2-pc p { margin: 0; color: var(--muted); font-size: 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.h2-pm { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; font-size: 13px; }
.h2-pm em { font-style: normal; padding: 1px 8px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 16%, transparent); color: #FCD34D; }
.h2-pm em.p { background: var(--glass2); color: var(--muted); }
.h2-pm small { color: var(--faint); margin-left: auto; font-family: var(--f-mono); }
.h2-stages { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.h2-stages li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: var(--r2); background: var(--bg2); border: 1px solid var(--line); color: var(--faint); font-size: 13.5px; }
.h2-stages i { width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line3); font: 700 12px var(--f-mono); font-style: normal; }
.h2-stages li.d { color: var(--muted); } .h2-stages li.d i { background: #2DD4BF; border-color: #2DD4BF; color: #042F2E; }
.h2-stages li.c { color: var(--text); border-color: #2DD4BF; background: rgba(45, 212, 191, .07); font-weight: 600; } .h2-stages li.c i { border-color: #2DD4BF; color: #5EEAD4; }
.h2-note { margin: 0; display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 14px; }
.h2-note svg { color: #2DD4BF; }
.h2-pbody { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--s6); align-items: start; }
.h2-doc { padding: 26px 30px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-qbox { position: sticky; top: 92px; display: grid; gap: 12px; }
.h2-qbox h2 { display: flex; gap: 8px; align-items: center; margin: 8px 0 0; font-size: 13px !important; color: var(--faint); letter-spacing: .06em; text-transform: uppercase; }
.h2-qbox h2 em { font-style: normal; padding: 0 8px; border-radius: 10px; background: var(--warn); color: #1F1300; }
.h2-q { display: grid; gap: 8px; padding: 14px; border-radius: var(--r3); background: var(--card); border: 1px solid color-mix(in srgb, var(--warn) 35%, var(--line)); }
.h2-q p { margin: 0; font-weight: 550; line-height: 1.5; }
.h2-q textarea { width: 100%; box-sizing: border-box; }
.h2-q .btn { justify-self: end; }
.h2-qk { justify-self: start; padding: 1px 8px; border-radius: 6px; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: rgba(96, 165, 250, .15); color: #93C5FD; }
.h2-qk[data-k=dostarcz] { background: rgba(245, 181, 68, .15); color: #FCD34D; }
.h2-qa { list-style: none; padding: 0; display: grid; gap: 8px; font-size: 13.5px; }
.h2-qa li { display: grid; gap: 2px; } .h2-qa span { color: var(--muted); }
/* publikacje */
.h2-plist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.h2-plist li { border-radius: var(--r3); background: var(--card); border: 1px solid var(--line); }
.h2-plist li.pub { border-color: color-mix(in srgb, #F472B6 40%, var(--line)); }
.h2-plist form { padding: 14px 18px; display: grid; gap: 10px; }
.h2-pt { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 18px; align-items: center; }
.h2-pt .h2-sw { grid-row: 1 / 3; }
.h2-pt h3 { margin: 0; font-size: 16px !important; }
.h2-pt small { color: var(--faint); font-size: 12.5px; }
.h2-stars { grid-row: 1 / 3; grid-column: 3; display: flex; flex-direction: row-reverse; }
.h2-stars input { position: absolute; opacity: 0; }
.h2-stars span { font-size: 22px; color: var(--line3); cursor: pointer; padding: 0 1px; }
.h2-stars label:hover span, .h2-stars label:hover ~ label span, .h2-stars input:checked ~ span, .h2-stars label:has(input:checked) ~ label span { color: #F5B544; }
.h2-stars input:focus-visible + span { outline: 2px solid #F5B544; border-radius: 4px; }
.h2-plist details > summary { color: var(--muted); font-size: 13.5px; font-weight: 600; }
.h2-met { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin: 10px 0; }
.h2-met label { display: grid; gap: 4px; } .h2-met input { width: 100%; box-sizing: border-box; font-family: var(--f-mono); }
.h2-plist textarea { width: 100%; box-sizing: border-box; }
.h2-sw { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; }
.h2-sw input { position: absolute; opacity: 0; }
.h2-sw span { position: relative; width: 40px; height: 22px; flex: none; border-radius: 11px; background: var(--line3); transition: background .15s; }
.h2-sw span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; }
.h2-sw input:checked + span { background: #2DD4BF; }
.h2-sw input:checked + span::after { transform: translateX(18px); }
.h2-sw input:focus-visible + span { outline: 2px solid #2DD4BF; outline-offset: 2px; }
.h2-sw b { font-weight: 500; font-size: 14.5px; }
.h2-plist .h2-sw b { font-size: 13px; color: var(--faint); }
/* moderacja, ustawienia */
.h2-dup { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.h2-dup li { display: grid; gap: 8px; padding: 12px; border-radius: var(--r2); background: var(--bg2); }
.h2-dup li > div:first-child { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: center; }
.h2-dup a { color: var(--text); text-decoration: none; font-weight: 550; } .h2-dup a:hover { color: #5EEAD4; }
.h2-dup span { color: var(--faint); font-size: 12px; text-align: center; }
.h2-dupa { display: flex; gap: 6px; }
.h2-sform { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: var(--s4); }
.h2-sform section { display: grid; gap: 12px; align-content: start; padding: 20px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.h2-sform h2 { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 16px !important; }
.h2-sform h2 svg { color: #2DD4BF; }
.h2-sform .btn.small { justify-self: start; }
.h2-sform .h2-fa { grid-column: 1 / -1; }
.h2-adv { padding: 20px; border-radius: var(--r4); border: 1px dashed var(--line2); }
.h2-adv h2 { margin: 0; font-size: 16px !important; } .h2-adv p { color: var(--muted); margin: 6px 0 12px; }
.h2-advl { display: flex; flex-wrap: wrap; gap: 8px; }
.h2-advl a { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 12px; border-radius: var(--r2); background: var(--card); border: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: 14px; }
.h2-advl a:hover { border-color: #2DD4BF; }
@media (max-width: 1100px) { .h2-cols { grid-template-columns: 1fr 1fr; } .h2-cols .wide { grid-column: 1 / -1; } .h2-cbody, .h2-pbody { grid-template-columns: 1fr; } .h2-acts, .h2-qbox { position: static; } .h2-met { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) { .h2-hero { grid-template-columns: 1fr; padding: 20px; } .h2-heroA { display: none; } .h2-cols { grid-template-columns: 1fr; } .h2-olist a { grid-template-columns: 36px minmax(0, 1fr); } .h2-olist .h2-st, .h2-oc { grid-column: 2; justify-self: start; } .h2-stages { grid-template-columns: 1fr; } .h2-kpick { grid-template-columns: 1fr; } .h2-pt { grid-template-columns: auto 1fr; } .h2-stars { grid-column: 1 / -1; grid-row: auto; justify-content: flex-end; } .h2-met { grid-template-columns: 1fr 1fr; } .h2-row { grid-template-columns: 1fr; } }

/* =====================================================================================
   1.54 — CENTRUM DOWODZENIA (uproszczone, własne ilustracje)
   ===================================================================================== */
.oh2 { display: grid; gap: var(--s6); padding: var(--s2) 0 var(--s7); max-width: 1240px; margin: 0 auto; }
.oh2-top { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(260px, 380px); gap: var(--s5); align-items: center; }
.oh2-eye { width: 84px; height: 84px; border-radius: 50%; box-shadow: 0 0 0 6px #fff, 0 0 0 7px var(--line), 0 18px 36px -18px rgba(8, 60, 80, .6); animation: ohb 7s ease-in-out infinite; }
.oh2-top h1 { margin: 0; font: 700 clamp(30px, 3vw, 36px)/1.12 var(--f-disp) !important; letter-spacing: -.025em; color: #0E1726; }
.oh2-top h1 span { color: #0E7490; }
.oh2-ctx { margin: 8px 0 0; color: var(--muted); font-size: 16px; }
.oh2-voice .voice { color: var(--muted); font-size: 14px; padding: 12px 16px; border-radius: var(--r3); background: #fff; border: 1px solid var(--line); }
.oh2-voice .voice b { color: #0E7490; }
.oh2-main { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--s5); align-items: stretch; }
.oh2 .oh-focus.focus { min-height: 260px; }
.oh2-now { padding: 22px 24px; border-radius: var(--r4); background: #fff; border: 1px solid var(--line); display: grid; align-content: start; gap: 6px; }
.oh2-now h2 { margin: 0 0 4px; font: 700 20px var(--f-disp) !important; color: #0E1726; }
.oh2-sub { margin: 10px 0 2px; display: flex; gap: 8px; align-items: center; color: var(--faint); font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; }
.oh2-sub em { font-style: normal; padding: 0 7px; border-radius: 9px; background: #EF4444; color: #fff; font-size: 11px; }
.oh2-sub em:empty { display: none; }
.oh2-now .o2-att a:hover { background: #F3F6F9; }
.oh2-hk { display: flex; align-items: center; gap: 8px; margin-top: 6px; padding: 10px 12px; border-radius: var(--r2); background: #ECFEFF; color: #0E7490; font-weight: 600; font-size: 14px; text-decoration: none; }
.oh2-proc { list-style: none; margin: 0; padding: 0; }
.oh2-proc a { display: grid; grid-template-columns: 10px minmax(0, 1fr) auto; gap: 12px; align-items: center; min-height: 40px; color: var(--text); text-decoration: none; }
.oh2-proc i { width: 8px; height: 8px; border-radius: 50%; background: #22C55E; } .oh2-proc i.run { background: #0EA5E9; animation: ohrun 1.6s infinite; } .oh2-proc i.bad { background: #EF4444; }
.oh2-proc b { font-weight: 550; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.oh2-proc span { color: var(--muted); font-size: 13px; font-family: var(--f-mono); }
.oh2-spaces { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s4); }
.oh .br.oh2-sp, .oh2 .br.oh2-sp { display: grid; justify-items: start; align-content: start; gap: 2px; min-height: 0; padding: 18px 20px 20px; border-radius: var(--r4); background: #fff; border: 1px solid var(--line); box-shadow: 0 1px 2px rgba(14, 23, 38, .04); color: #0E1726; text-decoration: none; transition: transform .2s, box-shadow .2s, border-color .2s; }
.oh2 .br.oh2-sp::before, .oh2 .br.oh2-sp::after { display: none; }
.oh2 .br.oh2-sp img { width: 100%; max-width: 220px; height: 120px; object-fit: contain; justify-self: center; margin: -4px 0 6px; transition: transform .3s ease; }
.oh2 .br.oh2-sp b { font: 650 19px var(--f-disp); color: #0E1726; }
.oh2 .br.oh2-sp small { color: var(--muted); font-size: 13.5px; }
.oh2 .br.oh2-sp:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px rgba(14, 23, 38, .5); border-color: var(--line2); }
.oh2 .br.oh2-sp:hover img { transform: translateY(-4px) scale(1.03); }
.oh2-more { display: flex; flex-wrap: wrap; gap: 8px; }
.oh2 .br.oh2-ln { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); box-shadow: none; color: var(--text); font-size: 14px; font-weight: 550; text-decoration: none; }
.oh2 .br.oh2-ln::before, .oh2 .br.oh2-ln::after { display: none; }
.oh2 .br.oh2-ln svg { color: #0E7490; }
.oh2 .br.oh2-ln:hover { border-color: #0E7490; transform: none; }
.oh2-log > summary { color: var(--muted); font-size: 14px; font-weight: 600; }
.oh2-log .flog { margin-top: 10px; }
@media (max-width: 1000px) { .oh2-top { grid-template-columns: auto 1fr; } .oh2-voice { grid-column: 1 / -1; } .oh2-main { grid-template-columns: 1fr; } .oh2-spaces { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .oh2-top { grid-template-columns: 1fr; } .oh2-eye { width: 64px; height: 64px; } .oh2-spaces { grid-template-columns: 1fr 1fr; gap: 10px; } .oh2 .br.oh2-sp { padding: 12px; } .oh2 .br.oh2-sp img { height: 80px; } .oh2 .br.oh2-sp b { font-size: 16px; } }
body[data-mod=materialy] .sd-top { display: none; }
body[data-mod=materialy] #sdb { margin-top: 0; }

/* =====================================================================================
   1.55 — SCENY 3D, NAWIGACJA (wyraźna pozycja), CENTRUM DOWODZENIA (ciemne, 3D)
   ===================================================================================== */
[data-3d] { position: relative; }
[data-3d] > img { width: 100%; height: 100%; object-fit: contain; transition: opacity .3s; }
[data-3d].o3d-on > img { opacity: 0; position: absolute; inset: 0; pointer-events: none; }
.o3d-cv { position: absolute; inset: 0; width: 100% !important; height: 100% !important; display: block; }
/* menu: aktywna pozycja wyraźnie */
.o2-mod.on { background: color-mix(in srgb, var(--wa) 18%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--wa); }
.o2-mod.on span { font-weight: 650; }
.o2-ws.cur > .o2-wsh { background: color-mix(in srgb, var(--wa) 14%, transparent); }
.o2-ws:not(.cur) > .o2-wsh .o2-chev { opacity: .25; }
.o2-ctx > b { color: var(--wa, var(--text)); }
/* Centrum */
.oh3 { display: grid; gap: var(--s5); padding: 0 0 var(--s7); max-width: 1320px; margin: 0 auto; }
.oh3-hero { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 420px); align-items: center; gap: var(--s5); min-height: 340px; padding: 36px 40px; border-radius: 28px; overflow: hidden; isolation: isolate;
  background: radial-gradient(600px 400px at 85% 50%, rgba(34, 211, 238, .22), transparent 65%), radial-gradient(500px 300px at 10% 110%, rgba(167, 139, 250, .18), transparent 70%), linear-gradient(135deg, #0B1E2B 0%, #0A1320 55%, #0B0F1A 100%); border: 1px solid #17324A; box-shadow: 0 40px 80px -50px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .05); }
.oh3-hero::before { content: ''; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(103, 232, 249, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 232, 249, .05) 1px, transparent 1px); background-size: 44px 44px; mask-image: radial-gradient(70% 90% at 80% 50%, #000, transparent); }
.oh3-date { margin: 0 0 8px; color: #7FB3C9; font-size: 14px; font-weight: 500; }
.oh3-date::first-letter { text-transform: uppercase; }
.oh3-hero h1 { margin: 0; font: 700 clamp(34px, 3.6vw, 48px)/1.05 var(--f-disp) !important; letter-spacing: -.03em; color: #fff; }
.oh3-hero h1 span { background: linear-gradient(90deg, #67E8F9, #A78BFA); -webkit-background-clip: text; background-clip: text; color: transparent; }
.oh3-ctx { margin: 12px 0 0; color: #A9C2D2; font-size: 16.5px; max-width: 54ch; }
.oh3-kpi { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--s5); }
.oh3-kpi a { display: grid; min-width: 120px; padding: 12px 16px; border-radius: 16px; text-decoration: none; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .08); backdrop-filter: blur(6px); transition: border-color .15s, transform .15s; }
.oh3-kpi a:hover { border-color: rgba(103, 232, 249, .5); transform: translateY(-2px); }
.oh3-kpi b { font: 700 26px/1 var(--f-disp); color: #fff; }
.oh3-kpi span { margin-top: 4px; color: #8FB0C3; font-size: 13px; }
.oh3-voice { margin-top: var(--s4); max-width: 60ch; }
.oh3-voice .voice { color: #A9C2D2; font-size: 14.5px; }
.oh3-voice .voice b { color: #67E8F9; }
.oh3-core { width: 100%; aspect-ratio: 1; max-width: 400px; justify-self: center; }
.oh3-core > img { border-radius: 50%; }
.oh3-row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: var(--s5); }
.oh .oh3-focus.focus { position: relative; overflow: hidden; min-height: 250px; background: linear-gradient(150deg, #13263A 0%, #0E1828 70%); border: 1px solid #1F3A55; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .9); }
.oh .oh3-focus.focus::after { content: ''; display: block; position: absolute; right: -60px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; background: radial-gradient(circle, rgba(34, 211, 238, .18), transparent 70%); pointer-events: none; }
.oh3-focus .oh-k { display: inline-flex; align-items: center; gap: 6px; }
.oh3-focus .btn { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .12); color: #E6F1F7; box-shadow: none; }
.oh3-focus .btn:hover { background: rgba(255, 255, 255, .12); }
.oh3-focus .btn.primary { background: #22D3EE; color: #04151C; border-color: transparent; }
.oh3-focus .btn.ghost { background: transparent; border-color: transparent; color: #9DB4C3; }
.oh3-now { padding: 22px 24px; border-radius: var(--r4); background: var(--card); border: 1px solid var(--line); }
.oh3-now h2 { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font: 700 19px var(--f-disp) !important; }
.oh3-now h2 svg { color: #F5B544; }
.oh3 .oh2-sub { color: var(--faint); }
.oh3 .oh2-proc a { color: var(--text); }
.oh3 .oh2-proc span { color: var(--muted); }
.oh3-h { margin: var(--s3) 0 0; font: 700 22px var(--f-disp) !important; }
.oh3-spaces { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--s4); }
.oh .br.oh3-sp { position: relative; display: grid; grid-template-rows: 170px auto; align-content: start; gap: 0; min-height: 0; padding: 0; border-radius: 22px; overflow: hidden; text-decoration: none; color: var(--text); isolation: isolate;
  background: radial-gradient(260px 180px at 50% 30%, color-mix(in srgb, var(--c) 26%, transparent), transparent 70%), linear-gradient(180deg, #141C28, #0F151F); border: 1px solid color-mix(in srgb, var(--c) 22%, #223044); box-shadow: 0 24px 50px -36px rgba(0, 0, 0, .9); transition: transform .25s, box-shadow .25s, border-color .25s; }
.oh .br.oh3-sp.big { grid-column: span 2; grid-template-rows: 210px auto; }
.oh .br.oh3-sp::before, .oh .br.oh3-sp::after { display: none; }
.oh .br.oh3-sp:hover { transform: translateY(-5px); border-color: color-mix(in srgb, var(--c) 60%, #223044); box-shadow: 0 34px 60px -34px color-mix(in srgb, var(--c) 55%, #000); }
.oh3-art { display: block; width: 100%; height: 100%; }
.oh3-art > img { padding: 18px; box-sizing: border-box; }
.oh3-st { display: grid; gap: 3px; padding: 4px 20px 20px; }
.oh .br.oh3-sp b { font: 700 20px var(--f-disp); color: #fff; }
.oh .br.oh3-sp small { color: var(--muted); font-size: 13.5px; }
.oh3-go { position: absolute; right: 16px; bottom: 18px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--c) 20%, transparent); color: var(--c); transition: transform .2s; }
.oh3-sp:hover .oh3-go { transform: translateX(3px); }
.oh3 .br.oh2-ln { background: var(--card); border-color: var(--line); color: var(--text); }
.oh3 .br.oh2-ln svg { color: var(--mc); }
.oh3 .oh2-log > summary { color: var(--muted); }
.oh3 .flog .fl { background: var(--card); border-color: var(--line); color: var(--muted); }
@media (max-width: 1100px) { .oh3-spaces { grid-template-columns: repeat(2, minmax(0, 1fr)); } .oh3-row { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .oh3-hero { grid-template-columns: 1fr; padding: 24px 20px; } .oh3-core { max-width: 220px; grid-row: 1; } .oh .br.oh3-sp.big { grid-column: auto; } .oh .br.oh3-sp, .oh .br.oh3-sp.big { grid-template-rows: 130px auto; } .oh3-kpi a { min-width: 0; flex: 1; } }
.oh .br.oh2-ln { display: inline-flex; align-items: center; height: auto; min-height: 40px; padding: 0 16px; border-radius: 999px; animation: none; opacity: 1; }
.oh .br.oh2-ln::before, .oh .br.oh2-ln::after { display: none; }
.oh .br.oh2-ln span, .oh .br.oh2-ln b { display: none; }

/* =====================================================================================
   1.55 — MATERIAŁY: czytnik jako dokument (kartka), wyraźniejsza lista
   ===================================================================================== */
.lr { grid-template-columns: 210px minmax(0, 860px) 300px; justify-content: center; }
.lr-paper { position: relative; padding: 64px 72px 40px; border-radius: 6px; background: #FBFAF7; color: #1F2328; box-shadow: 0 1px 0 rgba(255, 255, 255, .7) inset, 0 2px 4px rgba(0, 0, 0, .25), 0 30px 70px -30px rgba(0, 0, 0, .85); }
.lr-paper::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 6px; border-radius: 6px 6px 0 0; background: var(--c); }
.lr-paper header { border-bottom: 2px solid #1F2328; padding-bottom: 22px; margin-bottom: 30px; }
.lr-paper .lr-k { color: color-mix(in srgb, var(--c) 70%, #1F2328); }
.lr-paper h1 { color: #111418 !important; font-size: clamp(30px, 2.8vw, 40px) !important; }
.lr-paper .lr-m { color: #57606A; }
.lr-paper .lr-lead { color: #3A4048; font: italic 19px/1.6 Newsreader, Georgia, serif; border-left: 3px solid var(--c); padding-left: 16px; }
.lr-paper-md { max-width: none; color: #24292F; font: 17.5px/1.8 Newsreader, Georgia, 'Times New Roman', serif; }
.lr-paper-md h2 { margin: 1.9em 0 .7em; padding-bottom: .3em; border-bottom: 1px solid #D0D7DE; font: 700 24px/1.3 var(--f-ui); color: #111418; letter-spacing: -.01em; }
.lr-paper-md h3 { margin: 1.5em 0 .5em; font: 700 19px/1.35 var(--f-ui); color: #1F2328; }
.lr-paper-md h4 { color: #57606A; }
.lr-paper-md p { margin: 0 0 1.05em; text-align: justify; hyphens: auto; }
.lr-paper-md strong { color: #111418; font-weight: 700; }
.lr-paper-md li::marker { color: color-mix(in srgb, var(--c) 70%, #1F2328); font-weight: 700; }
.lr-paper-md ul, .lr-paper-md ol { padding-left: 1.5em; }
.lr-paper-md blockquote { color: #3A4048; border-left-color: var(--c); background: #F2EFE8; padding: 12px 18px; border-radius: 0 6px 6px 0; }
.lr-paper-md code, .lr-paper-md pre { background: #F0EDE6; border-color: #E3DED3; color: #24292F; }
.lr-paper-md .md-tw { border-color: #D0D7DE; }
.lr-paper-md th { background: #F0EDE6; color: #24292F; }
.lr-paper-md td, .lr-paper-md th { border-color: #E1E4E8; font-family: var(--f-ui); font-size: 14.5px; }
.lr-paper-md hr { border-top-color: #D0D7DE; }
.lr-paper-md a { color: #0969DA; }
.lr-pf { display: flex; justify-content: space-between; gap: 12px; margin-top: 48px; padding-top: 14px; border-top: 1px solid #D0D7DE; color: #8C959F; font: 12px var(--f-mono); }
.lr-toc ol { border-left-color: var(--line2); }
.lr-toc li a { font-size: 13.5px; }
/* lista materiałów: osobne karty */
.lb-list { border-top: 0; display: grid; gap: 10px; }
.lb-list .lb-row { padding: 18px 20px; border: 1px solid var(--line); border-left: 4px solid var(--c); border-radius: 14px; background: var(--card); }
.lb-list .lb-row:hover { background: var(--card2); border-color: color-mix(in srgb, var(--c) 40%, var(--line)); border-left-color: var(--c); }
.lb-lt b { font: 650 18px/1.35 var(--f-disp); }
@media (max-width: 1200px) { .lr-paper { padding: 44px 40px 30px; } }
@media (max-width: 760px) { .lr-paper { padding: 28px 20px 20px; } .lr-paper-md { font-size: 16.5px; } .lr-paper-md p { text-align: left; } }
/* 1.55 — szybkie akcje na liście produkcji + dialog Haiku */
.pv-pwrap{display:flex;flex-direction:column;gap:0}
.pv-quick{display:flex;gap:12px;align-items:center;padding:8px 16px 12px 176px;flex-wrap:wrap}
.pv-pubt{display:inline-flex;gap:8px;align-items:center;font-size:13px;font-weight:600;padding:6px 12px;border-radius:999px;background:rgba(80,200,140,.1);cursor:pointer}
.pv-pubt:has(input:checked){background:#1f9d63;color:#fff}
.pv-quick select{font-size:13px;padding:6px 10px;border-radius:8px;max-width:240px}
@media(max-width:700px){.pv-quick{padding-left:16px}}
.hk-dlg .hk-top{display:flex;gap:16px;align-items:center;margin-bottom:16px}
.hk-dlg .hk-3d{width:120px;height:96px;flex:none;border-radius:16px;background:radial-gradient(circle at 40% 30%,#2b3a5c,#0d1424);overflow:hidden;position:relative}
.hk-dlg .hk-3d canvas{width:100%!important;height:100%!important}
.hk-chips{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 16px}
.hk-chips label{display:inline-flex;align-items:center;gap:6px;padding:8px 14px;border-radius:999px;border:1px solid rgba(120,140,180,.35);font-size:13px;cursor:pointer;transition:.15s}
.hk-chips input{position:absolute;opacity:0;pointer-events:none}
.hk-chips label:has(input:checked){background:#3b5bdb;border-color:#3b5bdb;color:#fff}
.pv-sempty{border:1px dashed rgba(240,180,80,.45);background:rgba(240,180,80,.05)}
.pv-sempty .pv-sbody{padding:16px}
.pv-sempty p{margin:8px 0 12px;font-size:14px}
