/* Brandvick Lead Portal. Brand colour comes from assets/brand-<site>.css (--brand, --brand-ink, mark text). */
:root {
  --bg: #f4f5f7; --surface: #ffffff; --surface-2: #f8f9fb; --ink: #151a23; --muted: #5d6675; --line: #e2e5ea; --line-2: #eef0f3;
  --focus: #2563eb; --shadow: 0 1px 2px rgba(16, 24, 40, .06), 0 8px 24px -12px rgba(16, 24, 40, .18);
  --form: #4f5bd5; --form-bg: #eef0fd; --wa: #178a4c; --wa-bg: #e7f6ee; --call: #b45309; --call-bg: #fdf1e3;
  --ok: #15803d; --bad: #b42318; --bad-bg: #fdecea;
  --brand: #1f2937; --brand-ink: #ffffff;
  --r: 12px; --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1216; --surface: #171b21; --surface-2: #1d2229; --ink: #e8ebf0; --muted: #9aa3b1; --line: #2a3038; --line-2: #222830;
    --shadow: 0 1px 2px rgba(0, 0, 0, .4); --form-bg: #23264a; --wa-bg: #12301f; --call-bg: #3a2610; --bad-bg: #3a1714;
    --form: #9aa4ff; --wa: #4ccf85; --call: #f0a54a; color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 var(--font); -webkit-font-smoothing: antialiased; padding: 0 0 env(safe-area-inset-bottom); }
html.no-scroll { overflow: hidden; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--focus); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; border-radius: 6px; }
.muted { color: var(--muted); } .small { font-size: 13px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
svg { width: 16px; height: 16px; flex: none; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none; white-space: nowrap; background: none; }
.btn--primary { background: var(--brand); color: var(--brand-ink); }
.btn--primary:hover { filter: brightness(1.08); }
.btn--ghost { border-color: var(--line); background: var(--surface); }
.btn--ghost:hover { background: var(--surface-2); }
.btn--accent { background: var(--brand); color: var(--brand-ink); }
.btn--ok { border-color: color-mix(in srgb, var(--ok) 40%, transparent); color: var(--ok); background: var(--surface); }
.btn--wa { background: #1faa59; color: #fff; }
.btn:disabled { opacity: .6; cursor: default; }
.icon-btn { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn svg { width: 20px; height: 20px; }

/* brand mark */
.mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--brand); color: var(--brand-ink); font-weight: 800; font-size: 13px; letter-spacing: .02em; flex: none; }
.mark::after { content: var(--mark, "BV"); }

/* login */
.auth { background: var(--auth-bg, var(--bg)); min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; }
.auth__card { width: min(400px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; box-shadow: var(--shadow); display: grid; gap: 10px; }
.auth__brand { display: flex; align-items: center; gap: 12px; font-weight: 700; margin-bottom: 8px; }
.auth h1 { margin: 4px 0 0; font-size: 22px; letter-spacing: -.01em; font-family: var(--display, var(--font)); }
.auth p { margin: 0 0 6px; }
.auth label { font-size: 13px; font-weight: 600; margin-top: 6px; }
.auth input { height: 44px; border: 1px solid var(--line); border-radius: 10px; padding: 0 12px; background: var(--surface); font-size: 16px; }
.auth .btn { margin-top: 12px; height: 46px; justify-content: center; }
.auth__err { color: var(--bad); min-height: 1.2em; font-size: 14px; }
.auth__foot { font-size: 12px; text-align: center; margin-top: 4px; }
.boot { padding: 40px 16px; text-align: center; }

/* top bar */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--line); padding-top: env(safe-area-inset-top); }
.top__in { max-width: 1180px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.top__brand { display: flex; align-items: center; gap: 10px; min-width: 0; }
.top__brand strong { display: block; font-size: 15px; line-height: 1.2; }
.top__brand span:not(.mark) { display: block; font-size: 12px; color: var(--muted); }
.tabs { display: flex; gap: 4px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; white-space: nowrap; }
.tabs button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.tabs button[data-co]:not([data-co=""])::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--co); margin-right: 6px; vertical-align: 1px; }
.top__act { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.notif svg { width: 16px; height: 16px; }
.menu { position: relative; }
.menu summary { list-style: none; cursor: pointer; }
.menu summary::-webkit-details-marker { display: none; }
.top .menu > summary { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); font-weight: 700; }
.menu__pop { position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: var(--shadow); padding: 8px; width: 260px; display: grid; gap: 2px; z-index: 30; }
.menu__pop p { margin: 6px 8px; }
.menu__pop button, .menu__pop a { text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 8px; cursor: pointer; color: var(--ink); text-decoration: none; font-size: 14px; }
.menu__pop button:hover, .menu__pop a:hover { background: var(--surface-2); }

/* layout */
.wrap { max-width: 1180px; margin: 0 auto; padding: 16px; display: grid; gap: 16px; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; text-align: left; }
.stat__l { font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.stat__n { font-size: 28px; line-height: 1.15; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.stat__s { display: flex; gap: 12px; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; flex-wrap: wrap; }
.stat__s > span { display: inline-flex; align-items: center; gap: 4px; }
.stat__s svg { width: 13px; height: 13px; }
.stat--hi { border-color: color-mix(in srgb, var(--brand) 35%, var(--line)); box-shadow: inset 3px 0 0 var(--brand); }
.stat--todo { cursor: pointer; font: inherit; }
.stat--todo:hover { background: var(--surface-2); }
.bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.chip svg { width: 14px; height: 14px; }
.sel select, .search input { height: 36px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); padding: 0 10px; font-size: 14px; }
.search { position: relative; flex: 1 1 200px; display: flex; }
.search svg { position: absolute; left: 10px; top: 10px; color: var(--muted); }
.search input { width: 100%; padding-left: 32px; font-size: 16px; }
.menu--export { margin-left: auto; }
.menu--export .menu__pop { width: 300px; }

/* list */
.list { display: grid; gap: 8px; }
.lead { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; width: 100%; text-align: left; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.lead:hover { border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); box-shadow: var(--shadow); }
.lead__ic { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; }
.lead__ic svg { width: 18px; height: 18px; }
.lead--form .lead__ic, .lead__ic--form { background: var(--form-bg); color: var(--form); }
.lead--whatsapp .lead__ic, .lead__ic--whatsapp { background: var(--wa-bg); color: var(--wa); }
.lead--call .lead__ic, .lead__ic--call { background: var(--call-bg); color: var(--call); }
.lead__main { min-width: 0; display: grid; }
.lead__h { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__s { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lead__meta { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); white-space: nowrap; }
/* Dubai clock time first, relative time after it */
.lead__meta time { display: inline-flex; align-items: baseline; gap: 6px; }
.lead__clock { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tz { flex-basis: 100%; margin-top: -2px; }
.lead.is-new .lead__h::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); margin-right: 8px; vertical-align: 1px; }
.lead.is-fresh { animation: fresh 2.4s ease-out; }
@keyframes fresh { 0% { background: color-mix(in srgb, var(--brand) 16%, var(--surface)); } 100% { background: var(--surface); } }
@media (prefers-reduced-motion: reduce) { .lead.is-fresh { animation: none; } }
.tag { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 6px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); vertical-align: 1px; }
.tag--bad { color: var(--bad); background: var(--bad-bg); border-color: transparent; }
.co { font-size: 12px; font-weight: 600; color: var(--ink); display: inline-flex; align-items: center; gap: 5px; }
.co::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--co); }
.pill { font-size: 12px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.pill--new { background: color-mix(in srgb, var(--brand) 12%, var(--surface)); color: var(--ink); border-color: color-mix(in srgb, var(--brand) 30%, var(--line)); }
.pill--qualified, .pill--won { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); border-color: transparent; }
.pill--not_qualified, .pill--spam { opacity: .75; }
.empty { background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r); padding: 40px 16px; display: grid; gap: 4px; text-align: center; }
.more { display: flex; justify-content: center; }

/* drawer */
.drawer { position: fixed; inset: 0; z-index: 40; pointer-events: none; }
.drawer__scrim { position: absolute; inset: 0; background: rgba(10, 14, 20, .38); opacity: 0; transition: opacity .2s; }
.drawer__panel { position: absolute; top: 0; right: 0; bottom: 0; width: min(520px, 100%); background: var(--surface); box-shadow: -8px 0 32px rgba(0, 0, 0, .18); transform: translateX(100%); transition: transform .25s ease; display: flex; flex-direction: column; padding-top: env(safe-area-inset-top); }
.drawer.is-open { pointer-events: auto; }
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer.is-open .drawer__panel { transform: none; }
@media (prefers-reduced-motion: reduce) { .drawer__panel, .drawer__scrim { transition: none; } }
.dr__h { display: flex; align-items: center; gap: 12px; padding: 16px; border-bottom: 1px solid var(--line); }
.dr__h h2 { margin: 0; font-size: 18px; line-height: 1.25; }
.dr__h p { margin: 2px 0 0; font-size: 13px; }
.dr__h .icon-btn { margin-left: auto; }
.dr__b { padding: 16px; overflow: auto; display: grid; gap: 16px; padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
.dr__cta { display: flex; gap: 10px; } .dr__cta .btn { flex: 1; justify-content: center; }
.note { margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); font-size: 14px; }
.dr__f { display: grid; gap: 10px; }
.dr__f label { display: grid; gap: 4px; font-size: 13px; font-weight: 600; }
.dr__f input, .dr__f select, .dr__f textarea { border: 1px solid var(--line); border-radius: 10px; padding: 9px 11px; background: var(--surface); font-size: 16px; font-weight: 400; }
.dr__2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.dr__save { display: flex; align-items: center; gap: 12px; }
.dr__d { margin: 0; display: grid; gap: 0; border-top: 1px solid var(--line); }
.dr__d > div { display: grid; grid-template-columns: 140px 1fr; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line-2); }
.dr__d dt { color: var(--muted); font-size: 13px; text-transform: capitalize; }
.dr__d dd { margin: 0; overflow-wrap: anywhere; white-space: pre-wrap; }

.toast { position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); transform: translate(-50%, 20px); background: var(--ink); color: var(--surface); padding: 10px 16px; border-radius: 10px; font-size: 14px; font-weight: 600; opacity: 0; transition: .2s; pointer-events: none; z-index: 60; max-width: calc(100% - 32px); }
.toast.is-on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 900px) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stat--todo { grid-column: 1 / -1; }
  .tabs { order: 3; width: 100%; }
}
@media (max-width: 600px) {
  .top__in { gap: 10px; }
  .notif span { display: none; } .notif { padding: 0 12px; }
  .stat__n { font-size: 24px; }
  .lead { grid-template-columns: auto 1fr; }
  .lead__meta { grid-column: 2; flex-wrap: wrap; row-gap: 4px; }
  .menu--export { margin-left: 0; }
  .dr__2 { grid-template-columns: 1fr; }
  .dr__d > div { grid-template-columns: 1fr; gap: 2px; }
}

/* logos */
.auth__logo { display: block; height: 52px; width: auto; max-width: 240px; object-fit: contain; margin: 2px 0 14px; }
.auth__logo--mrinteriors { height: 92px; margin: 0 auto 10px; }
.auth__logo--upzone { height: 46px; }
.brand-logo { display: block; height: 36px; width: auto; max-width: 190px; object-fit: contain; }
html[data-theme="mrinteriors"] .brand-logo { height: 46px; }
html[data-theme="brandvick"] .brand-logo { height: 30px; }
.top__brand small { display: block; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); padding-left: 12px; border-left: 1px solid var(--line); line-height: 1.2; }
.by-bv { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 8px 0 0; font-size: 12px; color: var(--muted); }
.by-bv img { height: 17px; width: auto; display: block; }
footer.by-bv { padding: 20px 0 8px; }
@media (max-width: 600px) { .brand-logo { height: 30px; max-width: 140px; } .top__brand small { display: none; } }

/* v2 (29 Sep): view switch, ad taps, performance tables */
.views { display: flex; gap: 2px; padding: 3px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 11px; }
.views button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font: inherit; font-weight: 600; font-size: 13px; color: var(--muted); cursor: pointer; }
.views button[aria-pressed="true"] { background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.view { display: grid; gap: 16px; }
.view[hidden] { display: none; }
.lead--ad_whatsapp .lead__ic, .lead__ic--ad_whatsapp { background: var(--wa-bg); color: var(--wa); }
.lead--ad_call .lead__ic, .lead__ic--ad_call { background: var(--call-bg); color: var(--call); }
.tag--ad { color: var(--form); background: var(--form-bg); border-color: transparent; }
.tag--sheet { color: #5a4300; background: #fff1c2; border-color: transparent; }   /* 27 Oct 2026: row copied from the client's lead sheet */
.tag--src-organic { color: #0b6b3a; background: #e3f5ea; border-color: transparent; }
.tag--src-social, .tag--src-ai, .tag--src-referral, .tag--src-other { color: #6b3fa0; background: #f0e8fa; border-color: transparent; }
.tag--src-direct { opacity: .75; }
.tag--src-sheet { color: #5a4300; background: #fff1c2; border-color: transparent; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; }
.card h2 { margin: 0; font-size: 16px; }
.tbl { overflow-x: auto; }
.tbl table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding: 8px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 9px 10px; border-bottom: 1px solid var(--line-2); vertical-align: top; }
.tbl .n { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl tbody tr:hover { background: var(--surface-2); }
#v-perf .bar p { margin: 0; flex: 1 1 260px; }
@media (max-width: 900px) { .views { order: 2; } }

/* 6 Oct: source tabs, source line on every lead, chat */
.srcs { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.src { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; text-align: left; font: inherit; color: var(--ink); border-left-width: 4px; min-width: 0; }
.src__l { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.src__n { font-size: 20px; font-variant-numeric: tabular-nums; }
.src--ads { border-left-color: #1a73e8; } .src--organic { border-left-color: #188a4a; } .src--other { border-left-color: #8a8f98; } .src--all { border-left-color: var(--ink); }
.src[aria-pressed="true"] { background: var(--ink); color: var(--surface); border-color: var(--ink); }
.src--ads[aria-pressed="true"] { background: #1a73e8; border-color: #1a73e8; color: #fff; }
.src--organic[aria-pressed="true"] { background: #188a4a; border-color: #188a4a; color: #fff; }
.src:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
.lead { border-left: 4px solid transparent; }
.lead__src { display: flex; align-items: center; gap: 8px; margin-top: 3px; min-width: 0; font-size: 12.5px; color: var(--muted); }
.lead__srct { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lead__src .tag { flex: none; }
.tag--src-ads { color: #fff; background: #1a73e8; border-color: transparent; }
.tag--src-organic { color: #fff; background: #188a4a; }
.lead--chat .lead__ic, .lead__ic--chat { background: #efe9fb; color: #6b3fa0; }
.stat__src { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; margin-left: 6px; }
.dot:first-child { margin-left: 0; }
.dot--ads { background: #1a73e8; } .dot--organic { background: #188a4a; } .dot--other { background: #8a8f98; }
@media (max-width: 720px) { .srcs { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lead__srct { white-space: normal; } }
/* 29 Oct 2026: sales stage on the card */
.tag--stage { color: var(--ink); background: var(--surface-2); border-color: var(--line); }
.tag--stage-appointment, .tag--stage-site_visit, .tag--stage-proposal { color: #0b4f8a; background: #e3f0fc; border-color: transparent; }
.tag--stage-won { color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); border-color: transparent; }
.tag--stage-lost { opacity: .7; }
.dr__claim { margin: 4px 0 8px; }


/* ---------- Clicks: the owner's forensic view (16 Nov 2026) ---------- */
.fx-day { display: grid; gap: 10px; margin-top: 18px; }
.fx-day h2 { margin: 0; font-size: 16px; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.fx { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; display: grid; gap: 10px; min-width: 0; box-shadow: inset 3px 0 0 var(--line); }
.fx--contact, .fx--formsent { box-shadow: inset 3px 0 0 var(--ok); }
.fx--gated, .fx--formstart, .fx--popup { box-shadow: inset 3px 0 0 var(--call); }
.fx--bounce, .fx--novisit { box-shadow: inset 3px 0 0 var(--bad); }
.fx__h { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.fx__t { font-weight: 700; font-variant-numeric: tabular-nums; }
.fx__camp { color: var(--muted); font-size: 13px; min-width: 0; overflow-wrap: anywhere; }
.fx__cost { margin-left: auto; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.fx__g { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 16px; font-size: 14px; }
.fx__g > div { min-width: 0; overflow-wrap: anywhere; }
.fx__wide { grid-column: span 2; }
.fx__l { display: block; font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 2px; }
.fx__out { font-weight: 600; }
.fx__btns { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.fx__rt { flex-basis: 100%; }
.fx__ev summary { cursor: pointer; font-size: 13px; color: var(--muted); }
.fx__ev ol { margin: 6px 0 0; padding-left: 18px; font-size: 13px; display: grid; gap: 2px; }
.btn--sm { padding: 5px 10px; font-size: 13px; }
.how { font-style: normal; font-size: 11px; font-weight: 600; padding: 0 5px; border-radius: 5px; white-space: nowrap; vertical-align: 1px; border: 1px solid transparent; }
.how--exact { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.how--matched { color: #0b4f8a; background: #e3f0fc; }
.how--maybe { color: var(--call); background: var(--call-bg); }
.how--none { color: var(--muted); background: var(--surface-2); border-color: var(--line); }
.up { display: inline-block; font-size: 13px; padding: 2px 8px; border-radius: 6px; margin: 0 4px 4px 0; }
.up--sent { color: var(--ok); background: color-mix(in srgb, var(--ok) 12%, var(--surface)); }
.up--wait { color: #0b4f8a; background: #e3f0fc; }
.up--no { color: var(--bad); background: var(--bad-bg); }
@media (prefers-color-scheme: dark) { .how--matched, .up--wait { color: #9cc8f5; background: #12304d; } }
@media (max-width: 900px) { .fx__g { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .fx__g { grid-template-columns: minmax(0, 1fr); } .fx__wide { grid-column: auto; } .fx__cost { margin-left: 0; } }
.fx-filt > summary { cursor: pointer; font-size: 13px; color: var(--muted); padding: 4px 0; }
.fx-filt[open] { display: grid; gap: 10px; }
