/* WorldBoard (ghWorld) — market entry board. greehill brand (greehill.com): Inter, sand → sage gradient, flat-bottom buttons.
   Self-contained: no file shared with any other greehill site. */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url("/assets/fonts/inter-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url("/assets/fonts/inter-latin-600-normal.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url("/assets/fonts/inter-latin-700-normal.woff2") format("woff2"); }

:root {
  --bg: #f5f6f3; --surface: #fff; --field: #fff; --ink: #111511; --muted: #5d685f; --line: #e2e6df;
  --green-ink: #4f6354; --tile: rgba(172, 191, 173, .32);
  --btn: #fff; --btn-ink: #111511;
  --ok: #067a5d; --ok-soft: #dcf5ec; --info: #4f6354; --info-soft: rgba(172, 191, 173, .45); --warn: #a35a00; --warn-soft: #fff0dc; --danger: #c4302d; --danger-soft: #feeceb;
  --terra: #9b4a2c; --terra-soft: #f7e7de; --p-green: #0ABF91; --p-orange: #FF9C2B; --p-red: #FA504D;
  --gh: linear-gradient(273deg, #e9ddc6 6.12%, #839788 123.67%);
  --gradient: var(--gh); --top-ink: #000; --top-hover: rgba(255,255,255,.55);
  --sauge: #839788; --ring: rgba(131, 151, 136, .26); --field-line: rgba(79, 99, 84, .18); --field-hover: rgba(79, 99, 84, .36);
  --card-shadow: 0 1px 2px rgba(20, 40, 28, .03), 0 10px 30px -22px rgba(20, 40, 28, .25);
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234f6354' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0f1411; --surface: #171e19; --field: #1d2620; --ink: #e4ebe5; --muted: #98a89c; --line: #2a352d;
    --green-ink: #a9c2ae; --tile: rgba(131, 151, 136, .18); --btn: #1d2620; --btn-ink: #e4ebe5;
    --ok: #4fd8b0; --ok-soft: #12302a; --info: #b9ccbc; --info-soft: rgba(131, 151, 136, .22); --terra: #e6a487; --terra-soft: #3a2620; --warn: #ffb866; --warn-soft: #33271a; --danger: #ff8a86; --danger-soft: #3a1f1d;
    --gradient: linear-gradient(273deg, #5a5447 6%, #3b4a40 110%); --top-ink: #eef2ee; --top-hover: rgba(255,255,255,.12);
    --sauge: #8fa894; --field-line: rgba(169, 194, 174, .2); --field-hover: rgba(169, 194, 174, .4); --card-shadow: none;
    --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9c2ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0f1411; --surface: #171e19; --field: #1d2620; --ink: #e4ebe5; --muted: #98a89c; --line: #2a352d;
  --green-ink: #a9c2ae; --tile: rgba(131, 151, 136, .18); --btn: #1d2620; --btn-ink: #e4ebe5;
  --ok: #4fd8b0; --ok-soft: #12302a; --info: #b9ccbc; --info-soft: rgba(131, 151, 136, .22); --terra: #e6a487; --terra-soft: #3a2620; --warn: #ffb866; --warn-soft: #33271a; --danger: #ff8a86; --danger-soft: #3a1f1d;
  --gradient: linear-gradient(273deg, #5a5447 6%, #3b4a40 110%); --top-ink: #eef2ee; --top-hover: rgba(255,255,255,.12);
  --sauge: #8fa894; --field-line: rgba(169, 194, 174, .2); --field-hover: rgba(169, 194, 174, .4); --card-shadow: none;
  --chev: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23a9c2ae' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: Inter, system-ui, -apple-system, "Segoe UI", sans-serif; font-size: 15px; line-height: 1.5; color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--green-ink); }
h1, h2, h3 { line-height: 1.2; margin: 0; letter-spacing: -.01em; }
h1 { font-size: 1.85rem; font-weight: 600; letter-spacing: -.02em; }
h2 { font-size: 1.12rem; font-weight: 600; letter-spacing: -.01em; }
h3 { font-size: .98rem; font-weight: 600; }
p { margin: 0 0 .7em; }
.muted { color: var(--muted); }
.small { font-size: .84rem; }
.num { font-variant-numeric: tabular-nums; }
.boot { padding: 80px; text-align: center; color: var(--muted); }
[hidden] { display: none !important; }

/* ---------- header */
.top { background: var(--gradient); color: var(--top-ink); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 0 rgba(0,0,0,.06); }
.top-in { max-width: 1320px; margin: 0 auto; display: flex; align-items: center; gap: 14px; padding: 8px 20px; min-height: 58px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--top-ink); text-decoration: none; margin-right: 10px; }
.brand .logo { width: 100px; display: block; }
.brand .logo svg { width: 100%; height: auto; display: block; }
.brand .world { font-size: .7rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; padding: 4px 9px 3px; border: 1.5px solid currentColor; border-radius: 999px; opacity: .85; display: inline-flex; align-items: center; gap: 6px; }
.brand .world svg { width: 13px; height: 13px; }
.top nav { display: flex; gap: 4px; }
.top nav a { color: var(--top-ink); text-decoration: none; font-weight: 600; font-size: .9rem; padding: 8px 14px; border-radius: 12px 12px 0 12px; opacity: .8; transition: background-color .15s, opacity .15s; display: inline-flex; align-items: center; gap: 8px; }
.top nav a svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.top nav a:hover { background: var(--top-hover); opacity: 1; }
.top nav a[aria-current="page"] { background: var(--top-hover); opacity: 1; box-shadow: inset 0 0 0 1px rgba(255,255,255,.25); }
.top .who { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.ico { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; border-radius: 999px; border: 0; background: transparent; color: inherit; cursor: pointer; text-decoration: none; padding: 0; position: relative; }
.top .ico { color: var(--top-ink); opacity: .8; }
.ico:hover, .top .ico[aria-current="page"] { opacity: 1; background: var(--top-hover); }
.ico svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.avatar { width: 32px; height: 32px; border: 1.5px solid currentColor; font-size: .72rem; font-weight: 700; letter-spacing: .02em; }
[data-tip] { position: relative; }
[data-tip]:hover::after, [data-tip]:focus-visible::after { content: attr(data-tip); position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); white-space: nowrap; background: #111511; color: #fff; font-size: .74rem; font-weight: 600; padding: 5px 9px; border-radius: 8px; z-index: 80; pointer-events: none; }
.tip-left[data-tip]:hover::after { left: auto; right: 0; transform: none; }

/* ---------- layout */
main { max-width: 1320px; margin: 0 auto; padding: 26px 20px 70px; }
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.page-head .eyebrow { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 600; color: var(--green-ink); margin-bottom: 6px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.back { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-weight: 600; font-size: .86rem; margin-bottom: 10px; }
.back svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
.grid { display: grid; gap: 16px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 15px; padding: 20px 22px; box-shadow: var(--card-shadow); min-width: 0; }
.card > h2 { margin-bottom: 14px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush > h2 { padding: 18px 22px 0; }
.stack > * + * { margin-top: 16px; }
.foot-notes { margin-top: 34px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: .86rem; max-width: 900px; }
.foot-notes p { margin-bottom: .5em; }
section + section { margin-top: 22px; }

/* ---------- buttons and fields */
button, input, select, textarea { font: inherit; color: inherit; }
.btn { border: 1px solid var(--field-line); background: var(--btn); color: var(--btn-ink); border-radius: 10px 10px 0 0; padding: 9px 18px; font-weight: 600; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; line-height: 1.2; transition: border-color .15s, background-color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { border-color: var(--sauge); background-color: color-mix(in srgb, var(--sauge) 9%, var(--btn)); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.primary { background: var(--gh); color: #000; border-color: transparent; box-shadow: inset 0 -2px 0 rgba(79, 99, 84, .35); }
.btn.primary:hover { box-shadow: inset 0 -2px 0 rgba(79, 99, 84, .55), 0 6px 16px -10px rgba(79, 99, 84, .7); }
.btn.danger { color: var(--danger); }
.btn.danger:hover { border-color: var(--danger); background: var(--danger-soft); }
.btn.small { padding: 6px 12px; font-size: .82rem; border-radius: 8px 8px 0 0; }
.btn svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.btn.icon { padding: 8px; }
input:not([type=checkbox]):not([type=radio]):not([type=file]), select, textarea {
  width: 100%; background: var(--field); border: 1px solid var(--field-line); border-radius: 10px; padding: 9px 12px; transition: border-color .15s, box-shadow .15s; }
input:not([type=checkbox]):not([type=radio]):hover, select:hover, textarea:hover { border-color: var(--field-hover); }
input:not([type=checkbox]):not([type=radio]):focus, select:focus, textarea:focus { outline: none; border-color: var(--sauge); box-shadow: 0 0 0 4px var(--ring); }
select { appearance: none; background-image: var(--chev); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; padding-right: 34px; }
textarea { resize: vertical; min-height: 42px; line-height: 1.45; }
input::placeholder, textarea::placeholder { color: color-mix(in srgb, var(--muted) 70%, transparent); }
label.field { display: block; }
label.field > span { display: block; font-size: .78rem; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.switch { display: inline-flex; align-items: flex-start; gap: 12px; cursor: pointer; }
.switch input { appearance: none; width: 40px; height: 23px; border-radius: 999px; background: rgba(79, 99, 84, .22); position: relative; flex: none; cursor: pointer; transition: background-color .15s; margin: 1px 0 0; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 17px; height: 17px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: transform .18s; }
.switch input:checked { background: var(--sauge); }
.switch input:checked::after { transform: translateX(17px); }
.switch input:focus-visible { outline: none; box-shadow: 0 0 0 4px var(--ring); }

/* ---------- badges, chips, bars */
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600; white-space: nowrap; background: var(--tile); color: var(--green-ink); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.badge.plain::before { display: none; }
.tone-ok { background: var(--ok-soft); color: var(--ok); }
.tone-info { background: var(--info-soft); color: var(--info); }
.tone-warn { background: var(--warn-soft); color: var(--warn); }
.tone-danger { background: var(--danger-soft); color: var(--danger); }
.tone-muted { background: var(--tile); color: var(--muted); }
.alert.tone-muted { background: var(--terra-soft); color: var(--terra); }
.alert.tone-muted a { color: inherit; }
.iso { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 24px; padding: 0 6px; border-radius: 7px; background: rgba(172, 191, 173, .65); color: #111511; font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.bar { height: 6px; border-radius: 99px; background: var(--tile); overflow: hidden; min-width: 70px; }
.bar > i { display: block; height: 100%; border-radius: 99px; background: var(--sauge); }
.progress-cell { display: flex; align-items: center; gap: 9px; }
.progress-cell .bar { flex: 1; }

/* ---------- KPI tiles */
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; box-shadow: var(--card-shadow); }
.kpi .label { font-size: .76rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.kpi .value { font-size: 1.85rem; font-weight: 600; color: var(--green-ink); margin-top: 4px; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpi .sub { font-size: .8rem; color: var(--muted); }
.kpi.accent { background: var(--gh); border-color: transparent; color: #000; }
.kpi.accent .label, .kpi.accent .sub { color: rgba(0,0,0,.62); }
.kpi.accent .value { color: #000; }

/* ---------- pipeline (decision flow lanes) */
.lanes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; }
.lane { background: color-mix(in srgb, var(--sauge) 6%, var(--surface)); border: 1px solid var(--line); border-radius: 14px; padding: 12px; min-height: 120px; }
.lane h3 { font-size: .74rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); display: flex; justify-content: space-between; margin-bottom: 10px; }
.lane .chip { display: flex; align-items: center; gap: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 7px 9px; margin-bottom: 7px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: .86rem; transition: border-color .15s, transform .15s; }
.lane .chip:hover { border-color: var(--sauge); transform: translateY(-1px); }
.lane .chip .iso { min-width: 30px; height: 20px; font-size: .66rem; }
.lane .chip small { margin-left: auto; color: var(--muted); font-weight: 600; font-variant-numeric: tabular-nums; }
.lane .empty { color: var(--muted); font-size: .8rem; }
.lane.l-ok { border-top: 3px solid var(--ok); } .lane.l-info { border-top: 3px solid var(--info); } .lane.l-warn { border-top: 3px solid var(--warn); } .lane.l-danger { border-top: 3px solid var(--danger); } .lane.l-muted { border-top: 3px solid var(--sauge); }

/* ---------- tables */
.table-wrap { overflow-x: auto; scrollbar-width: none; }
.table-wrap::-webkit-scrollbar { display: none; }
table.list { width: 100%; border-collapse: collapse; }
table.list th, table.list td { padding: 12px 16px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
table.list thead th { font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); background: color-mix(in srgb, var(--sauge) 7%, var(--surface)); font-weight: 700; padding-block: 10px; white-space: nowrap; text-align: center; }
table.list tbody tr:hover td { background: color-mix(in srgb, var(--sauge) 6%, transparent); }
table.list tbody tr:last-child td { border-bottom: 0; }
table.list td.r, table.list th.r { text-align: right; font-variant-numeric: tabular-nums; }
table.list tr.click { cursor: pointer; }
table.list tfoot td { font-weight: 700; border-top: 2px solid var(--line); border-bottom: 0; }
.country-cell { display: flex; align-items: center; gap: 10px; font-weight: 600; }
.empty-state { text-align: center; padding: 40px 20px; color: var(--muted); }

/* ---------- country page */
.summary { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--card-shadow); margin-bottom: 18px; overflow: hidden; }
.summary > div { padding: 14px 18px; border-right: 1px solid var(--line); }
.summary > div:last-child { border-right: 0; }
.summary .label { font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; }
.summary .value { font-size: 1.22rem; font-weight: 600; color: var(--green-ink); margin-top: 3px; font-variant-numeric: tabular-nums; }
.summary .sub { font-size: .78rem; color: var(--muted); }
.title-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.title-row .iso { min-width: 44px; height: 32px; font-size: .86rem; border-radius: 9px; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tabs a { padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; white-space: nowrap; border: 1px solid transparent; border-bottom: 0; display: inline-flex; gap: 8px; align-items: center; }
.tabs a:hover { color: var(--ink); background: color-mix(in srgb, var(--sauge) 8%, transparent); }
.tabs a[aria-current="page"] { color: var(--ink); background: var(--surface); border-color: var(--line); margin-bottom: -1px; }
.tabs .step { display: inline-flex; width: 20px; height: 20px; border-radius: 50%; background: var(--tile); color: var(--green-ink); font-size: .72rem; align-items: center; justify-content: center; }
.tabs a[aria-current="page"] .step { background: #839788; color: #fff; }
.saving { font-size: .8rem; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.saving.ok { color: var(--ok); }
.saving.err { color: var(--danger); }

/* questions */
.q { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .8fr) auto; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); align-items: start; }
.q:first-of-type { border-top: 0; }
.q .q-text { font-weight: 600; font-size: .92rem; padding-top: 8px; }
.q .q-text small { display: block; font-weight: 400; color: var(--muted); margin-top: 3px; font-size: .8rem; }
.q .q-text small a { color: var(--green-ink); }
.q.sub .q-text { padding-left: 18px; font-weight: 500; position: relative; }
.q.sub .q-text::before { content: ""; position: absolute; left: 4px; top: 9px; width: 8px; height: 10px; border-left: 1.5px solid var(--sauge); border-bottom: 1.5px solid var(--sauge); border-bottom-left-radius: 4px; }
.q-head { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.4fr) minmax(0, .8fr) auto; gap: 12px; font-size: .68rem; text-transform: uppercase; letter-spacing: .06em; color: var(--green-ink); font-weight: 700; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 10px; overflow: hidden; background: var(--field); }
.seg button { border: 0; background: transparent; width: 34px; height: 38px; cursor: pointer; font-weight: 600; font-size: .88rem; color: var(--muted); border-left: 1px solid var(--field-line); transition: background-color .12s, color .12s; }
.seg button:first-child { border-left: 0; }
.seg button:hover { background: var(--tile); color: var(--ink); }
.seg button[aria-pressed="true"] { background: #839788; color: #fff; }
.seg.yn button { width: 46px; }
.seg.yn button.y[aria-pressed="true"] { background: var(--ok-soft); color: var(--ok); }
.seg.yn button.n[aria-pressed="true"] { background: var(--danger-soft); color: var(--danger); }
.seg button:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--sauge); }
.assess { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.secnav { position: sticky; top: 78px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 8px; box-shadow: var(--card-shadow); }
.secnav a { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding: 9px 11px; border-radius: 10px; text-decoration: none; color: var(--ink); font-size: .87rem; font-weight: 600; }
.secnav a:hover { background: color-mix(in srgb, var(--sauge) 8%, transparent); }
.secnav a[aria-current="true"] { background: var(--tile); }
.secnav a .avg { font-variant-numeric: tabular-nums; color: var(--green-ink); }
.secnav a .bar { grid-column: 1 / -1; height: 4px; }
.secnav a small { grid-column: 1 / -1; color: var(--muted); font-weight: 500; font-size: .74rem; }
.section-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 8px; }
.section-head .avg-big { text-align: right; }
.section-head .avg-big b { font-size: 1.6rem; font-variant-numeric: tabular-nums; }
.note-box { background: var(--terra-soft); color: var(--terra); border: 0; border-left: 3px solid var(--terra); border-radius: 10px; padding: 11px 14px; font-size: .86rem; margin: 10px 0; }
.alert { border-radius: 12px; padding: 12px 16px; font-size: .9rem; margin-bottom: 14px; display: flex; gap: 10px; align-items: flex-start; }
.alert svg { width: 20px; height: 20px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; margin-top: 1px; }

/* go / no-go */
.calc-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px solid var(--line); }
.calc-row:first-of-type { border-top: 0; }
.calc-row .k { width: 28px; height: 28px; border-radius: 8px; background: var(--tile); color: var(--green-ink); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: .84rem; }
.calc-row .unit-wrap { position: relative; }
.calc-row .unit-wrap input.num-in, .calc-row .unit-wrap input { text-align: right; padding-right: 66px !important; font-variant-numeric: tabular-nums; }
.calc-row .unit-wrap .unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: .8rem; pointer-events: none; }
.calc-result { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 10px; padding: 14px 16px; border-radius: 12px; background: linear-gradient(154deg, rgba(233, 221, 198, .55), rgba(172, 191, 173, .35)); color: var(--ink); }
.calc-result .f { font-size: .82rem; color: var(--muted); }
.calc-result b { color: var(--green-ink); }
.calc-result b { font-size: 1.35rem; font-variant-numeric: tabular-nums; }
.calc-result.soft { background: color-mix(in srgb, var(--sauge) 10%, var(--surface)); color: var(--ink); }
.calc-result.soft .f { color: var(--muted); }
.matrix { display: grid; grid-template-columns: 150px repeat(3, minmax(0, 1fr)); gap: 6px; }
.matrix > div { border-radius: 10px; padding: 12px 10px; text-align: center; font-size: .86rem; font-weight: 600; }
.matrix .h { background: transparent; color: var(--muted); font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; display: flex; align-items: flex-end; justify-content: center; }
.matrix .rh { background: transparent; color: var(--muted); font-size: .8rem; text-align: left; display: flex; align-items: center; }
.matrix .cell { background: var(--tile); color: var(--muted); opacity: .7; border: 2px solid transparent; }
.matrix .cell.on { opacity: 1; border-color: currentColor; transform: scale(1.03); box-shadow: 0 8px 20px -14px rgba(0,0,0,.4); }
.matrix .cell.on.tone-ok { background: var(--ok-soft); color: var(--ok); }
.matrix .cell.on.tone-info { background: var(--info-soft); color: var(--info); }
.matrix .cell.on.tone-warn { background: var(--warn-soft); color: var(--warn); }
.matrix .cell.on.tone-danger { background: var(--danger-soft); color: var(--danger); }
.verdict { display: flex; align-items: center; gap: 16px; padding: 16px 18px; border-radius: 14px; margin-top: 16px; }
.verdict .big { font-size: 1.3rem; font-weight: 600; letter-spacing: -.01em; }
.verdict svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }

/* flow diagram (method page) */
.flow { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: stretch; }
.flow .node { border: 1px solid var(--line); background: var(--surface); border-radius: 14px; padding: 14px; font-size: .88rem; font-weight: 600; text-align: center; display: flex; align-items: center; justify-content: center; min-height: 70px; position: relative; }
.flow .node.q { border-style: dashed; background: color-mix(in srgb, var(--sauge) 6%, var(--surface)); }
.flow .node.end { font-weight: 700; }
.flow .arrow { text-align: center; color: var(--muted); font-size: .76rem; font-weight: 600; }

/* login */
.auth-wrap { min-height: 100vh; display: grid; place-items: center; padding: 24px; background: var(--gradient); }
.auth { width: 100%; max-width: 410px; background: var(--surface); border-radius: 20px; padding: 32px 32px 28px; box-shadow: 0 30px 80px -40px rgba(0,0,0,.45); }
.auth .logo { width: 120px; color: var(--ink); margin-bottom: 4px; }
.auth .logo svg { width: 100%; height: auto; display: block; }
.auth h1 { font-size: 1.35rem; margin: 18px 0 6px; }
.auth form > * + * { margin-top: 14px; }
.auth .btn { width: 100%; justify-content: center; padding: 11px; }
.auth .err { color: var(--danger); font-size: .86rem; min-height: 1.2em; }
.auth .sig { margin-top: 22px; font-size: .78rem; color: var(--muted); text-align: center; }
.code-input { letter-spacing: .4em; text-align: center; font-size: 1.3rem !important; font-variant-numeric: tabular-nums; }
.qr { background: #fff; padding: 12px; border-radius: 12px; display: inline-block; border: 1px solid var(--line); }
.qr svg { display: block; width: 190px; height: 190px; }
.secret { font-family: ui-monospace, Menlo, monospace; font-size: .86rem; letter-spacing: .08em; word-break: break-all; background: var(--tile); padding: 8px 10px; border-radius: 8px; }

/* dialog */
dialog { border: 0; border-radius: 18px; padding: 0; width: min(520px, calc(100vw - 32px)); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px -30px rgba(0,0,0,.5); }
dialog::backdrop { background: rgba(15, 20, 17, .45); backdrop-filter: blur(2px); }
dialog form { padding: 24px; }
dialog h2 { margin-bottom: 14px; }
dialog .row-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* toast */
#toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: #111511; color: #fff; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: .88rem; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; z-index: 100; max-width: calc(100vw - 32px); }
#toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
#toast.err { background: var(--danger); }

/* menus */
.menu { position: relative; }
.menu-pop { position: absolute; right: 0; top: calc(100% + 6px); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.35); padding: 6px; min-width: 240px; z-index: 60; color: var(--ink); }
.menu-pop a, .menu-pop button { display: flex; width: 100%; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 9px; border: 0; background: none; text-align: left; cursor: pointer; text-decoration: none; color: var(--ink); font-size: .88rem; font-weight: 500; }
.menu-pop a:hover, .menu-pop button:hover { background: var(--tile); }
.menu-pop svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; flex: none; }
.menu-pop .sep { height: 1px; background: var(--line); margin: 5px 4px; }
.menu-pop .who-line { padding: 8px 12px 6px; font-size: .8rem; color: var(--muted); }

.activity { list-style: none; margin: 0; padding: 0; }
.activity li { padding: 9px 0; border-top: 1px solid var(--line); font-size: .84rem; display: flex; gap: 10px; }
.activity li:first-child { border-top: 0; }
.activity time { color: var(--muted); white-space: nowrap; font-variant-numeric: tabular-nums; min-width: 92px; }

/* ---------- responsive */
@media (max-width: 1100px) {
  .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .q, .q-head { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .q .q-text { grid-column: 1 / -1; padding-top: 0; }
  .q-head { display: none; }
  .summary { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .summary > div:nth-child(3) { border-right: 0; }
  .summary > div:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hide-md { display: none; }
  .top-in { flex-wrap: wrap; gap: 8px; padding: 8px 14px; }
  .top nav { order: 3; width: 100%; overflow-x: auto; }
  .top nav a { padding: 7px 11px; font-size: .84rem; }
  .brand .logo { width: 86px; }
  main { padding: 18px 14px 60px; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cols-2, .cols-3, .cols-4 { grid-template-columns: 1fr; }
  .assess { grid-template-columns: 1fr; }
  .secnav { position: static; display: flex; overflow-x: auto; gap: 4px; padding: 6px; }
  .secnav a { min-width: 170px; }
  .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .matrix { grid-template-columns: 96px repeat(3, minmax(0, 1fr)); }
  .matrix > div { padding: 10px 4px; font-size: .78rem; }
  h1 { font-size: 1.4rem; }
}
@media (max-width: 560px) {
  .hide-sm { display: none; }
  table.list th, table.list td { padding: 10px 10px; }
  .q { grid-template-columns: 1fr; }
  .summary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .summary > div { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .summary > div:nth-child(2n) { border-right: 0; }
  .lanes { grid-template-columns: 1fr; }
  .lane { min-height: 0; }
  .calc-row { grid-template-columns: 28px minmax(0, 1fr); }
  .calc-row .unit-wrap { grid-column: 1 / -1; }
  .flow { grid-template-columns: 1fr; }
  .kpi .value { font-size: 1.4rem; }
  .brand .world { display: none; }
}

/* ---------- world map */
.map-card > h2 { margin-bottom: 12px; }
.map-mode button { width: auto; padding: 0 12px; height: 32px; font-size: .8rem; }
.map-box { height: 470px; border-radius: 12px; overflow: hidden; background: #dfe8e6; }
.map-box.mini { height: 260px; border-radius: 0; }
:root[data-theme="dark"] .map-box { background: #121a17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-box { background: #121a17; } }
.map-box.leaflet-container { background: #dfe8e6; font-family: inherit; }
:root[data-theme="dark"] .map-box.leaflet-container { background: #121a17; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .map-box.leaflet-container { background: #121a17; } }
.leaflet-container .leaflet-control-attribution { background: rgba(255,255,255,.6); font-size: 10px; color: #5d685f; }
.leaflet-bar a { color: #111511; }
.gw-tip { font-family: Inter, system-ui, sans-serif; font-size: .8rem; line-height: 1.45; border-radius: 10px; border: 0; box-shadow: 0 10px 30px -12px rgba(0,0,0,.35); padding: 8px 11px; }
.gw-label span { display: inline-block; transform: translate(-50%, -50%); font: 700 10px/1 Inter, system-ui, sans-serif; letter-spacing: .06em; color: #111511; background: rgba(255,255,255,.82); padding: 3px 5px; border-radius: 5px; white-space: nowrap; }
.gw-legend { background: rgba(255,255,255,.9); color: #111511; border-radius: 10px; padding: 8px 11px; font-size: .74rem; font-weight: 600; display: flex; flex-wrap: wrap; gap: 6px 12px; max-width: 520px; box-shadow: 0 6px 20px -12px rgba(0,0,0,.35); }
.gw-legend span { display: inline-flex; align-items: center; gap: 6px; }
.gw-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.gw-legend .grad i { width: 60px; }
@media (max-width: 860px) { .map-box { height: 340px; } }

.sec-pager { display: flex; justify-content: space-between; gap: 10px; margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
table.list a { text-decoration: none; color: var(--ink); font-weight: 600; }
table.list a:hover { text-decoration: underline; text-decoration-color: var(--sauge); }
/* map in dark mode */
:root[data-theme="dark"] .gw-legend, :root[data-theme="dark"] .gw-tip, :root[data-theme="dark"] .leaflet-bar a { background: #1d2620; color: #e4ebe5; }
:root[data-theme="dark"] .gw-tip::before { border-top-color: #1d2620; }
:root[data-theme="dark"] .leaflet-bar a { border-bottom-color: #2a352d; }
:root[data-theme="dark"] .leaflet-container .leaflet-control-attribution { background: rgba(15,20,17,.7); color: #98a89c; }
:root[data-theme="dark"] .gw-label span { background: rgba(15,20,17,.82); color: #e4ebe5; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .gw-legend, :root:not([data-theme="light"]) .gw-tip, :root:not([data-theme="light"]) .leaflet-bar a { background: #1d2620; color: #e4ebe5; }
  :root:not([data-theme="light"]) .gw-tip::before { border-top-color: #1d2620; }
  :root:not([data-theme="light"]) .leaflet-bar a { border-bottom-color: #2a352d; }
  :root:not([data-theme="light"]) .leaflet-container .leaflet-control-attribution { background: rgba(15,20,17,.7); color: #98a89c; }
  :root:not([data-theme="light"]) .gw-label span { background: rgba(15,20,17,.82); color: #e4ebe5; }
}
.qr { background: #fff; }
:root[data-theme="dark"] .calc-result { background: color-mix(in srgb, var(--sauge) 16%, var(--surface)); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .calc-result { background: color-mix(in srgb, var(--sauge) 16%, var(--surface)); } }

/* ---------- research with Claude */
.ai-badge { display: inline-flex; align-items: center; margin-left: 6px; padding: 1px 6px; border-radius: 6px; border: 1px solid var(--terra); background: var(--terra-soft); color: var(--terra); font: 700 .64rem/1.4 Inter, system-ui, sans-serif; letter-spacing: .06em; cursor: pointer; vertical-align: middle; }
.ai-badge:hover { background: var(--terra); color: #fff; }
.ai-badge.static { cursor: default; }
.src-wrap { position: relative; }
.src-wrap textarea { padding-right: 34px; font-size: .84rem; }
.src-link { position: absolute; right: 6px; top: 7px; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center; border-radius: 7px; color: var(--green-ink); }
.src-link:hover { background: var(--tile); }
.src-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.research-parts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin-top: 12px; }
.research-parts .switch span { font-size: .86rem; }
.rp-list { display: grid; gap: 6px; margin: 8px 0 12px; }
.rp-row { display: grid; grid-template-columns: 18px 1fr auto; gap: 10px; align-items: center; font-size: .88rem; padding: 6px 0; border-bottom: 1px solid var(--line); }
.dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.dot.w { background: var(--line); } .dot.ok { background: var(--ok); } .dot.err { background: var(--danger); }
.spin { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--tile); border-top-color: var(--sauge); display: inline-block; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (max-width: 560px) { .research-parts { grid-template-columns: 1fr; } }
input[type=file] { font-size: .86rem; color: var(--muted); }
input[type=file]::file-selector-button { font: 600 .84rem/1.2 Inter, system-ui, sans-serif; color: var(--btn-ink); border: 1px solid var(--field-line); background: var(--btn); border-radius: 10px 10px 0 0; padding: 8px 14px; margin-right: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
input[type=file]::file-selector-button:hover { border-color: var(--sauge); background: var(--tile); }
.src-wrap textarea { font-size: .8rem; line-height: 1.35; word-break: break-all; }

/* country chip with flag */
.iso { gap: 5px; }
.iso b { font-weight: 700; }
.iso.has-flag { padding: 0 7px 0 3px; }
.iso img { width: 22px; height: 16.5px; border-radius: 4px; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.08); object-fit: cover; }
.title-row .iso img { width: 30px; height: 22.5px; border-radius: 5px; }
.lane .chip .iso img { width: 18px; height: 13.5px; border-radius: 3px; }
.gw-label span { display: inline-flex !important; align-items: center; gap: 4px; }
.gw-label img { width: 14px; height: 10.5px; border-radius: 2px; display: block; }

/* score grid */
.grid-legend { display: inline-flex; flex-wrap: wrap; gap: 4px 12px; font-size: .74rem; font-weight: 600; color: var(--muted); }
.grid-legend span { display: inline-flex; align-items: center; gap: 5px; }
.grid-legend i, .gw-legend i { flex: none; }
.grid-legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
table.sgrid th.rot { vertical-align: bottom; text-align: center; white-space: normal; font-size: .62rem; line-height: 1.25; min-width: 64px; }
table.sgrid th.rot small { display: block; color: var(--muted); font-weight: 600; margin-top: 2px; }
table.sgrid td { padding: 6px 4px; }
table.sgrid td:first-child { padding-left: 16px; white-space: nowrap; }
table.sgrid a.country-cell { text-decoration: none; color: var(--ink); }
table.sgrid td.gcell a { display: block; text-align: center; border-radius: 7px; padding: 7px 4px; font-weight: 700; font-size: .84rem; text-decoration: none; font-variant-numeric: tabular-nums; }
table.sgrid td.gcell a:hover { filter: brightness(.95); outline: 2px solid rgba(0,0,0,.15); }
table.sgrid td.gcell a.empty { color: var(--muted); background: var(--tile); }
table.sgrid td.total a { font-size: .95rem; padding: 7px 10px; }
.gw-legend .lg-title { width: 100%; font-size: .7rem; text-transform: uppercase; letter-spacing: .06em; color: #5d685f; }
.gw-legend em { font-style: normal; opacity: .65; }

.progress-cell span { white-space: nowrap; }
.ai-note { font-size: .74rem; color: var(--terra); white-space: nowrap; margin-top: 3px; }

.bk-list { max-height: 55vh; overflow: auto; display: grid; gap: 6px; margin: 8px 0; scrollbar-width: none; }
.bk-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; }

.cont-filter { margin: 0 0 18px; flex-wrap: wrap; }
.seg.wide button { width: auto; padding: 0 14px; height: 36px; }
.seg.wide button small { font-weight: 500; opacity: .7; margin-left: 4px; }
table.list tr.grp td { background: var(--tile); font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 7px 14px; }
table.list tr.grp td span { font-weight: 500; margin-left: 6px; }

/* map legend: one discreet line at the bottom, no background */
.gw-legend, :root[data-theme="dark"] .gw-legend { background: none !important; box-shadow: none; padding: 0 0 2px; border-radius: 0; max-width: none; flex-wrap: nowrap; white-space: nowrap; gap: 0 12px; font-size: .7rem; color: #3a443c; text-shadow: 0 0 3px rgba(255,255,255,.95), 0 0 2px rgba(255,255,255,.95); }
.gw-legend .lg-title { width: auto; color: inherit; font-size: .66rem; }
.gw-legend i { width: 10px; height: 10px; }
.leaflet-bottom.leaflet-left .gw-legend { margin: 0 0 6px 10px; }
@media (max-width: 760px) { .gw-legend { flex-wrap: wrap; } }
:root[data-theme="dark"] .gw-legend { color: #e4ebe5 !important; text-shadow: 0 0 3px rgba(0,0,0,.9); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .gw-legend { background: none !important; color: #e4ebe5; text-shadow: 0 0 3px rgba(0,0,0,.9); } }

.replace-all { margin: 14px 0 0; text-align: right; }
.linkish { background: none; border: 0; padding: 0; font: inherit; font-size: .76rem; color: var(--muted); text-decoration: underline; cursor: pointer; }
.linkish:hover { color: var(--danger); }

.lanes { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1100px) { .lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.info-box { background: var(--terra-soft); color: var(--terra); border-radius: 10px; padding: 10px 12px; font-size: .86rem; }
.kpis { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.lane .chip small { white-space: nowrap; }

.kpi-ico { display: flex; align-items: center; gap: 7px; }
.kpi-ico svg, .unit svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.unit svg { width: 20px; height: 20px; vertical-align: middle; }
/* long country names: the flag chip never shrinks, the name wraps instead */
.iso { flex: none; }
.lane .chip > span, .country-cell > div, .country-cell > span:not(.iso) { min-width: 0; overflow-wrap: anywhere; hyphens: auto; }
.lane .chip > span { line-height: 1.25; }
.lane .chip > span, .country-cell > div, .country-cell > span:not(.iso) { overflow-wrap: break-word; hyphens: manual; }
.lanes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (min-width: 1400px) { .lanes { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 640px) { .lanes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lanes { grid-template-columns: repeat(auto-fit, minmax(185px, 1fr)) !important; }

/* presence: direct (product green) vs partner (terracotta) */
.pres { display: inline-flex; align-items: center; gap: 5px; border-radius: 999px; font-size: .7rem; font-weight: 700; padding: 3px 9px 3px 7px; letter-spacing: .02em; white-space: nowrap; }
.pres::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.pres-direct { background: rgba(10, 191, 145, .14); color: #08856a; }
.pres-partner { background: var(--terra-soft); color: var(--terra); }
.lane .chip .pres { padding: 0; background: none; }
.lane .chip .pres::before { width: 9px; height: 9px; }
.title-row .pres { font-size: .78rem; padding: 5px 11px 5px 9px; }
.pres-legend { display: inline-flex; gap: 12px; font-size: .74rem; color: var(--muted); font-weight: 600; }
.pres-legend .pres { padding: 0; background: none; }
:root[data-theme="dark"] .pres-direct { color: #4fd8b0; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pres-direct { color: #4fd8b0; } }
/* lane chips: flag only (the ISO letters stay in tables), so country names fit without breaking */
.lane .chip .iso.has-flag { min-width: 0; padding: 0; background: none; }
.lane .chip .iso.has-flag b { display: none; }
.lane .chip .iso.has-flag img { width: 22px; height: 16.5px; }
.lane .chip > span { overflow-wrap: normal; }

/* presence on tiles: solid outline = direct, dotted outline = partner */
.lane .chip.is-direct { border: 2px solid #0ABF91; padding: 6px 8px; }
.lane .chip.is-partner { border: 2px dashed var(--terra); padding: 6px 8px; }
.iso.is-direct { box-shadow: inset 0 0 0 1.5px #0ABF91; }
.iso.is-partner { outline: 1.5px dashed var(--terra); outline-offset: -1.5px; }
.lane .chip .iso.is-direct, .lane .chip .iso.is-partner { box-shadow: none; outline: none; }
.gw-label.is-direct span { box-shadow: 0 0 0 2px #0ABF91; }
.gw-label.is-partner span { outline: 2px dashed #9b4a2c; outline-offset: 0; }
.pres-legend .lg { display: inline-flex; align-items: center; gap: 6px; }
.pres-legend .lg i { width: 18px; height: 12px; border-radius: 3px; display: inline-block; }
.pres-legend .lg.d i { border: 2px solid #0ABF91; }
.pres-legend .lg.p i { border: 2px dashed var(--terra); }
/* presence outlines: one discreet colour (brand sage), solid = direct, dashed = partner */
.lane .chip.is-direct { border: 2px solid #839788; }
.lane .chip.is-partner { border: 2px dashed #839788; }
.iso.is-direct { box-shadow: inset 0 0 0 1.5px #839788; }
.iso.is-partner { outline: 1.5px dashed #839788; }
.gw-label.is-direct span { box-shadow: 0 0 0 2px #839788; }
.gw-label.is-partner span { outline: 2px dashed #839788; }
.pres-legend .lg.d i { border: 2px solid #839788; }
.pres-legend .lg.p i { border: 2px dashed #839788; }
.pres-direct, .pres-partner { background: rgba(131, 151, 136, .16); color: #4f6354; }
.pres-partner::before { background: none; border: 1.5px dashed currentColor; width: 6px; height: 6px; }
:root[data-theme="dark"] .pres-direct, :root[data-theme="dark"] .pres-partner { color: #b9ccbc; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pres-direct, :root:not([data-theme="light"]) .pres-partner { color: #b9ccbc; } }

/* hover help */
.hint { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; margin-left: 6px; border-radius: 50%; border: 1px solid currentColor; font-size: .62rem; font-weight: 700; line-height: 1; opacity: .45; cursor: help; vertical-align: middle; text-transform: none; letter-spacing: 0; flex: none; }
.hint:hover, .hint:focus { opacity: 1; outline: none; }
.tip-pop { position: fixed; z-index: 9999; max-width: 340px; white-space: pre-line; background: #1d2620; color: #f2f5f2; font-size: .8rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; text-transform: none; padding: 9px 12px; border-radius: 10px; box-shadow: 0 10px 30px -10px rgba(0,0,0,.45); pointer-events: none; display: none; }
:root[data-theme="dark"] .tip-pop { background: #2c3832; color: #e3ebe5; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.45); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .tip-pop { background: #2c3832; color: #e3ebe5; border: 1px solid rgba(255,255,255,.14); box-shadow: 0 10px 28px rgba(0,0,0,.45); } }
th .hint { margin-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* foldable tiles */
.fold-btn { margin-left: auto; width: 28px; height: 28px; border: 0; background: transparent; color: var(--muted); border-radius: 8px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; flex: none; }
h2 > span + .fold-btn, h2 > .seg + .fold-btn, h2 > .pres-legend + .fold-btn, h2 > .grid-legend + .fold-btn, h2 > .btn + .fold-btn { margin-left: 8px; }
.fold-btn:hover { background: var(--tile); color: var(--ink); }
.fold-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: transform .2s; }
[data-fold].folded .fold-btn svg { transform: rotate(-90deg); }
[data-fold].folded > :not(:first-child) { display: none !important; }
.card.flush[data-fold].folded > h2, section.card[data-fold].folded > h2 { margin-bottom: 0; }
.card.flush[data-fold].folded { padding-bottom: 16px; }
[data-fold] > h2, [data-fold] > div > h2 { display: flex; align-items: center; gap: 8px; }
[data-fold] > h2, [data-fold] > div > h2 { justify-content: flex-start; }
[data-fold] > h2 > span:first-child { margin-right: auto; }
[data-fold] > h2 > .btn { margin-left: auto; }
.info-box svg { width: 16px; height: 16px; vertical-align: -3px; fill: none; stroke: currentColor; stroke-width: 1.6; }

/* subdivisions nested under their country */
.sub-toggle { display: inline-flex; align-items: center; gap: 3px; margin-top: 3px; padding: 1px 7px 1px 3px; border: 1px dashed var(--line-strong, #b9c2ba); border-radius: 999px; background: transparent; color: var(--muted); font: inherit; font-size: .72rem; font-weight: 600; cursor: pointer; }
.sub-toggle:hover { color: var(--ink); border-color: var(--sauge, #839788); }
.sub-toggle svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .15s; }
.sub-toggle[aria-expanded="true"] svg { transform: rotate(90deg); }
tr.sub-row td:first-child { padding-left: 34px; }
tr.sub-row { background: var(--tile); }
tr.sub-row .country-cell { font-weight: 500; }
table.sgrid .country-cell > span:not(.iso) { display: inline-flex; flex-direction: column; align-items: flex-start; }
.subs-n { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--muted); border: 1px dashed currentColor; border-radius: 999px; padding: 0 5px; margin-left: 4px; white-space: nowrap; }

/* Already running (activity) card on a country page */
.act-kpis { margin: 12px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.act-line { font-size: .72rem; font-weight: 600; color: var(--ok); white-space: nowrap; margin-top: 2px; font-variant-numeric: tabular-nums; }
/* Sortable table headers */
table.list thead th.sortable { cursor: pointer; user-select: none; }
table.list thead th.sortable:hover { color: var(--ok); }
table.list thead th.sortable::after { content: '↕'; opacity: .25; margin-left: 4px; font-size: .9em; }
table.list thead th.sorted[data-dir="asc"]::after { content: '↑'; opacity: .9; }
table.list thead th.sorted[data-dir="desc"]::after { content: '↓'; opacity: .9; }
/* Drop zones for file imports */
.dropzone { display: flex; align-items: center; gap: 14px; padding: 18px 20px; border: 2px dashed color-mix(in srgb, var(--sauge) 60%, transparent); border-radius: 14px; cursor: pointer; background: color-mix(in srgb, var(--sauge) 6%, var(--surface)); transition: background .15s, border-color .15s; }
.dropzone:hover, .dropzone:focus-visible { border-color: var(--ok); outline: none; }
.dropzone.over { border-color: var(--ok); background: var(--ok-soft); }
.dropzone .dz-ico svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; color: var(--ok); }
/* "Live" figures (what already runs) look different from the prospecting figures */
.live-pill { display: inline-flex; align-items: center; gap: 6px; font-size: .64rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ok); background: var(--surface); border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 999px; padding: 2px 9px 2px 7px; }
.live-pill::before, .live-dot { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); animation: live-pulse 2.4s ease-in-out infinite; flex: none; }
@keyframes live-pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 0%, transparent); } }
@media (prefers-reduced-motion: reduce) { .live-pill::before, .live-dot { animation: none; } }
.kpi.kpi-live { position: relative; background: var(--ok-soft); border-color: color-mix(in srgb, var(--ok) 30%, transparent); border-left: 4px solid var(--ok); }
.kpi.kpi-live .label, .kpi.kpi-live .value { color: var(--ok); }
.kpi.kpi-live .live-pill { position: absolute; top: 12px; right: 12px; }
.kpi.kpi-live .label { padding-right: 52px; }
.kpi.kpi-live .label svg, .live-title svg { width: 18px; height: 18px; color: var(--ok); }
.card.card-live { border-left: 4px solid var(--ok); }
.card.card-live > h2 { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.card.card-live .kpi { background: var(--ok-soft); border-color: transparent; box-shadow: none; }
.card.card-live .kpi .value { color: var(--ok); }
.act-line { display: inline-flex; align-items: center; gap: 6px; }
.act-line .live-dot { width: 6px; height: 6px; box-shadow: none; animation: none; }
.act-line svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.live-title svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.live-value { display: flex; align-items: center; gap: 10px; }
.live-value svg { width: 30px; height: 30px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.live-title svg { stroke-width: 1.7; }
/* Region page: parent country in front of the name */
.parent-crumb { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--muted); text-decoration: none; font-size: 1.05rem; }
.parent-crumb:hover span { color: var(--ok); text-decoration: underline; }
.parent-crumb.is-muted { font-size: .9rem; }
.crumb-sep { color: var(--muted); font-size: 1.4rem; margin: 0 2px; }
/* Map: show / hide regions */
.map-subs { margin-left: 8px; }
.map-subs[aria-pressed="false"] { opacity: .75; }
.map-card > h2 > span:first-child { margin-right: 0; }
.map-card > h2 .map-mode { margin-left: auto; }
.map-subs { display: inline-flex; align-items: center; gap: 7px; }
.map-subs svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
/* Larger reading sizes for the additions of 19 Nov (Pascal: slightly larger text everywhere) */
.act-line { font-size: .82rem; }
.act-line svg { width: 15px; height: 15px; }
.live-pill { font-size: .7rem; padding: 3px 10px 3px 8px; }
.kpi.kpi-live .label { padding-right: 60px; }
.dropzone { font-size: 1rem; }
.parent-crumb { font-size: 1.1rem; }
.map-card > h2 .map-subs { margin-left: 8px; }
/* The LED of the "Live" pill blinks gently (soft fade in and out, with its halo) */
.live-pill::before { animation: live-led 2.6s ease-in-out infinite; }
@keyframes live-led { 0%, 100% { opacity: 1; box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 25%, transparent), 0 0 6px var(--ok); } 50% { opacity: .2; box-shadow: 0 0 0 3px transparent, 0 0 0 transparent; } }
@media (prefers-reduced-motion: reduce) { .live-pill::before { animation: none; } }
/* "Already running" card on a country page: as tall as the Country card next to it; the site list scrolls inside */
@media (min-width: 861px) {
  .grid.cols-2 > .card.card-live:not(.folded) { height: 0; min-height: 100%; display: flex; flex-direction: column; overflow: hidden; }
  .card.card-live > .table-wrap { flex: 1 1 0; min-height: 0; overflow-y: auto; }
  .card.card-live > .table-wrap thead th { position: sticky; top: 0; z-index: 1; }
  .card.card-live > h2, .card.card-live > .kpis, .card.card-live > p { flex: none; }
}
@media (max-width: 860px) { .card.card-live > .table-wrap { max-height: 420px; overflow-y: auto; } }
@media (min-width: 861px) {
  .card.card-live > .kpis { margin: 4px 16px 10px; gap: 10px; }
  .card.card-live .kpi { padding: 9px 14px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
  .card.card-live .kpi .value { font-size: 1.45rem; margin-top: 0; }
  .card.card-live > .table-wrap td { padding-block: 8px; }
  .card.card-live > p { margin: 8px 16px 10px !important; }
}
/* Header tiles (KPIs, country and market summaries): title on the left, figure and line below centred (Pascal, 19 Nov) */
.kpi .value, .kpi .sub, .summary .value, .summary .sub { text-align: center; }
.kpi .value.live-value { justify-content: center; }
.summary .value .badge, .summary .value > span { margin-inline: auto; }
.summary > div > .value:has(.badge) { display: flex; justify-content: center; }
/* Research one question from its answer (✦ next to the question) */
.q-research { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; margin-left: 6px; vertical-align: middle; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--green-ink); cursor: pointer; padding: 0; }
.q-research svg, .qr-ico svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.q-research:hover, .q-research.on { border-color: var(--ok); color: var(--ok); background: var(--ok-soft); }
.qr-panel { margin: -4px 0 12px; padding: 12px 14px; border: 1px solid color-mix(in srgb, var(--ok) 35%, transparent); border-radius: 12px; background: color-mix(in srgb, var(--ok-soft) 55%, var(--surface)); }
.qr-ask { display: flex; align-items: center; gap: 8px; }
.qr-ask .qr-ico { color: var(--ok); display: inline-flex; }
.qr-hint { flex: 1; min-width: 0; font-size: .95rem; }
.qr-wait { display: flex; align-items: center; gap: 8px; margin-top: 10px; color: var(--muted); font-size: .92rem; }
.qr-err { margin-top: 10px; color: var(--danger); font-size: .92rem; }
.qr-result { margin-top: 10px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 14px; align-items: start; padding: 10px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 10px; }
.qr-text { font-size: .95rem; line-height: 1.45; }
.qr-meta { display: flex; align-items: center; gap: 8px; }
.qr-score { font-weight: 700; font-size: 1.15rem; color: var(--green-ink); } .qr-score small { font-size: .7em; color: var(--muted); }
.qr-yn { font-weight: 700; padding: 3px 10px; border-radius: 999px; font-size: .85rem; } .qr-yn.y { background: var(--ok-soft); color: var(--ok); } .qr-yn.n { background: var(--danger-soft); color: var(--danger); }
.qr-src { grid-column: 1 / -1; color: var(--muted); word-break: break-all; } .qr-src a { color: var(--green-ink); }
.qr-foot { margin: 8px 0 0; }
/* Method page: credit line and the short user guide */
.credit { margin: 16px 0 0; padding-top: 10px; border-top: 1px solid var(--line); font-size: .85rem; color: var(--muted); font-style: italic; }
.guide .live-pill { vertical-align: 1px; }
.guide-list { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 10px 26px; font-size: .97rem; line-height: 1.45; }
.guide-list li { display: flex; align-items: flex-start; gap: 12px; }
.guide-list .gi { flex: none; width: 34px; height: 34px; border-radius: 9px; border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; justify-content: center; color: var(--green-ink); }
.guide-list .gi svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.guide-list .gi-n { background: var(--green-ink); color: var(--surface); border-color: transparent; font-weight: 700; }
.guide-list .gi-t { font-weight: 700; font-size: 1.05rem; }
.guide-list .gi .ai-badge { margin: 0; }
.guide-list li > div { padding-top: 6px; }
.card.guide { margin-top: 16px; }
.qr-done .qr-msg { flex: 1; font-size: .95rem; }
.qr-hint.qr-translating { background-image: linear-gradient(90deg, transparent, color-mix(in srgb, var(--ok) 12%, transparent), transparent); background-size: 200% 100%; animation: qr-shimmer 1.2s linear infinite; }
@keyframes qr-shimmer { from { background-position: 100% 0; } to { background-position: -100% 0; } }
/* AI badge and ✦ on their own line under the question title */
.q-tools { display: flex; align-items: center; gap: 8px; margin-top: 7px; }
.q-tools .ai-badge, .q-tools .q-research { margin: 0; }
.q.sub .q-tools { padding-left: 0; }
/* Sources as short links */
.src-view { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-height: 40px; padding: 6px 2px; }
.src-chip { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; padding: 4px 9px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--green-ink); font-size: .84rem; font-weight: 600; text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.src-chip span { overflow: hidden; text-overflow: ellipsis; }
.src-chip svg { width: 13px; height: 13px; fill: none; stroke: currentColor; stroke-width: 1.8; flex: none; }
a.src-chip:hover { border-color: var(--ok); color: var(--ok); }
.src-chip.txt { color: var(--muted); font-weight: 500; white-space: normal; }
.src-edit { display: inline-flex; align-items: center; justify-content: center; width: 26px; height: 26px; border: 0; border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; padding: 0; }
.src-edit:hover { background: var(--tile); color: var(--green-ink); }
.src-edit svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; }
/* Answer gets the room the sources no longer need (sources are short links now) */
@media (min-width: 1101px) {
  .q, .q-head { grid-template-columns: minmax(0, .95fr) minmax(0, 1.8fr) minmax(0, .78fr) auto; }
}
.src-chip.txt { display: block; border-radius: 8px; padding: 4px 8px; font-size: .8rem; line-height: 1.3; background: transparent; border-style: dashed; }
.qr-ask { align-items: flex-start; }
.qr-ask .qr-ico, .qr-ask .btn { margin-top: 6px; }
textarea.qr-hint { resize: none; overflow: hidden; line-height: 1.4; min-height: 40px; }
/* Overview: always six stat tiles, each with its icon in front of the figure */
.kpis.kpis-6 { grid-template-columns: repeat(6, minmax(0, 1fr)); }
@media (max-width: 1280px) { .kpis.kpis-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .kpis.kpis-6 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kpi .value.value-ico { display: flex; align-items: center; justify-content: center; gap: 10px; }
.kpi .value.value-ico svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; flex: none; opacity: .85; }
.kpis-6 .kpi .value { font-size: 1.7rem; }
.kpis-6 .kpi .label { min-height: 2.6em; }
/* Same height for the six tiles whatever the continent */
.kpis-6 .kpi { min-height: 156px; display: flex; flex-direction: column; }
.kpis-6 .kpi .label { min-height: 2.7em; }
.kpis-6 .kpi .value { margin-top: auto; }
.kpis-6 .kpi .sub { min-height: 2.6em; }
/* Research progress bar */
.rp-progress { display: flex; align-items: center; gap: 12px; margin: 6px 0 4px; }
.rp-track { flex: 1; height: 12px; border-radius: 999px; background: var(--tile); overflow: hidden; }
.rp-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sauge), var(--ok)); background-size: 200% 100%; animation: rp-move 1.6s linear infinite; transition: width .5s ease; }
.rp-track i.done { animation: none; background: var(--ok); }
@keyframes rp-move { from { background-position: 100% 0; } to { background-position: -100% 0; } }
@media (prefers-reduced-motion: reduce) { .rp-track i { animation: none; } }
#rp-pct { min-width: 46px; text-align: right; font-weight: 700; color: var(--green-ink); font-size: 1rem; }
#rp-eta { margin-bottom: 10px; }
/* Research progress pill (window closed) */
#rp-mini { position: fixed; top: 70px; right: 24px; z-index: 90; display: inline-flex; align-items: center; gap: 9px; padding: 7px 12px 7px 10px; border-radius: 999px; border: 1px solid color-mix(in srgb, var(--ok) 40%, transparent); background: var(--surface); box-shadow: var(--card-shadow), 0 8px 24px -12px rgba(0,0,0,.35); color: var(--green-ink); font: inherit; font-size: .9rem; cursor: pointer; }
#rp-mini:hover { border-color: var(--ok); }
#rp-mini .rp-mini-name { font-weight: 600; max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#rp-mini .rp-mini-track { width: 110px; height: 8px; border-radius: 999px; background: var(--tile); overflow: hidden; }
#rp-mini .rp-mini-track i { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, var(--sauge), var(--ok)); transition: width .5s ease; }
#rp-mini .rp-mini-pct { min-width: 40px; text-align: right; }
#rp-mini svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
#rp-mini.is-done { border-color: var(--ok); color: var(--ok); } #rp-mini.is-done .rp-mini-track i { background: var(--ok); }
#rp-mini[data-tip]:hover::after { left: auto; right: 0; transform: none; }
@media (max-width: 860px) { #rp-mini { top: auto; bottom: 16px; right: 16px; } }
.rp-add { color: var(--ok); }
/* Progress pill sits in the top bar (free space left of the icons), not over the page buttons */
#rp-mini { top: 12px; right: 190px; padding: 5px 11px 5px 9px; font-size: .85rem; background: color-mix(in srgb, var(--surface) 92%, transparent); }
#rp-mini .rp-mini-track { width: 90px; }
@media (max-width: 1180px) { #rp-mini .rp-mini-name { display: none; } }
@media (max-width: 980px) { #rp-mini { top: auto; bottom: 16px; right: 16px; } #rp-mini .rp-mini-name { display: inline; } }
#rp-mini.in-bar { position: static; margin-right: 6px; box-shadow: none; }
@media (max-width: 980px) { #rp-mini.in-bar { position: fixed; top: auto; bottom: 16px; right: 16px; box-shadow: var(--card-shadow); } }
/* Blended into the top bar: no box, the bar's own ink, a translucent track */
#rp-mini.in-bar { background: transparent; border: 0; padding: 4px 8px; color: var(--top-ink); border-radius: 10px; }
#rp-mini.in-bar:hover { background: rgba(255,255,255,.18); }
#rp-mini.in-bar .rp-mini-track { background: rgba(0,0,0,.12); height: 6px; }
#rp-mini.in-bar .rp-mini-track i { background: var(--top-ink); opacity: .85; }
#rp-mini.in-bar .spin { border-color: rgba(0,0,0,.15); border-top-color: var(--top-ink); }
#rp-mini.in-bar.is-done { color: var(--top-ink); }
@media (max-width: 980px) { #rp-mini.in-bar { background: var(--surface); border: 1px solid var(--line); color: var(--green-ink); } #rp-mini.in-bar .rp-mini-track i { background: var(--ok); } }
#rp-mini.in-bar .rp-mini-track { background: color-mix(in srgb, var(--top-ink) 18%, transparent); }
/* Method › Purpose: animated credits (François → Pascal → Claude) */
.credits { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 26px 1fr 26px 1fr; align-items: start; gap: 6px; }
.cr-step { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.cr-step > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cr-step b { font-size: .92rem; color: var(--green-ink); }
.cr-step small { font-size: .78rem; color: var(--muted); }
.cr-ico { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--tile); color: var(--green-ink); animation: cr-glow 6s ease-in-out infinite; }
.cr-ico svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.s2 .cr-ico { animation-delay: 2s; } .s3 .cr-ico { animation-delay: 4s; }
@keyframes cr-glow { 0%, 30%, 100% { transform: translateY(0); background: var(--tile); color: var(--green-ink); box-shadow: none; } 10% { transform: translateY(-4px); background: var(--ok-soft); color: var(--ok); box-shadow: 0 0 0 5px color-mix(in srgb, var(--ok) 15%, transparent); } }
.cr-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; margin-top: 5px; }
.cr-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); font-size: .74rem; color: var(--green-ink); white-space: nowrap; }
.cr-chip svg { width: 12px; height: 12px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cr-chip img { width: 14px; height: 10px; border-radius: 2px; object-fit: cover; }
.cr-flow { position: relative; height: 2px; margin-top: 21px; background: repeating-linear-gradient(90deg, var(--line-strong, #b9c2ba) 0 4px, transparent 4px 8px); }
.cr-flow i { position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); opacity: 0; animation: cr-run 6s ease-in-out infinite; }
.f2 i { animation-delay: 2s; }
@keyframes cr-run { 0% { left: 0; opacity: 0; } 4% { opacity: 1; } 26% { left: calc(100% - 8px); opacity: 1; } 32%, 100% { left: calc(100% - 8px); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cr-ico, .cr-flow i { animation: none; } }
@media (max-width: 560px) { .credits { grid-template-columns: 1fr; } .cr-flow { width: 2px; height: 18px; margin: 0 auto; background: repeating-linear-gradient(180deg, var(--line-strong, #b9c2ba) 0 4px, transparent 4px 8px); } .cr-flow i { display: none; } }
/* Method › Purpose: the credits story (10 s loop) */
.credits2 { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); }
.cr2-scene { width: 100%; height: auto; display: block; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.cr2-scene .road { stroke: var(--line-strong, #b9c2ba); stroke-width: 2; stroke-dasharray: 10 8; animation: road 1s linear infinite; }
@keyframes road { to { stroke-dashoffset: -18; } }
.cr2-scene .rt rect { fill: #8a6f55; } .cr2-scene .rt circle { fill: var(--tile); stroke: var(--line); animation: inherit; }
.cr2-scene .rt { animation: rt-lit 10s linear infinite; }
.cr2-scene .rt circle { animation: rt-leaf 10s linear infinite; animation-delay: inherit; }
@keyframes rt-leaf { 0%, 3% { fill: var(--tile); } 6%, 85% { fill: var(--ok); } 95%, 100% { fill: var(--tile); } }
@keyframes rt-lit { 0%, 3% { transform: translateY(0); } 5% { transform: translateY(-3px); } 7%, 100% { transform: translateY(0); } }
.cr2-scene .van { animation: van 10s linear infinite; }
@keyframes van { from { transform: translateX(-80px); } to { transform: translateX(660px); } }
.cr2-scene .vbody { fill: var(--green-ink); } .cr2-scene .vcab { fill: var(--sauge); } .cr2-scene .vwin { fill: #dfeee6; }
.cr2-scene .mast { fill: var(--green-ink); } .cr2-scene .lidar { fill: var(--ok); }
.cr2-scene .vtxt { fill: #fff; font-size: 8px; font-weight: 700; font-family: inherit; }
.cr2-scene .wheel circle { fill: #2b2f2b; } .cr2-scene .wheel path { stroke: #9aa39b; stroke-width: 1.2; }
.cr2-scene .wheel { animation: none; }
.cr2-scene .beam path { fill: var(--ok); opacity: .25; transform-origin: 14px 103px; animation: beam .6s ease-in-out infinite alternate; }
@keyframes beam { from { transform: rotate(-12deg); opacity: .12; } to { transform: rotate(10deg); opacity: .35; } }
/* François: the grid gets ticked */
.cr2-scene .board { fill: var(--surface); stroke: var(--green-ink); stroke-width: 2; } .cr2-scene .clipper { fill: var(--green-ink); }
.cr2-scene .ln { stroke: var(--line-strong, #b9c2ba); stroke-width: 2; stroke-linecap: round; }
.cr2-scene .ck { fill: none; stroke: var(--ok); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 14; stroke-dashoffset: 14; animation: ck 10s ease-out infinite; }
.cr2-scene .c2 { animation-name: ck2; } .cr2-scene .c3 { animation-name: ck3; }
@keyframes ck { 0%, 2% { stroke-dashoffset: 14; } 5%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 14; } }
@keyframes ck2 { 0%, 6% { stroke-dashoffset: 14; } 9%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 14; } }
@keyframes ck3 { 0%, 10% { stroke-dashoffset: 14; } 13%, 92% { stroke-dashoffset: 0; } 96%, 100% { stroke-dashoffset: 14; } }
/* the paper plane flies from the grid to the tree */
.cr2-scene .plane { fill: var(--surface); stroke: var(--green-ink); stroke-width: 1.4; offset-path: path('M118 40 C 180 -10, 250 0, 292 98'); offset-rotate: auto; animation: plane 10s ease-in-out infinite; opacity: 0; }
@keyframes plane { 0%, 14% { offset-distance: 0%; opacity: 0; } 16% { opacity: 1; } 33% { offset-distance: 100%; opacity: 1; } 35%, 100% { offset-distance: 100%; opacity: 0; } }
/* Pascal: the tree grows, its three fruits pop */
.cr2-scene .trunk { fill: #8a6f55; }
.cr2-scene .canopy { fill: var(--sauge); transform-box: fill-box; transform-origin: 50% 100%; animation: grow 10s cubic-bezier(.3,1.6,.5,1) infinite; }
@keyframes grow { 0%, 34% { transform: scale(.25); } 42%, 94% { transform: scale(1); } 99%, 100% { transform: scale(.25); } }
.cr2-scene .fruit { transform-box: fill-box; transform-origin: center; animation: fruit 10s cubic-bezier(.3,1.8,.5,1) infinite; transform: scale(0); }
.cr2-scene .f1 { fill: var(--ok); } .cr2-scene .f2 { fill: #e9c46a; animation-name: fruit2; } .cr2-scene .f3 { fill: #3b6fd1; animation-name: fruit3; }
@keyframes fruit { 0%, 43% { transform: scale(0); } 46%, 94% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
@keyframes fruit2 { 0%, 47% { transform: scale(0); } 50%, 94% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
@keyframes fruit3 { 0%, 51% { transform: scale(0); } 54%, 94% { transform: scale(1); } 97%, 100% { transform: scale(0); } }
/* the chips under Pascal pop with the fruits */
.cr-pop { animation: chip 10s cubic-bezier(.3,1.8,.5,1) infinite; }
.cr-pop.p2 { animation-name: chip2; } .cr-pop.p3 { animation-name: chip3; }
@keyframes chip { 0%, 43% { transform: scale(.6); opacity: .25; } 46%, 94% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: .25; } }
@keyframes chip2 { 0%, 47% { transform: scale(.6); opacity: .25; } 50%, 94% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: .25; } }
@keyframes chip3 { 0%, 51% { transform: scale(.6); opacity: .25; } 54%, 94% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: .25; } }
/* a spark flies from the tree to Claude */
.cr2-scene .sparkfly { fill: var(--ok); offset-path: path('M318 92 C 380 10, 450 0, 500 50'); animation: sparkfly 10s ease-in-out infinite; opacity: 0; }
@keyframes sparkfly { 0%, 56% { offset-distance: 0%; opacity: 0; } 58% { opacity: 1; } 70% { offset-distance: 100%; opacity: 1; } 72%, 100% { offset-distance: 100%; opacity: 0; } }
/* Claude: the globe gets drawn, spins, twinkles */
.cr2-scene .globe, .cr2-scene .mer, .cr2-scene .lat { fill: none; stroke: var(--green-ink); stroke-width: 2; }
.cr2-scene .globe { stroke-dasharray: 164; stroke-dashoffset: 164; animation: draw 10s ease-out infinite; }
.cr2-scene .lat { stroke-width: 1.4; stroke-dasharray: 140; stroke-dashoffset: 140; animation: draw2 10s ease-out infinite; }
.cr2-scene .mer { animation: spin 2.4s linear infinite, mer-show 10s linear infinite; }
@keyframes draw { 0%, 70% { stroke-dashoffset: 164; } 78%, 95% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 164; } }
@keyframes draw2 { 0%, 74% { stroke-dashoffset: 140; } 82%, 95% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: 140; } }
@keyframes spin { 0% { rx: 26px; } 25% { rx: 0px; } 50% { rx: 26px; } 75% { rx: 0px; } 100% { rx: 26px; } }
@keyframes mer-show { 0%, 76% { opacity: 0; } 80%, 95% { opacity: 1; } 100% { opacity: 0; } }
.cr2-scene .tw { fill: var(--ok); transform-box: fill-box; transform-origin: center; opacity: 0; animation: tw 10s ease-in-out infinite; }
.cr2-scene .t2 { animation-delay: .25s; } .cr2-scene .t3 { animation-delay: .5s; }
@keyframes tw { 0%, 82% { opacity: 0; scale: .2; } 86% { opacity: 1; scale: 1.2; } 90% { opacity: .2; scale: .6; } 93% { opacity: 1; scale: 1; } 96%, 100% { opacity: 0; scale: .2; } }
.cr2-captions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 6px; text-align: center; }
.cr2-captions > div { display: flex; flex-direction: column; align-items: center; gap: 2px; }
.cr2-captions b { font-size: .94rem; color: var(--green-ink); }
.cr2-captions small { font-size: .8rem; color: var(--muted); font-style: italic; }
@media (prefers-reduced-motion: reduce) { .cr2-scene *, .cr-pop { animation: none !important; } .cr2-scene .ck, .cr2-scene .globe, .cr2-scene .lat { stroke-dashoffset: 0; } .cr2-scene .canopy, .cr2-scene .fruit { transform: none; } .cr2-scene .van { transform: translateX(260px); } }
@media (max-width: 560px) { .cr2-captions { grid-template-columns: 1fr; } }

/* greehill scanning UTV (side-by-side, as on the field): mast on the rear bed, LiDAR head with red cap */
.cr2-scene .bed, .cr2-scene .chassis, .cr2-scene .hood, .cr2-scene .door { fill: #22262a; }
.cr2-scene .box { fill: #3a3f44; }
.cr2-scene .cabframe { fill: none; stroke: #22262a; stroke-width: 2.6; stroke-linejoin: round; }
.cr2-scene .glass { fill: #cfe3d8; opacity: .6; }
.cr2-scene .doorwin { fill: #4a5a52; }
.cr2-scene .hlight { fill: #f3efe2; }
.cr2-scene .mast { fill: #5c645d; }
.cr2-scene .lidar { fill: #e9ecea; stroke: #5c645d; stroke-width: .8; }
.cr2-scene .lidar-cap { fill: #c8453b; }
.cr2-scene .wheel .tyre { fill: #1a1c1e; } .cr2-scene .wheel .rim { fill: #5c645d; } .cr2-scene .wheel path { stroke: #2b2f2b; stroke-width: 1.2; }
.cr2-scene .vtxt { font-size: 5px; }
:root[data-theme="dark"] .cr2-scene .bed, :root[data-theme="dark"] .cr2-scene .chassis, :root[data-theme="dark"] .cr2-scene .hood, :root[data-theme="dark"] .cr2-scene .door { fill: #8a959b;} :root[data-theme="dark"] .cr2-scene .box { fill: #a2acb1;} :root[data-theme="dark"] .cr2-scene .cabframe { stroke: #b4bdc1;} :root[data-theme="dark"] .cr2-scene .doorwin { fill: #cfe3d8;} :root[data-theme="dark"] .cr2-scene .wheel .tyre { fill: #626a6f;} :root[data-theme="dark"] .cr2-scene .wheel .rim { fill: #c9d0cb;} :root[data-theme="dark"] .cr2-scene .mast { fill: #b4bdb6;}
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .cr2-scene .bed, :root:not([data-theme="light"]) .cr2-scene .chassis, :root:not([data-theme="light"]) .cr2-scene .hood, :root:not([data-theme="light"]) .cr2-scene .door { fill: #8a959b;} :root:not([data-theme="light"]) .cr2-scene .box { fill: #a2acb1;} :root:not([data-theme="light"]) .cr2-scene .cabframe { stroke: #b4bdc1;} :root:not([data-theme="light"]) .cr2-scene .doorwin { fill: #cfe3d8;} :root:not([data-theme="light"]) .cr2-scene .wheel .tyre { fill: #626a6f;} :root:not([data-theme="light"]) .cr2-scene .wheel .rim { fill: #c9d0cb;} :root:not([data-theme="light"]) .cr2-scene .mast { fill: #b4bdb6;} }
/* Pascal at the wheel: the steering wheel steers while the spark flies to Claude AI */
.cr2-scene .steer { fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; }
.cr2-scene .steer .hub { fill: var(--green-ink); }
.cr2-scene .steer { transform-box: fill-box; transform-origin: center; }
.cr2-scene .steer { animation: steer 10s ease-in-out infinite; opacity: 0; }
@keyframes steer { 0%, 52% { opacity: 0; rotate: 0deg; } 55% { opacity: 1; rotate: 0deg; } 60% { rotate: -35deg; } 65% { rotate: 30deg; } 70% { rotate: -15deg; } 74%, 94% { opacity: 1; rotate: 0deg; } 98%, 100% { opacity: 0; rotate: 0deg; } }
.cr-pop.p4 { animation-name: chip4; }
@keyframes chip4 { 0%, 55% { transform: scale(.6); opacity: .25; } 58%, 94% { transform: scale(1); opacity: 1; } 100% { transform: scale(.6); opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .cr2-scene .steer { animation: none; opacity: 1; } }
/* the globe fills with countries, one after the other, while it turns */
.cr2-scene .land { fill: var(--sauge); opacity: 0; transform-box: fill-box; transform-origin: center; animation: land 10s cubic-bezier(.3,1.6,.5,1) infinite; }
.cr2-scene .l1 { fill: var(--ok); } .cr2-scene .l2 { fill: #f28c28; animation-name: land2; } .cr2-scene .l3 { fill: #e63946; animation-name: land3; } .cr2-scene .l4 { fill: #2fbf71; animation-name: land4; } .cr2-scene .l5 { fill: #ffb000; animation-name: land5; }
@keyframes land  { 0%, 78% { opacity: 0; scale: .3; } 81%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: .3; } }
@keyframes land2 { 0%, 80% { opacity: 0; scale: .3; } 83%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: .3; } }
@keyframes land3 { 0%, 82% { opacity: 0; scale: .3; } 85%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: .3; } }
@keyframes land4 { 0%, 84% { opacity: 0; scale: .3; } 87%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: .3; } }
@keyframes land5 { 0%, 86% { opacity: 0; scale: .3; } 89%, 94% { opacity: 1; scale: 1; } 98%, 100% { opacity: 0; scale: .3; } }
.cr2-scene .lands { animation: turn 10s linear infinite; }
@keyframes turn { 0%, 76% { translate: -10px 0; } 100% { translate: 12px 0; } }
@media (prefers-reduced-motion: reduce) { .cr2-scene .land { opacity: .9; scale: 1; } .cr2-scene .lands { translate: 0 0; } }
/* Method › Grouping: the example in motion (10 s loop), filling the tile down to its bottom */
.grp-card { display: flex; flex-direction: column; }
.grp-wrap { flex: 1; display: flex; align-items: flex-end; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); min-height: 220px; }
.grp-scene { width: 100%; height: auto; max-height: 100%; display: block; font-family: inherit; }
.grp-scene .gchip rect { fill: var(--tile); stroke: var(--line-strong, #b9c2ba); stroke-width: 1.2; }
.grp-scene .gn { font-size: 14px; font-weight: 700; fill: var(--green-ink); } .grp-scene .gv { font-size: 11.5px; fill: var(--muted); }
.grp-scene .glink { fill: none; stroke: var(--ok); stroke-width: 2; stroke-dasharray: 260; stroke-dashoffset: 260; animation: glink 10s ease-in-out infinite; }
.grp-scene .l2 { animation-name: glink2; } .grp-scene .l3 { animation-name: glink3; }
@keyframes glink  { 0%, 4%  { stroke-dashoffset: 260; } 14%, 92% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 260; } }
@keyframes glink2 { 0%, 14% { stroke-dashoffset: 260; } 24%, 92% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 260; } }
@keyframes glink3 { 0%, 24% { stroke-dashoffset: 260; } 34%, 92% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 260; } }
.grp-scene .gframe { fill: none; stroke: var(--line-strong, #b9c2ba); stroke-width: 1.4; stroke-dasharray: 4 4; }
.grp-scene .gseg rect { transform-box: fill-box; transform-origin: 50% 100%; animation: gseg 10s cubic-bezier(.3,1.5,.5,1) infinite; }
.grp-scene .gseg text { font-size: 13px; font-weight: 700; fill: #fff; opacity: 0; animation: gsegt 10s linear infinite; }
.grp-scene .s1 rect { fill: var(--ok); } .grp-scene .s2 rect { fill: #f28c28; animation-name: gseg2; } .grp-scene .s3 rect { fill: #3b6fd1; animation-name: gseg3; }
.grp-scene .s2 text { animation-name: gsegt2; } .grp-scene .s3 text { animation-name: gsegt3; }
@keyframes gseg  { 0%, 12% { transform: scaleY(0); } 17%, 92% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes gseg2 { 0%, 22% { transform: scaleY(0); } 27%, 92% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes gseg3 { 0%, 32% { transform: scaleY(0); } 37%, 92% { transform: scaleY(1); } 97%, 100% { transform: scaleY(0); } }
@keyframes gsegt  { 0%, 15% { opacity: 0; } 17%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gsegt2 { 0%, 25% { opacity: 0; } 27%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
@keyframes gsegt3 { 0%, 35% { opacity: 0; } 37%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
.grp-scene .gth { stroke: #e63946; stroke-width: 2; stroke-dasharray: 6 5; } .grp-scene .gtht { font-size: 11.5px; font-weight: 700; fill: #e63946; }
.grp-scene .gmk { font-size: 12.5px; font-weight: 700; fill: var(--green-ink); }
.grp-scene .gok circle { fill: var(--ok); } .grp-scene .gok path { fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.grp-scene .gok { transform-box: fill-box; transform-origin: center; animation: gok 10s cubic-bezier(.3,1.8,.5,1) infinite; scale: 0; }
.grp-scene .gsum { font-size: 14px; font-weight: 800; fill: var(--green-ink); opacity: 0; animation: gsum 10s linear infinite; }
@keyframes gok { 0%, 40% { scale: 0; } 44%, 92% { scale: 1; } 96%, 100% { scale: 0; } }
@keyframes gsum { 0%, 41% { opacity: 0; } 44%, 92% { opacity: 1; } 95%, 100% { opacity: 0; } }
/* Country D: link stops short, red cross, chip greys out */
.grp-scene .gout rect { animation: gout 10s linear infinite; }
.grp-scene .lout { stroke: #e63946; stroke-dasharray: 110; stroke-dashoffset: 110; animation: glout 10s ease-in-out infinite; }
@keyframes glout { 0%, 50% { stroke-dashoffset: 110; } 58%, 92% { stroke-dashoffset: 0; } 97%, 100% { stroke-dashoffset: 110; } }
.grp-scene .gx circle { fill: #e63946; } .grp-scene .gx path { stroke: #fff; stroke-width: 2.6; stroke-linecap: round; }
.grp-scene .gx { transform-box: fill-box; transform-origin: center; scale: 0; animation: gx 10s cubic-bezier(.3,1.8,.5,1) infinite; }
@keyframes gx { 0%, 57% { scale: 0; rotate: -90deg; } 61%, 92% { scale: 1; rotate: 0deg; } 96%, 100% { scale: 0; } }
@keyframes gout { 0%, 60% { stroke: var(--line-strong, #b9c2ba); opacity: 1; } 62%, 66% { stroke: #e63946; translate: 3px 0; } 64% { translate: -3px 0; } 68%, 92% { stroke: #e63946; translate: 0 0; opacity: .55; } 100% { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .grp-scene *, .grp-scene .gseg rect, .grp-scene .gseg text { animation: none !important; } .grp-scene .glink { stroke-dashoffset: 0; } .grp-scene .gseg text, .grp-scene .gsum { opacity: 1; } .grp-scene .gok, .grp-scene .gx { scale: 1; } }
@media (max-width: 900px) { .grp-wrap { min-height: 0; } }
/* overview table: completion as a small ring, AI drafts as a count (full text on hover) */
.ring-cell { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; cursor: default; }
.ring { position: relative; width: 34px; height: 34px; flex: none; display: inline-grid; place-items: center; }
.ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rg-t { fill: none; stroke: var(--tile); stroke-width: 4; }
.ring .rg-v { fill: none; stroke: var(--sauge); stroke-width: 4; stroke-linecap: round; }
.ring b { font-size: .66rem; font-weight: 700; color: var(--ink, inherit); }
.ai-n { display: inline-flex; align-items: center; gap: 2px; font-size: .74rem; font-weight: 700; color: var(--terra); }
.ai-n svg { width: 12px; height: 12px; }
/* overview table: narrower columns so it fits its tile */
table.list.ov th, table.list.ov td { padding-inline: 10px; }
/* the map (Leaflet panes use z-index 400+) stays under the sticky top bar when the page scrolls */
.leaflet-container { isolation: isolate; z-index: 0; }
@media (max-width: 1120px) { table.list.ov .hide-lg { display: none; } }
@media (max-width: 980px) { table.list.ov .hide-xl { display: none; } }
@media (max-width: 1020px) { table.list.ov th, table.list.ov td { padding-inline: 7px; } }
/* regional partners (greehill.com/partners) next to the country title */
.partner-line { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 5px; font-size: .74rem; }
.partner-line > .has-help { font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-size: .66rem; cursor: help; }
.partner-chip { display: inline-flex; align-items: center; padding: 2px 9px; border-radius: 999px; border: 1px dashed var(--sauge); color: var(--green-ink); text-decoration: none; font-weight: 600; white-space: nowrap; }
.partner-chip:hover { background: color-mix(in srgb, var(--sauge) 14%, transparent); }

/* "Token" gauge (administrators): WorldBoard's Claude API budget, detail in the native tooltip (several lines) */
.token-gauge { display: inline-flex; align-items: center; padding: 10px 6px; margin-right: 2px; cursor: default; opacity: .85; }
.token-gauge:hover, .token-gauge:focus-visible { opacity: 1; }
.token-gauge:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; border-radius: 4px; }
.token-gauge .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tg-bar { display: block; width: 34px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.08); box-shadow: inset 0 0 0 1px rgba(0,0,0,.14); overflow: hidden; }
.tg-bar > span { display: block; height: 100%; background: var(--ok); transition: width .3s; }
.token-gauge.low .tg-bar > span { background: var(--warn, #c98a1b); }
.token-gauge.out .tg-bar > span { background: var(--danger, #c0392b); }
.token-gauge.error .tg-bar { background: repeating-linear-gradient(90deg, var(--danger, #c0392b) 0 3px, transparent 3px 6px); }
:root[data-theme=dark] .tg-bar { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); }
@media (prefers-color-scheme: dark) { :root:not([data-theme=light]) .tg-bar { background: rgba(255,255,255,.05); box-shadow: inset 0 0 0 1px rgba(255,255,255,.22); } }
