/* MRX Unified Shell v2 — shared navigation without replacing page-specific product logic */
:root{--mrx-shell-bg:#080a0d;--mrx-shell-panel:#0c1014;--mrx-shell-line:#202a31;--mrx-shell-gold:#f4ca32;--mrx-shell-text:#eef2f4;--mrx-shell-muted:#82919a;--mrx-shell-width:246px}
body{padding-left:var(--mrx-shell-width)!important;min-width:320px!important}
.mrx-shell-sidebar{position:fixed;inset:0 auto 0 0;width:var(--mrx-shell-width);z-index:9998;background:linear-gradient(180deg,#0b0e11,#080a0d 72%);border-right:1px solid var(--mrx-shell-line);padding:20px 13px 14px;display:flex;flex-direction:column;color:var(--mrx-shell-text);font:13px/1.4 Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif}
.mrx-shell-brand{display:flex;align-items:center;gap:11px;padding:1px 9px 21px;border-bottom:1px solid #ffffff10;color:inherit;text-decoration:none}
.mrx-shell-mark{width:42px;height:38px;border:1px solid #f4ca3277;border-radius:8px;display:grid;place-items:center;color:var(--mrx-shell-gold);font:900 10px ui-monospace,Consolas,monospace;letter-spacing:0;background:linear-gradient(135deg,#f4ca321c,transparent);box-shadow:inset 0 0 18px #f4ca320c}
.mrx-shell-brand strong{font-size:17px;letter-spacing:.2em;display:block;font-weight:900}.mrx-shell-brand small{display:block;color:#7e8b94;font:8px/1.7 ui-monospace,monospace;letter-spacing:.11em}
.mrx-shell-group{font:800 9px ui-monospace,monospace;letter-spacing:.15em;color:#56656e;padding:22px 10px 8px}
.mrx-shell-nav{display:grid;gap:3px}.mrx-shell-nav a{min-height:37px;display:flex;align-items:center;gap:11px;padding:9px 10px;border-radius:7px;border:1px solid transparent;color:#9aa7ae;text-decoration:none;font-size:11px;transition:background .16s,border-color .16s,color .16s}
.mrx-shell-nav a:hover{background:#ffffff07;color:#fff}.mrx-shell-nav a[aria-current="page"]{background:#f4ca3210;border-color:#f4ca3228;color:#ffe783}
.mrx-shell-icon{width:17px;text-align:center;font-size:14px;color:#71808a}.mrx-shell-nav a[aria-current="page"] .mrx-shell-icon{color:var(--mrx-shell-gold)}
.mrx-shell-spacer{flex:1;min-height:15px}
.mrx-shell-help{margin:14px 2px 12px;border:1px solid #2b353b;border-radius:9px;padding:13px;background:radial-gradient(ellipse at 100% 0%,#f4ca3210,transparent 60%),#0d1216}
.mrx-shell-help em{font:800 8px ui-monospace,monospace;color:var(--mrx-shell-gold);letter-spacing:.12em;font-style:normal}.mrx-shell-help strong{display:block;margin:8px 0 5px;font-size:11px}.mrx-shell-help p{font-size:9px;line-height:1.6;color:var(--mrx-shell-muted);margin:0 0 11px}.mrx-shell-help a{display:flex;justify-content:center;padding:8px;border-radius:5px;background:var(--mrx-shell-gold);color:#17170e;text-decoration:none;font-size:9px;font-weight:900}
.mrx-shell-foot{display:flex;align-items:center;gap:9px;padding:12px 8px 0;border-top:1px solid #ffffff10}.mrx-shell-avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;border:1px solid #3b454a;background:#161d22;color:var(--mrx-shell-gold);font-size:10px;font-weight:900}.mrx-shell-foot strong{display:block;font-size:10px}.mrx-shell-foot small{display:block;color:#75838c;font-size:9px;margin-top:2px}
.mrx-shell-top{height:57px;position:sticky;top:0;z-index:9997;display:flex;align-items:center;justify-content:space-between;gap:15px;padding:0 clamp(16px,3vw,38px);background:#080a0de8;border-bottom:1px solid var(--mrx-shell-line);backdrop-filter:blur(18px);color:var(--mrx-shell-text);font:11px Inter,ui-sans-serif,system-ui,sans-serif}
.mrx-shell-crumb{color:#71808a}.mrx-shell-crumb b{color:#e8edef;font-weight:700}.mrx-shell-topright{display:flex;align-items:center;gap:9px}.mrx-shell-state{display:flex;align-items:center;gap:7px;color:#9aa7ae;font:8px ui-monospace,monospace;letter-spacing:.08em}.mrx-shell-state i{width:6px;height:6px;border-radius:50%;background:#60d5a0;box-shadow:0 0 9px #60d5a04d}
.mrx-shell-search{width:min(210px,22vw);padding:8px 10px;background:#0d1216;border:1px solid #263139;border-radius:6px;color:#e9eef0;font:10px Inter,system-ui,sans-serif;outline:none}.mrx-shell-search:focus{border-color:#8d7728}.mrx-shell-mobile{display:none;background:#10161a;border:1px solid #2a353c;color:#e8edef;border-radius:6px;width:32px;height:32px}
.mrx-shell-backdrop{display:none}
body>header.topbar,body>.wrap>header.topbar,body>.wrap>header.nav,body>.wrap>nav.nav{display:none!important}
body>.wrap{max-width:none!important;width:100%!important;margin:0!important}
body>.wrap>main{max-width:1600px;margin:0 auto}
@media(max-width:1050px){:root{--mrx-shell-width:220px}.mrx-shell-sidebar{padding-inline:10px}.mrx-shell-search{width:160px}}
@media(max-width:760px){body{padding-left:0!important}.mrx-shell-sidebar{width:260px;transform:translateX(-105%);transition:transform .2s ease;box-shadow:20px 0 55px #0008}.mrx-shell-sidebar.mrx-open{transform:translateX(0)}.mrx-shell-mobile{display:inline-grid;place-items:center}.mrx-shell-backdrop.mrx-show{display:block;position:fixed;inset:0;background:#000a;z-index:9996}.mrx-shell-top{height:54px;padding:0 13px}.mrx-shell-search{display:none}.mrx-shell-state{display:none}body>.wrap>main{max-width:100%}}
@media(prefers-reduced-motion:reduce){.mrx-shell-sidebar,.mrx-shell-nav a{transition:none!important}}

/* ===== MRX Design System v3 — shared tokens and polish (appended; page logic untouched) ===== */
:root{
  --mrx-yellow:#ffd21f;--mrx-yellow-soft:#ffd21f1a;--mrx-yellow-line:#ffd21f55;
  --mrx-ink:#f4f6f7;--mrx-ink-2:#c3ccd2;--mrx-ink-3:#8b99a3;
  --mrx-s0:#07090c;--mrx-s1:#0c1014;--mrx-s2:#11171d;--mrx-s3:#171e25;
  --mrx-line:#232d35;--mrx-line-2:#2f3b44;
  --mrx-ok:#6ee7a8;--mrx-warn:#ffd21f;--mrx-bad:#ff8797;
  --mrx-r1:6px;--mrx-r2:10px;--mrx-r3:14px;
  --mrx-mono:ui-monospace,"JetBrains Mono",Consolas,monospace;
  --mrx-shell-gold:var(--mrx-yellow);--mrx-shell-line:var(--mrx-line);--mrx-shell-muted:var(--mrx-ink-3);
}
html{color-scheme:dark;-webkit-text-size-adjust:100%}
::selection{background:#ffd21f40;color:#fff}
*{scrollbar-width:thin;scrollbar-color:#34414b transparent}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible,summary:focus-visible,[tabindex]:focus-visible{outline:2px solid var(--mrx-yellow);outline-offset:3px;border-radius:4px}
table,.price,.num,td,th,[data-num]{font-variant-numeric:tabular-nums}
/* Shell: calmer, more legible navigation */
.mrx-shell-sidebar{background:linear-gradient(180deg,var(--mrx-s1),var(--mrx-s0) 78%);border-right-color:var(--mrx-line)}
.mrx-shell-nav a{font-size:13px;min-height:40px;border-radius:8px;color:var(--mrx-ink-3)}
.mrx-shell-nav a:hover{background:#ffffff08;color:var(--mrx-ink)}
.mrx-shell-nav a[aria-current="page"]{background:var(--mrx-yellow-soft);border-color:var(--mrx-yellow-line);color:#fff0a8;box-shadow:inset 3px 0 0 var(--mrx-yellow)}
.mrx-shell-group{font-size:10px;color:#6d7c86;letter-spacing:.16em}
.mrx-shell-brand strong{letter-spacing:.22em}
.mrx-shell-help{border-color:var(--mrx-line-2);border-radius:var(--mrx-r2)}
.mrx-shell-help p{font-size:11px;color:var(--mrx-ink-3)}
.mrx-shell-help a{font-size:11px;border-radius:var(--mrx-r1)}
.mrx-shell-foot small{font-size:10px}
.mrx-shell-top{background:#07090cee;border-bottom-color:var(--mrx-line)}
.mrx-shell-search{border-radius:8px;border-color:var(--mrx-line-2);font-size:12px}
.mrx-shell-search:focus{border-color:var(--mrx-yellow)}
/* Status language: one consistent look for live / degraded / unavailable states */
.status-tag,.badge,.cc-pill,.mrx-chip{font-family:var(--mrx-mono);letter-spacing:.06em}
.good,.is-online{color:var(--mrx-ok)}.warn,.is-warn{color:var(--mrx-warn)}.bad,.is-offline{color:var(--mrx-bad)}
.pos{color:var(--mrx-ok)}.neg{color:var(--mrx-bad)}
/* Loading skeleton utility (opt-in via class) */
.mrx-skeleton{position:relative;overflow:hidden;background:var(--mrx-s3);border-radius:var(--mrx-r1);min-height:12px}
.mrx-skeleton:after{content:"";position:absolute;inset:0;transform:translateX(-100%);background:linear-gradient(90deg,transparent,#ffffff0d,transparent);animation:mrxSkel 1.4s ease-in-out infinite}
@keyframes mrxSkel{to{transform:translateX(100%)}}
/* Dense data tables stay scrollable on small screens */
@media(max-width:760px){table{display:block;overflow-x:auto;-webkit-overflow-scrolling:touch}.mrx-shell-nav a{min-height:44px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important;scroll-behavior:auto!important}}

/* Direct Telegram contact — primary public support route. */
.mrx-shell-contact{display:inline-flex;align-items:center;gap:7px;min-height:34px;padding:7px 11px;border:1px solid #f4ca3266;border-radius:7px;background:linear-gradient(135deg,#f4ca321b,#f4ca3208);color:#ffe783;text-decoration:none;font:800 10px/1 ui-monospace,monospace;letter-spacing:.02em;white-space:nowrap;transition:background .16s,border-color .16s,transform .16s}
.mrx-shell-contact b{color:#f7f8f8;font-weight:800}
.mrx-shell-contact:hover{background:#f4ca3228;border-color:#f4ca32;color:#fff;transform:translateY(-1px)}
@media(max-width:760px){.mrx-shell-topright{gap:7px}.mrx-shell-contact{min-height:32px;padding:7px 9px;font-size:9px}}
@media(max-width:420px){.mrx-shell-contact{gap:4px;padding-inline:7px}.mrx-shell-contact b{display:none}.mrx-shell-crumb{font-size:9px}}

/* Account access shortcut in the global MRX shell. */
.mrx-shell-account{display:inline-flex;align-items:center;justify-content:center;min-height:32px;padding:7px 11px;border:1px solid #ffd21f65;border-radius:6px;background:#ffd21f12;color:#f2d66c;text-decoration:none;font-size:10px;font-weight:800;white-space:nowrap;transition:background .18s,border-color .18s,color .18s}.mrx-shell-account:hover{background:#ffd21f24;border-color:#ffd21f;color:#fff}
@media(max-width:760px){.mrx-shell-account{font-size:9px;padding:6px 8px}.mrx-shell-topright{gap:7px}}


/* ===== MRX Interface Polish v4 — shared product finish ===== */
:root{
  --mrx-shadow-soft:0 18px 55px #0005;
  --mrx-glow:0 0 0 1px #ffd21f12,0 14px 40px #0004;
  --mrx-focus:0 0 0 3px #ffd21f26;
}
.mrx-shell-sidebar{
  box-shadow:12px 0 42px #0002;
  backdrop-filter:blur(18px);
}
.mrx-shell-brand{padding-bottom:18px}
.mrx-shell-mark{
  border-radius:10px;
  box-shadow:inset 0 0 20px #ffd21f14,0 0 24px #ffd21f0b;
}
.mrx-shell-nav{gap:4px}
.mrx-shell-nav a{
  position:relative;
  min-height:41px;
  letter-spacing:.005em;
  transition:background .18s ease,border-color .18s ease,color .18s ease,transform .18s ease;
}
.mrx-shell-nav a:hover{transform:translateX(2px)}
.mrx-shell-nav a[aria-current="page"]{
  background:linear-gradient(90deg,#ffd21f1c,#ffd21f08 78%,transparent);
  border-color:#ffd21f38;
  box-shadow:inset 3px 0 0 var(--mrx-yellow),0 6px 20px #0002;
}
.mrx-shell-icon{flex:0 0 18px}
.mrx-shell-top{
  box-shadow:0 8px 28px #0002;
}
.mrx-shell-search{transition:border-color .18s ease,box-shadow .18s ease,background .18s ease}
.mrx-shell-search:focus{background:#111820;box-shadow:var(--mrx-focus)}
.mrx-shell-mobile{transition:background .18s ease,border-color .18s ease}
.mrx-shell-mobile:hover{background:#1a232b;border-color:#ffd21f80}
.mrx-shell-help{box-shadow:inset 0 1px #ffffff06,var(--mrx-shadow-soft)}
.mrx-shell-help a{transition:filter .18s ease,transform .18s ease}
.mrx-shell-help a:hover{filter:brightness(1.08);transform:translateY(-1px)}
.mrx-shell-contact,.mrx-shell-account{transition:background .18s ease,border-color .18s ease,transform .18s ease}
.mrx-shell-contact:focus-visible,.mrx-shell-account:focus-visible{outline:2px solid var(--mrx-yellow);outline-offset:3px}
@media(min-width:761px){
  .mrx-shell-sidebar{overflow-y:auto;overscroll-behavior:contain}
  .mrx-shell-sidebar::-webkit-scrollbar{width:5px}
  .mrx-shell-sidebar::-webkit-scrollbar-thumb{background:#34414b;border-radius:9px}
}
@media(max-width:760px){
  .mrx-shell-sidebar{padding-top:max(16px,env(safe-area-inset-top));padding-bottom:max(14px,env(safe-area-inset-bottom))}
  .mrx-shell-top{padding-top:env(safe-area-inset-top);height:calc(54px + env(safe-area-inset-top))}
  .mrx-shell-backdrop{backdrop-filter:blur(3px)}
  .mrx-shell-sidebar.mrx-open{box-shadow:24px 0 70px #000b}
}
@media(prefers-reduced-motion:reduce){
  .mrx-shell-nav a:hover,.mrx-shell-help a:hover{transform:none}
}

/* Batch 02: prevent background scroll while the mobile drawer is active. */
@media(max-width:760px){body.mrx-nav-open{overflow:hidden;overscroll-behavior:contain}.mrx-shell-sidebar.mrx-open{touch-action:pan-y}}

/* Mobile section search: visible trigger with an expandable full-width field. */
.mrx-shell-search-toggle{display:none;align-items:center;justify-content:center;width:32px;height:32px;border:1px solid var(--mrx-line-2);border-radius:7px;background:#10161a;color:var(--mrx-ink);font-size:20px;line-height:1;cursor:pointer}
.mrx-shell-search-toggle:focus-visible{outline:2px solid var(--mrx-yellow);outline-offset:3px}
@media(max-width:760px){.mrx-shell-search-toggle{display:inline-flex}.mrx-shell-top.mrx-search-open{z-index:10000}.mrx-shell-top.mrx-search-open .mrx-shell-search{display:block;position:absolute;top:calc(100% + 6px);left:12px;right:12px;width:auto;max-width:none;padding:12px;background:#0c1014;border-color:var(--mrx-yellow);box-shadow:0 12px 35px #0009;font-size:14px}.mrx-shell-topright{position:static}}

.mrx-shell-language-label{color:#71808a;font:800 8px ui-monospace,monospace;letter-spacing:.1em}
.mrx-shell-language{height:29px;min-width:49px;padding:4px 6px;border:1px solid #34414a;border-radius:6px;background:#0c1217;color:#e7edf0;font:800 9px ui-monospace,monospace;cursor:pointer}
.mrx-shell-language:focus{outline:2px solid #ffd21f80;outline-offset:2px}
@media(max-width:760px){.mrx-shell-language-label{display:none}.mrx-shell-language{min-width:43px}}

/* Mobile accessibility: meet comfortable touch-target sizing for primary shell controls. */
@media(max-width:760px){.mrx-shell-mobile,.mrx-shell-search-toggle{width:44px;height:44px;min-width:44px;min-height:44px}.mrx-shell-language{min-height:44px;min-width:48px;padding-inline:8px}}


/* Navigation simplification: keep the complete menu reachable on short mobile screens. */
@media(max-width:760px){.mrx-shell-sidebar{overflow-y:auto;overscroll-behavior:contain}.mrx-shell-spacer{flex:0 0 12px;min-height:12px}.mrx-shell-nav a{min-height:44px}}

/* MRX typography only — preserve existing layouts, panels and brand colours. */
body{font-weight:500;text-rendering:optimizeLegibility;-webkit-font-smoothing:auto}
body :is(p,li,dd){font-weight:500}
body :is(h1,h2,h3,h4){font-weight:800}
body :is(button,.btn,.button,.action-btn,.account-btn,.mrx-shell-nav a,.mrx-shell-controls a){font-weight:700}
body :is(.muted,.subtitle,.hint,.note,.description,.mrx-shell-help p,.mrx-shell-group,.mrx-shell-brand small,.mrx-shell-language-label){color:#c2cdd5}
body :is(.eyebrow,.kicker,.metric-label,.section-kicker,.mrx-shell-group){font-weight:700}
body :is(input,select,textarea){font-weight:600}
body :is(input,textarea)::placeholder{color:#b5c1ca;opacity:1}
body .mrx-shell-nav a{font-weight:700;font-size:13px}
body .mrx-shell-crumb{font-weight:700}
body :is(.mrx-shell-account,.mrx-shell-contact,.mrx-shell-language){font-weight:700}
body .mrx-pref label{font-weight:600}
