/* Rigonic V9: single final polish layer; no legacy styles removed. */
:root{--rg9-ink:#f1f7ff;--rg9-line:#294b70;--rg9-accent:#309dff}
body.rg-public-body .rg9-not-found{display:grid;grid-template-columns:minmax(0,1.3fr) minmax(240px,.7fr);gap:clamp(24px,5vw,75px);align-items:center;min-height:min(74vh,710px);padding-block:clamp(70px,9vw,145px)!important}
body.rg-public-body .rg9-not-found-main{min-width:0}
body.rg-public-body .rg9-not-found-kicker{font:800 11px/1.5 Inter,sans-serif;letter-spacing:.2em;color:#78c3ff;display:flex;gap:10px;align-items:center}
body.rg-public-body .rg9-code{font:800 clamp(100px,19vw,260px)/1 Inter,sans-serif;letter-spacing:-.12em;color:#fff;margin:14px 0 4px}
body.rg-public-body .rg9-code span{color:#36adff}
body.rg-public-body .rg9-not-found h1{font-size:clamp(30px,3.3vw,54px);line-height:1.12;letter-spacing:-.055em;margin:0 0 18px}
body.rg-public-body .rg9-not-found p{max-width:580px;color:#b9cce2;font-size:16px;line-height:1.8}
body.rg-public-body .rg9-not-found-actions{display:flex;flex-wrap:wrap;gap:12px;margin-top:29px}
body.rg-public-body .rg9-not-found-actions .rx-btn{min-height:50px;display:inline-flex;align-items:center;gap:12px;padding:0 19px;border-radius:0!important}
body.rg-public-body .rg9-btn-outline{border:1px solid #41668a;color:#e6f2ff;background:#0b2138}
body.rg-public-body .rg9-not-found-mark{min-width:0;display:grid;justify-items:center;gap:20px;padding:45px 15px;background:radial-gradient(circle at 50% 38%,#0e315c,#061429 70%);border:1px solid #23486e}
body.rg-public-body .rg9-not-found-mark img{width:min(100%,320px);height:auto;filter:drop-shadow(0 0 23px #008cff32)}
body.rg-public-body .rg9-not-found-mark span{font-size:10px;letter-spacing:.2em;color:#8bbbeb;font-weight:800}

/* Consistent roomy content gutters after the sidebar, desktop and handheld. */
html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .hd-main.at-console.rf-dash-main{
  box-sizing:border-box!important;margin-left:272px!important;width:calc(100% - 272px)!important;
  padding:clamp(28px,3.3vw,54px) clamp(34px,4.7vw,84px) 82px!important;max-width:none!important;
}
html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .rf-dash-topbar{padding-inline:clamp(34px,4.7vw,84px)!important}
body.rg-dashboard-body .module-page-header{padding:27px clamp(30px,3.4vw,52px)!important;gap:24px!important;min-width:0;box-sizing:border-box}
body.rg-dashboard-body .module-page-header .module-page-identity{min-width:0;gap:18px!important;align-items:center!important}
body.rg-dashboard-body .module-page-header .module-page-icon{flex-shrink:0!important;margin:0!important}
body.rg-dashboard-body .module-page-header .dash-secondary-action{display:inline-flex!important;gap:10px;align-items:center;justify-content:center;flex:0 0 auto;margin:0!important;min-height:42px;padding:10px 17px!important;white-space:nowrap}
body.rg-dashboard-body .module-page-header :is(h1,p){max-width:100%}
body.rg-dashboard-body .rf-overview-hero,body.rg-dashboard-body .rf-server-directory-hero,body.rg-dashboard-body .rf-module-browser,body.rg-dashboard-body .rf-server-controls-panel{padding-inline:clamp(22px,2.5vw,38px)!important}
body.rg-dashboard-body .rf-dash-nav-group.rg7-start-here{padding:0!important;background:transparent!important;border:0!important;box-shadow:none!important}
body.rg-dashboard-body .rg7-start-here>span{padding:0 12px!important;letter-spacing:.09em!important;font-size:11px!important}
body.rg-dashboard-body .rg7-start-here>a{height:auto!important;min-height:46px!important;font-size:13px!important;white-space:normal!important}
body.rg-dashboard-body .rf-dash-nav a{line-height:1.35!important}
/* Equal-height, left-aligned module cards: icons / label / description / open action. */
body.rg-dashboard-body .rf-module-card-grid{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}
body.rg-dashboard-body .rf-module-card{
  display:flex!important;flex-direction:column!important;align-items:flex-start!important;text-align:left!important;
  gap:12px!important;min-width:0!important;min-height:190px!important;padding:20px 21px!important;
  border:1px solid #2a4868!important;border-left:2px solid #2b6a9c!important;background:#0b1d32!important;
}
body.rg-dashboard-body .rf-module-card:hover{border-left-color:#42b6ff!important;background:#102947!important}
body.rg-dashboard-body .rf-module-card .rf-module-card-head{display:flex!important;width:100%!important;justify-content:space-between!important;align-items:center!important;gap:15px!important}
body.rg-dashboard-body .rf-module-card .rf-module-card-head i{width:43px!important;height:43px!important;flex:0 0 43px!important}
body.rg-dashboard-body .rf-module-card strong{display:block!important;line-height:1.3!important;font-size:19px!important;text-align:left!important;margin:0!important}
body.rg-dashboard-body .rf-module-card p{font-size:13px!important;line-height:1.65!important;color:#acc7e2!important;margin:0!important;text-align:left!important;flex:1}
body.rg-dashboard-body .rf-module-card .rf-module-open{display:inline-flex!important;gap:8px!important;justify-content:flex-start!important;align-items:center!important;text-align:left!important;margin:4px 0 0!important;color:#7fc5ff!important;font-size:13px!important;font-weight:700!important}
body.rg-dashboard-body .rf-module-card .rf-module-open i{font-size:12px!important}
/* Creator forms: no second oversized box, equal-size buttons and balanced toggle. */
body.rg-dashboard-body .v20-social-providers,body.rg-dashboard-body .v20-social-connections{padding:clamp(20px,2vw,30px)!important}
body.rg-dashboard-body .v20-provider-button{min-width:0!important}
body.rg-dashboard-body .v20-social-new{border:1px solid #315371!important;box-sizing:border-box!important}
body.rg-dashboard-body .v20-social-new-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;gap:10px!important;min-width:0!important}
body.rg-dashboard-body .v20-social-new-actions button{display:inline-flex!important;gap:9px!important;align-items:center!important;justify-content:center!important;min-height:44px!important;min-width:125px!important;padding:10px 15px!important;margin:0!important;box-sizing:border-box!important;border-radius:0!important}
body.rg-dashboard-body .v20-social-new-actions button[type="submit"]{min-width:230px!important}
body.rg-dashboard-body .v20-social-global{max-width:100%;box-sizing:border-box}
body.rg-dashboard-body .v20-social-global :is(label,button,select){border-radius:0!important}
/* Real premium gate: controls remain visible, but are not editable without premium. */
body.rg-dashboard-body .is-premium-locked{border-color:#6e3346!important;background:#221d2a!important;position:relative;opacity:1!important}
body.rg-dashboard-body .is-premium-locked :is(input,textarea,select,button,[data-role-picker],[data-user-picker]){cursor:not-allowed!important;opacity:.58}
body.rg-dashboard-body .is-premium-locked .premium-field-badge,
body.rg-dashboard-body .premium-field-badge.rg9-premium-locked,
body.rg-dashboard-body .rg7-command-plan.rg9-premium-locked{color:#ff8c9d!important}
body.rg-dashboard-body .premium-field-badge.rg9-premium-locked{background:#311a29!important;border:1px solid #aa4057!important}
body.rg-dashboard-body .premium-field-badge.rg9-premium-on{color:#8cd3ff!important;background:#102b49!important;border:1px solid #327baf!important}
body.rg-dashboard-body .premium-field-badge :is(.fa-gem,.fa-diamond),body.rg-dashboard-body .rg7-command-plan .fa-gem{color:inherit!important}
body.rg-dashboard-body .v23-social-footer-locked{background:#201d28!important;border:1px solid #744257!important;padding:14px!important}
body.rg-dashboard-body .v23-social-footer-locked .premium-field-badge{color:#ff8c9d!important}
body.rg-dashboard-body .is-premium-active{border-color:#2c6d9f!important}
/* Accessibility: disabled inputs stay distinct; normal modules unaffected. */
body.rg-dashboard-body [inert] :is(input,textarea,select,button){pointer-events:none!important}
@media (max-width:1180px){body.rg-dashboard-body .rf-module-card-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media (max-width:980px){
 html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .hd-main.at-console.rf-dash-main{margin:0!important;width:100%!important;padding:29px 25px 65px!important}
 html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .rf-dash-topbar{margin:0!important;width:100%!important;padding-inline:25px!important}
 body.rg-dashboard-body .module-page-header{padding:22px 25px!important}
}
@media (max-width:680px){
 body.rg-public-body .rg9-not-found{grid-template-columns:1fr!important;padding-block:45px!important}
 body.rg-public-body .rg9-not-found-mark{padding:15px!important}
 body.rg-public-body .rg9-not-found-mark img{width:150px!important}
 html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .hd-main.at-console.rf-dash-main{padding:22px 19px 56px!important}
 html body.rg-dashboard-body .hd-shell.ov-shell.at-shell.rf-dash-layout .rf-dash-topbar{padding-inline:19px!important}
 body.rg-dashboard-body .module-page-header{padding:20px!important;gap:14px!important;flex-wrap:wrap!important}
 body.rg-dashboard-body .module-page-header .dash-secondary-action{width:100%!important;justify-content:center!important}
 body.rg-dashboard-body .rf-module-card-grid{grid-template-columns:1fr!important}
 body.rg-dashboard-body .v20-social-new-actions{flex-direction:column!important;align-items:stretch!important}
 body.rg-dashboard-body .v20-social-new-actions button,body.rg-dashboard-body .v20-social-new-actions button[type="submit"]{width:100%!important;min-width:0!important}
}

body.rg-dashboard-body .rg9-extra-preview{margin:25px 0;padding:23px 24px;border:1px solid #704657;background:#1a1c2a;display:flex;align-items:center;justify-content:space-between;gap:20px;flex-wrap:wrap}
body.rg-dashboard-body .rg9-extra-preview>div{display:flex;align-items:center;gap:16px;min-width:0}
body.rg-dashboard-body .rg9-extra-preview>div>i{font-size:21px;color:#ff8096}
body.rg-dashboard-body .rg9-extra-preview strong{font-size:18px;color:#f5f8ff}
body.rg-dashboard-body .rg9-extra-preview p{margin:7px 0 0;font-size:13px;color:#c3bbce;line-height:1.6}
body.rg-dashboard-body .rg9-extra-preview button{display:inline-flex;align-items:center;gap:10px;padding:12px 16px;color:#ff839b;background:#38232e;border:1px solid #90485a;border-radius:0;cursor:not-allowed}
@media(max-width:680px){body.rg-dashboard-body .rg9-extra-preview>button{width:100%;justify-content:center}}
