/* IvyBears Leads — one stylesheet, no framework. Brand blue from the IvyBears signature (#254c91). */
:root {
  --bg: #f5f6f8; --surface: #ffffff; --surface-2: #f0f2f5; --border: #e2e5ea; --border-2: #d3d8df;
  --text: #15191f; --text-2: #525c6b; --muted: #8791a0;
  --accent: #254c91; --accent-hover: #1c3c74; --accent-soft: #e9eef8; --accent-text: #ffffff;
  --ok: #1d7a4e; --ok-soft: #e3f3ea; --warn: #8f5b00; --warn-soft: #fbf0d9; --bad: #b3261e; --bad-soft: #fce9e7;
  --info: #254c91; --info-soft: #e9eef8; --mute-soft: #eef0f3;
  --side: #10213f; --side-text: #c9d4e8; --side-active: #ffffff; --side-hover: rgba(255,255,255,.07);
  --radius: 8px; --shadow: 0 1px 2px rgba(16,24,40,.06), 0 1px 3px rgba(16,24,40,.08);
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e1116; --surface: #161a21; --surface-2: #1c212a; --border: #272d37; --border-2: #343b47;
    --text: #e7eaef; --text-2: #aab2be; --muted: #7b8493;
    --accent: #7ea3e6; --accent-hover: #9bb8ee; --accent-soft: #1b2941; --accent-text: #0e1116;
    --ok: #5cc592; --ok-soft: #15301f; --warn: #e2b057; --warn-soft: #362a12; --bad: #f08b81; --bad-soft: #3a1b18;
    --info: #7ea3e6; --info-soft: #1b2941; --mute-soft: #20252e;
    --side: #0a1426; --side-text: #9fb0cc; --shadow: 0 1px 2px rgba(0,0,0,.4);
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body { background: var(--bg); color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
h1 { font-size: 22px; } h2 { font-size: 16px; } h3 { font-size: 14px; }
p { margin: 0 0 8px; }
code, .mono { font-family: var(--mono); font-size: 12.5px; }
.muted, .mute { color: var(--muted); }
.small { font-size: 12.5px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.grow { flex: 1; }
.hidden { display: none !important; }
[hidden] { display: none !important; }

/* ---- shell ---- */
.shell { display: grid; grid-template-columns: 224px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 18px 12px; display: flex; flex-direction: column;
        position: sticky; top: 0; height: 100vh; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 10px 18px; color: #fff; font-weight: 650; font-size: 15px; }
.brand .logo { width: 28px; height: 28px; border-radius: 7px; background: #cc0000; display: grid; place-items: center;
               font-size: 13px; font-weight: 800; color: #fff; letter-spacing: -.02em; }
.nav { display: flex; flex-direction: column; gap: 2px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 6px; color: var(--side-text);
         font-weight: 500; }
.nav a:hover { background: var(--side-hover); text-decoration: none; color: #fff; }
.nav a.on { background: rgba(255,255,255,.12); color: var(--side-active); }
.nav .count { margin-left: auto; background: #cc0000; color: #fff; border-radius: 10px; padding: 0 7px; font-size: 11.5px;
              font-weight: 600; line-height: 18px; }
.nav .ico { width: 16px; text-align: center; opacity: .85; }
.nav-sep { height: 1px; background: rgba(255,255,255,.08); margin: 10px 6px; }
.side .me { margin-top: auto; padding: 10px; display: flex; align-items: center; gap: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.avatar { width: 28px; height: 28px; border-radius: 50%; background: var(--accent); color: #fff; display: inline-grid;
          place-items: center; font-size: 11px; font-weight: 700; flex: none; }
.side .me .who { line-height: 1.25; font-size: 12.5px; color: #fff; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.side .me form { margin-left: auto; }
.side .me button { background: none; border: 0; color: var(--side-text); cursor: pointer; font: inherit; font-size: 12px; white-space: nowrap; padding: 0; }
.side .me button:hover { color: #fff; }
.main { min-width: 0; padding: 22px 32px 80px; max-width: 1360px; }
.pagehead { display: flex; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
.pagehead .sub { color: var(--text-2); margin-top: 3px; }
.pagehead .actions { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---- flashes ---- */
.flashes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.flash { padding: 10px 14px; border-radius: var(--radius); border: 1px solid; font-size: 13.5px; }
.flash-ok { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.flash-error { background: var(--bad-soft); border-color: transparent; color: var(--bad); }
.flash-info { background: var(--info-soft); border-color: transparent; color: var(--info); }

/* ---- buttons & forms ---- */
.btn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 7px;
       border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font: 500 13.5px var(--font);
       cursor: pointer; white-space: nowrap; }
.btn:hover { background: var(--surface-2); text-decoration: none; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-danger { color: var(--bad); }
.btn-danger:hover { background: var(--bad-soft); }
.btn-ghost { border-color: transparent; background: transparent; }
.btn-sm { height: 28px; padding: 0 10px; font-size: 12.5px; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.linkbtn { background: none; border: 0; padding: 0; color: var(--accent); font: inherit; cursor: pointer; }
.linkbtn:hover { text-decoration: underline; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=time], input[type=search],
input[type=url], select, textarea {
  width: 100%; height: 34px; padding: 6px 10px; border: 1px solid var(--border-2); border-radius: 7px;
  background: var(--surface); color: var(--text); font: 13.5px var(--font); }
textarea { height: auto; min-height: 120px; line-height: 1.5; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
label { display: block; font-weight: 500; font-size: 13px; margin-bottom: 5px; color: var(--text); }
.field { margin-bottom: 14px; }
.field .hint { color: var(--muted); font-size: 12.5px; margin-top: 4px; }
.row { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.row > .field { flex: 1 1 180px; }
.check { display: flex; align-items: center; gap: 8px; font-weight: 400; }
.check input { width: auto; height: auto; }

/* ---- cards & layout ---- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; box-shadow: var(--shadow); }
.card-h { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); }
.card-h .actions { margin-left: auto; display: flex; gap: 8px; }
.card-b { padding: 16px 18px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 16px; align-items: start; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* ---- stats ---- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: 10px; padding: 14px 16px; }
.stat .n { font-size: 24px; font-weight: 650; letter-spacing: -.02em; }
.stat .l { color: var(--text-2); font-size: 12.5px; }
a.stat { display: block; color: inherit; text-decoration: none; transition: border-color .12s, box-shadow .12s; }
a.stat:hover { border-color: var(--accent); box-shadow: 0 2px 10px rgba(16,24,40,.10); text-decoration: none; }
a.stat:hover .n { color: var(--accent); }
a.stat:hover .l { color: var(--text); }
a.stat:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.meter { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; margin-top: 8px; }
.meter i { display: block; height: 100%; background: var(--accent); }

/* ---- tables ---- */
.tablewrap { overflow-x: auto; }
table.t { width: 100%; border-collapse: separate; border-spacing: 0; }
.t th { text-align: left; font-weight: 600; font-size: 12px; color: var(--text-2); text-transform: uppercase; letter-spacing: .03em;
        padding: 9px 12px; border-bottom: 1px solid var(--border); background: var(--surface); position: sticky; top: 0; white-space: nowrap; }
.t td { padding: 10px 12px; border-bottom: 1px solid var(--border); vertical-align: top; }
.t tr:last-child td { border-bottom: 0; }
.t tbody tr:hover td { background: var(--surface-2); }
.t .cb { width: 34px; padding-right: 0; }
.t .cb input { margin: 3px 0 0; }
.t a.strong { font-weight: 600; color: var(--text); }
.t .sub { color: var(--muted); font-size: 12.5px; }
.t td.num { text-align: right; font-variant-numeric: tabular-nums; }
.sortable a { color: inherit; }

/* ---- chips & meters ---- */
.chip { display: inline-block; padding: 1px 8px; border-radius: 10px; font-size: 12px; font-weight: 550; line-height: 18px;
        white-space: nowrap; }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-warn { background: var(--warn-soft); color: var(--warn); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-info { background: var(--info-soft); color: var(--info); }
.chip-mute { background: var(--mute-soft); color: var(--text-2); }
.conf { display: inline-flex; vertical-align: -7px; }
.conf .ring { flex: none; display: block; }
.conf .ring circle { fill: none; stroke-width: 3; }
.conf .ring .track { stroke: var(--border-2); }
.conf .ring .arc { stroke: currentColor; stroke-linecap: round; }
.conf .ring .v { fill: currentColor; font-size: 9.5px; font-weight: 650; text-anchor: middle;
                 font-variant-numeric: tabular-nums; }
.conf-ok { color: var(--ok); } .conf-warn { color: var(--warn); } .conf-bad { color: var(--bad); }
/* value on the left, its confidence ring on the right */
.valconf { display: flex; align-items: flex-start; gap: 10px; justify-content: space-between; }
.valconf > :first-child { min-width: 0; overflow-wrap: anywhere; }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; }
.dot-ok { background: var(--ok); } .dot-bad { background: var(--bad); } .dot-warn { background: var(--warn); } .dot-mute { background: var(--muted); }

/* ---- filters, tabs, bulk bar ---- */
.filters { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-bottom: 12px; }
.filters input[type=search] { width: 240px; }
.filters select { width: auto; min-width: 130px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 7px; overflow: hidden; background: var(--surface); }
.seg a, .seg button { padding: 6px 12px; color: var(--text-2); font-weight: 500; font-size: 13px;
  border: 0; border-right: 1px solid var(--border-2); background: none; font-family: inherit; cursor: pointer; }
.seg a:last-child, .seg button:last-child { border-right: 0; }
.seg a.on, .seg button.on { background: var(--accent-soft); color: var(--accent); }
.seg a:hover, .seg button:hover { text-decoration: none; background: var(--surface-2); }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 16px; flex-wrap: wrap; }
.tabs a { padding: 9px 14px; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a.on { color: var(--text); border-bottom-color: var(--accent); }
.tabs a:hover { text-decoration: none; color: var(--text); }
.tabs .n { background: var(--surface-2); border-radius: 9px; padding: 0 7px; font-size: 12px; margin-left: 5px; color: var(--text-2); }
.bulkbar { position: sticky; bottom: 14px; z-index: 5; margin-top: 12px; background: var(--text); color: var(--bg);
           border-radius: 10px; padding: 10px 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
           box-shadow: 0 8px 24px rgba(0,0,0,.18); }
.bulkbar .btn { background: transparent; color: var(--bg); border-color: rgba(255,255,255,.28); }
.bulkbar .btn:hover { background: rgba(255,255,255,.1); }
.bulkbar .btn-primary { background: var(--accent); border-color: var(--accent); color: #fff; }
.bulkbar select { width: auto; height: 30px; background: var(--surface); color: var(--text); }
.bulkbar .count { font-weight: 600; margin-right: 6px; }
@media (prefers-color-scheme: dark) { .bulkbar .btn-primary { color: var(--accent-text); } }
.pager { display: flex; gap: 6px; align-items: center; justify-content: flex-end; margin-top: 12px; color: var(--text-2); }

/* ---- key/value, empty states, notes ---- */
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 7px 12px; font-size: 13.5px; }
.kv dt { color: var(--text-2); }
.kv dd { margin: 0; min-width: 0; overflow-wrap: anywhere; }
.empty { text-align: center; padding: 36px 20px; color: var(--text-2); }
.empty h3 { color: var(--text); margin-bottom: 6px; }
.note { background: var(--surface-2); border-radius: var(--radius); padding: 10px 12px; font-size: 13px; color: var(--text-2); }
.warnbox { background: var(--warn-soft); color: var(--warn); border-radius: var(--radius); padding: 10px 14px; font-size: 13.5px;
           display: flex; gap: 10px; align-items: center; }
.warnbox + .warnbox { margin-top: 8px; }
.warnbox .btn { margin-left: auto; }
.blockers { margin: 8px 0 0; padding: 8px 12px 8px 26px; background: var(--bad-soft); color: var(--bad); border-radius: 7px; font-size: 13px; }
.blockers li { margin: 2px 0; }

/* ---- email review cards ---- */
.mail { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); margin-bottom: 12px; box-shadow: var(--shadow); }
.mail-h { display: flex; gap: 12px; align-items: flex-start; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.mail-h .meta { line-height: 1.35; min-width: 0; }
.mail-h .meta .to { font-weight: 600; }
.mail-h .actions { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.mail-b { padding: 12px 16px; }
.mail-b .subj { font-weight: 600; margin-bottom: 8px; }
.mail-b .body { white-space: pre-wrap; font-size: 13.5px; line-height: 1.55; overflow-wrap: anywhere; }
.mail-b .sig { white-space: pre-wrap; color: var(--muted); font-size: 12.5px; border-top: 1px dashed var(--border-2); margin-top: 10px; padding-top: 8px; }
.mail.blocked { border-color: var(--bad-soft); }

/* ---- people list (account page) ---- */
.people-head { padding: 10px 18px 0; margin: 0; color: var(--text-2); }
.person { display: grid; grid-template-columns: 18px minmax(0, 1fr) auto; gap: 12px; padding: 12px 18px;
          border-bottom: 1px solid var(--border); }
.person > input { margin-top: 3px; align-self: start; }
.people > .person:last-of-type { border-bottom: 0; }
.pname { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pfacts { display: flex; flex-wrap: wrap; gap: 6px 20px; margin-top: 6px; font-size: 12.5px; align-items: center; }
.pfacts > span { display: inline-flex; align-items: center; gap: 6px; }
.pfacts .lbl { color: var(--muted); font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; }
.pact { display: flex; gap: 6px; align-items: flex-start; }
.person-edit { padding: 12px 18px 14px 48px; border-bottom: 1px solid var(--border); background: var(--surface-2); }

/* ---- progress ---- */
.progress { height: 8px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.progress i { display: block; height: 100%; background: var(--accent); transition: width .4s; }
.steps { counter-reset: s; list-style: none; padding: 0; margin: 0; }
.stepcard { border: 1px solid var(--border); border-radius: 10px; background: var(--surface); padding: 14px 16px; margin-bottom: 12px; }
.stepcard .top { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.stepcard .num { width: 26px; height: 26px; border-radius: 50%; background: var(--accent-soft); color: var(--accent);
                 display: grid; place-items: center; font-weight: 700; font-size: 12.5px; }
.stepcard .delay { display: flex; align-items: center; gap: 6px; color: var(--text-2); font-size: 13px; }
.stepcard .delay input { width: 64px; }
.fields { display: flex; gap: 6px; flex-wrap: wrap; }
.fields button { font: 12px var(--mono); padding: 2px 8px; border-radius: 6px; border: 1px dashed var(--border-2); background: var(--surface-2);
                 color: var(--text-2); cursor: pointer; }
.fields button:hover { border-color: var(--accent); color: var(--accent); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { display: grid; grid-template-columns: 110px 1fr; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 13px; }
.timeline li:last-child { border-bottom: 0; }
.timeline .when { color: var(--muted); font-size: 12px; }
.copybox { display: flex; gap: 8px; }
.copybox input { font-family: var(--mono); font-size: 12.5px; }

/* ---- auth pages ---- */
.authwrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; }
.authcard { width: 100%; max-width: 380px; }
.authcard .brand { color: var(--text); padding: 0 0 18px; justify-content: center; font-size: 17px; }

/* ---- responsive ---- */
@media (max-width: 1100px) { .split { grid-template-columns: 1fr; } .grid3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: static; height: auto; flex-direction: row; align-items: center; padding: 8px 12px; gap: 8px; overflow-x: auto; }
  .brand { padding: 0 8px 0 0; }
  .brand span:last-child { display: none; }
  .nav { flex-direction: row; }
  .nav a { padding: 6px 9px; white-space: nowrap; }
  .nav .lbl-long { display: none; }
  .nav-sep { display: none; }
  .side .me { margin: 0 0 0 auto; border: 0; padding: 0; }
  .side .me .who { display: none; }
  .main { padding: 16px 16px 80px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .filters input[type=search] { width: 100%; }
  .kv { grid-template-columns: 110px minmax(0, 1fr); }
  .timeline li { grid-template-columns: 1fr; gap: 2px; }
}

/* ---- world map: markets coloured by how far they have got ----
   Ordinal ramp, one hue (brand blue), light -> dark, validated light and dark.
   Closed markets are outside the ramp on purpose: hatched grey, never a step. */
:root {
  --wm-0: #e4e8ee;
  --wm-1: #86b6ef; --wm-2: #5598e7; --wm-3: #2a78d6; --wm-4: #1c5cab; --wm-5: #0d366b;
  --wm-land: #eceef2; --wm-line: #ffffff; --wm-hatch: #b9c0cc;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --wm-0: #272d37;
    --wm-1: #184f95; --wm-2: #256abf; --wm-3: #3987e5; --wm-4: #6da7ec; --wm-5: #b7d3f6;
    --wm-land: #1c212a; --wm-line: #161a21; --wm-hatch: #4a525f;
  }
}
.wm-t0 { fill: var(--wm-0); }
.wm-t1 { fill: var(--wm-1); }
.wm-t2 { fill: var(--wm-2); }
.wm-t3 { fill: var(--wm-3); }
.wm-t4 { fill: var(--wm-4); }
.wm-t5 { fill: var(--wm-5); }
.wm-closed { fill: url(#wmHatch); }
.worldmap { position: relative; }
.worldmap svg.wm { display: block; width: 100%; height: auto; max-height: 460px; }
.wm-back path { fill: var(--wm-land); stroke: var(--wm-line); stroke-width: .3; }
.wm-front path, .wm-dots circle {
  stroke: var(--wm-line); stroke-width: .4; cursor: pointer;
  transition: fill .12s ease, stroke .12s ease;
}
.wm-dots circle { stroke-width: .6; }
.wm .off { cursor: not-allowed; }
.wm-front path:hover, .wm-dots circle:hover { stroke: var(--text); stroke-width: .9; }
.wm .on { stroke: var(--text) !important; stroke-width: 1.1 !important; paint-order: stroke; }
.wm [data-c]:focus { outline: none; }
.wm [data-c]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
/* the fat hit ring under a dot: a target, never a mark — last, so nothing above can paint it */
.wm-dots circle.hit { fill: none !important; stroke: transparent !important; stroke-width: 7 !important; }

.wm-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 156px; padding: 8px 10px;
  background: var(--surface); border: 1px solid var(--border-2); border-radius: 8px; box-shadow: var(--shadow);
  font-size: 12.5px; line-height: 1.45; transform: translate(-50%, -100%); margin-top: -10px; }
.wm-tip.below { transform: translate(-50%, 0); margin-top: 14px; }
.wm-tip b { display: block; font-size: 13px; margin-bottom: 2px; }
.wm-tip .st { color: var(--text-2); }
.wm-tip dl { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; margin: 6px 0 0; }
.wm-tip dt { color: var(--text-2); } .wm-tip dd { margin: 0; font-variant-numeric: tabular-nums; }

.maplayers { margin-bottom: 12px; }
.maplayers .seg { flex-wrap: wrap; }
.maplegend { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 10px; }
.maplegend .lg { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 9px;
  border: 1px solid var(--border); border-radius: 13px; background: var(--surface); color: var(--text-2);
  font: inherit; font-size: 12.5px; cursor: pointer; }
.maplegend .lg:hover { background: var(--surface-2); color: var(--text); }
.maplegend .lg-static { cursor: default; }
.maplegend .lg .n { color: var(--muted); font-variant-numeric: tabular-nums; }
.maplegend .sw { width: 11px; height: 11px; border-radius: 3px; border: 1px solid rgba(0,0,0,.12); }
.sw0 { background: var(--wm-0); } .sw1 { background: var(--wm-1); } .sw2 { background: var(--wm-2); }
.sw3 { background: var(--wm-3); } .sw4 { background: var(--wm-4); } .sw5 { background: var(--wm-5); }
.swx { background: repeating-linear-gradient(45deg, var(--wm-hatch) 0 2px, var(--wm-0) 2px 4px); }

.mapbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px;
  padding-top: 14px; border-top: 1px solid var(--border); }
.picked { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; min-height: 28px; }
.picked .pk { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 6px 0 10px;
  border-radius: 13px; background: var(--accent-soft); color: var(--accent); font-size: 12.5px; font-weight: 550; }
.picked .pk button { background: none; border: 0; padding: 0 2px; color: inherit; font: inherit;
  font-size: 14px; line-height: 1; cursor: pointer; opacity: .7; }
.picked .pk button:hover { opacity: 1; }
@media (max-width: 720px) {
  .worldmap svg.wm { max-height: 300px; }
  .mapbar .row { margin-left: 0 !important; width: 100%; }
  /* a wrapped segmented control leaves dangling dividers — become chips instead */
  .maplayers .seg { display: flex; gap: 6px; border: 0; background: none; }
  .maplayers .seg button { border: 1px solid var(--border-2); border-radius: 13px; height: 28px; padding: 0 11px; }
}
