:root { color-scheme: dark; }
body { background:
  radial-gradient(1200px 600px at 75% -10%, rgba(34,197,94,.07), transparent 60%),
  radial-gradient(900px 500px at -10% 110%, rgba(20,184,166,.05), transparent 60%), #07090c; }
.logo-mark { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #052e16;
  background: linear-gradient(135deg, #4ade80, #14b8a6); box-shadow: 0 6px 20px -6px rgba(74,222,128,.55); }
.logo-mark.sm { width: 26px; height: 26px; border-radius: 7px; }
.nav-item { display:flex; align-items:center; gap:.7rem; padding:.55rem .75rem; border-radius:.6rem; color:#94a3b8; cursor:pointer; transition: background .15s, color .15s; }
.nav-item:hover { background: rgba(255,255,255,.04); color:#e2e8f0; }
.nav-item.active { background: rgba(74,222,128,.09); color:#fff; box-shadow: inset 2px 0 0 #4ade80; }
.nav-item .step { width:20px; height:20px; border-radius:6px; display:grid; place-items:center; font-size:10.5px; font-weight:700; background: rgba(255,255,255,.05); color:#64748b; }
.nav-item.active .step { background: rgba(74,222,128,.18); color:#86efac; }
.nav-item .count { margin-left:auto; font-size:11px; font-weight:600; padding:1px 7px; border-radius:999px; background: rgba(239,68,68,.15); color:#fca5a5; }
.nav-label { font-size:10.5px; letter-spacing:.12em; text-transform:uppercase; color:#475569; padding: 1rem .75rem .4rem; font-weight:600; }
.chip-live { display:inline-flex; align-items:center; gap:.45rem; padding:.3rem .65rem; border-radius:999px; background: rgba(74,222,128,.08); border:1px solid rgba(74,222,128,.2); color:#86efac; font-weight:600; }
.chip-muted { display:inline-flex; align-items:center; gap:.45rem; padding:.3rem .65rem; border-radius:999px; background: rgba(255,255,255,.03); border:1px solid rgba(255,255,255,.06); color:#94a3b8; }
.pulse { width:7px; height:7px; border-radius:50%; background:#4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(74,222,128,.6);} 70% { box-shadow: 0 0 0 8px rgba(74,222,128,0);} 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0);} }
.card { background: linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.01)); border:1px solid rgba(255,255,255,.06); border-radius: 14px; box-shadow: 0 1px 0 rgba(255,255,255,.03) inset, 0 10px 30px -18px rgba(0,0,0,.8); }
.alert { position:relative; display:flex; min-width:0; gap:.9rem; padding: .95rem 1rem .95rem 1.15rem; border-radius: 12px; cursor:pointer; border:1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.018); transition: background .15s, border-color .15s, transform .15s; }
.alert:hover { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.12); }
.alert::before { content:""; position:absolute; left:0; top:10px; bottom:10px; width:3px; border-radius: 3px; background: var(--sev); }
.alert.selected { border-color: rgba(74,222,128,.35); background: rgba(74,222,128,.05); }
.alert.enter { animation: enter .6s cubic-bezier(.2,.8,.2,1); }
@keyframes enter { from { opacity:0; transform: translateY(-10px) scale(.99); background: rgba(74,222,128,.12);} to { opacity:1; transform:none; } }
.sev { display:inline-flex; align-items:center; gap:.35rem; font-size:10.5px; font-weight:700; letter-spacing:.06em; padding:2px 8px; border-radius:6px; text-transform:uppercase; }
.sev.critical { color:#fecaca; background: rgba(239,68,68,.16); } .sev.warning { color:#fde68a; background: rgba(245,158,11,.15); }
.sev.ok { color:#bbf7d0; background: rgba(34,197,94,.14); } .sev.info { color:#bae6fd; background: rgba(56,189,248,.13); }
.dot { width:6px; height:6px; border-radius:50%; background: currentColor; }
.tag { font-size:10.5px; font-weight:500; padding:2px 7px; border-radius:6px; background: rgba(255,255,255,.05); color:#94a3b8; border:1px solid rgba(255,255,255,.05); white-space:nowrap; }
.tag.module { color:#cbd5e1; background: rgba(148,163,184,.08); }
.tag.demo { color:#c4b5fd; background: rgba(139,92,246,.12); border-color: rgba(139,92,246,.2); }
.tag.real { color:#86efac; background: rgba(34,197,94,.08); border-color: rgba(34,197,94,.18); }
.kpi-val { font-size: 40px; line-height:1; font-weight: 750; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.btn { display:inline-flex; align-items:center; justify-content:center; gap:.5rem; font-size:13px; font-weight:600; padding:.6rem 1rem; border-radius:10px; transition: all .15s; }
.btn-primary { background:#f8fafc; color:#0b0f14; } .btn-primary:hover { background:#fff; }
.btn-danger { background: #dc2626; color:#fff; box-shadow: 0 8px 24px -10px rgba(220,38,38,.8);} .btn-danger:hover { background:#ef4444; }
.btn-ghost { background: rgba(255,255,255,.04); color:#e2e8f0; border:1px solid rgba(255,255,255,.08);} .btn-ghost:hover { background: rgba(255,255,255,.08); }
.section-title { font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color:#64748b; font-weight:600; }
.ba { position:relative; overflow:hidden; border-radius:14px; aspect-ratio: 471/627; background:#000; user-select:none; }
.ba.sq { aspect-ratio: 1/1; } .ba.wide { aspect-ratio: 4/3; }
.ba img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; image-rendering: pixelated; }
.ba .after { clip-path: inset(0 0 0 var(--x, 50%)); }
.ba .handle { position:absolute; top:0; bottom:0; left: var(--x, 50%); width:2px; background:#fff; box-shadow: 0 0 12px rgba(0,0,0,.6); pointer-events:none; }
.ba .handle::after { content:"⟷"; position:absolute; top:50%; left:50%; transform: translate(-50%,-50%); width:32px; height:32px; border-radius:50%; background:#fff; color:#0b0f14; display:grid; place-items:center; font-size:14px; font-weight:700; }
.ba input { position:absolute; inset:0; width:100%; height:100%; opacity:0; cursor: ew-resize; }
.ba .lbl { position:absolute; top:10px; font-size:10.5px; font-weight:700; letter-spacing:.08em; padding:3px 8px; border-radius:6px; background: rgba(0,0,0,.6); color:#fff; backdrop-filter: blur(4px); }
.switch { position:relative; width:42px; height:24px; border-radius:999px; background:#334155; transition: background .2s; cursor:pointer; flex-shrink:0; }
.switch::after { content:""; position:absolute; top:3px; left:3px; width:18px; height:18px; border-radius:50%; background:#fff; transition: transform .2s; }
.switch.on { background:#dc2626; } .switch.on::after { transform: translateX(18px); }
.chain-badge { display:inline-flex; align-items:center; gap:.6rem; font-weight:750; font-size:15px; padding:.65rem 1rem; border-radius:12px; letter-spacing:.02em; transition: all .25s; }
.chain-badge.ok { background: rgba(34,197,94,.12); color:#86efac; border:1px solid rgba(34,197,94,.3); }
.chain-badge.bad { background: rgba(220,38,38,.16); color:#fecaca; border:1px solid rgba(239,68,68,.45); box-shadow: 0 0 30px -6px rgba(239,68,68,.55); }
.hash { font-family: 'JetBrains Mono', monospace; font-size: 11px; color:#64748b; }
.leaflet-container { isolation:isolate; z-index:0; background:#0b0f14; font-family: Inter, sans-serif; border-radius: 12px; }
.leaflet-tile-pane { filter: brightness(.62) saturate(.55) contrast(1.1) hue-rotate(-8deg); }
.leaflet-control-attribution { background: rgba(7,9,12,.7) !important; color:#64748b !important; font-size:9px !important; }
.leaflet-control-attribution a { color:#94a3b8 !important; }
.leaflet-tooltip { background:#0f141b; color:#e2e8f0; border:1px solid rgba(255,255,255,.1); border-radius:8px; font-size:12px; }
.eco-node { cursor:pointer; transition: transform .15s, border-color .15s; }
.eco-node:hover { transform: translateY(-2px); border-color: rgba(74,222,128,.35); }
.hday { flex:1; min-width: 0; height: 34px; border-radius: 6px; position:relative; }
.hday.today { outline: 2px solid #fff; outline-offset: 2px; }
::-webkit-scrollbar { width: 10px; height: 10px; } ::-webkit-scrollbar-thumb { background: #1b2430; border-radius: 10px; border: 2px solid #07090c; }
table.tbl { width:100%; font-size: 13px; } .tbl th { text-align:left; font-weight:600; color:#64748b; font-size:11px; letter-spacing:.06em; text-transform:uppercase; padding:.6rem .75rem; border-bottom:1px solid rgba(255,255,255,.06); }
.tbl td { padding:.6rem .75rem; border-bottom:1px solid rgba(255,255,255,.04); } .tbl tr:hover td { background: rgba(255,255,255,.02); }
@media (max-width: 767px) { .kpi-val { font-size: 24px; } }

.pin { position:absolute; transform: translate(-50%,-50%); display:flex; align-items:center; gap:4px; padding:2px 7px 2px 5px; border-radius:999px; background: rgba(7,9,12,.85); border:1px solid var(--c); color:#fff; font: 600 11px Inter, sans-serif; white-space:nowrap; box-shadow:0 0 0 3px rgba(0,0,0,.25); cursor:pointer; }
.pin::before { content:""; width:7px; height:7px; border-radius:50%; background: var(--c); box-shadow: 0 0 8px var(--c); }

.more-btn { font-size:13px; font-weight:600; color:#94a3b8; padding:.5rem .9rem; border-radius:10px; border:1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.03); margin-top:1.5rem; }
.more-btn:hover { color:#fff; background: rgba(255,255,255,.07); }
.more { margin-top:1rem; }
.ba .lbl { font-size:11px; }

/* ---- Kinéis IoT */
.tag.iot { color:#67e8f9; background: rgba(34,211,238,.09); border-color: rgba(34,211,238,.22); }
.tile { background: rgba(255,255,255,.035); border:1px solid rgba(255,255,255,.06); border-radius:14px; padding:10px 12px; min-width:0; }
.sensor-hero { background: radial-gradient(120% 90% at 0% 0%, rgba(16,185,129,.10), transparent 60%), rgba(255,255,255,.03); }
.flow { display:flex; align-items:flex-start; justify-content:space-between; gap:0; }
.fnode { flex:0 0 auto; width:24%; text-align:center; display:flex; flex-direction:column; align-items:center; }
.ficon { width:56px; height:56px; border-radius:18px; display:grid; place-items:center; color:#6ee7b7; background:rgba(16,185,129,.1); border:1px solid rgba(16,185,129,.25); animation: glow 3.6s ease-in-out infinite; animation-delay: var(--d); }
.ficon.sat { color:#67e8f9; background:rgba(34,211,238,.1); border-color:rgba(34,211,238,.28); }
.ficon.bell { color:#fcd34d; background:rgba(245,158,11,.1); border-color:rgba(245,158,11,.28); }
.fline { position:relative; flex:1 1 0; height:2px; margin-top:27px; background:rgba(148,163,184,.2); border-radius:2px; overflow:visible; }
.fline i { position:absolute; top:-3px; left:0; width:8px; height:8px; border-radius:50%; background:#6ee7b7; box-shadow:0 0 10px 2px rgba(110,231,183,.7); animation: travel 3.6s linear infinite; animation-delay: var(--d); opacity:0; }
@keyframes travel { 0% { left:0; opacity:0 } 8% { opacity:1 } 24% { left:calc(100% - 8px); opacity:1 } 30%,100% { left:calc(100% - 8px); opacity:0 } }
@keyframes glow { 0%,100% { box-shadow:0 0 0 0 rgba(110,231,183,0) } 12% { box-shadow:0 0 0 7px rgba(110,231,183,.14) } 30% { box-shadow:0 0 0 0 rgba(110,231,183,0) } }
.byte { width:22px; height:14px; border-radius:3px; background: linear-gradient(180deg, rgba(103,232,249,.55), rgba(103,232,249,.18)); animation: blink 3.6s ease-in-out infinite; animation-delay: calc(var(--i) * 60ms); }
@keyframes blink { 0%,100% { opacity:.55 } 10% { opacity:1 } 25% { opacity:.55 } }
@media (max-width: 640px) {
  .flow { flex-direction:column; align-items:stretch; padding-left:18px; }
  .fnode { width:100%; flex-direction:row; text-align:left; gap:14px; align-items:center; }
  .fnode .ficon { flex:0 0 auto; width:46px; height:46px; border-radius:14px; }
  .fnode .ftext > div:first-child { margin-top:0 !important; }
  .fnode .ftext { text-align:left; }
  .fline { width:2px; height:26px; margin:0 0 0 22px; flex:none; }
  .fline i { left:-3px; top:0; animation-name: travelv; }
  .byte { width:14px; height:12px; }
}
@keyframes travelv { 0% { top:0; opacity:0 } 8% { opacity:1 } 24% { top:calc(100% - 8px); opacity:1 } 30%,100% { top:calc(100% - 8px); opacity:0 } }
@media (prefers-reduced-motion: reduce) { .ficon, .fline i, .byte { animation:none } .fline i { opacity:1; left:calc(50% - 4px) } }
.tile-big { padding:14px 14px 16px; } .tile-big > div:last-child { font-size:34px !important; }
@media (min-width: 1024px) { .ba.hero { aspect-ratio: 16/10; } }
@media (max-width: 640px) { .tile-big > div:last-child { font-size:26px !important; } }
.tgrid { grid-auto-rows: 1fr; } .tile-big { display:flex; flex-direction:column; justify-content:space-between; }

/* ---- v5 console reskin: refined dark, airy, one accent, serif headings (matches the landing) */
:root { --acc:#7ef0a6; }
body { background: radial-gradient(1100px 600px at 80% -15%, rgba(126,240,166,.06), transparent 60%), #040606 !important; }
.serif { font-family:'Instrument Serif', Georgia, serif; font-weight:400 !important; letter-spacing:-.01em; }
#sidebar { background:#060909 !important; border-color:rgba(255,255,255,.05) !important; width:248px; }
.logo-mark { background:linear-gradient(135deg,#34d399,#0d9488); box-shadow:none; border-radius:9px; color:#02130c; }
.nav-item { padding:.6rem .8rem; border-radius:12px; color:#8a978f; font-weight:500; }
.nav-item:hover { background:rgba(255,255,255,.035); color:#e8efe9; }
.nav-item.active { background:rgba(126,240,166,.08); color:#fff; box-shadow:none; }
.nav-item.active .step { background:rgba(126,240,166,.16); color:var(--acc); }
.nav-label { color:#4b5753; letter-spacing:.16em; font-weight:500; padding-top:1.3rem; }
header.sticky { background:rgba(4,6,6,.7) !important; border-color:rgba(255,255,255,.05) !important; }
#search { background:rgba(255,255,255,.035) !important; border-color:rgba(255,255,255,.06) !important; border-radius:12px !important; }
.card { background:linear-gradient(180deg, rgba(255,255,255,.035), rgba(255,255,255,.012)); border:1px solid rgba(255,255,255,.07); border-radius:20px;
  box-shadow:inset 0 1px 0 rgba(255,255,255,.04), 0 24px 60px -40px rgba(0,0,0,.9); }
a.card, .card[data-alert], .card[data-go] { transition:border-color .2s, transform .2s; }
a.card:hover, .card[data-alert]:hover, .card[data-go]:hover { border-color:rgba(126,240,166,.28); }
.alert { border-radius:16px; padding:1.05rem 1.1rem 1.05rem 1.3rem; background:rgba(255,255,255,.02); border-color:rgba(255,255,255,.06); }
.alert:hover { background:rgba(255,255,255,.04); }
.alert.selected { border-color:rgba(126,240,166,.35); background:rgba(126,240,166,.05); }
.tile { border-radius:16px; background:rgba(255,255,255,.03); }
.mc-k { font-size:12.5px; color:#8a978f; display:flex; align-items:center; gap:8px; }
.mc-v { font-family:'Instrument Serif', Georgia, serif; font-size:44px; line-height:1; color:#fff; margin-top:10px; letter-spacing:-.01em; }
.mc-v span { font-family:Inter, sans-serif; font-size:13px; color:#6b7a72; margin-left:4px; }
.mc-s { font-size:12.5px; color:#6b7a72; margin-top:6px; }
.btn { border-radius:999px !important; }
#drawer { background:#070a0a !important; border-color:rgba(255,255,255,.07) !important; }
#drawer h2 { font-family:'Instrument Serif', Georgia, serif; font-weight:400 !important; font-size:30px !important; letter-spacing:-.01em; }
.chip-live { background:rgba(126,240,166,.07); border-color:rgba(126,240,166,.2); color:var(--acc); }
h2.text-\[17px\] { font-family:'Instrument Serif', Georgia, serif; font-size:24px !important; font-weight:400 !important; letter-spacing:-.005em; }
@media (max-width: 640px) { .mc-v { font-size:38px; } }
.tile .font-extrabold, .tile-big > div:last-child { font-family:'Instrument Serif', Georgia, serif; font-weight:400 !important; letter-spacing:-.01em; }
.tile-big > div:last-child { font-size:42px !important; }
@media (max-width:640px){ .tile-big > div:last-child { font-size:32px !important; } }
.tag.real, .tag.demo { display:none !important; }
.sev, .section-title, .nav-label, .ba-label, .bl { text-transform:none !important; letter-spacing:.01em !important; }
.sev { font-size:11.5px; font-weight:600; }

/* plots dashboard */
.cap-bar { position:relative; height:28px; background:rgba(255,255,255,.06); border-radius:8px; overflow:hidden; }
.cap-bar .rng, .cap-bar .warnz { position:absolute; top:0; height:100%; }
.cap-bar .rng { background:rgba(74,222,128,.28); }
.cap-bar .warnz { background:rgba(245,158,11,.30); }
.cap-bar .claim { position:absolute; top:8px; height:12px; border-radius:6px; }
.cap-bar .maxl { position:absolute; top:0; width:2px; height:100%; background:#e8efe9; }
.plot-btns { display:flex; flex-wrap:wrap; gap:8px; }
.plot-btns button { padding:7px 12px; border-radius:999px; border:1px solid rgba(255,255,255,.08); background:transparent; color:#cbd5e1; font-size:13px; cursor:pointer; }
.plot-btns button.on { background:rgba(74,222,128,.14); color:#fff; border-color:rgba(74,222,128,.35); }
#plotMap { height:280px; border-radius:12px; overflow:hidden; }
.flows-frame { width:100%; height:640px; border:0; border-radius:16px; background:#0b1016; display:block; }
@media (max-width: 700px) { .flows-frame { height:520px; } }
.origin-sel { background:#111616; border:1px solid rgba(255,255,255,.08); color:#e2e8f0; border-radius:10px; padding:8px 12px; font-size:14px; }
.ledger { max-height:320px; overflow:auto; }
