:root {
  --bg: #f4f6fa; --surface: #ffffff; --surface-2: #f8fafc; --ink: #0f1b2d; --muted: #5b6b82;
  --line: #e2e8f0; --brand: #0d8a6f; --brand-2: #0a6e59; --brand-soft: #e3f5ef;
  --navy: #0b1f3a; --navy-2: #12305a; --amber: #b45309; --amber-soft: #fff4e0;
  --red: #c62828; --red-soft: #fdecec; --blue: #1d5fd6; --blue-soft: #e7efff;
  --shadow: 0 1px 2px rgba(15,27,45,.06), 0 6px 24px rgba(15,27,45,.06);
  --r: 14px; --font: "Heebo", "Segoe UI", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0b1220; --surface: #121b2d; --surface-2: #0f1727; --ink: #e8eef8; --muted: #93a3bb;
    --line: #22304a; --brand: #23b892; --brand-2: #1c9c7b; --brand-soft: #0f3a30;
    --navy: #060d1a; --navy-2: #0e1d36; --amber: #f5b14a; --amber-soft: #3a2a10;
    --red: #ff7a7a; --red-soft: #3a1515; --blue: #7fa8ff; --blue-soft: #14244a;
    --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0b1220; --surface: #121b2d; --surface-2: #0f1727; --ink: #e8eef8; --muted: #93a3bb;
  --line: #22304a; --brand: #23b892; --brand-2: #1c9c7b; --brand-soft: #0f3a30;
  --navy: #060d1a; --navy-2: #0e1d36; --amber: #f5b14a; --amber-soft: #3a2a10;
  --red: #ff7a7a; --red-soft: #3a1515; --blue: #7fa8ff; --blue-soft: #14244a;
  --shadow: 0 1px 2px rgba(0,0,0,.3), 0 6px 24px rgba(0,0,0,.25); color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.55; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 6px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; top: -40px; right: 8px; background: var(--ink); color: var(--bg); padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { top: 8px; }

/* shell */
.shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.side { background: var(--navy); color: #dbe6f7; padding: 22px 14px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; }
.logo { display: flex; align-items: center; gap: 10px; padding: 0 8px 18px; color: #fff; text-decoration: none; }
.logo b { font-size: 24px; letter-spacing: .5px; }
.logo small { display: block; font-size: 12px; color: #9fb3d1; font-weight: 400; }
.logo svg { width: 38px; height: 38px; flex: none; }
.nav { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; color: #c6d4ea; text-decoration: none; border: 0; background: none; cursor: pointer; text-align: right; width: 100%; font-size: 15px; }
.nav svg { width: 20px; height: 20px; flex: none; opacity: .85; }
.nav:hover { background: var(--navy-2); color: #fff; }
.nav[aria-current="page"] { background: var(--brand); color: #fff; }
.nav .sh { display: none; }
.nav .pill { margin-inline-start: auto; background: #f5b14a; color: #1b1300; border-radius: 99px; font-size: 12px; padding: 0 7px; font-weight: 700; }
.side .foot { margin-top: auto; font-size: 12px; color: #8fa3c2; padding: 10px; border-top: 1px solid #1d3558; }
.side .foot .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; margin-inline-end: 6px; }
.side .foot .dot.off { background: #f5b14a; }
main { padding: 26px 30px 60px; max-width: 1280px; width: 100%; min-width: 0; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.top h1 { margin: 0; font-size: 26px; }
.top p { margin: 2px 0 0; color: var(--muted); }

/* atoms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 18px; }
.card h2 { font-size: 17px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 small { color: var(--muted); font-weight: 400; font-size: 13px; }
.grid { display: grid; gap: 16px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g21 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--surface); padding: 9px 15px; border-radius: 10px; cursor: pointer; text-decoration: none; color: var(--ink); font-weight: 500; white-space: nowrap; }
.btn:hover { border-color: var(--muted); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-2); }
.btn.danger { color: var(--red); }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn svg { width: 17px; height: 17px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.badge { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; padding: 1px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.new { background: var(--blue-soft); color: var(--blue); border-color: transparent; }
.badge.urgent { background: var(--red-soft); color: var(--red); border-color: transparent; font-weight: 600; }
.badge.ok { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.badge.night { background: var(--amber-soft); color: var(--amber); border-color: transparent; }
.muted { color: var(--muted); }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.spacer { flex: 1; }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.note { background: var(--blue-soft); color: var(--ink); border-radius: 10px; padding: 10px 14px; font-size: 14px; }
.note.warn { background: var(--amber-soft); }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 18px; border-radius: 10px; z-index: 100; box-shadow: var(--shadow); }

/* KPI */
.kpi { padding: 16px 18px; }
.kpi .lbl { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 6px; }
.kpi .val { font-size: 30px; font-weight: 700; line-height: 1.2; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .sub { font-size: 12px; color: var(--muted); }
.kpi.hero { background: linear-gradient(135deg, var(--brand), #0b6b8a); color: #fff; border: 0; }
.kpi.hero .lbl, .kpi.hero .sub { color: #e2fff6; }

/* charts */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 170px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; height: 100%; justify-content: flex-end; min-width: 0; }
.bars .b i { display: block; width: 100%; max-width: 30px; background: var(--brand); border-radius: 4px 4px 0 0; min-height: 2px; }
.bars .b.today i { background: #0b6b8a; }
.bars .b span { font-size: 11px; color: var(--muted); }
.bars .b em { font-style: normal; font-size: 11px; font-weight: 600; }
.hours { display: grid; grid-template-columns: repeat(24, 1fr); gap: 3px; direction: ltr; }
.hours div { aspect-ratio: 1; border-radius: 3px; background: var(--brand); }
.hours-l { display: flex; justify-content: space-between; direction: ltr; font-size: 11px; color: var(--muted); margin-top: 4px; }
.topic { display: grid; grid-template-columns: 1fr auto; gap: 4px 10px; align-items: center; margin-bottom: 8px; font-size: 14px; }
.topic .track { grid-column: 1 / -1; height: 7px; background: var(--surface-2); border-radius: 9px; overflow: hidden; }
.topic .track i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }

/* call list */
.list { display: flex; flex-direction: column; }
.item { display: grid; grid-template-columns: 42px 1fr auto; gap: 12px; align-items: center; padding: 12px 6px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 8px; background: none; border-inline: 0; border-top: 0; text-align: right; width: 100%; }
.item:hover { background: var(--surface-2); }
.item:last-child { border-bottom: 0; }
.av { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-weight: 700; }
.av.urgent { background: var(--red-soft); color: var(--red); }
.item .t { font-weight: 600; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.item .s { color: var(--muted); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.item .when { color: var(--muted); font-size: 12.5px; text-align: left; white-space: nowrap; }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.chip { border: 1px solid var(--line); background: var(--surface); border-radius: 99px; padding: 5px 13px; cursor: pointer; font-size: 14px; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.search { flex: 1; min-width: 180px; border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 12px; }

/* drawer */
.drawer-bg { position: fixed; inset: 0; background: rgba(5,12,25,.45); z-index: 40; }
.drawer { position: fixed; top: 0; bottom: 0; left: 0; width: min(560px, 100%); background: var(--surface); z-index: 41; overflow-y: auto; box-shadow: 0 0 40px rgba(0,0,0,.25); padding: 22px; display: flex; flex-direction: column; gap: 16px; }
.drawer h2 { margin: 0; font-size: 20px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 6px 12px; font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv input { width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 4px 8px; }
.summary { background: var(--brand-soft); border-radius: 12px; padding: 12px 14px; }
.summary b { display: block; font-size: 12px; color: var(--brand); margin-bottom: 2px; }

/* transcript bubbles */
.chat { display: flex; flex-direction: column; gap: 8px; }
.bub { max-width: 82%; padding: 8px 12px; border-radius: 14px; font-size: 14.5px; white-space: pre-wrap; }
.bub.agent { background: var(--surface-2); border: 1px solid var(--line); align-self: flex-start; border-top-right-radius: 4px; }
.bub.caller { background: var(--brand); color: #fff; align-self: flex-end; border-top-left-radius: 4px; }
.bub small { display: block; font-size: 11px; opacity: .7; }

/* forms */
.form { display: grid; gap: 14px; }
.f label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 4px; }
.f .hint { font-size: 12.5px; color: var(--muted); margin-top: 3px; }
.f input[type=text], .f input[type=tel], .f input[type=email], .f input[type=number], .f input[type=password], .f input[type=url], .f select, .f textarea {
  width: 100%; border: 1px solid var(--line); background: var(--surface-2); border-radius: 10px; padding: 9px 12px; }
.f textarea { min-height: 80px; resize: vertical; }
.f input:focus, .f textarea:focus, .f select:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 3px var(--brand-soft); }
.switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: 14.5px; }
.switch input { width: 20px; height: 20px; accent-color: var(--brand); }
.hours-ed { display: grid; grid-template-columns: 70px 1fr 1fr 60px; gap: 6px 8px; align-items: center; font-size: 14px; }
.hours-ed input[type=time] { border: 1px solid var(--line); background: var(--surface-2); border-radius: 8px; padding: 4px 6px; }
.rep { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 6px; background: var(--surface-2); }
.rep .row input, .rep textarea, .rep input { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px 9px; width: 100%; }
.sticky-save { position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); padding: 12px 0 2px; display: flex; gap: 10px; align-items: center; }

/* simulator */
.sim { display: grid; grid-template-columns: 340px 1fr; gap: 20px; align-items: start; }
.phone { background: #0a1424; border-radius: 40px; padding: 14px; box-shadow: 0 20px 50px rgba(5,12,25,.35); color: #fff; }
.screen { background: linear-gradient(180deg, #0f2a4a, #0a1a30); border-radius: 30px; min-height: 560px; padding: 26px 18px 20px; display: flex; flex-direction: column; align-items: center; text-align: center; }
.screen .who { font-size: 22px; font-weight: 700; margin-top: 18px; }
.screen .st { color: #9fc0e8; font-size: 14px; min-height: 22px; }
.orb { width: 132px; height: 132px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #3ee0b0, #0d8a6f 60%, #08533f); margin: 30px auto 14px; display: grid; place-items: center; position: relative; }
.orb svg { width: 54px; height: 54px; }
.orb.pulse::before, .orb.pulse::after { content: ""; position: absolute; inset: -10px; border-radius: 50%; border: 2px solid #3ee0b0; animation: ring 1.6s infinite; }
.orb.pulse::after { animation-delay: .8s; }
.orb.listen { background: radial-gradient(circle at 35% 30%, #8fb8ff, #2b62d9 60%, #173b8c); }
.orb.listen::before, .orb.listen::after { border-color: #8fb8ff; }
@keyframes ring { from { transform: scale(.9); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .orb.pulse::before, .orb.pulse::after { animation: none; } }
.interim { min-height: 44px; color: #d6e6ff; font-size: 14px; padding: 0 6px; }
.callbtns { display: flex; gap: 18px; margin-top: auto; justify-content: center; }
.round { width: 62px; height: 62px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; color: #fff; background: #26405f; }
.round svg { width: 26px; height: 26px; }
.round.go { background: #19b37f; width: 74px; height: 74px; }
.round.end { background: #e0393e; width: 74px; height: 74px; }
.round[aria-pressed="true"] { background: #f0f4fa; color: #0a1424; }
.typebar { display: flex; gap: 6px; width: 100%; margin-top: 14px; }
.typebar input { flex: 1; border-radius: 99px; border: 0; padding: 9px 14px; background: #1b324f; color: #fff; }
.typebar input::placeholder { color: #8eabcf; }
.typebar button { border-radius: 99px; border: 0; background: #19b37f; color: #fff; padding: 0 14px; cursor: pointer; }
.leadcard .field { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14.5px; }
.leadcard .field span:first-child { color: var(--muted); }
.leadcard .field.filled span:last-child { color: var(--brand); font-weight: 600; }
.leadcard .field.filled span:last-child::before { content: "✓ "; }
.suggest { display: flex; flex-wrap: wrap; gap: 6px; }

/* setup */
.step { display: grid; grid-template-columns: 34px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step .n { width: 30px; height: 30px; border-radius: 50%; background: var(--surface-2); border: 1px solid var(--line); display: grid; place-items: center; font-weight: 700; }
.step.done .n { background: var(--brand); color: #fff; border-color: var(--brand); }
code, .code { font-family: Consolas, "Courier New", monospace; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; direction: ltr; unicode-bidi: embed; }
.code { display: block; padding: 10px; white-space: pre-wrap; word-break: break-all; text-align: left; }

/* login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; background: radial-gradient(1200px 600px at 80% -10%, #12406b, transparent), var(--navy); }
.login .card { width: min(380px, 100%); text-align: center; padding: 30px 26px; }
.login input { text-align: center; font-size: 26px; letter-spacing: 8px; width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); margin: 14px 0; direction: ltr; }

/* responsive */
.mbar { display: none; }
@media (max-width: 1050px) {
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g21, .g3 { grid-template-columns: minmax(0, 1fr); }
  .sim { grid-template-columns: minmax(0, 1fr); }
  .phone { max-width: 360px; margin: 0 auto; width: 100%; }
}
@media (max-width: 760px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .bars { gap: 3px; }
  .bars .b span { font-size: 9px; }
  .bars .b:nth-child(even) span { visibility: hidden; }
  .side { position: fixed; bottom: 0; top: auto; height: auto; width: 100%; flex-direction: row; padding: 6px; z-index: 30; justify-content: space-around; gap: 0; }
  .side .logo, .side .foot { display: none; }
  .nav { flex: 1 1 0; min-width: 0; flex-direction: column; gap: 2px; font-size: 11px; padding: 6px 2px; text-align: center; }
  .nav .lg { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .nav .sh { display: block; white-space: nowrap; }
  .nav .pill { position: absolute; margin: 0; transform: translate(-14px, -4px); }
  .nav { position: relative; }
  main { padding: 16px 16px 90px; }
  .mbar { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--muted); font-size: 13px; }
  .g2 { grid-template-columns: minmax(0, 1fr); }
  .kpi .val { font-size: 24px; }
  .kv { grid-template-columns: 96px 1fr; }
  .item { grid-template-columns: 36px 1fr; }
  .item .when { grid-column: 2; text-align: right; }
  .av { width: 36px; height: 36px; }
  .hours-ed { grid-template-columns: 56px 1fr 1fr 44px; }
  .top h1 { font-size: 22px; }
}

/* five KPI cards */
.g5 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* calendar */
.dayh { font-size: 14px; color: var(--muted); margin: 16px 0 6px; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.dayh:first-of-type { margin-top: 0; }
.appt { display: grid; grid-template-columns: 56px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 6px; border-radius: 10px; }
.appt + .appt { border-top: 1px dashed var(--line); }
.appt .tm { font-weight: 700; font-size: 17px; font-variant-numeric: tabular-nums; text-align: center; }
.appt .tm small { display: block; font-weight: 400; font-size: 12px; color: var(--muted); }
.appt .who .muted { font-size: 13.5px; }
.appt .acts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.appt .acts svg { width: 15px; height: 15px; }
.appt.cancelled { opacity: .55; }
.appt.cancelled .who b { text-decoration: line-through; }
.msglog { display: flex; flex-direction: column; gap: 8px; }
.msg { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; font-size: 13.5px; background: var(--surface-2); }
.msg.fail { border-color: var(--amber); }
details > summary { list-style-position: inside; }

/* WhatsApp simulator */
.wa-screen { background: #efeae2; border-radius: 30px; min-height: 560px; display: flex; flex-direction: column; overflow: hidden; color: #111b21; }
.wa-head { background: #075e54; color: #fff; display: flex; align-items: center; gap: 10px; padding: 18px 14px 12px; }
.wa-head small { display: block; font-size: 12px; color: #cfe9e4; }
.wa-av { width: 36px; height: 36px; border-radius: 50%; background: #25d366; display: grid; place-items: center; font-weight: 700; }
.wa-body { flex: 1; padding: 12px 10px; overflow-y: auto; max-height: 470px; display: flex; flex-direction: column; gap: 6px; }
.wa-tip { background: #fff7c2; border-radius: 8px; padding: 6px 10px; font-size: 13px; align-self: center; text-align: center; margin: 8px 0; }
.wa-msg { max-width: 82%; padding: 6px 9px 4px; border-radius: 8px; font-size: 14.5px; white-space: pre-wrap; box-shadow: 0 1px .5px rgba(0,0,0,.13); }
.wa-msg small { display: block; text-align: left; font-size: 10.5px; color: #667781; margin-top: 2px; }
.wa-msg.me { background: #d9fdd3; align-self: flex-end; }
.wa-msg.them { background: #fff; align-self: flex-start; }
.wa-bar { display: flex; gap: 6px; padding: 8px; background: #f0f2f5; }
.wa-bar input { flex: 1; border: 0; border-radius: 99px; padding: 9px 14px; background: #fff; color: #111b21; }
.wa-bar button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #00a884; color: #fff; cursor: pointer; }
.chip svg { vertical-align: -2px; }
@media (max-width: 760px) {
  .appt { grid-template-columns: 48px minmax(0, 1fr); }
  .appt .acts { grid-column: 2; justify-content: flex-start; }
}

/* work mode picker */
.modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.mode { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--surface-2); }
.mode input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--brand); flex: none; }
.mode small { display: block; color: var(--muted); font-size: 13px; margin-top: 2px; }
.mode:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }
.rep select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 6px; }

/* availability windows, approval queue */
.sub3 { font-size: 14px; margin: 6px 0; font-weight: 700; }
.sub3 small { font-weight: 400; color: var(--muted); }
.pendq { border: 2px solid var(--amber); margin-bottom: 16px; }
.wday { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; align-items: start; padding: 6px 0; border-top: 1px dashed var(--line); }
.wday > b { padding-top: 6px; }
.wlist { display: grid; gap: 6px; }
.wlist:empty::before { content: "אין קביעות ביום הזה"; color: var(--muted); font-size: 13px; padding-top: 6px; }
.win { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.win input[type=time] { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 4px 6px; font: inherit; color: inherit; }
.autoc { font-size: 13px; gap: 4px; }
.autoc input { width: 16px; height: 16px; }

/* campaigns */
.funnel { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 8px 0 12px; }
.funnel .st { border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; background: var(--surface-2); }
.funnel .st b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.funnel .st small { color: var(--muted); font-size: 12.5px; }
.funnel .st.hot { border-color: var(--red); } .funnel .st.meeting { border-color: var(--brand); background: var(--brand-soft); }
.ltable { width: 100%; border-collapse: collapse; font-size: 14px; }
.ltable th, .ltable td { text-align: start; padding: 7px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.ltable th { color: var(--muted); font-weight: 600; font-size: 12.5px; }
.ltable select { border: 1px solid var(--line); background: var(--surface); border-radius: 8px; padding: 3px; font: inherit; color: inherit; }
.tbl-wrap { overflow-x: auto; }
.camp + .camp { margin-top: 16px; }
@media (max-width: 760px) { .ltable .hide-sm { display: none; } }

/* office assistant */
.ops-fab { position: fixed; inset-inline-end: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; border: 0; border-radius: 99px; padding: 11px 16px; background: var(--brand); color: #fff; font: inherit; font-weight: 600; cursor: pointer; box-shadow: 0 6px 20px rgba(0,0,0,.18); }
.ops-fab svg { width: 20px; height: 20px; }
.ops { position: fixed; inset-inline-end: 20px; bottom: 76px; z-index: 41; width: min(400px, calc(100vw - 32px)); max-height: min(560px, calc(100vh - 120px)); display: flex; flex-direction: column; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.22); }
.ops[hidden] { display: none !important; }
.ops-log { overflow: auto; flex: 1; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.ops .prop { margin-top: 8px; border: 1px dashed var(--amber); background: var(--amber-soft); border-radius: 10px; padding: 8px; font-size: 13.5px; }
@media (max-width: 760px) { .ops-fab { bottom: 74px; inset-inline-end: 12px; padding: 10px 13px; } .ops-fab span { display: none; } .ops { bottom: 130px; inset-inline-end: 16px; } }

/* voice picker */
.voices { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 8px; }
.voice { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border: 1.5px solid var(--line, #d6dde8); border-radius: 12px; cursor: pointer; }
.voice.on { border-color: var(--brand, #0f8a6e); box-shadow: 0 0 0 2px color-mix(in srgb, var(--brand, #0f8a6e) 25%, transparent); }
.voice input { accent-color: var(--brand, #0f8a6e); }
.voice .vi { font-size: 20px; }
.voice b { flex: 1; font-size: 14px; white-space: nowrap; }
.card h2 > svg { width: 20px; height: 20px; vertical-align: -4px; flex: none; }
