:root {
  --paper: #f4f3ec; --white: #fffef9; --ink: #202f2a; --muted: #65716a; --line: #dcded4;
  --green: #304f3e; --green-ink: #fff; --lime: #d4e494; --soft: #e8eddf;
  --warn: #8a5a00; --warn-bg: #f5ecd6; --danger: #8b2f2f; --danger-bg: #f5e1df; --ok: #2f6f4f;
  --arena: #b4532a; --radius: 16px; --shadow: 0 10px 34px #223a2814; --tap: 52px;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color: var(--ink); background: var(--paper); font-synthesis: none; -webkit-text-size-adjust: 100%;
}
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */:root.mode-dark:not(.in-pracownia) { --paper: #151c19; --white: #1d2723; --ink: #eef1ea; --muted: #a2afa7; --line: #2f3d37; --soft: #26332d;
    --green: #8fbf9f; --green-ink: #0f1713; --lime: #3d5a38; --warn: #f0c36a; --warn-bg: #3b3115; --danger: #f2a09a; --danger-bg: #3d1f1d; --ok: #8fd0a6; --shadow: none; }

* { box-sizing: border-box; }
html, body { margin: 0; background: var(--paper); }
body { min-height: 100vh; line-height: 1.45; padding: env(safe-area-inset-top) 0 0; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 26px; letter-spacing: -.02em; line-height: 1.15; }
h2 { font-size: 20px; letter-spacing: -.01em; }
h3 { font-size: 16px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: var(--green); }
.boot { padding: 40px 20px; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.hidden, [hidden] { display: none !important; }

/* układ */
.shell { max-width: 980px; margin: 0 auto; padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 8px; position: sticky; top: var(--kbot-h, 0px); z-index: 5; background: var(--paper); }
.topbar .brand { font-size: 13px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.bell { position: relative; width: 44px; height: 44px; border-radius: 22px; border: 1px solid var(--line); background: var(--white); font-size: 20px; }
.bell b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--danger); color: #fff; font-size: 12px; line-height: 20px; }
.page-head { padding: 8px 0 16px; display: grid; gap: 6px; }
.page-head p { color: var(--muted); }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; display: flex; background: var(--white); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -6px 24px #00000010; }
.tabbar a { flex: 1; display: grid; justify-items: center; gap: 2px; padding: 8px 4px; min-height: 56px; text-decoration: none; color: var(--muted); font-size: 12px; border-radius: 12px; }
.tabbar a span { font-size: 22px; line-height: 1; }
.tabbar a.on { color: var(--green); background: var(--soft); font-weight: 600; }

/* karty i przyciski */
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow); display: grid; gap: 10px; margin-bottom: 14px; }
.card.hero { padding: 20px; }
.eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--muted); text-transform: uppercase; }
.big-time { font-size: 38px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; }
.btn { min-height: var(--tap); padding: 0 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-weight: 600; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none; color: var(--ink); }
.btn.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.small { min-height: 44px; padding: 0 14px; font-size: 14px; border-radius: 12px; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.stack { display: grid; gap: 12px; }
.grid2 { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* formularze */
label.f { display: grid; gap: 6px; font-size: 14px; color: var(--muted); }
input, select, textarea { width: 100%; min-height: var(--tap); padding: 10px 14px; border-radius: 14px; border: 1px solid var(--line); background: var(--white); font-size: 17px; }
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible { outline: 3px solid #598469; outline-offset: 2px; }
input[type=checkbox] { width: 24px; min-height: 24px; height: 24px; }
.check { display: flex; gap: 12px; align-items: center; min-height: 44px; }

/* znaczniki */
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; background: var(--soft); color: var(--ink); }
.badge.arena { background: var(--arena); color: #fff; }
.badge.loc { color: #fff; }
.badge.warn { background: var(--warn-bg); color: var(--warn); }
.badge.danger { background: var(--danger-bg); color: var(--danger); }
.badge.ok { background: var(--soft); color: var(--ok); }
.banner { padding: 14px 16px; border-radius: 14px; background: var(--soft); display: grid; gap: 4px; }
.banner.warn { background: var(--warn-bg); color: var(--warn); }
.banner.danger { background: var(--danger-bg); color: var(--danger); }
.change { border: 2px solid var(--warn); background: var(--warn-bg); color: var(--warn); border-radius: var(--radius); padding: 16px; display: grid; gap: 6px; margin-bottom: 14px; }
.change h2 { font-size: 15px; letter-spacing: .05em; }
.change .was { text-decoration: line-through; opacity: .8; }
.change .now { font-size: 24px; font-weight: 700; }

/* grafik: lista dni (telefon) */
.daylist { display: grid; gap: 14px; }
.day { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.day.today { border-color: var(--green); box-shadow: 0 0 0 2px var(--green) inset; }
.day-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: var(--soft); font-weight: 600; }
.shift { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 16px; min-height: 60px; border-top: 1px solid var(--line); width: 100%; background: none; border-left: 0; border-right: 0; border-bottom: 0; text-align: left; }
.shift .who { font-weight: 600; }
.shift .hours { font-variant-numeric: tabular-nums; font-size: 18px; font-weight: 600; white-space: nowrap; }
.shift .meta { color: var(--muted); font-size: 14px; }
.add-line { padding: 10px 16px; border-top: 1px dashed var(--line); }
.loc-dot { display: inline-block; width: 10px; height: 10px; border-radius: 5px; margin-right: 6px; }
.table-only { display: none; }
@media (min-width: 900px) { .list-only { display: none; } .table-only { display: block; } }
.gridtable { width: 100%; border-collapse: collapse; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.gridtable th, .gridtable td { border: 1px solid var(--line); padding: 8px; vertical-align: top; font-size: 14px; text-align: left; font-weight: 500; }
.gridtable thead th { background: var(--soft); }
.gridtable td.today, .gridtable th.today { background: var(--soft); }
.chip { display: block; width: 100%; text-align: left; background: var(--lime); color: var(--ink); border: 0; border-radius: 10px; padding: 6px 8px; margin-bottom: 4px; font-size: 13px; }
.chip.arena { background: #f1d3c3; }
.chip.off { background: var(--soft); color: var(--muted); }
.chip.plus { background: none; border: 1px dashed var(--line); color: var(--muted); text-align: center; }

/* przełącznik widoków i miesiąc */
.segmented { display: inline-flex; background: var(--soft); border-radius: 14px; padding: 4px; gap: 4px; width: fit-content; }
.seg-btn { min-height: 44px; padding: 0 18px; border: 0; border-radius: 10px; background: transparent; font-weight: 600; color: var(--muted); }
.seg-btn.on { background: var(--green); color: var(--green-ink); }
a.seg-btn { display: inline-flex; align-items: center; justify-content: center; }   /* zakładki-linki (Odprawa) wyrównane jak przyciski */
.month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; margin: 14px 0; }
.mhead { text-align: center; font-size: 12px; color: var(--muted); text-transform: uppercase; padding: 4px 0; }
.mcell { min-height: 74px; display: grid; align-content: start; gap: 2px; padding: 6px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--white); text-align: left; overflow: hidden; }
.mcell.other { opacity: .4; }
.mcell.today { border: 2px solid var(--green); }
.mnum { font-weight: 700; font-size: 14px; }
.mtag { display: inline-block; font-size: 11px; font-weight: 600; background: var(--lime); border-radius: 6px; padding: 1px 5px; width: fit-content; }
.mtag.arena { background: #f1d3c3; } .mtag.off { background: var(--soft); color: var(--muted); }
.mhours { font-size: 11px; color: var(--muted); }
.mchips { display: none; }
@media (min-width: 900px) { .mcell { min-height: 112px; padding: 8px; } .mchips { display: grid; gap: 2px; } .mchip { font-size: 12px; background: var(--soft); border-radius: 6px; padding: 1px 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .mchip.off { color: var(--muted); } }

/* arkusz miesiąca jak w Excelu: dni w wierszach, osoby w kolumnach */
/* jeden kontener przewijany w dół i w bok; nagłówek i kolumna dni są przyklejone w jego obrębie */
.sheet-wrap { margin: 10px 0; border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; max-height: calc(100vh - var(--topbar-h, 66px) - 84px); max-height: calc(100dvh - var(--topbar-h, 66px) - 84px); position: relative; }
.sheet-table { border-collapse: collapse; width: max-content; min-width: 100%; font-variant-numeric: tabular-nums; }
.sheet-table th, .sheet-table td { border: 1px solid var(--line); padding: 5px 6px; text-align: center; font-size: 13px; font-weight: 500; white-space: nowrap; }
.sheet-table.narrow th, .sheet-table.narrow td { padding: 10px 8px; font-size: 15px; min-width: 92px; }
.sheet-table.wide td, .sheet-table.wide th.sh-sub { min-width: 64px; }
.sheet-table.wide td.sh-h { min-width: 56px; }
.sheet-table .sh-day { text-align: left; background: var(--soft); position: sticky; left: 0; z-index: 1; min-width: 64px; }
/* nagłówek z imionami przyklejony pod górnym paskiem podczas przewijania w dół */
.sheet-table thead th { position: sticky; top: 0; z-index: 3; height: 31px; box-shadow: 0 1px 0 var(--line); }
.sheet-table thead th.sh-sub { top: 31px; z-index: 3; }
.sheet-table thead th.sh-day { z-index: 5; }
.sheet-table tfoot th, .sheet-table tfoot td { position: sticky; bottom: 0; z-index: 2; }
.sheet-table tfoot th:first-child { left: 0; z-index: 4; }
.sheet-table .sh-day a { display: inline-block; min-width: 26px; padding: 6px 4px; font-size: 15px; font-weight: 700; color: inherit; text-decoration: none; }
.sheet-table .sh-wd { color: var(--muted); font-size: 11px; }
.sheet-table .sh-name { font-weight: 700; color: #202f2a; }
.sheet-table .sh-sub { background: var(--soft); font-size: 11px; color: var(--muted); }
.sheet-table .sh-h { color: var(--muted); }
.sheet-table .sh-total { background: var(--soft); font-weight: 700; }
.sheet-table tfoot th { background: var(--soft); text-align: left; }
.sheet-table tr.weekend td, .sheet-table tr.weekend th.sh-day { background: #bfe9bc; }
.sheet-table tr.today td, .sheet-table tr.today th.sh-day { outline: 2px solid var(--green); outline-offset: -2px; }
.sheet-table td.arena { background: #f1d3c3; }
.sheet-table td.off { color: var(--muted); font-style: italic; }
.sheet-table td.clickable { cursor: pointer; }
.sheet-table td.clickable:hover { filter: brightness(.96); }
.pc0 { background: #efd9a8; } .pc1 { background: #e8a9a9; } .pc2 { background: #f3d2c2; } .pc3 { background: #cfc8e6; } .pc4 { background: #a9c9ee; } .pc5 { background: #b9e0b5; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e5a31; } html.mode-dark:not(.in-pracownia) .sheet-table td.arena { background: #5a3322; } html.mode-dark:not(.in-pracownia) .sheet-table .sh-name { color: #202f2a; }


.more-opts summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; color: var(--green); font-weight: 600; }

/* historia / raporty */
.tbl { width: 100%; border-collapse: collapse; }
.tbl td, .tbl th { padding: 10px 6px; border-bottom: 1px solid var(--line); text-align: left; font-size: 15px; vertical-align: top; }
.tbl .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.pos { color: var(--warn); font-weight: 600; } .neg { color: var(--danger); font-weight: 600; } .zero { color: var(--ok); }
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.summary div { background: var(--soft); border-radius: 14px; padding: 12px; }
.summary b { display: block; font-size: 22px; letter-spacing: -.02em; }
.progress { position: relative; height: 10px; border-radius: 5px; background: var(--soft); overflow: hidden; }
.progress span { position: absolute; inset: 0 auto 0 0; background: var(--green); }

/* arkusz / okno */
dialog { border: 0; padding: 0; width: min(560px, 100vw); max-height: 92vh; border-radius: 20px 20px 0 0; background: var(--paper); color: var(--ink); box-shadow: 0 -10px 60px #00000040; margin: auto auto 0; }
@media (min-width: 700px) { dialog { border-radius: 20px; margin: auto; } }
dialog::backdrop { background: #0008; }
.sheet { padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: grid; gap: 14px; overflow: auto; max-height: 92vh; }
.sheet-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.seg { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--white); }
.seg .times { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.confirm { border: 2px solid var(--green); border-radius: var(--radius); padding: 16px; background: var(--white); display: grid; gap: 12px; }
.confirm .seg-line { display: grid; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.confirm .seg-line:last-of-type { border-bottom: 0; }
.confirm .total { font-size: 22px; font-weight: 700; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(86px + env(safe-area-inset-bottom)); max-width: min(92vw, 520px); background: var(--ink); color: var(--paper); padding: 12px 18px; border-radius: 14px; z-index: 50; box-shadow: var(--shadow); }
.mic { width: var(--tap); padding: 0; font-size: 22px; flex: none; }
.mic.rec { background: var(--danger); color: #fff; border-color: var(--danger); }
.login { max-width: 420px; margin: 0 auto; padding: 14vh 20px 40px; display: grid; gap: 16px; }
.login h1 { font-size: 30px; }

/* druk (karty pracy, raport) */
.print-only { display: none; }
@media print {
  body { background: #fff; color: #000; }
  .topbar, .tabbar, .no-print, .toast { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .card { box-shadow: none; border: 0; padding: 0; }
  .print-only { display: block; }
  .tbl td, .tbl th { font-size: 12px; }
  dialog { display: none; }
}

/* komputer: arkusz grafiku na całą szerokość, strona przewija się zwykłym kółkiem myszy;
   nagłówek z imionami przykleja się pod górnym paskiem (bez wewnętrznego pola przewijania) */
@media (min-width: 900px) {
  .shell.full { max-width: none; padding-left: 28px; padding-right: 28px; }
  .sheet-wrap { overflow: visible; max-height: none; overscroll-behavior: auto; }
  .sheet-table thead th { top: var(--topbar-h, 66px); }
  .sheet-table thead th.sh-sub { top: calc(var(--topbar-h, 66px) + 31px); }
  .sheet-table tfoot th, .sheet-table tfoot td { position: static; }
  .sheet-table.wide td, .sheet-table.wide th.sh-sub { min-width: 56px; }
  .sheet-table.wide { width: 100%; }
}

/* ===== strona logowania (wizytówka) ===== */
.landing { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); background: linear-gradient(135deg, #16231f 0%, #243d33 55%, #2f5a45 100%); color: #fff; }
.land-hero { padding: clamp(28px, 6vw, 84px); display: flex; flex-direction: column; justify-content: center; gap: 18px; }
.land-brand { letter-spacing: .28em; font-size: 13px; color: #d4e494; font-weight: 600; }
.land-hero h1 { font-size: clamp(32px, 5vw, 56px); line-height: 1.04; letter-spacing: -.03em; font-weight: 650; color: #fff; }
.land-sub { font-size: clamp(16px, 1.6vw, 19px); color: #c9d8cd; max-width: 520px; }
.land-feats { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 14px; max-width: 540px; }
.land-feats li { display: flex; gap: 14px; align-items: flex-start; }
.land-feats b { display: block; font-size: 16px; } .land-feats span { color: #aebfb3; font-size: 14px; }
.land-ic { flex: none; width: 44px; height: 44px; border-radius: 14px; background: #ffffff14; border: 1px solid #ffffff22; display: grid; place-items: center; color: #d4e494; }
.land-card { display: grid; place-items: center; padding: 28px; }
.land-form { width: min(420px, 100%); background: var(--paper); color: var(--ink); border-radius: 24px; padding: 30px 26px; display: grid; gap: 14px; box-shadow: 0 30px 80px #00000055; }
.land-form h2 { font-size: 26px; } .land-foot { color: #8fa597; font-size: 12px; margin-top: 18px; text-align: center; }
.land-card { grid-template-rows: auto auto; align-content: center; }
@media (max-width: 860px) { .landing { grid-template-columns: 1fr; } .land-hero { padding: 36px 22px 8px; } .land-feats { display: none; } .land-card { padding: 18px 16px 40px; } }

/* ===== ekran Start ===== */
.dash-hero { position: relative; overflow: hidden; background: linear-gradient(135deg, #1d3128 0%, #2f5a45 100%); color: #fff; border-radius: 22px; padding: 26px 24px; margin: 6px 0 16px; display: flex; justify-content: space-between; align-items: center; }
.dash-hello h1 { color: #fff; font-size: clamp(24px, 3.4vw, 34px); margin: 4px 0 6px; }
.dash-hello p { color: #c9d8cd; }
.eyebrow.on-dark { color: #d4e494; }
.dash-sun { color: #d4e49455; flex: none; margin-left: 12px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.kpi { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 16px 16px 14px; box-shadow: var(--shadow); }
.kpi-ic { position: absolute; top: 14px; right: 14px; color: var(--green); background: var(--soft); width: 36px; height: 36px; border-radius: 12px; display: grid; place-items: center; }
.kpi-l { font-size: 13px; color: var(--muted); } .kpi-v { font-size: 34px; font-weight: 650; letter-spacing: -.03em; line-height: 1.1; margin: 4px 0 2px; }
.kpi-s { font-size: 13px; color: var(--muted); }
.kpi.warn .kpi-ic { background: var(--warn-bg); color: var(--warn); } .kpi.warn .kpi-v { color: var(--warn); }
.dash-cols { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.who-list { display: grid; gap: 4px; margin-top: 8px; }
.who-row { display: flex; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); } .who-row:last-child { border-bottom: 0; }
.who-row > div { flex: 1; min-width: 0; }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: #202f2a; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.week-strip { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-top: 8px; }
.ws-day { display: grid; justify-items: center; gap: 4px; padding: 8px 2px; border-radius: 14px; background: var(--soft); text-decoration: none; color: inherit; }
.ws-day.today { outline: 2px solid var(--green); background: var(--white); }
.ws-wd { font-size: 12px; color: var(--muted); text-transform: uppercase; } .ws-n { font-size: 12px; color: var(--muted); }
.ws-bar { width: 22px; height: 54px; background: var(--white); border-radius: 8px; display: flex; align-items: flex-end; overflow: hidden; }
.ws-bar span { display: block; width: 100%; background: var(--green); border-radius: 8px 8px 0 0; min-height: 2px; }
.attention { border-color: var(--warn); background: var(--warn-bg); }
.section-title { margin: 8px 0 -2px; font-size: 18px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 12px; }
.tile { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: 18px; background: var(--white); border: 1px solid var(--line); text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: transform .12s, border-color .12s; }
.tile:hover { transform: translateY(-2px); border-color: var(--green); }
.tile > div { flex: 1; min-width: 0; } .tile b { display: block; } .tile span:not(.tile-ic):not(.tile-go) { font-size: 13px; color: var(--muted); }
.tile-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--green); display: grid; place-items: center; } .tile-go { color: var(--muted); }
.hero-card { background: linear-gradient(135deg, var(--white), var(--soft)); }

/* --- poprawki po audycie --- */
.period-label { display: inline-block; min-width: 150px; text-align: center; white-space: nowrap; }
input[type=checkbox], input[type=radio] { accent-color: var(--green, #2f6f4f); width: 18px; height: 18px; }
input[type=file] { font: inherit; padding: 10px; border: 1px dashed var(--line); border-radius: 12px; background: var(--white); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; margin-right: 12px; padding: 8px 14px; border: 0; border-radius: 10px; background: var(--green); color: var(--green-ink); cursor: pointer; }
.bell { display: grid; place-items: center; color: var(--ink, #1d2b24); }
.zero { color: var(--muted, #6b7a72); }
@media (max-width: 560px) {
  .kpis { grid-template-columns: 1fr 1fr; }
  .period-label { min-width: 0; flex: 1; }
}

.shift.arena { background: #f1d3c3; border-color: #e3b9a2; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .shift.arena { background: #5a3322; border-color: #7a4730; }


a.brand { color: inherit; text-decoration: none; cursor: pointer; }

.top-right { display: flex; align-items: center; gap: 10px; }
.readonly-pill { font-size: 12px; font-weight: 700; background: #fff4d6; color: #7a5600; border: 1px solid #f0d58a; border-radius: 99px; padding: 5px 10px; white-space: nowrap; }

.topbar .back-kitchen { margin-right: 10px; white-space: nowrap; }
.topbar .brand { flex: 1; }

a.kpi { display: block; }
a.kpi:hover { border-color: #9fb89f; box-shadow: 0 6px 18px #20372d14; }

/* edycja w komórce jak w Excelu */
.sheet-table.editable { outline: none; }
.sheet-table td[data-emp] { cursor: cell; user-select: none; }
.sheet-table td.sel { outline: 2px solid #1f6f4a; outline-offset: -2px; background-clip: padding-box; }
.sheet-table td.pending { background: #fff3c4; }
.sheet-table td.saving { opacity: .6; }
.sheet-table td .cell-input { width: 100%; min-width: 64px; height: 100%; min-height: 34px; box-sizing: border-box; border: 0; padding: 0 6px; font: inherit; text-align: center; background: #fff; color: var(--ink); outline: 2px solid #1f6f4a; outline-offset: -2px; border-radius: 0; }
.sheet-help summary { cursor: pointer; font-weight: 600; min-height: 32px; display: flex; align-items: center; }
.sheet-help p { margin: 4px 0 8px; line-height: 1.5; }

/* Odprawa: lista zamówień i lista na dziś (proste, duże pola do dotknięcia) */
.ord-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.ord-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 4px; border-top: 1px solid var(--line); }
.ord-list > .ord-row:first-child { border-top: 0; }
.ord-check { flex: 0 0 34px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid #9fb89f; background: var(--white); color: #fff; display: grid; place-items: center; cursor: pointer; padding: 0; }
.ord-check.on { background: var(--green); border-color: var(--green); color: var(--green-ink); }
.ord-main { flex: 1; min-width: 0; }
.ord-text { font-size: 17px; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.ord-row.closed .ord-text { text-decoration: line-through; color: var(--muted); font-weight: 500; }
.ord-last { margin-top: 4px; color: var(--ink); background: var(--soft); border-radius: 10px; padding: 6px 10px; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.ord-actions { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.ord-comments { margin-top: 8px; display: grid; gap: 8px; }
.ord-comment { background: var(--soft); border-radius: 12px; padding: 8px 12px; overflow-wrap: anywhere; }
.ord-add { position: sticky; top: 56px; z-index: 4; }
.ord-closed > summary { cursor: pointer; font-weight: 600; min-height: 40px; display: flex; align-items: center; color: var(--muted); }
.linkish { background: none; border: 0; padding: 4px 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; }
.ord-day { font-size: 13px; text-transform: capitalize; color: var(--muted); margin: 12px 0 2px; letter-spacing: .03em; }

/* Wojsko */
.army-nums { display: flex; gap: 24px; }
.army-nums > div { display: flex; flex-direction: column; }
.army-nums b { font-size: 30px; line-height: 1.1; }
.army-menu { white-space: pre-line; margin-top: 6px; }
.army-photos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.army-thumb { position: relative; display: inline-block; width: 88px; height: 88px; border-radius: 10px; overflow: hidden; background: var(--line); }
.army-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.army-x { position: absolute; top: 2px; right: 2px; width: 28px; height: 28px; border-radius: 14px; border: 0; background: rgba(0,0,0,.65); color: #fff; font-size: 18px; line-height: 1; }
.army-table { width: 100%; border-collapse: collapse; }
.army-table th, .army-table td { text-align: left; padding: 8px 4px; border-top: 1px solid var(--line); }
.army-table th { border-top: 0; font-size: 13px; color: var(--muted); font-weight: 600; }

/* Prośby o wolne: fioletowe podkreślenie w arkuszu, nie zmienia kolorów weekendu ani Areny */
.sheet-table td.req { box-shadow: inset 0 0 0 2px #8b5cf6; background-image: repeating-linear-gradient(135deg, rgba(139,92,246,.22) 0 6px, transparent 6px 12px); }
.sheet-table td.req:empty::after { content: 'prosi o wolne'; font-size: 11px; color: #6d28d9; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .sheet-table td.req:empty::after { color: #c4b5fd; }

.ord-closed { margin-top: 18px; }
.ord-closed-title { font-size: 15px; color: var(--muted); margin: 0 0 4px; }
.army-box { margin: 4px 0 10px; display: grid; gap: 8px; }
.army-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.army-row > b { flex: 1 1 100%; font-weight: 600; }
.army-meta { flex: 1 1 100%; margin-top: -6px; font-size: 14px; color: var(--muted); }
.army-day { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 12px; margin-top: 6px; padding-top: 8px; border-top: 1px solid var(--line); }
.army-day:first-child { border-top: 0; padding-top: 0; margin-top: 0; }
.army-sum { font-weight: 700; color: var(--green); }
.army-mini { width: 96px; min-height: 44px; }
.army-pdf { display: inline-flex; align-items: center; justify-content: center; width: 100%; height: 100%; font-weight: 700; color: var(--muted); }
.army-file { display: none; }
.army-dish { flex: 1 1 100%; min-height: 44px; }
.army-dish-line { font-weight: 600; }
textarea.army-dish { min-height: 88px; line-height: 1.4; resize: vertical; }
.army-dish-line { white-space: pre-line; }
.rep-person { border-top: 1px solid var(--line); padding: 8px 0; }
.rep-person > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.rep-person .tbl { margin: 6px 0 4px; }

/* Tablet i szerokie ekrany: więcej miejsca na treść, cienki dolny pasek (ikona obok podpisu) */
@media (min-width: 700px) {
  .shell { max-width: 1280px; padding-left: 22px; padding-right: 22px; padding-bottom: calc(60px + env(safe-area-inset-bottom)); }
  .tabbar { padding: 3px 8px calc(3px + env(safe-area-inset-bottom)); }
  .tabbar a { grid-auto-flow: column; justify-content: center; align-items: center; gap: 8px; min-height: 40px; padding: 4px 10px; font-size: 14px; }
  .tabbar a span { font-size: 18px; }
  .toast { bottom: calc(56px + env(safe-area-inset-bottom)); }
}

/* Planer lunchy */
.lunch-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 0; border-top: 1px solid var(--line); }
.lunch-list > .lunch-row:first-child { border-top: 0; }
.lunch-kind { flex: none; width: 58px; font-size: 12px; font-weight: 700; color: var(--muted); padding-top: 14px; text-transform: uppercase; }
.lunch-kind.k-soup { color: #8a5a00; } .lunch-kind.k-vege { color: #2f6b3a; }
.lunch-fields { flex: 1; min-width: 0; display: grid; gap: 4px; }
.lunch-fields input { width: 100%; }
.lunch-en { font-size: 14px; color: var(--muted); font-style: italic; }
.lunch-today { outline: 2px solid var(--green); }
.lunch-print-page h1 { font-size: 26px; margin: 0 0 4px; letter-spacing: 2px; }
.lunch-print-day { margin: 14px 0; break-inside: avoid; }
.lunch-print-day h3 { margin: 0 0 4px; font-size: 15px; letter-spacing: 1.5px; border-bottom: 1px solid #999; padding-bottom: 3px; }
.lunch-print-item { margin: 3px 0; font-size: 14px; }
.lunch-item { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--line); }
.lunch-today-list > .lunch-item:first-child { border-top: 0; }
.lunch-tag { flex: none; width: 62px; font-size: 11px; letter-spacing: .09em; font-weight: 700; color: var(--muted); }
.lunch-tag.t-soup { color: #8a5a00; } .lunch-tag.t-vege { color: #2f6b3a; }
.lunch-name { font-size: 17px; line-height: 1.35; font-weight: 500; }
.lunch-tomorrow { margin: 10px 0 0; padding: 9px 12px; background: var(--soft); border-radius: 10px; font-size: 14px; color: var(--muted); }

/* Wąski telefon (390 px): górny pasek mieści się w ekranie, bez ucinania przycisku Wyloguj */
@media (max-width: 460px) {
  .topbar { gap: 8px; }
  .topbar .brand { display: none; }
  .topbar .back-kitchen { margin-right: 0; font-size: 14px; padding: 0 12px; }
  .top-right { gap: 8px; margin-left: auto; }
}

/* Dziennik temperatur */
.temp-input { width: 100%; min-height: 48px; font-size: 20px; text-align: center; }
.temp-card.miss { box-shadow: inset 4px 0 0 #c9a24a; }
.temp-card .badge.warn, .temp-list li.bad b { color: #a3341d; }
.temp-list { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 4px; }
.temp-list li { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; }
.temp-alert { box-shadow: inset 4px 0 0 #a3341d; }
.temp-sheet h1 { font-size: 22px; margin: 0 0 4px; }
.temp-sheet .tbl tr.bad td { color: #a3341d; font-weight: 600; }
.temp-group { margin: 14px 0 0; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--green); }
.tbl-wrap { overflow-x: auto; }

/* ---- Imprezy: obłożenie, lista, produkcja dnia, etykiety GN ---- */
.ev-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.ev-wd { text-align: center; font-size: 12px; color: var(--muted); padding: 2px 0; }
.ev-cell { min-height: 64px; border: 1px solid var(--line); border-radius: 10px; padding: 4px 5px; display: flex; flex-direction: column; gap: 1px; text-decoration: none; color: inherit; background: var(--white); }
.ev-cell.empty { border: 0; background: none; }
.ev-cell.has { background: var(--soft); }
.ev-cell.over { background: var(--danger-bg); border-color: var(--danger); }
.ev-cell.short .ev-s { color: var(--warn); font-weight: 700; }
.ev-cell.today { outline: 2px solid var(--green); }
.ev-d { font-size: 12px; color: var(--muted); }
.ev-n { font-size: 18px; line-height: 1; }
.ev-g, .ev-s { font-size: 11px; }
.ev-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.ev-list li { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 6px; }
.ev-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.ev-nums { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.ev-nums .no, .prod-ev .no { display: inline-block; min-width: 1.8em; text-align: center; background: var(--green); color: var(--green-ink); border-radius: 8px; padding: 0 6px; font-weight: 700; }
.prod-row { border-top: 1px solid var(--line); padding: 10px 0; }
.prod-total { font-weight: 700; }
.prod-ev { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 3px; font-size: 14px; }
.prod-ev .gn { color: var(--green); font-weight: 600; }
#labels-print { display: none; }
@media print {
  body.printing > *:not(#labels-print) { display: none !important; }
  body.printing #labels-print { display: block; }
  .lab-sheet { page-break-after: always; }
  .lab-sheet h2 { font-size: 20px; margin: 0 0 4px; }
  .lab-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 8px; }
  .lab { border: 2px solid #000; border-radius: 6px; padding: 8px 10px; break-inside: avoid; }
  .lab-top { display: flex; justify-content: space-between; align-items: center; }
  .lab-no { display: inline-block; background: #000; color: #fff; border-radius: 6px; padding: 0 8px; font-size: 22px; font-weight: 800; }
  .lab-dish { font-size: 20px; font-weight: 800; margin: 4px 0; }
  .lab-gn { font-size: 16px; font-weight: 700; }
  .lab-ev { font-size: 12px; margin-top: 2px; }
}

.prod-ev .pot { display: inline-block; background: #2b5f8a; color: #fff; border-radius: 8px; padding: 0 8px; font-weight: 700; }
.range-table { width: 100%; border-collapse: collapse; }
.range-table td { padding: 8px 4px; border-top: 1px solid var(--line); vertical-align: top; }
.range-table .num { text-align: right; white-space: nowrap; font-weight: 700; }
.range-table .amt { color: var(--green); }
@media print { .lab-hall { font-size: 20px; font-weight: 800; } .page-head, .range-table { color: #000; } .tabbar, .topbar, .no-print { display: none !important; } }

/* ===== System restauracji: menu boczne, Start właściciela, wesela, sale, panel klienta ===== */
:root { --accent: #c9a35a; --side: #15321f; --side-ink: #e9e3d3; --display: "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif; }
.display { font-family: var(--display); font-weight: 600; letter-spacing: -.01em; }
h1.display { font-size: 32px; }
.side { display: none; }
@media (min-width: 1000px) {
  .side { display: flex; flex-direction: column; gap: 16px; position: fixed; inset: var(--kbot-h, 0px) auto 0 0; width: 252px; overflow-y: auto; background: var(--side); color: var(--side-ink); padding: 20px 12px; z-index: 20; }
  .side + .shell { margin-left: 252px; max-width: 1240px; padding: 0 32px 48px; }
  .side ~ .tabbar { display: none; }
  .side + .shell .topbar .brand { visibility: hidden; }
}
.side-brand { display: flex; gap: 10px; align-items: center; padding: 0 8px; text-decoration: none; color: inherit; }
.side-brand b { display: block; font-family: var(--display); font-size: 17px; color: #fff; }
.side-brand small { color: #a9b8a8; font-size: 12px; }
.side-logo { width: 36px; height: 36px; border-radius: 9px; background: #f6f1e5; color: var(--side); display: grid; place-items: center; font-family: var(--display); font-weight: 700; font-size: 21px; flex: none; }
.side-grp { display: grid; gap: 2px; }
.side-gl { font-size: 11px; letter-spacing: .08em; color: #a9b8a8; padding: 0 10px 4px; font-weight: 600; }
.side-i { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--side-ink); text-decoration: none; font-size: 14px; min-height: 22px; }
.side-i:hover { background: #ffffff14; color: #fff; }
.side-i.on { background: #f6f1e5; color: var(--side); font-weight: 600; }
.side-demo { margin-top: auto; font-size: 12px; color: #a9b8a8; padding: 0 10px; }
.crumb { font-size: 14px; color: var(--muted); padding-top: 6px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 14px; }
.kpi { margin: 0; gap: 6px; }
.kpi-l { display: flex; justify-content: space-between; gap: 8px; font-size: 13px; color: var(--muted); }
.kpi-v { font-family: var(--display); font-size: 32px; font-weight: 600; line-height: 1.1; }
.src { font-size: 11px; font-weight: 600; border-radius: 20px; padding: 2px 8px; white-space: nowrap; }
.src.sp { background: #dde8da; color: #15321f; }
.src.sd { background: #f1e2bf; color: #6e4a0e; }

/* Grafik w ramce Pracowni: jedna nawigacja (menu Pracowni), bez powtórzonego powitania i nagłówka */
html.in-pracownia .dash-hero { display: none; }
html.in-pracownia .topbar .brand { display: none; }
html.in-pracownia .topbar { justify-content: flex-end; padding: 6px 0 0; }
/* w Pracowni zawsze jasny motyw jak Pracownia i jedno menu (dolny pasek Pracowni), także na telefonie */
html.in-pracownia { color-scheme: light; }
html.in-pracownia .tabbar { display: none; }
html.in-pracownia .shell { padding-bottom: 28px; }
/* Przepisywanie kartki temperatur: tabela dni × sprzęt */
.tsheet th, .tsheet td { padding: 4px 6px; vertical-align: top; }
.tsheet thead th { font-size: 13px; min-width: 84px; }
.tsheet tbody th { white-space: nowrap; font-weight: 600; text-align: left; }
.tsheet .tsheet-in { width: 76px; min-height: 40px; text-align: center; font-size: 16px; padding: 6px; }
.tsheet .tsheet-act { width: 170px; margin-top: 4px; font-size: 13px; padding: 4px 6px; }
.tsheet td.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet td.tsheet-have { color: #5b6b5e; font-size: 14px; text-align: center; vertical-align: middle; }
.tsheet tr.tsheet-day > * { border-top: 2px solid #c9d2c6; }
.tsheet-bar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); background: var(--bg, #f7f5ef); padding: 10px 0; z-index: 2; }

@media (min-width: 761px) { .tsheet-bar { bottom: calc(56px + env(safe-area-inset-bottom)); } html.in-pracownia .tsheet-bar { bottom: 0; } }
.tsheet-daycard { padding: 12px 14px; }
.tsheet-daycard h3 { margin: 0 0 6px; font-size: 16px; }
.tsheet-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.tsheet-row .tsheet-cell { display: grid; justify-items: end; gap: 4px; }
.tsheet-row .tsheet-in { width: 88px; min-height: 44px; text-align: center; font-size: 17px; }
.tsheet-row .tsheet-act { width: 150px; font-size: 14px; }
.tsheet-row .tsheet-cell.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet-row .tsheet-have { color: #5b6b5e; font-weight: 600; }
.tsheet .tsheet-cell.bad .tsheet-in { border-color: #a3341d; color: #a3341d; background: #fbeee9; }
.tsheet-why { color: #a3341d; font-size: 12px; font-weight: 600; max-width: 170px; margin-top: 3px; }
.tsheet-row .tsheet-why { text-align: right; }

.tag-casual { display: inline-block; margin-left: 8px; padding: 1px 8px; border-radius: 999px; background: #f1d3c3; color: var(--ink); font-size: 12px; font-weight: 600; vertical-align: middle; }

/* Menu ze zdjęciami: karty dań (ekran i wydruk) */
.dish-card.ok { border-left: 4px solid var(--accent, #2f6b4f); }
.dish-status { font-size: 12px; font-weight: 700; padding: 2px 10px; border-radius: 999px; background: #f6e3c8; color: #6b4a12; white-space: nowrap; }
.dish-status.ok { background: #dcefdc; color: #1f5a2e; }
.dish-body { display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 14px; margin: 10px 0; align-items: start; }
.dish-photo { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; background: #eee; }
.dish-nophoto { display: flex; align-items: center; justify-content: center; color: #888; font-size: 13px; }
.dish-block h4 { margin: 0 0 4px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.dish-block ul { margin: 0 0 10px; padding-left: 18px; }
.dish-block p { margin: 0 0 6px; }
.dish-edit-photo img { max-width: 100%; max-height: 260px; border-radius: 10px; }
.dish-cands { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; margin-top: 8px; }
.dish-cand { display: flex; flex-direction: column; gap: 4px; padding: 6px; border: 1px solid var(--line, #ddd); border-radius: 10px; background: var(--surface, #fff); text-align: left; font: inherit; font-size: 12px; cursor: pointer; color: inherit; }
.dish-cand img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.dish-cand.recipe { justify-content: center; min-height: 48px; }
@media (max-width: 640px) { .dish-body { grid-template-columns: 1fr; } }
@media print {
  .dish-print-head h1 { margin: 0; font-size: 20px; }
  .dish-print-card { break-inside: avoid; page-break-inside: avoid; border-top: 1px solid #999; padding-top: 10px; margin-top: 12px; }
  .dish-print-card h2 { margin: 0 0 6px; font-size: 18px; }
  .dish-print .dish-body { grid-template-columns: 6.5cm 1fr; }
  .dish-print .dish-photo { aspect-ratio: auto; max-height: 6cm; object-fit: cover; }
}
.dish-block li.dish-sub { list-style: none; margin-left: -18px; font-weight: 700; margin-top: 4px; }
.dish-block p.dish-sub { font-weight: 700; margin-top: 6px; }

/* Ankieta po imprezach */
.norms-intro p { margin: 6px 0 0; }
.norms-group { border-top: 1px solid var(--line, #ddd); margin-top: 10px; padding-top: 8px; }
.norms-group h3 { margin: 0 0 6px; font-size: 14px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted, #666); }
.norms-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; flex-wrap: wrap; }
.norms-row.col { flex-direction: column; align-items: stretch; }
.norms-row.sub { padding-left: 14px; }
.norms-label { flex: 1 1 220px; min-width: 0; }
.norms-input { display: flex; align-items: center; gap: 6px; }
.norms-num { width: 96px !important; }
.norms-known { color: #1f5a2e; font-weight: 600; }
.norms-split { padding: 6px 0; }

/* Kucharze — kontakty */
.contact-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.contact-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0; }
.norms-dish { padding: 8px 0 6px; border-bottom: 1px dashed var(--line, #ddd); }
.norms-dish > b { display: block; margin-bottom: 2px; }
.norms-row.main .norms-label { font-weight: 600; }
.norms-row:not(.col) { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 10px; }
.norms-row:not(.col) .norms-label { flex: none; }
.norms-input { justify-content: flex-end; min-width: 150px; }
.norms-input .small { min-width: 58px; }

.change-list { margin: 6px 0 10px; padding-left: 18px; display: grid; gap: 4px; }
.cols { display: flex; flex-wrap: wrap; gap: 14px; align-items: flex-start; margin-bottom: 14px; }
.cols > .card { margin: 0; min-width: 0; }
.grow1 { flex: 1 1 340px; }
.grow2 { flex: 2 1 520px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.drow { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.card-head + .drow, h2 + .drow { border-top: 0; }
.dic { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dic.green { background: #dde8da; color: #15321f; } .dic.red { background: #fbe3d6; color: #8a3410; } .dic.gold { background: #f1e2bf; color: #6e4a0e; }
.dtx { flex: 1 1 220px; display: grid; gap: 2px; min-width: 0; }
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); gap: 10px; overflow-x: auto; padding-bottom: 4px; }
.pipe.big { grid-auto-columns: minmax(220px, 1fr); }
.pipe-col { background: var(--soft); border-radius: 12px; padding: 10px; display: grid; gap: 8px; align-content: start; }
.pipe-h { display: flex; justify-content: space-between; font-size: 13px; font-weight: 600; padding: 0 4px; }
.pipe-card { background: var(--white); border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 2px; text-decoration: none; color: var(--ink); font-size: 13px; }
.pipe-card span { color: var(--muted); font-size: 12px; }
.pipe-card.flag { border: 2px solid var(--accent); }
.pipe-card .flag-t { color: #8a5a00; font-weight: 600; }
.week { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 1fr); gap: 8px; overflow-x: auto; }
.wday { border: 1px solid var(--line); border-radius: 10px; padding: 10px; display: grid; gap: 6px; align-content: start; min-height: 120px; background: var(--white); }
.wday.today { border: 2px solid var(--green); }
.wd-h { font-size: 12px; font-weight: 600; color: var(--muted); }
.pill { font-size: 12px; border-radius: 7px; padding: 5px 7px; line-height: 1.3; text-decoration: none; display: block; }
.pill.ev { background: var(--green); color: var(--green-ink); }
.pill.short { background: #fbe3d6; color: #8a3410; }
.wed-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: flex-end; }
label.f.compact { min-width: 180px; }
label.f.compact select { min-height: 44px; font-size: 15px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px 6px; }   /* zawija się zamiast uciekać za ekran (tablet) */
.step { display: grid; gap: 4px; font-size: 12px; }
.step i { height: 6px; border-radius: 3px; background: var(--line); }
.step.ok i { background: var(--green); } .step.now i { background: var(--accent); }
.step span { color: var(--muted); }
.chat { display: grid; gap: 10px; max-height: 460px; overflow-y: auto; padding: 4px 2px; }
.msg { border-radius: 12px; padding: 10px 12px; max-width: 88%; display: grid; gap: 4px; font-size: 15px; }
.msg .who { font-size: 11px; color: var(--muted); }
.msg.them { background: var(--soft); justify-self: start; }
.msg.me { background: var(--green); color: var(--green-ink); justify-self: end; }
.msg.me .who { color: #c9d6cb; }
.msg.change { border: 2px solid var(--accent); background: var(--white); justify-self: stretch; max-width: none; }
.msg.sys { background: #fbf1dc; justify-self: stretch; max-width: none; font-size: 14px; }
.chat-send { display: flex; gap: 8px; align-items: flex-end; }
.chat-send textarea { min-height: 52px; }
.linkish { background: none; border: 0; padding: 0; color: var(--muted); text-decoration: underline; font-size: 12px; justify-self: start; min-height: 24px; }
.menu-sec { display: grid; gap: 6px; padding: 8px 0; border-top: 1px solid var(--line); }
.menu-sec-h { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { border: 1px solid var(--line); background: var(--white); border-radius: 20px; padding: 8px 12px; font-size: 14px; min-height: 40px; }
.chip.on { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 600; }
.chip:disabled { opacity: 1; cursor: default; }
.money-row { display: flex; flex-wrap: wrap; gap: 16px; font-size: 14px; color: var(--muted); }
.money-row b { color: var(--ink); }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.progress { height: 8px; background: var(--soft); border-radius: 4px; overflow: hidden; }
.progress i { display: block; height: 8px; background: var(--green); }
.tl-row { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; }
.tl-row b { width: 52px; flex: none; }
.tl-row .pin { color: #8a5a00; font-weight: 600; }
.tl-add { display: grid; grid-template-columns: 120px 1fr auto; gap: 8px; }
.grid3 { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); }
.warn-t { color: #a4441a; }
.cred { display: grid; gap: 6px; padding: 14px; border-radius: 12px; background: var(--soft); font-size: 17px; }
.inbox-row { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.inbox-row.unread b { color: var(--green); }
.dot-badge { background: #c4522a; color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
/* plan sali */
.plan-box { width: 100%; background: #f6f1e5; border: 1px dashed #bfb399; border-radius: 10px; overflow: hidden; touch-action: manipulation; }
.plan-box.edit { touch-action: none; }
.plan-box.mini { pointer-events: none; }
.plan-svg { display: block; width: 100%; height: auto; max-height: 70vh; }
.plan-floor { fill: #f6f1e5; }
.plan-grid { stroke: #e3dac6; stroke-width: .03; }
.plan-fix rect { fill: #dde8da; stroke: #9fb59c; stroke-width: .06; }
.plan-fix.fix-dance rect { fill: none; stroke-dasharray: .3 .2; }
.plan-fix.fix-couple rect, .plan-fix.fix-cake rect { fill: #e8d3a4; stroke: #c9a35a; }
.plan-fix text { fill: #3b4a3f; }
.plan-table circle, .plan-table rect { fill: #fffdf8; stroke: #15321f; stroke-width: .08; }
.plan-table.part circle, .plan-table.part rect { fill: #fbf1dc; stroke: #c9a35a; }
.plan-table.full circle, .plan-table.full rect { fill: #dde8da; }
.plan-table.hl circle, .plan-table.hl rect, .plan-table.sel circle, .plan-table.sel rect, .plan-fix.sel rect { stroke: #c4522a; stroke-width: .14; }
.plan-table { cursor: pointer; }
.plan-label { font-weight: 700; fill: #15321f; }
.plan-count { fill: #4e5e52; }
.plan-table.blocked circle, .plan-table.blocked rect { fill: #e7e4dc; stroke: #9a9688; stroke-dasharray: .2 .12; }
.plan-table.blocked .plan-label { fill: #8a877c; }
.plan-x { stroke: #9a9688; stroke-width: .06; }
.plan-table.marked circle, .plan-table.marked rect { stroke: #c9a35a; stroke-width: .14; }
.plan-zone { fill: #7a6a4a; font-style: italic; }
.plan-fix.fix-garden rect { fill: #e4efd9; stroke: #8fb07a; stroke-dasharray: .25 .15; }
.plan-fix.fix-mezzanine rect { fill: #efe7d6; stroke: #b9a77f; stroke-dasharray: .25 .15; }
.plan-fix.fix-chairs rect { fill: #f3ead6; stroke: #b9a77f; }
.plan-fix.fix-stage rect, .plan-fix.fix-dj rect { fill: #e9dfcb; stroke: #8a6d2b; }
.lg.blocked::before { background: #e7e4dc; border-color: #9a9688; border-style: dashed; }
.legend { display: flex; gap: 14px; font-size: 13px; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; border: 2px solid #15321f; background: #fffdf8; }
.lg.part::before { background: #fbf1dc; border-color: #c9a35a; } .lg.full::before { background: #dde8da; }
.layouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.layout-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--white); }
/* panel klienta */
.client { max-width: 560px; margin: 0 auto; min-height: 100vh; padding-bottom: calc(84px + env(safe-area-inset-bottom)); }
.client-head { background: var(--side); color: #f6f1e5; padding: 18px 18px 22px; display: grid; gap: 12px; border-radius: 0 0 20px 20px; }
.client-head h1 { font-family: var(--display); font-size: 30px; color: #fff; }
.client-sub { color: #d8d1be; font-size: 15px; }
.client-logo { width: 32px; height: 32px; border-radius: 8px; background: #f6f1e5; color: var(--side); display: grid; place-items: center; font-family: var(--display); font-weight: 700; }
.client-brand { font-family: var(--display); font-size: 16px; }
.client-head .btn { background: transparent; color: #f6f1e5; border-color: #ffffff55; }
.client-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.client-stat { background: #ffffff14; border-radius: 12px; padding: 10px 12px; display: grid; }
.client-stat b { font-family: var(--display); font-size: 24px; }
.client-stat span { font-size: 12px; color: #d8d1be; }
.client-main { padding: 16px; display: grid; gap: 0; }
.client-tabs { position: fixed; left: 0; right: 0; bottom: 0; display: flex; justify-content: center; background: var(--white); border-top: 1px solid var(--line); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 10; }
.client-tabs a { flex: 1; max-width: 112px; display: grid; justify-items: center; gap: 2px; font-size: 11px; color: var(--muted); text-decoration: none; min-height: 52px; align-content: center; position: relative; }
.client-tabs a.on { color: var(--green); font-weight: 700; }
.client-tabs .dot-badge { position: absolute; top: 2px; right: 22%; }
.todo-row { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; background: none; border: 0; border-top: 1px solid var(--line); padding: 12px 0; min-height: 52px; }
.todo-row:first-of-type { border-top: 0; }
.todo-dot { width: 10px; height: 10px; border-radius: 50%; background: #2f5d8a; flex: none; }
.todo-dot.gold { background: var(--accent); } .todo-dot.late { background: #c4522a; }
.todo-txt { display: grid; } .todo-txt small { color: var(--muted); }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--accent); display: grid; place-items: center; font-weight: 700; flex: none; }
.opt { display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; border: 1px solid var(--line); background: var(--white); border-radius: 12px; padding: 12px; min-height: 56px; }
.opt.on { border: 2px solid var(--green); background: #f3f7f1; }
.opt:disabled { cursor: default; }
.opt-mark { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--muted); flex: none; }
.opt.on .opt-mark { border: 6px solid var(--green); }
.opt-txt { display: grid; flex: 1; } .opt-txt small { color: var(--muted); }
.opt-extra { font-size: 13px; color: #8a5a00; font-weight: 600; }
.guest-add { display: grid; grid-template-columns: 1fr; gap: 8px; }
@media (min-width: 520px) { .guest-add { grid-template-columns: 2fr 1fr 1fr auto; } }
.guest-row { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.btn.ghost { background: transparent; }
.side-badge { margin-left: auto; background: var(--accent); color: #15321f; border-radius: 10px; font-size: 11px; padding: 1px 7px; }
.chips .chip { width: auto; }
.msg.me .linkish { color: #c9d6cb; }
.plan-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: 10px; }
.plan-box.wide { min-width: 640px; }
@media (min-width: 900px) { .plan-box.wide { min-width: 0; } }
.table-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.tbl-btn { display: grid; gap: 2px; justify-items: center; border: 2px solid #15321f; background: var(--white); border-radius: 12px; padding: 8px 4px; min-height: 52px; font-size: 13px; }
.tbl-btn.part { background: #fbf1dc; border-color: #c9a35a; } .tbl-btn.full { background: #dde8da; }
.tbl-btn span { color: var(--muted); font-size: 12px; }
.offer { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 28px; display: grid; gap: 12px; max-width: 820px; }
.offer-head { display: flex; justify-content: space-between; gap: 12px; border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.offer-brand { font-family: var(--display); font-size: 22px; font-weight: 700; color: var(--green); }
.offer-sec ul { margin: 6px 0 0; padding-left: 20px; display: grid; gap: 4px; }
.offer-sec li.chosen { color: var(--green); }
.offer-sum { border-top: 2px solid var(--green); padding-top: 8px; display: grid; gap: 6px; }
@media print {
  .side, .tabbar, .topbar, .no-print, #toast, #kbotHost { display: none !important; }
  .side + .shell { margin: 0 !important; padding: 0 !important; }
  body, html { background: #fff; }
  .offer { border: 0; padding: 0; max-width: none; }
}
.ev-line { display: grid; gap: 2px; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.pipe, .week { align-items: start; }
@media (max-width: 600px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .kpi { padding: 12px; }
  .kpi-v { font-size: 24px; }
  .kpi-l .src { display: none; }
  h1.display { font-size: 26px; }
}
.menu-sec.skipped b { color: var(--muted); text-decoration: line-through; }
.chip-wrap { display: inline-flex; align-items: center; gap: 4px; }
.diet-box { border-top: 1px solid var(--line); padding-top: 10px; display: grid; gap: 8px; }
.ksheet { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 24px; display: grid; gap: 14px; max-width: 900px; }
.ksheet-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-bottom: 2px solid var(--green); padding-bottom: 10px; }
.ksheet-tot { display: grid; gap: 2px; font-size: 15px; text-align: right; }
.ksheet-sec h2 { font-size: 17px; border-bottom: 1px solid var(--line); padding-bottom: 4px; margin-bottom: 4px; }
.ksheet-row { display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 1.6fr) minmax(120px, 1fr); gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); align-items: baseline; }
.ksheet-parts { color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
.ksheet-sum { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; font-variant-numeric: tabular-nums; }
.ksheet-sum .hl { background: #eef59a; border-radius: 4px; padding: 0 6px; font-weight: 600; }
@media (max-width: 600px) { .ksheet { padding: 14px; } .ksheet-row { grid-template-columns: 1fr auto; } .ksheet-parts { grid-column: 1 / -1; order: 3; } }
@media print { .ksheet { border: 0; padding: 0; max-width: none; } .ksheet-row { break-inside: avoid; } }
.page-title { display: flex; flex-direction: column; min-width: 0; }
.page-title b { font-family: var(--display); font-size: 20px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.page-title .pt-brand { font-size: 12px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }
.page-title .pt-back { font-size: 14px; text-decoration: none; color: var(--muted); }
.page-title .pt-back:hover { color: var(--ink); }
.seg { display: flex; gap: 4px; background: var(--soft); border-radius: 12px; padding: 4px; margin: 0 0 14px; overflow-x: auto; }
.seg a { flex: 1 0 auto; text-align: center; padding: 10px 14px; border-radius: 9px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 15px; display: flex; gap: 8px; justify-content: center; align-items: center; min-height: 24px; }
.seg a b { background: var(--white); border-radius: 10px; padding: 0 8px; font-size: 12px; }
.seg a.on { background: var(--green); color: var(--green-ink); }
.seg a.on b { color: var(--ink); }
.ev-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.ev-date { width: 44px; flex: none; display: grid; justify-items: center; background: var(--soft); border-radius: 10px; padding: 4px 0; }
.ev-date b { font-size: 18px; line-height: 1.1; } .ev-date span { font-size: 11px; color: var(--muted); }
a.chip { text-decoration: none; color: var(--ink); display: inline-flex; align-items: center; }
.cal-nav { margin: 0 0 12px; align-items: center; }
.cal-month { min-width: 10em; text-align: center; font-size: 18px; }
.cal-legend { display: flex; gap: 12px; flex-wrap: wrap; margin-left: auto; font-size: 13px; color: var(--muted); }
.cal-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 5px; }
.cal-scroll { overflow-x: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(110px, 1fr)); gap: 6px; min-width: 770px; }
.cal-wd { font-size: 12px; font-weight: 600; color: var(--muted); text-align: center; }
.cal-cell { min-height: 104px; border: 1px solid var(--line); border-radius: 10px; padding: 6px; display: grid; gap: 3px; align-content: start; background: var(--white); cursor: pointer; }
.cal-cell.empty { background: transparent; border-color: transparent; cursor: default; }
.cal-cell.today { border: 2px solid var(--green); }
.cal-cell.sel { background: #fbf1dc; border-color: var(--accent); }
.cal-d { font-size: 12px; font-weight: 700; color: var(--muted); }
.cal-ev { display: block; font-size: 12px; line-height: 1.25; padding: 3px 5px; border-radius: 5px; background: var(--soft); border-left: 4px solid #999; color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-ev.st-inquiry, .cal-ev.st-offer { background: transparent; border: 1px dashed var(--line); border-left-width: 4px; color: var(--muted); }
.cal-more { font-size: 11px; color: var(--muted); }
.cal-short { font-size: 11px; color: #a4441a; font-weight: 600; }
.day-ev { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; color: var(--ink); background: var(--white); }
.day-ev i { width: 10px; height: 36px; border-radius: 4px; flex: none; }
.notes-card { background: #fbf1dc; border-color: #e7cf97; }
.quick { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.quick-a { display: flex; align-items: center; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--white); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; min-height: 52px; cursor: pointer; font-family: inherit; }
.quick-a.primary { background: var(--green); color: var(--green-ink); border-color: var(--green); }
.page-title .pt-name { font-size: 15px; letter-spacing: .02em; color: var(--muted); font-family: var(--display); }
@media (min-width: 1000px) { .page-title .pt-name { visibility: hidden; } }
.agenda-day { display: grid; gap: 6px; padding: 10px 0; border-top: 1px solid var(--line); }
.agenda-day:first-child { border-top: 0; }
.agenda-h { font-weight: 700; text-decoration: none; color: var(--ink); }
.agenda-h.today { color: var(--green); }
.card > .ev-row:first-child, .card > .side-gl + .ev-row { border-top: 0; }

/* finanse: koszty kuchni, sali, wspólne i całość */
.pos, .pos b { color: var(--ok); }
.neg, .neg b { color: var(--danger); }
.fin-top { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.fin-top > div { display: grid; gap: 2px; padding: 12px; border-radius: 14px; background: var(--soft); }
.fin-top b { font-size: 24px; }
.fin3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fin-col { display: grid; align-content: start; gap: 2px; border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.fin-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; padding-bottom: 6px; }
.fin-row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.fin-row > span:first-child { display: grid; gap: 1px; min-width: 0; }
.fin-row small { font-size: 12px; }
.fin-row small.est { font-style: italic; }
.fin-row b { white-space: nowrap; }
.fin-sum { font-weight: 700; }
.fin-lines summary { cursor: pointer; color: var(--muted); padding: 6px 0; }
.fin-table { display: grid; }
.ft-h, .ft-r { display: grid; grid-template-columns: minmax(180px, 2.2fr) repeat(6, minmax(70px, 1fr)); gap: 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.ft-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.ft-h span:not(:first-child), .ft-c { text-align: right; }
.ft-r { text-decoration: none; color: var(--ink); }
.ft-r:hover { background: var(--soft); }
.ft-name { display: grid; gap: 1px; min-width: 0; }
.ft-c { display: grid; font-variant-numeric: tabular-nums; }
.ft-tot { font-weight: 700; border-top: 2px solid var(--ink); }
.kpi.pos .kpi-v { color: var(--ok); } .kpi.neg .kpi-v { color: var(--danger); }
@media (max-width: 900px) {
  .fin3 { grid-template-columns: 1fr; }
  .ft-h { display: none; }
  .ft-r { grid-template-columns: 1fr 1fr 1fr; }
  .ft-name { grid-column: 1 / -1; }
  .ft-c { text-align: left; }
  .ft-c::before { content: attr(data-l); font-size: 11px; color: var(--muted); text-transform: uppercase; }
}
@media (max-width: 520px) { .fin-top { grid-template-columns: 1fr; } .fin-top b { font-size: 20px; } }
.ft-r.fc { opacity: .85; }
.fin-row > b { margin-left: auto; }

/* posty: podgląd jak na Facebooku */
.posts { display: grid; gap: 0; }
.post-card { grid-template-columns: minmax(0, 520px) minmax(200px, 1fr); align-items: start; gap: 18px; }
.post-side { display: grid; gap: 6px; align-content: start; }
.post-side .stack { margin-top: 8px; }
.fbpost { border: 1px solid var(--line); border-radius: 12px; background: var(--white); overflow: hidden; }
.fb-head { display: flex; gap: 10px; align-items: center; padding: 12px 14px 4px; }
.fb-head div { display: grid; }
.fb-ava { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--side, var(--green)); color: var(--side-ink, #fff); font-weight: 700; }
.fb-body { padding: 6px 14px 12px; white-space: pre-line; font-size: 15px; margin: 0; }
.fb-img { aspect-ratio: 16 / 9; display: grid; place-content: center; justify-items: center; gap: 4px; color: #fff; text-shadow: 0 1px 6px #0006; }
.fb-img span { font-size: 64px; } .fb-img small { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; }
.m-lunch { background: linear-gradient(135deg, #c98a3a, #7a4a1e); } .m-wedding { background: linear-gradient(135deg, #d9b8a0, #8c5a5a); }
.m-party { background: linear-gradient(135deg, #7a4e9c, #2b5f8a); } .m-hall { background: linear-gradient(135deg, #4f7a5a, #15321f); }
.m-communion { background: linear-gradient(135deg, #8fb3d9, #2b5f8a); } .m-xmas { background: linear-gradient(135deg, #2f6f4f, #8b2f2f); }
.m-photo { background: linear-gradient(135deg, #8a8a7a, #3d3d33); }
@media (max-width: 800px) { .post-card { grid-template-columns: 1fr; } }

/* poczta */
.mail-list { gap: 0; padding: 4px 0; }
.mail-row { display: grid; grid-template-columns: minmax(120px, 200px) 1fr auto auto; gap: 12px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.mail-row:first-child { border-top: 0; }
.mail-row:hover { background: var(--soft); }
.mail-row .mail-from, .mail-row .mail-sub { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-row .mail-sub b { font-weight: 500; }
.mail-row.unread .mail-from, .mail-row.unread .mail-sub b { font-weight: 800; }
.mail-tags { display: flex; gap: 4px; }
.badge.k-inquiry { background: var(--warn-bg); color: var(--warn); }
.badge.k-supplier { background: var(--soft); color: var(--muted); }
.mail-tools { flex-wrap: wrap; align-items: end; margin-bottom: 12px; }
.suggest { border: 2px solid var(--warn); background: var(--warn-bg); }
.mail-thread { gap: 12px; }
.mail-msg { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 8px; }
.mail-msg.out { background: var(--soft); margin-left: 8%; }
.mail-meta { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.mail-body { white-space: pre-line; }
@media (max-width: 700px) {
  .mail-row { grid-template-columns: 1fr auto; gap: 2px 10px; }
  .mail-row .mail-sub { grid-column: 1 / -1; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .mail-tags { grid-column: 1 / -1; }
  .mail-when { grid-row: 1; grid-column: 2; }
}

/* strona WWW */
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 170px; align-items: end; }
.bar { display: grid; grid-template-rows: 1fr auto; height: 100%; align-items: end; text-align: center; }
.bar > i.v { display: flex; align-items: flex-end; background: var(--soft); border-radius: 4px 4px 0 0; min-height: 2px; }
.bar i.w { display: block; width: 100%; background: var(--green, var(--ok)); border-radius: 4px 4px 0 0; }
.bar small { font-size: 10px; color: var(--muted); height: 14px; }
.hours-row { display: grid; grid-template-columns: 130px 130px 16px 130px 1fr; gap: 10px; align-items: center; padding: 6px 0; border-top: 1px solid var(--line); }
.notice-prev { background: #15321F; color: #F6F1E5; text-align: center; padding: 10px; border-radius: 10px; font-weight: 600; }
.pz-row { display: grid; grid-template-columns: 1.1fr 2fr 90px auto auto; gap: 8px; align-items: center; }
@media (max-width: 700px) {
  .hours-row { grid-template-columns: 1fr 1fr auto 1fr; } .hours-row b { grid-column: 1 / -1; } .hours-row .check { grid-column: 1 / -1; }
  .pz-row { grid-template-columns: 1fr 80px; border-top: 1px solid var(--line); padding-top: 8px; } .pz-row input:nth-child(2) { grid-column: 1 / -1; }
}

/* rezerwacje */
.res-week .chip { display: inline-flex; gap: 2px; align-items: baseline; position: relative; }
.dot-warn { width: 7px; height: 7px; border-radius: 50%; background: var(--warn); display: inline-block; margin-left: 4px; }
.res-row { display: grid; grid-template-columns: 56px 1fr auto; gap: 4px 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.res-row .dtx { cursor: pointer; display: grid; }
.res-time { font-size: 18px; font-variant-numeric: tabular-nums; }
.res-acts { grid-column: 2 / -1; flex-wrap: wrap; gap: 6px; }
.res-row.st-cancelled, .res-row.st-no_show, .res-row.st-done { opacity: .55; }
.res-plan .plan-wrap { border-radius: 12px; overflow: hidden; }
.chip.busy { opacity: .45; text-decoration: line-through; }
.kpi.warn .kpi-v { color: var(--warn); }
.res-week { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.res-week .chip { flex: none; }
@media (max-width: 700px) { .kpis:has(> :nth-child(3):last-child) { grid-template-columns: repeat(3, 1fr); } .kpis:has(> :nth-child(3):last-child) .kpi-v { font-size: 26px; } .kpi.oven { grid-column: 1 / -1; } }

/* zamówienia online: tablica pizzerii */
.tk-board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; align-items: start; margin-bottom: 14px; }
.tk-col { background: var(--soft); border-radius: var(--radius); padding: 10px; display: grid; gap: 8px; min-height: 120px; }
.tk-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 6px; box-shadow: var(--shadow); }
.tk-card.fresh { animation: tkpulse 1.2s ease-in-out 3; border-color: var(--warn); }
.tk-card.late { border-left: 5px solid var(--danger); }
@keyframes tkpulse { 50% { box-shadow: 0 0 0 6px var(--warn-bg); } }
.tk-top { display: flex; gap: 8px; align-items: center; }
.tk-no { font-size: 20px; } .tk-time { font-size: 20px; margin-left: auto; font-variant-numeric: tabular-nums; }
.tk-items { margin: 0; padding-left: 0; list-style: none; font-size: 17px; display: grid; gap: 2px; }
.tk-items em { color: var(--danger); font-style: normal; font-weight: 600; }
.tk-note { background: var(--warn-bg); color: var(--warn); border-radius: 8px; padding: 6px 8px; margin: 0; font-weight: 600; }
.tk-foot { display: flex; gap: 8px; align-items: baseline; }
.kpi.oven { gap: 2px; } .oven-row { font-size: 15px; } .oven-row b { display: inline-block; min-width: 30px; }
.qty-row { display: grid; grid-template-columns: 1fr auto 28px auto; gap: 8px; align-items: center; } .qty-row b { text-align: center; }
@media (max-width: 1000px) { .tk-board { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .tk-board { grid-template-columns: 1fr; } }
.tk-start { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); } .tk-start.warn { border: 2px solid var(--warn); background: var(--warn-bg); }
.tk-start > div { display: grid; gap: 2px; }

/* utarg */
.row.wrap { flex-wrap: wrap; }
.grid4 { display: grid; gap: 10px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 520px) { .grid4 { grid-template-columns: repeat(2, 1fr); } }
.banner.ok-b { background: var(--soft); color: var(--ink); border-radius: 12px; padding: 10px 12px; }
.hbar { display: grid; grid-template-columns: minmax(110px, 160px) 1fr auto; gap: 10px; align-items: center; padding: 5px 0; }
.hbar > i { height: 12px; background: var(--soft); border-radius: 6px; overflow: hidden; display: block; }
.hbar > i b { display: block; height: 100%; background: var(--green, var(--ok)); border-radius: 6px; }
.hbar-v { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.rv-table { display: grid; }
.rv-h, .rv-r { display: grid; grid-template-columns: minmax(110px, 1.2fr) repeat(calc(var(--cols) - 1), minmax(80px, 1fr)); gap: 8px; align-items: center; padding: 8px 4px; border-top: 1px solid var(--line); text-decoration: none; color: var(--ink); }
.rv-h { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; border-top: 0; }
.rv-h span:not(:first-child), .rv-r .ft-c { text-align: right; }
.rv-r:hover { background: var(--soft); }
.rv-r.miss { background: var(--warn-bg); }
.rv-r.today { font-weight: 600; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; margin-top: 8px; }
pre.code { background: var(--soft); border-radius: 10px; padding: 10px; font-size: 12px; overflow-x: auto; white-space: pre; }
.rv-photo img { max-width: 100%; max-height: 240px; border-radius: 10px; border: 1px solid var(--line); }
@media (max-width: 800px) {
  .rv-h { display: none; } .rv-r { grid-template-columns: 1fr 1fr 1fr; } .rv-r > span:first-child { grid-column: 1 / -1; font-weight: 700; }
  .rv-r .ft-c { text-align: left; display: grid; } .rv-r .ft-c::before { content: attr(data-l); font-size: 11px; color: var(--muted); }
  .hbar { grid-template-columns: 1fr auto; } .hbar > i { grid-column: 1 / -1; grid-row: 2; }
}

/* lista do zamówienia: dostawcy */
.ord-tools { flex-wrap: wrap; gap: 6px; margin: 4px 0 10px; }
.sup-grp { margin-bottom: 14px; }
.sup-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 2px; border-bottom: 2px solid var(--line); }
.sup-head > div:first-child { display: grid; }
select.sup-sel { min-height: 34px; padding: 4px 8px; font-size: 13px; width: auto; max-width: 140px; border-radius: 10px; }
@media (max-width: 700px) { .ord-row { flex-wrap: wrap; } .ord-main { flex-basis: calc(100% - 60px); } .ord-actions { flex-basis: 100%; justify-content: flex-start; padding-left: 50px; } }

/* zakupy */
.fc-trend { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; height: 170px; align-items: end; }
.fc-bar { display: grid; grid-template-rows: auto 1fr auto; height: 100%; text-align: center; align-items: end; gap: 2px; }
.fc-bar > i { display: block; background: var(--green, var(--ok)); border-radius: 6px 6px 0 0; min-height: 2px; align-self: end; }
.fc-bar > i.hi { background: var(--warn); }
.pi-row { display: grid; grid-template-columns: 52px 1fr auto auto auto 100px; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--line); }
.pi-row.unc { background: var(--warn-bg); }
.pi-row .dtx { display: grid; min-width: 0; } .pi-row .dtx b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi-net { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 900px) { .pi-row { grid-template-columns: 46px 1fr auto; } .pi-row select { grid-column: 2 / -1; max-width: none; } .pi-row .badge { grid-row: 1; grid-column: 3; } .pi-net { grid-column: 3; grid-row: 2; } }

/* strony zbiorcze (Kuchnia, Ustawienia) */
.hub { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.hub-tile { text-decoration: none; color: var(--ink); gap: 6px; align-content: start; transition: transform .12s; }
.hub-tile:hover { transform: translateY(-2px); }
.hub-ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); display: grid; place-items: center; color: var(--green, var(--ok)); }
.msg-tabs { margin-bottom: 12px; }

.step b { white-space: normal; line-height: 1.2; }

/* ---------- Bilety i wydarzenia ---------- */
.tk-list { display: grid; gap: 12px; }
.tk-card { display: grid; grid-template-columns: 64px 1fr; gap: 14px; align-items: center; text-decoration: none; color: inherit; }
.tk-card:hover { border-color: var(--green); }
.tk-card h2 { margin: 4px 0 2px; }
.tk-date { display: grid; place-items: center; height: 64px; border-radius: 14px; background: var(--side, #15321f); color: #f6f1e5; line-height: 1.05; }
.tk-date b { font-size: 26px; } .tk-date span { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.tk-card.k-bal .tk-date { background: #5b2a4e; } .tk-card.k-koncert .tk-date { background: #20324f; } .tk-card.k-kolacja .tk-date { background: #6b4a1e; }
.tk-body { min-width: 0; display: grid; gap: 2px; }
.tk-meter { display: grid; gap: 4px; margin-top: 6px; }
.tk-bar { height: 8px; border-radius: 99px; background: var(--soft); overflow: hidden; }
.tk-bar i { display: block; height: 100%; background: var(--accent, #c9a35a); border-radius: 99px; }
.tk-type { display: grid; gap: 4px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tk-type:last-child { border-bottom: 0; }
.tk-tabs { flex-wrap: wrap; margin: 6px 0 14px; }
.tk-tabs .seg-btn { text-decoration: none; }
.tk-tables { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.tk-tables .card.hl { outline: 3px solid var(--accent, #c9a35a); }
.tk-task { justify-content: flex-start; }
.tk-task.done { color: var(--muted); text-decoration: line-through; }
.link-x { margin-left: auto; border: 0; background: none; color: var(--muted); font-size: 20px; line-height: 1; padding: 4px 8px; }
.tk-sched { justify-content: flex-start; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.tk-sched b { min-width: 52px; }
.tk-settle { display: grid; grid-template-columns: 1fr auto; gap: 6px 16px; margin: 6px 0 12px; max-width: 420px; }
.tk-settle .tk-res { border-top: 1px solid var(--line); padding-top: 6px; font-size: 18px; }
.tk-settle b.neg { color: var(--danger); }
.tk-code { font-family: ui-monospace, Menlo, monospace; letter-spacing: .04em; }
.cu-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--line); justify-self: center; }
.cu-dot.ok { background: var(--ok); } .cu-dot.off { background: var(--danger); }
a.kpi { text-decoration: none; color: inherit; } a.kpi.on { outline: 2px solid var(--green); }
/* skaner */
.scan-card { display: grid; gap: 12px; position: relative; }
.scan-cam { position: relative; background: #000; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 4; max-height: 60vh; }
@media (min-width: 700px) { .scan-cam { aspect-ratio: 4 / 3; } }
.scan-video { width: 100%; height: 100%; object-fit: cover; display: block; }
.scan-frame { position: absolute; inset: 18% 14%; border: 3px solid #ffffffcc; border-radius: 18px; box-shadow: 0 0 0 999px #00000055; pointer-events: none; }
.scan-res { display: none; position: absolute; left: 16px; right: 16px; top: 16px; padding: 18px; border-radius: 16px; text-align: center; color: #fff; z-index: 3; font-size: 18px; }
.scan-res.show { display: grid; gap: 4px; }
.scan-res b { font-size: 24px; letter-spacing: .02em; }
.scan-res.ok { background: #1f7a3a; } .scan-res.bad { background: #b3261e; }
.scan-count { font-size: 22px; }
@media print { .tk-tabs, .crumb { display: none !important; } .tk-tables .card { break-inside: avoid; box-shadow: none; } }
.tk-filter { margin: 4px 0 12px; align-items: center; }
.tk-filter .chip, .chips a.chip { width: auto; display: inline-flex; align-items: center; margin: 0; text-decoration: none; color: inherit; }
.chips a.chip.on { color: var(--green-ink); }

/* Kreator „Start lokalu” */
.wiz-steps { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 12px; }
.wiz-step { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; color: var(--ink); background: var(--white); font-size: 14px; }
.wiz-step i { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--soft); font-style: normal; font-weight: 700; font-size: 13px; }
.wiz-step.ok i { background: var(--green); color: var(--green-ink); }
.wiz-step.on { border-color: var(--green); font-weight: 700; }
.wiz-row { justify-content: space-between; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.wiz-row input[type=color] { width: 44px; min-width: 44px; padding: 2px; }
.wiz-row input[type=text] { flex: 1 1 200px; }
.wiz-nav { justify-content: space-between; margin-top: 16px; }
.wiz-mods { display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.wiz-mod { display: flex; gap: 10px; align-items: flex-start; padding: 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.wiz-mod span { display: grid; gap: 2px; }
.wiz-ready { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.wiz-ready li { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.wiz-ready li > span { flex: 1; }
.wiz-ready li.wz-ok b { color: var(--green); } .wiz-ready li.wz-no b { color: var(--danger, #a3341d); } .wiz-ready li.wz-opt b { color: var(--muted); }

/* Motyw „wilk” (marka Probatum, 17.10.2026): czerń, kość i czerwień zamiast zieleni; zielony zostaje tylko jako „OK”.
   Włącza go lokal w tenant.json: brand.theme.preset = "wilk" (np. Arena i Bistro). */
html.theme-wilk { --paper: #f5f2ef; --ink: #1c1717; --muted: #665e5b; --line: #dcd8d6; --soft: #e9e5e3;
  --green: #d4161b; --green-ink: #fff; --lime: #f6d9d7; --shadow: 0 10px 34px #1f1a1a14; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.theme-wilk.mode-dark:not(.in-pracownia) { --paper: #110e0e; --white: #1d1919; --ink: #f0edeb; --muted: #aea6a2; --line: #2b2525; --soft: #1e1919;
    --green: #ff6b62; --green-ink: #0d0b0b; --lime: #322929; }
  html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e2626; }

html.theme-wilk .sheet-table .sh-name, html.theme-wilk .avatar { color: #1c1717; }
html.theme-wilk .sheet-table tr.weekend td, html.theme-wilk .sheet-table tr.weekend th.sh-day { background: #d8d0cd; }
html.theme-wilk .landing { background: linear-gradient(135deg, #151212 0%, #2a1d1d 55%, #a90f13 100%); }
html.theme-wilk .land-brand, html.theme-wilk .land-ic, html.theme-wilk .eyebrow.on-dark { color: #f6d9d7; }
html.theme-wilk .dash-sun { color: #f6d9d755; }
html.theme-wilk { --accent: #d4161b; --side: #151212; --side-ink: #ece6e3; }
html.theme-wilk .side-brand small, html.theme-wilk .side-gl, html.theme-wilk .side-demo { color: #a89d99; }
html.theme-wilk .side-i.on, html.theme-wilk .side-logo { background: #f5f2ef; }
html.theme-wilk .side-badge { color: #fff; }
html.theme-wilk .src.sp, html.theme-wilk .dic.green { background: #e9e4e2; color: #151212; }
html.theme-wilk .m-hall { background: linear-gradient(135deg, #5a4a46, #151212); }
.side-logo-img { object-fit: contain; padding: 3px; box-sizing: border-box; background: #f6f1e5; }
/* Reguły z kolorem na sztywno: wartości ze starego Grafiku Areny (wygenerowane 18.10.2026) */
html.theme-wilk input:focus-visible, html.theme-wilk select:focus-visible, html.theme-wilk textarea:focus-visible, html.theme-wilk .btn:focus-visible, html.theme-wilk a:focus-visible { outline: 3px solid #7c6961; }
html.theme-wilk .sheet-table tr.weekend td, html.theme-wilk .sheet-table tr.weekend th.sh-day { background: #d8d0cd; }
html.theme-wilk .pc5 { background: #d1c8c4; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend td, html.theme-wilk.mode-dark:not(.in-pracownia) .sheet-table tr.weekend th.sh-day { background: #2e2626; }

html.theme-wilk .land-brand { color: #F6D9D7; }
html.theme-wilk .land-sub { color: #d6cecb; }
html.theme-wilk .land-feats span { color: #bcb4b1; }
html.theme-wilk .land-ic { color: #F6D9D7; }
html.theme-wilk .land-foot { color: #a29792; }
html.theme-wilk .dash-hero { background: linear-gradient(135deg, #1b1616 0%, #A90F13 100%); }
html.theme-wilk .dash-hello p { color: #d6cecb; }
html.theme-wilk .eyebrow.on-dark { color: #F6D9D7; }
html.theme-wilk .dash-sun { color: #F6D9D755; }
html.theme-wilk input[type=checkbox], html.theme-wilk input[type=radio] { accent-color: var(--green, #2F6F4F); }
html.theme-wilk .bell { color: var(--ink, #191414); }
html.theme-wilk a.kpi:hover { border-color: #b4a8a3; box-shadow: 0 6px 18px #1e181814; }
html.theme-wilk .sheet-table td.sel { outline: 2px solid #302828; }
html.theme-wilk .sheet-table td .cell-input { outline: 2px solid #302828; }
html.theme-wilk .ord-check { border: 2px solid #b4a8a3; }
html.theme-wilk .lunch-kind.k-vege { color: #352b2b; }
html.theme-wilk .lunch-tag.t-vege { color: #352b2b; }
html.theme-wilk .tsheet tr.tsheet-day > * { border-top: 2px solid #d0cac8; }
html.theme-wilk .dish-card.ok { border-left: 4px solid var(--accent, #352b2b); }
html.theme-wilk .dish-status.ok { background: #e9e4e2; color: #292222; }
html.theme-wilk .norms-known { color: #292222; }
html.theme-wilk .plan-fix rect { fill: #e5dfdd; stroke: #b1a5a0; }
html.theme-wilk .plan-fix.fix-couple rect, html.theme-wilk .plan-fix.fix-cake rect { stroke: #D4161B; }
html.theme-wilk .plan-fix text { fill: #2d2525; }
html.theme-wilk .plan-table circle, html.theme-wilk .plan-table rect { stroke: #151212; }
html.theme-wilk .plan-table.part circle, html.theme-wilk .plan-table.part rect { stroke: #D4161B; }
html.theme-wilk .plan-table.full circle, html.theme-wilk .plan-table.full rect { fill: #e5dfdd; }
html.theme-wilk .plan-label { fill: #151212; }
html.theme-wilk .plan-table.marked circle, html.theme-wilk .plan-table.marked rect { stroke: #D4161B; }
html.theme-wilk .plan-fix.fix-garden rect { fill: #e7e3e1; stroke: #a29088; }
html.theme-wilk .lg::before { border: 2px solid #151212; }
html.theme-wilk .lg.part::before { border-color: #D4161B; } html.theme-wilk .lg.full::before { background: #e5dfdd; }
html.theme-wilk .tbl-btn { border: 2px solid #151212; }
html.theme-wilk .tbl-btn.part { border-color: #D4161B; } html.theme-wilk .tbl-btn.full { background: #e5dfdd; }
html.theme-wilk .tk-date { background: var(--side, #151212); }
html.theme-wilk .tk-bar i { background: var(--accent, #D4161B); }
html.theme-wilk .tk-tables .card.hl { outline: 3px solid var(--accent, #D4161B); }
html.theme-wilk .scan-res.ok { background: #342b2b; }

/* Czat zespołu (18.10.2026) */
.tchat { display: grid; grid-template-columns: minmax(240px, 320px) minmax(0, 1fr); gap: 14px; align-items: start; }
.tchat-list { display: grid; gap: 2px; padding: 8px; max-height: 70vh; overflow-y: auto; }
.tchat-item { display: flex; gap: 10px; align-items: center; padding: 8px; border-radius: 12px; color: inherit; text-decoration: none; }
.tchat-item:hover { background: var(--soft); } .tchat-item.on { background: var(--lime); }
.tchat-item .dtx { min-width: 0; flex: 1; display: grid; } .tchat-item .dtx span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tchat-meta { display: grid; justify-items: end; gap: 4px; flex: none; }
.tchat-item .side-badge { margin-left: 0; }
.avatar.grp { background: var(--green); color: var(--green-ink); }
.tchat-thread { display: grid; gap: 10px; }
.tchat-log { max-height: 58vh; min-height: 280px; }
.tchat-back { display: none; }
@media (max-width: 760px) {
  .tchat { grid-template-columns: 1fr; }
  .tchat.has-thread .tchat-list, .tchat:not(.has-thread) .tchat-empty { display: none; }
  .tchat.has-thread .tchat-back { display: inline-flex; }
  .tchat-log { max-height: 60vh; }
}

/* Zwykłe wpisy w kalendarzu (18.10.2026): niebieskoszary pasek, odróżnia się od imprez */
.cal-ev.cal-note { background: #e6ecf3; border-left-color: #4a6a8a; color: #22384d; }
.day-ev i.note-dot { background: #4a6a8a; }
/* ciemny wygląd: tylko po wyborze w „Wygląd” (html.mode-dark), nie sam z telefonu */html.mode-dark:not(.in-pracownia) .cal-ev.cal-note { background: #1f2a35; color: #c9d6e3; }

.side-custom { background: none; border: 0; width: 100%; font: inherit; cursor: pointer; text-align: left; margin-top: 8px; opacity: .75; }
.side-custom:hover { opacity: 1; }
/* Karta imprezy: oryginał zamówienia w podglądzie (jak w starej Pracowni) */
.kitchen-ev .pdf-frame { width: 100%; height: 70vh; min-height: 420px; border: 1px solid var(--line); border-radius: 12px; background: #fff; margin-top: 8px; }
.kitchen-ev details > summary { cursor: pointer; font-weight: 600; margin-top: 6px; }

/* Karta imprezy: klocki w dwóch kolumnach bez dziur (18.10.2026) */
.ev-cols { display: block; columns: 2 400px; column-gap: 14px; }
.ev-cols > .card { display: inline-block; width: 100%; margin: 0 0 14px; break-inside: avoid; vertical-align: top; }
.ev-cols .chat-off { padding-top: 14px; padding-bottom: 14px; }
.ev-cols textarea { max-height: 50vh; }
/* Notatnik imprezy (18.10) */
.notepad-card .ev-notepad { width: 100%; min-height: 110px; resize: vertical; font: inherit; line-height: 1.5; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line, #ddd); background: var(--card, #fff); color: inherit; }
.notepad-card .card-head { align-items: baseline; }
/* Załączniki w czacie zespołu (18.10) */
.tc-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.tc-img img { display: block; max-width: min(260px, 60vw); max-height: 220px; border-radius: 10px; object-fit: cover; background: var(--soft); }
.tc-file { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.75); color: #151212; text-decoration: none; max-width: 260px; }
.tc-ico { flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center; background: #d4161b; color: #fff; font-size: 11px; font-weight: 800; }
.tc-fn { display: grid; min-width: 0; } .tc-fn b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .tc-fn small { font-size: 11px; opacity: .7; }
.tc-pending { display: flex; flex-wrap: wrap; gap: 6px; } .tc-pending:empty { display: none; }
.tc-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 10px; border-radius: 999px; background: var(--soft); font-size: 13px; max-width: 100%; }
.tc-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-chip button { border: 0; background: none; font-size: 18px; line-height: 1; cursor: pointer; color: inherit; padding: 2px 4px; }
.tc-attach { flex: none; font-size: 20px; min-width: 48px; align-self: stretch; }
/* Przepisy kuchni (18.10) */
.rc-add { font-size: 16px; padding: 12px 18px; }
.rc-search { width: 100%; max-width: 420px; margin-bottom: 12px; }
.rc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rc-tile { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 10px; color: inherit; text-decoration: none; margin: 0; }
.rc-tile img, .rc-noimg { width: 96px; height: 96px; border-radius: 12px; object-fit: cover; background: var(--soft); display: grid; place-items: center; font-size: 34px; }
.rc-tx { display: grid; gap: 3px; min-width: 0; } .rc-tx b { font-size: 16px; } .rc-tx span { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.rc-editor { display: grid; gap: 12px; }
.rc-pad { width: 100%; min-height: 50vh; resize: vertical; font: inherit; font-size: 17px; line-height: 1.6; padding: 16px 18px; border-radius: 14px; border: 1px solid var(--line, #ddd); background: #fffdf8; color: #151212;
  background-image: repeating-linear-gradient(transparent 0 calc(1.6em - 1px), rgba(0,0,0,.06) calc(1.6em - 1px) 1.6em); background-attachment: local; background-position: 0 16px; }
.rc-save { font-size: 17px; padding: 12px 28px; }
.rc-card { display: grid; gap: 18px; }
.rc-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; }
.rc-photos:empty { display: none; }
.rc-ph { position: relative; margin: 0; } .rc-ph img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 12px; display: block; }
.rc-ph.main { grid-column: span 2; grid-row: span 2; }
.rc-phdel { position: absolute; top: 6px; right: 6px; width: 30px; height: 30px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; font-size: 18px; cursor: pointer; }
.rc-media { display: grid; gap: 10px; }
.rc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 24px; }
.rc-cols h2 { font-size: 18px; margin: 0 0 8px; }
.rc-ing { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 2px; }
.rc-ing li { padding: 8px 0; border-bottom: 1px solid var(--line, #eee); font-size: 16px; }
.rc-ing b { color: #d4161b; }
.rc-steps { margin: 0; padding-left: 0; list-style: none; counter-reset: krok; display: grid; gap: 10px; }
.rc-steps li { counter-increment: krok; display: grid; grid-template-columns: 34px 1fr; gap: 10px; font-size: 16px; line-height: 1.5; }
.rc-steps li::before { content: counter(krok); width: 30px; height: 30px; border-radius: 50%; background: #151212; color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; }
.rc-raw summary { cursor: pointer; color: var(--muted, #777); }
.rc-actions { gap: 8px; flex-wrap: wrap; }
@media (max-width: 760px) { .rc-cols { grid-template-columns: 1fr; } .rc-ph.main { grid-column: span 2; } .rc-pad { min-height: 55vh; } }
@media print { .rc-card { box-shadow: none; border: 0; } .rc-raw { display: none; } }
/* Pasek nowej wiadomości (18.10) */
.chat-alert { position: fixed; top: calc(var(--kbot-h, 0px) + env(safe-area-inset-top, 0px) + 10px); left: 50%; transform: translateX(-50%); z-index: 2147483003; width: min(720px, calc(100vw - 24px));
  display: flex; align-items: stretch; background: #d4161b; color: #fff; border-radius: 16px; box-shadow: 0 10px 30px rgba(0,0,0,.35); animation: chatAlertIn .25s ease-out; }
.chat-alert-main { flex: 1; display: flex; align-items: center; gap: 12px; padding: 12px 6px 12px 16px; color: #fff; text-decoration: none; min-width: 0; }
.chat-alert-ico { font-size: 24px; }
.chat-alert-tx { display: grid; min-width: 0; } .chat-alert-tx b { font-size: 15px; } .chat-alert-tx span { font-size: 14px; opacity: .95; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-alert-open { margin-left: auto; background: #fff; color: #d4161b; font-weight: 800; border-radius: 10px; padding: 8px 14px; font-size: 14px; flex: none; }
.chat-alert-x { border: 0; background: none; color: #fff; font-size: 26px; padding: 0 16px; cursor: pointer; }
@keyframes chatAlertIn { from { transform: translate(-50%, -30px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
/* Obsada na górze karty imprezy (18.10) */
.crew-card { display: grid; gap: 10px; }
.crew-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; }
.crew-row { display: grid; gap: 6px; }
.crew-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; font-weight: 600; }
.crew-ok { color: #2f7d32; } .crew-short { color: #d4161b; }
.crew-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.crew-chip { display: inline-flex; gap: 6px; align-items: baseline; padding: 6px 12px; border-radius: 999px; background: var(--soft, #f3f0ea); font-size: 14px; }
.crew-chip span { color: var(--muted, #777); font-size: 12px; }
@media (max-width: 700px) { .chat-alert-tx span { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .chat-alert-open { padding: 8px 10px; } }
.rc-tabs { margin-bottom: 12px; }
.rc-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 12px; margin-bottom: 12px; }
.rc-mode { display: grid; gap: 8px; padding: 14px; border-radius: 14px; background: var(--white, #fff); border: 1px solid var(--line, #e5e0d8); }
.rc-mode .row { flex-wrap: nowrap; gap: 8px; }
.rc-url { flex: 1; min-width: 0; font-size: 16px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line, #ddd); }
.rc-info { padding: 10px 14px; border-radius: 12px; background: var(--soft, #f3f0ea); margin: 0 0 12px; }
.rc-info.ok { background: #e8f5e9; color: #1b5e20; } .rc-info.warn { background: #fff3e0; color: #8a4b00; }
/* Kalendarz na telefonie: cały miesiąc w kratkę (18.10) */
.cal-views { margin: 0 0 10px; }
.cal-grid.mini { grid-template-columns: repeat(7, 1fr); min-width: 0; gap: 4px; }
.cal-grid.mini .cal-cell { min-height: 52px; padding: 4px 2px; justify-items: center; gap: 4px; font: inherit; color: inherit; }
.cal-grid.mini .cal-d { font-size: 14px; color: var(--ink); }
.cal-grid.mini .cal-cell.short { box-shadow: inset 0 -3px 0 #c2410c; }
.mini-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 3px; align-items: center; }
.mini-dots i { width: 7px; height: 7px; border-radius: 50%; display: block; }
.mini-dots i.mini-note { background: #4a6a8a; }
.mini-dots i.mini-open { opacity: .45; }
.mini-dots b { font-size: 10px; color: var(--muted); }
.cal-mini-card { padding: 10px 8px; }
/* Kolor aplikacji wybierany przez każdą osobę (18.10): zielony = dawny wygląd (bez motywu wilka), dalej niebieski, fioletowy, grafitowy */
html.accent-niebieski { --green: #1d4ed8; --green-ink: #fff; --lime: #dbe7ff; --soft: #e7edf7; --accent: #1d4ed8; --side: #0f1f3d; --side-ink: #e6ecf7; }
html.accent-fioletowy { --green: #6d28d9; --green-ink: #fff; --lime: #ede4fb; --soft: #efe9f8; --accent: #6d28d9; --side: #1e1033; --side-ink: #efe8fb; }
html.accent-grafit { --green: #334155; --green-ink: #fff; --lime: #e2e8f0; --soft: #e9edf2; --accent: #334155; --side: #111827; --side-ink: #e5e7eb; }
html.accent-niebieski.mode-dark:not(.in-pracownia) { --green: #7aa2ff; --green-ink: #0b1020; --lime: #1e2a4a; --soft: #1b2233; }
html.accent-fioletowy.mode-dark:not(.in-pracownia) { --green: #b39dff; --green-ink: #140a26; --lime: #2b1f45; --soft: #221a33; }
html.accent-grafit.mode-dark:not(.in-pracownia) { --green: #cbd5e1; --green-ink: #0f172a; --lime: #273142; --soft: #1e2532; }
html.accent-niebieski .side-i.on, html.accent-fioletowy .side-i.on, html.accent-grafit .side-i.on { background: #fff; color: var(--ink); }
/* wybór wyglądu na koncie */
.look-row { display: flex; flex-wrap: wrap; gap: 8px; }
.look-opt { border: 2px solid var(--line); background: var(--white); color: var(--ink); border-radius: 12px; padding: 10px 14px; min-height: 48px; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; cursor: pointer; }
.look-opt.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink) inset; }
.look-opt i { width: 22px; height: 22px; border-radius: 50%; display: inline-block; border: 1px solid #0002; }
/* Przepisy w układzie starej aplikacji Receptury (18.10) — kolory z motywu (--green = akcent, --lime = tło akcentu) */
.rc-search { width: 100%; max-width: none; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); font-size: 16px; margin: 0 0 12px; }
.rc-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
.rc-tile { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; padding: 14px; border-radius: 14px; background: var(--white); border: 1px solid var(--line); color: var(--ink); text-decoration: none; box-shadow: 0 1px 3px #0000000d; min-height: 64px; }
.rc-tile:active { background: var(--lime); }
.rc-emo { font-size: 26px; line-height: 1; }
.rc-tname { font-weight: 600; font-size: 15px; }
.rc-tcount { color: var(--muted); font-size: 13px; font-weight: 600; background: var(--soft); border-radius: 999px; padding: 2px 9px; }
.rc-sec { margin: 0 0 16px; }
.rc-sec h3 { font-size: 12px; letter-spacing: .08em; color: var(--muted); font-weight: 700; margin: 0 0 6px 2px; }
.rc-group, .rc-block { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: 0 1px 3px #0000000d; }
.rc-block { padding: 6px 14px; }
.rc-row { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.rc-row:last-child { border-bottom: 0; } .rc-row:active { background: var(--lime); }
.rc-ico { width: 46px; height: 46px; border-radius: 10px; background: var(--lime); display: grid; place-items: center; font-size: 22px; flex: none; overflow: hidden; }
.rc-ico img { width: 100%; height: 100%; object-fit: cover; }
.rc-rtx { flex: 1; min-width: 0; display: grid; } .rc-rtx b { font-size: 16px; font-weight: 600; } .rc-rtx small { color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rc-chev { color: var(--muted); font-size: 20px; flex: none; }
.rc-bar { display: flex; align-items: center; gap: 10px; padding: 6px 0 12px; }
.rc-back { color: var(--green); font-weight: 600; text-decoration: none; font-size: 16px; padding: 6px 0; }
.rc-bartitle { margin-left: auto; color: var(--muted); font-weight: 600; font-size: 14px; }
.rc-close { margin-left: auto; color: var(--muted); text-decoration: none; font-size: 20px; padding: 4px 8px; }
.rc-tyt { font-size: 28px; margin: 2px 0 4px; }
.rc-podtyt { color: var(--muted); font-size: 14px; margin-bottom: 8px; }
.rc-katznak { border: 1px dashed var(--line); background: none; color: var(--muted); border-radius: 999px; padding: 6px 12px; font-size: 13px; margin-bottom: 12px; cursor: pointer; }
.rc-katznak b { color: var(--ink); }
.rc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.rc-chips button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 12px; font-size: 14px; cursor: pointer; }
.rc-chips button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 600; }
.rc-foto { margin-bottom: 14px; display: grid; gap: 8px; }
.rc-foto > a img { width: 100%; max-height: 380px; object-fit: cover; border-radius: 16px; display: block; }
.rc-thumbs { display: flex; gap: 6px; overflow-x: auto; } .rc-thumbs img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.rc-foto-dodaj { width: 100%; padding: 26px 14px; border: 2px dashed var(--line); border-radius: 16px; background: var(--white); color: var(--muted); font-size: 16px; font-weight: 600; cursor: pointer; }
.rc-foto-zmien { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 10px; padding: 8px 12px; font-size: 14px; cursor: pointer; }
.rc-porcje { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 14px; margin-bottom: 12px; }
.rc-lab { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 8px; }
.rc-ster { display: flex; align-items: center; justify-content: center; gap: 16px; }
.rc-ster button { width: 54px; height: 54px; border-radius: 50%; border: 1px solid var(--line); background: var(--soft); font-size: 26px; cursor: pointer; color: var(--ink); }
.rc-licz { text-align: center; min-width: 110px; } .rc-licz b { display: block; font-size: 36px; line-height: 1; } .rc-licz span { color: var(--muted); font-size: 14px; }
.rc-skroty { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 12px; }
.rc-skroty button { border: 1px solid var(--line); background: var(--white); color: var(--ink); border-radius: 999px; padding: 7px 13px; font-size: 14px; cursor: pointer; }
.rc-skroty button[aria-pressed="true"] { background: var(--green); color: var(--green-ink); border-color: var(--green); font-weight: 700; }
.rc-note { margin: 10px 2px 0; font-size: 14px; color: var(--muted); }
.rc-baza { display: grid; gap: 8px; } .rc-baza .row { gap: 8px; flex-wrap: nowrap; }
.rc-baseinput { width: 110px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; font-size: 16px; text-align: center; }
.rc-akcje { display: flex; gap: 8px; margin-bottom: 16px; }
.rc-big { flex: 1; text-align: center; border: 0; border-radius: 14px; padding: 14px 10px; font-size: 16px; font-weight: 700; background: var(--green); color: var(--green-ink); cursor: pointer; text-decoration: none; }
.rc-big:first-child { flex: 2; }
.rc-big.alt { background: var(--lime); color: var(--green); }
.rc-skl { display: grid; grid-template-columns: minmax(84px, 30%) 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); align-items: baseline; }
.rc-skl:last-child { border-bottom: 0; }
.rc-il { font-weight: 700; color: var(--green); font-variant-numeric: tabular-nums; }
.rc-nz { font-size: 16px; } .rc-nz small { display: block; color: var(--muted); font-size: 12px; }
.rc-skl.stale .rc-il { color: var(--muted); }
.rc-kroki { margin: 0; padding: 4px 0; list-style: none; counter-reset: krok; display: grid; }
.rc-kroki li { counter-increment: krok; display: grid; grid-template-columns: 32px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 16px; line-height: 1.5; }
.rc-kroki li:last-child { border-bottom: 0; }
.rc-kroki li::before { content: counter(krok); width: 28px; height: 28px; border-radius: 50%; background: var(--green); color: var(--green-ink); display: grid; place-items: center; font-weight: 700; font-size: 13px; }
.rc-podanie { margin: 8px 0; padding-left: 20px; }
.rc-usun { border: 0; background: none; color: #b3261e; padding: 10px 0; font-size: 14px; cursor: pointer; }
/* tryb Ugotuj */
.rc-gotuj { position: fixed; inset: 0; z-index: 2147483004; background: var(--paper); display: grid; grid-template-rows: auto auto 1fr auto; padding: env(safe-area-inset-top) 16px calc(16px + env(safe-area-inset-bottom)); }
.gt-gora { display: flex; align-items: center; gap: 12px; padding: 12px 0; } .gt-gora button { border: 0; background: var(--soft); width: 44px; height: 44px; border-radius: 50%; font-size: 18px; color: var(--ink); }
.gt-nazwa { font-weight: 700; flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .gt-porcje { color: var(--muted); font-size: 14px; }
.gt-pasek { display: flex; gap: 4px; margin-bottom: 14px; } .gt-pasek span { flex: 1; height: 5px; border-radius: 3px; background: var(--line); } .gt-pasek .zrobione { background: var(--lime); } .gt-pasek .akt { background: var(--green); }
.gt-tresc { overflow-y: auto; } .gt-tresc h2 { font-size: 26px; margin-bottom: 14px; }
.gt-tekst { font-size: 24px; line-height: 1.5; }
.gt-skl { display: grid; } .gt-poz { display: grid; grid-template-columns: minmax(90px, 32%) 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 20px; } .gt-il { font-weight: 700; color: var(--green); }
.gt-dol { display: flex; align-items: center; gap: 10px; padding-top: 12px; } .gt-dol button { flex: 1; border: 1px solid var(--line); background: var(--white); border-radius: 14px; padding: 16px; font-size: 17px; font-weight: 700; color: var(--ink); }
.gt-dol button.glowny { background: var(--green); color: var(--green-ink); border-color: var(--green); } .gt-dol button:disabled { opacity: .4; } .gt-licznik { color: var(--muted); font-size: 14px; }
@media print { .rc-gotuj, .rc-akcje, .rc-porcje .rc-ster button { display: none !important; } }
/* iPhone: pola daty/godziny mają własną szerokość i rozpychały okno wpisu poza ekran (18.10: „kalendarz lata”) */
dialog { max-width: 100vw; overflow-x: hidden; box-sizing: border-box; }
.sheet { grid-template-columns: minmax(0, 1fr); overflow-x: hidden; }
.sheet > *, .sheet label, .sheet .f, .grid2 > *, .grid3 > * { min-width: 0; }
input, select, textarea { min-width: 0; max-width: 100%; box-sizing: border-box; }
input[type=date], input[type=time], input[type=datetime-local] { -webkit-appearance: none; appearance: none; display: block; text-align: left; }
input[type=date]::-webkit-date-and-time-value, input[type=time]::-webkit-date-and-time-value { text-align: left; }
.rc-katalog { background: var(--white); border: 1px solid var(--line); border-radius: 14px; margin-top: 8px; }
/* Checklisty imprez w panelu (18.10) */
.ck-prog { width: 46px; height: 46px; border-radius: 50%; background: var(--lime); color: var(--green); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.ck-bar { height: 8px; border-radius: 4px; background: var(--soft); overflow: hidden; } .ck-bar i { display: block; height: 100%; background: var(--green); transition: width .2s; }
.ck-list { display: grid; }
.ck-h { margin: 14px 0 4px; font-size: 13px; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; } .ck-h1 { font-size: 15px; color: var(--ink); } .ck-h3, .ck-h4 { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--ink); }
.ck-item { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; padding: 10px 2px; border-bottom: 1px solid var(--line); font-size: 16px; cursor: pointer; }
.ck-item input { width: 24px; height: 24px; min-height: 24px; margin-top: 1px; }
.ck-item.done span { color: var(--muted); text-decoration: line-through; }
.ck-add { gap: 8px; flex-wrap: nowrap; } .ck-add input { flex: 1; }
/* Okno od dołu (18.10, „czemu zniknęło menu dolne?”): nagłówek z „Zamknij” i przyciski zawsze widoczne, przewija się tylko środek */
.sheet { padding-top: 0; padding-bottom: 0; max-height: 92vh; max-height: 92dvh; }
.sheet-head { position: sticky; top: 0; z-index: 3; background: var(--paper); padding: 16px 0 10px; border-bottom: 1px solid var(--line); }
.sheet-actions { position: sticky; bottom: 0; z-index: 3; background: var(--paper); padding: 12px 0 calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); flex-wrap: wrap; gap: 8px; }
.sheet > :not(.sheet-head):not(.sheet-actions):last-child { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
@media (max-width: 700px) { .sheet-actions .primary { order: -1; flex-basis: 100%; } .sheet-actions .btn { flex: 1; } }
/* Własne kafelki przepisów (18.10) */
.rc-tile.own { border-color: var(--green); }
.rc-tname small { display: block; color: var(--muted); font-size: 12px; font-weight: 500; }
.rc-newtile { border: 2px dashed var(--line); background: transparent; text-align: left; font: inherit; cursor: pointer; grid-template-columns: auto 1fr; }
.rc-newtile small { grid-column: 2; font-size: 12px; }
.rc-emojis button { font-size: 22px; padding: 6px 10px; }
.rc-pick { display: grid; max-height: 55vh; overflow-y: auto; }
.rc-pick small { font-size: 12px; }
.rc-colactions { gap: 8px; flex-wrap: wrap; margin: 4px 0 14px; }
.rc-rm { border: 0; background: var(--soft); color: var(--muted); width: 32px; height: 32px; border-radius: 50%; font-size: 18px; flex: none; cursor: pointer; }
.rc-tilebtn { width: 100%; border: 1px dashed var(--green); background: transparent; color: var(--green); border-radius: 14px; padding: 12px; font-size: 15px; font-weight: 700; margin: -6px 0 16px; cursor: pointer; }
