/* portal-only additions */
.chart{display:flex;align-items:flex-end;gap:4px;height:130px;padding:6px 2px 0;direction:ltr}
.chart .col{flex:1;display:flex;flex-direction:column-reverse;gap:2px;height:100%;justify-content:flex-start;position:relative}
.chart .col i{display:block;width:100%;border-radius:3px;min-height:0}
.chart .col .ok{background:rgba(255,255,255,.78)}
.chart .col .bad{background:#f87171}
.chart-axis{display:flex;justify-content:space-between;direction:ltr;font-size:11px;color:var(--muted,#8a8a8a);margin-top:6px}
.legend{display:flex;gap:14px;font-size:12px;color:var(--muted,#8a8a8a);margin-top:10px}
.legend b{display:inline-block;width:9px;height:9px;border-radius:2px;margin-inline-end:6px;vertical-align:middle}
.day{margin-bottom:16px}.day h3{margin:0 0 8px;font-size:14px}
.ev-row{display:flex;gap:12px;align-items:center;padding:7px 0;border-bottom:1px solid rgba(255,255,255,.06)}
.ev-row:last-child{border-bottom:0}.ev-row .tm{width:54px;direction:ltr;font-variant-numeric:tabular-nums;color:var(--muted,#8a8a8a)}
.split{display:grid;grid-template-columns:260px 1fr;gap:16px;align-items:start}
@media(max-width:860px){.split{grid-template-columns:1fr}.cols2{grid-template-columns:1fr}.sidebar{position:static;width:auto;flex-direction:row;overflow:auto}.shell{flex-direction:column}}
.pv{white-space:pre-wrap;word-break:break-word;padding:14px 16px;border-radius:14px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.08);min-height:60px}
.pv blockquote{margin:6px 0;padding-inline-start:10px;border-inline-start:3px solid rgba(255,255,255,.3)}
.pv tg-spoiler,.pv .sp{background:rgba(255,255,255,.18);color:transparent;border-radius:4px}
.bigstat{font-size:30px;font-weight:700;line-height:1.1}
.lead-line{font-size:15px;color:var(--muted,#9a9a9a);margin:4px 0 0}
.step{display:flex;gap:12px;align-items:flex-start;padding:8px 0}.step .n{flex:none;width:26px;height:26px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.1);font-size:13px}
.mini-steps{list-style:none;display:flex;gap:8px;margin:14px 0 18px;padding:0;flex-wrap:wrap}
.mini-steps li{display:flex;align-items:center;gap:8px;font-size:13px;color:var(--muted,#8a8a8a)}
.mini-steps li span{width:24px;height:24px;border-radius:50%;display:grid;place-items:center;background:rgba(255,255,255,.08);font-size:12px}
.mini-steps li.on{color:#fff}.mini-steps li.on span{background:#fff;color:#0a0a0a}
.mini-steps li.done span{background:rgba(255,255,255,.2);color:#fff}
.mini-steps li+li::before{content:"";width:18px;height:1px;background:rgba(255,255,255,.18);margin-inline-end:2px}

/* =====================================================================
   Portal polish: restrained glass, calm motion, nothing decorative
   ===================================================================== */
.page-head h1{font-size:34px;font-weight:600;letter-spacing:-.025em}
.page-head .sub{font-size:15px;margin-top:6px}
.view>*{animation:rise .5s var(--ease) both}
.view>*:nth-child(2){animation-delay:.04s}.view>*:nth-child(3){animation-delay:.08s}.view>*:nth-child(4){animation-delay:.12s}.view>*:nth-child(5){animation-delay:.16s}
@keyframes rise{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}
@keyframes grow{from{transform:scaleY(0)}to{transform:scaleY(1)}}
.btn{border-radius:14px}
.btn.lg{padding:13px 24px;font-size:15.5px;border-radius:16px}

/* ring gauges (overview): thin, quiet */
.rings{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin:6px 0 4px}
.ringbox{position:relative;text-align:center}
.rg{width:100%;max-width:96px;display:block;margin:0 auto;transform:rotate(-90deg)}
.rg circle{fill:none;stroke-width:5}
.rg-bg{stroke:rgba(255,255,255,.09)}
.rg-fg{stroke:rgba(255,255,255,.92);stroke-linecap:round;transition:stroke-dashoffset 1.1s var(--ease)}
.rg-c{position:absolute;inset:0 0 26px;display:flex;flex-direction:column;align-items:center;justify-content:center;line-height:1.1}
.rg-c b{font-size:20px;font-weight:600}.rg-c small{font-size:11.5px;color:var(--t3)}
.rg-l{margin-top:8px;font-size:12.5px;color:var(--t2)}.rg-l i{margin-inline-end:6px;opacity:.6}

/* live chart */
.chart .col i{border-radius:4px 4px 2px 2px;transform-origin:bottom}
.chart.anim .col i{animation:grow .7s var(--ease) both}
.chart .col .ok{background:rgba(255,255,255,.82)}
.chart .col .bad{background:#f27570}

/* ---------------- sign-in / register / recover ---------------- */
body.auth-mode .view{padding:0;display:block;overflow:auto}
.view>.hero-login{max-width:none;margin:0;animation:none}
.hero-login{min-height:100%;display:grid;grid-template-columns:minmax(360px,440px) minmax(0,1fr);gap:clamp(28px,7vw,110px);align-items:center;padding:36px clamp(24px,6vw,96px)}
.hero-card{padding:32px 32px 26px;border-radius:26px;background:rgba(255,255,255,.05);border:1px solid rgba(255,255,255,.1);backdrop-filter:blur(22px) saturate(140%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 30px 80px rgba(0,0,0,.5);animation:rise .55s var(--ease) both}
.hero-card .auth-body{text-align:right}
.hero-card h1{font-size:27px;font-weight:600;letter-spacing:-.02em;margin-bottom:6px}
.hero-card .lead{margin:0 0 20px;color:var(--t2);font-size:14.5px;max-width:none}
.hero-copy{display:flex;flex-direction:column;align-items:flex-start;gap:0;animation:rise .7s var(--ease) .1s both}
.hero-copy .orb{width:96px;height:96px;margin-bottom:28px}
.hero-copy .orb img{width:96px;height:96px;border-radius:28px}
.hero-copy .orb::before,.hero-copy .orb::after{border-radius:31px}
.hero-title{font-size:clamp(38px,4.6vw,60px);font-weight:600;letter-spacing:-.035em;line-height:1.02;direction:ltr;text-align:left}
.hero-sub{font-size:clamp(16px,1.4vw,19px);color:var(--t2);margin-top:16px;max-width:460px;line-height:1.6}
@media (max-width:900px){.hero-login{grid-template-columns:minmax(0,1fr);padding-block:24px}.hero-copy{display:none}}
@media (prefers-reduced-motion:reduce){.view>*,.hero-card,.hero-copy{animation:none}}
/* 3D backdrop (js/scene.js): sits behind the app, never intercepts the pointer */
#scene{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
html.no-webgl #scene{display:none}
#app{position:relative;z-index:1;background:transparent}
.shell{background:transparent}
.hero-copy{align-self:end;padding-bottom:5vh}
.hero-lead{font-size:clamp(20px,2vw,26px);font-weight:600;letter-spacing:-.01em;margin-top:18px;max-width:520px;line-height:1.35}
.hero-lead+.hero-sub{margin-top:8px;font-size:clamp(15px,1.25vw,17px);color:var(--t3)}

/* ---------------- overview layout ---------------- */
.cols-main{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:16px;margin-bottom:16px;align-items:start}
.cols3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin-bottom:16px;align-items:start}
@media (max-width:1100px){.cols3{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
@media (max-width:860px){.cols-main,.cols3{grid-template-columns:minmax(0,1fr)}}
.kpi .n{font-size:38px;font-weight:600;letter-spacing:-.02em;line-height:1.1}
.chart{height:150px}
/* getting started */
.gs{margin-bottom:16px}
.gs-head{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:16px}
.gs-head h2{margin-bottom:4px}
.gs-steps{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
@media (max-width:860px){.gs-steps{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}}
.gs-step{display:flex;gap:12px;align-items:center;padding:14px;border-radius:16px;border:1px solid rgba(255,255,255,.09);background:rgba(255,255,255,.025)}
.gs-step b{display:block;font-size:14px;font-weight:600}.gs-step small{display:block;color:var(--t3);font-size:12px;margin-top:2px}
.gs-ico{flex:none;width:38px;height:38px;border-radius:12px;display:grid;place-items:center;background:rgba(255,255,255,.07);font-size:15px;color:var(--t2)}
.gs-step.now{border-color:rgba(255,255,255,.35);background:rgba(255,255,255,.06)}.gs-step.now .gs-ico{background:#fff;color:#050505}
.gs-step.done .gs-ico{background:rgba(107,212,154,.16);color:var(--ok)}.gs-step.done small{color:var(--ok)}
/* activity feed + ranking */
.feed-ico{flex:none;width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-size:12px;background:rgba(255,255,255,.07)}
.feed-ico.ok{color:var(--ok);background:rgba(107,212,154,.14)}.feed-ico.err{color:var(--err);background:rgba(242,117,112,.14)}.feed-ico.warn{color:var(--warn);background:rgba(220,184,95,.14)}
.rank-row{display:grid;grid-template-columns:22px 1fr auto;gap:4px 10px;align-items:center;padding:7px 0}
.rank-n{color:var(--t3);font-size:12.5px}.rank-bar{grid-column:2/4;height:4px;border-radius:4px;background:rgba(255,255,255,.08);overflow:hidden}.rank-bar i{display:block;height:100%;border-radius:4px;background:rgba(255,255,255,.8)}
.cols-main,.cols3,.cols2{align-items:stretch}

/* ---------------- sidebar ---------------- */
.sidebar{width:252px;margin:14px 14px 14px 0;height:calc(100vh - 28px);border-radius:26px;padding:16px 12px 12px;gap:2px;border:1px solid rgba(255,255,255,.1);
  background:linear-gradient(180deg,rgba(255,255,255,.075),rgba(255,255,255,.024));backdrop-filter:blur(26px) saturate(150%);
  box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 24px 70px rgba(0,0,0,.45);overflow-y:auto}
.sidebar .brandrow{display:flex;align-items:center;gap:12px;padding:4px 8px 14px;margin-bottom:2px}
.sidebar .brandrow img{width:40px;height:40px;border-radius:12px;box-shadow:0 0 0 1px rgba(255,255,255,.14)}
.sidebar .brandrow b{display:block;font-size:16px;font-weight:600;letter-spacing:-.01em}
.sidebar .brandrow small{display:block;color:var(--t3);font-size:12px;margin-top:1px}
.nav-group{font-size:11.5px;color:var(--t3);padding:14px 12px 6px}
.sidebar .nav-item{display:flex;align-items:center;gap:12px;padding:7px 10px;border-radius:15px;font-size:14.5px;color:var(--t2);transition:background .15s,color .15s}
.sidebar .nav-item i{width:32px;height:32px;display:grid;place-items:center;border-radius:11px;background:rgba(255,255,255,.05);font-size:13.5px;flex:none;transition:background .15s,color .15s}
.sidebar .nav-item:hover{background:rgba(255,255,255,.06);color:var(--t1)}
.sidebar .nav-item:hover i{background:rgba(255,255,255,.1)}
.sidebar .nav-item.active{background:rgba(255,255,255,.1);color:#fff;font-weight:600}
.sidebar .nav-item.active i{background:#fff;color:#050505}
.sidebar .nav-item.active::before{display:none}
.nav-item .pill{margin-inline-start:auto;font-style:normal;min-width:21px;height:21px;padding:0 6px;border-radius:11px;background:#fff;color:#050505;font-size:11.5px;font-weight:700;display:grid;place-items:center}
.side-card{margin:10px 2px 8px;padding:14px;border-radius:18px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08)}
.side-card b{font-size:14.5px}
.sidebar .me{border-radius:16px;background:rgba(255,255,255,.045);border:1px solid rgba(255,255,255,.08);padding:9px 10px}
@media (max-width:860px){
  .shell{flex-direction:column}
  .sidebar{width:auto;height:auto;margin:8px;flex-direction:row;overflow-x:auto;overflow-y:hidden;border-radius:20px;padding:8px;gap:4px;align-items:center}
  .sidebar .brandrow small,.nav-group,.side-card,.sidebar .me .who,.nav-spacer{display:none}
  .sidebar .brandrow{padding:0 6px;margin:0}.sidebar .nav-item{flex:none;padding:6px 8px}.sidebar .nav-item span{display:none}
}
