/* Petromix · Delivery Route Map (Home, beside "Clients near me")

   The supplied map-preview.css, scoped under .mp, with these changes:
   · no Google Fonts @import — Barlow, Barlow Condensed and IBM Plex Mono are
     already self-hosted by advisor.css, so the tile looks the same offline;
   · the hand-drawn SVG base map's rules (zones hatch, road shields, zone
     labels) are gone: the map is Leaflet + OpenStreetMap, over an inline
     schematic of Egypt that is shown until (or instead of) the tiles;
   · the site chips became a destination dropdown and a place search;
   · the tile layer is tinted to the design's dark / light-grey map;
   · in the light theme the FRAME goes light too (header, destination row,
     buttons) — the supplied file kept a dark frame around the light map. */

.mp {
  --mp-acc: #FFC20E;
  --mp-ink: #121417;
  --mp-shell: #16191D;
  --mp-font: "Barlow", system-ui, sans-serif;
  --mp-cond: "Barlow Condensed", "Barlow", sans-serif;
  --mp-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* map theme (dark default; .mp--light overrides) */
  --land: #15181C; --nb: #0F1114; --agri: #172019; --water: #0E2230; --water-line: #1E4862; --border: #3A4048;
  --pri-case: #0B0D0F;
  --label1: #E6E9EC; --label2: #A3ABB4; --label3: #7D858F;
  --halo: 0 0 4px #15181C, 0 0 2px #15181C, 0 0 1px #15181C;
  --glass: rgba(18,20,23,.64); --glass-line: rgba(255,255,255,.14); --glass-text: #FFFFFF; --glass-muted: #A3ABB4;
  --ctrl-bg: rgba(18,20,23,.72); --ctrl-text: #FFFFFF; --route-case: #0B0D0F;
  /* Standard OSM tiles, turned into the design's dark map. */
  --tiles: invert(1) hue-rotate(180deg) brightness(.92) contrast(.9) saturate(.35);

  box-sizing: border-box;
  display: flex; flex-direction: column;
  height: 100%; min-height: 520px;
  background: var(--mp-shell); color: #FFFFFF;
  font-family: var(--mp-font);
  border-radius: 14px; overflow: hidden;
  -webkit-font-smoothing: antialiased;
  text-align: left;
}
.mp--light {
  --land: #E8EAED; --nb: #DADDE1; --agri: #DCE4D8; --water: #B9D0E0; --water-line: #8DB0C8; --border: #A9B0B8;
  --pri-case: #A9B0B8;
  --label1: #121417; --label2: #3B424A; --label3: #5B636D;
  --halo: 0 0 3px #E8EAED, 0 0 2px #E8EAED, 0 0 1px #E8EAED;
  --glass: rgba(255,255,255,.74); --glass-line: rgba(18,20,23,.12); --glass-text: #121417; --glass-muted: #5B636D;
  --ctrl-bg: rgba(255,255,255,.86); --ctrl-text: #121417; --route-case: #121417;
  /* ...and the light grey one. */
  --tiles: grayscale(.9) brightness(1.03) contrast(.92);
}
.mp *, .mp *::before, .mp *::after { box-sizing: border-box; }
:where(.mp) :where(button, input, select) { font-family: inherit; }
.mp h2, .mp p { margin: 0; }
.mp-num { font-variant-numeric: tabular-nums; }
.mp-mono { font-family: var(--mp-mono); }

/* ---------- Header ---------- */
.mp-head { flex: none; height: 64px; padding: 0 20px; display: flex; align-items: center; gap: 14px; border-bottom: 1px solid rgba(255,255,255,.08); }
.mp-head-icon { width: 40px; height: 40px; flex: none; border-radius: 8px; background: #23272C; color: var(--mp-acc); display: flex; align-items: center; justify-content: center; }
.mp-title { font-family: var(--mp-cond); font-size: 22px; line-height: 1; font-weight: 800; text-transform: uppercase; letter-spacing: normal; color: #FFFFFF; }
.mp-eyebrow { font-family: var(--mp-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #A3ABB4; margin-top: 3px; }
.mp-head-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.mp-ghost { height: 44px; padding: 0 14px; border-radius: 8px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #FFFFFF; font-size: 14px; font-weight: 700; line-height: 1.2; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-decoration: none; transition: background-color .15s, border-color .15s; }
.mp-ghost:hover { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.3); }
.mp-ghost[aria-pressed="true"] { border-color: var(--mp-acc); color: var(--mp-acc); }
.mp-ghost[aria-disabled="true"] { opacity: .45; pointer-events: none; }
.mp-cta { height: 44px; padding: 0 16px; border: 0; border-radius: 8px; background: var(--mp-acc); color: var(--mp-ink); font-size: 14px; font-weight: 800; line-height: 1.2; letter-spacing: .02em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; transition: transform .14s, filter .14s; }
.mp-cta:hover { filter: brightness(1.06); transform: translateY(-1px); }
.mp-cta:active { transform: scale(.98); }
.mp-cta:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; }
.mp :focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }

/* ---------- Destination (the design's site-chip row) ---------- */
.mp-sites { flex: none; min-height: 68px; margin: 0; padding: 10px 20px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; border-bottom: 1px solid rgba(255,255,255,.08); }
.mp-sites-label { flex: none; font-family: var(--mp-mono); font-size: 11px; font-weight: 600; letter-spacing: .12em; color: #A3ABB4; margin-right: 4px; }
.mp-field { flex: 1 1 180px; min-width: 0; height: 44px; border-radius: 999px; border: 1px solid rgba(255,255,255,.16); background: transparent; color: #D5DAE0; font-size: 14px; font-weight: 700; transition: border-color .15s; }
.mp-field:hover, .mp-field:focus-within { border-color: rgba(255,255,255,.4); }
.mp-select { padding: 0 34px 0 14px; appearance: none; -webkit-appearance: none; cursor: pointer; text-overflow: ellipsis;
  background: transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23FFC20E' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; }
.mp-select option, .mp-select optgroup { background: #16191D; color: #FFFFFF; }
.mp-search { display: flex; align-items: center; padding: 0 4px 0 14px; }
.mp-search input { flex: 1; min-width: 0; height: 100%; border: 0; background: transparent; color: #FFFFFF; font: inherit; outline: none; }
.mp-search input::placeholder { color: #7D858F; font-weight: 600; }
.mp-search input::-webkit-search-cancel-button { filter: invert(1); }
.mp-search-go { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; color: var(--mp-acc); display: flex; align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Map ---------- */
.mp-map { position: relative; flex: 1; min-height: 0; overflow: hidden; background: var(--land); }
.mp-static { position: absolute; inset: 0; width: 100%; height: 100%; display: block; transition: opacity .4s; }
.mp-s-nb { fill: var(--nb); }
.mp-s-sea { fill: var(--water); }
.mp-s-egypt { fill: var(--land); stroke: var(--border); stroke-width: 1.2; stroke-dasharray: 5 4; }
.mp-s-agri { fill: var(--agri); }
.mp-s-valley { fill: none; stroke: var(--agri); stroke-width: 9; stroke-linecap: round; stroke-linejoin: round; }
.mp-s-river, .mp-s-canal { fill: none; stroke: var(--water-line); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.mp-s-case { stroke: var(--route-case); stroke-linecap: round; }
.mp-s-core { stroke: var(--mp-acc); stroke-linecap: round; }
.mp-s-flow { stroke: #FFF8E1; stroke-linecap: round; }
.mp-layer { position: absolute; inset: 0; pointer-events: none; transition: opacity .4s; }
.mp-at { position: absolute; width: 0; height: 0; }

/* Leaflet sits above the schematic, invisible until its tiles arrive. */
.mp-leaflet { position: absolute; inset: 0; z-index: 1; opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s .4s; }
.mp.is-live .mp-leaflet { opacity: 1; visibility: visible; transition: opacity .4s; }
.mp.is-live .mp-static, .mp.is-live .mp-slabels, .mp.is-live .mp-spins, .mp.is-live .mp-attrib { opacity: 0; visibility: hidden; }
.mp .leaflet-container { background: var(--land); font-family: var(--mp-font); color: var(--label1); }
.mp .leaflet-tile-pane { filter: var(--tiles); }
.mp .leaflet-control-attribution { margin: 8px 0 0 8px !important; padding: 2px 6px; border-radius: 4px; background: var(--glass) !important; color: var(--glass-muted); font: 600 10px/1.4 var(--mp-mono); }
.mp .leaflet-control-attribution a { color: var(--glass-text); }
.mp-lpin { background: none; border: 0; }
.mp .mp-l-case { stroke: var(--route-case); stroke-linecap: round; }
.mp .mp-l-core { stroke: var(--mp-acc); stroke-opacity: 1; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(255,194,14,.55)); }
.mp .mp-l-flow { stroke: #FFF8E1; stroke-opacity: 1; stroke-dasharray: 5 10; animation: mp-flow .9s linear infinite; }
@keyframes mp-flow { to { stroke-dashoffset: -15; } }
.mp-city { position: absolute; transform: translate(-50%, -4px); display: flex; flex-direction: column; align-items: center; gap: 3px; white-space: nowrap; }
.mp-city i { width: 6px; height: 6px; border-radius: 50%; box-shadow: 0 0 0 2px var(--land); }
.mp-city span { text-shadow: var(--halo); }
.mp-city.r1 i { background: var(--label1); } .mp-city.r1 span { font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--label1); }
.mp-city.r2 i { background: var(--label3); } .mp-city.r2 span { font-size: 12px; font-weight: 700; color: var(--label2); }
.mp-city.r3 i { background: var(--label3); } .mp-city.r3 span { font-size: 11px; font-weight: 600; color: var(--label3); }

/* Pins */
.mp-pin { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mp-pin-dot { position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; border-radius: 50%; background: #FFFFFF; border: 2px solid var(--mp-ink); }
.mp-pin-hub { position: absolute; left: -19px; top: -50px; display: flex; flex-direction: column; align-items: center; }
.mp-pin-hub b { width: 38px; height: 38px; border-radius: 9px; background: var(--mp-ink); border: 2px solid #FFFFFF; color: #FFFFFF; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 16px rgba(0,0,0,.45); }
.mp-pin-hub i { width: 0; height: 0; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 9px solid #FFFFFF; margin-top: -1px; }
.mp-pin-site svg { position: absolute; left: -18px; top: -45px; filter: drop-shadow(0 6px 10px rgba(0,0,0,.45)); }
.mp-pulse { position: absolute; left: 0; top: 0; width: 56px; height: 56px; border-radius: 50%; border: 3px solid var(--mp-acc); animation: mp-pulse 1.8s ease-out infinite; }
@keyframes mp-pulse { 0% { transform: translate(-50%,-50%) scale(.4); opacity: .9; } 100% { transform: translate(-50%,-50%) scale(1.6); opacity: 0; } }
.mp-tag { position: absolute; top: -54px; display: flex; flex-direction: column; gap: 1px; padding: 6px 10px; border-radius: 6px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0,0,0,.35); line-height: 1.25; }
.mp-tag small { font-family: var(--mp-mono); font-size: 9px; font-weight: 600; letter-spacing: .14em; }
.mp-tag strong { font-size: 14px; font-weight: 800; max-width: 200px; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.mp-tag.right { left: 26px; } .mp-tag.left { right: 26px; }
.mp-tag--hub { background: var(--mp-ink); border: 1px solid rgba(255,255,255,.18); color: #FFFFFF; } .mp-tag--hub small { color: #A3ABB4; }
.mp-tag--site { background: var(--mp-acc); color: var(--mp-ink); }
.mp-other-hub { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.mp-other-hub i { position: absolute; left: -9px; top: -9px; width: 18px; height: 18px; border-radius: 4px; background: #3A4048; border: 2px solid var(--land); box-shadow: 0 0 0 1px #6B737C; }
.mp-other-hub span { position: absolute; left: 14px; top: -9px; height: 18px; display: flex; align-items: center; font-size: 11px; font-weight: 700; color: var(--label2); text-shadow: var(--halo); white-space: nowrap; }

/* Glass */
.mp-glass { background: var(--glass); border: 1px solid var(--glass-line); color: var(--glass-text); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); }
.mp-controls { position: absolute; z-index: 2; left: 16px; top: 16px; display: flex; flex-direction: column; border-radius: 10px; overflow: hidden; border: 1px solid var(--glass-line); }
.mp-ctrl { width: 44px; height: 44px; border: 0; background: var(--ctrl-bg); color: var(--ctrl-text); display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.mp-ctrl + .mp-ctrl { border-top: 1px solid var(--glass-line); }
.mp-ctrl:hover { filter: brightness(1.25); }
.mp-note { position: absolute; z-index: 2; left: 72px; top: 16px; max-width: calc(100% - 440px); padding: 7px 10px; border-radius: 8px; font-size: 12px; font-weight: 600; line-height: 1.35; }
.mp-note[hidden] { display: none; }
.mp-note button { margin-left: 6px; padding: 0; border: 0; background: none; color: var(--mp-acc); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.mp--light .mp-note button { color: #8A5A00; }

.mp-card { position: absolute; z-index: 2; right: 16px; top: 16px; width: 304px; padding: 18px; border-radius: 14px; box-shadow: 0 18px 40px -16px rgba(0,0,0,.55); display: flex; flex-direction: column; gap: 14px; line-height: 1.3; }
.mp-card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.mp-k { font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--glass-muted); }
.mp-badge { height: 22px; padding: 0 8px; display: inline-flex; align-items: center; border-radius: 4px; font-family: var(--mp-mono); font-size: 10px; font-weight: 600; letter-spacing: .08em; flex: none; }
.mp-badge--zone { background: var(--mp-acc); color: var(--mp-ink); }
.mp-steps { display: grid; grid-template-columns: 14px 1fr; column-gap: 12px; row-gap: 10px; }
.mp-steps i { width: 12px; height: 12px; margin-top: 3px; }
.mp-steps i.hub { border-radius: 3px; background: var(--mp-ink); border: 2px solid var(--glass-text); }
.mp-steps i.site { border-radius: 50%; background: var(--mp-acc); box-shadow: 0 0 0 2px var(--mp-ink); }
.mp-steps div { display: flex; flex-direction: column; min-width: 0; }
.mp-steps strong { font-size: 15px; font-weight: 800; overflow-wrap: anywhere; }
.mp-steps small { font-size: 12px; font-weight: 600; color: var(--glass-muted); }
.mp-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 1px solid var(--glass-line); border-radius: 10px; overflow: hidden; }
.mp-stats > div { padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.mp-stats > div + div { border-left: 1px solid var(--glass-line); }
.mp-big { font-family: var(--mp-cond); font-size: 32px; line-height: 1; font-weight: 800; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mp-big small { font-size: 16px; font-weight: 700; color: var(--glass-muted); }
.mp-sub { font-size: 11px; font-weight: 600; color: var(--glass-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp-rows { display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.mp-rows div { display: flex; justify-content: space-between; gap: 10px; }
.mp-rows span:first-child { color: var(--glass-muted); font-weight: 600; white-space: nowrap; }
.mp-rows span:last-child { font-weight: 700; text-align: right; min-width: 0; }
.mp-coords { padding-top: 10px; border-top: 1px solid var(--glass-line); font-family: var(--mp-mono); font-size: 11px; color: var(--glass-muted); letter-spacing: .04em; }
.mp-empty { display: flex; flex-direction: column; gap: 4px; }
.mp-empty strong { font-size: 16px; font-weight: 800; }
.mp-empty small { font-size: 12px; font-weight: 600; color: var(--glass-muted); line-height: 1.45; }
.mp-card-site { display: none; justify-content: space-between; align-items: flex-start; gap: 10px; }
.mp-card-site div { display: flex; flex-direction: column; min-width: 0; }
.mp-card-site strong { font-size: 16px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; unicode-bidi: plaintext; }
.mp-card-site small { font-size: 12px; font-weight: 600; color: var(--glass-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.mp-legend { position: absolute; z-index: 2; left: 16px; bottom: 16px; padding: 10px 12px; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; }
.mp-legend-items { display: flex; align-items: center; gap: 16px; font-size: 12px; font-weight: 600; flex-wrap: wrap; }
.mp-legend-items span { display: flex; align-items: center; gap: 6px; }
.mp-sw-hub { width: 12px; height: 12px; border-radius: 3px; background: var(--mp-ink); border: 2px solid var(--glass-text); }
.mp-sw-other { width: 12px; height: 12px; border-radius: 3px; background: #3A4048; box-shadow: 0 0 0 1px #6B737C; }
.mp-sw-site { width: 12px; height: 12px; border-radius: 50%; background: var(--mp-acc); box-shadow: 0 0 0 2px var(--mp-ink); }
.mp-sw-route { width: 20px; height: 4px; border-radius: 2px; background: var(--mp-acc); box-shadow: 0 0 8px var(--mp-acc); }
.mp-scale { display: flex; align-items: center; gap: 8px; }
.mp-scale i { height: 6px; border: 2px solid var(--glass-text); border-top: 0; }
.mp-scale span { font-family: var(--mp-mono); font-size: 11px; font-weight: 600; }
.mp-attrib { position: absolute; right: 16px; bottom: 12px; font-family: var(--mp-mono); font-size: 10px; letter-spacing: .06em; color: var(--label3); text-shadow: var(--halo); transition: opacity .4s; }
.mp-actions { display: none; }

/* ---------- Client pins (every client the rep has a location for) ---------- */
.mp-cbtn { position: absolute; width: 0; height: 0; padding: 0; border: 0; background: none; pointer-events: auto; cursor: pointer; overflow: visible; }
.mp-cpin { position: absolute; left: 0; top: 0; width: 0; height: 0; cursor: pointer; }
.mp-chit { position: absolute; left: -16px; top: -16px; width: 32px; height: 32px; border-radius: 50%; }   /* the thumb's target */
.mp-cpin i { position: absolute; left: -8px; top: -8px; width: 16px; height: 16px; border-radius: 50%; box-sizing: border-box;
  background: #FFFFFF; border: 4px solid var(--mp-acc); box-shadow: 0 2px 6px rgba(0,0,0,.45);
  display: flex; align-items: center; justify-content: center; font: normal 800 11px/1 var(--mp-font); color: var(--mp-ink); }
.mp-cpin.is-city i { background: var(--land); border-width: 3px; }
.mp-cpin.is-group i { left: -12px; top: -12px; width: 24px; height: 24px; background: var(--mp-acc); border: 2px solid var(--mp-ink); }
.mp-cpin-l { position: absolute; left: 13px; top: -9px; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font-size: 11px; font-weight: 700; line-height: 18px; color: var(--label1); text-shadow: var(--halo); unicode-bidi: plaintext; pointer-events: none; }
.mp-cpin.is-group .mp-cpin-l { left: 17px; }
/* More than ten pins: names on hover / focus only, or they bury the map. */
.mp--many .mp-cpin-l, .mp-cpin-l.is-hidden { display: none; }
.mp-cbtn:hover .mp-cpin-l, .mp-cbtn:focus-visible .mp-cpin-l, .mp-lpin:hover .mp-cpin-l, .mp-lpin:focus .mp-cpin-l { display: block; }
.mp-cbtn:focus-visible { outline: none; }
.mp-cbtn:focus-visible .mp-chit, .mp-lpin:focus-visible .mp-chit { outline: 3px solid #FFFFFF; outline-offset: -4px; }
.mp-sw-client { width: 12px; height: 12px; border-radius: 50%; background: #FFFFFF; border: 3px solid var(--mp-acc); box-sizing: border-box; }
.mp-sw-client.is-city { background: transparent; }

/* Several clients at one spot: their names, to pick one. */
.mp-pop { position: absolute; z-index: 3; width: 240px; max-height: 260px; overflow-y: auto; padding: 6px; border-radius: 10px;
  box-shadow: 0 18px 40px -16px rgba(0,0,0,.6); display: flex; flex-direction: column; gap: 2px; }
.mp-pop[hidden] { display: none; }
.mp-pop-h { margin: 4px 8px 6px !important; font: 600 10px/1.2 var(--mp-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--glass-muted); }
.mp-pop button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; width: 100%; min-height: 44px; padding: 6px 10px;
  border: 0; border-radius: 8px; background: transparent; color: var(--glass-text); text-align: left; cursor: pointer; }
.mp-pop button:hover, .mp-pop button:focus-visible { background: rgba(255,194,14,.16); outline: none; }
.mp-pop button span { font-size: 14px; font-weight: 800; unicode-bidi: plaintext; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mp-pop button small { font-size: 11px; font-weight: 600; color: var(--glass-muted); }

/* ---------- Compact (phones / narrow containers) ---------- */
.mp--compact .mp-head { padding: 0 16px; }
.mp--compact .mp-head-icon, .mp--compact .mp-head .mp-maps, .mp--compact .mp-head .mp-cta, .mp--compact .mp-zones-text { display: none; }
.mp--compact .mp-head .mp-ghost { width: 44px; padding: 0; justify-content: center; }
.mp--compact .mp-sites { min-height: 0; padding: 0 16px 10px; border-bottom: 0; }
.mp--compact .mp-sites-label { display: none; }
.mp--compact .mp-controls { left: auto; right: 12px; top: 12px; }
.mp--compact .mp-note { left: 12px; top: 12px; max-width: calc(100% - 80px); }
.mp--compact .mp-card { left: 12px; right: 12px; top: auto; bottom: 12px; width: auto; padding: 12px 14px; gap: 10px; }
.mp--compact .mp-steps, .mp--compact .mp-coords, .mp--compact .mp-row-via, .mp--compact .mp-card-top, .mp--compact .mp-sub { display: none; }
.mp-rows .mp-row-hub { display: none; } .mp--compact .mp-rows .mp-row-hub { display: flex; }
.mp--compact .mp-card-site { display: flex; }
.mp--compact .mp-big { font-size: 28px; }
.mp--compact .mp-stats > div { padding: 8px 12px; }
.mp--compact .mp-legend { display: none; }
/* The status note says the same thing, in words, at this size. */
.mp--compact .mp-attrib { display: none; }
.mp--compact .mp-tag { top: -48px; padding: 5px 8px; } .mp--compact .mp-tag small { display: none; } .mp--compact .mp-tag strong { font-size: 13px; max-width: 150px; }
.mp--compact .mp-tag.right { left: 22px; } .mp--compact .mp-tag.left { right: 22px; }
.mp--compact .mp-actions { flex: none; display: grid; grid-template-columns: 1fr; gap: 10px; padding: 12px 16px 16px; }
.mp--compact .mp-actions .mp-ghost, .mp--compact .mp-actions .mp-cta { height: 48px; justify-content: center; font-size: 14px; }
.mp--compact .mp-title { font-size: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mp--compact .mp-head > div:nth-child(2) { min-width: 0; }

@media (prefers-reduced-motion: reduce) {
  .mp *, .mp *::before, .mp *::after { animation: none !important; transition: none !important; }
}
.mp-k, .mp-badge, .mp-ghost, .mp-cta { white-space: nowrap; }

/* ---------- Light theme: the frame ---------- */
.mp--light { background: #FFFFFF; color: #121417; border: 1px solid rgba(18,20,23,.09); }
.mp--light .mp-head, .mp--light .mp-sites { border-bottom-color: rgba(18,20,23,.08); }
.mp--light .mp-head-icon { background: #F1F2F4; color: #8A5A00; }
.mp--light .mp-title { color: #121417; }
.mp--light .mp-eyebrow, .mp--light .mp-sites-label { color: #5B636D; }
.mp--light .mp-ghost { border-color: rgba(18,20,23,.18); color: #121417; }
.mp--light .mp-ghost:hover { background: rgba(18,20,23,.05); border-color: rgba(18,20,23,.3); }
.mp--light .mp-ghost[aria-pressed="true"] { border-color: #C98A00; color: #8A5A00; }
.mp--light :focus-visible { outline-color: #121417; }
.mp--light .mp-field { border-color: rgba(18,20,23,.18); color: #121417; }
.mp--light .mp-field:hover, .mp--light .mp-field:focus-within { border-color: rgba(18,20,23,.4); }
.mp--light .mp-select option, .mp--light .mp-select optgroup { background: #FFFFFF; color: #121417; }
.mp--light .mp-search input { color: #121417; }
.mp--light .mp-search input::placeholder { color: #6B737C; }
.mp--light .mp-search input::-webkit-search-cancel-button { filter: none; }
.mp--light .mp-search-go { color: #8A5A00; }
