/* Conel offer tracker. Tokens from the rr design system with Conel's values (tokens.conel.css). */
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/roboto-v30-latin-ext_latin-regular.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/roboto-v30-latin-ext_latin-500.woff2") format("woff2"); }
@font-face { font-family: "Roboto"; font-style: normal; font-weight: 600 800; font-display: swap; src: url("/fonts/roboto-v30-latin-ext_latin-700.woff2") format("woff2"); }
:root {
  --navy: #00447a; --navy-dark: #002d52; --orange: #fa9600; --orange-deep: #d97b00;
  --bg: #ffffff; --surface: #f3f7fb; --text: #333a40; --heading: #1f2a33; --muted: #5c6670; --border: #d9e1e8;
  --brand: var(--navy); --brand-tint: #e6f0f8; --row-sel: #f5f9fd; --on-brand: #ffffff;
  --info: #3b5b85; --info-soft: #e6ecf3; --success: #3f6b4a; --success-soft: #e7efe8;
  --warning: #8a6420; --warning-soft: #f5eddd; --error: #9c3b32; --error-soft: #f5e3e0;
  --due: #a35c00; --due-soft: #fff4e3; --due-line: #f2c47a; --due-ink: #7a4600;
  --side: #002d52; --side-text: #ffffff; --side-muted: #9fb6cc;
  --radius: 6px; --radius-s: 4px;
  --shadow: 0 12px 40px rgb(0 32 58 / 0.2);
  color-scheme: light;
}
/* Dark mode: follows the system unless the switch picks one (html[data-theme]). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #16222f; --surface: #0f1822; --text: #d6dde5; --heading: #ffffff; --muted: #9aa6b2; --border: #2a3a4b;
    --brand: #7fbaf0; --brand-tint: #1a2c40; --row-sel: #1a2a3b; --on-brand: #0f1822;
    --info: #8fb3e0; --info-soft: #1c2c40; --success: #8fcf9f; --success-soft: #1b2e22;
    --warning: #e6b866; --warning-soft: #33291a; --error: #f09a90; --error-soft: #3a1f1c;
    --due: #f0b35a; --due-soft: #33261a; --due-line: #6b4a1d; --due-ink: #f6c98a;
    --side: #0a131c;
    --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #16222f; --surface: #0f1822; --text: #d6dde5; --heading: #ffffff; --muted: #9aa6b2; --border: #2a3a4b;
  --brand: #7fbaf0; --brand-tint: #1a2c40; --row-sel: #1a2a3b; --on-brand: #0f1822;
  --info: #8fb3e0; --info-soft: #1c2c40; --success: #8fcf9f; --success-soft: #1b2e22;
  --warning: #e6b866; --warning-soft: #33291a; --error: #f09a90; --error-soft: #3a1f1c;
  --due: #f0b35a; --due-soft: #33261a; --due-line: #6b4a1d; --due-ink: #f6c98a;
  --side: #0a131c;
  --shadow: 0 12px 40px rgb(0 0 0 / 0.5);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { font: 15px/1.45 Roboto, system-ui, -apple-system, "Segoe UI", Arial, sans-serif; background: var(--surface); color: var(--text); }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); }
h1, h2, h3 { color: var(--heading); margin: 0; text-wrap: balance; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tnum { font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; border-radius: 3px; }
[hidden] { display: none !important; }

/* ---------- layout ---------- */
.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 16px; display: flex; flex-direction: column; gap: 4px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.brand { display: flex; align-items: center; gap: 10px; padding: 10px 8px 20px; }
.brand-mark { width: 30px; height: 30px; border-radius: 5px; background: var(--orange); color: var(--navy-dark); font-weight: 800; display: grid; place-items: center; }
.brand div b { display: block; font-size: 15px; }
.brand div span { display: block; font-size: 12px; color: var(--side-muted); }
.nav { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: var(--radius); color: var(--side-text); text-decoration: none; font-size: 14px; border: 0; background: none; width: 100%; text-align: left; cursor: pointer; }
.nav:hover { background: rgb(255 255 255 / 0.07); }
.nav[aria-current="page"] { background: rgb(255 255 255 / 0.12); font-weight: 600; }
.nav .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav svg { color: #cfe0f1; flex: none; }
.count { font-size: 11.5px; font-weight: 600; padding: 1px 7px; border-radius: 999px; background: rgb(255 255 255 / 0.14); }
.nav[aria-current="page"] .count.hot, .count.hot { background: var(--orange); color: var(--navy-dark); }
.side-head { display: flex; align-items: center; padding: 18px 12px 4px; font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--side-muted); }
.side-head .grow { flex: 1; }
.icon-btn { border: 0; background: none; color: inherit; padding: 6px; border-radius: var(--radius-s); cursor: pointer; display: inline-grid; place-items: center; min-width: 32px; min-height: 32px; }
.icon-btn:hover { background: rgb(127 127 127 / 0.15); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex: none; display: inline-block; }
.theme { margin-top: auto; display: flex; gap: 2px; padding: 3px; border-radius: var(--radius); background: rgb(255 255 255 / 0.08); }
.theme button { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 5px; border: 0; background: none; color: var(--side-muted); font-size: 12.5px; padding: 6px 4px; border-radius: var(--radius-s); cursor: pointer; min-height: 30px; }
.theme button:hover { color: #fff; }
.theme button[aria-pressed="true"] { background: rgb(255 255 255 / 0.16); color: #fff; font-weight: 600; }
.me { display: flex; align-items: center; gap: 10px; padding: 12px 8px 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: #1d4f75; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: #fff; flex: none; }
.me small { display: block; color: var(--side-muted); }
.me .link-btn { color: var(--side-muted); }

.main { padding: 28px 32px 96px; min-width: 0; }
.topbar { display: none; }
.page-head { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .grow { flex: 1; min-width: 260px; }
.page-head h1 { font-size: 28px; line-height: 1.15; }
.eyebrow { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 6px; }

/* ---------- controls ---------- */
.btn { display: inline-flex; align-items: center; gap: 7px; padding: 9px 14px; border-radius: var(--radius-s); border: 1px solid var(--border); background: var(--bg); color: var(--brand); font-weight: 500; font-size: 14px; cursor: pointer; text-decoration: none; min-height: 38px; white-space: nowrap; }
.btn:hover { border-color: var(--brand); }
.btn.pri { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.btn.accent { background: var(--orange-deep); border-color: var(--orange-deep); color: #fff; font-weight: 700; }
.btn.pri:hover, .btn.accent:hover { filter: brightness(1.08); }
.btn.sm { padding: 6px 10px; min-height: 32px; font-size: 13.5px; }
.btn.danger { color: var(--error); border-color: transparent; background: none; padding-left: 4px; }
.btn[disabled] { opacity: 0.5; cursor: default; }
.link-btn { border: 0; background: none; color: var(--brand); padding: 2px 0; cursor: pointer; font-weight: 500; text-align: left; }
.link-btn:hover { text-decoration: underline; }
.input, .textarea, .select { width: 100%; padding: 9px 12px; border: 1px solid var(--border); border-radius: var(--radius-s); background: var(--bg); min-height: 40px; }
.textarea { min-height: 90px; resize: vertical; line-height: 1.5; }
.input:focus, .textarea:focus, .select:focus { outline: 2px solid var(--brand); outline-offset: -1px; }
.search { position: relative; flex: 1 1 280px; max-width: 380px; }
.search svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.search .input { padding-left: 36px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg); font-size: 13px; font-weight: 500; cursor: pointer; white-space: nowrap; min-height: 32px; }
.chip[aria-pressed="true"] { background: var(--brand); border-color: var(--brand); color: var(--on-brand); }
.toolbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.toolbar .spacer { flex: 1; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > span { font-size: 13px; font-weight: 600; color: var(--heading); }
.field > span small { font-weight: 400; color: var(--muted); margin-left: 4px; }
.row { display: flex; gap: 14px; }
.row > * { flex: 1; min-width: 0; }
.toggle { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; cursor: pointer; }
.toggle input { width: 18px; height: 18px; accent-color: var(--brand); }

/* ---------- cards ---------- */
.card { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.offer-card { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 14px; }
.offer-card .grow { flex: 1; min-width: 0; }
.offer-card p { margin: 4px 0 0; white-space: pre-wrap; }
.label { font-size: 12.5px; font-weight: 600; color: var(--muted); }
.summary { display: grid; grid-template-columns: 250px 1fr; gap: 12px; margin-bottom: 18px; }
.due-box { background: var(--due-soft); border: 1px solid var(--due-line); border-radius: var(--radius); padding: 16px; color: var(--due-ink); text-align: left; cursor: pointer; display: flex; flex-direction: column; gap: 4px; }
.due-box b { font-size: 30px; line-height: 1.1; }
.due-box .head { display: flex; gap: 8px; align-items: center; font-weight: 600; font-size: 13.5px; }
.due-box.calm { background: var(--bg); border-color: var(--border); color: var(--muted); }
.stats { display: grid; grid-template-columns: repeat(6, 1fr); gap: 4px; }
.stat { border: 0; background: none; text-align: left; padding: 4px 6px; border-radius: var(--radius-s); cursor: pointer; }
.stat:hover, .stat[aria-pressed="true"] { background: var(--surface); }
.stat b { display: block; font-size: 24px; color: var(--heading); line-height: 1.2; }
.stat span { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.bar { display: flex; gap: 2px; height: 8px; border-radius: 4px; overflow: hidden; margin: 12px 0 10px; background: var(--surface); }
.bar i { display: block; }

/* status colours */
.s-do { --sb: var(--surface); --sc: var(--muted); }
.s-wys { --sb: var(--info-soft); --sc: var(--info); }
.s-zain { --sb: var(--success-soft); --sc: var(--success); }
.s-zam { --sb: var(--success); --sc: var(--on-brand); }
.s-nie { --sb: var(--error-soft); --sc: var(--error); }
.s-brak { --sb: var(--warning-soft); --sc: var(--warning); }
.sdot { width: 8px; height: 8px; border-radius: 50%; background: var(--sc); display: inline-block; flex: none; }
.s-zam .sdot, .sdot.s-zam { background: var(--success); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--sb); color: var(--sc); font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.pill-select { appearance: none; -webkit-appearance: none; border: 0; border-radius: 999px; padding: 5px 28px 5px 12px; background: var(--sb) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6670' stroke-width='2.5'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 10px center; color: var(--sc); font-size: 13px; font-weight: 500; cursor: pointer; max-width: 100%; min-height: 30px; }
.pill-select option { background: var(--bg); color: var(--text); }
.tag { display: inline-block; font-size: 11px; font-weight: 600; padding: 1px 6px; border-radius: 3px; background: #eef0f3; color: #555; white-space: nowrap; }
.g-klient { background: #e3f1e6; color: #2c5e38; }
.g-potencjalny { background: #ece8f8; color: #4b3a8a; }
.g-weryfikacja { background: #f8ecd6; color: #7a5413; }
.g-producent { background: #e1eef7; color: #1d4f75; }
.g-pl { background: #dff3f6; color: #0d6470; }

/* ---------- list (table on desktop, cards on phone) ---------- */
.list { background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.lrow { display: grid; align-items: center; border-top: 1px solid var(--border); }
.lrow:first-child { border-top: 0; }
.lrow > * { padding: 11px 10px; min-width: 0; }
.lhead { background: var(--brand-tint); font-size: 12px; font-weight: 600; color: var(--brand); }
.lhead > * { padding-top: 10px; padding-bottom: 10px; }
.lrow.sel { background: var(--row-sel); }
.entries .lrow { grid-template-columns: 44px minmax(170px, 1.2fr) minmax(170px, 1.2fr) 96px 186px minmax(150px, 1.4fr) 110px 48px; }
.clients-list .lrow { grid-template-columns: minmax(180px, 1.3fr) minmax(180px, 1.3fr) minmax(140px, 1fr) 120px 120px minmax(140px, 1fr); }
.reports-list .lrow { grid-template-columns: minmax(200px, 1fr) 100px 90px 100px 100px 290px; }
.lrow .num { text-align: right; }
.cell-stack { display: flex; flex-direction: column; gap: 3px; align-items: flex-start; }
.company { font-weight: 600; color: var(--brand); font-size: 14.5px; }
.note-cell { font-size: 14px; white-space: pre-wrap; overflow-wrap: anywhere; }
.chk { width: 18px; height: 18px; accent-color: var(--brand); cursor: pointer; }
.late { color: var(--error); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.today-flag { color: var(--due); font-weight: 600; display: inline-flex; gap: 5px; align-items: center; }
.list-foot { padding: 12px 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--muted); display: flex; gap: 12px; align-items: center; }
.list-foot .grow { flex: 1; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); }
.empty .btn { margin-top: 12px; }

.bulk { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; background: var(--navy); color: #fff; border-radius: var(--radius); padding: 8px 16px; margin-bottom: 12px; }
.bulk button { border: 0; background: none; color: #fff; display: inline-flex; gap: 6px; align-items: center; cursor: pointer; padding: 6px 2px; font-size: 14px; }
.bulk button svg { color: #cfe0f1; }
.bulk button:hover { text-decoration: underline; }
.bulk .spacer { flex: 1; }
.bulk select { background: #fff; color: #1f2a33; border-radius: var(--radius-s); border: 0; padding: 5px 8px; }

/* ---------- today ---------- */
.group { margin-bottom: 16px; padding: 0; overflow: hidden; }
.group-head { display: flex; align-items: center; gap: 10px; padding: 12px 18px; }
.group-head h2 { font-size: 15.5px; }
.todo { display: grid; grid-template-columns: 4px minmax(200px, 1.4fr) minmax(170px, 1fr) minmax(120px, 1fr) auto; gap: 18px; align-items: center; padding: 14px 18px; border-top: 1px solid var(--border); }
.todo .stripe { width: 4px; height: 44px; border-radius: 2px; }
.todo .acts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }

/* ---------- reports ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.tile b { display: block; font-size: 32px; color: var(--heading); line-height: 1.2; margin: 4px 0; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; align-items: stretch; }
.meter { height: 10px; border-radius: 3px; background: var(--surface); overflow: hidden; display: flex; }
.meter i { display: block; height: 100%; }
.hbar { display: grid; grid-template-columns: 150px 1fr 150px; gap: 12px; align-items: center; padding: 6px 0; font-size: 14px; }

/* ---------- panels and modals ---------- */
.scrim { position: fixed; inset: 0; background: rgb(15 24 34 / 0.45); z-index: 40; display: flex; justify-content: flex-end; }
.scrim.center { justify-content: center; align-items: flex-start; padding: 48px 16px; overflow-y: auto; }
.panel { background: var(--bg); width: min(560px, 100%); height: 100%; display: flex; flex-direction: column; box-shadow: var(--shadow); }
.modal { background: var(--bg); width: min(960px, 100%); border-radius: 8px; box-shadow: var(--shadow); display: flex; flex-direction: column; max-height: calc(100vh - 96px); }
.modal.narrow { width: min(640px, 100%); }
.p-head { display: flex; align-items: flex-start; gap: 12px; padding: 20px 24px 14px; }
.p-head .grow { flex: 1; min-width: 0; }
.p-head h2 { font-size: 21px; }
.p-body { padding: 4px 24px 20px; overflow-y: auto; display: flex; flex-direction: column; gap: 16px; flex: 1; }
.p-foot { display: flex; align-items: center; gap: 10px; padding: 14px 24px; background: var(--surface); border-top: 1px solid var(--border); flex-wrap: wrap; }
.p-foot .grow { flex: 1; }
.panel .p-head { background: var(--brand-tint); padding-bottom: 16px; }
.kv { display: grid; grid-template-columns: 140px 1fr; }
.kv > * { padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 14px; overflow-wrap: anywhere; }
.kv dt { color: var(--muted); font-size: 13px; }
.kv dd { margin: 0; }
.subhead { font-size: 13.5px; font-weight: 600; color: var(--heading); margin-bottom: 4px; }
.hist { display: grid; grid-template-columns: 52px 1fr; gap: 4px 10px; font-size: 13.5px; }
.status-picks { display: flex; flex-wrap: wrap; gap: 8px; }
.status-picks label { cursor: pointer; }
.status-picks input { position: absolute; opacity: 0; pointer-events: none; }
.status-picks span { display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); font-size: 13.5px; }
.status-picks input:checked + span { background: var(--sb); border-color: var(--sc); color: var(--sc); font-weight: 600; box-shadow: inset 0 0 0 0.5px var(--sc); }
.s-zam.status-picks input:checked + span, .status-picks .s-zam input:checked + span { color: #fff; }
.status-picks input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 2px; }
.hint { font-size: 12.5px; color: var(--muted); }
.callout { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: var(--radius-s); background: var(--info-soft); color: var(--info); font-size: 13px; }
.reason-box { background: var(--surface); padding: 12px; border-radius: var(--radius); }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatches label { cursor: pointer; }
.swatches input { position: absolute; opacity: 0; }
.swatches span { display: block; width: 28px; height: 28px; border-radius: 50%; }
.swatches input:checked + span { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4.5px var(--heading); }
.swatches input:focus-visible + span { outline: 3px solid var(--brand); outline-offset: 4px; }

.pick-list { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); overflow-y: auto; flex: 1; min-height: 200px; }
.pick { display: grid; grid-template-columns: 24px minmax(180px, 1.2fr) minmax(170px, 1fr) minmax(160px, 1fr) 112px; gap: 14px; align-items: center; padding: 11px 24px; border-top: 1px solid var(--border); cursor: pointer; }
.pick:first-child { border-top: 0; }
.pick.sel { background: var(--row-sel); }
.pick.dis { opacity: 0.55; cursor: default; }
.pick-head { display: flex; align-items: center; gap: 12px; padding: 9px 24px; background: var(--brand-tint); font-size: 13px; }
.pick-head .grow { flex: 1; color: var(--brand); font-weight: 600; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #1f2a33; color: #fff; padding: 10px 16px; border-radius: var(--radius); z-index: 60; box-shadow: var(--shadow); font-size: 14px; display: flex; gap: 14px; align-items: center; }
.toast button { background: none; border: 0; color: var(--orange); font-weight: 600; cursor: pointer; }
.fb-btn { position: fixed; right: 20px; bottom: 20px; z-index: 30; box-shadow: var(--shadow); }
.banner { background: var(--warning-soft); color: var(--warning); padding: 10px 14px; border-radius: var(--radius); display: flex; gap: 10px; align-items: center; margin-bottom: 14px; font-size: 14px; }
.banner .grow { flex: 1; }
.demo-note { background: var(--info-soft); color: var(--info); padding: 8px 14px; border-radius: var(--radius); font-size: 13px; margin-bottom: 16px; display: flex; gap: 8px; align-items: center; }

/* ---------- login ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: var(--navy-dark); }
.login form { background: var(--bg); padding: 28px; border-radius: 8px; width: min(380px, 100%); display: flex; flex-direction: column; gap: 14px; box-shadow: var(--shadow); }
.login h1 { font-size: 22px; }
.error { color: var(--error); font-size: 14px; min-height: 1em; }

/* ---------- smaller screens ---------- */
@media (max-width: 1180px) {
  .entries .lrow { grid-template-columns: 40px minmax(160px, 1fr) minmax(160px, 1fr) 86px 180px minmax(120px, 1fr) 96px 44px; }
  .todo { grid-template-columns: 4px 1fr 1fr; }
  .todo .note, .todo .acts { grid-column: 2 / -1; }
  .todo .acts { justify-content: flex-start; }
  .tiles { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  body { font-size: 15px; }
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 auto 0 0; width: 280px; z-index: 50; transform: translateX(-100%); transition: transform 0.2s; }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open::after { content: ""; position: fixed; inset: 0; background: rgb(0 0 0 / 0.4); z-index: 45; }
  .topbar { display: flex; align-items: center; gap: 10px; background: var(--side); color: #fff; padding: 12px 16px; position: sticky; top: 0; z-index: 20; }
  .topbar .grow { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .main { padding: 16px 16px 96px; }
  .page-head h1 { font-size: 23px; }
  .page-head .btn { flex: 1; justify-content: center; }
  /* Phone: as in the design, only the follow-up banner; status counts live in the filter chips. */
  .summary { grid-template-columns: minmax(0, 1fr); margin-bottom: 12px; }
  .summary > .card, .offer-card { display: none; }
  .due-box { flex-direction: row; align-items: center; gap: 10px; padding: 12px 14px; }
  .due-box b { font-size: 18px; order: -1; }
  .due-box .small { margin-left: auto; }
  .search { max-width: none; flex-basis: 100%; }
  .toolbar .spacer { display: none; }
  .list { background: none; border: 0; overflow: visible; display: flex; flex-direction: column; gap: 10px; }
  .lrow.lhead { display: none; }
  .lrow { display: flex; flex-wrap: wrap; gap: 6px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg); padding: 12px 14px; position: relative; }
  .lrow:first-child { border-top: 1px solid var(--border); }
  .lrow > * { padding: 0; }
  .lrow > .c-main { flex: 1 1 100%; padding-right: 64px; }
  .entries .c-chk { position: absolute; top: 14px; right: 50px; }
  .entries .c-act { position: absolute; top: 6px; right: 6px; }
  .entries .c-sent::before { content: "wysłano "; color: var(--muted); }
  .lrow .c-hide { display: none; }
  .lrow .c-note { flex-basis: 100%; }
  .lrow .num { text-align: left; }
  .list-foot { border: 0; padding: 4px 0; }
  .clients-list .lrow > *, .reports-list .lrow > * { flex: 1 1 45%; }
  .todo { grid-template-columns: 4px 1fr; }
  .todo > :not(.stripe) { grid-column: 2; }
  .tiles, .two { grid-template-columns: 1fr; }
  .hbar { grid-template-columns: 110px 1fr; }
  .hbar span:last-child { grid-column: 2; }
  .row { flex-direction: column; }
  .bulk { position: sticky; top: 56px; z-index: 10; }
  .pick { grid-template-columns: 24px 1fr; padding: 12px 16px; }
  .pick > :nth-child(n+3) { grid-column: 2; }
  .pick-head, .p-head, .p-body, .p-foot { padding-left: 16px; padding-right: 16px; }
  .scrim.center { padding: 0; }
  .modal, .modal.narrow { max-height: 100vh; height: 100%; border-radius: 0; }
  .kv { grid-template-columns: 110px 1fr; }
  .fb-btn { right: 12px; bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
