/* Portfolio Hub — "Aurora Glass" theme. Dark is the signature look; light keeps the same structure. */
:root {
  --bg: #060912; --bg2: #0b1120;
  --glass: rgba(20, 28, 48, .55); --glass-2: rgba(30, 41, 66, .55); --glass-hi: rgba(255, 255, 255, .06);
  --line: rgba(148, 170, 220, .14); --line-hi: rgba(148, 170, 220, .28);
  --text: #eef2fb; --muted: #8e9ab3; --dim: #5d6880;
  --accent: #2ee6c5; --accent-2: rgba(46, 230, 197, .12); --accent-b: #6c8cff; --accent-c: #b07cff;
  --grad: linear-gradient(135deg, #2ee6c5 0%, #6c8cff 55%, #b07cff 100%);
  --gain: #3ef0a1; --loss: #ff6b81; --warn: #ffc76b; --warn-bg: rgba(255, 199, 107, .1);
  --s1: #8e9ab3; --s2: #3ef0a1; --s3: #ffc76b; --s4: #ff6b81;
  --c1: #2ee6c5; --c2: #6c8cff; --c3: #ffc76b; --c4: #b07cff; --c5: #ff8a65; --c6: #4dd0e1; --c7: #9aa7bb; --c8: #ff6fb1;
  --panel: #111a2e; --panel2: rgba(255, 255, 255, .04);
  --radius: 18px;
  --shadow: 0 1px 0 rgba(255,255,255,.06) inset, 0 20px 40px -20px rgba(0,0,0,.7), 0 2px 6px rgba(0,0,0,.35);
  --shadow-hi: 0 1px 0 rgba(255,255,255,.08) inset, 0 30px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(46,230,197,.18), 0 0 40px -10px rgba(46,230,197,.35);
  --font: 'Inter', 'Hind Siliguri', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', 'Hind Siliguri', 'Inter', sans-serif;
  color-scheme: dark;
}
:root[data-theme="light"] {
  --bg: #eef2f9; --bg2: #e4eaf5;
  --glass: rgba(255, 255, 255, .72); --glass-2: rgba(255, 255, 255, .85); --glass-hi: rgba(255, 255, 255, .9);
  --line: rgba(30, 45, 80, .1); --line-hi: rgba(30, 45, 80, .2);
  --text: #0e1526; --muted: #5a6782; --dim: #8a95ad;
  --accent: #0aa58c; --accent-2: rgba(10, 165, 140, .1); --accent-b: #4b67e6; --accent-c: #8a4fe0;
  --grad: linear-gradient(135deg, #0aa58c 0%, #4b67e6 55%, #8a4fe0 100%);
  --gain: #0a9a5a; --loss: #d93a52; --warn: #a86100; --warn-bg: #fff3dc;
  --c1: #0aa58c; --c2: #4b67e6; --c3: #d99a00; --c4: #8a4fe0; --c5: #e2683f; --c6: #1aa3b8; --c7: #6b7a90; --c8: #d14b8f;
  --panel: #ffffff; --panel2: rgba(30, 45, 80, .04);
  --shadow: 0 1px 0 #fff inset, 0 18px 40px -22px rgba(30,45,80,.35), 0 2px 6px rgba(30,45,80,.08);
  --shadow-hi: 0 1px 0 #fff inset, 0 28px 50px -20px rgba(30,45,80,.4), 0 0 0 1px rgba(10,165,140,.25);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; color: var(--text); font: 14px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body { background: var(--bg); min-height: 100vh; }
/* aurora background */
body::before { content: ''; position: fixed; inset: -20%; z-index: -2; pointer-events: none;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(46,230,197,.18), transparent 70%),
    radial-gradient(35% 30% at 85% 5%, rgba(108,140,255,.20), transparent 70%),
    radial-gradient(45% 40% at 70% 90%, rgba(176,124,255,.14), transparent 70%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%);
  animation: aurora 28s ease-in-out infinite alternate; }
body::after { content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .35;
  background-image: radial-gradient(rgba(255,255,255,.07) 1px, transparent 1px); background-size: 24px 24px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
:root[data-theme="light"] body::after { background-image: radial-gradient(rgba(30,45,80,.08) 1px, transparent 1px); }
@keyframes aurora { 0% { transform: translate3d(0,0,0) scale(1); } 100% { transform: translate3d(-3%, 2%, 0) scale(1.08); } }
@media (prefers-reduced-motion: reduce) { body::before { animation: none; } .tilt { transform: none !important; } }

a { color: var(--accent); }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.gain { color: var(--gain); } .loss { color: var(--loss); } .muted { color: var(--muted); } .small { font-size: 12px; }
.gradtext { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(18px) saturate(140%); -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 82%, transparent), color-mix(in srgb, var(--bg) 60%, transparent)); border-bottom: 1px solid var(--line); }
.top-in { max-width: 1360px; margin: 0 auto; padding: 12px 20px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.brand { font: 700 17px/1 var(--display); letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand .dot { width: 34px; height: 34px; border-radius: 11px; background: var(--grad); display: grid; place-items: center; color: #04121a;
  box-shadow: 0 8px 20px -6px rgba(46,230,197,.6), inset 0 1px 0 rgba(255,255,255,.5); transform: perspective(200px) rotateX(10deg) rotateY(-12deg); }
.brand .dot svg { width: 20px; height: 20px; }
.asof { font-size: 12px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.asof::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--gain); box-shadow: 0 0 0 3px rgba(62,240,161,.18), 0 0 10px var(--gain); animation: pulse 2.4s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(62,240,161,0), 0 0 4px var(--gain); } }
.iconbtn { border: 1px solid var(--line); background: var(--glass); border-radius: 10px; padding: 7px 11px; cursor: pointer; transition: .2s; }
.iconbtn:hover { border-color: var(--line-hi); background: var(--glass-2); }
.menu { position: relative; }
.menu-list { position: absolute; right: 0; top: 44px; background: var(--panel); border: 1px solid var(--line-hi); border-radius: 14px; box-shadow: var(--shadow-hi); min-width: 210px; padding: 6px; display: none; }
.menu-list.open { display: block; }
.menu-list button { display: block; width: 100%; text-align: left; border: 0; background: none; padding: 9px 12px; border-radius: 8px; cursor: pointer; }
.menu-list button:hover { background: var(--panel2); }

.accbar { max-width: 1360px; margin: 0 auto; padding: 0 20px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.accbar::-webkit-scrollbar { display: none; }
.pill { border: 1px solid var(--line); background: var(--glass); border-radius: 999px; padding: 7px 16px; cursor: pointer; white-space: nowrap; transition: .25s; font-weight: 500; }
.pill:hover { border-color: var(--line-hi); transform: translateY(-1px); }
.pill.on { background: var(--grad); border-color: transparent; color: #04121a; font-weight: 700; box-shadow: 0 10px 24px -10px rgba(46,230,197,.7); }

/* ---------- layout ---------- */
.wrap { max-width: 1360px; margin: 0 auto; padding: 20px; display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 24px; }
main { min-width: 0; animation: rise .45s cubic-bezier(.2,.8,.2,1); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.side { position: sticky; top: 124px; align-self: start; display: flex; flex-direction: column; gap: 4px; padding: 8px; border-radius: var(--radius); background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(14px); box-shadow: var(--shadow); }
.side button { display: flex; align-items: center; gap: 10px; text-align: left; border: 0; background: none; padding: 10px 12px; border-radius: 12px; cursor: pointer; color: var(--muted); font-weight: 500; transition: .2s; position: relative; }
.side button svg { width: 18px; height: 18px; flex: none; opacity: .85; }
.side button:hover { background: var(--panel2); color: var(--text); }
.side button.on { color: var(--text); background: linear-gradient(90deg, var(--accent-2), transparent); }
.side button.on::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--grad); box-shadow: 0 0 12px var(--accent); }
.side button.on svg { color: var(--accent); opacity: 1; }
@media (max-width: 860px) {
  .wrap { grid-template-columns: minmax(0, 1fr); padding: 14px 16px 96px; }
  .side { position: fixed; bottom: 10px; left: 10px; right: 10px; top: auto; z-index: 30; flex-direction: row; overflow-x: auto; padding: 6px; gap: 2px; scrollbar-width: none; }
  .side button { flex-direction: column; gap: 3px; white-space: nowrap; padding: 7px 10px; font-size: 11px; }
  .side button.on::before { left: 20%; right: 20%; top: auto; bottom: 2px; width: auto; height: 3px; }
}

h1 { font: 700 26px/1.15 var(--display); letter-spacing: -.02em; margin: 0 0 4px; }
h2 { font: 600 15px/1.3 var(--display); margin: 0 0 14px; letter-spacing: -.005em; }
h3 { font-size: 11px; margin: 0 0 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.sub { color: var(--muted); margin: 0 0 18px; font-size: 13px; }

/* ---------- glass cards with depth ---------- */
.card { position: relative; background: linear-gradient(160deg, var(--glass-2), var(--glass)); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 18px; min-width: 0; backdrop-filter: blur(16px) saturate(130%); -webkit-backdrop-filter: blur(16px) saturate(130%); }
.card::before { content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 1px;
  background: linear-gradient(160deg, rgba(255,255,255,.14), transparent 40%, transparent 70%, rgba(46,230,197,.12));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; }
:root[data-theme="light"] .card::before { background: linear-gradient(160deg, rgba(255,255,255,1), transparent 50%, rgba(10,165,140,.12)); }
.tilt { transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; transform-style: preserve-3d; will-change: transform; }
.tilt:hover { box-shadow: var(--shadow-hi); }
.tilt .glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(400px circle at var(--gx, 50%) var(--gy, 0%), rgba(255,255,255,.10), transparent 45%); }
.tilt:hover .glare { opacity: 1; }

.grid { display: grid; gap: 16px; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.two { grid-template-columns: 1fr 1fr; } .three { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 1000px) { .two, .three { grid-template-columns: 1fr; } }
.kpi .label { color: var(--muted); font-size: 12px; display: flex; align-items: center; gap: 8px; }
.kpi .label i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--accent-2); color: var(--accent); font-style: normal; }
.kpi .label i svg { width: 15px; height: 15px; }
.kpi .val { font: 700 24px/1.15 var(--display); margin-top: 10px; letter-spacing: -.02em; transform: translateZ(30px); }
.kpi .hint { font-size: 12px; color: var(--muted); margin-top: 6px; }
.kpi.big { grid-column: span 2; } @media (max-width: 520px) { .kpi.big { grid-column: auto; } }
.kpi.big .val { font-size: 30px; }
.note { background: var(--warn-bg); color: var(--warn); border: 1px solid color-mix(in srgb, var(--warn) 25%, transparent); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.info { background: var(--accent-2); color: var(--accent); border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); border-radius: 14px; padding: 12px 14px; font-size: 13px; }
.section { margin-top: 20px; }
.chartbox { position: relative; height: 300px; }
.chartbox.sm { height: 240px; }

/* ---------- HERO ---------- */
.hero { position: relative; overflow: hidden; border-radius: 26px; padding: 28px; border: 1px solid var(--line-hi);
  background: radial-gradient(120% 140% at 0% 0%, rgba(46,230,197,.20), transparent 50%), radial-gradient(100% 120% at 100% 0%, rgba(108,140,255,.25), transparent 55%), linear-gradient(160deg, #0f1a33, #0a1022);
  box-shadow: 0 40px 80px -30px rgba(0,0,0,.8), 0 1px 0 rgba(255,255,255,.08) inset; display: grid; grid-template-columns: 1.4fr 1fr; gap: 24px; isolation: isolate; color: #eef2fb; }
:root[data-theme="light"] .hero { background: radial-gradient(120% 140% at 0% 0%, rgba(46,230,197,.35), transparent 50%), radial-gradient(100% 120% at 100% 0%, rgba(108,140,255,.4), transparent 55%), linear-gradient(160deg, #0f1a33, #16224a); }
.hero .floor { position: absolute; left: -20%; right: -20%; bottom: -55%; height: 120%; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(46,230,197,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(108,140,255,.35) 1px, transparent 1px);
  background-size: 46px 46px; transform: perspective(500px) rotateX(62deg); transform-origin: top; animation: floor 6s linear infinite;
  mask-image: linear-gradient(180deg, transparent 0%, #000 35%, transparent 95%); }
@keyframes floor { to { background-position: 0 46px, 0 0; } }
.hero .orb { position: absolute; width: 420px; height: 420px; right: -120px; top: -160px; z-index: -1; border-radius: 50%; filter: blur(10px);
  background: radial-gradient(circle at 35% 35%, rgba(176,124,255,.55), rgba(108,140,255,.25) 40%, transparent 70%); animation: drift 14s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-40px, 30px) scale(1.1); } }
.hero .eyebrow { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: #9fb0d6; }
.hero .big { font: 700 clamp(34px, 5.4vw, 58px)/1.02 var(--display); letter-spacing: -.035em; margin: 8px 0 14px; text-shadow: 0 10px 40px rgba(46,230,197,.35); }
.hero .chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(8px); }
.chip.gain { color: #3ef0a1; background: rgba(62,240,161,.1); border-color: rgba(62,240,161,.25); }
.chip.loss { color: #ff8095; background: rgba(255,107,129,.1); border-color: rgba(255,107,129,.25); }
.hero .spark { height: 90px; margin-top: 18px; }
.hero .meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.hero .meta div { padding: 10px 12px; border-radius: 14px; background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); }
.hero .meta b { display: block; font: 700 16px/1.2 var(--display); margin-top: 2px; }
.hero .meta span { font-size: 11px; color: #9fb0d6; }
.ringwrap { display: grid; place-items: center; perspective: 900px; }
.ring3d { position: relative; width: min(260px, 70vw); aspect-ratio: 1; transform: rotateX(28deg) rotateZ(-8deg); transform-style: preserve-3d; animation: spin3d 18s ease-in-out infinite alternate; }
@keyframes spin3d { to { transform: rotateX(18deg) rotateZ(8deg); } }
.ring3d .disc { position: absolute; inset: 0; border-radius: 50%; box-shadow: 0 30px 60px -10px rgba(0,0,0,.7), 0 0 60px -10px rgba(46,230,197,.4);
  -webkit-mask: radial-gradient(circle, transparent 54%, #000 55%); mask: radial-gradient(circle, transparent 54%, #000 55%); }
.ring3d .disc.d2 { transform: translateZ(-14px); filter: brightness(.45); }
.ring3d .disc.d3 { transform: translateZ(-7px); filter: brightness(.65); }
.ring3d .center { position: absolute; inset: 22%; border-radius: 50%; display: grid; place-items: center; text-align: center; transform: translateZ(24px);
  background: radial-gradient(circle at 30% 25%, rgba(255,255,255,.14), rgba(255,255,255,.02)); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(6px); }
.ring3d .center b { font: 700 22px/1 var(--display); display: block; }
.ring3d .center span { font-size: 11px; color: #9fb0d6; }
.ringlegend { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 14px; margin-top: 16px; font-size: 12px; color: #c5d0ea; }
.ringlegend span { display: inline-flex; align-items: center; gap: 6px; }
@media (max-width: 900px) { .hero { grid-template-columns: 1fr; padding: 22px; } .hero .meta { grid-template-columns: 1fr 1fr; } }

/* ---------- tables ---------- */
.tbl-wrap { overflow-x: auto; margin: 0 -18px; padding: 0 18px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; }
th, td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
th { font-size: 11px; color: var(--muted); font-weight: 600; white-space: nowrap; text-transform: uppercase; letter-spacing: .05em; position: sticky; top: 0; }
td.r, th.r { text-align: right; }
tbody tr { transition: background .15s; }
tbody tr:hover td { background: var(--panel2); }
tr.click { cursor: pointer; }
tr.sub td { background: var(--panel2); font-size: 12px; }
.tag { display: inline-block; font-size: 11px; padding: 2px 9px; border-radius: 999px; background: var(--panel2); color: var(--muted); border: 1px solid var(--line); white-space: nowrap; font-weight: 600; }
.tag.z { background: rgba(255,107,129,.12); color: var(--loss); border-color: rgba(255,107,129,.3); }
.tag.in { background: rgba(62,240,161,.12); color: var(--gain); border-color: rgba(62,240,161,.3); }
.tag.out { background: rgba(255,107,129,.12); color: var(--loss); border-color: rgba(255,107,129,.3); }
.tag.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.sym { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; font: 700 11px/1 var(--display); color: #04121a; margin-right: 8px; vertical-align: middle; box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.4); }

/* bars */
.bar { height: 8px; background: var(--panel2); border-radius: 99px; position: relative; overflow: visible; min-width: 100px; box-shadow: inset 0 1px 2px rgba(0,0,0,.3); }
.bar > i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px -2px var(--accent); }
.bar > i.over { background: linear-gradient(90deg, #ff9a6b, #ff6b81); box-shadow: 0 0 12px -2px var(--loss); }
.bar > b { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--text); opacity: .7; border-radius: 2px; }

/* forms */
.form { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; }
.form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--muted); }
input, select { border: 1px solid var(--line); background: var(--panel2); border-radius: 10px; padding: 8px 11px; min-width: 0; transition: .2s; }
select option { background: var(--panel); }
input:focus, select:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-2); }
.btn { border: 0; background: var(--grad); color: #04121a; border-radius: 10px; padding: 9px 16px; cursor: pointer; font-weight: 700; box-shadow: 0 10px 24px -12px rgba(46,230,197,.8); transition: .2s; }
.btn:hover { transform: translateY(-1px); filter: brightness(1.08); }
.btn.ghost { background: var(--panel2); color: var(--text); box-shadow: none; border: 1px solid var(--line); }
.btn:disabled { opacity: .5; cursor: default; }

/* stage cards */
.stage-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 900px) { .stage-cols { grid-template-columns: 1fr 1fr; } }
.stage-col { border-radius: 16px; border: 1px dashed var(--line-hi); padding: 14px; min-height: 130px; background: var(--panel2); }
.stage-col h3 { display: flex; align-items: center; gap: 6px; }
.sw { width: 10px; height: 10px; border-radius: 3px; display: inline-block; box-shadow: 0 0 10px currentColor; }
.steps { display: grid; gap: 10px; }
.step { display: grid; grid-template-columns: 34px 1fr auto; gap: 12px; align-items: center; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--panel2); }
.step .n { width: 34px; height: 34px; border-radius: 10px; background: var(--grad); color: #04121a; display: grid; place-items: center; font: 700 15px/1 var(--display); box-shadow: 0 8px 18px -8px rgba(46,230,197,.8); }

.empty { text-align: center; padding: 44px 10px; color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--grad); color: #04121a; font-weight: 700; padding: 10px 18px; border-radius: 12px; z-index: 99; box-shadow: var(--shadow-hi); }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; margin-top: 10px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }

/* auth pages */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 16px; perspective: 1200px; }
.auth .card { width: 100%; max-width: 400px; padding: 32px; box-shadow: var(--shadow-hi); }
.auth h1 { margin-bottom: 4px; } .auth form { display: grid; gap: 14px; margin-top: 20px; }
.auth label { display: grid; gap: 5px; font-size: 13px; color: var(--muted); }
.auth .err { color: var(--loss); font-size: 13px; min-height: 18px; }
.lang-switch { position: fixed; top: 14px; right: 16px; }

/* ---------- stages & report ---------- */
.stagebadge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); white-space: nowrap; }
.stagebadge::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--c); box-shadow: 0 0 10px var(--c); }
.stagebadge.big { font-size: 15px; padding: 8px 14px; }
.mixbar { display: flex; height: 16px; border-radius: 99px; overflow: hidden; gap: 2px; box-shadow: inset 0 1px 3px rgba(0,0,0,.4); }
.mixbar i { display: block; min-width: 3px; }
.stage-col { border-style: solid; border-color: color-mix(in srgb, var(--c) 30%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--c) 10%, transparent), transparent 60%); }
.stile { position: relative; display: inline-flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 3px; margin: 0 6px 8px 0; padding: 18px 12px 8px; min-width: max(var(--w), 96px); min-height: calc(var(--w) * .62);
  border-radius: 12px; border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); background: var(--glass-2); cursor: pointer; text-align: left; box-shadow: var(--shadow); }
.stile b { font: 700 13px/1 var(--display); } .stile span { font-size: 11px; color: var(--muted); }
.stile small { position: absolute; right: 8px; top: 5px; font-size: 10px; font-weight: 700; color: var(--c); }
.stile .chg { position: absolute; right: 6px; bottom: 5px; font-style: normal; font-size: 10px; font-weight: 700; color: var(--warn); }
.strip { display: grid; grid-template-columns: repeat(26, 1fr); gap: 3px; }
.strip i { height: 22px; border-radius: 4px; display: block; }
.step .ck { font-size: 18px; }
.step.result { border-color: color-mix(in srgb, var(--c) 45%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.step.result .n { background: var(--c); }
.sc-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sc-head .sym { width: 44px; height: 44px; font-size: 14px; border-radius: 12px; }
.alerts { display: grid; gap: 8px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; background: var(--panel2); border: 1px solid var(--line); font-size: 13px; }
.alert .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; background: var(--muted); }
.alert.high .dot { background: var(--loss); box-shadow: 0 0 10px var(--loss); } .alert.mid .dot { background: var(--warn); } .alert.info .dot { background: var(--accent); }
.chgrow { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 6px 0; border-bottom: 1px solid var(--line); }
.form label.chk { flex-direction: row; align-items: center; gap: 6px; color: var(--text); font-size: 13px; }
@media print {
  .top, .side, #pr, .btn, .iconbtn { display: none !important; }
  body { background: #fff; color: #000; } body::before, body::after { display: none; }
  .wrap { display: block; padding: 0; } .card { box-shadow: none; backdrop-filter: none; background: #fff; border: 1px solid #ccc; break-inside: avoid; }
}
