/* Outreach Console — calm neutral surfaces, green as a quiet accent. Dark + light themes. */
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #0c0d0d;
  --surface: rgba(255, 255, 255, .028);
  --surface-2: rgba(255, 255, 255, .05);
  --surface-3: rgba(255, 255, 255, .08);
  --solid: #151617;
  --overlay: rgba(19, 20, 21, .96);
  --border: rgba(255, 255, 255, .07);
  --border-2: rgba(255, 255, 255, .12);
  --text: #e3e5e4;
  --strong: #f5f6f5;
  --text-2: #adb2af;
  --muted: #7c827f;
  --accent: #52b98a;
  --accent-2: #3e9e72;
  --accent-ink: #06170f;
  --accent-soft: rgba(82, 185, 138, .11);
  --accent-line: rgba(82, 185, 138, .45);
  --orange: #e39a55;
  --orange-ink: #241303;
  --fu: #ab97ec;
  --fu-soft: rgba(171, 151, 236, .12);
  --bad: #e5807c;
  --bad-soft: rgba(229, 128, 124, .12);
  --warn: #d9b45e;
  --input: rgba(255, 255, 255, .03);
  --shadow: 0 10px 30px rgba(0, 0, 0, .45);
  --shadow-sm: 0 2px 10px rgba(0, 0, 0, .25);
  --sheen: linear-gradient(140deg, rgba(255, 255, 255, .05), transparent 45%);
  --blur: blur(16px);
}
[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f4f3;
  --surface: #ffffff;
  --surface-2: #f4f6f5;
  --surface-3: #eaedeb;
  --solid: #ffffff;
  --overlay: rgba(255, 255, 255, .98);
  --border: rgba(20, 30, 25, .08);
  --border-2: rgba(20, 30, 25, .15);
  --text: #222926;
  --strong: #101513;
  --text-2: #4a534f;
  --muted: #727b77;
  --accent: #1f9663;
  --accent-2: #187e53;
  --accent-ink: #ffffff;
  --accent-soft: rgba(31, 150, 99, .09);
  --accent-line: rgba(31, 150, 99, .45);
  --orange: #d47a26;
  --orange-ink: #ffffff;
  --fu: #6f52cf;
  --fu-soft: rgba(111, 82, 207, .09);
  --bad: #cc4741;
  --bad-soft: rgba(204, 71, 65, .09);
  --warn: #a97d10;
  --input: #ffffff;
  --shadow: 0 10px 28px rgba(20, 30, 25, .10);
  --shadow-sm: 0 1px 4px rgba(20, 30, 25, .06);
  --sheen: none;
  --blur: none;
}
:root { --r: 14px; --r-sm: 10px; --ease: cubic-bezier(.2, .7, .2, 1); --nav-w: 216px; }
html.nav-collapsed { --nav-w: 64px; }

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; font: 14px/1.55 Inter, system-ui, -apple-system, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; transition: background .2s, color .2s; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { color: var(--strong); font-weight: 600; letter-spacing: -.01em; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.nowrap { white-space: nowrap; }
code { background: var(--surface-2); border-radius: 6px; padding: 1px 6px; font-size: 12px; }
* { scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 6px; }

/* surfaces */
.card, .table-card, .kpi, .job, .scout, .panel, .profile {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); box-shadow: var(--shadow-sm);
}
.card { margin-bottom: 16px; }
.pad { padding: 20px 22px; }
.card h2 { margin: 0 0 6px; font-size: 17px; }
.card h3 { margin: 0 0 12px; font-size: 14px; }

/* layout */
.app { display: grid; grid-template-columns: var(--nav-w) minmax(0, 1fr); gap: 22px; padding: 18px 22px 18px 14px; min-height: 100vh; transition: grid-template-columns .22s var(--ease); }
.main { min-width: 0; }

/* left menu — part of the page, no card, no scroll */
.nav { position: sticky; top: 18px; align-self: start; display: flex; flex-direction: column; gap: 1px; padding: 0 4px; }
.brand { display: flex; gap: 10px; align-items: center; padding: 2px 8px 14px; }
.brand .logo { flex: none; width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: var(--accent-ink); background: var(--accent); font-size: 14px; }
.brand b { display: block; font-size: 15px; color: var(--strong); line-height: 1.2; }
.brand small { color: var(--muted); font-size: 12px; }
.who { display: flex; flex-direction: column; gap: 4px; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 0 8px 6px; }
.nav-group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding: 12px 10px 4px; }
.nav-item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 10px; border: 0; background: none; color: var(--text-2); font: inherit; border-radius: var(--r-sm); cursor: pointer; text-align: left; transition: background .15s, color .15s; white-space: nowrap; }
.nav-item:hover { background: var(--surface-2); color: var(--text); }
.nav-item.on { background: var(--surface-3); color: var(--strong); font-weight: 500; }
.nav-item.on .ic { color: var(--accent); }
.nav-item .ic { flex: none; width: 20px; text-align: center; color: var(--muted); }
.cnt { margin-left: auto; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.cnt .hot, .fab-badge { background: var(--bad); color: #fff; border-radius: 999px; padding: 0 6px; font-weight: 700; font-size: 11px; }
.cnt .live { color: var(--accent); font-weight: 600; }
.nav-foot { margin-top: 14px; padding-top: 10px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 6px; }
.nav-foot p { margin: 0 10px; font-size: 12px; color: var(--muted); }
.theme { display: flex; gap: 2px; margin: 2px 8px; background: var(--surface-2); border-radius: 9px; padding: 2px; width: fit-content; }
.theme button { border: 0; background: none; color: var(--muted); width: 32px; height: 26px; border-radius: 7px; cursor: pointer; font: inherit; }
.theme button.on { background: var(--solid); color: var(--strong); box-shadow: var(--shadow-sm); }
.nav-item.collapse .ic { transition: transform .2s; }
html.nav-collapsed .nav .lbl, html.nav-collapsed .nav .cnt, html.nav-collapsed .nav-group, html.nav-collapsed .nav-foot p { display: none; }
html.nav-collapsed .nav-item { justify-content: center; padding: 9px 0; }
html.nav-collapsed .brand { justify-content: center; padding-inline: 0; }
html.nav-collapsed .theme { flex-direction: column; margin-inline: auto; }
html.nav-collapsed .nav-item.collapse .ic { transform: rotate(180deg); }

/* top bar */
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 2px 0 10px; }
.title { flex: 1; min-width: 200px; }
.top h1 { margin: 0; font-size: 23px; }
.sub { margin: 2px 0 0; color: var(--muted); }
.actions { display: flex; gap: 8px; flex-wrap: wrap; }
.nav-toggle { display: none; }
.auto { color: var(--muted); font-size: 13px; margin: 0 0 14px; }
.auto b { color: var(--text-2); }
.auto .warn { color: var(--warn); }
.dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-right: 8px; vertical-align: 1px; }
.dot.paused { background: var(--warn); }
.dot.off { background: var(--muted); }
.job { padding: 10px 14px; margin-bottom: 14px; }
.job progress { width: 200px; vertical-align: middle; margin-left: 8px; accent-color: var(--accent); }

/* controls */
.btn { display: inline-flex; align-items: center; gap: 6px; background: var(--accent); color: var(--accent-ink); border: 1px solid transparent; border-radius: var(--r-sm); padding: 8px 15px; font: inherit; font-weight: 600; cursor: pointer; transition: filter .15s, background .15s, transform .1s; white-space: nowrap; }
.btn:hover { filter: brightness(1.07); text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border-2); }
.btn.ghost:hover { background: var(--surface-2); filter: none; }
.btn.small { padding: 5px 11px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: wait; }
.icon-btn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text-2); font-size: 18px; cursor: pointer; display: grid; place-items: center; transition: background .15s; }
.icon-btn.sm { width: 28px; height: 28px; font-size: 16px; border-radius: 8px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }
.link { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 0 4px; }
.link.danger { color: var(--bad); }
input, select, textarea { font: inherit; color: var(--text); background: var(--input); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 7px 10px; transition: border-color .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent-line); }
select option { background: var(--solid); color: var(--text); }
textarea { width: 100%; resize: vertical; }

/* tabs & chips */
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 12px; overflow-x: auto; }
.tabs button { background: none; border: 0; border-bottom: 2px solid transparent; color: var(--muted); font: inherit; font-size: 15px; font-weight: 600; padding: 8px 14px; cursor: pointer; white-space: nowrap; transition: color .15s, border-color .15s; }
.tabs button:hover { color: var(--text-2); }
.tabs button[aria-selected="true"] { color: var(--strong); border-bottom-color: var(--accent); }
.tabs small, .cats small { opacity: .65; font-weight: 500; margin-left: 2px; }
.cats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.cats button { background: none; color: var(--text-2); border: 1px solid var(--border-2); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: 13px; cursor: pointer; transition: all .15s; }
.cats button:hover { background: var(--surface-2); color: var(--text); }
.cats button[aria-pressed="true"] { background: var(--surface-3); border-color: var(--accent-line); color: var(--strong); }

/* KPIs */
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: 12px; margin-bottom: 18px; }
.kpi { position: relative; overflow: hidden; padding: 14px 16px; }
.kpi::before { content: ""; position: absolute; inset: 0; background: var(--sheen); pointer-events: none; }
.kpi b { display: block; font-size: 25px; font-weight: 700; color: var(--strong); font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi span { font-size: 12px; color: var(--muted); }
.kpi small { display: block; margin-top: 2px; font-size: 12px; color: var(--text-2); }
.kpi.k-warn b { color: var(--bad); }

/* toolbar, view menu */
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.find { display: flex; gap: 8px; flex-wrap: wrap; }
.find input[type=search] { min-width: 210px; }
.viewpick { position: relative; }
.vp-btn { display: inline-flex; align-items: center; gap: 8px; font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-2); border-radius: var(--r-sm); padding: 7px 12px; cursor: pointer; }
.vp-btn:hover { background: var(--surface-2); }
.vp-btn small { color: var(--muted); }
.vp-btn .caret { color: var(--muted); font-size: 11px; transition: transform .15s; }
.viewpick.open .caret { transform: rotate(180deg); }
.vp-menu { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; min-width: 230px; padding: 6px; background: var(--overlay); border: 1px solid var(--border-2); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: blur(14px); display: none; }
.viewpick.open .vp-menu { display: block; animation: rise .15s var(--ease); }
.vp-menu button { display: flex; justify-content: space-between; gap: 16px; width: 100%; padding: 7px 10px; border: 0; border-radius: 8px; background: none; color: var(--text-2); font: inherit; cursor: pointer; text-align: left; }
.vp-menu button:hover { background: var(--surface-2); color: var(--text); }
.vp-menu button[aria-selected="true"] { background: var(--accent-soft); color: var(--strong); }
.vp-menu small { color: var(--muted); font-variant-numeric: tabular-nums; }

/* table */
.table-card { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; padding: 11px 14px; border-bottom: 1px solid var(--border); }
td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: var(--surface-2); }
tr:last-child td { border-bottom: 0; }
.biz { min-width: 250px; }
.name { background: none; border: 0; padding: 0; font: inherit; font-weight: 600; font-size: 14.5px; color: var(--strong); cursor: pointer; text-align: left; }
.name:hover { color: var(--accent); }
.meta { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-top: 3px; font-size: 12.5px; }
.gbp { font-size: 12px; }
.star { color: #e3b555; }
.pill { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--surface-2); color: var(--text-2); }
.pill.fresh { background: var(--accent-soft); color: var(--accent); }
.pill.has { color: var(--muted); }
.pill.live { background: var(--accent-soft); color: var(--accent); }
.empty { padding: 40px; text-align: center; color: var(--muted); margin: 0; }
.pager { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 14px; border-top: 1px solid var(--border); font-size: 13px; }
.pager:empty { display: none; }
.pg-size { display: flex; align-items: center; gap: 6px; color: var(--muted); }
.pg-size select { padding: 4px 8px; }
.pg-nums { display: flex; gap: 3px; margin-left: auto; }
.pg-nums button { min-width: 30px; height: 30px; padding: 0 8px; border-radius: 8px; border: 1px solid transparent; background: none; color: var(--text-2); font: inherit; cursor: pointer; font-variant-numeric: tabular-nums; }
.pg-nums button:hover:not(:disabled) { background: var(--surface-2); }
.pg-nums button.on { background: var(--surface-3); border-color: var(--border-2); color: var(--strong); font-weight: 600; }
.pg-nums button:disabled { opacity: .35; cursor: default; }
.pg-gap { padding: 0 4px; color: var(--muted); align-self: center; }

/* click to call */
.dial { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; background: none; color: var(--text); border: 1px solid var(--border-2); border-radius: 999px; padding: 4px 12px 4px 4px; font: inherit; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; transition: all .15s var(--ease); }
.dial .ph { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-size: 12px; }
.dial:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.dial.big { font-size: 15.5px; padding: 6px 16px 6px 6px; }
.dial.big .ph { width: 32px; height: 32px; font-size: 15px; }

/* outreach buttons */
.oc-row { display: flex; flex-wrap: wrap; gap: 5px; min-width: 220px; }
.oc { font: inherit; font-size: 12px; font-weight: 600; border-radius: 8px; padding: 4px 9px; cursor: pointer; border: 1px solid var(--border-2); background: none; color: var(--text-2); white-space: nowrap; transition: all .15s var(--ease); }
.oc:hover { background: var(--surface-2); color: var(--text); }
.oc.call.on { background: var(--orange); border-color: var(--orange); color: var(--orange-ink); }
.oc.appt.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.oc.fu.on { background: var(--fu-soft); border-color: var(--fu); color: var(--fu); }
.oc.fu.late { background: var(--bad-soft); border-color: var(--bad); color: var(--bad); }
.oc.log { color: var(--muted); }
select.status { padding: 4px 8px; font-size: 13px; }
select.s-contacted { border-color: var(--orange); }
select.s-follow-up { border-color: var(--fu); }
select.s-appointment, select.s-sold { border-color: var(--accent-line); }
select.s-not-interested { border-color: var(--bad); }

/* floating outreach button + panel */
.fab { position: fixed; right: 22px; bottom: 22px; z-index: 28; width: 50px; height: 50px; border-radius: 50%; border: 1px solid var(--border-2); background: var(--solid); color: var(--accent); font-size: 20px; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s var(--ease), background .15s; }
.fab:hover { transform: translateY(-2px); }
body.panel-open .fab { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.fab-badge { position: absolute; top: -3px; right: -3px; min-width: 18px; line-height: 18px; text-align: center; padding: 0 5px; }
.panel { position: fixed; right: 22px; bottom: 82px; z-index: 27; width: 320px; max-height: min(640px, calc(100vh - 110px)); overflow-y: auto; padding: 14px; background: var(--overlay); box-shadow: var(--shadow); opacity: 0; pointer-events: none; transform: translateY(10px) scale(.98); transform-origin: bottom right; transition: opacity .18s, transform .2s var(--ease); }
body.panel-open .panel { opacity: 1; pointer-events: auto; transform: none; }
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.panel-head h2 { margin: 0; font-size: 15px; }
.range { display: flex; gap: 2px; background: var(--surface-2); border-radius: 9px; padding: 2px; margin-bottom: 8px; }
.range button { flex: 1; border: 0; background: none; color: var(--muted); font: inherit; font-size: 12px; padding: 4px 0; border-radius: 7px; cursor: pointer; }
.range button.on { background: var(--solid); color: var(--strong); box-shadow: var(--shadow-sm); }
.range-dates { display: flex; gap: 6px; align-items: center; margin-bottom: 8px; }
.range-dates input { flex: 1; min-width: 0; padding: 4px 6px; font-size: 12px; }
.mini-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 4px; }
.mini-kpis div { background: var(--surface-2); border-radius: 9px; padding: 6px 4px; text-align: center; }
.mini-kpis b { display: block; font-size: 17px; color: var(--strong); font-variant-numeric: tabular-nums; }
.mini-kpis span { font-size: 10.5px; color: var(--muted); }
.sec { border-top: 1px solid var(--border); }
.sec summary { list-style: none; display: flex; justify-content: space-between; align-items: center; cursor: pointer; padding: 8px 2px; font-size: 11.5px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); font-weight: 600; user-select: none; }
.sec summary::-webkit-details-marker { display: none; }
.sec summary span::before { content: "▸"; display: inline-block; width: 14px; transition: transform .2s; }
.sec[open] summary span::before { transform: rotate(90deg); }
.sec summary small { background: var(--surface-2); color: var(--text-2); border-radius: 999px; padding: 0 7px; font-size: 11px; }
.sec summary small.hot { background: var(--bad); color: #fff; }
.sec ul { list-style: none; margin: 0 0 6px; padding: 0; }
.sec li { display: flex; align-items: center; gap: 4px; border-radius: 8px; transition: background .15s; }
.sec li:hover { background: var(--surface-2); }
.pi { flex: 1; min-width: 0; background: none; border: 0; border-left: 2px solid transparent; text-align: left; padding: 6px 8px; font: inherit; color: var(--text); cursor: pointer; display: flex; flex-direction: column; }
.pi b { font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pi .muted, .pi-sub { font-size: 11.5px; }
.pi-sub { color: var(--text-2); }
li.late .pi { border-left-color: var(--bad); } .late { color: var(--bad); }
li.due .pi { border-left-color: var(--orange); }
li.appt .pi { border-left-color: var(--accent); }
.pi-call { flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border-2); background: none; cursor: pointer; margin-right: 4px; font-size: 12px; }
.pi-call:hover { border-color: var(--accent-line); background: var(--accent-soft); }
.empty-s { font-size: 12.5px; margin: 0 2px 8px; }

/* lead profile drawer */
.scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .4); z-index: 30; opacity: 0; transition: opacity .2s; }
body.profile-open .scrim { opacity: 1; }
.profile { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(540px, calc(100vw - 24px)); z-index: 31; display: flex; flex-direction: column; overflow: hidden; background: var(--overlay); box-shadow: var(--shadow); transform: translateX(calc(100% + 24px)); transition: transform .25s var(--ease); }
body.profile-open .profile { transform: none; }
.p-head { display: flex; justify-content: space-between; gap: 12px; padding: 18px 20px 10px; }
.p-head h2 { margin: 0 0 4px; font-size: 20px; }
.p-head p { margin: 0; color: var(--muted); font-size: 13px; }
.p-info { padding: 4px 20px 14px; border-bottom: 1px solid var(--border); display: flex; flex-direction: column; gap: 10px; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; font-size: 13px; color: var(--text-2); }
.stats-mini { display: flex; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.stats-mini b { color: var(--text); }
.t-appt { color: var(--accent); } .t-fu { color: var(--fu); }
.convo { flex: 1; overflow-y: auto; padding: 14px 20px; display: flex; flex-direction: column; gap: 10px; }
.day { align-self: center; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 2px 10px; margin: 6px 0 2px; }
.msg { display: flex; gap: 10px; align-items: flex-start; animation: rise .25s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(6px); } }
.msg.sys { justify-content: center; font-size: 12.5px; color: var(--muted); gap: 8px; }
.av { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: var(--accent-ink); background: var(--accent); }
.bubble { flex: 1; min-width: 0; background: var(--surface-2); border: 1px solid var(--border); border-radius: 4px 14px 14px 14px; padding: 9px 12px; }
.bh { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.bh time { margin-left: auto; font-size: 12px; color: var(--muted); }
.bubble p { margin: 6px 0 0; color: var(--text); }
.when { margin-top: 4px; font-size: 13px; color: var(--text-2); }
.chip { font-size: 11.5px; font-weight: 600; padding: 1px 8px; border-radius: 999px; background: var(--surface-3); color: var(--text-2); }
.k-call .chip { color: var(--orange); } .k-call .bubble { border-left: 2px solid var(--orange); }
.k-good .chip { color: var(--accent); } .k-good .bubble { border-left: 2px solid var(--accent); }
.k-appt .chip { color: var(--accent); } .k-appt .bubble { border-left: 2px solid var(--accent); }
.k-fu .chip { color: var(--fu); } .k-fu .bubble { border-left: 2px solid var(--fu); }
.k-bad .chip { color: var(--bad); } .k-bad .bubble { border-left: 2px solid var(--bad); }
.del { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; opacity: 0; transition: opacity .15s; }
.bubble:hover .del { opacity: 1; } .del:hover { color: var(--bad); }
.composer { border-top: 1px solid var(--border); padding: 12px 20px 14px; display: flex; flex-direction: column; gap: 10px; background: var(--surface); }
.nudge { font-size: 13px; color: var(--orange); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-btn { font: inherit; font-size: 12.5px; font-weight: 600; border-radius: 999px; padding: 4px 11px; cursor: pointer; border: 1px solid var(--border-2); background: none; color: var(--text-2); transition: all .15s; }
.chip-btn:hover { background: var(--surface-2); color: var(--text); }
.chip-btn.on { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.chip-btn.k-fu.on { background: var(--fu-soft); border-color: var(--fu); color: var(--fu); }
.chip-btn.k-bad:hover { color: var(--bad); border-color: var(--bad); }
.dt { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--muted); }
.cur { font-size: 13px; color: var(--text-2); }
.send { display: flex; gap: 8px; align-items: flex-end; }
.send textarea, .send input { flex: 1; }
.as { font-size: 12px; color: var(--muted); }

/* activity, scouts, settings */
.row-between { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.row-between.wrap { flex-wrap: wrap; margin: 12px 0 6px; }
.feed { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.feed .day { align-self: flex-start; }
.feed-item { display: grid; grid-template-columns: 32px 1fr auto; gap: 12px; text-align: left; background: none; border: 0; border-radius: var(--r-sm); padding: 10px; font: inherit; color: var(--text); cursor: pointer; transition: background .15s; }
.feed-item:hover { background: var(--surface-2); }
.feed-item time { font-size: 12px; color: var(--muted); }
.feed-item .note { color: var(--text-2); margin-top: 2px; }
.seg { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; color: var(--muted); font-size: 13px; }
.seg button { font: inherit; font-size: 13px; padding: 5px 12px; border-radius: 999px; border: 1px solid var(--border-2); background: none; color: var(--text-2); cursor: pointer; }
.seg button:hover { background: var(--surface-2); }
.seg button.on { background: var(--surface-3); border-color: var(--accent-line); color: var(--strong); }
.toggle { display: flex; align-items: center; gap: 10px; margin: 12px 0 4px; font-size: 13.5px; cursor: pointer; }
.toggle input { accent-color: var(--accent); width: 16px; height: 16px; }
.scouts { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.scout { padding: 16px; display: flex; flex-direction: column; gap: 8px; }
.scout.live { border-color: var(--accent-line); }
.bar { height: 6px; border-radius: 6px; background: var(--surface-3); overflow: hidden; }
.bar span { display: block; height: 100%; background: var(--accent); transition: width .6s var(--ease); }
.dialers { display: grid; gap: 8px; margin-top: 12px; }
.dialer { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--border); border-radius: var(--r-sm); cursor: pointer; transition: all .15s; }
.dialer:hover { background: var(--surface-2); }
.dialer.on { border-color: var(--accent-line); background: var(--accent-soft); }
.dialer input { margin-top: 3px; accent-color: var(--accent); }
.dialer b { display: block; }
.dialer span { font-size: 13px; }
.inline { display: flex; align-items: center; gap: 10px; margin-top: 12px; font-size: 13px; color: var(--muted); }
.inline input { width: 70px; }
.team { list-style: none; padding: 0; margin: 10px 0; display: flex; flex-direction: column; gap: 6px; }
.team li { display: flex; align-items: center; gap: 10px; }
.team .link { margin-left: auto; }

/* analytics */
.a-filters { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.a-top { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 14px; margin-bottom: 14px; }
.goal { display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; margin: 0; }
.goal h3 { margin: 0 0 6px; font-size: 12px; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.ring { width: 128px; height: 128px; }
.ring-bg { fill: none; stroke: var(--surface-3); stroke-width: 10; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 10; stroke-linecap: round; transition: stroke-dasharray .6s var(--ease); }
.ring-n { fill: var(--strong); font-size: 28px; font-weight: 700; text-anchor: middle; font-family: Inter, system-ui, sans-serif; }
.ring-g { fill: var(--muted); font-size: 12px; text-anchor: middle; font-family: Inter, system-ui, sans-serif; }
.a-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.a-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-bottom: 14px; }
.a-grid .card { margin: 0; }
.chart-bars { display: flex; align-items: flex-end; gap: 3px; height: 150px; padding-top: 6px; border-bottom: 1px solid var(--border); }
.cb { flex: 1; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; position: relative; }
.cb span { width: 100%; max-width: 22px; background: var(--accent); opacity: .8; border-radius: 4px 4px 0 0; transition: height .5s var(--ease), opacity .15s; }
.cb.out span { opacity: .28; }
.cb.today span { opacity: 1; }
.cb:hover span { opacity: 1; }
.cb em { position: absolute; bottom: -20px; font-style: normal; font-size: 10.5px; color: var(--muted); white-space: nowrap; }
.chart-axis { display: none; }
.a-grid .card:first-child { padding-bottom: 30px; }
.hbars { display: flex; flex-direction: column; gap: 9px; }
.hb { display: grid; grid-template-columns: 130px 1fr 40px 44px; align-items: center; gap: 10px; font-size: 13px; }
.hb-l { color: var(--text-2); }
.hb-t { height: 9px; border-radius: 5px; background: var(--surface-3); overflow: hidden; }
.hb-t span { display: block; height: 100%; background: var(--accent); border-radius: 0 4px 4px 0; opacity: .85; transition: width .5s var(--ease); }
.hb b { text-align: right; font-variant-numeric: tabular-nums; }
.hb-p { font-size: 12px; text-align: right; }
table.mini { width: 100%; font-size: 13px; }
table.mini th, table.mini td { padding: 8px 10px; font-variant-numeric: tabular-nums; }
table.mini tr.me td { background: var(--accent-soft); }
.av.sm { width: 24px; height: 24px; font-size: 10px; display: inline-grid; margin-right: 8px; vertical-align: middle; }
.tip { position: fixed; z-index: 60; transform: translate(-50%, -100%); background: var(--overlay); border: 1px solid var(--border-2); color: var(--text); font-size: 12.5px; padding: 6px 10px; border-radius: 8px; pointer-events: none; opacity: 0; transition: opacity .12s; white-space: nowrap; box-shadow: var(--shadow); }
.tip.show { opacity: 1; }

/* toast */
.toast { position: fixed; bottom: 22px; left: 50%; transform: translate(-50%, 90px); background: var(--overlay); border: 1px solid var(--border-2); color: var(--text); padding: 10px 18px; border-radius: 12px; box-shadow: var(--shadow); transition: transform .25s var(--ease); z-index: 50; max-width: calc(100% - 32px); }
.toast.show { transform: translate(-50%, 0); }
.toast.bad { border-color: var(--bad); color: var(--bad); }

/* responsive */
@media (max-width: 1100px) { .a-top, .a-grid { grid-template-columns: minmax(0, 1fr); } .a-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .app { grid-template-columns: minmax(0, 1fr); padding: 12px; }
  .nav { position: fixed; top: 0; left: 0; bottom: 0; width: 240px; z-index: 26; padding: 16px 10px; background: var(--solid); box-shadow: var(--shadow); transform: translateX(-105%); transition: transform .22s var(--ease); overflow-y: auto; }
  body.nav-open .nav { transform: none; }
  html.nav-collapsed .nav .lbl, html.nav-collapsed .nav .cnt, html.nav-collapsed .nav-group { display: revert; }
  .nav-toggle { display: grid; }
  .find input[type=search] { min-width: 0; width: 100%; }
  .panel { right: 12px; left: 12px; width: auto; bottom: 76px; }
  .fab { right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }

/* ---- payments ---- */
dialog { border: 1px solid var(--border-2); border-radius: var(--r); padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--overlay); color: var(--text); box-shadow: var(--shadow); }
dialog::backdrop { background: rgba(0, 0, 0, .45); }
.dlg { padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.dlg header { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.dlg h2 { margin: 0; font-size: 18px; }
.dlg header p { margin: 2px 0 0; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.dlg label input, .dlg label select, .dlg label textarea { font-weight: 400; }
.dlg-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.p-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.k-pay .chip { color: var(--accent); } .k-pay .bubble { border-left: 2px solid var(--accent); }
.paid-amt { color: var(--accent); font-weight: 600; }
.stripe-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.grow { flex: 1; }
.steps { margin: 8px 0 12px; padding-left: 18px; display: flex; flex-direction: column; gap: 4px; }
.sub-h { margin: 18px 0 8px; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.pkgs { display: flex; flex-direction: column; border: 1px solid var(--border); border-radius: var(--r-sm); margin-bottom: 10px; }
.pkg { display: grid; grid-template-columns: 1fr auto auto auto; gap: 14px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--border); }
.pkg:last-child { border-bottom: 0; }
.pkg div { display: flex; flex-direction: column; min-width: 0; }
.pkg div span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pkg .price { font-variant-numeric: tabular-nums; }
.newpkg summary { list-style: none; display: inline-flex; cursor: pointer; }
.newpkg summary::-webkit-details-marker { display: none; }
.pkg-form { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding: 14px; border: 1px solid var(--border); border-radius: var(--r-sm); background: var(--surface-2); }
.pkg-form label { display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: var(--text-2); }
.pk-amounts { display: flex; gap: 10px; flex-wrap: wrap; }
.pk-amounts label { flex: 1; min-width: 130px; }
.pk-amounts [hidden] { display: none; }
.dialer.soon { opacity: .65; cursor: default; }
.dialer.soon:hover { background: none; }
.dlg [hidden], .pkg-form [hidden] { display: none !important; }
