/* Live profile (reader health, RPS trend, match feed), compact purchase steps. 15.11.2026 */
:root{--live-ok:#7ee08a;--live-warn:#ffd27a;--live-bad:#ff8f86;--live-info:#9fc3ff}

/* Reader cards */
.reader-card{border:1px solid transparent;transition:border-color .3s}
.reader-card[data-health=warn]{border-color:#ffd27a33}
.reader-card[data-health=down]{border-color:#ff8f8640}
.health-pill{display:inline-flex;align-items:center;gap:7px;padding:5px 10px;border-radius:999px;background:#ffffff0d;font-size:12px;font-weight:700;color:var(--soft);white-space:nowrap}
.health-pill i{width:7px;height:7px;border-radius:50%;background:var(--live-ok);box-shadow:0 0 0 3px #7ee08a26}
.health-pill[data-health=warn]{color:var(--live-warn)}.health-pill[data-health=warn] i{background:var(--live-warn);box-shadow:0 0 0 3px #ffd27a26}
.health-pill[data-health=down]{color:var(--live-bad)}.health-pill[data-health=down] i{background:var(--live-bad);box-shadow:0 0 0 3px #ff8f8626;animation:noir-pulse 1.6s ease-in-out infinite}
.reader-main{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:end;gap:16px;margin:0 2px 12px}
.reader-main .reader-rps{margin:0;flex-direction:column;align-items:flex-start;gap:4px}
.reader-trend{min-width:0;display:grid;gap:4px}
.reader-trend small{font-size:11px;color:var(--muted);text-align:right;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.reader-spark{display:block;width:100%;height:42px;overflow:visible}
.reader-spark .spark-line{fill:none;stroke:var(--live-ok);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.reader-spark .spark-area{fill:var(--live-ok);opacity:.12}
.reader-spark[data-level=warn] .spark-line{stroke:var(--live-warn)}.reader-spark[data-level=warn] .spark-area{fill:var(--live-warn)}
.reader-spark[data-level=down] .spark-line{stroke:var(--live-bad)}.reader-spark[data-level=down] .spark-area{fill:var(--live-bad)}
.reader-reasons{margin:-4px 2px 12px!important;font-size:12px!important;line-height:1.45;color:var(--live-warn)!important}
.reader-card[data-health=down] .reader-reasons{color:var(--live-bad)!important}
.reader-card[data-health=down] .reader-rps strong{color:var(--live-bad)}
.reader-metrics-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.reader-metrics strong[data-bad=true]{color:var(--live-bad)}
.reader-metrics strong{font-size:15px;white-space:nowrap}
@media(max-width:420px){.reader-metrics-4{grid-template-columns:repeat(2,minmax(0,1fr))}}
.rps-total[data-health=warn] i{background:var(--live-warn);box-shadow:0 0 0 3px #ffd27a2b}
.rps-total[data-health=down] i{background:var(--live-bad);box-shadow:0 0 0 3px #ff8f862b}

/* Match feed */
.section-caption-matches{display:flex;align-items:baseline;justify-content:space-between;gap:10px}
.section-caption-matches small{font-size:12px;color:var(--muted);font-weight:500}
.match-list{display:grid;gap:8px}
.match-row{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:4px 12px;padding:13px 15px;border-radius:20px;background:var(--card);box-shadow:inset 0 1px 0 #ffffff0b;animation:live-in .45s var(--ease) both}
.match-main{min-width:0}
.match-main strong{display:block;font-size:15px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-main strong a{color:inherit;text-decoration:none}
.match-main small,.match-side small{display:block;margin-top:2px;font-size:12px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-side{text-align:right}
.match-side b{font-size:15px;font-weight:800;font-variant-numeric:tabular-nums;white-space:nowrap}
.match-foot{grid-column:1 / -1;display:flex;align-items:center;gap:8px;min-width:0;margin-top:6px}
.match-badge{flex:none;padding:3px 9px;border-radius:999px;font-size:11px;font-weight:800;background:#ffffff12;color:var(--soft)}
.match-badge[data-tone=ok]{background:#7ee08a1f;color:var(--live-ok)}
.match-badge[data-tone=bad]{background:#ff8f861c;color:var(--live-bad)}
.match-badge[data-tone=warn]{background:#ffd27a1a;color:var(--live-warn)}
.match-badge[data-tone=info]{background:#9fc3ff1a;color:var(--live-info)}
.match-reason{min-width:0;flex:1;font-size:12px;color:var(--soft);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.match-foot time{flex:none;margin-left:auto;font-size:11px;color:var(--dim);font-variant-numeric:tabular-nums}
.match-empty{margin:0;padding:16px;border-radius:20px;background:var(--card);font-size:13px;line-height:1.5;color:var(--muted)}
@keyframes live-in{from{opacity:0;transform:translateY(6px)}to{opacity:1;transform:none}}

/* Wallpapers of the «Автопокупка» card. Size follows the card: cover + a focal point per image,
   and on wide screens the card grows taller with its width so less of the picture is cut away. */
.mavro-hero{background-image:var(--hero-image,url(/static/noir-hero.webp));background-position:var(--hero-pos,72% 46%);background-size:cover;background-repeat:no-repeat}
@media(min-width:761px){.mavro-hero{min-height:clamp(200px,17vw,300px)}}
.mavro-hero[data-wallpaper]:not([data-wallpaper=default])::before{background:linear-gradient(90deg,#000000c2 0%,#00000073 40%,#0000001a 75%,#0000 100%),linear-gradient(0deg,#000000b3,#0000 60%)}
.hero-tools{display:flex;align-items:center;gap:8px;min-width:0}
.hero-wallpaper{flex:none;display:grid;place-items:center;width:34px;height:34px;min-height:34px;padding:0;border-radius:50%;background:#00000066;border:1px solid #ffffff1f;backdrop-filter:blur(14px);-webkit-backdrop-filter:blur(14px);color:#fff;transition:transform .22s var(--ease),background-color .2s}
.hero-wallpaper:hover{background:#00000099}.hero-wallpaper:active{transform:scale(.88)}
.wallpaper-hint{margin:6px 0 14px!important;font-size:13px!important;color:var(--muted)}
.wallpaper-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;padding-bottom:6px}
@media(min-width:620px){.wallpaper-grid{grid-template-columns:repeat(4,minmax(0,1fr))}}
.wallpaper-option{position:relative;display:block;aspect-ratio:16/10;min-height:0;padding:0;border:0;border-radius:18px;overflow:hidden;background:#1c1c1e;cursor:pointer;box-shadow:inset 0 0 0 1px #ffffff14;transition:box-shadow .2s,transform .22s var(--ease)}
.wallpaper-option img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .4s var(--ease)}
.wallpaper-option:hover img{transform:scale(1.04)}
.wallpaper-option:active{transform:scale(.97)}
.wallpaper-option span{position:absolute;left:0;right:0;bottom:0;padding:22px 12px 9px;text-align:left;font-size:13px;font-weight:700;color:#fff;background:linear-gradient(0deg,#000000b8,#0000)}
.wallpaper-option[aria-checked=true]{box-shadow:0 0 0 2px #fff}
.wallpaper-option[aria-checked=true]::after{content:"";position:absolute;top:8px;right:8px;width:22px;height:22px;border-radius:50%;background:#fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat}

/* Purchase card: reason under the title, one-line timing */
.purchase-reason{margin:4px 0 2px;font-size:13px;font-weight:600;line-height:1.35;color:var(--live-bad);overflow-wrap:anywhere}
.purchase-steps{display:flex;flex-wrap:wrap;align-items:center;gap:6px 0;list-style:none;margin:0 22px;padding:14px 0 16px;border-top:1px solid #ffffff0f}
.purchase-steps li{display:inline-flex;align-items:baseline;gap:5px;font-size:12px;color:var(--muted);white-space:nowrap}
.purchase-steps li b{font-weight:700;color:#e6e6eb;font-variant-numeric:tabular-nums}
.purchase-steps li[data-complete=false] b{color:var(--dim);font-weight:500}
.purchase-steps li+li:not(.steps-caption)::before{content:"→";margin:0 8px;color:var(--dim)}
.purchase-steps li.steps-caption{margin-right:10px;padding:2px 8px;border-radius:999px;background:#ffffff0b;font-size:11px}
.purchase-steps li.steps-caption+li::before{content:none}
@media(max-width:760px){.purchase-steps{margin:0 16px;padding:12px 0 14px}.purchase-steps li+li:not(.steps-caption)::before{margin:0 6px}}


/* ---------- Accent tone from the wallpaper (set on :root by applyAccent; absent for «Стандартные») ---------- */
:root[data-accent]{--ok:var(--accent);--live-ok:var(--accent)}
:root[data-accent] button.primary,:root[data-accent] button.primary:hover:not(:disabled),:root[data-accent] .page-heading>.actions button.primary,
:root[data-accent] .tile-button.primary,:root[data-accent] .quantity-infinity[aria-pressed=true],
:root[data-accent] .analytics-tabs button[aria-pressed=true],:root[data-accent] .editor-analytics-buttons button[aria-pressed=true]{background:var(--accent);color:#0b0b0c;border-color:transparent}
:root[data-accent] button.primary:active:not(:disabled){background:rgb(var(--accent-rgb) / .8)}
:root[data-accent] .switch[aria-checked=true]:before{background:var(--accent)}
:root[data-accent] .card-progress>i{background:linear-gradient(90deg,rgb(var(--accent-rgb) / .75),var(--accent))}
:root[data-accent] .nav-indicator,:root[data-accent] .nav-button[data-view=profile][aria-current=page]{background:rgb(var(--accent-rgb) / .2)!important;box-shadow:inset 0 0 0 1px rgb(var(--accent-rgb) / .28)}
:root[data-accent] .nav-button[aria-current=page]{color:var(--accent)}
:root[data-accent] .history-tabs button[aria-pressed=true],:root[data-accent] .view-subscriptions .subscription-layout button[aria-pressed=true],
:root[data-accent] .analytics-filters button[aria-pressed=true]{background:rgb(var(--accent-rgb) / .2);color:var(--accent)}
:root[data-accent] .mavro-hero:not(.running) .hero-control{background:var(--accent);border-color:var(--accent);color:#0b0b0c}
:root[data-accent] .mavro-hero{box-shadow:inset 0 0 0 1px #ffffff14,inset 0 1px 0 #ffffff26,0 24px 60px -24px rgb(var(--accent-rgb) / .45)}
:root[data-accent] .wallpaper-option[aria-checked=true]{box-shadow:0 0 0 2px var(--accent)}
:root[data-accent] .wallpaper-option[aria-checked=true]::after{background-color:var(--accent)}
:root[data-accent] .rps-total i,:root[data-accent] .health-pill[data-health=ok] i{box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .2)}
:root[data-accent] .health-pill[data-health=ok]{color:var(--accent)}
:root[data-accent] .match-badge[data-tone=ok]{background:rgb(var(--accent-rgb) / .14)}
:root[data-accent] button:focus-visible,:root[data-accent] a:focus-visible,:root[data-accent] input:focus-visible,:root[data-accent] select:focus-visible{outline-color:var(--accent)}
:root[data-accent] .purchase-steps li.steps-caption{background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
button.primary,.switch:before,.card-progress>i,.nav-indicator,.nav-button,.history-tabs button,.hero-control{transition:background-color .35s,color .35s,box-shadow .35s}

/* ---------- Purchase celebration ---------- */
.celebrate{position:fixed;inset:0;z-index:3000;display:grid;place-items:center;padding:16px;background:#000000a6;backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);animation:celebrate-fade .3s ease both}
.celebrate.is-leaving{animation:celebrate-out .26s ease both}
.celebrate-confetti{position:fixed;inset:0;width:100%;height:100%;pointer-events:none}
.celebrate-card{position:relative;isolation:isolate;overflow:hidden;width:min(340px,100%);padding:28px 22px 20px;border-radius:32px;background:#161618;text-align:center;box-shadow:0 30px 90px #000c,inset 0 0 0 1px #ffffff17,inset 0 1px 0 #ffffff24;animation:celebrate-pop .62s cubic-bezier(.2,1.4,.4,1) both}
.celebrate.is-leaving .celebrate-card{animation:celebrate-sink .26s ease both}
.celebrate-glow{position:absolute;z-index:-1;top:-90px;left:50%;width:360px;height:360px;margin-left:-180px;border-radius:50%;background:conic-gradient(from 0deg,rgb(var(--accent-rgb,255 255 255) / .0),rgb(var(--accent-rgb,255 255 255) / .38),rgb(var(--accent-rgb,255 255 255) / .0) 40%,rgb(var(--accent-rgb,255 255 255) / .28) 70%,rgb(var(--accent-rgb,255 255 255) / .0));filter:blur(28px);animation:celebrate-spin 6s linear infinite}
.celebrate-art{width:156px!important;height:156px!important;margin:0 auto 18px;border-radius:38px!important;box-shadow:0 22px 50px -14px var(--art-color,#ffffff40),inset 0 0 0 1px #ffffff1c;animation:celebrate-art .9s cubic-bezier(.2,1.3,.4,1) .08s both}
.celebrate-kicker{display:inline-flex;align-items:center;gap:6px;padding:5px 11px;border-radius:999px;background:#ffffff0f;font-size:12px;font-weight:700;color:var(--soft)}
.celebrate-card h2{margin:12px 0 4px;font-size:24px;line-height:1.15;font-weight:800;letter-spacing:-.03em}
.celebrate-attrs{margin:0 0 14px;font-size:13px;color:var(--muted)}
.celebrate-price{display:flex;align-items:baseline;justify-content:center;gap:6px;margin-top:4px}
.celebrate-price strong{font-size:38px;line-height:1;font-weight:800;letter-spacing:-.04em;font-variant-numeric:tabular-nums}
.celebrate-price span{font-size:15px;font-weight:700;color:var(--soft)}
.celebrate-speed{margin:8px 0 0;font-size:13px;font-weight:700;color:var(--accent,#7ee08a)}
.celebrate-close{width:100%;margin-top:20px;min-height:48px;border-radius:16px;font-weight:800}
@keyframes celebrate-fade{from{opacity:0}}
@keyframes celebrate-out{to{opacity:0}}
@keyframes celebrate-pop{from{opacity:0;transform:translateY(30px) scale(.86)}}
@keyframes celebrate-sink{to{opacity:0;transform:translateY(16px) scale(.95)}}
@keyframes celebrate-art{from{opacity:0;transform:scale(.5) rotate(-8deg)}}
@keyframes celebrate-spin{to{transform:rotate(360deg)}}

/* ---------- 15.11 evening: no glow under the hero; accent on every selected/checked control; wordmark ---------- */
.mavro-hero,:root[data-accent] .mavro-hero{box-shadow:inset 0 0 0 1px #ffffff14,inset 0 1px 0 #ffffff1f}
/* selected / pressed / checked states */
:root[data-accent] button[aria-pressed=true]:not(.nav-button){background:rgb(var(--accent-rgb) / .18);color:var(--accent);border-color:transparent}
:root[data-accent] .choice-sort button[aria-pressed=true],:root[data-accent] .analytics-sorts button[aria-pressed=true],:root[data-accent] .analytics-markets button[aria-pressed=true]{background:rgb(var(--accent-rgb) / .18);color:var(--accent)}
:root[data-accent] .choice-option[aria-selected=true],:root[data-accent] .choice-option[aria-selected=true]:hover{background:rgb(var(--accent-rgb) / .12)}
:root[data-accent] .choice-option[aria-selected=true] .choice-check{border-color:var(--accent);background:var(--accent)}
:root[data-accent] .choice-option[aria-selected=true] .choice-check:after{background:#111}
:root[data-accent] .choice-multiple .choice-option[aria-selected=true] .choice-check:after{background:transparent;border-color:#111}
:root[data-accent] .choice-trigger[aria-expanded=true]{border-color:rgb(var(--accent-rgb) / .55)!important}
:root[data-accent] .choice-trigger[aria-expanded=true]>.icon{color:var(--accent);opacity:1}
:root[data-accent] .check-label input[type=checkbox]:checked{background:var(--accent);border-color:var(--accent)}
:root[data-accent] input,:root[data-accent] select,:root[data-accent] textarea{accent-color:var(--accent);caret-color:var(--accent)}
:root[data-accent] input:focus,:root[data-accent] select:focus,:root[data-accent] textarea:focus{border-color:rgb(var(--accent-rgb) / .55)}
:root[data-accent] .loading:before{border-top-color:var(--accent)}
:root[data-accent] .choice-option[aria-selected=true] .choice-label,:root[data-accent] .choice-option[aria-selected=true]>span:not(.choice-check){color:#fff}
/* Wordmark instead of the picture + bold caption */
.mobile-brand{gap:0!important}
.mobile-brand img,.boot-logo{display:none!important}
.mobile-brand b,.boot-screen>strong{font-size:15px;font-weight:700;letter-spacing:.3em;color:#fff;font-feature-settings:"ss01"}
.mobile-brand b::after,.boot-screen>strong::after{content:"";display:inline-block;width:5px;height:5px;margin-left:-.14em;border-radius:50%;background:var(--accent,#fff);vertical-align:.18em;transition:background-color .35s}
.boot-screen>strong{font-size:22px}
/* Online dots and "ok" badges: their glow/pulse was hard-coded green (#7ee08a) */
:root[data-accent] .mavro-hero.running .hero-state i,:root[data-accent] .profile-pill.running i,:root[data-accent] .rps-total i{box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .17);animation-name:accent-pulse}
:root[data-accent] .rps-total[data-health=warn] i,:root[data-accent] .rps-total[data-health=down] i{animation-name:none}
:root[data-accent] .buyer-connection[data-connected=true] i,:root[data-accent] .health-pill[data-health=ok] i{box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .15)}
:root[data-accent] .status[data-valid=true],:root[data-accent] .purchase-badges [data-stage=purchased]{background:rgb(var(--accent-rgb) / .12);color:var(--accent)}
@keyframes accent-pulse{0%,100%{box-shadow:0 0 0 3px rgb(var(--accent-rgb) / .17)}50%{box-shadow:0 0 0 6px rgb(var(--accent-rgb) / 0)}}
/* ---------- 25.11 personal banners (sk1ch, Никита, Неко, Алиночка): themes ---------- */
:root[data-accent=sk1ch]{--glow-rgb:70 120 255;--snow-rgb:225,236,255}
:root[data-accent=nikita]{--glow-rgb:20 170 200;--snow-rgb:205,246,255}
:root[data-accent=neko]{--glow-rgb:215 150 90;--snow-rgb:255,238,218}
:root[data-accent=alinochka]{--glow-rgb:230 170 70;--snow-rgb:255,212,135;--gold-1:#fff0c4;--gold-2:#f2c878;--gold-3:#c9902f}
:root:is([data-accent=sk1ch],[data-accent=nikita],[data-accent=neko],[data-accent=alinochka]) body{background:radial-gradient(130% 60% at 50% -12%,rgb(var(--glow-rgb) / .26) 0%,rgb(var(--glow-rgb) / .07) 32%,#000 68%) fixed,#000}
.mavro-hero[data-wallpaper=sk1ch]::before{background:linear-gradient(90deg,#030a1ccc 0%,#030a1c73 40%,#030a1c14 75%,#0000 100%),linear-gradient(0deg,#030a1ca6,#0000 60%)}
.mavro-hero[data-wallpaper=nikita]::before{background:linear-gradient(90deg,#00161cc9 0%,#00161c70 40%,#00161c14 75%,#0000 100%),linear-gradient(0deg,#00161ca6,#0000 60%)}
.mavro-hero[data-wallpaper=neko]::before{background:linear-gradient(90deg,#1a0e05d1 0%,#1a0e0578 40%,#1a0e051a 75%,#0000 100%),linear-gradient(0deg,#1a0e05ad,#0000 60%)}
/* Алиночка: Paris at night - black and champagne gold */
.mavro-hero[data-wallpaper=alinochka]::before{background:linear-gradient(90deg,#0a0602db 0%,#0a060285 40%,#0a06021f 75%,#0000 100%),linear-gradient(0deg,#140c02b8,#0000 62%)}
:root[data-accent=alinochka] .mavro-hero{box-shadow:inset 0 0 0 1px rgb(242 200 120 / .38),inset 0 1px 0 rgb(255 236 190 / .45)}
:root[data-accent=alinochka] .mavro-hero .hero-title,:root[data-accent=alinochka] .mavro-hero .hero-value strong{background:linear-gradient(100deg,var(--gold-1) 0%,var(--gold-2) 55%,var(--gold-3) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-accent=alinochka] button.primary,:root[data-accent=alinochka] button.primary:hover:not(:disabled),:root[data-accent=alinochka] .page-heading>.actions button.primary,
:root[data-accent=alinochka] .tile-button.primary,:root[data-accent=alinochka] .mavro-hero:not(.running) .hero-control{background:linear-gradient(135deg,var(--gold-1) 0%,var(--gold-2) 48%,var(--gold-3) 100%);color:#1a1205;border-color:transparent;box-shadow:inset 0 1px 0 #fff8e080}
:root[data-accent=alinochka] button.primary:active:not(:disabled){filter:brightness(.9)}
:root[data-accent=alinochka] .switch[aria-checked=true]:before{background:linear-gradient(135deg,var(--gold-1),var(--gold-2) 55%,var(--gold-3))}
:root[data-accent=alinochka] .card-progress>i{background:linear-gradient(90deg,var(--gold-3),var(--gold-2),var(--gold-1))}
:root[data-accent=alinochka] .page-heading h1{background:linear-gradient(180deg,#fff 20%,var(--gold-2));-webkit-background-clip:text;background-clip:text;color:transparent}

/* ---------- «Париж»: blue-hour sky, pink sunset line, amber tower lights ---------- */
:root[data-accent=paris]{--glow-rgb:72 70 160;--snow-rgb:255,196,132;--dusk-1:#ffd29a;--dusk-2:#f4a964;--dusk-3:#e8879c}
:root[data-accent=paris] body{background:radial-gradient(130% 60% at 50% -12%,rgb(80 70 170 / .30) 0%,rgb(232 135 156 / .07) 30%,#000 66%) fixed,#000}
.mavro-hero[data-wallpaper=paris]::before{background:linear-gradient(90deg,#070a1fd6 0%,#070a1f80 38%,#070a1f14 72%,#0000 100%),linear-gradient(0deg,#0a0716b3,#0000 60%)}
:root[data-accent=paris] .mavro-hero{box-shadow:inset 0 0 0 1px rgb(244 169 100 / .30),inset 0 1px 0 rgb(255 210 154 / .35)}
:root[data-accent=paris] .mavro-hero .hero-value strong{background:linear-gradient(100deg,#fff 0%,var(--dusk-1) 45%,var(--dusk-2) 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-accent=paris] button.primary,:root[data-accent=paris] button.primary:hover:not(:disabled),:root[data-accent=paris] .page-heading>.actions button.primary,
:root[data-accent=paris] .tile-button.primary,:root[data-accent=paris] .mavro-hero:not(.running) .hero-control{background:linear-gradient(135deg,var(--dusk-1) 0%,var(--dusk-2) 52%,var(--dusk-3) 100%);color:#1c0f08;border-color:transparent}
:root[data-accent=paris] button.primary:active:not(:disabled){filter:brightness(.9)}
:root[data-accent=paris] .card-progress>i{background:linear-gradient(90deg,var(--dusk-3),var(--dusk-2),var(--dusk-1))}

/* 28.11 topbar fade: the scrolled header was a hard 70 % black strip with a hairline (noir .topbar.is-scrolled).
   Now the bar stays transparent; a blurred gradient under it dissolves downwards — no edge, no line. */
.topbar.is-scrolled{background:transparent!important;backdrop-filter:none!important;-webkit-backdrop-filter:none!important;box-shadow:none!important}
.topbar::before{content:"";position:absolute;left:0;right:0;top:0;bottom:-30px;z-index:-1;pointer-events:none;opacity:0;transition:opacity .25s;
  background:linear-gradient(180deg,rgba(0,0,0,.9) 0%,rgba(0,0,0,.66) 48%,rgba(0,0,0,0) 100%);
  -webkit-backdrop-filter:blur(14px);backdrop-filter:blur(14px);
  -webkit-mask-image:linear-gradient(180deg,#000 50%,transparent 100%);mask-image:linear-gradient(180deg,#000 50%,transparent 100%)}
.topbar.is-scrolled::before{opacity:1}
/* 28.11 dock compacts on scroll (StriverAI-like): #navigation scales from its bottom centre, so the bottom edge stays
   put and nothing reflows; noir.js sets .sidebar.is-compact while scrolling down, removes it on any scroll up / at top */
#navigation{transform-origin:50% 100%;transition:transform .45s cubic-bezier(.22,1,.36,1)}
.sidebar.is-compact #navigation{transform:scale(.85)}
