/* ========================================================================== 
   Radwan Girls Premium UI — 2026
   هوية مدرسة عبدالحميد رضوان الثانوية بنات
   طبقة واجهة مستقلة فوق النظام الحالي بدون كسر الوظائف أو مسارات الخادم.
   ========================================================================== */
:root{
  --rg-ink:#17223b;
  --rg-ink-2:#25314d;
  --rg-brand:#633252;
  --rg-brand-2:#8a4d6c;
  --rg-brand-soft:#f3e9ef;
  --rg-gold:#c4a15a;
  --rg-gold-soft:#f8f1df;
  --rg-teal:#26766f;
  --rg-green:#257153;
  --rg-red:#b44757;
  --rg-amber:#ad7b2d;
  --rg-blue:#386891;
  --rg-bg:#f6f5f8;
  --rg-surface:#ffffff;
  --rg-surface-2:#fbfafc;
  --rg-line:#e7e3ea;
  --rg-muted:#73778a;
  --rg-radius:18px;
  --rg-radius-sm:12px;
  --rg-shadow:0 14px 38px rgba(42,34,55,.08);
  --rg-shadow-soft:0 8px 22px rgba(42,34,55,.06);
}
html{scroll-behavior:smooth}
body.premium-admin-body,
body{background:var(--rg-bg);color:var(--rg-ink)}
body.premium-admin-body::before{
  content:"";position:fixed;inset:0 0 auto 0;height:220px;z-index:-1;pointer-events:none;
  background:linear-gradient(180deg,rgba(99,50,82,.06),rgba(99,50,82,0));
}
::selection{background:#ead8e3;color:#3d1830}

/* Shell */
.premium-sidebar{
  width:300px!important;
  background:linear-gradient(180deg,#1c2740 0%,#222c46 44%,#34283f 100%)!important;
  border-left:1px solid rgba(255,255,255,.08)!important;
  padding:18px 14px 22px!important;
  box-shadow:-18px 0 46px rgba(20,25,44,.12)!important;
}
.premium-main{margin-right:300px!important;min-width:0}
.premium-content{padding:28px 30px 42px!important;max-width:1680px;width:100%;margin-inline:auto}
.premium-topbar{
  min-height:80px!important;height:auto!important;padding:12px 30px!important;background:rgba(255,255,255,.97)!important;
  border-bottom:1px solid var(--rg-line)!important;box-shadow:0 5px 18px rgba(40,35,50,.035)!important;
}
.premium-backbar{
  background:#fff!important;border-bottom:1px solid var(--rg-line)!important;padding:9px 30px!important;
  min-height:48px;display:flex;gap:10px;align-items:center;
}
.premium-page-kicker{color:var(--rg-brand)!important;font-size:.72rem!important;font-weight:800;letter-spacing:.04em}
.topbar-title>b{font-size:1.05rem!important;color:var(--rg-ink)!important}
.topbar-date{font-size:.72rem!important;color:var(--rg-muted)!important}
.security-session-status{background:#eef7f4!important;color:#2c6655!important;border:1px solid #d5ebe3!important;border-radius:999px!important;padding:7px 10px!important}
.user-badge{background:#f4eff3!important;color:#5f3450!important;border:1px solid #e4d6df!important;padding:8px 11px!important}
.premium-icon-button,.pwa-install-button{border-color:var(--rg-line)!important;background:#fff!important;color:var(--rg-ink)!important}

/* Brand */
.premium-brand{
  display:grid!important;grid-template-columns:54px 1fr!important;gap:12px!important;align-items:center!important;
  padding:12px 10px 18px!important;margin-bottom:14px!important;border-bottom:1px solid rgba(255,255,255,.10)!important;
}
.reference-brand-logo{width:52px!important;height:52px!important;background:#fff!important;border:1px solid rgba(216,190,125,.6)!important;border-radius:16px!important;padding:5px!important;box-shadow:0 8px 18px rgba(0,0,0,.13)!important}
.reference-brand-logo img{width:100%;height:100%;object-fit:contain}
.premium-brand .brand-kicker{display:block;color:#d8bd7d!important;font-size:.68rem!important;margin-bottom:2px!important}
.premium-brand h1{font-size:.91rem!important;line-height:1.55!important;color:#fff!important;margin:0!important;font-weight:800!important}
.premium-brand small{font-size:.67rem!important;color:#c8cfdb!important;line-height:1.6!important}

/* Sidebar search and wizard meta */
.premium-nav-search{background:rgba(255,255,255,.07)!important;border:1px solid rgba(255,255,255,.10)!important;border-radius:14px!important;padding:8px 10px!important;margin:0 4px 12px!important}
.premium-nav-search input{color:#fff!important;background:transparent!important;border:0!important;outline:0!important;min-width:0}
.premium-nav-search input::placeholder{color:#aeb7c9!important}
.premium-nav-search kbd{background:rgba(255,255,255,.09)!important;color:#c9d1de!important;border:0!important}
.sidebar-wizard-progress{margin:0 4px 16px!important;padding:12px!important;border:1px solid rgba(216,190,125,.22)!important;background:rgba(216,190,125,.06)!important;border-radius:14px!important}
.wizard-progress-title b{color:#f4e7c4!important;font-size:.76rem!important}.wizard-progress-title span{color:#d5b971!important}
.sidebar-wizard-progress small{color:#b9c2d2!important;font-size:.65rem!important;line-height:1.6!important}
.wizard-progress-track{background:rgba(255,255,255,.10)!important}.wizard-progress-track i{background:linear-gradient(90deg,#c6a258,#e2c77e)!important}

/* Navigation */
.tree-nav{display:grid;gap:7px}
.nav-group{border:1px solid transparent;border-radius:14px;overflow:hidden;transition:.18s ease}
.nav-group.open{background:rgba(255,255,255,.035);border-color:rgba(255,255,255,.06)}
.nav-group-toggle{padding:10px 9px!important;min-height:42px!important;color:#d7dce6!important;border-radius:12px!important}
.nav-group-toggle:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}
.nav-group-title{gap:8px!important;font-size:.76rem!important;font-weight:700!important}
.nav-group-title i{font-style:normal;color:#d9be7b}
.nav-step-number{min-width:27px;height:23px;border-radius:7px;background:rgba(255,255,255,.08)!important;color:#d7bb77!important;display:grid!important;place-items:center!important;font-size:.63rem!important}
.nav-submenu{padding:2px 7px 8px!important}
.nav-link{position:relative!important;border-radius:10px!important;color:#c7cedc!important;padding:9px 10px!important;font-size:.73rem!important;margin:2px 0!important;min-height:38px!important;transition:.16s ease!important}
.nav-link span{width:22px;display:inline-grid;place-items:center;color:#d4b66f}
.nav-link:hover{background:rgba(255,255,255,.065)!important;color:#fff!important;transform:translateX(-2px)}
.nav-link.active{background:linear-gradient(90deg,rgba(139,78,109,.5),rgba(198,162,88,.12))!important;color:#fff!important;box-shadow:inset -3px 0 #d0ae65!important}
.nav-link.active::after{content:"";position:absolute;left:9px;width:5px;height:5px;border-radius:50%;background:#dbc078}
.reference-sidebar-logout button{background:rgba(180,71,87,.14)!important;border:1px solid rgba(232,151,162,.18)!important;color:#f2cfd5!important;border-radius:12px!important}

/* Global cards/forms */
.card{border:1px solid var(--rg-line)!important;border-radius:var(--rg-radius)!important;box-shadow:var(--rg-shadow-soft)!important;background:#fff!important;overflow:hidden}
.card-header{padding:16px 19px!important;border-bottom:1px solid #eeeaf0!important;background:linear-gradient(180deg,#fff,#fdfcfd)!important}
.card-header>b{color:var(--rg-ink)!important;font-size:.9rem!important}
.card-body{padding:20px!important}
.page-title{color:var(--rg-ink)!important;font-size:1.65rem!important;letter-spacing:-.02em}.muted{color:var(--rg-muted)!important}
.page-head{padding:4px 2px 0;margin-bottom:20px!important}
.form-control,.form-select{
  border:1px solid #dcd7df!important;border-radius:12px!important;background:#fff!important;min-height:45px!important;
  padding:10px 12px!important;box-shadow:0 1px 0 rgba(20,25,40,.02)!important;transition:border-color .16s,box-shadow .16s,background .16s!important;
}
textarea.form-control{min-height:90px!important;resize:vertical}
.form-control:hover,.form-select:hover{border-color:#cfc6d1!important}
.form-control:focus,.form-select:focus{outline:0!important;border-color:#9a6681!important;box-shadow:0 0 0 4px rgba(99,50,82,.09)!important;background:#fff!important}
.form-group label,.student-government-field label{color:#41475b!important;font-size:.75rem!important;font-weight:800!important}
.btn{border-radius:11px!important;min-height:40px!important;padding:9px 14px!important;font-weight:800!important;transition:transform .15s ease,box-shadow .15s ease,background .15s ease!important}
.btn:hover{transform:translateY(-1px)}
.btn-primary{background:var(--rg-brand)!important;color:#fff!important;box-shadow:0 7px 16px rgba(99,50,82,.15)!important}
.btn-primary:hover{background:#542843!important}
.btn-dark{background:var(--rg-ink)!important;color:#fff!important}.btn-success{background:var(--rg-green)!important}.btn-danger{background:var(--rg-red)!important}.btn-light{background:#f4f2f5!important;color:#444a5e!important;border:1px solid #e4e0e6!important}
.badge{border-radius:999px!important;padding:6px 9px!important;font-size:.68rem!important;font-weight:800!important}.badge-success{background:#e9f5ef!important;color:#287052!important}.badge-danger{background:#faeaed!important;color:#a13e4f!important}.badge-warning{background:#fbf3df!important;color:#8b672b!important}
.alert{border-radius:13px!important;border-width:1px!important;box-shadow:none!important}
.table-wrap{border-radius:0 0 16px 16px!important}.table{background:#fff!important}.table th{background:#f8f7f9!important;color:#5d6171!important;font-size:.69rem!important;text-transform:none!important;letter-spacing:0!important;padding:12px!important;border-bottom:1px solid #e8e5ea!important}.table td{padding:12px!important;border-bottom:1px solid #f0edf1!important;color:#34394b!important}.table tbody tr:hover td{background:#fcfafc!important}

/* New dashboard */
.rg-dashboard{display:grid;gap:22px}
.rg-command-hero{position:relative;overflow:hidden;display:grid;grid-template-columns:minmax(0,1.6fr) minmax(260px,.7fr);gap:24px;padding:30px;border-radius:28px;background:linear-gradient(125deg,#202b45 0%,#3b3045 55%,#633252 100%);color:#fff;box-shadow:0 24px 54px rgba(48,36,55,.18)}
.rg-command-hero::before{content:"";position:absolute;inset:auto -50px -85px auto;width:260px;height:260px;border:1px solid rgba(219,192,120,.22);border-radius:50%}
.rg-command-hero::after{content:"";position:absolute;inset:-80px auto auto 28%;width:220px;height:220px;border:42px solid rgba(255,255,255,.025);border-radius:50%}
.rg-hero-copy,.rg-hero-side{position:relative;z-index:1}.rg-hero-kicker{display:inline-flex;align-items:center;gap:7px;color:#ecd79d;font-size:.72rem;font-weight:800;margin-bottom:8px}.rg-hero-kicker i{width:7px;height:7px;border-radius:50%;background:#ddbF75;box-shadow:0 0 0 5px rgba(221,191,117,.12)}
.rg-command-hero h1{font-size:clamp(1.8rem,3vw,2.85rem);line-height:1.25;margin:0 0 8px;max-width:820px;letter-spacing:-.035em}.rg-command-hero p{margin:0;color:#d7d9e0;max-width:800px;line-height:1.8;font-size:.86rem}
.rg-hero-actions{display:flex;gap:9px;flex-wrap:wrap;margin-top:22px}.rg-hero-actions a{display:inline-flex;align-items:center;gap:7px;text-decoration:none;border-radius:12px;padding:10px 14px;font-size:.75rem;font-weight:800}.rg-action-primary{background:#fff;color:#48223a}.rg-action-secondary{background:rgba(255,255,255,.08);color:#fff;border:1px solid rgba(255,255,255,.13)}
.rg-hero-side{align-self:stretch;display:flex;justify-content:flex-end}.rg-school-seal{width:100%;max-width:330px;display:grid;grid-template-columns:74px 1fr;gap:13px;align-items:center;align-self:center;background:rgba(255,255,255,.075);border:1px solid rgba(255,255,255,.12);border-radius:20px;padding:16px}.rg-school-seal img{width:74px;height:74px;border-radius:18px;background:#fff;padding:5px}.rg-school-seal span{display:block;color:#d7d9df;font-size:.66rem;margin-bottom:3px}.rg-school-seal strong{display:block;font-size:.88rem;line-height:1.6;color:#fff}.rg-school-seal small{color:#e5cd92;font-size:.65rem}
.rg-kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.rg-kpi{position:relative;background:#fff;border:1px solid var(--rg-line);border-radius:18px;padding:17px 18px;box-shadow:var(--rg-shadow-soft);min-height:126px;overflow:hidden}.rg-kpi::before{content:"";position:absolute;top:0;right:0;bottom:0;width:4px;background:var(--tone,var(--rg-brand))}.rg-kpi-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.rg-kpi-icon{width:38px;height:38px;border-radius:11px;display:grid;place-items:center;background:color-mix(in srgb,var(--tone,var(--rg-brand)) 10%,white);color:var(--tone,var(--rg-brand));font-size:1rem}.rg-kpi-label{color:#707488;font-size:.72rem;font-weight:800}.rg-kpi strong{display:block;font-size:1.8rem;color:var(--rg-ink);line-height:1.25;margin-top:8px}.rg-kpi small{color:#9699a8;font-size:.65rem}.rg-tone-brand{--tone:#7c4563}.rg-tone-teal{--tone:#26766f}.rg-tone-gold{--tone:#a77b31}.rg-tone-blue{--tone:#386891}.rg-tone-green{--tone:#257153}.rg-tone-red{--tone:#b44757}
.rg-grid-two{display:grid;grid-template-columns:minmax(0,1.45fr) minmax(320px,.75fr);gap:18px}.rg-panel{background:#fff;border:1px solid var(--rg-line);border-radius:22px;box-shadow:var(--rg-shadow-soft);padding:20px}.rg-panel-head{display:flex;align-items:flex-start;justify-content:space-between;gap:12px;margin-bottom:16px}.rg-panel-head span{display:block;color:var(--rg-brand);font-size:.68rem;font-weight:800;margin-bottom:3px}.rg-panel-head h2{font-size:1.06rem;margin:0;color:var(--rg-ink)}.rg-panel-head p{margin:4px 0 0;color:var(--rg-muted);font-size:.7rem}.rg-panel-link{color:var(--rg-brand);text-decoration:none;font-weight:800;font-size:.7rem;padding:7px 9px;border-radius:9px;background:#f5edf2}
.rg-flow-list{display:grid;gap:10px}.rg-flow{display:grid;grid-template-columns:42px 1fr auto;gap:11px;align-items:center;text-decoration:none;color:inherit;padding:12px;border:1px solid #eeeaf0;border-radius:14px;background:#fdfcfd;transition:.15s ease}.rg-flow:hover{transform:translateY(-1px);border-color:#d9ccd5;box-shadow:0 8px 18px rgba(61,45,66,.06)}.rg-flow-no{width:42px;height:42px;border-radius:12px;display:grid;place-items:center;background:#f3eaf0;color:#6d3856;font-weight:900;font-size:.73rem}.rg-flow b{display:block;color:#33394d;font-size:.78rem;margin-bottom:2px}.rg-flow small{color:#85899a;font-size:.64rem;line-height:1.5}.rg-flow-arrow{color:#9a6d84;font-size:1rem}
.rg-followups{display:grid;gap:9px}.rg-followup{display:flex;align-items:center;gap:10px;padding:11px 12px;border-radius:13px;background:#faf9fb;border:1px solid #efebf0;text-decoration:none;color:inherit}.rg-followup i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f0e5ec;color:#6b3554;font-style:normal;font-size:.72rem;font-weight:900}.rg-followup div{min-width:0;flex:1}.rg-followup b{display:block;font-size:.73rem;color:#3a4052}.rg-followup small{display:block;color:#9295a3;font-size:.62rem}.rg-followup strong{font-size:1rem;color:#602f50}
.rg-units-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:11px}.rg-unit{position:relative;min-height:106px;padding:14px;border-radius:16px;border:1px solid #e9e5eb;background:linear-gradient(180deg,#fff,#fbfafc);text-decoration:none;color:inherit;overflow:hidden;transition:.15s}.rg-unit:hover{transform:translateY(-2px);border-color:#d7cbd4;box-shadow:0 12px 22px rgba(55,43,61,.07)}.rg-unit-icon{width:37px;height:37px;border-radius:11px;display:grid;place-items:center;background:#f2e9ef;color:#673451;margin-bottom:10px}.rg-unit b{display:block;color:#33394a;font-size:.76rem}.rg-unit small{display:block;color:#9496a2;font-size:.61rem;margin-top:2px}.rg-unit::after{content:"‹";position:absolute;left:13px;bottom:11px;color:#ae8ca0}
.rg-school-meta{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}.rg-meta-item{display:grid;grid-template-columns:34px 1fr;gap:9px;align-items:center;padding:11px 12px;border-radius:13px;background:#faf9fb;border:1px solid #efebf0}.rg-meta-item i{width:34px;height:34px;border-radius:10px;display:grid;place-items:center;background:#f1e6ed;font-style:normal}.rg-meta-item b{display:block;color:#777b8b;font-size:.62rem;margin-bottom:2px}.rg-meta-item span{display:block;color:#363c4d;font-size:.7rem;line-height:1.5;overflow-wrap:anywhere}

/* Login masterpiece */
.login-page.rg-login-page{display:block!important;min-height:100vh;background:#f4f2f6!important;padding:24px!important}
.rg-login-shell{min-height:calc(100vh - 48px);max-width:1450px;margin:auto;display:grid;grid-template-columns:minmax(0,1.1fr) minmax(430px,.9fr);border:1px solid #e2dce4;background:#fff;border-radius:28px;overflow:hidden;box-shadow:0 28px 80px rgba(44,35,49,.12)}
.rg-login-brand{position:relative;overflow:hidden;background:linear-gradient(145deg,#1e2942 0%,#392d43 55%,#673553 100%);color:#fff;padding:48px;display:flex;flex-direction:column;justify-content:space-between;min-height:760px}
.rg-login-brand::before{content:"";position:absolute;left:-95px;top:10%;width:330px;height:330px;border-radius:50%;border:68px solid rgba(255,255,255,.035)}
.rg-login-brand::after{content:"";position:absolute;right:-80px;bottom:-90px;width:290px;height:290px;border-radius:50%;border:1px solid rgba(218,190,119,.24)}
.rg-login-brand>*{position:relative;z-index:1}.rg-login-brand-top{display:flex;align-items:center;gap:14px}.rg-login-brand-top img{width:72px;height:72px;background:#fff;border-radius:19px;padding:5px}.rg-login-brand-top span{display:block;color:#dec785;font-size:.72rem;font-weight:800}.rg-login-brand-top strong{display:block;font-size:1.02rem;line-height:1.6}.rg-login-brand-copy h1{font-size:clamp(2rem,4vw,3.9rem);line-height:1.18;margin:0 0 16px;letter-spacing:-.04em}.rg-login-brand-copy p{max-width:650px;color:#d8d9e0;line-height:1.9;font-size:.86rem}.rg-login-trust{display:grid;grid-template-columns:repeat(3,1fr);gap:10px;margin-top:26px}.rg-trust-item{padding:12px;border-radius:14px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.10)}.rg-trust-item b{display:block;color:#f1dda5;font-size:.72rem}.rg-trust-item small{color:#c7cbd5;font-size:.62rem}.rg-login-foot{display:flex;gap:8px;align-items:center;color:#cbd0da;font-size:.65rem}.rg-login-foot i{width:7px;height:7px;background:#77c8a9;border-radius:50%;box-shadow:0 0 0 5px rgba(119,200,169,.11)}
.rg-login-forms{padding:42px;display:flex;align-items:center;background:#fdfcfd}.rg-login-forms-inner{width:min(520px,100%);margin:auto}.rg-login-forms .login-card{width:100%!important;max-width:none!important;border:1px solid #e7e1e7!important;box-shadow:none!important;border-radius:20px!important;padding:24px!important;margin:0 0 14px!important}.rg-login-forms .login-card h2,.rg-login-forms .login-card h1{color:var(--rg-ink)!important}.rg-login-form-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:16px}.rg-login-form-title span{display:block;color:var(--rg-brand);font-size:.68rem;font-weight:800}.rg-login-form-title h2{font-size:1.3rem;margin:2px 0 0}.rg-login-form-title i{width:44px;height:44px;display:grid;place-items:center;border-radius:13px;background:#f2e7ed;color:#663450;font-style:normal}.login-secondary-actions{display:grid!important;grid-template-columns:1fr 1fr!important;gap:8px!important}.login-secondary-actions .btn{justify-content:center!important;text-align:center!important;min-height:48px!important}.rg-supervision-card{background:#fbfafc!important}.rg-supervision-card .registry-kicker{color:#8a5571!important}

/* Staff form wizard — progressive backend UX */
.rg-wizard-toolbar{display:grid;grid-template-columns:1fr auto;gap:16px;align-items:center;margin:0 0 16px;padding:14px 15px;background:#fff;border:1px solid var(--rg-line);border-radius:16px;box-shadow:var(--rg-shadow-soft)}
.rg-wizard-topline{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:7px}.rg-wizard-topline b{font-size:.78rem;color:#353b4e}.rg-wizard-topline span{font-size:.67rem;color:#7e8293}.rg-wizard-track{height:7px;background:#eeeaf0;border-radius:99px;overflow:hidden}.rg-wizard-track i{display:block;height:100%;width:0;background:linear-gradient(90deg,#6b3657,#c3a15a);border-radius:inherit;transition:width .22s ease}.rg-wizard-tabs{display:flex;gap:5px;flex-wrap:wrap}.rg-wizard-tab{width:34px;height:34px;border-radius:10px;border:1px solid #e3dde4;background:#fff;color:#7e7180;cursor:pointer;font-family:inherit;font-weight:800}.rg-wizard-tab.is-active{background:#673653;color:#fff;border-color:#673653}.rg-wizard-tab.is-complete{background:#eef6f3;color:#286e57;border-color:#d9ebe5}.rg-wizard-actions{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-top:16px;padding-top:16px;border-top:1px solid #ece8ed}.rg-wizard-actions>div{display:flex;gap:8px}.rg-wizard-next,.rg-wizard-prev{border:0;border-radius:11px;min-height:42px;padding:9px 15px;font-family:inherit;font-weight:800;cursor:pointer}.rg-wizard-next{background:#653452;color:#fff}.rg-wizard-prev{background:#f2eff3;color:#4b5060}.rg-wizard-status{color:#858999;font-size:.67rem}.staff-profile-form.rg-wizardized .staff-form-section{display:none}.staff-profile-form.rg-wizardized .staff-form-section.rg-current-step{display:block;animation:rgFade .18s ease}.staff-profile-form.rg-wizardized .staff-form-actions{display:none}.rg-student-wizardized .student-government-grid>.rg-student-wizard-step{display:none;grid-column:1/-1}.rg-student-wizardized .student-government-grid>.rg-student-wizard-step.rg-current-step{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;animation:rgFade .18s ease}.rg-student-wizardized .student-government-actions{display:none}.rg-student-wizard-step .student-government-full{grid-column:1/-1}.rg-wizard-review{grid-column:1/-1;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rg-review-item{padding:11px 12px;border:1px solid #ece8ed;border-radius:12px;background:#fbfafc}.rg-review-item b{display:block;color:#777b8a;font-size:.62rem;margin-bottom:3px}.rg-review-item span{display:block;color:#34394a;font-size:.72rem;overflow-wrap:anywhere}.rg-review-note{grid-column:1/-1;padding:12px 14px;border-radius:12px;background:#f8f1df;border:1px solid #ead9ae;color:#745a27;font-size:.7rem;line-height:1.7}
@keyframes rgFade{from{opacity:.45;transform:translateY(5px)}to{opacity:1;transform:none}}

/* Student government form restyle */
.student-government-portal{border-radius:24px!important;overflow:hidden!important;box-shadow:var(--rg-shadow)!important;border:1px solid var(--rg-line)!important;background:#fff!important}
.student-government-header{background:linear-gradient(120deg,#1d2942,#392f46 62%,#613451)!important;border:0!important;color:#fff!important;padding:20px 24px!important}.student-government-titles h1,.student-government-titles h2,.student-government-titles p{color:#fff!important}.student-government-titles p{color:#d6d8df!important}.student-government-symbol{background:#fff!important;border-radius:15px!important}.student-government-control-card{border:0!important;box-shadow:none!important}.student-government-card-title{background:#faf8fa!important;border-bottom:1px solid #ece7ed!important}.student-government-badge{background:#f2e7ed!important;color:#673451!important;border-color:#e2d3dc!important}.student-government-divider span{color:#693954!important;background:#f8f2f6!important;border:1px solid #e8dce4!important}.student-government-security-note{background:#f8f6f8!important;border:1px solid #e8e2e9!important;color:#5b5f70!important;border-radius:13px!important}.btn-primary-gov{background:#653452!important;border-radius:12px!important;box-shadow:0 8px 16px rgba(99,50,82,.16)!important}.btn-secondary-gov{border-radius:12px!important}

/* staff form styling */
.staff-form-shell{max-width:1280px!important}.staff-form-heading{background:linear-gradient(120deg,#202b45,#4d3148)!important;border-radius:22px!important;color:#fff!important;border:0!important;box-shadow:var(--rg-shadow)!important}.staff-form-heading h1,.staff-form-heading p,.staff-heading-kicker{color:#fff!important}.staff-heading-kicker{color:#e0c77f!important}.staff-form-section{border:1px solid var(--rg-line)!important;border-radius:18px!important;background:#fff!important;box-shadow:var(--rg-shadow-soft)!important}.staff-section-title span{background:#f2e7ed!important;color:#653452!important}.staff-section-title b{color:#33394b!important}

/* Public/common minor identity uplift */
.public-header{background:#202b45!important}.hero-public,.public-premium-hero{background:linear-gradient(125deg,#202b45,#653452)!important}.public-footer{color:#707484!important}.public-header a:hover{color:#ead08d!important}

/* Mobile */
@media(max-width:1180px){
  .premium-sidebar{width:270px!important}.premium-main{margin-right:270px!important}.premium-content{padding:22px!important}
  .rg-kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.rg-units-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.rg-school-meta{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rg-login-brand{padding:34px}.rg-login-forms{padding:28px}
}
@media(max-width:900px){
  .premium-sidebar{width:min(88vw,320px)!important;right:0!important;transform:translateX(105%);transition:transform .22s ease;position:fixed!important;height:100dvh!important}.premium-sidebar.mobile-open{transform:translateX(0)!important}.premium-main{margin-right:0!important}.premium-topbar{padding:10px 16px!important}.premium-backbar{padding:8px 16px!important}.premium-content{padding:17px 14px 32px!important}
  .rg-command-hero{grid-template-columns:1fr;padding:24px}.rg-hero-side{justify-content:flex-start}.rg-school-seal{max-width:100%}.rg-grid-two{grid-template-columns:1fr}.rg-units-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .rg-login-page{padding:10px!important}.rg-login-shell{min-height:calc(100vh - 20px);grid-template-columns:1fr;border-radius:20px}.rg-login-brand{min-height:370px;padding:28px}.rg-login-brand-copy h1{font-size:2rem}.rg-login-trust{grid-template-columns:1fr 1fr 1fr}.rg-login-forms{padding:18px}.rg-wizard-toolbar{grid-template-columns:1fr}.rg-wizard-tabs{order:-1}
}
@media(max-width:620px){
  .premium-topbar{align-items:flex-start!important}.premium-topbar-actions{gap:6px!important}.security-session-status,.user-badge,.pwa-install-button .pwa-install-label{display:none!important}.premium-page-kicker{display:none}.topbar-title>b{font-size:.88rem!important}.topbar-date{font-size:.62rem!important}
  .rg-command-hero{border-radius:20px;padding:21px}.rg-command-hero h1{font-size:1.75rem}.rg-hero-actions a{flex:1;justify-content:center}.rg-school-seal{grid-template-columns:58px 1fr}.rg-school-seal img{width:58px;height:58px}.rg-kpi-grid{grid-template-columns:1fr 1fr;gap:9px}.rg-kpi{padding:13px;min-height:112px}.rg-kpi strong{font-size:1.45rem}.rg-units-grid{grid-template-columns:1fr 1fr;gap:8px}.rg-unit{min-height:102px;padding:12px}.rg-school-meta{grid-template-columns:1fr}.rg-panel{padding:15px}.rg-flow{grid-template-columns:36px 1fr auto}.rg-flow-no{width:36px;height:36px}.rg-login-brand{min-height:330px;padding:23px}.rg-login-brand-top img{width:58px;height:58px}.rg-login-brand-copy p{font-size:.77rem}.rg-login-trust{grid-template-columns:1fr}.rg-login-trust .rg-trust-item:nth-child(n+3){display:none}.rg-login-forms{padding:13px}.rg-login-forms .login-card{padding:19px!important}.login-secondary-actions{grid-template-columns:1fr!important}.rg-student-wizardized .student-government-grid>.rg-student-wizard-step.rg-current-step{grid-template-columns:1fr}.rg-wizard-review{grid-template-columns:1fr}.rg-wizard-actions{align-items:stretch;flex-direction:column-reverse}.rg-wizard-actions>div{display:grid;grid-template-columns:1fr 1fr}.rg-wizard-next,.rg-wizard-prev{width:100%}
}
@media(max-width:390px){.rg-kpi-grid,.rg-units-grid{grid-template-columns:1fr}.premium-content{padding-inline:10px!important}.rg-command-hero{padding:18px}.rg-command-hero h1{font-size:1.55rem}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
@media print{.rg-command-hero,.rg-wizard-toolbar{box-shadow:none!important}.premium-sidebar,.premium-topbar,.premium-backbar{display:none!important}.premium-main{margin:0!important}.premium-content{padding:0!important}}
.rg-dashboard-audit-label{display:block;margin:1px 2px -5px;color:#8d8190;font-size:.65rem;font-weight:800}
