/* Lead Pulse V29 design system · hand-written layer (loads after styles.css and lp-theme-auto.css) */

/* ---------- Tokens ---------- */
/* Style-version marker: must equal BUILD_VERSION in src/app.js so the app does not re-inject styles.css after this file. */
html[data-theme]{--lp-style-version:"29.20.0"}
html[data-theme="light"]{
  color-scheme:light;
  --bg:#f5f6fa;--bg2:#eef0f5;--panel:#ffffff;--panel2:#f7f8fb;--panel3:#eef0f5;
  --line:#e4e7ee;--line2:#d3d8e2;--text:#1c2130;--soft:#3b4254;--muted:#5b6477;
  --blue:#0a6fe0;--cyan:#0e7580;--green:#1f7a4a;--amber:#b45309;--red:#c8322b;--purple:#7048c8;
  --shadow:0 10px 30px rgba(20,24,40,.08);
  --lp-accent:#0a6fe0;--lp-accent-ink:#0b5fc4;--lp-accent-soft:#e7f1fe;--lp-hover:#f5f7fb;--lp-brand-grad:linear-gradient(90deg,#0a84ff,#22d3ee);
}
html[data-theme="dark"]{
  color-scheme:dark;
  --bg:#000000;--bg2:#050506;--panel:#0a0a0c;--panel2:#101013;--panel3:#16161a;
  --line:#1f1f25;--line2:#2c2c34;--text:#f2f2f5;--soft:#cfcfd8;--muted:#9a9aa6;
  --blue:#2f95ff;--cyan:#3cc3cf;--green:#42c98a;--amber:#f0a35e;--red:#ff7a7a;--purple:#a58cff;
  --shadow:0 18px 50px rgba(0,0,0,.6);
  --lp-accent:#0a6fe0;--lp-accent-ink:#6cc4ff;--lp-accent-soft:#0b1d33;--lp-hover:#131317;--lp-brand-grad:linear-gradient(90deg,#1e90ff,#34e0ff);
}

/* ---------- Type + canvas ---------- */
html[data-theme] body, html[data-theme] button, html[data-theme] input, html[data-theme] select, html[data-theme] textarea{
  font-family:'Plus Jakarta Sans',ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;
}
html[data-theme], html[data-theme] body{background:var(--bg)!important;color:var(--text)}
html[data-theme] h1, html[data-theme] h2, html[data-theme] h3{letter-spacing:-.02em}

/* ---------- Buttons & controls ---------- */
html[data-theme] .btn{border-radius:10px;font-weight:700}
html[data-theme] .btn.primary,html[data-theme] #quick-lead{background:var(--lp-accent)!important;border-color:var(--lp-accent)!important;color:#fff!important;box-shadow:none}
html[data-theme] .btn.primary:hover{filter:brightness(1.08)}
html[data-theme] input:focus,html[data-theme] select:focus,html[data-theme] textarea:focus{border-color:var(--lp-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--lp-accent) 18%,transparent)}
html[data-theme] .icon-btn{border-radius:10px}
html[data-theme="light"] .lp-theme-toggle .lp-ic-sun,html[data-theme="dark"] .lp-theme-toggle .lp-ic-moon{display:none}
.lp-theme-toggle{color:var(--text)}

/* ---------- Brand ---------- */
html[data-theme] .brand-logo-full,html[data-theme] .brand-logo-compact{display:none!important}
.lp-wordmark{display:flex;align-items:center;gap:10px;min-width:0}
.lp-mark-img{width:58px;height:auto;flex-shrink:0;display:block}
.lp-wordmark-text{display:flex;flex-direction:column;line-height:1.1;min-width:0}
.lp-wordmark-text b{font-size:16px;font-weight:800;letter-spacing:.14em;color:var(--text);white-space:nowrap}
.lp-wm-pulse{background:var(--lp-brand-grad);-webkit-background-clip:text;background-clip:text;color:transparent}
.lp-wordmark-text small{font-size:8.5px;font-weight:700;letter-spacing:.22em;color:var(--muted);margin-top:3px;white-space:nowrap}
.sidebar-collapsed .lp-wordmark-text{display:none}
.sidebar-collapsed .lp-mark-img{width:40px}

/* ---------- Sidebar ---------- */
html[data-theme] .sidebar{background:var(--panel)!important;border-right:1px solid var(--line)}
html[data-theme] .nav-link{border-radius:9px;border:1px solid transparent!important;font-weight:600;color:var(--soft)}
html[data-theme] .nav-link:hover{background:var(--lp-hover)!important}
html[data-theme] .nav-link.active{background:var(--lp-accent-soft)!important;color:var(--lp-accent-ink)!important;border-color:transparent!important;box-shadow:none!important;font-weight:750}
html[data-theme] .nav-link.active .nav-icon{color:var(--lp-accent-ink)!important}
html[data-theme] .nav-section span{color:var(--muted);letter-spacing:.08em}

/* ---------- Top bar ---------- */
html[data-theme] .topbar{background:color-mix(in srgb,var(--bg) 88%,transparent)!important;backdrop-filter:saturate(1.4) blur(10px);border-bottom:1px solid var(--line)}

/* ---------- Mobile bottom tabs ---------- */
html[data-theme] .mobile-bottom-nav{background:var(--panel)!important;border-top:1px solid var(--line)}
html[data-theme] .mobile-bottom-link.active{color:var(--lp-accent-ink)!important}

/* ---------- Leads page ---------- */
html[data-theme] .leads-title-row .eyebrow{display:none}
html[data-theme] .lead-view-tab.active{background:var(--lp-accent-soft)!important;color:var(--lp-accent-ink)!important;border-color:transparent!important}

/* Status groups: Monday-style colour-coded sections */
.lead-status-board{--lp-g:#5f6778}
.lead-status-board.status-board-hot{--lp-g:#cc2f48}
.lead-status-board.status-board-warm{--lp-g:#b85a0c}
.lead-status-board.status-board-call-back{--lp-g:#7048c8}
.lead-status-board.status-board-new{--lp-g:#5f6778}
.lead-status-board.status-board-cold{--lp-g:#2b67c9}
.lead-status-board.status-board-won{--lp-g:#1f7a4a}
.lead-status-board.status-board-lost{--lp-g:#454b59}
html[data-theme] .lead-status-board{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0}
html[data-theme] .lead-status-board-head{background:transparent!important;border:0!important;padding:4px 0 8px!important}
html[data-theme] .lead-status-board-title .eyebrow{display:none}
html[data-theme] .lead-status-board-title h2{color:var(--lp-g)!important;font-size:17px!important;font-weight:800}
html[data-theme="dark"] .lead-status-board-title h2{color:var(--text)!important}
html[data-theme] .lead-status-board-title h2 span{background:transparent!important;border:0!important;color:var(--muted)!important;font-size:12.5px;font-weight:600}
html[data-theme] .status-board-dot{background:var(--lp-g)!important;box-shadow:none!important}
html[data-theme] .lead-status-board-body{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
html[data-theme] .lead-status-board-body .table-scroll{border-radius:0}

/* Table grid */
html[data-theme] .lead-config-table{border-collapse:collapse}
html[data-theme] .lead-config-table th{background:var(--panel2)!important;color:var(--muted)!important;font-size:11.5px!important;letter-spacing:0!important;text-transform:none!important;font-weight:700;border-bottom:1px solid var(--line)!important;border-right:1px solid var(--line);height:36px;padding-top:0;padding-bottom:0}
html[data-theme] .lead-config-table td{border-bottom:1px solid var(--line)!important;border-right:1px solid var(--line);background:var(--panel)!important;padding-top:6px;padding-bottom:6px;vertical-align:middle}
html[data-theme] .lead-config-table tbody tr:hover td{background:var(--lp-hover)!important}
html[data-theme] .lead-config-table tr>:first-child{box-shadow:inset 6px 0 0 var(--lp-g)}
html[data-theme] .lead-config-table .lead-name b{font-weight:750}

/* Status & Stage: full-colour cells (native select keeps all existing save logic) */
html[data-theme] .lead-config-table td[data-col-id="status"],html[data-theme] .lead-config-table td[data-col-id="stage"]{padding:0!important}
html[data-theme] .lead-config-table .inline-status-select,html[data-theme] .lead-config-table .inline-stage-select{
  -webkit-appearance:none;appearance:none;width:100%;height:100%;min-height:46px;border:0!important;border-radius:0!important;
  color:#fff!important;font-weight:700;font-size:12.5px;text-align:center;text-align-last:center;padding:0 22px 0 10px;cursor:pointer;box-shadow:none!important;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;
  background-repeat:no-repeat!important;background-position:right 9px center!important}
html[data-theme] .inline-status-select{background-color:#5f6778!important}
html[data-theme] .inline-status-select.status-hot{background-color:#cc2f48!important}
html[data-theme] .inline-status-select.status-warm{background-color:#b85a0c!important}
html[data-theme] .inline-status-select.status-call-back{background-color:#7048c8!important}
html[data-theme] .inline-status-select.status-new{background-color:#5f6778!important}
html[data-theme] .inline-status-select.status-cold{background-color:#2b67c9!important}
html[data-theme] .inline-status-select.status-won{background-color:#1f7a4a!important}
html[data-theme] .inline-status-select.status-lost{background-color:#454b59!important}
html[data-theme] .inline-stage-select{background-color:#6b7280!important}
html[data-theme] .inline-stage-select.stage-contacted{background-color:#3563b8!important}
html[data-theme] .inline-stage-select.stage-speaking{background-color:#0e7580!important}
html[data-theme] .inline-stage-select.stage-no-response{background-color:#a1366a!important}
html[data-theme] .inline-stage-select.stage-sent-details{background-color:#8a6400!important}
html[data-theme] .inline-stage-select.stage-scheduled{background-color:#237a52!important}
html[data-theme] .inline-stage-select.stage-not-interested{background-color:#6e5d55!important}
html[data-theme] .inline-stage-select.stage-do-not-touch{background-color:#8b1e2d!important}
html[data-theme] .inline-status-select option,html[data-theme] .inline-stage-select option{color:var(--text);background:var(--panel);text-align:left}
html[data-theme] .inline-status-select:focus-visible,html[data-theme] .inline-stage-select:focus-visible{outline:2px solid var(--lp-accent);outline-offset:-2px}

/* Contact + owner cells */
.lp-contact-link{display:inline-flex;align-items:center;gap:7px;max-width:100%;font-size:12.5px;font-weight:650;color:var(--lp-accent-ink)!important;text-decoration:none;white-space:nowrap}
.lp-contact-link:hover{text-decoration:underline}
.lp-contact-link span[aria-hidden]{opacity:.8}
.lp-contact-text{overflow:hidden;text-overflow:ellipsis;min-width:0}
.lp-contact-protected{font-size:12px;color:var(--muted);white-space:nowrap}
.lp-owner{display:inline-flex;align-items:center;gap:8px;min-width:0}
.lp-owner-avatar{width:28px;height:28px;border-radius:999px;color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.lp-owner-name{font-size:12.5px;font-weight:600;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

/* V29 fixes: colour cells fill the whole row; quieter group subtitles */
html[data-theme] .lead-config-table td[data-col-id="status"],html[data-theme] .lead-config-table td[data-col-id="stage"]{position:relative;min-height:46px}
html[data-theme] .lead-config-table td[data-col-id="status"]>.inline-status-select,html[data-theme] .lead-config-table td[data-col-id="stage"]>.inline-stage-select{position:absolute;inset:0;height:100%;min-height:0}
html[data-theme] .lead-config-table td[data-col-id="status"]>.pill,html[data-theme] .lead-config-table td[data-col-id="stage"]>.lead-stage-pill{margin:0 10px}
html[data-theme] .lead-status-board:not(.status-board-call-back) .lead-status-board-title small{display:none}
html[data-theme] .top-actions .btn{white-space:nowrap}
html[data-theme] .top-actions{flex-wrap:nowrap}
@media (min-width:901px){
  html[data-theme] .topbar{grid-template-columns:minmax(140px,auto) minmax(160px,1fr) auto!important}
  html[data-theme] .topbar .global-search{max-width:520px}
}
@media (min-width:901px) and (max-width:1360px){
  html[data-theme] .top-account-copy{display:none}
  html[data-theme] .global-search kbd{display:none}
}
@media (min-width:901px) and (max-width:1360px){
  html[data-theme] .sync-status-pill b{display:none}
  html[data-theme] .top-context .eyebrow{display:none}
  html[data-theme] .topbar{grid-template-columns:minmax(110px,auto) minmax(140px,1fr) auto!important}
}

/* Remove the old logo's glow effects; tidy the account pill on small laptops */
html[data-theme] .brand-logo-link::before,html[data-theme] .brand-logo-link::after{display:none!important}
@media (min-width:901px) and (max-width:1360px){html[data-theme] .top-account-pill{width:auto!important;min-width:0!important;padding-right:8px}}
html[data-theme] .brand-logo-link{background:transparent!important;border:0!important;box-shadow:none!important;width:auto!important;height:auto!important;padding:0!important}
html[data-theme] .brand-logo-link .lp-mark-img{width:58px!important;height:auto!important;max-width:none!important;max-height:none!important;object-fit:contain;filter:none!important}
html[data-theme] .sidebar-collapsed .brand-logo-link .lp-mark-img{width:40px!important}

/* ===== V29.1 · closer to the approved mockup ===== */
/* Compact rows: Phone, Email and Owner now have their own columns, so the lead cell shows just the name */
html[data-theme] .lead-config-table td.lead-name small,
html[data-theme] .lead-config-table td.lead-name .privacy-chip{display:none!important}
html[data-theme] .lead-config-table td.lead-name b{display:flex;align-items:center;gap:6px;font-size:13.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .lead-config-table td{padding-top:0!important;padding-bottom:0!important;height:46px}
html[data-theme] .lead-config-table td[data-col-id="status"],html[data-theme] .lead-config-table td[data-col-id="stage"],html[data-theme] .lead-config-table td[data-col-id="quality"]{min-height:0}
/* Colour rail per group (beat the old sticky-column rules) */
html[data-theme] .lead-config-table td.select-cell,html[data-theme] .lead-config-table th.select-cell{box-shadow:inset 6px 0 0 var(--lp-g)!important;padding-left:10px!important}
/* Quality as a colour cell too */
html[data-theme] .lead-config-table td[data-col-id="quality"]{position:relative;padding:0!important}
html[data-theme] .lead-config-table td[data-col-id="quality"]>.inline-quality-select{position:absolute;inset:0;width:100%;height:100%;-webkit-appearance:none;appearance:none;border:0!important;border-radius:0!important;box-shadow:none!important;color:#fff!important;font-weight:700;font-size:12.5px;text-align:center;text-align-last:center;padding:0 22px 0 10px;cursor:pointer;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important;background-repeat:no-repeat!important;background-position:right 9px center!important}
html[data-theme] .inline-quality-select.quality-qualified{background-color:#1f7a4a!important}
html[data-theme] .inline-quality-select.quality-not-qualified{background-color:#b4531a!important}
html[data-theme] .inline-quality-select.quality-dead{background-color:#3f4452!important}
html[data-theme] .inline-quality-select.quality-unset{background-color:transparent!important;color:var(--muted)!important;font-weight:600;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='10' viewBox='0 0 24 24' fill='none' stroke='%239a9aa6' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E")!important}
html[data-theme] .inline-quality-select option{color:var(--text);background:var(--panel)}
/* Next action: quiet when empty, orange when due today, red when overdue */
html[data-theme] td.lp-next-none .next-action-cell b{color:var(--muted);font-weight:600}
html[data-theme] td.lp-next-none .next-action-cell small{display:none}
html[data-theme] td.lp-next-today .next-action-cell small{color:#b45309;font-weight:700}
html[data-theme] td.lp-next-late .next-action-cell small{color:#c62828;font-weight:700}
html[data-theme="dark"] td.lp-next-today .next-action-cell small{color:#f0a35e}
html[data-theme="dark"] td.lp-next-late .next-action-cell small{color:#ff8a80}
html[data-theme] .next-action-cell b{font-size:12.5px}
/* Phone numbers and emails: calmer weight */
html[data-theme] .lp-contact-link{font-weight:600}

/* ===================== V29.2 · Leads board = approved design ===================== */
.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.lp-grow{flex:1 1 auto}
.lp-muted{color:var(--muted)}
html[data-theme] .leads-mobile-grid-note,html[data-theme] .lp-legacy-tabs{display:none!important}

/* Header */
.lp-head{display:flex;flex-direction:column;gap:6px;margin-bottom:14px}
.lp-crumb{font-size:12.5px;font-weight:600;color:var(--muted)}
.lp-title-row{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.lp-title-row h1{margin:0;font-size:28px;font-weight:800;letter-spacing:-.03em}
.lp-title-sub{font-size:13px;color:var(--muted);font-weight:600}
.lp-icon-ghost{width:32px;height:32px;border-radius:8px;border:0;background:transparent;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.lp-icon-ghost:hover{background:var(--lp-hover)}
.lp-avatars{display:flex;align-items:center;padding-left:8px}
.lp-av{width:30px;height:30px;border-radius:999px;color:#fff;font-size:10.5px;font-weight:800;display:inline-grid;place-items:center;flex-shrink:0;border:2px solid var(--bg);margin-left:-8px}
.lp-av-sm{width:26px;height:26px;font-size:9.5px;margin-left:0;border:0}
.lp-av-more{background:var(--panel3);color:var(--soft)}
.lp-btn{height:36px;padding:0 13px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;display:inline-flex;align-items:center;gap:7px;cursor:pointer;text-decoration:none;white-space:nowrap;list-style:none}
.lp-btn::-webkit-details-marker{display:none}
.lp-btn:hover{background:var(--lp-hover)}
.lp-btn-primary{background:var(--lp-accent)!important;border-color:var(--lp-accent)!important;color:#fff!important}
.lp-btn-primary:hover{filter:brightness(1.08)}
.lp-btn-ghost{border-color:transparent;background:transparent;color:var(--soft)}
.lp-btn-ghost.active{color:var(--lp-accent-ink)}
.lp-btn-ghost b{background:var(--lp-accent);color:#fff;border-radius:999px;padding:0 6px;font-size:11px}
.lp-static{cursor:default}.lp-static:hover{background:transparent}
.lp-view-tools{position:relative}
.lp-view-tools .lead-view-tools-menu{right:0;left:auto}

/* View tabs */
.lp-tabs{display:flex;gap:4px;border-bottom:1px solid var(--line);margin-bottom:12px}
.lp-tab{height:40px;padding:0 12px;border:0;background:transparent;font:inherit;font-size:13.5px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;display:inline-flex;align-items:center;gap:7px}
.lp-tab.active{color:var(--text);border-bottom-color:var(--lp-accent)}
.lp-tab:hover{color:var(--text)}

/* Toolbar */
html[data-theme] .lead-command-bar.lp-toolbar{display:flex!important;align-items:center;gap:6px;flex-wrap:wrap;background:transparent!important;border:0!important;padding:0!important;margin:0 0 18px!important;box-shadow:none!important;grid-template-columns:none!important}
.lp-search{display:inline-flex!important;align-items:center;gap:7px;height:36px;padding:0 11px!important;width:220px;border-radius:9px;border:1px solid var(--line);background:var(--panel)!important;color:var(--muted)}
.lp-search input{border:0!important;background:transparent!important;outline:none;box-shadow:none!important;font:inherit;font-size:13px;color:var(--text);width:100%;height:auto!important;padding:0!important;min-height:0!important}
.lp-select{display:inline-flex!important;align-items:center;gap:6px;height:36px;padding:0 4px 0 10px;border-radius:9px;color:var(--soft);background:transparent!important;border:0!important}
.lp-select select{border:0!important;background:transparent!important;font:inherit;font-size:13px;font-weight:600;color:var(--soft);height:34px!important;min-height:0!important;padding:0 22px 0 2px!important;box-shadow:none!important;cursor:pointer}
.lp-select:hover{background:var(--lp-hover)!important}
.lp-chip{height:28px;padding:0 10px;border-radius:999px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center}
.lp-chip-due{background:#fdf0dc;color:#b45309}.lp-chip-late{background:#fdeaea;color:#c62828}
html[data-theme="dark"] .lp-chip-due{background:#3a2a14;color:#f0a35e}html[data-theme="dark"] .lp-chip-late{background:#3a1d1d;color:#ff8a80}
.lp-board-switch{position:relative;display:inline-flex}
.lp-board-btn{padding-left:6px}
.lp-hidden-select{position:absolute!important;opacity:0!important;pointer-events:none!important;width:1px!important;height:1px!important}

/* Groups */
html[data-theme] .lp-group{margin-bottom:26px}
html[data-theme] .lp-group .lp-group-head{display:flex;align-items:center;gap:12px;padding:0 0 8px!important}
.lp-group-toggle{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;font:inherit;cursor:pointer;color:var(--lp-g)}
.lp-group-name{font-size:16px;font-weight:800;color:var(--lp-g)}
html[data-theme="dark"] .lp-group-name{color:var(--text)}
.lp-group-count{font-size:12.5px;font-weight:600;color:var(--muted)}
.lp-group-note{font-size:12px;color:var(--muted)}
.lp-group-empty{padding:26px;text-align:center;color:var(--muted);font-size:13px}
html[data-theme] .lp-group.collapsed .lead-status-board-body{display:none}
html[data-theme] .lead-status-board-body{border-radius:10px!important}

/* Table cells to the mockup */
html[data-theme] .lead-config-table th{text-align:center}
html[data-theme] .lead-config-table th[data-col-id="lead"],html[data-theme] .lead-config-table th[data-col-id="phone"],html[data-theme] .lead-config-table th[data-col-id="email"],html[data-theme] .lead-config-table th[data-col-id="next"],html[data-theme] .lead-config-table th[data-col-id="project"]{text-align:left;padding-left:12px}
html[data-theme] .lead-config-table td[data-col-id="project"]{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:13px;font-weight:600}
html[data-theme] .lead-config-table .next-action-cell b,html[data-theme] .lead-config-table .next-action-cell small{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .lead-config-table td[data-col-id="interest"]{text-align:center}
.lp-bars{display:inline-flex;align-items:flex-end;gap:3px;height:16px}
.lp-bars i{width:6px;border-radius:2px;background:var(--line2)}
.lp-bars i.on{background:var(--lp-accent)}
html[data-theme] .lead-config-table td.lp-lq-td{padding:0!important;text-align:center}
.lp-lq{display:grid;place-items:center;height:100%;min-height:46px;font-size:12px;font-weight:700;color:var(--muted)}
.lp-lq-q{background:#dcf2e5;color:#146c41}.lp-lq-c{background:#fcecd2;color:#8a4b06}.lp-lq-x{background:#fdeaea;color:#b3261e}
html[data-theme="dark"] .lp-lq-q{background:#173a2a;color:#7fdcaa}html[data-theme="dark"] .lp-lq-c{background:#3d2c12;color:#f5c071}html[data-theme="dark"] .lp-lq-x{background:#3a1d1d;color:#ff8a80}
html[data-theme] .lead-config-table td[data-col-id="owner"]{text-align:center}
html[data-theme] .lead-config-table td[data-col-id="owner"] .lp-owner-name{display:none}
html[data-theme] .lead-config-table tfoot td{height:38px;border-bottom:0!important;border-right:0!important;background:var(--panel)!important}
html[data-theme] .lead-config-table tfoot td.select-cell{box-shadow:inset 6px 0 0 color-mix(in srgb,var(--lp-g) 45%,transparent)!important}
.lp-add-lead{border:0;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:600;cursor:pointer;padding:0 2px}
.lp-add-lead:hover{color:var(--lp-accent-ink)}
.lp-battery{display:flex;height:18px;border-radius:4px;overflow:hidden;background:var(--line);margin:0 10px}
.lp-battery i{display:block;height:100%}

/* Colour-picker popover (Status / Stage / Quality) and board switcher */
.lp-pop{position:fixed;z-index:2000;background:var(--panel);border:1px solid var(--line);border-radius:12px;box-shadow:0 16px 40px rgba(16,20,36,.22);padding:10px;width:240px}
.lp-pop-wide{width:300px;padding:8px}
.lp-pop-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.lp-pop-grid button{height:34px;border:0;border-radius:7px;color:#fff;font:inherit;font-size:12.5px;font-weight:700;cursor:pointer;transition:transform .08s}
.lp-pop-grid button:hover{transform:scale(1.03);filter:brightness(1.08)}
.lp-pop-grid button.on{outline:2px solid var(--text);outline-offset:1px}
.lp-pop-list{display:flex;flex-direction:column;gap:2px}
.lp-pop-list button{display:flex;align-items:center;gap:10px;height:46px;padding:0 10px;border:0;border-radius:9px;background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer}
.lp-pop-list button:hover,.lp-pop-list button.on{background:var(--lp-accent-soft)}
.lp-pop-list button span:nth-child(2){display:flex;flex-direction:column;flex:1;min-width:0}
.lp-pop-list b{font-size:13.5px}.lp-pop-list small{font-size:11.5px;color:var(--muted)}
.lp-pop-list em{font-style:normal;color:var(--lp-accent-ink);font-weight:800}
.lp-pop-list .lp-av{margin-left:0;border:0}
.lp-pop-cap{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding:8px 10px 4px}

/* Kanban */
.lp-kanban{display:flex;gap:14px;align-items:flex-start;overflow-x:auto;padding-bottom:12px}
.lp-kcol{width:236px;flex-shrink:0;display:flex;flex-direction:column;gap:10px;background:var(--panel2);border:1px solid var(--line);border-radius:12px;padding:10px;max-height:78vh;overflow-y:auto}
.lp-kcol-head{height:36px;border-radius:8px;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 12px;font-size:13.5px;font-weight:800;position:sticky;top:0}
.lp-kcard{display:flex;flex-direction:column;gap:7px;text-align:left;border:1px solid var(--line);background:var(--panel);border-radius:10px;padding:12px;font:inherit;color:var(--text);cursor:pointer;transition:box-shadow .15s,transform .15s}
.lp-kcard:hover{box-shadow:0 6px 18px rgba(20,24,40,.12);transform:translateY(-1px)}
.lp-kcard b{font-size:13.5px}.lp-kcard .lp-muted{font-size:12px}
.lp-kfoot{display:flex;align-items:center;justify-content:space-between}
.lp-stage-chip{font-size:11px;font-weight:700;padding:3px 8px;border-radius:6px;color:#fff}
.lp-kmore{font-size:12px;text-align:center}
.lp-next{display:flex;align-items:center;gap:6px;font-size:12px;font-weight:700;color:var(--muted)}
.lp-next i{width:7px;height:7px;border-radius:999px;background:currentColor;flex-shrink:0}
.lp-next-due{color:#b45309}.lp-next-late{color:#c62828}
html[data-theme="dark"] .lp-next-due{color:#f0a35e}html[data-theme="dark"] .lp-next-late{color:#ff8a80}

/* Follow-up queue */
.lp-queue{display:flex;flex-direction:column;gap:22px;max-width:900px}
.lp-queue h3{margin:0 0 8px;font-size:15px;font-weight:800}
.lp-q-late{color:#c62828}.lp-q-due{color:#b45309}.lp-q-later{color:var(--text)}
html[data-theme="dark"] .lp-q-late{color:#ff8a80}html[data-theme="dark"] .lp-q-due{color:#f0a35e}
.lp-qrow{display:flex;align-items:center;gap:14px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;background:var(--panel);margin-bottom:8px}
.lp-qwhen{width:120px;font-size:12.5px;font-weight:800;flex-shrink:0}
.lp-qname{display:flex;flex-direction:column;flex:1;min-width:0;border:0;background:transparent;padding:0;font:inherit;color:var(--text);text-align:left;cursor:pointer}
.lp-qname b{font-size:14px}.lp-qname .lp-muted{font-size:12.5px}
.lp-pill{height:26px;padding:0 10px;border-radius:6px;color:#fff;font-size:12px;font-weight:700;display:inline-flex;align-items:center}
.lp-icon-btn{width:38px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:grid;place-items:center}
.lp-qnote{font-size:12.5px}

/* Phone card list (mockup phone design); desktop keeps the table */
.lp-phone-board{display:block}
@media (max-width:760px){
  .lp-desktop-board{display:none}
  .lp-phone-board{display:block}
  .lp-title-row h1{font-size:24px}
  .lp-avatars,.lp-view-tools,.lp-title-row a.lp-btn,.lp-toolbar .lp-static{display:none!important}
  .lp-toolbar .lp-search{width:auto;flex:1 1 100%}
  .lp-tabs{overflow-x:auto}
  .lp-tab{flex-shrink:0}
}
.lp-plist{display:flex;flex-direction:column;gap:10px}
.lp-pcard{background:var(--panel);border:1px solid var(--line);border-radius:16px;padding:14px;display:flex;flex-direction:column;gap:11px}
.lp-pcard-top{display:flex;align-items:flex-start;gap:10px}
.lp-pname{display:flex;flex-direction:column;flex:1;min-width:0;border:0;background:transparent;padding:0;font:inherit;color:var(--text);text-align:left}
.lp-pname b{font-size:15.5px;font-weight:800}.lp-pname .lp-muted{font-size:12.5px}
.lp-pcells{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.lp-pcell{position:relative;height:42px;border-radius:10px;color:#fff;font-size:13px;font-weight:700;display:grid;place-items:center;overflow:hidden}
.lp-pcell select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.lp-pnext{border:0;border-radius:12px;background:var(--panel2);padding:10px 12px;font:inherit;text-align:left;color:var(--text)}
.lp-pnext .lp-next{flex-wrap:wrap}.lp-pnext b{color:var(--text)}.lp-pnext em{font-style:normal;width:100%;padding-left:13px}
.lp-pactions{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
.lp-pactions a,.lp-pactions .lp-disabled{height:44px;border-radius:12px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:flex;align-items:center;justify-content:center;gap:7px;text-decoration:none;font-size:13px;font-weight:700}
.lp-pactions a.lp-primary{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
.lp-pactions .lp-disabled{color:var(--muted);opacity:.6}
/* V29.2 fit & finish */
html[data-theme] .lead-board-workspace,html[data-theme] .lp-desktop-board,html[data-theme] .lead-status-board,html[data-theme] .lead-status-board-body{min-width:0;max-width:100%}
html[data-theme] .lead-status-board-body .table-scroll{overflow-x:auto;max-width:100%}
html[data-theme] .lead-config-table{min-width:100%!important;table-layout:fixed}
html[data-theme] .lead-config-table td.select-cell,html[data-theme] .lead-config-table th.select-cell{padding:0 0 0 6px!important;text-align:center;text-overflow:clip!important;overflow:visible!important}
.lp-toolbar .lp-search{flex:0 1 240px!important;width:240px!important;min-width:150px}
.lp-toolbar .lp-select{flex:0 0 auto!important;width:auto!important}
.lp-toolbar .lp-select select{width:auto!important;max-width:170px}
/* Scheduled Tripping: same visual language as the groups, compact */
html[data-theme] .lead-scheduled-board{max-width:100%;min-width:0;overflow:hidden;border:1px solid var(--line)!important;border-radius:12px!important;background:var(--panel)!important;margin-bottom:26px}
html[data-theme] .scheduled-board-head{padding:12px 14px!important;background:transparent!important;border-bottom:1px solid var(--line)}
html[data-theme] .scheduled-board-head h2{font-size:16px!important;font-weight:800;color:#237a52!important}
html[data-theme="dark"] .scheduled-board-head h2{color:var(--text)!important}
html[data-theme] .lead-scheduled-board .eyebrow,html[data-theme] .lead-scheduled-board .lead-status-board-title small{display:none}
html[data-theme] .lead-scheduled-board .lead-status-board-title h2 span{background:transparent!important;border:0!important;color:var(--muted)!important;font-size:12.5px;font-weight:600}
html[data-theme] .lead-scheduled-board .scheduled-board-icon{background:transparent!important;border:0!important;box-shadow:none!important;width:auto;height:auto;font-size:16px}
html[data-theme] .lead-scheduled-board.collapsed .scheduled-board-body{display:none}
html[data-theme] .scheduled-subgroup:has(.empty),html[data-theme] .scheduled-subgroup:has(.compact-empty){display:none}
.lp-toolbar>*{flex:0 0 auto!important;min-width:0}
.lp-toolbar>.lp-grow{flex:1 1 auto!important}
html[data-theme] .lp-toolbar .lp-select select{width:auto!important;min-width:0!important;max-width:150px!important;field-sizing:content}
html[data-theme] .lp-toolbar .lp-select{padding-right:0}
@media (max-width:1500px){.lp-toolbar .lp-static{display:none!important}}

/* ===================== V29.3 · Lead detail panel = approved design ===================== */
.lp-panel-scrim{position:fixed;inset:0;background:rgba(8,10,20,.32);z-index:900;opacity:0;transition:opacity .2s}
.lp-panel-scrim.open{opacity:1}
.lp-panel{position:fixed;top:0;right:0;bottom:0;width:min(600px,100vw);z-index:901;background:var(--panel);color:var(--text);border-left:1px solid var(--line);box-shadow:-24px 0 60px rgba(12,15,26,.2);display:flex;flex-direction:column;transform:translateX(100%);transition:transform .22s ease;font-family:'Plus Jakarta Sans',system-ui,sans-serif}
.lp-panel.open{transform:none}
.lp-panel-head{padding:20px 24px 0;display:flex;flex-direction:column;gap:14px;flex-shrink:0}
.lp-panel-id{display:flex;align-items:flex-start;gap:12px}
.lp-panel-av{width:44px;height:44px;border-radius:999px;color:#fff;font-size:14px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.lp-panel-name{display:flex;flex-direction:column;flex:1;min-width:0}
.lp-panel-name h2{margin:0;font-size:22px;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.lp-panel-name span{font-size:13px;color:var(--muted)}
.lp-panel-x{width:36px;height:36px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:grid;place-items:center;cursor:pointer}
.lp-panel-chips{display:flex;gap:8px;flex-wrap:wrap}
.lp-chipbtn{height:30px;padding:0 10px 0 12px;border-radius:7px;border:0;color:#fff;font:inherit;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;gap:6px;cursor:pointer}
.lp-chipbtn:disabled{cursor:default}
.lp-chip-lq{height:30px;padding:0 12px;border-radius:7px;font-size:12.5px;font-weight:700;display:inline-flex;align-items:center;border:1px solid var(--line);color:var(--muted)}
.lp-chip-lq.lp-lq-q{background:#dcf2e5;color:#146c41;border-color:transparent}.lp-chip-lq.lp-lq-c{background:#fcecd2;color:#8a4b06;border-color:transparent}.lp-chip-lq.lp-lq-x{background:#fdeaea;color:#b3261e;border-color:transparent}
html[data-theme="dark"] .lp-chip-lq.lp-lq-q{background:#173a2a;color:#7fdcaa}html[data-theme="dark"] .lp-chip-lq.lp-lq-c{background:#3d2c12;color:#f5c071}html[data-theme="dark"] .lp-chip-lq.lp-lq-x{background:#3a1d1d;color:#ff8a80}
.lp-next-card{border-radius:12px;padding:14px;background:var(--lp-accent-soft);display:flex;flex-direction:column;gap:10px}
.lp-cap{display:block;font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin:14px 0 8px}
.lp-next-card .lp-cap{margin:0}
.lp-cap-accent{color:var(--lp-accent-ink)!important}
.lp-next-row{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.lp-next-copy{display:flex;flex-direction:column;flex:1;min-width:150px}
.lp-next-copy b{font-size:15px;font-weight:800}
.lp-next-copy span{font-size:12.5px;font-weight:700;color:var(--muted)}
.lp-when-due{color:#b45309!important}.lp-when-late{color:#c62828!important}
html[data-theme="dark"] .lp-when-due{color:#f0a35e!important}html[data-theme="dark"] .lp-when-late{color:#ff8a80!important}
.lp-next-actions{display:flex;gap:8px;flex-wrap:wrap}
.lp-sq{width:40px;height:40px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);display:grid;place-items:center;text-decoration:none}
.lp-btn2{height:40px;padding:0 14px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:6px;cursor:pointer;text-decoration:none;white-space:nowrap}
.lp-btn2:hover{background:var(--lp-hover)}
.lp-btn2-primary{background:var(--lp-accent)!important;border-color:var(--lp-accent)!important;color:#fff!important}
.lp-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden}
.lp-facts>div{background:var(--panel);padding:10px 14px;display:flex;flex-direction:column;gap:2px;min-width:0}
.lp-facts span{font-size:11.5px;font-weight:700;color:var(--muted)}
.lp-facts b{font-size:13.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-ptabs{display:flex;gap:2px;border-bottom:1px solid var(--line);overflow-x:auto;scrollbar-width:none}
.lp-ptabs::-webkit-scrollbar{display:none}
.lp-ptabs button{height:38px;padding:0 9px;border:0;background:transparent;font:inherit;font-size:13px;font-weight:700;color:var(--muted);border-bottom:2px solid transparent;margin-bottom:-1px;cursor:pointer;white-space:nowrap;flex-shrink:0}
.lp-ptabs button.active{color:var(--text);border-bottom-color:var(--lp-accent)}
.lp-panel-body{flex:1;overflow-y:auto;padding:16px 24px 28px}
.lp-pad{padding:18px 0}.lp-pad-s{padding:10px 14px}
.lp-block{display:block}.lp-small{font-size:12.5px}.lp-h{font-size:14.5px;font-weight:800;display:block}
.lp-row-between{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px}
.lp-row-between .lp-cap{margin:6px 0}
.lp-actions{display:flex;gap:8px;flex-wrap:wrap}
.lp-chiprow{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:10px}
.lp-choice{height:34px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.lp-choice.on{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
/* Updates */
.lp-pin{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:14px}
.lp-pin-head{display:flex;align-items:center;gap:8px;padding:10px 14px;font-size:12.5px}
.lp-pin-head b{flex:1}
.lp-pin-head span{font-size:11px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lp-pin-body{padding:12px 14px;background:var(--panel)}
.lp-pin-body small{font-size:11.5px;font-weight:700;color:var(--muted)}
.lp-pin-body p{margin:4px 0 0;font-size:14px;font-weight:600;line-height:1.5}
.lp-tone-green{background:#dcf2e5;color:#146c41}.lp-tone-accent{background:var(--lp-accent-soft);color:var(--lp-accent-ink)}.lp-tone-blue{background:#e3edfc;color:#2b67c9}.lp-tone-muted{background:var(--panel2);color:var(--soft)}
html[data-theme="dark"] .lp-tone-green{background:#173a2a;color:#7fdcaa}html[data-theme="dark"] .lp-tone-blue{background:#14233d;color:#7fb2ff}
.lp-compose{display:flex;flex-direction:column;gap:8px;margin-bottom:6px}
.lp-compose textarea{min-height:76px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);padding:10px 12px;font:inherit;font-size:13.5px;color:var(--text);resize:vertical}
.lp-compose .lp-btn2{align-self:flex-end}
.lp-note{display:flex;gap:10px;padding:12px;border-radius:12px;background:var(--panel2);margin-bottom:8px}
.lp-av-mini{width:28px;height:28px;border-radius:999px;color:#fff;font-size:10.5px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.lp-note small{font-size:12px;color:var(--muted)}.lp-note small b{color:var(--text)}
.lp-note p{margin:3px 0 0;font-size:13.5px;line-height:1.5}
.lp-tl-item{display:flex;gap:12px;padding-bottom:14px;position:relative}
.lp-tl-item:not(:last-child)::before{content:"";position:absolute;left:13px;top:30px;bottom:0;width:2px;background:var(--line)}
.lp-tl-dot{width:28px;height:28px;border-radius:999px;background:var(--panel3);color:var(--lp-accent-ink);display:grid;place-items:center;flex-shrink:0}
.lp-tl-item b{display:block;font-size:13.5px;font-weight:700}
.lp-tl-item small{font-size:12px;color:var(--muted)}
/* Details */
.lp-src{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;margin-bottom:4px}
.lp-src>span{width:38px;height:38px;border-radius:10px;background:var(--panel);display:grid;place-items:center;flex-shrink:0}
.lp-src b{display:block;font-size:13.5px;color:var(--text)}.lp-src small{font-size:12px;color:var(--muted)}
.lp-qa{border:1px solid var(--line);border-radius:14px;overflow:hidden}
.lp-qa>div{padding:11px 14px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:2px}
.lp-qa>div:last-child{border-bottom:0}
.lp-qa small{font-size:12px;color:var(--muted);font-weight:600}.lp-qa b{font-size:14px}
.lp-facts-plain{margin-top:0}
/* Computations */
.lp-comp{border:1px solid var(--line);border-radius:12px;padding:12px 14px;display:flex;flex-direction:column;gap:10px;margin-bottom:10px;background:var(--panel)}
.lp-comp.on{border:2px solid var(--lp-accent)}
.lp-comp-top{display:flex;align-items:flex-start;gap:10px}
.lp-comp-top b{font-size:14px}
.lp-box{width:22px;height:22px;border-radius:6px;border:2px solid var(--line2);background:transparent;display:grid;place-items:center;cursor:pointer;padding:0;color:#fff;flex-shrink:0;margin-top:1px}
.lp-box.on{background:var(--lp-accent);border-color:var(--lp-accent)}
.lp-metrics{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:8px;padding:10px 12px;border-radius:10px;background:var(--panel2)}
.lp-metrics>div{display:flex;flex-direction:column}
.lp-metrics small{font-size:11px;font-weight:700;color:var(--muted)}.lp-metrics b{font-size:13.5px;font-weight:800}
.lp-packbar{position:sticky;bottom:0;display:flex;align-items:center;gap:10px;padding:12px 14px;border-radius:12px;background:var(--lp-accent);color:#fff;margin:6px 0 10px;box-shadow:0 10px 30px rgba(0,0,0,.25)}
.lp-packbar span{flex:1;font-size:13.5px;font-weight:700}
.lp-packbar button{height:36px;padding:0 14px;border-radius:9px;border:0;background:#fff;color:#0b5fc4;font:inherit;font-size:13px;font-weight:800;cursor:pointer}
.lp-listrow{display:flex;align-items:center;gap:12px;padding:12px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:8px}
.lp-ico{width:36px;height:36px;border-radius:10px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);display:grid;place-items:center;flex-shrink:0}
.lp-ico-warn{background:#fdf0dc;color:#b45309}
html[data-theme="dark"] .lp-ico-warn{background:#3a2a14;color:#f0a35e}
/* Client Experience / Showroom / cards */
.lp-cx{border:1px solid var(--line);border-radius:14px;overflow:hidden;margin-bottom:12px}
.lp-cx-head{padding:14px;background:var(--lp-accent-soft);display:flex;flex-direction:column;gap:4px}
.lp-cx-head .lp-cap{margin:0}.lp-cx-head b{font-size:17px;font-weight:800}.lp-cx-head small{font-size:12.5px;color:var(--muted)}
.lp-empty-card{border:1px dashed var(--line2);border-radius:16px;padding:22px;display:flex;flex-direction:column;gap:10px;align-items:center;text-align:center;color:var(--muted)}
.lp-empty-card.lp-left{align-items:flex-start;text-align:left}
.lp-empty-card p{margin:0;font-size:13px;line-height:1.5}
.lp-steps{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:12px;background:var(--panel2);font-size:12.5px;font-weight:600;color:var(--text);width:100%;box-sizing:border-box}
.lp-warn{color:#b45309}html[data-theme="dark"] .lp-warn{color:#f0a35e}
.lp-card{border:1px solid var(--line);border-radius:14px;padding:14px;display:flex;flex-direction:column;gap:10px;margin-bottom:14px;background:var(--panel)}
.lp-card .lp-cap{margin:4px 0 0}
.lp-use{height:30px;padding:0 10px;border-radius:999px;border:1px dashed var(--line2);background:transparent;color:var(--text);font:inherit;font-size:12px;font-weight:700;cursor:pointer}
.lp-calc{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.lp-calc label{display:flex;flex-direction:column;gap:5px;font-size:12px;font-weight:700;color:var(--muted)}
.lp-calc input{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);padding:0 12px;font:inherit;font-size:14px;font-weight:700;color:var(--text)}
.lp-verdict{padding:12px;border-radius:12px;display:flex;flex-direction:column;gap:3px;font-size:12.5px}
.lp-verdict b{font-size:14px}
.lp-verdict.ok{background:#dcf2e5;color:#146c41}.lp-verdict.short{background:#fcecd2;color:#8a4b06}
html[data-theme="dark"] .lp-verdict.ok{background:#173a2a;color:#7fdcaa}html[data-theme="dark"] .lp-verdict.short{background:#3d2c12;color:#f5c071}
/* Phone: full screen, bigger targets */
@media (max-width:760px){
  .lp-panel{width:100vw;border-left:0}
  .lp-panel-head{padding:14px 14px 0;gap:12px}
  .lp-panel-body{padding:14px 14px 90px}
  .lp-chipbtn{height:40px;flex:1;justify-content:center}
  .lp-btn2,.lp-sq{height:44px}.lp-sq{width:44px}
  .lp-next-actions{width:100%}.lp-next-actions .lp-btn2{flex:1}
  .lp-calc{grid-template-columns:1fr}
}
.lp-ptabs{gap:0}
.lp-ptabs button{padding:0 7px;font-size:12.5px}
.lp-ptabs button{padding:0 6px;font-size:12px}
.lp-panel p.lp-small,.lp-panel .lp-card p{font-size:12.5px!important;line-height:1.5;margin:0}
@media (max-width:760px){.lp-panel{overflow-y:auto}.lp-panel-body{flex:none;overflow:visible}}

/* ===================== V29.7 · Dashboard (approved design) ===================== */
.lpd{--lpd-ring:#0a6fe0;display:flex;flex-direction:column;gap:22px;padding-bottom:40px;color:var(--text)}
html[data-theme="dark"] .lpd{--lpd-ring:#34c0ff}
.lpd-loading{padding:60px;text-align:center;color:var(--muted)}
.lpd-muted{color:var(--muted)}.lpd-sm{font-size:12.5px}
.lpd-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.1em;text-transform:uppercase;color:var(--lp-accent-ink)}
.lpd-hello{display:flex;flex-direction:column;gap:2px}
.lpd-hello span{font-size:13px;font-weight:700}
.lpd-hello h1{margin:0;font-size:30px;font-weight:800;letter-spacing:-.02em}
.lpd-btn-primary{height:40px;padding:0 16px;border-radius:11px;border:0;background:#0a6fe0;color:#fff;font:inherit;font-size:14px;font-weight:800;display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap}
.lpd-btn-primary:hover{filter:brightness(1.08)}
.lpd-btn-soft{height:40px;padding:0 14px;border-radius:11px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap}
.lpd-link{border:0;background:none;padding:0;color:var(--lp-accent-ink);font:inherit;font-weight:700;cursor:pointer}
.lpd-card{border-radius:20px;background:var(--panel);border:1px solid var(--line);overflow:hidden}
.lpd-pad{padding:18px 20px 20px;display:flex;flex-direction:column;gap:12px}
.lpd-card-head{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:18px 20px 12px}
.lpd-card-head.lpd-flat{padding:0}
.lpd-card-head>div{display:flex;flex-direction:column}
.lpd-card-head b{font-size:18px}
.lpd-card-head>div>span,.lpd-card-head>span{font-size:13px;color:var(--muted)}
.lpd-card-head a{font-size:13.5px;font-weight:700;color:var(--lp-accent-ink);text-decoration:none;white-space:nowrap}
.lpd-empty{padding:18px 20px;color:var(--muted);font-size:14px}
.lpd-bar{display:block;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.lpd-bar i{display:block;height:100%;border-radius:999px;background:#0a6fe0}
.lpd-bar-lg{height:12px}
.lpd-bar-grad i{background:linear-gradient(90deg,#0a84ff,#34e0ff)}
.lpd-pill{height:24px;padding:0 9px;border-radius:6px;color:#fff;font-size:11.5px;font-weight:700;display:inline-flex;align-items:center;white-space:nowrap}
.lpd-av{width:26px;height:26px;border-radius:999px;color:#fff;font-size:10px;font-weight:800;display:inline-grid;place-items:center;flex-shrink:0}
.lpd-av-lg{width:34px;height:34px;font-size:11px}
.lpd-count{height:22px;padding:0 8px;border-radius:999px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);font-size:12px;font-weight:800;display:inline-flex;align-items:center}
/* vision board */
.lpd-vision{border-radius:24px;background:#efe9df;border:1px solid var(--line);padding:26px 28px 24px;display:flex;flex-direction:column;gap:14px}
html[data-theme="dark"] .lpd-vision{background:#0f0e0c}
.lpd-vhead{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;flex-wrap:wrap}
.lpd-vhead h2{margin:2px 0 0;font-size:28px;font-weight:800;letter-spacing:-.01em}
.lpd-vadd{display:flex;gap:8px;flex-wrap:wrap}
.lpd-vrail{display:flex;gap:22px;overflow-x:auto;padding:14px 6px 16px;margin:0 -6px;scrollbar-width:thin}
.lpd-pin{position:relative;flex:0 0 calc((100% - 44px)/3);min-width:260px;margin-top:10px;transform:rotate(var(--tilt))}
.lpd-tack{position:absolute;top:-9px;left:50%;transform:translateX(-50%);width:18px;height:18px;border-radius:999px;background:#cc2f48;box-shadow:0 2px 4px rgba(0,0,0,.3),inset -2px -2px 0 rgba(0,0,0,.18);z-index:2}
.lpd-pin-edit{position:absolute;top:10px;right:10px;z-index:2;width:30px;height:30px;border-radius:999px;border:0;background:rgba(255,255,255,.85);color:#1c2130;display:grid;place-items:center;cursor:pointer;opacity:0;transition:opacity .15s}
.lpd-pin:hover .lpd-pin-edit,.lpd-pin:focus-within .lpd-pin-edit{opacity:1}
@media (hover:none){.lpd-pin-edit{opacity:1}}
.lpd-pin-card{display:flex;flex-direction:column;gap:12px;min-height:250px;justify-content:center;box-shadow:0 10px 26px rgba(20,24,40,.14)}
.lpd-pin-target{border-radius:14px;background:var(--panel);border:1px solid var(--line);padding:26px 24px 22px}
.lpd-pin-target b{font-size:24px;line-height:1.2;letter-spacing:-.01em}
.lpd-pin-kind{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:#0a6fe0}
.lpd-pin-meta{font-size:15px;font-weight:700;color:var(--muted)}
.lpd-pin-photo{border-radius:6px;background:#fff;padding:12px 12px 16px;justify-content:flex-start;color:#1c2130;gap:10px}
.lpd-pin-photo img,.lpd-photo-empty{width:100%;height:240px;object-fit:cover;border-radius:3px;display:block}
.lpd-photo-empty{background:#e3ded3;color:#6b6356;display:grid;place-items:center;font-weight:700}
.lpd-pin-photo b{font-size:19px}.lpd-pin-photo span{font-size:14px;color:#5b6477}
.lpd-pin-quote{border-radius:14px;background:#102331;color:#fff;padding:30px 26px 24px}
.lpd-pin-quote .lpd-q{font-size:52px;line-height:.6;color:#34c0ff;font-family:Georgia,serif}
.lpd-pin-quote b{font-size:26px;line-height:1.3;font-family:Georgia,serif;font-weight:400}
.lpd-pin-quote span:last-child{font-size:13px;color:#9fb1c2}
.lpd-pin-note{border-radius:4px;background:#fff7dc;color:#5b4300;padding:26px 24px 22px}
.lpd-pin-note b{font-size:20px;line-height:1.4}.lpd-pin-note span{font-size:13.5px;color:#8a6d1f}
.lpd-vempty{flex:1;min-height:200px;border-radius:16px;border:2px dashed rgba(90,80,60,.25);display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:10px;padding:26px;color:var(--muted)}
.lpd-vempty b{font-size:20px;color:var(--text)}
/* game plan */
.lpd-plan{border-radius:24px;background:var(--panel);border:1px solid var(--line);padding:28px 30px;display:grid;grid-template-columns:minmax(0,1fr) 360px;gap:34px}
.lpd-plan-main{display:flex;flex-direction:column;gap:14px;min-width:0}
.lpd-plan-top{display:flex;align-items:flex-end;justify-content:space-between;gap:16px}
.lpd-plan-top>div{flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.lpd-focus{border:0;background:transparent;color:var(--text);font:inherit;font-size:26px;font-weight:800;letter-spacing:-.01em;padding:0;width:100%}
.lpd-focus::placeholder{color:var(--muted);opacity:.7}
.lpd-focus:focus{outline:none;border-bottom:2px solid #0a6fe0}
.lpd-steps{display:flex;flex-direction:column;gap:4px}
.lpd-step{display:flex;align-items:center;gap:14px;padding:10px 12px;border-radius:14px;border:1px solid transparent}
.lpd-step.now{background:var(--lp-accent-soft);border-color:rgba(10,111,224,.25)}
html[data-theme="dark"] .lpd-step.now{border-color:rgba(108,196,255,.35)}
.lpd-dot{width:28px;height:28px;border-radius:999px;border:0;background:var(--line);color:var(--muted);font:inherit;font-size:13px;font-weight:800;display:grid;place-items:center;cursor:pointer;flex-shrink:0}
.lpd-step.now .lpd-dot{background:#0a6fe0;color:#fff}.lpd-step.done .lpd-dot{background:#1f9d5c;color:#fff}
.lpd-step-copy{display:flex;flex-direction:column;flex:1;min-width:0}
.lpd-step-copy b{font-size:15px}.lpd-step.done .lpd-step-copy b{color:var(--muted);text-decoration:line-through}
.lpd-step-copy span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lpd-goal{display:flex;flex-direction:column;gap:16px;padding-left:30px;border-left:1px solid var(--line)}
.lpd-goal-row{display:flex;align-items:center;gap:18px}
.lpd-ring{position:relative;width:112px;height:112px;border:0;background:none;padding:0;cursor:pointer;flex-shrink:0;color:var(--text)}
.lpd-ring>span{position:absolute;inset:0;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.05}
.lpd-ring b{font-size:26px}.lpd-ring small{font-size:15px;color:var(--muted)}.lpd-ring em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted)}
.lpd-goal-nums{display:flex;flex-direction:column;gap:8px}
.lpd-goal-nums>span{display:flex;flex-direction:column}.lpd-goal-nums b{font-size:21px}.lpd-goal-nums small{font-size:12.5px;color:var(--muted)}
.lpd-coach{border-radius:16px;background:var(--lp-accent-soft);border:1px solid rgba(10,111,224,.25);padding:14px 16px;display:flex;gap:12px}
html[data-theme="dark"] .lpd-coach{border-color:rgba(108,196,255,.35)}
.lpd-coach-i{width:30px;height:30px;border-radius:999px;background:#0a6fe0;color:#fff;display:grid;place-items:center;flex-shrink:0}
.lpd-coach>span:last-child{display:flex;flex-direction:column;gap:3px}
.lpd-coach b{font-size:12px;letter-spacing:.08em;text-transform:uppercase;color:var(--lp-accent-ink)}
.lpd-coach>span:last-child>span{font-size:14px;line-height:1.5;color:var(--soft)}
/* momentum */
.lpd-mom{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px}
.lpd-mcard{padding:18px;display:flex;flex-direction:column;gap:8px}
.lpd-cap{font-size:12px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.lpd-mbig{display:flex;align-items:center;gap:6px}.lpd-mbig b{font-size:32px;line-height:1}.lpd-mbig small{font-size:15px;font-weight:700;color:var(--muted)}
/* grid + lists */
.lpd-grid{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(0,1fr);gap:22px;align-items:start}
.lpd-col{display:flex;flex-direction:column;gap:22px;min-width:0}
.lpd-row{display:grid;gap:14px;align-items:center;padding:12px 20px;border-top:1px solid var(--line);background:none;border-left:0;border-right:0;border-bottom:0;width:100%;font:inherit;color:inherit;text-align:left}
button.lpd-row{cursor:pointer}
.lpd-row:hover{background:var(--lp-hover)}
.lpd-up{grid-template-columns:78px minmax(0,1fr) auto auto}
.lpd-when{font-size:13px;font-weight:800}.lpd-late{color:#c62828}.lpd-due{color:#b45309}.lpd-task{color:var(--muted)}
html[data-theme="dark"] .lpd-late{color:#ff8a80}html[data-theme="dark"] .lpd-due{color:#f0a35e}
.lpd-up-main{display:flex;flex-direction:column;min-width:0;border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.lpd-up-main b{font-size:14.5px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.lpd-up-main span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lpd-up-tags,.lpd-up-acts{display:flex;align-items:center;gap:6px}
.lpd-sq{width:34px;height:34px;border-radius:10px;border:1px solid var(--line);color:var(--text);display:grid;place-items:center}
.lpd-viber{background:#7360f2;border-color:#7360f2;color:#fff!important}
.lpd-check{width:30px;height:30px;border-radius:8px;border:2px solid var(--line2);background:none;color:var(--muted);display:grid;place-items:center;cursor:pointer}
.lpd-check:hover{border-color:#1f9d5c;color:#1f9d5c}
.lpd-prio{grid-template-columns:34px minmax(0,1fr) 160px auto}
.lpd-prio-copy{display:flex;flex-direction:column;min-width:0}.lpd-prio-copy b{font-size:14.5px}.lpd-prio-copy span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lpd-prio-bar{display:flex;align-items:center;gap:10px}.lpd-prio-bar .lpd-bar{flex:1;height:8px}.lpd-prio-bar b{font-size:13.5px;width:26px;text-align:right}
.lpd-stack{display:flex;height:14px;border-radius:999px;overflow:hidden;gap:2px}.lpd-stack i{display:block}
.lpd-legend{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.lpd-legend a{display:flex;align-items:center;gap:9px;text-decoration:none;color:var(--text);font-size:13.5px}
.lpd-legend i{width:10px;height:10px;border-radius:3px}.lpd-legend span{flex:1}
.lpd-news{display:flex;gap:12px;padding:10px 0;border-top:1px solid var(--line)}
.lpd-news>span:last-child{display:flex;flex-direction:column;gap:2px}.lpd-news b{font-size:13.5px}.lpd-news>span:last-child>span{font-size:12.5px;color:var(--muted)}
.lpd-ni{width:32px;height:32px;border-radius:10px;display:grid;place-items:center;flex-shrink:0}
.lpd-ni.lpd-late{background:#fdeaea}.lpd-ni.lpd-ok{background:#dcf2e5;color:#146c41}.lpd-ni.lpd-accent{background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
html[data-theme="dark"] .lpd-ni.lpd-late{background:#3a1d1d}html[data-theme="dark"] .lpd-ni.lpd-ok{background:#173a2a;color:#7fdcaa}
.lpd-team{grid-template-columns:minmax(0,1fr) 110px 90px 70px}
.lpd-th{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);padding-top:8px;padding-bottom:8px}
.lpd-th:hover{background:none}
.lpd-tname{display:flex;align-items:center;gap:12px}
.lpd-fix{display:flex;align-items:center;gap:12px;padding:10px 12px;border-radius:12px;border:1px solid var(--line);text-decoration:none;color:var(--text)}
.lpd-fix:hover{background:var(--lp-hover)}.lpd-fix b{font-size:18px;width:32px}.lpd-fix span{flex:1;font-size:13.5px}.lpd-fix em{font-style:normal;font-size:13px;font-weight:800;color:var(--lp-accent-ink)}
/* phone */
@media (max-width:760px){
  .lpd{gap:14px}
  .lpd-hello h1{font-size:24px}
  .lpd-vision{padding:16px 14px;border-radius:20px}.lpd-vhead h2{font-size:22px}
  .lpd-vadd{flex-wrap:nowrap;overflow-x:auto;width:100%}.lpd-vadd .lpd-btn-soft{height:36px;font-size:12.5px}
  .lpd-pin{flex-basis:250px;min-width:250px}.lpd-pin-card{min-height:190px}
  .lpd-pin-target b{font-size:20px}.lpd-pin-photo img,.lpd-photo-empty{height:150px}.lpd-pin-quote b{font-size:21px}.lpd-pin-note b{font-size:17px}
  .lpd-plan{grid-template-columns:1fr;padding:18px 16px;gap:18px;border-radius:20px}
  .lpd-focus{font-size:19px}
  .lpd-goal{padding-left:0;border-left:0;border-top:1px solid var(--line);padding-top:16px}
  .lpd-ring{width:84px;height:84px}.lpd-ring svg{width:84px;height:84px}.lpd-ring b{font-size:20px}
  .lpd-step{padding:8px 10px;flex-wrap:wrap}.lpd-step .lpd-btn-primary{width:100%;justify-content:center;height:44px}
  .lpd-mom{display:flex;overflow-x:auto;gap:10px;margin:0 -14px;padding:0 14px 4px}.lpd-mcard{flex:0 0 168px;padding:14px}.lpd-mbig b{font-size:26px}
  .lpd-grid{grid-template-columns:1fr;gap:14px}.lpd-col{gap:14px}
  .lpd-row{padding:10px 14px}.lpd-card-head{padding:14px 14px 10px}.lpd-pad{padding:14px}
  .lpd-up{grid-template-columns:62px minmax(0,1fr) auto}.lpd-up-tags{display:none}
  .lpd-sq{width:38px;height:38px}
  .lpd-prio{grid-template-columns:30px minmax(0,1fr) auto}.lpd-prio-bar{display:none}
  .lpd-team{grid-template-columns:minmax(0,1fr) 60px 60px 44px}
}

/* ===== V29.7 · compact phone Leads list (desktop-like rows) ===== */
.lp-plist2{display:flex;flex-direction:column;gap:12px}
.lp-pgroup{border-radius:14px;background:var(--panel);border:1px solid var(--line);overflow:hidden}
.lp-pghead{width:100%;height:44px;padding:0 12px;border:0;background:transparent;color:var(--rail);font:inherit;display:flex;align-items:center;gap:8px;cursor:pointer;box-shadow:inset 4px 0 0 var(--rail)}
.lp-pghead b{font-size:15px;font-weight:800;color:var(--text)}
.lp-pghead span{font-size:12.5px;font-weight:700;color:var(--muted)}
.lp-prow{display:grid;grid-template-columns:minmax(0,1fr) auto 36px;align-items:center;gap:8px;min-height:56px;padding:6px 8px 6px 14px;border-top:1px solid var(--line);box-shadow:inset 4px 0 0 var(--rail)}
.lp-pmain{display:flex;flex-direction:column;min-width:0;border:0;background:none;padding:0;font:inherit;color:inherit;text-align:left;cursor:pointer}
.lp-pmain b{font-size:14.5px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-pmain>span{font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lp-pnx{font-weight:700}
.lp-pchips{display:flex;flex-direction:column;gap:4px;align-items:stretch}
.lp-pchip{position:relative;min-width:86px;height:22px;padding:0 8px;border-radius:6px;color:#fff;font-size:11px;font-weight:700;display:flex;align-items:center;justify-content:center;overflow:hidden;white-space:nowrap}
.lp-pchip select{position:absolute;inset:0;opacity:0;width:100%;height:100%;cursor:pointer}
.lp-pcall{width:36px;height:36px;border-radius:10px;border:1px solid var(--line);color:var(--text);display:grid;place-items:center}
.lp-pcall-off{border:0}
.lp-pmore{margin:0;padding:10px 14px;border-top:1px solid var(--line);font-size:12.5px;color:var(--muted)}
/* V29.7 · compact phone toolbar on Leads */
@media (max-width:760px){
  .lp-crumb{display:none}
  .lp-head{margin-bottom:6px}
  .lp-title-row{gap:8px}.lp-title-row h1{font-size:22px}.lp-title-row .lp-icon-ghost{display:none}.lp-title-sub{font-size:12.5px}
  .lp-tabs{margin-bottom:8px}.lp-tab{height:36px;font-size:13px;padding:0 10px}
  html[data-theme] .lead-command-bar.lp-toolbar{gap:6px!important;margin-bottom:10px!important}
  .lp-toolbar #new-lead{height:38px;padding:0 12px}
  .lp-toolbar .lp-board-switch{flex:1 1 0!important;min-width:0}.lp-toolbar .lp-board-btn{width:100%;height:38px;overflow:hidden}.lp-board-btn .lp-muted{display:none}
  .lp-toolbar .lp-search{flex:1 1 100%!important;width:100%!important;height:38px}
  .lp-toolbar .lp-select,.lp-toolbar .lead-filter-toggle{flex:1 1 0!important;height:36px;padding:0 6px!important;justify-content:center}
  html[data-theme] .lp-toolbar .lp-select select{max-width:92px!important;font-size:12.5px;padding-right:14px!important}
  .lp-toolbar #lead-refresh,.lp-toolbar .lp-grow{display:none!important}
  .lp-toolbar .lp-chip{height:24px;font-size:11.5px;padding:0 8px}
}
@media (max-width:760px){
  .lp-toolbar .lp-select{flex:1 1 34%!important;min-width:0!important;padding:0 2px 0 8px!important;border:1px solid var(--line)!important;border-radius:9px;background:var(--panel)!important}
  .lp-toolbar .lp-select>svg{display:none}
  html[data-theme] .lp-toolbar .lp-select select{width:100%!important;max-width:none!important;min-width:0!important;field-sizing:fixed}
  .lp-toolbar .lead-filter-toggle{flex:0 0 auto!important;padding:0 12px!important;border:1px solid var(--line)!important;border-radius:9px;background:var(--panel)!important}
  .lp-toolbar .lp-chip{order:10}
}
html[data-theme] .lpd-focus{background:transparent!important;border:0!important;box-shadow:none!important;border-radius:0!important;height:auto!important;min-height:0!important;padding:0!important}
html[data-theme] .lpd-focus:focus{border-bottom:2px solid #0a6fe0!important}

/* ===================== V29.8 · Premium page system (all workspace screens) ===================== */
/* One title per page: the page's own heading replaces the top-bar title on desktop */
@media (min-width:901px){html[data-theme] .top-context{visibility:hidden;width:0;min-width:0;overflow:hidden;padding:0;margin:0}}

/* Page headers */
html[data-theme] .page-head,html[data-theme] .sales-page-head{display:flex!important;align-items:flex-end!important;justify-content:space-between;gap:18px;flex-wrap:wrap;margin:0 0 22px!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
html[data-theme] .page-head h1,html[data-theme] .sales-page-head h1{margin:2px 0 0!important;font-size:28px!important;line-height:1.15!important;font-weight:800!important;letter-spacing:-.02em!important;color:var(--text)!important}
html[data-theme] .page-head .sub,html[data-theme] .page-head>div>p,html[data-theme] .sales-page-head p{margin:6px 0 0!important;font-size:14px!important;line-height:1.5;color:var(--muted)!important;max-width:760px}
html[data-theme] .eyebrow{font-size:11.5px!important;font-weight:800!important;letter-spacing:.08em!important;text-transform:uppercase;color:var(--lp-accent-ink)!important}
html[data-theme] .page-head .eyebrow,html[data-theme] .sales-page-head .eyebrow{color:var(--muted)!important;letter-spacing:.06em!important}

/* Cards and panels: one surface, one border, one radius */
html[data-theme] .card,html[data-theme] .native-sales-page .panel,html[data-theme] .sales-panel{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:none!important}
html[data-theme] .card-head,html[data-theme] .sales-panel-head{padding-bottom:10px}
html[data-theme] .card-head h2,html[data-theme] .card-head h3,html[data-theme] .sales-panel-head h2,html[data-theme] .sales-panel-head h3{font-size:17px!important;font-weight:800!important;letter-spacing:-.01em;color:var(--text)!important}

/* Stat tiles */
html[data-theme] .sales-kpis,html[data-theme] .analytics-kpi-strip,html[data-theme] .mini-kpis,html[data-theme] .lcx-compact-metrics,html[data-theme] .project-home-stats{gap:14px!important}
html[data-theme] .sales-kpi,html[data-theme] .analytics-kpi-strip>*,html[data-theme] .mini-kpis>*,html[data-theme] .lcx-compact-metrics>*,html[data-theme] .project-home-stats>*{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:none!important;padding:16px 18px!important;background-image:none!important}
html[data-theme] .sales-kpi span,html[data-theme] .sales-kpi small:first-child,html[data-theme] .analytics-kpi-strip>* small:first-child,html[data-theme] .mini-kpis>* span{font-size:11.5px!important;font-weight:800!important;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)!important}
html[data-theme] .sales-kpi b,html[data-theme] .sales-kpi strong,html[data-theme] .analytics-kpi-strip>* b,html[data-theme] .analytics-kpi-strip>* strong,html[data-theme] .mini-kpis>* b{font-size:26px!important;font-weight:800!important;letter-spacing:-.02em;color:var(--text)!important;line-height:1.15}

/* Tabs and segmented controls */
html[data-theme] .segmented,html[data-theme] [role="tablist"]:not(.lp-tabs):not(.lp-ptabs):not(.lpc-tabs):not(.an2-sections):not(.fcu-tabs){display:inline-flex;gap:4px;padding:4px;border-radius:12px;background:var(--panel2)!important;border:1px solid var(--line)!important}
html[data-theme] .segmented>button,html[data-theme] [role="tablist"]:not(.lp-tabs):not(.lp-ptabs):not(.lpc-tabs):not(.an2-sections):not(.fcu-tabs)>button{height:36px;padding:0 14px;border-radius:9px!important;border:0!important;background:transparent!important;color:var(--muted)!important;font-weight:700!important;font-size:13px!important;box-shadow:none!important}
html[data-theme] .segmented>button.active,html[data-theme] .segmented>button[aria-pressed="true"],html[data-theme] [role="tablist"]:not(.lp-tabs):not(.lp-ptabs):not(.lpc-tabs):not(.an2-sections):not(.fcu-tabs)>button[aria-selected="true"],html[data-theme] [role="tablist"]:not(.lp-tabs):not(.lp-ptabs):not(.lpc-tabs):not(.an2-sections):not(.fcu-tabs)>button.active{background:var(--panel)!important;color:var(--text)!important;box-shadow:0 1px 3px rgba(16,24,40,.12)!important}

/* Buttons */
html[data-theme] .btn{border-radius:10px!important;font-weight:700!important}
html[data-theme] .btn.primary{background:var(--lp-accent)!important;border-color:var(--lp-accent)!important;color:#fff!important}

/* Status pills */
html[data-theme] .status-pill{border-radius:999px!important;font-size:11.5px!important;font-weight:700!important;padding:3px 10px!important;letter-spacing:.01em}

/* Tables */
html[data-theme] .native-sales-page table th,html[data-theme] .analytics-lead-desktop-table th,html[data-theme] .card table th{font-size:11.5px!important;font-weight:800!important;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)!important;background:var(--panel2)!important;padding:12px 14px!important;border-bottom:1px solid var(--line)!important;text-align:left}
html[data-theme] .native-sales-page table td,html[data-theme] .analytics-lead-desktop-table td,html[data-theme] .card table td{font-size:14px!important;padding:13px 14px!important;border-bottom:1px solid var(--line)!important;color:var(--text)}
html[data-theme] .native-sales-page table tr:hover td,html[data-theme] .analytics-lead-desktop-table tr:hover td{background:var(--lp-hover)!important}

/* Empty states: calm, centred, with a soft icon */
html[data-theme] .empty{position:relative;display:flex!important;flex-direction:column;align-items:center;justify-content:center;gap:6px;min-height:120px;padding:40px 24px 28px!important;border:1.5px dashed var(--line2)!important;border-radius:16px!important;background:transparent!important;color:var(--muted)!important;font-size:14px!important;text-align:center;box-shadow:none!important}
html[data-theme] .empty::before{content:"";width:40px;height:40px;border-radius:999px;background:var(--lp-accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%230a6fe0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M22 12h-4l-3 9L9 3l-3 9H2'/%3E%3C/svg%3E") center/18px no-repeat;margin-bottom:6px}

/* Inputs: consistent height and focus */
html[data-theme] .native-sales-page input:not([type=checkbox]):not([type=radio]):not([type=range]),html[data-theme] .native-sales-page select{border-radius:10px!important;border:1px solid var(--line)!important;background:var(--panel)!important}
html[data-theme] input:focus-visible,html[data-theme] select:focus-visible,html[data-theme] textarea:focus-visible{outline:2px solid var(--lp-accent)!important;outline-offset:1px}
/* V29.8 · screen-specific polish */
/* Inventory: network stat strip as proper tiles */
html[data-theme] .inventory-network-strip{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:14px!important;background:none!important;border:0!important;padding:0!important}
html[data-theme] .inventory-network-strip>div{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:16px!important;padding:16px 18px!important;display:flex;flex-direction:column;gap:4px;box-shadow:none!important}
html[data-theme] .inventory-network-strip>div>span{font-size:11.5px!important;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)!important}
html[data-theme] .inventory-network-strip>div>b,html[data-theme] .inventory-network-strip>div>strong{font-size:22px!important;font-weight:800;color:var(--text)!important}
/* Won Sales: no decorative glows on stat tiles */
html[data-theme] .sales-kpi::after,html[data-theme] .sales-kpi::before{display:none!important}
/* Settings: calm account panel */
html[data-theme] .account-identity-hero{background:var(--panel)!important;background-image:none!important;border:1px solid var(--line)!important;border-radius:18px!important;box-shadow:none!important}
html[data-theme] .account-identity-hero::before,html[data-theme] .account-identity-hero::after{display:none!important}
html[data-theme] .account-hero-monogram{background:var(--lp-accent)!important;color:#fff!important;border:0!important;box-shadow:none!important}
/* Project Library + Follow-ups: tab rows as clean segmented pills */
html[data-theme] .project-library-family-tabs,html[data-theme] .fcc-bucket-tabs{gap:10px!important}
html[data-theme] .project-library-family-tabs>button,html[data-theme] .fcc-bucket-tabs>button{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:14px!important;box-shadow:none!important;color:var(--text)!important;font-weight:700!important}
html[data-theme] .project-library-family-tabs>button.active,html[data-theme] .fcc-bucket-tabs>button.active{border-color:var(--lp-accent)!important;box-shadow:0 0 0 3px rgba(10,111,224,.14)!important;background:var(--lp-accent-soft)!important}
html[data-theme] .fcc-bucket-tabs>button.active.danger{border-color:#c62828!important;box-shadow:0 0 0 3px rgba(198,40,40,.12)!important;background:#fdeaea!important}
html[data-theme="dark"] .fcc-bucket-tabs>button.active.danger{background:#3a1d1d!important}
/* V29.8.2 · crisper text in light mode (less "foggy") */
html[data-theme="light"]{--text:#141a26;--soft:#2f3647;--muted:#505a6d}
html[data-theme="light"] body{-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
html[data-theme="light"] .status-pill.warn,html[data-theme="light"] .won-sales-setup-link,html[data-theme="light"] [class*="pending"]{color:#8a5500!important}
html[data-theme="light"] .pill.status-won,html[data-theme="light"] .pill.quality-qualified,html[data-theme="light"] .appointment-good{color:#146c41!important}

/* ==========================================================================
   V29.9.0 · Computations screen (approved redesign). All classes start with .lpc-
   ========================================================================== */
html[data-theme] .lpc-page{--lpc-ok:#146c41;--lpc-ok-soft:#dcf2e5;--lpc-due:#b45309;--lpc-due-soft:#fdf0dc;--lpc-cols:28px minmax(130px,1.3fr) minmax(110px,1fr) minmax(110px,1fr) 168px 110px 94px 110px 94px 92px 50px 190px;--lpc-min:1290px;display:flex;flex-direction:column;gap:20px;padding:6px 2px 28px;color:var(--text);max-width:none}
html[data-theme="dark"] .lpc-page{--lpc-ok:#7fdcaa;--lpc-ok-soft:#173a2a;--lpc-due:#f0a35e;--lpc-due-soft:#3a2a14}
html[data-theme] .lpc-page svg{flex-shrink:0}
.lpc-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.lpc-title{display:flex;flex-direction:column;gap:4px;min-width:0}
.lpc-crumb{font-size:12.5px;font-weight:700;color:var(--muted)}
html[data-theme] .lpc-title h1{margin:0;font-size:28px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.lpc-title p{margin:0;font-size:14px;color:var(--muted)}
.lpc-top-actions{display:flex;gap:8px;align-items:center}
html[data-theme] .lpc-btn{height:40px;padding:0 14px;border-radius:11px;background:var(--panel);color:var(--text);border:1px solid var(--line);font:inherit;font-size:13.5px;font-weight:700;display:inline-flex;align-items:center;gap:8px;cursor:pointer;white-space:nowrap;box-shadow:none;list-style:none;transition:background .12s,border-color .12s}
html[data-theme] .lpc-btn:hover{background:var(--lp-hover);border-color:var(--line2)}
html[data-theme] .lpc-btn::-webkit-details-marker{display:none}
html[data-theme] .lpc-btn.primary{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
html[data-theme] .lpc-btn.primary:hover{filter:brightness(1.08);background:var(--lp-accent)}
html[data-theme] .lpc-btn.sm{height:32px;padding:0 10px;border-radius:9px;font-size:12.5px;gap:5px}
html[data-theme] .lpc-btn.icon{width:32px;padding:0;justify-content:center}
html[data-theme] .lpc-btn:disabled{opacity:.45;cursor:not-allowed}
html[data-theme] .lpc-btn:focus-visible,html[data-theme] .lpc-tabs button:focus-visible,html[data-theme] .lpc-group-head:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
.lpc-controls{display:flex;flex-direction:column;gap:12px}
html[data-theme] .lpc-tabs{display:flex;gap:4px;border:0;border-bottom:1px solid var(--line);border-radius:0;background:transparent!important;padding:0;box-shadow:none;overflow-x:auto}
html[data-theme] .lpc-tabs button{box-shadow:none!important;min-height:0;height:40px;padding:0 12px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap;border-radius:0}
html[data-theme] .lpc-tabs button.on{background:transparent!important;color:var(--text);border-bottom-color:var(--lp-accent)}
.lpc-toolbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-theme] .lpc-search{width:270px;max-width:100%;height:40px;border-radius:11px;border:1px solid var(--line);background:var(--panel);display:flex;align-items:center;gap:8px;padding:0 12px;box-sizing:border-box;color:var(--muted)}
html[data-theme] .lpc-search:focus-within{border-color:var(--lp-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--lp-accent) 18%,transparent)}
html[data-theme] .lpc-search input{border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit;font-size:13.5px;color:var(--text);width:100%;min-width:0;padding:0;height:auto}
html[data-theme] .lpc-select{position:relative}
html[data-theme] .lpc-select span{color:var(--muted);font-weight:600}
html[data-theme] .lpc-select select{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%;font:inherit}
.lpc-grow{flex-grow:1}
.lpc-chip{height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:700;display:inline-flex;align-items:center;white-space:nowrap}
.lpc-chip.ok{background:var(--lpc-ok-soft);color:var(--lpc-ok)}
.lpc-chip.due{background:var(--lpc-due-soft);color:var(--lpc-due)}
.lpc-groups{display:flex;flex-direction:column;gap:22px}
.lpc-group{display:flex;flex-direction:column;gap:8px}
html[data-theme] .lpc-group-head{display:flex;align-items:center;gap:8px;border:0;background:transparent;padding:0;font:inherit;cursor:pointer;color:var(--lpc-rail);align-self:flex-start;border-radius:6px}
.lpc-group-head b{font-size:16px;font-weight:800;color:var(--text)}
.lpc-group-head span{font-size:12.5px;font-weight:600;color:var(--muted)}
.lpc-table{border-radius:12px;border:1px solid var(--line);background:var(--panel);overflow:hidden}
.lpc-scroll{overflow-x:auto}
.lpc-grid{display:grid;grid-template-columns:var(--lpc-cols);min-width:var(--lpc-min)}
@media (min-width:761px) and (max-width:1500px){html[data-theme] .lpc-page{--lpc-cols:28px minmax(120px,1.3fr) minmax(100px,1fr) minmax(90px,1fr) 160px 104px 90px 104px 88px 190px;--lpc-min:1066px}.lpc-grid>.lpc-when,.lpc-grid>.lpc-owner{display:none!important}}
@media (min-width:761px) and (max-width:1320px){html[data-theme] .lpc-page{--lpc-cols:28px minmax(120px,1.3fr) minmax(110px,1fr) 160px 104px 90px 104px 88px 190px;--lpc-min:976px}.lpc-grid>.lpc-unit{display:none!important}}
.lpc-head{align-items:center;height:40px;background:var(--panel2);border-bottom:1px solid var(--line);font-size:12px;font-weight:700;color:var(--muted)}
.lpc-head span{padding:0 12px;white-space:nowrap}
.lpc-head .c{text-align:center}
.lpc-row{align-items:stretch;min-height:48px;border-bottom:1px solid var(--line);box-shadow:inset 5px 0 0 var(--lpc-rail);font-size:13.5px;cursor:pointer;background:var(--panel)}
.lpc-row:hover>span:not(.lpc-term):not(.lpc-status){background:var(--lp-hover)}
.lpc-row.is-selected>span:not(.lpc-term):not(.lpc-status){background:color-mix(in srgb,var(--lp-accent) 8%,var(--panel))}
.lpc-row>span{display:flex;align-items:center;padding:0 12px;min-width:0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.lpc-row-history{min-height:40px;font-size:12.5px}
.lpc-row-history .lpc-client{padding-left:28px}
.lpc-row-history .lpc-client b{font-weight:700;color:var(--muted)}
.lpc-check{justify-content:center;padding:0 0 0 6px!important}
.lpc-check label{display:grid;place-items:center;cursor:pointer;position:relative;width:22px;height:22px}
.lpc-check input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}
.lpc-check i{width:18px;height:18px;border-radius:5px;border:2px solid var(--line2);background:transparent;box-sizing:border-box;pointer-events:none}
.lpc-check input:checked+i{background:var(--lp-accent);border-color:var(--lp-accent);box-shadow:inset 0 0 0 2px var(--panel)}
.lpc-check input:focus-visible+i{outline:2px solid var(--lp-accent);outline-offset:2px}
.lpc-client{gap:8px}
.lpc-client b{font-weight:800;overflow:hidden;text-overflow:ellipsis}
.lpc-client em{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);background:var(--panel3);border-radius:6px;padding:1px 6px;flex-shrink:0}
.lpc-project{font-weight:600}
/* V29.76.0 · Unit size: inside the Unit column on wide screens; once that column is hidden it sits under
   the project (laptops) or after it (phones). The project name truncates first so the size stays readable. */
.lpc-pname{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lpc-size{display:none;flex-shrink:0;margin-left:6px;font-size:11.5px;font-weight:600;color:var(--muted);white-space:nowrap}
.lpc-size:before{content:'· '}
@media (max-width:1320px){.lpc-size{display:inline}}
@media (min-width:761px) and (max-width:1320px){.lpc-row>.lpc-project.has-size{flex-direction:column;align-items:flex-start;justify-content:center;gap:1px}.lpc-project .lpc-pname{max-width:100%}.lpc-project .lpc-size{margin-left:0;line-height:1.2}.lpc-project .lpc-size:before{content:none}}
.lpc-unit,.lpc-when{color:var(--muted)}
.lpc-when{font-size:12.5px}
.lpc-row>.lpc-term,.lpc-row>.lpc-status{display:grid;place-items:center;color:#fff;font-size:12.5px;font-weight:700;padding:4px 8px;text-align:center;white-space:normal;line-height:1.25}
.lpc-row>.lpc-term{font-size:12px;line-height:1.3;display:flex!important;align-items:center;justify-content:center}
.lpc-term-txt{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden}
.lpc-money{font-weight:700;font-variant-numeric:tabular-nums}
.lpc-tap{font-weight:800}
.lpc-owner{justify-content:center;padding:0!important}
.lpc-av{width:26px;height:26px;border-radius:999px;color:#fff;font-size:9.5px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.lpc-actions{gap:6px;padding:0 10px!important;overflow:visible!important;position:sticky;right:0;z-index:1;background:var(--panel);box-shadow:-10px 0 12px -10px rgba(16,24,40,.18)}
.lpc-head>span:last-child{position:sticky;right:0;background:var(--panel2);align-self:stretch}
html[data-theme] .lpc-add-row{display:flex;align-items:center;width:100%;min-width:var(--lpc-min);height:38px;padding:0 14px 0 44px;border:0;background:var(--panel);font:inherit;font-size:12.5px;font-weight:600;color:var(--muted);box-shadow:inset 5px 0 0 var(--lpc-rail);cursor:pointer;text-align:left;border-radius:0}
html[data-theme] .lpc-add-row:hover{color:var(--text);background:var(--lp-hover)}
.lpc-menu{position:relative}
.lpc-menu>summary{list-style:none}
.lpc-menu>summary::-webkit-details-marker{display:none}
.lpc-menu-pop{position:absolute;z-index:40;top:calc(100% + 6px);right:0;min-width:230px;padding:6px;border-radius:12px;background:var(--panel);border:1px solid var(--line);box-shadow:0 16px 40px rgba(16,20,36,.18);display:flex;flex-direction:column;gap:2px}
.lpc-row .lpc-menu-pop{position:fixed;right:auto}
html[data-theme] .lpc-menu-pop button{display:flex;align-items:center;gap:8px;height:38px;padding:0 10px;border:0;border-radius:8px;background:transparent;color:var(--text);font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer;white-space:nowrap}
html[data-theme] .lpc-menu-pop button:hover:not(:disabled){background:var(--lp-hover)}
html[data-theme] .lpc-menu-pop button:disabled{opacity:.45;cursor:not-allowed}
.lpc-menu-note{font-size:11.5px;color:var(--muted);padding:8px 10px 4px;border-top:1px solid var(--line);margin-top:4px;line-height:1.4;white-space:normal}
.lpc-empty{display:flex;flex-direction:column;align-items:flex-start;gap:8px;padding:28px;border:1px dashed var(--line2);border-radius:12px;background:var(--panel)}
.lpc-empty span{color:var(--muted);font-size:13.5px}
.lpc-pack.is-ready{position:sticky;bottom:12px;z-index:5;box-shadow:0 12px 30px rgba(10,60,140,.28)}
.lpc-pack{border-radius:14px;background:var(--lp-accent);color:#fff;padding:12px 16px;display:flex;align-items:center;gap:14px}
.lpc-pack b{font-size:14.5px;flex-grow:1}
html[data-theme] .lpc-pack button{height:38px;padding:0 16px;border-radius:10px;border:0;background:#fff;color:#0b5fc4;font:inherit;font-size:14px;font-weight:800;cursor:pointer;white-space:nowrap}
html[data-theme] .lpc-pack button:disabled{opacity:.7;cursor:not-allowed}
.lpc-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:12.5px;color:var(--muted);flex-wrap:wrap}
.lpc-pages>div{display:flex;align-items:center;gap:10px}

/* Phone: each offer becomes a compact card, no sideways scrolling. */
@media (max-width:760px){
  html[data-theme] .lpc-page{gap:14px;padding:0 0 90px}
  html[data-theme] .lpc-title h1{font-size:24px}
  .lpc-top{align-items:flex-start}
  .lpc-toolbar{gap:6px}
  html[data-theme] .lpc-search{width:100%;order:-1}
  html[data-theme] .lpc-toolbar .lpc-btn.primary{flex:1 1 100%;justify-content:center}
  .lpc-grow{display:none}
  .lpc-head{display:none}
  .lpc-grid{min-width:0}
  .lpc-row{display:grid;grid-template-columns:28px 1fr auto;grid-template-areas:"ck client tap" "ck project status" "ck term term" "ck actions actions";padding:10px 10px 10px 8px;row-gap:6px;column-gap:8px}
  .lpc-row>span{padding:0}
  .lpc-row:hover>span:not(.lpc-term):not(.lpc-status){background:transparent}
  .lpc-check{grid-area:ck;align-items:flex-start!important;padding:2px 0 0 4px!important}
  .lpc-client{grid-area:client}
  .lpc-tap{grid-area:tap;justify-content:flex-end}
  .lpc-project{grid-area:project;font-weight:500;color:var(--muted);font-size:12.5px}
  .lpc-row>.lpc-status{grid-area:status;border-radius:999px;padding:2px 10px;font-size:11.5px;justify-self:end}
  .lpc-row>.lpc-term{grid-area:term;justify-self:start;border-radius:8px;padding:4px 10px;font-size:12px}
  .lpc-actions{grid-area:actions;padding:0!important;position:static;box-shadow:none;background:transparent}
  .lpc-unit,.lpc-money:not(.lpc-tap),.lpc-when,.lpc-owner{display:none!important}
  html[data-theme] .lpc-add-row{min-width:0;padding-left:44px}
  .lpc-pack.is-ready{bottom:78px}
  .lpc-pack{flex-wrap:wrap;gap:10px}
  .lpc-pack b{font-size:13px}
}

/* ==========================================================================
   V29.9.0 · Shared page chrome for redesigned screens (.lpx-) + Follow-ups (.fcu-)
   ========================================================================== */
html[data-theme] .fcu-page,html[data-theme] .inv2-page,html[data-theme] .an2-page{--x-ok:#146c41;--x-ok-soft:#dcf2e5;--x-due:#b45309;--x-due-soft:#fdf0dc;--x-late:#c62828;--x-late-soft:#fdeaea;display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
html[data-theme="dark"] .fcu-page,html[data-theme="dark"] .inv2-page,html[data-theme="dark"] .an2-page{--x-ok:#7fdcaa;--x-ok-soft:#173a2a;--x-due:#f0a35e;--x-due-soft:#3a2a14;--x-late:#ff8a80;--x-late-soft:#3a1d1d}
.fcu-page.is-busy{opacity:.6;pointer-events:none;transition:opacity .15s}
.fcu-top,.inv2-top,.an2-top{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;flex-wrap:wrap}
.fcu-top>div:first-child,.inv2-top>div:first-child,.an2-top>div:first-child{display:flex;flex-direction:column;gap:4px;min-width:0}
.fcu-crumb{font-size:12.5px;font-weight:700;color:var(--muted)}
html[data-theme] .fcu-top h1,html[data-theme] .inv2-top h1,html[data-theme] .an2-top h1{margin:0;font-size:28px;line-height:1.15;font-weight:800;letter-spacing:-.02em;color:var(--text)}
.fcu-top p,.inv2-top p,.an2-top p{margin:0;font-size:14px;color:var(--muted)}
.fcu-top-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
html[data-theme] .fcu-btn{height:40px;padding:0 14px;border-radius:11px;background:var(--panel);color:var(--text);border:1px solid var(--line);font:inherit;font-size:13.5px;font-weight:700;display:inline-flex;align-items:center;justify-content:center;gap:8px;cursor:pointer;white-space:nowrap;text-decoration:none;box-shadow:none}
html[data-theme] .fcu-btn:hover{background:var(--lp-hover);border-color:var(--line2);color:var(--text)}
html[data-theme] .fcu-btn.primary{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
html[data-theme] .fcu-btn.primary:hover{filter:brightness(1.08);background:var(--lp-accent);color:#fff}
html[data-theme] .fcu-btn.viber{background:#7360f2;border-color:#7360f2;color:#fff}
html[data-theme] .fcu-btn.viber:hover{filter:brightness(1.08);background:#7360f2;color:#fff}
html[data-theme] .fcu-btn.icon{width:40px;padding:0}
html[data-theme] .fcu-btn:disabled{opacity:.5;cursor:not-allowed;filter:none}
html[data-theme] .fcu-btn:focus-visible,html[data-theme] .fcu-q:focus-visible,html[data-theme] .fcu-tabs button:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
.fcu-stats,.inv2-stats,.an2-stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.fcu-stat{border-radius:14px;border:1px solid var(--line);background:var(--panel);padding:14px 16px;display:flex;flex-direction:column;gap:4px;min-width:0}
.fcu-stat span{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.fcu-stat b{font-size:26px;font-weight:800;line-height:1.1;font-variant-numeric:tabular-nums}
.fcu-stat b.late{color:var(--x-late)}.fcu-stat b.due{color:var(--x-due)}.fcu-stat b.ok{color:var(--x-ok)}
.fcu-stat small{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html[data-theme] .fcu-tabs{display:inline-flex;align-self:flex-start;gap:4px;padding:4px;border-radius:12px;background:var(--panel2);border:1px solid var(--line);max-width:100%;overflow-x:auto}
html[data-theme] .fcu-tabs button{height:34px;padding:0 12px;border-radius:9px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer;white-space:nowrap;box-shadow:none}
html[data-theme] .fcu-tabs button.on{background:var(--panel);color:var(--text);box-shadow:0 1px 3px rgba(16,24,40,.12)}
.fcu-focus{display:flex;align-items:center;gap:12px;padding:10px 14px;border-radius:12px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);font-size:13.5px;font-weight:700}
html[data-theme] .fcu-focus button{margin-left:auto;height:32px;padding:0 12px;border-radius:9px;border:1px solid currentColor;background:transparent;color:inherit;font:inherit;font-weight:700;cursor:pointer}
.fcu-split{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:16px;align-items:start}
.fcu-queue,.fcu-detail{border-radius:14px;border:1px solid var(--line);background:var(--panel);overflow:hidden}
.fcu-queue-head{display:flex;align-items:baseline;justify-content:space-between;gap:8px;padding:14px 14px 10px}
.fcu-queue-head b{font-size:16px;font-weight:800}.fcu-queue-head span{font-size:12.5px;color:var(--muted)}
html[data-theme] .fcu-search{margin:0 14px 12px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--panel);display:flex;align-items:center;gap:8px;padding:0 11px;color:var(--muted)}
html[data-theme] .fcu-search:focus-within{border-color:var(--lp-accent)}
html[data-theme] .fcu-search input{border:0!important;outline:0;background:transparent!important;box-shadow:none!important;font:inherit;font-size:13.5px;color:var(--text);width:100%;min-width:0;padding:0;height:auto}
.fcu-list{display:flex;flex-direction:column;max-height:calc(100vh - 330px);min-height:200px;overflow-y:auto}
html[data-theme] .fcu-q{display:flex;flex-direction:column;gap:6px;padding:12px 14px;border:0;border-top:1px solid var(--line);background:transparent;color:var(--text);font:inherit;text-align:left;cursor:pointer;width:100%;border-radius:0;box-shadow:none}
html[data-theme] .fcu-q:hover{background:var(--lp-hover)}
html[data-theme] .fcu-q.on{background:var(--lp-accent-soft);box-shadow:inset 3px 0 0 var(--lp-accent)}
.fcu-q-top,.fcu-q-sub{display:flex;align-items:center;justify-content:space-between;gap:10px;min-width:0}
.fcu-q-top b{font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcu-q-sub span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.fcu-q-sub em{font-style:normal;font-size:12.5px;font-weight:700;white-space:nowrap;color:var(--muted)}
.fcu-q-sub em.late{color:var(--x-late)}.fcu-q-sub em.due{color:var(--x-due)}.fcu-q-sub em.soon{color:var(--text)}
.fcu-pill{display:inline-flex;align-items:center;height:22px;padding:0 10px;border-radius:999px;color:#fff;font-size:11.5px;font-weight:800;white-space:nowrap;flex-shrink:0}
.fcu-empty{display:flex;flex-direction:column;gap:4px;padding:22px 14px;border-top:1px solid var(--line)}
.fcu-empty span{font-size:13px;color:var(--muted)}
.fcu-detail{padding:20px;display:flex;flex-direction:column;gap:12px}
.fcu-detail-empty{align-items:flex-start;color:var(--muted);min-height:220px;justify-content:center}
.fcu-detail-empty b{color:var(--text);font-size:16px}
.fcu-d-head{display:flex;align-items:center;gap:12px;flex-wrap:wrap}
.fcu-av{width:44px;height:44px;border-radius:999px;background:#0e7580;color:#fff;font-size:15px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.fcu-d-name{display:flex;flex-direction:column;min-width:0;flex:1}
.fcu-d-name b{font-size:21px;font-weight:800;letter-spacing:-.01em}
.fcu-d-name span{font-size:13px;color:var(--muted)}
.fcu-d-pills{display:flex;gap:6px;flex-wrap:wrap}
.fcu-why{display:flex;align-items:flex-start;gap:10px;padding:12px 14px;border-radius:12px;background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.fcu-why p{margin:0;font-size:13.5px;line-height:1.45;color:var(--text)}
.fcu-why.muted{background:var(--panel2)}
.fcu-acts{display:flex;gap:8px;flex-wrap:wrap}
.fcu-label{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted);margin-top:4px}
.fcu-outcomes{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
html[data-theme] .fcu-outcomes button{height:38px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;box-shadow:none}
html[data-theme] .fcu-outcomes button:hover{background:var(--lp-hover)}
html[data-theme] .fcu-outcomes button.on{border-color:var(--lp-accent);background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.fcu-presets{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme] .fcu-presets button{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;cursor:pointer;box-shadow:none}
html[data-theme] .fcu-presets button.on{border-color:transparent;background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
html[data-theme] .fcu-note{min-height:76px;border-radius:12px;border:1px solid var(--line);background:var(--panel2);padding:10px 12px;font:inherit;font-size:13.5px;color:var(--text);resize:vertical;box-sizing:border-box;width:100%}
.fcu-save{display:flex;justify-content:flex-end;gap:8px;flex-wrap:wrap}
.fcu-acts-list{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:10px}
.fcu-acts-list li{display:flex;gap:10px;align-items:flex-start}
.fcu-acts-list i{width:7px;height:7px;border-radius:999px;margin-top:7px;flex-shrink:0}
.fcu-acts-list div{display:flex;flex-direction:column;min-width:0}
.fcu-acts-list b{font-size:13.5px;font-weight:700}
.fcu-acts-list span{font-size:12px;color:var(--muted);overflow:hidden;text-overflow:ellipsis;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical}
@media (max-width:1100px){.fcu-outcomes{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:900px){.fcu-split{grid-template-columns:1fr}.fcu-list{max-height:none}.fcu-stats,.inv2-stats,.an2-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){html[data-theme] .fcu-top h1,html[data-theme] .inv2-top h1,html[data-theme] .an2-top h1{font-size:24px}.fcu-page,.inv2-page,.an2-page{padding-bottom:90px!important}.fcu-stat{padding:12px}.fcu-stat b{font-size:22px}}

/* V29.9.0 · Inventory (.inv2-) */
.inv2-tools{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
html[data-theme] .inv2-psearch{margin:0;width:300px;max-width:100%;height:40px}
.inv2-families{display:flex;flex-direction:column;gap:22px}
.inv2-family{display:flex;flex-direction:column;gap:10px}
.inv2-family-head{display:flex;align-items:center;gap:8px}
.inv2-family-head i{width:10px;height:10px;border-radius:3px}
.inv2-family-head b{font-size:16px;font-weight:800}
.inv2-family-head span{font-size:12.5px;font-weight:600;color:var(--muted)}
.inv2-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:12px}
html[data-theme] .inv2-card{display:flex;flex-direction:column;gap:10px;padding:14px;border-radius:14px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;text-align:left;cursor:pointer;box-shadow:none;transition:border-color .12s,box-shadow .12s}
html[data-theme] .inv2-card:hover{border-color:var(--line2);box-shadow:0 6px 18px rgba(20,24,40,.08)}
html[data-theme] .inv2-card.on{border:2px solid var(--lp-accent);padding:13px}
html[data-theme] .inv2-card:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
.inv2-card-top{display:flex;justify-content:space-between;gap:8px;align-items:flex-start}
.inv2-card-top>span{display:flex;flex-direction:column;min-width:0}
.inv2-card-top b{font-size:15px;font-weight:800;line-height:1.25}
.inv2-card-top small{font-size:12px;color:var(--muted)}
.inv2-fresh{font-style:normal;font-size:11px;font-weight:800;padding:3px 9px;border-radius:999px;white-space:nowrap;background:var(--panel3);color:var(--muted)}
.inv2-fresh.fresh,.inv2-fresh.recent{background:var(--x-ok-soft);color:var(--x-ok)}
.inv2-fresh.aging{background:var(--x-due-soft);color:var(--x-due)}
.inv2-fresh.stale{background:var(--x-late-soft);color:var(--x-late)}
.inv2-bar{display:flex;height:8px;border-radius:999px;overflow:hidden;background:var(--line);gap:2px}
.inv2-bar i{display:block;height:100%}
.inv2-legend{display:flex;gap:12px;font-size:12px;color:var(--muted);flex-wrap:wrap}
.inv2-legend b{color:var(--text);font-weight:800}
.inv2-locked{font-weight:800;color:var(--x-due)}
.inv2-card-foot{display:flex;justify-content:space-between;align-items:flex-end;gap:8px}
.inv2-card-foot>span{display:flex;flex-direction:column}
.inv2-card-foot .r{align-items:flex-end;text-align:right}
.inv2-card-foot small{font-size:11.5px;color:var(--muted)}
.inv2-card-foot b{font-size:16px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.inv2-card-foot small{white-space:nowrap}
.inv2-hint{padding:14px 16px;border-radius:12px;border:1px dashed var(--line2);color:var(--muted);font-size:13.5px}
.inv2-hint b{color:var(--text)}
.inv2-units{border-radius:14px;border:1px solid var(--line);background:var(--panel);overflow:hidden;scroll-margin-top:90px}
.inv2-units-head{display:flex;justify-content:space-between;align-items:flex-start;gap:12px;padding:16px;flex-wrap:wrap}
.inv2-units-head>div:first-child{display:flex;flex-direction:column;gap:3px;min-width:0}
.inv2-units-head b{font-size:17px;font-weight:800}
.inv2-units-head span{font-size:12.5px;color:var(--muted)}
.inv2-units-actions{display:flex;gap:8px;flex-wrap:wrap}
.inv2-units-tools{display:flex;gap:8px;flex-wrap:wrap;padding:0 16px 14px;align-items:center}
html[data-theme] .inv2-usearch{margin:0;width:260px;max-width:100%}
html[data-theme] .inv2-select{display:inline-flex;align-items:center;gap:6px;height:38px;padding:0 4px 0 12px;border-radius:10px;border:1px solid var(--line);background:var(--panel);font-size:13px;font-weight:700;color:var(--muted)}
html[data-theme] .inv2-select select{border:0!important;background:transparent!important;color:var(--text);font:inherit;font-weight:700;height:34px;box-shadow:none!important;padding:0 6px;max-width:190px}
.inv2-table-wrap{overflow-x:auto;border-top:1px solid var(--line)}
html[data-theme] .inv2-table{width:100%;border-collapse:collapse;min-width:860px;font-size:13.5px;background:transparent}
html[data-theme] .inv2-table th{height:38px;padding:0 14px;text-align:left;font-size:11.5px;font-weight:800;letter-spacing:.05em;text-transform:uppercase;color:var(--muted);background:var(--panel2);border-bottom:1px solid var(--line);white-space:nowrap}
html[data-theme] .inv2-table td{height:48px;padding:0 14px;border-bottom:1px solid var(--line);color:var(--text);white-space:nowrap;background:transparent}
html[data-theme] .inv2-table tr:hover td{background:var(--lp-hover)}
.inv2-table .n{text-align:right;font-variant-numeric:tabular-nums}
.inv2-table .r{text-align:right}
.inv2-class{display:inline-flex;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:800;background:var(--x-ok-soft);color:var(--x-ok)}
.inv2-class.park{background:var(--panel3);color:var(--muted)}
.inv2-rfo{display:inline-flex;padding:3px 10px;border-radius:999px;font-size:11.5px;font-weight:800;white-space:nowrap}
.inv2-rfo.rfo{background:rgba(22,163,74,.14);color:#15803d}
.inv2-rfo.nonrfo{background:rgba(37,99,235,.13);color:#1d4ed8}
.inv2-rfo.none{color:var(--muted);font-weight:600}
.inv2-rfo-summary{display:block;margin-top:3px;font-size:12px;font-weight:700;color:var(--muted)}
html[data-theme] .inv2-compute{display:inline-flex;align-items:center;gap:6px;height:34px;padding:0 12px;border-radius:9px;border:0;background:var(--lp-accent-soft);color:var(--lp-accent-ink);font:inherit;font-size:13px;font-weight:800;cursor:pointer}
html[data-theme] .inv2-compute:hover{filter:brightness(.97)}
.inv2-more{padding:12px 16px;font-size:12.5px;color:var(--muted)}
.inv2-empty{display:flex;flex-direction:column;align-items:flex-start;gap:6px;padding:22px;border-radius:12px;border:1px dashed var(--line2);background:var(--panel)}
.inv2-empty span{color:var(--muted);font-size:13.5px}
@media (max-width:760px){.inv2-cards{grid-template-columns:1fr}html[data-theme] .inv2-psearch,html[data-theme] .inv2-usearch{width:100%}.inv2-tools .fcu-tabs{max-width:100%}}

/* V29.9.0 · Analytics (.an2-) */
.an2-page.is-busy{opacity:.6;pointer-events:none}
.an2-top p small{font-size:12px;color:var(--muted);margin-left:6px}
.an2-controls{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
html[data-theme] .an2-scope{position:relative;display:inline-flex;align-items:center;gap:8px;height:40px;padding:0 12px;border-radius:11px;border:1px solid var(--line);background:var(--panel);font-size:13.5px;color:var(--text);cursor:pointer}
html[data-theme] .an2-scope select{position:absolute;inset:0;opacity:0;cursor:pointer;width:100%;height:100%}
.an2-note{padding:10px 14px;border-radius:12px;background:var(--x-due-soft);color:var(--x-due);font-size:13px;font-weight:700}
html[data-theme] .an2-sections{display:flex;gap:4px;border-bottom:1px solid var(--line);overflow-x:auto}
html[data-theme] .an2-sections button{height:40px;padding:0 12px;border:0;border-bottom:2px solid transparent;margin-bottom:-1px;background:transparent;color:var(--muted);font:inherit;font-size:13.5px;font-weight:700;cursor:pointer;white-space:nowrap;border-radius:0;box-shadow:none}
html[data-theme] .an2-sections button.on{color:var(--text);border-bottom-color:var(--lp-accent)}
.an2-grid{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,1fr);gap:16px;align-items:start}
.an2-card{border-radius:14px;border:1px solid var(--line);background:var(--panel);padding:18px;display:flex;flex-direction:column;gap:12px;min-width:0}
.an2-card.flush{padding:0;gap:0;overflow:hidden}
.an2-card-head{display:flex;flex-direction:column;gap:2px}
.an2-card-head.pad{flex-direction:row;align-items:center;justify-content:space-between;padding:16px 18px}
.an2-card-head b{font-size:17px;font-weight:800}
.an2-card-head span{font-size:12.5px;color:var(--muted)}
html[data-theme] .fcu-btn.sm-link{height:32px;padding:0 10px;font-size:12.5px;border-radius:9px}
.an2-funnel{display:flex;flex-direction:column;gap:10px}
.an2-f-row{display:grid;grid-template-columns:130px minmax(0,1fr) 120px;align-items:center;gap:12px}
.an2-f-row>span{font-size:13.5px;font-weight:700}
.an2-f-row small{font-size:12.5px;color:var(--muted);text-align:right}
.an2-f-track{height:26px;border-radius:7px;background:var(--panel2);position:relative;overflow:hidden}
.an2-f-track i{font-style:normal;display:flex;align-items:center;height:100%;border-radius:7px;min-width:0}
.an2-f-track i b{color:#fff;font-size:12px;font-weight:800;padding:0 8px;white-space:nowrap}
.an2-f-track b.zero{position:absolute;left:8px;top:50%;transform:translateY(-50%);font-size:12px;color:var(--muted)}
.an2-foot{margin:0;font-size:11.5px;color:var(--muted)}
.an2-chart{width:100%;height:170px;overflow:visible}
.an2-chart .area{fill:color-mix(in srgb,var(--lp-accent) 14%,transparent)}
.an2-chart .ln{fill:none;stroke:var(--lp-accent);stroke-width:2.5;vector-effect:non-scaling-stroke;stroke-linejoin:round}
.an2-chart .dot{fill:var(--panel);stroke:var(--lp-accent);stroke-width:2;vector-effect:non-scaling-stroke}
.an2-xlabels{display:flex;justify-content:space-between;font-size:11.5px;color:var(--muted);gap:4px}
.an2-table-wrap{overflow-x:auto;border-top:1px solid var(--line)}
html[data-theme] .an2-table{min-width:520px}
html[data-theme] .an2-table tbody tr{cursor:pointer}
html[data-theme] .an2-table tbody tr:focus-visible{outline:2px solid var(--lp-accent);outline-offset:-2px}
.an2-table td.bar{width:28%}
.an2-table td.bar span{display:block;height:7px;border-radius:999px;background:var(--line);overflow:hidden}
.an2-table td.bar i{display:block;height:100%;border-radius:999px;background:var(--lp-accent)}
.an2-attn{display:flex;flex-direction:column;gap:10px}
.an2-attn-title{font-size:17px;font-weight:800;padding:2px 2px 0}
.an2-attn-card{border-radius:14px;padding:14px 16px;display:flex;flex-direction:column;gap:4px}
.an2-attn-card b{font-size:14px;font-weight:800}
.an2-attn-card p{margin:0;font-size:13px;line-height:1.45;color:var(--text)}
.an2-attn-card.late{background:var(--x-late-soft)}.an2-attn-card.late b{color:var(--x-late)}
.an2-attn-card.ok{background:var(--x-ok-soft)}.an2-attn-card.ok b{color:var(--x-ok)}
.an2-attn-card.due{background:var(--x-due-soft)}.an2-attn-card.due b{color:var(--x-due)}
@media (max-width:1100px){.an2-grid{grid-template-columns:1fr}}
@media (max-width:760px){.an2-f-row{grid-template-columns:96px minmax(0,1fr);}.an2-f-row small{grid-column:2;text-align:left;margin-top:-6px}.an2-controls .fcu-tabs{max-width:100%}}
@media (max-width:760px){.an2-xlabels span:nth-child(even){visibility:hidden}}

/* V29.9.2 · Won Sales (.ws2-) */
html[data-theme] .ws2-page{--x-ok:#146c41;--x-ok-soft:#dcf2e5;--x-due:#b45309;--x-due-soft:#fdf0dc;--x-late:#c62828;--x-late-soft:#fdeaea;display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
html[data-theme="dark"] .ws2-page{--x-ok:#7fdcaa;--x-ok-soft:#173a2a;--x-due:#f0a35e;--x-due-soft:#3a2a14;--x-late:#ff8a80;--x-late-soft:#3a1d1d}
.ws2-hero{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr);gap:20px;padding:20px;border-radius:16px;border:1px solid var(--line);background:var(--panel);align-items:stretch}
.ws2-hero-main{display:flex;flex-direction:column;gap:10px;justify-content:center;min-width:0}
.ws2-eyebrow{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ws2-big{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap}
.ws2-big b{font-size:36px;font-weight:800;letter-spacing:-.02em;font-variant-numeric:tabular-nums}
.ws2-big span{font-size:14px;color:var(--muted)}
.ws2-bar{height:10px;border-radius:999px;background:var(--line);overflow:hidden}
.ws2-bar i{display:block;height:100%;border-radius:999px;background:linear-gradient(90deg,#1f9d5c,#34c77b)}
.ws2-bar-legend{display:flex;justify-content:space-between;gap:10px;flex-wrap:wrap;font-size:12.5px;color:var(--muted)}
.ws2-bar-legend b{color:var(--text)}
.ws2-next{border-radius:14px;background:var(--x-ok-soft);padding:16px 18px;display:flex;flex-direction:column;gap:4px;justify-content:center}
.ws2-next b{font-size:26px;font-weight:800;color:var(--x-ok);font-variant-numeric:tabular-nums}
.ws2-next p{margin:0;font-size:13.5px;color:var(--text)}
.ws2-next small{font-size:12.5px;color:var(--muted)}
.ws2-up{font-style:normal;font-size:13px;font-weight:800;color:var(--x-ok);margin-left:4px}
.ws2-pipe{display:flex;align-items:center;gap:10px}
.ws2-stage{flex:1;min-width:0;border-radius:12px;background:var(--panel2);border-top:4px solid var(--c);padding:12px 14px;display:flex;flex-direction:column;gap:2px}
.ws2-stage b{font-size:22px;font-weight:800}
.ws2-stage span{font-size:13px;font-weight:700;color:var(--muted)}
.ws2-arrow{color:var(--muted);font-weight:700}
.ws2-setup{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;padding:14px 16px;border-radius:14px;background:var(--x-due-soft);color:var(--x-due);font-size:13.5px}
.ws2-setup b{font-weight:800}
.ws2-setup-list{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme] .ws2-setup-list .fcu-btn{height:36px;font-size:13px}
.ws2-table-card .an2-card-head.pad{flex-wrap:wrap;gap:10px}
html[data-theme] .ws2-table{min-width:900px}
html[data-theme] .ws2-table td small{display:block;font-size:11.5px;color:var(--muted);font-weight:500}
.ws2-rec{min-width:150px}
.ws2-rec span{display:block;font-size:12px;margin-bottom:4px}
.ws2-rec i{display:block;height:6px;border-radius:999px;background:var(--line);overflow:hidden}
.ws2-rec em{display:block;height:100%;background:#1f9d5c;border-radius:999px}
.ws2-status{display:inline-flex;padding:3px 10px;border-radius:999px;font-size:12px;font-weight:800;white-space:nowrap;background:var(--panel3);color:var(--muted)}
.ws2-status.ok{background:var(--x-ok-soft);color:var(--x-ok)}.ws2-status.due{background:var(--x-due-soft);color:var(--x-due)}.ws2-status.late{background:var(--x-late-soft);color:var(--x-late)}
.ws2-acts{display:flex;gap:6px;justify-content:flex-end}
html[data-theme] .fcu-btn.ws2-danger{color:var(--x-late)}
@media (max-width:1100px){.ws2-hero{grid-template-columns:1fr}.ws2-pipe{flex-wrap:wrap}.ws2-arrow{display:none}.ws2-stage{flex:1 1 40%}}
@media (max-width:760px){.ws2-page .won-mobile-tools{padding:0 14px}.ws2-page .won-mobile-list{padding:0 8px 8px}}
html[data-theme] .inv2-table th.n{text-align:right}
html[data-theme] .ws2-table{min-width:820px}
html[data-theme] .ws2-table td,html[data-theme] .ws2-table th{padding:0 10px}
html[data-theme] .ws2-acts .fcu-btn.sm-link{height:30px;padding:0 9px;font-size:12px}
.won-mobile-filter-empty[hidden]{display:none!important}
@media (max-width:760px){
  .ws2-page{min-width:0;overflow-x:hidden}
  html[data-theme] .ws2-page .won-mobile-summary{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;overflow:visible}
  .ws2-page .won-mobile-summary>div{min-width:0}
  html[data-theme] .ws2-setup-list .fcu-btn{white-space:normal;height:auto;min-height:38px;padding:8px 12px;text-align:left;width:100%;justify-content:flex-start}
  .ws2-setup-list{width:100%}
}
html[data-theme] body .won-sales-page .won-mobile-list .won-mobile-filter-empty[hidden]{display:none!important}

/* V29.9.2 · Project Library (.pl2-) */
html[data-theme] .pl2-page{--x-ok:#146c41;--x-ok-soft:#dcf2e5;--x-due:#b45309;--x-due-soft:#fdf0dc;display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text);max-width:none}
html[data-theme="dark"] .pl2-page{--x-ok:#7fdcaa;--x-ok-soft:#173a2a;--x-due:#f0a35e;--x-due-soft:#3a2a14}
.pl2-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
html[data-theme] .pl2-card{position:relative;display:flex;flex-direction:column;border-radius:16px;border:1px solid var(--line);background:var(--panel);overflow:hidden;cursor:pointer;transition:box-shadow .15s,border-color .15s}
html[data-theme] .pl2-card:hover{box-shadow:0 8px 24px rgba(20,24,40,.10);border-color:var(--line2)}
html[data-theme] .pl2-card:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
.pl2-cover{position:relative;height:130px;display:grid;place-items:center;overflow:hidden}
.pl2-cover img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.pl2-cover>span{color:rgba(255,255,255,.85);font-size:15px;font-weight:800;padding:0 20px;text-align:center}
.pl2-state,.pl2-mine{position:absolute;top:10px;left:10px;font-style:normal;font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;background:#fff;color:#1c2130;box-shadow:0 1px 3px rgba(0,0,0,.2)}
.pl2-state.ok{background:#dcf2e5;color:#146c41}.pl2-state.due{background:#fdf0dc;color:#8a4b06}.pl2-state.info{background:#e7f1fe;color:#0b5fc4}
.pl2-mine{left:auto;right:10px;background:rgba(0,0,0,.55);color:#fff}
.pl2-body{padding:14px 16px 14px;display:flex;flex-direction:column;gap:6px}
.pl2-name{font-size:16px;font-weight:800;padding-right:24px}
.pl2-city{font-size:12.5px;color:var(--muted);margin-top:-4px}
.pl2-brain{display:flex;justify-content:space-between;font-size:12.5px;font-weight:700;margin-top:4px}
.pl2-bar{height:7px;border-radius:999px;background:var(--line);overflow:hidden}
.pl2-bar i{display:block;height:100%;border-radius:999px}
.pl2-stats{display:grid;grid-template-columns:repeat(5,1fr);gap:4px;border-top:1px solid var(--line);padding-top:10px;margin-top:4px;text-align:center}
.pl2-stats span{display:flex;flex-direction:column;font-size:11px;color:var(--muted)}
.pl2-stats b{font-size:15px;font-weight:800;color:var(--text)}
.pl2-upd{font-size:11.5px;color:var(--muted)}
html[data-theme] .pl2-open{position:absolute;right:10px;bottom:auto;top:142px;width:28px;height:28px;border-radius:8px;border:0;background:transparent;color:var(--muted);font-size:20px;cursor:pointer}
.pl2-note{display:flex;align-items:center;gap:10px;padding:14px 16px;border-radius:14px;background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.pl2-note p{margin:0;font-size:13.5px;color:var(--text)}
.pl2-team-pending{background:var(--x-due-soft)}
.pl2-page .project-import-queue{border-radius:14px;border:1px solid var(--line);background:var(--panel)}
@media (max-width:760px){.pl2-grid{grid-template-columns:1fr}.pl2-cover{height:110px}.pl2-open{top:122px!important}.pl2-page .fcu-top-actions{width:100%}.pl2-page .fcu-top-actions .fcu-btn{flex:1 1 auto}}
html[data-theme] body .fcu-search input{border:0!important;box-shadow:none!important;background:transparent!important;height:auto!important;min-height:0!important;padding:0!important;margin:0!important;outline:0!important;border-radius:0!important}

/* V29.9.2 · Client Lead Catchers (.lc2-) */
html[data-theme] .lc2-page{--x-ok:#146c41;--x-ok-soft:#dcf2e5;--x-due:#b45309;--x-due-soft:#fdf0dc;display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
html[data-theme="dark"] .lc2-page{--x-ok:#7fdcaa;--x-ok-soft:#173a2a;--x-due:#f0a35e;--x-due-soft:#3a2a14}
.lc2-tools{justify-content:space-between}
.lc2-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(440px,1fr));gap:14px}
.lc2-card{display:flex;gap:16px;padding:16px;border-radius:16px;border:1px solid var(--line);background:var(--panel);min-width:0}
.lc2-card[hidden]{display:none}
.lc2-phone{position:relative;flex:0 0 118px;height:200px;border-radius:18px;border:5px solid #16181f;overflow:hidden;display:flex;align-items:flex-end}
.lc2-phone img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.lc2-phone-copy{position:relative;width:100%;padding:10px;display:flex;flex-direction:column;gap:6px;background:linear-gradient(transparent,rgba(0,0,0,.55))}
.lc2-phone-copy b{color:#fff;font-size:12px;font-weight:800;line-height:1.2}
.lc2-phone-copy span{background:#fff;color:#1c2130;border-radius:6px;font-size:9.5px;font-weight:800;text-align:center;padding:4px}
.lc2-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:10px}
.lc2-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.lc2-head>div{display:flex;flex-direction:column;min-width:0}
.lc2-head b{font-size:15.5px;font-weight:800;line-height:1.3}
.lc2-head small{font-size:12.5px;color:var(--muted)}
html[data-theme] .lc2-switch{display:inline-flex;align-items:center;gap:8px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:12.5px;font-weight:800;cursor:pointer;padding:4px;border-radius:999px;flex-shrink:0}
.lc2-switch i{position:relative;width:38px;height:22px;border-radius:999px;background:var(--line2);transition:background .15s}
.lc2-switch i::after{content:'';position:absolute;top:3px;left:3px;width:16px;height:16px;border-radius:999px;background:#fff;box-shadow:0 1px 2px rgba(0,0,0,.25);transition:transform .15s}
html[data-theme] .lc2-switch.on{color:var(--x-ok)}
.lc2-switch.on i{background:#1f9d5c}.lc2-switch.on i::after{transform:translateX(16px)}
html[data-theme] .lc2-switch:focus-visible{outline:2px solid var(--lp-accent);outline-offset:2px}
.lc2-warn{font-size:12.5px;font-weight:700;color:var(--x-due);background:var(--x-due-soft);border-radius:10px;padding:7px 10px}
.lc2-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.lc2-stats span{display:flex;flex-direction:column;border-radius:10px;background:var(--panel2);padding:8px 10px;font-size:11.5px;color:var(--muted)}
.lc2-stats b{font-size:17px;font-weight:800;color:var(--text)}
.lc2-acts{display:flex;gap:6px;flex-wrap:wrap;margin-top:auto}
html[data-theme] .lc2-acts .fcu-btn{height:34px;padding:0 10px;font-size:12.5px;border-radius:9px;gap:6px}
html[data-theme] .lc2-acts .fcu-btn.icon{width:34px;padding:0}
.lc2-more{position:relative}
.lc2-more .lc-more-menu{position:absolute;right:0;top:40px;z-index:30;min-width:190px}
html[data-theme] .lc2-new{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;min-height:232px;padding:20px;border-radius:16px;border:2px dashed var(--line2);background:transparent;color:var(--text);font:inherit;text-align:center;cursor:pointer}
html[data-theme] .lc2-new:hover{border-color:var(--lp-accent);background:var(--lp-hover)}
.lc2-new>span{width:40px;height:40px;border-radius:999px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);display:grid;place-items:center;font-size:22px;font-weight:700}
.lc2-new b{font-size:16px;font-weight:800}
.lc2-new small{font-size:13px;color:var(--muted);max-width:280px}
.lc2-new em{font-style:normal;margin-top:4px;background:var(--lp-accent);color:#fff;border-radius:10px;padding:9px 14px;font-weight:800;font-size:13.5px}
@media (max-width:760px){.lc2-grid{grid-template-columns:1fr}.lc2-card{flex-direction:column}.lc2-phone{flex-basis:auto;height:140px;border-width:4px}.lc2-tools{justify-content:flex-start}}

/* V29.9.3 · Team & Connections (.tm2-) */
html[data-theme] .tm2-page{display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
.tm2-av{width:36px;height:36px;border-radius:999px;color:#fff;font-size:12px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
.tm2-av.lg{width:42px;height:42px;font-size:13.5px}
.tm2-av.q{background:#8b93a3}
.tm2-tree{display:flex;flex-direction:column;align-items:center;gap:0;padding:6px 0}
.tm2-tree-top{display:flex;align-items:center;gap:8px}
.tm2-node{display:flex;align-items:center;gap:12px;padding:12px 16px;border-radius:14px;border:1px solid var(--line);background:var(--panel);min-width:240px;max-width:100%}
.tm2-node>div{display:flex;flex-direction:column;min-width:0}
.tm2-node b{font-size:14.5px;font-weight:800;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.tm2-node small{font-size:12.5px;color:var(--muted)}
.tm2-node.ghost{border-style:dashed;border-width:2px;background:transparent}
.tm2-node.me{border-color:var(--lp-accent);box-shadow:0 0 0 3px var(--lp-accent-soft)}
.tm2-line{display:block;width:2px;height:22px;background:var(--line2)}
.tm2-kids{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;width:100%;padding-top:14px;border-top:2px solid var(--line2)}
.tm2-kids .tm2-node{min-width:0}
.tm2-privacy{margin:0;font-size:12.5px;color:var(--muted);text-align:center}
.tm2-split{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,1fr);gap:16px;align-items:start}
.tm2-team{display:flex;flex-direction:column;gap:10px}
.tm2-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(260px,1fr));gap:12px}
.tm2-card{border-radius:14px;border:1px solid var(--line);background:var(--panel);padding:14px;display:flex;flex-direction:column;gap:12px}
.tm2-card-head{display:flex;align-items:center;gap:12px}
.tm2-card-head>div{display:flex;flex-direction:column;min-width:0}
.tm2-card-head b{font-size:15px;font-weight:800}
.tm2-card-head small{font-size:12.5px;color:var(--muted)}
.tm2-card-acts{display:flex;gap:8px;flex-wrap:wrap}
html[data-theme] .tm2-card-acts .fcu-btn{height:36px;font-size:13px}
.tm2-side{display:flex;flex-direction:column;gap:16px}
.tm2-invites{display:flex;flex-direction:column}
.tm2-inv{display:flex;align-items:center;gap:10px;padding:12px 0;border-top:1px solid var(--line)}
.tm2-inv>div{display:flex;flex-direction:column;min-width:0;flex:1}
.tm2-inv b{font-size:14px;font-weight:800}
.tm2-inv small{font-size:12px;color:var(--muted)}
.tm2-inv p{margin:4px 0 0;font-size:12.5px;color:var(--text)}
.tm2-inv>span{display:flex;gap:6px;flex-shrink:0}
.tm2-muted{font-size:12.5px;color:var(--muted);margin:0}
html[data-theme] .tm2-search{margin:0}
.tm2-results{display:flex;flex-direction:column}
.tm2-target-tabs{align-self:flex-start}
html[data-theme] .tm2-target-tabs .org-target-tab{height:32px;padding:0 12px;border-radius:9px;border:0;background:transparent;color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
html[data-theme] .tm2-target-tabs .org-target-tab.on{background:var(--panel);color:var(--text);box-shadow:0 1px 3px rgba(16,24,40,.12)}
@media (max-width:1100px){.tm2-split{grid-template-columns:1fr}}
@media (max-width:760px){.tm2-node{min-width:0;width:100%}.tm2-tree-top{width:100%}.tm2-kids{grid-template-columns:1fr}.tm2-page .fcu-top-actions .fcu-btn{flex:1 1 auto}}

/* V29.9.3 · Sales Portfolio (.sp2-) */
html[data-theme] .sp2-page{--x-ok:#146c41;--x-ok-soft:#dcf2e5;--x-late:#c62828;display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
html[data-theme="dark"] .sp2-page{--x-ok:#7fdcaa;--x-ok-soft:#173a2a;--x-late:#ff8a80}
.sp2-split{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.sp2-left{display:flex;flex-direction:column;gap:16px;min-width:0}
.sp2-card-top{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}
.sp2-steps{display:flex;flex-direction:column}
.sp2-step{display:flex;align-items:center;gap:12px;padding:12px 0;border-top:1px solid var(--line)}
.sp2-step>div{flex:1;display:flex;flex-direction:column;min-width:0}
.sp2-step b{font-size:14.5px;font-weight:800}
.sp2-step small{font-size:12.5px;color:var(--muted)}
.sp2-num{width:30px;height:30px;border-radius:999px;display:grid;place-items:center;background:var(--panel3);color:var(--muted);font-size:13px;font-weight:800;flex-shrink:0}
.sp2-num.ok{background:#1f9d5c;color:#fff}
.sp2-share{display:flex;gap:8px;flex-wrap:wrap;align-items:center}
.sp2-link{flex:1 1 240px;min-width:0;height:40px;display:flex;align-items:center;padding:0 12px;border-radius:11px;border:1px dashed var(--line2);font-size:13px;color:var(--muted);overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.sp2-danger summary{cursor:pointer;font-size:12.5px;color:var(--muted);font-weight:700;padding:4px 2px}
.sp2-danger .fcu-btn{margin-top:8px}
.sp2-preview{display:flex;flex-direction:column;align-items:center;gap:8px;position:sticky;top:90px}
.sp2-live{font-size:11.5px;font-weight:800;letter-spacing:.08em;text-transform:uppercase;color:var(--muted)}
.sp2-phone{width:100%;max-width:300px;border-radius:34px;border:9px solid #16181f;background:#f5efe6;overflow:hidden;box-shadow:0 20px 50px rgba(16,20,36,.18)}
.sp2-hero{position:relative;height:200px;background:#0e1a24 center/cover no-repeat;display:flex;align-items:flex-end}
.sp2-hero img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}
.sp2-hero>div{position:relative;width:100%;padding:14px;background:linear-gradient(transparent,rgba(0,0,0,.7));display:flex;flex-direction:column}
.sp2-hero b{color:#fff;font-family:Georgia,serif;font-size:20px;font-weight:400}
.sp2-hero span{color:#e4bc6a;font-size:10px;font-weight:800;letter-spacing:.08em;text-transform:uppercase}
.sp2-body{padding:14px;display:flex;flex-direction:column;gap:10px;color:#1c2130}
.sp2-body p{margin:0;font-family:Georgia,serif;font-style:italic;font-size:13px;line-height:1.5}
.sp2-stats{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}
.sp2-stats span{background:#fff;border-radius:10px;padding:6px;text-align:center;font-size:9.5px;color:#5b6477;display:flex;flex-direction:column}
.sp2-stats b{font-size:15px;color:#0d5f8c}
.sp2-h{font-size:12px;font-weight:800}
.sp2-projects{display:grid;grid-template-columns:1fr 1fr;gap:6px}
.sp2-projects span{height:64px;border-radius:10px;background:#0d5f8c center/cover no-repeat;color:#fff;font-size:10.5px;font-weight:800;display:flex;align-items:flex-end;padding:6px;text-shadow:0 1px 2px rgba(0,0,0,.5)}
.sp2-projects span:nth-child(2){background-color:#8a5a14}
.sp2-cta{border-radius:999px;background:linear-gradient(90deg,#e4bc6a,#c99a3f);color:#1c2130;text-align:center;font-size:12px;font-weight:800;padding:10px}
.sp2-empty{align-items:flex-start}
.sp2-empty>b{font-size:18px;font-weight:800}
.sp2-empty>p{margin:0;color:var(--muted);font-size:13.5px;max-width:560px}
.sp2-empty .sp2-steps{width:100%;max-width:420px}
.sp2-team{display:flex;flex-direction:column;gap:8px}
@media (max-width:1100px){.sp2-split{grid-template-columns:1fr}.sp2-preview{position:static}}

/* V29.9.3 · Settings (.st2-) — restyles the existing settings shell */
html[data-theme] .st2-page{display:flex;flex-direction:column;gap:18px;padding:6px 2px 28px;color:var(--text)}
html[data-theme] .st2-shell{grid-template-columns:230px minmax(0,1fr);gap:18px}
html[data-theme] .st2-shell .settings-nav{background:var(--panel)!important;border:1px solid var(--line);border-radius:16px;padding:8px;gap:2px;box-shadow:none;top:90px}
html[data-theme] .st2-shell .settings-nav-title{display:none}
html[data-theme] .st2-shell .settings-nav-item{min-height:42px;border:0;border-radius:10px;grid-template-columns:22px minmax(0,1fr);gap:10px;padding:0 10px;color:var(--text);align-items:center;text-decoration:none}
html[data-theme] .st2-shell .settings-nav-item span{display:grid;place-items:center;color:var(--muted);background:none;width:22px;height:22px}
html[data-theme] .st2-shell .settings-nav-item b{font-size:13.5px;font-weight:700;color:var(--text)}
html[data-theme] .st2-shell .settings-nav-item small{display:none}
html[data-theme] .st2-shell .settings-nav-item:hover{background:var(--lp-hover)}
html[data-theme] .st2-shell .settings-nav-item.active{background:var(--lp-accent-soft);box-shadow:none}
html[data-theme] .st2-shell .settings-nav-item.active b,html[data-theme] .st2-shell .settings-nav-item.active span{color:var(--lp-accent-ink)}
html[data-theme] .st2-shell .settings-content{display:flex;flex-direction:column;gap:16px;min-width:0}
.st2-id{display:flex;align-items:center;gap:16px;padding:18px 20px;border-radius:16px;border:1px solid var(--line);background:var(--panel)}
.st2-id>div{flex:1;min-width:0;display:flex;flex-direction:column}
.st2-id b{font-size:22px;font-weight:800;letter-spacing:-.01em}
.st2-id small{font-size:13px;color:var(--muted);overflow:hidden;text-overflow:ellipsis}
.st2-av{width:56px;height:56px;border-radius:999px;background:var(--lp-accent);color:#fff;font-size:19px;font-weight:800;display:grid;place-items:center;flex-shrink:0}
html[data-theme] .st2-shell .settings-content .card,html[data-theme] .st2-shell .settings-block,html[data-theme] .st2-shell .organization-command-card{background:var(--panel)!important;border:1px solid var(--line)!important;border-radius:16px!important;box-shadow:none!important}
html[data-theme] .st2-shell .settings-content .eyebrow,html[data-theme] .st2-shell .account-command-kicker{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
html[data-theme] .st2-shell .settings-content h2,html[data-theme] .st2-shell .settings-content h3{font-weight:800;letter-spacing:-.01em;color:var(--text)}
html[data-theme] .st2-shell .field label{font-size:12.5px;font-weight:700;color:var(--muted)}
html[data-theme] .st2-shell .field input,html[data-theme] .st2-shell .field select,html[data-theme] .st2-shell .field textarea{border-radius:11px;border:1px solid var(--line);background:var(--panel2);color:var(--text);min-height:42px}
html[data-theme] .st2-shell .btn{border-radius:11px;font-weight:700}
html[data-theme] .st2-shell .settings-form-actions{justify-content:flex-end}
@media (max-width:900px){html[data-theme] .st2-shell{grid-template-columns:1fr}html[data-theme] .st2-shell .settings-nav{position:static;display:flex;overflow-x:auto;padding:6px}html[data-theme] .st2-shell .settings-nav-item{flex:0 0 auto;grid-template-columns:18px auto}.st2-id{flex-wrap:wrap}.st2-id b{font-size:19px}}

/* V29.9.4 · Portfolio intro card studio */
.sp2-print{display:grid!important;grid-template-columns:minmax(0,1fr) 150px;align-items:center;gap:16px}
.sp2-print-copy{display:flex;flex-direction:column;align-items:flex-start;gap:12px}
.sp2-print-mini{height:86px;border-radius:8px;background:#0b1522;display:flex;align-items:center;gap:8px;padding:10px;box-shadow:0 10px 24px rgba(0,0,0,.2);position:relative}
.sp2-print-mini::before{content:'';position:absolute;inset:4px;border:1px solid rgba(217,179,108,.5);border-radius:5px}
.sp2-print-mini i{width:34px;height:46px;border-radius:17px 17px 3px 3px;background:#3a4656;border:1px solid #d9b36c;flex-shrink:0}
.sp2-print-mini span{flex:1;display:flex;flex-direction:column;gap:4px}
.sp2-print-mini b{height:8px;width:80%;border-radius:2px;background:#e8cf96}
.sp2-print-mini em{height:4px;width:60%;border-radius:2px;background:#6b7788}
.sp2-print-mini u{width:32px;height:32px;border-radius:3px;background:repeating-conic-gradient(#0b1522 0 25%,#fff 0 50%) 0 0/8px 8px;border:3px solid #fff;flex-shrink:0}
html[data-theme] .ic-studio{width:min(1040px,96vw);max-width:1040px}
.ic-studio-body{display:grid;grid-template-columns:minmax(280px,360px) minmax(0,1fr);gap:22px;padding:4px 20px 20px}
.ic-controls{display:flex;flex-direction:column;gap:14px}
.ic-field{display:flex;flex-direction:column;gap:6px}
.ic-field>span{font-size:11.5px;font-weight:800;letter-spacing:.06em;text-transform:uppercase;color:var(--muted)}
.ic-choices{display:flex;flex-direction:column;gap:6px}
.ic-choices.row{flex-direction:row;flex-wrap:wrap}
html[data-theme] .ic-choices button{display:flex;flex-direction:column;align-items:flex-start;gap:2px;padding:10px 12px;border-radius:11px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;text-align:left;cursor:pointer}
html[data-theme] .ic-choices.row button{flex-direction:row;align-items:center;gap:8px;font-size:13px;font-weight:700}
html[data-theme] .ic-choices button b{font-size:13.5px}
html[data-theme] .ic-choices button small{font-size:12px;color:var(--muted)}
html[data-theme] .ic-choices button.on{border-color:var(--lp-accent);background:var(--lp-accent-soft);box-shadow:inset 0 0 0 1px var(--lp-accent)}
.ic-choices i{width:18px;height:18px;border-radius:5px;border:2px solid}
html[data-theme] .ic-field input{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);color:var(--text);padding:0 12px;font:inherit;font-size:13.5px}
.ic-check{display:flex;align-items:center;gap:8px;font-size:13.5px;font-weight:600}
.ic-note{margin:0;font-size:12.5px;color:var(--muted);line-height:1.45}
.ic-warn{margin:0;font-size:12.5px;font-weight:700;color:#b45309;background:#fdf0dc;border-radius:10px;padding:8px 10px}
html[data-theme="dark"] .ic-warn{color:#f0a35e;background:#3a2a14}
.ic-actions{display:flex;gap:8px;flex-wrap:wrap}
.ic-stage{border-radius:16px;background:repeating-linear-gradient(45deg,var(--panel2),var(--panel2) 10px,var(--panel3) 10px,var(--panel3) 20px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:10px;padding:24px 12px;min-height:360px;min-width:0}
.ic-preview{position:relative;box-shadow:0 20px 50px rgba(0,0,0,.25)}
.ic-preview .ic{position:absolute;left:0;top:0}
.ic-stage small{font-size:12px;color:var(--muted);font-weight:600}
@media (max-width:820px){.ic-studio-body{grid-template-columns:1fr}.ic-stage{order:-1;min-height:220px}.sp2-print{grid-template-columns:1fr}.sp2-print-mini{display:none}}
html[data-theme] .ic-check input{width:18px!important;height:18px!important;min-height:0!important;margin:0;flex:none;accent-color:var(--lp-accent)}
.sp-catcher-pick small{display:block;margin-top:4px;font-size:11.5px;font-weight:500;color:var(--muted);line-height:1.4}

/* ---------- V29.16 · Client Experience builder: video upload ---------- */
.cx-video-upload{display:flex;flex-wrap:wrap;align-items:center;gap:8px 10px;margin-top:8px;font-size:12px;color:var(--muted)}
/* V29.18.0 · Shared SMDC Project Briefings */
.pl2-brief{font-style:normal;color:var(--lp-accent-ink);font-weight:700}
.smdc-modal .modal-body{display:flex;flex-direction:column;gap:14px}
.smdc-import{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:14px 16px;border:1px dashed var(--line);border-radius:14px;background:var(--panel2)}
.smdc-import b,.smdc-import small{display:block}.smdc-import small{margin-top:4px;color:var(--muted);font-size:12px;line-height:1.45}
html[data-theme] .smdc-modal .smdc-search{margin:0;width:100%;box-sizing:border-box}.smdc-search input{width:100%;border:0;background:transparent;color:var(--text);outline:0}
#smdc-list{display:flex;flex-direction:column;gap:10px}
.smdc-row{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:12px 14px}
.smdc-row-head{display:flex;align-items:center;justify-content:space-between;gap:12px}
.smdc-row-head b,.smdc-row-head small{display:block}.smdc-row-head small{color:var(--muted);font-size:12px;margin-top:2px}
.smdc-file{display:grid;grid-template-columns:34px minmax(0,1fr) auto auto;gap:10px;align-items:center;margin-top:10px;padding-top:10px;border-top:1px solid var(--line)}
.smdc-file>span{display:grid;place-items:center;width:34px;height:34px;border-radius:9px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);font-size:10px;font-weight:800}
.smdc-file b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smdc-file small{color:var(--muted);font-size:11.5px}
.smdc-review{border:1px solid var(--line);border-radius:14px;background:var(--panel);padding:12px 14px;display:flex;flex-direction:column;gap:8px}
.smdc-review-head b,.smdc-review-head small{display:block}.smdc-review-head small{color:var(--muted);font-size:12px;margin-top:3px}
.smdc-review-row{display:grid;grid-template-columns:20px minmax(0,1fr) minmax(0,220px);gap:10px;align-items:center;padding:8px 0;border-top:1px solid var(--line)}
.smdc-review-row b{display:block;font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.smdc-review-row small{color:var(--muted);font-size:11.5px}
.smdc-review-row select{width:100%;min-width:0}
.smdc-review-foot{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;padding-top:6px}
.smdc-review-foot span{margin-right:auto;color:var(--muted);font-size:12px}
@media (max-width:640px){.smdc-import{flex-direction:column;align-items:stretch}.smdc-review-row{grid-template-columns:20px minmax(0,1fr)}.smdc-review-row select{grid-column:1/-1}.smdc-file{grid-template-columns:34px minmax(0,1fr) auto}.smdc-file [data-smdc-remove]{grid-column:2/-1;justify-self:start}}
/* V29.19.0 · Lead Catcher offer & payment setup, videos and 360° status */
.lcx-offer-setup{display:grid;grid-template-columns:minmax(0,1.4fr) minmax(0,1fr) minmax(0,1fr);gap:12px;align-items:end}
.lcx-seg{display:inline-flex;flex-wrap:wrap;gap:4px;padding:4px;border-radius:12px;background:var(--panel2);border:1px solid var(--line)}
.lcx-seg button{border:0;background:transparent;color:var(--muted);font:inherit;font-weight:700;font-size:12.5px;padding:8px 12px;border-radius:9px;cursor:pointer}
.lcx-seg button.on{background:var(--panel);color:var(--text);box-shadow:0 1px 3px rgba(16,22,38,.14)}
.lcx-term-pick{display:flex;flex-direction:column;gap:8px;margin-top:12px}.lcx-term-pick>b{font-size:13px}
#lcx-terms{display:flex;flex-direction:column;gap:12px}.lcx-term-group{display:flex;flex-direction:column;gap:6px}.lcx-term-group>small{font-size:12px;font-weight:700;color:var(--muted)}
.lcxw .lcx-term-group>small{font-size:14px;color:var(--cxb-text)}.lcxw .lcx-offer-cls{color:var(--cxb-muted,inherit)}
.lcx-offer-cls{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);margin-left:4px}
.lcx-term-chip{display:inline-flex;align-items:center;gap:6px;padding:6px 10px;border-radius:99px;border:1px solid var(--line);background:var(--panel);font-size:12px;font-weight:600;cursor:pointer}
.lcx-term-chip.on{border-color:var(--lp-accent);background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.lcx-term-chip input{margin:0}
#lcx-offer-units{margin-top:12px;display:flex;flex-direction:column;gap:8px}
.lcx-offer-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.lcx-offer-head b,.lcx-offer-head small{display:block}.lcx-offer-head small{color:var(--muted);font-size:12px;margin-top:2px}
.lcx-offer-table{border:1px solid var(--line);border-radius:12px;overflow:hidden;background:var(--panel)}
.lcx-offer-row{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(0,.8fr) minmax(0,1fr) minmax(0,1fr);gap:10px;padding:9px 12px;border-top:1px solid var(--line);font-size:13px;font-variant-numeric:tabular-nums;align-items:center}
.lcx-offer-row:first-child{border-top:0}.lcx-offer-row.head{background:var(--panel2);color:var(--muted);font-size:11px;font-weight:800;letter-spacing:.05em;text-transform:uppercase}
.lcx-offer-note{color:var(--muted);font-size:12px}
.lcx-offer-empty{padding:12px;border:1px dashed var(--line2);border-radius:12px;color:var(--muted);font-size:12.5px}
.lcx-video-pick{display:flex;flex-direction:column;gap:6px;margin-top:10px}
.lcx-video-row{display:flex;align-items:center;gap:10px;padding:8px 10px;border:1px solid var(--line);border-radius:10px;background:var(--panel)}
.lcx-video-row span{flex:1;min-width:0}.lcx-video-row b{display:block;font-size:13px}.lcx-video-row small{display:block;color:var(--muted);font-size:11.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lcx-video-add{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.lcx-video-add input{flex:1 1 200px;min-width:0;height:34px;border-radius:9px;border:1px solid var(--line2);background:var(--panel);color:var(--text);padding:0 10px}
.lcx-tour-status{display:flex;gap:10px;align-items:baseline;margin-top:10px;padding:9px 12px;border-radius:10px;background:var(--panel2);font-size:12.5px}.lcx-tour-status small{color:var(--muted)}
.lcx-tour-status.on{background:var(--lp-accent-soft)}.lcx-tour-status.on b{color:var(--lp-accent-ink)}
.qp-custom{display:flex;flex-direction:column;gap:10px}.qp-custom[hidden]{display:none}
@media (max-width:760px){.lcx-offer-setup{grid-template-columns:1fr}.lcx-offer-row{grid-template-columns:minmax(0,1.2fr) minmax(0,1fr) minmax(0,1fr)}.lcx-offer-row>:nth-child(2){display:none}.lcx-offer-head{flex-direction:column;align-items:flex-start}}
.lcx-media-v2{display:flex;flex-direction:column;gap:8px;padding:12px;border:1px solid var(--line);border-radius:13px;background:var(--panel2)}
.lcx-media-v2-head b,.lcx-media-v2-head small{display:block}.lcx-media-v2-head b{font-size:13px}.lcx-media-v2-head small{color:var(--muted);font-size:12px;margin-top:2px}
.lcx-media-v2 .lcx-video-pick,.lcx-media-v2 .lcx-video-add,.lcx-media-v2 .lcx-tour-status{margin-top:0}
.lcx-video-row input[type="checkbox"],.lcx-term-chip input[type="checkbox"]{width:16px;height:16px;min-width:16px;flex:none;margin:0;padding:0;accent-color:var(--lp-accent)}
.lcx-video-add .btn{height:34px}
html[data-theme] .lcx-builder-v28110 .lcx-cover-row{grid-template-columns:minmax(0,1fr) auto;background:var(--panel2);border-color:var(--line)}
.lcx-builder-v28110 .lcx-cover-row b,.lcx-builder-v28110 .lcx-cover-row small{display:block}.lcx-builder-v28110 .lcx-cover-row small{color:var(--muted);font-size:12px;margin-top:2px}
@media (max-width:760px){html[data-theme] .lcx-builder-v28110 .lcx-cover-row{grid-template-columns:1fr}}
.lcx-offer-setup{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}
.lcx-term-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
html[data-theme] .lcx-term-chip{border-radius:10px;padding:8px 10px;min-height:0;height:auto;line-height:1.3;margin:0}
@media (max-width:760px){.lcx-term-list{grid-template-columns:1fr}.lcx-offer-setup{grid-template-columns:1fr}}
.qp-photo-row{display:flex;gap:8px;flex-wrap:wrap}.qp-photo-row [hidden]{display:none}
.qp-photo-note{display:block;color:var(--muted);font-size:12px;margin-top:4px}
.ic-preview .qp{position:absolute;left:0;top:0}
.qp-studio .ic-stage{justify-content:flex-start;align-self:start;position:sticky;top:0}
@media (max-width:760px){.qp-studio .ic-stage{position:static}}
/* ---------- V29.20.0 · Showroom invitation link ---------- */
.lp-sri .lp-row-between{align-items:flex-start;gap:10px}
.lp-sri-state{flex:none;font-size:11.5px;font-weight:800;padding:5px 10px;border-radius:999px;background:var(--panel3);color:var(--soft);white-space:nowrap}
.lp-sri-booked,.lp-sri-done{background:color-mix(in srgb,var(--green) 16%,transparent);color:var(--green)}
.lp-sri-waiting{background:var(--lp-accent-soft);color:var(--lp-accent-ink)}
.lp-sri-cancelled{background:color-mix(in srgb,var(--red) 14%,transparent);color:var(--red)}
.lp-sri-note{margin:0;padding:10px 12px;border-radius:10px;background:var(--panel2);font-size:13px;line-height:1.45}
.lp-sri-note small{display:block;color:var(--muted);font-size:11.5px;font-weight:700;margin-bottom:2px}
.lp-linkbtn{background:none;border:0;padding:6px 0;color:var(--lp-accent-ink);font:inherit;font-size:13px;font-weight:700;cursor:pointer;text-align:left}
.lp-linkbtn:hover{text-decoration:underline}
.sri-modal{width:min(600px,calc(100vw - 24px))}
.sri-recent{display:flex;flex-wrap:wrap;gap:6px;align-items:center;margin-top:8px}
.sri-recent>span{font-size:11.5px;color:var(--muted);font-weight:700;margin-right:2px}
.sri-chip{border:1px solid var(--line);background:var(--panel2);color:var(--text);border-radius:999px;padding:5px 10px;font:inherit;font-size:12px;cursor:pointer;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.sri-days{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px}
.sri-day,.sri-seg button{height:38px;border-radius:10px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.sri-day.on,.sri-seg button.on{background:var(--lp-accent-soft);border-color:var(--lp-accent);color:var(--lp-accent-ink)}
.sri-seg{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;max-width:360px}
.sri-preview{display:flex;flex-direction:column;gap:3px;padding:12px 14px;border-radius:12px;background:var(--panel2);border:1px solid var(--line)}
.sri-preview b{font-size:13px}.sri-preview span{font-size:13px;color:var(--soft)}.sri-preview small{font-size:12px;color:var(--muted);line-height:1.45}
.sri-preview .sri-warn{color:var(--red)}
.sri-share{display:flex;flex-direction:column;gap:14px}
.sri-ready{display:flex;flex-direction:column;gap:2px;padding:12px 14px;border-radius:12px;background:color-mix(in srgb,var(--green) 12%,transparent);border:1px solid color-mix(in srgb,var(--green) 30%,transparent)}
.sri-ready b{color:var(--green)}.sri-ready span{font-size:13px;color:var(--soft)}
.sri-ready-plain{background:var(--panel2);border-color:var(--line)}
.sri-share textarea{width:100%;resize:vertical;font-size:13px;line-height:1.5}
.sri-send{display:flex;flex-wrap:wrap;gap:8px}.sri-send .btn{text-decoration:none}
.sri-hint{color:var(--muted);font-size:12px;line-height:1.45}
@media (max-width:620px){.sri-days{grid-template-columns:repeat(4,minmax(0,1fr))}.sri-send .btn{flex:1}}
/* V29.20.0 · Windows opened from the lead panel (z-index 901) open above it, and messages show above both. */
.modal-backdrop,.drawer-backdrop{z-index:1100}
#toast-root{z-index:2100}


/* V29.20.1 · Sales Portfolio Builder field contrast
   The editor intentionally stays a light form surface even when the app shell is dark.
   Keep this in the final-loaded theme layer so generic dark form rules cannot override it. */
html .portfolio-editor-modal .portfolio-editor-panel .field input,
html .portfolio-editor-modal .portfolio-editor-panel .field textarea,
html .portfolio-editor-modal .portfolio-editor-panel .field select,
html .portfolio-editor-modal .portfolio-repeat-row input,
html .portfolio-editor-modal .portfolio-repeat-row textarea,
html .portfolio-editor-modal .portfolio-repeat-fields input,
html .portfolio-editor-modal .portfolio-repeat-fields textarea {
  background:#ffffff !important;
  background-color:#ffffff !important;
  color:#172b3d !important;
  -webkit-text-fill-color:#172b3d !important;
  caret-color:#172b3d !important;
  border-color:#cbd6df !important;
  color-scheme:light !important;
  opacity:1 !important;
}

html .portfolio-editor-modal .portfolio-editor-panel .field select option,
html .portfolio-editor-modal .portfolio-editor-panel .field select optgroup {
  background:#ffffff !important;
  color:#172b3d !important;
}

html .portfolio-editor-modal .portfolio-editor-panel .field input::placeholder,
html .portfolio-editor-modal .portfolio-editor-panel .field textarea::placeholder,
html .portfolio-editor-modal .portfolio-repeat-row input::placeholder,
html .portfolio-editor-modal .portfolio-repeat-row textarea::placeholder,
html .portfolio-editor-modal .portfolio-repeat-fields input::placeholder,
html .portfolio-editor-modal .portfolio-repeat-fields textarea::placeholder {
  color:#718396 !important;
  -webkit-text-fill-color:#718396 !important;
  opacity:1 !important;
}

html .portfolio-editor-modal .portfolio-editor-panel .field input:focus,
html .portfolio-editor-modal .portfolio-editor-panel .field textarea:focus,
html .portfolio-editor-modal .portfolio-editor-panel .field select:focus,
html .portfolio-editor-modal .portfolio-repeat-row input:focus,
html .portfolio-editor-modal .portfolio-repeat-row textarea:focus,
html .portfolio-editor-modal .portfolio-repeat-fields input:focus,
html .portfolio-editor-modal .portfolio-repeat-fields textarea:focus {
  outline:none !important;
  border-color:#2f6fed !important;
  box-shadow:0 0 0 3px rgba(47,111,237,.14) !important;
}

html .portfolio-editor-modal .portfolio-editor-panel .field label,
html .portfolio-editor-modal .portfolio-repeat-row label,
html .portfolio-editor-modal .portfolio-repeat-fields label {
  color:#4d6478 !important;
}

html .portfolio-editor-modal input:-webkit-autofill,
html .portfolio-editor-modal input:-webkit-autofill:hover,
html .portfolio-editor-modal input:-webkit-autofill:focus {
  -webkit-text-fill-color:#172b3d !important;
  box-shadow:0 0 0 1000px #ffffff inset !important;
  transition:background-color 9999s ease-out 0s;
}

/* V29.22 · 3-step computation window: one header (the calculator's own), sized to the card. */
@media(min-width:901px){.legacy-tool-modal.is-compact{width:min(980px,calc(100vw - 28px))!important;height:min(860px,calc(100dvh - 28px))!important}}
.legacy-tool-modal.is-bare{grid-template-rows:1fr!important}
.legacy-tool-modal.is-bare>.legacy-tool-head{display:none!important}

/* ===== V29.50 · Audit fixes: cut-off labels, overlaps and phone overflow ===== */
/* Sidebar wordmark: the type scale enlarged the tagline to 12px, cutting it to "KEEP THINGS MOV". */
html[data-theme] .lp-wordmark-text small{font-size:9.5px;letter-spacing:.2em}
/* Leads sort menu: room for the longest option ("Last contacted") on computers. */
@media (min-width:761px){html[data-theme] .lp-toolbar .lead-sort-control select{max-width:180px!important}}
/* Meta Ads: the Lead Generated / Messages switch sat on top of the card title in narrow cards. */
.meta-result-kpi-head{flex-direction:column;align-items:stretch}
.meta-result-kpi-head .meta-result-toggle{width:100%;display:flex;flex-wrap:wrap}
.meta-result-kpi-head .meta-result-toggle button{flex:1 1 auto;white-space:nowrap}
/* Tasks: the ••• button's dots spilled past the button. */
.tx-icon-btn{padding:0}
@media (max-width:760px){
  /* Dashboard: vision board buttons wrap instead of running off the screen; the stats strip no longer widens the page. */
  .lpd-vadd{flex-wrap:wrap;overflow-x:visible}
  .lpd-mom{margin-left:0;margin-right:0;padding-left:0;padding-right:0}
  /* Analytics: the date range row stays inside the page. */
  .an2-top>*,.an2-controls{min-width:0;max-width:100%}
  /* Leads → Follow-up queue: the date goes on its own line so rows fit the screen. */
  .lp-queue{max-width:100%;min-width:0}
  .lp-qrow{flex-wrap:wrap;gap:8px 12px}
  .lp-qwhen{width:100%}
  /* Leads table: bigger lead checkboxes for fingers. */
  html[data-theme] .lpm-wrap .lpm-check{width:20px!important;height:20px!important}
}
/* V29.52 · Lead form ••• menu: an older rule also set bottom:58px, which squashed the menu to 14px so its items showed without a background. */
.lc2-more .lc-more-menu{bottom:auto}

/* ===== V29.55 · Leads → Duplicates: find and merge leads entered twice ===== */
.lp-dup-modal{width:min(720px,100%)}
.lp-dup-count{font-size:13px;font-weight:700;color:var(--muted);margin:0 0 10px}
.lp-dup-group{border:1px solid var(--line);border-radius:14px;padding:12px;margin:0 0 12px;background:var(--panel)}
.lp-dup-reasons{display:flex;flex-wrap:wrap;gap:6px;margin-bottom:8px}
.lp-dup-chip{font-size:12px;font-weight:700;padding:3px 9px;border-radius:999px;background:var(--lp-accent-soft);color:var(--lp-accent-ink);max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lp-dup-rows{display:grid;gap:6px}
.lp-dup-row{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;cursor:pointer;min-width:0}
.lp-dup-row:hover{background:var(--lp-hover)}
.lp-dup-row input{width:18px;height:18px;flex:0 0 auto;margin:0;accent-color:var(--lp-accent)}
.lp-dup-main{display:grid;gap:2px;min-width:0;flex:1}
.lp-dup-main b,.lp-dup-main small{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lp-dup-main small{color:var(--muted);font-size:12px}
.lp-dup-tag{font-style:normal;font-size:11px;font-weight:700;color:var(--muted);border:1px solid var(--line);border-radius:6px;padding:0 5px;margin-left:4px}
.lp-dup-keep{font-size:12px;font-weight:800;color:var(--lp-accent);visibility:hidden}
.lp-dup-row:has(input:checked){border-color:var(--lp-accent);background:var(--lp-accent-soft)}
.lp-dup-row:has(input:checked) .lp-dup-keep{visibility:visible}
.lp-dup-blocked{margin:8px 0 0;font-size:12.5px;color:var(--muted)}
.lp-dup-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px;margin-top:10px}

/* ===== V29.56 · Top bar bell: client activity on your Proposals ===== */
html[data-theme] .lp-tb .lp-tb-bell{display:grid;position:relative}
/* Room for the bell beside + New and the account button, so the actions never slide under the search field. */
@media (min-width:1181px){html[data-theme] body .lp-tb{grid-template-columns:minmax(150px,1fr) minmax(260px,560px) minmax(max-content,1fr)}}
.lp-tb-badge{position:absolute;top:-5px;right:-5px;min-width:18px;height:18px;padding:0 5px;border-radius:999px;background:#e5484d;color:#fff;font-size:11px;font-weight:800;line-height:18px;text-align:center;box-shadow:0 0 0 2px var(--bg)}
.lp-tb-badge[hidden]{display:none}
.lp-alerts-pop{position:fixed;z-index:1200;max-height:min(70dvh,560px);display:flex;flex-direction:column;border:1px solid var(--line);border-radius:14px;background:var(--panel);color:var(--text);box-shadow:0 18px 50px rgba(0,0,0,.22);overflow:hidden}
.lp-alerts-head{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:12px 14px;border-bottom:1px solid var(--line)}
.lp-alerts-head b{display:block;font-size:15px}
.lp-alerts-head small{display:block;color:var(--muted);font-size:12px}
.lp-alerts-list{overflow:auto;padding:6px}
.lp-alert-item{display:flex;gap:10px;width:100%;padding:10px;border:0;border-radius:10px;background:transparent;color:inherit;font:inherit;text-align:left;cursor:pointer}
.lp-alert-item:hover{background:var(--lp-hover)}
.lp-alert-item.is-new{background:var(--lp-accent-soft)}
.lp-alert-icon{flex:0 0 28px;height:28px;display:grid;place-items:center;border-radius:50%;background:var(--lp-hover);font-size:14px}
.lp-alert-text{display:grid;gap:2px;min-width:0}
.lp-alert-text b{font-size:13.5px;line-height:1.3}
.lp-alert-text small{color:var(--muted);font-size:12px;line-height:1.35;overflow-wrap:anywhere}
.lp-alert-when{font-size:11.5px!important}
.lp-alerts-empty{display:grid;gap:4px;padding:22px 14px;text-align:center;color:var(--muted);font-size:13px}
.lp-alerts-empty b{color:var(--text)}
/* Sidebar wordmark on narrower laptops (sidebar ~250px): "LEAD PULSE" and its tagline were cut off. */
@media (min-width:901px) and (max-width:1280px){html[data-theme] .lp-wordmark-text b{font-size:14px;letter-spacing:.1em}html[data-theme] .lp-wordmark-text small{font-size:8px;letter-spacing:.12em}}

/* ===== V29.57 · Lead panel → Closing: reservation record and buyer documents ===== */
.lp-closing{display:grid;gap:12px}
.lp-cl-grid .lp-cl-wide{grid-column:1/-1}
.lp-cl-grid select,.lp-cl-type select,.lp-cl-doc select{height:40px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);padding:0 10px;font:inherit;font-size:13.5px;font-weight:700;color:var(--text);min-width:0;max-width:100%}
.lp-cl-grid input,.lp-cl-grid select{width:100%;min-width:0}
.lp-cl-grid label[hidden]{display:none}
.lp-cl-stage{font-size:12px;font-weight:800;padding:4px 10px;border-radius:999px;white-space:nowrap;background:var(--lp-hover);color:var(--muted)}
.lp-cl-stage.lp-cl-ok{background:var(--x-ok-soft,rgba(31,122,74,.12));color:var(--x-ok,var(--green))}
.lp-cl-stage.lp-cl-due{background:var(--x-due-soft,rgba(180,83,9,.12));color:var(--x-due,var(--amber))}
.lp-cl-stage.lp-cl-off{background:var(--x-late-soft,rgba(200,50,43,.12));color:var(--x-late,var(--red))}
.lp-cl-pct{font-size:18px;font-weight:800;color:var(--lp-accent)}
.lp-cl-bar{height:6px;border-radius:999px;background:var(--lp-hover);overflow:hidden}
.lp-cl-bar i{display:block;height:100%;border-radius:inherit;background:var(--lp-accent);transition:width .2s ease}
.lp-cl-type{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12.5px;font-weight:700;color:var(--muted);white-space:nowrap}
.lp-cl-type select{flex:0 1 240px}
.lp-cl-docs{display:grid;gap:6px}
.lp-cl-doc{display:flex;align-items:center;gap:10px;padding:9px 10px;border:1px solid var(--line);border-radius:10px;border-left-width:3px}
.lp-cl-doc .lp-grow{min-width:0}
.lp-cl-doc b{display:block;font-size:13px}
.lp-cl-doc small{display:block;font-size:11.5px;color:var(--muted);line-height:1.35}
.lp-cl-doc select{flex:0 0 auto;width:118px;height:34px;font-size:12.5px}
.lp-cl-doc-missing{border-left-color:var(--x-due,var(--amber))}
.lp-cl-doc-received{border-left-color:var(--lp-accent)}
.lp-cl-doc-verified{border-left-color:var(--x-ok,var(--green))}
.lp-cl-doc-na{opacity:.6;border-left-color:var(--line)}
.lp-actions button[disabled]{opacity:.5;cursor:not-allowed}

/* ===== V29.58 · Lead Generation insights ===== */
button.lc2-stats{width:100%;padding:0;border:0;background:transparent;font:inherit;text-align:left;cursor:pointer;position:relative}
button.lc2-stats em{grid-column:1/-1;justify-self:end;font-style:normal;font-size:12px;font-weight:800;color:var(--lp-accent);margin-top:-2px}
button.lc2-stats:hover span{background:var(--lp-hover)}
.lfi-modal{width:min(760px,100%)}
.lfi-ranges{display:flex;flex-wrap:wrap;gap:6px;padding:10px 15px 0}
.lfi-ranges button{height:32px;padding:0 12px;border-radius:999px;border:1px solid var(--line);background:var(--panel);color:var(--muted);font:inherit;font-size:12.5px;font-weight:700;cursor:pointer}
.lfi-ranges button.on{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
.lfi-sec{padding:4px 0 14px;border-bottom:1px solid var(--line);margin-bottom:14px}
.lfi-sec:last-child{border-bottom:0;margin-bottom:0}
.lfi-sec h4{margin:0 0 10px;font-size:14px;font-weight:800}
.lfi-funnel{display:grid;grid-template-columns:1fr auto 1fr auto 1fr;align-items:center;gap:8px}
.lfi-funnel i{font-style:normal;color:var(--muted);font-size:20px}
.lfi-step{border:1px solid var(--line);border-radius:12px;padding:10px 12px;min-width:0}
.lfi-step span,.lfi-kpis span{display:block;font-size:12px;font-weight:700;color:var(--muted)}
.lfi-step b{display:block;font-size:22px;font-weight:800}
.lfi-step small,.lfi-kpis small{display:block;font-size:11.5px;color:var(--muted)}
.lfi-note{margin:10px 0 0;font-size:13px;color:var(--muted)}
.lfi-note b{color:var(--text)}
.lfi-hint{margin:8px 0 0;font-size:12px;color:var(--muted)}
.lfi-empty{margin:0;font-size:13px;color:var(--muted)}
.lfi-table{display:grid;border:1px solid var(--line);border-radius:12px;overflow:hidden}
.lfi-tr{display:grid;grid-template-columns:minmax(0,2fr) repeat(3,minmax(0,1fr));gap:8px;align-items:center;padding:9px 12px;font-size:13px;border-top:1px solid var(--line)}
.lfi-tr:first-child{border-top:0}
.lfi-th{font-size:11.5px;font-weight:800;color:var(--muted);background:var(--panel2)}
.lfi-tr>span:not(:first-child){text-align:right;font-variant-numeric:tabular-nums}
.lfi-tr>span:first-child{min-width:0;display:flex;flex-wrap:wrap;align-items:center;gap:2px 6px}
.lfi-tr>span:first-child b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:100%}
.lfi-tr small{width:100%;font-size:11.5px;color:var(--muted)}
.lfi-tr em{font-style:normal;font-size:11px;font-weight:800;padding:1px 7px;border-radius:999px;background:var(--x-ok-soft,rgba(31,122,74,.12));color:var(--x-ok,var(--green))}
.lfi-tr.is-current{background:var(--lp-accent-soft)}
.lfi-qs{display:grid;gap:10px}
.lfi-q-top{display:flex;justify-content:space-between;gap:10px;font-size:13px}
.lfi-q-top span{min-width:0}
.lfi-q-top b{white-space:nowrap;font-variant-numeric:tabular-nums}
.lfi-bar{height:7px;border-radius:999px;background:var(--lp-hover);overflow:hidden;margin-top:5px}
.lfi-bar i{display:block;height:100%;background:var(--lp-accent);border-radius:inherit}
.lfi-q.is-worst .lfi-bar i{background:var(--x-due,var(--amber))}
.lfi-q small{display:block;margin-top:4px;font-size:12px;font-weight:700;color:var(--x-due,var(--amber))}
.lfi-kpis{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.lfi-kpis>div{border:1px solid var(--line);border-radius:12px;padding:10px 12px}
.lfi-kpis b{display:block;font-size:20px;font-weight:800}
.lfi-kpis .is-warn b{color:var(--x-due,var(--amber))}
.lfi-link{display:inline-block;margin-top:10px;font-size:13px;font-weight:800;color:var(--lp-accent)}
.lfi-spend{display:grid;gap:6px;margin-bottom:10px;font-size:12.5px;font-weight:700;color:var(--muted)}
.lfi-spend-row{display:flex;gap:8px}
.lfi-spend-row input{flex:1;min-width:0;max-width:220px;height:38px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);padding:0 12px;font:inherit;font-size:14px;color:var(--text)}
@media (max-width:600px){
  .lfi-funnel{grid-template-columns:1fr;gap:6px}
  .lfi-funnel i{display:none}
  .lfi-tr{grid-template-columns:minmax(0,1.6fr) repeat(3,minmax(0,1fr));padding:9px 10px;font-size:12.5px}
  .lfi-kpis{grid-template-columns:1fr}
}
.lp-pin-body [data-act="first-reply"]{margin-top:10px}

/* ===== V29.59 · Lead form questions: templates, pick several, conditions, hot answers ===== */
.lcx-q-template{height:34px;border-radius:9px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:13px;font-weight:700;padding:0 8px;max-width:180px}
.lcx-question-toolbar{flex-wrap:wrap}
.lcx-q-hint{display:block;margin-top:4px;font-size:12px;color:var(--muted);line-height:1.4}
.lcx-q-cond{display:flex;align-items:center;gap:8px;margin-top:8px;font-size:12.5px;font-weight:700;color:var(--muted);flex-wrap:wrap}
.lcx-q-cond select{height:32px;border-radius:8px;border:1px solid var(--line);background:var(--panel);color:var(--text);font:inherit;font-size:12.5px;max-width:100%;min-width:0}
.lcx-q-optional{font-size:12px;font-weight:700;color:var(--muted)}
.lc-inquiry-row .lc-hot b{color:var(--x-ok,var(--green))}
.lcx-question-fields .lcx-q-hint,.lcx-question-fields .lcx-q-cond{grid-column:1/-1}

/* ===== V29.62 · Marketing → SOLD Frame (admins and developers) ===== */
.sold-frame-page{margin:-8px -4px 0}
.sold-frame-embed{display:block;width:100%;height:calc(100dvh - 100px);min-height:640px;border:0;border-radius:14px;background:var(--bg)}
@media (max-width:900px){.sold-frame-page{margin:0}.sold-frame-embed{height:calc(100dvh - 140px);border-radius:10px}}

/* V29.82 · computation status changed from the SMDC portal status */
.lpc-rfo-flag{display:block;margin-top:3px;font-size:10.5px;font-weight:800;color:#b45309;white-space:nowrap}
html[data-theme="dark"] .lpc-rfo-flag{color:#fbbf24}
.lcx-rfo-mixed{display:flex;flex-direction:column;gap:2px;margin-bottom:10px;padding:10px 12px;border-radius:10px;border:1px solid rgba(217,119,6,.35);background:rgba(245,158,11,.1);color:#92400e}
.lcx-rfo-mixed small{font-size:12px;opacity:.9}
html[data-theme="dark"] .lcx-rfo-mixed{color:#fcd34d}
.lp-rfo-portal-note{margin-top:8px;font-size:12.5px;font-weight:600;color:#15803d}
.lp-rfo-portal-note.mixed{padding:8px 10px;border-radius:10px;background:rgba(245,158,11,.1);border:1px solid rgba(217,119,6,.35);color:#92400e}
html[data-theme="dark"] .lp-rfo-portal-note{color:#4ade80}html[data-theme="dark"] .lp-rfo-portal-note.mixed{color:#fcd34d}
/* V29.82 · project page RFO / Non-RFO chip */
.plx-chips .plx-rfo[hidden]{display:none!important}
.plx-chips .plx-rfo.rfo{border-color:rgba(74,222,128,.55)!important}
.plx-chips .plx-rfo.nonrfo{border-color:rgba(96,165,250,.6)!important}
.plx-chips .plx-rfo.mixed{border-color:rgba(251,191,36,.65)!important}

/* V29.88.0 · Project Library grouped by city */
.plx-city-chips{margin-top:-4px}
.plx-city-group{display:grid;gap:12px;margin-top:6px;min-width:0}
.plx-city-head{display:flex;align-items:baseline;gap:10px;margin:8px 0 0;padding-bottom:8px;border-bottom:1px solid var(--line);font-size:18px;letter-spacing:-.01em}
.plx-city-head small{font-family:'Plus Jakarta Sans',ui-sans-serif,system-ui,sans-serif;font-size:12.5px;font-weight:600;letter-spacing:0;color:var(--muted)}

/* V29.89.0 · Project Brain · Fill with AI */
.pbs-ai{border:1px solid var(--lp-accent);border-radius:14px;background:var(--lp-accent-soft);padding:14px 16px;margin-bottom:16px;display:grid;gap:8px;color:var(--text)}
.pbs-ai.warn{border-color:var(--amber);background:var(--panel2)}
.pbs-ai.done{border-color:var(--green)}
.pbs-ai-text{margin:0;font-size:13px;line-height:1.5;color:var(--text);opacity:.86}
.pbs-ai-head{display:flex;justify-content:space-between;align-items:center;gap:8px}
.pbs-ai-src{margin:0;padding-left:4px;list-style:none;display:grid;gap:4px;font-size:13px}
.pbs-ai-src .skip{color:var(--amber)}
.pbs-ai-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.pbs-ai-actions small{color:var(--muted);font-size:12px}
.pbs-ai-text.pbs-ai-warn{color:var(--amber);opacity:1}
.pbs-ai-notes{border-left:3px solid var(--amber);padding-left:10px;font-size:13px}
.pbs-ai-notes ul{margin:4px 0 0;padding-left:18px}
.pbs-ai-where summary{cursor:pointer;font-weight:700;font-size:13px;color:var(--lp-accent-ink)}
.pbs-ai-where h5{margin:10px 0 4px;font-size:12px;text-transform:uppercase;letter-spacing:.06em;color:var(--muted)}
.pbs-ai-where ul{margin:0;padding-left:18px;font-size:12.5px;display:grid;gap:3px}
.pbs-ai-where em{color:var(--muted);font-style:normal}
.pbs-ai .sdi-bar{height:6px;border-radius:99px;background:var(--panel3);overflow:hidden}
.pbs-ai-indeterminate{display:block;height:100%;width:35%;background:var(--lp-accent);animation:pbs-ai-slide 1.4s ease-in-out infinite}
@keyframes pbs-ai-slide{0%{transform:translateX(-100%)}100%{transform:translateX(300%)}}
@media (prefers-reduced-motion:reduce){.pbs-ai-indeterminate{animation:none;width:100%;opacity:.5}}
.pbs-ai-btn{white-space:nowrap}

/* V29.91.0 · SMDC Memos pinned in the Project Library */
.plx-memos{border:1px solid var(--line);border-radius:14px;padding:12px 14px;background:color-mix(in srgb,var(--lp-accent) 5%,transparent);display:grid;gap:10px}
.plx-memos-head{display:flex;align-items:baseline;gap:8px;flex-wrap:wrap}
.plx-memos-head b{font-size:14px}
.plx-memos-head small{color:var(--muted);font-size:12.5px}
.plx-memos-list{display:grid;gap:8px}
.plx-memo{display:grid;grid-template-columns:1fr auto;grid-template-areas:"id go" "t go" "s go";align-items:center;text-align:left;gap:2px 12px;padding:10px 12px;border:1px solid var(--line);border-radius:12px;background:var(--panel);color:inherit;cursor:pointer;font:inherit}
.plx-memo:hover{border-color:var(--lp-accent)}
.plx-memo-id{grid-area:id;font-size:11px;font-weight:700;letter-spacing:.04em;color:var(--lp-accent)}
.plx-memo b{grid-area:t;font-size:14.5px}
.plx-memo small{grid-area:s;color:var(--muted);font-size:12.5px}
.plx-memo i{grid-area:go;font-style:normal;font-size:22px;color:var(--muted)}
.plx-memo-modal{width:min(980px,96vw)}
.plx-memo-tabs{display:flex;gap:6px;flex-wrap:wrap;padding:0 20px}
.plx-memo-tabs button{border:1px solid var(--line);background:transparent;color:inherit;border-radius:999px;padding:7px 12px;font:inherit;font-size:13px;font-weight:600;cursor:pointer}
.plx-memo-tabs button.on{background:var(--lp-accent);border-color:var(--lp-accent);color:#fff}
.plx-memo-body h4{margin:14px 0 6px}
.plx-memo-body ul{margin:0;padding-left:20px;display:grid;gap:6px;line-height:1.5}
.plx-memo-meta{color:var(--muted);font-size:12.5px;line-height:1.55;margin:12px 0 0}
.plx-memo-table-wrap{overflow-x:auto;-webkit-overflow-scrolling:touch;border:1px solid var(--line);border-radius:10px}
.plx-memo-table{border-collapse:collapse;width:100%;font-size:12.5px;font-variant-numeric:tabular-nums}
.plx-memo-table caption{text-align:left;font-weight:700;padding:10px 12px;caption-side:top}
.plx-memo-table th,.plx-memo-table td{padding:7px 10px;border-top:1px solid var(--line);text-align:right;white-space:nowrap}
.plx-memo-table thead th{font-size:11.5px;color:var(--muted);font-weight:700;white-space:normal;vertical-align:bottom}
.plx-memo-table th:first-child,.plx-memo-table.annex td{text-align:left}
.plx-memo-table.annex td small{display:block;color:var(--muted);font-size:11px}
.plx-memo-table.annex tr.differs td{background:color-mix(in srgb,#f5b400 14%,transparent)}
.plx-memo-cls{display:inline-block;padding:2px 8px;border-radius:999px;font-size:11.5px;font-weight:700}
.plx-memo-cls.rfo{background:color-mix(in srgb,#1f9d5c 16%,transparent);color:#1f7a49}
.plx-memo-cls.non{background:color-mix(in srgb,var(--lp-accent) 14%,transparent);color:var(--lp-accent)}
.plx-memo-search{margin-bottom:6px}
.plx-memo-empty{text-align:center!important;color:var(--muted)}
.plx-memo-table.annex td:first-child{white-space:normal;min-width:140px;max-width:220px}
.plx-memo-table.annex th,.plx-memo-table.annex td{padding:7px 8px}
