/* BuyNsellBiz CRM — minimal brand theme.
   Brand: black + one orange (#F08E35, from the logo) on white.
   Principles: white surfaces, hairlines instead of boxes and shadows, colour only where it
   carries meaning (status dots, current/selected, next action), text does the rest. */
/* Avenir Next / Avenir where installed (all Macs); elsewhere bundled Nunito Sans (OFL), near-identical shapes. */
@font-face { font-family: "BnB Sans"; src: url(fonts/nunito-sans-latin-400-normal.woff2) format('woff2'); font-weight: 400; font-display: swap; }
@font-face { font-family: "BnB Sans"; src: url(fonts/nunito-sans-latin-500-normal.woff2) format('woff2'); font-weight: 500; font-display: swap; }
@font-face { font-family: "BnB Sans"; src: url(fonts/nunito-sans-latin-600-normal.woff2) format('woff2'); font-weight: 600; font-display: swap; }
@font-face { font-family: "BnB Sans"; src: url(fonts/nunito-sans-latin-700-normal.woff2) format('woff2'); font-weight: 700; font-display: swap; }

/* Layout: white app, hairline-divided sidebar, content column; nothing floats on shadows except menus and dialogs. */
:root {
  color-scheme: light;
  --bg: #ffffff; --soft: #f7f7f7; --hover: #f5f5f5; --line: #e9e9e9; --line-2: #f1f1f1;
  --ink: #111111; --ink-2: #444444; --ink-3: #6b6b6b;           /* ink-3 = 5.3:1 on white */
  --black: #000000; --black-2: #262626;
  --brand: #f08e35; --brand-50: #fef4eb; --brand-100: #fce3cc; --brand-ink: #a65a12;   /* brand-ink = 4.9:1 text on white */
  --ok: #1f9d55; --warn: var(--brand); --bad: #d23b2e; --prog: #111111; --idle: #b5b5b5;
  --ok-text: #17803f; --bad-text: #b8322a;
  --r: 8px; --r-lg: 12px;
  --sh-pop: 0 10px 30px rgba(0, 0, 0, .12), 0 1px 3px rgba(0, 0, 0, .06);
  --f: "Avenir Next", Avenir, "BnB Sans", "Segoe UI", system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font: 14.5px/1.55 var(--f); color: var(--ink); background: var(--bg); font-variant-numeric: tabular-nums; -webkit-font-smoothing: antialiased; }
a { color: var(--ink); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--idle); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-size: 22px; line-height: 1.25; } h2 { font-size: 17px; } h3 { font-size: 15px; } h4 { font-size: 13.5px; }
p { margin: 0 0 8px; }
:focus-visible { outline: 2px solid var(--black); outline-offset: 2px; border-radius: 4px; }
button, input, select, textarea { font: inherit; color: inherit; }
.muted { color: var(--ink-3); } .small { font-size: 12.5px; } .nowrap { white-space: nowrap; } .right { text-align: right; }
.hidden { display: none !important; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
svg { flex: none; }

/* ================================================================ shell */
.shell { display: grid; grid-template-columns: 252px minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 18px 14px 14px; border-right: 1px solid var(--line); background: var(--bg); min-width: 0; }
.ws { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; }
.ws .logo { height: 30px; width: auto; display: block; }
.ws .logo-mark { height: 30px; width: 30px; display: none; }
.ws .who { flex: 1; min-width: 0; }
.ws .who b, .ws .who span { display: none; }
.icon-btn { width: 30px; height: 30px; display: grid; place-items: center; border: 0; background: none; border-radius: 7px; color: var(--ink-3); cursor: pointer; }
.icon-btn:hover { background: var(--hover); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }
.side-search { position: relative; margin-bottom: 4px; }
.side-search > svg { position: absolute; left: 10px; top: 10px; width: 15px; height: 15px; color: var(--ink-3); pointer-events: none; }
.side-search input[type=search] { width: 100%; height: 35px; border: 1px solid var(--line); border-radius: var(--r); padding: 0 50px 0 32px; background: var(--bg); font-size: 13.5px; box-shadow: none; }
.side-search input[type=search]:focus { border-color: var(--ink); outline: none; box-shadow: none; }
.side-search input::placeholder { color: var(--ink-3); }
.kbd { position: absolute; right: 8px; top: 8px; display: flex; gap: 3px; pointer-events: none; }
.kbd span { min-width: 19px; height: 19px; border-radius: 4px; background: var(--soft); font-size: 10.5px; display: grid; place-items: center; color: var(--ink-3); padding: 0 4px; }
.search-results { position: absolute; top: 40px; left: 0; width: 420px; max-width: calc(100vw - 32px); background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-pop); max-height: 440px; overflow: auto; z-index: 40; padding: 4px; }
.search-results a { display: grid; grid-template-columns: 100px 1fr; gap: 1px 10px; padding: 8px 10px; border-radius: 7px; }
.search-results a:hover, .search-results a.sel { background: var(--hover); text-decoration: none; }
.search-results .t { grid-row: span 2; font-size: 11.5px; color: var(--ink-3); }
.nav { flex: 1; overflow-y: auto; margin: 0 -6px; padding: 0 6px; scrollbar-width: thin; }
.nav .grp { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 16px 10px 4px; background: none; border: 0; width: 100%; text-align: left; cursor: default; }
.nav button.grp { cursor: pointer; }
.nav button.grp:hover { color: var(--ink); }
.nav button.grp svg { width: 12px; height: 12px; transition: transform .15s; }
.nav .grp-items.closed { display: none; }
.nav > .grp-items:first-child { margin-top: 4px; }
.nav button.grp[aria-expanded=false] svg { transform: rotate(-90deg); }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; padding: 6px 10px; margin: 1px 0; border-radius: 7px; color: var(--ink-2); font-size: 14px; }
.nav a:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.nav a.on { background: var(--hover); color: var(--ink); font-weight: 600; }
.nav a.on::before { content: ""; position: absolute; left: -6px; top: 8px; bottom: 8px; width: 3px; border-radius: 2px; background: var(--brand); }
.nav svg { width: 17px; height: 17px; color: var(--ink-3); }
.nav a.on svg { color: var(--ink); }
.nav .count { margin-left: auto; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.nav .count.hot { color: var(--brand-ink); font-weight: 700; }
.nav .count.hot::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); margin-right: 5px; vertical-align: 1px; }
.side-foot { display: grid; gap: 4px; border-top: 1px solid var(--line); padding-top: 10px; }
.side-links a { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border-radius: 7px; color: var(--ink-2); font-size: 14px; }
.side-links a:hover { background: var(--hover); text-decoration: none; }
.side-links svg { width: 17px; height: 17px; color: var(--ink-3); }
.me-card, .demo-card { display: flex; align-items: center; gap: 10px; padding: 6px 4px 2px 6px; }
.me-card .who, .demo-card .who { flex: 1; min-width: 0; line-height: 1.3; }
.me-card b, .demo-card b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.me-card .who span, .demo-card .who span { font-size: 12px; color: var(--ink-3); }
.demo-card { background: var(--brand-50); border-radius: var(--r); padding: 8px 10px; margin: 2px 0 4px; }
.demo-card .badge { display: none; }
.demo-card button { border: 1px solid var(--brand-100); background: var(--bg); color: var(--ink); font-weight: 600; font-size: 12px; cursor: pointer; padding: 3px 9px; border-radius: 6px; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 11.5px; font-weight: 700; color: var(--ink); background: var(--soft) !important; flex: none; border: 1px solid var(--line); }
.avatars { display: none; }

/* collapsed sidebar */
.shell.mini { grid-template-columns: 64px minmax(0, 1fr); }
.shell.mini .side { padding-left: 10px; padding-right: 10px; }
.shell.mini .ws { flex-direction: column; padding: 0 0 8px; }
.shell.mini .ws .logo { display: none; } .shell.mini .ws .logo-mark { display: block; }
.shell.mini .nav a > span, .shell.mini .nav .grp span, .shell.mini .side-search, .shell.mini .side-links span, .shell.mini .me-card .who, .shell.mini .demo-card, .shell.mini .me-card .icon-btn { display: none; }
.shell.mini .nav a, .shell.mini .side-links a { justify-content: center; padding: 8px 0; }
.shell.mini .nav .count { position: absolute; top: 3px; right: 5px; font-size: 0; }
.shell.mini .nav .count:not(.hot) { display: none; }
.shell.mini .nav .grp { justify-content: center; padding: 10px 0 4px; }
.shell.mini .nav .grp::after { content: ""; width: 18px; border-top: 1px solid var(--line); }
.shell.mini .nav button.grp svg { display: none; }
.shell.mini .me-card { justify-content: center; padding: 6px 0; }

/* ================================================================ main */
.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .97); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 12px; padding: 16px 32px 14px; flex-wrap: wrap; }
.top .menu-btn { display: none; }
.ptitle { flex: 1; min-width: 200px; overflow: hidden; }
.ptitle .crumbs { font-size: 13px; margin-bottom: 2px; }
.ptitle .crumbs a { color: var(--ink-3); }
.ptitle h1 { font-size: 22px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.ptitle .psub { font-size: 13.5px; color: var(--ink-3); margin-top: 2px; max-width: 72ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tright { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.tright .vr { display: none; }
.sq-btn { position: relative; width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--line); background: var(--bg); border-radius: var(--r); cursor: pointer; color: var(--ink-2); }
.sq-btn:hover { background: var(--hover); color: var(--ink); }
.sq-btn svg { width: 17px; height: 17px; }
.sq-btn .dot { position: absolute; top: 7px; right: 8px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); }
.net { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.net i { width: 6px; height: 6px; border-radius: 50%; background: var(--ok); display: inline-block; }
.net.off i { background: var(--brand); } .net.down i { background: var(--bad); }
.banner { padding: 8px 32px; font-size: 13px; background: var(--brand-50); color: var(--brand-ink); border-bottom: 1px solid var(--brand-100); }
.banner.down { background: #fdeeed; color: var(--bad-text); border-color: #f6d0cc; }
.page { padding: 24px 32px 40px; width: 100%; max-width: 1440px; display: grid; gap: 20px; align-content: start; }
.page > * { min-width: 0; }

/* ================================================================ buttons & inputs */
.btn { display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 14px; border-radius: var(--r); border: 1px solid var(--line); background: var(--bg); cursor: pointer; font-weight: 600; font-size: 13.5px; white-space: nowrap; color: var(--ink); }
.btn:hover { background: var(--hover); border-color: #dadada; text-decoration: none; }
.btn.primary, .btn.go { background: var(--black); border-color: var(--black); color: #fff; }
.btn.primary:hover, .btn.go:hover { background: var(--black-2); }
.btn.danger { color: var(--bad-text); }
.btn.danger:hover { background: #fdeeed; }
.btn.on { border-color: var(--ink); background: var(--hover); }
.btn.sm { height: 30px; padding: 0 10px; font-size: 12.5px; border-radius: 7px; gap: 5px; }
.btn.ghost:hover { background: var(--hover); }
.btn.link { border-color: transparent; background: none; padding: 0 4px; text-decoration: underline; text-underline-offset: 3px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn svg { width: 16px; height: 16px; }
.btn.sm svg { width: 14px; height: 14px; }
.btn .pill { background: var(--brand); color: var(--black); font-size: 11px; font-weight: 700; border-radius: 5px; padding: 0 5px; line-height: 17px; }
.btn.wa-btn svg, .wa svg { color: #1a9e50; }
.wa-icon { border: 0; background: none; padding: 4px; border-radius: 6px; cursor: pointer; color: #1a9e50; display: inline-grid; place-items: center; vertical-align: middle; }
.wa-icon:hover { background: var(--hover); }
.wa-icon svg { width: 16px; height: 16px; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.switch { display: inline-flex; align-items: center; gap: 9px; font-size: 13.5px; cursor: pointer; user-select: none; white-space: nowrap; }
.switch input[type=checkbox] { appearance: none; width: 32px; height: 18px; border-radius: 9px; background: #d6d6d6; position: relative; margin: 0; cursor: pointer; transition: background .15s; flex: none; }
.switch input[type=checkbox]::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 50%; background: #fff; transition: transform .15s; }
.switch input[type=checkbox]:checked { background: var(--black); }
.switch input[type=checkbox]:checked::after { transform: translateX(14px); }
label.f { display: block; }
.f > span { display: block; font-size: 13px; font-weight: 600; color: var(--ink-2); margin-bottom: 5px; }
.f > span em { font-style: normal; color: var(--bad-text); }
.f small { display: block; color: var(--ink-3); font-size: 12.5px; margin-top: 4px; }
input[type=text], input[type=password], input[type=email], input[type=tel], input[type=number], input[type=date], input[type=datetime-local], input[type=search], select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--r); padding: 7px 11px; background: var(--bg); min-height: 36px; }
select { padding-right: 28px; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); }
input.invalid, select.invalid, textarea.invalid { border-color: var(--bad); }
input[type=checkbox] { accent-color: var(--black); width: 16px; height: 16px; cursor: pointer; }
.check { display: flex; gap: 9px; align-items: flex-start; font-size: 14px; }
.check input { margin-top: 3px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.span2 { grid-column: span 2; } .span3 { grid-column: 1 / -1; }
.cols > *, .cols2 > *, .stack > *, .grid2 > *, .grid3 > * { min-width: 0; }
fieldset { border: 1px solid var(--line); border-radius: var(--r-lg); padding: 14px; margin: 0; }
legend { font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }

/* ================================================================ surfaces */
.panel { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); }
.panel > header { display: flex; align-items: center; gap: 8px; padding: 14px 18px 10px; flex-wrap: wrap; }
.panel > header h2, .panel > header h3 { flex: 1; font-size: 15px; }
.panel > header .btn.sm { height: 28px; }
.panel > .body { padding: 6px 18px 18px; }
.panel > .body.flush { padding: 0 0 6px; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; align-items: start; }
.cols2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.stack { display: grid; gap: 20px; }
.dl { display: grid; grid-template-columns: 150px 1fr; gap: 9px 16px; margin: 0; }
.dl dt { color: var(--ink-3); font-size: 13.5px; }
.dl dd { margin: 0; overflow-wrap: anywhere; min-width: 0; }
.cols > :last-child .dl { grid-template-columns: 96px minmax(0, 1fr); }
.dl .ref { white-space: normal; }
.empty { padding: 26px 22px; text-align: center; color: var(--ink-3); }
.empty b { display: block; color: var(--ink); font-weight: 600; margin-bottom: 4px; }
.note { background: var(--soft); border-radius: var(--r); padding: 10px 12px; font-size: 13.5px; color: var(--ink-2); }
.note.warn { background: var(--brand-50); color: var(--brand-ink); }
.note.danger { background: #fdeeed; color: var(--bad-text); }

/* record ID: quiet reference text, never a coloured box */
.ref { display: inline; font-weight: 500; font-size: 12.5px; letter-spacing: .01em; color: var(--ink-3); white-space: nowrap; }
a .ref, a.ref { color: var(--ink-3); }
a:hover .ref { color: var(--ink); }
h1 .ref { font-size: 14px; font-weight: 500; }

/* status pill: tinted background + dot + bold text, so state reads at a glance.
   green done · orange needs action · dark in progress · red problem · grey inactive */
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; white-space: nowrap; line-height: 20px; padding: 1px 10px 1px 8px; border-radius: 999px; background: #f1f1f1; color: #3d3d3d; cursor: default; }
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--idle); flex: none; }
.chip.ok, .chip.deal { background: #e6f5ec; color: #146a35; } .chip.ok::before, .chip.deal::before { background: var(--ok); }
.chip.warn, .chip.accent { background: #fdecd9; color: #8f4808; } .chip.warn::before, .chip.accent::before { background: var(--brand); }
.chip.info, .chip.buyer, .chip.seller { background: #ececec; color: #111; } .chip.info::before, .chip.buyer::before, .chip.seller::before { background: var(--prog); }
.chip.danger { background: #fdeae8; color: #ad2a20; } .chip.danger::before { background: var(--bad); }
.chip.grey { background: #f3f3f3; color: #5f5f5f; } .chip.grey::before { background: var(--idle); }
.chip.plain::before { display: none; }
.chip.lg { font-size: 14px; padding: 4px 14px 4px 11px; gap: 8px; } .chip.lg::before { width: 8px; height: 8px; }
[data-tip] { cursor: help; }
button[data-tip], a[data-tip], th[data-tip] { cursor: pointer; }

/* tooltip */
.tip { /* raised, brand-orange tooltip */
  --tip-top: #f7ac66; --tip-mid: #f08e35; --tip-deep: #d9741c; --tip-edge: #b85f12;
  position: absolute; z-index: 70; max-width: 300px; padding: 9px 13px 10px; border-radius: 10px; pointer-events: none;
  color: #1a0d00; font-size: 13px; line-height: 1.45; font-weight: 600; text-shadow: 0 1px 0 rgba(255, 255, 255, .35);
  background: linear-gradient(180deg, var(--tip-top) 0%, var(--tip-mid) 45%, var(--tip-deep) 100%);
  border: 1px solid var(--tip-deep);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .55), inset 0 -2px 0 rgba(0, 0, 0, .08), 0 3px 0 var(--tip-edge), 0 10px 22px rgba(120, 60, 0, .28), 0 2px 6px rgba(0, 0, 0, .12);
  transform-origin: var(--ax, 50%) 100%; animation: tipin .14s ease-out;
}
.tip[data-side=bottom] { transform-origin: var(--ax, 50%) 0; }
.tip::after { /* pointer toward the hovered item */
  content: ""; position: absolute; left: var(--ax, 50%); width: 12px; height: 12px; margin-left: -6px; transform: rotate(45deg);
  background: var(--tip-deep); border: 1px solid var(--tip-deep);
}
.tip[data-side=top]::after { bottom: -10px; background: var(--tip-edge); border-color: var(--tip-edge); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.tip[data-side=bottom]::after { top: -7px; background: var(--tip-top); border-color: var(--tip-deep); clip-path: polygon(0 0, 100% 0, 0 100%); }
@keyframes tipin { from { opacity: 0; transform: translateY(3px) scale(.96); } to { opacity: 1; transform: none; } }
.tip-i { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; border: 1px solid #cfcfcf; color: var(--ink-3); font-size: 11px; font-weight: 700; cursor: help; vertical-align: 1px; margin-left: 4px; flex: none; }
.tip-i:hover, .tip-i:focus-visible { border-color: var(--brand); background: var(--brand); color: var(--black); }

/* dashboard journey: the whole process in one row */
.journey { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.journey a { position: relative; padding: 12px 14px 13px; display: grid; gap: 2px; color: var(--ink); min-width: 0; }
.journey a + a { border-left: 1px solid var(--line-2); }
.journey a:hover { background: var(--hover); text-decoration: none; }
.journey .n { font-size: 11.5px; font-weight: 700; color: var(--ink-3); }
.journey .l { font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.journey .c { font-size: 22px; font-weight: 600; line-height: 1.2; }
.journey .c.hot { color: var(--brand-ink); }
.journey-h { display: flex; align-items: baseline; gap: 8px; margin-bottom: -10px; }
.journey-h h3 { font-size: 15px; }

/* journey modal (pipeline explained) */
.jlist { list-style: none; margin: 0; padding: 0; display: grid; }
.jlist li { display: grid; grid-template-columns: 28px 1fr; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line-2); }
.jlist li:first-child { border-top: 0; }
.jlist .num { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: var(--soft); color: var(--ink-3); }
.jlist li.done .num { background: var(--ink); color: #fff; }
.jlist li.cur .num { background: var(--brand); color: var(--black); }
.jlist li.cur { background: var(--brand-50); margin: 0 -12px; padding-left: 12px; padding-right: 12px; border-radius: 8px; }
.jlist b { display: block; }
.jlist span { font-size: 13.5px; color: var(--ink-2); }

.band-Strong { color: var(--ok-text); } .band-Potential { color: var(--brand-ink); } .band-Low { color: var(--ink-3); }

/* ================================================================ list pages */
.ltool { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ltool .sp { flex: 1; }
.ltool .vr { display: none; }
.tsearch { position: relative; width: 280px; max-width: 100%; }
.tsearch svg { position: absolute; left: 11px; top: 10px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.tsearch input[type=search] { padding-left: 34px; }
.tfilters { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 0 0; border-top: 1px solid var(--line-2); }
.tfilters select { width: auto; min-height: 32px; padding: 4px 28px 4px 10px; font-size: 13.5px; }
.tfilters select.set { border-color: var(--ink); font-weight: 600; }
.tfilters .lbl { font-size: 13px; color: var(--ink-3); margin-right: 2px; }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.kpis + .kpis { border-top: 0; }
.kpis.six { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 980px) { .kpis.six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kpi { padding: 14px 20px 15px 0; min-width: 0; display: block; color: var(--ink); }
.kpi + .kpi { padding-left: 20px; border-left: 1px solid var(--line-2); }
a.kpi:hover { text-decoration: none; background: linear-gradient(var(--hover), var(--hover)) padding-box; }
.kpi .k { font-size: 13px; color: var(--ink-3); display: flex; align-items: center; gap: 5px; }
.kpi .k svg { display: none; }
.kpi .v { font-size: 26px; font-weight: 600; line-height: 1.2; margin-top: 4px; letter-spacing: -.02em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .s { font-size: 12.5px; color: var(--ink-3); margin-top: 3px; display: flex; gap: 8px; flex-wrap: wrap; }
.delta { font-size: 12.5px; font-weight: 600; color: var(--ok-text); }
.delta.flat { color: var(--ink-3); font-weight: 500; }
.delta.warn { color: var(--brand-ink); }
.tcard { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: clip; }
.tbl-wrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; font-weight: 600; font-size: 12.5px; color: var(--ink-3); padding: 12px 14px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--bg); }
.t th.sortable { cursor: pointer; user-select: none; }
.t th.sortable:hover { color: var(--ink); }
.t th .arr { font-size: 9px; margin-left: 4px; color: var(--ink); }
.t td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; white-space: nowrap; }
.t td.wrap { white-space: normal; min-width: 168px; }
.panel .t td { white-space: normal; }
.panel .t td.num { white-space: nowrap; }
.t tbody tr:last-child td { border-bottom: 0; }
.t tr.click { cursor: pointer; }
.t tbody tr:hover td { background: var(--hover); }
.t tr.sel td, .t tr.sel:hover td { background: var(--brand-50); }
.t tr.sel td:first-child { box-shadow: inset 3px 0 0 var(--brand); }
.t td.num, .t th.right { text-align: right; white-space: nowrap; }
.t .cbx { width: 44px; text-align: center; padding-left: 16px; padding-right: 4px; }
.t .name { font-weight: 600; }
.t a.name { display: inline-block; }
.t .sub { font-size: 12.5px; color: var(--ink-3); }
.t .idline { display: flex; align-items: center; gap: 8px; margin-top: 1px; font-size: 12.5px; color: var(--ink-3); }
.pager { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 13px; color: var(--ink-3); flex-wrap: wrap; }
.pager .grp { display: flex; align-items: center; gap: 8px; }
.pager select { width: auto; min-height: 30px; padding: 2px 26px 2px 9px; font-size: 13px; }
.pager input { width: 50px; min-height: 30px; padding: 3px 8px; text-align: center; }
.pages { display: flex; gap: 4px; align-items: center; }
.pages button { min-width: 30px; height: 30px; border: 0; background: none; border-radius: 7px; cursor: pointer; font-size: 13px; font-weight: 600; color: var(--ink-2); padding: 0 6px; }
.pages button:hover:not([disabled]) { background: var(--hover); color: var(--ink); }
.pages button.on { background: var(--brand); color: var(--black); }
.pages button[disabled] { opacity: .35; cursor: default; }
.pages .gap { color: var(--ink-3); padding: 0 2px; }
.bulkbar { position: sticky; bottom: 18px; z-index: 15; display: flex; align-items: center; gap: 8px; width: fit-content; max-width: calc(100% - 24px); margin: -26px auto 8px; transform: translateY(-14px); background: var(--black); color: #fff; border-radius: var(--r-lg); box-shadow: var(--sh-pop); padding: 6px 6px 6px 16px; flex-wrap: wrap; }
.bulkbar .n { font-size: 13.5px; color: #bdbdbd; margin-right: 6px; } .bulkbar .n b { color: #fff; font-weight: 700; }
.bulkbar select { width: auto; min-height: 30px; padding: 2px 26px 2px 9px; font-size: 13px; border-color: #3a3a3a; background: #1c1c1c; color: #fff; }
.bulkbar .btn.primary { background: var(--brand); border-color: var(--brand); color: var(--black); }
.bulkbar .icon-btn { color: #bdbdbd; } .bulkbar .icon-btn:hover { background: #262626; color: #fff; }
.overdue { color: var(--bad-text); font-weight: 600; }
.duetoday { color: var(--brand-ink); font-weight: 600; }

/* popover menu (View options) */
.pop { position: absolute; z-index: 55; min-width: 230px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--sh-pop); padding: 6px; display: grid; gap: 1px; }
.pop .h { font-size: 12px; font-weight: 600; color: var(--ink-3); padding: 8px 10px 4px; }
.pop button, .pop a { display: flex; align-items: center; gap: 10px; width: 100%; text-align: left; border: 0; background: none; padding: 8px 10px; border-radius: 7px; cursor: pointer; font-size: 13.5px; color: var(--ink); }
.pop button:hover, .pop a:hover { background: var(--hover); text-decoration: none; }
.pop svg { width: 16px; height: 16px; color: var(--ink-3); }
.pop hr { border: 0; border-top: 1px solid var(--line-2); margin: 4px 0; }
.pop .tick { margin-left: auto; color: var(--ink); font-weight: 700; }

/* column picker */
.colpick { display: grid; gap: 2px; }
.colpick label { display: flex; gap: 10px; align-items: center; padding: 8px 6px; border-bottom: 1px solid var(--line-2); cursor: pointer; }
.colpick label:has(input:disabled) { color: var(--ink-3); cursor: default; }

/* generic in-card toolbar */
.tbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line-2); }
.tbar .sp { flex: 1; }

/* ================================================================ tabs & segmented */
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 0; cursor: pointer; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.tabs button:hover { color: var(--ink); }
.tabs button.on { color: var(--ink); border-bottom-color: var(--brand); }
.tabs .n { font-size: 12px; color: var(--ink-3); font-weight: 500; }
.seg { display: inline-flex; gap: 18px; flex-wrap: wrap; border-bottom: 1px solid var(--line); }
.seg a { padding: 6px 0 9px; font-size: 14px; font-weight: 600; color: var(--ink-3); border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.seg a:hover { color: var(--ink); text-decoration: none; }
.seg a.on { color: var(--ink); border-bottom-color: var(--brand); }
.seg a .n { color: var(--ink-3); margin-left: 5px; font-size: 12.5px; font-weight: 500; }

/* ================================================================ record header */
.rec-head { padding-bottom: 4px; }
.rec-top { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.rec-top .who { flex: 1; min-width: 260px; }
.rec-top .who h1 { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 24px; }
.rec-meta { display: flex; gap: 6px 28px; flex-wrap: wrap; margin-top: 12px; font-size: 14px; }
.rec-meta div { display: flex; flex-direction: column; gap: 2px; }
.rec-meta label { font-size: 12.5px; color: var(--ink-3); }
.rec-kind { display: none; }
.next { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 16px; margin-top: 16px; background: var(--brand-50); border-radius: var(--r); flex-wrap: wrap; box-shadow: inset 3px 0 0 var(--brand); }
.next .lbl { font-size: 12.5px; font-weight: 700; color: var(--brand-ink); white-space: nowrap; }
.next .txt { flex: 1; font-weight: 600; color: var(--ink); min-width: 200px; }
.next .why { display: block; font-weight: 400; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.next.flash { animation: nextflash 1.6s ease-out; }
@keyframes nextflash { 0% { box-shadow: inset 3px 0 0 var(--brand), 0 0 0 3px var(--brand); } 100% { box-shadow: inset 3px 0 0 var(--brand), 0 0 0 3px transparent; } }
.next.muted { background: var(--soft); box-shadow: inset 3px 0 0 var(--idle); }
.next.muted .lbl { color: var(--ink-3); } .next.muted .txt { color: var(--ink-2); font-weight: 500; }
.next.danger { background: #fdeeed; box-shadow: inset 3px 0 0 var(--bad); }
.next.danger .txt, .next.danger .lbl { color: var(--bad-text); }

/* pipeline progress */
.progress { margin-top: 16px; display: grid; gap: 7px; max-width: 760px; }
.pbar { display: flex; gap: 3px; }
.pbar i { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.pbar i.done { background: var(--ink-2); }
.pbar i.cur { background: var(--brand); }
.plabel { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 4px 14px; flex-wrap: wrap; align-items: baseline; }
.plabel b { color: var(--ink); font-weight: 600; }
.plabel .step { font-size: 12.5px; }
.plabel .jlink { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--idle); }
.pbar i { cursor: help; }

/* score */
.score { display: inline-flex; align-items: center; gap: 7px; cursor: pointer; background: none; border: 0; padding: 0; }
.score .bar { width: 48px; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; }
.score .bar i { display: block; height: 100%; background: var(--ink); }
.score b { font-weight: 600; font-size: 14px; }
.factors { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.factors td { padding: 8px 4px; border-bottom: 1px solid var(--line-2); }
.factors td:last-child { text-align: right; white-space: nowrap; font-weight: 600; }
.meter { height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; min-width: 60px; }
.meter i { display: block; height: 100%; background: var(--ink); }

/* ================================================================ timeline */
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: grid; grid-template-columns: 18px 1fr; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-2); }
.tl li:last-child { border-bottom: 0; }
.tl .dot { width: 7px; height: 7px; border-radius: 50%; margin: 7px auto 0; background: var(--idle); }
.tl .dot.user { background: var(--ink); }
.tl .dot.whatsapp { background: #1a9e50; } .tl .dot.payment { background: var(--ok); } .tl .dot.repeat { background: var(--brand); }
.tl .ttl { font-weight: 600; }
.tl .meta { font-size: 12.5px; color: var(--ink-3); margin-top: 1px; }
.tl .bd { white-space: pre-wrap; font-size: 13.5px; color: var(--ink-2); margin-top: 2px; }
.tl .sys { font-size: 11.5px; color: var(--ink-3); margin-left: 6px; font-weight: 500; }

/* ================================================================ dashboard */
.mini { display: grid; gap: 8px; }
.mini div { display: grid; grid-template-columns: minmax(120px, 190px) 1fr 30px; gap: 12px; align-items: center; font-size: 13px; color: var(--ink-2); }
.mini .b { height: 6px; border-radius: 3px; background: var(--line-2); overflow: hidden; }
.mini .b i { display: block; height: 100%; border-radius: 3px; background: var(--ink); }
.mini span:last-child { text-align: right; font-weight: 600; color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; }
.list li { display: flex; gap: 12px; align-items: center; padding: 10px 18px; border-top: 1px solid var(--line-2); font-size: 14px; }
.list li .grow { flex: 1; min-width: 0; }
.list li:hover { background: var(--hover); }
.list .kind { font-size: 12px; color: var(--ink-3); width: 64px; flex: none; }

/* matches & visit stages */
.match { display: grid; grid-template-columns: 64px 1fr auto; gap: 14px; padding: 16px 18px; border-bottom: 1px solid var(--line-2); align-items: start; }
.match:last-child { border-bottom: 0; }
.match .sc { text-align: left; }
.match .sc b { font-size: 24px; display: block; line-height: 1.1; font-weight: 600; }
.match .sc span { font-size: 12px; font-weight: 600; }
.match .pair { display: grid; gap: 4px; min-width: 0; }
.match details { font-size: 13px; color: var(--ink-2); margin-top: 4px; }
.match summary { cursor: pointer; color: var(--ink-2); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--idle); }
.stages { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--r-lg); }
.stage { padding: 14px; display: flex; flex-direction: column; gap: 6px; min-height: 120px; }
.stage + .stage { border-left: 1px solid var(--line); }
.stage .n { font-size: 12.5px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.stage h4 { line-height: 1.35; font-size: 14px; }
.stage .v { font-size: 13px; padding-top: 6px; }
.stage .btn { align-self: flex-start; }

/* ================================================================ dialogs, toasts */
.modal-bg { position: fixed; inset: 0; background: rgba(0, 0, 0, .28); display: grid; place-items: start center; padding: 7vh 16px; z-index: 50; overflow-y: auto; }
.modal { background: var(--bg); border-radius: 14px; width: 100%; max-width: 540px; box-shadow: var(--sh-pop); }
.modal.wide { max-width: 820px; } .modal.xwide { max-width: 1180px; }
.modal > header { padding: 18px 22px 6px; display: flex; align-items: center; }
.modal > header h2 { flex: 1; font-size: 17px; }
.modal > .body { padding: 12px 22px 18px; display: grid; gap: 14px; }
.modal > footer { padding: 14px 22px; border-top: 1px solid var(--line-2); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.modal .err { color: var(--bad-text); background: #fdeeed; padding: 9px 12px; border-radius: var(--r); font-size: 13.5px; }
.x { background: none; border: 0; font-size: 22px; line-height: 1; cursor: pointer; color: var(--ink-3); padding: 2px 6px; border-radius: 6px; }
.x:hover { color: var(--ink); background: var(--hover); }
.toasts { position: fixed; bottom: 18px; right: 18px; display: grid; gap: 8px; z-index: 60; }
.toast { background: var(--black); color: #fff; padding: 11px 15px; border-radius: var(--r); font-size: 13.5px; box-shadow: var(--sh-pop); max-width: 420px; }
.toast.err { background: var(--bad-text); }

/* ================================================================ login */
.login { min-height: 100vh; display: grid; place-items: center; padding: 32px 16px; background: var(--bg); }
.login .card { width: 100%; max-width: 400px; display: grid; gap: 22px; }
.login .card .logo { height: 40px; width: auto; }
.login form { display: grid; gap: 14px; }
.login form h2 { font-size: 20px; }
.login .steps { font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 16px; }

/* ================================================================ misc modules */
.mapgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13.5px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 1fr); gap: 14px; overflow-x: auto; padding-bottom: 6px; }
.board .col { min-height: 140px; }
.board .col h4 { padding: 0 2px 10px; display: flex; justify-content: space-between; font-size: 13.5px; border-bottom: 2px solid var(--ink); margin-bottom: 10px; }
.board .col h4 .muted { font-weight: 500; }
.board .card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--r); padding: 11px 12px; margin-bottom: 8px; font-size: 13.5px; cursor: pointer; display: grid; gap: 4px; color: var(--ink); }
.board .card:hover { border-color: #cfcfcf; text-decoration: none; }
.perm td, .perm th { text-align: center; } .perm td:first-child, .perm th:first-child { text-align: left; }
.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.gallery a { display: block; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; font-size: 12.5px; color: var(--ink-2); background: var(--bg); }
.gallery img { width: 100%; height: 100px; object-fit: cover; display: block; background: var(--soft); }
.gallery .fi { height: 100px; display: grid; place-items: center; background: var(--soft); color: var(--ink-3); font-weight: 600; }
.gallery span { display: block; padding: 5px 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.day { font-weight: 600; font-size: 13.5px; color: var(--ink); padding: 14px 18px 6px; }
.help-steps { display: grid; gap: 12px; margin: 0; padding: 0; list-style: none; counter-reset: s; }
.help-steps li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; font-size: 14px; }
.help-steps li::before { counter-increment: s; content: counter(s); width: 22px; height: 22px; border-radius: 50%; background: var(--brand); color: var(--black); display: grid; place-items: center; font-weight: 700; font-size: 12px; }
.scrim { display: none; }

/* ================================================================ reference layout layer
   Grey sidebar with white active pill · compact title bar with count · full-bleed list views:
   KPI strip with sparklines → tabs → icon toolbar → flat table · outlined uppercase statuses ·
   segmented score bars · dark floating bulk bar. Brand orange marks action and the current place. */
:root { --px: 32px; --side: #f7f7f8; --side-line: #ececee; --th: #8a8a8a; }
.page { padding: 24px var(--px) 40px; max-width: none; grid-template-columns: minmax(0, 1fr); }
.lview, .lview > * { min-width: 0; }

/* sidebar */
.side { background: var(--side); border-right-color: var(--side-line); padding: 16px 12px 12px; }
.ws { padding: 2px 6px 12px; }
.side-search input[type=search] { background: #ececee; border-color: transparent; height: 34px; padding-right: 36px; }
.side-search input[type=search]:focus { background: #fff; border-color: #cfcfd2; }
.kbd { top: 8px; right: 8px; }
.kbd span { background: #fff; border: 1px solid #dcdcdf; min-width: 18px; height: 18px; font-weight: 600; }
.nav .grp { text-transform: uppercase; letter-spacing: .08em; font-size: 11px; font-weight: 600; color: #9a9aa0; padding: 18px 10px 6px; }
.nav button.grp svg { width: 12px; height: 12px; order: -1; }
.nav a { color: #3a3a3d; font-size: 14px; padding: 7px 10px; border-radius: 8px; white-space: nowrap; }
.nav a > span:not(.count) { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.nav a:hover { background: #efeff1; }
.nav a.on { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 0 0 1px var(--side-line), 0 1px 2px rgba(0, 0, 0, .06); }
.nav a.on::before { display: none; }
.nav a.on svg { color: var(--ink); }
.nav .count { min-width: 20px; height: 19px; padding: 0 6px; border: 1px solid #e1e1e4; background: #fff; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--ink-3); display: inline-grid; place-items: center; line-height: 1; }
.nav .count.hot { background: var(--brand-50); border-color: var(--brand-100); color: var(--brand-ink); }
.nav .count.hot::before { display: none; }
.side-foot { border-top-color: var(--side-line); }
.demo-card { background: #fff; border: 1px solid var(--side-line); }
.me-card .avatar { width: 34px; height: 34px; }

/* title bar */
.top { padding: 12px var(--px); min-height: 64px; gap: 14px; }
.ptitle h1 { font-size: 20px; gap: 8px; align-items: baseline; flex-wrap: nowrap; }
.ptitle h1 .cnt { font-size: 20px; font-weight: 400; color: #a0a0a5; }
.ptitle .tinfo { align-self: center; display: inline-grid; place-items: center; color: #a0a0a5; cursor: help; border-radius: 50%; }
.ptitle .tinfo:hover, .ptitle .tinfo:focus-visible { color: var(--brand-ink); }
.ptitle .tinfo svg { width: 16px; height: 16px; }
.ptitle .psub { font-size: 13px; margin-top: 1px; }
.tright { gap: 12px; }
.ticons { display: flex; gap: 2px; }
.tic { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: #6b6b70; cursor: pointer; }
.tic:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.tic svg { width: 18px; height: 18px; }
.tic .dot { position: absolute; top: 6px; right: 7px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 2px #fff; }
.team { display: flex; align-items: center; padding-left: 6px; cursor: default; }
.team .avatar { width: 30px; height: 30px; margin-left: -8px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.team .avatar:first-child { margin-left: 0; }
.team .avatar.more { background: var(--brand-50) !important; color: var(--brand-ink); font-size: 11px; }

/* buttons: solid orange primary (dark text keeps it readable), soft grey, tinted add */
.btn { border-radius: 8px; }
.btn.primary, .btn.go { background: var(--brand); border-color: var(--brand); color: #1a0d00; box-shadow: inset 0 -1px 0 rgba(0, 0, 0, .08); }
.btn.primary:hover, .btn.go:hover { background: #e8802a; border-color: #e8802a; }
.btn.primary svg, .btn.go svg { color: #1a0d00; }
.btn.soft { background: #f3f3f5; border-color: transparent; color: #3a3a3d; }
.btn.soft:hover { background: #ebebee; }
.btn.add { background: var(--brand-50); border-color: #fbd7b6; color: var(--brand-ink); }
.btn.add:hover { background: var(--brand-100); }
.btn.add svg { color: var(--brand); }
.btn .pill { background: var(--brand); color: #1a0d00; }
.help-steps li::before, .pages button.on { color: #1a0d00; }

/* checkboxes: rounded, orange when ticked */
input[type=checkbox]:not(.switch input) { appearance: none; -webkit-appearance: none; width: 17px; height: 17px; margin: 0; border: 1.5px solid #cdcdd2; border-radius: 5px; background: #fff; display: inline-grid; place-items: center; vertical-align: middle; transition: background .1s, border-color .1s; }
input[type=checkbox]:not(.switch input):hover { border-color: #a9a9ae; }
input[type=checkbox]:not(.switch input):checked { background: var(--brand) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.5 8.5l3 3 6-6.5' fill='none' stroke='%23fff' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 13px no-repeat; border-color: var(--brand); }
input[type=checkbox]:not(.switch input):indeterminate { background: var(--brand); border-color: var(--brand); }
.switch input[type=checkbox]:checked { background: var(--brand); }

/* status: outlined, uppercase, colour by meaning */
.chip { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; line-height: 16px; padding: 2px 8px; border-radius: 5px; border: 1px solid #d9d9dc; background: #fff; color: #4a4a4f; gap: 5px; }
.chip::before { display: none; }
.chip.ok, .chip.deal { border-color: #a6dab8; background: #f1faf4; color: #146a35; }
.chip.warn, .chip.accent { border-color: #f5c597; background: #fff7ef; color: #8f4808; }
.chip.info, .chip.buyer, .chip.seller { border-color: #c9c9ce; background: #f7f7f8; color: #1c1c1f; }
.chip.danger { border-color: #f1b5af; background: #fff5f4; color: #ad2a20; }
.chip.grey { border-color: #e1e1e4; background: #fff; color: #6b6b70; }
.chip.lg { font-size: 12.5px; padding: 4px 11px; border-radius: 6px; letter-spacing: .04em; }

/* score: ten segments + n/10 */
.segs { display: inline-flex; align-items: center; gap: 2px; white-space: nowrap; }
.segs i { width: 4px; height: 16px; border-radius: 1.5px; background: #e6e6e9; }
.segs b { margin-left: 7px; font-size: 11.5px; font-weight: 600; color: var(--ink-2); border: 1px solid #e1e1e4; border-radius: 5px; padding: 0 5px; line-height: 18px; }
.score { gap: 0; }
.score:hover .segs b { border-color: var(--brand); color: var(--brand-ink); }

/* KPI tiles: label, big number + trend, note, sparkline at right */
.kpis { border-color: var(--line); }
.kpi { display: flex; align-items: flex-end; gap: 12px; padding: 16px 20px 16px 0; }
.kpi + .kpi { padding-left: 20px; border-left-color: var(--line); }
.kpi .kt { flex: 1; min-width: 0; }
.kpi .k { white-space: nowrap; }
.kpi .vrow { display: flex; align-items: baseline; gap: 2px 8px; margin-top: 4px; min-width: 0; flex-wrap: wrap; }
.kpi .v { margin-top: 0; font-size: 26px; overflow: visible; }
.kpi .s { margin-top: 2px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trend { display: inline-flex; align-items: center; gap: 2px; font-size: 12.5px; font-weight: 700; white-space: nowrap; }
.trend svg { width: 14px; height: 14px; stroke-width: 2.2; }
.trend.up { color: var(--ok-text); } .trend.down { color: var(--bad-text); } .trend.flat { color: var(--ink-3); font-weight: 600; }
.spark { width: 96px; height: 38px; flex: none; overflow: visible; margin-bottom: 2px; }
@media (max-width: 1360px) { .spark { width: 72px; } .kpi .v { font-size: 23px; } }

/* full-bleed list view */
.page > .lview { margin: 0 calc(-1 * var(--px)); display: grid; }
.page > .lview:first-child { margin-top: -24px; }
.lview > div > .kpis { border-top: 0; }
.lview .kpi:first-child { padding-left: var(--px); }
.lview .kpi:last-child { padding-right: var(--px); }
.ttabs { display: flex; gap: 26px; padding: 0 var(--px); border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.ttabs button { background: none; border: 0; padding: 13px 1px 11px; margin-bottom: -1px; border-bottom: 2px solid transparent; font-size: 14px; font-weight: 500; color: #4a4a4f; cursor: pointer; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.ttabs button:hover { color: var(--ink); }
.ttabs button.on { color: var(--brand-ink); border-bottom-color: var(--brand); font-weight: 600; }
.ttabs .n { font-size: 11px; font-weight: 600; color: var(--ink-3); background: #f1f1f3; border-radius: 5px; padding: 0 6px; line-height: 18px; }
.ttabs button.on .n { background: var(--brand-50); color: var(--brand-ink); }
.lview > .ltool { padding: 14px var(--px); gap: 10px; }
.lview > .tfilters { padding: 0 var(--px) 14px; border-top: 0; }
.tsearch input[type=search] { background: #f3f3f5; border-color: transparent; height: 36px; border-radius: 8px; }
.tsearch input[type=search]:focus { background: #fff; border-color: #cfcfd2; }
.tico { display: inline-flex; gap: 2px; }
.ib { position: relative; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: none; border-radius: 8px; color: #6b6b70; cursor: pointer; }
.ib:hover, .ib.on { background: #f1f1f3; color: var(--ink); }
.ib svg { width: 18px; height: 18px; }
.ib .pill { position: absolute; top: 2px; right: 1px; min-width: 15px; height: 15px; border-radius: 8px; background: var(--brand); color: #1a0d00; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.lview > .tcard { border: 0; border-top: 1px solid var(--line); border-radius: 0; overflow: visible; }
.lview .t td:first-child, .lview .t th:first-child { padding-left: var(--px); }
.lview .t td:last-child, .lview .t th:last-child { padding-right: var(--px); }
.lview .pager { padding: 12px var(--px); }

/* table */
.t th { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; font-weight: 600; color: var(--th); padding: 13px 14px 11px; border-bottom-color: var(--line); }
.t th.sortable:hover { color: var(--ink-2); }
.t th .arr { color: var(--brand); }
.t td { padding: 12px 11px; border-bottom-color: #f0f0f2; }
.t th { padding-left: 11px; padding-right: 11px; }
.t .dd { display: block; font-size: 11.5px; font-weight: 600; line-height: 1.2; }
.panel .t .dd, .list .dd, .dl .dd, .rec-meta .dd { display: inline; font-size: inherit; }
@media (max-width: 1380px) { .lview .t .opt { display: none; } }
.t td.menu, .t th.menu { position: sticky; right: 0; background: #fff; }
.t tbody tr:hover td.menu { background: #fafafb; } .t tr.sel td.menu { background: #fffaf4; }
.t td.wrap.namecol { min-width: 200px; }
.t tbody tr:hover td { background: #fafafb; }
.t tr.sel td, .t tr.sel:hover td { background: #fffaf4; }
.t tr.sel td:first-child { box-shadow: none; }
.t .cbx { width: 48px; }
.t td.menu, .t th.menu { width: 52px; text-align: right; }
.btn.rowmore { width: 32px; height: 30px; padding: 0; justify-content: center; border-color: transparent; background: none; color: #8a8a8f; }
.btn.rowmore:hover, .btn.rowmore[aria-expanded=true] { background: #f1f1f3; color: var(--ink); }
.btn.rowmore svg { width: 18px; height: 18px; stroke-width: 2.6; }

/* bulk bar */
.bulkbar { background: #111113; border-radius: 12px; padding: 7px 7px 7px 16px; gap: 10px; box-shadow: 0 12px 32px rgba(0, 0, 0, .22), 0 2px 6px rgba(0, 0, 0, .12); }
.bulkbar .n { color: #b9b9be; margin: 0; white-space: nowrap; } .bulkbar .n b { color: #fff; }
.bulkbar .vr { width: 1px; height: 20px; background: #34343a; }
.bulkbar .bk { display: inline-flex; align-items: center; gap: 6px; color: #fff; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.bulkbar .bk svg { width: 16px; height: 16px; }
.bulkbar select { border-color: #34343a; background: #1d1d21; }
.bulkbar .btn.primary { height: 30px; }
.bulkbar .discard { height: 30px; padding: 0 14px; border-radius: 8px; border: 0; background: #fff; color: #d23b2e; font-weight: 600; font-size: 13px; cursor: pointer; }
.bulkbar .discard:hover { background: #fdeeed; }

/* ================================================================ status v2: filled pills, one colour per phase
   Readable at a glance: tinted fill + coloured dot + bold sentence-case text. */
.chip { font-size: 12.5px; font-weight: 700; letter-spacing: 0; text-transform: none; line-height: 18px; padding: 2px 10px 2px 8px; border-radius: 999px; border: 0; gap: 6px; background: #f0f0f2; color: #3d3d42; }
.chip::before { display: block; content: ""; width: 7px; height: 7px; border-radius: 50%; background: #a8a8ae; flex: none; }
.chip.plain::before { display: none; }
.chip.ok, .chip.deal { background: #e3f5ea; color: #136234; } .chip.ok::before, .chip.deal::before { background: #1f9d55; }
.chip.warn, .chip.accent { background: #fdebd8; color: #8a4507; } .chip.warn::before, .chip.accent::before { background: #f08e35; }
.chip.info, .chip.buyer, .chip.seller { background: #e9eef8; color: #24426f; } .chip.info::before, .chip.buyer::before, .chip.seller::before { background: #4a74b8; }
.chip.danger { background: #fde7e5; color: #a8261c; } .chip.danger::before { background: #d23b2e; }
.chip.grey { background: #f0f0f2; color: #5c5c62; } .chip.grey::before { background: #a8a8ae; }
.chip.ph-new { background: #e4edfd; color: #1745ad; } .chip.ph-new::before { background: #2f6fed; }
.chip.ph-qualifying { background: #fff1d6; color: #835000; } .chip.ph-qualifying::before { background: #eba300; }
.chip.ph-matching, .chip.ph-listing { background: #efe8fe; color: #5427a8; } .chip.ph-matching::before, .chip.ph-listing::before { background: #7c4ddb; }
.chip.ph-live { background: #dff4f2; color: #0a625d; } .chip.ph-live::before { background: #14a39a; }
.chip.ph-deal { background: #fde6d2; color: #8f4304; } .chip.ph-deal::before { background: #f08e35; }
.chip.ph-closed { background: #e3f5ea; color: #136234; } .chip.ph-closed::before { background: #1f9d55; }
.chip.lg { font-size: 14px; padding: 4px 14px 4px 11px; line-height: 20px; letter-spacing: 0; }
.chip.lg::before { width: 8px; height: 8px; }
.t .sub.stg { margin-top: 3px; font-size: 12px; }

/* phase stepper on buyer / seller records */
.phases { display: flex; align-items: center; gap: 0; margin-top: 18px; max-width: 820px; }
.phases .ph { display: flex; align-items: center; gap: 8px; flex: none; cursor: help; }
.phases .ln { flex: 1; height: 2px; background: var(--line); margin: 0 10px; min-width: 16px; border-radius: 1px; }
.phases .dot { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; background: #f0f0f2; color: #8a8a90; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); }
.phases .lb { font-size: 13.5px; font-weight: 600; color: #8a8a90; white-space: nowrap; }
.phases .ph.done .dot { background: var(--ink); color: #fff; box-shadow: none; }
.phases .ph.done .lb { color: var(--ink-2); }
.phases .ph.done + .ln { background: var(--ink); }
.phases .ph.cur .lb { color: var(--ink); font-weight: 700; }
.phases .ph.cur .dot { color: #fff; box-shadow: 0 0 0 3px rgba(0, 0, 0, .06); }
.phases .ph.cur.ph-new .dot { background: #2f6fed; } .phases .ph.cur.ph-qualifying .dot { background: #eba300; color: #1a0d00; }
.phases .ph.cur.ph-matching .dot, .phases .ph.cur.ph-listing .dot { background: #7c4ddb; } .phases .ph.cur.ph-live .dot { background: #14a39a; }
.phases .ph.cur.ph-deal .dot { background: #f08e35; color: #1a0d00; } .phases .ph.cur.ph-closed .dot { background: #1f9d55; }
.phases.paused { opacity: .55; }
.phases + .plabel { margin-top: 10px; max-width: 820px; }
.rec-head .plabel { font-size: 13.5px; color: var(--ink-3); display: flex; gap: 4px 18px; flex-wrap: wrap; align-items: baseline; }
.rec-head .plabel b { color: var(--ink); font-weight: 600; }
.rec-head .plabel .jlink { margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--idle); }
.jphases { display: grid; gap: 14px; }
.jp header { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; font-size: 13.5px; color: var(--ink-2); margin-bottom: 4px; }
@media (max-width: 760px) { .phases .lb { display: none; } .phases .ph.cur .lb { display: inline; } }

/* ================================================================ Today */
.today { display: grid; gap: 16px; }
.ttabs.flat { padding: 0; gap: 8px; border: 0; flex-wrap: wrap; align-items: center; overflow: visible; }
.ttabs.flat a { display: inline-flex; align-items: center; gap: 7px; padding: 7px 12px; border-radius: 999px; background: #f3f3f5; color: var(--ink-2); font-weight: 600; font-size: 13.5px; }
.ttabs.flat a:hover { background: #ebebee; text-decoration: none; }
.ttabs.flat a.on { background: var(--black); color: #fff; } .ttabs.flat a.on .n { background: rgba(255, 255, 255, .18); color: #fff; }
.ttabs.flat a.od:not(.on) { background: #fde7e5; color: #a8261c; } .ttabs.flat a.od .n { background: rgba(210, 59, 46, .12); color: #a8261c; }
.ttabs.flat .sp { flex: 1; }
.seg2 { display: inline-flex; background: #f3f3f5; border-radius: 9px; padding: 3px; }
.seg2 a { padding: 5px 12px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--ink-3); }
.seg2 a.on { background: #fff; color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .1); }
.seg2 a:hover { text-decoration: none; color: var(--ink); }
.todos { list-style: none; margin: 0; padding: 0; }
.todo { display: grid; grid-template-columns: 92px minmax(0, 1fr) 120px auto; gap: 14px; align-items: center; padding: 14px 18px 14px 16px; border-top: 1px solid var(--line-2); box-shadow: inset 3px 0 0 var(--brand); }
.todo:first-child { border-top: 0; border-radius: var(--r-lg) var(--r-lg) 0 0; }
.todo:last-child { border-radius: 0 0 var(--r-lg) var(--r-lg); }
.todo.danger { box-shadow: inset 3px 0 0 var(--bad); background: #fffafa; }
.todo:hover { background: #fafafb; } .todo.danger:hover { background: #fff5f4; }
.todo .tk { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th); }
.todo .tw { color: var(--ink); font-size: 14px; } .todo .tw .ref { margin-left: 4px; }
.todo .tm { min-width: 0; }
.todo .tt { font-weight: 600; font-size: 14.5px; margin-top: 1px; }
.todo.danger .tt { color: var(--bad-text); }
.todo .ty { font-size: 13px; color: var(--ink-3); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.todo .td { font-size: 13px; text-align: right; } .todo .td .dd { display: inline; font-size: inherit; }
.todo .ta { display: flex; gap: 6px; justify-content: flex-end; }
.done-all { padding: 40px 20px; text-align: center; display: grid; gap: 4px; color: var(--ink-3); }
.done-all b { color: var(--ink); font-size: 16px; }

/* link tabs (Matching sub-navigation) */
.tabs.linktabs a { padding: 10px 0; color: var(--ink-3); font-weight: 600; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px; }
.tabs.linktabs a:hover { color: var(--ink); text-decoration: none; }
.tabs.linktabs a.on { color: var(--brand-ink); border-bottom-color: var(--brand); }

/* match cards */
.mlist { display: grid; gap: 12px; }
.mcard { display: grid; grid-template-columns: 76px minmax(0, 1fr) 150px; gap: 18px; padding: 18px 20px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-lg); align-items: start; }
.mcard.open { border-color: #f5d2b0; box-shadow: 0 1px 0 rgba(0, 0, 0, .02), inset 3px 0 0 var(--brand); }
.mscore { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #f0f0f2; color: var(--ink-2); }
.mscore b { font-size: 22px; line-height: 1; } .mscore span { font-size: 11px; font-weight: 700; margin-top: 2px; }
.mscore.b-Strong { background: #e3f5ea; color: #136234; } .mscore.b-Potential { background: #fdebd8; color: #8a4507; }
.mpair { display: grid; grid-template-columns: minmax(0, 1fr) 24px minmax(0, 1fr); gap: 10px; align-items: start; }
.mpair:has(> :only-child) { grid-template-columns: 1fr; }
.mside label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--th); margin-bottom: 2px; }
.mside a { color: var(--ink); } .mside .sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
.marrow { color: var(--ink-3); font-size: 18px; margin-top: 16px; text-align: center; }
.mwhy { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.mr { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: #f3f3f5; color: var(--ink-2); }
.mr.yes { background: #e9f7ef; color: #136234; } .mr.part { background: #fff3e3; color: #8a4507; } .mr.no { background: #fdeceb; color: #a8261c; }
.mmeta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; font-size: 12.5px; }
.mact { display: grid; gap: 8px; }
.mact .btn { justify-content: center; }

/* deals board */
.board { grid-auto-columns: minmax(200px, 1fr); gap: 12px; }
.board .col { background: #f7f7f8; border-radius: var(--r-lg); padding: 10px; min-height: 160px; }
.board .col h4 { border: 0; padding: 4px 4px 10px; margin: 0; display: flex; align-items: center; gap: 8px; justify-content: flex-start; font-size: 13.5px; cursor: help; }
.board .col h4 .n { margin-left: auto; font-size: 12px; background: #fff; border: 1px solid var(--line); border-radius: 6px; padding: 0 7px; color: var(--ink-3); }
.cdot { width: 9px; height: 9px; border-radius: 50%; background: #a8a8ae; flex: none; }
.cdot.c0 { background: #2f6fed; } .cdot.c1 { background: #7c4ddb; } .cdot.c2 { background: #14a39a; } .cdot.c3 { background: #f08e35; } .cdot.c4 { background: #1f9d55; } .cdot.c5 { background: #a8a8ae; }
.board .card { display: grid; gap: 3px; padding: 12px; border-radius: 10px; box-shadow: 0 1px 2px rgba(0, 0, 0, .05); }
.board .card .ref { font-size: 11.5px; } .board .card b { font-size: 14px; line-height: 1.35; }
.board .card .crow { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; font-size: 13.5px; }
.board .card .nv { color: var(--brand-ink); font-weight: 600; }
.cempty { font-size: 12.5px; color: var(--ink-3); padding: 8px 6px; }
.vdots { display: inline-flex; gap: 3px; } .vdots i { width: 14px; height: 5px; border-radius: 3px; background: #e2e2e6; } .vdots i.on { background: var(--ok); }

/* reports filters */
.repf .tfilters { padding: 14px 16px; border: 0; align-items: flex-end; gap: 10px; }
.repf label.f { min-width: 140px; } .repf label.f > span { font-size: 12px; margin-bottom: 3px; }

/* phones: list rows become labelled cards */
@media (max-width: 760px) {
  .lview .tbl-wrap { overflow: visible; }
  .lview table.t, .lview .t tbody { display: block; }
  .lview .t thead { display: none; }
  .lview .t tbody tr { display: block; padding: 14px var(--px); border-bottom: 1px solid var(--line-2); position: relative; }
  .lview .t td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 2px 10px; align-items: center; border: 0; padding: 4px 0; white-space: normal; background: none !important; }
  .lview .t td::before { content: attr(data-label); grid-column: 1; grid-row: 1 / span 3; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--th); align-self: start; padding-top: 3px; }
  .lview .t td > * { grid-column: 2; justify-self: start; }
  .lview .t td.num { text-align: left; }
  .lview .t td.lead { display: block; padding: 0 40px 6px 0; }
  .lview .t td.lead::before, .lview .t td.cbx::before, .lview .t td.menu::before, .lview .t td[data-label=""]::before { display: none; }
  .lview .t td.cbx { display: none; }
  .lview .t td.menu { display: block; position: absolute; top: 10px; right: 8px; width: auto; background: none; }
  .lview .t td.opt { display: grid; }
  .lview .t td:empty, .lview .t td[data-label=""] { display: none; } .lview .t td.menu { display: block; }
  .lview .pager { justify-content: center; }
  .todo { grid-template-columns: 1fr auto; gap: 6px 10px; }
  .todo .tk { grid-column: 1 / -1; } .todo .td { text-align: left; } .todo .ta { grid-column: 1 / -1; justify-content: flex-start; }
  .mcard { grid-template-columns: 56px 1fr; } .mcard .mact { grid-column: 1 / -1; grid-auto-flow: column; }
  .mscore { width: 52px; height: 52px; } .mscore b { font-size: 18px; }
  .mpair { grid-template-columns: 1fr; } .marrow { display: none; }
}

/* delete affordances */
.pop .danger-item { color: var(--bad-text); } .pop .danger-item svg { color: var(--bad-text); }
.pop .danger-item:hover { background: #fdeeed; }
.bulkbar .bkdel { background: none; border: 0; cursor: pointer; color: #ff8a80; padding: 0 6px; height: 30px; }
.bulkbar .bkdel:hover { color: #fff; }
.toast { display: flex; align-items: center; gap: 14px; }
.toast .tact { margin-left: auto; background: none; border: 1px solid #555; color: #fff; border-radius: 6px; padding: 3px 10px; font-weight: 700; cursor: pointer; font-size: 13px; }
.toast .tact:hover { background: #262626; }

/* detail-page tabs follow the same accent */
.tabs button.on, .seg a.on { color: var(--brand-ink); }
.pop a { color: var(--ink); }
.pop .h { text-transform: uppercase; letter-spacing: .06em; font-size: 11px; }

/* ================================================================ responsive */
@media (max-width: 1180px) { .cols { grid-template-columns: 1fr; } .stages { grid-template-columns: 1fr 1fr; } .stage:nth-child(3) { border-left: 0; } .stage:nth-child(n+3) { border-top: 1px solid var(--line); } }
@media (max-width: 1180px) { .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); } .journey a:nth-child(5) { border-left: 0; } .journey a:nth-child(n+5) { border-top: 1px solid var(--line-2); } }
@media (max-width: 980px) {
  .shell, .shell.mini { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; z-index: 45; top: 0; left: 0; bottom: 0; height: 100%; width: 270px; transform: translateX(-105%); transition: transform .2s; box-shadow: var(--sh-pop); }
  .shell.nav-open .side { transform: none; }
  .shell.nav-open .scrim { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0, 0, 0, .25); }
  .shell.mini .ws .logo { display: block; } .shell.mini .ws .logo-mark { display: none; }
  .shell.mini .nav a > span, .shell.mini .side-search, .shell.mini .side-links span, .shell.mini .me-card .who { display: revert; }
  .ws .collapse { display: none; }
  .top { padding: 12px max(16px, env(safe-area-inset-right, 0px)) 12px max(16px, env(safe-area-inset-left, 0px)); }
  .top .menu-btn { display: grid; }
  :root { --px: 16px; }
  .page { padding: 18px max(16px, env(safe-area-inset-right, 0px)) 28px max(16px, env(safe-area-inset-left, 0px)); }
  .page > .lview:first-child { margin-top: -18px; }
  .team { display: none; }
  .lview .kpi:nth-child(odd) { padding-left: var(--px); } .lview .kpi:nth-child(even) { padding-right: var(--px); }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpi:nth-child(odd) { padding-left: 0; border-left: 0; }
  .kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); }
}
@media (max-width: 760px) {
  .cols2, .grid2, .grid3 { grid-template-columns: 1fr; }
  .span2 { grid-column: auto; }
  .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 8px; }
  .list li { flex-wrap: wrap; }
  .tsearch { width: 100%; }
  .stages { grid-template-columns: 1fr; } .stage + .stage { border-left: 0; border-top: 1px solid var(--line); }
  .net { display: none; }
  .top { position: static; }
  .match { grid-template-columns: 54px 1fr; } .match > .btns { grid-column: 1 / -1; flex-direction: row !important; }
  .pager { justify-content: center; } .pager .goto { display: none; }
}
@media (max-width: 560px) { .spark { display: none; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } .kpi .v { font-size: 22px; } }
@media (max-width: 480px) { .lview .kpi { padding-left: var(--px) !important; padding-right: 12px !important; } .lview .kpi:nth-child(even) { border-left: 1px solid var(--line-2) !important; } .journey { grid-template-columns: repeat(2, minmax(0, 1fr)); } .journey a:nth-child(odd) { border-left: 0; } .journey a:nth-child(n+3) { border-top: 1px solid var(--line-2); } .kpi:nth-child(n+3) { border-top: 1px solid var(--line-2); } .ptitle h1 { font-size: 19px; } }
@media print { .side, .top, .btns, .next, .tabs, .bulkbar { display: none !important; } .shell { display: block; } }
