/* MRX Interface System v1 — shared visual language for independent product pages. */
:root{
  --mrx-bg:#07090c;--mrx-surface:#0d1217;--mrx-surface-2:#111920;--mrx-surface-3:#172129;
  --mrx-border:#293640;--mrx-border-strong:#3a4a55;--mrx-text:#f2f5f6;--mrx-muted:#9aa8b1;
  --mrx-accent:#ffd21f;--mrx-accent-soft:#ffd21f13;--mrx-positive:#69dfa6;--mrx-negative:#ff8491;
  --mrx-radius:10px;--mrx-shadow:0 20px 65px #0007;
}
html{background:var(--mrx-bg);scroll-behavior:smooth;scroll-padding-top:86px}
body{background-color:var(--mrx-bg);color:var(--mrx-text);text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased}
body:before{content:"";position:fixed;inset:0;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 82% -12%,#ffd21f0b,transparent 34%),radial-gradient(ellipse at 8% 40%,#7ea5c006,transparent 38%);opacity:.95}
::selection{background:#ffd21f45;color:#fff}
a{transition:color .16s ease,border-color .16s ease,background .16s ease}
button,input,select,textarea{font:inherit}
button:disabled,input:disabled,select:disabled,textarea:disabled{opacity:.48;cursor:not-allowed}
:focus-visible{outline:2px solid var(--mrx-accent)!important;outline-offset:3px!important}
.mrx-shell-top{height:60px;background:#080b0ff2;border-bottom:1px solid var(--mrx-border);backdrop-filter:blur(22px);box-shadow:0 10px 34px #0003}
.mrx-shell-sidebar{width:258px;background:linear-gradient(180deg,#0c1116 0%,#080b0f 72%);border-right:1px solid var(--mrx-border);box-shadow:16px 0 55px #0003}
:root{--mrx-shell-width:258px}
.mrx-shell-brand{padding:3px 10px 19px;border-bottom:1px solid #ffffff12}
.mrx-shell-mark{width:42px;height:42px;border-radius:11px;background:linear-gradient(145deg,#ffd21f24,#ffd21f05);border-color:#ffd21f88;font-size:11px}
.mrx-shell-brand strong{font-size:17px;letter-spacing:.24em}
.mrx-shell-brand small{font-size:8px;letter-spacing:.16em}
.mrx-shell-group{padding:21px 10px 8px;color:#72818b;font-size:9px;letter-spacing:.18em}
.mrx-shell-nav{gap:4px}
.mrx-shell-nav a{min-height:41px;padding:9px 11px;border-radius:8px;color:#aebac1;font-size:12px;border:1px solid transparent}
.mrx-shell-nav a:hover{background:#ffffff08;color:#fff;transform:translateX(2px)}
.mrx-shell-nav a[aria-current="page"]{color:#fff2a7;background:linear-gradient(90deg,#ffd21f1b,#ffd21f05);border-color:#ffd21f39;box-shadow:inset 3px 0 0 var(--mrx-accent),0 7px 20px #0002}
.mrx-shell-icon{color:#87959e}
.mrx-shell-help{border-color:#35434c;background:linear-gradient(145deg,#171d1e,#0b1014);box-shadow:inset 0 1px #ffffff09}
.mrx-shell-help strong{font-size:12px}
.mrx-shell-help p{font-size:10px;line-height:1.65}
.mrx-shell-help a{min-height:37px}
.mrx-shell-foot{border-top-color:#ffffff14}
.mrx-shell-avatar{width:32px;height:32px;border-color:#ffd21f70;background:#ffd21f13}
.mrx-shell-top{color:var(--mrx-text)}
.mrx-shell-crumb{font-size:11px}
.mrx-shell-search{height:36px;width:min(260px,25vw);font-size:11px;background:#0d1318;border-color:#35434c}
.mrx-shell-account,.mrx-shell-contact{min-height:36px;border-radius:7px;font-size:10px}
body>.wrap{max-width:none!important}
body>.wrap>main{max-width:1660px!important;padding-inline:clamp(16px,2.4vw,38px)}
.wrap,.page,.dash,.workspace,.container,.content{scroll-margin-top:76px}
.page,.dash{max-width:1660px}
h1,h2,h3,h4{color:var(--mrx-text);text-wrap:balance}
h1{letter-spacing:-.055em}
h2{letter-spacing:-.035em}
p{ text-wrap:pretty }
.eyebrow,.kicker,.label,.metric-label,.section-kicker{letter-spacing:.14em}
.panel,.card,.status-card,.metric-card,.metric,.module,.feature,.release-card,.profile-card,.roadmap-item,.integration-card,.tile,.workspace-card{
  border-color:var(--mrx-border);border-radius:var(--mrx-radius);background:linear-gradient(150deg,#121920 0%,#0b1015 82%);box-shadow:inset 0 1px #ffffff07;
}
.panel:hover,.card:hover,.module:hover,.workspace-card:hover{border-color:#59636a}
.btn,button.btn,.button,.action-btn,.refresh,.outline-btn,.top-btn{
  min-height:38px;border-radius:7px;font-weight:800;letter-spacing:.035em;transition:transform .16s ease,border-color .16s ease,background .16s ease,box-shadow .16s ease;
}
.btn:hover,button.btn:hover,.button:hover,.action-btn:hover,.refresh:hover,.outline-btn:hover,.top-btn:hover{transform:translateY(-1px);border-color:#ffd21f88;box-shadow:0 8px 24px #0004}
.btn.primary,.button.primary{background:linear-gradient(110deg,#ffda36,#f4bd16);border-color:#ffdc53;color:#12140e;box-shadow:0 6px 24px #ffd21f16}
.btn.primary:hover,.button.primary:hover{background:linear-gradient(110deg,#ffe36b,#ffd21f);box-shadow:0 8px 28px #ffd21f25}
input:not([type=checkbox]):not([type=radio]),select,textarea{
  border-color:var(--mrx-border-strong);border-radius:7px;background:#080e13;color:var(--mrx-text);min-height:38px
}
input::placeholder,textarea::placeholder{color:#71808a}
input:focus,select:focus,textarea:focus{border-color:var(--mrx-accent)!important;box-shadow:0 0 0 3px #ffd21f19}
table{border-collapse:separate;border-spacing:0}
thead th{background:#121a20;color:#8897a0}
tbody tr{transition:background .14s ease}
tbody tr:hover{background:#ffffff06}
td,th{border-color:#ffffff10}
.status-tag,.badge,.tag,.pill,.chip{border-radius:5px;font-variant-numeric:tabular-nums}
.empty,.empty-state{border:1px dashed #34434d;border-radius:8px;color:#94a2aa;background:#0a1015}
.toast,.notice,.alert{border-radius:8px}
hr{border:0;border-top:1px solid var(--mrx-border)}
section{scroll-margin-top:82px}
footer{color:#85949d}
@media(max-width:1050px){:root{--mrx-shell-width:228px}.mrx-shell-sidebar{width:228px}}
@media(max-width:760px){
  :root{--mrx-shell-width:0px}
  body{padding-left:0!important}
  .mrx-shell-sidebar{width:min(300px,88vw);padding-left:13px;padding-right:13px}
  .mrx-shell-top{height:calc(58px + env(safe-area-inset-top));padding-top:env(safe-area-inset-top)}
  .mrx-shell-crumb{max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  .mrx-shell-topright{gap:6px}
  .mrx-shell-account,.mrx-shell-contact{min-height:40px;padding-inline:9px}
  .mrx-shell-search{width:100%}
  .panel,.card,.status-card,.module{border-radius:9px}
}
@media(max-width:420px){
  .mrx-shell-state{display:none}
  .mrx-shell-language{min-height:40px}
  .mrx-shell-contact{display:none}
}
@media(prefers-reduced-motion:reduce){
  *,*:before,*:after{scroll-behavior:auto!important;animation-duration:.001ms!important;animation-iteration-count:1!important;transition-duration:.001ms!important}
}


/* Mobile navigation v2 — purpose-built drawer, large targets and safe-area support. */
.mrx-shell-close{display:none}
@media(max-width:760px){
  html,body{max-width:100%;overflow-x:clip}
  body{min-width:320px!important;padding-left:0!important}
  .mrx-shell-top{
    position:sticky;top:0;z-index:9997;width:100%;min-height:58px;height:auto;
    display:flex;align-items:center;justify-content:space-between;gap:8px;
    padding:calc(7px + env(safe-area-inset-top)) 10px 7px;
  }
  .mrx-shell-top>div:first-child{min-width:0;flex:1 1 auto;gap:8px!important}
  .mrx-shell-crumb{min-width:0;max-width:42vw;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10px}
  .mrx-shell-mobile,.mrx-shell-search-toggle{display:inline-flex!important;flex:0 0 44px;align-items:center;justify-content:center;width:44px!important;height:44px!important;min-width:44px;min-height:44px;border-radius:10px;font-size:19px}
  .mrx-shell-topright{flex:0 0 auto;gap:6px;position:static}
  .mrx-shell-language{min-width:46px;min-height:44px;height:44px;padding:5px 7px}
  .mrx-shell-account{display:none!important}
  .mrx-shell-contact{display:none!important}
  .mrx-shell-search{display:none}
  .mrx-shell-top.mrx-search-open{z-index:10003}
  .mrx-shell-top.mrx-search-open .mrx-shell-search{
    display:block;position:absolute;left:10px;right:10px;top:calc(100% + 6px);
    width:auto;max-width:none;min-height:46px;padding:11px 13px;
    background:#0d141a;border:1px solid var(--mrx-accent);border-radius:9px;
    box-shadow:0 18px 45px #000b;font-size:14px;
  }
  .mrx-shell-backdrop{display:none;position:fixed;inset:0;z-index:10000;background:#020609c9;backdrop-filter:blur(4px);-webkit-backdrop-filter:blur(4px);touch-action:manipulation}
  .mrx-shell-backdrop.mrx-show{display:block}
  .mrx-shell-sidebar{
    position:fixed!important;inset:0 auto 0 0!important;
    width:min(310px,calc(100vw - 44px))!important;
    height:100vh!important;height:100dvh!important;max-height:100dvh!important;
    z-index:10002!important;display:flex;flex-direction:column;
    overflow-x:hidden!important;overflow-y:auto!important;
    overscroll-behavior:contain;-webkit-overflow-scrolling:touch;scrollbar-gutter:stable;
    padding:calc(12px + env(safe-area-inset-top)) 13px calc(14px + env(safe-area-inset-bottom))!important;
    background:linear-gradient(180deg,#10171d 0%,#080c10 78%)!important;
    box-shadow:26px 0 80px #000c!important;
    transform:translate3d(-110%,0,0)!important;opacity:0;visibility:hidden;pointer-events:none;
    transition:transform .24s cubic-bezier(.2,.75,.2,1),opacity .18s ease,visibility .24s ease!important;
  }
  .mrx-shell-sidebar.mrx-open{
    transform:translate3d(0,0,0)!important;opacity:1;visibility:visible;pointer-events:auto;
  }
  .mrx-shell-brand{flex:0 0 auto;padding:5px 9px 16px}
  .mrx-shell-close{
    display:flex;align-items:center;justify-content:space-between;gap:12px;
    width:100%;min-height:48px;margin:11px 0 4px;padding:7px 11px;
    border:1px solid #394751;border-radius:9px;background:#121a20;color:#e9eef1;
    font:800 10px/1 var(--mrx-mono);letter-spacing:.1em;cursor:pointer;
  }
  .mrx-shell-close span:first-child{font:400 25px/1 ui-sans-serif,system-ui;color:var(--mrx-accent)}
  .mrx-shell-close:active{background:#1b252d}
  .mrx-shell-group{padding:19px 10px 8px;font-size:9px}
  .mrx-shell-nav{gap:5px}
  .mrx-shell-nav a{min-height:48px;padding:11px 12px;font-size:13px;border-radius:9px}
  .mrx-shell-icon{font-size:15px}
  .mrx-shell-spacer{flex:0 0 10px;min-height:10px}
  .mrx-shell-help{margin-top:12px;padding:13px}
  .mrx-shell-help a{min-height:44px}
  .mrx-shell-foot{margin-top:auto;padding-bottom:2px}
  body.mrx-nav-open{overflow:hidden!important;overscroll-behavior:none}
  body>.wrap,body>.wrap>main{max-width:100%!important;width:100%!important}
}
@media(max-width:390px){
  .mrx-shell-top{padding-left:7px;padding-right:7px;gap:5px}
  .mrx-shell-crumb{max-width:31vw;font-size:9px}
  .mrx-shell-topright{gap:4px}
  .mrx-shell-language{min-width:42px;padding-inline:5px}
  .mrx-shell-sidebar{width:min(292px,calc(100vw - 34px))!important}
}
@media(prefers-reduced-motion:reduce){
  .mrx-shell-sidebar{transition:none!important}
}

/* 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}
