/* InsideEdges — terminal */
body.term { font-size: 13px; overflow-x: hidden; }
.term .panel {
  border-radius: 14px; padding: 13px 14px 14px; min-width: 0;
  background: linear-gradient(165deg, rgba(255,255,255,.04), rgba(255,255,255,.006) 45%), var(--glass);
  backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--stroke); position: relative;
  box-shadow: 0 1px 0 rgba(255,255,255,.05) inset, 0 18px 40px -22px rgba(0,0,0,.8);
  animation: panelIn .6s var(--ease) both;
}
.term .panel::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px; pointer-events: none;
  background: linear-gradient(150deg, rgba(126,232,255,.28), transparent 28%, transparent 75%, rgba(78,248,185,.16));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}
@keyframes panelIn { from { opacity: 0; transform: translateY(14px) scale(.985); filter: blur(4px); } }
.ptitle { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.3px; color: var(--text-dim); margin-bottom: 11px; display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 22px; }
.ptitle .l { display: flex; align-items: center; gap: 8px; }
.ptitle .r { display: flex; align-items: center; gap: 6px; }
.seg { display: inline-flex; border: 1px solid var(--stroke); border-radius: 7px; overflow: hidden; background: rgba(3,8,13,.4); }
.seg button { border: 0; background: none; color: var(--text-dim); font-family: var(--mono); font-size: 10px; letter-spacing: .6px; padding: 0 9px; min-height: 26px; cursor: pointer; transition: color .15s, background .15s; }
.seg button:hover { color: var(--text); }
.seg button[aria-pressed="true"] { color: var(--cyan); background: rgba(30,200,253,.1); box-shadow: inset 0 -1.5px 0 var(--cyan); }
.mini-btn { border: 1px solid var(--stroke); background: rgba(3,8,13,.4); color: var(--text-dim); font-family: var(--mono); font-size: 10px; padding: 0 9px; min-height: 26px; border-radius: 7px; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.mini-btn:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.mini-btn svg { width: 13px; height: 13px; }

/* ---------- Shell ---------- */
.shell { max-width: 1840px; margin: 0 auto; padding: 12px 14px 0; }
.thead { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 10px 14px; border-radius: 14px; margin-bottom: 12px; z-index: 40; } /* above the glass panels so the user menu isn't covered */
.thead .left { display: flex; align-items: center; gap: 14px; min-width: 0; }
.thead .co { border-left: 1px solid var(--stroke); padding-left: 14px; min-width: 0; }
.thead .co b { display: block; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 260px; }
.thead .co span { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 1px; }
.status { display: flex; align-items: center; gap: 18px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.status .it { display: flex; align-items: center; gap: 7px; white-space: nowrap; }
.status .it b { color: var(--text); font-weight: 600; }
.conn.off .live-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.clocks { display: flex; gap: 2px; }
.clock { padding: 3px 8px; border-radius: 6px; text-align: center; line-height: 1.25; }
.clock small { display: block; font-size: 9px; letter-spacing: 1px; color: var(--text-faint); }
.clock b { font-size: 11.5px; color: var(--text-dim); font-weight: 500; }
.clock.open small { color: var(--green); }
.clock.open b { color: var(--text); }
.clock.utc b { color: var(--cyan); font-weight: 600; }
.actions { display: flex; align-items: center; gap: 8px; }
.search-btn { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 10px 0 12px; border-radius: 10px; border: 1px solid var(--stroke); background: rgba(3,8,13,.45); color: var(--text-faint); cursor: pointer; font-size: 12.5px; min-width: 200px; }
.search-btn:hover { border-color: var(--cyan-dim); color: var(--text-dim); }
.search-btn kbd { margin-left: auto; font-family: var(--mono); font-size: 10px; border: 1px solid var(--stroke); border-radius: 5px; padding: 1px 6px; color: var(--text-dim); }
.search-btn svg { width: 15px; height: 15px; }
.user-btn { display: flex; align-items: center; gap: 9px; border: 1px solid var(--stroke); background: rgba(3,8,13,.45); border-radius: 10px; min-height: 40px; padding: 0 10px 0 5px; cursor: pointer; }
.user-btn:hover { border-color: var(--cyan-dim); }
.avatar { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 12px; color: #021016; background: linear-gradient(135deg, var(--cyan-2), var(--amber)); }
.user-btn span { font-size: 12px; text-align: left; line-height: 1.2; }
.user-btn span small { display: block; color: var(--text-faint); font-family: var(--mono); font-size: 10px; }
.menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; padding: 6px; border-radius: 12px; z-index: 60; background: linear-gradient(165deg, rgba(20,38,52,.98), rgba(7,14,21,.985)); /* nested blur can't see the page, so stay opaque */ backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke-strong); box-shadow: 0 20px 50px -10px rgba(0,0,0,.8); animation: pop .18s var(--ease); max-height: calc(100dvh - 110px); overflow-y: auto; }
.menu a, .menu button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 40px; padding: 0 12px; border-radius: 8px; border: 0; background: none; color: var(--text); font-size: 13px; cursor: pointer; text-align: left; }
.menu a:hover, .menu button:hover { background: rgba(30,200,253,.08); color: var(--cyan); }
.menu hr { border: 0; border-top: 1px solid var(--stroke-soft); margin: 5px 0; }
.menu .danger { color: #ff9aa7; }
.menu .row { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 12px; font-size: 12.5px; color: var(--text-dim); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 100%; height: 100%; position: absolute; cursor: pointer; margin: 0; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 11px; background: rgba(255,255,255,.1); transition: background .2s; }
.switch i::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--text-dim); transition: transform .2s var(--ease), background .2s; }
.switch input:checked + i { background: rgba(30,200,253,.35); }
.switch input:checked + i::after { transform: translateX(16px); background: var(--cyan); box-shadow: 0 0 8px var(--cyan); }
.switch input:focus-visible + i { outline: 2px solid var(--cyan); outline-offset: 2px; }
input[type=range] { accent-color: var(--cyan); width: 110px; }

/* ---------- Grid ---------- */
.tgrid { display: grid; grid-template-columns: 300px minmax(0, 1fr) 318px; gap: 12px; align-items: start; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.row2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
@media (max-width: 1440px) { .tgrid { grid-template-columns: 280px minmax(0, 1fr) 296px; } .clocks .clock:nth-child(n+5):not(.utc) { display: none; } }
@media (max-width: 1240px) {
  .tgrid { grid-template-columns: 280px minmax(0, 1fr); }
  .tgrid > .col.right { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
  .status .clocks { display: none; }
}
@media (max-width: 900px) {
  .tgrid { grid-template-columns: 1fr; }
  .row2 { grid-template-columns: 1fr; }
  .status .hide-md, .search-btn span, .search-btn kbd { display: none; }
  .search-btn { min-width: 0; width: 40px; padding: 0; justify-content: center; }
  .user-btn span { display: none; }
}
@media (max-width: 560px) { .thead .co { display: none; } .status { display: none; } .shell { padding: 8px 8px 0; } .thead { padding: 8px 10px; } .actions { gap: 5px; } .thead .brand-word { letter-spacing: 1px; font-size: 12px; } .thead .brand { gap: 8px; } .icon-btn, .search-btn { width: 38px; height: 38px; } }

/* ---------- Watchlist ---------- */
.wl-tabs { display: flex; gap: 4px; margin-bottom: 8px; flex-wrap: wrap; }
.wl-tabs button { border: 1px solid transparent; background: none; color: var(--text-faint); font-family: var(--mono); font-size: 10px; letter-spacing: .6px; padding: 5px 8px; border-radius: 6px; cursor: pointer; min-height: 28px; }
.wl-tabs button:hover { color: var(--text); }
.wl-tabs button[aria-selected="true"] { color: var(--cyan); border-color: var(--cyan-dim); background: rgba(30,200,253,.07); }
.wl { max-height: 360px; overflow-y: auto; margin: 0 -6px; scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; }
.wl-row { display: grid; grid-template-columns: 16px 1fr 54px auto; align-items: center; gap: 8px; padding: 7px 6px; border-radius: 7px; cursor: pointer; font-family: var(--mono); position: relative; transition: background .15s; }
.wl-row:hover { background: rgba(255,255,255,.035); }
.wl-row.sel { background: rgba(30,200,253,.08); box-shadow: inset 2px 0 0 var(--cyan); }
.wl-row .star { width: 16px; height: 16px; border: 0; background: none; color: var(--text-faint); cursor: pointer; padding: 0; font-size: 12px; line-height: 1; }
.wl-row .star.on { color: var(--amber); text-shadow: 0 0 6px rgba(245,168,60,.6); }
.wl-row .nm { font-size: 11.5px; font-weight: 600; color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wl-row .nm small { display: block; font-size: 9px; color: var(--text-faint); font-weight: 400; letter-spacing: .6px; }
.wl-row svg.spark { width: 54px; height: 20px; }
.wl-row .px { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }
.wl-row .px b { display: block; font-weight: 500; padding: 1px 4px; border-radius: 4px; transition: background .5s; }
.wl-row .px small { font-size: 10px; }
.flash-up { background: rgba(61,220,151,.25) !important; transition: none !important; }
.flash-dn { background: rgba(240,87,107,.25) !important; transition: none !important; }
.livebadge { font-size: 8px; color: var(--green); border: 1px solid #1c6b4a; padding: 0 3px; border-radius: 3px; margin-left: 4px; vertical-align: 1px; letter-spacing: .5px; }

/* ---------- News ---------- */
.news { max-height: 300px; overflow-y: auto; margin-right: -6px; padding-right: 6px; scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; }
.news-row { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px solid var(--stroke-soft); }
.news-row:last-child { border-bottom: 0; }
.news-row.fresh { animation: newsIn .7s var(--ease); }
.news-row.fresh .news-text { color: var(--cyan-2); }
@keyframes newsIn { from { opacity: 0; transform: translateX(-12px); background: rgba(30,200,253,.12); } }
.impact { flex: none; width: 7px; height: 7px; border-radius: 50%; margin-top: 5px; }
.impact.high { background: var(--red); box-shadow: 0 0 7px var(--red); }
.impact.med { background: var(--amber); box-shadow: 0 0 7px var(--amber); }
.impact.low { background: var(--green); box-shadow: 0 0 7px var(--green); }
.news-text { font-size: 12.5px; line-height: 1.42; color: var(--text); transition: color 2s; }
.news-meta { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); margin-top: 3px; letter-spacing: .4px; }

/* ---------- Meters ---------- */
.meters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 4px; }
.meter { display: grid; place-items: center; position: relative; }
.meter svg { width: 66px; height: 66px; transform: rotate(-90deg); }
.meter svg circle.v { transition: stroke-dashoffset .9s var(--ease); }
.meter .mv { position: absolute; top: 0; height: 66px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; font-size: 15px; }
.meter .ml { font-family: var(--mono); font-size: 10px; color: var(--text-dim); letter-spacing: .6px; margin-top: 2px; }

/* ---------- Map ---------- */
.map-panel { padding-bottom: 12px; }
.map-wrap { position: relative; border-radius: 10px; overflow: hidden; background: radial-gradient(ellipse at 50% 45%, #0b1d2b 0%, #050b12 75%); aspect-ratio: 2.35 / 1; min-height: 300px; cursor: grab; touch-action: none; }
.map-wrap.drag { cursor: grabbing; }
.map-wrap svg { width: 100%; height: 100%; display: block; }
.map-wrap::after { content: ''; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 50px 12px rgba(0,0,0,.55); border-radius: 10px; }
.map-scan { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(90deg, transparent, rgba(30,200,253,.07) 50%, transparent); width: 30%; animation: scan 9s linear infinite; mix-blend-mode: screen; }
@keyframes scan { from { transform: translateX(-100%); } to { transform: translateX(430%); } }
.country { fill: #0f2232; stroke: #1c4256; stroke-width: .45; transition: fill .8s; vector-effect: non-scaling-stroke; }
.country:hover { fill: #1a3b50; stroke: var(--cyan); stroke-width: .9; }
.country.hub { fill: #12304a; }
.graticule { fill: none; stroke: rgba(120,190,230,.06); stroke-width: .5; vector-effect: non-scaling-stroke; }
.night { fill: rgba(0,4,10,.42); pointer-events: none; }
.hub-dot { fill: var(--cyan); }
.hub-dot.closed { fill: #3d5a6b; }
.hub-ring { fill: none; stroke: var(--cyan); stroke-width: 1; vector-effect: non-scaling-stroke; }
.hub-g { cursor: pointer; }
.hub-g text { font-family: var(--mono); font-size: 8.5px; fill: #a9c9d8; pointer-events: none; paint-order: stroke; stroke: rgba(3,8,13,.85); stroke-width: 2.5px; }
.hub-g text.chg { font-size: 7.5px; font-weight: 600; }
.hub-g.exch text.city { fill: var(--cyan); font-weight: 700; }
.hub-g:hover .hub-dot { fill: #fff; }
.flow-arc { fill: none; stroke-width: 1.4; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.map-tip { position: absolute; pointer-events: none; z-index: 5; padding: 9px 11px; border-radius: 9px; font-family: var(--mono); font-size: 11px; min-width: 150px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke-strong); opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; }
.map-tip.show { opacity: 1; transform: none; }
.map-tip b { display: block; font-family: var(--sans); font-size: 12.5px; margin-bottom: 4px; }
.map-tip .r { display: flex; justify-content: space-between; gap: 14px; color: var(--text-dim); }
.flow-log { position: absolute; left: 10px; bottom: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; pointer-events: none; max-width: 52%; }
.flow-log div { font-family: var(--mono); font-size: 10px; padding: 4px 8px; border-radius: 6px; background: rgba(3,8,13,.72); border: 1px solid var(--stroke); color: var(--text-dim); animation: flowIn .5s var(--ease); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.flow-log div b { color: var(--amber); font-weight: 600; }
@keyframes flowIn { from { opacity: 0; transform: translateY(8px); } }
.map-legend { position: absolute; right: 10px; bottom: 10px; z-index: 3; font-family: var(--mono); font-size: 9.5px; color: var(--text-dim); padding: 6px 9px; border-radius: 7px; background: rgba(3,8,13,.72); border: 1px solid var(--stroke); display: flex; align-items: center; gap: 8px; }
.map-legend .grad { width: 80px; height: 6px; border-radius: 3px; background: linear-gradient(90deg, #f0576b, #1a2c3a, #3ddc97); }
.map-zoom { position: absolute; right: 10px; top: 10px; z-index: 3; display: flex; flex-direction: column; gap: 4px; }
.map-zoom button { width: 30px; height: 30px; border-radius: 7px; border: 1px solid var(--stroke); background: rgba(3,8,13,.72); color: var(--text-dim); cursor: pointer; font-family: var(--mono); font-size: 14px; }
.map-zoom button:hover { color: var(--cyan); border-color: var(--cyan-dim); }

/* ---------- Chart ---------- */
.chart-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 10px; flex-wrap: wrap; }
.sym-big { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.sym-big h2 { font-family: var(--mono); font-size: 15px; font-weight: 600; letter-spacing: .5px; }
.sym-big .p { font-family: var(--mono); font-size: 24px; font-weight: 700; font-variant-numeric: tabular-nums; transition: color .3s; }
.sym-big .c { font-family: var(--mono); font-size: 12.5px; font-weight: 600; }
.sym-big .hl { font-family: var(--mono); font-size: 10.5px; color: var(--text-faint); }
.chart-tools { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
#chart { height: 360px; position: relative; }
@media (max-width: 900px) { #chart { height: 300px; } }
.chart-legend { position: absolute; left: 8px; top: 6px; z-index: 3; font-family: var(--mono); font-size: 10.5px; color: var(--text-dim); pointer-events: none; display: flex; gap: 12px; flex-wrap: wrap; }
.chart-legend b { font-weight: 500; }

/* ---------- Heat / correlation ---------- */
.heat { width: 100%; border-collapse: separate; border-spacing: 3px; font-family: var(--mono); font-size: 10.5px; }
.heat th { color: var(--text-dim); font-weight: 500; padding: 3px; text-align: center; font-size: 10px; }
.heat td { text-align: center; padding: 7px 2px; font-weight: 700; border-radius: 4px; transition: background .9s, color .9s; }
.heat td.rh { color: var(--text-dim); background: none !important; text-align: left; font-weight: 600; }
.movers { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
.mover { padding: 7px 6px; border-radius: 6px; font-family: var(--mono); cursor: pointer; transition: background .8s, transform .15s; min-height: 44px; }
.mover:hover { transform: scale(1.04); outline: 1px solid rgba(255,255,255,.25); }
.mover b { display: block; font-size: 10px; letter-spacing: .3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: rgba(255,255,255,.92); }
.mover span { font-size: 11px; font-weight: 700; color: #fff; }

/* ---------- Right column ---------- */
.book { font-family: var(--mono); font-size: 11px; }
.book-row { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 2.5px 6px; position: relative; font-variant-numeric: tabular-nums; }
.book-row span { position: relative; z-index: 1; } .book-row span:nth-of-type(2), .book-row span:nth-of-type(3) { text-align: right; }
.book-row i { position: absolute; top: 1px; bottom: 1px; right: 0; border-radius: 2px; transition: width .4s var(--ease); }
.book-row.ask i { background: rgba(240,87,107,.16); } .book-row.bid i { background: rgba(61,220,151,.14); }
.book-row.ask span:first-child { color: var(--red); } .book-row.bid span:first-child { color: var(--green); }
.book-hd { display: grid; grid-template-columns: 1fr 1fr 1fr; padding: 0 6px 5px; color: var(--text-faint); font-size: 9.5px; letter-spacing: .8px; }
.book-hd span:nth-child(n+2) { text-align: right; }
.book-mid { text-align: center; padding: 6px; margin: 3px 0; border-block: 1px solid var(--stroke-soft); font-weight: 700; font-size: 13px; }
.book-mid small { color: var(--text-faint); font-weight: 400; font-size: 10px; margin-left: 8px; }

.gauge { display: flex; flex-direction: column; align-items: center; }
.gauge svg { width: 100%; max-width: 250px; }
.gauge .needle { transition: transform 1.2s cubic-bezier(.3, 1.5, .5, 1); transform-origin: 100px 100px; }
.gauge .gv { font-family: var(--mono); font-size: 26px; font-weight: 700; margin-top: 2px; line-height: 1; }
.gauge .gl { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; margin-top: 2px; }

.cal { display: flex; flex-direction: column; max-height: 280px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; margin-right: -6px; padding-right: 6px; }
.cal-row { display: grid; grid-template-columns: 42px 34px 1fr auto; gap: 8px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--stroke-soft); font-family: var(--mono); font-size: 10.5px; }
.cal-row.past { opacity: .5; }
.cal-row.next { background: linear-gradient(90deg, rgba(30,200,253,.1), transparent); border-radius: 6px; padding-left: 6px; margin-left: -6px; opacity: 1; }
.cal-row .t { color: var(--text-dim); }
.cal-row .cc { font-weight: 700; color: var(--text); }
.cal-row .ti { font-family: var(--sans); font-size: 11.5px; color: var(--text); line-height: 1.3; display: flex; align-items: center; gap: 6px; }
.cal-row .fa { text-align: right; color: var(--text-faint); white-space: nowrap; }
.cal-row .fa b { color: var(--text); font-weight: 600; }
.countdown { font-family: var(--mono); color: var(--amber); font-size: 10.5px; }

.asset-tabs { display: flex; gap: 5px; margin-bottom: 8px; flex-wrap: wrap; }
.price-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 6px; }
.price-now { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.price-chg { font-family: var(--mono); font-size: 11px; font-weight: 600; }
.oi-label { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); margin-top: 6px; display: flex; justify-content: space-between; }
.stack-bar { display: flex; width: 100%; height: 12px; border-radius: 4px; overflow: hidden; margin: 4px 0 10px; }
.stack-bar div { transition: width 1.2s var(--ease); }
.legend { display: flex; flex-direction: column; gap: 6px; }
.legend-row { display: flex; align-items: center; justify-content: space-between; font-family: var(--mono); font-size: 11px; }
.legend-row .l { display: flex; align-items: center; gap: 7px; color: var(--text-dim); }
.swatch { width: 8px; height: 8px; border-radius: 2px; }
.bias-line { margin-top: 11px; padding-top: 10px; border-top: 1px solid var(--stroke-soft); display: flex; justify-content: space-between; align-items: center; font-family: var(--mono); font-size: 11px; }
.donut-row { display: flex; align-items: center; gap: 16px; }
.donut { width: 84px; height: 84px; border-radius: 50%; flex: none; position: relative; transition: background 1s; }
.donut::after { content: ''; position: absolute; inset: 13px; border-radius: 50%; background: #08121b; box-shadow: inset 0 0 12px rgba(0,0,0,.6); }

/* ---------- Footer ticker ---------- */
.ticker-wrap { margin: 12px -14px 0; border-top: 1px solid var(--stroke-soft); background: rgba(3,7,11,.75); backdrop-filter: blur(10px); overflow: hidden; white-space: nowrap; padding: 9px 0; mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.ticker-track { display: inline-block; animation: tscroll 70s linear infinite; font-family: var(--mono); font-size: 11.5px; }
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
.ticker-track > span { padding: 0 20px; color: var(--text-dim); }
.ticker-track b { color: var(--text); font-weight: 600; margin-right: 6px; }
@keyframes tscroll { to { transform: translateX(-50%); } }
.tfoot { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-family: var(--mono); font-size: 10px; color: var(--text-faint); padding: 9px 2px 14px; letter-spacing: .4px; }

/* ---------- Boot overlay ---------- */
.boot { position: fixed; inset: 0; z-index: 300; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 40%, rgba(8,24,36,.92), rgba(2,5,9,.98)); backdrop-filter: blur(10px); transition: opacity .6s, visibility .6s; }
.boot.done { opacity: 0; visibility: hidden; }
.boot-box { width: min(560px, 100% - 32px); }
.boot-box .brand { margin-bottom: 26px; }
.boot-lines { font-family: var(--mono); font-size: 12.5px; color: var(--text-dim); min-height: 180px; display: flex; flex-direction: column; gap: 6px; }
.boot-lines div { animation: flowIn .25s var(--ease); }
.boot-lines .ok { color: var(--green); }
.boot-lines .hl { color: var(--cyan); }
.boot-bar { height: 3px; border-radius: 2px; background: rgba(255,255,255,.06); overflow: hidden; margin: 20px 0 24px; }
.boot-bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--mint), var(--sky), var(--blue)); box-shadow: 0 0 12px var(--cyan); transition: width .35s var(--ease); }
.boot .btn { opacity: 0; transform: translateY(8px); transition: opacity .4s, transform .4s var(--ease); }
.boot .btn.show { opacity: 1; transform: none; }

/* ---------- Palette + drawer ---------- */
.palette { position: fixed; inset: 0; z-index: 150; background: rgba(1,4,7,.55); backdrop-filter: blur(5px); display: flex; justify-content: center; align-items: flex-start; padding: 12vh 16px 16px; animation: fade .15s; }
.palette-box { width: min(620px, 100%); border-radius: 16px; overflow: hidden; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border: 1px solid var(--stroke-strong); box-shadow: 0 30px 80px -10px rgba(0,0,0,.9), 0 0 0 1px rgba(30,200,253,.1); animation: pop .2s var(--ease); }
.palette-box input { width: 100%; border: 0; border-bottom: 1px solid var(--stroke); background: transparent; padding: 18px 20px; font-size: 16px; outline: none; color: var(--text); }
.palette-list { max-height: 50vh; overflow-y: auto; padding: 6px; }
.pal-item { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; border-radius: 9px; cursor: pointer; min-height: 44px; }
.pal-item[aria-selected="true"] { background: rgba(30,200,253,.1); }
.pal-item .k { font-family: var(--mono); font-size: 10px; color: var(--text-faint); letter-spacing: 1px; text-transform: uppercase; }
.pal-item b { font-weight: 500; font-size: 13.5px; }
.pal-item .px { font-family: var(--mono); font-size: 12px; }
.pal-empty { padding: 26px; text-align: center; color: var(--text-faint); }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(400px, 100%); z-index: 140; padding: 20px; overflow-y: auto; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur); border-left: 1px solid var(--stroke-strong); box-shadow: -30px 0 80px -20px rgba(0,0,0,.8); transform: translateX(105%); transition: transform .3s var(--ease); }
.drawer.open { transform: none; }
.drawer h3 { font-size: 16px; display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.alert-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding: 14px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(3,8,13,.4); margin-bottom: 18px; }
.alert-form .full { grid-column: 1 / -1; }
.alert-form .field input, .alert-form .field select { min-height: 40px; font-size: 13.5px; padding: 8px 12px; }
.alert-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px solid var(--stroke-soft); font-family: var(--mono); font-size: 12px; }
.alert-item.hit { opacity: .55; }
.alert-item small { display: block; color: var(--text-faint); font-size: 10px; margin-top: 2px; }
.empty { color: var(--text-faint); text-align: center; padding: 24px 8px; font-size: 12.5px; }

/* ---------- EDGE voice HUD ---------- */
.vhud { position: fixed; left: 50%; bottom: 54px; z-index: 160; display: flex; align-items: center; gap: 14px; width: min(640px, calc(100vw - 24px));
  padding: 12px 14px; border-radius: 18px; background: var(--glass-strong); backdrop-filter: var(--blur); -webkit-backdrop-filter: var(--blur);
  border: 1px solid rgba(30,200,253,.35); box-shadow: 0 0 0 1px rgba(30,200,253,.08), 0 0 40px -6px rgba(30,200,253,.45), 0 24px 60px -18px rgba(0,0,0,.9);
  transform: translate(-50%, 24px) scale(.96); opacity: 0; pointer-events: none; transition: opacity .25s var(--ease), transform .3s var(--ease); }
.vhud.on { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.reactor { position: relative; width: 46px; height: 46px; flex: none; }
.reactor i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--cyan); border-bottom-color: rgba(30,200,253,.35); animation: spin 1.6s linear infinite; }
.reactor i:nth-child(2) { inset: 6px; border-top-color: var(--amber); border-bottom-color: transparent; border-left-color: rgba(245,168,60,.4); animation-duration: 2.4s; animation-direction: reverse; }
.reactor i:nth-child(3) { inset: 12px; border-color: rgba(126,232,255,.5); border-style: dashed; animation-duration: 4s; }
.reactor b { position: absolute; inset: 17px; border-radius: 50%; background: radial-gradient(circle, #fff, var(--cyan) 55%, transparent 75%); box-shadow: 0 0 16px var(--cyan); animation: core 1.1s ease-in-out infinite; }
@keyframes core { 50% { transform: scale(.75); opacity: .7; } }
.vtext { flex: 1; min-width: 0; }
.vtext small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 2px; color: var(--cyan); margin-bottom: 2px; }
.vtext span { font-size: 13.5px; line-height: 1.4; color: var(--text); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.vtext mark { background: rgba(30,200,253,.22); color: #fff; border-radius: 3px; padding: 0 2px; }
.vwave { display: flex; align-items: center; gap: 2px; height: 30px; flex: none; }
.vwave i { width: 3px; border-radius: 2px; background: linear-gradient(var(--cyan-2), var(--cyan)); height: 20%; animation: wave .9s ease-in-out infinite; }
.vwave i:nth-child(odd) { animation-duration: .7s; } .vwave i:nth-child(3n) { animation-duration: 1.15s; background: linear-gradient(#ffd08a, var(--amber)); }
.vwave i:nth-child(2) { animation-delay: -.2s } .vwave i:nth-child(4) { animation-delay: -.5s } .vwave i:nth-child(5) { animation-delay: -.35s } .vwave i:nth-child(7) { animation-delay: -.6s } .vwave i:nth-child(9) { animation-delay: -.15s } .vwave i:nth-child(11) { animation-delay: -.45s } .vwave i:nth-child(13) { animation-delay: -.25s }
@keyframes wave { 50% { height: 100%; } }
.vstop { width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--stroke); background: none; color: var(--text-dim); cursor: pointer; flex: none; }
.vstop:hover { color: var(--text); border-color: var(--cyan-dim); }
@media (max-width: 560px) { .vwave { display: none; } .vhud { bottom: 46px; } }
.voice-btn.on { color: var(--cyan); border-color: var(--cyan-dim); box-shadow: 0 0 14px -4px rgba(30,200,253,.7); }
.news-row, .cal-row, .meter, .gauge, .heat td:not(.rh), .clock, .book-mid, #cSym { cursor: pointer; }
.news-row:hover .news-text { color: var(--cyan-2); }
.cal-row:hover { background: rgba(255,255,255,.03); }
.meter:hover .ml { color: var(--cyan); }
.speaking-flash { animation: speakFlash .9s var(--ease); }
@keyframes speakFlash { 0% { box-shadow: 0 0 0 0 rgba(30,200,253,.55); } 100% { box-shadow: 0 0 0 10px rgba(30,200,253,0); } }
.ptitle .l { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ptitle .tag, .ptitle .r { flex: none; white-space: nowrap; }

/* ---------- Voice settings ---------- */
.modal.vset { width: min(760px, 100%); }
.vgroups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.vgroup h4 { font-family: var(--mono); font-size: 10.5px; letter-spacing: 1.5px; color: var(--text-dim); font-weight: 500; margin-bottom: 8px; }
.vopt { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 8px 8px 8px 12px; margin-bottom: 6px; border-radius: 11px; border: 1px solid var(--stroke); background: rgba(3,8,13,.45); cursor: pointer; text-align: left; transition: border-color .15s, box-shadow .15s, background .15s; }
.vopt:hover { border-color: var(--cyan-dim); }
.vopt[aria-checked="true"] { border-color: var(--cyan); background: rgba(30,200,253,.08); box-shadow: 0 0 0 1px var(--cyan), 0 0 18px -6px rgba(30,200,253,.6); }
.vopt .dot { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--text-faint); flex: none; display: grid; place-items: center; }
.vopt[aria-checked="true"] .dot { border-color: var(--cyan); }
.vopt[aria-checked="true"] .dot::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.vopt .nm { flex: 1; min-width: 0; }
.vopt .nm b { display: block; font-size: 14px; font-weight: 600; }
.vopt .nm small { font-size: 11.5px; color: var(--text-faint); font-family: var(--mono); }
.vplay { width: 36px; height: 36px; border-radius: 9px; border: 1px solid var(--stroke); background: rgba(255,255,255,.03); color: var(--text-dim); display: grid; place-items: center; cursor: pointer; flex: none; }
.vplay:hover { color: var(--cyan); border-color: var(--cyan-dim); }
.vplay svg { width: 13px; height: 13px; }
.vrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 14px 0; border-top: 1px solid var(--stroke-soft); flex-wrap: wrap; }
.vrow .lbl b { display: block; font-size: 14px; } .vrow .lbl small { color: var(--text-dim); font-size: 12.5px; }
.vspeed { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vspeed .seg button { min-height: 34px; padding: 0 14px; font-size: 11px; }
.vspeed input[type=range] { width: 150px; }
.vspeed output { font-family: var(--mono); font-size: 13px; color: var(--cyan); min-width: 48px; text-align: right; }
.vnote { font-size: 12px; color: var(--text-faint); margin-top: 6px; }
@media (max-width: 640px) { .vgroups { grid-template-columns: 1fr; } }

.flow-hit { fill: none; stroke: transparent; stroke-width: 12; pointer-events: stroke; cursor: pointer; vector-effect: non-scaling-stroke; }
.flow-log { pointer-events: auto; }
.flow-log div { cursor: pointer; pointer-events: auto; }
.flow-log div:hover { border-color: var(--cyan-dim); color: var(--text); }

/* ---------- Real-data states ---------- */
.offbadge { font-size: 8px; color: var(--amber); border: 1px solid #6b4d1e; padding: 0 4px; border-radius: 3px; margin-left: 5px; vertical-align: 1px; letter-spacing: .3px; font-weight: 500; white-space: nowrap; }
.wl-row.stale .px b, .mover.stale { opacity: .62; }
.feed-notice { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; font-size: 12.5px; color: #ffd9a0; background: rgba(245,168,60,.08); border: 1px solid rgba(245,168,60,.3); }
.feed-notice b { color: var(--amber); }
.chart-note { position: absolute; right: 64px; top: 6px; z-index: 3; font-family: var(--mono); font-size: 10.5px; color: #ffd9a0; background: rgba(40,26,6,.78); border: 1px solid rgba(245,168,60,.35); padding: 4px 9px; border-radius: 6px; pointer-events: none; max-width: 70%; }
.panel-note { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); margin-top: 8px; letter-spacing: .3px; }
.news-link { color: var(--cyan-dim); } .news-link:hover { color: var(--cyan); }
.cal-day { font-family: var(--mono); font-size: 9.5px; letter-spacing: 1.4px; color: var(--cyan); padding: 8px 0 2px; }
.tob { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; cursor: pointer; }
.tob div { padding: 10px; border-radius: 9px; border: 1px solid var(--stroke); background: rgba(3,8,13,.4); text-align: center; }
.tob small { display: block; font-family: var(--mono); font-size: 9.5px; letter-spacing: 1px; color: var(--text-faint); margin-bottom: 3px; }
.tob b { font-family: var(--mono); font-size: 14px; font-variant-numeric: tabular-nums; }
.book-note { font-size: 11.5px; color: var(--text-dim); margin: 10px 0 6px; line-height: 1.4; }
.tape { font-family: var(--mono); font-size: 11px; max-height: 210px; overflow: hidden; }
.tape div { display: flex; justify-content: space-between; padding: 3px 4px; border-bottom: 1px solid var(--stroke-soft); animation: flowIn .3s var(--ease); }
.tape div span:first-child { color: var(--text-faint); }
.cot-sel { min-height: 36px !important; padding: 6px 30px 6px 10px !important; font-size: 13px !important; }
.cot-row { margin-bottom: 11px; cursor: pointer; }
.cot-lbl { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12px; color: var(--text-dim); }
.cot-lbl span { display: flex; align-items: center; gap: 7px; }
.cot-lbl b { font-family: var(--mono); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.cot-bar { position: relative; height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); margin: 5px 0 3px; overflow: hidden; }
.cot-bar .mid { position: absolute; left: 50%; top: -2px; bottom: -2px; width: 1px; background: var(--stroke-strong); }
.cot-bar i { position: absolute; top: 0; bottom: 0; border-radius: 3px; transition: width .6s var(--ease); }
.cot-sub { font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); text-align: right; }
.cot-foot { display: flex; justify-content: space-between; gap: 8px; font-family: var(--mono); font-size: 9.5px; color: var(--text-faint); border-top: 1px solid var(--stroke-soft); padding-top: 8px; margin-top: 4px; flex-wrap: wrap; }
.flow-log .idle { color: var(--text-faint); border-style: dashed; cursor: default; }
#oiChart, #oiNow { cursor: pointer; }

/* ---------- Full-width glass capital-flow map ---------- */
.map-panel.full { margin-bottom: 12px; padding: 14px 16px 16px; }
.map-panel.full .map-wrap { aspect-ratio: auto; height: clamp(380px, 58vh, 680px); }
@media (max-width: 900px) { .map-panel.full .map-wrap { height: auto; aspect-ratio: 2.1 / 1; min-height: 220px; } }

.map-wrap {
  background:
    radial-gradient(ellipse at 50% 40%, rgba(30,200,253,.10), transparent 60%),
    linear-gradient(165deg, rgba(126,232,255,.07), rgba(6,14,22,.38) 35%, rgba(4,10,16,.62));
  backdrop-filter: blur(8px) saturate(150%); -webkit-backdrop-filter: blur(8px) saturate(150%);
  border: 1px solid rgba(126,232,255,.2);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), inset 0 0 90px rgba(30,200,253,.07), 0 24px 60px -30px rgba(0,0,0,.9);
  border-radius: 14px;
}
.map-wrap::before { /* glass sheen */
  content: ''; position: absolute; inset: 0; z-index: 2; pointer-events: none; border-radius: inherit;
  background:
    linear-gradient(118deg, rgba(255,255,255,.09) 0%, rgba(255,255,255,.025) 22%, transparent 42%, transparent 72%, rgba(126,232,255,.06) 100%),
    radial-gradient(ellipse 60% 30% at 18% 0%, rgba(255,255,255,.08), transparent 70%);
}
.map-wrap::after { border-radius: 14px; box-shadow: inset 0 0 60px 14px rgba(0,0,0,.45); }
.country { fill: rgba(42,96,126,.5); stroke: rgba(126,232,255,.38); }
.country.hub { fill: rgba(30,200,253,.24); }
.country:hover { fill: rgba(30,200,253,.28); stroke: var(--cyan); }
.graticule { stroke: rgba(126,232,255,.07); }

/* overlays as frosted glass */
.map-zoom button, .map-legend, .flow-log div, .map-tip {
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)), rgba(8,18,28,.42);
  backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%);
  border: 1px solid rgba(126,232,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.10), 0 8px 24px -10px rgba(0,0,0,.7);
}
.map-zoom { right: 14px; top: 14px; gap: 6px; }
.map-zoom button { width: 36px; height: 36px; border-radius: 10px; }
.map-zoom button:hover { background: rgba(30,200,253,.18); border-color: var(--cyan); color: #fff; }
.map-legend { right: 14px; bottom: 14px; padding: 7px 11px; border-radius: 9px; }
.flow-log { left: 14px; bottom: 14px; gap: 6px; max-width: 46%; }
.flow-log div { padding: 6px 11px; border-radius: 9px; font-size: 11px; }
.map-panel.full .hub-g text { font-size: 7.5px; }
.map-panel.full .hub-g text.chg { font-size: 6.8px; }

/* ---------- Glass tooltip + detail card (see-through, the map blurs behind) ---------- */
.map-tip, .map-card {
  background:
    linear-gradient(135deg, rgba(255,255,255,.16) 0%, rgba(255,255,255,.05) 38%, rgba(255,255,255,.02) 62%, rgba(126,232,255,.07) 100%),
    rgba(10,24,36,.18);
  backdrop-filter: blur(16px) saturate(190%) brightness(1.08); -webkit-backdrop-filter: blur(16px) saturate(190%) brightness(1.08);
  border: 1px solid rgba(255,255,255,.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.35), inset 0 -1px 0 rgba(255,255,255,.06), inset 0 0 24px rgba(126,232,255,.06), 0 18px 50px -12px rgba(0,0,0,.65);
  color: #f2f8fc; text-shadow: 0 1px 2px rgba(0,0,0,.55);
}
.map-tip { padding: 13px 16px; border-radius: 14px; font-size: 13px; min-width: 230px; max-width: 320px; line-height: 1.5; }
.map-tip b { font-size: 16px; margin-bottom: 7px; letter-spacing: .2px; }
.map-tip .r { color: rgba(226,237,244,.82); padding: 2px 0; }
.map-tip .r span:last-child { color: #fff; font-weight: 600; }

.map-card {
  position: absolute; z-index: 7; width: min(360px, calc(100% - 16px)); padding: 18px 20px 16px; border-radius: 20px;
  opacity: 0; pointer-events: none; transform: translateY(8px) scale(.96); transform-origin: top left;
  transition: opacity .2s var(--ease), transform .25s var(--ease); cursor: default;
}
.map-card.show { opacity: 1; pointer-events: auto; transform: none; }
.map-card::before { /* top-left glass glint */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(ellipse 70% 40% at 15% 0%, rgba(255,255,255,.22), transparent 70%);
}
.mc-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 12px; position: relative; }
.mc-head small, .mc-grid small { display: block; font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: rgba(126,232,255,.9); }
.mc-head h4 { font-family: var(--display); font-weight: 500; font-size: 24px; line-height: 1.15; margin-top: 3px; }
.mc-x { width: 34px; height: 34px; border-radius: 10px; border: 1px solid rgba(255,255,255,.22); background: rgba(255,255,255,.06); color: #fff; font-size: 18px; cursor: pointer; flex: none; }
.mc-x:hover { background: rgba(255,255,255,.14); }
.mc-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); margin-bottom: 12px; position: relative; }
.mc-sym { font-family: var(--mono); font-size: 12px; color: rgba(226,237,244,.8); width: 100%; }
.mc-price b { font-family: var(--mono); font-size: 30px; font-weight: 700; font-variant-numeric: tabular-nums; }
.mc-chg { font-family: var(--mono); font-size: 15px; font-weight: 700; }
.mc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 16px; position: relative; }
.mc-grid span { font-family: var(--mono); font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; }
.mc-session { grid-template-columns: repeat(3, 1fr); margin-bottom: 12px; padding: 10px 12px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.mc-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; position: relative; }
.mc-note, .mc-empty { font-size: 12px; color: rgba(226,237,244,.75); margin-top: 10px; position: relative; }

/* ---------- Map palette: muted backdrop, dark land, glowing borders ---------- */
.map-wrap {
  background:
    radial-gradient(ellipse at 50% 45%, rgba(40,60,72,.16), transparent 65%),
    linear-gradient(165deg, rgba(150,170,180,.04), rgba(8,12,16,.55) 35%, rgba(5,8,11,.78));
  backdrop-filter: blur(8px) saturate(70%); -webkit-backdrop-filter: blur(8px) saturate(70%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.07), inset 0 0 90px rgba(0,0,0,.35), 0 24px 60px -30px rgba(0,0,0,.9);
}
.map-scan { opacity: .45; }
.country { fill: rgba(6,13,19,.92); stroke: rgba(126,232,255,.62); stroke-width: .7; }
.country.hub { fill: rgba(9,22,31,.95); stroke: rgba(126,232,255,.8); }
.country:hover { fill: rgba(20,48,64,.95); stroke: #bff4ff; stroke-width: 1.2; }
#gCountries { filter: drop-shadow(0 0 1.6px rgba(30,200,253,.55)); }
.graticule { stroke: rgba(160,190,205,.05); }
.night { fill: rgba(0,0,0,.32); }
.mc-session span { font-size: 13px; white-space: nowrap; }
.hub-g:focus { outline: none; }
.hub-g:focus-visible .hub-dot { stroke: #fff; stroke-width: 1.5; }

/* ---------- Moving averages table ---------- */
.ma-panel { margin-top: 12px; }
.ma-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.ma-controls { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ma-controls .seg button { min-height: 32px; padding: 0 12px; font-size: 10.5px; }
.ma-tf select { min-height: 32px !important; padding: 4px 32px 4px 12px !important; font-size: 12.5px !important; width: auto; font-family: var(--mono); }
.ma-live { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; color: var(--green); letter-spacing: 1px; }
.ma-live.off { color: var(--amber); } .ma-live.off .live-dot { background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.ma-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid var(--stroke); }
.ma-table { width: 100%; border-collapse: collapse; font-family: var(--mono); font-size: 12.5px; min-width: 760px; }
.ma-table thead th { position: sticky; top: 0; text-align: right; padding: 10px 14px; font-size: 10.5px; letter-spacing: 1.2px; color: var(--text-dim); font-weight: 600; background: rgba(8,16,24,.85); border-bottom: 1px solid var(--stroke); }
.ma-table thead th:first-child { text-align: left; }
.ma-table tbody tr { cursor: pointer; transition: background .15s; }
.ma-table tbody tr:nth-child(even) { background: rgba(255,255,255,.015); }
.ma-table tbody tr:hover { background: rgba(30,200,253,.06); }
.ma-table tbody tr:focus-visible { outline: 2px solid var(--cyan); outline-offset: -2px; }
.ma-table tbody th { text-align: left; padding: 9px 14px; font-weight: 600; color: var(--text); white-space: nowrap; border-bottom: 1px solid var(--stroke-soft); font-family: var(--sans); font-size: 13px; }
.ma-table td { text-align: right; padding: 9px 14px; border-bottom: 1px solid var(--stroke-soft); white-space: nowrap; font-variant-numeric: tabular-nums; }
.ma-table td .v { color: var(--text); }
.ma-table td b { display: inline-block; min-width: 34px; margin-left: 10px; font-size: 11px; font-weight: 700; text-align: left; }
.ma-table td.buy b { color: var(--green); }
.ma-table td.sell b { color: var(--red); }
.ma-table td.na { color: var(--text-faint); }
.ma-table td.flip { animation: maFlip 1.2s var(--ease); }
@keyframes maFlip { 0% { background: rgba(245,168,60,.35); } 100% { background: transparent; } }
.ma-table tr.stale td .v { opacity: .6; }

/* ---------- Meeting 8-Oct changes ---------- */
/* Narrower watch list */
.tgrid { grid-template-columns: 240px minmax(0, 1fr) 318px; }
@media (max-width: 1440px) { .tgrid { grid-template-columns: 230px minmax(0, 1fr) 296px; } }
@media (max-width: 1240px) { .tgrid { grid-template-columns: 240px minmax(0, 1fr); } }
@media (max-width: 900px) { .tgrid { grid-template-columns: 1fr; } }
.wl-row { grid-template-columns: 14px minmax(0, 1fr) 38px auto; gap: 6px; padding: 7px 4px; }
.wl-row svg.spark { width: 38px; }
.wl-row .nm { font-size: 11px; }
.wl-row .px { font-size: 11.5px; }
.wl-tabs button { padding: 5px 6px; font-size: 9.5px; }

/* Map: inner glow on every coastline + border glow */
#gCountries { filter: url(#innerGlow) drop-shadow(0 0 1.4px rgba(30,200,253,.5)); }
/* War-affected countries */
.country.war { fill: rgba(120,14,28,.62); stroke: #ff5a6c; stroke-width: .9; filter: url(#warGlow); }
.country.war:hover { fill: rgba(170,22,40,.75); stroke: #ffc2c9; }
.war-legend { position: absolute; right: 14px; bottom: 54px; z-index: 3; display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 10px; letter-spacing: 1px; color: #ffb0b9; padding: 6px 11px; border-radius: 9px;
  background: linear-gradient(160deg, rgba(255,255,255,.07), rgba(255,255,255,.015)), rgba(40,8,14,.42); backdrop-filter: blur(14px) saturate(170%); -webkit-backdrop-filter: blur(14px) saturate(170%); border: 1px solid rgba(255,90,108,.35); }
.war-legend i { width: 12px; height: 9px; border-radius: 2px; background: rgba(120,14,28,.9); border: 1px solid #ff5a6c; box-shadow: 0 0 8px rgba(255,77,97,.7); }
.map-tip .war-row span { color: #ff8a97 !important; font-weight: 700; }

/* Detail card: centred on screen, bigger, glass */
.map-card-scrim { position: fixed; inset: 0; z-index: 174; background: rgba(2,6,10,.32); opacity: 0; pointer-events: none; transition: opacity .2s; }
.map-card-scrim.show { opacity: 1; pointer-events: auto; }
.map-card { position: fixed; left: 50%; top: 50%; z-index: 175; width: min(470px, calc(100vw - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto;
  padding: 24px 26px 22px; border-radius: 24px; transform: translate(-50%, -46%) scale(.95); transform-origin: center; }
.map-card.show { transform: translate(-50%, -50%); }
.mc-head h4 { font-size: 30px; }
.mc-price b { font-size: 38px; }
.mc-chg { font-size: 17px; }
.mc-grid span { font-size: 15px; }
.mc-session span { font-size: 14px; }
.mc-war { margin: -2px 0 12px; padding: 9px 12px; border-radius: 12px; font-family: var(--mono); font-size: 11px; letter-spacing: 1px; font-weight: 700; color: #ffb0b9;
  background: rgba(255,77,97,.12); border: 1px solid rgba(255,90,108,.4); position: relative; }
.mc-war span { display: block; font-family: var(--sans); letter-spacing: 0; font-weight: 400; font-size: 12px; color: rgba(255,214,219,.8); margin-top: 2px; }
/* keep land dark: the inner glow is a thin rim, war countries stay clearly red */
.country { fill: rgba(5,11,16,.94); }
.country.hub { fill: rgba(8,19,27,.96); }
.country.war { fill: rgba(140,16,32,.78); }
/* header never wraps the wordmark */
.thead .brand-word, .thead .co b, .thead .co span { white-space: nowrap; }
@media (max-width: 1500px) { .thead .co span { display: none; } }
/* inner glow = blurred rim clipped to land (no composite filters — they tinted the whole land) */
#gCountries { filter: drop-shadow(0 0 1.4px rgba(30,200,253,.45)); }
.inner-rim { pointer-events: none; }
.rim { fill: none; stroke: rgba(30,200,253,.55); stroke-width: 4; vector-effect: non-scaling-stroke; }
.rim.war { stroke: rgba(255,77,97,.85); stroke-width: 5; }
.country.war { filter: none; fill: rgba(110,12,26,.82); stroke: #ff5a6c; }

/* ---------- Boot: Iron Man HUD ---------- */
.boot.ironman { --im-red: #e0263a; --im-gold: #f5c04a; background: radial-gradient(ellipse at 50% 45%, rgba(70,10,16,.55), rgba(8,4,6,.97) 62%), #050304; overflow: hidden; }
.hud-hex { position: absolute; inset: -10%; opacity: .14; animation: hexdrift 30s linear infinite;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%23f5c04a' stroke-width='1'/%3E%3C/svg%3E");
  mask-image: radial-gradient(ellipse at 50% 50%, #000 20%, transparent 70%); }
@keyframes hexdrift { to { transform: translate(56px, 97px); } }
.hud-scan { position: absolute; left: 0; right: 0; height: 120px; top: -120px; background: linear-gradient(180deg, transparent, rgba(245,192,74,.10), rgba(224,38,58,.18), transparent); animation: hudscan 3.2s linear infinite; pointer-events: none; }
@keyframes hudscan { to { top: 100%; } }
.hud-corner { position: absolute; width: 70px; height: 70px; border: 2px solid var(--im-gold); opacity: .7; filter: drop-shadow(0 0 6px rgba(245,192,74,.7)); }
.hud-corner.tl { top: 24px; left: 24px; border-right: 0; border-bottom: 0; }
.hud-corner.tr { top: 24px; right: 24px; border-left: 0; border-bottom: 0; }
.hud-corner.bl { bottom: 24px; left: 24px; border-right: 0; border-top: 0; }
.hud-corner.br { bottom: 24px; right: 24px; border-left: 0; border-top: 0; }
.hud-side { position: absolute; top: 50%; transform: translateY(-50%); display: grid; gap: 4px; font-family: var(--mono); text-transform: uppercase; }
.hud-side.left { left: 48px; } .hud-side.right { right: 48px; text-align: right; }
.hud-side small { font-size: 10px; letter-spacing: 2px; color: rgba(245,192,74,.65); margin-top: 10px; }
.hud-side b { font-size: 14px; letter-spacing: 1.5px; color: #ffe2a8; text-shadow: 0 0 10px rgba(245,192,74,.6); font-weight: 600; }
@media (max-width: 900px) { .hud-side { display: none; } }
.boot-wrap { position: relative; display: grid; grid-template-columns: auto minmax(0, 460px); align-items: center; gap: 48px; padding: 16px; }
@media (max-width: 760px) { .boot-wrap { grid-template-columns: 1fr; justify-items: center; gap: 18px; } .reactor-xl { width: 170px !important; height: 170px !important; } }
.reactor-xl { width: 300px; height: 300px; filter: drop-shadow(0 0 30px rgba(30,200,253,.45)); }
.rx-ring { fill: none; transform-origin: 120px 120px; }
.rx-ring.r1 { stroke: var(--im-gold); stroke-width: 2; stroke-dasharray: 40 10 6 10; animation: spin 14s linear infinite; opacity: .85; }
.rx-ring.r2 { stroke: var(--im-red); stroke-width: 6; stroke-dasharray: 70 22; animation: spin 9s linear infinite reverse; filter: drop-shadow(0 0 6px rgba(224,38,58,.8)); }
.rx-ring.r3 { stroke: rgba(245,192,74,.6); stroke-width: 1.5; stroke-dasharray: 2 6; animation: spin 20s linear infinite; }
.rx-ring.r4 { stroke: #1ec8fd; stroke-width: 3; stroke-dasharray: 14 6; animation: spin 5s linear infinite reverse; filter: drop-shadow(0 0 8px #1ec8fd); }
.rx-ring.r5 { stroke: #e9fbff; stroke-width: 2; opacity: .9; }
.rx-coils { transform-origin: 120px 120px; animation: spin 24s linear infinite; }
.rx-coils rect { fill: rgba(245,192,74,.85); stroke: #fff2cc; stroke-width: .6; }
.rx-core { animation: core 1.6s ease-in-out infinite; transform-origin: 120px 120px; }
.boot.ironman .boot-box { position: relative; padding: 26px 26px 22px; border-radius: 18px; background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015)), rgba(30,6,10,.55);
  border: 1px solid rgba(245,192,74,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 40px -10px rgba(224,38,58,.6); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
.boot.ironman .boot-box .brand { margin-bottom: 14px; }
.boot-title { font-family: var(--mono); font-size: 11px; letter-spacing: 3px; color: var(--im-gold); margin-bottom: 14px; text-shadow: 0 0 10px rgba(245,192,74,.6); }
.boot.ironman .boot-lines { color: #f0d9c4; min-height: 150px; }
.boot.ironman .boot-lines .hl { color: #ffd27a; } .boot.ironman .boot-lines .ok { color: #7dffc0; }
.boot.ironman .boot-bar i { background: linear-gradient(90deg, var(--im-red), var(--im-gold)); box-shadow: 0 0 14px var(--im-red); }
.boot-go { background: linear-gradient(135deg, #ff4054, #b5121f); color: #fff; border: 1px solid rgba(255,210,122,.6); letter-spacing: 2px; font-family: var(--mono); box-shadow: 0 0 24px -4px rgba(224,38,58,.8), inset 0 1px 0 rgba(255,255,255,.3); }
.boot-go:hover { background: linear-gradient(135deg, #ff5a6b, #d01828); color: #fff; box-shadow: 0 0 34px -2px rgba(224,38,58,.95); }

/* ---------- Header fixed on scroll; red closed-market clocks ---------- */
.thead { position: sticky; top: 8px; }
.clock.closed small { color: #ff6b7a; }
.clock.closed b { color: #ff8a97; }

/* ---------- Map: crisp, no haze ---------- */
.map-scan { display: none; }
#gCountries { filter: none; }
.rim { stroke: rgba(30,200,253,.32); stroke-width: 2.6; }
.rim.war { stroke: rgba(255,77,97,.6); stroke-width: 3; }
.country { stroke: rgba(126,232,255,.78); stroke-width: .7; }
.map-wrap::before { background: linear-gradient(118deg, rgba(255,255,255,.04) 0%, transparent 30%); }
.map-wrap::after { box-shadow: inset 0 0 40px 6px rgba(0,0,0,.35); }

/* ---------- New panels ---------- */
.rates { max-height: 300px; overflow-y: auto; font-family: var(--mono); scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; }
.rate-hd, .rate-row { display: grid; grid-template-columns: minmax(0, 1fr) 62px 86px; gap: 8px; align-items: center; }
.rate-hd { font-size: 9.5px; letter-spacing: 1px; color: var(--text-faint); padding: 0 4px 6px; position: sticky; top: 0; background: rgba(10,19,29,.95); }
.rate-hd span:nth-child(n+2), .rate-row .v, .rate-row .m { text-align: right; }
.rate-row { padding: 7px 4px; border-bottom: 1px solid var(--stroke-soft); cursor: pointer; border-radius: 6px; }
.rate-row:hover { background: rgba(30,200,253,.05); }
.rate-row .b b { font-size: 12px; color: var(--text); } .rate-row .b small { display: block; font-size: 9.5px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rate-row .v { font-size: 13.5px; font-weight: 700; color: var(--text); }
.rate-row .m { font-size: 10.5px; font-weight: 600; } .rate-row .m small { display: block; font-weight: 400; color: var(--text-faint); font-size: 9.5px; }
.vol { display: grid; gap: 6px; }
.vol-row { display: grid; grid-template-columns: 62px minmax(0, 1fr) 42px 36px; gap: 8px; align-items: center; font-family: var(--mono); font-size: 11px; cursor: pointer; }
.vol-row .n { color: var(--text); font-weight: 600; }
.vol-row .bar { height: 8px; border-radius: 4px; background: rgba(255,255,255,.05); overflow: hidden; }
.vol-row .bar i { display: block; height: 100%; border-radius: 4px; background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); }
.vol-row .bar i.hot { background: linear-gradient(90deg, #8a5a14, var(--amber)); } .vol-row .bar i.cold { background: rgba(120,140,160,.5); }
.vol-row .v, .vol-row .r { text-align: right; color: var(--text-dim); } .vol-row .r { font-weight: 700; }
.inst { display: grid; gap: 8px; max-height: 300px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; }
.inst-row { padding: 9px 10px; border-radius: 10px; border: 1px solid var(--stroke-soft); background: rgba(3,8,13,.35); cursor: pointer; }
.inst-row .t { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 12.5px; }
.inst-row .view { font-family: var(--mono); font-size: 9.5px; font-weight: 700; letter-spacing: 1px; padding: 2px 7px; border-radius: 5px; }
.inst-row .view.bullish { color: var(--green); background: rgba(61,220,151,.1); border: 1px solid #1c6b4a; }
.inst-row .view.bearish { color: #ff8fa0; background: rgba(240,87,107,.1); border: 1px solid #6e2430; }
.inst-row .view.neutral { color: var(--text-dim); border: 1px solid var(--stroke); }
.inst-row .s { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 4px; font-size: 11px; color: var(--text-dim); }
.inst-row .s .d { margin-left: auto; color: var(--text-faint); }
.inst-row p { font-size: 11.5px; color: var(--text-dim); margin-top: 5px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.xfeed { display: grid; gap: 8px; max-height: 360px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: #1d3a4c transparent; }
.xpost { padding: 10px; border-radius: 12px; border: 1px solid var(--stroke-soft); background: rgba(3,8,13,.35); cursor: pointer; }
.xpost header { display: flex; align-items: center; gap: 8px; }
.xpost .av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 12px; background: linear-gradient(135deg, #2a3a48, #10202c); border: 1px solid var(--stroke); flex: none; }
.xpost .who { min-width: 0; flex: 1; } .xpost .who b { display: block; font-size: 12px; } .xpost .who small { font-size: 10px; color: var(--text-faint); font-family: var(--mono); }
.xpost .xl { width: 26px; height: 26px; display: grid; place-items: center; color: var(--text-dim); border-radius: 7px; } .xpost .xl:hover { color: #fff; background: rgba(255,255,255,.06); }
.xpost .xl svg { width: 13px; height: 13px; }
.xpost p { font-size: 12px; line-height: 1.45; margin-top: 7px; color: var(--text); word-wrap: break-word; }

/* ---------- Country popup: one screen, data | news ---------- */
.map-card { width: min(860px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow: hidden; }
.mc-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 22px; }
@media (max-width: 760px) { .mc-cols { grid-template-columns: 1fr; } .map-card { overflow-y: auto; } }
.map-card .mc-x { position: absolute; top: 16px; right: 16px; z-index: 2; }
.mc-head { padding-right: 44px; }
.mc-head h4 { font-size: 26px; }
.mc-price b { font-size: 32px; }
.mc-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 12px; }
.mc-grid span { font-size: 13px; }
.mc-news { border-left: 1px solid rgba(255,255,255,.12); padding-left: 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; padding-top: 44px; }
@media (max-width: 760px) { .mc-news { border-left: 0; padding-left: 0; padding-top: 0; } }
.mc-lbl { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: rgba(126,232,255,.9); margin-bottom: 6px; }
.mc-n { display: flex; gap: 10px; align-items: flex-start; padding: 8px 6px; border-radius: 10px; color: var(--text); }
.mc-n:hover { background: rgba(255,255,255,.07); color: #fff; }
.mc-n .impact { margin-top: 6px; }
.mc-n b { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-weight: 600; font-size: 13px; line-height: 1.35; }
.mc-n small { display: block; font-family: var(--mono); font-size: 10px; color: rgba(226,237,244,.65); margin-top: 3px; }

/* ---------- Tab / title alignment ---------- */
.ptitle { min-height: 28px; flex-wrap: nowrap; }
.ptitle .r, .ptitle > .tag, .ptitle > .countdown { flex: none; }
.seg button { min-height: 26px; display: inline-flex; align-items: center; justify-content: center; }
.wl-tabs { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 2px; }
.wl-tabs::-webkit-scrollbar { display: none; }
.wl-tabs button { flex: none; }
/* sticky header needs a non-scrolling body: `clip` hides sideways overflow without creating a scroll container */
body.term { overflow-x: clip; }
.boot .btn:not(.show) { pointer-events: none; }
.term .thead.panel { position: sticky; top: 8px; z-index: 40; }
.term .thead.panel { background: linear-gradient(165deg, rgba(255,255,255,.05), rgba(255,255,255,.01)), rgba(6,12,18,.9); }

/* ---------- Welcome on the boot screen (red/gold) ---------- */
.boot.welcome .rx-ring.r2 { animation-duration: 3.5s; }
.boot.welcome .rx-ring.r4 { animation-duration: 2s; }
.boot.welcome .rx-coils { animation-duration: 8s; }
.boot.welcome .reactor-xl { filter: drop-shadow(0 0 46px rgba(30,200,253,.7)) drop-shadow(0 0 22px rgba(224,38,58,.55)); animation: reactorPulse 1.4s ease-in-out infinite; }
@keyframes reactorPulse { 50% { transform: scale(1.035); } }
body.booting .vhud { z-index: 320; bottom: 40px; border-color: rgba(245,192,74,.55);
  background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015)), rgba(40,8,12,.72);
  box-shadow: 0 0 0 1px rgba(224,38,58,.25), 0 0 46px -6px rgba(224,38,58,.6), 0 24px 60px -18px rgba(0,0,0,.9); }
body.booting .vtext small { color: #f5c04a; }
body.booting .vtext span { color: #fff1dc; }
body.booting .vtext mark { background: rgba(245,192,74,.28); color: #fff; }
body.booting .reactor i { border-top-color: #e0263a; border-bottom-color: rgba(224,38,58,.35); }
body.booting .reactor i:nth-child(2) { border-top-color: #f5c04a; border-left-color: rgba(245,192,74,.4); }
body.booting .reactor b { background: radial-gradient(circle, #fff, #ffd27a 55%, transparent 75%); box-shadow: 0 0 16px #f5c04a; }
body.booting .vwave i { background: linear-gradient(#ffd27a, #e0263a); }
body.booting .vwave i:nth-child(3n) { background: linear-gradient(#ffffff, #f5c04a); }
body.booting .vstop { border-color: rgba(245,192,74,.4); color: #ffe2a8; }
body.leaving-boot .boot { opacity: 0; transition: opacity .4s; }
.thead .brand-logo { height: 34px; }
@media (max-width: 560px) { .thead .brand-logo { height: 26px; } }

/* ---------- Boot / welcome HUD in the InsideEdges palette (replaces red/gold) ---------- */
.boot.ironman { --im-red: #0b9ffe; --im-gold: #4ef8b9;
  background: radial-gradient(ellipse at 50% 45%, rgba(6,60,82,.55), rgba(2,8,12,.97) 62%), #02070b; }
.hud-hex { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='97' viewBox='0 0 56 97'%3E%3Cpath d='M28 0l28 16v32L28 64 0 48V16zM28 64v33' fill='none' stroke='%234ef8b9' stroke-width='1'/%3E%3C/svg%3E"); }
.hud-scan { background: linear-gradient(180deg, transparent, rgba(78,248,185,.10), rgba(11,159,254,.18), transparent); }
.hud-corner { border-color: #4ef8b9; filter: drop-shadow(0 0 6px rgba(78,248,185,.7)); }
.hud-side small { color: rgba(78,248,185,.7); }
.hud-side b { color: #d9fff1; text-shadow: 0 0 10px rgba(30,200,253,.6); }
.rx-ring.r1 { stroke: #4ef8b9; }
.rx-ring.r2 { stroke: #0b9ffe; filter: drop-shadow(0 0 6px rgba(11,159,254,.85)); }
.rx-ring.r3 { stroke: rgba(78,248,185,.6); }
.rx-ring.r4 { stroke: #23d5fd; filter: drop-shadow(0 0 8px #23d5fd); }
.rx-coils rect { fill: rgba(16,198,165,.9); stroke: #d9fff1; }
.boot.ironman .boot-box { background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015)), rgba(4,24,34,.6);
  border-color: rgba(78,248,185,.4); box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 0 40px -10px rgba(11,159,254,.6); }
.boot-title { color: #4ef8b9; text-shadow: 0 0 10px rgba(78,248,185,.55); }
.boot.ironman .boot-lines { color: #cfe9f2; }
.boot.ironman .boot-lines .hl { color: #7fe3ff; } .boot.ironman .boot-lines .ok { color: #4ef8b9; }
.boot.ironman .boot-bar i { background: var(--brand-grad); box-shadow: 0 0 14px rgba(30,200,253,.8); }
.boot-go { background: var(--brand-grad); color: #021016; border: 1px solid rgba(217,255,241,.55); box-shadow: 0 0 24px -4px rgba(30,200,253,.85), inset 0 1px 0 rgba(255,255,255,.4); }
.boot-go:hover { background: linear-gradient(135deg, #7dfcce 0%, #4dd6fe 48%, #2fb0ff 100%); color: #021016; box-shadow: 0 0 34px -2px rgba(30,200,253,.95); }
.boot.welcome .reactor-xl { filter: drop-shadow(0 0 46px rgba(35,213,253,.7)) drop-shadow(0 0 22px rgba(78,248,185,.5)); }
body.booting .vhud { border-color: rgba(78,248,185,.5); background: linear-gradient(150deg, rgba(255,255,255,.08), rgba(255,255,255,.015)), rgba(4,24,34,.75);
  box-shadow: 0 0 0 1px rgba(11,159,254,.25), 0 0 46px -6px rgba(30,200,253,.6), 0 24px 60px -18px rgba(0,0,0,.9); }
body.booting .vtext small { color: #4ef8b9; }
body.booting .vtext span { color: #e9fbff; }
body.booting .vtext mark { background: rgba(78,248,185,.25); }
body.booting .reactor i { border-top-color: #0b9ffe; border-bottom-color: rgba(11,159,254,.35); }
body.booting .reactor i:nth-child(2) { border-top-color: #4ef8b9; border-left-color: rgba(78,248,185,.4); }
body.booting .reactor b { background: radial-gradient(circle, #fff, #7fe3ff 55%, transparent 75%); box-shadow: 0 0 16px #23d5fd; }
body.booting .vwave i { background: linear-gradient(#7fe3ff, #0b9ffe); }
body.booting .vwave i:nth-child(3n) { background: linear-gradient(#d9fff1, #4ef8b9); }
body.booting .vstop { border-color: rgba(78,248,185,.4); color: #d9fff1; }

/* ---------- Capital-flow map: transparent panel (the page atmosphere shows through) ---------- */
.term .map-panel.full { background: transparent; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; border-color: rgba(126,227,255,.12); }
.term .map-panel.full::before { opacity: .5; }
.map-panel.full .map-wrap { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: none; border-color: rgba(126,227,255,.14); }
.map-panel.full .map-wrap::before, .map-panel.full .map-wrap::after { display: none; }
.map-panel.full .country { fill: rgba(4,12,18,.55); }
.map-panel.full .country.hub { fill: rgba(8,22,32,.6); }
.map-panel.full .country.war { fill: rgba(110,12,26,.6); }

/* =====================================================================
   14-Oct update: voice HUD beside the boot screen, sample-style map,
   trader-selectable layout, balanced columns, instrument detail card
   ===================================================================== */
/* 1 · During the welcome the voice HUD sits bottom-left under the reactor, clear of the SKIP button */
body.booting .vhud { left: max(20px, 3vw); right: auto; bottom: 28px; width: min(460px, calc(50vw - 56px)); transform: translateY(24px) scale(.96); }
body.booting .vhud.on { transform: none; }
@media (max-width: 900px) { body.booting .vhud { left: 12px; right: 12px; width: auto; top: 12px; bottom: auto; transform: translateY(-16px); } }

/* 2 · Map: no frame or side margins — the map runs edge to edge */
.term .map-panel.full { border-color: transparent; padding: 10px 0 4px; }
.term .map-panel.full::before { display: none; }
.term .map-panel.full .ptitle { padding: 0 14px; }
.map-panel.full .map-wrap { border: 0; border-radius: 0; }
.map-panel.full .map-zoom { right: 14px; }
.map-panel.full .flow-log { left: 14px; }

/* 3 · Countries clearly visible, like the sample: lit land, dotted texture, soft bright coastlines */
.map-panel.full .country, .country { fill: url(#landGrad); fill-opacity: .34; stroke: rgba(205,238,255,.5); stroke-width: .55; }
.map-panel.full .country.hub, .country.hub { fill: url(#landGrad); fill-opacity: .46; stroke: rgba(225,246,255,.7); }
.map-panel.full .country:hover, .country:hover { fill-opacity: .62; stroke: #fff; stroke-width: 1.1; }
.country[style*="fill"] { fill-opacity: .85; }
.map-panel.full .country.war, .country.war { fill: #c41a33; fill-opacity: .5; stroke: #ff6b7d; }
.map-panel.full .country.war:hover, .country.war:hover { fill-opacity: .7; }
.land-tex { opacity: .28; pointer-events: none; }
.rim { stroke: rgba(150,225,255,.42); stroke-width: 2.4; }
.rim.war { stroke: rgba(255,90,110,.55); }
.graticule { stroke: rgba(126,232,255,.045); }
.night { fill: rgba(0,4,12,.3); }
.map-panel.full .hub-g text.city { fill: #f2fbff; paint-order: stroke; stroke: rgba(2,10,16,.85); stroke-width: 2.2px; }
.map-panel.full .hub-g text.chg { paint-order: stroke; stroke: rgba(2,10,16,.85); stroke-width: 2px; }

/* 4 · Balanced columns: each column's last panel stretches so the bottoms line up */
.tgrid { align-items: stretch; }
.tgrid > .col > :last-child { flex: 1 1 auto; }
.tgrid .row2 { align-items: stretch; }
.tgrid .row2.single { grid-template-columns: minmax(0, 1fr); }
.tgrid .row2 > .panel { display: flex; flex-direction: column; }
@media (min-width: 1241px) {
  .tgrid[data-cols="left-center"] { grid-template-columns: 280px minmax(0, 1fr); }
  .tgrid[data-cols="center-right"] { grid-template-columns: minmax(0, 1fr) 318px; }
  .tgrid[data-cols="left-right"] { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .tgrid[data-cols="left"], .tgrid[data-cols="center"], .tgrid[data-cols="right"] { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 1240px) { .tgrid[data-cols="right"] > .col.right, .tgrid[data-cols="left-right"] > .col.right { grid-column: auto; } }

/* Layout picker */
.modal.lyset { width: min(720px, 100%); }
.ly-presets { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; margin-bottom: 16px; }
.ly-preset { text-align: left; padding: 12px; border-radius: 12px; border: 1px solid var(--stroke); background: rgba(3,8,13,.4); color: var(--text); cursor: pointer; transition: border-color .15s, background .15s; }
.ly-preset b { display: block; font-size: 13.5px; }
.ly-preset small { display: block; color: var(--text-dim); font-size: 11.5px; margin-top: 3px; line-height: 1.35; }
.ly-preset:hover { border-color: var(--cyan-dim, rgba(30,200,253,.4)); }
.ly-preset[aria-checked="true"] { border-color: var(--mint); background: rgba(78,248,185,.08); box-shadow: inset 0 0 0 1px rgba(78,248,185,.35); }
.ly-groups { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.ly-group { border: 1px solid var(--stroke); border-radius: 12px; padding: 10px 12px 6px; margin: 0; min-width: 0; }
.ly-group legend { font-family: var(--mono); font-size: 10px; letter-spacing: 1.4px; color: var(--text-faint); padding: 0 6px; }
.ly-item { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 13.5px; cursor: pointer; }
.ly-item input { width: 17px; height: 17px; accent-color: var(--mint); flex: none; }
@media (max-width: 640px) { .ly-presets { grid-template-columns: 1fr 1fr; } .ly-groups { grid-template-columns: 1fr; } }

/* 6 · Instrument detail card (watchlist click) */
.map-card { overflow-y: auto; }
.mc-spark { display: block; width: 100%; height: 58px; margin-top: 4px; }
.mc-range { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 10px; margin-top: 12px; font-family: var(--mono); font-size: 11px; color: var(--text-dim); }
.mc-range i { position: relative; height: 6px; border-radius: 3px; background: linear-gradient(90deg, rgba(240,87,107,.55), rgba(126,232,255,.25), rgba(61,220,151,.55)); }
.mc-range b { position: absolute; top: 50%; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: #fff; box-shadow: 0 0 10px rgba(30,200,253,.9); }

/* 7 · EDGE signature voice */
.vsig { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; padding: 12px 14px; margin-bottom: 14px; border-radius: 14px; cursor: pointer; color: var(--text);
  border: 1px solid rgba(78,248,185,.4); background: linear-gradient(135deg, rgba(78,248,185,.1), rgba(11,159,254,.08)); }
.vsig > span:nth-child(2) { flex: 1; min-width: 0; }
.vsig b { display: block; font-size: 14px; }
.vsig small { display: block; color: var(--text-dim); font-size: 12px; margin-top: 2px; line-height: 1.4; }
.vsig[aria-pressed="true"] { border-color: var(--mint); box-shadow: 0 0 24px -8px rgba(78,248,185,.7); }
.map-panel.full .map-wrap { width: 100%; }
@media (max-width: 560px) {
  #layoutBtn { display: none; } /* still in the user menu */
  .map-panel.full .flow-log { display: none; }
}
.mc-main > .mc-grid + .mc-grid { margin-top: 10px; }

/* =====================================================================
   15-Oct update: raised continents, whole world visible, session strip,
   FX volume & strength panel
   ===================================================================== */
/* Raised land: a deep slab under each continent (two offset copies) + bright surface + lit coastline */
.land-depth { pointer-events: none; }
.land-depth .d3 path { fill: none; stroke: rgba(35,213,253,.22); stroke-width: 5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.land-depth .d2 path { fill: #010509; stroke: #010509; stroke-width: 1.4; vector-effect: non-scaling-stroke; }
.land-depth .d1 path { fill: #0a3550; stroke: #0a3550; stroke-width: .8; vector-effect: non-scaling-stroke; }
.map-panel.full .country, .country { fill: url(#landGrad); fill-opacity: .9; stroke: rgba(4,22,34,.55); stroke-width: .5; }
.map-panel.full .country.hub, .country.hub { fill: url(#landGrad); fill-opacity: 1; stroke: rgba(4,22,34,.6); }
.map-panel.full .country:hover, .country:hover { fill-opacity: 1; fill: #b9e6ff; stroke: #fff; stroke-width: 1; }
.country[style*="fill"] { fill-opacity: .95; }
.map-panel.full .country.war, .country.war { fill: #d0243c; fill-opacity: .85; stroke: #ff8090; stroke-width: .7; }
.land-tex { opacity: .22; mix-blend-mode: multiply; }
.rim { stroke: rgba(225,248,255,.55); stroke-width: 1.6; }
.rim.war { stroke: rgba(255,150,165,.6); }
.night { fill: rgba(0,6,18,.38); }
.map-panel.full .map-wrap { background: radial-gradient(ellipse at 50% 40%, rgba(12,40,64,.55), rgba(2,8,14,0) 70%); }
.map-panel.full .hub-g text.city { font-size: 8.5px; }
.map-panel.full .hub-g text.chg { font-size: 7.4px; }
/* Sessions view: open markets glow mint, the rest of the world dims */
svg.session-mode .country:not([style*="fill"]):not(.war) { fill-opacity: .32; }
svg.session-mode .country[style*="fill"] { fill-opacity: 1; stroke: #d9fff1; stroke-width: .9; }

/* Session strip in the map title bar */
.map-panel.full .ptitle { flex-wrap: wrap; row-gap: 8px; }
.sess-strip { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; flex: 1; min-width: 0; }
.sess { display: inline-flex; align-items: center; gap: 7px; padding: 5px 10px; border-radius: 9px; border: 1px solid var(--stroke); background: rgba(3,10,16,.55); font-size: 10px; letter-spacing: 1px; white-space: nowrap; }
.sess i { width: 7px; height: 7px; border-radius: 50%; background: #5a6f7e; flex: none; }
.sess b { color: var(--text); font-weight: 600; }
.sess .t { color: var(--text-dim); }
.sess .s { color: var(--text-faint); letter-spacing: .6px; }
.sess.open { border-color: rgba(78,248,185,.45); background: rgba(78,248,185,.07); }
.sess.open i { background: #4ef8b9; box-shadow: 0 0 8px #4ef8b9; animation: core 1.6s ease-in-out infinite; }
.sess.open .s { color: #4ef8b9; }
@media (max-width: 1100px) { .sess .s { display: none; } }
@media (max-width: 560px) { .sess-strip { order: 3; flex-basis: 100%; justify-content: flex-start; } .sess .t { display: none; } }

/* FX volume & strength */
.vol { gap: 7px; }
.vol-head, .vol-row { grid-template-columns: 62px minmax(0, 1fr) 40px 60px 34px; }
.vol-head { display: grid; gap: 8px; font-family: var(--mono); font-size: 8.5px; letter-spacing: 1px; color: var(--text-faint); padding-bottom: 2px; }
.vol-head span:nth-child(n+3) { text-align: right; }
.vol-head span:nth-child(2) { text-align: center; }
.vol-row .bar { display: flex; height: 9px; }
.vol-row .bar i { height: 100%; border-radius: 0; transition: width .6s var(--ease); }
.vol-row .bar i.u { background: linear-gradient(90deg, #1d8f63, #3ddc97); border-radius: 4px 0 0 4px; }
.vol-row .bar i.d { background: linear-gradient(90deg, #f0576b, #9c2333); border-radius: 0 4px 4px 0; }
.vol-row .bar i.t { background: linear-gradient(90deg, var(--cyan-dim), var(--cyan)); border-radius: 4px; }
.vspark { width: 60px; height: 18px; }
.vspark polyline { fill: none; stroke: #7ee8ff; stroke-width: 1.3; vector-effect: non-scaling-stroke; }
.vol-row .r.up { color: var(--green); } .vol-row .r.down { color: var(--red); }
.vol.tick .vol-row .v { animation: volPulse .7s ease-out; }
@keyframes volPulse { 0% { color: #fff; text-shadow: 0 0 8px rgba(126,232,255,.9); } }
.map-panel.full .country, .country { fill-opacity: .82; }
.sess-strip { order: 3; flex-basis: 100%; justify-content: flex-start; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
.map-panel.full .war-legend { bottom: 54px; }
.map-panel.full .war-legend { top: 14px; left: 14px; right: auto; bottom: auto; }
@media (max-width: 900px) { .map-panel.full .map-wrap { aspect-ratio: 1000 / 394; min-height: 0; } }
