/* On-Trade Intelligence Console additions on top of the research.my house shell:
   BASIC and Evolve cobrand, the region and channel switchers, the universe and explorer pages. */

/* ---- Cobrand: BASIC holds the primary position (sidebar top, login card top).
   The foot carries both marks side by side behind "Prepared for Heineken Malaysia Berhad".
   Evolve PNG is 532x160 (3.325:1). Widths only, never heights. ---- */
.evolve-mark { display: block; height: auto; }
.cobrand__marks, .login-partners__marks { display: flex; align-items: center; gap: 14px; margin-top: 8px; }
.basic-mark--foot { width: 86px; opacity: 0.92; }
.evolve-mark--foot { width: 74px; opacity: 0.88; }
.login-partners__marks { justify-content: center; margin: 8px 0 4px; }
.login-partners__marks .basic-mark--foot { width: 96px; }
.login-partners__marks .evolve-mark--foot { width: 82px; }
.brand__label { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-tertiary); }
.sidebar__brand .brand__stack { gap: 8px; }

.cobrand { padding: 12px 0 10px; border-top: 1px solid var(--border); margin-bottom: 8px; }
.cobrand__label { display: block; font-family: var(--font-mono); font-size: 9px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-dim); }
.cobrand__client { display: block; font-family: var(--font-display); font-size: 12.5px; font-weight: 600; color: var(--text); margin-top: 3px; line-height: 1.3; }

.login-partners { display: flex; flex-direction: column; gap: 4px; align-items: center; text-align: center; }
.login-cobrand__prep { font-size: 12px; color: var(--text-secondary); }
.login-cobrand__prep strong { color: var(--text); font-weight: 600; }
.login-partners__arm { font-size: 11px; color: var(--text-tertiary); }

/* Planned modules in the nav: visible but quiet */
.nav-item--planned { opacity: 0.62; }
.nav-item--planned:hover { opacity: 1; }
.nav-item__badge--ghost { margin-left: auto; font-family: var(--font-mono); font-size: 8.5px; letter-spacing: 0.08em; padding: 1px 5px; border-radius: 4px; border: 1px solid var(--border-light); color: var(--text-tertiary); }

/* ---- KPI tiles and small facts ---- */
.fact { padding: 10px 12px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.fact__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.fact__value { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-top: 2px; font-variant-numeric: tabular-nums; }
.fact__sub { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.kpi-note { font-size: 11px; color: var(--text-tertiary); margin-top: 6px; }
.mb-lg { margin-bottom: 16px; }
.pill-n { font-family: var(--font-mono); font-size: 10.5px; color: var(--text-tertiary); }

/* ---- Channel and status chips ---- */
.chip--ch { cursor: pointer; user-select: none; }
.chip--ch.chip--on { background: var(--accent); color: #fff; border-color: var(--accent); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }

/* ---- Explorer page: list beside map, inspector and drill-down panel ---- */
.explorer { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 16px; align-items: start; }
.explorer__list { max-height: 640px; overflow: auto; }
.outlet-row { display: block; padding: 10px 12px; border-bottom: 1px solid var(--border); text-decoration: none; color: inherit; cursor: pointer; }
.outlet-row:hover, .outlet-row.is-active { background: var(--bg-hover); }
.outlet-row__name { font-weight: 600; font-size: 13px; }
.outlet-row__meta { font-size: 11px; color: var(--text-tertiary); margin-top: 2px; }
.map-wrap { position: relative; border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; background: #0d0f12; }
#outletMap { width: 100%; height: 640px; }
.map-toolbar--ot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-bottom: 0; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--bg-card); }
.map-toolbar--ot + .map-wrap { border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.map-toolbar--ot .label { margin-right: 4px; }
.map-legend--ot { position: absolute; left: 12px; bottom: 12px; z-index: 500; display: flex; flex-wrap: wrap; gap: 10px; padding: 8px 10px; border: 1px solid var(--border-light); border-radius: var(--radius); background: rgba(19,19,20,0.92); font-size: 11px; color: var(--text-secondary); }
.map-inspector--ot { position: absolute; right: 12px; top: 12px; z-index: 500; width: 280px; padding: 10px 12px; border: 1px solid var(--border-light); border-radius: var(--radius); background: rgba(19,19,20,0.94); font-size: 12px; }
.map-inspector--ot .kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.map-inspector--ot .kv-row:last-child { border-bottom: 0; }
.map-inspector__kicker { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--text-tertiary); }
.map-inspector__title { font-family: var(--font-display); font-size: 14px; font-weight: 600; margin: 2px 0 6px; }
.filter-input { padding: 6px 10px; border: 1px solid var(--border); border-radius: 6px; background: var(--bg-elevated); color: var(--text); font-size: 12.5px; min-width: 200px; }

/* Drill-down panel under the map */
.drill { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.drill__wide { grid-column: span 2; }
.bar-row { display: grid; grid-template-columns: 150px minmax(0, 1fr) 56px; gap: 10px; align-items: center; font-size: 12.5px; padding: 4px 0; }
.bar-row__track { height: 8px; border-radius: 4px; background: var(--bg-elevated); overflow: hidden; }
.bar-row__fill { height: 100%; border-radius: 4px; background: var(--accent); }
.bar-row__val { text-align: right; font-family: var(--font-mono); font-size: 11px; color: var(--text-secondary); }

/* ---- Universe page ---- */
.rank-table td.num, .rank-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.density-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--accent); vertical-align: middle; margin-right: 6px; }
.verdict-abs { color: var(--danger); }
.tier { display: inline-block; padding: 1px 6px; border-radius: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.04em; }
.tier--T20 { background: rgba(34,197,94,0.14); color: #4ade80; }
.tier--M40 { background: rgba(30,93,235,0.16); color: #7aa7ff; }
.tier--B40 { background: rgba(245,158,11,0.14); color: #fbbf24; }

/* ---- User administration (house) ---- */
.invite-grid { grid-template-columns: 1.2fr 1.4fr 1.4fr 0.8fr 0.8fr auto; align-items: end; gap: 12px; }
.invite-grid .form-group { margin: 0; }
.check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--text-secondary); height: 40px; }
.handlink { border-color: var(--accent-line); }
.handlink__row { display: flex; gap: 8px; align-items: center; }
.handlink__row input { flex: 1; padding: 8px 10px; border: 1px solid var(--border-light); border-radius: 6px; background: var(--bg-elevated); color: var(--text); font-size: 12px; }
.edit-form { display: flex; gap: 6px; align-items: center; margin-top: 6px; }
.edit-form input { padding: 4px 8px; border: 1px solid var(--border); border-radius: 5px; background: var(--bg-elevated); color: var(--text); font-size: 12px; width: 150px; }
.actions form, .actions details { display: inline-block; vertical-align: middle; margin-left: 4px; }
.actions details summary::-webkit-details-marker { display: none; }
.actions details summary { list-style: none; }

/* ---- Release notes (admin) ---- */
.release + .release { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--border); }
.release__head { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.release__date { color: var(--text-tertiary); font-weight: 500; }
.release__kind { margin: 16px 0 2px; font-family: var(--font-mono); font-size: 10.5px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.release__kind--added { color: var(--success); }
.release__kind--changed { color: var(--accent); }
.release__kind--fixed { color: var(--warning); }
.release__kind--removed, .release__kind--security { color: var(--danger); }
.release__item { margin-top: 8px; padding-left: 14px; border-left: 2px solid var(--border); max-width: 880px; font-size: 13.5px; line-height: 1.6; color: var(--text-secondary); }
.release__item strong { color: var(--text); font-weight: 600; }
.release__item p + p { margin-top: 6px; }
.release__item code { font-family: var(--font-mono); font-size: 12px; }

/* ---- Responsive ---- */
@media (max-width: 1100px) {
  .explorer { grid-template-columns: 1fr; }
  .explorer__list { max-height: 320px; }
  .drill { grid-template-columns: 1fr 1fr; }
  .invite-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 860px) {
  #outletMap { height: 440px; }
  .map-inspector--ot { width: 220px; }
}
@media (max-width: 640px) {
  .topbar { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; height: auto; min-height: var(--topbar-h); padding: 8px 14px; row-gap: 8px; column-gap: 10px; overflow: visible; }
  .topbar .menu-toggle { grid-column: 1; grid-row: 1; }
  .topbar__title { grid-column: 2; grid-row: 1; overflow: hidden; text-overflow: ellipsis; }
  .topbar .cat-switch { grid-column: 1 / 3; min-width: 0; margin-left: 0; padding-left: 0; border-left: 0; }
  .topbar .cat-select { max-width: 100%; }
  .topbar__spacer, .topbar__kicker { display: none; }
  .drill { grid-template-columns: 1fr; }
  .bar-row { grid-template-columns: 110px minmax(0, 1fr) 50px; }
}

/* ---- KPI tile extras (house) ---- */
.stat--rule { border-top: 2px solid var(--stat-rule, var(--border-light)); }
.stat__foot { font-size: 11.5px; color: var(--text-tertiary); margin-top: 4px; line-height: 1.45; }
.planned-note { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px dashed var(--border-light); border-radius: var(--radius); color: var(--text-secondary); font-size: 12.5px; }
.planned-note svg { width: 15px; height: 15px; color: var(--warning); flex-shrink: 0; }
.sources-anchor { scroll-margin-top: 80px; }
.method-list li { margin: 4px 0; }

/* ---------------------------------------------------------------- Phase 3: evidence pages */
.collection-strip { display: flex; align-items: flex-start; gap: 10px; padding: 10px 14px; border: 1px solid var(--border, rgba(255,255,255,0.08)); border-radius: 10px; background: rgba(30,93,235,0.06); font-size: 12.5px; line-height: 1.5; color: var(--text-muted, #A6A6AE); }
.collection-strip strong { color: var(--text, #ECECEF); }
.collection-strip__dot { width: 9px; height: 9px; border-radius: 50%; background: #6E6E78; margin-top: 5px; flex: 0 0 auto; }
.collection-strip__dot.is-live { background: #199e70; box-shadow: 0 0 0 4px rgba(25,158,112,0.18); animation: ot-pulse 2.4s ease-in-out infinite; }
@keyframes ot-pulse { 0%, 100% { box-shadow: 0 0 0 3px rgba(25,158,112,0.18); } 50% { box-shadow: 0 0 0 7px rgba(25,158,112,0.05); } }
.route-tabs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.route-tab { font-size: 12px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--border, rgba(255,255,255,0.1)); color: var(--text-muted, #A6A6AE); text-decoration: none; }
.route-tab:hover { color: var(--text, #ECECEF); }
.route-tab.active { background: var(--c-self, #1E5DEB); border-color: var(--c-self, #1E5DEB); color: #fff; }
.swatch { display: inline-block; width: 9px; height: 9px; border-radius: 2px; margin-right: 4px; vertical-align: middle; }
.evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.evidence-card { border: 1px solid var(--border, rgba(255,255,255,0.08)); border-radius: 8px; overflow: hidden; background: rgba(255,255,255,0.02); }
.evidence-card img { display: block; width: 100%; height: 150px; object-fit: cover; background: #0b0b0e; }
.evidence-card__ph { height: 90px; display: flex; align-items: center; justify-content: center; color: #6E6E78; background: rgba(255,255,255,0.03); }
.evidence-card__body { padding: 8px 9px 9px; }
.evidence-card__brand { font-family: "Space Grotesk", Inter, sans-serif; font-weight: 600; font-size: 13px; }
.evidence-card__name { font-size: 12px; color: var(--text, #ECECEF); margin: 2px 0 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmp-table td.cmp-lead { color: var(--text, #ECECEF); font-weight: 500; }
@media (max-width: 640px) { .evidence-grid { grid-template-columns: repeat(2, 1fr); } .evidence-card img { height: 120px; } }

/* ---------------------------------------------------------------- Phase 4: audit and roadmap */
.rgm-code { display: inline-block; font-family: "IBM Plex Mono", monospace; font-size: 11px; padding: 1px 7px; border-radius: 4px; background: rgba(30,93,235,0.18); color: #9ec5f4; margin-bottom: 4px; }
.rgm-table td { vertical-align: top; font-size: 12.5px; }
.chip--sm { font-size: 11px; padding: 2px 8px; margin: 2px 0; display: inline-block; }

/* ---------------------------------------------------------------- Board pack: an A4 document inside the console, and on paper */
.doc { max-width: 900px; margin: 0 auto; }
.doc__page { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 34px 38px; margin-bottom: 20px; }
.doc__mast { display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; border-bottom: 1px solid var(--border-light); padding-bottom: 16px; margin-bottom: 22px; }
.doc__marks { display: flex; align-items: center; gap: 14px; flex: 0 0 auto; }
.doc__marks img { height: 22px; width: auto; }
.doc__kicker { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-tertiary); }
.doc h1 { font-size: 26px; margin: 6px 0 4px; }
.doc h2 { font-size: 16px; margin: 22px 0 10px; }
.doc h3 { font-size: 13.5px; margin: 16px 0 6px; }
.doc p, .doc li { font-size: 13px; color: var(--text-secondary); line-height: 1.65; }
.doc ul, .doc ol { padding-left: 18px; }
.doc table.data { font-size: 12px; }
.doc-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.doc-kpi { border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 12px 14px; }
.doc-kpi__v { font-family: var(--font-display); font-size: 24px; font-weight: 600; }
.doc-kpi__l { font-family: var(--font-mono); font-size: 9.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-tertiary); }
.doc-kpi__s { font-size: 11.5px; color: var(--text-tertiary); margin-top: 2px; }
.doc__foot { margin-top: 18px; padding-top: 10px; border-top: 1px solid var(--border-light); font-family: var(--font-mono); font-size: 10px; color: var(--text-tertiary); display: flex; justify-content: space-between; }
@media (max-width: 720px) { .doc-kpis { grid-template-columns: repeat(2, 1fr); } .doc__page { padding: 22px 18px; } }
@media print {
  @page { size: A4; margin: 14mm; }
  .sim-banner { background: #fff7e6; border-color: #e0b35a; }
  .sim-banner__title { color: #7a4d00; }
  .sim-banner__body { color: #333; }
  .doc__page { border: none; padding: 0; margin: 0 0 8mm; background: #fff; break-after: page; }
  .doc__page:last-child { break-after: auto; }
  .doc p, .doc li, .doc-kpi__s, .doc-kpi__l, .doc__kicker, .doc__foot, .doc table.data td, .doc table.data th { color: #333; }
  .doc-kpi { border-color: #ccc; }
  .doc table.data th { border-color: #999; }
  .doc table.data td { border-color: #ddd; }
  .doc__marks img.evolve-mark--foot { filter: invert(1); }
  .swatch { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* ---------------------------------------------------------------- Precision check: regrade rows */
.regrade-thumb { width: 64px; height: 64px; object-fit: cover; border-radius: 6px; background: #0b0b0e; display: block; }
.regrade-form { display: flex; gap: 4px; flex-wrap: wrap; }
.regrade-form .btn-chip.is-on { background: var(--c-self, #1E5DEB); color: #fff; border-color: var(--c-self, #1E5DEB); }
.regrade-table td { vertical-align: middle; }
@media print {
  .doc table.data thead th { background: #f1f1ef !important; color: #333 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .doc table.data tbody tr:nth-child(even) td { background: #fff; }
  .doc .badge { border: 1px solid #999; color: #333; background: #fff; }
}

/* Guinness perception card: listing walk status colours */
.pint-read { color: var(--c-self, #3987e5); }
.pint-not_read { color: #c98500; }
.pint-not_walked { color: #6E6E78; }

/* Ask: evidence photo strip (administrators) */
.chat-photos { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.chat-photos a { display: block; width: 96px; height: 72px; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.chat-photos img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* ---------------------------------------------------------------- Outlet Explorer (Google map shell, the bf1a pattern) */
.content--bleed { padding: 0 !important; max-width: none !important; }
.xp [hidden] { display: none !important; }
.xp { position: relative; height: calc(100vh - var(--topbar-h)); min-height: 520px; overflow: hidden; background: #0e1116; }
.xp:fullscreen { height: 100vh; }
#xpMap { position: absolute; inset: 0; }
.xp-panel { position: absolute; top: 12px; left: 12px; z-index: 6; width: 340px; max-width: calc(100% - 24px); max-height: calc(100% - 24px); display: flex; flex-direction: column; background: rgba(19,19,20,0.95); border: 1px solid var(--border-light); border-radius: var(--radius-lg); box-shadow: var(--shadow); backdrop-filter: blur(6px); }
.xp-panel__head { display: flex; align-items: center; gap: 6px; padding: 8px; border-bottom: 1px solid var(--border); }
.xp-search { flex: 1; min-width: 0; padding: 8px 10px; font-size: 13px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.xp-search:focus { outline: none; border-color: var(--accent); }
.xp-results { position: absolute; top: 48px; left: 8px; right: 8px; z-index: 8; background: var(--bg-card); border: 1px solid var(--border-light); border-radius: var(--radius); box-shadow: var(--shadow); max-height: 320px; overflow: auto; }
.xp-result { display: flex; align-items: center; gap: 8px; padding: 8px 10px; cursor: pointer; border-bottom: 1px solid var(--border); font-size: 12.5px; color: inherit; text-decoration: none; }
.xp-result:hover { background: var(--bg-hover); }
.xp-result:last-child { border-bottom: 0; }
.xp-result small { display: block; color: var(--text-tertiary); font-size: 11px; }
.xp-result svg { width: 14px; height: 14px; color: var(--text-tertiary); }
.xp-panel__body { overflow: auto; min-height: 0; }
.xp-panel.is-collapsed .xp-panel__body, .xp-panel.is-collapsed .xp-results { display: none; }
.xp-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; padding: 8px 10px 0; }
.xp-row .label { width: 100%; margin-bottom: 2px; }
.xp-row .chip { font-size: 11.5px; padding: 3px 9px; }
.xp-highlight { display: flex; align-items: center; gap: 8px; margin: 10px 10px 0; padding: 8px 10px; border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius); font-size: 12px; background: rgba(255,255,255,0.05); }
.xp-highlight svg { width: 14px; height: 14px; flex: none; }
.xp-highlight span { flex: 1; min-width: 0; }
.xp-list { margin-top: 8px; border-top: 1px solid var(--border); }
.xp-tools { position: absolute; right: 12px; top: 12px; z-index: 6; display: flex; flex-direction: column; gap: 6px; transition: right .22s ease; }
.xp.has-drawer .xp-tools { right: 412px; }
.xp-tools .btn { width: 36px; height: 36px; padding: 0; display: inline-flex; align-items: center; justify-content: center; background: rgba(19,19,20,0.95); border: 1px solid var(--border-light); }
.xp-tools .btn svg { width: 16px; height: 16px; }
.xp-legend { position: absolute; left: 12px; bottom: 30px; z-index: 6; display: flex; flex-wrap: wrap; gap: 10px; max-width: calc(100% - 24px); padding: 8px 10px; border: 1px solid var(--border-light); border-radius: var(--radius); background: rgba(19,19,20,0.92); font-size: 11px; color: var(--text-secondary); }
.xp-legend .dim { color: var(--text-tertiary); }
.xp-status { position: absolute; top: 12px; left: 364px; z-index: 5; display: flex; align-items: center; gap: 8px; padding: 6px 12px; border: 1px solid var(--border-light); border-radius: 999px; background: rgba(19,19,20,0.92); font-size: 12px; color: var(--text-secondary); white-space: nowrap; max-width: calc(100% - 440px); overflow: hidden; text-overflow: ellipsis; }
.xp.has-drawer .xp-status { max-width: calc(100% - 840px); }
.xp-status span { overflow: hidden; text-overflow: ellipsis; }
.xp-status svg { width: 14px; height: 14px; }
.xp-status__hl { color: #fff; margin-left: 8px; padding-left: 8px; border-left: 1px solid var(--border-light); }
.xp-hover { position: absolute; top: 0; left: 0; z-index: 7; pointer-events: none; width: 270px; padding: 8px 10px; border: 1px solid var(--border-light); border-radius: var(--radius); background: rgba(19,19,20,0.96); font-size: 12px; box-shadow: var(--shadow); }
.xp-hover__name { font-weight: 600; font-size: 12.5px; margin-bottom: 2px; }
.xp-hover__meta { color: var(--text-tertiary); font-size: 11px; }
.xp-error { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 9; max-width: 420px; padding: 16px 18px; border: 1px solid var(--danger); border-radius: var(--radius); background: rgba(19,19,20,0.97); color: var(--text); font-size: 13px; }
.xp-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: 400px; max-width: 100%; z-index: 9; background: var(--bg-card); border-left: 1px solid var(--border-light); box-shadow: var(--shadow); transform: translateX(104%); transition: transform .22s ease; display: flex; flex-direction: column; }
.xp-drawer.is-open { transform: none; }
.xp-drawer__head { display: flex; align-items: flex-start; gap: 8px; padding: 14px 14px 10px; border-bottom: 1px solid var(--border); }
.xp-drawer__kicker { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.xp-drawer__title { font-weight: 700; font-size: 16px; line-height: 1.25; margin: 2px 0; }
.xp-drawer__body { overflow: auto; padding: 10px 14px 16px; font-size: 13px; }
.xp-sec { padding: 8px 0; border-bottom: 1px dashed var(--border); }
.xp-sec:last-child { border-bottom: 0; }
.xp-kv .kv-row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; font-size: 12.5px; }
.xp-kv .kv-row span { color: var(--text-secondary); }
.xp-brands { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.xp-brand { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border: 1px solid; border-radius: 999px; font-size: 12px; background: rgba(255,255,255,0.03); }
.xp-brand small { color: var(--text-tertiary); font-size: 10.5px; }
.xp-table td { padding: 4px 6px; font-size: 12px; }
.xp-table td.xp-when { font-size: 10.5px; line-height: 1.3; }
.xp-table th { font-size: 10px; padding: 4px 6px; }
.xp-drawer .chat-photos a { width: 120px; height: auto; display: flex; flex-direction: column; }
.xp-drawer .chat-photos img { height: 80px; }
.xp-drawer .chat-photos small { display: block; padding: 3px 4px; font-size: 10px; color: var(--text-tertiary); line-height: 1.25; }
.xp-promo { padding: 4px 0; font-size: 12px; }
.xp-promo .muted { font-size: 11.5px; }
.xp-near { display: block; padding: 4px 0; font-size: 12.5px; cursor: pointer; color: inherit; text-decoration: none; }
.xp-near:hover { color: var(--accent); }
.xp-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.xp-pulse { width: 26px; height: 26px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 0 rgba(255,255,255,0.7); transform: translateY(13px); animation: xpPulse 1.6s ease-out infinite; pointer-events: none; }
@keyframes xpPulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,0.65); } 100% { box-shadow: 0 0 0 16px rgba(255,255,255,0); } }
@media (max-width: 900px) {
  .xp-panel { width: auto; right: 60px; }
  .xp-drawer { top: auto; height: 64vh; width: 100%; border-left: 0; border-top: 1px solid var(--border-light); border-radius: 12px 12px 0 0; transform: translateY(105%); }
  .xp-status { display: none; }
}

/* ---------------------------------------------------------------- Outlet List and detail pages */
.ol-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.ol-head__actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.ol-filters { padding: 12px 14px; }
.ol-filters__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.ol-field { display: flex; flex-direction: column; gap: 4px; }
.ol-field--wide { grid-column: span 2; }
.ol-field span { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-tertiary); }
.ol-field input, .ol-field select { padding: 7px 10px; font-size: 13px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }
.ol-field input:focus, .ol-field select:focus { outline: none; border-color: var(--accent); }
.ol-filters__actions { display: flex; align-items: center; gap: 8px; margin-top: 10px; }
.ol-table td { vertical-align: top; }
.ol-row { cursor: pointer; }
.ol-row:hover { background: var(--bg-hover); }
.ol-name { font-weight: 600; color: var(--text); text-decoration: none; }
.ol-name:hover { color: var(--accent); }
.ol-pager { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 2px 2px; }
.ol-photos a { width: 140px; display: flex; flex-direction: column; height: auto; border-radius: 6px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.ol-photos img { height: 96px; width: 100%; object-fit: cover; }
.ol-photos small { display: block; padding: 3px 5px; font-size: 10px; color: var(--text-tertiary); line-height: 1.25; }
@media (max-width: 900px) { .ol-head { flex-direction: column; } .ol-field--wide { grid-column: span 1; } }

.xp-switch { flex: none; padding: 2px; }
.xp-switch a { padding: 5px 7px; }
.xp-select { flex: 1; min-width: 120px; padding: 5px 8px; font-size: 12px; background: var(--bg-elevated); border: 1px solid var(--border); border-radius: var(--radius); color: var(--text); }

.evidence-card__name a { color: inherit; text-decoration: none; }
.evidence-card__name a:hover { color: var(--accent); }

tr.row-link { cursor: pointer; }
tr.row-link:hover { background: var(--bg-hover); }
tr.row-link .row-link__a { color: var(--text); text-decoration: none; font-weight: 600; }
tr.row-link:hover .row-link__a { color: var(--accent); }

/* ---------------------------------------------------------------- Brewer Share Read */
.bs-bar { display: flex; height: 10px; border-radius: 3px; overflow: hidden; background: var(--bg-elevated); min-width: 100px; }
.bs-bar span { display: block; height: 100%; }
.bs-bar__h { background: #1E5DEB; } .bs-bar__c { background: #d95926; } .bs-bar__o { background: #9085e9; }
.bs-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 5px; vertical-align: 1px; }
.bs-dot--h { background: #1E5DEB; } .bs-dot--c { background: #d95926; } .bs-dot--o { background: #9085e9; }
.bs-table td { vertical-align: middle; }
.bs-table .bs-n { cursor: pointer; white-space: nowrap; }
.bs-table .bs-n:hover { color: var(--accent); }
.bs-caret { width: 12px; height: 12px; vertical-align: -2px; color: var(--text-tertiary); }
.bs-table tr.bs-current td { background: rgba(30,93,235,0.07); }
.bs-table tr.bs-total td { border-bottom: 2px solid var(--border-light); }
.bs-tree tr.bs-main td:first-child { white-space: nowrap; }
.bs-tree tr.bs-sub td:first-child { padding-left: 34px; }
.bs-tree tr.is-hidden, .bs-table tr.bs-drill.is-hidden { display: none; }
.bs-toggle { display: inline-flex; width: 18px; cursor: pointer; color: var(--text-tertiary); vertical-align: -3px; }
.bs-toggle svg { width: 14px; height: 14px; transition: transform .15s ease; }
.bs-toggle.is-open svg { transform: rotate(90deg); }
tr.bs-thin td.num strong { color: var(--text-tertiary); font-weight: 500; }
.bs-drill td { background: var(--bg-elevated); }
.bs-drill__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; padding: 4px 2px; }
.bs-drill__row { display: flex; justify-content: space-between; gap: 10px; font-size: 12.5px; padding: 2px 0; border-bottom: 1px dashed var(--border); }
.bs-drill__row small { font-size: 10.5px; }
.bs-go { white-space: nowrap; }
.bs-go a { display: inline-flex; padding: 3px; color: var(--text-tertiary); }
.bs-go a:hover { color: var(--accent); }
.bs-go svg { width: 14px; height: 14px; }
.bs-measures { flex-wrap: wrap; }
.bs-measures a { padding: 4px 9px; font-size: 12px; }
@media (max-width: 900px) { .bs-drill__grid { grid-template-columns: 1fr; } }

/* ---------------------------------------------------------------- After the pitch (roadmap phases) */
.rm-phases { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.rm-phase { position: relative; padding: 12px 12px 10px; border: 1px solid var(--border); border-radius: var(--radius); background: var(--bg-elevated); }
.rm-phase--live { border-color: rgba(34,197,94,0.45); }
.rm-phase__when { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); }
.rm-phase__title { font-weight: 700; font-size: 14px; margin: 3px 0 6px; }
.rm-phase ul { margin: 0; padding-left: 16px; font-size: 12.5px; line-height: 1.5; color: var(--text-secondary); }
.rm-phase li + li { margin-top: 4px; }
.rm-phases--compact .rm-phase ul { display: none; }
.rm-phases--compact .rm-phase__sub { font-size: 12px; color: var(--text-secondary); line-height: 1.45; }
@media (max-width: 1100px) { .rm-phases { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .rm-phases { grid-template-columns: 1fr; } }

.roll-switch { flex: none; }
.roll-switch button { padding: 4px 10px; font-size: 12px; }

.bs-seg { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.bs-seg .segmented a { padding: 4px 10px; font-size: 12px; }
.bs-seg .segmented a.bs-adj { color: var(--text-tertiary); }
.bs-seg .segmented a.bs-adj.active { color: #fff; }
.bs-side { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; }
.bs-roll { align-items: center; }
.bs-roll button { padding: 4px 10px; font-size: 12px; }
.bs-roll__l { font-family: var(--font-mono); font-size: 10px; letter-spacing: .08em; text-transform: uppercase; color: var(--text-tertiary); padding: 0 6px 0 4px; }
.bs-tree tr.bs-main.is-hidden { display: none; }

tr.bs-current td { background: rgba(30,93,235,0.07); }

/* ---------------------------------------------------------------- Phone walk control (admin) */
.pw-control { display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap; padding: 22px 24px; }
.pw-state { display: flex; align-items: flex-start; gap: 16px; min-width: 280px; flex: 1 1 420px; }
.pw-state__label { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.1; }
.pw-state__detail { margin-top: 6px; font-size: 13.5px; max-width: 640px; }
.pw-dot { width: 14px; height: 14px; border-radius: 50%; margin-top: 8px; flex: 0 0 auto; background: var(--text-tertiary); }
.pw-dot.is-green { background: #199e70; animation: ot-pulse 2.4s ease-in-out infinite; }
.pw-dot.is-amber { background: var(--warning); }
.pw-dot.is-blue { background: var(--accent); animation: ot-pulse 1.2s ease-in-out infinite; }
.pw-dot.is-red { background: var(--danger); }
.pw-dot.is-gray { background: var(--text-tertiary); }
.pw-actions { flex: 0 1 460px; }
.pw-form { display: flex; gap: 10px; align-items: center; }
.pw-form[hidden] { display: none; }
.pw-note { flex: 1 1 auto; min-width: 0; }
.pw-btn { white-space: nowrap; padding: 10px 18px; font-size: 14px; }
.pw-btn--stop { background: var(--danger-dim); color: #fca5a5; border-color: rgba(239,68,68,0.35); }
.pw-btn--stop:hover { background: rgba(239,68,68,0.28); color: #fff; }
.pw-small { font-size: 20px; }
.pw-log { margin: 0; padding: 12px 14px; background: var(--bg-elevated, rgba(255,255,255,0.03)); border: 1px solid var(--border); border-radius: 6px; font-family: var(--font-mono); font-size: 11.5px; line-height: 1.55; color: var(--text-secondary); white-space: pre-wrap; word-break: break-word; max-height: 360px; overflow: auto; }
@media (max-width: 720px) { .pw-form { flex-wrap: wrap; } .pw-btn { width: 100%; justify-content: center; } }
