:root {
  --bg: #f4f6f8;
  --surface: #ffffff;
  --surface-2: #f1f5f9;
  --border: #e2e8f0;
  --text: #0f172a;
  --muted: #64748b;
  --accent: #0f766e;
  --accent-ink: #ffffff;
  --accent-soft: #ccfbf1;
  --danger: #dc2626;
  --warn: #d97706;
  --ok: #16a34a;
  --shadow: 0 6px 24px rgba(15, 23, 42, .12);
  --radius: 12px;
  --panel-w: 420px;
  --topbar-h: 64px;
  --accent-2: var(--accent);
  --doc-accent: #0f766e;
  --font-text: "Open Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-head: Montserrat, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #111a2b; --surface-2: #17233a; --border: #24324d;
    --text: #e2e8f0; --muted: #94a3b8; --accent: #2dd4bf; --accent-ink: #042f2e; --accent-soft: #134e4a;
    --shadow: 0 6px 24px rgba(0, 0, 0, .45); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #111a2b; --surface-2: #17233a; --border: #24324d;
  --text: #e2e8f0; --muted: #94a3b8; --accent: #2dd4bf; --accent-ink: #042f2e; --accent-soft: #134e4a;
  --shadow: 0 6px 24px rgba(0, 0, 0, .45); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; margin: 0; }
body {
  background: var(--bg); color: var(--text);
  font: 15px/1.45 var(--font-text);
  overflow: hidden;
}
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, .brand b, .vhead h2, .title-input, .doc-name, .doc h1, .doc-svc h3 { font-family: var(--font-head); }

/* ---------- top bar ---------- */
.topbar {
  height: calc(var(--topbar-h) + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 12px 0;
  display: flex; align-items: center; gap: 10px;
  background: var(--surface); border-bottom: 1px solid var(--border); position: relative; z-index: 1000;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; white-space: nowrap; min-width: 0; }
.brand img { height: 51px; width: auto; max-width: 224px; object-fit: contain; }
#brandName { display: flex; flex-direction: column; justify-content: center; min-width: 0; max-width: 320px; line-height: 1.2; }
#brandName b, #brandName small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#brandName small { font-size: 11px; font-weight: 400; color: var(--muted); }
.logo-preview { display: flex; align-items: center; justify-content: center; height: 115px; border: 1px dashed var(--border); border-radius: 10px; background: var(--surface-2); margin-bottom: 8px; }
.logo-preview img { max-height: 90px; max-width: 85%; object-fit: contain; }
.search { flex: 1; min-width: 0; }
.search input {
  width: 100%; height: 38px; padding: 0 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--surface-2); outline: none;
}
.search input:focus { border-color: var(--accent); }
.actions { display: flex; gap: 6px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 38px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; white-space: nowrap; text-decoration: none; color: var(--text);
}
.btn:hover { background: var(--surface-2); }
.btn.icon { width: 38px; padding: 0; position: relative; font-size: 17px; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); }
.btn.small { height: 30px; padding: 0 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.badge {
  position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--danger); color: #fff; font-size: 11px; line-height: 18px; font-weight: 700;
}

/* ---------- layout ---------- */
main { position: relative; height: calc(100% - var(--topbar-h) - env(safe-area-inset-top)); display: flex; }
#work { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; --map-h: 45%; }
#map { flex: 1; min-height: 0; background: var(--surface-2); }
body.board-on #map { flex: 0 0 var(--map-h); }
#panel {
  width: var(--panel-w); height: 100%; background: var(--surface); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; z-index: 900;
}
#view { flex: 1; overflow-y: auto; overscroll-behavior: contain; }
.sheet-handle { display: none; }

@media (max-width: 767px) {
  .hide-sm { display: none; }
  :root { --topbar-h: 104px; }
  .topbar { flex-wrap: wrap; align-content: center; row-gap: 6px; padding-bottom: 6px; }
  .brand { flex: 1; height: 50px; }
  .search { order: 3; flex: 1 0 100%; }
  .brand.has-logo #brandName { display: none; }
  #brandName { max-width: 100%; }
  #brandName small { display: none; }
  .brand img { max-width: 60vw; height: 45px; }
  #panel {
    position: absolute; left: 0; right: 0; bottom: 0; width: 100%; border-right: 0;
    border-radius: 16px 16px 0 0; box-shadow: var(--shadow); transition: height .25s ease; z-index: 1001;
    padding-bottom: env(safe-area-inset-bottom);
  }
  #panel.sheet-peek { height: 76px; }
  #panel.sheet-half { height: 48%; }
  #panel.sheet-full { height: 100%; border-radius: 0; }
  .sheet-handle {
    display: flex; justify-content: center; align-items: center; height: 22px; flex: none;
    border: 0; background: transparent; cursor: pointer; width: 100%;
  }
  .sheet-handle span { width: 44px; height: 5px; border-radius: 3px; background: var(--border); }
}

/* ---------- panel content ---------- */
.vhead {
  position: sticky; top: 0; z-index: 5; background: var(--surface);
  padding: 12px 14px 10px; border-bottom: 1px solid var(--border);
}
.vhead h2 { margin: 0; font-size: 17px; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.muted { color: var(--muted); }
.small { font-size: 13px; }

.chips { display: flex; gap: 6px; overflow-x: auto; padding: 8px 0 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 30px; padding: 0 10px; border-radius: 15px; border: 1px solid var(--border);
  background: var(--surface); cursor: pointer; font-size: 13px;
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); }
.chip .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.list li:hover { background: var(--surface-2); }
.list li.sel { background: var(--accent-soft); }
.list .main { flex: 1; min-width: 0; }
.list .name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .sub { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .meta { font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }
.list-foot { padding: 12px 14px; text-align: center; }

section.card { padding: 12px 14px; border-bottom: 1px solid var(--border); }
section.card > h3 {
  margin: 0 0 10px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 10px; }
.grid2 .full { grid-column: 1 / -1; }
label.f { display: flex; flex-direction: column; gap: 3px; font-size: 12px; color: var(--muted); min-width: 0; }
.f input, .f select, .f textarea, input.inp, select.inp, textarea.inp {
  width: 100%; min-height: 36px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 14px; outline: none;
}
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { border-color: var(--accent); }
textarea.inp, .f textarea { resize: vertical; min-height: 64px; }

.title-input {
  width: 100%; border: 1px solid transparent; background: transparent; font-size: 18px; font-weight: 700;
  padding: 4px 6px; margin-left: -6px; border-radius: 8px; outline: none;
}
.title-input:hover, .title-input:focus { border-color: var(--border); background: var(--surface-2); }

.quick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-top: 8px; }
.quick .btn { flex-direction: column; height: 56px; gap: 2px; font-size: 12px; padding: 0 4px; }
.quick .btn b { font-size: 18px; font-weight: 400; line-height: 1; }

.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.status-btn {
  display: flex; align-items: center; gap: 8px; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px; text-align: left;
}
.status-btn.on { border-width: 2px; font-weight: 600; background: var(--surface-2); }

.svc { display: flex; align-items: center; gap: 8px; padding: 4px 0; }
.svc .lbl { flex: 1; }
.svc select { width: 150px; min-height: 32px; padding: 4px 8px; border-radius: 8px; border: 1px solid var(--border); background: var(--surface); font-size: 13px; }
.svc.active .lbl { font-weight: 600; }

.contact { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; }
.contact .row a { color: var(--accent); text-decoration: none; }

.timeline { list-style: none; margin: 10px 0 0; padding: 0; }
.timeline li { display: flex; gap: 10px; padding: 8px 0; border-top: 1px dashed var(--border); }
.timeline .ic { width: 22px; text-align: center; }
.timeline .when { font-size: 12px; color: var(--muted); }
.timeline .txt { white-space: pre-wrap; word-break: break-word; }

.agenda-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); cursor: pointer; }
.agenda-item:hover { background: var(--surface-2); }
.agenda-item .date { width: 64px; flex: none; font-weight: 700; font-size: 13px; }
.agenda-item.overdue .date { color: var(--danger); }
.agenda-item.today .date { color: var(--accent); }
.group-title { padding: 14px 14px 6px; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }

.results { list-style: none; margin: 8px 0 0; padding: 0; border: 1px solid var(--border); border-radius: 10px; overflow: hidden; }
.results:empty { display: none; }
.results li { padding: 9px 12px; cursor: pointer; border-top: 1px solid var(--border); }
.results li:first-child { border-top: 0; }
.results li:hover { background: var(--surface-2); }

.info { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); font-size: 13px; }
.info.ok { background: color-mix(in srgb, var(--ok) 14%, transparent); }
.info.err { background: color-mix(in srgb, var(--danger) 14%, transparent); }

.forecast { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; margin-top: 8px; }
.fday { text-align: center; padding: 6px 2px; border-radius: 8px; background: var(--surface-2); font-size: 11px; }
.fday b { display: block; font-size: 13px; }
.fday.good { background: color-mix(in srgb, var(--ok) 22%, transparent); }
.fday.meh { background: color-mix(in srgb, var(--warn) 18%, transparent); }

.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px; }
.stat { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 8px; background: var(--surface-2); font-size: 13px; }
.stat b { margin-left: auto; font-variant-numeric: tabular-nums; }

/* ---------- map ---------- */
.modebar {
  position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 1000;
  display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 14px; border-radius: 12px;
  background: var(--text); color: var(--bg); box-shadow: var(--shadow); font-size: 14px; max-width: calc(100% - 32px);
}
@media (min-width: 768px) { .modebar { left: calc(50% + var(--panel-w) / 2); } }
.me-dot { width: 16px; height: 16px; border-radius: 50%; background: #2563eb; border: 3px solid #fff; box-shadow: 0 0 0 6px rgba(37, 99, 235, .25); }
.leaflet-container { font: inherit; }
.leaflet-tooltip { font-size: 13px; }

.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 2000;
  background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; box-shadow: var(--shadow);
  font-size: 14px; max-width: calc(100% - 32px);
}
@media (max-width: 767px) { .toast { bottom: auto; top: calc(var(--topbar-h) + 12px + env(safe-area-inset-top)); } }

/* ---------- oferty ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.tile {
  position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left;
  padding: 12px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; min-height: 76px;
}
.tile:hover { background: var(--surface-2); }
.tile.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px; }
.tile-check {
  position: absolute; top: 8px; right: 8px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; border: 1px solid var(--border); background: var(--surface);
}
.tile.on .tile-check { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.tile b { padding-right: 26px; hyphens: auto; overflow-wrap: anywhere; max-width: 100%; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.offer-row { display: flex; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--border); border-radius: 10px; margin-bottom: 8px; cursor: pointer; }
.offer-row:hover { background: var(--surface-2); }
.sum-row { display: flex; justify-content: space-between; padding: 4px 0; }
.sum-row.total { font-size: 18px; border-top: 1px solid var(--border); margin-top: 4px; padding-top: 8px; }
.svc-toggles { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.svc-toggle { display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.svc-toggle input { width: 18px; height: 18px; accent-color: var(--accent); }
.price-box { border: 1px solid var(--border); border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; }
.price-box summary { display: flex; align-items: center; gap: 8px; cursor: pointer; list-style: none; }
.price-box summary::-webkit-details-marker { display: none; }
.price-box summary::before { content: '▸'; color: var(--muted); }
.price-box[open] summary::before { content: '▾'; }

/* podgląd oferty: zawsze jasny „papier”. Czcionki o 20% mniejsze, treść w grafitowej szarości, detale w kolorach palety */
#printBox { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 23, 42, .6); overflow-y: auto; padding: 0 0 40px; }
.print-bar { position: sticky; top: 0; display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: var(--surface); border-bottom: 1px solid var(--border); }
.doc {
  --ink: #171B1E; --ink-2: #4A5157; --ink-3: #7A8389; --line: #E3E6E8;
  --da: var(--doc-accent); --dd: var(--doc-detail, var(--doc-accent)); --ds: var(--doc-soft, #f4f5f6);
  position: relative; width: min(210mm, calc(100% - 24px)); margin: 20px auto; background: #fff; color: var(--ink-2);
  padding: 13mm 15mm 15mm; box-shadow: var(--shadow); font: 400 8.8pt/1.55 var(--font-text);
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
}
.doc::before {
  content: ''; position: absolute; top: 0; right: 0; width: 55%; height: 130px; pointer-events: none;
  background: radial-gradient(100% 100% at 100% 0%, color-mix(in srgb, var(--da) 13%, transparent), transparent 70%);
}
.doc b, .doc strong { color: var(--ink); font-weight: 600; }
.doc-head { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding-bottom: 10px; }
.doc-logo { max-height: 96px; max-width: 352px; object-fit: contain; display: block; }
.doc-name { font-size: 16pt; font-weight: 800; color: var(--ink); line-height: 1.15; }
.doc-name-sub { font-size: 8pt; color: var(--ink-3); margin-top: 2px; }
.doc-company { text-align: right; font-size: 7.6pt; line-height: 1.5; }

.doc-hero {
  position: relative; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px;
  margin: 4px 0 14px; padding: 14px 18px; border-radius: 10px; overflow: hidden;
  background: radial-gradient(120% 160% at 100% 0%, color-mix(in srgb, var(--da) 55%, transparent) 0%, transparent 55%), linear-gradient(160deg, #2B3237, #171B1E);
}
.doc-hero h1 { margin: 0; font-size: 14.4pt; color: #fff; }
.doc-hero .doc-meta { color: rgba(255, 255, 255, .72); font-size: 7.6pt; margin-top: 3px; }
.doc-hero-total { text-align: right; white-space: nowrap; }
.doc-hero-total span { display: block; font-size: 6.8pt; text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 255, 255, .7); }
.doc-hero-total b { font: 700 14.4pt var(--font-head); color: #fff; }

.doc-parties { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 0 0 14px; }
.doc-parties > div { background: linear-gradient(180deg, var(--ds), #fff); border: 1px solid var(--line); border-left: 3px solid var(--dd); border-radius: 8px; padding: 9px 12px; font-size: 8pt; }
.doc h4 { margin: 0 0 5px; font: 700 6.8pt var(--font-head); text-transform: uppercase; letter-spacing: .08em; color: var(--dd); }

.doc-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 8pt; }
.doc-table th { text-align: left; font: 700 6.8pt var(--font-head); text-transform: uppercase; letter-spacing: .06em; color: var(--ink); background: var(--ds); padding: 7px 6px; border-bottom: 2px solid var(--da); }
.doc-table th:first-child { border-radius: 6px 0 0 0; }
.doc-table th:last-child { border-radius: 0 6px 0 0; }
.doc-table td { border-bottom: 1px solid var(--line); padding: 7px 6px; vertical-align: top; }
.doc-table td:first-child { color: var(--ink); font-weight: 600; }
.doc-table tr { break-inside: avoid; }
.doc-table .r { text-align: right; white-space: nowrap; }
.doc-note { font-size: 6.8pt; color: var(--ink-3); }
.doc-sum { margin: 10px 0 0 auto; width: 250px; font-size: 8.4pt; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; break-inside: avoid; }
.doc-sum div { display: flex; justify-content: space-between; padding: 5px 12px; }
.doc-sum .total { background: linear-gradient(135deg, var(--da), color-mix(in srgb, var(--da) 68%, #171B1E)); padding: 7px 12px; }
.doc-sum .total span, .doc-sum .total b { color: #fff; }

.doc-svc { margin-top: 18px; }
.doc-svc-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; break-after: avoid; }
.doc-num {
  display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 6px; border-radius: 7px; flex: none;
  font: 700 7.6pt var(--font-head); color: #fff; background: linear-gradient(135deg, var(--da), color-mix(in srgb, var(--da) 62%, #171B1E));
}
.doc-svc h3 { flex: 1; margin: 0; padding-bottom: 4px; font-size: 9.6pt; color: var(--ink); border-bottom: 1px solid; border-image: linear-gradient(90deg, var(--da), transparent 85%) 1; }
.doc-intro { margin: 0 0 10px; font-size: 8.2pt; break-after: avoid; }
.doc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.doc-box { background: linear-gradient(180deg, var(--ds), #fff 75%); border: 1px solid var(--line); border-radius: 8px; padding: 10px 12px; break-inside: avoid; }
.doc-list { list-style: none; margin: 0; padding: 0; font-size: 8pt; }
.doc-list li { position: relative; padding-left: 14px; margin: 3px 0; }
.doc-list li::before { content: ''; position: absolute; left: 0; top: .6em; width: 5px; height: 5px; border-radius: 2px; background: var(--da); }
.doc-list.ticks li::before { content: '✓'; top: 0; width: auto; height: auto; background: none; color: var(--dd); font-weight: 700; }
.doc-terms .doc-box p { margin: 8px 0 0; }
.doc-foot { position: relative; margin-top: 22px; padding-top: 10px; text-align: center; color: var(--ink-3); font-size: 7.2pt; }
.doc-foot::before { content: ''; position: absolute; top: 0; left: 15%; right: 15%; height: 2px; background: linear-gradient(90deg, transparent, var(--da), transparent); }
@media (max-width: 600px) {
  .doc { padding: 16px; } .doc-parties, .doc-cols { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 1fr; }
  .doc-hero { flex-direction: column; align-items: flex-start; } .doc-hero-total { text-align: left; }
}

@media print {
  /* margines u góry i u dołu każdej strony; pierwsza strona zaczyna się od nagłówka oferty */
  @page { size: A4; margin: 14mm 0 14mm; }
  @page :first { margin-top: 0; }
  html, body { height: auto; overflow: visible; background: #fff; }
  body.printing > *:not(#printBox) { display: none !important; }
  #printBox { position: static; background: none; padding: 0; overflow: visible; }
  .no-print { display: none !important; }
  .doc { width: auto; margin: 0; box-shadow: none; padding: 12mm 15mm 0; }
}

/* ---------- dane obiektu ---------- */
.with-unit { display: flex; align-items: center; gap: 6px; }
.with-unit input { flex: 1; min-width: 0; }
.unit-tag { font-size: 13px; color: var(--muted); min-width: 34px; }
.facade-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 6px; align-items: center; margin-bottom: 6px; }

/* ---------- pierwsze uruchomienie ---------- */
#onboarding {
  position: fixed; inset: 0; z-index: 4000; overflow-y: auto; padding: 24px 16px;
  background: linear-gradient(160deg, var(--accent-soft), var(--bg) 60%);
  display: flex; align-items: flex-start; justify-content: center;
}
.ob-card {
  width: 100%; max-width: 440px; margin-top: 4vh; background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; padding: 24px; box-shadow: var(--shadow);
}
.ob-card h1 { font-size: 22px; margin: 12px 0 4px; }
.ob-brand { display: flex; align-items: center; gap: 10px; font-size: 18px; margin-top: 12px; }
.ob-brand img { width: 36px; height: 36px; }
.ob-brand span { display: flex; flex-direction: column; line-height: 1.2; }
.ob-brand b { font-family: var(--font-head); font-weight: 800; letter-spacing: -0.01em; }
.ob-brand small { font-size: 12px; color: var(--muted); }
.ob-langs { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.lang-pill { border: 1px solid var(--border); background: var(--surface); border-radius: 14px; padding: 3px 10px; font-size: 12px; cursor: pointer; }
.lang-pill.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.ob-wide { width: 100%; height: 44px; }
.ob-lang-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 12px; }
.ob-lang { height: 56px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface); font-size: 16px; cursor: pointer; }
.ob-lang.on { border: 2px solid var(--accent); background: var(--accent-soft); font-weight: 600; }
.ob-nav { display: flex; align-items: center; gap: 8px; margin-top: 18px; }
.ob-dots { display: flex; gap: 6px; }
.ob-dots span { width: 28px; height: 5px; border-radius: 3px; background: var(--border); }
.ob-dots span.on { background: var(--accent); }
.ob-radio { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; cursor: pointer; }
.ob-radio.on { border: 2px solid var(--accent); background: var(--accent-soft); padding: 11px; }
.ob-radio input { margin-top: 3px; accent-color: var(--accent); }
.ob-logo-empty { text-align: center; padding: 0 16px; }
.ob-nav .btn + .btn { margin-left: 0; }

/* ---------- usługi jako przełączniki ---------- */
.svc-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.svc-chip {
  border: 1px solid var(--border); background: var(--surface); border-radius: 18px; padding: 7px 12px;
  font-size: 13px; cursor: pointer; min-height: 36px;
}
.svc-chip:hover { background: var(--surface-2); }
.svc-chip.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); font-weight: 600; }
.svc-chip.alt.on { background: var(--accent-2); border-color: var(--accent-2); color: #fff; }

/* ---------- listy do odhaczenia (oferty, ustawienia) ---------- */
.checklist { margin-top: 12px; }
.checklist-title { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; margin-bottom: 4px; }
.check { display: flex; align-items: flex-start; gap: 10px; padding: 7px 4px; border-bottom: 1px solid var(--border); cursor: pointer; font-size: 14px; }
.check:last-of-type { border-bottom: 0; }
.check input { width: 18px; height: 18px; margin-top: 1px; flex: none; accent-color: var(--accent); }
.check span { flex: 1; }
.add-line { display: flex; gap: 6px; margin-top: 6px; }
.add-line .inp { flex: 1; min-height: 34px; }
.remember { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; color: var(--muted); cursor: pointer; }
.remember input { width: 16px; height: 16px; accent-color: var(--accent); }
.del-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 14px; padding: 2px 6px; border-radius: 6px; flex: none; }
.del-x:hover { color: var(--danger); background: var(--surface-2); }

/* ---------- historia ---------- */
.timeline li { align-items: flex-start; }
.timeline .txt { font-size: 14px; }
.timeline .when { margin-top: 2px; }

/* ---------- baner przypomnień ---------- */
.reminder-banner {
  display: flex; align-items: center; gap: 8px; width: 100%; margin-top: 8px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); background: color-mix(in srgb, var(--warn) 14%, transparent);
  color: var(--text); font-weight: 600; font-size: 14px; cursor: pointer; text-align: left;
}

/* ---------- kolory programu ---------- */
.swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.swatch {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px; border-radius: 12px;
  border: 1px solid var(--border); background: var(--surface); cursor: pointer; font-size: 13px;
}
.swatch:hover { background: var(--surface-2); }
.swatch.on { border: 2px solid var(--accent); padding: 9px 5px; font-weight: 600; }
.swatch-colors { display: flex; border-radius: 8px; overflow: hidden; box-shadow: 0 0 0 1px var(--border); }
.swatch-colors i { width: 18px; height: 26px; }
.swatch-colors i:first-child { width: 30px; }
.swatch-name { text-align: center; line-height: 1.2; }

/* ---------- lejek sprzedaży (podzielony ekran) ---------- */
body.board-on.panel-off #panel { display: none; }
.btn.icon.on { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.splitter { flex: none; height: 10px; cursor: row-resize; display: flex; align-items: center; justify-content: center; background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); touch-action: none; z-index: 5; }
.splitter span { width: 48px; height: 4px; border-radius: 2px; background: var(--border); }
.splitter:hover span, .splitter.active span { background: var(--accent); }
.board { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--bg); position: relative; }
.board-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; background: var(--surface); border-bottom: 1px solid var(--border); white-space: nowrap; }
.board-bar > * { flex: none; }
.board-title { font-family: var(--font-head); font-size: 15px; }
.board-opt { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.board-opt input { accent-color: var(--accent); }
.board-bar > .board-legend { display: inline-flex; gap: 10px; font-size: 11.5px; color: var(--muted); overflow: hidden; flex: 0 1 auto; min-width: 0; }
.board-legend span { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.board-legend i { width: 14px; height: 4px; border-radius: 2px; }
.btn.icon-sm { width: 30px; padding: 0; }
.board-cols { flex: 1; min-height: 0; display: flex; gap: 10px; padding: 10px 12px; overflow-x: auto; overflow-y: hidden; }
.bcol { flex: 1 0 228px; max-width: 330px; display: flex; flex-direction: column; min-height: 0; background: var(--surface-2); border-radius: 12px; border: 1px solid var(--border); transition: box-shadow .12s, background .12s; }
.bcol.closed { opacity: .92; }
.bcol-head { padding: 9px 11px 8px; border-bottom: 1px solid var(--border); border-top: 3px solid var(--sc); border-radius: 12px 12px 0 0; background: var(--surface); }
.bcol-title { font-family: var(--font-head); font-weight: 700; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcol-meta { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; margin-top: 1px; }
.bcol-body { flex: 1; min-height: 0; overflow-y: auto; padding: 8px; display: flex; flex-direction: column; gap: 7px; overscroll-behavior: contain; }
.bcol.drop-over { box-shadow: 0 0 0 2px var(--sc) inset; background: color-mix(in srgb, var(--sc) 9%, var(--surface-2)); }
.bcol-empty { font-size: 12px; color: var(--muted); text-align: center; padding: 14px 4px; border: 1px dashed var(--border); border-radius: 8px; }
.bcol-more { align-self: center; margin: 2px 0 4px; }
.bcard { background: var(--surface); border: 1px solid var(--border); border-radius: 9px; padding: 8px 10px; cursor: grab; box-shadow: 0 1px 2px rgba(15, 23, 42, .06); user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; transition: box-shadow .12s, border-color .12s; }
.bcard:hover { box-shadow: 0 3px 10px rgba(15, 23, 42, .12); border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.bcard:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
.bcard.sel { border-color: var(--accent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 35%, transparent); }
.bcard.overdue { background: color-mix(in srgb, var(--danger) 8%, var(--surface)); border-color: color-mix(in srgb, var(--danger) 30%, var(--border)); }
.bcard.dragging { opacity: .35; }
.bcard-svcs { display: flex; gap: 4px; margin-bottom: 5px; }
.bcard-svcs i { width: 22px; height: 4px; border-radius: 2px; }
.bcard-name { font-weight: 600; font-size: 13.5px; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.bcard-sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 1px; }
.bcard-foot { display: flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 12px; min-height: 18px; }
.bcard-foot:empty { display: none; }
.bcard-val { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bcard-val i { width: 7px; height: 7px; border-radius: 50%; }
.bcard-rem { border-radius: 10px; padding: 1px 7px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.bcard-rem.overdue { background: var(--danger); color: #fff; }
.bcard-rem.today { background: var(--warn); color: #fff; }
.bcard-rem.soon { background: color-mix(in srgb, var(--warn) 18%, var(--surface)); color: var(--warn); }
.bcard-ghost { position: fixed; left: 0; top: 0; z-index: 5000; pointer-events: none; box-shadow: 0 12px 30px rgba(15, 23, 42, .28); cursor: grabbing; opacity: .97; }
body.board-dragging, body.board-dragging * { cursor: grabbing !important; }
.board-drop { position: absolute; left: 0; right: 0; bottom: 0; display: flex; gap: 10px; padding: 10px 12px; background: color-mix(in srgb, var(--surface) 92%, transparent); border-top: 1px solid var(--border); backdrop-filter: blur(4px); z-index: 10; }
.drop-zone { flex: 1; height: 54px; display: flex; align-items: center; justify-content: center; gap: 6px; border: 2px dashed var(--sc); border-radius: 10px; color: var(--sc); font-weight: 700; font-size: 13px; letter-spacing: .02em; text-transform: uppercase; background: var(--surface); transition: background .12s; }
.drop-zone.drop-over { background: var(--sc); color: #fff; border-style: solid; }
@media (max-width: 767px) {
  body.board-on #work { --map-h: 38%; }
  .board-bar { padding: 6px 10px; gap: 8px; flex-wrap: wrap; row-gap: 4px; }
  .board-bar > .board-legend, .board-net { display: none; }
  .board-opt { font-size: 12px; }
  .board-cols { scroll-snap-type: x mandatory; padding: 8px 10px; gap: 8px; }
  .bcol { flex: 0 0 80vw; max-width: none; scroll-snap-align: start; }
  .splitter { height: 14px; }
}

/* =====================================================================
   Wygląd premium: miękkie gradienty, „pływające” panele, szkło, cienie.
   Wszystko liczone z kolorów palety (--accent, --accent-2), więc działa
   w każdej palecie, w trybie jasnym i ciemnym.
   ===================================================================== */
:root {
  --line-soft: color-mix(in srgb, var(--border) 70%, transparent);
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 1px rgba(15, 23, 42, .03);
  --shadow-md: 0 1px 2px rgba(15, 23, 42, .04), 0 8px 24px -10px rgba(15, 23, 42, .16);
  --shadow-lg: 0 2px 6px rgba(15, 23, 42, .06), 0 24px 48px -16px rgba(15, 23, 42, .28);
  --glass: color-mix(in srgb, var(--surface) 78%, transparent);
  --grad-accent: linear-gradient(135deg, color-mix(in srgb, var(--accent) 82%, #fff) 0%, var(--accent) 48%, color-mix(in srgb, var(--accent) 80%, #000) 100%);
  --r-lg: 18px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .6);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -16px rgba(0, 0, 0, .75);
  }
}
:root[data-theme="dark"] {
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-md: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 28px -10px rgba(0, 0, 0, .6);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .35), 0 28px 56px -16px rgba(0, 0, 0, .75);
}

body {
  background:
    radial-gradient(1100px 520px at -5% -10%, color-mix(in srgb, var(--accent) 13%, transparent), transparent 62%),
    radial-gradient(900px 520px at 105% 110%, color-mix(in srgb, var(--accent-2) 10%, transparent), transparent 60%),
    var(--bg);
  -webkit-font-smoothing: antialiased;
}

/* nagłówek: matowe szkło */
.topbar {
  background: var(--glass); border-bottom: 1px solid var(--line-soft);
  backdrop-filter: blur(16px) saturate(1.5); -webkit-backdrop-filter: blur(16px) saturate(1.5);
}
.brand.default-brand::before {
  content: ''; width: 36px; height: 36px; flex: none; border-radius: 10px;
  background: url(../icons/icon.svg) center / contain no-repeat; box-shadow: var(--shadow-md);
}
.wordmark { font-family: var(--font-head); font-weight: 800; font-size: 19px; letter-spacing: -.02em; }
.wordmark span { font-weight: 400; letter-spacing: 0; }

/* wyszukiwarka z lupą */
.search { position: relative; }
.search::before {
  content: ''; position: absolute; left: 13px; top: 50%; width: 16px; height: 16px; transform: translateY(-50%); pointer-events: none;
  background: var(--muted);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E") center / contain no-repeat;
}
.search input {
  height: 40px; padding-left: 38px; border-radius: 12px; border-color: var(--line-soft);
  background: color-mix(in srgb, var(--surface-2) 75%, transparent); transition: box-shadow .15s, border-color .15s, background .15s;
}
.search input:focus { background: var(--surface); border-color: color-mix(in srgb, var(--accent) 55%, var(--border)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 16%, transparent); }

/* przyciski */
.btn { border-radius: 12px; border-color: var(--line-soft); box-shadow: var(--shadow-sm); transition: transform .12s, box-shadow .15s, background .15s, border-color .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); box-shadow: var(--shadow-md); }
.btn:active { transform: translateY(1px); }
.btn.small { border-radius: 9px; }
.btn.primary, .btn.icon.on {
  background: var(--grad-accent); border-color: transparent; color: var(--accent-ink);
  box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 8px 18px -8px color-mix(in srgb, var(--accent) 75%, transparent);
}
.btn.primary:hover, .btn.icon.on:hover { filter: brightness(1.05) saturate(1.05); transform: translateY(-1px); box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 12px 24px -10px color-mix(in srgb, var(--accent) 85%, transparent); }
.badge { box-shadow: 0 0 0 2px var(--surface), 0 4px 10px -2px color-mix(in srgb, var(--danger) 60%, transparent); background: linear-gradient(135deg, #f87171, var(--danger)); }

/* pola formularzy */
.f input, .f select, .f textarea, input.inp, select.inp, textarea.inp { border-radius: 10px; transition: box-shadow .15s, border-color .15s; }
.f input:focus, .f select:focus, .f textarea:focus, .inp:focus { box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 14%, transparent); }

/* lista i karta klienta */
.vhead { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom-color: var(--line-soft); }
.chip { border-color: var(--line-soft); box-shadow: var(--shadow-sm); transition: background .15s, border-color .15s; }
.chip.on { background: linear-gradient(180deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 55%, var(--surface))); border-color: color-mix(in srgb, var(--accent) 55%, transparent); }
.list li { border-bottom-color: var(--line-soft); position: relative; transition: background .12s; }
.list li:hover { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 7%, transparent), transparent 80%); }
.list li.sel { background: linear-gradient(90deg, color-mix(in srgb, var(--accent) 16%, transparent), color-mix(in srgb, var(--accent) 4%, transparent)); }
.list li.sel::before { content: ''; position: absolute; left: 0; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad-accent); }
section.card { border-bottom-color: var(--line-soft); }
.status-btn, .tile, .contact, .offer-row, .price-box, .svc-chip { border-color: var(--line-soft); border-radius: 12px; }
.status-btn.on { background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: var(--shadow-sm); }
.tile.on, .ob-radio.on, .ob-lang.on { background: linear-gradient(160deg, var(--accent-soft), color-mix(in srgb, var(--accent-soft) 40%, var(--surface))); }
.svc-chip.on { background: var(--grad-accent); border-color: transparent; box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 80%, transparent); }
.reminder-banner { border-radius: 12px; }
.toast { background: color-mix(in srgb, var(--text) 92%, transparent); backdrop-filter: blur(10px); border-radius: 14px; box-shadow: var(--shadow-lg); }

/* mapa: zaokrąglone kontrolki */
.leaflet-bar, .leaflet-control-layers { border: 0 !important; border-radius: 12px !important; overflow: hidden; box-shadow: var(--shadow-md) !important; }
.leaflet-bar a { background: var(--surface); color: var(--text); border-bottom-color: var(--line-soft); width: 34px; height: 34px; line-height: 34px; }
.leaflet-bar a:hover { background: var(--surface-2); }
.leaflet-control-layers { background: var(--surface); color: var(--text); }
.leaflet-control-attribution { border-radius: 8px 0 0 0; background: color-mix(in srgb, var(--surface) 80%, transparent) !important; backdrop-filter: blur(6px); }
.leaflet-tooltip { border-radius: 8px; border: 0; box-shadow: var(--shadow-md); font-weight: 600; }

/* pływające panele na komputerze */
@media (min-width: 768px) {
  main { padding: 12px; gap: 12px; }
  #panel { border: 1px solid var(--line-soft); border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; }
  #map { border-radius: var(--r-lg); box-shadow: var(--shadow-md); overflow: hidden; border: 1px solid var(--line-soft); }
  body.board-on .splitter { background: transparent; border: 0; height: 12px; }
  .board { border-radius: var(--r-lg); border: 1px solid var(--line-soft); box-shadow: var(--shadow-md); overflow: hidden; background: color-mix(in srgb, var(--surface) 55%, transparent); backdrop-filter: blur(10px); }
  .modebar { left: 50%; }
  body:not(.panel-off) .modebar { left: calc(50% + var(--panel-w) / 2 + 6px); }
}

/* lejek */
.board-bar { background: var(--glass); border-bottom-color: var(--line-soft); padding: 10px 14px; }
.board-title { font-size: 16px; font-weight: 800; letter-spacing: -.01em; }
.board-total {
  font: 700 13px var(--font-head); padding: 3px 10px; border-radius: 999px; font-variant-numeric: tabular-nums;
  color: var(--accent-ink); background: var(--grad-accent); box-shadow: 0 6px 14px -8px color-mix(in srgb, var(--accent) 80%, transparent);
}
.board-cols { padding: 12px 14px 14px; gap: 12px; }
.bcol {
  border-radius: 16px; border: 1px solid var(--line-soft);
  background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 9%, var(--surface-2)) 0, var(--surface-2) 120px);
  box-shadow: var(--shadow-sm);
}
.bcol-head { position: relative; background: transparent; border: 0; padding: 14px 12px 8px; border-radius: 16px 16px 0 0; }
.bcol-head::before { content: ''; position: absolute; left: 12px; right: 12px; top: 0; height: 4px; border-radius: 0 0 4px 4px; background: linear-gradient(90deg, var(--sc), color-mix(in srgb, var(--sc) 25%, transparent)); }
.bcol-title { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.bcol-title > span:first-child { overflow: hidden; text-overflow: ellipsis; }
.bcol-n {
  margin-left: auto; min-width: 24px; height: 20px; padding: 0 7px; border-radius: 999px; display: inline-grid; place-items: center;
  font: 700 11.5px var(--font-text); font-variant-numeric: tabular-nums; color: var(--sc);
  background: color-mix(in srgb, var(--sc) 14%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--sc) 22%, transparent) inset;
}
.bcol-meta { font: 700 14px var(--font-head); color: var(--text); margin-top: 4px; letter-spacing: -.01em; }
.bcol-body { padding: 4px 10px 10px; gap: 8px; }
.bcol-empty { border-radius: 12px; border-color: var(--line-soft); background: color-mix(in srgb, var(--surface) 50%, transparent); }
.bcard {
  border-radius: 12px; border: 1px solid var(--line-soft); border-left: 3px solid color-mix(in srgb, var(--sc) 75%, transparent);
  padding: 10px 12px; box-shadow: var(--shadow-sm); background: linear-gradient(180deg, var(--surface), color-mix(in srgb, var(--surface) 92%, var(--surface-2)));
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.bcard:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: color-mix(in srgb, var(--accent) 30%, var(--border)); border-left-color: var(--sc); }
.bcard.sel { border-color: color-mix(in srgb, var(--accent) 60%, var(--border)); border-left-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 20%, transparent), var(--shadow-md); }
.bcard.overdue { background: linear-gradient(180deg, color-mix(in srgb, var(--danger) 9%, var(--surface)), var(--surface)); border-left-color: var(--danger); }
.bcard-name { font-size: 13.5px; letter-spacing: -.005em; }
.bcard-svcs i { height: 5px; width: 24px; }
.bcard-val { font-family: var(--font-head); font-size: 12.5px; }
.bcard-rem { border-radius: 999px; }
.bcard-rem.overdue { background: linear-gradient(135deg, #f87171, var(--danger)); }
.bcard-rem.today { background: linear-gradient(135deg, #fbbf24, var(--warn)); }
.bcard-ghost { border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.bcol.drop-over { background: linear-gradient(180deg, color-mix(in srgb, var(--sc) 18%, var(--surface-2)), color-mix(in srgb, var(--sc) 6%, var(--surface-2))); box-shadow: 0 0 0 2px var(--sc) inset, var(--shadow-md); }
.board-drop { background: var(--glass); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-top-color: var(--line-soft); }
.drop-zone { border-radius: 14px; background: color-mix(in srgb, var(--sc) 6%, var(--surface)); }
.drop-zone.drop-over { background: linear-gradient(135deg, color-mix(in srgb, var(--sc) 80%, #fff), var(--sc)); box-shadow: 0 10px 24px -10px var(--sc); }
.splitter span { width: 56px; height: 5px; border-radius: 3px; }

@media (max-width: 767px) {
  .board { border-radius: 18px 18px 0 0; box-shadow: 0 -8px 24px -12px rgba(15, 23, 42, .25); overflow: hidden; }
  body.board-on .splitter { border: 0; background: transparent; margin-bottom: -6px; position: relative; z-index: 6; }
  #panel { box-shadow: var(--shadow-lg); }
  .brand.default-brand { gap: 7px; }
  .brand.default-brand::before { width: 30px; height: 30px; border-radius: 8px; }
  .wordmark { font-size: 16px; }
  .actions { gap: 5px; }
  .actions .btn.icon { width: 36px; height: 36px; }
  .actions .btn.primary { height: 36px; padding: 0 11px; }
}
