/* Client Intel additions on top of the Timebook stylesheet. */
.brand-app { font-weight: 500; color: var(--fg2); font-size: 13px; }
.side-search { padding: 0 4px 6px; }
.side-search input, .filters input[type=search], .filters select { width: 100%; padding: 7px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.side-foot small { line-height: 1.5; }
.filters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 12px; }
.filters input[type=search] { flex: 2 1 220px; width: auto; }
.filters select { flex: 1 1 150px; width: auto; }
.chk { display: inline-flex; gap: 6px; align-items: center; font-size: 13px; color: var(--fg2); }
.dash-2 { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.score { display: inline-grid; place-items: center; min-width: 34px; height: 26px; padding: 0 6px; border-radius: 8px; font: 500 13px var(--mono); background: var(--hover); color: var(--fg2); cursor: help; }
.score.hi { background: color-mix(in srgb, var(--good) 14%, transparent); color: var(--good-ink); }
.score.mid { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn-ink); }
.bars { display: grid; gap: 8px; }
.bar-row { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; font-size: 13px; }
.bar-label { color: var(--fg2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; }
.bar-fill { display: block; height: 100%; background: var(--accent); border-radius: 4px; }
.bar-val { text-align: right; white-space: nowrap; }
.bar-val small { color: var(--muted); font-family: var(--font); }
.rt { display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; }
.rt-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt-name { font-size: 16px; font-weight: 500; color: var(--fg); text-decoration: none; }
.rt-name:hover { color: var(--accent-ink); }
.meta-line { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.rt-angle { margin: 10px 0 4px; }
.rt-who { margin: 8px 0 0; font-size: 13px; }
.rt p { margin-bottom: 0; }
.mail { margin-right: 2px; }
.kind { font-size: 10.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin: 0 8px 0 4px; }
.em { display: inline-flex; align-items: center; gap: 2px; margin-right: 6px; }
.em.bounced a { text-decoration: line-through; color: var(--muted); }
.person, .proj { padding: 12px 0; border-top: 1px solid var(--line); display: grid; gap: 4px; }
.person:first-of-type, .proj:first-of-type { border-top: 0; padding-top: 0; }
.person-h { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.person-h b, .w5 { font-weight: 500; }
.prose { margin: 0 0 10px; line-height: 1.6; color: var(--fg2); }
.angle { background: var(--accent-soft); border-radius: var(--r-sm); padding: 10px 14px; margin: 6px 0 10px; }
.angle b { color: var(--accent-ink); font-weight: 500; font-size: 12.5px; }
.angle p { margin: 4px 0 0; }
.kpi-text { font-family: var(--font); font-size: 18px; }
.tl { display: grid; grid-template-columns: 96px auto 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); align-items: baseline; font-size: 13px; }
.tl:first-of-type { border-top: 0; }
.tl-date { color: var(--muted); font-size: 12px; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; max-width: 380px; }
.empty-data { display: grid; gap: 8px; }
.chip { margin: 0 6px 6px 0; }
@media (max-width: 1000px) { .dash-2 { grid-template-columns: 1fr; } }
@media (max-width: 860px) {
  .side .nav { flex-direction: row; display: flex; overflow-x: auto; width: 100%; order: 3; }
  .side .nav-label, .side-foot, .side-search { display: none; }
  .side .nav a { white-space: nowrap; }
  .tl { grid-template-columns: 1fr; gap: 2px; }
}

/* ---------- CRM ---------- */
.side-search { display: flex; justify-content: space-between; align-items: center; margin: 0 4px 6px; padding: 7px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface-2); color: var(--muted); font-size: 13px; text-align: left; }
.side-search kbd { font: 11px var(--mono); border: 1px solid var(--line2); border-radius: 4px; padding: 0 5px; }
.side-search:hover { color: var(--fg); }
.search-dlg { width: min(620px, calc(100vw - 32px)); margin-top: 12vh; padding: 0; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); color: var(--fg); box-shadow: var(--shadow-lg); }
.search-dlg::backdrop { background: rgba(15, 15, 25, .38); }
.search-dlg input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font-size: 16px; background: transparent; outline: none; }
.search-results { max-height: 50vh; overflow: auto; padding: 6px; }
.search-results a { display: grid; grid-template-columns: 90px 1fr; gap: 2px 10px; padding: 8px 12px; border-radius: 8px; text-decoration: none; color: var(--fg); }
.search-results a small { grid-column: 2; color: var(--muted); }
.search-results a span { color: var(--muted); font-size: 12px; grid-row: span 2; padding-top: 1px; }
.search-results a[aria-selected="true"], .search-results a:hover { background: var(--accent-soft); }
dialog.modal { width: min(560px, calc(100vw - 32px)); }
dialog.modal > form { display: grid; gap: 12px; }
.toast-ok { border-color: color-mix(in srgb, var(--good) 35%, var(--line)); }
.notice-error { border-color: color-mix(in srgb, var(--crit) 35%, var(--line)); color: var(--crit-ink); }
.sep { height: 1px; background: var(--line); margin: 12px 0; }
.task-row { display: grid; grid-template-columns: auto 1fr auto auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--line); }
.task-row:first-of-type { border-top: 0; }
.task-row form { margin: 0; }
.tick { width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--line2); background: var(--surface); display: grid; place-items: center; padding: 0; color: transparent; }
.tick svg.i { width: 13px; height: 13px; stroke-width: 2.5; }
.tick:hover { border-color: var(--good); color: var(--good); }
.task-row.done .tick { background: var(--good); border-color: var(--good); color: #fff; }
.task-row.done .task-title { text-decoration: line-through; color: var(--muted); }
.task-row.overdue .task-due input { color: var(--crit-ink); border-color: color-mix(in srgb, var(--crit) 40%, var(--line2)); }
.task-title { font-weight: 500; }
.task-due input { padding: 4px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); font-size: 12.5px; }
.inline-form { display: flex; gap: 8px; flex-wrap: wrap; }
.inline-form input:not([type=date]) { flex: 1 1 240px; }
.inline-form input, .inline-form select { padding: 6px 9px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.log-form { display: grid; gap: 10px; }
.log-kinds { flex-wrap: wrap; }
.log-kinds label { display: inline-flex; position: relative; }
.log-kinds input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; pointer-events: none; }
.log-kinds span { padding: 5px 12px; border-radius: 7px; color: var(--fg2); font-weight: 500; font-size: 13px; cursor: pointer; }
.log-kinds input:checked + span { background: var(--surface); color: var(--fg); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.log-kinds input:focus-visible + span { outline: 2px solid var(--accent); }
.log-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.log-foot input[type=date], .log-foot select { padding: 4px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); }
.f input, .f select, .f textarea { padding: 8px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); width: 100%; }
.f textarea { resize: vertical; }
.f .chk input { width: auto; }
.tl.mine { grid-template-columns: 96px auto 1fr auto; }
.pill-accent { background: var(--accent-soft); color: var(--accent-ink); }
.who-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.chip.sm { font-size: 11.5px; padding: 1px 8px; margin: 0; }
.chip.tag { font-size: 11.5px; padding: 1px 8px; margin: 0 0 0 6px; }
.pre { white-space: pre-wrap; font: 12.5px/1.5 var(--mono); color: var(--fg2); margin: 6px 0 0; }
.deal-line { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.deal-line:first-of-type { border-top: 0; }
.deal-line b { font-weight: 500; }
.deal-line select { padding: 4px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); }
.edit-card summary { display: flex; gap: 10px; align-items: baseline; cursor: pointer; list-style: none; }
.edit-card summary::-webkit-details-marker { display: none; }
.edit-card summary h2::before { content: '▸ '; color: var(--muted); }
.edit-card[open] summary h2::before { content: '▾ '; }
.edit-card[open] summary { margin-bottom: 14px; }
.edit-card .f { display: grid; gap: 12px; }
.merge { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.email-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 6px 0; border-top: 1px solid var(--line); }
.email-line:first-of-type { border-top: 0; }
.email-line select { padding: 3px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); font-size: 12.5px; }
.struck { text-decoration: line-through; color: var(--muted); }
.sugg { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); text-decoration: none; color: var(--fg); }
.sugg:first-of-type { border-top: 0; }
.sugg b { font-weight: 500; display: block; }
.sugg small { color: var(--muted); font-size: 12.5px; }
.sugg:hover b { color: var(--accent-ink); }
.pager { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; font-size: 13px; }
.steps { padding-left: 18px; margin: 0; display: grid; gap: 6px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 8px; align-items: start; }
.col { background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r); padding: 10px; display: grid; gap: 8px; min-height: 140px; }
.col header { display: flex; justify-content: space-between; align-items: baseline; gap: 6px; padding: 2px 4px; }
.col header b { font-weight: 500; font-size: 13px; }
.col-cards { display: grid; gap: 8px; min-height: 60px; align-content: start; border-radius: 8px; }
.col-cards.over { background: var(--accent-soft); }
.col-won header b { color: var(--good-ink); } .col-lost header b { color: var(--crit-ink); }
.deal { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; box-shadow: var(--shadow); cursor: grab; display: grid; gap: 2px; }
.deal.dragging { opacity: .5; }
.deal-co { font-size: 12px; color: var(--muted); text-decoration: none; }
.deal-co:hover { color: var(--accent-ink); }
.deal-t { font-weight: 500; }
.seg { flex-wrap: wrap; max-width: 100%; }
code { font: 12px var(--mono); background: var(--hover); padding: 1px 5px; border-radius: 4px; }
@media (max-width: 860px) {
  .side-search { display: none; }
  .task-row { grid-template-columns: auto 1fr auto; }
  .task-row .task-due { grid-column: 2; }
}
.kind-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); }
.kind-pick select, .kind-cell { padding: 4px 8px; border: 1px solid var(--line2); border-radius: 7px; background: var(--surface); font-size: 12.5px; }

/* Quiet links: no underline until hover; record names and subjects in body colour. */
.wrap a { text-decoration: none; }
.wrap a:hover { text-decoration: none; }
.wrap a:not(.btn):not(.chip):not(.sugg):hover { color: var(--accent-ink); }
.wrap a[href^="mailto:"]:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.wrap .btn:hover, .wrap .chip:hover, .wrap .seg a:hover, .wrap .sugg:hover, .wrap .back:hover { text-decoration: none; }
.tl-body > a, .person-h a, .t td a, .rt-who a, .sugg, .deal-co, .email-line > a, .em a, .person-emails a, .mail { color: var(--fg); }
.tl-body > a:hover, .person-h a:hover, .t td a:hover, .rt-who a:hover, .em a:hover, .email-line > a:hover { color: var(--accent-ink); }
.em a, .person-emails a, .mail { color: var(--fg2); }

/* No underlines anywhere (user preference) — colour change on hover; only email addresses underline on hover. */
a, a:hover, .link:hover, .text-link, .task-link:hover { text-decoration: none; }
a[href^="mailto:"]:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; }
.danger-zone { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); }
.card.danger-zone { margin-top: 0; padding-top: 18px; border-top: 1px solid var(--line); }
.danger-zone b { font-weight: 500; color: var(--crit-ink); }
.danger-zone p { margin: 2px 0 0; }
.cdetails { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--fg2); }
.cdetails a, .cdetails > span { color: var(--fg2); display: inline-flex; align-items: baseline; }
.cdetails .kind { margin: 0 5px 0 0; }
.cdetails .cd-addr { flex-basis: 100%; }
.co-contact { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; margin-left: 10px; }
.co-contact a, .co-contact span { color: var(--fg2); }
.nowrap { white-space: nowrap; }
.btn.danger-ghost { color: var(--crit-ink); }
.btn.danger-ghost:hover { background: color-mix(in srgb, var(--crit) 10%, var(--surface)); }
.btn.danger-ghost svg.i { width: 15px; height: 15px; }
.head-actions form { margin: 0; }
.icon-del { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; display: inline-grid; place-items: center; }
.icon-del:hover { color: var(--crit-ink); background: color-mix(in srgb, var(--crit) 10%, transparent); }
.icon-del svg.i { width: 16px; height: 16px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Relationship + traits */
.trait { display: inline-flex; align-items: center; font-size: 11.5px; font-weight: 500; padding: 1px 8px; border-radius: 99px; line-height: 1.7; white-space: nowrap; background: var(--hover); color: var(--fg2); }
.trait-good { background: color-mix(in srgb, var(--good) 12%, transparent); color: var(--good-ink); }
.trait-warn { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn-ink); }
.trait-crit { background: color-mix(in srgb, var(--crit) 12%, transparent); color: var(--crit-ink); }
.trait-row { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 10px; }
.trait-row.sm { margin: 5px 0 0; }
.trait-row.sm .trait { font-size: 10.5px; padding: 0 6px; }
.rel-card .story { line-height: 1.65; color: var(--fg); margin-bottom: 12px; font-size: 14px; }
.glance { margin-bottom: 10px; }
.glance summary { cursor: pointer; }
.rel-edit { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.trait-picker { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px 16px; }
.tp-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 4px 0 6px; }
.tp { display: flex !important; flex-direction: row !important; align-items: center; gap: 6px; padding: 2px 0; cursor: pointer; }
.tp input { width: auto !important; }
.trait-filter { position: relative; }
.trait-filter summary { list-style: none; cursor: pointer; padding: 6px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); font-size: 13px; display: inline-flex; gap: 6px; align-items: center; }
.trait-filter summary::-webkit-details-marker { display: none; }
.tf-pop { position: absolute; z-index: 20; top: calc(100% + 6px); left: 0; width: 250px; max-height: 60vh; overflow: auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-lg); padding: 10px 12px; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin: 2px 0 0; }
.page-foot { display: flex; justify-content: flex-end; padding-top: 4px; }
.socials { display: inline-flex; gap: 4px; vertical-align: middle; margin-left: 8px; }
.socials a { width: 28px; height: 28px; display: inline-grid; place-items: center; border-radius: 8px; color: var(--muted); border: 1px solid var(--line); background: var(--surface); }
.socials a:hover { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.socials svg.i { width: 15px; height: 15px; }
h1 .socials { font-size: 14px; }
.page-foot.in-col { padding-top: 0; }
.show-more { margin-top: 10px; }
.kv { display: grid; grid-template-columns: 96px 1fr; gap: 7px 12px; margin: 0; font-size: 13.5px; }
.kv dt { color: var(--muted); font-size: 12.5px; padding-top: 1px; }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.kv-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 16px 0 4px; padding-top: 12px; border-top: 1px solid var(--line); }
.profile .f { display: grid; gap: 12px; }

/* Inline edit */
.ie { position: relative; display: flex; align-items: baseline; gap: 6px; min-height: 22px; }
.ie-view { cursor: text; border-radius: 6px; padding: 1px 6px; margin: -1px -6px; flex: 1; min-width: 0; }
.ie-view:hover { background: var(--hover); }
.ie.ie-empty .ie-add { color: transparent; font-size: 12.5px; }
.ie.ie-empty .ie-view::before { content: '—'; color: var(--muted); }
.ie.ie-empty:hover .ie-view::before { content: none; }
.ie.ie-empty:hover .ie-add { color: var(--accent-ink); }
.ie-pen { border: 0; background: none; color: var(--muted); font-size: 12px; padding: 0 0 0 6px; opacity: 0; cursor: pointer; }
.ie:hover .ie-pen { opacity: 1; }
.ie-input { width: 100%; padding: 4px 8px; border: 1px solid var(--accent); border-radius: 7px; background: var(--surface); font-size: 13.5px; margin: -3px -8px; box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
textarea.ie-input { resize: vertical; }
.ie-status { font-size: 11.5px; color: var(--muted); white-space: nowrap; }
.ie-status.ok { color: var(--good-ink); }
.ie-status.err { color: var(--crit-ink); white-space: normal; }
.ie.ie-empty .ie-add { position: absolute; left: 6px; }
.ie-view { display: inline-block; min-height: 20px; position: relative; }
.story.clamped { max-height: calc(1.65em * 11); overflow: hidden; -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent); mask-image: linear-gradient(to bottom, #000 70%, transparent); }
.read-more { margin: -6px 0 12px; padding: 0; }
[data-live-region] { transition: opacity .15s; }
[data-live-region].loading { opacity: .55; }
.sr-h { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; }
.search-results a.sr-all { border-top: 1px solid var(--line); margin-top: 6px; }
.search-results a.sr-all b { color: var(--accent-ink); }
.find-group { display: grid; gap: 2px; }
.find-row { display: grid; grid-template-columns: 96px 1fr; gap: 12px; align-items: center; padding: 8px 6px; border-radius: 8px; color: var(--fg); }
.find-row:hover { background: var(--hover); }
.find-row .pill { justify-self: start; }
.find-main b { font-weight: 500; display: block; }
.find-main small { color: var(--muted); font-size: 12.5px; }
.topsearch { display: flex; align-items: center; gap: 10px; padding: 9px 14px; border: 1px solid var(--line2); border-radius: var(--r); background: var(--surface); box-shadow: var(--shadow); color: var(--muted); }
.topsearch:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 15%, transparent); }
.topsearch input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; min-width: 0; color: var(--fg); }
.topsearch kbd { font: 11px var(--mono); border: 1px solid var(--line2); border-radius: 4px; padding: 1px 6px; }
.topsearch svg.i { width: 17px; height: 17px; }
@media (max-width: 860px) { .topsearch kbd { display: none; } }
.pname { display: flex; align-items: center; gap: 10px; min-width: 200px; }
.avatar { flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 600; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-ink); }
.avatar.dm { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px color-mix(in srgb, var(--good) 70%, transparent); }
.pname-main { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dm-tag { font-size: 10px; font-weight: 600; color: var(--good-ink); background: color-mix(in srgb, var(--good) 12%, transparent); padding: 0 5px; border-radius: 4px; line-height: 1.6; }
.pname-icons { display: inline-flex; gap: 4px; margin-left: auto; }
.pname-icons a { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 7px; color: var(--muted); border: 1px solid var(--line); }
.pname-icons a:hover { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.pname-icons a.wa:hover { color: #25d366; border-color: color-mix(in srgb, #25d366 50%, var(--line)); }
.pname-icons svg.i { width: 14px; height: 14px; }
/* Search: slim, quiet, top-right */
.topsearch { justify-self: end; width: min(340px, 100%); margin-bottom: -6px; padding: 6px 10px; gap: 8px; border: 1px solid var(--line); border-radius: 9px; background: var(--surface-2); box-shadow: none; }
.topsearch:hover { border-color: var(--line2); }
.topsearch:focus-within { box-shadow: none; border-color: var(--line2); }
.topsearch input { font-size: 13px; }
.topsearch input::placeholder { color: var(--muted); }
.topsearch svg.i { width: 15px; height: 15px; }
.topsearch kbd { font-size: 10.5px; color: var(--muted); background: var(--surface); }
@media (max-width: 860px) { .topsearch { width: 100%; justify-self: stretch; } }
/* World map */
.map-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.map-filters input[type=search] { flex: 1 1 220px; width: auto; }
.map-filters select { width: auto; }
.map-grid { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px; align-items: start; }
.map-card { padding: 0; overflow: hidden; }
#people-map { height: calc(100vh - 250px); min-height: 420px; background: #eef1f4; }
.map-side h2 { margin: 0 0 8px; }
.map-countries { display: grid; gap: 2px; max-height: calc(100vh - 360px); overflow: auto; }
.map-countries button { display: flex; justify-content: space-between; gap: 8px; padding: 6px 8px; border: 0; border-radius: var(--r-sm); background: none; color: var(--fg); font: inherit; font-size: 13px; text-align: left; cursor: pointer; }
.map-countries button:hover { background: var(--surface-2); }
.map-countries button[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); }
.map-countries b { font-weight: 500; color: var(--muted); font-variant-numeric: tabular-nums; }
.map-unplaced { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 10px; font-size: 13px; }
.map-unplaced summary { cursor: pointer; color: var(--muted); }
.map-unplaced ul { list-style: none; padding: 0; margin: 8px 0 0; display: grid; gap: 4px; max-height: 260px; overflow: auto; }
.leaflet-popup-content { font: 13px/1.45 var(--font); margin: 10px 14px; }
.leaflet-popup-content .mp-name { font-weight: 500; font-size: 14px; color: var(--accent-ink); }
.leaflet-popup-content .mp-co { font-weight: 500; }
.leaflet-popup-content .mp-place, .leaflet-popup-content .mp-seen { color: #6b7280; font-size: 12px; margin-top: 2px; }
.leaflet-popup-content .mp-place span { color: #9ca3af; }
.marker-cluster-small, .marker-cluster-medium, .marker-cluster-large { background-color: rgba(47, 111, 222, .18); }
.marker-cluster-small div, .marker-cluster-medium div, .marker-cluster-large div { background-color: rgba(47, 111, 222, .85); color: #fff; font: 500 12px var(--font); }
@media (max-width: 900px) { .map-grid { grid-template-columns: 1fr; } #people-map { height: 60vh; } }
.marker-cluster { border-radius: 50%; }
.marker-cluster div { width: 30px; height: 30px; margin: 5px; border-radius: 50%; text-align: center; line-height: 30px; }
.marker-cluster span { line-height: 30px; }
#people-map.map-dark { background: #1f2124; }
.map-dark .leaflet-control-zoom a { background: #2a2d31; color: #ddd; border-color: #3a3d42; }
.map-dark .leaflet-control-attribution { background: rgba(30,32,35,.8); color: #aaa; }
.map-dark .leaflet-control-attribution a { color: #ccc; }
/* Google map markers + popups */
.gm-dot { display: block; width: 11px; height: 11px; border-radius: 50%; border: 1.5px solid #fff; box-shadow: 0 1px 3px rgba(0,0,0,.35); cursor: pointer; }
.gm-dot.dm { width: 14px; height: 14px; }
.gm-cluster { display: grid; place-items: center; border-radius: 50%; background: rgba(47,111,222,.9); color: #fff; font: 500 12px var(--font); box-shadow: 0 0 0 5px rgba(47,111,222,.22); cursor: pointer; }
.mp { font: 13px/1.45 var(--font); color: #1f2328; min-width: 160px; }
.mp .mp-name { font-weight: 500; font-size: 14px; color: #1f5fcf; }
.mp .mp-co { font-weight: 500; }
.mp .mp-place, .mp .mp-seen { color: #6b7280; font-size: 12px; margin-top: 2px; }
.mp .mp-place span { color: #9ca3af; }
/* Retarget */
.rt-kpis { margin-bottom: 16px; }
.rt-week { margin-bottom: 16px; }
.rt-week .card-h { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; margin-bottom: 6px; }
.rt-week .card-h h2 { margin: 0; }
.rt-week-list { margin: 0; padding: 0; list-style: none; counter-reset: wk; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 0 24px; }
.rt-week-list li { counter-increment: wk; display: grid; grid-template-columns: 22px 1fr auto auto; grid-template-rows: auto auto; column-gap: 10px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.rt-week-list li::before { content: counter(wk); grid-row: span 2; color: var(--muted); font: 500 12px var(--mono); }
.rt-week-name { color: var(--fg); font-weight: 500; text-decoration: none; }
.rt-week-name:hover { color: var(--accent-ink); }
.rt-week-list .hint { grid-column: 2; font-size: 12px; }
.rt-week-val { grid-column: 3; grid-row: 1 / span 2; color: var(--fg2); font-size: 13px; }
.rt-week-list .btn { grid-column: 4; grid-row: 1 / span 2; }
.rt-plays { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 10px; }
.rt-play { display: grid; grid-template-columns: auto auto; column-gap: 8px; align-items: baseline; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--fg2); font: inherit; font-size: 13px; font-weight: 500; cursor: pointer; text-align: left; }
.rt-play b { font-weight: 500; color: var(--muted); }
.rt-play small { grid-column: 1 / -1; color: var(--muted); font-size: 11.5px; }
.rt-play:hover { border-color: var(--line2); color: var(--fg); }
.rt-play[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); color: var(--accent-ink); }
.rt-strategy { margin: 0 0 12px; padding: 10px 14px; border-left: 3px solid var(--accent); background: var(--surface); border-radius: 0 var(--r-sm) var(--r-sm) 0; color: var(--fg2); }
.rt-filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.rt-filters input[type=search] { flex: 1 1 220px; width: auto; }
.rt-filters select { width: auto; }
.rt2 { display: grid; gap: 10px; }
.rt2-head { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; }
.rt2-title .meta-line { margin-top: 2px; }
.rt2-val { font-size: 17px; font-weight: 500; color: var(--fg); white-space: nowrap; }
.rt2-why { margin: 0; padding: 0; list-style: none; display: grid; gap: 3px; font-size: 13px; color: var(--fg2); }
.rt2-why li { position: relative; padding-left: 14px; }
.rt2-why li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--line2); }
.rt2-why .why-warn::before { background: var(--warn); }
.rt2-why .why-bad { color: var(--crit-ink); }
.rt2-why .why-bad::before { background: var(--crit); }
.rt2-why .why-info::before { background: var(--accent); }
.rt2-angle { margin: 0; font-size: 13.5px; }
.rt2-angle span { font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-right: 8px; font-weight: 500; }
.rt2-rel summary { cursor: pointer; color: var(--muted); font-size: 12.5px; }
.rt2-rel .story { white-space: pre-line; font-size: 13px; color: var(--fg2); margin-top: 6px; max-height: 260px; overflow: auto; }
.rt2-foot { display: flex; flex-wrap: wrap; gap: 10px 16px; justify-content: space-between; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.rt2-who { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; font-size: 13.5px; }
.rt2-who > a { color: var(--fg); font-weight: 500; }
.rt2-who > a:hover { color: var(--accent-ink); }
.rt2-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.rt2-actions select, .rt2-next input { padding: 5px 8px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.rt2-next { display: inline-flex; gap: 6px; align-items: center; font-size: 12.5px; color: var(--muted); }
[data-rt-save].saved { border-color: color-mix(in srgb, var(--good) 50%, var(--line2)); }
[data-rt-save].failed { border-color: var(--crit); }
#rt-list .card { margin-bottom: 12px; }
@media (max-width: 640px) { .rt2-head { grid-template-columns: auto 1fr; } .rt2-val { grid-column: 2; } .rt-week-list { grid-template-columns: 1fr; } }
/* Sidebar scrolls on its own when the menu is taller than the window */
@media (min-width: 861px) {
  .side { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .side > * { flex-shrink: 0; }
}
/* Settings */
.acct-list { display: grid; gap: 12px; }
.acct { border: 1px solid var(--line); border-radius: var(--r-sm); padding: 14px 16px; display: grid; gap: 10px; }
.acct-h { display: flex; justify-content: space-between; gap: 12px; align-items: start; }
.acct-email { font-weight: 500; font-size: 15px; }
.acct-facts { display: grid; grid-template-columns: 140px 1fr; gap: 4px 12px; margin: 0; font-size: 13px; }
.acct-facts dt { color: var(--muted); }
.acct-facts dd { margin: 0; }
.acct-form { display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: end; }
.acct-form label:first-child { display: grid; gap: 4px; flex: 1 1 260px; font-size: 12.5px; color: var(--fg2); }
.acct-form input[type=password] { padding: 7px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font: inherit; }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; font-size: 13.5px; }
.map-countries { max-height: 240px; }
.map-people-h { margin: 16px 0 6px; padding-top: 12px; border-top: 1px solid var(--line); }
.map-people { display: grid; max-height: calc(100vh - 560px); min-height: 160px; overflow: auto; }
.mp-row { display: grid; gap: 1px; padding: 7px 8px; border-radius: var(--r-sm); color: var(--fg); text-decoration: none; font-size: 13px; }
.mp-row:hover { background: var(--surface-2); }
.mp-row-name { font-weight: 500; }
.mp-row-name i { font-style: normal; font-size: 10.5px; color: var(--muted); margin-left: 4px; }
.mp-row .hint { font-size: 12px; }
.gm-dot.full { box-shadow: 0 0 0 2.5px #111827, 0 1px 3px rgba(0,0,0,.35); }
.mp-row { grid-template-columns: 1fr auto; column-gap: 8px; }
.mp-row .hint { grid-column: 1 / -1; }
.mp-row-name { all: unset; cursor: pointer; font-weight: 500; color: var(--fg); }
.mp-row-name:hover { color: var(--accent-ink); }
.mp-row-name .pin { color: var(--accent); font-size: 10px; margin-right: 5px; vertical-align: 1px; }
.mp-row-open { color: var(--muted); text-decoration: none; font-size: 13px; padding: 0 4px; }
.mp-row-open:hover { color: var(--accent-ink); }
.mp .mp-addr { font-size: 12px; margin-top: 2px; }
/* New contacts review */
.nc { display: grid; gap: 12px; margin-bottom: 12px; }
.nc-name { font-weight: 500; font-size: 15px; display: flex; gap: 8px; align-items: center; }
.nc-actions { display: grid; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.nc-form { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.nc-form input, .nc-form select { padding: 6px 9px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
.nc-form input { flex: 1 1 180px; }
.nc-ignore { display: flex; gap: 14px; }
.person-compact { gap: 6px; padding: 10px 0; }
.person-compact .person-h a { font-weight: 500; color: var(--fg); }
.person-compact .person-h a:hover { color: var(--accent-ink); }
.person-compact .socials { margin: 0; }
.proj-del { margin-left: auto; }
.proj .person-h { display: flex; align-items: center; gap: 8px; }
.removed-row { display: grid; grid-template-columns: minmax(160px, auto) 1fr auto; gap: 12px; align-items: baseline; padding: 8px 0; border-top: 1px solid var(--line); font-size: 13.5px; }
.toast-ok form.inline { display: inline; margin-left: 10px; }
/* Sortable table headers */
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--fg); }
.t th.sortable::after { content: ''; display: inline-block; width: 0; height: 0; margin-left: 5px; vertical-align: 2px; border: 4px solid transparent; opacity: 0; }
.t th.sortable:hover::after { border-top-color: currentColor; border-bottom-width: 0; opacity: .35; }
.t th[aria-sort="ascending"]::after { border-bottom: 4px solid currentColor; border-top-width: 0; opacity: .8; }
.t th[aria-sort="descending"]::after { border-top: 4px solid currentColor; border-bottom-width: 0; opacity: .8; }
.t th[aria-sort="ascending"], .t th[aria-sort="descending"] { color: var(--fg); }
/* Secondary company line under a person (Projects): grey and smaller like the domain line on Companies */
.t td .co-sub { font-size: 12.5px; margin-top: 1px; }
.t td .co-sub a { color: var(--muted); font-weight: 400; }
.t td .co-sub a:hover { color: var(--accent-ink); }
/* Projects: a brand's other domains/stores sit under its main site */
.t tr.site-sub td:first-child { padding-left: 26px; }
.site-branch { color: var(--muted); margin: 0 6px 0 -16px; font-size: 12px; }
.t tr.site-sub td { border-top-color: transparent; }
.proj.proj-sub { padding-left: 22px; border-top-style: dashed; }
.proj.proj-sub .site-branch { margin-left: -16px; }
.site-toggle { display: inline-grid; place-items: center; width: 18px; height: 18px; margin-right: 7px; padding: 0; border: 1px solid var(--line2); border-radius: 5px; background: var(--surface); color: var(--fg2); font: 500 13px/1 var(--mono); cursor: pointer; vertical-align: 1px; }
.site-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
.site-more { margin-left: 6px; font-size: 11.5px; color: var(--muted); }
.site-toggle[aria-expanded="true"] + a + .site-more, .site-toggle[aria-expanded="true"] + b + .site-more { display: none; }
.proj-move { font-size: 12.5px; color: var(--muted); margin-right: 8px; }
.proj-move:hover { color: var(--accent-ink); }
td form.inline, .person-h form.inline { display: inline; }
/* World map people list: compact rows, never stretched to fill the box */
.map-people { align-content: start; align-items: start; }
.mp-row { align-content: start; align-items: center; row-gap: 2px; }
.mp-row .mp-row-name { grid-column: 1; grid-row: 1; }
.mp-row .mp-row-open { grid-column: 2; grid-row: 1; justify-self: end; }
.mp-row .hint { grid-column: 1 / -1; line-height: 1.4; }
/* Zoho Books */
.zoho-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; align-items: end; max-width: 900px; }
.zoho-row { display: grid; grid-template-columns: minmax(200px, 1fr) auto; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
.zoho-actions { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.zoho-actions select { max-width: 220px; padding: 5px 8px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); color: var(--fg); font: inherit; font-size: 13px; }
@media (max-width: 720px) { .zoho-row { grid-template-columns: 1fr; } }

/* Ask your CRM */
.ask-mini { display: flex; gap: 8px; align-items: center; padding: 10px 12px; margin-bottom: 16px; }
.ask-mini input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; color: var(--fg); padding: 6px 4px; outline: none; }
.ask-thread { display: grid; gap: 18px; margin-bottom: 16px; max-width: 860px; }
.ask-turn { display: grid; gap: 8px; }
.ask-q { justify-self: end; max-width: 80%; background: var(--accent-soft); color: var(--accent-ink); padding: 9px 13px; border-radius: 12px; white-space: pre-wrap; }
.ask-a { display: grid; gap: 12px; }
.ask-text { line-height: 1.6; }
.ask-text p { margin: 0 0 10px; } .ask-text p:last-child { margin-bottom: 0; }
.ask-text ul { margin: 0 0 10px; padding-left: 20px; } .ask-text li { margin: 3px 0; }
.ask-text b { font-weight: 500; }
.cite { display: inline-grid; place-items: center; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--accent-soft); color: var(--accent-ink);
  font-size: 11px; font-weight: 500; text-decoration: none; vertical-align: 1px; margin-left: 2px; }
a.cite:hover { background: var(--accent); color: var(--accent-fg); }
.ask-recs { border-top: 1px solid var(--line); padding-top: 8px; display: grid; gap: 2px; }
.ask-recs .nav-label { padding: 2px 0 6px; }
.ask-rec { display: flex; gap: 8px; align-items: baseline; padding: 5px 6px; border-radius: 6px; color: var(--fg); text-decoration: none; min-width: 0; }
.ask-rec[href]:hover { background: var(--hover); }
.ask-rec b { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ask-rec small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ask-rec .pill { flex: none; }
.ask-form { display: grid; gap: 8px; max-width: 860px; position: sticky; bottom: 12px; }
.ask-form textarea { width: 100%; resize: vertical; border: 0; background: transparent; font: inherit; color: var(--fg); outline: none; }
.ask-actions { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ask-examples { display: flex; flex-wrap: wrap; gap: 8px; max-width: 860px; margin-top: 14px; }
.chip-btn { border: 1px solid var(--line2); background: var(--surface); color: var(--fg2); border-radius: 16px; padding: 6px 12px; font: inherit; font-size: 13px; cursor: pointer; text-align: left; }
.chip-btn:hover { border-color: var(--accent); color: var(--accent-ink); }
.ask-wait { display: flex; gap: 10px; align-items: center; color: var(--muted); }
.spin { width: 14px; height: 14px; border: 2px solid var(--line2); border-top-color: var(--accent); border-radius: 50%; animation: ask-spin .8s linear infinite; }
@keyframes ask-spin { to { transform: rotate(360deg); } }
.zoho-orgs { display: grid; gap: 6px; margin: 12px 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; }
.zoho-orgs .btn { justify-self: start; margin-top: 4px; }
/* Source badge for anything imported from Zoho Books (JT / JTPL) */
.zbadge { display: inline-flex; align-items: center; gap: 3px; padding: 1px 6px 1px 4px; border-radius: 9px; font-size: 11px; font-weight: 500; line-height: 16px;
  white-space: nowrap; vertical-align: 1px; color: #b4420f; background: #fdf0e8; border: 1px solid #f6d9c6; }
.zbadge svg { width: 11px; height: 11px; flex: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .zbadge { color: #f3a072; background: #3a2216; border-color: #5a3420; } }
:root[data-theme="dark"] .zbadge { color: #f3a072; background: #3a2216; border-color: #5a3420; }
.zoho-line { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; color: var(--muted); font-size: 13px; margin-top: 4px; }
.merge-box { margin-top: 12px; border-top: 1px solid var(--line); padding-top: 10px; }
.merge-box summary { cursor: pointer; }
.merge-box form { margin-top: 8px; }
.merge-pick { margin: 0 8px 0 0; width: 15px; height: 15px; accent-color: var(--accent); vertical-align: -2px; cursor: pointer; }
[data-merge-people] .btn-row { display: inline-flex; gap: 10px; align-items: center; }
.socials .mail-link { width: auto; display: inline-flex; align-items: center; height: 28px; padding: 0 10px; border: 1px solid var(--line2); border-radius: 8px;
  font-size: 13px; color: var(--fg2); text-decoration: none; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.socials .mail-link:hover { color: var(--accent-ink); border-color: var(--accent); }
h1 .socials .mail-link { font-size: 13px; font-weight: 400; }
.socials { flex-wrap: wrap; }
.pick-results { display: grid; gap: 2px; max-height: 240px; overflow-y: auto; }
.pick-row { display: flex; gap: 8px; align-items: baseline; text-align: left; padding: 7px 8px; border: 0; border-radius: 6px; background: transparent; color: var(--fg); font: inherit; cursor: pointer; min-width: 0; }
.pick-row b { font-weight: 500; white-space: nowrap; }
.pick-row small { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pick-row:hover, .pick-row[aria-selected="true"] { background: var(--accent-soft); }
.sep-or { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 6px; }
.sep-or::before, .sep-or::after { content: ""; flex: 1; border-top: 1px solid var(--line); }
.pick-row.is-here { cursor: default; opacity: .75; }
.pick-row.is-here:hover { background: transparent; }
.pick-tick { color: var(--good, #2f9e5b); font-weight: 600; }
.person-h { position: relative; }
.person-remove { margin-left: auto; display: inline; }
.person-remove .icon-del { font-size: 16px; line-height: 1; padding: 2px 6px; opacity: 0; transition: opacity .15s; }
.person:hover .person-remove .icon-del, .person-remove .icon-del:focus-visible { opacity: 1; }
@media (hover: none) { .person-remove .icon-del { opacity: 1; } }
.pick-col { width: 28px; padding-right: 0 !important; }
.list-pick { width: 15px; height: 15px; accent-color: var(--accent); cursor: pointer; }
.merge-bar { position: sticky; top: 8px; z-index: 5; display: flex; flex-wrap: wrap; gap: 10px 14px; align-items: center; padding: 10px 14px; margin-bottom: 12px; border-color: var(--accent); }
.merge-bar .merge-names { color: var(--fg2); }
.merge-bar form { margin-left: auto; }
/* People card: title edited in place, ex-employee toggle, lighter email addresses */
.person-h > .ie { display: inline-flex; align-items: center; gap: 4px; color: var(--muted); font-size: 13px; }
.person-h > .ie .ie-input { width: 200px; font: inherit; padding: 3px 8px; }
.person-h > .ie .ie-add { font-size: 12px; }
.ex-toggle { border: 1px solid var(--line); background: transparent; color: var(--muted); font: inherit; font-size: 11px; padding: 1px 8px; border-radius: 10px; cursor: pointer; opacity: 0; transition: opacity .15s; }
.person:hover .ex-toggle, .ex-toggle:focus-visible, .ex-toggle.is-on, .head .ex-toggle { opacity: 1; }
.ex-toggle.is-on { background: var(--surface-2); color: var(--fg2); border-color: var(--line2); }
.ex-toggle:hover { border-color: var(--accent); color: var(--accent-ink); }
@media (hover: none) { .ex-toggle { opacity: 1; } }
.person.is-former > *:not(.person-h), .person.is-former .person-h > a { opacity: .55; }
.socials .mail-link { border: 0; padding: 0 6px 0 0; height: auto; background: none; color: var(--fg2); }
.socials .mail-link:hover { color: var(--accent-ink); text-decoration: underline; }
.also-at { color: var(--muted); font-size: 13px; }
.person .also-at { margin: 2px 0 4px; }
/* People card: "Add title" takes its own space (it floats elsewhere) so it never runs into "Ex-employee" */
.person-h > .ie { margin: 0 4px 0 2px; }
.person-h > .ie .ie-view { margin: 0; flex: none; }
.person-h > .ie.ie-empty .ie-view::before { content: none; }
.person-h > .ie.ie-empty .ie-add { position: static; color: var(--muted); font-size: 12px; opacity: .7; }
.person-h > .ie.ie-empty:hover .ie-add, .person:hover .person-h > .ie.ie-empty .ie-add { color: var(--accent-ink); opacity: 1; }
.person-h > .ie .ie-status:empty { display: none; }
.dm-toggle { cursor: pointer; font: inherit; font-size: 12px; border: 1px dashed var(--line2); background: transparent; color: var(--muted); opacity: 0; transition: opacity .15s; }
.dm-toggle.is-on { opacity: 1; border-style: solid; border-color: transparent; }
.person:hover .dm-toggle, .dm-toggle:focus-visible { opacity: 1; }
.dm-toggle:not(.is-on):hover { color: var(--good-ink, #2f9e5b); border-color: currentColor; }
@media (hover: none) { .dm-toggle { opacity: 1; } }
/* Decision maker: active = green text + green outline (always shown); not set = grey, only on hover */
.dm-toggle.is-on { opacity: 1; background: transparent; color: var(--good-ink, #2f9e5b); border: 1px dashed currentColor; }
.dm-toggle.is-on:hover { border-style: solid; }
.dm-toggle:not(.is-on) { color: var(--muted); border-color: var(--line2); }
.dm-toggle:not(.is-on):hover { color: var(--fg2); border-color: var(--muted); }
/* Person page: companies with their title at each, and projects worked on */
.pc-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; padding: 8px 0; border-top: 1px solid var(--line); }
.pc-row:first-of-type { border-top: 0; }
.pc-row > .ie { display: inline-flex; align-items: center; color: var(--muted); font-size: 13px; }
.pc-row > .ie.ie-empty .ie-view::before { content: none; }
.pc-row > .ie.ie-empty .ie-add { position: static; color: var(--muted); font-size: 12px; }
.pc-row > .ie .ie-status:empty { display: none; }
.pc-row:hover .dm-toggle { opacity: 1; }
.pw-row { padding: 8px 0; border-top: 1px solid var(--line); }
.pw-row:first-of-type { border-top: 0; }
/* Person page: email addresses with small copy / remove icons */
.email-line { display: flex; align-items: center; gap: 8px; }
.email-line .email-acts { margin-left: auto; display: inline-flex; gap: 2px; }
.icon-btn { border: 0; background: none; color: var(--muted); padding: 4px; border-radius: 6px; display: inline-grid; place-items: center; cursor: pointer; }
.icon-btn:hover { color: var(--accent-ink); background: var(--hover); }
.icon-btn svg { width: 15px; height: 15px; }
.icon-btn.icon-del:hover { color: var(--crit-ink); background: color-mix(in srgb, var(--crit) 10%, transparent); }
.zoho-new { grid-column: 1 / -1; margin-top: 10px; padding: 12px; border: 1px solid var(--accent); border-radius: 8px; display: grid; gap: 8px; max-width: 640px; }
.zoho-new label { display: grid; gap: 4px; }
.zoho-person { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.zoho-person input[name$="[name]"] { min-width: 200px; }
.zoho-add-h { margin-top: 4px; }
.zoho-extra { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; }
.project-add { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.project-add input { flex: 1 1 160px; min-width: 0; }
.project-add .err { flex-basis: 100%; margin: 0; }
.pill.st-muted { background: var(--surface-2); color: var(--muted); border: 1px solid var(--line2); }
.outreach-line { margin: 0 0 8px; color: var(--fg2); font-size: 13px; }
.company-pick { min-width: 220px; }
a.kpi-link { color: inherit; text-decoration: none; display: block; }
a.kpi-link:hover { border-color: var(--accent); }
a.kpi-link:hover .kpi-label { color: var(--accent-ink); }
/* ---------- Outreach report ---------- */
:root { --or-sent: #2a78d6; --or-reply: #eb6834; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --or-sent: #3987e5; --or-reply: #d95926; } }
:root[data-theme="dark"] { --or-sent: #3987e5; --or-reply: #d95926; }
.or-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.or-kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
.or-kpi-l { font-size: 12px; color: var(--muted); }
.or-kpi-v { font-size: 26px; font-weight: 500; margin: 4px 0 2px; color: var(--fg); }
.or-kpi-s { font-size: 12px; color: var(--muted); }
.or-split-card { padding: 14px 16px; }
.or-split { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.or-seg { min-width: 4px; }
.or-good { background: var(--good); } .or-neutral { background: var(--line2); } .or-muted { background: color-mix(in srgb, var(--muted) 45%, transparent); }
.or-serious { background: var(--serious); } .or-crit { background: var(--crit); }
.or-sent { background: var(--or-sent); } .or-reply { background: var(--or-reply); }
.or-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 12.5px; color: var(--fg2); }
.card-h .or-legend { margin-top: 0; }
.or-dot { display: inline-block; width: 9px; height: 9px; border-radius: 3px; margin-right: 6px; vertical-align: 0; }
.or-todo { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.or-todo:first-of-type { border-top: 0; }
.or-todo-b { flex: 1; min-width: 0; }
.or-todo form { margin: 0; }
.or-chart { position: relative; display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 190px; align-items: end; padding-top: 24px; }
.or-week { height: 100%; display: flex; flex-direction: column; align-items: stretch; outline: none; cursor: default; }
.or-bars { flex: 1; display: flex; align-items: flex-end; justify-content: center; gap: 2px; border-bottom: 1px solid var(--line2); }
.or-bar { width: 38%; max-width: 14px; border-radius: 4px 4px 0 0; min-height: 0; }
.or-week:hover .or-bars, .or-week:focus .or-bars { background: var(--hover); border-radius: 6px 6px 0 0; }
.or-wl { font-size: 10.5px; color: var(--muted); text-align: center; white-space: nowrap; height: 16px; margin-top: 4px; }
.or-tip { position: absolute; top: 0; background: var(--fg); color: var(--bg); font-size: 12px; padding: 4px 8px; border-radius: 6px; white-space: nowrap; pointer-events: none; }
.or-meter { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr auto; gap: 10px; align-items: center; padding: 7px 0; }
.or-meter-n { font-size: 13.5px; }
.or-meter-t { height: 8px; background: var(--hover); border-radius: 4px; overflow: hidden; }
.or-meter-f { display: block; height: 100%; background: var(--or-sent); border-radius: 4px; }
.or-meter-v { font-size: 13px; white-space: nowrap; }
.or-search { min-width: 220px; }
.or-tabs { margin: 0 0 10px; flex-wrap: wrap; }
.or-tabs b { font-weight: 500; color: var(--muted); }
.or-opened { display: inline-block; margin-left: 6px; font-size: 11.5px; color: var(--good-ink); white-space: nowrap; }
@media (max-width: 640px) { .or-meter { grid-template-columns: 1fr auto; } .or-meter-t { grid-column: 1 / -1; } }

/* ── Homepage (Today) ─────────────────────────────────────────────── */
.today-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px 32px; flex-wrap: wrap; margin-bottom: 20px; }
.today-eyebrow { margin: 0 0 4px; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.today-sum { margin: 6px 0 0; font-size: 13.5px; color: var(--fg2); }
.today-sum a { color: var(--fg); text-decoration: none; font-weight: 500; }
.today-sum a:hover { color: var(--accent-ink); }
.today-ask { display: flex; align-items: center; gap: 8px; width: min(460px, 100%); padding: 5px 5px 5px 12px; background: var(--surface); border: 1px solid var(--line2); border-radius: 10px; box-shadow: var(--shadow); }
.today-ask:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.today-ask .i { width: 16px; height: 16px; color: var(--muted); flex: none; }
.today-ask input { flex: 1; min-width: 0; border: 0; background: transparent; font: inherit; font-size: 13.5px; color: var(--fg); padding: 4px 0; outline: none; }
.today-kpis { margin-bottom: 18px; }
.card-links { display: flex; gap: 6px; align-items: center; }
.today-task-form { padding: 0 0 12px; margin-bottom: 4px; border-bottom: 1px solid var(--line); }

/* Follow-ups workspace: queue | selected follow-up */
.fu-card { padding: 0; margin-bottom: 18px; overflow: hidden; }
.fu-card-h { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.fu-card-h h2 { margin: 0; }
.fu-card-h .hint { margin-top: 2px; }
.fu-card-links { display: flex; gap: 4px; }
.fu-shell { display: grid; grid-template-columns: 300px minmax(0, 1fr); min-height: 420px; }
.fu-shell-empty { grid-template-columns: 300px minmax(0, 1fr); min-height: 0; }

.fu-queue { border-right: 1px solid var(--line); background: var(--surface-2); padding: 8px 0 12px; overflow: auto; max-height: 640px; }
.fu-group { display: flex; align-items: center; gap: 6px; padding: 12px 16px 6px; font-size: 11.5px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.fu-count { font-size: 11px; padding: 0 6px; border-radius: 99px; background: var(--hover); color: var(--fg2); letter-spacing: 0; }
.fu-count.good { background: color-mix(in srgb, var(--good-ink) 12%, transparent); color: var(--good-ink); }
.fu-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 16px; border: 0; border-left: 2px solid transparent; background: none; text-align: left; font: inherit; color: var(--fg); text-decoration: none; cursor: pointer; }
.fu-row:hover { background: var(--hover); }
.fu-row[aria-current="true"] { background: var(--surface); border-left-color: var(--accent); box-shadow: inset 0 1px 0 var(--line), inset 0 -1px 0 var(--line); }
.fu-row-b { flex: 1; min-width: 0; display: grid; }
.fu-row-n { font-size: 13.5px; font-weight: 500; color: var(--fg); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.fu-row-n:hover { color: var(--accent-ink); }
.fu-row-c { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-row-r { display: grid; justify-items: end; gap: 2px; flex: none; }
.fu-stage-chip { font-size: 11px; color: var(--fg2); }
.fu-when { font-size: 11.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.fu-when.late { color: var(--serious-ink); font-weight: 500; }
.fu-when.good { color: var(--good-ink); font-weight: 500; }
.fu-row-li { cursor: default; flex-wrap: wrap; }
.fu-row-li:hover { background: none; }
.fu-row-li .fu-li { flex-basis: 100%; padding-left: 42px; }

.fu-av { width: 32px; height: 32px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 500; letter-spacing: .02em; background: var(--accent-soft); color: var(--accent-ink); }
.fu-av.good { background: color-mix(in srgb, var(--good-ink) 12%, transparent); color: var(--good-ink); }
.fu-av.li { background: color-mix(in srgb, #0a66c2 12%, transparent); color: #0a66c2; }
.fu-av.lg { width: 44px; height: 44px; font-size: 15px; }

.fu-stage-area { min-width: 0; padding: 20px 24px; }
.fu-d { display: grid; gap: 16px; max-width: 860px; }
.fu-d-h { display: flex; align-items: center; gap: 14px; }
.fu-d-who { flex: 1; min-width: 0; }
.fu-d-who h3 { margin: 0; font-size: 17px; font-weight: 500; letter-spacing: -0.01em; }
.fu-d-who h3 a, .fu-d-who p a { color: var(--fg); text-decoration: none; }
.fu-d-who h3 a:hover, .fu-d-who p a:hover { color: var(--accent-ink); }
.fu-d-who p { margin: 2px 0 0; font-size: 13px; color: var(--muted); }
.fu-steps { display: grid; justify-items: end; gap: 6px; flex: none; }
.fu-steps-l { font-size: 12px; font-weight: 500; color: var(--fg2); }
.fu-steps-bar { display: flex; gap: 4px; }
.fu-steps-bar i { width: 28px; height: 4px; border-radius: 2px; background: var(--line2); }
.fu-steps-bar i.done { background: var(--accent); opacity: .45; }
.fu-steps-bar i.now { background: var(--accent); }

.fu-facts { display: grid; grid-template-columns: minmax(0, 2.2fr) repeat(3, minmax(0, 1fr)); gap: 0; margin: 0; border: 1px solid var(--line); border-radius: var(--r-sm); }
.fu-facts > div { padding: 9px 12px; min-width: 0; }
.fu-facts > div + div { border-left: 1px solid var(--line); }
.fu-facts dt { font-size: 11.5px; color: var(--muted); margin-bottom: 2px; }
.fu-facts dd { margin: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fu-facts dd a { color: var(--fg); }
.fu-ok { color: var(--good-ink); font-weight: 500; }
.fu-no { color: var(--muted); }

.fu-tip { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--fg2); line-height: 1.5; }
.fu-tip .i { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--warn-ink); fill: none; stroke: currentColor; stroke-width: 1.8; }

.fu-compose { display: grid; gap: 10px; }
.fu-tabs { justify-self: start; }
.fu-best { font-size: 10.5px; font-weight: 500; color: var(--good-ink); padding: 0 6px; border-radius: 99px; background: color-mix(in srgb, var(--good-ink) 10%, transparent); }
.fu-panel { display: grid; gap: 10px; }
.fu-msg { border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); overflow: hidden; }
.fu-msg-subj { display: flex; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--line); font-size: 13px; font-weight: 500; }
.fu-msg-subj span { color: var(--muted); font-weight: 400; width: 52px; flex: none; }
.fu-msg-body { padding: 12px 14px; white-space: pre-wrap; font-size: 13.5px; line-height: 1.6; color: var(--fg); max-height: 260px; overflow: auto; }
.fu-bar { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.fu-bar-l { display: flex; gap: 6px; flex-wrap: wrap; }
.fu-bar form { margin: 0; }
.fu-sent .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; color: var(--good-ink); }

.fu-d-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding-top: 14px; border-top: 1px solid var(--line); }
.fu-d-li { min-width: 0; }
.fu-d-more { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.fu-d-more form { margin: 0; }
.fu-d-more select { height: 28px; font-size: 12.5px; padding: 0 24px 0 8px; width: auto; border-radius: 7px; }
.link.muted { color: var(--muted); }

.fu-li { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 13px; }
.fu-li form { margin: 0; }
.fu-li-i { width: 16px; height: 16px; flex: none; fill: none; stroke: #0a66c2; stroke-width: 1.8; }
.fu-li-q { color: var(--fg2); margin-right: 2px; }
.fu-li-q.muted { color: var(--muted); }
.fu-li.compact { font-size: 12px; margin-top: 4px; }
.fu-chip { display: inline-flex; align-items: center; height: 24px; padding: 0 9px; border: 1px solid var(--line2); border-radius: 99px; background: var(--surface); color: var(--fg2); font: inherit; font-size: 12px; text-decoration: none; cursor: pointer; white-space: nowrap; }
.fu-chip:hover { border-color: var(--accent); color: var(--accent-ink); }
.fu-chip-p { background: var(--accent); border-color: var(--accent); color: var(--accent-fg); }
.fu-chip-p:hover { background: var(--accent-hover); color: var(--accent-fg); }

.fu-none { display: flex; gap: 12px; align-items: center; padding: 24px; }
.fu-none .i { width: 28px; height: 28px; padding: 6px; border-radius: 50%; background: color-mix(in srgb, var(--good-ink) 12%, transparent); color: var(--good-ink); fill: none; stroke: currentColor; stroke-width: 2.2; flex: none; }
.fu-none .hint { margin-top: 2px; }

@media (max-width: 1100px) { .fu-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fu-facts > div:nth-child(3) { border-left: 0; } .fu-facts > div:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 860px) {
  .fu-shell, .fu-shell-empty { grid-template-columns: 1fr; }
  .fu-queue { border-right: 0; border-bottom: 1px solid var(--line); max-height: 300px; }
  .fu-stage-area { padding: 16px; }
  .today-ask { width: 100%; }
}
.today-ask input[type="search"], .today-ask input[type="search"]:focus { border: 0; box-shadow: none; background: transparent; height: auto; padding: 4px 0; outline: none; }
.fu-note { margin: 0; padding: 8px 12px; border-radius: var(--r-sm); font-size: 13px; background: color-mix(in srgb, var(--good-ink) 9%, transparent); color: var(--good-ink); }
.fu-note.warn { background: color-mix(in srgb, var(--warn-ink) 10%, transparent); color: var(--warn-ink); }

/* Homepage: Log or schedule */
.ql { display: grid; gap: 14px; align-content: start; }
.ql-h { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.ql-h h2 { margin: 0; }
.ql-search { position: relative; display: flex; align-items: center; gap: 8px; padding: 0 12px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); }
.ql-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.ql-search .i { width: 16px; height: 16px; color: var(--muted); flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.ql-search input[type="search"], .ql-search input[type="search"]:focus { flex: 1; min-width: 0; border: 0; box-shadow: none; background: transparent; padding: 9px 0; font: inherit; font-size: 13.5px; outline: none; height: auto; }
.ql-results { position: absolute; z-index: 20; top: calc(100% + 4px); left: 0; right: 0; background: var(--surface); border: 1px solid var(--line2); border-radius: var(--r-sm); box-shadow: var(--shadow-lg); padding: 4px; max-height: 320px; overflow: auto; }
.ql-opt-row { display: flex; align-items: center; gap: 10px; width: 100%; padding: 7px 8px; border: 0; border-radius: 6px; background: none; text-align: left; font: inherit; color: var(--fg); cursor: pointer; }
.ql-opt-row[aria-selected="true"], .ql-opt-row:hover { background: var(--hover); }
.ql-opt-b { flex: 1; min-width: 0; display: grid; }
.ql-opt-b b { font-weight: 500; font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-opt-b small { font-size: 12px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ql-kind { font-size: 11px; color: var(--muted); }
.ql-none { margin: 0; padding: 10px; font-size: 13px; color: var(--muted); }
.fu-av.co { border-radius: 8px; background: var(--hover); color: var(--fg2); }
.ql-picked { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface-2); }
.ql-picked-b { flex: 1; min-width: 0; display: grid; }
.ql-picked-b b { font-weight: 500; font-size: 13.5px; }
.ql-picked-b small { font-size: 12px; color: var(--muted); }
.ql-form { display: grid; gap: 10px; }
.ql-form > input, .ql-form textarea { width: 100%; padding: 8px 10px; border: 1px solid var(--line2); border-radius: var(--r-sm); background: var(--surface); font: inherit; font-size: 13.5px; }
.ql-form textarea { resize: vertical; }
.ql-foot { display: flex; align-items: center; gap: 8px 14px; flex-wrap: wrap; }
.ql-foot label { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--fg2); }
.ql-foot input, .ql-foot select, .ql-due input { padding: 4px 6px; border: 1px solid var(--line2); border-radius: 6px; background: var(--surface); font: inherit; font-size: 12.5px; width: auto; height: 30px; }
.ql-foot .btn { margin-left: auto; }
.ql-foot .btn[disabled] { opacity: .5; cursor: not-allowed; }
.ql-due { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ql-label { font-size: 12.5px; color: var(--fg2); margin-right: 2px; }
.ql-opt { font-size: 12px; }
.fu-chip[aria-pressed="true"] { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.dash-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; margin-top: 18px; }
.today-work { margin-bottom: 18px; }
@media (max-width: 1100px) { .dash-3 { grid-template-columns: minmax(0, 1fr); } }
.fu-compose-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fu-compose-h form { margin: 0 0 0 auto; }
.fu-compose-h .btn .i { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.fu-origin { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; color: var(--muted); }
.fu-origin .i { width: 13px; height: 13px; fill: none; stroke: var(--accent); stroke-width: 1.8; }
.fu-msg-subj input { flex: 1; min-width: 0; border: 0; padding: 0; background: transparent; font: inherit; font-weight: 500; color: var(--fg); outline: none; box-shadow: none; height: auto; }
textarea.fu-msg-body { display: block; width: 100%; border: 0; resize: vertical; font: inherit; font-size: 13.5px; line-height: 1.6; background: transparent; color: var(--fg); outline: none; box-shadow: none; max-height: none; }
.fu-msg:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fu-msg .fu-msg-subj input, .fu-msg .fu-msg-subj input:focus { border: 0; box-shadow: none; background: transparent; padding: 0; height: auto; border-radius: 0; }
.fu-msg textarea.fu-msg-body, .fu-msg textarea.fu-msg-body:focus { border: 0; box-shadow: none; border-radius: 0; padding: 12px 14px; overflow: hidden; min-height: 120px; }

/* Chance of converting (Outreach page + homepage) */
.chance { display: inline-flex; padding: 2px; gap: 2px; background: var(--hover); border-radius: 8px; }
.chance button { border: 0; background: none; padding: 3px 9px; border-radius: 6px; font: inherit; font-size: 12px; font-weight: 500; color: var(--muted); cursor: pointer; white-space: nowrap; }
.chance button:hover { color: var(--fg); }
.chance button[aria-checked="true"] { background: var(--surface); box-shadow: var(--shadow), 0 0 0 1px var(--line); }
.chance .chance-high[aria-checked="true"] { color: var(--good-ink); }
.chance .chance-medium[aria-checked="true"] { color: var(--warn-ink); }
.chance .chance-low[aria-checked="true"] { color: var(--fg2); }
.or-list-card { margin-bottom: 18px; }
.or-list-card .card-h h2 .hint { font-weight: 400; margin-left: 4px; }

/* Homepage: Likely to convert (first fold) */
.ll { margin-bottom: 18px; padding: 0; overflow: hidden; border-color: color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: var(--shadow), 0 0 0 3px color-mix(in srgb, var(--accent) 7%, transparent); }
.ll-h { display: flex; justify-content: space-between; align-items: center; gap: 10px 16px; flex-wrap: wrap; padding: 14px 20px; background: linear-gradient(90deg, var(--accent-soft), transparent 70%); border-bottom: 1px solid var(--line); }
.ll-title { display: flex; align-items: center; gap: 12px; }
.ll-title h2 { margin: 0; }
.ll-icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--accent); color: var(--accent-fg); flex: none; }
.ll-icon .i { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.ll-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; padding: 16px 20px 18px; }
.ll-card { position: relative; display: grid; gap: 4px; align-content: start; padding: 14px 14px 12px 16px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); }
.ll-card::before { content: ""; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--line2); }
.ll-high::before { background: var(--good); }
.ll-medium::before { background: var(--warn); }
.ll-owe { border-color: color-mix(in srgb, var(--crit-ink) 35%, var(--line)); }
.ll-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-bottom: 4px; }
.ll-chance { font-size: 11.5px; font-weight: 500; text-transform: uppercase; letter-spacing: .04em; }
.ll-high .ll-chance { color: var(--good-ink); }
.ll-medium .ll-chance { color: var(--warn-ink); }
.ll-state { font-size: 11.5px; color: var(--muted); }
.ll-state.good { color: var(--good-ink); }
.ll-flag { font-size: 11.5px; font-weight: 500; color: var(--crit-ink); background: color-mix(in srgb, var(--crit-ink) 10%, transparent); padding: 1px 8px; border-radius: 99px; }
.ll-card h3 { margin: 0; font-size: 15px; font-weight: 500; letter-spacing: -0.01em; }
.ll-card h3 a, .ll-co a { color: var(--fg); text-decoration: none; }
.ll-card h3 a:hover, .ll-co a:hover { color: var(--accent-ink); }
.ll-co { margin: 0; font-size: 12.5px; color: var(--fg2); }
.ll-co a { color: var(--fg2); }
.ll-subj { margin: 4px 0 0; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ll-act { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ll-when { margin-left: auto; font-size: 11.5px; color: var(--muted); }

/* Likely to convert: outreach not rated yet */
.ll-rate { padding: 12px 20px 16px; border-top: 1px solid var(--line); }
.ll-grid + .ll-rate { background: var(--hover); }
.ll-rate-h { margin: 0 0 8px; font-size: 13px; font-weight: 500; }
.ll-rate ul { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.ll-rate li { display: flex; align-items: center; gap: 12px; padding: 6px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.ll-rate li:last-child { border-bottom: 0; }
.ll-rate-who { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg2); }
.ll-rate-who b { color: var(--fg); }
.ll-rate-st { font-size: 12px; color: var(--muted); white-space: nowrap; }
.ll-rate-st.good { color: var(--good-ink); }
@media (max-width: 640px) { .ll-rate li { flex-wrap: wrap; } .ll-rate-who { flex-basis: 100%; } }
