/* CoreDev sales CRM — one stylesheet, no build step. Desk-first; a rep works
   this from a laptop between dials. Same look as coredev.systems: flat and
   solid, paper/panel/ink/orange, Inter, square-ish corners.

   THEME. Light is the default — <html data-theme="light"> is in the markup and
   an inline script in <head> swaps in "dark" from localStorage before paint, so
   there is no flash. The OS setting is deliberately NOT followed: the rep picks
   one on their profile and it sticks. Every colour is a token below; nothing in
   a template or a rule should hardcode one, or it will be wrong in one theme. */
:root {
  --bg: #f5f6f8; --card: #ffffff; --ink: #141a20; --ink-2: #303a44; --muted: #5c6873; --line: #e3e7eb;
  --brand: #e8590c; --brand-deep: #ad4105; --brand-wash: #fff1e8; --brand-ink: #ffffff;
  --brand-btn: #c2410c; --brand-btn-deep: #9a3412;   /* white text on these passes 4.5:1 */
  --ok: #15803d; --warn: #b45309; --bad: #b91c1c; --info: #1d4ed8;
  --ok-bg: #dcfce7; --warn-bg: #fef3c7; --bad-bg: #fee2e2; --info-bg: #dbeafe; --chip: #f5f6f8;
  /* solid blocks that carry white text in BOTH themes — they must stay mid-tone */
  --ok-solid: #15803d; --bad-solid: #b91c1c; --on-solid: #ffffff;
  --log-bg: #0b0d12; --log-ink: #d1d5db;      /* the console block on a run page */
  --scrim: rgba(255,255,255,.72);             /* the ring around the photo cropper */
  --stage: #e5e7eb;                           /* the cropper's empty stage */
  --radius: 6px; --nav-h: 0px;   /* no bottom bar any more: the phone menu is the rail, slid in */
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0f1215; --card: #171b20; --ink: #e9edf1; --ink-2: #c6cfd8; --muted: #93a0ad; --line: #2b323a;
  --brand: #e8590c; --brand-deep: #ff9248; --brand-wash: #2c1b10; --brand-ink: #ffffff;
  --brand-btn: #c2410c; --brand-btn-deep: #9a3412;
  --ok: #4ade80; --warn: #fbbf24; --bad: #f87171; --info: #7dabff;
  --ok-bg: #123021; --warn-bg: #33270b; --bad-bg: #3a1618; --info-bg: #15243d; --chip: #1f252c;
  --ok-solid: #15803d; --bad-solid: #b91c1c; --on-solid: #ffffff;
  --log-bg: #0b0d12; --log-ink: #d1d5db;
  --scrim: rgba(0,0,0,.72);
  --stage: #2b323a;
  color-scheme: dark;
}
/* One logo, two inks: dark artwork on light, white artwork on dark. */
img.lg-d { display: none !important; }              /* one logo at a time: the dark-ink one only on the dark theme (the bar's img rule is more specific, hence !important) */
.auth-logo { display: block; margin-bottom: 14px; }
.auth-logo img { height: 44px; width: auto; }
:root[data-theme="dark"] img.lg-l { display: none !important; }
:root[data-theme="dark"] img.lg-d { display: block !important; }
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.5 Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: inherit; }
h1 { font-size: 24px; margin: 0 0 12px; font-weight: 800; letter-spacing: -.01em; }
h2 { font-size: 16px; margin: 0 0 8px; font-weight: 700; }
h3 { font-size: 14px; margin: 0 0 6px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
p { margin: 0 0 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 16px 16px calc(var(--nav-h) + 24px); }
@media (min-width: 900px) { .wrap { padding-bottom: 32px; } }

/* phone-width notice (base.html) — solid, above everything, gone at desktop widths */

/* folded sections (Demos page): native <details>, closed by default */
.fold { margin: 16px 0 0; }
.fold > summary { cursor: pointer; font-size: 16px; font-weight: 700; padding: 10px 0; list-style: none; display: flex; align-items: center; gap: 8px; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::before { content: ''; width: 8px; height: 8px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(-45deg); transition: transform .12s; }
.fold[open] > summary::before { transform: rotate(45deg); }

/* nav — a left rail on a desk (like the FSM admin); on a phone the SAME rail slides in from a text Menu button */
:root { --side-w: 212px; }
.rail { display: none; position: fixed; left: 0; top: 0; bottom: 0; width: var(--side-w); z-index: 20;
  background: var(--card); border-right: 1px solid var(--line); flex-direction: column; }
.rail .logo { display: block; text-decoration: none; padding: 18px 16px 16px; border-bottom: 1px solid var(--line); }
.rail .logo img { width: 100%; max-width: 118px; height: auto; display: block; }
.rail .logo .logo-tag { display: block; padding: 8px 0 0; border: 0; font-size: 11px; }
.rail .links { flex: 1; overflow-y: auto; padding: 10px 0 12px; }
.rail .links a.ext .ic { vertical-align: -1px; opacity: .55; }   /* the arrow-out: this one leaves the portal */
.rail .links a { display: block; padding: 10px 16px; text-decoration: none;
  color: var(--muted); font-weight: 600; font-size: 15px; border-left: 3px solid transparent; }
.rail .links a:hover { background: var(--chip); color: var(--ink); }
.rail .links a.on { background: var(--brand-wash); color: var(--brand-deep); border-left-color: var(--brand); }
/* Practice, until they press "I'm ready": a breathing dot so a new rep can't miss it */
.rail .links a.new { color: var(--ink); }
/* Step 1 on the practice lead: a light runs around the outline until "I called" — the one button a
   first run has to find. The ring is drawn INSIDE the card's box (::before = the running gradient,
   ::after = the card's fill 2px in), so nothing pokes outside a scrolling column and gets clipped.
   Both pseudo layers sit below the card's content (isolation + negative z-index). */
.card.now.glow { position: relative; isolation: isolate; background: transparent; border-color: transparent; animation: glow 2.4s ease-in-out infinite; }
.card.now.glow::before { content: ''; position: absolute; inset: 0; z-index: -2; border-radius: var(--radius);
  background: conic-gradient(from var(--trace), transparent 0 58%, var(--brand) 80%, transparent 100%); animation: trace 2.4s linear infinite; }
.card.now.glow::after { content: ''; position: absolute; inset: 2px; z-index: -1; border-radius: calc(var(--radius) - 1px); background: var(--card); }
@property --trace { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes trace { to { --trace: 360deg; } }
@keyframes glow { 0%, 100% { box-shadow: 0 0 0 0 transparent; } 50% { box-shadow: 0 0 0 4px var(--brand-wash); } }
@media (prefers-reduced-motion: reduce) { .card.now.glow, .card.now.glow::before { animation: none; } .card.now.glow { border-color: var(--brand); } }
.rail .links a .pulse { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand);
  margin-right: 9px; vertical-align: 1px; animation: pulse 1.8s ease-out infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 var(--brand); } 70% { box-shadow: 0 0 0 9px transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .rail .links a .pulse { animation: none; } }
.rail .grp { margin: 14px 0 4px; padding: 0 16px; font-size: 11px; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--muted); }   /* no opacity: at 11px the muted ink is already at the contrast floor */
.rail .me { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-size: 13px;
  border-top: 1px solid var(--line); padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); }
.rail .me:hover, .rail .me.on { background: var(--chip); }
.rail .me > span { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.rail .me .muted { font-size: 11px; }
.ver { font-size: 11px; color: var(--muted); margin: 0; padding: 0 16px 10px; text-align: center; user-select: none; }

/* a settings row, the FSM shape: icon tile · title + one line · the control on the right */
.setting { display: flex; align-items: center; gap: 14px; }
.setting .tile { width: 40px; height: 40px; border-radius: 8px; background: var(--chip); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; flex: none; color: var(--ink-2); }
.setting .what { flex: 1; min-width: 0; }
.seg { display: flex; background: var(--chip); border: 1px solid var(--line); border-radius: 8px; padding: 3px; flex: none; }
.seg button { display: flex; align-items: center; gap: 6px; padding: 6px 10px; border: 0; border-radius: 6px; background: transparent;
  color: var(--muted); font: inherit; font-size: 12px; font-weight: 600; cursor: pointer; }
.seg button:hover { color: var(--ink); }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0,0,0,.12); }
@media (max-width: 560px) { .seg button span { display: none; } .seg button { padding: 8px 10px; } }

/* the practice lead: a solid strip across the top so nobody mistakes it for a real one */
.practice-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn); border-radius: var(--radius);
  padding: 10px 14px; margin-bottom: 12px; font-size: 14px; }
.practice-bar a { color: inherit; }

.top { background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.top .in { max-width: 1100px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: center; gap: 24px; }
.top .logo { display: flex; align-items: center; gap: 14px; text-decoration: none; }
.top .logo img { height: 32px; width: auto; display: block; }
.logo-tag { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding-left: 14px; border-left: 1px solid var(--line); line-height: 1; }
.top .me { margin-left: auto; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
@media (min-width: 1000px) {
  body { padding-left: var(--side-w); }
  .rail { display: flex; }
  .top { display: none; }
}

/* layout bits */
.grid { display: grid; gap: 12px; }
.grid.two { grid-template-columns: 1fr; }
.grid.stats { grid-template-columns: repeat(2, 1fr); }
@media (min-width: 700px) { .grid.two { grid-template-columns: 1fr 1fr; } .grid.stats { grid-template-columns: repeat(4, 1fr); } }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; }
.card + .card { margin-top: 12px; }
.stat { text-align: left; }
.stat .n { font-size: 26px; font-weight: 700; line-height: 1.1; }
.stat .l { font-size: 12px; color: var(--muted); }
.row { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 8px; }
hr { border: 0; border-top: 1px solid var(--line); margin: 12px 0; }

/* messages — solid, both themes */
.flash { padding: 10px 14px; border-radius: var(--radius); margin-bottom: 12px; font-weight: 500; border: 1px solid transparent; }
.flash.success { background: var(--ok-bg); color: var(--ok); border-color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: var(--bad); }
.flash.info { background: var(--info-bg); color: var(--info); border-color: var(--info); }
.flash.warning { background: var(--warn-bg); color: var(--warn); border-color: var(--warn); }
.photo-nag { background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--warn); font-weight: 500; }
.photo-nag .wrap { padding: 10px 16px; }
.photo-nag a { color: inherit; font-weight: 700; text-decoration: underline; white-space: nowrap; }

/* forms + buttons */
input[type=text], input[type=tel], input[type=email], input[type=password], input[type=url], input[type=number], input[type=date], input[type=search],
select, textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card);
  color: var(--ink); font: inherit; }
textarea { min-height: 80px; resize: vertical; }
label.f { display: block; font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.field { margin-bottom: 10px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600;
  cursor: pointer; text-decoration: none; white-space: nowrap; }
.btn:hover { background: var(--chip); }
/* White text needs 4.5:1 (WCAG AA): the button is a darker orange than the brand mark, in both themes. */
.btn.primary { background: var(--brand-btn); color: var(--brand-ink); border-color: var(--brand-btn); }
.btn.primary:hover { background: var(--brand-btn-deep); border-color: var(--brand-btn-deep); }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.good { border-color: var(--ok); color: var(--ok); background: var(--card); }
.btn.good:hover { background: var(--ok-bg); }
.btn.sm { padding: 6px 10px; font-size: 13px; }
.btn.block { width: 100%; }
.btn.big { padding: 14px 18px; font-size: 16px; border-color: var(--ink); }
.btn.big.primary { border-color: var(--brand); }
form.inline { display: inline; }
.disp { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
@media (min-width: 700px) { .disp { grid-template-columns: repeat(5, 1fr); } .disp.two { grid-template-columns: 1fr 1fr; } }
.disp button { padding: 14px 8px; }
.disp.two { grid-template-columns: 1fr 1fr; }
.tabs { display: flex; gap: 4px; }
.tabs a { text-decoration: none; padding: 8px 12px; border-radius: 999px; color: var(--muted); font-weight: 500; }
.tabs a.on { background: var(--ink); color: var(--bg); }
.tabs a b { font-weight: 600; }
.disp button.good { border-color: var(--ok); color: var(--ok); }
.disp button.bad { border-color: var(--bad); color: var(--bad); }

/* chips + pills */
.chip { display: inline-block; padding: 2px 8px; border-radius: 999px; background: var(--chip); font-size: 12px; margin: 2px 4px 2px 0; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.pill.new { background: var(--info-bg); color: var(--info); }
.pill.called, .pill.callback { background: var(--chip); color: var(--muted); }
.pill.interested { background: var(--warn-bg); color: var(--warn); }
.pill.demo_sent { background: var(--info-bg); color: var(--info); }
.pill.won, .pill.running, .pill.done { background: var(--ok-bg); color: var(--ok); }
.pill.lost, .pill.removed, .pill.failed, .pill.expired { background: var(--bad-bg); color: var(--bad); }
.pill.queued, .pill.cancelled { background: var(--chip); color: var(--muted); }
.pill.stopped { background: var(--warn-bg); color: var(--warn); }
.score { display: inline-flex; align-items: center; justify-content: center; min-width: 38px; height: 38px; padding: 0 8px;
  border-radius: var(--radius); background: var(--chip); font-weight: 700; font-size: 16px; }
.score.hot { background: var(--brand); color: var(--brand-ink); }
.score.warm { background: var(--warn-bg); color: var(--warn); }

/* lists / tables */
.list { display: flex; flex-direction: column; }
.list a.item, .list .item { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); text-decoration: none; }
.list .item:first-child { border-top: 0; }
.item .main { flex: 1; min-width: 0; }
.item .t { font-weight: 600; }
.item .s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); vertical-align: top; }
th { font-size: 12px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .03em; }
.tel { font-size: 20px; font-weight: 700; text-decoration: none; }
.activity .a { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; }
.activity .a .when { color: var(--muted); font-size: 12px; }
.script details { border-top: 1px solid var(--line); }
.script summary { padding: 10px 0; font-weight: 600; cursor: pointer; }
.script pre { white-space: pre-wrap; font: inherit; margin: 0 0 12px; color: var(--ink); }
.filters { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
@media (min-width: 700px) { .filters { grid-template-columns: 2fr repeat(5, 1fr); } }
.log { background: var(--log-bg); color: var(--log-ink); border: 1px solid var(--line); padding: 10px; border-radius: var(--radius); max-height: 320px; overflow: auto; }
.qr { color: var(--ink); }
.qr svg { width: 120px; height: 120px; }
.checks label { display: flex; gap: 8px; align-items: center; padding: 6px 0; font-size: 14px; }
.checks input { width: auto; }
.login { max-width: 400px; margin: 60px auto; padding: 28px 24px; }
.login h1 { margin-bottom: 6px; }
.login > p.muted { margin-bottom: 18px; }
.login .field { margin-bottom: 12px; }
.login input { height: 48px; font-size: 16px; padding: 0 14px; text-align: left; letter-spacing: normal; }
.login input.code { font-size: 22px; text-align: center; letter-spacing: .18em; }
.login .btn.big { height: 48px; font-size: 16px; margin-top: 4px; }
.login .after { margin: 14px 0 0; font-size: 13px; color: var(--muted); }
.kbd { font-size: 12px; color: var(--muted); }

/* busy spinner */
.spin { display: inline-block; width: 16px; height: 16px; border: 2px solid var(--line); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; vertical-align: -3px; }
@keyframes spin { to { transform: rotate(360deg); } }

/* market rank + the X-out button */
.rank { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; padding: 2px 6px; border-radius: var(--radius); background: var(--chip); font-weight: 700; font-size: 13px; }
.rank.top { background: var(--ink); color: var(--bg); }
.rank .of { font-weight: 400; font-size: 11px; opacity: .65; margin-left: 1px; }
.legend { font-size: 13px; color: var(--muted); margin: 0 0 10px; }
.vgroups { display: grid; grid-template-columns: 1fr; gap: 2px 16px; }
@media (min-width: 560px) { .vgroups { grid-template-columns: 1fr 1fr; } }
.vgroup .gh { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin: 10px 0 2px; }
.vgroup label { display: flex; gap: 8px; align-items: center; padding: 4px 0; font-size: 14px; }
.vgroup input { width: auto; }
.x { border: 1px solid var(--line); background: var(--card); color: var(--muted); border-radius: var(--radius); width: 30px; height: 30px; cursor: pointer; font-size: 14px; }
.x:hover { color: var(--bad); border-color: var(--bad); }

/* quick texts */
.texts { border: 2px solid var(--brand); }
.texts h2 { font-size: 20px; }
.texts select, .texts input[type=tel] { font-size: 16px; }
.qt { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 12px; }
@media (min-width: 700px) { .qt { grid-template-columns: repeat(2, 1fr); } }
.q { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; display: flex; flex-direction: column; gap: 8px; }
.qt-title { font-weight: 700; font-size: 17px; }
.qt-body { font-size: 15px; line-height: 1.5; color: var(--ink); flex: 1; }
.q .btn { padding: 12px 16px; font-size: 15px; }
.q textarea { font-size: 15px; min-height: 90px; }

/* number toggles + toast */
.numbtn { padding: 10px 14px; border-radius: var(--radius); border: 2px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-weight: 600; font-size: 16px; cursor: pointer; }
.numbtn.on { border-color: var(--brand); background: var(--brand); color: var(--brand-ink); }
.q .btn:disabled { background: var(--chip); color: var(--muted); border-color: var(--line); cursor: not-allowed; filter: none; }
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 16px); transform: translate(-50%, 20px); opacity: 0; transition: all .25s;
  padding: 12px 18px; border-radius: var(--radius); font-weight: 600; z-index: 50; max-width: 92vw; box-shadow: 0 6px 24px rgba(0,0,0,.25); }
@media (min-width: 900px) { .toast { bottom: 24px; } }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast.ok { background: var(--ok-solid); color: var(--on-solid); }
.toast.bad { background: var(--bad-solid); color: var(--on-solid); }

/* demo cards — the demo desk's card, in this theme's colours */
.sb { padding: 18px; }
.sb > .row { display: grid; grid-template-columns: 132px 1fr; gap: 16px; align-items: start; }
@media (max-width: 560px) { .sb > .row { grid-template-columns: 1fr; } .sb .qr svg { margin: 0 auto; } }
.sb .qr svg { width: 132px; height: 132px; display: block; }
.sb .who { font-size: 17px; font-weight: 700; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.sb .who .pill { font-size: 11px; font-weight: 700; padding: 2px 8px; }
.sb .meta { color: var(--muted); font-size: 13px; margin: 2px 0 8px; overflow-wrap: anywhere; }
.sb .meta a { color: var(--brand-deep); font-weight: 600; }   /* the deep orange reads at 13px; the plain brand orange is 3.6:1 on white */
.sb .sub { color: var(--muted); font-size: 12px; }
.sb .stats { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.sb .stats b { color: var(--ink); }
.sb .url { display: flex; gap: 6px; align-items: center; }
.sb .url input { flex: 1; min-width: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; padding: 9px 10px; border-radius: 6px; }
.sb .chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.sb .chips label { display: inline-flex; align-items: center; gap: 5px; padding: 5px 10px; border: 1px solid var(--line); border-radius: 999px; font-size: 12px; font-weight: 600; color: var(--muted); cursor: pointer; background: var(--card); margin: 0; }
.sb .chips label:has(input:checked) { border-color: var(--brand); color: var(--brand); }
.sb .chips input { width: auto; margin: 0; }
.sb .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; }
.sb .actions form.inline { display: inline-flex; gap: 6px; align-items: center; }
.sb .actions input[type=tel], .sb .actions input[type=text] { width: 160px; padding: 9px 10px; font-size: 14px; border-radius: 6px; }
.sb .actions select { width: auto; padding: 9px 10px; font-size: 14px; border-radius: 6px; }
.ghost { padding: 9px 14px; border-radius: 6px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ghost:hover { background: var(--chip); }
.ghost.danger { color: var(--bad); border-color: var(--bad); }
.sb .btn.sm { padding: 9px 14px; font-size: 14px; border-radius: 6px; }


#agreement b { font-size: 16px; }
#agreement select { font-size: 16px; padding: 10px 12px; }
#agreement input[type=email] { font-size: 16px; }

/* Ask — the quick-answer chat. Floating button → small solid panel above the bottom nav. */
.ask-fab { position: fixed; right: 16px; bottom: calc(var(--nav-h) + 14px); z-index: 30; background: var(--brand); color: var(--brand-ink);
  border: 0; border-radius: 50%; width: 56px; height: 56px; font-size: 26px; font-weight: 800; line-height: 1; box-shadow: 0 4px 14px rgba(0,0,0,.25); cursor: pointer; }
.ask-fab:hover { background: var(--brand-deep); }
.ask[hidden], .ask-fab[hidden] { display: none; }
.ask-only { display: none !important; }                 /* "Ask Neva" in the menu is the phone way in; the desk keeps the floating button */
@media (max-width: 999px) { .ask-fab { display: none !important; } .rail .ask-only { display: block !important; } }   /* same breakpoint as the slide-in menu */
.ask { position: fixed; right: 12px; left: 12px; bottom: calc(var(--nav-h) + 10px); z-index: 31; background: var(--card); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 8px 28px rgba(0,0,0,.3); display: flex; flex-direction: column; height: 82vh; max-height: 82vh; }
@media (min-width: 900px) { .ask-fab { bottom: 20px; } .ask { left: auto; width: 440px; bottom: 20px; height: min(760px, calc(100vh - 40px)); max-height: calc(100vh - 40px); } }
.ask-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ask-head .small { flex: 1; }
.ask-x { background: var(--chip); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); font-size: 18px; line-height: 1; cursor: pointer; width: 40px; height: 40px; }
.ask-x:hover { background: var(--line); }
.ask-log { flex: 1; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 16px; line-height: 1.45; }
.ask-u { align-self: flex-end; background: var(--brand); color: var(--brand-ink); padding: 8px 12px; border-radius: var(--radius) 14px 2px 14px; max-width: 88%; white-space: pre-wrap; }
.ask-a { align-self: flex-start; background: var(--chip); padding: 8px 12px; border-radius: var(--radius) 14px 14px 2px; max-width: 92%; white-space: pre-wrap; }
.ask-form { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px solid var(--line); }
.ask-form input { flex: 1; font-size: 16px; }


/* ── lead page: read on the left, act on the right ─────────────────────────
   Built for a laptop/desktop: the script and objections fill the left column,
   the right column is sticky and holds NOW (dial / answered? / how'd it go?),
   the tools panel (text · demo · contact · agreement) and the log. Under
   1000px the columns stack, sidebar first. */
.lead { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.lead .side { display: flex; flex-direction: column; gap: 12px; order: -1; }
.lead .side > * { flex: none; }   /* never let the sticky column squash a card; it scrolls instead */
.lead .side .card + .card { margin-top: 0; }
.lead .main .card + .card, .lead .main .card + details.card { margin-top: 12px; }
@media (min-width: 1212px) {
  .lead { grid-template-columns: minmax(0, 1fr) 400px; }
  .lead .side { order: 0; position: sticky; top: 16px; max-height: calc(100vh - 32px); overflow-y: auto; padding-right: 2px; }
}
@media (min-width: 1452px) { .lead { grid-template-columns: minmax(0, 1fr) 440px; } }
[id] { scroll-margin-top: 80px; }

/* the script */
.script .step { border-top: 1px solid var(--line); padding: 18px 0 8px; }
.script .step:first-of-type { border-top: 0; padding-top: 4px; }
.script .step > h3 { display: flex; align-items: center; gap: 10px; font-size: 15px; letter-spacing: .02em; margin: 0 0 10px; color: var(--ink); text-transform: none; }
.script .step > h3 .n { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border-radius: 999px;
  background: var(--ink); color: var(--card); font-size: 13px; font-weight: 800; }
.script .step.hl > h3 .n { background: var(--brand); }
.script .step.hl > pre { border: 2px solid var(--brand); border-radius: var(--radius); padding: 12px 14px; background: var(--brand-wash); }
.script pre { white-space: pre-wrap; font: inherit; font-size: 18px; line-height: 1.6; margin: 0; max-width: 78ch; }
.script pre .dir { display: inline; color: var(--muted); font-size: 15px; font-style: italic; }
.script .go { margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 15px; font-weight: 600; }
.script .go a { color: var(--brand-deep); text-decoration: none; }
.script .go a:hover { text-decoration: underline; }
.script details.ref { margin-top: 10px; border: 1px solid var(--line); border-radius: var(--radius); padding: 0 12px; background: var(--bg); max-width: 78ch; }
.script details.ref > summary { cursor: pointer; padding: 10px 0; font-weight: 600; font-size: 14px; list-style: none; }
.script details.ref > summary::before { content: '▸ '; color: var(--muted); }
.script details.ref[open] > summary::before { content: '▾ '; }
.script details.ref > summary::-webkit-details-marker { display: none; }
.script details.ref > .in { padding: 0 0 12px; }
.script .inc { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.55; }
.script .inc li { margin-bottom: 4px; }
.tiers { display: grid; gap: 8px; margin-top: 10px; }
@media (min-width: 700px) { .tiers { grid-template-columns: repeat(3, 1fr); } }
.tier { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; font-size: 14px; background: var(--card); }
.tier b { font-size: 15px; }
.tier div { color: var(--muted); margin-top: 2px; }
.tier.std { border-color: var(--brand); }

/* the sidebar */
.side .now { border: 2px solid var(--brand); }
.side .now h2 { font-size: 18px; }
.side .disp.two { grid-template-columns: 1fr 1fr; }
.side .disp button { padding: 12px 8px; }
.tools { padding: 0; }
.tabbar { border-radius: var(--radius) var(--radius) 0 0; }
.tabbar { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; border-bottom: 1px solid var(--line); background: var(--bg); }   /* every tab on ONE row, however many (five wrapped Agreement onto its own line) */
.tabbar .tab { background: none; border: 0; border-bottom: 3px solid transparent; padding: 11px 2px 9px; font: inherit; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; }   /* icon + label stay on one line even when the bar wraps */
.tabbar .tab:hover { color: var(--ink); }
.tabbar .tab.on { color: var(--brand-deep); border-bottom-color: var(--brand); background: var(--card); }
.tabbar .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); vertical-align: middle; margin-left: 2px; }
.tools .pane { padding: 14px; }
.tools .pane h4 { margin: 0 0 8px; font-size: 15px; }
.tools .pane[hidden] { display: none; }
.qt.one { grid-template-columns: 1fr; gap: 8px; margin-top: 10px; }
.qt.one .q { padding: 10px 12px; gap: 4px; display: grid; grid-template-columns: 1fr auto; align-items: center; }
.qt.one .qt-title { font-size: 14px; }
.qt.one .qt-body { font-size: 13px; line-height: 1.4; color: var(--muted); grid-column: 1 / -1; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.qt.one .q:hover .qt-body, .qt.one .q:focus-within .qt-body { -webkit-line-clamp: unset; }
.qt.one .q .btn { padding: 7px 12px; font-size: 13px; grid-row: 1; grid-column: 2; }
.qt.one .q textarea { grid-column: 1 / -1; }
.agree h2 { font-size: 17px; }
.agree select { font-size: 15px; padding: 8px 10px; }
.side .sb { padding: 12px; }
.side .sb > .row { grid-template-columns: 1fr; gap: 10px; }
.side .sb .qr svg { width: 110px; height: 110px; }
.side .activity { max-height: 320px; overflow-y: auto; }

/* objections, grouped */
.objs details { border-top: 1px solid var(--line); }
.objs details:first-of-type { border-top: 0; }
.objs summary { cursor: pointer; padding: 12px 0; font-weight: 700; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 8px; }
.objs summary::-webkit-details-marker { display: none; }
.objs summary::before { content: '▸'; color: var(--muted); font-size: 13px; }
.objs details[open] > summary::before { content: '▾'; }
.objs .obj { padding: 4px 0 14px; }
.objs .you { font-size: 17px; line-height: 1.6; padding-left: 14px; border-left: 3px solid var(--brand); max-width: 78ch; }
.objs .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-right: 8px; vertical-align: middle; }
.objs .you .tag { color: var(--brand-deep); }

/* voicemail, folded under the dial step */
details.vm { margin-top: 10px; }
details.vm > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--muted); }
details.vm > pre { white-space: pre-wrap; font: inherit; font-size: 16px; line-height: 1.6; margin: 8px 0 0; padding: 10px 12px; border-left: 3px solid var(--line); }

/* closed lead: the paperwork is what matters; the script folds */
details.fold > summary { cursor: pointer; font-weight: 700; font-size: 16px; list-style: none; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary::before { content: '▸ '; color: var(--muted); }
details.fold[open] > summary::before { content: '▾ '; }
.steps5 { display: flex; flex-wrap: wrap; gap: 4px 2px; align-items: center; }
.after { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.after b { color: var(--ink); }

/* inline icons: sit on the text baseline, inherit color */
.ic { display: inline-block; vertical-align: -3px; flex: none; }
.tabbar .tab .ic { vertical-align: -3px; margin-right: 2px; }
.script .go a .ic:last-child { vertical-align: -2px; margin-left: 2px; }
.tel .ic { vertical-align: -2px; margin-right: 2px; }

/* team scoreboard */
.funnel { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 14px; }
@media (min-width: 900px) { .funnel { grid-template-columns: repeat(6, 1fr); } }
.funnel .f { border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; position: relative; }
.funnel .f .n { font-size: 26px; font-weight: 800; line-height: 1.1; }
.funnel .f .l { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 2px; }
.funnel .f .s { font-size: 12px; color: var(--muted); margin-top: 4px; }
.funnel .f.win { border-color: var(--ok); background: var(--ok-bg); }
.funnel .f.win .n { color: var(--ok); }
.tablewrap { overflow-x: auto; }
.boardt th.r, .boardt td.r { text-align: right; white-space: nowrap; }
.boardt td .sub { font-size: 11px; color: var(--muted); font-weight: 400; }
.boardt tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; font-weight: 600; }
.boardt.months tfoot tr.money td { border-top: 0; font-weight: 400; }

/* competitor table (Pricing page bottom) */
table.compare { font-size: 13px; width: 100%; table-layout: fixed; }
table.compare th { white-space: nowrap; }
table.compare td { vertical-align: top; overflow-wrap: anywhere; }
table.compare th:nth-child(1), table.compare td:nth-child(1) { width: 13%; }
table.compare th:nth-child(2), table.compare td:nth-child(2) { width: 22%; }
table.compare tr.us td { background: var(--brand-wash); }

/* rep photo: avatar + the crop overlay */
.avatar { border-radius: 50%; object-fit: cover; border: 1px solid var(--line); display: inline-block; vertical-align: middle; flex-shrink: 0; }
.avatar-init { border-radius: 50%; background: var(--chip); border: 1px solid var(--line); display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 0.45em; color: var(--muted); flex-shrink: 0; vertical-align: middle; }
.avatar-init { font-size: 13px; }
.crop { position: fixed; inset: 0; z-index: 120; background: rgba(0,0,0,.65); display: flex; align-items: center; justify-content: center; padding: 20px; }
.crop[hidden] { display: none; }
.crop-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; width: 100%; max-width: 380px; }
.crop-card h2 { margin: 0 0 4px; font-size: 18px; }
.crop-stage { position: relative; width: 320px; height: 320px; margin: 12px auto 10px; border-radius: 8px; overflow: hidden; touch-action: none; cursor: grab; background: var(--stage); }
.crop-stage canvas { display: block; }
.crop-mask { position: absolute; inset: 0; pointer-events: none; border-radius: 50%; box-shadow: 0 0 0 999px var(--scrim); outline: 2px solid var(--brand); }
.crop input[type=range] { width: 100%; }

/* ── Tools card panes (Text / Email / Demo): three steps, top to bottom ──
   1. To      — the lead's numbers/addresses as pick-one pills + a free input.
   2. Message — pick ONE; the picked card opens up to show the whole text,
                the others show a title and a one-line preview.
   3. Send    — one primary button per pane (the radio decides what it sends).
   Replaces the old "four rows, four Send buttons, every text in full" layout. */
.tools .practice { margin: 0; padding: 8px 14px; font-size: 13px; background: var(--warn-bg); color: var(--warn); border-bottom: 1px solid var(--line); border-radius: var(--radius) var(--radius) 0 0; }
.tools .practice + .tabbar { border-radius: 0; }
.tools .to { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.tools .to .lbl { flex: 0 0 100%; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.tools .to .numbtn { padding: 8px 12px; font-size: 14px; }
.tools .to .numbtn .sub { font-weight: 500; font-size: 12px; opacity: .7; }
.tools .to input[type=tel], .tools .to input[type=email] { flex: 1 1 150px; min-width: 150px; }
.tools .msgs { display: grid; gap: 6px; margin-top: 12px; }
.tools .msg { display: grid; grid-template-columns: 16px 1fr; column-gap: 10px; row-gap: 3px; align-items: start; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); cursor: pointer; }
.tools .msg:hover { background: var(--chip); }
.tools .msg.on { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); background: var(--card); cursor: default; }
.tools .msg input[type=radio] { margin: 2px 0 0; width: 16px; height: 16px; accent-color: var(--ink); cursor: pointer; }
.tools .msg .t { font-weight: 700; font-size: 14px; line-height: 1.3; color: var(--ink); }
.tools .msg .b { grid-column: 2; font-size: 13px; line-height: 1.45; color: var(--muted); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.tools .msg.on .b { -webkit-line-clamp: unset; color: var(--ink); }
.tools .msg .own { display: none; grid-column: 2; margin-top: 4px; }
.tools .msg.on .own { display: block; }
.tools .msg textarea.own { min-height: 72px; }
.tools .msg input.own + textarea.own { margin-top: 6px; }
.tools .sendrow { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 12px; }
.tools .sendrow .btn { padding: 10px 18px; }

/* The custom-build agreement form (_custom_form.html): four numbered sections, desk-first. */
.cform .lede { margin: 0 0 6px; font-size: 14px; color: var(--muted); line-height: 1.5; }
.cform .sec { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.cform h4 { margin: 0 0 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.cform .g2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
.cform .money { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
.cform .field { margin-bottom: 0; }
.cform input[type="text"], .cform input[type="email"], .cform input[type="number"] { width: 100%; }
.cform input[type="number"] { width: 90px; }
.cform textarea { line-height: 1.45; font-size: 14px; }
.cform .amt { position: relative; }
.cform .amt::before { content: '$'; position: absolute; left: 11px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.cform .amt input { padding-left: 24px; font-weight: 600; font-variant-numeric: tabular-nums; }
.cform .sum { display: flex; flex-wrap: wrap; gap: 6px 22px; margin-top: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--chip); font-size: 14px; color: var(--muted); }
.cform .sum b { color: var(--ink); font-variant-numeric: tabular-nums; }
.cform .hint { font-size: 12px; color: var(--muted); margin: 4px 0 0; line-height: 1.4; }
.cform .send { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; margin-top: 14px; }
@media (min-width: 1000px) {
  .cform .g2 { grid-template-columns: 1fr 1fr; }
  .cform .money { grid-template-columns: 1.1fr 1.1fr 1fr .9fr .9fr; }
}
.cform .btn.armed { background: var(--ok-solid); border-color: var(--ok-solid); color: var(--on-solid); }

/* ── the phone: the rail as a drawer, text Menu button, and everything wide made to fit ── */
.menu-btn, .rail-close { display: none; }
@media (max-width: 999px) {
  .top .in { padding: 10px 14px; gap: 12px; }
  .top .logo img { height: 28px; }
  .menu-btn { display: inline-flex; align-items: center; margin-left: auto; min-height: 42px; padding: 8px 16px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 15px; cursor: pointer; }
  .menu-btn[aria-expanded="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }
  .scrim { position: fixed; inset: 0; background: rgba(0, 0, 0, .45); z-index: 29; }
  .scrim[hidden] { display: none; }
  body.menu-open { overflow: hidden; }
  body.menu-open .rail { display: flex; z-index: 30; width: min(320px, 86vw); box-shadow: 0 0 40px rgba(0, 0, 0, .3); }
  .rail-close { display: block; position: absolute; top: 12px; right: 12px; min-height: 40px; padding: 8px 14px; border: 1px solid var(--line); border-radius: var(--radius);
    background: var(--card); color: var(--ink); font: inherit; font-weight: 700; font-size: 14px; cursor: pointer; }
  .rail .logo { display: none; }                     /* the bar above already shows the logo; the drawer is text only */
  .rail .links a { padding: 14px 16px; font-size: 16px; }
  .rail .grp { margin-top: 18px; }
  .rail .me { padding-top: 14px; padding-bottom: calc(14px + env(safe-area-inset-bottom)); font-size: 15px; }
  /* fit: tabs scroll sideways, wide tables scroll inside their card, headings wrap, taps are 40px+ */
  .tabs { overflow-x: auto; flex-wrap: nowrap; scrollbar-width: none; -webkit-overflow-scrolling: touch; margin: 0 -12px; padding: 0 12px; }
  .tabs::-webkit-scrollbar { display: none; }
  .tabs a { white-space: nowrap; padding: 10px 14px; }
  .card, .tablewrap { overflow-x: auto; min-width: 0; }
  .lead, .lead > * { min-width: 0; max-width: 100%; }
  .lead { grid-template-columns: minmax(0, 1fr); }
  h1 { font-size: 22px; overflow-wrap: anywhere; }
  .row.between > * { min-width: 0; }
  .btn.sm { padding: 9px 12px; min-height: 40px; font-size: 14px; }
  .btn { min-height: 44px; }
  .numbtn { min-height: 44px; }
  label.f { font-size: 13px; }
  .wrap { padding: 12px 12px calc(24px + env(safe-area-inset-bottom)); }
  .flash { font-size: 15px; }
  /* thumbs: the bar's logo link, the theme segment, the phone number, and plain text links get a 40px+ tap without moving the layout */
  .top .logo { min-height: 42px; }
  .seg button { min-height: 40px; min-width: 44px; justify-content: center; }
  a.tel { display: inline-flex; align-items: center; min-height: 44px; }
  td > a:not(.btn):not(.pill), p.small > a, p.muted > a, .small.muted > a, .script .go a, .sb .meta a, .after a { display: inline-block; padding: 8px 0; margin: -8px 0; }
  input[type=checkbox], input[type=radio] { width: 20px; height: 20px; min-width: 20px; min-height: 20px; }
  /* iOS zooms into any field under 16px — every typed field is 16px on a phone, whatever its desk size */
  input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=hidden]), select, textarea,
  .cform textarea, .sb .actions select, .sb .actions input[type=tel], .sb .actions input[type=text], .sb .url input, .agree select, #agreement select { font-size: 16px; }
  /* helper text on the contract forms: 13px for a field hint, 14px for the paragraph under the buttons */
  .cform .hint { font-size: 13px; }
  .cform .send .hint { font-size: 14px; }
  .sb .sub { font-size: 13px; }
}
@media (max-width: 430px) { .top .logo-tag { display: none; } }
@media (max-width: 999px) {
  /* the lead's tool tabs: one scrolling row of words, no icons, thumb-sized */
  .tabbar { display: flex; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .tabbar::-webkit-scrollbar { display: none; }
  .tabbar .tab { flex: 0 0 auto; padding: 13px 14px 11px; font-size: 14px; min-height: 44px; }
  .tabbar .tab .ic { display: none; }
}

/* change-order lines (custom_agreement.html) */
.co-lines { width: 100%; border-collapse: collapse; }
.co-lines th { font-size: 11px; padding: 4px 6px 4px 0; }
.co-lines td { padding: 4px 6px 4px 0; border-bottom: 0; vertical-align: middle; }
.co-lines td:last-child { padding-right: 0; }
.co-lines .co-x { padding: 8px 10px; min-height: 40px; min-width: 44px; }
td.r { text-align: right; }
/* on a phone each line is a block: the description full width, then One time · Per month · × underneath (as a table the description box shrank to 35px) */
@media (max-width: 999px) {
  .co-lines thead { display: none; }
  .co-lines, .co-lines tbody { display: block; }
  .co-lines tr { display: grid; grid-template-columns: 1fr 1fr 44px; gap: 6px 8px; align-items: end; padding: 8px 0; border-bottom: 1px solid var(--line); }
  .co-lines td { display: block; padding: 0; }
  .co-lines td:first-child { grid-column: 1 / -1; }
  .co-lines td:nth-child(2)::before, .co-lines td:nth-child(3)::before { display: block; font-size: 12px; color: var(--muted); margin-bottom: 3px; }
  .co-lines td:nth-child(2)::before { content: 'One time'; }
  .co-lines td:nth-child(3)::before { content: 'Per month'; }
}


/* drag-and-drop sorting on the rep side */
.filetable tr[draggable] { cursor: grab; } .filetable tr.dragging { opacity: .45; }
.dropzone.over { background: var(--brand-wash) !important; outline: 2px solid var(--brand); outline-offset: -2px; border-radius: var(--radius); }

/* the rep's drop zone, its progress rows, and the bulk-action bar (vault.html) */
.card .drop { display: block; margin: 12px 0; padding: 16px; border: 2px dashed var(--line); border-radius: var(--radius); text-align: center; cursor: pointer; background: var(--bg); }
.card .drop.over { border-color: var(--brand); background: var(--brand-wash); } .card .drop input { display: none; } .card .drop b { display: block; font-size: 14px; }
.q .it { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.q .bar { grid-column: 1 / -1; height: 5px; border-radius: 3px; background: var(--line); } .q .bar i { display: block; height: 100%; border-radius: 3px; background: var(--brand); width: 0; transition: width .2s; }
.q .it.done .bar i { background: var(--ok); } .q .it.err { color: var(--bad); } .q .it .st { color: var(--muted); white-space: nowrap; }
.bulkbar { padding: 8px 10px; margin: 8px 0; background: var(--brand-wash); border: 1px solid var(--brand); border-radius: var(--radius); }
.bulkbar[hidden] { display: none; }

/* Demos → "Your training demos": one chip per company; ✓ = they have it, otherwise the chip starts it. */
#my-training .chips { display: flex; flex-wrap: wrap; gap: 6px; }
#my-training a.chip { padding: 6px 12px; border: 1px solid var(--line); background: var(--card); font-weight: 600; text-decoration: none; color: var(--muted); margin: 0; }
#my-training a.chip.on { border-color: var(--brand); color: var(--brand); }
#my-training a.chip:hover { border-color: var(--brand); }

/* Menu → "My demo": a row like every other rail row (same type, padding, hover) that unfolds the six demo
   companies under it. Each company opens the rep's OWN copy in a new window, hence the arrow-out the rail
   already uses for links that leave the portal. Text only, like the rest of the rail. */
.rail .links details.mydemo > summary { display: flex; align-items: center; justify-content: space-between; padding: 10px 16px;
  color: var(--muted); font-weight: 600; font-size: 15px; border-left: 3px solid transparent; cursor: pointer; list-style: none; user-select: none; }
.rail .links details.mydemo > summary::-webkit-details-marker { display: none; }
.rail .links details.mydemo > summary:hover { background: var(--chip); color: var(--ink); }
.rail .links details.mydemo[open] > summary { color: var(--ink); }
.rail .links details.mydemo .chev { width: 7px; height: 7px; margin: -3px 3px 0 0; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  transform: rotate(45deg); opacity: .5; transition: transform .15s ease; }
.rail .links details.mydemo[open] .chev { transform: rotate(-135deg); margin-top: 3px; }
.rail .links details.mydemo .sub { margin: 2px 10px 8px 19px; border-left: 1px solid var(--line); }
.rail .links details.mydemo .sub a { padding: 6px 10px 6px 12px; border-left: 0; border-radius: 0 8px 8px 0; }
.rail .links details.mydemo .sub .co, .rail .links details.mydemo .sub .kind { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rail .links details.mydemo .sub .co { font-size: 14px; font-weight: 600; line-height: 1.3; color: var(--muted); }
.rail .links details.mydemo .sub a.have .co, .rail .links details.mydemo .sub a:hover .co { color: var(--ink); }
.rail .links details.mydemo .sub .kind { font-size: 12px; font-weight: 500; line-height: 1.3; color: var(--muted); opacity: .85; }
.rail .links details.mydemo .cap { margin: 6px 10px 2px 12px; font-size: 12px; line-height: 1.35; color: var(--muted); }
@media (max-width: 999px) {
  .rail .links details.mydemo > summary { padding: 14px 16px; font-size: 16px; }
  .rail .links details.mydemo .sub a { padding: 9px 10px 9px 12px; }
  .rail .links details.mydemo .sub .co { font-size: 15px; }
}
@media (prefers-reduced-motion: reduce) { .rail .links details.mydemo .chev { transition: none; } }
