:root {
  --bg: #f4f2ec; --surface: #ffffff; --ink: #19292a; --muted: #67766f; --line: #e2ded2;
  --brand: #0f4c4a; --brand-2: #176b67; --brand-ink: #ffffff; --side: #0c3a38; --side-ink: #d5e6e3;
  --accent: #e3a02f; --ok: #2e8b57; --err: #c0392b;
  --hot: #d2453b; --warm: #d98b12; --cold: #2f7fc1;
  --hot-bg: #fbe9e7; --warm-bg: #fdf1dc; --cold-bg: #e5f0fa;
  --radius: 14px; --shadow: 0 1px 2px rgba(20,40,40,.06), 0 8px 24px rgba(20,40,40,.05);
  --font: ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1919; --surface: #172525; --ink: #e6eeec; --muted: #90a39e; --line: #2a3d3b;
    --brand: #2a9d8f; --brand-2: #35b3a4; --brand-ink: #06201d; --side: #0a1f1e; --side-ink: #c4d8d4;
    --hot-bg: #3a1f1d; --warm-bg: #3a2c12; --cold-bg: #172e42; --shadow: none;
  }
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
a { color: var(--brand-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h2 { font-size: 1.08rem; } h3 { font-size: .95rem; margin: 18px 0 8px; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; font-weight: 600; }
small, .small-note { font-size: .82rem; }
.muted { color: var(--muted); } .strong { font-weight: 650; } .grow { flex: 1; }
.ic { width: 20px; height: 20px; flex: none; }


.shell { display: grid; grid-template-columns: 248px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-ink); padding: 20px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 18px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-weight: 700; font-size: 1.15rem; padding: 4px 8px; }
.brand:hover { text-decoration: none; }
.logo { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: var(--accent); color: #2b1d00; font-weight: 800; }
.logo.big { width: 56px; height: 56px; font-size: 1.6rem; border-radius: 16px; margin: 0 auto 10px; }
.side nav { display: flex; flex-direction: column; gap: 2px; }
.side nav a, .side-foot a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: var(--side-ink); font-weight: 500; }
.side nav a:hover, .side-foot a:hover { background: rgba(255,255,255,.07); text-decoration: none; }
.side nav a.on { background: rgba(255,255,255,.13); color: #fff; }
.pill { margin-left: auto; background: var(--accent); color: #2b1d00; font-size: .72rem; border-radius: 99px; padding: 1px 8px; }
.side-foot { margin-top: auto; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; }
.who { padding: 0 12px 6px; font-size: .85rem; opacity: .75; }
.main { padding: 28px clamp(16px, 3vw, 40px) 60px; max-width: 1180px; width: 100%; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.top h1 { font-size: 1.7rem; }
.top-actions { display: flex; gap: 8px; }
.lead-in { margin: -6px 0 16px; color: var(--muted); }


.tabbar { display: none; }
.sheet { display: none; }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 18px 16px 110px; }
  .top h1 { font-size: 1.4rem; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; background: var(--surface); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -4px 20px rgba(0,0,0,.06); }
  .tabbar a, .tabbar button { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 0; background: none; color: var(--muted); font: inherit; font-size: .7rem; border-radius: 10px; cursor: pointer; }
  .tabbar a:hover { text-decoration: none; }
  .tabbar .on { color: var(--brand-2); font-weight: 650; }
  .sheet:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 40; background: rgba(10,25,25,.5); }
  .sheet-body { position: absolute; left: 0; right: 0; bottom: 0; background: var(--surface); border-radius: 20px 20px 0 0; padding: 14px 14px calc(18px + env(safe-area-inset-bottom)); display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .sheet-body a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--bg); color: var(--ink); font-size: .8rem; text-align: center; }
  .sheet-body a:hover { text-decoration: none; }
}


.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; margin-bottom: 16px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; flex-wrap: wrap; }
.card-h h2 small { font-weight: 500; margin-left: 6px; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; align-items: start; }
@media (max-width: 960px) { .two { grid-template-columns: 1fr; } }
.stack { display: grid; gap: 14px; }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.btn-row form { margin: 0; }
.section-h { font-size: 1.05rem; margin: 22px 0 10px; }
.hint { color: var(--muted); font-size: .88rem; margin: 0; }
.empty { color: var(--muted); padding: 14px 4px; margin: 0; }
.summary-line { margin: 4px 0 12px; }
.danger-zone { margin-top: 24px; text-align: center; }
.callout { background: transparent; border-left: 4px solid var(--warm); padding: 12px 14px; border-radius: 0; margin-bottom: 16px; }
.reminder-line { margin: 0 0 12px; }


.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--brand); background: var(--brand); color: var(--brand-ink); padding: 11px 18px; border-radius: 11px; font: inherit; font-weight: 600; cursor: pointer; min-height: 44px; }
.btn:hover { background: var(--brand-2); border-color: var(--brand-2); text-decoration: none; }
.btn.ghost { background: transparent; color: var(--brand-2); border-color: var(--line); }
.btn.ghost:hover { background: rgba(23,107,103,.08); border-color: var(--brand-2); }
.btn.danger { background: var(--err); border-color: var(--err); color: #fff; }
.btn.danger.ghost { background: transparent; color: var(--err); border-color: var(--line); }
.btn.small { padding: 6px 12px; min-height: 36px; font-size: .88rem; }
.btn.block { width: 100%; }
.link-btn { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; font: inherit; font-size: .82rem; padding: 0; }
.field { display: grid; gap: 5px; min-width: 0; }
.field > span { font-size: .8rem; font-weight: 600; color: var(--muted); }
.field.inline { display: flex; align-items: center; gap: 8px; }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; min-height: 44px; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--brand-2); outline-offset: 1px; border-color: transparent; }
.readout { min-height: 44px; display: flex; align-items: center; padding: 0 12px; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); }
.check { display: flex; align-items: center; gap: 6px; font-size: .9rem; white-space: nowrap; }
.check input { width: 18px; height: 18px; }
.line-row { display: flex; gap: 12px; align-items: center; }
.add-line { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }

details.form-card > summary, details.policy > summary, details.quick > summary, details.report-block > summary {
  cursor: pointer; list-style: none; display: flex; align-items: center; gap: 10px; font-weight: 600; }
details > summary::-webkit-details-marker { display: none; }
details.form-card > summary { color: var(--brand-2); }
details.form-card[open] > summary { margin-bottom: 14px; }
details.card.form-card > summary { padding: 2px 0; }
details.form-card:not(.card) { border: 1px dashed var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 14px; }
details.policy { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; background: var(--bg); }
details.policy[open] > summary { margin-bottom: 12px; }
details.policy form + form { margin-top: 10px; }
details.quick { margin-top: 10px; }
details.quick > summary { font-size: .88rem; color: var(--brand-2); }
details.quick form { margin-top: 12px; }
.meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-bottom: 14px; font-size: .92rem; }
.meta-grid small { display: block; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; font-size: .68rem; }


.flash { padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; background: #e4f3ea; border: 1px solid #b9dcc7; color: #17482c; }
.flash.err { background: #fbe9e7; border-color: #f0c2bc; color: #7c231b; }
@media (prefers-color-scheme: dark) { .flash { background: #163325; border-color: #24533a; color: #bfe6cf; } .flash.err { background: #3a1f1d; border-color: #6b312c; color: #f3c7c2; } }


.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 14px; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); }
.stat-n { font-size: 2rem; font-weight: 750; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat-l { color: var(--muted); font-size: .86rem; line-height: 1.3; } .stat-l small { color: var(--ink); font-weight: 600; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.heat-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-bottom: 16px; }
.heat-tile { display: flex; flex-direction: column; padding: 12px 16px; border-radius: var(--radius); color: var(--ink); border: 1px solid transparent; }
.heat-tile:hover { text-decoration: none; filter: brightness(.97); }
.heat-tile b { font-size: 1.6rem; font-variant-numeric: tabular-nums; } .heat-tile span { font-size: .82rem; font-weight: 600; }
.ht-hot { background: var(--hot-bg); border-color: var(--hot); } .ht-warm { background: var(--warm-bg); border-color: var(--warm); } .ht-cold { background: var(--cold-bg); border-color: var(--cold); }


.heat { display: inline-block; font-size: .68rem; font-weight: 800; letter-spacing: .06em; padding: 2px 8px; border-radius: 99px; color: #fff; vertical-align: middle; }
.heat-hot { background: var(--hot); } .heat-warm { background: var(--warm); } .heat-cold { background: var(--cold); }
.edge-hot { border-left: 4px solid var(--hot) !important; } .edge-warm { border-left: 4px solid var(--warm) !important; } .edge-cold { border-left: 4px solid var(--cold) !important; }
.heat-pick { display: flex; gap: 8px; }
.hp { flex: 1; cursor: pointer; }
.hp input { position: absolute; opacity: 0; pointer-events: none; }
.hp span { display: block; text-align: center; padding: 10px 6px; border-radius: 10px; font-weight: 700; font-size: .86rem; border: 2px solid var(--line); color: var(--muted); }
.hp-hot input:checked + span { background: var(--hot); border-color: var(--hot); color: #fff; }
.hp-warm input:checked + span { background: var(--warm); border-color: var(--warm); color: #fff; }
.hp-cold input:checked + span { background: var(--cold); border-color: var(--cold); color: #fff; }
.hp input:focus-visible + span { outline: 2px solid var(--brand-2); outline-offset: 2px; }


.items { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: var(--bg); }
.items.compact .item { background: transparent; }
.item-row { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; flex-wrap: wrap; }
.item-main { min-width: 0; flex: 1 1 200px; }
.item-title { font-weight: 650; color: var(--ink); } .item-title:hover { color: var(--brand-2); }
.item-sub { color: var(--muted); font-size: .85rem; margin-top: 2px; }
.item-note { font-size: .88rem; margin-top: 4px; }
.item-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
@media (max-width: 520px) { .item-side { flex-direction: row; align-items: center; flex-wrap: wrap; width: 100%; } }
.contact { display: inline-flex; gap: 6px; }
.chip-btn { font-size: .78rem; font-weight: 650; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--line); color: var(--brand-2); background: var(--surface); }
.chip-btn:hover { text-decoration: none; background: rgba(23,107,103,.1); }
.chip-btn.wa { color: #1f8f4e; }
.due { font-size: .76rem; font-weight: 700; padding: 3px 9px; border-radius: 99px; white-space: nowrap; }
.due-over { background: var(--hot-bg); color: var(--hot); } .due-today { background: var(--warm-bg); color: var(--warm); }
.due-soon { background: var(--cold-bg); color: var(--cold); } .due-later { background: var(--bg); color: var(--muted); border: 1px solid var(--line); }
.tag { font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; padding: 2px 8px; border-radius: 6px; vertical-align: middle; }
.tag-birthday { background: #fde7f1; color: #a2306a; } .tag-bonus { background: #e1f3e8; color: #1d6b3d; }
.tag-maturity { background: #fdf1dc; color: #94600a; } .tag-renewal { background: #e5f0fa; color: #1f5e92; }
@media (prefers-color-scheme: dark) { .tag-birthday { background: #3d1d2d; color: #f0a8cb; } .tag-bonus { background: #17331f; color: #8fd3a8; } .tag-maturity { background: #3a2c12; color: #efc27a; } .tag-renewal { background: #172e42; color: #8bc0ea; } }
.st { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); }
.st-active, .st-closed { color: var(--ok); } .st-lost, .st-lapsed, .st-cancelled { color: var(--err); }


.filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.filter-form { align-items: flex-end; }
.chip { padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: .88rem; font-weight: 550; }
.chip:hover { text-decoration: none; border-color: var(--brand-2); }
.chip.on { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.chip b { margin-left: 4px; opacity: .8; }
.sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.inline-sel { margin: 0; } .inline-sel select { min-height: 38px; padding: 6px 10px; width: auto; border-radius: 99px; }
.searchbar { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 0 12px; margin-bottom: 14px; color: var(--muted); }
.searchbar input { border: 0; background: transparent; outline: none !important; padding-left: 0; }


.tbl, .matrix { width: 100%; border-collapse: collapse; }
.tbl { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: rgba(23,107,103,.04); }
.notes-cell { color: var(--muted); font-size: .9rem; max-width: 320px; }
@media (max-width: 760px) {
  .tbl, .tbl tbody { display: block; border: 0; background: none; box-shadow: none; }
  .tbl thead { display: none; }
  .tbl tr { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 8px 14px; }
  .tbl td { display: flex; justify-content: space-between; gap: 14px; padding: 6px 0; border: 0; text-align: right; }
  .tbl td::before { content: attr(data-label); color: var(--muted); font-size: .78rem; text-align: left; flex: none; padding-top: 2px; }
  .notes-cell { max-width: none; }
}
.scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
.matrix th, .matrix td { padding: 9px 12px; text-align: right; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; white-space: nowrap; }
.matrix th:first-child { text-align: left; position: sticky; left: 0; background: var(--surface); font-weight: 600; }
.matrix thead th { font-size: .74rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.matrix .zero { color: var(--muted); opacity: .45; }
.matrix .tot, .matrix tfoot td, .matrix tfoot th { font-weight: 700; }
.matrix tfoot th, .matrix tfoot td { border-top: 2px solid var(--line); border-bottom: 0; }
.matrix .now { background: rgba(227,160,47,.14); }
.matrix tr.now th, .matrix tr.now td { background: rgba(227,160,47,.14); }
.barcol { min-width: 150px; width: 28%; } .bars { display: grid; gap: 2px; }
.bar { display: block; height: 6px; border-radius: 4px; min-width: 2px; }
.k-leads { background: var(--cold); } .k-fu { background: var(--accent); } .k-closed { background: var(--ok); }
.legend { font-size: .8rem; color: var(--muted); } .legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin: 0 4px 0 10px; vertical-align: -1px; }
.period-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.period-label { font-weight: 700; text-align: center; }
.report-block > summary { padding: 2px 0; } .report-block[open] > summary { margin-bottom: 8px; }


.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 96px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.timeline li:first-child { border-top: 0; }
.tl-date { color: var(--muted); font-size: .85rem; font-weight: 600; } .tl-body p { margin: 0 0 4px; }


body.auth { display: grid; place-items: center; min-height: 100vh; padding: 20px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 28px 24px; box-shadow: var(--shadow); text-align: center; }
.auth-card h1 { font-size: 1.5rem; } .auth-card .stack { text-align: left; margin-top: 18px; } .auth-card p { margin: 6px 0 0; }

@media print {
  .side, .tabbar, .sheet, .top-actions, .filters, .period-bar a, details > summary + * ~ form { display: none !important; }
  body { background: #fff; color: #000; } .shell { display: block; } .main { padding: 0; max-width: none; }
  .card { box-shadow: none; break-inside: avoid; } details.report-block { display: block; } details.report-block > * { display: block !important; }
}

.module-access{border:1px solid var(--line,#d9e2e1);border-radius:12px;padding:14px;margin:12px 0}.module-access legend{font-weight:700;padding:0 6px}.check{display:flex;align-items:center;gap:8px;padding:6px 0}.check input{width:auto}


:root {
  color-scheme: light dark;
  --bg: #f5f7fb;
  --surface: #ffffff;
  --ink: #172b3a;
  --muted: #718096;
  --line: #e5eaf1;
  --brand: #246bce;
  --brand-2: #1858b5;
  --brand-ink: #ffffff;
  --side: #122238;
  --side-ink: #c8d5e5;
  --accent: #f4b544;
  --ok: #15966a;
  --err: #c83e4d;
  --hot: #d84b55;
  --warm: #d88a18;
  --cold: #397bd7;
  --hot-bg: #fff0f0;
  --warm-bg: #fff6e6;
  --cold-bg: #edf5ff;
  --radius: 16px;
  --shadow: 0 2px 5px rgba(24, 45, 75, .035), 0 12px 34px rgba(24, 45, 75, .055);
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c1420; --surface: #131f2e; --ink: #e7edf5; --muted: #9aabc0;
    --line: #263649; --brand: #5797f0; --brand-2: #80b1ff; --brand-ink: #071629;
    --side: #091321; --side-ink: #c8d5e5; --accent: #f4b544;
    --hot-bg: #3a2028; --warm-bg: #392d1c; --cold-bg: #192e49;
    --shadow: 0 10px 30px rgba(0,0,0,.16);
  }
}
body { letter-spacing: -.005em; }
a { transition: color .16s ease, background .16s ease, border-color .16s ease; }
.shell { grid-template-columns: 258px minmax(0, 1fr); }
.side {
  padding: 24px 15px 18px; gap: 24px; border-right: 1px solid rgba(255,255,255,.045);
  box-shadow: 8px 0 30px rgba(10,25,45,.045);
}
.brand { padding: 3px 9px 12px; font-size: 1.12rem; letter-spacing: -.025em; }
.logo { width: 38px; height: 38px; border-radius: 12px; background: linear-gradient(145deg,#ffcf70,#f3aa2f); box-shadow: 0 5px 14px rgba(244,181,68,.18); }
.side nav { gap: 5px; }
.side nav a, .side-foot a { min-height: 44px; padding: 10px 13px; border-radius: 11px; gap: 12px; font-size: .92rem; color: var(--side-ink); }
.side nav a .ic, .side-foot a .ic { opacity: .84; }
.side nav a:hover, .side-foot a:hover { background: rgba(255,255,255,.085); color: #fff; }
.side nav a.on { background: linear-gradient(100deg,rgba(68,132,220,.30),rgba(68,132,220,.12)); color: #fff; box-shadow: inset 3px 0 #70a9ff; }
.side nav a.on .ic { opacity: 1; }
.side-foot { border-top-color: rgba(255,255,255,.1); padding-top: 16px; }
.who { color: #9eb0c6; font-size: .8rem; }
.main { max-width: 1500px; padding: 32px clamp(18px,3vw,46px) 64px; }
.top { margin-bottom: 24px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.top h1 { font-size: clamp(1.55rem,2vw,2rem); font-weight: 750; letter-spacing: -.045em; }
.lead-in { margin: -10px 0 24px; color: var(--muted); font-size: .97rem; }
.card { border-color: var(--line); border-radius: 18px; padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card-h { margin-bottom: 16px; }
.card-h h2 { font-size: 1.02rem; font-weight: 750; letter-spacing: -.02em; }
.card-h a { font-size: .88rem; font-weight: 650; }
.two { gap: 20px; }
.stats { gap: 15px; margin-bottom: 18px; }
.stat { position: relative; overflow: hidden; min-height: 124px; display: flex; flex-direction: column; justify-content: center; gap: 8px; padding: 21px; border: 1px solid var(--line); border-radius: 17px; background: var(--surface); box-shadow: var(--shadow); }
.stat:after { content: ''; position: absolute; right: -18px; top: -23px; width: 78px; height: 78px; border-radius: 50%; background: color-mix(in srgb, var(--brand) 9%, transparent); }
.stat-n { font-size: clamp(1.7rem,2.4vw,2.25rem); font-weight: 800; letter-spacing: -.06em; line-height: 1.05; color: var(--ink); }
.stat-l { color: var(--muted); font-size: .86rem; font-weight: 600; }
.stat-l small { font-size: .78rem; font-weight: 500; }
.quick-actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 22px; }
.btn { border-radius: 11px; padding: 10px 16px; font-size: .91rem; font-weight: 700; box-shadow: 0 3px 8px rgba(36,107,206,.12); transition: transform .15s ease, box-shadow .15s ease, background .15s ease; }
.btn:hover { transform: translateY(-1px); box-shadow: 0 7px 16px rgba(36,107,206,.17); }
.btn.ghost { box-shadow: none; background: var(--surface); }
.btn.ghost:hover { background: var(--cold-bg); }
input[type=text], input[type=tel], input[type=email], input[type=number], input[type=date], input[type=password], input[type=search], select, textarea { border-radius: 11px; background: var(--surface); border-color: var(--line); transition: border-color .15s ease, box-shadow .15s ease; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.field > span { font-size: .79rem; letter-spacing: .015em; }
table { border-collapse: separate; border-spacing: 0; }
th { color: var(--muted); font-size: .76rem; font-weight: 750; text-transform: uppercase; letter-spacing: .055em; }
td, th { border-bottom-color: var(--line); }
tr:hover td { background: color-mix(in srgb, var(--brand) 3%, var(--surface)); }
.items { gap: 0; }
.item { padding: 15px 0; border-color: var(--line); }
.item-title { font-weight: 750; letter-spacing: -.015em; }
.item-sub { color: var(--muted); font-size: .83rem; margin-top: 3px; }
.item-note { font-size: .86rem; }
.chip-btn { border: 1px solid var(--line); border-radius: 8px; padding: 5px 9px; font-size: .78rem; font-weight: 700; }
.chip-btn:hover { background: var(--cold-bg); text-decoration: none; }
.heat-tile { border-radius: 14px; border: 1px solid var(--line); box-shadow: 0 3px 10px rgba(20,40,60,.025); transition: transform .15s ease, box-shadow .15s ease; }
.heat-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); text-decoration: none; }
.flash { border-radius: 12px; padding: 13px 16px; }
.auth-card { border-radius: 22px; padding: 34px 28px; box-shadow: 0 20px 70px rgba(24,45,75,.12); }
.auth-card .logo.big { background: linear-gradient(145deg,#ffcf70,#f3aa2f); }
.pill { font-weight: 800; }
@media (max-width: 860px) {
  .shell { display: block; }
  .side { display: none; }
  .main { padding: 20px 15px calc(100px + env(safe-area-inset-bottom)); }
  .top { align-items: flex-start; padding-bottom: 15px; margin-bottom: 21px; }
  .top h1 { font-size: 1.48rem; }
  .top-actions { flex-wrap: wrap; justify-content: flex-end; }
  .card { padding: 17px; border-radius: 15px; }
  .stats { gap: 10px; }
  .stat { min-height: 108px; padding: 16px; border-radius: 14px; }
  .quick-actions .btn { flex: 1 1 calc(50% - 8px); }
  .tabbar { background: color-mix(in srgb, var(--surface) 94%, transparent); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top-color: var(--line); }
  .tabbar .on { background: var(--cold-bg); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; scroll-behavior: auto !important; } }


:root{--bg:#f2f5fa;--surface:#fff;--ink:#20283c;--muted:#8490a5;--line:#e7ebf2;--brand:#4459e8;--brand-2:#354bd3;--brand-ink:#fff;--side:#172d50;--side-ink:#c8d4e8;--accent:#4459e8;--radius:11px;--shadow:0 2px 10px rgba(25,45,82,.045)}
@media(prefers-color-scheme:dark){:root{--bg:#101827;--surface:#182337;--ink:#e8eef9;--muted:#9ba9bf;--line:#2a3850;--brand:#7185ff;--brand-2:#8b9aff;--brand-ink:#101827;--side:#0c1d37;--side-ink:#d2def0;--accent:#7185ff;--shadow:none}}
body{background:var(--bg);font-size:14px;color:var(--ink)}
.shell{grid-template-columns:220px minmax(0,1fr);background:var(--bg)}
.side{background:var(--side);padding:22px 13px 16px;gap:25px;border-radius:0;box-shadow:none}
.brand{padding:3px 8px 18px;font-size:1.02rem;letter-spacing:-.02em;border-bottom:1px solid rgba(255,255,255,.09)}
.logo{width:30px;height:30px;border-radius:9px;background:linear-gradient(135deg,#28d5d7,#4b5ee8);color:white;font-size:.9rem}
.side nav{gap:5px}.side nav a,.side-foot a{min-height:40px;padding:10px 12px;border-radius:8px;font-size:.9rem;color:#d0d9e9;gap:11px}
.side nav a .ic,.side-foot a .ic{width:17px;height:17px;opacity:.9}.side nav a.on{background:#293f60;color:#fff;box-shadow:inset 3px 0 #6178ff}.side nav a:hover,.side-foot a:hover{background:rgba(255,255,255,.08)}
.side-foot{border-top-color:rgba(255,255,255,.1)}.who{font-size:.8rem;color:#aabbd4}
.main{max-width:none;padding:0;min-width:0;width:100%}
.top{height:70px;background:var(--surface);border-bottom:1px solid var(--line);padding:0 clamp(20px,3vw,38px);margin:0;position:relative;z-index:3;gap:22px}
.top h1{display:none}.top-brand-mobile{display:none}.global-search{display:flex;align-items:center;gap:10px;width:min(360px,45%);background:var(--bg);border:1px solid #edf0f5;border-radius:8px;padding:0 12px;color:#a6afbf;height:36px}.global-search .ic{width:16px;height:16px}.global-search input{border:0!important;background:transparent!important;box-shadow:none!important;padding:0!important;min-height:0!important;height:32px;font-size:.82rem;color:var(--ink);outline:none!important}.global-search input::placeholder{color:#a6afbf}
.top-actions{align-items:center;gap:9px;margin-left:auto}.icon-action,.menu-action{width:31px;height:31px;border:0;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:var(--bg);color:var(--muted);font-weight:700}.icon-action .ic,.menu-action .ic{width:15px;height:15px}.top-add{width:32px;height:32px;border-radius:50%;display:inline-flex;align-items:center;justify-content:center;background:#4459e8;color:#fff}.top-add .ic{width:16px;height:16px}.top-add:hover{background:#354bd3;text-decoration:none}.menu-action{border-radius:7px;background:transparent}
.page-content{padding:22px clamp(20px,3vw,38px) 42px;max-width:1600px;margin:0 auto}.page-heading{display:flex;align-items:center;justify-content:space-between;margin:0 0 6px}.page-heading h1{font-size:1.35rem;font-weight:700;letter-spacing:-.035em}.page-date{font-size:.78rem;color:var(--muted)}.lead-in{margin:0 0 20px;color:var(--muted);font-size:.86rem}.dashboard-greeting{margin-bottom:20px}.dashboard-greeting span{color:var(--muted)}
.quick-actions{margin-bottom:18px}.btn{border-radius:8px;font-size:.86rem;padding:9px 14px;min-height:38px}.btn.ghost{background:var(--surface)}
.dashboard-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:18px}.metric-card{position:relative;overflow:hidden;background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:17px 18px 13px;min-height:143px;box-shadow:var(--shadow)}.metric-top{display:flex;align-items:center;justify-content:space-between;font-size:.8rem;font-weight:600;color:var(--muted)}.metric-icon{width:30px;height:30px;display:grid;place-items:center;border-radius:8px;background:#eef0ff;color:#5868e9}.metric-icon .ic{width:16px;height:16px}.metric-value{font-size:1.65rem;line-height:1.2;font-weight:750;letter-spacing:-.04em;margin:10px 0 7px}.metric-foot{font-size:.72rem;color:var(--muted);display:flex;align-items:center;gap:6px;position:relative;z-index:1}.metric-dot{width:6px;height:6px;border-radius:50%;background:#52c7b8}.metric-coral .metric-value{color:#f07868}.metric-purple .metric-value{color:#9b6bd3}.metric-blue{background:#37c6eb;border-color:#37c6eb;color:white}.metric-blue .metric-top,.metric-blue .metric-foot{color:rgba(255,255,255,.82)}.metric-blue .metric-value{color:#fff}.metric-blue .metric-icon{background:rgba(255,255,255,.2);color:white}.metric-blue .metric-dot{background:#fff}.spark{position:absolute;left:0;right:0;bottom:0;height:42px;opacity:.7;pointer-events:none}.spark svg{width:100%;height:100%;overflow:visible}.spark path{fill:none;stroke-width:2;stroke:currentColor;opacity:.65}.spark-coral{color:#f07868;background:linear-gradient(0deg,rgba(240,120,104,.12),transparent)}.spark-purple{color:#a675d8;background:linear-gradient(0deg,rgba(166,117,216,.13),transparent)}.spark-blue{color:#fff;background:linear-gradient(0deg,rgba(255,255,255,.12),transparent)}
.dashboard-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;margin-bottom:16px;align-items:stretch}.dash-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;padding:17px 18px;min-width:0;box-shadow:var(--shadow)}.dash-card-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;padding-bottom:13px;border-bottom:1px solid var(--line);margin-bottom:14px}.dash-card-head h2{font-size:.9rem;font-weight:700;letter-spacing:-.01em}.dash-card-head p{margin:4px 0 0;color:var(--muted);font-size:.73rem}.card-more{font-size:1.15rem;line-height:1;color:var(--muted);letter-spacing:2px}.period-pill{font-size:.7rem;border:1px solid var(--line);border-radius:6px;padding:5px 8px;color:var(--muted)}
.source-chart{min-height:176px;display:flex;align-items:center;justify-content:center;gap:30px;padding:4px 0 0}.donut-chart{width:138px;height:138px;flex:none;border-radius:50%;display:grid;place-items:center;background:conic-gradient(#fa7b6b 0 33%,#f8c65e 33% 66%,#6d9df5 66% 100%);position:relative}.donut-chart:after{content:"";position:absolute;inset:20px;border-radius:50%;background:var(--surface)}.donut-hole{z-index:1;display:flex;flex-direction:column;align-items:center}.donut-hole strong{font-size:1.35rem}.donut-hole span{font-size:.68rem;color:var(--muted)}.chart-legend{display:grid;gap:13px;min-width:130px}.chart-legend>div{display:grid;grid-template-columns:9px 1fr auto;gap:8px;align-items:center;font-size:.76rem;color:var(--muted)}.chart-legend b{font-weight:650;color:var(--ink)}.chart-legend i,.stage-foot i,.chart-legend.inline i{display:inline-block;width:8px;height:8px;border-radius:2px}.legend-hot{background:#fa7b6b}.legend-warm{background:#f8c65e}.legend-cold{background:#6d9df5}.legend-blue{background:#48c9e8}.legend-coral{background:#fa7b6b}
.stage-bars{display:grid;gap:20px;padding:10px 0 12px}.stage-label{display:flex;justify-content:space-between;font-size:.76rem;margin-bottom:7px}.stage-label span{color:var(--muted)}.stage-label b{font-weight:650}.stage-track{height:10px;border-radius:20px;background:var(--bg);overflow:hidden}.stage-fill{height:100%;display:block;border-radius:20px}.stage-fill.hot{background:#fa7b6b}.stage-fill.warm{background:#f8c65e}.stage-fill.cold{background:#63cde9}.stage-foot{display:flex;gap:17px;flex-wrap:wrap;border-top:1px solid var(--line);padding-top:13px;font-size:.69rem;color:var(--muted)}.stage-foot span{display:flex;align-items:center;gap:6px}
.activity-chart{display:flex;gap:12px;height:148px;padding:2px 0 0}.y-labels{display:flex;flex-direction:column;justify-content:space-between;font-size:.65rem;color:var(--muted);padding:5px 0 23px}.activity-plot{position:relative;flex:1;min-width:0}.chart-gridlines{position:absolute;inset:4px 0 24px;display:flex;flex-direction:column;justify-content:space-between}.chart-gridlines i{border-top:1px solid var(--line);width:100%}.activity-plot svg{position:absolute;inset:4px 0 23px;width:100%;height:calc(100% - 27px);overflow:visible}.activity-plot svg path{fill:none;stroke-width:2.3;vector-effect:non-scaling-stroke}.line-a{stroke:#48c9e8}.line-b{stroke:#fa9c8f}.x-labels{position:absolute;bottom:0;left:0;right:0;display:flex;justify-content:space-between;font-size:.63rem;color:var(--muted)}.chart-legend.inline{display:flex;gap:17px;flex-wrap:wrap;margin-top:10px}.chart-legend.inline span{display:flex;align-items:center;gap:6px;font-size:.7rem;color:var(--muted)}.chart-legend.inline b{color:var(--ink)}.text-link{font-size:.76rem;font-weight:600;color:var(--brand-2)}.chart-empty{min-height:155px;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:6px;text-align:center;color:var(--muted);font-size:.78rem}.chart-empty strong{color:var(--ink);font-size:.86rem}.empty-check{width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e2f7ee;color:#26a477}.empty-check .ic{width:17px;height:17px}.dashboard-items{gap:8px}.dashboard-items .item{border:0;border-bottom:1px solid var(--line);border-radius:0;padding:9px 0;background:transparent}.dashboard-items .item:last-child{border-bottom:0}.dashboard-items .item-side{font-size:.7rem}.dashboard-bottom-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.action-grid a{display:flex;align-items:center;gap:10px;padding:12px;border:1px solid var(--line);border-radius:8px;color:var(--ink);min-width:0}.action-grid a:hover{background:var(--bg);text-decoration:none;border-color:#cbd3f7}.action-grid a>.ic{width:19px;height:19px;color:var(--brand-2);flex:none}.action-grid span{display:grid;gap:2px;min-width:0}.action-grid b{font-size:.77rem}.action-grid small{font-size:.67rem;color:var(--muted)}
@media(max-width:1050px){.shell{grid-template-columns:200px minmax(0,1fr)}.source-chart{gap:18px}.donut-chart{width:118px;height:118px}.donut-chart:after{inset:17px}}
@media(max-width:860px){.shell{display:block}.side{display:none}.main{padding:0}.top{height:60px;padding:0 16px}.top-brand-mobile{display:flex;align-items:center;gap:8px;font-size:.9rem}.top-brand-mobile .logo{width:28px;height:28px}.global-search{width:auto;flex:1;max-width:260px}.top-actions{gap:5px}.icon-action:first-child,.menu-action{display:none}.page-content{padding:18px 14px 100px}.page-heading h1{font-size:1.2rem}.dashboard-metrics{gap:10px}.metric-card{padding:13px;min-height:132px}.metric-value{font-size:1.45rem}.dashboard-grid,.dashboard-bottom-grid{gap:12px}.tabbar{background:var(--surface)}}
@media(max-width:620px){.global-search{max-width:none;width:auto;flex:1}.global-search input{width:100%;font-size:.75rem}.top-actions{gap:4px}.top-add{width:30px;height:30px}.dashboard-metrics{grid-template-columns:1fr 1fr}.metric-card:last-child{grid-column:1/-1}.dashboard-grid,.dashboard-bottom-grid{grid-template-columns:1fr}.source-chart{justify-content:space-evenly;gap:14px}.donut-chart{width:120px;height:120px}.donut-chart:after{inset:17px}.chart-legend{min-width:125px}.stage-bars{gap:16px}.dash-card{padding:14px}.action-grid{gap:8px}.action-grid a{padding:10px}.page-date{font-size:.68rem}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{scroll-behavior:auto!important;animation:none!important;transition:none!important}}


:root{color-scheme:light;--bg:#f4f7fb;--surface:#fff;--ink:#252b3b;--muted:#8993a5;--line:#e8edf4;--brand:#465be8;--brand-2:#344bd6;--brand-ink:#fff;--side:#172d50;--side-ink:#d5dfef;--accent:#465be8;--radius:9px;--shadow:0 1px 5px rgba(22,39,69,.035)}
@media(prefers-color-scheme:dark){:root{color-scheme:light;--bg:#f4f7fb;--surface:#fff;--ink:#252b3b;--muted:#8993a5;--line:#e8edf4;--brand:#465be8;--brand-2:#344bd6;--brand-ink:#fff;--side:#172d50;--side-ink:#d5dfef;--accent:#465be8;--shadow:0 1px 5px rgba(22,39,69,.035)}}
html{min-height:100%;background:#424958}
body.app-page{background:#424958;color:#252b3b;min-height:100vh;padding:5.2vh 0;font-size:13px}
.app-page .shell{display:grid;grid-template-columns:220px minmax(0,1fr);grid-template-rows:66px minmax(0,1fr);width:min(88vw,1500px);min-height:83vh;margin:0 auto;background:#f4f7fb;border-radius:27px;overflow:hidden;box-shadow:0 18px 65px rgba(10,19,35,.16)}
.app-page .side{grid-column:1;grid-row:2;position:relative;top:auto;height:auto;min-height:0;background:#172d50;padding:24px 13px 18px;gap:18px;border-radius:0 24px 0 0;box-shadow:none}
.app-page .side>.brand{display:none}
.app-page .side nav{gap:5px}
.app-page .side nav a,.app-page .side-foot a{min-height:39px;padding:9px 12px;border-radius:8px;font-size:.84rem;color:#d1dced;gap:11px}
.app-page .side nav a .ic,.app-page .side-foot a .ic{width:17px;height:17px;opacity:.92}
.app-page .side nav a.on{background:#293f60;color:#fff;box-shadow:none}
.app-page .side nav a:hover,.app-page .side-foot a:hover{background:rgba(255,255,255,.09)}
.app-page .side-foot{border-top-color:rgba(255,255,255,.1)}
.app-page .who{font-size:.76rem;color:#aabbd4}
.app-page .main{display:contents}
.app-page .top{grid-column:1/-1;grid-row:1;display:flex;height:66px;min-width:0;align-items:center;gap:28px;background:#fff;border:0;border-bottom:1px solid #edf0f5;padding:0 22px;margin:0;position:relative;z-index:3}
.app-page .top-brand-mobile{display:flex;align-items:center;gap:7px;flex:none;color:#273244;font-size:.9rem;letter-spacing:-.04em;text-decoration:none}
.app-page .top-brand-mobile strong{font-size:.88rem;font-weight:800;letter-spacing:-.045em}
.app-page .top-brand-mobile .logo{width:24px;height:24px;border-radius:0;background:transparent;color:#3b66df;font-size:1.05rem}
.app-page .brand-mark{background:linear-gradient(135deg,#29c7d0,#5364e8);-webkit-background-clip:text;background-clip:text;color:transparent;font-size:1.35rem}
.app-page .global-search{width:min(330px,42%);height:34px;background:#f7f8fa;border-color:#edf0f5;border-radius:8px}
.app-page .top-actions{gap:9px;margin-left:auto;flex:none}
.app-page .icon-action,.app-page .menu-action{width:29px;height:29px;background:#f5f7fa;color:#a0a9b8}
.app-page .top-add{width:31px;height:31px;background:#465be8}
.app-page .page-content{grid-column:2;grid-row:2;min-width:0;max-width:none;width:100%;padding:18px 22px 28px;background:#f4f7fb}
.app-page .page-heading{margin:0 0 12px}
.app-page .page-heading h1{font-size:1.25rem;color:#20283c}
.app-page .page-date{font-size:.72rem}
.app-page .lead-in{font-size:.8rem}
.app-page .dashboard-greeting,.app-page.page-dashboard .page-heading{display:none}
.app-page .dashboard-metrics{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;margin:0 0 16px}
.app-page .metric-card{min-height:122px;padding:15px 15px 11px;border:1px solid #e8edf4;border-radius:9px;background:#fff;box-shadow:none}
.app-page .metric-top{font-size:.7rem;color:#3d4659;font-weight:600}
.app-page .metric-icon{display:none}
.app-page .metric-value{font-size:1.35rem;margin:4px 0 3px;letter-spacing:-.035em}
.app-page .metric-foot{font-size:.65rem;color:#8b95a7}
.app-page .metric-dot{display:none}
.app-page .metric-coral .metric-value{color:#f07868}
.app-page .metric-purple .metric-value{color:#9c6bc9}
.app-page .metric-blue{background:#37c6eb;border-color:#37c6eb;color:#fff}
.app-page .metric-blue .metric-top,.app-page .metric-blue .metric-foot{color:rgba(255,255,255,.9)}
.app-page .spark{height:45px;opacity:.7}
.app-page .dashboard-grid,.app-page .dashboard-bottom-grid{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:14px;margin-bottom:14px}
.app-page .dash-card{min-width:0;padding:14px 15px;background:#fff;border:1px solid #edf0f5;border-radius:9px;box-shadow:none}
.app-page .dash-card-head{padding-bottom:10px;margin-bottom:11px;border-bottom:1px solid #edf0f5;align-items:center}
.app-page .dash-card-head h2{font-size:.8rem;font-weight:700;color:#252b3b}
.app-page .dash-card-head p{display:none}
.app-page .card-more{color:#5b6476;font-size:1rem;letter-spacing:1px}
.app-page .source-chart{min-height:155px;gap:25px;justify-content:center}
.app-page .donut-chart{width:128px;height:128px;flex:none}
.app-page .donut-chart:after{inset:20px;background:#fff}
.app-page .donut-hole strong{font-size:1.1rem;color:#3a4357}
.app-page .donut-hole span{font-size:.62rem}
.app-page .chart-legend{min-width:125px;gap:7px}
.app-page .chart-legend>div{font-size:.68rem;gap:7px}
.app-page .chart-legend b{font-weight:500;color:#7e8798}
.app-page .stage-bars{gap:13px;padding:7px 2px 0}
.app-page .stage-label{font-size:.67rem}
.app-page .stage-track{height:11px;background:#f2f4f8;border-radius:20px}
.app-page .stage-fill{border-radius:20px}
.app-page .stage-foot{font-size:.64rem;gap:10px;margin-top:16px}
.app-page .activity-chart{min-height:150px}
.app-page .activity-plot{height:140px}
.app-page .activity-plot svg{height:112px}
.app-page .x-labels,.app-page .y-labels{font-size:.62rem}
.app-page .chart-legend.inline{font-size:.65rem}
.app-page .sales-pipeline-card{min-height:230px}
.app-page .dashboard-items .item{padding:8px 0}
.app-page .dashboard-bottom-grid{margin-top:0}
@media(max-width:1100px){.app-page .shell{width:94vw}.app-page .page-content{padding:17px}.app-page .source-chart{gap:15px}.app-page .donut-chart{width:112px;height:112px}.app-page .donut-chart:after{inset:17px}}
@media(max-width:760px){body.app-page{padding:0;background:#f4f7fb}.app-page .shell{display:block;width:100%;min-height:100vh;margin:0;border-radius:0;overflow:visible;box-shadow:none}.app-page .side{display:none}.app-page .main{display:contents}.app-page .top{height:62px;padding:0 14px;gap:12px}.app-page .top-brand-mobile{display:flex}.app-page .top-brand-mobile strong{font-size:.75rem}.app-page .top-brand-mobile .logo{width:20px}.app-page .global-search{width:auto;max-width:none;flex:1;min-width:70px}.app-page .top-actions{gap:4px}.app-page .icon-action:first-child,.app-page .menu-action{display:none}.app-page .page-content{padding:16px 13px 100px}.app-page .dashboard-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.app-page .metric-card:last-child{grid-column:1/-1}.app-page .dashboard-grid,.app-page .dashboard-bottom-grid{grid-template-columns:1fr;gap:11px}.app-page .source-chart{justify-content:space-evenly}.app-page .tabbar{background:#fff}.app-page .tabbar .on{color:#465be8}}
@media(max-width:420px){.app-page .top{gap:8px;padding:0 10px}.app-page .top-brand-mobile strong{max-width:68px;overflow:hidden;text-overflow:ellipsis}.app-page .metric-card{padding:12px}.app-page .metric-value{font-size:1.2rem}.app-page .dash-card{padding:12px}.app-page .source-chart{gap:10px}.app-page .donut-chart{width:105px;height:105px}.app-page .donut-chart:after{inset:16px}}


@media (min-width: 761px) {
  body.app-page { padding: 0; min-height: 100vh; }
  .app-page .shell { width: 100%; max-width: none; min-height: 100vh; height: 100vh; margin: 0; border-radius: 0; }
  .app-page .main { min-width: 0; min-height: 0; overflow-y: auto; max-width: none; }
  .app-page .side { height: 100vh; overflow-y: auto; }
}
@media (max-width: 760px) {
  .app-page .top { position: fixed; top: 0; left: 0; right: 0; width: 100%; z-index: 100; box-shadow: 0 4px 18px rgba(20,35,60,.08); }
  .app-page .page-content { padding-top: 78px; }
  .app-page .main { display: contents; }
  .app-page .compact-search { margin: 2px 0 8px; padding: 0 9px; }
  .app-page .compact-search input { min-height: 36px; font-size: .8rem; }
}
@media (max-height: 560px) and (orientation: landscape) {
  body.app-page { padding: 0; }
  .app-page .shell { width: 100%; min-height: 100vh; height: 100vh; margin: 0; border-radius: 0; overflow: hidden; }
  .app-page .side { height: 100vh; overflow-y: auto; }
  .app-page .top { position: sticky; top: 0; }
  .app-page .main { min-height: 0; overflow-y: auto; }
}
.pagination-controls { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:12px 0 20px; color:var(--muted); font-size:.8rem; }
.pagination-actions { display:flex; gap:8px; }
.pagination-controls .btn { min-height:34px; padding:5px 11px; }
.pagination-controls button:disabled { opacity:.4; cursor:not-allowed; }
.item-card-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; padding:0; margin:0; list-style:none; }
.item-card-grid > .item { min-width:0; margin:0; padding:13px; background:#fff; border:1px solid #e8edf4; border-radius:10px; box-shadow:0 2px 8px rgba(20,39,70,.035); transition:transform .18s ease, box-shadow .18s ease; }
.item-card-grid > .item:hover { transform:translateY(-2px); box-shadow:0 8px 22px rgba(20,39,70,.08); }
.item-card-grid .item-row { align-items:flex-start; }
@media(max-width:620px){ .item-card-grid{grid-template-columns:1fr;} }

.app-page .metric-card,.app-page .dash-card { animation: dashboard-enter .42s ease both; }
.app-page .metric-card:nth-child(2),.app-page .stage-card { animation-delay:.05s; }
.app-page .metric-card:nth-child(3),.app-page .performance-card { animation-delay:.1s; }
.app-page .sales-pipeline-card,.app-page .compact-reminders { animation-delay:.14s; }
@keyframes dashboard-enter { from { opacity:0; transform:translateY(7px); } to { opacity:1; transform:translateY(0); } }
@media(prefers-reduced-motion:reduce){.app-page .metric-card,.app-page .dash-card,.item-card-grid>.item{animation:none!important;transition:none!important}}


@media (min-width: 761px) {
  body.app-page { padding: 0; min-height: 100vh; overflow: hidden; }
  .app-page .shell { width: 100%; max-width: none; height: 100vh; min-height: 100vh; margin: 0; border-radius: 0; overflow: hidden; }
  .app-page .main { display: contents; }
  .app-page .page-content { height: calc(100vh - 66px); min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; scrollbar-gutter: stable; }
  .app-page .side { height: calc(100vh - 66px); min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
  .app-page .top { position: relative; }
  .app-page .global-search { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: min(360px, 32vw); max-width: 360px; margin: 0; }
  .app-page .top-actions { margin-left: auto; }
}
.app-page .top-user { display:inline-flex; align-items:center; gap:8px; max-width:220px; min-width:0; color:#394256; font-size:.76rem; font-weight:650; white-space:nowrap; }
.app-page .top-user-avatar { display:inline-grid; place-items:center; flex:0 0 29px; width:29px; height:29px; border-radius:50%; background:#e9edff; color:#465be8; font-size:.78rem; font-weight:800; }
.app-page .top-user-name { display:block; overflow:hidden; text-overflow:ellipsis; max-width:150px; }
.app-page .side-foot .who { display:none; }
.app-page .spark path { stroke-dasharray:420; stroke-dashoffset:420; animation: spark-draw 1.25s ease-out .15s forwards; }
.app-page .activity-plot svg path { stroke-dasharray:900; stroke-dashoffset:900; animation: graph-draw 1.5s ease-out .2s forwards; }
.app-page .stage-fill { transform:scaleX(0); transform-origin:left center; animation: bar-grow .9s cubic-bezier(.2,.75,.25,1) .18s forwards; }
.app-page .donut-chart { animation: donut-pop .7s ease-out both; }
@keyframes spark-draw { to { stroke-dashoffset:0; } }
@keyframes graph-draw { to { stroke-dashoffset:0; } }
@keyframes bar-grow { to { transform:scaleX(1); } }
@keyframes donut-pop { from { opacity:.55; transform:scale(.88) rotate(-18deg); } to { opacity:1; transform:scale(1) rotate(0); } }
@media (max-width: 760px) {
  body.app-page { overflow-x:hidden; overflow-y:auto; }
  .app-page .top { position:fixed; top:0; left:0; right:0; width:100%; box-sizing:border-box; display:flex; justify-content:space-between; }
  .app-page .global-search { position:absolute; left:50%; top:50%; transform:translate(-50%,-50%); width:min(40vw,250px); min-width:100px; max-width:250px; margin:0; }
  .app-page .top-actions { margin-left:auto; position:relative; z-index:2; }
  .app-page .top-user { gap:0; }
  .app-page .top-user-name { display:none; }
  .app-page .top-user-avatar { width:27px; height:27px; flex-basis:27px; }
  .app-page .page-content { height:auto; min-height:calc(100vh - 62px); overflow:visible; padding-top:78px; padding-bottom:105px; }
}
@media (max-width: 380px) {
  .app-page .top { padding-left:8px; padding-right:8px; gap:4px; }
  .app-page .top-brand-mobile strong { display:none; }
  .app-page .global-search { width:42vw; min-width:90px; }
  .app-page .top-actions { gap:3px; }
}
@media (max-height:560px) and (orientation:landscape) {
  body.app-page { overflow:hidden; }
  .app-page .shell { height:100dvh; min-height:100dvh; overflow:hidden; }
  .app-page .top { position:fixed; top:0; left:0; right:0; height:54px; z-index:100; }
  .app-page .side { height:calc(100dvh - 54px); margin-top:54px; }
  .app-page .page-content { height:calc(100dvh - 54px); min-height:0; padding-top:68px; padding-bottom:80px; overflow-y:auto; }
}
@media (prefers-reduced-motion:reduce) {
  .app-page .spark path,.app-page .activity-plot svg path,.app-page .stage-fill,.app-page .donut-chart { animation:none!important; stroke-dashoffset:0!important; transform:none!important; }
}


.app-page .side,
.app-page .side nav {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.app-page .side::-webkit-scrollbar,
.app-page .side nav::-webkit-scrollbar { width: 0; height: 0; display: none; }
.nav-toggle { display:none; border:0; width:32px; height:32px; flex:0 0 32px; align-items:center; justify-content:center; border-radius:8px; color:#33415b; background:#f1f4fa; cursor:pointer; }
.nav-toggle .ic { width:18px; height:18px; }
@media (max-width:760px) {
  .app-page .top { gap:8px; }
  .app-page .nav-toggle { display:inline-flex; position:relative; z-index:102; }
  .app-page .side {
    display:flex;
    position:fixed;
    z-index:101;
    left:0;
    top:62px;
    bottom:0;
    width:min(280px, 82vw);
    height:auto;
    max-height:calc(100dvh - 62px);
    min-height:0;
    margin:0;
    padding:16px 12px calc(18px + env(safe-area-inset-bottom));
    overflow-y:auto;
    overscroll-behavior:contain;
    border-radius:0 16px 0 0;
    box-shadow:12px 0 35px rgba(12,25,50,.2);
    transform:translateX(-110%);
    visibility:hidden;
    transition:transform .22s ease, visibility .22s ease;
  }
  .app-page.nav-open .side { transform:translateX(0); visibility:visible; }
  .app-page.nav-open::after { content:""; position:fixed; inset:62px 0 0; background:rgba(13,24,43,.38); z-index:99; }
  .app-page .side>.brand { display:flex; margin-bottom:4px; }
  .app-page .side nav { min-height:0; }
  .app-page .global-search { width:min(36vw,220px); min-width:74px; }
  .app-page .top-brand-mobile strong { display:none; }
  .app-page .top-actions { gap:4px; }
}
@media (max-width:380px) {
  .app-page .global-search { width:34vw; min-width:68px; }
  .app-page .top { gap:5px; }
}

@media (max-height:560px) and (orientation:landscape) {
  body.app-page { overflow:hidden; }
  .app-page .shell { display:block; width:100%; height:100dvh; min-height:100dvh; overflow:hidden; border-radius:0; }
  .app-page .top { position:fixed; inset:0 0 auto 0; height:52px; padding:0 12px; gap:10px; }
  .app-page .nav-toggle { display:inline-flex; }
  .app-page .side { display:flex; position:fixed; z-index:101; left:0; top:52px; bottom:0; width:174px; height:auto; max-height:none; margin:0; padding:10px 8px 12px; overflow-y:auto; border-radius:0; transform:translateX(-110%); visibility:hidden; }
  .app-page.nav-open .side { transform:translateX(0); visibility:visible; }
  .app-page.nav-open::after { content:""; position:fixed; inset:52px 0 0; background:rgba(13,24,43,.38); z-index:99; }
  .app-page .side>.brand { display:flex; font-size:.8rem; margin-bottom:0; }
  .app-page .side nav a,.app-page .side-foot a { min-height:34px; padding:6px 8px; font-size:.75rem; }
  .app-page .page-content { position:absolute; top:52px; left:0; right:0; bottom:0; height:auto; min-height:0; overflow-y:auto; overflow-x:hidden; padding:14px 12px 24px; }
  .app-page .global-search { width:min(38vw,250px); min-width:90px; }
  .app-page .top-brand-mobile strong { display:inline; max-width:80px; }
  .app-page .top-actions .top-user-name { display:none; }
  .app-page .dashboard-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }
  .app-page .metric-card { min-height:98px; padding:10px; }
  .app-page .metric-value { font-size:1.1rem; }
  .app-page .spark { height:28px; }
  .app-page .dashboard-grid,.app-page .dashboard-bottom-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .app-page .dash-card { padding:10px; }
  .app-page .tabbar { display:none; }
}
@media (prefers-reduced-motion:reduce) {
  .app-page .side { transition:none!important; }
}


.app-page .nav-toggle {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  color: var(--side) !important;
  padding: 0 !important;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
}
.app-page .nav-toggle .ic {
  display:block;
  width: 22px;
  height: 22px;
  fill:none !important;
  stroke: var(--side) !important;
  stroke-width: 2.6 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
  color: var(--side) !important;
  opacity:1 !important;
  visibility:visible !important;
}
@media (min-width: 761px) {
  .app-page .side { left: 0; top: -16px; height: calc(100% + 16px); }
}






.cal-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }
.cal-title { margin: 0 0 0 8px; font-size: 1.05rem; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 10px; color: var(--muted); font-size: .78rem; }
.cal-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; border-radius: 50%; background: var(--c); }
.cal-wa-line { margin-top: 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-h { padding: 6px; background: var(--surface); color: var(--muted); font-size: .72rem; text-align: center; text-transform: uppercase; }
.cal-day { min-height: 96px; display: flex; flex-direction: column; gap: 2px; padding: 4px; background: var(--surface); overflow: hidden; }
.cal-week .cal-day { min-height: 170px; border: 1px solid var(--line); border-radius: 8px; }
.cal-day.out { opacity: .5; }
.cal-day.today { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-n { color: var(--ink); font-size: .78rem; font-weight: 700; }
.cal-chip { display: block; padding: 2px 5px; border-left: 3px solid var(--c); border-radius: 5px; background: color-mix(in srgb, var(--c) 18%, var(--surface)); color: var(--ink); font-size: .7rem; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-chip:hover { text-decoration: none; filter: brightness(.96); }
.cal-chip.done { opacity: .55; text-decoration: line-through; }
.cal-more { font-size: .7rem; }
.cal-day-title { margin: 16px 0 6px; font-size: .95rem; }
.cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--c); flex-wrap: wrap; }
.cal-row.done { opacity: .65; }
.cal-row small { display: block; }
.cal-row .grow { flex: 1 1 220px; min-width: 0; }
.cal-notes { white-space: pre-line; color: var(--muted); margin-top: 4px; }
.cal-time { min-width: 48px; text-align: center; }
.cal-mini { margin: 0 0 10px; }
.cal-mini small { display: block; }
.calendar-main { width: 100%; min-width: 0; }
.calendar-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 16px; }
.calendar-summary-grid > .card { min-width: 0; margin: 0; }
.wa-link { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 18px 0 8px; }
.wa-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.wa-qr img { display: block; width: 260px; height: 260px; }
.wa-link .stack { flex: 1 1 260px; }
#waPanel code { word-break: break-all; }
@media (max-width: 860px) {
  .cal-day { min-height: 64px; }
  .cal-chip b { display: none; }
  .cal-week { grid-template-columns: 1fr; }
  .calendar-summary-grid { grid-template-columns: 1fr; }
}

/* ---- companies / follow-up table (from your css-append.css) ---- */
.co-state { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.co-active { background: #dff4e6; color: #17653b; }
.co-dormant { background: #fff1d6; color: #8a5a00; }
.co-disabled { background: #f9dcd9; color: #9a2a20; }
.co-pending { background: #dde8fb; color: #2a4d9b; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.co-stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); }
.co-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.co-stat span { font-size: .8rem; color: var(--muted, #6b7686); }
.co-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--surface, #fff); }
.co-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; color: var(--muted, #6b7686); font-size: .85rem; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.co-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; margin: 8px 0; }
.fu-table td.fu-actions, .fu-table th.fu-actions { text-align: right; white-space: nowrap; }
.fu-table .contact { display: inline-flex; gap: 6px; }
.fu-sub { display: block; font-size: .78rem; color: var(--muted, #6b7686); }
.auth-alt { text-align: center; margin-top: 14px; font-size: .9rem; }
@media (max-width: 860px) {
  .fu-table td.fu-actions { text-align: left; }
}

/* ===== Sign-in screens ===== */
body.auth{display:block;padding:0;background:#f3f1ec;min-height:100vh;font-size:15px}
.auth-wrap{display:grid;grid-template-columns:minmax(320px,46%) 1fr;min-height:100vh}
.auth-brand{background:#0f2744;color:#e9eef5;position:relative;display:flex;align-items:center;padding:48px clamp(28px,5vw,72px);overflow:hidden}
.auth-brand:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(232,196,110,.05) 0 1px,transparent 1px 14px)}
.auth-brand:after{content:"";position:absolute;inset:20px;border:1px solid rgba(232,196,110,.35);pointer-events:none}
.auth-brand-in{position:relative;max-width:440px}
.crest{width:64px;height:64px;display:grid;place-items:center;background:#14365f;border:1px solid #e8c46e;outline:3px solid #14365f;outline-offset:-6px;color:#e8c46e;font-family:Georgia,"Times New Roman",serif;font-size:1.9rem;font-weight:700;margin-bottom:22px;border-radius:0}
.crest.sm{width:34px;height:34px;font-size:1.1rem;margin:0;outline-offset:-4px}
.auth-brand h2{font-family:Georgia,"Times New Roman",serif;font-size:2.1rem;letter-spacing:.04em;margin:0 0 8px;color:#fff}
.auth-tag{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.1rem;color:#e8c46e;margin:0 0 30px}
.auth-points{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.auth-points li{display:flex;gap:14px;align-items:flex-start;color:#c3cfdf;font-size:.9rem;line-height:1.45}
.auth-points .ic{width:22px;height:22px;color:#e8c46e;margin-top:2px;flex:none}
.auth-points b{display:block;color:#fff;font-size:.95rem;margin-bottom:2px}
.auth-foot{margin:36px 0 0;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#7f90a8}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:32px 20px;background:#f3f1ec}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid #dcd7cb;border-top:4px solid #14365f;border-radius:3px;padding:34px 30px;box-shadow:0 12px 40px rgba(20,40,60,.1);text-align:left}
.auth-card.wide{max-width:600px}
.auth-card h1{font-family:Georgia,"Times New Roman",serif;font-size:1.65rem;color:#14365f;margin:0}
.auth-sub{margin:6px 0 0!important;font-size:.92rem}
.auth-card .stack{margin-top:22px;text-align:left}
.auth-mini{display:none;align-items:center;gap:10px;margin-bottom:18px;font-family:Georgia,serif;color:#14365f;font-size:1.1rem}
.auth-card .btn{border-radius:3px;background:#14365f;border-color:#14365f}
.auth-card .btn:hover{background:#1d4b82;border-color:#1d4b82}
.ifield>span{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#56636f;font-weight:700}
.ifield-box{display:flex;align-items:center;gap:8px;border:1px solid #c9c3b4;border-radius:3px;background:#fff;padding:0 4px 0 12px;min-height:46px}
.ifield-box:focus-within{border-color:#14365f;box-shadow:0 0 0 3px rgba(20,54,95,.14)}
.ifield-box>.ic{width:18px;height:18px;color:#7b8794;flex:none}
.ifield-box input{border:0!important;box-shadow:none!important;outline:none!important;background:transparent;padding:10px 4px;min-height:44px;flex:1;min-width:0;border-radius:0}
.pw-eye{border:0;background:transparent;color:#7b8794;cursor:pointer;padding:8px;display:inline-flex}
.pw-eye .ic{width:18px;height:18px}.pw-eye:hover{color:#14365f}
.auth-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.84rem;margin-top:-4px}
.auth-links{margin-top:22px;padding-top:16px;border-top:1px solid #dcd7cb;display:flex;gap:6px 16px;flex-wrap:wrap;justify-content:center;font-size:.88rem;color:#6a7581}
@media(max-width:860px){
  .auth-wrap{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-mini{display:flex}
  .auth-panel{align-items:flex-start;padding:22px 14px}
  .auth-card{padding:26px 20px}
}

/* ===== Sign-up / forgot / reset messages ===== */
.done-box{display:flex;gap:14px;align-items:flex-start;margin-top:22px;padding:16px;border:1px solid #dcd7cb;border-left:4px solid #1f6f4a;background:#f8faf8;border-radius:3px}
.done-box .ic{width:26px;height:26px;color:#1f6f4a;margin-top:2px;flex:none}
.done-box p{margin:0}
.hp-trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ===== Round 3: urgency badges, due stamps, follow-up table, update dialog ===== */
.ic{width:20px;height:20px;flex:none}
.urg{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 7px;border:1px solid currentColor;border-radius:2px;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;vertical-align:middle;background:#fff}
.urg .bars3{width:14px;height:12px}
.urg-hot{color:#a63d33;background:#f8e9e6}.urg-warm{color:#b7791f;background:#faf0dc}.urg-cold{color:#3f6d9a;background:#e6eef6}
.edge-hot{border-left:4px solid #a63d33!important}.edge-warm{border-left:4px solid #b7791f!important}.edge-cold{border-left:4px solid #3f6d9a!important}
.heat-pick{display:flex;gap:8px;flex-wrap:wrap}
.hp{flex:1;min-width:110px;cursor:pointer;position:relative}
.hp input{position:absolute;opacity:0;pointer-events:none}
.hp span{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 8px;border:1px solid #c9c3b4;border-radius:2px;background:#fff;color:#56636f;font-weight:700;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}
.hp .bars3{width:15px;height:13px}
.hp-hot input:checked+span{background:#a63d33;border-color:#a63d33;color:#fff}
.hp-warm input:checked+span{background:#b7791f;border-color:#b7791f;color:#fff}
.hp-cold input:checked+span{background:#3f6d9a;border-color:#3f6d9a;color:#fff}
.hp input:focus-visible+span{outline:2px solid #14365f;outline-offset:2px}
.chip-hot.on{background:#a63d33;border-color:#a63d33;color:#fff}.chip-warm.on{background:#b7791f;border-color:#b7791f;color:#fff}.chip-cold.on{background:#3f6d9a;border-color:#3f6d9a;color:#fff}

.due,.stamp{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid currentColor;border-radius:2px;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;background:#fff;vertical-align:middle}
.due .ic,.stamp .ic,.chip-btn .ic,.needs .ic,.meeting-box .ic{width:13px;height:13px}
.due-over{color:#a63d33;background:#f8e9e6}.due-today{color:#b7791f;background:#faf0dc}.due-soon{color:#3f6d9a;background:#e6eef6}.due-later{color:#6a7581;background:#f6f4ef;border-color:#c9c3b4}
.stamp-ok{color:#1f6f4a;background:#e6f2eb}.stamp-bad{color:#a63d33;background:#f8e9e6}.stamp-wait{color:#b7791f;background:#faf0dc}.stamp-info{color:#3f6d9a;background:#e6eef6}

.contact{display:inline-flex;gap:6px}
.chip-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid #14365f;border-radius:3px;background:#fff;color:#14365f;font-size:.76rem;font-weight:700;letter-spacing:.02em;cursor:pointer;font-family:inherit;line-height:1.2;text-decoration:none}
.chip-btn:hover{background:#14365f;color:#fff;text-decoration:none}
.chip-btn.wa{border-color:#1f7a4d;color:#1f7a4d}.chip-btn.wa:hover{background:#1f7a4d;color:#fff}
.chip-btn.solid{background:#14365f;color:#fff}.chip-btn.solid:hover{background:#1d4b82}

.fu-table td{vertical-align:middle}
.fu-table td.fu-actions,.fu-table th.fu-actions{text-align:right;white-space:nowrap;width:1%}
.fu-table .act{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end}
.step-cell{max-width:260px;font-size:.9rem}
.needs{display:inline-flex;align-items:flex-start;gap:6px;color:#b7791f;font-weight:700;font-size:.82rem}
@media(max-width:860px){.fu-table td.fu-actions{width:auto;text-align:left}.fu-table .act{flex-wrap:wrap;justify-content:flex-start}}

.meeting-box{border:1px solid #c9c3b4;border-left:4px solid #5b3f8c;border-radius:3px;padding:12px 14px;margin:0;background:#faf8f3}
.meeting-box legend{padding:0 8px;font-weight:700;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:#5b3f8c;display:flex;align-items:center;gap:6px}
.meeting-box legend small{font-weight:500;text-transform:none;letter-spacing:0;color:#6a7581}
dialog.dlg{border:1px solid #14365f;border-top:4px solid #14365f;border-radius:3px;padding:20px;width:min(640px,94vw);max-height:90vh;overflow:auto;color:inherit;background:#fff;box-shadow:0 20px 60px rgba(8,16,28,.35)}
dialog.dlg::backdrop{background:rgba(15,39,68,.55)}
.dlg-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dlg-h h2{font-size:1.15rem;margin:0}
.small-note{font-size:.85rem;margin:6px 0 12px}
@media print{.dlg{display:none}}

/* ===== Round 5: dashboard urgency colours, platform strip ===== */
.legend-hot{background:#a63d33!important}.legend-warm{background:#c68a1e!important}.legend-cold{background:#4a78a8!important}
.stage-fill.hot{background:#a63d33!important}.stage-fill.warm{background:#c68a1e!important}.stage-fill.cold{background:#4a78a8!important}
.cal-chip.done { opacity: .55; text-decoration: line-through; }
.cal-more { font-size: .7rem; }
.cal-day-title { margin: 16px 0 6px; font-size: .95rem; }
.cal-row { display: flex; align-items: center; gap: 12px; padding: 10px 0 10px 12px; border-bottom: 1px solid var(--line); border-left: 4px solid var(--c); flex-wrap: wrap; }
.cal-row.done { opacity: .65; }
.cal-row small { display: block; }
.cal-row .grow { flex: 1 1 220px; min-width: 0; }
.cal-notes { white-space: pre-line; color: var(--muted); margin-top: 4px; }
.cal-time { min-width: 48px; text-align: center; }
.cal-mini { margin: 0 0 10px; }
.cal-mini small { display: block; }
.calendar-main { width: 100%; min-width: 0; }
.calendar-summary-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; margin-top: 16px; }
.calendar-summary-grid > .card { min-width: 0; margin: 0; }
.wa-link { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; margin: 18px 0 8px; }
.wa-qr { background: #fff; padding: 10px; border-radius: 12px; border: 1px solid var(--line); }
.wa-qr img { display: block; width: 260px; height: 260px; }
.wa-link .stack { flex: 1 1 260px; }
#waPanel code { word-break: break-all; }
@media (max-width: 860px) {
  .cal-day { min-height: 64px; }
  .cal-chip b { display: none; }
  .cal-week { grid-template-columns: 1fr; }
  .calendar-summary-grid { grid-template-columns: 1fr; }
}

/* ---- companies / follow-up table (from your css-append.css) ---- */
.co-state { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: .72rem; font-weight: 700; letter-spacing: .03em; }
.co-active { background: #dff4e6; color: #17653b; }
.co-dormant { background: #fff1d6; color: #8a5a00; }
.co-disabled { background: #f9dcd9; color: #9a2a20; }
.co-pending { background: #dde8fb; color: #2a4d9b; }
.co-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.co-stat { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; background: var(--surface, #fff); }
.co-stat b { display: block; font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.co-stat span { font-size: .8rem; color: var(--muted, #6b7686); }
.co-row { border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 12px; background: var(--surface, #fff); }
.co-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.co-meta { display: flex; flex-wrap: wrap; gap: 14px; margin: 8px 0; color: var(--muted, #6b7686); font-size: .85rem; }
.co-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.co-mods { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px; margin: 8px 0; }
.fu-table td.fu-actions, .fu-table th.fu-actions { text-align: right; white-space: nowrap; }
.fu-table .contact { display: inline-flex; gap: 6px; }
.fu-sub { display: block; font-size: .78rem; color: var(--muted, #6b7686); }
.auth-alt { text-align: center; margin-top: 14px; font-size: .9rem; }
@media (max-width: 860px) {
  .fu-table td.fu-actions { text-align: left; }
}

/* ===== Sign-in screens ===== */
body.auth{display:block;padding:0;background:#f3f1ec;min-height:100vh;font-size:15px}
.auth-wrap{display:grid;grid-template-columns:minmax(320px,46%) 1fr;min-height:100vh}
.auth-brand{background:#0f2744;color:#e9eef5;position:relative;display:flex;align-items:center;padding:48px clamp(28px,5vw,72px);overflow:hidden}
.auth-brand:before{content:"";position:absolute;inset:0;background:repeating-linear-gradient(135deg,rgba(232,196,110,.05) 0 1px,transparent 1px 14px)}
.auth-brand:after{content:"";position:absolute;inset:20px;border:1px solid rgba(232,196,110,.35);pointer-events:none}
.auth-brand-in{position:relative;max-width:440px}
.crest{width:64px;height:64px;display:grid;place-items:center;background:#14365f;border:1px solid #e8c46e;outline:3px solid #14365f;outline-offset:-6px;color:#e8c46e;font-family:Georgia,"Times New Roman",serif;font-size:1.9rem;font-weight:700;margin-bottom:22px;border-radius:0}
.crest.sm{width:34px;height:34px;font-size:1.1rem;margin:0;outline-offset:-4px}
.auth-brand h2{font-family:Georgia,"Times New Roman",serif;font-size:2.1rem;letter-spacing:.04em;margin:0 0 8px;color:#fff}
.auth-tag{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:1.1rem;color:#e8c46e;margin:0 0 30px}
.auth-points{list-style:none;margin:0;padding:0;display:grid;gap:18px}
.auth-points li{display:flex;gap:14px;align-items:flex-start;color:#c3cfdf;font-size:.9rem;line-height:1.45}
.auth-points .ic{width:22px;height:22px;color:#e8c46e;margin-top:2px;flex:none}
.auth-points b{display:block;color:#fff;font-size:.95rem;margin-bottom:2px}
.auth-foot{margin:36px 0 0;font-size:.72rem;letter-spacing:.1em;text-transform:uppercase;color:#7f90a8}
.auth-panel{display:flex;align-items:center;justify-content:center;padding:32px 20px;background:#f3f1ec}
.auth-card{width:100%;max-width:420px;background:#fff;border:1px solid #dcd7cb;border-top:4px solid #14365f;border-radius:3px;padding:34px 30px;box-shadow:0 12px 40px rgba(20,40,60,.1);text-align:left}
.auth-card.wide{max-width:600px}
.auth-card h1{font-family:Georgia,"Times New Roman",serif;font-size:1.65rem;color:#14365f;margin:0}
.auth-sub{margin:6px 0 0!important;font-size:.92rem}
.auth-card .stack{margin-top:22px;text-align:left}
.auth-mini{display:none;align-items:center;gap:10px;margin-bottom:18px;font-family:Georgia,serif;color:#14365f;font-size:1.1rem}
.auth-card .btn{border-radius:3px;background:#14365f;border-color:#14365f}
.auth-card .btn:hover{background:#1d4b82;border-color:#1d4b82}
.ifield>span{font-size:.72rem;letter-spacing:.06em;text-transform:uppercase;color:#56636f;font-weight:700}
.ifield-box{display:flex;align-items:center;gap:8px;border:1px solid #c9c3b4;border-radius:3px;background:#fff;padding:0 4px 0 12px;min-height:46px}
.ifield-box:focus-within{border-color:#14365f;box-shadow:0 0 0 3px rgba(20,54,95,.14)}
.ifield-box>.ic{width:18px;height:18px;color:#7b8794;flex:none}
.ifield-box input{border:0!important;box-shadow:none!important;outline:none!important;background:transparent;padding:10px 4px;min-height:44px;flex:1;min-width:0;border-radius:0}
.pw-eye{border:0;background:transparent;color:#7b8794;cursor:pointer;padding:8px;display:inline-flex}
.pw-eye .ic{width:18px;height:18px}.pw-eye:hover{color:#14365f}
.auth-row{display:flex;justify-content:space-between;gap:12px;flex-wrap:wrap;font-size:.84rem;margin-top:-4px}
.auth-links{margin-top:22px;padding-top:16px;border-top:1px solid #dcd7cb;display:flex;gap:6px 16px;flex-wrap:wrap;justify-content:center;font-size:.88rem;color:#6a7581}
@media(max-width:860px){
  .auth-wrap{grid-template-columns:1fr}
  .auth-brand{display:none}
  .auth-mini{display:flex}
  .auth-panel{align-items:flex-start;padding:22px 14px}
  .auth-card{padding:26px 20px}
}

/* ===== Sign-up / forgot / reset messages ===== */
.done-box{display:flex;gap:14px;align-items:flex-start;margin-top:22px;padding:16px;border:1px solid #dcd7cb;border-left:4px solid #1f6f4a;background:#f8faf8;border-radius:3px}
.done-box .ic{width:26px;height:26px;color:#1f6f4a;margin-top:2px;flex:none}
.done-box p{margin:0}
.hp-trap{position:absolute!important;left:-9999px;width:1px;height:1px;overflow:hidden}

/* ===== Round 3: urgency badges, due stamps, follow-up table, update dialog ===== */
.ic{width:20px;height:20px;flex:none}
.urg{display:inline-flex;align-items:center;gap:6px;padding:3px 9px 3px 7px;border:1px solid currentColor;border-radius:2px;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;vertical-align:middle;background:#fff}
.urg .bars3{width:14px;height:12px}
.urg-hot{color:#a63d33;background:#f8e9e6}.urg-warm{color:#b7791f;background:#faf0dc}.urg-cold{color:#3f6d9a;background:#e6eef6}
.edge-hot{border-left:4px solid #a63d33!important}.edge-warm{border-left:4px solid #b7791f!important}.edge-cold{border-left:4px solid #3f6d9a!important}
.heat-pick{display:flex;gap:8px;flex-wrap:wrap}
.hp{flex:1;min-width:110px;cursor:pointer;position:relative}
.hp input{position:absolute;opacity:0;pointer-events:none}
.hp span{display:flex;align-items:center;justify-content:center;gap:8px;padding:10px 8px;border:1px solid #c9c3b4;border-radius:2px;background:#fff;color:#56636f;font-weight:700;font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}
.hp .bars3{width:15px;height:13px}
.hp-hot input:checked+span{background:#a63d33;border-color:#a63d33;color:#fff}
.hp-warm input:checked+span{background:#b7791f;border-color:#b7791f;color:#fff}
.hp-cold input:checked+span{background:#3f6d9a;border-color:#3f6d9a;color:#fff}
.hp input:focus-visible+span{outline:2px solid #14365f;outline-offset:2px}
.chip-hot.on{background:#a63d33;border-color:#a63d33;color:#fff}.chip-warm.on{background:#b7791f;border-color:#b7791f;color:#fff}.chip-cold.on{background:#3f6d9a;border-color:#3f6d9a;color:#fff}

.due,.stamp{display:inline-flex;align-items:center;gap:5px;padding:2px 8px;border:1px solid currentColor;border-radius:2px;font-size:.68rem;font-weight:800;letter-spacing:.06em;text-transform:uppercase;white-space:nowrap;background:#fff;vertical-align:middle}
.due .ic,.stamp .ic,.chip-btn .ic,.needs .ic,.meeting-box .ic{width:13px;height:13px}
.due-over{color:#a63d33;background:#f8e9e6}.due-today{color:#b7791f;background:#faf0dc}.due-soon{color:#3f6d9a;background:#e6eef6}.due-later{color:#6a7581;background:#f6f4ef;border-color:#c9c3b4}
.stamp-ok{color:#1f6f4a;background:#e6f2eb}.stamp-bad{color:#a63d33;background:#f8e9e6}.stamp-wait{color:#b7791f;background:#faf0dc}.stamp-info{color:#3f6d9a;background:#e6eef6}

.contact{display:inline-flex;gap:6px}
.chip-btn{display:inline-flex;align-items:center;gap:6px;padding:6px 11px;border:1px solid #14365f;border-radius:3px;background:#fff;color:#14365f;font-size:.76rem;font-weight:700;letter-spacing:.02em;cursor:pointer;font-family:inherit;line-height:1.2;text-decoration:none}
.chip-btn:hover{background:#14365f;color:#fff;text-decoration:none}
.chip-btn.wa{border-color:#1f7a4d;color:#1f7a4d}.chip-btn.wa:hover{background:#1f7a4d;color:#fff}
.chip-btn.solid{background:#14365f;color:#fff}.chip-btn.solid:hover{background:#1d4b82}

.fu-table td{vertical-align:middle}
.fu-table td.fu-actions,.fu-table th.fu-actions{text-align:right;white-space:nowrap;width:1%}
.fu-table .act{display:inline-flex;gap:6px;align-items:center;justify-content:flex-end}
.step-cell{max-width:260px;font-size:.9rem}
.needs{display:inline-flex;align-items:flex-start;gap:6px;color:#b7791f;font-weight:700;font-size:.82rem}
@media(max-width:860px){.fu-table td.fu-actions{width:auto;text-align:left}.fu-table .act{flex-wrap:wrap;justify-content:flex-start}}

.meeting-box{border:1px solid #c9c3b4;border-left:4px solid #5b3f8c;border-radius:3px;padding:12px 14px;margin:0;background:#faf8f3}
.meeting-box legend{padding:0 8px;font-weight:700;font-size:.78rem;letter-spacing:.06em;text-transform:uppercase;color:#5b3f8c;display:flex;align-items:center;gap:6px}
.meeting-box legend small{font-weight:500;text-transform:none;letter-spacing:0;color:#6a7581}
dialog.dlg{border:1px solid #14365f;border-top:4px solid #14365f;border-radius:3px;padding:20px;width:min(640px,94vw);max-height:90vh;overflow:auto;color:inherit;background:#fff;box-shadow:0 20px 60px rgba(8,16,28,.35)}
dialog.dlg::backdrop{background:rgba(15,39,68,.55)}
.dlg-h{display:flex;justify-content:space-between;align-items:center;gap:10px}
.dlg-h h2{font-size:1.15rem;margin:0}
.small-note{font-size:.85rem;margin:6px 0 12px}
@media print{.dlg{display:none}}

/* ===== Round 5: dashboard urgency colours, platform strip ===== */
.legend-hot{background:#a63d33!important}.legend-warm{background:#c68a1e!important}.legend-cold{background:#4a78a8!important}
.stage-fill.hot{background:#a63d33!important}.stage-fill.warm{background:#c68a1e!important}.stage-fill.cold{background:#4a78a8!important}
.platform-strip{display:flex;align-items:center;gap:12px;padding:12px 16px;margin-bottom:16px;border:1px solid #14365f;border-left:5px solid #e8c46e;background:#fff;color:inherit;border-radius:3px;text-decoration:none}
.platform-strip:hover{background:#faf8f3;text-decoration:none}
.platform-strip span{flex:1}.platform-strip .ic{color:#14365f}
.cal-chip.done{opacity:.55}

/* =====================================================================
   PREMIUM LAYER: navy, ivory and brass. Colours, type, depth and motion only;
   page layout is left as it was.
   ===================================================================== */
:root{
  color-scheme:light;
  --bg:#f4f2ed; --surface:#ffffff; --ink:#18232f; --muted:#667280; --line:#e0dbcf;
  --brand:#14365f; --brand-2:#1d4b82; --side:#0e2441; --side-ink:#c9d4e3; --accent:#b8892d; --gold:#e8c46e;
  --ok:#1f6f4a; --err:#a63d33; --warn:#b7791f;
  --serif:Georgia,"Times New Roman",Times,serif;
  --sans:Inter,"Segoe UI",system-ui,-apple-system,Roboto,"Helvetica Neue",Arial,sans-serif;
  --shadow-sm:0 1px 2px rgba(20,40,60,.06),0 1px 1px rgba(20,40,60,.04);
  --shadow-md:0 6px 20px rgba(20,40,60,.09);
  --shadow-lg:0 22px 60px rgba(14,36,65,.28);
}
html{background:#26303c}
body,body.app-page{font-family:var(--sans);color:var(--ink);-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility}
body.app-page{background:#26303c}
.app-page .shell{background:var(--bg);border-radius:10px;box-shadow:0 18px 60px rgba(6,14,26,.45);overflow:hidden}
h1,h2,.page-heading h1,.dash-card-head h2,.card-h h2{font-family:var(--serif);font-weight:700;letter-spacing:-.005em;color:var(--brand)}
.page-heading h1{font-size:1.65rem}
.page-date{color:var(--muted);font-size:.8rem;letter-spacing:.04em;text-transform:uppercase}
a{color:var(--brand-2)}

/* top bar */
.app-page .top{background:#fff;border-bottom:1px solid var(--line);box-shadow:0 1px 0 rgba(184,137,45,.35);position:relative;z-index:40;overflow:visible}
.app-page .top-brand-mobile .logo,.logo{background:var(--brand);color:var(--gold);font-family:var(--serif);font-weight:700;border:1px solid var(--gold);outline:2px solid var(--brand);outline-offset:-4px;border-radius:3px;box-shadow:none}
.app-page .top-brand-mobile strong{font-family:var(--serif);letter-spacing:.07em;color:var(--brand)}
.app-page .global-search{background:#f7f5f0;border:1px solid var(--line);border-radius:8px;transition:border-color .15s,box-shadow .15s}
.app-page .global-search:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(20,54,95,.12);background:#fff}
.app-page .icon-action,.app-page .menu-action,.app-page .top-add{border-radius:8px;width:36px;height:36px;display:inline-flex;align-items:center;justify-content:center;transition:background .15s,color .15s,transform .15s}
.app-page .icon-action,.app-page .menu-action{background:#f7f5f0;color:var(--brand);border:1px solid var(--line)}
.app-page .icon-action:hover,.app-page .menu-action:hover{background:var(--brand);color:#fff;border-color:var(--brand);text-decoration:none}
.app-page .top-add{background:var(--brand);color:#fff;border:1px solid var(--brand)}
.app-page .top-add:hover{background:var(--brand-2);transform:translateY(-1px)}
.app-page .top-user-avatar{background:var(--brand);color:var(--gold);font-family:var(--serif);border-radius:8px}

/* sidebar */
.app-page .side{background:linear-gradient(180deg,#0f2646 0%,#0b1d37 100%);border-right:1px solid #09182d}
.app-page .side nav a,.app-page .side-foot a{color:var(--side-ink);border-radius:8px;border-left:3px solid transparent;transition:background .15s,color .15s;font-size:.88rem}
.app-page .side nav a:hover,.app-page .side-foot a:hover{background:rgba(255,255,255,.07);color:#fff}
.app-page .side nav a.on{background:linear-gradient(90deg,rgba(232,196,110,.18),rgba(232,196,110,.04));color:#fff;border-left-color:var(--gold);box-shadow:none}
.app-page .side nav a.on .ic{color:var(--gold)}
.pill{background:var(--gold)!important;color:#10243d!important;border-radius:20px!important;font-weight:800;min-width:20px;text-align:center}

/* surfaces */
.card,.dash-card,.metric-card,.app-page .card,.app-page .dash-card{background:var(--surface);border:1px solid var(--line);border-radius:10px;box-shadow:var(--shadow-sm);transition:box-shadow .2s,transform .2s}
.dash-card:hover,.metric-card:hover{box-shadow:var(--shadow-md)}
.app-page .metric-card{color:var(--ink)}
.app-page .metric-coral .metric-value,.app-page .metric-purple .metric-value{color:var(--brand)}
.app-page .metric-blue{background:linear-gradient(135deg,#14365f,#1d4b82);border-color:#14365f;color:#fff}
.app-page .metric-blue .metric-top,.app-page .metric-blue .metric-foot{color:rgba(255,255,255,.88)}
.app-page .metric-blue .metric-value{color:var(--gold)}
.app-page .metric-icon{color:var(--accent)}.app-page .metric-blue .metric-icon{color:var(--gold)}
.item{border-radius:8px;border:1px solid var(--line);background:#fff;transition:box-shadow .15s,border-color .15s}
.item:hover{box-shadow:var(--shadow-sm);border-color:#cfc8b8}

/* buttons and forms */
.btn,.app-page .btn{background:linear-gradient(180deg,var(--brand-2),var(--brand));color:#fff;border:1px solid var(--brand);border-radius:8px;font-weight:600;letter-spacing:.01em;box-shadow:0 1px 2px rgba(14,36,65,.25);transition:transform .12s,box-shadow .15s,filter .15s}
.btn:hover{filter:brightness(1.08);box-shadow:0 4px 12px rgba(14,36,65,.28);transform:translateY(-1px)}
.btn:active{transform:translateY(0)}
.btn.ghost{background:#fff;color:var(--brand);border-color:#c9c3b4;box-shadow:none}.btn.ghost:hover{background:#f7f5f0;border-color:var(--brand)}
.btn.danger{background:linear-gradient(180deg,#b9473c,var(--err));border-color:var(--err)}
.btn.danger.ghost{background:#fff;color:var(--err);border-color:#dcb7b1}
input[type=text],input[type=tel],input[type=email],input[type=number],input[type=date],input[type=datetime-local],input[type=time],input[type=url],input[type=password],input[type=search],select,textarea{border:1px solid #cfc9ba;border-radius:8px;background:#fff;color:var(--ink);transition:border-color .15s,box-shadow .15s}
input:focus,select:focus,textarea:focus{outline:none;border-color:var(--brand);box-shadow:0 0 0 3px rgba(20,54,95,.14)}
.field>span{font-size:.7rem;letter-spacing:.07em;text-transform:uppercase;color:#56636f;font-weight:700}
.chip{border:1px solid #cfc9ba;border-radius:20px;background:#fff;font-weight:600;transition:all .15s}.chip:hover{border-color:var(--brand)}
.chip.on{background:var(--brand);border-color:var(--brand);color:#fff}
details.form-card>summary,details.policy>summary,details.quick>summary{cursor:pointer;font-weight:600;color:var(--brand)}

/* tables */
.tbl{border:1px solid var(--line);border-radius:10px;overflow:hidden;background:#fff;box-shadow:var(--shadow-sm)}
.tbl thead th{background:#f1eee6;color:#3b4753;font-size:.68rem;letter-spacing:.08em;text-transform:uppercase;border-bottom:2px solid var(--brand)}
.tbl tbody tr{transition:background .12s}.tbl tbody tr:hover{background:#faf8f3}
.tbl td{border-color:#eee9de}

/* buttons while saving */
.btn.is-loading,.chip-btn.is-loading{position:relative;color:transparent!important;pointer-events:none}
.btn.is-loading:after,.chip-btn.is-loading:after{content:"";position:absolute;left:50%;top:50%;width:16px;height:16px;margin:-8px 0 0 -8px;border:2px solid rgba(255,255,255,.55);border-top-color:#fff;border-radius:50%;animation:ad-spin .7s linear infinite}
.btn.ghost.is-loading:after{border-color:rgba(20,54,95,.3);border-top-color:var(--brand)}
@keyframes ad-spin{to{transform:rotate(360deg)}}

/* bell */
.bell{position:relative}
.bell-btn{position:relative}
.bell-dot{position:absolute;top:-6px;right:-6px;min-width:18px;height:18px;padding:0 4px;border-radius:9px;background:var(--err);color:#fff;font-size:.66rem;font-weight:800;display:grid;place-items:center;border:2px solid #fff;line-height:1}
.bell-panel{position:absolute;right:0;top:calc(100% + 10px);width:min(390px,92vw);background:#fff;border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:10px;box-shadow:var(--shadow-lg);z-index:80;overflow:hidden;animation:ad-pop .16s ease-out}
.bell-panel[hidden]{display:none}
.bell-head{display:flex;justify-content:space-between;align-items:baseline;padding:14px 16px 10px;border-bottom:1px solid #eee9de}
.bell-head b{font-family:var(--serif);font-size:1.05rem;color:var(--brand)}
.bell-head span{font-size:.75rem;color:var(--muted)}
.bell-item{display:flex;gap:12px;align-items:flex-start;padding:12px 16px;border-bottom:1px solid #f1ede3;color:var(--ink);text-decoration:none;transition:background .12s}
.bell-item:last-child{border-bottom:0}.bell-item:hover{background:#faf8f3;text-decoration:none}
.bell-ic{flex:none;width:34px;height:34px;border-radius:8px;display:grid;place-items:center;background:#eaf0f7;color:var(--brand-2)}
.bell-ic .ic{width:18px;height:18px}
.lv-bad .bell-ic{background:#f8e9e6;color:var(--err)}.lv-warn .bell-ic{background:#faf0dc;color:var(--warn)}
.bell-tx{display:flex;flex-direction:column;gap:2px;min-width:0}.bell-tx b{font-size:.88rem;line-height:1.3}.bell-tx small{color:var(--muted);font-size:.78rem}
.bell-empty{display:flex;flex-direction:column;align-items:center;gap:4px;padding:28px 20px;text-align:center;color:var(--muted)}
.bell-empty .ic{width:30px;height:30px;color:var(--ok)}.bell-empty b{color:var(--ink)}
@media(max-width:760px){.bell{position:static}.bell-panel{position:fixed;left:10px;right:10px;top:66px;width:auto}}

/* toasts: every success or error message pops up here */
.toasts{position:fixed;top:78px;right:20px;z-index:2000;display:flex;flex-direction:column;gap:12px;width:min(400px,calc(100vw - 24px));pointer-events:none}
.toast{pointer-events:auto;position:relative;display:flex;gap:12px;align-items:flex-start;padding:14px 14px 14px 16px;background:#fff;border:1px solid var(--line);border-left:5px solid var(--ok);border-radius:10px;box-shadow:var(--shadow-lg);overflow:hidden;animation:ad-in .28s cubic-bezier(.2,.8,.2,1)}
.toast.err{border-left-color:var(--err)}.toast.info{border-left-color:var(--brand-2)}
.toast.out{animation:ad-out .22s ease-in forwards}
.toast-ic{flex:none;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#e6f2eb;color:var(--ok)}
.toast.err .toast-ic{background:#f8e9e6;color:var(--err)}.toast.info .toast-ic{background:#e6eef6;color:var(--brand-2)}
.toast-ic .ic{width:18px;height:18px}
.toast-tx{flex:1;min-width:0}.toast-tx b{display:block;font-size:.92rem;margin-bottom:2px;color:var(--ink)}
.toast-tx span{display:block;font-size:.86rem;color:#46525f;line-height:1.4;word-wrap:break-word}
.toast-x{flex:none;border:0;background:transparent;color:#7b8794;cursor:pointer;padding:2px;border-radius:6px}.toast-x:hover{color:var(--ink);background:#f1ede3}
.toast-x .ic{width:16px;height:16px}
.toast-bar{position:absolute;left:0;bottom:0;height:3px;background:var(--ok);width:100%;transform-origin:left;animation:ad-bar linear forwards}
.toast.err .toast-bar{background:var(--err)}
@keyframes ad-in{from{opacity:0;transform:translateX(24px) scale(.97)}to{opacity:1;transform:none}}
@keyframes ad-out{to{opacity:0;transform:translateX(24px)}}
@keyframes ad-bar{to{transform:scaleX(0)}}
@keyframes ad-pop{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@media(max-width:760px){.toasts{top:70px;right:12px;left:12px;width:auto}}

/* confirm dialog (replaces the browser's grey box) */
dialog.cfm{border:0;border-radius:12px;padding:0;width:min(420px,92vw);box-shadow:var(--shadow-lg);color:var(--ink);overflow:hidden}
dialog.cfm::backdrop{background:rgba(14,36,65,.55);backdrop-filter:blur(2px)}
.cfm-body{padding:24px 24px 8px;display:flex;gap:14px;align-items:flex-start}
.cfm-ic{flex:none;width:42px;height:42px;border-radius:50%;display:grid;place-items:center;background:#faf0dc;color:var(--warn)}.cfm-ic .ic{width:22px;height:22px}
.cfm-body h3{margin:0 0 4px;font-family:var(--serif);font-size:1.15rem;color:var(--brand)}.cfm-body p{margin:0;color:#46525f;line-height:1.45}
.cfm-act{display:flex;justify-content:flex-end;gap:10px;padding:16px 24px 20px}
@media(prefers-reduced-motion:reduce){.toast,.bell-panel,.btn{animation:none!important;transition:none!important}}

/* =====================================================================
   URGENCY BADGES: icon chip + label (replaces the plain bars)
   ===================================================================== */
.urg{display:inline-flex;align-items:center;gap:0;padding:0 11px 0 0;height:26px;border:0;border-radius:20px;font-size:.68rem;font-weight:800;letter-spacing:.07em;text-transform:uppercase;white-space:nowrap;vertical-align:middle;position:relative;
  box-shadow:inset 0 0 0 1px var(--urg-line),0 1px 2px rgba(20,40,60,.08);background:linear-gradient(180deg,var(--urg-soft-a),var(--urg-soft-b));color:var(--urg-ink)}
.urg .urg-ic,.hp .urg-ic{flex:none;width:26px;height:26px;margin:0 8px 0 0;border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-style:normal;
  background:radial-gradient(circle at 32% 28%,var(--urg-hi),var(--urg-a) 55%,var(--urg-b));box-shadow:0 2px 5px var(--urg-glow),inset 0 1px 1px rgba(255,255,255,.55),inset 0 -2px 3px rgba(0,0,0,.18)}
.urg .urg-ic svg,.hp .urg-ic svg{width:14px;height:14px}
.urg-hot,.hp-hot{--urg-hi:#f3a49b;--urg-a:#d4574a;--urg-b:#9c342a;--urg-glow:rgba(166,61,51,.45);--urg-ink:#8c2c22;--urg-line:rgba(166,61,51,.35);--urg-soft-a:#fdf1ef;--urg-soft-b:#f7ddd9}
.urg-warm,.hp-warm{--urg-hi:#f6cf86;--urg-a:#e0a030;--urg-b:#b3731a;--urg-glow:rgba(183,121,31,.4);--urg-ink:#85550e;--urg-line:rgba(183,121,31,.35);--urg-soft-a:#fff8ea;--urg-soft-b:#f8e8c4}
.urg-cold,.hp-cold{--urg-hi:#9cc1e6;--urg-a:#5b8fc0;--urg-b:#3a6794;--urg-glow:rgba(63,109,154,.4);--urg-ink:#2f5a85;--urg-line:rgba(63,109,154,.35);--urg-soft-a:#f1f6fb;--urg-soft-b:#dce8f4}
.urg-hot .urg-ic{animation:urg-pulse 2.2s ease-out infinite}
@keyframes urg-pulse{0%{box-shadow:0 2px 5px var(--urg-glow),0 0 0 0 rgba(212,87,74,.55),inset 0 1px 1px rgba(255,255,255,.55),inset 0 -2px 3px rgba(0,0,0,.18)}
  70%,100%{box-shadow:0 2px 5px var(--urg-glow),0 0 0 9px rgba(212,87,74,0),inset 0 1px 1px rgba(255,255,255,.55),inset 0 -2px 3px rgba(0,0,0,.18)}}
/* the urgency picker in forms */
.hp span{display:flex;align-items:center;justify-content:center;gap:0;padding:8px 14px 8px 8px;border:1px solid #d6d0c2;border-radius:30px;background:#fff;color:#56636f;font-weight:700;font-size:.78rem;letter-spacing:.05em;text-transform:uppercase;transition:all .18s}
.hp:hover span{border-color:var(--urg-a);transform:translateY(-1px)}
.hp input:checked+span{background:linear-gradient(180deg,var(--urg-soft-a),var(--urg-soft-b));border-color:var(--urg-a);color:var(--urg-ink);box-shadow:0 0 0 3px var(--urg-line),0 4px 12px var(--urg-glow)}
.hp-hot input:checked+span,.hp-warm input:checked+span,.hp-cold input:checked+span{color:var(--urg-ink)}
.hp .urg-ic{width:24px;height:24px;margin-right:8px}
.hp-hot input:checked+span .urg-ic{animation:urg-pulse 2.2s ease-out infinite}

/* =====================================================================
   DASHBOARD: frosted glass over a softly moving backdrop, 3D charts
   ===================================================================== */
.page-dashboard .page-content{position:relative;isolation:isolate}
.page-dashboard .page-content:before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;
  background:radial-gradient(520px 320px at 6% 4%,rgba(29,75,130,.30),transparent 70%),
             radial-gradient(460px 340px at 96% 10%,rgba(232,196,110,.42),transparent 70%),
             radial-gradient(560px 400px at 62% 98%,rgba(166,61,51,.16),transparent 70%),
             radial-gradient(380px 300px at 20% 80%,rgba(63,109,154,.18),transparent 70%);
  background-size:140% 140%;animation:orbs 22s ease-in-out infinite alternate}
@keyframes orbs{0%{background-position:0% 0%}50%{background-position:60% 30%}100%{background-position:100% 70%}}

.page-dashboard .dash-card,.page-dashboard .metric-card{
  background:linear-gradient(135deg,rgba(255,255,255,.78),rgba(255,255,255,.46))!important;
  -webkit-backdrop-filter:blur(18px) saturate(160%);backdrop-filter:blur(18px) saturate(160%);
  border:1px solid rgba(255,255,255,.8)!important;
  box-shadow:0 10px 34px rgba(20,40,70,.10),inset 0 1px 0 rgba(255,255,255,.9),inset 0 -1px 0 rgba(20,40,70,.04)!important;
  position:relative;overflow:hidden;animation:glass-in .7s cubic-bezier(.2,.8,.2,1) both}
.page-dashboard .dash-card:hover,.page-dashboard .metric-card:hover{transform:translateY(-3px);box-shadow:0 18px 44px rgba(20,40,70,.16),inset 0 1px 0 #fff!important}
.page-dashboard .dash-card,.page-dashboard .metric-card{transition:transform .25s ease,box-shadow .25s ease}
.page-dashboard .metric-card:before{content:"";position:absolute;top:-60%;left:-40%;width:60%;height:220%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.55),transparent);transform:rotate(12deg);animation:sheen 7s ease-in-out infinite;pointer-events:none}
.page-dashboard .metric-card:nth-child(2):before{animation-delay:1.4s}.page-dashboard .metric-card:nth-child(3):before{animation-delay:2.8s}
@keyframes sheen{0%,70%{left:-60%}100%{left:130%}}
@keyframes glass-in{from{opacity:0;transform:translateY(18px) scale(.985)}to{opacity:1;transform:none}}
.page-dashboard .dashboard-metrics .metric-card:nth-child(1){animation-delay:.05s}.page-dashboard .dashboard-metrics .metric-card:nth-child(2){animation-delay:.14s}.page-dashboard .dashboard-metrics .metric-card:nth-child(3){animation-delay:.23s}
.page-dashboard .dashboard-grid .dash-card:nth-child(1){animation-delay:.2s}.page-dashboard .dashboard-grid .dash-card:nth-child(2){animation-delay:.28s}.page-dashboard .dashboard-grid .dash-card:nth-child(3){animation-delay:.36s}.page-dashboard .dashboard-grid .dash-card:nth-child(4){animation-delay:.44s}
/* the three headline cards get their own tint */
.page-dashboard .metric-coral{background:linear-gradient(135deg,rgba(255,244,241,.85),rgba(248,222,216,.5))!important}
.page-dashboard .metric-purple{background:linear-gradient(135deg,rgba(240,244,251,.85),rgba(214,226,243,.5))!important}
.page-dashboard .metric-blue{background:linear-gradient(135deg,rgba(20,54,95,.92),rgba(29,75,130,.78))!important;border-color:rgba(255,255,255,.25)!important;color:#fff}
.page-dashboard .metric-blue .metric-top,.page-dashboard .metric-blue .metric-foot{color:rgba(255,255,255,.88)}
.page-dashboard .metric-blue .metric-value{color:#f3d589;text-shadow:0 2px 12px rgba(232,196,110,.35)}
.page-dashboard .metric-value{font-family:var(--serif);font-weight:700;letter-spacing:-.01em}
.page-dashboard .metric-icon{width:38px;height:38px;border-radius:12px;display:inline-grid;place-items:center;background:rgba(255,255,255,.65);box-shadow:inset 0 1px 0 #fff,0 4px 10px rgba(20,40,70,.1);color:var(--brand)}
.page-dashboard .metric-blue .metric-icon{background:rgba(255,255,255,.14);color:#f3d589;box-shadow:inset 0 1px 0 rgba(255,255,255,.3)}

/* 3D donut: a stack of tilted rings gives the disc its thickness */
.source-chart{min-height:190px}
.donut3d{position:relative;width:190px;height:170px;flex:none;perspective:760px}
.donut3d-shadow{position:absolute;left:50%;bottom:8px;width:150px;height:28px;margin-left:-75px;background:radial-gradient(ellipse at center,rgba(20,40,70,.38),transparent 70%);filter:blur(5px);animation:d3-shadow 1.2s ease both}
.donut3d-stage{position:absolute;left:50%;top:50%;width:136px;height:136px;margin:-68px 0 0 -68px;transform-style:preserve-3d;transform:rotateX(58deg) rotateZ(0deg);animation:d3-in 1.3s cubic-bezier(.2,.8,.2,1) both;transition:transform .5s ease}
.donut3d:hover .donut3d-stage{transform:rotateX(46deg) rotateZ(24deg)}
.donut3d .ring{position:absolute;inset:0;border-radius:50%;background:var(--g);-webkit-mask:radial-gradient(circle closest-side,transparent 52%,#000 53%);mask:radial-gradient(circle closest-side,transparent 52%,#000 53%)}
.donut3d .r0{transform:translateZ(0);filter:brightness(.42)}.donut3d .r1{transform:translateZ(3px);filter:brightness(.48)}.donut3d .r2{transform:translateZ(6px);filter:brightness(.54)}
.donut3d .r3{transform:translateZ(9px);filter:brightness(.6)}.donut3d .r4{transform:translateZ(12px);filter:brightness(.66)}.donut3d .r5{transform:translateZ(15px);filter:brightness(.72)}
.donut3d .r6{transform:translateZ(18px);filter:brightness(.8)}.donut3d .r7{transform:translateZ(21px);filter:brightness(.9)}
.donut3d .r8{transform:translateZ(24px);filter:brightness(1.08) saturate(1.1)}
.donut3d-label{position:absolute;left:50%;top:46%;transform:translate(-50%,-50%);text-align:center;pointer-events:none;line-height:1.1}
.donut3d-label strong{display:block;font-family:var(--serif);font-size:1.7rem;color:var(--brand);text-shadow:0 2px 6px rgba(255,255,255,.9)}
.donut3d-label span{font-size:.62rem;letter-spacing:.1em;text-transform:uppercase;color:var(--muted);font-weight:700}
@keyframes d3-in{from{opacity:0;transform:rotateX(90deg) rotateZ(-140deg) scale(.6)}to{opacity:1;transform:rotateX(58deg) rotateZ(0deg) scale(1)}}
@keyframes d3-shadow{from{opacity:0;transform:scale(.4)}to{opacity:1;transform:none}}

/* 3D bars */
.stage-bars{gap:18px!important}
.stage-track{height:16px!important;border-radius:12px!important;background:linear-gradient(180deg,#dcd6c6,#ece8dc)!important;box-shadow:inset 0 3px 5px rgba(20,30,45,.22),0 1px 0 rgba(255,255,255,.9)!important;overflow:visible!important;position:relative}
.stage-fill{height:100%!important;border-radius:12px!important;position:relative;overflow:hidden;background-image:linear-gradient(180deg,rgba(255,255,255,.55) 0,rgba(255,255,255,0) 48%,rgba(0,0,0,.14) 100%)!important;
  box-shadow:0 4px 0 var(--bar-d),0 9px 14px var(--bar-g),inset 0 1px 0 rgba(255,255,255,.7)!important;transform-origin:left center}
.stage-fill:after{content:"";position:absolute;top:0;left:-40%;width:40%;height:100%;background:linear-gradient(100deg,transparent,rgba(255,255,255,.65),transparent);animation:bar-shine 3.4s ease-in-out infinite}
@keyframes bar-shine{0%,55%{left:-45%}100%{left:130%}}
.stage-fill.hot{background-color:#c9463a!important;--bar-d:#8c2c22;--bar-g:rgba(166,61,51,.45)}
.stage-fill.warm{background-color:#d9962a!important;--bar-d:#9c6414;--bar-g:rgba(183,121,31,.4)}
.stage-fill.cold{background-color:#4f86b8!important;--bar-d:#2f5a85;--bar-g:rgba(63,109,154,.4)}
.stage-label{font-weight:600}

/* activity chart: glowing lines */
.activity-plot svg path{filter:drop-shadow(0 6px 6px rgba(20,54,95,.25));stroke-linecap:round}

@media(prefers-reduced-motion:reduce){
  .page-dashboard .page-content:before,.page-dashboard .metric-card:before,.stage-fill:after,.urg-hot .urg-ic,.hp-hot input:checked+span .urg-ic,.donut3d-stage,.donut3d-shadow,.page-dashboard .dash-card,.page-dashboard .metric-card{animation:none!important}
}
/* =====================================================================
   ROUND 6: bigger whole pie that assembles on load + zooms per slice on hover,
   soft pill indicators (overdue/due badges, Call / WhatsApp, tags, legend dots)
   ===================================================================== */

/* ---------- pie chart ---------- */
.source-chart{min-height:236px!important;gap:30px!important;flex-wrap:wrap;padding:6px 0 4px!important}
.pie-wrap{flex:0 1 300px;min-width:210px;display:flex;flex-direction:column;align-items:center;gap:0}
.pie3d{display:block;width:100%;height:auto;overflow:visible}
.pie-total{margin-top:-2px;font-size:.78rem;color:var(--muted);text-align:center;letter-spacing:.02em}
.pie-total b{font-family:var(--serif);font-size:1.3rem;color:var(--brand);margin-right:4px}

.pin{animation:pie-in 1.05s cubic-bezier(.2,.85,.25,1.06) both}
@keyframes pie-in{
  0%{opacity:0;transform:translate(calc(var(--dx)*70px),calc(var(--dy)*46px)) rotate(-120deg) scale(.1)}
  55%{opacity:1}
  100%{opacity:1;transform:none}
}
.pie-shadow{transform-box:fill-box;transform-origin:50% 50%;animation:pie-shadow .9s ease-out .15s both}
@keyframes pie-shadow{from{opacity:0;transform:scale(.3)}to{opacity:1;transform:none}}

.pslice{cursor:pointer;outline:none;transition:transform .34s cubic-bezier(.2,.9,.3,1.25),filter .25s ease,opacity .25s ease}
.pslice:hover,.pslice:focus-visible,.pslice.is-on{
  transform:translate(calc(var(--dx)*10px),calc(var(--dy)*10px)) scale(1.09);
  filter:drop-shadow(0 10px 9px rgba(20,40,70,.4));
}
.pie3d:hover .pslice:not(:hover),.pie3d.has-on .pslice:not(.is-on){opacity:.58}
.pie3d.has-on .pslice.is-on{opacity:1}
.pcut{opacity:0;transition:opacity .25s ease}
.pslice:hover .pcut,.pslice:focus-visible .pcut,.pslice.is-on .pcut{opacity:1}
.pie-val{fill:#fff;font:800 17px var(--sans);text-anchor:middle;paint-order:stroke;stroke:rgba(0,0,0,.32);stroke-width:2.6px;stroke-linejoin:round;pointer-events:none}

/* ---------- legend: round glossy dots, pill rows that light up with the slice ---------- */
.chart-legend{gap:6px!important;min-width:150px!important}
.chart-legend>div[data-pie]{display:grid;grid-template-columns:14px 1fr auto;align-items:center;gap:10px;padding:7px 12px 7px 11px;border-radius:999px;font-size:.8rem!important;color:var(--ink);cursor:pointer;outline:none;transition:background .2s,box-shadow .2s,transform .2s}
.chart-legend>div[data-pie]:hover,.chart-legend>div[data-pie]:focus-visible,.chart-legend>div[data-pie].is-on{background:rgba(20,54,95,.07);box-shadow:inset 0 0 0 1px rgba(20,54,95,.14);transform:translateX(3px)}
.chart-legend>div[data-pie] b{min-width:26px;text-align:center;padding:1px 9px;border-radius:999px;background:#f1eee6;color:var(--brand)!important;font-weight:700!important}
i[class^="legend-"]{width:12px!important;height:12px!important;border-radius:50%!important;display:inline-block;
  background-image:radial-gradient(circle at 32% 28%,rgba(255,255,255,.7),rgba(255,255,255,0) 58%)!important;
  box-shadow:0 2px 5px rgba(20,40,60,.28),inset 0 -2px 3px rgba(0,0,0,.2)}
i.legend-hot{background-color:#d4574a!important}
i.legend-warm{background-color:#e0a030!important}
i.legend-cold{background-color:#5b8fc0!important}

/* ---------- due / overdue badges: soft pill with a round icon dot ---------- */
.due{--d-a:#f6f4ee;--d-b:#ebe7dc;--d-ink:#56636f;--d-line:rgba(86,99,111,.26);--d-dot:radial-gradient(circle at 32% 28%,#c3ccd5,#8a97a3 60%,#66727e);
  display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 12px 0 4px;border:0;border-radius:999px;
  font-size:.72rem;font-weight:700;letter-spacing:.01em;text-transform:none;white-space:nowrap;vertical-align:middle;
  background:linear-gradient(180deg,var(--d-a),var(--d-b));color:var(--d-ink);
  box-shadow:inset 0 0 0 1px var(--d-line),0 1px 2px rgba(20,40,60,.07)}
.due .due-ic{flex:none;width:18px;height:18px;border-radius:50%;display:inline-grid;place-items:center;font-style:normal;color:#fff;background:var(--d-dot);
  box-shadow:0 1px 3px rgba(20,40,60,.3),inset 0 1px 1px rgba(255,255,255,.5)}
.due .due-ic .ic{width:11px;height:11px}
.due-over{--d-a:#fdf1ef;--d-b:#f7ddd9;--d-ink:#8c2c22;--d-line:rgba(166,61,51,.32);--d-dot:radial-gradient(circle at 32% 28%,#f3a49b,#d4574a 55%,#9c342a)}
.due-today{--d-a:#fff8ea;--d-b:#f8e8c4;--d-ink:#85550e;--d-line:rgba(183,121,31,.34);--d-dot:radial-gradient(circle at 32% 28%,#f6cf86,#e0a030 55%,#b3731a)}
.due-soon{--d-a:#f1f6fb;--d-b:#dce8f4;--d-ink:#2f5a85;--d-line:rgba(63,109,154,.32);--d-dot:radial-gradient(circle at 32% 28%,#9cc1e6,#5b8fc0 55%,#3a6794)}
.due-over .due-ic{animation:due-pulse 2.2s ease-out infinite}
@keyframes due-pulse{0%{box-shadow:0 1px 3px rgba(20,40,60,.3),0 0 0 0 rgba(212,87,74,.5)}70%,100%{box-shadow:0 1px 3px rgba(20,40,60,.3),0 0 0 8px rgba(212,87,74,0)}}

/* status stamps (WhatsApp sent / queued / failed, e-mail sent) */
.stamp{--s-bg:#eaf0f7;--s-ink:#2f5a85;--s-line:rgba(63,109,154,.3);
  display:inline-flex;align-items:center;gap:6px;height:24px;padding:0 11px;border:0;border-radius:999px;font-size:.7rem;font-weight:700;letter-spacing:.02em;text-transform:none;
  background:var(--s-bg);color:var(--s-ink);box-shadow:inset 0 0 0 1px var(--s-line)}
.stamp-ok{--s-bg:#e6f2eb;--s-ink:#1f6f4a;--s-line:rgba(31,111,74,.3)}
.stamp-bad{--s-bg:#fbe9e6;--s-ink:#8c2c22;--s-line:rgba(166,61,51,.3)}
.stamp-wait{--s-bg:#faf0dc;--s-ink:#85550e;--s-line:rgba(183,121,31,.32)}

/* ---------- Call / WhatsApp / Update buttons: pills ---------- */
.contact{gap:8px}
.chip-btn{display:inline-flex;align-items:center;gap:7px;height:32px;padding:0 14px 0 11px;border:0;border-radius:999px;
  background:#eef3f9;color:var(--brand);box-shadow:inset 0 0 0 1px #cbd8e8,0 1px 2px rgba(20,40,60,.06);
  font:700 .76rem/1 var(--sans);letter-spacing:.01em;text-decoration:none;cursor:pointer;
  transition:transform .15s,box-shadow .18s,background .18s,color .18s}
.chip-btn .ic{width:15px;height:15px}
.chip-btn:hover{background:var(--brand);color:#fff;text-decoration:none;transform:translateY(-1px);box-shadow:0 5px 12px rgba(20,54,95,.28)}
.chip-btn.wa{background:#e9f6ef;color:#1b7a4a;box-shadow:inset 0 0 0 1px #bfe0cd,0 1px 2px rgba(20,40,60,.06)}
.chip-btn.wa:hover{background:linear-gradient(180deg,#2aa566,#1b7a4a);color:#fff;box-shadow:0 5px 12px rgba(27,122,74,.32)}
.chip-btn.solid{background:linear-gradient(180deg,var(--brand-2),var(--brand));color:#fff;box-shadow:0 1px 2px rgba(14,36,65,.3)}
.chip-btn.solid:hover{filter:brightness(1.1);box-shadow:0 5px 12px rgba(14,36,65,.32)}

/* ---------- small tags + pager ---------- */
.tag{border-radius:999px;padding:3px 11px;font-size:.7rem;letter-spacing:.02em;text-transform:none;font-weight:700}
.pagination-controls .btn{border-radius:999px;min-height:34px;padding:0 16px;font-size:.78rem}
.pagination-controls .btn:disabled{opacity:.45;pointer-events:none}

/* ---------- urgency edge: soft rounded accent instead of a hard square border ---------- */
.edge-hot{--edge:#d4574a}.edge-warm{--edge:#e0a030}.edge-cold{--edge:#5b8fc0}
.item.edge-hot,.item.edge-warm,.item.edge-cold{border-left:0!important;position:relative;padding-left:18px}
.dashboard-items .item.edge-hot,.dashboard-items .item.edge-warm,.dashboard-items .item.edge-cold{padding-left:16px}
.item.edge-hot:before,.item.edge-warm:before,.item.edge-cold:before{content:"";position:absolute;left:0;top:14px;bottom:14px;width:4px;border-radius:0 4px 4px 0;background:var(--edge)}
tr.edge-hot,tr.edge-warm,tr.edge-cold{border-left:0!important}
tr.edge-hot>td:first-child,tr.edge-warm>td:first-child,tr.edge-cold>td:first-child{padding-left:16px;background-image:linear-gradient(var(--edge),var(--edge));background-repeat:no-repeat;background-size:4px 56%;background-position:0 50%}

@media(max-width:620px){.source-chart{justify-content:center!important}.pie-wrap{flex-basis:260px}}
@media(prefers-reduced-motion:reduce){.pin,.pie-shadow,.due-over .due-ic{animation:none!important}.pslice,.pcut{transition:none}}

/* =====================================================================
   ROUND 7: working top-bar search + clickable dashboard
   ===================================================================== */
.global-search{position:relative}
.gs-panel{position:absolute;left:0;top:calc(100% + 10px);width:min(520px,92vw);max-height:min(70vh,520px);overflow:auto;background:#fff;border:1px solid var(--line);border-top:3px solid var(--brand);border-radius:14px;box-shadow:var(--shadow-lg);z-index:90;padding:6px 0 0;animation:ad-pop .16s ease-out}
.gs-panel[hidden]{display:none}
.gs-panel.loading{opacity:.7}
.gs-head{padding:10px 16px 5px;font-size:.66rem;font-weight:800;letter-spacing:.09em;text-transform:uppercase;color:var(--muted)}
.gs-item{display:flex;align-items:center;gap:12px;margin:0 6px;padding:8px 10px;border-radius:12px;color:var(--ink);text-decoration:none;transition:background .12s}
.gs-item:hover,.gs-item.on{background:rgba(20,54,95,.07);text-decoration:none}
.gs-ic{flex:none;width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-size:.8rem;font-weight:800;color:#fff;background:radial-gradient(circle at 32% 28%,#8fb0d6,#1d4b82 60%,#14365f);box-shadow:0 2px 5px rgba(20,54,95,.3),inset 0 1px 1px rgba(255,255,255,.45)}
.gs-t-section{background:radial-gradient(circle at 32% 28%,#f6d98f,#d9a63a 60%,#a97818)}
.gs-t-client{background:radial-gradient(circle at 32% 28%,#8fd2b0,#2a9d6a 60%,#1f6f4a)}
.gs-t-lead{background:radial-gradient(circle at 32% 28%,#f3a49b,#d4574a 60%,#9c342a)}
.gs-t-policy{background:radial-gradient(circle at 32% 28%,#c3a8e6,#7a52b8 60%,#5b3f8c)}
.gs-t-followup{background:radial-gradient(circle at 32% 28%,#f6cf86,#e0a030 60%,#b3731a)}
.gs-t-event{background:radial-gradient(circle at 32% 28%,#9ad7e6,#3a9bb8 60%,#2a7690)}
.gs-tx{display:flex;flex-direction:column;min-width:0;flex:1}
.gs-tx b{font-size:.88rem;font-weight:650;line-height:1.3;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-tx small{font-size:.74rem;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.gs-tx mark{background:rgba(232,196,110,.55);color:inherit;border-radius:4px;padding:0 1px}
.gs-go{flex:none;opacity:0;color:var(--brand-2);font-weight:700;transition:opacity .12s}
.gs-item.on .gs-go{opacity:1}
.gs-empty{display:flex;flex-direction:column;gap:3px;padding:22px 18px;text-align:center}
.gs-empty b{font-size:.9rem}.gs-empty small{color:var(--muted)}
.gs-foot{display:flex;gap:16px;justify-content:center;padding:9px 12px;margin-top:6px;border-top:1px solid #eee9de;background:#faf8f3;font-size:.68rem;color:var(--muted);position:sticky;bottom:0}
@media(max-width:760px){.gs-panel{position:fixed;left:10px;right:10px;top:64px;width:auto}}

/* a section the search just jumped to */
[id^="sec-"]{outline:3px solid transparent;outline-offset:4px;border-radius:12px;scroll-margin-top:16px;transition:outline-color .7s ease}
.gs-flash{outline-color:rgba(232,196,110,.95)!important}

/* clickable dashboard */
[data-href]{cursor:pointer}
.metric-card[data-href]:active,.dash-card[data-href]:active{transform:scale(.995)}
[data-href]:focus-visible{outline:2px solid var(--brand-2);outline-offset:3px;border-radius:12px}
.dash-card[data-href]:hover .dash-card-head h2{text-decoration:underline;text-decoration-color:var(--gold);text-underline-offset:4px;text-decoration-thickness:2px}
.stage-row[data-href]{padding:6px 10px;margin:-6px -10px;border-radius:12px;transition:background .18s,transform .18s}
.stage-row[data-href]:hover,.stage-row[data-href]:focus-visible{background:rgba(20,54,95,.06);transform:translateX(3px)}
.chart-legend.inline span[data-href]{padding:3px 10px;border-radius:999px;transition:background .18s}
.chart-legend.inline span[data-href]:hover{background:rgba(20,54,95,.07)}
.dashboard-items .item:hover,.page-dashboard li.item:hover{background:rgba(20,54,95,.04)}
.page-dashboard li.item{cursor:pointer}
@media(prefers-reduced-motion:reduce){.gs-panel{animation:none}[id^="sec-"],.stage-row[data-href]{transition:none}}






.page-dashboard .page-content:before{display:none}

.pri{display:inline-flex;align-items:center;gap:7px;height:26px;padding:0 10px 0 4px;border-radius:8px;background:var(--pri-bg);color:var(--pri-ink);font:600 .74rem/1 var(--font);letter-spacing:.01em;white-space:nowrap;vertical-align:middle}
.pri .pri-ic{flex:none;width:18px;height:18px;padding:3px;border-radius:6px;background:var(--pri-solid);color:#fff}
.pri-hot{--pri-ink:#9c2f26;--pri-bg:#fbe8e5;--pri-solid:#c4453a}
.pri-warm{--pri-ink:#80530a;--pri-bg:#fcf0d6;--pri-solid:#d9962a}
.pri-cold{--pri-ink:#2a5784;--pri-bg:#e5eef8;--pri-solid:#4a7fb3}
.pri-pick{display:flex;gap:8px;flex-wrap:wrap}
.pri-opt{position:relative;flex:1;min-width:128px;cursor:pointer}
.pri-opt input{position:absolute;opacity:0;pointer-events:none}
.pri-opt>span{display:flex;align-items:center;gap:9px;padding:9px 12px;border:1.5px solid var(--line);border-radius:12px;background:#fff;color:var(--ink);font-size:.86rem;font-weight:600;transition:border-color .15s,background .15s}
.pri-opt .pri-ic{flex:none;width:20px;height:20px;padding:3px;border-radius:7px;background:var(--pri-solid);color:#fff}
.pri-opt:hover>span{border-color:var(--pri-solid)}
.pri-opt input:checked+span{background:var(--pri-bg);border-color:var(--pri-solid);color:var(--pri-ink)}
.pri-opt input:focus-visible+span{outline:2px solid var(--brand);outline-offset:2px}

.dchip{display:inline-flex;align-items:center;gap:5px;height:26px;padding:0 10px 0 8px;border-radius:8px;background:var(--dc-bg);color:var(--dc-ink);font:600 .72rem/1 var(--font);white-space:nowrap;vertical-align:middle;font-variant-numeric:tabular-nums}
.dchip .ic{width:13px;height:13px}
.dchip-over{--dc-bg:#fbe8e5;--dc-ink:#9c2f26}
.dchip-today{--dc-bg:#fcf0d6;--dc-ink:#80530a}
.dchip-soon{--dc-bg:#e5eef8;--dc-ink:#2a5784}
.dchip-later{--dc-bg:#eeebe2;--dc-ink:#5d6670}
.stamp{height:26px;border-radius:8px;box-shadow:none}

.chip-btn{height:32px;padding:0 12px 0 10px;gap:6px;border:1px solid var(--line);border-radius:10px;background:#fff;color:var(--brand);box-shadow:none;font:600 .76rem/1 var(--font);transition:background .15s,border-color .15s,color .15s}
.chip-btn:hover{background:var(--brand);border-color:var(--brand);color:#fff;transform:none;box-shadow:none}
.chip-btn.wa{background:#fff;color:#1b7a4a;border-color:#cfe6d8;box-shadow:none}
.chip-btn.wa:hover{background:#1b7a4a;border-color:#1b7a4a;color:#fff;box-shadow:none}
.chip-btn.solid{background:var(--brand);color:#fff;border-color:var(--brand)}
.chip-btn.solid:hover{background:var(--brand-2);border-color:var(--brand-2);filter:none;box-shadow:none}

.dz{display:grid;gap:18px}
.dz-head{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.dz-head h1{font:700 2rem/1.1 var(--serif);letter-spacing:-.01em;color:var(--brand)}
.dz-head p{margin:6px 0 0;color:var(--muted);font-size:.92rem}
.dz-actions{display:flex;gap:10px;flex-wrap:wrap}
.dz-btn{display:inline-flex;align-items:center;gap:8px;height:42px;padding:0 20px;border:1.5px solid var(--brand);border-radius:999px;background:transparent;color:var(--brand);font:700 .86rem/1 var(--font);text-decoration:none;transition:background .15s,color .15s}
.dz-btn .ic{width:16px;height:16px}
.dz-btn:hover{background:var(--brand);color:#fff;text-decoration:none}
.dz-btn.solid{background:var(--brand);color:#fff}
.dz-btn.solid:hover{background:var(--brand-2);border-color:var(--brand-2)}

.dz-grid{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:16px}
.dz .s3{grid-column:span 3}
.dz .s4{grid-column:span 4}
.dz .s5{grid-column:span 5}
.dz .s7{grid-column:span 7}
.dz-card{min-width:0;padding:20px 22px;background:#fff;border:1px solid var(--line);border-radius:20px}
.dz-card[data-href]{cursor:pointer;transition:box-shadow .15s}
.dz-card[data-href]:hover{box-shadow:0 8px 24px rgba(20,54,95,.08)}
.dz-ch{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}
.dz-ch h2{font:700 1.08rem/1.2 var(--serif);color:var(--brand)}
.dz-ch p{margin:3px 0 0;font-size:.78rem;color:var(--muted)}
.dz-pill{display:inline-flex;align-items:center;flex:none;height:32px;padding:0 14px;border:1.5px solid var(--line);border-radius:999px;background:#fff;color:var(--brand);font:600 .76rem/1 var(--font);text-decoration:none;white-space:nowrap}
a.dz-pill:hover{border-color:var(--brand);text-decoration:none}

.dz-stat{display:flex;flex-direction:column;min-height:150px}
.dz-stat-top{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:.92rem;font-weight:600;color:var(--ink)}
.dz-go{display:grid;place-items:center;width:34px;height:34px;border:1.5px solid var(--line);border-radius:50%;background:#fff;color:var(--brand);transition:background .15s,color .15s}
.dz-go svg{width:15px;height:15px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round}
.dz-go:hover{background:var(--brand);color:#fff}
.dz-num{margin:auto 0 8px;padding-top:14px;font:700 3rem/1 var(--serif);letter-spacing:-.02em;color:var(--brand)}
.dz-note{display:flex;align-items:center;gap:8px;font-size:.78rem;color:var(--muted)}
.dz-tag{display:inline-flex;align-items:center;height:22px;padding:0 9px;border-radius:7px;background:#eef1f6;color:var(--brand);font-size:.72rem;font-weight:600}
.dz-hero{background:var(--brand);border-color:var(--brand);color:#fff}
.dz-hero .dz-stat-top{color:#fff}
.dz-hero .dz-go{border-color:transparent;background:rgba(255,255,255,.14);color:var(--gold)}
.dz-hero .dz-go:hover{background:var(--gold);color:var(--brand)}
.dz-hero .dz-num{color:var(--gold)}
.dz-hero .dz-note{color:#c3d0e2}
.dz-hero .dz-tag{background:rgba(255,255,255,.14);color:#fff}

.dz-list{margin:0;padding:0;list-style:none}
.dz-row{display:flex;align-items:center;gap:14px;padding:14px 0;border-top:1px solid #eeebe2;cursor:pointer}
.dz-row:first-child{padding-top:4px;border-top:0}
.dz-av{flex:none;display:grid;place-items:center;width:42px;height:42px;border-radius:50%;background:var(--av-bg);color:var(--av-ink);font:700 1rem var(--serif)}
.dz-av-hot{--av-bg:#fbe8e5;--av-ink:#9c2f26}
.dz-av-warm{--av-bg:#fcf0d6;--av-ink:#80530a}
.dz-av-cold{--av-bg:#e5eef8;--av-ink:#2a5784}
.dz-row-main{flex:1;min-width:0}
.dz-row-top{display:flex;align-items:center;flex-wrap:wrap;gap:4px 8px}
.dz-name{font-size:.98rem;font-weight:700;color:var(--ink);text-decoration:none}
.dz-name:hover{color:var(--brand-2);text-decoration:underline}
.dz-sub{margin-top:3px;font-size:.78rem;color:var(--muted)}
.dz-note-line{margin-top:2px;overflow:hidden;font-size:.82rem;color:var(--ink);text-overflow:ellipsis;white-space:nowrap}
.dz-row-side{flex:none;display:flex;flex-direction:column;align-items:flex-end;gap:8px}
.dz-row-side .contact{display:inline-flex;gap:6px}
.dz-date{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;width:48px;height:52px;border-radius:12px;background:#eef1f6;color:var(--brand)}
.dz-date b{font:700 1.25rem/1 var(--serif)}
.dz-date span{margin-top:3px;font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.dz-list .dz-row:first-child .dz-date{background:var(--brand);color:var(--gold)}
.dz-type{display:inline-block;margin-bottom:4px;padding:2px 8px;border-radius:6px;background:#eef1f6;color:var(--brand);font-size:.62rem;font-weight:700;letter-spacing:.08em;text-transform:uppercase}
.dz-type-birthday{background:#fcf0d6;color:#80530a}
.dz-type-bonus{background:#e3f1ea;color:#1f6f4a}
.dz-type-maturity{background:#e5eef8;color:#2a5784}
.dz-type-renewal{background:#efe8f6;color:#5b3d86}
.dz-rem .dz-row{flex-wrap:wrap;align-items:flex-start}
.dz-rem .dz-row-side{flex-direction:row;flex-wrap:wrap;align-items:center;width:100%}
.dz-rem .chip-btn span{display:none}
.dz-rem .chip-btn{width:32px;padding:0;justify-content:center}
.dz-empty{margin:8px 0 0;padding:18px;border:1.5px dashed var(--line);border-radius:14px;color:var(--muted);font-size:.86rem;text-align:center}

.dz .searchbar{display:flex;align-items:center;gap:10px;height:42px;margin:0 0 8px;padding:0 14px;border:0;border-radius:999px;background:#f4f2ec;box-shadow:none}
.dz .searchbar .ic{flex:none;width:17px;height:17px;color:var(--muted)}
.dz .searchbar input{flex:1;min-width:0;height:auto;padding:0!important;border:0!important;background:transparent!important;box-shadow:none!important;outline:none!important;font-size:.88rem}
.dz .pagination-controls{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-top:10px;padding-top:12px;border-top:1px solid #eeebe2}
.dz .pagination-info{font-size:.78rem;color:var(--muted)}
.dz .pagination-actions{display:flex;gap:8px}
.dz .pagination-actions .btn{height:32px;padding:0 14px;border-radius:999px;font-size:.76rem}

.dz-bars{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));align-items:end;gap:10px;height:216px}
.dz-bar{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:7px;min-width:0}
.dz-bar i{display:block;width:100%;max-width:42px;border:1.5px solid rgba(20,54,95,.3);border-radius:999px;background:repeating-linear-gradient(135deg,rgba(20,54,95,.2) 0 2px,transparent 2px 7px)}
.dz-bar b{font-size:.76rem;font-weight:700;color:var(--muted)}
.dz-bar em{font-size:.74rem;font-style:normal;font-weight:600;color:var(--muted)}
.dz-bar.is-top i{border-color:var(--gold);background:var(--gold)}
.dz-bar.is-top b{color:var(--brand)}
.dz-bar.is-today i{border-color:var(--brand);background:var(--brand)}
.dz-bar.is-today em{color:var(--brand)}

.dz-gauge-wrap{position:relative;max-width:360px;margin:6px auto 0}
.dz-gauge{display:block;width:100%;height:auto}
.dz-seg path{stroke:#fff;stroke-width:3;stroke-linejoin:round;transition:opacity .15s}
.dz-gauge:hover .dz-seg:not(:hover) path{opacity:.5}
.dz-gauge-c{position:absolute;left:0;right:0;bottom:2px;text-align:center;pointer-events:none}
.dz-gauge-c b{display:block;font:700 2.4rem/1 var(--serif);color:var(--brand)}
.dz-gauge-c span{font-size:.78rem;color:var(--muted)}
.dz-keys{display:flex;flex-wrap:wrap;justify-content:center;gap:8px 18px;margin-top:16px}
.dz-key{display:inline-flex;align-items:center;gap:7px;font-size:.8rem;color:var(--ink);text-decoration:none}
.dz-key:hover{text-decoration:none;color:var(--brand)}
.dz-key i{width:9px;height:9px;border-radius:50%}
.dz-key b{font-weight:700}

@media(max-width:1180px){.dz .s3{grid-column:span 6}.dz .s4,.dz .s5,.dz .s7{grid-column:span 12}}
@media(max-width:640px){.dz .s3{grid-column:span 12}.dz-card{padding:16px}.dz-row{flex-wrap:wrap}.dz-row-side{flex-direction:row;flex-wrap:wrap;width:100%}}

/* ---- AgentDesk logo branding ---- */
.top-brand-mobile{display:flex;align-items:center;flex:none;text-decoration:none}
.top-logo{display:block;height:40px;width:auto;max-width:120px;object-fit:contain}
.app-page .side>.brand{background:#fff;border-radius:12px;padding:6px 12px;border-bottom:0;justify-content:center}
.brand-logo{display:block;height:46px;width:auto;max-width:100%;object-fit:contain}
.auth-logo{background:#fff;border-radius:18px;padding:18px 26px;display:inline-block;margin-bottom:22px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.auth-logo img{display:block;height:84px;width:auto;max-width:100%}
.auth-mini img{display:block;height:46px;width:auto}
.list-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:14px}
.list-tools .searchbar{flex:1;min-width:220px;margin:0}
.list-tools .btn{white-space:nowrap}
@media(max-width:760px){.top-logo{height:34px}.list-tools .btn{width:100%}}
