/* Typography (v0.10.158): Figtree throughout (SIL Open Font License, public/fonts/OFL-figtree.txt), served from this app
   so it works offline and under the strict CSP: two variable files (latin, latin-ext), 30 KB, every weight.
   One scale, as tokens on :root: page titles 24/600, section headings 18/600, everything else 14 (labels 14/500),
   helper text, timestamps and badges 12; body line-height 20px; weights 400 regular, 500 emphasis, 600 headings. */
@font-face { font-family: "Figtree"; font-style: normal; font-weight: var(--fw-regular) 900; font-display: swap; src: url("/fonts/figtree-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/source-sans-3-latin.woff2") format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Source Sans 3"; font-style: normal; font-weight: 200 900; font-display: swap; src: url("/fonts/source-sans-3-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Figtree"; font-style: normal; font-weight: var(--fw-regular) 900; font-display: swap; src: url("/fonts/figtree-latin-ext.woff2") format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
:root {
  --font: "Source Sans 3", "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --fs-title: 26px; --fs-section: 19px; --fs-body: 15px; --fs-label: 15px; --fs-small: 13px; --lh-body: 21px;
  --fw-regular: 400; --fw-emph: 500; --fw-head: 600;
  --bg: #f5f6fa; --surface: #ffffff; --surface-2: #f1f3f8; --ink: #1c2434; --muted: #5d6779;
  --line: #e1e5ee; --primary: #0f766e; --primary-ink: #ffffff; --primary-soft: #dcf3ef;
  --danger: #c0262d; --danger-soft: #fde8e8; --warn: #9a5a00; --warn-soft: #fff0d1; --ok: #17703a; --ok-soft: #dcf5e4;
  --info: #1f5fbf; --info-soft: #e1ecfc; --purple: #6b3fc7; --purple-soft: #ece4fb; --pink: #b8286f; --pink-soft: #fde3ef;
  --focus: #1d4ed8; --radius: 12px; --shadow: 0 1px 2px rgba(28, 36, 52, .05), 0 6px 18px rgba(28, 36, 52, .05);
  --side: #ffffff;
}
:root[data-theme="dark"] {
  --bg: #0f1522; --surface: #171f31; --surface-2: #1e283d; --ink: #e8edf6; --muted: #9aa7bd;
  --line: #2a3650; --primary: #2dd4bf; --primary-ink: #04201c; --primary-soft: #123b36;
  --danger: #ff8a80; --danger-soft: #3a1714; --warn: #ffcf7a; --warn-soft: #382a0d; --ok: #7be3a0; --ok-soft: #12301f;
  --info: #8ab4ff; --info-soft: #172a4d; --purple: #c4a8ff; --purple-soft: #2a2050; --pink: #ff9ac4; --pink-soft: #3d1830;
  --focus: #8ab4ff; --shadow: none; --side: #121a2b;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f1522; --surface: #171f31; --surface-2: #1e283d; --ink: #e8edf6; --muted: #9aa7bd;
    --line: #2a3650; --primary: #2dd4bf; --primary-ink: #04201c; --primary-soft: #123b36;
    --danger: #ff8a80; --danger-soft: #3a1714; --warn: #ffcf7a; --warn-soft: #382a0d; --ok: #7be3a0; --ok-soft: #12301f;
    --info: #8ab4ff; --info-soft: #172a4d; --purple: #c4a8ff; --purple-soft: #2a2050; --pink: #ff9ac4; --pink-soft: #3d1830;
    --focus: #8ab4ff; --shadow: none; --side: #121a2b;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fw-regular) var(--fs-body)/var(--lh-body) var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5rem; }
h1 { font-size: var(--fs-section); } h2 { font-size: var(--fs-body); } h3 { font-size: var(--fs-body); }
p { margin: 0 0 .75rem; }
a { color: var(--primary); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 0; background: var(--surface); padding: .5rem 1rem; z-index: 99; }
.skip:focus { left: 8px; top: 8px; }
.loading, .pad { padding: 2rem; color: var(--muted); }
.hidden { display: none !important; }
.muted { color: var(--muted); } .small { font-size: var(--fs-body); } .mono { font-variant-numeric: tabular-nums; }
.error { color: var(--danger); font-weight: var(--fw-emph); min-height: 1.4em; }
.row { display: flex; gap: .75rem; align-items: center; flex-wrap: wrap; } .row.end { justify-content: flex-end; } .row.between { justify-content: space-between; }
.stack > * + * { margin-top: .75rem; }
.grow { flex: 1 1 0; min-width: 0; }

/* shell: left menu + top bar */
.layout { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
.sidenav { position: sticky; top: 0; align-self: start; height: 100vh; overflow-y: auto; background: var(--side); border-right: 1px solid var(--line); padding: 1rem .75rem; display: flex; flex-direction: column; gap: 1rem; }
.brand { display: flex; align-items: center; gap: .6rem; color: var(--ink); text-decoration: none; padding: .2rem .4rem; }
.brand-logo { width: 38px; height: 38px; object-fit: contain; border-radius: 8px; flex: none; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text b { font-size: var(--fs-body); overflow-wrap: anywhere; } .brand-text small { color: var(--muted); }
.sidenav nav { display: flex; flex-direction: column; gap: .2rem; }
.navlink { display: flex; align-items: center; gap: .7rem; color: var(--ink); text-decoration: none; padding: .55rem .75rem; border-radius: 10px; min-height: 44px; font-weight: var(--fw-emph); }
.navlink:hover { background: var(--surface-2); }
.navlink.active { background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-emph); }
.ico { flex: none; }
.content { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .55rem 1.25rem; background: var(--surface); border-bottom: 1px solid var(--line); }
.topbar-org { color: var(--muted); font-size: var(--fs-body); }

.gsearch { position: relative; display: flex; align-items: center; width: min(360px, 40vw); color: var(--muted); }
.gsearch > .ico { position: absolute; left: .65rem; width: 16px; height: 16px; pointer-events: none; }
/* .gsearch scope beats the generic input[type=search] rule further down, which would otherwise reset the
   left padding and put the magnifier on top of the placeholder text. */
.gsearch .gsearch-input { width: 100%; padding: .5rem .7rem .5rem 2.3rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; }
.gsearch-input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.gsearch-input::-webkit-search-cancel-button { cursor: pointer; }
.gsearch-panel { position: absolute; left: 0; top: calc(100% + 6px); width: min(420px, calc(100vw - 2rem)); max-height: 70vh; overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); z-index: 30; }
.gsearch-item { display: flex; align-items: center; gap: .6rem; padding: .6rem .8rem; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); }
.gsearch-item:hover, .gsearch-item.active { background: var(--primary-soft); }
.gsearch-item-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.gsearch-item-main b { overflow-wrap: anywhere; }
.gsearch-group { padding: .5rem .8rem .3rem; font-size: var(--fs-small); font-weight: var(--fw-emph); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.gsearch-ico { display: inline-grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--primary-soft); color: var(--primary); }
.gsearch-ico .ico { width: 18px; height: 18px; }
.gsearch-more { display: block; padding: .6rem .8rem; text-align: center; color: var(--primary); text-decoration: none; font-weight: var(--fw-emph); font-size: var(--fs-body); }
.gsearch-more:hover { background: var(--primary-soft); }
main { width: 100%; max-width: 1240px; margin: 0 auto; padding: 1.25rem 1.25rem 3rem; min-width: 0; }
main:focus { outline: none; }
.profile { position: relative; margin-left: auto; }
.avatar-btn { display: flex; align-items: center; gap: .55rem; background: none; border: 1px solid transparent; border-radius: 999px; padding: .2rem .6rem .2rem .25rem; cursor: pointer; font: inherit; color: var(--ink); min-height: 44px; }
.avatar-btn:hover, .avatar-btn[aria-expanded=true] { background: var(--surface-2); border-color: var(--line); }
.avatar { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); font-weight: var(--fw-emph); font-size: var(--fs-body); }
.avatar.big { width: 44px; height: 44px; }
.menu { position: absolute; right: 0; top: calc(100% + 6px); width: min(320px, calc(100vw - 1.5rem)); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); z-index: 30; overflow: hidden; }
.menu-head { display: flex; gap: .75rem; align-items: center; padding: .9rem 1rem; border-bottom: 1px solid var(--line); }
.menu-head > div { min-width: 0; overflow-wrap: anywhere; }
.menu-logo { width: 44px; height: 44px; object-fit: contain; border-radius: 8px; }
.menu-section { display: flex; flex-direction: column; gap: .2rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); }
.menu-item { display: block; width: 100%; text-align: left; padding: .7rem 1rem; color: var(--ink); text-decoration: none; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; cursor: pointer; min-height: 44px; }
.menu-item:hover { background: var(--surface-2); }
.menu-item.link { color: var(--primary); font-weight: var(--fw-emph); border-bottom: 0; }
.segs { display: flex; gap: .3rem; flex-wrap: wrap; }
.seg { flex: 1 1 auto; padding: .35rem .6rem; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-body); cursor: pointer; }
.seg[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); font-weight: var(--fw-emph); }
@media (max-width: 820px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .sidenav { position: static; height: auto; flex-direction: row; align-items: center; gap: .5rem; padding: .4rem .6rem; border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .brand-text { display: none; }
  .sidenav nav { flex-direction: row; overflow-x: auto; scrollbar-width: none; flex: 1; }
  .navlink { white-space: nowrap; padding: .45rem .7rem; }
  .navlink span { display: inline; }
  .topbar-org, .avatar-name, .gsearch { display: none; }
  .topbar { padding: .3rem .8rem; justify-content: flex-end; }
}

/* settings with its own section menu, like a CRM's settings area */
.settings { display: grid; grid-template-columns: 210px minmax(0, 1fr); gap: 1.25rem; align-items: start; }
.subnav { display: flex; flex-direction: column; gap: .15rem; position: sticky; top: 4.2rem; }
.subnav a { padding: .6rem .8rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-weight: var(--fw-emph); }
.subnav a:hover { background: var(--surface-2); }
.subnav a.active { background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-emph); }
.settings-body { min-width: 0; }
.settings-body > .card + .card, .settings-body > .grid2 + .card { margin-top: 1rem; }
@media (max-width: 820px) { .settings { grid-template-columns: minmax(0, 1fr); } .subnav { flex-direction: row; overflow-x: auto; position: static; } .subnav a { white-space: nowrap; } }
.preview { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border-radius: 10px; padding: .8rem; font: inherit; font-size: var(--fs-body); margin: 0; }
.logo-preview { display: grid; place-items: center; min-height: 110px; max-width: 360px; border: 1px dashed var(--line); border-radius: 12px; padding: 1rem; margin-bottom: 1rem; background: var(--surface-2); }
.logo-preview img { max-width: 100%; max-height: 90px; object-fit: contain; }
.wrap { overflow-wrap: anywhere; word-break: break-word; }

/* cards & layout */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem 1.1rem; box-shadow: var(--shadow); }
.card + .card { margin-top: 1rem; }
.auth { max-width: 420px; margin: 8vh auto 0; }
.auth-wrap { padding: 1rem; }
.auth-brand { text-align: center; font-weight: var(--fw-head); font-size: var(--fs-title); margin-top: 6vh; color: var(--primary); }
.auth-version { text-align: center; color: var(--muted); font-size: var(--fs-small); margin: 1.5rem 0 0; }
body { -webkit-font-smoothing: antialiased; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.grid2 > * { min-width: 0; }
.queue-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.queue-grid > .card + .card, .grid2 > .card + .card { margin-top: 0; }
.side > .card + .card { margin-top: 1rem; }
@media (max-width: 900px) { .queue-grid, .grid2 { grid-template-columns: 1fr; } }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-bottom: 1rem; }
.page-head { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; justify-content: space-between; margin-bottom: 1rem; }
.page-head h1 { margin: 0; }

/* forms */
.field { display: block; margin-bottom: .8rem; }
.field > span, .field > .field-label { display: block; font-size: var(--fs-body); font-weight: var(--fw-emph); margin-bottom: .25rem; }
.field .hint { display: block; font-weight: var(--fw-regular); color: var(--muted); font-size: var(--fs-small); margin: .2rem 0 0; }
.field .req { color: var(--danger); font-weight: var(--fw-emph); }
.security-row { padding: .7rem 0; border-top: 1px solid var(--line); }
.security-row:first-of-type { border-top: none; }
.pw-checklist { list-style: none; padding: 0; margin: .3rem 0 0; font-size: var(--fs-body); display: flex; flex-direction: column; gap: .15rem; }
.pw-checklist li { color: var(--muted); }
.pw-checklist li::before { content: '○ '; }
.pw-checklist li.ok { color: var(--ok); }
.pw-checklist li.ok::before { content: '✓ '; }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: .55rem .7rem; font: inherit; color: var(--ink);
  background: var(--surface); border: 1px solid var(--line); border-radius: 10px;
}
textarea { min-height: 5.5rem; resize: vertical; }
/* Browsers paint autofilled fields with their own (often olive/yellow) background and ignore
   our `background`. This is the standard trick: delay the browser's own transition long enough
   that it never visibly applies, and paint over it ourselves via an inset box-shadow instead. */
input:-webkit-autofill, input:-webkit-autofill:hover, input:-webkit-autofill:focus, input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--ink); caret-color: var(--ink);
  -webkit-box-shadow: 0 0 0 1000px var(--surface) inset; box-shadow: 0 0 0 1000px var(--surface) inset;
  transition: background-color 600000s ease-in-out 0s;
}
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 2.6rem; }
.pw-toggle {
  position: absolute; top: 50%; right: .35rem; transform: translateY(-50%);
  width: 2.1rem; height: 2.1rem; display: grid; place-items: center;
  background: none; border: none; border-radius: 50%; color: var(--muted); cursor: pointer; padding: 0;
}
.pw-toggle:hover, .pw-toggle:focus-visible { color: var(--ink); background: var(--surface-2); }
.pw-toggle .ico { width: 18px; height: 18px; }
input[type=checkbox] { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }
.check { display: flex; gap: .6rem; align-items: flex-start; margin-bottom: .8rem; }
.check span { font-weight: var(--fw-emph); }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; } @media (max-width: 560px) { .two { grid-template-columns: 1fr; } }

/* buttons & chips */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; min-height: 44px; padding: .5rem 1rem; font: inherit; font-weight: var(--fw-emph); cursor: pointer;
  border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); text-decoration: none; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.btn.primary:hover { filter: brightness(1.08); }
.btn.danger { color: var(--danger); border-color: var(--danger); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: .25rem .7rem; font-size: var(--fs-body); }
.btn.block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: .75rem; }
.chip { min-height: 44px; padding: .45rem .85rem; font: inherit; font-weight: var(--fw-emph); cursor: pointer; border-radius: 999px;
  border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); }
.chip:hover { border-color: var(--primary); }
.chip[aria-pressed=true] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.chip.warn[aria-pressed=true] { background: var(--danger); border-color: var(--danger); color: #fff; }
.group-label { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: var(--fw-emph); margin: .4rem 0 .35rem; }

/* badges, banners, tiles */
.badge { display: inline-block; padding: .1rem .55rem; border-radius: 999px; font-size: var(--fs-small); font-weight: var(--fw-emph); background: var(--surface-2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--danger-soft); color: var(--danger); border-color: transparent; }
.badge.info { background: var(--info-soft); color: var(--info); border-color: transparent; }
.badge.purple { background: var(--purple-soft); color: var(--purple); border-color: transparent; }
.badge.pink { background: var(--pink-soft); color: var(--pink); border-color: transparent; }
.banner { padding: .75rem 1rem; border-radius: 10px; margin-bottom: 1rem; border: 1px solid transparent; }
.banner.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn); }
.banner.bad { background: var(--danger-soft); color: var(--danger); border-color: var(--danger); }
.banner.info { background: var(--primary-soft); color: var(--ink); border-color: var(--primary); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); }
.tile b { display: block; font-size: var(--fs-title); font-weight: var(--fw-head); line-height: 1.1; font-variant-numeric: tabular-nums; }
.tile span { color: var(--muted); font-size: var(--fs-body); }
.tile.alert b { color: var(--danger); }
.tile.ok b { color: var(--ok); }

/* call card */
.call-name { font-size: var(--fs-title); margin-bottom: .15rem; }
.phone { display: inline-flex; align-items: center; gap: .5rem; font-size: 1.7rem; font-weight: var(--fw-head); text-decoration: none; margin: .4rem 0; letter-spacing: .01em; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: .2rem .9rem; margin: .5rem 0 1rem; font-size: var(--fs-body); }
.facts dt { color: var(--muted); } .facts dd { margin: 0; overflow-wrap: anywhere; }
.history { list-style: none; padding: 0; margin: 0; }
.history li { padding: .5rem 0; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.history li:first-child { border-top: 0; }
.history .sys { color: var(--muted); font-style: italic; }
.email-panel { background: var(--primary-soft); border-radius: 10px; padding: .8rem; margin-bottom: .8rem; }
details.cs { border-top: 1px solid var(--line); padding: .4rem 0; }
details.cs:first-of-type { border-top: 0; }
details.cs summary { cursor: pointer; font-weight: var(--fw-emph); min-height: 36px; display: flex; align-items: center; }
details.cs blockquote { margin: .3rem 0 .4rem; padding: .5rem .8rem; border-left: 4px solid var(--primary); background: var(--surface-2); border-radius: 0 8px 8px 0; font-style: italic; }
.upnext { list-style: none; margin: 0; padding: 0; }
.upnext li { display: flex; justify-content: space-between; gap: .5rem; padding: .45rem 0; border-top: 1px solid var(--line); font-size: var(--fs-body); }
.upnext li:first-child { border-top: 0; }

/* tables */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: var(--fs-body); }
th, td { text-align: left; padding: .55rem .75rem; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: var(--fs-small); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); background: var(--surface-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
.bar { height: 10px; background: var(--primary); border-radius: 999px; min-width: 2px; }
.bar-track { background: var(--surface-2); border-radius: 999px; height: 10px; }
.spark { display: flex; align-items: flex-end; gap: 6px; height: 90px; }
.spark > div { flex: 1; text-align: center; font-size: var(--fs-small); color: var(--muted); display: flex; flex-direction: column; justify-content: flex-end; height: 100%; }
.spark .bar { flex: none; min-height: 2px; width: 100%; border-radius: 6px 6px 0 0; }

/* pipeline */
.pipeline { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: .75rem; overflow-x: auto; padding-bottom: .5rem; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; }
.col h3 { display: flex; justify-content: space-between; }
.pcard { display: block; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .5rem .65rem; margin-bottom: .5rem; text-decoration: none; color: var(--ink); font-size: var(--fs-body); }
.pcard:hover { border-color: var(--primary); }

/* dialog & toast */
dialog.modal { border: 1px solid var(--line); border-radius: var(--radius); padding: 1.1rem 1.25rem; background: var(--surface); color: var(--ink); width: min(520px, calc(100vw - 2rem)); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); }
dialog.modal::backdrop { background: rgba(0, 0, 0, .45); }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translate(-50%, 140%); background: var(--ink); color: var(--bg); padding: .7rem 1.1rem; border-radius: 10px; transition: transform .2s, opacity .2s; opacity: 0; pointer-events: none; z-index: 100; max-width: calc(100vw - 2rem); }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.err { background: var(--danger); color: #fff; }
@media (prefers-reduced-motion: reduce) { .toast { transition: none; } }
.empty { text-align: center; padding: 2.5rem 1rem; }
.empty h2 { margin-bottom: .4rem; }
.bar-cell { width: 45%; }
.checks{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:.4rem;margin:.75rem 0}

/* compact filter bar: controls sit side by side instead of one per row */
.toolbar > select, .toolbar > input[type=search], .toolbar > input[type=text] { width: auto; flex: 1 1 150px; max-width: 230px; min-height: 40px; }
.toolbar > .grow { flex: 2 1 260px; max-width: 420px; }
.nowrap { white-space: nowrap; }
.count { margin: 0; font-size: var(--fs-section); }
.pager { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; font-size: var(--fs-body); }
.pager select { width: auto; min-height: 34px; padding: .25rem .5rem; }
.pagebox { width: 4.2rem !important; min-height: 34px !important; padding: .2rem .4rem !important; text-align: center; }
.selbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: .55rem .8rem; margin: .5rem 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); }
.selcol { width: 2.2rem; }

.card.flat { box-shadow: none; background: var(--bg, transparent); margin: .6rem 0; }
.sig-logo { display: block; max-height: 56px; max-width: 220px; margin-top: .5rem; }
.compose textarea { min-height: 10rem; }
fieldset.attach { border: 1px solid var(--line); border-radius: 10px; margin: .6rem 0; padding: .5rem .8rem; }
details > summary { cursor: pointer; margin: .5rem 0; font-weight: var(--fw-emph); }

.nav-badge { margin-left: auto; background: #e5484d; color: #fff; border-radius: 999px; font-size: var(--fs-small); font-weight: var(--fw-emph); padding: .05rem .45rem; min-width: 1.2rem; text-align: center; }
.chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 1rem; height: calc(100vh - 11rem); min-height: 22rem; }
.chat-list { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: auto; padding: .4rem; }
.chat-thread { display: flex; align-items: center; gap: .6rem; padding: .5rem; border-radius: 10px; color: inherit; text-decoration: none; }
.chat-thread:hover { background: var(--primary-soft); }
.chat-thread.active { background: var(--primary-soft); box-shadow: inset 3px 0 0 var(--primary); }
.ct-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ct-last { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar.sm { width: 30px; height: 30px; font-size: var(--fs-small); flex: none; }
.chat-pane { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .8rem; }
/* Every thread (Team, groups, direct messages) scrolls the same way: no browser scrollbar, and a
   jump-to-latest arrow (.chat-jump) when you're scrolled up. Wheel, touch and arrow keys still scroll. */
.chat-log-wrap { position: relative; flex: 1; min-height: 0; display: flex; }
.chat-log { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: .6rem; padding: .2rem; scrollbar-width: none; }
.chat-log::-webkit-scrollbar { display: none; }
.chat-jump { position: absolute; left: 50%; bottom: .6rem; transform: translateX(-50%); display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .55rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); color: var(--primary); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-emph); cursor: pointer; box-shadow: 0 6px 18px rgba(0, 0, 0, .18); z-index: 2; }
.chat-jump .ico { width: 18px; height: 18px; }
.chat-jump.has-new { background: var(--primary); color: #fff; border-color: var(--primary); padding-right: .8rem; }
.chat-jump:hover { filter: brightness(1.05); }
/* The quick set floats over the top edge of the bubble (like Teams) so showing it never reflows the text. */
.msg-line { position: relative; }
.rx-pick { display: none; position: absolute; bottom: calc(100% - .4rem); left: 0; z-index: 1; gap: .1rem; padding: .15rem .25rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); white-space: nowrap; }
.msg.mine .rx-pick { left: auto; right: 0; } /* grows towards the open side, so a short bubble never pushes it off-screen */
.msg:hover .rx-pick, .msg:focus-within .rx-pick, .msg.picking .rx-pick { display: inline-flex; }
.rx-pick button { border: 0; background: none; font-size: var(--fs-section); line-height: 1; padding: .25rem; border-radius: 50%; cursor: pointer; }
.rx-pick button:hover, .rx-pick button:focus-visible { background: var(--primary-soft); transform: scale(1.15); }
.rx-chips { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.rx-chips:empty { display: none; }
.msg.mine .rx-chips { justify-content: flex-end; }
.rx-chip { display: inline-flex; align-items: center; gap: .25rem; padding: .1rem .5rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; font-size: var(--fs-small); cursor: pointer; }
.rx-chip.mine { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-emph); }
.avatar.group .ico { width: 16px; height: 16px; }
/* Presence: a dot on the avatar's corner, green when online. */
.pres-wrap { position: relative; display: inline-flex; flex: none; }
.pres-dot { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: #9aa5b1; border: 2px solid var(--surface); }
.pres-dot.on { background: #22a559; }
.pres-wrap.big .pres-dot { width: 22px; height: 22px; border-width: 3px; right: 6px; bottom: 6px; }
.chat-person { padding-right: .9rem; }
.link-btn { background: none; border: 0; padding: 0; cursor: pointer; border-radius: 50%; }
.profile-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; min-width: min(320px, 80vw); }
.profile-card p { margin: 0; }
.profile-card .row.end { align-self: stretch; margin-top: .8rem; }
.profile-photo { display: grid; place-items: center; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; background: var(--primary-soft); color: var(--primary); font-size: 3rem; font-weight: var(--fw-emph); text-decoration: none; }
.profile-photo img { width: 100%; height: 100%; object-fit: cover; }
.profile-status { font-weight: var(--fw-emph); color: var(--muted); }
.profile-status.on { color: #1d8a4b; }
/* Emoji for the message box. */
.emoji-wrap { position: relative; flex: none; }
.emoji-btn { font-size: var(--fs-section); padding: .35rem .6rem; line-height: 1; }
.emoji-panel { position: absolute; bottom: calc(100% + 8px); left: 0; z-index: 20; width: min(330px, calc(100vw - 2.5rem)); max-height: 290px; overflow: auto; padding: .4rem .5rem .6rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); }
.emoji-group { font-size: var(--fs-small); font-weight: var(--fw-emph); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: .4rem .2rem .2rem; }
.emoji-grid { display: grid; grid-template-columns: repeat(8, 1fr); }
.emoji-grid button { border: 0; background: none; font-size: var(--fs-section); line-height: 1; padding: .3rem 0; border-radius: 8px; cursor: pointer; }
.emoji-grid button:hover, .emoji-grid button:focus-visible { background: var(--primary-soft); }
.msg { max-width: min(34rem, 85%); align-self: flex-start; }
.msg.mine { align-self: flex-end; text-align: right; }
.msg-body { background: var(--primary-soft); border-radius: 12px; padding: .5rem .75rem; white-space: pre-wrap; overflow-wrap: anywhere; text-align: left; }
.msg.mine .msg-body { background: var(--primary); color: var(--primary-ink); }
.chat-list-head { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .5rem .5rem .3rem; font-size: var(--fs-small); font-weight: var(--fw-emph); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.chat-list-head > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-list-head .btn { text-transform: none; letter-spacing: 0; white-space: nowrap; flex: none; }
.avatar.group { background: var(--primary-soft); color: var(--primary); }
.chat-head { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; padding-bottom: .6rem; margin-bottom: .4rem; border-bottom: 1px solid var(--line); }
.chat-head-actions { margin-left: auto; gap: .4rem; }
.chat-switch-wrap { position: relative; }
.chat-switch { display: flex; align-items: center; gap: .5rem; padding: .35rem .7rem .35rem .4rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--ink); font: inherit; cursor: pointer; max-width: 22rem; }
.chat-switch b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-switch:hover { border-color: var(--primary); }
.chat-switch-menu { left: 0; right: auto; width: min(300px, calc(100vw - 2rem)); max-height: 60vh; overflow: auto; }
.chat-switch-menu .menu-item { display: flex; justify-content: space-between; align-items: center; }
.chat-switch-menu .menu-item.active { background: var(--primary-soft); font-weight: var(--fw-emph); }
.group-people { display: flex; flex-direction: column; gap: .3rem; max-height: 18rem; overflow: auto; margin: .4rem 0 .8rem; }
.group-people .check .avatar, .plain-list .avatar { flex: none; }
.plain-list { list-style: none; padding: 0; margin: .5rem 0 1rem; display: flex; flex-direction: column; gap: .5rem; }
.chat-compose { display: flex; gap: .6rem; align-items: flex-end; margin-top: .6rem; }
.chat-compose textarea { flex: 1; resize: none; }
.chat-back { display: none; }

/* ---- dark chrome with a curved content panel (HubSpot style) ---- */
:root { --chrome: #1d2b3a; --chrome-2: #263648; --chrome-ink: #e6edf5; --chrome-muted: #9fb0c3; }
:root[data-theme="dark"] { --chrome: #0b121e; --chrome-2: #162133; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --chrome: #0b121e; --chrome-2: #162133; } }
.layout { background: var(--chrome); }
.sidenav { background: var(--chrome); border-right: 0; color: var(--chrome-ink); }
.brand { color: #fff; } .brand-text small { color: var(--chrome-muted); }
.navlink { color: var(--chrome-ink); transition: background .15s, color .15s; }
.navlink:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.navlink.active { background: rgba(255, 255, 255, .16); color: #fff; box-shadow: inset 3px 0 0 var(--navc, #2dd4bf); }
.navlink .ico { color: var(--navc, #9fb0c3); }
.nav-queue { --navc: #34d399; } .nav-homes { --navc: #60a5fa; } .nav-pipeline { --navc: #fbbf24; } .nav-summary { --navc: #a78bfa; }
.nav-overview { --navc: #f87171; } .nav-compliance { --navc: #f472b6; } .nav-chat { --navc: #2dd4bf; } .nav-settings { --navc: #fb923c; }
.content { background: var(--chrome); }
.topbar { background: var(--chrome); border-bottom: 0; color: var(--chrome-ink); }
.topbar-org { color: var(--chrome-muted); }
.avatar-btn { color: var(--chrome-ink); }
.avatar-btn:hover, .avatar-btn[aria-expanded=true] { background: rgba(255, 255, 255, .12); border-color: transparent; }
.avatar { background: linear-gradient(135deg, #2dd4bf, #60a5fa); color: #07202a; }
.panel { flex: 1; background: var(--bg); border-top-left-radius: 28px; min-width: 0; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06); }
.panel main { padding-top: 1.5rem; }
@media (max-width: 820px) { .panel { border-top-left-radius: 0; } .sidenav { border-bottom: 0; } }

/* colour in the content */
.tiles .tile:nth-child(5n+1) { border-top: 4px solid #34d399; } .tiles .tile:nth-child(5n+2) { border-top: 4px solid #60a5fa; }
.tiles .tile:nth-child(5n+3) { border-top: 4px solid #fbbf24; } .tiles .tile:nth-child(5n+4) { border-top: 4px solid #a78bfa; }
.tiles .tile:nth-child(5n) { border-top: 4px solid #f472b6; }
.page-head h1 { background: linear-gradient(90deg, var(--ink), var(--primary)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.card { transition: box-shadow .15s, transform .15s; }

/* hover colours on buttons */
.btn { transition: background .15s, color .15s, border-color .15s, transform .1s, filter .15s; }
.btn:not(.primary):not([disabled]):hover { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.btn.primary:not([disabled]):hover { filter: brightness(1.15); transform: translateY(-1px); }
.btn.danger:not([disabled]):hover { background: var(--danger-soft); border-color: var(--danger); color: var(--danger); }
.seg:hover { background: var(--primary-soft); border-color: var(--primary); }
.chip:hover, .menu-item:hover, .subnav a:hover { background: var(--primary-soft); }

/* hover name tags */
[data-tip] { position: relative; }
/* The tip is for the eyes: "/ ''" keeps its text out of the button's accessible name (it read "Save Save" to a screen
   reader). Browsers without that syntax keep the first line. */
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); content: attr(data-tip) / ''; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); background: #111827; color: #fff; font: var(--fw-head) var(--fs-small)/1.2 var(--font); padding: .4rem .65rem; border-radius: 8px; white-space: nowrap; z-index: 200; pointer-events: none; box-shadow: 0 6px 18px rgba(0, 0, 0, .3); }
.avatar-btn[data-tip]:hover::after { left: auto; right: 0; transform: none; }
input:disabled, select:disabled, textarea:disabled { opacity: .55; cursor: not-allowed; background: var(--surface-2); }

.menu { color: var(--ink); }
.plan-pill { background: linear-gradient(135deg, #34d399, #60a5fa); color: #06202a; font-weight: var(--fw-head); padding: .3rem .9rem; border-radius: 999px; }

/* ---- Altis-style colours: deep green chrome, soft grey panel, lavender selections ---- */
:root { --bg: #f1f3f6; --surface: #ffffff; --surface-2: #f4f6f9; --line: #e5e8ee; --ink: #1b2430; --muted: #667282;
  --primary: #0f7a55; --primary-soft: #e0f3ea; --radius: 16px; --shadow: 0 1px 2px rgba(16, 40, 32, .04), 0 8px 24px rgba(16, 40, 32, .06);
  --chrome: #0b2a21; --chrome-2: #12382c; --chrome-ink: #dcebe4; --chrome-muted: #8db5a4; --sel: #dcd9ff; --sel-ink: #5b57f0; }
:root[data-theme="dark"] { --bg: #0d1713; --surface: #14211b; --surface-2: #1a2a23; --line: #25382f; --primary: #34d399; --primary-ink: #04201a; --primary-soft: #14352a;
  --chrome: #07140f; --chrome-2: #0f2119; --sel: #2d2b63; --sel-ink: #c9c6ff; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --bg: #0d1713; --surface: #14211b; --surface-2: #1a2a23; --line: #25382f; --primary: #34d399; --primary-ink: #04201a; --primary-soft: #14352a; --chrome: #07140f; --chrome-2: #0f2119; --sel: #2d2b63; --sel-ink: #c9c6ff; } }
.navlink { border-radius: 12px; } .navlink .ico { color: var(--chrome-muted) !important; }
.navlink:hover { background: rgba(255, 255, 255, .07); }
.navlink.active { background: var(--primary); color: #fff; box-shadow: none; } .navlink.active .ico { color: #fff !important; }
.nav-badge { background: rgba(255, 255, 255, .22); }
.avatar { background: linear-gradient(135deg, #34d399, #0f7a55); color: #04201a; }
.panel { border-radius: 28px 0 0 0; }
.tiles .tile:nth-child(n) { border-top: 1px solid var(--line); }
.page-head h1 { background: none; -webkit-text-fill-color: currentColor; color: var(--ink); }
.plan-pill { background: var(--primary-soft); color: var(--primary); }
.card, .tile { border-color: transparent; }
.chip, .seg { background: #eceef2; border-color: transparent; border-radius: 999px; color: var(--ink); }
[data-theme="dark"] .chip, [data-theme="dark"] .seg { background: var(--surface-2); }
.chip:hover, .seg:hover { background: #e2e4ee; border-color: transparent; }
.chip[aria-pressed=true], .seg[aria-pressed=true] { background: var(--sel); border-color: var(--sel); color: var(--sel-ink); font-weight: var(--fw-emph); }
.chip[aria-pressed=true]::before { content: "\2713\00a0"; }

/* pipeline board with drag and drop */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.pipeline { grid-auto-columns: minmax(240px, 1fr); gap: 1rem; align-items: start; }
.col { background: #eceff3; border: 1px solid transparent; border-radius: 20px; padding: .8rem; min-height: 14rem; transition: background .15s, outline-color .15s; }
[data-theme="dark"] .col { background: var(--surface-2); }
.col h3 { align-items: center; justify-content: flex-start; gap: .5rem; margin-bottom: .7rem; }
.col h3 .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.count-pill { margin-left: auto; background: var(--surface); border-radius: 999px; padding: 0 .6rem; font-size: var(--fs-small); font-weight: var(--fw-emph); color: var(--muted); }
.col.over { background: var(--primary-soft); outline: 2px dashed var(--primary); outline-offset: -4px; }
.col-empty { text-align: center; padding: 1.5rem .5rem; border: 1px dashed var(--line); border-radius: 12px; }
.pcard { background: var(--surface); border: 1px solid transparent; border-radius: 14px; padding: .7rem .8rem; margin-bottom: .6rem; box-shadow: var(--shadow); position: relative; }
.pcard.movable { cursor: grab; } .pcard.movable:active { cursor: grabbing; }
.pcard:hover { border-color: var(--primary); }
.pcard.dragging { opacity: .55; background: #fdeedd; border-color: #e8a35c; }
.pc-top { display: flex; align-items: center; gap: .55rem; margin-bottom: .2rem; }
.pc-top a { font-weight: var(--fw-emph); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pc-top a:hover { color: var(--primary); }
.pc-foot { margin-top: .4rem; }
.pc-move { display: none; margin-top: .5rem; width: 100%; font-size: var(--fs-small); min-height: 32px; }
.pcard:hover .pc-move, .pcard:focus-within .pc-move { display: block; }
@media (hover: none) { .pc-move { display: block; } }

/* client logos */
.avatar.cl { flex: none; overflow: hidden; }
.avatar.cl.has-logo { background: #fff; border: 1px solid var(--line); }
.avatar.cl img { width: 100%; height: 100%; object-fit: contain; display: block; }
.cl-cell { display: flex; align-items: center; gap: .7rem; }
.cl-cell .avatar { width: 38px; height: 38px; }

/* pill-shaped buttons with a soft gradient on the main action */
.btn, .btn.small { border-radius: 999px; padding-left: 1.2rem; padding-right: 1.2rem; }
.btn.primary { background: linear-gradient(100deg, #0f7a55 0%, #12a07a 55%, #19b7a0 100%); border-color: transparent; box-shadow: 0 6px 16px rgba(15, 122, 85, .28); }
.btn.primary:not([disabled]):hover { box-shadow: 0 8px 22px rgba(15, 122, 85, .38); }
.btn.danger { border-radius: 999px; }
input[type=text], input[type=email], input[type=search], input[type=password], input[type=number], input[type=date], select { border-radius: 999px; padding-left: 1rem; }
textarea { border-radius: 18px; }
.toolbar input[type=search] { min-width: 17rem; flex: 2 1 17rem; }

/* collapsible menu */
.layout { transition: grid-template-columns .2s; }
.nav-toggle { margin-top: auto; align-self: flex-start; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; color: var(--chrome-muted); cursor: pointer; }
.nav-toggle:hover { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .25); }
.layout:not(.collapsed) .navlink:hover::after, .layout:not(.collapsed) .navlink:focus-visible::after { content: none; }
@media (min-width: 821px) {
  .layout.collapsed { grid-template-columns: 76px minmax(0, 1fr); }
  .collapsed .sidenav { overflow: visible; padding-left: .6rem; padding-right: .6rem; align-items: center; }
  .collapsed .brand-text { display: none; }
  /* Folded menu: the labels are hidden from the eyes only, so each link keeps its name for screen readers (v0.10.44;
     before, the hover tip was its only name). */
  .collapsed .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .collapsed .navlink { justify-content: center; padding: .55rem; width: 48px; position: relative; }
  .collapsed .sidenav nav { align-items: center; }
  .collapsed .navlink:hover::after, .collapsed .navlink:focus-visible::after { left: calc(100% + 12px); top: 50%; transform: translateY(-50%); }
  .collapsed .nav-badge { position: absolute; top: 2px; right: 0; margin: 0; font-size: var(--fs-small); padding: 0 .35rem; min-width: 1rem; }
}
@media (max-width: 820px) { .nav-toggle { display: none; } }
.sidenav { z-index: 30; }

/* cropper */
.crop { display: flex; flex-direction: column; gap: .9rem; }
.crop-drop { display: grid; place-items: center; gap: .8rem; min-height: 220px; border: 2px dashed var(--line); border-radius: 18px; background: var(--surface-2); color: var(--muted); padding: 1rem; }
.crop-drop.over { border-color: var(--primary); background: var(--primary-soft); }
.crop-drop svg { width: 44px; height: 44px; }
.crop-area { display: flex; flex-direction: column; align-items: center; gap: .7rem; }
.crop-view { position: relative; width: 280px; height: 280px; overflow: hidden; border-radius: 12px; background: #e5e7eb; background-image: linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%), linear-gradient(45deg, #d1d5db 25%, transparent 25%, transparent 75%, #d1d5db 75%); background-size: 16px 16px; background-position: 0 0, 8px 8px; cursor: grab; touch-action: none; user-select: none; }
.crop-view.grabbing { cursor: grabbing; }
.crop-view.circle { border-radius: 50%; }
.crop-img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; }
.crop-view::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .9), inset 0 0 0 3px rgba(0, 0, 0, .25); pointer-events: none; }
.crop-zoom { display: flex; align-items: center; gap: .6rem; width: 280px; }
.crop-zoom input { flex: 1; accent-color: var(--primary); }
.avatar.xl { width: 72px; height: 72px; font-size: var(--fs-title); }
.avatar.has-photo { background: #fff; overflow: hidden; }
.avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.profile-pic { margin-bottom: 1rem; display: flex; flex-direction: column; gap: .5rem; }
input[type=checkbox], input[type=radio] { accent-color: var(--primary); }
.chip[aria-pressed=true] { cursor: pointer; }

/* rounded dropdowns (Chrome and Edge; other browsers keep their own list) */
@supports (appearance: base-select) {
  select, select::picker(select) { appearance: base-select; }
  select { border: 1px solid var(--line); background: var(--surface); color: var(--ink); padding: .55rem 1rem; min-height: 44px; }
  select::picker-icon { color: var(--muted); }
  select::picker(select) { border: 1px solid var(--line); border-radius: 18px; padding: .4rem; background: var(--surface); color: var(--ink); box-shadow: 0 14px 40px rgba(0, 0, 0, .18); margin-top: 6px; }
  select option { border-radius: 12px; padding: .55rem .9rem; }
  select option:hover { background: var(--primary-soft); }
  select option:checked { background: var(--sel); color: var(--sel-ink); font-weight: var(--fw-emph); }
  select option::checkmark { display: none; }
}

/* empty states */
:root { --a-o: #ff5c00; --a-p: #7a1459; --a-t: #0d4f45; }
:root[data-theme="dark"] { --a-p: #e58ac4; --a-t: #5ee0c0; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --a-p: #e58ac4; --a-t: #5ee0c0; } }
.art { width: 180px; height: auto; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.art .a-o { stroke: var(--a-o); stroke-width: 2.5; } .art .a-p { stroke: var(--a-p); } .art .a-t { stroke: var(--a-t); }
.art .a-tf { fill: var(--a-t); stroke: none; } .art .a-of { fill: var(--a-o); stroke: var(--a-t); }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.5rem 1rem; }
.empty-state h3 { font-size: var(--fs-section); margin: .4rem 0 0; } .empty-state p { margin: 0; max-width: 34ch; }
.empty-state .btn { margin-top: .6rem; }
.empty-state.sm { padding: .6rem; } .empty-state.sm .art { width: 96px; }
.chat-log .empty { margin: auto; }
.col .empty-state { border: 0; }

/* top bar: the menu already shows the company name and logo */
.layout.has-logo:not(.collapsed) .topbar-org { visibility: hidden; }

/* stage menu stays put while open */
.pipeline.menu-open .pcard:not(.menu-open):hover { border-color: transparent; }
.pipeline.menu-open .pcard:not(.menu-open):hover .pc-move { display: none; }
.pcard.menu-open .pc-move { display: block; }

/* checkboxes: white with a soft border, green when ticked (the browser's own box can turn dark) */
input[type=checkbox] { appearance: none; -webkit-appearance: none; width: 1.3rem; height: 1.3rem; flex: none; margin: 0; background-color: #fff; border: 1.5px solid #8e99a8; border-radius: 7px; cursor: pointer; display: inline-grid; place-content: center; transition: background .12s, border-color .12s; }
input[type=checkbox]:hover { border-color: var(--primary); }
input[type=checkbox]:checked { background-color: var(--primary); border-color: var(--primary); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='white' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3.5 8.5l3 3 6-7'/%3E%3C/svg%3E"); background-size: 80% 80%; background-position: center; background-repeat: no-repeat; }
input[type=checkbox]:indeterminate { background-color: var(--primary); border-color: var(--primary); }
[data-theme="dark"] input[type=checkbox]:not(:checked) { background-color: transparent; border-color: #6b7b8f; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] input[type=checkbox]:not(:checked) { background-color: transparent; border-color: #6b7b8f; } }
input[type=checkbox]:disabled { opacity: .5; }

/* calendar */
.topbar-right { display: flex; align-items: center; gap: .4rem; margin-left: auto; }
.bell { position: relative; margin-left: 0; }
.bell-btn { position: relative; width: 44px; height: 44px; display: grid; place-items: center; background: none; border: 1px solid transparent; border-radius: 50%; color: var(--chrome-ink); cursor: pointer; }
.bell-btn:hover, .bell-btn[aria-expanded=true] { background: rgba(255, 255, 255, .12); }
.bell-badge { position: absolute; top: 2px; right: 0; margin: 0; background: #e5484d; font-size: var(--fs-small); padding: 0 .35rem; }
.menu.notif { width: min(360px, calc(100vw - 1.5rem)); max-height: 70vh; overflow: auto; right: 0; }
.menu-head.between { justify-content: space-between; }
.notif-item { display: flex; flex-direction: column; gap: .1rem; padding: .7rem 1rem; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.notif-item:hover { background: var(--primary-soft); }
.notif-item.unread { background: var(--sel); } .notif-item.unread b::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); margin-right: .45rem; }
.cal-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 1rem; align-items: start; }
.cal-side .card + .card { margin-top: 1rem; }
.cal-nav { display: flex; gap: .3rem; }
.cal-person { align-items: center; margin-bottom: .5rem; }
.cal-dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--surface); border-radius: 20px; overflow: hidden; box-shadow: var(--shadow); }
.cal-dow { padding: .6rem; text-align: center; font-size: var(--fs-small); font-weight: var(--fw-emph); color: var(--muted); border-bottom: 1px solid var(--line); }
.cal-cell { min-height: 112px; padding: .4rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-cell:nth-child(7n+7) { border-right: 0; }
.cal-cell:hover { background: var(--primary-soft); }
.cal-cell.other { background: var(--surface-2); color: var(--muted); }
.cal-num { align-self: flex-start; min-width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-weight: var(--fw-emph); font-size: var(--fs-body); }
.cal-cell.today .cal-num { background: var(--primary); color: #fff; }
.cal-ev { display: block; width: 100%; text-align: left; font: inherit; font-size: var(--fs-small); border: 0; border-left: 3px solid; border-radius: 6px; padding: 2px 6px; color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-t { font-weight: var(--fw-emph); }
.day-list { display: flex; flex-direction: column; gap: .5rem; }
.day-ev { display: flex; flex-direction: column; text-align: left; font: inherit; color: var(--ink); background: var(--surface-2); border: 0; border-left: 4px solid var(--primary); border-radius: 10px; padding: .5rem .7rem; cursor: pointer; width: 100%; margin-bottom: .4rem; }
.day-ev:hover { background: var(--primary-soft); }
.share-people { max-height: 12rem; overflow: auto; padding-left: 1.6rem; }
@media (max-width: 900px) { .cal-layout { grid-template-columns: 1fr; } .cal-cell { min-height: 84px; } .cal-ev .cal-t { display: none; } }

/* client business sits top-right, like HubSpot's account switcher */
.avatar-btn .org-logo { width: 28px; height: 28px; border-radius: 8px; object-fit: contain; background: #fff; flex: none; }
.avatar-btn .org-initial { display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: var(--fw-head); font-size: var(--fs-small); }
.avatar-btn .avatar-name { font-weight: var(--fw-emph); max-width: 30ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.avatar-btn .chev { font-size: var(--fs-small); opacity: .8; }
@media (max-width: 700px) { .avatar-btn .avatar-name, .avatar-btn .chev { display: none; } }
.brand-logo { border-radius: 10px; }

/* typography polish */
button, input, select, textarea { font-family: inherit; }
h1, h2, h3 { font-weight: var(--fw-head); letter-spacing: -.01em; }
/* (v0.10.55: sizes set once, at the top; this older line no longer overrides them) */
.navlink { font-weight: var(--fw-emph); } .navlink.active { font-weight: var(--fw-emph); }
.btn { letter-spacing: .005em; }
.small { font-size: var(--fs-body); }

/* Chat: files, edit and delete */
.msg-content { display: flex; flex-direction: column; gap: .35rem; }
.msg.mine .msg-content { align-items: flex-end; }
.msg-files { display: flex; flex-wrap: wrap; gap: .4rem; }
.msg.mine .msg-files { justify-content: flex-end; }
.msg-img img { display: block; max-width: min(16rem, 100%); max-height: 14rem; border-radius: 10px; border: 1px solid var(--line); object-fit: cover; }
.msg-file { display: inline-flex; align-items: center; gap: .4rem; max-width: 100%; padding: .45rem .7rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; text-align: left; }
.msg-file:hover, .msg-file:focus-visible { border-color: var(--primary); }
.rx-pick .msg-act { font-size: var(--fs-body); }
.msg.deleted .msg-body { background: none; border: 1px dashed var(--line); color: var(--muted); font-style: italic; }
.msg.mine.deleted .msg-body { color: var(--muted); }
.msg-edit { display: flex; flex-direction: column; gap: .4rem; width: min(34rem, 100%); }
.msg-edit textarea { resize: vertical; text-align: left; }
.attach-btn { font-size: var(--fs-section); padding: .35rem .6rem; line-height: 1; }
.chat-pending { display: flex; flex-wrap: wrap; gap: .35rem; margin-top: .5rem; }
.chip-file { display: inline-flex; align-items: center; gap: .2rem; padding: .2rem .3rem .2rem .6rem; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: var(--fs-body); max-width: 100%; overflow-wrap: anywhere; }
.chip-x { border: 0; background: none; font-size: var(--fs-section); line-height: 1; padding: .1rem .35rem; border-radius: 50%; cursor: pointer; color: var(--muted); }
.chip-x:hover, .chip-x:focus-visible { background: var(--primary-soft); color: var(--ink); }
.push-banner { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; justify-content: space-between; margin-bottom: .6rem; }

/* Chat: the edit and delete buttons in the quick set follow the theme (they were dark on dark) */
.rx-pick button { color: var(--ink); }

/* ---- Phone layout: tabs along the bottom, like a phone app; one chat screen at a time ---- */
:root { --tb-h: 54px; --nav-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px); }
@media (max-width: 820px) {
  .sidenav { position: fixed; left: 0; right: 0; bottom: 0; top: auto; height: auto; z-index: 40; padding: .25rem .3rem calc(.25rem + var(--safe-b)); box-shadow: 0 -1px 0 rgba(255, 255, 255, .06), 0 -6px 18px rgba(0, 0, 0, .18); }
  .sidenav .brand { display: none; }
  .sidenav nav { gap: .1rem; justify-content: space-between; }
  .navlink { position: relative; flex: 1 1 0; min-width: 0; min-height: 52px; flex-direction: column; justify-content: center; gap: 2px; padding: .3rem .1rem; font-size: var(--fs-small); font-weight: var(--fw-emph); line-height: 1.1; border-radius: 12px; }
  .navlink .nav-label { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
  .navlink .ico { width: 22px; height: 22px; }
  .navlink.active { background: rgba(255, 255, 255, .1); color: #fff; }
  .navlink.active .ico { color: var(--primary) !important; }
  .navlink .nav-badge { position: absolute; top: 3px; left: calc(50% + 4px); margin: 0; font-size: var(--fs-small); padding: 0 .32rem; min-width: 1rem; }
  .topbar { min-height: var(--tb-h); padding: .3rem .6rem; padding-top: max(.3rem, env(safe-area-inset-top, 0px)); justify-content: space-between; gap: .5rem; }
  .gsearch { display: flex; flex: 1; width: auto; }
  .gsearch-panel { position: fixed; left: .5rem; right: .5rem; top: calc(var(--tb-h) + 4px); width: auto; max-height: calc(100dvh - var(--tb-h) - var(--nav-h) - 1rem); }
  .topbar .menu { position: fixed; left: .5rem; right: .5rem; top: calc(var(--tb-h) + 4px); width: auto; max-height: calc(100dvh - var(--tb-h) - var(--nav-h) - 1rem); overflow: auto; }
  .panel main { padding: .75rem .75rem calc(var(--nav-h) + var(--safe-b) + 1rem); }
  .page-head { margin-bottom: .75rem; }
  h1 { font-size: var(--fs-title); }
  .card { padding: .85rem .9rem; }
  .toast { bottom: calc(var(--nav-h) + var(--safe-b) + 12px); }
  /* iPhone zooms into any box with text under 16px when you tap it */
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], select, textarea { font-size: var(--fs-body); }
  .toolbar input[type=search] { min-width: 0; }
  .toolbar > select, .toolbar > input[type=search], .toolbar > input[type=text], .toolbar > .grow { max-width: none; }
  dialog.modal { width: calc(100vw - 1rem); max-height: calc(100dvh - 2rem); padding: 1rem; }

  /* Chat: the list, or one conversation filling the screen above the tabs */
  .chat { display: block; height: auto; min-height: 0; }
  .chat.list-mode .chat-pane, .chat:not(.list-mode) .chat-list { display: none; }
  .chat.list-mode .chat-list { max-height: none; padding: .3rem; }
  .chat-list .chat-thread { padding: .65rem .5rem; }
  .page-head.chat-top:not(.list-mode) { display: none; }
  .panel main:has(> .chat:not(.list-mode)) { padding-bottom: calc(var(--nav-h) + var(--safe-b) + .5rem); }
  .chat:not(.list-mode) .chat-pane { height: calc(100dvh - var(--tb-h) - .75rem - var(--nav-h) - var(--safe-b) - .5rem); padding: .5rem; }
  .chat-back { display: inline-grid; place-items: center; width: 40px; height: 40px; margin-right: -.25rem; border-radius: 50%; font-size: 2rem; line-height: 1; color: var(--ink); text-decoration: none; flex: none; }
  .chat-back:hover, .chat-back:focus-visible { background: var(--surface-2); }
  .chat-head { flex-wrap: nowrap; gap: .5rem; padding-bottom: .45rem; }
  .chat-head > .small.muted { display: none; }
  .chat-switch { max-width: 100%; min-width: 0; }
  .chat-switch-wrap { min-width: 0; }
  .chat-head-actions { flex-wrap: nowrap; }
  .chat-head-actions .btn { padding-left: .7rem; padding-right: .7rem; }
  .msg { max-width: 88%; }
  .rx-pick button { padding: .4rem; font-size: var(--fs-section); }
  .chat-compose { gap: .35rem; margin-top: .45rem; }
  .chat-compose textarea { min-height: 44px; height: 44px; max-height: 160px; padding: .55rem .9rem; border-radius: 22px; }
  .chat-compose .btn.primary { padding-left: .95rem; padding-right: .95rem; }
  .push-banner { font-size: var(--fs-body); padding: .55rem .7rem; }
}
/* The emoji and paperclip buttons are round icons, not pill buttons */
.chat-compose .emoji-btn, .chat-compose .attach-btn { width: 44px; padding: 0; flex: none; }
/* Touch screens have no hover: a tap must not leave a name tag stuck on screen */
@media (hover: none) { [data-tip]:hover::after { content: none; } }
.rx-pick .msg-act { display: inline-grid; place-items: center; color: var(--ink); }
.rx-pick .msg-act:hover, .rx-pick .msg-act:focus-visible { color: var(--primary); }
.rx-pick .msg-act .ico { width: 18px; height: 18px; }
.attach-btn .ico { width: 20px; height: 20px; }
/* Tables on a phone: one card per row, each value with its column name */
@media (max-width: 640px) {
  .table-wrap:has(table.stacked) { border: 0; background: none; overflow: visible; }
  table.stacked thead { display: none; }
  table.stacked, table.stacked tbody, table.stacked tr, table.stacked td { display: block; }
  table.stacked tr { position: relative; background: var(--surface); border-radius: var(--radius); padding: .65rem .8rem; margin-bottom: .6rem; box-shadow: var(--shadow); }
  table.stacked td { padding: .25rem 0; border: 0; text-align: right; overflow-wrap: anywhere; }
  table.stacked td::after { content: ""; display: block; clear: both; }
  table.stacked td::before { content: attr(data-label); float: left; margin-right: 1rem; color: var(--muted); font-size: var(--fs-small); font-weight: var(--fw-emph); text-align: left; }
  table.stacked td:not([data-label])::before, table.stacked td[data-label=""]::before { content: none; }
  table.stacked td:empty { display: none; }
  table.stacked td:first-child:not(.selcol), table.stacked td.selcol + td { display: block; text-align: left; padding-bottom: .4rem; font-size: var(--fs-body); }
  table.stacked td:first-child:not(.selcol)::before, table.stacked td.selcol + td::before { content: none; }
  table.stacked td.selcol { position: absolute; top: .7rem; right: .8rem; width: auto; padding: 0; }
  table.stacked td.selcol + td { padding-right: 2.2rem; }
}

/* ---- Design pass: one look on every page, on a computer and a phone ---- */
/* Time, phone and web address boxes look like every other box */
input[type=time], input[type=tel], input[type=url] { width: 100%; min-height: 44px; padding: .55rem .7rem .55rem 1rem; font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 999px; }
/* Page headings: title (and a short line under it) on the left, actions on the right */
.page-head > div:first-child { min-width: 0; }
.page-head p { margin: .25rem 0 0; }
.head-filters { margin: 0; flex: 0 1 auto; }
.head-filters > select { min-width: 12rem; }
/* Tables: every cell lines up in the middle of its row; the row under the pointer is shaded */
td { vertical-align: middle; }
.table-wrap tbody tr:hover td { background: var(--surface-2); }
.toolbar.filters input[type=search] { flex: 1 1 22rem; max-width: none; }
.toolbar.filters > label.row { min-height: 40px; padding: 0 .9rem; gap: .5rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); cursor: pointer; }
/* Figures: every row of tiles uses the same column width, and keeps its distance from the cards around it */
.tiles { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
.card + .tiles, .banner + .tiles { margin-top: 1rem; }
.tiles + .group-label { margin-top: .2rem; }
main > .group-label { margin-top: .2rem; }

/* Client page (v0.10.41): one header (name, status, phone), then three columns on a wide screen, as the big CRMs do:
   the client on the left, the work (calling, history) in the middle, what comes next on the right. Medium screens: the
   work, then next to it what comes next with the client below; phones: one column, the call card first (DOM order). */
.home-head { align-items: flex-start; }
.home-title { display: flex; gap: 1rem; align-items: flex-start; min-width: 0; }
.home-title > div { min-width: 0; }
.home-title h1 { margin-bottom: .4rem; overflow-wrap: anywhere; }
.home-meta { gap: .4rem; }
.home-title .phone { font-size: var(--fs-section); margin: .5rem 0 0; }
.home-title .phone .ico { width: 20px; height: 20px; }
.home-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); grid-template-areas: "main side" "main about"; gap: 1rem; align-items: start; }
.home-main { grid-area: main; } .home-side { grid-area: side; } .home-about { grid-area: about; }
.home-main > * + *, .home-side > * + *, .home-about > * + * { margin-top: 1rem; }
@media (min-width: 1360px) { .home-grid { grid-template-columns: minmax(250px, .85fr) minmax(0, 1.6fr) minmax(260px, 1fr); grid-template-areas: "about main side"; } }
.hist-filters { margin: .2rem 0 .7rem; }
.glance { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: 0; }
.glance dt { color: var(--muted); font-size: var(--fs-body); }
.glance dd { margin: 0; font-weight: var(--fw-head); text-align: right; font-variant-numeric: tabular-nums; }
.card.danger-zone { box-shadow: inset 0 0 0 1px var(--danger-soft), var(--shadow); }
@media (max-width: 1000px) { .home-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "main" "side" "about"; } }

/* Pipeline: the stages with their counts above the board; columns as tall as the longest one */
.stage-strip { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; margin: 0 0 .9rem; padding: 2px; }
.stage-strip::-webkit-scrollbar { display: none; }
.stage-chip { display: inline-flex; align-items: center; gap: .45rem; flex: none; min-height: 38px; padding: .35rem .85rem; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-emph); cursor: pointer; }
.stage-chip b { font-variant-numeric: tabular-nums; color: var(--muted); }
.stage-chip .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.stage-chip:hover, .stage-chip:focus-visible { border-color: var(--primary); }
.pipeline { position: relative; align-items: stretch; grid-auto-columns: minmax(250px, 1fr); scrollbar-width: thin; padding-bottom: .75rem; }
.col h3 { font-size: var(--fs-body); }
.pc-move { appearance: auto; min-height: 36px; padding: .3rem .6rem; border-radius: 10px; font-size: var(--fs-body); }

@media (max-width: 820px) {
  .home-title .avatar.xl { width: 52px; height: 52px; font-size: var(--fs-section); }
  .home-title .phone { font-size: var(--fs-section); }
  .home-head > .btn { display: none; } /* the Clients tab is one tap away */
  /* Pipeline on a phone: one stage per screen; swipe sideways for the next, or tap a stage above */
  .pipeline { grid-auto-columns: 86%; gap: .6rem; scroll-snap-type: x mandatory; margin: 0 -.75rem; padding: 0 .75rem .75rem; scroll-padding: 0 .75rem; }
  .col { scroll-snap-align: start; min-height: 55vh; }
  .head-filters { width: 100%; }
  .head-filters > select { min-width: 0; }
  .toolbar.filters input[type=search] { flex-basis: 100%; }
  .toolbar.filters > label.row { flex: 1 1 100%; justify-content: flex-start; }
}
/* Calendar: the card that puts it into Google Calendar or Outlook; on a phone the month comes first */
.cal-connect .btn.block { margin-top: .4rem; }
.cal-more-ways { margin-top: .6rem; }
.cal-more-ways summary { font-weight: var(--fw-emph); margin: .3rem 0; }
.cal-add { gap: .5rem; }
@media (max-width: 900px) { .cal-side { order: 2; } .cal-side .card + .card { margin-top: .75rem; } .cal-layout { gap: .75rem; } }
/* Outcome and range buttons: their hover colour follows the theme (it was a light grey, unreadable in dark mode,
   and stuck on after a tap on touch screens), and "Match device" dark gets the same colours as Dark */
.chip:hover, .seg:hover { background: var(--primary-soft); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .chip, :root[data-theme="auto"] .seg { background: var(--surface-2); } :root[data-theme="auto"] .col { background: var(--surface-2); } }
@media (hover: none) { .chip:not([aria-pressed=true]):hover, .seg:not([aria-pressed=true]):hover { background: #eceef2; } [data-theme="dark"] .chip:not([aria-pressed=true]):hover, [data-theme="dark"] .seg:not([aria-pressed=true]):hover { background: var(--surface-2); } }
@media (hover: none) and (prefers-color-scheme: dark) { :root[data-theme="auto"] .chip:not([aria-pressed=true]):hover, :root[data-theme="auto"] .seg:not([aria-pressed=true]):hover { background: var(--surface-2); } }

/* ---- Phone redesign: bigger text, lighter header, compact client cards, folding filters ---- */
/* Figures carry a colour mark, on every screen */
.tile { position: relative; overflow: hidden; }
.tile::before { content: ""; position: absolute; left: 0; top: .8rem; bottom: .8rem; width: 4px; border-radius: 0 4px 4px 0; background: var(--tile-c, var(--primary)); }
.tiles .tile:nth-child(4n+1) { --tile-c: #34d399; } .tiles .tile:nth-child(4n+2) { --tile-c: #60a5fa; }
.tiles .tile:nth-child(4n+3) { --tile-c: #fbbf24; } .tiles .tile:nth-child(4n+4) { --tile-c: #a78bfa; }
.tile.alert { --tile-c: var(--danger); }
.filter-toggle .nav-badge { margin-left: .4rem; background: var(--primary); color: var(--primary-ink); }

@media (max-width: 820px) {
  body { font-size: var(--fs-body); }
  h1 { font-size: var(--fs-title); font-weight: var(--fw-head); letter-spacing: -.01em; }
  h2 { font-size: var(--fs-section); } h3 { font-size: var(--fs-body); }
  .small { font-size: var(--fs-body); }
  .card { border-radius: 20px; padding: 1rem; }
  .card + .card { margin-top: .75rem; }
  /* Page header: the title, then its buttons on one sliding line instead of piling up */
  .page-head { gap: .55rem; margin-bottom: .85rem; }
  /* Header buttons wrap onto a second line rather than slide out of sight. */
  .page-head > .row:last-child:not(:first-child) { flex-wrap: wrap; width: 100%; gap: .45rem; padding: 2px; }
  .page-head > .row:last-child:not(:first-child)::-webkit-scrollbar { display: none; }
  .page-head > .row .btn { flex: none; min-height: 40px; padding: .35rem 1rem; font-size: var(--fs-body); }
  /* Figures: two per row, a big number */
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .tile { border-radius: 18px; padding: .85rem .9rem .85rem 1.1rem; }
  .tile b { font-size: 1.85rem; }
  .tile span { font-size: var(--fs-body); }
  /* Clients: search, then a Filters button that opens the choices */
  .toolbar.filters { gap: .5rem; }
  .toolbar.filters input[type=search] { flex: 1 1 0; min-width: 0; }
  .filter-toggle { min-height: 44px; }
  .toolbar.filters .filter-panel > select { flex: 1 1 calc(50% - .25rem); max-width: none; }
  /* The list's page controls: just previous and next */
  .pager .pg-far, .pager .pg-size { display: none; }
  .pager .pagebox { width: 3.4rem !important; }
  .count { font-size: var(--fs-body); }
  /* Client cards: name and phone, the place, then the badges on one line */
  table.stacked.homes-table tr { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .4rem; padding: .85rem .95rem; border-radius: 18px; }
  table.stacked.homes-table td { display: block; padding: 0; text-align: left; font-size: var(--fs-body); }
  table.stacked.homes-table td::before { content: none; }
  table.stacked.homes-table td.c-client { flex: 1 1 calc(100% - 2.6rem); min-width: 0; font-size: var(--fs-body); padding: 0; }
  table.stacked.homes-table td.c-client a { font-weight: var(--fw-emph); text-decoration: none; }
  table.stacked.homes-table td.selcol { position: static; order: 2; flex: none; }
  table.stacked.homes-table td.selcol + td { padding: 0; }
  table.stacked.homes-table td.c-badge { order: 4; flex: none; }
  table.stacked.homes-table td.c-client + td.c-badge { margin-left: calc(38px + .7rem); }
  table.stacked.homes-table td.c-badge:empty, table.stacked.homes-table td.c-calls { display: none; }
}
@media (max-width: 640px) { table.stacked tbody tr:hover td { background: none; } }
@media (max-width: 820px) {
  /* A lone last figure takes the whole row instead of leaving a gap */
  .tiles > .tile:last-child:nth-child(odd) { grid-column: 1 / -1; }
  /* Queue: the four counts on one compact line, so the client to call comes up sooner */
  .queue-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: .4rem; }
  .queue-tiles > .tile:last-child:nth-child(odd) { grid-column: auto; }
  .queue-tiles .tile { padding: .55rem .45rem .55rem .7rem; border-radius: 14px; }
  .queue-tiles .tile b { font-size: var(--fs-section); }
  .queue-tiles .tile span { font-size: var(--fs-small); line-height: 1.2; display: block; }
  .queue-tiles .tile::before { top: .5rem; bottom: .5rem; width: 3px; }
  main > .banner { font-size: var(--fs-body); padding: .65rem .8rem; }
  /* The phone number is a big call button */
  .call-card .phone { display: flex; justify-content: center; width: 100%; padding: .7rem 1rem; margin: .6rem 0; border-radius: 16px; background: var(--primary); color: var(--primary-ink); font-size: var(--fs-title); box-shadow: 0 6px 16px rgba(15, 122, 85, .25); }
  .call-card .call-name { font-size: var(--fs-section); }
}
.pw-tools { align-items: flex-start; margin: -.4rem 0 .8rem; }

/* ---- Phone: tabs with names and a More tab; calendar month plus the day's list; Settings as a list ---- */
.nav-more, .more-sheet { display: none; }
.cal-dots { display: none; }
.settings-index { display: flex; flex-direction: column; padding: .35rem; }
.settings-index a { display: flex; align-items: center; justify-content: space-between; gap: .8rem; padding: .85rem .8rem; border-radius: 14px; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line); }
.settings-index a:last-child { border-bottom: 0; }
.settings-index a:hover { background: var(--surface-2); }
.settings-index a > span:first-child { display: flex; flex-direction: column; gap: .1rem; }
.settings-index .chev { font-size: var(--fs-title); line-height: 1; color: var(--muted); }
@media (max-width: 820px) {
  .sidenav nav > .nav-extra { display: none; }
  .nav-more { display: flex; border: 0; background: none; font-family: inherit; cursor: pointer; }
  .nav-more .ico { stroke-width: 3.2; }
  .more-sheet:not(.hidden) { display: flex; flex-direction: column; position: fixed; left: .6rem; right: .6rem; bottom: calc(var(--nav-h) + var(--safe-b) + .5rem); z-index: 45; padding: .4rem; border-radius: 20px; background: var(--surface); color: var(--ink); box-shadow: 0 -8px 30px rgba(0, 0, 0, .25); }
  .more-link { display: flex; align-items: center; gap: .9rem; min-height: 48px; padding: .7rem 1rem; border-radius: 14px; color: var(--ink); text-decoration: none; font-weight: var(--fw-emph); }
  .more-link .ico { width: 22px; height: 22px; color: var(--muted); }
  .more-link:hover { background: var(--surface-2); }
  .more-link.active { background: var(--primary-soft); color: var(--primary); }
  .more-link.active .ico { color: var(--primary); }
  /* Calendar: a compact month with a dot per event; the chosen day is listed under it */
  .cal-grid.compact { padding: .3rem .4rem .5rem; border-radius: 20px; }
  .cal-grid.compact .cal-dow { padding: .45rem 0; font-size: var(--fs-small); border-bottom: 0; }
  .cal-grid.compact .cal-cell { min-height: 0; height: 52px; padding: .25rem 0; align-items: center; gap: 3px; border: 0; }
  .cal-grid.compact .cal-cell:hover, .cal-grid.compact .cal-cell.other { background: none; }
  .cal-grid.compact .cal-cell.other { opacity: .4; }
  .cal-grid.compact .cal-num { align-self: center; width: 34px; height: 34px; min-width: 0; font-size: var(--fs-body); }
  .cal-grid.compact .cal-cell.picked .cal-num { background: var(--primary-soft); color: var(--primary); box-shadow: inset 0 0 0 2px var(--primary); }
  .cal-grid.compact .cal-cell.today .cal-num { background: var(--primary); color: #fff; box-shadow: none; }
  .cal-dots { display: flex; gap: 3px; height: 6px; }
  .cal-dots i { width: 6px; height: 6px; border-radius: 50%; }
  .cal-day { margin-top: .75rem; }
  .cal-day h2 { font-size: var(--fs-section); margin: 0; }
  .cal-day .day-list { margin-top: .7rem; }
  .cal-day .day-ev { padding: .65rem .8rem; }
  /* Settings: the list of sections, then one section per screen with a way back */
  .settings > .subnav { display: none; }
  .settings-head { flex-wrap: nowrap; justify-content: flex-start; gap: .4rem; }
  .settings-head h1 { margin: 0; }
}

/* ---------- calendar: Week and Day views (v0.10.24) ---------- */
.cal-title { flex-wrap: wrap; gap: .6rem 1rem; }
.cal-views { flex-wrap: nowrap; }
.cal-views .seg { flex: 0 0 auto; padding: .35rem .85rem; }
.linkish { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.tg { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.tg-top { display: grid; border-bottom: 1px solid var(--line); }
.tg-corner { grid-row: span 1; }
.tg-head { background: none; border: 0; font: inherit; font-size: var(--fs-body); font-weight: var(--fw-emph); color: var(--muted); padding: .6rem .3rem; text-align: center; cursor: pointer; border-left: 1px solid var(--line); }
.tg-head:hover { color: var(--ink); background: var(--surface-2); }
.tg-head.today { color: var(--primary); }
.tg-allday-label { align-self: center; text-align: right; padding: .3rem .4rem; font-size: var(--fs-small); border-top: 1px solid var(--line); }
.tg-allday-cell { min-height: 30px; padding: 3px; border-left: 1px solid var(--line); border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.tg-scroll { max-height: calc(100vh - 260px); min-height: 360px; overflow-y: auto; }
.tg-body { display: grid; position: relative; }
.tg-hours { position: relative; }
.tg-hours span { position: absolute; right: 6px; transform: translateY(-50%); font-size: var(--fs-small); color: var(--muted); font-variant-numeric: tabular-nums; }
.tg-col { position: relative; border-left: 1px solid var(--line); cursor: copy;
  background: repeating-linear-gradient(to bottom, transparent 0, transparent 47px, var(--line) 47px, var(--line) 48px); }
.tg-col.today { background-color: color-mix(in srgb, var(--primary-soft) 45%, transparent); }
.tg-ev { position: absolute; box-sizing: border-box; overflow: hidden; border-left: 3px solid; border-radius: 6px; padding: 2px 6px; font-size: var(--fs-small); line-height: 1.25;
  color: var(--ink); cursor: pointer; display: flex; flex-direction: column; z-index: 1; }
.tg-ev b { font-weight: var(--fw-emph); overflow: hidden; text-overflow: ellipsis; }
.tg-time { font-weight: var(--fw-emph); font-variant-numeric: tabular-nums; font-size: var(--fs-small); }
.tg-who { color: var(--muted); font-size: var(--fs-small); }
.tg-ev.movable { cursor: grab; touch-action: none; }
.tg-ev.dragging { cursor: grabbing; z-index: 5; box-shadow: 0 10px 24px rgba(0, 0, 0, .22); opacity: .92; }
.tg-ev.busy b { font-style: italic; }
.tg-ev:focus-visible { outline: 2px solid var(--primary); outline-offset: 1px; }
.tg-now { position: absolute; left: 0; right: 0; height: 2px; background: #ef4444; z-index: 2; pointer-events: none; }
.tg-now::before { content: ""; position: absolute; left: -5px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: #ef4444; }
@media (max-width: 820px) {
  .cal-title h1 { font-size: var(--fs-section); width: 100%; }
  .tg-scroll { max-height: calc(100vh - 300px); }
  .tg-ev { font-size: var(--fs-small); }
}
.tg-scroll .tg-top { position: sticky; top: 0; z-index: 4; background: var(--surface); }
.tg-ev.short { flex-direction: row; gap: .35rem; align-items: baseline; white-space: nowrap; }
.tg-ev.short .tg-who { display: none; }
@media (max-width: 820px) {
  .cal-title { gap: .5rem; }
  .cal-views .seg { padding: .3rem .6rem; }
  .cal-nav .btn.small { padding-left: .6rem; padding-right: .6rem; }
}

/* ---------- calendar: Year view, Week grid on phones (v0.10.25) ---------- */
.yr { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 1rem; }
.yr-month { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow); padding: .8rem .8rem .9rem; }
.yr-month.now { box-shadow: inset 0 0 0 2px var(--primary-soft), var(--shadow); }
.yr-name { font-weight: var(--fw-emph); font-size: var(--fs-body); margin-bottom: .4rem; }
.yr-name:hover { color: var(--primary); }
.yr-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.yr-dow { font-size: var(--fs-small); font-weight: var(--fw-emph); color: var(--muted); padding-bottom: 2px; }
.yr-day { aspect-ratio: 1; border: 0; border-radius: 50%; background: none; font: inherit; font-size: var(--fs-small); color: var(--ink); cursor: pointer; padding: 0; font-variant-numeric: tabular-nums; }
.yr-day:hover { background: var(--surface-2); }
.yr-day.has { background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-emph); }
.yr-day.many { background: color-mix(in srgb, var(--primary) 35%, var(--primary-soft)); }
.yr-day.today { background: var(--primary); color: var(--primary-ink); font-weight: var(--fw-head); }
.tg-head-phone { display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.tg-head-phone small { font-size: var(--fs-small); font-weight: var(--fw-emph); }
.tg-head-phone b { font-size: var(--fs-body); color: var(--ink); }
.tg-head.today .tg-head-phone b { color: var(--primary); }
@media (max-width: 820px) {
  .yr { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
  .yr-month { padding: .55rem .5rem .6rem; border-radius: 14px; }
  .yr-day { font-size: var(--fs-small); }
  .tg-week .tg-head { padding: .4rem 0; border-left-width: 0; }
  .tg-week .tg-ev { padding: 2px 3px; font-size: var(--fs-small); border-left-width: 2px; }
  .tg-week .tg-ev .tg-time, .tg-week .tg-ev .tg-who { display: none; }
  .tg-week .tg-ev b { white-space: normal; hyphens: auto; overflow-wrap: anywhere; }
  .tg-week .tg-allday-label { font-size: 0; }
  .tg-week .tg-allday-label::after { content: "All"; font-size: var(--fs-small); }
  .tg-week .tg-allday-cell .cal-ev { font-size: var(--fs-small); padding: 1px 3px; }
  .tg-hours span { right: 4px; font-size: var(--fs-small); }
}

/* ---------- polish pass (v0.10.25) ---------- */
/* Same gap between every block of a page: two cards side by side, then a card or a notice under them. */
.grid2 + .card, .grid2 + .grid2, .card + .banner, .banner + .card, .tiles + .banner { margin-top: 1rem; }
/* File pickers look like the app's buttons instead of the browser's grey box. */
input[type=file] { font: inherit; font-size: var(--fs-body); color: var(--muted); max-width: 100%; }
input[type=file]::file-selector-button { font: inherit; font-weight: var(--fw-emph); font-size: var(--fs-body); color: var(--ink); background: var(--surface); border: 1px solid var(--line);
  border-radius: 999px; padding: .45rem 1rem; margin-right: .75rem; cursor: pointer; }
input[type=file]::file-selector-button:hover { border-color: var(--primary); background: var(--primary-soft); }
/* Chat: "Team & groups" is never cut by the New group button. */
.chat-list-head > span { white-space: normal; overflow: visible; }
/* A button waiting for a choice (Save & next) stays readable. */
.btn[disabled] { opacity: .62; }
/* Activity log: what happened first; on a phone each entry is a card with the time and person under it. */
.audit-table td:first-child { font-weight: var(--fw-emph); }
@media (max-width: 820px) {
  .audit-table.stacked td { text-align: left; }
  .audit-table.stacked td::before { min-width: 4.5rem; }
}
/* Primary buttons sit on the same green gradient in both themes: white text reads on it in dark mode too (was dark green, contrast 3.2). */
:root[data-theme="dark"] .btn.primary, :root[data-theme="dark"] .btn.primary:hover { color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .btn.primary { color: #fff; } }

/* ---------- contacts (v0.10.26) ---------- */
.contacts { list-style: none; margin: .6rem 0 0; padding: 0; display: grid; gap: .6rem; }
.contact { padding: .65rem .8rem; border-radius: var(--radius); background: var(--surface-2); }
.contact.main { box-shadow: inset 3px 0 0 var(--primary); }
.contact-head { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.contact-ways { display: flex; flex-wrap: wrap; gap: .25rem 1rem; margin-top: .25rem; font-size: var(--fs-body); }
.contact-ways a { display: inline-flex; align-items: center; gap: .3rem; overflow-wrap: anywhere; }
.contact-ways svg { width: 15px; height: 15px; }
.contact-actions { margin-top: .4rem; gap: .3rem; }
.contact-actions .btn { padding: .25rem .7rem; }
.danger-text { color: var(--danger); }
.ct-facts > div + div { margin-top: .15rem; }
.save-contact { margin-top: -.3rem; }

/* ---------- tasks (v0.10.27) ---------- */
.task-filters { justify-content: space-between; margin-bottom: 1rem; gap: .5rem; }
.task-filters .segs { flex-wrap: nowrap; }
.task-filters .seg { flex: 0 0 auto; }
.task-group h2 { font-size: var(--fs-section); display: flex; align-items: baseline; gap: .35rem; }
.task-group.overdue h2 { color: var(--danger); }
.tasks { list-style: none; margin: .4rem 0 0; padding: 0; }
.task { display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .2rem; border-top: 1px solid var(--line); }
.task:first-child { border-top: 0; }
.task > input[type=checkbox] { width: 20px; height: 20px; margin-top: .15rem; flex: none; accent-color: var(--primary); cursor: pointer; }
.task-main { min-width: 0; flex: 1; }
.task-title { font-weight: var(--fw-emph); overflow-wrap: anywhere; }
.task-title:hover { color: var(--primary); }
.task.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; margin-top: .2rem; }
.task.high { box-shadow: inset 3px 0 0 var(--danger); padding-left: .6rem; }
.tasks-card .tasks { margin-top: .5rem; }
@media (max-width: 820px) { .task-filters { flex-direction: column; align-items: stretch; } .task { padding: .7rem 0; } .task.high { padding-left: .6rem; } }

/* ---------- goals and leaderboard (v0.10.28) ---------- */
.goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .9rem 1.2rem; margin-top: .4rem; }
.goal-head b { font-size: var(--fs-body); }
.goal-track { height: 10px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .35rem 0 .2rem; }
.goal-bar { height: 100%; border-radius: inherit; background: linear-gradient(90deg, #0f7a55, #19b7a0); transition: width .4s; }
.goal-bar.met { background: linear-gradient(90deg, #17703a, #22c55e); }
.goal.met .goal-head .mono { color: var(--ok); font-weight: var(--fw-emph); }
.lb-head { flex-wrap: wrap; gap: .6rem; }
.lb-head .segs { flex-wrap: nowrap; }
.lb-head .seg { flex: 0 0 auto; }
.lb-head select { width: auto; }
.lb-me { margin: .4rem 0 .6rem; font-weight: var(--fw-emph); }
table.lb th.num, table.lb td.num { text-align: right; }
table.lb .sorted { font-weight: var(--fw-emph); }
table.lb tr.me td { background: var(--primary-soft); }
.lb-person { gap: .5rem; flex-wrap: nowrap; }
.rank { width: 2.5rem; }
.medal { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: var(--fs-small); font-weight: var(--fw-head); color: #3b2f00; }
.medal.m1 { background: #fcd34d; } .medal.m2 { background: #d1d5db; color: #1f2937; } .medal.m3 { background: #f2b48a; color: #4a2410; }
.goals-form th { text-align: left; font-weight: var(--fw-emph); padding-right: .8rem; white-space: nowrap; }
.goals-form td { padding: .25rem .3rem; }
.goals-form input { max-width: 9rem; }
@media (max-width: 820px) {
  .lb-head > .row { width: 100%; }
  table.lb.stacked td.rank { display: inline-block; width: auto; margin-right: .4rem; }
}
.lb-person > span:last-child { white-space: nowrap; }

/* ---------- automations (v0.10.29) ---------- */
.auto-examples { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .5rem; margin-top: .4rem; }
.automation h3 { margin: 0; }
.automation.off { opacity: .7; }
.automation p { margin: .4rem 0; }
.auto-actions { align-items: center; gap: .4rem; }
.auto-runs { margin: .4rem 0 0; padding-left: 1.1rem; }
.auto-runs li + li { margin-top: .2rem; }
.switch { display: inline-flex; align-items: center; gap: .4rem; font-weight: var(--fw-emph); cursor: pointer; }
.switch input { width: 34px; height: 20px; appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.25); }
.switch input:checked { background: var(--primary); }
.switch input:checked::after { transform: translateX(14px); }
.switch input:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.auto-part { border: 1px solid var(--line); border-radius: var(--radius); padding: .4rem .9rem .8rem; margin: 0; }
.auto-part legend { font-weight: var(--fw-emph); padding: 0 .3rem; }
.auto-part > * + * { margin-top: .6rem; }

/* ---------- custom fields (v0.10.30) ---------- */
.field-defs { list-style: none; margin: 0; padding: 0; }
.field-def { display: flex; align-items: center; gap: .8rem; padding: .7rem 0; }
.field-def + .field-def { border-top: 1px solid var(--line); }
.field-def .badge { margin-left: .2rem; }
.field-actions { gap: .25rem; }
@media (max-width: 560px) {
  .field-def { flex-wrap: wrap; }
  .field-actions { width: 100%; justify-content: flex-end; }
}
.choice-list { display: grid; gap: .35rem; margin-bottom: .4rem; }
.choice-row { flex-wrap: nowrap; gap: .35rem; }
.choice-row input { flex: 1; min-width: 0; }
.custom-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 0 .8rem; margin-bottom: .6rem; }
.custom-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; margin: .4rem 0 0; }
.custom-list dt { font-weight: var(--fw-emph); }
.custom-list dd { margin: 0; overflow-wrap: anywhere; }

/* ---------- email replies (v0.10.31) ---------- */
.history li.reply { border-left: 3px solid var(--primary); padding-left: .7rem; background: var(--surface-2); border-radius: 0 var(--radius) var(--radius) 0; margin: .35rem 0; }
.history li.reply + li { border-top: 0; }
.reply-body { margin-top: .3rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.reply-more summary { cursor: pointer; margin-top: .3rem; font-weight: var(--fw-regular); white-space: normal; }
.reply-more summary .more { color: var(--primary); font-weight: var(--fw-emph); }
.reply-more[open] summary { display: none; }
.replies-box { border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem .8rem; margin: .4rem 0 .8rem; }
.replies-box p { margin: 0 0 .5rem; }
.replies-box .row { align-items: center; gap: .6rem; }
.error-text { color: var(--danger); }

/* ---------- calling in a row (v0.10.32) ---------- */
.call-timer { align-items: center; gap: .6rem; margin: .5rem 0; }
.call-clock { font-variant-numeric: tabular-nums; font-weight: var(--fw-head); font-size: var(--fs-section); min-width: 3.5rem; }
.call-clock.running { color: var(--ok); }
.chip kbd { display: inline-block; min-width: 1.15rem; margin-right: .35rem; padding: 0 .25rem; border: 1px solid var(--line); border-radius: 4px; font: var(--fw-head) var(--fs-small)/1.25 ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; color: var(--muted); background: var(--surface); }
.chip[aria-pressed="true"] kbd { color: inherit; border-color: currentColor; background: transparent; }
.fu-presets { margin: -.2rem 0 .3rem; }
.fu-presets .chip { font-size: var(--fs-small); padding: .2rem .6rem; }
.session-bar { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1.2rem; margin: 0 0 .8rem; padding: .5rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-body); }
.session-bar .btn { margin-left: auto; }
.keys-list { display: grid; grid-template-columns: auto 1fr; gap: .35rem .9rem; align-items: center; margin: .6rem 0; }
.keys-list dd { margin: 0; }
.keys-list kbd { display: inline-block; min-width: 1.6rem; padding: .05rem .4rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: var(--fw-head) var(--fs-small) ui-monospace, SFMono-Regular, Menlo, monospace; text-align: center; }
.rest-row { align-items: center; gap: .4rem; flex-wrap: wrap; margin: .5rem 0; }
.rest-row input { width: 4.5rem; }
.script-list { display: grid; gap: .8rem; margin: .6rem 0; }
.script-row { padding: .7rem .8rem; border: 1px solid var(--line); border-radius: var(--radius); }
@media (max-width: 820px) { .keys-hint { display: none; } }

/* ---------- call statistics (v0.10.33) ---------- */
.stats-table th, .stats-table td { white-space: nowrap; }
.stats-table td.mono, .stats-table th:not(:first-child) { text-align: right; }
.stats-table tr.total td { font-weight: var(--fw-head); border-top: 2px solid var(--line); }
.heat { border-collapse: separate; border-spacing: 3px; font-size: var(--fs-small); }
.heat th { font-weight: var(--fw-emph); color: var(--muted); padding: 0 .2rem; text-align: center; }
.heat th[scope="row"] { text-align: left; padding-right: .4rem; }
.heat td { min-width: 2.4rem; height: 1.9rem; text-align: center; border-radius: 6px; font-variant-numeric: tabular-nums;
  background: color-mix(in srgb, var(--primary) var(--heat, 0%), var(--surface-2)); color: var(--ink); }
.heat td.few { color: var(--muted); }
.heat td.hot { color: var(--primary-ink); font-weight: var(--fw-emph); }
.heat td.empty { background: transparent; border: 1px dashed var(--line); }
@media (max-width: 820px) { .stats-table { font-size: var(--fs-body); } }
.heat th, .heat td { padding: 0 .15rem; border-top: 0; text-transform: none; letter-spacing: 0; }
.heat td { height: 1.9rem; line-height: 1.9rem; }
.heat thead th { height: 1.4rem; }

/* ---------- my day (v0.10.34) ---------- */
.md-card h2 { display: flex; align-items: center; gap: .5rem; }
.md-count { font-size: var(--fs-small); font-weight: var(--fw-emph); min-width: 1.6rem; padding: .05rem .5rem; border-radius: 999px; background: var(--primary-soft); color: var(--primary); text-align: center; }
.md-list { list-style: none; margin: .3rem 0 0; padding: 0; }
.md-list li { display: flex; align-items: flex-start; justify-content: space-between; gap: .8rem; padding: .55rem 0; border-top: 1px solid var(--line); }
.md-list li:first-child { border-top: 0; }
.md-list li > div { min-width: 0; }
.md-reply .wrap { margin-top: .2rem; }
.md-actions { display: flex; justify-content: flex-end; align-items: center; gap: .5rem; margin-top: .6rem; }

/* ---------- saved views (v0.10.35) ---------- */
.views-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem .8rem; margin: 0 0 .7rem; }
.views-chips { flex-wrap: wrap; }
.view-team { margin-left: .35rem; font-size: var(--fs-small); font-weight: var(--fw-emph); padding: 0 .35rem; border-radius: 999px; background: var(--info-soft); color: var(--info); }
.views-actions { gap: .4rem; }
.view-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }

/* ---------- live pipeline (v0.10.36) ---------- */
.pc-next { margin-top: .3rem; color: var(--muted); }
.pc-next.overdue { color: var(--danger); font-weight: var(--fw-emph); }
.pcard.attention { border-left: 3px solid var(--warn); }
.pcard.stuck, .pcard.attention.stuck { border-left: 3px solid var(--danger); }
.col-stuck { color: var(--danger); margin: 0 0 6px; }
.pc-why { margin-top: .25rem; font-style: italic; }
.col-attention { display: block; margin: -.2rem 0 .5rem; color: var(--warn); font-weight: var(--fw-emph); }
.pipeline-insights { margin-top: 1rem; }
.funnel td.mono { text-align: right; white-space: nowrap; }

/* ---------- duplicates (v0.10.37) ---------- */
.dup-group.sure { border-left: 3px solid var(--danger); }
.dup-reasons { gap: .35rem; margin-bottom: .5rem; }
.dup-group .row.end { margin-top: .6rem; gap: .5rem; }
.dup-banner ul { margin: .3rem 0 0; padding-left: 1.1rem; }
.dup-banner li + li { margin-top: .3rem; }
.merge-list { margin: .4rem 0; padding-left: 1.1rem; }
/* Radio buttons follow the theme: drawn in the page's dark scheme, an unticked one looked ticked (v0.10.37, then every radio in v0.10.38). */
input[type="radio"] { color-scheme: only light; cursor: pointer; }
.dup-group input[type="radio"] { width: 1.15rem; height: 1.15rem; accent-color: var(--primary); }
:root[data-theme="dark"] input[type="radio"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) input[type="radio"] { color-scheme: dark; } }

/* Guided import (v0.10.38): where each column goes, then what the import will do. */
.map-table select { min-width: 12rem; max-width: 100%; }
.map-table tr.unused td:first-child, .map-table tr.unused td:nth-child(2) { color: var(--muted); }
.plan-table caption { text-align: left; padding: .2rem 0 .4rem; caption-side: top; }
.imports-table td.wrap { max-width: 16rem; word-break: break-word; }

/* Command palette (v0.10.39): Ctrl+K / Cmd+K from any page. Its rows reuse the topbar search's look. */
.gsearch-kbd { position: absolute; right: .55rem; padding: .05rem .4rem; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); font: var(--fw-head) var(--fs-small)/1.4 var(--font); cursor: pointer; }
.gsearch-kbd:hover { color: var(--ink); border-color: var(--primary); }
.gsearch .gsearch-input { padding-right: 4.2rem; }
dialog.cmdk { margin: 12vh auto auto; padding: 0; width: min(620px, calc(100vw - 2rem)); max-height: 70vh; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgba(0, 0, 0, .35); overflow: hidden; }
dialog.cmdk[open] { display: flex; flex-direction: column; }
dialog.cmdk::backdrop { background: rgba(0, 0, 0, .45); }
.cmdk-top { display: flex; align-items: center; gap: .6rem; padding: .75rem 1rem; border-bottom: 1px solid var(--line); color: var(--muted); }
.cmdk-top .ico { width: 18px; height: 18px; flex: none; }
.cmdk-top kbd, .cmdk-foot kbd { padding: .05rem .4rem; border: 1px solid var(--line); border-radius: 6px; font: var(--fw-head) var(--fs-small)/1.4 var(--font); color: var(--muted); }
.cmdk .cmdk-input { flex: 1; min-width: 0; border: 0; padding: .3rem 0; background: transparent; color: var(--ink); font: inherit; font-size: var(--fs-section); }
.cmdk .cmdk-input:focus { outline: none; }
.cmdk-list { flex: 1; overflow: auto; }
.cmdk-item { cursor: pointer; }
.cmdk-empty { padding: 1.2rem 1rem; text-align: center; }
.cmdk-foot { margin: 0; padding: .5rem 1rem; border-top: 1px solid var(--line); background: var(--surface-2); }
@media (max-width: 760px) { dialog.cmdk { margin-top: .5rem; max-height: calc(100dvh - 1rem); width: calc(100vw - 1rem); } .cmdk-foot { display: none; } }
/* Phones and tablets have no Ctrl key: no shortcut chip on the search box. */
@media (hover: none), (max-width: 760px) { .gsearch-kbd { display: none; } .gsearch .gsearch-input { padding-right: .7rem; } }

/* Sequences (v0.10.40): the steps of each, and the card on a client's page. */
.seq-line { list-style: none; margin: .6rem 0; padding: 0; display: grid; gap: .5rem; }
.seq-line li { display: flex; gap: .6rem; align-items: flex-start; }
.seq.off { opacity: .7; }
.seq-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: .6rem; }
.seq-step { padding: .7rem .8rem; }
.seq-clients { margin: .4rem 0 0; padding-left: 1.1rem; }
.seq-clients li + li { margin-top: .25rem; }
.seq-card p { margin: .3rem 0; }
/* The left column is narrow on a wide screen: its fields one under the other. */
@media (min-width: 1360px) { .home-about .two { grid-template-columns: minmax(0, 1fr); } }

/* Lead score (v0.10.42): a badge in the client list and on the client's page, and its reasons in At a glance. */
.badge.score { font-variant-numeric: tabular-nums; }
.score-box { margin: 0 0 .8rem; padding: 0 0 .7rem; border-bottom: 1px solid var(--line); }
.score-why { list-style: none; margin: .45rem 0 0; padding: 0; display: grid; gap: .2rem; }
.score-why .pos { color: var(--ok, #0f8a5f); font-weight: var(--fw-emph); }
.score-why .neg { color: var(--danger, #c0392b); font-weight: var(--fw-emph); }
.sort-sel { min-width: 11rem; width: auto; }

/* Phone (v0.10.43): calls waiting for a signal, and "back from your call". */
.outbox-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(var(--nav-h, 0px) + .75rem); z-index: 40; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  max-width: calc(100vw - 1.5rem); padding: .55rem .8rem; border-radius: var(--radius); background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); box-shadow: var(--shadow); font-size: var(--fs-body); }
.back-banner { margin: 0 0 .7rem; }
.banner.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok); }
.toast.warn { background: var(--warn-soft); color: var(--warn); border: 1px solid var(--warn); }

/* Design finishing touches (v0.10.44): Undo in a message, filters as chips, the compact client list, getting started. */
.toast-undo { margin-left: .4rem; padding: .15rem .55rem; border-radius: 6px; border: 1px solid currentColor; background: transparent; color: inherit; font: inherit; font-weight: var(--fw-emph); cursor: pointer; }
.toast.show { pointer-events: auto; }
.filter-chips { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin: 0 0 .7rem; }
.filter-chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .35rem .25rem .7rem; border-radius: 999px; border: 1px solid var(--primary); background: var(--primary-soft); color: var(--ink); font-size: var(--fs-body); }
.filter-chip button { display: inline-grid; place-items: center; width: 1.4rem; height: 1.4rem; border-radius: 50%; border: 0; background: transparent; color: inherit; cursor: pointer; font-size: var(--fs-body); line-height: 1; }
.filter-chip button:hover, .filter-chip button:focus-visible { background: var(--surface); }
.homes-table.compact td { padding-top: .3rem; padding-bottom: .3rem; }
.homes-table.compact .avatar, .homes-table.compact .cl-cell .muted { display: none; }
.gs-list { list-style: none; margin: .4rem 0 0; padding: 0; display: grid; gap: .45rem; }
.gs-list li { display: flex; gap: .6rem; align-items: flex-start; }
.gs-list .gs-tick { flex: none; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1.5px solid var(--line); display: inline-grid; place-items: center; font-size: var(--fs-small); margin-top: .1rem; }
.gs-list li.done .gs-tick { background: var(--primary); border-color: var(--primary); color: #fff; }
.gs-list li.done a { color: var(--muted); text-decoration: line-through; }
.gs-bar { height: 6px; border-radius: 999px; background: var(--surface-2); overflow: hidden; margin: .3rem 0 .2rem; }
.gs-bar > span { display: block; height: 100%; background: var(--primary); }
.btn[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--ink); }

/* Settings > Backups (v0.10.45) */
.backup-state { padding: .6rem .8rem; border-radius: 8px; margin: .4rem 0 .8rem; }
.backup-state.ok { background: var(--ok-soft); color: var(--ok); }
.backup-state.bad { background: var(--danger-soft); color: var(--danger); }
.backup-facts { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: .4rem 0 .8rem; }
.backup-facts dt { color: var(--muted); }
.backup-facts dd { margin: 0; }

/* Sign-in page: link to the privacy notice (v0.10.47) */
.auth-privacy { text-align: center; margin: .8rem 0 0; font-size: var(--fs-body); }
.auth-privacy a { color: var(--muted); }

/* A new version is ready (v0.10.48): a bar above everything, with a Reload button */
.update-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  display: flex; align-items: center; gap: .8rem; max-width: calc(100vw - 32px); padding: .55rem .6rem .55rem 1rem;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.35); }
@media (min-width: 900px) { .update-bar { bottom: 24px; } }
.backup-download { border-top: 1px solid var(--line); margin-top: .8rem; padding-top: .8rem; }
.backup-download p { margin: .5rem 0 0; }

/* Sign in with a code (v0.10.51) */
.auth-lead { margin: -.2rem 0 1rem; font-size: var(--fs-body); }
.auth-switch { text-align: center; margin: .9rem 0 0; }
.code-input { font-size: var(--fs-title); letter-spacing: .4em; text-align: center; font-variant-numeric: tabular-nums; }
.invite-note { margin: .2rem 0 .8rem; }

/* Create an account (v0.10.52): the field only robots fill, kept off screen */
.trap { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* Visual language (v0.10.55), the rest. Browsers make <b>, <strong> and <th> bolder than our three weights. */
b, strong { font-weight: var(--fw-head); }
th { font-weight: var(--fw-emph); }
/* On a computer, controls are compact (32-34 px); on a phone they keep their touch size (44 px). */
@media (min-width: 821px) {
  .btn { min-height: 34px; padding: .3rem .8rem; border-radius: 8px; }
  .btn.small { min-height: 28px; padding: .15rem .6rem; font-size: var(--fs-body); }
  .chip { min-height: 32px; padding: .25rem .7rem; font-size: var(--fs-body); border-width: 1px; }
  .stage-chip { min-height: 30px; padding: .2rem .7rem; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=search], input[type=number], input[type=tel], input[type=time], select, textarea { font-size: var(--fs-body); }
  .card { padding: .9rem 1rem; }
  .tiles { gap: .5rem; }
  .tile { padding: .6rem .8rem; }
}
/* On a phone every field stays at 16 px: below that, iPhones zoom the page when a field is tapped. */
@media (max-width: 820px) { input, select, textarea { font-size: 16px !important; } }

/* Light side bar and top bar (v0.10.55): white, a fine line between them and the page; the logo is the only dark mark. */
:root { --chrome: #ffffff; --chrome-2: #f1f5f3; --chrome-ink: #3d4a44; --chrome-muted: #7b8782; }
:root[data-theme="dark"] { --chrome: #101a15; --chrome-2: #18241e; --chrome-ink: #d3e0da; --chrome-muted: #8ba196; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --chrome: #101a15; --chrome-2: #18241e; --chrome-ink: #d3e0da; --chrome-muted: #8ba196; } }
.sidenav { border-right: 1px solid var(--line); }
.topbar { border-bottom: 1px solid var(--line); }
.panel { border-top-left-radius: 0; box-shadow: none; }
.brand { color: var(--ink); }
.navlink { color: var(--chrome-ink); font-weight: var(--fw-emph); }
.navlink:hover { background: var(--chrome-2); color: var(--ink); }
.navlink.active { background: var(--primary-soft); color: var(--primary); box-shadow: none; }
.navlink.active .ico { color: var(--primary) !important; }
.nav-badge { background: var(--primary-soft); color: var(--primary); }
.navlink.active .nav-badge { background: var(--surface); }
/* Unread notifications and messages stay red: they call for attention; counts (tasks, filters) stay soft. */
.bell-badge, #chat-badge { background: #e5484d; color: #fff; }
.avatar-btn:hover, .avatar-btn[aria-expanded=true] { background: var(--chrome-2); }
.nav-toggle, .bell-btn { color: var(--chrome-muted); }
.nav-toggle:hover, .bell-btn:hover { background: var(--chrome-2); color: var(--ink); }

/* Clients (v0.10.56, redesign step 2): one green button and a More menu; the filter choices fold behind
   "Filters" on every screen; the list and, from 1280 px, a preview of the picked client; a floating selection bar. */
.more { position: relative; }
.more-btn .chev { font-size: var(--fs-small); color: var(--muted); }
.more-menu { width: 210px; padding: .3rem; }
.more-menu .menu-item { min-height: 36px; padding: .45rem .7rem; border: 0; border-radius: 7px; }
.more-menu .menu-item:last-child.danger-text { margin-top: .25rem; border-top: 1px solid var(--line); border-radius: 0 0 7px 7px; }
.filter-toggle { display: inline-flex; flex: none; align-items: center; }
.filter-toggle[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.filter-panel { display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; flex: 1 1 100%; padding: .7rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.toolbar.filters:not(.open) > .filter-panel { display: none; }
.filter-panel > select { width: auto; flex: 0 1 190px; min-height: 36px; }
.filter-panel > label.row { min-height: 36px; padding: 0 .8rem; gap: .5rem; border-radius: 999px; border: 1px solid var(--line); cursor: pointer; }
.views-chips .chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.views-chips .chip[aria-pressed="true"] .view-team { color: inherit; opacity: .75; }
.homes-table tbody tr { cursor: default; }
.homes-table tbody tr.picked td { background: var(--primary-soft); }
.homes-table tbody tr.picked td:first-child { box-shadow: inset 3px 0 0 var(--primary); }
.home-preview { display: none; }
@media (min-width: 1280px) {
  .homes-split { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1rem; align-items: start; }
  .home-preview { display: grid; gap: .9rem; position: sticky; top: 1rem; padding: 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-body); }
  .homes-table tbody tr { cursor: pointer; }
  /* Beside the preview, a client stays on one line: name, then town and region, cut with an ellipsis. */
  .homes-split .homes-table td.c-client { width: 99%; max-width: 0; min-width: 12rem; }
  .homes-split .homes-table .c-calls { display: none; } /* the preview gives the calls */
  .homes-split .cl-cell > div { min-width: 0; }
  .homes-split .cl-cell a, .homes-split .cl-cell .muted { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.pv-empty p { margin: .2rem 0; }
.home-preview kbd { display: inline-block; min-width: 1.3rem; padding: 0 .3rem; margin-left: .3rem; border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 5px; font: var(--fw-emph) var(--fs-small)/1.4 var(--font); text-align: center; color: var(--muted); background: var(--surface); }
.pv-head { display: flex; gap: .7rem; align-items: center; min-width: 0; }
.pv-head > div { min-width: 0; }
.pv-name { display: block; font-size: var(--fs-body); font-weight: var(--fw-head); color: var(--ink); text-decoration: none; overflow-wrap: anywhere; }
.pv-phone { font-size: var(--fs-section); font-variant-numeric: tabular-nums; color: var(--primary); text-decoration: none; letter-spacing: .01em; }
.pv-acts { display: flex; gap: .4rem; }
.pv-acts .btn { flex: 1; justify-content: center; }
.pv-acts .btn.primary kbd { color: inherit; background: transparent; border-color: currentColor; }
.pv-badges { gap: .3rem; flex-wrap: wrap; }
.pv-label { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: .15rem; }
.pv-note { margin-top: .15rem; overflow-wrap: anywhere; }
/* The selection bar floats at the bottom of the screen on a computer, dark, and only while rows are ticked. */
@media (min-width: 821px) {
  .selbar:not(.hidden) { position: fixed; z-index: 25; left: 50%; bottom: 1.2rem; transform: translateX(-50%); margin: 0; width: max-content; max-width: calc(100vw - 2rem); padding: .35rem .4rem .35rem 1rem; border: 0; border-radius: 12px; background: #1b2420; color: #eef3f0; box-shadow: 0 14px 30px -10px rgba(0, 0, 0, .5); }
  .selbar .btn { background: #2b3732; border-color: #2b3732; color: #eef3f0; }
  .selbar .btn.ghost { background: transparent; border-color: transparent; }
  .selbar .btn.danger { background: #3a2224; border-color: #3a2224; color: #ffb4b4; }
  .homes-split { padding-bottom: 3.5rem; }
}

/* Queue in session mode (v0.10.57, redesign step 3). The counts are a strip in the head; the session is a dark band
   (a live dot, calls, conversations, time on the phone, pace); one call card; the next clients stacked and fading. */
.queue-head .queue-tiles { display: flex; flex-wrap: wrap; gap: .35rem; margin: 0; grid-template-columns: none; flex: 1 1 auto; }
.queue-head .queue-tiles .tile { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: .35rem; padding: .25rem .7rem; min-height: 0; border-radius: 999px; box-shadow: none; }
.queue-head .queue-tiles .tile::before { display: none; }
.queue-head .queue-tiles .tile b { font-size: var(--fs-body); }
.queue-head .queue-tiles .tile span { font-size: var(--fs-small); color: var(--muted); }
.queue-head .queue-tiles .tile.alert b { color: var(--danger); }
.session-bar { background: #0b3d2e; color: #d9efe5; border: 0; border-radius: 12px; padding: .6rem 1rem; gap: .4rem 1.1rem; }
.session-bar b { color: #fff; font-weight: var(--fw-emph); }
.session-bar .live { width: 8px; height: 8px; border-radius: 50%; background: #45d49b; box-shadow: 0 0 0 4px rgba(69, 212, 155, .22); }
.session-bar .ses-title { margin-right: .3rem; }
.session-bar .btn { background: transparent; color: #fff; border-color: #2f6b56; }
.session-card { display: grid; gap: .9rem; }
.session-card .call-hero { display: flex; align-items: center; gap: .8rem; }
.session-card .call-who { flex: 1; min-width: 0; }
.session-card .call-name { margin: 0; font-size: var(--fs-section); overflow-wrap: anywhere; }
.session-card .full-record { align-self: flex-start; }
.session-card .call-badges { gap: .3rem; }
.session-card .call-line { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.session-card .phone { display: inline-flex; align-items: center; gap: .7rem; padding: .55rem 1rem; border-radius: 11px; background: var(--primary); color: var(--primary-ink); font-size: var(--fs-section); font-variant-numeric: tabular-nums; text-decoration: none; letter-spacing: .01em; }
.session-card .phone kbd { font: var(--fw-emph) var(--fs-small)/1.4 var(--font); padding: 0 .35rem; border: 1px solid rgba(255, 255, 255, .45); border-radius: 5px; color: inherit; opacity: .85; }
.session-card .call-timer { margin: 0; }
.brief { display: grid; grid-template-columns: 8.5rem minmax(0, 1fr); gap: .35rem .9rem; margin: 0; padding: .8rem 1rem; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-body); }
.brief dt { color: var(--muted); }
.brief dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.brief-note { margin-top: .15rem; }
.outcome-keys { display: grid; gap: .6rem; }
.session-card .outcome-keys .chips { display: grid; grid-template-columns: repeat(auto-fill, minmax(9.5rem, 1fr)); gap: .4rem; }
.session-card .outcome-keys .chip { justify-content: flex-start; min-height: 40px; border-radius: 9px; border-bottom-width: 3px; text-align: left; line-height: 1.25; }
.session-card .outcome-keys .g-spoke .chip[aria-keyshortcuts] { background: var(--primary-soft); border-color: color-mix(in srgb, var(--primary) 35%, transparent); }
.session-card .outcome-keys .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.call-more > summary { cursor: pointer; color: var(--muted); font-size: var(--fs-body); min-height: 32px; display: flex; align-items: center; }
.call-more[open] > summary { margin-bottom: .5rem; }
.upnext-wrap { padding: .2rem .2rem 0; }
.upnext-wrap h3 { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: 0 0 .5rem; }
.upnext-wrap .upnext li { display: grid; gap: .1rem; justify-items: start; padding: .6rem .75rem; margin-bottom: .45rem; border: 1px solid var(--line); border-radius: 11px; background: var(--surface); }
.upnext-wrap .upnext li a { font-weight: var(--fw-emph); color: var(--ink); text-decoration: none; }
.upnext-wrap .upnext li:nth-child(n+3) { opacity: .8; }
.upnext-wrap .upnext li:nth-child(n+5) { opacity: .55; }
.script-drawer > summary { cursor: pointer; font-weight: var(--fw-emph); min-height: 36px; display: flex; align-items: center; }
.side > .script-drawer { margin-top: .6rem; }
@media (max-width: 820px) {
  .queue-head .queue-tiles { flex-wrap: nowrap; width: 100%; }
  .queue-head .queue-tiles .tile { flex: 1 1 0; flex-direction: column-reverse; align-items: flex-start; gap: 0; border-radius: 12px; padding: .4rem .55rem; }
  .session-card .phone { display: flex; justify-content: center; width: 100%; min-height: 48px; }
  .brief { grid-template-columns: 1fr; gap: .1rem; }
  .brief dd { margin-bottom: .4rem; }
  .session-card .outcome-keys .chips { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Client page (v0.10.58, redesign step 4). Two columns at every width above a tablet: the work, then a rail with
   what comes next and the client. The stage is a timeline under the name; the history is a thread by day. */
@media (min-width: 1360px) { .home-grid { grid-template-columns: minmax(0, 1.65fr) minmax(320px, 1fr); grid-template-areas: "main side" "main about"; } }
.home-where { margin: -.15rem 0 .4rem; }
.home-actions { gap: .4rem; align-items: center; }
.home-title .phone { display: inline-flex; align-items: center; gap: .45rem; margin-top: .6rem; padding: .4rem .9rem; border-radius: 10px; background: var(--primary-soft); color: var(--primary); font-size: var(--fs-section); font-variant-numeric: tabular-nums; text-decoration: none; }
.stage-steps { display: flex; gap: .6rem; align-items: stretch; margin: 0 0 1.1rem; }
.steps-line { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .3rem; flex: 1; min-width: 0; }
.stage-step { display: block; padding: .45rem .1rem 0; border: 0; border-top: 3px solid var(--line); background: none; color: var(--muted); font: inherit; font-size: var(--fs-body); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.stage-step { cursor: pointer; }
button.stage-step:hover { color: var(--ink); border-top-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.stage-step.done { border-top-color: var(--primary); color: var(--primary); }
.stage-step.current { border-top-color: #7c5cf0; color: var(--ink); font-weight: var(--fw-emph); }
.stage-step.lost { flex: none; padding-left: .7rem; padding-right: .7rem; border-top-color: transparent; border-radius: 0 0 8px 8px; }
.stage-step.lost.current { border-top-color: var(--danger); color: var(--danger); }
.stage-steps.is-closed .stage-step { opacity: .55; }
.stage-steps.is-closed .stage-step.lost { opacity: 1; }
.details-list { display: grid; grid-template-columns: 7.5rem minmax(0, 1fr); gap: .35rem .8rem; margin: .4rem 0 0; font-size: var(--fs-body); }
.details-list dt { color: var(--muted); }
.details-list dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.details-form { margin-top: .5rem; }
.history.thread { position: relative; }
.history.thread li { position: relative; padding-left: 1.4rem; }
.history.thread li::after { content: ""; position: absolute; left: .2rem; top: .95rem; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); box-shadow: 0 0 0 3px var(--surface); }
.history.thread li.k-call::after { background: var(--primary); }
.history.thread li.k-email::after { background: #2f7bd9; }
.history.thread li.k-note::after { background: #e39b16; }
.history.thread li.k-change::after { background: #7c5cf0; }
.history.thread li.day-start::before { content: attr(data-day); display: block; margin: .3rem 0 .35rem -1.4rem; font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.history.thread li.day-start::after { top: 2.35rem; }
@media (max-width: 820px) {
  .stage-steps { flex-direction: column; gap: .3rem; }
  .steps-line { overflow-x: auto; grid-auto-columns: minmax(5.5rem, 1fr); scrollbar-width: none; }
  .steps-line::-webkit-scrollbar { display: none; }
  .home-actions .back-link { display: none; }
  .details-list { grid-template-columns: 1fr; gap: .05rem; }
  .details-list dd { margin-bottom: .4rem; }
}

/* Pipeline Overview and the Hot / Warm / Cold board */
.deal-table { width: 100%; }
.deal-table tr.picked td { background: var(--primary-soft); }
.deal-table .overdue, .pcard .overdue { color: var(--danger); }
a.seg { text-decoration: none; text-align: center; }
a.seg[aria-current="page"] { background: var(--primary-soft); border-color: var(--primary); }
.temp-board { grid-auto-flow: column; grid-auto-columns: minmax(240px, 1fr); }
.temp-tray { min-height: 0; margin-bottom: 1rem; }
.temp-tray-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.temp-tray-cards .pcard { margin-bottom: 0; }

/* Pipeline dropdown in the side menu */
.nav-row { position: relative; display: flex; align-items: center; }
.nav-row .navlink { flex: 1; min-width: 0; padding-right: 2.2rem; }
.nav-caret { position: absolute; right: .3rem; width: 30px; height: 30px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: inherit; cursor: pointer; }
.nav-caret:hover { background: var(--surface-2); }
.nav-caret .ico { transform: rotate(-90deg); }
.nav-group.open .navlink:not(.active) { background: var(--surface-2); }
.nav-sub { display: none; position: fixed; z-index: 60; flex-direction: column; gap: .15rem; width: 230px; padding: .6rem; background: #2f3238; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
.nav-group.open .nav-sub { display: flex; }
.nav-sub a { display: flex; align-items: center; justify-content: space-between; gap: .5rem; color: #f4f5f7; text-decoration: none; padding: .55rem .65rem; border-radius: 9px; }
.nav-sub a:hover { background: rgba(255, 255, 255, .1); }
.nav-sub a.active { background: rgba(255, 255, 255, .18); color: #fff; }
.nav-sub .nav-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.collapsed .nav-caret { display: none; }
.collapsed .nav-row .navlink { padding-right: .55rem; }
@media (max-width: 820px) { .nav-group, .nav-row { display: contents; } .nav-caret, .nav-sub { display: none !important; } .nav-row .navlink { padding-right: .1rem; } }
/* Read receipts */
.msg-tick { border: 0; background: none; padding: 0 .2rem; margin-left: .3rem; font: inherit; color: var(--muted); cursor: pointer; letter-spacing: -.15em; }
.msg-tick.read { color: var(--info); }
.read-info ul { list-style: none; margin: 0 0 1rem; padding: 0; display: grid; gap: .4rem; }
.read-info h3 { margin: 0 0 .4rem; }
.nav-row .navlink .nav-badge { margin-right: .2rem; }

/* Pipeline: New folded on a computer (v0.10.64, redesign step 5) */
.pipeline.new-folded { grid-template-columns: 200px; }
.col.folded { min-height: 0; }
.fold-body { display: grid; gap: .5rem; justify-items: start; }
.fold-body p { margin: 0; }
.col h3 .col-fold { margin-left: auto; min-height: 26px; padding: 0 .5rem; font-size: var(--fs-small); }

/* My day as a plan of the day (v0.10.65, redesign step 5). The figures as a strip; a plan from 8 h to 20 h (calls,
   calendar, tasks) with a red line for now; a dark "Now" panel saying what to do next. */
.md-tiles { display: flex; flex-wrap: wrap; gap: .35rem; grid-template-columns: none; margin-bottom: 1rem; }
.md-tiles .tile { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: .35rem; padding: .25rem .7rem; min-height: 0; border-radius: 999px; box-shadow: none; }
.md-tiles .tile::before { display: none; }
.md-tiles .tile b { font-size: var(--fs-body); }
.md-tiles .tile span { font-size: var(--fs-small); color: var(--muted); }
.md-tiles .tile.alert b { color: var(--danger); }
.day-plan { padding: .8rem 1rem 1rem; margin-bottom: 1rem; }
.plan-allday { margin-bottom: .5rem; color: var(--muted); }
.plan-grid { position: relative; display: grid; gap: .35rem; }
.plan-lane, .plan-hours, .plan-now-wrap { display: grid; grid-template-columns: 5.5rem minmax(0, 1fr); align-items: center; }
.plan-now-wrap { position: absolute; inset: 0; pointer-events: none; }
.plan-name { font-size: var(--fs-small); color: var(--muted); }
.plan-track { position: relative; height: 28px; }
.plan-hours .plan-track { height: 18px; border-bottom: 1px solid var(--line); }
.plan-hours .plan-track span { position: absolute; top: 0; font-size: var(--fs-small); color: var(--muted); transform: translateX(-2px); }
.plan-lane .plan-track { background: repeating-linear-gradient(90deg, var(--line) 0 1px, transparent 1px calc(100% / var(--span, 12))); border-radius: 6px; }
.plan-blk { position: absolute; top: 3px; height: 22px; display: flex; align-items: center; padding: 0 .4rem; border-radius: 6px; font-size: var(--fs-small); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; text-decoration: none; }
.plan-blk.calls { background: var(--primary-soft); color: var(--primary); box-shadow: inset 3px 0 0 var(--primary); }
.plan-blk.calls.past { opacity: .75; }
.plan-blk.meet { background: #efeafe; color: #5b3fc4; box-shadow: inset 3px 0 0 #7c5cf0; }
.plan-blk.task { background: #fff3df; color: #8a5208; box-shadow: inset 3px 0 0 #e39b16; }
.plan-now-wrap .plan-track { height: 100%; }
.plan-now { position: absolute; top: 0; bottom: 0; width: 2px; background: #d64545; }
.now-panel { display: grid; gap: .35rem; justify-items: start; margin-bottom: 1rem; padding: .9rem 1.1rem; border-radius: 12px; background: #0b3d2e; color: #d9efe5; }
.now-panel b { color: #fff; font-size: var(--fs-section); font-weight: var(--fw-head); }
.now-panel .np-label { font-size: var(--fs-small); letter-spacing: .06em; text-transform: uppercase; color: #9fcdb9; }
.now-panel .np-btn { margin-top: .2rem; padding: .4rem .9rem; border-radius: 9px; background: #45d49b; color: #0b3d2e; font-weight: var(--fw-emph); text-decoration: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .plan-blk.meet { background: #2a2346; color: #c9b8ff; } :root:not([data-theme="light"]) .plan-blk.task { background: #3a2a10; color: #f2c06b; } }
:root[data-theme="dark"] .plan-blk.meet { background: #2a2346; color: #c9b8ff; }
:root[data-theme="dark"] .plan-blk.task { background: #3a2a10; color: #f2c06b; }
@media (max-width: 820px) {
  .md-tiles { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .md-tiles .tile { flex: none; }
  .plan-lane, .plan-hours, .plan-now-wrap { grid-template-columns: 3.6rem minmax(0, 1fr); }
  .day-plan { overflow-x: auto; scrollbar-width: thin; }
  .plan-grid { min-width: 620px; }
  .plan-blk { font-size: var(--fs-small); padding: 0 .25rem; }
}

/* Call windows (v0.10.66, redesign step 6): a strip of today's hours, a week map, why now in the Queue. */
.win-strip { display: inline-grid; grid-template-columns: repeat(12, 1fr); gap: 1.5px; width: 7.5rem; height: 14px; vertical-align: middle; }
.win-strip i, .win-map i { border-radius: 2px; background: var(--surface-2); }
.win-strip i.l1, .win-map i.l1 { background: color-mix(in srgb, var(--primary) 22%, var(--surface)); }
.win-strip i.l2, .win-map i.l2 { background: color-mix(in srgb, var(--primary) 55%, var(--surface)); }
.win-strip i.l3, .win-map i.l3 { background: var(--primary); }
.win-strip i.now { box-shadow: inset 0 0 0 1.5px var(--ink); }
.win-map { display: grid; grid-template-columns: 2rem repeat(12, minmax(0, 1fr)); gap: 2px; align-items: center; margin: .4rem 0; }
.win-map i { height: 13px; }
.win-map .wm-h, .win-map .wm-d { font-size: var(--fs-small); color: var(--muted); }
@media (min-width: 1280px) { .homes-split .homes-table .c-win { display: none; } } /* beside the preview, which shows it */
.why-now { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; padding: .55rem .8rem; border-radius: 10px; background: var(--surface-2); font-size: var(--fs-body); }
.why-now.good { background: var(--primary-soft); }
.why-now.poor { background: color-mix(in srgb, var(--warn) 12%, var(--surface)); }
.why-now .win-strip { width: 9rem; }
.upnext-wrap .upnext li .win-strip { width: 100%; margin-top: .15rem; }
.homes-table .c-win .win-strip { width: 5.5rem; }
.best-first[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }

/* Planned calling sessions (v0.10.68, redesign step 7): the pace towards the target, with a marker for where you
   should be by now. */
.ses-pace { position: relative; display: inline-block; flex: 1 1 140px; max-width: 260px; height: 6px; border-radius: 99px; background: #1d5a45; }
.ses-pace i { position: absolute; inset: 0 auto 0 0; border-radius: 99px; background: #45d49b; }
.ses-pace u { position: absolute; top: -4px; width: 2px; height: 14px; background: #fff; opacity: .75; text-decoration: none; }
.ses-say { white-space: nowrap; }
.ses-summary .glance { margin: 0; }

/* Side menu in groups (v0.10.69, redesign step 5): Work, Records, Team; Compliance and Settings at the bottom.
   Not on a phone (tabs) nor when the menu is folded to icons. */
.nav-heading { padding: .9rem .75rem .25rem; font-size: var(--fs-small); font-weight: var(--fw-emph); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.sidenav nav > .nav-heading:first-child { padding-top: .2rem; }
@media (min-width: 821px) {
  .sidenav nav { flex: 1; display: flex; flex-direction: column; }
  .nav-spacer { flex: 1; min-height: .75rem; }
}
.collapsed .nav-heading { display: none; }
@media (max-width: 820px) { .nav-heading, .nav-spacer { display: none; } }

/* Tables on a phone in compact rows (v0.10.70, redesign step 8a): the name and the key figure on the first line, the
   other columns small on the second, each with its heading. Tables without a key column keep their cards. */
@media (max-width: 640px) {
  table.stacked[data-key] tr { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: .75rem; row-gap: .15rem; padding: .55rem .75rem; margin-bottom: .4rem; }
  table.stacked[data-key] tr::after { content: ""; order: 2; flex-basis: 100%; height: 0; }
  table.stacked[data-key] td { order: 3; display: block; padding: 0; text-align: left; font-size: var(--fs-body); color: var(--muted); background: none; }
  table.stacked[data-key] td::before { float: none; margin-right: .3rem; font-size: inherit; font-weight: var(--fw-regular); color: var(--muted); opacity: .8; }
  table.stacked[data-key] td::after { content: none; }
  table.stacked[data-key] td:first-child:not(.selcol), table.stacked[data-key] td.rank + td { order: 0; flex: 1 1 0; min-width: 0; padding: 0; font-size: var(--fs-body); font-weight: var(--fw-emph); color: var(--ink); }
  table.stacked[data-key] td.cell-key { order: 1; margin-left: auto; font-size: var(--fs-body); font-weight: var(--fw-head); color: var(--ink); white-space: nowrap; }
  table.stacked[data-key] td.cell-key::before, table.stacked[data-key] td.rank + td::before { content: none; }
  table.stacked[data-key] td.cell-key[data-unit]::after { content: " " attr(data-unit); display: inline; font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--muted); }
  table.stacked[data-key] td:not(:first-child):not(.cell-key):not([data-label]), table.stacked[data-key] td[data-label=""] { flex-basis: 100%; }
  table.stacked[data-key] td select { width: auto; max-width: 100%; vertical-align: baseline; }
  /* The leaderboard: the rank before the name; my own row tinted as a whole. */
  table.lb.stacked[data-key] td.rank { order: 0; flex: 0 0 auto; width: auto; margin: 0; font-size: var(--fs-body); color: var(--muted); }
  table.lb.stacked[data-key] tr.me { background: var(--primary-soft); }
  table.lb.stacked[data-key] tr.me td { background: none; }
}
.collapsed .nav-group.open .navlink:hover::after, .collapsed .nav-group.open .navlink:focus-visible::after { content: none; }


/* Settings on a phone (v0.10.74, redesign step 8b): the page is titled with the section, so the card's own title,
   the same words, is kept for screen readers only. */
@media (max-width: 820px) {
  .settings-body h2.section-title { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Clients (v0.10.75, redesign step 8c): the total beside the title; on a phone a compact top and lighter cards. */
.clients-head .title-count { display: flex; align-items: baseline; gap: .5rem; min-width: 0; }
.clients-head .head-count { font-size: var(--fs-body); font-weight: var(--fw-emph); color: var(--muted); font-variant-numeric: tabular-nums; }
.clients-head .head-count:empty { display: none; }
.clients-head .add-plus, .clients-head .more-dots { display: none; }
@media (max-width: 820px) {
  /* One line: Clients 17,895 … ⋯ + */
  .page-head.clients-head { flex-wrap: nowrap; margin-bottom: .6rem; }
  .page-head.clients-head > .row:last-child { width: auto; flex-wrap: nowrap; padding: 0; }
  .clients-head .more-word, .clients-head .add-word { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .clients-head .more-dots, .clients-head .add-plus { display: inline; font-size: var(--fs-section); line-height: 1; }
  .clients-head .more-btn .chev { display: none; }
  .clients-head .more-btn, .clients-head .add-client { min-width: 44px; min-height: 44px; padding: 0 .7rem; justify-content: center; }
  /* Saved views: one row that slides sideways */
  .views-bar { flex-wrap: nowrap; margin-bottom: .5rem; }
  .views-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0; padding-bottom: 2px; }
  .views-chips::-webkit-scrollbar { display: none; }
  .views-chips .chip { flex: none; }
  .views-actions { flex: none; }
  .toolbar.filters { margin-bottom: .5rem; }
  /* Sort and the count on one line; the page controls only at the bottom; Compact is in the ⋯ menu */
  .homes-top { flex-wrap: nowrap; gap: .5rem; margin-bottom: .5rem; }
  .homes-top > .row { flex: none; }
  .homes-top .pager, .homes-top .compact-btn { display: none; }
  .homes-top .sort-sel { width: auto; min-height: 36px; padding-top: .3rem; padding-bottom: .3rem; }
  .homes-top .count .count-word { display: none; }
  .homes-top .count { margin: 0; font-size: var(--fs-body); color: var(--muted); text-align: right; }
  /* Cards: no box until Select clients; no lone dash; no Cold score */
  .homes-holder:not(.selecting) table.stacked.homes-table td.selcol, .homes-holder:not(.selecting) .homes-table th.selcol { display: none; }
  table.stacked.homes-table td.c-win.none, table.stacked.homes-table td.c-score.cold { display: none; }
}

/* Queue (v0.10.75, redesign step 8c): on a phone the counts as one line of pills, the region, area and Best time first
   behind Filters, the screening note in one sentence, so the client to call comes up sooner. */
.q-filter-toggle { display: none; }
@media (max-width: 820px) {
  .page-head.queue-head { margin-bottom: .5rem; gap: .45rem; }
  .queue-head .queue-tiles { display: flex; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: .35rem; width: 100%; }
  .queue-head .queue-tiles::-webkit-scrollbar { display: none; }
  .queue-head .queue-tiles .tile { flex: none; display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: .3rem; padding: .3rem .7rem; min-height: 0; border-radius: 999px; box-shadow: none; }
  .queue-head .queue-tiles .tile::before { display: none; }
  .queue-head .queue-tiles .tile b { font-size: var(--fs-body); }
  .queue-head .queue-tiles .tile span { display: inline; font-size: var(--fs-body); }
  .queue-head .head-filters { width: 100%; flex-wrap: wrap; gap: .4rem; margin: 0; }
  .q-filter-toggle { display: inline-flex; min-height: 40px; }
  .queue-head .head-filters:not(.open) > select, .queue-head .head-filters:not(.open) > .best-first { display: none; }
  .queue-head .head-filters.open > select { flex: 1 1 calc(50% - .2rem); }
  .banner .banner-more { display: none; }
}

/* Pipeline and Compliance on a phone (v0.10.76, redesign step 8d). A card: the name across, then the place and the
   next step on the left and the stage menu, at its own width, on the right. Compliance: the figures first, the
   explanation folded under them. */
@media (max-width: 820px) {
  .pcard:has(> .pc-move) { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: .6rem; align-items: end; }
  .pcard:has(> .pc-move) > * { grid-column: 1; }
  .pcard:has(> .pc-move) > .pc-top { grid-column: 1 / -1; }
  .pcard > .pc-move { grid-column: 2; grid-row: 2 / span 4; align-self: end; width: auto; max-width: 7.5rem; margin-top: 0; padding-right: 1.6rem; }
  .pipe-hint { font-size: var(--fs-body); }
  details.compliance-why > summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
  details.compliance-why > summary::-webkit-details-marker { display: none; }
  details.compliance-why > summary::after { content: "Show"; font-size: var(--fs-body); color: var(--primary); font-weight: var(--fw-emph); }
  details.compliance-why[open] > summary::after { content: "Hide"; }
  details.compliance-why > summary h2 { margin: 0; }
  details.compliance-why[open] > summary { margin-bottom: .5rem; }
}

/* Chat, Teams-style (v0.10.79): one-line message box with its buttons inside, a list you can resize, times on hover,
   date lines between groups of messages, and a menu on each conversation. */
.chat { grid-template-columns: var(--chat-list-w, 260px) .75rem minmax(0, 1fr); gap: 0; }
.chat-resizer { position: relative; cursor: col-resize; touch-action: none; }
.chat-resizer::after { content: ''; position: absolute; top: 0; bottom: 0; left: calc(50% - 1px); width: 2px; border-radius: 2px; background: transparent; transition: background .15s; }
.chat-resizer:hover::after, .chat-resizer:focus-visible::after, .chat-resizer.dragging::after { background: var(--info); }
.chat-resizer:focus-visible { outline: none; }
.chat-compose { margin-top: .5rem; }
.compose-box { flex: 1; display: flex; align-items: flex-end; gap: .25rem; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: .3rem .35rem .3rem .75rem; }
.compose-box:focus-within { border-color: var(--primary); }
.chat-compose .compose-box textarea { flex: 1; border: 0; outline: 0; background: transparent; padding: .45rem 0; min-height: 0; height: auto; border-radius: 0; box-shadow: none; resize: none; line-height: 1.35; }
.compose-tools { display: flex; align-items: center; gap: .1rem; flex: none; }
.tool-btn { width: 34px; height: 34px; display: grid; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.tool-btn:hover { background: var(--surface-2); color: var(--ink); }
.tool-btn .ico { width: 20px; height: 20px; }
.send-btn { color: var(--primary); }
.tool-sep { width: 1px; height: 22px; background: var(--line); margin: 0 .2rem; }
.compose-tools .emoji-panel { left: auto; right: 0; }
.msg-meta { display: flex; gap: .45rem; align-items: center; }
.msg.mine .msg-meta { justify-content: flex-end; }
.msg-time { visibility: hidden; }
.msg:hover .msg-time, .msg:focus-within .msg-time, .msg.picking .msg-time { visibility: visible; }
.chat-sep { align-self: stretch; text-align: center; margin: .9rem 0 .4rem; color: var(--muted); font-size: var(--fs-small); }
.chat-thread { position: relative; }
.ct-more { display: none; flex: none; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--muted); cursor: pointer; place-items: center; padding: 0; }
.chat-thread:hover .ct-more, .chat-thread:focus-within .ct-more { display: grid; }
.chat-thread:hover .nav-badge, .chat-thread:focus-within .nav-badge { display: none; }
.ct-more:hover { background: var(--surface-2); color: var(--ink); }
@media (pointer: coarse) { .ct-more { display: grid; } .chat-thread:hover .nav-badge { display: inline-block; } }
.ct-flag .ico { width: 13px; height: 13px; margin-left: .3rem; vertical-align: -1px; color: var(--muted); }
.nav-badge.quiet { background: var(--surface-2); color: var(--muted); }
.thread-menu { position: fixed; z-index: 70; min-width: 210px; padding: .35rem; background: #2f3238; border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); display: flex; flex-direction: column; }
.thread-menu .menu-item { display: flex; align-items: center; gap: .7rem; width: 100%; padding: .55rem .65rem; border: 0; border-radius: 8px; background: transparent; color: #f4f5f7; font: inherit; text-align: left; cursor: pointer; }
.thread-menu .menu-item:hover, .thread-menu .menu-item:focus-visible { background: rgba(255, 255, 255, .1); outline: none; }
.thread-menu .ico { width: 18px; height: 18px; color: #c9ced6; }
.popout { grid-template-columns: minmax(0, 1fr); }
.popout .sidenav, .popout .topbar, .popout .chat-list, .popout .chat-resizer, .popout .chat-top { display: none !important; }
.popout .chat { grid-template-columns: minmax(0, 1fr); height: calc(100vh - 1.5rem); }
@media (max-width: 820px) { .chat-resizer { display: none; } .compose-box { padding-left: .6rem; } }
/* The time sits beside the bubble (on its left for my own messages), clear of the reaction bar above. */
.msg-line { display: flex; align-items: flex-end; gap: .45rem; }
.msg.mine .msg-line { flex-direction: row-reverse; }
.msg-time { flex: none; font-size: var(--fs-small); color: var(--muted); white-space: nowrap; padding-bottom: .3rem; }
.popout .chat-back { display: none !important; }

/* Chat list, Teams-style (v0.10.80): the title and its buttons at the top of the list, filters, folding sections. */
@media (min-width: 821px) { .chat { height: calc(100vh - 8.5rem); } }
.chat-list-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: .35rem .4rem .2rem .5rem; }
.chat-title { font-size: var(--fs-section); margin: 0; }
.chat-list-tools { display: flex; gap: .1rem; }
.chat-chips { display: flex; flex-wrap: wrap; gap: .35rem; padding: .35rem .5rem .5rem; border-bottom: 1px solid var(--line); margin-bottom: .3rem; }
.chat-chip { border: 1px solid var(--line); background: var(--surface); color: var(--ink); border-radius: 999px; padding: .2rem .7rem; font: inherit; font-size: var(--fs-body); cursor: pointer; }
.chat-chip:hover { border-color: var(--muted); }
.chat-chip[aria-pressed="true"] { background: var(--primary-soft); border-color: var(--primary); color: var(--primary); }
.chat-section { display: flex; align-items: center; gap: .4rem; width: 100%; border: 0; background: none; color: var(--muted); font: inherit; font-size: var(--fs-body); font-weight: var(--fw-emph); padding: .5rem .5rem .3rem; cursor: pointer; text-align: left; border-radius: 8px; }
.chat-section:hover { color: var(--ink); }
.chat-section .ico { width: 15px; height: 15px; transition: transform .15s; }
.chat-section.shut .ico { transform: rotate(-90deg); }
.chat-section .nav-badge { margin-left: auto; }
.chat-none { padding: .5rem .6rem; }
.push-banner.slim { display: flex; align-items: center; justify-content: space-between; gap: .6rem; padding: .35rem .5rem .35rem .75rem; font-size: var(--fs-body); margin-bottom: .4rem; }
.push-banner.slim > span:first-child { min-width: 0; }
.push-banner.slim .row { flex: none; gap: .3rem; }
@media (max-width: 820px) { .chat-list-top { padding-top: .2rem; } }

/* Mentions, group settings and status (v0.10.81) */
.chat-compose { position: relative; }
.mention-pick { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 25; min-width: 240px; max-width: 360px; max-height: 260px; overflow: auto; padding: .3rem; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(28, 36, 52, .18); }
.mention-opt { display: block; width: 100%; text-align: left; border: 0; background: none; color: var(--ink); font: inherit; padding: .45rem .6rem; border-radius: 8px; cursor: pointer; }
.mention-opt.on, .mention-opt:hover { background: var(--primary-soft); }
.mention { color: var(--info); font-weight: var(--fw-head); }
.mention.me { background: var(--warn-soft); color: var(--warn); border-radius: 4px; padding: 0 .15rem; }
.msg.mine .mention, .msg.mine .mention.me { color: inherit; background: rgba(255, 255, 255, .22); border-radius: 4px; padding: 0 .15rem; }
.nav-badge.at { background: var(--warn); color: #fff; margin-right: .2rem; }
.compose-locked { margin: .6rem 0 0; padding: .6rem .8rem; border: 1px dashed var(--line); border-radius: 10px; color: var(--muted); text-align: center; font-size: var(--fs-body); }
.group-settings { margin: .4rem 0 .8rem; }
.group-settings details { margin-top: .5rem; }
.group-settings summary { cursor: pointer; font-weight: var(--fw-emph); }
.pres-dot.st-available { background: #22a559; }
.pres-dot.st-busy, .pres-dot.st-dnd { background: #d13438; }
.pres-dot.st-dnd::after { content: ''; position: absolute; left: 22%; right: 22%; top: calc(50% - 1px); height: 2px; background: #fff; border-radius: 1px; }
.pres-dot.st-brb, .pres-dot.st-away { background: #e8a300; }
.pres-dot.st-offline { background: #9aa5b1; }
.pres-dot.inline { position: relative; display: inline-block; right: auto; bottom: auto; flex: none; border-width: 0; width: 12px; height: 12px; }
.status-section { padding: .2rem .3rem; }
.status-now, .status-item { display: flex; align-items: center; gap: .6rem; width: 100%; }
.status-now .ico { margin-left: auto; width: 15px; height: 15px; }
.status-list { padding-left: .5rem; }
.status-item[aria-pressed="true"] { background: var(--primary-soft); }
.danger-zone { border-color: var(--danger); }
.danger-zone h2 { color: var(--danger); }

/* Loading (v0.10.84): the start-up screen, and placeholders shaped like each page while it loads. */
.splash { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1.4rem; padding: 2rem; background: var(--bg); }
.splash-logo { width: 56px; height: 56px; border-radius: 14px; }
.splash-card { width: min(340px, 86vw); padding: 1.2rem; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.splash-lines span { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); margin-bottom: .55rem; }
.splash-lines span:first-child { width: 72%; } .splash-lines span:last-child { width: 38%; margin-bottom: 1rem; }
.splash-board { display: flex; gap: .6rem; align-items: flex-start; }
.splash-list { flex: 1; border-left: 4px solid var(--primary); border-radius: 4px; }
.splash-list i { display: block; height: 30px; border-bottom: 1px solid var(--line); position: relative; opacity: 0; animation: splash-row 2.4s ease-in-out infinite; }
.splash-list i::after { content: ''; position: absolute; left: 10px; top: 12px; height: 6px; width: 55%; border-radius: 4px; background: var(--surface-2); }
.splash-list i:nth-child(2) { animation-delay: .25s; } .splash-list i:nth-child(3) { animation-delay: .5s; } .splash-list i:nth-child(4) { animation-delay: .75s; }
.splash-people { display: grid; gap: .5rem; padding: .45rem; border: 2px solid var(--primary); border-radius: 10px; }
.splash-people b { width: 20px; height: 20px; border-radius: 50%; background: var(--primary-soft); box-shadow: inset 0 0 0 2px var(--primary); transform: scale(0); animation: splash-pop 2.4s ease-in-out infinite; }
.splash-people b:nth-child(2) { animation-delay: .3s; } .splash-people b:nth-child(3) { animation-delay: .6s; } .splash-people b:nth-child(4) { animation-delay: .9s; }
.splash-text { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-emph); color: var(--ink); }
@keyframes splash-row { 0% { opacity: 0; transform: translateX(-12px); } 15%, 80% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes splash-pop { 0% { transform: scale(0); } 15%, 80% { transform: scale(1); } 100% { transform: scale(0); } }

.skel { opacity: 0; animation: skel-in .2s ease .15s forwards; } /* a quick page never shows it */
@keyframes skel-in { to { opacity: 1; } }
.skel-block { display: block; height: 12px; border-radius: 7px; background: linear-gradient(90deg, color-mix(in srgb, var(--ink) 11%, var(--surface)) 25%, color-mix(in srgb, var(--ink) 5%, var(--surface)) 40%, color-mix(in srgb, var(--ink) 11%, var(--surface)) 60%); background-size: 400% 100%; animation: skel-shimmer 1.4s ease infinite; }
@keyframes skel-shimmer { from { background-position: 100% 0; } to { background-position: 0 0; } }
.skel-head { margin: .2rem 0 1.1rem; display: grid; gap: .5rem; }
.skel-title { height: 22px; width: 180px; } .skel-sub { width: 300px; max-width: 70%; }
.skel-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 1rem; margin-bottom: 1rem; display: grid; gap: .7rem; }
.skel-row { display: flex; align-items: center; gap: 1rem; padding: .35rem 0; border-bottom: 1px solid var(--line); }
.skel-row:last-child { border-bottom: 0; }
.skel-dot { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.w10 { width: 10%; } .w15 { width: 15%; } .w20 { width: 20%; } .w25 { width: 25%; } .w30 { width: 30%; } .w35 { width: 35%; } .w40 { width: 40%; }
.w50 { width: 50%; } .w60 { width: 60%; } .w70 { width: 70%; } .w80 { width: 80%; } .w90 { width: 90%; }
.skel-board { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.skel-col { background: color-mix(in srgb, var(--ink) 5%, var(--bg)); border-radius: 18px; padding: .8rem; display: grid; gap: .6rem; align-content: start; }
.skel-pcard { background: var(--surface); border-radius: 12px; padding: .8rem; display: grid; gap: .5rem; }
.skel-chat { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: .75rem; }
.skel-chatlog { align-content: end; min-height: 50vh; }
.skel-msg { display: flex; } .skel-msg.mine { justify-content: flex-end; }
.skel-bubble { height: 34px; border-radius: 14px; }
.skel-cal { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .4rem; }
.skel-day { height: 70px; border-radius: 8px; }
.skel-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.skel-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .5rem; }
@media (max-width: 820px) {
  .skel-board { grid-template-columns: 86%; overflow: hidden; }
  .skel-chat { grid-template-columns: minmax(0, 1fr); } .skel-chatlist { display: none; }
  .skel-day { height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  .skel-block { animation: none; } .skel { animation-duration: 0s; }
  .splash-list i, .splash-people b { animation: none; opacity: 1; transform: none; }
}

/* The sign-up journey (v0.10.86): questions over the app (blurred behind), the welcome, the tour, Getting started. */
.ob-overlay { position: fixed; inset: 0; z-index: 900; display: grid; place-items: center; padding: 1rem; overflow-y: auto;
  background: color-mix(in srgb, var(--bg) 55%, transparent); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.ob-card { width: min(560px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(0, 0, 0, .18); padding: 1.6rem 1.8rem 1.4rem; }
.ob-card.ob-wide { width: min(820px, 100%); }
.ob-card h1 { margin: .6rem 0 .3rem; font-size: var(--fs-title); color: var(--primary); }
.ob-card > p.muted { margin: 0 0 1.1rem; }
.ob-steps { list-style: none; display: flex; gap: .4rem; padding: 0; margin: 0 0 .4rem; font-size: var(--fs-body); color: var(--muted); }
.ob-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: .3rem; text-align: center; position: relative; }
.ob-steps li + li::before { content: ''; position: absolute; top: .8rem; left: calc(-50% + 1rem); right: calc(50% + 1rem); height: 2px; background: var(--line); }
.ob-steps li.done + li::before, .ob-steps li.done::before { background: var(--primary); }
.ob-dot { position: relative; z-index: 1; width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--line); background: var(--surface); font-weight: var(--fw-head); }
.ob-steps li.done .ob-dot { border-color: var(--primary); color: var(--primary); }
.ob-steps li.now .ob-dot { background: var(--primary); border-color: var(--primary); color: var(--primary-ink, #fff); }
.ob-steps li.now { color: var(--ink); font-weight: var(--fw-head); }
.ob-form { display: grid; gap: .3rem; }
.ob-fieldset { border: 0; padding: 0; margin: .3rem 0 .8rem; }
.ob-fieldset legend, .ob-legend { font-weight: var(--fw-head); margin: 0 0 .5rem; padding: 0; }
.ob-row { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.ob-choice { display: flex; gap: .7rem; align-items: flex-start; padding: .8rem .9rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; margin-bottom: .5rem; }
.ob-choice:has(input:checked) { border-color: var(--primary); background: var(--primary-soft); }
.ob-choice input { margin-top: .2rem; accent-color: var(--primary); }
.ob-choice > span { display: grid; gap: .1rem; }
.ob-sizes { display: grid; grid-template-columns: repeat(5, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ob-size { background: var(--surface); border: 0; border-left: 1px solid var(--line); padding: .75rem .3rem; font: inherit; cursor: pointer; color: var(--ink); }
.ob-size:first-child { border-left: 0; }
.ob-size.on { background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-head); box-shadow: inset 0 0 0 2px var(--primary); }
.ob-actions { display: flex; justify-content: space-between; align-items: center; margin-top: .4rem; }
.ob-ready { min-height: 0; padding: 1.5rem 0; background: none; }
.ob-welcome { text-align: center; color: var(--ink) !important; }
.ob-center { text-align: center; }
.ob-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 1rem; }
.ob-path { border: 1px solid var(--line); border-radius: 16px; padding: 1.3rem; display: flex; flex-direction: column; align-items: flex-start; gap: .4rem; }
.ob-path:first-child { border-color: var(--primary); }
.ob-path h2 { margin: 0; font-size: var(--fs-section); }
.ob-path p { margin: 0 0 .6rem; flex: 1; }
.ob-badge { font-size: var(--fs-small); font-weight: var(--fw-head); letter-spacing: .04em; text-transform: uppercase; color: var(--primary); background: var(--primary-soft); border-radius: 999px; padding: .15rem .55rem; }

.tour { border: 1.5px solid var(--primary); background: linear-gradient(var(--primary-soft), var(--surface) 70%); margin-bottom: 1rem; }
.tour h2 { margin: .7rem 0 .2rem; font-size: var(--fs-section); }
.tour p { margin: 0 0 .8rem; max-width: 70ch; }
.tour-top { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; }
.tour-steps { list-style: none; display: flex; gap: .3rem; padding: 0; margin: 0; }
.tour-steps li + li::before { content: '›'; color: var(--muted); margin-right: .3rem; }
.tour-steps button { background: none; border: 0; font: inherit; color: var(--muted); cursor: pointer; padding: .2rem .35rem; border-radius: 8px; }
.tour-steps li.now button { color: var(--primary); font-weight: var(--fw-head); }
.tour-steps li.done button { color: var(--ink); }
.tour-nav { display: flex; gap: .4rem; }
.tour-actions { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.tour-actions .linkish { text-decoration: underline; color: var(--muted); }

.ob-finish p { margin: 0 0 1rem; }
.ob-rate { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; margin-bottom: 1rem; text-align: center; }
.ob-rate p { margin: 0 0 .4rem; }
.ob-rate-row { display: flex; align-items: center; justify-content: center; gap: .6rem; }
.ob-stars { display: flex; gap: .2rem; }
.ob-stars button { background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--line); cursor: pointer; padding: .1rem; }
.ob-stars button.on, .ob-stars button:hover { color: #f5b301; }

.start-hero { background: linear-gradient(135deg, var(--primary-soft), var(--surface) 65%); padding: 1.6rem 1.8rem; }
.start-hero h1 { margin: 0 0 .4rem; font-size: 1.7rem; }
.start-name { color: var(--primary); }
.start-hero p { margin: 0; max-width: 60ch; }
.start-bar { max-width: 420px; height: 8px; margin-top: 1rem; }
.start-count { margin: .3rem 0 0 !important; font-weight: var(--fw-head); letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
.start-list .gs-list { gap: 0; }
.start-list .gs-list li { align-items: center; padding: .85rem .2rem; border-bottom: 1px solid var(--line); }
.start-list .gs-list li:last-child { border-bottom: 0; }
.start-list .gs-list li.done b { color: var(--muted); text-decoration: line-through; font-weight: var(--fw-emph); }
.nav-start .nav-badge { background: var(--primary); }

@media (max-width: 640px) {
  .ob-card { padding: 1.2rem 1rem 1rem; border-radius: 16px; }
  .ob-row, .ob-paths { grid-template-columns: 1fr; }
  .ob-steps { font-size: var(--fs-small); }
  .ob-size { padding: .65rem .1rem; font-size: var(--fs-body); }
  .tour-top { flex-direction: column; align-items: flex-start; }
}

/* Sign-up tick boxes (v0.10.87): normal-weight text, links underlined. */
.auth .check span { font-weight: var(--fw-regular); }
.auth .check a { text-decoration: underline; }

/* Sign-up questions, Pipedrive style (v0.10.88): boxed fields with an icon, the question small on top. */
.ob-card h1 { text-align: center; font-size: 1.9rem; margin: 1rem 0 .4rem; }
.ob-lead { text-align: center; margin: 0 0 1.2rem; color: var(--ink); }
.ob-card .ob-steps { margin-bottom: .2rem; }
.ob-form { gap: .65rem; }
.ob-input { display: flex; align-items: center; gap: .8rem; border: 1px solid var(--line); border-radius: 10px; padding: .55rem .9rem; background: var(--surface); cursor: text; }
.ob-input:focus-within { border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-soft); }
.ob-input > .ico { flex: none; color: var(--muted); width: 22px; height: 22px; }
.ob-input-body { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.ob-input-label { font-size: var(--fs-small); color: var(--muted); }
.ob-input input, .ob-input .ob-select { border: 0; background: none; padding: 0; font: inherit; font-size: var(--fs-section); color: var(--ink); width: 100%; outline: none; box-shadow: none; min-height: 0; }
.ob-input .ob-select { appearance: auto; cursor: pointer; }
.ob-verified { background: var(--surface-2); cursor: default; }
.ob-value { font-size: var(--fs-section); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-ok { color: var(--primary); font-weight: var(--fw-head); white-space: nowrap; display: inline-flex; align-items: center; gap: .3rem; }
.ob-ok-dot { display: inline-grid; place-items: center; width: 1.1rem; height: 1.1rem; border-radius: 50%; background: var(--primary); color: #fff; font-size: var(--fs-small); }
.ob-show { background: none; border: 0; color: var(--muted); font: inherit; cursor: pointer; padding: .2rem .3rem; }
.ob-meter { margin: -.25rem 0 .1rem; font-size: var(--fs-body); color: var(--muted); min-height: 1.2em; }
.ob-strong { color: var(--primary); }
.ob-note { display: flex; gap: .7rem; align-items: flex-start; background: var(--primary-soft); border-radius: 10px; padding: .8rem .9rem; color: var(--ink); font-size: var(--fs-body); }
.ob-note .ico { flex: none; color: var(--primary); }
.ob-phone { display: grid; grid-template-columns: 9rem 1fr; gap: .6rem; }
.ob-next { margin-top: .4rem; padding: .85rem; font-size: var(--fs-section); }
.ob-hint { margin: -.3rem 0 .6rem; font-size: var(--fs-body); color: var(--muted); }
.ob-band { background: var(--surface-2); margin: .2rem -1.8rem 0; padding: 1rem 1.8rem; }
.ob-band .ob-legend { font-size: var(--fs-section); }
.ob-q { font-size: var(--fs-section); margin-top: .4rem; }
.ob-ticks { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.ob-tick { display: flex; align-items: center; gap: .9rem; padding: .95rem 1.1rem; border-top: 1px solid var(--line); cursor: pointer; font-size: var(--fs-body); }
.ob-tick:first-child { border-top: 0; }
.ob-tick:has(input:checked) { background: var(--primary-soft); }
.ob-tick input { width: 1.2rem; height: 1.2rem; accent-color: var(--primary); }
.ob-ready h2 { margin: 0; font-size: var(--fs-title); }
@media (max-width: 640px) {
  .ob-band { margin: .2rem -1rem 0; padding: .9rem 1rem; }
  .ob-phone { grid-template-columns: 7.5rem 1fr; }
  .ob-card h1 { font-size: var(--fs-title); }
}

/* v0.10.89: shorter boxes; a dropdown fills its box so a click anywhere opens it; pictures on the welcome choices. */
.ob-input { padding: .35rem .85rem; gap: .7rem; border-radius: 10px; }
.ob-input-label { font-size: var(--fs-small); line-height: 1.2; }
.ob-input input { font-size: var(--fs-body); line-height: 1.35; }
.ob-input > .ico { width: 20px; height: 20px; }
.ob-form { gap: .55rem; }
.ob-sel { position: relative; display: block; padding: 0; cursor: pointer; }
.ob-sel > .ob-input-label { position: absolute; left: .85rem; top: .38rem; pointer-events: none; z-index: 1; }
.ob-sel > .ico { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); pointer-events: none; z-index: 1; }
.ob-sel.has-ico > .ob-input-label { left: 2.95rem; }
.ob-input.ob-sel .ob-select { display: block; width: 100%; min-height: 0; height: auto; margin: 0; border: 0; border-radius: 10px; background: transparent; box-shadow: none;
  padding: 1.3rem 2.2rem .4rem .85rem; font-size: var(--fs-body); line-height: 1.35; color: var(--ink); cursor: pointer; }
.ob-input.ob-sel.has-ico .ob-select { padding-left: 2.95rem; }
.ob-under { margin: -.25rem 0 .2rem !important; }
.ob-how { font-size: var(--fs-section); margin: .4rem 0 0; }
.ob-path { align-items: center; text-align: center; }
.ob-path p { text-align: center; }
.ob-path-title { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; justify-content: center; }
.ob-art { width: 190px; height: 112px; margin: .2rem 0 .4rem; }
.art-line { fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; opacity: .75; }
.art-y { fill: #f6c343; stroke: #6b5200; stroke-width: 1.6; stroke-linejoin: round; }
.art-faint { fill: #fbe9a8; stroke: #c9b15a; }
.art-s { fill: #b9b2f5; stroke: #3b3486; stroke-width: 1.6; stroke-linejoin: round; }
.art-p { fill: var(--primary); stroke: #0b3d2b; stroke-width: 1.6; }
.art-g { fill: var(--primary-soft); stroke: #9cc9b5; stroke-width: 1.6; }
.art-num { fill: #fff; font: var(--fw-head) var(--fs-title) var(--font); }
.ob-input.ob-sel .ob-select { padding-left: .62rem; }
.ob-input.ob-sel.has-ico .ob-select { padding-left: 2.72rem; }

/* Menu with More (v0.10.90): no group names in the menu; More at the bottom opens a dark panel with named groups. */
.sidenav .nav-more { display: flex; border: 0; background: none; font-family: inherit; cursor: pointer; width: 100%; text-align: left; }
.more-phone { display: none; }
.more-h { padding: .7rem .65rem .25rem; font-size: var(--fs-small); font-weight: var(--fw-head); letter-spacing: .07em; text-transform: uppercase; }
@media (min-width: 821px) {
  .sidenav nav .nav-spacer { display: block; flex: 1; min-height: .75rem; }
  .more-sheet:not(.hidden) { display: flex; flex-direction: column; position: fixed; z-index: 60; width: 250px; max-height: calc(100vh - 16px); overflow-y: auto; padding: .35rem .6rem .6rem;
    background: #2f3238; color: #f4f5f7; border: 1px solid rgba(255, 255, 255, .1); border-radius: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .35); }
  .more-sheet .more-h { color: rgba(255, 255, 255, .55); }
  .more-sheet .more-link { display: flex; align-items: center; color: #f4f5f7; text-decoration: none; padding: .5rem .65rem; border-radius: 9px; }
  .more-sheet .more-link:hover { background: rgba(255, 255, 255, .1); }
  .more-sheet .more-link.active { background: rgba(255, 255, 255, .18); color: #fff; }
}
@media (max-width: 820px) {
  .more-phone { display: block; }
  .more-sheet:not(.hidden) { max-height: calc(100dvh - var(--nav-h) - var(--safe-b) - 1.5rem); overflow-y: auto; }
  .more-sheet .more-h { color: var(--muted); padding-left: 1rem; }
  .more-group .more-link { min-height: 42px; padding: .5rem 1rem; }
  /* v0.10.168: the groups fold; each name is a row that opens its pages. */
  .more-phone .more-group { border-top: 1px solid var(--line); }
  .more-phone .more-h { display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 48px; margin: 0; padding: .5rem 1rem;
    border: 0; background: none; font-family: inherit; font-size: var(--fs-body); font-weight: var(--fw-head); letter-spacing: 0; text-transform: none; color: var(--ink); cursor: pointer; text-align: left; }
  .more-phone .more-h::after { content: ''; width: .5rem; height: .5rem; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; margin-right: .2rem; }
  .more-phone .more-h[aria-expanded="true"]::after { transform: rotate(-135deg); }
  .more-phone .more-items .more-link { padding-left: 1.6rem; }
}

/* Single sign-on settings (v0.10.91), laid out like Pipedrive's: label, field and hint, a copy button for ours. */
.sso h3 { margin: 1.2rem 0 .8rem; font-size: var(--fs-section); }
.sso-kind { display: flex; gap: .4rem; margin: .8rem 0 .2rem; max-width: 480px; }
.sso-sec { border-top: 1px solid var(--line); margin-top: 1rem; }
.sso-row { display: grid; grid-template-columns: 190px minmax(0, 1fr) auto; gap: .5rem 1rem; align-items: start; margin-bottom: .9rem; }
.sso-label { text-align: right; padding-top: .55rem; font-weight: var(--fw-emph); }
.sso-field { display: grid; gap: .3rem; }
.sso-field input, .sso-field textarea { width: 100%; }
.sso-field textarea { border-radius: 12px; }
.sso-ro { background: var(--surface-2); color: var(--muted); }
.mono, .sso-row textarea.sso-ro { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: var(--fs-body); }
.sso-foot { border-top: 1px solid var(--line); margin-top: 1.2rem; padding-top: 1rem; display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; }
.sso-switches { display: grid; gap: .6rem; max-width: 520px; }
.switch-row { display: flex; gap: .6rem; align-items: flex-start; cursor: pointer; }
.switch-row input { margin-top: .25rem; }
.sso-actions { display: flex; gap: .5rem; }
.sso-result { padding: .7rem .9rem; border-radius: 10px; margin: .6rem 0; }
.sso-result.ok { background: var(--primary-soft); }
.sso-result.bad { background: color-mix(in srgb, #e5484d 12%, var(--surface)); }
@media (max-width: 820px) {
  .sso-row { grid-template-columns: 1fr; }
  .sso-label { text-align: left; padding-top: 0; }
}

/* v0.10.92: More under Chat; on a computer its panel has two columns (as in HubSpot) and no scroll bar. */
.more-cols { display: none; }
@media (min-width: 821px) {
  .more-sheet:not(.hidden) { width: auto; max-height: calc(100vh - 24px); overflow: hidden; padding: 0; flex-direction: row; }
  .more-cols { display: grid; grid-template-columns: 230px 250px; grid-template-rows: minmax(0, 1fr); max-height: calc(100vh - 24px); }
  .more-groups { overflow-y: auto; scrollbar-width: none; }
  .more-pagecol { display: flex; flex-direction: column; min-height: 0; }
  .more-pagecol .more-pages { flex: 0 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; }
  .more-pagecol .more-pages::-webkit-scrollbar, .more-groups::-webkit-scrollbar { display: none; }
  .more-down { flex: none; display: flex; justify-content: center; align-items: center; height: 40px; background: none; border: 0; border-top: 1px solid rgba(255, 255, 255, .14); color: #f4f5f7; cursor: pointer; border-radius: 0 0 14px 0; }
  .more-down:hover { background: rgba(255, 255, 255, .08); }
  .more-down.hidden { display: none; }
  .more-phone { display: none !important; }
  .more-groups { padding: .7rem .6rem; border-right: 1px solid rgba(255, 255, 255, .14); }
  .more-title { font-weight: var(--fw-head); font-size: var(--fs-section); padding: .35rem .65rem .6rem; color: #fff; }
  .more-gbtn { display: flex; width: 100%; align-items: center; justify-content: space-between; gap: .5rem; background: none; border: 0; color: #f4f5f7; font: inherit; text-align: left; padding: .55rem .65rem; border-radius: 9px; cursor: pointer; }
  .more-gbtn:hover, .more-gbtn.on { background: rgba(255, 255, 255, .12); }
  .more-chev { font-size: var(--fs-section); line-height: 1; opacity: .8; }
  .more-pages { padding: .7rem .6rem; display: flex; flex-direction: column; gap: .1rem; }
}

/* v0.10.92: the menu bar is ShikaCRM green on the light theme too (the dark theme keeps its own dark bar), white text. */
:root { --chrome: #0e3b2c; --chrome-2: #165040; --chrome-ink: #e3efe9; --chrome-muted: #9fc4b4; }
:root[data-theme="dark"] { --chrome: #101a15; --chrome-2: #18241e; --chrome-ink: #d3e0da; --chrome-muted: #8ba196; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --chrome: #101a15; --chrome-2: #18241e; --chrome-ink: #d3e0da; --chrome-muted: #8ba196; } }
.sidenav { background: var(--chrome); border-right-color: transparent; color: var(--chrome-ink); }
.sidenav .brand, .sidenav .brand * { color: #fff; }
.sidenav .navlink { color: var(--chrome-ink); }
.sidenav .navlink .ico { color: var(--chrome-muted) !important; }
.sidenav .navlink:hover { background: rgba(255, 255, 255, .09); color: #fff; }
.sidenav .navlink.active { background: rgba(255, 255, 255, .16); color: #fff; }
.sidenav .navlink.active .ico { color: #fff !important; }
.sidenav .nav-badge { background: rgba(255, 255, 255, .2); color: #fff; }
.sidenav .nav-caret, .sidenav .nav-toggle { color: var(--chrome-muted); }
.sidenav .nav-caret:hover, .sidenav .nav-toggle:hover { background: rgba(255, 255, 255, .09); color: #fff; }

/* The top bar keeps its own (light) colours now the menu bar is green (v0.10.93). */
.topbar { --chrome-ink: #3d4a44; --chrome-muted: #66736d; --chrome-2: #f1f5f3; }
:root[data-theme="dark"] .topbar { --chrome-ink: #d3e0da; --chrome-muted: #8ba196; --chrome-2: #18241e; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .topbar { --chrome-ink: #d3e0da; --chrome-muted: #8ba196; --chrome-2: #18241e; } }

/* Back / Forward and Quick Help (v0.10.93) */
.hist-nav { display: flex; gap: .1rem; margin-right: .4rem; }
.hist-nav .bell-btn { width: 38px; height: 38px; }
.help-btn.on { background: var(--primary-soft); color: var(--primary); }
.help-panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 70; width: min(400px, 100vw); display: flex; flex-direction: column; background: var(--surface); color: var(--ink);
  border-left: 1px solid var(--line); box-shadow: -12px 0 40px rgba(0, 0, 0, .14); animation: help-in .18s ease-out; }
@keyframes help-in { from { transform: translateX(24px); opacity: 0; } }
.help-head { display: flex; align-items: center; justify-content: space-between; padding: 1.1rem 1.3rem .6rem; }
.help-head h2 { margin: 0; font-size: var(--fs-section); font-weight: var(--fw-emph); }
.help-x { background: none; border: 0; font-size: 1.8rem; line-height: 1; color: var(--muted); cursor: pointer; padding: 0 .3rem; }
.help-search { display: flex; align-items: center; gap: .5rem; margin: .2rem 1.3rem .8rem; border: 1px solid var(--line); border-radius: 10px; padding: 0 .8rem; }
.help-search .ico { color: var(--muted); flex: none; }
.help-search input { border: 0 !important; box-shadow: none !important; background: none; padding: .65rem 0; width: 100%; font: inherit; outline: none; }
.help-body { flex: 1; overflow-y: auto; padding: .3rem 1.3rem 1rem; }
.help-card { border: 1px solid var(--line); border-radius: 12px; padding: 1rem 1.1rem; margin: .4rem 0 1rem; }
.help-card-h { display: flex; align-items: center; gap: .5rem; }
.help-new { font-size: var(--fs-small); font-weight: var(--fw-head); color: #fff; background: #2f6fde; border-radius: 999px; padding: .05rem .5rem; }
.help-card p { margin: .5rem 0 .8rem; }
.help-card-btns { display: flex; gap: .5rem; flex-wrap: wrap; }
.btn.danger { background: #c8322f; border-color: #c8322f; color: #fff; }
.help-h { margin: 1rem 0 .3rem; font-size: var(--fs-small); font-weight: var(--fw-head); letter-spacing: .05em; text-transform: uppercase; }
.help-row { display: block; width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .8rem .1rem; font: inherit; color: var(--ink); cursor: pointer; }
.help-row:hover { color: var(--primary); }
.help-back { background: none; border: 0; color: var(--primary); font: inherit; cursor: pointer; padding: .2rem 0; }
.help-article h3 { margin: .5rem 0 .6rem; }
.help-article h4 { margin: 1rem 0 .3rem; }
.help-article p, .help-article li { line-height: 1.55; }
.help-article ul, .help-article ol { padding-left: 1.2rem; }
.help-tip { margin-top: 1.2rem; }
.help-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; border-top: 1px solid var(--line); padding: .9rem; margin: 0; text-decoration: none; color: var(--primary); font-weight: var(--fw-emph); }
p.help-foot { color: var(--muted); font-weight: var(--fw-regular); }
@media (max-width: 820px) { .hist-nav { display: none; } }

/* v0.10.95: an open group (Pipeline, Calendar) is highlighted like the page you are on, white text on light green. */
.sidenav .nav-group.open .navlink:not(.active) { background: rgba(255, 255, 255, .16); color: #fff; }
.sidenav .nav-group.open .navlink:not(.active) .ico, .sidenav .nav-group.open .nav-caret { color: #fff !important; }

/* How-to videos (v0.10.96): cards with a picture, play button and length; a pop-up player over the page. */
.vid-card { display: inline-flex; flex-direction: column; gap: .4rem; background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: var(--ink); font: inherit; }
.vid-card.small { flex-direction: row; align-items: center; gap: .7rem; width: 100%; padding: .5rem 0; }
.vid-thumb { position: relative; display: grid; place-items: center; width: 240px; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden;
  background: linear-gradient(135deg, #0e3b2c, #1f7a5a); box-shadow: 0 2px 10px rgba(0, 0, 0, .15); flex: none; }
.vid-card.small .vid-thumb { width: 112px; border-radius: 8px; }
.vid-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vid-thumb-title { position: absolute; left: .7rem; right: 3.2rem; bottom: .6rem; color: #fff; font-weight: var(--fw-head); font-size: var(--fs-section); line-height: 1.2; }
.vid-card.small .vid-thumb-title { display: none; }
.vid-play { position: absolute; width: 44px; height: 44px; border-radius: 50%; background: #1fa36b; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); transition: transform .15s; }
.vid-play::after { content: ''; position: absolute; left: 17px; top: 13px; border-style: solid; border-width: 9px 0 9px 14px; border-color: transparent transparent transparent #fff; }
.vid-card.small .vid-play { width: 30px; height: 30px; }
.vid-card.small .vid-play::after { left: 11px; top: 8px; border-width: 7px 0 7px 10px; }
.vid-card:hover .vid-play, .vid-card:focus-visible .vid-play { transform: scale(1.08); }
.vid-time { position: absolute; right: .5rem; bottom: .5rem; background: rgba(0, 0, 0, .75); color: #fff; font-size: var(--fs-small); font-weight: var(--fw-head); padding: .05rem .45rem; border-radius: 999px; }
.vid-name { display: grid; gap: .1rem; }
.vid-overlay { position: fixed; inset: 0; z-index: 950; display: grid; place-items: center; padding: 1.5rem; background: rgba(8, 14, 12, .72); animation: vid-in .15s ease-out; }
@keyframes vid-in { from { opacity: 0; } }
.vid-box { position: relative; width: min(1100px, 100%); }
.vid-box video { display: block; width: 100%; max-height: calc(100vh - 7rem); border-radius: 12px; background: #000; }
.vid-x { position: absolute; top: -.6rem; right: -.6rem; z-index: 1; width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; color: #111; font-size: var(--fs-title); line-height: 1; cursor: pointer; box-shadow: 0 4px 14px rgba(0, 0, 0, .3); }
.vid-title { color: #fff; margin: .6rem 0 0; font-weight: var(--fw-emph); }
.tour-body { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.tour-body .vid-card.small { width: auto; }
.vid-row { display: flex; gap: 1rem; flex-wrap: wrap; }
@media (max-width: 640px) { .tour-body { flex-direction: column; align-items: flex-start; } .vid-thumb { width: 100%; } .vid-overlay { padding: .5rem; } .vid-x { top: -3rem; right: 0; } }
.tour-body .vid-card.small { flex: none; max-width: 320px; }
.vid-name { min-width: 150px; }

/* v0.10.98: the top bar stays white on the light theme (it shares --chrome with the menu bar, which turned green in v0.10.92). */
.topbar { background: #ffffff; }
:root[data-theme="dark"] .topbar { background: var(--chrome); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .topbar { background: var(--chrome); } }

button.help-foot { width: 100%; background: none; border: 0; border-top: 1px solid var(--line); cursor: pointer; font: inherit; }

/* Design polish (v0.10.100): buttons look like buttons. A clear edge and a slight lift for the ordinary ones, bold
   text, and a hover that answers; the main button stays solid green. Ghost buttons read as green text links. */
.btn { border: 1.5px solid color-mix(in srgb, var(--ink) 20%, transparent); font-weight: var(--fw-head); box-shadow: 0 1px 2px rgba(16, 40, 32, .07); }
.btn:not(.primary):not(.ghost):not([disabled]):hover { box-shadow: 0 3px 10px rgba(15, 122, 85, .16); }
.btn.ghost { border-color: transparent; box-shadow: none; color: var(--primary); }
.btn.ghost:not([disabled]):hover { background: var(--primary-soft); border-color: transparent; }
.btn.primary { border: 0; }
.btn .ico { width: 18px; height: 18px; }
.btn.has-menu::after { content: ''; width: 0; height: 0; margin-left: .15rem; border-left: 4.5px solid transparent; border-right: 4.5px solid transparent; border-top: 5px solid currentColor; opacity: .7; }

/* Folding sections ("Choose your calendar" and the like) look like something to click. */
details > summary { cursor: pointer; list-style: none; display: flex; align-items: center; gap: .45rem; padding: .55rem .7rem; border-radius: 10px; font-weight: var(--fw-head); color: var(--primary); }
details > summary::-webkit-details-marker { display: none; }
details > summary::before { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .15s; margin-right: .15rem; }
details[open] > summary::before { transform: rotate(45deg); }
details > summary:hover { background: var(--primary-soft); }

/* Choice tiles: an icon, a name and what happens, an arrow; the whole tile is the button. */
.pick-tile { display: flex; align-items: center; gap: .8rem; padding: .75rem .9rem; border: 1.5px solid color-mix(in srgb, var(--ink) 16%, transparent); border-radius: 12px; background: var(--surface);
  color: var(--ink); text-decoration: none; box-shadow: 0 1px 2px rgba(16, 40, 32, .06); transition: border-color .15s, box-shadow .15s, transform .1s; }
.pick-tile:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(15, 122, 85, .16); transform: translateY(-1px); }
.pick-ico { flex: none; width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); }
.pick-text { flex: 1; display: grid; gap: .1rem; text-align: left; }
.pick-go { font-size: var(--fs-title); line-height: 1; color: var(--muted); }
.pick-tile:hover .pick-go { color: var(--primary); }

/* Insights (v0.10.100): filters, headline tiles, charts in cards, a print-ready report, and Present. */
.ins-head { align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.ins-head p { margin: .2rem 0 0; }
.ins-actions { display: flex; gap: .5rem; flex-wrap: wrap; }
.ins-filters { display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; margin: 0 0 1rem; }
.ins-filters select, .ins-filters input { width: auto; min-width: 150px; }
.ins-print-head { display: none; }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: .75rem; margin-bottom: 1rem; }
.ins-tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; display: grid; gap: .2rem; box-shadow: var(--shadow); }
.ins-tile-l { font-size: var(--fs-body); color: var(--muted); font-weight: var(--fw-emph); }
.ins-tile-v { font-size: 1.7rem; line-height: 1.1; }
.ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.ins-card { margin: 0; display: flex; flex-direction: column; gap: .8rem; min-height: 0; }
.ins-card.wide { grid-column: 1 / -1; }
.ins-card-h { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.ins-card-h h2 { margin: 0; font-size: var(--fs-section); }
.ins-empty { margin: 1rem 0; text-align: center; }
.ins-cols { display: flex; align-items: flex-end; gap: 3px; height: 220px; padding-top: 1.2rem; overflow-x: auto; }
.ins-col { flex: 1 1 0; min-width: 14px; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px; }
.ins-col-bar { width: 100%; max-width: 42px; background: color-mix(in srgb, var(--primary) 32%, var(--surface)); border-radius: 5px 5px 0 0; display: flex; align-items: flex-end; overflow: hidden; }
.ins-col-in { width: 100%; background: var(--primary); }
.ins-col-v { font-size: var(--fs-small); font-weight: var(--fw-head); color: var(--muted); white-space: nowrap; }
.ins-col-l { font-size: var(--fs-small); color: var(--muted); white-space: nowrap; transform: rotate(-35deg); transform-origin: top center; height: 2.2em; margin-top: .2rem; }
.ins-rows { display: grid; gap: .55rem; }
.ins-row { display: grid; grid-template-columns: minmax(110px, 34%) 1fr auto; gap: .7rem; align-items: center; }
.ins-row-l { font-size: var(--fs-body); }
.ins-row-track { height: 14px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.ins-row-bar { display: block; height: 100%; background: var(--primary); border-radius: 999px; }
.ins-row-v { font-weight: var(--fw-head); white-space: nowrap; }
.ins-table { width: 100%; border-collapse: collapse; }
.ins-table th, .ins-table td { text-align: left; padding: .55rem .6rem; border-bottom: 1px solid var(--line); }
.ins-table th { font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-head); }
.ins-foot { margin-top: 1rem; }
@media (max-width: 820px) { .ins-grid { grid-template-columns: 1fr; } .ins-row { grid-template-columns: 1fr auto; } .ins-row-track { grid-column: 1 / -1; grid-row: 2; } }

/* Present: full screen, one slide at a time, big. */
.ins-present { position: fixed; inset: 0; z-index: 980; background: var(--bg); display: grid; grid-template-rows: auto 1fr auto; padding: 1.2rem 2rem; gap: 1rem; }
.ins-present-top { display: flex; align-items: center; gap: 1rem; }
.ins-present-top span { color: var(--muted); flex: 1; }
.ins-present-top .vid-x { position: static; }
.ins-stage { display: grid; place-items: center; overflow: auto; }
.ins-stage > * { width: min(1200px, 100%); font-size: var(--fs-section); }
.ins-stage .ins-cols { height: 52vh; }
.ins-stage .ins-card-h h2 { font-size: 1.8rem; }
.ins-stage .ins-tiles { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.ins-stage .ins-tile-v { font-size: 2.8rem; }
.ins-stage .ins-row-track { height: 22px; }
.ins-present-nav { display: flex; justify-content: center; align-items: center; gap: 1.5rem; }
.ins-count { color: var(--muted); min-width: 4rem; text-align: center; }

/* Download PDF = the browser's print, laid out as a report: no menus or buttons, a heading, charts two to a row. */
@media print {
  @page { size: A4 landscape; margin: 12mm; }
  body { background: #fff !important; }
  .sidenav, .topbar, .ins-actions, .ins-filters, .ins-head, .tour, .help-panel, .kc-panel, .kc-bubble, .outbox-bar, #toast, .install-banner { display: none !important; }
  .layout, .content, .panel, main { display: block !important; margin: 0 !important; padding: 0 !important; box-shadow: none !important; background: #fff !important; }
  .ins-print-head { display: flex; justify-content: space-between; border-bottom: 2px solid #0e3b2c; padding-bottom: 6px; margin-bottom: 10px; font-size: var(--fs-body); }
  .ins-tiles { grid-template-columns: repeat(7, 1fr); }
  .ins-tile, .ins-card { box-shadow: none !important; border: 1px solid #ccc !important; break-inside: avoid; }
  .ins-grid { grid-template-columns: 1fr 1fr; }
  .ins-cols { height: 160px; overflow: visible; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
.ins-cols { overflow: hidden; } .ins-col { min-width: 4px; } .ins-col-v { font-size: var(--fs-small); }
@media (min-width: 821px) { .ins-cols .ins-col:nth-child(n) .ins-col-v { overflow: visible; } }
.ins-col-bar:not(:has(.ins-col-in)) { background: var(--primary); }

/* Page polish (v0.10.101): Queue, Pipeline and Import. */

/* Queue: the counts as small cards; the outcome buttons look like buttons, coloured by what they do. */
.queue-tiles .tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .35rem .7rem; box-shadow: 0 1px 2px rgba(16, 40, 32, .05); }
.queue-tiles .tile b { font-size: var(--fs-section); }
.outcome-keys .group-label { font-weight: var(--fw-head); letter-spacing: .05em; color: var(--muted); }
.outcome-keys .chip { min-height: 46px; padding: .45rem .75rem; border-radius: 12px; background: var(--surface); border: 1.5px solid color-mix(in srgb, var(--ink) 18%, transparent);
  font-weight: var(--fw-head); color: var(--ink); box-shadow: 0 1px 2px rgba(16, 40, 32, .07); justify-content: flex-start; gap: .55rem; transition: border-color .12s, box-shadow .12s, transform .08s; cursor: pointer; text-align: left; }
.outcome-keys .chip:hover { border-color: var(--primary); box-shadow: 0 4px 12px rgba(15, 122, 85, .16); transform: translateY(-1px); }
.outcome-keys .chip kbd { flex: none; min-width: 1.45rem; height: 1.45rem; display: inline-grid; place-items: center; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); font: var(--fw-head) var(--fs-small)/1 var(--font); color: var(--muted); }
.outcome-keys .g-spoke .chip { border-left: 4px solid var(--primary); }
.outcome-keys .chip.warn { color: #b42318; border-color: color-mix(in srgb, #b42318 45%, transparent); }
.outcome-keys .chip.warn:hover { border-color: #b42318; box-shadow: 0 4px 12px rgba(180, 35, 24, .14); }
.outcome-keys .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 14px rgba(15, 122, 85, .3); }
.outcome-keys .chip[aria-pressed="true"] kbd { background: rgba(255, 255, 255, .2); border-color: transparent; color: #fff; }
.outcome-keys .chip.warn[aria-pressed="true"] { background: #b42318; border-color: #b42318; }

/* Pipeline: column heads as cards; compact deal cards with the value in bold and a quiet "No next step". */
.pipeline .col > h3 { background: var(--surface); border-radius: 12px; padding: .6rem .75rem; box-shadow: 0 1px 2px rgba(16, 40, 32, .06); border: 1px solid var(--line); }
.pcard { padding: .7rem .8rem; border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(16, 40, 32, .07); transition: box-shadow .12s, transform .08s; }
.pcard:hover { box-shadow: 0 6px 18px rgba(16, 40, 32, .12); transform: translateY(-1px); }
.pcard .pc-top a { color: var(--ink); font-weight: var(--fw-head); text-decoration: none; line-height: 1.25; }
.pcard .pc-top a:hover { color: var(--primary); text-decoration: underline; }
.pcard .pc-foot { display: flex; align-items: center; justify-content: space-between; gap: .5rem; flex-wrap: wrap; margin-top: .35rem; }
.pcard .pc-foot .badge.ok { background: none; padding: 0; color: var(--ink); font-weight: var(--fw-head); font-size: var(--fs-body); }
.pcard .pc-foot .badge.warn { background: none; padding: 0; color: #b45309; font-weight: var(--fw-head); font-size: var(--fs-small); display: inline-flex; align-items: center; gap: .3rem; }
.pcard .pc-foot .badge.warn::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #f59e0b; }
.pcard.attention { border-left: 3px solid #f59e0b; }

/* Import: steps, and a drop zone for the file. */
.imp-steps { list-style: none; display: flex; gap: .5rem; padding: 0; margin: 0 0 1rem; flex-wrap: wrap; }
.imp-steps li { display: flex; align-items: center; gap: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: .35rem .9rem .35rem .4rem; font-weight: var(--fw-head); }
.imp-n { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--primary-soft); color: var(--primary); font-size: var(--fs-body); }
.drop-zone { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .35rem; text-align: center; padding: 2rem 1rem; margin: .4rem 0 .8rem;
  border: 2px dashed color-mix(in srgb, var(--primary) 45%, transparent); border-radius: 16px; background: color-mix(in srgb, var(--primary-soft) 45%, var(--surface)); cursor: pointer; transition: background .15s, border-color .15s; }
.drop-zone:hover, .drop-zone.over { background: var(--primary-soft); border-color: var(--primary); }
.drop-zone input[type=file] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.drop-zone b { font-size: var(--fs-section); }
.drop-ico { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--surface); color: var(--primary); box-shadow: 0 2px 8px rgba(15, 122, 85, .15); margin-bottom: .3rem; }
.drop-ico .ico { width: 26px; height: 26px; }
.drop-link { color: var(--primary); font-weight: var(--fw-head); text-decoration: underline; }
.drop-zone:focus-within { outline: 3px solid var(--focus); outline-offset: 2px; }
.imp-paste { margin-top: .6rem; }
.imp-paste textarea { margin: .5rem 0; width: 100%; }
.drop-zone { position: relative; }
.pipeline .col > h3 { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .45rem; }
.pipeline .col > h3 .col-total { flex-basis: 100%; font-size: var(--fs-body); font-weight: var(--fw-head); color: var(--ink); padding-left: 1rem; }
:root[data-theme="dark"] .outcome-keys .chip.warn { color: #fca5a5; border-color: rgba(248, 113, 113, .5); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .outcome-keys .chip.warn { color: #fca5a5; border-color: rgba(248, 113, 113, .5); } }

/* Calendar sync banner (v0.10.102), as in Pipedrive: a picture, the message, a button, a soft corner, and a ×. */
.sync-banner { position: relative; display: flex; align-items: center; gap: 1.4rem; padding: 1.1rem 4rem 1.1rem 1.4rem; margin-bottom: 1rem; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow); }
.sync-banner::after { content: ''; position: absolute; right: 0; bottom: 0; width: 220px; height: 100%; background: linear-gradient(135deg, transparent 50%, var(--primary-soft) 50%); pointer-events: none; }
.sync-art { flex: none; width: 92px; height: 84px; }
.sa-cal { fill: #e7f4ee; stroke: #9fd0b9; stroke-width: 1.5; }
.sa-top { fill: #7cc3a1; }
.sa-ring { stroke: #4f9a78; stroke-width: 3; stroke-linecap: round; }
.sa-dot { fill: #1f7a5a; }
.sa-badge { fill: var(--primary); stroke: #fff; stroke-width: 3; }
.sa-arrow { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.sync-text { flex: 1; min-width: 0; position: relative; z-index: 1; }
.sync-text h2 { margin: 0 0 .3rem; font-size: var(--fs-section); }
.sync-text p { margin: 0; color: var(--ink); }
.sync-banner > .btn { position: relative; z-index: 1; flex: none; }
.sync-x { position: absolute; top: .6rem; right: .7rem; z-index: 1; background: none; border: 0; font-size: 1.7rem; line-height: 1; color: var(--ink); cursor: pointer; padding: .1rem .4rem; border-radius: 8px; }
.sync-x:hover { background: var(--surface-2); }
.cal-connect.flash { box-shadow: 0 0 0 3px var(--primary), var(--shadow); transition: box-shadow .3s; }
@media (max-width: 720px) { .sync-banner { flex-wrap: wrap; padding: 1rem 2.6rem 1rem 1rem; } .sync-art { width: 64px; height: 58px; } .sync-banner::after { width: 120px; } }
.ins-grid { align-items: start; }

/* Insights workspace (v0.10.103), like Pipedrive's: a panel on the left, the dashboard or report on the right. */
.ins-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 1.2rem; align-items: start; }
.ins-side { position: sticky; top: .5rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem .8rem; display: grid; gap: .6rem; max-height: calc(100vh - 6rem); overflow-y: auto; }
.side-top { display: grid; gap: .5rem; }
.side-create { width: 100%; }
.side-search { display: flex; align-items: center; gap: .4rem; border: 1px solid var(--line); border-radius: 10px; padding: 0 .6rem; }
.side-search .ico { width: 17px; height: 17px; color: var(--muted); flex: none; }
.side-search input { border: 0 !important; box-shadow: none !important; background: none; padding: .5rem 0; width: 100%; outline: none; min-height: 0; }
.side-sec { border-top: 1px solid var(--line); padding-top: .5rem; }
.side-head { display: flex; align-items: center; gap: .45rem; width: 100%; background: none; border: 0; padding: .35rem .2rem; font: inherit; font-weight: var(--fw-head); font-size: var(--fs-small); letter-spacing: .05em; text-transform: uppercase; color: var(--ink); cursor: pointer; }
.side-head .ico { width: 18px; height: 18px; }
.side-caret { width: 6px; height: 6px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: -3px .2rem 0; transition: transform .15s; }
.side-head[aria-expanded="false"] .side-caret { transform: rotate(-45deg); }
.side-count { margin-left: auto; font-size: var(--fs-small); font-weight: var(--fw-head); letter-spacing: 0; text-transform: none; background: var(--surface-2); border-radius: 999px; padding: .1rem .5rem; color: var(--muted); }
.side-sub { margin: .4rem 0 .1rem .4rem; font-size: var(--fs-small); color: var(--muted); }
.side-none { margin: .15rem 0 .3rem 1.2rem; font-size: var(--fs-body); color: var(--muted); }
.side-item { display: flex; align-items: center; gap: .45rem; padding: .45rem .6rem .45rem 1.2rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: var(--fs-body); }
.side-item .ico { width: 16px; height: 16px; margin-left: -.9rem; color: var(--primary); }
.side-item:hover { background: var(--surface-2); }
.side-item.active { background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-head); }
.side-goal { display: grid; gap: .2rem; padding: .3rem .4rem .3rem 1.2rem; font-size: var(--fs-body); }
.ins-content { min-width: 0; }
.ins-content > .page-head:first-child h1 { font-size: var(--fs-title); }
.pop-menu { position: absolute; z-index: 90; min-width: 230px; max-width: 320px; max-height: 60vh; overflow-y: auto; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 34px rgba(0, 0, 0, .16); padding: .35rem; display: grid; }
.pop-item { text-align: left; background: none; border: 0; padding: .55rem .7rem; border-radius: 8px; font: inherit; color: var(--ink); cursor: pointer; }
.pop-item:hover:not([disabled]) { background: var(--primary-soft); color: var(--primary); }
.pop-item[disabled] { color: var(--muted); cursor: default; }
.pop-sep { height: 1px; background: var(--line); margin: .3rem 0; }

/* Start page */
.ins-hero { text-align: center; padding: 2rem 1rem 2.5rem; display: grid; justify-items: center; gap: .6rem; }
.ins-hero h1 { font-size: 1.8rem; font-weight: var(--fw-emph); margin: .6rem 0 0; }
.ins-hero p { max-width: 640px; margin: 0; }
.ins-hero.small { padding: 2rem 1rem; }
.ins-hero-btns { display: flex; gap: .6rem; flex-wrap: wrap; justify-content: center; align-items: center; margin-top: .8rem; }
.ins-hero-art { width: min(520px, 100%); height: auto; }
.ha-card { fill: var(--surface); stroke: var(--line); stroke-width: 1.5; }
.ha-a { fill: #86d4ae; } .ha-b { fill: #0f7a55; } .ha-c { fill: #b9e6cf; } .ha-d { fill: #0f7a55; } .ha-star { fill: #f59e0b; }

/* Report page */
.rep-head { display: flex; gap: 1rem; align-items: flex-start; flex-wrap: wrap; margin-bottom: .4rem; }
.rep-name { font-size: var(--fs-title); font-weight: var(--fw-head); border: 1px solid transparent !important; background: none !important; border-radius: 10px !important; padding: .2rem .5rem !important; width: 100%; max-width: 640px; box-shadow: none !important; color: var(--ink); }
.rep-name:hover:not([readonly]), .rep-name:focus { border-color: var(--line) !important; background: var(--surface) !important; }
.rep-bar { display: flex; align-items: center; gap: 1rem; margin: 0 0 1rem .5rem; }
.rep-bar .check { margin: 0; }
.rep-body { display: grid; grid-template-columns: 290px minmax(0, 1fr); gap: 1rem; align-items: start; }
.rep-panel { margin: 0; }
.rep-panel h2 { font-size: var(--fs-body); margin: 0 0 .7rem; }
.rep-controls { display: grid; gap: .8rem; }
.rep-ctl { display: grid; gap: .3rem; }
.rep-ctl > span { font-size: var(--fs-body); font-weight: var(--fw-head); color: var(--muted); }
.rep-ctl select, .rep-ctl input { width: 100%; }
.rep-charts { display: flex; flex-wrap: wrap; gap: .3rem; }
.rep-charts .seg { flex: 1 1 auto; }
.rep-chart { margin: 0; min-height: 320px; }
.rc-foot { margin: 0; }

/* Charts */
.rc-number { display: grid; justify-items: center; align-content: center; gap: .3rem; padding: 1.5rem 0; min-height: 140px; }
.rc-number b { font-size: 3rem; line-height: 1; color: var(--primary); }
.rc-pie-wrap { display: grid; grid-template-columns: minmax(140px, 220px) 1fr; gap: 1.2rem; align-items: center; }
.rc-pie { width: 100%; height: auto; }
.rc-pie-total { font-size: var(--fs-small); font-weight: var(--fw-head); fill: var(--ink); }
.rc-legend { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; }
.rc-legend li { display: flex; align-items: center; gap: .5rem; }
.rc-key { width: 12px; height: 12px; border-radius: 3px; flex: none; }
.rc-line-wrap { display: grid; gap: .3rem; }
.rc-line { width: 100%; height: 240px; overflow: visible; }
.rc-grid { stroke: var(--line); stroke-width: 1; }
.rc-area { fill: color-mix(in srgb, var(--primary) 14%, transparent); }
.rc-path { fill: none; stroke: var(--primary); stroke-width: 3; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.rc-dot { fill: var(--surface); stroke: var(--primary); stroke-width: 2; vector-effect: non-scaling-stroke; }
.rc-axis { font-size: var(--fs-small); fill: var(--muted); }
.rc-total td { font-weight: var(--fw-head); border-top: 2px solid var(--line); }

/* Dashboard */
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
.dash-tile { margin: 0; }
.dash-tile h2 a { color: var(--ink); text-decoration: none; }
.dash-tile h2 a:hover { color: var(--primary); text-decoration: underline; }
.tile-sub { margin: -.5rem 0 0; }
.tile-tools { display: flex; gap: .15rem; opacity: .55; transition: opacity .15s; }
.dash-tile:hover .tile-tools, .dash-tile:focus-within .tile-tools { opacity: 1; }
.tile-tools .tool { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; font-size: var(--fs-section); line-height: 1; color: var(--ink); }
.tile-tools .tool:hover { border-color: var(--primary); color: var(--primary); }
@media (max-width: 1100px) { .rep-body { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .ins-layout { grid-template-columns: 1fr; } .ins-side { position: static; max-height: none; } .dash-grid { grid-template-columns: 1fr; } .rc-pie-wrap { grid-template-columns: 1fr; } }
@media print { .ins-side, .rep-bar, .tile-tools, .rep-panel { display: none !important; } .ins-layout { display: block; } .dash-grid { grid-template-columns: 1fr 1fr; } .rep-name { font-size: var(--fs-section); } }

/* v0.10.104: your picture and status in the top bar, as in Teams (a tick for Available, a dash for Do not disturb). */
.me-pres { position: relative; display: inline-flex; flex: none; margin-right: .15rem; }
.me-pres .avatar { width: 32px; height: 32px; font-size: var(--fs-small); }
.me-pres .pres-dot { width: 14px; height: 14px; right: -3px; bottom: -3px; border-width: 2px; display: grid; place-items: center; }
.me-pres .pres-dot.st-available::before { content: ''; width: 3px; height: 6px; border: solid #fff; border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); margin-top: -1px; }
.avatar-btn { gap: .5rem; }
/* The saved-view chips ("All clients") use the same highlight as every other chip, not black. */
.views-chips .chip[aria-pressed="true"] { background: var(--sel); border-color: var(--sel); color: var(--sel-ink); }

/* Describe a report (v0.10.105). */
.spark { display: inline-block; width: 18px; height: 18px; flex: none; background: linear-gradient(135deg, #0f7a55, #34d399); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2zM19 15l1 2.6 2.6 1-2.6 1L19 22l-1-2.6-2.6-1 2.6-1z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2l2.2 6.3L20.5 10.5l-6.3 2.2L12 19l-2.2-6.3L3.5 10.5l6.3-2.2zM19 15l1 2.6 2.6 1-2.6 1L19 22l-1-2.6-2.6-1 2.6-1z'/%3E%3C/svg%3E") center / contain no-repeat; }
.describe-btn { border-color: color-mix(in srgb, var(--primary) 45%, transparent); }
.describe-ex { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; margin: .2rem 0 1rem; }
.describe-ex .chip { font-size: var(--fs-body); }
.describe-said { display: flex; align-items: center; gap: .5rem; background: var(--primary-soft); border-radius: 12px; padding: .6rem .9rem; margin: 0 0 1rem; }

/* Calendar apps' own icons on their buttons and tiles (v0.10.106). */
.pick-ico.brand { background: none; width: 40px; height: 40px; }
.brand-ico { width: 36px; height: 36px; display: block; }
.brand-btn { gap: .55rem; }
.brand-btn .brand-ico { width: 22px; height: 22px; background: #fff; border-radius: 5px; padding: 1px; }

/* Native form parts (the page box's up and down arrows, date pickers) follow the theme chosen in ShikaCRM, not the
   computer's own setting, so a light page never shows black controls. The pager's box has no arrows at all. */
:root, :root[data-theme="light"] { color-scheme: only light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { color-scheme: dark; } }
.pager input[type=number] { -moz-appearance: textfield; appearance: textfield; }
.pager input[type=number]::-webkit-inner-spin-button, .pager input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }

/* Overdue follow-ups (v0.10.107) */
.overdue-reps { margin-bottom: 1rem; flex-wrap: wrap; }
.overdue-table { width: 100%; border-collapse: collapse; }
.overdue-table th, .overdue-table td { text-align: left; padding: .6rem .7rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.overdue-table th { font-size: var(--fs-small); color: var(--muted); font-weight: var(--fw-head); }
.overdue-table select { min-width: 150px; }
.late { display: inline-block; font-weight: var(--fw-head); font-size: var(--fs-body); border-radius: 999px; padding: .1rem .6rem; }
.late.warn { background: #fef3c7; color: #92400e; }
.late.bad { background: #fde2e1; color: #b42318; }
:root[data-theme="dark"] .late.warn { background: #3a2c0a; color: #fcd34d; }
:root[data-theme="dark"] .late.bad { background: #3b1414; color: #fca5a5; }
.empty-state { text-align: center; padding: 2rem 1rem; }

/* Email and contacts sync (v0.10.108) */
.sync-row { display: flex; align-items: center; gap: .9rem; padding: .8rem 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.sync-row .brand-ico { width: 34px; height: 34px; flex: none; }
.sync-btns { display: flex; gap: .4rem; }
.ok-text { color: var(--primary); font-weight: var(--fw-head); }
.history .synced b { color: var(--primary); }

/* Deals on the client page, products and the price list (v0.10.110). */
.deals-card .deal-row { display: flex; flex-direction: column; gap: .5rem; padding: .75rem 0; border-top: 1px solid var(--line); }
.deals-card .deal-row .grow { min-width: 0; }
.deals-card .deal-row .grow > b { margin-right: .3rem; }
.deals-card .deal-row .grow > select, .deals-card .deal-row .grow > .badge { margin: .25rem 0; }
.deals-card .deal-row.closed { opacity: .7; }
.deals-card .deal-row select { width: auto; min-height: 30px; padding: .1rem .5rem; font-size: var(--fs-body); }
.deal-tools { display: flex; gap: .3rem; flex-wrap: wrap; align-items: center; }
.deal-tools .deal-tools { display: contents; }
.pc-deal { font-size: var(--fs-body); font-weight: var(--fw-head); color: var(--primary); margin: .15rem 0; }
.pcard.extra-deal { border-left: 3px solid var(--primary); }
dialog.modal.wide-modal { width: min(880px, calc(100vw - 2rem)); }
.prod-head, .prod-line { display: grid; grid-template-columns: 1.4fr 1.6fr .6fr .9fr .7fr .9fr auto; gap: .4rem; align-items: center; }
.prod-line { margin-bottom: .4rem; }
.prod-line input, .prod-line select { width: 100%; min-height: 38px; }
.prod-tot { text-align: right; font-weight: var(--fw-head); white-space: nowrap; }
.prod-total { text-align: right; font-size: var(--fs-section); margin: .8rem 0; }
.prod-table { width: 100%; border-collapse: collapse; }
.prod-table th, .prod-table td { padding: .4rem; border-bottom: 1px solid var(--line); text-align: left; }
.prod-table input { width: 100%; }
.prod-table th:first-child { width: 38%; }
.prod-table th:last-child { width: 1%; }
.muted-row { opacity: .55; }
.prod-add { margin-top: 1.2rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.prod-add-row { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: .6rem; }
@media (max-width: 720px) { .prod-head { display: none; } .prod-line { grid-template-columns: 1fr 1fr; } .prod-add-row { grid-template-columns: 1fr; } }

/* Calling from the browser (v0.10.111). */
.call-bar { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 60; width: min(560px, calc(100vw - 2rem));
  background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); padding: .6rem .8rem; }
.call-bar .cb-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.call-bar .cb-status { font-weight: var(--fw-head); flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.call-bar .cb-clock { font-variant-numeric: tabular-nums; color: var(--muted); }
.call-bar .cb-dot { width: 10px; height: 10px; border-radius: 50%; background: #e0a100; flex: none; animation: cbpulse 1.2s infinite; }
.call-bar.live .cb-dot { background: #12a150; animation: none; }
@keyframes cbpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .call-bar .cb-dot { animation: none; } }
.call-bar .cb-tools { display: flex; gap: .3rem; }
.call-bar .cb-hang { background: #d93838; color: #fff; border-color: #d93838; }
.call-bar .cb-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: .3rem; margin-top: .6rem; max-width: 240px; margin-inline: auto; }
.voice-settings .steps-list { padding-left: 1.2rem; line-height: 1.6; }
.voice-settings select { max-width: 420px; }

/* Queue auto-dial countdown (v0.10.112). */
.autodial-banner { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .8rem; }
.autodial-banner .ad-tools { display: flex; gap: .3rem; flex-wrap: wrap; }
.btn.auto-dial[aria-pressed="true"] { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }

/* Recording and incoming calls (v0.10.113). */
.call-bar.ringing { border-color: var(--primary); }
.call-bar.ringing .cb-dot { background: var(--primary); }
.call-bar .cb-answer { background: #12a150; color: #fff; border-color: #12a150; }
.call-bar .cb-rec { background: var(--danger-soft); color: var(--danger); }
.rec-play { margin-top: .3rem; }
.rec-box { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .3rem; }
.rec-box audio { height: 36px; max-width: 100%; }

/* Settings > Web forms (v0.10.114). */
.forms-settings .form-item { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: .7rem; }
.forms-settings .form-item > summary { cursor: pointer; }
.forms-settings .copy-row { align-items: flex-start; flex-wrap: nowrap; }
.forms-settings .copy-row input, .forms-settings .copy-row textarea { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Consolas, monospace; font-size: var(--fs-body); }
.forms-settings fieldset.ticks { border: 0; padding: 0; margin: .4rem 0; display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.forms-settings fieldset.ticks legend { font-weight: var(--fw-head); margin-bottom: .3rem; }
.forms-settings .form-new { align-items: flex-end; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.forms-settings .copy-row .btn { white-space: nowrap; flex: none; }
@media (max-width: 720px) { .forms-settings .copy-row { flex-wrap: wrap; } }

/* Leads by email (v0.10.115). */
.lead-mail { margin-top: 1rem; }
.lead-mail .more-settings { border: 1px dashed var(--line); border-radius: var(--radius); padding: .5rem .8rem; }
.lead-mail .more-settings > summary { cursor: pointer; color: var(--muted); }

/* Settings > API & webhooks (v0.10.116). */
.api-settings + .api-settings { margin-top: 1rem; }
.api-settings .form-item { border: 1px solid var(--line); border-radius: var(--radius); padding: .7rem .9rem; margin-bottom: .7rem; }
.api-settings .form-item > summary { cursor: pointer; }
.api-settings .hook-url { word-break: break-all; }
.api-settings .copy-row { align-items: center; flex-wrap: nowrap; }
.api-settings .copy-row input { flex: 1 1 auto; min-width: 0; font-family: ui-monospace, Consolas, monospace; }
.api-settings .copy-row .btn { flex: none; }
.api-settings fieldset.ticks { border: 0; padding: 0; margin: .4rem 0; display: grid; gap: .3rem; }
.api-settings fieldset.ticks legend { font-weight: var(--fw-head); margin-bottom: .3rem; }
.api-settings .form-new { align-items: flex-end; margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; flex-wrap: wrap; }
.api-settings .hook-new { margin-top: 1rem; border-top: 1px solid var(--line); padding-top: 1rem; }
.api-settings .deliveries { padding-left: 1.1rem; margin: .3rem 0 0; }
.ok-text { color: var(--ok); font-weight: var(--fw-head); } .bad-text { color: var(--danger); font-weight: var(--fw-head); }
.api-settings .prod-table td, .api-settings .prod-table th { white-space: nowrap; }

/* Billing (v0.10.117). */
.plan-pill.warn { background: var(--warn-soft); color: var(--warn); }
.locked-card { max-width: 620px; margin: 2rem auto; text-align: center; padding: 2rem; }
.locked-card h1 { margin-top: 0; }
.trial-banner { display: flex; align-items: center; justify-content: space-between; gap: .8rem; flex-wrap: wrap; margin-bottom: 1rem; }

/* Leads and Deals in the menu (v0.10.119). */
.lead-list { list-style: none; padding: 0; margin: 0; }
.lead-row { display: flex; gap: 1rem; justify-content: space-between; padding: .9rem 1rem; border-top: 1px solid var(--line); flex-wrap: wrap; }
.lead-row:first-child { border-top: 0; }
.lead-row.waiting { border-left: 3px solid var(--warn); }
.lead-main { flex: 1 1 320px; min-width: 0; }
.lead-name { font-weight: var(--fw-head); }
.lead-gist { margin: .35rem 0 0; color: var(--ink); }
.lead-side { display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; }
.lead-acts { display: flex; gap: .3rem; flex-wrap: wrap; justify-content: flex-end; }
.lead-ok { color: var(--ok); font-size: var(--fs-body); font-weight: var(--fw-head); }
@media (max-width: 720px) { .lead-side { align-items: flex-start; } .lead-acts { justify-content: flex-start; } }
.deals-head-right { display: flex; gap: .6rem; align-items: center; flex-wrap: wrap; }
.deal-rep-pick { align-items: center; gap: .5rem; margin-bottom: .8rem; }
.pick-list { display: grid; gap: .2rem; margin: -.3rem 0 .6rem; }
.pick-list .pick { text-align: left; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: .5rem .7rem; cursor: pointer; font: inherit; color: inherit; }
.pick-list .pick:hover, .pick-list .pick:focus { border-color: var(--primary); }
.sidenav .nav-badge.leads-badge, .sidenav .navlink.active .nav-badge.leads-badge, .more-sheet .nav-badge.leads-badge { background: #e5484d; color: #fff; }

/* + Lead and the Add lead window (v0.10.120). */
.lead-title { align-items: center; gap: 1rem; }
.split-btn { position: relative; display: inline-flex; }
.split-btn > .btn:first-child { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.split-btn .split-caret { border-top-left-radius: 0; border-bottom-left-radius: 0; border-left: 1px solid rgba(255, 255, 255, .35); padding-inline: .55rem; }
.split-menu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; min-width: 180px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .15); padding: .3rem; }
.split-menu .menu-item { display: flex; align-items: center; gap: .4rem; padding: .5rem .7rem; border-radius: 7px; color: var(--ink); text-decoration: none; }
.split-menu .menu-item:hover { background: var(--surface-2); }
.lead-first { text-align: center; padding: 3rem 1rem 1rem; }
.lead-first h2 { font-size: var(--fs-title); font-weight: var(--fw-emph); margin: 0 0 .6rem; }
.lead-first .muted { max-width: 620px; margin: 0 auto 1.4rem; }
.lead-first-btns { justify-content: center; gap: .8rem; margin-bottom: 2rem; }
.lead-first-video { display: flex; justify-content: center; margin-bottom: 1rem; }
dialog.modal.lead-modal { width: min(1000px, calc(100vw - 2rem)); padding: 0; overflow: hidden; }
dialog.modal.lead-modal > h2 { margin: 0; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.lead-form { display: flex; flex-direction: column; max-height: calc(100vh - 9rem); }
.lead-cols { display: grid; grid-template-columns: 1fr 1fr; overflow-y: auto; }
.lead-left { padding: 1rem 1.4rem; border-right: 1px solid var(--line); }
.lead-right { padding: 1rem 1.4rem; }
.lead-form .field { margin-bottom: .8rem; }
.in-icon { position: relative; }
.in-icon svg { position: absolute; left: .7rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.in-icon input { padding-left: 2.3rem; width: 100%; }
.value-row { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.lead-sep { display: flex; align-items: center; gap: .7rem; font-size: var(--fs-small); font-weight: var(--fw-head); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin: .3rem 0 1rem; }
.lead-sep::after { content: ''; flex: 1; border-top: 1px solid var(--line); }
.multi { display: grid; gap: .5rem; }
.multi-row { display: grid; grid-template-columns: 1.4fr 1fr; gap: .5rem; }
.link-btn { background: none; border: 0; padding: .4rem 0; font: inherit; font-weight: var(--fw-head); color: var(--primary); cursor: pointer; text-align: left; }
.info-dot { display: inline-grid; place-items: center; width: 16px; height: 16px; border: 1.5px solid var(--muted); border-radius: 50%; font-size: var(--fs-small); font-weight: var(--fw-head); color: var(--muted); cursor: help; vertical-align: middle; }
.consent-tick { align-items: flex-start; margin-top: .4rem; }
.consent-tick .hint { display: block; }
.lead-form > .error { margin: 0; padding: 0 1.4rem; }
.lead-foot { display: flex; justify-content: space-between; align-items: center; padding: .8rem 1.4rem; border-top: 1px solid var(--line); background: var(--surface); }
@media (max-width: 720px) { .lead-cols { grid-template-columns: 1fr; } .lead-left { border-right: 0; } }
.split-caret .tri { display: inline-block; width: 0; height: 0; border-left: 5px solid transparent; border-right: 5px solid transparent; border-top: 6px solid currentColor; }
dialog.modal.lead-modal { position: fixed; } .modal-x { position: absolute; top: .7rem; right: .9rem; background: none; border: 0; font-size: var(--fs-title); line-height: 1; color: var(--muted); cursor: pointer; padding: .2rem .4rem; border-radius: 6px; } .modal-x:hover { background: var(--surface-2); color: var(--ink); }

/* Settings > Pipeline stages (v0.10.122). */
.stages-settings .pct-in { display: flex; align-items: center; gap: .3rem; max-width: 110px; }
.stages-settings .pct-in input { width: 80px; }

/* A deal's page and the forecast (v0.10.122). */
.back-link { display: inline-block; margin-bottom: .4rem; }
.deal-head { align-items: flex-start; }
.deal-head .row { gap: .4rem; flex-wrap: wrap; }
.deal-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 1rem; align-items: start; margin-top: 1rem; }
.deal-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 0 1rem; }
.plain-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
a.deal-open { font-weight: var(--fw-head); }
.forecast-table tr.overdue td:first-child { color: var(--danger); font-weight: var(--fw-head); }
@media (max-width: 900px) { .deal-grid { grid-template-columns: 1fr; } .deal-fields { grid-template-columns: 1fr; } }

/* "Import your contact and sales data" banner on Deals (v0.10.123). */
.import-banner { position: relative; display: flex; align-items: center; gap: 1.2rem; background: #ece8fb; border: 1px solid #d9d2f5; border-radius: 10px; padding: .75rem 3.2rem .75rem 1.4rem; margin-bottom: 1rem; color: #1c2434; }
.import-banner .ib-art { flex: none; display: flex; }
.import-banner .ib-text { flex: 1 1 auto; min-width: 0; }
.import-banner h2 { margin: 0 0 .15rem; font-size: var(--fs-body); font-weight: var(--fw-head); }
.import-banner p { margin: 0; line-height: 1.4; font-size: var(--fs-body); color: #2b3445; }
.import-banner .ib-btn { flex: none; background: #6d5ce8; border-color: #6d5ce8; color: #fff; font-weight: var(--fw-head); display: inline-flex; align-items: center; gap: .4rem; }
.import-banner .ib-btn:hover { background: #5b4bd6; }
.import-banner .ib-close { position: absolute; top: 50%; transform: translateY(-50%); right: .8rem; background: none; border: 0; font-size: var(--fs-title); line-height: 1; color: #3a3f4b; cursor: pointer; padding: .1rem .35rem; border-radius: 6px; }
.import-banner .ib-close:hover { background: rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .import-banner { background: #2a2050; border-color: #3b2f6e; color: #e8edf6; }
:root[data-theme="dark"] .import-banner p, :root[data-theme="dark"] .import-banner .ib-close { color: #c9cfe0; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .import-banner { background: #2a2050; border-color: #3b2f6e; color: #e8edf6; } :root[data-theme="auto"] .import-banner p, :root[data-theme="auto"] .import-banner .ib-close { color: #c9cfe0; } }
@media (max-width: 720px) { .import-banner { flex-wrap: wrap; padding: .9rem 2.8rem .9rem 1rem; gap: .8rem; } .import-banner .ib-art svg { width: 52px; height: 52px; } .import-banner .ib-close { top: .9rem; transform: none; } }
.import-banner svg * { transform-box: fill-box; }
.import-banner .ib-doc { transform-origin: center bottom; animation: ib-rise .5s cubic-bezier(.2, .8, .3, 1) both; }
.import-banner .ib-line { transform-origin: left center; animation: ib-fill .35s ease-out both; }
.import-banner .ib-l1 { animation-delay: .35s; } .import-banner .ib-l2 { animation-delay: .5s; }
.import-banner .ib-badge { transform-origin: center; animation: ib-pop .45s cubic-bezier(.3, 1.6, .5, 1) .55s both; }
.import-banner .ib-arrow { animation: ib-lift .5s ease-in-out 1.05s 2; }
@keyframes ib-rise { from { transform: translateY(14px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes ib-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ib-pop { from { transform: scale(0); } to { transform: scale(1); } }
@keyframes ib-lift { 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .import-banner svg * { animation: none !important; } }
.deal-video { margin-bottom: 1rem; max-width: 360px; }

/* One Deals page with views (v0.10.124). */
.deals-head { align-items: flex-start; gap: 1rem; flex-wrap: wrap; }
.view-segs { flex-wrap: wrap; }
.status-segs { margin: -.4rem 0 1rem; }

/* The demo company (v0.10.126). */
.demo-list { line-height: 1.6; padding-left: 1.2rem; }
.demo-ready h2 { margin-bottom: .2rem; }
.demo-strip { background: var(--warn-soft); color: var(--ink); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); border-radius: 10px; padding: .5rem .9rem; margin-bottom: 1rem; font-size: var(--fs-body); }
.demo-strip .link-btn { padding: 0; }

/* Automatic assignment (v0.10.127). */
.crumb { align-items: center; gap: .5rem; }
.crumb svg { color: var(--primary); }
.assign-banner { position: relative; display: flex; align-items: center; gap: 1.4rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .9rem 3.2rem .9rem 1.4rem; margin-bottom: 1.2rem; }
.assign-banner .ab-art { flex: none; display: flex; }
.assign-banner .ab-text { flex: 1 1 auto; min-width: 0; }
.assign-banner h2 { margin: 0 0 .15rem; font-size: var(--fs-section); }
.assign-banner p { margin: 0; color: var(--muted); }
.assign-banner .ib-close { position: absolute; top: .6rem; right: .8rem; background: none; border: 0; font-size: var(--fs-title); color: var(--muted); cursor: pointer; }
.assign-banner .sp-a { animation: sp-swing .6s ease-out both; transform-box: fill-box; transform-origin: right center; }
.assign-banner .sp-b { animation: sp-swing2 .6s ease-out .15s both; transform-box: fill-box; transform-origin: left center; }
@keyframes sp-swing { from { transform: rotate(-14deg) scaleX(.6); } to { transform: none; } }
@keyframes sp-swing2 { from { transform: rotate(14deg) scaleX(.6); } to { transform: none; } }
.assign-top { align-items: center; margin-bottom: .6rem; }
.learn-more { position: relative; }
.learn-more summary { cursor: pointer; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; font-weight: var(--fw-head); }
.learn-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; width: min(420px, 85vw); background: var(--surface); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 10px 24px rgba(0, 0, 0, .12); padding: .8rem 1rem; font-size: var(--fs-body); }
.assign-tabs { display: flex; gap: .3rem; border-bottom: 1px solid var(--line); margin-bottom: .9rem; }
.assign-tab { padding: .6rem 1rem; text-decoration: none; color: var(--muted); border-bottom: 3px solid transparent; font-weight: var(--fw-head); }
.assign-tab.on { color: var(--primary); border-bottom-color: var(--primary); }
.assign-chips { display: flex; gap: .4rem; flex-wrap: wrap; margin-bottom: 1rem; }
.assign-chip { display: inline-flex; align-items: center; gap: .35rem; background: none; border: 0; border-radius: 8px; padding: .4rem .7rem; font: inherit; font-weight: var(--fw-head); color: var(--muted); cursor: pointer; }
.assign-chip.on, .assign-chip:hover { background: var(--primary-soft); color: var(--primary); }
.rule-list { list-style: none; padding: 0; margin: 0 0 1rem; display: grid; gap: .5rem; }
.rule-row { display: flex; align-items: center; gap: .8rem; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: .7rem .9rem; }
.rule-row.off { opacity: .6; }
.rule-no { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--primary-soft); color: var(--primary); font-weight: var(--fw-head); }
.rule-sentence { flex: 1 1 auto; min-width: 0; }
.rule-tools { display: flex; align-items: center; gap: .2rem; flex-wrap: wrap; }
.assign-empty { text-align: center; padding: 1rem 0 2rem; }
.assign-empty .route-art svg { max-width: 100%; height: auto; }
.assign-empty .route-art .rt-p { animation: rt-in .4s cubic-bezier(.3, 1.5, .5, 1) both; transform-box: fill-box; transform-origin: center; } .assign-empty .rt-p1 { animation-delay: .15s; } .assign-empty .rt-p2 { animation-delay: .3s; }
@keyframes rt-in { from { transform: scale(.6); } to { transform: none; } }
.assign-presets { justify-content: center; gap: .5rem; flex-wrap: wrap; align-items: center; }
.rule-form .rule-lines { display: grid; gap: .6rem; margin-bottom: 1rem; }
.rule-line { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.rule-line select, .rule-line input { width: auto; min-width: 160px; }
.rule-word { font-weight: var(--fw-head); min-width: 80px; }
.rule-people { display: flex; flex-wrap: wrap; gap: .3rem 1rem; padding-left: 88px; }
.rule-say { background: var(--primary-soft); border-radius: 10px; padding: .7rem .9rem; margin-bottom: .6rem; }
.rule-preview { margin: .2rem 0 0; font-weight: var(--fw-head); color: var(--ink); }
dialog.modal.rule-modal { width: min(720px, calc(100vw - 2rem)); }
@media (prefers-reduced-motion: reduce) { .assign-banner svg *, .assign-empty svg * { animation: none !important; } }
@media (max-width: 720px) { .rule-people { padding-left: 0; } .rule-word { min-width: 0; } .assign-banner { flex-wrap: wrap; } }
.learn-more summary { list-style: none; } .learn-more summary::-webkit-details-marker { display: none; } .learn-more summary::after { content: "▾"; font-size: var(--fs-small); margin-left: .2rem; }
.learn-more summary::before { content: none !important; display: none !important; }

/* Icons in the Settings list (v0.10.128). */
.subnav a { display: flex; align-items: center; gap: .65rem; }
.subnav a svg { flex: none; width: 20px; height: 20px; color: var(--muted); }
.subnav a.active svg { color: var(--primary); }
.settings-index a > .si-ico { flex: none; display: flex; color: var(--muted); }
.settings-index a > span:nth-child(2) { flex: 1 1 auto; display: flex; flex-direction: column; gap: .1rem; }

/* Automations, laid out like Automatic assignment (v0.10.129). */
.auto-banner .ab-card { animation: ab-slide .5s ease-out both; transform-box: fill-box; }
.auto-banner .ab-bolt { animation: ab-pop .45s cubic-bezier(.3, 1.6, .5, 1) .3s both; transform-box: fill-box; transform-origin: center; }
.auto-banner .ab-card2 { animation: ab-slide2 .5s ease-out .55s both; transform-box: fill-box; }
@keyframes ab-slide { from { transform: translateX(-10px); } to { transform: none; } }
@keyframes ab-slide2 { from { transform: translateX(10px); } to { transform: none; } }
@keyframes ab-pop { from { transform: scale(.4); } to { transform: none; } }
.route-art .af-in, .route-art .af-out { transform-box: fill-box; transform-origin: center; animation: rt-in .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.route-art .af-in1 { animation-delay: .1s; } .route-art .af-in2 { animation-delay: .2s; } .route-art .af-out0 { animation-delay: .45s; } .route-art .af-out1 { animation-delay: .55s; }
.route-art .af-bolt { transform-box: fill-box; transform-origin: center; animation: ab-pop .5s cubic-bezier(.3, 1.6, .5, 1) .3s both; }
.auto-row .auto-ico svg { width: 16px; height: 16px; }
.auto-row .rule-sentence > div { margin-top: .15rem; }
@media (prefers-reduced-motion: reduce) { .auto-banner svg *, .route-art svg * { animation: none !important; } }

/* The setup guide (v0.10.130), as in Pipedrive. */
.su-hero { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 1rem; background: #f4f2ff; border-radius: 16px; padding: 2.4rem 0 0 2.4rem; overflow: hidden; margin-bottom: 1.6rem; min-height: 230px; }
.su-hero-text { flex: 1 1 520px; max-width: 640px; padding-bottom: 2.2rem; color: #1c2434; }
.su-hero h1 { font-size: 2rem; font-weight: var(--fw-emph); margin: 0 0 1.2rem; }
.su-hero p { font-size: var(--fs-section); line-height: 1.55; margin: 0 0 1.1rem; }
.su-green { color: #138046; }
.su-bar { height: 10px; border-radius: 999px; background: #dcd8f0; overflow: hidden; max-width: 620px; }
.su-bar > span { display: block; height: 100%; border-radius: 999px; background: #7f74f2; transition: width .4s; }
.su-count { text-transform: uppercase; letter-spacing: .03em; font-size: var(--fs-small) !important; font-weight: var(--fw-head); color: #5b6170; text-align: right; max-width: 620px; margin-top: .5rem !important; }
.su-art { flex: none; align-self: flex-end; display: flex; }
.su-art .su-star { transform-box: fill-box; transform-origin: center; animation: su-pop .6s cubic-bezier(.3, 1.6, .5, 1) .2s both; }
.su-art .su-star2 { transform-box: fill-box; transform-origin: center; animation: su-spin 1.2s ease-out .4s both; }
.su-art .su-dot { transform-box: fill-box; transform-origin: center; animation: su-pop .5s cubic-bezier(.3, 1.6, .5, 1) .6s both; }
@keyframes su-pop { from { transform: scale(.3); } to { transform: none; } }
@keyframes su-spin { from { transform: rotate(-40deg) scale(.8); } to { transform: none; } }
.su-done-card { display: flex; align-items: flex-start; gap: 1rem; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 1.1rem 1.4rem; margin-bottom: 1.6rem; }
.su-done-card b { text-decoration: line-through; color: var(--muted); }
.su-done-card p { margin: .2rem 0 0; color: var(--muted); text-decoration: line-through; }
.su-list-h { text-transform: uppercase; letter-spacing: .03em; font-size: var(--fs-body); color: var(--muted); margin: 0 0 .8rem; }
.gs-check { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: #7f74f2; color: #fff; font-size: var(--fs-small); font-weight: var(--fw-head); flex: none; }
.gs-check.big { width: 28px; height: 28px; }
.gs-check.empty { background: transparent; border: 2px solid var(--line); }
.su-group { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; margin-bottom: .8rem; }
.su-group > summary { display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.4rem; cursor: pointer; list-style: none; }
.su-group > summary::-webkit-details-marker { display: none; }
.su-group > summary::before { content: none !important; display: none !important; }
.su-g-title { flex: 1 1 auto; font-size: var(--fs-section); }
.su-mini { width: 100px; height: 8px; border-radius: 999px; background: var(--surface-2); overflow: hidden; flex: none; }
.su-mini > span { display: block; height: 100%; background: #7f74f2; }
.su-g-count { color: var(--muted); white-space: nowrap; }
.su-chev { width: 9px; height: 9px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); margin: 0 .3rem 3px; transition: transform .15s; }
.su-group[open] .su-chev { transform: rotate(-135deg); margin-bottom: -3px; }
.su-tasks { border-top: 1px solid var(--line); }
.gs-task { display: flex; gap: 1rem; padding: 1.1rem 1.4rem; border-bottom: 1px solid var(--line); }
.gs-task:last-child { border-bottom: 0; }
.gs-task-ico { flex: none; color: var(--muted); padding-top: .15rem; }
.gs-task-main { flex: 1 1 auto; min-width: 0; }
.gs-task-title { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: var(--fs-body); }
.gs-time { display: inline-flex; align-items: center; gap: .25rem; background: var(--surface-2); border-radius: 999px; padding: .1rem .5rem; font-size: var(--fs-small); font-weight: var(--fw-head); color: var(--ink); }
.gs-time svg { width: 13px; height: 13px; }
.gs-task-hint { margin: .3rem 0 .7rem; color: var(--muted); }
.gs-task.done .gs-task-title b, .gs-task.done .gs-task-hint { text-decoration: line-through; color: var(--muted); }
.gs-task-side { flex: none; display: flex; align-items: center; gap: .4rem; }
.su-foot { margin-top: 1rem; }
.su-card { display: flex; justify-content: space-between; align-items: stretch; gap: 1rem; background: #f4f2ff; border-color: #e3defd; padding-right: 0; padding-bottom: 0; overflow: hidden; color: #1c2434; }
.su-card .su-card-text { flex: 1 1 auto; padding-bottom: 1rem; min-width: 0; }
.su-card .su-art.small svg { width: 210px; height: 154px; }
.su-next { display: flex; align-items: center; gap: .8rem; background: #fff; border-radius: 10px; padding: .7rem .9rem; margin: .4rem 0 .6rem; }
.su-next > div { flex: 1 1 auto; min-width: 0; }
.su-open { font-weight: var(--fw-head); color: #138046; }
:root[data-theme="dark"] .su-hero, :root[data-theme="dark"] .su-card { background: #221d3d; color: var(--ink); border-color: #2f2856; }
:root[data-theme="dark"] .su-next { background: var(--surface); }
:root[data-theme="dark"] .su-hero-text { color: var(--ink); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .su-hero, :root[data-theme="auto"] .su-card { background: #221d3d; color: var(--ink); border-color: #2f2856; } :root[data-theme="auto"] .su-next { background: var(--surface); } :root[data-theme="auto"] .su-hero-text { color: var(--ink); } }
@media (max-width: 820px) { .su-hero { padding: 1.4rem 1.2rem 0; flex-wrap: wrap; } .su-hero h1 { font-size: var(--fs-title); } .su-art svg { width: 200px; height: 146px; } .su-mini { display: none; } .gs-task { flex-wrap: wrap; } .su-card .su-art { display: none; } }
@media (prefers-reduced-motion: reduce) { .su-art svg * { animation: none !important; } }
.su-group > summary .gs-check { flex: 0 0 24px; width: 24px; height: 24px; min-height: 24px; max-height: 24px; box-sizing: border-box; padding: 0; } .su-group > summary .su-g-title, .su-group > summary .su-g-count { color: var(--ink); } .su-group > summary .su-g-count { color: var(--muted); } .su-group > summary .su-chev { color: var(--ink); }

/* Support connection (v0.10.131). */
.support-conn .copy-inline { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.support-conn code { background: var(--surface-2); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }
.support-conn form { max-width: 560px; }

/* Contact support (v0.10.132): a floating chat window at the bottom right, as in monday.com. */
.kc-panel { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 380px; height: min(640px, calc(100vh - 90px)); display: flex; flex-direction: column;
  background: var(--surface); color: var(--ink); border-radius: 22px; box-shadow: 0 12px 48px rgba(0, 0, 0, .22), 0 0 0 1px rgba(0, 0, 0, .04); overflow: hidden; animation: kc-in .2s ease-out; }
@keyframes kc-in { from { transform: translateY(16px) scale(.98); } }
.kc-head { position: relative; display: flex; align-items: center; gap: .55rem; padding: .8rem .9rem .8rem .6rem; }
.kc-name { flex: 1; font-size: var(--fs-section); }
.kc-icon { display: grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 50%; background: none; color: #555b66; font: inherit; font-size: var(--fs-title); line-height: 1; cursor: pointer; }
.kc-icon:hover { background: var(--surface-2); }
.kc-x { font-size: 1.9rem; font-weight: var(--fw-regular); }
.kc-min { width: 16px; height: 2px; border-radius: 2px; background: currentColor; }
.kc-menu { position: absolute; top: 3rem; left: .6rem; z-index: 2; min-width: 210px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); overflow: hidden; }
.kc-menu .menu-item { min-height: 40px; padding: .55rem .9rem; }
.kc-menu .menu-item:last-child { border-bottom: 0; }
.kira-face { display: inline-flex; flex: none; width: 36px; height: 36px; border-radius: 50%; overflow: hidden; }
.kira-face svg { width: 100%; height: 100%; }
.kira-face.sm { width: 32px; height: 32px; }
.kira-face.xs { width: 30px; height: 30px; }
.kira-face.lg { width: 76px; height: 76px; box-shadow: 0 4px 14px rgba(0, 0, 0, .12); }
.kc-log { flex: 1; overflow-y: auto; padding: .4rem 1.1rem 1rem; display: flex; flex-direction: column; gap: .9rem; }
.kc-intro { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.6rem 0 .6rem; }
.kc-intro b { font-size: var(--fs-section); margin-top: .4rem; }
.kc-intro p { margin: 0; color: var(--muted); }
.kc-day { text-align: center; color: var(--muted); font-size: var(--fs-body); margin: .8rem 0 0; }
.kc-row { display: flex; align-items: flex-start; gap: .6rem; }
.kc-row.mine { justify-content: flex-end; }
.kc-msg { display: grid; gap: .2rem; max-width: 82%; }
.kc-row.mine .kc-msg { justify-items: end; }
.kc-text { white-space: pre-wrap; overflow-wrap: anywhere; font-size: var(--fs-body); line-height: 1.45; }
.kc-row.theirs .kc-text { padding-top: .2rem; }
.kc-row.mine .kc-text { background: #16613f; color: #fff; padding: .55rem .85rem; border-radius: 18px 18px 4px 18px; }
.kc-note { font-size: var(--fs-small); color: var(--muted); }
.kc-form { padding: .3rem 1rem 0; }
.kc-input { display: flex; align-items: flex-end; gap: .4rem; border: 1px solid var(--line); border-radius: 26px; padding: .35rem .35rem .35rem 1.1rem; background: var(--surface); }
.kc-input:focus-within { border-color: #8f96a3; }
.kc-input textarea { flex: 1; border: 0 !important; outline: 0; box-shadow: none !important; resize: none; padding: .55rem 0; min-height: 0; background: transparent; font: inherit; font-size: var(--fs-body); line-height: 1.4; max-height: 140px; overflow-y: hidden; }
.kc-send { flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; background: #16613f; color: #fff; font-size: var(--fs-section); font-weight: var(--fw-head); cursor: pointer; }
.kc-send:disabled { background: #8a8f98; cursor: default; }
.kc-err { margin: .3rem .4rem 0; font-size: var(--fs-body); }
.kc-err:empty { display: none; }
.kc-privacy { display: block; text-align: center; font-size: var(--fs-body); color: #4a4f8a; padding: .55rem 0 .7rem; min-height: 1.6rem; }
.kc-past { display: grid; gap: .1rem; padding-top: .6rem; }
.kc-past-h { font-size: var(--fs-section); margin-bottom: .4rem; }
.kc-past .btn { justify-self: start; margin-top: .8rem; }
.kc-conv { display: grid; gap: .15rem; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); padding: .7rem .2rem; font: inherit; color: var(--ink); cursor: pointer; }
.kc-conv:hover .kc-conv-t { color: var(--primary); }
.kc-conv.unread .kc-conv-t { font-weight: var(--fw-head); }
.kc-bubble { position: fixed; right: 20px; bottom: 20px; z-index: 75; width: 60px; height: 60px; padding: 0; border: 0; border-radius: 50%; background: none; cursor: pointer; box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.kc-bubble .kira-face { width: 60px; height: 60px; }
:root[data-theme="dark"] .kc-icon { color: var(--muted); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .kc-icon { color: var(--muted); } }
@media (max-width: 520px) { .kc-panel { right: 0; bottom: 0; width: 100vw; height: 100dvh; border-radius: 0; } }
@media (prefers-reduced-motion: reduce) { .kc-panel { animation: none; } }

/* Temporary passwords (v0.10.133): Copy beside Generate. */
.pw-btns { gap: .4rem; }
.auth .pw-checklist { margin-bottom: .7rem; }

/* My day (v0.10.134): the hello as in monday.com, and the setup card as one slim row. */
.md-hello { align-items: flex-end; margin-bottom: 1.2rem; }
.md-hello .md-date { margin: 0 0 .2rem; color: var(--muted); font-size: var(--fs-body); }
.md-hello h1, .page-head.md-hello h1 { font-size: var(--fs-title); font-weight: var(--fw-regular); letter-spacing: 0; line-height: 1.25; } /* v0.10.135: HubSpot-sized, regular weight */
.su-slim { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; background: #f4f2ff; border: 1px solid #e3defd; border-radius: 12px; padding: .55rem .7rem .55rem 1rem; margin-bottom: 1rem; color: #1c2434; }
.su-slim-sum { display: flex; align-items: center; gap: .8rem; color: inherit; text-decoration: none; flex: none; }
.su-slim-sum:hover b { text-decoration: underline; }
.su-slim-prog { display: flex; align-items: center; gap: .45rem; }
.su-slim .su-bar { width: 110px; height: 7px; }
.su-slim-n { font-size: var(--fs-body); font-weight: var(--fw-head); color: #5b6170; }
.su-slim-next { display: flex; align-items: center; gap: .5rem; flex: 1 1 200px; min-width: 0; border-left: 1px solid #dcd8f0; padding-left: 1rem; }
.su-slim-next .gs-task-ico { padding: 0; display: flex; }
.su-slim-t { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.su-slim-btns { display: flex; align-items: center; gap: .35rem; margin-left: auto; }
.su-slim-x { background: none; border: 0; font-size: var(--fs-title); line-height: 1; color: #5b6170; cursor: pointer; padding: 0 .35rem; border-radius: 6px; }
.su-slim-x:hover { background: rgba(0, 0, 0, .06); }
:root[data-theme="dark"] .su-slim { background: #221d3d; border-color: #2f2856; color: var(--ink); }
:root[data-theme="dark"] .su-slim-next { border-color: #2f2856; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .su-slim { background: #221d3d; border-color: #2f2856; color: var(--ink); } :root[data-theme="auto"] .su-slim-next { border-color: #2f2856; } }
@media (max-width: 720px) { .md-hello h1, .page-head.md-hello h1 { font-size: var(--fs-section); } .su-slim-next { border-left: 0; padding-left: 0; flex-basis: 100%; order: 3; } .su-slim-guide { display: none; } }

/* Your companies in the account menu (v0.10.136). */
.org-switch { display: grid; gap: .3rem; }
.org-list { display: grid; gap: .15rem; margin-top: .2rem; }
.org-item { display: flex; align-items: center; gap: .6rem; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: .45rem .5rem; font: inherit; color: var(--ink); cursor: pointer; }
.org-item:hover { background: var(--surface-2); }
.org-item.on { cursor: default; background: var(--surface-2); }
.org-item-t { flex: 1; min-width: 0; display: grid; }
.org-item-t b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.org-logo.small { width: 28px; height: 28px; font-size: var(--fs-small); flex: none; }
.org-tick { color: var(--primary); font-weight: var(--fw-head); }

/* Email sending (v0.10.137). */
.mail-presets { align-items: center; gap: .4rem; flex-wrap: wrap; }
.mail-more > summary { cursor: pointer; font-weight: var(--fw-head); margin: .3rem 0 .6rem; }

/* v0.10.138: Copy inside the password box, beside the eye. */
.pw-wrap.has-copy input { padding-right: 4.9rem; }
.pw-wrap .pw-toggle.pw-copy { position: absolute; right: 2.6rem; }
/* The More panel slides out from the side menu (from the bottom on a phone). */
@keyframes more-slide { from { transform: translateX(-14px); clip-path: inset(0 100% 0 0 round 16px); } to { transform: none; clip-path: inset(0 0 0 0 round 16px); } }
@keyframes more-rise { from { transform: translateY(18px); } to { transform: none; } }
@media (min-width: 821px) { .more-sheet:not(.hidden) { animation: more-slide .22s cubic-bezier(.2, .8, .2, 1); } }
@media (max-width: 820px) { .more-sheet:not(.hidden) { animation: more-rise .2s ease-out; } }
@media (prefers-reduced-motion: reduce) { .more-sheet:not(.hidden) { animation: none; } }

/* v0.10.139: the Calendar panel slides out like More, and both slide back in when they close. */
@keyframes more-slide-out { from { transform: none; clip-path: inset(0 0 0 0 round 16px); } to { transform: translateX(-14px); clip-path: inset(0 100% 0 0 round 16px); } }
@keyframes more-sink { from { transform: none; } to { transform: translateY(calc(100% + 120px)); } }
@media (min-width: 821px) {
  .nav-group.open .nav-sub { animation: more-slide .22s cubic-bezier(.2, .8, .2, 1); }
  .more-sheet.sliding-out:not(.hidden), .nav-group.open .nav-sub.sliding-out { animation: more-slide-out .18s cubic-bezier(.4, 0, 1, 1) forwards; pointer-events: none; }
}
@media (max-width: 820px) { .more-sheet.sliding-out:not(.hidden) { animation: more-sink .2s ease-in forwards; pointer-events: none; } }
@media (prefers-reduced-motion: reduce) { .nav-group.open .nav-sub, .more-sheet.sliding-out:not(.hidden), .nav-group.open .nav-sub.sliding-out { animation: none; } }

/* Your company's address (v0.10.141). */
.addr-row { align-items: center; gap: .3rem; flex-wrap: wrap; }
.addr-row .addr-slug { max-width: 240px; }

/* How you sell (v0.10.144). */
.sell-opts { display: grid; gap: .5rem; margin: .4rem 0 .9rem; }
.sell-opt { display: flex; align-items: flex-start; gap: .6rem; }
.sell-opt > span { display: grid; gap: .1rem; }

/* The Leads inbox (v0.10.145). */
.ib-tabs { margin-bottom: .8rem; flex-wrap: wrap; }
.seg-n { display: inline-block; margin-left: .35rem; min-width: 1.3rem; padding: 0 .35rem; border-radius: 999px; background: var(--surface-2); font-size: var(--fs-small); font-weight: var(--fw-head); text-align: center; }
.seg[aria-current="page"] .seg-n { background: rgba(255, 255, 255, .25); }
.ib-row { align-items: flex-start; }
.ib-check { margin-top: .3rem; flex: none; width: 18px; height: 18px; }
.ib-match { color: var(--info); display: flex; align-items: center; gap: .25rem; margin: .3rem 0 0; }
.ib-match .ico { width: 14px; height: 14px; }
.ib-tags { gap: .4rem; flex-wrap: wrap; }
.ib-temp { width: auto; min-width: 7.5rem; }
.ib-temp.t-hot { color: var(--danger); font-weight: var(--fw-head); } .ib-temp.t-warm { color: var(--warn); font-weight: var(--fw-head); } .ib-temp.t-cold { color: var(--info); font-weight: var(--fw-head); }
.ib-bulk { position: sticky; top: .5rem; z-index: 5; display: flex; align-items: center; flex-wrap: wrap; gap: .5rem; padding: .6rem .8rem; margin-bottom: .8rem; border-radius: 12px; background: var(--ink); color: var(--surface); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); }
.ib-bulk select { width: auto; }
.cv-to { gap: .4rem; }
/* Where leads come from (v0.10.146). */
.rate-bar { display: inline-block; width: 60px; height: 6px; border-radius: 999px; background: var(--surface-2); vertical-align: middle; overflow: hidden; }
.rate-bar > span { display: block; height: 100%; background: var(--primary); }

/* Booking link settings (v0.10.148). */
.book-set .copy-inline { display: inline-flex; align-items: center; gap: .4rem; flex-wrap: wrap; margin-top: .3rem; }
.book-set code { background: var(--surface-2); padding: .15rem .4rem; border-radius: 6px; word-break: break-all; }
.book-days { gap: .6rem; }

/* v0.10.149: the import's duplicate choice, progress bar and summary (in the spirit of Pipedrive's). */
.dup-q { margin: .9rem 0 .2rem; font-size: var(--fs-body); }
.dup-opts { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; margin-top: .6rem; }
.dup-opt { display: grid; grid-template-columns: auto auto 1fr; gap: .9rem; align-items: start; padding: 1rem 1.1rem; cursor: pointer; border: 1px solid transparent; }
.dup-opt + .dup-opt { border-left-color: var(--line); }
.dup-opt.on { background: color-mix(in srgb, #2f7bd9 9%, var(--surface)); border-color: #2f7bd9; }
.dup-opt input { margin-top: .25rem; }
.dup-opt p { margin: .25rem 0 0; }
.dup-art { width: 72px; height: 44px; fill: none; stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; }
.dup-g { stroke: #c3c8d1; } .dup-b { stroke: #2f7bd9; }
.dup-sub { margin: .7rem 0 0 .2rem; }
@media (max-width: 640px) { .dup-opts { grid-template-columns: 1fr; } .dup-opt + .dup-opt { border-left-color: transparent; border-top: 1px solid var(--line); } }
.imp-run, .imp-sum { margin-top: 1rem !important; background: color-mix(in srgb, #2f7bd9 8%, var(--surface)); border-radius: 8px; padding: 1rem 1.2rem; margin: 0 0 1rem; }
.imp-run-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }
.imp-kicker { font-size: var(--fs-small); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: .45rem; }
.imp-file { font-weight: var(--fw-head); font-size: var(--fs-section); margin: .15rem 0; }
.imp-spin { width: 13px; height: 13px; border-radius: 50%; border: 2px solid color-mix(in srgb, var(--muted) 35%, transparent); border-top-color: #1f9d6b; display: inline-block; animation: imp-spin .8s linear infinite; flex: none; }
@keyframes imp-spin { to { transform: rotate(360deg); } }
.imp-bar { height: 7px; border-radius: 99px; background: color-mix(in srgb, var(--muted) 25%, transparent); margin-top: .8rem; overflow: hidden; }
.imp-bar-fill { display: block; height: 100%; width: 1%; background: #1f9d6b; border-radius: 99px; transition: width .5s ease; }
.imp-bar.waiting .imp-bar-fill { width: 30%; animation: imp-wait 1.4s ease-in-out infinite; }
@keyframes imp-wait { from { transform: translateX(-100%); } to { transform: translateX(340%); } }
.imp-tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: .7rem; margin-top: .9rem; }
.imp-tile { background: var(--surface); border-radius: 8px; padding: .8rem .9rem; display: flex; justify-content: space-between; align-items: flex-start; gap: .5rem; }
.imp-num { font-size: var(--fs-title); font-weight: var(--fw-emph); line-height: 1.1; }
.imp-sign { color: var(--muted); font-size: var(--fs-body); margin-right: .3rem; vertical-align: .25rem; }
@media (max-width: 760px) { .imp-tiles { grid-template-columns: 1fr 1fr; } }
.imp-status { display: inline-flex; align-items: center; gap: .4rem; }
.imp-sum .icon-btn { background: none; border: 0; font-size: var(--fs-section); line-height: 1; cursor: pointer; color: var(--muted); padding: .2rem .4rem; }
@media (prefers-reduced-motion: reduce) { .imp-spin, .imp-bar.waiting .imp-bar-fill { animation: none; } }

/* v0.10.149: Save & next with nothing picked: still clickable, and it says why. */
.btn.primary.wait-pick { opacity: .55; }
.save-why { color: var(--bad, #c0392b); font-size: var(--fs-body); align-self: center; }
.need-pick .outcome-group .chips { animation: need-pick 1.4s ease; border-radius: 10px; }
@keyframes need-pick { 0%, 60% { box-shadow: 0 0 0 3px color-mix(in srgb, #e39b16 55%, transparent); } 100% { box-shadow: 0 0 0 3px transparent; } }

/* v0.10.149: the client's timeline, as monday.com's. */
.tl { list-style: none; margin: .4rem 0 0; padding: 0; position: relative; }
.tl::before { content: ""; position: absolute; left: 13px; top: .4rem; bottom: .4rem; width: 1px; background: var(--line); }
.tl-month { text-align: center; margin: .6rem 0 1rem; position: relative; }
.tl-month span { display: inline-block; background: var(--surface); border: 1px solid var(--line); border-radius: 4px; padding: .12rem .55rem; font-size: var(--fs-small); }
.tl-item { display: grid; grid-template-columns: 27px 1fr; gap: .8rem; margin: 0 0 1.4rem; position: relative; }
.tl-ico { width: 27px; height: 27px; border-radius: 6px; display: grid; place-items: center; color: #fff; background: #7c5cf0; position: relative; box-shadow: 0 0 0 4px var(--surface); }
.tl-ico svg { width: 15px; height: 15px; stroke: currentColor; }
.tl-item.k-call .tl-ico { background: #1f9d6b; }
.tl-item.k-email .tl-ico { background: #4a8fe7; }
.tl-item.k-meeting .tl-ico { background: #9b5de5; }
.tl-item.k-note .tl-ico { background: #e39b16; }
.tl-item.k-change .tl-ico { background: #6c6fd8; }
.tl-item.k-created .tl-ico { background: #13788a; }
.tl-head { display: flex; justify-content: space-between; gap: .6rem; font-size: var(--fs-body); color: var(--muted); margin: .25rem 0 .55rem; }
.tl-head time { white-space: nowrap; }
.tl-card { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: .85rem 1rem; }
.tl-who-row { display: flex; justify-content: space-between; align-items: center; gap: .6rem; flex-wrap: wrap; }
.tl-who { display: flex; align-items: center; gap: .55rem; }
.tl-who .avatar.tl-av { width: 28px; height: 28px; font-size: var(--fs-small); }
.tl-who .avatar.sys { background: #13788a; color: #fff; }
.tl-dur { display: inline-flex; align-items: center; gap: .1rem; font-size: var(--fs-body); color: var(--muted); }
.tl-dur svg { width: 14px; height: 14px; }
.tl-subject { font-weight: var(--fw-head); margin-top: .55rem; }
.tl-text { margin-top: .45rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.tl-text.clamp { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; -webkit-mask-image: linear-gradient(#000 55%, transparent); mask-image: linear-gradient(#000 55%, transparent); }
.tl-more { background: none; border: 0; padding: .35rem 0 0; color: #13788a; cursor: pointer; display: inline-flex; align-items: center; gap: .2rem; font: inherit; font-size: var(--fs-body); }
.tl-more svg { width: 14px; height: 14px; transition: transform .2s; }
.tl-more.open svg { transform: rotate(180deg); }
.tl-stage { display: flex; align-items: center; gap: .5rem; margin-top: .55rem; flex-wrap: wrap; }
.tl-pill { border-radius: 99px; padding: .15rem .65rem; background: var(--surface-2); font-size: var(--fs-body); }
.tl-pill.on { background: color-mix(in srgb, #1f9d6b 16%, var(--surface)); color: #146c4a; }
.tl-arrow { color: var(--muted); }

/* v0.10.150: where a client buys (head office and buying portal). */
.ho-panel { border: 1px solid var(--line); border-radius: 10px; padding: .8rem .9rem; margin: .4rem 0 .8rem; background: var(--surface-2); }
.ho-matches { margin-top: .35rem; }
.ho-matches .chip svg { width: 14px; height: 14px; vertical-align: -2px; }
.details-card > .btn.ghost { margin-top: .5rem; }
.ho-group { list-style: none; padding: 0; margin: 0; }
.ho-group li { padding: .4rem 0; border-top: 1px solid var(--line); }
.ho-group li:first-child { border-top: 0; }

/* v0.10.151: the Bin. */
.bin-bar { align-items: center; gap: .5rem; margin: .8rem 0; flex-wrap: wrap; }
.bin-table td { vertical-align: middle; }
.bad-text { color: var(--bad, #c0392b); }
.merge-pick .check { padding: .35rem 0; }

/* v0.10.152: the phone's More panel has a title and a close button. */
.more-phone-head { display: flex; align-items: center; justify-content: space-between; position: sticky; top: -.4rem; z-index: 2; background: var(--surface); padding: .5rem .5rem .4rem 1rem; margin: -.4rem -.4rem .2rem; border-radius: 20px 20px 0 0; }
.more-phone-head b { font-size: var(--fs-body); }
.more-close { width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--surface-2); color: var(--ink); font-size: var(--fs-title); line-height: 1; cursor: pointer; display: grid; place-items: center; }
/* v0.10.152: the calendar sync banner on a phone: picture and words side by side, the button underneath. */
@media (max-width: 720px) {
  .sync-banner { gap: .8rem; align-items: flex-start; }
  .sync-text { flex: 1 1 calc(100% - 64px - .8rem); }
  .sync-text h2 { font-size: var(--fs-body); }
  .sync-text p { font-size: var(--fs-body); }
  .sync-banner > .btn { flex: 1 1 100%; }
  .sync-banner::after { width: 90px; }
}

/* v0.10.153: email templates. */
.tpl-list { list-style: none; padding: 0; margin: .6rem 0 0; }
.tpl-list li { display: flex; justify-content: space-between; align-items: center; gap: .8rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.tpl-list li:first-child { border-top: 0; }
.tpl-pick { align-items: flex-end; gap: .8rem; }
.tpl-pick .field { flex: 1; margin: 0; }
.tpl-pick a { padding-bottom: .7rem; white-space: nowrap; }

/* v0.10.154: signatures. */
.sig-frame { width: 100%; min-height: 120px; border: 1px solid var(--line); border-radius: 8px; background: #fff; display: block; margin-top: .5rem; }
.sig-edit { min-height: 140px; max-height: 420px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: .7rem .8rem; background: var(--surface); margin-top: .5rem; outline: none; }
.sig-edit:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 18%, transparent); }
.sig-edit img { max-width: 100%; height: auto; }
.sig-edit:empty::before { content: 'Paste your signature here'; color: var(--muted); }
.sig-tools { gap: .5rem; }
.sig-badges { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .3rem; }
.sig-badges img { max-height: 48px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; padding: 3px; background: #fff; }
.sig-own { margin: .9rem 0 .7rem; }

/* v0.10.155: the signature box is a frame showing the real look. */
iframe.sig-edit { display: block; width: 100%; height: 280px; min-height: 0; max-height: none; padding: 0; background: #fff; overflow: auto; }

/* v0.10.156: team status. */
.team-status .badge { margin-bottom: .2rem; }
.team-status .btn { margin-top: .3rem; }

/* v0.10.157: the Queue's Due now and Overdue tiles are buttons. */
.tile.tile-btn { cursor: pointer; font: inherit; text-align: left; border: 1px solid transparent; }
.tile.tile-btn:hover { border-color: var(--line); }
.tile.tile-btn.on { border-color: var(--primary); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 25%, transparent); }

/* ---------- Typography tokens (v0.10.158): the roles, applied last ---------- */
body, button, input, select, textarea, .btn, .chip, table, th, td, .menu, .menu a, .menu button, dialog, .modal, .toast, [data-tip]::after, .sidenav, .navlink, .more-sheet, .more-link {
  font-family: var(--font); }
body { font-size: var(--fs-body); line-height: var(--lh-body); font-weight: var(--fw-regular); }
button, input, select, textarea, .btn, .chip, table, td, .menu a, .menu button, .navlink, .more-link, .toast, dialog { font-size: var(--fs-body); }
h1, .page-head h1, dialog h1 { font-size: var(--fs-title); font-weight: var(--fw-head); line-height: 1.25; }
h2, .card h2, dialog h2, .modal h2 { font-size: var(--fs-section); font-weight: var(--fw-head); line-height: 1.3; }
h3 { font-size: var(--fs-body); font-weight: var(--fw-head); }
b, strong { font-weight: var(--fw-emph); }
.field > span, .field > .field-label, .field-label, label.field > span:first-child { font-size: var(--fs-label); font-weight: var(--fw-emph); }
.hint, .field .hint, .small, small, time, .badge, .nav-badge, .muted.small, .group-label, th, .tl-head, .imp-kicker, [data-tip]::after, .kbd, kbd { font-size: var(--fs-small); }
th { font-weight: var(--fw-emph); }

/* v0.10.158: Kira typing, beside her avatar, before the greeting. */
.kc-typing { display: inline-flex; align-items: center; gap: 4px; height: 20px; padding-top: .2rem; }
.kc-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--muted); opacity: .35; animation: kc-dot 1s infinite ease-in-out; }
.kc-typing span:nth-child(2) { animation-delay: .15s; }
.kc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes kc-dot { 0%, 80%, 100% { opacity: .35; transform: translateY(0); } 40% { opacity: 1; transform: translateY(-3px); } }
@media (prefers-reduced-motion: reduce) { .kc-typing span { animation: none; opacity: .7; } }

/* v0.10.159: New chat search. */
.newchat-list { display: grid; gap: .1rem; min-height: 3rem; }
.newchat-list .chat-thread { border-radius: 10px; }

/* ---------- Dropdowns slide in and out (v0.10.163) ---------- */
/* Lists of choices (Chrome and Edge draw these themselves; other browsers keep their own list, without the slide). */
@supports (appearance: base-select) {
  select::picker(select) { opacity: 0; transform: translateY(-6px);
    transition: opacity .16s ease, transform .16s ease, display .16s allow-discrete, overlay .16s allow-discrete; }
  select:open::picker(select) { opacity: 1; transform: none; }
  @starting-style { select:open::picker(select) { opacity: 0; transform: translateY(-6px); } }
}
/* The app's own menus: profile, notifications, More, the chat switcher, Kira's menu, and the small "..." menus. */
.menu, .kc-menu, .pop-menu { transition: opacity .16s ease, transform .16s ease, display .16s allow-discrete; transform-origin: top; }
.menu.hidden, .kc-menu.hidden, .pop-menu.leaving { opacity: 0; transform: translateY(-6px); }
@starting-style { .menu:not(.hidden), .kc-menu:not(.hidden), .pop-menu { opacity: 0; transform: translateY(-6px); } }
.pop-menu.leaving { pointer-events: none; }
@media (prefers-reduced-motion: reduce) {
  select::picker(select), .menu, .kc-menu, .pop-menu { transition: none; }
}
/* The chat list's search (v0.10.163), slim as Teams'. */
.chat-find { display: flex; align-items: center; gap: .4rem; margin: .1rem .5rem .35rem; padding: 0 .6rem; height: 32px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-2); color: var(--muted); cursor: text; }
.chat-find:focus-within { border-color: var(--primary); background: var(--surface); }
.chat-find .ico { width: 16px; height: 16px; flex: none; }
.chat-find-in { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; padding: 0 !important; min-height: 0 !important; height: 30px; box-shadow: none !important; outline: none; font-size: var(--fs-body); color: var(--ink); }

/* Who is typing in chat (v0.10.164), as Teams: small, under the messages, takes no room when nobody is. */
.chat-typing { display: flex; align-items: center; gap: .45rem; min-height: 0; height: 0; overflow: hidden; padding: 0 .75rem; font-size: var(--fs-small); color: var(--muted); transition: height .15s ease; }
.chat-typing.on { height: 22px; }
.chat-typing .kc-typing { height: 14px; padding-top: 0; }
.chat-typing .kc-typing span { width: 5px; height: 5px; }
@media (prefers-reduced-motion: reduce) { .chat-typing { transition: none; } }

/* Kira's preset answers (v0.10.165) */
.kc-msg-wide { max-width: 100%; flex: 1; }
.kc-answers { display: grid; gap: .5rem; margin: .45rem 0 .55rem; }
.kc-answer { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .6rem .75rem; }
.kc-answer b { display: block; margin-bottom: .2rem; }
.kc-answer p { margin: 0 0 .3rem; }
.kc-answer .link-btn { padding: 0; }
.kc-pick { display: flex; flex-wrap: wrap; gap: .4rem; }

/* ---------- Email campaigns (v0.10.167) ---------- */
/* The introduction: one scrolling page, as in the reference. */
.cmp-intro { max-width: 977px; margin: 0 auto; padding: 14px 16px 48px; text-align: center; }
.cmp-new { display: inline-block; background: #2563eb; color: #fff; font-size: var(--fs-small); font-weight: var(--fw-head); line-height: 1; padding: 6px 9px; border-radius: 999px; letter-spacing: .02em; }
.cmp-hero h1 { font-size: 32px; line-height: 1.25; font-weight: var(--fw-regular); margin: 14px 0 18px; }
.cmp-hero h1 b { font-weight: var(--fw-head); }
.cmp-sub { margin: 0 0 18px; font-size: 16px; line-height: 24px; color: var(--ink); }
.cmp-cta { min-width: 164px; justify-content: center; }
.cmp-note { margin: 12px 0 0; font-size: var(--fs-small); color: var(--muted); }
.cmp-cols { display: grid; grid-template-columns: repeat(3, 240px); justify-content: center; gap: 120px; margin-top: 76px; }
.cmp-col .cmp-art svg { display: block; width: 240px; height: 140px; }
.cmp-col h2 { font-size: 20px; font-weight: var(--fw-regular); line-height: 1.6; margin: 22px 0 10px; }
.cmp-col p { margin: 0; font-size: var(--fs-body); line-height: 21px; }
.cmp-col p b { font-weight: var(--fw-head); }
.cmp-divider { border: 0; border-top: 1px solid var(--line); max-width: 945px; margin: 80px auto 80px; }
.cmp-more { display: flex; align-items: flex-start; justify-content: center; gap: 48px; text-align: left; }
.cmp-shot { flex: none; width: 320px; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.cmp-shot svg { display: block; width: 320px; height: 180px; }
.cmp-more-text h2 { font-size: 20px; font-weight: var(--fw-regular); margin: 0 0 30px; }
.cmp-checks { list-style: none; margin: 0 0 28px; padding: 0; display: grid; gap: 12px; }
.cmp-checks li { position: relative; padding-left: 34px; font-size: var(--fs-body); line-height: 20px; }
.cmp-checks li::before { content: ''; position: absolute; left: 4px; top: 2px; width: 13px; height: 7px; border-left: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(-45deg); }
@media (max-width: 1100px) { .cmp-cols { grid-template-columns: repeat(3, minmax(0, 240px)); gap: 40px; } }
@media (max-width: 760px) {
  .cmp-hero h1 { font-size: 26px; }
  .cmp-cols { grid-template-columns: minmax(0, 240px); gap: 40px; margin-top: 48px; }
  .cmp-divider { margin: 48px auto; }
  .cmp-more { flex-direction: column; align-items: center; gap: 28px; }
  .cmp-shot { width: 100%; max-width: 320px; } .cmp-shot svg { width: 100%; height: auto; }
}
/* Setup and the workspace (built from our own parts until the reference screens arrive). */
.cmp-setup { display: grid; gap: 1rem; max-width: 760px; }
.cmp-steps { display: flex; gap: 1.25rem; list-style: none; padding: 0; margin: 0; flex-wrap: wrap; }
.cmp-steps li { display: flex; align-items: center; gap: .5rem; color: var(--muted); }
.cmp-steps li span { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; border: 1px solid var(--line); font-size: var(--fs-small); }
.cmp-steps li.on { color: var(--ink); font-weight: var(--fw-emph); } .cmp-steps li.on span { background: var(--primary); color: #fff; border-color: var(--primary); }
.cmp-steps li.done span { background: var(--primary-soft); border-color: transparent; }
.cmp-sender { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .6rem; }
.cmp-sender .mono, .cmp-service .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-small); word-break: break-all; }
.cmp-count { margin: 0; }
.cmp-tags, .cmp-add { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; }
.cmp-tabs { display: inline-flex; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; width: max-content; }
.cmp-tab { border: 0; background: var(--surface); padding: .5rem 1rem; cursor: pointer; font: inherit; color: var(--ink); }
.cmp-tab[aria-pressed=true] { background: var(--sel); color: var(--sel-ink); font-weight: var(--fw-emph); }
.cmp-blocks { display: grid; gap: .6rem; }
.cmp-block { border: 1px solid var(--line); border-radius: 10px; padding: .6rem .75rem; display: grid; gap: .45rem; background: var(--surface); }
.cmp-block.dragging { opacity: .5; } .cmp-block.over { border-color: var(--primary); }
.cmp-block-head { display: flex; align-items: center; gap: .5rem; }
.cmp-grip { cursor: grab; color: var(--muted); letter-spacing: -2px; }
.cmp-actions { position: sticky; bottom: 0; display: flex; flex-wrap: wrap; gap: .5rem; padding: .75rem 0; background: var(--bg); border-top: 1px solid var(--line); }
.cmp-frame { width: 100%; height: 520px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.cmp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: .75rem; }
.cmp-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .15rem; }
.cmp-tile b { font-size: var(--fs-title); font-weight: var(--fw-head); }
.cmp-review { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; } .cmp-review dt { color: var(--muted); } .cmp-review dd { margin: 0; }
.mkt-line { display: flex; align-items: center; gap: .4rem; margin-top: .25rem; }
.mkt-pick { min-height: 32px !important; padding: .2rem .6rem !important; width: auto; }

/* v0.10.169: a word in a column of figures (such as "No value" on Deals) is in the normal font, not the figures' one. */
.mono > .muted { font-family: var(--font); }

/* v0.10.169: Add a client warns, while typing, of clients that may be the same one. */
.dup-warn { margin: .6rem 0 0; padding: .65rem .8rem; border: 1px solid #f0c36d; border-radius: 10px; background: #fff8e6; color: #5c4400; font-size: var(--fs-body); }
.dup-warn ul { margin: .35rem 0 0; padding-left: 1.1rem; }
.dup-warn li + li { margin-top: .2rem; }
.dup-warn a { color: inherit; font-weight: var(--fw-head); }
[data-theme="dark"] .dup-warn { background: #3a2f12; border-color: #8a6a1f; color: #f6e2b0; }

/* ---------- Campaigns workspace (v0.10.168), matched to the reference screens ---------- */
main:has(> .cmp-shell) { max-width: none; padding: 0; }
.cmp-shell { display: grid; grid-template-columns: 240px minmax(0, 1fr); min-height: calc(100dvh - 60px); background: var(--surface); }
.cmp-shell.side-shut { grid-template-columns: 0 minmax(0, 1fr); }
.cmp-shell.side-shut .cmp-side { visibility: hidden; }
.cmp-side { display: flex; flex-direction: column; justify-content: space-between; background: var(--surface-2); border-right: 1px solid var(--line); overflow: hidden; position: sticky; top: 0; max-height: calc(100dvh - 60px); }
.cmp-nav { padding: 8px; display: grid; gap: 2px; }
.cmp-nav-item { display: flex; align-items: center; gap: 12px; height: 39px; padding: 0 12px; border-radius: 6px; color: var(--ink); text-decoration: none; font-size: var(--fs-body); }
.cmp-nav-item:hover { background: var(--line); }
.cmp-nav-item.on { background: #e3ecfb; color: #1b5fc5; font-weight: var(--fw-emph); }
.cmp-nav-ico svg { display: block; width: 20px; height: 20px; }
.cmp-nav-gap { height: 30px; }
.cmp-count-badge { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #2f6fd8; color: #fff; font-size: 11px; font-weight: var(--fw-head); display: grid; place-items: center; }
.cmp-usage { display: flex; gap: 10px; padding: 16px 14px; background: #eaf2fd; color: #1d2733; font-size: var(--fs-body); }
.cmp-usage b { display: block; margin-bottom: 4px; }
.cmp-usage p { margin: 0; line-height: 20px; }
.cmp-usage a { color: #1b5fc5; font-weight: var(--fw-emph); text-decoration: none; }
.cmp-usage-ico svg { width: 18px; height: 18px; color: #1b5fc5; margin-top: 1px; }
.cmp-main { min-width: 0; display: flex; flex-direction: column; }
.cmp-head { display: flex; align-items: center; gap: 12px; height: 60px; padding: 0 16px; border-bottom: 1px solid var(--line); }
.cmp-toggle { width: 34px; height: 34px; border-radius: 50%; border: 0; background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.cmp-toggle:hover, .cmp-toggle:focus-visible { background: var(--surface-2); box-shadow: 0 0 0 1.5px var(--ink); }
.cmp-toggle svg { width: 20px; height: 20px; }
.side-shut .cmp-toggle svg { transform: scaleX(-1); }
.cmp-crumb { font-size: 16px; } .cmp-crumb a { color: var(--muted); text-decoration: none; font-weight: var(--fw-emph); } .cmp-crumb b { font-weight: var(--fw-head); }
.cmp-toolbar { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.cmp-body { padding: 24px 16px 40px; min-width: 0; }
.cmp-add-btn { gap: 8px; min-height: 32px; padding: 0 16px; }
.cmp-add-btn > span { font-size: 18px; line-height: 1; font-weight: var(--fw-regular); }
.cmp-tag-ico svg { width: 16px; height: 16px; display: block; }
.cmp-states-wrap { position: relative; }
.cmp-states { gap: 8px; min-height: 32px; font-weight: var(--fw-emph); }
.cmp-states-menu { right: 0; left: auto; top: calc(100% + 6px); width: 214px; padding: 8px 0; }
.cmp-state-item { display: flex; align-items: center; justify-content: space-between; width: 100%; border: 0; background: none; padding: 8px 16px; cursor: pointer; font: inherit; color: var(--ink); text-align: left; }
.cmp-state-item:hover { background: var(--surface-2); }
.cmp-state-item.all { font-weight: var(--fw-emph); padding: 10px 16px; }
.cmp-tick { color: #1b5fc5; }
.cmp-sep { height: 1px; background: var(--line); margin: 6px 0; }
.cmp-pill { display: inline-block; padding: 1px 7px; border-radius: 999px; border: 1px solid; font-size: 10px; font-weight: var(--fw-head); letter-spacing: .04em; line-height: 16px; }
.cmp-pill.draft { color: #3b4350; border-color: #c4c9d0; background: #fff; }
.cmp-pill.scheduled, .cmp-pill.sending { color: #1b5fc5; border-color: #8db3ec; background: #edf4fd; }
.cmp-pill.paused, .cmp-pill.cancelled { color: #8a5a00; border-color: #e5b94c; background: #fdf6e3; }
.cmp-pill.sent { color: #1f7a3a; border-color: #8fd0a2; background: #edf8f0; }
.cmp-pill.blocked { color: #b42318; border-color: #ef9a92; background: #fdf0ef; }
/* The checklist */
.cmp-ck { max-width: 1050px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; padding: 16px 16px 8px; background: var(--surface); }
.cmp-ck h2 { font-size: 22px; font-weight: var(--fw-regular); margin: 6px 0 10px; }
.cmp-ck-sub { margin: 0 0 22px; }
.cmp-ck-item { display: flex; gap: 14px; align-items: flex-start; border-top: 1px solid var(--line); padding: 18px 0 22px; }
.cmp-ck-ico svg { width: 40px; height: 40px; display: block; }
.cmp-ck-text { flex: 1; min-width: 0; }
.cmp-ck-title { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cmp-ck-title b { font-size: 16px; font-weight: var(--fw-head); }
.cmp-info-ico svg { width: 17px; height: 17px; color: var(--muted); display: block; }
.cmp-ck-text p { margin: 10px 0 0; line-height: 21px; }
.cmp-learn { display: inline-block; margin-top: 14px; color: #1b5fc5; font-weight: var(--fw-emph); text-decoration: none; }
.cmp-ck-item > .btn { flex: none; }
.cmp-ck-item.done .cmp-ck-ico { opacity: .55; }
.cmp-list { max-width: 1050px; margin: 24px auto 0; }
.cmp-none { text-align: center; margin-top: 40px; }
/* Empty states */
.cmp-empty { text-align: center; padding: 120px 16px 40px; }
.cmp-empty.small { padding: 50px 16px 20px; }
.cmp-empty-art svg { display: block; margin: 0 auto; width: 160px; height: auto; }
.cmp-empty-art.wide svg { width: 400px; max-width: 100%; }
.cmp-empty-art.shield svg { width: 220px; }
.cmp-empty h2 { font-size: 26px; font-weight: var(--fw-regular); margin: 34px 0 12px; }
.cmp-empty h3 { font-size: 16px; font-weight: var(--fw-head); margin: 18px 0 10px; }
.cmp-empty p { margin: 0; color: var(--muted); font-size: 16px; line-height: 24px; }
.cmp-empty.small p { font-size: var(--fs-small); line-height: 18px; }
/* Settings */
.cmp-body:has(.cmp-set-head), .cmp-body:has(.cmp-al-head) { padding: 0 0 40px; }
.cmp-set-head { padding: 22px 24px 0; border-bottom: 1px solid var(--line); }
.cmp-set-head h1, .cmp-al-head h1 { font-size: 26px; font-weight: var(--fw-regular); margin: 0 0 18px; }
.cmp-tabs-line { display: flex; gap: 0; }
.cmp-tabs-line a { padding: 8px 12px 10px; color: var(--ink); text-decoration: none; border-bottom: 2px solid transparent; }
.cmp-tabs-line a.on { border-bottom-color: var(--ink); font-weight: var(--fw-emph); }
.cmp-set-pane { max-width: 1040px; margin: 0 auto; padding: 24px 24px 0; }
.cmp-pane-head { display: flex; align-items: center; justify-content: space-between; }
.cmp-pane-head h2 { font-size: 22px; font-weight: var(--fw-regular); margin: 0; }
.cmp-senders { display: grid; gap: 12px; margin-top: 20px; }
.cmp-sender { border: 1px solid var(--line); border-radius: 12px; padding: .8rem 1rem; display: grid; gap: .6rem; }
.cmp-sender .mono, .cmp-service .mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: var(--fs-small); word-break: break-all; }
.cmp-unsub { max-width: 840px; margin: 0 auto; }
.cmp-unsub h2 { font-size: 22px; font-weight: var(--fw-regular); margin: 0; }
.cmp-unsub h3 { font-size: var(--fs-body); font-weight: var(--fw-emph); margin: 52px auto 10px; max-width: 640px; }
.cmp-unsub-box { max-width: 640px; margin: 0 auto; border: 1px solid var(--line); border-radius: 6px; background: #fff; color: #333; }
.cmp-unsub-box.foot { text-align: center; padding: 26px 16px; font-size: 12px; }
.cmp-foot-co { letter-spacing: .02em; } .cmp-foot-addr { color: #888; margin: 6px 0 18px; }
.cmp-link { color: #1b5fc5; }
.cmp-browser { display: flex; align-items: center; gap: 5px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.cmp-browser span { width: 6px; height: 6px; border-radius: 50%; background: #d5d9de; }
.cmp-browser i { flex: 1; height: 9px; border-radius: 5px; background: #e6e9ec; margin-left: 10px; }
.cmp-unsub-page { text-align: center; padding: 28px 40px 30px; }
.cmp-unsub-ico svg { width: 64px; height: 64px; display: block; margin: 0 auto; }
.cmp-unsub-page h4 { font-size: 24px; margin: 22px 0 18px; color: #222; }
.cmp-unsub-page p { line-height: 25px; color: #555; margin: 0 0 22px; }
.cmp-fake-btn { pointer-events: none; }
/* Alerts and tips */
.cmp-al-head { padding: 22px 24px 18px; border-bottom: 1px solid var(--line); }
.cmp-al-head p { margin: 0; }
.cmp-alerts { max-width: 1048px; margin: 16px auto 0; display: grid; gap: 16px; padding: 0 16px; }
.cmp-alert { display: flex; align-items: center; gap: 22px; border: 1px solid var(--line); border-radius: 6px; padding: 22px; color: var(--ink); text-decoration: none; background: var(--surface); }
.cmp-alert:hover { border-color: var(--muted); }
.cmp-al-ico { flex: none; align-self: flex-start; width: 28px; height: 28px; border-radius: 50%; background: #f5c400; color: #3a2e00; font: 700 15px/28px Georgia, serif; text-align: center; }
.cmp-al-text { flex: 1; min-width: 0; }
.cmp-al-title { display: flex; align-items: center; gap: 8px; } .cmp-al-title b { font-size: 16px; font-weight: var(--fw-head); }
.cmp-dot { width: 6px; height: 6px; border-radius: 50%; background: #2f6fd8; flex: none; }
.cmp-al-text p { margin: 14px 0 12px; line-height: 21px; }
.cmp-al-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); }
.cmp-al-cat { border: 1px solid var(--ink); color: var(--ink); border-radius: 6px; padding: 0 5px; font-size: 10px; font-weight: var(--fw-head); letter-spacing: .03em; line-height: 15px; }
.cmp-al-chev { font-size: 22px; color: var(--ink); }
.cmp-alert.read { opacity: .8; }
/* The two dialogs: dropped in over a dimmed page */
dialog.cmp-dialog { border: 0; border-radius: 8px; padding: 0; background: var(--surface); color: var(--ink); box-shadow: 0 18px 50px rgba(0, 0, 0, .3); max-height: calc(100dvh - 2rem); overflow: auto; }
dialog.cmp-dialog::backdrop { background: rgba(0, 0, 0, .45); }
dialog.cmp-dialog[open] { animation: cmp-drop .24s ease-out; }
dialog.cmp-dialog[open]::backdrop { animation: cmp-fade .24s ease-out; }
@keyframes cmp-drop { from { transform: translateY(-36px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes cmp-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { dialog.cmp-dialog[open], dialog.cmp-dialog[open]::backdrop { animation: none; } }
.cmp-activate { width: min(632px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.cmp-dlg-head { display: flex; align-items: center; justify-content: space-between; padding: 0 16px; height: 38px; border-bottom: 1px solid var(--line); }
.cmp-dlg-head b { font-size: 16px; font-weight: var(--fw-head); }
.cmp-x { border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--ink); padding: 0 2px; }
.cmp-dlg-body { padding: 26px 32px 32px; }
.cmp-act-prod { display: flex; gap: 16px; justify-content: center; padding: 0 0 18px 60px; border-bottom: 1px solid var(--line); }
.cmp-act-icon svg { width: 46px; height: 46px; display: block; }
.cmp-act-prod b { font-size: 16px; font-weight: var(--fw-head); display: block; margin: 8px 0 12px; }
.cmp-act-prod p { margin: 0; color: var(--muted); line-height: 24px; max-width: 320px; }
.cmp-act-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 9px 16px; margin: 0; padding: 18px 0 24px; border-bottom: 1px solid var(--line); }
.cmp-act-rows dt { text-align: right; color: var(--muted); } .cmp-act-rows dd { margin: 0; }
.cmp-act-rows .gap { height: 12px; }
.cmp-notset { color: #8a5a00; font-style: italic; }
.cmp-policy { display: flex; gap: 14px; margin-top: 32px; border: 1px solid #6b9be8; background: #f2f7fe; color: #1d2733; border-radius: 4px; padding: 16px 16px 14px; }
.cmp-policy b { display: block; margin-bottom: 6px; font-weight: var(--fw-head); }
.cmp-policy p { margin: 0; line-height: 21px; } .cmp-policy p b { display: inline; margin: 0; }
.cmp-i { flex: none; width: 16px; height: 16px; border: 1.5px solid #1b5fc5; color: #1b5fc5; border-radius: 50%; font: 700 10px/13px Georgia, serif; text-align: center; margin-top: 2px; }
.cmp-dlg-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 16px; border-top: 1px solid var(--line); }
.btn.loading { opacity: .75; cursor: progress; }
.cmp-welcome { width: min(760px, calc(100vw - 1rem)); }
.cmp-w { padding: 40px 40px 38px; }
.cmp-w-hero { position: relative; }
.cmp-w-art svg { display: block; width: 100%; height: auto; }
.cmp-w-text { position: absolute; left: 7.4%; top: 16%; color: #5d2d9f; }
.cmp-w-mega svg { width: 72px; height: 72px; display: block; transform: rotate(-12deg); }
.cmp-w-text h2 { font-size: 32px; font-weight: var(--fw-regular); line-height: 1.2; margin: 28px 0 22px; } .cmp-w-text h2 b { font-weight: var(--fw-head); }
.cmp-w-text p { font-size: 20px; line-height: 24px; margin: 0; max-width: 290px; }
.cmp-w-h { text-align: center; font-size: 22px; font-weight: var(--fw-regular); margin: 30px 0; }
.cmp-w-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; text-align: center; }
.cmp-w-ico svg { height: 44px; width: auto; display: block; margin: 0 auto 26px; }
.cmp-w-step b { display: block; font-weight: var(--fw-head); margin-bottom: 8px; }
.cmp-w-step p { margin: 0; line-height: 21px; }
.cmp-w-foot { text-align: center; margin-top: 30px; }
@media (max-width: 760px) {
  .cmp-shell { grid-template-columns: minmax(0, 1fr); }
  .cmp-side { position: fixed; left: 0; top: 60px; bottom: 64px; width: 240px; max-height: none; z-index: 40; box-shadow: 4px 0 20px rgba(0, 0, 0, .15); }
  .cmp-shell.side-shut { grid-template-columns: minmax(0, 1fr); }
  .cmp-ck-item { flex-wrap: wrap; } .cmp-ck-text { flex-basis: calc(100% - 54px); } .cmp-ck-item > .btn, .cmp-ck-item > .small { margin-left: 54px; }
  .cmp-w { padding: 16px; } .cmp-w-text { position: static; padding: 12px 0; } .cmp-w-steps { grid-template-columns: 1fr; }
  .cmp-act-prod { padding-left: 0; } .cmp-dlg-body { padding: 20px; }
  .cmp-empty { padding-top: 48px; }
}

/* v0.10.172: the devices you are signed in on (Account). */
.devices { list-style: none; margin: .4rem 0 .6rem; padding: 0; }
.device-row { gap: .75rem; padding: .6rem 0; border-top: 1px solid var(--line); }
.device-row:first-child { border-top: 0; }
.device-here { margin-left: .5rem; vertical-align: middle; }

/* ---------- Marketplace (v0.10.173) ---------- */
main:has(> .mk) { max-width: none; padding: 0 0 2rem; }
.mk { margin: 0; }
.mk-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 56px 16px 64px 80px; background: var(--surface-2); border-bottom: 1px solid var(--line); }
.mk-head h1 { font-size: 26px; font-weight: var(--fw-regular); margin: 0 0 12px; }
.mk-head p { margin: 0 0 26px; font-size: 16px; }
.mk-search { display: flex; gap: 8px; max-width: 548px; }
.mk-search input { flex: 1; min-height: 32px !important; border-radius: 4px !important; padding: 4px 10px !important; }
.mk-search .btn { min-height: 32px; }
.mk-h { font-size: 22px; font-weight: var(--fw-regular); margin: 34px 24px 16px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0 24px; }
.mk-card { text-align: left; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 10px 14px 16px; display: flex; flex-direction: column; gap: 10px; cursor: pointer; font: inherit; color: var(--ink); min-height: 138px; }
.mk-card:hover { border-color: var(--muted); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.mk-card-top { display: flex; align-items: center; gap: 12px; }
.mk-card-top b { font-size: var(--fs-body); font-weight: var(--fw-head); }
.mk-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 18px; flex: 1; }
.mk-card.soon { opacity: .78; }
.mk-icon { width: 40px; height: 40px; flex: none; display: block; }
.mk-img { border-radius: 23%; object-fit: cover; }
.mk-icon svg { width: 100%; height: 100%; display: block; }
.mk-letter { border-radius: 6px; color: #fff; display: grid; place-items: center; font-weight: var(--fw-head); font-size: 20px; }
.mk-icon.big { width: 80px; height: 80px; } .mk-letter.big { font-size: 38px; border-radius: 14px; }
.mk-goals { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; padding: 0 24px 40px; }
.mk-goal { display: flex; align-items: center; gap: 14px; text-align: left; border: 1px solid var(--line); border-radius: 4px; background: var(--surface); padding: 14px 16px; font: inherit; color: var(--ink); cursor: pointer; }
.mk-goal[aria-pressed=true] { border-color: var(--primary); background: var(--primary-soft); }
.mk-goal-ico svg { width: 34px; height: 34px; display: block; color: var(--muted); }
/* The app's details window */
.mk-modal { width: min(846px, calc(100vw - 1rem)); }
.mk-dlg { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.mk-dlg .cmp-dlg-head { height: 50px; }
.mk-dlg-body { padding: 8px 16px 16px; overflow: auto; flex: 1; }
.mk-app-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 12px; }
.mk-app-name { display: flex; align-items: center; gap: 8px; }
.mk-app-name h2 { font-size: 20px; font-weight: var(--fw-emph); margin: 0; }
.mk-app-head p { margin: 4px 0 6px; line-height: 21px; }
.mk-pill { display: inline-block; border: 1px solid #8fd0a2; color: #1f7a3a; background: #edf8f0; border-radius: 999px; font-size: 10px; font-weight: var(--fw-head); padding: 0 7px; line-height: 16px; letter-spacing: .03em; }
.mk-pill.soon { border-color: #c4c9d0; color: var(--muted); background: var(--surface-2); }
.mk-tabs { display: flex; border-bottom: 1px solid var(--line); margin: 6px 0 24px; }
.mk-tabs button { border: 0; background: none; font: inherit; color: var(--ink); padding: 10px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.mk-tabs button.on { color: #1b5fc5; border-bottom-color: #1b5fc5; }
.mk-carousel { display: flex; align-items: center; gap: 16px; justify-content: center; }
.mk-stage { width: min(672px, 100%); aspect-ratio: 16 / 9; border-radius: 4px; overflow: hidden; }
.mk-slide svg { display: block; width: 100%; height: 100%; }
.mk-arrow { border: 0; background: none; font-size: 30px; line-height: 1; color: var(--ink); cursor: pointer; padding: 6px; }
.mk-dots { display: flex; justify-content: center; gap: 10px; margin: 16px 0 26px; }
.mk-dot { width: 12px; height: 12px; border-radius: 50%; border: 1.5px solid #1b5fc5; background: none; padding: 0; cursor: pointer; }
.mk-dot.on { background: #1b5fc5; }
.mk-lead { text-align: center; font-size: 20px; line-height: 28px; color: var(--muted); max-width: 520px; margin: 0 auto 26px; }
.mk-pane p { line-height: 24px; }
.mk-pane hr { border: 0; border-top: 1px solid var(--line); margin: 0 0 24px; }
.mk-checks li::before { border-color: var(--ink); }
.mk-steps { line-height: 24px; padding-left: 1.3rem; display: grid; gap: 8px; }
.mk-res { line-height: 30px; }
.center { text-align: center; }
/* ---------- WhatsApp in Chat ---------- */
.wa-badge { display: inline-block; width: 18px; height: 18px; flex: none; }
.wa-badge svg { display: block; width: 100%; height: 100%; }
.chat-int-label { display: flex; align-items: center; gap: 10px; font-size: 11px; font-weight: var(--fw-emph); letter-spacing: .04em; color: var(--muted); margin: 14px .5rem 6px; }
.chat-int-label::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.wa-entry .wa-badge { width: 22px; height: 22px; }
.wa-side-head { display: flex; gap: 10px; align-items: center; padding: .4rem .5rem .6rem; }
.wa-side-head .wa-badge { width: 30px; height: 30px; }
.wa-back { text-decoration: none; color: var(--muted); font-weight: var(--fw-emph); }
.wa-side-link { display: block; margin: 0 .3rem .4rem; padding: .5rem .6rem; border-radius: 8px; text-decoration: none; color: var(--primary); font-weight: var(--fw-emph); }
.wa-side-link.active, .wa-side-link:hover { background: var(--primary-soft); }
.chat-section-label { font-size: 11px; font-weight: var(--fw-emph); letter-spacing: .04em; text-transform: uppercase; color: var(--muted); margin: 10px .5rem 4px; }
.wa-av { position: relative; width: 36px; height: 36px; border-radius: 50%; background: #d8f3e2; color: #0b6b3a; display: grid; place-items: center; font-weight: var(--fw-head); flex: none; }
.wa-av .wa-badge { position: absolute; right: -3px; bottom: -3px; width: 16px; height: 16px; background: var(--surface); border-radius: 50%; }
.wa-av.big { width: 42px; height: 42px; }
.wa-pane.wa-scroll { overflow: auto; }
.wa-landing, .wa-setup { max-width: 1000px; margin: 0 auto; }
.wa-hero { display: flex; gap: 24px; align-items: center; justify-content: space-between; padding: 64px 24px 56px; background: var(--surface-2); flex-wrap: wrap; }
.wa-hero-text { max-width: 420px; }
.wa-hero h1 { font-size: 26px; font-weight: var(--fw-regular); line-height: 38px; margin: 10px 0 18px; }
.wa-hero p { line-height: 21px; margin: 0 0 18px; }
.wa-hero-art svg { width: 360px; max-width: 100%; height: auto; display: block; }
.wa-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; padding: 40px 24px; }
.wa-feat-ico svg { width: 36px; height: 36px; display: block; margin-bottom: 18px; }
.wa-feat b { display: block; margin-bottom: 8px; }
.wa-feat p { margin: 0; font-size: 13px; }
.wa-start { background: #ece9fb; padding: 56px 24px 64px; color: #1d2733; }
.wa-kicker { font-size: 13px; font-weight: var(--fw-emph); letter-spacing: .04em; color: #4a3fd0; }
.wa-kicker.dark { color: #3b4350; font-size: 11px; }
.wa-start h2 { font-size: 26px; font-weight: var(--fw-regular); margin: 14px 0 16px; }
.wa-start > p { margin: 0 0 18px; }
.wa-req { border: 1px solid #8e86ef; border-radius: 4px; background: var(--surface); color: var(--ink); padding: 16px 16px 12px; margin: 0 0 18px; }
.wa-req-h { display: flex; align-items: center; gap: 10px; }
.wa-req-ico svg { width: 20px; height: 20px; display: block; }
.wa-req ul { margin: 8px 0 0 30px; padding-left: 14px; line-height: 21px; }
.wa-faq { padding: 48px 24px 40px; }
.wa-faq h2 { text-align: center; font-size: 22px; font-weight: var(--fw-regular); margin: 0 0 40px; }
.wa-faq-row { display: flex; gap: 40px; align-items: center; justify-content: center; flex-wrap: wrap; }
.wa-faq-list { flex: 0 1 460px; border: 1px solid var(--line); border-radius: 4px; }
.wa-q { border-top: 1px solid var(--line); } .wa-q:first-child { border-top: 0; }
.wa-q summary { padding: 14px 12px; font-weight: var(--fw-head); cursor: pointer; }
.wa-q p { margin: 0; padding: 0 12px 14px; line-height: 21px; }
.wa-faq-art svg { width: 340px; max-width: 100%; height: auto; display: block; }
.wa-setup { padding: 0 24px 32px; }
.wa-setup-intro { border-bottom: 1px solid var(--line); margin: 0 -24px; padding: 14px 24px; }
.wa-setup .wa-feats { padding: 36px 0 24px; }
.wa-learn { display: flex; gap: 32px; align-items: flex-start; justify-content: space-between; flex-wrap: wrap; }
.wa-learn h3, .wa-setup > h3 { font-size: 16px; font-weight: var(--fw-head); margin: 18px 0 12px; }
.wa-ticks li::before { border-color: #16a35f; }
.wa-ext { color: #1b5fc5; font-weight: var(--fw-emph); text-decoration: none; }
.wa-ext.muted { color: var(--muted); }
.wa-card { width: 320px; max-width: 100%; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--surface); }
.wa-card-art svg { display: block; width: 100%; height: auto; }
.wa-card-text { padding: 14px 16px 18px; } .wa-card-text p { margin: 6px 0 0; font-size: 15px; }
.wa-state { border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px; }
.wa-state-main { display: flex; gap: 12px; align-items: flex-start; }
.wa-state-main .wa-badge { width: 26px; height: 26px; }
.wa-state.connected { border-color: #8fd0a2; background: #edf8f0; color: #17201b; }
.wa-state.failed { border-color: #ef9a92; background: #fdf0ef; color: #17201b; }
.wa-state.connecting { border-color: #8db3ec; background: #edf4fd; color: #17201b; }
.wa-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wa-head { gap: .75rem; }
.wa-log { display: flex; flex-direction: column; gap: 10px; padding: 1rem .5rem; }
.wa-msg { max-width: 72%; display: flex; flex-direction: column; }
.wa-msg.in { align-self: flex-start; } .wa-msg.out { align-self: flex-end; align-items: flex-end; }
.wa-bubble { padding: .55rem .8rem; border-radius: 14px; background: var(--surface-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.wa-msg.out .wa-bubble { background: #d9fdd3; color: #111b21; }
.wa-msg.failed .wa-bubble { background: #fdecea; }
.wa-meta { font-size: var(--fs-small); color: var(--muted); margin-top: 3px; }
.wa-tick.read { color: #2f6fd8; } .wa-tick.failed { color: #b42318; font-weight: var(--fw-head); }
.wa-window { margin: .3rem 0; }
.btn.block.left { justify-content: flex-start; text-align: left; }
@media (max-width: 760px) {
  .mk-head { padding: 28px 16px; flex-direction: column; }
  .wa-feats { grid-template-columns: 1fr; } .wa-hero { padding: 32px 16px; }
  .mk-carousel .mk-arrow { display: none; }
}
.chat.wa-chat { grid-template-columns: var(--chat-list-w, 260px) minmax(0, 1fr); gap: .75rem; }
.wa-pane { min-height: 0; display: flex; flex-direction: column; }
.wa-pane.wa-scroll { display: block; }
@media (max-width: 760px) { .chat.wa-chat { display: block; } .chat.wa-chat .wa-side { display: none; } .chat.wa-chat:has(.wa-pane:empty) .wa-side { display: block; } }
.wa-learn > div:first-child { flex: 1 1 380px; }
/* v0.10.174: two-step sign-in. */
.two-step-setup .qr { display: flex; justify-content: center; padding: .5rem; background: #fff; border-radius: 12px; }
.two-step-setup .qr svg { width: 200px; height: 200px; }
.totp-key { font-family: ui-monospace, Consolas, monospace; word-break: break-all; }
.recovery-codes { font-family: ui-monospace, Consolas, monospace; font-size: 1.05rem; line-height: 1.7; padding: .8rem 1rem; background: var(--surface-2, #f4f5f7); border-radius: 10px; }

/* v0.10.175: the forecast against the goals. */
.goals-forecast h3 { margin: 1.1rem 0 .4rem; font-size: var(--fs-body); }
.goals-forecast-table .quarter-row td { border-top: 2px solid var(--line); font-weight: var(--fw-head); }

/* v0.10.176: why deals were lost and won, one under the other beside the conversion. */
.reasons-col { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.reasons-col > .card { margin: 0; }

/* v0.10.178: discount approval */
.disc-banner { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; justify-content: space-between; }
.disc-limit-card form { align-items: flex-end; gap: .8rem; }
.disc-limit-card .field { max-width: 12rem; margin: 0; }

/* v0.10.179: activity types */
.task-kind { width: auto; min-width: 10rem; }
.act-done table th.num, .act-done table td.num { text-align: right; }
.act-add { align-items: flex-end; gap: .8rem; margin: .8rem 0; }
.act-add .field { margin: 0; max-width: 18rem; }

/* v0.10.180: contracts */
.ctr-card .deal-fields { margin-top: .4rem; }
.ctr-notice-card form { align-items: flex-end; gap: .8rem; }
.ctr-notice-card .field { max-width: 12rem; margin: 0; }

/* ---------- Chat: others' photos and names, and the hover card (v0.10.182), as Teams ---------- */
.msg.with-av { display: flex; gap: .6rem; align-items: flex-start; }
.msg.with-av.cont { margin-top: -.35rem; }
.msg-main { min-width: 0; flex: 1; }
.msg-av, .msg-av-gap { flex: none; width: 32px; }
.msg-av { border: 0; background: none; padding: 0; cursor: pointer; margin-top: 1.1rem; border-radius: 50%; }
.msg-av .avatar { width: 32px; height: 32px; font-size: 12px; }
.msg-name { border: 0; background: none; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.msg-name:hover, .msg-name:focus-visible { color: var(--ink); text-decoration: underline; }
.hover-card { position: absolute; z-index: 95; width: 340px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; box-shadow: 0 14px 40px rgba(0, 0, 0, .22); overflow: hidden; animation: hc-in .14s ease-out; }
@keyframes hc-in { from { opacity: 0; transform: translateY(4px); } }
@media (prefers-reduced-motion: reduce) { .hover-card { animation: none; } }
.hc-top { display: flex; gap: 14px; align-items: flex-start; padding: 16px 16px 12px; border-bottom: 1px solid var(--line); }
.hc-top .pres-wrap.big .avatar.hc { width: 76px; height: 76px; font-size: 26px; }
.hc-top .pres-wrap.big .pres-dot { width: 18px; height: 18px; border-width: 3px; }
.hc-who { min-width: 0; flex: 1; }
.hc-name { display: block; font-size: 16px; font-weight: var(--fw-head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-tag { display: inline-block; margin-top: 4px; padding: 0 6px; border-radius: 4px; background: var(--surface-2); font-size: var(--fs-small); color: var(--muted); max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hc-acts { display: flex; gap: 6px; margin-top: 10px; }
.hc-act { width: 40px; height: 32px; display: grid; place-items: center; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; }
.hc-act:hover, .hc-act:focus-visible { border-color: var(--line); background: var(--surface-2); }
.hc-act .ico { width: 18px; height: 18px; }
.hc-status { display: flex; align-items: center; gap: 10px; margin: 12px 16px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; }
.hc-status .small { margin-left: auto; }
.hc-contact { padding: 4px 16px 14px; background: var(--surface-2); border-top: 1px solid var(--line); }
.hc-h { border: 0; background: none; padding: 10px 0 8px; font: inherit; font-weight: var(--fw-head); color: var(--ink); cursor: pointer; }
.hc-line { display: flex; align-items: center; gap: 12px; padding: 6px 0; color: var(--primary); text-decoration: none; overflow-wrap: anywhere; }
.hc-line .ico { width: 18px; height: 18px; color: var(--muted); flex: none; }
.hc-more { border: 0; background: none; padding: 8px 0 0; font: inherit; color: var(--primary); cursor: pointer; }
.hc-dots { font-size: 20px; line-height: 1; }

/* DNS help for the domain (v0.10.183) */
.dns-help { background: var(--primary-soft); border-radius: 10px; padding: .7rem .9rem; display: grid; gap: .5rem; }
.dns-help p { margin: 0; }

/* ---------- The campaign composer (v0.10.185), as Pipedrive's ---------- */
.cmp-body.cz-body { padding: 0 0 48px; }
.cz-bar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: 16px; padding: 14px 20px; background: var(--surface); border-bottom: 1px solid var(--line); }
.cz-title { flex: 1; min-width: 0; border: 0 !important; background: transparent !important; box-shadow: none !important; font-size: 26px !important; font-weight: var(--fw-regular); padding: 4px 2px !important; color: var(--ink); min-height: 0 !important; }
.cz-title::placeholder { color: #8a9099; }
.cz-title:focus { outline: none; border-bottom: 1px solid var(--line) !important; }
.cz-bar-acts { display: flex; align-items: center; gap: 8px; }
.cz { max-width: 1032px; margin: 0 auto; padding: 0 20px; }
.cz-sec { padding: 26px 0 28px; border-bottom: 1px solid var(--line); }
.cz-sec:last-child { border-bottom: 0; }
.cz-sec h2 { font-size: 22px; font-weight: var(--fw-regular); margin: 0 0 22px; }
.cz-card { display: flex; gap: 16px; align-items: flex-start; max-width: 480px; margin: 0 auto; border: 1px solid var(--line); border-radius: 4px; padding: 24px 22px 20px 24px; background: var(--surface); }
.cz-card-ico svg { width: 56px; height: 56px; display: block; }
.cz-card b { display: block; font-size: 16px; font-weight: var(--fw-head); margin: 2px 0 12px; }
.cz-card p { margin: 0 0 20px; line-height: 21px; }
.cz-card-acts { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.cz-learn { color: #1b5fc5; font-weight: var(--fw-emph); text-decoration: none; }
.cz-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); gap: 0 18px; align-items: start; margin-bottom: 12px; }
.cz-row-l { text-align: right; padding-top: 8px; color: var(--ink); }
.cz-row-c { display: grid; gap: 8px; }
.cz-sub, .cz-inline, .cz-who { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.cz-inline select { flex: 1; min-width: 0; }
.cz-count { margin: 0; }
.ok-text { color: var(--primary); margin: 0; } .warn-text { color: #8a5a00; margin: 0; }
.cz-subject { display: grid; gap: 12px; }
.cz-merge-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); }
.cz-merge-row .cz-merge { grid-column: 2; justify-self: end; }
.cz-merge { border: 0; background: none; font: inherit; font-size: 13px; color: var(--muted); cursor: pointer; padding: 2px 0; }
.cz-frow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px) minmax(0, 1fr); gap: 0 18px; align-items: center; }
.cz-frow .cz-row-l { padding-top: 0; }
.cz-counter { white-space: nowrap; }
.cz-i { display: inline-grid; place-items: center; width: 15px; height: 15px; border: 1.3px solid var(--muted); border-radius: 50%; font: 700 9px/1 Georgia, serif; color: var(--muted); vertical-align: 1px; cursor: help; }
.cz-tiles { display: flex; justify-content: center; gap: 24px; flex-wrap: wrap; }
.cz-tile { width: 210px; min-height: 195px; display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 22px 16px 16px; border: 1px solid #c4c9d0; border-radius: 4px; background: var(--surface); font: inherit; color: var(--ink); cursor: pointer; text-align: center; }
.cz-tile:hover, .cz-tile:focus-visible { border-color: #4a88d6; box-shadow: 0 2px 10px rgba(0, 0, 0, .08); }
.cz-tile-ico svg { width: 64px; height: 64px; display: block; margin-bottom: 14px; }
.cz-tile b { font-weight: var(--fw-head); }
.cz-tile span { font-size: 13px; color: var(--muted); line-height: 18px; }
.cz-editor { display: grid; gap: 12px; max-width: 720px; margin: 0 auto; }
.cz-editor-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.cz-radio { display: flex; align-items: center; gap: 8px; padding: 4px 0; cursor: pointer; }
.cz-radio input { accent-color: #2f6fd8; width: 16px; height: 16px; }
.cz-when { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 4px; }
.cz-switch { display: flex; align-items: center; gap: 10px; padding: 4px 0; cursor: pointer; position: relative; }
.cz-switch input { position: absolute; opacity: 0; width: 32px; height: 18px; margin: 0; cursor: pointer; }
.cz-knob { width: 32px; height: 18px; border-radius: 9px; background: #c4c9d0; position: relative; flex: none; transition: background .15s; }
.cz-knob::after { content: ''; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.cz-switch input:checked + .cz-knob { background: #2f6fd8; }
.cz-switch input:checked + .cz-knob::after { transform: translateX(14px); }
.cz-switch input:focus-visible + .cz-knob { outline: 2px solid #2f6fd8; outline-offset: 2px; }
.cz-switch.off { opacity: .5; cursor: default; }
@media (prefers-reduced-motion: reduce) { .cz-knob, .cz-knob::after { transition: none; } }
.cmp-return { position: fixed; z-index: 80; left: 50%; bottom: 84px; transform: translateX(-50%); display: flex; align-items: center; gap: 10px; padding: 8px 10px 8px 16px; border-radius: 999px; background: var(--ink); color: var(--surface); box-shadow: 0 8px 24px rgba(0, 0, 0, .25); }
.cmp-return a { color: inherit; font-weight: var(--fw-emph); text-decoration: none; }
.cmp-return button { border: 0; background: none; color: inherit; font-size: 18px; cursor: pointer; line-height: 1; }
.two-step-card.flash { animation: cz-flash 1.6s ease-out; }
@keyframes cz-flash { 0%, 40% { box-shadow: 0 0 0 3px var(--primary); } 100% { box-shadow: none; } }
/* The Sender information window */
.cz-sender { width: min(752px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.cz-head { height: 54px; padding: 0 16px; }
.cz-head b { font-size: 17px; }
.cz-sender-body { display: grid; grid-template-columns: minmax(0, 1fr) 224px; gap: 16px; padding: 16px; }
.cz-sender-fields { display: grid; gap: 12px; align-content: start; }
.cz-sender-fields .field > span { font-weight: var(--fw-regular); }
.cz-ack { align-items: flex-start; margin-top: 4px; }
.cz-how { background: #eaf2fd; border-radius: 6px; padding: 20px 16px 16px; color: #1d2733; display: flex; flex-direction: column; font-size: 13px; }
.cz-how b { font-size: 14px; margin-bottom: 12px; }
.cz-how p { margin: 0 0 10px; line-height: 19px; }
.cz-how-ico { margin-top: auto; align-self: center; } .cz-how-ico svg { width: 40px; height: 40px; display: block; }
@media (max-width: 760px) {
  .cz-row, .cz-frow, .cz-merge-row { grid-template-columns: minmax(0, 1fr); }
  .cz-row-l { text-align: left; padding-top: 0; }
  .cz-merge-row .cz-merge { grid-column: 1; }
  .cz-card { padding: 18px 14px; }
  .cz-title { font-size: 20px !important; }
  .cz-sender-body { grid-template-columns: minmax(0, 1fr); }
  .cmp-return { bottom: 76px; max-width: calc(100vw - 2rem); }
}
.cz-frow input, .cz-row-c select, .cz-row-c input[type=datetime-local] { width: 100%; min-width: 0; }
@media (max-width: 1180px) { .cz-row, .cz-frow, .cz-merge-row { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin-left: auto; margin-right: auto; } .cz-row-l { text-align: left; padding-top: 0; } .cz-merge-row .cz-merge { grid-column: 1; } .cz-counter { justify-self: end; } }

/* ---------- Sequences page and its pickers (v0.10.187), as Pipedrive's ---------- */
main:has(> .sq) { max-width: none; padding: 0; }
.sq { min-height: calc(100dvh - 60px); display: flex; flex-direction: column; background: var(--surface); }
.sq-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 20px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sq-head h1 { font-size: 26px; font-weight: var(--fw-regular); margin: 6px 0 18px; }
.sq-head p { margin: 0; }
.sq-head-acts { display: flex; align-items: center; gap: 16px; }
.sq-learn { border: 0; background: none; font: inherit; font-weight: var(--fw-emph); color: var(--muted); cursor: pointer; padding: 4px 2px; }
.sq-learn:hover { color: var(--ink); }
.sq-new { display: inline-flex; align-items: center; gap: 8px; }
.sq-caret svg { width: 12px; height: 12px; display: block; }
.sq-body { flex: 1; padding: 24px 16px 48px; background-color: var(--bg, #f7f8fa); background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 14px 14px; }
.sq-empty { max-width: 690px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 34px 24px 30px; text-align: center; }
.sq-empty h2 { font-size: 16px; font-weight: var(--fw-head); margin: 0 0 24px; }
.sq-art svg { width: min(472px, 100%); height: auto; display: block; margin: 0 auto 24px; border-radius: 8px; }
.sq-empty-acts { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.sq-list { max-width: 900px; margin: 0 auto; display: grid; gap: 16px; }
.sq-for { font-weight: var(--fw-regular); }
.seq.draft { opacity: 1; border-style: dashed; }
.sq-draft-note { margin: 0; padding: 8px 12px; border-radius: 6px; background: #eaf2fd; color: #1d2733; font-size: 13px; }
html.sq-lock { overflow: hidden; }
.sq-ico svg { width: 20px; height: 20px; display: block; }
/* The pickers */
.sq-dlg-head { height: 54px; }
.sq-dlg-head b { font-size: 17px; }
.sq-add { width: min(450px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.sq-add-body { padding: 16px; }
.sq-add-body h3 { font-size: 16px; font-weight: var(--fw-head); margin: 0 0 6px; }
.sq-add-body p { margin: 0 0 14px; line-height: 21px; }
.sq-opts { display: grid; gap: 4px; }
.sq-opt { display: flex; align-items: center; gap: 16px; padding: 8px 8px 8px 8px; border-radius: 6px; cursor: pointer; border: 1px solid transparent; position: relative; }
.sq-opt input { position: absolute; opacity: 0; pointer-events: none; }
.sq-opt:hover { background: var(--hover, #f3f5f8); }
.sq-opt:has(input:checked) { border-color: #4a88d6; background: #eef4fc; }
.sq-opt:has(input:focus-visible) { outline: 2px solid #2f6fd8; outline-offset: 1px; }
.sq-opt-ico { width: 40px; height: 40px; border-radius: 8px; background: #f0f2f5; display: grid; place-items: center; color: #4b5563; flex: none; }
.sq-opt b { font-weight: var(--fw-head); }
.sq-err:empty { display: none; }
.sq-err { margin: 8px 0 0; }
.sq-tpl { width: min(818px, calc(100vw - 1rem)); }
.sq-tpl-wrap { display: flex; flex-direction: column; max-height: calc(100dvh - 2rem); }
.sq-tpl-body { display: grid; grid-template-columns: minmax(0, 356px) minmax(0, 1fr); min-height: 0; flex: 1; overflow: hidden; }
.sq-tpl-list { padding: 16px; display: grid; gap: 16px; align-content: start; overflow: auto; border-right: 1px solid var(--line); }
.sq-tcard { display: block; border: 1px solid var(--line); border-radius: 6px; padding: 14px 12px 12px; cursor: pointer; position: relative; background: var(--surface); }
.sq-tcard input { position: absolute; opacity: 0; pointer-events: none; }
.sq-tcard:hover { border-color: #9aa3ae; }
.sq-tcard.on { border-color: #2f6fd8; }
.sq-tcard:has(input:focus-visible) { outline: 2px solid #2f6fd8; outline-offset: 2px; }
.sq-tcard-top { display: flex; gap: 10px; align-items: flex-start; padding-bottom: 12px; }
.sq-tcard-top b { font-weight: var(--fw-regular); line-height: 21px; }
.sq-tcard.on .sq-tcard-top { color: #1b5fc5; }
.sq-tcard p { margin: -4px 0 12px; line-height: 21px; }
.sq-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; border-top: 1px solid var(--line); padding-top: 12px; }
.sq-stat { background: #f0f2f5; border-radius: 4px; padding: 10px 4px; text-align: center; display: grid; gap: 4px; }
.sq-stat b { font-weight: var(--fw-head); }
.sq-stat span { font-size: 13px; color: var(--muted); }
.sq-tpl-prev { overflow: auto; padding: 22px 32px; background-image: radial-gradient(var(--line) 1px, transparent 1.2px); background-size: 14px 14px; }
.sq-flow { display: grid; gap: 38px; max-width: 372px; margin: 0 auto; }
.sq-step { border: 1px solid var(--line); border-radius: 8px; background: var(--surface); padding: 8px; position: relative; box-shadow: 0 1px 2px rgba(0, 0, 0, .04); }
.sq-step + .sq-step::before { content: ''; position: absolute; left: 50%; top: -39px; height: 38px; border-left: 1px solid #c4c9d0; }
.sq-step-day { display: flex; justify-content: space-between; align-items: center; background: #f0f2f5; border-radius: 4px; padding: 6px 8px; font-size: 11px; font-weight: var(--fw-head); text-transform: uppercase; letter-spacing: .02em; color: #4b5563; }
.sq-gap { display: inline-flex; align-items: center; gap: 4px; text-transform: none; font-weight: var(--fw-regular); font-size: 12px; letter-spacing: 0; }
.sq-gap-ico svg { width: 13px; height: 13px; display: block; }
.sq-step-main { display: flex; gap: 8px; align-items: flex-start; padding: 10px 8px 4px; }
.sq-step-main .sq-ico svg { width: 17px; height: 17px; margin-top: 2px; }
.sq-step-main b { display: block; font-weight: var(--fw-head); }
.sq-step-main span { font-size: 13px; color: var(--muted); }
.sq-tpl .cmp-dlg-foot { align-items: center; }
.sq-tpl .cmp-dlg-foot .sq-err { margin: 0 auto 0 0; }
@media (max-width: 700px) {
  .sq-tpl-body { grid-template-columns: minmax(0, 1fr); overflow: auto; }
  .sq-tpl-list { border-right: 0; border-bottom: 1px solid var(--line); overflow: visible; }
  .sq-tpl-prev { overflow: visible; padding: 20px 16px; }
  .sq-head { padding: 16px; }
}

/* ---------- Move from another CRM (v0.10.188) ---------- */
.mg-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.mg-src { display: grid; gap: 4px; text-align: left; padding: 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; cursor: pointer; }
.mg-src:hover, .mg-src:focus-visible { border-color: var(--primary); box-shadow: 0 2px 10px rgba(0, 0, 0, .06); }
.mg-src b { font-size: 16px; }
.mg-how { margin: .4rem 0 .8rem; padding-left: 1.3rem; display: grid; gap: .35rem; line-height: 1.45; }
.mg-kinds { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.mg-kind { border: 1px solid var(--line); border-radius: 8px; padding: 12px; }
.mg-kind.done { border-color: color-mix(in srgb, var(--primary) 45%, var(--line)); }
.mg-kind-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mg-num { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--line); font-weight: var(--fw-head); flex: none; }
.mg-kind.done .mg-num { background: var(--primary); color: #fff; }
.mg-kind-text { flex: 1; min-width: 180px; }
.mg-kind-text > b { margin-right: 4px; }
.mg-work:empty { display: none; }
.mg-panel { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 12px; }
.mg-panel h4 { margin: 4px 0 0; }
.mg-sum { margin: 0; }
.mg-warn { margin: 0; padding: 8px 12px; border-radius: 6px; background: #fff6e0; color: #5a4100; }
.mg-after { margin: .4rem 0 1rem; padding-left: 1.2rem; display: grid; gap: .35rem; }
.mg-undo { border-top: 1px solid var(--line); padding-top: 12px; align-items: center; gap: 12px; flex-wrap: wrap; }
.mg-undo p { margin: 0; }
.mg-history ul { margin: .5rem 0 0; padding-left: 1.2rem; }

/* ---------- Insights menus and windows (v0.10.189) ---------- */
.side-top-row { display: flex; gap: .5rem; align-items: center; }
.side-top-row .side-create { flex: 1; width: auto; }
.side-learn { position: relative; width: 38px; height: 38px; flex: none; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); color: var(--ink); cursor: pointer; }
.side-learn .ico { width: 20px; height: 20px; }
.side-learn:hover, .side-learn[aria-expanded="true"] { border-color: var(--primary); color: var(--primary); }
.side-learn::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); right: 0; z-index: 30; white-space: nowrap; background: var(--ink); color: var(--surface); font-size: 12px; padding: 4px 8px; border-radius: 6px; opacity: 0; pointer-events: none; transition: opacity .12s; }
.side-learn:hover::after, .side-learn:focus-visible::after { opacity: 1; }
.side-learn[aria-expanded="true"]::after { opacity: 0; }
.side-head-row { display: flex; align-items: center; gap: .3rem; }
.side-head-row .side-head { flex: 1; width: auto; }
.side-head-row .side-count { margin-left: 0; }
.side-more { width: 30px; height: 26px; flex: none; border: 1px solid transparent; border-radius: 6px; background: none; color: var(--ink); cursor: pointer; display: grid; place-items: center; }
.side-more:hover, .side-more[aria-expanded="true"] { border-color: #2f6fd8; background: var(--surface-2); }
.side-more:focus-visible, .side-learn:focus-visible, .pop-item:focus-visible { outline: 2px solid #2f6fd8; outline-offset: 1px; }
.side-dots { font-weight: 700; letter-spacing: 1px; line-height: 1; transform: translateY(-3px); }
.side-folder { display: flex; align-items: center; gap: .35rem; color: var(--ink); }
.side-fold-ico svg { width: 15px; height: 15px; display: block; color: var(--muted); }
.pop-item { display: flex; align-items: center; gap: .55rem; }
.pop-item .ico { width: 17px; height: 17px; flex: none; }
.pop-item[disabled] { opacity: .55; pointer-events: none; }
.pop-item:focus-visible { background: var(--primary-soft); }
.ins-dash, .ins-folder { width: min(400px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.ins-goal { width: min(625px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.ins-del { width: min(480px, calc(100vw - 1rem)); margin: 0 auto auto; border-radius: 0 0 8px 8px; }
.ins-dlg-body { padding: 16px; display: grid; gap: 14px; }
.ins-dlg-body .field > span { font-weight: var(--fw-regular); }
.ins-dlg-body p { margin: 0; }
.gl-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); min-height: 300px; }
.gl-col { padding: 16px; }
.gl-col + .gl-col { border-left: 1px solid var(--line); }
.gl-col h3 { font-size: 12px; font-weight: var(--fw-head); text-transform: uppercase; letter-spacing: .04em; margin: 4px 0 12px; }
.gl-list { display: grid; gap: 4px; }
.gl-ent, .gl-type { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px 10px; border-radius: 6px; cursor: pointer; }
.gl-ent input, .gl-type input { position: absolute; opacity: 0; pointer-events: none; }
.gl-ent:hover, .gl-type:hover { background: var(--surface-2); }
.gl-ent.on { background: #eaf2fd; color: #1b5fc5; }
.gl-ent:has(input:focus-visible), .gl-type:has(input:focus-visible) { outline: 2px solid #2f6fd8; outline-offset: 1px; }
.gl-ico svg { width: 24px; height: 24px; display: block; }
.gl-chev { margin-left: auto; font-size: 22px; line-height: 1; opacity: 0; }
.gl-ent.on .gl-chev { opacity: 1; }
.gl-type { flex-direction: column; align-items: flex-start; gap: 4px; padding: 10px 22px; }
.gl-type b { font-weight: var(--fw-regular); font-size: 15px; }
.gl-type span { font-size: 13px; color: var(--muted); line-height: 19px; }
.gl-type.on { background: #eaf2fd; }
.gl-type.on b { color: #1b5fc5; }
.gl-form { padding: 16px 24px; display: grid; gap: 12px; }
.gl-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 12px; align-items: center; }
.gl-lab { text-align: right; }
.gl-ctl { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.gl-ctl select, .gl-ctl input[type=number] { flex: 1; min-width: 0; }
.gl-ctl p { margin: 0; }
.ins-goal .cmp-dlg-foot .grow { flex: 1; }
.ins-del-list { display: grid; gap: 6px; max-height: 45vh; overflow: auto; padding: 2px; }
.ins-del-all { padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.ins-del-confirm { margin: 0; padding-left: 1.2rem; max-height: 40vh; overflow: auto; }
.rep-folder { display: inline-flex; align-items: center; gap: .4rem; }
@media (max-width: 640px) {
  .gl-pick { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .gl-col + .gl-col { border-left: 0; border-top: 1px solid var(--line); }
  .gl-row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .gl-lab { text-align: left; }
  .gl-form { padding: 16px; }
}

/* v0.10.190: empty pages with a picture; the Integrations list */
.empty-pic img { width: min(420px, 100%); height: auto; display: block; margin: 0 auto 12px; border-radius: 12px; }
.integ-list { list-style: none; margin: 12px 0; padding: 0; display: grid; gap: 8px; }
.integ-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.integ-row p { margin: 2px 0 0; }
.integ-row .grow { flex: 1; min-width: 200px; }

/* v0.10.193: slim strips at the top (the free trial; ShikaCRM's message to everyone) */
.top-strips:empty { display: none; }
.top-strip { position: relative; display: flex; align-items: center; justify-content: center; min-height: 34px; padding: 5px 40px; font-size: 13.5px; line-height: 1.35; text-align: center; border-bottom: 1px solid var(--line); }
.top-strip p { margin: 0; }
.top-strip a { font-weight: var(--fw-emph); }
.strip-trial { background: #eef4fc; color: #1d2733; }
.strip-trial a { color: #1b5fc5; text-decoration: none; }
.strip-trial a:hover { text-decoration: underline; }
.strip-news { background: #0f9f6e; color: #fff; border-bottom-color: transparent; }
.strip-news a { color: #fff; text-decoration: underline; margin-left: .6rem; }
.strip-x { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 24px; height: 24px; border: 0; background: none; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; opacity: .75; border-radius: 50%; }
.strip-x:hover, .strip-x:focus-visible { opacity: 1; background: rgba(0, 0, 0, .08); }
.strip-preview { border-radius: 6px; }
@media (max-width: 640px) { .top-strip { font-size: 12.5px; padding: 5px 34px 5px 12px; text-align: left; justify-content: flex-start; } }

/* v0.10.194: the seasonal app icon, side by side with the usual one */
.ai-prev { display: flex; gap: 20px; }
.ai-prev figure { margin: 0; display: grid; gap: 4px; justify-items: center; }
.ai-prev img { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; box-shadow: 0 1px 4px rgba(0, 0, 0, .15); }

/* v0.10.196: Slack and Teams */
.chan-card .ticks { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; border: 0; padding: 0; }
.chan-card .ticks legend { font-weight: var(--fw-emph); margin-bottom: .3rem; }

/* v0.10.197: the palette. Shika green is the frame and signature (the menu bar); abyss blue carries the information
   (headings, figures, the ink, information badges); aqua is the action (buttons, links, what is selected); baby pink
   is the good news (a deal won). Red and orange keep their meaning. Dark: deep greens, the top bar in abyss, the aqua
   and the pink lighter. Last in the file on purpose: it settles the colour layers above. */
:root {
  --bg: #f3f7f5; --surface: #ffffff; --surface-2: #eef4f1; --line: #dfe8e3; --ink: #13223a; --muted: #5a6880; --heading: #0b2540;
  --primary: #0b7a71; --primary-ink: #ffffff; --primary-soft: #ddf7f3;
  --info: #0b2540; --info-soft: #e4ecf6; --win: #9d2457; --win-soft: #fce4ee; --pink: #9d2457; --pink-soft: #fce4ee;
  --chrome: #0e3b2c; --chrome-2: #165040; --chrome-ink: #e3efe9; --chrome-muted: #9fc4b4; --topbar: var(--chrome);
}
:root[data-theme="dark"] {
  --bg: #06140f; --surface: #0f2a21; --surface-2: #0a1f18; --line: #1f3d32; --ink: #e3efe9; --muted: #a9b8cc; --heading: #e3efe9;
  --primary: #3ccfc0; --primary-ink: #052420; --primary-soft: #123b36;
  --info: #9dbce0; --info-soft: #16304f; --win: #f7c6d9; --win-soft: #3b1a2c; --pink: #f7c6d9; --pink-soft: #3b1a2c;
  --chrome: #0b2a21; --chrome-2: #12382c; --chrome-ink: #e3efe9; --chrome-muted: #9fc4b4; --topbar: #0b2540;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #06140f; --surface: #0f2a21; --surface-2: #0a1f18; --line: #1f3d32; --ink: #e3efe9; --muted: #a9b8cc; --heading: #e3efe9;
    --primary: #3ccfc0; --primary-ink: #052420; --primary-soft: #123b36;
    --info: #9dbce0; --info-soft: #16304f; --win: #f7c6d9; --win-soft: #3b1a2c; --pink: #f7c6d9; --pink-soft: #3b1a2c;
    --chrome: #0b2a21; --chrome-2: #12382c; --chrome-ink: #e3efe9; --chrome-muted: #9fc4b4; --topbar: #0b2540;
  }
}
.page-head h1, .card > h2, .card > .row > h2 { color: var(--heading); }
.badge.win { background: var(--win-soft); color: var(--win); border-color: transparent; }
.badge.teal { background: var(--primary-soft); color: var(--primary); border-color: transparent; }
:root[data-theme="dark"] .topbar { background: var(--topbar); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .topbar { background: var(--topbar); } }

/* v0.10.198: privacy requests */
.priv-find { display: flex; flex-direction: column; gap: .6rem; margin-bottom: .8rem; }
.priv-counts { list-style: none; padding: 0; margin: 0 0 .8rem; display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; }
.priv-res .row { gap: .6rem; margin-top: .6rem; }

/* v0.10.199: other currencies */
.fx-rows { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .8rem; }
.fx-row { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.fx-row input { width: 9rem; }
.fx-add { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; margin-top: .8rem; }
.fx-add .field { margin: 0; max-width: 16rem; }

/* v0.10.200: WhatsApp to a client */
.wa-panel { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin: .4rem 0; }
.wa-panel.hidden { display: none; }
.wa-card p { margin: .4rem 0 0; }

/* v0.10.201: the Dashboard */
.dash-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.dash-head p { margin: .2rem 0 0; }
.dash-period { flex: 0 0 auto; }
.dash-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: .75rem; margin: 1rem 0; }
.dash-kpi { display: flex; flex-direction: column; gap: .2rem; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .9rem 1rem; box-shadow: var(--shadow); color: var(--ink); text-decoration: none; }
a.dash-kpi:hover { border-color: var(--primary); }
.dash-kpi-label { color: var(--muted); font-size: var(--fs-body); }
.dash-kpi b { font-size: 1.6rem; line-height: 1.15; font-weight: var(--fw-head); color: var(--heading, var(--ink)); font-variant-numeric: tabular-nums; }
.dash-delta { font-size: .8rem; color: var(--muted); }
.dash-delta.up { color: var(--ok); }
.dash-delta.down { color: var(--danger); }
.dash-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(420px, 1fr)); gap: 1rem; }
.dash-grid > .card.dash-card { margin: 0; }
.dash-card > p.small { margin: .1rem 0 .6rem; }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-chart .dash-grid { stroke: var(--line); stroke-width: 1; }
.dash-chart .dash-grid.base { stroke: var(--muted); }
.dash-chart .dash-axis { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.dash-chart .dash-fill { fill: var(--primary); }
.dash-chart .dash-hit { fill: transparent; }
.dash-chart .dash-bar:hover .dash-hit { fill: var(--primary-soft, rgba(11, 122, 113, .08)); }
.dash-figures { margin-top: .5rem; font-size: var(--fs-body); }
.dash-figures summary { cursor: pointer; color: var(--muted); }
.dash-figures table, .dash-people { width: 100%; border-collapse: collapse; margin-top: .4rem; }
.dash-figures td, .dash-figures th, .dash-people td, .dash-people th { text-align: left; padding: .3rem .4rem; border-bottom: 1px solid var(--line); }
.dash-figures .mono, .dash-people .mono { text-align: right; }
.dash-people th:not(:first-child) { text-align: right; }
.dash-stages { list-style: none; margin: 0 0 .6rem; padding: 0; display: flex; flex-direction: column; gap: .55rem; }
.dash-stages li { display: grid; grid-template-columns: minmax(7rem, 10rem) 1fr auto; align-items: center; gap: .6rem; }
.dash-track { height: 10px; background: var(--line); border-radius: 5px; overflow: hidden; }
.dash-fill-h { display: block; height: 100%; background: var(--primary); border-radius: 5px; }
.dash-stage-val { font-size: .85rem; white-space: nowrap; }
.dash-list { list-style: none; margin: 0; padding: 0; }
.dash-list li { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: .8rem; padding: .5rem 0; border-bottom: 1px solid var(--line); }
.dash-list li:last-child { border-bottom: 0; }
.dash-list li a { grid-column: 1; }
.dash-list li span { grid-column: 1; grid-row: 2; }
.dash-list li b { grid-column: 2; grid-row: 1 / span 2; align-self: center; }
.dash-empty { margin: .4rem 0; }
@media (max-width: 700px) { .dash-grid { grid-template-columns: 1fr; } .dash-stages li { grid-template-columns: 6rem 1fr; } .dash-stage-val { grid-column: 1 / -1; } }

/* v0.10.203: the CardKira account */
.ck-continue { max-width: 420px; margin: .8rem auto 1rem; text-align: center; }
.ck-note { max-width: 560px; }
.ck-dl, .ck-client-dl { display: grid; grid-template-columns: max-content 1fr; gap: .3rem 1rem; margin: 0; }
.ck-dl dt, .ck-client-dl dt { color: var(--muted); }
.ck-dl dd, .ck-client-dl dd { margin: 0; word-break: break-all; }
.ck-sites td, .ck-access td { vertical-align: top; }
.ck-access td:nth-child(n+3), .ck-access th:nth-child(n+3) { text-align: center; }

/* v0.10.204: the CardKira plans */
.ck-plan-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: .75rem; margin-top: .6rem; }
.ck-plan { display: flex; justify-content: space-between; align-items: flex-start; gap: .6rem; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.ck-plan.on { border-color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.ck-plan > div { display: flex; flex-direction: column; gap: .2rem; }
.ck-plan-sites { border: 1px solid var(--line); border-radius: 8px; padding: .5rem .8rem; display: flex; flex-direction: column; gap: .3rem; }
.ck-plan-sites legend { padding: 0 .3rem; color: var(--muted); }

/* v0.10.205: quotes signed online */
.qs-items { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.qs-items li { display: flex; flex-direction: column; gap: .2rem; padding: .6rem .8rem; border: 1px solid var(--line); border-radius: 10px; }
.qs-items li .btn { align-self: flex-start; }
.qs-accepted { color: var(--ok); font-weight: var(--fw-emph); }
.qs-declined { color: var(--danger); font-weight: var(--fw-emph); }
.qs-withdrawn { color: var(--muted); }
.qs-link { display: flex; flex-direction: column; gap: .5rem; }
.qs-link:empty { display: none; }

/* v0.10.208: Sign in with CardKira */
.ck-signin { display: flex; flex-direction: column; gap: .5rem; margin: .4rem 0 .2rem; }
.ck-signin .btn { display: inline-flex; align-items: center; justify-content: center; gap: .55rem; }
.ck-signin img { width: 20px; height: 20px; }
.ck-or { display: flex; align-items: center; gap: .8rem; color: var(--muted); font-size: .85rem; margin: .4rem 0; }
.ck-or::before, .ck-or::after { content: ''; flex: 1; border-top: 1px solid var(--line); }

/* v0.10.217: the sign-in pages in the CardKira family's look (cardkira.com): the night sky with its glows, a dark card,
   ShikaCRM's green from the CardKira logo, and "a CardKira product". The app inside keeps its own light or dark theme. */
.auth-wrap {
  --bg: #070a12; --surface: rgba(16, 21, 36, .86); --surface-2: rgba(255, 255, 255, .05); --ink: #eef2f8; --muted: #9aa6bb;
  --line: rgba(255, 255, 255, .12); --primary: #2bb04a; --primary-ink: #ffffff; --primary-soft: rgba(43, 176, 74, .16);
  --danger: #ff8a80; --danger-soft: #3a1714; --warn: #ffcf7a; --warn-soft: #382a0d; --ok: #7be3a0; --ok-soft: #12301f;
  --info: #8ab4ff; --info-soft: #172a4d; --focus: #ff9f1c; --shadow: 0 24px 60px -24px rgba(0, 0, 0, .7);
  position: relative; isolation: isolate; overflow: hidden; min-height: 100vh; padding: 1rem 1rem 2rem; color: var(--ink); color-scheme: dark;
  background-color: #070a12;
  background-image: linear-gradient(rgba(255, 255, 255, .03) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .03) 1px, transparent 1px);
  background-size: 64px 64px;
}
.auth-wrap::before, .auth-wrap::after { content: ""; position: absolute; z-index: -1; pointer-events: none; border-radius: 50%; filter: blur(90px); width: 46vmax; height: 46vmax; }
.auth-wrap::before { background: #2bb04a; opacity: .22; top: -20vmax; left: -14vmax; }
.auth-wrap::after { background: #10b3b0; opacity: .18; bottom: -24vmax; right: -16vmax; }
.auth-wrap .auth-brand { display: flex; align-items: center; justify-content: center; gap: .6rem; color: var(--ink); }
.auth-wrap .auth-brand img { border-radius: 10px; }
.auth-wrap .card { background: var(--surface); border-color: var(--line); box-shadow: var(--shadow); backdrop-filter: blur(10px); position: relative; }
.auth-wrap .card::before { content: ""; position: absolute; left: 18px; right: 18px; top: -1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #ff9f1c, #f0157a, #7b5cf0, #1a7fd6, #10b3b0, #2bb04a); }
.auth-wrap input, .auth-wrap select, .auth-wrap textarea { background: var(--surface-2); color: var(--ink); border-color: rgba(255, 255, 255, .16); }
.auth-wrap .btn.primary { background: linear-gradient(100deg, #2bb04a, #10b3b0); box-shadow: 0 10px 30px -10px rgba(43, 176, 74, .7); color: #fff; }
.auth-wrap a { color: #8fe0a8; }
.auth-ck { display: flex; align-items: center; justify-content: center; gap: .45rem; margin: 1.4rem 0 0; color: var(--muted); font-size: var(--fs-small); letter-spacing: .02em; }
.auth-ck img { width: 18px; height: 18px; }
.auth-wrap .ck-signin .btn.primary { background: linear-gradient(100deg, #ff9f1c, #f0157a 55%, #7b5cf0); box-shadow: 0 10px 30px -10px rgba(240, 21, 122, .7); }

/* v0.10.218: Poppins, cardkira.com's font (SIL Open Font License, public/fonts/OFL-poppins.txt), for titles, the brand and the
   sign-in pages, as on every CardKira site. The text inside the app stays in Figtree, easier to read small. */
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 500; font-display: swap; src: url("/fonts/poppins-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
h1, h2, h3, .auth-brand { font-family: var(--font); letter-spacing: -.01em; }
.auth-wrap { font-family: var(--font); }

/* v0.10.220: the CardKira apps menu in the top bar */
.ck-apps { position: relative; }
.ck-grid { display: grid; grid-template-columns: repeat(3, 4px); gap: 3px; }
.ck-grid i { width: 4px; height: 4px; border-radius: 1px; background: currentColor; }
.ck-apps-pop { position: absolute; right: 0; top: calc(100% + 6px); z-index: 60; min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 16px 40px rgba(0, 0, 0, .18); padding: .5rem; }
.ck-apps-title { display: flex; align-items: center; gap: .45rem; margin: .2rem .4rem .5rem; font-family: var(--font); font-weight: var(--fw-head); }
.ck-apps-title img { width: 18px; height: 18px; }
.ck-app { display: flex; align-items: center; gap: .6rem; padding: .5rem .55rem; border-radius: 10px; color: var(--ink); text-decoration: none; }
.ck-app:hover, .ck-app:focus-visible { background: var(--surface-2); }
.ck-app small { margin-left: auto; color: var(--muted); }
.ck-app-dot { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #fff; font-weight: 700; background: #7b5cf0; }
.ck-app-dot.ck-shika { background: #2bb04a; }
.ck-app-dot.ck-kirabooks { background: #ff9f1c; }
.ck-app-dot.ck-runpoint { background: #10b3b0; }

/* v0.10.223: the opening screen in the CardKira family look: the fan of CardKira cards opening, ShikaCRM's green card in
   front with its logo, and "a CardKira product". It only shows when opening takes more than half a second, so a quick
   reload goes straight to the page. */
.ck-splash { gap: .6rem; }
.ck-splash > * { opacity: 0; animation: ck-splash-in .3s ease .5s forwards; }
.ck-splash-fan { width: 190px; height: 133px; overflow: visible; }
.ck-splash-fan .l, .ck-splash-fan .r { transform-box: view-box; transform-origin: 0 0; opacity: .85; }
.ck-splash-fan .l { animation: ck-fan-l 1.6s ease-in-out .5s infinite alternate; }
.ck-splash-fan .r { animation: ck-fan-r 1.6s ease-in-out .5s infinite alternate; }
.ck-splash .splash-text { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; margin-top: .4rem; }
.ck-splash-by { display: flex; align-items: center; gap: .4rem; margin: 0; color: var(--muted); font-size: var(--fs-small); }
@keyframes ck-splash-in { to { opacity: 1; } }
@keyframes ck-fan-l { from { transform: rotate(-8deg); } to { transform: rotate(-26deg); } }
@keyframes ck-fan-r { from { transform: rotate(8deg); } to { transform: rotate(26deg); } }
@media (prefers-reduced-motion: reduce) { .ck-splash-fan .l, .ck-splash-fan .r { animation: none; } .ck-splash-fan .l { transform: rotate(-26deg); } .ck-splash-fan .r { transform: rotate(26deg); } }

/* v0.10.224: the CardKira family, direction B (it replaces 0.10.221 and 0.10.222, which the client found too
   "AI-looking"). No glow, no blur, no gradient: character comes from solid colour, big type, crisp outlines with a hard
   offset shadow, the six CardKira colours used to inform, and Kira. ShikaCRM keeps its logo, its green and its menu on
   the left, now a solid block of its deep forest green. Last in the file on purpose: it settles the layers above. */
:root { --ck-a1: #2bb04a; --ck-a1-text: #138a35; --ck-deep: #0d3a2b; --ck-deep-ink: #cfe3d8; --ck-on: #08200f; --ck-edge: #15192b; --ck-shadow: #15192b;
  --ck-ribbon: linear-gradient(90deg, #ff9f1c 0 16.66%, #f0157a 0 33.33%, #7b5cf0 0 50%, #1a7fd6 0 66.66%, #10b3b0 0 83.33%, #2bb04a 0); }
:root[data-theme="dark"] { --ck-a1-text: #5fd47e; --ck-edge: #9fc4b4; --ck-shadow: #000; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --ck-a1-text: #5fd47e; --ck-edge: #9fc4b4; --ck-shadow: #000; } }
.layout::before { content: ""; position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 90; background: var(--ck-ribbon); pointer-events: none; }
/* the menu: a solid block of ShikaCRM's deep green */
.sidenav { background: var(--ck-deep); color: var(--ck-deep-ink); }
.sidenav .brand { color: #fff; }
.sidenav .brand-logo { border-radius: 10px; box-shadow: 3px 3px 0 #051a12; }
.brand-text b { font-family: var(--font); font-weight: 700; font-size: 18px; letter-spacing: -.015em; }
.sidenav .navlink { color: var(--ck-deep-ink); }
.sidenav .navlink .ico { color: #9fc4b4 !important; }
.sidenav .navlink:hover { background: rgba(255, 255, 255, .08); color: #fff; }
.sidenav .navlink.active { background: var(--ck-a1); color: var(--ck-on); font-weight: 600; box-shadow: 3px 3px 0 #051a12; }
.sidenav .navlink.active .ico { color: var(--ck-on) !important; }
.sidenav .navlink.active .nav-badge { background: rgba(0, 0, 0, .16); color: var(--ck-on); }
.sidenav .nav-badge { background: rgba(255, 255, 255, .14); color: #fff; }
.sidenav .nav-caret, .sidenav .nav-toggle { color: #9fc4b4; }
.ck-sig { margin-top: auto; display: flex; align-items: center; gap: .55rem; padding: .7rem .4rem 0; border-top: 1px solid rgba(255, 255, 255, .12); color: var(--ck-deep-ink); font-size: 12px; text-decoration: none; }
.ck-sig img { width: 20px; height: 20px; flex: none; }
.ck-sig-text b { font-weight: 500; } .ck-sig-text small { display: none; }
.ck-sig + .nav-toggle { margin-top: .5rem; }
.ck-sig[data-tip]:hover::after { content: none; }
@media (min-width: 821px) { .collapsed .ck-sig { justify-content: center; padding: .6rem 0 0; } .collapsed .ck-sig-text { display: none; } }
@media (max-width: 820px) { .ck-sig { display: none; } }
/* main buttons: solid green, a crisp outline and a hard shadow */
.btn.primary, .now-panel .np-btn { background: var(--ck-a1); color: var(--ck-on); border: 2px solid var(--ck-edge); box-shadow: 3px 3px 0 var(--ck-shadow); font-family: var(--font); font-weight: 600; text-decoration: none; }
.btn.primary:not([disabled]):hover, .now-panel .np-btn:hover { filter: none; transform: translate(-1px, -1px); box-shadow: 4px 4px 0 var(--ck-shadow); }
.btn.primary:not([disabled]):active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--ck-shadow); }
/* My day opens on big type and an illustration */
.page-head.ck-hero { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; gap: 1rem 1.5rem; margin-bottom: 1.2rem; }
.ck-hero .md-date { font-family: var(--font); font-weight: 600; color: var(--muted); }
.page-head.ck-hero h1 { font-family: var(--font); font-weight: 800; font-size: 36px; line-height: 1.1; letter-spacing: -.03em; color: var(--ink); }
.ck-art { width: 260px; height: 130px; flex: none; color: var(--ink); }
.ck-art svg { width: 100%; height: 100%; }
@media (max-width: 1000px) { .ck-art { display: none; } .page-head.ck-hero { grid-template-columns: minmax(0, 1fr) auto; } }
@media (max-width: 560px) { .page-head.ck-hero { grid-template-columns: minmax(0, 1fr); } .page-head.ck-hero h1 { font-size: 28px; } }
/* Kira says what to do next (it was the "Now" panel) */
.now-panel.kira-note { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .9rem 1rem; padding: .8rem 1rem; border-radius: 16px; background: var(--surface); color: var(--ink); border: 2px solid var(--ck-edge); box-shadow: 4px 4px 0 #7b5cf0; }
.kira-note .kira-face { width: 52px; height: 52px; }
.kn-text { display: flex; flex-direction: column; min-width: 0; }
.kn-text b { font-family: var(--font); font-size: 14px; color: var(--ink); }
.kn-text .kn-title { font-weight: 600; }
.kn-text span { color: var(--ink); }
.now-panel .np-btn { margin: 0; padding: .5rem 1rem; border-radius: 10px; white-space: nowrap; }
@media (max-width: 560px) { .now-panel.kira-note { grid-template-columns: auto minmax(0, 1fr); } .now-panel .np-btn { grid-column: 1 / -1; justify-self: start; } }
/* key figures: the first one a solid block of green, the others white with a crisp outline and a coloured mark */
.dash-kpi { position: relative; border: 2px solid var(--ck-edge); border-radius: 14px; box-shadow: 4px 4px 0 var(--ck-shadow); --k: var(--ck-a1); }
.dash-kpi b { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; }
.dash-kpi::after { content: ""; position: absolute; top: 14px; right: 14px; width: 11px; height: 11px; border-radius: 3px; background: var(--k); }
.dash-kpi:first-child { background: var(--ck-a1); color: var(--ck-on); }
.dash-kpi:first-child::after { content: none; }
.dash-kpi:first-child .dash-kpi-label, .dash-kpi:first-child .muted { color: var(--ck-on); opacity: .8; }
.dash-kpi:nth-child(5n+2) { --k: #10b3b0; } .dash-kpi:nth-child(5n+3) { --k: #1a7fd6; } .dash-kpi:nth-child(5n+4) { --k: #7b5cf0; } .dash-kpi:nth-child(5n+5) { --k: #f0157a; }
/* figure tiles on every page: a small square in the colours of the CardKira logo, no bar */
.layout .tiles:not(.md-tiles) .tile { border-radius: 14px; }
.layout .tiles:not(.md-tiles) .tile::before { left: auto; right: 12px; top: 12px; bottom: auto; width: 10px; height: 10px; border-radius: 3px; }
.layout .tiles .tile:nth-child(6n+1) { --tile-c: #2bb04a; } .layout .tiles .tile:nth-child(6n+2) { --tile-c: #10b3b0; } .layout .tiles .tile:nth-child(6n+3) { --tile-c: #1a7fd6; }
.layout .tiles .tile:nth-child(6n+4) { --tile-c: #7b5cf0; } .layout .tiles .tile:nth-child(6n+5) { --tile-c: #f0157a; } .layout .tiles .tile:nth-child(6n) { --tile-c: #ff9f1c; }
.layout .tiles .tile.alert { --tile-c: var(--danger); }
.layout .tile b { font-family: var(--font); font-weight: 800; letter-spacing: -.02em; }
/* page titles: big and confident */
.layout .page-head h1 { font-family: var(--font); font-weight: 800; letter-spacing: -.03em; }
.layout .card { border-radius: 14px; }
/* the top bar on the dark theme */
:root[data-theme="dark"] .topbar { background: var(--surface); }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .topbar { background: var(--surface); } }
/* the CardKira apps menu shows each site's own logo */
.ck-app-logo { width: 28px; height: 28px; border-radius: 8px; flex: none; }

/* v0.10.225: the pages use the whole width of the screen (they stopped at 1240 px in the middle, with empty bands on wide
   screens), with side margins that grow a little on big screens. The side menu never scrolls sideways: the hard shadow of
   the active item made it shift left. */
@media (min-width: 821px) {
  .layout main { max-width: none; }
  .layout main:not(:has(> .mk)):not(:has(> .sq)) { padding-left: clamp(1.25rem, 2.2vw, 3rem); padding-right: clamp(1.25rem, 2.2vw, 3rem); }
  .layout:not(.collapsed) .sidenav { overflow-x: hidden; }
  .sidenav .navlink.active { margin-right: 3px; }
}

/* v0.10.226: the Dashboard uses the room of a wide screen: the cards sit in columns, each as tall as what it holds, with
   no empty band under a short card (three columns on a wide screen, four on a very wide one). */
@media (min-width: 1400px) {
  .dash-grid { display: block; columns: 3; column-gap: 1rem; }
  .dash-grid > * { break-inside: avoid; margin: 0 0 1rem !important; display: inline-block; width: 100%; }
}
@media (min-width: 2200px) { .dash-grid { columns: 4; } }

/* v0.10.227: every page on every screen. Sequences sit in a grid that fills the width (they were one narrow column in the
   middle); the three Campaigns columns wrap on a tablet instead of running off the screen; on a very wide screen, long
   paragraphs stop at a comfortable reading length while the cards, tables and boards still use the whole width. */
.sq-body .sq-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 1rem; max-width: none; align-items: start; }
.sq-body .sq-list > .card { margin: 0; }
.cmp-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 240px)); gap: clamp(24px, 6vw, 120px); }
@media (min-width: 1700px) { .layout main p, .layout main .muted:not(td):not(span) { max-width: 110ch; } }

/* v0.10.236: a moved deal glides to its new column, then glows for 2 seconds where it landed */
::view-transition-group(moving-deal) { animation-duration: .5s; animation-timing-function: cubic-bezier(.2, .8, .2, 1); }
::view-transition-old(moving-deal), ::view-transition-new(moving-deal) { height: 100%; }
::view-transition-group(root) { animation-duration: .25s; }
.pcard.just-moved { animation: deal-landed 2s ease-out; position: relative; z-index: 1; }
@keyframes deal-landed {
  0%, 35% { box-shadow: 0 0 0 2px var(--primary), 0 0 16px 3px color-mix(in srgb, var(--primary) 40%, transparent); background-color: color-mix(in srgb, var(--primary) 14%, var(--surface)); }
}
@media (prefers-reduced-motion: reduce) { .pcard.just-moved { animation: none; box-shadow: 0 0 0 2px var(--primary); } }

/* v0.10.237: the opening animation, the moment someone has signed in */
.welcome-splash { position: fixed; inset: 0; z-index: 9999; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; background: var(--bg); transition: opacity .4s ease; }
.welcome-splash.leaving { opacity: 0; pointer-events: none; }
.welcome-splash .ck-splash-fan { width: 190px; height: 133px; overflow: visible; }
.welcome-splash .ck-splash-fan .l, .welcome-splash .ck-splash-fan .r { transform-box: view-box; transform-origin: 0 0; opacity: .85; }
.welcome-splash .ck-splash-fan .l { animation: ck-fan-l .8s ease-in-out .15s infinite alternate; }
.welcome-splash .ck-splash-fan .r { animation: ck-fan-r .8s ease-in-out .15s infinite alternate; }
.welcome-splash .splash-text { font-family: var(--font); font-weight: 700; letter-spacing: -.01em; margin: .4rem 0 0; font-size: var(--fs-section); color: var(--ink); animation: welcome-up .5s ease both; }
.welcome-splash .welcome-hi { margin: 0; color: var(--muted); animation: welcome-up .5s ease .25s both; }
@keyframes welcome-up { from { opacity: 0; transform: translateY(8px); } }
@media (prefers-reduced-motion: reduce) { .welcome-splash .ck-splash-fan .l, .welcome-splash .ck-splash-fan .r, .welcome-splash .splash-text, .welcome-splash .welcome-hi { animation: none; } .welcome-splash .ck-splash-fan .l { transform: rotate(-26deg); } .welcome-splash .ck-splash-fan .r { transform: rotate(26deg); } }

/* v0.10.238: the quote window, zooming in from the middle */
dialog.quote-dlg { width: min(900px, calc(100vw - 2rem)); height: min(88vh, 1100px); padding: 0; border: 0; border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; background: var(--surface); color: var(--ink); box-shadow: 0 24px 70px rgba(0, 0, 0, .35); }
dialog.quote-dlg:not([open]) { display: none; }
dialog.quote-dlg[open] { animation: quote-in .32s cubic-bezier(.2, .8, .2, 1); }
dialog.quote-dlg::backdrop { background: rgba(10, 20, 30, .5); }
dialog.quote-dlg[open]::backdrop { animation: quote-fade .32s ease; }
@keyframes quote-in { from { opacity: 0; transform: scale(.94) translateY(10px); } }
@keyframes quote-fade { from { opacity: 0; } }
.quote-dlg-head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.quote-dlg-head b { font-size: 1.02rem; }
.quote-frame { flex: 1; width: 100%; border: 0; background: #eef1f4; }
@media (prefers-reduced-motion: reduce) { dialog.quote-dlg[open], dialog.quote-dlg[open]::backdrop { animation: none; } }

/* v0.10.240: My day and the Queue as a deck of cards (design v4, step 1). No row of figure tiles: a sentence says what to
   do first, one number says what changed, the client to call lies on top of a deck (two cards peek out behind it, a
   coloured tab says why it is on top), the next ones are fanned down the side with a coloured edge, and the day reads as
   lines of a diary page. The six CardKira colours inform: orange overdue, blue due today, violet never called, pink
   interested, teal anything else and the calendar. */
:root { --dk-or: #ff9f1c; --dk-pk: #f0157a; --dk-vi: #7b5cf0; --dk-bl: #1a7fd6; --dk-tl: #10b3b0; --dk-now: #fff3c4; }
:root[data-theme="dark"] { --dk-now: #3a3320; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --dk-now: #3a3320; } }
.c-or { --dk: var(--dk-or); } .c-pk { --dk: var(--dk-pk); } .c-vi { --dk: var(--dk-vi); } .c-bl { --dk: var(--dk-bl); } .c-tl { --dk: var(--dk-tl); }

/* the deck */
.deck { position: relative; padding: 0 14px 14px 0; min-width: 0; }
.deck-behind { position: absolute; inset: 0 14px 14px 0; border: 2px solid var(--ck-edge); border-radius: 16px; background: var(--surface); }
.deck-behind.b1 { transform: translate(7px, 7px); }
.deck-behind.b2 { transform: translate(14px, 14px); }
.deck .icard { position: relative; border: 2px solid var(--ck-edge); border-radius: 16px; box-shadow: 4px 4px 0 var(--ck-shadow); padding-top: 2.4rem; margin: 0; }
.deck-tab { position: absolute; top: -2px; left: 22px; padding: 3px 11px 5px; border: 2px solid var(--ck-edge); border-top: 0; border-radius: 0 0 9px 9px; background: var(--dk); color: #fff; font-weight: 700; font-size: .8rem; line-height: 1.2; z-index: 1; }
.deck-tab.c-or { color: #2a1700; }
.deck-lbl { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; margin: 0 0 .55rem; font-size: .78rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.deck-lbl a { text-transform: none; letter-spacing: 0; font-size: .88rem; color: var(--ck-a1-text); }
.deck + .deck-lbl { margin-top: 1.1rem; }

/* the next cards, fanned */
.deck-pile { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.deck-pile .pc { position: relative; display: grid; gap: .1rem; justify-items: start; margin: -7px 0 0; padding: .65rem .8rem .65rem 1.05rem; border: 2px solid var(--ck-edge); border-radius: 12px; background: var(--surface); box-shadow: 3px 3px 0 var(--ck-shadow); }
.deck-pile .pc:first-child { margin-top: 0; }
.deck-pile .pc::before { content: ""; position: absolute; left: -2px; top: 9px; bottom: 9px; width: 6px; border-radius: 0 5px 5px 0; background: var(--dk); border: 2px solid var(--ck-edge); border-left: 0; }
.deck-pile .pc > a { font-weight: 700; color: var(--ink); text-decoration: none; }
.deck-pile .pc > a:hover { text-decoration: underline; }
.deck-pile .pc .pc-sub { color: var(--muted); font-size: .85rem; }
.deck-pile .pc .win-strip { width: 100%; margin-top: .15rem; }

/* My day */
.md-lead { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem; align-items: end; margin-bottom: 1.4rem; }
.md-lead .md-date { margin: 0; color: var(--muted); font-weight: 700; }
.md-lead h1 { font-size: clamp(1.6rem, 1.1rem + 1.6vw, 2.4rem); line-height: 1.15; margin: .2rem 0 0; max-width: 34ch; }
.md-lead h1 em { font-style: normal; color: var(--ck-a1-text); background: linear-gradient(transparent 64%, color-mix(in srgb, var(--ck-a1) 22%, transparent) 0); }
.md-lead .md-sub { margin: .5rem 0 0; color: var(--muted); max-width: 70ch; }
.md-lead-act { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.one-number { border-left: 4px solid var(--ck-a1); padding: .2rem 0 .2rem 1rem; min-width: 12rem; }
.one-number small { display: block; color: var(--muted); font-weight: 700; }
.one-number b { display: block; font-size: 2.4rem; line-height: 1.05; font-weight: 800; letter-spacing: -.02em; }
.one-number span { color: var(--ck-a1-text); font-weight: 700; font-size: .92rem; }
.md-deck-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2rem; align-items: start; margin-bottom: 1.6rem; }
.md-deck-grid.no-deck { grid-template-columns: minmax(0, 1fr); }
.md-top-head { padding: 0 .2rem .7rem; border-bottom: 2px solid color-mix(in srgb, var(--dk) 45%, transparent); }
.md-top-name { margin: 0; font-size: 1.6rem; line-height: 1.15; }
.md-top-name a { color: var(--ink); text-decoration: none; }
.md-top-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(9.5rem, 1fr)); margin: 0; }
.md-top-facts div { padding: .6rem .2rem; border-bottom: 1px solid var(--line); }
.md-top-facts dt { color: var(--muted); font-size: .8rem; }
.md-top-facts dd { margin: 0; font-weight: 700; }
.md-top-why { display: flex; gap: .7rem; align-items: center; margin: .9rem 0 0; }
.md-top-why .kira-face { width: 40px; height: 40px; flex: none; }
.md-top-why p { margin: 0; }
.md-top-why b { color: #b40d5b; }
:root[data-theme="dark"] .md-top-why b { color: #ff7fb6; }
.md-top-actions { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: 1rem; }
.md-top-later { margin-left: auto; color: var(--muted); font-weight: 700; }

/* the day, as lines of a diary page */
.ledger { list-style: none; margin: 0; padding: 0; border-top: 2px solid var(--ck-edge); }
.ledger .lr { display: grid; grid-template-columns: 3.4rem 12px minmax(0, 1fr) auto; gap: .75rem; align-items: center; padding: .65rem .3rem; border-bottom: 1px solid var(--line); }
.ledger .lr.empty { grid-template-columns: 1fr; }
.ledger time { font-weight: 700; font-variant-numeric: tabular-nums; }
.ledger .dot { width: 12px; height: 12px; border-radius: 3px; border: 1.5px solid var(--ck-edge); background: var(--dk); }
.ledger .lr-t { display: grid; min-width: 0; }
.ledger .lr-t a { font-weight: 700; color: var(--ink); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ledger .lr-t span { color: var(--muted); font-size: .88rem; }
.ledger .lr.now { background: linear-gradient(90deg, var(--dk-now), transparent 75%); }
.ledger .lr-now { font-size: .8rem; font-weight: 700; color: var(--muted); }
.ledger .lr.done { opacity: .55; }
.ledger .lr.done .lr-t a { text-decoration: line-through; }

/* the Queue: the call card on top of the deck */
.queue-grid > .deck .icard.call-card { padding-top: 2.4rem; }
.upnext-wrap .deck-pile { margin-top: .4rem; }

@media (max-width: 820px) {
  .md-lead { grid-template-columns: 1fr; gap: 1rem; }
  .md-deck-grid { grid-template-columns: 1fr; gap: 1.4rem; }
  .deck { padding: 0 8px 8px 0; } .deck-behind { inset: 0 8px 8px 0; }
  .deck-behind.b1 { transform: translate(4px, 4px); } .deck-behind.b2 { transform: translate(8px, 8px); }
  .md-top-later { margin-left: 0; }
}
@media (prefers-reduced-motion: no-preference) { .deck .icard { animation: deck-in .25s ease-out; } }
@keyframes deck-in { from { transform: translate(-6px, -6px) rotate(-.6deg); opacity: .6; } }
@media print { .deck-behind, .deck-tab { display: none; } }

/* v0.10.241: ShikaCRM in ink and tomato (step 2 of the v4 design, chosen by Ithielle after the client found the green
   "like every other CRM"): the menu and bars in ink blue, buttons and what is selected in tomato, Source Sans 3 for
   everything, the logo a tomato tile with an ink tower. Green stays only where it means something: good news (up,
   done, CQC Good) and the CardKira ribbon. Tomato text is the darker #b3381a, readable on white. */
:root {
  --bg: #f6f3ee; --surface: #ffffff; --surface-2: #f1ede6; --line: #e5dfd5; --ink: #172033; --muted: #5d6474; --heading: #1b2540;
  --primary: #b3381a; --primary-ink: #ffffff; --primary-soft: #fde6dc;
  --chrome: #1b2540; --chrome-2: #26325a; --chrome-ink: #dde3f1; --chrome-muted: #9ea8c6; --topbar: var(--chrome); --side: #ffffff;
  --ck-a1: #f0643c; --ck-a1-text: #b3381a; --ck-deep: #1b2540; --ck-deep-ink: #dde3f1; --ck-on: #220b03; --ck-edge: #15192b; --ck-shadow: #15192b;
  --sel: #ffe0d4; --sel-ink: #9a2f14;
}
:root[data-theme="dark"] {
  --bg: #0f131d; --surface: #171d2b; --surface-2: #1e2536; --line: #2b3448; --ink: #e8ebf3; --muted: #a3abc0; --heading: #eef0f6;
  --primary: #ff8a65; --primary-ink: #2a0d03; --primary-soft: #3a1d14;
  --chrome: #0d1220; --chrome-2: #192137; --chrome-ink: #dde3f1; --chrome-muted: #9ea8c6; --topbar: #0d1220; --side: #121827;
  --ck-a1-text: #ff8a65; --ck-deep: #0d1220; --ck-edge: #a9b3cc; --ck-shadow: #000; --sel: #4a2418; --sel-ink: #ffc2ad;
}
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] {
    --bg: #0f131d; --surface: #171d2b; --surface-2: #1e2536; --line: #2b3448; --ink: #e8ebf3; --muted: #a3abc0; --heading: #eef0f6;
    --primary: #ff8a65; --primary-ink: #2a0d03; --primary-soft: #3a1d14;
    --chrome: #0d1220; --chrome-2: #192137; --chrome-ink: #dde3f1; --chrome-muted: #9ea8c6; --topbar: #0d1220; --side: #121827;
    --ck-a1-text: #ff8a65; --ck-deep: #0d1220; --ck-edge: #a9b3cc; --ck-shadow: #000; --sel: #4a2418; --sel-ink: #ffc2ad;
  }
}

/* v0.10.241: the last greens: the calling-session band, the round initials, the sign-in pages */
.session-bar { background: var(--chrome); color: var(--chrome-ink); }
.avatar { background: linear-gradient(135deg, #3d4c7d, #1b2540); color: #ffffff; }
.avatar.cl { background: linear-gradient(135deg, #ffb092, #f0643c); color: #220b03; }
.avatar.group { background: var(--primary-soft); color: var(--primary); }
.auth-wrap { --primary: #f0643c; --primary-ink: #220b03; --primary-soft: rgba(240, 100, 60, .16); }
.auth-wrap::before { background: #f0643c; opacity: .2; }
.auth-wrap::after { background: #5b6fae; opacity: .22; }
.auth-wrap .btn.primary { background: #f0643c; color: #220b03; border: 2px solid #15192b; box-shadow: 3px 3px 0 #000; }
.auth-wrap a { color: #ffa98a; }

/* v0.10.242: the calendar-sync and Insights illustrations without green (ink and tomato, like the rest since v0.10.241) */
.sa-cal { fill: #fdeee7; stroke: #f3b8a2; }
.sa-top { fill: #1b2540; }
.sa-ring { stroke: #3d4c7d; }
.sa-dot { fill: #f0643c; }
.ha-a { fill: #f8c9b4; } .ha-b { fill: #1b2540; } .ha-c { fill: #cdd3e6; } .ha-d { fill: #f0643c; }
:root[data-theme="dark"] .sa-cal { fill: #2a1f22; stroke: #7a3d2c; }
:root[data-theme="dark"] .sa-top, :root[data-theme="dark"] .sa-ring { fill: #3d4c7d; stroke: #8f9ccc; }
:root[data-theme="dark"] .ha-b { fill: #8f9ccc; } :root[data-theme="dark"] .ha-c { fill: #3a4566; } :root[data-theme="dark"] .ha-a { fill: #9a4a33; }
@media (prefers-color-scheme: dark) {
  :root[data-theme="auto"] .sa-cal { fill: #2a1f22; stroke: #7a3d2c; }
  :root[data-theme="auto"] .sa-top, :root[data-theme="auto"] .sa-ring { fill: #3d4c7d; stroke: #8f9ccc; }
  :root[data-theme="auto"] .ha-b { fill: #8f9ccc; } :root[data-theme="auto"] .ha-c { fill: #3a4566; } :root[data-theme="auto"] .ha-a { fill: #9a4a33; }
}

/* v0.10.243: the page tells the browser which colours it shows. Light is "only light": a phone set to dark (Chrome's or
   Samsung Internet's own dark mode, the Android app) then leaves it alone instead of darkening it by itself, which gave
   wrong colours and made light impossible to choose. Dark is dark, by choice or by following the device. */
:root, :root[data-theme="light"] { color-scheme: only light; }
:root[data-theme="dark"] { color-scheme: dark; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { color-scheme: dark; } }

/* v0.10.244: a calmer, more grown-up look (same ink and tomato). Thin soft outlines and soft shadows instead of 2px dark
   outlines with hard offset shadows; tomato only means "do this" (main buttons, what is selected); problems (overdue,
   wrong number) in a cooler crimson so they never look like a button; the demo band and the call results neutral. */
:root { --ck-edge: #ddd6ca; --ck-shadow: transparent; --soft-sh: 0 1px 2px rgba(23, 32, 51, .06), 0 6px 18px rgba(23, 32, 51, .06);
  --danger: #be123c; --danger-soft: #ffe4e8; --dk-or: #d6264f; --dk-now: #eef2fb; }
:root[data-theme="dark"] { --ck-edge: #333d55; --soft-sh: 0 1px 2px rgba(0, 0, 0, .3); --danger: #fb7185; --danger-soft: #3b1520; --dk-or: #fb7185; --dk-now: #1f2a44; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] { --ck-edge: #333d55; --soft-sh: 0 1px 2px rgba(0, 0, 0, .3); --danger: #fb7185; --danger-soft: #3b1520; --dk-or: #fb7185; --dk-now: #1f2a44; } }
.sidenav .brand-logo, .sidenav .navlink.active { box-shadow: none; }
.btn.primary, .now-panel .np-btn, .auth-wrap .btn.primary { border: 1px solid transparent; box-shadow: 0 1px 2px rgba(23, 32, 51, .14); }
.btn.primary:not([disabled]):hover, .now-panel .np-btn:hover { transform: none; box-shadow: 0 4px 12px rgba(240, 100, 60, .3); }
.btn.primary:not([disabled]):active { transform: none; box-shadow: 0 1px 2px rgba(23, 32, 51, .14); }
.now-panel.kira-note, .dash-kpi, .deck .icard { border-width: 1px; box-shadow: var(--soft-sh); }
.deck-behind, .deck-pile .pc, .ledger .dot { border-width: 1px; }
.deck-tab { top: -1px; border-width: 1px; border-top: 0; }
.deck-pile .pc::before { left: -1px; border-width: 1px; border-left: 0; }
.ledger { border-top-width: 1px; }
/* the demo band: calm blue-grey, not yellow */
.demo-strip { background: var(--info-soft); border-color: color-mix(in srgb, var(--info) 22%, transparent); }
/* call results: plain white buttons with dark text; colour only once chosen, crimson only for the bad ones */
.session-card .outcome-keys .g-spoke .chip[aria-keyshortcuts], .outcome-keys .chip { background: var(--surface); border-color: var(--line); color: var(--ink); }
.outcome-keys .g-spoke .chip { border-left: 1.5px solid var(--line); }
.outcome-keys .chip:hover { border-color: color-mix(in srgb, var(--ink) 35%, transparent); box-shadow: var(--soft-sh); }
.outcome-keys .chip.warn { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 35%, transparent); }
.outcome-keys .chip.warn:hover { border-color: var(--danger); box-shadow: var(--soft-sh); }
.outcome-keys .chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); box-shadow: none; }
.outcome-keys .chip.warn[aria-pressed="true"] { background: var(--danger); border-color: var(--danger); color: #fff; }
:root[data-theme="dark"] .outcome-keys .chip.warn[aria-pressed="true"] { color: #2a0610; }
@media (prefers-color-scheme: dark) { :root[data-theme="auto"] .outcome-keys .chip.warn[aria-pressed="true"] { color: #2a0610; } }

/* v0.10.245: on a phone, More holds the screen while it is open. The page behind stops scrolling (the client saw the
   Calendar keep scrolling under it), a light veil covers it, and a tap on the veil closes More. Scrolling inside More
   never passes on to the page. */
@media (max-width: 820px) {
  html:has(.more-sheet:not(.hidden)) { overflow: hidden; }
  html:has(.more-sheet:not(.hidden)) body::after { content: ''; position: fixed; inset: 0; z-index: 39; background: rgba(10, 14, 24, .35); }
  .more-sheet { overscroll-behavior: contain; }
}

/* v0.10.246: WhatsApp message templates: the list, a blank shown as what fills it, the new-template window */
.wa-tpls { max-width: 860px; margin: 0 auto; padding: 1.25rem; display: grid; gap: .9rem; }
.wa-tpls-top { align-items: center; gap: .5rem; flex-wrap: wrap; }
.wa-tpls-top h2 { margin: 0; }
.wa-tpl { display: grid; gap: .55rem; }
.wa-tpl-head { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; }
.wa-tpl-body { margin: 0; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.wa-blank { display: inline-block; padding: 0 .4rem; border-radius: 6px; background: var(--info-soft); color: var(--info); font-size: .9em; font-weight: var(--fw-emph); line-height: 1.5; }
.wa-blank.filled { background: transparent; color: inherit; padding: 0; font-weight: inherit; font-size: inherit; }
.wa-tpl-fills { display: flex; flex-wrap: wrap; gap: .5rem .9rem; padding-top: .45rem; border-top: 1px solid var(--line); }
.wa-tpl-fill { display: grid; gap: .15rem; }
.wa-blank-row { display: grid; grid-template-columns: auto minmax(0, 1fr) minmax(0, 1fr); gap: .5rem; align-items: center; }
.wa-preview { margin: .3rem 0 0; background: #d9fdd3; color: #111b21; }
.wa-tpl-new { width: min(560px, 100%); }
.wa-tpl-new .row.wrap > .field { flex: 1 1 200px; min-width: 0; }
.wa-blank-row select, .wa-blank-row input { min-width: 0; width: 100%; }
.wa-window .btn { margin-left: .4rem; }
@media (max-width: 600px) { .wa-blank-row { grid-template-columns: auto minmax(0, 1fr); } .wa-blank-row input { grid-column: 1 / -1; } }
/* v0.10.247: the sign-in page follows Light / Dark / Match device like the rest of the app (it was always dark) */
:root[data-theme="light"] .auth-wrap { --bg: inherit; --surface: inherit; --surface-2: inherit; --ink: inherit; --muted: inherit; --line: inherit; --danger: inherit; --danger-soft: inherit; --warn: inherit; --warn-soft: inherit; --ok: inherit; --ok-soft: inherit; --info: inherit; --info-soft: inherit; --shadow: 0 24px 60px -28px rgba(20, 30, 60, .28); color-scheme: only light; background-color: var(--bg); background-image: linear-gradient(rgba(20, 30, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 30, 60, .05) 1px, transparent 1px); background-size: 64px 64px; }
:root[data-theme="light"] .auth-wrap input, :root[data-theme="light"] .auth-wrap select, :root[data-theme="light"] .auth-wrap textarea { border-color: var(--line); }
:root[data-theme="light"] .auth-wrap a { color: #b3381a; }
@media (prefers-color-scheme: light) {
:root[data-theme="auto"] .auth-wrap { --bg: inherit; --surface: inherit; --surface-2: inherit; --ink: inherit; --muted: inherit; --line: inherit; --danger: inherit; --danger-soft: inherit; --warn: inherit; --warn-soft: inherit; --ok: inherit; --ok-soft: inherit; --info: inherit; --info-soft: inherit; --shadow: 0 24px 60px -28px rgba(20, 30, 60, .28); color-scheme: only light; background-color: var(--bg); background-image: linear-gradient(rgba(20, 30, 60, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(20, 30, 60, .05) 1px, transparent 1px); background-size: 64px 64px; }
:root[data-theme="auto"] .auth-wrap input, :root[data-theme="auto"] .auth-wrap select, :root[data-theme="auto"] .auth-wrap textarea { border-color: var(--line); }
:root[data-theme="auto"] .auth-wrap a { color: #b3381a; }
}

/* v0.10.247: the strip offering a new version (only when someone is typing; otherwise the app reloads by itself) */
.update-strip { position: fixed; left: .75rem; right: .75rem; margin: 0 auto; width: fit-content; bottom: calc(5.5rem + env(safe-area-inset-bottom, 0px)); z-index: 200; display: flex; align-items: center; gap: .8rem; max-width: calc(100vw - 1.5rem); padding: .6rem .7rem .6rem 1rem; border-radius: 14px; background: #1b2540; color: #fff; box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .45); font-size: .9rem; }
.update-strip button { flex: none; padding: .4rem .9rem; border: 0; border-radius: 999px; background: #fff; color: #1b2540; font: inherit; font-weight: 700; cursor: pointer; }

/* v0.10.249: ready-made campaign designs: a grid of cards, each with a small picture of the email */
.cz-designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: .8rem; max-height: 62vh; overflow: auto; padding: 2px; }
.cz-design { display: grid; grid-template-rows: auto 1fr auto; gap: .5rem; padding: .7rem; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); }
.cz-design .btn { justify-self: start; }
.cz-design-text { display: grid; gap: .15rem; }
.cz-mini { height: 150px; overflow: hidden; padding: .7rem .75rem; border-radius: 8px; background: #ffffff; border: 1px solid #e3e7e4; display: flex; flex-direction: column; align-items: stretch; gap: .3rem; font-family: Arial, sans-serif; color: #2b332e;
  -webkit-mask-image: linear-gradient(#000 78%, transparent); mask-image: linear-gradient(#000 78%, transparent); }
.cz-mini-h { font-weight: 700; font-size: 12px; line-height: 1.25; }
.cz-mini-t { font-size: 10px; line-height: 1.35; color: #4b554f; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cz-mini > * { flex: none; }
.cz-mini-b { align-self: flex-start; font-size: 10px; font-weight: 700; padding: .15rem .5rem; border-radius: 5px; background: #0b7a4b; color: #fff; }
.cz-mini-hr { border: 0; border-top: 1px solid #dfe4e1; margin: .1rem 0; width: 100%; }
.cz-mini-sp { height: 4px; }

/* v0.10.250: white label. An agency's brand: CardKira's own bits hidden, its logo and colour in their place. */
.wl .ck-sig, .wl .ck-apps, .wl .ck-signin, .wl .ck-splash-fan, .wl .wl-hide, .wl .ck-site-banner { display: none !important; }
.wl-splash-icon { width: 72px; height: 72px; border-radius: 16px; display: block; margin: 0 auto 10px; }
.wl-brand { display: flex; align-items: center; min-height: 44px; }
.wl-brand-logo { max-height: 40px; max-width: 170px; object-fit: contain; display: block; background: #ffffff; border-radius: 8px; padding: 3px 8px; box-sizing: content-box; }
.collapsed .wl-brand-logo { max-width: 40px; object-fit: cover; object-position: left center; }
.wl-auth-brand img { max-height: 64px; max-width: 240px; object-fit: contain; display: block; }
.wl .auth-wrap { --primary: var(--ck-a1); --primary-ink: var(--ck-on); --primary-soft: color-mix(in srgb, var(--ck-a1) 16%, transparent); }
.wl .auth-wrap .btn.primary { background: var(--ck-a1); color: var(--ck-on); }
.wl .auth-wrap::before { background: var(--ck-a1); }
.wl .auth-wrap a { color: var(--ck-a1); }
.wl .avatar.cl { background: var(--primary-soft); color: var(--primary); }
/* the Resellers page and the agency's White label page */
.wl-swatch { display: inline-block; width: 12px; height: 12px; border-radius: 4px; margin-right: .45rem; vertical-align: -1px; border: 1px solid var(--line); }
.wl-swatch.big { width: 40px; height: 40px; border-radius: 10px; margin: 0; }
.wl-table td.n { text-align: right; font-variant-numeric: tabular-nums; }
.wl-head { display: flex; align-items: center; gap: .8rem; }
.wl-logo-sm { max-height: 44px; max-width: 160px; object-fit: contain; }
.wl-icon-sm { width: 44px; height: 44px; border-radius: 10px; }
.wl-clients { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; }
.wl-clients li { display: flex; align-items: center; gap: .4rem; padding: .45rem .6rem; border: 1px solid var(--line); border-radius: 10px; }
.wl-clients li .btn { margin-left: auto; }
.wl-danger { border-top: 1px solid var(--line); padding-top: .8rem; align-items: center; }
.wl-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 1rem; align-items: start; }
@media (max-width: 900px) { .wl-grid { grid-template-columns: minmax(0, 1fr); } }
.wl-grid .row.wrap > .field { flex: 1 1 220px; min-width: 0; }
.wl-pics { gap: 1rem; }
.wl-pic { flex: 1 1 220px; display: grid; gap: .35rem; align-content: start; padding: .7rem; border: 1px dashed var(--line); border-radius: 12px; }
.wl-preview { display: grid; grid-template-columns: 120px 1fr; min-height: 150px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 12px; }
.wl-prev-side { background: #1b2540; color: #dde3f1; padding: .6rem; display: grid; gap: .35rem; align-content: start; }
.wl-prev-logo { max-width: 100%; max-height: 30px; object-fit: contain; background: #fff; border-radius: 6px; padding: 2px 4px; }
.wl-prev-name { display: flex; align-items: center; gap: .35rem; } .wl-prev-name img { width: 20px; height: 20px; border-radius: 5px; }
.wl-prev-item { padding: .25rem .45rem; border-radius: 6px; } .wl-prev-item.on { background: var(--wl); color: #fff; }
.wl-prev-main { padding: .8rem; display: grid; gap: .6rem; align-content: start; background: var(--bg); }
.wl-prev-btn { justify-self: start; color: #fff; padding: .35rem .7rem; border-radius: 8px; font-weight: 600; }
.wl-guide ol { display: grid; gap: .7rem; padding-left: 1.2rem; margin: 0; }
.wl-guide ul { display: grid; gap: .45rem; padding-left: 1.2rem; margin: 0; }
.wl-dns { display: grid; gap: .35rem; margin: .5rem 0; padding: .7rem; border-radius: 10px; background: var(--surface-2); }
.wl-dns > div { display: grid; grid-template-columns: 11rem auto auto; gap: .5rem; align-items: center; justify-content: start; }
.wl-dns code { font-size: 14px; padding: .15rem .45rem; border-radius: 6px; background: var(--surface); border: 1px solid var(--line); overflow-wrap: anywhere; }
@media (max-width: 600px) { .wl-dns > div { grid-template-columns: 1fr auto; } .wl-dns > div > span { grid-column: 1 / -1; } }
.wl .auth-wrap .card::before { background: var(--ck-a1); } /* v0.10.250: the agency's colour, not the CardKira six */

/* v0.10.254: the affiliate's own page (public/affiliate.html) */
.aff-body { background: var(--bg); min-height: 100vh; margin: 0; }
.aff-top { display: flex; align-items: center; justify-content: space-between; gap: 1rem; max-width: 980px; margin: 0 auto; padding: 1rem 1.25rem; }
.aff-logo { display: flex; align-items: center; gap: .5rem; color: var(--ink); text-decoration: none; }
.aff-logo b { font-size: 20px; font-weight: 700; letter-spacing: -.02em; } .aff-logo span { color: var(--muted); font-size: 14px; padding-left: .35rem; border-left: 1px solid var(--line); }
.aff-main { max-width: 980px; margin: 0 auto; padding: 0 1.25rem 2rem; display: grid; gap: 1rem; }
.aff-card { max-width: 420px; margin: 8vh auto 0; width: 100%; }
.aff-hello h1 { margin: .5rem 0 0; }
.aff-link { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; }
.aff-link code { flex: 1 1 260px; padding: .55rem .75rem; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 15px; overflow-wrap: anywhere; }
.aff-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .75rem; }
.aff-tile { display: grid; gap: .15rem; padding: .9rem 1rem; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.aff-tile span { color: var(--muted); font-size: 13px; } .aff-tile b { font-size: 24px; font-variant-numeric: tabular-nums; } .aff-tile small { color: var(--muted); font-size: 12px; }
.aff-table { width: 100%; border-collapse: collapse; } .aff-table th, .aff-table td { text-align: left; padding: .5rem .4rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.aff-table th { color: var(--muted); font-size: 13px; font-weight: 600; } .aff-table .n { text-align: right; font-variant-numeric: tabular-nums; } .aff-table small { color: var(--muted); }
.aff-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: .75rem; align-items: end; }
.aff-form .error, .aff-form .btn { grid-column: 1 / -1; justify-self: start; }
.aff-foot { max-width: 980px; margin: 0 auto; padding: 1rem 1.25rem 2rem; color: var(--muted); font-size: 13px; }
.aff-foot a { color: var(--muted); }
@media (max-width: 600px) { .aff-table { font-size: 14px; } }
