:root { --sab: env(safe-area-inset-bottom, 0px); }  /* bottom safe area; on the iOS Home Screen app the page script raises it to the measured home bar strip */
:root {
  color-scheme: light dark;
  --bg: #F2F7F4; --surface: #FFFFFF; --surface-2: #F7FBF9; --ink: #0F1B17; --ink-2: #33433D; --muted: #61716B; --line: #DCE6E1;
  --mint: #9DEBCB; --mint-soft: #EAF8F1; --mint-mid: #D6F5E7; --mint-strong: #23B07E; --accent: #0A6B4C;
  --btn: #0F1B17; --btn-ink: #FFFFFF; --btn-hover: #1E332B; --side: #0F1B17;
  --good: #23B07E; --warn: #E8A33D; --bad: #D64545;
  --shadow: 0 1px 2px rgba(15, 27, 23, 0.06), 0 8px 24px rgba(15, 27, 23, 0.06);
  --display: 'Outfit', system-ui, sans-serif; --body: 'Instrument Sans', system-ui, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
  --r: 20px; --ease: cubic-bezier(.2, .7, .2, 1);
  /* Fills are NEVER var(--ink): --ink is a TEXT colour and turns light in dark mode, which put white text on pale boxes (the whited out look).
     --fill/--on-fill is a dark panel with its text; --sel/--on-sel is a selected button or chip. test/contrast.test.js enforces it. */
  --fill: #0F1B17; --on-fill: #FFFFFF; --sel: #0F1B17; --on-sel: #FFFFFF;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0B1411; --surface: #111D19; --surface-2: #162620; --ink: #E7F1EC; --ink-2: #B4C5BD; --muted: #85988F; --line: #23352E;
    --mint-soft: rgba(157, 235, 203, 0.08); --mint-mid: rgba(157, 235, 203, 0.2); --accent: #9DEBCB;
    --btn: #9DEBCB; --btn-ink: #0F1B17; --btn-hover: #BDF3DC; --side: #07100D;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 10px 30px rgba(0, 0, 0, 0.25);
    --fill: #1B3329; --on-fill: #F1F8F4; --sel: #9DEBCB; --on-sel: #0F1B17;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.55 var(--body); -webkit-font-smoothing: antialiased; }
h1, h2, h3 { font-family: var(--display); letter-spacing: -0.015em; line-height: 1.15; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; }
h2 { font-size: 22px; font-weight: 600; }
h3 { font-size: 17px; font-weight: 600; }
a { color: var(--accent); }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; color: var(--muted); }
.mono { font-family: var(--mono); }

/* Buttons and fields */
.btn { font: 600 15px var(--body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 11px 20px;
  border-radius: 12px; border: 1px solid transparent; cursor: pointer; text-decoration: none; transition: transform .15s var(--ease), background .15s, box-shadow .15s; white-space: nowrap; }
.btn:active { transform: translateY(1px) scale(.99); }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-xl svg { width: 24px; height: 24px; }
.btn:disabled { opacity: .55; cursor: progress; }
.btn-primary { background: var(--btn); color: var(--btn-ink); }
.btn-primary:hover:not(:disabled) { background: var(--btn-hover); }
.btn-mint { background: var(--mint); color: #0F1B17; }
.btn-mint:hover:not(:disabled) { background: #B6F1D8; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--mint-soft); }
.btn-danger { background: transparent; color: var(--bad); border-color: color-mix(in srgb, var(--bad) 40%, transparent); }
.btn-sm { min-height: 38px; padding: 7px 14px; font-size: 14px; border-radius: 10px; }
.btn-xl { min-height: 64px; padding: 16px 24px; font-size: 18px; border-radius: 16px; width: 100%; }
.field { display: grid; gap: 6px; }
.field > span { font-size: 14px; font-weight: 600; color: var(--ink-2); }
input, select, textarea { font: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; min-height: 48px; width: 100%; }
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--mint-strong); outline-offset: 1px; border-color: transparent; }
input[type=checkbox] { width: 22px; height: 22px; min-height: 0; accent-color: var(--mint-strong); }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 16px; }
.form-grid .span-all { grid-column: 1 / -1; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }

/* App shell: grouped rail on the left, command bar on top, dotted map-grid canvas. */
.hub { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--side); color: #DCE8E2; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 16px 12px 14px;
  overflow-y: auto; scrollbar-width: thin; scrollbar-color: #2A3D36 transparent; z-index: 60; }
.rail-head { display: flex; align-items: center; justify-content: space-between; padding: 4px 8px 14px; margin-bottom: 4px; border-bottom: 1px dashed rgba(157, 235, 203, .18); }
.rail-brand img { height: 24px; width: auto; }
.rail-grp { display: grid; gap: 1px; margin-top: 6px; }
.rail-grp > p { font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #5E786D; margin: 8px 10px 5px; display: flex; align-items: center; gap: 8px; }
.rail-grp > p::after { content: ''; flex: 1; height: 1px; background: rgba(157, 235, 203, .1); }
.rail nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 9px; color: #A9BDB4; text-decoration: none; font-weight: 600; font-size: 14.5px; transition: background .15s, color .15s; }
.rail nav a svg { width: 18px; height: 18px; flex: none; }
.rail nav a:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.rail nav a.is-active { color: #0F1B17; background: var(--mint); }
.rail nav a.is-active::before { content: ''; position: absolute; left: -12px; top: 7px; bottom: 7px; width: 4px; border-radius: 0 4px 4px 0; background: var(--mint); }
.rail nav a.is-active .nbadge { background: #0F1B17; color: var(--mint); }
.rail nav a .nbadge[hidden] { display: none; }
.rail-foot { margin-top: auto; display: grid; gap: 2px; padding-top: 10px; border-top: 1px dashed rgba(157, 235, 203, .18); }
.rail-foot button { display: flex; align-items: center; gap: 10px; background: none; border: 0; color: #7F978C; font: 600 13px var(--body); cursor: pointer; padding: 8px 10px; border-radius: 8px; text-align: left; }
.rail-foot button svg { width: 16px; height: 16px; }
.rail-foot button:hover { color: #fff; background: rgba(255, 255, 255, .05); }
.rail-close, .cmd-menu { display: none !important; }
.deck { min-width: 0; display: flex; flex-direction: column; min-height: 100vh; }
.cmd { position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 14px; min-height: 64px; padding: 10px clamp(16px, 3vw, 32px);
  background: color-mix(in srgb, var(--bg) 86%, transparent); backdrop-filter: blur(14px) saturate(1.2); -webkit-backdrop-filter: blur(14px) saturate(1.2); border-bottom: 1px solid var(--line); }
.cmd-title { display: flex; flex-direction: column; min-width: 0; line-height: 1.15; }
.cmd-title small { font: 600 10.5px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.cmd-title b { font: 650 18px var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(400px, 34vw); height: 40px; padding: 0 10px 0 12px; border: 1px solid var(--line); border-radius: 10px;
  background: var(--surface); color: var(--muted); font: 500 14px var(--body); cursor: pointer; transition: border-color .15s; }
.cmd-search:hover { border-color: var(--mint-strong); }
.cmd-search svg { width: 17px; height: 17px; flex: none; }
.cmd-search span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
kbd { font: 600 11px var(--mono); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 6px; background: var(--surface-2); color: var(--ink-2); }
.cmd-search kbd { margin-left: auto; }
.cmd-right { display: flex; align-items: center; gap: 8px; }
.cmd-ico { position: relative; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; padding: 0; text-decoration: none; }
.cmd-ico svg { width: 19px; height: 19px; }
.cmd-ico:hover { border-color: var(--mint-strong); color: var(--ink); }
.cmd-ico .nbadge { position: absolute; top: -6px; right: -6px; margin: 0; min-width: 18px; padding: 0 5px; font-size: 10.5px; line-height: 17px; }
.cmd-ico .nbadge[hidden] { display: none; }
.cmd-ico.warn { color: #9A5E05; border-color: rgba(232, 163, 61, .6); background: rgba(232, 163, 61, .14); animation: wpulse 2.4s ease-in-out infinite; }
@keyframes wpulse { 50% { box-shadow: 0 0 0 5px rgba(232, 163, 61, .14); } }
.stpill { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 12px 0 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font: 600 13.5px var(--body); color: var(--ink); cursor: pointer; white-space: nowrap; }
.stpill i, .dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
.stpill .t { font: 500 11.5px var(--mono); color: var(--muted); }
.stpill[data-tone=good] i, .dot.good { background: var(--good); box-shadow: 0 0 0 3px rgba(35, 176, 126, .18); }
.stpill[data-tone=warn] i, .dot.warn { background: var(--warn); box-shadow: 0 0 0 3px rgba(232, 163, 61, .18); }
.stpill[data-tone=info] i, .dot.info { background: #4E7FD8; box-shadow: 0 0 0 3px rgba(78, 127, 216, .18); }
.stpill[data-tone=gray] i, .dot.gray { background: #9AA8A2; }
.stpill[data-tone=live] i, .dot.live { background: var(--bad); animation: lpulse 1.4s ease-in-out infinite; }
.stpill[data-tone=live] { border-color: rgba(214, 69, 69, .45); }
@keyframes lpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(214, 69, 69, .5); } 50% { box-shadow: 0 0 0 5px rgba(214, 69, 69, 0); } }
.pmenu-cap { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 6px 10px 4px; }
.pmenu-note { font-size: 12px; color: var(--muted); margin: 6px 10px 4px; max-width: 240px; }
.stmenu button.is-on { background: var(--mint-soft); }
.main { padding: 26px clamp(16px, 3vw, 36px) 72px; min-width: 0; max-width: 1440px; width: 100%; }
.side-scrim { position: fixed; inset: 0; background: rgba(4, 12, 9, 0.55); z-index: 55; backdrop-filter: blur(2px); }
body.hubbg { background-color: var(--bg); background-image: radial-gradient(circle at 1px 1px, color-mix(in srgb, var(--accent) 15%, transparent) 1px, transparent 0); background-size: 22px 22px; background-attachment: fixed; }
/* Command palette */
.pal-wrap { position: fixed; inset: 0; z-index: 140; background: rgba(6, 14, 11, .45); backdrop-filter: blur(3px); display: grid; justify-items: center; align-items: start; padding: 12vh 16px 16px; }
.pal { width: min(640px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 80px rgba(6, 14, 11, .35); overflow: hidden; animation: rise .18s var(--ease) both; }
.pal-in { display: flex; align-items: center; gap: 10px; padding: 6px 14px; border-bottom: 1px solid var(--line); }
.pal-in svg { width: 19px; height: 19px; color: var(--muted); flex: none; }
.pal-in input { border: 0; background: none; min-height: 52px; font-size: 17px; padding: 0; outline: none; }
.pal-in input:focus { outline: none; }
.pal-list { max-height: 52vh; overflow-y: auto; padding: 6px; }
.pal-row { display: grid; grid-template-columns: 64px minmax(0, auto) minmax(0, 1fr); align-items: center; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 10px; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; }
.pal-row b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row .small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pal-row.is-sel, .pal-row:hover { background: var(--mint-soft); }
.pal-kind { font: 600 10.5px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.pal-foot { display: flex; gap: 16px; flex-wrap: wrap; padding: 9px 14px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); background: var(--surface-2); }
@media (max-width: 1100px) { .cmd-search span { display: none; } .cmd-search { width: 40px; padding: 0; justify-content: center; } .cmd-search kbd { display: none; } }
@media (max-width: 900px) {
  .hub { grid-template-columns: 1fr; }
  .cmd { min-height: 58px; padding: calc(8px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 8px calc(12px + env(safe-area-inset-left)); gap: 10px; }
  .cmd-menu { display: inline-grid !important; }
  .cmd-title b { font-size: 16px; }
  .stpill .lbl, .stpill .t, .hide-s { display: none; }
  .stpill { width: 40px; padding: 0; justify-content: center; }
  .rail { position: fixed; top: 0; bottom: 0; left: 0; width: min(86vw, 300px); height: auto; transform: translateX(-104%); transition: transform .28s var(--ease);
    padding: calc(14px + env(safe-area-inset-top)) 12px calc(16px + var(--sab)) calc(12px + env(safe-area-inset-left)); box-shadow: 0 0 40px rgba(0, 0, 0, .35); }
  .rail.is-open { transform: none; }
  .rail-close { display: inline-grid !important; background: transparent; border-color: rgba(255, 255, 255, .14); color: #E7F1EC; }
  .rail nav a { padding: 12px; font-size: 15.5px; }
  body.menu-open { overflow: hidden; }
  .main { padding: 18px calc(14px + env(safe-area-inset-right)) calc(96px + var(--sab)) calc(14px + env(safe-area-inset-left)); }
}
@media (prefers-reduced-motion: reduce) { .rail { transition: none; } }


.portal { min-height: 100vh; padding-bottom: calc(120px + var(--sab)); }
.p-top { background: var(--side); color: #E7F1EC; padding: calc(18px + env(safe-area-inset-top)) 20px 26px; position: relative; overflow: hidden; }
.p-top::after { content: ''; position: absolute; right: -30%; top: -60%; width: 80%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(157, 235, 203, 0.22), transparent 65%); pointer-events: none; animation: drift 14s ease-in-out infinite alternate; }
.p-top-in { max-width: 820px; margin: 0 auto; position: relative; z-index: 1; }
.p-top .row { justify-content: space-between; }
.p-top img { height: 24px; width: auto; }
.p-top h1 { color: #fff; margin: 18px 0 2px; font-size: clamp(26px, 6vw, 36px); }
.p-top p { margin: 0; color: #A6B8AF; }
.p-main { max-width: 820px; margin: -14px auto 0; padding: 0 16px; position: relative; z-index: 2; display: grid; gap: 18px; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); padding: 8px 8px calc(8px + var(--sab)); }
.tabbar a { display: grid; justify-items: center; gap: 4px; padding: 8px 4px; border-radius: 12px; color: var(--muted); text-decoration: none; font-size: 12.5px; font-weight: 600; }
.tabbar a svg { width: 24px; height: 24px; }
.tabbar a.is-active { color: var(--accent); background: var(--mint-soft); }
@media (min-width: 900px) { .tabbar { max-width: 560px; margin: 0 auto 16px; border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); } }

/* Surfaces */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.card + .card { margin-top: 18px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-head h2, .card-head h3 { margin: 0; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.page-head h1 { margin: 0; }
.eyebrow { font: 500 12px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 0 0 6px; }
.badge { display: inline-flex; align-items: center; gap: 6px; font: 600 12px var(--body); padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); color: var(--accent); border: 1px solid var(--mint-mid); white-space: nowrap; }
.badge.warn { background: rgba(232, 163, 61, .14); color: #A86A0B; border-color: rgba(232, 163, 61, .35); }
.badge.bad { background: rgba(214, 69, 69, .12); color: var(--bad); border-color: rgba(214, 69, 69, .3); }
.badge.gray { background: var(--surface-2); color: var(--muted); border-color: var(--line); }
@media (prefers-color-scheme: dark) { .badge.warn { color: #F2C66B; } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty h3 { color: var(--ink); }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); gap: 14px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow); animation: rise .5s var(--ease) both; }
.stat:nth-child(2) { animation-delay: 60ms; } .stat:nth-child(3) { animation-delay: 120ms; } .stat:nth-child(4) { animation-delay: 180ms; } .stat:nth-child(5) { animation-delay: 240ms; }
.stat-num { font: 700 34px var(--display); line-height: 1.05; font-variant-numeric: tabular-nums; }
.stat-label { color: var(--muted); font-size: 14px; margin-top: 4px; }
.stat.hero { background: linear-gradient(150deg, #0F1B17, #163027); color: #fff; border-color: transparent; }
.stat.hero .stat-num { color: var(--mint); }
.stat.hero .stat-label { color: #A6B8AF; }
.progress { height: 10px; background: var(--mint-soft); border-radius: 99px; overflow: hidden; }
.progress > span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint-strong), var(--mint)); border-radius: 99px; transition: width 1s var(--ease); }

/* Client grid */
.clients { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 18px; }
.client-card { display: grid; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); text-decoration: none; color: inherit;
  transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; animation: rise .5s var(--ease) both; }
.client-card:hover { transform: translateY(-3px); border-color: var(--mint-mid); box-shadow: 0 14px 40px rgba(15, 27, 23, .12); }
.client-card h3 { margin: 0; font-size: 20px; }
.mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mini div { background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.mini b { display: block; font: 700 22px var(--display); }
.mini span { font-size: 12.5px; color: var(--muted); }

/* Tabs */
.tabs { display: flex; gap: 6px; overflow-x: auto; margin: 0 0 22px; padding-bottom: 2px; border-bottom: 1px solid var(--line); }
.tabs a { padding: 12px 16px; text-decoration: none; color: var(--muted); font-weight: 600; border-bottom: 3px solid transparent; white-space: nowrap; margin-bottom: -1px; }
.tabs a.is-active { color: var(--ink); border-color: var(--mint-strong); }

/* Lists */
.list { display: grid; gap: 10px; list-style: none; margin: 0; padding: 0; }
.item { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; animation: rise .35s var(--ease) both; }
.item.is-done .item-title { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--mint-strong); }
.item-title { font-weight: 600; }
.item-sub { font-size: 14px; color: var(--muted); }
.item-actions { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { background: var(--mint-soft); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn.off { opacity: .45; }
.check { width: 30px; height: 30px; border-radius: 9px; border: 2px solid var(--line); background: var(--surface); display: grid; place-items: center; cursor: pointer; color: transparent; transition: all .2s var(--ease); padding: 0; }
.check.on { background: var(--mint-strong); border-color: var(--mint-strong); color: #fff; animation: pop .35s var(--ease); }
.check svg { width: 16px; height: 16px; }
.item-edit { grid-column: 1 / -1; display: grid; gap: 10px; padding-top: 6px; }
.group-title { font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 22px 0 10px; }
.feed { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.feed li { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: start; padding: 12px 4px; border-bottom: 1px solid var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--accent); }
.feed .dot svg { width: 16px; height: 16px; }

/* Posts */
.posts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 18px; }
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); display: grid; animation: rise .45s var(--ease) both; }
.post-img { aspect-ratio: 4 / 3; background: var(--surface-2); overflow: hidden; }
.post-img img { width: 100%; height: 100%; object-fit: cover; }
.post-body { padding: 18px; display: grid; gap: 12px; }
.seg { display: inline-flex; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 4px; gap: 4px; }
.seg button { border: 0; background: transparent; color: var(--muted); font: 600 14px var(--body); padding: 8px 12px; border-radius: 9px; cursor: pointer; }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.caption { white-space: pre-wrap; background: var(--surface-2); border-radius: 12px; padding: 14px; font-size: 15px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { font-size: 12.5px; padding: 4px 10px; border-radius: 999px; background: var(--mint-soft); border: 1px solid var(--mint-mid); color: var(--accent); }
.drop { border: 2px dashed var(--mint-mid); border-radius: var(--r); padding: 26px; text-align: center; background: var(--mint-soft); cursor: pointer; display: grid; gap: 10px; justify-items: center; transition: border-color .2s; }
.drop:hover { border-color: var(--mint-strong); }
.drop svg { width: 40px; height: 40px; color: var(--accent); }
.drop img { max-height: 280px; border-radius: 14px; }

/* Reviews */
.kit { display: grid; grid-template-columns: 220px 1fr; gap: 24px; align-items: center; }
.kit .qr { background: #fff; border-radius: 16px; padding: 12px; border: 1px solid var(--line); }
@media (max-width: 640px) { .kit { grid-template-columns: 1fr; justify-items: center; text-align: center; } .kit .qr { width: 220px; } }
.channel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.channel .btn { flex-direction: column; min-height: 84px; gap: 6px; font-size: 15px; }
.channel svg { width: 26px; height: 26px; }
.copybox { display: flex; gap: 8px; align-items: center; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 8px 8px 14px; }
.copybox code { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 13px var(--mono); }

/* Map in the hub */
.gmap { position: relative; width: 100%; aspect-ratio: 1 / 1; max-width: 680px; overflow: hidden; border-radius: 16px; border: 1px solid var(--line);
  background: #EEF2EF linear-gradient(0deg, transparent 49.5%, #E3E9E5 50%, transparent 50.5%) 0 0 / 40px 40px; }
.gmap-tiles img { position: absolute; max-width: none; user-select: none; }
.gmap-heat { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; filter: blur(6px); transition: opacity .5s; }
.gmap-heat.is-on { opacity: 1; }
.gmap-markers { position: absolute; inset: 0; }
.gmap-pt { position: absolute; transform: translate(-50%, -50%); width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; padding: 0;
  font: 700 13px var(--body); color: #fff; border: 2px solid #fff; box-shadow: 0 1px 5px rgba(15, 27, 23, .4); cursor: default; }
.gmap-pt.is-new { animation: popc .45s var(--ease) both; }
.gmap-pt.band-top3 { background: #23B07E; } .gmap-pt.band-top10 { background: #F2B544; color: #0F1B17; } .gmap-pt.band-top20 { background: #E8833A; }
.gmap-pt.band-none { background: #D64545; font-size: 11px; } .gmap-pt.band-error, .gmap-pt.band-pending { background: #9AA5A1; }
.gmap-attr { position: absolute; right: 0; bottom: 0; background: rgba(255, 255, 255, .85); color: #33433D; font-size: 10px; padding: 2px 6px; border-top-left-radius: 6px; }
.gmap-attr a { color: #0A6B4C; }
.split { display: grid; grid-template-columns: minmax(0, 520px) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 980px) { .split { grid-template-columns: 1fr; } }
.legend { display: flex; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-top: 10px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; }
table { width: 100%; border-collapse: collapse; font-size: 15px; }
th, td { text-align: left; padding: 11px 12px; border-bottom: 1px solid var(--line); }
th { font-size: 12px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
tr.is-you td { background: var(--mint-soft); font-weight: 600; }
.table-wrap { overflow-x: auto; }

/* Auth */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: radial-gradient(90% 70% at 100% 0%, rgba(157, 235, 203, .25), transparent 60%), var(--bg); }
.auth-card { width: min(460px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 32px; box-shadow: var(--shadow); display: grid; gap: 18px; animation: rise .6s var(--ease) both; }
.auth-card img { height: 30px; width: auto; }
.logo-dark { display: none; }
@media (prefers-color-scheme: dark) { .logo-light { display: none; } .logo-dark { display: block; } }

/* CRM */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(260px, 100%), 1fr); gap: 14px; overflow-x: auto; padding-bottom: 10px; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 12px; min-height: 160px; display: flex; flex-direction: column; gap: 10px; transition: border-color .2s, background .2s; }
.col.drop-on { border-color: var(--mint-strong); background: var(--mint-soft); }
.col-head { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px; }
.col-body { display: grid; gap: 10px; align-content: start; }
.lead-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; cursor: grab; box-shadow: var(--shadow); transition: transform .15s var(--ease), border-color .15s; animation: rise .3s var(--ease) both; }
.lead-card:hover { transform: translateY(-2px); border-color: var(--mint-mid); }
.lead-card.dragging { opacity: .5; }
.outcomes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.outcomes.big .btn { min-height: 58px; justify-content: flex-start; white-space: normal; text-align: left; }
.kbd { font: 600 12px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 7px; margin-right: 4px; }
.dial-phone { font: 700 clamp(30px, 5vw, 44px) var(--display); letter-spacing: .01em; }
.dial-card { border-color: var(--mint-mid); }
@media (max-width: 640px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Feedback */
.toasts { position: fixed; left: 50%; bottom: calc(110px + var(--sab)); transform: translateX(-50%); z-index: 100; display: grid; gap: 8px; width: min(92vw, 440px); }
.toast { background: #0F1B17; color: #fff; border: 1px solid rgba(157, 235, 203, .3); border-radius: 14px; padding: 14px 18px; box-shadow: var(--shadow); animation: rise .3s var(--ease) both; font-weight: 600; }
.toast.err { border-color: rgba(214, 69, 69, .6); }
.err-text { color: var(--bad); font-size: 14px; }
.modal-bg { position: fixed; inset: 0; background: rgba(5, 10, 8, .55); z-index: 90; display: grid; place-items: center; padding: 16px; animation: fade .2s both; }
.modal { width: min(1000px, 100%); max-height: 92vh; overflow: auto; background: var(--surface); border-radius: 24px; padding: 28px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); animation: rise .35s var(--ease) both; }
.skeleton { background: linear-gradient(90deg, var(--surface-2), var(--mint-soft), var(--surface-2)); background-size: 200% 100%; animation: shimmer 1.2s linear infinite; border-radius: 14px; min-height: 120px; }
.spin { width: 22px; height: 22px; border: 3px solid var(--mint-mid); border-top-color: var(--mint-strong); border-radius: 50%; animation: spin .8s linear infinite; display: inline-block; }

@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { 50% { transform: scale(1.2); } }
@keyframes popc { 0% { transform: translate(-50%, -50%) scale(.2); opacity: 0; } 70% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes drift { to { transform: translate(-10%, 10%); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .rail, .cmd, .bbar, .side, .tabbar, .no-print, .toasts { display: none !important; } .hub { display: block; } .card { box-shadow: none; } }

/* ---------- Sales: scoring, filters, call prep ---------- */
.seg button.is-on { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
button.chip { cursor: pointer; font: 600 13px var(--body); padding: 6px 12px; background: var(--surface); color: var(--muted); border-color: var(--line); }
button.chip.on { background: var(--btn); color: var(--btn-ink); border-color: transparent; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ellip { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.grade { display: inline-grid; place-items: center; min-width: 40px; height: 40px; border-radius: 12px; font: 700 18px/1 var(--display); flex: none; position: relative; color: #fff; }
.grade small { position: absolute; bottom: -7px; right: -7px; font: 600 10px var(--mono); background: var(--surface); color: var(--ink-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 5px; }
.grade-a { background: var(--mint-strong); } .grade-b { background: #4C9A7C; } .grade-c { background: var(--warn); } .grade-d { background: #9AA8A2; }
.tz-tabs { display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px; padding-bottom: 2px; }
.tz { border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); border-radius: 12px; padding: 9px 14px; font: 600 14px var(--body); cursor: pointer; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.tz b { font-family: var(--mono); font-weight: 500; color: var(--muted); }
.tz.is-on { background: var(--btn); color: var(--btn-ink); border-color: transparent; } .tz.is-on b { color: inherit; opacity: .7; }
.tz .live, .ok-dot::before { width: 8px; height: 8px; border-radius: 50%; background: var(--mint-strong); display: inline-block; box-shadow: 0 0 0 3px rgba(35,176,126,.2); }
.ok-dot::before { content: ''; margin-right: 5px; vertical-align: 1px; }
.filterbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 10px; }
.filters { margin-bottom: 12px; }
.filt { grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); }
.leads-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.leads-table th { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.leads-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.leads-table tbody tr[data-id] { cursor: pointer; } .leads-table tbody tr[data-id]:hover { background: var(--mint-soft); }
.leads-table tr.grp td { background: var(--surface-2); font: 600 13px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-2); }
.th { background: none; border: 0; padding: 0; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); cursor: pointer; }
.bulk { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; background: var(--mint-soft); border: 1px solid var(--mint-mid); border-radius: 12px; padding: 6px 10px; }
.bulk select { min-height: 36px; }
.prep-head { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; }
.prep-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: center; margin-top: 14px; }
.snap { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.snap > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-width: 0; }
.snap-k { font: 600 11px var(--mono); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.snap-v { font: 700 22px var(--display); margin-top: 2px; }
.snap-s { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.minigrid { display: grid; gap: 4px; width: 132px; }
.mg { aspect-ratio: 1; border-radius: 8px; display: grid; place-items: center; font: 700 13px var(--display); color: #fff; }
.mg.top3 { background: #23B07E; } .mg.top10 { background: #E8A33D; } .mg.top20 { background: #E07B39; } .mg.none { background: #D64545; font-size: 10px; } .mg.err { background: #9AA8A2; }
.comps { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.probs { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.prob { border-left: 4px solid var(--warn); background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.prob.sev-high { border-left-color: var(--bad); } .prob.sev-low { border-left-color: #9AA8A2; }
.say { font-size: 14px; margin-top: 4px; color: var(--ink-2); font-style: italic; }
.script-body { background: var(--mint-soft); border: 1px solid var(--mint-mid); border-radius: 14px; padding: 14px 16px; margin-top: 10px; font-size: 16.5px; line-height: 1.6; }
.script-body p { margin: 0; } .script-body ol { margin: 0; padding-left: 20px; } .script-body li { margin-bottom: 6px; }
.objs { display: grid; gap: 6px; }
.obj { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; }
.obj summary { cursor: pointer; font-weight: 600; }
.obj p { margin: 8px 0 0; color: var(--ink-2); }
.dial-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 18px; align-items: start; }
.dial-left { display: grid; gap: 18px; }
.dial-prep { align-self: start; }
@media (max-width: 1100px) { .dial-grid { grid-template-columns: 1fr; } .dial-prep { position: static; max-height: none; } }
.upcoming { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 14px 18px; margin-bottom: 18px; }
.meet-card { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; background: var(--mint-soft); box-shadow: none; margin-bottom: 14px; padding: 14px 18px; }
.access { display: grid; gap: 10px; }
.access-item { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: start; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; cursor: pointer; }
.access-item input { width: 22px; height: 22px; margin-top: 2px; accent-color: var(--mint-strong); }
.access-item b { display: block; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 10px; }
.gallery figure { margin: 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.gallery img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.gallery .file { display: grid; place-items: center; aspect-ratio: 1; padding: 10px; text-align: center; font-weight: 600; }
.gallery figcaption { font-size: 12px; padding: 6px 8px; color: var(--muted); display: flex; gap: 6px; flex-wrap: wrap; }
ul.plain, ol.plain { padding-left: 20px; margin: 0 0 12px; } ul.plain li, ol.plain li { margin-bottom: 6px; }
.start-card { display: grid; gap: 4px; text-decoration: none; color: var(--ink); background: linear-gradient(150deg, var(--mint), #C9F4E2); border: 0; }
.start-card b { font: 700 20px var(--display); } .start-card span { color: #33433D; }

/* Texts */
.thread { display: flex; flex-direction: column; gap: 8px; padding: 8px 2px; }
.bub { max-width: 82%; padding: 9px 12px; border-radius: 14px; font-size: 15px; line-height: 1.4; overflow-wrap: anywhere; }
.bub > div { white-space: pre-wrap; }
.bub small { display: block; margin-top: 3px; font-size: 11px; opacity: .65; }
.bub.out { align-self: flex-end; background: var(--mint); color: #0F1B17; border-bottom-right-radius: 4px; }
.bub.in { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.bub .bad-text { color: #B42318; opacity: 1; }
.inbox-row { cursor: pointer; }
.nbadge { margin-left: auto; min-width: 20px; padding: 1px 6px; border-radius: 99px; background: var(--mint-strong); color: #04140E; font-size: 12px; font-weight: 700; text-align: center; }

/* Dashboard */
.home-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 18px; margin-top: 18px; }
.home-grid .card { margin: 0; }
.mini3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini3 > div { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: grid; gap: 2px; }
.mini3 b { font: 700 22px var(--display); }
.mini3 span { font-size: 12.5px; color: var(--muted); }
.pipe-bars { display: grid; gap: 8px; }
.pipe-bar { display: grid; grid-template-columns: 104px 1fr 36px; align-items: center; gap: 10px; text-decoration: none; color: inherit; font-size: 14px; }
.pipe-bar i { height: 10px; background: var(--surface-2); border-radius: 99px; overflow: hidden; border: 1px solid var(--line); }
.pipe-bar i b { display: block; height: 100%; background: var(--mint-strong); border-radius: 99px; min-width: 2px; transition: width .6s var(--ease); }
.pipe-bar em { font-style: normal; font-weight: 700; text-align: right; }

/* Client view */
.cv { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 28px; align-items: start; }
.cv-side { display: grid; gap: 14px; position: sticky; top: 20px; }
.cv-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.cv-tabs button { border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 8px 14px; font: 600 14px var(--body, inherit); cursor: pointer; color: var(--ink); }
.cv-tabs button.is-on { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.cv-notes { margin: 10px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.cv-phone { --k: .8; position: relative; width: calc(390px * var(--k) + 24px); height: calc(844px * var(--k) + 24px); border-radius: calc(54px * var(--k) + 12px); background: #0B1411; padding: 12px;
  box-shadow: 0 30px 60px rgba(15, 27, 23, 0.25), inset 0 0 0 2px #23352E; overflow: hidden; margin: 0 auto; }
.cv-phone iframe { position: absolute; top: 12px; left: 12px; width: 390px; height: 844px; border: 0; border-radius: 48px; background: var(--bg); transform: scale(var(--k)); transform-origin: 0 0; }
@media (max-width: 1000px) { .cv { grid-template-columns: 1fr; } .cv-side { position: static; } }
.cv-bar { position: fixed; left: 50%; transform: translateX(-50%); top: calc(8px + env(safe-area-inset-top)); z-index: 90; display: flex; gap: 12px; align-items: center;
  background: #F2B544; color: #1B1405; border-radius: 999px; padding: 6px 14px; font: 600 13px var(--body, inherit); box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2); white-space: nowrap; }
.cv-bar a { color: inherit; font-weight: 700; }

/* Map: zoom, pan, scanning highlight */
.gmap { touch-action: pan-y; cursor: grab; }
.gmap.is-zoomed { touch-action: none; }
.gmap.is-dragging { cursor: grabbing; }
.gmap-stage { position: absolute; inset: 0; }
.gmap-pt { width: var(--pt, 34px) !important; height: var(--pt, 34px) !important; font-size: calc(var(--pt, 34px) * 0.38) !important; }
.gmap-ctl { position: absolute; top: 10px; right: 10px; z-index: 5; display: grid; gap: 6px; }
.gmap-ctl button { width: 38px; height: 38px; border-radius: 10px; border: 1px solid #DCE6E1; background: rgba(255, 255, 255, 0.95); color: #0F1B17; font: 700 20px/1 system-ui, sans-serif; cursor: pointer; box-shadow: 0 2px 8px rgba(15, 27, 23, 0.15); }
.gmap-ctl button[data-z="fit"] { font-size: 12px; }
.gmap-ctl button:hover { background: #EAF8F1; }
.gmap-pt.is-scanning { z-index: 4; box-shadow: 0 0 0 3px #fff, 0 0 0 6px #23B07E; animation: scanring 0.9s ease-in-out infinite; }
@keyframes scanring { 50% { box-shadow: 0 0 0 4px #fff, 0 0 0 14px rgba(35, 176, 126, 0.25); } }
@media (prefers-reduced-motion: reduce) { .gmap-pt.is-scanning { animation: none; } }

/* Script lines */
/* DO notes: directions for the rep, never read out loud. Upright and full contrast on a yellow tint, so they are easy to read and never pass for script. */
.script-step .say-note { margin: 0 0 10px; font-size: 14.5px; line-height: 1.5; color: var(--ink); background: #FFF4D6; border-left: 4px solid #E8A317; padding: 7px 12px; border-radius: 0 8px 8px 0; }
.do-tag { display: inline-block; background: #0F1B17; color: #FFD66B; font: 800 10.5px/1.7 var(--mono); letter-spacing: .08em; text-transform: uppercase; padding: 0 6px; border-radius: 4px; margin-right: 7px; vertical-align: 1px; }
.do-in { background: #FFF4D6; border: 1px solid #F2C14E; border-radius: 6px; padding: 1px 7px 1px 3px; font-size: .94em; font-style: normal; color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.do-in .do-tag { margin-right: 5px; }
@media (prefers-color-scheme: dark) { .script-step .say-note, .script-read .cue, .do-in { background: rgba(232, 163, 23, .14); color: #F7EBC9; border-color: #E8A317; } }
.playbook ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 8px; }

/* ---------- browser phone ---------- */
.phone-badge { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--muted); }
.phone-badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--warn); flex: none; }
.phone-badge.good i { background: var(--good); box-shadow: 0 0 0 4px var(--mint-mid); }
.phone-badge.bad { color: var(--bad); } .phone-badge.bad i { background: var(--bad); }
.phone-badge.live i { background: var(--good); animation: cbpulse 1.4s infinite; }
.dialout-grid { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 18px; align-items: start; }
@media (max-width: 900px) { .dialout-grid { grid-template-columns: 1fr; } }
.dialpad { padding: 22px; }
.dp-display { width: 100%; border: 0; background: transparent; text-align: center; font: 600 30px/1.2 var(--display); color: var(--ink); padding: 8px 4px 14px; letter-spacing: .01em; }
.dp-display:focus { outline: none; box-shadow: none; border: 0; }
.dp-display::placeholder { color: var(--muted); font-size: 20px; font-weight: 500; }
.dp-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px; }
.dp-key { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 64px; border-radius: 18px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); cursor: pointer; transition: background .12s, transform .08s; }
.dp-key:hover { background: var(--mint-soft); } .dp-key:active { transform: scale(.96); background: var(--mint-mid); }
.dp-key b { font: 600 24px/1 var(--display); } .dp-key small { font-size: 10px; letter-spacing: .14em; color: var(--muted); margin-top: 3px; }
.dp-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; margin-top: 8px; }
.dp-call { width: 68px; height: 68px; border-radius: 50%; border: 0; background: var(--good); color: #fff; display: grid; place-items: center; cursor: pointer; box-shadow: 0 8px 22px rgba(35, 176, 126, .35); transition: transform .1s, filter .1s; }
.dp-call:hover { filter: brightness(1.06); } .dp-call:active { transform: scale(.95); } .dp-call:disabled { opacity: .45; cursor: not-allowed; }
.dp-call svg { width: 28px; height: 28px; }
.dp-back { justify-self: center; width: 48px; height: 48px; border-radius: 50%; border: 0; background: transparent; color: var(--muted); cursor: pointer; display: grid; place-items: center; }
.dp-back:hover { color: var(--ink); background: var(--surface-2); } .dp-back svg { width: 24px; height: 24px; }
.recent-row { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 12px; padding: 10px 4px; border: 0; border-top: 1px solid var(--line); background: none; color: var(--ink); text-align: left; cursor: pointer; font: inherit; }
.recent-row:hover { background: var(--surface-2); }
.recent-row b { display: block; font-weight: 600; } .recent-row small { color: var(--muted); }
.callerid { flex: 1 1 220px; }

.callbar { position: fixed; z-index: 90; right: 20px; bottom: calc(20px + var(--sab)); width: 340px; max-width: calc(100vw - 24px); background: var(--side); color: #E7F1EC; border-radius: 22px; padding: 16px; border: 1px solid rgba(157, 235, 203, .18); box-shadow: 0 18px 50px rgba(0, 0, 0, .35); animation: cbin .22s var(--ease); }
@media (prefers-color-scheme: dark) { .callbar { background: #14251F; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); } }
.callbar.out { opacity: 0; transform: translateY(12px); transition: opacity .22s, transform .22s; }
.cb-top { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.cb-av { width: 44px; height: 44px; border-radius: 50%; background: rgba(157, 235, 203, .16); color: #9DEBCB; display: grid; place-items: center; }
.cb-av svg { width: 20px; height: 20px; }
.cb-av.pulse { animation: cbpulse 1.4s infinite; }
.cb-who { min-width: 0; } .cb-who b { display: block; font: 600 16px/1.2 var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cb-who span { display: block; font-size: 12px; color: #85988F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cb-status { font: 600 14px/1 var(--mono); color: #9DEBCB; white-space: nowrap; }
.callbar[data-state="ended"] .cb-status { color: #85988F; }
.cb-level { height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .08); margin: 12px 0 0; overflow: hidden; }
.cb-level i { display: block; height: 100%; width: 0; background: #9DEBCB; transition: width .1s; }
.cb-pad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 12px; }
.cb-pad button { height: 40px; border-radius: 12px; border: 0; background: rgba(255, 255, 255, .07); color: #E7F1EC; font: 600 18px var(--display); cursor: pointer; }
.cb-pad button:active { background: rgba(157, 235, 203, .25); }
.cb-actions { display: flex; gap: 8px; margin-top: 14px; }
.cb-actions:empty { display: none; }
.cb-btn { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 4px; border-radius: 14px; border: 0; background: rgba(255, 255, 255, .07); color: #E7F1EC; font: 600 11px var(--body); cursor: pointer; }
.cb-btn svg { width: 20px; height: 20px; }
.cb-btn:hover { background: rgba(255, 255, 255, .12); }
.cb-btn.on { background: #9DEBCB; color: #0F1B17; }
.cb-hang, .cb-decline { background: #D64545; color: #fff; } .cb-hang:hover, .cb-decline:hover { background: #E05555; }
.cb-accept { background: #23B07E; color: #fff; } .cb-accept:hover { background: #2BC28C; }
@keyframes cbin { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes cbpulse { 0% { box-shadow: 0 0 0 0 rgba(157, 235, 203, .45); } 70% { box-shadow: 0 0 0 12px rgba(157, 235, 203, 0); } 100% { box-shadow: 0 0 0 0 rgba(157, 235, 203, 0); } }
@media (max-width: 900px) { .callbar { left: 12px; right: 12px; width: auto; max-width: none; bottom: calc(12px + var(--sab)); } }
@media (prefers-reduced-motion: reduce) { .callbar, .cb-av.pulse, .phone-badge.live i { animation: none; } }
.cb-rec { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font: 600 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; color: #F28B8B; }
.cb-rec i { width: 8px; height: 8px; border-radius: 50%; background: #E05555; animation: cbblink 1.2s infinite; }
@keyframes cbblink { 50% { opacity: .3; } }
.cb-modes { display: flex; gap: 8px; margin-top: 14px; }
.cb-hint { margin: 8px 0 0; font-size: 12px; color: #85988F; text-align: center; }
.rec-list { padding: 6px 18px; }
.rec-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.rec-row:first-child { border-top: 0; }
.rec-main { flex: 1 1 260px; min-width: 0; } .rec-main b { display: block; font-weight: 600; } .rec-main > span { display: block; margin-top: 2px; }
.rec-row .btn svg { width: 16px; height: 16px; }
.rec-audio { flex-basis: 100%; } .rec-audio:empty { display: none; } .rec-audio audio { width: 100%; height: 40px; }
.switch { position: relative; display: block; flex: none; width: 50px; height: 30px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch span { position: absolute; inset: 0; border-radius: 30px; background: color-mix(in srgb, var(--muted) 45%, var(--surface)); transition: background .15s; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: transform .15s var(--ease); }
.switch input:checked + span { background: var(--good); } .switch input:checked + span::after { transform: translateX(20px); }
.switch input:focus-visible + span { outline: 2px solid var(--mint-strong); outline-offset: 2px; }
@media (prefers-reduced-motion: reduce) { .cb-rec i { animation: none; } }
/* ---------- dispositions ---------- */
.dispo-modal { max-width: 560px; }
.dispo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 8px; margin-top: 14px; }
.dispo-btn { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 14px var(--body); text-align: left; cursor: pointer; transition: background .12s, border-color .12s; }
.dispo-btn:hover { background: var(--mint-soft); }
.dispo-btn.on { background: var(--mint-mid); border-color: var(--mint-strong); }
.dispo-lead summary { cursor: pointer; font-weight: 600; color: var(--accent); }
.dispo-rows { display: grid; gap: 8px; }
.dispo-row { display: grid; grid-template-columns: 26px minmax(0, 1fr) minmax(0, 1.3fr) auto auto; gap: 8px; align-items: center; }
.dispo-row input, .dispo-row select { min-width: 0; }
.dr-move { display: flex; gap: 4px; } .dr-move .btn { padding: 6px 10px; }
@media (max-width: 640px) { .dispo-row { grid-template-columns: 26px minmax(0, 1fr) auto; } .dr-acts { grid-column: 2 / -1; } .dispo-row [data-rm] { grid-column: 2; justify-self: start; } }
/* ---------- payments ---------- */
:root { --pay-bar: #1A9468; }
@media (prefers-color-scheme: dark) { :root { --pay-bar: #1FA474; } }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
@media (max-width: 900px) { .pay-grid { grid-template-columns: 1fr; } }
.paychart { margin-top: 6px; }
.pc-plot { position: relative; display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; height: 200px; border-bottom: 1px solid var(--line); padding-top: 26px; }
.pc-col { position: relative; display: flex; align-items: flex-end; justify-content: center; height: 100%; cursor: default; outline: none; border-radius: 6px; }
.pc-col:hover, .pc-col:focus-visible { background: var(--mint-soft); }
.pc-bar { width: min(44px, 60%); background: var(--pay-bar); border-radius: 4px 4px 0 0; transition: height .5s var(--ease); }
.pc-val { position: absolute; left: 50%; transform: translateX(-50%); font: 600 12px var(--mono); color: var(--ink); white-space: nowrap; }
.pc-tip { position: absolute; top: 0; transform: translateX(-50%); background: var(--ink); color: var(--surface); font: 600 12px var(--body); padding: 6px 10px; border-radius: 8px; white-space: nowrap; pointer-events: none; z-index: 2; }
.pc-axis { display: grid; grid-template-columns: repeat(6, 1fr); gap: 2px; margin-top: 6px; text-align: center; font-size: 12px; color: var(--muted); }
.pc-table { margin-top: 10px; } .pc-table summary { cursor: pointer; color: var(--muted); }
.pc-table table, .ptable { width: 100%; border-collapse: collapse; }
.pc-table th, .pc-table td, .ptable th, .ptable td { text-align: left; padding: 8px 6px; border-top: 1px solid var(--line); vertical-align: top; }
.ptable th, .pc-table th { font-size: 12px; color: var(--muted); font-weight: 600; border-top: 0; }
.ptable td.num { font-family: var(--mono); white-space: nowrap; }
.bad-text { color: var(--bad); }
/* ---------- google ---------- */
.gapps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 18px; }
.gapp .card-head { margin-bottom: 0; }
.web-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 18px; }
.chg { font-weight: 600; } .chg.up { color: var(--good); } .chg.down { color: var(--bad); }
.gapps > .card, .pay-grid > .card, .web-grid > .card { margin: 0; }
.pc-val { font-family: var(--body); }

/* Automatic scans */
.good-text { color: var(--accent); }
#rk-prog > .card, #autoscan > .card, #stripesetup > .card { margin-top: 0; }
#rk-prog:not(:empty), #autoscan:not(:empty), #stripesetup:not(:empty) { margin-bottom: 18px; }
.card + #autoscan:not(:empty), .card + #stripesetup:not(:empty) { margin-top: 18px; }

/* Content engine */
.ct-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 18px; align-items: start; }
.ct-grid > .card, .ct-side > .card { margin: 0; }
.ct-side { display: grid; gap: 18px; }
@media (max-width: 1100px) { .ct-grid { grid-template-columns: 1fr; } }
.ct-row { cursor: pointer; }
.ct-note { background: #FDECEC; border: 1px solid #F3C2C2; color: #7A1F1F; border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .ct-note { background: rgba(214, 69, 69, .12); border-color: rgba(214, 69, 69, .35); color: #F6C9C9; } }
.ct-tools { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin: 16px 0 8px; padding: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); position: sticky; top: 8px; z-index: 2; }
.ct-tools button { font: 600 13px var(--body); border: 1px solid transparent; background: transparent; color: var(--ink); border-radius: 8px; padding: 6px 10px; cursor: pointer; }
.ct-tools button:hover, .ct-tools button.on { background: var(--surface); border-color: var(--line); }
.ct-tools .spacer { flex: 1; }
.ct-body, .ct-src { min-height: 420px; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--surface); color: var(--ink); line-height: 1.65; font-size: 16px; }
.ct-body:focus, .ct-src:focus { outline: 2px solid var(--mint-strong); outline-offset: 1px; }
.ct-src { width: 100%; font: 13px/1.6 var(--mono); resize: vertical; }
.ct-body h2, .ct-read h2 { font: 700 22px/1.3 var(--display); margin: 22px 0 8px; }
.ct-body h3, .ct-read h3 { font: 700 18px/1.35 var(--display); margin: 18px 0 6px; }
.ct-body p, .ct-read p { margin: 0 0 12px; }
.ct-body ul, .ct-body ol, .ct-read ul, .ct-read ol { margin: 0 0 12px 22px; padding: 0; }
.ct-body a, .ct-read a { color: var(--accent); }
.ct-brief { margin: 0; display: grid; gap: 4px; font-size: 14px; }
.ct-brief dt { font-weight: 700; margin-top: 8px; }
.ct-brief dd { margin: 0; color: var(--ink-2); }
.ct-brief ol, .ct-brief ul { margin: 4px 0 0 18px; padding: 0; display: grid; gap: 3px; }
.ct-read h1 { font: 700 26px/1.25 var(--display); margin: 10px 0 14px; }
.ct-read { line-height: 1.65; }
.btn-block { width: 100%; justify-content: center; }
@media (max-width: 600px) { #ctf { grid-template-columns: 1fr !important; } }

/* Site audit */
.sa-top { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.sa-score { width: 96px; height: 96px; border-radius: 50%; display: grid; place-content: center; text-align: center; border: 6px solid var(--line); flex: none; }
.sa-score b { font: 700 32px/1 var(--display); }
.sa-score span { font-size: 11px; color: var(--muted); }
.sa-score.good { border-color: var(--good); } .sa-score.mid { border-color: var(--warn); } .sa-score.low { border-color: var(--bad); }
.sa-prog { display: flex; gap: 10px; align-items: center; background: var(--mint-soft); border: 1px solid var(--mint-mid); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.sa-issue { align-items: start; }
.sa-pages { margin: 6px 0 0 18px; padding: 0; display: grid; gap: 3px; }
.sa-ba { display: grid; gap: 4px; margin-top: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 8px 10px; }
.sa-code { margin: 10px 0 0; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font: 12px/1.55 var(--mono); overflow-x: auto; white-space: pre; }
details.card > summary { cursor: pointer; }
@media (max-width: 700px) { .sa-issue { grid-template-columns: auto 1fr; } .sa-issue > .row { grid-column: 1 / -1; justify-content: flex-start !important; } }

/* Call tracking */
.ct-call audio { display: block; width: 100%; max-width: 360px; height: 36px; margin-top: 8px; }
.ct-pick { display: grid; gap: 6px; }
.ct-opt { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; cursor: pointer; background: var(--surface-2); }
.ct-opt:has(input:checked) { border-color: var(--mint-strong); background: var(--mint-soft); }
@media (max-width: 600px) { .ct-call { grid-template-columns: auto 1fr; } .ct-call > .btn { grid-column: 1 / -1; justify-self: start; } }

/* Google Maps engine (public/js/map.js) */
.gmap-g { position: absolute; inset: 0; }
.gmap.is-google { touch-action: auto; cursor: auto; }
.gmap.is-google .gmap-ctl { z-index: 6; }

/* Citations and links */
.ci-row { align-items: start; }
.ci-row select, .ci-table select { font: inherit; font-size: 13px; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.ci-table td { vertical-align: top; }
ul.plain { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
@media (max-width: 700px) { .ci-row { grid-template-columns: auto 1fr; } .ci-row > .row { grid-column: 1 / -1; justify-content: flex-start !important; } }

/* Market Leader */
.loc-table td { vertical-align: top; }
.loc-total td { border-top: 2px solid var(--line); background: var(--surface-2); }
.rep-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-top: 18px; }
.rep-grid > .card { margin: 0; }
.rep-grid + .card { margin-top: 18px; }
@media (max-width: 900px) { .rep-grid { grid-template-columns: 1fr; } }
.rep-bars { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; align-items: end; height: 190px; padding-top: 10px; }
.rep-col { display: grid; grid-template-rows: auto 1fr auto auto; align-items: end; justify-items: center; height: 100%; gap: 4px; }
.rep-bar { width: 70%; max-width: 46px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: #1A9468; align-self: end; }
@media (prefers-color-scheme: dark) { .rep-bar { background: #1FA474; } }
.rep-n { font: 700 13px var(--body); }
.rep-lab { font-size: 12px; color: var(--muted); }
.rep-avg { font-size: 11px; color: var(--muted); min-height: 14px; }
.rep-star { display: grid; grid-template-columns: 64px minmax(0, 1fr) 36px; gap: 10px; align-items: center; padding: 6px 0; font-size: 13px; }
.rep-star .track { display: block; height: 10px; border-radius: 6px; background: var(--surface-2); overflow: hidden; }
.rep-star .fill { display: block; height: 100%; border-radius: 6px; background: #1A9468; }
.rep-star .fill.bad { background: var(--bad); }
.qp-goals { display: grid; gap: 6px; }
.qp-goal { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px; }
.qp-goal input, .qp-edit textarea { font: inherit; font-size: 14px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); width: 100%; }
.qp-months { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 18px; }
@media (max-width: 900px) { .qp-months { grid-template-columns: 1fr; } .qp-goal { grid-template-columns: 1fr 1fr; } .qp-goal input[data-k="label"] { grid-column: 1 / -1; } }
.live { display: grid; gap: 12px; }
.live-card { margin: 0 !important; }
.live-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.live-list li { display: flex; gap: 8px; align-items: baseline; }
.live-list li span:first-child { flex: 1; min-width: 0; }
.live-big { display: flex; align-items: baseline; gap: 8px; }
.live-big b { font: 700 34px/1 var(--display); }
.live-big span { color: var(--muted); font-size: 14px; }
.live-feed { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 13px; }
.live-feed li { display: flex; gap: 8px; } .live-feed li span { flex: 1; } .live-feed i { color: var(--muted); font-style: normal; }

/* Rank bands and the climb steps (Rankings tab) */
.band-bar { display: flex; height: 22px; border-radius: 8px; overflow: hidden; margin-top: 12px; border: 1px solid var(--line); }
.band-bar span { display: grid; place-items: center; font: 700 11px var(--body, sans-serif); color: #0F1B17; min-width: 0; }
.climb { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 12px; }
.climb-step { border: 1px solid var(--line); border-radius: 14px; padding: 14px; background: var(--surface, #fff); }
.climb-step ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.climb-step.is-strong { border-color: var(--mint-strong, #23B07E); }

/* My work, task panel, access, meetings, Google profile, alerts */
.avatar { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--mint-mid); color: var(--ink); font: 700 12px var(--body); flex: none; }
.avatar.empty { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); }
.work-row { grid-template-columns: auto minmax(0, 1fr) auto auto auto; align-items: center; }
.work-row .work-main { cursor: pointer; min-width: 0; }
.work-row.is-doing { border-left: 3px solid var(--warn); }
.work-time { white-space: nowrap; }
.task-open { cursor: pointer; min-width: 0; }
.timer-bar { display: flex; align-items: center; gap: 12px; background: var(--fill); color: var(--on-fill); border-radius: 14px; padding: 12px 16px; margin-bottom: 16px; }
.timer-bar .small { color: #B4C5BD; }
.timer-bar .btn { background: #fff; color: var(--ink); }
.timer-bar .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--bad); animation: rwpulse 1.2s infinite; flex: none; }
@keyframes rwpulse { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .timer-bar .dot { animation: none; } }
.bulk-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: 14px; padding: 10px 12px; margin-bottom: 12px; }
.warn-card { border-left: 4px solid var(--warn); }
.modal.task-panel { max-width: 780px; }
.tp-meta { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.timer-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 14px; margin: 12px 0; background: var(--surface-2); }
.timer-box.on { border-color: var(--bad); }
.timer-box .mono { font-size: 20px; }
.tool-card { box-shadow: none; background: var(--mint-soft); border-color: var(--mint-mid); }
.tool-post { grid-template-columns: 72px minmax(0, 1fr) auto; }
.tool-post img { width: 72px; height: 72px; object-fit: cover; border-radius: 10px; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 0 0 10px; font-size: 14px; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.linkish { background: none; border: 0; color: var(--accent); cursor: pointer; padding: 0 2px; font: inherit; font-size: 12px; text-decoration: underline; }
.tp-guide { border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; margin: 12px 0; }
.tp-guide summary { cursor: pointer; }
ol.steps { margin: 10px 0; padding-left: 20px; display: grid; gap: 6px; }
ol.steps label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
ol.steps input { margin-top: 4px; flex: none; }
.proof-thumb { width: 84px; height: 60px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); display: block; }
.tp-foot { gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.draft-out textarea { width: 100%; margin-top: 6px; }
.guides { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 14px; }
.guide.is-focus { outline: 2px solid var(--mint-strong); }
.access-row { grid-template-columns: auto minmax(0, 1fr) auto; align-items: start; }
.pref-list { display: grid; gap: 8px; }
.pref-list label { gap: 8px; align-items: center; }
.alert-row, .call-row { cursor: default; }
.alert-row { cursor: pointer; }
.alert-row.is-new, .call-row.is-new { background: var(--mint-soft); }
.push-card .push-ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--mint-mid); flex: none; }
.push-card .push-ic svg, .timer-bar svg, .timer-box svg { width: 18px; height: 18px; }
.reply-box { margin-top: 6px; padding: 8px 10px; border-radius: 10px; background: var(--surface-2); font-size: 14px; }
.g-reply textarea { width: 100%; margin: 6px 0; }
.stars { color: var(--warn); letter-spacing: 1px; }
.photo-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 8px; }
.photo-pick label { position: relative; cursor: pointer; }
.photo-pick img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 10px; border: 2px solid transparent; display: block; }
.photo-pick input { position: absolute; top: 6px; left: 6px; }
.photo-pick input:checked + img { border-color: var(--mint-strong); }
.meet-item details { margin-top: 6px; }
@media (max-width: 720px) {
  .tp-meta { grid-template-columns: 1fr 1fr; }
  .work-row { grid-template-columns: auto minmax(0, 1fr) auto; }
  .work-row .work-time, .work-row .avatar { display: none; }
  .access-row { grid-template-columns: auto minmax(0, 1fr); }
  .access-row select { grid-column: 2; }
}

/* Slack settings */
.slk-routes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 8px 16px; }
.slk-route { display: grid; grid-template-columns: minmax(0, 1fr) minmax(140px, 200px); align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px solid var(--line); }
.slk-route select { width: 100%; }
.slack-card ol.steps li { display: block; }

/* Bottom bar on phones and tablets (fits as many items as the screen allows, rest under More) */
.bbar { display: none; }
.nbadge.soft { background: var(--surface-2); color: var(--ink-2); }
.rail nav a .nbadge[hidden], .bb-item .nbadge[hidden], .tabs .nbadge[hidden] { display: none; }
.tabs a .nbadge { margin-left: 6px; display: inline-block; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; }
@media (max-width: 900px) {
  .mtop .mtop-btn { display: none; }
  .bbar { display: grid; grid-template-columns: repeat(var(--n, 5), minmax(0, 1fr)); position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: var(--side);
    border-top: 1px solid rgba(255, 255, 255, 0.08); padding: 6px 4px calc(6px + var(--sab)); }
  .bb-item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; min-width: 0; padding: 6px 2px; border-radius: 12px;
    color: #B4C5BD; font: 600 11px var(--body); text-decoration: none; background: none; border: 0; cursor: pointer; }
  .bb-item svg { width: 22px; height: 22px; }
  .bb-item span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .bb-item.is-active { color: var(--mint); background: rgba(157, 235, 203, 0.12); }
  .bb-item .nbadge { position: absolute; top: 1px; left: calc(50% + 6px); margin: 0; min-width: 18px; padding: 0 5px; font-size: 10px; line-height: 17px; }
  .main { padding-bottom: calc(96px + var(--sab)); }
}
.cust-list .item { grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; }
.cust-list svg { width: 18px; height: 18px; }

/* Slack page */
.main.sl-main { max-width: none; padding-top: 16px; }
.sl { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 0; height: calc(100vh - 48px); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; background: var(--surface); }
.sl:has(.sl-thread:not([hidden])) { grid-template-columns: 270px minmax(0, 1fr) 360px; }
.sl-list { background: var(--side); color: #E7F1EC; display: flex; flex-direction: column; min-height: 0; padding: 10px 8px; }
.sl-list-head { display: flex; align-items: center; gap: 6px; padding: 2px 4px 8px; }
.sl-list-head .icon-btn { background: rgba(255, 255, 255, 0.08); border-color: transparent; color: #E7F1EC; flex: none; }
.sl-me { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; background: none; border: 0; color: inherit; text-align: left; cursor: pointer; padding: 6px; border-radius: 10px; }
.sl-me:hover { background: rgba(255, 255, 255, 0.06); }
.sl-me #sl-me-av { position: relative; flex: none; }
.sl-me .sl-av { width: 32px; height: 32px; border-radius: 9px; font-size: 12px; }
.sl-me-text { min-width: 0; display: grid; }
.sl-me-text b, .sl-me-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-me-text span { color: #A9BCB3; }
.sl-dot { position: absolute; right: -3px; bottom: -3px; width: 11px; height: 11px; border-radius: 50%; border: 2px solid var(--side); background: #6B7F77; display: inline-block; }
.sl-dot.on { background: var(--mint-strong); }
.sl-prof-line .sl-dot { position: static; border-color: var(--surface); margin-right: 6px; vertical-align: -1px; }
.sl-recon { margin: 0 4px 8px; padding: 10px; border-radius: 12px; background: rgba(157, 235, 203, 0.12); border: 1px solid rgba(157, 235, 203, 0.25); font-size: 13px; display: grid; gap: 8px; }
.sl-nav { display: grid; gap: 1px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sl-nav .sl-hash svg { width: 16px; height: 16px; vertical-align: -3px; }
.sl-search { margin: 2px 4px 6px; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.1); color: #fff; border-radius: 10px; padding: 8px 10px; }
.sl-search::placeholder { color: #85988F; }
.sl-convs { flex: 1; overflow-y: auto; min-height: 0; }
.sl-sec { display: flex; align-items: center; gap: 4px; width: 100%; background: none; border: 0; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .06em; color: #85988F; padding: 12px 8px 4px; cursor: pointer; text-align: left; }
.sl-sec:hover { color: #C9D7D0; }
.sl-caret svg { width: 14px; height: 14px; transition: transform .15s; display: block; }
.sl-caret.shut svg { transform: rotate(-90deg); }
.sl-conv { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; color: #B4C5BD; text-decoration: none; font-size: 15px; }
.sl-conv:hover { background: rgba(255, 255, 255, 0.05); }
.sl-conv.is-open { background: rgba(157, 235, 203, 0.16); color: #fff; }
.sl-conv.is-unread { color: #fff; font-weight: 700; }
.sl-conv .sl-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-conv .nbadge { margin-left: 0; }
.sl-draft svg { width: 14px; height: 14px; color: #85988F; display: block; }
.sl-hash { width: 22px; text-align: center; color: #85988F; flex: none; }
.sl-hash svg { width: 16px; height: 16px; vertical-align: -3px; }
.sl-grp { display: inline-grid; place-items: center; height: 22px; border-radius: 6px; background: rgba(255, 255, 255, 0.1); font: 700 11px var(--body); color: #C9D7D0; }
.sl-av { width: 22px; height: 22px; border-radius: 6px; flex: none; display: inline-grid; place-items: center; background: var(--mint-mid); color: var(--ink); font: 700 10px var(--body); object-fit: cover; }
.sl-msg .sl-av, .sl-res .sl-av { width: 36px; height: 36px; border-radius: 8px; font-size: 13px; }
.sl-av-xs, .sl-msg .sl-av-xs { width: 20px !important; height: 20px !important; border-radius: 5px !important; font-size: 9px !important; }
.sl-avbtn, .sl-who { background: none; border: 0; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.sl-who { font-weight: 700; font-size: 15px; }
.sl-who:hover { text-decoration: underline; }
.sl-app { font-size: 10px; font-weight: 700; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; vertical-align: 1px; }
.sl-pane, .sl-thread { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.sl-thread { border-left: 1px solid var(--line); }
.sl-head { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); min-height: 56px; }
.sl-title { display: inline-flex; align-items: center; gap: 6px; background: none; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; font: inherit; color: inherit; min-width: 0; }
.sl-title:hover { background: var(--surface-2); }
.sl-title b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.sl-title svg { width: 14px; height: 14px; flex: none; }
.sl-topic { min-width: 0; max-width: 50ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-back { display: none; }
.sl-empty { display: grid; place-items: center; height: 100%; }
.sl-clientnote { padding: 8px 16px; background: #FFF8E8; color: #6B4E12; border-bottom: 1px solid #F1E2BC; }
.sl-jump { padding: 6px 16px; background: var(--mint-soft); border-bottom: 1px solid var(--line); }
.sl-msgs { flex: 1; overflow-y: auto; padding: 8px 0 12px; min-height: 0; }
.sl-older { text-align: center; padding: 8px; }
.sl-start { padding: 18px 16px 8px; }
.sl-start b { font: 700 20px var(--display); }
.sl-day { text-align: center; margin: 14px 0 6px; position: relative; }
.sl-day::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1px solid var(--line); }
.sl-day span { position: relative; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--surface); padding: 2px 10px; border: 1px solid var(--line); border-radius: 99px; }
.sl-new { position: relative; margin: 8px 0; border-top: 1px solid var(--bad); }
.sl-new span { position: absolute; right: 16px; top: -9px; background: var(--surface); color: var(--bad); font: 700 11px var(--body); padding: 0 6px; }
.sl-msg { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; padding: 6px 16px; }
.sl-msg.compact { padding-top: 1px; padding-bottom: 1px; }
.sl-msg:hover { background: var(--surface-2); }
.sl-msg.is-pinned { background: #FFFAEB; }
.sl-msg.is-hl { background: #FFF3C4; box-shadow: inset 3px 0 0 var(--warn); }
.sl-pinned { color: #8A6A1C; display: flex; align-items: center; gap: 4px; }
.sl-pinned svg { width: 12px; height: 12px; }
.sl-time-c { font-size: 10px; color: var(--muted); visibility: hidden; text-align: right; padding-top: 4px; }
.sl-msg:hover .sl-time-c { visibility: visible; }
.sl-meta b { font-size: 15px; }
.sl-text { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.sl-text pre { background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; white-space: pre-wrap; font: 13px var(--mono); margin: 4px 0; }
.sl-text code { font: 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; color: #C0392B; }
.sl-text blockquote { margin: 2px 0; padding-left: 10px; border-left: 3px solid var(--line); color: var(--ink-2); }
.sl-emo { width: 20px; height: 20px; vertical-align: -4px; object-fit: contain; }
.sl-react .sl-emo { width: 16px; height: 16px; vertical-align: -3px; }
.sl-mention { background: rgba(35, 176, 126, 0.15); color: var(--accent); border-radius: 4px; padding: 0 2px; font-weight: 600; text-decoration: none; cursor: pointer; }
.sl-img { max-width: min(360px, 100%); max-height: 260px; border-radius: 10px; border: 1px solid var(--line); margin-top: 6px; display: block; }
.sl-file { display: inline-flex; align-items: center; gap: 8px; margin-top: 6px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; text-decoration: none; color: var(--ink); max-width: 100%; }
.sl-file span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-file svg { width: 16px; height: 16px; flex: none; }
.sl-att { margin-top: 6px; padding: 4px 0 4px 12px; border-left: 4px solid var(--line); max-width: 560px; display: grid; gap: 2px; }
.sl-att-svc { display: flex; align-items: center; gap: 6px; }
.sl-att-svc img { width: 16px; height: 16px; border-radius: 3px; }
.sl-att-title { font-weight: 700; color: var(--accent); }
.sl-att-text { font-size: 14px; color: var(--ink-2); }
.sl-att-img { max-width: min(360px, 100%); max-height: 220px; border-radius: 8px; margin-top: 4px; border: 1px solid var(--line); }
.sl-reacts { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.sl-react { border: 1px solid var(--line); background: var(--surface-2); border-radius: 99px; padding: 1px 8px; font-size: 13px; cursor: pointer; color: var(--ink); display: inline-flex; align-items: center; gap: 4px; }
.sl-react.mine { border-color: var(--mint-strong); background: var(--mint-soft); }
.sl-react-add { opacity: 0; }
.sl-react-add svg { width: 14px; height: 14px; }
.sl-msg:hover .sl-react-add { opacity: 1; }
.sl-replies { display: inline-flex; align-items: center; gap: 6px; margin-top: 4px; padding: 3px 8px 3px 4px; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: var(--accent); }
.sl-replies:hover { background: var(--surface); border-color: var(--line); }
.sl-replies b { font-size: 13px; }
.sl-tools { position: absolute; top: -12px; right: 14px; display: none; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 2px; box-shadow: var(--shadow); z-index: 2; }
.sl-msg:hover .sl-tools { display: flex; }
.sl-tools .icon-btn { width: 30px; height: 30px; }
.sl-tools svg { width: 16px; height: 16px; }
.sl-note { padding: 2px 16px 2px 62px; }
.sl-tcount { padding: 6px 16px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.sl-edit { display: grid; gap: 6px; margin-top: 2px; }
.sl-edit textarea { width: 100%; resize: none; border-radius: 10px; }
.sl-sched { display: flex; align-items: center; gap: 8px; padding: 6px 16px; border-top: 1px solid var(--line); background: var(--surface-2); }
.sl-sched svg { width: 14px; height: 14px; }
.sl-compose { padding: 8px 12px calc(10px + var(--sab)); }
.sl-box { border: 1px solid var(--line); border-radius: 12px; background: var(--surface); position: relative; }
.sl-box:focus-within { border-color: var(--mint-strong); box-shadow: 0 0 0 3px rgba(35, 176, 126, 0.12); }
.sl-fmt { display: flex; gap: 2px; padding: 4px 6px; border-bottom: 1px solid var(--line); background: var(--surface-2); border-radius: 12px 12px 0 0; overflow-x: auto; }
.sl-fmt button { min-width: 30px; height: 28px; border: 0; background: none; border-radius: 6px; cursor: pointer; color: var(--ink-2); font: 600 13px var(--body); }
.sl-fmt button:hover { background: var(--line); }
.sl-fmt svg { width: 15px; height: 15px; vertical-align: -3px; }
.sl-compose textarea { width: 100%; resize: none; min-height: 42px; max-height: 220px; border: 0; border-radius: 0; box-shadow: none; outline: none; padding: 10px 12px; background: transparent; }
.sl-compose-row { display: flex; align-items: center; gap: 6px; padding: 4px 6px 6px; flex-wrap: wrap; }
.sl-compose-row svg { width: 18px; height: 18px; }
.sl-compose-row .icon-btn { width: 32px; height: 32px; }
.sl-bcast { display: inline-flex; align-items: center; gap: 4px; }
.sl-sendgrp { display: inline-flex; }
.sl-sendgrp .btn:first-child { border-radius: 10px 0 0 10px; }
.sl-sendgrp .btn:last-child { border-radius: 0 10px 10px 0; padding-left: 6px; padding-right: 6px; border-left: 1px solid rgba(255, 255, 255, 0.25); }
.sl-sendgrp .btn:last-child svg { width: 14px; height: 14px; margin: 0; }
.sl-drop .sl-box { border-style: dashed; border-color: var(--mint-strong); background: var(--mint-soft); }
.sl-ac { position: absolute; left: 6px; right: 6px; bottom: calc(100% + 4px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 27, 23, 0.15); padding: 4px; z-index: 5; max-height: 280px; overflow-y: auto; }
.sl-ac-i { display: flex; align-items: center; gap: 8px; width: 100%; padding: 6px 8px; border: 0; background: none; border-radius: 8px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.sl-ac-i.on, .sl-ac-i:hover { background: var(--mint-soft); }
.sl-ac-i .sl-hash { color: var(--muted); }
.sl-ac-emo { width: 22px; text-align: center; }
.sl-menu { position: fixed; z-index: 120; min-width: 220px; max-width: min(320px, calc(100vw - 16px)); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15, 27, 23, 0.18); padding: 4px; animation: fade .12s both; }
.sl-menu.sheet { left: 8px !important; right: 8px; top: auto !important; bottom: calc(8px + var(--sab)); max-width: none; max-height: 70vh; overflow-y: auto; }
.sl-menu hr { border: 0; border-top: 1px solid var(--line); margin: 4px 0; }
.sl-mi { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 10px; border: 0; background: none; border-radius: 8px; cursor: pointer; font: 500 14px var(--body); color: var(--ink); text-align: left; }
.sl-mi:hover { background: var(--mint-soft); }
.sl-mi svg { width: 16px; height: 16px; flex: none; color: var(--muted); }
.sl-mi.danger, .sl-mi.danger svg { color: var(--bad); }
.sl-mi-hint { margin-left: auto; font-size: 12px; color: var(--muted); }
.sl-mh { padding: 8px 10px 4px; font-size: 12px; color: var(--muted); font-weight: 700; }
.sl-mh-me { display: flex; gap: 10px; align-items: center; color: var(--ink); font-weight: 400; font-size: 14px; }
.sl-mh-me .sl-av { width: 36px; height: 36px; border-radius: 9px; }
.sl-emo-pick { width: 340px; padding: 8px; display: grid; gap: 6px; }
.sl-emo-q { width: 100%; }
.sl-emo-tabs { display: flex; gap: 2px; overflow-x: auto; }
.sl-emo-tabs button { border: 0; background: none; font-size: 18px; padding: 2px 5px; border-radius: 6px; cursor: pointer; }
.sl-emo-tabs button:hover { background: var(--surface-2); }
.sl-emo-grid { height: 260px; overflow-y: auto; }
.sl-emo-h { font: 700 12px var(--body); color: var(--muted); padding: 6px 2px 2px; position: sticky; top: 0; background: var(--surface); }
.sl-emo-set { display: grid; grid-template-columns: repeat(8, 1fr); }
.sl-emo-set button { border: 0; background: none; font-size: 22px; line-height: 1; padding: 5px 0; border-radius: 8px; cursor: pointer; }
.sl-emo-set button:hover { background: var(--mint-soft); }
.sl-emo-set .sl-emo { width: 22px; height: 22px; }
.sl-dtabs { display: flex; gap: 2px; padding: 6px 10px 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
.sl-dtabs button { border: 0; background: none; padding: 8px 10px; font: 600 14px var(--body); color: var(--muted); border-bottom: 2px solid transparent; cursor: pointer; white-space: nowrap; }
.sl-dtabs button.on { color: var(--ink); border-bottom-color: var(--mint-strong); }
.sl-dbody { flex: 1; overflow-y: auto; padding: 12px 14px; min-height: 0; }
.sl-dsec { padding: 10px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }
.sl-mem { cursor: pointer; }
.sl-pins { padding: 0; margin: 0 -14px; }
.sl-pinacts { grid-column: 2; font-size: 13px; display: flex; gap: 12px; }
.sl-frow { display: flex; gap: 10px; align-items: center; text-decoration: none; color: var(--ink); min-width: 0; }
.sl-frow img, .sl-ficon { width: 40px; height: 40px; border-radius: 8px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.sl-frow span { display: grid; min-width: 0; }
.sl-frow b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-ficon svg { width: 18px; height: 18px; }
.sl-view { flex: 1; overflow-y: auto; padding: 12px 16px; min-height: 0; }
.sl-vh { font: 700 13px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 14px 0 6px; }
.sl-empty-view { text-align: center; padding: 40px 16px; }
.sl-res { display: block; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; cursor: pointer; font: inherit; color: var(--ink); }
.sl-res:hover { border-color: var(--mint-strong); }
.sl-res.unseen { background: var(--mint-soft); border-color: var(--mint); }
.sl-res-top { margin-bottom: 6px; }
.sl-res-row { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 10px; }
.sl-sform { display: flex; gap: 8px; flex-wrap: wrap; }
.sl-sform input { flex: 1; min-width: 200px; }
.sl-tips code { font: 12px var(--mono); background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 0 4px; margin-right: 4px; }
.sl-bq { width: 100%; margin-bottom: 10px; }
.sl-brow { display: flex; align-items: center; gap: 10px; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.sl-brow > div, .sl-brow > .sl-res { flex: 1; min-width: 0; }
.sl-brow .sl-res { margin: 0; }
.sl-brow-p { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sl-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 6px; }
.sl-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 4px; border-radius: 8px; background: var(--mint-soft); border: 1px solid var(--mint); font-size: 14px; }
.sl-chip button { border: 0; background: none; cursor: pointer; font-size: 16px; line-height: 1; color: var(--muted); }
.sl-pp-q { width: 100%; }
.sl-pp-list { max-height: 260px; overflow-y: auto; margin-top: 6px; }
.sl-pp-list .item, .sl-pick-list .item { cursor: pointer; }
.sl-pick-list { max-height: 280px; overflow-y: auto; }
.sl-pick-list .item.on { background: var(--mint-soft); border-radius: 10px; }
.sl-pick-list .sl-hash { color: var(--muted); }
.sl-prof { display: flex; gap: 18px; align-items: flex-start; }
.sl-prof-img { width: 110px; height: 110px; border-radius: 18px; object-fit: cover; flex: none; display: grid; place-items: center; background: var(--mint-mid); font: 700 32px var(--display); color: var(--ink); }
.sl-prof-body { display: grid; gap: 4px; min-width: 0; }
.sl-prof-body h2 { margin: 0; }
.sl-st-emo { font-size: 20px; padding: 0 12px; }
.sl-presets { display: grid; gap: 4px; margin: 12px 0; }
.sl-preset { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 8px; border-radius: 10px; cursor: pointer; text-align: left; font: inherit; color: var(--ink); }
.sl-preset:hover { background: var(--mint-soft); }
.sl-preset .small { margin-left: auto; }
.btn.danger { color: var(--bad); }
.modal:has(.sl-prof), .modal:has(#ss-f), .modal:has(#nm-pick), .modal:has(#ap-pick), .modal:has(#cc-f), .modal:has(#fw-list), .modal:has(#ef-f), .modal:has(#ct-f), .modal:has(#sm-list), .modal:has(#sh-list), .modal:has(#ss-list) { max-width: 560px; width: 100%; }
.modal:has(.sl-prof) { max-width: 520px; }
.sl-sform input { flex: 1 1 260px; width: auto; min-width: 0; }
.sl-sform select { flex: none; width: auto; }
.sl-replies { flex-wrap: wrap; white-space: nowrap; }
@media (max-width: 1480px) and (min-width: 901px) {
  .sl { grid-template-columns: 236px minmax(0, 1fr); }
  .sl:has(.sl-thread:not([hidden])) { grid-template-columns: 220px minmax(0, 1fr) 320px; }
}
@media (max-width: 900px) {
  .main.sl-main { padding: 0 0 calc(76px + var(--sab)); }
  .sl, .sl:has(.sl-thread:not([hidden])) { grid-template-columns: 1fr; height: calc(100vh - 56px - 76px - var(--sab)); border-radius: 0; border: 0; }
  .sl .sl-pane, .sl .sl-thread { display: none; }
  .sl.has-open .sl-list { display: none; }
  .sl.has-open .sl-pane { display: flex; }
  .sl.has-open:has(.sl-thread:not([hidden])) .sl-pane { display: none; }
  .sl.has-open .sl-thread:not([hidden]) { display: flex; border-left: 0; }
  .sl-back { display: inline-grid; }
  .sl-hide-sm { display: none !important; }
  .sl-topic { display: none; }
  .sl-tools { position: static; box-shadow: none; border: 0; background: none; grid-column: 2; justify-content: flex-end; margin-top: -2px; }
  .sl-react-add { opacity: 1; }
  .sl-menu.sheet { box-shadow: 0 -10px 40px rgba(4, 12, 9, 0.3); }
  .sl-fmt { display: none; }
  .sl-box:focus-within .sl-fmt { display: flex; }
  .sl-emo-pick { width: auto; }
  .sl-prof { flex-direction: column; align-items: center; text-align: center; }
}
@media (max-width: 900px) and (hover: none) {
  .sl-msg .sl-tools, .sl-msg:hover .sl-tools { display: none; }
  .sl-msg.is-tap .sl-tools { display: flex; }
  .sl-msg.is-tap { background: var(--surface-2); }
}


/* Messages (client app and the client's Messages tab) */
.chat-update { align-self: center; max-width: 92%; background: var(--mint-soft); border: 1px solid var(--mint); border-radius: 14px; padding: 10px 14px; font-size: 14px; }
.chat-update a { font-weight: 700; color: var(--accent); }
.msg-card { display: flex; align-items: center; gap: 14px; text-decoration: none; color: var(--ink); border: 1px solid var(--mint); background: linear-gradient(135deg, var(--mint-soft), var(--surface)); }
.msg-card-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--fill); color: var(--mint); display: grid; place-items: center; flex: none; }
.msg-card-ic svg { width: 22px; height: 22px; }
.msg-card-t { display: grid; gap: 2px; flex: 1; min-width: 0; }
.msg-card .nbadge[hidden] { display: none; }
.tabbar a { position: relative; }
.tabbar a .nbadge { position: absolute; top: 2px; left: calc(50% + 6px); margin: 0; min-width: 18px; padding: 0 5px; font-size: 10px; line-height: 17px; }
.tabbar a .nbadge[hidden] { display: none; }
.chat { display: flex; flex-direction: column; height: calc(100vh - 300px); min-height: 420px; background: var(--surface); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.portal .chat { height: calc(100vh - 290px - var(--sab)); }
.chat-note { margin: 0; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.chat-msgs { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 0; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 86%; }
.chat-row.mine { align-self: flex-end; flex-direction: row-reverse; }
.chat-av { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; background: var(--mint-mid); color: var(--ink); font: 700 11px var(--body); object-fit: cover; }
.chat-bub { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px 16px 16px 4px; padding: 8px 12px; overflow-wrap: anywhere; font-size: 15px; line-height: 1.45; }
.chat-row.mine .chat-bub { background: var(--fill); color: var(--on-fill); border-color: var(--fill); border-radius: 16px 16px 4px 16px; }
.chat-row.mine .chat-bub a { color: var(--mint); }
.chat-row.mine .chat-who { color: #B4C5BD; }
.chat-who { margin-bottom: 2px; }
.chat-img { display: block; max-width: min(260px, 100%); max-height: 260px; border-radius: 12px; margin-top: 6px; }
.chat-doc { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-weight: 600; }
.chat-doc svg { width: 16px; height: 16px; }
.chat-compose { display: flex; align-items: flex-end; gap: 8px; padding: 10px; border-top: 1px solid var(--line); }
.chat-compose textarea { flex: 1; resize: none; min-height: 44px; max-height: 160px; border-radius: 14px; }
.chat-compose svg { width: 20px; height: 20px; }
.chat-compose .btn { height: 44px; }
.chat-file { padding: 0 14px 8px; }
.tabbar { grid-template-columns: repeat(5, minmax(0, 1fr)); } .tabbar a { font-size: 11.5px; }

/* ---------- Gmail in the Hub ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.row.center { justify-content: center; }
.gm-wrap { display: grid; grid-template-columns: 210px minmax(300px, 380px) minmax(0, 1fr); gap: 0; height: calc(100dvh - 190px); min-height: 460px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: var(--surface); }
.gm-side { background: var(--surface-2); border-right: 1px solid var(--line); padding: 12px 10px; overflow-y: auto; }
.gm-new { width: 100%; justify-content: center; margin-bottom: 12px; }
.gm-search { margin-bottom: 10px; }
.gm-search input { width: 100%; }
.gm-lab { display: block; width: 100%; text-align: left; padding: 9px 10px; border: 0; background: none; border-radius: 10px; font: 600 14px var(--body); color: var(--ink-2); cursor: pointer; }
.gm-lab:hover { background: var(--mint-soft); }
.gm-lab.is-on { background: var(--mint-mid); color: var(--ink); }
.gm-lab-head { font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 14px 0 4px; padding: 0 10px; }
.gm-list { border-right: 1px solid var(--line); overflow-y: auto; display: flex; flex-direction: column; }
.gm-list-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.gm-list-head h2 { margin: 0; font-size: 17px; }
.gm-rows { list-style: none; margin: 0; padding: 0; }
.gm-row { position: relative; display: flex; align-items: flex-start; gap: 8px; padding: 11px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.gm-row:hover { background: var(--mint-soft); }
.gm-row.is-open { background: var(--mint-mid); }
.gm-row.is-unread .gm-who, .gm-row.is-unread .gm-subj { font-weight: 700; color: var(--ink); }
.gm-row-main { min-width: 0; flex: 1; }
.gm-row-top { display: flex; justify-content: space-between; gap: 8px; }
.gm-who { font: 600 14px var(--body); color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-n { color: var(--muted); font-weight: 600; }
.gm-when { font-size: 12px; color: var(--muted); flex: none; }
.gm-subj { font-size: 14px; color: var(--ink-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-snip { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-star { border: 0; background: none; cursor: pointer; color: var(--line); padding: 2px; }
.gm-star svg { width: 18px; height: 18px; }
.gm-star.is-on { color: #E8A33D; }
.gm-star.is-on svg { fill: currentColor; }
.gm-row-tools { display: none; align-items: center; gap: 2px; }
.gm-row:hover .gm-row-tools, .gm-row:focus-within .gm-row-tools { display: flex; }
.gm-clip { color: var(--muted); display: inline-grid; place-items: center; }
.gm-clip svg { width: 15px; height: 15px; }
.gm-read { overflow-y: auto; display: flex; flex-direction: column; }
.gm-read:empty::after { content: 'Pick an email to read.'; color: var(--muted); padding: 28px; font-size: 14px; }
.gm-read-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 1; }
.gm-read-head h2 { margin: 0; font-size: 18px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.gm-back { display: none; }
.gm-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px 0; }
.gm-chips .chip { text-decoration: none; }
.gm-msgs { padding: 8px 16px 20px; flex: 1; }
.gm-msg { border-bottom: 1px solid var(--line); padding: 12px 0; }
.gm-msg-head { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.gm-msg-who { flex: 1; min-width: 0; }
.gm-msg-when { flex: none; }
.gm-msg-body, .gm-msg.is-open .gm-msg-shut { display: none; }
.gm-msg.is-open .gm-msg-body { display: block; }
.gm-msg-shut { font-size: 13px; color: var(--muted); padding: 4px 0 0 40px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gm-html { margin-top: 12px; font-size: 14.5px; line-height: 1.6; overflow-x: auto; contain: content; isolation: isolate; word-break: break-word; }
.gm-html img { max-width: 100%; height: auto; }
.gm-html table { max-width: 100%; border-collapse: collapse; }
.gm-html blockquote { margin: 0 0 0 .8ex; border-left: 2px solid var(--line); padding-left: 12px; color: var(--muted); }
.gm-imgbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; background: var(--surface-2); border: 1px solid var(--line); border-radius: 10px; padding: 8px 12px; font-size: 13px; color: var(--muted); }
.gm-atts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.gm-att { display: inline-flex; align-items: center; gap: 4px; padding: 4px 6px 4px 10px; border: 1px solid var(--line); border-radius: 10px; font-size: 13px; background: var(--surface-2); }
.gm-att > a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; color: var(--ink-2); }
.gm-att .icon-btn { width: 28px; height: 28px; }
.gm-att svg { width: 15px; height: 15px; }
.gm-att em { color: var(--muted); font-style: normal; font-size: 12px; }
.gm-reply { display: flex; gap: 8px; flex-wrap: wrap; padding: 16px; position: sticky; bottom: 0; background: var(--surface); border-top: 1px solid var(--line); }
.gm-compose .gm-to { display: flex; gap: 8px; align-items: flex-end; }
.gm-compose .gm-to .field { flex: 1; position: relative; }
.gm-sug { position: absolute; left: 0; right: 0; top: 100%; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); overflow: hidden; max-height: 240px; overflow-y: auto; }
.gm-sug button { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 9px 12px; border: 0; background: none; cursor: pointer; font: 14px var(--body); color: var(--ink); }
.gm-sug button:hover { background: var(--mint-soft); }
.gm-sug em { margin-left: auto; font-style: normal; }
.gm-tools { display: flex; gap: 4px; flex-wrap: wrap; margin: 12px 0 0; }
.gm-editor { min-height: 200px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-top: 8px; font-size: 15px; line-height: 1.6; background: var(--surface); }
.gm-editor:focus { outline: 2px solid var(--mint-strong); outline-offset: 1px; }
.gm-quoted { margin-top: 10px; font-size: 13px; color: var(--muted); }
.gm-quoted summary { cursor: pointer; }
.gm-quoted > div { border-left: 2px solid var(--line); padding-left: 12px; margin-top: 8px; }
.gm-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.gm-file { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 999px; padding: 4px 6px 4px 12px; }
.gm-file button { border: 0; background: none; cursor: pointer; color: var(--muted); display: grid; place-items: center; padding: 2px; }
.gm-file svg { width: 13px; height: 13px; }
.modal:has(.gm-compose) { max-width: 760px; }
@media (max-width: 1180px) { .gm-wrap { grid-template-columns: 180px minmax(min(260px, 100%), 1fr) minmax(0, 1.3fr); } }
@media (max-width: 900px) {
  .gm-wrap { grid-template-columns: 1fr; grid-template-rows: auto minmax(0, 1fr); height: calc(100dvh - 190px - 76px - var(--sab)); min-height: 340px; }
  .gm-wrap.is-open { grid-template-rows: minmax(0, 1fr); height: calc(100dvh - 148px - 76px - var(--sab)); }
  .gm-reply { padding: 10px 12px; gap: 6px; }
  .gm-reply .btn { flex: 1; justify-content: center; min-width: 0; }
  .gm-wrap.is-open .gm-side { display: none; }
  .gm-read-head h2 { font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .gm-side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: nowrap; align-items: center; align-self: start; gap: 6px; overflow-x: auto; overflow-y: hidden; padding: 8px; scrollbar-width: none; }
  .gm-side::-webkit-scrollbar { display: none; }
  .gm-side > * { flex: none; }
  .gm-side .gm-new { width: auto; height: 40px; margin: 0; }
  .gm-labels { display: flex; gap: 6px; align-items: center; flex-wrap: nowrap; }
  .gm-labels > * { flex: none; margin: 0; }
  .gm-labels > p.small { display: none; }
  .gm-search { margin: 0; min-width: 180px; }
  .gm-lab { width: auto; white-space: nowrap; }
  .gm-lab-head { display: none; }
  .gm-read { display: none; }
  .gm-wrap.is-open .gm-list { display: none; }
  .gm-wrap.is-open .gm-read { display: flex; }
  .gm-back { display: inline-grid; }
  .gm-row-tools { display: flex; }
}

/* ---------- Google Calendar in the Hub ---------- */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.cal-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.cal-side .list .item { padding: 10px 0; }
.cal-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; display: inline-block; }
.cal-month { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.cal-dow { background: var(--surface-2); padding: 9px 10px; font: 700 12px var(--body); text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.cal-cell { background: var(--surface); min-height: 112px; padding: 4px 5px 6px; display: flex; flex-direction: column; gap: 2px; }
.cal-cell.is-out { background: var(--surface-2); }
.cal-cell.is-out .cal-num { color: var(--muted); }
.cal-cell.is-today .cal-num { background: var(--mint-strong); color: #fff; }
.cal-num { align-self: flex-start; border: 0; background: none; cursor: pointer; font: 600 13px var(--body); color: var(--ink-2); width: 26px; height: 26px; border-radius: 50%; }
.cal-num:hover { background: var(--mint-soft); }
.cal-pill { display: flex; align-items: center; gap: 5px; width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--ink); border-radius: 6px; padding: 3px 6px; font: 600 12px var(--body); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-pill.is-all { background: var(--c); color: #0F1B17; border-left: 0; }
.cal-pill .cal-t { color: var(--muted); font-weight: 600; flex: none; }
.cal-pill:hover { filter: brightness(0.96); }
.cal-more { border: 0; background: none; color: var(--muted); font: 600 12px var(--body); text-align: left; cursor: pointer; padding: 2px 6px; }
.cal-time { display: grid; grid-template-columns: 58px repeat(var(--cols), minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r); overflow-x: auto; background: var(--surface); }
.cal-colhead { position: sticky; top: 0; z-index: 2; background: var(--surface); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 8px; text-align: center; }
.cal-colhead b { display: block; font: 600 12px var(--body); color: var(--muted); text-transform: uppercase; }
.cal-colhead span { font: 700 18px var(--display); }
.cal-colhead.is-today span { color: var(--mint-strong); }
.cal-time > .cal-gut:first-child { position: sticky; top: 0; z-index: 3; background: var(--surface); border-bottom: 1px solid var(--line); }
.cal-allday { min-height: 30px; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); padding: 3px; display: flex; flex-direction: column; gap: 2px; }
.cal-hours { display: grid; grid-template-rows: repeat(24, 56px); }
.cal-hours span { font-size: 11px; color: var(--muted); text-align: right; padding-right: 8px; transform: translateY(-7px); }
.cal-col { position: relative; border-left: 1px solid var(--line); display: grid; grid-template-rows: repeat(24, 56px); }
.cal-slot { border-bottom: 1px solid color-mix(in srgb, var(--line) 60%, transparent); cursor: pointer; }
.cal-slot:hover { background: var(--mint-soft); }
.cal-now { position: absolute; left: 0; right: 0; height: 2px; background: var(--bad); z-index: 3; }
.cal-now::before { content: ''; position: absolute; left: -4px; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.cal-ev { position: absolute; z-index: 2; overflow: hidden; text-align: left; border: 0; border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 20%, var(--surface)); color: var(--ink); border-radius: 6px; padding: 3px 6px; cursor: pointer; min-height: 18px; }
.cal-ev b { display: block; font: 600 12.5px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cal-ev span { font-size: 11px; color: var(--ink-2); }
.cal-ev.is-short { display: flex; align-items: center; gap: 6px; padding: 1px 6px; }
.cal-ev.is-short span { display: none; }
.cal-notes { margin-top: 12px; padding: 12px; background: var(--surface-2); border-radius: 12px; font-size: 14px; }
.cal-pick { display: grid; gap: 4px; margin-top: 10px; }
.cal-pick-row { padding: 6px 4px; }
.modal:has(.cal-edit), .modal:has(.cal-view) { max-width: 560px; }
@media (max-width: 1100px) { .cal-wrap { grid-template-columns: 1fr; } .cal-side { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; } .cal-side .card { margin: 0 !important; } }
@media (max-width: 760px) {
  .cal-head h1 { font-size: 18px; width: 100%; order: 3; }
  .cal-side { grid-template-columns: 1fr; }
  .cal-cell { min-height: 76px; }
  .cal-pill { font-size: 11px; padding: 2px 4px; }
  .cal-pill .cal-t { display: none; }
  .cal-dow { padding: 6px 4px; font-size: 10px; text-align: center; }
  .cal-time { grid-template-columns: 44px repeat(var(--cols), minmax(0, 1fr)); max-height: calc(100dvh - 300px); }
}

/* ---------- Google Drive in the Hub ---------- */
.dr-bar { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
.dr-bar input[type=search] { width: min(440px, 100%); }
.dr-crumbs { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 14px; }
.dr-crumbs button { border: 0; background: none; color: var(--accent); font: 600 14px var(--body); cursor: pointer; padding: 2px 4px; border-radius: 6px; }
.dr-crumbs button:hover { background: var(--mint-soft); }
.dr-crumbs button.is-here { color: var(--ink); cursor: default; }
.dr-crumbs span { color: var(--muted); }
.dr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(290px, 100%), 1fr)); gap: 12px; }
.dr-card { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; cursor: pointer; box-shadow: var(--shadow); }
.dr-card:hover { border-color: var(--mint-mid); }
.dr-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: color-mix(in srgb, var(--c) 16%, transparent); color: var(--c); flex: none; }
.dr-ico svg { width: 20px; height: 20px; }
.dr-main { flex: 1; min-width: 0; }
.dr-name { font: 600 14.5px var(--body); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dr-tools { display: none; gap: 2px; flex: none; }
.dr-card:hover .dr-tools, .dr-card:focus-within .dr-tools { display: flex; }
.dr-tools svg { width: 16px; height: 16px; }
.dr-who { }
.modal:has(.dr-share) { max-width: 580px; }
@media (max-width: 760px) { .dr-grid { grid-template-columns: 1fr; } .dr-tools { display: flex; } }

/* Ask Claude side panel: stays open beside the work, above modals */
.ai-panel { position: fixed; top: 12px; right: 12px; bottom: 12px; width: min(420px, calc(100vw - 24px)); z-index: 120; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 18px 50px rgba(15, 27, 23, 0.22); overflow: hidden; }
.ai-panel[hidden] { display: none; }
.ai-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.ai-log { flex: 1; overflow: auto; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.ai-msg { padding: 10px 12px; border-radius: 14px; max-width: 92%; font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.ai-msg.user { align-self: flex-end; background: var(--mint-mid); }
.ai-msg.assistant { align-self: flex-start; background: var(--surface-2); border: 1px solid var(--line); }
.ai-msg code { font-family: var(--mono, 'JetBrains Mono', monospace); font-size: 13px; }
.ai-tools { margin-top: 8px; }
.ai-tips { display: grid; gap: 8px; margin-top: 10px; }
.ai-tips .btn { justify-content: flex-start; text-align: left; white-space: normal; height: auto; padding: 8px 12px; }
.ai-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.ai-form textarea { min-height: 48px; resize: none; }
.ai-panel .err-text { margin: 0 14px 10px; }
@media (max-width: 900px) { .ai-panel { top: 0; right: 0; bottom: 0; width: 100vw; border-radius: 0; padding-bottom: var(--sab); } }
.svc-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(210px, 100%), 1fr)); gap: 6px 14px; margin-top: 4px; }
.svc-pick input { width: auto; min-height: 0; margin-top: 3px; flex: none; }
.svc-pick label { flex-wrap: nowrap; }

/* Profile bubble and menus */
.pbub { width: 40px; height: 40px; border-radius: 12px; border: 0; background: var(--fill); color: var(--mint); font: 700 14px var(--display, 'Outfit'), sans-serif; cursor: pointer; display: inline-grid; place-items: center; padding: 0; flex: none; }
.pbub.big { width: 46px; height: 46px; font-size: 16px; }
.pmenu { position: fixed; z-index: 130; min-width: 260px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 18px 48px rgba(15, 27, 23, .22); padding: 8px; display: grid; gap: 2px; animation: rise .16s var(--ease) both; }
.pmenu-who { display: flex; gap: 12px; align-items: center; padding: 8px 8px 12px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.pmenu-who .badge { margin-top: 4px; }
.pmenu a, .pmenu button { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--ink); text-decoration: none; background: none; border: 0; font: 500 14.5px var(--body); cursor: pointer; text-align: left; }
.pmenu a:hover, .pmenu button:hover { background: var(--mint-soft); }
.pmenu svg { width: 17px; height: 17px; color: var(--ink-2); }
@media (prefers-color-scheme: dark) { .pbub { background: var(--mint); color: #0F1B17; } }
.lst { width: 100%; border-collapse: collapse; font-size: 14px; }
.lst th { text-align: left; font-size: 12px; color: var(--muted); padding: 4px 8px; border-bottom: 1px solid var(--line); }
.lst td { padding: 6px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.lst-tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; margin-right: 6px; background: var(--surface-2); }
.lst-tag.bad { background: #FBEBEB; color: #B42318; } .lst-tag.warn { background: #F9EEDA; color: #8A5A00; } .lst-tag.good { background: var(--mint-soft); color: var(--accent); }
.say-screen { margin: 8px 0; padding: 8px 12px; border-radius: 10px; background: #0F1B17; color: #E7F1EC; font-size: 14px; }
.say-screen b { display: inline-block; background: var(--mint); color: #0F1B17; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; padding: 1px 7px; border-radius: 6px; margin-right: 6px; }
.script-groups { margin-bottom: 8px; }

/* ===== Skin v3: paper canvas, line cards, segmented tabs, mono numbers ===== */
:root { --bg: #F1F3EE; --surface-2: #F6F8F4; --r: 16px; --shadow: 0 1px 0 rgba(15, 27, 23, .04), 0 2px 6px rgba(15, 27, 23, .04); }
@media (prefers-color-scheme: dark) { :root { --bg: #0A1310; --surface: #101C18; --surface-2: #14231E; } }
.card { border-radius: var(--r); box-shadow: var(--shadow); }
.card-head h2 { font-size: 18px; }
.card-head h3 { font-size: 16px; }
.page-head { margin-bottom: 18px; align-items: center; }
.page-head h1 { font-size: clamp(24px, 2.6vw, 30px); }
.btn { border-radius: 10px; min-height: 42px; padding: 9px 16px; font-size: 14.5px; }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: 13.5px; border-radius: 8px; }
.btn-xl { border-radius: 14px; }
input, select, textarea { border-radius: 10px; min-height: 44px; padding: 10px 12px; background: var(--surface); }
.tabs { display: flex; width: fit-content; max-width: 100%; gap: 2px; padding: 4px; margin: 0 0 18px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs a { padding: 8px 14px; border: 0; margin: 0; border-radius: 9px; font-size: 14px; color: var(--ink-2); }
.tabs a:hover { background: var(--mint-soft); color: var(--ink); }
.tabs a.is-active { background: var(--sel); color: var(--on-sel); }
@media (prefers-color-scheme: dark) { .tabs a.is-active { background: var(--mint); color: #0F1B17; } }
.stats { gap: 12px; margin-bottom: 20px; }
.stat { position: relative; border-radius: 14px; padding: 16px 18px; box-shadow: var(--shadow); overflow: hidden; }
.stat::after { content: ''; position: absolute; top: 14px; right: 14px; width: 18px; height: 18px; opacity: .55;
  background: linear-gradient(var(--mint-strong) 0 0) 0 0 / 5px 5px no-repeat, linear-gradient(var(--mint) 0 0) 6.5px 0 / 5px 5px no-repeat, linear-gradient(var(--mint) 0 0) 13px 0 / 5px 5px no-repeat,
    linear-gradient(var(--mint) 0 0) 0 6.5px / 5px 5px no-repeat, linear-gradient(var(--mint-strong) 0 0) 6.5px 6.5px / 5px 5px no-repeat, linear-gradient(var(--line) 0 0) 13px 6.5px / 5px 5px no-repeat,
    linear-gradient(var(--line) 0 0) 0 13px / 5px 5px no-repeat, linear-gradient(var(--mint) 0 0) 6.5px 13px / 5px 5px no-repeat, linear-gradient(var(--line) 0 0) 13px 13px / 5px 5px no-repeat; }
.stat-num { font: 600 30px var(--mono); letter-spacing: -.03em; }
.stat-label { font-size: 13px; }
.badge { border-radius: 7px; padding: 3px 8px; font-size: 12px; }
.badge .dot { width: 7px; height: 7px; box-shadow: none; }

/* Agents board */
.ag-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ag { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; display: grid; gap: 12px; box-shadow: var(--shadow); position: relative; }
.ag[data-tone=live] { border-color: rgba(214, 69, 69, .5); box-shadow: 0 0 0 3px rgba(214, 69, 69, .08), var(--shadow); }
.ag[data-tone=gray] { opacity: .78; }
.ag-top { display: flex; align-items: center; gap: 12px; }
.ag-av { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font: 700 15px var(--display); background: var(--mint-soft); color: var(--accent); position: relative; flex: none; }
.ag-av .dot { position: absolute; right: -3px; bottom: -3px; width: 13px; height: 13px; border: 2.5px solid var(--surface); box-sizing: content-box; }
.ag-name { font-weight: 700; line-height: 1.2; }
.ag-st { font-size: 13px; color: var(--muted); }
.ag-call { background: #0F1B17; border: 1px solid rgba(157, 235, 203, .2); color: #E7F1EC; border-radius: 12px; padding: 10px 12px; display: grid; gap: 8px; }
.ag-call b { color: #fff; }
.ag-call .small { color: #9FB3AA; }
.ag-call .btn-ghost { color: #E7F1EC; border-color: rgba(255, 255, 255, .2); }
.ag-call .btn-ghost:hover { background: rgba(255, 255, 255, .08); }
.ag-call .btn.is-on { background: var(--mint); color: #0F1B17; border-color: var(--mint); }
.ag-call .btn:disabled { opacity: .45; cursor: not-allowed; }
.ag-call p.small { margin: 0; }
.ag-nums { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ag-nums div { background: var(--surface-2); border-radius: 10px; padding: 7px 8px; }
.ag-nums b { display: block; font: 600 16px var(--mono); }
.ag-nums span { font-size: 11px; color: var(--muted); }
.ag-bar { display: flex; height: 6px; border-radius: 6px; overflow: hidden; background: var(--surface-2); }
.ag-bar i { display: block; height: 100%; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12.5px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.ana-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl td.n, .tbl th.n { text-align: right; font-family: var(--mono); font-variant-numeric: tabular-nums; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl-wrap { overflow-x: auto; }
.hbar { display: grid; grid-template-columns: minmax(90px, 140px) minmax(0, 1fr) 64px; gap: 10px; align-items: center; font-size: 13.5px; padding: 5px 0; }
.hbar .track { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; }
.hbar .fill { height: 100%; background: var(--mint-strong); border-radius: 6px; }
.hbar .fill.b2 { background: var(--ink); }
.hbar .n { text-align: right; font: 500 12.5px var(--mono); color: var(--ink-2); }
.seg { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.seg button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: 600 13px var(--body); color: var(--ink-2); cursor: pointer; }
.seg button.is-on { background: var(--sel); color: var(--on-sel); }
@media (prefers-color-scheme: dark) { .seg button.is-on { background: var(--mint); color: #0F1B17; } }

/* Training */
.tr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.tr-card { display: grid; gap: 8px; align-content: start; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; text-decoration: none; color: inherit; box-shadow: var(--shadow); transition: border-color .15s, transform .15s; }
a.tr-card:hover { border-color: var(--mint-strong); transform: translateY(-1px); }
.tr-card .tr-ico { width: 40px; height: 40px; border-radius: 11px; background: #0F1B17; color: var(--mint); display: grid; place-items: center; }
.tr-card .tr-ico svg { width: 20px; height: 20px; }
.tr-card h3 { margin: 4px 0 0; }
.tr-card p { margin: 0; font-size: 14px; color: var(--muted); }
.tr-done { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--accent); }
.drill { max-width: 760px; margin: 0 auto; }
.drill-card { background: #0F1B17; border: 1px solid rgba(157, 235, 203, .22); color: #E7F1EC; border-radius: 20px; padding: 28px; min-height: 240px; display: grid; align-content: center; gap: 12px; }
.drill-card .q { font: 650 24px var(--display); color: #fff; }
.drill-card .a { font-size: 17px; line-height: 1.6; color: #CFE0D8; }
.script-read { max-width: 820px; }
.script-read .st { margin: 0 0 22px; }
.script-read h3 { display: flex; gap: 10px; align-items: baseline; border-bottom: 2px solid var(--mint); padding-bottom: 6px; }
.script-read h3 span { font: 700 14px var(--mono); color: var(--mint-strong); }
.script-read p { margin: 0 0 10px; font-size: 16.5px; line-height: 1.6; }
.script-read .cue { font-size: 15.5px; line-height: 1.5; color: var(--ink); background: #FFF4D6; border-left: 4px solid #E8A317; padding: 8px 12px; border-radius: 0 8px 8px 0; }
.script-read .blank { background: var(--mint-soft); border-bottom: 1.5px solid var(--mint-strong); padding: 0 3px; font-weight: 700; }

@media (max-width: 640px) { .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stat-num { font-size: 24px; } .stat { padding: 14px; } }

@media (prefers-color-scheme: dark) {
  .tr-card .tr-ico { background: var(--mint); color: #0F1B17; }
  .drill-card { background: #13261F; }
  .ag-call { background: #13261F; }
  .hbar .fill.b2 { background: var(--mint); }
  .cmd-ico.warn { color: #F2C66B; }
  .script-read .blank { color: var(--ink); }
}
@media (prefers-color-scheme: dark) {
  .timer-bar { background: #13261F; }
  .chat-row.mine .chat-bub { background: #1D3A30; border-color: #1D3A30; }
  .msg-card-ic { background: var(--mint); color: #0F1B17; }
  .cv-tabs button.is-on { background: var(--mint); color: #0F1B17; border-color: var(--mint); }
}

/* Team appointment calendar */
.ac-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: var(--surface); box-shadow: var(--shadow); }
.ac-wd { font: 600 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); padding: 10px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.ac-day { min-height: 118px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ac-day:nth-child(7n) { border-right: 0; }
.ac-day.out { background: var(--surface-2); opacity: .6; }
.ac-day.today .ac-n { background: var(--mint-strong); color: #06120D; }
.ac-n { font: 600 12px var(--mono); width: 24px; height: 24px; display: grid; place-items: center; border-radius: 7px; }
.ac-chip { display: block; font-size: 12px; padding: 3px 6px; border-radius: 6px; background: var(--mint-soft); color: var(--ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; border-left: 3px solid var(--mint-strong); }
.ac-chip.client { border-left-color: #4E7FD8; background: rgba(78, 127, 216, .1); }
.ac-chip.past { opacity: .55; }
.ac-chip b { font-family: var(--mono); font-weight: 600; }
@media (max-width: 700px) { .ac-day { min-height: 70px; } .ac-chip { font-size: 0; padding: 0; height: 6px; } .ac-wd { padding: 6px 2px; font-size: 9px; } }

/* Charts */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart text { font: 500 11px var(--mono); fill: var(--muted); }
.chart .grid { stroke: var(--line); }
.funnel { display: grid; gap: 6px; }
.funnel-row { display: grid; grid-template-columns: 130px minmax(0, 1fr) 120px; align-items: center; gap: 10px; font-size: 14px; }
.funnel-bar { height: 30px; border-radius: 8px; background: linear-gradient(90deg, var(--mint-strong), var(--mint)); min-width: 3px; display: flex; align-items: center; padding-left: 10px; color: #0F1B17; font: 600 13px var(--mono); }
.funnel-row .n { font: 500 12.5px var(--mono); color: var(--muted); text-align: right; }

/* Power dialer */
.pd { position: fixed; z-index: 120; right: 20px; top: 76px; width: min(400px, calc(100vw - 24px)); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(6, 14, 11, .28); overflow: hidden; animation: rise .2s var(--ease) both; }
.pd-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0F1B17; color: #E7F1EC; }
.pd-head b { color: var(--mint); font-family: var(--mono); }
.pd-count { margin-left: auto; font: 700 26px var(--mono); color: #fff; }
.pd-list { display: grid; gap: 8px; padding: 12px; }
.pd-card { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 10px; border: 1px solid var(--line); border-radius: 12px; }
.pd-card.first { border-color: var(--mint-strong); background: var(--mint-soft); }
.pd-card .g { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; font: 700 14px var(--display); background: var(--surface-2); }
.pd-card .g.A { background: var(--mint-strong); color: #fff; } .pd-card .g.B { background: var(--mint); color: #0F1B17; } .pd-card .g.C { background: #F2C66B; color: #0F1B17; } .pd-card .g.D { background: #E8A0A0; color: #0F1B17; }
.pd-card b { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pd-foot { display: flex; gap: 8px; padding: 0 12px 12px; flex-wrap: wrap; }
.pd-bar { height: 4px; background: var(--mint-strong); transition: width 1s linear; }
.pd.compact .pd-list, .pd.compact .pd-foot { display: none; }
.tiers { display: flex; gap: 6px; flex-wrap: wrap; margin: 0 0 14px; }
.tiers button { border: 1px solid var(--line); background: var(--surface); border-radius: 10px; padding: 7px 12px; font: 600 13px var(--body); color: var(--ink-2); cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.tiers button b { font: 600 12px var(--mono); background: var(--surface-2); border-radius: 6px; padding: 1px 6px; }
.tiers button.is-on { background: #0F1B17; color: #fff; border-color: #0F1B17; }
.tiers button.is-on b { background: var(--mint); color: #0F1B17; }
@media (prefers-color-scheme: dark) { .tiers button.is-on { background: var(--mint); color: #0F1B17; } .tiers button.is-on b { background: #0F1B17; color: var(--mint); } }

/* Ask Claude bubble */
.aib { position: fixed; right: 20px; bottom: 20px; z-index: 110; width: 56px; height: 56px; border-radius: 18px; border: 0; background: #0F1B17; color: var(--mint); display: grid; place-items: center; cursor: pointer; box-shadow: 0 14px 34px rgba(6, 14, 11, .35); }
.aib svg { width: 26px; height: 26px; }
@media (prefers-color-scheme: dark) { .aib { background: var(--mint); color: #0F1B17; } }
@media (max-width: 900px) { .aib { bottom: calc(84px + var(--sab)); right: 14px; width: 50px; height: 50px; } }
.tbl.sheet th { position: sticky; top: 0; background: var(--surface); z-index: 1; }
.tbl.sheet td { white-space: nowrap; font-size: 13px; padding: 7px 10px; }

/* Pages that refresh themselves (Agents, dialer, dashboard) redraw without replaying the entrance animation, so nothing blinks. */
body.settled .card, body.settled .stat, body.settled .item, body.settled .post, body.settled .lead-card, body.settled .ag, body.settled .client-card, body.settled .tr-card { animation: none !important; }
.mtbar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 18px; z-index: 115; background: #E8A33D; color: #0F1B17; font: 600 13.5px var(--body); padding: 10px 14px; border-radius: 12px; box-shadow: 0 12px 30px rgba(6, 14, 11, .3); display: flex; gap: 10px; align-items: center; }
.mtbar button { border: 0; background: #0F1B17; color: #fff; border-radius: 8px; padding: 6px 10px; font: 600 13px var(--body); cursor: pointer; }
@media (max-width: 900px) { .mtbar { bottom: calc(84px + var(--sab)); width: calc(100vw - 24px); } }
.stpill[data-tone=maint] i, .dot.maint { background: #8B5CF6; box-shadow: 0 0 0 3px rgba(139, 92, 246, .22); }
.stpill[data-tone=maint] { border-color: rgba(139, 92, 246, .55); }
.ag[data-tone=maint] { border-color: rgba(139, 92, 246, .5); }

/* ===== Skin v4: accent palette, bento dashboard, notifications panel, profile photos, budget ===== */
:root {
  --c-blue: #3F78E0; --c-violet: #7C5CD6; --c-amber: #E19A1F; --c-coral: #E4603F; --c-teal: #159DAE; --c-green: #1FA574; --c-pink: #D4569A; --c-slate: #7A8A93; --c-line: #C9D4CF;
}
@media (prefers-color-scheme: dark) {
  :root { --c-blue: #6B9BF2; --c-violet: #A08AF0; --c-amber: #F2B544; --c-coral: #F28363; --c-teal: #3CC3D3; --c-green: #3DD6A0; --c-pink: #EC7FB6; --c-slate: #98A8B1; --c-line: #3A4E46; }
}
/* One color per kind of thing, so lists read at a glance. */
.k-call { --k: var(--c-green); } .k-vm { --k: var(--bad); } .k-text { --k: var(--c-blue); } .k-task { --k: var(--c-amber); } .k-client { --k: var(--c-violet); }
.k-lead { --k: var(--c-teal); } .k-money { --k: var(--c-pink); } .k-meet { --k: var(--c-coral); } .k-slack { --k: var(--c-slate); }
.feed .dot[class*="k-"] { background: color-mix(in srgb, var(--k) 16%, var(--surface)); color: var(--k); }
.badge.k-meet-b { background: color-mix(in srgb, var(--c-coral) 14%, transparent); color: var(--c-coral); border-color: color-mix(in srgb, var(--c-coral) 35%, transparent); }
/* Menu icons carry a color; the open page turns dark on mint as before. */
.rail nav a[data-nav] svg { color: var(--nc, #7F978C); }
.rail nav a.is-active svg { color: #0F1B17; }
.rail nav a[data-nav=home] { --nc: #5FE0B0; } .rail nav a[data-nav=phone], .rail nav a[data-nav=clients], .rail nav a[data-nav=google] { --nc: #7FA8F5; }
.rail nav a[data-nav=pipeline], .rail nav a[data-nav=scan] { --nc: #A895F0; } .rail nav a[data-nav=calendar], .rail nav a[data-nav=alerts] { --nc: #F59278; }
.rail nav a[data-nav=agents] { --nc: #4FD0DE; } .rail nav a[data-nav=automations], .rail nav a[data-nav=training] { --nc: #F4C25E; }
.rail nav a[data-nav=work], .rail nav a[data-nav=payments] { --nc: #5FE0B0; } .rail nav a[data-nav=slack] { --nc: #F08DBE; } .rail nav a[data-nav=vault], .rail nav a[data-nav=settings] { --nc: #9FB0B8; }
.cmd-title[data-grp=sell] small { color: var(--c-blue); } .cmd-title[data-grp=deliver] small { color: var(--c-green); } .cmd-title[data-grp=team] small { color: var(--c-violet); } .cmd-title[data-grp=run] small { color: var(--c-amber); }
.col { border-top: 3px solid var(--sc, var(--line)); }
.col[data-stage=new] { --sc: var(--c-slate); } .col[data-stage=attempting] { --sc: var(--c-blue); } .col[data-stage=callback] { --sc: var(--c-amber); }
.col[data-stage=audit_booked] { --sc: var(--c-violet); } .col[data-stage=follow_up] { --sc: var(--c-teal); } .col[data-stage=won] { --sc: var(--c-green); } .col[data-stage=lost], .col[data-stage=no_show] { --sc: var(--bad); }
/* Widgets and stat tiles take a color from --wc. */
.wc-blue { --wc: var(--c-blue); } .wc-violet { --wc: var(--c-violet); } .wc-amber { --wc: var(--c-amber); } .wc-coral { --wc: var(--c-coral); } .wc-teal { --wc: var(--c-teal); } .wc-green { --wc: var(--c-green); }
.card[class*="wc-"] { border-top: 3px solid var(--wc); }
.card[class*="wc-"] .card-head h2::before { content: ''; display: inline-block; width: 9px; height: 9px; border-radius: 3px; background: var(--wc); margin-right: 9px; vertical-align: 1px; }
.tint-blue { --wc: var(--c-blue); } .tint-violet { --wc: var(--c-violet); } .tint-amber { --wc: var(--c-amber); } .tint-coral { --wc: var(--c-coral); } .tint-teal { --wc: var(--c-teal); } .tint-green { --wc: var(--c-green); }
.stat[class*="tint-"] { background: linear-gradient(160deg, color-mix(in srgb, var(--wc) 13%, var(--surface)), var(--surface) 78%); border-color: color-mix(in srgb, var(--wc) 30%, var(--line)); }
.stat[class*="tint-"] .stat-num { color: color-mix(in srgb, var(--wc) 78%, var(--ink)); }
/* Dashboard: a 12 column grid with widgets of different sizes. */
.bento { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 14px; grid-auto-flow: dense; align-items: stretch; }
.bento > * { margin: 0 !important; min-width: 0; }
.w-3 { grid-column: span 3; } .w-4 { grid-column: span 4; } .w-6 { grid-column: span 6; } .w-8 { grid-column: span 8; } .w-12 { grid-column: span 12; }
@media (max-width: 1240px) { .w-3 { grid-column: span 6; } .w-4 { grid-column: span 6; } .w-8 { grid-column: span 12; } }
@media (max-width: 860px) { .w-6 { grid-column: span 12; } .w-4 { grid-column: span 12; } }
@media (max-width: 520px) { .w-3 { grid-column: span 12; } }
.tile { display: grid; align-content: space-between; gap: 6px; }
.tile .stat-num { font-size: 34px; }
.tile-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 10px; }
.tile-spark { width: 46%; height: 36px; }
.tile-spark svg, .spark { width: 100%; height: 100%; display: block; }
.hero .tile-spark svg { opacity: .95; }
.hello { display: flex; align-items: center; gap: 14px; }
.hello-av { position: relative; width: 54px; height: 54px; border-radius: 17px; background: var(--fill); color: var(--mint); display: grid; place-items: center; font: 700 19px var(--display); flex: none; }
.hello-av img, .pbub img, .mav img, .ag-av img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: inherit; }
@media (prefers-color-scheme: dark) { .hello-av { background: var(--mint); color: #0F1B17; } }
.chart .capline { stroke: var(--bad); stroke-dasharray: 5 4; stroke-width: 1.4; }
.chart .captxt { fill: var(--bad); paint-order: stroke; stroke: var(--surface); stroke-width: 4px; stroke-linejoin: round; }
.donut { width: 150px; height: auto; flex: none; display: block; }
.donut-bg { stroke: var(--line); opacity: .7; }
.donut-n { font: 700 26px var(--display); fill: var(--ink); }
.donut-s { font: 500 11px var(--mono); fill: var(--muted); }
.dn-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; justify-content: center; }
.dn-leg, .bg-leg { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; flex: 1; min-width: 130px; font-size: 14px; }
.dn-leg li, .bg-leg li { display: grid; grid-template-columns: 12px 1fr auto; align-items: center; gap: 8px; }
.dn-leg i, .bg-leg i { width: 11px; height: 11px; border-radius: 4px; display: block; }
.goal-ring { display: grid; place-items: center; margin: 2px 0 12px; }
.fn { display: grid; gap: 9px; }
.fn-row { display: grid; grid-template-columns: 98px minmax(0, 1fr) 74px; gap: 8px; align-items: center; font-size: 13.5px; }
.fn-row i { height: 13px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; display: block; }
.fn-row i b { display: block; height: 100%; border-radius: 99px; transition: width .6s var(--ease); }
.fn-row em { font-style: normal; font-weight: 700; text-align: right; }
.fn-row small { color: var(--muted); font-weight: 500; font-size: 11.5px; }
.gq { display: grid; gap: 9px; }
.gq-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) 40px 62px; gap: 8px; align-items: center; font-size: 13.5px; }
.gq-g { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; font: 700 14px var(--display); }
.gq-row i { height: 12px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; overflow: hidden; display: block; }
.gq-row i b { display: block; height: 100%; border-radius: 99px; }
.gq-row em { font-style: normal; font-weight: 700; text-align: right; }
.gq-row small { color: var(--muted); font-size: 12px; }
.cl-row { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.cl-row .donut { width: 104px; }
.cl-nums { display: grid; gap: 8px; flex: 1; min-width: 130px; }
.cl-nums b { font: 700 20px var(--display); display: block; line-height: 1.1; }
.cl-nums span { font-size: 12.5px; color: var(--muted); }
.w-12 .feed { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 28px; }
@media (max-width: 860px) { .w-12 .feed { grid-template-columns: 1fr; } }
.mav { position: relative; flex: none; width: 36px; height: 36px; border-radius: 11px; background: var(--mint-soft); color: var(--accent); display: grid; place-items: center; font: 700 13px var(--display); overflow: hidden; }
/* Profile photo: sits on the profile bubble, the menu header and agent cards. */
.pbub { position: relative; }
.pbub.big { overflow: visible; }
.pbub .pcam { position: absolute; right: -5px; bottom: -5px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-strong); color: #04140E; display: grid; place-items: center; border: 2px solid var(--surface); }
.pbub .pcam svg { width: 11px; height: 11px; }
/* Notifications panel and page. */
.np { position: fixed; z-index: 140; width: min(410px, calc(100vw - 16px)); max-height: min(640px, calc(100vh - 84px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 24px 64px rgba(15, 27, 23, .28); overflow: hidden; animation: rise .16s var(--ease) both; }
.np-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px 8px; }
.np-head h3 { margin: 0; font-size: 17px; }
.np-tabs { display: flex; gap: 4px; padding: 0 10px 8px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.np-page + .np-tabs, #nf-tabs { padding: 0 0 10px; margin-bottom: 10px; }
.np-tabs button { border: 0; background: transparent; color: var(--muted); font: 600 13px var(--body); padding: 6px 11px; border-radius: 8px; cursor: pointer; white-space: nowrap; min-height: 32px; }
.np-tabs button:hover { background: var(--surface-2); color: var(--ink); }
.np-tabs button.is-on { background: var(--sel); color: var(--on-sel); }
.np-tabs button b { font: 700 11px var(--mono); background: var(--c-blue); color: #fff; border-radius: 99px; padding: 1px 6px; margin-left: 3px; }
.np-list { overflow: auto; flex: 1; min-height: 110px; }
.np-row { display: flex; gap: 12px; align-items: flex-start; width: 100%; text-align: left; padding: 12px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; cursor: pointer; color: var(--ink); font: inherit; }
.np-row:hover { background: var(--surface-2); }
.np-row.is-new { background: color-mix(in srgb, var(--c-blue) 7%, var(--surface)); }
.np-ic { flex: none; width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--k) 16%, var(--surface)); color: var(--k); }
.np-ic svg { width: 18px; height: 18px; }
.np-tx { display: grid; gap: 2px; min-width: 0; flex: 1; }
.np-tx b { font-size: 14px; line-height: 1.3; }
.np-tx em { font-style: normal; font-size: 13px; color: var(--ink-2); line-height: 1.35; }
.np-tx small { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: 12px; margin-top: 2px; }
.np-tag { font: 600 10px var(--mono); font-style: normal; letter-spacing: .07em; text-transform: uppercase; color: var(--k); background: color-mix(in srgb, var(--k) 13%, transparent); padding: 1px 6px; border-radius: 5px; }
.np-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c-blue); flex: none; margin-top: 7px; }
.np-foot { display: flex; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13.5px; font-weight: 600; background: var(--surface-2); }
.np-empty { padding: 30px 16px; text-align: center; color: var(--muted); font-size: 14px; margin: 0; }
.np-page .np-row { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 8px; }
.np-page { overflow: visible; }
@media (max-width: 520px) { .np { left: 8px !important; right: 8px !important; width: auto; } }
/* Budget and costs. */
.bg-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
@media (max-width: 900px) { .bg-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .bg-stats { grid-template-columns: 1fr; } }
.bg-stats .stat-num { font-size: 28px; }
.bg-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.bg-grid > .card { margin: 0; min-width: 0; }
.bg-wide { grid-column: 1 / -1; }
@media (max-width: 960px) { .bg-grid { grid-template-columns: 1fr; } }
.bg-top { display: flex; justify-content: space-between; gap: 14px; align-items: flex-end; flex-wrap: wrap; }
.bg-top b.big { font-size: 30px; display: block; line-height: 1.05; font-family: var(--display); }
.bg-proj { text-align: right; } .bg-proj b { font-size: 18px; display: block; }
.bg-top span, .bg-proj span { display: block; }
.bg-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 10px 0 5px; }
.bgt { height: 10px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.bgt i { display: block; height: 100%; background: var(--c-green); border-radius: 99px; transition: width .6s var(--ease); }
.bgt.warn i { background: var(--c-amber); } .bgt.bad i { background: var(--bad); }
.bg-chart { margin-top: 12px; }
.bg-donut { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.bg-donut .donut { width: 170px; }
.bg-form { display: grid; gap: 12px; }
.bg-caps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 560px) { .bg-caps { grid-template-columns: 1fr; } }
.bg-vend { display: grid; gap: 4px; }
.fx-rows { display: grid; gap: 8px; }
.fx-row { display: grid; grid-template-columns: minmax(0, 1fr) 130px 40px; gap: 8px; align-items: center; }
.tbl .num { text-align: right; }
.pace-key { display: inline-block; width: 22px; border-top: 2px dashed var(--bad); vertical-align: middle; margin-right: 8px; }

/* Hub calendar: appointments added by hand are buttons, empty days are clickable */
button.ac-chip { width: 100%; text-align: left; border: 0; border-left: 3px solid var(--c-violet, #7c5cd6); background: rgba(124, 92, 214, .12); cursor: pointer; font-family: inherit; color: var(--ink); }
button.ac-chip:hover { background: rgba(124, 92, 214, .22); }
.ac-day { cursor: pointer; }
.ac-day:hover { background: var(--surface-2); }

/* Files */
.fl-list { display: grid; }
.fl-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 9px 4px; border-top: 1px solid var(--line); }
.fl-row:first-child { border-top: 0; }
.fl-ico { width: 20px; height: 20px; color: var(--c-blue, #4E7FD8); flex: none; display: inline-flex; }
.fl-ico svg { width: 20px; height: 20px; }
.fl-name { flex: 1 1 200px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; color: var(--ink); }
.fl-act { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.fl-drop { border: 2px dashed transparent; border-radius: 12px; min-height: 80px; transition: border-color .15s, background .15s; }
.fl-drop.over { border-color: var(--mint-strong); background: var(--mint-soft); }
.empty-note { padding: 28px 8px; text-align: center; color: var(--muted, #5b6b64); }
.jobs-key { margin-top: 14px; padding: 10px 12px; background: var(--surface-2); border-radius: 10px; } .jobs-key p { margin: 0 0 4px; }

/* Lead scrubber: data score pills, the lead data card, call list chips */
.dscore { display: inline-block; min-width: 30px; text-align: center; font: 700 12px/1.6 var(--mono); border-radius: 999px; padding: 0 7px; }
.dscore.da { background: #DDF6EA; color: #0A6B4C; } .dscore.db { background: #E7F1FB; color: #1D4F86; } .dscore.dc { background: #FFF4D6; color: #7A5300; } .dscore.dd { background: #FBEBEB; color: #9B2C2C; }
.ldata .kv { display: grid; grid-template-columns: 110px 1fr; gap: 6px 10px; margin: 8px 0 0; font-size: 14px; }
.ldata .kv dt { color: var(--muted); } .ldata .kv dd { margin: 0; overflow-wrap: anywhere; }
.chips.lists { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 12px; }
@media (prefers-color-scheme: dark) { .dscore.da { background: rgba(35, 176, 126, .2); color: #9DEBCB; } .dscore.db { background: rgba(90, 150, 230, .2); color: #B8D4F5; } .dscore.dc { background: rgba(232, 163, 23, .18); color: #F7DA9C; } .dscore.dd { background: rgba(214, 69, 69, .2); color: #F6C9C9; } }

/* Opening animation (public/hub/intro.js) */
.rintro { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; background: #0F1B17; color: #F2F8F5; overflow: hidden; transition: opacity .45s var(--ease, ease), transform .55s cubic-bezier(.7, 0, .2, 1); }
.rintro.ri-out { opacity: 0; transform: translateY(-3%); pointer-events: none; }
.ri-glow { position: absolute; width: 70vmax; height: 70vmax; border-radius: 50%; background: radial-gradient(circle, rgba(157, 235, 203, .22) 0, rgba(157, 235, 203, 0) 60%); animation: riGlow 1.6s ease-out both; }
.ri-stack { position: relative; display: grid; justify-items: center; gap: 16px; }
.ri-mark { width: 96px; height: 96px; overflow: visible; }
.ri-sq { transform-origin: 48px 48px; animation: riPop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.ri-pin { transform-origin: 48px 81px; animation: riDrop .55s .22s cubic-bezier(.2, 1.3, .4, 1) both; }
.ri-arrow { stroke-dasharray: 60; stroke-dashoffset: 60; animation: riDraw .45s .62s ease-out forwards; }
.ri-word { font: 700 34px/1 var(--display, 'Outfit', sans-serif); letter-spacing: -.02em; animation: riUp .5s .55s ease-out both; }
.ri-word b { color: #9DEBCB; font-weight: 700; }
.ri-line { width: 180px; height: 3px; border-radius: 3px; background: rgba(157, 235, 203, .18); overflow: hidden; animation: riUp .4s .7s ease-out both; }
.ri-line span { display: block; height: 100%; width: 100%; background: #9DEBCB; transform-origin: left; animation: riSweep .8s .75s cubic-bezier(.6, 0, .2, 1) both; }
.ri-tag { margin: 0; font: 600 11px/1 var(--mono, monospace); letter-spacing: .32em; text-transform: uppercase; color: #A9BDB4; animation: riUp .4s .85s ease-out both; }
@keyframes riPop { from { transform: scale(.2) rotate(-12deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes riDrop { from { transform: translateY(-26px) scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes riDraw { to { stroke-dashoffset: 0; } }
@keyframes riUp { from { transform: translateY(10px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes riSweep { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes riGlow { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* First time tour (public/hub/tour.js) */
.tour { position: fixed; inset: 0; z-index: 9000; }
.tour-block { position: absolute; inset: 0; }
.tour-spot { position: fixed; border-radius: 12px; box-shadow: 0 0 0 9999px rgba(8, 16, 13, .66); outline: 2px solid #9DEBCB; outline-offset: 2px; transition: all .32s cubic-bezier(.3, .8, .3, 1); pointer-events: none; }
.tour-spot.none { width: 0 !important; height: 0 !important; left: 50% !important; top: 50% !important; outline: 0; }
.tour-card { position: fixed; width: min(340px, calc(100vw - 32px)); background: var(--surface, #fff); color: var(--ink, #0F1B17); border-radius: 16px; padding: 18px 18px 14px; box-shadow: 0 24px 60px rgba(0, 0, 0, .35); transition: left .32s cubic-bezier(.3, .8, .3, 1), top .32s cubic-bezier(.3, .8, .3, 1); }
.tour-card:focus { outline: none; }
.tour-card .t-step { font: 600 11px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--mint-strong, #23B07E); margin: 0 0 8px; }
.tour-card h3 { margin: 0 0 6px; font: 700 20px/1.2 var(--display); }
.tour-card p.t-body { margin: 0 0 14px; font-size: 15px; line-height: 1.5; color: var(--ink-2, #33433D); }
.tour-card .t-row { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.tour-card .t-row .spacer { flex: 1; }
.tour-card .t-dots { display: flex; gap: 4px; margin: 0 0 12px; }
.tour-card .t-dots i { width: 6px; height: 6px; border-radius: 6px; background: var(--line, #DCE6E1); transition: width .2s; }
.tour-card .t-dots i.on { width: 18px; background: var(--mint-strong, #23B07E); }
.tour-card.center { left: 50% !important; top: 50% !important; transform: translate(-50%, -50%); width: min(420px, calc(100vw - 32px)); }
.tour-card.center .t-hero { width: 52px; height: 52px; margin: 0 0 12px; }
.tour-list { display: grid; gap: 10px; }
.tour-list .item { align-items: flex-start; }
@media (prefers-reduced-motion: reduce) { .tour-spot, .tour-card { transition: none; } }

/* Client photos (public/hub/photos.js) */
.ph-thumbs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ph-thumbs:empty { display: none; }
.ph-thumbs img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line, #DCE6E1); }
.ph-more { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 10px; background: var(--mint-soft, #EAF8F1); font-weight: 600; }
.ph-count { flex-basis: 100%; }
.ph-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 14px; }
.ph-tile { margin: 0; background: var(--card, #fff); border: 1px solid var(--line, #DCE6E1); border-radius: 14px; overflow: hidden; display: flex; flex-direction: column; }
.ph-tile img { width: 100%; aspect-ratio: 1; object-fit: cover; display: block; background: var(--mint-soft, #EAF8F1); }
.ph-tile figcaption { padding: 8px 10px 0; display: grid; gap: 2px; }
.ph-foot { padding: 8px 10px 10px; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: auto; }
.sec-h { font-size: 18px; margin: 22px 0 10px; }
@media (max-width: 520px) { .ph-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

/* ---------- Phone audio panel ---------- */
.modal:has(.aud) { width: min(580px, 94vw); max-width: 94vw; }
.modal:has(.aud) { padding: 0 20px 20px; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
.aud { display: grid; gap: 12px; padding-bottom: var(--sab); }
.aud-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; position: sticky; top: 0; z-index: 5; background: var(--surface); margin: 0 -20px; padding: 18px 20px 10px; border-bottom: 1px solid var(--line); }
.aud-head h2 { margin: 0; font-size: 20px; }
.aud-sec { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: grid; gap: 10px; background: var(--card-2); }
.aud-sec h3 { margin: 0; font: 600 11px var(--font-mono, monospace); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.aud-sec select, .aud-sec input[type="tel"] { width: 100%; min-height: 42px; }
.aud-meter { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.aud-meter i { display: block; height: 100%; width: 0; background: var(--mint-strong); border-radius: 99px; transition: width .06s linear; }
.aud-meter i.cut { background: #9aa8a2; }
.aud-row { display: grid; gap: 6px; font-size: 14px; }
.aud-row > span { display: flex; justify-content: space-between; gap: 10px; }
.aud-row input[type="range"] { width: 100%; min-height: 28px; accent-color: var(--mint-strong); }
.aud-seg { display: flex; flex-wrap: wrap; width: 100%; }
.aud-seg button { flex: 1 1 0; min-width: 0; }
.aud-seg button.is-on { background: var(--surface, var(--card)); color: var(--ink); box-shadow: var(--shadow); }
.aud-checks { display: grid; gap: 8px; }
.aud-perm.granted { color: var(--accent); } .aud-perm.denied { color: #B42318; }
.aud-help { margin: 0; padding-left: 18px; display: grid; gap: 4px; }
.cb-btn[data-act="audio"] svg { opacity: .9; }

.tabs .tab-audio { margin-left: auto; align-self: center; flex: none; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 999px; padding: 6px 14px; font: 600 13px var(--body); cursor: pointer; white-space: nowrap; }
.tabs .tab-audio:hover { border-color: var(--mint-strong); }

/* ---------- Collapsible sections (fold) and the GHL style dialer ---------- */
.fold { border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); margin: 10px 0 0; }
.fold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 10px 14px; min-height: 44px; font-weight: 700; font-size: 15px; -webkit-tap-highlight-color: transparent; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ''; margin-left: auto; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg); transition: transform .15s; flex: none; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold-n { background: var(--mint-soft); color: var(--accent); border-radius: 99px; padding: 1px 9px; font: 700 12px var(--font-mono, monospace); }
.fold-body { padding: 2px 14px 14px; }
.fold-bar { display: flex; gap: 14px; justify-content: flex-end; margin: 8px 0 -2px; font-size: 13px; }
.prep .fold:first-of-type { margin-top: 6px; }
.dstrip { display: flex; flex-wrap: wrap; gap: 6px 20px; align-items: center; margin: 2px 0 14px; padding: 8px 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; font-size: 14px; }
.dstrip b { font: 700 18px var(--font-mono, monospace); margin-right: 4px; }
.dstrip i { font-style: normal; color: var(--muted); }
.dlayout { margin-left: auto; position: relative; }
.dlayout summary { cursor: pointer; list-style: none; padding: 5px 14px; border: 1px solid var(--line); border-radius: 99px; font-weight: 600; font-size: 13px; background: var(--card); }
.dlayout summary::-webkit-details-marker { display: none; }
.dlayout-body { position: absolute; right: 0; top: 36px; z-index: 30; background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; display: grid; gap: 10px; min-width: 210px; box-shadow: var(--shadow); }
.dlayout-body label { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.dial-grid { grid-template-columns: 250px minmax(min(340px, 100%), 1fr) minmax(0, 1.25fr); gap: 14px; }
.dial-grid.no-queue { grid-template-columns: minmax(min(340px, 100%), 1fr) minmax(0, 1.25fr); }
.dial-grid.no-queue .dial-queue { display: none; }
.dial-grid.no-prep { grid-template-columns: 250px minmax(min(340px, 100%), 1fr); }
.dial-grid.no-prep .dial-prep { display: none; }
.dial-grid.no-queue.no-prep { grid-template-columns: minmax(0, 760px); }
.dial-queue, .dial-left, .dial-prep { align-self: start; }
.dial-queue { padding: 12px; }
.dial-queue ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.dial-queue button { display: flex; width: 100%; gap: 10px; align-items: center; text-align: left; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); cursor: pointer; color: inherit; font: inherit; }
.dial-queue button.is-on { border-color: var(--mint-strong); background: var(--mint-soft); }
.dial-queue .grade, .dial-queue [class*="grade"] { transform: scale(.78); transform-origin: left center; margin-right: -8px; }
.dq-t { min-width: 0; display: grid; }
.dq-t b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; }
.dq-t small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dial-left .outcomes.big .btn { min-height: 46px; padding: 8px 10px; font-size: 14px; }
.dial-grid.tight { gap: 8px; }
.dial-grid.tight .card { padding: 12px 14px; }
.dial-grid.tight .dial-phone { font-size: 30px; }
@media (max-width: 1400px) { .dial-grid { grid-template-columns: 220px minmax(min(320px, 100%), 1fr) minmax(0, 1.1fr); } .dial-grid.no-queue { grid-template-columns: minmax(min(320px, 100%), 1fr) minmax(0, 1.1fr); } .dial-grid.no-prep { grid-template-columns: 220px minmax(min(320px, 100%), 1fr); } }
@media (max-width: 1100px) {
  .dial-grid, .dial-grid.no-queue, .dial-grid.no-prep, .dial-grid.no-queue.no-prep { grid-template-columns: minmax(0, 1fr); }
  .dial-queue { display: none; }
  .dial-left, .dial-prep { position: static; max-height: none; overflow: visible; }
  .dial-grid.no-prep .dial-prep { display: none; }
}
.dial-left { gap: 12px; }
.dial-left .outcomes { grid-template-columns: repeat(auto-fit, minmax(min(138px, 100%), 1fr)); }
.dial-left .outcomes.big .btn { gap: 8px; }
.dial-left .outcomes.big .btn .kbd { flex: none; }

/* Lead popup: header and buttons stay in view, sections fold */
.lm-top { position: sticky; top: -1px; z-index: 5; background: var(--card); margin: -2px -2px 12px; padding: 2px 2px 10px; border-bottom: 1px solid var(--line); }
.lm-top .card-head { margin-bottom: 8px; }
.lm-actions { margin-bottom: 0; gap: 8px; }
.lm-actions .btn { min-height: 38px; padding: 6px 14px; font-size: 14px; }
.modal .fold:first-child { margin-top: 0; }
@media (max-width: 700px) { .lm-actions { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; } .lm-actions .btn { flex: none; } }

/* ---------- Schedule (My work, Schedule tab) ---------- */
.sch-now { display: flex; justify-content: space-between; gap: 16px; align-items: center; background: #0F1B17; color: #E7F1EC; border-radius: 16px; padding: 16px 20px; margin-bottom: 16px; border: 1px solid rgba(157, 235, 203, .25); }
.sch-now.idle { background: var(--card); color: var(--ink); border-color: var(--line); }
.sch-now h2 { margin: 2px 0 4px; font-size: 24px; color: inherit; }
.sch-now .eyebrow { color: #9DEBCB; margin: 0; } .sch-now.idle .eyebrow { color: var(--accent); }
.sch-now .small { color: inherit; opacity: .8; margin: 0; }
.sch-note { margin: 8px 0 0; max-width: 70ch; font-size: 14px; opacity: .92; }
.sch-goal { white-space: nowrap; font-size: 14px; background: rgba(157, 235, 203, .14); border-radius: 12px; padding: 8px 12px; }
.sch-goal b { font: 700 22px var(--font-mono, monospace); }
.sch-k { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-2); }
.sch-k::before { content: ''; width: 9px; height: 9px; border-radius: 3px; background: var(--k); }
.sch-wide { display: block; overflow-x: auto; }
.sch-narrow { display: none; }
.sch-week { display: grid; grid-template-columns: 62px repeat(7, minmax(min(112px, 100%), 1fr)); min-width: 900px; background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.sch-gutter { position: relative; margin-top: 44px; height: var(--h); }
.sch-gutter span { position: absolute; right: 8px; transform: translateY(-7px); font: 600 11px var(--font-mono, monospace); color: var(--muted); white-space: nowrap; }
.sch-col { border-left: 1px solid var(--line); min-width: 0; }
.sch-col.today { background: color-mix(in srgb, var(--mint) 12%, transparent); }
.sch-dh { height: 44px; display: grid; align-content: center; padding: 0 10px; border-bottom: 1px solid var(--line); }
.sch-dh small { color: var(--muted); font-size: 11px; white-space: nowrap; }
.sch-lane { position: relative; }
.sch-lane > i { position: absolute; left: 0; right: 0; border-top: 1px solid color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; }
.sch-b { position: absolute; left: 3px; right: 3px; text-align: left; border: 0; border-left: 4px solid var(--k); background: color-mix(in srgb, var(--k) 16%, var(--card)); color: var(--ink); border-radius: 8px; padding: 3px 7px; overflow: hidden; cursor: pointer; font: inherit; display: grid; align-content: start; line-height: 1.2; }
.sch-b b { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-b small { font-size: 11px; color: var(--ink-2); opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sch-b:hover { background: color-mix(in srgb, var(--k) 28%, var(--card)); }
.sch-sum { margin-top: 16px; }
.sch-bars { display: grid; gap: 8px; }
.sch-bars > div { display: grid; grid-template-columns: 190px 1fr 56px; align-items: center; gap: 10px; }
.sch-bars i { display: block; height: 10px; border-radius: 99px; }
.sch-bars b { font: 600 13px var(--font-mono, monospace); text-align: right; }
.sch-dpick { display: flex; flex-wrap: wrap; gap: 6px; }
.sch-dpick label { position: relative; }
.sch-dpick input { position: absolute; opacity: 0; inset: 0; }
.sch-dpick span { display: inline-block; min-width: 46px; text-align: center; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; font-weight: 600; font-size: 14px; background: var(--card); cursor: pointer; }
.sch-dpick input:checked + span { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.sch-dpick input:focus-visible + span { outline: 2px solid var(--mint-strong); outline-offset: 2px; }
.sch-days { display: flex; width: 100%; margin-bottom: 8px; }
.sch-days button { flex: 1 1 0; padding: 10px 0; }
.sch-list { display: grid; gap: 8px; }
.sch-item { display: grid; grid-template-columns: 64px 1fr; gap: 12px; text-align: left; width: 100%; border: 1px solid var(--line); border-left: 5px solid var(--k); border-radius: 12px; background: var(--card); padding: 12px 14px; font: inherit; color: inherit; cursor: pointer; }
.sch-time { font: 700 14px var(--font-mono, monospace); display: grid; align-content: start; }
.sch-time small { color: var(--muted); font-weight: 500; }
.sch-body { display: grid; gap: 4px; min-width: 0; }
.sch-body small { color: var(--ink-2); line-height: 1.35; }
@media (max-width: 900px) {
  .sch-wide { display: none; }
  .sch-narrow { display: block; }
  .sch-now { flex-direction: column; align-items: flex-start; }
  .sch-bars > div { grid-template-columns: 1fr 56px; } .sch-bars i { grid-column: 1 / -1; grid-row: 2; }
}
@media print {
  .sx-rail, .sx-bar, .callbar, .tabs, .page-head .row, .bottom-bar, .bb, #schnow { display: none !important; }
  .sch-wide { display: block !important; overflow: visible; } .sch-narrow { display: none !important; }
  .sch-week { min-width: 0; font-size: 10px; }
}
.sch-b.short { padding: 0 6px; align-content: center; }
.sch-b.short b { font-size: 11px; }
.sch-b small.g { font-weight: 700; color: var(--ink); opacity: 1; }

/* Scope of work (no packages): service rows with an amount, and the delivery time line */
.scope-pick { display: grid; gap: 4px; margin-top: 4px; }
.scope-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 6px 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card, #fff); }
.scope-row input[type=checkbox] { width: auto; min-height: 0; margin-top: 3px; flex: none; }
.scope-qty { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.scope-qty input { width: 64px; min-height: 0; padding: 4px 6px; }
.scope-fx { margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: var(--mint-soft, #EAF8F2); }

/* Lead finder */
.fform { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 14px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.fj-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 14px; }
.fj .progress { margin-top: 10px; }

/* Call categories and who you are speaking with */
.cc { display: inline-block; font: 600 11px/1 var(--body); font-style: normal; padding: 4px 8px; border-radius: 999px; background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); width: fit-content; white-space: nowrap; }
.cc-asked, .cc-followup { background: #E4F6EE; color: #0A6B4C; border-color: #B7E6D2; }
.cc-no_site, .cc-not_found { background: #FDECEC; color: #9B2C2C; border-color: #F2C4C4; }
.cc-off_page_one { background: #FFF1DC; color: #8A5200; border-color: #F2D3A0; }
.cc-reviews, .cc-rating { background: #EFE8FB; color: #5B3BA8; border-color: #D8CBF2; }
.cc-close { background: #E3F0FD; color: #1D5FA8; border-color: #BCD8F5; }
.cc-strong { background: #E4F6EE; color: #23B07E; border-color: #B7E6D2; }
.dq-t .cc { margin-top: 3px; }
.pd-card .cc { margin-top: 3px; }
.tiers.cats { align-items: center; margin-top: -6px; }
.dial-who { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
.dial-who > b { font: 600 20px/1.2 var(--display); }
.dial-who .small:first-child { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }
.cc-role { font: 600 11px/1 var(--body); padding: 3px 7px; border-radius: 6px; background: var(--mint); color: #0F1B17; }
.dial-cat { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; }
.dial-cat > small { flex-basis: 100%; }
.pd-live { padding: 12px 14px 14px; display: grid; gap: 6px; }
.pd-live h3 { margin: 0; font: 600 20px/1.2 var(--display); }
.pd-live .dial-who { margin-top: 0; }
.pd-ph { font: 700 18px var(--mono); }
.pd.compact .pd-bar { display: none; }
.cb-p { display: block; font: 600 14px/1.3 var(--body); font-style: normal; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 2px; }
.cb-p u { text-decoration: none; font-size: 11px; color: var(--mint); margin-left: 4px; }
.cb-cat { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 12px; color: #B9CBC3; }
.cb-cat .cc { flex: none; }
.cb-note { margin-top: 8px; font: 600 13px/1.3 var(--body); color: var(--mint); }
.pd-head svg { width: 18px; height: 18px; flex: none; }
.pd-card div .small { display: block; margin-top: 2px; }
.pd-card .cc { margin-top: 4px; }

/* Phone audio panel: two meters, voice lock, details */
.aud-meters { display: grid; gap: 6px; }
.aud-meters > div { display: grid; gap: 3px; }
.aud-meter.out i { background: var(--accent); }
.aud-meter.out i.cut { background: #9aa8a2; }
.aud-lock { border: 1px dashed var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 8px; background: var(--card); }
.aud-lock.on { border-style: solid; border-color: var(--mint-strong); }
.aud-diag { display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.aud-diag dt { color: var(--muted); } .aud-diag dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .aud-diag { grid-template-columns: 1fr; } .aud-diag dd { margin-bottom: 4px; } }
.aud-checks label, .aud-lock > label { align-items: flex-start !important; flex-wrap: nowrap !important; }
.aud-checks input[type="checkbox"], .aud-lock input[type="checkbox"] { flex: none; margin-top: 3px; }

/* Multi select dropdown with tick boxes (Lead finder) */
.ms { position: relative; min-width: 0; }
.ms-btn { width: 100%; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px; text-align: left; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; font: 500 15px var(--body); cursor: pointer; }
.ms-sum { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ms-n { flex: 0 0 auto; background: var(--sel); color: var(--on-sel); border-radius: 999px; font: 600 12px var(--body); padding: 2px 8px; }
.ms-n:empty { display: none; }
.ms-pop { position: absolute; z-index: 60; left: 0; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; }
.ms-pop[hidden] { display: none; }
.ms-tools { display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.ms-q { flex: 1 1 auto; min-width: 0; }
.ms-list { max-height: 300px; overflow: auto; overscroll-behavior: contain; }
.ms-opt { display: flex; align-items: center; gap: 10px; padding: 9px 8px; border-radius: 8px; cursor: pointer; font-size: 15px; }
.ms-opt:hover { background: var(--surface-2); }
.ms-opt input { width: 18px; height: 18px; flex: 0 0 auto; }
.ms-hint { margin-left: auto; color: var(--muted); font-size: 12px; }

/* Numbered steps in the Lead finder form */
.fstep { display: flex; gap: 12px; align-items: flex-start; margin: 22px 0 10px; }
.fstep:first-child { margin-top: 0; }
.fstep-n { flex: 0 0 auto; width: 28px; height: 28px; border-radius: 50%; background: var(--sel); color: var(--on-sel); display: grid; place-items: center; font: 700 14px var(--display); }
.fstep h3 { margin: 3px 0 0; }
.fstep p { margin: 2px 0 0; }
.fsum { margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line); border-radius: 12px; background: var(--surface-2); font-size: 15px; }

/* Cost markers in the Lead finder: $ = costs money per search, Free = no cost */
.cost-ic { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; margin-left: 4px; border-radius: 9px; background: #E8A33D; color: #fff; font: 700 11px/1 var(--body); vertical-align: middle; cursor: help; }
.cost-ic.free { background: #23B07E; }
#fcov button { display: inline-flex; align-items: center; gap: 4px; }
#fcov button small { font-size: 12px; }

/* Scrub progress strip on the Pipeline */
.scstrip { margin: 0 0 14px; padding: 14px 16px; }
.scstrip .row { gap: 12px; align-items: center; }

/* Calmer script: one step at a time, coaching notes off until asked for, spoken lines larger */
.script-body.hide-notes .say-note, .script-body.hide-notes .do-in, .script-body.hide-notes p.d-cue { display: none; }

/* Movable windows (Nov 2026): pop ups drag by their title bar */
.modal.movable .card-head, .modal.movable .modal-head, .modal.movable .aud-head { cursor: grab; touch-action: none; user-select: none; }
.modal.movable.dragging, .pd.dragging, .callbar.dragging { cursor: grabbing; user-select: none; }
.modal.movable.dragging { animation: none; box-shadow: 0 40px 100px rgba(0, 0, 0, .5); }
.modal.movable.dragging .card-head, .modal.movable.dragging .aud-head { cursor: grabbing; }
.pd-head, .pd-live, .cb-top, .gh-top { cursor: grab; touch-action: none; user-select: none; }
.drag-grip { width: 34px; height: 4px; border-radius: 4px; background: currentColor; opacity: .25; margin: 0 auto 6px; }

/* Call window, person first (Nov 2026) */
.cb-av { font: 700 15px var(--display); letter-spacing: .02em; }
.cb-who b { font-size: 18px; }
.cb-info { display: grid; gap: 6px; margin: 12px 0 2px; padding: 10px 12px; border-radius: 12px; background: rgba(255, 255, 255, .06); }
.cb-row { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 8px; align-items: baseline; font-size: 13px; }
.cb-row i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #85988F; }
.cb-row span { min-width: 0; overflow-wrap: anywhere; color: #E7F1EC; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; }
.cb-row a { color: var(--mint); text-decoration: none; font-weight: 600; }
.cb-row a:hover { text-decoration: underline; }
.cb-row .tag { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: rgba(157, 235, 203, .16); color: var(--mint); }
.cb-row .tag.warn { background: rgba(242, 198, 107, .18); color: #F2C66B; }
.cb-row .tag.bad { background: rgba(232, 160, 160, .2); color: #F0A9A9; }
.cb-copy { border: 0; background: rgba(255, 255, 255, .1); color: #E7F1EC; font: 600 11px var(--body); padding: 2px 8px; border-radius: 99px; cursor: pointer; }
.cb-copy:hover { background: rgba(255, 255, 255, .2); }
/* The power dial window uses the light surface */
.pd-live .cb-info { background: var(--surface-2); margin: 6px 0 0; }
.pd-live .cb-row i { color: var(--muted); }
.pd-live .cb-row span { color: var(--ink); }
.pd-live .cb-row a { color: var(--accent); }
.pd-live .cb-row .tag { background: var(--mint-soft); color: var(--accent); }
.pd-live .cb-row .tag.warn { background: #FBEFD2; color: #8A5A00; }
.pd-live .cb-row .tag.bad { background: #F8DADA; color: #8C2B2B; }
.pd-live .cb-copy { background: var(--surface); color: var(--ink); border: 1px solid var(--line); }
.pd-who { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; }
.pd-av { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--mint-soft); color: var(--accent); font: 700 18px var(--display); }
.pd-name { margin: 0; font: 600 20px/1.2 var(--display); overflow-wrap: anywhere; }
.pd-biz { font-size: 14px; color: var(--muted); overflow-wrap: anywhere; }
.pd.compact { width: min(380px, calc(100vw - 24px)); }

/* Customize layout menu: stays open while you tick, closes on outside click */
.dlayout .dl-btn { cursor: pointer; padding: 5px 14px; border: 1px solid var(--line); border-radius: 99px; font: 600 13px var(--body); background: var(--card); color: var(--ink); }
.dlayout .dl-btn[aria-expanded="true"] { border-color: var(--mint-strong); background: var(--mint-soft); }
.dlayout-body[hidden] { display: none; }
.dlayout-body { z-index: 80; min-width: 260px; }
.dlayout-body .btn { justify-self: start; }
[data-hide~="tiers"] [data-sec="tiers"], [data-hide~="cats"] [data-sec="cats"], [data-hide~="upcoming"] [data-sec="upcoming"],
[data-hide~="links"] [data-sec="links"], [data-hide~="notes"] [data-sec="notes"] { display: none !important; }

/* My available slots */
.av-grid { display: grid; gap: 6px; }
.av-row { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding: 6px 10px; border: 1px solid var(--line); border-radius: 10px; }
.av-row.off { opacity: .55; }
.av-row .av-on { min-width: 112px; font-weight: 600; display: flex; gap: 6px; align-items: center; }
.av-row input[type=time] { width: auto; min-height: 34px; padding: 4px 8px; }
.av-brk { display: flex; gap: 4px; align-items: center; margin-left: auto; }
.av-presets { margin-left: auto; display: flex; gap: 12px; }

/* Call window tools and result popup header */
.cb-tools { margin-top: 12px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, .1); display: grid; gap: 8px; }
.cb-notein { width: 100%; min-height: 64px; resize: vertical; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(255, 255, 255, .06); color: #E7F1EC; padding: 8px 10px; font: 14px/1.4 var(--body); }
.cb-notein::placeholder { color: #85988F; }
.cb-sub { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #85988F; }
.cb-chips, .cb-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.cb-chip, .cb-q { border: 1px solid rgba(255, 255, 255, .18); background: transparent; color: #E7F1EC; border-radius: 99px; padding: 5px 11px; font: 600 12px var(--body); cursor: pointer; }
.cb-chip:hover, .cb-q:hover { background: rgba(255, 255, 255, .1); }
.cb-chip.on { background: var(--mint); color: #0F1B17; border-color: var(--mint); }
.dp-who { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; align-items: center; }
.dp-who:has(> div:only-child) { grid-template-columns: minmax(0, 1fr); }
.dp-facts { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 10px 0 4px; font-size: 13px; }
.dp-facts span { display: inline-flex; gap: 6px; align-items: baseline; overflow-wrap: anywhere; }
.dp-facts i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }

/* Customize layout menu: solid surface, even rows */
.dlayout-body { background: var(--surface); padding: 14px 16px; gap: 4px; width: 300px; max-height: min(70vh, 460px); overflow: auto; box-shadow: 0 18px 48px rgba(6, 14, 11, .22); border-radius: 14px; }
.dlayout-body label { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 4px; margin: 0; cursor: pointer; font-size: 14px; line-height: 1.2; }
.dlayout-body label input[type=checkbox] { flex: none; width: 18px; height: 18px; min-height: 0; margin: 0; padding: 0; accent-color: var(--mint-strong); }
.dlayout-body label:hover { background: var(--surface-2); border-radius: 8px; }
.dlayout-body .btn { margin-top: 8px; }
.dstrip { background: var(--surface); }
.dl-btn { background: var(--surface); }

/* --card and --card-2 are used across the Hub rules but only the client app defined them, so those panels were see-through. */
:root { --card: var(--surface); --card-2: var(--surface-2); }

/* Call window v3: one draggable window. Grab it anywhere that is not a button or field. */
.callbar { cursor: grab; max-height: calc(100vh - 24px); overflow-y: auto; overscroll-behavior: contain; }
.callbar.dragging { cursor: grabbing; user-select: none; }
.callbar button, .callbar a, .callbar input, .callbar textarea, .callbar select, .callbar label { cursor: pointer; }
.callbar textarea { cursor: text; }
.cb-grip { display: flex; align-items: center; justify-content: space-between; margin: -6px -4px 8px; min-height: 22px; touch-action: none; }
.cb-grip i { flex: 1; height: 4px; max-width: 54px; margin: 0 auto 0 calc(50% - 27px); border-radius: 4px; background: rgba(255, 255, 255, .22); }
.cb-min { background: transparent; border: 0; color: #85988F; font: 600 11px var(--body); padding: 2px 6px; border-radius: 6px; }
.cb-min:hover { color: #E7F1EC; background: rgba(255, 255, 255, .08); }
.callbar.min .cb-info, .callbar.min .cb-cat, .callbar.min .cb-tools .cb-notein, .callbar.min .cb-tools .cb-sub, .callbar.min .cb-tools .cb-chips, .callbar.min .cb-quick, .callbar.min .cb-pad, .callbar.min .cb-rec { display: none; }
.cb-power { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 10px; border-radius: 12px; background: rgba(157, 235, 203, .1); border: 1px solid rgba(157, 235, 203, .22); font-size: 12px; color: #CFE3D9; }
.cb-power b { color: #9DEBCB; }
.cbp-w { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.cb-power select { width: auto; min-height: 28px; padding: 2px 6px; font-size: 12px; background: #0F1B17; color: #E7F1EC; border: 1px solid rgba(157, 235, 203, .3); border-radius: 8px; }
.cbp-stop { margin-left: auto; background: transparent; color: #F2A39B; border: 1px solid rgba(242, 163, 155, .4); border-radius: 8px; padding: 3px 10px; font: 600 12px var(--body); }
.pd { cursor: grab; }
.pd.dragging { cursor: grabbing; user-select: none; }
.pd.compact { display: none; }

/* Hover card */
.hcard { position: fixed; z-index: 160; width: 320px; max-width: calc(100vw - 16px); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 16px; padding: 14px; box-shadow: 0 22px 60px rgba(6, 14, 11, .28); pointer-events: none; animation: rise .14s var(--ease) both; }
.hc-head { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.hc-name { display: block; font: 600 16px/1.2 var(--display); } .hc-name em { font: 600 11px var(--body); font-style: normal; color: var(--accent); background: rgba(35, 176, 126, .14); border-radius: 6px; padding: 1px 6px; margin-left: 4px; }
.hc-biz { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.hc-badges { display: flex; flex-wrap: wrap; gap: 5px; margin: 0 0 8px; } .hc-badges span { font-size: 11px; font-weight: 600; border-radius: 999px; padding: 2px 8px; background: var(--surface-2); border: 1px solid var(--line); }
.hc-rows { margin: 0; display: grid; gap: 5px; } .hc-rows > div { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 8px; font-size: 12.5px; }
.hc-rows dt { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; } .hc-rows dd { margin: 0; overflow-wrap: anywhere; }
.hc-foot { margin: 10px 0 0; padding-top: 8px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }

/* Pipeline v3: the process as four steps */
.flow { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-bottom: 14px; }
.fstep { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; position: relative; }
.fstep.wide { grid-column: 1 / -1; }
.fstep > header { display: flex; align-items: center; gap: 12px; }
.fstep h3 { margin: 0; font: 600 15px/1.2 var(--display); } .fstep header p { margin: 2px 0 0; font-size: 12.5px; color: var(--muted); }
.fn { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font: 700 13px var(--mono); background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2); }
.fstep.go { border-color: rgba(35, 176, 126, .5); background: linear-gradient(180deg, rgba(157, 235, 203, .14), var(--surface) 70%); } .fstep.go .fn { background: var(--mint-strong, #23B07E); color: #06120D; border-color: transparent; }
.fstep.go { flex-direction: row; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.fstats b { font-family: var(--mono); color: var(--ink); }
.fstep .tz-tabs, .fstep .chips.lists, .fstep .filterbar { margin: 0; }
.fstep .filters { margin: 0; }
.flow + #scstrip, #scstrip { margin-top: 4px; }
[data-hide~="get"] [data-sec="get"], [data-hide~="clean"] [data-sec="clean"], [data-hide~="tz"] [data-sec="tz"], [data-hide~="lists"] [data-sec="lists"], [data-hide~="stats"] [data-sec="stats"] { display: none !important; }
@media (max-width: 820px) { .flow { grid-template-columns: 1fr; } }
.page-head .dlayout { position: relative; } .page-head .dlayout-body { right: 0; left: auto; }

/* Windows: float, minimize, tray */
.modal { position: relative; }
.mdl-tools { position: sticky; top: -14px; float: right; height: 0; z-index: 6; display: flex; gap: 6px; margin: -14px -12px 0 0; }
.mdl-tools button { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); border-radius: 999px; font: 600 11px var(--body); padding: 4px 10px; cursor: pointer; white-space: nowrap; }
.mdl-tools button:hover { color: var(--ink); border-color: var(--ink-2); }
.modal-bg.docked { display: none; }
.modal-bg.float { inset: auto; right: 18px; bottom: 18px; top: auto; left: auto; background: none; padding: 0; display: block; pointer-events: none; animation: none; z-index: 95; }
.modal-bg.float .modal { pointer-events: auto; width: min(460px, calc(100vw - 24px)); max-height: min(72vh, 680px); padding: 20px; border-radius: 18px; box-shadow: 0 18px 50px rgba(6, 14, 11, .34); border: 1px solid var(--line); animation: none; }
.modal-bg.float .modal.movable .card-head, .modal-bg.float .modal.movable h2 { cursor: grab; }
.tray { position: fixed; left: 252px; bottom: 14px; z-index: 125; display: flex; gap: 8px; flex-wrap: wrap; max-width: calc(100vw - 280px); pointer-events: none; }
.tray-chip { pointer-events: auto; display: flex; align-items: stretch; background: #0F1B17; color: #E7F1EC; border: 1px solid rgba(157, 235, 203, .3); border-radius: 14px; box-shadow: 0 10px 30px rgba(6, 14, 11, .3); overflow: hidden; animation: rise .2s var(--ease) both; }
.tray-chip.hot { border-color: #9DEBCB; }
.tray-main { display: flex; align-items: center; gap: 9px; background: none; border: 0; color: inherit; padding: 8px 6px 8px 12px; cursor: pointer; text-align: left; max-width: 240px; }
.tray-main i { flex: none; width: 8px; height: 8px; border-radius: 50%; background: #9DEBCB; box-shadow: 0 0 0 3px rgba(157, 235, 203, .2); }
.tray-main span { min-width: 0; } .tray-main b { display: block; font: 600 13px/1.2 var(--body); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-main small { display: block; font-size: 11px; color: #85988F; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tray-x { background: none; border: 0; border-left: 1px solid rgba(255, 255, 255, .08); color: #85988F; padding: 0 11px; font-size: 16px; cursor: pointer; }
.tray-x:hover { color: #F2A39B; }
@media (max-width: 900px) { .tray { left: 10px; max-width: calc(100vw - 20px); bottom: calc(72px + var(--sab)); } .modal-bg.float { right: 8px; bottom: calc(76px + var(--sab)); } }

/* Dial goal */
.goal-btn { font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px dashed currentColor; padding: 0 1px; cursor: pointer; }
.goal-btn:hover { color: var(--accent); }
.goal-in { width: 72px; min-height: 28px; padding: 2px 6px; font: 600 14px var(--mono); border-radius: 8px; }
.dgoal { display: inline-flex; align-items: center; gap: 6px; }
.dgbar { display: inline-block; width: 70px; height: 6px; border-radius: 6px; background: var(--line); overflow: hidden; vertical-align: middle; }
.dgbar u { display: block; height: 100%; background: var(--mint-strong, #23B07E); text-decoration: none; transition: width .4s; }
.gdone { color: var(--accent); font-size: 12px; }

/* One window: the call window opens where the power dial box was and shares its place on screen. */
@media (min-width: 901px) {
  .callbar { top: 76px; bottom: auto; width: 400px; max-height: calc(100vh - 92px); }
}
.flow { align-items: stretch; } .flow > .fstep { margin: 0; }

/* Dial goal per person (owners set it) */
.goal-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.goal-cell input { width: 72px; padding: 4px 6px; font: inherit; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.goal-fixed { font-weight: 700; }

/* Names are never cut off on the dialer: Up next, the dial card, the call window and the power dial cards wrap instead of using "..." */
.dial-grid { grid-template-columns: 290px minmax(min(340px, 100%), 1fr) minmax(0, 1.25fr); }
.dial-grid.no-prep { grid-template-columns: 290px minmax(min(340px, 100%), 1fr); }
.dq-t b, .dq-t small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; }
.dial-queue li button { align-items: flex-start; }
.dial-grid h2, .dial-who > b, .dial-cat, .dial-phone { overflow-wrap: anywhere; min-width: 0; }
.cb-who b, .cb-who span, .cb-p { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.pd-card b, .pd-card small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
.tray-main b, .tray-main small { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; }
@media (max-width: 1100px) { .dial-grid, .dial-grid.no-prep { grid-template-columns: 1fr; } }

/* Phone and tablet dialer: nothing runs past the card margins or gets cut off. Long text wraps, tab rows wrap. */
.dial-grid, .dial-grid > *, .dial-grid .card, .upcoming, .dstrip { min-width: 0; max-width: 100%; box-sizing: border-box; }
.upcoming { overflow-wrap: anywhere; }
.upcoming .badge { white-space: normal; height: auto; max-width: 100%; line-height: 1.35; border-radius: 12px; padding: 6px 10px; text-align: left; overflow-wrap: anywhere; }
.upcoming > b { flex-basis: 100%; }
.dial-who, .dial-cat, .dial-phone, .dial-grid h2, .dial-grid h3, .dial-grid p, .dial-grid .small, .dial-grid .muted { overflow-wrap: anywhere; min-width: 0; }
.dstrip { flex-wrap: wrap; }
@media (max-width: 900px) {
  .tabs { flex-wrap: wrap; overflow: visible; width: 100%; }
  .tabs a { white-space: normal; text-align: center; flex: 1 1 auto; }
  .tabs .tab-audio { flex: 1 1 auto; }
  .dial-grid .dq-t b, .dial-grid .dq-t small, .pd-card b, .pd-card small { white-space: normal; overflow-wrap: anywhere; }
}

/* Dialer filters as drop downs (Nov 2026, V: keep the phone screen uncluttered) */
.dropfilters { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 12px; }
.dropf { display: flex; flex-direction: column; gap: 4px; flex: 1 1 200px; min-width: 0; max-width: 100%; }
.dropf > span { font: 600 12px var(--body); color: var(--muted); }
.dropf select { width: 100%; min-height: 40px; max-width: 100%; text-overflow: ellipsis; }

/* Pipeline and dialer scrolling that fits the screen (Nov 2026, V: scrolls in every direction, names cut off) */
html, body { overflow-x: clip; }
.board { scroll-snap-type: x mandatory; scroll-padding-inline: 2px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; grid-auto-columns: minmax(min(250px, 100%), 1fr); max-width: 100%; }
.board > .col { scroll-snap-align: start; min-width: 0; }
.col-body { min-height: 120px; }
.col-body > .lead-card { scroll-snap-align: start; min-width: 0; }
.lead-card { min-width: 0; max-width: 100%; box-sizing: border-box; }
.lead-card .item-title, .lead-card .item-sub { white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; min-width: 0; }
.lead-card .lc-top { min-width: 0; align-items: flex-start; }
.lead-card .row.small { flex-wrap: wrap; }
.gradechips { align-items: center; }
.tz-tabs, .tabs, .chips.lists { scroll-snap-type: x proximity; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.tz-tabs > *, .tabs > *, .chips.lists > * { scroll-snap-align: start; }
.dial-queue ol { scroll-snap-type: y proximity; }
.dial-queue ol > li { scroll-snap-align: start; }
@media (max-width: 900px) {
  /* one scroll direction: the page goes up and down, stages swipe sideways and lock to the screen */
  .board { grid-auto-columns: calc(100% - 28px); gap: 10px; margin-inline: -2px; padding-bottom: 12px; scroll-snap-stop: always; }
  .col { padding: 10px; }
  .col-body { max-height: none; overflow: visible; scroll-snap-type: none; }
  .lead-card { padding: 12px; }
  .lead-card .item-title { font-size: 16px; line-height: 1.25; }
  .fstep, .fstep.wide, .fstep.go { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .filterbar { flex-wrap: wrap; }
  .filterbar #fq { flex: 1 1 100%; min-width: 0; }
  .fstep .tz-tabs, .fstep .chips.lists, .tabs { flex-wrap: wrap; overflow: visible; }
  .tz-tabs > *, .chips.lists > * { flex: 0 0 auto; white-space: nowrap; }
  .chips.lists .chip { padding: 6px 12px; line-height: 1.2; }
  /* list view: each lead is a card, no sideways table */
  .leads-table, .leads-table tbody { display: block; width: 100%; }
  .leads-table thead { display: none; }
  .leads-table tr { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 4px 10px; align-items: center; padding: 12px; margin-bottom: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; }
  .leads-table tr.grp { display: block; background: transparent; border: 0; padding: 6px 2px; }
  .leads-table td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; white-space: normal; }
  .leads-table td:nth-child(3) { grid-column: 3; }
  .leads-table td:nth-child(n+4) { grid-column: 3; font-size: 13px; color: var(--muted); }
  .leads-table td:nth-child(6), .leads-table td:nth-child(8), .leads-table td:nth-child(9), .leads-table td:nth-child(10) { display: none; }
  .leads-table td:nth-child(7):not(:empty)::after { content: " reviews"; }
  .leads-table td:nth-child(4):empty, .leads-table td:nth-child(7):empty, .leads-table td:nth-child(12):empty { display: none; }
}

/* Social planner (client tab Social) and its previews */
.sp-stats { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 4px 0 12px; font-size: 13px; color: var(--muted); }
.sp-stat b { font: 700 15px var(--mono, monospace); color: inherit; }
.sp-bar { gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 12px; }
.sp-f { margin: 0; min-width: 0; }
.sp-nav { gap: 8px; align-items: center; margin-bottom: 10px; }
.sp-month { min-width: 150px; text-align: center; }
.sp-ch { display: inline-block; font: 700 10px var(--mono, monospace); letter-spacing: .02em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 5px; }
.sp-cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.sp-dow { font-size: 12px; color: var(--muted); text-align: center; padding: 2px 0; }
.sp-day { min-height: 92px; border: 1px solid var(--line); border-radius: 10px; padding: 4px; background: var(--surface); display: grid; align-content: start; gap: 3px; cursor: pointer; min-width: 0; }
.sp-day:hover { border-color: var(--mint-strong, #23B07E); }
.sp-day.out { opacity: .45; }
.sp-day.today { box-shadow: inset 0 0 0 2px var(--mint-strong, #23B07E); }
.sp-n { font-size: 12px; color: var(--muted); }
.sp-chip { all: unset; box-sizing: border-box; display: block; font-size: 11px; line-height: 1.25; padding: 2px 4px; border-radius: 6px; background: var(--mint-soft); border-left: 3px solid var(--mint-strong, #23B07E); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sp-chip.st-idea, .sp-chip.st-draft { background: var(--surface-2); border-color: var(--muted); }
.sp-chip.st-review { background: #FFF4DC; border-color: #F2B544; color: #0F1B17; }
.sp-chip.st-changes { background: #FBE3E3; border-color: #D64545; color: #0F1B17; }
.sp-agenda { display: none; gap: 14px; }
.sp-aday { display: grid; gap: 6px; }
.sp-loose { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px; }
.sp-card { cursor: pointer; min-width: 0; }
.sp-card.dragging { opacity: .5; }
.sp-card .item-title, .sp-row .item-title { overflow-wrap: anywhere; }
.sp-board .col.drop-on { outline: 2px dashed var(--mint-strong, #23B07E); }
.sp-row { cursor: pointer; }
.sp-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.sp-pick { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; font-size: 14px; background: var(--surface); }
.sp-ed { min-width: 0; }
.sp-grid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 20px; }
.sp-left, .sp-right { display: grid; gap: 12px; align-content: start; min-width: 0; }
.sp-media { display: flex; flex-wrap: wrap; gap: 8px; }
.sp-m { margin: 0; width: 110px; font-size: 12px; }
.sp-m img, .sp-m video { width: 110px; height: 110px; object-fit: cover; border-radius: 10px; display: block; background: var(--surface-2); }
.sp-add { width: 110px; height: 110px; border: 2px dashed var(--line); border-radius: 10px; display: grid; place-items: center; cursor: pointer; color: var(--muted); font-weight: 600; }
.sp-tabs button.is-on { font-weight: 700; }
.sp-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #E8833A; margin-left: 4px; }
.sp-iss { margin: 0; padding-left: 18px; color: #B4541A; font-size: 13px; }
.sp-iss:empty { display: none; }
.sp-actions .btn { flex: 0 1 auto; }
.sp-cm { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; margin-bottom: 8px; }
.sp-cm.client { border-color: var(--mint-strong, #23B07E); }
.sp-cm p { margin: 2px 0 0; overflow-wrap: anywhere; }
.pv { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); overflow: hidden; max-width: 380px; }
.pv-head { display: flex; gap: 10px; align-items: center; padding: 10px 12px; }
.pv-av { width: 36px; height: 36px; border-radius: 50%; background: var(--ink, #0F1B17); color: #fff; display: grid; place-items: center; font: 700 13px var(--display, sans-serif); flex: none; }
.pv img, .pv video { width: 100%; max-height: 380px; object-fit: cover; display: block; background: var(--surface-2); }
.pv-none { padding: 40px 12px; text-align: center; color: var(--muted); background: var(--surface-2); font-size: 13px; }
.pv-cap { padding: 10px 12px 14px; font-size: 14px; overflow-wrap: anywhere; white-space: normal; }
.pv-instagram .pv-head { border-bottom: 0; }
@media (max-width: 900px) {
  .sp-grid { grid-template-columns: minmax(0, 1fr); }
  .sp-cal { display: none; }
  .sp-agenda { display: grid; }
  .sp-loose { grid-template-columns: minmax(0, 1fr); }
  .sp-month { min-width: 0; flex: 1; }
}
.modal:has(.sp-ed) { width: min(1040px, 96vw); max-width: 1040px; }

/* Full screen lead list (Open all) and the 10 per list cap */
.col-all { margin-top: 6px; width: 100%; justify-content: center; text-align: center; white-space: normal; }
.leads-table tr.more td { padding: 8px 0; }
.leads-table tr.more { display: block; background: transparent; border: 0; padding: 0; }
.fullscreen-list { display: grid; gap: 14px; max-width: 1100px; }
.fs-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 10px; align-items: start; }
.fs-grid > .btn { grid-column: 1 / -1; }
@media (max-width: 900px) { .fs-grid { grid-template-columns: minmax(0, 1fr); } .tz-tabs { overflow: visible; } }

/* ===== Device tuning (Nov 2026): same lists everywhere, snap and scroll fitted to the device ===== */
/* Ten leads a list means a column never needs its own scroll bar, on any device. */
.col-body { max-height: none; overflow: visible; min-height: 0; scroll-snap-type: none; }
/* iPad and small laptops: two stages fill the screen, swipe or scroll sideways and they snap, the page itself only moves up and down. */
@media (min-width: 901px) and (max-width: 1280px) {
  .board { grid-auto-columns: calc(50% - 8px); gap: 14px; scroll-snap-stop: always; padding-bottom: 12px; }
  .fstep, .fstep.wide, .fstep.go { min-width: 0; max-width: 100%; box-sizing: border-box; }
  .fstep .tz-tabs, .fstep .chips.lists { flex-wrap: wrap; overflow: visible; }
  .tz-tabs > *, .chips.lists > * { flex: 0 0 auto; white-space: nowrap; }
}
/* Any touch screen at iPad size and up: bigger targets, smooth momentum, no accidental sideways drift of the page. */
@media (pointer: coarse) and (min-width: 901px) {
  html, body { overscroll-behavior-x: none; }
  .lead-card { padding: 14px; }
  .leads-table td, .leads-table th { padding-block: 12px; }
  .chip, .tz, .seg button { min-height: 40px; }
}
/* Desktop with a mouse: board fills the width, columns still snap when there are more than fit. */
@media (min-width: 1281px) { .board { grid-auto-columns: minmax(min(270px, 100%), 1fr); scroll-snap-type: x proximity; } }

/* Competitor analysis (prospect page and Present mode) */
.pk { max-width: 960px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 18px; }
.pk-top img, .pm-logo { height: 30px; width: auto; display: block; }
.pk-hero { background: #0F1B17; color: #fff; border-radius: var(--r); padding: 26px 24px; }
.pk-hero .eyebrow { color: #9DEBCB; }
.pk-hero h1 { color: #fff; margin: 4px 0 2px; }
.pk-hero p { color: #CFE9DD; margin: 0 0 6px; }
.pk-hero .pk-head { color: #fff; font-size: 18px; font-weight: 600; margin-top: 10px; }
.pk-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.pk-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.pk-kpi b { display: block; font: 700 28px/1.1 var(--display); }
.pk-kpi span { display: block; font-size: 13px; color: var(--muted); margin-top: 4px; }
.pk-kpi i { display: block; font-style: normal; font-size: 13px; font-weight: 600; margin-top: 4px; }
.pk-sec { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: grid; gap: 10px; }
.pk-sec h2, .pk-sec h3 { margin: 0; }
.pk-sec h3 { margin-top: 8px; }
.pk-map svg { width: 100%; height: auto; display: block; max-width: 420px; margin: 0 auto; }
.pk-comps { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.pk-comp { border: 1px solid var(--line); border-radius: 12px; padding: 12px; background: var(--surface-2); display: grid; gap: 8px; align-content: start; }
.pk-comp.you { border-color: var(--good); background: var(--mint-soft); }
.pk-comp header { display: grid; gap: 2px; }
.pk-comp ul { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 14px; }
.pk-nums { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.pk-nums b { color: var(--ink, inherit); font-size: 15px; }
.pk-nums.wide { gap: 10px 22px; }
.pk-reasons, .pk-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pk-reason, .pk-list li { border: 1px solid var(--line); border-left-width: 4px; border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; background: var(--surface-2); }
.pk-reason.high { border-left-color: #D64545; } .pk-reason.medium { border-left-color: #F2B544; } .pk-reason.low { border-left-color: #8FA39B; }
.pk-list li { border-left-color: var(--good); }
.pk-list li span, .pk-reason span { font-size: 14px; color: var(--muted); }
.pk-list li em { font-size: 13px; font-style: normal; }
.pk-tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); vertical-align: middle; }
.pk-tag.bad { background: #FBE3E3; color: #8A1F1F; } .pk-tag.good { background: var(--mint-soft); color: #0A6B4C; } .pk-tag.warn { background: #FFF1D0; color: #7A5300; }
.pk-table { width: 100%; border-collapse: collapse; font-size: 14px; } .pk-table td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.pk-cad { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.pk-cad li { display: grid; gap: 2px; border-left: 3px solid var(--good); padding-left: 12px; }
.pk-when { font: 600 12px var(--mono, monospace); color: var(--muted); text-transform: uppercase; }
.pk-note { font-size: 13px; color: var(--muted); }
@media (max-width: 720px) { .pk-kpis { grid-template-columns: 1fr 1fr; } }
@media print { .no-print { display: none !important; } body.pk-page { background: #fff; } .pk-sec, .pk-kpi, .pk-comp { break-inside: avoid; } }

/* Present mode: one clean window to screen share. Nothing internal shows. */
.cmd-pres { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: inherit; font: 600 13px var(--body, sans-serif); cursor: pointer; }
.cmd-pres svg { width: 16px; height: 16px; }
.cmd-pres:hover { border-color: var(--good); }
@media (max-width: 600px) { .cmd-pres span { display: none; } .cmd-pres { width: 36px; padding: 0; justify-content: center; } }
.pm-pick { display: grid; gap: 6px; max-height: 50vh; overflow: auto; }
.pm-row { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; text-align: left; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); cursor: pointer; color: inherit; }
.pm-row .small { grid-column: 2; }
.pm-row:hover { border-color: var(--good); }
body.presenting .aib, body.presenting .callbar, body.presenting .pd, body.presenting .toasts, body.presenting .tray, body.presenting [class*="tray"], body.presenting .nbadge, body.presenting .bbar, body.presenting .notif-panel { display: none !important; }
body.presenting { background: var(--bg, #fff); }
.pm { display: grid; grid-template-rows: auto 1fr; height: 100vh; height: 100dvh; background: var(--bg, #F6F9F7); }
.pm-bar { display: flex; align-items: center; gap: 10px 14px; flex-wrap: wrap; padding: 10px 16px; padding-top: calc(10px + env(safe-area-inset-top)); border-bottom: 1px solid var(--line); background: var(--surface); }
.pm-name { font: 700 16px var(--display); }
.pm-tabs { display: flex; flex-wrap: wrap; gap: 6px; flex: 1 1 320px; }
.pm-tabs button { border: 1px solid var(--line); background: var(--surface-2); color: inherit; border-radius: 999px; padding: 7px 14px; font: 600 13px var(--body, sans-serif); cursor: pointer; }
.pm-tabs button.is-on { background: #0F1B17; color: #fff; border-color: #0F1B17; }
.pm-actions { display: flex; gap: 8px; margin-left: auto; }
.pm-body { overflow: auto; padding: 18px 16px 40px; min-height: 0; }
.pm-body.is-frame { padding: 0; overflow: hidden; }
.pm-frame { width: 100%; height: 100%; border: 0; display: block; background: #fff; }
.pm-body.is-frame { position: relative; }
.pm-wait { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 10px; text-align: center; padding: 20px; }
.pm-wait span { color: var(--muted); }
.pm-frame.pm-over { position: absolute; inset: 0; opacity: 0; transition: opacity .2s; }
.pm-frame.pm-over.is-in { opacity: 1; }
.pm-body .pk { padding: 0; max-width: 1040px; }
.pm-body .pk .pk-hero h1 { font-size: clamp(28px, 4vw, 44px); }
.pm-body .pk .pk-kpi b { font-size: clamp(26px, 3.4vw, 40px); }
@media (max-width: 600px) { .pm-bar { padding: 8px 12px; padding-top: calc(8px + env(safe-area-inset-top)); } .pm-bar picture { display: none; } .pm-actions { margin-left: 0; width: 100%; } }

/* ===== Phone power dial screens (Nov 2026): under 601px, when power dialing starts, the countdown, the call window, the script and the result sheet each fill the screen. Menu and dialer before that stay as they are. ===== */
.pdx-back { display: none; }
@media (max-width: 600px) {
  body.pdx { overflow: hidden; }
  body.pdx .aib, body.pdx .bbar, body.pdx .toasts { display: none !important; }

  /* 1. Countdown to the next call */
  body.pdx .pd:not(.compact) { inset: 0; width: auto; max-width: none; height: 100vh; height: 100dvh; border: 0; border-radius: 0; z-index: 130; display: flex; flex-direction: column; background: var(--surface); box-shadow: none; animation: none; }
  body.pdx .pd:not(.compact) .pd-head { padding: calc(14px + env(safe-area-inset-top)) 16px 14px; font-size: 15px; }
  body.pdx .pd:not(.compact) .pd-count { font-size: 56px; line-height: 1; }
  body.pdx .pd:not(.compact) .pd-bar { height: 6px; flex: none; }
  body.pdx .pd:not(.compact) .pd-list { flex: 1; align-content: start; overflow-y: auto; padding: 16px; gap: 12px; }
  body.pdx .pd:not(.compact) .pd-card { grid-template-columns: 44px minmax(0, 1fr); padding: 14px; border-radius: 16px; }
  body.pdx .pd:not(.compact) .pd-card > :nth-child(3) { grid-column: 2; }
  body.pdx .pd:not(.compact) .pd-card.first { padding: 18px 14px; }
  body.pdx .pd:not(.compact) .pd-card.first b { font-size: 22px; white-space: normal; }
  body.pdx .pd:not(.compact) .pd-card b { white-space: normal; }
  body.pdx .pd:not(.compact) .pd-card > span:last-child, body.pdx .pd:not(.compact) .pd-card > div > .small:last-child { font-size: 13px; }
  body.pdx .pd:not(.compact) .pd-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 12px 16px calc(16px + var(--sab)); border-top: 1px solid var(--line); background: var(--surface); }
  body.pdx .pd:not(.compact) .pd-foot .btn { min-height: 52px; font-size: 16px; }
  body.pdx .pd:not(.compact) #pdnow, body.pdx .pd:not(.compact) #pdre { grid-column: 1 / -1; min-height: 60px; font-size: 18px; }
  body.pdx .pd:not(.compact) .pd-foot label { grid-column: 1 / -1; margin: 0; justify-content: space-between; font-size: 14px; }
  body.pdx .pd:not(.compact) .pd-foot select { min-height: 44px; }

  /* 2. The call window */
  body.pdx .callbar { background: var(--surface); inset: 0; left: 0; right: 0; top: 0; bottom: 0; width: auto; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; border: 0; z-index: 130; padding: calc(12px + env(safe-area-inset-top)) 16px 0; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; overscroll-behavior: contain; animation: none; cursor: auto; }
  body.pdx .callbar .cb-main { display: contents; }
  body.pdx .callbar .cb-grip { display: none; }
  body.pdx .callbar .cb-top { order: 1; }
  body.pdx .callbar .cb-note { order: 1; }
  body.pdx .callbar .cb-who b { font-size: 22px; white-space: normal; overflow-wrap: anywhere; }
  body.pdx .callbar .cb-status { font-size: 20px; }
  body.pdx .callbar .cb-info { order: 2; }
  body.pdx .callbar .cb-cat { order: 3; }
  body.pdx .callbar .cb-rec, body.pdx .callbar .cb-level, body.pdx .callbar .cb-pad { order: 4; }
  body.pdx .callbar .cb-tools { order: 5; display: grid; gap: 10px; }
  body.pdx .callbar .cb-power { order: 0; }
  body.pdx .callbar .cb-notein { min-height: 84px; font-size: 16px; }
  body.pdx .callbar .cb-chip, body.pdx .callbar .cb-q { min-height: 44px; font-size: 14px; }
  body.pdx .callbar .cb-quick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  body.pdx .callbar .cb-actions { order: 10; position: sticky; bottom: 0; margin-top: auto; padding: 10px 0 calc(12px + var(--sab)); background: var(--surface); border-top: 1px solid var(--line); grid-auto-rows: 64px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; z-index: 2; }
  body.pdx .callbar .cb-btn { min-height: 64px; }
  body.pdx .callbar .cb-hang { grid-column: 1 / -1; min-height: 64px; font-size: 18px; order: -1; flex-direction: row; justify-content: center; gap: 10px; }
  body.pdx .callbar .cb-min { display: none; }

  /* 3. The script, one tap from the call window */
  body.pdx .dial-prep { position: static; }
  body.pdx.pdx-script .dial-prep { position: fixed; inset: 0; z-index: 135; max-height: none; height: 100vh; height: 100dvh; margin: 0; border-radius: 0; overflow-y: auto; padding: calc(12px + env(safe-area-inset-top)) 16px calc(88px + var(--sab)); background: var(--surface); animation: none; transform: none; display: block; }
  body.pdx.pdx-script .pdx-back { display: block; position: fixed; z-index: 136; left: 16px; right: 16px; bottom: calc(14px + var(--sab)); min-height: 56px; font-size: 17px; }

  /* 4. The result sheet after each call */
  body.pdx .modal-bg { z-index: 140; padding: 0; place-items: stretch; background: var(--surface); }
  body.pdx .modal { width: 100%; max-width: none; height: 100vh; height: 100dvh; max-height: none; border-radius: 0; box-shadow: none; padding: calc(14px + env(safe-area-inset-top)) 16px calc(16px + var(--sab)); overflow-y: auto; animation: none; }
  body.pdx .modal .mdl-tools { display: none; }
  body.pdx .modal .dispo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  body.pdx .modal .dispo-btn { min-height: 58px; font-size: 15px; }
  body.pdx .modal #dpsave { width: 100%; min-height: 56px; font-size: 17px; }
  body.pdx .modal .row.end { position: sticky; bottom: 0; background: var(--surface); padding-top: 10px; }
  body.pdx .modal textarea { font-size: 16px; min-height: 84px; }
}

/* Script notes readable in dark mode, and script pages that fit phones (Nov 2026) */
@media (prefers-color-scheme: dark) {
  .script-step .say-note, .script-read p.cue, .script-read .cue, .do-in { background: #3A2F10; color: #FFF1C9; border-color: #E8A317; }
  .script-step .say-note *, .script-read .cue *, .do-in * { color: inherit; }
  .script-read .cue .blank, .say-note .blank, .do-in .blank { background: rgba(255, 214, 107, .18); color: #FFF1C9; border-bottom-color: #E8A317; }
  .script-read .cue .do-tag, .say-note .do-tag, .do-in .do-tag { background: #0F1B17; color: #FFD66B; }
}
:root[data-theme="dark"] .script-step .say-note, :root[data-theme="dark"] .script-read .cue, :root[data-theme="dark"] .do-in { background: #3A2F10; color: #FFF1C9; border-color: #E8A317; }
:root[data-theme="dark"] .script-read .cue * { color: inherit; }
@media (max-width: 700px) {
  .view .row > .seg, .row > .seg { display: flex; flex-wrap: wrap; width: 100%; }
  .row > .seg .btn, .row > .seg button { flex: 1 1 auto; text-align: center; white-space: normal; }
  .script-read { padding-bottom: 96px; }
  .script-read p, .script-read .cue, .script-read .say-screen { overflow-wrap: anywhere; max-width: 100%; }
  .script-read .cue { display: block; }
}

/* Test power dial and the phone Close button (Nov 2026) */
.test-banner { border-color: #E8A317; background: #FFF4D6; color: #3A2F10; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; }
.test-banner .btn { margin-left: auto; }
.cb-test { margin: 6px 0; padding: 6px 10px; border-radius: 8px; background: #FFF4D6; color: #3A2F10; border-left: 4px solid #E8A317; font: 700 12px var(--mono); letter-spacing: .04em; }
@media (prefers-color-scheme: dark) { .test-banner, .cb-test { background: #3A2F10; color: #FFF1C9; } }
.pdx-close { display: none; }
@media (max-width: 600px) {
  body.pdx .pdx-close { display: inline-flex; align-items: center; gap: 6px; position: fixed; z-index: 150; top: calc(10px + env(safe-area-inset-top)); right: 12px; min-height: 44px; padding: 0 14px 0 12px; border-radius: 22px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 700 15px var(--body); cursor: pointer; box-shadow: 0 4px 14px rgba(6, 14, 11, .25); }
  body.pdx .pdx-close span { font-size: 24px; line-height: 1; margin-top: -2px; }
  body.pdx .pdx-close b { font-weight: 700; }
  body.pdx:has(.modal-bg) .pdx-close { display: none; }
  body.pdx .pd:not(.compact) .pd-head { padding-right: 132px; }
  body.pdx .pd:not(.compact) .pd-count { position: absolute; right: 16px; top: calc(70px + env(safe-area-inset-top)); font-size: 44px; }
  body.pdx .callbar { padding-top: calc(64px + env(safe-area-inset-top)); }
  body.pdx.pdx-script .pdx-close { display: none; }
}

/* AI practice owner (Nov 2026) */
.pr { display: grid; gap: 10px; }
.pr-meta { margin: 0; }
.pr-log { display: grid; gap: 8px; padding: 4px 2px; }
.pr.compact .pr-log { max-height: 36vh; }
.pr-b { max-width: 86%; padding: 9px 12px; border-radius: 14px; font-size: 15.5px; line-height: 1.45; overflow-wrap: anywhere; }
.pr-b small { display: block; font: 700 11px var(--mono); letter-spacing: .06em; text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.pr-b.lead { background: var(--surface-2); border: 1px solid var(--line); justify-self: start; }
.pr-b.rep { background: var(--mint-mid); color: var(--ink); justify-self: end; }
.pr-in textarea { width: 100%; font-size: 16px; }
.pr-fb { border: 1px solid var(--line); border-left: 4px solid var(--mint-strong); border-radius: 10px; padding: 10px 12px; background: var(--surface-2); }
.pr-fbt { white-space: pre-wrap; margin-top: 6px; font-size: 15px; line-height: 1.5; }

/* Client app Social page */
.sc-bars { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; }
.sc-bar { position: relative; display: grid; grid-template-rows: auto 1fr auto; justify-items: center; height: 100%; gap: 4px; min-width: 0; }
.sc-bar span { align-self: end; width: 100%; max-width: 34px; min-height: 3px; border-radius: 6px 6px 2px 2px; background: var(--mint-strong, #23B07E); }
.sc-bar b { font: 600 12px var(--mono, monospace); }
.sc-bar i { font-style: normal; font-size: 11px; color: var(--muted); }
.sc-list { display: grid; gap: 14px; }
.sc-post { display: grid; gap: 10px; min-width: 0; border-top: 1px solid var(--line); padding-top: 14px; }
.sc-post:first-child { border-top: 0; padding-top: 0; }
.sc-media { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 8px; }
.sc-media img, .sc-media video { width: 100%; max-height: 260px; object-fit: cover; border-radius: 12px; display: block; background: var(--surface-2); }
.sc-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.sc-tabs button { border: 1px solid var(--line); background: var(--surface); color: inherit; border-radius: 999px; padding: 6px 12px; font: 600 13px var(--body, sans-serif); cursor: pointer; }
.sc-tabs button.is-on { background: #0F1B17; color: #fff; border-color: transparent; }
.sc-cap { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.sc-cm { border-left: 3px solid var(--line); padding: 2px 0 2px 10px; }
.sc-cm.staff { border-color: var(--mint-strong, #23B07E); }
.sc-cm p { margin: 2px 0 0; overflow-wrap: anywhere; }
.sc-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.sc-btns .btn { flex: 1 1 140px; }
.sc-chips { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }

/* Screen fit (Nov 2026): a table inside a card scrolls sideways inside its own box instead of stretching the page or being cut off.
   The old phone rule made every .table-wrap overflow visible, which only the pipeline list wanted. */
.table-wrap { max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.p-main > *, .card, .stat, .item > div { min-width: 0; }
.p-main { box-sizing: border-box; width: 100%; }
@media (max-width: 600px) {
  .card { padding: 18px 16px; }
  .portal .table-wrap table th, .portal .table-wrap table td { padding-left: 8px; padding-right: 8px; }
}
@media (max-width: 600px) {
  .portal .table-wrap table { font-size: 13px; width: 100%; }
  .portal .table-wrap th { font-size: 11px; padding: 6px 5px; line-height: 1.15; white-space: normal; }
  .portal .table-wrap td { padding: 8px 5px; line-height: 1.25; vertical-align: middle; }
  .portal .table-wrap td:first-child, .portal .table-wrap th:first-child { padding-left: 2px; }
  .portal .table-wrap td .small, .portal .table-wrap td small { font-size: 11px; }
}
.rk-table .gap-line { display: none; }
@media (max-width: 600px) {
  .rk-table th:last-child, .rk-table td:last-child { display: none; }
  .rk-table .gap-line { display: block; margin-top: 2px; }
}
/* Segmented buttons and long badges wrap on small screens instead of running off the edge. */
.seg { max-width: 100%; flex-wrap: wrap; }
.seg button { white-space: normal; }
p.badge, .badge.wrap { white-space: normal; max-width: 100%; display: block; overflow-wrap: anywhere; }
/* iPhone and iPad Safari: 100vh is taller than the visible screen while the address bar shows, so the Messages box pushed its
   typing bar below the screen. dvh follows the real visible height; the vh lines above stay as the fallback. */
.portal { min-height: 100dvh; }
.portal .chat { height: calc(100dvh - 290px - var(--sab)); min-height: 320px; }
.auth { min-height: 100dvh; }
.hub, .deck { min-height: 100dvh; }
.rail { height: 100dvh; }
/* Social autopilot: ready-to-post list */
.sq-day { margin: 14px 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.sq-day.is-late { color: var(--bad, #c0392b); }
.item.sq-row { display: flex; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.sq-main { flex: 1 1 260px; min-width: 0; cursor: default; overflow-wrap: anywhere; }
.sq-actions { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; max-width: 100%; }
.sq-score input { min-width: 0; }
@media (max-width: 600px) { .sq-actions { justify-content: flex-start; width: 100%; } }

/* Script reading copy in V's doc layout (Nov 2026): Arial 14pt, one blank line between lines, centered bold underlined headings,
   italic underlined notes for the rep, bold on the offer words, brackets for blanks. Same markup feeds the PDFs (scripts/script-pdfs.mjs). */
.script-read.doc { max-width: 8.5in; padding: 40px 56px 28px; font-family: Arial, 'Liberation Sans', Helvetica, sans-serif; color: var(--ink); }
.script-read.doc .d-brand { display: flex; justify-content: center; padding-bottom: 14px; margin-bottom: 26px; border-bottom: 2px solid var(--mint); }
.script-read.doc .d-brand img { height: 28px; width: auto; }
.script-read.doc .d-brand .on-dark { display: none; }
.script-read.doc .d-title, .script-read.doc .d-h { margin: 0; font: 700 14pt/1.15 Arial, 'Liberation Sans', Helvetica, sans-serif; text-align: center; text-decoration: underline; border: 0; padding: 0; display: block; }
.script-read.doc .d-h { margin: 1.7em 0 1.15em; }
.script-read.doc .d-title + .d-h { margin-top: 1.7em; }
.script-read.doc p { margin: 0 0 1.15em; font: 400 14pt/1.15 Arial, 'Liberation Sans', Helvetica, sans-serif; overflow-wrap: anywhere; }
.script-read.doc b { font-weight: 700; }
.script-read.doc .d-cue { font-style: italic; text-decoration: underline; font-weight: 700; }
@media (max-width: 600px) { .script-read.doc { padding: 22px 18px 12px; } .script-read.doc p, .script-read.doc .d-title, .script-read.doc .d-h { font-size: 12.5pt; } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .script-read.doc .d-brand .on-light { display: none; } :root:not([data-theme="light"]) .script-read.doc .d-brand .on-dark { display: block; } }
:root[data-theme="dark"] .script-read.doc .d-brand .on-light { display: none; }
:root[data-theme="dark"] .script-read.doc .d-brand .on-dark { display: block; }

/* Analysis: compare against the leader */
.pk-cmp th { text-align: left; font-weight: 600; font-size: 13px; color: var(--muted); padding: 8px; }
.pk-cmp .pk-win { font-weight: 700; color: #0A6B4C; } .pk-cmp .pk-lose { font-weight: 700; color: #B23A3A; }

/* Result picker inside the call window (Nov 2026): the call ends and the same window turns into "How did it go?". */
.callbar[data-state="wrap"] { width: min(460px, calc(100vw - 24px)); }
.callbar .cb-wrap { color: #E7F1EC; }
.callbar .cb-wrap .card-head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.callbar .cb-wrap h2 { font: 600 20px/1.2 var(--display); color: #fff; }
.callbar .cb-wrap .pd-av { width: 44px; height: 44px; background: rgba(157, 235, 203, .16); color: var(--mint); }
.callbar .cb-wrap .pd-biz, .callbar .cb-wrap .muted, .callbar .cb-wrap .dp-facts i { color: #9DB2A8; }
.callbar .cb-wrap .dispo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.callbar .cb-wrap .dispo-btn { background: rgba(255, 255, 255, .06); border-color: rgba(157, 235, 203, .2); color: #E7F1EC; min-height: 46px; }
.callbar .cb-wrap .dispo-btn:hover { background: rgba(157, 235, 203, .14); }
.callbar .cb-wrap .dispo-btn.on { background: rgba(157, 235, 203, .28); border-color: var(--mint); color: #fff; }
.callbar .cb-wrap .field span { color: #9DB2A8; }
.callbar .cb-wrap textarea, .callbar .cb-wrap input { background: #0F1B17; color: #E7F1EC; border: 1px solid rgba(157, 235, 203, .3); }
.callbar .cb-wrap .btn-ghost { color: #E7F1EC; border-color: rgba(157, 235, 203, .3); }
.callbar .cb-wrap .dp-foot { margin-top: 12px; font-size: 12.5px; }
.callbar .cb-wrap .linkbtn { color: #F2A39B; }
.dial-after { padding: 12px 14px; }

/* Book appointment is the main button in the call window, the result window and the dial card. Stop dialing is always red. */
.cb-book { display: block; width: 100%; margin: 10px 0 2px; min-height: 48px; border: 0; border-radius: 14px; background: var(--mint); color: #0F1B17; font: 700 16px var(--body); cursor: pointer; box-shadow: 0 0 0 2px rgba(157, 235, 203, .35); }
.cb-book:hover { background: #B6F2DA; }
.cbp-stop { background: #B3382C; color: #fff; border-color: #B3382C; }
.pd-x { margin-left: 8px; width: 28px; height: 28px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .25); background: transparent; color: inherit; font-size: 20px; line-height: 1; cursor: pointer; }
.pd-stopbtn { color: #B3382C; border-color: #B3382C; }
#dbook { min-height: 44px; font-weight: 700; }
.callbar .cb-wrap { display: flex; flex-direction: column; }
.callbar .cb-wrap > .card-head { order: 0; flex-wrap: nowrap; }
.callbar .cb-wrap .dp-who { flex: 1 1 auto; min-width: 0; }
.callbar .cb-wrap > .dp-foot { order: 1; margin: 6px 0 0; }
.callbar .cb-wrap > .dp-facts { order: 2; }
.callbar .cb-wrap > .dispo-grid { order: 3; }
.callbar .cb-wrap > .dispo-when, .callbar .cb-wrap > .field, .callbar .cb-wrap > .dispo-lead { order: 4; }
.callbar .cb-wrap > .row.end { order: 5; position: sticky; bottom: -16px; margin: 12px -16px -16px; padding: 12px 16px 16px; background: var(--side); border-top: 1px solid rgba(157, 235, 203, .14); }
.callbar .cb-wrap > .row.end .btn { width: 100%; min-height: 48px; }
.callbar .cb-wrap .kbd { background: rgba(255, 255, 255, .16); color: #E7F1EC; border-color: transparent; }

/* Crash reporter */
.crash-box { position: fixed; z-index: 400; left: 16px; bottom: calc(16px + var(--sab)); width: min(360px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-left: 4px solid #B3382C; border-radius: 14px; padding: 14px; box-shadow: 0 14px 40px rgba(0, 0, 0, .25); }
.crash-box p { margin: 6px 0 10px; font-size: 13.5px; color: var(--muted); }
.crash-row { display: flex; gap: 8px; }
.bug { margin-bottom: 10px; } .bug.is-fixed { opacity: .6; }
.bug-pre { white-space: pre-wrap; overflow-wrap: anywhere; font: 12px/1.4 var(--mono, monospace); background: var(--surface-2); padding: 10px; border-radius: 10px; overflow-x: auto; }

/* Collapsible side menu and the quick links bar (Nov 2026) */
.rail-fold { display: none; }
.qbar { display: flex; align-items: center; gap: 6px; padding: 6px 20px; border-bottom: 1px solid var(--line); background: var(--surface); overflow-x: auto; scrollbar-width: none; min-height: 40px; }
.qbar::-webkit-scrollbar { display: none; }
.qb-cap { font: 600 10.5px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-right: 4px; flex: none; }
.qb-chip { flex: none; padding: 5px 12px; border-radius: 99px; font: 600 13px var(--body); color: var(--ink); text-decoration: none; border: 1px solid var(--line); background: var(--surface-2); }
.qb-chip:hover { background: var(--mint-soft); }
.qb-chip.is-on { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.qb-edit { flex: none; margin-left: auto; background: none; border: 0; color: var(--muted); font: 600 12.5px var(--body); cursor: pointer; padding: 5px 8px; border-radius: 8px; }
.qb-edit:hover { color: var(--ink); background: var(--surface-2); }
@media (max-width: 700px) { .qbar { display: none; } }
@media (min-width: 901px) {
  .rail-fold { display: inline-grid; }
  body.rail-collapsed .hub { grid-template-columns: 68px minmax(0, 1fr); }
  body.rail-collapsed .rail { padding: 16px 8px 14px; align-items: stretch; }
  body.rail-collapsed .rail-brand, body.rail-collapsed .rail nav a span:not(.nbadge), body.rail-collapsed .rail-grp > p { display: none; }
  body.rail-collapsed .rail-head { justify-content: center; padding: 4px 0 14px; }
  body.rail-collapsed .rail nav a { justify-content: center; padding: 10px 0; }
  body.rail-collapsed .rail nav a .nbadge { position: absolute; top: 2px; right: 6px; }
  body.rail-collapsed .rail-grp { margin-top: 2px; padding-top: 6px; border-top: 1px dashed rgba(157, 235, 203, .14); }
  body.rail-collapsed .rail nav a.is-active::before { left: -8px; }
}
.rail-fold { color: #A9BDB4; background: transparent; border: 0; width: 34px; height: 34px; place-items: center; border-radius: 9px; cursor: pointer; }
.rail-fold:hover { background: rgba(255, 255, 255, .08); color: #fff; }

/* No pinch or page zoom anywhere in the Hub. Photos open in a viewer that zooms. */
html, body { touch-action: pan-x pan-y; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
.zoomable, .zoomable * { touch-action: none; }
.pview { position: fixed; inset: 0; z-index: 500; background: rgba(8, 14, 12, .94); display: grid; place-items: center; overflow: hidden; touch-action: none; user-select: none; -webkit-user-select: none; }
.pview img { max-width: 100vw; max-height: 100dvh; transform-origin: 0 0; will-change: transform; cursor: grab; -webkit-user-drag: none; }
.pview-x { position: absolute; top: calc(12px + env(safe-area-inset-top)); right: 14px; z-index: 2; background: rgba(255, 255, 255, .14); color: #fff; border: 0; border-radius: 99px; width: 44px; height: 44px; font-size: 26px; line-height: 1; cursor: pointer; }
.pview-hint { position: absolute; bottom: calc(14px + var(--sab)); left: 0; right: 0; text-align: center; color: #B7C7BF; font: 500 12.5px var(--body); pointer-events: none; }

.mq-meter { height: 14px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.mq-meter i { display: block; height: 100%; width: 0; background: var(--mint-strong); transition: width .06s linear; }

/* Client logo opening screen */
.splash { position: fixed; inset: 0; z-index: 600; display: grid; place-items: center; background: radial-gradient(circle at 50% 40%, #fff 0%, #EAF7F1 100%); transition: opacity .45s ease; }
.splash.out { opacity: 0; pointer-events: none; }
.splash-in { position: relative; display: grid; place-items: center; gap: 18px; padding: 24px; }
.splash-logo { width: min(56vw, 240px); max-height: 38vh; object-fit: contain; animation: splashLogo 1.1s cubic-bezier(.2, .9, .25, 1) both; }
.splash-ring { position: absolute; width: min(74vw, 320px); aspect-ratio: 1; border-radius: 50%; border: 2px solid rgba(35, 176, 126, .35); animation: splashRing 1.8s ease-out infinite; }
.splash-name { margin: 0; font: 600 18px var(--display); color: #0F1B17; opacity: 0; animation: splashFade .6s .5s both; }
.splash-bar { width: min(50vw, 200px); height: 4px; border-radius: 99px; background: rgba(15, 27, 23, .1); overflow: hidden; }
.splash-bar i { display: block; height: 100%; width: 0; background: var(--mint-strong, #23B07E); border-radius: 99px; animation: splashBar 1.7s ease-in-out forwards; }
@keyframes splashLogo { 0% { opacity: 0; transform: scale(.7) translateY(10px); filter: blur(6px); } 60% { opacity: 1; filter: blur(0); } 100% { opacity: 1; transform: scale(1) translateY(0); } }
@keyframes splashRing { 0% { transform: scale(.6); opacity: .9; } 100% { transform: scale(1.15); opacity: 0; } }
@keyframes splashFade { to { opacity: 1; } }
@keyframes splashBar { to { width: 100%; } }
@media (prefers-reduced-motion: reduce) { .splash-logo, .splash-ring, .splash-bar i { animation: none; } .splash-bar i { width: 100%; } }

/* Fixed app frame (Nov 2026, V: no scrolling outside the margins, top bar stays put): the page itself never scrolls or bounces.
   The rail, command bar and quick bar are fixed; only .vscroll (the page body) scrolls. Portal and public pages keep normal scrolling. */
html, body { overscroll-behavior: none; }
html:has(.hub), html:has(.hub) body { height: 100%; overflow: hidden; position: static; }
.hub { height: 100dvh; min-height: 0; overflow: hidden; }
.hub .rail { position: relative; height: 100dvh; top: auto; }
.hub .deck { height: 100dvh; min-height: 0; overflow: hidden; }
.hub .cmd, .hub .qbar { flex: none; position: relative; top: auto; touch-action: manipulation; }
.hub .qbar { overscroll-behavior-x: contain; }
.hub .vscroll { flex: 1 1 auto; min-height: 0; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-gutter: stable; }
@media (max-width: 900px) {
  .hub .rail { position: fixed; top: 0; bottom: 0; left: 0; height: auto; }
}

/* Nothing pokes outside the margins (Nov 2026): long ids, urls and tables wrap or scroll inside their own card on every device. */
.hub .main .card, .hub .main .item, .hub .main .item > *, .hub .main .list > li, .hub .main details, .hub .main .form-grid > * { min-width: 0; }
.hub .main :is(.item-sub, .mono, code, p, li, dd, dt, td, th, label, summary, .small, .muted, h1, h2, h3, h4) { overflow-wrap: anywhere; }
.hub .main :is(pre, code, textarea, input, select) { max-width: 100%; }
.hub .main img, .hub .main video, .hub .main canvas, .hub .main iframe:not(#cv-frame):not(.pview iframe) { max-width: 100%; }
@media (max-width: 900px) {
  .hub .main :not(.table-wrap):not(.tbl-wrap) > table.table, .hub .main :not(.table-wrap):not(.tbl-wrap) > table.tbl { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
.hub .main { overflow-wrap: break-word; }
.hub .main .btn { max-width: 100%; white-space: normal; text-align: center; }
.hub .main .form-grid > *, .hub .main .grid > *, .hub .main .stats > * { min-width: 0; }

/* iPad Home Screen app (Nov 2026, V: bottom of the screen cut short, status bar over the title): the frame is pinned to the real screen edges
   (not 100dvh, which iPad standalone mode reports too short) and keeps clear of the status bar and the home bar with safe-area padding. */
.hub { position: fixed; inset: 0; height: auto; grid-template-rows: minmax(0, 1fr); }
.hub .rail { height: 100%; padding-top: calc(16px + env(safe-area-inset-top)); padding-bottom: calc(14px + var(--sab)); padding-left: calc(12px + env(safe-area-inset-left)); }
.hub .deck { height: 100%; position: relative; }
.hub .cmd { padding-top: calc(10px + env(safe-area-inset-top)); padding-right: calc(clamp(16px, 3vw, 32px) + env(safe-area-inset-right)); }
.hub .main { padding-bottom: calc(72px + var(--sab)); }
@media (max-width: 900px) {
  .hub .rail { position: fixed; height: auto; padding-top: calc(14px + env(safe-area-inset-top)); padding-bottom: calc(16px + var(--sab)); }
  .hub .cmd { padding-top: calc(8px + env(safe-area-inset-top)); padding-right: calc(12px + env(safe-area-inset-right)); }
  .hub .main { padding-bottom: calc(96px + var(--sab)); }
}
/* Pull down to refresh */
.ptr { position: absolute; left: 50%; top: 0; z-index: 30; transform: translate(-50%, calc(var(--p, 0) * 1px - 44px)); pointer-events: none; opacity: 0; display: flex; align-items: center; gap: 8px; clip-path: inset(0 round 99px);
  padding: 7px 14px; border-radius: 99px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 20px rgba(0, 0, 0, .18); font: 600 12.5px var(--body); color: var(--ink-2); white-space: nowrap; }
.ptr.spin { opacity: 1; }
.ptr-i { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--mint-strong); border-top-color: transparent; transform: rotate(calc(var(--p, 0) * 5deg)); transition: transform .1s; }
.ptr.ready .ptr-i { background: var(--mint-strong); }
.ptr.spin .ptr-i { animation: ptr-spin .7s linear infinite; background: none; }
@keyframes ptr-spin { to { transform: rotate(360deg); } }

/* ===== Windows on iPad and split screen, one window many screens, Apple style motion (Nov 2026) ===== */
/* Only real phones dock the call window across the bottom. iPad, split screen and desktop get a floating card that is
   always narrower than the screen and always scrolls inside itself, so nothing is wider than the space it has. */
html:not(.is-phone) .callbar,
html:not(.is-phone) .pd {
  left: auto; right: max(8px, 20px); top: calc(76px + env(safe-area-inset-top, 0px)); bottom: auto;
  width: min(400px, calc(100vw - 16px)); max-width: calc(100vw - 16px);
  max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px));
  overflow-y: auto; overscroll-behavior: contain;
}
html:not(.is-phone) .callbar[data-state="wrap"] { width: min(460px, calc(100vw - 16px)); }
@media (max-width: 560px) { html:not(.is-phone) .callbar, html:not(.is-phone) .pd { right: 8px; } }
html:not(.is-phone) .callbar.under, html:not(.is-phone) .pd.under { display: none; }
/* A Book, Text or result screen opened from the dialer lives in the dialer window's place. */
.modal-bg.win { inset: 0; background: none; padding: 0; display: block; pointer-events: none; animation: none; backdrop-filter: none; z-index: 121; }
.modal-bg.win .modal {
  pointer-events: auto; position: fixed; left: auto; bottom: auto; right: max(8px, 20px); top: calc(76px + env(safe-area-inset-top, 0px));
  width: min(460px, calc(100vw - 16px)); max-width: calc(100vw - 16px); max-height: calc(100dvh - 92px - env(safe-area-inset-top, 0px));
  padding: 20px; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 18px 50px rgba(6, 14, 11, .34); animation: none; overflow: auto; overscroll-behavior: contain;
}
.modal-bg.win .mdl-tools { display: none; }
.dw-ghost { z-index: 121; }

/* Motion: Apple's sheet curve, springy pop ups, soft blur behind, press feedback. Everything below is off for people who asked for less motion. */
:root { --sheet: cubic-bezier(.32, .72, 0, 1); --spring: cubic-bezier(.34, 1.3, .64, 1); }
@media (prefers-reduced-motion: no-preference) {
  .modal-bg:not(.win):not(.float) { backdrop-filter: blur(6px) saturate(1.1); -webkit-backdrop-filter: blur(6px) saturate(1.1); animation: fade .32s var(--sheet) both; }
  .modal-bg:not(.win):not(.float) .modal { animation: sheetIn .5s var(--sheet) both; }
  .modal-bg.closing { pointer-events: none; animation: fadeOut .24s var(--sheet) both !important; }
  .modal-bg.closing .modal { animation: sheetOut .24s var(--sheet) both !important; }
  html.is-phone .modal-bg:not(.win):not(.float) .modal { animation-name: sheetUp; }
  html.is-phone .modal-bg.closing .modal { animation-name: sheetDown !important; }
  .modal-bg.float .modal { animation: popIn .46s var(--spring) both; }
  .pal { animation: popIn .36s var(--spring) both; }
  .pal-wrap { animation: fade .25s var(--sheet) both; }
  .toast { animation: toastIn .5s var(--spring) both; }
  .pmenu, .ms-pop, .notif-panel, .tray-chip { animation: popIn .34s var(--spring) both; transform-origin: top right; }
  .tray-chip { transform-origin: bottom left; }
  .ai-panel:not([hidden]) { animation: slideIn .5s var(--sheet) both; }
  .rail { transition: transform .5s var(--sheet), width .5s var(--sheet); }
  /* Pages ease in once per visit (body.settled stops it replaying on pull to refresh and live redraws). */
  body:not(.settled) .hub .main > * { animation: pageIn .6s var(--sheet) both; }
  body:not(.settled) .hub .main > *:nth-child(2) { animation-delay: .04s; }
  body:not(.settled) .hub .main > *:nth-child(3) { animation-delay: .08s; }
  body:not(.settled) .hub .main > *:nth-child(n+4) { animation-delay: .12s; }
  /* Touch feedback: things dip a little under the finger and spring back. */
  .btn, .tab, .chip, .tray-chip, .rail a, .pmenu a, .pmenu button, .lead-card, .client-card, .stat, .item, .ag {
    transition: transform .28s var(--spring), background-color .2s var(--sheet), box-shadow .3s var(--sheet), border-color .2s var(--sheet), opacity .2s var(--sheet);
  }
  .btn:active, .tab:active, .chip:active, .tray-chip:active, .rail a:active, .pmenu a:active, .pmenu button:active { transform: scale(.96); transition-duration: .1s; }
  .lead-card:active, .client-card:active, .item:active { transform: scale(.985); transition-duration: .1s; }
  .callbar button:active, .callbar a:active { transform: scale(.94); transition: transform .1s var(--sheet); }
  .callbar, .pd { transition: width .5s var(--sheet), height .5s var(--sheet), translate .3s var(--sheet); }
  .callbar.dragging, .pd.dragging { transition: none; }
  .switch input + span, .switch .track { transition: background-color .3s var(--sheet), transform .3s var(--spring); }
}
@keyframes sheetIn { from { opacity: 0; transform: translateY(24px) scale(.94); } to { opacity: 1; transform: none; } }
@keyframes sheetOut { to { opacity: 0; transform: translateY(10px) scale(.96); } }
@keyframes sheetUp { from { opacity: 1; transform: translateY(100%); } to { opacity: 1; transform: none; } }
@keyframes sheetDown { from { opacity: 1; transform: none; } to { opacity: 1; transform: translateY(100%); } }
@keyframes fadeOut { to { opacity: 0; } }
@keyframes popIn { from { opacity: 0; transform: translateY(8px) scale(.92); } to { opacity: 1; transform: none; } }
@keyframes toastIn { from { opacity: 0; transform: translateY(24px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(32px); } to { opacity: 1; transform: none; } }
@keyframes pageIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 560px) { .modal-bg.win .modal { right: 8px; } }

/* ===== Lead plays and guide lines (Nov 2026) ===== */
.guide { margin: 8px 0 10px; padding: 10px 12px; border-radius: 12px; background: var(--mint-soft, #EAF8F2); border: 1px solid var(--line); font-size: 13.5px; color: var(--ink-2); }
.guide b { display: block; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--accent, #0A6B4C); margin-bottom: 4px; }
.guide ul { margin: 0; padding-left: 18px; }
.guide li { margin: 2px 0; }
.plays-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); gap: 10px; }
.play { text-align: left; display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); cursor: pointer; font: inherit; min-width: 0; }
.play:hover { border-color: var(--mint-strong, #23B07E); }
.play.on { border-color: var(--mint-strong, #23B07E); box-shadow: 0 0 0 2px rgba(35, 176, 126, .25); }
.play:disabled { opacity: .5; cursor: not-allowed; }
.play-top { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.play-top b { font: 600 15px var(--display, var(--body)); overflow-wrap: anywhere; }
.play-top .badge { flex: 0 0 auto; font-size: 10.5px; }
.play-who { font-size: 13px; color: var(--ink-2); }
.play-meters { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 10px; font-size: 11.5px; color: var(--muted); }
.play-meters > span { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.play-foot { font: 600 12px var(--mono); color: var(--accent, #0A6B4C); }
.dots { display: inline-flex; gap: 3px; }
.dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--line); }
.dots i.on { background: var(--mint-strong, #23B07E); }
.pg { margin-top: 14px; padding: 16px; border-radius: 16px; border: 1px solid var(--line); background: var(--surface-2, var(--surface)); }
.pg-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 8px; }
.pg-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 12px; }
.pg-sec h4 { margin: 0 0 4px; font: 600 11px var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.pg-sec p { margin: 0; font-size: 14px; }
.pg-budget { margin-top: 12px; }
.pg-budget .seg { margin-top: 4px; flex-wrap: wrap; }
.pg-budget small { opacity: .75; margin-left: 4px; }
.ref-line { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.ref-line a { color: inherit; text-decoration: underline; }
@media (prefers-color-scheme: dark) { .guide { background: rgba(157, 235, 203, .07); } }

/* Dial this column */
.col-tools { display: inline-flex; align-items: center; gap: 6px; }
.col-dial { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--line, #DCE6E1); background: var(--surface, #fff); color: var(--accent, #0A6B4C); border-radius: 999px; padding: 2px 9px 2px 6px; font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.col-dial svg { width: 13px; height: 13px; }
.col-dial:hover { background: var(--mint, #9DEBCB); color: var(--ink, #0F1B17); }

/* Slack page fits the screen (Nov 2026, V: Slack window too big, had to scroll): the page body is now the only scroller, so Slack fills exactly
   what is left under the top bars instead of using a viewport height. Its own lists and messages scroll inside it. */
.hub .vscroll:has(.sl-main) { display: flex; flex-direction: column; overflow: hidden; scrollbar-gutter: auto; }
.hub .main.sl-main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(14px + var(--sab)); }
.hub .main.sl-main > .sl, .hub .main.sl-main > .sl:has(.sl-thread:not([hidden])) { flex: 1 1 auto; min-height: 0; height: auto; }
@media (max-width: 900px) {
  .hub .main.sl-main { padding: 0 0 calc(76px + var(--sab)); }
}
/* Gmail page fits the screen the same way: it fills what is left under the Google tabs. */
.hub .vscroll:has(.gm-wrap) { display: flex; flex-direction: column; overflow: hidden; scrollbar-gutter: auto; }
.hub .main:has(> .gm-wrap) { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; padding-bottom: calc(14px + var(--sab)); }
.hub .main:has(> .gm-wrap) > .gm-wrap { flex: 1 1 auto; min-height: 0; height: auto; }
@media (max-width: 900px) {
  .hub .main:has(> .gm-wrap) { padding-bottom: calc(76px + var(--sab)); }
}

/* Result window without scrolling (Nov 2026, V: the disposition pop up scrolled; Save belongs beside Book appointment).
   Three columns of results, a short note, and one action row: Book appointment | Save. Nothing inside scrolls on a computer or iPad. */
.dp-actions { display: flex; gap: 8px; align-items: stretch; justify-content: stretch; }
.dp-actions > .btn, .dp-actions > .cb-book { flex: 1 1 0; width: auto; min-width: 0; margin: 0; min-height: 46px; }
.dp-actions > .cb-book { font-size: 15px; }
.callbar[data-state="wrap"] { width: min(540px, calc(100vw - 16px)); overflow: visible; max-height: none; }
html:not(.is-phone) .callbar[data-state="wrap"] { width: min(540px, calc(100vw - 16px)); overflow: visible; max-height: none; }
.callbar .cb-wrap .dispo-grid, .dispo-modal .dispo-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin-top: 10px; }
.callbar .cb-wrap .dispo-btn, .dispo-modal .dispo-btn { min-height: 40px; padding: 6px 10px; font-size: 13.5px; line-height: 1.2; border-radius: 12px; }
.callbar .cb-wrap .kbd, .dispo-modal .kbd { flex: none; }
.callbar .cb-wrap > .field, .dispo-modal .field { margin-top: 8px !important; }
.callbar .cb-wrap textarea, .dispo-modal textarea { min-height: 0; height: 52px; resize: none; padding: 8px 10px; }
.callbar .cb-wrap > .row.end { order: 5; position: static; margin: 10px 0 0 !important; padding: 0; background: none; border: 0; }
.callbar .cb-wrap > .row.end .btn { width: auto; min-height: 46px; }
.callbar .cb-wrap > .dp-foot { order: 6; margin: 8px 0 0; }
.callbar .cb-wrap .dp-facts { margin: 6px 0 0; }
.callbar .cb-wrap .card-head p, .dispo-modal .card-head p { display: none; }
.dispo-modal { max-width: 620px; padding: 18px; overflow: visible; max-height: none; }
.dispo-modal .dp-facts { margin: 6px 0 0; }
@media (max-height: 760px) {
  .callbar .cb-wrap .dispo-btn, .dispo-modal .dispo-btn { min-height: 34px; padding: 4px 8px; font-size: 13px; }
  .callbar .cb-wrap textarea, .dispo-modal textarea { height: 40px; }
  .dp-actions > .btn, .dp-actions > .cb-book { min-height: 40px; }
  .callbar .cb-wrap > .row.end .btn { min-height: 40px; }
  .callbar .cb-wrap .pd-av { width: 36px; height: 36px; }
}
@media (max-width: 600px) {
  .callbar .cb-wrap .dispo-grid, .dispo-modal .dispo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 600px) {
  body.pdx .modal #dpsave, body.pdx .callbar #dpsave { width: auto; min-height: 52px; font-size: 16px; }
  body.pdx .modal .dispo-btn { min-height: 46px; font-size: 14.5px; }
  body.pdx .modal textarea { min-height: 0; height: 56px; font-size: 16px; }
  body.pdx .callbar .cb-wrap .dispo-btn { min-height: 44px; }
  body.pdx .callbar .cb-wrap > .row.end, body.pdx .modal .row.end { position: sticky; bottom: 0; background: var(--surface); padding: 8px 0 0; }
  body.pdx .callbar .cb-wrap > .row.end { background: var(--side); }
}
.callbar .cb-wrap .dp-actions #dpsave:disabled { background: rgba(255, 255, 255, .08); color: #9DB2A8; border: 1px solid rgba(157, 235, 203, .2); opacity: 1; }

/* "Wants info first" email form inside the result window */
.dp-info { margin-top: 8px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); }
.dp-info.off .dp-inforow, .dp-info.off .dp-infohelp { opacity: .45; }
.dp-infochk { display: flex; gap: 8px; align-items: center; font: 600 13.5px var(--body); cursor: pointer; }
.dp-inforow { display: flex; gap: 8px; margin-top: 8px; }
.dp-inforow input { flex: 1 1 auto; min-width: 0; }
.dp-infohelp { margin-top: 6px; font-size: 12px; }
.callbar .cb-wrap > .dp-info { order: 4; background: rgba(255, 255, 255, .06); border-color: rgba(157, 235, 203, .2); }
.callbar .cb-wrap .dp-infohelp { color: #9DB2A8; }
.info-edit { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 18px; align-items: start; }
.info-frame { width: 100%; height: min(70vh, 640px); border: 1px solid var(--line); border-radius: 12px; background: #EEF3F0; }
@media (max-width: 820px) { .info-edit { grid-template-columns: minmax(0, 1fr); } .info-frame { height: 360px; } }
.dispo-modal { max-width: 720px; }
.dispo-modal .dispo-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 700px) { .dispo-modal .dispo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.callbar .cb-wrap.has-info > .dp-facts { display: none; }
.callbar .cb-wrap.has-info textarea { height: 40px; }
.callbar .cb-wrap.has-info > .dispo-when { margin-top: 6px !important; }

/* Pick up where you left off (Nov 2026): strip on Dashboard, Phone and Pipeline, and the popup facts */
.resume-strip { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 0 0 14px; padding: 10px 14px; border-radius: 14px; border: 1px solid var(--mint-strong); background: var(--mint-soft); }
.hub .vscroll > .resume-strip { margin: 12px 20px 0; }
.resume-strip .rs-text { flex: 1 1 260px; min-width: 0; display: grid; gap: 2px; }
.resume-strip .rs-text b { font: 700 14.5px var(--body); }
.resume-strip .rs-text span { font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
.rs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.rs-facts > div { padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); display: grid; gap: 2px; min-width: 0; }
.rs-facts i { font-style: normal; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.rs-facts b { font: 700 15px var(--body); overflow-wrap: anywhere; }
@media (max-width: 900px) { .hub .vscroll > .resume-strip { margin: 10px 14px 0; } }
.modal.resume-modal { max-width: 560px; }

/* ---------- Edit screen (Home Screen style layout editing, public/hub/widgets.js) ---------- */
.lw-hide { display: none !important; }
.lw-editbtn[aria-pressed="true"] { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.lw-editing .lw-tile { position: relative; cursor: grab; touch-action: pan-y; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; outline: 2px dashed rgba(35, 176, 126, .65); outline-offset: 2px; border-radius: 14px; }
.lw-editing .lw-tile * { pointer-events: none; }
.lw-editing .lw-tile > .lw-x, .lw-editing .lw-tile > .lw-sz, .lw-editing .lw-tile .lw-x, .lw-editing .lw-tile .lw-sz, .lw-editing .lw-tile .lw-rs { pointer-events: auto; }
.lw-editing .lw-tile.lw-resizing { animation: none !important; cursor: nwse-resize; }
.lw-x { position: absolute; left: 8px; top: 8px; z-index: 6; width: 30px; height: 30px; padding: 0; border-radius: 50%; border: 2px solid #fff; background: var(--fill); color: var(--on-fill); font: 700 18px/1 var(--body, system-ui); display: grid; place-items: center; cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .3); }
.lw-sz { position: absolute; right: 8px; top: 8px; z-index: 6; padding: 5px 11px; border-radius: 999px; border: 2px solid #fff; background: var(--mint-strong, #23B07E); color: #fff; font: 600 12px/1 var(--body, system-ui); cursor: pointer; box-shadow: 0 2px 8px rgba(0, 0, 0, .25); }
.lw-editing .lw-tile summary { position: relative; }
.lw-lift { z-index: 40 !important; box-shadow: 0 22px 44px rgba(15, 27, 23, .32); opacity: .96; transition: none; animation: none !important; cursor: grabbing; }
.lw-bar { position: fixed; left: 50%; bottom: calc(18px + var(--sab, 0px)); transform: translateX(-50%); z-index: 80; display: flex; gap: 6px; padding: 7px; border-radius: 999px; background: var(--fill); box-shadow: 0 14px 40px rgba(0, 0, 0, .35); max-width: calc(100vw - 16px); }
.lw-b { border: 0; border-radius: 999px; padding: 10px 16px; min-height: 40px; background: rgba(255, 255, 255, .12); color: #fff; font: 600 14px/1 var(--body, system-ui); cursor: pointer; white-space: nowrap; }
.lw-b b { display: inline-grid; place-items: center; min-width: 18px; height: 18px; margin-left: 6px; border-radius: 9px; background: var(--mint, #9DEBCB); color: var(--ink); font-size: 11px; }
.lw-done { background: var(--mint, #9DEBCB); color: var(--ink); }
.lw-gal { display: grid; gap: 8px; }
.lw-gi { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }
@media (max-width: 900px) { .lw-bar { bottom: calc(86px + var(--sab, 0px)); } }
@media (prefers-reduced-motion: no-preference) {
  @keyframes lw-jig { 0% { transform: rotate(-.45deg); } 50% { transform: rotate(.45deg); } 100% { transform: rotate(-.45deg); } }
  .lw-editing .lw-tile:not(.lw-lift) { animation: lw-jig .3s ease-in-out infinite; }
  .lw-editing .lw-tile:not(.lw-lift):nth-child(2n) { animation-duration: .36s; animation-direction: reverse; }
  .lw-editing .lw-tile:not(.lw-lift):nth-child(3n) { animation-delay: -.11s; }
  .lw-bar { animation: lw-up .28s cubic-bezier(.32, .72, 0, 1); }
  @keyframes lw-up { from { transform: translate(-50%, 24px); opacity: 0; } to { transform: translate(-50%, 0); opacity: 1; } }
}
/* Dialer columns follow the saved order of the three panes (lw-cols is set by the dialer, wide screens only). */
@media (min-width: 1101px) { .dial-grid.lw-cols { grid-template-columns: var(--dg-cols); } }
body.lw-on { -webkit-user-select: none; user-select: none; }
body.lw-on .modal, body.lw-on .modal input { -webkit-user-select: text; user-select: text; }

/* ---------- Swipe through script steps ---------- */
.script-body, .swipeable { touch-action: pan-y; }
.d-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.script-read .d-page[hidden] { display: none; }

/* ---------- Script beside the call window ---------- */
.callscript { position: fixed; z-index: 89; display: flex; flex-direction: column; gap: 8px; padding: 14px; box-sizing: border-box; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 18px 50px rgba(0, 0, 0, .28); overflow: hidden; }
.callscript .cs-head { display: flex; align-items: center; gap: 8px; min-width: 0; }
.callscript .cs-head b { font: 600 15px/1 var(--display); }
.callscript .cs-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); font-size: 13px; }
.callscript .cs-notes { display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.callscript .cs-x { border: 0; background: var(--surface-2, #F1F5F3); width: 28px; height: 28px; border-radius: 50%; font-size: 18px; line-height: 1; cursor: pointer; color: var(--ink); }
.callscript .seg { flex-wrap: wrap; }
.callscript .cs-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; margin-top: 0; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; }
@media (prefers-reduced-motion: no-preference) { .callscript { animation: cs-in .3s cubic-bezier(.32, .72, 0, 1); } @keyframes cs-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } } }
body.pdx .callscript { display: none; }

/* Lead popup contact strip: phone, email and website right under the name */
.lm-contact { display: flex; flex-wrap: wrap; gap: 6px 22px; padding: 8px 0 10px; align-items: flex-start; }
.lm-contact .lmc { display: grid; gap: 1px; min-width: 0; overflow-wrap: anywhere; }
.lm-contact .lmc i { font: 600 10px var(--mono, monospace); letter-spacing: .06em; text-transform: uppercase; color: var(--muted); font-style: normal; }
.lm-contact .lmc a { font-weight: 600; color: var(--accent, #0A6B4C); text-decoration: none; }
.lm-contact .lmc a:hover { text-decoration: underline; }
.lm-contact small { display: block; }

/* Fill the screen at 100% zoom (Nov 2026, V: big empty margin on the right). The page no longer stops at 1440px; the grid column
   follows the side menu, so opening or folding the menu pushes the page over instead of leaving a gap or covering it. */
.hub .main, .main { max-width: none; width: 100%; }
@media (min-width: 901px) {
  .hub { transition: grid-template-columns .22s var(--ease, ease); }
  body.rail-collapsed .tray { left: 84px; max-width: calc(100vw - 100px); }
}
@media (prefers-reduced-motion: reduce) { .hub { transition: none; } }

/* Phone History and Texts workspace (Zoom Phone style): list on the left, details beside it */
.ph-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; margin: 0 0 12px; }
.ph-sub a { padding: 6px 12px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 13px var(--body); text-decoration: none; display: inline-flex; gap: 6px; align-items: center; }
.ph-sub a small { color: var(--muted); font-weight: 600; }
.ph-sub a.is-active { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.ph-sub a.is-active small { color: rgba(255, 255, 255, .7); }
.ph-find { margin-left: auto; display: flex; align-items: center; gap: 6px; padding: 0 10px; border: 1px solid var(--line); border-radius: 99px; background: var(--surface); min-width: 0; flex: 0 1 260px; }
.ph-find svg { width: 16px; height: 16px; color: var(--muted); flex: none; }
.ph-find input { border: 0; background: none; outline: none; padding: 7px 0; font: 14px var(--body); color: var(--ink); min-width: 0; width: 100%; }
.ph-split { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
.ph-detail { display: none; }
@media (min-width: 1280px) {
  .ph-split { grid-template-columns: minmax(300px, 420px) minmax(0, 1fr); }
  .ph-detail { display: block; position: sticky; top: 0; }
}
.ph-list { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; min-width: 0; }
.ph-day { padding: 7px 14px; font: 600 10.5px var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-bottom: 1px solid var(--line); }
.ph-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.ph-row:last-child { border-bottom: 0; }
.ph-row:hover { background: var(--surface-2); }
.ph-row.is-on { background: var(--mint-soft, #E6F8F0); }
.ph-row.is-new .ph-who b { font-weight: 800; }
.ph-who { min-width: 0; display: grid; gap: 1px; }
.ph-who b { font-weight: 600; overflow-wrap: anywhere; }
.ph-who small { color: var(--muted); font-size: 12.5px; overflow-wrap: anywhere; }
.ph-who audio { width: 100%; max-width: 340px; margin-top: 6px; height: 34px; }
.ph-time { font-size: 12.5px; color: var(--muted); text-align: right; white-space: nowrap; }
.ph-time i { color: var(--bad, #D64545); font-style: normal; font-size: 10px; }
.ph-dir { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.ph-dir.ph-in { color: #1F8A5B; background: color-mix(in srgb, #1F8A5B 14%, transparent); }
.ph-dir.ph-out { color: #4E7FD8; background: color-mix(in srgb, #4E7FD8 14%, transparent); }
.ph-dir.ph-missed { color: var(--bad, #D64545); background: color-mix(in srgb, #D64545 14%, transparent); }
.ph-dir.ph-missed svg { transform: scaleX(1); }
.ph-dir.ph-voicemail { color: #B7791F; background: color-mix(in srgb, #E8A33D 20%, transparent); }
.ph-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: grid; gap: 14px; min-width: 0; }
.ph-head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ph-head h2 { margin: 0; font-size: 20px; overflow-wrap: anywhere; }
.ph-head p { margin: 2px 0 0; overflow-wrap: anywhere; }
.ph-av { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--fill); color: var(--mint); font: 700 16px var(--display); flex: none; }
.ph-av.sm { width: 34px; height: 34px; font-size: 13px; }
.ph-acts { gap: 8px; flex-wrap: wrap; }
.ph-audio { display: grid; gap: 6px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.ph-audio audio { width: 100%; }
.ph-empty { border: 1px dashed var(--line); border-radius: 14px; padding: 40px 20px; text-align: center; color: var(--muted); }
.ph-detail #tthread { min-width: 0; }
.ph-detail .thread { }

/* Phone: the original top tabs stay; Keypad, History and Texts get a small sub menu under them (Zoom Phone style). */
.ph-menu { display: flex; flex-wrap: wrap; gap: 6px; margin: -4px 0 14px; }
.ph-menu a { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 99px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); font: 600 13.5px var(--body, inherit); text-decoration: none; }
.ph-menu a svg { width: 17px; height: 17px; color: var(--muted); flex: none; }
.ph-menu a:hover { background: var(--surface); }
.ph-menu a.is-active { background: var(--sel); color: var(--on-sel); border-color: var(--sel); }
.ph-menu a.is-active svg { color: var(--mint, #9DEBCB); }
.ph-menu .nbadge[hidden] { display: none; }


/* Client app: six tabs (More added) and the More list */
.portal .tabbar { grid-template-columns: repeat(6, minmax(0, 1fr)); padding-left: 4px; padding-right: 4px; }
.portal .tabbar a { padding: 8px 2px; font-size: 11px; }
.portal .tabbar a svg { width: 22px; height: 22px; }
.more-row { border: 0; box-shadow: none; background: transparent; border-radius: 12px; margin: 0; padding: 12px 10px; }
.more-row + .more-row { border-top: 1px solid var(--line); border-radius: 0; }
.more-go { margin-left: auto; font-size: 22px; color: var(--muted); line-height: 1; }
ul.plain { margin: 0; padding-left: 20px; display: grid; gap: 6px; }

/* Import leads: free and paid options side by side */
.imp-opts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 6px 0 12px; }
.imp-col { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 10px; align-content: start; background: var(--surface-2, transparent); }
.imp-col h3 { margin: 0; font-size: 14px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.imp-opt { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; cursor: pointer; }
.imp-opt > span { display: grid; gap: 2px; }
.imp-opt input { margin-top: 3px; }
@media (max-width: 700px) { .imp-opts { grid-template-columns: 1fr; } }

/* Lead database (Apollo style search) and Call insights. public/hub/leaddb.js, leadinsights.js, qualform.js */
.db-health { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(130px, 100%), 1fr)); gap: 8px; margin: 0 0 14px; }
.db-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; display: grid; gap: 2px; min-width: 0; }
.db-tile b { font-size: 18px; } .db-tile span { font-size: 12px; color: var(--muted); }
.db-wrap { display: grid; grid-template-columns: 280px minmax(0, 1fr); gap: 14px; align-items: start; }
.db-side { padding: 14px; }
.db-cat { border-top: 1px solid var(--line); padding: 8px 0; } .db-cat summary { cursor: pointer; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.db-fields { display: grid; gap: 8px; margin-top: 8px; } .db-fields .field { margin: 0; } .db-fields .field > span { font-size: 12px; }
.db-range { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; } .db-range input { min-width: 0; }
.db-pick summary { cursor: pointer; font-size: 13px; padding: 4px 0; } .db-pick summary b { background: var(--mint-soft); border-radius: 8px; padding: 0 6px; font-size: 11px; }
.db-opts { display: grid; gap: 4px; padding: 4px 0 4px 4px; font-size: 13px; }
.db-main { min-width: 0; }
.db-bar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 8px; } .db-bar input[type=search] { flex: 1 1 240px; min-width: 0; }
.db-presets, .db-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 8px; } .db-chips .chip { display: inline-flex; gap: 4px; align-items: center; }
.db-table table { font-size: 13px; } .db-table td { vertical-align: top; } .db-table tbody tr { cursor: pointer; } .db-table tbody tr:hover { background: var(--surface-2); }
.db-table tr.is-dnc td { opacity: .55; }
.db-sort { all: unset; cursor: pointer; font-weight: 700; white-space: nowrap; } .db-sort.on { color: var(--accent); }
.db-combo { display: inline-block; min-width: 30px; text-align: center; font: 700 12px var(--mono, 'JetBrains Mono', monospace); padding: 2px 6px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); }
.db-combo.g-a { background: #DFF7EC; color: #0A6B4C; border-color: #9DEBCB; } .db-combo.g-b { background: #E6F0FF; color: #1D4ED8; border-color: #BFD3FF; }
.db-combo.g-c { background: #FFF4DB; color: #8A5A00; border-color: #F5D58A; } .db-combo.g-d { background: #FDECEC; color: #9B1C1C; border-color: #F5B5B5; }
.db-meter { display: inline-block; width: 46px; height: 6px; border-radius: 4px; background: var(--surface-2); margin-right: 6px; vertical-align: middle; overflow: hidden; }
.db-meter i { display: block; height: 100%; border-radius: 4px; background: var(--c-green, #23B07E); } .db-meter.t2 i { background: var(--c-amber, #E0A100); } .db-meter.t3 i { background: var(--c-coral, #E2665A); }
.db-colpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(180px, 100%), 1fr)); gap: 6px; }
@media (max-width: 1000px) { .db-wrap { grid-template-columns: 1fr; } .db-side { position: static; max-height: none; } }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 100%), 1fr)); gap: 10px; margin-bottom: 14px; }
.ins-tile { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; display: grid; gap: 2px; min-width: 0; }
.ins-tile b { font-size: 22px; } .ins-tile > span:first-of-type { font-weight: 600; } .ins-tile i { font-style: normal; }
.ins-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(360px, 100%), 1fr)); gap: 14px; margin-bottom: 14px; }
.ins-grid.two { grid-template-columns: repeat(auto-fill, minmax(min(460px, 100%), 1fr)); } .ins-grid > .card { margin: 0; min-width: 0; }
.ins-donut { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; } .ins-donut svg { width: 150px; height: 150px; flex: 0 0 auto; }
.ins-legend { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; font-size: 13px; flex: 1 1 180px; min-width: 0; }
.ins-legend li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto auto; gap: 6px; align-items: center; } .ins-legend i { width: 10px; height: 10px; border-radius: 3px; }
.ib { display: grid; gap: 6px; } .ib-row { display: grid; grid-template-columns: minmax(70px, 34%) minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; }
.ib-l { overflow-wrap: anywhere; } .ib-t { height: 10px; background: var(--surface-2); border-radius: 6px; overflow: hidden; } .ib-t i { display: block; height: 100%; border-radius: 6px; background: var(--c-green, #23B07E); }
.ib-t i.tone-blue { background: var(--c-blue, #3B82F6); } .ib-t i.tone-violet { background: var(--c-violet, #8B5CF6); } .ib-t i.tone-amber { background: var(--c-amber, #E0A100); }
.ib-t i.tone-coral { background: var(--c-coral, #E2665A); } .ib-t i.tone-slate { background: var(--c-slate, #64748B); }
.ib-s { grid-column: 2 / -1; font-size: 11.5px; color: var(--muted); margin-top: -4px; }
.ins-calls .item { cursor: pointer; }
.dp-more { display: grid; gap: 6px; margin-top: 8px; } .dp-more:not(:has(.dp-q:not([hidden]))) { display: none; }
.dp-q { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; font-size: 13px; } .dp-q[hidden] { display: none; }
.dp-q > span { font-weight: 600; margin-right: 2px; } .dp-q .chip { padding: 4px 10px; font-size: 12.5px; } .dp-q select, .dp-q input { flex: 1 1 200px; min-width: 0; padding: 6px 8px; }
.ci-scores { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; font-size: 13px; }
.ci-dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 12px; margin: 8px 0 0; font-size: 13px; } .ci-dl dt { color: var(--muted); } .ci-dl dd { margin: 0; }
.qf h4 { margin: 6px 0; font-size: 13px; } .qf-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(220px, 100%), 1fr)); gap: 8px; }
.qf-grid .field { margin: 0; } .qf-multi > div { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: 13px; } .qf-audit summary { cursor: pointer; font-weight: 600; font-size: 13px; margin: 10px 0 6px; }
.db-bar select, .ins-ctl select { width: auto; flex: 0 1 auto; max-width: 100%; min-width: 0; }
.db-bar input[type=search] { width: auto; }
.db-side > summary { list-style: none; cursor: pointer; } .db-side > summary::-webkit-details-marker { display: none; }
@media (max-width: 1000px) { .db-side:not([open]) > summary h2::after { content: ' (tap to open)'; font: 500 12px var(--body); color: var(--muted); } }
@media (max-width: 600px) {
  .db-health { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; } .db-tile { padding: 7px 8px; } .db-tile b { font-size: 15px; } .db-tile span { font-size: 11px; }
  .ins-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .ins-tile { padding: 9px 10px; } .ins-tile b { font-size: 18px; }
}
.dp-q .chip.on, .dp-q .chip.on:hover, .db-presets .chip.on, .db-presets .chip.on:hover { background: var(--btn); color: var(--btn-ink); border-color: transparent; }

/* Call setup on the Pipeline and the slim dialer summary (Nov 2026) */
.csetup { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 14px; width: 100%; }
.cs-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; align-items: start; }
.cs-grid > * { min-width: 0; }
.cs-wide { grid-column: 1 / -1; }
.cs-h { display: block; font-weight: 600; margin-bottom: 6px; }
.cs-kind { flex-wrap: wrap; }
.cs-results, .cs-stages { margin-top: 8px; }
.cs-foot { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 12px; }
.cs-sum { margin: 0; flex: 1 1 280px; min-width: 0; }
.dsetup { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; padding: 10px 14px; margin: 0 0 12px; }
.dsetup > div { min-width: 0; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.dsetup b { font-size: 12px; color: var(--muted); font-weight: 600; }
.dsetup .dsetup-go { margin-left: auto; flex-direction: row; align-items: center; gap: 10px; }

/* Pipeline layout v6 (Nov 2026, V: clean the Pipeline up, columns by stage, last result and grade, who holds which list). */
.liststrip { display: grid; gap: 0; margin: 0 0 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.liststrip .ls-row { display: grid; grid-template-columns: minmax(80px, 140px) minmax(0, 1fr) auto; gap: 8px 14px; align-items: center; padding: 10px 14px; border-top: 1px solid var(--line); }
.liststrip .ls-row:first-child { border-top: 0; }
.liststrip .ls-mine { background: var(--mint-soft, rgba(157, 235, 203, .18)); }
.liststrip .ls-what { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.liststrip .ls-btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
@media (max-width: 700px) { .liststrip .ls-row { grid-template-columns: minmax(0, 1fr); } .liststrip .ls-btns { justify-content: flex-start; } }
.flow { gap: 10px; margin-bottom: 10px; }
.fstep { padding: 10px 14px; gap: 8px; }
.fstep > header p { display: none; }
.fstep[data-sec=clean] > header p, .fstep[data-sec=get] > header p { display: block; }
.fstep .row { gap: 8px; }
.fstep[data-sec=pick] .tz-tabs, .fstep[data-sec=pick] .chips.lists, .fstep[data-sec=pick] .filterbar { display: inline-flex; vertical-align: middle; margin: 0 10px 6px 0; }
.fstep[data-sec=pick] .filterbar { margin-bottom: 0; }
.fstep[data-sec=pick] #fq { flex: 1 1 200px; min-width: 160px; }
.csfold > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 12px; }
.csfold > summary::-webkit-details-marker { display: none; }
.csfold > summary > div { flex: 1 1 auto; min-width: 0; }
.csfold .cs-cue { flex: none; font: 600 13px var(--body); padding: 7px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.csfold[open] .cs-shut, .csfold:not([open]) .cs-open { display: none; }
.boardbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 0 0 12px; }
.boardbar .seg { align-items: center; }
.boardbar .seg-l { font: 600 12px var(--body); color: var(--muted); padding: 0 8px 0 6px; }
.boardbar .spacer { flex: 1 1 auto; }
.col-t { min-width: 0; display: grid; gap: 1px; }
.col-t b { overflow-wrap: anywhere; }
.col-t small { color: var(--muted); font-size: 11.5px; line-height: 1.25; }
.col-empty { margin: 4px 2px; }
.col[data-col=fresh] { --sc: var(--c-teal); }
.col[data-col="grade:A"] { --sc: var(--c-green); } .col[data-col="grade:B"] { --sc: var(--c-blue); } .col[data-col="grade:C"] { --sc: var(--c-amber); } .col[data-col="grade:D"] { --sc: var(--c-coral); }
.col[data-col=won] { --sc: var(--c-green); } .col[data-col=dead] { --sc: var(--bad); }
.col[data-col^="result:"] { --sc: var(--c-violet); }
.board[data-mode=result] > .col, .board[data-mode=grade] > .col { min-width: 0; }
.dial-gate { max-width: 560px; margin: 24px auto; text-align: center; display: grid; gap: 12px; justify-items: center; }
.fstep[data-sec=pick] { flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 10px; }
.fstep[data-sec=pick] > header { flex: 0 0 auto; margin-right: 6px; }
.fstep[data-sec=pick] > .filters { flex: 1 1 100%; }
/* Pipeline v7 (Nov 2026, V: every field as columns, show filter, cards a column, pick several columns, list column picker). */
.boardbar .bb-sel { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.boardbar .bb-sel span { font: 600 12px var(--body); color: var(--muted); white-space: nowrap; }
.boardbar .bb-sel select { width: auto; max-width: 260px; min-height: 36px; padding: 4px 28px 4px 10px; }
.boardbar .bb-chk { gap: 6px; white-space: nowrap; }
.col-head { gap: 6px 8px; }
.col-head .col-pick { flex: none; width: 18px; height: 18px; min-height: 0; margin: 2px 0 0; accent-color: var(--mint-strong); align-self: flex-start; }
.col-head .col-t { flex: 1 1 auto; }
.leads-table tr.grp .col-dial { margin-left: 8px; }
@media (max-width: 700px) { .boardbar .bb-sel { flex: 1 1 100%; } .boardbar .bb-sel select { flex: 1 1 auto; max-width: none; } .boardbar .spacer { display: none; } }
@media (min-width: 901px) {
  .table-wrap:has(> .leads-table) { overflow-x: auto; }
  .leads-table { width: max-content; min-width: 100%; }
  .leads-table th, .leads-table td { white-space: nowrap; }
  .leads-table td.lc-business { white-space: normal; min-width: 220px; max-width: 300px; }
  .leads-table tr.grp td, .leads-table tr.more td { white-space: normal; }
  .leads-table tr.more { display: table-row; }
  .leads-table th:first-child, .leads-table td:first-child { width: 36px; }
}
/* Breakdown (pivot) on the Pipeline, Nov 2026 */
.pivot { margin: 0 0 12px; padding: 12px 14px; }
.pivot .pv-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.pivot .pv-tog { display: inline-flex; align-items: baseline; gap: 8px; background: none; border: 0; padding: 4px 0; cursor: pointer; color: var(--ink); font: inherit; margin-right: auto; }
.pivot .pv-tog b { font: 600 15px var(--display); }
.pivot .pv-tog::after { content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); opacity: .6; align-self: center; }
.pivot .pv-tog[aria-expanded=true]::after { transform: rotate(-135deg); }
.pivot .bb-sel { display: inline-flex; align-items: center; gap: 6px; margin: 0; }
.pivot .bb-sel span { font: 600 12px var(--body); color: var(--muted); }
.pivot .bb-sel select { width: auto; max-width: 240px; min-height: 34px; padding: 4px 28px 4px 10px; }
.pv-wrap { margin-top: 10px; overflow-x: auto; }
.pv { border-collapse: collapse; font-size: 13.5px; min-width: 100%; width: max-content; }
.pv th, .pv td { padding: 6px 10px; border-bottom: 1px solid var(--line); text-align: right; white-space: nowrap; }
.pv thead th { font: 600 12px var(--body); color: var(--muted); text-align: right; vertical-align: bottom; white-space: normal; max-width: 130px; }
.pv th:first-child, .pv tbody th { text-align: left; font-weight: 600; }
.pv tfoot td, .pv tfoot th, .pv .pv-t { font-weight: 700; }
.pv .pv-0 { color: var(--muted); opacity: .5; }
.pv .pv-c { font: 600 13.5px var(--mono, monospace); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 3px 9px; cursor: pointer; color: var(--ink); min-width: 46px; text-align: right; }
.pv .pv-c:hover { border-color: var(--mint-strong); background: var(--mint-soft); }
.pv-list { }
@media (max-width: 700px) { .pivot .bb-sel { flex: 1 1 100%; } .pivot .bb-sel select { flex: 1 1 auto; max-width: none; } }
.cov-tz { grid-column: 1 / -1; }
.pv th, .pv td { overflow-wrap: normal; word-break: normal; }
.pv thead th { min-width: 70px; }
.col-head { flex-wrap: wrap; }
.col-head .col-t { flex: 1 1 110px; }
.col-t b { overflow-wrap: break-word; word-break: normal; }
/* Table cells break words only when a word truly cannot fit (no "Mia mi"); wide tables scroll inside their card. */
.hub .main td, .hub .main th { overflow-wrap: break-word; word-break: normal; }
.hub .main .pv th, .hub .main .pv td { overflow-wrap: normal; word-break: normal; hyphens: none; }
.hub .main .pv thead th { min-width: 84px; }
.pivot .bb-sel span, .boardbar .bb-sel span { white-space: nowrap; }
/* Phone audio: which mic is really in use (Nov 2026) */
.aud-ok { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--mint-strong) 14%, transparent); }
.aud-warn { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--bad) 16%, transparent); border: 1px solid color-mix(in srgb, var(--bad) 50%, transparent); }
.aud-warn-soft { margin: 0 0 8px; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, #E8A33D 14%, transparent); }

/* Lead templates and business hours (Nov 2026, research report "Owner direct lead scraping") */
.tmplrow { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-start; margin: 8px 0 4px; }
.tmplrow .field.inline { display: flex; align-items: center; gap: 8px; margin: 0; }
.tmplrow .field.inline span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.tmplrow select { min-width: 0; max-width: 100%; }
.tmpl-tip { flex: 1 1 320px; min-width: 0; display: grid; gap: 2px; font-size: 13px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.tmpl-tip b { display: inline-block; min-width: 78px; }
.lmc-hours .lmh { display: grid; gap: 2px; min-width: 0; }
.lmc-hours .lmh .badge { vertical-align: middle; justify-self: start; }
.lmc-hours .lmh .cost-hint, .bulk .cost-hint { margin-left: 5px; }

/* Time zone buttons in the Lead finder and empty zone tabs on the Pipeline (Nov 2026, V: every time zone, Mountain was missing) */
.zonebar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 12px; }
.zonebar > .small { flex: 1 0 100%; }
.zonebar .btn small { opacity: .7; margin-left: 2px; }
.tz.is-empty { opacity: .55; }
.tz.is-empty.is-on { opacity: 1; }

/* Auto set up card in Phone audio (Nov 2026) */
.aud-fit { margin: 0 0 12px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); }
.aud-fit .aud-diag { margin: 8px 0; }
.aud-fit-big { font: 600 28px/1.2 var(--display, inherit); font-variant-numeric: tabular-nums; min-height: 34px; }
.aud-fit .aud-ok, .aud-fit .aud-warn { margin: 0 0 8px; }

/* Start power dial with no script picked: the Script box flashes instead of sending the rep away (Nov 2026) */
select.need-pick { outline: 3px solid var(--c-amber, #E07A0C); outline-offset: 2px; animation: needpick .6s ease 3; }
@keyframes needpick { 50% { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-amber, #E07A0C) 30%, transparent); } }

/* Script as one paper page (Nov 2026, V: read it like it is on paper, no flipping between steps): call prep and the script beside the call
   use the reading copy markup (.script-read.doc.paper), every step in order on one scrolling page, prompts for the rep bold italic underlined. */
.script-read.doc.paper { max-width: none; padding: 8px 6px 6px; }
.script-read.doc.paper .script-page > .d-h:first-child { margin-top: .3em; }
.script-read.doc.paper .d-h { font-size: 13pt; }
.script-read.doc.paper p { font-size: 14pt; }
.callscript .script-read.doc.paper p { font-size: 13pt; }
.callscript .script-read.doc.paper .d-h { font-size: 12pt; }
.script-read.doc.paper .script-page[hidden] { display: none; }
@media (max-width: 600px) { .script-read.doc.paper { padding: 4px 2px; } .script-read.doc.paper p { font-size: 13pt; } }

/* Leaderboard widget (Dialer and Dashboard). Teammates' bookings live here, the Coming up bar is the viewer's own. */
.lb-chips { display: inline-flex; gap: 4px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2, var(--card)); }
.lb-chip { border: 0; background: transparent; color: var(--muted); font: 600 12px var(--font-body, inherit); padding: 5px 10px; border-radius: 7px; cursor: pointer; min-height: 28px; }
.lb-chip.on { background: var(--sel); color: var(--on-sel); }
.lb { width: 100%; border-collapse: collapse; font-size: 14px; }
.lb th { text-align: left; font-weight: 600; font-size: 12px; color: var(--muted); padding: 6px 6px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.lb td { padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.lb .num { text-align: right; white-space: nowrap; }
.lb th.num { text-align: right; }
.lb-who { display: flex; align-items: center; gap: 8px; min-width: 120px; }
.lb-who > span { display: grid; min-width: 0; }
.lb-who b { overflow-wrap: anywhere; }
.lb-who em { font-style: normal; font-size: 11px; color: var(--muted); }
.lb-who em.top { color: var(--accent); }
.lb tr.me td { background: var(--mint-soft); }
.lb tr.oth td { color: var(--muted); }
.lb tfoot td, .lb tr.lb-tot td { font-weight: 700; padding-top: 10px; }
.lb tr.lb-sec th { padding-top: 18px; color: var(--ink); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
.lb tr.lb-sec th span { text-transform: none; letter-spacing: 0; font-weight: 500; color: var(--muted); }
.lb .mav { width: 30px; height: 30px; border-radius: 9px; font-size: 12px; }
.lb .mav.gray { background: var(--surface-2, var(--line)); color: var(--muted); }
.lb-note { margin: 8px 0 0; }
.dlb { margin: 0 0 14px; padding: 12px 16px; min-width: 0; max-width: 100%; box-sizing: border-box; }
[data-hide~="leaderboard"] [data-sec="leaderboard"] { display: none !important; }
@media (max-width: 600px) {
  .lb th:nth-child(5), .lb td:nth-child(5) { display: none; }
  .lb-who { min-width: 90px; }
  .lb-who .mav { display: none; }
  .lb th, .lb td { padding-left: 4px; padding-right: 4px; }
}

/* Leaderboard: outside the team (friendly competition, owners type straight into the table, never in analytics) */
.lb-versus { margin: 12px 0 0; font-size: 13px; color: var(--muted); }
.lb-versus b { color: var(--ink); }
.lb-versus .vs { display: inline-block; margin: 0 6px; padding: 1px 7px; border-radius: 99px; background: var(--surface-2, transparent); border: 1px solid var(--line); font: 700 11px var(--body); text-transform: uppercase; letter-spacing: .05em; }
.lb-hint { margin: 0; }
.lb tbody.lb-out { border-top: 2px dashed var(--line); }
.lb-rm { margin-left: auto; border: 0; background: transparent; color: var(--muted); font-size: 18px; line-height: 1; padding: 4px 6px; border-radius: 6px; cursor: pointer; opacity: .55; }
.lb-rm:hover, .lb-rm:focus-visible { opacity: 1; color: var(--ink); background: var(--surface-2, transparent); }
.lb-in { width: 100%; max-width: 72px; margin-left: auto; display: block; min-height: 34px; padding: 4px 8px; text-align: right; border: 1px solid transparent; border-radius: 8px; background: transparent; color: inherit; font-size: 14px; transition: border-color .15s, background .15s; }
.lb-in:hover { border-color: var(--line); }
.lb-in:focus { outline: none; border-color: var(--mint-strong, #23B07E); background: var(--surface, transparent); }
.lb-in.saving { opacity: .6; }
.lb-in.saved { border-color: var(--mint-strong, #23B07E); }
.lb-add { display: flex; gap: 8px; margin-top: 10px; }
.lb-add input { flex: 1 1 auto; min-width: 0; min-height: 36px; padding: 6px 10px; border: 1px solid var(--line); border-radius: 8px; background: transparent; color: inherit; font: inherit; font-size: 14px; }

/* ---------- Widget sizes (Nov 2026, V: every widget resizable to any size, content fits whatever size it is given) ----------
   A width is twelfths of the row: dashboard cards span grid columns, other pieces flow in a wrapping row (.lw-flow).
   A height is fixed with the content scrolling inside. Each widget is a size container, so its content lays out for its own width. */
.bento > *, .lw-flow > *, .dial-grid > *, .dlb { container-type: inline-size; }
.bento > .lw-w { grid-column: span var(--lw-w) !important; }
div.lw-flow, section.lw-flow, main.lw-flow { display: flex !important; flex-wrap: wrap; column-gap: 14px; row-gap: 14px; align-items: flex-start; align-content: flex-start; }
.lw-flow > .card, .lw-flow > .dstrip, .lw-flow > .upcoming { margin-top: 0; margin-bottom: 0; }
.lw-flow > * { flex: 1 1 100%; min-width: 0; }
.lw-flow > .lw-w { flex: 0 0 calc((100% + 14px) * var(--lw-w) / 12 - 14px); }
.lw-h { overflow: auto; overscroll-behavior: contain; }
.card.lw-h { display: flex; flex-direction: column; }
.card.lw-h > .card-head { flex: none; }
.card.lw-h > svg.chart { flex: 1 1 0; min-height: 60px; width: 100%; }
.card.lw-h > .goal-ring, .card.lw-h > .dn-row { flex: 1 1 auto; min-height: 0; }
@media (max-width: 700px) {
  .bento > .lw-w { grid-column: span 12 !important; }
  .lw-flow > .lw-w { flex-basis: 100%; }
}
/* Narrow widgets: stack the head, shrink tables, put side by side parts under each other. */
@container (max-width: 420px) {
  .card-head { flex-wrap: wrap; gap: 6px; }
  .card-head h2 { font-size: 16px; }
  .lb th, .lb td { padding-left: 6px; padding-right: 6px; font-size: 12.5px; }
  .lb th:nth-child(5), .lb td:nth-child(5) { display: none; }
  .lb-who em { display: none; }
  .lb-chips .lb-chip { padding: 4px 8px; font-size: 12px; }
  .dn-row, .cl-row { flex-direction: column; align-items: flex-start; }
  .mini3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .stat-num { font-size: 30px; }
  .tile-spark { display: none; }
  .dstrip { flex-wrap: wrap; row-gap: 6px; }
  .upcoming { flex-wrap: wrap; }
  .w-12 .feed { grid-template-columns: 1fr; }
}
@container (max-width: 260px) {
  .lb th:nth-child(6), .lb td:nth-child(6), .lb th:nth-child(7), .lb td:nth-child(7) { display: none; }
  .goal-ring svg { max-width: 110px; }
  .dn-leg { font-size: 12px; }
}
/* Edit screen: the corner handle that resizes, and the live size while dragging. */
.lw-editing .lw-tile { position: relative; }
.lw-rs { position: absolute; right: 4px; bottom: 4px; width: 26px; height: 26px; z-index: 6; cursor: nwse-resize; touch-action: none; border-radius: 8px;
  background: var(--surface, #fff); border: 1px solid var(--line); box-shadow: 0 2px 6px rgba(0,0,0,.18); }
.lw-rs::before { content: ''; position: absolute; inset: 7px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); border-radius: 0 0 3px 0; }
details > summary > .lw-rs { position: absolute; top: 50%; bottom: auto; transform: translateY(-50%); right: 40px; cursor: ew-resize; }
.lw-resizing { outline: 2px solid var(--mint-strong, #23B07E); outline-offset: 2px; }
.lw-resizing[data-lw-live]::after { content: attr(data-lw-live); position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); z-index: 7;
  padding: 6px 12px; border-radius: 99px; background: var(--fill, #0F1B17); color: var(--on-fill, #fff); font: 600 13px var(--body); white-space: nowrap; pointer-events: none; }
.lw-editing .lw-tile.lw-h { overflow: hidden; }
/* The dialer's Customize layout button lives in Edit screen, Options now (one place to change the screen). */
.dlayout .dl-btn { display: none !important; }
.lb input.lb-in { width: 64px; max-width: 64px; min-width: 0; flex: none; }
.lb td:first-child { width: 34%; }
.lb .lb-who { min-width: 140px; }
.lb .lb-who b { overflow-wrap: anywhere; }

/* Fewer dropdowns (public/hub/segments.js): short choice lists show as tap buttons, a one choice dropdown is hidden. */
select.seg-src, select.seg-one { display: none !important; }
label:has(> select.seg-one) { display: none !important; }
.seg.seg-auto { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); vertical-align: middle; max-width: 100%; }
.seg.seg-auto button { border: 0; background: none; padding: 5px 11px; min-height: 30px; border-radius: 8px; font: 600 13px var(--body); color: var(--ink-2); cursor: pointer; white-space: nowrap; }
.seg.seg-auto button.is-on { background: var(--sel); color: var(--on-sel); }
.seg.seg-auto button:disabled { opacity: .45; cursor: default; }
label > .seg.seg-auto { margin-top: 4px; }
#ftmpl { max-width: 260px; }
/* The leaderboard in a narrow widget or on a phone: drop Dials and Next (still on wider screens), keep Booked, Talks, Per talk and Callbacks. */
@container (max-width: 480px) {
  .lb td:first-child { width: auto; }
  .lb .lb-who { min-width: 84px; gap: 4px; }
  .lb .lb-who .mav { display: none; }
  .lb th:nth-child(5), .lb td:nth-child(5), .lb th:nth-child(7), .lb td:nth-child(7) { display: none; }
  .lb th, .lb td { padding-left: 4px; padding-right: 4px; }
  .lb th { font-size: 10.5px; }
  .lb input.lb-in { width: 40px; max-width: 40px; padding: 4px 3px; font-size: 13px; }
  .lb tr.lb-sec th span, .lb .lb-rm { display: none; }
  .lb th { letter-spacing: 0; font-size: 10px; }
  .lb th, .lb td { padding-left: 3px; padding-right: 3px; }
  .lb { font-size: 13px; }
}

/* Present mode: the clarity audit as one flow (public/hub/presentmode.js leadFlow) */
.pm-flow .pm-sp { flex: 1 1 auto; }
.pm-qr { display: grid; justify-items: center; gap: 6px; text-align: center; margin-top: 8px; padding: 14px; border: 1px solid var(--line); border-radius: 14px; }
.pm-qr svg { width: 200px; height: 200px; background: #fff; border-radius: 8px; }

/* No show protocol hint in the result window (Nov 2026) */
.dp-hint { margin-top: 8px; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface-2); color: var(--muted); font-size: 12.5px; line-height: 1.4; }
