@font-face { font-family: 'Inter'; src: url('/fonts/Inter.ttf') format('truetype'); font-weight: 100 900; font-display: swap; }
@font-face { font-family: 'Cinzel'; src: url('/fonts/Cinzel.ttf') format('truetype'); font-weight: 400 900; font-display: swap; }

:root, :root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #000; --bg2: #0b0b0c; --card: #111113; --card2: #17171a; --line: rgba(212,175,55,.16); --line2: rgba(255,255,255,.07);
  --gold: #D4AF37; --gold-l: #F3DC8A; --gold-d: #9E7A22; --gold-t: #D4AF37;
  --gold-grad: linear-gradient(135deg, #FFF1B8 0%, #E9C766 30%, #D4AF37 55%, #A8842A 80%, #E7C96A 100%);
  --gold-text-grad: var(--gold-grad);
  --text: #F2EEE3; --muted: #9A958A; --muted2: #858075;
  --green: #22C55E; --green-d: rgba(34,197,94,.14); --red: #EF4444; --red-d: rgba(239,68,68,.14); --orange: #F97316; --yellow: #FACC15;
  --green-t: #22C55E; --red-t: #EF4444; --warn-t: #FACC15;
  --eff0: #22C55E; --eff1: #A3D63B; --eff2: #FACC15; --eff3: #F97316; --eff4: #EF4444;
  --surface: #0d0d0f; --surface2: #141417; --btn-dark: #1b1b1f; --border: #2a2a2e; --border2: #232327; --box-border: #4a4a50;
  --topbar-bg: linear-gradient(to bottom, rgba(0,0,0,.96), rgba(0,0,0,.86)); --nav-bg: rgba(8,8,9,.94); --room-head-bg: rgba(0,0,0,.95);
  --overlay: rgba(0,0,0,.72); --shadow: 0 10px 30px rgba(0,0,0,.6);
  --chip-bg: #17171a; --chip-present-t: #bbf7d0; --chip-leave-t: #bfdbfe;
  --pen-nm: #cfcabd; --pen-am: #c25b5b; --pen-on-nm: #fff; --pen-on-am: #fca5a5; --pres-on-t: #bbf7d0; --ck-bg: #26262a;
  --bubble: #1a1a1d; --bubble-border: #242428; --react-bg: #1d1d20; --react-border: #2c2c31; --composer-bg: #070708;
  --tick: #55555c; --slider-mask: rgba(12,12,14,.72); --effort-bg: #0b0b0d; --kpi-bg: #0c0c0e; --bar-bg: #1d1d20;
  --st-pending-t: #fde68a; --st-ok-t: #86efac; --st-bad-t: #fca5a5; --ann-p: #e9e3d0; --eom-bg: #0d0c09; --auth-bg: #000;
  --pin-bg: #101012; --pin-active: #1c1a12; --dot-off: #3a3a3a; --dot-ring: #111; --hover: #0f0f11; --daysep-bg: #121214;
  --radius: 16px; --nav-h: 64px;
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-t: env(safe-area-inset-top, 0px);
  --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
}
/* ---------- Styl dzienny ---------- */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #faf7f0; --bg2: #f3eee2; --card: #ffffff; --card2: #ffffff; --line: rgba(168,132,31,.30); --line2: rgba(40,32,10,.10);
  --gold: #a8841f; --gold-l: #7d5f12; --gold-d: #a8841f; --gold-t: #7d5f12;
  --gold-grad: linear-gradient(135deg, #F7E3A1 0%, #E6C45E 35%, #D4AF37 60%, #C49A2C 100%);
  --gold-text-grad: linear-gradient(135deg, #8a6a14 0%, #a8841f 50%, #7a5c10 100%);
  --text: #1c1a16; --muted: #625c50; --muted2: #6e685c;
  --green-t: #15803d; --red-t: #c62828; --warn-t: #854d0e;
  --eff0: #15803d; --eff1: #4d7c0f; --eff2: #a16207; --eff3: #c2410c; --eff4: #b91c1c;
  --surface: #f7f3ea; --surface2: #ffffff; --btn-dark: #ffffff; --border: #ddd5c3; --border2: #e4ddcd; --box-border: #a39b8a;
  --topbar-bg: linear-gradient(to bottom, rgba(250,247,240,.97), rgba(250,247,240,.9)); --nav-bg: rgba(255,255,255,.96); --room-head-bg: rgba(255,255,255,.97);
  --overlay: rgba(28,26,22,.45); --shadow: 0 10px 30px rgba(60,45,10,.15);
  --chip-bg: #f3eee2; --chip-present-t: #166534; --chip-leave-t: #1e40af;
  --pen-nm: #3a362e; --pen-am: #b42318; --pen-on-nm: #7f1d1d; --pen-on-am: #b42318; --pres-on-t: #166534; --ck-bg: #e7e1d3;
  --bubble: #ffffff; --bubble-border: #e4ddcd; --react-bg: #ffffff; --react-border: #e4ddcd; --composer-bg: #ffffff;
  --tick: #b3ab99; --slider-mask: rgba(247,243,234,.74); --effort-bg: #fbf9f4; --kpi-bg: #faf7f0; --bar-bg: #ece6d8;
  --st-pending-t: #854d0e; --st-ok-t: #166534; --st-bad-t: #991b1b; --ann-p: #3a362e; --eom-bg: #fffaf0; --auth-bg: #faf7f0;
  --pin-bg: #ffffff; --pin-active: #f6ecd0; --dot-off: #c9c2b2; --dot-ring: #fff; --hover: #f7f3ea; --daysep-bg: #ffffff;
}
:root[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(60,45,10,.06), 0 4px 14px rgba(60,45,10,.05); }
:root[data-theme="light"] .auth { background: radial-gradient(120% 60% at 50% 0%, rgba(212,175,55,.16), transparent 60%), var(--auth-bg); }
:root[data-theme="light"] .pen.on { background: #fdecec; border-color: rgba(220,38,38,.45); }
:root[data-theme="light"] .chip.present { background: #e8f7ee; border-color: rgba(21,128,61,.3); }
:root[data-theme="light"] .pres.on { background: #e8f7ee; border-color: rgba(21,128,61,.35); }
:root[data-theme="light"] .chip.leave { background: #eaf1fe; }
:root[data-theme="light"] .msgs { background: radial-gradient(80% 50% at 50% 0%, rgba(212,175,55,.10), transparent 70%); }
:root[data-theme="light"] .ann-banner { background: linear-gradient(135deg, rgba(212,175,55,.18), rgba(212,175,55,.06)); }
.logo-light { display: none !important; }
:root[data-theme="light"] .logo-light { display: block !important; }
:root[data-theme="light"] .logo-dark { display: none !important; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; transition: background-color .2s; background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, sans-serif; font-size: 15px; -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; min-height: 100dvh; }
button, input, textarea, select { font: inherit; color: inherit; }
/* iOS: brak auto-zoomu przy fokusie (min. 16px) */
input, textarea, select, .input { font-size: 16px; }
a { color: var(--gold-l); }
.gold-text { background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.cinzel { font-family: 'Cinzel', serif; letter-spacing: .04em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.hidden { display: none !important; }
.splash { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; }
.splash img { width: 220px; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .55; } }

/* ---------- layout ---------- */
.shell { min-height: 100vh; min-height: 100dvh; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 12px); padding-left: var(--safe-l); padding-right: var(--safe-r); }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) calc(16px + var(--safe-r)) 10px calc(16px + var(--safe-l));
  background: var(--topbar-bg); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.topbar .logo { height: 22px; display: block; }
.topbar .spacer { flex: 1; }
.role-pill { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; padding: 4px 8px; border-radius: 999px; border: 1px solid var(--gold); color: var(--gold-t); }
.role-pill.worker { border-color: var(--line2); color: var(--muted); }
.content { max-width: 760px; margin: 0 auto; padding: 14px 14px 0; }
.bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; justify-content: space-around; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: var(--nav-bg); backdrop-filter: blur(16px); padding-left: var(--safe-l); padding-right: var(--safe-r); border-top: 1px solid var(--line); }
.bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; text-decoration: none; color: var(--muted2); font-size: 10.5px; font-weight: 600; position: relative; }
.bottom-nav a svg { width: 23px; height: 23px; stroke: currentColor; }
.bottom-nav a.active { color: var(--gold-t); }
.bottom-nav a.active::before { content: ''; position: absolute; top: 0; width: 28px; height: 2px; border-radius: 2px; background: var(--gold-grad); }
.nav-badge { position: absolute; top: 7px; left: calc(50% + 6px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: #dc2626; color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; }

@media (min-width: 900px) {
  .shell { padding-bottom: 20px; padding-left: 230px; }
  .bottom-nav { top: 0; right: auto; width: 230px; height: 100dvh; flex-direction: column; justify-content: flex-start; gap: 4px; padding: 90px 14px 20px; border-top: 0; border-right: 1px solid var(--line); }
  .bottom-nav a { flex: 0; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 12px 14px; font-size: 14px; border-radius: 12px; }
  .bottom-nav a.active { background: rgba(212,175,55,.08); }
  .bottom-nav a.active::before { display: none; }
  .nav-badge { position: static; margin-left: auto; }
  .topbar { padding-left: 24px; }
}

/* ---------- common ---------- */
.card { background: linear-gradient(180deg, var(--card2), var(--card)); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; }
.card.flat { background: var(--card); }
.section-title { display: flex; align-items: center; justify-content: space-between; margin: 18px 2px 10px; font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-t); }
h1.page { font-family: 'Cinzel', serif; font-size: 22px; margin: 6px 2px 12px; font-weight: 700; }
.btn { text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font-weight: 700; cursor: pointer; transition: transform .08s, filter .2s; }
.btn:active { transform: scale(.97); }
.btn-gold { background: var(--gold-grad); color: #1a1405; box-shadow: 0 6px 24px rgba(212,175,55,.18); }
.btn-dark { background: var(--btn-dark); border: 1px solid var(--line); color: var(--gold-l); }
.btn-green { background: linear-gradient(135deg, #34d57a, #16a34a); color: #03140a; }
.btn-red { background: linear-gradient(135deg, #dc2626, #b91c1c); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border: 1px solid var(--line2); }
.btn-block { width: 100%; }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.icon-btn { width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface2); display: grid; place-items: center; cursor: pointer; color: var(--gold-l); flex-shrink: 0; }
.icon-btn svg { width: 20px; height: 20px; stroke: currentColor; }
.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 6px; font-weight: 600; letter-spacing: .02em; }
.input { width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 13px 14px; outline: none; transition: border-color .2s; }
.input:focus { border-color: var(--gold); }
.input.invalid { border-color: var(--red); }
.err { color: var(--red-t); font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.ok-msg { color: var(--green-t); font-size: 12.5px; margin-top: 6px; font-weight: 600; }
.row { display: flex; align-items: center; gap: 10px; }
.grow { flex: 1; min-width: 0; }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13.5px; color: #0b0b0b; flex-shrink: 0; position: relative; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar .dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--dot-off); border: 2px solid var(--dot-ring); }
.avatar .dot.on { background: var(--green); }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; font-size: 12px; background: var(--chip-bg); border: 1px solid var(--line2); white-space: nowrap; }
.chip.present { background: var(--green-d); border-color: rgba(34,197,94,.35); color: var(--chip-present-t); }
.chip.present::before { content: '✓'; color: var(--green-t); font-weight: 900; }
.chip.leave { background: rgba(59,130,246,.12); border-color: rgba(59,130,246,.35); color: var(--chip-leave-t); }
.badge-gold { display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; background: var(--gold-grad); color: #1a1405; font-size: 11px; font-weight: 800; }
.empty { text-align: center; color: var(--muted); padding: 28px 10px; }

/* ---------- toasts / modal ---------- */
#toasts { position: fixed; top: calc(12px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 100; display: flex; flex-direction: column; gap: 8px; width: min(92vw, 420px); pointer-events: none; }
.toast { background: var(--card2); border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 12px; padding: 11px 14px; box-shadow: var(--shadow); animation: tin .25s ease-out; pointer-events: auto; }
.toast.error { border-left-color: var(--red); }
.toast.penalty { border-left-color: var(--red); }
.toast.effort { border-left-color: var(--green); }
.toast b { display: block; font-size: 13.5px; margin-bottom: 2px; }
.toast span { font-size: 12.5px; color: var(--muted); }
@keyframes tin { from { opacity: 0; transform: translateY(-8px); } }
.modal-back { position: fixed; inset: 0; background: var(--overlay); z-index: 90; display: flex; align-items: flex-end; justify-content: center; backdrop-filter: blur(4px); }
.modal { width: min(100%, 520px); max-height: 90dvh; overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + var(--safe-b)); animation: up .22s ease-out; }
@media (min-width: 600px) { .modal-back { align-items: center; } .modal { border-radius: 20px; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }
.modal h3 { margin: 0 0 12px; font-family: 'Cinzel', serif; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.95); z-index: 95; display: grid; place-items: center; }
.lightbox img { max-width: 96vw; max-height: 90dvh; border-radius: 8px; }

/* ---------- auth ---------- */
.auth { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: calc(28px + var(--safe-t)) calc(22px + var(--safe-r)) calc(28px + var(--safe-b)) calc(22px + var(--safe-l));
  background: radial-gradient(120% 60% at 50% 0%, rgba(212,175,55,.13), transparent 60%), var(--auth-bg); }
.auth .logo-big { width: min(78vw, 320px); margin-bottom: 6px; }
.auth .tag { color: var(--muted); font-size: 12.5px; letter-spacing: .28em; text-transform: uppercase; margin-bottom: 28px; }
.auth-box { width: min(100%, 380px); }
.pin-dots { display: flex; justify-content: center; gap: 14px; margin: 14px 0 18px; }
.pin-dots i { width: 14px; height: 14px; border-radius: 50%; border: 1.5px solid var(--gold-d); }
.pin-dots i.f { background: var(--gold-grad); border-color: var(--gold); box-shadow: 0 0 12px rgba(212,175,55,.5); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.pinpad button { height: 62px; border-radius: 18px; background: var(--pin-bg); border: 1px solid var(--border2); font-size: 24px; font-weight: 600; cursor: pointer; }
.pinpad button:active { background: var(--pin-active); border-color: var(--gold); }
.pinpad button.fn { font-size: 13px; color: var(--muted); }
.bio-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 13px; border-radius: 14px; background: transparent; border: 1px solid var(--gold-d); color: var(--gold-l); font-weight: 700; cursor: pointer; }
.bio-btn svg { width: 24px; height: 24px; stroke: currentColor; }
.auth .switch { margin-top: 18px; text-align: center; color: var(--muted); font-size: 13.5px; }
.auth .switch a { font-weight: 700; cursor: pointer; }
.welcome { text-align: center; margin-bottom: 4px; }
.welcome b { font-size: 18px; }

/* ---------- announcements banner ---------- */
.ann-banner { border: 1px solid var(--gold); background: linear-gradient(135deg, rgba(212,175,55,.16), rgba(212,175,55,.04)); border-radius: 14px; padding: 12px 14px; margin-bottom: 12px; }
.ann-banner .t { font-weight: 800; color: var(--gold-l); display: flex; gap: 6px; align-items: center; }
.ann-banner p { margin: 6px 0 10px; font-size: 13.5px; color: var(--ann-p); white-space: pre-wrap; }

/* ---------- calendar ---------- */
.month-nav { display: flex; align-items: center; justify-content: space-between; margin: 4px 0 12px; }
.month-nav h2 { margin: 0; font-family: 'Cinzel', serif; font-size: 20px; text-transform: capitalize; }
.today-card { display: flex; align-items: center; gap: 12px; }
.check-big { width: 58px; height: 58px; border-radius: 18px; display: grid; place-items: center; flex-shrink: 0; border: 2px dashed var(--box-border); background: var(--surface); cursor: pointer; transition: all .2s; }
.check-big svg { width: 32px; height: 32px; stroke: var(--box-border); stroke-width: 3; }
.check-big.on { border: 2px solid var(--green); background: var(--green-d); box-shadow: 0 0 22px rgba(34,197,94,.3); }
.check-big.on svg { stroke: var(--green-t); }
.day-list { display: flex; flex-direction: column; gap: 8px; }
.day-row { display: flex; gap: 12px; padding: 9px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line2); cursor: pointer; text-decoration: none; color: inherit; }
.day-row.today { border-color: var(--gold); box-shadow: inset 0 0 0 1px rgba(212,175,55,.25); }
.day-row.weekend { background: var(--surface); }
.day-row.weekend .d, .day-row.weekend .d span { color: var(--muted); }
.day-row .d { width: 42px; text-align: center; flex-shrink: 0; }
.day-row .d b { display: block; font-size: 19px; font-family: 'Cinzel', serif; }
.day-row .d span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.day-row.today .d b { color: var(--gold-t); }
.day-row .names { flex: 1; display: flex; flex-wrap: wrap; gap: 5px; align-content: center; min-width: 0; }
.day-row .meta { display: flex; flex-direction: column; align-items: flex-end; justify-content: center; gap: 4px; font-size: 11.5px; font-weight: 700; }
.mine-check { color: var(--green-t); font-size: 18px; }
.pen-amt { color: var(--red-t); }

/* ---------- day view ---------- */
.day-head { display: flex; align-items: center; gap: 8px; margin: 2px 0 10px; }
.day-head h2 { margin: 0; font-size: 18px; font-family: 'Cinzel', serif; text-align: center; flex: 1; line-height: 1.15; }
.day-head h2 small { display: block; font-family: 'Inter'; font-size: 11px; color: var(--muted); letter-spacing: .14em; text-transform: uppercase; margin-top: 3px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 10px; }
.stat { background: var(--card); border: 1px solid var(--line2); border-radius: 12px; padding: 8px 10px; }
.stat b { display: block; font-size: 16px; }
.stat span { font-size: 10.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.present-strip { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.emp { padding: 12px; }
.emp-head { display: flex; align-items: center; gap: 10px; }
.emp-head .n { font-weight: 700; font-size: 15px; }
.emp-head .s { font-size: 11.5px; color: var(--muted); margin-top: 1px; }
.pres { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; font-size: 12px; font-weight: 700; border: 1px solid var(--line2); background: var(--surface); color: var(--muted); cursor: default; }
.pres.on { background: var(--green-d); border-color: rgba(34,197,94,.4); color: var(--pres-on-t); }
.pres.on .ck { background: var(--green); color: #03140a; }
.pres .ck { width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center; background: var(--ck-bg); font-size: 12px; font-weight: 900; }
.pres.clickable { cursor: pointer; }
.pen-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 11px; }
.pen { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border2); font-size: 11.5px; line-height: 1.2; cursor: default; text-align: left; position: relative; min-height: 40px; }
.pen .box { width: 18px; height: 18px; border-radius: 5px; border: 1.5px solid var(--box-border); flex-shrink: 0; display: grid; place-items: center; font-size: 12px; font-weight: 900; }
.pen .tx { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.pen .nm { color: var(--pen-nm); font-weight: 600; }
.pen .am { color: var(--pen-am); font-weight: 800; white-space: nowrap; font-size: 10.5px; }
.pen.on { background: var(--red-d); border-color: rgba(239,68,68,.55); }
.pen.on .box { background: var(--red); border-color: var(--red); color: #fff; }
.pen.on .nm { color: var(--pen-on-nm); }
.pen.on .am { color: var(--pen-on-am); }
.pen.can { cursor: pointer; }
.pen .ev { position: absolute; top: -6px; right: -4px; width: 20px; height: 20px; border-radius: 50%; background: var(--surface2); border: 1px solid var(--gold-d); display: grid; place-items: center; font-size: 10px; cursor: pointer; }
.pen.wide { grid-column: span 2; }
.effort { margin-top: 12px; padding: 10px 10px 4px; border-radius: 12px; background: var(--effort-bg); border: 1px solid var(--line2); }
.effort-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.effort-top .l { font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-t); }
.effort-val { font-size: 12px; font-weight: 800; padding: 3px 9px; border-radius: 999px; color: #0b0b0b; }
.slider-wrap { position: relative; height: 34px; }
.slider-track { position: absolute; left: 12px; right: 12px; top: 12px; height: 10px; border-radius: 6px; background: linear-gradient(90deg, #22C55E 0%, #A3D63B 25%, #FACC15 50%, #F97316 75%, #EF4444 100%); }
.slider-mask { position: absolute; right: 11px; top: 11px; height: 12px; border-radius: 0 6px 6px 0; background: var(--slider-mask); transition: width .15s; }
.slider-ticks { position: absolute; left: 12px; right: 12px; top: 26px; height: 8px; }
.slider-ticks i { position: absolute; width: 2px; height: 7px; background: var(--tick); transform: translateX(-1px); border-radius: 1px; }
.slider-ticks i.hit { background: var(--gold); }
input.range { -webkit-appearance: none; appearance: none; position: absolute; inset: 0; width: 100%; height: 34px; margin: 0; background: transparent; cursor: pointer; }
input.range:disabled { cursor: not-allowed; }
input.range::-webkit-slider-runnable-track { height: 34px; background: transparent; }
input.range::-moz-range-track { height: 34px; background: transparent; }
input.range::-webkit-slider-thumb { -webkit-appearance: none; width: 24px; height: 24px; margin-top: 5px; border-radius: 50%; background: var(--thumb, #22C55E); border: 3px solid #0b0b0b; box-shadow: 0 0 0 2px var(--thumb, #22C55E), 0 0 16px var(--thumb, #22C55E); }
input.range::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--thumb, #22C55E); border: 3px solid #0b0b0b; box-shadow: 0 0 0 2px var(--thumb, #22C55E); }
.slider-labels { display: flex; justify-content: space-between; font-size: 10px; color: var(--muted2); font-weight: 700; padding: 2px 3px 4px; }
.slider-labels span.hit { color: var(--text); }
.lock { font-size: 10.5px; color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.emp-foot { display: flex; justify-content: space-between; margin-top: 9px; font-size: 12px; color: var(--muted); }
.emp-foot b.plus { color: var(--green-t); }
.emp-foot b.minus { color: var(--red-t); }

/* ---------- chat ---------- */
.chat-list .item { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 14px; text-decoration: none; color: inherit; border: 1px solid transparent; }
.chat-list .item:hover { background: var(--hover); }
.chat-list .item + .item { border-top-color: var(--line2); border-radius: 0; }
.chat-list .t { font-weight: 700; display: flex; justify-content: space-between; gap: 8px; }
.chat-list .t time { font-size: 11px; color: var(--muted); font-weight: 500; }
.chat-list .p { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; justify-content: space-between; gap: 8px; }
.unread { background: var(--gold-grad); color: #111; font-size: 11px; font-weight: 800; min-width: 20px; height: 20px; border-radius: 10px; display: grid; place-items: center; padding: 0 6px; flex-shrink: 0; }
.group-av { background: var(--gold-grad); }
.room { position: fixed; top: var(--vvt, 0px); left: 0; right: 0; height: var(--vvh, 100vh); display: flex; flex-direction: column; background: var(--bg); z-index: 40; padding-left: var(--safe-l); padding-right: var(--safe-r); }
@media (min-width: 900px) { .room { left: 230px; } }
.room-head { display: flex; align-items: center; gap: 10px; padding: calc(10px + var(--safe-t)) 12px 10px; border-bottom: 1px solid var(--line); background: var(--room-head-bg); }
.room-head .t { font-weight: 700; }
.room-head .s { font-size: 11.5px; color: var(--muted); }
.room-head .s.on { color: var(--green-t); }
.msgs { flex: 1; overflow-y: auto; padding: 14px 12px 6px; display: flex; flex-direction: column; gap: 3px;
  background: radial-gradient(80% 50% at 50% 0%, rgba(212,175,55,.06), transparent 70%); }
.day-sep { align-self: center; font-size: 11px; color: var(--muted); background: var(--daysep-bg); border: 1px solid var(--line2); padding: 3px 10px; border-radius: 999px; margin: 10px 0; }
.msg { display: flex; gap: 8px; max-width: 84%; align-items: flex-end; }
.msg.me { align-self: flex-end; flex-direction: row-reverse; }
.msg .avatar { width: 26px; height: 26px; font-size: 10px; }
.bubble { padding: 8px 11px 6px; border-radius: 16px; background: var(--bubble); border: 1px solid var(--bubble-border); position: relative; word-wrap: break-word; overflow-wrap: anywhere; cursor: pointer; }
.msg.me .bubble { background: linear-gradient(135deg, #F2D985, #D4AF37 60%, #B8922E); color: #17120a; border: 0; border-bottom-right-radius: 5px; }
.msg:not(.me) .bubble { border-bottom-left-radius: 5px; }
.bubble .who { font-size: 11px; font-weight: 800; margin-bottom: 2px; }
.bubble .who { color: var(--uc-d, var(--gold-t)); }
:root[data-theme="light"] .bubble .who { color: var(--uc-l, var(--gold-t)); }
.bubble .txt { white-space: pre-wrap; font-size: 14.5px; line-height: 1.35; }
.bubble .tm { font-size: 10px; opacity: .6; text-align: right; margin-top: 2px; display: flex; gap: 4px; justify-content: flex-end; align-items: center; }
.bubble .tm .rd { font-weight: 900; letter-spacing: -2px; }
.msg.me .bubble .tm .rd.seen { color: #065f2a; opacity: 1; }
.bubble img.photo { display: block; max-width: 230px; max-height: 280px; border-radius: 11px; margin: 2px 0 4px; }
.bubble audio { width: 220px; height: 36px; }
.file-chip { display: flex; align-items: center; gap: 8px; text-decoration: none; color: inherit; font-weight: 600; font-size: 13px; }
.reacts { display: flex; gap: 3px; margin-top: -6px; position: relative; z-index: 1; }
.msg.me .reacts { justify-content: flex-end; }
.reacts span { background: var(--react-bg); border: 1px solid var(--react-border); border-radius: 999px; padding: 1px 6px; font-size: 12px; }
.msg-wrap { display: flex; flex-direction: column; }
.msg-wrap.me { align-items: flex-end; }
.seen-by { font-size: 10.5px; color: var(--muted); text-align: right; margin: 2px 4px 4px; }
.typing { font-size: 12px; color: var(--gold-t); padding: 2px 16px 4px; min-height: 20px; }
.composer { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px calc(8px + var(--safe-b)); border-top: 1px solid var(--line); background: var(--composer-bg); }
.composer textarea { flex: 1; resize: none; max-height: 120px; min-height: 42px; background: var(--surface); border: 1px solid var(--border); font-size: 16px; border-radius: 21px; padding: 10px 14px; outline: none; }
.composer textarea:focus { border-color: var(--gold-d); }
.send-btn { width: 42px; height: 42px; border-radius: 50%; border: 0; background: var(--gold-grad); display: grid; place-items: center; cursor: pointer; flex-shrink: 0; }
.send-btn svg { width: 20px; height: 20px; stroke: #1a1405; }
.send-btn.rec { background: var(--red); animation: pulse 1s infinite; }
.react-bar { position: fixed; z-index: 60; display: flex; gap: 4px; background: var(--card2); border: 1px solid var(--line); border-radius: 999px; padding: 6px 8px; box-shadow: var(--shadow); }
.react-bar button { background: none; border: 0; font-size: 22px; cursor: pointer; padding: 2px 4px; border-radius: 8px; }
.react-bar button:hover { background: var(--hover); }
.emoji-panel { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; padding: 8px 10px; background: var(--bg2); border-top: 1px solid var(--line2); max-height: 170px; overflow: auto; }
.emoji-panel button { background: none; border: 0; font-size: 22px; padding: 4px; cursor: pointer; }
.rec-bar { display: flex; align-items: center; gap: 10px; flex: 1; color: var(--red); font-weight: 700; padding: 0 8px; }

/* ---------- summary ---------- */
.eom { display: flex; align-items: center; gap: 14px; background: radial-gradient(120% 120% at 0% 0%, rgba(212,175,55,.25), rgba(212,175,55,.04) 60%), var(--eom-bg); border: 1px solid var(--gold); }
.medal { width: 58px; height: 58px; border-radius: 50%; background: var(--gold-grad); display: grid; place-items: center; box-shadow: 0 0 24px rgba(212,175,55,.45); flex-shrink: 0; }
.medal svg { width: 30px; height: 30px; }
.sum-row { display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center; }
.sum-row .rank { font-family: 'Cinzel'; font-weight: 800; color: var(--gold-t); text-align: center; }
.sum-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 10px; }
.sum-kpis div { background: var(--kpi-bg); border: 1px solid var(--line2); border-radius: 10px; padding: 7px 6px; text-align: center; }
.sum-kpis b { display: block; font-size: 14px; }
.sum-kpis span { font-size: 9.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.net { font-weight: 900; font-size: 16px; }
.net.plus { color: var(--green-t); } .net.minus { color: var(--red-t); }
.bar { height: 6px; border-radius: 4px; background: var(--bar-bg); overflow: hidden; margin-top: 6px; }
.bar i { display: block; height: 100%; background: linear-gradient(90deg, #22C55E, #FACC15, #EF4444); background-size: 400px 100%; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }

/* ---------- misc lists ---------- */
.list-item { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-top: 1px solid var(--line2); }
.list-item:first-child { border-top: 0; }
.status { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 999px; text-transform: uppercase; letter-spacing: .06em; }
.status.pending { background: rgba(250,204,21,.16); color: var(--st-pending-t); }
.status.approved, .status.active { background: var(--green-d); color: var(--st-ok-t); }
.status.rejected, .status.disabled { background: var(--red-d); color: var(--st-bad-t); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; }
.seg { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 3px; margin-bottom: 12px; }
.seg button { flex: 1; border: 0; background: transparent; padding: 9px; border-radius: 9px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button.on { background: var(--gold-grad); color: #1a1405; }
.pesel { font-family: ui-monospace, monospace; letter-spacing: .06em; }

@media print {
  body { background: #fff; color: #000; }
  .topbar, .bottom-nav, .toolbar, .ann-banner, .month-nav button, #toasts { display: none !important; }
  .shell { padding: 0 !important; }
  .card { background: #fff !important; border: 1px solid #bbb; color: #000; break-inside: avoid; }
  .muted, .sum-kpis span { color: #444 !important; }
  .sum-kpis div { background: #fff !important; }
  .eom { background: #fff !important; }
  .gold-text { color: #8a6a14; background: none; }
}

input[type=checkbox] { accent-color: #D4AF37; }

@supports (height: 100dvh) { .room { height: var(--vvh, 100dvh); } }

/* ---------- Wygląd: przełącznik motywu ---------- */
.theme-seg { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 4px; }
.theme-seg button { border: 1px solid transparent; background: transparent; border-radius: 10px; padding: 10px 4px; font-size: 13px; font-weight: 600; color: var(--muted); display: flex; flex-direction: column; align-items: center; gap: 4px; cursor: pointer; min-height: 44px; }
.theme-seg button .ti { font-size: 18px; line-height: 1; }
.theme-seg button.on { background: var(--card); color: var(--text); border-color: var(--gold-t); box-shadow: var(--shadow); }
.theme-seg button:focus-visible { outline: 2px solid var(--gold-t); outline-offset: 2px; }

/* ---------- Baner instalacji PWA ---------- */
#install-banner { position: fixed; z-index: 35; left: calc(10px + var(--safe-l)); right: calc(10px + var(--safe-r)); bottom: calc(12px + var(--safe-b));
  display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 16px; background: var(--card); color: var(--text);
  border: 1px solid var(--gold-t); box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: up .25s ease-out; max-width: 560px; margin: 0 auto; }
#install-banner[hidden] { display: none; }
body.has-nav #install-banner { bottom: calc(var(--nav-h) + var(--safe-b) + 10px); }
@media (min-width: 900px) { body.has-nav #install-banner { bottom: calc(16px + var(--safe-b)); left: 250px; } }
#install-banner .ib-icon { width: 42px; height: 42px; border-radius: 10px; flex: none; }
#install-banner .grow { min-width: 0; }
#install-banner b { font-size: 14px; }
#install-banner .small { margin-top: 2px; line-height: 1.35; }
#install-banner .ios-share { vertical-align: -3px; color: #0a84ff; }
:root[data-theme="light"] #install-banner .ios-share { color: #0060df; }
#install-banner .ib-x { flex: none; width: 44px; height: 44px; margin: -8px -6px -8px 0; border: 0; background: transparent; color: var(--muted); font-size: 18px; cursor: pointer; }
@media print { #install-banner { display: none !important; } }
:root[data-theme="light"] .theme-seg { background: var(--bg2); }
body.ib-on .auth { padding-bottom: calc(150px + var(--safe-b)); }
body.ib-on .shell { padding-bottom: calc(var(--nav-h) + var(--safe-b) + 140px); }

/* ---------- Spotkania (tylko szef) ---------- */
@media (max-width: 420px) { .bottom-nav a { font-size: 9.5px; } .bottom-nav a svg { width: 21px; height: 21px; } }
.mgrid-card { padding: 12px 10px; }
.mgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; }
.mg-wd { text-align: center; font-size: 10.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; padding-bottom: 2px; }
.mg-day { position: relative; aspect-ratio: 1 / .74; border-radius: 10px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-decoration: none; color: var(--text); background: var(--surface); border: 1px solid var(--line2); font-size: 14px; }
.mg-day b { font-weight: 700; }
.mg-day.we { color: var(--muted); }
.mg-day.today { border-color: var(--gold); }
.mg-day.has { background: rgba(212,175,55,.12); border-color: rgba(212,175,55,.45); }
.mg-day.has b { color: var(--gold-l); }
.mg-day.sel { background: var(--gold-grad); border-color: var(--gold); }
.mg-day.sel b, .mg-day.sel .mg-n { color: #1a1405; }
.mg-n { font-size: 10px; font-weight: 800; color: var(--gold-t); line-height: 1; margin-top: 2px; }
.mg-n::before { content: '● '; font-size: 7px; vertical-align: 1px; }
.mtg { padding: 12px; }
.mtg-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.mtg-num { width: 26px; height: 26px; border-radius: 50%; background: var(--gold-grad); color: #1a1405; display: grid; place-items: center; font-weight: 800; font-size: 13px; flex-shrink: 0; }
.mtg-time { font-weight: 800; font-size: 13px; padding: 3px 8px; border-radius: 8px; border: 1px solid var(--gold-d); color: var(--gold-l); }
.mtg-client { font-size: 16px; overflow-wrap: anywhere; }
.mtg-line { display: flex; align-items: center; gap: 8px; padding: 9px 10px; margin-top: 6px; border-radius: 11px; background: var(--surface); border: 1px solid var(--line2); color: var(--text); text-decoration: none; font-size: 14px; overflow-wrap: anywhere; }
.mtg-line .ic { flex-shrink: 0; }
.mtg-go { font-size: 12px; font-weight: 700; color: var(--gold-t); white-space: nowrap; }
.mtg-note { margin-top: 8px; padding: 9px 10px; border-radius: 11px; background: var(--effort-bg); border: 1px dashed var(--line); font-size: 13.5px; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ann-p); }
.mtg-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 6px; margin-top: 10px; }
.mtg-photos:empty { display: none; }
.mtg-thumb { position: relative; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface); aspect-ratio: 1; cursor: zoom-in; }
.mtg-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.mtg-thumb.new { border-style: dashed; border-color: var(--gold); }
.mtg-thumb .x { position: absolute; top: 3px; right: 3px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(0,0,0,.72); color: #fff; font-size: 12px; cursor: pointer; display: grid; place-items: center; }
.mtg-actions { margin-top: 10px; }
.mtg-mark { color: var(--gold-t); font-size: 11px; }
.mtg-dayitem { text-decoration: none; color: inherit; }
.gallery img { touch-action: pan-y; }
.g-count { position: fixed; top: calc(14px + var(--safe-t)); left: 0; right: 0; text-align: center; color: #fff; font-weight: 700; font-size: 13px; }
.g-nav, .g-close { position: fixed; border: 0; background: rgba(255,255,255,.12); color: #fff; border-radius: 50%; width: 44px; height: 44px; display: grid; place-items: center; cursor: pointer; }
.g-nav svg { width: 22px; height: 22px; stroke: #fff; }
.g-prev { left: 10px; top: 50%; } .g-next { right: 10px; top: 50%; }
.g-close { top: calc(8px + var(--safe-t)); right: 10px; font-size: 18px; }

/* ---------- Czas pracy i stawki (panel szefa) ---------- */
.no-rate { color: var(--red-t); font-weight: 700; }
.rate-now { font-weight: 800; color: var(--gold-l); }
.rate-row { padding: 10px 0; border-top: 1px solid var(--line2); }
.rate-row:first-child { border-top: 0; padding-top: 0; }

/* ===== BUD.ADHD – czas pracy (panel pracownika, panel szefa) ===== */
.topbar .brand-icon { width: 26px; height: 26px; border-radius: 7px; display: block; flex: none; }
.auth .login-icon { width: 92px; height: 92px; border-radius: 22px; margin: 0 auto 14px; display: block; box-shadow: 0 10px 40px rgba(212,175,55,.22); }
.brand-eyebrow { font-family: inherit; font-size: 10px; letter-spacing: .28em; vertical-align: middle; margin-left: 6px; color: var(--gold-t); -webkit-text-fill-color: var(--gold-t); font-weight: 800; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; letter-spacing: .02em; white-space: nowrap; line-height: 1.3; }
.badge.live { background: var(--green-d); color: var(--green-t); }
.badge.open { background: rgba(250,204,21,.14); color: var(--warn-t); }
.badge.unpaid { background: rgba(212,175,55,.12); color: var(--gold-l); box-shadow: inset 0 0 0 1px var(--gold-d); }
.badge.paid { background: var(--green-d); color: var(--st-ok-t); }
.badge.norate { background: var(--red-d); color: var(--st-bad-t); }
.badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 3px; }
.rate-chip { font-size: 12px; font-weight: 800; color: var(--gold-l); background: rgba(212,175,55,.1); border: 1px solid var(--line); padding: 3px 9px; border-radius: 999px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gold-l { color: var(--gold-l); } .ok-t { color: var(--st-ok-t); }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; font-size: 12.5px; cursor: pointer; padding: 10px; margin-top: 6px; font-family: inherit; }

/* panel pracownika */
.work-panel { text-align: center; padding: 16px 16px 18px; background: radial-gradient(130% 90% at 50% 0%, rgba(212,175,55,.13), transparent 62%), var(--card); }
.wp-date { font-size: 11.5px; text-transform: uppercase; letter-spacing: .14em; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.work-btn { width: 100%; border: 0; border-radius: 30px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; font-family: inherit; -webkit-tap-highlight-color: transparent; transition: transform .12s ease, box-shadow .2s; }
.work-btn:active { transform: scale(.97); }
.work-btn:disabled { opacity: .6; }
.work-btn.start { min-height: 190px; background: var(--gold-grad); color: #1a1405; box-shadow: 0 14px 44px rgba(212,175,55,.32), inset 0 2px 0 rgba(255,255,255,.45); }
.work-btn.stop { min-height: 132px; background: linear-gradient(145deg, #F26464 0%, #DC2626 55%, #A91B1B 100%); color: #fff; box-shadow: 0 14px 40px rgba(220,38,38,.3), inset 0 2px 0 rgba(255,255,255,.25); }
.wb-ic svg { width: 46px; height: 46px; stroke: currentColor; stroke-width: 3; fill: none; }
.wb-t { font-family: 'Cinzel', serif; font-size: 40px; font-weight: 800; letter-spacing: .06em; line-height: 1.1; }
.work-btn.stop .wb-t { font-size: 34px; }
.wb-s { font-size: 13px; font-weight: 700; opacity: .78; }
.timer { font-size: 56px; font-weight: 800; font-variant-numeric: tabular-nums; letter-spacing: .01em; line-height: 1; margin: 12px 0 16px; color: var(--text); }
.work-done { padding: 4px 0; }
.wd-ic { width: 58px; height: 58px; border-radius: 50%; background: var(--green-d); display: grid; place-items: center; margin: 0 auto 8px; }
.wd-ic svg { width: 30px; height: 30px; stroke: var(--green-t); stroke-width: 3; fill: none; }
.wd-t { font-family: 'Cinzel', serif; font-size: 24px; font-weight: 800; }
.wd-s { color: var(--muted); font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.wd-big { font-size: 26px; font-weight: 800; margin: 8px 0 6px; font-variant-numeric: tabular-nums; }
.wd-sep { color: var(--muted); margin: 0 8px; } .wd-amt { color: var(--gold-l); }
.earn-card { padding: 14px 16px; }
.ec-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.ec-head b { font-size: 16px; }
.er-row { display: grid; grid-template-columns: 1.15fr 1fr 1.2fr 1fr; gap: 6px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.er-h { border-top: 0; padding: 4px 0 2px; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; }
.er-h span, .er-v { text-align: right; }
.er-v { font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-l { font-weight: 700; }
.ec-pay { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 10px; padding: 12px 14px; border-radius: 14px; background: linear-gradient(135deg, rgba(212,175,55,.2), rgba(212,175,55,.04)); border: 1px solid var(--gold-d); }
.ec-pay span { font-weight: 800; text-transform: uppercase; letter-spacing: .08em; font-size: 12px; color: var(--gold-l); }
.ec-pay small { display: block; text-transform: none; letter-spacing: 0; font-weight: 600; color: var(--muted); font-size: 11px; margin-top: 2px; }
.ec-pay b { font-size: 24px; color: var(--gold-l); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-bonus { margin-top: 10px; }
.ecb-row { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 5px 0; }
.ec-foot { text-align: center; font-size: 11.5px; color: var(--muted); margin-top: 10px; }

/* panel szefa: nagłówek, zakres, KPI */
.wt-card { padding: 14px; }
.wt-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.wt-logo { width: 44px; height: 44px; border-radius: 11px; flex: none; }
.wt-brand { font-size: 10.5px; font-weight: 800; letter-spacing: .26em; color: var(--gold-t); }
.wt-title { font-family: 'Cinzel', serif; font-size: 19px; margin: 1px 0 0; font-weight: 800; }
.seg6 { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; background: var(--surface); border: 1px solid var(--border); border-radius: 13px; padding: 3px; }
.seg6 button { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 12.5px; font-weight: 800; padding: 10px 0; border-radius: 10px; cursor: pointer; white-space: nowrap; }
.seg6 button.on { background: var(--gold-grad); color: #1a1405; box-shadow: 0 3px 12px rgba(212,175,55,.25); }
.wt-pick { margin-top: 8px; }
.wt-month { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 4px; }
.wt-month b { font-size: 15px; }
.wt-range { font-size: 12.5px; color: var(--muted); font-weight: 700; margin: 10px 2px 8px; }
.wt-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wt-kpis .kpi.pay { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; }
@media (min-width: 640px) { .wt-kpis { grid-template-columns: 1fr 1fr 1.3fr; } .wt-kpis .kpi.pay { grid-column: auto; display: block; padding: 9px 10px; } }
.kpi { background: var(--kpi-bg); border: 1px solid var(--border2); border-radius: 12px; padding: 9px 10px; min-width: 0; }
.kpi span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.kpi b { display: block; font-size: 15.5px; margin-top: 3px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi.pay { background: linear-gradient(135deg, rgba(212,175,55,.22), rgba(212,175,55,.05)); border-color: var(--gold-d); }
.kpi.pay span, .kpi.pay b { color: var(--gold-l); } .kpi.pay b { font-size: 22px; margin-top: 0; }
@media (min-width: 640px) { .kpi.pay b { font-size: 17px; margin-top: 3px; } }
.kpi-badges { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 5px; }
#hours-table.loading { opacity: .55; transition: opacity .15s; }
/* tabela (szerokie ekrany) */
.wt-tablecard { padding: 4px 12px 8px; }
.wt-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13.5px; }
.wt-table th { position: sticky; top: calc(46px + var(--safe-t)); z-index: 2; background: var(--card); text-align: left; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; padding: 10px 8px; border-bottom: 1px solid var(--line); }
.wt-table td { padding: 10px 8px; border-bottom: 1px solid var(--line2); vertical-align: middle; }
.wt-table .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.wt-table th.pay, .wt-table td.pay { background: rgba(212,175,55,.08); color: var(--gold-l); }
.wt-table tbody tr { cursor: pointer; } .wt-table tbody tr:hover td { background: var(--hover); }
.wt-table tfoot td { font-weight: 800; border-top: 2px solid var(--gold-d); border-bottom: 0; padding-top: 12px; font-size: 14px; font-variant-numeric: tabular-nums; }
.wt-table tfoot td.pay { font-size: 16px; }
/* karty (wąskie ekrany) */
.wt-cards { display: grid; gap: 8px; }
.wt-emp { display: block; color: inherit; text-decoration: none; padding: 12px 14px; margin: 0; }
.wt-emp:active { transform: scale(.99); }
.we-head { display: flex; align-items: center; gap: 9px; }
.we-head b { font-size: 15px; }
.we-go { color: var(--muted); font-size: 20px; margin-left: 2px; }
.we-stats { display: grid; grid-template-columns: 1fr 1.2fr 1fr; gap: 6px; margin: 10px 0 8px; }
.we-stats span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.we-stats b { font-size: 14px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.we-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; border-top: 1px solid var(--line2); padding-top: 8px; }
.we-pay { text-align: right; }
.we-pay span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: var(--gold-l); font-weight: 800; }
.we-pay b { font-size: 19px; color: var(--gold-l); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wt-total { border: 1px solid var(--gold-d); background: linear-gradient(135deg, rgba(212,175,55,.12), transparent 70%), var(--card); padding: 12px 14px; margin: 0; }
.wt-total-l { letter-spacing: .2em; color: var(--gold-l); }
.wt-note { margin: 10px 4px 4px; line-height: 1.45; }
.wt-cards { margin-top: 0; } .wt-tablecard { display: none; }
@media (min-width: 640px) { .wt-tablecard { display: block; } .wt-cards { display: none; } }
/* widok pracownika (szef) */
.back-link { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-weight: 700; text-decoration: none; margin: 4px 0 8px; font-size: 14px; }
.back-link .bl-ch { font-size: 24px; line-height: 1; margin-top: -3px; color: var(--gold-l); }
.wd-head { padding: 14px; } .wd-name { font-family: 'Cinzel', serif; font-size: 20px; margin: 2px 0 0; font-weight: 800; }
.ws-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px 8px; }
.ws-grid span { display: block; font-size: 10px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 700; }
.ws-grid b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.paid-all { margin-top: 10px; text-align: center; font-weight: 800; color: var(--st-ok-t); background: var(--green-d); border-radius: 12px; padding: 10px; }
.sh-list { padding: 4px 14px; }
.sh-row { display: grid; grid-template-columns: 1.3fr 1fr 1.2fr; gap: 6px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.sh-row:first-child { border-top: 0; }
.sh-row.is-paid { opacity: .78; }
.sh-d b { display: block; } .sh-d span { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.sh-m { text-align: right; font-variant-numeric: tabular-nums; }
.sh-a { text-align: right; display: flex; flex-direction: column; align-items: flex-end; gap: 3px; font-variant-numeric: tabular-nums; }
.bo-row { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line2); }
.bo-row:first-child { border-top: 0; padding-top: 0; }
.bo-note { margin-top: 2px; color: var(--text); opacity: .85; }
.bo-form { margin-top: 12px; padding-top: 12px; border-top: 1px dashed var(--line); }
.icon-btn.sm { width: 34px; height: 34px; font-size: 15px; }
.info-card .row { gap: 8px; }

/* ===== Strona startowa (niezalogowani): baner firmy + „Wejście pracownicze” ===== */
.auth.landing { justify-content: flex-start; padding-top: var(--safe-t); }
.landing-banner { width: calc(100% + 22px + 22px + var(--safe-l) + var(--safe-r)); margin: 0 calc(-22px - var(--safe-r)) 0 calc(-22px - var(--safe-l)); max-width: none; background: #000; line-height: 0; }
.landing-banner img { display: block; width: 100%; height: auto; aspect-ratio: 941 / 1672; }
.login-heading { position: relative; display: flex; align-items: center; gap: 14px; width: min(100%, 380px); margin: 26px 0 18px; font-family: 'Cinzel', serif; font-size: 22px; font-weight: 800; letter-spacing: .05em; justify-content: center; text-align: center; }
.login-heading span { background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.login-heading::before, .login-heading::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, transparent, var(--gold)); }
.login-heading::after { background: linear-gradient(90deg, var(--gold), transparent); }
@media (min-width: 700px) {
  .auth.landing { padding-top: calc(32px + var(--safe-t)); }
  .landing-banner { width: 100%; max-width: 640px; margin: 0; border-radius: 18px; overflow: hidden; border: 1px solid var(--gold-d); box-shadow: 0 18px 60px rgba(0,0,0,.55), 0 0 0 4px rgba(212,175,55,.06); }
  .login-heading { margin-top: 34px; }
}

/* ===== Plan dnia / Plan jedzenia (prywatne plany; podgląd szefa) ===== */
.plan-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-bottom: 12px; }
.plan-tile { display: flex; align-items: center; gap: 10px; padding: 12px; margin: 0; color: inherit; text-decoration: none; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(212,175,55,.1), transparent 70%), var(--card); }
.plan-tile:active { transform: scale(.98); }
.plan-tile b { display: block; font-size: 14.5px; color: var(--gold-l); }
.plan-tile small { display: block; font-size: 11px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.pt-ic, .pl-ic { font-size: 24px; width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; background: rgba(212,175,55,.12); border: 1px solid var(--line); }
.pl-head { padding: 14px; }
.pd-chips { display: grid; grid-template-columns: 1fr 1fr 1.3fr; gap: 6px; }
.pd-chip { display: flex; align-items: center; justify-content: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); color: var(--muted); font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; position: relative; white-space: nowrap; }
.pd-chip.on { background: var(--gold-grad); color: #1a1405; border-color: var(--gold); }
.pd-pick input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.pd-add { display: flex; gap: 8px; margin-top: 4px; }
.pd-add .input { flex: 1; font-size: 16px; }
.pd-add .btn { width: 52px; padding: 0; font-size: 22px; }
.pd-card { padding: 12px 14px; }
.pd-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-top: 1px solid var(--line2); }
.pd-item:first-child { border-top: 0; }
.pd-check { width: 30px; height: 30px; flex: none; border-radius: 50%; border: 2px solid var(--gold-d); background: transparent; display: grid; place-items: center; cursor: pointer; padding: 0; }
.pd-check svg { width: 18px; height: 18px; stroke: #1a1405; stroke-width: 3; }
.pd-item.done .pd-check { background: var(--gold-grad); border-color: var(--gold); }
.pd-text { font-size: 15px; line-height: 1.35; word-break: break-word; cursor: text; min-height: 22px; }
.pd-item.done .pd-text { text-decoration: line-through; color: var(--muted); }
.pd-late { display: inline-block; font-size: 11px; font-weight: 800; color: var(--warn-t); background: rgba(250,204,21,.12); border-radius: 6px; padding: 1px 6px; margin-right: 6px; }
.pd-btn { flex: none; min-width: 30px; height: 30px; border-radius: 9px; border: 1px solid var(--border2); background: var(--surface); color: var(--muted); font-weight: 800; cursor: pointer; padding: 0 6px; font-size: 14px; }
.pd-btn.pd-move { color: var(--gold-l); border-color: var(--gold-d); font-size: 12px; }
.pd-btn.pd-del:hover { color: var(--red-t); }
.pd-edit { padding: 8px 10px; font-size: 16px; }
.pd-empty { text-align: center; color: var(--muted); padding: 18px 6px; font-size: 14px; }
.pd-sec-late { color: var(--warn-t); }
.pm-tools { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; }
.pm-day { padding: 12px 14px; }
.pm-day.today { border: 1.5px solid var(--gold); box-shadow: 0 0 0 4px rgba(212,175,55,.1), 0 10px 30px rgba(212,175,55,.08); background: linear-gradient(135deg, rgba(212,175,55,.1), transparent 60%), var(--card); }
.pm-day.empty { padding: 10px 14px; }
.pm-day.empty .pm-head b { color: var(--muted); }
.pm-head { display: flex; align-items: center; gap: 8px; }
.pm-head b { font-size: 15.5px; }
.badge.pm-today { background: var(--gold-grad); color: #1a1405; }
.pm-meals { margin-top: 8px; }
.pm-meal { display: grid; grid-template-columns: 108px 1fr auto; gap: 8px; padding: 7px 0; border-top: 1px solid var(--line2); font-size: 14px; align-items: baseline; }
.pm-l { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--gold-l); font-weight: 800; }
.pm-t { line-height: 1.35; word-break: break-word; }
.pm-k { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pm-foot { text-align: right; margin-top: -2px; }
.pm-foot .link-btn { margin: 0; padding: 6px 0 0; }
.pm-form .pm-field { margin-bottom: 10px; }
.pm-fl { display: block; font-size: 12px; font-weight: 800; color: var(--gold-l); text-transform: uppercase; letter-spacing: .06em; margin-bottom: 4px; }
.pm-form textarea { resize: vertical; min-height: 44px; font-size: 16px; }
.pm-kcal { width: 76px; flex: none; font-size: 16px; text-align: center; }
/* karty planu (kalendarz → dzień, notatnik, podgląd) */
.plan-card { padding: 12px 14px; }
.plc-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.plc-head b { font-size: 15.5px; color: var(--gold-l); }
.plc-ic { font-size: 17px; width: 32px; height: 32px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(212,175,55,.12); border: 1px solid var(--line); }
.plc-head .link-btn { margin: 0; padding: 4px 0 4px 6px; font-size: 13px; color: var(--gold-l); text-decoration: none; white-space: nowrap; font-weight: 700; }
.plan-card .pd-add { margin: 0 0 6px; }
.pd-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; font-weight: 800; color: var(--muted); margin-top: 6px; padding-top: 10px; border-top: 1px solid var(--line2); }
.pd-sub.pd-sec-late { color: var(--warn-t); }
#pd-open .pd-item:first-child, #pd-late .pd-item:first-child, #pd-done .pd-item:first-child { border-top: 0; }
.pd-check.ro { cursor: default; }
.pd-item.done .pd-check.ro { background: var(--gold-grad); border-color: var(--gold); }
.plc-foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; margin-top: 10px; }
.plc-foot .btn { text-decoration: none; }
.pm-daycard .pm-meals { margin-top: 0; }
.pm-daycard.empty .pd-empty { padding: 8px 6px 2px; }
.pd-daynav { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pd-daynav .wt-range { text-align: center; margin: 0; }
.pm-dl { color: inherit; text-decoration: none; min-width: 0; }
/* skróty na górze widoku dnia */
.plan-jump { display: flex; gap: 8px; margin: 0 0 12px; }
.plan-jump button { flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 8px; border-radius: 12px; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(212,175,55,.1), transparent 70%), var(--card); color: var(--text); font: inherit; font-weight: 800; font-size: 13.5px; cursor: pointer; }
.plan-jump button:active { transform: scale(.98); }
.plan-jump b { font-size: 11.5px; color: #1a1405; background: var(--gold-grad); border-radius: 999px; padding: 1px 8px; white-space: nowrap; }
.plan-jump b:empty, .plan-jump b.hidden { display: none; }
/* znaczniki w kalendarzu */
.pl-mk { display: inline-flex; gap: 4px; align-items: center; min-height: 10px; }
.mk-note, .mk-meal { display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex: none; }
.mk-note { background: var(--gold-grad); box-shadow: 0 0 6px rgba(212,175,55,.55); }
.mk-note.done { background: transparent; border: 1.5px solid var(--gold-d); box-shadow: none; }
.mk-meal { background: var(--green-t); box-shadow: 0 0 6px rgba(34,197,94,.4); }
.pl-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; font-size: 11.5px; color: var(--muted); margin: 12px 0 16px; }
.pl-legend span { display: inline-flex; align-items: center; gap: 6px; }
.chip.pl-chip { background: rgba(212,175,55,.09); border-color: var(--line); }
/* podgląd szefa */
.pv-tile { margin-bottom: 12px; }
.pv-tile .pv-ch { margin-left: auto; }
.pv-row { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; }
.pv-row:active { transform: scale(.99); }
.pv-row b { font-size: 15.5px; }
.pv-sum { display: flex; flex-wrap: wrap; gap: 3px 12px; font-size: 12.5px; margin-top: 5px; color: var(--gold-l); font-weight: 700; }
.pv-ch { font-size: 26px; line-height: 1; color: var(--gold-d); flex: none; }
.pv-head .wt-head { align-items: center; }
.pv-tabs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.pv-tabs .pd-chip { font-size: 13px; padding: 9px 4px; }
.pv-head .pd-chips { margin-top: 8px; }
.wd-pv { display: inline-block; margin: 10px 0 0; padding: 0; font-size: 13.5px; color: var(--gold-l); text-decoration: none; font-weight: 700; }
/* ===== Szef: zawsze dostępny 7:00–17:00 (bez odhaczania obecności) ===== */
.chip.boss-av { background: rgba(212,175,55,.12); border-color: var(--gold-d); color: var(--gold-l); font-weight: 700; }
.boss-today .boss-av-ic { display: grid; place-items: center; font-size: 26px; cursor: default; }
.pres.avail { cursor: default; background: rgba(212,175,55,.12); border-color: var(--gold-d); color: var(--gold-l); white-space: nowrap; }
.pres.avail .ck { background: var(--gold-grad); border-color: var(--gold); color: #1a1405; }
/* ===== Instrukcja instalacji PWA ===== */
.how-install { display: block; margin: 6px auto 0; color: var(--gold-l); text-decoration: none; font-weight: 700; font-size: 13.5px; }
.ih-alert { background: rgba(250,204,21,.1); border: 1px solid rgba(250,204,21,.35); color: var(--text); border-radius: 12px; padding: 10px 12px; font-size: 13.5px; line-height: 1.4; margin-bottom: 10px; }
.ih-sec { border: 1px solid var(--line2); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; opacity: .75; }
.ih-sec.on { opacity: 1; border-color: var(--gold-d); background: linear-gradient(135deg, rgba(212,175,55,.08), transparent 70%); }
.ih-h { font-weight: 800; color: var(--gold-l); margin-bottom: 6px; font-size: 14px; }
.ih-step { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; line-height: 1.4; padding: 3px 0; }
.ih-step > b { flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--gold-grad); color: #1a1405; display: grid; place-items: center; font-size: 11.5px; margin-top: 1px; }
.ih-step .ios-share { vertical-align: -3px; }
.ih-warn { color: var(--warn-t); }
.pv-tabs .pd-chip { font-size: 12.5px; padding: 9px 2px; }
.boss-today .check-big.boss-av-ic { border: 2px solid var(--gold); background: rgba(212,175,55,.12); box-shadow: 0 0 22px rgba(212,175,55,.25); }

/* ===== v10: avatary, załączniki czatu, usuwanie, rysowanie ===== */
.avatar .av-img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; }
.avatar.has-pic { color: transparent; }
.avatar.lg { width: 56px; height: 56px; font-size: 19px; }
.avatar.xl { width: 120px; height: 120px; font-size: 40px; }
.av-edit { position: relative; background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; flex-shrink: 0; }
.av-edit .av-cam { position: absolute; right: -4px; bottom: -4px; width: 24px; height: 24px; border-radius: 50%; background: var(--card2); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; box-shadow: var(--shadow); }
.av-crop { position: relative; width: min(280px, 72vw); aspect-ratio: 1; margin: 6px auto 0; border-radius: 16px; overflow: hidden; background: #111; display: grid; place-items: center; touch-action: none; }
.av-crop canvas { position: absolute; inset: 0; width: 100%; height: 100%; touch-action: none; cursor: grab; }
.av-crop .avc-cur { width: 100%; height: 100%; object-fit: cover; }
.av-crop .avc-ring { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 0 0 999px rgba(0, 0, 0, .55); pointer-events: none; border: 2px solid rgba(255, 255, 255, .85); }
.avc-zoom { width: 100%; margin-top: 10px; accent-color: #D4AF37; }

.attach-menu { position: fixed; z-index: 60; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 6px; box-shadow: var(--shadow); min-width: 230px; display: grid; gap: 2px; }
.attach-menu button { display: grid; grid-template-columns: 34px 1fr; grid-template-rows: auto auto; column-gap: 8px; align-items: center; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 10px; border-radius: 12px; cursor: pointer; font: inherit; }
.attach-menu button:hover, .attach-menu button:focus-visible { background: var(--hover); }
.attach-menu span { grid-row: span 2; font-size: 22px; text-align: center; }
.attach-menu b { font-size: 14.5px; }
.attach-menu small { color: var(--muted); font-size: 12px; }

.file-card { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; min-width: 200px; max-width: 280px; padding: 4px 2px; }
.file-card .fc-ic { font-size: 28px; line-height: 1; }
.file-card .fc-t { display: grid; min-width: 0; flex: 1; }
.file-card .fc-t b { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-card .fc-t small { opacity: .65; font-size: 11.5px; }
.file-card .fc-dl { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: rgba(127, 127, 127, .18); font-size: 14px; flex-shrink: 0; }

.react-bar .rb-del { display: inline-flex; align-items: center; gap: 4px; font-size: 16px !important; color: #e5484d; border-left: 1px solid var(--line) !important; border-radius: 0 999px 999px 0 !important; padding-left: 10px !important; margin-left: 2px; }
.react-bar .rb-del span { font-size: 13px; font-weight: 700; }
.sh-del { margin-left: 6px; }

.dr-root { position: fixed; inset: 0; z-index: 90; display: flex; flex-direction: column; background: var(--bg, #000); color: var(--text); padding-top: env(safe-area-inset-top); padding-bottom: env(safe-area-inset-bottom); }
.dr-top { display: flex; align-items: center; gap: 4px; padding: 6px 8px; border-bottom: 1px solid var(--line); background: var(--card); }
.dr-title { flex: 1; font-weight: 800; text-align: center; font-size: 15px; }
.dr-b { min-width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 18px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 0 10px; font-family: inherit; }
.dr-b span { font-size: 13.5px; font-weight: 700; }
.dr-b:disabled { opacity: .35; }
.dr-send { background: linear-gradient(135deg, #f3d77a, #D4AF37 55%, #a8862a); color: #1a1405; border: 0; }
.dr-stage { position: relative; flex: 1; min-height: 0; overflow: hidden; background: #fff; }
.dr-cv { display: block; touch-action: none; cursor: crosshair; }
.dr-scale { position: absolute; left: 8px; top: 8px; background: rgba(255, 255, 255, .92); color: #1f2328; border: 1px solid #d0d7de; border-radius: 8px; padding: 3px 8px; font-size: 12px; font-weight: 700; pointer-events: none; }
.dr-hint { position: absolute; left: 50%; bottom: 8px; transform: translateX(-50%); background: rgba(31, 35, 40, .78); color: #fff; border-radius: 999px; padding: 4px 12px; font-size: 12px; pointer-events: none; white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; }
.dr-bar { border-top: 1px solid var(--line); background: var(--card); padding: 6px 6px 8px; display: grid; gap: 6px; }
.dr-tools { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
@media (min-width: 700px) { .dr-tools { grid-template-columns: repeat(10, 1fr); } }
.dr-opts { display: flex; gap: 5px; overflow-x: auto; scrollbar-width: none; align-items: center; }
.dr-tools::-webkit-scrollbar, .dr-opts::-webkit-scrollbar { display: none; }
.dr-t { min-width: 0; border: 1px solid var(--line); background: var(--card2); color: var(--text); border-radius: 12px; padding: 5px 6px; display: grid; justify-items: center; gap: 1px; cursor: pointer; font-family: inherit; }
.dr-t i { font-style: normal; font-size: 19px; line-height: 1.1; font-weight: 800; }
.dr-t span { font-size: 10.5px; font-weight: 600; }
.dr-t.on { border-color: #D4AF37; box-shadow: 0 0 0 2px rgba(212, 175, 55, .45) inset; }
.dr-c { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.dr-c.on { box-shadow: 0 0 0 2px var(--card), 0 0 0 4px #D4AF37; }
.dr-w { flex: 0 0 auto; width: 34px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--card2); display: grid; place-items: center; cursor: pointer; }
.dr-w i { display: block; width: 18px; background: var(--text); border-radius: 4px; }
.dr-w.on { border-color: #D4AF37; }
.dr-sep { flex: 0 0 1px; height: 22px; background: var(--line); margin: 0 2px; }
.dr-tg { flex: 0 0 auto; height: 30px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--text); font-size: 12.5px; font-weight: 600; padding: 0 10px; cursor: pointer; white-space: nowrap; font-family: inherit; }
.dr-tg.on { border-color: #D4AF37; color: var(--gold-t, #D4AF37); }
.dr-sc { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; font-size: 12.5px; white-space: nowrap; color: var(--muted); }
.dr-sc select { background: var(--card2); color: var(--text); border: 1px solid var(--line); border-radius: 8px; padding: 4px 6px; font: inherit; }
@media (max-width: 480px) {
  .react-bar { gap: 0; padding: 5px 6px; max-width: calc(100vw - 16px); }
  .react-bar button { font-size: 20px; padding: 2px 3px; }
}

/* ===== v11: ekran Start, logo jako przycisk, ✏️ w czacie ===== */
:root { --ill-a: #FFF1B8; --ill-b: #D4AF37; --ill-c: #9E7A22; }
:root[data-theme="light"] { --ill-a: #E6C45E; --ill-b: #B8901F; --ill-c: #7d5f12; }
.brand-link { display: flex; align-items: center; gap: 10px; text-decoration: none; border-radius: 12px; padding: 4px 8px 4px 4px; margin: -4px 0 -4px -4px; transition: background-color .15s, transform .1s; -webkit-tap-highlight-color: transparent; }
.brand-link:focus-visible { background: var(--hover); }
@media (hover: hover) { .brand-link:hover { background: var(--hover); } }
.brand-link:active { transform: scale(.97); }
.brand-link.on { background: rgba(212, 175, 55, .10); }
.ill-defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.st-hello-w { margin: 4px 2px 10px; }
.st-hi { font-size: 21px; font-weight: 800; letter-spacing: -.01em; }
.st-date { color: var(--muted); font-size: 13px; margin-top: 2px; }
.st-hello.boss { display: flex; align-items: center; gap: 14px; background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(212, 175, 55, .03) 60%), var(--card); border-color: var(--gold-t); }
.st-crown { width: 64px; height: 64px; flex: none; }
.st-crown .ill { width: 100%; height: 100%; }
.st-avail { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 11px; border-radius: 999px; font-size: 13px; font-weight: 700; border: 1px solid var(--gold-t); color: var(--gold-l); background: rgba(212, 175, 55, .08); }
.st-avail.on { border-color: var(--green); color: var(--green-t, #3ccf7a); background: rgba(46, 204, 113, .10); }
.st-sec { margin-top: 14px; }
.st-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
@media (min-width: 700px) { .st-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; } }
@media (min-width: 1040px) { .st-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.st-tile { position: relative; display: flex; flex-direction: column; gap: 3px; min-height: 148px; padding: 14px 14px 13px; margin: 0; text-decoration: none; color: var(--text); overflow: hidden; transition: transform .12s, border-color .15s, box-shadow .15s; -webkit-tap-highlight-color: transparent; }
.st-tile::after { content: ''; position: absolute; inset: auto -30% -55% auto; width: 120px; height: 120px; border-radius: 50%; background: radial-gradient(circle, rgba(212, 175, 55, .13), transparent 70%); pointer-events: none; }
@media (hover: hover) { .st-tile:hover { border-color: var(--gold-t); box-shadow: 0 6px 22px rgba(212, 175, 55, .12); } }
.st-tile:active { transform: scale(.97); }
.st-ill { width: 62px; height: 62px; margin: -2px 0 6px -4px; display: block; }
.st-ill .ill { width: 100%; height: 100%; display: block; }
.st-t { font-weight: 800; font-size: 16px; line-height: 1.2; }
.st-d { color: var(--muted); font-size: 12.5px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.st-badge { position: absolute; top: 12px; right: 12px; min-width: 24px; height: 24px; padding: 0 8px; border-radius: 999px; background: var(--red, #e5484d); color: #fff; font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.st-badge.live { background: rgba(46, 204, 113, .16); color: var(--green-t, #3ccf7a); border: 1px solid rgba(46, 204, 113, .45); }
.st-badge.soft { background: rgba(212, 175, 55, .16); color: var(--gold-l); border: 1px solid var(--gold-t); }
@media (min-width: 700px) { .st-tile { min-height: 164px; padding: 18px; } .st-ill { width: 72px; height: 72px; } .st-t { font-size: 17px; } }
.composer .draw-btn { color: var(--gold-l); }
@media (max-width: 420px) {
  .composer { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .composer .icon-btn { width: 36px; height: 36px; }
  .composer textarea { padding: 10px 12px; }
}

/* ===== v12: Zaloguj przez Google, linki prawne ===== */
.or-sep { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; color: var(--muted); font-size: 12.5px; }
.or-sep::before, .or-sep::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.g-wrap { display: flex; justify-content: center; min-height: 44px; }
.g-note { font-size: 12.5px; color: var(--muted); text-align: center; padding: 8px 4px; }
.g-msg { margin-top: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(239, 68, 68, .45); background: rgba(239, 68, 68, .10); color: var(--text); font-size: 13.5px; line-height: 1.4; text-align: center; }
.legal-links { display: flex; justify-content: center; gap: 8px; margin: 14px 0 calc(18px + var(--safe-b, 0px)); font-size: 12.5px; color: var(--muted); }
.legal-links a { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; }
.g-linked { color: var(--muted); margin-top: 2px; word-break: break-all; }

/* ===== Zaliczki ===== */
.adv-yn { margin: 4px 0 14px; }
.adv-yn button { padding: 13px 9px; font-size: 16px; }
.wd-adv { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 14px; margin: 8px 0 6px; font-size: 13.5px; font-weight: 600; }
.wd-adv b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ec-sub { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 2px 0; font-size: 13.5px; color: var(--muted); font-weight: 600; }
.ec-sub b { font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--text, inherit); }
.ec-sub.adv b { color: var(--red-t); }
.ec-adv { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line2); }
.eca-h { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.eca-h span { color: var(--muted); font-weight: 600; }
.ec-adv .ecb-row b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.we-adv { display: block; font-size: 11px; font-weight: 700; color: var(--red-t); white-space: nowrap; }
.kpi.bad { background: var(--red-d); border-color: var(--red-t); }
.kpi.bad span, .kpi.bad b { color: var(--st-bad-t); }
@media (min-width: 640px) { .wt-kpis { grid-template-columns: 1fr 1fr 1fr 1.3fr; } }
.wt-tabs { margin: 2px 0 12px; }
.adv-filter button { font-size: 12.5px; padding: 9px 4px; white-space: nowrap; }
.adv-list { display: grid; gap: 8px; }
.adv-row { margin: 0; padding: 12px 14px; border-left: 4px solid var(--line2); }
.adv-row.st-ok { border-left-color: var(--st-ok-t); }
.adv-row.st-pending { border-left-color: var(--warn-t); }
.adv-row.st-mismatch { border-left-color: var(--red-t); background: linear-gradient(135deg, var(--red-d), transparent 70%), var(--card); }
.ar-head { display: flex; align-items: center; gap: 9px; }
.adv-st { font-size: 12px; font-weight: 800; padding: 5px 9px; border-radius: 999px; text-align: center; max-width: 52%; line-height: 1.25; }
.adv-st.st-ok { background: var(--green-d); color: var(--st-ok-t); }
.adv-st.st-pending { background: rgba(250,204,21,.14); color: var(--warn-t); }
.adv-st.st-mismatch { background: var(--red-d); color: var(--st-bad-t); }
.ar-form { display: grid; grid-template-columns: 1fr 1fr; gap: 0 8px; align-items: end; margin-top: 10px; }
.ar-form .field { margin-bottom: 8px; min-width: 0; }
.ar-form .field > span { font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ar-form .ar-save { grid-column: 1 / -1; }
@media (min-width: 640px) { .ar-form { grid-template-columns: 1fr 1fr auto; } .ar-form .ar-save { grid-column: auto; margin-bottom: 8px; } }
.ar-foot { display: flex; align-items: flex-start; gap: 8px; margin-top: 6px; }
.ar-log { flex: 1; font-size: 12px; }
.ar-log summary { cursor: pointer; color: var(--muted); font-weight: 700; padding: 4px 0; }
.al-row { padding: 4px 0; border-top: 1px solid var(--line2); line-height: 1.4; }
.al-t { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ===== v14: Kalkulator kruszywa / piasku (czat) ===== */
.composer .calc-btn { color: var(--gold-l); }
.calc-mode button { font-size: 13px; padding: 10px 6px; }
.calc-two { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.calc-two .field { min-width: 0; }
.calc-depth { display: flex; gap: 8px; align-items: stretch; }
.calc-depth .input { flex: 1; min-width: 0; }
.calc-unit { margin: 0; flex: 0 0 auto; }
.calc-unit button { padding: 8px 13px; }
.calc-mat { margin: 0; }
.calc-mat button { font-size: 13.5px; padding: 10px 4px; }
.calc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.calc-chips button { flex: 1; min-width: 60px; border: 1px solid var(--line2); background: var(--chip-bg); color: var(--text); border-radius: 999px; padding: 8px 10px; font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
.calc-chips button.on { background: var(--gold-grad); color: #1a1405; border-color: transparent; box-shadow: 0 3px 12px rgba(212,175,55,.25); }
.calc-hint { display: block; min-height: 0; margin-top: 4px; font-size: 12px; font-weight: 600; color: var(--red-t); }
.calc-hint:empty { display: none; }
.calc-res { margin: 4px 0 14px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); }
.calc-res.ok { border-color: var(--gold-d); background: linear-gradient(135deg, rgba(212,175,55,.10), transparent 70%), var(--surface); }
.cr-main, .cr-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cr-main span, .cr-row span { color: var(--muted); font-size: 13px; font-weight: 600; }
.cr-main b { font-size: 26px; font-weight: 900; color: var(--gold-l); font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-row { padding-top: 6px; }
.cr-row b { font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cr-formula { margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line2); font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cr-warn { margin-top: 8px; font-size: 12.5px; color: var(--warn-t); font-weight: 600; }
.cr-empty { font-size: 13.5px; color: var(--muted); text-align: center; }

/* ===== v15: przycisk „Zobacz nasze prace budowlane” (Facebook) pod banerem strony startowej ===== */
.fb-cta { --fb-in: linear-gradient(180deg, #1a170f 0%, #0b0a07 100%); --fb-shine: rgba(255,241,184,.26);
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 640px; min-height: 62px; margin: 16px 0 0; padding: 11px 14px 11px 11px;
  border: 1.5px solid transparent; border-radius: 16px; background: var(--fb-in) padding-box, var(--gold-grad) border-box;
  color: var(--gold-l); text-decoration: none; font-weight: 800; font-size: clamp(15px, 4.1vw, 17px); line-height: 1.25; letter-spacing: .01em;
  box-shadow: 0 10px 30px rgba(0,0,0,.5), 0 0 0 4px rgba(212,175,55,.07), inset 0 1px 0 rgba(255,241,184,.14);
  -webkit-user-select: none; user-select: none; cursor: pointer; touch-action: manipulation;
  transition: transform .12s ease, box-shadow .2s ease, filter .2s ease; }
.fb-cta::after { content: ''; position: absolute; z-index: -1; inset: 0; pointer-events: none;
  background: linear-gradient(105deg, transparent 30%, var(--fb-shine) 48%, transparent 66%); transform: translateX(-130%);
  animation: fb-shine 5.5s ease-in-out 1.2s infinite; }
@keyframes fb-shine { 0% { transform: translateX(-130%); } 28%, 100% { transform: translateX(130%); } }
.fb-cta-ic { flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--gold-grad); color: #1a1405;
  box-shadow: 0 0 0 3px rgba(212,175,55,.14), 0 4px 14px rgba(212,175,55,.25); }
.fb-cta-t { flex: 1; min-width: 0; }
.fb-cta-ar { flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--gold-d); color: var(--gold-l); transition: transform .2s ease; }
.fb-cta:active { transform: translateY(1px) scale(.985); filter: brightness(.94); box-shadow: 0 4px 14px rgba(0,0,0,.45), 0 0 0 3px rgba(212,175,55,.1); }
.fb-cta:focus { outline: none; }
.fb-cta:focus-visible { outline: 3px solid var(--gold-l); outline-offset: 3px; }
@media (hover: hover) {
  .fb-cta:hover { box-shadow: 0 14px 38px rgba(0,0,0,.55), 0 0 0 4px rgba(212,175,55,.16), 0 0 26px rgba(212,175,55,.18); }
  .fb-cta:hover .fb-cta-ar { transform: translateX(3px); }
}
:root[data-theme="light"] .fb-cta { --fb-in: linear-gradient(180deg, #fffdf7 0%, #f6eed8 100%); --fb-shine: rgba(255,255,255,.85);
  box-shadow: 0 8px 24px rgba(60,45,10,.14), 0 0 0 4px rgba(168,132,31,.08), inset 0 1px 0 #fff; }
:root[data-theme="light"] .fb-cta:active { box-shadow: 0 3px 10px rgba(60,45,10,.14); }
@media (hover: hover) { :root[data-theme="light"] .fb-cta:hover { box-shadow: 0 12px 30px rgba(60,45,10,.2), 0 0 0 4px rgba(168,132,31,.14); } }
@media (min-width: 700px) { .fb-cta { margin-top: 20px; padding: 13px 18px 13px 13px; font-size: 17px; } }
@media (prefers-reduced-motion: reduce) {
  .fb-cta::after { animation: none; display: none; }
  .fb-cta, .fb-cta-ar { transition: none; }
  .fb-cta:hover .fb-cta-ar { transform: none; }
}

/* ===== v16: napis przycisku FB – Cinzel 900, złoty gradient, dopasowany do szerokości (SVG textLength) ===== */
.fb-cta { gap: 10px; padding: 12px 12px 12px 10px; --fbs1: #FFF4C4; --fbs2: #F3DC8A; --fbs3: #D4AF37; --fbs4: #A8842A; --fbs5: #EBCB6E;
  --fb-glow: drop-shadow(0 1px 0 rgba(0,0,0,.65)) drop-shadow(0 0 7px rgba(212,175,55,.38)); }
:root[data-theme="light"] .fb-cta { --fbs1: #A27C18; --fbs2: #8A6A14; --fbs3: #6E5310; --fbs4: #5A430B; --fbs5: #7D5F12;
  --fb-glow: drop-shadow(0 1px 0 rgba(255,255,255,.9)) drop-shadow(0 1px 5px rgba(168,132,31,.28)); }
.fbs1 { stop-color: var(--fbs1); } .fbs2 { stop-color: var(--fbs2); } .fbs3 { stop-color: var(--fbs3); } .fbs4 { stop-color: var(--fbs4); } .fbs5 { stop-color: var(--fbs5); }
.fb-cta-ic { width: 32px; height: 32px; }
.fb-cta-ic svg { width: 18px; height: 18px; }
.fb-cta-ar { width: 26px; height: 26px; }
.fb-cta-ar svg { width: 15px; height: 15px; }
.fb-cta-t { position: relative; display: block; padding: 2px 0; }
.fb-sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.fb-cta-svg { display: block; width: 100%; height: auto; overflow: visible; filter: var(--fb-glow); }
.fb-cta-svg text { font-family: 'Cinzel', 'Times New Roman', Georgia, serif; font-weight: 900; font-size: 100px; }
.fb-1l { display: none; aspect-ratio: 1980 / 82; }
.fb-2l { aspect-ratio: 1140 / 182; }
@media (min-width: 560px) {
  .fb-1l { display: block; }
  .fb-2l { display: none; }
}
@media (min-width: 700px) { .fb-cta { padding: 16px 16px 16px 14px; gap: 14px; } .fb-cta-ic { width: 38px; height: 38px; } .fb-cta-ar { width: 30px; height: 30px; } }

/* ===== Twoje godziny: historia i edycja zmian przez pracownika ===== */
.st-hours { display: block; text-decoration: none; color: inherit; margin-top: 10px; }
.sth-row { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; padding: 3px 0; }
.sth-row b { font-variant-numeric: tabular-nums; }
.sth-link { margin-top: 6px; font-size: 12.5px; font-weight: 800; color: var(--gold-l); }
.mh-list { padding-top: 6px; padding-bottom: 8px; }
.mh-row { display: grid; grid-template-columns: 52px 1fr auto; gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line2); font-size: 13.5px; }
.mh-row:first-child { border-top: 0; }
.mh-row.is-paid { opacity: .8; }
.mh-row.empty { padding: 5px 0; }
.mh-row.empty .btn { opacity: .85; }
.mh-d b { display: block; font-variant-numeric: tabular-nums; } .mh-d span { font-size: 11px; color: var(--muted); }
.mh-t b { display: block; font-variant-numeric: tabular-nums; } .mh-t > span { font-size: 12px; color: var(--muted); }
.mh-adv { font-size: 12px; margin-top: 3px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.mh-btn { padding: 2px 4px; margin: 0; font-size: 12px; }
.mh-a .btn-sm { white-space: nowrap; }
.mh-note { margin-top: 8px; }
.err-card { color: var(--st-bad-t); }
.badge.emp-ed { background: rgba(250,204,21,.14); color: var(--warn-t); margin-left: 4px; }
.badge.emp-ed.manual { background: rgba(96,165,250,.16); color: #93c5fd; }
:root[data-theme="light"] .badge.emp-ed.manual { color: #1d4ed8; }
.sh-d .badge.emp-ed { margin: 3px 0 0; display: inline-flex; white-space: normal; border-radius: 8px; }
.se-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; padding: 6px 0; border-top: 1px solid var(--line2); }
.se-row:first-child { border-top: 0; }

/* ===== v20/v22: nowa strona startowa (podgląd ?podglad=1) – wideo w banerze, opis, kontakt, galeria realizacji ===== */
.landing-banner.has-film { position: relative; overflow: hidden; container-type: inline-size; }
.bv-wrap { position: absolute; left: 0; right: 0; top: 0; height: var(--bv-h); overflow: hidden; z-index: 2; background: transparent; }
.bv-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; opacity: 0; transition: opacity .4s ease; }
.bv-on .bv-video { opacity: 1; }
.bv-off .bv-wrap, .bv-off .bv-sound { display: none; }
.bv-sound { position: absolute; left: 2.6cqw; bottom: 2.6cqw; z-index: 3; width: 9.4cqw; height: 9.4cqw; min-width: 36px; min-height: 36px; border-radius: 50%; border: 1.5px solid rgba(233,199,102,.7);
  background: rgba(0,0,0,.6); color: #fff; font-size: 4.4cqw; display: grid; place-items: center; cursor: pointer; line-height: 1; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.bv-sound[aria-pressed="true"] { background: var(--gold-grad); }
/* v28: napisy na filmie – duże, pogrubione, złoto/biel na ciemnym gradiencie, zsynchronizowane z lektorem */
.bv-caps { position: absolute; left: 0; right: 0; top: 0; height: 56%; z-index: 2; pointer-events: none; opacity: 0; transition: opacity .4s ease;
  background: linear-gradient(180deg, rgba(0,0,0,.86) 0%, rgba(0,0,0,.66) 42%, rgba(0,0,0,.28) 75%, rgba(0,0,0,0) 100%); }
.bv-on .bv-caps { opacity: 1; }
.bv-cap { position: absolute; left: 4cqw; right: 4cqw; top: 3cqw; display: flex; flex-direction: column; align-items: center; gap: 1.4cqw; text-align: center; line-height: 1.12;
  opacity: 0; transform: translateY(-1.6cqw); transition: opacity .35s ease, transform .35s ease; }
.bv-cap.on { opacity: 1; transform: none; }
.bv-cap-h { font-family: 'Cinzel', serif; font-weight: 900; font-size: 7.6cqw; letter-spacing: .02em; text-transform: uppercase; white-space: nowrap; color: #f6d978;
  text-shadow: 0 .35cqw 0 #000, 0 0 2.4cqw rgba(0,0,0,.95), 0 0 .8cqw rgba(0,0,0,.95); }
.bv-cap[data-i="0"] .bv-cap-h { font-size: 10.5cqw; letter-spacing: .04em; }
.bv-cap-s { font-weight: 800; font-size: 4.7cqw; color: #fff; max-width: 96%; text-wrap: balance; text-shadow: 0 .3cqw 0 #000, 0 0 2cqw rgba(0,0,0,.95), 0 0 .6cqw #000; }
.bv-cap-tel .bv-cap-h { font-size: 5.4cqw; letter-spacing: .28em; color: #fff; }
.bv-cap-tel .bv-cap-s { font-family: 'Cinzel', serif; font-weight: 900; font-size: 11cqw; line-height: 1; white-space: nowrap; color: #f6d978; font-variant-numeric: lining-nums; }
.bv-hint { position: absolute; left: calc(2.6cqw + max(9.4cqw, 36px) + 1.6cqw); bottom: calc(2.6cqw + (max(9.4cqw, 36px) - 7.2cqw) / 2); z-index: 3; display: inline-flex; align-items: center; height: 7.2cqw; min-height: 26px;
  padding: 0 3cqw; border-radius: 999px; background: rgba(0,0,0,.72); border: 1px solid rgba(233,199,102,.6); color: #f6d978; font-size: 3.6cqw; font-weight: 800; line-height: 1; cursor: pointer;
  animation: bvHint 2.4s ease-in-out infinite; }
.bv-hint[hidden], .bv-off .bv-hint { display: none; }
@keyframes bvHint { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
@media (prefers-reduced-motion: reduce) { .bv-hint { animation: none; } }
@media (prefers-reduced-motion: reduce) { .bv-wrap, .bf-card { display: none !important; } }
.lp2 .lp-about, .lp2 .lp-contact, .lp2 .lp-gal, .lp2 .lp-offer, .lp2 .lp-quote, .lp2 .lp-gratis { width: 100%; max-width: 640px; }
.lp-eyebrow { font-size: 11px; font-weight: 800; letter-spacing: .3em; text-transform: uppercase; color: var(--gold-t); display: flex; align-items: center; gap: 10px; }
.lp-eyebrow::after { content: ''; flex: 1; height: 1px; background: linear-gradient(90deg, var(--gold), transparent); }
.lp-h { font-family: 'Cinzel', serif; font-weight: 800; font-size: clamp(21px, 6vw, 28px); line-height: 1.2; margin: 8px 0 12px; letter-spacing: .02em;
  background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-about { margin-top: 26px; }
.lp-about p { margin: 0 0 12px; line-height: 1.62; font-size: 15px; color: var(--text); }
.lp-about .lp-lead { font-size: 16.5px; line-height: 1.6; }
.lp-svc { list-style: none; padding: 0; margin: 4px 0 16px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-svc li { position: relative; padding: 9px 10px 9px 28px; border-radius: 12px; border: 1px solid var(--line); font-size: 13.5px; font-weight: 700; line-height: 1.25; color: var(--gold-l);
  background: linear-gradient(135deg, rgba(212,175,55,.10), transparent 70%), var(--card); }
.lp-svc li::before { content: ''; position: absolute; left: 11px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; transform: rotate(45deg); background: var(--gold-grad); box-shadow: 0 0 8px rgba(212,175,55,.5); }
.lp-hl { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px; }
.lp-hl span { font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 6px 10px; border-radius: 999px; border: 1px solid var(--gold-d); color: var(--gold-l); }
.lp-contact { margin-top: 26px; display: grid; gap: 10px; }
.lp-ct { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 12px; border-radius: 16px; text-decoration: none; color: var(--text);
  border: 1.5px solid transparent; background: linear-gradient(180deg, #17150f, #0b0a07) padding-box, var(--gold-grad) border-box; box-shadow: 0 10px 26px rgba(0,0,0,.45); transition: transform .12s ease; }
.lp-ct:active { transform: scale(.985); }
.lp-ct-ic { flex: none; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font-size: 19px; background: var(--gold-grad); box-shadow: 0 0 16px rgba(212,175,55,.35); }
.lp-ct-t { flex: 1; min-width: 0; }
.lp-ct-t small { display: block; font-size: 11.5px; color: #b9b3a3; font-weight: 600; }
.lp-ct-t b { display: block; font-size: clamp(16px, 5vw, 21px); font-weight: 800; letter-spacing: .02em; overflow-wrap: anywhere;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
#lp-mail .lp-ct-t b { font-size: clamp(14.5px, 4.2vw, 19px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; overflow-wrap: normal; }
#lp-tel .lp-ct-t b { font-family: 'Cinzel', serif; font-size: clamp(21px, 7vw, 28px); font-weight: 900; letter-spacing: .06em; }
.lp-ct-ar { flex: none; font-size: 26px; color: var(--gold-l); line-height: 1; }
:root[data-theme="light"] .lp-ct { background: linear-gradient(180deg, #fffdf7, #f6eed8) padding-box, var(--gold-grad) border-box; box-shadow: 0 6px 18px rgba(60,45,10,.14); }
:root[data-theme="light"] .lp-ct-t small { color: var(--muted); }
:root[data-theme="light"] .lp-ct-t b { background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; }
.lp2 .fb-cta { margin-top: 14px; }
/* ===== v24: konwersja na stronie startowej – oferta, gratis, wycena, sticky call ===== */
.lp-offer { margin-top: 18px; padding: 16px 14px 18px; border-radius: 18px; text-align: center;
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #1a170f 0%, #0b0a07 100%) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 12px 32px rgba(0,0,0,.5), 0 0 28px rgba(212,175,55,.18); }
.lp-offer-badge { display: inline-block; font-family: 'Cinzel', serif; font-weight: 900; font-size: clamp(16px, 4.6vw, 21px);
  letter-spacing: .03em; line-height: 1.25; padding: 8px 14px; border-radius: 999px; margin-bottom: 12px;
  color: #1a1405; background: var(--gold-grad); box-shadow: 0 0 20px rgba(212,175,55,.45); }
.lp-offer-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 8px; text-align: left; }
.lp-offer-list li { position: relative; padding: 8px 10px 8px 32px; border-radius: 12px; font-size: 14px; font-weight: 700;
  color: #F3DC8A; border: 1px solid rgba(212,175,55,.28); background: rgba(212,175,55,.06); }
.lp-offer-list li::before { content: '✓'; position: absolute; left: 10px; top: 50%; transform: translateY(-50%);
  color: #D4AF37; font-weight: 900; }
.lp-offer-call { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 16px 18px; border-radius: 16px; text-decoration: none; font-family: 'Cinzel', serif;
  font-weight: 900; font-size: clamp(18px, 5.2vw, 24px); letter-spacing: .04em; color: #1a1405;
  background: var(--gold-grad); box-shadow: 0 8px 28px rgba(212,175,55,.4); animation: lpPulse 1.8s ease-in-out infinite; }
.lp-offer-call:active { transform: scale(.98); }
@keyframes lpPulse { 0%, 100% { box-shadow: 0 8px 28px rgba(212,175,55,.35), 0 0 0 0 rgba(212,175,55,.45); }
  50% { box-shadow: 0 8px 32px rgba(212,175,55,.55), 0 0 0 10px rgba(212,175,55,0); } }
@media (prefers-reduced-motion: reduce) { .lp-offer-call { animation: none; } }
:root[data-theme="light"] .lp-offer {
  background: linear-gradient(180deg, #fffdf7, #f6eed8) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 8px 22px rgba(60,45,10,.14); }
:root[data-theme="light"] .lp-offer-list li { color: #6E5310; background: rgba(212,175,55,.1); }

.lp-gratis { margin-top: 14px; text-align: center; padding: 13px 14px;
  font-size: clamp(14px, 3.9vw, 17px); font-weight: 800; letter-spacing: .01em; line-height: 1.35; color: #F3DC8A;
  border-radius: 16px; border: 1.5px solid transparent;
  background: linear-gradient(180deg, #1a170f, #0b0a07) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 10px 28px rgba(0,0,0,.5), 0 0 22px rgba(212,175,55,.22); }
.lp-gratis b { font-weight: 900; letter-spacing: .04em;
  background: var(--gold-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
:root[data-theme="light"] .lp-gratis { color: #6E5310;
  background: linear-gradient(180deg, #fffdf7, #f6eed8) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 6px 18px rgba(60,45,10,.16), 0 0 0 1px rgba(212,175,55,.2); }
:root[data-theme="light"] .lp-gratis b { background: var(--gold-text-grad); -webkit-background-clip: text; background-clip: text; }
@media (min-width: 700px) { .lp-gratis { margin-top: 16px; padding: 15px 18px; font-size: 18px; } }

.lp-quote { margin-top: 22px; padding: 16px 14px 18px; border-radius: 18px;
  border: 1.5px solid transparent;
  background: linear-gradient(180deg, #15130e, #0b0a07) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 10px 28px rgba(0,0,0,.45); }
.lp-quote .lp-h { margin-top: 6px; }
.lp-quote-lead { margin: 0 0 12px; font-size: 14.5px; color: #cfc6ad; line-height: 1.45; }
.lp-quote-form { display: grid; gap: 10px; }
.lp-quote-jobs { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.lp-quote-jobs legend { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--gold-t); margin-bottom: 6px; width: 100%; }
.lp-qj { cursor: pointer; }
.lp-qj input { position: absolute; opacity: 0; pointer-events: none; }
.lp-qj span { display: inline-block; padding: 8px 12px; border-radius: 999px; font-size: 13px; font-weight: 700;
  border: 1px solid var(--gold-d); color: var(--gold-l); background: rgba(212,175,55,.06); }
.lp-qj input:checked + span { background: var(--gold-grad); color: #1a1405; border-color: transparent; }
.lp-qj input:focus-visible + span { outline: 2px solid var(--gold-l); outline-offset: 2px; }
.lp-hp { position: absolute !important; left: -9999px !important; width: 1px !important; height: 1px !important; opacity: 0 !important; }
.lp-quote-ok { margin: 4px 0 0; text-align: center; font-weight: 800; color: #F3DC8A; font-size: 14.5px; }
.lp-quote-err { margin: 4px 0 0; text-align: center; font-weight: 700; color: var(--red-t, #f87171); font-size: 13.5px; }
:root[data-theme="light"] .lp-quote {
  background: linear-gradient(180deg, #fffdf7, #f6eed8) padding-box, var(--gold-grad) border-box;
  box-shadow: 0 6px 18px rgba(60,45,10,.12); }
:root[data-theme="light"] .lp-quote-lead { color: var(--muted); }
:root[data-theme="light"] .lp-quote-ok { color: #6E5310; }

.lp-sticky { display: none; }
@media (max-width: 699px) {
  .lp-sticky { position: fixed; z-index: 28; left: calc(8px + var(--safe-l)); right: calc(8px + var(--safe-r));
    bottom: calc(8px + var(--safe-b)); display: none; gap: 8px; }
  body.lp-has-sticky .lp-sticky { display: flex; }
  body.lp-has-sticky .lp2 { padding-bottom: calc(72px + var(--safe-b)); }
  body.lp-has-sticky #install-banner { bottom: calc(70px + var(--safe-b)); }
  .lp-st-call, .lp-st-wa { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 48px; border-radius: 14px; text-decoration: none; font-weight: 800; font-size: 15px; }
  .lp-st-call { color: #1a1405; background: var(--gold-grad); box-shadow: 0 6px 20px rgba(212,175,55,.4); }
  .lp-st-wa { color: #F3DC8A; background: #0b0a07; border: 1.5px solid var(--gold-d); }
  :root[data-theme="light"] .lp-st-wa { color: #6E5310; background: #fffdf7; }
}
@media (min-width: 700px) { .lp-sticky { display: none !important; } }
.lp-gal { margin-top: 28px; }
.lp-gal[hidden] { display: none !important; }
.lp-gal-head { display: flex; align-items: flex-end; gap: 10px; }
.lp-gal-head .lp-h { flex: 1; margin-bottom: 10px; }
.lp-gal-nav { display: none; gap: 8px; margin-bottom: 12px; }
@media (hover: hover) and (min-width: 700px) { .lp-gal-nav { display: flex; } }
.lp-gn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--gold-d); background: transparent; color: var(--gold-l); display: grid; place-items: center; cursor: pointer; }
.lp-gn svg { width: 18px; height: 18px; stroke: currentColor; }
.lp-track { display: grid; grid-auto-flow: column; grid-auto-columns: 74%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 2px; padding: 2px 2px 12px;
  -webkit-overflow-scrolling: touch; scrollbar-width: thin; scrollbar-color: var(--gold-d) transparent; overscroll-behavior-x: contain; }
@media (min-width: 560px) { .lp-track { grid-auto-columns: calc((100% - 24px) / 2.4); } }
.lp-card { scroll-snap-align: start; position: relative; padding: 0; border: 1.5px solid transparent; border-radius: 16px; overflow: hidden; cursor: zoom-in; text-align: left; color: #fff;
  background: linear-gradient(#0b0a07, #0b0a07) padding-box, var(--gold-grad) border-box; box-shadow: 0 10px 26px rgba(0,0,0,.45); }
.lp-card-img { display: block; aspect-ratio: 4 / 5; background: #111; }
.lp-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
@media (hover: hover) { .lp-card:hover .lp-card-img img { transform: scale(1.05); } }
.lp-card-t { position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 12px 11px; background: linear-gradient(180deg, transparent, rgba(0,0,0,.88) 55%); }
.lp-card-t b { display: block; font-family: 'Cinzel', serif; font-size: 15px; font-weight: 800; line-height: 1.2; color: #f3dc8a; }
.lp-card-t small { display: block; margin-top: 3px; font-size: 11px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #cfc6ad; }
.lp2 .login-heading { margin-top: 30px; }
/* lightbox realizacji: tytuł i opis */
.g-info { position: fixed; left: 0; right: 0; bottom: 0; padding: 16px 18px calc(16px + var(--safe-b)); background: linear-gradient(180deg, transparent, rgba(0,0,0,.92) 40%); color: #eee; text-align: center; }
.g-info b { display: block; font-family: 'Cinzel', serif; font-size: 18px; color: #f3dc8a; }
.g-info p { margin: 6px auto 0; max-width: 560px; font-size: 14px; line-height: 1.5; color: #d6d0c2; white-space: pre-line; }
.gallery.has-info img { max-height: 72dvh; }
/* panel szefa – galeria */
.gal-empty { border-style: dashed; border-color: var(--gold-d); }
.gi-new { display: grid; gap: 4px; margin-bottom: 6px; }
.gi-new > b { font-family: 'Cinzel', serif; font-size: 16px; margin-bottom: 6px; }
.gi-card { margin-bottom: 12px; }
.gi-head { gap: 8px; }
.gi-cover { width: 52px; height: 52px; flex: none; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); display: grid; place-items: center; background: var(--surface); font-size: 22px; }
.gi-cover img { width: 100%; height: 100%; object-fit: cover; }
.gi-title { color: var(--gold-l); font-size: 15px; }
.gi-hidden { color: var(--warn-t); }
.gi-desc { margin: 8px 2px 0; color: var(--muted); white-space: pre-line; }
.gi-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; margin-top: 10px; }
.gp { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); display: flex; flex-direction: column; }
.gp-img { padding: 0; border: 0; background: none; aspect-ratio: 1; cursor: zoom-in; display: block; }
.gp-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.gp-bar { display: flex; }
.gp-bar button { flex: 1; border: 0; border-top: 1px solid var(--line); background: var(--surface2); color: var(--gold-l); padding: 6px 0; font-size: 15px; cursor: pointer; }
.gp-bar button + button { border-left: 1px solid var(--line); }
.gp-bar button:disabled { opacity: .3; cursor: default; }
.gp-add { border-style: dashed; border-color: var(--gold-d); align-items: center; justify-content: center; gap: 2px; min-height: 120px; cursor: pointer; color: var(--gold-l); }
.gp-add span { font-size: 28px; line-height: 1; } .gp-add small { font-size: 11px; font-weight: 700; }
.gi-actions { margin-top: 10px; }
.gi-del { color: var(--red-t); }

/* v21/v22: karta „telefon” po końcu wideo (5 s) + stały 📞 w rogu banera */
.bf-card { position: absolute; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; text-align: center; padding: 6cqw; line-height: 1.3;
  background: radial-gradient(90% 55% at 50% 42%, rgba(212,175,55,.22), transparent 70%), radial-gradient(60% 40% at 50% 100%, rgba(212,175,55,.12), transparent 70%), linear-gradient(180deg, #0d0b06, #000 60%, #070604);
  animation: bfCardIn .6s ease both; -webkit-user-select: text; user-select: text; }
.bf-card[hidden] { display: none; }
.bf-card::before { content: ''; position: absolute; inset: 3.2cqw; border: 1.5px solid rgba(212,175,55,.55); border-radius: 4cqw; pointer-events: none; box-shadow: inset 0 0 40px rgba(212,175,55,.08); }
@keyframes bfCardIn { from { opacity: 0; transform: scale(1.03); } to { opacity: 1; transform: none; } }
@keyframes bfShine { from { background-position: 130% 0; } to { background-position: -130% 0; } }
.bf-card-in { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4.2cqw; width: 100%; }
.landing-banner .bf-card-logo { display: block; width: 58%; height: auto; aspect-ratio: 402 / 69; opacity: .95; }
.bf-card-eb { font-size: 3.4cqw; font-weight: 800; letter-spacing: .32em; text-transform: uppercase; color: #e9c766; }
.bf-tel { display: block; font-family: 'Cinzel', serif; font-weight: 900; font-size: 14.6cqw; line-height: 1; letter-spacing: .01em; white-space: nowrap; text-decoration: none; font-variant-numeric: lining-nums;
  background: linear-gradient(100deg, #a8842a 0%, #e9c766 22%, #fff3c4 32%, #d4af37 44%, #b8892a 62%, #f3dc8a 80%, #a8842a 100%); background-size: 260% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent; filter: drop-shadow(0 4px 18px rgba(212,175,55,.35)); animation: bfShine 3.2s linear infinite; padding: 1cqw 0; }
.bf-card-act { display: flex; gap: 3cqw; justify-content: center; flex-wrap: wrap; }
.bf-btn { display: inline-flex; align-items: center; gap: 2cqw; padding: 2.8cqw 5cqw; border-radius: 999px; font-size: 4cqw; font-weight: 800; text-decoration: none; cursor: pointer; border: 1.5px solid transparent; font-family: inherit; }
.bf-call { background: var(--gold-grad); color: #1a1405; box-shadow: 0 6px 22px rgba(212,175,55,.3); }
.bf-copy { background: linear-gradient(#0b0a07, #0b0a07) padding-box, var(--gold-grad) border-box; color: #f3dc8a; }
.bf-mail { font-size: 5cqw; font-weight: 700; color: #f3dc8a; text-decoration: none; border-bottom: 1px solid rgba(233,199,102,.5); padding-bottom: .6cqw; overflow-wrap: anywhere; }
.bf-inv { margin: 0; font-family: 'Cinzel', serif; font-size: 5.6cqw; font-weight: 800; line-height: 1.3; color: #f2eee3; max-width: 92%; text-wrap: balance; }
.bf-inv b { color: #e9c766; }
.bf-chip { position: absolute; z-index: 9; right: 3cqw; bottom: 3cqw; display: inline-flex; align-items: center; gap: 1.6cqw; padding: 1.8cqw 3.2cqw; border-radius: 999px; text-decoration: none;
  font-size: 3.6cqw; font-weight: 800; color: #1a1405; background: var(--gold-grad); box-shadow: 0 4px 16px rgba(0,0,0,.55); line-height: 1.2; }
.card-on .bf-chip { display: none; }

/* ===== ORGANIZER (📒) ===== */
.bottom-nav a span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 0 1px; }
.bottom-nav.n8 a { flex: 1 1 0; min-width: 0; font-size: 9.5px; gap: 2px; letter-spacing: -.01em; }
.bottom-nav.n8 a svg { width: 21px; height: 21px; }
@media (max-width: 374px) { .bottom-nav a { font-size: 9.5px; } .bottom-nav.n8 a { font-size: 8.5px; letter-spacing: -.02em; } .bottom-nav.n8 a svg { width: 20px; height: 20px; } }
@media (min-width: 900px) { .bottom-nav.n8 a { flex: 0; min-width: auto; font-size: 14px; gap: 12px; letter-spacing: 0; } .bottom-nav.n8 a svg { width: 23px; height: 23px; } }
.org-tabs { display: flex; gap: 6px; overflow-x: auto; margin-top: 12px; padding-bottom: 2px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.org-tabs::-webkit-scrollbar { display: none; }
.org-tabs .pd-chip { flex-shrink: 0; text-decoration: none; }
.org-head .pd-daynav, .org-head .pd-chips, .org-head .wt-pick { margin-top: 10px; }
.org-quick { display: flex; gap: 8px; padding: 10px; align-items: center; }
.org-quick .input { min-width: 0; }
.org-actions { display: flex; gap: 8px; flex-wrap: wrap; margin: -2px 0 12px; }
.org-actions .btn { flex: 1 1 auto; }
.org-leave { border-color: rgba(59,130,246,.45); color: var(--chip-leave-t); font-weight: 700; }
.org-tl { position: relative; margin-top: 6px; }
.org-tl::before { content: ''; position: absolute; left: 61px; top: 8px; bottom: 8px; width: 2px; background: var(--line); border-radius: 2px; }
.org-tl-row { display: flex; align-items: center; gap: 10px; padding: 8px 4px; border-radius: 12px; position: relative; cursor: pointer; }
.org-tl-row:active { background: var(--chip-bg); }
.org-tl-time { width: 42px; flex-shrink: 0; text-align: right; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 13.5px; color: var(--gold-t); }
.org-tl-dot { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: var(--surface2); border: 1px solid var(--line); z-index: 1; }
.org-tl-body { min-width: 0; }
.org-tl-body b { display: block; overflow-wrap: anywhere; }
.org-tl-row.meal .org-tl-time, .org-tl-row.shift .org-tl-time { color: var(--muted); font-weight: 700; }
.org-tl-row.shift b, .org-tl-row.meal b { font-weight: 600; }
.org-tl-row.done b { text-decoration: line-through; color: var(--muted); }
.org-tl-row.boss .org-tl-dot, .pd-item.boss .pd-check { border-color: var(--gold); }
.org-now { position: relative; height: 18px; margin: 2px 0; }
.org-now::before { content: ''; position: absolute; left: 50px; right: 4px; top: 9px; height: 2px; background: #EF4444; border-radius: 2px; }
.org-now span { position: absolute; right: 6px; top: -1px; font-size: 10.5px; font-weight: 800; color: #fff; background: #EF4444; padding: 1px 7px; border-radius: 999px; z-index: 1; }
.org-glasses { display: flex; gap: 6px; flex-wrap: wrap; margin: 6px 0 4px; }
.org-glass { width: 36px; height: 40px; border-radius: 10px; border: 1px solid var(--line2); background: var(--surface2); font-size: 17px; cursor: pointer; filter: grayscale(1); opacity: .45; transition: transform .12s, opacity .12s; }
.org-glass.on { filter: none; opacity: 1; border-color: rgba(59,130,246,.55); background: rgba(59,130,246,.12); }
.org-glass:active { transform: scale(.92); }
.org-glass:disabled { cursor: default; }
.org-pin { display: flex; flex-direction: column; gap: 2px; padding: 9px 2px; border-top: 1px solid var(--line2); text-decoration: none; color: inherit; }
.org-pin:first-of-type { border-top: 0; }
.org-form .row.org-row2 { gap: 8px; align-items: flex-end; flex-wrap: wrap; }
.org-form .row.org-row2 .field { margin-bottom: 10px; min-width: 96px; }
.org-form select.input { appearance: auto; }
.org-alarm { gap: 10px; align-items: flex-start; margin: 2px 0 12px; }
.org-alarm input, .org-form input[type=checkbox] { width: 20px; height: 20px; accent-color: #D4AF37; flex-shrink: 0; }
.org-seg { display: flex; gap: 6px; margin-bottom: 12px; }
.org-seg label { flex: 1; }
.org-seg input { position: absolute; opacity: 0; pointer-events: none; }
.org-seg span { display: block; text-align: center; padding: 10px 6px; border-radius: 12px; border: 1px solid var(--line2); font-size: 13px; font-weight: 600; cursor: pointer; }
.org-seg input:checked + span { border-color: var(--gold); color: var(--gold-t); background: rgba(212,175,55,.08); }
.org-seg input:focus-visible + span { outline: 2px solid var(--gold); }
.org-wday { display: block; text-decoration: none; color: inherit; }
.org-wday.today { border-color: var(--gold); }
.org-wd-h { margin-bottom: 6px; }
.org-wd-items { display: grid; gap: 3px; font-size: 13.5px; margin-bottom: 6px; }
.org-wd-t { display: inline-block; min-width: 42px; font-weight: 800; color: var(--gold-t); font-variant-numeric: tabular-nums; }
.org-wd-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.org-notes { display: grid; gap: 0; }
.org-note { cursor: pointer; }
.org-note.pinned { border-color: var(--gold); }
.org-note-b { margin-top: 6px; font-size: 14px; color: var(--text); overflow-wrap: anywhere; max-height: 9.5em; overflow: hidden; }
.org-rem { display: flex; align-items: center; gap: 10px; padding: 10px 2px; border-top: 1px solid var(--line2); cursor: pointer; }
.org-rem:first-of-type { border-top: 0; }
.org-rem-t { width: 46px; font-weight: 800; font-size: 15px; color: var(--gold-t); font-variant-numeric: tabular-nums; }
.org-push .plc-foot { margin-top: 10px; }
.org-alarm-pop { text-align: center; padding: 6px 0; }
.org-alarm-ic { font-size: 46px; animation: orgRing .6s ease-in-out infinite alternate; }
@keyframes orgRing { from { transform: rotate(-12deg); } to { transform: rotate(12deg); } }
@media (prefers-reduced-motion: reduce) { .org-alarm-ic { animation: none; } }
.org-tabs .pd-chip { padding: 9px 12px; font-size: 13.5px; }
.org-tl-row.done .pd-check { background: var(--gold-grad); border-color: var(--gold); }

/* ===== Wizualizacja podwórka (czat → 🏠); reszta stylów w /viz.css ===== */
.composer .viz-btn { color: var(--gold-l); }
@media (max-width: 380px) {
  .composer { gap: 4px; padding-left: 6px; padding-right: 6px; }
  .composer .icon-btn { width: 32px; height: 32px; }
  .composer .icon-btn svg { width: 20px; height: 20px; }
}
