/* Hilfline Sales Pipeline — colours from the HilfBuddy Sales Academy, type from hilfbuddy.at, in a light and a dark theme.
   Layout: sidebar + work sheet on desktop; top bar + bottom tabs on phones (the team is on the street). */
:root {
  --canvas: #EEEBE3;
  --bg: #FAF9F5;
  --surface: #FFFFFF;
  --surface-2: #F3F1EA;
  --surface-3: #E8E5DB;
  --ink: #182030;
  --muted: #485266;
  --faint: #5F687B;
  --line: #E5E2D8;
  --line-strong: #D3CFC3;
  --brand: #1A5FD6;
  --accent: #1A5FD6;
  --accent-strong: #154DB0;
  --accent-ink: #FFFFFF;
  --accent-soft: #E5EEFC;
  --pipe-1: #86ABEE; --pipe-2: #5E8FE6; --pipe-3: #2F6FDC; --pipe-4: #1A52B8; --pipe-5: #123A85;
  --pipe-on-1: #182030; --pipe-on-2: #182030; --pipe-on-3: #FFFFFF; --pipe-on-4: #FFFFFF; --pipe-on-5: #FFFFFF;
  --win: #F6A04D;
  --win-strong: #EC8F35;
  --win-on: #2B1A06;
  --win-soft: #FDEEDD;
  --win-ink: #97480A;
  --ok: #15734A;
  --ok-soft: #DEF3E7;
  --teal: #0A7166;
  --teal-soft: #D9F1EC;
  --danger: #B3382C;
  --on-danger: #FFFFFF;
  --danger-soft: #FBE6E2;
  --stale: #7A5C0B;
  --stale-soft: #F8EFD0;
  --ring: 0 0 0 1px var(--line);
  --shadow-1: 0 1px 2px rgba(24, 32, 48, .06);
  --shadow-2: 0 1px 2px rgba(24, 32, 48, .06), 0 10px 28px -10px rgba(24, 32, 48, .18);
  --shadow-3: 0 2px 6px rgba(24, 32, 48, .08), 0 28px 70px -14px rgba(24, 32, 48, .34);
  --scrim: rgba(24, 32, 48, .4);
  --hero-bg: #141B2A;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235F687B' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --font: 'Open Sans', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: 'Poppins', 'Segoe UI', system-ui, -apple-system, Roboto, Arial, sans-serif;
  --map-filter: none;
  --r-lg: 18px;
  --r: 14px;
  --r-sm: 10px;
  --r-xs: 6px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --canvas: #0B0F16; --bg: #10151E; --surface: #171D28; --surface-2: #1C2330; --surface-3: #262E3D;
    --ink: #EDF0F6; --muted: #B4BDCD; --faint: #929DB0; --line: #262E3C; --line-strong: #394354;
    --accent: #7DA8F7; --accent-strong: #9ABCF9; --accent-ink: #0B1222; --accent-soft: #1A2947;
    --pipe-1: #2E4E8C; --pipe-2: #3F6CC4; --pipe-3: #6C98EC; --pipe-4: #9ABCF9; --pipe-5: #CFE0FC;
    --pipe-on-1: #FFFFFF; --pipe-on-2: #FFFFFF; --pipe-on-3: #0B1222; --pipe-on-4: #0B1222; --pipe-on-5: #0B1222;
    --win: #F6A04D; --win-strong: #F8B26B; --win-on: #2B1A06; --win-soft: #36260F; --win-ink: #F9BC80;
    --ok: #62CB96; --ok-soft: #14301F; --teal: #56CDBE; --teal-soft: #102E2B;
    --danger: #F2907F; --on-danger: #2A0E0A; --danger-soft: #3A1D1A; --stale: #E6C768; --stale-soft: #332A10;
    --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
    --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -10px rgba(0, 0, 0, .55);
    --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 70px -14px rgba(0, 0, 0, .7);
    --scrim: rgba(5, 8, 13, .6); --hero-bg: #0D121C;
    --map-filter: invert(1) hue-rotate(180deg) brightness(.92) contrast(.88);
    --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23929DB0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --canvas: #0B0F16; --bg: #10151E; --surface: #171D28; --surface-2: #1C2330; --surface-3: #262E3D;
  --ink: #EDF0F6; --muted: #B4BDCD; --faint: #929DB0; --line: #262E3C; --line-strong: #394354;
  --accent: #7DA8F7; --accent-strong: #9ABCF9; --accent-ink: #0B1222; --accent-soft: #1A2947;
  --pipe-1: #2E4E8C; --pipe-2: #3F6CC4; --pipe-3: #6C98EC; --pipe-4: #9ABCF9; --pipe-5: #CFE0FC;
  --pipe-on-1: #FFFFFF; --pipe-on-2: #FFFFFF; --pipe-on-3: #0B1222; --pipe-on-4: #0B1222; --pipe-on-5: #0B1222;
  --win: #F6A04D; --win-strong: #F8B26B; --win-on: #2B1A06; --win-soft: #36260F; --win-ink: #F9BC80;
  --ok: #62CB96; --ok-soft: #14301F; --teal: #56CDBE; --teal-soft: #102E2B;
  --danger: #F2907F; --on-danger: #2A0E0A; --danger-soft: #3A1D1A; --stale: #E6C768; --stale-soft: #332A10;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .35);
  --shadow-2: 0 1px 2px rgba(0, 0, 0, .35), 0 12px 30px -10px rgba(0, 0, 0, .55);
  --shadow-3: 0 2px 6px rgba(0, 0, 0, .4), 0 28px 70px -14px rgba(0, 0, 0, .7);
  --scrim: rgba(5, 8, 13, .6); --hero-bg: #0D121C;
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23929DB0' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0; background: var(--canvas); color: var(--ink); font: 15px/1.5 var(--font);
  -webkit-font-smoothing: antialiased; font-variant-numeric: tabular-nums;
}
h1, h2, h3 { margin: 0; line-height: 1.15; text-wrap: balance; letter-spacing: -.015em; font-family: var(--display); }
p { margin: 0; text-wrap: pretty; }
a { color: var(--accent); }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
[hidden] { display: none !important; }
.booting { min-height: 100vh; min-height: 100dvh; margin: 0; display: grid; place-items: center; color: var(--faint); animation: breathe 1.6s ease-in-out infinite; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--accent); }

/* Every stage has one colour: on chips, columns, tiles and the open deal. */
.stage-lead, .stage-later { --stage: var(--faint); }
.stage-contacted { --stage: var(--accent); }
.stage-booked { --stage: var(--win); }
.stage-trial { --stage: var(--teal); }
.stage-customer { --stage: var(--ok); }
.stage-lost { --stage: var(--danger); }
/* The pipeline itself and its rings are ordered steps, so they share one blue from light to deep. */
.stage-lead { --pipe: var(--pipe-1); --pipe-on: var(--pipe-on-1); }
.stage-contacted { --pipe: var(--pipe-2); --pipe-on: var(--pipe-on-2); }
.stage-booked { --pipe: var(--pipe-3); --pipe-on: var(--pipe-on-3); }
.stage-trial { --pipe: var(--pipe-4); --pipe-on: var(--pipe-on-4); }
.stage-customer { --pipe: var(--pipe-5); --pipe-on: var(--pipe-on-5); }
.stage-later, .stage-lost { --pipe: var(--surface-3); --pipe-on: var(--ink); }

/* ---------- shell */
.app { display: grid; grid-template-columns: 244px minmax(0, 1fr); min-height: 100vh; min-height: 100dvh; }
.sidebar { position: sticky; top: 0; height: 100vh; height: 100dvh; display: flex; flex-direction: column; gap: 22px; padding: 20px 14px 14px; }
.brand { display: grid; gap: 7px; justify-items: start; padding: 0 6px; color: inherit; text-decoration: none; }
.brand small { font-weight: 600; font-size: 12.5px; color: var(--muted); line-height: 1.25; }
/* The wordmark from hilfbuddy.at: its gold on its dark, in both themes. */
.brand-mark { display: inline-block; padding: 4px 11px; border-radius: 14px; background: #1A1A1A; border: 1px solid rgba(212, 175, 55, .5); transition: border-color .15s; }
.brand-mark span {
  font-family: var(--display); font-weight: 700; font-size: 20px; line-height: 1.3; letter-spacing: .005em; color: transparent;
  background: linear-gradient(135deg, #FFF3CF 0%, #ECC36A 28%, #D4AF37 55%, #B87333 100%); -webkit-background-clip: text; background-clip: text;
}
a:hover > .brand-mark { border-color: #D4AF37; }
.top-logo { display: none; }
.nav { display: flex; flex-direction: column; gap: 3px; }
.nav a {
  display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: var(--r-sm);
  color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s;
}
.nav a:hover { background: color-mix(in srgb, var(--surface) 55%, transparent); color: var(--ink); }
.nav a[aria-current="page"] { background: var(--surface); color: var(--ink); box-shadow: var(--ring), var(--shadow-1); }
.nav a[aria-current="page"] svg { color: var(--accent); }
.nav svg { width: 19px; height: 19px; flex: none; }

.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me-box { display: flex; align-items: center; gap: 10px; padding: 10px 2px 0 6px; border-top: 1px solid var(--line-strong); }
.me-box .who { min-width: 0; flex: 1; line-height: 1.3; }
.me-box .who b { display: block; font-weight: 650; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-box .who span { font-size: 12px; color: var(--faint); }
.me-btn { display: none; }

.theme-switch { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 2px; padding: 3px; border-radius: var(--r-sm); background: color-mix(in srgb, var(--ink) 7%, transparent); }
.theme-switch button {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; min-height: 30px; padding: 0 6px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: 12.5px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--ring), var(--shadow-1); }
.theme-switch svg { width: 14px; height: 14px; flex: none; }

.main {
  --gutter: max(32px, calc((100% - 1200px) / 2));
  min-width: 0; display: flex; flex-direction: column; background: var(--bg); margin-top: 10px;
  border: solid var(--line); border-width: 1px 0 0 1px; border-top-left-radius: 22px;
}
.main.wide { --gutter: 32px; }
@media (min-width: 861px) and (min-height: 620px) {
  .main.fit { height: calc(100dvh - 10px); overflow: hidden; }
  .main.fit .content { flex: 1; min-height: 0; padding-bottom: 14px; gap: 10px; }
  .main.fit .board-wrap { flex: 1; min-height: 0; }
  .main.fit .map-page { flex: 1; height: auto; min-height: 0; }
}
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 20; display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding-block: 18px 14px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(12px) saturate(1.3); border-top-left-radius: 22px;
}
.topbar h1 { font-size: 28px; font-weight: 700; letter-spacing: -.025em; margin-right: auto; }
.topbar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.content {
  padding-block: 8px 56px; padding-left: max(var(--gutter), env(safe-area-inset-left, 0px)); padding-right: max(var(--gutter), env(safe-area-inset-right, 0px));
  display: flex; flex-direction: column; gap: 30px; min-width: 0;
}
.content.enter > * { animation: rise .26s cubic-bezier(.2, .8, .2, 1) both; }
.content.enter > *:nth-child(2) { animation-delay: 30ms; }
.content.enter > *:nth-child(3) { animation-delay: 60ms; }
.content.enter > *:nth-child(n+4) { animation-delay: 90ms; }
.tabbar { display: none; }

@media (max-width: 860px) {
  body { background: var(--bg); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { display: none; }
  .main { --gutter: 16px; margin: 0; border: 0; border-radius: 0; }
  .main.wide { --gutter: 16px; }
  body::before { content: ""; position: fixed; inset: 0 0 auto; height: env(safe-area-inset-top, 0px); z-index: 30; background: var(--bg); }
  .topbar { padding-block: 12px 10px; border-radius: 0; }
  .top-logo { display: inline-flex; order: -3; margin-right: auto; text-decoration: none; }
  .top-logo .brand-mark span { font-size: 15px; }
  .topbar h1 { font-size: 23px; order: 1; flex-basis: 100%; margin-right: 0; }
  .topbar-actions { order: 2; }
  .me-btn { display: inline-flex; order: -1; padding: 0; border: 0; background: none; border-radius: 10px; cursor: pointer; }
  .me-btn .avatar { width: 34px; height: 34px; border-radius: 11px; font-size: 12px; }
  .content { padding-bottom: calc(104px + env(safe-area-inset-bottom, 0px)); gap: 24px; }
  .tabbar {
    position: fixed; inset: auto 0 0; z-index: 40; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(62px, 1fr); overflow-x: auto; scrollbar-width: none;
    background: color-mix(in srgb, var(--surface) 86%, transparent); backdrop-filter: blur(16px) saturate(1.4); border-top: 1px solid var(--line);
    padding: 6px max(6px, env(safe-area-inset-right, 0px)) calc(6px + env(safe-area-inset-bottom, 0px)) max(6px, env(safe-area-inset-left, 0px));
  }
  .tabbar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 2px; font-size: 10.5px; font-weight: 600; color: var(--faint); text-decoration: none; border-radius: var(--r-sm); position: relative; }
  .tabbar a[aria-current="page"] { color: var(--ink); }
  .tabbar svg { width: 46px; height: 28px; padding: 4px 13px; border-radius: 99px; transition: background .15s; }
  .tabbar a[aria-current="page"] svg { background: var(--accent-soft); color: var(--accent); }

  .hide-mobile { display: none !important; }
}

/* ---------- controls */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; padding: 0 15px;
  border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--shadow-1);
  font-weight: 600; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, box-shadow .15s, transform .08s;
}
.btn:hover { border-color: var(--line-strong); background: color-mix(in srgb, var(--surface-2) 45%, var(--surface)); }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .55; cursor: not-allowed; }
.btn svg { width: 17px; height: 17px; flex: none; }
.btn.primary { background: var(--accent); border-color: transparent; color: var(--accent-ink); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .16), 0 1px 3px color-mix(in srgb, var(--accent) 40%, transparent); }
.btn.primary:hover { background: var(--accent-strong); }
.btn.win { background: var(--win); border-color: transparent; color: var(--win-on); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .25), 0 1px 3px color-mix(in srgb, var(--win) 45%, transparent); }
.btn.win:hover { background: var(--win-strong); }
.btn.danger { color: var(--danger); }
.btn.danger.solid { background: var(--danger); border-color: transparent; color: var(--on-danger); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--muted); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-2); color: var(--ink); }
.btn.sm { min-height: 32px; padding: 0 11px; font-size: 13px; border-radius: 8px; }
.icon-btn { width: 40px; padding: 0; }
.btn-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

input[type="text"], input[type="email"], input[type="tel"], input[type="password"], input[type="number"], input[type="search"],
input[type="date"], input[type="time"], input[type="datetime-local"], select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; border-radius: var(--r-sm); border: 1px solid var(--line);
  background-color: var(--surface); color: var(--ink); min-width: 0; transition: border-color .15s, box-shadow .15s;
}
select { appearance: none; -webkit-appearance: none; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 11px center; padding-right: 30px; }
textarea { resize: vertical; min-height: 84px; line-height: 1.45; }
input:hover, select:hover, textarea:hover { border-color: var(--line-strong); }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
::placeholder { color: var(--faint); opacity: 1; }
.search { position: relative; min-width: 0; }
.search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 17px; height: 17px; color: var(--faint); pointer-events: none; }
.search input { padding-left: 36px; width: 260px; max-width: 100%; min-height: 40px; }
@media (max-width: 860px) { .search { flex: 1 1 160px; } .search input { width: 100%; } }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; border: 0; padding: 0; margin: 0; }
.field > label, .field > legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; }
.field .req { color: var(--danger); }
.field .help { font-size: 12.5px; color: var(--faint); }
.field.span { grid-column: 1 / -1; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
@media (max-width: 560px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.form-section { grid-column: 1 / -1; font-family: var(--display); font-size: 15px; font-weight: 650; color: var(--ink); padding-top: 8px; }
.check { display: inline-flex; align-items: center; gap: 9px; cursor: pointer; font-weight: 550; }
.check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; flex: none; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check.pill { border: 1px solid var(--line); border-radius: 99px; padding: 6px 12px; background: var(--surface); transition: background .15s, border-color .15s; }
.check.pill:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); color: var(--accent); }

.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { position: relative; }
.seg input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.seg span { display: inline-flex; align-items: center; min-height: 36px; padding: 0 13px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); font-weight: 600; font-size: 14px; transition: background .15s, border-color .15s, color .15s; }
.seg label:hover span { border-color: var(--line-strong); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.seg input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }
.quick { display: flex; flex-wrap: wrap; gap: 6px; }
.quick button { border: 1px dashed var(--line-strong); background: transparent; border-radius: 99px; padding: 4px 11px; font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer; }
.quick button:hover { border-style: solid; color: var(--accent); border-color: var(--accent); }

/* ---------- chips & badges */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px 2px 9px; border-radius: 99px; font-size: 12.5px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.chip.lead { color: var(--muted); }
.chip.contacted { background: var(--accent-soft); color: var(--accent); }
.chip.booked { background: var(--win-soft); color: var(--win-ink); }
.chip.booked::before { background: var(--win); }
.chip.trial { background: var(--teal-soft); color: var(--teal); }
.chip.customer { background: var(--ok-soft); color: var(--ok); }
.chip.later { color: var(--faint); }
.chip.lost { background: var(--danger-soft); color: var(--danger); }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 1px 7px; border-radius: var(--r-xs); font-size: 12px; font-weight: 650; white-space: nowrap; background: var(--surface-2); color: var(--muted); }
.badge svg { width: 13px; height: 13px; }
.badge.today { background: var(--accent-soft); color: var(--accent); }
.badge.win { background: var(--win-soft); color: var(--win-ink); }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.mark { background: var(--h-soft); color: var(--h); }
.avatar { width: 30px; height: 30px; border-radius: 10px; display: inline-grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; flex: none; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .18); }

/* ---------- sections & lists */
.section { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.section-head h2 { font-size: 18px; font-weight: 650; }
.section-head .n { font-size: 13px; font-weight: 650; color: var(--faint); }
.section-head .aside { margin-left: auto; font-size: 13px; color: var(--faint); }
.panel { background: var(--surface); border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); }
.list { display: flex; flex-direction: column; }
.list > * + * { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 13px 16px; cursor: pointer; text-align: left; width: 100%; background: none; border: 0; transition: background .12s; }
.row:hover { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.row:focus-visible { outline-offset: -2px; }
.row:first-child { border-top-left-radius: var(--r); border-top-right-radius: var(--r); }
.row:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.row-main { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.row-title { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-weight: 650; }
.row-title b { font-weight: 650; overflow-wrap: anywhere; }
.row-sub { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.row-side { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 560px) { .row { grid-template-columns: minmax(0, 1fr); } .row-side { justify-content: flex-start; } }
.empty { padding: 36px 24px; text-align: center; color: var(--muted); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.empty b { color: var(--ink); font-family: var(--display); font-size: 18px; font-weight: 650; letter-spacing: -.01em; }

.skeleton { position: relative; overflow: hidden; min-height: 84px; background: var(--surface-2); box-shadow: none; }
.skeleton::after {
  content: ""; position: absolute; inset: 0; transform: translateX(-100%);
  background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--surface) 75%, transparent), transparent); animation: shimmer 1.4s ease-in-out infinite;
}


/* ---------- hover hints */
.hint {
  position: fixed; z-index: 90; max-width: 260px; padding: 7px 11px; border-radius: 9px; background: var(--ink); color: var(--bg);
  font-size: 13px; font-weight: 550; line-height: 1.35; box-shadow: var(--shadow-2); pointer-events: none; animation: fade .12s ease-out;
}

/* ---------- whole team: round stats */
.team-row { display: flex; align-items: center; gap: 28px; min-width: 0; }
.team-title { flex: none; display: flex; flex-direction: column; gap: 3px; }
.team-title h2 { font-size: 18px; font-weight: 650; }
.team-title span { font-size: 13px; color: var(--faint); }
.rounds { flex: 1; min-width: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; justify-items: center; align-items: start; }
.round { display: flex; flex-direction: column; align-items: center; gap: 4px; min-width: 0; text-align: center; }
.round-face { position: relative; display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%; }
.round-face svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.round-face b { position: relative; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; line-height: 1; }
.round-face b.long { font-size: 14px; }
.round-face.skeleton { min-height: 0; }
.ring-track { fill: var(--surface); stroke: var(--line); stroke-width: 7; }
.ring-fill { fill: none; stroke: var(--pipe); stroke-width: 7; stroke-linecap: round; }
.round.hero .round-face {
  background: radial-gradient(120% 120% at 20% 10%, color-mix(in srgb, var(--win) 42%, var(--surface)), color-mix(in srgb, var(--win) 14%, var(--surface)));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--win) 40%, var(--line));
}
.round.hero .round-face b:not(.long) { font-size: 18px; }
.round-label { font-size: 12.5px; font-weight: 600; color: var(--muted); line-height: 1.2; }
.round-note { font-size: 11px; color: var(--faint); line-height: 1.2; }
@media (max-width: 860px) {
  .team-row { flex-direction: column; align-items: stretch; gap: 10px; }
  .team-title { flex-direction: row; align-items: baseline; justify-content: space-between; }
  .rounds { gap: 4px; }
  .round-face { width: 46px; height: 46px; }
  .round-face b { font-size: 15px; }
  .round-face b.long, .round.hero .round-face b:not(.long) { font-size: 11px; }
  .round-label { font-size: 10.5px; }
  .round-note { display: none; }
}

/* ---------- pipeline: the stages as one connected arrow, the deals in compact rows under it */
.cols-1 { grid-template-columns: minmax(0, 1fr); }
.cols-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.cols-7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
.board-tools { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.board-tools > .faint { margin-left: auto; font-size: 12.5px; }
.board-wrap { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.pipe { display: grid; gap: 8px; }
.pipe-step {
  --notch: 14px;
  display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; min-height: 52px; margin-right: calc(var(--notch) * -1); padding: 4px calc(var(--notch) + 8px) 4px calc(var(--notch) + 12px);
  border: 0; background: var(--pipe); color: var(--pipe-on); text-align: left; cursor: pointer; transition: filter .15s, opacity .15s;
  clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%, var(--notch) 50%);
}
.pipe-step.stage-lead { padding-left: 14px; border-radius: 12px 0 0 12px; clip-path: polygon(0 0, calc(100% - var(--notch)) 0, 100% 50%, calc(100% - var(--notch)) 100%, 0 100%); }
.pipe-step.stage-customer { margin-right: 0; padding-right: 14px; border-radius: 0 12px 12px 0; clip-path: polygon(0 0, 100% 0, 100% 100%, 0 100%, var(--notch) 50%); }
.pipe-step.stage-later, .pipe-step.stage-lost { margin-right: 0; padding-inline: 14px; border-radius: 12px; clip-path: none; }
.pipe-step:hover, .pipe-step.drop { filter: brightness(1.08); }
.pipe-step:focus-visible { outline: 2px solid currentColor; outline-offset: -5px; }
.pipe-step[aria-pressed="true"] { box-shadow: inset 0 -4px 0 var(--pipe-on); }
.pipe-name { min-width: 0; font-size: 13.5px; font-weight: 650; line-height: 1.2; }
.pipe-n { flex: none; font-family: var(--display); font-size: 21px; font-weight: 700; letter-spacing: -.02em; }
.board { display: grid; gap: 8px; flex: 1; min-height: 0; }
.col {
  container-type: inline-size;
  background: color-mix(in srgb, var(--surface-2) 72%, transparent); border-radius: 14px; display: flex; flex-direction: column; min-width: 0; min-height: 0;
  box-shadow: 0 0 0 1px var(--line); transition: box-shadow .15s, background .15s;
}
.col.drop { background: var(--accent-soft); box-shadow: 0 0 0 2px var(--accent); }
.col-body { flex: 1; min-height: 0; overflow: hidden; display: flex; flex-direction: column; gap: 4px; padding: 6px 6px 2px; }
.cols-1 .col-body { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); grid-auto-rows: 30px; gap: 4px 6px; align-content: start; }
.card {
  flex: none; display: flex; align-items: center; gap: 6px; min-width: 0; height: 30px; padding: 0 8px; border-radius: 8px; background: var(--surface); font-size: 13.5px;
  box-shadow: var(--ring); cursor: pointer; transition: box-shadow .12s;
}
.card:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 55%, var(--line)), var(--shadow-1); }
.card[draggable="true"] { cursor: grab; }
.card.dragging { opacity: .45; }
.card:focus-visible { outline-offset: -2px; }
.card .name { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card .badge { flex: none; max-width: 55%; padding: 0 5px; font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.card .avatar { width: 20px; height: 20px; font-size: 9px; border-radius: 6px; }
@container (max-width: 190px) { .card .badge { display: none; } }
.heat-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--h); }
.col-foot { flex: none; display: flex; align-items: center; justify-content: center; gap: 4px; height: 30px; padding: 0 6px 4px; font-size: 12px; color: var(--faint); }
.col-foot .icon-btn { width: 26px; min-height: 26px; }
.col-foot .all-stages { margin-right: auto; }
.col-empty { font-size: 12.5px; color: var(--faint); padding: 10px 6px; text-align: center; border: 1px dashed var(--line-strong); border-radius: 10px; }
.cols-1 .col-empty { grid-column: 1 / -1; }
@media (max-width: 860px) {
  .board-tools .my-filters { display: flex; flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .board-tools .my-filters > * { flex: none; width: auto; }
  .board-wrap { gap: 10px; }
  .pipe { gap: 4px; }
  .pipe.cols-5, .pipe.cols-7 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
  .pipe.cols-7 .pipe-step.stage-later, .pipe.cols-7 .pipe-step.stage-lost { grid-column: span 2; }
  .pipe-step { --notch: 8px; flex-direction: column-reverse; align-items: flex-start; justify-content: flex-end; gap: 2px; min-height: 64px; padding: 7px calc(var(--notch) + 4px) 7px calc(var(--notch) + 6px); }
  .pipe-step.stage-lead { padding-left: 8px; }
  .pipe-step.stage-customer { padding-right: 6px; }
  .pipe-name { font-size: 10.5px; font-weight: 600; }
  .pipe-n { font-size: 17px; line-height: 1; }
  .cols-1 .col-body { display: flex; flex-direction: column; gap: 6px; }
  .card { height: 44px; font-size: 14.5px; padding-inline: 12px; }
  .card .badge { font-size: 12px; padding-inline: 7px; }
  .col-foot { height: 44px; font-size: 13px; }
  .col-foot .icon-btn { width: 40px; min-height: 40px; }
}

/* ---------- table-ish accounts */
.acc-head, .acc-row { display: grid; grid-template-columns: minmax(180px, 2.4fr) minmax(130px, 1fr) minmax(150px, 1.3fr) minmax(90px, .8fr); gap: 12px; align-items: center; padding: 11px 16px; }
.acc-head { font-size: 12.5px; font-weight: 600; color: var(--faint); }
.acc-row { cursor: pointer; border-top: 1px solid var(--line); transition: background .12s; }
.acc-row:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.acc-row:hover { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.acc-row:focus-visible { outline-offset: -2px; }
.acc-row > * { min-width: 0; overflow-wrap: anywhere; }
.acc-row b { font-weight: 650; }
@media (max-width: 860px) {
  .acc-head { display: none; }
  .acc-row { grid-template-columns: minmax(0, 1fr) auto; }
  .acc-row:first-of-type { border-top: 0; }
  .acc-row .c-owner { display: none; }
  .acc-row .c-next { grid-column: 1 / -1; }
}

/* ---------- drawer */
.scrim { position: fixed; inset: 0; background: var(--scrim); z-index: 50; animation: fade .15s ease-out; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100%); z-index: 51; background: var(--bg);
  border-left: 1px solid var(--line); box-shadow: var(--shadow-3); display: flex; flex-direction: column;
  animation: slide .22s cubic-bezier(.2, .8, .2, 1);
}
.drawer-head {
  padding: calc(18px + env(safe-area-inset-top, 0px)) max(20px, env(safe-area-inset-right, 0px)) 14px 22px;
  display: flex; gap: 12px; align-items: flex-start; background: var(--surface);
  box-shadow: inset 0 3px 0 var(--stage, transparent), 0 1px 0 var(--line);
}
.drawer-head .t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.drawer-head h2 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.drawer-body { overflow-y: auto; padding: 18px max(20px, env(safe-area-inset-right, 0px)) calc(40px + env(safe-area-inset-bottom, 0px)) 22px; display: flex; flex-direction: column; gap: 16px; }

/* The classic sales path: arrows that lock into each other. */
.stepper { --n: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; padding-right: var(--n); }
.stepper button {
  margin-right: calc(var(--n) * -1 + 3px); min-height: 46px; border: 0; background: var(--surface-2); color: var(--muted); font-size: 12px; font-weight: 650; line-height: 1.2;
  padding: 6px calc(var(--n) + 3px) 6px calc(var(--n) + 5px); cursor: pointer; transition: background .15s, color .15s;
  clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% 50%, calc(100% - var(--n)) 100%, 0 100%, var(--n) 50%);
}
.stepper button:first-child { padding-left: 10px; border-radius: 10px 0 0 10px; clip-path: polygon(0 0, calc(100% - var(--n)) 0, 100% 50%, calc(100% - var(--n)) 100%, 0 100%); }
.stepper button.done { background: color-mix(in srgb, var(--accent) 20%, var(--surface-2)); color: var(--accent); }
.stepper button.current { background: var(--accent); color: var(--accent-ink); }
.stepper button.current.win { background: var(--win); color: var(--win-on); }
.stepper button:hover:not(.current):not(:disabled) { background: var(--surface-3); color: var(--ink); }
.stepper button.done:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 30%, var(--surface-2)); color: var(--accent); }
.stepper button:focus-visible { outline-offset: -4px; }
.stepper button:disabled { cursor: default; }
@media (max-width: 560px) { .stepper { --n: 6px; } .stepper button { font-size: 11px; padding-inline: 8px 4px; } .stepper button:first-child { padding-left: 6px; } }

.box { background: var(--surface); border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); padding: 16px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.box h3 { font-size: 15px; font-weight: 650; color: var(--ink); display: flex; align-items: center; gap: 8px; }
.box h3 .act { margin-left: auto; font-family: var(--font); letter-spacing: 0; }
.box.next { background: color-mix(in srgb, var(--accent-soft) 45%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 28%, var(--line)), var(--shadow-1); }

.box.call { background: color-mix(in srgb, var(--win-soft) 55%, var(--surface)); box-shadow: 0 0 0 1px color-mix(in srgb, var(--win) 42%, var(--line)), var(--shadow-1); }
.big { font-family: var(--display); font-size: 22px; font-weight: 700; letter-spacing: -.02em; line-height: 1.2; }
.kv { display: grid; grid-template-columns: minmax(110px, 38%) minmax(0, 1fr); gap: 8px 14px; font-size: 14px; margin: 0; }
.kv dt { color: var(--faint); font-weight: 550; }
.kv dd { margin: 0; overflow-wrap: anywhere; }
.kv a { text-decoration: none; }
.kv a:hover { text-decoration: underline; }
.tip { font-size: 13.5px; color: var(--muted); background: var(--accent-soft); border-radius: var(--r-sm); padding: 10px 12px; }
.tip b { color: var(--ink); }
.ask { font-size: 13.5px; color: var(--win-ink); background: var(--win-soft); border-radius: var(--r-sm); padding: 10px 12px; }

.cadence { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cadence .s { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--faint); min-width: 0; }
.cadence .s i { height: 6px; border-radius: 99px; background: var(--line); display: block; }
.cadence .s.done i { background: var(--accent); }
.cadence .s.next i { background: var(--win); }
.cadence .s.next { color: var(--ink); font-weight: 650; }

.timeline { display: flex; flex-direction: column; gap: 0; }
.tl { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.tl::before { content: ""; position: absolute; left: 6px; top: 16px; bottom: 0; width: 2px; background: var(--line); }
.tl:last-child::before { display: none; }
.tl .dot { width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 3px solid var(--faint); margin-top: 3px; }
.tl.stage .dot { border-color: var(--accent); }
.tl.meeting .dot { border-color: var(--win); }
.tl.heat .dot { border-color: var(--danger); }
.tl .what { font-weight: 600; font-size: 14px; }
.tl .when { font-size: 12.5px; color: var(--faint); }
.tl .note { font-size: 14px; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 2px; }

/* ---------- dialogs */
dialog.modal {
  border: 0; padding: 0; border-radius: var(--r-lg); background: var(--bg); color: var(--ink); width: min(600px, calc(100% - 32px));
  max-height: calc(100% - 48px); box-shadow: 0 0 0 1px var(--line), var(--shadow-3); animation: pop .18s cubic-bezier(.2, .8, .2, 1);
}
dialog.modal.wide { width: min(760px, calc(100% - 32px)); }
dialog.modal::backdrop { background: var(--scrim); backdrop-filter: blur(2px); }
.modal form { display: flex; flex-direction: column; max-height: calc(100vh - 48px); }
.modal header { display: flex; align-items: flex-start; gap: 12px; padding: 20px 22px 12px; }
.modal header h2 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; flex: 1; }
.modal header .sub { font-size: 13.5px; color: var(--muted); margin-top: 4px; font-weight: 500; }
.modal .modal-body { overflow-y: auto; padding: 6px 22px 18px; display: flex; flex-direction: column; gap: 16px; }
.modal footer { display: flex; gap: 8px; justify-content: flex-end; padding: 14px 22px calc(16px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--line); background: var(--surface); border-radius: 0 0 var(--r-lg) var(--r-lg); flex-wrap: wrap; }
.form-error { color: var(--danger); background: var(--danger-soft); border-radius: var(--r-sm); padding: 10px 12px; font-weight: 600; font-size: 14px; margin: 0 22px 12px; }
@media (max-width: 560px) {
  dialog.modal, dialog.modal.wide { width: 100%; max-width: 100%; margin: auto 0 0; border-radius: var(--r-lg) var(--r-lg) 0 0; max-height: 94%; }
  .modal form { max-height: 94vh; }
  .modal footer { border-radius: 0; }
  .modal footer .btn { flex: 1; }
}

/* ---------- scoreboard */
.tabs { display: inline-flex; background: color-mix(in srgb, var(--ink) 7%, transparent); border-radius: var(--r-sm); padding: 3px; gap: 2px; }
.tabs button { border: 0; background: transparent; padding: 6px 13px; border-radius: 7px; font-weight: 600; color: var(--muted); cursor: pointer; font-size: 14px; transition: background .15s, color .15s; }
.tabs button:hover { color: var(--ink); }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--ring), var(--shadow-1); }
.board-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.board-table th { font-size: 12.5px; font-weight: 600; color: var(--faint); text-align: right; padding: 11px 14px; white-space: nowrap; }
.board-table th:nth-child(2), .board-table td:nth-child(2) { text-align: left; }
.board-table td { padding: 12px 14px; border-top: 1px solid var(--line); text-align: right; white-space: nowrap; }
.board-table .rank { font-family: var(--display); font-weight: 700; color: var(--faint); width: 44px; text-align: center; }
.board-table tr.first .rank { color: var(--win-ink); }
.board-table tr.first .rank::before { content: "★ "; color: var(--win); }
.board-table tr.me td { background: var(--accent-soft); }
.board-table .pts { font-family: var(--display); font-weight: 700; font-size: 17px; }
.board-table .who { display: flex; align-items: center; gap: 10px; font-weight: 650; }
.scroll-x { overflow-x: auto; }
.visibility { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; padding: 16px; }
.visibility .txt { flex: 1 1 260px; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.visibility .txt b { font-size: 15px; font-weight: 650; }
.visibility .txt span { font-size: 13.5px; color: var(--muted); }
.bars { display: flex; flex-direction: column; gap: 8px; }
.bar { display: grid; grid-template-columns: minmax(120px, 40%) minmax(0, 1fr) 36px; gap: 10px; align-items: center; font-size: 14px; }
.bar .track { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.bar .track i { display: block; height: 100%; background: var(--accent); border-radius: 99px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.bar.lost .track i { background: var(--danger); }
.bar .num { text-align: right; font-weight: 650; }
.two-col { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 860px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.legend { font-size: 13px; color: var(--faint); max-width: 76ch; }

/* ---------- team */
.member { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 14px 16px; }
.member .info { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.member .info b { font-weight: 650; overflow-wrap: anywhere; }
.member .info span { font-size: 13px; color: var(--faint); }
.member .ctrl { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.member .ctrl input { width: 70px; min-height: 32px; padding: 4px 8px; }
.member .ctrl .check input { width: 18px; min-height: 0; padding: 0; }
@media (max-width: 680px) { .member { grid-template-columns: auto minmax(0, 1fr); } .member .ctrl { grid-column: 1 / -1; justify-content: flex-start; } }
.invite-box { display: flex; gap: 8px; align-items: center; background: var(--win-soft); border-radius: var(--r-sm); padding: 10px 12px; flex-wrap: wrap; }
.invite-box code { flex: 1 1 220px; min-width: 0; overflow-wrap: anywhere; font-size: 12.5px; user-select: all; }

/* ---------- auth */
.auth { min-height: 100vh; min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); background: var(--bg); }
.auth-main { display: flex; flex-direction: column; justify-content: center; gap: 26px; padding-block: 48px; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); max-width: 460px; width: 100%; margin: 0 auto; }
.auth-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.auth-top .brand { padding: 0; }
.auth-main h1 { font-size: 36px; font-weight: 700; letter-spacing: -.03em; margin-bottom: 6px; }
.auth-main form { display: flex; flex-direction: column; gap: 14px; }
.auth-main .btn.primary { min-height: 44px; }
.auth-side {
  position: relative; overflow: hidden; color: #F3F1EA; padding: 56px clamp(40px, 6vw, 88px); display: flex; flex-direction: column; justify-content: center; gap: 30px;
  background: radial-gradient(85% 65% at 88% 6%, rgba(26, 95, 214, .42), transparent 64%), radial-gradient(70% 55% at 4% 100%, rgba(246, 160, 77, .22), transparent 62%), var(--hero-bg);
}
.auth-side .eyebrow { color: var(--win); }
.auth-side h2 { font-size: clamp(38px, 4.2vw, 56px); font-weight: 700; letter-spacing: -.035em; line-height: 1.04; max-width: 13ch; }
.auth-side ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; counter-reset: s; }
.auth-side li { position: relative; counter-increment: s; display: flex; gap: 14px; align-items: center; font-weight: 600; color: #C9CEDA; }
.auth-side li::before { content: counter(s); width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid #5A6478; display: grid; place-items: center; font-size: 13px; flex: none; background: var(--hero-bg); position: relative; z-index: 1; }
.auth-side li:not(:last-child)::after { content: ""; position: absolute; left: 14px; top: 30px; height: 14px; width: 2px; background: #3C4659; }
.auth-side li.win { color: #fff; font-size: 17px; }
.auth-side li.win::before { background: var(--win); border-color: var(--win); color: #2B1A06; box-shadow: 0 0 0 5px rgba(246, 160, 77, .22); }
.auth-side .rule { font-size: 15px; color: #C9CEDA; max-width: 36ch; }
@media (max-width: 860px) { .auth { grid-template-columns: minmax(0, 1fr); } .auth-side { display: none; } }

/* ---------- toasts */
#toasts { position: fixed; z-index: 100; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100% - 32px); pointer-events: none; }
.toast { background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 12px; font-weight: 600; box-shadow: var(--shadow-2); animation: pop .2s ease-out; }
.toast.error { background: var(--danger); color: var(--on-danger); }
.toast.win { background: var(--win); color: var(--win-on); }
.toast.mark { display: flex; align-items: center; gap: 8px; border: 0; cursor: pointer; pointer-events: auto; text-align: left; max-width: 100%; }
.toast.mark span:last-child { overflow-wrap: anywhere; }
@media (max-width: 860px) { #toasts { bottom: calc(92px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- small pieces */
.grow { flex: 1; min-width: 0; }
.field-label { font-size: 13px; font-weight: 600; color: var(--muted); }
.mini { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; font-weight: 600; color: var(--faint); }
select.inline, .topbar select { width: auto; min-height: 38px; padding: 6px 30px 6px 11px; font-weight: 550; }
.btn.sm.icon-btn { width: 32px; }
.drawer.still, .scrim.still { animation: none; }

.panel.row { text-decoration: none; color: inherit; border-radius: var(--r); }
.panel.row svg { width: 18px; height: 18px; color: var(--accent); }
.playbook summary { cursor: pointer; list-style: none; }
.playbook summary::-webkit-details-marker { display: none; }
.playbook summary h3::after { content: "Show"; margin-left: auto; font-family: var(--font); font-size: 12.5px; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.playbook[open] summary h3::after { content: "Hide"; }
.playbook[open] summary { margin-bottom: 4px; }
.steps { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 14px; }
.note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.win-check { background: var(--win-soft); color: var(--win-ink); border-radius: var(--r-sm); padding: 10px 12px; }
.win-check input { accent-color: var(--win); }
.auth .form-error { margin: 0; }
.member .ctrl .mini input { width: 86px; }
.account-sheet { display: flex; flex-direction: column; gap: 14px; }
.account-sheet .btn { width: 100%; }
.reminder summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--accent); }
.reminder[open] summary { margin-bottom: 12px; }
.reminder-when { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; align-items: start; min-width: 0; }
.reminder-when .quick { grid-column: 1 / -1; }
.pool-check { font-size: 13px; }

/* ---------- follow-ups on top of the pipeline */
.follow summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; cursor: pointer; list-style: none; font-size: 14px; flex-wrap: wrap; }
.follow summary::-webkit-details-marker { display: none; }
.follow summary::after { content: "Show"; margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.follow[open] summary::after { content: "Hide"; }
.follow summary svg { width: 17px; height: 17px; color: var(--accent); flex: none; }
.follow.waiting { box-shadow: 0 0 0 1px color-mix(in srgb, var(--win) 42%, var(--line)), var(--shadow-1); }
.follow.waiting summary { background: var(--win-soft); border-radius: var(--r); color: var(--win-ink); }
.follow.waiting[open] summary { border-radius: var(--r) var(--r) 0 0; }
.follow.waiting summary svg, .follow.waiting summary .muted, .follow.waiting summary::after { color: var(--win-ink); }
.follow .list { max-height: min(186px, 26vh); overflow-y: auto; border-top: 1px solid var(--line); }
.follow .row { padding: 8px 14px; }
.follow .row:first-child { border-radius: 0; }
.follow select.inline { width: auto; max-width: 150px; }
.row.static { cursor: default; }
.row.static:hover { background: none; }
@media (max-width: 860px) { .follow .list { max-height: 300px; } }

/* ---------- seeing the app as a teammate */
.view-banner { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 8px 16px; background: var(--win-soft); color: var(--win-ink); font-size: 14px; font-weight: 600; }
.view-banner svg { width: 18px; height: 18px; flex: none; }
.view-banner span { flex: 1 1 220px; min-width: 0; }
.section-body { display: flex; flex-direction: column; gap: 10px; }

/* ---------- marks: one colour each, on badges, buttons and the dashboard */
.heat-super_hot { --h: var(--danger); --h-soft: var(--danger-soft); }
.heat-hot { --h: var(--win-ink); --h-soft: var(--win-soft); }
.heat-cold { --h: var(--accent); --h-soft: var(--accent-soft); }
.heat-stale { --h: var(--stale); --h-soft: var(--stale-soft); }
.heat-picker { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.heat-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 40px; padding: 0 6px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); color: var(--muted); font-size: 13px; font-weight: 650; white-space: nowrap; cursor: pointer; transition: background .15s, border-color .15s, color .15s;
}
.heat-btn svg { width: 15px; height: 15px; flex: none; color: var(--h); }
.heat-btn:hover { border-color: var(--h); color: var(--ink); }
.heat-btn[aria-pressed="true"] { background: var(--h-soft); border-color: var(--h); color: var(--h); }
@media (max-width: 420px) { .heat-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.bell { position: relative; }
.bell-n { position: absolute; top: -5px; right: -5px; min-width: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: var(--on-danger); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center; }

/* ---------- filters */
.my-filters { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.my-filters select { max-width: 220px; }
.my-filters input { width: 190px; min-height: 38px; padding-block: 6px; }
@media (max-width: 860px) {
  .my-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .my-filters select { width: 100%; max-width: none; }
  .my-filters input { width: 100%; }
  .my-filters .btn { grid-column: 1 / -1; }
}

/* ---------- switch */
.switch-row { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: var(--r); background: var(--surface); box-shadow: var(--ring), var(--shadow-1); cursor: pointer; }
.switch-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.switch-row .txt b { font-weight: 650; font-size: 14px; }
.switch-row .txt span { font-size: 13px; color: var(--muted); }
.switch-row input { appearance: none; -webkit-appearance: none; position: relative; flex: none; width: 42px; height: 24px; margin: 0; border-radius: 99px; background: var(--line-strong); cursor: pointer; transition: background .15s; }
.switch-row input::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .3); transition: transform .15s; }
.switch-row input:checked { background: var(--accent); }
.switch-row input:checked::before { transform: translateX(18px); }

/* ---------- discount wheel */
.wheel {
  position: relative; width: 148px; height: 128px; overflow: hidden; perspective: 320px; border-radius: var(--r); background: var(--surface);
  box-shadow: var(--ring), inset 0 16px 14px -14px color-mix(in srgb, var(--ink) 22%, transparent), inset 0 -16px 14px -14px color-mix(in srgb, var(--ink) 22%, transparent);
  cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none;
}
.wheel::before { content: ""; position: absolute; inset: 44px 8px; border-radius: 9px; background: var(--accent-soft); }
.wheel .slot {
  position: absolute; inset: 44px 8px auto; height: 40px; display: grid; place-items: center; font-family: var(--display); font-size: 17px; font-weight: 600; color: var(--faint);
  transform: translateY(calc(var(--pos) * 40px)) rotateX(calc(var(--pos) * -34deg)); transition: transform .24s cubic-bezier(.2, .8, .2, 1), opacity .2s, color .15s;
}
.wheel .slot.on { font-size: 24px; font-weight: 700; color: var(--accent); }
.wheel .slot.far { opacity: 0; pointer-events: none; }

/* ---------- speaking a note */
.voice-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.voice-btn { min-height: 46px; padding-inline: 18px; }
.voice-btn.live { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-strong); }
.voice-status { flex: 1 1 200px; margin: 0; font-size: 14px; font-weight: 600; color: var(--accent-strong); }
.voice-status.problem { color: var(--danger); }
textarea.listening { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.voice-note { display: block; width: 100%; min-width: 0; height: 40px; margin-top: 6px; }

/* ---------- hand out leads */
.leads-filters { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 860px) { .leads-filters { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .leads-filters { grid-template-columns: minmax(0, 1fr); } }
.leads-filters .check.span { grid-column: 1 / -1; }
.held-filters { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .held-filters { grid-template-columns: minmax(0, 1fr); } }
.lead-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 6px 14px; align-items: center; padding: 11px 16px; border-top: 1px solid var(--line); cursor: pointer; transition: background .12s; }
.lead-row:first-child { border-top: 0; }
.lead-row:hover { background: color-mix(in srgb, var(--surface-2) 65%, transparent); }
.lead-row:last-child { border-bottom-left-radius: var(--r); border-bottom-right-radius: var(--r); }
.lead-row input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.lead-row.head { font-weight: 600; background: var(--surface-2); border-radius: var(--r) var(--r) 0 0; }
.lead-row.taken { cursor: default; opacity: .62; }
@media (max-width: 560px) { .lead-row { grid-template-columns: auto minmax(0, 1fr); } .lead-row .row-side { grid-column: 2; justify-content: flex-start; } }
.sendbar {
  position: sticky; bottom: 12px; z-index: 15; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-radius: var(--r); padding: 12px 16px; box-shadow: var(--ring), var(--shadow-2);
}
.sendbar .btn { margin-left: auto; }
@media (max-width: 860px) { .sendbar { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); } }
.mf-results { display: flex; flex-direction: column; gap: 14px; }
.panel.busy { opacity: .6; transition: opacity .15s; }
.pager { display: flex; align-items: center; justify-content: center; gap: 12px; flex-wrap: wrap; }
.picker { border-radius: var(--r-sm); box-shadow: var(--ring); }
.picker summary { cursor: pointer; padding: 9px 12px; font-weight: 550; }
.picker-body { display: flex; flex-direction: column; gap: 8px; padding: 0 12px 12px; }
.picker-top { display: flex; align-items: center; gap: 8px; }
.picker-top input { flex: 1; min-width: 0; }
.picker-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 2px 10px; max-height: 216px; overflow-y: auto; }
.picker-list .check { display: flex; align-items: center; gap: 8px; padding: 3px 2px; font-weight: 500; }
.picker-list .check[hidden] { display: none; }
.picker-list input { width: 17px; height: 17px; min-height: 0; padding: 0; margin: 0; accent-color: var(--accent); }

/* ---------- map */
.map-page { display: grid; grid-template-columns: 372px minmax(0, 1fr); gap: 16px; height: calc(100dvh - 118px); min-height: 560px; }
.map-side { display: flex; flex-direction: column; gap: 14px; min-height: 0; overflow-y: auto; padding: 2px 4px 2px 2px; }
.map-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.map-stat { display: flex; flex-direction: column; min-width: 0; padding: 8px 10px; background: var(--surface); border-radius: var(--r-sm); box-shadow: var(--ring); }
.map-stat b { font-family: var(--display); font-size: 16px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; }
.map-stat span { font-size: 11.5px; color: var(--faint); }
.map-form { display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--surface); border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); }
.map-find { display: flex; gap: 8px; }
.map-find input { flex: 1; min-width: 0; }
.map-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.map-more summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.map-more-body { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.map-form input[type="range"] { width: 100%; min-height: 0; padding: 0; border: 0; background: none; box-shadow: none; accent-color: var(--accent); }
.map-plan { display: flex; flex-direction: column; gap: 8px; }
.map-list { list-style: none; margin: 0; padding: 0; background: var(--surface); border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); }
.map-row { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: start; padding: 10px 12px; border-top: 1px solid var(--line); }
.map-row:first-child { border-top: 0; }
.map-row.active { background: var(--accent-soft); }
.map-row.taken { opacity: .62; }
.map-row.plain { grid-template-columns: minmax(0, 1fr); }
.map-row input { width: 18px; height: 18px; min-height: 0; padding: 0; margin: 2px 0 0; accent-color: var(--accent); }
.map-row-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.map-row-main b { font-weight: 650; }
.map-tag { display: flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.map-tag i { flex: none; width: 9px; height: 9px; border-radius: 50%; }
.map-none { padding: 14px; font-size: 13.5px; color: var(--faint); }
.map-main { display: flex; flex-direction: column; gap: 10px; min-width: 0; min-height: 0; }
.map-count { margin: 0; font-size: 13.5px; color: var(--faint); }
.map-canvas { flex: 1; min-height: 0; isolation: isolate; overflow: hidden; border-radius: var(--r); box-shadow: var(--ring), var(--shadow-1); }
.map-main .sendbar { position: static; }
.map-form .search input { width: 100%; }
.map-form .search { flex: none; }
.map-form .my-filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.map-form .my-filters select { width: 100%; max-width: none; }
.map-form .my-filters input { width: 100%; }
.map-form .my-filters .btn { grid-column: 1 / -1; }
.map-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); min-height: 20px; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; }
.map-legend i { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px var(--surface); }
.map-center { border-radius: 50%; border: 3px solid #fff; background: var(--ink); box-shadow: var(--shadow-2); }
.map-canvas.leaflet-container { font-family: var(--font); background: var(--surface-2); }
.map-canvas .leaflet-tile-pane { filter: var(--map-filter); }
.map-canvas .leaflet-popup-content-wrapper, .map-canvas .leaflet-popup-tip { background: var(--surface); color: var(--ink); box-shadow: var(--shadow-2); }
.map-canvas .leaflet-popup-content { margin: 12px 14px; font-size: 13.5px; line-height: 1.4; }
.map-canvas .map-popup p { margin: 3px 0 8px; }
.map-canvas .map-popup a { color: inherit; }
.map-canvas .leaflet-bar a { background: var(--surface); color: var(--ink); border-bottom-color: var(--line); }
.map-canvas .leaflet-bar a:hover { background: var(--surface-2); }
.map-canvas .leaflet-tooltip { background: var(--surface); color: var(--ink); border: 0; box-shadow: var(--shadow-1); }
.map-canvas.leaflet-container .leaflet-control-attribution { background: color-mix(in srgb, var(--surface) 82%, transparent); color: var(--faint); }
.map-canvas.leaflet-container .leaflet-control-attribution a { color: var(--accent); }
@media (max-width: 860px) {
  .map-page { grid-template-columns: minmax(0, 1fr); height: auto; }
  .map-main { order: -1; }
  .map-canvas { flex: none; height: 46dvh; }
  .map-side { overflow: visible; padding: 0; }
}

/* ---------- calendar */
.cal-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cal-head h2 { min-width: 176px; font-size: 20px; text-align: center; }
.cal-sum { margin-left: auto; font-size: 14px; }
.cal-layout { display: grid; grid-template-columns: minmax(0, 620px) minmax(280px, 1fr); gap: 16px; align-items: start; }
.cal-single { display: flex; flex-direction: column; gap: 18px; width: 100%; max-width: 680px; margin-inline: auto; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-wd { padding: 8px 10px; font-size: 12.5px; font-weight: 600; color: var(--faint); }
.cal-day {
  display: flex; flex-direction: column; gap: 3px; min-width: 0; min-height: 72px; padding: 4px 5px; border: 0; border-top: 1px solid var(--line); border-left: 1px solid var(--line);
  background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; transition: background .12s;
}
.cal-day:nth-child(7n+1) { border-left: 0; }
.cal-day:hover { background: var(--surface-2); }
.cal-day.other { color: var(--faint); background: color-mix(in srgb, var(--surface-2) 45%, transparent); }
.cal-day[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent); }
.cal-n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: 13px; font-weight: 600; }
.cal-day.today .cal-n { background: var(--accent); color: var(--accent-ink); }
.cal-marks { display: flex; flex-wrap: wrap; gap: 2px 3px; }
.cal-mark { display: inline-flex; align-items: center; gap: 2px; padding: 0 4px; border-radius: 5px; font-size: 11px; font-weight: 650; line-height: 16px; }
.cal-mark svg { width: 11px; height: 11px; flex: none; }
.cal-mark.reminder { background: var(--accent-soft); color: var(--accent); }
.cal-mark.call { background: var(--win-soft); color: var(--win-ink); }
.cal-mark.done { background: var(--ok-soft); color: var(--ok); }
.cal-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; padding: 9px 12px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.cal-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cal-legend .cal-mark { padding: 0 3px; }
.cal-day-panel h2 { font-size: 18px; }
.cal-day-panel h3 { margin-top: 12px; font-size: 14px; }
.cal-rows { display: flex; flex-direction: column; }
.cal-row { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 10px; align-items: baseline; width: 100%; padding: 9px 14px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); font: inherit; text-align: left; }
.cal-row:first-child { border-top: 0; }
.cal-rows > .cal-row:first-child { border-radius: var(--r) var(--r) 0 0; }
.cal-single .cal-row { grid-template-columns: 92px minmax(0, 1fr); }
.cal-single .cal-day { min-height: 58px; }
button.cal-row { cursor: pointer; }
button.cal-row:hover { background: var(--surface-2); }
.cal-row .row-main { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.cal-row b { font-weight: 650; }
.cal-time { font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--faint); }
.cal-day-panel .cal-row { padding-inline: 0; }
.cal-timeline { display: flex; flex-direction: column; gap: 18px; }
.cal-tl-day { display: grid; grid-template-columns: 176px minmax(0, 1fr); gap: 16px; align-items: start; }
.cal-tl-head { display: flex; flex-direction: column; gap: 2px; padding: 8px 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
@media (max-width: 1100px) { .cal-layout { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) {
  .cal-head h2 { min-width: 0; flex: 1; }
  .cal-sum { margin-left: 0; flex-basis: 100%; }
  .cal-wd { padding: 6px 2px; text-align: center; }
  .cal-day { align-items: center; min-height: 62px; padding: 3px 1px; }
  .cal-marks { justify-content: center; }
  .cal-mark { padding: 0 2px; font-size: 10px; }
  .cal-mark svg { display: none; }
  .cal-legend .cal-mark svg { display: block; }
  .cal-tl-day { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}

/* ---------- motion */
@keyframes slide { from { transform: translateX(24px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { transform: translateY(10px) scale(.98); opacity: 0; } }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } }
@keyframes shimmer { to { transform: translateX(100%); } }
@keyframes breathe { 50% { opacity: .5; } }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .22s; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ---------- locations per team member */
.places { width: 100%; border-collapse: collapse; }
.places th { padding: 10px 16px; text-align: left; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.places td { padding: 12px 16px; vertical-align: middle; border-top: 1px solid var(--line); }
.places td:last-child { text-align: right; white-space: nowrap; }
.places-who { display: inline-flex; align-items: center; gap: 10px; font-weight: 650; }
.place-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.place-chip { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; background: var(--accent-soft); color: var(--accent); font-size: 13px; font-weight: 600; }
.place-chip button { display: grid; place-items: center; width: 18px; height: 18px; margin-right: -4px; padding: 0; border: 0; border-radius: 50%; background: none; color: inherit; cursor: pointer; }
.place-chip button:hover { background: color-mix(in srgb, currentColor 14%, transparent); }
.place-chip svg { width: 12px; height: 12px; }
.places-line { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 13px; color: var(--muted); }
.places-line > span { flex: 1; min-width: 0; }
.leads-filters .places-line { grid-column: 1 / -1; }
.my-places { display: flex; flex-direction: column; gap: 8px; }
.my-places h2 { font-size: 14px; font-weight: 650; }
.place-pick { display: flex; flex-direction: column; gap: 10px; }
.place-list { display: flex; flex-direction: column; gap: 2px; height: min(340px, 44dvh); overflow-y: auto; padding: 2px; }
.place-list h3 { margin: 10px 0 4px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.place-opt { display: flex; align-items: center; gap: 8px; padding: 6px 4px; }
.place-opt span:nth-of-type(1) { flex: 1; min-width: 0; }
@media (max-width: 680px) {
  .places thead { display: none; }
  .places tr { display: block; padding: 10px 16px; border-top: 1px solid var(--line); }
  .places td { display: block; padding: 4px 0; border: 0; }
  .places td:last-child { text-align: left; }
}
