/* My Pet Air Travel operator console. One stylesheet, no inline styles, no external fonts or images (CSP: style-src 'self').
   Scale: 12 / 13 / 14 (base) / 16 / 20 / 24 px. Spacing: 4 / 8 / 12 / 16 / 24 / 32 px. */
:root {
  --ink: #18222d; --muted: #5a6877; --faint: #8794a2; --line: #dce1e7; --line-strong: #c4ccd5; --bg: #f3f5f7; --panel: #fff; --sunk: #f7f8fa;
  --rail: #14202c; --rail-ink: #c9d3dd; --rail-active: #22364a;
  --accent: #0d5d94; --accent-ink: #fff; --focus: #1a73c0;
  --good: #176b43; --good-bg: #e7f4ec; --good-line: #b3dcc5;
  --warn: #8a5300; --warn-bg: #fdf1d9; --warn-line: #ecd096;
  --danger: #ac2a22; --danger-bg: #fdeceb; --danger-line: #efb5b0;
  --info: #1a5a93; --info-bg: #e6f0fa; --info-line: #b5d1ee;
  --attn: #5b3aa3; --attn-bg: #efeafb; --attn-line: #cbbdee;
  --sim: #8a4b00; --sim-bg: #fff1d6; --sim-line: #e8c46f;
  --neutral: #44515f; --neutral-bg: #eef1f4; --neutral-line: #d3d9e0;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", Menlo, monospace;
  font-family: var(--sans); font-size: 14px; line-height: 1.5; color: var(--ink); background: var(--bg);
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; }
body:has(#local-dev-bar) { padding-bottom: 40px; }
h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
h1 { font-size: 24px; line-height: 1.25; font-weight: 650; letter-spacing: -0.01em; }
h2 { font-size: 16px; line-height: 1.3; font-weight: 650; }
h3 { font-size: 14px; font-weight: 650; }
a { color: var(--accent); }
code, pre, .mono { font-family: var(--mono); font-size: 13px; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 12px; } .strong { font-weight: 650; } .right { text-align: right; align-items: flex-end; }

/* untrusted text: isolated direction, never wider than its box */
.answer-text { unicode-bidi: isolate; overflow-wrap: anywhere; contain: paint; }
.render-text { white-space: pre-wrap; overflow-wrap: anywhere; unicode-bidi: isolate; direction: ltr; overflow: hidden; contain: paint;
  font-family: var(--mono); font-size: 13px; background: var(--sunk); border: 1px solid var(--line); border-radius: 4px; padding: 8px 12px; }

/* ---- shell ---- */
#shell { display: grid; grid-template-columns: 232px minmax(0, 1fr); min-height: 100vh; }
#rail { position: sticky; top: 0; height: 100vh; background: var(--rail); color: var(--rail-ink); display: flex; flex-direction: column; padding: 20px 12px 16px; gap: 24px; }
body:has(#local-dev-bar) #rail { height: calc(100vh - 0px); padding-bottom: 52px; }
.brand { display: flex; flex-direction: column; padding: 0 8px; }
.brand-name { color: #fff; font-size: 16px; font-weight: 650; letter-spacing: -0.005em; }
.brand-product { font-size: 12px; color: #8fa1b3; }
#navigation { display: flex; flex-direction: column; gap: 2px; }
.nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 8px 8px 12px; border-radius: 6px; color: var(--rail-ink); text-decoration: none; border-left: 3px solid transparent; }
.nav-link:hover { background: #1b2c3d; color: #fff; }
.nav-link[aria-current="page"] { background: var(--rail-active); color: #fff; border-left-color: #f0b44c; font-weight: 600; }
.badge { min-width: 20px; padding: 0 6px; border-radius: 10px; background: #f0b44c; color: #2a1d00; font-size: 12px; font-weight: 700; text-align: center; line-height: 20px; }
.badge[hidden] { display: none; }
#who { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding: 0 8px; }
.who-role { color: #fff; font-weight: 600; }
#who .btn { color: var(--rail-ink); border-color: #34475a; justify-content: flex-start; padding-left: 0; }
#stage { min-width: 0; display: flex; flex-direction: column; }
#topbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 48px; padding: 0 32px; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); }
#simulated-banner { display: inline-flex; align-items: center; gap: 8px; padding: 3px 12px 3px 10px; border-radius: 999px; background: var(--sim-bg); border: 1px solid var(--sim-line); color: var(--sim); font-weight: 650; font-size: 13px; }
.sim-dot { width: 8px; height: 8px; border-radius: 50%; background: #d98a00; }
.sim-note { font-weight: 400; color: #7a5a22; }
.sim-note::before { content: "— "; }
#outbound { display: flex; align-items: center; }
.halted { background: var(--danger); color: #fff; font-weight: 700; padding: 5px 14px; border-radius: 6px; letter-spacing: 0.01em; }
#app { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1280px; margin-inline: auto; padding: 24px 32px 56px; }
#app > * { min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 16px; }
.stack-tight { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; }
.stack-tight.right { align-items: flex-end; }

/* ---- page header, cards ---- */
.page-header { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; padding-bottom: 4px; }
.subtitle { color: var(--muted); margin-top: 2px; max-width: 70ch; }
.page-actions { display: flex; gap: 8px; align-items: center; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 20px; display: flex; flex-direction: column; gap: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.card-aside { display: flex; align-items: center; gap: 8px; }
.card-warn { border-color: var(--warn-line); background: #fffaf0; }
.card-form { max-width: 880px; }
.footnote { color: var(--muted); font-size: 13px; max-width: 80ch; }
.split { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.grid { display: grid; gap: 12px 16px; } .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .grid-5 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 12px 24px; }
.fact dt { font-size: 12px; color: var(--muted); }
.fact dd { margin: 0; overflow-wrap: anywhere; }
.chip-row { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }

/* ---- chips and notices: colour, a dot and the words, never colour alone ---- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 1px 9px; border-radius: 999px; border: 1px solid var(--neutral-line); background: var(--neutral-bg); color: var(--neutral); font-size: 12px; font-weight: 600; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.tone-good { color: var(--good); } .chip.tone-good { background: var(--good-bg); border-color: var(--good-line); }
.tone-warn { color: var(--warn); } .chip.tone-warn { background: var(--warn-bg); border-color: var(--warn-line); }
.tone-danger { color: var(--danger); } .chip.tone-danger { background: var(--danger-bg); border-color: var(--danger-line); }
.tone-info { color: var(--info); } .chip.tone-info { background: var(--info-bg); border-color: var(--info-line); }
.tone-attn { color: var(--attn); } .chip.tone-attn { background: var(--attn-bg); border-color: var(--attn-line); }
.tone-sim { color: var(--sim); } .chip.tone-sim { background: var(--sim-bg); border-color: var(--sim-line); }
.tone-neutral { color: var(--neutral); }
.notice { padding: 10px 14px; border-radius: 6px; border: 1px solid var(--neutral-line); border-left-width: 4px; background: var(--neutral-bg); color: var(--ink); }
.notice.tone-good { background: var(--good-bg); border-color: var(--good-line); border-left-color: var(--good); }
.notice.tone-warn { background: var(--warn-bg); border-color: var(--warn-line); border-left-color: #c47a00; }
.notice.tone-danger { background: var(--danger-bg); border-color: var(--danger-line); border-left-color: var(--danger); }
.notice.tone-info { background: var(--info-bg); border-color: var(--info-line); border-left-color: var(--info); }
.notice .tone-good, .notice .tone-warn, .notice .tone-danger, .notice .tone-info { color: inherit; }

/* ---- states ---- */
.state { padding: 28px 20px; border: 1px dashed var(--line-strong); border-radius: 8px; background: var(--panel); display: flex; flex-direction: column; align-items: flex-start; gap: 6px; color: var(--muted); }
.state strong { color: var(--ink); font-size: 14px; }
.state-error { border-style: solid; border-color: var(--danger-line); background: var(--danger-bg); color: var(--ink); }
.state-loading { flex-direction: row; align-items: center; gap: 10px; border: 0; background: none; padding: 12px 0; }
.state-loading::before { content: ""; width: 14px; height: 14px; border: 2px solid var(--line-strong); border-top-color: var(--accent); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .state-loading::before { animation: none; } * { scroll-behavior: auto !important; } }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 34px; padding: 0 14px; border-radius: 6px; border: 1px solid var(--line-strong); background: var(--panel); color: var(--ink); font-weight: 600; text-decoration: none; cursor: pointer; white-space: nowrap; }
.btn:hover:not(:disabled) { background: var(--sunk); border-color: #aeb8c3; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover:not(:disabled) { background: #0a4c7a; border-color: #0a4c7a; }
.btn-danger { color: var(--danger); border-color: var(--danger-line); }
.btn-danger:hover:not(:disabled) { background: var(--danger-bg); border-color: var(--danger); }
.btn-attn { background: var(--attn); border-color: var(--attn); color: #fff; }
.btn-attn:hover { background: #482c85; border-color: #482c85; }
.btn-quiet { border-color: transparent; background: none; color: var(--accent); }
.btn-link { border: 0; background: none; min-height: 0; padding: 0; color: var(--accent); font-weight: 400; text-decoration: underline; }
.btn-small { min-height: 28px; padding: 0 10px; font-size: 13px; }
.link { color: var(--accent); } .link.strong { text-decoration: none; } .link.strong:hover { text-decoration: underline; }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 8px; background: var(--panel); }
.card > .table-wrap { border: 0; border-radius: 0; margin: 0 -20px; }
.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 8px 12px; border-bottom: 1px solid var(--line); background: var(--sunk); white-space: nowrap; }
.table td { padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; overflow-wrap: anywhere; }
.table tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: #fafbfc; }
.table .num { text-align: right; }
.table-foot { padding: 8px 0 0; }
.table.vendors { table-layout: fixed; }
.vendors th:nth-child(1) { width: 17%; } .vendors th:nth-child(2) { width: 22%; } .vendors th:nth-child(3) { width: 15%; } .vendors th:nth-child(4) { width: 14%; } .vendors th:nth-child(5) { width: 11%; } .vendors th:nth-child(6) { width: 21%; }
.row-actions { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.reasons { list-style: none; padding: 0; color: var(--muted); font-size: 12px; }
.summary-line { font-size: 15px; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: baseline; }
.summary-part { font-weight: 650; } .sep { color: var(--faint); }
meter.envelope { appearance: none; -webkit-appearance: none; width: 100%; max-width: 150px; height: 10px; border: 0; background: none; vertical-align: middle; }
meter.envelope::-webkit-meter-bar { background: #e5e9ee; border: 0; border-radius: 5px; height: 10px; }
meter.envelope::-webkit-meter-optimum-value { background: #2f9461; border-radius: 5px; }
meter.envelope::-webkit-meter-suboptimum-value { background: #d89a1c; border-radius: 5px; }
meter.envelope::-webkit-meter-even-less-good-value { background: #c9443b; border-radius: 5px; }
meter.envelope::-moz-meter-bar { border-radius: 5px; }
meter.envelope:-moz-meter-optimum::-moz-meter-bar { background: #2f9461; }
meter.envelope:-moz-meter-sub-optimum::-moz-meter-bar { background: #d89a1c; }
meter.envelope:-moz-meter-sub-sub-optimum::-moz-meter-bar { background: #c9443b; }

/* ---- forms ---- */
.form { display: flex; flex-direction: column; gap: 16px; }
.form-inline { gap: 12px; }
.field-group { border: 1px solid var(--line); border-radius: 6px; padding: 12px 16px 16px; margin: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.field-group legend { padding: 0 6px; font-weight: 650; }
.field { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.field label { font-size: 13px; font-weight: 600; }
.field input, .field select { height: 36px; padding: 0 10px; border: 1px solid var(--line-strong); border-radius: 4px; background: #fff; width: 100%; min-width: 0; }
.field input[type="file"] { height: auto; padding: 6px; }
.field input:focus, .field select:focus { border-color: var(--focus); }
.hint { font-size: 12px; color: var(--muted); }
.field-error { font-size: 12px; color: var(--danger); font-weight: 600; }
.field-error:empty { display: none; }
.has-error input, .has-error select { border-color: var(--danger); background: #fff8f7; }
.checks { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.check { display: inline-flex; align-items: center; gap: 8px; }
.form-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.form-status:empty { display: none; }

/* ---- messages the engine sends ---- */
.message-block { border: 1px solid var(--line-strong); border-radius: 6px; background: var(--sunk); overflow: hidden; }
.message-subject { display: flex; gap: 12px; padding: 8px 12px; border-bottom: 1px solid var(--line); background: #eef1f5; align-items: baseline; }
.message-label { font-size: 12px; color: var(--muted); }
.message-body { margin: 0; padding: 12px; white-space: pre-wrap; overflow-wrap: anywhere; font-family: var(--mono); font-size: 13px; line-height: 1.55; contain: none; }

/* ---- conversation ---- */
.timeline { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.timeline-item { display: flex; }
.item-sent { padding-right: 12%; } .item-received { padding-left: 12%; justify-content: flex-end; }
.tl-card { width: 100%; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 18px; display: flex; flex-direction: column; gap: 10px; }
.tl-sent { border-left: 4px solid #6c8196; }
.tl-received { border-left: 4px solid var(--info); }
.tl-warning { border-left: 4px solid #c47a00; background: #fffaf0; }
.tl-proposal { border: 1px dashed var(--attn-line); border-left: 4px solid var(--attn); background: #fcfbff; }
.state-approved.tl-proposal { border-left-color: var(--good); } .state-rejected.tl-proposal, .state-stale.tl-proposal { border-left-color: var(--faint); }
.tl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.stamp { font-size: 12px; color: var(--muted); white-space: nowrap; }
.tl-received .facts { grid-template-columns: 150px minmax(0, 1fr); gap: 10px 16px; }
.tl-received .fact { display: contents; }
.evidence { margin: 2px 0 0; padding: 4px 10px; border-left: 3px solid var(--line-strong); background: var(--sunk); font-size: 13px; color: #33404d; max-width: 70ch; }
.evidence::before { content: "Vendor wrote: “"; color: var(--muted); } .evidence::after { content: "”"; color: var(--muted); }
.rationale { max-width: 75ch; }
.outcome { font-weight: 600; }

/* ---- approvals ---- */
.approval { gap: 14px; scroll-margin-top: 72px; }
.approval.focus { outline: 2px solid var(--attn); outline-offset: 2px; }
.approval.decided { background: #fbfcfb; }
.price-line { display: flex; flex-wrap: wrap; gap: 8px 36px; align-items: flex-end; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.price-line > div { display: flex; flex-direction: column; }
.big { font-size: 24px; line-height: 1.2; }
.what { font-size: 16px; max-width: 75ch; }
.rationale-box { border-left: 3px solid var(--attn-line); padding-left: 12px; display: flex; flex-direction: column; gap: 2px; max-width: 80ch; }
.digest-line { font-size: 13px; color: var(--muted); }
.digest { word-break: break-all; }

.approval.adjusted { border-left: 4px solid var(--info); }
.adjust { border-top: 1px solid var(--line); padding-top: 12px; display: flex; flex-direction: column; gap: 6px; }
.adjust-form { display: flex; flex-direction: column; gap: 8px; }
.adjust-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 12px; }
.adjust-row .field { width: 440px; max-width: 100%; }
.adjust-row .btn { margin-top: 22px; }

/* ---- needs a person, closing a conversation ---- */
.attention-item { gap: 12px; border-left: 4px solid #c47a00; }
.attention-item.decided { border-left-color: var(--line-strong); background: #fbfcfb; }
.close-control { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.close-confirm { display: flex; flex-direction: column; gap: 8px; max-width: 80ch; }
.stack > :empty { display: none; }

/* ---- quarantine ---- */
.part { padding-top: 8px; border-top: 1px solid var(--line); }
.link-target { padding: 8px 12px; background: var(--sunk); border-radius: 4px; border: 1px solid var(--line); }

@media (max-width: 1100px) {
  .split { grid-template-columns: minmax(0, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .item-sent { padding-right: 4%; } .item-received { padding-left: 4%; }
}
@media (max-width: 760px) {
  #shell { grid-template-columns: minmax(0, 1fr); }
  #rail { position: static; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 12px; }
  #navigation { flex-direction: row; flex-wrap: wrap; } #who { margin-top: 0; flex-direction: row; align-items: center; }
  #app { padding: 16px; } #topbar { padding: 0 16px; height: auto; min-height: 48px; flex-wrap: wrap; }
  .grid-3, .grid-4, .grid-5 { grid-template-columns: minmax(0, 1fr); }
}
#app > .btn, .stack > .btn { align-self: flex-start; }
#discard-confirm { max-width: 12em; font-family: var(--mono); }

/* ---- vendor directory: filters, list/map toggle, the tile-grid map ---- */
.btn[hidden] { display: none; }
.card > div:empty { display: none; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.filters .field { width: 190px; }
.filters .field:first-child { flex: 1 1 220px; width: auto; max-width: 340px; }
.filter-end { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.segmented { display: inline-flex; border: 1px solid var(--line-strong); border-radius: 6px; overflow: hidden; background: var(--panel); }
.seg-btn { min-height: 34px; padding: 0 18px; border: 0; background: var(--panel); color: var(--ink); font-weight: 600; cursor: pointer; }
.seg-btn + .seg-btn { border-left: 1px solid var(--line-strong); }
.seg-btn:hover:not(.seg-on) { background: var(--sunk); }
.seg-btn:focus-visible { outline-offset: -3px; }
.seg-on { background: var(--accent); color: var(--accent-ink); }
.table.directory td:first-child { min-width: 200px; }
.pager { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 4px; }

.usmap-wrap { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 8px 0 4px; }
.usmap { display: grid; grid-template-columns: repeat(11, minmax(0, 1fr)); gap: 6px; width: 100%; max-width: 780px; }
.tile { position: relative; aspect-ratio: 1 / 1; min-width: 0; padding: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15;
  border: 1px solid rgba(24, 34, 45, .28); border-radius: 6px; cursor: pointer; }
.tile:hover { box-shadow: 0 0 0 2px var(--focus); }
.tile:focus-visible { outline-offset: 3px; }
.tile-code { font-size: 14px; font-weight: 700; letter-spacing: .01em; }
.tile-count { font-size: 12px; font-variant-numeric: tabular-nums; }
.tile-selected { outline: 3px solid var(--ink); outline-offset: 2px; }
.tile-flag { position: absolute; top: -5px; right: -5px; width: 16px; height: 16px; border-radius: 50%; background: #f0b44c; color: #2a1d00; border: 1px solid #fff;
  font-size: 11px; font-weight: 800; line-height: 14px; text-align: center; }
.shade-0 { background: #f1f3f5; color: #5a6877; }
.shade-1 { background: #e3eef8; color: #18222d; }
.shade-2 { background: #a8cbe8; color: #18222d; }
.shade-3 { background: #2a70a6; color: #ffffff; }
.shade-4 { background: #0b4a78; color: #ffffff; }
.tile-extra { width: 52px; }
.usmap-extra { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.usmap-extra-row { display: flex; gap: 6px; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 13px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 6px; }
.swatch { width: 18px; height: 18px; border-radius: 4px; border: 1px solid rgba(24, 34, 45, .28); }
.legend-flag { position: static; display: inline-block; }
.tile-r0 { grid-row: 1; } .tile-r1 { grid-row: 2; } .tile-r2 { grid-row: 3; } .tile-r3 { grid-row: 4; } .tile-r4 { grid-row: 5; } .tile-r5 { grid-row: 6; } .tile-r6 { grid-row: 7; } .tile-r7 { grid-row: 8; } 
.tile-c0 { grid-column: 1; } .tile-c1 { grid-column: 2; } .tile-c2 { grid-column: 3; } .tile-c3 { grid-column: 4; } .tile-c4 { grid-column: 5; } .tile-c5 { grid-column: 6; } .tile-c6 { grid-column: 7; } .tile-c7 { grid-column: 8; } .tile-c8 { grid-column: 9; } .tile-c9 { grid-column: 10; } .tile-c10 { grid-column: 11; } 

/* ---- the vendor page, flags and activity, lane groups ---- */
.plain-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.flag-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 0; border-top: 1px solid var(--warn-line); }
.flag-row:first-child { border-top: 0; padding-top: 0; }
.activity { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.activity-item { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 0; border-top: 1px solid var(--line); }
.activity-item:first-child { border-top: 0; padding-top: 0; }
.channel-group { display: flex; flex-direction: column; gap: 6px; }
.channel-group .table-wrap { border: 0; border-radius: 0; margin: 0 -20px; }
.row-portal td:first-child { box-shadow: inset 3px 0 0 var(--info); }

@media (max-width: 700px) {
  .usmap { gap: 3px; } .tile { border-radius: 4px; } .tile-code { font-size: 11px; } .tile-count { display: none; }
  .tile-flag { width: 12px; height: 12px; top: -4px; right: -4px; font-size: 9px; line-height: 10px; }
  .filter-end { margin-left: 0; } .filters .field, .filters .field:first-child { width: 100%; max-width: none; flex: 1 1 100%; }
  .activity-item { grid-template-columns: minmax(0, 1fr); gap: 4px; }
}
