/* Layout: right-hand sidebar (RTL) with a working canvas; collapses to a top bar + drawer on phones.
   Palette: Lebanese Um Khalil identity: tile red, stamp gold and walnut brown on warm paper. */
:root {
  --bg: #f7f4f1;
  --surface: #ffffff;
  --surface-2: #f3eeea;
  --ink: #2f1c1b;
  --muted: #7d6a62;
  --line: #e6dcd5;
  --accent: #5f2a2a;
  --accent-ink: #ffffff;
  --accent-soft: #efe4e1;
  --gold: #906d4f;
  --gold-soft: #e8dfd9;
  --kitchen: #906d4f;
  --kitchen-soft: #f1e8e0;
  --hall: #5f2a2a;
  --hall-soft: #f1e3e1;
  --ok: #3f7a4a;
  --ok-soft: #e5f1e6;
  --warn: #a86d12;
  --warn-soft: #fbf0dc;
  --bad: #b2392a;
  --bad-soft: #f8e4e1;
  --shadow: 0 1px 2px rgba(47, 28, 27, .05), 0 8px 24px rgba(47, 28, 27, .07);
  --font-body: "IBM Plex Sans Arabic", "Segoe UI", Tahoma, system-ui, sans-serif;
  --font-display: "Jost", "Reem Kufi", "IBM Plex Sans Arabic", "Segoe UI", sans-serif;
  --r: 12px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1b1413; --surface: #241b1a; --surface-2: #2c2120; --ink: #f1e8e4; --muted: #b7a39a; --line: #3b2d2b;
    --accent: #d99a94; --accent-ink: #1b1413; --accent-soft: #3a2524; --gold: #c9a17e; --gold-soft: #33281f;
    --kitchen: #c9a17e; --kitchen-soft: #33281f; --hall: #d99a94; --hall-soft: #3a2524;
    --ok: #8cc49a; --ok-soft: #1f2c22; --warn: #e0a84a; --warn-soft: #33281a; --bad: #ec7b6c; --bad-soft: #3a201c;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1b1413; --surface: #241b1a; --surface-2: #2c2120; --ink: #f1e8e4; --muted: #b7a39a; --line: #3b2d2b;
    --accent: #d99a94; --accent-ink: #1b1413; --accent-soft: #3a2524; --gold: #c9a17e; --gold-soft: #33281f;
    --kitchen: #c9a17e; --kitchen-soft: #33281f; --hall: #d99a94; --hall-soft: #3a2524;
    --ok: #8cc49a; --ok-soft: #1f2c22; --warn: #e0a84a; --warn-soft: #33281a; --bad: #ec7b6c; --bad-soft: #3a201c;
    --shadow: 0 1px 2px rgba(0,0,0,.4); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.55 var(--font-body);
  font-variant-numeric: tabular-nums;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
h1, h2, h3 { text-wrap: balance; margin: 0; }

/* ---------- shell ---------- */
.shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100%; }
.side {
  background: var(--surface); border-inline-start: 0; border-inline-end: 1px solid var(--line);
  padding-block: 20px; display: flex; flex-direction: column; gap: 12px;
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
}
.side { padding-top: 0 !important; }
.side { background: var(--surface); }
.brand { padding: 14px 18px 12px; display: grid; justify-items: center; text-align: center; gap: 6px; background: var(--gold-soft); border-bottom: 1px solid var(--line); }
.brand img { width: 62px; height: auto; }
.brand b { font-family: var(--font-display); font-size: 20px; font-weight: 500; color: var(--accent); letter-spacing: .14em; text-transform: uppercase; line-height: 1.2; }
.brand span { font-size: 12px; color: var(--muted); line-height: 1.4; }
.nav { display: grid; gap: 2px; padding-inline: 10px; }
.nav .grp { font-size: 11px; color: var(--gold); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; padding: 12px 12px 4px; }
.nav a {
  display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 8px;
  color: var(--ink); text-decoration: none; font-weight: 500;
}
.nav a svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.8; flex: none; opacity: .8; }
.nav a:hover { background: var(--surface-2); }
.nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); box-shadow: inset -3px 0 0 var(--accent); }
[dir="ltr"] .nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--accent); }
.side .who { margin-top: auto; padding: 14px 20px 0; border-top: 1px solid var(--line); display: grid; gap: 8px; font-size: 13px; }
.who .row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.mode-pill { font-size: 11px; padding: 2px 8px; border-radius: 99px; background: var(--warn-soft); color: var(--warn); font-weight: 600; }
.mode-pill.live { background: var(--ok-soft); color: var(--ok); }

.main { min-width: 0; padding-block: 24px 64px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.main > .wrap { max-width: 1180px; margin-inline: auto; display: grid; gap: 20px; }
.topbar { display: none; }

.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 12px; }
.page-head h1 { font-family: var(--font-display); font-weight: 600; font-size: 26px; color: var(--ink); }
.page-head h1 { color: var(--accent); }
.page-head h1::after { content: ""; display: block; width: 48px; height: 3px; margin-top: 6px; border-radius: 2px; background: var(--gold); }
.page-head p { margin: 4px 0 0; color: var(--muted); }
.actions { display: flex; flex-wrap: wrap; gap: 8px; }

/* ---------- surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px; min-width: 0; }
.card h2 { font-size: 16px; font-weight: 600; margin-bottom: 12px; }
.card h2 small { font-weight: 400; color: var(--muted); font-size: 13px; margin-inline-start: 6px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }

.kpis { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; }
.kpi .l { font-size: 12px; color: var(--muted); }
.kpi { border-top: 3px solid var(--gold); }
.kpi .v { font-size: 26px; font-weight: 700; line-height: 1.2; }
.kpi .s { font-size: 12px; color: var(--muted); }
.kpi.k .v { color: var(--kitchen); } .kpi.h .v { color: var(--hall); } .kpi.d .v { color: var(--bad); }

.branch-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.branch { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 10px; }
.branch h3 { font-size: 17px; font-weight: 600; display: flex; justify-content: space-between; align-items: baseline; }
.branch h3 span { font-size: 22px; font-weight: 700; }
.bar { display: flex; height: 8px; border-radius: 99px; overflow: hidden; background: var(--surface-2); }
.bar i { display: block; height: 100%; }
.bar .k { background: var(--kitchen); } .bar .h { background: var(--hall); }
.legend { display: flex; gap: 14px; font-size: 12px; color: var(--muted); flex-wrap: wrap; }
.legend b { color: var(--ink); font-weight: 600; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-inline-end: 5px; }
.dot.k { background: var(--kitchen); } .dot.h { background: var(--hall); }

.quick { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.quick a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; text-decoration: none; color: var(--ink); display: grid; gap: 4px; }
.quick a:hover { border-color: var(--accent); }
.quick a b { font-weight: 600; }
.quick a span { font-size: 12px; color: var(--muted); }

/* ---------- forms ---------- */
.form { display: grid; gap: 14px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 14px; }
.field { display: grid; gap: 5px; min-width: 0; align-content: start; }
.field.wide { grid-column: 1 / -1; }
.field label { font-size: 13px; font-weight: 500; color: var(--muted); }
.field .hint { font-size: 12px; color: var(--muted); min-height: 1em; }
.field .hint.ok { color: var(--ok); } .field .hint.warn { color: var(--warn); } .field .hint.bad { color: var(--bad); }
input[type=text], input[type=number], input[type=password], input[type=search], select, textarea {
  width: 100%; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--surface); }
.seg button { border: 0; background: transparent; padding: 8px 14px; cursor: pointer; }
.seg button + button { border-inline-start: 1px solid var(--line); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
fieldset { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin: 0; min-width: 0; }
legend { padding-inline: 6px; font-weight: 600; font-size: 14px; }
.arrow-split { display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); gap: 12px; align-items: center; }
.arrow-split .arr { font-size: 22px; color: var(--muted); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--line); background: var(--surface);
  padding: 9px 16px; border-radius: 8px; cursor: pointer; font-weight: 500; text-decoration: none; color: var(--ink); white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); border-radius: 4px; letter-spacing: .02em; }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, var(--line)); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }

.status { padding: 10px 14px; border-radius: 8px; font-weight: 500; }
.status.ok { background: var(--ok-soft); color: var(--ok); }
.status.bad { background: var(--bad-soft); color: var(--bad); }
.status.info { background: var(--gold-soft); color: var(--ink); border-inline-start: 3px solid var(--gold); }

/* ---------- tables ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.toolbar > * { flex: 0 1 auto; }
.toolbar input[type=search] { flex: 1 1 220px; width: auto; }
.toolbar select { width: auto; }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { padding: 8px 12px; text-align: start; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.name { white-space: normal; min-width: 180px; }
th { font-size: 12px; font-weight: 600; color: var(--muted); background: var(--surface-2); position: sticky; top: 0; z-index: 1; }
td.n, th.n { text-align: end; }
tbody tr:hover { background: var(--surface-2); }
tbody tr.click { cursor: pointer; }
tfoot td { font-weight: 700; background: var(--surface-2); }
tr.sec td { background: var(--surface-2); font-weight: 600; font-size: 13px; color: var(--muted); }
tr.undone td { color: var(--muted); text-decoration: line-through; }
.tbl-scroll { max-height: 66vh; }
.chip { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 99px; font-weight: 500; }
.chip.k { background: var(--kitchen-soft); color: var(--kitchen); }
.chip.h { background: var(--hall-soft); color: var(--hall); }
.chip.ok { background: var(--ok-soft); color: var(--ok); }
.chip.bad { background: var(--bad-soft); color: var(--bad); }
.chip.warn { background: var(--warn-soft); color: var(--warn); }
.chip.mut { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); }
.zero { color: var(--muted); opacity: .55; }
.pos { color: var(--ok); font-weight: 600; } .neg { color: var(--bad); font-weight: 600; }
.count-in { width: 90px !important; text-align: center; padding: 6px !important; }
.empty { padding: 36px 16px; text-align: center; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: 13px; }

/* ---------- login ---------- */
.login { min-height: 100%; display: grid; place-items: center; padding-block: 32px; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.login { background: var(--bg); }
.login .card { width: min(440px, 100%); padding: 0 34px 30px; display: grid; gap: 16px; box-shadow: var(--shadow); border: 0; border-radius: 18px; overflow: hidden; }
.login-logo { display: grid; justify-items: center; gap: 8px; text-align: center; margin: 0 -34px; padding: 26px 24px 24px; background: var(--gold-soft); }
.login-logo img { width: 120px; height: auto; }
.login h1 { font-family: var(--font-display); color: var(--accent); font-size: 30px; font-weight: 500; letter-spacing: .16em; text-transform: uppercase; }
.login-top { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.login .card { position: relative; }

.login .demo { font-size: 13px; background: var(--warn-soft); color: var(--ink); border-radius: 8px; padding: 10px 12px; }
.login .demo code { font-weight: 700; }

/* ---------- modal & toast ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(10, 15, 12, .45); display: grid; place-items: center; z-index: 50;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); padding-block: 16px; }
.modal { background: var(--surface); border-radius: 12px; width: min(640px, 100%); max-height: 90vh; overflow: auto; padding: 22px; display: grid; gap: 16px; box-shadow: var(--shadow); }
.modal.wide { width: min(860px, 100%); }
.modal h2 { font-size: 18px; }
.modal .foot { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.toast { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 50%; transform: translateX(50%);
  background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 8px; z-index: 60; font-weight: 500; max-width: 90vw; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---------- printable slip (also shown on screen in a modal) ---------- */
.doc { background: #fff; color: #111; border: 1px solid #ccc; border-radius: 6px; padding: 26px; font-size: 14px; }
.doc .dh { display: flex; justify-content: space-between; align-items: start; border-bottom: 2px solid #5f2a2a; padding-bottom: 12px; margin-bottom: 14px; gap: 12px; }
.doc .dh h2 { font-family: var(--font-display); font-size: 22px; color: #5f2a2a; }
.doc .dh .no { font-weight: 700; font-size: 16px; direction: ltr; text-align: left; }
.doc dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; }
.doc dt { color: #555; } .doc dd { margin: 0; font-weight: 600; }
.doc table th { background: #f2f2f2; color: #333; position: static; }
.doc table td, .doc table th { border: 1px solid #ccc; color: #111; }
.doc .sign { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 40px; text-align: center; font-size: 13px; }
.doc .sign div { border-top: 1px solid #999; padding-top: 6px; }
.doc .stamp-cancel { color: #b2392a; font-weight: 700; border: 2px solid #b2392a; display: inline-block; padding: 2px 10px; transform: rotate(-4deg); }
#print-root { display: none; }

@media print {
  body { background: #fff; }
  .shell, .login, .modal-bg, .toast { display: none !important; }
  #print-root { display: block; }
  #print-root .doc { border: 0; padding: 0; }
  #print-root table { font-size: 12px; }
  #print-root th { position: static; }
  @page { margin: 14mm; }
}

/* ---------- responsive ---------- */
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0,1fr)); } .quick { grid-template-columns: repeat(2, minmax(0,1fr)); } }
@media (max-width: 860px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; inset-block: 0; inset-inline-start: 0; width: min(290px, 85vw); z-index: 40; transform: translateX(100%);
    transition: transform .2s; box-shadow: var(--shadow); padding-top: calc(20px + env(safe-area-inset-top, 0px)); }
  .shell.open .side { transform: none; }
  .topbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
    background: var(--surface); border-bottom: 1px solid var(--line); padding-block: 10px;
    padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 31; background: var(--surface); }
  .topbar { border-bottom: 0 !important; box-shadow: 0 1px 0 var(--line); }
  .topbar b { font-family: var(--font-display); color: var(--accent); font-size: 17px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
  .topbar b img { width: 40px; height: auto; }
  .grid2, .grid3, .branch-row { grid-template-columns: minmax(0, 1fr); }
  .kpis { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .arrow-split { grid-template-columns: minmax(0, 1fr); }
  .arrow-split .arr { transform: rotate(-90deg); justify-self: center; }
  .page-head h1 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) { .side { transition: none; } }
@media (max-width: 860px) { .kpis > .kpi:last-child:nth-child(odd) { grid-column: 1 / -1; } }

/* ---------- physical count (Excel «جرد فعلي» layout) ---------- */
.count-title { background: var(--accent); color: var(--accent-ink); font-family: var(--font-display); font-weight: 600; font-size: 20px; padding: 12px 18px; border-radius: var(--r); text-wrap: balance; }
.count-top { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(200px, 240px); gap: 16px; align-items: start; }
.count-form { display: grid; gap: 8px; padding: 14px; }
.cf-row { display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.cf-row > label { background: var(--accent-soft); color: var(--accent); font-weight: 600; font-size: 14px; padding: 9px 12px; align-self: stretch; display: flex; align-items: center; }
.cf-row select, .cf-row input { border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.cf-status { padding: 8px 12px; font-size: 14px; min-height: 38px; display: flex; align-items: center; }
.count-kpis { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ck { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: grid; text-align: center; }
.ck .l { background: var(--accent); color: var(--accent-ink); font-size: 13px; font-weight: 600; padding: 6px; }
.ck .v { font-size: 26px; font-weight: 700; padding: 8px 6px 10px; }
.count-btns { display: grid; gap: 8px; }
.count-btns .btn { justify-content: flex-start; }
.count-tbl tr.todo td { background: var(--surface-2); }
.count-tbl td.act { background: var(--warn-soft); }
.count-tbl td.blind { background: var(--line); }
.count-tbl td.diff { font-weight: 700; }
.count-tbl td.d-neg { background: var(--bad-soft); color: var(--bad); }
.count-tbl td.d-pos { background: var(--warn-soft); color: var(--warn); }
.count-tbl td.d-zero { background: var(--ok-soft); color: var(--ok); }
#c-hist summary { cursor: pointer; }
@media (max-width: 1000px) { .count-top { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .count-btns { grid-column: 1 / -1; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); } }
@media (max-width: 640px) { .count-top { grid-template-columns: minmax(0, 1fr); } .cf-row { grid-template-columns: 100px minmax(0, 1fr); } }
.danger-zone { border-color: color-mix(in srgb, var(--bad) 45%, var(--line)); }
.danger-zone h2 { color: var(--bad); }
.danger-zone p { margin: 0 0 10px; }
.backup-card .bk-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; }
.backup-card .bk-row > div { flex: 1 1 360px; min-width: 0; }
.backup-card p { margin: 6px 0 0; }
.backup-card.stale { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); }
.bk-remind { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.date-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.date-bar label { font-size: 13px; color: var(--muted); }
.date-bar input[type=date] { width: auto; padding: 7px 9px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.date-bar .seg button { padding: 6px 11px; font-size: 13px; }
.doc .doc-h { font-size: 15px; margin: 16px 0 8px; color: #5f2a2a; }
.modal > .seg { justify-self: start; }
.pending-card { border-color: color-mix(in srgb, var(--warn) 50%, var(--line)); }
.pending-card h2 small { color: var(--warn); font-weight: 600; }
.login-top { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
/* left-to-right (English) */
[dir="ltr"] .arrow-split .arr { transform: scaleX(-1); }
@media (max-width: 860px) {
  [dir="ltr"] .side { transform: translateX(-100%); }
  [dir="ltr"] .shell.open .side { transform: none; }
  [dir="ltr"] .arrow-split .arr { transform: rotate(90deg); }
}
[dir="ltr"] .toast { transform: translateX(-50%); }

/* ---------- contact (admin) ---------- */
.contact { display: grid; gap: 8px; font-size: 13px; }
.contact .t { font-weight: 600; color: var(--accent); }
.contact a { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); text-decoration: none; direction: ltr; justify-content: flex-end; }
[dir="ltr"] .contact a { justify-content: flex-start; }
.contact a:hover { color: var(--accent); }
.contact svg { width: 16px; height: 16px; flex: none; fill: var(--accent); }
.contact .icons { display: flex; gap: 10px; }
.contact .icons a { width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); justify-content: center; }
.login .contact { border-top: 1px solid var(--line); padding-top: 14px; text-align: center; justify-items: center; }
.login .contact .icons { justify-content: center; }
.wa-fab { position: fixed; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); inset-inline-start: 20px; width: 56px; height: 56px; border-radius: 50%;
  background: #25d366; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0,0,0,.18); z-index: 20; }
.wa-fab svg { width: 30px; height: 30px; fill: #fff; }
.side .contact { padding: 12px 20px 0; border-top: 1px solid var(--line); margin-top: auto; }
.side .contact + .who { margin-top: 0; }
.contact.compact { grid-template-columns: 1fr auto; align-items: center; }
.contact.compact .icons a { width: 30px; height: 30px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 18px; padding: 6px 0; }
.checks label { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--ink); cursor: pointer; }
.checks input { width: 18px; height: 18px; accent-color: var(--accent); }
