/* Leadwhale lead engine pages. Uses the host dashboard's colour variables so
   light and dark both work. */

.lw-pill { display: inline-flex; align-items: center; height: 22px; padding: 0 10px; border-radius: 999px;
  font-size: var(--fs-caption); font-weight: 600; white-space: nowrap; color: #fff; }
.lw-hot { background: var(--lw-red); }
.lw-warm { background: var(--lw-amber); color: var(--lw-on-amber); }
.lw-cold { background: var(--lw-blue); }
.lw-good { background: var(--lw-green); }
.lw-bad { background: var(--lw-red); }
.lw-idle { background: var(--surface-3); color: var(--text-2); }

.lw-chip { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 6px; background: var(--surface-2);
  color: var(--text-2); font-size: var(--fs-caption); white-space: nowrap; }
.lw-chip.lw-gap { background: var(--accent-soft); color: var(--accent); }
.lw-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: var(--sp-4); }

.lw-tiles { display: flex; flex-wrap: wrap; gap: var(--sp-3); margin-bottom: var(--sp-4); }
.lw-tile { background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-border); padding: 12px 16px;
  min-width: 128px; display: flex; flex-direction: column; gap: 2px; border-top: 3px solid var(--line-strong); }
.lw-tile b { font-size: 22px; font-weight: 650; color: var(--text); line-height: 1.15; font-variant-numeric: tabular-nums; }
.lw-tile span { font-size: var(--fs-caption); color: var(--text-3); }
.lw-tile.hot { border-top-color: var(--lw-red); }
.lw-tile.warm { border-top-color: var(--lw-amber); }
.lw-tile.cold { border-top-color: var(--lw-blue); }
.lw-tile.sig { border-top-color: var(--lw-purple); }
.lw-tile.ok { border-top-color: var(--lw-green); }

.lw-runbar { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap;
  background: var(--surface); box-shadow: var(--shadow-border); border-radius: 12px; padding: 12px 16px; margin-bottom: var(--sp-4); }
.lw-runbar > div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lw-runbar b { font-size: var(--fs-body); }
.lw-runbar span { font-size: var(--fs-caption); color: var(--text-3); }
.lw-runbar.on { justify-content: flex-start; background: var(--accent-soft); box-shadow: 0 0 0 1px var(--accent-line); }
.lw-spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--accent-line); border-top-color: var(--accent);
  animation: lw-spin 0.9s linear infinite; flex: none; }
@keyframes lw-spin { to { rotate: 360deg; } }
@media (prefers-reduced-motion: reduce) { .lw-spin { animation: none; } }

.lw-select { width: auto; min-width: 150px; height: 32px; }
.lw-table td { vertical-align: top; }
.lw-table td:first-child { min-width: 150px; }
.lw-row { cursor: pointer; }
.lw-row:hover td { background: var(--surface-2); }
.lw-score { display: flex; flex-direction: column; }
.lw-score b { font-size: var(--fs-lead); font-variant-numeric: tabular-nums; }
.lw-score span { font-size: var(--fs-caption); color: var(--text-3); white-space: nowrap; }
.lw-why { min-width: 190px; max-width: 280px; white-space: normal; }
.lw-line { min-width: 240px; max-width: 380px; white-space: normal; line-height: 1.45; }
.lw-line .lw-pill { margin-left: 4px; }
.lw-clip { max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-table .cell-row { flex-wrap: nowrap; justify-content: flex-end; }
.lw-table a { color: var(--accent); }

.lw-back { margin-bottom: var(--sp-3); }
.lw-back .icon { rotate: 180deg; }
.lw-profile-head { display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.lw-profile-head h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; margin-bottom: 4px; }
.lw-profile-head a { color: var(--accent); margin-right: 6px; }
.lw-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); align-items: start; }
@media (max-width: 900px) { .lw-grid { grid-template-columns: 1fr; } }
.lw-grid .card { margin: 0; }
.lw-note { margin-bottom: var(--sp-4); color: var(--text-2); }
.lw-scorecard { display: flex; gap: var(--sp-5); align-items: flex-start; }
.lw-bigscore { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 84px; height: 84px;
  border-radius: 16px; background: var(--accent-soft); color: var(--accent); flex: none; }
.lw-bigscore b { font-size: 30px; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.lw-bigscore span { font-size: var(--fs-caption); }
.lw-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); flex: 1; min-width: 0; }
@media (max-width: 620px) { .lw-scorecard { flex-direction: column; } .lw-cols { grid-template-columns: 1fr; width: 100%; } }
.lw-cols .subhead { margin-top: 0; }
.lw-point { display: flex; justify-content: space-between; gap: var(--sp-3); font-size: var(--fs-ui); padding: 4px 0; border-bottom: 1px solid var(--line); }
.lw-point:last-child { border-bottom: none; }
.lw-point b { color: var(--lw-green); font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-firstline { font-size: var(--fs-lead); line-height: 1.5; padding: 12px 14px; border-radius: 10px; background: var(--surface-2);
  border-left: 3px solid var(--accent); margin-bottom: var(--sp-2); text-wrap: pretty; }
.lw-kv { display: grid; grid-template-columns: 130px 1fr; gap: var(--sp-3); padding: 6px 0; border-bottom: 1px solid var(--line); font-size: var(--fs-ui); align-items: start; }
.lw-kv:last-child { border-bottom: none; }
.lw-kv > span { color: var(--text-3); }
.lw-kv > div { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.lw-kv a { color: var(--accent); }
.lw-signal { display: grid; grid-template-columns: 10px 1fr auto; gap: 12px; align-items: start; padding: 8px 0; border-bottom: 1px solid var(--line); }
.lw-signal:last-child { border-bottom: none; }
.lw-signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lw-red); margin-top: 6px; }
.lw-signal a { color: var(--accent); font-size: var(--fs-caption); }
.lw-empty-inline { display: flex; gap: 12px; align-items: flex-start; color: var(--text-2); }
.lw-empty-inline .icon { width: 20px; height: 20px; color: var(--text-3); flex: none; margin-top: 2px; }
.lw-empty-inline div { display: flex; flex-direction: column; gap: 2px; }
.lw-empty-inline span { font-size: var(--fs-caption); color: var(--text-3); }
.lw-details summary { cursor: pointer; font-weight: 600; font-size: var(--fs-body); }
.lw-details .hint { font-weight: 400; color: var(--text-3); }
.lw-evlist { display: flex; flex-direction: column; gap: 10px; margin-top: var(--sp-3); }
.lw-ev { display: grid; grid-template-columns: 150px 1fr; gap: 12px; align-items: start; }
.lw-ev > div { min-width: 0; }
.lw-ev .cell-sub { overflow-wrap: anywhere; white-space: normal; }

.lw-sources { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: var(--sp-3); margin-bottom: var(--sp-5); }
.lw-source { margin: 0; display: flex; flex-direction: column; gap: 6px; border-top: 3px solid var(--lw-green); }
.lw-source.off { border-top-color: var(--line-strong); }
.lw-source-head { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-2); }
.lw-source p { font-size: var(--fs-ui); color: var(--text-2); line-height: 1.45; text-wrap: pretty; }

/* Sidebar: the lead engine first, the old outreach tools tucked away. */
.lw-legacy-toggle { width: 100%; display: flex; align-items: center; justify-content: space-between; }
.lw-legacy-toggle .label { color: var(--text-3); }
.lw-legacy-toggle[aria-expanded="true"] .icon { rotate: 90deg; }

/* The "is stopped" line belongs to the old outreach loop, which is not in use. */
.sidebar-foot .sellbird-status { display: none; }

.lw-why a { color: var(--accent); font-size: var(--fs-caption); font-weight: 600; }
.lw-contact { min-width: 190px; max-width: 280px; white-space: normal; }
.lw-email { font-size: var(--fs-caption); color: var(--text); user-select: all; overflow-wrap: anywhere; }

/* ───────── Leadwhale look (2026-11-20) ─────────
   Own palette and layout so the app no longer reads as the tool it was forked
   from: deep indigo sidebar, violet brand, soft tinted status pills. */

:root {
  --bg: #F6F5FB; --surface: #FFFFFF; --surface-2: #F1EFF9; --surface-3: #E6E3F3;
  --line: #E6E3F1; --line-strong: #D3CFE6;
  --text: #15123B; --text-2: #4F4C73; --text-3: #8683A6;
  --accent: #5B4BF5; --accent-hover: #4A3BE0; --accent-soft: #EEEBFF; --accent-line: #D6D1FF;
  --lw-side: #17134A; --lw-side-2: #221D63; --lw-side-line: #2E2880; --lw-side-ink: #FFFFFF; --lw-side-ink-2: #B9B5E6;
  --r-lg: 18px; --r-md: 12px; --r-sm: 9px;
  --shadow-border: 0 0 0 1px rgb(21 18 59 / 0.06), 0 1px 2px rgb(21 18 59 / 0.04), 0 8px 24px -12px rgb(21 18 59 / 0.12);
  --content-w: 1320px; --sidebar-w: 228px;
}
:root[data-theme='dark'] {
  --bg: #0D0B20; --surface: #16133A; --surface-2: #1E1A49; --surface-3: #28235C;
  --line: #2A2560; --line-strong: #3A3480;
  --text: #F3F2FF; --text-2: #BDBAE0; --text-3: #8985B5;
  --accent: #8D80FF; --accent-hover: #A398FF; --accent-soft: #221D55; --accent-line: #3A3290;
  --lw-side: #100E2B; --lw-side-2: #1C1848; --lw-side-line: #2A2560; --lw-side-ink: #F3F2FF; --lw-side-ink-2: #A9A5D6;
  --shadow-border: 0 0 0 1px rgb(255 255 255 / 0.06), 0 12px 32px -16px rgb(0 0 0 / 0.7);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bg: #0D0B20; --surface: #16133A; --surface-2: #1E1A49; --surface-3: #28235C;
    --line: #2A2560; --line-strong: #3A3480;
    --text: #F3F2FF; --text-2: #BDBAE0; --text-3: #8985B5;
    --accent: #8D80FF; --accent-hover: #A398FF; --accent-soft: #221D55; --accent-line: #3A3290;
    --lw-side: #100E2B; --lw-side-2: #1C1848; --lw-side-line: #2A2560; --lw-side-ink: #F3F2FF; --lw-side-ink-2: #A9A5D6;
    --shadow-border: 0 0 0 1px rgb(255 255 255 / 0.06), 0 12px 32px -16px rgb(0 0 0 / 0.7);
  }
}

/* Sidebar: a deep panel in both themes. */
.sidebar { background: var(--lw-side); border-right: none; padding: 20px 14px 14px; gap: 28px; }
.sidebar .brand { padding: 2px 6px; }
.sidebar .brand-lockup { color: var(--lw-side-ink); font-size: 21px; }
.sidebar .brand-lockup .lw-whale { color: #A99CFF; }
.sidebar .brand .tagline { color: var(--lw-side-ink-2); padding-left: 47px; }
.sidebar nav { gap: 4px; }
.sidebar .nav-group { gap: 4px; }
.sidebar nav button { height: 40px; padding: 0 12px; border-radius: 11px; color: var(--lw-side-ink-2); font-size: var(--fs-body); }
.sidebar nav button .icon, .sidebar nav button:hover .icon { color: currentColor; opacity: 0.85; }
@media (hover: hover) { .sidebar nav button:hover { background: var(--lw-side-2); color: var(--lw-side-ink); } }
.sidebar nav button.active { background: var(--accent); color: #fff; box-shadow: 0 6px 16px -6px rgb(91 75 245 / 0.7); }
.sidebar nav button.active .icon { color: #fff; opacity: 1; }
.sidebar .nav-count { background: rgb(255 255 255 / 0.16); color: #fff; }
.sidebar-foot { border-top: 1px solid var(--lw-side-line); padding: 14px 4px 0; gap: 12px; }
.lw-side-card { display: flex; gap: 10px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--lw-side-2); }
.lw-side-card:empty { display: none; }
.lw-side-card div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.lw-side-card b { color: var(--lw-side-ink); font-size: var(--fs-ui); font-weight: 600; }
.lw-side-card span { color: var(--lw-side-ink-2); font-size: var(--fs-caption); }
.lw-side-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lw-green); margin-top: 5px; flex: none; box-shadow: 0 0 0 3px rgb(22 179 107 / 0.2); }
.lw-side-dot.on { background: var(--lw-amber); box-shadow: 0 0 0 3px rgb(245 165 36 / 0.25); animation: lw-pulse 1.4s ease-in-out infinite; }
@keyframes lw-pulse { 50% { opacity: 0.45; } }
@media (prefers-reduced-motion: reduce) { .lw-side-dot.on { animation: none; } }
.sidebar .theme-switch { background: var(--lw-side-2); box-shadow: none; }
.sidebar .theme-switch button { color: var(--lw-side-ink-2); }
.sidebar .theme-switch button[aria-pressed="true"] { background: rgb(255 255 255 / 0.14); color: #fff; }
.sidebar .refresh-btn { color: var(--lw-side-ink-2); background: var(--lw-side-2); box-shadow: none; border: none; }
@media (hover: hover) { .sidebar .refresh-btn:hover, .sidebar .theme-switch button:hover { color: #fff; } }

/* Page head: title left, run control right. */
main.content { padding: 36px 40px 96px; }
.section-head { align-items: center; margin-bottom: 22px; gap: 20px; }
.section-head h2 { font-size: 1.75rem; font-weight: 700; letter-spacing: -0.03em; }
.section-head p { font-size: var(--fs-body); color: var(--text-2); max-width: 60ch; }
.section-head .lw-runbar-slot { flex: none; }
.lw-runbar { margin: 0; padding: 8px 8px 8px 16px; border-radius: 14px; gap: 16px; flex-wrap: nowrap; }
.lw-runbar b { font-size: var(--fs-ui); white-space: nowrap; }
.lw-runbar span { white-space: nowrap; }
.lw-runbar .btn { height: 34px; border-radius: 10px; padding: 0 14px; }
.lw-runbar.on { padding: 10px 16px; }

/* Numbers: one strip, not a row of boxes. */
.lw-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0; background: var(--surface);
  border-radius: var(--r-lg); box-shadow: var(--shadow-border); padding: 6px; margin-bottom: 20px; }
.lw-tile { background: none; box-shadow: none; border-top: none; border-radius: 12px; padding: 14px 16px; min-width: 0; gap: 4px; position: relative; }
.lw-tile b { font-size: 26px; font-weight: 700; letter-spacing: -0.03em; }
.lw-tile span { display: inline-flex; align-items: center; gap: 6px; }
.lw-tile span::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-strong); flex: none; }
.lw-tile.hot span::before { background: var(--lw-red); }
.lw-tile.warm span::before { background: var(--lw-amber); }
.lw-tile.cold span::before { background: var(--lw-blue); }
.lw-tile.sig span::before { background: var(--lw-purple); }
.lw-tile.ok span::before { background: var(--lw-green); }
.lw-tile.hot { background: color-mix(in srgb, var(--lw-red) 7%, transparent); }

/* Filters and table. */
.toolbar { gap: 10px; margin-bottom: 14px; }
.toolbar .form-input, .lw-select { height: 38px; border-radius: 10px; }
.segmented { border-radius: 12px; padding: 4px; gap: 2px; }
.segmented button { border-radius: 9px; height: 30px; }
.segmented button.on { background: var(--accent); color: #fff; box-shadow: none; }
.segmented button.on .n { color: rgb(255 255 255 / 0.8); }
.table-card { border-radius: var(--r-lg); overflow: hidden; }
.lw-table th { font-size: 11px; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-3); font-weight: 600; padding-top: 14px; padding-bottom: 12px; background: var(--surface); }
.lw-table td { padding-top: 16px; padding-bottom: 16px; }
.lw-row:hover td { background: color-mix(in srgb, var(--accent) 5%, var(--surface)); }
.lw-brandcell { display: flex; align-items: center; gap: 12px; }
.lw-avatar { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; flex: none; font-weight: 700; font-size: 15px;
  background: hsl(var(--h) 70% 92%); color: hsl(var(--h) 55% 32%); }
:root[data-theme='dark'] .lw-avatar { background: hsl(var(--h) 40% 24%); color: hsl(var(--h) 80% 84%); }
@media (prefers-color-scheme: dark) { :root:not([data-theme='light']) .lw-avatar { background: hsl(var(--h) 40% 24%); color: hsl(var(--h) 80% 84%); } }
.lw-score b { font-size: 18px; font-weight: 700; }
.lw-why .cell-stack { gap: 3px; }
.lw-why a { display: inline-flex; align-items: center; gap: 4px; margin-top: 4px; padding: 3px 10px; border-radius: 999px; background: var(--accent-soft); text-decoration: none; width: fit-content; }
@media (hover: hover) { .lw-why a:hover { background: var(--accent); color: #fff; } }
button.lw-email { display: inline-flex; align-items: center; gap: 6px; border: none; background: none; padding: 0; cursor: pointer; font: inherit; font-size: var(--fs-caption); color: var(--accent); text-align: left; }
button.lw-email .icon { width: 12px; height: 12px; opacity: 0.6; flex: none; }
@media (hover: hover) { button.lw-email:hover { text-decoration: underline; } }

/* Status pills: tinted, not solid. */
.lw-pill { height: 24px; font-weight: 600; }
.lw-hot, .lw-bad { background: color-mix(in srgb, var(--lw-red) 14%, var(--surface)); color: color-mix(in srgb, var(--lw-red) 72%, var(--text)); }
.lw-warm { background: color-mix(in srgb, var(--lw-amber) 20%, var(--surface)); color: color-mix(in srgb, var(--lw-amber) 55%, var(--text)); }
.lw-cold { background: color-mix(in srgb, var(--lw-blue) 14%, var(--surface)); color: color-mix(in srgb, var(--lw-blue) 72%, var(--text)); }
.lw-good { background: color-mix(in srgb, var(--lw-green) 16%, var(--surface)); color: color-mix(in srgb, var(--lw-green) 62%, var(--text)); }
.lw-chip { border-radius: 999px; padding: 3px 10px; }

.card { border-radius: var(--r-lg); }
.lw-source { border-top: none; position: relative; padding-top: 18px; }
.lw-source::before { content: ""; position: absolute; left: 18px; top: 0; width: 36px; height: 3px; border-radius: 0 0 3px 3px; background: var(--lw-green); }
.lw-source.off::before { background: var(--line-strong); }

@media (max-width: 900px) {
  main.content { padding: 20px 16px 80px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .sidebar { padding: 10px 12px; gap: 10px; }
  .sidebar nav button { height: 34px; }
  .lw-side-card { display: none; }
}

/* Your profile */
.lw-profile-card { margin-bottom: var(--sp-4); }
.lw-profile-fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 0 var(--sp-4); }
.lw-profile-fields .form-group.wide { grid-column: 1 / -1; }
.lw-profile-fields textarea.form-input { width: 100%; resize: vertical; line-height: 1.5; }
.lw-profile-fields input.form-input { width: 100%; }
.lw-profile-save { display: flex; align-items: center; gap: var(--sp-3); margin: var(--sp-4) 0 var(--sp-6); }
.lw-note.lw-ready { border-color: var(--ok, #2e9e6b); }

/* Positions page and score out of 100 */
.lw-score b i { font-style: normal; font-weight: 500; font-size: 0.6em; opacity: 0.55; margin-left: 1px; }
.lw-raw { margin-top: var(--sp-6); }
.lw-raw summary { cursor: pointer; font-weight: 600; padding: var(--sp-3) 0; }
.lw-raw summary .hint { font-weight: 400; opacity: 0.65; margin-left: 8px; }
#lw-positions .cell-row { gap: 6px; flex-wrap: wrap; }

/* Lead model (2026-11-21): share label, credits counter, Claim / Report / Dud. */
.lw-tile.credit { border-top-color: var(--accent); margin-left: auto; }
.lw-tile b i { font-style: normal; font-size: 13px; font-weight: 500; color: var(--text-3); }
.lw-leadcell { display: flex; flex-direction: column; gap: 6px; min-width: 170px; }
.lw-leadcell .cell-row { flex-wrap: wrap; }
.lw-leadcard { margin-bottom: var(--sp-4); }
.lw-leadcard .lw-kv > div { align-items: center; }

/* Export buttons, at the right end of the toolbar on Postings and Brands */
.lw-export { display: flex; gap: 8px; align-items: center; margin-left: auto; flex-wrap: wrap; }
#lw-export-slot { margin-left: auto; }
.lw-export .btn .n { opacity: .75; margin-left: 4px; font-variant-numeric: tabular-nums; }
.lw-export .btn[disabled] { opacity: .45; cursor: default; }


/* ── Postings as cards (2026-11-22) ── */
.lw-cards { display: flex; flex-direction: column; gap: 10px; }
.lw-pcard { display: grid; grid-template-columns: minmax(180px, 1.1fr) minmax(220px, 1.6fr) minmax(120px, .8fr) minmax(190px, 1.3fr) 56px auto;
  align-items: center; gap: 20px; padding: 16px 20px; background: var(--surface); border-radius: 14px; box-shadow: var(--shadow-border);
  cursor: pointer; transition: box-shadow .15s ease, transform .15s ease; }
.lw-pcard:hover, .lw-pcard:focus-visible { box-shadow: var(--shadow-border), 0 6px 20px rgba(0, 0, 0, .07); transform: translateY(-1px); outline: none; }
.lw-pcard > div { min-width: 0; }
.lw-pc-brand { display: flex; align-items: center; gap: 12px; }
.lw-pc-name { font-weight: 650; font-size: var(--fs-lead); color: var(--text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lw-pc-role { display: flex; flex-direction: column; gap: 4px; }
.lw-pc-title { font-weight: 600; color: var(--text); line-height: 1.3; }
.lw-pc-tool, .lw-pc-contact { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.lw-pc-tool { flex-flow: row wrap; }
.lw-pc-tool .lw-pc-label { flex-basis: 100%; }
.lw-pc-label { font-size: 11px; letter-spacing: .05em; text-transform: uppercase; color: var(--text-3); font-weight: 600; }
.lw-pc-act { display: flex; gap: 6px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }
.lw-scorebadge { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); }
.lw-scorebadge b { font-size: 17px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); }
.lw-scorebadge.hi { background: color-mix(in srgb, var(--lw-green) 16%, transparent); }
.lw-scorebadge.mid { background: color-mix(in srgb, var(--lw-amber) 18%, transparent); }
.lw-kw { margin-top: 6px; align-items: center; }
.lw-connect { display: flex; gap: 8px; margin-top: 4px; }
.lw-connect .form-input { flex: 1; min-width: 0; }
@media (max-width: 1100px) { .lw-pcard { grid-template-columns: 1fr 1fr; } .lw-pc-act { justify-content: flex-start; } }
@media (max-width: 620px) { .lw-pcard { grid-template-columns: 1fr; gap: 12px; } }

/* Tailored drafts */
.lw-draftbtn svg { width: 14px; height: 14px; }
.lw-draftcard { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.lw-draftcard .subhead { margin: 0 0 2px; }
dialog.lw-draftmodal { width: min(680px, calc(100vw - 32px)); }
.lw-draftmodal .modal-body { display: flex; flex-direction: column; gap: var(--sp-2); }
.lw-draftmodal .modal-body .segmented { align-self: flex-start; margin-bottom: var(--sp-2); }
.lw-draftmodal .lw-pc-label { margin-top: var(--sp-2); }
.lw-draft-text { min-height: 300px; resize: vertical; line-height: 1.55; font-family: inherit; font-size: var(--fs-body); padding: 12px 14px; }
.lw-draft-warn { font-size: var(--fs-caption); color: var(--warn, #b45309); font-weight: 600; }
.lw-draft-facts { margin: 0; padding-left: 18px; font-size: var(--fs-caption); color: var(--text-2); line-height: 1.6; }
.lw-draftmodal .modal-foot { align-items: center; flex-wrap: wrap; }
.lw-draft-note { margin-right: auto; }

/* Product build: Other matches, postings without a brand, Connect flow, setup card */
.lw-held { display: inline-flex; align-self: flex-start; margin-top: 4px; padding: 2px 8px; border-radius: 6px; font-size: var(--fs-small, 12px);
  font-weight: 600; color: var(--text-2); background: var(--surface-2, rgba(127,127,127,.12)); }
.lw-pcard.lw-loose { cursor: default; }
.lw-avatar { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; font-weight: 700;
  color: var(--text-2); background: var(--surface-2, rgba(127,127,127,.12)); flex: none; }
.lw-connect-steps { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.lw-connect { flex-wrap: wrap; }
.lw-checks { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 4px 0; }
.lw-check { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-ui); text-transform: capitalize; cursor: pointer; }

/* Get started */
.lw-steps { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: var(--sp-3); }
.lw-step { margin: 0; display: flex; align-items: flex-start; gap: var(--sp-3); }
.lw-step-n { width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center; font-weight: 700;
  background: var(--surface-2, rgba(127,127,127,.14)); color: var(--text-2); }
.lw-step.done .lw-step-n { background: var(--lw-green); color: #fff; }
.lw-step-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.lw-start-box { margin-top: 8px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.lw-start-box p { font-size: var(--fs-ui); color: var(--text-2); line-height: 1.5; margin: 0; text-wrap: pretty; }
.lw-cmd { display: flex; align-items: center; gap: 8px; max-width: 100%; }
.lw-cmd code { padding: 6px 10px; border-radius: 8px; background: var(--surface-2, rgba(127,127,127,.14)); font-size: 13px; overflow-x: auto; white-space: nowrap; }

/* Polish pass 2026-11-23: stats are the filter, one Export menu, account block */
.lw-tile-btn { border: 0; font: inherit; text-align: left; cursor: pointer; display: flex; flex-direction: column; align-items: flex-start;
  transition: background .15s ease, box-shadow .15s ease; }
.lw-tile.hot { background: none; }
@media (hover: hover) { .lw-tile-btn:hover { background: color-mix(in srgb, var(--accent) 6%, transparent); } }
.lw-tile-btn.on { background: color-mix(in srgb, var(--accent) 10%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, var(--accent) 55%, transparent); }
.lw-tile-btn.on span { color: var(--text); font-weight: 600; }
.lw-listhead { justify-content: space-between; align-items: center; margin-top: var(--sp-4); }
.lw-listhead > div:first-child { display: flex; align-items: baseline; gap: 10px; }
.lw-listhead b { font-size: 17px; font-weight: 650; letter-spacing: -0.01em; }
.lw-empty-actions { display: flex; gap: 8px; justify-content: center; padding: 0 0 28px; margin-top: -12px; }

.lw-menu { position: relative; }
.lw-menu > summary { list-style: none; cursor: pointer; user-select: none; }
.lw-menu > summary::-webkit-details-marker { display: none; }
.lw-export > summary { display: inline-flex; align-items: center; gap: 6px; }
.lw-export > summary .icon { width: 14px; height: 14px; }
.lw-export > summary .n { opacity: .7; font-weight: 500; }
.lw-menu-list { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 250px; padding: 6px; border-radius: 14px;
  background: var(--surface); box-shadow: 0 12px 32px rgb(15 12 60 / 0.18), var(--shadow-border); display: flex; flex-direction: column; gap: 1px; }
.lw-menu-list.up { top: auto; bottom: calc(100% + 8px); left: 0; right: 0; min-width: 0; }
.lw-menu-head { padding: 8px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.lw-menu-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; padding: 8px 10px; border: 0; border-radius: 9px;
  background: none; font: inherit; font-size: var(--fs-ui); color: var(--text); text-align: left; cursor: pointer; }
@media (hover: hover) { .lw-menu-item:hover:not(:disabled) { background: color-mix(in srgb, var(--accent) 8%, transparent); } }
.lw-menu-item:disabled { color: var(--text-3); cursor: default; }
.lw-menu-item .n { font-size: var(--fs-caption); color: var(--text-3); font-variant-numeric: tabular-nums; }
.lw-menu-item .n.warn { color: var(--lw-amber); font-weight: 600; }
.lw-menu-push { display: flex; gap: 6px; padding: 4px 6px 6px; flex-wrap: wrap; }

.lw-account:empty { display: none; }
.lw-account-btn { display: flex; align-items: center; gap: 10px; padding: 8px; border-radius: 12px; color: var(--lw-side-ink); }
@media (hover: hover) { .lw-account-btn:hover { background: var(--lw-side-2); } }
.lw-account[open] .lw-account-btn { background: var(--lw-side-2); }
.lw-account-av { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; font-size: 13px; font-weight: 700;
  color: #fff; background: var(--accent); }
.lw-account-who { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.lw-account-who b { font-size: var(--fs-ui); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-account-who span { font-size: var(--fs-caption); color: var(--lw-side-ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-account-btn .icon { width: 14px; height: 14px; color: var(--lw-side-ink-2); flex: none; }
.lw-account-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lw-amber); flex: none; }
.lw-menu > summary::before { content: none; display: none; }
.lw-account-btn .icon { transition: rotate .15s ease; rotate: -90deg; }
.lw-account[open] .lw-account-btn .icon { rotate: 90deg; }

/* Brands list and brand profile polish */
.lw-filtermenu > summary { display: inline-flex; align-items: center; gap: 6px; height: 38px; border-radius: 10px; }
.lw-filtermenu > summary .n { display: inline-grid; place-items: center; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; }
.lw-filterlist { left: 0; right: auto; min-width: 240px; padding: 8px; gap: 2px; }
.lw-filterlist .lw-select { width: 100%; }
.lw-filterlist .lw-menu-item { margin-top: 6px; color: var(--text-2); }
#lw-hot-count { margin-left: 4px; }
.lw-brandhead { display: flex; flex-direction: column; gap: var(--sp-4); margin-bottom: var(--sp-4); }
.lw-brandhead-top { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; }
.lw-brandhead h2 { font-size: var(--fs-h2); letter-spacing: -0.02em; margin: 0 0 4px; }
.lw-brandhead a { color: var(--accent); }
.lw-headstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); border-top: 1px solid var(--line); padding-top: var(--sp-3); }
.lw-headstat { display: flex; flex-direction: column; gap: 2px; padding: 0 var(--sp-3); border-left: 1px solid var(--line); min-width: 0; }
.lw-headstat:first-child { border-left: 0; padding-left: 0; }
.lw-headstat b { font-size: 22px; font-weight: 700; letter-spacing: -0.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lw-headstat span { font-size: var(--fs-caption); color: var(--text-3); }
.lw-inset { margin-top: var(--sp-3); border-top: 1px solid var(--line); padding-top: var(--sp-2); }
.lw-scorecard { margin-bottom: var(--sp-4); }
.lw-headstat.text b { font-size: 16px; font-weight: 650; letter-spacing: 0; line-height: 28px; }

/* Brand profile v3: main column for the work, side column for score and status */
.lw-bphead { display: flex; justify-content: space-between; align-items: center; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.lw-bphead h2 { font-size: 26px; letter-spacing: -0.02em; margin: 0 0 2px; display: flex; align-items: center; gap: 10px; }
.lw-bphead a { color: var(--accent); }
.lw-bphead .lw-brandcell > :first-child { width: 48px; height: 48px; border-radius: 14px; font-size: 18px; }
.lw-bp { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: var(--sp-4); align-items: start; }
.lw-bp-main, .lw-bp-side { display: flex; flex-direction: column; gap: var(--sp-4); min-width: 0; }
.lw-bp-side { position: sticky; top: 16px; }
.lw-bp .card { margin: 0; }
@media (max-width: 1050px) { .lw-bp { grid-template-columns: 1fr; } .lw-bp-side { position: static; } }
.lw-reasons { margin: 0 0 8px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.lw-reasons li { display: flex; gap: 10px; align-items: baseline; font-size: var(--fs-body); }
.lw-reasons li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lw-amber); flex: none; translate: 0 -1px; }
.lw-reach-sec { display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: var(--sp-3); padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.lw-reach .subhead + .lw-reach-sec { border-top: 0; padding-top: 4px; }
.lw-reach-sec:last-child { padding-bottom: 0; }
.lw-reach-sec > .lw-pc-label { padding-top: 4px; }
.lw-reach-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
@media (max-width: 640px) { .lw-reach-sec { grid-template-columns: 1fr; gap: 6px; } }
.lw-person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lw-person .cell-stack { flex: 1; min-width: 0; }
.lw-person-mail { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.lw-avatar.sm { width: 32px; height: 32px; border-radius: 50%; font-size: 12px; }
.lw-between { justify-content: space-between; }
.lw-about { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-5); }
@media (max-width: 760px) { .lw-about { grid-template-columns: 1fr; } }
.lw-about .lw-pc-label { margin-bottom: 4px; display: block; }
.lw-gaphead { margin-top: var(--sp-4); }
.lw-scoreside { display: flex; flex-direction: column; gap: 14px; }
.lw-scoretop { display: flex; align-items: center; gap: 12px; }
.lw-scoretop b { font-size: 44px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.lw-scoretop span { font-size: var(--fs-caption); color: var(--text-3); line-height: 1.35; }
.lw-bar { display: flex; flex-direction: column; gap: 6px; }
.lw-bar-top { display: flex; justify-content: space-between; gap: 8px; font-size: var(--fs-caption); color: var(--text-3); }
.lw-bar-top b { color: var(--text); font-size: var(--fs-ui); font-weight: 600; margin-right: 4px; }
.lw-bar-n { font-variant-numeric: tabular-nums; white-space: nowrap; }
.lw-bar-track { height: 6px; border-radius: 3px; background: var(--surface-2, rgba(127,127,127,.15)); overflow: hidden; }
.lw-bar-track i { display: block; height: 100%; border-radius: 3px; background: var(--accent); }
.lw-breakdown summary { font-size: var(--fs-ui); color: var(--accent); font-weight: 600; }
.lw-breakdown .lw-pc-label { display: block; margin: 12px 0 2px; }
.lw-bp-side .lw-kv { grid-template-columns: 88px 1fr; }

/* Home, Signed deal, Postings tile colours and search */
.lw-tile-btn.hot b { color: #E8590C; }
.lw-tile-btn.hot { background: color-mix(in srgb, #FF8A3D 9%, transparent); }
.lw-tile-btn.hot.on { background: color-mix(in srgb, #FF8A3D 14%, transparent); box-shadow: inset 0 0 0 1.5px color-mix(in srgb, #FF8A3D 70%, transparent); }
.lw-tile.hot span::before { background: #FF8A3D; }
.lw-tile-btn.cold b { color: var(--accent); }
.lw-psearch { min-width: 220px; }
.lw-psearch .form-input { height: 34px; }
.btn.lw-next { height: 40px; padding: 0 16px; border-radius: 12px; font-weight: 600; display: inline-flex; align-items: center; gap: 8px; }
.btn.lw-next .icon { width: 15px; height: 15px; }
.lw-empty-actions { gap: 10px; padding-bottom: 36px; margin-top: -8px; }

.lw-confetti { position: fixed; inset: 0; pointer-events: none; z-index: 9999; overflow: hidden; }
.lw-confetti i { position: absolute; border-radius: 2px; will-change: transform, opacity; }
.lw-dealmodal { width: min(440px, calc(100vw - 32px)); }
.lw-dealbody { display: flex; flex-direction: column; gap: 8px; }
.lw-dealbody .form-label { margin-top: 6px; }
.lw-money { position: relative; }
.lw-money span { position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-size: 20px; font-weight: 600; color: var(--text-3); }
.lw-money .form-input { height: 52px; padding-left: 32px; font-size: 22px; font-weight: 650; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; }
.lw-periods { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.lw-period { height: 42px; border-radius: 12px; border: 0; background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; }
.lw-period.on { background: var(--accent); color: #fff; }

.lw-homehead { display: flex; justify-content: space-between; align-items: flex-end; gap: var(--sp-4); flex-wrap: wrap; margin-bottom: var(--sp-5); }
.lw-homehead h2 { font-size: 30px; letter-spacing: -0.03em; margin: 0 0 4px; }
.lw-homehead p { color: var(--text-3); font-size: var(--fs-ui); margin: 0; }
.lw-homestats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); }
@media (max-width: 1000px) { .lw-homestats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lw-homestat { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.lw-homestat b { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.lw-homestat.accent { background: var(--accent); }
.lw-homestat.accent b, .lw-homestat.accent .lw-pc-label, .lw-homestat.accent .cell-sub { color: #fff; }
.lw-homestat.accent .lw-pc-label, .lw-homestat.accent .cell-sub { opacity: .82; }
.lw-homegrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-4); margin-bottom: var(--sp-4); align-items: start; }
@media (max-width: 900px) { .lw-homegrid { grid-template-columns: 1fr; } }
.lw-homegrid .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.lw-todos { display: flex; flex-direction: column; gap: 8px; }
.lw-todo { display: flex; align-items: center; gap: 12px; width: 100%; padding: 12px 14px; border: 0; border-radius: 12px; background: var(--surface-2);
  font: inherit; color: var(--text); text-align: left; cursor: pointer; transition: background .15s ease; }
.lw-todo b { font-size: 20px; font-weight: 700; min-width: 34px; font-variant-numeric: tabular-nums; }
.lw-todo span { flex: 1; font-size: var(--fs-body); }
.lw-todo .icon { width: 15px; height: 15px; color: var(--text-3); }
.lw-todo.primary { background: color-mix(in srgb, #FF8A3D 14%, transparent); }
.lw-todo.primary b { color: #E8590C; }
.lw-todo:disabled { cursor: default; opacity: .55; }
@media (hover: hover) { .lw-todo:hover:not(:disabled) { background: var(--surface-3); } }
.lw-funnel-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 36px; gap: 12px; align-items: center; font-size: var(--fs-ui); }
.lw-funnel-row span { color: var(--text-2); }
.lw-funnel-row b { text-align: right; font-variant-numeric: tabular-nums; }
.lw-funnel-track { height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; }
.lw-funnel-track i { display: block; height: 100%; border-radius: 5px; background: var(--accent); }
.lw-funnel-track i.good { background: var(--lw-green); }
.lw-signedrow { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.lw-signedrow:last-child { border-bottom: 0; }
.lw-signedrow .cell-stack { flex: 1; min-width: 0; }
.lw-dealamt { font-size: var(--fs-body); font-variant-numeric: tabular-nums; }

.lw-x { width: 28px; height: 28px; border: 0; border-radius: 8px; background: none; color: var(--text-3); cursor: pointer; display: grid; place-items: center; flex: none; }
.lw-x .icon { width: 14px; height: 14px; }
@media (hover: hover) { .lw-x:hover { background: var(--surface-2); color: var(--text); } }

.lw-stage { height: 32px; min-width: 150px; border-radius: 9px; font-weight: 600; }
.lw-stage.won { color: var(--lw-green); }
.lw-dealedit { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border: 0; border-radius: 9px; background: none; color: var(--text); font: inherit; cursor: pointer; }
.lw-dealedit .icon { width: 13px; height: 13px; color: var(--text-3); }
@media (hover: hover) { .lw-dealedit:hover { background: var(--surface-2); } }

.lw-homestats { grid-template-columns: 1.35fr repeat(4, minmax(0, 1fr)); }
@media (max-width: 1180px) { .lw-homestats { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lw-homestat.accent { grid-column: 1 / -1; } }
.lw-homestat b { font-size: 28px; }
.lw-homestat.accent b { font-size: 36px; }

/* Support */
.lw-support-btn { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 12px; border: 0; border-radius: 11px; background: none;
  color: var(--lw-side-ink-2); font: inherit; font-size: var(--fs-ui); cursor: pointer; text-align: left; }
.lw-support-btn .icon { width: 16px; height: 16px; flex: none; }
.lw-support-btn span:first-of-type { color: var(--lw-side-ink); font-weight: 600; }
.lw-support-hint { margin-left: auto; font-size: var(--fs-caption); opacity: .8; white-space: nowrap; }
@media (hover: hover) { .lw-support-btn:hover { background: var(--lw-side-2); } }
.lw-supportmodal { width: min(560px, calc(100vw - 32px)); }
.lw-supportbody { display: flex; flex-direction: column; gap: 8px; }
.lw-supportbody .form-label { margin-top: 8px; }
.lw-supportbody .form-label .hint { font-weight: 400; color: var(--text-3); margin-left: 4px; }
.lw-supportbody textarea { resize: vertical; min-height: 120px; line-height: 1.5; }
.lw-topics { display: flex; flex-wrap: wrap; gap: 8px; }
.lw-topic { height: 34px; padding: 0 14px; border: 0; border-radius: 17px; background: var(--surface-2); color: var(--text); font: inherit; font-size: var(--fs-ui); font-weight: 600; cursor: pointer; }
.lw-topic.on { background: var(--accent); color: #fff; }
.lw-drop { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 18px; border: 1.5px dashed var(--line-strong); border-radius: 14px;
  color: var(--text-2); font-size: var(--fs-ui); font-weight: 600; cursor: pointer; text-align: center; }
.lw-drop .icon { width: 18px; height: 18px; color: var(--text-3); }
.lw-drop .cell-sub { font-weight: 400; }
@media (hover: hover) { .lw-drop:hover { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 4%, transparent); } }
.lw-shot { display: flex; align-items: center; gap: 12px; padding: 10px; border-radius: 14px; background: var(--surface-2); }
.lw-shot img { width: 96px; height: 64px; object-fit: cover; border-radius: 8px; box-shadow: var(--shadow-border); }
.lw-shot .cell-stack { align-items: flex-start; gap: 4px; min-width: 0; }
