/* DRMLXRY CRM. The look comes straight from drmlxry.com and the HQ emails: charcoal panels on black, the white logo,
   Montserrat (heavy uppercase headlines, small tracked grey labels), the blue #6DCBFD for the one thing to press,
   black text on blue buttons, car photos, and facts as label-left / value-right rows.
   Every color is a variable, so a "look" is just a block of values. Looks: dark (default), soft, light, warm. */
@font-face { font-family: "Montserrat"; src: url("/montserrat-variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root, [data-theme="dark"] {
  color-scheme: dark;
  --bg: #141414; --panel: #1B1B1B; --panel-2: #242424; --line: rgba(255,255,255,.1); --line-2: rgba(255,255,255,.2); --line-3: rgba(255,255,255,.45); --line-soft: rgba(255,255,255,.06);
  --hover: #212121; --sel: #1d2a33; --scroll: #3a3a3a;
  --text: #FFFFFF; --muted: #A6A6A6; --dim: #747474;
  --accent: #6DCBFD; --accent-ink: #0B0B0B; --accent-text: #6DCBFD;
  --ok: #30D158; --ok-ink: #04210D; --warn: #FFC83D; --bad: #FF4D42; --conf: #ffb3ad; --email: #b48cff;
  --mia: #F06BA8; --det: #6DCBFD;
  --bubble-in: #2a2a2a; --bubble-in-text: #F4F4F4; --bubble-out: #1f6fa0; --bubble-out-text: #fff; --bubble-auto: #20303a; --bubble-auto-text: #cfe6f3;
  --ai-bg: #16222a; --sugg-bg: #17232b; --sugg-line: #28485a; --sugg-text: #d7e0e4; --quote-bg: #141414;
  --shadow: 0 1.4rem 3.4rem rgba(0,0,0,.6);
  --r: 4px; --rc: 8px;
  --head: "Montserrat", system-ui, sans-serif;
  --body: "Montserrat", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
/* Soft dark: charcoal instead of pure black, lower contrast, quieter status colors. */
[data-theme="soft"] {
  color-scheme: dark;
  --bg: #1C1E22; --panel: #23262B; --panel-2: #2B2F35; --line: #33373E; --line-2: #414650; --line-3: #565C67; --line-soft: #2B2E34;
  --hover: #282B31; --sel: #2E3238; --scroll: #444952;
  --text: #E4E6EA; --muted: #A3A9B2; --dim: #7C838D;
  --accent: #86CDF5; --accent-ink: #10202B; --accent-text: #86CDF5;
  --ok: #6CCB95; --ok-ink: #0E2A1B; --warn: #E2B25E; --bad: #E8807A; --conf: #EBB5B1; --email: #B7A3E8;
  --mia: #E58DB8; --det: #7FC0EC;
  --bubble-in: #30343B; --bubble-in-text: #E4E6EA; --bubble-out: #3A7397; --bubble-out-text: #fff; --bubble-auto: #2E3B45; --bubble-auto-text: #C9DCE8;
  --ai-bg: #262D33; --sugg-bg: #27323A; --sugg-line: #3D5564; --sugg-text: #CBD5DB; --quote-bg: #202327;
  --shadow: 0 12px 40px rgba(0,0,0,.45);
}
/* Light: white panels on a pale grey page. */
[data-theme="light"] {
  color-scheme: light;
  --bg: #F3F4F6; --panel: #FFFFFF; --panel-2: #F1F2F4; --line: #E3E5E9; --line-2: #CFD3D9; --line-3: #A9AFB8; --line-soft: #EEF0F2;
  --hover: #F5F6F8; --sel: #EAF5FD; --scroll: #C9CDD3;
  --text: #15171A; --muted: #5A616B; --dim: #8B929C;
  --accent: #6DCBFD; --accent-ink: #0B0B0B; --accent-text: #0A6FB0;
  --ok: #17A25B; --ok-ink: #FFFFFF; --warn: #B96F00; --bad: #D92D20; --conf: #B42318; --email: #7A4FD6;
  --mia: #C2317A; --det: #1977B8;
  --bubble-in: #E9EBEF; --bubble-in-text: #15171A; --bubble-out: #1E88D2; --bubble-out-text: #fff; --bubble-auto: #DCECF7; --bubble-auto-text: #1B4460;
  --ai-bg: #EEF7FD; --sugg-bg: #F0F8FE; --sugg-line: #BFE0F5; --sugg-text: #2B3A45; --quote-bg: #FAFBFC;
  --shadow: 0 12px 40px rgba(20,30,45,.18);
}
/* Warm light: off-white paper, softer ink, muted status colors. The gentlest on the eyes. */
[data-theme="warm"] {
  color-scheme: light;
  --bg: #F2EEE7; --panel: #FBF9F5; --panel-2: #F0EBE2; --line: #E4DDD1; --line-2: #D2C9BA; --line-3: #B3A999; --line-soft: #EEE8DE;
  --hover: #F6F2EB; --sel: #EDF3F5; --scroll: #D0C7B8;
  --text: #2A2622; --muted: #6C655B; --dim: #988F82;
  --accent: #8FD3F7; --accent-ink: #14242E; --accent-text: #2B7099;
  --ok: #3F9468; --ok-ink: #FFFFFF; --warn: #A9772B; --bad: #BC574D; --conf: #A2443B; --email: #7C63B8;
  --mia: #B04C80; --det: #2F7CA8;
  --bubble-in: #EBE5DA; --bubble-in-text: #2A2622; --bubble-out: #3E86AF; --bubble-out-text: #fff; --bubble-auto: #DFE9EC; --bubble-auto-text: #2F4A57;
  --ai-bg: #EEF3F2; --sugg-bg: #F1F5F4; --sugg-line: #C9DCE2; --sugg-text: #3A3F3D; --quote-bg: #F7F4EE;
  --shadow: 0 12px 40px rgba(60,45,25,.18);
}
/* iMessage colors: blue for iMessage, green for texts, grey for what they send. */
:root { --im-blue: #0A84FF; --im-green: #30D158; --im-gray: #262629; --im-gray-text: #fff; }
[data-theme="soft"] { --im-gray: #3A3A3C; }
[data-theme="light"], [data-theme="warm"] { --im-blue: #007AFF; --im-green: #34C759; --im-gray: #E9E9EB; --im-gray-text: #000; }
[data-theme="warm"] { --im-gray: #E7E1D7; }
[data-theme="soft"], [data-theme="light"], [data-theme="warm"] { --rc: 8px; --r: 4px; --head: "Montserrat", system-ui, sans-serif; --body: "Montserrat", system-ui, sans-serif; }
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--text); font: 500 13.5px/1.45 var(--body); -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
::-webkit-scrollbar { width: 8px; height: 8px; } ::-webkit-scrollbar-thumb { background: var(--scroll); border-radius: 4px; } ::-webkit-scrollbar-track { background: transparent; }
:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 1px; }
.muted { color: var(--muted); } .dim { color: var(--dim); }
.hide { display: none !important; }
.spacer { flex: 1; }
.ic { flex: none; display: block; }
/* the small tracked label used all over the site and the emails */
.lbl { font-weight: 700; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.caps { font-weight: 900; text-transform: uppercase; }

/* buttons: the blue one is the thing to press, like GET A QUOTE on the site */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; background: transparent; border: 1px solid var(--line-3); border-radius: var(--r); padding: 10px 15px; font-weight: 800; font-size: 11.5px; letter-spacing: .08em; text-transform: uppercase; white-space: nowrap; color: var(--text); }
.btn:hover { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.btn.primary:hover { background: #8fd8fe; border-color: #8fd8fe; color: var(--accent-ink); }
.btn.ghost { border-color: var(--line-2); }
.btn.danger { border-color: color-mix(in srgb, var(--bad) 60%, transparent); color: var(--bad); }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn.sm { padding: 7px 11px; font-size: 11px; }
.btn.wide { width: 100%; }
.iconbtn { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--r); border: 1px solid var(--line-2); background: transparent; }
.iconbtn:hover { border-color: var(--text); }
.link { background: none; border: 0; padding: 0; font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); } .link:hover { color: var(--text); } .link.danger:hover { color: var(--bad); }
input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea {
  background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 9px 11px; outline: none; font-size: 14px;
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-text); }
/* our own arrow on every dropdown, so none of them look like a raw browser control */
select { appearance: none; -webkit-appearance: none; padding-right: 30px !important; background-repeat: no-repeat; background-position: right 10px center; background-size: 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23A6A6A6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.7); }
.tag { display: inline-block; flex: none; font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; border: 1px solid var(--line-2); color: var(--muted); white-space: nowrap; }
.tag.demo { color: var(--warn); border-color: color-mix(in srgb, var(--warn) 55%, transparent); align-self: flex-start; }
.t-ok { color: var(--ok); } .t-warn { color: var(--warn); } .t-bad { color: var(--bad); } .t-old { color: var(--dim); }
#tip { position: fixed; z-index: 300; max-width: 280px; background: #000; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: var(--r); padding: 8px 11px; font: 500 12.5px/1.4 var(--body); box-shadow: var(--shadow); pointer-events: none; opacity: 0; }
#tip.show { opacity: 1; }

/* ---------- sign in (only seen on a hosted copy) ---------- */
.auth { height: 100vh; display: grid; place-items: center; background: #000; color: #fff; }
.auth form { width: min(380px, 92vw); background: #1B1B1B; border-top: 3px solid var(--accent); border-radius: var(--rc); padding: 30px; display: grid; gap: 12px; }
.auth img { width: 200px; display: block; margin-bottom: 8px; }
.auth input { background: #000; border-color: rgba(255,255,255,.2); color: #fff; font-size: 16px; }
.auth .muted { color: #A6A6A6; }
.auth .err { color: var(--bad); min-height: 18px; font-size: 13px; }

/* ---------- shell: a rail that folds away, a bar on top of the page, the page ---------- */
.shell { height: 100vh; height: 100dvh; display: grid; grid-template-columns: 216px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; transition: grid-template-columns .22s cubic-bezier(.2,.8,.2,1); }
.shell.slim { grid-template-columns: 64px minmax(0, 1fr) !important; }
.rail, .stage { min-width: 0; min-height: 0; }
.rail { --text: #fff; --muted: #A6A6A6; --dim: #747474; --bg: #000; --panel-2: #1B1B1B; --line-2: rgba(255,255,255,.22); --line-3: rgba(255,255,255,.45); --hover: #151515; --accent-text: #6DCBFD;
  background: #000; color: #fff; border-right: 1px solid rgba(255,255,255,.1); padding: 16px 12px 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; }
.brand { height: 28px; display: flex; align-items: center; padding: 0 8px; margin-bottom: 8px; overflow: hidden; }
.wordmark { height: 20px; width: auto; display: block; flex: none; }
.nav { display: grid; gap: 2px; }
.nav button, .tabs button { position: relative; display: flex; align-items: center; gap: 12px; background: transparent; border: 0; border-radius: 6px; padding: 10px 11px; font-weight: 600; font-size: 13.5px; color: var(--muted); text-align: left; white-space: nowrap; transition: color .15s, background .15s; }
.nav button span { flex: 1; }
.nav button:hover { color: #fff; background: #131313; }
.nav button.on { color: #fff; background: #1D1D1D; }
.nav button.on .ic { color: #6DCBFD; }
.nav button b, .tabs button b { font-weight: 800; font-size: 10.5px; color: #0B0B0B; background: #6DCBFD; border-radius: 9px; padding: 1px 6px; font-variant-numeric: tabular-nums; }
.rail .lbl { margin: 10px 10px 0; }
.stagelist { display: grid; gap: 1px; min-height: 0; overflow-y: auto; }
.stagelist button { display: flex; align-items: center; gap: 10px; background: transparent; border: 0; border-radius: 6px; padding: 7px 11px; font-weight: 600; font-size: 12.5px; color: var(--muted); text-align: left; transition: color .15s, background .15s; }
.stagelist button:hover { color: #fff; background: #131313; }
.stagelist i { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.stagelist span { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stagelist b { font-weight: 700; font-size: 12px; color: #fff; font-variant-numeric: tabular-nums; }
.shell.slim .railhide { display: none; }
.citysel { padding: 7px 30px 7px 10px; font-size: 12.5px; font-weight: 600; border-radius: 6px; background-color: var(--bg); }
@keyframes flash { 0% { box-shadow: 0 0 0 2px var(--accent); } 100% { box-shadow: 0 0 0 2px transparent; } }
.bcol.flash { animation: flash 1.2s ease-out; }
.clockcard { display: grid; gap: 8px; padding: 12px; background: #141414; border-radius: var(--rc); }
.clockrow { display: flex; align-items: baseline; justify-content: space-between; } .clockrow b { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.clockcard .btn { padding: 9px; font-size: 11px; }
.seg { display: inline-flex; flex: none; border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; }
.seg button { background: transparent; border: 0; padding: 6px 10px; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid var(--line-2); }
.seg button:hover { color: var(--text); }
.seg button.on { background: var(--text); color: var(--bg); }
.seg.three { display: flex; } .seg.three button { flex: 1; padding: 6px 2px; font-size: 9px; letter-spacing: .04em; }
.clockcard.on .seg button.on { background: var(--ok); color: #04210D; }
.me { display: flex; align-items: center; gap: 10px; padding: 2px 2px 0 6px; }
.avatar { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #262626; color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 10.5px; letter-spacing: .04em; }
.avatar.sm { width: 22px; height: 22px; font-size: 9px; background: color-mix(in srgb, var(--accent) 22%, #1a1a1a); color: var(--accent); }
.avatar.lg { width: 40px; height: 40px; font-size: 14px; background: color-mix(in srgb, var(--accent) 22%, #1a1a1a); color: var(--accent); }
.myname { flex: 1; min-width: 0; font-weight: 600; font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me .fold { width: 28px; height: 28px; border-color: transparent; color: var(--muted); } .me .fold:hover { color: #fff; border-color: rgba(255,255,255,.3); }
/* folded: icons only */
.shell.slim .rail { padding: 16px 8px 12px; align-items: center; }
.shell.slim .brand { width: 40px; padding: 0; } .shell.slim .wordmark { height: 13px; }
.shell.slim .nav button { justify-content: center; padding: 11px; } .shell.slim .nav button span, .shell.slim .myname, .shell.slim .rail .tag, .shell.slim .clockcard .lbl, .shell.slim .clockcard .seg, .shell.slim .clockrow, .shell.slim .me .avatar { display: none; }
.shell.slim .nav button b { position: absolute; top: 3px; right: 2px; font-size: 9.5px; padding: 0 5px; }
.shell.slim .clockcard { padding: 0; background: none; } .shell.slim .clockcard .btn { padding: 9px 2px; font-size: 8.5px; letter-spacing: 0; }
.shell.slim .me { padding: 0; }
.tabs { display: none; }

.stage { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto minmax(0, 1fr); }
.topbar { display: flex; align-items: center; gap: 12px; height: 58px; padding: 0 20px; border-bottom: 1px solid var(--line); background: var(--panel); }
.topbar h1 { font-weight: 800; font-size: 18px; line-height: 1; margin: 0; }
.chip { font-weight: 700; font-size: 11.5px; color: var(--accent-text); background: color-mix(in srgb, var(--accent) 14%, transparent); border-radius: 999px; padding: 4px 10px; white-space: nowrap; }
.topbar .btn { padding: 9px 14px; font-size: 11px; }
.phoneclock { display: none; }
.find { position: relative; flex: 0 1 300px; min-width: 140px; }
.searchbox { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line-2); border-radius: 6px; padding: 0 10px; background: var(--bg); color: var(--dim); transition: border-color .15s; }
.searchbox:focus-within { border-color: var(--accent-text); }
.searchbox input { flex: 1; min-width: 0; border: 0 !important; background: transparent; padding: 8px 0; font-size: 13px; color: var(--text); }
.findpop { position: absolute; top: calc(100% + 8px); right: 0; width: 400px; max-width: 90vw; background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--rc); padding: 6px; z-index: 70; box-shadow: var(--shadow); animation: rise .18s cubic-bezier(.2,.8,.2,1); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; background: var(--dim); margin-right: 8px; } .dot.ok { background: var(--ok); } .dot.off { background: var(--bad); } .dot.test { background: var(--warn); }

/* a new lead nobody has opened: a bar across the top of every page. Open it, or X it away. */
.banner { display: flex; align-items: center; gap: 14px; padding: 0 12px 0 20px; height: 44px; background: var(--accent); color: #0B0B0B; cursor: pointer; white-space: nowrap; overflow: hidden; animation: drop .3s cubic-bezier(.2,.8,.2,1); }
.banner .big { font-weight: 900; font-size: 12.5px; letter-spacing: .1em; text-transform: uppercase; }
.banner .who { font-weight: 800; font-size: 15px; }
.banner .meta { font-weight: 600; font-size: 13px; opacity: .75; overflow: hidden; text-overflow: ellipsis; }
.banner .more { font-weight: 800; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; border: 1.5px solid currentColor; border-radius: var(--r); padding: 2px 8px; }
.banner .timer { margin-left: auto; display: flex; align-items: baseline; gap: 9px; font-weight: 900; font-size: 18px; line-height: 1; font-variant-numeric: tabular-nums; }
.banner .timer small { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.banner .btn { background: #0B0B0B; color: #fff; border-color: #0B0B0B; padding: 7px 13px; font-size: 11px; }
.banner .bx { display: grid; place-items: center; width: 30px; height: 30px; border: 0; border-radius: var(--r); background: transparent; color: inherit; opacity: .7; } .banner .bx:hover { opacity: 1; background: rgba(0,0,0,.14); }
@keyframes drop { from { transform: translateY(-100%); } }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes slidein { from { opacity: 0; transform: translateX(22px); } }
@keyframes drawer { from { transform: translateX(100%); } }
@keyframes fadein { from { opacity: 0; } }

/* ---------- the pages ---------- */
.main { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); min-height: 0; }
.col { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.scroll { overflow-y: auto; min-height: 0; flex: 1; }
.empty { padding: 26px 14px; color: var(--dim); text-align: center; font-size: 13px; }
.view { background: var(--bg); }
.view.enter .bcol, .view.enter .msgs, .view.enter .settings .card { animation: rise .32s cubic-bezier(.2,.8,.2,1) backwards; }
.view.enter .bcol:nth-child(2), .view.enter .card:nth-child(2) { animation-delay: .04s; } .view.enter .bcol:nth-child(3), .view.enter .card:nth-child(3) { animation-delay: .08s; } .view.enter .bcol:nth-child(n+4), .view.enter .card:nth-child(n+4) { animation-delay: .12s; }

/* Opportunities: every stage a column, cards you can drag */
.board { flex: 1; min-height: 0; display: flex; gap: 10px; overflow-x: auto; padding: 14px 20px 16px; }
.bcol { flex: 0 0 264px; min-height: 0; display: flex; flex-direction: column; border-radius: var(--rc); background: transparent; transition: background .15s; }
.bcol header { display: flex; align-items: center; gap: 8px; padding: 9px 8px 9px 12px; border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, var(--panel)); border-top: 2px solid var(--c); }
.bcol header div { flex: 1; min-width: 0; display: grid; gap: 2px; }
.bcol h2 { font-weight: 800; font-size: 13.5px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcol header span { font-size: 11.5px; color: var(--muted); }
.iconbtn.sm { width: 26px; height: 26px; border-color: transparent; color: var(--muted); } .iconbtn.sm:hover { color: var(--text); border-color: var(--line-2); }
.bcol .scroll { padding: 8px 0 4px; display: flex; flex-direction: column; gap: 8px; }
.bcol.over { background: color-mix(in srgb, var(--accent) 10%, transparent); outline: 1px dashed var(--accent); }
.bcol.fold { flex: 0 0 44px; align-items: center; gap: 10px; padding: 10px 0; border: 0; border-top: 2px solid var(--c); background: color-mix(in srgb, var(--c) 14%, var(--panel)); color: var(--text); cursor: pointer; }
.bcol.fold b { font-weight: 800; font-size: 12px; } .bcol.fold span { writing-mode: vertical-rl; font-weight: 700; font-size: 12px; white-space: nowrap; }
.bcard { background: var(--panel); border: 1px solid var(--line); border-radius: var(--rc); padding: 11px 12px 8px; display: grid; gap: 8px; cursor: pointer; transition: border-color .15s, transform .15s, box-shadow .15s; }
.bcard:hover { border-color: var(--line-3); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(0,0,0,.35); }
.bcard.sel { border-color: var(--accent); }
.bcard.drag { opacity: .45; }
.bcard header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 0; background: none; border: 0; }
.bcard header b { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard dl { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 4px 8px; margin: 0; font-size: 12.5px; }
.bcard dt { color: var(--dim); font-weight: 600; } .bcard dd { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bcard footer { display: flex; align-items: center; gap: 4px; border-top: 1px solid var(--line); padding-top: 6px; }
.cicon { display: grid; place-items: center; width: 28px; height: 26px; border: 0; border-radius: 5px; background: transparent; color: var(--muted); transition: background .12s, color .12s; }
.cicon:hover { background: var(--panel-2); color: var(--accent-text); }
.bcard .since { margin-left: auto; font-weight: 700; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; }

/* a row in a list of people */
.lrow { display: flex; align-items: center; gap: 11px; padding: 9px 10px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.lrow:hover { background: var(--panel-2); }
.lrow.sel { background: var(--sel); }
.lrow .who { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lrow .name { display: flex; align-items: baseline; gap: 10px; font-weight: 700; font-size: 13.5px; } .lrow .name span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lrow .name time { font-weight: 500; font-size: 12px; color: var(--dim); white-space: nowrap; }
.lrow { align-items: flex-start; } .lrow .who { gap: 6px; }
.lrow .snip { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lrow.unread .snip { color: var(--text); } .lrow.unread .avatar { box-shadow: 0 0 0 2px var(--accent); }
.lrow .wait { font-size: 11.5px; color: var(--dim); white-space: nowrap; }
/* Conversations: the list, then the open one */
.main[data-view="messages"] { grid-template-columns: 320px minmax(0, 1fr); }
.msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; border-right: 1px solid var(--line); background: var(--panel); }
.msgs .listhead { padding: 12px 12px 10px; display: grid; gap: 10px; } .msgs .listhead .seg { justify-self: start; }
.msgs .scroll { padding: 0 6px 10px; }
/* Settings */
.settings { padding: 16px 20px 24px; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 14px; align-content: start; }
.cardbody { padding: 4px 0 14px; }

/* ---------- the lead: a panel that slides in from the right, over the board ---------- */
.scrim { display: none; }
.main.open:not([data-view="messages"]) .scrim { display: block; position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.5); animation: fadein .2s ease; }
.lead { position: relative; background: var(--bg); overflow: hidden; container-type: inline-size; }
.main:not([data-view="messages"]) .lead { position: absolute; top: 0; right: 0; bottom: 0; width: min(1040px, 84%); z-index: 31; border-left: 1px solid var(--line-2); box-shadow: -24px 0 60px rgba(0,0,0,.5); }
.main:not([data-view="messages"]) .lead.enter { animation: drawer .28s cubic-bezier(.2,.8,.2,1); }
.lhead { border-bottom: 1px solid var(--line); background: var(--panel); }
.lh { display: flex; align-items: center; gap: 12px; padding: 12px 14px 10px 16px; min-width: 0; }
.actrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 0 16px 12px; }
.actrow .btn { padding: 9px 14px; font-size: 11px; text-decoration: none; }
.lhwho { flex: 1; min-width: 0; display: grid; gap: 2px; }
.lh h2 { font-weight: 800; font-size: 17px; line-height: 1.15; margin: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wants { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lh .btn { padding: 9px 14px; font-size: 11px; text-decoration: none; flex: none; }
.btn.solid { background: var(--text); color: var(--bg); border-color: var(--text); } .btn.solid:hover { background: var(--accent); border-color: var(--accent); color: #0B0B0B; }
.main[data-view="messages"] .lh .close { display: none; }
/* the stage: a dropdown like the one in GHL, and one button for the usual next step */
.stagerow { display: flex; align-items: center; gap: 10px; padding: 10px 16px; min-width: 0; border-top: 1px solid var(--line); background: var(--bg); }
.stsel { font-weight: 800; font-size: 13px; padding: 8px 32px 8px 12px; border-radius: 6px; border: 1px solid var(--c, var(--line-2)); background-color: color-mix(in srgb, var(--c, #888) 16%, var(--bg)); color: var(--text); min-width: 190px; }
.instage { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.stagerow .next { padding: 9px 14px; font-size: 11px; }

.lwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) 52px; }
.lbody { min-height: 0; min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(300px, 38%); }
.chat { min-height: 0; min-width: 0; display: flex; flex-direction: column; }
.side { min-height: 0; min-width: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line); background: var(--panel); }
.sechead { flex: none; padding: 12px 16px 0; }
/* the sections, down the right edge */
.secrail { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 0; border-left: 1px solid var(--line); background: var(--panel); }
.secrail button { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 8px; background: transparent; color: var(--muted); transition: background .15s, color .15s; }
.secrail button:hover { color: var(--text); background: var(--panel-2); }
.secrail button.on { color: #0B0B0B; background: var(--accent); }
.secrail button b { position: absolute; top: -2px; right: -2px; min-width: 16px; font-weight: 800; font-size: 9.5px; color: #fff; background: #3a3a3a; border-radius: 8px; padding: 0 4px; text-align: center; }
.secrail i { width: 22px; height: 1px; background: var(--line-2); margin: 6px 0; }
.pbody { display: none; flex: 1; min-height: 0; overflow-y: auto; padding: 12px 16px 16px; flex-direction: column; gap: 10px; }
.side[data-panel="notes"] #p-notes, .side[data-panel="details"] #p-details, .side[data-panel="rentals"] #p-rentals { display: flex; animation: rise .2s cubic-bezier(.2,.8,.2,1); }
.noteadd { display: grid; gap: 8px; } .noteadd textarea { width: 100%; resize: vertical; min-height: 64px; font-size: 13px; background: var(--panel); } .noteadd .btn { justify-self: end; padding: 7px 12px; }
/* notes read like the yellow ones in GHL */
.note { display: grid; gap: 6px; padding: 11px 12px; background: color-mix(in srgb, var(--warn) 13%, var(--panel)); border-radius: var(--rc); }
.note header { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; } .note .lbl { color: var(--warn); } .note time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.nbody { font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.nbody.clamp { display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.note .more { background: none; border: 0; padding: 0; justify-self: start; font-weight: 700; font-size: 11px; color: var(--accent-text); }
.card { background: var(--panel); border-radius: var(--rc); padding: 2px 14px; }
.cardhead { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 0 8px; }
.kvrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 9px 0; border-top: 1px solid var(--line); min-width: 0; }
.card > .kvrow:first-child { border-top: 0; }
.kvrow .lbl { font-size: 10px; display: flex; align-items: center; }
.kvrow b { font-weight: 700; font-size: 13px; text-align: right; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kvrow b.none { color: var(--dim); font-weight: 600; }
.kvrow a { font-weight: 700; font-size: 13px; color: var(--text); cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; } .kvrow a:hover { color: var(--accent-text); }
.kvrow select { padding: 3px 28px 3px 8px; font-weight: 700; font-size: 13px; background-color: transparent; }
.kvrow.tall { display: grid; gap: 3px; } .kvrow.tall b { text-align: left; white-space: normal; font-weight: 600; }
.card.res { font-size: 12.5px; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 2px 9px; }
.res b { font-weight: 800; } .res span { color: var(--muted); } .res .owed { color: var(--warn); } .res a { font-weight: 700; color: var(--accent-text); cursor: pointer; margin-left: auto; }
.links { display: flex; justify-content: flex-end; padding: 4px 4px 8px; }

.shimmer { height: 12px; border-radius: 3px; background: linear-gradient(90deg, var(--panel-2), var(--line-2), var(--panel-2)); background-size: 200% 100%; animation: sh 1.2s linear infinite; } @keyframes sh { to { background-position: -200% 0; } }
.timeline { flex: 1; min-height: 120px; overflow-y: auto; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; background: var(--bg); }
.day { align-self: center; font-family: var(--head); font-weight: 800; font-size: 10px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); margin: 6px 0 2px; }
.msg { max-width: 78%; display: grid; gap: 2px; } .msg.in { align-self: flex-start; } .msg.out { align-self: flex-end; }
.msg .bubble { padding: 8px 11px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; line-height: 1.4; background: var(--bubble-in); color: var(--bubble-in-text); }
.msg.out .bubble { background: var(--bubble-out); color: var(--bubble-out-text); } .msg.out.auto .bubble { background: var(--bubble-auto); color: var(--bubble-auto-text); }
.msg .foot { font-size: 10.5px; color: var(--dim); } .msg.out .foot { text-align: right; }
.msg .err { color: var(--bad); }
.msg img { max-width: 220px; border-radius: 8px; display: block; margin-top: 4px; }
.evt { align-self: center; font-size: 11.5px; color: var(--dim); text-align: center; max-width: 90%; }
.block { align-self: stretch; border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 9px 11px; display: grid; gap: 5px; }
.block .hd { display: flex; justify-content: space-between; gap: 8px; font-family: var(--head); font-weight: 800; font-size: 10.5px; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.block.note { border-left: 3px solid var(--warn); } .block.call { border-left: 3px solid var(--accent); } .block.email { border-left: 3px solid var(--email); }
.block .body { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; color: var(--text); opacity: .88; }
.block .body.clamp { display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden; }
.block .more { background: none; border: 0; color: var(--accent-text); padding: 0; font-size: 12px; justify-self: start; }
.block audio { width: 100%; height: 32px; }
/* ----- the thread, iMessage style ----- */
.timeline { gap: 0; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", system-ui, sans-serif; }
.timeline .day { margin: 12px 0 6px; font-family: inherit; font-weight: 400; font-size: 11px; letter-spacing: 0; text-transform: none; color: var(--dim); }
.timeline .day b { font-weight: 600; }
.timeline .block, .timeline .evt { margin: 6px 0; }
.im { --tail: var(--im-blue); --ink: #fff; max-width: 72%; display: flex; flex-direction: column; position: relative; margin-top: 2px; }
.im.first { margin-top: 9px; }
.im.in { --tail: var(--im-gray); --ink: var(--im-gray-text); align-self: flex-start; align-items: flex-start; }
.im.out { align-self: flex-end; align-items: flex-end; }
.im.out.sms { --tail: var(--im-green); }
.im.out.other { --tail: var(--bubble-out); --ink: var(--bubble-out-text); }
.im.in.other { --tail: var(--bubble-in); --ink: var(--bubble-in-text); }
.im .b { position: relative; background: var(--tail); color: var(--ink); padding: 7px 13px 8px; border-radius: 18px; font-size: 15px; line-height: 1.3; white-space: pre-wrap; overflow-wrap: anywhere; }
.im.out.auto .b { opacity: .78; }
/* the little tail on the last bubble of a run */
.im.last .b::before, .im.last .b::after { content: ""; position: absolute; bottom: 0; height: 18px; }
.im.last.out .b::before { right: -7px; width: 20px; background: var(--tail); border-bottom-left-radius: 16px 14px; z-index: 0; }
.im.last.out .b::after { right: -26px; width: 26px; background: var(--bg); border-bottom-left-radius: 10px; z-index: 1; }
.im.last.in .b::before { left: -7px; width: 20px; background: var(--tail); border-bottom-right-radius: 16px 14px; z-index: 0; }
.im.last.in .b::after { left: -26px; width: 26px; background: var(--bg); border-bottom-right-radius: 10px; z-index: 1; }
.im .pic { display: block; max-width: 260px; max-height: 320px; border-radius: 16px; margin-bottom: 2px; }
.im audio { width: 240px; height: 34px; }
.im .filechip { font-size: 13px; padding: 7px 12px; border-radius: 16px; background: var(--panel-2); border: 1px solid var(--line-2); color: var(--accent-text); text-decoration: none; }
.im .under { font-size: 11px; color: var(--dim); margin: 2px 4px 0; }
.im .under .bad { color: var(--bad); font-weight: 600; }
.im .rq { font-size: 12px; color: var(--muted); border: 1px solid var(--line-2); border-radius: 14px; padding: 4px 10px; margin-bottom: 3px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; opacity: .85; }
/* tapback badge sits on the far corner of the bubble, as in iMessage */
.tapb { position: absolute; top: -13px; z-index: 2; width: 26px; height: 26px; display: grid; place-items: center; font-size: 13px; border-radius: 50%; background: var(--panel-2); border: 2px solid var(--bg); box-shadow: 0 1px 3px rgba(0,0,0,.25); }
.im.out .tapb { left: -12px; } .im.in .tapb { right: -12px; }
.tapb.solo { position: static; }
.im:has(.tapb) { margin-top: 14px; }
/* hover actions: tapbacks and reply */
.im .acts { position: absolute; top: -30px; z-index: 5; display: none; gap: 1px; padding: 3px 5px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); box-shadow: var(--shadow); white-space: nowrap; }
.im.in .acts { left: 0; } .im.out .acts { right: 0; }
.im:hover .acts { display: flex; }
.im .acts button { border: 0; background: transparent; font-size: 15px; width: 28px; height: 26px; border-radius: 50%; padding: 0; color: var(--muted); }
.im .acts button:hover, .im .acts button.on { background: var(--panel-2); transform: scale(1.15); }
/* customer is typing */
.im.typing .b { display: flex; gap: 4px; padding: 11px 13px; }
.im.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); animation: dots 1.2s infinite ease-in-out; }
.im.typing i:nth-child(2) { animation-delay: .15s; } .im.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 0%, 60%, 100% { opacity: .35; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-2px); } }
/* the message box */
.imrow { display: flex; gap: 8px; align-items: flex-end; }
.plus { flex: none; width: 30px; height: 30px; border-radius: 50%; border: 0; background: var(--panel-2); color: var(--muted); font-size: 20px; line-height: 1; padding: 0 0 2px; }
.plus:hover { color: var(--text); }
.pill { flex: 1; display: flex; align-items: flex-end; gap: 6px; border: 1px solid var(--line-2); border-radius: 18px; padding: 2px 3px 2px 13px; background: var(--bg); }
.pill:focus-within { border-color: var(--line-3); }
.composer .pill textarea { flex: 1; width: auto; min-height: 24px; max-height: 160px; border: 0; background: transparent; padding: 4px 0; resize: none; font: 15px/1.3 -apple-system, BlinkMacSystemFont, "SF Pro Text", system-ui, sans-serif; }
.sendbtn { flex: none; width: 26px; height: 26px; margin-bottom: 1px; border-radius: 50%; border: 0; background: var(--im-blue); color: #fff; font-weight: 900; font-size: 15px; line-height: 1; padding: 0; }
.sendbtn.sms { background: var(--im-green); } .sendbtn.other { background: var(--bubble-out); }
.sendbtn:disabled { opacity: .4; }
.chipline { display: flex; align-items: center; gap: 8px; font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-radius: 12px; padding: 5px 8px 5px 12px; margin-bottom: 5px; }
.chipline span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .chipline b { color: var(--text); font-weight: 600; }
.chipline img { width: 34px; height: 34px; object-fit: cover; border-radius: 8px; }
.chipline button { border: 0; background: transparent; color: var(--dim); font-size: 12px; }
.composer .bar #fx { padding: 6px 8px; font-size: 12px; }

.composer { border-top: 1px solid var(--line); padding: 9px 14px 10px; display: grid; gap: 7px; background: var(--panel); flex: none; }
.sugg { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; }
.sugg button { flex: 0 0 auto; max-width: 260px; text-align: left; background: var(--sugg-bg); border: 1px solid var(--sugg-line); border-radius: var(--r); padding: 6px 9px; display: grid; gap: 2px; }
.sugg button:hover { border-color: var(--accent-text); }
.sugg button b { font-family: var(--head); font-weight: 800; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; color: var(--accent-text); }
.sugg button span { font-size: 12px; color: var(--sugg-text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.composer textarea { width: 100%; resize: none; min-height: 62px; max-height: 180px; font-size: 14px; }
.composer .bar { display: flex; gap: 8px; align-items: center; }
.composer .bar select { padding: 6px 8px; font-size: 12px; max-width: 190px; }
.composer .count { font-size: 11px; color: var(--dim); font-variant-numeric: tabular-nums; }
.composer .warn { font-size: 12px; color: var(--warn); }
.quote { position: absolute; left: 0; right: 0; bottom: 0; height: 92px; background: var(--quote-bg); border-top: 2px solid var(--accent); transition: height .38s cubic-bezier(.2,.8,.2,1); display: flex; flex-direction: column; z-index: 20; overflow: hidden; }
.quote.open { height: 100%; }
.qbar { display: grid; gap: 7px; padding: 9px 14px; height: 90px; flex: none; align-content: center; }
.qtop { display: flex; justify-content: space-between; align-items: center; }
.qin { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; overflow-x: auto; }
.qbar .ttl { font-family: var(--head); font-weight: 900; font-size: 13px; letter-spacing: .07em; text-transform: uppercase; color: var(--accent-text); white-space: nowrap; }
.qbar input[type=date] { padding: 5px 6px; font-size: 12.5px; width: 128px; } .qbar select { padding: 5px 4px; font-size: 12.5px; }
.qbar .arrow { color: var(--dim); }
.qbody { flex: 1; min-height: 0; overflow-y: auto; padding: 4px 14px 18px; display: grid; gap: 12px; align-content: start; }
.qnote { font-size: 12.5px; padding: 8px 10px; border: 1px solid color-mix(in srgb, var(--warn) 50%, transparent); color: var(--warn); border-radius: var(--r); }
.qnote.bad { color: var(--conf); border-color: var(--bad); }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.car { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.car:hover { border-color: var(--accent-text); } .car.booked { opacity: .82; } .car.booked:hover { opacity: 1; }
.car .ph { aspect-ratio: 16 / 10; background: var(--panel-2) center / cover no-repeat; position: relative; }
.car .ph .pill { position: absolute; left: 8px; top: 8px; font-family: var(--head); font-weight: 900; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: var(--ok); color: var(--ok-ink); }
.car.booked .ph .pill { background: var(--bad); color: #fff; }
.car.untracked { opacity: .7; } .car.untracked .ph .pill { background: #555; color: #fff; }
.car .in { padding: 9px 10px; display: grid; gap: 5px; flex: 1; align-content: start; }
.car .nm { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.car .pr { font-family: var(--head); font-weight: 900; font-size: 16px; } .car .pr small { font-family: var(--body); font-weight: 500; font-size: 11.5px; color: var(--muted); }
.car .conf { font-size: 11.5px; color: var(--conf); line-height: 1.35; } .car .conf b { color: var(--text); }
.car .hold { font-size: 11.5px; color: var(--warn); line-height: 1.35; } .car .hold b { color: var(--text); }
.car .copy { background: none; border: 0; border-top: 1px solid var(--line); padding: 7px 10px; font-size: 11.5px; color: var(--accent-text); text-align: left; }
.car .copy:hover { background: var(--hover); }
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.build .pic { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-2); }
.build h3 { font-family: var(--head); font-weight: 900; font-size: 18px; text-transform: uppercase; margin: 0 0 6px; }
.build label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.build .addons { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.build .addons label { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 13px; } .build .addons label span { margin-left: auto; color: var(--muted); }
.lines { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 4px; font-size: 13px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; } .lines .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 3px; font-family: var(--head); font-weight: 900; font-size: 17px; }
.stack { display: grid; gap: 10px; align-content: start; }
.linkbox { display: flex; gap: 8px; } .linkbox input { flex: 1; font-size: 12.5px; }
pre.req { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 11.5px; overflow: auto; max-height: 220px; margin: 0; }

/* dialogs + toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 100; }
.modal .box { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); width: min(560px, 92vw); max-height: 86vh; overflow-y: auto; padding: 20px; display: grid; gap: 12px; }
.modal h2 { font-family: var(--head); font-weight: 900; font-size: 18px; text-transform: uppercase; margin: 0; }
.modal table { width: 100%; border-collapse: collapse; font-size: 13px; } .modal td, .modal th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--r); font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; max-width: 80vw; }
#toast.show { opacity: 1; } #toast.bad { background: var(--bad); color: #fff; }


/* ---------- Nader's thread, composer, quote builder and dialogs, fitted to the look ---------- */
.timeline { padding: 14px 18px; gap: 0; }
.timeline .day { margin: 14px 0 8px; font-size: 11px; font-weight: 600; color: var(--dim); }
.im { max-width: 74%; } .im .b { font-size: 14.5px; line-height: 1.35; padding: 8px 13px; }
.im .under { font-size: 10.5px; }
/* calls, transcripts, notes and emails: one quiet line each, opened on tap */
.timeline .block, .timeline .evt { margin: 3px 0; }
.block { align-self: stretch; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; border: 0; border-left: 2px solid var(--line-3); border-radius: 0 6px 6px 0; background: transparent; padding: 6px 12px; transition: background .15s; }
.block:hover { background: var(--panel); }
.block.note { border-left-color: var(--warn); } .block.call { border-left-color: var(--accent); } .block.email { border-left-color: var(--email); }
.block .hd { display: flex; justify-content: space-between; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.block .body { font-size: 13px; line-height: 1.45; color: var(--muted); opacity: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.block .body.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.block .more { background: none; border: 0; padding: 0; justify-self: start; font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.link.play { color: var(--accent-text); justify-self: start; font-size: 10.5px; } .block audio { height: 32px; width: 100%; max-width: 420px; }
.composer { padding: 10px 18px 12px; background: var(--bg); gap: 6px; }
.composer .bar { gap: 10px; } .composer .warn { flex: 1; text-align: right; }
.composer .bar select { max-width: 260px; padding: 5px 9px; font-size: 12px; }
.composer .bar .btn { padding: 6px 10px; font-size: 10.5px; }
.composer .warn { color: var(--dim); font-size: 11.5px; }
.composer:not(.typing) #fx { display: none; }
.sugg button b { font-family: var(--body); font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.plus, .sendbtn { display: grid; place-items: center; }
.plus { width: 32px; height: 32px; padding: 0; }
.sendbtn { width: 28px; height: 28px; transition: transform .15s; } .sendbtn:hover { transform: scale(1.1); }
.ai { border: 0; border-radius: var(--rc); padding: 12px 14px; display: grid; gap: 8px; background: var(--ai-bg); flex: none; max-height: none; }
.ai.folded { padding: 9px 14px; }
.ai .ttl { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.ai .ttlbtns { display: flex; gap: 6px; }
.ai p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ai ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; } .ai ol li::marker { color: var(--accent-text); font-weight: 800; }
.ai .wait { color: var(--muted); font-size: 12.5px; }
/* the quote builder opens over the whole lead */
.quote { display: none; }
.quote.open { display: flex; flex-direction: column; position: absolute; inset: 0; height: auto; border: 0; background: var(--quote-bg); z-index: 20; overflow: hidden; animation: rise .24s cubic-bezier(.2,.8,.2,1); }
.qbar { height: auto; display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--panel); }
.qbar .ttl { font-family: var(--body); font-weight: 900; font-size: 16px; letter-spacing: -.01em; text-transform: uppercase; color: var(--text); }
.qwrap { flex: 1; min-height: 0; display: grid; grid-template-columns: 340px minmax(0, 1fr); }
.qside { overflow-y: auto; padding: 14px; display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; align-content: start; border-right: 1px solid var(--line); background: var(--panel); }
.qbody { padding: 14px 16px 20px; overflow-y: auto; }
.cal { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.calnav { display: flex; align-items: center; justify-content: space-between; gap: 8px; } .calnav .lbl { text-align: center; } .calnav .iconbtn { width: 30px; height: 30px; }
.months { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
.mname { font-weight: 800; font-size: 13px; margin-bottom: 6px; }
.dow, .days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dow span { text-align: center; font-weight: 700; font-size: 10px; color: var(--dim); padding: 2px 0; }
.days button { height: 30px; border: 0; border-radius: 4px; background: transparent; color: var(--text); font-weight: 600; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: background .12s, color .12s; }
.days button:hover:not(:disabled) { background: var(--panel-2); }
.days button.today { box-shadow: inset 0 0 0 1px var(--line-3); }
.days button.past { color: var(--dim); opacity: .45; cursor: default; }
.days button.in { background: color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 0; }
.days button.start, .days button.end { background: var(--accent); color: #0B0B0B; font-weight: 900; }
.qpick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; } .qpick b { font-size: 14px; } .qpick select { padding: 7px 8px; font-size: 13px; }
.qgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px, 1fr)); gap: 10px; }
.car { background: var(--panel); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.car:hover { border-color: var(--accent-text); } .car.booked { opacity: .82; } .car.booked:hover { opacity: 1; }
.car .ph { aspect-ratio: 16 / 10; background: var(--panel-2) center / cover no-repeat; position: relative; }
.car .ph .pill { position: absolute; left: 8px; top: 8px; font-family: var(--head); font-weight: 900; font-size: 9.5px; letter-spacing: .08em; text-transform: uppercase; padding: 3px 7px; border-radius: 3px; background: var(--ok); color: var(--ok-ink); }
.car.booked .ph .pill { background: var(--bad); color: #fff; }
.car.untracked { opacity: .7; } .car.untracked .ph .pill { background: #555; color: #fff; }
.car .in { padding: 9px 10px; display: grid; gap: 5px; flex: 1; align-content: start; }
.car .nm { font-weight: 800; font-size: 13.5px; line-height: 1.2; }
.car .pr { font-family: var(--head); font-weight: 900; font-size: 16px; } .car .pr small { font-family: var(--body); font-weight: 500; font-size: 11.5px; color: var(--muted); }
.car .conf { font-size: 11.5px; color: var(--conf); line-height: 1.35; } .car .conf b { color: var(--text); }
.car .hold { font-size: 11.5px; color: var(--warn); line-height: 1.35; } .car .hold b { color: var(--text); }
.car .copy { background: none; border: 0; border-top: 1px solid var(--line); padding: 7px 10px; font-size: 11.5px; color: var(--accent-text); text-align: left; }
.car .copy:hover { background: var(--hover); }
.build { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
.build .pic { border-radius: var(--r); width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--panel-2); }
.build h3 { font-family: var(--head); font-weight: 900; font-size: 18px; text-transform: uppercase; margin: 0 0 6px; }
.build label { display: grid; gap: 4px; font-size: 12px; color: var(--muted); }
.build .addons { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; border: 1px solid var(--line); border-radius: var(--r); padding: 8px; }
.build .addons label { display: flex; gap: 8px; align-items: center; color: var(--text); font-size: 13px; } .build .addons label span { margin-left: auto; color: var(--muted); }
.lines { border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 4px; font-size: 13px; }
.lines div { display: flex; justify-content: space-between; gap: 10px; } .lines .tot { border-top: 1px solid var(--line); padding-top: 6px; margin-top: 3px; font-family: var(--head); font-weight: 900; font-size: 17px; }
.stack { display: grid; gap: 10px; align-content: start; }
.linkbox { display: flex; gap: 8px; } .linkbox input { flex: 1; font-size: 12.5px; }
pre.req { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; font-size: 11.5px; overflow: auto; max-height: 220px; margin: 0; }

/* dialogs + toast */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.55); display: grid; place-items: center; z-index: 100; }
.modal .box { background: var(--panel); border: 1px solid var(--line-2); border-radius: var(--r); width: min(560px, 92vw); max-height: 86vh; overflow-y: auto; padding: 20px; display: grid; gap: 12px; }
.modal h2 { font-family: var(--head); font-weight: 900; font-size: 18px; text-transform: uppercase; margin: 0; }
.modal table { width: 100%; border-collapse: collapse; font-size: 13px; } .modal td, .modal th { text-align: left; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.modal .grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--text); color: var(--bg); padding: 9px 16px; border-radius: var(--r); font-weight: 700; font-size: 13px; opacity: 0; pointer-events: none; transition: opacity .2s; z-index: 200; max-width: 80vw; }
#toast.show { opacity: 1; } #toast.bad { background: var(--bad); color: #fff; }


/* ---------- Nader's thread, composer, quote builder and dialogs, fitted to the look ---------- */
.timeline { padding: 14px 18px; gap: 0; }
.timeline .day { margin: 14px 0 8px; font-size: 11px; font-weight: 600; color: var(--dim); }
.im { max-width: 74%; } .im .b { font-size: 14.5px; line-height: 1.35; padding: 8px 13px; }
.im .under { font-size: 10.5px; }
/* calls, transcripts, notes and emails: one quiet line each, opened on tap */
.timeline .block, .timeline .evt { margin: 3px 0; }
.block { align-self: stretch; max-width: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; border: 0; border-left: 2px solid var(--line-3); border-radius: 0 6px 6px 0; background: transparent; padding: 6px 12px; transition: background .15s; }
.block:hover { background: var(--panel); }
.block.note { border-left-color: var(--warn); } .block.call { border-left-color: var(--accent); } .block.email { border-left-color: var(--email); }
.block .hd { display: flex; justify-content: space-between; gap: 10px; font-family: var(--body); font-weight: 700; font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.block .body { font-size: 13px; line-height: 1.45; color: var(--muted); opacity: 1; white-space: pre-wrap; overflow-wrap: anywhere; }
.block .body.clamp { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; white-space: normal; }
.block .more { background: none; border: 0; padding: 0; justify-self: start; font-weight: 700; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-text); }
.link.play { color: var(--accent-text); justify-self: start; font-size: 10.5px; } .block audio { height: 32px; width: 100%; max-width: 420px; }
.composer { padding: 10px 18px 12px; background: var(--bg); gap: 6px; }
.composer .bar { gap: 10px; } .composer .warn { flex: 1; text-align: right; }
.composer .bar select { max-width: 260px; padding: 5px 9px; font-size: 12px; }
.composer .bar .btn { padding: 6px 10px; font-size: 10.5px; }
.composer .warn { color: var(--dim); font-size: 11.5px; }
.composer:not(.typing) #fx { display: none; }
.sugg button b { font-family: var(--body); font-weight: 800; font-size: 10px; letter-spacing: .12em; text-transform: uppercase; }
.plus, .sendbtn { display: grid; place-items: center; }
.plus { width: 32px; height: 32px; padding: 0; }
.sendbtn { width: 28px; height: 28px; transition: transform .15s; } .sendbtn:hover { transform: scale(1.1); }
.ai { border: 0; border-radius: var(--rc); padding: 12px 14px; display: grid; gap: 8px; background: var(--ai-bg); flex: none; max-height: none; }
.ai.folded { padding: 9px 14px; }
.ai .ttl { display: flex; justify-content: space-between; align-items: center; font-weight: 800; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--accent-text); }
.ai .ttlbtns { display: flex; gap: 6px; }
.ai p { margin: 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.ai ol { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 13px; } .ai ol li::marker { color: var(--accent-text); font-weight: 800; }
.ai .wait { color: var(--muted); font-size: 12.5px; }
/* the quote builder opens over the whole lead */
.quote { display: none; }
.quote.open { display: flex; flex-direction: column; position: absolute; inset: 0; height: auto; border: 0; background: var(--quote-bg); z-index: 20; overflow: hidden; animation: rise .24s cubic-bezier(.2,.8,.2,1); }
.qbar { height: auto; padding: 16px 20px 14px; gap: 12px; border-bottom: 1px solid var(--line); background: var(--panel); }
.qbar .ttl { font-family: var(--body); font-weight: 900; font-size: 18px; letter-spacing: -.01em; text-transform: uppercase; color: var(--text); }
.qin { flex-wrap: wrap; overflow: visible; max-width: 720px; gap: 8px; }
.qbar input[type=date] { flex: 1 1 130px; width: auto; min-width: 0; padding: 8px 10px; font-size: 13px; } .qbar select { padding: 8px 8px; font-size: 13px; }
.qbody { padding: 16px 20px 22px; }
.qgrid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.car { border: 0; border-radius: var(--rc); background: var(--panel); transition: transform .18s, outline-color .18s; outline: 1px solid transparent; }
.car:hover { outline-color: var(--accent); transform: translateY(-2px); }
.car .ph .pill { font-family: var(--body); font-weight: 800; font-size: 10px; letter-spacing: .1em; }
.car .nm { font-weight: 800; font-size: 13.5px; }
.car .pr, .lines .tot { font-family: var(--body); font-weight: 900; }
.car .copy { font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; padding: 9px 10px; }
.build h3 { font-weight: 900; font-size: 20px; text-transform: uppercase; }
.build .pic { border-radius: var(--rc); }
.modal { animation: fade .18s ease; } @keyframes fade { from { opacity: 0; } }
.modal .box { border: 0; border-top: 3px solid var(--accent); border-radius: var(--rc); padding: 24px; background: var(--panel); animation: rise .24s cubic-bezier(.2,.8,.2,1); }
.modal h2 { font-weight: 900; font-size: 20px; text-transform: uppercase; }
.modal.drawer { place-items: stretch end; }
.modal.drawer .box { width: min(460px, 100vw); max-height: none; height: 100%; border-radius: 0; border-top: 0; border-left: 3px solid var(--accent); padding: 24px; align-content: start; gap: 18px; animation: slidein .28s cubic-bezier(.2,.8,.2,1); }
.drawhead { display: flex; align-items: center; justify-content: space-between; }
.field { display: grid; gap: 6px; } .field input, .field textarea { width: 100%; padding: 10px 11px; font-size: 14px; }
.choices { display: flex; flex-wrap: wrap; gap: 6px; }
.choices label { cursor: pointer; } .choices input { position: absolute; opacity: 0; pointer-events: none; }
.choices span { display: block; border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 12px; font-weight: 700; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; transition: background .15s, color .15s; }
.choices input:checked + span { background: var(--text); color: var(--bg); border-color: var(--text); } .choices input:focus-visible + span { outline: 2px solid var(--accent); }
.modal .err { color: var(--bad); min-height: 16px; font-size: 13px; }
.modal .btn.wide { padding: 13px; }
#toast { font-weight: 700; font-size: 13px; padding: 10px 16px; transform: translate(-50%, 12px); transition: opacity .2s, transform .25s cubic-bezier(.2,.8,.2,1); }
#toast.show { transform: translate(-50%, 0); }
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 12px; }
#toast button { background: transparent; border: 1px solid currentColor; border-radius: var(--r); color: inherit; font-weight: 800; font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; padding: 4px 9px; }
.btn, .iconbtn { transition: background .15s, color .15s, border-color .15s, transform .12s; } .btn:active, .iconbtn:active, .step:active { transform: scale(.97); }

/* ---------- the call list: New Lead, then Call Now, one line per lead with the facts in columns ---------- */
.calllist { flex: 1; min-height: 0; padding: 8px 24px 28px; }
.fchip { display: inline-block; font-weight: 700; font-size: 12px; color: var(--text); background: color-mix(in srgb, var(--c) 22%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.callbtn { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--accent); color: #0B0B0B; flex: none; transition: transform .15s, background .15s; }
.callbtn:hover { transform: scale(1.08); background: #fff; }
/* the same small tags wherever a customer shows up */
.tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.stag, .ctag, .srctag { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 11.5px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.stag { color: var(--text); background: color-mix(in srgb, var(--c) 20%, transparent); border: 1px solid color-mix(in srgb, var(--c) 55%, transparent); } .stag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.ctag { color: #0B0B0B; background: #A6A6A6; } .ctag.c-imessage { background: #0A84FF; color: #fff; } .ctag.c-sms { background: #30D158; } .ctag.c-instagram { background: #E1306C; color: #fff; } .ctag.c-tiktok { background: #fff; } .ctag.c-facebook { background: #1877F2; color: #fff; } .ctag.c-whatsapp { background: #25D366; } .ctag.c-email { background: #b48cff; } .ctag.c-google { background: #FBBC05; } .ctag.c-rcs { background: #30D158; } .ctag.c-chat { background: #A6A6A6; } .ctag.c-call { background: #6DCBFD; }
.srctag { color: var(--muted); border: 1px solid var(--line-2); font-weight: 600; }

/* ---------- a lead takes the whole screen ---------- */
.main.open:not([data-view="messages"]) .view { display: none; }
.main.open:not([data-view="messages"]) .scrim { display: none; }
.main:not([data-view="messages"]) .lead { position: static; width: auto; border: 0; box-shadow: none; }
.main:not([data-view="messages"]) .lead.enter { animation: slidein .26s cubic-bezier(.2,.8,.2,1); }
.lh .back { padding: 9px 14px; font-size: 12px; } .main[data-view="messages"] .lh .back { display: none; }
.lbody { grid-template-columns: minmax(0, 1fr) minmax(340px, 34%); }

/* ---------- roomier everywhere: bigger type, more air ---------- */
body { font-size: 15px; }
.shell { grid-template-columns: 236px minmax(0, 1fr); }
.rail { padding: 20px 14px 14px; gap: 14px; } .wordmark { height: 22px; }
.nav button { padding: 12px 12px; font-size: 15px; } .stagelist button { padding: 8px 12px; font-size: 13.5px; } .stagelist b { font-size: 13px; }
.clockcard { padding: 14px; gap: 10px; } .clockcard .btn { padding: 11px; font-size: 12px; } .myname { font-size: 13.5px; }
.topbar { height: 68px; padding: 0 24px; gap: 14px; } .topbar h1 { font-size: 22px; } .chip { font-size: 13px; padding: 5px 12px; }
.topbar .btn { padding: 11px 16px; font-size: 12px; } .searchbox input { padding: 10px 0; font-size: 14.5px; } .citysel { padding: 9px 30px 9px 12px; font-size: 14px; }
.banner { height: 50px; padding: 0 14px 0 24px; } .banner .who { font-size: 16.5px; } .banner .meta { font-size: 14px; } .banner .timer { font-size: 20px; }
.lbl { font-size: 11.5px; }
.lh { padding: 18px 24px 12px; gap: 16px; } .lhwho { gap: 8px; } .lh .tags .stag, .lh .tags .ctag, .lh .tags .srctag { font-size: 12.5px; padding: 3px 11px; } .lh h2 { font-size: 24px; } .wants { font-size: 14.5px; } .avatar.lg { width: 48px; height: 48px; font-size: 16px; }
.actrow { padding: 0 24px 16px; gap: 10px; } .actrow .btn { padding: 12px 18px; font-size: 12.5px; }
.stagerow { padding: 14px 24px; gap: 14px; } .stsel { font-size: 15px; padding: 10px 36px 10px 14px; min-width: 230px; } .stagerow .next { padding: 12px 18px; font-size: 12.5px; } .instage { font-size: 14px; }
.timeline { padding: 20px 28px; } .im { max-width: 70%; } .im .b { font-size: 16px; line-height: 1.4; padding: 10px 15px; } .timeline .day { font-size: 12.5px; margin: 18px 0 10px; }
.timeline .block, .timeline .evt { margin: 6px 0; } .block { padding: 9px 14px; } .block .hd { font-size: 11.5px; } .block .body { font-size: 14px; }
.composer { padding: 14px 28px 16px; gap: 8px; } .composer .pill textarea { font-size: 16px; } .plus { width: 38px; height: 38px; } .sendbtn { width: 32px; height: 32px; } .composer .bar select { font-size: 13.5px; padding: 7px 30px 7px 10px; }
.lwrap { grid-template-columns: minmax(0, 1fr) 60px; } .secrail button { width: 44px; height: 44px; } .secrail { gap: 6px; padding: 14px 0; }
.sechead { padding: 18px 20px 0; } .pbody { padding: 14px 20px 20px; gap: 12px; }
.noteadd textarea { font-size: 14.5px; min-height: 76px; padding: 11px 12px; } .noteadd .btn { padding: 9px 14px; font-size: 12px; }
.note { padding: 14px 16px; gap: 8px; } .nbody { font-size: 14.5px; line-height: 1.55; } .note time { font-size: 12px; }
.card { padding: 4px 18px; } .kvrow { padding: 12px 0; } .kvrow .lbl { font-size: 11px; } .kvrow b, .kvrow a, .kvrow select { font-size: 14.5px; } .card.res { font-size: 14px; padding: 13px 18px; }
.board { padding: 18px 24px 20px; gap: 12px; } .bcol { flex-basis: 290px; } .bcol h2 { font-size: 15px; } .bcol header { padding: 11px 10px 11px 14px; } .bcol header span { font-size: 12.5px; }
.bcard { padding: 13px 14px 9px; gap: 9px; } .bcard header b { font-size: 15px; } .bcard dl { font-size: 13.5px; gap: 5px 8px; }
.main[data-view="messages"] { grid-template-columns: 360px minmax(0, 1fr); } .lrow { padding: 12px 12px; gap: 13px; } .lrow .name { font-size: 15px; } .lrow .snip { font-size: 13.5px; } .lrow .avatar { width: 36px; height: 36px; font-size: 12px; }
.seg button { padding: 8px 12px; font-size: 11.5px; } .settings { padding: 20px 24px; gap: 16px; }

/* ---------- screen sizes ---------- */
@media (min-width: 1500px) { .bcol { flex-basis: 300px; } .main[data-view="messages"] { grid-template-columns: 420px minmax(0, 1fr); } .lbody { grid-template-columns: minmax(0, 1fr) minmax(420px, 30%); } }

@media (max-width: 1080px) { .lbody { grid-template-columns: minmax(0, 1fr) minmax(260px, 42%); } .main[data-view="messages"] { grid-template-columns: 260px minmax(0, 1fr); } .qwrap { grid-template-columns: 320px minmax(0, 1fr); } }
@media (max-width: 900px) {
  .shell, .shell.slim { grid-template-columns: minmax(0, 1fr); } .calllist { display: block; overflow-y: auto; padding: 12px; } .ccol { margin-bottom: 14px; } .ccol .scroll { overflow: visible; } .crow { gap: 12px; padding: 12px 8px; } .crow .avatar.lg { display: none; } .lh { padding: 12px 12px 8px; } .lh h2 { font-size: 20px; } .actrow, .stagerow { padding-left: 12px; padding-right: 12px; } .timeline { padding: 12px; } .composer { padding: 10px 12px 12px; } .topbar { padding: 8px 12px; height: auto; } .rail { display: none; }
  .tabs { display: flex; background: #000; border-top: 1px solid rgba(255,255,255,.14); padding: 4px 6px calc(4px + env(safe-area-inset-bottom)); }
  .tabs button { flex: 1; flex-direction: column; align-items: center; gap: 3px; padding: 7px 2px; font-size: 10px; } .tabs button.on { color: #fff; box-shadow: inset 0 2px 0 #6DCBFD; } .tabs button b { position: absolute; top: 2px; left: 54%; font-size: 9.5px; }
  .topbar { height: auto; min-height: 52px; padding: 8px 12px; gap: 8px; flex-wrap: wrap; } .topbar > .spacer { flex: 1; } .phoneclock { display: inline-flex; } .find { order: 9; flex: 1 1 100%; } .findpop { width: 100%; }
  .shell:has(.main.open) #banner, .shell:has(.main.open) .tabs, .shell:has(.main.open) .topbar { display: none; }
  .shell:has(.main.open) .stage { grid-template-rows: minmax(0, 1fr); }
  .banner { padding: 0 6px 0 12px; gap: 10px; } .banner .who { overflow: hidden; text-overflow: ellipsis; flex: 1; } .banner .meta, .banner .more, .banner .timer small, .banner .btn { display: none; }
  .board { padding: 10px; gap: 10px; } .bcol { flex-basis: 82vw; } .settings { padding: 10px; grid-template-columns: minmax(0, 1fr); }
  .main[data-view="messages"] { grid-template-columns: minmax(0, 1fr); } .main[data-view="messages"].open .view { display: none; } .msgs { border: 0; }
  .main:not([data-view="messages"]) .lead, .main .lead { position: absolute; inset: 0; width: auto; border: 0; z-index: 31; } .main[data-view="messages"] .lh .close { display: none; }
  .lh { gap: 10px; padding: 10px 12px 8px; } .lh .avatar.lg { display: none; } .lh .close { display: none; }
  .actrow { padding: 0 12px 10px; } .actrow .btn { flex: 1; padding: 11px 8px; } .actrow .btn.solid { flex: 1 1 100%; padding: 12px; }
  .stagerow { flex-wrap: wrap; padding: 10px 12px; } .stagerow > .lbl { display: none; } .stsel { flex: 1; } .stagerow .next { flex: 1 1 100%; padding: 12px; } .instage { display: none; }
  .lbody { grid-template-columns: minmax(0, 1fr); } .lbody[data-pane="chat"] .side { display: none; } .lbody:not([data-pane="chat"]) .chat { display: none; } .side { border-left: 0; }
  .lwrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; } .secrail { flex-direction: row; justify-content: space-around; border-left: 0; border-top: 1px solid var(--line); padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); } .secrail i { display: none; }
  .timeline { padding: 10px 12px; } .im { max-width: 84%; } .composer { padding: 8px 12px 10px; } .composer .bar { flex-wrap: wrap; } .build { grid-template-columns: 1fr; }
  .qwrap { grid-template-columns: minmax(0, 1fr); overflow-y: auto; } .qside { border-right: 0; overflow: visible; } .qbody { overflow: visible; }
  .modal.drawer .box { width: 100vw; }
  input[type=text], input[type=email], input[type=password], input[type=date], input[type=number], select, textarea, .composer .pill textarea, .searchbox input { font-size: 16px; }
}
@media (min-width: 901px) { .onlyphone { display: none !important; } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* =====================================================================
   The day at a glance, designed lead rows, a full right side on every lead, and a rail that moves.
   ===================================================================== */
:root { --lift: inset 0 1px 0 rgba(255,255,255,.05), 0 1px 2px rgba(0,0,0,.5), 0 10px 26px -14px rgba(0,0,0,.7); --ease: cubic-bezier(.2,.8,.2,1); }
[data-theme="light"], [data-theme="warm"] { --lift: 0 1px 2px rgba(0,0,0,.08), 0 10px 24px -16px rgba(0,0,0,.25); }
@keyframes grow { from { width: 0; } }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); } 100% { box-shadow: 0 0 0 9px transparent; } }
@keyframes blink { 50% { opacity: .25; } }
.btn { transition: transform .12s var(--ease), background .15s, border-color .15s, color .15s; } .btn:active { transform: scale(.97); }
.topbar { position: relative; z-index: 5; box-shadow: 0 10px 24px -18px rgba(0,0,0,.9); }

/* ---------- the rail ---------- */
.rail { gap: 14px; }
.nav { position: relative; gap: 4px; }
.navpill { position: absolute; left: 0; right: 0; top: 0; height: 42px; border-radius: 10px; background: #1A1A1A; box-shadow: inset 0 1px 0 rgba(255,255,255,.08), inset 3px 0 0 #6DCBFD, 0 8px 20px -12px rgba(109,203,253,.45); transition: transform .42s cubic-bezier(.3,1.25,.5,1); pointer-events: none; }
.nav button { z-index: 1; border-radius: 10px; padding: 11px 13px; font-size: 14px; }
.nav button.on, .nav button.on:hover { background: transparent; }
.nav button:hover { background: rgba(255,255,255,.045); }
.nav button .ic { transition: transform .25s var(--ease), color .2s; } .nav button:hover .ic { transform: translateX(2px) scale(1.08); }
.stagelist { gap: 2px; }
.stagelist button { position: relative; overflow: hidden; }
.stagelist button em { position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); background: color-mix(in srgb, var(--c) 17%, transparent); border-radius: 6px; transition: background .2s; }
.stagelist button > :not(em) { position: relative; z-index: 1; }
.stagelist button i { background: var(--c); }
.stagelist button:hover { background: transparent; } .stagelist button:hover em { background: color-mix(in srgb, var(--c) 32%, transparent); }
.stagelist button span { transition: transform .2s var(--ease); } .stagelist button:hover span { transform: translateX(2px); }
#rail.in .stagelist em { animation: grow .8s var(--ease) backwards; }
/* the clock: one state, one time, two quiet buttons */
.clk { display: grid; gap: 11px; padding: 13px 12px 11px; border-radius: 12px; background: #101010; border: 1px solid rgba(255,255,255,.08); box-shadow: inset 0 1px 0 rgba(255,255,255,.05); }
.clktop { display: flex; align-items: center; gap: 9px; min-height: 22px; }
.clkdot { width: 8px; height: 8px; border-radius: 50%; background: #555; flex: none; }
.clk.on .clkdot { background: var(--ok); animation: pulse 2.2s ease-out infinite; } .clk.break .clkdot { background: var(--warn); }
.clkstate { flex: 1; font-weight: 700; font-size: 13px; color: #fff; white-space: nowrap; } .clk.off .clkstate { color: #A6A6A6; }
.clktime { font-weight: 800; font-size: 19px; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; color: #fff; }
.clktime i { font-style: normal; margin: 0 1px; animation: blink 1.2s steps(2, jump-none) infinite; }
.clk.break .clktime { color: #A6A6A6; } .clk.break .clktime i { animation: none; }
.clkbtns { display: flex; gap: 6px; }
.clkbtns button { flex: 1; background: transparent; border: 1px solid rgba(255,255,255,.14); border-radius: 8px; padding: 7px 4px; font-weight: 700; font-size: 11.5px; color: #A6A6A6; white-space: nowrap; transition: color .15s, border-color .15s, background .15s; }
.clkbtns button:hover { color: #fff; border-color: rgba(255,255,255,.4); background: rgba(255,255,255,.05); }
.clk.break .clkbtns button:first-child { color: #0B0B0B; background: var(--warn); border-color: var(--warn); }
.clk .btn.wide { padding: 10px; font-size: 11.5px; }
.clkmini { display: none; }
.shell.slim .clk { padding: 0; border: 0; background: none; box-shadow: none; } .shell.slim .clk > :not(.clkmini) { display: none; }
.shell.slim .clkmini { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,.14); background: transparent; color: #A6A6A6; }
.shell.slim .clk.on .clkmini { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 50%, transparent); } .shell.slim .clk.break .clkmini { color: var(--warn); }

/* ---------- home: where the day stands ---------- */
.daystrip { flex: none; display: grid; grid-template-columns: minmax(260px, 1fr) auto auto; gap: 12px; padding: 18px 24px 6px; }
.daystrip > div { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--lift); }
.view.enter .daystrip > div { animation: rise .4s var(--ease) backwards; } .view.enter .daystrip > div:nth-child(2) { animation-delay: .05s; } .view.enter .daystrip > div:nth-child(3) { animation-delay: .1s; }
.dnow { display: grid; gap: 10px; align-content: center; padding: 14px 18px; }
.dhead { display: flex; align-items: baseline; gap: 10px; } .dhead h2 { margin: 0; font-weight: 800; font-size: 17px; } .dhead span { font-size: 13px; color: var(--muted); white-space: nowrap; }
.dbar { height: 8px; border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.dbar i { display: block; height: 100%; width: var(--w); background: var(--accent); border-radius: 6px; } .view.enter .dbar i { animation: grow 1s var(--ease) backwards .15s; }
.dcap { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); white-space: nowrap; } .dcap b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; margin-right: 3px; }
.dgroup { display: flex; align-items: stretch; overflow: hidden; }
.dgl { writing-mode: vertical-rl; transform: rotate(180deg); display: grid; place-items: center; padding: 0 6px; font-weight: 800; font-size: 10px; letter-spacing: .18em; text-transform: uppercase; color: #0B0B0B; background: var(--accent); }
.dgroup.out .dgl { background: var(--text); color: var(--bg); }
.dtile { display: grid; gap: 6px; align-content: center; padding: 12px 22px; min-width: 100px; border-left: 1px solid var(--line-soft); } .dgl + .dtile { border-left: 0; }
.dtile .lbl { margin: 0; white-space: nowrap; }
.dtile b { font-weight: 800; font-size: 28px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.dtile.good b { color: var(--ok); }

/* ---------- home: the two lists, one designed row per lead ---------- */
.calllist { padding: 4px 24px 28px; }
.lsec { margin-top: 18px; display: grid; gap: 8px; }
.lsec > header { display: flex; align-items: center; gap: 10px; padding: 0 4px 2px; }
.lsec > header i { width: 10px; height: 10px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.lsec h2 { font-weight: 800; font-size: 17px; margin: 0; }
.lsec > header b { font-weight: 700; font-size: 12.5px; color: var(--muted); background: var(--panel-2); border-radius: 999px; padding: 2px 9px; font-variant-numeric: tabular-nums; }
.lcard { display: grid; grid-template-columns: 44px minmax(190px, 1.15fr) minmax(170px, 1fr) minmax(220px, 1.35fr) 104px minmax(44px, auto); align-items: center; gap: 0 18px; padding: 13px 16px 13px 14px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--lift); cursor: pointer; transition: transform .18s var(--ease), border-color .18s, background .18s, box-shadow .18s; }
.lcard:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--c) 45%, var(--line-2)); background: var(--hover); box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 16px 30px -16px rgba(0,0,0,.85); }
.lcard:active { transform: translateY(0); } .lcard.sel { border-color: var(--accent); }
.view.enter .lcard { animation: rise .36s var(--ease) backwards; animation-delay: calc(var(--i) * 26ms); }
.avatar.ring { width: 42px; height: 42px; font-size: 13.5px; background: color-mix(in srgb, var(--c) 16%, #171717); color: var(--text); box-shadow: 0 0 0 2px var(--panel), 0 0 0 3.5px color-mix(in srgb, var(--c) 70%, transparent); transition: box-shadow .18s; }
.lcard:hover .avatar.ring { box-shadow: 0 0 0 2px var(--hover), 0 0 0 3.5px var(--c); }
.lwho, .lwant, .llast { min-width: 0; display: grid; gap: 6px; }
.lwho > b { font-weight: 700; font-size: 16px; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lmeta { display: flex; align-items: center; gap: 10px; min-width: 0; overflow: hidden; white-space: nowrap; }
.fact { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; color: var(--muted); min-width: 0; } .fact .ic { flex: none; color: var(--dim); } .fact span { overflow: hidden; text-overflow: ellipsis; }
.lwant > b { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 14.5px; min-width: 0; } .lwant > b .ic { flex: none; color: var(--muted); } .lwant > b span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lwant .none { font-size: 13.5px; color: var(--dim); }
.qpill { font-weight: 700; font-size: 12px; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); background: color-mix(in srgb, var(--ok) 10%, transparent); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.lmsg { display: flex; align-items: center; gap: 8px; min-width: 0; justify-self: start; max-width: 100%; background: var(--panel-2); border-radius: 13px 13px 13px 4px; padding: 5px 12px 5px 5px; }
.lmsg > span:last-child { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nocall { justify-self: start; font-weight: 700; font-size: 12.5px; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 999px; padding: 4px 11px; white-space: nowrap; }
.lwait { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; } .lwait .ic { color: var(--dim); }
.lwait.hot, .lwait.hot .ic { color: var(--bad); }
.lcard .callbtn { width: 42px; height: 42px; } .callbtn.none { background: var(--panel-2); color: var(--dim); }
.lcard .fchip { font-size: 11.5px; padding: 2px 9px; flex: none; }

/* ---------- a lead: the conversation, and the whole right side for who they are, their stage and the notes ---------- */
.lbody { flex: 1; min-height: 0; display: grid; grid-template-columns: minmax(0, 1fr) clamp(380px, 31%, 500px); }
.lbody .chat { background: var(--bg); }
.chatbar { flex: none; display: flex; align-items: center; gap: 14px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.chatbar .back { padding: 8px 13px; font-size: 11.5px; }
.cbwho { display: inline-flex; align-items: center; gap: 10px; min-width: 0; } .cbwho b { font-weight: 700; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main[data-view="messages"] .chatbar { display: none; }
.side { border-left: 1px solid var(--line); background: var(--panel); box-shadow: -20px 0 40px -26px rgba(0,0,0,.8); position: relative; z-index: 1; }
.lead.enter .side { animation: slidein .34s var(--ease); } .main[data-view="messages"] .lead.enter .chat { animation: fadein .3s ease; }
.ihead { flex: none; display: grid; gap: 14px; padding: 20px 20px 16px; }
.iname { display: flex; align-items: center; gap: 14px; min-width: 0; }
.inm { min-width: 0; display: grid; gap: 3px; } .inm h2 { margin: 0; font-weight: 800; font-size: 21px; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.iphone { font-size: 13.5px; color: var(--muted); cursor: pointer; font-variant-numeric: tabular-nums; } .iphone:hover { color: var(--text); }
.ihead .tags .srctag, .ihead .tags .ctag { font-size: 12px; padding: 3px 10px; }
.iact { display: grid; grid-template-columns: 1.25fr 1fr 1fr; gap: 8px; }
.iact .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 11px 6px; font-size: 11.5px; text-decoration: none; } .iact .claim { grid-column: 1 / -1; } .iact .tag { align-self: center; justify-self: start; }
.istage { display: grid; gap: 9px; padding: 14px; border-radius: 12px; background: var(--bg); border: 1px solid color-mix(in srgb, var(--c, #888) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--c, var(--line-2)); }
.isthead { display: flex; align-items: center; justify-content: space-between; gap: 10px; } .isthead .lbl { margin: 0; }
.instage { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.istrow { display: flex; align-items: center; gap: 10px; min-width: 0; } .istage .stsel { flex: 1; min-width: 0; font-size: 15px; padding: 10px 34px 10px 13px; }
.istage .next { width: 100%; display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 12px; font-size: 12px; }
.ptabs { flex: none; display: flex; gap: 2px; padding: 0 12px; border-bottom: 1px solid var(--line); }
.ptabs button { position: relative; display: inline-flex; align-items: center; gap: 7px; background: transparent; border: 0; padding: 11px 10px 12px; font-weight: 700; font-size: 13px; color: var(--muted); transition: color .15s; white-space: nowrap; }
.ptabs button::after { content: ""; position: absolute; left: 8px; right: 8px; bottom: -1px; height: 2px; border-radius: 2px; background: var(--accent); opacity: 0; }
.ptabs button.on, .ptabs button:hover { color: var(--text); } .ptabs button.on::after { opacity: 1; }
.ptabs button b { font-weight: 800; font-size: 10.5px; color: var(--text); background: var(--panel-2); border-radius: 9px; padding: 1px 6px; }
.pbody { padding: 16px 20px 20px; }
.lrow { transition: background .15s, transform .18s var(--ease); } .lrow:hover { transform: translateX(2px); }
.main[data-view="messages"] { grid-template-columns: 340px minmax(0, 1fr); }

@media (min-width: 1500px) { .main[data-view="messages"] { grid-template-columns: 400px minmax(0, 1fr); } .lbody { grid-template-columns: minmax(0, 1fr) clamp(380px, 31%, 500px); } }
@media (max-width: 1400px) {
  .daystrip { padding: 14px 18px 4px; gap: 10px; grid-template-columns: minmax(220px, 1fr) auto auto; } .dtile { padding: 12px 15px; min-width: 84px; } .dtile b { font-size: 25px; }
  .calllist { padding-left: 18px; padding-right: 18px; }
  .lwho .fact .ic { display: none; } .lwho .fact + .fact { padding-left: 10px; border-left: 1px solid var(--line-2); }
  .lcard { grid-template-columns: 40px minmax(200px, 1.4fr) minmax(140px, .8fr) minmax(190px, 1.25fr) 88px minmax(42px, auto); gap: 0 14px; } .avatar.ring { width: 38px; height: 38px; }
  .main[data-view="messages"] { grid-template-columns: 290px minmax(0, 1fr); } .main[data-view="messages"] .lbody { grid-template-columns: minmax(0, 1fr) 340px; }
  .lbody { grid-template-columns: minmax(0, 1fr) 380px; }
}
@media (max-width: 900px) {
  .daystrip { display: flex; overflow-x: auto; padding: 10px 12px 4px; scrollbar-width: none; } .daystrip > div { flex: none; } .dnow { min-width: 230px; padding: 12px 14px; } .dtile { padding: 10px 14px; min-width: 76px; } .dtile b { font-size: 22px; }
  .calllist { padding: 4px 12px 20px; }
  .lcard { grid-template-columns: 38px minmax(0, 1fr) auto 42px; gap: 8px 12px; padding: 12px; } .llast { display: none; } .lwho .fact + .fact { display: none; } .lwant { grid-column: 2 / -1; grid-row: 2; } .lcard:not(:has(.lwant > b)) .lwant { display: none; } .lwait { font-size: 14px; } .lwait .ic { display: none; }
  .main[data-view="messages"] { grid-template-columns: minmax(0, 1fr); }
  .lbody, .main[data-view="messages"] .lbody { display: flex; flex-direction: column; }
  .side, .lbody[data-pane="chat"] .side { display: flex; order: -1; flex: none; border-left: 0; box-shadow: none; }
  .lbody[data-pane="chat"] .side .pbody { display: none !important; } .lbody[data-pane="chat"] .chat { flex: 1; min-height: 0; }
  .lbody:not([data-pane="chat"]) .chat { display: none; } .lbody:not([data-pane="chat"]) .side { flex: 1; min-height: 0; }
  .chatbar { display: none; }
  .ihead { padding: 12px 12px 10px; gap: 10px; } .ihead .avatar.lg { display: none; } .inm h2 { font-size: 19px; } .ihead .tags { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .istage { padding: 10px; gap: 8px; } .ptabs { padding: 0 6px; } .ptabs button { flex: 1; justify-content: center; padding: 10px 4px 11px; }
  .phoneclock + .phoneclock { margin-left: -4px; }
}
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }


/* ---------- metrics: how leads turn into bookings ---------- */
.metrics { padding: 18px 24px 28px; display: flex; flex-direction: column; gap: 14px; } .metrics > * { flex: none; }
.mxbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .mxbar select { padding: 7px 30px 7px 10px; font-size: 13px; font-weight: 600; border-radius: 6px; max-width: 260px; }
.mxnote { font-size: 12.5px; color: var(--muted); border-bottom: 1px dashed var(--line-2); cursor: help; }
.mxtiles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; }
.mxtile { display: grid; gap: 8px; padding: 16px 18px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; box-shadow: var(--lift); transition: transform .18s var(--ease), border-color .18s; }
.mxtile:hover { transform: translateY(-2px); border-color: var(--line-2); }
.mxtile .lbl { margin: 0; white-space: nowrap; } .mxtile b { font-weight: 800; font-size: 30px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mxtile.good b { color: var(--ok); }
.view.enter .mxtile, .view.enter .mxcard { animation: rise .4s var(--ease) backwards; }
.view.enter .mxtile:nth-child(2) { animation-delay: .04s; } .view.enter .mxtile:nth-child(3) { animation-delay: .08s; } .view.enter .mxtile:nth-child(4) { animation-delay: .12s; } .view.enter .mxtile:nth-child(5) { animation-delay: .16s; } .view.enter .mxtile:nth-child(6) { animation-delay: .2s; }
.mxgrid { display: grid; grid-template-columns: minmax(280px, 1fr) minmax(0, 2fr); gap: 14px; }
.mxcard { border-radius: 14px; box-shadow: var(--lift); border: 1px solid var(--line-soft); background: var(--panel); padding: 0; overflow: hidden; }
.mxcard .cardhead { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px 0; } .mxcard .cardhead .lbl { margin: 0; }
.legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); } .legend i { width: 9px; height: 9px; border-radius: 3px; margin-left: 8px; }
.funnel { display: grid; gap: 14px; padding: 16px 18px 18px; }
.fhead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; font-size: 13.5px; color: var(--muted); margin-bottom: 6px; } .fhead b { color: var(--text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftrack { height: 12px; border-radius: 6px; background: var(--panel-2); overflow: hidden; } .ftrack i { display: block; height: 100%; width: var(--w); background: var(--c); border-radius: 6px; }
.fstep .ftrack i { width: var(--w); } .view.enter .ftrack i { animation: grow .9s var(--ease) backwards .1s; }
.fnote { font-size: 13px; color: var(--muted); } .fnote b { color: var(--text); font-weight: 800; }
.mxdays { display: flex; align-items: flex-end; gap: 3px; height: 210px; padding: 16px 18px 12px; }
.dcol { flex: 1; min-width: 0; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; cursor: default; }
.dcol > span { height: 14px; font-size: 10.5px; color: var(--dim); white-space: nowrap; }
.dstack { position: relative; width: 100%; max-width: 26px; height: var(--h); min-height: 2px; background: var(--accent); border-radius: 4px 4px 2px 2px; overflow: hidden; transition: filter .15s; }
.dcol:hover .dstack { filter: brightness(1.25); }
.dstack i { position: absolute; left: 0; right: 0; bottom: 0; } .dstack .q { background: #FFC83D; } .dstack .b { background: var(--ok); }
.view.enter .dstack { animation: growy .7s var(--ease) backwards; } @keyframes growy { from { height: 0; } }
.srcs { display: grid; padding: 8px 8px 10px; }
.srow { display: grid; grid-template-columns: minmax(150px, 230px) minmax(120px, 1fr) 44px 96px 96px 92px; align-items: center; gap: 0 14px; padding: 9px 10px; background: transparent; border: 0; border-radius: 10px; text-align: left; color: var(--text); transition: background .15s; }
.srow:hover { background: var(--hover); } .srow.on { background: var(--sel); }
.sname { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.strack { height: 14px; border-radius: 7px; background: var(--panel-2); overflow: hidden; } .strack > i { position: relative; display: block; height: 100%; background: var(--accent); border-radius: 7px; overflow: hidden; }
.strack i i { position: absolute; left: 0; top: 0; bottom: 0; } .strack .q { background: #FFC83D; } .strack .b { background: var(--ok); }
.view.enter .strack > i { animation: grow .8s var(--ease) backwards; }
.snum { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; text-align: right; }
.spill { justify-self: start; font-weight: 700; font-size: 12px; border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
.spill.q { color: #FFC83D; background: color-mix(in srgb, #FFC83D 12%, transparent); } .spill.b { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, transparent); } .spill.zero { color: var(--dim); background: transparent; }
.smoney { font-weight: 800; font-size: 14.5px; font-variant-numeric: tabular-nums; text-align: right; color: var(--ok); } .smoney.zero { color: var(--dim); font-weight: 600; }
.hqgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; padding: 16px 18px 18px; }
@media (max-width: 1400px) { .metrics { padding: 14px 18px 24px; } .mxtile { padding: 14px; } .mxtile b { font-size: 25px; } .srow { grid-template-columns: minmax(120px, 190px) minmax(90px, 1fr) 40px 88px 88px 84px; gap: 0 10px; } }
@media (max-width: 900px) { .metrics { padding: 10px 12px 20px; } .mxtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } .mxgrid, .hqgrid { grid-template-columns: minmax(0, 1fr); } .mxdays { height: 160px; gap: 2px; } .mxnote { display: none; }
  .srow { grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px 10px; } .srow .strack { grid-column: 1 / -1; grid-row: 2; } .srow .spill.q, .srow .snum { display: none; } }


/* =====================================================================
   Clearer and calmer. Tags in the fleet map's style (small, square, tracked capitals: an outline for a fact,
   a fill for a channel, a dashed outline for something still to do). Every zone of a lead row names itself.
   ===================================================================== */
.stag, .ctag, .srctag, .fchip, .qpill, .nocall, .lcard .fchip, .ihead .tags .srctag, .ihead .tags .ctag {
  display: inline-flex; align-items: center; gap: 6px; flex: none; border: 0; border-radius: 4px; padding: 0 7px; font-weight: 800; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.85; white-space: nowrap; }
.stag { background: none; color: var(--text); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 65%, transparent); } .stag::before { width: 6px; height: 6px; }
.srctag { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.fchip { background: none; color: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); }
.qpill { background: none; color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent); }
.nocall { background: none; color: var(--warn); border: 1px dashed color-mix(in srgb, var(--warn) 80%, transparent); line-height: 1.7; }
.tags { gap: 6px; }

/* the call list rows */
.daystrip > div, .mxtile, .mxcard { border-radius: 10px; }
.lcard { grid-template-columns: 44px minmax(200px, 1.15fr) minmax(170px, .9fr) minmax(240px, 1.4fr) 92px minmax(44px, auto); gap: 0 20px; padding: 12px 16px 12px 14px; border-radius: 10px; box-shadow: inset 0 1px 0 rgba(255,255,255,.04); }
.lcard:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.07), 0 14px 26px -16px rgba(0,0,0,.85); }
.lwho, .lwant, .llast { gap: 7px; }
.lmeta { gap: 6px; }
.lrowh { display: flex; align-items: center; gap: 8px; min-width: 0; min-height: 19px; overflow: hidden; } .lrowh .lbl { margin: 0; font-size: 10px; color: var(--dim); flex: none; }
.lwhen { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .lwhen .ic { color: var(--dim); }
.lwant > b { display: block; font-weight: 600; font-size: 14.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lwant .none { font-size: 14px; }
.lmsg { background: none; padding: 0; border-radius: 0; gap: 8px; } .lmsg > span:last-child { font-size: 14px; color: var(--text); }
.lwait { display: grid; gap: 7px; justify-items: end; align-content: center; } .lwait .lbl { margin: 0; font-size: 10px; color: var(--dim); }
.lwait b { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; color: var(--text); white-space: nowrap; } .lwait.hot b { color: var(--bad); }

/* the rail: the demo tag sits by the logo; the clock shows the day and the time */
.rail { gap: 12px; } .nav button { padding: 10px 13px; }
.brand { justify-content: space-between; gap: 8px; } .brand .tag.demo { align-self: center; font-size: 9px; padding: 2px 6px; }
.clk { gap: 12px; padding: 14px; border-radius: 10px; min-width: 0; grid-template-columns: minmax(0, 1fr); } .clk > * { min-width: 0; }
.clkday { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .clkday .lbl { margin: 0; font-size: 10px; letter-spacing: .1em; color: #A6A6A6; white-space: nowrap; }
.clkday b { font-weight: 800; font-size: 15px; color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.clkline { display: flex; align-items: center; gap: 9px; padding-top: 11px; border-top: 1px solid rgba(255,255,255,.08); }
.clkworked b { font-weight: 700; font-size: 13px; color: #A6A6A6; font-variant-numeric: tabular-nums; }
.clkbtns button { padding: 9px 4px; font-size: 12px; }

/* the right side of a lead: a grip under the customer info */
.ihead { align-content: start; gap: 12px; padding: 18px 20px 14px; transition: height .22s var(--ease); } .sizing .ihead { transition: none; } .ihead.cut { overflow: hidden; }
.isub { display: flex; align-items: center; gap: 10px; min-width: 0; }
.igrip { flex: none; display: grid; place-items: center; height: 16px; cursor: ns-resize; touch-action: none; border-top: 1px solid var(--line-soft); }
.igrip::before { content: ""; width: 42px; height: 4px; border-radius: 4px; background: rgba(255,255,255,.28); transition: background .2s, width .2s; }
.igrip:hover::before, .sizing .igrip::before { background: var(--accent); width: 58px; }
.sizing, .sizing * { cursor: ns-resize !important; user-select: none; } .moving, .moving * { cursor: grabbing !important; user-select: none; }

/* notes: the box says what it is */
.noteadd { gap: 9px; padding: 12px; border-radius: 10px; background: color-mix(in srgb, var(--warn) 7%, var(--panel)); border: 1px dashed color-mix(in srgb, var(--warn) 45%, transparent); }
.nahead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; } .nahead .lbl { margin: 0; color: var(--warn); } .nahint { font-size: 12px; color: var(--muted); }
.noteadd textarea { background: var(--bg); border-color: var(--line); } .noteadd textarea:focus { border-color: var(--warn); }
.nlh { display: flex; align-items: center; gap: 8px; margin-top: 4px; } .nlh .lbl { margin: 0; }
.note { border-radius: 10px; }

/* the message box: who it goes to, how it is sent, a real Send button */
.composer { gap: 9px; } .composer .sugg:empty, .composer #extras:empty { display: none; }
.chead { display: flex; align-items: center; gap: 10px; min-width: 0; } .chead .lbl { margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .chead .lbl b { color: var(--text); font-weight: 800; }
.chead select { padding: 6px 30px 6px 10px; font-size: 12.5px; font-weight: 600; border-radius: 6px; max-width: 250px; background-color: var(--panel); }
.imrow { align-items: stretch; gap: 8px; }
.composer .pill { border-radius: 10px; padding: 9px 13px; background: var(--panel); border-color: var(--line-2); transition: border-color .15s, box-shadow .15s; }
.composer .pill:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent); }
.plus { width: 44px; height: auto; min-height: 44px; border-radius: 10px; background: var(--panel); border: 1px solid var(--line-2); transition: color .15s, border-color .15s; } .plus:hover { border-color: var(--line-3); }
.sendbtn { width: auto; height: auto; margin: 0; padding: 0 16px; border-radius: 10px; display: inline-flex; align-items: center; gap: 7px; font: 800 12px var(--body); letter-spacing: .08em; text-transform: uppercase; }
.sendbtn:hover { transform: none; filter: brightness(1.1); }
.composer .bar:not(:has(.warn:not(:empty), .count:not(:empty))):has(#fx.hide), .composer:not(.typing) .bar:not(:has(.warn:not(:empty), .count:not(:empty))) { display: none; }

/* every group of bubbles: who, where, when */
.im .from { display: flex; align-items: center; gap: 7px; margin: 0 4px 5px; font-family: var(--body); font-size: 11.5px; color: var(--muted); } .im .from b { font-weight: 700; color: var(--text); }
.im .from .ctag { font-size: 9px; line-height: 1.7; padding: 0 5px; } .im .from time { font-variant-numeric: tabular-nums; }
.im.first { margin-top: 14px; }

/* metrics */
.hqgrid { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.985); } }
@media (min-width: 901px) {
  /* the quote builder: a window over the lead that moves */
  .quote.open { position: fixed; inset: auto; left: 0; top: 0; width: min(960px, calc(100vw - 32px)); height: min(700px, calc(100vh - 32px)); border: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.75); z-index: 80; animation: pop .22s var(--ease); }
  .qbar { position: relative; cursor: grab; user-select: none; gap: 12px; padding: 18px 14px 12px 20px; } .qbar::before { content: ""; position: absolute; left: 50%; top: 7px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,.28); transition: background .2s, width .2s, margin .2s; }
  .qbar:hover::before, .moving .qbar::before { background: var(--accent); width: 58px; margin-left: -29px; }
  .qfor { font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .qwrap { grid-template-columns: 330px minmax(0, 1fr); }
}
@media (max-width: 1400px) {
  .lcard { grid-template-columns: 40px minmax(240px, 1.2fr) minmax(175px, .9fr) minmax(200px, 1.2fr) 80px minmax(42px, auto); gap: 0 14px; }
  .lcard .srctag.city, .lrowh .srctag.dates:has(+ .qpill) { display: none; }
  .main[data-view="messages"] .chead .sby { display: none; } .main[data-view="messages"] .chead select { max-width: 190px; }
  .lwho .fact + .fact { padding: 0; border: 0; }
  .hqgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .lcard { grid-template-columns: 38px minmax(0, 1fr) auto 42px; gap: 8px 12px; padding: 12px; } .lwait .lbl { display: none; } .lwho .srctag + .srctag { display: none; }
  .igrip, .qfor { display: none; } .ihead { height: auto !important; overflow: visible; }
  .chead .sby { display: none; } .chead select { max-width: 180px; } .sendbtn { padding: 0 12px; }
  .hqgrid { grid-template-columns: minmax(0, 1fr); }
}

/* A new lead is the urgent color everywhere (owner, 2026-11-28); Call Now is blue. */
.banner { background: var(--bad); color: #fff; } .banner .btn { background: #fff; color: #0B0B0B; border-color: #fff; } .banner .more { border-color: rgba(255,255,255,.7); }

/* Call Now in priority order: a small heading per follow-up */
.lsub { display: flex; align-items: center; gap: 9px; margin: 8px 0 0; padding: 0 4px; } .lsec > header + .lsub { margin-top: 0; }
.lsub b { font-weight: 700; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; } .lsub i { flex: 1; height: 1px; background: var(--line-soft); }
.lhint { margin-left: 4px; font-size: 12px; color: var(--dim); }


/* =====================================================================
   Cleaner: tidy customer info that folds with a click, transcripts apart from notes, a slimmer Conversations list.
   ===================================================================== */
.ihead { gap: 14px; padding: 18px 20px 16px; transition: height .28s var(--ease); }
.istage { padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; gap: 8px; }
.isthead { justify-content: flex-start; flex-wrap: wrap; gap: 6px 10px; } .isthead .lbl { white-space: nowrap; } .isthead .instage { margin-left: auto; }
.istrow { flex-wrap: wrap; gap: 8px; } .istage .stsel { flex: 1 1 150px; font-size: 14px; padding: 10px 32px 10px 12px; }
.istage .next { flex: 1.2 1 200px; width: auto; padding: 11px 10px; font-size: 11.5px; }
.ifacts { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px 18px; padding-top: 14px; border-top: 1px solid var(--line-soft); }
.ifacts > div { min-width: 0; display: grid; gap: 4px; } .ifacts .lbl { margin: 0; font-size: 10px; color: var(--dim); }
.ifacts b { display: flex; align-items: center; gap: 7px; min-width: 0; font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .ifacts b.none { color: var(--dim); font-weight: 500; }
.ifacts b span { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 500; }
/* the grip is a button: click folds, drag sizes */
.igrip { width: 100%; height: 20px; padding: 0; background: transparent; border: 0; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); color: var(--dim); cursor: pointer; transition: color .15s, background .15s; }
.igrip::before { display: none; } .igrip:hover, .sizing .igrip { color: var(--accent); background: var(--hover); }
.igrip .ic { transition: transform .28s var(--ease); } .ihead.shut + .igrip .ic { transform: rotate(180deg); }
.ptabs { border-bottom: 1px solid var(--line); }

/* notes are yellow, a call transcript is blue and stays short until opened */
.note.tr { background: color-mix(in srgb, var(--accent) 8%, var(--panel)); } .note.tr .lbl { color: var(--accent-text); }
.note.tr .nbody { font-size: 13.5px; color: var(--muted); } .note.tr .nbody.clamp { -webkit-line-clamp: 3; }

/* Conversations: a slimmer list so the conversation and its typing box get the room */
.main[data-view="messages"] { grid-template-columns: 304px minmax(0, 1fr); }
.main[data-view="messages"] .lbody { grid-template-columns: minmax(0, 1fr) clamp(330px, 27%, 420px); }
.lrow { padding: 11px 12px; gap: 11px; } .lrow .avatar { width: 34px; height: 34px; font-size: 11.5px; } .lrow .who { gap: 5px; }
.lrow .name { font-size: 14.5px; } .lrow .snip { font-size: 13px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lrow.unread .snip { color: var(--text); font-weight: 600; }
.lrow .tags { gap: 5px; flex-wrap: nowrap; overflow: hidden; } .lrow .tags > * { font-size: 9px; padding: 0 6px; }
.listhead { padding: 12px 12px 10px; }
/* the thread switch */
.chatbar { gap: 12px; } .tlseg button { padding: 6px 11px; font-size: 10.5px; }
.main[data-view="messages"] .chatbar { display: flex; justify-content: flex-end; padding: 8px 16px; border-bottom: 1px solid var(--line-soft); }
.main[data-view="messages"] .chatbar .back, .main[data-view="messages"] .chatbar .cbwho { display: none; }
.timeline .empty .link { margin-top: 8px; }
@media (max-width: 1400px) {
  .main[data-view="messages"] { grid-template-columns: 264px minmax(0, 1fr); } .main[data-view="messages"] .lbody { grid-template-columns: minmax(0, 1fr) 320px; }
  .ihead { padding: 16px 16px 14px; }
}
@media (max-width: 900px) {
  .main[data-view="messages"] { grid-template-columns: minmax(0, 1fr); }
  .chatbar, .main[data-view="messages"] .chatbar { display: flex; justify-content: flex-end; padding: 6px 12px; } .chatbar .back, .chatbar .cbwho { display: none; }
  .igrip { display: none; } .ifacts { gap: 10px 14px; padding-top: 10px; }
}


/* ---------- the quote window: one compact column for city, trip and calendar; a corner to resize it ---------- */
.qside { padding: 14px; gap: 10px; }
.qcity { display: flex; } .qcity button { flex: 1; padding: 8px 6px; }
.qtrip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.qleg { display: grid; gap: 2px; min-width: 0; padding: 9px 10px 5px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); transition: border-color .15s; } .qleg.now { border-color: var(--accent); }
.qleg .lbl { margin: 0; font-size: 9.5px; } .qleg b { font-weight: 700; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qleg select { justify-self: start; width: auto; border: 0; background-color: transparent; padding: 3px 22px 3px 0; font-size: 12.5px; font-weight: 600; color: var(--muted); border-radius: 4px; } .qleg select:hover { color: var(--text); }
.cal { gap: 6px; padding: 10px 10px 8px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); }
.calnav b { font-weight: 800; font-size: 13.5px; } .calnav .iconbtn { width: 28px; height: 28px; border-color: transparent; } .calnav .iconbtn:hover { border-color: var(--line-2); }
.cal .dow span { font-size: 9.5px; letter-spacing: .08em; } .cal .days { gap: 2px; }
.cal .days button { height: 31px; font-size: 13px; font-weight: 600; border-radius: 6px; font-variant-numeric: tabular-nums; }
.calhint { font-size: 12px; color: var(--muted); text-align: center; padding-top: 4px; }
.qsize { display: none; }
@media (min-width: 901px) {
  .quote.open { min-width: 640px; min-height: 460px; } .qwrap { grid-template-columns: 292px minmax(0, 1fr); }
  .qsize { display: block; position: absolute; right: 0; bottom: 0; width: 20px; height: 20px; cursor: nwse-resize; z-index: 3; touch-action: none; }
  .qsize::before { content: ""; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-right: 2px solid var(--line-3); border-bottom: 2px solid var(--line-3); border-radius: 0 0 3px 0; transition: border-color .15s; }
  .qsize:hover::before, .resizing .qsize::before { border-color: var(--accent); }
  .resizing, .resizing * { cursor: nwse-resize !important; user-select: none; }
}


/* =====================================================================
   Nothing is ever cut off (owner, 2026-11-28). Text wraps; a row carries only what fits; a message preview stops at a whole word.
   ===================================================================== */
.lwho > b, .lwant > b, .lwant > b span, .inm h2, .cbwho b, .ifacts b, .sname, .lrow .name span, .kvrow b, .kvrow a, .bcard header b, .bcard dd, .bcol h2, .myname, .qfor, .qleg b, .chead .lbl, .fact span, .wants, .lh h2 {
  white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: break-word; }
.lmeta, .lrowh, .lrow .tags, .tags { flex-wrap: wrap; overflow: visible; white-space: normal; row-gap: 5px; }
.srctag, .fchip, .stag, .qpill { white-space: normal; text-align: left; line-height: 1.5; padding-top: 2px; padding-bottom: 2px; }
.lmsg { align-items: flex-start; } .lmsg .ctag { margin-top: 1px; }
.lmsg > span:last-child, .lrow .snip, .im .rq { display: block; white-space: normal; text-overflow: clip; overflow: hidden; line-height: 1.35; max-height: 2.7em; overflow-wrap: break-word; }
.ifacts b { flex-wrap: wrap; line-height: 1.3; } .kvrow b, .kvrow a { text-align: right; }
.lcard { align-items: center; } .lwho > b { line-height: 1.25; }
.chead { flex-wrap: wrap; row-gap: 6px; }


/* =====================================================================
   A lead: one header across the top with everything you act on (who, stage and its Move button, Call, Text, Quote,
   next and previous lead). Under it the conversation, and on the right the customer info and the notes.
   ===================================================================== */
.ltop { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 12px 22px; padding: 12px 20px; background: var(--panel); border-bottom: 1px solid var(--line); position: relative; z-index: 2; box-shadow: 0 10px 24px -20px rgba(0,0,0,.9); }
.lback { width: 36px; height: 36px; flex: none; }
.main[data-view="messages"] .lback { display: none; }
.ltwho { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 220px; }
.ltwho .inm h2 { font-size: 20px; } .ltwho .isub { flex-wrap: wrap; row-gap: 4px; }
.ltstage { display: flex; align-items: center; gap: 8px; flex: none; } .ltstage .lbl { margin: 0; white-space: nowrap; }
.ltstage .stsel { min-width: 0; width: auto; font-size: 14px; padding: 9px 32px 9px 12px; } .ltstage .next { padding: 10px 14px; font-size: 11.5px; white-space: nowrap; display: inline-flex; align-items: center; gap: 8px; }
.ltact { display: flex; align-items: center; gap: 8px; flex: none; } .ltact .btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; font-size: 11.5px; text-decoration: none; white-space: nowrap; }
.inav { display: flex; align-items: center; gap: 4px; flex: none; margin-left: auto; } .inav span { font-size: 12.5px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; padding: 0 4px; }
.inav .iconbtn { width: 34px; height: 34px; } .inav .iconbtn:disabled { opacity: .3; cursor: default; }
.chatbar { padding: 8px 20px; border-bottom: 1px solid var(--line-soft); } .chatbar .lbl { margin: 0; }
.main[data-view="messages"] .chatbar { justify-content: space-between; }
.ihead { display: block; padding: 0 20px; gap: 0; overflow: hidden; } .ihead .ifacts { border-top: 0; padding: 16px 0 14px; }
.side .igrip { border-top: 0; }
/* Two tidy rows by default: who and the lead stepper on top, stage and actions under it. One row when the screen is wide enough. */
.ltop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back who nav" "stage stage act"; align-items: center; gap: 10px 14px; }
.lback { grid-area: back; } .ltwho { grid-area: who; } .inav { grid-area: nav; margin-left: 0; } .ltstage { grid-area: stage; justify-self: start; } .ltact { grid-area: act; justify-self: end; }
.main[data-view="messages"] .ltop { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who nav" "stage act"; }
@media (min-width: 1700px) {
  .main:not([data-view="messages"]) .ltop { display: flex; flex-wrap: nowrap; gap: 22px; } .main:not([data-view="messages"]) .inav { margin-left: auto; }
}
@media (max-width: 1400px) {
  .ltop { padding: 10px 16px; } .ltstage > .lbl { display: none; } .ltact .btn { padding: 10px 11px; } .ihead { padding: 0 16px; }
}
@media (max-width: 900px) {
  .ltop, .main[data-view="messages"] .ltop { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back who nav" "stage stage stage" "act act act"; gap: 10px; padding: 10px 12px; }
  .main[data-view="messages"] .lback { display: grid; } .ltwho .avatar.lg { display: none; } .ltwho .inm h2 { font-size: 18px; }
  .ltstage, .ltact { justify-self: stretch; } .ltstage .stsel { flex: 1; } .ltstage .next { flex: 1.3; justify-content: center; } .ltact .btn { flex: 1; justify-content: center; }
  .inav span { display: none; }
  .side .ihead, .side .igrip { display: none; } .chatbar .lbl { display: none; }
}

.inav { justify-self: end; }


/* =====================================================================
   Slim. One short header row on a lead, no bar over the conversation, a one-row message box,
   a one-line note box, tighter conversation rows. Controls are rounder and fewer of them have boxes.
   ===================================================================== */
.ltop, .main[data-view="messages"] .ltop, .main:not([data-view="messages"]) .ltop { display: flex; flex-wrap: nowrap; align-items: center; gap: 14px; padding: 8px 18px; min-height: 54px; box-shadow: none; }
.ltwho { flex: 1 1 auto; min-width: 130px; gap: 0; } .ltwho .inm { gap: 1px; } .ltwho .inm h2 { font-size: 17px; line-height: 1.2; } .ltwho .isub { gap: 8px; } .ltwho .iphone { font-size: 12.5px; }
.ltstage, .ltact, .inav, .lback { flex: none; } .ltstage { gap: 6px; } .ltstage > .lbl { display: none; }
.ltstage .stsel { height: 36px; padding: 0 30px 0 12px; font-size: 13.5px; border-radius: 9px; min-width: 0; }
.ltstage .next { height: 36px; padding: 0 14px; border-radius: 9px; font-size: 11px; }
.ltact { gap: 6px; } .ltact .btn { height: 36px; padding: 0 13px; border-radius: 9px; font-size: 11px; border-color: var(--line-2); } .ltact .btn.solid { border-color: transparent; }
.inav, .main:not([data-view="messages"]) .inav { margin-left: 0; gap: 2px; } .inav span { font-size: 12px; padding: 0 2px; }
.inav .iconbtn, .lback { width: 32px; height: 32px; border-radius: 50%; border-color: transparent; background: var(--panel-2); } .inav .iconbtn:hover, .lback:hover { background: var(--hover); border-color: var(--line-2); }
@media (max-width: 1699px) { .main[data-view="messages"] .ltact .ll { display: none; } .main[data-view="messages"] .ltact .btn:not(.claim) { width: 36px; padding: 0; } }
@media (max-width: 1400px) { .ltact .ll { display: none; } .ltact .btn:not(.claim) { width: 36px; padding: 0; } .main[data-view="messages"] .inav span { display: none; } .ltop, .main[data-view="messages"] .ltop, .main:not([data-view="messages"]) .ltop { gap: 10px; padding: 8px 14px; } }

/* the conversation: the switch floats, nothing sits on top of the messages */
.lbody .chat { position: relative; }
.tlseg { position: absolute; top: 10px; right: 16px; z-index: 3; background: var(--bg); border-radius: 8px; overflow: hidden; box-shadow: 0 6px 16px -8px rgba(0,0,0,.8); opacity: .55; transition: opacity .15s; } .tlseg:hover { opacity: 1; }
.tlseg button { padding: 5px 10px; font-size: 10px; }

/* the message box: one row */
.composer { padding: 10px 16px 12px; gap: 6px; }
.imrow { flex-wrap: wrap; align-items: stretch; gap: 8px; }
.composer .pill { flex: 1 1 220px; min-height: 42px; padding: 8px 12px; border-radius: 10px; }
.chansel { flex: none; height: 42px; padding: 0 28px 0 11px; font-size: 12.5px; font-weight: 600; border-radius: 10px; border: 1px solid var(--line-2); background-color: var(--panel); color: var(--muted); }
.plus { width: 42px; min-height: 42px; } .sendbtn { min-height: 42px; }

/* notes: one line to type in; it opens up when you click into it or have typed */
.noteadd { display: flex; align-items: flex-start; gap: 8px; padding: 0; border: 0; background: none; }
.noteadd textarea { flex: 1; min-height: 42px; height: 42px; padding: 10px 12px; font-size: 14px; border-radius: 10px; resize: none; background: color-mix(in srgb, var(--warn) 6%, var(--panel)); border: 1px solid color-mix(in srgb, var(--warn) 35%, transparent); transition: height .2s var(--ease); }
.noteadd textarea:focus, .noteadd textarea:not(:placeholder-shown) { height: 104px; }
.noteadd .btn { height: 42px; padding: 0 14px; border-radius: 10px; justify-self: auto; }
.nlh { margin-top: 2px; }

/* conversation rows: three tight lines */
.lrow { padding: 9px 12px; gap: 10px; align-items: center; } .lrow .who { gap: 3px; } .lrow .avatar { width: 32px; height: 32px; }
.lrow .name { font-size: 14px; } .lrow .snip { font-size: 12.5px; white-space: nowrap; max-height: 1.4em; } .lrow .tags { margin-top: 2px; }
.listhead { padding: 10px 12px 8px; gap: 8px; }

/* softer corners on the things you press */
.btn, .seg, .searchbox, .citysel { border-radius: 8px; } .iconbtn { border-radius: 8px; }
.ihead .ifacts { padding: 14px 0 12px; gap: 10px 18px; }
@media (max-width: 900px) {
  .ltop, .main[data-view="messages"] .ltop, .main:not([data-view="messages"]) .ltop { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back who nav" "stage stage stage" "act act act"; gap: 10px; padding: 10px 12px; }
  .ltact .ll { display: inline; } .ltact .btn:not(.claim) { width: auto; flex: 1; } .tlseg { top: 6px; right: 8px; }
}


/* =====================================================================
   The bar over the conversation carries the controls, in one row, the height the old bar was.
   The right side is the notes (and Profile, Rentals) from the top of the lead to the bottom.
   ===================================================================== */
.chat > .ltop, .main[data-view="messages"] .chat > .ltop, .main:not([data-view="messages"]) .chat > .ltop { flex: none; display: flex; flex-wrap: nowrap; align-items: center; gap: 12px; padding: 0 16px; height: 56px; min-height: 56px; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: none; overflow: hidden; }
.tlseg { top: 66px; }
.side .ptabs { height: 56px; align-items: stretch; padding: 0 14px; } .side .ptabs button { padding-top: 0; padding-bottom: 0; }
.ltstage .next .ll { display: inline; }
/* narrower bars drop words before they ever wrap to a second row */
@media (max-width: 1699px) {
  .ltact .ll, .ltstage .next .ll { display: none; } .ltact .btn:not(.claim) { width: 34px; height: 34px; padding: 0; }
  .ltstage .stsel { max-width: 150px; } .inav span { display: none; }
}
@media (max-width: 1500px) {
  .main[data-view="messages"] .chat > .ltop .ltwho, .main[data-view="messages"] .chat > .ltop .inav { display: none; }
  .chat > .ltop, .main[data-view="messages"] .chat > .ltop, .main:not([data-view="messages"]) .chat > .ltop { gap: 8px; padding: 0 12px; }
  .ltstage .stsel { max-width: 132px; padding: 0 26px 0 10px; } .ltstage .next { padding: 0 11px; } .ltwho { min-width: 96px; } .ltwho .isub .fchip { display: none; }
}
.main[data-view="messages"] .chat > .ltop .ltstage { margin-right: auto; }
@media (max-width: 900px) {
  /* phone: the bar, then the tabs, then whichever of the conversation or a tab is open */
  .lbody, .main[data-view="messages"] .lbody { display: flex; flex-direction: column; } .lbody .chat { display: contents; }
  .chat > .ltop, .main[data-view="messages"] .chat > .ltop, .main:not([data-view="messages"]) .chat > .ltop { order: 1; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "back who nav" "stage stage stage" "act act act"; height: auto; min-height: 0; gap: 10px; padding: 10px 12px; overflow: visible; }
  .main[data-view="messages"] .chat > .ltop .ltwho { display: flex; } .main[data-view="messages"] .chat > .ltop .inav { display: flex; }
  .ltact .ll, .ltstage .next .ll { display: inline; } .ltact .btn:not(.claim) { width: auto; height: 38px; flex: 1; } .ltstage .stsel { max-width: none; flex: 1; }
  .side, .lbody[data-pane="chat"] .side { order: 2; display: flex; flex: none; } .side .ptabs { height: 46px; }
  .lbody .timeline { order: 3; } .lbody .composer { order: 4; } .tlseg { order: 3; position: static; align-self: flex-end; margin: 6px 10px 0; opacity: 1; }
  .lbody:not([data-pane="chat"]) .timeline, .lbody:not([data-pane="chat"]) .composer, .lbody:not([data-pane="chat"]) .tlseg { display: none; }
  .lbody:not([data-pane="chat"]) .chat { display: contents; } .lbody:not([data-pane="chat"]) .side { flex: 1; min-height: 0; }
}

/* the bar never clips: a long name takes a second line and the bar grows with it */
.chat > .ltop, .main[data-view="messages"] .chat > .ltop, .main:not([data-view="messages"]) .chat > .ltop { height: auto; min-height: 56px; padding-top: 6px; padding-bottom: 6px; overflow: visible; }
.ltwho .inm h2 { font-size: 16.5px; } .ltwho .isub { margin-top: 2px; } .ltstage .next { gap: 6px; }
.sendbtn .ll { display: inline; }
@media (max-width: 1500px) {
  .ltwho .inm h2 { font-size: 15px; }
  .main[data-view="messages"] .sendbtn .ll { display: none; } .main[data-view="messages"] .sendbtn { padding: 0 13px; } .main[data-view="messages"] .composer .pill { flex-basis: 150px; } .main[data-view="messages"] .chansel { max-width: 150px; }
}
@media (max-width: 900px) { .sendbtn .ll { display: inline; } }

/* Conversations: the three actions are icons, so the name keeps its line */
.main[data-view="messages"] .ltact .ll { display: none; } .main[data-view="messages"] .ltact .btn:not(.claim) { width: 34px; height: 34px; padding: 0; }
@media (max-width: 900px) { .main[data-view="messages"] .ltact .ll { display: inline; } .main[data-view="messages"] .ltact .btn:not(.claim) { width: auto; height: 38px; } }


/* =====================================================================
   The quote: trip and places on the left; on the right the car, then a price sheet where every line can be changed
   and the total comes live from HQ.
   ===================================================================== */
.qplace { display: grid; gap: 4px; min-width: 0; } .qplace .lbl { margin: 0; font-size: 9.5px; } .qplace b { font-weight: 600; font-size: 13.5px; }
.qplace select { width: 100%; padding: 8px 28px 8px 10px; font-size: 13px; font-weight: 600; border-radius: 8px; }
.qbody { display: flex; flex-direction: column; gap: 12px; }
.qhead { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.qcar { display: flex; align-items: center; gap: 12px; min-width: 0; } .qcar img { width: 76px; height: 50px; object-fit: cover; border-radius: 8px; flex: none; }
.qcar h3 { margin: 0; font-weight: 800; font-size: 17px; line-height: 1.2; } .qcar span { font-size: 12.5px; color: var(--muted); }
.qsheet { background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 4px 16px 14px; }
.qsec { padding: 14px 0 6px; } .qsec .lbl { margin: 0; font-size: 10px; color: var(--dim); }
.qline { display: grid; grid-template-columns: minmax(0, 1fr) auto 84px 96px; align-items: center; gap: 0 14px; min-height: 42px; padding: 4px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.qsec + .qline { border-top: 0; }
.qline .qunit { font-size: 12.5px; color: var(--muted); white-space: nowrap; } .qline .qamt { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; } .qamt.neg { color: var(--ok); }
.qline:not(.on) .qchk span { color: var(--muted); }
.qchk { display: flex; align-items: center; gap: 10px; min-width: 0; cursor: pointer; } .qchk input { width: 17px; height: 17px; flex: none; accent-color: var(--accent); }
.qrate, .qdisc { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; min-width: 0; } .qrate > span:first-child, .qdisc > span:first-child { font-weight: 600; }
.qmoney { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); padding-left: 10px; transition: border-color .15s; } .qmoney:focus-within { border-color: var(--accent); }
.qmoney i { font-style: normal; font-weight: 700; color: var(--muted); } .qmoney input { width: 92px; border: 0 !important; background: transparent; padding: 8px 8px 8px 4px; font-weight: 700; font-size: 15px; font-variant-numeric: tabular-nums; }
.qmoney input:disabled { color: var(--muted); }
.qdisc .seg button { padding: 6px 10px; font-size: 10px; }
.qqty { display: inline-flex; align-items: center; gap: 4px; justify-self: start; } .qqty b { min-width: 18px; text-align: center; font-variant-numeric: tabular-nums; }
.qqty button { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); background: transparent; color: var(--muted); } .qqty button:hover { color: var(--text); border-color: var(--line-3); }
.qtotals { display: grid; gap: 6px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line-2); font-size: 14px; }
.qtotals > div { display: flex; justify-content: space-between; gap: 14px; } .qtotals span { color: var(--muted); } .qtotals b { font-variant-numeric: tabular-nums; }
.qtotals .tot { padding-top: 8px; margin-top: 2px; border-top: 1px solid var(--line-soft); } .qtotals .tot span { color: var(--text); font-weight: 800; font-size: 15px; } .qtotals .tot b { font-weight: 800; font-size: 22px; letter-spacing: -.01em; }
.qtotals .dep { font-size: 12.5px; } .qerr { display: block !important; color: var(--bad); font-size: 13px; } .qerr.warn { color: var(--warn); }
.qsendbox { display: flex; align-items: flex-end; gap: 12px; flex-wrap: wrap; } .qsendbox label, .qsendbox .qto { flex: 1 1 240px; display: grid; gap: 5px; min-width: 0; } .qsendbox .lbl { margin: 0; font-size: 10px; }
.qsendbox input { width: 100%; padding: 10px 12px; border-radius: 8px; } .qto b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.qgo { flex: none; padding: 13px 20px; font-size: 12.5px; border-radius: 10px; }
@media (max-width: 900px) { .qline { grid-template-columns: minmax(0, 1fr) auto; row-gap: 4px; } .qline > :nth-child(3):empty { display: none; } }

/* the total and the button ride at the bottom of the quote window; the lines scroll above them */
.qbody:has(.qfoot) { padding-bottom: 0; }
.qfoot { position: sticky; bottom: 0; z-index: 2; margin: auto -20px 0; padding: 12px 20px 14px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(220px, auto); gap: 10px 24px; align-items: end; background: var(--panel-2); border-top: 1px solid var(--line-2); box-shadow: 0 -14px 24px -18px rgba(0,0,0,.9); }
.qfoot .qtotals { margin: 0; padding: 0; border: 0; gap: 3px; font-size: 13px; } .qfoot .qtotals .tot { border: 0; padding-top: 4px; } .qfoot .qtotals .tot b { font-size: 24px; }
.qfoot .qsendbox { display: grid; gap: 8px; justify-items: stretch; } .qfoot .qsendbox label, .qfoot .qsendbox .qto { flex: none; } .qfoot .qgo { width: 100%; justify-content: center; }
.qsheet { padding-bottom: 6px; } .qdisc { flex-wrap: nowrap; } .qdisc .qmoney input { width: 72px; }
@media (max-width: 900px) { .qfoot { grid-template-columns: minmax(0, 1fr); margin: auto -16px 0; padding: 10px 16px 12px; } .qdisc { flex-wrap: wrap; } }

/* The notes side folds to a slim strip on the right edge and opens again from it; the choice is remembered. */
.lbody { transition: grid-template-columns .26s var(--ease); }
.side .ptabs .sidefold { margin-left: auto; align-self: center; padding: 0; display: grid; place-items: center; flex: none; } .side .ptabs .sidefold::after { display: none; }
.lbody.sideshut { grid-template-columns: minmax(0, 1fr) 56px; }
.lbody.sideshut .side { overflow: hidden; }
.lbody.sideshut .side .pbody { display: none !important; }
.lbody.sideshut .side .ptabs { flex-direction: column; align-items: center; gap: 6px; height: auto; padding: 9px 0 0; border-bottom: 0; }
.lbody.sideshut .side .ptabs .sidefold { order: -1; margin: 0 0 8px; width: 38px; height: 38px; border-color: var(--line-2); color: var(--text); }
.lbody.sideshut .side .ptabs button[data-act="pane"] { width: 40px; height: 40px; padding: 0; justify-content: center; border-radius: 8px; }
.lbody.sideshut .side .ptabs button[data-act="pane"]:hover { background: var(--hover); }
.lbody.sideshut .side .ptabs button[data-act="pane"] span, .lbody.sideshut .side .ptabs button::after, .lbody.sideshut .side .ptabs .onlyphone { display: none; }
.lbody.sideshut .side .ptabs button[data-act="pane"] b { position: absolute; top: 1px; right: 0; padding: 0 5px; font-size: 9.5px; background: var(--accent); color: #06141d; }
@media (max-width: 900px) { .side .ptabs .sidefold { display: none; } }

/* ---------- Metrics: Detroit ad spend (only with "With ad spend" on) ---------- */
.adhead { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 6px; }
.adtitle { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 15px; letter-spacing: -.01em; }
.adtitle::before { content: ""; width: 4px; height: 16px; border-radius: 2px; background: var(--spend); }
.metrics { --spend: color-mix(in srgb, var(--text) 78%, transparent); }
.mxtile.adtile { border-color: var(--line-2); background: color-mix(in srgb, var(--panel) 70%, var(--panel-2)); }
.legend i.sp { background: var(--spend); }
.mxdays.addays { height: 150px; }
.dpair { width: 100%; max-width: 26px; height: 100%; display: flex; align-items: flex-end; gap: 2px; }
.dpair i { flex: 1; min-height: 2px; border-radius: 3px 3px 1px 1px; transition: filter .15s; } .dpair .sp { background: var(--spend); } .dpair .ld { background: var(--accent); }
.dcol:hover .dpair i { filter: brightness(1.25); }
.view.enter .dpair i { animation: growUp .7s var(--ease) backwards; transform-origin: bottom; }
@keyframes growUp { from { transform: scaleY(0); } }
.atag { display: inline-flex; align-items: center; gap: 5px; flex: none; border-radius: 4px; padding: 0 7px; font-weight: 800; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.85; white-space: nowrap; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.atag.live { color: var(--ok); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--ok) 55%, transparent); } .atag.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.atag.off { color: var(--dim); }
.camps { display: grid; }
.camp { padding: 16px 18px 6px; } .camp + .camp { border-top: 1px solid var(--line); }
.camphead { display: flex; align-items: center; justify-content: space-between; gap: 14px 28px; flex-wrap: wrap; }
.campwho { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; } .campwho h3 { margin: 0 4px 0 0; font-size: 17px; font-weight: 800; letter-spacing: -.01em; }
.astats { display: flex; gap: 10px 28px; flex-wrap: wrap; }
.astat { display: grid; gap: 4px; } .astat .lbl { margin: 0; font-size: 10px; white-space: nowrap; } .astat b { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; white-space: nowrap; } .astat.good b { color: var(--ok); }
.adset { margin-top: 14px; padding: 12px 14px 14px; background: var(--panel-2); border-radius: 10px; }
.adsethead { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .adsethead .lbl { margin: 0; font-size: 10px; } .adsethead > b { font-weight: 800; font-size: 14px; } .adsetspend { font-variant-numeric: tabular-nums; }
.creatives { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; margin-top: 12px; }
.cre { display: grid; gap: 6px; align-content: start; padding: 0; background: transparent; border: 0; text-align: left; color: var(--text); cursor: pointer; }
.crepic { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 8px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .18s var(--ease), box-shadow .18s; }
.crepic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.cre:hover .crepic { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--text), 0 10px 22px -12px rgba(0,0,0,.8); }
.cre.off .crepic img { opacity: .5; filter: saturate(.6); }
.crepic .atag { position: absolute; left: 6px; top: 6px; background: rgba(12,13,15,.82); }
.creplay { position: absolute; right: 6px; bottom: 6px; display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 4px; background: rgba(12,13,15,.82); color: #fff; font-weight: 800; font-size: 10.5px; }
.crename { font-weight: 600; font-size: 12.5px; line-height: 1.3; overflow-wrap: anywhere; }
.crespend { font-weight: 800; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.adview { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; padding: 24px; background: rgba(6,7,9,.82); animation: fadeIn .16s ease; }
@keyframes fadeIn { from { opacity: 0; } }
.adbox { display: grid; grid-template-columns: auto minmax(280px, 360px); max-width: min(980px, 100%); max-height: calc(100vh - 48px); background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: rise .22s var(--ease); }
.adpic { position: relative; display: grid; place-items: center; background: #0b0c0e; min-width: 240px; }
.adpic img { display: block; max-height: calc(100vh - 48px); max-width: min(56vw, 560px); object-fit: contain; }
.adbox.video .adpic img { width: 300px; max-width: 40vw; }
.adplay { position: absolute; inset: 0; margin: auto; width: 62px; height: 62px; display: grid; place-items: center; border-radius: 50%; background: rgba(12,13,15,.78); color: #fff; box-shadow: inset 0 0 0 2px rgba(255,255,255,.85); transition: transform .15s var(--ease); } .adplay:hover { transform: scale(1.07); }
.adinfo { position: relative; display: flex; flex-direction: column; gap: 16px; padding: 22px 22px 24px; overflow-y: auto; min-width: 0; }
.adinfo h3 { margin: 0; padding-right: 34px; font-size: 20px; font-weight: 800; letter-spacing: -.01em; overflow-wrap: anywhere; }
.adx { position: absolute; right: 14px; top: 16px; }
.adtags { display: flex; gap: 8px; flex-wrap: wrap; }
.adwhere { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .adwhere > div { display: grid; gap: 4px; } .adwhere .lbl { margin: 0; font-size: 10px; } .adwhere b { font-weight: 700; font-size: 14px; }
.adcopy { display: grid; gap: 5px; } .adcopy .lbl { margin: 0; font-size: 10px; } .adcopy p { margin: 0; font-size: 14px; line-height: 1.45; color: var(--text); }
.adinfo .btn { align-self: flex-start; text-decoration: none; }
@media (max-width: 900px) { .adhead .legend { display: none; } .camp { padding: 14px 12px 4px; } .adset { padding: 10px; } .creatives { grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; }
  .adview { padding: 10px; } .adbox { grid-template-columns: minmax(0, 1fr); overflow-y: auto; max-height: calc(100vh - 20px); } .adpic img, .adbox.video .adpic img { max-width: 100%; width: auto; max-height: 46vh; } .adinfo { overflow: visible; } }

/* ---------- check marks on our texts ---------- */
.im .b .tick { display: inline-flex; vertical-align: -2px; margin-left: 7px; opacity: .62; } .im .b .tick.read { opacity: 1; }
.im .b .tick.bad { opacity: 1; color: #fff; background: var(--bad); border-radius: 50%; padding: 1px; }
/* ---------- quote sent ---------- */
.qdone { display: flex; align-items: center; gap: 14px; } .qdone h3 { margin: 0; font-size: 20px; font-weight: 800; } .qdone b { font-size: 15px; font-variant-numeric: tabular-nums; color: var(--muted); }
.qcheck { flex: none; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--ok); color: var(--ok-ink); animation: pop .35s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.qplaced { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 13.5px; color: var(--ok); }
/* ---------- Future Date: pick the day ---------- */
.fdbox { width: min(360px, 100%); display: grid; gap: 14px; padding: 22px; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: rise .22s var(--ease); }
.fdbox h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.fdquick { display: flex; gap: 8px; flex-wrap: wrap; } .fdquick .atag { cursor: pointer; background: transparent; border: 0; line-height: 2.3; color: var(--text); } .fdquick .atag:hover { box-shadow: inset 0 0 0 1px var(--text); }
.fdmonth { display: flex; align-items: center; justify-content: space-between; } .fdmonth b { font-weight: 800; font-size: 14px; }
.fdgrid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; } .fdgrid i { font-style: normal; text-align: center; font-weight: 700; font-size: 10.5px; color: var(--dim); padding-bottom: 4px; }
.fdgrid button { aspect-ratio: 1; border: 0; border-radius: 8px; background: transparent; color: var(--text); font-weight: 600; font-size: 13.5px; cursor: pointer; }
.fdgrid button:hover:not(:disabled) { background: var(--hover); } .fdgrid button:disabled { color: var(--dim); opacity: .45; cursor: default; } .fdgrid button.on { background: var(--accent); color: var(--accent-ink); font-weight: 800; }
.fdpick { display: grid; gap: 4px; padding-top: 12px; border-top: 1px solid var(--line); } .fdpick .lbl { margin: 0; font-size: 10px; } .fdpick b { font-size: 15px; font-weight: 800; }
.fdacts { display: flex; justify-content: flex-end; gap: 10px; }
/* ---------- lead summary ---------- */
.summary { display: grid; gap: 12px; padding: 16px; align-content: start; width: 100%; }
.sumgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.sumbox { display: grid; gap: 6px; align-content: start; padding: 14px 16px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; }
.sumbox .lbl { margin: 0; font-size: 10px; } .sumbox b { font-weight: 800; font-size: 17px; line-height: 1.25; overflow-wrap: anywhere; } .sumsub { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
.sumbox.hot { border-color: color-mix(in srgb, var(--bad) 45%, transparent); } .sumbox.hot .sumsub { color: var(--bad); font-weight: 700; }
.sumtalk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
.sumsaid, .sumnote { display: grid; gap: 7px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
.sumsaid .lbl, .sumnote .lbl { margin: 0; font-size: 10px; } .sumsaid p, .sumnote p { margin: 0; font-size: 14.5px; line-height: 1.45; overflow-wrap: anywhere; }
.sumsaid.in { border-left: 3px solid var(--muted); } .sumsaid.out { border-left: 3px solid var(--accent); }
.sumnote { border-left: 3px solid var(--warn); }
.sumcount { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; font-size: 13px; color: var(--muted); } .sumcount b { color: var(--text); font-weight: 800; font-size: 15px; margin-right: 4px; }


/* The lead's number as real text in the top bar: the Sendblue Call extension finds numbers written on the page. */
.ltwho .isub { display: flex; align-items: center; gap: 8px; min-width: 0; }
.lphone { font-weight: 600; font-size: 12.5px; color: var(--muted); text-decoration: none; white-space: nowrap; font-variant-numeric: tabular-nums; } .lphone:hover { color: var(--text); }

/* The Summary tab on the right side, next to Notes, Profile and Rentals */
.side[data-panel="summary"] #p-summary { display: flex; animation: rise .2s cubic-bezier(.2,.8,.2,1); overflow-y: auto; }
.sumbox, .sumsaid { background: var(--panel-2); }
.sumbox b { font-size: 16px; }
/* Four tabs fit the side: words only while it is open, icons only on the folded strip */
.lbody:not(.sideshut) .side .ptabs button[data-act="pane"] .ic { display: none; }
/* Folding the notes side gives the room to the chat on every page, Conversations included */
.main .lbody.sideshut, .main[data-view="messages"] .lbody.sideshut { grid-template-columns: minmax(0, 1fr) 56px; }
/* ---------- left sidebar: unread messages as an inbox under the pipeline list ---------- */
.rail .stagelist { flex: 0 1 auto; }
.railinbox { flex: 1 1 0; min-height: 128px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.railinhead { display: flex; align-items: center; justify-content: space-between; padding: 0 3px 0 0; } .railinhead .lbl { margin: 0; }
.railinhead b { font-weight: 800; font-size: 11px; line-height: 1; padding: 3px 7px; border-radius: 9px; color: #06141d; background: var(--accent-text); font-variant-numeric: tabular-nums; }
.railinlist { flex: 1; min-height: 0; overflow-y: auto; display: grid; align-content: start; gap: 2px; margin: 0 -6px; padding: 0 2px; }
.rmsg { position: relative; display: grid; gap: 3px; text-align: left; padding: 8px 8px 9px 22px; border: 0; border-radius: 8px; background: transparent; color: #fff; cursor: pointer; transition: background .15s; }
.rmsg::before { content: ""; position: absolute; left: 8px; top: 14px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent-text); }
.rmsg:hover { background: #151515; } .rmsg.sel { background: #1B1B1B; }
.rmtop { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; } .rmtop b { font-weight: 700; font-size: 13px; overflow-wrap: anywhere; } .rmtop time { flex: none; font-size: 11px; color: #A6A6A6; font-variant-numeric: tabular-nums; }
.rmsaid { font-size: 12px; line-height: 1.35; color: #A6A6A6; overflow-wrap: anywhere; }
.railnone { font-size: 12px; color: #747474; padding: 2px 8px; }
.railgap { display: none; } .shell.slim .railgap { display: block; flex: 1; }
/* ---------- the clock, small ---------- */
.clk { gap: 0; padding: 9px 11px; border-radius: 10px; }
.clkday .lbl { font-size: 9.5px; } .clkday b { font-size: 12.5px; font-weight: 700; }
.clkline { margin-top: 7px; padding-top: 7px; gap: 8px; min-height: 26px; }
.clkstate { font-size: 12.5px; } .clkworked b { font-size: 12.5px; }
.clkgo { flex: none; border: 0; border-radius: 6px; padding: 6px 10px; font-weight: 800; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: #06141d; background: var(--accent-text); cursor: pointer; transition: filter .15s; } .clkgo:hover { filter: brightness(1.12); }
.clkbtns { margin-top: 7px; } .clkbtns button { padding: 5px 4px; font-size: 11px; border-radius: 6px; }
/* Room for the inbox: tighter menu and stage rows in the sidebar */
.rail { gap: 10px; } .rail .nav button { padding: 8px 13px; } .rail .stagelist button { padding: 4px 11px; }
.railinbox { min-height: 150px; } .rmsg { padding: 6px 8px 7px 22px; gap: 1px; } .rmsg::before { top: 12px; }
/* Four tabs always fit the side */
.side .ptabs { padding: 0 10px; gap: 0; } .side .ptabs button[data-act="pane"] { padding-left: 9px; padding-right: 9px; }
@media (max-width: 1500px) { .lbody:not(.sideshut) .side .ptabs button[data-act="pane"] b { display: none; } .side .ptabs { padding: 0 6px; } }

/* The left sidebar is the menu and the unread inbox, nothing else (owner, Nov 28 2026): the inbox is the loud part */
.railinbox { min-height: 0; gap: 8px; margin-top: 6px; padding: 12px 10px 8px; border-radius: 12px; background: #0E0E0E; border: 1px solid rgba(255,255,255,.1); }
.railinhead { padding: 0 2px 8px; border-bottom: 1px solid rgba(255,255,255,.1); }
.railintitle { font-weight: 800; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: #fff; white-space: nowrap; }
.railinhead b { font-size: 13px; padding: 4px 9px; border-radius: 11px; color: #fff; background: var(--bad); box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 28%, transparent); } .railinhead b.zero { background: #2a2a2a; color: #A6A6A6; box-shadow: none; }
.railinlist { margin: 0 -4px; padding: 0; gap: 3px; }
.rmsg { padding: 9px 8px 10px 24px; gap: 3px; border-radius: 8px; } .rmsg::before { left: 9px; top: 15px; width: 8px; height: 8px; background: var(--bad); }
.rmtop b { font-size: 13.5px; } .rmsaid { font-size: 12.5px; color: #C4C4C4; }
.rmsg + .rmsg { box-shadow: 0 -1px 0 rgba(255,255,255,.06); }
.rail .nav button { padding: 11px 13px; }

/* The creative viewer: the ad plays here, numbers in boxes */
.adpic video { display: block; height: min(78vh, 720px); max-width: min(52vw, 520px); background: #000; }
.adnofile { position: absolute; left: 12px; right: 12px; bottom: 12px; padding: 8px 10px; border-radius: 8px; background: rgba(12,13,15,.86); color: #fff; font-size: 12.5px; line-height: 1.35; }
.adbox { grid-template-columns: auto minmax(320px, 400px); }
.aboxes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.abox { display: grid; gap: 5px; align-content: start; padding: 10px 11px; border-radius: 10px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.abox .lbl { margin: 0; font-size: 9.5px; letter-spacing: .1em; } .abox b { font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.adfb { align-self: flex-start; font-size: 13px; }
@media (max-width: 900px) { .adpic video { height: auto; max-height: 52vh; max-width: 100%; } }

/* The right side drags to any width from its left edge */
.sidegrip { position: absolute; left: -5px; top: 0; bottom: 0; width: 10px; cursor: col-resize; z-index: 3; touch-action: none; }
.sidegrip::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
.sidegrip:hover::after, .lbody.sizing .sidegrip::after { background: var(--accent); }
.main .lbody.sized:not(.sideshut), .main[data-view="messages"] .lbody.sized:not(.sideshut) { grid-template-columns: minmax(0, 1fr) min(var(--sidew), max(300px, calc(100% - 480px))); }   /* a wide right side never squeezes the texting area under 480px (opening Conversations after a drag included) */
.lbody.sizing { transition: none; user-select: none; } .lbody.sideshut .sidegrip { display: none; }
@media (max-width: 900px) { .sidegrip { display: none; } }
/* No answer yet / not contacted yet: loud, in the lead bar and on top of the Summary tab */
.rchip { display: inline-flex; align-items: center; gap: 6px; flex: none; border-radius: 4px; padding: 0 8px; font-weight: 800; font-size: 10px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.95; white-space: nowrap; color: #fff; background: var(--bad); }
.rchip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #fff; animation: pulse 2.2s ease-out infinite; }
.rchip.noans { background: color-mix(in srgb, var(--warn) 88%, #000); color: #1b1300; } .rchip.noans::before { background: #1b1300; }
.sumalert { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--bad) 16%, var(--panel)); border: 1px solid color-mix(in srgb, var(--bad) 55%, transparent); }
.sumalert.noans { background: color-mix(in srgb, var(--warn) 14%, var(--panel)); border-color: color-mix(in srgb, var(--warn) 55%, transparent); }
.sumalert b { font-weight: 800; font-size: 15px; } .sumalert span { font-size: 13px; color: var(--muted); line-height: 1.4; }
/* Photos popup */
.phbox { width: min(860px, 100%); max-height: calc(100vh - 48px); display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line-2); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 80px -20px rgba(0,0,0,.9); animation: rise .22s var(--ease); }
.phhead { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); } .phhead h3 { margin: 0; font-size: 17px; font-weight: 800; white-space: nowrap; } .phhead input { flex: 1; min-width: 0; padding: 8px 12px; font-size: 14px; border-radius: 8px; }
.phgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; padding: 16px; overflow-y: auto; }
.phcar { display: grid; gap: 7px; align-content: start; justify-items: start; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; } .phcar.hide { display: none; }
.phpic { display: block; width: 100%; aspect-ratio: 4 / 3; border-radius: 10px; overflow: hidden; background: var(--bg); box-shadow: inset 0 0 0 1px var(--line-2); transition: transform .16s var(--ease), box-shadow .16s; } .phpic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.phcar:hover .phpic { transform: translateY(-2px); box-shadow: inset 0 0 0 1px var(--text); } .phcar b { font-weight: 700; font-size: 13.5px; line-height: 1.3; overflow-wrap: anywhere; }

/* Summary tab: every contact ever, one line each */
.sumhist { display: grid; gap: 0; padding: 12px 14px 4px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-soft); }
.sumhisthead { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding-bottom: 8px; } .sumhisthead .lbl { margin: 0; font-size: 10px; }
.sumrow { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 8px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.sumrow time { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; } .sumrow .atag { justify-self: start; }
.sumrow p { grid-column: 1 / -1; margin: 0; font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; } .sumrow.in p { color: var(--text); font-weight: 600; }

/* The lead bar stays one slim row: name and number on the first line, chips on the second, never a third */
.inmtop { display: flex; align-items: baseline; gap: 10px; min-width: 0; } .inmtop h2 { min-width: 0; }
.ltwho .isub { flex-wrap: nowrap; }
@media (max-width: 1699px) { .inmtop .lphone { display: none; } }   /* no room beside the name on smaller windows; the number is still text on the Profile tab */

/* Chips and the number share one line under the name; whatever does not fully fit drops out of sight, so the bar never grows */
.ltwho .isub { flex-wrap: wrap; height: 20px; overflow: hidden; row-gap: 8px; }
@media (min-width: 1700px) { .main:not([data-view="messages"]) .chat > .ltop .ltwho { min-width: 250px; } }   /* room for a chip and the number under a short name */

/* Sidebar "Conversations": unread on top (pink), then the most recent; the heading opens the full list */
button.railinhead { width: 100%; display: flex; align-items: center; gap: 8px; background: transparent; border: 0; border-bottom: 1px solid rgba(255,255,255,.1); padding: 0 2px 8px; cursor: pointer; color: #fff; text-align: left; }
button.railinhead .railintitle { flex: 1; } .railingo { display: grid; place-items: center; color: #A6A6A6; transition: transform .16s var(--ease), color .16s; }
button.railinhead:hover .railingo { color: #fff; transform: translateX(3px); } .railinbox.on { border-color: var(--accent-text); } .railinbox.on .railingo { color: var(--accent-text); }
.railinsep { padding: 9px 9px 3px; font-weight: 700; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; color: #747474; }
.rmsg.read::before { background: #4a4a4a; } .rmsg.read .rmtop b { font-weight: 600; color: #D6D6D6; } .rmsg.read .rmsaid { color: #8C8C8C; }
.shell:not(.slim) .rail .nav .onlyphone { display: none; }
/* Ad viewer on a phone: one column, boxes fit, the close button stays in reach */
@media (max-width: 900px) {
  .adbox { grid-template-columns: minmax(0, 1fr); } .adpic { min-width: 0; } .adpic video { width: auto; max-width: 100%; margin: 0 auto; }
  .adinfo { padding: 16px 14px 18px; } .aboxes { gap: 6px; } .abox { padding: 8px 8px; } .abox b { font-size: 14px; }
  .adview .adx { position: fixed; right: 14px; top: 14px; z-index: 3; width: 36px; height: 36px; background: rgba(12,13,15,.82); border-color: rgba(255,255,255,.35); color: #fff; }
  .shell .rail .nav .onlyphone { display: flex; }
}
@media (min-width: 901px) { .shell.slim .rail .nav .onlyphone { display: flex !important; } }   /* folded sidebar has no list, so it keeps the Conversations button */

/* The opened ad: a headline number row, what people did as bars, then the rates as plain rows. No grid of boxes. */
.adpath { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); flex-wrap: wrap; }
.adhero { display: grid; grid-template-columns: repeat(3, auto); justify-content: space-between; gap: 14px 18px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.adhero > div { display: grid; gap: 6px; } .adhero .lbl { margin: 0; font-size: 9.5px; letter-spacing: .1em; } .adhero b { font-weight: 800; font-size: 26px; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adhero > div:first-child b { color: var(--text); font-size: 32px; }
.adfunnel { display: grid; gap: 11px; } .adfunnel > .lbl { margin: 0 0 1px; font-size: 10px; }
.frowhead { display: flex; align-items: baseline; gap: 8px; margin-bottom: 5px; font-size: 13.5px; color: var(--muted); } .frowhead b { color: var(--text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; } .frowhead i { margin-left: auto; font-style: normal; font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.frowbar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; } .frowbar i { display: block; height: 100%; border-radius: 4px; animation: grow .7s var(--ease) backwards; }
.adrows { display: grid; } .adrow { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--muted); } .adrow b { color: var(--text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.adinfo { gap: 18px; }
@media (max-width: 900px) { .adhero b { font-size: 21px; } .adhero > div:first-child b { font-size: 25px; } }
/* Emails in the thread: a small sheet of the email itself */
.ecard { align-self: flex-start; width: min(560px, 100%); margin: 6px 0; border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--panel); }
.ecard.out { border-left: 3px solid var(--email, #b48cff); } .ecard.in { border-left: 3px solid var(--muted); } .ecard.hq { border-left: 3px solid var(--warn); }
.ehead { display: flex; align-items: center; gap: 9px; padding: 9px 12px; font-size: 13px; flex-wrap: wrap; } .ehead b { font-weight: 700; overflow-wrap: anywhere; } .ehead time, .ewho { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.etag { flex: none; border-radius: 4px; padding: 0 7px; font-weight: 800; font-size: 9.5px; letter-spacing: .09em; text-transform: uppercase; line-height: 1.9; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.esheet { position: relative; max-height: 132px; overflow: hidden; padding: 14px 16px; background: #0f1012; color: #e6e6e8; font-size: 13px; line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; border-top: 1px solid var(--line); }
.esheet::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line-2); pointer-events: none; }   /* a plain line where a cut-off email continues (no gradients, owner rule) */
.esheet img { display: block; max-width: 150px; max-height: 60px; margin: 0 0 6px; } .esheet a { color: var(--accent-text); }
.ecard.open .esheet { max-height: min(62vh, 620px); overflow-y: auto; } .ecard.open .esheet::after, .esheet.static::after { display: none; }
.esheet.real { padding: 0; background: #fff; } .esheet.real iframe { display: block; width: 100%; height: min(62vh, 620px); border: 0; background: #fff; }
.esheet.static { max-height: none; white-space: normal; }
.equote { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 14px; align-items: baseline; } .equote b { font-weight: 800; font-size: 15px; } .equote span { grid-column: 1; font-size: 12.5px; color: #a9a9ad; } .equote strong { grid-column: 2; grid-row: 1; font-size: 16px; font-weight: 800; font-variant-numeric: tabular-nums; } .equote i { grid-column: 2; grid-row: 2; font-style: normal; font-size: 11.5px; text-transform: capitalize; color: #a9a9ad; justify-self: end; }
.efoot { display: flex; padding: 7px 12px 8px; border-top: 1px solid var(--line); } .efoot .link { font-size: 12.5px; font-weight: 700; }

/* Sidebar Conversations: no box around it, just a line above (owner: natural, a separator, nothing more) */
.railinbox, .railinbox.on { margin-top: 2px; padding: 12px 0 0; background: none; border: 0; border-top: 1px solid rgba(255,255,255,.1); border-radius: 0; }
button.railinhead { border-bottom: 0; padding: 0 2px 4px; }
.railinlist { margin: 0 -6px; }
/* The Conversations page list: same rows as the sidebar's, sized for the page */
.cmsg { position: relative; display: grid; gap: 4px; width: 100%; text-align: left; padding: 12px 14px 12px 32px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; transition: background .15s; }
.cmsg::before { content: ""; position: absolute; left: 13px; top: 18px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.cmsg.read::before { background: var(--line-3); }
.cmsg:hover { background: var(--hover); } .cmsg.sel { background: var(--sel); }
.cmsg .rmtop b { font-size: 14.5px; font-weight: 800; color: var(--text); } .cmsg.read .rmtop b { font-weight: 600; color: var(--text); }
.cmsg .rmtop time { font-size: 12px; color: var(--muted); }
.cmsg .rmsaid { font-size: 13px; line-height: 1.4; color: var(--text); } .cmsg.read .rmsaid { color: var(--muted); }
.cmtags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.cmsep { display: flex; align-items: center; gap: 8px; padding: 14px 14px 6px; font-weight: 700; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
.cmsep.un { color: var(--bad); } .cmsep b { font-weight: 800; font-size: 11px; letter-spacing: 0; padding: 1px 7px; border-radius: 9px; color: #fff; background: var(--bad); }
.ecard { flex: none; }   /* the thread is a column that shrinks its children; the email card keeps its height */

/* Conversation rows stay compact: name and time, one line of the last message, tags */
.cmsg { padding: 8px 14px 9px 32px; gap: 2px; } .cmsg::before { top: 14px; } .cmsg .rmtop b { font-size: 14px; } .cmtags { margin-top: 3px; } .cmsep { padding: 10px 14px 4px; }
@media (max-width: 1400px) { .cmsg .rmtop b { font-size: 13px; } .cmsg .rmsaid { font-size: 12.5px; } }

/* The sidebar's lower block swaps between Conversations and Pipeline as one eased move, in the same space */
.railsec { transition: opacity .18s ease, transform .18s var(--ease); }
.railsec.leaving { opacity: 0; transform: translateX(12px); pointer-events: none; }
.railsec.enter { animation: railIn .34s var(--ease) backwards; }
@keyframes railIn { from { opacity: 0; transform: translateX(-12px); } }
.railsec.enter .rmsg, .railsec.enter .stagelist button { animation: railRow .36s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 10) * 26ms + 70ms); }
@keyframes railRow { from { opacity: 0; transform: translateY(7px); } }
.railinhead.static { display: flex; align-items: center; padding: 0 2px 6px; }
.railsec.pipe .stagelist { flex: 1 1 auto; min-height: 0; overflow-y: auto; align-content: start; gap: 3px; margin: 0 -4px; }
.railsec.pipe .stagelist button { padding: 7px 11px; }
@media (prefers-reduced-motion: reduce) { .railsec.enter, .railsec.enter .rmsg, .railsec.enter .stagelist button { animation: none; } }

/* Call buttons sit in a box with room for the Sendblue Call extension's own text and call buttons beside them */
.callbox { display: flex; flex-direction: row-reverse; align-items: center; gap: 8px; justify-self: end; }
.callbox.bar { flex-direction: row; gap: 6px; }
.callbox > :not(a) { flex: none; margin: 0 !important; }
.rmchan { display: flex; margin-top: 2px; } .rmchan .ctag { font-size: 9px; line-height: 1.7; padding: 0 6px; }
/* The space for the pair is always reserved in a lead row, so rows look the same with or without the extension. When its
   buttons are there they take the place of our own call button (same job), and the lead bar drops its "3 of 45" count to make room. */
.callbox { position: relative; } .lcard .callbox { min-width: 68px; }
.callbox:has(> :not(a)) > a { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; overflow: hidden; }
.ltop:has(.callbox.bar > :not(a)) .inav > span { display: none; }
.etag.hq { color: #1b1300; background: var(--warn); box-shadow: none; } .etag.ghl { color: #fff; background: #6c4fd6; box-shadow: none; }

/* Pipeline fills the whole lower sidebar while Conversations is open: the stages share the height */
.railsec.pipe .stagelist { flex: 1 1 auto; display: grid; grid-auto-rows: minmax(34px, 1fr); align-content: stretch; gap: 5px; margin: 4px -4px 0; overflow-y: auto; }
.railsec.pipe .stagelist button { padding: 0 14px; min-height: 34px; font-size: 14.5px; border-radius: 9px; } .railsec.pipe .stagelist b { font-size: 15px; } .railsec.pipe .stagelist em { border-radius: 9px; }
/* The swap is a takeover: the new block wipes down over a fading copy of the old one */
.railsec.leaving { opacity: 1; transform: none; }
.railsec.ghost { z-index: 1; pointer-events: none; opacity: 1; transition: opacity .5s ease, filter .5s ease; } .railsec.ghost.out { opacity: 0; filter: blur(2px); }
.railsec.enter { position: relative; z-index: 2; background: #000; animation: railTake .48s cubic-bezier(.2,.75,.2,1) backwards; }
@keyframes railTake { from { clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
.railsec.enter .rmsg, .railsec.enter .stagelist button { animation: railRow .4s var(--ease) backwards; animation-delay: calc(min(var(--i, 0), 10) * 30ms + 90ms); }
@media (prefers-reduced-motion: reduce) { .railsec.enter { animation: none; } }
/* The sidebar drags by its right edge; the page gives up room in this order: right side, list of names, texting area */
@media (min-width: 901px) {
  .shell { position: relative; grid-template-columns: var(--railw, 236px) minmax(0, 1fr); }
  .shell.sizing { transition: none; user-select: none; cursor: col-resize; }
  .railgrip { position: absolute; left: calc(var(--railw, 236px) - 5px); top: 0; bottom: 0; width: 10px; z-index: 7; cursor: col-resize; touch-action: none; }
  .railgrip::after { content: ""; position: absolute; left: 4px; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
  .railgrip:hover::after, .shell.sizing .railgrip::after { background: var(--accent); }
  .shell.slim .railgrip { display: none; }
  .main[data-view="messages"] { grid-template-columns: var(--listw, 380px) minmax(0, 1fr) !important; }
  .lbody.peek { position: relative; }
  .main .lbody.peek, .main[data-view="messages"] .lbody.peek { grid-template-columns: minmax(0, 1fr) 56px; }
  .lbody.peek .side { position: absolute; right: 0; top: 0; bottom: 0; width: min(400px, 94%); z-index: 6; box-shadow: -26px 0 54px -22px rgba(0,0,0,.95); }
  .lbody.peek .sidegrip { display: none; }
}
@media (max-width: 900px) { .railgrip { display: none; } .lcard .callbox { min-width: 0; } }
/* Room for the Sendblue pair in the lead bar on smaller windows */
@media (max-width: 1500px) { .ltop:has(.callbox.bar > :not(a)) .ltwho { min-width: 60px; } .ltop:has(.callbox.bar > :not(a)) .ltact { gap: 5px; } }

/* Clock: date and Beirut's time stacked small on the left, Eastern time on the right. Same footprint as before. */
.clk { padding: 8px 11px; } .clkday { align-items: center; } .clkleft { display: grid; gap: 2px; min-width: 0; }
.clkalt { font-weight: 600; font-size: 10.5px; color: #8C8C8C; white-space: nowrap; font-variant-numeric: tabular-nums; }
.clkline { margin-top: 6px; padding-top: 6px; }
.clk { padding: 6px 11px 7px; } .clkline { margin-top: 5px; padding-top: 5px; min-height: 24px; } .clkgo { padding: 5px 10px; }
/* Smaller windows with the Sendblue pair in the bar: their text button stands in for ours, so the name keeps its room and the bar stays one row */
@media (max-width: 1500px) { .ltop:has(.callbox.bar > :not(a)) .ltwho { min-width: 96px; } .ltop:has(.callbox.bar > :not(a)) .ltact > .callbox.bar + .btn { display: none; } }

/* ---------- Home ---------- */
.home { padding: 22px 26px 30px; display: flex; flex-direction: column; gap: 16px; } .home > * { flex: none; }
.hhello { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; } .hhello h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.02em; } .hhello span { font-size: 14px; color: var(--muted); }
.hgrid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; } .hgrid.two { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
.hcard { padding: 20px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-soft); box-shadow: var(--lift); min-width: 0; }
.hcardhead { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; } .hcardhead .lbl { margin: 0; } .hcardhead > b { font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.hgoal { display: flex; align-items: center; gap: 26px; background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--accent) 13%, var(--panel)), var(--panel) 60%); }
.hgoal.done { background: radial-gradient(120% 140% at 0% 0%, color-mix(in srgb, var(--ok) 16%, var(--panel)), var(--panel) 60%); }
.hring { position: relative; flex: none; width: 148px; height: 148px; } .hring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ringbg { fill: none; stroke: var(--panel-2); stroke-width: 12; } .ringfg { fill: none; stroke: var(--accent); stroke-width: 12; stroke-linecap: round; transition: stroke-dashoffset 1s var(--ease); } .hgoal.done .ringfg { stroke: var(--ok); }
.view.enter .ringfg { animation: ringIn 1.1s var(--ease) backwards; } @keyframes ringIn { from { stroke-dashoffset: 339.3; } }
.hringnum { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 2px; } .hringnum b { font-weight: 800; font-size: 46px; line-height: 1; letter-spacing: -.03em; } .hringnum span { font-size: 13px; color: var(--muted); font-weight: 600; }
.hgoaltext { display: grid; gap: 8px; min-width: 0; } .hgoaltext .lbl { margin: 0; } .hgoaltext h3 { margin: 0 0 6px; font-size: 28px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; }
.hgoalrow, .hweekfoot { display: flex; gap: 14px 30px; flex-wrap: wrap; }
.hnum { display: grid; gap: 5px; } .hnum .lbl { margin: 0; font-size: 10px; white-space: nowrap; } .hnum b { font-weight: 800; font-size: 20px; line-height: 1; font-variant-numeric: tabular-nums; white-space: nowrap; } .hnum.good b { color: var(--ok); }
.hdays { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; height: 132px; align-items: end; margin-bottom: 16px; }
.hday { height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; cursor: default; }
.hday b { font-weight: 800; font-size: 14px; font-variant-numeric: tabular-nums; color: var(--muted); } .hday i { width: 100%; max-width: 44px; border-radius: 7px 7px 3px 3px; background: var(--panel-2); transition: filter .15s; }
.hday.hit i { background: var(--ok); } .hday.hit b { color: var(--text); } .hday.now i { box-shadow: 0 0 0 2px var(--accent); } .hday:hover i { filter: brightness(1.2); }
.hday span { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--dim); } .hday.now span { color: var(--accent-text); }
.view.enter .hday i { animation: growUp .7s var(--ease) backwards; transform-origin: bottom; }
.htoday { display: flex; align-items: center; gap: 16px 40px; flex-wrap: wrap; padding: 16px 22px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line-soft); } .htoday > .lbl { margin: 0 8px 0 0; } .htoday .hnum b { font-size: 24px; }
.hcrown { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; font-size: 12.5px; color: var(--warn); }
.hreps { display: grid; } .hrep { display: grid; grid-template-columns: 22px 36px minmax(0, 1fr) auto auto auto; align-items: center; gap: 0 14px; padding: 11px 0; border-top: 1px solid var(--line); } .hrep:first-child { border-top: 0; }
.hrank { font-weight: 800; font-size: 13px; color: var(--dim); text-align: center; } .hrep.first .hrank { color: var(--warn); } .hrep .avatar { width: 36px; height: 36px; font-size: 12px; } .hrep.first .avatar { box-shadow: 0 0 0 2px var(--warn); }
.hrepname { font-weight: 700; font-size: 14.5px; overflow-wrap: anywhere; } .hrepstat { font-size: 12.5px; color: var(--muted); white-space: nowrap; min-width: 64px; text-align: right; } .hrepstat b { color: var(--text); font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; } .hrepstat.money b { color: var(--ok); }
.hnote { margin-top: 12px; font-size: 12px; color: var(--dim); line-height: 1.4; }
.hfun { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; } .hfact { display: grid; gap: 6px; align-content: start; padding: 14px 16px; border-radius: 12px; background: var(--panel-2); }
.hfact .lbl { margin: 0; font-size: 10px; } .hfact b { font-weight: 800; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; } .hfact > span:last-child { font-size: 12.5px; color: var(--muted); line-height: 1.35; }
@media (max-width: 1400px) { .hgrid, .hgrid.two { grid-template-columns: minmax(0, 1fr); } .hrepstat { min-width: 0; } }
@media (max-width: 900px) { .home { padding: 12px; } .hgoal { flex-direction: column; align-items: flex-start; } .hfun { grid-template-columns: minmax(0, 1fr); } .hrep { grid-template-columns: 18px 32px minmax(0, 1fr) auto; } .hrep .hrepstat:nth-of-type(n+2) { display: none; } .nophone { display: none !important; } }
/* Ad tiles: seven across with CAC and LTV */
.mxtiles.adtiles { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; } .adtiles .mxtile { padding: 14px 14px; } .adtiles .mxtile b { font-size: 25px; } .adtiles .mxtile .lbl { white-space: normal; line-height: 1.3; min-height: 2.6em; }
@media (max-width: 1500px) { .mxtiles.adtiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } .adtiles .mxtile .lbl { min-height: 0; } }
@media (max-width: 900px) { .mxtiles.adtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* Flat tints, no gradients (house rule) */
.hgoal { background: color-mix(in srgb, var(--accent) 7%, var(--panel)); border-color: color-mix(in srgb, var(--accent) 30%, var(--line-soft)); } .hgoal.done { background: color-mix(in srgb, var(--ok) 8%, var(--panel)); border-color: color-mix(in srgb, var(--ok) 35%, var(--line-soft)); }

/* The right side never sits on top of the texting area (owner, Nov 28 2026). Opened while the page is tight, it takes
   its own column and the texting area gives up the room. */
@media (min-width: 901px) {
  .main .lbody.peek, .main[data-view="messages"] .lbody.peek { grid-template-columns: minmax(0, 1fr) clamp(300px, 34%, 380px); }
  .lbody.peek .side { position: relative; right: auto; top: auto; bottom: auto; width: auto; z-index: 1; box-shadow: none; }
}
/* The lead bar measures itself (fitBar in app.js) and compacts one step at a time until everything fits the texting
   area it sits on, whatever the name, the stage or the window. Words never get cut: first the button words go (icons
   stay), then the "3 of 17" count, then spacing; then the bar takes a second row for the stage picker and the Move
   button (with its stage name); then the previous/next arrows and the follow-up tag step aside. The name, its tag and the
   number always show in full. */
@media (min-width: 901px) {
  .chat > .ltop { overflow-x: auto; overflow-y: hidden; scrollbar-width: none; } .chat > .ltop::-webkit-scrollbar { display: none; }
  .ltop[data-fit]:not([data-fit="0"]) .ltact .ll, .ltop[data-fit]:not([data-fit="0"]) .ltstage .next .ll { display: none; }
  .ltop[data-fit]:not([data-fit="0"]) .ltact .btn:not(.claim) { width: 34px; height: 34px; padding: 0; }
  .ltop[data-fit]:not([data-fit="0"]):not([data-fit="1"]) .inav span { display: none; }
  .ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"] { gap: 6px !important; padding: 0 10px !important; }
  :is(.ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .stsel { padding: 0 26px 0 10px; }
  :is(.ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltact { gap: 5px; }
  /* 4: two rows: back, who, buttons and arrows on top; the stage picker and "Move to Day 2 Call" under them */
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) { display: grid !important; grid-template-columns: auto minmax(max-content, 1fr) auto auto; grid-template-areas: "back who act nav" "stage stage stage stage"; align-items: center; height: auto !important; min-height: 0 !important; padding: 8px 10px 10px !important; row-gap: 8px !important; }
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .lback { grid-area: back; } :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltwho { grid-area: who; }
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltact { grid-area: act; justify-self: end; } :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .inav { grid-area: nav; justify-self: end; }
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage { grid-area: stage; justify-self: stretch; display: flex; gap: 6px; margin: 0 !important; min-width: 0; }
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .stsel { flex: none; }
  :is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .next { flex: 1 1 auto; justify-content: center; }
  .chat > :is(.ltop[data-fit="4"], .ltop[data-fit="5"]) .ltstage .next .ll { display: inline; }
  /* 5: the previous/next arrows step aside */
  :is(.ltop[data-fit="5"], .ltop[data-fit="6"]) .inav { display: none !important; }
  /* 6: the name and its line get the whole top row; the buttons move down beside the stage, and the follow-up tag steps aside */
  .ltop[data-fit="6"] { grid-template-columns: auto minmax(max-content, 1fr) auto; grid-template-areas: "back who who" "stage stage act"; }
  .ltop[data-fit="6"] .ltwho .isub .fchip { display: none; }
  /* the name and the line under it are never squeezed under their own width (the steps above make the room instead) */
  .chat > .ltop .ltwho, .chat > .ltop .ltwho .inm { min-width: max-content !important; }
  /* the stage picker is sized to its stage by fitBar, never capped short */
  .chat > .ltop .ltstage .stsel { max-width: none; min-width: 0; }
  /* the line under the name (tag, countdown, number) shows whole; the bar steps above make the room */
  .chat > .ltop .ltwho .isub { flex-wrap: nowrap; height: auto; overflow: visible; }
}

/* Pipeline cards: room for the Sendblue pair where the call icon is, always reserved so cards never change height */
.callbox.mini { flex-direction: row; gap: 4px; justify-self: auto; } .bcard footer { min-height: 32px; align-items: center; }
.lcard, .bcard footer, .ltact { overflow: visible; }
/* The name in the lead bar never wraps to a second line (that made the bar taller); the bar compacts around it instead */
@media (min-width: 901px) { .chat > .ltop .ltwho { min-width: min-content !important; } .chat > .ltop .ltwho h2 { white-space: nowrap; } .chat > .ltop { height: 56px; } }

/* Mark as read / unread: a small control that only shows when the pointer is on the row, so it is never hit by accident */
.rmmark { position: absolute; right: 6px; bottom: 6px; display: none; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: #1c1c1c; color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.28); }
.rmsg:hover .rmmark, .cmsg:hover .rmmark { display: grid; } .rmmark:hover { background: var(--accent-text); color: #06141d; box-shadow: none; }
.cmsg .rmmark { right: 12px; bottom: 9px; background: var(--panel-2); color: var(--text); box-shadow: inset 0 0 0 1px var(--line-3); }

.sumwho { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 11px 14px; border-radius: 12px; background: var(--panel-2); border: 1px solid var(--line-soft); } .sumwho .lbl { margin: 0; font-size: 10px; } .sumwho b { font-weight: 800; font-size: 14.5px; } .sumwho > span:last-child { font-size: 12.5px; color: var(--muted); }

/* Conversations: a panel docked on the right, over the live page you came from */
@media (min-width: 901px) {
  #main, #dock { grid-row: 3; grid-column: 1; }
  #dock { position: relative; z-index: 5; justify-self: end; width: var(--dockw, 100%); min-width: 0; overflow: hidden; background: var(--bg); grid-template-columns: var(--listw, 380px) minmax(0, 1fr) !important; }
  #dock.enter { animation: dockIn .3s var(--ease) backwards; } @keyframes dockIn { from { opacity: 0; transform: translateX(26px); } }
  #dock.snap { transition: width .26s var(--ease); } #main { transition: none; }
  #dock.cut { border-left: 1px solid var(--line-2); box-shadow: -26px 0 54px -24px rgba(0,0,0,.95); }
  #dock.nolist { grid-template-columns: 0px minmax(0, 1fr) !important; } #dock.nolist #dockview { visibility: hidden; opacity: 0; }
  #dockview { min-width: 0; overflow: hidden; transition: opacity .18s ease; }
  #dock.merge { transition: grid-template-columns .3s var(--ease); } #dock.merge #dockview { transition: opacity .2s ease, visibility 0s linear .2s; }
  #dock.noside .lbody { grid-template-columns: minmax(0, 1fr) !important; } #dock.noside .side, #dock.noside .sidegrip { display: none !important; }
  #dock.slide .lead { width: 480px; min-width: 480px; }
  .dockgrip { position: absolute; left: 0; top: 0; bottom: 0; width: 10px; z-index: 8; cursor: col-resize; touch-action: none; display: none; }
  #dock.cut .dockgrip { display: block; }
  .dockgrip::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 2px; background: transparent; transition: background .15s; }
  .dockgrip b { position: absolute; left: 3px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 3px; background: var(--line-3); transition: background .15s; }
  .dockgrip:hover::after, .shell.sizing .dockgrip::after { background: var(--accent); } .dockgrip:hover b, .shell.sizing .dockgrip b { background: var(--accent); }
  .railinhead.static { display: flex; align-items: center; } .railinhead.static .railintitle { flex: 1; }
  .railx { display: grid; place-items: center; width: 24px; height: 24px; border: 0; border-radius: 7px; background: transparent; color: #A6A6A6; cursor: pointer; transition: color .15s, background .15s; } .railx:hover { color: #fff; background: #1a1a1a; }
}
/* Home: more to read, built to be left on a screen */
.hgrid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.hcallsbig { display: flex; align-items: baseline; gap: 12px; margin-bottom: 14px; } .hcallsbig b { font-weight: 800; font-size: 54px; line-height: .95; letter-spacing: -.03em; color: var(--bad); } .hcallsbig span { font-size: 14px; color: var(--muted); }
.hcallrow { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 14px; } .hcallrow i { width: 9px; height: 9px; border-radius: 50%; flex: none; } .hcallrow span { flex: 1; font-weight: 600; } .hcallrow b { font-weight: 800; font-size: 17px; font-variant-numeric: tabular-nums; }
.hcallold { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding-top: 11px; border-top: 1px solid var(--line); } .hcallold .lbl { margin: 0; font-size: 10px; } .hcallold b { font-weight: 700; font-size: 14px; } .hcallold > span:last-child { font-size: 13px; color: var(--bad); font-weight: 700; }
.hcalls.done { border-color: color-mix(in srgb, var(--ok) 35%, var(--line-soft)); }
.hcallsdone { display: flex; align-items: center; gap: 14px; padding: 6px 0; } .hcallsdone div { display: grid; gap: 4px; } .hcallsdone b { font-weight: 800; font-size: 18px; } .hcallsdone span:not(.qcheck) { font-size: 13px; color: var(--muted); line-height: 1.4; }
.hlist { display: grid; } .hrow { position: relative; display: grid; gap: 3px; width: 100%; text-align: left; padding: 9px 8px; border: 0; border-top: 1px solid var(--line); background: transparent; color: var(--text); cursor: pointer; border-radius: 6px; transition: background .15s; }
.hrow:first-child { border-top: 0; } .hrow:hover { background: var(--hover); } .hrow.unread { padding-left: 22px; } .hrow.unread::before { content: ""; position: absolute; left: 6px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); }
.hrowtop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; } .hrowtop b { font-weight: 700; font-size: 14px; overflow-wrap: anywhere; } .hrowtop time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hrowsub { font-size: 12.5px; color: var(--muted); line-height: 1.35; overflow-wrap: anywhere; }
.hbadge { font-weight: 800; font-size: 12px; padding: 2px 8px; border-radius: 10px; color: #fff; background: var(--bad); }
.hpipe { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px 22px; }
.hstagehead { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 6px; font-size: 13px; color: var(--muted); } .hstagehead span { font-weight: 600; } .hstagehead b { color: var(--text); font-weight: 800; font-size: 16px; font-variant-numeric: tabular-nums; }
.hstagebar { height: 8px; border-radius: 4px; background: var(--panel-2); overflow: hidden; } .hstagebar i { display: block; height: 100%; border-radius: 4px; background: var(--c); }
.view.enter .hstagebar i { animation: grow .8s var(--ease) backwards; }
@media (max-width: 1400px) { .hgrid.three { grid-template-columns: minmax(0, 1fr); } }

/* "I've got this one" shortens to "Claim" when the bar is tight */
@media (min-width: 901px) { :is(.ltop[data-fit="2"], .ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltact .btn.claim { font-size: 0; padding: 0 10px; height: 34px; } :is(.ltop[data-fit="2"], .ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltact .btn.claim::after { content: "Claim"; font-size: 10.5px; } }

/* The little live timer on a lead nobody has contacted yet */
.tick1 { font-style: normal; font-weight: 800; font-variant-numeric: tabular-nums; margin-left: 7px; padding-left: 7px; border-left: 1px solid currentColor; opacity: .95; }

/* The city is its own thing beside the name (a pin and the city), not one more tag in the row of tags */
.lname { display: flex; align-items: baseline; gap: 4px 12px; flex-wrap: wrap; min-width: 0; } .lname b { font-weight: 700; line-height: 1.25; overflow-wrap: break-word; min-width: 0; }
.lcity { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 12px; color: var(--muted); white-space: nowrap; } .lcity .ic { color: var(--accent-text); position: relative; top: 1px; }
/* Names break between words, never in the middle of one */
.rmtop b, .cmsg .rmtop b, .hrowtop b, .hrepname { overflow-wrap: break-word; word-break: normal; min-width: 0; }
/* The Texts / Everything switch is a solid chip with its own clear space at the top of the thread, never see-through over a message */
@media (min-width: 901px) { .tlseg { opacity: 1 !important; background: var(--panel); box-shadow: 0 8px 20px -10px rgba(0,0,0,.85); } .lbody .timeline { padding-top: 48px; } }
.lname b { font-size: 16px; }

/* ---------- pop-out chat: one conversation in a floating window that stays over every page ---------- */
.popchat { position: fixed; z-index: 70; display: flex; flex-direction: column; min-width: 300px; min-height: 320px; max-width: calc(100vw - 16px); max-height: calc(100vh - 16px); resize: both; overflow: hidden; background: var(--bg); border: 1px solid var(--line-3); border-radius: 14px; box-shadow: 0 30px 80px -18px rgba(0,0,0,.95), 0 0 0 1px rgba(0,0,0,.4); animation: rise .2s var(--ease); }
.popchat.moving { user-select: none; transition: none; box-shadow: 0 40px 90px -16px rgba(0,0,0,1); }
.pophead { flex: none; display: flex; align-items: center; gap: 8px; padding: 10px 10px 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: grab; touch-action: none; } .popchat.moving .pophead { cursor: grabbing; }
.popwho { flex: 1; min-width: 0; display: grid; gap: 2px; } .popwho b { font-weight: 800; font-size: 14.5px; overflow-wrap: break-word; } .popwho span { font-size: 11.5px; color: var(--muted); }
.popbody { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; padding: 10px 12px; } .popbody .im { max-width: 86%; } .popbody .im .b { font-size: 14px; padding: 7px 12px; } .popbody .day { font-size: 11.5px; margin: 12px 0 8px; } .popbody .acts { display: none; }
.popfoot { flex: none; display: flex; align-items: flex-end; gap: 6px; padding: 8px 10px 10px; border-top: 1px solid var(--line); background: var(--panel); }
.popfoot textarea { flex: 1; min-width: 0; min-height: 36px; max-height: 110px; padding: 8px 12px; border-radius: 18px; font-size: 14px; resize: none; field-sizing: content; }
.popfoot .chansel { max-width: 118px; height: 36px; font-size: 12px; } .popfoot .sendbtn { width: 36px; height: 36px; padding: 0; border-radius: 50%; flex: none; }
.rmmark.pop { right: 36px; } .cmsg .rmmark.pop { right: 42px; }
@media (max-width: 900px) { .popchat { left: 8px !important; right: 8px; width: auto !important; top: auto !important; bottom: 70px; height: 60vh !important; resize: none; } }

/* The sidebar's clock and headings hold together at every width the sidebar can be dragged to */
.clkday { gap: 8px; } .clkline { flex-wrap: wrap; row-gap: 6px; } .clkstate { flex: 1 1 auto; } button.railinhead .railintitle { min-width: 0; }

/* Pop-out chat: grab any edge or corner to size it; everything inside stays inside */
.popchat { resize: none; }
.poprz { position: absolute; z-index: 3; } .poprz.n, .poprz.s { left: 12px; right: 12px; height: 7px; cursor: ns-resize; } .poprz.n { top: -2px; } .poprz.s { bottom: -2px; }
.poprz.e, .poprz.w { top: 12px; bottom: 12px; width: 7px; cursor: ew-resize; } .poprz.e { right: -2px; } .poprz.w { left: -2px; }
.poprz.ne, .poprz.nw, .poprz.se, .poprz.sw { width: 16px; height: 16px; } .poprz.ne { top: -2px; right: -2px; cursor: nesw-resize; } .poprz.sw { bottom: -2px; left: -2px; cursor: nesw-resize; } .poprz.nw { top: -2px; left: -2px; cursor: nwse-resize; } .poprz.se { bottom: -2px; right: -2px; cursor: nwse-resize; }
.poprz.se::after { content: ""; position: absolute; right: 5px; bottom: 5px; width: 8px; height: 8px; border-right: 2px solid var(--line-3); border-bottom: 2px solid var(--line-3); border-radius: 0 0 3px 0; }
.pophead { flex-wrap: wrap; row-gap: 8px; } .popseg { flex: none; } .popseg button { padding: 4px 8px; font-size: 9.5px; }
.popbody { overflow-x: hidden; } .popbody > * { max-width: 100%; }
.popbody .im { max-width: 88%; min-width: 0; } .popbody .im .b { overflow-wrap: anywhere; word-break: break-word; max-width: 100%; }
.popbody .im .from { flex-wrap: wrap; row-gap: 2px; max-width: 100%; } .popbody .im .from b { overflow-wrap: anywhere; }
.popbody img { max-width: 100%; height: auto; } .popbody .im .pic { max-width: min(200px, 100%); max-height: 240px; }
.popbody .ecard { width: 100%; min-width: 0; margin: 6px 0; } .popbody .ehead { font-size: 12px; gap: 6px; padding: 7px 10px; } .popbody .ehead b { min-width: 0; overflow-wrap: anywhere; }
.popbody .esheet { padding: 10px 12px; font-size: 12.5px; max-height: 110px; } .popbody .esheet img { max-width: 96px; max-height: 34px; width: auto; }
.popbody .ecard.open .esheet { max-height: 300px; }
.popcall { align-self: center; display: flex; align-items: center; gap: 7px; flex-wrap: wrap; justify-content: center; margin: 6px 0; padding: 4px 10px; border-radius: 999px; background: var(--panel); border: 1px solid var(--line); font-size: 11.5px; color: var(--muted); max-width: 100%; } .popcall time { font-variant-numeric: tabular-nums; }
.popfoot { flex-direction: column; align-items: stretch; gap: 6px; } .poprow { display: flex; align-items: flex-end; gap: 6px; min-width: 0; }
.popfoot .chansel { max-width: 100%; width: 100%; height: 30px; font-size: 12px; }

/* Lead bar: a tag under the name that would be cut steps aside instead */
.ltop.nochip .ltwho .isub .fchip { display: none; }

/* Pop-out chat: the name opens the list of names; the send arrow sits dead center; nothing leaves the window */
button.popwho { flex: 1; min-width: 0; display: grid; gap: 2px; text-align: left; background: transparent; border: 0; padding: 2px 6px; margin: -2px 0 -2px -6px; border-radius: 8px; color: var(--text); cursor: pointer; transition: background .15s; }
button.popwho:hover { background: var(--hover); }
.popwho b { display: flex; align-items: center; gap: 6px; min-width: 0; } .popwho b span { min-width: 0; font-size: 14.5px; color: var(--text); overflow-wrap: anywhere; } .popwho b svg { flex: none; color: var(--muted); transition: transform .18s var(--ease); }
.popwho[aria-expanded="true"] b svg { transform: rotate(180deg); }
.popchat.names .popfoot { display: none; } .popchat.names .popbody { padding: 0 0 8px; }
.popnames { display: grid; } .popnames .cmsep { padding: 12px 14px 5px; }
.popname { position: relative; display: flex; align-items: baseline; gap: 10px; width: 100%; padding: 9px 14px 9px 32px; border: 0; border-bottom: 1px solid var(--line-soft); background: transparent; color: var(--text); text-align: left; cursor: pointer; transition: background .15s; }
.popname::before { content: ""; position: absolute; left: 14px; top: 15px; width: 8px; height: 8px; border-radius: 50%; background: var(--bad); } .popname.read::before { background: var(--line-3); }
.popname b { flex: 1; min-width: 0; font-weight: 800; font-size: 13.5px; overflow-wrap: anywhere; } .popname.read b { font-weight: 600; color: var(--muted); }
.popname time { flex: none; font-size: 11.5px; color: var(--dim); font-variant-numeric: tabular-nums; } .popname:hover, .popname.sel { background: var(--hover); } .popname.sel b { color: var(--text); }
.popfoot .sendbtn { display: grid; place-items: center; gap: 0; width: 36px; height: 36px; min-height: 36px; margin: 0; padding: 0; } .popfoot .sendbtn svg { display: block; }
.popfoot .poprow { align-items: center; } .popfoot textarea { min-height: 36px; }
.popbody .im .from { gap: 6px; } .popbody .im .b a, .popbody .im .b { overflow-wrap: anywhere; }
.popbody { padding-left: 14px; padding-right: 18px; } .popchat.names .popbody { padding: 0 0 8px; }

/* Emails: ours sit on our side of the conversation, the customer's on theirs. Opened, the whole email shows. */
.ecard.out, .ecard.hq { align-self: flex-end; } .ecard.in { align-self: flex-start; }
.ecard.open { width: min(660px, 100%); }
.ecard.open .esheet.real { max-height: none; overflow: visible; } .esheet.real iframe { height: 420px; }
.esheet.real .esum { display: none; }
.popbody .ecard.open .esheet.real { max-height: 420px; overflow-y: auto; }
.efoot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }

/* ---- Nov 29, round 2 ---- */
/* the logo is a button: it starts everything fresh */
.brandbtn { display: flex; align-items: center; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 6px; min-width: 0; } .brandbtn:hover { opacity: .8; }
/* names list: a fold button beside Unread / All, and a thin strip while it is folded */
.listtop { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-width: 0; }
.liststrip { position: relative; display: grid; place-items: center; align-content: start; gap: 8px; width: 100%; height: 100%; padding: 14px 0; border: 0; border-right: 1px solid var(--line); background: var(--bg); color: var(--muted); cursor: pointer; transition: background .15s, color .15s; }
.liststrip:hover { background: var(--hover); color: var(--text); } .liststrip b { min-width: 20px; padding: 1px 5px; border-radius: 9px; background: var(--bad); color: #fff; font-size: 10.5px; font-weight: 800; text-align: center; }
/* the chat bubble Conversations shrinks down to */
.dockbubble { position: fixed; right: 20px; bottom: 104px; z-index: 60; width: 48px; height: 48px; }
.dockbubble.enter { animation: bubbleIn .28s cubic-bezier(.3,1.3,.5,1) backwards; } @keyframes bubbleIn { from { opacity: 0; transform: scale(.4) translateX(30px); } }
.bubblego { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; border: 1px solid var(--line-3); background: var(--accent); color: var(--accent-ink, #06141d); cursor: grab; touch-action: none; box-shadow: 0 16px 34px -12px rgba(0,0,0,.9); transition: transform .15s var(--ease); }
.bubblego:hover { transform: scale(1.05); } .dockbubble.moving .bubblego { cursor: grabbing; transition: none; }
.bubblego b { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center; border-radius: 10px; background: var(--bad); color: #fff; font-size: 11px; font-weight: 800; box-shadow: 0 0 0 2px var(--bg); }
.bubblex { position: absolute; left: -6px; top: -6px; width: 20px; height: 20px; display: none; place-items: center; padding: 0; border-radius: 50%; border: 1px solid var(--line-3); background: var(--panel-2); color: var(--text); cursor: pointer; } .dockbubble:hover .bubblex { display: grid; }
@media (max-width: 900px) { .dockbubble { display: none; } }
/* the edge of Conversations is easier to grab */
@media (min-width: 901px) { .dockgrip { width: 14px; left: -2px; } }
/* Texts / Everything is its own slim row above the messages: it never sits on top of a message */
@media (min-width: 901px) { .lbody .chat .tlseg { position: static; align-self: flex-end; flex: none; margin: 8px 16px 0; } .lbody .timeline { padding-top: 10px; } }
/* the right side at its narrowest: every tab fits, and the summary boxes stack so no text leaves its box */
.side { container-type: inline-size; }
@container (max-width: 372px) { .side .ptabs { padding: 0 4px; } .side .ptabs button[data-act="pane"] { padding-left: 7px; padding-right: 7px; font-size: 12.5px; gap: 4px; } .lbody:not(.sideshut) .side .ptabs button[data-act="pane"] b { display: none; } }
@container (max-width: 430px) { .sumgrid { grid-template-columns: minmax(0, 1fr); } }
.sumbox, .sumsaid, .sumnote { min-width: 0; } .sumsub, .sumbox .lbl { overflow-wrap: anywhere; }
/* the message row: when it has to wrap, the second row fills the width and Send sits on the right, nothing left hanging */
.imrow .pill { flex-grow: 100; } .imrow .chansel { flex: 1 1 auto; max-width: none; }
/* Profile rows: a long value (an email) wraps inside its row instead of running off the side */
.kvrow > b, .kvrow > a { min-width: 0; overflow-wrap: anywhere; } .kvrow > .lbl { flex: none; max-width: 45%; }
/* the tightest lead bar: the name sits on the bar's middle line */
@media (min-width: 901px) { .ltop[data-fit="6"] .ltwho, .ltop[data-fit="6"] .ltwho .inm { align-self: center; align-content: center; } }

/* pop-out chat: the inbox list inside it uses the same rows as Conversations */
.popnames .popmsg { border-bottom: 1px solid var(--line-soft); } .popnames .cmsg .rmtop { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; } .popnames .cmsg .rmsaid { overflow-wrap: anywhere; }
/* pop-out chat made small: the name keeps whole words (never letters stacked down the side) and Texts / Everything takes its own row */
.popchat { container-type: inline-size; }
.popwho b span { overflow-wrap: break-word; word-break: normal; } .popwho { min-width: 96px; }
@container (max-width: 400px) { .pophead { flex-wrap: wrap; row-gap: 8px; } .pophead .popseg { order: 5; flex: 1 1 100%; display: flex; } .pophead .popseg button { flex: 1; } }
/* the sidebar's lower block (conversations <-> pipeline) swaps with one quick plain fade; the wipe with rows arriving one by one read as a glitch */
.railsec.enter { animation: railFade .24s ease backwards; background: transparent; } @keyframes railFade { from { opacity: 0; } }
.railsec.enter .rmsg, .railsec.enter .stagelist button { animation: none; }
.railsec.ghost { transition: opacity .14s ease; filter: none; } .railsec.ghost.out { opacity: 0; filter: none; }

/* on a smaller screen the name is left out of the bar because the names list shows who is open; with the list hidden or folded the name comes back */
@media (min-width: 901px) and (max-width: 1500px) { #dock.nolist .chat > .ltop .ltwho, #dock.listshut .chat > .ltop .ltwho { display: flex; } }
/* a wrapped message row lines up on the right, under the end of the box you type in */
.imrow { justify-content: flex-end; }

/* ---- Nov 29, round 3 ---- */
/* the chat as its own window (so it can sit on another screen): only the chat, filling the window */
body.popmode #shell, body.popmode #dockbubble { display: none !important; }
body.popmode .popchat { left: 0 !important; top: 0 !important; right: 0 !important; bottom: 0 !important; width: auto !important; height: auto !important; max-width: none; max-height: none; min-width: 0; min-height: 0; border: 0; border-radius: 0; box-shadow: none; }
body.popmode .poprz { display: none; } body.popmode .pophead { cursor: default; }
/* unread is unmistakable everywhere a conversation is listed: a pink edge and a pink wash on the whole row, the time in pink */
.cmsg:not(.read), .rmsg:not(.read) { background: color-mix(in srgb, var(--bad) 14%, transparent); box-shadow: inset 3px 0 0 var(--bad); }
.cmsg:not(.read):hover, .rmsg:not(.read):hover, .cmsg.sel:not(.read), .rmsg.sel:not(.read) { background: color-mix(in srgb, var(--bad) 22%, transparent); }
.cmsg:not(.read) .rmtop b, .rmsg:not(.read) .rmtop b { color: #fff; font-weight: 800; } .cmsg:not(.read) .rmtop time, .rmsg:not(.read) .rmtop time { color: var(--bad); font-weight: 700; }
.cmsg.read .rmtop b, .cmsg.read .rmsaid { color: var(--muted); }

/* =====================================================================
   PHONE (Nov 29). The phone is its own layout, not the desktop squeezed. Everything here is under html.ph, which the
   app sets whenever the screen is 900px wide or less, so these rules win over the older scattered phone rules.
   Order of things on a phone: one slim header, the page, tabs along the bottom. A lead or a chat takes the whole screen.
   ===================================================================== */
html.ph { -webkit-text-size-adjust: 100%; }
html.ph body { overscroll-behavior-y: none; }
html.ph .ll { display: inline; }
/* header: one row. Title, then search (folds behind an icon), the clock (a dot and your time), the city, and Add lead as a plus. */
html.ph .topbar { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 8px; height: auto; min-height: 0; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; flex-wrap: nowrap; }
html.ph .topbar h1 { font-size: 18px; grid-column: 1; grid-row: 1; white-space: nowrap; align-self: center; min-width: 0; }
html.ph .topbar > .chip, html.ph .topbar > .spacer, html.ph .topbar > .citysel, html.ph .topbar > .phoneclock { display: none; }
html.ph .topbar .phbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); display: grid; place-items: center; grid-row: 1; grid-column: 2; }
html.ph .phclock { grid-row: 1; grid-column: 3; height: 44px; padding: 0 4px; border: 0; background: transparent; color: var(--text); font-weight: 800; font-size: 13.5px; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.ph .phclock i { width: 10px; height: 10px; border-radius: 50%; background: var(--good, #4ade80); box-shadow: 0 0 0 3px color-mix(in srgb, var(--good, #4ade80) 22%, transparent); } html.ph .phclock.break i { background: var(--warn); box-shadow: 0 0 0 3px color-mix(in srgb, var(--warn) 22%, transparent); }
html.ph .phcity { position: relative; display: none; grid-row: 2; grid-column: 4; justify-self: end; height: 44px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); align-items: center; gap: 5px; color: var(--muted); } html.ph .topbar.finding .phcity { display: inline-flex; } html.ph .phcity b { font-weight: 800; font-size: 13px; color: var(--text); letter-spacing: .03em; }
html.ph .phcity select { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; font-size: 16px; }
html.ph .topbar .newlead { grid-row: 1; grid-column: 4; justify-self: end; width: 44px; height: 44px; padding: 0; border-radius: 10px; justify-content: center; } html.ph .topbar .newlead .ll { display: none; } html.ph .topbar .newlead .ic { width: 20px; height: 20px; }
html.ph .topbar .find { display: none; grid-column: 1 / 4; grid-row: 2; order: 0; min-width: 0; flex: none; } html.ph .topbar.finding .find { display: block; }
html.ph .topbar .searchbox { height: 46px; } html.ph .topbar .findpop { position: fixed; left: 8px; right: 8px; top: auto; width: auto; max-width: none; max-height: 62vh; overflow-y: auto; margin-top: 8px; }
html.ph .topbar.clocking > .phoneclock { display: inline-flex; grid-row: 2; height: 46px; justify-content: center; font-size: 12.5px; margin: 0; grid-column: 1 / 3; } html.ph .topbar.clocking > .phoneclock + .phoneclock { grid-column: 3 / -1; margin: 0; }
html.ph .phoff { grid-column: 1 / -1; grid-row: 2; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 4px 4px 4px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); font-weight: 700; font-size: 14px; color: var(--muted); } html.ph .phoff .btn { height: 44px; padding: 0 16px; font-size: 12px; } html.ph .topbar.finding .phoff { display: none; }

/* pink "new lead" bar: one slim row */
html.ph .banner { min-height: 44px; padding: 0 4px 0 12px; gap: 10px; } html.ph .banner .who { font-size: 15px; }
/* PHONE LOOK: flat lists, like the Phone and Messages apps. No cards inside cards and no tiles of numbers. A hairline
   separates rows, the type carries the order of importance, and each row has one action under the thumb. */
/* Leads: one line for the day, then the people. A row is who, what they want, the last thing said, how long they have waited, and Call. Tap the row to text. */
html.ph .view > .daystrip, html.ph .daystrip { display: block; margin: 0; padding: 12px 16px 10px; overflow: visible; border-bottom: 1px solid var(--line); }
html.ph .daystrip > div { background: none; border: 0; border-radius: 0; box-shadow: none; } html.ph .daystrip .dgroup { display: none; }
html.ph .daystrip .dnow { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; padding: 0; align-items: baseline; }
html.ph .daystrip .dhead { display: contents; } html.ph .daystrip .dhead h2 { display: none; } html.ph .daystrip .dhead span { grid-column: 2; grid-row: 1; font-size: 13px; color: var(--muted); }
html.ph .daystrip .dcap { grid-column: 1; grid-row: 1; display: flex; gap: 14px; font-size: 14px; color: var(--muted); } html.ph .daystrip .dcap span:last-child { order: -1; color: var(--text); font-weight: 700; } html.ph .daystrip .dcap b { font-size: 15px; }
html.ph .daystrip .dbar { grid-column: 1 / -1; grid-row: 2; height: 3px; border-radius: 2px; }
html.ph .calllist { padding: 0 0 20px; display: block; } html.ph .ccol { margin: 0; }
html.ph .ccol > header, html.ph .ccol > .chead, html.ph .ccol header { position: sticky; top: 0; z-index: 2; padding: 14px 16px 8px; background: var(--bg); }
html.ph .ccol .scroll { display: block; padding: 0; gap: 0; }
html.ph .lcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name wait" "want call" "meta call" "last last"; gap: 3px 14px; align-items: start; padding: 13px 16px 14px; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; transform: none !important; }
html.ph .lcard:active { background: var(--hover); } html.ph .lcard.sel { background: var(--sel); }
html.ph .lcard > .avatar { display: none; }
html.ph .lcard .lwho { display: contents; } html.ph .lcard .lname { grid-area: name; display: flex; align-items: baseline; gap: 2px 10px; flex-wrap: wrap; min-width: 0; } html.ph .lcard .lname b { font-size: 17px; font-weight: 800; line-height: 1.25; }
html.ph .lcard .lcity { font-size: 13px; color: var(--muted); }
html.ph .lcard .lmeta { grid-area: meta; display: flex; flex-direction: row; flex-wrap: wrap; gap: 2px 12px; min-width: 0; margin-top: 3px; }
html.ph .lcard .lmeta .fchip, html.ph .lcard .lmeta .srctag { padding: 0; border: 0; box-shadow: none; background: none; border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; line-height: 1.4; } html.ph .lcard .lmeta .srctag { color: var(--muted); font-weight: 600; }
html.ph .lcard .lwant { grid-area: want; display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 10px; min-width: 0; } html.ph .lcard .lwant .lbl { display: none; } html.ph .lcard .lwant .lrowh { display: contents; }
html.ph .lcard .lwant > b { font-size: 15px; font-weight: 600; color: var(--text); order: -1; } html.ph .lcard .lwant .none { font-size: 15px; color: var(--muted); order: -1; }
html.ph .lcard .lwant .srctag, html.ph .lcard .lwant .qpill { padding: 0; border: 0; box-shadow: none; background: none; font-size: 13.5px; font-weight: 600; } html.ph .lcard .lwant .srctag { color: var(--muted); }
html.ph .lcard .llast { grid-area: last; display: block; min-width: 0; margin-top: 7px; } html.ph .lcard .llast .lrowh { display: none; }
html.ph .lcard .llast .lmsg { display: block; font-size: 14px; line-height: 1.4; color: var(--muted); } html.ph .lcard .llast .lmsg > :first-child { display: none; } html.ph .lcard .llast .lmsg span:last-child { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-width: 0; }
html.ph .lcard .llast .nocall { padding: 0; border: 0; background: none; font-size: 14px; font-weight: 600; line-height: 1.4; } html.ph .lcard .llast .nocall .tick1 { display: none; }
html.ph .lcard .lwait { grid-area: wait; display: block; text-align: right; } html.ph .lcard .lwait .lbl { display: none; } html.ph .lcard .lwait b { font-size: 15px; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
html.ph .lcard .callbox, html.ph .lcard > .callbtn { grid-area: call; align-self: center; justify-self: end; margin-top: 4px; } html.ph .lcard .callbtn { width: 48px; height: 48px; } html.ph .lcard .callbtn .ic { width: 20px; height: 20px; }
/* the off-the-clock prompt is a plain bar, not a card */
html.ph .phoff { margin: 0 -12px -8px; padding: 6px 12px 6px 16px; border-radius: 0; border: 0; border-top: 1px solid var(--line); background: none; }
/* An open lead or chat takes the whole screen. Top row: back, who, Call and Quote. Second row: the stage and its next step. Then the tabs. */
html.ph .chat > .ltop, html.ph .main[data-view="messages"] .chat > .ltop, html.ph .main:not([data-view="messages"]) .chat > .ltop { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "back who act" "stage stage stage"; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; height: auto; min-height: 0; align-items: center; }
html.ph .ltop .lback { grid-area: back; width: 44px; height: 44px; display: grid; place-items: center; }
html.ph .ltop .ltwho, html.ph .main[data-view="messages"] .chat > .ltop .ltwho { grid-area: who; display: flex; min-width: 0 !important; } html.ph .ltop .ltwho .inm { min-width: 0; gap: 2px; }
html.ph .ltop .ltwho h2 { font-size: 17px; line-height: 1.2; white-space: normal; overflow: visible; overflow-wrap: anywhere; } html.ph .ltop .ltwho .isub { display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; margin: 0; } html.ph .ltop .lphone { font-size: 13px; }
html.ph .ltop .ltact { grid-area: act; display: flex; gap: 6px; justify-self: end; } html.ph .ltop .ltact .ll { display: none; } html.ph .ltop .ltact .btn { width: 44px; height: 44px; padding: 0; flex: none; justify-content: center; border-radius: 10px; } html.ph .ltop .ltact .btn .ic { width: 19px; height: 19px; }
html.ph .ltop .ltact [data-act="textthem"] { display: none; } html.ph .ltop .ltact .callbox { display: inline-flex; gap: 6px; }
html.ph .ltop .inav, html.ph .main[data-view="messages"] .chat > .ltop .inav { display: none; }
html.ph .ltop .ltstage { grid-area: stage; display: flex; gap: 8px; margin: 0; justify-self: stretch; min-width: 0; } html.ph .ltop .ltstage > .lbl { display: none; }
html.ph .ltop .ltstage .stsel { flex: 1 1 0; min-width: 0; max-width: none; height: 44px; font-size: 16px; padding: 0 30px 0 12px; border-radius: 10px; }
html.ph .ltop .ltstage .next { flex: 1.15 1 0; min-width: 0; height: 44px; padding: 0 10px; justify-content: center; font-size: 12px; line-height: 1.15; white-space: normal; text-align: center; border-radius: 10px; gap: 6px; } html.ph .ltop .ltstage .next .ll { display: none; }
html.ph .side .ptabs { height: 46px; padding: 0 4px; } html.ph .side .ptabs button { min-height: 44px; font-size: 13.5px; }
/* the thread: bubbles, then the message box pinned to the bottom with Send under the thumb */
html.ph .lbody .timeline { padding: 8px 10px 10px; } html.ph .lbody .tlseg { margin: 6px 10px 0; }
html.ph .composer { padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 6px; }
html.ph .imrow { display: grid; grid-template-columns: 44px 44px minmax(0, 1fr) 44px; grid-template-areas: "plus car pill send" "chan chan chan chan"; gap: 6px; align-items: end; }
html.ph .imrow .plus { width: 44px; height: 44px; min-height: 44px; border-radius: 10px; } html.ph .imrow .pill { grid-area: pill; min-height: 44px; flex: none; } html.ph .composer .pill textarea { font-size: 16px; }
html.ph .imrow .sendbtn { grid-area: send; width: 44px; height: 44px; min-height: 44px; padding: 0; border-radius: 50%; display: grid; place-items: center; gap: 0; } html.ph .imrow .sendbtn .ll { display: none; }
html.ph .imrow .chansel { grid-area: chan; width: 100%; max-width: none; height: 38px; font-size: 16px; flex: none; }
html.ph .ltop .ltact .btn, html.ph .ltop .ltact .callbox .btn { min-width: 44px; width: 44px; } html.ph .ltop .ltact .callbox { min-width: 44px; }
html.ph .ltop .ltstage, html.ph .main[data-view="messages"] .chat > .ltop .ltstage { width: 100%; margin: 0; }
/* lead tabs on a phone: full width, 12px gutters */
html.ph .summary { padding: 12px; gap: 10px; } html.ph .sumgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } html.ph .sumgrid > .sumbox:first-child { grid-column: 1 / -1; } html.ph .sumbox { padding: 12px 14px; }
html.ph .side .pbody { padding-left: 12px; padding-right: 12px; } html.ph .side #p-summary { padding: 0; }
/* Pipeline on a phone: one stage fills the screen. The picker on top names it (and jumps to any other); a swipe goes to the next. */
html.ph .phstage { position: relative; display: flex; align-items: center; margin: 10px 10px 0; flex: none; } html.ph .phstage i { position: absolute; left: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--c, var(--muted)); pointer-events: none; }
html.ph .phstage select { width: 100%; height: 48px; padding: 0 36px 0 34px; font-size: 17px; font-weight: 800; border-radius: 12px; background-color: var(--panel); border: 1px solid var(--line-2); color: var(--text); }
html.ph .view:has(> .board) { display: flex; flex-direction: column; min-height: 0; }
html.ph .board { flex: 1; min-height: 0; padding: 10px 0 0; gap: 0; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; } html.ph .board::-webkit-scrollbar { display: none; }
html.ph .bcol { flex: 0 0 100%; width: 100%; scroll-snap-align: start; scroll-snap-stop: always; padding: 0 10px; } html.ph .bcol > header { display: none; }
html.ph .bcol .scroll { padding-bottom: 14px; } html.ph .bcard { padding: 12px 14px; border-radius: 12px; } html.ph .bcard header b { font-size: 16px; } html.ph .bcard dl { font-size: 14px; }
html.ph .bcard footer .cicon { width: 44px; height: 44px; display: grid; place-items: center; } html.ph .bcard footer .cicon .ic { width: 19px; height: 19px; }
html.ph .ccol > header, html.ph .ccol header { padding-left: 16px; }
/* Conversations: the inbox reads like Messages. Name, when, what was said. Unread is a pink edge and wash. How it was sent and the stage are plain small words under it. */
html.ph .msgs .listhead { padding: 10px 12px 8px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: center; } html.ph .msgs .listhead .listtop { display: contents; }
html.ph .msgs .listhead .seg button { min-height: 44px; padding: 0 14px; font-size: 12px; } html.ph .msgs .listhead .searchbox { height: 44px; min-width: 0; }
html.ph .cmsg { padding: 12px 16px 13px 30px; gap: 3px; } html.ph .cmsg::before { left: 12px; top: 19px; }
html.ph .cmsg .rmtop b { font-size: 16.5px; } html.ph .cmsg .rmtop time { font-size: 13px; } html.ph .cmsg .rmsaid { font-size: 14.5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
html.ph .cmsg .cmtags { gap: 2px 12px; margin-top: 4px; } html.ph .cmsg .cmtags .ctag, html.ph .cmsg .cmtags .stag { padding: 0; background: none; box-shadow: none; border: 0; border-radius: 0; font-size: 12px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; }
html.ph .cmsg .cmtags .ctag { color: var(--muted); } html.ph .cmsg .cmtags .ctag.c-imessage { color: #4da3ff; } html.ph .cmsg .cmtags .stag { color: color-mix(in srgb, var(--c) 60%, #fff); } html.ph .cmsg .cmtags .stag::before { display: none; }
html.ph .cmsep { padding: 14px 16px 6px; font-size: 12px; }
/* Summary: a sheet you read top to bottom, not a wall of boxes */
html.ph .summary { padding: 4px 16px 20px; gap: 0; }
html.ph .sumgrid { display: block; } html.ph .sumbox, html.ph .sumbox.hot { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 0; box-shadow: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; }
html.ph .sumbox .lbl { font-size: 12px; } html.ph .sumbox b { font-size: 18px; } html.ph .sumsub { font-size: 14px; }
html.ph .sumtalk { display: block; } html.ph .sumtalk > *, html.ph .summary > .sumbox { background: none; border: 0; border-radius: 0; border-bottom: 1px solid var(--line); padding: 14px 0; }
html.ph .sumsaid, html.ph .sumnote { background: none; border-radius: 0; border-top: 0; border-right: 0; border-bottom: 0; padding: 4px 0 4px 14px; margin: 14px 0 0; } html.ph .sumsaid .lbl, html.ph .sumnote .lbl { font-size: 12px; } html.ph .sumsaid p, html.ph .sumnote p { font-size: 15.5px; }
html.ph .sumcount { padding: 16px 0 0; }
/* Notes: entries down the page with a hairline between, the kind of note in color */
html.ph .side #p-notes { padding: 12px 16px 20px; } html.ph .noteadd { margin-bottom: 4px; } html.ph .noteadd textarea { font-size: 16px; min-height: 46px; } html.ph .noteadd .btn { height: 46px; padding: 0 18px; }
html.ph .note, html.ph .note.tr { background: none; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); gap: 6px; } html.ph .note .lbl { font-size: 12px; } html.ph .note time { font-size: 12.5px; } html.ph .nbody { font-size: 15px; } html.ph .note .more { font-size: 13px; min-height: 32px; }
/* Profile: plain rows */
html.ph .side #p-details { padding: 4px 16px 20px; } html.ph #p-details .card { background: none; border: 0; border-radius: 0; padding: 0; box-shadow: none; } html.ph .kvrow { padding: 13px 0; } html.ph .kvrow .lbl { font-size: 12px; } html.ph .kvrow b, html.ph .kvrow a { font-size: 15.5px; } html.ph .kvrow select { font-size: 16px; min-height: 40px; }
/* Pipeline rows: the same flat list as Leads */
html.ph .bcol { padding: 0; } html.ph .bcol .scroll { display: block; padding: 0 0 16px; }
html.ph .bcard { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 13px 10px 13px 16px; box-shadow: none; transform: none !important; }
html.ph .bcard header { grid-column: 1; } html.ph .bcard header b { font-size: 17px; font-weight: 800; white-space: normal; overflow: visible; }
html.ph .bcard dl { grid-column: 1; display: block; font-size: 14.5px; line-height: 1.45; color: var(--muted); } html.ph .bcard dt { display: none; } html.ph .bcard dd { display: block; white-space: normal; overflow: visible; } html.ph .bcard dd:nth-of-type(2) { color: var(--text); }
html.ph .bcard footer { grid-column: 2; grid-row: 1 / span 2; border: 0; padding: 0; gap: 2px; align-self: center; } html.ph .bcard footer .since { display: none; } html.ph .bcard footer [data-act="note"], html.ph .bcard footer .cicon:nth-of-type(n+3) { display: none; }
html.ph .sumwho, html.ph .sumhist { background: none; border: 0; border-radius: 0; padding: 14px 0; border-bottom: 1px solid var(--line); box-shadow: none; } html.ph .sumwho .lbl, html.ph .sumhist .lbl { font-size: 12px; } html.ph .sumhist { border-bottom: 0; }
html.ph .sumsaid.in { border-left: 3px solid var(--muted); } html.ph .sumsaid.out { border-left: 3px solid var(--accent); }
html.ph .bcard header { padding: 0; } html.ph .bcard dd:last-of-type { display: none; } html.ph .bcard footer > :nth-child(n+3) { display: none; } html.ph .bcard footer .callbox { display: inline-flex; }
/* Metrics, Home and Settings on a phone: statements you read down the page (label on the left, the number on the right), not tiles */
html.ph .metrics { padding: 6px 16px 24px; gap: 0; } html.ph .mxtiles, html.ph .mxtiles.adtiles { display: block; margin: 6px 0 10px; }
html.ph .mxtile, html.ph .mxtile.adtile { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 13px 0; transform: none !important; }
html.ph .mxtile .lbl { font-size: 13px; letter-spacing: .06em; white-space: normal; } html.ph .mxtile b, html.ph .adtiles .mxtile b { font-size: 22px; letter-spacing: 0; }
html.ph .mxcard { background: none; border: 0; border-radius: 0; box-shadow: none; overflow: visible; margin-top: 18px; } html.ph .mxcard .cardhead { padding: 0 0 6px; } html.ph .mxcard > :not(.cardhead) { padding-left: 0; padding-right: 0; }
html.ph .home { padding: 8px 16px 24px; gap: 0; } html.ph .hcard, html.ph .hgoal, html.ph .hgoal.done { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 18px 0; }
html.ph .hfun { grid-template-columns: minmax(0, 1fr); gap: 0; } html.ph .hfact { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; background: none; border-radius: 0; padding: 12px 0; border-bottom: 1px solid var(--line); }
html.ph .settings { display: block; padding: 4px 16px 24px; } html.ph .settings .card { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 18px 0; }
html.ph .settings select, html.ph .settings input, html.ph .metrics select { font-size: 16px; min-height: 44px; } html.ph .metrics .seg button, html.ph .settings .seg button { min-height: 44px; }
/* forms that slide in take the whole screen, no colored edge */
html.ph .modal.drawer .box { width: 100vw; border-left: 0; padding: calc(16px + env(safe-area-inset-top)) 16px calc(20px + env(safe-area-inset-bottom)); } html.ph .modal input, html.ph .modal textarea, html.ph .modal select { font-size: 16px; min-height: 46px; } html.ph .modal .seg button, html.ph .modal .chips button { min-height: 44px; }
/* bottom tabs: thumb sized, clear of the iPhone home bar */
html.ph .tabs { padding: 2px 4px calc(2px + env(safe-area-inset-bottom)); } html.ph .tabs button { min-height: 52px; font-size: 11.5px; gap: 3px; } html.ph .tabs button .ic { width: 22px; height: 22px; }
/* swiping a conversation left toggles read / unread, the way Messages does */
html.ph .cmsg { touch-action: pan-y; transition: transform .18s var(--ease); } html.ph .cmsg.swiping { transition: none; }
html.ph .cmsg .rmmark { display: none !important; }

/* links and photos inside a message */
.im .b a.blink { color: inherit; text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; } .im .b .bimg { display: block; max-width: 100%; max-height: 260px; border-radius: 10px; margin: 2px 0; }
/* phone keyboard and typing: the app is as tall as the space above the keyboard; while you type, the stage row and the tabs step aside so the thread keeps the room */
html.ph .shell { height: var(--vvh, 100dvh); }
html.ph .lbody:has(#msg:focus) .ltstage, html.ph .lbody[data-pane="chat"]:has(#msg:focus) .side, html.ph .lbody:has(#msg:focus) .tlseg { display: none; }
html.ph .composer .bar #fx, html.ph .composer .count { display: none !important; } html.ph .composer .bar:not(:has(.warn:not(:empty))) { display: none; } html.ph .composer .warn { font-size: 12px; text-align: left; }
html.ph .composer .pill, html.ph .composer .pill:focus-within { box-shadow: none; } html.ph .composer .pill textarea { outline: 0; max-height: 132px; }
/* thread labels on a phone: the customer's bubbles need no name; the time and, when it is not iMessage, how it came */
html.ph .im .from { font-size: 12px; gap: 6px; } html.ph .im.in .from b { display: none; } html.ph .im .from .ctag.c-imessage { display: none; } html.ph .im .from .ctag { font-size: 12px; padding: 0; background: none; color: var(--muted); letter-spacing: .06em; text-transform: uppercase; } html.ph .im .from time { font-size: 12px; }
html.ph .lbody .tlseg button { min-height: 36px; padding: 0 14px; font-size: 12px; }
/* toasts sit above the bottom tabs, with a thumb-sized Undo */
html.ph #toast { bottom: calc(74px + env(safe-area-inset-bottom)); max-width: calc(100vw - 24px); font-size: 14px; padding: 10px 12px 10px 16px; } html.ph .shell:has(.main.open) ~ #toast, html.ph #app:has(.main.open) ~ #toast { bottom: calc(150px + env(safe-area-inset-bottom)); } html.ph #toast button { min-height: 36px; padding: 0 14px; font-size: 12px; }
html.ph .banner .x, html.ph .banner [data-act="banneroff"] { width: 44px; height: 44px; display: grid; place-items: center; }
/* emails opened inside a thread take the screen's width and scroll with the thread */
html.ph .ecard, html.ph .ecard.open { width: 100%; max-width: 100%; } html.ph .ecard.open .esheet { max-height: none; overflow: visible; } html.ph .efoot .link, html.ph .ecard .link { min-height: 40px; font-size: 13px; display: inline-flex; align-items: center; }
/* a phone on its side: the stage row steps aside and bubbles keep a readable width */
@media (max-height: 500px) { html.ph .ltop .ltstage { display: none; } html.ph .im { max-width: 70%; } html.ph .side .ptabs { height: 40px; } html.ph .tabs button { min-height: 44px; flex-direction: row; gap: 6px; } }
html.ph .ltop .ltact .btn, html.ph .ltop .ltact .callbox .btn { height: 44px; min-height: 44px; }

/* ---- phone, from the testers' findings ---- */
/* Leads already starts with the New Lead section, so the pink bar would say it twice; on the other pages it is one line that fits */
html.ph .stage:has(#main[data-view="today"]) #banner { display: none; }
html.ph .banner .who { white-space: normal; overflow: visible; text-overflow: clip; font-size: 14.5px; line-height: 1.2; flex: 1; min-width: 0; } html.ph .banner .timer b, html.ph .banner .timer { font-size: 15px; white-space: nowrap; }
/* section headers stay on screen while you scroll, so you always know which list you are in */
html.ph .lsec > header { position: sticky; top: 0; z-index: 2; background: var(--bg); padding: 12px 16px 8px; margin: 0; } html.ph .lsub { padding: 10px 16px 4px; } html.ph .lsec { margin: 0; }
/* the follow-up type is already the heading above the rows, so the rows do not repeat it */
html.ph .lcard .lmeta .fchip { display: none; } html.ph .lcard .lmeta:not(:has(.srctag)) { display: none; }
/* a lead whose customer wrote last: pink dot by the name and their words in white */
html.ph .lcard.unread .lname b::before { content: ""; display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--bad); margin-right: 8px; vertical-align: 2px; } html.ph .lcard.unread .llast .lmsg { color: var(--text); font-weight: 600; }
/* bottom tabs: readable badge */
html.ph .tabs button b { font-size: 11px; min-width: 18px; }
/* the lead's top row never cuts the number: the status and the number each get their line when they need it */
html.ph .ltop .ltwho .isub { height: auto; overflow: visible; }
/* Profile: labels keep to one line where they can, long values wrap, and Remove is a real button */
html.ph .kvrow > .lbl { flex: 0 1 auto; max-width: 46%; overflow-wrap: normal; } html.ph .kvrow.tall > .lbl { max-width: none; } html.ph #leadlinks .link, html.ph #leadlinks button { min-height: 44px; font-size: 13.5px; }
html.ph .card.res { background: none; border: 0; border-bottom: 1px solid var(--line); border-radius: 0; padding: 14px 0; font-size: 15px; } html.ph .card.res .link { min-height: 40px; display: inline-flex; align-items: center; font-size: 13.5px; } html.ph .side #p-rentals { padding: 4px 16px 20px; }
/* Add lead and other forms: one field per row, thumb sized choices, and the form scrolls so the button is always reachable */
html.ph .modal.drawer .box { overflow-y: auto; } html.ph .modal .grid2 { grid-template-columns: minmax(0, 1fr); } html.ph .choices span { min-height: 44px; display: grid; place-items: center; padding: 0 16px; font-size: 12px; } html.ph .modal .lbl { font-size: 12px; } html.ph .modal .iconbtn { width: 44px; height: 44px; }
/* the Future Date picker is a sheet from the bottom that scrolls, so Cancel and Move are never off the screen */
html.ph #fdview { align-items: flex-end; padding: 0; overflow-y: auto; } html.ph .fdbox { width: 100%; max-height: 92%; overflow-y: auto; border-radius: 16px 16px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); }
html.ph .fdquick .atag { min-height: 44px; padding: 0 14px; font-size: 13px; line-height: 44px; } html.ph .fdmonth .iconbtn { width: 44px; height: 44px; } html.ph .fdgrid button { font-size: 15px; } html.ph .fdacts .btn { min-height: 46px; flex: 1; }
/* the quote window on a phone: readable sizes, who it is for on top, total and Send pinned */
html.ph .quote .qfor { display: block; } html.ph .quote select, html.ph .quote input { font-size: 16px; min-height: 44px; } html.ph .quote .iconbtn { width: 44px; height: 44px; } html.ph .quote .btn { min-height: 44px; }
html.ph .qfoot { margin: auto 0 0; padding: 10px 14px calc(12px + env(safe-area-inset-bottom)); }
/* settings on the narrowest phones */
html.ph .settings .seg { display: flex; flex-wrap: wrap; max-width: 100%; } html.ph .settings .seg button { flex: 1 1 auto; }

/* More: Metrics is the first row */
html.ph .phmore { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 2px 10px; width: 100%; padding: 16px 0; margin: 0; background: none; border: 0; border-bottom: 1px solid var(--line); color: var(--text); text-align: left; } html.ph .phmore b { font-size: 17px; font-weight: 800; } html.ph .phmore span { grid-column: 1; font-size: 14px; color: var(--muted); } html.ph .phmore .ic { grid-column: 2; grid-row: 1 / span 2; color: var(--muted); }
html.ph .tabs button b.un { background: var(--bad); color: #fff; }
/* popups on a phone never run wider than the screen */
html.ph #modal .box { max-width: 100vw; overflow-x: hidden; } html.ph #modal .box table { display: block; max-width: 100%; overflow-x: auto; } html.ph #modal .box .btn { min-height: 44px; }
html.ph #adview { padding: 0; } html.ph #adview .iconbtn { width: 44px; height: 44px; }
html.ph #tip { max-width: calc(100vw - 16px); font-size: 13.5px; line-height: 1.4; white-space: normal; }
/* Home on a phone: the goal ring sits beside its words instead of over an empty half */
html.ph .hgoal, html.ph .hgoal.done { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; } html.ph .hgoal > :first-child { zoom: .66; } html.ph .hgoaltext h3 { font-size: 22px; } html.ph .home h2, html.ph .home .hhello h2 { font-size: 24px; }
html.ph .home .link, html.ph .home a.link { min-height: 40px; display: inline-flex; align-items: center; font-size: 13.5px; }
.cav { display: none; }

/* =====================================================================
   PHONE SIZES (Nov 29, owner: "everything is way too big, it has to look like a normal iPhone").
   The sizes below are the iPhone's own: a 44px top bar, 16px row titles, 14px second lines, 12px small print,
   36px round buttons, a 50px tab bar. Icons are plain glyphs, not boxed buttons. Tap areas stay 44px.
   ===================================================================== */
/* top bar: 44px. Plain icons. It shrinks further as you scroll; the bars under it fold away. */
html.ph .topbar { padding: calc(2px + env(safe-area-inset-top)) 8px 2px 16px; gap: 0; grid-template-columns: minmax(0, 1fr) 44px auto 44px; border-bottom: 0; box-shadow: none; background: var(--bg); }
html.ph .topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; transition: font-size .18s var(--ease); } html.ph .shell.scrolled .topbar h1 { font-size: 17px; } html.ph .shell.scrolled .topbar { border-bottom: 1px solid var(--line); }
html.ph .topbar .phbtn, html.ph .topbar .newlead { width: 44px; height: 44px; border: 0; background: none; color: var(--accent-text, var(--accent)); border-radius: 50%; } html.ph .topbar .phbtn .ic, html.ph .topbar .newlead .ic { width: 22px; height: 22px; }
html.ph .phclock { height: 44px; padding: 0 6px; font-size: 13px; font-weight: 700; } html.ph .phclock i { width: 8px; height: 8px; }
html.ph .topbar .find { grid-column: 1 / 4; margin: 2px 0 6px; } html.ph .topbar .searchbox { height: 38px; border-radius: 10px; } html.ph .phcity { height: 38px; margin: 2px 6px 6px 8px; border-radius: 10px; } html.ph .phcity b { font-size: 12.5px; }
html.ph .topbar.clocking > .phoneclock { height: 38px; font-size: 11.5px; margin: 2px 8px 6px 0; border-radius: 10px; } html.ph .topbar.clocking > .phoneclock + .phoneclock { margin: 2px 8px 6px 0; }
/* off the clock: one quiet line with a text button, folds away on scroll */
html.ph .phoff { margin: 0; padding: 0 8px 6px 0; border: 0; background: none; font-size: 13.5px; font-weight: 600; max-height: 44px; overflow: hidden; transition: max-height .2s var(--ease), opacity .2s, padding .2s; } html.ph .phoff span { color: var(--muted); }
html.ph .phoff .btn { height: 32px; min-height: 0; padding: 0 14px; font-size: 11px; border-radius: 16px; }
html.ph .shell.scrolled .phoff { max-height: 0; opacity: 0; padding-bottom: 0; }
/* pink new-lead line: slim, folds away on scroll */
html.ph #banner { max-height: 60px; overflow: hidden; transition: max-height .2s var(--ease); } html.ph .shell.scrolled #banner { max-height: 0; }
html.ph .banner { min-height: 36px; padding: 0 0 0 16px; gap: 8px; box-shadow: none; } html.ph .banner .lbl, html.ph .banner > :first-child { font-size: 10.5px; } html.ph .banner .who { font-size: 14px; font-weight: 700; } html.ph .banner .timer, html.ph .banner .timer b { font-size: 13.5px; }
html.ph .banner .x, html.ph .banner [data-act="banneroff"] { width: 40px; height: 36px; }
/* bottom tabs: the iPhone's 50px bar */
html.ph .tabs { padding: 0 2px env(safe-area-inset-bottom); } html.ph .tabs button { min-height: 50px; padding: 5px 2px 3px; gap: 2px; font-size: 10.5px; font-weight: 600; box-shadow: none; } html.ph .tabs button.on { box-shadow: none; color: var(--accent-text, #6DCBFD); } html.ph .tabs button .ic { width: 23px; height: 23px; }
html.ph .tabs button b { top: 3px; left: 54%; font-size: 10.5px; min-width: 17px; height: 17px; line-height: 17px; padding: 0 4px; }

/* CHATS: the inbox looks like Messages. A round picture, the name, when, two grey lines of what was said. Unread: a pink dot and white text. */
html.ph .msgs .listhead { display: block; padding: 0 16px 8px; max-height: 60px; overflow: hidden; transition: max-height .2s var(--ease), padding .2s, opacity .2s; } html.ph .shell.scrolled .msgs .listhead { max-height: 0; padding-bottom: 0; opacity: 0; }
html.ph .msgs .listhead .listtop { display: none; } html.ph .msgs .listhead .searchbox { height: 36px; border-radius: 10px; border: 0; background: var(--panel-2); } html.ph .msgs .listhead .searchbox input { font-size: 16px; }
html.ph .cmsep { display: none; }
html.ph .cmsg, html.ph .cmsg:not(.read) { display: grid; grid-template-columns: 44px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; row-gap: 1px; align-items: start; padding: 9px 16px 0 26px; background: none; box-shadow: none; border: 0; min-height: 0; }
html.ph .cmsg:active { background: var(--hover); }
html.ph .cmsg .cav { display: grid; place-items: center; grid-row: 1 / span 2; width: 44px; height: 44px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 15px; letter-spacing: .02em; align-self: center; margin-bottom: 9px; }
html.ph .cmsg::before { left: 9px; top: 50%; margin-top: -5px; width: 10px; height: 10px; background: var(--bad); } html.ph .cmsg.read::before { display: none; }
html.ph .cmsg .rmtop { grid-column: 2; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; min-width: 0; } html.ph .cmsg .rmtop b, html.ph .cmsg.read .rmtop b { font-size: 16px; font-weight: 700; color: var(--text); line-height: 1.3; }
html.ph .cmsg .rmtop time, html.ph .cmsg:not(.read) .rmtop time { font-size: 13.5px; font-weight: 400; color: var(--muted); white-space: nowrap; } html.ph .cmsg:not(.read) .rmtop time { color: var(--bad); font-weight: 600; }
html.ph .cmsg .rmsaid { grid-column: 2; font-size: 14.5px; line-height: 1.32; color: var(--muted); min-height: calc(2 * 1.32em); padding-bottom: 10px; border-bottom: 1px solid var(--line); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; box-sizing: content-box; }
html.ph .cmsg:not(.read) .rmsaid { color: var(--text); } html.ph .cmsg .cmtags { display: none; }

/* LEADS and PIPELINE rows: iPhone list sizes */
html.ph .daystrip { padding: 2px 16px 10px; border-bottom: 0; max-height: 60px; overflow: hidden; transition: max-height .2s var(--ease), padding .2s, opacity .2s; } html.ph .shell.scrolled .daystrip { max-height: 0; padding-top: 0; padding-bottom: 0; opacity: 0; }
html.ph .daystrip .dcap { font-size: 13.5px; gap: 12px; } html.ph .daystrip .dcap b { font-size: 13.5px; } html.ph .daystrip .dhead span { font-size: 12.5px; }
html.ph .lsec > header { padding: 14px 16px 6px; } html.ph .lsec > header h2, html.ph .lsec > header b:first-of-type { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; } html.ph .lsub { padding: 8px 16px 2px; }
html.ph .lcard { padding: 10px 12px 11px 16px; gap: 1px 12px; } html.ph .lcard .lname b { font-size: 16px; font-weight: 700; } html.ph .lcard .lcity { font-size: 12.5px; } html.ph .lcard .lcity .ic { width: 11px; height: 11px; }
html.ph .lcard .lwant > b { font-size: 14px; font-weight: 500; color: var(--muted); } html.ph .lcard .lwant .none { font-size: 14px; } html.ph .lcard .lwant .srctag, html.ph .lcard .lwant .qpill { font-size: 13px; }
html.ph .lcard .lmeta { margin-top: 2px; } html.ph .lcard .lmeta .srctag { font-size: 11.5px; letter-spacing: .05em; }
html.ph .lcard .llast { margin-top: 4px; } html.ph .lcard .llast .lmsg, html.ph .lcard .llast .nocall { font-size: 13.5px; line-height: 1.35; } html.ph .lcard .llast .lmsg span:last-child { -webkit-line-clamp: 1; }
html.ph .lcard .lwait b { font-size: 13px; font-weight: 700; }
html.ph .lcard .callbtn { width: 36px; height: 36px; background: none; box-shadow: inset 0 0 0 1.5px var(--line-3); color: var(--accent-text, var(--accent)); position: relative; } html.ph .lcard .callbtn::after { content: ""; position: absolute; inset: -6px; } html.ph .lcard .callbtn .ic { width: 17px; height: 17px; }
html.ph .lcard .callbox, html.ph .lcard > .callbtn { margin-top: 2px; }
html.ph .phstage { margin: 2px 16px 6px; } html.ph .phstage select { height: 40px; font-size: 16px; font-weight: 700; border-radius: 10px; border: 0; background-color: var(--panel-2); padding: 0 34px 0 32px; } html.ph .phstage i { left: 13px; width: 9px; height: 9px; }
html.ph .board { padding-top: 0; } html.ph .bcard { padding: 10px 6px 11px 16px; } html.ph .bcard header b { font-size: 16px; font-weight: 700; } html.ph .bcard dl { font-size: 14px; line-height: 1.4; }
html.ph .bcard footer .cicon { width: 40px; height: 40px; color: var(--accent-text, var(--accent)); } html.ph .bcard footer .cicon .ic { width: 18px; height: 18px; }

/* THE CHAT: one 48px top row (back, who and stage, call, quote), slim tabs, bubbles, a Messages-style box */
html.ph .chat > .ltop, html.ph .main[data-view="messages"] .chat > .ltop, html.ph .main:not([data-view="messages"]) .chat > .ltop { grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "back who act" "back stage act"; gap: 0 4px; padding: calc(4px + env(safe-area-inset-top)) 6px 4px 4px; background: var(--bg); }
html.ph .ltop .lback { width: 40px; height: 44px; border: 0; background: none; color: var(--accent-text, var(--accent)); align-self: center; } html.ph .ltop .lback .ic { width: 22px; height: 22px; }
html.ph .ltop .ltwho h2 { font-size: 16px; font-weight: 700; line-height: 1.25; } html.ph .ltop .ltwho .isub { display: none; }
html.ph .ltop .ltstage, html.ph .main[data-view="messages"] .chat > .ltop .ltstage { width: auto; justify-self: start; max-width: 100%; } html.ph .ltop .ltstage .next { display: none; }
html.ph .ltop .ltstage .stsel { flex: none; width: auto; max-width: 100%; height: 24px; padding: 0 20px 0 0; border: 0; background-color: transparent; background-position: right 2px center; font-size: 16px; font-weight: 500; color: var(--muted); border-radius: 0; box-shadow: none; transform: scale(.84); transform-origin: left center; }
html.ph .ltop .ltact { gap: 0; align-self: center; } html.ph .ltop .ltact .btn, html.ph .ltop .ltact .callbox .btn { width: 44px; min-width: 44px; height: 44px; min-height: 44px; border: 0; background: none; box-shadow: none; color: var(--accent-text, var(--accent)); } html.ph .ltop .ltact .btn .ic { width: 21px; height: 21px; }
html.ph .side .ptabs { height: 38px; padding: 0 8px; border-top: 1px solid var(--line); } html.ph .side .ptabs button { min-height: 38px; font-size: 13px; font-weight: 600; padding: 0 4px; }
html.ph .lbody .tlseg { margin: 6px 12px 0; } html.ph .lbody .tlseg button { min-height: 28px; padding: 0 10px; font-size: 10.5px; }
html.ph .lbody .timeline { padding: 6px 12px 8px; } html.ph .im { max-width: 78%; } html.ph .im .b { font-size: 16px; line-height: 1.32; padding: 8px 13px; border-radius: 18px; }
html.ph .im .from { justify-content: center; width: 100%; margin: 10px 0 4px; } html.ph .im .from b, html.ph .im .from .ctag { display: none; } html.ph .im .from time { font-size: 11.5px; color: var(--muted); font-weight: 500; }
html.ph .day { font-size: 11.5px; margin: 10px 0 2px; }
html.ph .composer { padding: 6px 10px calc(6px + env(safe-area-inset-bottom)); gap: 2px; border-top: 1px solid var(--line); background: var(--bg); }
html.ph .imrow { grid-template-columns: 34px 34px minmax(0, 1fr) 34px; grid-template-areas: "plus car pill send" "chan chan chan chan"; gap: 2px 6px; align-items: end; }
html.ph .imrow .plus { width: 34px; height: 36px; min-height: 0; border: 0; background: none; color: var(--muted); border-radius: 50%; position: relative; } html.ph .imrow .plus::after { content: ""; position: absolute; inset: -4px -2px; } html.ph .imrow .plus .ic { width: 21px; height: 21px; }
html.ph .imrow .pill { min-height: 36px; padding: 6px 12px; border-radius: 18px; background: var(--panel); border: 1px solid var(--line-2); } html.ph .composer .pill textarea { font-size: 16px; line-height: 1.3; min-height: 22px; padding: 0; }
html.ph .imrow .sendbtn { width: 32px; height: 32px; min-height: 0; margin-bottom: 2px; position: relative; } html.ph .imrow .sendbtn::after { content: ""; position: absolute; inset: -6px; } html.ph .imrow .sendbtn .ic { width: 16px; height: 16px; }
html.ph .imrow .chansel { height: 26px; border: 0; background-color: transparent; padding: 0 20px 0 2px; font-size: 16px; font-weight: 500; color: var(--muted); width: auto; max-width: 100%; justify-self: start; transform: scale(.78); transform-origin: left center; background-position: right 2px center; }
html.ph .composer .warn { font-size: 11.5px; }

/* the lead's other tabs: iPhone reading sizes */
html.ph .summary { padding: 0 16px 20px; } html.ph .sumbox, html.ph .sumbox.hot { padding: 11px 0; gap: 1px; } html.ph .sumbox .lbl, html.ph .sumwho .lbl, html.ph .sumhist .lbl, html.ph .sumsaid .lbl, html.ph .sumnote .lbl { font-size: 11px; letter-spacing: .09em; }
html.ph .sumbox b { font-size: 16px; font-weight: 700; } html.ph .sumsub { font-size: 13.5px; } html.ph .sumsaid p, html.ph .sumnote p { font-size: 15px; } html.ph .sumwho, html.ph .sumhist { padding: 11px 0; }
html.ph .side #p-notes { padding: 10px 16px 20px; } html.ph .noteadd textarea { min-height: 40px; border-radius: 10px; } html.ph .noteadd .btn { height: 40px; padding: 0 14px; font-size: 11px; border-radius: 10px; }
html.ph .note, html.ph .note.tr { padding: 11px 0; gap: 4px; } html.ph .note .lbl { font-size: 11px; } html.ph .note time { font-size: 12px; } html.ph .nbody { font-size: 14.5px; line-height: 1.45; } html.ph .note.tr .nbody { font-size: 13.5px; }
html.ph .kvrow { padding: 10px 0; } html.ph .kvrow .lbl { font-size: 11px; } html.ph .kvrow b, html.ph .kvrow a { font-size: 15px; font-weight: 600; }
/* Metrics, Home, More */
html.ph .mxtile, html.ph .mxtile.adtile { padding: 11px 0; } html.ph .mxtile .lbl { font-size: 12px; } html.ph .mxtile b, html.ph .adtiles .mxtile b { font-size: 18px; }
html.ph .home h2, html.ph .home .hhello h2 { font-size: 22px; } html.ph .hgoaltext h3 { font-size: 19px; } html.ph .hgoal > :first-child { zoom: .5; } html.ph .hcard, html.ph .hgoal, html.ph .hgoal.done { padding: 14px 0; }
html.ph .phmore { padding: 13px 0; } html.ph .phmore b { font-size: 16px; font-weight: 700; } html.ph .phmore span { font-size: 13.5px; }
html.ph .metrics .seg button, html.ph .settings .seg button { min-height: 36px; font-size: 11px; }
html.ph .cmsg, html.ph .cmsg:not(.read) { padding: 9px 16px 10px 26px; position: relative; } html.ph .cmsg .cav { margin-bottom: 0; }
html.ph .cmsg .rmsaid { min-height: 0; padding-bottom: 0; border-bottom: 0; box-sizing: border-box; max-height: calc(2 * 1.32em); }
html.ph .cmsg::after { content: ""; position: absolute; left: 82px; right: 0; bottom: 0; height: 1px; background: var(--line); }
html.ph .ltop .ltstage .stsel, html.ph .imrow .chansel { field-sizing: content; }
html.ph .hgoal > :first-child { zoom: .62; } html.ph .lcard .llast .nocall { text-transform: none; letter-spacing: 0; font-weight: 600; }
html.ph .ltop .ltstage .stsel { height: 40px; margin: -8px 0 -10px; }
html.ph .sumalert { background: none; border: 0; border-left: 3px solid var(--bad); border-radius: 0; padding: 4px 0 4px 12px; margin: 12px 0 4px; }

/* ---- phone, second round from the testers ---- */
.tljump { display: none; }
html.ph .lbody.up[data-pane="chat"] .tljump { display: grid; place-items: center; order: 3; align-self: flex-end; width: 36px; height: 36px; margin: -44px 12px 8px 0; z-index: 3; border-radius: 50%; border: 1px solid var(--line-2); background: var(--panel-2); color: var(--text); position: relative; }
html.ph .cmsg { overflow: visible; } html.ph #msglist { overflow-x: hidden; }
html.ph .cmsg .swlabel { position: absolute; left: 100%; top: 0; bottom: 0; width: 96px; display: grid; place-items: center; background: var(--bad); color: #fff; font-weight: 700; font-size: 14px; }
/* quote on a phone: the whole screen, the total and Build pinned to the bottom and always in view */
html.ph .quote:has(.qwrap) { position: fixed; inset: 0; height: auto !important; z-index: 60; display: flex; flex-direction: column; border-top: 0; padding-top: env(safe-area-inset-top); }
html.ph .quote .qwrap { flex: 1; min-height: 0; overflow-y: auto; } html.ph .quote .qbody, html.ph .quote .qside { overflow: visible; }
html.ph .quote .qfoot { position: sticky; bottom: 0; margin: auto -16px 0; padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); gap: 6px 12px; max-height: 44vh; overflow-y: auto; }
html.ph .quote .lbl { font-size: 11px; } html.ph .quote .qgrid { grid-template-columns: minmax(0, 1fr); gap: 10px; }
/* toasts on a phone sit just above whatever is at the bottom */
html.ph #toast, html.ph #app:has(.main.open) ~ #toast, html.ph .shell:has(.main.open) ~ #toast { bottom: calc(72px + env(safe-area-inset-bottom)); width: max-content; }
/* Summary: the list of every contact is the Chat tab, so the phone summary stops at the counts */
html.ph .sumhist { display: none; }
/* labels on a phone are plain words, not small capitals: read like the phone's own settings */
html.ph .kvrow .lbl, html.ph .sumbox .lbl, html.ph .sumwho .lbl, html.ph .sumsaid .lbl, html.ph .sumnote .lbl, html.ph .mxtile .lbl, html.ph .hfact .lbl { text-transform: none; letter-spacing: 0; font-size: 13.5px; font-weight: 500; color: var(--muted); }
html.ph #hqbox .card { padding-left: 0; padding-right: 0; background: none; border-left: 0; border-right: 0; border-radius: 0; } html.ph #hqbox .link, html.ph .efoot .link { min-height: 40px; display: inline-flex; align-items: center; }
html.ph .ecard.open .efoot { position: sticky; bottom: 0; background: var(--panel); z-index: 1; } html.ph .etag { font-size: 11.5px; } html.ph #adview input { font-size: 16px; }

/* ---- phone, last batch from the testers ---- */
html.ph .topbar { grid-template-columns: minmax(0, 1fr) 44px minmax(18px, auto) 44px; } html.ph .topbar .find { grid-column: 1 / 3; } html.ph .phcity { grid-column: 3 / -1; margin: 2px 6px 6px 8px; }
html.ph .phclock { min-width: 44px; justify-content: center; }
html.ph .topbar h1 .phcitytag { font-style: normal; font-size: 12.5px; font-weight: 600; color: var(--muted); margin-left: 8px; letter-spacing: 0; }
/* lead rows: nothing that repeats on every row (the city when one city is picked, "no car picked yet", the automatic greeting email) */
html.ph:not([data-city="all"]) .lcard .lcity { display: none; } html.ph .lcard .lwant .none { display: none; } html.ph .lcard .lwant:not(:has(b, .srctag, .qpill)) { display: none; }
html.ph .lcard .llast:has(.ctag.c-email) { display: none; }
html.ph .lsub .fchip { padding: 0; border: 0; box-shadow: none; background: none; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; } html.ph .lsub b { font-size: 12px; }
/* pipeline rows show how long the lead has been in the stage; Call and Chat sit apart */
html.ph .bcard footer { gap: 8px; } html.ph .bcard footer .since { display: inline; order: -1; font-size: 12.5px; font-weight: 600; color: var(--muted); margin: 0 2px 0 0; }
/* Home and More leftovers */
html.ph .htoday { background: none; border: 0; border-radius: 0; box-shadow: none; padding-left: 0; padding-right: 0; } html.ph .home .lbl { text-transform: none; letter-spacing: 0; font-size: 13px; font-weight: 500; }
html.ph .settings .link, html.ph .metrics .link, html.ph .metrics [data-act="mxclear"] { min-height: 40px; display: inline-flex; align-items: center; font-size: 13.5px; }
/* Add lead: the button rides at the bottom of the form, always in reach */
html.ph .modal.drawer .box .btn.wide { position: sticky; bottom: 0; z-index: 2; min-height: 46px; font-size: 12.5px; }
/* touch has no hover: a tapped row does not stay lit */
@media (hover: none) { html.ph .lcard:hover, html.ph .bcard:hover, html.ph .cmsg:hover, html.ph .mxtile:hover { background: none; box-shadow: none; border-color: var(--line); } html.ph .cmsg:hover { border-color: transparent; } }

/* =====================================================================
   UNREAD (owner, Nov 29): a conversation row looks like a regular conversation. No red wash, no red edge, no red time.
   Unread is one clear red dot and a bold white name; the counts that say how many are unread are the same red.
   ===================================================================== */
:root { --unread: #FF3B30; }
.cmsg:not(.read), .rmsg:not(.read), html.ph .cmsg:not(.read) { background: transparent; box-shadow: none; }
.cmsg:not(.read):hover { background: var(--hover); } .cmsg.sel:not(.read) { background: var(--sel); }
.rmsg:not(.read):hover { background: #151515; } .rmsg.sel:not(.read) { background: #1B1B1B; }
.cmsg:not(.read) .rmtop time, .rmsg:not(.read) .rmtop time, html.ph .cmsg:not(.read) .rmtop time { color: var(--muted); font-weight: 400; }
.cmsg:not(.read)::before, .rmsg:not(.read)::before, html.ph .cmsg:not(.read)::before, .popname:not(.read)::before { background: var(--unread); }
.cmsg:not(.read)::before, .rmsg:not(.read)::before { width: 9px; height: 9px; }
.cmsg:not(.read) .rmtop b, .rmsg:not(.read) .rmtop b { color: #fff; font-weight: 800; } .cmsg:not(.read) .rmsaid, .rmsg:not(.read) .rmsaid { color: var(--text); }
.cmsep.un { color: var(--muted); } .cmsep.un b, .railinhead b:not(.zero), html.ph .tabs button b.un, .liststrip b, .bubblego b { background: var(--unread); color: #fff; box-shadow: none; }
html.ph .lcard.unread .lname b::before { background: var(--unread); } html.ph .cmsg .swlabel { background: var(--unread); }
@media (hover: none) { html.ph .cmsg:not(.read):hover { background: transparent; } }

/* =====================================================================
   RECENT and HOME (Nov 29). Plain lists with hairlines, the type does the work. No cards, no number tiles.
   ===================================================================== */
.recent, .home2 { overflow-y: auto; height: 100%; }
.recent { padding: 18px 28px 40px; } .recent > * { max-width: 980px; }
.rchead { display: grid; gap: 10px; margin-bottom: 8px; }
.rcwho { display: flex; flex-wrap: wrap; gap: 6px; } .rcwho button { height: 32px; padding: 0 14px; border-radius: 16px; border: 1px solid var(--line-2); background: none; color: var(--muted); font-weight: 600; font-size: 13.5px; cursor: pointer; } .rcwho button:hover { color: var(--text); } .rcwho button.on { background: var(--text); color: var(--bg); border-color: var(--text); }
.rcsum { margin: 0; font-size: 14.5px; color: var(--text); }
.rcday h3 { position: sticky; top: -18px; z-index: 1; display: flex; align-items: baseline; gap: 10px; margin: 0; padding: 18px 0 8px; background: var(--bg); font-size: 17px; font-weight: 800; border-bottom: 1px solid var(--line); }
.rcday h3 span { font-size: 13px; font-weight: 500; color: var(--muted); } .rcday h3 b { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--muted); }
.rcrow { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 12px; width: 100%; padding: 11px 6px 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; }
.rcrow:hover { background: var(--hover); } .rcrow.sel { background: var(--sel); }
.rcic { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); margin-top: 1px; }
.rcmain { display: grid; gap: 2px; min-width: 0; }
.rctop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; } .rctop b { font-size: 15.5px; font-weight: 700; min-width: 0; overflow-wrap: anywhere; } .rctop time { flex: none; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.rcline { font-size: 14px; line-height: 1.4; color: var(--muted); min-width: 0; } .rcsaid { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.rcout { font-weight: 600; color: var(--muted); } .rcout.ok { color: var(--ok); }
.rcreply { font-size: 14px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; } .rcreply i { font-style: normal; font-weight: 700; }
.rcmeta { font-size: 12.5px; color: var(--dim, var(--muted)); margin-top: 2px; } .rcmeta em::before { content: ""; display: inline-block; width: 3px; height: 3px; border-radius: 50%; background: currentColor; vertical-align: middle; margin: 0 7px; }
.rcnone { margin: 0; padding: 16px 0; color: var(--muted); font-size: 14px; } .rcfoot { margin: 22px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }

.home2 { padding: 26px 32px 44px; } .home2 > * { max-width: 1240px; }
.h2top { display: grid; gap: 8px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.h2date { font-size: 13.5px; color: var(--muted); font-weight: 500; }
.h2top h2 { margin: 0; font-size: 30px; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; } .h2top h2 b { font-weight: 800; color: var(--accent-text, var(--accent)); }
.h2bar { height: 4px; max-width: 420px; border-radius: 2px; background: var(--panel-2); overflow: hidden; } .h2bar i { display: block; height: 100%; background: var(--accent); border-radius: 2px; } .h2bar.done i { background: var(--ok); }
.h2top p { margin: 4px 0 0; font-size: 15px; color: var(--muted); line-height: 1.5; }
.h2cols { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, 1fr); gap: 40px; align-items: start; }
.h2sec { padding-top: 22px; } .h2sec h3 { display: flex; align-items: baseline; gap: 10px; margin: 0 0 4px; padding-bottom: 8px; border-bottom: 1px solid var(--line); font-size: 17px; font-weight: 800; }
.h2sec h3 span { font-size: 13px; font-weight: 500; color: var(--muted); } .h2sec h3 .link { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--accent-text, var(--accent)); background: none; border: 0; padding: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.h2rep { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; padding: 12px 6px 12px 2px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; } .h2rep:hover { background: var(--hover); }
.h2rep .cav { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--panel-2); color: var(--muted); font-weight: 700; font-size: 14px; }
.h2repmain { display: grid; gap: 3px; min-width: 0; } .h2reptop { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; } .h2reptop b { font-size: 16px; font-weight: 700; } .h2repline { font-size: 14px; color: var(--muted); line-height: 1.4; }
.h2rep time { font-size: 13px; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; }
.h2pres { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: var(--muted); } .h2pres i { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); } .h2pres.brk i { background: var(--warn); }
.h2unnamed { margin: 10px 0 0; font-size: 13px; color: var(--muted); }
.h2wait { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; width: 100%; padding: 12px 6px 12px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); text-align: left; cursor: pointer; } .h2wait:hover { background: var(--hover); }
.h2wait > b { font-size: 26px; font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); } .h2wait.hot > b { color: var(--unread, #FF3B30); }
.h2wait span { display: grid; gap: 2px; font-size: 13.5px; color: var(--muted); min-width: 0; } .h2wait em { font-style: normal; font-size: 15px; font-weight: 700; color: var(--text); }
.h2week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; align-items: end; height: 120px; padding: 14px 0 0; }
.h2week > div { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; height: 100%; } .h2week b { font-size: 13px; font-weight: 700; color: var(--muted); } .h2week i { width: 100%; max-width: 26px; border-radius: 4px 4px 1px 1px; background: var(--panel-2); }
.h2week .hit i { background: var(--ok); } .h2week .now i { background: var(--accent); } .h2week .now b, .h2week .hit b { color: var(--text); } .h2week span { font-size: 12px; color: var(--muted); } .h2week .now span { color: var(--text); font-weight: 700; }
.h2note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); line-height: 1.5; }
@media (max-width: 1180px) and (min-width: 901px) { .h2cols { grid-template-columns: minmax(0, 1fr); gap: 0; } }

/* phone */
html.ph .recent { padding: 4px 16px 24px; } html.ph .rcwho { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; } html.ph .rcwho button { height: 34px; flex: none; font-size: 14px; }
html.ph .rcday h3 { top: -4px; font-size: 16px; padding: 14px 0 6px; } html.ph .rcrow { grid-template-columns: 32px minmax(0, 1fr); gap: 10px; padding: 10px 0 11px; } html.ph .rcic { width: 32px; height: 32px; }
html.ph .rctop b { font-size: 16px; } html.ph .rcline, html.ph .rcreply { font-size: 14px; }
html.ph .home2 { padding: 4px 16px 24px; } html.ph .h2top { padding-bottom: 16px; } html.ph .h2top h2 { font-size: 24px; } html.ph .h2top p { font-size: 14px; }
html.ph .h2cols { display: flex; flex-direction: column; gap: 0; } html.ph .h2main, html.ph .h2side { display: contents; } html.ph .h2team { order: 1; } html.ph .h2waiting { order: 2; } html.ph .h2recent { order: 3; } html.ph .h2weeksec { order: 4; } html.ph .h2sec { padding-top: 16px; } html.ph .h2sec h3 { font-size: 16px; }
html.ph .h2rep { grid-template-columns: 40px minmax(0, 1fr); } html.ph .h2rep time { grid-column: 2; font-size: 12.5px; } html.ph .h2wait > b { font-size: 22px; }

/* the Live tag beside the logo: this copy reads GoHighLevel as it is right now (read only) */
.brand .tag.live { align-self: center; font-size: 9px; padding: 2px 6px; color: var(--ok); border: 1px solid color-mix(in srgb, var(--ok) 55%, transparent); background: none; border-radius: 4px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
/* a long free-text date ("any weekend in December, maybe the 12th") wraps inside the row instead of running off the phone */
html.ph .lcard .lwant .srctag, html.ph .lcard .lwant > b { white-space: normal; overflow-wrap: anywhere; max-width: 100%; min-width: 0; }

/* Demo on live data: the tag says Demo, the green dot says the data is live */
.brand .tag.livedemo { display: inline-flex; align-items: center; gap: 5px; } .brand .tag.livedemo i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }
.topbar h1 .phdemo { font-style: normal; display: inline-flex; align-items: center; gap: 5px; margin-left: 8px; padding: 2px 7px; border-radius: 6px; border: 1px solid var(--line-2); font-size: 10.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); vertical-align: 3px; }
.topbar h1 .phdemo.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); }

/* ---- one look for every list of people (owner, Nov 29) ----
   Conversations wear the same round picture as lead rows: initials, ringed in the lead's stage color.
   Their tags take the lead rows' shape: outlined, the stage in its color, the channel in grey. */
.cmsg:has(> .cav) { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; padding-left: 30px; }
.cmsg:has(> .cav) > .cav { grid-row: 1 / span 3; align-self: start; width: 38px; height: 38px; font-size: 12.5px; margin-top: 1px; }
.cmsg:has(> .cav) > :not(.cav):not(.rmmark) { grid-column: 2; } .cmsg:has(> .cav)::before { left: 11px; top: 22px; }
.cmtags .ctag, .rmchan .ctag { background: none; color: var(--muted); box-shadow: inset 0 0 0 1px var(--line-2); }
.cmtags .stag { background: none; color: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); border: 0; } .cmtags .stag::before { display: none; }
.rclen { font-variant-numeric: tabular-nums; color: var(--muted); font-weight: 600; margin-left: 4px; }
/* phone: the same picture on lead rows and conversation rows, and the same small-capital tags */
html.ph .cmsg .cav, html.ph .cmsg:has(> .cav) > .cav { width: 44px; height: 44px; font-size: 14px; grid-row: 1 / span 3; align-self: center; margin: 0; background: color-mix(in srgb, var(--c) 16%, #171717); color: var(--text); box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--c) 70%, transparent); }
html.ph .cmsg, html.ph .cmsg:not(.read), html.ph .cmsg:has(> .cav) { grid-template-columns: 44px minmax(0, 1fr); column-gap: 12px; padding-left: 26px; }
html.ph .cmsg .cmtags { display: flex; grid-column: 2; gap: 2px 12px; margin-top: 3px; }
html.ph .cmsg .cmtags .ctag, html.ph .cmsg .cmtags .stag { padding: 0; box-shadow: none; border: 0; background: none; font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
html.ph .cmsg .cmtags .ctag { color: var(--muted); } html.ph .cmsg .cmtags .stag { color: color-mix(in srgb, var(--c) 60%, #fff); }
html.ph .lcard > .avatar { display: grid; grid-area: av; width: 44px; height: 44px; font-size: 14px; align-self: start; margin-top: 2px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 3.5px color-mix(in srgb, var(--c) 70%, transparent); }
html.ph .lcard { grid-template-columns: 44px minmax(0, 1fr) auto; grid-template-areas: "av name wait" "av want call" "av meta call" ". last last"; column-gap: 12px; }
.cmsg > .cav.avatar { display: grid; place-items: center; }

/* =====================================================================
   HOME: the board (Nov 29). One even row of today's numbers, then four equal panels in a 2 by 2 grid.
   ===================================================================== */
.board2 { overflow-y: auto; height: 100%; padding: 24px 28px 36px; display: grid; gap: 16px; align-content: start; }
.b2kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; overflow: hidden; }
.b2kpi { display: grid; gap: 6px; padding: 16px 20px 18px; min-width: 0; } .b2kpi + .b2kpi { border-left: 1px solid var(--line-soft); }
.b2kpi span { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2kpi b { font-size: 30px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; white-space: nowrap; } .b2kpi b i { font-style: normal; font-size: 17px; font-weight: 700; color: var(--muted); margin-left: 2px; }
.b2kpi.good b { color: var(--ok); }
.b2grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(300px, 1fr); gap: 16px; }
.b2panel { display: flex; flex-direction: column; min-width: 0; padding: 16px 20px 18px; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 12px; }
.b2panel header { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; } .b2panel h3 { margin: 0; font-size: 15px; font-weight: 800; }
.b2panel header > span { margin-left: auto; font-size: 12.5px; color: var(--muted); } .b2panel header .link { margin-left: auto; font-size: 12.5px; font-weight: 700; color: var(--accent-text, var(--accent)); background: none; border: 0; padding: 0; cursor: pointer; text-transform: none; letter-spacing: 0; }
.b2bars { display: grid; gap: 8px; align-content: start; }
.b2bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 12px; padding: 3px 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; }
button.b2bar { cursor: pointer; } button.b2bar:hover span { color: var(--text); }
.b2bar span { font-size: 13.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b2bar i { display: block; height: 10px; border-radius: 0 4px 4px 0; background: var(--panel-2); overflow: hidden; } .b2bar em { display: block; height: 100%; border-radius: 0 4px 4px 0; background: var(--accent); }
.b2bar b { font-size: 14px; font-weight: 700; text-align: right; font-variant-numeric: tabular-nums; }
.b2cols { flex: 1; min-height: 170px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 6px; align-items: end; padding-bottom: 20px; position: relative; }
.b2cols > div { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; }
.b2cols i { display: block; width: 100%; max-width: 26px; min-height: 2px; border-radius: 4px 4px 0 0; background: color-mix(in srgb, var(--accent) 75%, transparent); }
.b2cols .now i { background: var(--accent); }
.b2cols span { position: absolute; bottom: -20px; font-size: 11.5px; color: var(--muted); white-space: nowrap; } .b2cols .now span { color: var(--text); font-weight: 700; }
.b2cols s { display: block; width: 7px; height: 7px; border-radius: 50%; background: var(--bad); margin-bottom: 4px; flex: none; } .b2cols s.close { background: var(--ok); }
.b2cols > div { cursor: default; } .b2cols > div:hover i { background: var(--accent); }
.b2key { display: flex; align-items: center; gap: 6px; margin: 14px 0 0; font-size: 12px; color: var(--muted); } .b2key i { width: 10px; height: 10px; border-radius: 3px; margin-left: 10px; } .b2key i:first-child { margin-left: 0; }
.b2key .k1 { background: var(--accent); } .b2key .k2 { background: var(--bad); border-radius: 50%; width: 6px; height: 6px; } .b2key .k3 { background: var(--ok); border-radius: 50%; width: 6px; height: 6px; }
@media (max-width: 1280px) and (min-width: 901px) { .b2kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } .b2kpi:nth-child(4) { border-left: 0; } .b2kpi:nth-child(n+4) { border-top: 1px solid var(--line-soft); } .b2bar { grid-template-columns: 120px minmax(0, 1fr) 40px; } }
.board2 { display: block; } .board2 .b2grid { margin-top: 16px; } .b2kpis { flex: none; }

/* the edge of the names list in Conversations: drag to condense */
.listgrip { position: absolute; top: 0; bottom: 0; left: calc(var(--listw, 380px) - 6px); width: 12px; z-index: 6; cursor: col-resize; touch-action: none; }
.listgrip b { position: absolute; left: 4px; top: 50%; width: 4px; height: 40px; margin-top: -20px; border-radius: 3px; background: transparent; transition: background .15s; }
.listgrip:hover b, #dock.listsizing .listgrip b { background: var(--accent); } #dock.listsizing, #dock.listsizing * { cursor: col-resize !important; user-select: none; }
#dock.nolist .listgrip { display: none; } #dock { position: relative; }
/* Recent rows: the lead's round picture in its stage color, with a small mark for how it was reached */
.rcrow { grid-template-columns: 40px minmax(0, 1fr); } .rcav { position: relative; width: 38px; height: 38px; font-size: 12.5px; margin-top: 1px; }
.rckind { position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; display: grid; place-items: center; background: var(--panel-2); color: var(--muted); box-shadow: 0 0 0 2px var(--bg); font-style: normal; }

/* Clock (owner, Nov 29): smaller; the button (or time worked) on the left, the status dot and words small on the right */
.clk { padding: 6px 10px; } .clk .clkday b { font-size: 12.5px; }
.clk .clkline { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 4px; padding-top: 4px; min-height: 0; }
.clk .clkst { display: inline-flex; align-items: center; gap: 5px; } .clk .clkdot { width: 6px; height: 6px; } .clk .clkstate { flex: none; font-size: 11px; font-weight: 600; color: #8C8C8C; }
.clk .clkgo { padding: 4px 10px; font-size: 9.5px; } .clk .clkworked b { font-size: 12px; }
.clk .clkbtns { margin-top: 5px; } .clk .clkbtns button { padding: 4px; font-size: 10.5px; }
/* the call a transcript belongs to, on the right of its header */
.note header .ncall { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; } .note header .ncall + time { margin-left: 8px; }
.fdnote { margin: -6px 0 2px; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* calls in the thread: ours on the right like our texts, theirs on the left; the transcript sits with its call */
.timeline .block.call { width: min(440px, 82%); }
.timeline .block.call.out { align-self: flex-end; border-left: 0; border-right: 2px solid var(--accent); border-radius: 6px 0 0 6px; }
.timeline .block.call.in { align-self: flex-start; }
.timeline .block.call.tr { width: min(520px, 82%); }
/* Profile: the number and the Sendblue buttons after it stay together */
.kvphone { display: inline-flex; align-items: center; justify-content: flex-end; gap: 8px; flex-wrap: wrap; min-width: 0; }
/* the date and Beirut's time line up: same size, weight and color, one under the other, both starting on the same edge */
.clk .clkleft { gap: 1px; } .clk #clkdate, .clk .clkalt { font-size: 10.5px; font-weight: 600; letter-spacing: 0; text-transform: none; color: #A6A6A6; line-height: 1.25; margin: 0; padding: 0; }

/* ---- quote window (owner, Nov 29) ---- */
/* resize from every side and corner */
.qrz { position: absolute; z-index: 6; touch-action: none; } .qrz.n, .qrz.s { left: 14px; right: 14px; height: 8px; cursor: ns-resize; } .qrz.n { top: -3px; } .qrz.s { bottom: -3px; }
.qrz.e, .qrz.w { top: 14px; bottom: 14px; width: 8px; cursor: ew-resize; } .qrz.e { right: -3px; } .qrz.w { left: -3px; }
.qrz.ne, .qrz.nw, .qrz.se, .qrz.sw { width: 16px; height: 16px; } .qrz.ne { top: -3px; right: -3px; cursor: nesw-resize; } .qrz.sw { bottom: -3px; left: -3px; cursor: nesw-resize; }
.qrz.nw { top: -3px; left: -3px; cursor: nwse-resize; } .qrz.se { bottom: -3px; right: -3px; cursor: nwse-resize; }
.qrz.se::before { content: ""; position: absolute; right: 7px; bottom: 7px; width: 8px; height: 8px; border-right: 2px solid var(--line-3); border-bottom: 2px solid var(--line-3); border-radius: 0 0 3px 0; }
.resizing, .resizing * { user-select: none; }
@media (max-width: 900px) { .qrz { display: none; } }
/* calendar: pickup and return are filled and labelled, the days between are one joined band */
.cal .days button { position: relative; height: 36px; display: grid; place-items: center; align-content: center; gap: 0; line-height: 1; }
.cal .days button em { font-style: normal; font-size: 8.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; margin-top: 2px; }
.cal .days button.in, .cal .days button.hov { background: color-mix(in srgb, var(--accent) 24%, transparent); color: var(--text); border-radius: 0; }
.cal .days button.start, .cal .days button.end { background: var(--accent); color: #06141d; font-weight: 900; }
.cal .days button.start.range { border-radius: 8px 0 0 8px; } .cal .days button.end { border-radius: 0 8px 8px 0; }
.cal .days button.start:not(.range) { border-radius: 8px; box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--accent); }
.cal .days { gap: 2px 0; }
/* every add-on price is a box you can type in */
.qunit.qedit { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; } .qunit.qedit .qmoney input { width: 74px; }
/* who the quote goes to */
.qwho { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 10px; } .qwho > .lbl { grid-column: 1 / -1; margin: 0; }
.qwho label { display: grid; gap: 3px; min-width: 0; } .qwho label span { font-size: 11.5px; color: var(--muted); font-weight: 600; } .qwho input { width: 100%; min-width: 0; padding: 7px 9px; font-size: 13.5px; }
.qsendbox { display: grid; gap: 10px; }
/* quote window, Nov 29: bottom bar = who it goes to, then the numbers, the total and the button; nothing can overlap */
.quote.open { min-width: min(900px, calc(100vw - 16px)); }
@media (min-width: 900px) { .quote.open { width: min(1120px, calc(100vw - 32px)); min-width: 900px; } }
.quote .qbody { container-type: inline-size; }
.quote .qfoot { display: grid; grid-template-columns: minmax(0, 1fr) auto 240px; grid-template-areas: "who who who" "nums grand go"; gap: 12px 24px; align-items: end; }
.quote .qfoot .qsendbox { display: contents; }
.quote .qfoot .qwho { grid-area: who; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.quote .qfoot .qtotals { grid-area: nums; display: flex; flex-wrap: wrap; gap: 6px 24px; align-items: flex-end; min-width: 0; margin: 0; padding: 0; border: 0; }
.quote .qfoot .qtotals > div { display: grid; gap: 2px; justify-content: start; padding: 0; margin: 0; border: 0; }
.quote .qfoot .qtotals > div > span, .quote .qfoot .qgrand span { font-size: 11.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.quote .qfoot .qtotals > div > b { font-size: 15px; line-height: 1.2; white-space: nowrap; }
.quote .qfoot .qtotals .qerr { flex-basis: 100%; }
.quote .qfoot .qgrand { grid-area: grand; display: grid; gap: 2px; text-align: right; }
.quote .qfoot .qgrand b { font-size: 26px; line-height: 1; font-weight: 800; white-space: nowrap; font-variant-numeric: tabular-nums; }
.quote .qfoot .qgo { grid-area: go; width: 100%; }
@container (max-width: 760px) {
  .quote .qfoot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "who who" "nums grand" "go go"; }
}
/* price rows: name | price box (same spot every row) | count | line total */
.quote .qline { grid-template-columns: minmax(0, 1fr) 190px auto 110px; }
.quote .qline .qunit.qedit { justify-self: start; }
.quote .qline .qunit.qedit .qmoney input { width: 96px; }
@container (max-width: 760px) { .quote .qline { grid-template-columns: minmax(0, 1fr) 150px auto 90px; gap: 0 10px; } }
/* Home board, Nov 29: four aligned tables on one grid */
.board3 { padding: 20px 24px 28px; overflow-y: auto; height: 100%; }
.b3grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: stretch; max-width: 1400px; }
.b3panel { background: var(--panel); border: 1px solid var(--line-2); border-radius: 10px; padding: 16px 20px 12px; min-width: 0; }
.b3panel > header { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; height: 28px; margin-bottom: 6px; }
.b3panel h3 { margin: 0; font-size: 16px; font-weight: 800; } .b3panel > header > span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.b3panel table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 14px; }
.b3panel th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 6px 0 8px; border-bottom: 1px solid var(--line-2); }
.b3panel td { height: 38px; padding: 0; border-bottom: 1px solid var(--line-soft); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.b3panel tbody tr:last-child td { border-bottom: 0; }
.b3panel th:first-child, .b3panel td:first-child { width: auto; }
.b3panel th.num, .b3panel td.num { text-align: right; width: 22%; font-variant-numeric: tabular-nums; font-weight: 700; }
.b3panel th.num { font-weight: 600; }
.b3pipe th.num, .b3pipe td.num { width: 19%; }
.b3list td.num { width: 30%; }
.b3panel td small { font-size: 12px; color: var(--muted); font-weight: 500; }
.b3panel td.num.warn { color: var(--warn); } .b3panel td.num.up { color: var(--ok); } .b3panel td.num.down { color: var(--bad); } .b3panel td.num.same { color: var(--muted); font-weight: 500; }
.b3panel .zero { color: var(--muted); font-weight: 500; }
.b3panel tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; font-weight: 800; color: var(--text); }
.b3panel tr.strong td { font-weight: 800; border-top: 1px solid var(--line-2); }
.b3panel tr.go { cursor: pointer; } .b3panel tr.go:hover td { background: var(--hover, rgba(255,255,255,.03)); }
.b3dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 10px; vertical-align: 1px; }
@media (max-width: 1100px) { .b3grid { grid-template-columns: minmax(0, 1fr); } }
/* which GoHighLevel pipeline the Leads and Pipeline pages show */
.pipesel { display: inline-flex; align-items: center; gap: 8px; margin-left: 14px; padding: 0 0 0 12px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--bg); min-width: 0; }
.pipesel > span { font-size: 11.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.pipesel select { border: 0; background-color: transparent; padding: 7px 30px 7px 0; font-size: 13px; font-weight: 700; color: var(--text); max-width: 320px; }
.pipesel select:disabled { opacity: .5; }
html.ph .pipesel { display: none; }
/* team logins and the set-password page */
.authlink { margin-top: 4px; font-size: 13px; color: var(--muted); align-self: center; }
.auth .err.ok { color: var(--ok); }
.usersbox { width: min(860px, calc(100vw - 32px)); }
.usersbox table { width: 100%; border-collapse: collapse; font-size: 13.5px; } .usersbox th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 6px 8px; }
.usersbox td { padding: 8px; border-top: 1px solid var(--line-soft); vertical-align: middle; } .usersbox tr.off td { opacity: .45; } .usersbox td .warn { color: var(--warn); }
.usersbox td.acts { text-align: right; white-space: nowrap; } .usersbox td.acts .btn + .btn { margin-left: 6px; } .usersbox select { padding: 6px 28px 6px 8px; font-size: 13px; }
.usersnote { font-size: 12.5px; margin: 10px 0 0; } .grid3 { display: grid; grid-template-columns: 1fr 1.3fr 140px; gap: 8px; }
.linkout { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 8px; align-items: center; padding: 10px; border: 1px solid var(--line-2); border-radius: 8px; }
.linkout > span { grid-column: 1 / -1; font-size: 12.5px; color: var(--muted); } .linkout input { font-size: 13px; padding: 8px 10px; }

/* ---- Spacing pass (owner, Nov 29): every box keeps its words inside, at every width of either side ---- */
/* (Notes cards and call rows are drawn the same on a phone: they style new markup.) */
/* Notes: a card is never wider than the side. Its first line is the kind of note and the time (the time drops under it
   when the side is narrow); a call transcript says which call it was on the next line. */
.note { grid-template-columns: minmax(0, 1fr); min-width: 0; }
.note header { flex-wrap: wrap; justify-content: space-between; align-items: baseline; column-gap: 12px; row-gap: 2px; min-width: 0; }
.note header .lbl { white-space: nowrap; margin: 0; }
.note .ncall { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; min-width: 0; font-size: 12.5px; font-weight: 600; line-height: 1.3; color: var(--text); }
.note .ncall svg { flex: none; color: var(--accent-text); }
.note .ncall b { font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; } .note .ncall i { font-style: normal; color: var(--dim); }
.note .nbody { min-width: 0; overflow-wrap: anywhere; }
/* the note box: the hint fits on one line at the side's narrowest */
.noteadd textarea { min-width: 0; }

/* Calls in the thread: one tight line, "Outgoing call · 0:02 · 12:36 PM", the recording link under it. Ours sit on our
   side like our texts; no edge line, no spaced capitals. */
.timeline .block.call { width: auto; max-width: min(520px, 82%); border: 0; border-radius: 8px; padding: 6px 10px; gap: 3px; justify-items: start; }
.timeline .block.call.out { align-self: flex-end; justify-items: end; border: 0; border-radius: 8px; }
.timeline .block.call.in { align-self: flex-start; }
.timeline .block.call .hd { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 2px 6px; font: 600 12.5px/1.35 var(--body); letter-spacing: 0; text-transform: none; color: var(--muted); }
.timeline .block.call.out .hd { justify-content: flex-end; }
.timeline .block.call .hd svg { flex: none; color: var(--accent-text); }
.timeline .block.call .hd b { font-weight: 700; color: var(--text); }
.timeline .block.call .hd i { font-style: normal; color: var(--dim); }
.timeline .block.call .hd .clen { font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; } .timeline .block.call .hd time { font-variant-numeric: tabular-nums; }
.timeline .block.call .link.play, .timeline .block.call .more { font-size: 12px; font-weight: 700; letter-spacing: 0; text-transform: none; }
.timeline .block.call.tr { width: min(520px, 82%); justify-items: stretch; } .timeline .block.call.tr.out .more { justify-self: end; }

/* Profile: a label stays on one line; the value next to it wraps between words (an email after its @), never mid-word */
html:not(.ph) .kvrow > .lbl { flex: none; max-width: none; white-space: nowrap; }
html:not(.ph) .kvrow > b, html:not(.ph) .kvrow > a { overflow-wrap: break-word; text-wrap: balance; }
html:not(.ph) .kvrow.tall > .lbl { white-space: nowrap; }
/* a value that does not fit beside its label moves under it whole (the number with the Sendblue buttons, an email, a time), instead of breaking up */
html:not(.ph) .kvrow:not(.tall) { flex-wrap: wrap; row-gap: 3px; align-content: center; } html:not(.ph) .kvrow:not(.tall) > :is(b, a, .kvphone, select) { margin-left: auto; }
/* the side at its narrowest: a little less air around the rows so a label and a short value (a name) share one line */
@container (max-width: 340px) { html:not(.ph) #p-details .card { padding-left: 14px; padding-right: 14px; } html:not(.ph) #p-details .kvrow { column-gap: 12px; } html:not(.ph) #p-details .kvrow > .lbl { letter-spacing: .1em; } }

/* The message row: one line when the texting area is wide; when it is narrow, the box gets the whole top line and the
   "send as" picker and Send share the line under it, both always on screen */
@media (min-width: 901px) {
  html:not(.ph) .lbody .composer { container: cmp / inline-size; }
  @container cmp (max-width: 640px) {
    .imrow { display: grid; grid-template-columns: 42px 42px minmax(0, 1fr) auto; gap: 8px; }
    .imrow .pill { grid-column: 3 / -1; min-width: 0; }
    .imrow .chansel { grid-column: 1 / 4; width: 100%; max-width: none; min-width: 0; }
    .imrow .sendbtn { grid-column: 4; }
  }
}
/* Summary at the side's narrowest: lines break evenly, never one word left alone on the last line */
html:not(.ph) .sumsub, html:not(.ph) .sumsaid p, html:not(.ph) .sumnote p { text-wrap: pretty; } html:not(.ph) .sumbox .lbl, html:not(.ph) .sumsaid .lbl, html:not(.ph) .sumnote .lbl { text-wrap: balance; }
/* top bar: the pipeline picker shrinks (name cut with dots) before anything overlaps; its label goes first */
.topbar .pipesel { flex: 0 1 auto; min-width: 0; max-width: 380px; overflow: hidden; }
.topbar .pipesel select { min-width: 0; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .find { flex: 0 1 380px; min-width: 170px; }
.topbar h1, .topbar .chip, .topbar .citysel, .topbar .btn { flex: none; }
@media (max-width: 1700px) { .topbar .pipesel > span { display: none; } .topbar .pipesel { padding-left: 4px; } }

/* =====================================================================  REST package (Nov 29 2026)
   Leads rows, the day line, conversations lists, sidebar, pipeline, recent, clock. Computer only (html:not(.ph)). */

/* Leads: a row reads like a person, not a spreadsheet. No column headings; it fits from 1100 px wide up, nothing cut. */
html:not(.ph) .lcard.lc2 { display: grid; grid-template-columns: 42px minmax(0, 1.05fr) minmax(0, 1fr) auto 42px; grid-template-rows: auto; align-items: center; gap: 0 18px; padding: 14px 16px 14px 14px; min-width: 0; }
html:not(.ph) .lc2 > .avatar.ring { width: 42px; height: 42px; align-self: start; margin-top: 2px; }
html:not(.ph) .lc2who, html:not(.ph) .lc2last { min-width: 0; display: grid; gap: 6px; align-content: center; }
html:not(.ph) .lc2name { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; min-width: 0; }
html:not(.ph) .lc2name b { font-weight: 700; font-size: 16px; line-height: 1.25; overflow-wrap: break-word; min-width: 0; }
html:not(.ph) .lc2tags { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; } html:not(.ph) .lc2tags:empty { display: none; }
html:not(.ph) .lc2tags > span { max-width: 100%; white-space: normal; overflow-wrap: break-word; }
html:not(.ph) .lc2want { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-size: 14px; line-height: 1.35; color: var(--muted); min-width: 0; }
html:not(.ph) .lc2want b { font-weight: 600; color: var(--text); overflow-wrap: break-word; min-width: 0; }
html:not(.ph) .lc2want .none { color: var(--dim); }
html:not(.ph) .lc2want .lwdates { white-space: nowrap; }
html:not(.ph) .lc2want .qpill { align-self: center; }
html:not(.ph) .lc2when { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 12.5px; font-weight: 600; color: var(--dim); min-width: 0; }
html:not(.ph) .lc2when > span:not(.ctag):not(.nocall) { white-space: nowrap; }
html:not(.ph) .lc2when .nocall .tick1 { display: none; }
html:not(.ph) .lc2since .tick1 { margin: 0; padding: 0; border: 0; color: var(--warn); }
html:not(.ph) .lc2said { margin: 0; font-size: 14px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
html:not(.ph) .lcard.unread .lc2said { font-weight: 600; }
html:not(.ph) .lc2wait { display: inline-flex; align-items: center; gap: 6px; justify-self: end; padding: 5px 10px; border-radius: 999px; background: var(--panel-2); color: var(--muted); white-space: nowrap; }
html:not(.ph) .lc2wait b { font-weight: 800; font-size: 13.5px; color: var(--text); font-variant-numeric: tabular-nums; }
html:not(.ph) .lc2wait .ic { color: var(--dim); }
html:not(.ph) .lc2wait.hot { background: color-mix(in srgb, var(--bad) 14%, transparent); } html:not(.ph) .lc2wait.hot b, html:not(.ph) .lc2wait.hot .ic { color: var(--bad); }
html:not(.ph) .lcard.lc2 .callbox { min-width: 0; justify-self: end; }
html:not(.ph) .lcard.lc2 .callbtn { width: 42px; height: 42px; }
html:not(.ph) .calllist { container: calls / inline-size; }
@container calls (max-width: 920px) {
  html:not(.ph) .lcard.lc2 { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) 40px; gap: 10px 14px; padding: 12px 14px 12px 12px; }
  html:not(.ph) .lc2 > .avatar.ring { width: 38px; height: 38px; }
  html:not(.ph) .lc2wait { grid-column: 4; grid-row: 1; align-self: start; justify-self: end; padding: 3px 8px; }
  html:not(.ph) .lc2wait .ic { display: none; }
  html:not(.ph) .lcard.lc2 .callbox, html:not(.ph) .lcard.lc2 > .callbtn.none { grid-column: 4; grid-row: 1; align-self: end; }
  html:not(.ph) .lcard.lc2 { grid-template-rows: auto; }
  html:not(.ph) .lc2last { grid-column: 3; grid-row: 1; }
  html:not(.ph) .lcard.lc2 .callbtn { width: 38px; height: 38px; }
  html:not(.ph) .lcard.lc2:has(.lc2wait) .callbox { margin-top: 34px; }
}

/* The day, as one quiet line above the lists (no boxes of numbers) */
html:not(.ph) .dayline { flex: none; display: flex; align-items: center; flex-wrap: wrap; gap: 10px 26px; margin: 16px 24px 4px; padding: 12px 18px; border-radius: 12px; background: var(--panel); border: 1px solid var(--line-soft); }
html:not(.ph) .dl2day { display: flex; align-items: baseline; gap: 10px; white-space: nowrap; } html:not(.ph) .dl2day b { font-weight: 800; font-size: 16px; } html:not(.ph) .dl2day span { font-size: 13px; color: var(--muted); }
html:not(.ph) .dl2prog { flex: 1 1 200px; display: flex; align-items: center; gap: 12px; min-width: 180px; font-size: 13px; color: var(--muted); white-space: nowrap; }
html:not(.ph) .dl2prog .dbar { flex: 1; height: 6px; } html:not(.ph) .dl2prog b { color: var(--text); font-weight: 800; }
html:not(.ph) .dl2grp { display: flex; align-items: center; gap: 6px 16px; flex-wrap: wrap; }
html:not(.ph) .dl2k { font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--dim); }
html:not(.ph) .dl2f { font-size: 13px; color: var(--muted); white-space: nowrap; } html:not(.ph) .dl2f b { font-weight: 800; font-size: 15px; color: var(--text); font-variant-numeric: tabular-nums; margin-right: 2px; }
html:not(.ph) .dl2f.good b { color: var(--ok); }
@media (min-width: 901px) and (max-width: 1400px) { html:not(.ph) .dayline { margin: 12px 18px 4px; gap: 8px 20px; } }
/* ===================================================================== QUOTE WINDOW (fix-quote, Nov 29)
   One flow, top to bottom: dates on the left; car, price and extras, pickup and return, who it goes to on the right;
   one slim bar at the bottom with the numbers and the button. Desktop window only; the phone (html.ph) keeps its rules. */
html:not(.ph) #quote.open { min-width: min(720px, calc(100vw - 16px)); min-height: min(500px, calc(100vh - 16px)); }
html:not(.ph) #quote .qbar { display: flex; align-items: center; gap: 12px; padding: 16px 14px 10px 20px; min-height: 0; }
html:not(.ph) #quote .qbar .ttl { font-size: 15px; letter-spacing: .02em; }
html:not(.ph) #quote .qfor { font-size: 13.5px; min-width: 0; }
#quote .qtest { flex: none; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 45%, transparent); border-radius: 20px; padding: 4px 9px; line-height: 1; }
html:not(.ph) #quote .qbar .iconbtn { width: 32px; height: 32px; }
html:not(.ph) #quote .qwrap { grid-template-columns: 300px minmax(0, 1fr); }
html:not(.ph) #quote .qside { padding: 14px; gap: 12px; overflow-y: auto; }
#quote .qcity button { padding: 8px 6px; }

/* the trip: one box, pickup | return, date on top and the time under it */
#quote .qtrip { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 0; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); overflow: hidden; }
#quote .qleg { border: 0; border-radius: 0; padding: 8px 10px 6px; background: transparent; gap: 1px; box-shadow: inset 0 -2px 0 transparent; transition: box-shadow .15s; }
#quote .qleg + .qleg { border-left: 1px solid var(--line); }
#quote .qleg.now { box-shadow: inset 0 -2px 0 var(--accent); }
#quote .qleg .lbl { font-size: 9.5px; letter-spacing: .12em; }
#quote .qleg b { font-size: 13.5px; font-weight: 700; }
#quote .qleg select { font-size: 12.5px; padding: 2px 20px 2px 0; background-position: right 2px center; background-size: 10px; min-height: 0; }

/* calendar: seven equal columns, the pickup and return labels sit inside their cell */
#quote .cal { padding: 8px 8px 6px; gap: 4px; }
#quote .dow, #quote .cal .days { grid-template-columns: repeat(7, minmax(0, 1fr)); }
#quote .cal .days button { height: 34px; min-width: 0; padding: 0; overflow: hidden; }
#quote .cal .days button em { font-size: 7.5px; letter-spacing: .02em; margin-top: 1px; max-width: 100%; white-space: nowrap; }
#quote .calhint { font-size: 11.5px; padding-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* right side */
html:not(.ph) #quote .qbody { padding: 14px 18px 0; gap: 12px; }
#quote .qhead { gap: 12px; flex-wrap: nowrap; min-width: 0; } #quote .qhead .btn { flex: none; }
#quote .qcar { min-width: 0; } #quote .qcar img { width: 64px; height: 42px; } #quote .qcar h3 { font-size: 16px; } #quote .qcar > div { min-width: 0; }
#quote .qnote { font-size: 12.5px; line-height: 1.4; }
#quote .qsheet { flex: none; padding: 2px 16px 8px; border-radius: 10px; }
#quote .qsec { padding: 12px 0 4px; }
#quote .qline { grid-template-columns: minmax(0, 1fr) auto auto 96px; gap: 0 12px; min-height: 44px; padding: 3px 0; font-size: 13.5px; }
#quote .qline .qname { font-weight: 600; min-width: 0; }
#quote .qline .qunit.qedit { display: inline-flex; align-items: center; gap: 8px; justify-self: end; }
#quote .qline .qunit.qedit em { font-style: normal; font-size: 12px; color: var(--muted); width: 36px; white-space: nowrap; }
#quote .qline .qunit.qedit .qmoney input, #quote .qmoney input { width: 84px; padding: 7px 8px 7px 4px; font-size: 14px; }
#quote .qline .qdisc { display: inline-flex; align-items: center; gap: 8px; justify-self: end; flex-wrap: nowrap; }
#quote .qline .qdisc .qmoney input { width: 64px; }
#quote .qline .qqty { justify-self: end; }
#quote .qline .qamt { white-space: nowrap; }
#quote .qchk span { min-width: 0; overflow-wrap: anywhere; }
#quote .qhint { font-size: 12px; line-height: 1.4; color: var(--muted); padding: 0 0 8px; margin-top: -2px; }
#quote .qhint.bad { color: var(--warn); }

/* pickup and return: our location, or a custom address */
#quote .qwhere { display: grid; grid-template-columns: 64px minmax(0, 220px) minmax(0, 1fr); align-items: center; gap: 0 12px; min-height: 48px; padding: 4px 0; border-top: 1px solid var(--line-soft); }
#quote .qsec + .qwhere { border-top: 0; }
#quote .qwhere .qwl { font-weight: 600; font-size: 13.5px; }
#quote .qwhere select { width: 100%; min-width: 0; padding: 8px 10px; font-size: 13.5px; text-overflow: ellipsis; }
#quote .qwhere input { width: 100%; min-width: 0; padding: 8px 10px; font-size: 13.5px; }

/* who it goes to: three matching boxes */
#quote .qto .qwho { padding: 4px 0 8px; gap: 10px; }
#quote .qwho > .lbl { display: none; }
#quote .qwho label span { font-size: 11.5px; }
#quote .qwho input, #quote .qwho input[type=tel] { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 8px 10px; font-size: 13.5px; outline: none; box-shadow: none; }
#quote .qwho input:focus { border-color: var(--accent-text); }

/* the bottom bar: numbers | total | button, one row */
html:not(.ph) #quote .qfoot { position: sticky; bottom: 0; margin: auto -18px 0; padding: 10px 18px 12px; display: grid; grid-template-columns: minmax(0, 1fr) auto 200px; grid-template-areas: "nums grand go"; gap: 0 20px; align-items: center; }
html:not(.ph) #quote .qfoot .qtotals { grid-area: nums; display: flex; flex-wrap: wrap; gap: 2px 20px; }
html:not(.ph) #quote .qfoot .qtotals > div { display: grid; gap: 1px; }
html:not(.ph) #quote .qfoot .qtotals > div > span, html:not(.ph) #quote .qfoot .qgrand span { font-size: 11px; }
html:not(.ph) #quote .qfoot .qtotals > div > b { font-size: 14px; }
html:not(.ph) #quote .qfoot .qgrand { grid-area: grand; }
html:not(.ph) #quote .qfoot .qgrand b { font-size: 24px; }
html:not(.ph) #quote .qfoot .qgo { grid-area: go; width: 100%; padding: 12px 14px; }

/* the result after Build / Send */
#quote .qdone { gap: 12px; padding: 2px 0 4px; } #quote .qdone > div { flex: 1; min-width: 0; display: grid; gap: 2px; }
#quote .qdone h3 { font-size: 18px; } #quote .qdone span:not(.qcheck) { font-size: 12.5px; color: var(--muted); } #quote .qdone > b { font-size: 22px; font-weight: 800; color: var(--text); }
#quote .qdone .qcheck { width: 38px; height: 38px; }
#quote .qsum { margin: 0; display: grid; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 10px; padding: 4px 16px; }
#quote .qsum > div { display: grid; grid-template-columns: 90px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-top: 1px solid var(--line-soft); font-size: 13.5px; } #quote .qsum > div:first-child { border-top: 0; }
#quote .qsum dt { color: var(--muted); font-weight: 600; } #quote .qsum dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
#quote .qplaced { font-weight: 500; font-size: 13px; color: var(--muted); align-items: flex-start; line-height: 1.4; } #quote .qplaced svg { color: var(--ok); flex: none; margin-top: 2px; } #quote .qplaced b { color: var(--text); font-weight: 600; }
#quote .qreq summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--muted); padding: 2px 0 8px; } #quote .qreq summary:hover { color: var(--text); }
#quote .qdoneact { padding-bottom: 16px; }

/* a narrow window: the price rows fold to two lines, the boxes stack, the bar wraps */
@container (max-width: 560px) {
  #quote .qline { grid-template-columns: minmax(0, 1fr) auto; row-gap: 6px; padding: 6px 0; }
  #quote .qline > :nth-child(3):empty { display: none; }
  #quote .qline .qunit.qedit, #quote .qline .qdisc { grid-column: 1; grid-row: 2; justify-self: start; }
  #quote .qline .qqty { grid-column: 2; grid-row: 2; }
  #quote .qline .qamt { grid-column: 2; grid-row: 1; }
  #quote .qwhere { grid-template-columns: 64px minmax(0, 1fr); row-gap: 6px; padding: 6px 0; }
  #quote .qwhere input { grid-column: 2; }
  #quote .qto .qwho { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } #quote .qto .qwho label:first-of-type { grid-column: 1 / -1; }
  html:not(.ph) #quote .qfoot { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "nums grand" "go go"; gap: 8px 16px; }
  #quote .qhead .qcar img { display: none; }
  html:not(.ph) #quote .qfoot { padding: 8px 18px 10px; } html:not(.ph) #quote .qfoot .qgo { padding: 10px 14px; }
}
html:not(.ph) #quote .qbody:not(:has(.qfoot)) { padding-bottom: 18px; }

/* Conversations rows on a computer (the list in Conversations and the pop-out chat's inbox). The list can be dragged
   from 620 px down to 230 px: names wrap only between words, the time never pushes the name, tags stay on one line
   (the stage uses its short name when the list is narrow), and the last text is two lines with dots only at its true end. */
html:not(.ph) #msglist, html:not(.ph) .popnames { container: cvlist / inline-size; }
html:not(.ph) .cmsg.cv2 { grid-template-columns: 38px minmax(0, 1fr); column-gap: 12px; row-gap: 3px; padding: 11px 14px 11px 30px; align-items: start; }
html:not(.ph) .cmsg.cv2 > .cav { display: grid; place-items: center; grid-row: 1 / span 3; align-self: start; width: 38px; height: 38px; font-size: 12.5px; margin-top: 1px; }
html:not(.ph) .cmsg.cv2::before { left: 11px; top: 26px; }
html:not(.ph) .cv2 .rmtop { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 10px; min-width: 0; }
html:not(.ph) .cv2 .rmtop b { overflow-wrap: normal; word-break: normal; hyphens: none; line-height: 1.25; min-width: 0; }
html:not(.ph) .cv2 .rmtop time { white-space: nowrap; }
html:not(.ph) .cv2 .rmsaid { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; line-height: 1.4; }
html:not(.ph) .cv2 .cmtags { flex-wrap: nowrap; gap: 6px; min-width: 0; margin-top: 3px; }
html:not(.ph) .cv2 .cmtags > span { flex: none; white-space: nowrap; }
.cvshort { display: none; }
@container cvlist (max-width: 330px) {
  html:not(.ph) .cmsg.cv2 { grid-template-columns: 32px minmax(0, 1fr); column-gap: 10px; padding: 10px 12px 10px 24px; }
  html:not(.ph) .cmsg.cv2 > .cav { width: 32px; height: 32px; font-size: 11px; }
  html:not(.ph) .cmsg.cv2::before { left: 9px; top: 22px; width: 7px; height: 7px; }
  html:not(.ph) .cv2 .rmtop { gap: 6px; } html:not(.ph) .cv2 .rmtop b { font-size: 13.5px; } html:not(.ph) .cv2 .rmtop time { font-size: 11px; }
  html:not(.ph) .cv2 .rmsaid { -webkit-line-clamp: 1; line-clamp: 1; font-size: 12.5px; }
  html:not(.ph) .cv2 .cvfull { display: none; } html:not(.ph) .cv2 .cvshort { display: inline; }
  html:not(.ph) .cv2 .cmtags { flex-wrap: wrap; row-gap: 4px; }   /* two tags that do not fit side by side sit one under the other, never cut */
  html:not(.ph) .cv2 .cmtags .ctag, html:not(.ph) .cv2 .cmtags .stag { font-size: 9px; padding: 0 6px; }
  html:not(.ph) .cmsg.cv2 .rmmark { right: 8px; bottom: 7px; } html:not(.ph) .cmsg.cv2 .rmmark.pop { right: 36px; }
  html:not(.ph) .cmsep { padding-left: 12px; padding-right: 12px; }
}
/* the list's own header (Unread / All, the fold arrow, search) stays tidy at the narrowest width */
html:not(.ph) #dockview .listhead { container: cvhead / inline-size; }
@container cvhead (max-width: 300px) { html:not(.ph) #dockview .listtop .seg button { padding-left: 10px; padding-right: 10px; } }

/* Sidebar conversations: the same round picture ringed in the stage color, and the same two tags */
html:not(.ph) .rmsg.rm2 { display: grid; grid-template-columns: 30px minmax(0, 1fr); column-gap: 9px; row-gap: 2px; padding: 9px 8px 10px 22px; align-items: start; }
html:not(.ph) .rmsg.rm2 > .rmav { grid-row: 1 / span 3; width: 30px; height: 30px; font-size: 10.5px; margin-top: 1px; background: color-mix(in srgb, var(--c) 16%, #171717); color: #fff; box-shadow: 0 0 0 1.5px #000, 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent); }
html:not(.ph) .rmsg.rm2 > * { min-width: 0; }
html:not(.ph) .rmsg.rm2::before { left: 7px; top: 20px; }
html:not(.ph) .rm2 .rmtop { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: baseline; }
html:not(.ph) .rm2 .rmtop b { overflow-wrap: normal; word-break: normal; line-height: 1.25; }
html:not(.ph) .rm2 .rmsaid { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; overflow-wrap: break-word; }
html:not(.ph) .rm2 .rmchan { display: flex; flex-wrap: wrap; gap: 4px 5px; margin-top: 3px; min-width: 0; }
html:not(.ph) .rm2 .rmchan:empty { display: none; }
html:not(.ph) .rm2 .rmchan > span { flex: none; white-space: nowrap; font-size: 9px; line-height: 1.7; padding: 0 6px; }
html:not(.ph) .rm2 .rmchan .stag { background: none; border: 0; color: color-mix(in srgb, var(--c) 55%, #fff); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 70%, transparent); } html:not(.ph) .rm2 .rmchan .stag::before { display: none; }
html:not(.ph) .rm2 .cvfull { display: none; } html:not(.ph) .rm2 .cvshort { display: inline; }
/* Narrow lists (the sidebar, and Conversations dragged under 330 px): the name gets the whole top line and the time moves
   down beside the tags, so a name is never squeezed onto two lines by the time */
html:not(.ph) .rmsg.rm2 { grid-template-columns: 30px minmax(0, 1fr) auto; grid-template-areas: "av name name" "av said time" "av tags tags"; }
html:not(.ph) .rmsg.rm2 > .rmav { grid-area: av; } html:not(.ph) .rm2 .rmtop { display: contents; }
html:not(.ph) .rm2 .rmtop b { grid-area: name; } html:not(.ph) .rmsg.rm2 > .rmsaid { grid-area: said; } html:not(.ph) .rmsg.rm2 > .rmchan { grid-area: tags; margin-top: 3px; }
html:not(.ph) .rm2 .rmtop time { grid-area: time; align-self: start; justify-self: end; margin-left: 8px; line-height: 17px; }
@container cvlist (max-width: 330px) {
  html:not(.ph) .cmsg.cv2 { grid-template-columns: 32px minmax(0, 1fr) auto; grid-template-areas: "av name name" "av said time" "av tags tags"; }
  html:not(.ph) .cmsg.cv2 > .cav { grid-area: av; } html:not(.ph) .cv2 .rmtop { display: contents; }
  html:not(.ph) .cv2 .rmtop b { grid-area: name; } html:not(.ph) .cmsg.cv2 > .rmsaid { grid-area: said; } html:not(.ph) .cmsg.cv2 > .cmtags { grid-area: tags; }
  html:not(.ph) .cv2 .rmtop time { grid-area: time; align-self: start; justify-self: end; margin-left: 8px; line-height: 17.5px; }
}
/* sidebar pipeline: no part-width count bars behind the rows (they read as broken boxes); a full-row tint on hover */
.stagelist button em { display: none; }
.stagelist button:hover { background: color-mix(in srgb, var(--c, #fff) 14%, transparent); }
/* =====================================================================
   Home (Nov 29, rebuilt): the goals, today's numbers, then what just happened, who is closing and a few facts.
   One grid, the same padding in every panel, no tables. Desktop only; html.ph has its own rules.
   ===================================================================== */
.hm { height: 100%; overflow-y: auto; padding: 20px 24px 24px; container: hm / inline-size; }
.hmgrid { display: grid; gap: 16px; }
.hmpanel { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px 24px; min-width: 0; }
.hmpanel header { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 24px; }
.hmpanel h3 { margin: 0; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.hmpanel header > span:not(.fchip) { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.hmnone { margin: 14px 0 2px; font-size: 13.5px; color: var(--muted); }
/* the goals: two equal halves that share their rows, so the numbers, bars and footers line up across */
.hmgoal { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); padding: 0; }
.hmgoal::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.hmgoal > * { padding-left: 28px; padding-right: 28px; min-width: 0; }
.hmgoal .g1 { grid-column: 1; } .hmgoal .g2 { grid-column: 2; }
.hmgoal > header { padding-top: 18px; }
.hmbig { display: flex; align-items: baseline; gap: 12px; padding-top: 8px; }
.hmbig b { font-size: 52px; font-weight: 800; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hmbig span { font-size: 16px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.hmbar { padding-top: 16px; }
.hmday { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; }
.hmday i { height: 14px; border-radius: 3px; background: var(--panel-2); box-shadow: inset 0 0 0 1px var(--line); }
.hmday i.on { background: var(--ok); box-shadow: none; }
.hmday.now i:not(.on) { box-shadow: inset 0 0 0 1px var(--line-3); }
.hmweek { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.hmlabels { display: grid; grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: 10px; margin-top: 8px; height: 16px; }
.hmday.today + .hmlabels { gap: 4px; }
.hmlabels span { font-size: 11.5px; font-weight: 700; line-height: 16px; text-align: center; color: var(--dim); white-space: nowrap; font-variant-numeric: tabular-nums; }
.hmlabels span.now { color: var(--text); }
.hmgoal > footer { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 8px; margin-top: 16px; padding-top: 12px; padding-bottom: 14px; border-top: 1px solid var(--line); font-size: 13px; }
.hmgoal > footer span { color: var(--muted); } .hmgoal > footer b { font-weight: 700; white-space: nowrap; }
/* today's numbers: three groups on one six-column grid */
.hmflowgrid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-top: 12px; }
.hmgrp { grid-row: 1; margin-right: 24px; padding-bottom: 10px; border-bottom: 2px solid var(--g); font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--text); white-space: nowrap; }
.hmgrp.in { grid-column: 1 / 3; --g: var(--accent); } .hmgrp.out { grid-column: 3 / 6; --g: var(--ok); } .hmgrp.call { grid-column: 6; --g: #FF9F0A; margin-right: 0; }
.hmcell { grid-row: 2; display: grid; align-content: start; gap: 8px; min-width: 0; padding: 14px 20px 0 0; border: 0; background: none; color: var(--text); text-align: left; font: inherit; }
.hmcell .lbl { white-space: nowrap; }
.hmcell b { font-size: 34px; font-weight: 800; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hmcell.good b { color: var(--ok); }
button.hmcell { cursor: pointer; } button.hmcell:hover .lbl { color: var(--text); }
.hmcell.call b { color: #FF9F0A; } .hmcell.call.done b { display: flex; align-items: center; gap: 8px; height: 34px; font-size: 22px; color: var(--ok); }
/* the lower half: the live feed on the left, closers and facts on the right, both columns ending on one line */
.hmlow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: stretch; }
.hmside { display: grid; gap: 16px; align-content: start; min-width: 0; }
.hmfeed { display: flex; flex-direction: column; padding-bottom: 8px; }
.hmfeedlist { flex: 1 1 0; min-height: 0; contain: size; overflow: hidden; margin: 8px -12px 0; }
.hmlive { display: inline-flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.hmlive i { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); animation: hmpulse 2s ease-in-out infinite; }
@keyframes hmpulse { 50% { opacity: .3; } }
.hmev { display: grid; grid-template-columns: 36px minmax(0, 1fr); align-items: center; gap: 14px; width: 100%; padding: 9px 12px; border: 0; border-radius: 8px; background: none; color: var(--text); text-align: left; font: inherit; cursor: pointer; transition: background .15s; }
.hmev:hover { background: var(--hover); }
.avatar.ring.hmav { width: 36px; height: 36px; font-size: 12px; }
.hmevmain { display: grid; gap: 5px; min-width: 0; }
.hmevtop { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.hmevtop b { min-width: 0; font-size: 14px; font-weight: 700; overflow-wrap: break-word; }
.hmevtop time { flex: none; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.hmevline { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; font-size: 12.5px; color: var(--muted); }
.hmevline > span:not(.fchip) { min-width: 0; overflow-wrap: break-word; }
.hmrep { display: grid; grid-template-columns: 16px 32px minmax(0, 1fr) 96px 96px; align-items: center; gap: 14px; padding: 10px 0; border-top: 1px solid var(--line-soft); }
.hmreps header + .hmrep { margin-top: 8px; border-top: 0; }
.hmrank { font-weight: 800; font-size: 13px; color: var(--muted); text-align: center; }
.avatar.hmav:not(.ring) { width: 32px; height: 32px; font-size: 11px; background: color-mix(in srgb, var(--accent) 18%, var(--panel-2)); color: var(--text); }
.hmrep > b { min-width: 0; font-size: 14px; font-weight: 700; overflow-wrap: break-word; }
.hmrepn { font-size: 13px; color: var(--muted); white-space: nowrap; text-align: right; } .hmrepn b { font-size: 15px; font-weight: 800; color: var(--text); }
.hmrepv { min-width: 72px; text-align: right; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hmfact { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding: 10px 0; border-top: 1px solid var(--line-soft); font-size: 14px; }
.hmfacts header + .hmfact { margin-top: 6px; border-top: 0; }
.hmfact span { color: var(--muted); } .hmfact b { font-weight: 700; text-align: right; overflow-wrap: break-word; min-width: 0; font-variant-numeric: tabular-nums; }
.view.enter .hmpanel { animation: rise .4s var(--ease) backwards; }
.view.enter .hmflow { animation-delay: .05s; } .view.enter .hmlow .hmpanel { animation-delay: .1s; }
.view.enter .hmday i.on { animation: fadein .5s var(--ease) backwards .2s; }
/* big screens: a little more size to the numbers */
@container hm (min-width: 1500px) { .hmbig b { font-size: 60px; } .hmcell b { font-size: 40px; } .hmday i { height: 16px; } }
/* narrow windows: the lower half stacks and the feed gets its own height */
@container hm (max-width: 900px) {
  .hmlow { grid-template-columns: minmax(0, 1fr); } .hmfeedlist { contain: none; max-height: 440px; overflow-y: auto; }
  .hmflowgrid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .hmgrp.in { grid-column: 1 / 3; } .hmgrp.out { grid-row: 3; grid-column: 1 / 4; } .hmgrp.call { grid-column: 3; }
  .hmflowgrid > .hmcell:nth-of-type(1), .hmflowgrid > .hmcell:nth-of-type(2) { grid-row: 2; } .hmflowgrid > .hmcell:nth-of-type(3), .hmflowgrid > .hmcell:nth-of-type(4), .hmflowgrid > .hmcell:nth-of-type(5) { grid-row: 4; } .hmflowgrid > .hmcell.call { grid-row: 2; grid-column: 3; }
}
.hmevline { gap: 6px 16px; } .hmevbit { display: inline-flex; align-items: center; gap: 8px; min-width: 0; } .hmevbit > span:not(.fchip) { overflow-wrap: break-word; min-width: 0; }

/* Sidebar pipeline (while Conversations is open): every row the same height and the same even tint in its stage color,
   no bars of different lengths behind the names; rows never stretch on tall screens */
html:not(.ph) .railsec.pipe .stagelist { display: grid; grid-auto-rows: 40px; align-content: start; gap: 4px; }
html:not(.ph) .railsec.pipe .stagelist button { min-height: 0; height: 40px; padding: 0 12px; border-radius: 9px; background: color-mix(in srgb, var(--c) 11%, transparent); transition: background .18s, transform .18s var(--ease); }
html:not(.ph) .railsec.pipe .stagelist button em { display: none; }
html:not(.ph) .railsec.pipe .stagelist button:hover { background: color-mix(in srgb, var(--c) 22%, transparent); }
html:not(.ph) .railsec.pipe .stagelist button span { color: #E6E6E6; }
html:not(.ph) .railsec.pipe .stagelist button b { min-width: 24px; text-align: right; }
@media (min-height: 1000px) { html:not(.ph) .railsec.pipe .stagelist { grid-auto-rows: 44px; gap: 5px; } html:not(.ph) .railsec.pipe .stagelist button { height: 44px; } }
html:not(.ph) .railsec.pipe .stagelist button span { overflow: visible; text-overflow: clip; white-space: normal; line-height: 1.15; font-size: 13.5px; }   /* "Waiting on Deposit" in full, never "Waiting on Depo..." */

/* The sidebar's drag edge sits wholly on the sidebar (it used to reach 5 px over the Conversations panel, so a press meant
   for the list could grab the sidebar). One line, one owner. */
@media (min-width: 901px) {
  html:not(.ph) .railgrip { left: calc(var(--railw, 236px) - 10px); width: 10px; }
  html:not(.ph) .railgrip::after { left: 8px; }
}

/* Clock: the Available dot's glow stays clear of the word */
html:not(.ph) .clk .clkst { gap: 9px; }
@keyframes clkpulse { 0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--ok) 70%, transparent); } 100% { box-shadow: 0 0 0 4px transparent; } }
html:not(.ph) .clk.on .clkdot { animation: clkpulse 2.2s ease-out infinite; }

/* Pipeline cards: picture ringed in the stage color, the name in full, then the same tags as a lead row */
html:not(.ph) .bcard.bc2 header.bc2head { justify-content: flex-start; gap: 10px; padding: 0; margin: 0; min-height: 0; background: none; border: 0; }
html:not(.ph) .bcard.bc2 .bc2tags { margin: 0; }
html:not(.ph) .bcard.bc2 .bc2head .avatar.ring { width: 32px; height: 32px; font-size: 11px; box-shadow: 0 0 0 1.5px var(--panel), 0 0 0 3px color-mix(in srgb, var(--c) 70%, transparent); }
html:not(.ph) .bcard.bc2 .bc2head b { white-space: normal; overflow: visible; overflow-wrap: break-word; line-height: 1.25; min-width: 0; }
html:not(.ph) .bcard.bc2 .bc2tags { display: flex; flex-wrap: wrap; gap: 5px; } html:not(.ph) .bcard.bc2 .bc2tags:empty { display: none; }
html:not(.ph) .bcard.bc2 .bc2tags > span { white-space: nowrap; }
html:not(.ph) .bcard.bc2 .bc2tags .srctag { font-size: 9.5px; }

/* Recent: where it happened and the stage as tags (the same as Conversations), counts and who after them */
html:not(.ph) .rcfoot2 { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-top: 5px; min-width: 0; }
html:not(.ph) .rcfoot2 .rctags { display: flex; gap: 6px; flex-wrap: wrap; margin: 0; } html:not(.ph) .rcfoot2 .rctags:empty { display: none; }
html:not(.ph) .rcfoot2 .rcmeta { margin: 0; }
/* Home in the light looks: tags and pictures read on white too */
:is([data-theme="light"], [data-theme="warm"]) .hm .fchip { color: color-mix(in srgb, var(--c) 65%, #000); }
:is([data-theme="light"], [data-theme="warm"]) .hm .avatar.ring { background: color-mix(in srgb, var(--c) 16%, var(--panel)); }

/* Folded sidebar: the app's own icon instead of a wordmark cut to "DRMLX", and the Demo tag stays, small, under it */
.brandicon { display: none; }
@media (min-width: 901px) {
  html:not(.ph) .shell.slim .brand { width: 40px; height: auto; flex-direction: column; align-items: center; gap: 7px; padding: 2px 0 0; margin-bottom: 10px; overflow: visible; }
  html:not(.ph) .shell.slim .wordmark { display: none; }
  html:not(.ph) .shell.slim .brandicon { display: block; width: 32px; height: 32px; border-radius: 8px; }
  html:not(.ph) .shell.slim .brandbtn { display: grid; place-items: center; padding: 0; }
  html:not(.ph) .shell.slim .rail .brand .tag.demo { display: inline-flex; align-self: center; font-size: 8px; letter-spacing: .08em; padding: 2px 4px; gap: 3px; }
  html:not(.ph) .shell.slim .rail .brand .tag.demo i { width: 4px; height: 4px; }
}

/* Metrics: one line under the HQ block says how its count differs from the Booked tile (same days, other side) */
html:not(.ph) .mxwhy { margin: 2px 0 14px; padding: 0 18px; font-size: 12.5px; line-height: 1.45; color: var(--muted); max-width: 900px; }
/* the list squeezed beside a narrowed Conversations panel: the last message moves under the name */
@container calls (max-width: 640px) {
  html:not(.ph) .lcard.lc2 { grid-template-columns: 38px minmax(0, 1fr) 40px; row-gap: 10px; }
  html:not(.ph) .lc2last { grid-column: 2 / 4; grid-row: 2; }
  html:not(.ph) .lc2wait, html:not(.ph) .lcard.lc2 .callbox, html:not(.ph) .lcard.lc2 > .callbtn.none { grid-column: 3; }
}
/* Lead rows: the call column grows to fit the Sendblue extension's own call and text buttons (two buttons, about 68px),
   so they never sit on top of the car, dates or quote tag. Without the extension it stays one button wide. */
html:not(.ph) .lcard.lc2 { grid-template-columns: 42px minmax(0, 1.05fr) minmax(0, 1fr) auto minmax(42px, auto); }
@container calls (max-width: 920px) { html:not(.ph) .lcard.lc2 { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) minmax(40px, auto); } }
@container calls (max-width: 640px) { html:not(.ph) .lcard.lc2 { grid-template-columns: 38px minmax(0, 1fr) minmax(40px, auto); } }
html:not(.ph) .lcard.lc2 .callbox:has(> :not(a)) { gap: 6px; }
/* top bar on smaller windows: the pipeline picker never shrinks to nothing; the search narrows first, then Add lead keeps only its plus */
html:not(.ph) .topbar .pipesel { min-width: 150px; }
html:not(.ph) .topbar .find { min-width: 120px; }
@media (max-width: 1100px) { html:not(.ph) .topbar { gap: 10px; padding: 0 16px; } html:not(.ph) .topbar .find { min-width: 90px; } html:not(.ph) .topbar .newlead .ll { display: none; } html:not(.ph) .topbar .newlead { padding-left: 12px; padding-right: 12px; } }

/* ===================================================================== TASKS (New task box, Tasks list on Leads, the lead's tasks)
   Kept in this CRM only, never sent to GoHighLevel. Computer layout only; the phone hides the button. */
html.ph .topbar .newtask { display: none; }
@media (min-width: 1200px) { html:not(.ph) .topbar .pipesel { flex-shrink: 0; } }   /* with two buttons on the right, the search narrows before the pipeline name does */
@media (max-width: 1400px) { html:not(.ph) .topbar .newtask .ll { display: none; } html:not(.ph) .topbar .newtask { padding-left: 12px; padding-right: 12px; } }   /* a smaller window: New task keeps only its check, so the pipeline and search stay readable */
/* the box: the New lead drawer, with a short line under each kind of task */
.modal .tktypes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.modal .tktypes label:last-child { grid-column: 1 / -1; }   /* Other runs the full width, so the list ends square */
.modal .tktypes span { height: 100%; display: grid; gap: 3px; align-content: start; padding: 9px 12px; }
.modal .tktypes span small { font-size: 12px; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); line-height: 1.35; }
.modal .tktypes input:checked + span small { color: color-mix(in srgb, var(--bg) 72%, transparent); }
.modal .field .grid2 { margin-top: 2px; }
.modal input[type=time] { background: var(--bg); border: 1px solid var(--line-2); border-radius: var(--r); padding: 10px 11px; outline: none; font-size: 14px; width: 100%; color: inherit; font-family: inherit; }
.modal input[type=time]::-webkit-calendar-picker-indicator { filter: invert(.7); }
.modal .field select { width: 100%; padding: 10px 11px; font-size: 14px; }
.tkhint { font-size: 12px; color: var(--dim); }
.tkhits { display: grid; gap: 2px; } .tkhits:empty { display: none; }
.tkhit, .tkpicked { display: grid; grid-template-columns: 30px auto minmax(0, 1fr); align-items: center; gap: 10px; width: 100%; text-align: left; background: transparent; border: 1px solid transparent; border-radius: var(--r); padding: 7px 8px; color: var(--text); }
.tkhit:hover { background: var(--hover); border-color: var(--line-2); }
.tkhit b, .tkpicked b { font-weight: 700; font-size: 14px; white-space: nowrap; }
.tkhit > span:last-child { font-size: 12.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tkhit .avatar.ring, .tkpicked .avatar.ring { width: 30px; height: 30px; font-size: 10.5px; }
.tkpicked { grid-template-columns: 30px auto auto minmax(0, 1fr); border-color: var(--line-2); padding: 8px 12px 8px 8px; }
.tkpicked .stag { justify-self: start; } .tkpicked .link { justify-self: end; }
.tkno { font-size: 13px; color: var(--dim); padding: 6px 2px; }
/* the Tasks list under Call Now: the lead row, with a Done button where the call button sits */
html:not(.ph) .lcard.lc2.tk { grid-template-columns: 42px minmax(0, 1.05fr) minmax(0, 1fr) auto auto; }
html:not(.ph) .lc2.tk .tkdone { justify-self: end; }
html:not(.ph) .lc2.tk .tklate { color: var(--bad); white-space: nowrap; }
html:not(.ph) .lc2.tk .lc2said.tknone { color: var(--dim); }
@container calls (max-width: 920px) {
  html:not(.ph) .lcard.lc2.tk { grid-template-columns: 38px minmax(0, 1fr) minmax(0, 1fr) auto; }
  html:not(.ph) .lc2.tk .lc2wait { grid-column: 4; grid-row: 1; align-self: start; }
  html:not(.ph) .lc2.tk .tkdone { grid-column: 4; grid-row: 1; align-self: end; margin-top: 34px; }
}
/* the open lead: one small line per open task, above its side panel */
.ltk { flex: none; display: grid; gap: 8px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.ltkrow { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; min-width: 0; font-size: 12.5px; }
.ltkrow .fchip { font-size: 11px; padding: 1px 8px; flex: none; }
.ltkdue { font-weight: 700; color: var(--text); white-space: nowrap; } .ltkdue.late { color: var(--bad); }
.ltkrep { color: var(--muted); white-space: nowrap; }
.ltkrow .link { margin-left: auto; flex: none; }
/* ===== g-marks: channel pictures on avatars, Instagram pictures, returning customer mark (computer only) ===== */
html:not(.ph) .avatar.ring { position: relative; }
html:not(.ph) .avatar .facepic { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; background: #171717; }
/* the channel, as a little picture on the lower right of the avatar, cut out from the row behind it */
html:not(.ph) .avatar .chpic { position: absolute; right: -4px; bottom: -4px; width: 17px; height: 17px; border-radius: 50%; display: grid; place-items: center; background: var(--cc); color: #fff; box-shadow: 0 0 0 2px var(--panel); font-style: normal; z-index: 1; }
html:not(.ph) .avatar .chpic svg { width: 10px; height: 10px; display: block; }
html:not(.ph) .rail .avatar .chpic { width: 15px; height: 15px; right: -4px; bottom: -4px; box-shadow: 0 0 0 2px #000; }
html:not(.ph) .rail .avatar .chpic svg { width: 9px; height: 9px; }
html:not(.ph) .rail .rmsg:hover .avatar .chpic { box-shadow: 0 0 0 2px #151515; } html:not(.ph) .rail .rmsg.sel .avatar .chpic { box-shadow: 0 0 0 2px #1B1B1B; }
html:not(.ph) .cmsg:hover .avatar .chpic { box-shadow: 0 0 0 2px var(--hover); } html:not(.ph) .cmsg.sel .avatar .chpic { box-shadow: 0 0 0 2px var(--sel); }
/* an empty tag line (the channel moved to the avatar, no stage) takes no room */
html:not(.ph) .rmchan:empty, html:not(.ph) .cmtags:empty { display: none; }
/* returning customer: a small key and how many rentals, in the quiet green, beside the name */
.rtn { display: inline-flex; align-items: center; gap: 3px; margin-left: 6px; vertical-align: 1px; font-size: 11px; font-weight: 700; line-height: 1; color: color-mix(in srgb, var(--ok) 85%, var(--text)); font-variant-numeric: tabular-nums; white-space: nowrap; cursor: default; }
.rtn svg { width: 11px; height: 11px; flex: none; }
html:not(.ph) .lc2name .rtn { margin-left: 0; align-self: center; font-size: 12px; } html:not(.ph) .lc2name .rtn svg { width: 12px; height: 12px; }
.rtn.rtnchip { margin-left: 0; gap: 5px; padding: 0 8px; border-radius: 4px; border: 1px solid color-mix(in srgb, var(--ok) 45%, transparent); font-size: 10px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; line-height: 1.85; flex: none; }
.rtn.rtnchip svg { width: 11px; height: 11px; }
.kvrow b.rtnval { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; color: color-mix(in srgb, var(--ok) 85%, var(--text)); } .kvrow b.rtnval svg { width: 13px; height: 13px; flex: none; }
/* ===== Quote: insurance choice and miles (g-quote2) ===== */
#quote .qline .qunit.qfree { justify-self: end; box-sizing: border-box; width: 107px; margin-right: 44px; padding-left: 11px; font-size: 13px; font-weight: 600; color: var(--muted); }
#quote .qline .qunit.qedit em.qat { width: auto; }
#quote .qmoney.qmi { padding-left: 0; padding-right: 10px; }
#quote .qmoney.qmi input { width: 64px; padding-left: 10px; }
#quote .qhint.qmilesinfo { padding: 2px 0 8px; margin-top: 0; }
#quote .qpm + .qhint { margin-top: -4px; }
/* New task sits with the stage controls on the open lead: same height as the Move button, outlined so Move stays the main action */
.ltstage .newtask2 { height: 36px; padding: 0 12px; border-radius: 9px; font-size: 11px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; flex: none; background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.ltstage .newtask2:hover { border-color: var(--accent-text); color: var(--accent-text); }
.ltstage .newtask2 .ll { display: inline; }
:is(.ltop[data-fit="2"], .ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .newtask2 .ll { display: none; }
:is(.ltop[data-fit="2"], .ltop[data-fit="3"], .ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .newtask2 { padding: 0 10px; }
/* New lead and New task open as a floating window, the same way the quote window does (computer only): same frame,
   header with the drag handle, drag it anywhere by the header, the page behind stays usable, X or Esc closes */
html:not(.ph) .modal.drawer { background: transparent; place-items: center; pointer-events: none; animation: none; }
html:not(.ph) .modal.drawer .box { pointer-events: auto; width: min(540px, calc(100vw - 32px)); height: auto; max-height: min(780px, calc(100vh - 32px)); overflow-y: auto; padding: 0 22px 22px; border: 1px solid var(--line-2); border-left: 1px solid var(--line-2); border-radius: 12px; box-shadow: 0 30px 90px rgba(0,0,0,.75); background: var(--quote-bg, var(--panel)); animation: pop .22s var(--ease); gap: 16px; }
html:not(.ph) .modal.drawer .drawhead { position: sticky; top: 0; z-index: 3; margin: 0 -22px; padding: 20px 14px 12px 22px; background: var(--panel); border-bottom: 1px solid var(--line); cursor: grab; user-select: none; }
html:not(.ph) .modal.drawer .drawhead::before { content: ""; position: absolute; left: 50%; top: 7px; width: 42px; height: 4px; margin-left: -21px; border-radius: 4px; background: rgba(255,255,255,.28); transition: background .2s, width .2s, margin .2s; }
html:not(.ph) .modal.drawer .drawhead:hover::before, html:not(.ph) .modal.drawer.moving .drawhead::before { background: var(--accent); width: 58px; margin-left: -29px; }
html:not(.ph) .modal.drawer.moving .drawhead { cursor: grabbing; }
html:not(.ph) .modal.drawer .drawhead h2 { font-family: var(--body); font-weight: 900; font-size: 15px; letter-spacing: .02em; text-transform: uppercase; margin: 0; }
/* Profile rows: label on the left, value on the right on the SAME line; a long value (a car name) wraps inside its own
   right-hand space instead of dropping under the label */
html:not(.ph) #p-details .kvrow:not(.tall) { flex-wrap: nowrap; align-items: baseline; }
html:not(.ph) #p-details .kvrow:not(.tall) > b, html:not(.ph) #p-details .kvrow:not(.tall) > a { flex: 1 1 auto; min-width: 0; text-align: right; white-space: normal; text-wrap: pretty; }
/* Lead bar on a narrower window (second row with the stage picker): the Move button keeps its own size instead of
   stretching across the whole row; picker, Move and New task sit together on the left */
:is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage { justify-content: flex-start; }
:is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .next { flex: none !important; justify-content: center; }
:is(.ltop[data-fit="4"], .ltop[data-fit="5"], .ltop[data-fit="6"]) .ltstage .newtask2 .ll { display: inline; }
/* Conversations: channel filter (All, iMessage, SMS, Instagram...) between Unread/All and the search */
.msgs .listhead .chansel { width: 100%; margin: 8px 0 0; padding: 8px 30px 8px 10px; font-size: 13px; font-weight: 600; border-radius: 8px; background-color: var(--bg); }
