/* Salon Kokpit - styles. Mobile first, light/dark via tokens. */
:root {
  --bg: #f6f5fa;
  --surface: #ffffff;
  --surface-2: #f1eff7;
  --text: #1c1a24;
  --muted: #6b6780;
  --border: #e4e1ec;
  --accent: #7c3aed;
  --accent-ink: #ffffff;
  --accent-soft: #ede7fd;
  --ok: #15803d;
  --ok-soft: #dcfce7;
  --warn: #b45309;
  --warn-soft: #fef3c7;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --grid: #ebe8f2;
  --shadow: 0 8px 30px rgba(40, 20, 80, .10);
  --radius: 14px;
  --nav-h: 64px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121017;
    --surface: #1c1924;
    --surface-2: #262230;
    --text: #f1eef8;
    --muted: #a6a1b8;
    --border: #332e40;
    --accent: #a78bfa;
    --accent-ink: #160f24;
    --accent-soft: #2e2445;
    --ok: #4ade80;
    --ok-soft: #14301f;
    --warn: #fbbf24;
    --warn-soft: #3a2c0c;
    --danger: #f87171;
    --danger-soft: #3b1515;
    --grid: #2a2634;
    --shadow: 0 8px 30px rgba(0, 0, 0, .45);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
h1, h2, h3 { margin: 0; line-height: 1.2; }
h1 { font-size: 22px; }
h2 { font-size: 18px; }
h3 { font-size: 15px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.hidden { display: none !important; }

/* ---------- layout ---------- */
.shell { min-height: 100%; }
.side { display: none; }
.top {
  position: sticky; top: 0; z-index: 20;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  padding: calc(env(safe-area-inset-top) + 10px) 16px 10px;
  display: flex; align-items: center; gap: 10px;
  border-bottom: 1px solid var(--border);
}
.top h1 { flex: 1; font-size: 19px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.main { padding: 14px 16px calc(var(--nav-h) + env(safe-area-inset-bottom) + 90px); max-width: 1200px; margin: 0 auto; }
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; background: var(--surface);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; height: var(--nav-h); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--muted); text-decoration: none; font-size: 11px; font-weight: 600;
}
.bottom-nav a.on { color: var(--accent); }
.bottom-nav svg, .side svg { width: 23px; height: 23px; }

@media (min-width: 900px) {
  .shell { display: grid; grid-template-columns: 230px 1fr; }
  .side {
    display: flex; flex-direction: column; gap: 4px;
    position: sticky; top: 0; height: 100vh; padding: 20px 12px;
    background: var(--surface); border-right: 1px solid var(--border);
  }
  .side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; font-weight: 700; }
  .side .brand img { width: 34px; height: 34px; border-radius: 9px; }
  .side a {
    display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px;
    color: var(--muted); text-decoration: none; font-weight: 600;
  }
  .side a:hover { background: var(--surface-2); color: var(--text); }
  .side a.on { background: var(--accent-soft); color: var(--accent); }
  .side .foot { margin-top: auto; padding: 10px; font-size: 12px; color: var(--muted); }
  .bottom-nav { display: none; }
  .main { padding: 20px 28px 60px; }
  .top { padding: 14px 28px; }
}

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 42px; padding: 0 16px; border-radius: 11px; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-weight: 600; cursor: pointer;
  text-decoration: none; white-space: nowrap;
}
.btn:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.danger { color: var(--danger); }
.btn.ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 11px; font-size: 13px; border-radius: 9px; }
.btn.icon { width: 42px; padding: 0; }
.btn.block { width: 100%; }
.btn svg { width: 18px; height: 18px; }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

.field { display: flex; flex-direction: column; gap: 5px; margin-bottom: 12px; }
.field label { font-size: 13px; font-weight: 600; color: var(--muted); }
.input {
  width: 100%; min-height: 44px; padding: 10px 12px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface); outline: none;
  font-size: 16px; /* prevents iOS zoom */
}
.input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
textarea.input { min-height: 80px; resize: vertical; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 10px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 10px; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; }
.seg button {
  border: 0; background: transparent; padding: 7px 13px; border-radius: 9px; font-weight: 600; font-size: 14px;
  color: var(--muted); cursor: pointer;
}
.seg button.on { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.12); }

.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1px solid var(--border); background: var(--surface); border-radius: 999px;
  padding: 6px 12px; font-size: 14px; font-weight: 600; cursor: pointer; color: var(--text);
}
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.chip .sub { font-weight: 500; color: var(--muted); font-size: 12px; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; }
.card + .card { margin-top: 12px; }
.card h2 { margin-bottom: 10px; }
.stack > * + * { margin-top: 12px; }

.badge { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.info { background: var(--accent-soft); color: var(--accent); }

.banner {
  display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 12px;
  background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; margin-bottom: 12px;
}
.banner.info { background: var(--accent-soft); color: var(--accent); }
.banner .btn { margin-left: auto; }

.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--border); cursor: pointer;
}
.list li:last-child { border-bottom: 0; }
.list .grow { flex: 1; min-width: 0; }
.list .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent); font-weight: 700;
}

.fab {
  position: fixed; right: 18px; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 18px); z-index: 25;
  height: 56px; padding: 0 22px 0 18px; border-radius: 28px; border: 0;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 16px;
  display: flex; align-items: center; gap: 8px; box-shadow: var(--shadow); cursor: pointer;
}
.fab svg { width: 22px; height: 22px; }
@media (min-width: 900px) { .fab { bottom: 28px; right: 28px; } }

/* ---------- calendar ---------- */
.calbar { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.calbar .date-title { font-weight: 700; font-size: 17px; text-transform: capitalize; min-width: 0; }
.calbar input[type=date] { width: auto; min-height: 42px; }
.emp-filter { margin-bottom: 12px; }

.tl { display: flex; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; }
.tl-hours { width: 48px; flex: none; position: relative; border-right: 1px solid var(--border); }
.tl-hours span { position: absolute; right: 6px; font-size: 11px; color: var(--muted); transform: translateY(-50%); }
.tl-cols { flex: 1; display: flex; min-width: 0; overflow-x: auto; }
.tl-col { flex: 1; min-width: 150px; border-right: 1px solid var(--border); }
.tl-col:last-child { border-right: 0; }
.tl-head {
  position: sticky; top: 0; height: 38px; display: flex; align-items: center; gap: 7px; justify-content: center;
  font-weight: 700; font-size: 14px; border-bottom: 1px solid var(--border); background: var(--surface);
}
.tl-body { position: relative; cursor: copy; }
.tl-hours .tl-pad { height: 38px; border-bottom: 1px solid var(--border); }
.tl-line { position: absolute; left: 0; right: 0; height: 0; border-top: 1px solid var(--grid); pointer-events: none; }
.tl-line.half { border-top-style: dashed; opacity: .6; }
.tl-now { position: absolute; left: 0; right: 0; border-top: 2px solid var(--danger); z-index: 3; pointer-events: none; }
.tl-now::before { content: ""; position: absolute; left: -4px; top: -5px; width: 8px; height: 8px; border-radius: 50%; background: var(--danger); }
.ev {
  position: absolute; z-index: 2; border-radius: 9px; padding: 4px 7px; overflow: hidden; cursor: pointer;
  border: 2px solid var(--surface); font-size: 12.5px; line-height: 1.25;
  background: color-mix(in srgb, var(--c) 18%, var(--surface));
  box-shadow: inset 3px 0 0 var(--c);
}
.ev:hover { background: color-mix(in srgb, var(--c) 28%, var(--surface)); }
.ev b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev .t { color: var(--muted); font-size: 11.5px; font-weight: 600; }
.ev .s { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.ev.done { opacity: .72; }
.ev.done b::after { content: " \2713"; color: var(--ok); }
.ev.noshow { opacity: .55; text-decoration: line-through; }

.agenda-day { margin-bottom: 14px; }
.agenda-day .dh {
  display: flex; align-items: baseline; gap: 10px; padding: 6px 2px; font-weight: 700; text-transform: capitalize;
}
.agenda-day.today .dh { color: var(--accent); }
.agenda-item {
  display: flex; gap: 12px; align-items: center; padding: 11px 12px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 12px; margin-bottom: 6px; cursor: pointer;
  box-shadow: inset 4px 0 0 var(--c);
}
.agenda-item .time { font-weight: 700; width: 48px; flex: none; font-variant-numeric: tabular-nums; }
.agenda-item.cancel { opacity: .5; text-decoration: line-through; }

/* ---------- sheet (modal) ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 50; background: rgba(15, 10, 25, .45);
  display: flex; align-items: flex-end; justify-content: center; animation: fade .15s ease;
}
.sheet {
  background: var(--surface); width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  border-radius: 20px 20px 0 0; padding: 8px 18px calc(env(safe-area-inset-bottom) + 18px);
  box-shadow: var(--shadow); animation: up .2s ease;
}
.sheet .grab { width: 40px; height: 5px; border-radius: 3px; background: var(--border); margin: 4px auto 12px; }
.sheet-head { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.sheet-head h2 { flex: 1; }
.sheet-foot { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 16px; }
.sheet-foot .btn { flex: 1; }
@media (min-width: 700px) {
  .overlay { align-items: center; }
  .sheet { border-radius: 20px; padding: 18px 22px 22px; }
  .sheet .grab { display: none; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: 0; } }

.suggest { border: 1px solid var(--border); border-radius: 11px; margin-top: 4px; overflow: hidden; }
.suggest button {
  display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 10px 12px;
  border: 0; border-bottom: 1px solid var(--border); background: var(--surface); cursor: pointer;
}
.suggest button:last-child { border-bottom: 0; }
.suggest button:hover { background: var(--surface-2); }
.picked {
  display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--accent-soft);
}
.picked .grow { flex: 1; min-width: 0; }
.warnbox { padding: 10px 12px; border-radius: 11px; background: var(--warn-soft); color: var(--warn); font-size: 14px; font-weight: 600; margin-bottom: 12px; }
.sumline { display: flex; gap: 14px; padding: 10px 12px; border-radius: 11px; background: var(--surface-2); margin-bottom: 12px; font-weight: 600; }

/* ---------- revenue ---------- */
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px 16px; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .v { font-size: 24px; font-weight: 800; margin-top: 2px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .d { font-size: 12px; color: var(--muted); }
.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart .bar { fill: var(--accent); }
.chart .bar.dim { opacity: .35; }
.chart .hit { fill: transparent; cursor: pointer; }
.chart .axis { fill: var(--muted); font-size: 10px; }
.chart .gridl { stroke: var(--grid); stroke-width: 1; }
.tip {
  position: absolute; pointer-events: none; background: var(--text); color: var(--bg); padding: 6px 9px; border-radius: 8px;
  font-size: 12.5px; font-weight: 600; white-space: nowrap; transform: translate(-50%, -110%); z-index: 5;
}
.two { display: grid; gap: 12px; }
@media (min-width: 900px) { .two { grid-template-columns: 1fr 1fr; } }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 6px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 9px 6px; border-bottom: 1px solid var(--border); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 4px; }
.meter i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.scroll-x { overflow-x: auto; }

/* ---------- start screens ---------- */
.start {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 24px) 20px 24px;
}
.start .box { width: 100%; max-width: 440px; text-align: center; }
.start .logo { width: 84px; height: 84px; border-radius: 22px; box-shadow: var(--shadow); margin-bottom: 16px; }
.start h1 { font-size: 26px; margin-bottom: 6px; }
.start .lead { color: var(--muted); margin: 0 0 24px; }
.start .btn { width: 100%; min-height: 50px; margin-bottom: 10px; font-size: 16px; }
.start .card { text-align: left; margin-top: 14px; }
.code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 13px; background: var(--surface-2); padding: 8px 10px; border-radius: 8px; word-break: break-all; user-select: all; }

.toast {
  position: fixed; left: 50%; bottom: calc(var(--nav-h) + env(safe-area-inset-bottom) + 20px); transform: translateX(-50%);
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-weight: 600; z-index: 80;
  box-shadow: var(--shadow); max-width: calc(100vw - 32px); animation: up .2s ease;
}
.toast.err { background: var(--danger); color: #fff; }
@media (min-width: 900px) { .toast { bottom: 30px; } }
.loading { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 40px; color: var(--muted); }
.spin { width: 20px; height: 20px; border: 3px solid var(--border); border-top-color: var(--accent); border-radius: 50%; animation: rot .8s linear infinite; }
@keyframes rot { to { transform: rotate(360deg); } }
.empty { text-align: center; color: var(--muted); padding: 34px 10px; }
.steps { margin: 0; padding-left: 20px; }
.steps li { margin-bottom: 6px; }
.two > .card + .card { margin-top: 0; }
.tl { padding-bottom: 12px; }

/* SMS template picker */
.tpl {
  display: flex; flex-direction: column; gap: 3px; width: 100%; text-align: left; cursor: pointer;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--surface);
}
.tpl:hover { border-color: var(--accent); background: var(--accent-soft); }
.tpl span { font-size: 13.5px; color: var(--muted); }
.tpl:disabled { opacity: .45; cursor: default; background: var(--surface); border-color: var(--border); }
.agenda-item .btn { flex: none; }
.list li .btn { flex: none; }
details summary::-webkit-details-marker { color: var(--muted); }

/* keep grids inside the viewport: long names must truncate, not widen the page */
.two { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .two { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.agenda-item { gap: 8px; }
.agenda-item .time { width: 44px; }
@media (max-width: 420px) { .agenda-item .btn.sm:not(.icon) { padding: 0 9px; } }

/* tomorrow reminders */
.rcheck { flex: none; width: 30px; height: 30px; display: grid; place-items: center; cursor: pointer; }
.rcheck input { width: 22px; height: 22px; margin: 0; accent-color: var(--ok); cursor: pointer; }
.agenda-item.reminded { background: color-mix(in srgb, var(--ok) 6%, var(--surface)); }
.agenda-item.cancel-soft { opacity: .55; }
.remind-progress { margin-bottom: 10px; }
.remind-progress .meter i { background: var(--ok); }
.t-inl { display: none; }
.badge { white-space: nowrap; }
@media (max-width: 520px) {
  .agenda-item.dash .time { display: none; }
  .agenda-item.dash .t-inl { display: inline; }
  .agenda-item.dash { padding: 10px; }
  .rem-long { display: none; }
}

/* follow-up visit */
.next-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.next-opt {
  display: flex; flex-direction: column; gap: 2px; align-items: center; padding: 12px 6px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 12px; background: var(--surface);
}
.next-opt:hover { border-color: var(--accent); background: var(--accent-soft); }
.next-opt span { font-size: 12.5px; color: var(--muted); }

/* schedule blocks in the day view */
.blk {
  position: absolute; left: 0; right: 0; z-index: 1; overflow: hidden;
  background: repeating-linear-gradient(135deg, var(--surface-2) 0 6px, transparent 6px 12px);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
}
.blk span { display: block; padding: 3px 7px; font-size: 11.5px; font-weight: 600; color: var(--muted); }
.blk.break { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--warn) 14%, transparent) 0 6px, transparent 6px 12px); }
.blk.break span { color: var(--warn); }
.blk.abs { background: repeating-linear-gradient(135deg, color-mix(in srgb, var(--danger) 13%, transparent) 0 6px, transparent 6px 12px); cursor: pointer; z-index: 1; }
.blk.abs span { color: var(--danger); }

/* work hours editor */
.hours { display: flex; flex-direction: column; gap: 6px; }
.hrow { display: flex; align-items: center; gap: 8px; }
.hrow .input { min-height: 40px; padding: 6px 8px; flex: 1; min-width: 0; }
.hrow .input:disabled { opacity: .4; }
.hday { width: 118px; flex: none; display: flex; align-items: center; gap: 8px; font-size: 14px; cursor: pointer; }
.hday input { width: 18px; height: 18px; }
@media (max-width: 420px) { .hday { width: 104px; font-size: 13px; } }

/* drag & drop */
.ev.draggable { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ev.dragging { opacity: .35; }
.ev.ghost { z-index: 6; pointer-events: none; box-shadow: var(--shadow), inset 3px 0 0 var(--c); outline: 2px dashed var(--c); outline-offset: -2px; opacity: .95; }
.toast.has-action { display: flex; align-items: center; gap: 14px; }
.toast button { background: transparent; border: 0; color: #c4b5fd; font-weight: 800; cursor: pointer; padding: 4px 2px; font-size: 15px; }
@media (prefers-color-scheme: dark) { .toast button { color: #6d28d9; } }

/* birthday inputs */
.bday { display: grid; grid-template-columns: 90px minmax(0, 1fr) 90px; gap: 8px; }
.hday input { flex: none; }

/* draggable cue: grab hand on booked visits */
.ev.draggable, .agenda-item.draggable { cursor: grab; }
.agenda-item.draggable { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.agenda-item.dragging { opacity: .35; }
.week-ghost { position: fixed; z-index: 90; pointer-events: none; margin: 0; box-shadow: var(--shadow), inset 4px 0 0 var(--c); outline: 2px dashed var(--c); outline-offset: -2px; }
.agenda-day { border-radius: 14px; transition: background .12s; }
.agenda-day.drop-on { background: var(--accent-soft); outline: 2px dashed var(--accent); outline-offset: 4px; }

/* staff: settings the owner manages are shown, not editable */
.card.ro .btn, .card.ro .row > .btn { display: none; }
.card.ro li, .card.ro .input { pointer-events: none; }
.card.ro .input { opacity: .75; }

/* required field marker */
.req { color: #dc2626; font-weight: 700; }

/* merging clients: selected rows + bottom action bar */
#cl-list li.selected { background: var(--accent-soft); border-radius: 10px; }
.mergebar { position: sticky; bottom: calc(76px + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 14px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 6px 24px rgba(0,0,0,.12); z-index: 5; }
@media (min-width: 900px) { .mergebar { bottom: 16px; } }
