/* ═══════════════════════════════════════════════════════════════════════════
   CargoX v2 — shared look of the public data pages (home, tracker, trades).
   Loaded after shared.css on <body class="v2">; shared.css already gives every
   page the CargoX green, --mono and the dark scrollbars. One green (CargoX,
   sampled from the mascot) for the brand, "us / now", positive deltas and live
   states. Blue stays the link / interactive colour.
   ═══════════════════════════════════════════════════════════════════════════ */
body.v2 {
  --green: #62ba0c;                  /* CargoX green: brand, positive, live */
  --brand: #62ba0c;
  --green-wash: rgba(98,186,12,.12);
  /* Chart roles — categorical slots in fixed order, validated on #111827 for CVD
     separation + contrast: green = us / now, blue = last year, orange = record. */
  --c1: #62ba0c; --c2: #3987e5; --c3: #d95926; --c4: #9085e9; --c5: #d55181; --c6: #c98500;
  --fire: #e0452f;                   /* burns */
  --ref: #9ca3af; --ink2: #c3c8d0; --faint: #6b7280;
  --up: var(--green); --down: var(--red);
  --sub-h: 46px;
}

/* ── Type scale (system sans everywhere, charts included) ── */
.page { padding-top: 12px; }
.page h1 { font-size: 22px; font-weight: 800; letter-spacing: -.01em; }
.page h2 { font-size: 18px; font-weight: 700; margin: 0; }
.page .lede { color: var(--muted); font-size: 13px; margin: 2px 0 14px; }
.page .lede a, .page a.lnk { color: var(--accent); text-decoration: none; }
.page section { scroll-margin-top: calc(var(--nav-h, 56px) + var(--sub-h) + 12px); margin-bottom: 36px; }
.eyebrow { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.num { font-variant-numeric: tabular-nums; }
.up { color: var(--up); } .down { color: var(--down); } .mut { color: var(--muted); }

/* ── Sticky sub-bar: section tabs + lookup ── */
.subbar { position: sticky; top: var(--nav-h, 0px); z-index: 9; background: rgba(10,15,26,.92);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.subbar-in { max-width: 1200px; margin: 0 auto; padding: 6px 24px; display: flex; align-items: center; gap: 12px; min-height: var(--sub-h); }
@media (min-width: 1800px) { .subbar-in { max-width: 1600px; } }
@media (min-width: 2500px) { .subbar-in { max-width: 2000px; } }
.secnav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.secnav::-webkit-scrollbar { display: none; }
.secnav a { color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; padding: 6px 10px; border-radius: 6px; white-space: nowrap; }
.secnav a:hover { color: var(--text); background: rgba(255,255,255,.04); }
.secnav a.on { color: var(--text); background: var(--surface2); }
.omni { position: relative; flex: 0 1 380px; min-width: 0; }
.omni input { width: 100%; padding: 7px 34px 7px 32px; background: var(--surface); border-radius: 8px; font-size: 13px; }
.omni .omni-ic { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; font-size: 13px; }
.omni kbd { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); font: 600 10px var(--font); color: var(--muted);
  border: 1px solid var(--border); border-radius: 4px; padding: 1px 5px; pointer-events: none; }
.omni-pop { position: absolute; top: calc(100% + 6px); right: 0; width: min(440px, calc(100vw - 24px)); background: var(--surface2);
  border: 1px solid var(--border); border-radius: 10px; box-shadow: 0 16px 40px rgba(0,0,0,.5); padding: 6px; z-index: 30; }
.omni-pop[hidden] { display: none; }
.omni-pop .hint { color: var(--muted); font-size: 11px; padding: 6px 8px 4px; }
.omni-opt { display: flex; align-items: baseline; gap: 10px; padding: 8px 10px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.omni-opt .k { color: var(--muted); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; width: 76px; flex: none; }
.omni-opt .t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.omni-opt .v { color: var(--ink2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.omni-opt.sel, .omni-opt:hover { background: var(--surface); }
/* Phones: one slim row — scrollable section tabs plus a search icon that
   expands over the row while it has focus. */
@media (max-width: 720px) {
  .subbar-in { padding: 4px 12px; gap: 6px; position: relative; }
  .omni { flex: 0 0 38px; position: static; }
  .omni input { padding-right: 8px; color: transparent; cursor: pointer; }
  .omni input::placeholder { color: transparent; }
  .omni kbd { display: none; }
  .omni .omni-ic { left: auto; right: 24px; }
  .omni:focus-within { position: absolute; inset: 4px 12px; z-index: 2; }
  .omni:focus-within input { color: var(--text); cursor: text; padding-left: 32px; }
  .omni:focus-within input::placeholder { color: var(--muted); }
  .omni:focus-within .omni-ic { left: 10px; right: auto; }
  .omni-pop { right: auto; left: 0; width: 100%; }
  body.v2 { --sub-h: 44px; }
}

/* ── Title row ── */
.titlerow { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); flex: none; }
.dot.live { background: var(--green); animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (prefers-reduced-motion: reduce) { .dot.live { animation: none; } }

/* ── KPI strip ── */
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.kpi { display: block; text-decoration: none; color: inherit; background: var(--surface); border: 1px solid var(--border);
  border-radius: 10px; padding: 11px 13px 9px; min-width: 0; transition: border-color .15s; position: relative; }
.kpi:hover { border-color: #334155; }
.kpi .l { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .v { font-size: 19px; font-weight: 750; color: #fff; line-height: 1.25; margin-top: 2px; white-space: nowrap; }
.kpi .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi .spark { height: 22px; margin-top: 4px; }
.kpi .go { position: absolute; top: 9px; right: 10px; font-size: 11px; color: var(--faint); }
/* Toned KPI tile (opt-in: class="kpi tone t-…"): side strip, faint wash and tinted label in --t */
.kpi.tone { --t: var(--c2); background: linear-gradient(180deg, color-mix(in srgb, var(--t) 10%, transparent), transparent 75%), var(--surface); border-color: color-mix(in srgb, var(--t) 24%, var(--border)); }
.kpi.tone:hover { border-color: color-mix(in srgb, var(--t) 50%, var(--border)); }
.kpi.tone::before { content: ''; position: absolute; left: 0; top: 10px; bottom: 10px; width: 3px; border-radius: 0 3px 3px 0; background: var(--t); }
.kpi.tone .l { color: color-mix(in srgb, var(--t) 60%, var(--muted)); }
.kpi.t-ok { --t: var(--green); } .kpi.t-warn { --t: var(--c6); } .kpi.t-bad { --t: var(--red); }
.kpi.t-info { --t: var(--c2); } .kpi.t-vio { --t: var(--c4); } .kpi.t-fire { --t: var(--fire); }
@media (max-width: 1100px) { .kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) {
  .kpis { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin: 0 -12px 14px; padding: 0 12px; }
  .kpis::-webkit-scrollbar { display: none; }
  .kpi { flex: 0 0 46%; scroll-snap-align: start; }
}

/* ── Cards & controls ── */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; min-width: 0; }
.card-h { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.card-h h3 { font-size: 14px; font-weight: 700; color: var(--text); margin: 0; }
.card-h .sub { font-size: 12px; color: var(--muted); margin-top: 1px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
@media (max-width: 980px) { .grid2 { grid-template-columns: 1fr; } }
.tools { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tools .gap { flex: 1; }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 2px; gap: 2px; flex-wrap: nowrap; max-width: 100%; overflow-x: auto; scrollbar-width: none; }
.seg::-webkit-scrollbar { display: none; }
.seg button { background: transparent; color: var(--muted); font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 6px; white-space: nowrap; }
.seg button:hover { color: var(--text); opacity: 1; }
.seg button.on { background: var(--surface2); color: var(--text); box-shadow: inset 0 0 0 1px #2b3648; }
.chip { display: inline-flex; align-items: center; gap: 6px; background: transparent; border: 1px solid var(--border); color: var(--muted);
  font-size: 12px; font-weight: 600; padding: 4px 9px; border-radius: 8px; }
.chip:hover { color: var(--text); border-color: #334155; opacity: 1; }
.chip.on { color: var(--text); border-color: #3b4a63; background: var(--surface2); }
.chip .key { width: 12px; height: 2px; border-radius: 1px; background: currentColor; }
.chip .key.dash { background: repeating-linear-gradient(90deg, currentColor 0 3px, transparent 3px 5px); }
select.sel { width: auto; background: var(--bg); padding: 4px 8px; font-size: 12px; border-radius: 8px; color: var(--text); }
.chart { width: 100%; height: 320px; }
.chart.sm { height: 220px; }
.hidden { display: none !important; }
.note { font-size: 12px; color: var(--muted); }
.note b { color: var(--ink2); font-weight: 600; }
.scale { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.scale i { display: inline-block; width: 72px; height: 8px; border-radius: 4px; }

/* ── Buttons: primary (CargoX green), ghost, danger; .sm for dense rows ── */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; border-radius: 10px; font-size: 14px; font-weight: 700;
  text-decoration: none; border: 1px solid transparent; transition: background .15s, border-color .15s, transform .15s; white-space: nowrap; cursor: pointer; }
.btn:hover { transform: translateY(-1px); opacity: 1; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; }
.btn.primary { background: var(--brand); color: #0b1406; }
.btn.primary:hover:not(:disabled) { background: #74cc1c; }
.btn.blue { background: var(--c2); color: #fff; }
.btn.blue:hover:not(:disabled) { background: #4b97f0; }
.btn .dot.live { background: #fff; }
.btn.ghost { background: var(--surface); color: var(--text); border-color: var(--border); }
.btn.ghost:hover:not(:disabled) { border-color: #3b4a63; }
.btn.danger { background: rgba(239,68,68,.12); color: #fca5a5; border-color: rgba(239,68,68,.4); }
.btn.danger:hover:not(:disabled) { background: rgba(239,68,68,.2); }
.btn.sm { padding: 5px 11px; font-size: 12px; border-radius: 8px; }

/* Summary chips under explorers (stats of the zoomed window) */
.sumrow { display: flex; flex-wrap: wrap; gap: 6px 18px; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.sumrow b { color: var(--text); font-weight: 650; font-variant-numeric: tabular-nums; }
.sumrow .lnk { color: var(--accent); cursor: pointer; text-decoration: none; }
.sumrow .lnk:hover { text-decoration: underline; }

/* ── Pills, comparison blocks, meters ── */
.pill { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; border-radius: 999px; padding: 3px 10px; margin-top: 10px; border: 1px solid var(--border); color: var(--ink2); }
.pill.busy { color: var(--green); border-color: rgba(98,186,12,.45); background: var(--green-wash); }
.pill.quiet { color: #fca5a5; border-color: rgba(208,59,59,.45); background: rgba(208,59,59,.08); }
/* Each comparison is its own block so the three read apart at a glance. */
.cmp { background: var(--bg); border: 1px solid var(--border); border-radius: 10px; padding: 9px 12px 8px; }
.cmp.click { cursor: pointer; transition: border-color .15s; }
.cmp.click:hover { border-color: #334155; }
.cmp .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--ink2); font-weight: 600; }
.cmp .t .lbl { display: inline-flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.cmp .t .lbl .key { width: 12px; height: 2px; border-radius: 1px; flex: none; }
.cmp .t .dl { font-weight: 750; font-size: 15px; white-space: nowrap; }
.cmp .m { font-size: 12px; color: var(--muted); }
.cmp .m b { color: var(--text); font-weight: 650; }
.cmp .m b.up { color: var(--up); } .cmp .m b.down { color: var(--down); }
.cmp input[type=date] { width: auto; padding: 1px 6px; font-size: 11px; color-scheme: dark; background: var(--surface); }
.cmp .reset { background: none; border: 1px solid var(--border); color: var(--muted); font-size: 11px; padding: 1px 6px; }
.meter { position: relative; height: 8px; background: rgba(255,255,255,.03); border-radius: 4px; margin: 8px 0 6px; }
.meter span { position: absolute; top: 0; bottom: 0; left: 0; border-radius: 4px; }
.meter .now { background: var(--c1); }
.meter .proj { background: var(--c1); opacity: .35; }
.meter .tick { width: 2px; top: -3px; bottom: -3px; margin-left: -1px; background: #fff; border-radius: 1px; }
.mleg { display: flex; flex-wrap: wrap; gap: 2px 12px; font-size: 11px; color: var(--muted); padding: 2px 2px 0; }
.mleg i { display: inline-block; width: 10px; height: 6px; border-radius: 2px; margin-right: 5px; vertical-align: 1px; }
.mleg i.n { background: var(--c1); } .mleg i.p { background: var(--c1); opacity: .35; } .mleg i.k { width: 2px; height: 10px; background: #fff; vertical-align: -1px; }

/* ── Holidays ── */
.hols { display: flex; flex-wrap: wrap; gap: 4px 18px; padding: 10px 20px 14px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.hols:empty { display: none; }
.hols > span > i { font-style: normal; color: var(--ink2); font-weight: 600; margin-right: 6px; }
.hol { display: inline-block; font-size: 9px; font-weight: 700; padding: 0 4px; border-radius: 3px; margin-right: 3px; letter-spacing: .03em; vertical-align: 1px; }
.hol.AE { background: rgba(25,158,112,.2); color: #5eead4; }
.hol.EG { background: rgba(201,133,0,.22); color: #fcd34d; }
.hol.CN { background: rgba(217,89,38,.22); color: #fdba74; }
.hol-item { white-space: nowrap; margin-right: 10px; }
.hol-item.workday, .hol-item.period { opacity: .75; }

/* ── Tables ── */
.tbl-wrap { max-height: 420px; overflow: auto; border: 1px solid var(--border); border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.tbl th, .tbl td { padding: 6px 10px; text-align: right; white-space: nowrap; border-bottom: 1px solid var(--border); }
.tbl th:first-child, .tbl td:first-child { text-align: left; }
.tbl thead th { position: sticky; top: 0; background: var(--surface2); color: var(--muted); font-weight: 600; font-size: 11px; z-index: 1; }
.tbl tbody tr { cursor: pointer; }
.tbl tbody tr:hover { background: rgba(255,255,255,.03); }
.tbl .l { text-align: left; }
.tbl a { color: var(--accent); text-decoration: none; }
.tbl code { font-size: 12px; }

/* ── About ── */
details.about { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 0 20px; }
details.about > summary { cursor: pointer; padding: 14px 0; font-weight: 700; font-size: 14px; list-style: none; }
details.about > summary::-webkit-details-marker { display: none; }
details.about > summary::before { content: '▸ '; color: var(--muted); }
details.about[open] > summary::before { content: '▾ '; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; padding-bottom: 18px; font-size: 13px; color: var(--muted); }
.about-grid h4 { color: var(--text); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 6px; }
.about-grid code { font-size: 11px; background: rgba(255,255,255,.06); padding: 2px 5px; border-radius: 4px; word-break: break-all; }
.about-grid a { color: var(--accent); text-decoration: none; }
.about-grid p { margin-bottom: 6px; }

/* ── Inspector drawer ── */
.insp-back { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 40; }
.insp { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100vw); background: var(--surface); border-left: 1px solid var(--border);
  z-index: 41; display: flex; flex-direction: column; box-shadow: -20px 0 50px rgba(0,0,0,.45); transform: translateX(0); transition: transform .2s ease; }
.insp[hidden], .insp-back[hidden] { display: none; }
.insp-h { display: flex; align-items: center; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.insp-h .k { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; }
.insp-h h3 { font-size: 17px; font-weight: 750; }
.insp-h .sp { flex: 1; min-width: 0; }
.ibtn { background: transparent; border: 1px solid var(--border); color: var(--ink2); width: 30px; height: 30px; padding: 0; border-radius: 8px; font-size: 14px; }
.ibtn:hover { border-color: #3b4a63; color: #fff; opacity: 1; }
.insp-b { overflow-y: auto; padding: 16px; flex: 1; }
.insp-num { font-size: 40px; font-weight: 800; color: #fff; line-height: 1.05; }
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 14px 0; }
.fact { background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 8px 10px; min-width: 0; }
.fact .l { font-size: 10px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.fact .v { font-size: 15px; font-weight: 700; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact .s { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fact.click { cursor: pointer; }
.fact.click:hover { border-color: #334155; }
.insp-sec { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .07em; margin: 16px 0 6px; }
.insp-actions { display: flex; flex-wrap: wrap; gap: 6px; padding: 12px 16px; border-top: 1px solid var(--border); }
@media (max-width: 640px) {
  .insp { top: auto; height: 88vh; width: 100vw; border-left: 0; border-top: 1px solid var(--border); border-radius: 14px 14px 0 0; }
}

.toast { position: fixed; left: 16px; bottom: 16px; z-index: 50; background: var(--surface2); border: 1px solid #2b3648; color: var(--text);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 12px 30px rgba(0,0,0,.45); opacity: 0; transform: translateY(8px); transition: all .25s; pointer-events: none; }
.toast.on { opacity: 1; transform: none; }
.err { color: var(--muted); font-size: 12px; padding: 30px 0; text-align: center; }

/* ── Journey of one document (js/flow2.js; home + /protocol): row 1 stations, row 2 captions, a token travels the stations ── */
.f2 { padding: 28px 28px 24px; margin-top: 4px; }
.f2-grid { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); column-gap: 44px; }
.f2-nodes { position: relative; display: grid; gap: 10px; align-self: center; cursor: pointer; }
.f2-nodes:not(.last)::after { content: '→'; position: absolute; right: -30px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 18px; }
.f2-node { display: flex; align-items: center; gap: 12px; background: var(--bg); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; opacity: .6; transition: opacity .35s, border-color .35s, box-shadow .35s; }
.f2-nodes.on .f2-node { opacity: 1; border-color: var(--brand); box-shadow: 0 0 0 1px var(--brand), 0 8px 26px rgba(98,186,12,.14); }
.f2-nodes.on .f2-node.burn { border-color: var(--fire); box-shadow: 0 0 0 1px var(--fire), 0 8px 26px rgba(224,69,47,.16); }
.f2-st { width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--surface2); display: flex; align-items: center; justify-content: center; font-size: 22px; transition: box-shadow .3s; }
.f2-st.pulse { box-shadow: 0 0 0 3px rgba(98,186,12,.55); }
.f2-node b { display: block; font-size: 14px; font-weight: 750; }
.f2-node small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.f2-cap { padding: 18px 2px 0; opacity: .55; transition: opacity .35s; cursor: pointer; }
.f2-cap.on { opacity: 1; }
.f2-cap h4 { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 750; margin-bottom: 6px; }
.f2-cap h4 i { font-style: normal; width: 24px; height: 24px; flex: none; border-radius: 50%; border: 1px solid #3b4a63; font-size: 12px; font-weight: 800; display: flex; align-items: center; justify-content: center; transition: background .3s, color .3s, border-color .3s; }
.f2-cap.on h4 i { background: var(--brand); border-color: var(--brand); color: #0b1406; }
.f2-cap p { font-size: 13.5px; color: var(--ink2); line-height: 1.6; }
.f2-tok { position: absolute; left: 0; top: 0; width: 44px; height: 44px; margin: -22px 0 0 -22px; border-radius: 50%; z-index: 2; pointer-events: none;
  display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; letter-spacing: .02em; opacity: 0;
  transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .4s, background-color .3s; }
.f2-tok.on { opacity: 1; }
.f2-tok.doc { background: #f3f4f6; border-radius: 10px; font-size: 20px; box-shadow: 0 6px 18px rgba(0,0,0,.4); }
.f2-tok.fee { background: var(--c2); color: #fff; font-size: 18px; box-shadow: 0 0 0 4px rgba(57,135,229,.25); }
.f2-tok.cxo { background: var(--brand); color: #0b1406; box-shadow: 0 0 0 4px rgba(98,186,12,.28), 0 6px 22px rgba(98,186,12,.35); }
.f2-tok.burn { background: linear-gradient(180deg, #f5b638, #c9302c); color: #fff; box-shadow: 0 0 0 4px rgba(224,69,47,.28), 0 6px 22px rgba(224,69,47,.4); }
.f2-tok.gone { opacity: 0; transition: transform .9s cubic-bezier(.6, 0, .3, 1), opacity .7s .15s; }
.f2-foot { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--border); }
.f2-sh { display: flex; justify-content: space-between; align-items: baseline; font-size: 13px; color: var(--muted); }
.f2-sh b { font-size: 16px; color: #fff; }
.f2-stake input { width: 100%; margin: 10px 0 4px; accent-color: var(--brand); }
.f2-ends { display: flex; justify-content: space-between; font-size: 11px; color: var(--faint); }
.f2-bar { display: flex; height: 10px; border-radius: 5px; overflow: hidden; gap: 2px; margin: 12px 0 8px; background: var(--bg); }
.f2-bar span { display: block; height: 100%; transition: width .3s; }
.f2-bar .rw, .f2-leg i.rw { background: var(--brand); }
.f2-bar .bn, .f2-leg i.bn { background: linear-gradient(90deg, #f5b638, #c9302c); }
.f2-leg { display: flex; justify-content: space-between; font-size: 12.5px; color: var(--muted); }
.f2-leg span { display: inline-flex; align-items: center; gap: 6px; }
.f2-leg i { width: 9px; height: 9px; border-radius: 2px; }
.f2-leg b { color: var(--text); }
.f2-side { display: grid; gap: 10px; justify-items: start; }
.f2-side p { font-size: 13px; color: var(--muted); line-height: 1.6; margin: 0; }
.f2-side p b { color: var(--text); }
@media (max-width: 900px) {
  .f2 { padding: 18px; }
  .f2-grid { grid-template-columns: minmax(0, 1fr); }
  .f2-nodes:not(.last)::after { display: none; }
  .f2-nodes[data-i="0"] { order: 0; } .f2-cap[data-i="0"] { order: 1; } .f2-nodes[data-i="1"] { order: 2; } .f2-cap[data-i="1"] { order: 3; }
  .f2-nodes[data-i="2"] { order: 4; } .f2-cap[data-i="2"] { order: 5; } .f2-nodes[data-i="3"] { order: 6; } .f2-cap[data-i="3"] { order: 7; }
  .f2-cap { padding: 10px 2px 22px; }
  .f2-foot { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}

/* CargoX mascot runner (V2.runnerSvg): add .run on it or an ancestor to make it run. */
.mascot { display: block; overflow: visible; }
.mascot .lg { transform-box: view-box; }
.mascot .l1 { transform-origin: 15px 31px; } .mascot .l2 { transform-origin: 25px 31px; }
.run .mascot .l1, .mascot.run .l1 { animation: mascot-leg .3s ease-in-out infinite alternate; }
.run .mascot .l2, .mascot.run .l2 { animation: mascot-leg .3s ease-in-out infinite alternate-reverse; }
.run .mascot, .mascot.run { animation: mascot-bob .15s ease-in-out infinite alternate; }
@keyframes mascot-leg { from { transform: rotate(-28deg); } to { transform: rotate(28deg); } }
@keyframes mascot-bob { from { transform: translateY(0); } to { transform: translateY(-2px); } }
@media (prefers-reduced-motion: reduce) { .run .mascot, .mascot.run, .run .mascot .lg, .mascot.run .lg { animation: none; } }
