:root {
  color-scheme: light;
  --side: #0d4f59;
  --side-dk: #093f47;
  --side-ink: #d5ecee;
  --teal: #14958f;
  --teal-dk: #0d7c77;
  --teal-lt: #e3f4f2;
  --bar: #3fbdb5;
  --page: #f3f6f8;
  --card: #ffffff;
  --ink: #0f2430;
  --body: #44596a;
  --muted: #6c7f8e;
  --line: #e4ebf0;
  --grid: #edf1f4;
  --axis: #cbd6de;
  --up: #15803d;
  --down: #c0392b;
  --good: #22c55e;
  --good-bg: #e7f8ee;
  --warn-ink: #7a5200;
  --warn-bg: #fff4d9;
  --a1: #5cc2ba;
  --a2: #2a9f97;
  --a3: #14837d;
  --a4: #0b5753;
  --c1: #14958f;
  --c2: #eb6834;
  --c3: #2a78d6;
  --c4: #eda100;
  --shadow: 0 1px 2px rgba(15, 36, 48, .04), 0 8px 24px -14px rgba(15, 36, 48, .18);
  --head: "Public Sans", "Source Sans 3", system-ui, sans-serif;
  --sans: "Source Sans 3", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--page); color: var(--ink); font-family: var(--sans); font-size: 16px; line-height: 1.5; }
h1, h2, h3 { font-family: var(--head); margin: 0; letter-spacing: -.01em; text-wrap: balance; }
p { margin: 0; }
a { color: var(--teal-dk); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
svg.i { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.shell { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; background: linear-gradient(90deg, var(--side) 250px, var(--page) 250px); }
.side { background: var(--side); color: var(--side-ink); display: flex; flex-direction: column; gap: 22px; padding: 22px 16px; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.logo { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; padding: 2px 6px; }
.logo .mk { width: 46px; height: 46px; border-radius: 8px; background: #fff; display: grid; place-items: center; flex: none; }
.logo .mk svg { width: 34px; height: 34px; }
.logo b { display: block; font-family: var(--head); font-size: 1.6rem; font-weight: 800; line-height: 1; }
.logo small { display: block; margin-top: 5px; font-size: .68rem; font-weight: 600; letter-spacing: .38em; text-transform: uppercase; color: var(--side-ink); }
.nav { display: grid; gap: 4px; }
.nav a { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border-radius: 10px; color: var(--side-ink); text-decoration: none; font-size: 1.02rem; font-weight: 500; }
.nav a:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav a[aria-current="page"] { background: var(--teal); color: #fff; font-weight: 600; box-shadow: 0 6px 18px -10px rgba(0, 0, 0, .5); }
.nav .grp { margin: 12px 14px 2px; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #8fc3c7; }
.feebox { margin-top: auto; border-radius: 14px; padding: 18px; color: #fff; background: linear-gradient(150deg, #11707a 0%, #0b5560 60%, #0f8a83 100%); border: 1px solid rgba(255, 255, 255, .14); }
.feebox .t { font-family: var(--head); font-weight: 700; font-size: 1.05rem; }
.feebox .r { font-family: var(--head); font-weight: 800; font-size: 2.5rem; line-height: 1.05; margin-top: 4px; letter-spacing: -.02em; }
.feebox .s { font-family: var(--head); font-weight: 600; font-size: 1.05rem; }
.feebox .n { margin-top: 10px; font-size: .88rem; color: var(--side-ink); }

.main { min-width: 0; display: flex; flex-direction: column; }
.bar { display: none; }
.content { padding: 26px clamp(16px, 2.4vw, 32px) 40px; display: grid; gap: 20px; align-content: start; }
.banner { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; background: var(--ink); color: #fff; border-radius: 12px; padding: 10px 16px; font-size: .95rem; }
.banner b { font-family: var(--head); letter-spacing: .08em; text-transform: uppercase; font-size: .72rem; background: #fff; color: var(--ink); border-radius: 4px; padding: 2px 7px; margin-right: 8px; }
.banner button, .banner a { background: #fff; color: var(--ink); border: 0; border-radius: 8px; padding: 6px 12px; font-weight: 700; cursor: pointer; text-decoration: none; }
.top { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: flex-start; justify-content: space-between; }
.top h1 { font-size: clamp(1.6rem, 2.8vw, 2.2rem); font-weight: 800; }
.top p { color: var(--body); margin-top: 2px; }
.tools { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 10px 16px; font-weight: 600; cursor: pointer; box-shadow: var(--shadow); text-decoration: none; white-space: nowrap; }
.btn:hover { border-color: var(--axis); }
.btn.pri { background: var(--teal); border-color: var(--teal); color: #fff; }
.btn.pri:hover { background: var(--teal-dk); }
.btn.sm { padding: 6px 12px; font-size: .9rem; box-shadow: none; }
.btn.danger { color: var(--down); }
.btn svg.i { width: 19px; height: 19px; }
.datepick { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card); border-radius: 10px; padding: 0 0 0 14px; box-shadow: var(--shadow); }
.datepick select { border: 0; background: transparent; padding: 10px 12px 10px 0; font-weight: 600; cursor: pointer; }
.who { position: relative; }
.avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--side); color: #fff; display: grid; place-items: center; border: 0; cursor: pointer; font-family: var(--head); font-weight: 700; }
.menu { position: absolute; right: 0; top: 54px; z-index: 20; background: var(--card); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 10px; min-width: 240px; display: grid; gap: 6px; }
.menu .u { padding: 6px 8px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; color: var(--body); }
.menu .u b { display: block; color: var(--ink); }
.menu button, .menu a { text-align: left; border: 0; background: none; padding: 8px; border-radius: 8px; cursor: pointer; text-decoration: none; color: var(--ink); }
.menu button:hover, .menu a:hover { background: var(--page); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 22px; min-width: 0; display: grid; gap: 16px; align-content: start; }
.card h2 { font-size: 1.3rem; font-weight: 700; display: flex; align-items: center; gap: 10px; }
.card h2 svg.i { color: var(--teal); width: 26px; height: 26px; }
.card .sub { color: var(--muted); font-size: .92rem; }
.cols { display: grid; gap: 20px; }
.stack { display: grid; gap: 20px; align-content: start; min-width: 0; }
.c3 { grid-template-columns: 1.55fr 1fr 1.3fr; }
.c3b { grid-template-columns: 1fr 1fr 1fr; }
.c2 { grid-template-columns: 1.3fr 1fr; }
.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); padding: 18px 20px; display: grid; gap: 6px; min-width: 0; }
.tile .lab { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1rem; }
.tile .lab svg.i { color: var(--teal); width: 26px; height: 26px; }
.tile .lab.alert svg.i { color: var(--down); }
.tile .v { font-family: var(--head); font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2.1rem); line-height: 1.15; }
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 700; font-size: .98rem; }
.delta.up { color: var(--up); }
.delta.down { color: var(--down); }
.delta.flat { color: var(--muted); font-weight: 600; }
.delta span { color: var(--muted); font-weight: 500; font-size: .9rem; margin-left: 4px; }
.delta svg { width: 14px; height: 14px; }

.chart { position: relative; }
.chart svg { display: block; width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--sans); font-size: 13px; fill: var(--body); }
.callout { position: absolute; transform: translate(-50%, calc(-100% - 12px)); background: var(--card); border: 1.5px solid var(--bar); border-radius: 8px; padding: 6px 12px; text-align: center; white-space: nowrap; box-shadow: var(--shadow); pointer-events: none; }
.callout b { display: block; font-family: var(--head); font-size: 1.05rem; }
.callout span { font-size: .84rem; color: var(--body); }
.callout::after { content: ""; position: absolute; left: 50%; bottom: -7px; width: 10px; height: 10px; background: var(--card); border-right: 1.5px solid var(--bar); border-bottom: 1.5px solid var(--bar); transform: translateX(-50%) rotate(45deg); }

.ring { display: grid; place-items: center; padding: 6px 0; }
.ring svg { width: min(190px, 100%); height: auto; }
.ring .rv { font-family: var(--head); font-weight: 800; font-size: 34px; fill: var(--ink); }
.ring .rl { font-size: 15px; fill: var(--body); }
.ring .goal { font-size: .9rem; color: var(--muted); text-align: center; margin-top: 4px; }

.target { display: grid; grid-template-columns: 26px 1fr auto; gap: 4px 12px; align-items: center; }
.target svg.i { color: var(--muted); }
.target .nm { font-weight: 600; }
.target .gv { font-family: var(--head); font-weight: 700; text-align: right; }
.target .track { grid-column: 2 / 3; height: 8px; background: var(--grid); border-radius: 100px; overflow: hidden; }
.target .track i { display: block; height: 100%; background: var(--good); border-radius: 100px; }
.target .pc { color: var(--body); font-size: .9rem; text-align: right; font-variant-numeric: tabular-nums; }
.targets { display: grid; gap: 18px; }
.target .of { grid-column: 2 / 4; font-size: .84rem; color: var(--muted); margin-top: -2px; }

.rows { display: grid; }
.rows .r { display: grid; grid-template-columns: 26px 1fr auto; gap: 12px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line); }
.rows .r:last-child { border-bottom: 0; }
.rows .r svg.i { color: var(--teal-dk); width: 20px; height: 20px; }
.rows .r b { font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; }
.todo .r svg.i { color: var(--good); }
.todo .r .d { display: block; font-size: .86rem; color: var(--muted); }

.rec { display: grid; gap: 10px; }
.rec .line { display: flex; justify-content: space-between; gap: 12px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; font-size: 1.05rem; }
.rec .line b { font-family: var(--head); font-weight: 700; font-size: 1.15rem; }
.rec .line.hi { background: var(--good-bg); border-color: transparent; }
.rec .line.hi span { display: inline-flex; gap: 8px; align-items: center; }
.rec .line.hi svg.i { color: var(--up); }
.rec .note { font-size: .86rem; color: var(--muted); }

.kpi .top2 { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.kpi .lab { font-weight: 600; }
.kpi .v { font-family: var(--head); font-weight: 700; font-size: 2rem; line-height: 1.1; }
.kpi .from { font-size: .9rem; color: var(--body); }
.kpi .goal { font-size: .84rem; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; font-weight: 700; border-radius: 100px; padding: 3px 10px; white-space: nowrap; }
.pill svg { width: 13px; height: 13px; }
.pill.good { background: var(--good-bg); color: var(--up); }
.pill.warn { background: var(--warn-bg); color: var(--warn-ink); }
.spark { width: 100%; height: 34px; display: block; }

.seg { display: flex; gap: 2px; height: 28px; }
.seg div { border-radius: 4px; display: flex; align-items: center; padding: 0 8px; color: #fff; font-family: var(--head); font-weight: 700; font-size: .8rem; white-space: nowrap; min-width: 0; }
.seg div.dk { color: #0b0b0b; }
.seg.thin { height: 10px; }
.seg.thin div { border-radius: 100px; padding: 0; }
.legend { display: grid; gap: 8px; }
.legend .it { display: grid; grid-template-columns: 12px 1fr auto auto; gap: 10px; align-items: center; font-size: .95rem; }
.legend .sw { width: 12px; height: 12px; border-radius: 3px; }
.legend .amt { font-family: var(--head); font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.legend .pct { color: var(--muted); font-variant-numeric: tabular-nums; min-width: 3.2em; text-align: right; }
.reasons { display: grid; gap: 12px; }
.reason { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.reason code { font-family: var(--head); font-weight: 700; font-size: .85rem; color: var(--teal-dk); margin-right: 6px; }
.reason .cnt { font-family: var(--head); font-weight: 700; }
.reason .bar { grid-column: 1 / -1; height: 8px; background: var(--grid); border-radius: 0 4px 4px 0; }
.reason .bar i { display: block; height: 100%; background: var(--teal); border-radius: 0 4px 4px 0; }

.tbl { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { padding: 10px; border-bottom: 1px solid var(--line); text-align: left; white-space: nowrap; }
th { font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
td.n, th.n { text-align: right; }
tbody tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 700; border-top: 1px solid var(--axis); border-bottom: 0; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--page); }
.tag { display: inline-block; font-size: .76rem; font-weight: 700; border-radius: 6px; padding: 2px 8px; background: var(--teal-lt); color: var(--teal-dk); }
.tag.off { background: var(--grid); color: var(--muted); }

.empty { text-align: center; padding: 48px 20px; color: var(--body); display: grid; gap: 10px; justify-items: center; }
.empty h2 { font-size: 1.3rem; }

form.grid { display: grid; gap: 20px; }
fieldset { border: 1px solid var(--line); border-radius: 14px; padding: 18px; margin: 0; display: grid; gap: 14px; min-width: 0; }
legend { font-family: var(--head); font-weight: 700; padding: 0 6px; }
.fields { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.field { display: grid; gap: 5px; min-width: 0; }
.field label, .lbl { font-size: .8rem; font-weight: 700; color: var(--body); }
.field input, .field select, .field textarea { width: 100%; border: 1px solid var(--axis); border-radius: 9px; padding: 9px 11px; background: var(--card); }
.field textarea { min-height: 80px; resize: vertical; }
.field .h { font-size: .8rem; color: var(--muted); }
.check { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; }
.rowsedit { display: grid; gap: 8px; }
.rowsedit .re { display: grid; gap: 8px; align-items: end; }
.rowsedit .re.p { grid-template-columns: 2fr 1fr 1fr auto; }
.rowsedit .re.d { grid-template-columns: 90px 2fr 90px auto; }
.rowsedit .re.t { grid-template-columns: 2fr 1.5fr auto; }
.rowsedit input { width: 100%; border: 1px solid var(--axis); border-radius: 9px; padding: 8px 10px; }
.x { border: 1px solid var(--line); background: var(--card); border-radius: 8px; width: 38px; height: 38px; cursor: pointer; color: var(--muted); }
.formbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; position: sticky; bottom: 0; background: var(--page); padding: 12px 0; border-top: 1px solid var(--line); }
.msg { font-weight: 600; font-size: .95rem; }
.msg.ok { color: var(--up); }
.msg.err { color: var(--down); }
.warnbox { background: var(--warn-bg); color: var(--warn-ink); border-radius: 10px; padding: 10px 14px; font-size: .92rem; }

.login { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login .art { background: linear-gradient(160deg, var(--side) 0%, var(--side-dk) 70%, #0f7c77 100%); color: #fff; padding: clamp(28px, 5vw, 64px); display: flex; flex-direction: column; justify-content: space-between; gap: 30px; }
.login .art h2 { font-size: clamp(1.6rem, 3vw, 2.4rem); font-weight: 800; max-width: 16ch; }
.login .art p { color: var(--side-ink); margin-top: 12px; max-width: 42ch; }
.login .art ul { margin: 22px 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--side-ink); }
.login .art li { display: flex; gap: 10px; align-items: center; }
.login .art li svg.i { color: #7ee0d8; }
.login .pane { display: grid; place-items: center; padding: 32px max(16px, env(safe-area-inset-right, 0px)) 32px max(16px, env(safe-area-inset-left, 0px)); }
.login form { width: min(400px, 100%); display: grid; gap: 16px; }
.login form h1 { font-size: 1.8rem; font-weight: 800; }
.login form p { color: var(--body); }
.login input { width: 100%; border: 1px solid var(--axis); border-radius: 10px; padding: 12px 14px; font-size: 1.05rem; background: var(--card); }
.login input.code { letter-spacing: .5em; font-family: var(--head); font-weight: 700; font-size: 1.5rem; text-align: center; }
.login .btn { justify-content: center; padding: 13px 16px; font-size: 1.02rem; }
.login .link { background: none; border: 0; color: var(--teal-dk); font-weight: 600; cursor: pointer; padding: 0; justify-self: start; }
.login .fine { font-size: .85rem; color: var(--muted); }

.tabbar { display: none; }

@media (max-width: 1200px) {
  .tiles { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .c3 { grid-template-columns: 1fr 1fr; }
  .c3 > :first-child { grid-column: 1 / -1; }
  .c3b { grid-template-columns: 1fr 1fr; }
  .c3b > :last-child { grid-column: 1 / -1; }
  .c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: 1fr; background: var(--page); }
  .side { display: none; position: fixed; inset: 0; z-index: 30; height: auto; padding-top: calc(22px + env(safe-area-inset-top, 0px)); padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
  .side.open { display: flex; }
  .bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; position: sticky; top: env(safe-area-inset-top, 0px); z-index: 10; background: var(--card); border-bottom: 1px solid var(--line); padding: 10px max(16px, env(safe-area-inset-right, 0px)) 10px max(16px, env(safe-area-inset-left, 0px)); }
  .bar .logo { color: var(--ink); padding: 0; }
  .bar .logo .mk { background: var(--side); width: 38px; height: 38px; }
  .bar .logo b { font-size: 1.35rem; }
  .bar .logo small { color: var(--teal-dk); }
  .burger { border: 0; background: none; width: 42px; height: 42px; display: grid; place-items: center; cursor: pointer; color: var(--ink); }
  .content { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  .tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; background: var(--card); border-top: 1px solid var(--line); padding: 6px max(8px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(8px, env(safe-area-inset-left, 0px)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; color: var(--muted); text-decoration: none; font-size: .76rem; font-weight: 600; }
  .tabbar a[aria-current="page"] { color: var(--teal); }
  .c3, .c3b, .c2 { grid-template-columns: 1fr; }
  .c3 > :first-child, .c3b > :last-child { grid-column: auto; }
  .login { grid-template-columns: 1fr; }
  .login .art { display: none; }
  .tools .who { display: none; }
}
@media (max-width: 620px) {
  .tiles { grid-template-columns: 1fr 1fr; }
  .delta span { display: none; }
  .tiles .tile:last-child { grid-column: 1 / -1; }
  .c4 { grid-template-columns: 1fr; }
  .tools { width: 100%; }
  .tools .btn.hide-sm { display: none; }
  .rowsedit .re.p, .rowsedit .re.d, .rowsedit .re.t { grid-template-columns: 1fr 1fr; }
  .rowsedit .re .x { justify-self: end; }
  .card { padding: 18px; }
}
@media print {
  .side, .bar, .tabbar, .tools, .banner button { display: none !important; }
  .shell { display: block; }
  body { background: #fff; }
  .card, .tile { box-shadow: none; break-inside: avoid; }
}
.drop { display: flex; gap: 14px; align-items: center; border: 2px dashed var(--axis); border-radius: 12px; padding: 18px; cursor: pointer; background: var(--card); color: var(--body); }
.drop svg.i { color: var(--teal); width: 28px; height: 28px; }
.drop b { color: var(--ink); display: block; }
.drop.on, .drop:hover { border-color: var(--teal); background: var(--teal-lt); }
.imports { display: grid; gap: 8px; }
.imp { display: grid; gap: 2px; border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 14px; font-size: .94rem; }
.imp.ok { border-left-color: var(--good); }
.imp.bad { border-left-color: var(--down); color: var(--down); }
.imp .f { font-size: .84rem; color: var(--muted); }
.imp .w { font-size: .88rem; color: var(--warn-ink); }
.tiles.t4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.link { background: none; border: 0; color: var(--teal-dk); font-weight: 600; cursor: pointer; padding: 0; font: inherit; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.danger { border-color: #f1c9c4; }
.tag.st-callback { background: var(--warn-bg); color: var(--warn-ink); }
.tag.st-interested, .tag.st-audit, .tag.st-client { background: var(--good-bg); color: var(--up); }
.tag.st-not_interested, .tag.st-bad_number, .tag.st-dnc { background: var(--grid); color: var(--muted); }
.pill.off { background: var(--grid); color: var(--muted); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.dial { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 20px; align-items: start; margin-top: 20px; }
.dial > .card { display: grid; gap: 12px; }
.leads { display: grid; gap: 8px; max-height: 640px; overflow-y: auto; padding-right: 2px; }
.lead { display: grid; gap: 4px; text-align: left; width: 100%; border: 1px solid var(--line); background: var(--card); border-radius: 12px; padding: 12px 14px; cursor: pointer; font: inherit; color: var(--ink); }
.lead:hover { border-color: var(--axis); }
.lead.on { border-color: var(--teal); box-shadow: 0 0 0 1px var(--teal) inset; background: var(--teal-lt); }
.lead .nm { font-weight: 700; }
.lead .meta { font-size: .9rem; color: var(--body); }
.callbox { display: grid; gap: 10px; border: 1px solid var(--line); border-radius: 14px; padding: 16px; background: var(--page); }
.cbtns { display: flex; flex-wrap: wrap; gap: 10px; }
.btn.call { background: var(--up); border-color: var(--up); color: #fff; font-size: 1.05rem; padding: 12px 22px; }
.btn.call:hover:not(:disabled) { background: #116a33; }
.btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cstate { display: flex; gap: 10px; align-items: center; font-size: 1.05rem; }
.cstate #ctime { margin-left: auto; font-variant-numeric: tabular-nums; font-weight: 700; }
.dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c4); }
.dot.live { background: var(--good); box-shadow: 0 0 0 4px var(--good-bg); }
.keypad { display: grid; grid-template-columns: repeat(3, 64px); gap: 8px; }
.keypad button { height: 48px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); font: inherit; font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.keypad button:active { background: var(--teal-lt); }
.hh { font-size: 1rem; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-block; border: 1px solid var(--line); border-radius: 100px; padding: 6px 14px; font-weight: 600; font-size: .92rem; background: var(--card); }
.chips input:checked + span { background: var(--teal); border-color: var(--teal); color: #fff; }
.chips input:focus-visible + span { outline: 2px solid var(--teal); outline-offset: 2px; }
.outcome { border: 2px solid var(--teal); border-radius: 14px; padding: 16px; }
.hist { display: grid; }
.hist .h { display: grid; grid-template-columns: 120px 1fr; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: .93rem; }
.hist .h:last-child { border-bottom: 0; }
.hist .w { color: var(--muted); }
.hist .d { display: block; color: var(--body); }
.filters, .bulk { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 12px 0; }
.filters select, .filters input, .bulk select { border: 1px solid var(--line); border-radius: 10px; padding: 7px 10px; font: inherit; background: var(--card); color: var(--ink); }
.filters input { min-width: 220px; }
td audio { height: 34px; max-width: 240px; }
@media (max-width: 900px) {
  .dial { grid-template-columns: 1fr; }
  .tiles.t4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .leads { max-height: 360px; }
}
.tiles.t4 .tile:last-child { grid-column: auto; }
#leadpane .formbar, #editor .formbar { position: static; background: none; border-top: 0; padding: 4px 0 0; }
.callbox .link { justify-self: start; }
