
/* === app.css === */
:root{--bg:#eff5fa;--bg2:#e6f0f8;--panel:#ffffff;--panel2:#f8fbfe;--card:rgba(255,255,255,.86);--card2:rgba(255,255,255,.96);--line:rgba(42,92,128,.13);--text:#153047;--muted:#5f7487;--muted2:#6b8093;--blue:#2c85c8;--cyan:#26a7c8;--green:#44b87c;--gold:#cc9b2b;--red:#d14e60;--shadow:0 18px 48px rgba(20,52,80,.10);--r:24px;--r2:34px}*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;min-height:100vh;font-family:Tahoma,"Segoe UI",Arial,sans-serif;background:radial-gradient(circle at 8% 2%,rgba(38,167,200,.10),transparent 30%),radial-gradient(circle at 88% 0%,rgba(44,133,200,.10),transparent 34%),linear-gradient(180deg,#f5f9fc 0%,#edf4fa 46%,#e8f0f7 100%);color:var(--text);line-height:1.8}body:before{content:"";position:fixed;inset:0;pointer-events:none;background:linear-gradient(rgba(35,76,103,.03) 1px,transparent 1px),linear-gradient(90deg,rgba(35,76,103,.02) 1px,transparent 1px);background-size:48px 48px;mask-image:linear-gradient(180deg,rgba(0,0,0,.25),transparent 85%)}a{color:inherit;text-decoration:none}button,input,select,textarea{font-family:inherit}button{cursor:pointer}input,select,textarea{width:100%;border:1px solid rgba(185,208,224,.75);border-radius:18px;background:#fff;color:var(--text);padding:13px 14px;outline:none;transition:.2s}input:focus,select:focus,textarea:focus{border-color:var(--cyan);box-shadow:0 0 0 4px rgba(57,231,228,.11)}label{display:grid;gap:7px;color:#d9ebff;font-weight:700;font-size:14px}small,.hint{color:var(--muted);font-weight:400}.hidden{display:none!important}.eyebrow{margin:0 0 8px;color:var(--cyan);letter-spacing:.12em;font-size:12px;font-weight:800;text-transform:uppercase}.btn{border:1px solid rgba(30,80,116,.10);border-radius:18px;padding:12px 18px;color:#17334a;background:rgba(255,255,255,.92);box-shadow:0 10px 24px rgba(20,52,80,.08);font-weight:800;transition:.2s}.btn:hover,.icon-btn:hover,.portal-card:hover{transform:translateY(-2px);border-color:rgba(57,231,228,.45)}.btn.primary{background:linear-gradient(135deg,#0da7d7,#0bc6a8);border-color:transparent;color:#02111d}.btn.ghost{background:rgba(255,255,255,.8)}.btn.wide{width:100%}.btn.excel{background:linear-gradient(135deg,#23b36f,#46e29e);color:#03130d}.btn.pdf{background:linear-gradient(135deg,#e05666,#ff8c77);color:#200407}.form-error{color:#ff9aaa;min-height:24px}.badge,.status-label,.soft-pill,.lock-badge{display:inline-flex;align-items:center;gap:8px;border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);border-radius:999px;padding:7px 12px;color:#dcecff;font-size:12px;font-weight:800}.badge.ok{border-color:rgba(81,213,152,.45);background:rgba(81,213,152,.13);color:#b9ffdd}.badge.warn{border-color:rgba(255,211,109,.45);background:rgba(255,211,109,.13);color:#ffefbf}.badge.locked{border-color:rgba(255,104,122,.35);background:rgba(255,104,122,.10);color:#ffc3cb}.brandmark,.brand-orbit span{display:grid;place-items:center;width:58px;height:58px;border-radius:20px;background:linear-gradient(145deg,#41f0e7,#1d70cb);color:#03101d;font-size:34px;font-weight:900;box-shadow:0 0 32px rgba(57,231,228,.28)}.brandmark.large{width:78px;height:78px;border-radius:27px;font-size:45px}.portal-home{overflow-x:hidden}.portal-home-main{width:min(1180px,100%);margin:0 auto;padding:48px 22px}.welcome{position:relative;overflow:hidden;display:grid;grid-template-columns:auto 1fr;gap:20px;align-items:center;border:1px solid var(--line);border-radius:42px;padding:38px;background:radial-gradient(circle at 90% 12%,rgba(57,231,228,.20),transparent 30%),linear-gradient(135deg,rgba(255,255,255,.11),rgba(255,255,255,.045));box-shadow:var(--shadow)}.welcome:after{content:"";position:absolute;left:-90px;top:-120px;width:350px;height:350px;border-radius:50%;border:1px solid rgba(57,231,228,.15)}.welcome h1{font-size:clamp(32px,5vw,62px);margin:0;line-height:1.35}.welcome p:not(.eyebrow){max-width:820px;color:#c9dcef;font-size:18px}.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin-top:22px}.portal-card{position:relative;overflow:hidden;min-height:260px;border:1px solid var(--line);border-radius:34px;padding:24px;background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.045));box-shadow:var(--shadow);transition:.24s}.portal-card:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 0%,rgba(70,184,255,.20),transparent 42%);pointer-events:none}.portal-card.teacher:before{background:radial-gradient(circle at 20% 0%,rgba(81,213,152,.22),transparent 42%)}.portal-card.parent:before{background:radial-gradient(circle at 20% 0%,rgba(255,211,109,.22),transparent 42%)}.portal-icon{display:grid;place-items:center;width:52px;height:52px;border-radius:18px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);color:var(--cyan);font-size:24px}.portal-card small{position:relative;color:var(--muted)}.portal-card h2{position:relative;font-size:27px;margin:18px 0 8px}.portal-card p{position:relative;color:#bed2e6}.portal-card b{position:absolute;right:24px;bottom:20px;color:var(--cyan)}footer{color:var(--muted2);text-align:center;padding:28px}.role-login,.auth-shell{min-height:100vh;display:grid;grid-template-columns:1.1fr .9fr;gap:28px;align-items:center;width:min(1180px,100%);margin:0 auto;padding:38px 22px}.login-story,.auth-brand{position:relative;overflow:hidden;border:1px solid var(--line);border-radius:42px;padding:42px;background:radial-gradient(circle at 20% 0%,rgba(57,231,228,.16),transparent 38%),linear-gradient(145deg,rgba(255,255,255,.12),rgba(255,255,255,.04));box-shadow:var(--shadow)}.login-story a{display:inline-flex;margin-bottom:22px;color:#b9efff}.login-story h1,.auth-brand h1{font-size:clamp(34px,5vw,58px);line-height:1.35;margin:8px 0}.login-story p,.auth-brand p{color:#c5d9ed}.login-story ul{display:grid;gap:12px;padding:0;margin:26px 0 0;list-style:none}.login-story li{border:1px solid rgba(255,255,255,.10);border-radius:18px;padding:12px 15px;background:rgba(255,255,255,.055)}.auth-card{border:1px solid var(--line);border-radius:34px;padding:28px;background:linear-gradient(180deg,rgba(255,255,255,.12),rgba(255,255,255,.06));box-shadow:var(--shadow)}.auth-card h2{margin:0 0 4px;font-size:28px}.auth-card form{display:grid;gap:16px;margin-top:18px}.auth-card-head{display:flex;gap:14px;align-items:center}.shield-icon{display:grid;place-items:center;width:50px;height:50px;border-radius:18px;background:linear-gradient(145deg,#30d5c8,#2d7eff);color:#00111d}.security-note{margin-top:16px;color:var(--muted);font-size:13px}.trust-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:30px}.trust-grid>div{border:1px solid rgba(255,255,255,.10);border-radius:22px;padding:17px;background:rgba(0,0,0,.15)}.trust-grid b{font-size:26px;color:#fff}.trust-grid span{display:block;color:var(--muted);font-size:12px}.app-shell{display:grid;grid-template-columns:290px 1fr;min-height:100vh}.sidebar{position:sticky;top:0;height:100vh;border-left:1px solid rgba(31,86,124,.09);background:linear-gradient(180deg,rgba(247,250,253,.98),rgba(239,245,250,.98));backdrop-filter:blur(18px);padding:20px;z-index:20}.school-brand{display:flex;gap:12px;align-items:center}.school-brand b{display:block;font-size:18px}.school-brand span{display:block;color:var(--muted);font-size:12px}.side-nav{display:grid;gap:8px;margin:28px 0}.side-nav button{display:flex;align-items:center;gap:12px;border:1px solid transparent;border-radius:18px;padding:13px 14px;background:transparent;color:#35556d;text-align:right}.side-nav button.active,.side-nav button:hover{background:rgba(57,231,228,.10);border-color:rgba(57,231,228,.28);color:#fff}.side-nav span{display:grid;place-items:center;width:30px;height:30px;border-radius:12px;background:rgba(255,255,255,.07);color:var(--cyan)}.sidebar-foot{position:absolute;right:20px;left:20px;bottom:18px;color:var(--muted);font-size:12px}.live-dot{display:flex;align-items:center;gap:8px;margin-bottom:8px}.live-dot i{width:10px;height:10px;border-radius:50%;background:var(--green);box-shadow:0 0 12px var(--green)}.main-area{min-width:0;padding:22px}.topbar{position:sticky;top:0;z-index:12;display:flex;align-items:center;justify-content:space-between;gap:16px;margin:-22px -22px 20px;padding:16px 22px;background:rgba(248,251,254,.92);backdrop-filter:blur(18px);border-bottom:1px solid rgba(31,86,124,.09)}.top-context h2{margin:0;font-size:26px}.top-actions{display:flex;align-items:center;gap:10px}.icon-btn{display:grid;place-items:center;width:44px;height:44px;border:1px solid rgba(255,255,255,.13);border-radius:16px;background:rgba(255,255,255,.07);color:#fff}.menu-btn{display:none}.danger-soft{color:#ff9aaa}.role-chip{display:flex;align-items:center;gap:10px;border:1px solid rgba(255,255,255,.12);border-radius:18px;padding:8px 12px;background:rgba(255,255,255,.065)}.role-chip small{display:block}.sync-status{display:inline-flex;align-items:center;gap:7px;border:1px solid rgba(255,255,255,.11);border-radius:16px;background:rgba(255,255,255,.06);color:#dfefff;padding:8px 10px}.sync-status i{width:8px;height:8px;border-radius:50%;background:var(--green);box-shadow:0 0 10px var(--green)}.sync-status small{color:var(--muted2)}.page{display:none;animation:fade .3s ease}.page.active-page{display:block}@keyframes fade{from{opacity:0;transform:translateY(10px)}to{opacity:1;transform:none}}.hero-panel{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;gap:20px;border:1px solid var(--line);border-radius:36px;padding:32px;background:radial-gradient(circle at 12% 5%,rgba(38,167,200,.10),transparent 35%),linear-gradient(135deg,#ffffff,#f7fbff);box-shadow:var(--shadow)}.hero-panel h1{font-size:clamp(30px,4vw,54px);margin:12px 0;line-height:1.4}.hero-panel p{color:#c4d8ea;max-width:760px}.hero-lock{min-width:190px;border:1px solid rgba(255,255,255,.11);border-radius:28px;padding:22px;text-align:center;background:rgba(3,15,28,.55)}.hero-lock span{font-size:42px}.hero-lock b{display:block;margin-top:8px}.hero-lock small{color:var(--muted)}.kpi-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px;margin:18px 0}.kpi-grid.compact{grid-template-columns:repeat(4,minmax(0,1fr))}.kpi-card,.kpi-grid>div{border:1px solid var(--line);border-radius:26px;padding:20px;background:linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.045));box-shadow:0 16px 45px rgba(0,0,0,.20)}.kpi-card b,.kpi-grid>div b{font-size:28px;color:#fff}.kpi-card span,.kpi-grid>div span{display:block;color:var(--muted);font-size:13px}.layout-2{display:grid;grid-template-columns:1fr 1fr;gap:18px}.panel{border:1px solid var(--line);border-radius:30px;padding:22px;background:linear-gradient(180deg,rgba(255,255,255,.09),rgba(255,255,255,.045));box-shadow:var(--shadow);margin:18px 0}.panel-head,.page-toolbar,.archive-heading{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:16px}.panel h2,.panel h3,.page-toolbar h3{margin:0;font-size:24px}.page-toolbar{border:1px solid var(--line);border-radius:30px;padding:22px;background:rgba(255,255,255,.065);box-shadow:var(--shadow)}.filters,.export-form,.export-actions{display:flex;gap:10px;align-items:center}.table-scroll{overflow:auto;border-radius:20px;border:1px solid rgba(255,255,255,.08)}table{width:100%;border-collapse:separate;border-spacing:0;min-width:780px;background:rgba(2,12,25,.45)}th,td{padding:14px 12px;border-bottom:1px solid rgba(255,255,255,.07);text-align:right;white-space:nowrap}th{position:sticky;top:0;background:#112b48;color:#cfe9ff;font-size:12px}td{color:#edf7ff}.money{direction:ltr;text-align:left}.student-grid,.grade-cards,.staff-cards,.parent-link-grid,.leader-list,.access-matrix,.security-cards,.podium,.message-list,.payroll-records,.performance-list{display:grid;gap:12px}.student-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.student-card,.leader-list>div,.access-matrix>div,.parent-link-grid>div,.staff-cards>div,.message-list>div,.payroll-records>div,.performance-list>div{border:1px solid rgba(255,255,255,.10);border-radius:22px;padding:16px;background:rgba(2,12,25,.42)}.student-card-head{display:flex;align-items:center;gap:12px}.avatar{display:grid;place-items:center;width:46px;height:46px;border-radius:18px;background:linear-gradient(145deg,#39e7e4,#46b8ff);color:#02101b;font-weight:900}.grade-cards{grid-template-columns:repeat(3,1fr);margin:18px 0}.grade-card{border:1px solid var(--line);border-radius:28px;padding:22px;background:linear-gradient(145deg,rgba(70,184,255,.14),rgba(255,255,255,.04));color:#fff;text-align:right}.grade-card b{font-size:32px}.form-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:14px}.form-grid .full,.full{grid-column:1/-1}.stack-form{display:grid;gap:14px}.check-label{display:flex;align-items:center;gap:10px}.check-label input{width:auto}.accounting-tabs{display:flex;gap:10px;overflow:auto;margin:16px 0}.accounting-tabs button{border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:12px 18px;background:rgba(255,255,255,.06);color:#dbeeff;white-space:nowrap}.accounting-tabs button.active{background:linear-gradient(135deg,#0da7d7,#0bc6a8);color:#01111d}.accounting-layer{display:none}.accounting-layer.active{display:block}.layer-back,.row-action{border:1px solid rgba(255,255,255,.12);border-radius:14px;background:rgba(255,255,255,.07);color:#dfefff;padding:9px 12px}.drawer,.modal-backdrop{position:fixed;inset:0;z-index:40;background:rgba(3,8,15,.75);backdrop-filter:blur(14px);overflow:auto;padding:24px}.drawer #studentDetail,.modal-card{width:min(900px,100%);margin:40px auto;border:1px solid var(--line);border-radius:30px;background:#08192c;padding:24px;box-shadow:var(--shadow)}.drawer-close,.modal-close{position:fixed;top:20px;left:20px;width:46px;height:46px;border:1px solid rgba(255,255,255,.15);border-radius:16px;background:#132b45;color:white;font-size:26px}.toast{position:fixed;left:22px;bottom:22px;z-index:50;max-width:420px;border:1px solid rgba(255,255,255,.13);border-radius:20px;background:#102841;color:#fff;padding:14px 18px;box-shadow:var(--shadow);opacity:0;transform:translateY(12px);transition:.25s}.toast.show{opacity:1;transform:none}.archive-panel{border:1px solid var(--line);border-radius:34px;padding:22px;background:linear-gradient(145deg,rgba(255,255,255,.09),rgba(255,255,255,.04));box-shadow:var(--shadow);margin:18px 0}.archive-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:16px}.archive-feature{position:relative;overflow:hidden;margin:0;border-radius:26px;min-height:320px;background:#06101d}.archive-feature img{width:100%;height:100%;object-fit:cover;display:block}.archive-feature:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,transparent 55%,rgba(0,0,0,.72))}.archive-feature figcaption{position:absolute;right:18px;left:18px;bottom:16px;z-index:2}.archive-feature small{display:block;color:#9beeff}.archive-feature strong{font-size:23px}.archive-thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.archive-thumbs button{overflow:hidden;border:1px solid rgba(255,255,255,.10);border-radius:16px;background:rgba(255,255,255,.05);padding:0}.archive-thumbs img{width:100%;aspect-ratio:1.2;object-fit:cover;display:block}.parent-shell,.generator-body{min-height:100vh}.parent-top{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;background:rgba(6,16,29,.86);backdrop-filter:blur(16px);border-bottom:1px solid rgba(255,255,255,.08)}.parent-main,.generator-main{width:min(1180px,100%);margin:0 auto;padding:24px}.parent-actions{display:flex;gap:10px;align-items:center}.generator-intro{display:flex;justify-content:space-between;gap:16px;align-items:end;border:1px solid var(--line);border-radius:34px;padding:28px;background:rgba(255,255,255,.07);box-shadow:var(--shadow)}.generator-intro h1{font-size:42px;margin:10px 0}.step-pills{display:flex;flex-wrap:wrap;gap:8px}.step-pills span{border:1px solid rgba(255,255,255,.12);border-radius:999px;padding:8px 12px;background:rgba(255,255,255,.06)}.generator-layout{display:grid;grid-template-columns:1.2fr .8fr;gap:18px;margin-top:18px}.consent{display:flex;gap:10px;align-items:flex-start;margin:12px 0}.consent input{width:auto;margin-top:7px}.result-icon{font-size:48px;color:var(--cyan)}.mobile-nav{display:none}.profile-hero{border:1px solid var(--line);border-radius:28px;padding:20px;background:rgba(255,255,255,.06);margin-bottom:18px}.profile-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin-top:16px}.profile-stats div{border:1px solid rgba(255,255,255,.10);border-radius:20px;padding:14px}.meeting-call{border:1px solid rgba(255,211,109,.35);border-radius:22px;background:rgba(255,211,109,.10);padding:16px}.trend-chart svg{width:100%;height:auto}.chart-labels{display:flex;justify-content:space-around;color:var(--muted);font-size:12px}.chart-labels b{display:block;color:#fff}.calculation-preview,.report-info{border:1px dashed rgba(57,231,228,.35);border-radius:22px;padding:16px;background:rgba(57,231,228,.06)}.export-panel{display:grid;gap:18px}.security-cards{grid-template-columns:repeat(4,1fr);margin-bottom:18px}.security-cards>div{border:1px solid var(--line);border-radius:24px;padding:18px;background:rgba(255,255,255,.07)}.empty-state{border:1px dashed rgba(255,255,255,.16);border-radius:22px;padding:24px;color:var(--muted);text-align:center}.portal-card,.panel,.hero-panel,.auth-card,.archive-panel,.page-toolbar{transform:translateZ(0)}@media(max-width:1050px){.app-shell{grid-template-columns:1fr}.sidebar{position:fixed;right:0;top:0;width:300px;transform:translateX(110%);transition:.25s}.sidebar.open{transform:none}.menu-btn{display:grid}.main-area{padding-bottom:90px}.mobile-nav{position:fixed;bottom:0;right:0;left:0;z-index:30;display:grid;grid-template-columns:repeat(5,1fr);gap:6px;padding:8px 10px;background:rgba(6,16,29,.92);backdrop-filter:blur(16px);border-top:1px solid rgba(255,255,255,.10)}.mobile-nav button{border:0;border-radius:16px;background:transparent;color:#b7cde3;padding:7px 2px}.mobile-nav button.active{background:rgba(57,231,228,.12);color:#fff}.mobile-nav span,.mobile-nav b{display:block}.mobile-nav b{font-size:11px}.kpi-grid,.kpi-grid.compact{grid-template-columns:repeat(2,1fr)}.portal-grid,.layout-2,.generator-layout,.archive-layout{grid-template-columns:1fr}.role-login,.auth-shell{grid-template-columns:1fr}.student-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:720px){body{background:#06101d}.portal-home-main,.main-area,.parent-main,.generator-main{padding:16px}.welcome,.hero-panel,.page-toolbar,.panel,.archive-panel,.auth-card,.login-story,.auth-brand,.generator-intro{border-radius:24px;padding:18px}.welcome{grid-template-columns:1fr}.welcome h1,.hero-panel h1,.login-story h1,.auth-brand h1,.generator-intro h1{font-size:28px}.portal-grid,.grade-cards,.student-grid,.kpi-grid,.kpi-grid.compact,.trust-grid,.profile-stats,.form-grid,.security-cards{grid-template-columns:1fr}.topbar{margin:-16px -16px 16px;padding:12px 16px}.top-actions{gap:6px}.role-chip,.sync-status{display:none}.hero-panel{display:grid}.hero-lock{min-width:0}.filters,.export-form,.export-actions,.parent-top,.parent-actions,.generator-intro{flex-direction:column;align-items:stretch}.portal-card{min-height:210px}.archive-thumbs{grid-template-columns:repeat(2,1fr)}.drawer,.modal-backdrop{padding:12px}.drawer #studentDetail,.modal-card{margin:60px auto 20px;padding:16px}.parent-top{position:relative}.brandmark{width:50px;height:50px}.btn,.icon-btn,input,select,textarea{min-height:44px}}

/* === V7 Premium UI Hardening === */
:root{--primary:#19d4dc;--accent:#477dff;--ink:#eef8ff;--muted:#71869a;--panel:#ffffff;--night:#07111f;--line:#d9e5ef;--radius:24px;--shadow:0 18px 50px rgba(8,28,48,.12)}
body{font-family:Tahoma,Arial,sans-serif;background:linear-gradient(145deg,#eef6fb,#f8fbff);color:#102033}.portal-home{background:radial-gradient(circle at 16% 0%,rgba(25,212,220,.22),transparent 33%),radial-gradient(circle at 80% 10%,rgba(71,125,255,.18),transparent 30%),linear-gradient(145deg,#06111f,#0b1d33 60%,#06111f);color:#fff}.portal-home-main{width:min(1160px,calc(100% - 32px));margin:auto;padding:32px 0}.welcome{border:1px solid rgba(255,255,255,.12);background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.035));border-radius:32px;padding:30px;box-shadow:0 24px 80px rgba(0,0,0,.28);display:flex;gap:18px;align-items:center}.welcome h1{font-size:42px;margin:8px 0}.welcome p{line-height:2}.brandmark,.brandmark.large{background:linear-gradient(135deg,var(--primary),var(--accent));box-shadow:0 0 40px rgba(25,212,220,.28);border-radius:22px;color:#06111f}.portal-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px;margin:24px 0}.portal-card{position:relative;overflow:hidden;border:1px solid rgba(255,255,255,.12)!important;background:linear-gradient(145deg,rgba(255,255,255,.08),rgba(255,255,255,.035))!important;border-radius:28px!important;box-shadow:0 24px 80px rgba(0,0,0,.28);color:#fff!important;padding:26px!important;text-decoration:none;min-height:265px}.portal-card:before{content:"";position:absolute;width:210px;height:210px;border-radius:50%;background:rgba(25,212,220,.13);left:-80px;top:-80px}.portal-card h2{font-size:28px}.portal-card p{color:#c7d9e8!important;line-height:2}.portal-card b{color:#8dfaff}.role-login,.auth-shell{min-height:100vh;background:radial-gradient(circle at 15% 5%,rgba(25,212,220,.2),transparent 33%),linear-gradient(145deg,#06111f,#0b1d33);color:#fff}.auth-card,.login-story,.panel,.hero-panel,.topbar,.sidebar{border-radius:var(--radius)!important;box-shadow:var(--shadow)}.auth-card{background:rgba(255,255,255,.96)!important;color:#14243a;border:1px solid rgba(255,255,255,.5)}.auth-card input,.auth-card select,.auth-card textarea{border:1px solid #d7e4ee;border-radius:16px;padding:14px;background:#f8fbff;color:#14243a}.btn.primary{background:linear-gradient(135deg,var(--primary),var(--accent))!important;border:0!important;color:white!important;border-radius:16px;box-shadow:0 14px 35px rgba(71,125,255,.22)}.app-shell{background:#f4f8fc}.sidebar{background:linear-gradient(180deg,#07111f,#0b1d33)!important;color:white;border:1px solid rgba(255,255,255,.08)}.side-nav button{border-radius:16px!important}.side-nav button.active{background:linear-gradient(135deg,rgba(25,212,220,.22),rgba(71,125,255,.18))!important}.topbar,.panel,.hero-panel{background:rgba(255,255,255,.92)!important;border:1px solid #e2edf5!important}.kpi-grid>*{border-radius:22px!important;background:linear-gradient(145deg,#fff,#f5faff)!important;border:1px solid #e0ebf4!important}.page-toolbar{background:#fff;border:1px solid #e0ebf4;border-radius:24px;padding:18px}.table-shell,table{border-radius:20px;overflow:hidden}.toast{border-radius:18px!important}@media(max-width:900px){.portal-grid{grid-template-columns:1fr}.welcome{align-items:flex-start}.welcome h1{font-size:30px}.portal-home-main{width:min(100% - 20px,1160px)}}

/* ===== V11 PRO UX / PAYROLL LAYERS ===== */
.nav-section-label{display:block;margin:16px 12px 6px;color:#6f8daa;font-size:10px;font-weight:800;letter-spacing:.06em}.quick-open{display:flex;align-items:center;gap:9px;border:1px solid #dce8f2;border-radius:16px;background:#fff;color:#18334e;padding:9px 12px;box-shadow:0 7px 20px rgba(31,73,112,.06)}.quick-open span{font-size:20px}.quick-open b{font-size:12px}.quick-open small{border:1px solid #d7e4ee;border-radius:8px;padding:3px 6px;color:#70869b;font-size:9px}.quick-access-panel{margin:18px 0;border:1px solid #e0eaf3;border-radius:28px;background:rgba(255,255,255,.94);padding:20px;box-shadow:0 16px 48px rgba(30,67,101,.08)}.quick-access-head{display:flex;justify-content:space-between;align-items:center;gap:14px;margin-bottom:14px}.quick-access-head h3{margin:4px 0 0}.quick-access-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.quick-access-grid button{border:1px solid #e0eaf3;border-radius:20px;background:linear-gradient(145deg,#fff,#f5f9fc);padding:16px;text-align:right;color:#18334e;cursor:pointer;transition:.2s}.quick-access-grid button:hover{transform:translateY(-2px);border-color:#a9dbe7;box-shadow:0 12px 28px rgba(26,92,123,.10)}.quick-access-grid span{display:inline-grid;place-items:center;width:36px;height:36px;border-radius:12px;background:#eaf8f6;color:#0e7e76;font-size:19px;margin-bottom:12px}.quick-access-grid b,.quick-access-grid small{display:block}.quick-access-grid small{margin-top:6px;color:#71869a;line-height:1.7}.payroll-toolbar{background:linear-gradient(135deg,#fff,#f2fbfa)!important}.accounting-tabs{position:sticky;top:86px;z-index:9;padding:8px;border:1px solid #ddeaf2;border-radius:20px;background:rgba(248,252,255,.93);backdrop-filter:blur(14px)}.accounting-tabs button{color:#4b6680!important;background:#fff!important;border-color:#dce7ef!important;cursor:pointer}.accounting-tabs button.active{background:linear-gradient(135deg,#0da7d7,#0bc6a8)!important;color:#fff!important;border-color:transparent!important;box-shadow:0 8px 22px rgba(13,167,215,.18)}.payroll-overview{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:16px 0}.overview-card{border:1px solid #deebf2;border-radius:24px;background:#fff;padding:18px}.overview-card small{display:block;color:#788da0}.overview-card b{display:block;margin:8px 0;color:#173b54;font-size:17px}.overview-card p{margin:0;color:#71869a;line-height:1.9;font-size:13px}.payroll-action-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px}.payroll-action-grid button{display:grid;grid-template-columns:auto 1fr;gap:3px 12px;align-items:center;border:1px solid #dceaf1;border-radius:24px;background:linear-gradient(145deg,#fff,#f7fbfd);padding:20px;text-align:right;color:#17384f;cursor:pointer}.payroll-action-grid button:hover{border-color:#99dace;box-shadow:0 14px 34px rgba(28,93,113,.10)}.payroll-action-grid span{grid-row:1/3;width:44px;height:44px;border-radius:14px;display:grid;place-items:center;background:#e9f8f5;color:#118377;font-weight:900}.payroll-action-grid b{font-size:15px}.payroll-action-grid small{color:#71869b;line-height:1.7}.component-editor{border:1px dashed #c8dce8;border-radius:20px;background:#f7fbfe;padding:14px}.component-head{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:10px}.component-head b,.component-head small{display:block}.component-head small{margin-top:4px;color:#73879a}.component-head>div:last-child{display:flex;gap:8px;flex-wrap:wrap}.component-rows{display:grid;gap:8px}.component-row{display:grid;grid-template-columns:120px 1fr 180px 42px;gap:8px;align-items:center}.component-row select,.component-row input{min-height:42px}.component-remove{width:42px;height:42px;border:1px solid #f0cbd0;border-radius:12px;background:#fff5f6;color:#b63b4b;font-size:20px;cursor:pointer}.insurance-field{border-right:3px solid #0aa78e;padding-right:12px}.insurance-field small{display:block;color:#73879a;margin-top:6px}.pay-chip-list{display:flex;flex-wrap:wrap;gap:6px;margin:12px 0}.pay-chip{display:inline-flex;border:1px solid #dce7ef;border-radius:999px;padding:6px 9px;background:#f7fafc;color:#526b80;font-size:11px}.pay-chip.allowance{background:#eefaf6;border-color:#cdece2;color:#16755e}.pay-chip.deduction{background:#fff5f5;border-color:#f1d4d7;color:#a94a56}.selected-pay-profile{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;border:1px solid #dfeaf2;border-radius:20px;background:#f9fcfe;padding:14px}.selected-pay-profile>div{padding:8px}.selected-pay-profile small,.selected-pay-profile b{display:block}.selected-pay-profile small{color:#75899b}.selected-pay-profile .full{grid-column:1/-1;display:flex;flex-wrap:wrap;gap:6px}.calculation-preview{display:grid;grid-template-columns:repeat(4,1fr);gap:10px}.calculation-preview>div{border:1px solid #dbe8ee;border-radius:16px;background:#fff;padding:12px}.calculation-preview small,.calculation-preview b{display:block}.calculation-preview small{color:#788b9b}.calculation-preview b{margin-top:5px}.calculation-preview .net{background:#edf9f6;border-color:#bfe7dc}.payroll-breakdown{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))!important}.command-palette{position:fixed;inset:0;z-index:80;display:grid;place-items:start center;padding:10vh 16px 20px;background:rgba(5,18,30,.46);backdrop-filter:blur(10px)}.command-palette.hidden{display:none}.command-card{width:min(680px,100%);border:1px solid rgba(255,255,255,.55);border-radius:28px;background:#fff;padding:16px;box-shadow:0 28px 100px rgba(7,27,45,.32)}.command-head{display:flex;justify-content:space-between;align-items:center;color:#16334c;padding:4px 4px 12px}.command-head button{width:36px;height:36px;border:0;border-radius:12px;background:#eff5f8;color:#466379;font-size:22px;cursor:pointer}.command-search{display:flex!important;align-items:center;gap:10px;border:1px solid #d7e5ee;border-radius:18px;background:#f8fbfd;padding:0 14px}.command-search span{font-size:22px;color:#6b8599}.command-search input{border:0!important;background:transparent!important;box-shadow:none!important;padding:14px 0!important;width:100%}.command-results{display:grid;gap:7px;margin-top:12px;max-height:50vh;overflow:auto}.command-item{display:flex;justify-content:space-between;align-items:center;gap:12px;border:1px solid transparent;border-radius:16px;background:#fff;padding:12px 14px;text-align:right;color:#17374f;cursor:pointer}.command-item:hover,.command-item.selected{background:#f0faf8;border-color:#c8ebe3}.command-item span{font-weight:800}.command-item small{color:#73889a}.command-hint{display:block;margin-top:12px;padding:8px;text-align:center;color:#8395a5;font-size:10px;border-top:1px solid #edf2f5}
@media(max-width:1050px){.quick-open b,.quick-open small{display:none}.quick-access-grid{grid-template-columns:repeat(2,1fr)}.payroll-overview,.payroll-action-grid{grid-template-columns:1fr}.accounting-tabs{top:70px}.component-row{grid-template-columns:105px 1fr 145px 42px}.calculation-preview{grid-template-columns:repeat(2,1fr)}}
@media(max-width:720px){.quick-access-head{align-items:flex-start;flex-direction:column}.quick-access-grid{grid-template-columns:1fr}.quick-open{padding:8px}.quick-open b,.quick-open small{display:none}.accounting-tabs{top:0;position:relative}.component-head{align-items:flex-start;flex-direction:column}.component-row{grid-template-columns:1fr 1fr}.component-row [data-component-title]{grid-column:1/-1}.component-remove{width:100%;height:42px}.selected-pay-profile,.calculation-preview{grid-template-columns:1fr}.selected-pay-profile .full{grid-column:auto}.command-palette{padding-top:5vh}.command-item{align-items:flex-start;flex-direction:column;gap:4px}}
.network-access-card{display:grid;grid-template-columns:190px 1fr;gap:18px;align-items:center;border:1px solid #dce8ef;border-radius:22px;background:#f8fbfd;padding:16px}.network-access-card img{width:190px;max-width:100%;aspect-ratio:1;border-radius:16px;background:#fff}.network-access-card textarea{direction:ltr;text-align:left}.network-access-card .badge{display:inline-flex;margin:10px 8px 0 0}@media(max-width:600px){.network-access-card{grid-template-columns:1fr}.network-access-card img{margin:auto}}
/* V12 — friendly mobile-first school operating layer */
.today-event-banner{margin:0 18px 8px;padding:12px 18px;border-radius:18px;background:linear-gradient(135deg,#fff6d8,#edf9f6);border:1px solid #e9dca8;display:flex;align-items:center;gap:12px;color:#264052}.today-event-banner>span{font-size:26px}.today-event-banner div{display:grid;gap:2px;flex:1}.today-event-banner small{color:#64748b}.today-event-banner em{font-style:normal;font-weight:800;color:#7c3aed}.jalali-chip{padding:10px 14px;border-radius:14px;background:#eef2ff;color:#5b21b6;font-weight:800}.mobile-operation-panel{margin-bottom:16px}.operation-actions{display:flex;gap:10px;flex-wrap:wrap;align-items:center}.attendance-cards{display:grid;gap:10px}.attendance-card{background:#fff;border:1px solid #dfe8ef;border-radius:18px;padding:14px;display:grid;grid-template-columns:minmax(180px,1fr) 2fr minmax(150px,1fr);gap:14px;align-items:center;box-shadow:0 6px 22px rgba(20,45,70,.04)}.attendance-card>div:first-child{display:grid}.attendance-card small{color:#789}.attendance-options{display:grid;grid-template-columns:repeat(4,1fr);gap:7px}.attendance-options button{border:1px solid #d9e3ea;background:#f8fafc;border-radius:12px;padding:10px 6px;cursor:pointer}.attendance-options button.active{background:#e4f8f2;border-color:#35a88c;color:#116450;font-weight:800}.attendance-options button.active.danger{background:#fff0f0;border-color:#e56a6a;color:#a12525}.attendance-note{width:100%;box-sizing:border-box}.sticky-save{position:sticky;bottom:82px;margin-top:14px;z-index:5}.points-chip{font-size:12px;padding:3px 8px;border-radius:999px;background:#eef2ff;color:#5b21b6}.event-list{display:grid;gap:10px}.event-card{display:grid;grid-template-columns:120px 1fr auto;gap:14px;align-items:center;padding:14px;border-radius:16px;background:#fff;border:1px solid #e3eaf0}.event-card time{font-weight:900;color:#6d28d9}.event-card p{margin:4px 0;color:#65788a}.event-card>span{background:#edf7f4;color:#176b59;padding:6px 10px;border-radius:999px}.approval-list{display:grid;gap:9px;margin-top:12px}.approval-row{display:flex;justify-content:space-between;gap:12px;align-items:center;padding:12px;border:1px solid #e3eaf0;border-radius:14px}.approval-row div{display:grid}.approval-row small{color:#738596}.teacher-contract-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(320px,1fr));gap:14px}.contract-card,.teacher-public-card{background:#fff;border:1px solid #e2e9ef;border-radius:20px;padding:16px}.contract-head{display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:14px}.contract-head>div{display:grid}.contract-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}.contract-grid label{display:grid;gap:5px;font-size:12px;color:#607283}.contract-grid input,.contract-grid select{width:100%;box-sizing:border-box}.teacher-public-card{display:flex;gap:14px}.teacher-public-card img{width:72px;height:72px;border-radius:18px;object-fit:cover}.friendly-callout{padding:18px;border-radius:18px;background:#f1fbf8;color:#206556;line-height:2}.private-photo-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin-top:16px}.private-photo{margin:0;background:#fff;border:1px solid #e1e8ee;border-radius:20px;overflow:hidden}.private-photo img{width:100%;aspect-ratio:4/3;object-fit:cover}.private-photo figcaption{padding:12px;display:grid;gap:5px}.private-photo figcaption span{color:#76899a;font-size:12px}.fee-plan-panel{margin-bottom:14px}.installment-row{display:grid;grid-template-columns:1.2fr 1fr 1fr auto;gap:10px;align-items:center;padding:10px;border-top:1px solid #e6edf2}.installment-row em{font-style:normal;color:#4d7b6d}.mobile-grade-entry{margin-bottom:14px}.academic-profile{margin-bottom:14px}
@media(max-width:760px){.today-event-banner{margin:8px 10px}.attendance-card{grid-template-columns:1fr}.attendance-options{grid-template-columns:repeat(4,1fr)}.attendance-options button{font-size:12px;padding:12px 3px}.event-card{grid-template-columns:1fr}.contract-grid{grid-template-columns:1fr}.approval-row{align-items:flex-start;flex-direction:column}.installment-row{grid-template-columns:1fr 1fr}.teacher-contract-grid{grid-template-columns:1fr}.page-toolbar{align-items:flex-start}.operation-actions .btn{flex:1;min-width:140px}}
.parent-section-grid{display:grid;grid-template-columns:1.2fr 1fr;gap:16px}.parent-finance-kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:12px}.parent-finance-kpis>div{padding:12px;border-radius:14px;background:#f7fafc;display:grid;gap:4px}.parent-finance-kpis span{font-size:12px;color:#738496}.exam-card-ready,.exam-card-locked{padding:16px;border-radius:18px;border:1px solid #dfe8ee;display:grid;gap:10px}.exam-card-ready{background:#f2fbf7}.exam-card-ready>div:first-child,.exam-student{display:grid;gap:3px}.exam-card-ready>div:first-child>span{font-size:22px;color:#168267}.exam-card-locked{background:#fff8f0}.exam-card-locked p{margin:0;color:#805d3b}.teacher-exp{color:#63798a}.edit-existing-box{display:flex;gap:10px;align-items:end;padding:12px;border-radius:14px;background:#f7fafc}.edit-existing-box label{flex:1}@media(max-width:760px){.parent-section-grid{grid-template-columns:1fr}.parent-finance-kpis{grid-template-columns:1fr}.edit-existing-box{align-items:stretch;flex-direction:column}}
.jalali-top-date{font-size:12px;font-weight:800;color:#5b6470;background:#f6f0ff;border:1px solid #e7dcff;padding:8px 10px;border-radius:999px;white-space:nowrap}.parent-shell,.main-area{background-image:radial-gradient(circle at 95% 5%,rgba(139,92,246,.055),transparent 24%),radial-gradient(circle at 5% 28%,rgba(16,185,129,.045),transparent 22%)}
@media(max-width:760px){.jalali-top-date{font-size:10px;padding:6px 8px}.mobile-nav{overflow-x:auto}}

/* V13 role isolation + student photo */
.avatar img{width:100%;height:100%;object-fit:cover;border-radius:inherit;display:block}.student-photo-manager{margin-top:16px}.student-photo-preview{min-height:90px;display:flex;align-items:center;justify-content:center;margin:10px 0}.student-photo-preview img{width:96px;height:96px;object-fit:cover;border-radius:24px;border:1px solid var(--line,#d9e2e8)}

.jalali-month-grid{padding:8px}.jalali-month-title{text-align:center;font-weight:800;font-size:1.05rem;margin-bottom:10px}.jalali-weekdays,.jalali-days{display:grid;grid-template-columns:repeat(7,1fr);gap:6px}.jalali-weekdays span{text-align:center;font-size:.78rem;opacity:.65}.jalali-day{min-height:42px;border:1px solid var(--line,#d9e2e8);border-radius:12px;display:grid;place-items:center;position:relative;background:rgba(255,255,255,.35)}.jalali-day.empty{border-color:transparent;background:transparent}.jalali-day.today{outline:2px solid #27a68e;font-weight:900}.jalali-day.has-event i{width:6px;height:6px;border-radius:50%;background:#7c3aed;position:absolute;bottom:5px}.jalali-day b{font-size:.9rem}

/* ============================================================
   V15 VISUAL REFRESH — energetic, compact, Persian-first UI
   Safe visual layer: no API/DB behavior changes.
   ============================================================ */
:root{
  --ui-navy:#07192d;
  --ui-navy-2:#0b2740;
  --ui-cyan:#19d4dc;
  --ui-blue:#477dff;
  --ui-green:#20c997;
  --ui-orange:#ff9f43;
  --ui-purple:#8b5cf6;
  --ui-ink:#10243a;
  --ui-muted:#6f8294;
  --ui-bg:#eef5fa;
  --ui-line:#dce8f0;
  --ui-shadow:0 16px 42px rgba(14,48,75,.10);
}
body{font-family:Tahoma,"Segoe UI",Arial,sans-serif}

/* Home */
.portal-home{background:radial-gradient(circle at 85% 8%,rgba(25,212,220,.22),transparent 27%),radial-gradient(circle at 10% 15%,rgba(71,125,255,.22),transparent 25%),linear-gradient(145deg,#061221 0%,#0a2239 55%,#071625 100%)}
.portal-home-main{width:min(1240px,calc(100% - 40px));padding:34px 0 44px}
.home-welcome{min-height:290px;grid-template-columns:auto minmax(0,1fr) 220px!important;gap:28px!important;padding:34px 38px!important;border-radius:34px!important;background:linear-gradient(125deg,rgba(255,255,255,.12),rgba(255,255,255,.045))!important;box-shadow:0 26px 90px rgba(0,0,0,.30)!important}
.home-welcome:before{content:"";position:absolute;inset:auto -90px -150px auto;width:390px;height:390px;border-radius:50%;background:radial-gradient(circle,rgba(25,212,220,.22),transparent 68%);filter:blur(2px)}
.welcome-copy{position:relative;z-index:2}.welcome-copy h1{max-width:760px;font-size:clamp(34px,4.3vw,58px)!important;line-height:1.3!important}.welcome-copy>p:not(.eyebrow){max-width:760px;font-size:16px!important;color:#d3e5f3!important}
.home-status{display:flex;gap:9px;flex-wrap:wrap;margin-top:20px}.home-status span{border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.07);border-radius:999px;padding:7px 11px;font-size:11px;color:#d9ecf8}.home-status span:first-child{color:#a9ffe2;border-color:rgba(32,201,151,.34);background:rgba(32,201,151,.11)}
.welcome-pulse{position:relative;z-index:2;width:190px;height:190px;border-radius:50%;display:grid;place-items:center;text-align:center;border:1px solid rgba(255,255,255,.12);background:radial-gradient(circle at 50% 45%,rgba(25,212,220,.18),rgba(71,125,255,.06) 50%,transparent 68%);box-shadow:inset 0 0 60px rgba(25,212,220,.09)}
.welcome-pulse:before,.welcome-pulse:after{content:"";position:absolute;border-radius:50%;border:1px solid rgba(25,212,220,.30);inset:16px}.welcome-pulse:after{inset:36px;border-color:rgba(71,125,255,.34)}.welcome-pulse i{position:absolute;width:11px;height:11px;border-radius:50%;background:#5bffe7;box-shadow:0 0 0 8px rgba(91,255,231,.08),0 0 24px rgba(91,255,231,.9);top:22px;right:78px}.welcome-pulse b{position:relative;z-index:2;direction:ltr;line-height:1.15;letter-spacing:.14em;color:#fff;font-size:20px}
.portal-intro{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:28px 4px 13px}.portal-intro h2{margin:3px 0 0;font-size:25px}.portal-intro p{margin:0;color:#9fb7c9;font-size:13px}
.portal-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:16px!important;margin-top:0!important}.portal-card{min-height:228px!important;border-radius:26px!important;padding:24px!important;box-shadow:0 16px 50px rgba(0,0,0,.18)!important;transition:transform .22s ease,border-color .22s ease,box-shadow .22s ease!important}.portal-card:hover{transform:translateY(-5px)!important;box-shadow:0 24px 65px rgba(0,0,0,.26)!important}.portal-card h2{font-size:25px!important;margin:14px 0 6px!important}.portal-card p{font-size:13px;line-height:1.95!important;max-width:90%;margin:0}.portal-card b{bottom:18px!important;font-size:12px}.portal-card .portal-icon{width:45px;height:45px;border-radius:15px}.portal-card.manager{background:radial-gradient(circle at 10% 0%,rgba(71,125,255,.25),transparent 42%),linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important}.portal-card.teacher{background:radial-gradient(circle at 10% 0%,rgba(32,201,151,.22),transparent 42%),linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important}.portal-card.parent{background:radial-gradient(circle at 10% 0%,rgba(255,159,67,.20),transparent 42%),linear-gradient(145deg,rgba(255,255,255,.10),rgba(255,255,255,.035))!important}

/* Role login */
.role-login,.auth-shell{background:radial-gradient(circle at 88% 10%,rgba(25,212,220,.18),transparent 28%),radial-gradient(circle at 10% 86%,rgba(71,125,255,.18),transparent 30%),linear-gradient(145deg,#061221,#0a2239)!important;gap:22px!important;padding-top:28px!important;padding-bottom:28px!important}.login-story,.auth-brand{border-radius:30px!important;padding:34px!important;background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.035))!important}.auth-card{border-radius:26px!important;padding:25px!important;box-shadow:0 22px 70px rgba(0,0,0,.22)!important}.auth-card h2{font-size:24px!important}.auth-card label{color:#405367!important;font-size:12px}.auth-card input{min-height:48px;background:#f7fafc!important}.security-note{background:#f4f9fb;border:1px solid #e1ebf1;border-radius:14px;padding:10px 12px;color:#607487!important}

/* Main application shell */
.app-shell{grid-template-columns:260px minmax(0,1fr)!important;background:var(--ui-bg)!important}.sidebar{width:auto!important;padding:16px!important;border-radius:0!important;border:0!important;border-left:1px solid rgba(255,255,255,.07)!important;background:linear-gradient(180deg,#071729 0%,#091f35 55%,#061522 100%)!important;box-shadow:8px 0 38px rgba(13,43,67,.08)!important}.school-brand{padding:4px 3px 14px;border-bottom:1px solid rgba(255,255,255,.08)}.school-brand .brandmark{width:48px;height:48px;border-radius:16px;font-size:28px}.school-brand b{font-size:16px}.school-brand span{font-size:10px;color:#8faabd}.side-nav{gap:5px!important;margin-top:9px!important}.nav-section-label{margin:13px 9px 4px!important;color:#6e92ac!important;font-size:9px!important}.side-nav button{min-height:43px!important;padding:8px 10px!important;border:1px solid transparent!important;border-radius:13px!important;color:#c8d8e5!important;font-size:12px!important}.side-nav button span{color:#72deea}.side-nav button.active{background:linear-gradient(135deg,rgba(25,212,220,.17),rgba(71,125,255,.14))!important;border-color:rgba(67,211,220,.28)!important;box-shadow:inset 3px 0 0 #26d8d5!important;color:#fff!important}.side-nav button:hover{background:rgba(255,255,255,.055)!important;color:#fff!important}.sidebar-foot{padding-top:10px!important}.sidebar-foot span{font-size:10px!important}
.main-area{background:radial-gradient(circle at 98% 2%,rgba(139,92,246,.05),transparent 20%),radial-gradient(circle at 5% 18%,rgba(25,212,220,.05),transparent 20%),var(--ui-bg)!important;color:var(--ui-ink)!important;padding:0 20px 34px!important;min-width:0}.topbar{position:sticky!important;top:0!important;z-index:15!important;margin:0 -20px 16px!important;padding:11px 20px!important;min-height:76px!important;border-radius:0 0 24px 24px!important;background:rgba(255,255,255,.91)!important;backdrop-filter:blur(18px)!important;border:0!important;border-bottom:1px solid rgba(209,224,234,.9)!important;box-shadow:0 10px 28px rgba(17,53,78,.06)!important}.top-context .eyebrow{margin-bottom:2px!important;font-size:9px!important;color:#14a7b1!important}.top-context h2{font-size:25px!important;margin:0!important;line-height:1.4}.top-actions{gap:7px!important}.role-chip{padding:7px 10px!important;border-radius:15px!important;background:#f7fafc!important;border:1px solid #dfe8ee!important}.role-chip b{font-size:11px}.role-chip small{font-size:9px}.quick-open{min-height:42px!important;border-radius:14px!important;box-shadow:none!important}.jalali-top-date{background:#f2f0ff!important;border-color:#e3ddff!important;color:#6751a8!important}

/* Manager dashboard */
.manager-hero{position:relative;overflow:hidden;display:grid!important;grid-template-columns:minmax(0,1fr) 250px!important;align-items:center!important;gap:24px!important;min-height:210px!important;margin-top:4px!important;padding:28px 30px!important;border:0!important;border-radius:28px!important;background:radial-gradient(circle at 14% 8%,rgba(25,212,220,.22),transparent 34%),linear-gradient(135deg,#0a2842 0%,#103b5b 62%,#0f4660 100%)!important;color:#fff!important;box-shadow:0 22px 52px rgba(13,54,83,.18)!important}.manager-hero:after{content:"";position:absolute;left:-60px;bottom:-140px;width:320px;height:320px;border-radius:50%;border:1px solid rgba(255,255,255,.10);box-shadow:0 0 0 35px rgba(255,255,255,.025),0 0 0 70px rgba(255,255,255,.018)}.manager-hero-copy{position:relative;z-index:2}.manager-hero h1{font-size:clamp(27px,3vw,39px)!important;margin:10px 0 8px!important;color:#fff!important;line-height:1.35!important}.manager-hero p{max-width:760px!important;margin:0!important;color:#cfe2ef!important;font-size:13px!important;line-height:2!important}.manager-hero .status-label{background:rgba(25,212,220,.13)!important;border-color:rgba(71,236,236,.28)!important;color:#8cf7f1!important}.hero-mini-status{display:flex;gap:8px;flex-wrap:wrap;margin-top:17px}.hero-mini-status span{padding:6px 10px;border-radius:999px;border:1px solid rgba(255,255,255,.10);background:rgba(255,255,255,.06);font-size:10px;color:#cfe3ef}.hero-mini-status span:first-child{color:#9ff2ce}.hero-lock{position:relative;z-index:2;min-width:0!important;border:1px solid rgba(255,255,255,.12)!important;border-radius:22px!important;background:rgba(5,24,39,.30)!important;padding:22px!important;backdrop-filter:blur(8px)}.hero-lock span{display:grid!important;place-items:center!important;width:46px!important;height:46px!important;border-radius:15px!important;background:linear-gradient(135deg,#21d3b2,#34b5e5)!important;color:#062033!important;font-size:24px!important;margin-bottom:12px!important}.hero-lock b{display:block;color:#fff!important;font-size:14px}.hero-lock small{color:#b7cfdd!important;font-size:10px}
.kpi-grid{display:grid!important;grid-template-columns:repeat(4,minmax(0,1fr))!important;gap:12px!important;margin:14px 0 0!important}.kpi-grid .kpi{position:relative;overflow:hidden;min-height:122px;padding:17px 18px!important;border:1px solid #dde8ef!important;border-radius:21px!important;background:#fff!important;box-shadow:var(--ui-shadow)!important}.kpi-grid .kpi:before{content:"";position:absolute;right:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#19d4dc,#477dff)}.kpi-grid .kpi:nth-child(2):before{background:linear-gradient(180deg,#8b5cf6,#b974ff)}.kpi-grid .kpi:nth-child(3):before{background:linear-gradient(180deg,#20c997,#57dfb6)}.kpi-grid .kpi:nth-child(4):before{background:linear-gradient(180deg,#ff9f43,#ffcc68)}.kpi-grid .kpi:nth-child(5):before{background:linear-gradient(180deg,#ef6f86,#ff9b9b)}.kpi-grid .klabel{font-size:11px!important;color:#718395!important}.kpi-grid .kvalue{font-size:26px!important;color:#102c43!important;margin:5px 0 1px!important;font-weight:900!important}.kpi-grid .ksub{font-size:9px!important;color:#93a2af!important}.quick-access-panel{margin:14px 0!important;border-radius:24px!important;padding:17px!important;box-shadow:var(--ui-shadow)!important}.quick-access-head{margin-bottom:11px!important}.quick-access-head .eyebrow{font-size:9px!important}.quick-access-head h3{font-size:18px!important}.quick-access-grid{gap:10px!important}.quick-access-grid button{min-height:112px!important;border-radius:18px!important;padding:14px!important}.quick-access-grid span{width:34px!important;height:34px!important;border-radius:11px!important;margin-bottom:8px!important}.quick-access-grid b{font-size:12px}.quick-access-grid small{font-size:9px!important;margin-top:3px!important}.panel,.page-toolbar,.archive-panel{border-color:#dfe9f0!important;box-shadow:var(--ui-shadow)!important}.archive-panel{border-radius:24px!important}.layout-2{gap:14px!important}

/* Cleaner typography + focus */
.main-area .eyebrow{letter-spacing:.04em!important;text-transform:none!important}.panel h3,.page-toolbar h3{color:#17344c!important}.panel,.page-toolbar,.quick-access-panel{color:#17344c}.soft-pill{background:#f5f8fb!important;border-color:#dfe8ee!important;color:#637688!important}.icon-btn{border-radius:13px!important}.btn{border-radius:13px!important}.btn.primary{box-shadow:0 10px 24px rgba(71,125,255,.18)!important}

@media(max-width:1180px){.home-welcome{grid-template-columns:auto 1fr!important}.welcome-pulse{display:none}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:1050px){.app-shell{grid-template-columns:1fr!important}.sidebar{width:280px!important;border-radius:0!important}.main-area{padding:0 14px 90px!important}.topbar{margin:0 -14px 14px!important;padding:10px 14px!important}.manager-hero{grid-template-columns:1fr 220px!important}}
@media(max-width:760px){.portal-home-main{width:min(100% - 20px,1240px)!important;padding:14px 0 24px!important}.home-welcome{grid-template-columns:1fr!important;padding:23px!important;min-height:0!important}.home-welcome .brandmark{width:58px;height:58px}.welcome-copy h1{font-size:31px!important}.portal-intro{align-items:flex-start;flex-direction:column;margin-top:20px}.portal-grid{grid-template-columns:1fr!important}.portal-card{min-height:205px!important}.manager-hero{grid-template-columns:1fr!important;padding:22px!important;border-radius:22px!important}.hero-lock{padding:15px!important}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpi-grid .kpi{min-height:108px!important;padding:14px!important}.kpi-grid .kvalue{font-size:22px!important}.top-context h2{font-size:20px!important}.quick-access-panel{border-radius:20px!important}.role-login,.auth-shell{padding:12px!important}.login-story,.auth-brand{padding:24px!important}.auth-card{padding:20px!important}}
@media(max-width:430px){.kpi-grid{grid-template-columns:1fr!important}.home-status{display:grid}.home-status span{width:max-content}.manager-hero h1{font-size:27px!important}}

/* =========================================================
   R2 MOBILE-FIRST HARDENING — 2026-09-23
   هدف: تجربه اصلی سامانه روی گوشی، سپس تبلت و دسکتاپ
   ========================================================= */
:root{--mobile-nav-h:72px}
html{-webkit-text-size-adjust:100%;text-size-adjust:100%}
body{overscroll-behavior-y:none}
button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}
button,a{touch-action:manipulation}

@media(max-width:760px){
  body{font-size:14px;line-height:1.75;padding-bottom:env(safe-area-inset-bottom)}
  .portal-home-main{width:100%!important;padding:10px 12px 22px!important}
  .home-welcome{padding:18px!important;border-radius:22px!important;gap:13px!important;background:radial-gradient(circle at 92% 4%,rgba(25,212,220,.18),transparent 36%),linear-gradient(150deg,rgba(255,255,255,.09),rgba(255,255,255,.035))!important}
  .home-welcome .brandmark{width:52px!important;height:52px!important;border-radius:17px!important;font-size:30px!important}
  .welcome-copy .eyebrow{font-size:10px!important;letter-spacing:.04em!important;margin-bottom:3px!important}
  .welcome-copy h1{font-size:25px!important;line-height:1.45!important;margin:3px 0 7px!important}
  .welcome-copy>p:not(.eyebrow){font-size:13px!important;line-height:1.9!important;margin:0!important;color:#bdd0e0!important}
  .home-status{display:flex!important;overflow-x:auto;gap:7px!important;margin-top:12px!important;padding-bottom:2px;scrollbar-width:none}
  .home-status::-webkit-scrollbar{display:none}
  .home-status span{flex:0 0 auto!important;font-size:10px!important;padding:5px 9px!important}
  .portal-intro{margin:16px 2px 9px!important;gap:3px!important}
  .portal-intro h2{font-size:19px!important;margin:1px 0!important}
  .portal-intro p{font-size:11px!important;margin:0!important}
  .portal-grid{gap:10px!important}
  .portal-card{min-height:156px!important;padding:17px!important;border-radius:20px!important}
  .portal-card .portal-icon{width:39px!important;height:39px!important;border-radius:13px!important;font-size:20px!important}
  .portal-card small{font-size:10px!important}
  .portal-card h2{font-size:21px!important;margin:8px 0 3px!important}
  .portal-card p{font-size:11px!important;line-height:1.7!important;max-width:88%!important;margin-bottom:25px!important}
  .portal-card b{right:17px!important;bottom:12px!important;font-size:10px!important}

  .role-login,.auth-shell{display:block!important;min-height:100dvh!important;padding:12px!important}
  .login-story,.auth-brand{padding:17px!important;border-radius:20px!important;margin-bottom:10px!important}
  .login-story h1,.auth-brand h1{font-size:24px!important;margin:5px 0!important}
  .login-story p,.auth-brand p{font-size:12px!important;margin:4px 0!important}
  .login-story ul,.trust-grid{display:none!important}
  .login-story>a{margin-bottom:10px!important;font-size:12px!important}
  .auth-card{padding:18px!important;border-radius:20px!important}
  .auth-card h2{font-size:21px!important}
  .auth-card-head{align-items:flex-start!important}
  .shield-icon{width:42px!important;height:42px!important;border-radius:14px!important}
  .auth-card form{gap:12px!important;margin-top:13px!important}
  label{font-size:12px!important;gap:5px!important}
  input,select,textarea{font-size:16px!important;min-height:48px!important;border-radius:14px!important;padding:11px 12px!important}
  .btn{min-height:48px!important;border-radius:14px!important;padding:10px 14px!important}

  .main-area{padding:0 10px calc(var(--mobile-nav-h) + 22px + env(safe-area-inset-bottom))!important}
  .topbar{margin:0 -10px 10px!important;padding:8px 10px!important;min-height:58px!important;top:0!important}
  .top-context .eyebrow{display:none!important}
  .top-context h2{font-size:17px!important;line-height:1.35!important}
  .top-actions{gap:5px!important}
  .icon-btn{width:40px!important;height:40px!important;border-radius:13px!important}
  .role-chip,.sync-status,.quick-search{display:none!important}

  .manager-hero,.hero-panel{padding:16px!important;border-radius:19px!important;gap:12px!important}
  .manager-hero h1,.hero-panel h1{font-size:24px!important;margin:3px 0!important}
  .manager-hero p,.hero-panel p{font-size:12px!important;line-height:1.75!important;margin:4px 0!important}
  .hero-lock{display:none!important}
  .kpi-grid,.kpi-grid.compact{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important;margin:10px 0!important}
  .kpi-grid .kpi,.kpi-grid>div,.kpi-card{min-height:92px!important;padding:12px!important;border-radius:17px!important}
  .kpi-grid .kvalue,.kpi-grid>div b,.kpi-card b{font-size:20px!important;line-height:1.35!important}
  .kpi-grid span,.kpi-card span{font-size:10px!important;line-height:1.5!important}
  .page-toolbar{padding:13px!important;border-radius:18px!important;margin-bottom:10px!important}
  .page-toolbar h3,.panel h3,.panel h2{font-size:18px!important}
  .page-toolbar p,.panel .hint{font-size:11px!important;line-height:1.7!important}
  .panel,.archive-panel{padding:13px!important;border-radius:18px!important;margin:10px 0!important}
  .layout-2,.student-grid,.grade-cards,.teacher-contract-grid,.parent-link-grid,.security-cards{grid-template-columns:1fr!important;gap:9px!important}
  .form-grid{grid-template-columns:1fr!important;gap:10px!important}
  .form-grid .full,.full{grid-column:auto!important}
  .operation-actions,.export-actions,.filters,.export-form{display:grid!important;grid-template-columns:1fr!important;gap:8px!important;width:100%!important}
  .operation-actions .btn,.export-actions .btn{width:100%!important;min-width:0!important}
  .accounting-tabs{margin:10px -2px!important;padding-bottom:3px!important;gap:7px!important;scroll-snap-type:x proximity}
  .accounting-tabs button{flex:0 0 auto!important;min-height:42px!important;padding:8px 13px!important;font-size:11px!important;scroll-snap-align:start}
  .table-scroll{margin:0 -3px!important;border-radius:14px!important;overflow-x:auto!important;-webkit-overflow-scrolling:touch}
  table{min-width:680px!important;font-size:11px!important}
  th,td{padding:10px 8px!important}
  .student-card,.leader-list>div,.access-matrix>div,.parent-link-grid>div,.staff-cards>div,.message-list>div,.payroll-records>div,.performance-list>div{padding:12px!important;border-radius:16px!important}

  .mobile-nav{height:calc(var(--mobile-nav-h) + env(safe-area-inset-bottom))!important;padding:7px 6px calc(7px + env(safe-area-inset-bottom))!important;grid-template-columns:repeat(5,minmax(58px,1fr))!important;gap:3px!important;overflow-x:auto!important;overscroll-behavior-x:contain;scrollbar-width:none;background:rgba(5,17,30,.96)!important}
  .mobile-nav::-webkit-scrollbar{display:none}
  .mobile-nav button{min-width:58px!important;min-height:52px!important;border-radius:14px!important;padding:5px 2px!important}
  .mobile-nav span{font-size:17px!important;line-height:1.2!important}
  .mobile-nav b{font-size:9.5px!important;white-space:nowrap!important;margin-top:2px!important}
  .mobile-nav button.active{background:linear-gradient(145deg,rgba(25,212,220,.18),rgba(71,125,255,.14))!important;box-shadow:inset 0 0 0 1px rgba(74,224,224,.22)!important}

  .drawer,.modal-backdrop{padding:8px!important}
  .drawer #studentDetail,.modal-card{width:100%!important;margin:52px auto 8px!important;padding:13px!important;border-radius:18px!important;max-height:calc(100dvh - 66px);overflow:auto}
  .drawer-close,.modal-close{top:8px!important;left:8px!important;width:42px!important;height:42px!important;border-radius:13px!important}
  .toast{right:10px!important;left:10px!important;bottom:calc(var(--mobile-nav-h) + 12px + env(safe-area-inset-bottom))!important;max-width:none!important;border-radius:14px!important;font-size:12px!important;padding:11px 13px!important}
}

@media(max-width:390px){
  .welcome-copy h1{font-size:22px!important}
  .portal-card{min-height:150px!important}
  .kpi-grid,.kpi-grid.compact{grid-template-columns:1fr 1fr!important}
  .kpi-grid .kpi,.kpi-grid>div,.kpi-card{min-height:86px!important;padding:10px!important}
  .mobile-nav{grid-template-columns:repeat(5,minmax(54px,1fr))!important}
}

@media(hover:none) and (pointer:coarse){
  .portal-card:hover,.btn:hover,.icon-btn:hover{transform:none!important}
  .portal-card:active,.btn:active,.icon-btn:active{transform:scale(.985)!important}
}


/* =========================================================
   R3 TYPOGRAPHY + RTL + DASHBOARD LEGIBILITY FIX — 2026-09-23
   Fixes Persian joining, access matrix layout, leader cards and desktop/mobile readability.
   ========================================================= */
html,body{direction:rtl}
body,.app-shell,.main-area,.panel,.page,.topbar,.sidebar,button,input,select,textarea{font-family:Tahoma,"Segoe UI",Arial,sans-serif!important}
body{font-kerning:normal;text-rendering:optimizeLegibility}
.main-area *:not(.eyebrow){letter-spacing:0!important}
.main-area b,.main-area strong,.main-area h1,.main-area h2,.main-area h3,.main-area h4,.side-nav b{word-spacing:normal;white-space:normal}

/* Access matrix must behave like a real table, not a string of adjacent spans */
.access-matrix{display:grid!important;gap:8px!important;min-width:0;overflow:hidden}
.access-matrix .access-row{display:grid!important;grid-template-columns:minmax(150px,1.7fr) repeat(3,minmax(58px,.65fr));gap:8px!important;align-items:center!important;min-width:0;padding:11px 12px!important;border:1px solid #e1eaf0!important;border-radius:14px!important;background:#f9fbfd!important;color:#17344c!important}
.access-matrix .access-row:first-child{background:#eef5f9!important;border-color:#d5e4ec!important;font-weight:800}
.access-matrix .access-row>b{display:block;min-width:0;text-align:right!important;line-height:1.75!important;font-size:12px!important;color:#213d52!important}
.access-matrix .access-row>span{display:grid!important;place-items:center!important;min-width:0;min-height:32px;padding:5px 4px!important;border-radius:9px!important;font-size:10px!important;font-weight:800!important;text-align:center!important;line-height:1.35!important;white-space:nowrap!important}
.access-matrix .access-row:first-child>span{background:transparent!important;color:#5d7182!important}
.access-matrix .access-row .yes{background:#eaf8f3!important;color:#16745d!important;border:1px solid #c9eadf!important}
.access-matrix .access-row .no{background:#f3f5f7!important;color:#7b8994!important;border:1px solid #e2e7eb!important}

/* Top students cards */
.leader-list{display:grid!important;gap:9px!important}
.leader-list .leader-row{display:grid!important;grid-template-columns:36px minmax(0,1fr) 58px;align-items:center!important;gap:10px!important;padding:12px 13px!important;border:1px solid #e1eaf0!important;border-radius:15px!important;background:#f9fbfd!important;color:#17344c!important}
.leader-list .leader-rank{display:grid!important;place-items:center!important;width:34px!important;height:34px!important;border-radius:11px!important;background:#eaf4fb!important;color:#2e658c!important;font-weight:900!important}
.leader-list .leader-row>div{min-width:0}
.leader-list .leader-row b{display:block!important;font-size:12px!important;line-height:1.7!important;color:#17344c!important}
.leader-list .leader-row small{display:block!important;margin-top:2px;font-size:9px!important;line-height:1.6!important;color:#7b8d9c!important;white-space:normal!important}
.leader-list .score-chip{display:grid!important;place-items:center!important;min-width:54px!important;min-height:34px!important;padding:5px 7px!important;border-radius:10px!important;background:#eef1ff!important;color:#6553b7!important;font-weight:900!important;font-size:11px!important}

/* Persian headings and side navigation */
.side-nav button b{line-height:1.65!important;font-size:12px!important}
.side-nav .nav-section-label{line-height:1.7!important;letter-spacing:0!important}
.panel-head h3,.quick-access-head h3,.page-toolbar h3{line-height:1.65!important}

@media(max-width:760px){
  .access-matrix .access-row{grid-template-columns:minmax(105px,1.55fr) repeat(3,minmax(42px,.62fr));gap:5px!important;padding:9px 8px!important}
  .access-matrix .access-row>b{font-size:10px!important;line-height:1.65!important}
  .access-matrix .access-row>span{font-size:9px!important;min-height:29px;padding:4px 2px!important}
  .leader-list .leader-row{grid-template-columns:32px minmax(0,1fr) 50px;gap:8px!important;padding:10px!important}
  .leader-list .leader-rank{width:30px!important;height:30px!important}
  .leader-list .score-chip{min-width:46px!important;min-height:30px!important;font-size:10px!important}
  .leader-list .leader-row b{font-size:11px!important}
  .leader-list .leader-row small{font-size:9px!important}
}

@media(max-width:390px){
  .access-matrix .access-row{grid-template-columns:minmax(92px,1.45fr) repeat(3,minmax(38px,.6fr));gap:4px!important;padding:8px 6px!important}
  .access-matrix .access-row>b{font-size:9.5px!important}
  .access-matrix .access-row>span{font-size:8.5px!important}
}

/* ===== R4 Professional Data UI / 2026-09-23 ===== */
:root{--r4-ink:#102c43;--r4-muted:#718395;--r4-line:#dbe7ef;--r4-soft:#f7fafc;--r4-cyan:#12bfc7;--r4-blue:#477dff;--r4-green:#17a97f;--r4-amber:#d88a16;--r4-red:#cf5268}
.student-grid{display:block!important}.student-table-shell,.exam-table-shell{overflow:auto;border:1px solid var(--r4-line);border-radius:22px;background:#fff;box-shadow:0 10px 35px rgba(20,48,74,.06)}
.student-prof-table,.exam-status-table{width:100%;border-collapse:separate;border-spacing:0;min-width:880px;color:var(--r4-ink)}
.student-prof-table thead th,.exam-status-table thead th{position:sticky;top:0;z-index:1;padding:13px 14px;background:#eef5fa;color:#526b7f;font-size:11px;font-weight:900;text-align:right;border-bottom:1px solid var(--r4-line);white-space:nowrap}
.student-prof-table tbody td,.exam-status-table tbody td{padding:13px 14px;border-bottom:1px solid #e9f0f5;vertical-align:middle;background:#fff;font-size:12px}.student-prof-table tbody tr:last-child td,.exam-status-table tbody tr:last-child td{border-bottom:0}.student-prof-table tbody tr:hover td,.exam-status-table tbody tr:hover td{background:#f8fcff}
.student-name-cell{display:flex;align-items:center;gap:10px}.student-name-cell>div:last-child,.exam-status-table td:first-child{display:grid;gap:2px}.student-name-cell small,.exam-status-table td small{color:#8aa0b1;font-size:10px}.avatar.compact{width:38px!important;height:38px!important;border-radius:12px!important;font-size:15px!important;flex:none}.metric-number{display:block;font-size:15px;color:#173d5a}.score-soft{display:inline-flex;min-width:38px;justify-content:center;border-radius:10px;padding:5px 8px;background:#edf1ff;color:#5f62c8;font-weight:900}.row-action{border:1px solid #cfdee8!important;background:#f7fbfe!important;color:#1f597a!important;border-radius:11px!important;padding:8px 11px!important;font-size:11px!important;font-weight:900!important;white-space:nowrap}.row-action:hover{background:#eaf7fb!important;border-color:#7bcfd6!important}.row-action.exam-finance-toggle{background:#eaf9f5!important;border-color:#a7e3d2!important;color:#14765e!important}.row-action.exam-finance-toggle.approved{background:#fff8ed!important;border-color:#f2d5a7!important;color:#a36b14!important}
/* Attendance becomes a clean operational table on desktop without losing mobile touch controls */
.attendance-cards{gap:0!important;border:1px solid var(--r4-line);border-radius:22px;overflow:hidden;background:#fff;box-shadow:0 10px 35px rgba(20,48,74,.06)}.attendance-card{grid-template-columns:minmax(190px,1fr) minmax(390px,2fr) minmax(170px,.9fr)!important;border:0!important;border-bottom:1px solid #e8eff4!important;border-radius:0!important;box-shadow:none!important;padding:11px 14px!important}.attendance-card:last-child{border-bottom:0!important}.attendance-card:nth-child(even){background:#fbfdff!important}.attendance-card>div:first-child b{color:#17344c}.attendance-options button{background:#fff!important;border-color:#d7e3eb!important;min-height:40px}.attendance-options button.active{background:#e9f8f3!important;border-color:#65c8ad!important;color:#12634f!important}.attendance-options button.active.danger{background:#fff0f2!important;border-color:#ef9aa8!important;color:#a52d42!important}.attendance-note{background:#f8fbfd!important;border-color:#dce7ee!important;color:#17344c!important}
/* Existing finance tables: lighter, calmer and more legible */
.table-panel{padding:0!important;overflow:hidden!important}.table-scroll{border-radius:20px!important}.table-scroll table{width:100%;border-collapse:separate;border-spacing:0;background:#fff;color:var(--r4-ink)}.table-scroll thead th{background:#eef5fa!important;color:#526b7f!important;font-size:11px!important;padding:13px 14px!important;border-bottom:1px solid var(--r4-line)!important}.table-scroll tbody td{background:#fff!important;color:#17344c!important;padding:13px 14px!important;border-bottom:1px solid #e8eff4!important}.table-scroll tbody tr:nth-child(even) td{background:#fbfdff!important}.table-scroll tbody tr:hover td{background:#f4fbff!important}.table-scroll .money{font-variant-numeric:tabular-nums;font-weight:800;color:#315a76!important}
/* Exam access-card control center */
#page-exams .layout-2{grid-template-columns:minmax(300px,.72fr) minmax(0,1.65fr)!important}#page-exams .panel{align-self:start}.exam-status-summary{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin:12px 0}.exam-status-summary span{display:grid;gap:1px;padding:10px 12px;border:1px solid #dfe9ef;border-radius:14px;background:#f7fafc;color:#718395;font-size:10px}.exam-status-summary b{font-size:18px;color:#17344c}.exam-status-summary .ok{background:#effaf6;border-color:#c8ebdf}.card-state{display:inline-flex;align-items:center;justify-content:center;padding:6px 9px;border-radius:999px;font-size:10px;font-weight:900;white-space:nowrap}.card-state.ready{background:#e8f8f2;color:#14765e}.card-state.photo{background:#fff5e7;color:#a66a11}.card-state.waiting{background:#f4f6f8;color:#718395}.exam-empty{padding:24px;border:1px dashed #cedce6;border-radius:18px;background:#f8fbfd;color:#6d8192;display:grid;gap:4px;text-align:center}.exam-empty b{color:#17344c}
/* Make headings and toolbar copy fully Persian and less template-like visually */
.page-toolbar .eyebrow,.panel-head .eyebrow{letter-spacing:0!important;font-size:10px!important}.page-toolbar{margin-bottom:14px!important}.grade-cards{margin-bottom:14px!important}.grade-card{box-shadow:none!important;border-color:#dce7ef!important;background:#fff!important}.grade-card:hover,.grade-card.active{border-color:#7bcfd6!important;background:#f1fbfc!important}
@media(max-width:760px){
 .student-table-shell,.exam-table-shell{overflow:visible;border:0;box-shadow:none;background:transparent}.student-prof-table,.exam-status-table{min-width:0;border-collapse:separate;border-spacing:0 10px}.student-prof-table thead,.exam-status-table thead{display:none}.student-prof-table tbody,.student-prof-table tr,.student-prof-table td,.exam-status-table tbody,.exam-status-table tr,.exam-status-table td{display:block;width:100%}.student-prof-table tr,.exam-status-table tr{border:1px solid #dfe9ef;border-radius:18px;background:#fff;overflow:hidden;box-shadow:0 8px 24px rgba(20,48,74,.05)}.student-prof-table tbody td,.exam-status-table tbody td{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px!important;border-bottom:1px solid #edf2f5!important;background:#fff!important;text-align:left}.student-prof-table td:before,.exam-status-table td:before{content:attr(data-label);color:#8294a3;font-size:10px;font-weight:800;text-align:right}.student-prof-table td:first-child,.exam-status-table td:first-child{display:flex}.student-prof-table td:first-child:before,.exam-status-table td:first-child:before{display:none}.student-prof-table td:last-child,.exam-status-table td:last-child{border-bottom:0!important}.student-name-cell{width:100%;justify-content:flex-start}.student-prof-table .row-action,.exam-status-table .row-action{width:auto;min-height:40px}.attendance-cards{border:0;box-shadow:none;overflow:visible;background:transparent;gap:10px!important}.attendance-card{grid-template-columns:1fr!important;border:1px solid #dfe8ef!important;border-radius:18px!important;padding:12px!important;background:#fff!important}.attendance-options{grid-template-columns:repeat(4,1fr)!important}.attendance-options button{min-height:44px}.exam-status-summary{grid-template-columns:1fr 1fr}.exam-status-summary span{padding:9px}.exam-status-summary b{font-size:16px}#page-exams .layout-2{grid-template-columns:1fr!important}.table-scroll table{min-width:720px}}

/* ==================== R5 public site + self-service UX ==================== */
.public-school-home{background:#f3f7fb;color:#10243b}.school-site{min-height:100vh}.public-header{position:sticky;top:0;z-index:20;display:flex;align-items:center;justify-content:space-between;gap:24px;padding:14px clamp(18px,5vw,70px);background:rgba(5,22,39,.94);backdrop-filter:blur(16px);color:#fff;border-bottom:1px solid rgba(255,255,255,.08)}.public-brand{display:flex;align-items:center;gap:12px}.public-brand>div:last-child{display:grid}.public-brand span{opacity:.65;font-size:.78rem}.public-header nav{display:flex;gap:20px}.public-header nav a{color:#dce9f6;text-decoration:none;font-weight:700}.public-hero{min-height:560px;display:grid;grid-template-columns:minmax(0,.85fr) minmax(420px,1.15fr);gap:42px;align-items:center;padding:58px clamp(18px,6vw,90px);background:radial-gradient(circle at 10% 20%,rgba(22,202,180,.17),transparent 32%),linear-gradient(135deg,#07182b,#103b55);color:#fff}.hero-copy h1{font-size:clamp(2.2rem,5vw,4.8rem);margin:10px 0}.hero-copy>p{font-size:clamp(1rem,2vw,1.35rem);color:#d2e3ef;max-width:680px;line-height:2}.countdown-card{display:inline-grid;grid-template-columns:auto auto;align-items:center;gap:4px 16px;padding:14px 18px;border:1px solid rgba(255,255,255,.16);background:rgba(255,255,255,.08);border-radius:18px;margin:10px 0 22px}.countdown-card b{font-size:1.55rem;color:#64e7cf}.countdown-card small{grid-column:1/-1;color:#c9dce9}.hero-gallery{height:430px;position:relative;border-radius:30px;overflow:hidden;border:1px solid rgba(255,255,255,.14);box-shadow:0 30px 70px rgba(0,0,0,.28);background:#10283a}.home-slide{position:absolute;inset:0;opacity:0;transition:opacity .8s}.home-slide.active{opacity:1}.home-slide img{width:100%;height:100%;object-fit:cover}.home-slide figcaption{position:absolute;inset:auto 0 0;padding:26px;background:linear-gradient(transparent,rgba(0,0,0,.82));display:grid}.home-slide figcaption b{font-size:1.25rem}.home-slide figcaption span{color:#dbe7ee}.gallery-placeholder{height:100%;display:grid;place-items:center;align-content:center;text-align:center;gap:8px;color:#cfe0ea}.gallery-placeholder span{font-size:3rem;color:#64e7cf}.about-school,.public-events,.access-section{padding:58px clamp(18px,6vw,90px)}.about-school{display:grid;grid-template-columns:1.3fr .7fr;gap:38px;background:#fff}.about-school h2,.section-title h2{font-size:2rem;margin:8px 0}.about-school p{line-height:2.1;color:#4b5e70}.school-contact{display:grid;gap:12px}.school-contact>div{padding:18px;border-radius:18px;background:#f4f8fb;display:grid;grid-template-columns:auto 1fr;gap:3px 12px}.school-contact span{grid-row:1/3;font-size:1.5rem}.school-contact small{color:#617488}.public-events{background:#eef5f9}.public-event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.public-event-grid article{padding:20px;border-radius:20px;background:#fff;border:1px solid #dce7ee}.public-event-grid time{display:block;color:#087b76;font-weight:800;margin-bottom:8px}.public-event-grid p{color:#627587}.access-section{background:#fff}.public-footer{text-align:center;padding:26px;background:#07182b;color:#a9bdca}.remember-row{display:flex!important;flex-direction:row!important;align-items:center;gap:9px;font-weight:700!important;font-size:.9rem}.remember-row input{width:18px!important;height:18px!important;margin:0!important}.account-tabs{display:flex;gap:8px;margin-bottom:16px;overflow:auto}.account-tabs button{border:1px solid #d7e3eb;background:#fff;padding:11px 17px;border-radius:12px;font-weight:800;white-space:nowrap}.account-tabs button.active{background:#102f49;color:#fff;border-color:#102f49}.account-pane{display:none}.account-pane.active{display:block}.account-table{display:grid;gap:10px}.account-row{display:grid;grid-template-columns:1fr .65fr auto;gap:14px;align-items:center;padding:14px;border:1px solid #e0e8ed;border-radius:14px;background:#fbfdfe}.account-row>div{display:grid;gap:3px}.account-row small{color:#6b7b88}.row-actions{display:flex!important;flex-direction:row!important;gap:6px}.credential-result{padding:14px;border-radius:14px;background:#e9fbf5;border:1px solid #b5eadb}.credential-grid{display:grid;grid-template-columns:auto 1fr;gap:8px;margin:10px 0}.credential-grid code,.credential-line code,.bank-info code{font-family:ui-monospace,Consolas,monospace;direction:ltr;display:inline-block;background:#eef3f6;padding:4px 7px;border-radius:7px}.credential-line{padding:8px;border-bottom:1px solid #e6ecef}.homework-list{display:grid;gap:10px}.homework-card{display:flex;justify-content:space-between;gap:16px;padding:15px;border:1px solid #dce7ed;border-radius:15px;background:#fbfdff}.homework-card>div{display:grid;gap:5px}.homework-card span{font-size:.78rem;color:#077d76;font-weight:800}.homework-card p{margin:2px 0;color:#455b6d;line-height:1.8}.homework-card small{color:#7a8a96}.homework-card.family{background:linear-gradient(135deg,#f8fffd,#f0f8ff)}.homework-empty{padding:22px;border-radius:15px;background:#f5f8fa;display:grid;gap:6px;color:#667986}.bank-info{display:grid;gap:10px}.bank-info>div{display:grid;grid-template-columns:110px 1fr auto;gap:10px;align-items:center;padding:12px;border-bottom:1px solid #edf1f4}.copy-bank{border:0;background:#e9f4f6;color:#0b6c69;border-radius:9px;padding:7px 10px;font-weight:800}.payment-info-panel{background:linear-gradient(145deg,#fff,#f6fbff)}
@media(max-width:900px){.public-header nav{display:none}.public-hero{grid-template-columns:1fr;padding-top:38px}.hero-gallery{height:300px}.about-school{grid-template-columns:1fr}.public-event-grid{grid-template-columns:1fr 1fr}.account-row{grid-template-columns:1fr}.row-actions{flex-wrap:wrap}.bank-info>div{grid-template-columns:1fr auto}.bank-info>div span{grid-column:1/-1}.public-school-home .persian-calendar-widget{display:none}}
@media(max-width:620px){.public-hero{padding:30px 16px 38px;gap:24px;min-height:auto}.hero-copy h1{font-size:2.35rem}.hero-gallery{height:245px;border-radius:22px}.about-school,.public-events,.access-section{padding:38px 16px}.public-event-grid{grid-template-columns:1fr}.portal-grid{grid-template-columns:1fr!important}.parent-homework-panel{order:-1}.homework-card{align-items:flex-start}.homework-card .btn{padding:8px 10px}.account-tabs{margin-inline:-4px}.public-header{padding:11px 16px}}


/* R6 — public page order, high contrast and 3D plan cards */
.public-school-home .access-section{background:linear-gradient(180deg,#f8fbfe,#eef5fa);}
.public-school-home .access-section .section-title{text-align:center;margin-bottom:28px}
.public-school-home .access-section .portal-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:26px;max-width:1060px;margin:0 auto;perspective:1200px}
.public-school-home .portal-card{min-height:245px;color:#112b43;background:linear-gradient(145deg,#ffffff 0%,#f4f9fd 56%,#e6f1f8 100%);border:1px solid rgba(30,83,116,.16);box-shadow:0 18px 0 #d6e4ed,0 28px 46px rgba(19,54,78,.18);transform:translateY(0) rotateX(0);transition:transform .25s ease,box-shadow .25s ease,border-color .25s ease}
.public-school-home .portal-card:hover{transform:translateY(-8px) rotateX(1.5deg);box-shadow:0 24px 0 #cfdee8,0 38px 58px rgba(19,54,78,.24);border-color:#4bc9cf}
.public-school-home .portal-card h2,.public-school-home .portal-card p,.public-school-home .portal-card small{color:#17334c!important;text-shadow:none!important;opacity:1!important}
.public-school-home .portal-card h2{font-size:1.75rem}.public-school-home .portal-card p{color:#526a7d!important}.public-school-home .portal-card b{color:#087d82!important}
.public-school-home .portal-card.manager{background:linear-gradient(145deg,#fff,#edf7ff)}
.public-school-home .portal-card.finance{background:linear-gradient(145deg,#fff,#f1f5ff)}
.public-school-home .portal-card.teacher{background:linear-gradient(145deg,#fff,#eefbf6)}
.public-school-home .portal-card.parent{background:linear-gradient(145deg,#fff,#fff7ea)}
.single-session-note{max-width:900px;margin:28px auto 0;text-align:center;color:#607487;background:#fff;border:1px solid #dce7ee;border-radius:16px;padding:12px 16px}
.public-hero{grid-template-columns:minmax(420px,1.05fr) minmax(0,.95fr);align-items:center}
.public-hero .hero-copy{max-width:650px}.public-hero .btn.primary{display:inline-flex;margin-top:5px}
.role-login .login-story,.role-login .auth-card{color:#edf8ff}.role-login .login-story p,.role-login .auth-card .hint{color:#bdd0e2!important}.role-login .auth-card label{color:#dcecff!important}
.extra-class-list{display:grid;gap:12px}.extra-class-card{display:grid;grid-template-columns:120px 1fr;gap:16px;align-items:center;padding:16px;border-radius:18px;border:1px solid #d7e5ed;background:linear-gradient(145deg,#fff,#f5fbff);box-shadow:0 10px 25px rgba(20,54,78,.07);color:#17334c}.extra-class-card.manager{grid-template-columns:120px 1fr auto}.extra-date{display:grid;gap:3px;text-align:center;padding:12px;border-radius:14px;background:#0d7780;color:#fff}.extra-date small{color:#d9ffff}.extra-class-card span{font-size:.75rem;color:#087d76;font-weight:800}.extra-class-card h4{margin:2px 0;font-size:1.05rem}.extra-class-card p{margin:2px 0;color:#5b7183}.extracurricular-panel{border:1px solid #d3e7de;background:linear-gradient(145deg,#fbfffd,#f4fbff)}
@media(max-width:900px){.public-school-home .access-section .portal-grid{grid-template-columns:1fr 1fr;gap:18px}.public-hero{grid-template-columns:1fr}.extra-class-card,.extra-class-card.manager{grid-template-columns:1fr}.extra-date{text-align:right}}
@media(max-width:620px){.public-school-home .access-section .portal-grid{grid-template-columns:1fr}.public-school-home .portal-card{min-height:180px;box-shadow:0 10px 0 #d8e5ed,0 18px 28px rgba(19,54,78,.15)}.single-session-note{font-size:.82rem}.extra-class-card{padding:13px}.extra-date{display:flex;justify-content:space-between;align-items:center}}
/* R7: weekly cultural / pastoral schedule */
.check-line{display:flex!important;align-items:flex-start;gap:10px;padding:12px 14px;border:1px solid #d7e4ef;border-radius:14px;background:#f8fbfd;line-height:1.8}.check-line input{width:18px!important;height:18px;margin-top:4px;flex:0 0 auto}
.pastoral-week-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.pastoral-day-card{border:1px solid #dce8f2;background:linear-gradient(145deg,#fff,#f6fbff);border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(25,61,91,.06)}.pastoral-day-card>header{display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid #e6eef5;padding-bottom:10px;margin-bottom:8px}.pastoral-day-card>header b{font-size:1rem}.pastoral-day-card>header span{font-size:.78rem;color:#6f8497}.pastoral-row{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:10px 0;border-bottom:1px dashed #e5edf3}.pastoral-row:last-child{border-bottom:0}.pastoral-row div{display:grid;gap:3px}.pastoral-row span{font-size:.78rem;color:#19a5b1}.pastoral-row b{color:#102f49}.pastoral-row small{color:#768b9c}
.pastoral-family-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.pastoral-family-day{border:1px solid #dce7f0;border-radius:18px;background:linear-gradient(145deg,#fff,#f4faff);overflow:hidden}.pastoral-family-day header{padding:12px 14px;background:#eaf7fb;color:#123651}.pastoral-family-item{position:relative;display:grid;gap:3px;padding:12px 14px;border-top:1px solid #edf2f5}.pastoral-family-item span{font-size:.78rem;color:#168f9d}.pastoral-family-item b{font-size:.95rem}.pastoral-family-item small{color:#788c9b}.pastoral-family-item.mine{background:linear-gradient(135deg,#fff8df,#f0fff8);border-inline-start:4px solid #28b98b}.pastoral-family-item em{font-style:normal;font-size:.72rem;color:#137759;font-weight:800}
@media(max-width:900px){.pastoral-week-grid,.pastoral-family-grid{grid-template-columns:1fr}.pastoral-row{align-items:flex-start}.pastoral-family-panel{padding:14px}}


/* R10 — unified dark login cards + readable iconography */
.role-login,.auth-shell{align-items:stretch!important}
.role-login>.login-story,.role-login>.auth-card,.auth-shell>.auth-brand,.auth-shell>.auth-card{
  min-height:640px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:center!important;
  border:1px solid rgba(159,218,255,.20)!important;
  border-radius:34px!important;
  background:
    radial-gradient(circle at 14% 5%,rgba(41,215,211,.16),transparent 34%),
    linear-gradient(145deg,#10273d 0%,#0b2034 58%,#0a1a2c 100%)!important;
  box-shadow:0 26px 70px rgba(0,0,0,.34)!important;
  color:#f2f8ff!important;
}
.role-login>.auth-card,.auth-shell>.auth-card{padding:34px!important}
.role-login>.auth-card h2,.auth-shell>.auth-card h2{color:#fff!important;font-size:29px!important}
.role-login>.auth-card .hint,.auth-shell>.auth-card p{color:#bcd1e3!important}
.role-login>.auth-card label,.auth-shell>.auth-card label{color:#e7f3ff!important;font-size:13px!important}
.role-login>.auth-card input,.auth-shell>.auth-card input{
  min-height:50px!important;background:rgba(2,16,29,.70)!important;color:#fff!important;
  border:1px solid rgba(168,218,255,.23)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.04)!important
}
.role-login>.auth-card input:focus,.auth-shell>.auth-card input:focus{border-color:#39e7e4!important;box-shadow:0 0 0 4px rgba(57,231,228,.12)!important}
.role-login .security-note,.auth-shell .security-note{
  margin-top:18px!important;padding:12px 14px!important;border-radius:15px!important;
  background:rgba(57,231,228,.07)!important;border:1px solid rgba(57,231,228,.18)!important;
  color:#cbe3ef!important
}
.portal-icon,.shield-icon{
  width:56px!important;height:56px!important;border-radius:18px!important;
  display:grid!important;place-items:center!important;font-size:26px!important;
  background:linear-gradient(145deg,rgba(57,231,228,.22),rgba(70,184,255,.18))!important;
  border:1px solid rgba(123,222,255,.22)!important;color:#fff!important;
  box-shadow:0 12px 28px rgba(0,0,0,.22)!important
}
.role-login .eyebrow,.auth-shell .eyebrow{letter-spacing:0!important;text-transform:none!important;color:#64e7e0!important;font-size:13px!important}
.role-login .login-story li{position:relative;padding-right:45px!important}
.role-login .login-story li:before{content:'✓';position:absolute;right:14px;top:50%;transform:translateY(-50%);width:22px;height:22px;display:grid;place-items:center;border-radius:8px;background:rgba(57,231,228,.13);color:#69f0e5;font-weight:900}
@media(max-width:760px){
  .role-login>.login-story,.role-login>.auth-card,.auth-shell>.auth-brand,.auth-shell>.auth-card{min-height:0!important}
}


/* =========================================================
   R11 FINAL — Premium visual system, contrast and zero-overlap hardening
   ========================================================= */
:root{--premium-navy:#071b2f;--premium-navy-2:#0b2a47;--premium-cyan:#20c7d6;--premium-blue:#4a7cff;--paper:#f5f8fb;--ink:#10283e}
body{font-feature-settings:"kern" 1;background:linear-gradient(180deg,#071728,#0a2035 55%,#06131f)}
.app-shell{background:#eef4f8!important}
.main-area{background:radial-gradient(circle at 9% 5%,rgba(32,199,214,.08),transparent 24%),#eef4f8!important}
.topbar{backdrop-filter:blur(15px);box-shadow:0 9px 30px rgba(13,45,70,.08)!important}
.sidebar{background:linear-gradient(180deg,#06192b,#08243b 65%,#061724)!important;box-shadow:-16px 0 44px rgba(4,20,35,.18)!important}
.nav-cluster{box-shadow:0 12px 24px rgba(0,0,0,.13)!important}.nav-section-label{font-size:18px!important;padding:13px 14px!important}.nav-cluster-items button{border-radius:14px!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.025)}
.hero-panel.manager-hero{background:linear-gradient(135deg,#0a2c49,#0d4762)!important;color:#fff!important;border:1px solid rgba(62,218,224,.26)!important;box-shadow:0 22px 46px rgba(12,52,80,.16)!important}.manager-hero h1,.manager-hero p,.manager-hero b{color:#fff!important}.hero-mini-status span{background:rgba(255,255,255,.09)!important;color:#eafcff!important;border-color:rgba(255,255,255,.15)!important}
.account-launcher,.panel,.page-toolbar{border:1px solid #d6e3ec!important;box-shadow:0 16px 40px rgba(18,57,83,.075)!important}.account-quick-grid button{border-radius:24px!important}.account-quick-grid button span{display:grid;place-items:center;width:46px;height:46px;border-radius:15px;background:#0c3453;color:#fff;font-size:22px;box-shadow:0 10px 22px rgba(10,47,76,.16)}
.absence-today-panel{margin:14px 0 20px;padding:18px;border:1px solid #f0d0d4;background:linear-gradient(145deg,#fff,#fff7f8);border-radius:24px;box-shadow:0 14px 34px rgba(95,30,40,.06)}.absence-panel-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.absence-panel-head h3{margin:0;color:#213d53}.absence-count{padding:7px 12px;border-radius:999px;background:#ffe8eb;color:#9b3140;font-weight:900}.absence-today-list{display:grid;gap:8px}.absence-alert{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:12px 14px;border-radius:15px;background:#fff;border:1px solid #e5eaf0}.absence-alert b{color:#122f49}.absence-alert small{display:block;color:#6c7f90}.absence-alert.absent{border-right:4px solid #e7596b}.absence-alert.late{border-right:4px solid #e4ae42}.absence-actions{display:flex;align-items:center;gap:8px}.absence-empty{padding:13px 15px;background:#eefaf4;border:1px solid #cceadb;border-radius:14px;color:#18704f;font-weight:800}
.backup-verify-status{margin:12px 0 0;padding:10px 12px;border-radius:12px;font-size:13px}.backup-verify-status.ok{background:#eaf8f2;color:#17694e;border:1px solid #bee5d4}.backup-verify-status.bad{background:#fff0f1;color:#9a3040;border:1px solid #efc9cf}
.table-scroll{border:1px solid #dfe8ee!important;border-radius:18px!important;background:#fff!important}.student-prof-table thead th,table thead th{position:sticky;top:0;z-index:1;background:#e8f1f6!important;color:#0c2c47!important}.student-prof-table tbody tr:hover,table tbody tr:hover{background:#eef8fb!important}.student-prof-table td,.student-prof-table th{vertical-align:middle!important}
.role-login,.auth-shell{gap:22px!important}.role-login>.login-story,.role-login>.auth-card,.auth-shell>.auth-brand,.auth-shell>.auth-card{background:radial-gradient(circle at 12% 7%,rgba(32,199,214,.18),transparent 30%),linear-gradient(145deg,#102a43,#071c30)!important;box-shadow:0 25px 70px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.05)!important}.role-login>.auth-card,.auth-shell>.auth-card{border-color:rgba(83,209,222,.24)!important}.role-login>.auth-card h2,.auth-shell>.auth-card h2,.role-login>.login-story h1,.auth-shell>.auth-brand h1{color:#fff!important;text-shadow:0 6px 22px rgba(0,0,0,.16)}
.remember-row{grid-template-columns:auto 1fr!important;align-items:center!important}.remember-row input{width:20px!important;min-height:20px!important}
@media(max-width:760px){.absence-alert{align-items:flex-start;flex-direction:column}.absence-actions{width:100%;justify-content:space-between}.absence-panel-head{align-items:flex-start}.role-login,.auth-shell{padding:10px!important}.role-login>.login-story,.auth-shell>.auth-brand{padding:18px!important}.role-login>.auth-card,.auth-shell>.auth-card{padding:18px!important}}

/* R12 stability + final visual polish */
#appView.app-shell{display:grid}
.top-actions{min-width:0;flex-wrap:wrap}
.role-chip{min-width:0}.role-chip b,.role-chip small{max-width:180px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.manager-hero h1{font-size:clamp(30px,3.7vw,54px)!important;line-height:1.35!important;max-width:850px}
.manager-hero p{max-width:900px;font-size:15px;line-height:2}
.kpi-grid>.kpi{min-height:122px;display:flex;flex-direction:column;justify-content:center}
.nav-section-label{line-height:1.5!important;white-space:normal}
.nav-cluster-items button{min-height:48px;align-items:center}
.student-prof-table td,.student-prof-table th,.student-card,.student-card *{color:#15324a}
.student-prof-table td small,.student-card small{color:#5f7385!important}
.sidebar{overflow:hidden}.side-nav{overflow-y:auto;overscroll-behavior:contain;padding-bottom:18px}.sidebar-foot{flex:0 0 auto}
@media(max-width:900px){.manager-hero{grid-template-columns:1fr!important}.hero-lock{max-width:none!important}.top-actions{gap:6px}.quick-open b{display:none}}
@media(max-width:640px){.manager-hero h1{font-size:30px!important}.kpi-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.kpi-grid>.kpi{min-height:108px}.role-chip b,.role-chip small{max-width:110px}.page{padding-inline:10px!important}}


/* =========================================================
   R13 DELIVERY POLISH — contrast, hierarchy, home hero and account UX
   ========================================================= */
:root{
  --r13-navy:#08233c;--r13-navy-2:#0d3657;--r13-cyan:#20c8d7;--r13-blue:#3978f4;
  --r13-ink:#102a43;--r13-text:#1d3a52;--r13-muted:#60778a;--r13-line:#d6e3ec;
  --r13-paper:#ffffff;--r13-soft:#f4f8fb;--r13-success:#18865f;--r13-danger:#b33d4c;
}
html{scroll-behavior:smooth}
body{color:var(--r13-ink)}
/* Global Persian readability */
.page,.panel,.page-toolbar,.quick-access-panel,.student-card,.account-row,.table-scroll{font-family:Tahoma,"Segoe UI",Arial,sans-serif}
.page h1,.page h2,.page h3,.panel h3,.page-toolbar h3{color:#0b2944!important;letter-spacing:0!important}
.page p,.panel p,.hint,.panel small,.page small{color:var(--r13-muted)!important}
label{color:#17364f!important;font-weight:800!important}
input,select,textarea{
  background:#fff!important;color:#102a43!important;border:1px solid #bfd0dc!important;
  box-shadow:inset 0 1px 2px rgba(8,35,60,.035)!important
}
input::placeholder,textarea::placeholder{color:#8093a3!important;opacity:1!important}
input:focus,select:focus,textarea:focus{border-color:#21aaba!important;box-shadow:0 0 0 4px rgba(32,200,215,.12)!important;outline:0!important}
.stack-form{gap:14px!important}.stack-form label{gap:7px!important}
.btn{font-weight:900!important}.btn.ghost{background:#edf4f8!important;color:#123a58!important;border:1px solid #cbdbe6!important}
.btn.ghost:hover{background:#dcecf3!important;color:#082a44!important}
.btn.primary{background:linear-gradient(135deg,var(--r13-cyan),var(--r13-blue))!important;color:#fff!important;border:0!important;box-shadow:0 10px 22px rgba(43,124,221,.18)!important}
.badge.ok{background:#e5f8f0!important;color:#127052!important;border-color:#b8e6d5!important}.badge.warn{background:#fff3dc!important;color:#8c6418!important;border-color:#eed49e!important}.badge.locked{background:#eef2f5!important;color:#5f6f7d!important}

/* Cards and tables */
.panel,.quick-access-panel,.page-toolbar{background:#fff!important;border-color:var(--r13-line)!important}
.table-scroll{overflow:auto!important}.table-scroll table{min-width:760px;width:100%;border-collapse:separate;border-spacing:0}
table thead th{background:#0d3657!important;color:#fff!important;font-size:13px!important;padding:13px 12px!important;white-space:nowrap}
table tbody td{color:#1b3a53!important;background:#fff!important;border-bottom:1px solid #e6edf2!important;padding:13px 12px!important}
table tbody tr:nth-child(even) td{background:#f8fbfd!important}table tbody tr:hover td{background:#eef8fb!important}
.student-prof-table td,.student-prof-table th,.student-prof-table b,.student-prof-table span{color:#17364f!important}.student-prof-table small{color:#647b8d!important}

/* Manager accounts: no ghost/empty looking mini cards */
.account-table{gap:12px!important}.account-row{grid-template-columns:minmax(220px,1.2fr) minmax(170px,.65fr) minmax(280px,auto)!important;padding:16px 18px!important;border:1px solid #d5e1e9!important;border-radius:18px!important;background:#fff!important;box-shadow:0 8px 22px rgba(12,52,80,.05)!important}
.account-row>div:first-child b{font-size:17px!important;color:#0c2b46!important}.account-row>div:first-child small{color:#5e7486!important;line-height:1.7!important}.account-row>div:nth-child(2){align-content:center!important}
.row-actions{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-start!important}
.row-actions .btn{min-height:38px!important;padding:8px 12px!important;border-radius:11px!important;font-size:12px!important;white-space:nowrap!important;background:#0d3657!important;color:#fff!important;border:1px solid #0d3657!important;box-shadow:none!important}
.row-actions .btn:hover{background:#164d73!important;border-color:#164d73!important}.row-actions .btn:last-child{background:#f2f6f8!important;color:#29495f!important;border-color:#d4e0e7!important}
.account-tabs{padding:5px;background:#eef4f7;border:1px solid #d6e3eb;border-radius:16px;gap:5px!important}.account-tabs button{border:0!important;background:transparent!important;color:#466176!important}.account-tabs button.active{background:#0d3657!important;color:#fff!important;box-shadow:0 6px 15px rgba(9,53,86,.15)}
.credential-result{color:#184b3c!important}.credential-result *{color:inherit!important}

/* Sidebar hierarchy */
.nav-cluster{background:rgba(255,255,255,.035)!important;border:1px solid rgba(255,255,255,.075)!important;border-radius:20px!important;padding:8px!important;margin-bottom:12px!important}
.nav-section-label{font-size:17px!important;background:linear-gradient(135deg,#123a5c,#0c2a45)!important;border:1px solid rgba(79,190,207,.18)!important;color:#fff!important;padding:13px 15px!important;margin:0 0 7px!important;border-radius:14px!important}
.nav-cluster-items{display:grid!important;gap:6px!important}.nav-cluster-items button{background:rgba(255,255,255,.025)!important;border:1px solid rgba(255,255,255,.055)!important}.nav-cluster-items button b{color:#eaf4fb!important}.nav-cluster-items button span{color:#62dce3!important}
.nav-cluster-items button.active{background:linear-gradient(135deg,#0f5870,#10456d)!important;border-color:#24cad9!important;box-shadow:0 8px 18px rgba(0,0,0,.16)!important}

/* Home: show the school sign fully; all text/cards live below it */
.r8-public{background:#f5f8fb!important;color:var(--r13-ink)!important}
.r8-hero{display:grid!important;height:auto!important;min-height:0!important;aspect-ratio:auto!important;overflow:visible!important;background:#f5f8fb!important;padding-bottom:26px!important}
.r8-hero>img{display:block!important;width:100%!important;height:auto!important;aspect-ratio:2048/686!important;object-fit:cover!important;object-position:center!important;background:#071a2e!important}
.r8-hero-shade{display:none!important}
.r8-hero-copy{position:relative!important;inset:auto!important;right:auto!important;left:auto!important;bottom:auto!important;width:min(1080px,calc(100% - 40px))!important;max-width:none!important;margin:20px auto 0!important;padding:20px 24px!important;border:1px solid #d5e3eb!important;border-radius:22px!important;background:#fff!important;color:#0d2b45!important;box-shadow:0 15px 36px rgba(12,52,80,.10)!important;text-align:right!important;backdrop-filter:none!important}
.r8-hero-copy span{color:#168d9d!important}.r8-hero-copy h1{font-size:clamp(27px,3vw,43px)!important;color:#0b2944!important;margin:6px 0!important}.r8-hero-copy p{font-size:15px!important;color:#5b7285!important;line-height:1.9!important;margin:4px 0 13px!important}.r8-hero-copy>div{display:flex!important;gap:10px!important;flex-wrap:wrap!important}
.r8-btn.glass{background:#edf5f8!important;color:#0d3657!important;border:1px solid #ccdde6!important}
.r8-countdown{position:relative!important;inset:auto!important;right:auto!important;left:auto!important;bottom:auto!important;top:auto!important;width:max-content!important;min-width:0!important;margin:12px auto 0!important;padding:10px 16px!important;border-radius:16px!important;grid-template-columns:auto auto!important;gap:4px 10px!important;background:#0d3657!important;color:#fff!important;box-shadow:0 10px 24px rgba(12,52,80,.13)!important}.r8-countdown small,.r8-countdown span{color:#dceaf3!important}.r8-countdown b{font-size:24px!important;color:#66e2e1!important}
.r8-feature-grid article,.plan3d,.r8-event-row article,.r8-extra-grid article{box-shadow:0 12px 30px rgba(12,52,80,.07)!important}.plan3d{min-height:220px!important;border-radius:26px!important;box-shadow:0 10px 0 #dde7ed,0 24px 36px rgba(10,41,69,.12)!important}.plan3d:hover{transform:translateY(-6px) rotateX(1deg)!important}

/* Parent/student/teacher areas: consistent readable light cards */
.parent-plan .panel,.student-plan .panel,.parent-main .panel{background:#fff!important;color:#12324b!important;border-color:#d8e4ec!important}.parent-plan .panel h1,.parent-plan .panel h2,.parent-plan .panel h3,.student-plan h2,.student-plan h3{color:#0d2e49!important}.homework-card,.student-grid2>section{box-shadow:0 9px 24px rgba(12,52,80,.05)!important}

/* Financial workspace clarity */
#page-accounting .panel h3,#page-finance .panel h3,#page-payroll .panel h3{color:#0c2d49!important}.journal-line{align-items:center}.backup-list>div{background:#f8fbfd!important;color:#18384f!important}.backup-list small{color:#657b8b!important}

@media(max-width:1050px){
  .account-row{grid-template-columns:1fr!important}.row-actions{justify-content:flex-start!important}
  .r8-hero-copy{width:min(94%,900px)!important}
}
@media(max-width:700px){
  .r8-hero{padding-bottom:18px!important}.r8-hero>img{aspect-ratio:auto!important;min-height:190px!important;object-fit:cover!important}.r8-hero-copy{width:calc(100% - 24px)!important;margin:12px auto 0!important;padding:16px!important;border-radius:18px!important}.r8-hero-copy h1{font-size:27px!important}.r8-countdown{margin-top:9px!important}
  .account-row{padding:14px!important}.row-actions .btn{flex:1 1 calc(50% - 8px)!important;text-align:center!important}.account-tabs{overflow-x:auto!important}
  table thead th,table tbody td{font-size:12px!important;padding:11px 9px!important}
}

/* R15 final human polish */
:root{--text-strong:#102a43;--muted-strong:#52677d}
body{font-feature-settings:"ss01" 1;text-rendering:optimizeLegibility}
.panel h3,.page-toolbar h3{color:var(--text-strong);letter-spacing:-.02em}.hint,.panel-head p,.page-toolbar p{color:var(--muted-strong)!important}
.hero-operations h2,.hero-operations h1{color:#fff!important;text-shadow:0 2px 18px rgba(0,0,0,.18)}.hero-operations p{color:#dcecf5!important}
.trial-banner{display:flex;gap:14px;align-items:center;flex-wrap:wrap;padding:14px 18px;margin:0 0 16px;border:1px solid #e9b949;background:linear-gradient(135deg,#fff8df,#fffdf7);border-radius:16px;color:#5b4300;box-shadow:0 10px 24px rgba(120,86,0,.08)}.trial-banner b{font-size:1.05rem}.trial-banner span{font-weight:800}.trial-banner small{color:#745d1d}.trial-banner.hidden{display:none}
.child-switcher{margin:0 0 14px;padding:12px 16px;background:#fff;border:1px solid #d9e6ef;border-radius:14px}.child-switcher.hidden{display:none}.child-switcher label{display:flex;align-items:center;gap:10px;font-weight:800}.child-switcher select{min-width:220px;padding:9px 12px;border:1px solid #bfd2df;border-radius:10px;background:#fff}
.account-table:empty:before,.message-list:empty:before{content:'هنوز موردی ثبت نشده است.';display:block;padding:28px;color:#6b7f92;text-align:center}
.stack-form label{color:#17324b;font-weight:700}.stack-form input,.stack-form select,.stack-form textarea{color:#102a43;background:#fff;border-color:#b8cddd}.stack-form input::placeholder,.stack-form textarea::placeholder{color:#7a8fa3;opacity:1}
@media(max-width:760px){.trial-banner{align-items:flex-start;flex-direction:column}.child-switcher label{align-items:stretch;flex-direction:column}.child-switcher select{width:100%;min-width:0}.sidebar-group-title{font-size:1rem}.panel,.page-toolbar{border-radius:14px}}

/* R17 PREMIUM TYPE SYSTEM */
@font-face{font-family:"Noto Persian";src:url("/static/fonts/NotoSansArabic-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Noto Persian";src:url("/static/fonts/NotoSansArabic-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
body,.r8-public,input,select,textarea,button{font-family:"Noto Persian",Tahoma,"Segoe UI",Arial,sans-serif!important}


/* R19 — unified user registry and secure recovery */
.r19-user-registry{margin-bottom:18px}.user-registry-table{display:grid;gap:8px}.user-registry-head,.user-registry-row{display:grid;grid-template-columns:1.2fr 1fr 1.35fr .55fr 1.15fr;gap:10px;align-items:center;padding:12px 14px;border-radius:14px}.user-registry-head{background:#eaf1f6;font-weight:900}.user-registry-row{background:#fff;border:1px solid #dbe6ee}.user-registry-row>span{display:grid;gap:4px;min-width:0}.user-registry-row code{direction:ltr;text-align:left}.secure-password-state{color:#416278}.recovery-pending{color:#9a5b00;font-size:.78rem}.recovery-summary{margin:8px 0 14px}.forgot-password-link{display:block;width:100%;margin-top:8px;border:0;background:transparent;color:#176d91;font-weight:800;cursor:pointer}.recovery-modal{position:fixed;inset:0;z-index:9999;background:#051522b8;display:grid;place-items:center;padding:20px}.recovery-modal>section{width:min(520px,100%);background:#fff;border-radius:24px;padding:26px;position:relative;box-shadow:0 30px 80px #00152b66}.recovery-modal h3{margin-top:0}.recovery-modal form{display:grid;gap:12px}.recovery-modal label{display:grid;gap:6px;font-weight:800}.recovery-modal input{padding:12px;border:1px solid #c8d7e2;border-radius:12px}.recovery-close{position:absolute;left:14px;top:12px;border:0;background:#eef3f7;border-radius:10px;width:36px;height:36px;font-size:22px}.recovery-message{min-height:24px;color:#31546d}.credential-line{padding:10px 12px;border-radius:12px;background:#f3f7fa;margin:8px 0}@media(max-width:1000px){.user-registry-head{display:none}.user-registry-row{grid-template-columns:1fr 1fr}.user-registry-row .row-actions{grid-column:1/-1;display:flex;flex-wrap:wrap}}@media(max-width:650px){.user-registry-row{grid-template-columns:1fr}}

.password-visibility-wrap{display:grid;grid-template-columns:1fr auto;align-items:center;gap:6px}.password-visibility-wrap>input{min-width:0;width:100%}.password-visibility-toggle{border:1px solid #c8d7e2;background:#f5f8fa;border-radius:10px;width:42px;height:42px;cursor:pointer}
\n/* R20 FINAL — PWA, notifications, passkeys, automatic occasion themes */
:root{--r20-accent:#23c8db;--r20-accent2:#3977f6}.r20-install,.r20-notify{position:fixed;z-index:9999;right:18px;left:18px;bottom:18px;max-width:760px;margin:auto;background:#081f36;color:#fff;border:1px solid #ffffff22;border-radius:20px;padding:15px 18px;box-shadow:0 20px 55px #00152b55;display:flex;align-items:center;gap:12px}.r20-install span,.r20-notify span{color:#d7e7f3;font-size:13px;line-height:1.7;flex:1}.r20-install button,.r20-notify button,.r20-security-fab{border:0;border-radius:13px;background:linear-gradient(135deg,var(--r20-accent),var(--r20-accent2));color:#fff;font-weight:900;padding:11px 15px;cursor:pointer}.r20-install i{font-style:normal;cursor:pointer;font-size:20px}.r20-notify>div{display:grid;gap:3px;flex:1}.r20-security-fab{position:fixed;z-index:9000;left:18px;bottom:18px;box-shadow:0 12px 32px #001a3355}.r20-themebar{position:relative;z-index:45;padding:9px 5vw;background:linear-gradient(90deg,var(--r20-accent),var(--r20-accent2));color:#fff;display:flex;gap:12px;justify-content:center;align-items:center;text-align:center}.r20-themebar b{background:#ffffff26;padding:4px 10px;border-radius:999px}.r20-themebar span{font-weight:800}body[data-theme=defense-week] .r8-topbar{background:#283618f2!important}body[data-theme=defense-week] .feature-icon,body[data-theme=defense-week] .plan-icon{background:linear-gradient(145deg,#606c38,#a98467)!important}body[data-theme=student-day] .r8-topbar{background:#0b2f55f2!important}body[data-theme=yalda] .r8-topbar{background:#4c0519f2!important}body[data-theme=fajr] .r8-topbar{background:#064e3bf2!important}body[data-theme=teacher-day] .r8-topbar{background:#3b0764f2!important}body[data-theme=nowruz] .r8-topbar{background:#14532df2!important}@media(max-width:700px){.r20-install,.r20-notify{display:grid;right:10px;left:10px;bottom:10px}.r20-install button,.r20-notify button{width:100%}.r20-security-fab{left:10px;bottom:10px}.r20-themebar{font-size:12px;display:grid;gap:4px}}\n
/* R20.2 HOTFIX — visible passkey setup + inactivity security */
.r20-security-card{margin:0 0 18px!important;padding:16px 18px!important;border:1px solid #c9dce8!important;border-radius:18px!important;background:linear-gradient(135deg,#f8fcff,#eef7fb)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;box-shadow:0 10px 26px rgba(12,52,80,.08)!important}.r20-security-card>div{display:grid;gap:4px}.r20-security-card b{color:#0b2f4b!important}.r20-security-card span{color:#4b6578!important;font-size:13px!important;line-height:1.7}.r20-security-card button{border:0;border-radius:13px;background:linear-gradient(135deg,var(--r20-accent,#23c8db),var(--r20-accent2,#3977f6));color:#fff;font-weight:900;padding:11px 16px;cursor:pointer}.r20-security-card button:disabled{opacity:.5;cursor:not-allowed}.r20-idle-warning{position:fixed;z-index:10050;right:18px;left:18px;bottom:18px;max-width:680px;margin:auto;background:#3b2411;color:#fff;border:1px solid #f0bd6c;border-radius:18px;padding:15px 18px;box-shadow:0 22px 60px #0005;display:flex;align-items:center;gap:14px}.r20-idle-warning>div{display:grid;gap:3px;flex:1}.r20-idle-warning span{color:#ffe8c7;font-size:13px}.r20-idle-warning button{border:0;border-radius:12px;background:#fff;color:#4b2b0d;font-weight:900;padding:10px 14px;cursor:pointer}@media(max-width:700px){.r20-security-card,.r20-idle-warning{display:grid!important}.r20-security-card button,.r20-idle-warning button{width:100%}}

/* R20.3 — reliable install prompt + branded app icon */
.r20-install{max-width:820px!important}.r20-install-icon{width:58px;height:58px;flex:0 0 58px;border-radius:17px;overflow:hidden;box-shadow:0 10px 25px rgba(0,0,0,.32),inset 0 1px 0 rgba(255,255,255,.18)}.r20-install-icon img{width:100%;height:100%;display:block}.r20-install-copy{display:grid;gap:4px;flex:1}.r20-install-copy b{font-size:15px}.r20-install-copy span{display:block}.r20-install i{font-style:normal;cursor:pointer;font-size:22px;line-height:1;padding:7px;color:#dbe9f3}@media(max-width:700px){.r20-install{grid-template-columns:58px 1fr auto!important;align-items:center!important}.r20-install button{grid-column:1/-1}.r20-install i{position:absolute;top:8px;left:8px}.r20-install{position:fixed}}

/* R20.4 VISUAL RESTORE — layered topic cards */
.page .card,.quick-access-grid>*,.dashboard-grid>*,.stats-grid>*,.student-grid2>section,.r8-feature-grid article,.plan3d{position:relative;isolation:isolate}
.quick-access-grid>*,.dashboard-grid>*,.stats-grid>*{border:1px solid rgba(168,199,219,.55)!important;box-shadow:0 10px 0 rgba(216,229,238,.72),0 24px 44px rgba(12,52,80,.10)!important;transition:transform .22s ease,box-shadow .22s ease!important}
.quick-access-grid>*:hover,.dashboard-grid>*:hover,.stats-grid>*:hover{transform:translateY(-5px)!important;box-shadow:0 6px 0 rgba(207,223,234,.82),0 30px 52px rgba(12,52,80,.15)!important}
.quick-access-grid>*::before,.dashboard-grid>*::before{content:"";position:absolute;inset:0 0 auto 0;height:4px;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0;background:linear-gradient(90deg,var(--r20-accent,#23c8db),var(--r20-accent2,#3977f6));opacity:.72;z-index:-1}
/* R21-P2 education/finance modules */
.r21p2-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:14px}.r21p2-capacity{display:grid;grid-template-columns:repeat(4,1fr);gap:10px;margin:12px 0}.r21p2-capacity>div,.vclass-card,.vclass-row,.pay-row{background:linear-gradient(180deg,#fff,#f8fbff);border:1px solid #dbe6ef;border-radius:18px;padding:14px;box-shadow:0 8px 24px rgba(13,47,73,.06)}.r21p2-capacity b{display:block;font-size:1.15rem}.r21p2-capacity small,.vclass-row small,.vclass-card span,.pay-row small{display:block;color:#64748b;margin-top:4px}.vclass-list{display:grid;gap:10px}.vclass-row,.pay-row{display:flex;align-items:center;justify-content:space-between;gap:12px}.vclass-card{display:grid;gap:9px}.r21p2-note{margin-top:12px;padding:10px 14px;border-radius:12px}.r21p2-note.ok{background:#ecfdf5;color:#166534}.r21p2-note.bad{background:#fef2f2;color:#991b1b}@media(max-width:720px){.r21p2-capacity{grid-template-columns:1fr 1fr}.vclass-row,.pay-row{align-items:stretch;flex-direction:column}}


/* =========================================================
   R21-P4 PREMIUM VISUAL RESTORE — reference-inspired hierarchy
   Keeps all previous components/functionality, changes presentation only.
   ========================================================= */
:root{
  --p4-navy:#071b2e;--p4-navy2:#0d2941;--p4-ink:#112d43;--p4-cream:#fbfaf5;
  --p4-gold:#e9bd63;--p4-line:#dce5ec;--p4-blue:#dceffc;--p4-green:#def4e8;
  --p4-violet:#e9e1fb;--p4-amber:#f9e4bd;--p4-cyan:#dbeaf4;
}
body.r21-public{background:#f7f9fb!important;color:var(--p4-ink)!important}
.r21-topbar{background:linear-gradient(90deg,#071827,#0d2c46)!important;border-bottom:1px solid rgba(255,255,255,.12)!important;box-shadow:0 8px 28px rgba(3,17,30,.16)!important}
.r21-topbar .r8-brand b,.r21-topbar .r8-brand small,.r21-topbar nav a,.r21-topbar nav button{color:#fff!important}
.r21-topbar nav a:not(.top-login){opacity:.84}.r21-topbar .top-login{background:rgba(255,255,255,.09)!important;border:1px solid rgba(255,255,255,.2)!important}
.r21-hero{min-height:440px!important;border-radius:0 0 30px 30px!important;overflow:hidden!important;box-shadow:0 18px 45px rgba(5,25,43,.18)!important}
.r21-hero>img{height:440px!important;object-fit:cover!important;object-position:center!important;filter:saturate(.92) contrast(1.03)!important}
.r21-hero .r8-hero-shade{background:linear-gradient(90deg,rgba(5,19,33,.12) 5%,rgba(5,19,33,.2) 38%,rgba(5,19,33,.78) 100%)!important}
.r21-hero-copy{max-width:650px!important;right:7%!important;left:auto!important;text-align:right!important}
.r21-hero-copy span{color:#f4d38b!important;font-weight:800!important}.r21-hero-copy h1{font-size:44px!important;line-height:1.45!important;color:#fff!important;text-shadow:0 5px 24px rgba(0,0,0,.28)!important}.r21-hero-copy p{font-size:16px!important;color:#eef6fb!important;max-width:590px!important}
.r21-hero-copy .r8-btn.primary{background:linear-gradient(135deg,#f2c86f,#e6b34c)!important;color:#172b3b!important;box-shadow:0 10px 25px rgba(221,166,62,.3)!important}
.r21-plans{max-width:1260px!important;margin:-40px auto 34px!important;position:relative!important;z-index:8!important;padding:0 28px!important}
.r21-plans .portal-intro{display:none!important}
.r21-plans .r8-plan-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:18px!important}
.r21-plans .plan3d{min-height:215px!important;border:none!important;border-radius:22px!important;padding:22px 20px!important;box-shadow:0 18px 32px rgba(25,48,67,.13),inset 0 1px 0 rgba(255,255,255,.7)!important;transform:translateY(0)!important;overflow:hidden!important;position:relative!important}
.r21-plans .plan3d:before{content:"";position:absolute;width:110px;height:110px;border-radius:34px;left:-25px;top:-30px;background:rgba(255,255,255,.35);transform:rotate(18deg)}
.r21-plans .plan3d.student{background:linear-gradient(155deg,#e9f6ff,#cceafa)!important}.r21-plans .plan3d.parent{background:linear-gradient(155deg,#e9fbf1,#d4f3e1)!important}.r21-plans .plan3d.teacher{background:linear-gradient(155deg,#f1ebff,#e3d8fa)!important}.r21-plans .plan3d.manager{background:linear-gradient(155deg,#fff3dc,#f7ddb0)!important}.r21-plans .plan3d.finance{background:linear-gradient(155deg,#e7f0f7,#cfe2ef)!important}
.r21-plans .plan-icon{font-size:42px!important;filter:drop-shadow(0 8px 10px rgba(30,50,70,.15))!important}.r21-plans .plan3d h3{font-size:20px!important;color:#18364c!important}.r21-plans .plan3d p{font-size:11px!important;color:#5e7382!important;line-height:1.8!important}.r21-plans .plan3d>b{margin-top:auto!important;color:#1a567b!important}
.r21-smart-strip,.r21-value-grid,.r8-feature-grid{max-width:1260px!important;margin-left:auto!important;margin-right:auto!important}.r21-smart-strip article{background:#fff!important;border:1px solid #e6edf2!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(24,50,69,.055)!important}.r21-smart-strip article i{background:#f4f8fb!important;border:1px solid #e1e9ef!important}
.r21-why,.r8-modern,.r8-today,.r21-highlights,.r8-extras,.r21-about{max-width:1260px!important;margin-left:auto!important;margin-right:auto!important}
.r21-value-grid article,.r8-feature-grid article,.r21-highlight-grid article{border-radius:20px!important;background:#fff!important;border:1px solid #e3ebf0!important;box-shadow:0 9px 24px rgba(25,51,70,.055)!important}
.r21-footer{background:linear-gradient(135deg,#061827,#0c2a43)!important;border-top:4px solid #d9b15f!important}

/* Manager/application theme: visible actions, dimensional cards, same navy/gold visual language */
.app-shell{background:#f4f7f9!important}.sidebar{background:linear-gradient(180deg,#071a2c 0%,#0b2b44 100%)!important;box-shadow:-14px 0 34px rgba(7,26,44,.12)!important}.school-brand{border-bottom:1px solid rgba(255,255,255,.1)!important}.brandmark{background:linear-gradient(145deg,#f3d089,#cda24e)!important;color:#10283a!important;box-shadow:0 8px 18px rgba(230,186,99,.2)!important}.side-nav button{border:1px solid transparent!important}.side-nav button.active{background:linear-gradient(135deg,rgba(232,190,105,.18),rgba(255,255,255,.08))!important;border-color:rgba(232,190,105,.28)!important;box-shadow:inset 3px 0 0 #e6bd68!important}.side-nav button.active span{color:#f3d184!important}
.topbar{background:rgba(255,255,255,.96)!important;border:1px solid #e1e9ef!important;border-radius:0 0 22px 22px!important;box-shadow:0 8px 26px rgba(21,47,65,.07)!important}.top-actions{flex-wrap:wrap!important}.top-action-card{display:inline-flex!important;align-items:center!important;gap:7px!important;min-height:42px!important;padding:8px 12px!important;border-radius:13px!important;border:1px solid #dce6ed!important;background:#fff!important;color:#17364d!important;font:inherit!important;cursor:pointer!important;box-shadow:0 5px 12px rgba(27,50,67,.055)!important}.top-action-card span{font-size:18px!important}.top-action-card b{font-size:11px!important}.top-action-card:hover{transform:translateY(-1px)!important;box-shadow:0 8px 16px rgba(27,50,67,.1)!important}.top-action-card.logout-action{background:#fff5f3!important;border-color:#f0d1cb!important;color:#a84035!important}.top-action-card.refresh-action{background:#f3f9ff!important;border-color:#d5e8f7!important;color:#245f87!important}.top-action-card.back-action{background:#fff9ed!important;border-color:#ead8af!important;color:#775b24!important}
.manager-hero{background:linear-gradient(120deg,#0a2941 0%,#133d5c 72%,#b68a41 145%)!important;border:none!important;box-shadow:0 16px 38px rgba(7,31,50,.15)!important}.manager-hero h1,.manager-hero p,.manager-hero .status-label{color:#fff!important}.manager-hero .status-label{background:rgba(232,190,105,.17)!important;border-color:rgba(232,190,105,.35)!important}.hero-mini-status span{background:rgba(255,255,255,.08)!important;color:#eaf3f8!important}.hero-lock{background:rgba(255,255,255,.09)!important;border-color:rgba(255,255,255,.16)!important;color:#fff!important}
.quick-access-panel,.panel,.page-toolbar,.absence-today-panel,.archive-panel{border:1px solid #dee7ed!important;border-radius:20px!important;background:#fff!important;box-shadow:0 9px 26px rgba(23,49,67,.055)!important}.quick-access-grid button,.manager-quick{border-radius:18px!important;border:1px solid #e1e9ee!important;background:linear-gradient(145deg,#fff,#f8fafb)!important;box-shadow:0 7px 18px rgba(24,49,66,.055)!important}.quick-access-grid button:hover{transform:translateY(-3px)!important;box-shadow:0 14px 24px rgba(24,49,66,.11)!important}.virtual-class-quick{background:linear-gradient(145deg,#e9f5ff,#d8ebf8)!important;border-color:#c7ddec!important}.virtual-class-quick span{background:#0e3856!important;color:#fff!important}
#page-virtual-class .page-toolbar{background:linear-gradient(120deg,#0a2941,#164969)!important;color:#fff!important;border:none!important}#page-virtual-class .page-toolbar h3,#page-virtual-class .page-toolbar p,#page-virtual-class .page-toolbar .eyebrow{color:#fff!important}#page-virtual-class .lock-badge{background:#f4d486!important;color:#4e3a13!important;border:none!important}.r21p2-capacity>div{border-radius:18px!important;border:1px solid #dae6ed!important;background:linear-gradient(145deg,#fff,#f4f8fa)!important;box-shadow:0 8px 20px rgba(23,49,67,.06)!important}.r21p2-capacity>div b{color:#123b57!important}
.sync-key-label:after{content:"برای عملیات حساس، همان رمز ورود حساب فعلی را وارد کنید. اگر مدیر سرور کلید جداگانه تعریف کرده باشد، آن هم پذیرفته می‌شود.";display:block;font-size:10px;color:#7b8d9b;line-height:1.6;margin-top:5px;font-weight:400}
@media(max-width:1100px){.r21-plans .r8-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r21-hero-copy h1{font-size:36px!important}}
@media(max-width:760px){.r21-hero{min-height:370px!important}.r21-hero>img{height:370px!important}.r21-hero-copy{right:20px!important;left:20px!important;bottom:34px!important}.r21-hero-copy h1{font-size:28px!important}.r21-plans{margin:-18px auto 22px!important;padding:0 12px!important}.r21-plans .r8-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}.r21-plans .plan3d{min-height:170px!important;padding:14px!important}.top-action-card{min-width:42px!important;padding:8px!important}.top-action-card b{display:none!important}.top-actions .role-chip,.top-actions .sync-status,.top-actions .quick-open{display:none!important}.topbar{align-items:center!important}.virtual-class-quick{grid-column:1/-1!important}}

/* =========================================================
   R21-P5 — FULL VISUAL REBUILD (reference-faithful homepage)
   Scoped to .r21p5-public to avoid altering authenticated panels.
   ========================================================= */
:root{--p5-navy:#07182b;--p5-navy2:#0a2742;--p5-ink:#10283b;--p5-text:#243b4b;--p5-muted:#6c7a86;--p5-cream:#fbfaf6;--p5-gold:#e7b957;--p5-line:#e8ebed;--p5-shadow:0 18px 38px rgba(17,43,62,.12)}
body.r21p5-public{margin:0;background:#fff;color:var(--p5-text)!important;font-family:Tahoma,"Segoe UI",Arial,sans-serif;line-height:1.75;overflow-x:hidden}
.r21p5-public *{box-sizing:border-box}.r21p5-public a{text-decoration:none}.r21p5-public .hidden{display:none!important}
.r21p5-header{height:72px;background:linear-gradient(90deg,#07182b,#0a2742);color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 34px;position:relative;z-index:20;box-shadow:0 3px 12px rgba(0,0,0,.2)}
.r21p5-brand{display:flex;align-items:center;gap:10px;color:#fff;min-width:260px}.r21p5-brand img{width:50px;height:50px;object-fit:cover;border-radius:12px}.r21p5-brand span{display:grid;line-height:1.35}.r21p5-brand b{font-size:13px;color:#fff}.r21p5-brand small{font-size:10px;color:#d5deea;margin-top:3px}
.r21p5-header nav{display:flex;height:100%;align-items:center;gap:27px}.r21p5-header nav a{height:100%;display:flex;align-items:center;color:#e4eaf0;font-size:12px;position:relative}.r21p5-header nav a:hover,.r21p5-header nav a.active{color:#f4c766}.r21p5-header nav a.active:after{content:"";position:absolute;height:2px;background:#d9ae50;left:3px;right:3px;bottom:11px}
.r21p5-header-tools{display:flex;align-items:center;gap:10px;min-width:215px;justify-content:flex-end}.r21p5-header-tools .icon-btn{border:0;background:transparent;color:#fff;font-size:19px;display:grid;place-items:center;min-width:30px;height:34px;cursor:pointer}.portal-pill{border:1px solid rgba(255,255,255,.35);color:#fff;border-radius:7px;padding:6px 11px;font-size:11px}
.r21p5-search{position:absolute;z-index:30;top:72px;left:0;right:0;background:#fff;border-bottom:1px solid #e5e9ec;box-shadow:0 15px 30px rgba(16,40,59,.12);padding:14px max(24px,calc((100vw - 1140px)/2));color:var(--p5-ink)}.r21p5-search>div{display:flex;gap:8px}.r21p5-search input{flex:1;border:1px solid #d6dde1;border-radius:9px;padding:10px 12px;color:#172f41;background:#fff}.r21p5-search button{background:#0b2a45;color:#fff;border:0;border-radius:9px;padding:8px 18px}
.r21p5-hero{height:350px;position:relative;overflow:hidden;background:#dce8ed}.hero-campus{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 55%;filter:saturate(.94) contrast(.96)}.hero-atmosphere{position:absolute;inset:0;background:linear-gradient(90deg,rgba(255,255,255,.02) 0%,rgba(7,24,43,.02) 37%,rgba(5,20,36,.58) 61%,rgba(5,20,36,.78) 100%)}
.hero-student{position:absolute;left:11%;bottom:-26px;height:330px;width:auto;filter:drop-shadow(0 20px 28px rgba(0,0,0,.18));z-index:2}.hero-handwriting{position:absolute;left:3.5%;top:110px;z-index:3;color:#fff;font-size:22px;line-height:1.7;transform:rotate(-7deg);font-style:italic;text-shadow:0 2px 8px rgba(0,0,0,.28);opacity:.93}.hero-copy{position:absolute;right:7.5%;top:50%;transform:translateY(-50%);z-index:4;width:min(470px,45%);color:#fff;text-align:right}.hero-kicker{display:block;font-size:10px;color:#f4d27c;margin-bottom:7px}.hero-copy h1{font-size:34px;line-height:1.35;margin:0 0 1px;color:#fff;font-weight:900;text-shadow:0 3px 16px rgba(0,0,0,.24)}.hero-copy h2{font-size:25px;color:#fff;margin:0 0 7px}.hero-copy p{font-size:13px;color:#f0f3f4;margin:0 0 17px}.hero-actions{display:flex;gap:8px}.hero-primary,.hero-secondary{display:inline-flex;gap:16px;align-items:center;border-radius:8px;padding:9px 17px;font-size:12px;font-weight:800}.hero-primary{background:#f1c45f;color:#213344}.hero-secondary{border:1px solid rgba(255,255,255,.55);color:#fff;background:rgba(255,255,255,.08)}
.r21p5-role-wrap{position:relative;background:#fff;padding:23px 30px 25px}.r21p5-role-wrap:before{content:"";position:absolute;left:0;right:0;top:-15px;height:28px;background:#fff;border-radius:50% 50% 0 0/80% 80% 0 0}.r21p5-role-grid{max-width:1120px;margin:0 auto;display:grid;grid-template-columns:repeat(5,1fr);gap:24px;position:relative;z-index:2;direction:ltr}.r21p5-role-card{direction:rtl;position:relative;min-height:195px;border-radius:10px;padding:0 14px 14px;display:flex;flex-direction:column;align-items:flex-start;color:#18324a;overflow:hidden;border:1px solid rgba(22,53,75,.05);box-shadow:0 12px 0 rgba(32,73,102,.06),0 21px 28px rgba(36,74,100,.12);transition:.2s ease}.r21p5-role-card:before{content:"";position:absolute;inset:0;background:linear-gradient(155deg,rgba(255,255,255,.7),transparent 60%);pointer-events:none}.r21p5-role-card:hover{transform:translateY(-5px);box-shadow:0 15px 0 rgba(32,73,102,.07),0 28px 38px rgba(36,74,100,.16)}.r21p5-role-card img{width:100%;height:103px;object-fit:contain;position:relative;z-index:1;margin-top:3px}.r21p5-role-card h3{margin:3px 0 1px;font-size:15px;color:#19334d}.r21p5-role-card p{margin:0;color:#607383;font-size:9px}.r21p5-role-card>span{position:absolute;left:13px;bottom:13px;width:23px;height:23px;border-radius:50%;display:grid;place-items:center;color:#fff;font-weight:900}.r21p5-role-card.student{background:linear-gradient(155deg,#eff9ff,#cfeeff)}.r21p5-role-card.student>span{background:#2e9ad1}.r21p5-role-card.parent{background:linear-gradient(155deg,#effff7,#d5f5e4)}.r21p5-role-card.parent>span{background:#39aa76}.r21p5-role-card.teacher{background:linear-gradient(155deg,#f8f3ff,#e7d9fb)}.r21p5-role-card.teacher>span{background:#7955a9}.r21p5-role-card.manager{background:linear-gradient(155deg,#fff9e9,#fae4bb)}.r21p5-role-card.manager>span{background:#d58a2a}.r21p5-role-card.finance{background:linear-gradient(155deg,#eef7fc,#c7ddeb)}.r21p5-role-card.finance>span{background:#1c5f8c}
.r21p5-services{max-width:1120px;margin:4px auto 26px;display:grid;grid-template-columns:repeat(6,1fr);background:#fff;border-radius:8px;box-shadow:0 7px 25px rgba(24,53,73,.07);border:1px solid #eef0f1;overflow:hidden}.r21p5-services a{min-height:117px;padding:16px 9px 10px;text-align:center;color:#19344c;border-left:1px solid #eef0f1;display:flex;flex-direction:column;align-items:center;position:relative}.r21p5-services a:last-child{border-left:0}.r21p5-services i{font-style:normal;font-size:28px;line-height:1.1}.r21p5-services b{font-size:11px;margin-top:8px;color:#17324a}.r21p5-services small{font-size:8px;color:#84909a}.r21p5-services span{font-size:13px;margin-top:auto;color:#1d415a}
.r21p5-mid{max-width:1120px;margin:0 auto 28px;display:grid;grid-template-columns:1.65fr 1fr;gap:19px}.r21p5-school-story{height:235px;border-radius:8px;overflow:hidden;display:grid;grid-template-columns:1.05fr .95fr;background:#071d31;box-shadow:var(--p5-shadow)}.story-photo{overflow:hidden}.story-photo img{width:100%;height:100%;object-fit:cover;object-position:center}.story-copy{padding:24px 26px;color:#fff;background:linear-gradient(135deg,#102d49,#07192c);position:relative}.story-copy span{font-size:8px;border:1px solid rgba(255,255,255,.3);padding:4px 7px;border-radius:10px}.story-copy h2{font-size:23px;color:#fff;margin:10px 0 7px;line-height:1.5}.story-copy p{font-size:10px;color:#dce4ea;margin:0 0 13px;line-height:1.85}.story-copy a{font-size:9px;color:#fff;border:1px solid rgba(255,255,255,.4);border-radius:15px;padding:5px 10px}.r21p5-news{background:#fff;border:1px solid #edf0f2;border-radius:8px;padding:15px 18px;box-shadow:0 8px 25px rgba(21,49,68,.06)}.r21p5-news header{display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid #eee;padding-bottom:10px}.r21p5-news h2{font-size:18px;margin:0;color:#132f48}.r21p5-news header a{font-size:9px;color:#244b69}.r21p5-news-list{display:grid;gap:0}.r21p5-news-list .r8-event-card,.r21p5-news-list article{padding:10px 0!important;margin:0!important;border:0!important;border-bottom:1px solid #eef0f1!important;background:transparent!important;box-shadow:none!important;color:#233b4e!important}.news-placeholder{padding:18px 0;display:grid}.news-placeholder b{color:#1a344d}.news-placeholder span{font-size:10px;color:#78858f}.r21p5-hidden-events{max-width:1120px;margin:0 auto;height:0;overflow:hidden}
.r21p5-why{max-width:1120px;margin:0 auto 27px;display:grid;grid-template-columns:.9fr 1.45fr;gap:18px;align-items:stretch}.r21p5-quote{height:160px;border-radius:8px;overflow:hidden;position:relative;background:#171d22}.quote-bg{position:absolute;inset:0;background:linear-gradient(90deg,rgba(7,19,31,.18),rgba(4,14,24,.8));filter:saturate(.65)}.r21p5-quote blockquote{position:absolute;right:24px;top:31px;margin:0;color:#fff;font-size:17px;line-height:1.7;font-weight:800;text-shadow:0 2px 9px rgba(0,0,0,.3)}.why-content{border-radius:8px;background:#f7f8f8;padding:15px 20px}.why-content header{display:flex;align-items:center;gap:12px}.why-content h2{font-size:20px;margin:0;color:#102c45}.why-content header span{width:34px;height:2px;background:#d6a947}.why-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:8px;margin-top:16px}.why-grid article{text-align:center;padding:4px;color:#17334b}.why-grid i{font-style:normal;font-size:25px;color:#1e5d8a}.why-grid b{display:block;font-size:10px;margin:8px 0 2px;color:#172f46}.why-grid small{font-size:8px;color:#7e8990}
.r21p5-system-highlights{max-width:1120px;margin:0 auto 38px;display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.r21p5-system-highlights article{border:1px solid #e6e9eb;border-radius:10px;padding:15px;background:#fff;box-shadow:0 7px 17px rgba(15,42,60,.055)}.r21p5-system-highlights span{font-size:10px;color:#b18839}.r21p5-system-highlights b{display:block;color:#17324a;font-size:13px;margin:3px 0}.r21p5-system-highlights p{font-size:9px;color:#6d7b85;margin:0}
.r21p5-footer{background:#07182b;color:#dce4e9;padding:27px 42px 12px;display:grid;grid-template-columns:1fr 1fr 1fr;gap:30px;position:relative}.footer-contact{font-size:9px;align-self:center}.footer-contact p{margin:4px 0;color:#d8e2e9}.footer-brand{text-align:center;display:flex;flex-direction:column;align-items:center}.footer-brand img{border-radius:12px}.footer-brand b{font-size:12px;color:#fff;margin-top:6px}.footer-brand span,.footer-brand small{font-size:8px;color:#aebdca}.footer-links{text-align:left;display:flex;flex-direction:column;justify-content:center;gap:15px}.footer-links>div:first-child{display:flex;gap:13px;justify-content:flex-end}.footer-links a{font-size:8px;color:#d6e1e8}.social{color:#fff;font-size:13px}.footer-bottom{grid-column:1/-1;border-top:1px solid rgba(255,255,255,.12);padding-top:9px;display:flex;justify-content:space-between;font-size:7px;color:#8598a7}
/* authenticated action visibility */
.top-action-card{min-width:96px!important;justify-content:center!important}.top-action-card b{display:inline!important;font-size:12px!important;color:inherit!important}.top-action-card span{display:inline!important}.virtual-class-quick{border:2px solid #d6af55!important;background:linear-gradient(145deg,#fffdf6,#f5ead0)!important}.virtual-class-quick b{color:#253c4e!important}.virtual-class-quick small{color:#6c746f!important}
@media(max-width:980px){.r21p5-header{padding:0 15px}.r21p5-header nav{gap:13px}.r21p5-header nav a{font-size:10px}.r21p5-role-grid{gap:11px}.r21p5-services{margin-inline:15px}.r21p5-mid,.r21p5-why,.r21p5-system-highlights{margin-inline:15px}.hero-student{left:2%}.hero-handwriting{display:none}}
@media(max-width:760px){.r21p5-header{height:62px}.r21p5-brand{min-width:0}.r21p5-brand img{width:42px;height:42px}.r21p5-brand b{font-size:11px}.r21p5-header nav{display:none}.r21p5-header-tools{min-width:auto}.portal-pill{display:none}.r21p5-search{top:62px}.r21p5-hero{height:430px}.hero-campus{object-position:center}.hero-atmosphere{background:linear-gradient(180deg,rgba(7,24,43,.25),rgba(5,20,36,.82))}.hero-student{height:225px;left:50%;transform:translateX(-50%);bottom:-20px;opacity:.58}.hero-copy{right:22px;left:22px;top:45%;transform:translateY(-50%);width:auto;text-align:center}.hero-copy h1{font-size:29px}.hero-copy h2{font-size:21px}.hero-actions{justify-content:center}.r21p5-role-wrap{padding-inline:15px}.r21p5-role-grid{grid-template-columns:repeat(2,1fr);direction:rtl}.r21p5-role-card{min-height:180px}.r21p5-role-card:last-child{grid-column:1/-1;max-width:50%;justify-self:center;width:100%}.r21p5-services{grid-template-columns:repeat(2,1fr)}.r21p5-services a{border-bottom:1px solid #eef0f1}.r21p5-mid{grid-template-columns:1fr}.r21p5-school-story{grid-template-columns:1fr;height:auto}.story-photo{height:180px}.r21p5-why{grid-template-columns:1fr}.why-grid{grid-template-columns:repeat(2,1fr)}.r21p5-system-highlights{grid-template-columns:1fr 1fr}.r21p5-footer{grid-template-columns:1fr;text-align:center}.footer-links{text-align:center}.footer-links>div:first-child{justify-content:center;flex-wrap:wrap}.footer-bottom{flex-direction:column;align-items:center;gap:5px}.top-action-card{min-width:82px!important;padding:8px 10px!important}.top-action-card b{display:inline!important;font-size:10px!important}}
@media(max-width:430px){.r21p5-role-grid{grid-template-columns:1fr 1fr;gap:9px}.r21p5-role-card{min-height:165px;padding:0 10px 12px}.r21p5-role-card img{height:88px}.r21p5-role-card h3{font-size:13px}.r21p5-role-card:last-child{max-width:none}.r21p5-services{grid-template-columns:1fr 1fr}.r21p5-system-highlights{grid-template-columns:1fr}.why-grid{grid-template-columns:1fr 1fr}.hero-copy h1{font-size:25px}}

/* =========================================================
   R21-P12 — REFERENCE-LOCKED VISUAL REBUILD
   Exact composition target: user-provided premium school reference.
   Public homepage only. Authenticated dashboards remain functionally intact.
   ========================================================= */
body.r21p5-public{--p6-navy:#071c31;--p6-navy2:#0b2d4c;--p6-ink:#102b43;--p6-body:#354b5d;--p6-muted:#6d7d89;--p6-gold:#e1b552;--p6-paper:#fff;--p6-soft:#f6f8f9;background:#fff!important;color:var(--p6-ink)!important;font-family:Tahoma,"Segoe UI",Arial,sans-serif!important;line-height:1.75!important}
.r21p5-header{height:76px!important;background:#071c31!important;padding:0 max(28px,calc((100vw - 1240px)/2))!important;box-shadow:none!important;border-bottom:1px solid rgba(255,255,255,.08)!important;position:sticky!important;top:0!important;z-index:80!important}
.r21p5-brand{min-width:290px!important}.r21p5-brand img{width:54px!important;height:54px!important;border-radius:0!important;object-fit:contain!important}.r21p5-brand b{font-size:14px!important;line-height:1.45!important}.r21p5-brand small{font-size:10px!important;color:#c5d0da!important}
.r21p5-header nav{gap:30px!important}.r21p5-header nav a{font-size:12px!important;font-weight:600!important;color:#eaf0f4!important}.r21p5-header nav a.active{color:#f4ce73!important}.r21p5-header nav a.active:after{bottom:9px!important;background:#d8ae51!important;height:2px!important}
.r21p5-header-tools{min-width:230px!important}.portal-pill{padding:8px 14px!important;border-radius:7px!important;font-weight:700!important}.r21p5-header-tools .icon-btn{font-size:18px!important}
.r21p5-hero{height:410px!important;position:relative!important;background:#dbe6ea!important;overflow:hidden!important}.r21p5-hero .hero-campus{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;filter:none!important}.r21p5-hero .hero-atmosphere{background:linear-gradient(90deg,rgba(255,255,255,0) 0%,rgba(6,23,40,0) 44%,rgba(6,23,40,.84) 58%,rgba(6,23,40,.94) 100%)!important}
.hero-copy{position:absolute!important;right:max(45px,calc((100vw - 1180px)/2))!important;top:50%!important;transform:translateY(-50%)!important;width:43%!important;max-width:560px!important;z-index:5!important;color:#fff!important;text-align:right!important;padding:0!important}.hero-copy .hero-kicker{display:none!important}.hero-copy h1{font-size:38px!important;line-height:1.5!important;margin:0 0 2px!important;color:#fff!important;font-weight:900!important;text-shadow:0 3px 16px rgba(0,0,0,.22)!important}.hero-copy h2{font-size:28px!important;color:#fff!important;margin:0 0 12px!important}.hero-copy p{font-size:15px!important;color:#ecf1f4!important;line-height:2!important;margin:0 0 20px!important}.hero-actions{display:flex!important;gap:10px!important;justify-content:flex-start!important}.hero-primary{background:#efc65f!important;color:#122c43!important;border:0!important;border-radius:10px!important;padding:11px 22px!important;font-size:13px!important;font-weight:900!important;box-shadow:0 8px 22px rgba(0,0,0,.16)!important}.hero-secondary{background:rgba(7,28,49,.55)!important;color:#fff!important;border:1px solid rgba(255,255,255,.55)!important;border-radius:10px!important;padding:10px 19px!important;font-size:12px!important;font-weight:800!important;backdrop-filter:blur(7px)!important}.hero-handwriting{display:none!important}
.r21p5-role-wrap{padding:31px 28px 38px!important;background:#fff!important}.r21p5-role-wrap:before{top:-16px!important;height:34px!important;border-radius:50% 50% 0 0/100% 100% 0 0!important}.r21p5-role-grid{max-width:1180px!important;gap:27px!important;grid-template-columns:repeat(5,1fr)!important}.r21p5-role-card{min-height:245px!important;border-radius:14px!important;padding:0 17px 17px!important;border:1px solid rgba(20,48,68,.08)!important;box-shadow:0 10px 0 rgba(31,66,91,.055),0 22px 32px rgba(22,58,82,.15)!important;justify-content:flex-start!important}.r21p5-role-card img{width:calc(100% + 34px)!important;height:145px!important;margin:0 -17px 10px!important;object-fit:cover!important;object-position:center!important;border-radius:13px 13px 22px 22px!important}.r21p5-role-card h3{font-size:17px!important;color:#102f4b!important;margin:4px 0 3px!important;font-weight:900!important}.r21p5-role-card p{font-size:10px!important;color:#627584!important;margin:0!important}.r21p5-role-card>span{left:14px!important;bottom:14px!important;width:28px!important;height:28px!important;font-size:15px!important}.r21p5-role-card.student{background:linear-gradient(160deg,#f1faff,#d8f0fc)!important}.r21p5-role-card.parent{background:linear-gradient(160deg,#f1fff8,#daf5e8)!important}.r21p5-role-card.teacher{background:linear-gradient(160deg,#faf6ff,#e9defb)!important}.r21p5-role-card.manager{background:linear-gradient(160deg,#fffaf0,#f8e7c5)!important}.r21p5-role-card.finance{background:linear-gradient(160deg,#f0f7fb,#d6e5ee)!important}
.r21p5-services{max-width:1180px!important;margin:7px auto 34px!important;grid-template-columns:repeat(6,1fr)!important;border-radius:9px!important;box-shadow:0 9px 28px rgba(20,55,77,.075)!important;border:1px solid #e9eef1!important}.r21p5-services a{min-height:136px!important;padding:20px 10px 13px!important;color:#12324d!important}.r21p5-services .svc-ico{width:43px!important;height:43px!important;display:grid!important;place-items:center!important;margin:0 auto 7px!important}.r21p5-services .svc-ico img{width:42px!important;height:42px!important;display:block!important}.r21p5-services b{font-size:12px!important;color:#112f48!important;margin-top:6px!important}.r21p5-services small{font-size:9px!important;color:#71818d!important;margin-top:2px!important}.r21p5-services span{font-size:15px!important;color:#294a61!important}
.r21p5-mid{max-width:1180px!important;margin:0 auto 34px!important;grid-template-columns:1.55fr 1fr!important;gap:24px!important}.r21p5-school-story{height:315px!important;border-radius:12px!important;grid-template-columns:1.08fr .92fr!important;box-shadow:0 11px 35px rgba(17,45,66,.12)!important}.story-photo img{object-fit:cover!important;object-position:center 68%!important}.story-copy{padding:34px 32px!important;background:linear-gradient(135deg,#0d2f4d,#071a2e)!important}.story-copy span{font-size:10px!important}.story-copy h2{font-size:28px!important;margin:14px 0 10px!important}.story-copy p{font-size:11px!important;line-height:2!important}.story-copy a{font-size:10px!important;padding:7px 13px!important}.r21p5-news{border-radius:12px!important;padding:20px 22px!important;box-shadow:0 10px 30px rgba(18,49,69,.08)!important}.r21p5-news h2{font-size:22px!important;color:#102e47!important}.r21p5-news header a{font-size:10px!important}.news-placeholder{padding:27px 5px!important}.news-placeholder b{font-size:13px!important}.news-placeholder span{font-size:11px!important;color:#647785!important;margin-top:6px!important}
.r21p5-why{max-width:1180px!important;margin:0 auto 35px!important;grid-template-columns:.95fr 1.55fr!important;gap:24px!important}.r21p5-quote{height:230px!important;border-radius:12px!important}.r21p5-quote blockquote{right:30px!important;top:54px!important;font-size:22px!important}.why-content{border-radius:12px!important;background:#f5f7f8!important;padding:24px 28px!important}.why-content h2{font-size:25px!important;color:#102d46!important}.why-grid{margin-top:26px!important}.why-grid i{font-size:31px!important;color:#1f5d88!important}.why-grid b{font-size:12px!important;color:#132f48!important}.why-grid small{font-size:9px!important;color:#6c7c88!important}
.r21p5-system-highlights{max-width:1180px!important;margin:0 auto 44px!important;gap:16px!important}.r21p5-system-highlights article{padding:20px!important;border-radius:13px!important}.r21p5-system-highlights b{font-size:14px!important;color:#102e47!important}.r21p5-system-highlights p{font-size:10px!important;color:#5f7381!important;line-height:1.9!important}
.r21p5-footer{padding:35px max(34px,calc((100vw - 1180px)/2)) 14px!important;background:#071c31!important}.footer-contact{font-size:10px!important}.footer-brand b{font-size:13px!important}.footer-brand span,.footer-brand small,.footer-links a{font-size:9px!important}.footer-bottom{font-size:8px!important}
@media(max-width:980px){.r21p5-header{padding-inline:18px!important}.r21p5-header nav{gap:14px!important}.r21p5-role-grid{gap:13px!important}.r21p5-role-card{min-height:220px!important}.r21p5-role-card img{height:125px!important}.r21p5-services,.r21p5-mid,.r21p5-why,.r21p5-system-highlights{margin-inline:18px!important}.hero-copy{right:34px!important;width:50%!important}.hero-copy h1{font-size:32px!important}}
@media(max-width:760px){.r21p5-header{height:64px!important;position:sticky!important}.r21p5-hero{height:430px!important}.r21p5-hero .hero-campus{object-position:36% center!important}.r21p5-hero .hero-atmosphere{background:linear-gradient(180deg,rgba(7,28,49,.1),rgba(7,28,49,.86) 58%,rgba(7,28,49,.96))!important}.hero-copy{right:22px!important;left:22px!important;top:auto!important;bottom:28px!important;transform:none!important;width:auto!important;text-align:center!important}.hero-copy h1{font-size:27px!important}.hero-copy h2{font-size:20px!important}.hero-copy p{font-size:12px!important}.hero-actions{justify-content:center!important}.r21p5-role-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}.r21p5-role-card{min-height:205px!important}.r21p5-role-card img{height:112px!important}.r21p5-role-card:last-child{max-width:100%!important}.r21p5-services{grid-template-columns:repeat(2,1fr)!important}.r21p5-mid,.r21p5-why{grid-template-columns:1fr!important}.r21p5-school-story{height:auto!important;grid-template-columns:1fr!important}.story-photo{height:210px!important}.why-grid{grid-template-columns:repeat(2,1fr)!important}.r21p5-system-highlights{grid-template-columns:1fr 1fr!important}.r21p5-footer{grid-template-columns:1fr!important}}

/* === R21-P12 VISUAL QUALITY / HERO COMPOSITION LOCK === */
.r21p5-hero{height:470px!important;background:#dce7ef!important;overflow:hidden!important;position:relative!important}
.r21p5-hero .hero-campus{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 18%!important;filter:none!important;z-index:1!important}
.r21p5-hero .hero-atmosphere{position:absolute!important;inset:0!important;z-index:2!important;background:linear-gradient(90deg,rgba(4,20,35,.08) 0%,rgba(4,20,35,.06) 35%,rgba(4,20,35,.45) 56%,rgba(4,20,35,.90) 100%)!important}
.r21p5-hero .hero-student-p7{display:block!important;position:absolute!important;z-index:4!important;left:max(36px,calc((100vw - 1180px)/2 + 18px))!important;bottom:-90px!important;width:auto!important;height:360px!important;filter:drop-shadow(0 22px 28px rgba(8,30,48,.24))!important;transform:none!important;opacity:1!important}
.hero-copy{z-index:5!important;right:max(46px,calc((100vw - 1180px)/2))!important;width:42%!important;max-width:550px!important;top:50%!important;transform:translateY(-48%)!important}
.hero-copy h1{font-size:36px!important;line-height:1.55!important}.hero-copy h2{font-size:24px!important}.hero-copy p{font-size:14px!important;max-width:510px!important}
.hero-actions{gap:12px!important}.hero-primary,.hero-secondary{min-height:44px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important}
.r21p5-role-wrap{padding-top:36px!important}
.r21p5-role-grid{gap:24px!important}
.r21p5-role-card{min-height:244px!important;overflow:hidden!important;padding:0 16px 17px!important}
.r21p5-role-card img{display:block!important;width:calc(100% + 32px)!important;height:142px!important;margin:0 -16px 10px!important;object-fit:contain!important;object-position:center!important;border-radius:14px 14px 24px 24px!important;background:transparent!important;image-rendering:auto!important}
.r21p5-role-card h3{font-size:16px!important;margin-top:2px!important}.r21p5-role-card p{font-size:10px!important;line-height:1.7!important}
@media(max-width:980px){.r21p5-hero .hero-student-p7{left:16px!important;height:315px!important;bottom:-70px!important}.hero-copy{right:30px!important;width:50%!important}.hero-copy h1{font-size:31px!important}}
@media(max-width:760px){.r21p5-hero{height:470px!important}.r21p5-hero .hero-campus{object-position:center 15%!important}.r21p5-hero .hero-atmosphere{background:linear-gradient(180deg,rgba(3,18,32,.03) 0%,rgba(3,18,32,.25) 38%,rgba(3,18,32,.88) 72%,rgba(3,18,32,.96) 100%)!important}.r21p5-hero .hero-student-p7{height:235px!important;left:50%!important;bottom:-62px!important;transform:translateX(-50%)!important;opacity:.95!important}.hero-copy{right:20px!important;left:20px!important;top:auto!important;bottom:92px!important;transform:none!important;width:auto!important;text-align:center!important}.hero-copy h1{font-size:26px!important}.hero-copy h2{font-size:19px!important}.hero-copy p{font-size:12px!important;margin-inline:auto!important}.hero-actions{justify-content:center!important}.r21p5-role-card img{height:118px!important}}
\n\n/* === R21-P12 — EXACT REFERENCE COMPOSITION / ASSET QUALITY LOCK === */
body.r21p5-public{background:#fff!important;color:#182f43!important}
.r21p5-header{height:70px!important;position:relative!important;top:auto!important;padding-inline:max(28px,calc((100vw - 1180px)/2))!important;background:#071b2f!important}
.r21p5-hero{height:410px!important;background:#081c30!important;position:relative!important;overflow:hidden!important}
.r21p5-hero .hero-campus{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 42%!important;filter:none!important;z-index:1!important}
.r21p5-hero .hero-atmosphere{position:absolute!important;inset:0!important;z-index:2!important;background:linear-gradient(90deg,rgba(5,21,37,.08) 0%,rgba(5,21,37,.02) 48%,rgba(5,21,37,.20) 100%)!important}
.r21p5-hero .hero-student,.r21p5-hero .hero-student-p7,.hero-handwriting{display:none!important}
.hero-copy{z-index:5!important;right:max(34px,calc((100vw - 1180px)/2))!important;top:auto!important;bottom:24px!important;transform:none!important;width:min(470px,44%)!important;padding:18px 20px!important;border:1px solid rgba(255,255,255,.18)!important;border-radius:14px!important;background:rgba(5,24,42,.78)!important;backdrop-filter:blur(6px)!important;box-shadow:0 12px 28px rgba(0,0,0,.16)!important}
.hero-kicker{font-size:10px!important;margin:0 0 4px!important;color:#f3c96b!important}.hero-copy h1{font-size:27px!important;line-height:1.4!important;margin:0!important;color:#fff!important;text-shadow:none!important}.hero-copy h2{font-size:16px!important;line-height:1.6!important;margin:3px 0 4px!important;color:#f7f9fb!important}.hero-copy p{font-size:11px!important;margin:0 0 11px!important;color:#dfe8ef!important}.hero-primary,.hero-secondary{min-height:38px!important;padding:7px 14px!important;font-size:11px!important;border-radius:8px!important}.hero-primary{background:#f2c761!important;color:#18304a!important}
.r21p5-role-wrap{padding:28px 28px 34px!important}.r21p5-role-wrap:before{height:25px!important;top:-13px!important}.r21p5-role-grid{max-width:1180px!important;gap:27px!important}
.r21p5-role-card{min-height:255px!important;border-radius:14px!important;padding:0 16px 17px!important;box-shadow:0 10px 0 rgba(31,66,91,.05),0 20px 32px rgba(22,58,82,.14)!important}
.r21p5-role-card img{width:calc(100% + 32px)!important;height:151px!important;margin:0 -16px 11px!important;object-fit:cover!important;object-position:center!important;border-radius:14px 14px 24px 24px!important;background:transparent!important;image-rendering:auto!important}
.r21p5-role-card h3{font-size:16px!important;color:#102e47!important;margin:3px 0 2px!important}.r21p5-role-card p{font-size:10px!important;color:#607485!important;line-height:1.7!important}
.r21p5-services{max-width:1180px!important;margin:8px auto 34px!important;border-radius:10px!important;box-shadow:0 8px 25px rgba(18,49,69,.07)!important}.r21p5-services a{min-height:132px!important;padding:19px 10px 12px!important}.r21p5-services b{font-size:12px!important;color:#102e47!important}.r21p5-services small{font-size:9px!important;color:#74828d!important}
.r21p5-mid{max-width:1180px!important;margin:0 auto 34px!important;grid-template-columns:1.55fr 1fr!important;gap:24px!important}.r21p5-school-story{height:315px!important;border-radius:12px!important;grid-template-columns:1.08fr .92fr!important}.story-photo img{object-fit:cover!important;object-position:center!important;filter:none!important}.story-copy{background:linear-gradient(135deg,#0c2d49,#071a2d)!important}.story-copy h2{font-size:27px!important}.story-copy p{font-size:11px!important;color:#e2eaf0!important}.r21p5-news{border-radius:12px!important;min-height:315px!important}.news-placeholder{background:#f5f7f8!important;border-radius:10px!important;padding:20px!important;margin-top:12px!important}
.r21p5-quote .quote-bg{background:linear-gradient(90deg,rgba(7,19,31,.18),rgba(4,14,24,.72));filter:none!important}.r21p5-why{max-width:1180px!important}.why-content{background:#f6f8f9!important}.why-content h2,.why-grid b{color:#102e47!important}.why-grid small{color:#6f7f8a!important}
.r21p5-system-highlights{max-width:1180px!important}.r21p5-system-highlights article{min-height:135px!important;border-radius:12px!important;background:#fff!important;box-shadow:0 8px 24px rgba(18,49,69,.06)!important}.r21p5-system-highlights b{color:#102e47!important}.r21p5-system-highlights p{color:#667987!important}
@media(max-width:980px){.hero-copy{right:28px!important;width:48%!important}.r21p5-role-grid{gap:14px!important}.r21p5-role-card img{height:130px!important}}
@media(max-width:760px){.r21p5-header{position:relative!important}.r21p5-hero{height:390px!important}.r21p5-hero .hero-campus{object-position:center 44%!important}.r21p5-hero .hero-atmosphere{background:linear-gradient(180deg,rgba(5,21,37,.03) 0%,rgba(5,21,37,.08) 52%,rgba(5,21,37,.65) 100%)!important}.hero-copy{right:16px!important;left:16px!important;width:auto!important;bottom:16px!important;text-align:center!important;padding:14px 15px!important}.hero-copy h1{font-size:22px!important}.hero-copy h2{font-size:14px!important}.hero-actions{justify-content:center!important}.r21p5-role-grid{grid-template-columns:repeat(2,1fr)!important;gap:12px!important}.r21p5-role-card{min-height:215px!important}.r21p5-role-card img{height:118px!important}.r21p5-mid,.r21p5-why{grid-template-columns:1fr!important}.r21p5-school-story{grid-template-columns:1fr!important;height:auto!important}.story-photo{height:230px!important}.r21p5-news{min-height:auto!important}}

/* === R21-P12 LAUNCH CANDIDATE — approved reference lock === */
.r21p5-quote .quote-bg{background:linear-gradient(135deg,#0a2037,#102f4e 58%,#173b5d)!important;filter:none!important}
.r21p5-quote{background:#0a2037!important}
.story-slideshow{position:relative!important;overflow:hidden!important;background:#dfe7ec!important}
.story-slideshow .story-slide{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;opacity:0!important;transition:opacity .85s ease!important}
.story-slideshow .story-slide.active{opacity:1!important}
.r21p5-role-card.manager img{filter:saturate(.94) contrast(1.02)!important}
@media(max-width:760px){
  .r21p5-header{position:relative!important;top:auto!important}
  .r21p5-hero{height:420px!important}
  .r21p5-role-wrap{padding:24px 14px 28px!important}
  .r21p5-role-grid{grid-template-columns:1fr 1fr!important;gap:10px!important}
  .r21p5-role-card{min-height:196px!important;padding:0 12px 12px!important}
  .r21p5-role-card img{height:108px!important;width:calc(100% + 24px)!important;margin:0 -12px 8px!important}
  .r21p5-services{margin-inline:14px!important;grid-template-columns:1fr 1fr!important}
  .r21p5-mid,.r21p5-why,.r21p5-system-highlights{margin-inline:14px!important}
  .r21p5-mid{gap:14px!important}
  .r21p5-school-story{grid-template-columns:1fr!important}
  .story-photo{height:220px!important}
  .r21p5-why{grid-template-columns:1fr!important}
}
@media(max-width:430px){
  .r21p5-role-grid{grid-template-columns:1fr 1fr!important}
  .r21p5-role-card h3{font-size:13px!important}
  .r21p5-role-card p{font-size:9px!important}
  .r21p5-services a{min-height:118px!important;padding:15px 8px!important}
}
/* mask the tiny unwanted jacket emblem in the approved management artwork */

@media(max-width:760px){}

/* === R21-P12: larger rotating school story + clearer security center === */
.r21p5-mid{grid-template-columns:minmax(0,1.82fr) minmax(285px,.82fr)!important;gap:26px!important}
.r21p5-school-story{height:365px!important;grid-template-columns:minmax(0,1.34fr) minmax(300px,.86fr)!important}
.story-photo{min-width:0!important;height:365px!important;overflow:hidden!important}
.story-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important}
.story-copy{padding:38px 34px!important}
.story-copy span{font-size:11.5px!important}
.story-copy h2{font-size:31px!important;line-height:1.65!important;margin:15px 0 12px!important}
.story-copy p{font-size:12.8px!important;line-height:2.05!important}
.story-copy a{font-size:11.5px!important;padding:8px 14px!important}
.r21p5-news{min-height:365px!important}
.security-alert-panel{margin-top:18px!important;border:1px solid rgba(251,191,36,.2)!important;background:linear-gradient(145deg,rgba(255,255,255,.11),rgba(255,255,255,.055))!important}
.security-alert-panel .panel-head{margin-bottom:14px!important}
.security-event{display:inline-flex;padding:5px 9px;border-radius:999px;background:rgba(56,189,248,.10);border:1px solid rgba(56,189,248,.18);font-weight:800}
.security-sev-critical td{background:rgba(244,63,94,.055)!important}.security-sev-high td{background:rgba(249,115,22,.045)!important}.security-sev-warning td{background:rgba(234,179,8,.035)!important}
@media(max-width:980px){.r21p5-mid{grid-template-columns:1.45fr .9fr!important}.r21p5-school-story{height:345px!important;grid-template-columns:1.25fr .9fr!important}.story-photo{height:345px!important}.story-copy h2{font-size:28px!important}.story-copy p{font-size:12px!important}.r21p5-news{min-height:345px!important}}
@media(max-width:760px){.r21p5-mid{grid-template-columns:1fr!important}.r21p5-school-story{height:auto!important;grid-template-columns:1fr!important}.story-photo{height:250px!important}.story-copy{padding:26px 22px!important}.story-copy h2{font-size:26px!important}.story-copy p{font-size:13px!important}.r21p5-news{min-height:auto!important}}


/* === R21-P12 homepage image clarity + dynamic gallery === */
.r21p5-role-card img{image-rendering:auto!important;filter:none!important}
.r21p5-role-card{isolation:isolate}.r21p5-role-card:after{content:"";position:absolute;inset:0;border-radius:inherit;box-shadow:inset 0 1px 0 rgba(255,255,255,.9);pointer-events:none}
.r21p12-photo-gallery{max-width:1180px;margin:0 auto 34px;padding:22px;border-radius:16px;background:linear-gradient(145deg,#f7fafc,#eef4f7);border:1px solid #e2ebf0;box-shadow:0 12px 30px rgba(18,49,69,.07)}
.r21p12-photo-gallery.hidden{display:none}.r21p12-photo-gallery>header{display:flex;align-items:end;justify-content:space-between;gap:24px;margin-bottom:16px}.r21p12-photo-gallery>header span{font-size:10px;font-weight:900;color:#b98526}.r21p12-photo-gallery h2{margin:4px 0 0;font-size:22px;color:#102e47}.r21p12-photo-gallery>header small{font-size:10px;color:#74828d}.r21p12-gallery-grid{display:grid;grid-template-columns:1.45fr 1fr 1fr;grid-auto-rows:220px;gap:12px}.r21p12-gallery-card{position:relative;overflow:hidden;border-radius:14px;background:#dfe8ed}.r21p12-gallery-card:first-child{grid-row:span 2}.r21p12-gallery-card img{width:100%;height:100%;object-fit:cover;display:block}.r21p12-gallery-card figcaption{position:absolute;right:0;left:0;bottom:0;padding:28px 14px 12px;background:linear-gradient(transparent,rgba(3,20,34,.82));color:#fff}.r21p12-gallery-card b{display:block;font-size:13px}.r21p12-gallery-card small{font-size:9px;opacity:.88}.story-photo>img{width:100%;height:100%;object-fit:cover;display:block}
@media(max-width:760px){.r21p12-photo-gallery{margin-inline:14px;padding:14px}.r21p12-photo-gallery>header{display:block}.r21p12-photo-gallery>header small{display:block;margin-top:5px}.r21p12-gallery-grid{grid-template-columns:1fr 1fr;grid-auto-rows:150px}.r21p12-gallery-card:first-child{grid-column:1/-1;grid-row:auto;height:210px}.r21p12-photo-gallery h2{font-size:17px}}

/* manager homepage-image control */
.home-image-control{display:grid;gap:14px}.hero-lock-preview{border:1px solid #dbe6ed;border-radius:14px;overflow:hidden;background:#f6f9fb}.hero-lock-preview img{width:100%;height:180px;object-fit:cover;display:block}.hero-lock-preview div{padding:12px 14px}.hero-lock-preview b{display:block;color:#11314a}.hero-lock-preview span{font-size:10px;color:#718391}.image-slot-explainer{display:grid;grid-template-columns:1fr 1fr;gap:10px}.image-slot-explainer article{padding:12px;border:1px solid #e1e9ee;border-radius:12px;background:#fff}.image-slot-explainer b{display:block;color:#15344c;margin-bottom:3px}.image-slot-explainer small{color:#718391}.upload-preview-box{min-height:160px;border:1px dashed #b9cbd7;border-radius:12px;background:#f8fbfc;display:grid;place-items:center;overflow:hidden}.upload-preview-box img{width:100%;height:210px;object-fit:cover;display:block}.upload-preview-box span{font-size:11px;color:#748591}.gallery-slot-badge{display:inline-flex;padding:3px 8px;border-radius:999px;background:#edf4f8;color:#335d78;font-size:9px;margin-top:4px}
@media(max-width:760px){.image-slot-explainer{grid-template-columns:1fr}}

/* === R21-P14 — HERO COPY OUTSIDE IMAGE + MOBILE VIEWPORT FIX === */
body.r21p5-public,
body.r21p5-public main{
  width:100%!important;
  max-width:100%!important;
  min-width:0!important;
  overflow-x:clip!important;
}
body.r21p5-public img{max-width:100%}

/* Keep the approved hero artwork untouched and move the information card below it. */
.r21p5-hero{
  display:grid!important;
  grid-template-columns:1fr!important;
  grid-template-rows:auto auto!important;
  height:auto!important;
  min-height:0!important;
  overflow:visible!important;
  background:#fff!important;
  border-bottom:0!important;
}
.r21p5-hero .hero-campus{
  position:relative!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:1!important;
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:none!important;
  aspect-ratio:auto!important;
  object-fit:contain!important;
  object-position:center!important;
  background:#081c30!important;
  z-index:1!important;
}
.r21p5-hero .hero-atmosphere{
  position:relative!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:1!important;
  width:100%!important;
  height:100%!important;
  z-index:2!important;
  pointer-events:none!important;
  background:linear-gradient(90deg,rgba(5,21,37,.02),rgba(5,21,37,.01) 55%,rgba(5,21,37,.10))!important;
}
.r21p5-hero .hero-copy{
  position:relative!important;
  inset:auto!important;
  grid-column:1!important;
  grid-row:2!important;
  transform:none!important;
  width:min(470px,calc(100% - 56px))!important;
  max-width:470px!important;
  margin:14px max(28px,calc((100vw - 1180px)/2)) 4px auto!important;
  padding:16px 18px!important;
  text-align:right!important;
  border-radius:14px!important;
  border:1px solid #173957!important;
  background:linear-gradient(145deg,#0b2945,#071b2f)!important;
  box-shadow:0 10px 26px rgba(16,49,73,.14)!important;
  backdrop-filter:none!important;
  z-index:5!important;
}
.r21p5-hero .hero-kicker{font-size:9px!important}
.r21p5-hero .hero-copy h1{font-size:23px!important;line-height:1.45!important}
.r21p5-hero .hero-copy h2{font-size:14px!important;line-height:1.65!important}
.r21p5-hero .hero-copy p{font-size:10.5px!important;line-height:1.8!important;margin-bottom:9px!important}
.r21p5-hero .hero-actions{justify-content:flex-start!important;gap:8px!important;flex-wrap:wrap!important}
.r21p5-hero .hero-primary,.r21p5-hero .hero-secondary{min-height:34px!important;padding:6px 12px!important;font-size:10px!important}

/* The role area now starts cleanly after the hero information card. */
.r21p5-role-wrap{padding-top:22px!important}
.r21p5-role-wrap:before{display:none!important}

@media(max-width:760px){
  html,body.r21p5-public{width:100%!important;max-width:100%!important;overflow-x:hidden!important}
  body.r21p5-public main,
  .r21p5-header,
  .r21p5-hero,
  .r21p5-role-wrap,
  .r21p5-services,
  .r21p5-mid,
  .r21p5-why,
  .r21p5-system-highlights,
  .r21p12-photo-gallery,
  .r21p5-footer{
    min-width:0!important;
    max-width:100%!important;
  }
  .r21p5-header{
    width:100%!important;
    height:64px!important;
    padding-inline:10px!important;
    gap:8px!important;
  }
  .r21p5-brand{min-width:0!important;max-width:calc(100% - 86px)!important;gap:8px!important}
  .r21p5-brand img{width:40px!important;height:40px!important;flex:0 0 auto!important}
  .r21p5-brand span{min-width:0!important;overflow:hidden!important}
  .r21p5-brand b{font-size:10.5px!important;line-height:1.45!important;white-space:normal!important}
  .r21p5-brand small{font-size:8.5px!important}
  .r21p5-header-tools{min-width:70px!important;gap:4px!important;flex:0 0 auto!important}
  .r21p5-header-tools .icon-btn{width:32px!important;min-width:32px!important;height:32px!important;font-size:16px!important}

  .r21p5-hero{width:100%!important;margin:0!important}
  .r21p5-hero .hero-campus{
    width:100%!important;
    height:auto!important;
    object-fit:contain!important;
    object-position:center!important;
  }
  .r21p5-hero .hero-atmosphere{background:linear-gradient(180deg,rgba(5,21,37,.01),rgba(5,21,37,.08))!important}
  .r21p5-hero .hero-copy{
    width:calc(100% - 28px)!important;
    max-width:none!important;
    margin:10px 14px 0!important;
    padding:13px 14px!important;
    text-align:center!important;
    border-radius:12px!important;
  }
  .r21p5-hero .hero-kicker{display:block!important;font-size:8.5px!important;margin-bottom:3px!important}
  .r21p5-hero .hero-copy h1{font-size:20px!important}
  .r21p5-hero .hero-copy h2{font-size:13px!important;margin:2px 0 3px!important}
  .r21p5-hero .hero-copy p{display:block!important;font-size:9.5px!important;line-height:1.7!important;margin:0 0 8px!important}
  .r21p5-hero .hero-actions{justify-content:center!important}

  .r21p5-role-wrap{width:100%!important;padding:18px 12px 24px!important}
  .r21p5-role-grid{width:100%!important;max-width:100%!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important}
  .r21p5-role-card{width:100%!important;min-width:0!important;min-height:188px!important;padding:0 10px 12px!important}
  .r21p5-role-card img{width:calc(100% + 20px)!important;height:auto!important;aspect-ratio:190/132!important;margin:0 -10px 8px!important;object-fit:cover!important}
  .r21p5-role-card h3{font-size:13px!important;line-height:1.55!important}
  .r21p5-role-card p{font-size:8.5px!important;line-height:1.6!important}

  .r21p5-services{width:calc(100% - 24px)!important;margin:6px 12px 24px!important;grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .r21p5-mid,.r21p5-why,.r21p5-system-highlights{width:calc(100% - 24px)!important;margin-left:12px!important;margin-right:12px!important}
  .r21p12-photo-gallery{width:calc(100% - 24px)!important;margin-left:12px!important;margin-right:12px!important}
}

@media(max-width:430px){
  .r21p5-header{padding-inline:8px!important}
  .r21p5-brand b{font-size:10px!important}
  .r21p5-hero .hero-copy{width:calc(100% - 20px)!important;margin:8px 10px 0!important;padding:12px!important}
  .r21p5-hero .hero-copy h1{font-size:19px!important}
  .r21p5-hero .hero-copy h2{font-size:12.5px!important}
  .r21p5-hero .hero-copy p{font-size:9px!important}
  .r21p5-role-wrap{padding-inline:10px!important}
  .r21p5-role-grid{gap:8px!important}
  .r21p5-role-card{min-height:176px!important}
  .r21p5-services{width:calc(100% - 20px)!important;margin-inline:10px!important}
  .r21p5-mid,.r21p5-why,.r21p5-system-highlights,.r21p12-photo-gallery{width:calc(100% - 20px)!important;margin-left:10px!important;margin-right:10px!important}
}

/* === R21-P15 — daily intelligence, left news rail, event theme === */
:root{--daily-accent:#0f5f87;--daily-accent2:#0a3554;--daily-soft:#edf6fa}
.r21p15-occasion-bar{max-width:1180px;margin:12px auto 18px;padding:11px 16px;border:1px solid color-mix(in srgb,var(--daily-accent) 22%,#dbe7ed);border-radius:14px;background:linear-gradient(90deg,var(--daily-soft),#fff);display:flex;align-items:center;gap:11px;box-shadow:0 8px 20px rgba(24,57,78,.06)}
.r21p15-occasion-bar .occasion-dot{width:10px;height:10px;border-radius:50%;background:var(--daily-accent);box-shadow:0 0 0 5px color-mix(in srgb,var(--daily-accent) 14%,transparent)}
.r21p15-occasion-bar div{display:grid;gap:1px}.r21p15-occasion-bar small{font-size:9px;color:#6a7b87}.r21p15-occasion-bar b{font-size:13px;color:var(--daily-accent2)}.r21p15-occasion-bar time{margin-right:auto;font-size:11px;font-weight:800;color:var(--daily-accent)}
.r21p15-home-grid{direction:ltr!important;grid-template-columns:minmax(300px,.82fr) minmax(0,1.82fr)!important;align-items:stretch!important}.r21p15-home-grid>*{direction:rtl!important}
.r21p15-info-rail{display:grid;grid-template-rows:auto auto;gap:14px;min-width:0}
.r21p15-news-table{min-height:0!important;padding:0!important;overflow:hidden!important}.r21p15-news-table>header{padding:15px 16px 12px!important;background:#fff}.r21p15-news-table>header div{display:grid}.r21p15-news-table>header small{font-size:8.5px;color:var(--daily-accent);font-weight:900}.r21p15-news-table>header h2{font-size:19px!important}.r21p15-online-news{display:grid;border-top:1px solid #edf1f3}.r21p15-news-row{display:grid;grid-template-columns:24px minmax(0,1fr) 18px;gap:8px;align-items:center;padding:10px 12px;border-bottom:1px solid #eef2f4;text-decoration:none;background:#fff;transition:.18s}.r21p15-news-row:hover{background:var(--daily-soft)}.r21p15-news-row .news-index{display:grid;place-items:center;width:22px;height:22px;border-radius:8px;background:var(--daily-soft);color:var(--daily-accent);font-size:9px;font-weight:900}.r21p15-news-row div{min-width:0}.r21p15-news-row b{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;font-size:10.5px;line-height:1.65;color:#16344c}.r21p15-news-row small{display:block;margin-top:2px;font-size:8px;color:#7a8994}.r21p15-news-row i{font-style:normal;color:var(--daily-accent);font-size:12px}.r21p15-school-events-head{padding:10px 14px 6px;background:#f8fafb;border-top:1px solid #edf1f3}.r21p15-school-events-head b{font-size:10px;color:#455c6c}.r21p15-news-table .r21p5-news-list{padding:0 14px 9px;background:#f8fafb}.r21p15-news-table .r21p5-news-list article{padding:8px 0!important}.r21p15-news-table .r21p5-news-list article time{font-size:8px;color:var(--daily-accent)}.r21p15-news-table .r21p5-news-list article b{font-size:9.5px}.r21p15-news-table .r21p5-news-list article p{font-size:8.5px;margin:2px 0 0;color:#6c7b85}
.r21p15-psych-card{padding:15px 16px;border-radius:14px;background:linear-gradient(145deg,var(--daily-accent2),#071a2d);color:white;box-shadow:0 10px 28px rgba(14,45,67,.15)}.r21p15-psych-card header{display:flex;justify-content:space-between;gap:10px;align-items:center}.r21p15-psych-card header span{font-size:8px;opacity:.72}.r21p15-psych-card header b{font-size:10px}.r21p15-psych-card h3{font-size:14px;margin:12px 0 6px;color:#fff}.r21p15-psych-card p{font-size:10px;line-height:1.9;color:#e9f1f6;margin:0}.r21p15-psych-card a{display:inline-flex;margin-top:10px;color:#fff;border:1px solid rgba(255,255,255,.26);border-radius:999px;padding:5px 9px;font-size:8px;text-decoration:none}
.r21p15-home-grid .r21p5-school-story{height:auto!important;min-height:365px!important}.r21p15-home-grid .story-photo{min-height:365px!important}.r21p15-home-grid .story-photo img{width:100%!important;height:100%!important;object-fit:cover!important}
.r21p15-social{display:flex!important;gap:7px!important;justify-content:flex-end}.r21p15-social.hidden{display:none!important}.r21p15-social a{display:inline-grid;place-items:center;min-width:42px;height:30px;padding:0 9px;border-radius:9px;background:#0f2d47;color:#fff!important;text-decoration:none;font-size:9px;font-weight:900;border:1px solid rgba(255,255,255,.12)}.r21p15-social a:hover{background:var(--daily-accent)}
body[data-day-theme] .r21p5-header{border-bottom:2px solid var(--daily-accent)!important}body[data-day-theme] .portal-pill{background:var(--daily-accent)!important;border-color:var(--daily-accent)!important}body[data-day-theme] .r21p5-services a:hover{border-color:color-mix(in srgb,var(--daily-accent) 32%,#e7edef)!important}

/* manager-only birthday alert */
.birthday-manager-alert{display:none;margin:0 0 18px;padding:14px 16px;border-radius:14px;border:1px solid #efd8a7;background:linear-gradient(90deg,#fff8e7,#fff);box-shadow:0 7px 20px rgba(132,90,15,.07)}.birthday-manager-alert.show{display:flex;gap:13px;align-items:flex-start}.birthday-manager-alert>span{font-size:24px}.birthday-manager-alert h3{margin:0 0 4px;font-size:14px;color:#6e4810}.birthday-manager-alert p{margin:0;font-size:10px;line-height:1.8;color:#775e38}.birthday-manager-alert .birthday-list{display:flex;gap:6px;flex-wrap:wrap;margin-top:7px}.birthday-manager-alert .birthday-list i{font-style:normal;padding:4px 8px;border-radius:999px;background:#fff;border:1px solid #efd8a7;font-size:9px;color:#6e4810}

/* icon emphasis in UI without changing the approved artwork itself */
.r21p5-brand img,.footer-brand img,.school-brand .brandmark{filter:drop-shadow(0 0 7px rgba(78,214,237,.36)) drop-shadow(0 3px 8px rgba(2,20,36,.22))}.r21p5-brand img,.footer-brand img{transform:scale(1.08)}

@media(max-width:980px){.r21p15-home-grid{grid-template-columns:minmax(260px,.82fr) minmax(0,1.4fr)!important}.r21p15-home-grid .r21p5-school-story{grid-template-columns:1fr!important}.r21p15-home-grid .story-photo{height:270px!important;min-height:270px!important}}
@media(max-width:760px){.r21p15-occasion-bar{width:calc(100% - 24px);margin:10px 12px 15px;padding:10px 12px}.r21p15-occasion-bar b{font-size:11px}.r21p15-occasion-bar time{font-size:9px}.r21p15-home-grid{direction:rtl!important;grid-template-columns:1fr!important;display:grid!important}.r21p15-home-grid .r21p5-school-story{order:1!important;min-height:0!important}.r21p15-info-rail{order:2!important}.r21p15-home-grid .story-photo{height:230px!important;min-height:230px!important}.r21p15-news-row b{font-size:11px}.r21p15-news-table>header h2{font-size:18px!important}.r21p15-social{justify-content:center!important;flex-wrap:wrap}.r21p15-psych-card p{font-size:11px}.birthday-manager-alert.show{display:grid;grid-template-columns:auto 1fr}}

/* === R21-P16 — upload certainty + conservative card clarity === */
.r21p5-role-card img{image-rendering:auto;filter:contrast(1.035) saturate(1.025);backface-visibility:hidden;transform:translateZ(0)}
.upload-success-note{display:block;margin-top:8px;color:#15734b;font-size:11px;font-weight:900}
.private-photo .gallery-slot-badge{font-weight:900}


/* === R21-P18-RC2 — manager topbar alignment + single wide homepage story image === */
@font-face{font-family:"AndishehUI";src:url('/static/fonts/NotoSansArabic-Regular.ttf') format('truetype');font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"AndishehUI";src:url('/static/fonts/NotoSansArabic-Bold.ttf') format('truetype');font-weight:700 900;font-style:normal;font-display:swap}
body,.r21p5-public,.app-shell,.main-area,button,input,select,textarea{font-family:"AndishehUI",Tahoma,"Segoe UI",Arial,sans-serif!important}

/* Manager top action cards: stable placement at 100% zoom */
.topbar{display:flex!important;align-items:center!important;gap:14px!important;overflow:visible!important}
.top-context{flex:0 0 190px!important;min-width:190px!important;max-width:220px!important}
.top-context h2{font-size:22px!important;line-height:1.45!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
.top-actions{display:flex!important;align-items:center!important;justify-content:flex-start!important;gap:8px!important;flex:1 1 auto!important;min-width:0!important;flex-wrap:wrap!important}
.top-actions>*{flex:0 0 auto!important}
.quick-open{min-width:190px!important}
.role-chip{min-width:130px!important}
.top-action-card{min-width:96px!important;justify-content:center!important}
@media(max-width:1240px){.top-context{flex-basis:160px!important;min-width:160px!important}.top-context h2{font-size:19px!important}.quick-open{min-width:160px!important}.top-action-card{min-width:74px!important;padding-inline:9px!important}.top-actions{gap:6px!important}}
@media(max-width:1050px){.topbar{flex-wrap:wrap!important}.top-context{order:1!important;flex:1 1 180px!important}.top-actions{order:2!important;flex:1 1 100%!important}.menu-btn{order:0!important}.top-action-card{min-width:44px!important}}
@media(max-width:720px){.topbar{gap:8px!important}.top-context{min-width:0!important;flex:1 1 auto!important}.top-context h2{font-size:17px!important}.top-actions{overflow-x:auto!important;flex-wrap:nowrap!important;padding-bottom:3px!important;scrollbar-width:none}.top-actions::-webkit-scrollbar{display:none}.top-actions .jalali-top-date{display:inline-flex!important}.top-action-card{min-width:44px!important}}

/* One wide visual story card; no separate lower gallery */
.r21p15-home-grid{grid-template-columns:minmax(280px,.78fr) minmax(0,1.95fr)!important;gap:22px!important}
.r21p17-wide-story{position:relative!important;display:block!important;height:390px!important;min-height:390px!important;overflow:hidden!important;border-radius:16px!important;background:#0a2b46!important;isolation:isolate!important}
.r21p17-wide-story .story-photo{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:0!important;z-index:0!important}
.r21p17-wide-story .story-photo img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important;display:block!important;filter:none!important}
.r21p17-wide-story .story-shade{position:absolute!important;inset:0!important;z-index:1!important;background:linear-gradient(90deg,rgba(5,25,43,.05) 0%,rgba(5,25,43,.12) 42%,rgba(5,25,43,.84) 72%,rgba(5,25,43,.96) 100%)!important;pointer-events:none!important}
.r21p17-wide-story .story-copy{position:absolute!important;z-index:2!important;right:0!important;top:0!important;bottom:0!important;width:min(42%,390px)!important;display:flex!important;flex-direction:column!important;justify-content:center!important;align-items:flex-start!important;padding:34px 34px!important;background:transparent!important;color:#fff!important;overflow:visible!important}
.r21p17-wide-story .story-copy span{color:#f4d178!important;border-color:rgba(255,255,255,.32)!important}
.r21p17-wide-story .story-copy h2{font-size:clamp(25px,2.4vw,34px)!important;line-height:1.65!important;margin:14px 0 10px!important;color:#fff!important;white-space:normal!important;word-break:normal!important;overflow:visible!important}
.r21p17-wide-story .story-copy p{font-size:12.5px!important;line-height:2!important;color:#edf4f8!important;display:block!important;max-height:none!important;overflow:visible!important;margin:0 0 14px!important}
.r21p17-wide-story .story-copy a{color:#fff!important;border-color:rgba(255,255,255,.46)!important;background:rgba(7,30,50,.34)!important;backdrop-filter:blur(6px)!important}
#photo-gallery{display:none!important}

/* Manager: one explicit image target, wide preview */
.home-image-control .image-slot-explainer.single-slot{grid-template-columns:1fr!important}
.home-image-control .image-slot-explainer.single-slot article{background:#f4f9fc!important;border-color:#d7e5ee!important}
.home-image-control .upload-preview-box{aspect-ratio:16/7!important;min-height:0!important}
.home-image-control .upload-preview-box img{width:100%!important;height:100%!important;object-fit:cover!important}
.home-image-control .private-photo-grid{grid-template-columns:1fr!important}
.home-image-control .private-photo{display:grid!important;grid-template-columns:minmax(0,1.8fr) minmax(220px,.7fr)!important;min-height:220px!important}
.home-image-control .private-photo img{width:100%!important;height:220px!important;object-fit:cover!important}

@media(max-width:980px){.r21p15-home-grid{grid-template-columns:1fr!important}.r21p17-wide-story{height:360px!important;min-height:360px!important}.r21p17-wide-story .story-copy{width:min(50%,380px)!important}}
@media(max-width:760px){.r21p17-wide-story{height:420px!important;min-height:420px!important}.r21p17-wide-story .story-shade{background:linear-gradient(180deg,rgba(5,25,43,.03) 0%,rgba(5,25,43,.20) 45%,rgba(5,25,43,.93) 72%,rgba(5,25,43,.98) 100%)!important}.r21p17-wide-story .story-copy{right:18px!important;left:18px!important;top:auto!important;bottom:12px!important;width:auto!important;height:auto!important;padding:20px 16px!important;align-items:center!important;text-align:center!important}.r21p17-wide-story .story-copy h2{font-size:25px!important;line-height:1.55!important;margin:8px 0!important}.r21p17-wide-story .story-copy p{font-size:12px!important;line-height:1.9!important}.home-image-control .private-photo{grid-template-columns:1fr!important}.home-image-control .private-photo img{height:190px!important}}

/* === R22-FINAL-RC4 — scalable role-card vectors === */
.r21p5-role-card img{image-rendering:auto!important;object-fit:contain!important;background:transparent!important}

/* === R22-FINAL-RC4 — approved photographic role cards === */
.r21p5-role-card img{object-fit:cover!important;object-position:center 32%!important;background:#eef4f7!important;filter:none!important}
.r21p5-role-card.parent img{object-position:center 38%!important}
.r21p5-role-card.teacher img{object-position:center 34%!important}
.r21p5-role-card.manager img{object-position:center 38%!important}
.r21p5-role-card.finance img{object-position:center 45%!important}

/* R22 FINAL photographic 3D role cards */
.r21p5-role-wrap{padding:34px 30px 38px;background:radial-gradient(circle at 50% -20%,rgba(39,91,126,.09),transparent 38%),linear-gradient(180deg,#fff,#f7fafc)}
.r21p5-role-grid{perspective:1400px;gap:22px;align-items:stretch}
.r21p5-role-card{min-height:286px;padding:0;border-radius:20px;background:#fff!important;border:1px solid rgba(28,62,86,.10);box-shadow:0 2px 2px rgba(17,41,58,.04),0 12px 28px rgba(28,62,86,.12),0 30px 55px rgba(28,62,86,.09);transform-style:preserve-3d;transition:transform .26s cubic-bezier(.2,.7,.2,1),box-shadow .26s ease,border-color .26s ease;isolation:isolate}
.r21p5-role-card:before{z-index:2;background:linear-gradient(180deg,rgba(255,255,255,.02) 25%,rgba(5,27,43,.06))}
.r21p5-role-card:after{content:"";position:absolute;inset:auto 14px 11px;height:7px;border-radius:100%;background:rgba(19,48,69,.13);filter:blur(7px);transform:translateZ(-20px);z-index:-1}
.r21p5-role-card:hover,.r21p5-role-card:focus-visible{transform:translateY(-9px) rotateX(1.4deg) scale(1.018);border-color:rgba(42,101,140,.25);box-shadow:0 4px 3px rgba(17,41,58,.04),0 20px 34px rgba(28,62,86,.16),0 42px 72px rgba(28,62,86,.12);outline:none}
.r21p5-role-card img{width:100%;height:176px;object-fit:cover;object-position:center 35%;margin:0;border-radius:19px 19px 0 0;display:block;filter:saturate(.93) contrast(1.02);transform:translateZ(18px)}
.r21p5-role-card h3{z-index:3;margin:15px 16px 3px;font-size:15px;line-height:1.7;color:#15344c;transform:translateZ(24px)}
.r21p5-role-card p{z-index:3;margin:0 16px 18px;padding-left:28px;color:#667b8b;font-size:9.5px;line-height:1.85;transform:translateZ(20px)}
.r21p5-role-card>span{z-index:4;left:16px;bottom:17px;width:28px;height:28px;box-shadow:0 7px 14px rgba(24,60,85,.18);transform:translateZ(28px)}
@media(max-width:980px){.r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr));direction:rtl}.r21p5-role-card{min-height:270px}}
@media(max-width:560px){.r21p5-role-wrap{padding:24px 14px 30px}.r21p5-role-grid{grid-template-columns:1fr;gap:16px}.r21p5-role-card{min-height:0}.r21p5-role-card img{height:220px}}
@media(prefers-reduced-motion:reduce){.r21p5-role-card{transition:none!important;transform:none!important}}


/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — compact photographic cards + dedicated family portal === */
.r21p5-role-wrap{padding:30px 26px 34px!important}
.r21p5-role-grid{max-width:1210px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important;direction:ltr!important}
.r21p5-role-card{direction:rtl!important;min-height:248px!important;border-radius:18px!important}
.r21p5-role-card img{height:148px!important;border-radius:17px 17px 0 0!important;object-position:center 34%!important}
.r21p5-role-card.parent img{object-position:center 39%!important}
.r21p5-role-card.teacher img{object-position:center 35%!important}
.r21p5-role-card.manager img{object-position:center 40%!important}
.r21p5-role-card.finance img{object-position:center 46%!important}
.r21p5-role-card h3{margin:12px 14px 2px!important;font-size:14px!important}
.r21p5-role-card p{margin:0 14px 15px!important;font-size:9px!important;line-height:1.75!important;padding-left:24px!important}
.r21p5-role-card>span{left:14px!important;bottom:14px!important;width:26px!important;height:26px!important}
.r21p5-role-card.family{background:linear-gradient(160deg,#f3fbf8,#dcefe8)!important;border-color:rgba(37,112,86,.14)!important}
.r21p5-role-card.family>span{background:#2c8d69!important;color:#fff!important}
.r21p5-role-card.family .family-card-visual{width:100%;height:148px;display:grid;place-items:center;background:radial-gradient(circle at 50% 30%,#ffffff 0,#f0faf6 45%,#dcefe8 100%);border-radius:17px 17px 0 0;overflow:hidden;transform:translateZ(18px)}
.r21p5-role-card.family .family-card-icon{width:82px!important;height:82px!important;object-fit:contain!important;object-position:center!important;margin:0!important;border-radius:0!important;background:transparent!important;filter:none!important;transform:none!important}
.r21p5-role-card.family h3{color:#194f3e!important}
.r21p5-role-card.family p{color:#5e776d!important}
@media(max-width:1120px){.r21p5-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:15px!important}.r21p5-role-card{min-height:238px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:140px!important}}
@media(max-width:760px){.r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.r21p5-role-card{min-height:218px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:122px!important}.r21p5-role-card.family .family-card-icon{width:68px!important;height:68px!important}.r21p5-role-card h3{font-size:13px!important}.r21p5-role-card p{font-size:8.5px!important}}
@media(max-width:430px){.r21p5-role-wrap{padding-inline:12px!important}.r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important}.r21p5-role-card{min-height:198px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:108px!important}.r21p5-role-card.family .family-card-icon{width:58px!important;height:58px!important}.r21p5-role-card h3{margin:9px 10px 1px!important;font-size:12.5px!important}.r21p5-role-card p{margin:0 10px 12px!important;padding-left:20px!important;font-size:8px!important}.r21p5-role-card>span{width:23px!important;height:23px!important;left:10px!important;bottom:11px!important}}

/* RC5 QA fix: sixth family card must remain a normal grid item on mobile. */
.r21p5-role-card.family{grid-column:auto!important;max-width:none!important;width:100%!important;justify-self:stretch!important}

/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — mobile vertical-scroll hardening ===
   Public home page must always remain the document scroll container on touch devices. */
html{
  min-height:100%!important;
  height:auto!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
body.r21p5-public{
  min-height:100dvh!important;
  height:auto!important;
  max-height:none!important;
  overflow-x:hidden!important;
  overflow-y:auto!important;
  position:relative!important;
  touch-action:pan-y pinch-zoom!important;
  overscroll-behavior-y:auto!important;
  -webkit-overflow-scrolling:touch;
}
body.r21p5-public main{
  height:auto!important;
  min-height:0!important;
  max-height:none!important;
  overflow:visible!important;
  touch-action:pan-y pinch-zoom!important;
}
@media(max-width:760px){
  html,body.r21p5-public{
    height:auto!important;
    min-height:100%!important;
    overflow-x:hidden!important;
    overflow-y:auto!important;
    touch-action:pan-y pinch-zoom!important;
    -webkit-overflow-scrolling:touch!important;
  }
  body.r21p5-public main{
    display:block!important;
    overflow:visible!important;
  }
  .r20-install,.r20-notify{
    max-height:min(46vh,340px)!important;
    overflow-y:auto!important;
    overscroll-behavior:contain!important;
  }
}


/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — smaller role-card imagery with cleaner framing === */
.r21p5-role-grid{max-width:1210px!important;grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:16px!important;direction:ltr!important}
.r21p5-role-card{direction:rtl!important;min-height:236px!important;padding:10px 10px 14px!important;border-radius:18px!important;overflow:hidden!important}
.r21p5-role-card img{width:calc(100% - 12px)!important;height:118px!important;margin:0 auto 10px!important;border-radius:14px!important;display:block!important;object-fit:cover!important;object-position:center 34%!important;background:#eef4f7!important}
.r21p5-role-card.parent img{object-position:center 39%!important}.r21p5-role-card.teacher img{object-position:center 35%!important}.r21p5-role-card.manager img{object-position:center 40%!important}.r21p5-role-card.finance img{object-position:center 46%!important}
.r21p5-role-card h3{margin:8px 12px 2px!important;font-size:14px!important;line-height:1.65!important}.r21p5-role-card p{margin:0 12px 13px!important;padding-left:24px!important;font-size:8.8px!important;line-height:1.8!important}.r21p5-role-card>span{left:12px!important;bottom:12px!important;width:25px!important;height:25px!important}
.r21p5-role-card.family .family-card-visual{width:calc(100% - 12px)!important;height:118px!important;margin:0 auto 10px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 28%,#ffffff 0,#f6fbf8 42%,#dcefe8 100%)!important}.r21p5-role-card.family .family-card-icon{width:72px!important;height:72px!important}
@media(max-width:1120px){.r21p5-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}.r21p5-role-card{min-height:226px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:110px!important}}
@media(max-width:760px){.r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:11px!important}.r21p5-role-card{min-height:200px!important;padding:9px 9px 12px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 10px)!important;height:92px!important;margin:0 auto 8px!important}.r21p5-role-card.family .family-card-icon{width:58px!important;height:58px!important}.r21p5-role-card h3{margin:7px 10px 1px!important;font-size:12.6px!important}.r21p5-role-card p{margin:0 10px 11px!important;padding-left:20px!important;font-size:7.8px!important;line-height:1.75!important}.r21p5-role-card>span{left:10px!important;bottom:10px!important;width:23px!important;height:23px!important}}
@media(max-width:430px){.r21p5-role-wrap{padding-inline:12px!important}.r21p5-role-grid{gap:9px!important}.r21p5-role-card{min-height:188px!important;padding:8px 8px 11px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 8px)!important;height:84px!important;margin:0 auto 8px!important}.r21p5-role-card.family .family-card-icon{width:52px!important;height:52px!important}.r21p5-role-card h3{font-size:12.2px!important}.r21p5-role-card p{font-size:7.6px!important}}


/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — dashboard topbar cleanup and box alignment === */
@media(min-width:1051px){
  .topbar{display:grid!important;grid-template-columns:minmax(0,1fr) max-content!important;grid-template-areas:"actions context"!important;align-items:center!important;gap:18px!important;padding:14px 24px!important;min-height:94px!important}
  .top-context{grid-area:context!important;min-width:250px!important;text-align:right!important;justify-self:end!important;align-self:center!important}
  .top-context .eyebrow{margin-bottom:4px!important;font-size:10px!important}
  .top-context h2{font-size:24px!important;line-height:1.45!important;white-space:nowrap!important}
  .top-actions{grid-area:actions!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;align-content:center!important;gap:10px!important;flex-wrap:wrap!important;min-width:0!important}
  .top-actions>*{flex:0 0 auto!important}
  .jalali-top-date,.quick-open,.sync-status,.role-chip,.top-action-card,.top-actions .icon-btn{min-height:46px!important;border-radius:16px!important;display:inline-flex!important;align-items:center!important;justify-content:center!important;vertical-align:middle!important}
  .jalali-top-date{padding:0 14px!important;font-size:13px!important}
  .quick-open{padding:0 14px!important;gap:10px!important;min-width:194px!important;justify-content:space-between!important}
  .quick-open span{font-size:18px!important;line-height:1!important}.quick-open b{font-size:12px!important}.quick-open small{font-size:9px!important}
  .top-actions .icon-btn{width:46px!important;height:46px!important;padding:0!important;border-radius:16px!important}
  .sync-status{padding:0 12px!important;gap:8px!important}.sync-status span{font-size:12px!important;font-weight:800!important}.sync-status small{font-size:9px!important}
  .role-chip{padding:0 12px!important;min-width:148px!important;justify-content:flex-start!important;gap:10px!important}.role-chip b{font-size:12px!important}.role-chip small{font-size:9px!important}
  .top-action-card{min-width:104px!important;padding:0 14px!important;gap:8px!important}.top-action-card span{font-size:16px!important;line-height:1!important}.top-action-card b{font-size:11px!important;line-height:1!important}
}
@media(max-width:1050px){.topbar{row-gap:10px!important}.top-actions{align-items:center!important}.jalali-top-date,.quick-open,.sync-status,.role-chip,.top-action-card,.top-actions .icon-btn{min-height:42px!important}}


/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — stronger photo downsizing for role cards === */
.r21p5-role-card{min-height:228px!important;padding:10px 10px 14px!important}
.r21p5-role-card img{width:calc(100% - 20px)!important;height:96px!important;margin:2px auto 10px!important;border-radius:13px!important;object-position:center 31%!important}
.r21p5-role-card.parent img{object-position:center 36%!important}.r21p5-role-card.teacher img{object-position:center 33%!important}.r21p5-role-card.manager img{object-position:center 38%!important}.r21p5-role-card.finance img{object-position:center 41%!important}
.r21p5-role-card h3{margin:8px 12px 2px!important;font-size:13.6px!important}.r21p5-role-card p{margin:0 12px 13px!important;font-size:8.4px!important;line-height:1.78!important}.r21p5-role-card>span{left:12px!important;bottom:12px!important;width:24px!important;height:24px!important}
.r21p5-role-card.family .family-card-visual{width:calc(100% - 20px)!important;height:96px!important;margin:2px auto 10px!important;border-radius:13px!important}.r21p5-role-card.family .family-card-icon{width:62px!important;height:62px!important}
@media(max-width:1120px){.r21p5-role-card{min-height:220px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:92px!important;width:calc(100% - 18px)!important}.r21p5-role-card.family .family-card-icon{width:58px!important;height:58px!important}}
@media(max-width:760px){.r21p5-role-card{min-height:190px!important;padding:8px 8px 12px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 14px)!important;height:74px!important;margin:2px auto 8px!important;border-radius:12px!important}.r21p5-role-card.family .family-card-icon{width:48px!important;height:48px!important}.r21p5-role-card h3{font-size:12.2px!important;margin:7px 10px 1px!important}.r21p5-role-card p{font-size:7.5px!important;line-height:1.72!important;margin:0 10px 10px!important}.r21p5-role-card>span{width:22px!important;height:22px!important;left:10px!important;bottom:10px!important}}
@media(max-width:430px){.r21p5-role-card{min-height:180px!important;padding:8px 8px 11px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 16px)!important;height:68px!important;margin:2px auto 8px!important}.r21p5-role-card.family .family-card-icon{width:44px!important;height:44px!important}.r21p5-role-card h3{font-size:11.8px!important}.r21p5-role-card p{font-size:7.2px!important}}

/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — preserve full portrait heads while keeping photos visually smaller === */
.r21p5-role-card{
  min-height:228px!important;
  padding:10px 10px 14px!important;
}
.r21p5-role-card img{
  width:calc(100% - 28px)!important;
  height:auto!important;
  aspect-ratio:10/7!important;
  margin:4px auto 10px!important;
  border-radius:13px!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center center!important;
}
.r21p5-role-card.parent img,
.r21p5-role-card.teacher img,
.r21p5-role-card.manager img,
.r21p5-role-card.finance img{
  object-position:center center!important;
}
.r21p5-role-card.family .family-card-visual{
  width:calc(100% - 28px)!important;
  height:auto!important;
  aspect-ratio:10/7!important;
  margin:4px auto 10px!important;
  border-radius:13px!important;
}
.r21p5-role-card.family .family-card-icon{
  width:58px!important;
  height:58px!important;
}
@media(max-width:760px){
  .r21p5-role-card{
    min-height:198px!important;
    padding:8px 8px 12px!important;
  }
  .r21p5-role-card img,
  .r21p5-role-card.family .family-card-visual{
    width:calc(100% - 24px)!important;
    height:auto!important;
    aspect-ratio:10/7!important;
    margin:4px auto 8px!important;
  }
  .r21p5-role-card.family .family-card-icon{
    width:48px!important;
    height:48px!important;
  }
}
@media(max-width:430px){
  .r21p5-role-card{
    min-height:188px!important;
  }
  .r21p5-role-card img,
  .r21p5-role-card.family .family-card-visual{
    width:calc(100% - 22px)!important;
    height:auto!important;
    aspect-ratio:10/7!important;
  }
}

/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — head-safe role-photo reframing === */
.r21p5-role-card{
  min-height:238px!important;
  padding:10px 10px 14px!important;
}
.r21p5-role-card img{
  width:calc(100% - 24px)!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  margin:4px auto 10px!important;
  border-radius:13px!important;
  display:block!important;
  object-fit:cover!important;
  object-position:center 12%!important;
}
.r21p5-role-card.student img{object-position:center 10%!important}
.r21p5-role-card.parent img{object-position:center 8%!important}
.r21p5-role-card.teacher img{object-position:center 9%!important}
.r21p5-role-card.manager img{object-position:center 7%!important}
.r21p5-role-card.finance img{object-position:center 10%!important}

.r21p5-role-card.family .family-card-visual{
  width:calc(100% - 24px)!important;
  height:auto!important;
  aspect-ratio:4/3!important;
  margin:4px auto 10px!important;
  border-radius:13px!important;
}
.r21p5-role-card.family .family-card-icon{
  width:60px!important;
  height:60px!important;
}

@media(max-width:760px){
  .r21p5-role-card{
    min-height:208px!important;
    padding:8px 8px 12px!important;
  }
  .r21p5-role-card img,
  .r21p5-role-card.family .family-card-visual{
    width:calc(100% - 18px)!important;
    height:auto!important;
    aspect-ratio:4/3!important;
    margin:4px auto 8px!important;
  }
  .r21p5-role-card.family .family-card-icon{
    width:50px!important;
    height:50px!important;
  }
}

@media(max-width:430px){
  .r21p5-role-card{
    min-height:198px!important;
  }
  .r21p5-role-card img,
  .r21p5-role-card.family .family-card-visual{
    width:calc(100% - 16px)!important;
    aspect-ratio:4/3!important;
  }
}


/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — source-level head-safe role images === */
.r21p5-role-card{min-height:232px!important;padding:10px 10px 14px!important}
.r21p5-role-card img{width:calc(100% - 24px)!important;height:auto!important;aspect-ratio:10/7!important;margin:4px auto 10px!important;border-radius:13px!important;display:block!important;object-fit:cover!important;object-position:center center!important}
.r21p5-role-card.student img,.r21p5-role-card.parent img,.r21p5-role-card.teacher img,.r21p5-role-card.manager img,.r21p5-role-card.finance img{object-position:center center!important}
.r21p5-role-card.family .family-card-visual{width:calc(100% - 24px)!important;height:auto!important;aspect-ratio:10/7!important;margin:4px auto 10px!important;border-radius:13px!important}
@media(max-width:760px){.r21p5-role-card{min-height:198px!important;padding:8px 8px 12px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 18px)!important;height:auto!important;aspect-ratio:10/7!important;margin:4px auto 8px!important}}
@media(max-width:430px){.r21p5-role-card{min-height:188px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 16px)!important;aspect-ratio:10/7!important}}

/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — executive role, teacher mobile presence, refined Jalali UI === */
.r21p5-role-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important;max-width:1180px!important;gap:15px!important}
.r21p5-role-card.executive{background:linear-gradient(160deg,#f0fbfb,#dceff3)!important;border-color:rgba(18,112,126,.16)!important}
.r21p5-role-card.executive>span{background:#147a8d!important;color:#fff!important}
.executive-card-visual{width:calc(100% - 24px);aspect-ratio:10/7;margin:4px auto 10px;border-radius:13px;display:grid;place-items:center;background:radial-gradient(circle at 50% 25%,#fff 0,#e8f8f8 46%,#d6edf1 100%);overflow:hidden}
.executive-card-icon{width:66px!important;height:66px!important;object-fit:contain!important;margin:0!important;border-radius:0!important;background:transparent!important;filter:none!important;transform:none!important}
@media(max-width:1120px){.r21p5-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:760px){.r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.executive-card-visual{width:calc(100% - 18px);aspect-ratio:4/3}.executive-card-icon{width:50px!important;height:50px!important}}

.executive-shell{margin:0;background:radial-gradient(circle at 90% 0,#eaf9f7 0,transparent 26%),linear-gradient(180deg,#f7fbfd,#edf5f7);color:#15344c;min-height:100vh}
.executive-top{position:sticky;top:0;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:16px;padding:16px clamp(16px,4vw,52px);background:rgba(255,255,255,.94);border-bottom:1px solid #d8e6eb;box-shadow:0 9px 28px rgba(20,58,76,.08);backdrop-filter:blur(16px)}
.executive-top h1{margin:2px 0;font-size:24px}.executive-top small,.executive-top span{color:#6d8390}.executive-top-actions{display:flex;gap:8px}.executive-main{width:min(1280px,100%);margin:auto;padding:24px clamp(14px,3vw,30px) 60px}.executive-kpis{display:grid;grid-template-columns:repeat(5,1fr);gap:12px;margin-bottom:16px}.executive-kpis article{background:#fff;border:1px solid #dce8ec;border-radius:18px;padding:16px;box-shadow:0 10px 26px rgba(23,73,88,.07)}.executive-kpis span{display:block;font-size:10px;color:#758b96}.executive-kpis b{display:block;margin-top:5px;font-size:24px;color:#0d6071}.executive-tabs{display:flex;gap:7px;overflow:auto;padding:7px;background:#fff;border:1px solid #dce8ec;border-radius:18px;margin-bottom:16px}.executive-tabs button{border:0;background:transparent;padding:10px 14px;border-radius:12px;color:#4f6875;font-weight:800;white-space:nowrap}.executive-tabs button.active{background:linear-gradient(135deg,#0d7184,#1aa98e);color:#fff}.exec-pane{display:none}.exec-pane.active{display:block}.executive-list{display:grid;gap:9px}.exec-row,.exec-att-row{display:grid;grid-template-columns:minmax(180px,1.4fr) minmax(130px,.8fr) auto;gap:10px;align-items:center;padding:12px;border:1px solid #dfe9ed;border-radius:14px;background:#fff}.exec-row b,.exec-row small,.exec-att-row b,.exec-att-row small{display:block}.exec-row small,.exec-att-row small{color:#738893;font-size:9px}.exec-row p{margin:5px 0 0;font-size:10px;color:#607681}.exec-row.warn{border-color:#f0d5ab;background:#fffaf0}.exec-row.done{opacity:.72}.exec-att-row select,.exec-att-row input{background:#f8fbfc!important;color:#17384f!important;border-color:#dce7eb!important}.executive-media{display:grid;grid-template-columns:repeat(auto-fill,minmax(190px,1fr));gap:12px}.executive-media figure{margin:0;background:#fff;border:1px solid #dce8ec;border-radius:16px;overflow:hidden}.executive-media img{width:100%;height:150px;object-fit:cover}.executive-media figcaption{padding:10px}.executive-media b,.executive-media small{display:block}.executive-media small{color:#768b96}.teacher-presence-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:12px}.teacher-presence-card{border:1px solid #dce7ec;border-radius:18px;background:linear-gradient(145deg,#fff,#f5fafb);padding:14px}.teacher-presence-card.active{border-color:#85d4c2;background:#f0fbf8}.teacher-presence-card.done{border-color:#aed9b7;background:#f4fbf5}.teacher-presence-card span,.teacher-presence-card b,.teacher-presence-card small{display:block}.teacher-presence-card small{color:#738893}.presence-actions{display:grid;gap:7px;margin-top:10px}.presence-actions textarea{background:#fff!important;color:#17384f!important;border-color:#dce7ec!important}.teacher-performance-table{display:grid;gap:6px}.teacher-performance-head,.teacher-performance-row{display:grid;grid-template-columns:1.3fr .7fr .75fr .6fr .6fr 1.4fr;gap:8px;align-items:center;padding:10px 12px;border-radius:12px}.teacher-performance-head{background:#eaf3f6;font-size:10px;font-weight:900}.teacher-performance-row{background:#fff;border:1px solid #e0e9ed}.teacher-performance-row small{display:block;color:#7a8c95}.teacher-performance-row textarea{min-height:48px;background:#f8fbfc!important;color:#17384f!important;border-color:#dce7ec!important}.presence-payroll-note{background:#edf9f5;padding:8px;border-radius:10px;color:#17664f}
@media(max-width:850px){.executive-kpis{grid-template-columns:repeat(2,1fr)}.exec-row,.exec-att-row{grid-template-columns:1fr}.teacher-performance-head{display:none}.teacher-performance-row{grid-template-columns:1fr 1fr}.teacher-performance-row>span:first-child,.teacher-performance-row>span:last-child{grid-column:1/-1}}
@media(max-width:540px){.executive-top{align-items:flex-start;flex-direction:column}.executive-top-actions{width:100%}.executive-top-actions .btn{flex:1}.executive-kpis{grid-template-columns:1fr 1fr}.executive-main{padding-inline:10px}.executive-tabs{border-radius:14px}.executive-media{grid-template-columns:1fr 1fr}}

/* === R24-PARENT-LAUNCH-1.3.0-CONCURRENCY-REGISTRY — executive photographic role card === */
.r21p5-role-card.executive img{object-fit:cover!important;object-position:center center!important;background:#eaf4f5!important}

/* === R24 temporary registration + demo commerce === */
.temporary-registration{width:min(1180px,calc(100% - 30px));margin:18px auto 28px;padding:20px;border-radius:24px;background:linear-gradient(140deg,#ffffff,#eef8fb);border:1px solid #d7e8ed;box-shadow:0 16px 38px rgba(27,67,86,.08)}
.temporary-registration-head{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:14px}.temporary-registration-head span{font-size:11px;color:#0c7787;font-weight:900}.temporary-registration-head h2{margin:4px 0 5px;color:#173b50}.temporary-registration-head p,.temporary-registration-head small{margin:0;color:#6c818d}
.temporary-registration-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.temporary-reg-card{position:relative;text-decoration:none;color:#17394c;padding:17px;border-radius:17px;border:1px solid #d7e6eb;background:#fff;display:grid;gap:6px;transition:.2s}.temporary-reg-card:hover{transform:translateY(-2px);box-shadow:0 12px 24px rgba(18,76,91,.10)}.temporary-reg-card b{font-size:15px}.temporary-reg-card small{color:#71858f;line-height:1.7}.temporary-reg-card span{position:absolute;left:14px;bottom:13px;color:#148297;font-size:22px}.temporary-reg-card.student{border-top:3px solid #2b8bd6}.temporary-reg-card.parent{border-top:3px solid #2a9a7b}.temporary-reg-card.teacher{border-top:3px solid #b3872d}
.access-commerce-banner{display:flex;justify-content:space-between;align-items:center;gap:12px;background:linear-gradient(135deg,#effaf5,#f7fbff);border:1px solid #cfe7dc;border-radius:15px;padding:11px 13px;margin:10px 0}.access-commerce-banner b,.access-commerce-banner small{display:block}.access-commerce-banner small{color:#688078;margin-top:3px}.access-commerce-banner a{white-space:nowrap;text-decoration:none;background:#137d75;color:#fff;padding:9px 12px;border-radius:11px;font-weight:800;font-size:11px}
@media(max-width:720px){.temporary-registration-head{display:grid}.temporary-registration-grid{grid-template-columns:1fr}.temporary-registration{width:calc(100% - 16px);padding:13px;border-radius:18px}.access-commerce-banner{align-items:flex-start;flex-direction:column}}

.registration-manager-list{display:grid;gap:9px;margin-top:14px}.registration-manager-row{display:grid;grid-template-columns:70px minmax(0,1fr) auto;gap:12px;align-items:center;border:1px solid #dfe9ed;background:#fff;border-radius:15px;padding:10px}.registration-manager-row img{width:64px;height:72px;object-fit:cover;border-radius:11px;border:1px solid #d5e3e8}.registration-manager-row h4{margin:3px 0}.registration-manager-row p,.registration-manager-row small{margin:2px 0;color:#70828d}.registration-actions{display:flex;gap:6px}.purchase-icon{width:54px;height:54px;border-radius:14px;background:#edf9f3;display:grid;place-items:center;font-weight:900;color:#147357;font-size:20px}
@media(max-width:700px){.registration-manager-row{grid-template-columns:58px 1fr}.registration-manager-row img{width:54px;height:64px}.registration-actions,.registration-manager-row>.btn{grid-column:1/-1;display:flex}.registration-actions .btn{flex:1}}

/* R24.1.2 registration visibility + executive portrait framing */
.registration-quick-links{
  width:min(1180px,calc(100% - 30px));margin:12px auto 0;
  display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px
}
.registration-quick-links a{
  display:flex;align-items:center;justify-content:center;min-height:48px;
  text-decoration:none;font-weight:900;border-radius:14px;border:1px solid #d5e6eb;
  background:#fff;color:#14506a;box-shadow:0 8px 20px rgba(27,67,86,.06)
}
.registration-quick-links a:nth-child(1){border-top:3px solid #2b8bd6}
.registration-quick-links a:nth-child(2){border-top:3px solid #2a9a7b}
.registration-quick-links a:nth-child(3){border-top:3px solid #8e4bc0}
.r21p5-role-card.executive .r21p5-role-photo img{
  object-position:center 48%!important;
}
@media(max-width:720px){
  .registration-quick-links{grid-template-columns:1fr;width:calc(100% - 16px)}
}

/* === R24 Parent Launch 1.2.0 === */
@media(min-width:1051px){
  .topbar{display:grid!important;grid-template-columns:minmax(220px,1fr) minmax(0,auto)!important;grid-template-areas:"context actions"!important;align-items:center!important;gap:16px!important;min-height:82px!important;padding:11px 18px!important}
  .top-context{grid-area:context!important;min-width:0!important}.top-actions{grid-area:actions!important;display:flex!important;flex-wrap:nowrap!important;align-items:stretch!important;gap:6px!important;min-width:0!important;max-width:100%!important;overflow-x:auto!important;overflow-y:hidden!important;padding:2px 1px 4px!important;scrollbar-width:thin!important}
  .top-actions>*{flex:0 0 auto!important;height:44px!important;min-height:44px!important;margin:0!important}.top-actions .jalali-top-date{min-width:96px!important;padding:0 10px!important}.top-actions .quick-open{width:138px!important;min-width:138px!important;padding:0 10px!important}.top-actions .icon-btn{width:44px!important;min-width:44px!important;padding:0!important}.top-actions .sync-status{width:96px!important;min-width:96px!important;padding:0 9px!important}.top-actions .role-chip{width:138px!important;min-width:138px!important;padding:0 9px!important}.top-actions .top-action-card{width:78px!important;min-width:78px!important;padding:0 8px!important;justify-content:center!important}.top-actions .top-action-card b{font-size:10px!important}
}
@media(max-width:1050px){.top-actions{display:flex!important;flex-wrap:nowrap!important;overflow-x:auto!important;gap:6px!important}.top-actions>*{flex:0 0 auto!important}}
.page-loading-soft .main-area{cursor:progress}.page-loading-soft .page.active-page{opacity:.985}.guidance-nav-highlight{border:1px solid rgba(178,132,34,.35)!important;background:linear-gradient(135deg,rgba(255,245,209,.16),rgba(65,121,177,.08))!important}.guidance-nav-highlight small{display:block;font-size:8px!important;opacity:.72;margin-top:1px}.guidance-quick{border-color:#e7d4a0!important;background:linear-gradient(145deg,#fffdf6,#f3f8ff)!important}.guidance-quick span{color:#a17a1b!important}
.exec-upload-preview{min-height:84px;border:1px dashed #b9d1d9;border-radius:13px;background:#f7fbfc;display:grid;place-items:center;gap:5px;padding:8px;color:#70858f;overflow:hidden}.exec-upload-preview img{max-width:180px;max-height:130px;object-fit:cover;border-radius:10px}.exec-upload-preview small{font-size:9px;color:#72858f}#execDailyPhotoSubmit:disabled,#execPublicPhotoSubmit:disabled{opacity:.65;cursor:progress}

/* R24 1.2.2 manager topbar order + non-freezing navigation */
.top-actions{display:grid!important;grid-auto-flow:column;grid-auto-columns:max-content;align-items:center;gap:8px!important}
.top-actions>*{height:44px!important;min-height:44px!important;margin:0!important;align-self:center}
.top-actions .role-chip,.top-actions .sync-status{min-width:118px;justify-content:center}
.page-loading-soft .topbar{pointer-events:auto!important}
.page-loading-soft [data-page]{pointer-events:auto!important}
@media(max-width:1050px){.top-actions{display:flex!important;flex-wrap:wrap;justify-content:flex-end}}

/* R24 1.2.9 — manager registration registry */
.dashboard-registration-registry{border:1px solid rgba(15,118,110,.18);box-shadow:0 12px 30px rgba(15,23,42,.06)}
.dashboard-latest-registrations{display:grid;gap:8px;margin-top:12px}
.dashboard-registration-row{width:100%;border:1px solid var(--line,#e2e8f0);background:var(--card,#fff);border-radius:14px;padding:10px 12px;display:grid;grid-template-columns:92px minmax(220px,1fr) 110px 150px;align-items:center;gap:10px;text-align:right;cursor:pointer}
.dashboard-registration-row:hover{transform:translateY(-1px);box-shadow:0 8px 20px rgba(15,23,42,.07)}
.registration-role-badge,.registration-status{display:inline-flex;align-items:center;justify-content:center;border-radius:999px;padding:6px 9px;font-size:.8rem;font-weight:800}
.registration-role-badge.student{background:#e0f2fe;color:#075985}.registration-role-badge.parent{background:#fef3c7;color:#92400e}.registration-role-badge.teacher{background:#ede9fe;color:#5b21b6}
.registration-status.pending{background:#fff7ed;color:#9a3412}.registration-status.approved{background:#ecfdf5;color:#047857}.registration-status.rejected{background:#fef2f2;color:#b91c1c}
.registration-person{display:flex;flex-direction:column;gap:3px}.registration-person small,.registration-time{color:var(--muted,#64748b);font-size:.78rem}
.registration-nav-badge{margin-right:auto;min-width:25px;height:25px;padding:0 7px;border-radius:999px;background:#0f766e;color:white;display:inline-flex;align-items:center;justify-content:center;font-size:.72rem;font-weight:900}
@media(max-width:900px){.dashboard-registration-row{grid-template-columns:82px 1fr 100px}.registration-time{grid-column:2/4}}
@media(max-width:620px){.dashboard-registration-row{grid-template-columns:1fr 1fr}.registration-person{grid-column:1/3}.registration-time{grid-column:1/3}.registration-status{justify-self:end}}
/* R26 counselor card + clean registration pages */
.r21p5-role-card.counselor{background:linear-gradient(160deg,#f7f2ff,#eadcff)!important}.r21p5-role-card.counselor>span{background:#7150a6!important}.r21p5-role-card.counselor img{object-position:center 30%!important}
.registration-role-pages{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0}.registration-role-pages button{border:1px solid #d7e2ea;background:#f7fafc;border-radius:12px;padding:10px 16px;font:inherit;cursor:pointer}.registration-role-pages button.active{background:#123d5a;color:#fff;border-color:#123d5a}.registration-page-title{font-weight:900;font-size:18px;color:#173b55;margin:10px 0}.reg-delete{border-color:#d74b4b!important;color:#b51f1f!important;background:#fff5f5!important}
/* R26 assessments */
.assessment-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.assessment-card{border:1px solid #dce7ee;border-radius:16px;padding:14px;background:#fff;box-shadow:0 8px 22px rgba(20,54,78,.06)}.assessment-card.required{border-color:#7f64b5;background:#fbf9ff}.assessment-card.done{border-color:#61a77d;background:#f7fff9}.assessment-card h4{margin:4px 0}.assessment-card p{font-size:12px;color:#607485}.assessment-card .assessment-meta{display:flex;justify-content:space-between;gap:8px;align-items:center}.assessment-required-banner{padding:12px 14px;border-radius:14px;margin:10px 0;background:#fff4d8;color:#765800}.assessment-required-banner.done{background:#e8f7ee;color:#24623d}.assessment-runner{margin-top:14px;border:1px solid #dce7ee;border-radius:16px;padding:16px}.assessment-question{display:grid;grid-template-columns:1fr 170px;gap:12px;align-items:center;padding:10px 0;border-bottom:1px solid #edf2f5}.assessment-question select{width:100%}.assessment-result{margin-top:12px;padding:12px;border-radius:12px;background:#f4f8fb}.counselor-hero{display:grid;grid-template-columns:120px 1fr auto;gap:18px;align-items:center}.counselor-hero img{width:120px;height:120px;object-fit:cover;border-radius:18px}.assessment-report-list{display:grid;gap:12px}.assessment-report{border:1px solid #dce7ee;border-radius:14px;padding:14px}.assessment-report header{display:flex;justify-content:space-between;gap:10px}.assessment-answer-mini{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px;margin-top:10px}.assessment-answer-mini span{font-size:11px;background:#f5f8fa;padding:7px;border-radius:8px}.hidden{display:none!important}@media(max-width:720px){.assessment-grid{grid-template-columns:1fr}.assessment-question{grid-template-columns:1fr}.counselor-hero{grid-template-columns:80px 1fr}.counselor-hero img{width:80px;height:80px}.counselor-hero .lock-badge{grid-column:1/-1}.assessment-answer-mini{grid-template-columns:1fr}}

.r21p5-role-card.health{background:linear-gradient(160deg,#effcf8,#dff7ee)!important}.r21p5-role-card.health>span{background:#1d8f72!important}.r21p5-role-card.health img{object-position:center 28%!important}

/* R28 report center */
.r28-report-center{margin-bottom:18px}.r28-report-center .table-scroll{max-height:480px}.r28-report-center td{max-width:280px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.r28-report-center .report-info{margin:12px 0}

/* R29 visual comfort + weekly theme */
.r21p5-hidden-events{padding:28px 30px 34px;background:linear-gradient(180deg,#fff,#f7fafd);border-top:1px solid #e5eef4}.extras-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 auto 16px;max-width:1180px}.extras-head small{color:var(--daily-accent);font-weight:900}.extras-head h2{margin:4px 0 0;color:#16344c}.extra-event-card{display:grid;grid-template-columns:120px 1fr;gap:14px;padding:16px;border:1px solid #dbe7ef;border-radius:16px;background:#fff;box-shadow:0 8px 22px rgba(20,54,78,.06)}.extra-event-card time{display:block;font-weight:900;color:#214b68}.extra-event-card small{color:#6d8292}.extra-event-card h3{margin:0 0 4px;color:#16344c}.extra-event-card p{margin:0 0 5px;color:#5c7182}.r21p5-role-card.counselor img,.counselor-hero img{object-position:center 18%!important}.counselor-hero{grid-template-columns:96px 1fr auto!important}.counselor-hero img{width:96px!important;height:96px!important;border-radius:16px!important}.r21p5-role-grid .r21p5-role-card img{height:120px!important}.r21p5-header{background:rgba(250,252,254,.94)!important;border-bottom:1px solid rgba(31,86,124,.08)!important}.r21p5-header nav a{color:#17344d!important}.portal-pill{background:linear-gradient(135deg,#2c85c8,#26a7c8)!important;color:#fff!important}.r21p5-role-card{box-shadow:0 12px 32px rgba(20,52,80,.08)!important}.hero-copy p,.story-copy p,.r21p5-services a small,.r21p5-system-highlights p{color:#587184!important}
/* R29.1 FINAL IMAGE HOTFIX — unified role-card media */
.r21p5-role-grid{align-items:stretch!important}
.r21p5-role-card{min-height:222px!important;padding:10px 10px 14px!important;overflow:hidden!important}
.r21p5-role-card img{display:block!important;width:calc(100% - 18px)!important;height:102px!important;max-height:102px!important;margin:4px auto 10px!important;border-radius:14px!important;object-fit:cover!important;object-position:center 28%!important;background:#edf3f7!important;box-sizing:border-box!important}
.r21p5-role-card.student img{object-position:center 22%!important}
.r21p5-role-card.parent img{object-position:center 32%!important}
.r21p5-role-card.teacher img{object-position:center 24%!important}
.r21p5-role-card.executive img{object-position:center 28%!important}
.r21p5-role-card.manager img{object-position:center 18%!important}
.r21p5-role-card.finance img{object-position:center 24%!important}
.r21p5-role-card.counselor img{object-position:center 20%!important}
.r21p5-role-card.health img{object-position:center 18%!important}
.r21p5-role-card.family .family-card-visual{width:calc(100% - 18px)!important;height:102px!important;max-height:102px!important;margin:4px auto 10px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 28%,#ffffff 0,#f6fbf8 42%,#dcefe8 100%)!important}
.r21p5-role-card.family .family-card-icon{width:56px!important;height:56px!important;object-fit:contain!important}
.r21p5-role-card h3{margin:6px 12px 2px!important;font-size:14px!important;line-height:1.55!important}
.r21p5-role-card p{margin:0 12px 12px!important;font-size:8.8px!important;line-height:1.8!important}
@media(max-width:760px){.r21p5-role-card{min-height:198px!important;padding:8px 8px 12px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 14px)!important;height:80px!important;max-height:80px!important;margin:4px auto 8px!important;border-radius:12px!important}.r21p5-role-card.family .family-card-icon{width:46px!important;height:46px!important}.r21p5-role-card h3{font-size:12.3px!important;margin:6px 10px 1px!important}.r21p5-role-card p{font-size:7.6px!important;margin:0 10px 10px!important;line-height:1.72!important}}
@media(max-width:430px){.r21p5-role-card{min-height:186px!important}.r21p5-role-card img,.r21p5-role-card.family .family-card-visual{height:74px!important;max-height:74px!important}}

/* R29.2 LOCKED ROLE IMAGE SYSTEM — single final override */
.r21p5-role-grid{align-items:stretch!important}
.r21p5-role-card{min-height:224px!important;padding:10px 10px 14px!important;overflow:hidden!important}
.r21p5-role-card>img{display:block!important;width:calc(100% - 18px)!important;height:106px!important;max-height:106px!important;aspect-ratio:auto!important;margin:4px auto 10px!important;border-radius:14px!important;object-fit:contain!important;object-position:center center!important;background:#eef4f7!important;box-sizing:border-box!important}
.r21p5-role-card.student>img,.r21p5-role-card.parent>img,.r21p5-role-card.teacher>img,.r21p5-role-card.executive>img,.r21p5-role-card.manager>img,.r21p5-role-card.finance>img,.r21p5-role-card.counselor>img,.r21p5-role-card.health>img{object-position:center center!important}
.r21p5-role-card.family .family-card-visual{width:calc(100% - 18px)!important;height:106px!important;max-height:106px!important;margin:4px auto 10px!important;border-radius:14px!important;display:grid!important;place-items:center!important;background:radial-gradient(circle at 50% 28%,#fff 0,#f6fbf8 42%,#dcefe8 100%)!important}
.r21p5-role-card.family .family-card-icon{width:54px!important;height:54px!important;object-fit:contain!important}
@media(max-width:760px){.r21p5-role-card{min-height:198px!important}.r21p5-role-card>img,.r21p5-role-card.family .family-card-visual{width:calc(100% - 14px)!important;height:82px!important;max-height:82px!important;margin:4px auto 8px!important}.r21p5-role-card.family .family-card-icon{width:44px!important;height:44px!important}}
@media(max-width:430px){.r21p5-role-card{min-height:186px!important}.r21p5-role-card>img,.r21p5-role-card.family .family-card-visual{height:76px!important;max-height:76px!important}}

/* R32.32 — compact, delayed PWA install surface. Never cover form controls on small screens. */
.r20-install{bottom:calc(12px + env(safe-area-inset-bottom,0px))!important}
@media(max-width:700px){
  .r20-install{
    right:8px!important;left:8px!important;
    grid-template-columns:44px minmax(0,1fr) auto!important;
    gap:9px!important;padding:10px 38px 10px 10px!important;
    border-radius:15px!important;max-height:min(28vh,150px)!important;
    overflow:auto!important;align-items:center!important;
  }
  .r20-install-icon{width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:12px!important}
  .r20-install-copy{gap:2px!important;min-width:0!important}
  .r20-install-copy b{font-size:13px!important}
  .r20-install-copy span{font-size:11px!important;line-height:1.45!important;display:-webkit-box!important;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden!important}
  .r20-install button{grid-column:auto!important;width:auto!important;padding:8px 10px!important;font-size:12px!important;white-space:nowrap!important}
  .r20-install i{top:7px!important;left:7px!important;padding:5px!important}
}
@media(max-height:560px){.r20-install{display:none!important}}


/* R32.33.4 — dashboard overlay guard: PWA install card stays in document flow. */
.r20-install.r20-install-inline{
  position:relative!important;
  right:auto!important;
  left:auto!important;
  bottom:auto!important;
  top:auto!important;
  width:100%!important;
  max-width:none!important;
  margin:0 0 16px!important;
  box-sizing:border-box!important;
  z-index:40!important;
}
.parent-ui-r318 .r20-install.r20-install-inline{
  border-radius:18px!important;
  box-shadow:0 12px 34px rgba(0,21,43,.22)!important;
}
@media(min-width:701px){
  body.parent-ui-r318 .mnp-floating-support{
    width:58px!important;
    height:58px!important;
    padding:6px!important;
    border-radius:50%!important;
    justify-content:center!important;
    transform:none!important;
    left:16px!important;
    bottom:16px!important;
  }
  body.parent-ui-r318 .mnp-floating-support:hover,
  body.parent-ui-r318 .mnp-floating-support:focus-visible{
    transform:translateY(-2px)!important;
  }
  body.parent-ui-r318 .mnp-floating-support img{
    width:44px!important;
    height:44px!important;
  }
  body.parent-ui-r318 .mnp-floating-support span{display:none!important}
}

/* R32.79.6 mobile hero: prevent clipped welcome copy */
@media(max-width:760px){.r21p5-hero{height:auto!important;min-height:430px!important;padding:54px 18px 34px!important;display:flex!important;align-items:center!important;justify-content:center!important}.r21p5-hero .hero-copy{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;transform:none!important;width:100%!important;max-width:520px!important;margin:0 auto!important;padding:16px 4px!important}.r21p5-hero .hero-copy h1{font-size:clamp(24px,7vw,29px)!important;line-height:1.45!important}.r21p5-hero .hero-copy h2{line-height:1.55!important}.r21p5-hero .hero-copy p{line-height:1.9!important}.r21p5-hero .hero-actions{flex-wrap:wrap!important}}

/* R32.79.8 mobile home typography consistency + install visibility */
@media(max-width:760px){body.r21p5-public .r21p5-header nav a,body.r21p5-public .hero-copy h1,body.r21p5-public .hero-copy h2,body.r21p5-public .hero-copy p,body.r21p5-public .r21p5-role-card h3,body.r21p5-public .r21p5-role-card p,body.r21p5-public .r21p5-services b,body.r21p5-public .r21p5-services small{color:#fff!important}body.r21p5-public .r21p5-header nav a.active{color:#fff!important}.r20-install{display:grid!important;visibility:visible!important;opacity:1!important;z-index:10050!important}}

/* R32.79.10 — mobile screenshot remediation: unclipped hero + persistent install surface */
@media(max-width:760px){
 body.r21p5-public .r21p5-hero{height:auto!important;min-height:360px!important;overflow:visible!important;padding:28px 18px 30px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
 body.r21p5-public .r21p5-hero .hero-campus,body.r21p5-public .r21p5-hero .hero-atmosphere{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;min-height:100%!important;object-fit:cover!important;border-radius:inherit!important}
 body.r21p5-public .r21p5-hero .hero-copy{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;bottom:auto!important;transform:none!important;width:100%!important;max-width:500px!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:0 auto!important;padding:20px 8px!important;box-sizing:border-box!important;z-index:4!important}
 body.r21p5-public .r21p5-hero .hero-copy h1{font-size:clamp(25px,7vw,34px)!important;line-height:1.5!important;margin:8px 0!important;white-space:normal!important;overflow:visible!important;max-height:none!important}
 body.r21p5-public .r21p5-hero .hero-copy h2,body.r21p5-public .r21p5-hero .hero-copy p{white-space:normal!important;overflow:visible!important;max-height:none!important}
 body.r21p5-public .r20-install{position:fixed!important;right:8px!important;left:8px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;top:auto!important;display:grid!important;visibility:visible!important;opacity:1!important;z-index:2147483000!important;max-height:none!important;overflow:visible!important}
}

/* R33.15: keep the circular medal inside mobile logo frames. */
@media(max-width:760px){
 html body img[src*="andisheh-gold-medal-"]{
  transform:none!important;object-fit:contain!important;box-sizing:border-box!important;
  max-width:100%!important;border-radius:50%!important;filter:none!important;padding:2px!important;
 }
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand img[src*="andisheh-gold-medal-"]{
  width:38px!important;height:38px!important;min-width:38px!important;max-width:38px!important;
  flex:0 0 38px!important;margin:0!important;
 }
 html body .r20-install .r20-install-icon{display:grid!important;place-items:center!important;}
 html body .r20-install .r20-install-icon img[src*="andisheh-gold-medal-"]{
  width:92%!important;height:92%!important;max-height:92%!important;margin:0!important;padding:0!important;
 }
}

/* === r8.css === */
:root{--r8-navy:#071a2e;--r8-cyan:#23c8db;--r8-blue:#3977f6;--r8-ink:#10233d;--r8-muted:#687b91;--r8-border:#d7e3ee}.r8-public{margin:0;background:#f7fafc;color:var(--r8-ink);font-family:Tahoma,sans-serif}.r8-topbar{height:86px;background:#071a2ef7;color:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 max(5vw,28px);position:sticky;top:0;z-index:30}.r8-brand{display:flex;align-items:center;gap:13px;color:#fff;text-decoration:none}.r8-brand>span{width:48px;height:48px;border-radius:16px;display:grid;place-items:center;background:linear-gradient(145deg,var(--r8-cyan),var(--r8-blue));font-size:25px;font-weight:900}.r8-brand div{display:grid;gap:4px}.r8-topbar nav{display:flex;gap:24px;align-items:center}.r8-topbar nav a{color:#dce8f3;text-decoration:none;font-weight:700}.r8-topbar .top-login{background:#fff;color:var(--r8-navy);padding:11px 18px;border-radius:14px}.r8-hero{position:relative;height:min(72vh,680px);min-height:510px;overflow:hidden;background:#071a2e}.r8-hero>img{width:100%;height:100%;object-fit:cover}.r8-hero-shade{position:absolute;inset:0;background:linear-gradient(90deg,rgba(5,19,34,.88),rgba(5,19,34,.35),rgba(5,19,34,.03))}.r8-hero-copy{position:absolute;left:6vw;bottom:75px;max-width:590px;color:#fff;text-align:right}.r8-hero-copy span{color:#a6f6ff;font-weight:800}.r8-hero-copy h1{font-size:clamp(34px,4vw,62px);line-height:1.25;margin:12px 0}.r8-hero-copy p{font-size:18px;line-height:2;color:#e3edf6}.r8-hero-copy>div{display:flex;gap:12px}.r8-btn{padding:13px 22px;border-radius:15px;text-decoration:none;font-weight:900}.r8-btn.primary{background:linear-gradient(135deg,var(--r8-cyan),var(--r8-blue));color:#fff}.r8-btn.glass{background:#ffffff18;color:#fff;border:1px solid #ffffff55}.r8-countdown{position:absolute;right:5vw;bottom:50px;background:#fff;padding:18px 22px;border-radius:22px;box-shadow:0 24px 50px #00152b55;display:grid;min-width:190px}.r8-countdown b{font-size:32px;color:var(--r8-blue)}.r8-section-title{max-width:760px;margin:0 auto 30px;text-align:center}.r8-section-title>span{color:#159bb0;font-weight:900}.r8-section-title h2{font-size:32px;margin:8px 0}.r8-section-title p{color:var(--r8-muted);line-height:2}.r8-today,.r8-modern,.r8-extras,.r8-about,.r8-plans{padding:70px max(5vw,28px)}.r8-event-row{display:grid;grid-template-columns:repeat(3,1fr);gap:16px}.r8-event-row article{background:#fff;border:1px solid var(--r8-border);border-radius:20px;padding:20px;display:flex;gap:17px}.r8-event-row time{background:#e7f8fb;color:#087f92;padding:8px 11px;border-radius:12px;height:max-content;font-weight:800}.r8-modern{background:linear-gradient(180deg,#f5faff,#edf4f9)}.r8-feature-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:20px;max-width:1200px;margin:auto}.r8-feature-grid article{background:#fff;border:1px solid #dbe8f2;border-radius:24px;padding:27px;box-shadow:0 18px 45px #0a2b4910;transition:.25s}.r8-feature-grid article:hover{transform:translateY(-7px)}.r8-feature-grid i{width:52px;height:52px;border-radius:17px;background:#e7f8fb;display:grid;place-items:center;color:#168fa3;font-style:normal}.r8-extra-grid{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;max-width:1000px;margin:auto}.r8-extra-grid article{display:grid;grid-template-columns:125px 1fr;border:1px solid var(--r8-border);border-radius:20px;overflow:hidden}.r8-extra-grid article>div{background:#0b2945;color:#fff;padding:22px;display:grid;place-content:center}.r8-extra-grid section{padding:20px}.r8-about{background:var(--r8-navy);color:#fff;display:grid;grid-template-columns:1.5fr 1fr;gap:50px}.r8-about p{line-height:2.1;color:#d6e5f0}.r8-contact{display:grid;gap:14px}.r8-contact div{background:#ffffff0d;border:1px solid #ffffff20;border-radius:18px;padding:18px;display:grid}.r8-plan-grid{display:grid;grid-template-columns:repeat(5,1fr);gap:18px;perspective:1100px}.plan3d{position:relative;min-height:245px;background:#fff;border:1px solid #dce7f0;border-radius:24px;padding:25px;text-decoration:none;color:var(--r8-ink);box-shadow:0 18px 0 #e4ebf1,0 28px 45px #0a29451a;transition:.28s}.plan3d:hover{transform:translateY(-8px);box-shadow:0 10px 0 #dce6ed,0 35px 55px #0a294527}.plan3d i{width:48px;height:48px;border-radius:15px;background:#e8f9fb;color:#168ba0;display:grid;place-items:center;font-style:normal}.plan3d p{color:#667b90;line-height:1.8}.plan3d>b{position:absolute;bottom:22px;color:#138fa4}.r8-footer{background:#04111f;color:#fff;padding:30px 6vw;display:flex;justify-content:space-between}.r8-empty{padding:22px;border-radius:18px;background:#f1f5f8;color:#6b7f91}.r8-nav-group,.nav-section-label{display:block!important;margin:12px 8px 7px!important;padding:10px 12px!important;background:linear-gradient(135deg,#102e4b,#0b243c)!important;border:1px solid #27455f!important;border-radius:13px!important;color:#d9eef7!important;font-size:13px!important;font-weight:900!important}.quick-access-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important}.quick-account{background:linear-gradient(145deg,#eafcff,#eef2ff)!important}.student-prof-table td,.student-prof-table th,.student-prof-table .student-name-cell b{color:#102b46!important}.student-prof-table small{color:#6f8293!important}.side-nav [data-page="events"]{display:none!important}.r8-account-head,.r8-account-row{display:grid;grid-template-columns:1.4fr 1fr .7fr 1fr 1fr;gap:10px;align-items:center;padding:12px;border-radius:13px}.r8-account-head{background:#e9f0f6;font-weight:900}.r8-account-row{border:1px solid #dce6ee;background:#fff}.journal-lines{display:grid;gap:8px}.journal-line{display:grid;grid-template-columns:1.2fr .7fr .7fr 1fr 38px;gap:7px}.remove-line{border:0;border-radius:10px;background:#ffe8e8;color:#a63737}.backup-actions{display:flex;gap:10px;flex-wrap:wrap}.backup-list{display:grid;gap:9px;margin-top:18px}.backup-list>div{display:flex;justify-content:space-between;padding:11px;border:1px solid #dde7ef;border-radius:12px}.r8-login{margin:0;background:linear-gradient(135deg,#06182b,#103455);font-family:Tahoma,sans-serif;min-height:100vh}.r8-login main{min-height:100vh;display:grid;grid-template-columns:1fr 520px;align-items:center;gap:50px;padding:50px max(6vw,30px)}.student-login-visual{color:#fff}.r8-login-card{background:#fff;border-radius:30px;padding:38px}.r8-login-card form{display:grid;gap:16px}.r8-login-card label{display:grid;gap:8px}.r8-login-card input{padding:14px;border:1px solid #cedce7;border-radius:14px}.r8-login-card button{border:0;border-radius:15px;padding:14px;background:linear-gradient(135deg,#25c8d7,#3978f3);color:#fff;font-weight:900}.back-home{position:absolute;top:24px;right:30px;color:#fff}.student-plan{margin:0;background:#f3f7fb;color:#122c45;font-family:Tahoma,sans-serif}.student-plan>header{background:#08213a;color:#fff;padding:16px 5vw;display:flex;justify-content:space-between}.student-plan main{padding:28px 5vw}.student-welcome{background:linear-gradient(135deg,#0b2e4b,#12617b);color:#fff;border-radius:28px;padding:30px}.student-kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:12px}.student-kpis article{background:#ffffff13;border:1px solid #ffffff22;border-radius:16px;padding:16px;display:grid}.student-grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:18px;margin-top:20px}.student-grid2>section{background:#fff;border:1px solid #dbe6ee;border-radius:22px;padding:22px}.student-item{padding:13px 0;border-bottom:1px solid #e7eef4}
@media(max-width:1050px){.r8-plan-grid,.r8-feature-grid{grid-template-columns:repeat(2,1fr)}.r8-event-row{grid-template-columns:1fr 1fr}.quick-access-grid{grid-template-columns:repeat(3,1fr)!important}.r8-login main{grid-template-columns:1fr}.student-login-visual{display:none}}@media(max-width:700px){.r8-topbar{height:70px;padding:0 16px}.r8-topbar nav a:not(.top-login){display:none}.r8-hero{height:560px}.r8-hero-shade{background:linear-gradient(0deg,#04111ff0,#04111f66,#04111f11)}.r8-hero-copy{right:20px;left:20px;bottom:55px}.r8-countdown{right:20px;top:20px;bottom:auto}.r8-today,.r8-modern,.r8-extras,.r8-about,.r8-plans{padding:48px 18px}.r8-event-row,.r8-feature-grid,.r8-extra-grid,.r8-plan-grid,.r8-about{grid-template-columns:1fr}.quick-access-grid{grid-template-columns:repeat(2,1fr)!important}.r8-account-head{display:none}.r8-account-row{grid-template-columns:1fr 1fr}.journal-line{grid-template-columns:1fr 1fr}.student-kpis{grid-template-columns:1fr 1fr}.student-grid2{grid-template-columns:1fr}.r8-footer{display:grid;gap:8px;text-align:center}}

/* R9 — usability, accessibility, sidebar hierarchy, account shortcuts */
.sidebar{display:flex!important;flex-direction:column!important;overflow:hidden!important;padding-bottom:14px!important}
.school-brand{flex:0 0 auto}
.side-nav{flex:1 1 auto!important;min-height:0!important;overflow-y:auto!important;overflow-x:hidden!important;margin:18px -5px 10px 0!important;padding:0 0 18px 5px!important;scrollbar-width:thin;scrollbar-color:#2c6a83 #0a2035}
.side-nav::-webkit-scrollbar{width:8px}.side-nav::-webkit-scrollbar-track{background:#0a2035;border-radius:10px}.side-nav::-webkit-scrollbar-thumb{background:#2d6d85;border-radius:10px}
.sidebar-foot{position:static!important;flex:0 0 auto;margin:6px 2px 0!important;padding:10px 12px;border-radius:14px;background:#081d31;border:1px solid #183b55}
.nav-cluster{display:block;margin:0 0 14px;padding:11px;border-radius:20px;background:linear-gradient(155deg,#0d2943,#071c30);border:1px solid #23445d;box-shadow:0 10px 22px rgba(0,0,0,.14)}
.nav-section-label{margin:0 0 10px!important;padding:12px 14px!important;font-size:17px!important;line-height:1.4!important;text-align:right!important;background:linear-gradient(135deg,#153c60,#0f314f)!important;border-color:#2e5b78!important;color:#fff!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.07)}
.nav-cluster-items{display:grid;gap:7px}.nav-cluster-items button{margin:0!important;background:#0a2035!important;border:1px solid #183b55!important;min-height:48px!important}.nav-cluster-items button:hover,.nav-cluster-items button.active{background:linear-gradient(135deg,#10405a,#0e5264)!important;border-color:#2cd4dc!important}
.nav-cluster-items button b{font-size:14px;line-height:1.5}

/* remove internal event banner; events belong only to the public homepage */
.today-event-banner{display:none!important}

/* explicit account creation area */
.account-launcher{border:1px solid #c8ddea!important;box-shadow:0 22px 55px rgba(8,36,61,.11)!important}
.account-launcher .quick-access-head p{margin:5px 0 0;color:#5f7387;font-size:13px}
.account-quick-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.account-quick-grid button{min-height:138px!important;border-radius:22px!important;padding:20px!important;box-shadow:0 12px 0 #dce8ef,0 22px 34px rgba(20,50,75,.12)!important;transition:.2s!important}
.account-quick-grid button:hover{transform:translateY(-6px)!important;box-shadow:0 7px 0 #d5e3eb,0 28px 38px rgba(20,50,75,.16)!important}
.account-create{border:2px solid transparent!important}.account-create b{font-size:18px!important;color:#0c2943!important}.account-create small{color:#5c7186!important}.teacher-account{background:linear-gradient(145deg,#f4fffb,#e3f7ee)!important;border-color:#9fd8c0!important}.parent-account{background:linear-gradient(145deg,#fffaf0,#f8ecd3)!important;border-color:#e5c98e!important}.student-account{background:linear-gradient(145deg,#f1f8ff,#e3edff)!important;border-color:#a9c4eb!important}

/* student filters — same size, navy 3D cards */
#page-students .filters{display:grid!important;grid-template-columns:repeat(2,minmax(180px,1fr));gap:14px;min-width:min(480px,100%)}
#page-students .filters select{height:62px!important;padding:0 20px!important;border-radius:18px!important;background:linear-gradient(180deg,#153551,#0b263e)!important;color:#fff!important;border:1px solid #315a78!important;box-shadow:0 8px 0 #071b2e,0 14px 24px rgba(7,28,47,.18)!important;font-size:17px!important;font-weight:900!important;line-height:62px!important}
#page-students .filters select:focus{border-color:#33d4db!important;box-shadow:0 7px 0 #071b2e,0 0 0 4px rgba(51,212,219,.14)!important}
#page-students .filters option{background:#0b263e;color:#fff}

/* student table high contrast */
.student-prof-table,.student-prof-table tbody,.student-prof-table tr,.student-prof-table td,.student-prof-table th{color:#0b2740!important}
.student-prof-table thead th{background:#e8f0f6!important;color:#0b2740!important;font-weight:900!important}
.student-prof-table tbody tr{background:#fff!important}.student-prof-table tbody tr:nth-child(even){background:#f6f9fc!important}
.student-prof-table td,.student-prof-table .student-name-cell b,.student-prof-table .metric-number{color:#0a2944!important;opacity:1!important;text-shadow:none!important}
.student-prof-table small{color:#536b7f!important;opacity:1!important}.student-prof-table .badge.ok{color:#087550!important;background:#e5f8ef!important;border-color:#9bdfc5!important}.student-prof-table .badge.warn{color:#8a5a00!important;background:#fff4d8!important;border-color:#efcf7a!important}
.student-prof-table .trend-badge{color:#123c58!important;font-weight:900!important}

/* public hero uses the supplied school sign image visibly, without cropping the sign */
.r8-hero{height:auto!important;min-height:0!important;aspect-ratio:2048/686;background:#071a2e!important}
.r8-hero>img{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center center!important;display:block!important}
.r8-hero-shade{background:linear-gradient(0deg,rgba(3,15,28,.76) 0%,rgba(3,15,28,.14) 34%,rgba(3,15,28,0) 62%)!important}
.r8-hero-copy{right:5vw!important;left:auto!important;bottom:24px!important;max-width:620px!important;background:rgba(5,25,43,.72);backdrop-filter:blur(10px);padding:18px 22px;border-radius:20px;border:1px solid rgba(255,255,255,.16)}
.r8-hero-copy h1{font-size:clamp(25px,2.6vw,42px)!important;margin:6px 0!important}.r8-hero-copy p{font-size:15px!important;line-height:1.8!important;margin:5px 0 11px!important}
.r8-countdown{bottom:24px!important}

@media(max-width:1050px){.account-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r8-hero{aspect-ratio:auto!important;height:520px!important}.r8-hero>img{object-fit:cover!important}.r8-hero-copy{right:20px!important;left:20px!important}.r8-countdown{top:18px!important;right:18px!important;bottom:auto!important}}
@media(max-width:700px){#page-students .filters{grid-template-columns:1fr 1fr!important;min-width:0!important;width:100%}.account-quick-grid{grid-template-columns:1fr!important}.account-quick-grid button{min-height:112px!important}.nav-section-label{font-size:16px!important}.r8-hero{height:430px!important}.r8-hero-copy{padding:14px 16px!important;bottom:16px!important}.r8-hero-copy p{display:none}.r8-hero-copy h1{font-size:24px!important}.r8-countdown{transform:scale(.88);transform-origin:top right}}
\n\n/* R11 FINAL — public home premium finish */\n.r8-public{background:#f4f8fb!important;color:#102b43!important}.r8-topbar{background:rgba(6,25,43,.94)!important;backdrop-filter:blur(16px);box-shadow:0 10px 35px rgba(4,23,40,.16)}.r8-hero{border-bottom:1px solid #d9e5ed!important}.r8-hero-copy{box-shadow:0 20px 54px rgba(1,16,30,.30)!important}.r8-section-title h2{color:#102b43!important}.r8-section-title p{color:#62778a!important}.r8-feature-grid article{background:linear-gradient(145deg,#fff,#f4f9fc)!important;border:1px solid #d9e6ee!important;box-shadow:0 14px 34px rgba(21,59,85,.08)!important;transition:.22s}.r8-feature-grid article:hover{transform:translateY(-6px);box-shadow:0 21px 46px rgba(21,59,85,.13)!important}.feature-icon,.plan-icon{font-style:normal!important;display:grid!important;place-items:center!important;width:54px!important;height:54px!important;border-radius:18px!important;background:linear-gradient(145deg,#0b3657,#0d7280)!important;color:#fff!important;font-size:25px!important;box-shadow:0 12px 25px rgba(12,72,91,.16)!important}.plan3d{border-radius:28px!important;box-shadow:0 16px 0 #d7e4ec,0 29px 54px rgba(14,49,75,.16)!important;transition:.24s!important}.plan3d:hover{transform:translateY(-8px)!important;box-shadow:0 21px 0 #d2e0e8,0 37px 62px rgba(14,49,75,.22)!important}.plan3d h3{color:#102b43!important}.plan3d p{color:#607487!important}.r8-event-row>*,.r8-extra-grid>*{box-shadow:0 13px 32px rgba(20,56,82,.075)!important}.r8-about{border-radius:30px!important;box-shadow:0 20px 48px rgba(18,54,80,.08)!important}\n@media(max-width:700px){.r8-hero-copy{background:rgba(5,25,43,.82)!important}.r8-feature-grid article{min-height:145px}.feature-icon,.plan-icon{width:48px!important;height:48px!important;font-size:22px!important}}\n
/* R14 — licensed/free access controls + private manager polish */
.access-price-box{display:grid;gap:12px;padding:16px;border:1px solid #b9d4e4;border-radius:18px;background:linear-gradient(145deg,#f7fbff,#eef7fb);box-shadow:inset 0 1px 0 #fff}.access-price-box>b{font-size:1rem;color:#0b2b46}.access-price-box label{color:#183b55!important;font-weight:800}.access-price-box input,.access-price-box select{background:#fff!important;color:#0d2740!important;border:1px solid #aac7d8!important}.access-price-box input:disabled{opacity:.55;background:#eef2f5!important}.access-badge{display:inline-flex;width:max-content;margin-top:7px;padding:5px 10px;border-radius:999px;font-size:.76rem;font-weight:900}.access-badge.free{background:#e8f9f2;color:#087758;border:1px solid #b9ead7}.access-badge.paid{background:#e9f5ff;color:#1559a0;border:1px solid #bdd9f5}.access-badge.pending{background:#fff5df;color:#9a5b00;border:1px solid #f3d399}.private-manager-toolbar{border:1px solid #c8d9e5;background:linear-gradient(135deg,#f9fcff,#eef7fb);border-radius:20px;padding:18px 20px!important}.private-manager-toolbar h3{color:#0d2b44!important}.private-manager-toolbar p{color:#3e5c70!important}.private-manager-toolbar .lock-badge{background:#0c3150;color:#fff;border-color:#0c3150}.account-row{grid-template-columns:minmax(220px,1fr) minmax(150px,.45fr) minmax(280px,auto)!important}.row-actions{flex-wrap:wrap;justify-content:flex-end}.row-actions .btn{min-height:38px}.r8-account-head,.r8-account-row{grid-template-columns:1.2fr .9fr 1fr .7fr 1fr 1.4fr!important}.r8-account-row .row-action{margin:2px}.quick-access-grid.account-quick-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
@media(max-width:1100px){.quick-access-grid.account-quick-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.account-row{grid-template-columns:1fr!important}.row-actions{justify-content:flex-start}.r8-account-head{display:none!important}.r8-account-row{grid-template-columns:1fr!important;gap:10px!important}}
@media(max-width:620px){.quick-access-grid.account-quick-grid{grid-template-columns:1fr!important}.access-price-box{padding:13px}.private-manager-toolbar{padding:14px!important}}

.student-toolbar-actions{display:flex;align-items:center;gap:12px;flex-wrap:wrap}.student-toolbar-actions .filters{display:flex;gap:8px;flex-wrap:wrap}@media(max-width:760px){.student-toolbar-actions{width:100%;align-items:stretch}.student-toolbar-actions>.btn{width:100%}.student-toolbar-actions .filters{width:100%}.student-toolbar-actions .filters select{flex:1;min-width:0}}

/* R17 PREMIUM TYPE SYSTEM */
@font-face{font-family:"Noto Persian";src:url("/static/fonts/NotoSansArabic-Regular.ttf") format("truetype");font-style:normal;font-weight:400;font-display:swap}
@font-face{font-family:"Noto Persian";src:url("/static/fonts/NotoSansArabic-Bold.ttf") format("truetype");font-style:normal;font-weight:700;font-display:swap}
.r8-public,.r8-public input,.r8-public button{font-family:"Noto Persian",Tahoma,"Segoe UI",Arial,sans-serif!important}

/* R17 — public website final visual system */
.r8-topbar{padding-inline:clamp(18px,5vw,72px)!important}
.r8-brand>span{box-shadow:0 10px 28px rgba(35,200,219,.24)}
.r8-topbar nav a{transition:.2s ease}.r8-topbar nav a:hover{color:#7ceaf2;transform:translateY(-1px)}
.r8-hero-copy{direction:rtl!important}
.r8-section-title h2{letter-spacing:-.02em!important}
.r8-feature-grid article,.r8-event-row article,.r8-extra-grid article,.plan3d{transition:transform .24s ease,box-shadow .24s ease,border-color .24s ease!important}
.r8-feature-grid article:focus-within,.r8-event-row article:focus-within,.plan3d:focus-visible{outline:3px solid rgba(35,200,219,.32);outline-offset:4px}
.plan3d{transform-style:preserve-3d!important;overflow:hidden!important}
.plan3d:before{content:"";position:absolute;inset:0;pointer-events:none;background:linear-gradient(135deg,rgba(35,200,219,.10),transparent 42%,rgba(57,119,246,.07));opacity:.8}
.r8-plans{background:linear-gradient(180deg,#f4f8fb 0%,#eaf2f7 100%)}
.r8-about{margin-inline:clamp(12px,5vw,72px);border-radius:32px!important;padding-inline:clamp(24px,5vw,72px)!important}
.r8-footer{margin-top:24px!important}
.r8-topbar .top-login{box-shadow:0 8px 20px rgba(0,0,0,.18)}
@media(max-width:700px){.r8-topbar nav{gap:8px}.r8-topbar nav a.top-login{padding:9px 13px}.r8-brand small{font-size:10px}.r8-brand b{font-size:14px}.r8-about{margin-inline:12px!important;border-radius:24px!important}.r8-footer{display:grid!important;gap:6px;text-align:center}}

.skip-link{position:fixed;top:10px;right:10px;z-index:1000;transform:translateY(-160%);padding:10px 16px;border-radius:12px;background:#0b3657;color:#fff;font-weight:800;box-shadow:0 8px 24px rgba(0,0,0,.22);transition:.2s}.skip-link:focus{transform:translateY(0);outline:3px solid #23c8db;outline-offset:3px}
:focus-visible{outline:3px solid rgba(35,200,219,.55);outline-offset:3px}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important;transition-duration:.01ms!important}}

/* R21-P1 — master prompt premium public-site baseline */
.r21-public{--cream:#fbf8f1;--gold:#b99045;--navy:#07182b;--paper:#fff;--soft:#edf3f7;background:linear-gradient(180deg,#f8fafc 0%,#f4f7f9 48%,#fbf8f1 100%)!important}
.r21-topbar{border-bottom:1px solid rgba(255,255,255,.08)}
.r21-search-btn{border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.07);color:#e7f0f7;border-radius:12px;padding:9px 12px;font:inherit;font-weight:800;cursor:pointer}
.r21-searchbar{position:sticky;top:86px;z-index:29;background:#fff;border-bottom:1px solid #dce5eb;box-shadow:0 14px 30px rgba(9,37,59,.08);padding:16px max(5vw,28px);display:grid;grid-template-columns:auto minmax(280px,700px) 1fr;gap:16px;align-items:center}.r21-searchbar>div{display:flex;gap:8px}.r21-searchbar input{width:100%;padding:12px 14px;border-radius:13px;border:1px solid #cddbe4;font:inherit}.r21-searchbar button{border:0;background:#0a3554;color:#fff;border-radius:12px;padding:10px 18px;font:inherit;font-weight:900}.r21-searchbar small{color:#61788b}.r21-searchbar.hidden{display:none!important}
.r21-hero-copy{border-right:3px solid rgba(185,144,69,.75)!important}
.r21-smart-strip{position:relative;z-index:4;margin:-18px auto 0;width:min(1240px,calc(100% - 40px));display:grid;grid-template-columns:repeat(6,1fr);background:rgba(255,255,255,.95);border:1px solid #d9e3ea;border-radius:26px;box-shadow:0 24px 55px rgba(12,45,68,.13);overflow:hidden}.r21-smart-strip article{padding:20px 16px;min-height:125px;display:grid;gap:6px;align-content:center;text-align:center;border-left:1px solid #e6edf2}.r21-smart-strip article:last-child{border-left:0}.r21-smart-strip i{font-style:normal;font-size:25px}.r21-smart-strip b{font-size:14px;color:#102f48}.r21-smart-strip span{font-size:11.5px;line-height:1.8;color:#6b7d8c}
.r21-why{padding:78px max(5vw,28px);background:var(--cream)}.r21-value-grid{max-width:1200px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:18px}.r21-value-grid article{background:#fff;border:1px solid #e6e0d3;border-radius:26px;padding:27px;min-height:215px;box-shadow:0 18px 42px rgba(48,59,69,.075);position:relative;overflow:hidden}.r21-value-grid article:after{content:"";position:absolute;width:110px;height:110px;border-radius:50%;left:-38px;bottom:-45px;background:radial-gradient(circle,rgba(185,144,69,.16),transparent 68%)}.r21-value-grid span{display:inline-grid;place-items:center;width:42px;height:42px;border-radius:14px;background:#f3eadb;color:#8b6422;font-weight:900}.r21-value-grid h3{margin:18px 0 8px;color:#0b2c46}.r21-value-grid p{color:#65788a;line-height:2;margin:0}
.r21-highlights{padding:72px max(5vw,28px);background:#fff}.r21-highlight-grid{max-width:1100px;margin:auto;display:grid;grid-template-columns:repeat(4,1fr);gap:14px}.r21-highlight-grid article{border:1px solid #dce7ee;border-radius:22px;padding:22px;background:linear-gradient(145deg,#fff,#f6fafc);display:grid;gap:8px}.r21-highlight-grid b{color:#0c3856;font-size:17px}.r21-highlight-grid span{color:#6a7d8e;line-height:1.85}
.r21-about{background:linear-gradient(135deg,#07182b,#0c2b48)!important;border:1px solid rgba(255,255,255,.06)}
.r21-plans{padding-top:82px!important}.r21-plans .plan3d{min-height:270px!important}.r21-plans .plan3d small{color:#8798a6;font-weight:800}.r21-footer{display:grid!important;grid-template-columns:1.4fr repeat(3,1fr);gap:22px;align-items:start}.r21-footer>div{display:grid;gap:6px}.r21-footer small{color:#8fa4b5}.r21-footer span{color:#dbe6ee;line-height:1.8}
@media(max-width:1100px){.r21-smart-strip{grid-template-columns:repeat(3,1fr)}.r21-smart-strip article:nth-child(3n){border-left:0}.r21-value-grid,.r21-highlight-grid{grid-template-columns:repeat(2,1fr)}.r21-footer{grid-template-columns:repeat(2,1fr)!important}}
@media(max-width:700px){.r21-topbar nav>a:not(.top-login),.r21-search-btn{display:none}.r21-searchbar{top:70px;grid-template-columns:1fr;padding:12px 16px}.r21-smart-strip{grid-template-columns:repeat(2,1fr);width:calc(100% - 24px);border-radius:20px}.r21-smart-strip article{min-height:110px;padding:15px 10px}.r21-smart-strip article:nth-child(odd){border-left:1px solid #e6edf2}.r21-smart-strip article:nth-child(even){border-left:0}.r21-value-grid,.r21-highlight-grid{grid-template-columns:1fr}.r21-value-grid article{min-height:0}.r21-footer{grid-template-columns:1fr!important;text-align:right!important}}

/* === r319-core.css === */

@font-face{
  font-family:"AndishehUI";
  src:url("/static/fonts/andisheh-ui.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}
:root{
  --a-bg:#03111d;--a-card:#0d304b;--a-card2:#09243a;--a-line:rgba(79,171,228,.25);
  --a-text:#f3f8fc;--a-muted:#a9bfd0;--a-cyan:#49c9ff;--a-green:#2fc89b;
  --a-orange:#e8a64f;--a-red:#ef6f72;--a-gold:#e3bb61;
}
html{min-height:100%!important;height:auto!important;overflow-x:hidden!important;overflow-y:auto!important;background:var(--a-bg)!important;color-scheme:dark!important}
body{min-height:100vh!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:auto!important;background:radial-gradient(circle at 8% -6%,rgba(22,140,255,.13),transparent 28%),linear-gradient(180deg,#03101d,#06192c 42%,#041321)!important;color:var(--a-text)!important}
html[dir="rtl"] body,html[dir="rtl"] body *:not(svg):not(path){font-family:"AndishehUI",Tahoma,"Segoe UI",Arial,sans-serif!important}
.app-shell,.main-area,.parent-shell,.parent-main,.executive-shell,.executive-main,.student-plan,.registration-shell,.counselor-main,.wrap,.page,.panel,.hero-panel{min-width:0!important}
.main-area,.parent-main,.executive-main,.student-plan>main,.registration-shell,.counselor-main,.wrap{height:auto!important;max-height:none!important;overflow-y:visible!important}
.sidebar{max-height:100vh!important;overflow:hidden!important;background:radial-gradient(circle at 50% 4%,rgba(32,132,208,.15),transparent 25%),linear-gradient(180deg,#061b2e,#020d18)!important;border-color:rgba(69,153,214,.24)!important;box-shadow:12px 0 34px rgba(0,0,0,.28)!important}
h1,h2,h3,h4,h5,h6{color:#fff!important;text-shadow:none!important}.muted,.hint,.sub,.subtitle{color:var(--a-muted)!important}
.topbar,.parent-top,.executive-top,.top,.registration-top{min-width:0!important;max-width:100%!important;background:rgba(4,20,34,.96)!important;border-color:rgba(74,165,223,.24)!important;color:#fff!important;box-shadow:0 12px 28px rgba(0,0,0,.23)!important;backdrop-filter:blur(14px)!important}
.topbar,.parent-top,.executive-top{flex-wrap:wrap!important}.top-actions,.parent-actions{min-width:0!important;flex-wrap:wrap!important}
.panel,.auth-card,.login-story,.hero-panel,.quick-access-panel,.archive-panel,.assessment-card,.assessment-runner,.comm-item,.counselor-case,.reg-card,.registration-intro,.payment-info-panel,.meeting-call,.student-welcome,.student-kpis article,.executive-kpis article,.manager-quick,.top-action-card,.bank-info,.dashboard-kpi,.kpi-card,.schedule-card,.vclass-card,.homework-card,.message-card,.report-card,.guidance-card,.archive-card,.quick-card,.operation-card,.counselor-hero,.assessment-report,.comm-center,.item,.question,.metric{background:linear-gradient(155deg,var(--a-card),var(--a-card2))!important;border-color:var(--a-line)!important;color:var(--a-text)!important;box-shadow:0 14px 32px rgba(0,0,0,.24),inset 0 1px 0 rgba(255,255,255,.04)!important}
.panel,.hero-panel,.quick-access-panel,.archive-panel,.comm-center,.assessment-card,.assessment-runner{border-radius:18px!important}
input,select,textarea{background:#071b2d!important;color:#f1f8fd!important;border:1px solid rgba(82,168,223,.33)!important;box-shadow:inset 0 2px 5px rgba(0,0,0,.17)!important}
input::placeholder,textarea::placeholder{color:#809eb5!important}option{background:#071b2d!important;color:#fff!important}
.btn,.icon-btn,.tab{color:#eef8ff!important;background:linear-gradient(155deg,#123955,#09243c)!important;border-color:rgba(84,171,228,.29)!important;box-shadow:0 8px 18px rgba(0,0,0,.18)!important}
.btn.primary,.tab.active{color:#fff!important;background:linear-gradient(135deg,#147fd2,#22aee7)!important;border-color:transparent!important}.btn.danger{background:#6f2630!important;border-color:#a93f49!important}
.status,.badge,.role-chip,.sync-status,.jalali-chip,.soft-pill,.lock-badge{background:#0c2b45!important;border:1px solid rgba(79,171,228,.28)!important;color:#dff3ff!important}
.status.ok,.success,.is-success,.badge.success,[data-status="ok"],[data-state="paid"],[data-state="active"]{color:#dffbf0!important;background:rgba(27,126,94,.28)!important;border-color:rgba(47,200,155,.45)!important}
.status.warn,.notice,.is-warning,.badge.warning,[data-status="warning"],[data-state="warning"],[data-state="pending"]{color:#ffe9bd!important;background:rgba(134,91,23,.30)!important;border-color:rgba(232,166,79,.45)!important}
.status.bad,.error,.is-danger,.badge.danger,[data-status="danger"],[data-state="locked"],[data-state="overdue"]{color:#ffe1e3!important;background:rgba(126,40,48,.32)!important;border-color:rgba(239,111,114,.48)!important}
.status.info,.is-info,.badge.info,[data-status="info"]{color:#ddf3ff!important;background:rgba(24,101,154,.30)!important;border-color:rgba(73,201,255,.40)!important}
.notification.urgent,.notif.urgent,.notification-item.urgent,[data-priority="urgent"],[data-severity="urgent"],[data-severity="critical"]{border-right:4px solid var(--a-red)!important;background:linear-gradient(90deg,rgba(128,39,48,.34),rgba(10,38,59,.96))!important;color:#ffe8e9!important}
.notification.important,.notif.important,.notification-item.important,[data-priority="important"],[data-severity="warning"]{border-right:4px solid var(--a-orange)!important;background:linear-gradient(90deg,rgba(126,85,24,.31),rgba(10,38,59,.96))!important;color:#ffebc5!important}
.notification.normal,.notif.info,.notification-item.info,[data-priority="normal"],[data-severity="info"]{border-right:4px solid var(--a-cyan)!important;background:linear-gradient(90deg,rgba(18,88,136,.30),rgba(10,38,59,.96))!important;color:#e2f5ff!important}
.notification.read,.notif.read,.notification-item.read{opacity:.78!important}
.table-wrap,.table-scroll{max-width:100%!important;overflow:auto!important}table{color:#eef7fd!important}thead th{background:#0d3453!important;color:#fff!important}tbody td{background:#071e32!important;color:#e9f4fb!important}tbody tr:hover td{background:#0a2a45!important}
.photo-drop,.photo-preview,.payment-info-panel,.homework-card,.bank-info>div{background:linear-gradient(155deg,#0d304b,#071d30)!important;color:#eef7fd!important;border-color:rgba(73,165,224,.21)!important}.photo-preview{color:#9fb9cb!important}
body .wrap{max-width:1320px!important}body .notice{border-right:4px solid var(--a-orange)!important}body .error{border-right-color:var(--a-red)!important}body .success{border-right-color:var(--a-green)!important}
@media(max-width:900px){html,body{height:auto!important;overflow-y:auto!important}.main-area,.parent-main,.executive-main,.student-plan>main,.registration-shell,.counselor-main,.wrap{padding:12px!important;overflow-y:visible!important}.topbar,.parent-top,.executive-top,.top{position:sticky!important;top:0!important}.layout-2,.student-grid2,.grid2,.grid3,.form-grid{grid-template-columns:1fr!important}.kpi-grid,.student-kpis,.executive-kpis{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* === r319-home.css === */

body.r319-root-home{display:grid!important;grid-template-columns:176px minmax(0,1fr)!important;gap:24px!important;align-items:start!important;padding:18px!important}
body.r319-root-home>.r303-brand-rail{grid-column:1!important;position:sticky!important;top:18px!important;left:auto!important;right:auto!important;bottom:auto!important;width:176px!important;height:calc(100vh - 36px)!important;margin:0!important;padding:11px!important;overflow:auto!important;border:1px solid rgba(82,179,237,.31)!important;border-radius:28px!important;background:radial-gradient(circle at 48% 5%,rgba(52,161,230,.20),transparent 29%),linear-gradient(180deg,#082039,#04131f 63%,#020b14)!important;box-shadow:0 30px 66px rgba(0,0,0,.42),0 10px 24px rgba(0,0,0,.23),inset 0 1px 0 rgba(255,255,255,.07)!important;z-index:25!important}
body.r319-root-home>.r303-site-stage{grid-column:2!important;position:relative!important;min-width:0!important;width:100%!important;max-width:1050px!important;justify-self:center!important;margin:0!important;padding:0!important;min-height:100vh!important;height:auto!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important}
body.r319-root-home .r303-brand-lockup{display:grid!important;grid-template-columns:48px minmax(0,1fr)!important;align-items:center!important;gap:8px!important;margin:0!important;padding:11px 8px!important;border:1px solid rgba(80,175,234,.20)!important;border-radius:18px!important;background:linear-gradient(155deg,rgba(15,56,87,.92),rgba(5,22,37,.94))!important;box-shadow:0 12px 25px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.05)!important}
body.r319-root-home .r303-brand-lockup img{width:48px!important;height:48px!important;margin:0!important}body.r319-root-home .r303-brand-lockup b{font-size:17px!important;line-height:1.2!important;color:#fff!important}body.r319-root-home .r303-brand-lockup small{font-size:7.7px!important;color:#94b3c8!important}
body.r319-root-home .r303-brand-rail>h2,body.r319-root-home .r303-brand-rail>ul{display:none!important}
.r319-home-nav{display:grid!important;gap:6px!important;width:100%!important;margin:12px 0 0!important}
.r319-home-nav a{min-height:47px!important;display:flex!important;align-items:center!important;gap:8px!important;padding:8px 10px!important;border-radius:13px!important;border:1px solid transparent!important;color:#c8dce9!important;text-decoration:none!important;font-size:9.8px!important;font-weight:850!important}
.r319-home-nav a .ico{width:26px;height:26px;display:grid;place-items:center;border-radius:8px;color:#63d4ff;background:rgba(25,103,159,.24);border:1px solid rgba(78,178,236,.13)}
.r319-home-nav a:hover,.r319-home-nav a.active{color:#fff!important;background:linear-gradient(90deg,rgba(20,112,191,.68),rgba(8,47,79,.62))!important;border-color:rgba(75,183,241,.27)!important;box-shadow:inset 3px 0 0 #48c9ff!important}
body.r319-root-home .r21p5-header{width:100%!important;max-width:none!important;min-height:60px!important;margin:0 0 14px!important;padding:8px 11px!important;border-radius:18px!important;background:rgba(4,20,34,.96)!important;border:1px solid rgba(73,166,224,.24)!important;box-shadow:0 14px 33px rgba(0,0,0,.25)!important}
body.r319-root-home .r21p5-hero{position:relative!important;width:100%!important;height:355px!important;min-height:355px!important;margin:0 0 14px!important;overflow:hidden!important;border-radius:25px!important;border:1px solid rgba(76,171,229,.28)!important;background:linear-gradient(90deg,rgba(3,15,26,.02) 0%,rgba(3,15,26,.03) 53%,rgba(3,15,26,.53) 64%,rgba(3,15,26,.95) 100%),url('/static/home-r313-hero.png') left center / 61% 100% no-repeat,#06192a!important;box-shadow:0 24px 54px rgba(0,0,0,.35),inset 0 1px 0 rgba(255,255,255,.05)!important}
body.r319-root-home .r21p5-hero .hero-campus{display:none!important}body.r319-root-home .r21p5-hero .hero-atmosphere{background:transparent!important}body.r319-root-home .hero-handwriting{display:none!important}
body.r319-root-home .hero-copy{position:absolute!important;right:30px!important;left:auto!important;top:50%!important;bottom:auto!important;transform:translateY(-50%)!important;width:39%!important;max-width:398px!important;padding:0!important;margin:0!important;text-align:right!important;background:transparent!important}
body.r319-root-home .hero-copy h1{font-size:37px!important;line-height:1.25!important;color:#fff!important}body.r319-root-home .hero-copy h2{font-size:19px!important;line-height:1.6!important;color:#e5bc62!important}body.r319-root-home .hero-copy p{font-size:11px!important;line-height:1.95!important;color:#b6ccdb!important}
body.r319-root-home .r21p5-role-wrap{width:100%!important;max-width:none!important;margin:0 0 14px!important}body.r319-root-home .r21p5-role-grid{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.r319-root-home .r21p5-role-card{min-width:0!important;min-height:216px!important;padding:7px 7px 12px!important;border-radius:19px!important;border:1px solid rgba(77,171,229,.28)!important;background:linear-gradient(160deg,#103550,#08243b 60%,#051825)!important;box-shadow:0 16px 33px rgba(0,0,0,.30),inset 0 1px 0 rgba(255,255,255,.045)!important}
body.r319-root-home .r21p5-role-card img,body.r319-root-home .r21p5-role-card.family .family-card-visual{width:100%!important;height:108px!important;max-height:108px!important;object-fit:cover!important;object-position:center!important;margin:0 0 9px!important;border-radius:13px!important}
#r319RegistrationStatus{width:100%!important;margin:0 0 14px!important;padding:14px 15px!important;border:1px solid rgba(75,170,228,.25)!important;border-radius:19px!important;background:radial-gradient(circle at 87% 18%,rgba(48,164,227,.09),transparent 23%),linear-gradient(155deg,#0d304b,#071d30)!important;box-shadow:0 14px 30px rgba(0,0,0,.23)!important}
#r319RegistrationStatus .r319-reg-head{display:flex!important;align-items:center!important;justify-content:space-between!important;gap:12px!important;flex-wrap:wrap!important}
#r319RegistrationStatus .eyebrow{color:#63d1ff!important;font-size:9px!important;font-weight:900!important}#r319RegistrationStatus h2{margin:2px 0 3px!important;font-size:18px!important;color:#fff!important}#r319RegistrationStatus p{margin:0!important;color:#b6cad9!important;font-size:10px!important;line-height:1.8!important}
#r319RegistrationStatus .r319-reg-badge{min-width:92px!important;padding:8px 12px!important;border-radius:999px!important;text-align:center!important;font-weight:900!important;font-size:10px!important}
#r319RegistrationStatus[data-state="open"] .r319-reg-badge{color:#e1fff1!important;background:rgba(28,132,98,.30)!important;border:1px solid rgba(47,200,155,.46)!important}#r319RegistrationStatus[data-state="closed"] .r319-reg-badge{color:#ffe7c2!important;background:rgba(135,88,21,.30)!important;border:1px solid rgba(232,166,79,.46)!important}#r319RegistrationStatus[data-state="error"] .r319-reg-badge{color:#ffe2e4!important;background:rgba(126,40,48,.31)!important;border:1px solid rgba(239,111,114,.45)!important}
body.r319-root-home .registration-quick-links,body.r319-root-home .registration-quick-links.hidden{display:grid!important;visibility:visible!important;opacity:1!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body.r319-root-home #temporaryRegistration,body.r319-root-home #temporaryRegistration.hidden,body.r319-root-home .temporary-registration,body.r319-root-home .temporary-registration.hidden{display:block!important;visibility:visible!important;opacity:1!important}
body.r319-root-home .registration-quick-links a,body.r319-root-home .temporary-reg-card{background:linear-gradient(155deg,#103550,#08243b)!important;border-color:rgba(76,170,228,.20)!important;color:#eef8ff!important}
body.r319-root-home .registration-quick-links a small,body.r319-root-home .temporary-reg-card small,body.r319-root-home .temporary-registration-head small,body.r319-root-home #temporaryRegistrationStatus{color:#a7bfce!important}
body.r319-root-home .r21p15-home-grid .story-photo{display:none!important}
body.r319-root-home .r21p15-news-table>header,body.r319-root-home .r21p15-school-events-head,body.r319-root-home .r21p15-news-table .r21p5-news-list,body.r319-root-home .r21p15-news-row,body.r319-root-home .r21p5-services a,body.r319-root-home .r21p5-school-story,body.r319-root-home .why-content,body.r319-root-home .r21p5-quote,body.r319-root-home .r21p5-system-highlights article{background:linear-gradient(155deg,#0d304b,#071d30)!important;color:#eef7fd!important;border-color:rgba(74,164,221,.18)!important}
@media(min-width:901px){body.r319-root-home .mnp-floating-support{left:25px!important;bottom:24px!important;transform:scale(.76)!important;transform-origin:left bottom!important;z-index:60!important}}
@media(max-width:1180px){body.r319-root-home{grid-template-columns:148px minmax(0,1fr)!important;gap:18px!important;padding:14px!important}body.r319-root-home>.r303-brand-rail{width:148px!important;top:14px!important;height:calc(100vh - 28px)!important}body.r319-root-home>.r303-site-stage{max-width:930px!important}body.r319-root-home .r21p5-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:900px){body.r319-root-home{display:block!important;padding:7px!important}body.r319-root-home>.r303-brand-rail{display:none!important}body.r319-root-home>.r303-site-stage{width:100%!important;max-width:none!important;margin:0!important}body.r319-root-home .r21p5-header{position:sticky!important;top:5px!important;z-index:80!important}body.r319-root-home .r21p5-header nav{display:flex!important;max-width:100%!important;overflow-x:auto!important;flex-wrap:nowrap!important}body.r319-root-home .r21p5-hero{height:auto!important;min-height:408px!important;background:linear-gradient(180deg,rgba(3,15,26,.02) 0%,rgba(3,15,26,.10) 45%,rgba(3,15,26,.90) 69%,#06192a 100%),url('/static/home-r313-hero.png') center top / 100% 58% no-repeat,#06192a!important}body.r319-root-home .hero-copy{right:10px!important;left:10px!important;top:auto!important;bottom:12px!important;width:auto!important;max-width:none!important;transform:none!important;text-align:center!important}body.r319-root-home .hero-copy h1{font-size:25px!important}body.r319-root-home .hero-copy h2{font-size:16px!important}body.r319-root-home .hero-copy p{font-size:10.5px!important}body.r319-root-home .r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body.r319-root-home .registration-quick-links{grid-template-columns:1fr!important}body.r319-root-home .mnp-floating-support{left:10px!important}}

/* === r320-typography.css === */

/* ============================================================
   R31.20 — TYPOGRAPHY & TEXT SPACING SYSTEM
   Loaded last on every HTML page.
   ============================================================ */

@font-face{
  font-family:"AndishehUI";
  src:url("/static/fonts/andisheh-ui.woff2") format("woff2");
  font-style:normal;
  font-weight:100 900;
  font-display:swap;
}

html[lang="fa"],
html[dir="rtl"],
html[dir="rtl"] body,
html[dir="rtl"] body *:not(svg):not(path){
  font-family:"AndishehUI",Tahoma,"Segoe UI",Arial,sans-serif!important;
  letter-spacing:0!important;
}

/* Prevent visual text collision caused by compressed inline/flex items. */
nav,
.top-actions,
.parent-actions,
.footer-links>div,
.hero-actions,
.registration-role-pages,
.account-tabs{
  column-gap:10px!important;
  row-gap:8px!important;
}

nav a,
nav button,
.top-actions>*,
.parent-actions>*,
.footer-links a,
.hero-actions a,
.registration-role-pages button,
.account-tabs button{
  white-space:nowrap!important;
}

/* Generic readable spacing for text-bearing controls. */
button,
.btn,
.icon-btn,
a,
label,
.status,
.badge,
.role-chip,
.sync-status,
.soft-pill{
  text-rendering:optimizeLegibility!important;
}

/* Avoid text clipping in common labels/cards. */
h1,h2,h3,h4,h5,h6,p,small,b,strong,span,label,td,th{
  overflow-wrap:break-word;
}

.side-nav button,
.side-nav a{
  line-height:1.65!important;
}

.top-actions,
.parent-actions{
  min-width:0!important;
  max-width:100%!important;
}

/* Consistent semantic text contrast */
.status.ok,.success,.badge.success,
[data-state="active"],[data-state="paid"]{
  color:#e8fff5!important;
}
.status.warn,.notice,.badge.warning,
[data-state="pending"],[data-state="warning"]{
  color:#fff0c9!important;
}
.status.bad,.error,.badge.danger,
[data-state="danger"],[data-state="overdue"]{
  color:#ffe7e9!important;
}
.status.info,.badge.info{
  color:#e6f7ff!important;
}

/* Keep panel form values readable even when older theme rules conflict. */
html body :is(.app-shell,.wrap) :is(input,select,textarea):not([type="checkbox"]):not([type="radio"]){
  color-scheme:dark!important;
  background:#071b2d!important;
  color:#f7fbff!important;
  -webkit-text-fill-color:#f7fbff!important;
  caret-color:#f7fbff!important;
  border-color:rgba(145,196,226,.58)!important;
}
html body :is(.app-shell,.wrap) :is(input,textarea)::placeholder{
  color:#c5d5e1!important;
  -webkit-text-fill-color:#c5d5e1!important;
  opacity:1!important;
}
html body :is(.app-shell,.wrap) input:-webkit-autofill,
html body :is(.app-shell,.wrap) input:-webkit-autofill:hover,
html body :is(.app-shell,.wrap) input:-webkit-autofill:focus{
  -webkit-text-fill-color:#f7fbff!important;
  -webkit-box-shadow:0 0 0 1000px #071b2d inset!important;
  caret-color:#f7fbff!important;
}
html body :is(.app-shell,.wrap) option{background:#071b2d!important;color:#f7fbff!important}

/* The Smart School link must stay on one line in the narrow sidebar. */
#smartSchoolNav{display:flex!important;flex-wrap:nowrap!important;align-items:center!important;gap:12px!important}
#smartSchoolNav>span{flex:0 0 30px!important}
#smartSchoolNav>b{display:block!important;flex:1 1 auto!important;min-width:0!important;white-space:nowrap!important;overflow-wrap:normal!important;word-break:normal!important}
#smartSchoolNav>small{display:none!important}

/* Mobile: never let text-only action rows create a page-wide horizontal scrollbar. */
@media(max-width:900px){
  .top-actions,
  .parent-actions,
  nav{
    max-width:100%!important;
  }
}

/* === r320-home-layout.css === */

/* ============================================================
   R31.20 — HOMEPAGE STRUCTURAL CLEANUP
   Fixes actual visual collision seen in screenshot:
   "صفحه اصلیدرباره ما..." etc.
   ============================================================ */

/* Main header: give brand, nav and tools real independent columns. */
body.r319-root-home .r21p5-header{
  display:grid!important;
  grid-template-columns:minmax(205px,245px) minmax(0,1fr) max-content!important;
  align-items:center!important;
  gap:12px!important;
  height:auto!important;
  min-height:66px!important;
  padding:8px 12px!important;
  overflow:visible!important;
}

body.r319-root-home .r21p5-brand{
  min-width:0!important;
  width:auto!important;
  max-width:245px!important;
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
}

body.r319-root-home .r21p5-brand img{
  flex:0 0 auto!important;
}

body.r319-root-home .r21p5-brand span{
  min-width:0!important;
}

body.r319-root-home .r21p5-brand b,
body.r319-root-home .r21p5-brand small{
  display:block!important;
  white-space:normal!important;
}

/* Critical fix: every top navigation label gets its own visible space. */
body.r319-root-home .r21p5-header nav{
  min-width:0!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex-wrap:wrap!important;
  gap:6px 10px!important;
  margin:0!important;
  padding:0 4px!important;
}

body.r319-root-home .r21p5-header nav a{
  display:inline-flex!important;
  align-items:center!important;
  justify-content:center!important;
  flex:0 0 auto!important;

  margin:0!important;
  padding:7px 8px!important;

  min-height:34px!important;

  border-radius:9px!important;

  white-space:nowrap!important;

  font-size:10.5px!important;
  line-height:1.5!important;

  color:#dceaf4!important;
  text-decoration:none!important;
}

body.r319-root-home .r21p5-header nav a:hover{
  background:rgba(44,145,211,.13)!important;
  color:#fff!important;
}

body.r319-root-home .r21p5-header nav a.active{
  color:#f1cc73!important;
  background:rgba(227,187,97,.08)!important;
}

body.r319-root-home .r21p5-header-tools{
  min-width:0!important;
  width:auto!important;
  display:flex!important;
  align-items:center!important;
  justify-content:flex-end!important;
  gap:6px!important;
}

body.r319-root-home .r21p5-header-tools .portal-pill{
  white-space:nowrap!important;
  padding:7px 9px!important;
  font-size:9.5px!important;
}

/* If an older r312 side navigation still exists, do NOT show the second generated nav. */
.r312-side-nav ~ .r319-home-nav{
  display:none!important;
}

/* Normalize the canonical rail nav if old r312 wrapper exists. */
.r312-side-nav{
  display:grid!important;
  gap:6px!important;
}

.r312-side-nav a{
  display:flex!important;
  align-items:center!important;
  gap:8px!important;
  min-height:43px!important;
  padding:8px 10px!important;
  white-space:nowrap!important;
}

/* Registration: keep one status + one actionable route set; hide the duplicate verbose block. */
body.r319-root-home .registration-quick-links{
  margin:0 0 14px!important;
}

body.r319-root-home #temporaryRegistration{
  display:none!important;
}

/* Keep the registration status clear and visually meaningful. */
#r319RegistrationStatus{
  margin-top:0!important;
}
#r319RegistrationStatus[data-state="open"]{
  border-color:rgba(47,200,155,.38)!important;
}
#r319RegistrationStatus[data-state="closed"]{
  border-color:rgba(232,166,79,.38)!important;
}
#r319RegistrationStatus[data-state="error"]{
  border-color:rgba(239,111,114,.42)!important;
}

/* Reduce vertical bloat and establish a consistent rhythm. */
body.r319-root-home .r21p5-hero,
body.r319-root-home #r319RegistrationStatus,
body.r319-root-home .r21p5-role-wrap,
body.r319-root-home .registration-quick-links,
body.r319-root-home .r21p5-services,
body.r319-root-home .r21p15-home-grid,
body.r319-root-home .r21p5-why,
body.r319-root-home .r21p5-system-highlights{
  margin-bottom:16px!important;
}

/* Role cards: balanced desktop layout and less unnecessary vertical length. */
body.r319-root-home .r21p5-role-grid{
  grid-template-columns:repeat(3,minmax(0,1fr))!important;
  gap:12px!important;
}

body.r319-root-home .r21p5-role-card{
  min-height:198px!important;
}

/* Make services visible and uniform without excessive height. */
body.r319-root-home .r21p5-services{
  display:grid!important;
  grid-template-columns:repeat(5,minmax(0,1fr))!important;
  gap:8px!important;
}

body.r319-root-home .r21p5-services a{
  min-width:0!important;
  min-height:98px!important;
  padding:11px!important;
  border-radius:15px!important;
}

/* News / about blocks remain dark and readable. */
body.r319-root-home .r21p15-news-table>header,
body.r319-root-home .r21p15-school-events-head,
body.r319-root-home .r21p15-news-row,
body.r319-root-home .r21p15-news-table .r21p5-news-list{
  color:#eef7fd!important;
}

/* Consistent footer link spacing so labels never appear concatenated. */
body.r319-root-home .footer-links>div{
  display:flex!important;
  flex-wrap:wrap!important;
  gap:8px 14px!important;
}

body.r319-root-home .footer-links a{
  display:inline-flex!important;
  padding:4px 2px!important;
  white-space:nowrap!important;
}

/* Tablet */
@media(max-width:1180px){
  body.r319-root-home .r21p5-header{
    grid-template-columns:minmax(190px,230px) minmax(0,1fr) max-content!important;
  }

  body.r319-root-home .r21p5-header nav{
    gap:5px 7px!important;
  }

  body.r319-root-home .r21p5-header nav a{
    padding:6px!important;
    font-size:9.5px!important;
  }

  body.r319-root-home .r21p5-services{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

/* Mobile: header becomes two-row and navigation scrolls rather than collides. */
@media(max-width:900px){
  body.r319-root-home .r21p5-header{
    grid-template-columns:minmax(0,1fr) auto!important;
    gap:8px!important;
  }

  body.r319-root-home .r21p5-brand{
    max-width:none!important;
  }

  body.r319-root-home .r21p5-header nav{
    grid-column:1/-1!important;
    order:3!important;

    display:flex!important;
    justify-content:flex-start!important;
    flex-wrap:nowrap!important;

    max-width:100%!important;
    overflow-x:auto!important;
    overflow-y:hidden!important;

    gap:8px!important;
    padding:4px 1px 2px!important;

    scrollbar-width:thin!important;
  }

  body.r319-root-home .r21p5-header nav a{
    flex:0 0 auto!important;
    padding:7px 10px!important;
    font-size:10px!important;
  }

  body.r319-root-home .r21p5-role-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.r319-root-home .r21p5-services{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }
}

@media(max-width:520px){
  body.r319-root-home .r21p5-role-grid{
    grid-template-columns:1fr!important;
  }

  body.r319-root-home .r21p5-services{
    grid-template-columns:1fr!important;
  }
}

/* === r320-visual-lift.css === */
/* Preview stylesheet for the homepage layout and visual refinements. */
body.r319-root-home {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  gap: 16px !important;
  align-items: start !important;
  padding: 18px !important;
}

body.r319-root-home > .r20-themebar {
  grid-row: 1 !important;
  grid-column: 1 !important;
  width: min(1250px, 100%) !important;
  margin: 0 auto !important;
}

body.r319-root-home > .r312-home-shell {
  display: grid !important;
  grid-row: 2 !important;
  grid-column: 1 !important;
  grid-template-columns: 250px minmax(0, 1fr) !important;
  gap: 20px !important;
  align-items: start !important;
  width: min(1250px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

body.r319-root-home > .r312-home-shell > .r312-home-side {
  grid-row: 1 !important;
  grid-column: 1 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.r319-root-home > .r312-home-shell > .r312-home-main {
  grid-row: 1 !important;
  grid-column: 2 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 100% !important;
}

body.r319-root-home > .mnp-support-footer {
  grid-row: 3 !important;
  grid-column: 1 !important;
  width: min(1250px, 100%) !important;
  max-width: 100% !important;
  min-width: 0 !important;
  margin: 0 auto !important;
}

@media (max-width: 760px) {
  body.r319-root-home {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 12px !important;
    padding: 8px !important;
  }

  body.r319-root-home > .r312-home-shell {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    width: 100% !important;
  }

  body.r319-root-home > .r312-home-shell > .r312-home-side,
  body.r319-root-home > .r312-home-shell > .r312-home-main {
    grid-row: auto !important;
    grid-column: 1 !important;
  }

  /* The main header repeats this navigation; keep the useful quick links. */
  body.r319-root-home .r303-brand-lockup,
  body.r319-root-home .r312-side-nav {
    display: none !important;
  }

  body.r319-root-home .r319-home-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
  }

  body.r319-root-home .r319-home-nav a {
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 7px !important;
    white-space: normal !important;
    justify-content: center !important;
  }

  body.r319-root-home > .r20-themebar,
  body.r319-root-home > .mnp-support-footer {
    width: 100% !important;
  }
}

@media (min-width: 361px) and (max-width: 760px) {
  body.r319-root-home .r319-home-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Increase the homepage focal image without cropping or changing its source. */
body.r319-root-home .r312-hero,
body.r319-root-home .r312-hero-media {
  height: auto !important;
  min-height: 0 !important;
}

body.r319-root-home .r312-hero-media img {
  display: block !important;
  width: 92% !important;
  max-width: none !important;
  height: auto !important;
  object-fit: contain !important;
  margin-inline: auto !important;
}

/* Replace the muted event ribbon with the site's existing navy and gold. */
body.r319-root-home > .r20-themebar {
  min-height: 54px !important;
  border: 1px solid rgba(226, 193, 126, .62) !important;
  border-radius: 16px !important;
  background: linear-gradient(112deg, #0a3452 0%, #12556c 55%, #123d56 100%) !important;
  box-shadow: 0 12px 26px rgba(5, 27, 44, .24), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

body.r319-root-home > .r20-themebar > b {
  border: 1px solid rgba(226, 193, 126, .34) !important;
  border-radius: 999px !important;
  background: rgba(238, 213, 159, .15) !important;
  color: #fff !important;
}

/* Taller photos and a clearer raised edge for school role cards. */
body.r319-root-home .r21p5-role-card {
  min-height: 222px !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 9px 0 #031a2a, 0 23px 36px rgba(0, 0, 0, .30), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

body.r319-root-home .r21p5-role-card img,
body.r319-root-home .r21p5-role-card.family .family-card-visual {
  height: 132px !important;
  max-height: 132px !important;
}

body.r319-root-home .r21p5-role-card h3 {
  color: #fff !important;
}

body.r319-root-home .r21p5-role-card p {
  color: #b8cddd !important;
}

/* Carry the raised-card treatment into portal menus and dashboard shortcuts. */
.portal-card,
.quick-access-grid button,
.dashboard-grid > *,
.stats-grid > *,
.account-quick-grid button,
.kpi-grid .kpi {
  transform: translateY(-2px);
  box-shadow: 0 8px 0 rgba(10, 45, 73, .20), 0 22px 36px rgba(8, 34, 56, .16), inset 0 1px 0 rgba(255, 255, 255, .08) !important;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease !important;
}

.side-nav button,
.nav-cluster-items button {
  box-shadow: 0 3px 0 rgba(4, 24, 40, .14), inset 0 1px 0 rgba(255, 255, 255, .04) !important;
  transition: transform .18s ease, box-shadow .18s ease, background-color .18s ease !important;
}

@media (hover: hover) {
  body.r319-root-home .r21p5-role-card:hover,
  .portal-card:hover,
  .quick-access-grid button:hover,
  .dashboard-grid > *:hover,
  .stats-grid > *:hover,
  .account-quick-grid button:hover,
  .kpi-grid .kpi:hover {
    transform: translateY(-7px) !important;
    box-shadow: 0 12px 0 rgba(10, 45, 73, .18), 0 31px 46px rgba(8, 34, 56, .23), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  }

  .side-nav button:hover,
  .nav-cluster-items button:hover {
    transform: translateX(-3px) !important;
    box-shadow: 0 8px 18px rgba(0, 0, 0, .15) !important;
  }
}

@media (max-width: 760px) {
  body.r319-root-home .r21p5-role-card {
    min-height: 214px !important;
  }

  body.r319-root-home .r21p5-role-card img,
  body.r319-root-home .r21p5-role-card.family .family-card-visual {
    height: 120px !important;
    max-height: 120px !important;
  }

  .portal-card,
  .quick-access-grid button,
  .dashboard-grid > *,
  .stats-grid > *,
  .account-quick-grid button,
  .kpi-grid .kpi {
    transform: translateY(-1px);
    box-shadow: 0 5px 0 rgba(10, 45, 73, .16), 0 14px 24px rgba(8, 34, 56, .14) !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.r319-root-home .r21p5-role-card,
  .portal-card,
  .quick-access-grid button,
  .dashboard-grid > *,
  .stats-grid > *,
  .account-quick-grid button,
  .kpi-grid .kpi,
  .side-nav button,
  .nav-cluster-items button {
    transition: none !important;
  }
}

/* R32.5: consistent rounded frames and a structured hero motto. */
body.r319-root-home .r312-hero,
body.r319-root-home .r312-hero-media {
  position: relative !important;
  overflow: hidden !important;
  border-radius: 22px !important;
}

body.r319-root-home .r312-hero-media {
  background: #061a2b !important;
}

body.r319-root-home .r312-hero {
  border: 1px solid rgba(77, 171, 229, .28) !important;
  box-shadow: 0 20px 44px rgba(5, 23, 38, .20) !important;
}

body.r319-root-home .r312-hero-media img {
  border-radius: 20px !important;
}

body.r319-root-home .r312-hero-media::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(6, 26, 43, .42) 0%, rgba(6, 26, 43, .22) 48%, transparent 82%);
  pointer-events: none;
}

body.r319-root-home .r321-hero-tagline {
  position: absolute;
  z-index: 2;
  left: clamp(22px, 4vw, 42px);
  top: 50%;
  display: grid;
  gap: 3px;
  width: 36%;
  box-sizing: border-box;
  padding: 10px 12px 48px;
  border: 1px solid rgba(226, 193, 126, .24);
  border-radius: 16px;
  background: rgba(4, 22, 35, .95);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .05);
  backdrop-filter: blur(5px);
  direction: rtl;
  text-align: right;
  transform: translateY(-50%);
  text-shadow: 0 3px 16px rgba(0, 0, 0, .45);
  pointer-events: none;
}

body.r319-root-home .r321-hero-tagline span:first-child {
  color: #f6f9fc;
  font-size: clamp(20px, 2.35vw, 30px);
  font-weight: 800;
  line-height: 1.45;
}

body.r319-root-home .r321-hero-tagline span:last-child {
  color: #efd184;
  font-size: clamp(24px, 3.1vw, 39px);
  font-weight: 900;
  line-height: 1.35;
}

body.r319-root-home .r321-hero-tagline::after {
  content: "";
  width: 42px;
  height: 3px;
  margin-top: 9px;
  border-radius: 99px;
  background: #e9c36e;
}

body.r319-root-home .hero-copy {
  padding: clamp(14px, 1.8vw, 22px) !important;
  border: 1px solid rgba(226, 193, 126, .32) !important;
  border-radius: 20px !important;
  background: linear-gradient(145deg, rgba(5, 24, 40, .94), rgba(8, 35, 55, .88)) !important;
  box-shadow: 0 16px 36px rgba(0, 0, 0, .28), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
  backdrop-filter: blur(10px);
}

body.r319-root-home .hero-copy h1 {
  font-size: clamp(20px, 1.9vw, 27px) !important;
  line-height: 1.35 !important;
  overflow-wrap: anywhere;
}

body.r319-root-home .hero-copy h2 {
  font-size: clamp(15px, 1.45vw, 20px) !important;
  line-height: 1.5 !important;
}

body.r319-root-home .hero-copy p {
  font-size: clamp(10px, .9vw, 12px) !important;
  line-height: 1.8 !important;
}

body.r319-root-home .r312-info-card,
body.r319-root-home .r21p5-news,
body.r319-root-home .r31-selected-gallery,
body.r319-root-home #r319RegistrationStatus,
body.r319-root-home .r21p5-services,
body.r319-root-home .r21p15-psych-card,
body.r319-root-home .r21p5-school-story,
body.r319-root-home .r21p5-why,
body.r319-root-home .r21p5-system-highlights article {
  border-radius: 20px !important;
}

body.r319-root-home .r21p5-role-card,
body.r319-root-home .r312-info-card,
body.r319-root-home .r21p5-news,
body.r319-root-home .r31-selected-gallery,
body.r319-root-home .r21p5-services,
body.r319-root-home .r21p15-psych-card,
body.r319-root-home .r21p5-school-story,
body.r319-root-home .r21p5-why,
body.r319-root-home .r21p5-system-highlights article {
  overflow: hidden !important;
}

body.r319-root-home #dailyOccasionBar,
body.r319-root-home .registration-quick-links > a,
body.r319-root-home .r21p5-services a {
  border-radius: 16px !important;
}

body.r319-root-home img:not([src*="icon-192"]):not(.mnp-support-logo) {
  border-radius: 14px !important;
}

body.r319-root-home img[src*="icon-192"] {
  border-radius: 12px !important;
}

body.r319-root-home .r312-hero-media img {
  border-radius: 20px !important;
}

/* Shared dashboard, parent, and portal frames use one comfortable radius. */
.panel,
.page-toolbar,
.archive-panel,
.quick-access-panel,
.account-launcher,
.portal-card,
.dashboard-grid > *,
.stats-grid > *,
.page .card,
.student-grid2 > section,
.assessment-card,
.exam-card-ready,
.exam-card-locked,
.parent-link-grid > div,
.security-cards > * {
  border-radius: 20px !important;
}

.portal-card img,
.panel img:not([src*="icon"]):not([class*="logo"]),
.student-card img:not([src*="icon"]),
.assessment-card img:not([src*="icon"]),
.student-grid2 img:not([src*="icon"]),
.role-login img:not([src*="icon"]),
.auth-shell img:not([src*="icon"]) {
  border-radius: 14px !important;
}

.portal-card h2,
.panel h2,
.panel h3,
.page-toolbar h2,
.page-toolbar h3 {
  overflow-wrap: anywhere;
  line-height: 1.45;
}

.quick-access-grid button b,
.quick-access-grid button small,
.account-quick-grid button b,
.side-nav button b,
.nav-cluster-items button b {
  overflow-wrap: anywhere;
  line-height: 1.55;
}

@media (max-width: 760px) {
  body.r319-root-home .r312-hero {
    display: flex !important;
    flex-direction: column !important;
  }

  body.r319-root-home .r312-hero-copy-host {
    position: relative !important;
    display: block !important;
    width: 100% !important;
    height: auto !important;
    padding: 10px !important;
  }

  body.r319-root-home .hero-copy {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    transform: none !important;
  }

  body.r319-root-home .r312-hero,
  body.r319-root-home .r312-hero-media {
    border-radius: 18px !important;
  }

  body.r319-root-home .r312-hero-media::after {
    background: linear-gradient(90deg, rgba(6, 26, 43, .44) 0%, rgba(6, 26, 43, .25) 50%, transparent 86%);
  }

  body.r319-root-home .r321-hero-tagline {
    left: 15px;
    width: 48%;
    padding: 8px 10px 40px;
    border-radius: 14px;
  }

  body.r319-root-home .r321-hero-tagline span:first-child {
    font-size: clamp(15px, 4.2vw, 18px);
  }

  body.r319-root-home .r321-hero-tagline span:last-child {
    font-size: clamp(18px, 5vw, 22px);
  }

  body.r319-root-home .hero-copy {
    padding: 12px !important;
    border-radius: 16px !important;
  }

  body.r319-root-home .hero-copy h1 {
    font-size: clamp(19px, 5.5vw, 24px) !important;
  }

  body.r319-root-home .hero-copy h2 {
    font-size: clamp(14px, 4vw, 17px) !important;
  }
}

/* === r328-user-layer-fix.css === */
/* R32.8: shared event-header styling and reliable dashboard scrolling. */
.r20-themebar,
.r328-defense-week-header,
body[data-theme="defense-week"] :is(.r8-topbar, .topbar) {
  min-height: 54px !important;
  border: 1px solid rgba(226, 193, 126, .62) !important;
  border-radius: 16px !important;
  background: linear-gradient(112deg, #0a3452 0%, #12556c 55%, #123d56 100%) !important;
  box-shadow: 0 12px 26px rgba(5, 27, 44, .24), inset 0 1px 0 rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

.r20-themebar > b {
  border: 1px solid rgba(226, 193, 126, .34) !important;
  border-radius: 999px !important;
  background: rgba(238, 213, 159, .15) !important;
  color: #fff !important;
}

body[data-theme="defense-week"] :is(.r8-topbar, .topbar) {
  border-bottom: 2px solid rgba(226, 193, 126, .72) !important;
}

body[data-theme="defense-week"] :is(.r8-topbar, .topbar) :is(a, h1, h2, h3, p, span, b, small) {
  color: #f5fbff !important;
}

.r328-defense-week-header :is(a, h1, h2, h3, p, span, b, small) {
  color: #f5fbff !important;
}

html.r328-app-scroll,
html.r328-app-scroll body {
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
}

html.r328-app-scroll body {
  min-height: 100vh !important;
  touch-action: pan-y pinch-zoom !important;
  -webkit-overflow-scrolling: touch !important;
}

html.r328-app-scroll #appView.app-shell,
html.r328-app-scroll #appView .main-area,
html.r328-app-scroll #appView .page.active-page {
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
}

html.r328-app-scroll #appView.app-shell {
  min-height: 100vh !important;
}

html.r328-app-scroll #appView .main-area {
  min-height: 100vh !important;
  min-width: 0 !important;
}

@media (min-width: 901px) {
  body.r319-root-home .r312-home-side {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    min-width: 0 !important;
    overflow: visible !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy {
    position: relative !important;
    inset: auto !important;
    z-index: auto !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    margin: 0 !important;
    padding: 14px !important;
    box-sizing: border-box !important;
    border: 1px solid rgba(226, 193, 126, .34) !important;
    border-radius: 18px !important;
    background: linear-gradient(150deg, #123b58, #071f34) !important;
    box-shadow: 0 12px 28px rgba(3, 20, 33, .22), inset 0 1px 0 rgba(255, 255, 255, .06) !important;
    text-align: right !important;
    transform: none !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy h1 {
    margin: 0 0 7px !important;
    color: #fff !important;
    font-size: clamp(16px, 1.3vw, 19px) !important;
    line-height: 1.5 !important;
    overflow-wrap: anywhere !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy h2 {
    margin: 0 0 8px !important;
    color: #d5eafa !important;
    font-size: 13px !important;
    line-height: 1.65 !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy p {
    margin: 0 0 11px !important;
    color: #b8cddd !important;
    font-size: 10px !important;
    line-height: 1.8 !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy .hero-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 7px !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy .hero-actions > * {
    width: 100% !important;
    min-height: 38px !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 900px) {
  body.r319-root-home .r312-home-side {
    display: block !important;
  }
}

/* === r329-admin-wheel-contrast.css === */
/* R32.9: route mouse-wheel scrolling to the dashboard and restore control contrast. */
html.r329-admin-scroll,
html.r329-admin-scroll body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  scroll-behavior: auto !important;
}

html.r329-admin-scroll body {
  min-height: 100vh !important;
}

html.r329-admin-scroll #appView.app-shell {
  height: auto !important;
  min-height: 100vh !important;
  max-height: none !important;
  overflow: visible !important;
}

html.r329-admin-scroll #appView .main-area,
html.r329-admin-scroll #appView .page.active-page {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
}

html.r329-admin-scroll #appView .topbar {
  max-width: 100% !important;
}

html.r329-admin-scroll #appView .top-actions {
  height: auto !important;
  max-width: 100% !important;
  flex-wrap: wrap !important;
  overflow: visible !important;
  overscroll-behavior: auto !important;
  scrollbar-width: none !important;
}

html.r329-admin-scroll #appView .top-actions::-webkit-scrollbar {
  display: none !important;
}

html.r329-admin-scroll #appView .top-actions .top-action-card {
  color: #17364d !important;
  -webkit-text-fill-color: #17364d !important;
}

html.r329-admin-scroll #appView .top-actions .top-action-card :is(span, b) {
  color: inherit !important;
  -webkit-text-fill-color: currentColor !important;
}

html.r329-admin-scroll #appView .top-actions .top-action-card.logout-action {
  color: #963b32 !important;
  -webkit-text-fill-color: #963b32 !important;
}

html.r329-admin-scroll #appView .top-actions .top-action-card.refresh-action {
  color: #1e587c !important;
  -webkit-text-fill-color: #1e587c !important;
}

html.r329-admin-scroll #appView .top-actions .top-action-card.back-action {
  color: #70531b !important;
  -webkit-text-fill-color: #70531b !important;
}

/* === r3210-registration-scroll-admin-header.css === */
/* R32.10: registration page wheel support and compact manager toolbar. */
html.r3210-registration-scroll,
html.r3210-registration-scroll body {
  height: auto !important;
  min-height: 100% !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  scroll-behavior: auto !important;
}

html.r3210-registration-scroll body {
  min-height: 100vh !important;
}

html.r3210-registration-scroll .registration-shell {
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  overflow: visible !important;
  touch-action: pan-y pinch-zoom !important;
}

body.registration-public .registration-shell label {
  color: #e0edf6 !important;
  font-weight: 700 !important;
}

body.registration-public .registration-shell label :is(small, span) {
  color: #b9cede !important;
}

html.r329-admin-scroll #appView .top-actions {
  height: auto !important;
  min-height: 50px !important;
  max-width: 100% !important;
  flex-wrap: nowrap !important;
  overflow-x: auto !important;
  overflow-y: hidden !important;
  overscroll-behavior-x: contain !important;
  scrollbar-width: thin !important;
}

html.r329-admin-scroll #appView .top-actions::-webkit-scrollbar {
  display: block !important;
  height: 4px !important;
}

/* === r3211-public-contrast.css === */
/* R32.11: improve public-page reading, family photography, and wheel scrolling. */
html.r3211-wheel-ready {
  scroll-behavior: auto !important;
  overscroll-behavior-y: auto !important;
}

body.r21p5-public .r21p5-role-card p {
  color: #e5eff6 !important;
  -webkit-text-fill-color: #e5eff6 !important;
  font-size: clamp(11px, 1vw, 13px) !important;
  line-height: 1.5 !important;
}

body.r21p5-public .family-card-visual {
  position: relative !important;
  display: block !important;
  overflow: hidden !important;
}

body.r21p5-public .family-card-visual .family-card-icon {
  position: absolute !important;
  inset: 0 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 100% !important;
  min-height: 100% !important;
  max-width: none !important;
  max-height: none !important;
  object-fit: cover !important;
  object-position: center !important;
  border-radius: inherit !important;
}

@media (max-width: 900px) {
  body.r21p5-public .r319-home-nav > a {
    box-sizing: border-box !important;
    min-height: 42px !important;
    color: #24465d !important;
    -webkit-text-fill-color: #24465d !important;
    background: #edf4f7 !important;
    border: 1px solid rgba(36, 70, 93, .18) !important;
    border-radius: 10px !important;
    font-size: 11.5px !important;
    font-weight: 700 !important;
  }

  body.r21p5-public .r319-home-nav > a.active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #174d68 !important;
    border-color: #174d68 !important;
  }

  body.r21p5-public header.r21p5-header nav:not(.r319-home-nav) {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 3px !important;
    width: 100% !important;
    height: auto !important;
    overflow: visible !important;
  }

  body.r21p5-public header.r21p5-header nav:not(.r319-home-nav) > a {
    box-sizing: border-box !important;
    min-width: 0 !important;
    min-height: 40px !important;
    padding: 5px 3px !important;
    justify-content: center !important;
    color: #edf5fb !important;
    -webkit-text-fill-color: #edf5fb !important;
    font-size: 11px !important;
    line-height: 1.35 !important;
    text-align: center !important;
    white-space: normal !important;
  }
}

body.r8-login .r8-login-card h2 {
  color: #17364f !important;
  -webkit-text-fill-color: #17364f !important;
}

body.r8-login .r8-login-card > p:not(.form-error) {
  color: #4d6377 !important;
  -webkit-text-fill-color: #4d6377 !important;
  font-size: 15px !important;
  line-height: 1.6 !important;
}

body.r8-login .r8-login-card label.remember {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  color: #17364f !important;
  -webkit-text-fill-color: #17364f !important;
}

body.r8-login .r8-login-card input[type="checkbox"] {
  box-sizing: border-box !important;
  width: 18px !important;
  height: 18px !important;
  min-width: 18px !important;
  min-height: 18px !important;
  flex: 0 0 18px !important;
  margin: 0 !important;
  accent-color: #176da5 !important;
}

body.r8-login .forgot-password-link {
  color: #155b82 !important;
  -webkit-text-fill-color: #155b82 !important;
  background: #e7f0f5 !important;
  background-image: none !important;
  border: 1px solid #bfd2de !important;
}

body.r8-login .r8-login-card form button:not(.password-visibility-toggle):not(.forgot-password-link):not(.r20-passkey-login) {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background-color: #087b89 !important;
  background-image: linear-gradient(135deg, #087b89, #245bb7) !important;
}

body.r8-login .r8-login-card .password-visibility-toggle {
  color: #17364f !important;
  -webkit-text-fill-color: #17364f !important;
  background: #e7f0f5 !important;
  background-image: none !important;
  border: 1px solid #bfd2de !important;
}

body.andisheh-luxury-theme:not(.r8-login) .forgot-password-link {
  color: #84e1f7 !important;
  -webkit-text-fill-color: #84e1f7 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px !important;
}

body.andisheh-luxury-theme .password-visibility-toggle {
  color: #17364f !important;
  -webkit-text-fill-color: #17364f !important;
  font-weight: 700 !important;
}

/* === r3213-desktop-nav-contrast.css === */
/* R32.13: raise desktop sidebar contrast; R32.11 retains mobile styling. */
@media (min-width: 901px) {
  body.r21p5-public .r319-home-nav > a {
    box-sizing: border-box !important;
    color: #24465d !important;
    -webkit-text-fill-color: #24465d !important;
    background: #edf4f7 !important;
    border: 1px solid rgba(36, 70, 93, .18) !important;
    border-radius: 11px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
  }

  body.r21p5-public .r319-home-nav > a.active {
    color: #fff !important;
    -webkit-text-fill-color: #fff !important;
    background: #174d68 !important;
    border-color: #174d68 !important;
  }
}

/* === r3215-name-contrast.css === */
/* R32.15: keep names legible on light list cards under the dark theme. */
body.andisheh-luxury-theme :is(
  .exec-row,
  .exec-att-row,
  .teacher-performance-row,
  .registration-manager-row,
  .user-registry-row,
  .guidance-manager-card,
  .contract-card,
  .teacher-public-card
) :is(b, strong),
body.andisheh-luxury-theme .registration-manager-row h4,
body.andisheh-luxury-theme .dashboard-registration-row .registration-person b {
  color: #102d4b !important;
  -webkit-text-fill-color: #102d4b !important;
}

body.executive-shell .executive-main .panel-head :is(h2, h3) {
  color: #f3f8fc !important;
  -webkit-text-fill-color: #f3f8fc !important;
}

body.executive-shell .executive-main .panel-head p {
  color: #c6d8e5 !important;
  -webkit-text-fill-color: #c6d8e5 !important;
}

/* === r3220-sitewide-contrast.css === */
/* R32.20: fix verified low-contrast registration copy without changing other themes. */
body.registration-public :is(#regIntro, .reg-note, .reg-note b, header small) {
  color: #d4e1ea !important;
  -webkit-text-fill-color: #d4e1ea !important;
}

body.registration-public .reg-kicker {
  color: #75e7ed !important;
  -webkit-text-fill-color: #75e7ed !important;
}

body.registration-public :is(#regIntro, .reg-note) {
  line-height: 1.8 !important;
}

body.registration-public .reg-window {
  color: #174f43 !important;
  -webkit-text-fill-color: #174f43 !important;
}

body.andisheh-luxury-theme :is(.auth-brand, .auth-card) small {
  color: #c4d5e1 !important;
  -webkit-text-fill-color: #c4d5e1 !important;
}

@media (max-width: 640px) {
  body.registration-public :is(#regIntro, .reg-note) {
    font-size: 14px !important;
  }
}

/* === r3222-home-updates.css === */
.r3222-site-update {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px 22px;
  margin: 18px 0 24px;
  padding: 18px 22px;
  border: 1px solid rgba(125, 190, 209, .3);
  border-radius: 18px;
  color: #f3f8fc;
  background: linear-gradient(115deg, #0b2133, #123c52);
  box-shadow: 0 12px 28px rgba(4, 19, 33, .12);
}

.r3222-site-update-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.r3222-site-update-label {
  display: block;
  margin-bottom: 3px;
  color: #ffd77a;
  font-size: 11px;
  font-weight: 800;
}

.r3222-site-update h2 {
  margin: 0;
  color: #f5f9fc;
  font-size: clamp(17px, 2vw, 21px);
  line-height: 1.5;
}

.r3222-site-update p {
  grid-column: 1;
  margin: 0;
  color: #d6e5ed;
  font-size: 14px;
  line-height: 1.8;
}

.r3222-site-update-meta {
  display: grid;
  justify-items: end;
  gap: 6px;
  color: #bfd4df;
  font-size: 11px;
}

.r3222-site-update-version {
  padding: 5px 10px;
  border: 1px solid rgba(255, 215, 122, .35);
  border-radius: 999px;
  color: #ffe5a3;
  background: rgba(255, 215, 122, .08);
  font-weight: 800;
}

@media (max-width: 680px) {
  .r3222-site-update {
    grid-template-columns: 1fr;
    gap: 9px;
    margin: 14px 0 20px;
    padding: 16px;
  }

  .r3222-site-update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }

  .r3222-site-update p { grid-column: 1; }
}

/* === r3223-home-fix.css === */
.r3223-placement-pending { visibility: hidden !important; }

@media (min-width: 901px) {
  body.r319-root-home .r303-site-stage .hero-copy,
  body.r319-root-home .r312-hero-copy-host .hero-copy {
    visibility: hidden !important;
  }

  body.r319-root-home .r312-home-side > .hero-copy {
    visibility: visible !important;
  }

  body.r319-root-home .r312-home-side > .r3222-site-update {
    width: 100%;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    margin: 0;
    padding: 13px;
    border-radius: 15px;
  }

  body.r319-root-home .r312-home-side > .r3222-site-update h2 {
    font-size: 15px;
    line-height: 1.65;
  }

  body.r319-root-home .r312-home-side > .r3222-site-update p {
    grid-column: 1;
    font-size: 11px;
    line-height: 1.8;
  }

  body.r319-root-home .r312-home-side > .r3222-site-update .r3222-site-update-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
  }
}

@media (max-width: 900px) {
  body.r319-root-home .r303-site-stage .hero-copy {
    visibility: hidden !important;
  }

  body.r319-root-home .r312-hero-copy-host .hero-copy {
    visibility: visible !important;
  }
}

/* === r3230-native-scroll.css === */
/* R32.30: keep one document scrollport and leave inner panels independent. */
html {
  min-height: 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  overscroll-behavior-y: auto !important;
  -webkit-overflow-scrolling: touch !important;
}

html body,
html[class] body {
  min-height: 100vh !important;
  height: auto !important;
  max-height: none !important;
  overflow-x: visible !important;
  overflow-y: visible !important;
  overscroll-behavior-y: auto !important;
  touch-action: auto !important;
}

/* R32.32 — portal-wide scroll/accessibility guardrails. */
html { scroll-padding-top: 84px !important; }
body { min-width: 0 !important; }
:where(main,section,article,form,.panel,.card,.page,.wrap,.content,.app-shell,.parent-shell,.student-plan,.executive-main,.counselor-main) {
  min-width: 0;
}
:where(input,select,textarea,button,a,[tabindex]):focus {
  scroll-margin-top: 96px;
  scroll-margin-bottom: 120px;
}
.sidebar {
  overflow-y: auto !important;
  overflow-x: hidden !important;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}
.table-wrap,
.table-responsive,
[role="region"][aria-label*="جدول"] {
  max-width: 100%;
  overflow-x: auto !important;
  overflow-y: visible !important;
  -webkit-overflow-scrolling: touch;
}
@media (max-width: 860px) {
  html { scroll-padding-top: 72px !important; }
  html body, html[class] body { min-height: 100dvh !important; }
  :where(.sidebar,.drawer,.mobile-menu)[aria-hidden="true"] { pointer-events: none; }
}

/* === global-ui-consistency-r32.css === */
﻿/* ==========================================================
   R32 GLOBAL UI CONSISTENCY
   آخرین لایه طراحی کل سامانه
   هدف:
   - جلوگیری از متن تیره روی زمینه تیره
   - جلوگیری از متن روشن روی زمینه روشن
   - یکپارچه‌سازی فرم‌ها در همه نقش‌ها
   ========================================================== */

:root{
  --g32-navy:#09243d;
  --g32-navy-2:#0d3152;

  --g32-white:#ffffff;
  --g32-paper:#f7fafc;
  --g32-paper-2:#eef4f7;

  --g32-ink:#102a3e;
  --g32-ink-2:#29485e;
  --g32-muted:#5f788b;

  --g32-light-text:#f7fbff;
  --g32-light-muted:#c1d5e5;

  --g32-border:#c8d8e4;
}


/* ==========================================================
   1. GLOBAL SAFETY
   ========================================================== */

html,
body{
  max-width:100%;
  overflow-x:hidden;
}

*{
  box-sizing:border-box;
}


/* ==========================================================
   2. ALL FORM CONTROLS — ONE STANDARD ACROSS THE SITE
   ========================================================== */

body input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
body select,
body textarea{
  background:var(--g32-white) !important;
  color:var(--g32-ink) !important;

  border:
    1px solid
    var(--g32-border) !important;

  box-shadow:
    inset 0 1px 2px
    rgba(12,43,65,.035) !important;

  opacity:1 !important;
}


/* Typed value */

body input:not([type="checkbox"]):not([type="radio"]),
body select,
body textarea{
  -webkit-text-fill-color:
    var(--g32-ink) !important;
}


/* Placeholder */

body input::placeholder,
body textarea::placeholder{
  color:var(--g32-muted) !important;
  -webkit-text-fill-color:
    var(--g32-muted) !important;
  opacity:1 !important;
}


/* Focus */

body input:focus,
body select:focus,
body textarea:focus{
  background:#fff !important;
  color:var(--g32-ink) !important;

  border-color:#25a8dc !important;

  box-shadow:
    0 0 0 3px
    rgba(37,168,220,.13) !important;

  outline:none !important;
}


/* Readonly */

body input[readonly],
body textarea[readonly]{
  background:var(--g32-paper-2) !important;
  color:#314b5e !important;
  -webkit-text-fill-color:#314b5e !important;
}


/* Disabled */

body input:disabled,
body select:disabled,
body textarea:disabled{
  background:#e8eef2 !important;
  color:#536a7b !important;
  -webkit-text-fill-color:#536a7b !important;
  opacity:1 !important;
}


/* Chrome saved/autofill */

body input:-webkit-autofill,
body input:-webkit-autofill:hover,
body input:-webkit-autofill:focus{
  -webkit-box-shadow:
    0 0 0 1000px
    #ffffff inset !important;

  -webkit-text-fill-color:
    var(--g32-ink) !important;

  caret-color:
    var(--g32-ink) !important;
}


/* Password fields specifically */

body input[type="password"]{
  background:#f8fbfd !important;
  color:var(--g32-ink) !important;
  -webkit-text-fill-color:
    var(--g32-ink) !important;
}


/* ==========================================================
   3. LIGHT LOGIN CARDS
   ========================================================== */

body .auth-card,
body .r8-login-card{
  background:#ffffff !important;
  color:var(--g32-ink) !important;

  border:
    1px solid
    #d6e2ea !important;
}


body .auth-card h1,
body .auth-card h2,
body .auth-card h3,
body .auth-card h4,
body .auth-card label,
body .auth-card b,
body .auth-card strong,

body .r8-login-card h1,
body .r8-login-card h2,
body .r8-login-card h3,
body .r8-login-card h4,
body .r8-login-card label,
body .r8-login-card b,
body .r8-login-card strong{
  color:var(--g32-ink) !important;
  opacity:1 !important;
}


body .auth-card p,
body .auth-card small,
body .auth-card .hint,

body .r8-login-card p,
body .r8-login-card small,
body .r8-login-card .hint{
  color:var(--g32-muted) !important;
  opacity:1 !important;
}


/* ==========================================================
   4. DARK LOGIN VISUALS
   ========================================================== */

body .login-story,
body .auth-brand,
body .student-login-visual{
  background:
    linear-gradient(
      145deg,
      #071c2f,
      #0f3b5e
    ) !important;

  color:var(--g32-light-text) !important;
}


body .login-story h1,
body .login-story h2,
body .login-story h3,
body .login-story b,
body .login-story strong,
body .login-story li,

body .auth-brand h1,
body .auth-brand h2,
body .auth-brand h3,
body .auth-brand b,
body .auth-brand strong,

body .student-login-visual h1,
body .student-login-visual h2,
body .student-login-visual h3,
body .student-login-visual b,
body .student-login-visual strong,
body .student-login-visual li{
  color:#ffffff !important;
  opacity:1 !important;
}


body .login-story p,
body .login-story small,
body .auth-brand p,
body .auth-brand small,
body .student-login-visual p,
body .student-login-visual small{
  color:var(--g32-light-muted) !important;
  opacity:1 !important;
}


/* ==========================================================
   5. DARK NAVIGATION AREAS
   ========================================================== */

body .sidebar{
  color:var(--g32-light-text) !important;
}


body .sidebar h1,
body .sidebar h2,
body .sidebar h3,
body .sidebar h4,
body .sidebar b,
body .sidebar strong,
body .sidebar label{
  color:#ffffff !important;
}


body .sidebar p,
body .sidebar small,
body .sidebar .muted,
body .sidebar .hint{
  color:#b9d0e2 !important;
  opacity:1 !important;
}


body .side-nav button{
  color:#d7e6f1 !important;
}


body .side-nav button.active{
  color:#ffffff !important;
}


/* ==========================================================
   6. LIGHT CARDS MUST HAVE DARK TEXT
   ========================================================== */

body .command-card,
body .r8-account-row,
body .guidance-manager-card{
  color:var(--g32-ink) !important;
}


body .command-card
:is(h1,h2,h3,h4,b,strong,label),
body .r8-account-row
:is(h1,h2,h3,h4,b,strong,label),
body .guidance-manager-card
:is(h1,h2,h3,h4,b,strong,label){
  color:var(--g32-ink) !important;
}


body .command-card
:is(p,small,.hint,.muted),
body .r8-account-row
:is(p,small,.hint,.muted),
body .guidance-manager-card
:is(p,small,.hint,.muted){
  color:var(--g32-muted) !important;
  opacity:1 !important;
}


/* ==========================================================
   7. GLOBAL TEXT READABILITY
   ========================================================== */

body label{
  font-weight:700;
}


body small,
body .hint,
body .muted{
  opacity:1;
}


/* ==========================================================
   8. BUTTON TEXT
   ========================================================== */

body .btn.primary{
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
}


body .btn.ghost{
  opacity:1 !important;
}


/* ==========================================================
   9. STUDENT LOGIN SPECIFIC LAYOUT CLEANUP
   ========================================================== */

body.r8-login{
  background:
    linear-gradient(
      135deg,
      #eaf2f7,
      #f6f8fa
    ) !important;

  color:var(--g32-ink) !important;
}


body.r8-login .r8-login-card{
  box-shadow:
    0 18px 50px
    rgba(18,47,67,.12) !important;
}


body.r8-login .student-login-visual{
  box-shadow:
    0 18px 50px
    rgba(7,35,57,.18) !important;
}


/* ==========================================================
   10. MOBILE
   ========================================================== */

@media(max-width:700px){

  body input,
  body select,
  body textarea{
    font-size:16px !important;
  }

}


/* R32_GLOBAL_AUTH_CONTRACT_START */

/* ==========================================================
   GLOBAL LOGIN DESIGN CONTRACT
   تمام صفحات ورود مدرسه
   ========================================================== */


/* ---------- PAGE BACKGROUND ---------- */

html body.role-login,
html body.auth-shell,
html body.r8-login,
html body .role-login,
html body .auth-shell{
  background:
    radial-gradient(
      circle at 8% 8%,
      rgba(45,169,215,.08),
      transparent 30%
    ),
    linear-gradient(
      135deg,
      #edf4f8,
      #f8fafb
    ) !important;

  color:#102a3e !important;
}


/* ==========================================================
   FORM CARD = LIGHT
   ========================================================== */

html body.role-login > .auth-card,
html body.auth-shell > .auth-card,
html body .role-login > .auth-card,
html body .auth-shell > .auth-card,
html body.r8-login .r8-login-card{
  background:#ffffff !important;

  color:#102a3e !important;

  border:
    1px solid
    #d5e1e9 !important;

  box-shadow:
    0 20px 55px
    rgba(17,52,76,.13) !important;

  color-scheme:light !important;
}


/* Form card headings */

html body.role-login > .auth-card
:is(h1,h2,h3,h4,h5,b,strong,label),

html body.auth-shell > .auth-card
:is(h1,h2,h3,h4,h5,b,strong,label),

html body .role-login > .auth-card
:is(h1,h2,h3,h4,h5,b,strong,label),

html body .auth-shell > .auth-card
:is(h1,h2,h3,h4,h5,b,strong,label),

html body.r8-login .r8-login-card
:is(h1,h2,h3,h4,h5,b,strong,label){
  color:#102a3e !important;
  -webkit-text-fill-color:#102a3e !important;
  opacity:1 !important;
  text-shadow:none !important;
}


/* Form card secondary text */

html body.role-login > .auth-card
:is(p,small,.hint,.muted,.security-note),

html body.auth-shell > .auth-card
:is(p,small,.hint,.muted,.security-note),

html body .role-login > .auth-card
:is(p,small,.hint,.muted,.security-note),

html body .auth-shell > .auth-card
:is(p,small,.hint,.muted,.security-note),

html body.r8-login .r8-login-card
:is(p,small,.hint,.muted){
  color:#5a7183 !important;
  -webkit-text-fill-color:#5a7183 !important;
  opacity:1 !important;
}


/* ==========================================================
   ALL LOGIN INPUTS = LIGHT BACKGROUND / DARK TEXT
   Higher specificity than old app.css rules
   ========================================================== */

html body.role-login > .auth-card form
input:not([type="checkbox"]):not([type="radio"]),

html body.role-login > .auth-card form
select,

html body.role-login > .auth-card form
textarea,

html body.auth-shell > .auth-card form
input:not([type="checkbox"]):not([type="radio"]),

html body.auth-shell > .auth-card form
select,

html body.auth-shell > .auth-card form
textarea,

html body .role-login > .auth-card form
input:not([type="checkbox"]):not([type="radio"]),

html body .auth-shell > .auth-card form
input:not([type="checkbox"]):not([type="radio"]),

html body.r8-login .r8-login-card form
input:not([type="checkbox"]):not([type="radio"]),

html body.r8-login .r8-login-card form
select,

html body.r8-login .r8-login-card form
textarea{
  min-height:48px !important;

  background:#f8fbfd !important;

  color:#102a3e !important;

  -webkit-text-fill-color:#102a3e !important;

  caret-color:#102a3e !important;

  border:
    1px solid
    #bfd0dc !important;

  box-shadow:
    inset 0 1px 2px
    rgba(18,50,72,.04) !important;

  opacity:1 !important;
}


/* Focus */

html body.role-login > .auth-card form
input:focus,

html body.auth-shell > .auth-card form
input:focus,

html body .role-login > .auth-card form
input:focus,

html body .auth-shell > .auth-card form
input:focus,

html body.r8-login .r8-login-card form
input:focus{
  background:#ffffff !important;

  color:#102a3e !important;

  -webkit-text-fill-color:#102a3e !important;

  border-color:#25a9df !important;

  box-shadow:
    0 0 0 4px
    rgba(37,169,223,.13) !important;

  outline:none !important;
}


/* Placeholder */

html body.role-login > .auth-card
input::placeholder,

html body.auth-shell > .auth-card
input::placeholder,

html body .role-login > .auth-card
input::placeholder,

html body .auth-shell > .auth-card
input::placeholder,

html body.r8-login .r8-login-card
input::placeholder{
  color:#71899a !important;
  -webkit-text-fill-color:#71899a !important;
  opacity:1 !important;
}


/* ==========================================================
   CHROME AUTOFILL
   ========================================================== */

html body.role-login > .auth-card
input:-webkit-autofill,

html body.role-login > .auth-card
input:-webkit-autofill:hover,

html body.role-login > .auth-card
input:-webkit-autofill:focus,

html body.auth-shell > .auth-card
input:-webkit-autofill,

html body.auth-shell > .auth-card
input:-webkit-autofill:hover,

html body.auth-shell > .auth-card
input:-webkit-autofill:focus,

html body.r8-login .r8-login-card
input:-webkit-autofill,

html body.r8-login .r8-login-card
input:-webkit-autofill:hover,

html body.r8-login .r8-login-card
input:-webkit-autofill:focus{
  -webkit-box-shadow:
    0 0 0 1000px
    #f8fbfd inset !important;

  -webkit-text-fill-color:
    #102a3e !important;

  caret-color:
    #102a3e !important;
}


/* ==========================================================
   PASSWORD
   ========================================================== */

html body.role-login > .auth-card
input[type="password"],

html body.auth-shell > .auth-card
input[type="password"],

html body .role-login > .auth-card
input[type="password"],

html body .auth-shell > .auth-card
input[type="password"],

html body.r8-login .r8-login-card
input[type="password"]{
  background:#f8fbfd !important;
  color:#102a3e !important;
  -webkit-text-fill-color:#102a3e !important;
}


/* ==========================================================
   REMEMBER / CHECK ROW
   ========================================================== */

html body.role-login > .auth-card
.remember-row,

html body.auth-shell > .auth-card
.remember-row,

html body.r8-login .r8-login-card
.remember-row,

html body.r8-login .r8-login-card
.check-line{
  background:#f7fafc !important;

  color:#17384f !important;

  border-color:#d7e3eb !important;
}


html body.role-login > .auth-card
.remember-row label,

html body.auth-shell > .auth-card
.remember-row label,

html body.r8-login .r8-login-card
.remember-row label,

html body.r8-login .r8-login-card
.check-line{
  color:#17384f !important;
}


/* ==========================================================
   PRIMARY LOGIN BUTTON
   ========================================================== */

html body.role-login > .auth-card
button[type="submit"],

html body.auth-shell > .auth-card
button[type="submit"],

html body .role-login > .auth-card
button[type="submit"],

html body .auth-shell > .auth-card
button[type="submit"],

html body.r8-login .r8-login-card
button[type="submit"]{
  background:
    linear-gradient(
      135deg,
      #078eaa,
      #286bd0
    ) !important;

  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;

  border:0 !important;

  box-shadow:
    0 10px 24px
    rgba(22,105,171,.18) !important;
}


/* ==========================================================
   STORY / INTRO CARD = DARK
   ========================================================== */

html body.role-login > .login-story,
html body.auth-shell > .auth-brand,
html body .role-login > .login-story,
html body .auth-shell > .auth-brand,
html body.r8-login .student-login-visual{
  background:
    linear-gradient(
      145deg,
      #08253f,
      #0b3556
    ) !important;

  color:#ffffff !important;

  border:
    1px solid
    rgba(91,170,220,.26) !important;

  box-shadow:
    0 20px 55px
    rgba(7,35,57,.18) !important;

  color-scheme:dark !important;
}


/* Everything important on dark story */

html body.role-login > .login-story
:is(h1,h2,h3,h4,h5,b,strong,li),

html body.auth-shell > .auth-brand
:is(h1,h2,h3,h4,h5,b,strong,li),

html body .role-login > .login-story
:is(h1,h2,h3,h4,h5,b,strong,li),

html body .auth-shell > .auth-brand
:is(h1,h2,h3,h4,h5,b,strong,li),

html body.r8-login .student-login-visual
:is(h1,h2,h3,h4,h5,b,strong,li){
  color:#ffffff !important;
  -webkit-text-fill-color:#ffffff !important;
  opacity:1 !important;
}


/* Secondary story text */

html body.role-login > .login-story
:is(p,small),

html body.auth-shell > .auth-brand
:is(p,small),

html body .role-login > .login-story
:is(p,small),

html body .auth-shell > .auth-brand
:is(p,small),

html body.r8-login .student-login-visual
:is(p,small){
  color:#c6d9e8 !important;
  -webkit-text-fill-color:#c6d9e8 !important;
  opacity:1 !important;
}


/* Story rows / feature items */

html body.role-login > .login-story li,
html body.auth-shell > .auth-brand li{
  background:
    rgba(255,255,255,.055) !important;

  border:
    1px solid
    rgba(255,255,255,.12) !important;
}


/* ==========================================================
   LINKS
   ========================================================== */

html body.role-login > .login-story a,
html body.auth-shell > .auth-brand a,
html body .role-login > .login-story a,
html body .auth-shell > .auth-brand a{
  color:#d7f5ff !important;
  -webkit-text-fill-color:#d7f5ff !important;
}


/* Student back-to-home sits on light page, not dark card */

html body.r8-login .back-home{
  color:#24475f !important;
  -webkit-text-fill-color:#24475f !important;

  background:
    rgba(255,255,255,.86) !important;

  border:
    1px solid
    rgba(36,71,95,.12) !important;

  border-radius:10px !important;

  padding:7px 11px !important;

  text-decoration:none !important;
}


/* ==========================================================
   FORGOT PASSWORD / SECONDARY ACTIONS
   ========================================================== */

html body.role-login > .auth-card a,
html body.auth-shell > .auth-card a,
html body .role-login > .auth-card a,
html body .auth-shell > .auth-card a,
html body.r8-login .r8-login-card a{
  color:#096f91 !important;
  -webkit-text-fill-color:#096f91 !important;
}


/* ==========================================================
   RESPONSIVE CONTRACT
   ========================================================== */

@media(max-width:1050px){

  html body.r8-login main{
    grid-template-columns:1fr !important;
    width:min(100% - 24px,620px) !important;
    margin:auto !important;
    padding:34px 0 !important;
  }

  html body.r8-login .student-login-visual{
    display:none !important;
  }

}


@media(max-width:760px){

  html body.role-login,
  html body.auth-shell{
    grid-template-columns:1fr !important;
    padding:12px !important;
  }

  html body.role-login > .login-story,
  html body.auth-shell > .auth-brand{
    min-height:auto !important;
  }

}

/* R32_GLOBAL_AUTH_CONTRACT_END */

/* === r3235-home-right-menu.css === */
/* ==========================================================
   ANDISHEH NO
   HOME MENU — R32.35 COMPACT / LIGHT
   SCOPE: RIGHT MENU ONLY
   ========================================================== */


/* ==========================================================
   GENERAL
   ========================================================== */

body.r319-root-home .r303-brand-rail {
    box-sizing: border-box !important;

    direction: rtl !important;

    color: #133a59 !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(54,170,235,.10),
            transparent 170px
        ),
        linear-gradient(
            180deg,
            rgba(255,255,255,.985),
            rgba(244,250,255,.985)
        ) !important;

    border:
        1px solid rgba(73,134,177,.16) !important;

    box-shadow:
        0 16px 42px rgba(25,65,94,.14),
        0 4px 12px rgba(25,65,94,.07),
        inset 0 1px 0 #fff !important;

    border-radius: 22px !important;
}


/* ==========================================================
   COMPACT BRAND HEADER
   ========================================================== */

body.r319-root-home .r303-brand-lockup {
    display: grid !important;

    grid-template-columns:
        46px
        minmax(0,1fr) !important;

    grid-template-rows:
        auto auto !important;

    align-items: center !important;

    column-gap: 9px !important;
    row-gap: 0 !important;

    width: 100% !important;

    padding:
        3px
        4px
        13px !important;

    margin: 0 !important;

    text-align: right !important;

    border-bottom:
        1px solid rgba(28,82,119,.07) !important;
}


body.r319-root-home .r303-brand-lockup img {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;

    width: 44px !important;
    height: 44px !important;

    object-fit: contain !important;

    margin: 0 !important;

    filter:
        drop-shadow(
            0 5px 8px rgba(0,73,123,.16)
        ) !important;
}


body.r319-root-home .r303-brand-lockup b {
    grid-column: 2 !important;
    grid-row: 1 !important;

    margin: 0 !important;

    font-size: 17px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;

    color: #103b5e !important;
}


body.r319-root-home .r303-brand-lockup small {
    grid-column: 2 !important;
    grid-row: 2 !important;

    margin: 0 !important;

    font-size: 9.5px !important;
    line-height: 1.5 !important;
    font-weight: 600 !important;

    color: #74899a !important;
}


/* ==========================================================
   NAV
   ========================================================== */

body.r319-root-home .r319-home-nav {
    display: flex !important;
    flex-direction: column !important;

    width: 100% !important;

    gap: 7px !important;

    padding: 0 !important;
    margin: 0 !important;
}


body.r319-root-home .r319-home-nav > a {
    position: relative !important;

    display: flex !important;
    align-items: center !important;

    width: 100% !important;

    min-height: 47px !important;

    padding:
        6px
        8px !important;

    gap: 9px !important;

    box-sizing: border-box !important;

    border-radius: 14px !important;

    border:
        1px solid rgba(76,137,182,.14) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.99),
            rgba(241,248,253,.96)
        ) !important;

    color: #224b68 !important;

    text-decoration: none !important;

    font-size: 12px !important;
    line-height: 1.4 !important;
    font-weight: 800 !important;

    box-shadow:
        0 5px 13px rgba(23,76,113,.075),
        inset 0 1px 0 rgba(255,255,255,1) !important;

    transform: none !important;

    transition:
        transform .18s ease,
        box-shadow .18s ease,
        border-color .18s ease !important;
}


body.r319-root-home .r319-home-nav > a:hover {
    transform:
        translateY(-2px) !important;

    border-color:
        rgba(31,143,213,.25) !important;

    box-shadow:
        0 9px 18px rgba(23,76,113,.11),
        inset 0 1px 0 #fff !important;
}


/* ==========================================================
   ICONS
   ========================================================== */

body.r319-root-home
.r319-home-nav > a .ico {

    flex:
        0 0 32px !important;

    width: 32px !important;
    height: 32px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 10px !important;

    background:
        linear-gradient(
            145deg,
            #eef8ff,
            #dceefb
        ) !important;

    border:
        1px solid rgba(56,143,207,.10) !important;

    color: #087bc7 !important;

    box-shadow:
        0 4px 9px rgba(24,111,172,.11),
        inset 0 1px 0 #fff !important;
}


body.r319-root-home
.r319-home-nav > a .ico svg {

    width: 17px !important;
    height: 17px !important;

    stroke-width: 2 !important;
}


/* registration green */

body.r319-root-home
.r319-home-nav > a:nth-child(3)
.ico {

    color: #00a77e !important;

    background:
        linear-gradient(
            145deg,
            #effffb,
            #d5f6ec
        ) !important;
}


/* ==========================================================
   ACTIVE ITEM
   ========================================================== */

body.r319-root-home
.r319-home-nav > a.active {

    color: #fff !important;

    border:
        1px solid rgba(68,196,246,.62) !important;

    background:
        linear-gradient(
            135deg,
            #087bb8 0%,
            #086ca5 50%,
            #075589 100%
        ) !important;

    box-shadow:
        0 9px 20px rgba(0,90,148,.22),
        inset 0 1px 0 rgba(255,255,255,.26) !important;
}


body.r319-root-home
.r319-home-nav > a.active
.ico {

    color: #fff !important;

    background:
        linear-gradient(
            145deg,
            #53c7ff,
            #2299e8
        ) !important;

    border:
        1px solid rgba(255,255,255,.24) !important;

    box-shadow:
        0 4px 10px rgba(0,62,113,.20),
        inset 0 1px 0 rgba(255,255,255,.34) !important;
}


/* ==========================================================
   CHEVRON
   ========================================================== */

body.r319-root-home
.r3235-menu-chevron {

    margin-inline-start:
        auto !important;

    color: #65839a !important;

    font-size: 17px !important;
    line-height: 1 !important;

    opacity: .75 !important;
}


body.r319-root-home
.r319-home-nav > a.active
.r3235-menu-chevron {

    color: #fff !important;
}


/* ==========================================================
   SUPPORT
   ========================================================== */

body.r319-root-home
.r3235-menu-support {

    position: relative !important;

    display: grid !important;

    grid-template-columns:
        38px
        1fr !important;

    align-items: center !important;

    gap: 8px !important;

    margin-top: auto !important;

    padding: 9px !important;

    border-radius: 15px !important;

    border:
        1px solid rgba(73,143,193,.14) !important;

    background:
        linear-gradient(
            145deg,
            rgba(255,255,255,.98),
            rgba(237,248,255,.97)
        ) !important;

    box-shadow:
        0 5px 13px rgba(29,91,135,.08),
        inset 0 1px 0 #fff !important;
}


body.r319-root-home
.r3235-menu-support img {

    width: 38px !important;
    height: 38px !important;

    border-radius: 50% !important;

    object-fit: contain !important;

    background: #fff !important;

    box-shadow:
        0 4px 8px rgba(22,89,136,.11) !important;
}


body.r319-root-home
.r3235-menu-support strong {

    display: block !important;

    color: #163f5f !important;

    font-size: 10.5px !important;
    font-weight: 900 !important;
}


body.r319-root-home
.r3235-menu-support span {

    display: block !important;

    color: #537086 !important;

    font-size: 9.5px !important;
}


body.r319-root-home
.r3235-menu-support small {

    display: block !important;

    margin-top: 2px !important;

    direction: ltr !important;

    text-align: right !important;

    color: #0788d0 !important;

    font-size: 8.5px !important;
}


/* Homepage already contains support in menu */
body.r319-root-home
.mnp-floating-support {

    display: none !important;
}


/* ==========================================================
   REMOVE DUPLICATE HEADER NAVIGATION
   ========================================================== */

body.r319-root-home
.r21p5-header > nav {

    display: none !important;
}


/* ==========================================================
   DESKTOP
   ========================================================== */

@media (min-width:981px) {

    body.r319-root-home
    .r303-brand-rail {

        display: flex !important;
        flex-direction: column !important;

        position: fixed !important;

        right: 12px !important;
        left: auto !important;

        top: 12px !important;
        bottom: 12px !important;

        width: 218px !important;

        padding:
            13px
            11px
            11px !important;

        gap: 11px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        z-index: 150 !important;
    }


    body.r319-root-home
    .r303-site-stage {

        margin-right:
            240px !important;

        margin-left:
            0 !important;
    }


    body.r319-root-home
    #r3235HomeMenuToggle,

    body.r319-root-home
    .r3235-menu-backdrop,

    body.r319-root-home
    .r3235-menu-close {

        display: none !important;
    }
}


/* ==========================================================
   MOBILE / TABLET
   ========================================================== */

@media (max-width:980px) {

    body.r319-root-home
    .r303-site-stage {

        margin:
            0 !important;
    }


    body.r319-root-home
    .r303-brand-rail {

        display: flex !important;
        flex-direction: column !important;

        position: fixed !important;

        right: 8px !important;
        left: auto !important;

        top: 8px !important;
        bottom: 8px !important;

        width:
            min(
                286px,
                calc(100vw - 22px)
            ) !important;

        padding:
            14px
            12px
            12px !important;

        gap: 10px !important;

        overflow-y: auto !important;
        overflow-x: hidden !important;

        z-index: 2003 !important;

        transform:
            translateX(
                calc(100% + 30px)
            ) !important;

        opacity: 0 !important;

        visibility: hidden !important;

        pointer-events:
            none !important;

        transition:
            transform .28s cubic-bezier(.2,.8,.2,1),
            opacity .18s ease,
            visibility .18s ease !important;
    }


    body.r319-root-home.r3235-menu-open
    .r303-brand-rail {

        transform:
            translateX(0) !important;

        opacity: 1 !important;

        visibility: visible !important;

        pointer-events:
            auto !important;
    }


    body.r319-root-home
    .r303-brand-lockup {

        padding-left:
            40px !important;
    }


    body.r319-root-home
    .r319-home-nav {

        gap: 7px !important;
    }


    body.r319-root-home
    .r319-home-nav > a {

        min-height:
            50px !important;

        border-radius:
            14px !important;

        font-size:
            12.5px !important;
    }


    body.r319-root-home
    .r319-home-nav > a .ico {

        width: 34px !important;
        height: 34px !important;

        flex-basis:
            34px !important;
    }


    /* Close */

    body.r319-root-home
    .r3235-menu-close {

        position:
            absolute !important;

        left: 12px !important;
        top: 12px !important;

        display:
            grid !important;

        place-items:
            center !important;

        width: 35px !important;
        height: 35px !important;

        border:
            0 !important;

        border-radius:
            11px !important;

        background:
            #edf6fc !important;

        color:
            #194d73 !important;

        font-size:
            22px !important;

        box-shadow:
            0 4px 10px rgba(24,75,111,.10) !important;

        cursor:
            pointer !important;
    }


    /* Floating menu trigger */

    body.r319-root-home
    #r3235HomeMenuToggle {

        position:
            fixed !important;

        right: 12px !important;
        top: 12px !important;

        display:
            grid !important;

        place-items:
            center !important;

        width: 44px !important;
        height: 44px !important;

        padding: 0 !important;

        border:
            1px solid rgba(63,164,224,.23) !important;

        border-radius:
            14px !important;

        background:
            linear-gradient(
                145deg,
                #0876ad,
                #07527e
            ) !important;

        color:
            #fff !important;

        box-shadow:
            0 8px 17px rgba(0,65,108,.19) !important;

        z-index:
            2001 !important;
    }


    body.r319-root-home
    #r3235HomeMenuToggle svg {

        width:
            21px !important;

        height:
            21px !important;
    }


    /* Backdrop */

    body.r319-root-home
    .r3235-menu-backdrop {

        position:
            fixed !important;

        inset:
            0 !important;

        display:
            block !important;

        background:
            rgba(9,28,42,.42) !important;

        backdrop-filter:
            blur(2px) !important;

        -webkit-backdrop-filter:
            blur(2px) !important;

        opacity:
            0 !important;

        visibility:
            hidden !important;

        pointer-events:
            none !important;

        transition:
            opacity .18s ease,
            visibility .18s ease !important;

        z-index:
            2002 !important;
    }


    body.r319-root-home.r3235-menu-open
    .r3235-menu-backdrop {

        opacity:
            1 !important;

        visibility:
            visible !important;

        pointer-events:
            auto !important;
    }


    body.r319-root-home.r3235-menu-open {

        overflow:
            hidden !important;
    }
}


/* ==========================================================
   SMALL MOBILE
   ========================================================== */

@media (max-width:420px) {

    body.r319-root-home
    .r303-brand-rail {

        right: 6px !important;

        top: 6px !important;
        bottom: 6px !important;

        width:
            min(
                276px,
                calc(100vw - 14px)
            ) !important;

        border-radius:
            19px !important;
    }


    body.r319-root-home
    .r319-home-nav > a {

        min-height:
            47px !important;
    }
}


/* R32.35 FIRST-PAINT SHELL FIX */

/* Legacy cloned navigation must never appear beside the new menu. */
body.r319-root-home .r312-side-nav {
    display: none !important;
}


@media (min-width:981px) {

    body.r319-root-home .r312-home-shell {
        display: block !important;
        position: relative !important;

        width: 100% !important;
        min-height: 100vh !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    body.r319-root-home .r312-home-side {
        position: fixed !important;

        right: 12px !important;
        left: auto !important;

        top: 12px !important;
        bottom: 12px !important;

        width: 218px !important;

        display: flex !important;
        flex-direction: column !important;

        box-sizing: border-box !important;

        padding: 13px 11px 11px !important;
        gap: 11px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        direction: rtl !important;

        border-radius: 22px !important;

        border:
            1px solid rgba(73,134,177,.16) !important;

        background:
            radial-gradient(
                circle at 100% 0,
                rgba(54,170,235,.10),
                transparent 170px
            ),
            linear-gradient(
                180deg,
                rgba(255,255,255,.985),
                rgba(244,250,255,.985)
            ) !important;

        box-shadow:
            0 16px 42px rgba(25,65,94,.14),
            0 4px 12px rgba(25,65,94,.07),
            inset 0 1px 0 #fff !important;

        /*
           Critical:
           no animation / transform on desktop first paint.
        */
        transform: none !important;
        transition: none !important;
        opacity: 1 !important;
        visibility: visible !important;

        z-index: 150 !important;
    }


    body.r319-root-home .r312-home-main {
        box-sizing: border-box !important;

        width: auto !important;
        min-width: 0 !important;

        margin-right: 240px !important;
        margin-left: 0 !important;

        /*
           Prevent legacy transforms/transitions from causing
           a delayed horizontal jump.
        */
        transform: none !important;
        transition: none !important;
    }


    body.r319-root-home .r312-home-side .r319-home-nav {
        width: 100% !important;
        flex: 0 0 auto !important;
    }
}


@media (max-width:980px) {

    body.r319-root-home .r312-home-shell {
        display: block !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    body.r319-root-home .r312-home-main {
        width: 100% !important;

        margin: 0 !important;

        transform: none !important;
    }


    body.r319-root-home .r312-home-side {
        position: fixed !important;

        right: 8px !important;
        left: auto !important;

        top: 8px !important;
        bottom: 8px !important;

        width:
            min(
                286px,
                calc(100vw - 22px)
            ) !important;

        display: flex !important;
        flex-direction: column !important;

        box-sizing: border-box !important;

        padding: 14px 12px 12px !important;

        gap: 10px !important;

        overflow-x: hidden !important;
        overflow-y: auto !important;

        direction: rtl !important;

        border-radius: 20px !important;

        border:
            1px solid rgba(73,134,177,.16) !important;

        background:
            linear-gradient(
                180deg,
                rgba(255,255,255,.99),
                rgba(244,250,255,.99)
            ) !important;

        box-shadow:
            0 18px 45px rgba(18,58,87,.19) !important;

        transform:
            translateX(
                calc(100% + 30px)
            ) !important;

        opacity: 0 !important;
        visibility: hidden !important;

        pointer-events: none !important;

        transition:
            transform .22s cubic-bezier(.2,.8,.2,1),
            opacity .15s ease,
            visibility .15s ease !important;

        z-index: 2003 !important;
    }


    body.r319-root-home.r3235-menu-open
    .r312-home-side {

        transform: translateX(0) !important;

        opacity: 1 !important;
        visibility: visible !important;

        pointer-events: auto !important;
    }
}


/* ==========================================================
   R32.35 DESKTOP GAP FIX
   Desktop only
   ========================================================== */

@media (min-width:981px) {

    body.r319-root-home {
        overflow-x: hidden !important;
    }

    body.r319-root-home .r312-home-shell {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }

    body.r319-root-home .r312-home-main {
        width: auto !important;
        max-width: none !important;
        min-width: 0 !important;

        margin-right: 240px !important;
        margin-left: 0 !important;

        padding-left: 12px !important;
        padding-right: 12px !important;

        box-sizing: border-box !important;
    }

    /*
       Let homepage blocks use the available desktop width.
       Their own internal grids remain unchanged.
    */

    body.r319-root-home .r312-top-host,
    body.r319-root-home .r312-hero,
    body.r319-root-home .r312-roles,
    body.r319-root-home .r312-info-grid,
    body.r319-root-home .r312-preserved {
        width: 100% !important;
        max-width: none !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }

    /*
       Old homepage sections often carry max-width:1180px + margin:auto.
       On this shell that creates the visible blank strip.
    */

    body.r319-root-home .r312-home-main > *,
    body.r319-root-home .r312-preserved > * {
        max-width: none !important;
    }
}


/* ==========================================================
   R32.35 DESKTOP SIDEBAR WIDTH LOCK
   Desktop only
   ========================================================== */

@media (min-width:981px) {

    html body.r319-root-home.home-r312
    .r312-home-shell > .r312-home-side {

        position: fixed !important;

        top: 12px !important;
        right: 12px !important;
        bottom: 12px !important;
        left: auto !important;

        width: 218px !important;
        min-width: 218px !important;
        max-width: 218px !important;

        flex: 0 0 218px !important;

        box-sizing: border-box !important;

        margin: 0 !important;

        padding:
            13px
            11px
            11px !important;

        transform: none !important;

        z-index: 150 !important;
    }


    html body.r319-root-home.home-r312
    .r312-home-shell > .r312-home-main {

        position: relative !important;

        width: calc(100% - 240px) !important;
        min-width: 0 !important;
        max-width: calc(100% - 240px) !important;

        margin:
            0
            240px
            0
            0 !important;

        padding-left: 12px !important;
        padding-right: 12px !important;

        box-sizing: border-box !important;

        transform: none !important;
    }


    html body.r319-root-home.home-r312
    .r312-home-shell {

        display: block !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    html body.r319-root-home.home-r312
    .r312-home-main .r21p5-role-grid {

        width: 100% !important;
        max-width: none !important;

        box-sizing: border-box !important;
    }
}


/* ==========================================================
   R32.35 FINAL DESKTOP POLISH
   Desktop only
   ========================================================== */

@media (min-width:981px) {

    html body.r319-root-home.home-r312
    .r312-home-shell > .r312-home-main {

        margin-right: 238px !important;

        width:
            calc(100% - 238px) !important;

        max-width:
            calc(100% - 238px) !important;

        padding-right: 6px !important;
        padding-left: 10px !important;
    }


    html body.r319-root-home.home-r312
    .r312-home-shell > .r312-home-side {

        right: 10px !important;

        border-radius: 20px !important;

        box-shadow:
            0 14px 34px rgba(20,58,86,.12),
            0 3px 10px rgba(20,58,86,.055),
            inset 0 1px 0 rgba(255,255,255,.96) !important;
    }


    body.r319-root-home
    .r319-home-nav > a {

        box-shadow:
            0 4px 11px rgba(23,76,113,.065),
            inset 0 1px 0 #fff !important;
    }


    body.r319-root-home
    .r319-home-nav > a.active {

        box-shadow:
            0 7px 16px rgba(0,90,148,.19),
            inset 0 1px 0 rgba(255,255,255,.24) !important;
    }


    body.r319-root-home
    .r3235-menu-support {

        padding: 8px !important;

        box-shadow:
            0 4px 11px rgba(29,91,135,.07),
            inset 0 1px 0 #fff !important;
    }


    body.r319-root-home
    .r3235-menu-support strong {

        font-size: 10px !important;
        line-height: 1.45 !important;
    }


    body.r319-root-home
    .r3235-menu-support span {

        font-size: 9px !important;
        line-height: 1.45 !important;
    }


    body.r319-root-home
    .r3235-menu-support small {

        font-size: 8px !important;
    }


    /*
      Update/news card inside sidebar:
      keep content, reduce visual density.
    */

    body.r319-root-home
    .r312-home-side article,
    body.r319-root-home
    .r312-home-side section {

        line-height: 1.55 !important;
    }


    body.r319-root-home
    .r312-home-side article p,
    body.r319-root-home
    .r312-home-side section p {

        font-size: 9.5px !important;
        line-height: 1.65 !important;
    }


    body.r319-root-home
    .r312-home-side article small,
    body.r319-root-home
    .r312-home-side section small {

        font-size: 8.5px !important;
    }
}


/* === home-lower-r3239.css === */
/* ============================================================
   ANDISHEH NO — HOME LOWER R32.39
   Stable direct-selector architecture

   IMPORTANT:
   - no dependency on .r312-preserved
   - no dependency on JS-created wrappers
   - lower-page only
   - menu / hero / role cards untouched
   ============================================================ */


/* ============================================================
   01. GLOBAL LOWER-PAGE GEOMETRY
   ============================================================ */

html body.r319-root-home
.registration-quick-links,

html body.r319-root-home
.temporary-registration,

html body.r319-root-home
.r21p5-services,

html body.r319-root-home
.r21p5-mid,

html body.r319-root-home
.r21p5-hidden-events,

html body.r319-root-home
.r21p5-why,

html body.r319-root-home
.r21p5-system-highlights,

html body.r319-root-home
.r21p5-footer {

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;

    margin-left: 0 !important;
    margin-right: 0 !important;

    box-sizing: border-box !important;
}


/* Consistent vertical rhythm */

html body.r319-root-home
.registration-quick-links {

    margin-top: 14px !important;
    margin-bottom: 14px !important;
}


html body.r319-root-home
.temporary-registration {

    margin-top: 0 !important;
    margin-bottom: 16px !important;
}


html body.r319-root-home
.r21p5-services,

html body.r319-root-home
.r21p5-mid,

html body.r319-root-home
.r21p5-why,

html body.r319-root-home
.r21p5-system-highlights {

    margin-top: 0 !important;
    margin-bottom: 18px !important;
}


/* ============================================================
   02. QUICK REGISTRATION
   ============================================================ */

html body.r319-root-home
.registration-quick-links {

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0, 1fr)) !important;

    gap: 12px !important;

    padding: 0 !important;

    background: transparent !important;
}


html body.r319-root-home
.registration-quick-links > a {

    min-width: 0 !important;
    min-height: 48px !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;

    margin: 0 !important;

    padding: 10px 15px !important;

    border-radius: 14px !important;

    background:
        linear-gradient(
            145deg,
            #103d5b,
            #082940
        ) !important;

    border:
        1px solid rgba(69,156,209,.18) !important;

    box-shadow:
        0 6px 16px rgba(9,50,78,.10) !important;

    color: #fff !important;

    font-weight: 850 !important;

    text-decoration: none !important;
}


/* ============================================================
   03. TEMPORARY REGISTRATION
   ============================================================ */

html body.r319-root-home
.temporary-registration {

    padding: 20px 22px !important;

    border-radius: 20px !important;

    background:
        linear-gradient(
            135deg,
            #103b59,
            #082943
        ) !important;

    border:
        1px solid rgba(66,157,210,.18) !important;

    box-shadow:
        0 10px 28px rgba(8,45,70,.11) !important;
}


html body.r319-root-home
.temporary-registration-head {

    display: grid !important;

    grid-template-columns:
        minmax(0,1fr)
        auto !important;

    align-items: center !important;

    gap: 20px !important;

    margin:
        0
        0
        15px !important;
}


html body.r319-root-home
.temporary-registration-head h2 {

    margin:
        3px
        0
        4px !important;

    color: #fff !important;
}


html body.r319-root-home
.temporary-registration-head p,

html body.r319-root-home
.temporary-registration-head small {

    color:
        rgba(222,238,248,.78) !important;
}


html body.r319-root-home
.temporary-registration-grid {

    display: grid !important;

    grid-template-columns:
        repeat(3, minmax(0,1fr)) !important;

    gap: 12px !important;
}


html body.r319-root-home
.temporary-reg-card {

    min-width: 0 !important;
    min-height: 92px !important;

    margin: 0 !important;

    padding: 15px 16px !important;

    border-radius: 16px !important;

    background:
        rgba(255,255,255,.075) !important;

    border:
        1px solid rgba(158,211,241,.14) !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.06) !important;

    color: #fff !important;
}


html body.r319-root-home
.temporary-reg-card b {

    color: #fff !important;
}


html body.r319-root-home
.temporary-reg-card small {

    color:
        rgba(222,239,249,.70) !important;
}


/* ============================================================
   04. SMART SERVICES
   ============================================================ */

html body.r319-root-home
.r21p5-services {

    display: grid !important;

    grid-template-columns:
        repeat(5, minmax(0,1fr)) !important;

    gap: 12px !important;

    padding: 0 !important;

    overflow: visible !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;
}


html body.r319-root-home
.r21p5-services > a {

    min-width: 0 !important;
    min-height: 126px !important;

    margin: 0 !important;

    padding:
        17px
        12px
        13px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;

    text-align: center !important;

    border-radius: 18px !important;

    background:
        linear-gradient(
            150deg,
            #103956,
            #08263d
        ) !important;

    border:
        1px solid rgba(69,158,212,.18) !important;

    box-shadow:
        0 8px 20px rgba(9,46,71,.10),
        inset 0 1px 0 rgba(255,255,255,.05) !important;

    color: #edf8ff !important;

    box-sizing: border-box !important;
}


html body.r319-root-home
.r21p5-services .svc-ico {

    width: 38px !important;
    height: 38px !important;

    display: grid !important;
    place-items: center !important;

    margin:
        0
        auto
        8px !important;
}


html body.r319-root-home
.r21p5-services .svc-ico img {

    width: 36px !important;
    height: 36px !important;

    object-fit: contain !important;
}


html body.r319-root-home
.r21p5-services b {

    margin-top: 2px !important;

    color: #fff !important;

    font-size: 12px !important;
}


html body.r319-root-home
.r21p5-services small {

    margin-top: 4px !important;

    color:
        rgba(213,233,245,.70) !important;

    font-size: 9px !important;
}


/* ============================================================
   05. ABOUT + DAILY CONTENT
   ============================================================ */

html body.r319-root-home
.r21p5-mid.r21p15-home-grid {

    display: grid !important;

    grid-template-columns:
        minmax(290px,.72fr)
        minmax(0,1.65fr) !important;

    gap: 16px !important;

    align-items: stretch !important;

    direction: ltr !important;

    padding: 0 !important;

    background: transparent !important;
}


html body.r319-root-home
.r21p5-mid.r21p15-home-grid > * {

    direction: rtl !important;

    min-width: 0 !important;

    margin: 0 !important;
}


html body.r319-root-home
.r21p15-info-rail {

    display: flex !important;
    flex-direction: column !important;

    gap: 12px !important;

    width: 100% !important;
    max-width: none !important;
}


html body.r319-root-home
.r21p5-school-story {

    width: 100% !important;
    max-width: none !important;

    min-height: 300px !important;
    height: auto !important;

    display: grid !important;

    grid-template-columns:
        minmax(0,1.08fr)
        minmax(280px,.92fr) !important;

    overflow: hidden !important;

    border-radius: 20px !important;

    background:
        #08263d !important;

    border:
        1px solid rgba(69,154,207,.17) !important;

    box-shadow:
        0 10px 27px rgba(8,44,68,.11) !important;
}


/*
   R319 hid this image.
   Restore it for the professional desktop story card.
*/

html body.r319-root-home
.r21p15-home-grid
.story-photo {

    display: block !important;

    width: 100% !important;

    min-height: 300px !important;

    overflow: hidden !important;
}


html body.r319-root-home
.story-photo img {

    width: 100% !important;
    height: 100% !important;

    object-fit: cover !important;

    display: block !important;
}


html body.r319-root-home
.story-copy {

    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;

    padding: 28px !important;

    background:
        linear-gradient(
            145deg,
            #103a58,
            #071f34
        ) !important;

    color: #fff !important;
}


/* ============================================================
   06. OPTIONAL EVENTS
   ============================================================ */

html body.r319-root-home
#events.r21p5-hidden-events {

    height: auto !important;

    max-height: none !important;

    overflow: visible !important;

    padding: 20px !important;

    border-radius: 20px !important;

    background: #f7fbfe !important;

    border:
        1px solid rgba(63,124,165,.12) !important;

    box-shadow:
        0 7px 20px rgba(22,64,93,.06) !important;
}


/* No empty section */

html body.r319-root-home
#events:has(#publicExtras:empty) {

    display: none !important;
}


html body.r319-root-home
#events .extras-head {

    width: 100% !important;
    max-width: none !important;

    margin:
        0
        0
        14px !important;
}


/* ============================================================
   07. WHY ANDISHEH NO
   ============================================================ */

html body.r319-root-home
#why.r21p5-why {

    display: grid !important;

    grid-template-columns:
        minmax(0,1.65fr)
        minmax(280px,.68fr) !important;

    gap: 16px !important;

    align-items: stretch !important;

    direction: ltr !important;

    padding: 0 !important;

    background: transparent !important;

    border: 0 !important;

    box-shadow: none !important;

    border-radius: 0 !important;
}


html body.r319-root-home
#why .why-content {

    grid-column: 1 !important;

    direction: rtl !important;

    min-width: 0 !important;

    margin: 0 !important;

    padding: 20px !important;

    border-radius: 20px !important;

    background:
        linear-gradient(
            145deg,
            #ffffff,
            #f5faff
        ) !important;

    border:
        1px solid rgba(59,121,162,.14) !important;

    box-shadow:
        0 8px 22px rgba(23,66,95,.065) !important;
}


html body.r319-root-home
#why .why-content > header {

    display: flex !important;

    align-items: center !important;

    gap: 12px !important;

    margin-bottom: 15px !important;
}


html body.r319-root-home
#why .why-content h2 {

    margin: 0 !important;

    color: #123b59 !important;

    font-size: 19px !important;
}


html body.r319-root-home
#why .why-grid {

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0,1fr)) !important;

    gap: 10px !important;

    margin: 0 !important;
}


html body.r319-root-home
#why .why-grid article {

    min-width: 0 !important;
    min-height: 104px !important;

    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;

    padding: 12px 10px !important;

    text-align: center !important;

    border-radius: 15px !important;

    background: #fff !important;

    border:
        1px solid rgba(53,114,154,.11) !important;

    box-shadow:
        0 4px 12px rgba(24,65,92,.05) !important;

    box-sizing: border-box !important;
}


html body.r319-root-home
#why .why-grid i {

    color: #147caf !important;

    font-size: 23px !important;
}


html body.r319-root-home
#why .why-grid b {

    display: block !important;

    margin:
        7px
        0
        2px !important;

    color: #153a56 !important;

    font-size: 11px !important;
}


html body.r319-root-home
#why .why-grid small {

    color: #738795 !important;

    font-size: 8.5px !important;
}


html body.r319-root-home
#why .r21p5-quote {

    grid-column: 2 !important;

    direction: rtl !important;

    position: relative !important;

    width: 100% !important;

    min-height: 100% !important;
    height: auto !important;

    margin: 0 !important;

    padding: 27px 24px !important;

    display: flex !important;
    align-items: center !important;

    overflow: hidden !important;

    border-radius: 20px !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(54,173,224,.16),
            transparent 160px
        ),
        linear-gradient(
            145deg,
            #103b59,
            #07253b
        ) !important;

    border:
        1px solid rgba(66,156,209,.18) !important;

    box-shadow:
        0 9px 24px rgba(8,45,70,.10) !important;
}


html body.r319-root-home
#why .r21p5-quote .quote-bg {

    display: none !important;
}


html body.r319-root-home
#why .r21p5-quote blockquote {

    position: static !important;

    inset: auto !important;

    margin: 0 !important;

    color: #fff !important;

    font-size: 18px !important;

    line-height: 1.95 !important;

    font-weight: 900 !important;

    text-shadow: none !important;
}


/* ============================================================
   08. SYSTEM HIGHLIGHTS
   ============================================================ */

html body.r319-root-home
.r21p5-system-highlights {

    display: grid !important;

    grid-template-columns:
        repeat(4, minmax(0,1fr)) !important;

    gap: 12px !important;

    padding: 0 !important;

    background: transparent !important;
}


html body.r319-root-home
.r21p5-system-highlights article {

    min-width: 0 !important;
    min-height: 145px !important;

    margin: 0 !important;

    padding: 18px !important;

    border-radius: 18px !important;

    background:
        linear-gradient(
            150deg,
            #103956,
            #08263d
        ) !important;

    border:
        1px solid rgba(69,158,212,.17) !important;

    box-shadow:
        0 7px 19px rgba(9,46,71,.09) !important;

    color: #fff !important;

    box-sizing: border-box !important;
}


html body.r319-root-home
.r21p5-system-highlights article b {

    color: #fff !important;
}


html body.r319-root-home
.r21p5-system-highlights article p {

    color:
        rgba(216,235,246,.72) !important;

    line-height: 1.8 !important;
}


/* ============================================================
   09. FOOTER
   ============================================================ */

html body.r319-root-home
.r21p5-footer {

    display: grid !important;

    grid-template-columns:
        minmax(0,1.1fr)
        minmax(180px,.75fr)
        minmax(0,1.1fr) !important;

    gap: 20px !important;

    align-items: start !important;

    padding: 26px 28px !important;

    border-radius: 20px !important;

    background:
        linear-gradient(
            145deg,
            #08253d,
            #061c30
        ) !important;

    border:
        1px solid rgba(65,147,199,.16) !important;

    box-shadow:
        0 9px 25px rgba(8,40,62,.10) !important;

    color: #eaf7ff !important;
}


html body.r319-root-home
.r21p5-footer .footer-bottom {

    grid-column:
        1 / -1 !important;

    width: 100% !important;

    margin-top: 4px !important;

    padding-top: 12px !important;

    border-top:
        1px solid rgba(255,255,255,.08) !important;
}


/* Support already exists in right rail */

html body.r319-root-home
.mnp-support-footer,

html body.r319-root-home
.mnp-floating-support {

    display: none !important;
}


/* ============================================================
   10. DESKTOP SCALE SAFETY
   Critical when browser is zoomed out
   ============================================================ */

@media (min-width:981px) {

    html body.r319-root-home
    .registration-quick-links,

    html body.r319-root-home
    .temporary-registration,

    html body.r319-root-home
    .r21p5-services,

    html body.r319-root-home
    .r21p5-mid,

    html body.r319-root-home
    #events,

    html body.r319-root-home
    #why,

    html body.r319-root-home
    .r21p5-system-highlights,

    html body.r319-root-home
    .r21p5-footer {

        max-width: none !important;

        width: 100% !important;
    }
}


/* ============================================================
   11. TABLET
   ============================================================ */

@media (max-width:1200px) {

    html body.r319-root-home
    .r21p5-services {

        grid-template-columns:
            repeat(3, minmax(0,1fr)) !important;
    }


    html body.r319-root-home
    #why .why-grid,

    html body.r319-root-home
    .r21p5-system-highlights {

        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }
}


/* ============================================================
   12. MOBILE
   ============================================================ */

@media (max-width:980px) {

    html body.r319-root-home
    .registration-quick-links,

    html body.r319-root-home
    .temporary-registration-grid {

        grid-template-columns:
            1fr !important;
    }


    html body.r319-root-home
    .r21p5-services {

        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }


    html body.r319-root-home
    .r21p5-mid.r21p15-home-grid,

    html body.r319-root-home
    #why.r21p5-why {

        grid-template-columns:
            1fr !important;

        direction:
            rtl !important;
    }


    html body.r319-root-home
    .r21p5-school-story {

        grid-template-columns:
            1fr !important;
    }


    html body.r319-root-home
    .r21p15-home-grid
    .story-photo {

        min-height:
            220px !important;

        height:
            220px !important;
    }


    html body.r319-root-home
    #why .why-content,

    html body.r319-root-home
    #why .r21p5-quote {

        grid-column:
            1 !important;
    }


    html body.r319-root-home
    #why .r21p5-quote {

        grid-row:
            1 !important;

        min-height:
            165px !important;
    }


    html body.r319-root-home
    #why .why-content {

        grid-row:
            2 !important;
    }


    html body.r319-root-home
    .r21p5-system-highlights {

        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;
    }


    html body.r319-root-home
    .r21p5-footer {

        grid-template-columns:
            1fr !important;

        text-align:
            center !important;
    }


    html body.r319-root-home
    .r21p5-footer .footer-bottom {

        grid-column:
            1 !important;
    }
}


@media (max-width:560px) {

    html body.r319-root-home
    .r21p5-services,

    html body.r319-root-home
    #why .why-grid,

    html body.r319-root-home
    .r21p5-system-highlights {

        grid-template-columns:
            1fr !important;
    }
}


/* R32.40 FLOW FIX START */


/* ============================================================
   OCCASION BAR — NORMAL FLOW
   ============================================================ */

html body.r319-root-home
.r21p15-occasion-bar {

    width: 100% !important;
    max-width: none !important;

    margin:
        0
        0
        16px !important;

    box-sizing:
        border-box !important;
}


/* ============================================================
   EMPTY EVENTS — REMOVE ENTIRELY
   :empty was not robust enough because JS may insert a
   placeholder. Hide unless a real event card exists.
   ============================================================ */

html body.r319-root-home
#events:not(:has(.extra-event-card)) {

    display: none !important;
}


/* ============================================================
   WHY — FORCE BOTH CARDS INTO ONE EXACT ROW
   ============================================================ */

html body.r319-root-home
#why.r21p5-why {

    grid-template-rows:
        1fr !important;
}


html body.r319-root-home
#why .why-content {

    grid-column:
        1 !important;

    grid-row:
        1 !important;

    align-self:
        stretch !important;
}


html body.r319-root-home
#why .r21p5-quote {

    grid-column:
        2 !important;

    grid-row:
        1 !important;

    align-self:
        stretch !important;

    height:
        100% !important;

    min-height:
        100% !important;
}


/* ============================================================
   R312 INFO GRID MUST NOT RESERVE SPACE
   Safety rule for stale browser DOM.
   ============================================================ */

html body.r319-root-home
.r312-info-grid:empty {

    display:
        none !important;
}


/* ============================================================
   MOBILE
   ============================================================ */

@media (max-width:980px) {

    html body.r319-root-home
    #why.r21p5-why {

        grid-template-rows:
            auto auto !important;
    }


    html body.r319-root-home
    #why .r21p5-quote {

        grid-column:
            1 !important;

        grid-row:
            1 !important;

        height:
            auto !important;

        min-height:
            165px !important;
    }


    html body.r319-root-home
    #why .why-content {

        grid-column:
            1 !important;

        grid-row:
            2 !important;
    }
}


/* R32.40 FLOW FIX END */

/* === home-polish-r3241.css === */

/* R32.41 SCHOOL + RAIL POLISH */

html body.r319-root-home .r3241-school-wide {
    width: 100% !important;
    max-width: none !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1.55fr) minmax(340px, 0.95fr) !important;
    align-items: stretch !important;
    gap: 0 !important;
    overflow: hidden !important;
    border-radius: 28px !important;
    margin: 18px 0 24px !important;
    background: linear-gradient(135deg, #0a2b46 0%, #103a5b 100%) !important;
    border: 1px solid rgba(26, 92, 134, 0.22) !important;
    box-shadow: 0 18px 42px rgba(5, 24, 39, 0.18) !important;
    min-height: 470px !important;
}

html body.r319-root-home .r3241-school-wide > * {
    min-width: 0 !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-media {
    min-height: 470px !important;
    height: 100% !important;
    overflow: hidden !important;
    background: #d9e6ef !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-wide-img {
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    min-height: 470px !important;
    object-fit: cover !important;
    object-position: center center !important;
    image-rendering: auto !important;
    filter: none !important;
    transform: none !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-copy {
    min-height: 470px !important;
    padding: 42px 44px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    align-items: flex-end !important;
    text-align: right !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-copy,
html body.r319-root-home .r3241-school-wide .r3241-school-copy * {
    text-align: right !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-copy h1,
html body.r319-root-home .r3241-school-wide .r3241-school-copy h2,
html body.r319-root-home .r3241-school-wide .r3241-school-copy h3 {
    max-width: 12ch !important;
    line-height: 1.35 !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-copy p {
    max-width: 34ch !important;
    line-height: 1.95 !important;
}

html body.r319-root-home .r3241-school-wide .r3241-school-copy a,
html body.r319-root-home .r3241-school-wide .r3241-school-copy button {
    margin-top: 14px !important;
}


/* right rail -> bottom right on desktop */
@media (min-width: 1101px) {
    html body.r319-root-home .r3241-rail-bottom {
        position: fixed !important;
        right: 18px !important;
        left: auto !important;
        top: auto !important;
        bottom: 18px !important;
        width: min(350px, calc(100vw - 36px)) !important;
        max-height: calc(100vh - 36px) !important;
        overflow: auto !important;
        z-index: 90 !important;
        margin: 0 !important;
    }
}

/* mobile/tablet: keep school intro stacked */
@media (max-width: 1100px) {
    html body.r319-root-home .r3241-school-wide {
        grid-template-columns: 1fr !important;
        min-height: auto !important;
    }

    html body.r319-root-home .r3241-school-wide .r3241-school-media,
    html body.r319-root-home .r3241-school-wide .r3241-school-wide-img {
        min-height: 280px !important;
        height: 280px !important;
    }

    html body.r319-root-home .r3241-school-wide .r3241-school-copy {
        min-height: auto !important;
        padding: 28px 24px !important;
    }
}

/* === home-sidebar-brand-r3243.css === */
﻿/* ==========================================================
   R32.43 — RIGHT SIDEBAR BRAND FIX
   Only the logo/header area
   ========================================================== */

html body.r319-root-home
.r312-home-side
.r303-brand-lockup {

    width: 100% !important;
    height: 76px !important;
    min-height: 76px !important;
    max-height: 76px !important;

    display: grid !important;

    grid-template-columns:
        minmax(0,1fr)
        50px !important;

    grid-template-rows:
        1fr
        1fr !important;

    grid-template-areas:
        "title logo"
        "subtitle logo" !important;

    align-items: center !important;

    column-gap: 10px !important;
    row-gap: 0 !important;

    box-sizing: border-box !important;

    margin: 0 !important;

    padding:
        10px
        11px !important;

    overflow: hidden !important;

    direction: rtl !important;

    border-radius: 17px !important;

    border:
        1px solid rgba(80,158,204,.20) !important;

    background:
        radial-gradient(
            circle at 100% 0,
            rgba(64,172,224,.13),
            transparent 100px
        ),
        linear-gradient(
            145deg,
            #173f5d,
            #0b2d48
        ) !important;

    box-shadow:
        0 7px 18px rgba(7,44,70,.12),
        inset 0 1px 0 rgba(255,255,255,.08) !important;

    transform: none !important;
}


/* LOGO */

html body.r319-root-home
.r312-home-side
.r303-brand-lockup > img {

    grid-area: logo !important;

    display: block !important;

    width: 48px !important;
    height: 48px !important;

    min-width: 48px !important;
    min-height: 48px !important;

    max-width: 48px !important;
    max-height: 48px !important;

    margin: 0 !important;
    padding: 0 !important;

    align-self: center !important;
    justify-self: center !important;

    object-fit: contain !important;
    object-position: center !important;

    aspect-ratio: 1 / 1 !important;

    border-radius: 11px !important;

    background: #071d31 !important;

    box-shadow:
        0 3px 10px rgba(0,0,0,.22) !important;

    transform: none !important;

    filter: none !important;
}


/* TITLE */

html body.r319-root-home
.r312-home-side
.r303-brand-lockup > b {

    grid-area: title !important;

    display: block !important;

    align-self: end !important;

    width: auto !important;
    height: auto !important;

    margin: 0 !important;
    padding: 0 !important;

    color: #ffffff !important;

    font-size: 12px !important;
    line-height: 1.45 !important;
    font-weight: 900 !important;

    text-align: right !important;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* SUBTITLE */

html body.r319-root-home
.r312-home-side
.r303-brand-lockup > small {

    grid-area: subtitle !important;

    display: block !important;

    align-self: start !important;

    width: auto !important;
    height: auto !important;

    margin: 1px 0 0 !important;
    padding: 0 !important;

    color:
        rgba(216,234,245,.68) !important;

    font-size: 8.5px !important;
    line-height: 1.4 !important;
    font-weight: 500 !important;

    text-align: right !important;

    white-space: nowrap !important;

    overflow: hidden !important;
    text-overflow: ellipsis !important;
}


/* Prevent old rules from stretching any branding media */

html body.r319-root-home
.r312-home-side
.r303-brand-lockup img,
html body.r319-root-home
.r312-home-side
.r303-brand-lockup svg {

    flex: none !important;

    position: static !important;

    inset: auto !important;
}


/* mobile drawer */

@media (max-width:980px) {

    html body.r319-root-home
    .r312-home-side
    .r303-brand-lockup {

        height: 70px !important;
        min-height: 70px !important;
        max-height: 70px !important;

        grid-template-columns:
            minmax(0,1fr)
            44px !important;

        padding: 9px 10px !important;
    }


    html body.r319-root-home
    .r312-home-side
    .r303-brand-lockup > img {

        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;
        min-height: 42px !important;

        max-width: 42px !important;
        max-height: 42px !important;
    }
}

/* === home-mobile-final-r3246.css === */

/* ============================================================
   R32.46 — HOME MOBILE FINAL
   - remove redundant floating blue control
   - remove white role-area gutters
   - 2-column compact role cards
   - hero/header untouched
   ============================================================ */


@media (max-width:980px) {

    html,
    body.r319-root-home {
        max-width: 100% !important;
        overflow-x: hidden !important;
    }


    /*
       Redundant floating blue control detected automatically
       from the currently deployed menu stylesheet.
    */

    /* Floating menu trigger */ body.r319-root-home #r3235HomeMenuToggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
    }


    /*
       Main runtime shell remains full width.
       Do NOT modify hero/header geometry.
    */

    body.r319-root-home .r312-home-shell,
    body.r319-root-home .r312-home-main,
    body.r319-root-home .r312-roles {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;

        margin-left: 0 !important;
        margin-right: 0 !important;

        box-sizing: border-box !important;
    }


    /*
       Remove white plate/gutters around panel cards.
    */

    body.r319-root-home #role-access,
    body.r319-root-home .r21p5-role-wrap {
        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;

        padding:
            12px
            11px
            18px !important;

        background: transparent !important;

        border: 0 !important;
        border-radius: 0 !important;

        box-shadow: none !important;

        box-sizing: border-box !important;
    }


    body.r319-root-home
    .r21p5-role-wrap::before {
        display: none !important;
        content: none !important;
    }
}


/* ============================================================
   PHONE
   ============================================================ */

@media (max-width:640px) {

    /*
       Critical override:
       existing R32.35 refresh switches this to 1 column.
       Keep two compact columns instead.
    */

    body.r319-root-home
    .r21p5-role-grid {

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0,1fr)) !important;

        gap: 10px !important;

        width: 100% !important;
        max-width: none !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !important;
    }


    body.r319-root-home
    .r21p5-role-card {

        position: relative !important;

        min-width: 0 !important;

        min-height: 184px !important;
        height: auto !important;

        margin: 0 !important;

        padding:
            0
            9px
            11px !important;

        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;

        overflow: hidden !important;

        border-radius: 18px !important;

        border:
            1px solid rgba(73,168,225,.22) !important;

        background:
            linear-gradient(
                160deg,
                #103752,
                #08253c 62%,
                #061b2c
            ) !important;

        box-shadow:
            0 8px 0 rgba(10,43,65,.10),
            0 15px 25px rgba(2,19,31,.16),
            inset 0 1px 0 rgba(255,255,255,.045) !important;

        box-sizing: border-box !important;

        transform: none !important;
    }


    /*
       Standard role photo
    */

    body.r319-root-home
    .r21p5-role-card > img {

        display: block !important;

        width: calc(100% + 18px) !important;
        height: 96px !important;

        min-height: 96px !important;
        max-height: 96px !important;

        margin:
            0
            -9px
            8px !important;

        object-fit: cover !important;
        object-position: center 35% !important;

        border-radius:
            17px
            17px
            13px
            13px !important;

        background: transparent !important;
    }


    /*
       Family card uses a wrapper instead of a direct image.
    */

    body.r319-root-home
    .r21p5-role-card.family
    .family-card-visual {

        width: calc(100% + 18px) !important;
        height: 96px !important;

        min-height: 96px !important;
        max-height: 96px !important;

        margin:
            0
            -9px
            8px !important;

        overflow: hidden !important;

        border-radius:
            17px
            17px
            13px
            13px !important;
    }


    body.r319-root-home
    .r21p5-role-card.family
    .family-card-icon {

        width: 100% !important;
        height: 100% !important;

        object-fit: cover !important;
        object-position: center !important;

        margin: 0 !important;

        border-radius: 0 !important;
    }


    body.r319-root-home
    .r21p5-role-card h3 {

        margin:
            1px
            0
            3px !important;

        color: #ffffff !important;

        font-size: 12.5px !important;
        line-height: 1.5 !important;

        font-weight: 900 !important;
    }


    body.r319-root-home
    .r21p5-role-card p {

        margin: 0 !important;

        color:
            rgba(219,235,245,.76) !important;

        font-size: 8.5px !important;
        line-height: 1.7 !important;
    }


    body.r319-root-home
    .r21p5-role-card > span {

        position: absolute !important;

        left: 9px !important;
        bottom: 9px !important;

        width: 25px !important;
        height: 25px !important;

        display: grid !important;
        place-items: center !important;

        border-radius: 999px !important;

        font-size: 13px !important;
    }


    /*
       Prevent cards from receiving legacy individual max-width.
    */

    body.r319-root-home
    .r21p5-role-card:last-child,
    body.r319-root-home
    .r21p5-role-card.family,
    body.r319-root-home
    .r21p5-role-card.health,
    body.r319-root-home
    .r21p5-role-card.counselor {

        width: auto !important;
        max-width: none !important;

        grid-column: auto !important;
    }
}


/* ============================================================
   VERY NARROW PHONE ONLY
   ============================================================ */

@media (max-width:340px) {

    body.r319-root-home
    .r21p5-role-grid {
        grid-template-columns: 1fr !important;
    }
}

/* === home-mobile-top-r3247.css === */
﻿/* ============================================================
   ANDISHEH NO — R32.47
   MOBILE TOP FINAL

   Scope:
   - homepage mobile only
   - desktop untouched
   - lower homepage untouched
   ============================================================ */


/* ============================================================
   MOBILE / TABLET
   Remove redundant off-canvas menu system.
   The visible homepage header already contains navigation.
   ============================================================ */

@media (max-width:980px) {

    body.r319-root-home
    #r3235HomeMenuToggle,

    body.r319-root-home
    .r3235-menu-backdrop,

    body.r319-root-home
    .r3235-menu-close {

        display: none !important;

        visibility: hidden !important;

        pointer-events: none !important;
    }


    /*
       Do not keep a second hidden/fixed navigation rail
       when the normal header navigation is already visible.
    */

    body.r319-root-home
    > .r303-brand-rail,

    body.r319-root-home
    .r312-home-side {

        display: none !important;
    }


    body.r319-root-home.r3235-menu-open {

        overflow-x: hidden !important;
        overflow-y: auto !important;
    }


    body.r319-root-home
    .r312-home-shell,

    body.r319-root-home
    .r312-home-main {

        width: 100% !important;

        max-width: none !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding-left: 0 !important;
        padding-right: 0 !important;

        transform: none !important;

        box-sizing: border-box !important;
    }
}


/* ============================================================
   PHONE HEADER
   ============================================================ */

@media (max-width:760px) {

    body.r319-root-home {

        overflow-x: hidden !important;
    }


    body.r319-root-home
    .r312-top-host {

        width: 100% !important;

        margin: 0 !important;

        padding:
            8px
            10px
            5px !important;

        box-sizing: border-box !important;
    }


    body.r319-root-home
    .r21p5-header {

        display: grid !important;

        grid-template-columns:
            minmax(0,1fr)
            auto !important;

        grid-template-areas:
            "brand tools"
            "nav nav" !important;

        align-items: center !important;

        width: 100% !important;

        min-height: 0 !important;
        height: auto !important;

        margin: 0 !important;

        padding:
            10px
            11px
            9px !important;

        gap:
            8px
            9px !important;

        box-sizing: border-box !important;

        overflow: hidden !important;

        border-radius:
            21px !important;

        background:
            linear-gradient(
                145deg,
                #082740,
                #061d31
            ) !important;

        border:
            1px solid rgba(74,167,219,.18) !important;

        box-shadow:
            0 11px 28px rgba(3,25,42,.17),
            inset 0 1px 0 rgba(255,255,255,.05) !important;
    }


    /* ---------- BRAND ---------- */

    body.r319-root-home
    .r21p5-header
    .r21p5-brand {

        grid-area: brand !important;

        display: flex !important;

        align-items: center !important;

        gap: 8px !important;

        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        text-decoration: none !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand img {

        flex:
            0
            0
            42px !important;

        width: 42px !important;
        height: 42px !important;

        min-width: 42px !important;

        margin: 0 !important;

        border-radius: 11px !important;

        object-fit: contain !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand span {

        min-width: 0 !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand b {

        display: block !important;

        margin: 0 !important;

        color: #fff !important;

        font-size: 13.5px !important;

        line-height: 1.45 !important;

        font-weight: 900 !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand small {

        display: block !important;

        margin-top: 2px !important;

        color:
            rgba(208,230,243,.68) !important;

        font-size: 8.5px !important;

        line-height: 1.4 !important;
    }


    /* ---------- TOOLS ---------- */

    body.r319-root-home
    .r21p5-header-tools {

        grid-area: tools !important;

        display: flex !important;

        flex-direction: row !important;

        align-items: center !important;

        gap: 5px !important;

        width: auto !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    body.r319-root-home
    .r21p5-header-tools
    .icon-btn {

        flex:
            0
            0
            34px !important;

        width: 34px !important;
        height: 34px !important;

        min-width: 34px !important;
        min-height: 34px !important;

        padding: 0 !important;

        display: grid !important;

        place-items: center !important;

        border-radius: 11px !important;
    }


    /*
       Portal button is redundant on this compact mobile header.
       Access to panels is directly available in navigation/page.
    */

    body.r319-root-home
    .r21p5-header-tools
    .portal-pill {

        display: none !important;
    }


    /* ---------- NAV ---------- */

    body.r319-root-home
    .r21p5-header > nav {

        grid-area: nav !important;

        display: grid !important;

        grid-template-columns:
            repeat(3,minmax(0,1fr)) !important;

        gap:
            4px
            5px !important;

        width: 100% !important;

        min-width: 0 !important;

        margin: 0 !important;

        padding:
            7px
            0
            0 !important;

        border-top:
            1px solid rgba(255,255,255,.055) !important;

        overflow: visible !important;
    }


    body.r319-root-home
    .r21p5-header > nav > a {

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        width: 100% !important;

        min-width: 0 !important;
        min-height: 35px !important;

        margin: 0 !important;

        padding:
            5px
            4px !important;

        box-sizing: border-box !important;

        border-radius:
            10px !important;

        color:
            rgba(238,247,252,.88) !important;

        font-size:
            9.5px !important;

        line-height:
            1.3 !important;

        font-weight:
            760 !important;

        text-align:
            center !important;

        white-space:
            normal !important;

        text-decoration:
            none !important;
    }


    body.r319-root-home
    .r21p5-header > nav > a.active {

        background:
            rgba(255,255,255,.065) !important;

        color:
            #fff !important;

        box-shadow:
            inset
            0
            -2px
            0
            #e5bd58 !important;
    }


    /* ========================================================
       HERO — ONE INTEGRATED CARD
       No separate huge image card + huge text card.
       ======================================================== */

    body.r319-root-home
    .r312-hero {

        position: relative !important;

        display: block !important;

        width:
            calc(100% - 20px) !important;

        min-height: 385px !important;
        height: 385px !important;

        margin:
            6px
            10px
            14px !important;

        padding: 0 !important;

        overflow: hidden !important;

        border-radius:
            23px !important;

        background:
            #061f34 !important;

        border:
            1px solid rgba(75,166,216,.19) !important;

        box-shadow:
            0 13px 32px rgba(2,24,41,.19),
            inset 0 1px 0 rgba(255,255,255,.035) !important;

        box-sizing:
            border-box !important;
    }


    body.r319-root-home
    .r312-hero-media {

        position: absolute !important;

        inset: 0 !important;

        width: 100% !important;
        height: 100% !important;

        min-height: 0 !important;
        max-height: none !important;

        margin: 0 !important;

        overflow: hidden !important;

        border-radius: 0 !important;
    }


    body.r319-root-home
    .r312-hero-media img {

        display: block !important;

        width: 100% !important;
        height: 100% !important;

        min-height: 0 !important;
        max-height: none !important;

        object-fit: cover !important;

        object-position:
            50%
            50% !important;

        border-radius: 0 !important;
    }


    /*
       Readability gradient over image.
    */

    body.r319-root-home
    .r312-hero-media::after {

        content: "" !important;

        position: absolute !important;

        inset: 0 !important;

        pointer-events: none !important;

        background:
            linear-gradient(
                180deg,
                rgba(3,20,34,.05) 0%,
                rgba(3,20,34,.16) 33%,
                rgba(3,25,42,.80) 70%,
                rgba(3,24,40,.97) 100%
            ) !important;
    }


    body.r319-root-home
    .r312-hero-copy-host {

        position: relative !important;

        z-index: 2 !important;

        display: flex !important;

        align-items: flex-end !important;

        width: 100% !important;
        height: 100% !important;

        min-height: 385px !important;

        margin: 0 !important;

        padding:
            148px
            18px
            18px !important;

        box-sizing:
            border-box !important;

        background:
            transparent !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;
    }


    body.r319-root-home
    .r312-hero-copy-host
    .hero-copy {

        position: static !important;

        inset: auto !important;

        width: 100% !important;
        max-width: none !important;

        min-height: 0 !important;
        height: auto !important;

        margin: 0 !important;

        padding: 0 !important;

        background:
            transparent !important;

        border: 0 !important;

        border-radius: 0 !important;

        box-shadow: none !important;

        transform: none !important;

        text-align: right !important;
    }


    body.r319-root-home
    .hero-handwriting {

        display: none !important;
    }


    body.r319-root-home
    .hero-kicker {

        display: inline-flex !important;

        width: auto !important;

        margin:
            0
            0
            7px !important;

        padding:
            5px
            8px !important;

        border-radius:
            999px !important;

        background:
            rgba(225,186,83,.12) !important;

        border:
            1px solid rgba(225,186,83,.36) !important;

        color:
            #f0cb68 !important;

        font-size:
            8.5px !important;

        line-height:
            1.2 !important;
    }


    body.r319-root-home
    .hero-copy
    .hero-school-title {

        max-width:
            13ch !important;

        margin:
            0
            0
            5px !important;

        color:
            #fff !important;

        font-size:
            26px !important;

        line-height:
            1.42 !important;

        font-weight:
            950 !important;

        letter-spacing:
            -.3px !important;
    }


    body.r319-root-home
    .hero-copy > h2 {

        max-width:
            20ch !important;

        margin:
            0
            0
            7px !important;

        color:
            #e8c15e !important;

        font-size:
            15px !important;

        line-height:
            1.65 !important;

        font-weight:
            900 !important;
    }


    body.r319-root-home
    .hero-copy > p {

        max-width:
            39ch !important;

        margin:
            0
            0
            12px !important;

        color:
            rgba(229,240,247,.79) !important;

        font-size:
            10.5px !important;

        line-height:
            1.8 !important;
    }


    body.r319-root-home
    .hero-actions {

        display: grid !important;

        grid-template-columns:
            repeat(2,minmax(0,1fr)) !important;

        gap:
            8px !important;

        width:
            min(100%,300px) !important;

        margin: 0 !important;
    }


    body.r319-root-home
    .hero-actions > a {

        min-width: 0 !important;
        min-height: 42px !important;

        display: flex !important;

        align-items: center !important;
        justify-content: center !important;

        margin: 0 !important;

        padding:
            8px
            9px !important;

        border-radius:
            12px !important;

        box-sizing:
            border-box !important;

        font-size:
            10.5px !important;

        line-height:
            1.3 !important;

        font-weight:
            850 !important;
    }


    /*
       Don't let hidden legacy hero layers add height.
    */

    body.r319-root-home
    .r312-hero
    .hero-atmosphere {

        position: absolute !important;

        inset: 0 !important;

        pointer-events: none !important;
    }
}


/* ============================================================
   SMALL PHONE
   ============================================================ */

@media (max-width:420px) {

    body.r319-root-home
    .r21p5-header {

        padding:
            9px
            9px
            8px !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand img {

        width: 38px !important;
        height: 38px !important;

        min-width: 38px !important;

        flex-basis: 38px !important;
    }


    body.r319-root-home
    .r21p5-header
    .r21p5-brand b {

        font-size:
            12px !important;
    }


    body.r319-root-home
    .r21p5-header > nav > a {

        min-height:
            33px !important;

        font-size:
            8.7px !important;
    }


    body.r319-root-home
    .r312-hero {

        min-height:
            365px !important;

        height:
            365px !important;
    }


    body.r319-root-home
    .r312-hero-copy-host {

        min-height:
            365px !important;

        padding:
            132px
            15px
            15px !important;
    }


    body.r319-root-home
    .hero-copy
    .hero-school-title {

        font-size:
            23px !important;
    }


    body.r319-root-home
    .hero-copy > h2 {

        font-size:
            14px !important;
    }
}

/* === home-registration-closed-r3249.css === */
/* ============================================================
   ANDISHEH NO — R32.49
   REGISTRATION CLOSED NOTICE
   Scope: homepage registration area only
   ============================================================ */

html body.r319-root-home
#r319RegistrationStatus.r3249-registration-notice {
    direction: rtl !important;
    text-align: right !important;

    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) auto !important;
    align-items: center !important;

    gap: 16px !important;

    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    min-height: 0 !important;

    margin: 0 0 16px !important;
    padding: 18px 20px !important;

    box-sizing: border-box !important;

    border:
        1px solid rgba(218, 171, 83, .34) !important;

    border-right:
        4px solid #d6a64f !important;

    border-radius: 22px !important;

    background:
        radial-gradient(
            circle at 91% 20%,
            rgba(216, 166, 79, .11),
            transparent 29%
        ),
        linear-gradient(
            155deg,
            #103550,
            #08263d 58%,
            #071f33
        ) !important;

    box-shadow:
        0 15px 34px rgba(0, 0, 0, .22),
        inset 0 1px 0 rgba(255,255,255,.045)
        !important;

    color: #eef7fd !important;
}

html body.r319-root-home
.r3249-registration-notice__icon {
    width: 44px !important;
    height: 44px !important;

    display: grid !important;
    place-items: center !important;

    border-radius: 15px !important;

    border:
        1px solid rgba(224, 177, 88, .43) !important;

    background:
        rgba(211, 158, 62, .14) !important;

    color: #f2c76f !important;

    font-size: 22px !important;
    font-weight: 900 !important;
    line-height: 1 !important;

    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08)
        !important;
}

html body.r319-root-home
.r3249-registration-notice__content {
    min-width: 0 !important;
}

html body.r319-root-home
.r3249-registration-notice__content small {
    display: block !important;

    margin: 0 0 3px !important;

    color: #e7bd67 !important;

    font-size: 10px !important;
    font-weight: 800 !important;

    letter-spacing: 0 !important;
}

html body.r319-root-home
.r3249-registration-notice__content h2 {
    margin: 0 0 6px !important;

    color: #ffffff !important;

    font-size: 19px !important;
    font-weight: 900 !important;
    line-height: 1.45 !important;
}

html body.r319-root-home
.r3249-registration-notice__content p {
    margin: 0 !important;

    color: #c6d7e2 !important;

    font-size: 12.5px !important;
    font-weight: 500 !important;

    line-height: 2 !important;

    overflow-wrap: anywhere !important;
}

html body.r319-root-home
.r3249-registration-notice__badge {
    min-width: 126px !important;

    padding: 9px 13px !important;

    border-radius: 999px !important;

    border:
        1px solid rgba(224, 177, 88, .37) !important;

    background:
        rgba(176, 126, 41, .18) !important;

    color: #f3d18b !important;

    text-align: center !important;

    font-size: 10px !important;
    font-weight: 900 !important;

    white-space: nowrap !important;
}

/* Fail-safe: old online-registration controls must never reappear. */

html body.r319-root-home
.registration-quick-links,
html body.r319-root-home
#temporaryRegistration {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
}

/* ---------------- MOBILE ---------------- */

@media (max-width: 640px) {

    html body.r319-root-home
    #r319RegistrationStatus.r3249-registration-notice {
        grid-template-columns: 40px minmax(0, 1fr) !important;

        gap: 11px !important;

        margin: 0 0 12px !important;
        padding: 15px 14px !important;

        border-radius: 19px !important;
    }

    html body.r319-root-home
    .r3249-registration-notice__icon {
        width: 38px !important;
        height: 38px !important;

        border-radius: 13px !important;

        font-size: 19px !important;
    }

    html body.r319-root-home
    .r3249-registration-notice__content h2 {
        font-size: 17px !important;
    }

    html body.r319-root-home
    .r3249-registration-notice__content p {
        font-size: 11.5px !important;
        line-height: 1.95 !important;
    }

    html body.r319-root-home
    .r3249-registration-notice__badge {
        grid-column: 1 / -1 !important;

        width: 100% !important;
        min-width: 0 !important;

        margin-top: 2px !important;
        padding: 8px 10px !important;

        box-sizing: border-box !important;
    }
}

@media (max-width: 360px) {

    html body.r319-root-home
    #r319RegistrationStatus.r3249-registration-notice {
        padding: 13px 12px !important;
    }

    html body.r319-root-home
    .r3249-registration-notice__content p {
        font-size: 11px !important;
    }
}

/* === home-registration-role-r3250.css === */
/* =========================================================
   ANDISHEH NO — R32.50
   Registration moved into each relevant role card
   ========================================================= */

body.r319-root-home .registration-quick-links,
body.r319-root-home #temporaryRegistration {
    display: none !important;
    visibility: hidden !important;
}

/* The three registration-capable role cards */
body.r319-root-home .r3250-role-card {
    cursor: default !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    min-width: 0 !important;
}

body.r319-root-home .r3250-role-main {
    display: block !important;
    min-width: 0 !important;
    color: inherit !important;
    text-decoration: none !important;
    flex: 1 1 auto !important;
}

body.r319-root-home .r3250-role-main h3,
body.r319-root-home .r3250-role-main p {
    text-decoration: none !important;
}

body.r319-root-home .r3250-role-actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    margin-top: 10px !important;
}

body.r319-root-home .r3250-role-btn {
    min-height: 38px !important;
    padding: 8px 7px !important;
    border-radius: 11px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 10.5px !important;
    line-height: 1.5 !important;
    font-weight: 900 !important;
    text-decoration: none !important;
    transition:
        transform .16s ease,
        border-color .16s ease,
        background .16s ease !important;
}

body.r319-root-home .r3250-login-btn {
    color: #eef8ff !important;
    background: rgba(27, 112, 168, .24) !important;
    border: 1px solid rgba(89, 179, 235, .33) !important;
}

body.r319-root-home .r3250-register-btn {
    color: #fff4d7 !important;
    background: rgba(169, 116, 24, .26) !important;
    border: 1px solid rgba(233, 177, 70, .45) !important;
}

body.r319-root-home .r3250-role-btn:hover {
    transform: translateY(-1px) !important;
}

body.r319-root-home .r3250-register-btn[hidden] {
    display: none !important;
}

body.r319-root-home
.r3250-role-actions:has(.r3250-register-btn[hidden]) {
    grid-template-columns: 1fr !important;
}

/* Registration extension notice */
body.r319-root-home
#r319RegistrationStatus[data-state="open"] {
    border-color: rgba(220, 166, 60, .42) !important;
    box-shadow:
        0 15px 32px rgba(0,0,0,.24),
        inset 3px 0 0 rgba(225,169,61,.78) !important;
}

body.r319-root-home
#r319RegistrationStatus[data-state="open"] h2 {
    color: #fff6dc !important;
}

body.r319-root-home
#r319RegistrationStatus[data-state="open"] .r319-reg-badge,
body.r319-root-home
#r319RegistrationStatus[data-state="open"] .r3249-registration-notice__badge {
    color: #fff1c8 !important;
    background: rgba(150, 100, 19, .34) !important;
    border: 1px solid rgba(230, 174, 66, .48) !important;
}

@media (max-width: 560px) {
    body.r319-root-home .r3250-role-actions {
        grid-template-columns: 1fr !important;
    }

    body.r319-root-home .r3250-role-btn {
        min-height: 42px !important;
        font-size: 11px !important;
    }
}

/* === r3236-ui-polish.css === */
/* Andisheh No R32.36 — sitewide UI polish
   Goal: responsive hardening, readable tables/forms, login stability, no visual overflow.
   This file is intentionally loaded LAST. */

html,body{max-width:100%;overflow-x:hidden}
body{min-width:0}
img,svg,video,canvas{max-width:100%;height:auto}
button,.btn,input,select,textarea{max-width:100%}
button,.btn{writing-mode:horizontal-tb!important;word-break:normal!important;overflow-wrap:normal!important;line-height:1.55}
.app-shell,.main-area,.page,.panel,.page-toolbar,.topbar,.top-actions,.layout-2,.kpi-grid,.quick-access-grid,.account-quick-grid,.student-grid,.student-table-shell,.table-scroll{min-width:0}

/* ---------- Manager / dashboard header ---------- */
.topbar{flex-wrap:wrap!important;align-items:center!important;gap:10px 14px!important}
.top-context{min-width:0;flex:1 1 220px}
.top-context h2{line-height:1.45!important}
.top-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important;flex-wrap:wrap!important;gap:8px!important;min-width:0;flex:1 1 650px}
.top-actions>*{min-width:0;max-width:100%}
.top-actions .quick-open,.top-actions .sync-status,.top-actions .role-chip,.top-actions .top-action-card,.top-actions .icon-btn,.top-actions .jalali-top-date{white-space:nowrap!important;flex:0 0 auto}
.top-action-card,.quick-open,.sync-status,.role-chip{min-height:44px!important}
.quick-open small,.sync-status small,.role-chip small{line-height:1.25}

/* ---------- Shared cards, toolbars and forms ---------- */
.page-toolbar,.panel-head,.quick-access-head,.operation-actions,.student-toolbar-actions,.filters{min-width:0;flex-wrap:wrap!important;gap:10px!important}
.page-toolbar>*,.panel-head>*,.quick-access-head>*{min-width:0}
.filters select{min-width:150px!important}
select,textarea,input{min-width:0!important}
select option{color:#10283e;background:#fff}
.panel,.page-toolbar,.drawer,.modal-card,.student-table-shell,.table-scroll{overflow-wrap:normal;word-break:normal}
.hint,small,p{overflow-wrap:break-word}

/* ---------- Family / role login pages ---------- */
.auth-shell,.role-login{width:min(1180px,calc(100% - 32px))!important;margin-inline:auto!important;padding:28px 0!important;gap:22px!important;grid-template-columns:minmax(0,1.08fr) minmax(390px,.92fr)!important}
.auth-shell>.auth-brand,.auth-shell>.auth-card,.role-login>.login-story,.role-login>.auth-card{min-width:0!important}
.auth-card form,.role-login form{min-width:0!important}
.password-visibility-wrap{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;align-items:center!important;gap:8px!important;width:100%!important}
.password-visibility-wrap>input{width:100%!important;min-width:0!important}
.password-visibility-toggle{display:grid!important;place-items:center!important;width:44px!important;min-width:44px!important;max-width:44px!important;height:44px!important;min-height:44px!important;padding:0!important;margin:0!important;border-radius:12px!important;white-space:nowrap!important;overflow:hidden!important;font-size:17px!important;line-height:1!important}
#parentLoginForm>[data-js-required],#studentLoginForm>[data-js-required],.role-login-form>[data-js-required],.auth-card form>button[type="submit"]{width:100%!important;min-height:52px!important;display:flex!important;align-items:center!important;justify-content:center!important;text-align:center!important;white-space:normal!important}
.forgot-password-link{width:100%!important;min-height:42px!important;padding:8px 10px!important;text-align:center!important;white-space:normal!important}
.remember-row{grid-template-columns:auto 1fr!important;display:grid!important;align-items:center!important;justify-content:start!important;gap:10px!important}
.remember-row input{width:18px!important;min-width:18px!important;height:18px!important}
.auth-card-head{min-width:0}
.auth-card-head>div{min-width:0}

/* ---------- Manager student directory ---------- */
#page-students .page-toolbar{display:flex!important;align-items:center!important;justify-content:space-between!important}
#page-students .student-toolbar-actions{display:flex!important;align-items:center!important;justify-content:flex-end!important}
#page-students .student-toolbar-actions .filters{display:flex!important;align-items:center!important}
.grade-cards{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:14px!important}
.grade-card{min-width:0!important;background:linear-gradient(145deg,#fff,#f5f9fc)!important;border:1px solid #d8e4ec!important;color:#17334c!important;box-shadow:0 12px 28px rgba(15,55,82,.08)!important}
.grade-card span,.grade-card small{color:#62788b!important;opacity:1!important}
.grade-card b{color:#0d3654!important}
.student-table-shell{width:100%!important;overflow-x:auto!important;overscroll-behavior-inline:contain;border:1px solid #dce7ee!important;border-radius:20px!important;background:#fff!important;box-shadow:0 12px 30px rgba(20,52,80,.06)!important}
.student-prof-table{width:100%!important;background:#fff!important}
.student-prof-table thead th{background:#e7f0f6!important;color:#0b2b46!important;font-weight:900!important}
.student-prof-table tbody tr{background:#fff!important}
.student-prof-table tbody tr:nth-child(even){background:#f7fafc!important}
.student-prof-table td,.student-prof-table th,.student-prof-table b,.student-prof-table strong{color:#102f49!important;opacity:1!important;text-shadow:none!important}
.student-prof-table small{color:#61788b!important;opacity:1!important}
.student-prof-table .row-action{min-width:108px!important;white-space:nowrap!important;background:#f5fafc!important;color:#0d5570!important;border:1px solid #cce0ea!important}
.student-name-cell{min-width:190px}

/* ---------- Generic tables ---------- */
.table-scroll{overflow:auto!important;overscroll-behavior:contain}
.table-scroll table{background:#fff}
table th{color:#0c2c47!important;font-weight:900}
table td{color:#18364f!important}

/* ---------- Floating support: useful without covering content ---------- */
.mnp-floating-support{max-width:160px!important;z-index:80!important}

/* ---------- Medium laptop widths ---------- */
@media (max-width:1450px){
  .top-actions{flex-basis:100%!important;width:100%!important;justify-content:flex-start!important}
  .topbar{align-items:flex-start!important}
  .quick-open small,.sync-status small,.role-chip small{display:none!important}
  .top-action-card,.quick-open,.sync-status,.role-chip{padding:8px 11px!important}
}

@media (max-width:1100px){
  .auth-shell,.role-login{grid-template-columns:minmax(0,1fr) minmax(360px,440px)!important;width:min(100% - 24px,980px)!important}
  .auth-shell>.auth-brand,.role-login>.login-story{padding:24px!important}
  .auth-shell>.auth-card,.role-login>.auth-card{padding:24px!important}
  #page-students .page-toolbar{align-items:flex-start!important}
  #page-students .student-toolbar-actions{width:100%!important;justify-content:flex-start!important}
}

@media (max-width:860px){
  .auth-shell,.role-login{grid-template-columns:1fr!important;width:min(100% - 20px,680px)!important;padding:14px 0 28px!important}
  .auth-shell>.auth-brand,.role-login>.login-story{min-height:0!important}
  .auth-shell>.auth-card,.role-login>.auth-card{min-height:0!important}
  .top-actions{justify-content:flex-start!important}
  .grade-cards{grid-template-columns:1fr!important}
  #page-students .student-toolbar-actions,#page-students .student-toolbar-actions .filters{width:100%!important}
  #page-students .student-toolbar-actions>.btn{width:100%!important}
  #page-students .student-toolbar-actions .filters select{flex:1 1 180px!important}
  .mnp-floating-support{transform:scale(.92);transform-origin:left bottom}
}

@media (max-width:620px){
  .main-area{padding-inline:10px!important}
  .topbar{margin-inline:-10px!important;padding-inline:10px!important}
  .top-actions{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
  .top-actions>*{width:100%!important;justify-content:center!important}
  .top-actions .icon-btn{min-width:44px!important}
  .page-toolbar,.panel-head,.quick-access-head{align-items:flex-start!important}
  .filters{width:100%!important;display:grid!important;grid-template-columns:1fr!important}
  .filters select{width:100%!important;min-width:0!important}
  .auth-shell>.auth-brand,.auth-shell>.auth-card,.role-login>.login-story,.role-login>.auth-card{border-radius:24px!important;padding:18px!important}
  .auth-card h2,.role-login .auth-card h2{font-size:24px!important}
  .mnp-floating-support{max-width:132px!important}
}

/* === r3238-audit-remediation.css === */
/* R32.38 audit remediation: focused accessibility/mobile/safety fixes */
.reg-privacy-note{margin:10px 0 0;font-size:.86rem;line-height:1.9;color:var(--muted,#667985)}
.reg-privacy-note a{text-decoration:underline;text-underline-offset:3px}
.parent-quick-nav{position:sticky;top:0;z-index:24;display:flex;gap:8px;overflow-x:auto;padding:9px 12px;margin:0 auto 12px;max-width:1180px;background:rgba(4,19,33,.94);backdrop-filter:blur(12px);border:1px solid rgba(255,255,255,.08);border-radius:0 0 14px 14px;scrollbar-width:thin}
.parent-quick-nav a{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid rgba(255,255,255,.13);border-radius:999px;color:#eef8fb;text-decoration:none;font-weight:700;font-size:.83rem}
.parent-quick-nav a:focus-visible{outline:3px solid #7dd3fc;outline-offset:2px}
.empty-state{padding:14px!important;text-align:center!important;color:var(--muted,#64748b)!important}
@media(max-width:720px){
 .mnp-floating-support{bottom:calc(env(safe-area-inset-bottom,0px) + 12px)!important;left:12px!important;right:auto!important;max-width:48px!important;width:48px!important;height:48px!important;padding:0!important;border-radius:50%!important;overflow:hidden!important}
 .mnp-floating-support span{display:none!important}.mnp-floating-support img{width:28px!important;height:28px!important;margin:auto!important}
 body:has(form:focus-within) .mnp-floating-support{opacity:.2!important;pointer-events:none!important;transform:scale(.86)!important}
 .parent-quick-nav{top:0;margin:0 8px 10px;border-radius:0 0 12px 12px;padding:8px}
 .parent-quick-nav a{min-height:40px}
}
form button,form input,form select,form textarea{min-width:0}
button,.btn{word-break:normal;overflow-wrap:normal}
.table-scroll{overscroll-behavior-inline:contain}

/* === r3247-responsive-layout.css === */
/* R32.47 — sitewide responsive card/layout hardening
   Goal: prevent content/card overlap on desktop, tablet, mobile and installed PWA
   This file is intentionally loaded LAST on every HTML template. */

:root{--r3247-gap:clamp(10px,1.35vw,18px)}
html,body{max-width:100%;overflow-x:clip!important}
body{min-width:0!important}

/* Grid/flex children are allowed to shrink instead of pushing neighbouring cards. */
:where(
  .panel,.card,.kpi,.kpi-card,.dashboard-kpi,.hero-panel,.manager-hero,.student-welcome,
  .quick-access-panel,.archive-panel,.assessment-card,.assessment-runner,.comm-center,.comm-item,
  .counselor-hero,.counselor-case,.meeting-call,.trial-banner,.child-switcher,.reg-card,.auth-card,
  .payment-info-panel,.guidance-parent-panel,.counselor-parent,.homework-card,.message-card,.report-card,
  .guidance-card,.archive-card,.quick-card,.operation-card,.manager-quick,.grade-card,.student-card,
  .teacher-card,.vclass-card,.schedule-card,.account-pane,.accounting-layer,.table-panel,.report-info,
  .r3246-parent-scope,.r3246-qbank-panel
){min-width:0!important;max-width:100%!important;box-sizing:border-box!important}

:where(
  .layout-2,.grid2,.grid3,.form-grid,.kpi-grid,.student-kpis,.executive-kpis,.quick-access-grid,
  .grade-cards,.student-grid,.staff-cards,.parent-link-grid,.security-cards,.r21p2-grid,
  .assessment-grid,.pastoral-family-grid,.calendar-grid,.portal-grid,.trust-grid,.reg-grid,
  .student-grid2,.r8-event-row,.r8-feature-grid,.r8-extra-grid,.r8-plan-grid
)>*{min-width:0!important;max-width:100%!important}

/* Do not let text escape or sit on top of adjacent cards. */
:where(
  .panel,.card,.kpi,.kpi-card,.dashboard-kpi,.hero-panel,.student-welcome,.manager-hero,
  .grade-card,.manager-quick,.student-card,.assessment-card,.comm-item,.reg-card,.auth-card,
  .r3246-parent-scope,.r3246-qbank-panel,.page-toolbar
) :where(h1,h2,h3,h4,p,b,strong,span,small,label,a){
  max-width:100%;overflow-wrap:anywhere;word-break:normal
}

/* Content containers must grow with their content; old visual layers used fixed heights. */
:where(
  .hero-panel,.manager-hero,.student-welcome,.counselor-hero,.assessment-card,.assessment-runner,
  .meeting-call,.trial-banner,.child-switcher,.panel,.quick-access-panel,.archive-panel,
  .payment-info-panel,.guidance-parent-panel,.counselor-parent,.comm-center,.comm-item,
  .homework-card,.message-card,.report-card,.guidance-card,.archive-card,.quick-card,.operation-card,
  .manager-quick,.grade-card,.reg-card,.auth-card,.r3246-qbank-panel
){height:auto!important;max-height:none!important}

/* Dynamic guard classes added only when the browser actually measures clipping/overlap. */
.r3247-autoheight{height:auto!important;max-height:none!important;min-height:0!important}
.r3247-xoverflow{max-width:100%!important;min-width:0!important}
.r3247-stack{display:grid!important;grid-template-columns:minmax(0,1fr)!important;grid-auto-flow:row!important}

img,svg,video,canvas{max-width:100%}
iframe{max-width:100%}
pre,code{max-width:100%;overflow-wrap:anywhere;white-space:pre-wrap}
input,select,textarea,button{max-width:100%;min-width:0;box-sizing:border-box}

/* Headings/toolbars/actions: wrap instead of crossing neighbouring content. */
:where(.panel-head,.page-toolbar,.archive-heading,.operation-actions,.actions,.filters,.export-form,.export-actions,
       .parent-actions,.top-actions,.backup-actions,.student-toolbar-actions,.r3246-upload-row,.r3246-title){
  min-width:0!important;max-width:100%!important;flex-wrap:wrap!important
}
:where(.panel-head,.page-toolbar,.archive-heading)>*{min-width:0!important;max-width:100%!important}

/* Existing grade cards had absolute/fixed visual rules in older layers. Keep text in normal flow. */
.grade-card :where(b,strong,h2,h3,p,span,small){position:static!important;inset:auto!important;transform:none!important}
.grade-card{overflow:hidden!important}

/* Hero blocks: safe shrinking on wide screens, stacking on narrow screens. */
.hero-panel>*{min-width:0!important}
.hero-lock{min-width:0!important;max-width:100%!important;flex:0 1 230px}

/* Tables remain horizontally scrollable INSIDE their own card rather than widening the page. */
.table-scroll,.account-table,.performance-table{max-width:100%!important;overflow-x:auto!important;overflow-y:visible}
.table-scroll table{max-width:none!important}

/* Drawers/modals must fit the viewport in desktop browser and standalone PWA. */
.drawer,.modal-backdrop{box-sizing:border-box!important;max-width:100vw!important;overflow-x:hidden!important}
.drawer #studentDetail,.modal-card,.dialog-card{max-width:calc(100vw - 32px)!important;height:auto!important;max-height:none!important;box-sizing:border-box!important}

/* Parent area receives several historical visual layers; these rules are deliberately final. */
body.parent-ui-r318 .parent-main{min-width:0!important;max-width:100%!important}
body.parent-ui-r318 .hero-panel{height:auto!important;max-height:none!important}
body.parent-ui-r318 :where(.layout-2,.r21p2-grid,.assessment-center,.pastoral-family-grid,.homework-list,.extra-class-list,.message-list)>*{min-width:0!important}
body.parent-ui-r318 .parent-actions>*{min-width:0}

/* Student page used a fixed visual welcome layer in older themes. */
body.student-plan .student-welcome{height:auto!important;max-height:none!important;min-width:0!important}
body.student-plan .student-kpis>*,body.student-plan .student-grid2>*{min-width:0!important}

/* Manager/dashboard shell — preserve sidebar on desktop but never let main content push under it. */
.app-shell,.main-area,.page{min-width:0!important;max-width:100%!important}
.main-area{overflow-x:hidden}
.sidebar{max-width:min(92vw,320px)}
.side-nav{max-width:100%;overflow-x:hidden}

/* Smart-school / question bank additions. */
.r3246-parent-scope{grid-template-columns:repeat(3,minmax(0,1fr))!important}
.r3246-parent-scope>div{min-width:0!important}
.r3246-choices{max-width:100%;overflow-wrap:anywhere}

/* Laptop / tablet */
@media (max-width:1180px){
  :where(.kpi-grid,.student-kpis,.executive-kpis,.quick-access-grid){grid-template-columns:repeat(3,minmax(0,1fr))!important}
  :where(.student-grid,.staff-cards,.parent-link-grid,.security-cards,.r21p2-grid,.portal-grid,.trust-grid,.r8-feature-grid,.r8-event-row){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .r8-plan-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}
}

@media (max-width:900px){
  :where(.layout-2,.grid2,.grid3,.student-grid2,.r8-about,.r8-extra-grid){grid-template-columns:minmax(0,1fr)!important}
  :where(.kpi-grid,.student-kpis,.executive-kpis,.quick-access-grid,.grade-cards,.student-grid,.staff-cards,.parent-link-grid,.security-cards,.r21p2-grid,.portal-grid,.trust-grid,.reg-grid,.pastoral-family-grid,.r8-plan-grid,.r8-feature-grid,.r8-event-row){grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .form-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
  .hero-panel{display:flex!important;flex-direction:column!important;align-items:stretch!important;justify-content:flex-start!important}
  .hero-lock{width:100%!important;flex:auto!important}
  .topbar{height:auto!important;min-height:0!important;flex-wrap:wrap!important}
  .top-actions{height:auto!important;max-height:none!important;overflow:visible!important;flex-wrap:wrap!important;display:flex!important}
  .top-actions>*{height:auto!important;min-height:42px!important;max-width:100%!important}
  .page-toolbar{align-items:flex-start!important}
  body.parent-ui-r318 .parent-top{height:auto!important;min-height:0!important;flex-wrap:wrap!important;gap:10px!important}
  body.parent-ui-r318 .parent-actions{width:100%!important;display:flex!important;overflow:visible!important;flex-wrap:wrap!important}
}

/* Mobile + installed PWA */
@media (max-width:640px){
  html,body{width:100%!important;max-width:100%!important}
  :where(.portal-home-main,.parent-main,.student-plan main,.main-area,.registration-shell,.auth-shell,.role-login){max-width:100%!important}
  :where(.kpi-grid,.student-kpis,.executive-kpis,.quick-access-grid,.grade-cards,.student-grid,.staff-cards,.parent-link-grid,.security-cards,.r21p2-grid,.portal-grid,.trust-grid,.reg-grid,.form-grid,.pastoral-family-grid,.r3246-parent-scope,.r8-plan-grid,.r8-feature-grid,.r8-event-row){grid-template-columns:minmax(0,1fr)!important}
  :where(.panel,.page-toolbar,.hero-panel,.student-welcome,.quick-access-panel,.archive-panel,.assessment-card,.reg-card,.auth-card){padding-left:clamp(14px,4vw,20px)!important;padding-right:clamp(14px,4vw,20px)!important}
  :where(.panel-head,.page-toolbar,.archive-heading){display:flex!important;flex-direction:column!important;align-items:stretch!important;gap:10px!important}
  :where(.operation-actions,.actions,.filters,.export-form,.export-actions,.parent-actions,.backup-actions,.student-toolbar-actions){align-items:stretch!important}
  :where(.operation-actions,.actions,.filters,.export-form,.export-actions,.parent-actions,.backup-actions,.student-toolbar-actions)>.btn,
  :where(.operation-actions,.actions,.filters,.export-form,.export-actions,.parent-actions,.backup-actions,.student-toolbar-actions)>button{flex:1 1 100%!important;width:100%!important}
  .drawer,.modal-backdrop{padding:10px!important}
  .drawer #studentDetail,.modal-card,.dialog-card{width:100%!important;max-width:100%!important;margin:20px auto!important;padding:16px!important;border-radius:18px!important}
  .drawer-close,.modal-close{top:8px!important;left:8px!important}
  .r3246-parent-scope{grid-template-columns:minmax(0,1fr)!important}
  .r3246-title,.r3246-upload-row{flex-direction:column!important;align-items:stretch!important}
  .r3246-review-badge,.r3246-status{white-space:normal!important;align-self:flex-start}
  body.student-plan>header{height:auto!important;min-height:0!important;gap:10px!important;flex-wrap:wrap!important}
  body.student-plan>header>div{min-width:0!important;max-width:100%!important;flex-wrap:wrap!important}
  .r8-login main{grid-template-columns:minmax(0,1fr)!important;padding-inline:18px!important}
  .r8-login-card{padding:22px!important}
  .portal-card b,.plan3d>b,.temporary-reg-card span{position:static!important;inset:auto!important;display:inline-flex!important;margin-top:12px!important;transform:none!important}
}

@media (max-width:390px){
  :where(.kpi-grid,.student-kpis,.executive-kpis){grid-template-columns:minmax(0,1fr)!important}
  :where(.btn,button,.role-chip,.sync-status,.soft-pill,.lock-badge){overflow-wrap:anywhere}
  .main-area{padding-inline:8px!important}
  .parent-main,.student-plan main{padding-inline:10px!important}
}

/* PWA safe-area support without changing desktop geometry. */
@supports (padding:env(safe-area-inset-left)){
  @media (max-width:900px){
    body{padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
    .topbar,body.parent-ui-r318 .parent-top,body.student-plan>header{padding-top:max(10px,env(safe-area-inset-top))!important}
  }
}

/* === r3249-home-guide-minimal.css === */
/* R32.49 — home guide is deliberately a single premium title/CTA, no role grid. */
.r3249-home-guide{width:100%!important;max-width:100%!important;margin:12px 0 14px!important;padding:0!important;box-sizing:border-box!important;overflow:hidden!important;border-radius:18px!important;border:1px solid rgba(83,199,239,.18)!important;background:linear-gradient(135deg,#0a304b,#071f35)!important;box-shadow:0 10px 26px rgba(2,15,26,.14)!important}
.r3249-home-guide>a{position:relative;min-height:74px;padding:13px 18px!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:16px!important;text-decoration:none!important;color:#f7fcff!important;overflow:hidden!important}
.r3249-home-guide>a:before{content:"";position:absolute;inset:-70% auto -70% -12%;width:34%;transform:skewX(-18deg);background:linear-gradient(90deg,transparent,rgba(112,225,249,.11),transparent);animation:r3249HomeShine 7s ease-in-out infinite;pointer-events:none}
.r3249-home-guide-title{min-width:0;display:flex!important;align-items:center!important;gap:11px!important;font-size:clamp(17px,1.9vw,24px)!important;font-weight:950!important;letter-spacing:-.02em!important}
.r3249-home-guide-title:before{content:"▶";width:38px;height:38px;flex:0 0 38px;border-radius:12px;display:grid;place-items:center;padding-right:2px;font-size:12px;color:#fff;background:linear-gradient(145deg,#51d9f4,#168bce);box-shadow:0 8px 20px rgba(33,161,217,.25)}
.r3249-home-guide-arrow{display:inline-flex!important;align-items:center!important;gap:7px!important;white-space:nowrap!important;color:#72def6!important;font-size:9px!important;font-weight:950!important}.r3249-home-guide-arrow i{font-style:normal;font-size:15px;transition:transform .2s ease}.r3249-home-guide>a:hover .r3249-home-guide-arrow i,.r3249-home-guide>a:focus-visible .r3249-home-guide-arrow i{transform:translateX(-4px)}.r3249-home-guide>a:focus-visible{outline:2px solid rgba(99,220,248,.55);outline-offset:-3px}
/* Keep the fixed right rail from ever being visually invaded by adjacent home sections. */
body.r319-root-home>.r303-site-stage{min-width:0!important;overflow-x:clip!important;box-sizing:border-box!important}body.r319-root-home>.r303-site-stage>main,body.r319-root-home>.r303-site-stage main>*{max-width:100%!important;box-sizing:border-box!important}body.r319-root-home .registration-quick-links{width:100%!important;max-width:100%!important;position:relative!important;inset:auto!important;transform:none!important;clear:both!important;overflow:hidden!important}body.r319-root-home #r319RegistrationStatus{width:100%!important;max-width:100%!important;overflow:hidden!important;box-sizing:border-box!important}
@keyframes r3249HomeShine{0%,72%{left:-35%}90%,100%{left:125%}}
@media(max-width:760px){.r3249-home-guide{margin:8px 0 10px!important;border-radius:15px!important}.r3249-home-guide>a{min-height:64px;padding:10px 12px!important}.r3249-home-guide-title{font-size:16px!important;gap:8px!important}.r3249-home-guide-title:before{width:34px;height:34px;flex-basis:34px}.r3249-home-guide-arrow span{display:none!important}}
@media(prefers-reduced-motion:reduce){.r3249-home-guide>a:before{animation:none!important}}

/* === r3252-home-gallery.css === */
/* R32.52 — Public Home Gallery */
#selectedSchoolGallery.r3252-home-gallery{width:100%;max-width:none;margin:14px 0 18px;padding:0;border:0;background:transparent;box-shadow:none;overflow:visible!important}
#selectedSchoolGallery.r3252-home-gallery[hidden]{display:none!important}
.r3252-gallery-shell{position:relative;overflow:hidden;border:1px solid rgba(89,177,224,.24);border-radius:22px;background:linear-gradient(145deg,#0b2f4a,#071d30);box-shadow:0 16px 36px rgba(1,15,28,.22)}
.r3252-gallery-head{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:14px 18px 10px;color:#f4fbff}
.r3252-gallery-head>div{min-width:0}.r3252-gallery-head small{display:block;color:#75d8ef;font-size:11px;margin-bottom:3px}.r3252-gallery-head h2{margin:0;font-size:clamp(18px,2vw,25px);line-height:1.55;color:#fff}.r3252-gallery-count{flex:none;border:1px solid rgba(107,209,235,.2);background:rgba(16,65,92,.62);border-radius:999px;padding:7px 11px;color:#cfeef7;font-size:11px;white-space:nowrap}
.r3252-gallery-viewport{position:relative;min-height:clamp(260px,32vw,430px);overflow:hidden;background:#061827}
.r3252-gallery-slide{position:absolute;inset:0;margin:0;opacity:0;transform:scale(1.018);transition:opacity .62s ease,transform .8s ease;pointer-events:none}
.r3252-gallery-slide.is-active{opacity:1;transform:scale(1);pointer-events:auto;z-index:2}.r3252-gallery-slide img{width:100%;height:100%;display:block;object-fit:cover;position:absolute;inset:0}.r3252-gallery-slide:after{content:"";position:absolute;inset:0;background:linear-gradient(180deg,rgba(1,12,22,.02) 35%,rgba(1,12,22,.83) 100%)}
.r3252-gallery-slide figcaption{position:absolute;z-index:3;right:0;left:0;bottom:0;padding:34px 22px 18px;color:#fff;display:grid;gap:4px}.r3252-gallery-slide figcaption b{font-size:clamp(16px,1.7vw,22px);line-height:1.6}.r3252-gallery-slide figcaption span{font-size:12px;line-height:1.8;color:#d7e9f3;max-width:760px}
.r3252-gallery-nav{position:absolute;z-index:6;top:50%;transform:translateY(-50%);width:42px;height:42px;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(4,28,45,.68);backdrop-filter:blur(10px);color:white;font-size:21px;display:grid;place-items:center;cursor:pointer;transition:background .2s ease,transform .2s ease}.r3252-gallery-nav:hover,.r3252-gallery-nav:focus-visible{background:rgba(20,145,190,.9);outline:2px solid rgba(115,222,246,.55);outline-offset:2px}.r3252-gallery-prev{right:14px}.r3252-gallery-next{left:14px}.r3252-gallery-controls-hidden .r3252-gallery-nav{display:none}
.r3252-gallery-dots{position:absolute;z-index:6;left:50%;bottom:14px;transform:translateX(-50%);display:flex;gap:7px;align-items:center}.r3252-gallery-dots button{width:7px;height:7px;border:0;border-radius:999px;background:rgba(255,255,255,.5);padding:0;cursor:pointer;transition:width .2s ease,background .2s ease}.r3252-gallery-dots button.is-active{width:23px;background:#5ee0f2}.r3252-gallery-controls-hidden .r3252-gallery-dots{display:none}
@media(max-width:700px){#selectedSchoolGallery.r3252-home-gallery{margin:10px 0 14px}.r3252-gallery-shell{border-radius:18px}.r3252-gallery-head{padding:11px 12px 8px}.r3252-gallery-head h2{font-size:18px}.r3252-gallery-head small{font-size:10px}.r3252-gallery-count{font-size:10px;padding:6px 8px}.r3252-gallery-viewport{min-height:238px}.r3252-gallery-slide figcaption{padding:28px 14px 13px}.r3252-gallery-slide figcaption b{font-size:16px}.r3252-gallery-slide figcaption span{font-size:11px}.r3252-gallery-nav{width:36px;height:36px;font-size:18px}.r3252-gallery-prev{right:8px}.r3252-gallery-next{left:8px}.r3252-gallery-dots{bottom:10px}}
@media(prefers-reduced-motion:reduce){.r3252-gallery-slide,.r3252-gallery-dots button,.r3252-gallery-nav{transition:none!important}}

/* === r3253-pta-showcase.css === */
/* R32.53 — PTA candidate showcase on public home */
.r3253-pta-showcase{width:min(1180px,calc(100% - 28px));margin:18px auto 24px;position:relative;overflow:hidden;border-radius:30px;background:linear-gradient(135deg,#071f38 0%,#0b3857 52%,#0d6a78 100%);color:#fff;box-shadow:0 22px 56px rgba(5,32,52,.18);border:1px solid rgba(255,255,255,.12)}
.r3253-pta-showcase[hidden]{display:none!important}.r3253-pta-showcase:before,.r3253-pta-showcase:after{content:"";position:absolute;border-radius:50%;filter:blur(1px);pointer-events:none}.r3253-pta-showcase:before{width:300px;height:300px;left:-120px;top:-150px;background:radial-gradient(circle,rgba(59,220,205,.20),transparent 68%)}.r3253-pta-showcase:after{width:360px;height:360px;right:-170px;bottom:-220px;background:radial-gradient(circle,rgba(104,122,255,.16),transparent 70%)}
.r3253-pta-inner{position:relative;z-index:1;padding:24px}.r3253-pta-head{display:flex;align-items:flex-end;justify-content:space-between;gap:18px;margin-bottom:18px}.r3253-pta-head small{display:block;color:#83e9df;font-weight:900;font-size:11px;margin-bottom:6px}.r3253-pta-head h2{margin:0;font-size:clamp(22px,3vw,34px);line-height:1.35}.r3253-pta-head p{margin:7px 0 0;color:#c7dae7;font-size:12px;line-height:1.9}.r3253-pta-status{flex:0 0 auto;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.08);padding:8px 12px;border-radius:999px;font-size:10px;font-weight:900;color:#d9f9f5;backdrop-filter:blur(8px)}
.r3253-pta-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.r3253-candidate{position:relative;min-width:0;overflow:hidden;border-radius:22px;background:rgba(255,255,255,.96);color:#09283e;border:1px solid rgba(255,255,255,.55);box-shadow:0 10px 24px rgba(0,0,0,.12);transition:transform .22s ease,box-shadow .22s ease}.r3253-candidate:hover{transform:translateY(-3px);box-shadow:0 16px 32px rgba(0,0,0,.16)}.r3253-candidate-photo{aspect-ratio:4/3;background:#dfeaf0;overflow:hidden}.r3253-candidate-photo img{display:block;width:100%;height:100%;object-fit:cover}.r3253-candidate-copy{padding:13px 14px 15px}.r3253-candidate-copy b{display:block;font-size:15px;line-height:1.65}.r3253-candidate-copy span{display:block;margin-top:3px;color:#4c6475;font-size:11px;line-height:1.65}.r3253-candidate-copy p{margin:8px 0 0;color:#6a7f8e;font-size:10px;line-height:1.8;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}.r3253-rank{position:absolute;top:10px;right:10px;z-index:2;width:34px;height:34px;border-radius:50%;display:grid;place-items:center;background:#082b44;color:#fff;font-size:12px;font-weight:900;border:2px solid rgba(255,255,255,.85);box-shadow:0 5px 15px rgba(0,0,0,.18)}.r3253-votes{display:inline-flex!important;width:max-content;margin-top:8px!important;padding:5px 9px;border-radius:999px;background:#e8f7f4;color:#08705f!important;font-weight:900!important;font-size:10px!important}.r3253-pta-foot{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:16px;padding-top:14px;border-top:1px solid rgba(255,255,255,.13);color:#bcd2df;font-size:10px}.r3253-pta-foot strong{color:#fff}.r3253-pta-empty{padding:28px;text-align:center;color:#d6e7ef;border:1px dashed rgba(255,255,255,.22);border-radius:20px}
@media(max-width:900px){.r3253-pta-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.r3253-pta-head{align-items:flex-start;flex-direction:column}.r3253-pta-status{align-self:flex-start}}
@media(max-width:680px){.r3253-pta-showcase{width:calc(100% - 20px);border-radius:24px;margin:12px auto 18px}.r3253-pta-inner{padding:16px}.r3253-pta-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.r3253-candidate{border-radius:17px}.r3253-candidate-copy{padding:10px 10px 12px}.r3253-candidate-copy b{font-size:13px}.r3253-candidate-copy span{font-size:10px}.r3253-pta-foot{align-items:flex-start;flex-direction:column}}
@media(max-width:370px){.r3253-pta-grid{grid-template-columns:1fr 1fr}.r3253-candidate-copy p{display:none}}
@media(prefers-reduced-motion:reduce){.r3253-candidate{transition:none}.r3253-candidate:hover{transform:none}}

/* === r3253-daily-intelligence.css === */
/* R32.53 — Daily occasion + news refresh */
:root{--r3253-accent:var(--daily-accent,#0f5f87);--r3253-soft:var(--daily-soft,#edf6fa)}
body.r319-root-home{transition:background-color .35s ease}
body.r319-root-home[data-day-theme="police"] .r21p5-hero,
body.r319-root-home[data-day-theme="family"] .r21p5-hero,
body.r319-root-home[data-day-theme="health"] .r21p5-hero{position:relative}
body.r319-root-home[data-day-theme] .r21p5-hero:after{content:"";position:absolute;inset:auto 0 0 0;height:3px;background:linear-gradient(90deg,transparent,var(--daily-accent),transparent);opacity:.75;pointer-events:none}
.r3253-occasion-visuals{width:min(1180px,calc(100% - 28px));margin:-6px auto 18px;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:10px}
.r3253-occasion-visuals[hidden]{display:none!important}
.r3253-occasion-card{position:relative;overflow:hidden;min-height:106px;border:1px solid color-mix(in srgb,var(--daily-accent) 20%,#dbe8ef);border-radius:18px;background:linear-gradient(145deg,#fff,var(--daily-soft));box-shadow:0 10px 28px rgba(24,57,78,.07)}
.r3253-occasion-card img{display:block;width:100%;height:112px;object-fit:cover;border-radius:0!important}
.r3253-occasion-card span{position:absolute;inset:auto 10px 9px 10px;padding:5px 8px;border-radius:10px;background:rgba(4,25,42,.78);backdrop-filter:blur(8px);color:#fff;font-size:10px;font-weight:800;line-height:1.6}
.r3253-news-meta{display:flex;align-items:center;gap:7px;padding:7px 14px;border-top:1px solid #edf1f3;background:#fff;color:#688092;font-size:8px}
.r3253-news-meta i{width:7px;height:7px;border-radius:50%;background:#45b784;box-shadow:0 0 0 4px rgba(69,183,132,.12)}
.r3253-news-meta.warn i{background:#d79b2f}.r3253-news-meta.warn{color:#7f673a}
.r3253-news-row time{display:block;margin-top:2px;color:#8797a4;font-size:7.5px}
.r3253-school-pin{border-right:3px solid var(--daily-accent);padding-right:9px!important;background:color-mix(in srgb,var(--daily-soft) 56%,#fff)!important}
body.r319-root-home[data-day-theme="police"] .r303-brand-rail{background:linear-gradient(180deg,#eaf3f8,#f8fbfd)!important}
body.r319-root-home[data-day-theme="family"] .r303-brand-rail{background:linear-gradient(180deg,#f2effa,#fbf9fe)!important}
body.r319-root-home[data-day-theme="health"] .r303-brand-rail{background:linear-gradient(180deg,#eaf8f4,#f8fcfb)!important}
@media(max-width:760px){.r3253-occasion-visuals{grid-template-columns:1fr 1fr;margin-top:0}.r3253-occasion-card:nth-child(3){grid-column:1/-1}.r3253-occasion-card img{height:96px}}
@media(max-width:430px){.r3253-occasion-visuals{width:calc(100% - 20px);gap:8px}.r3253-occasion-card{min-height:88px}.r3253-occasion-card img{height:88px}.r3253-occasion-card span{font-size:9px}}

/* === r32531-media-contain.css === */
/* R32.53.1 — Full-image media fitting for public gallery + PTA candidates
   Rule: never crop uploaded media. Preserve aspect ratio, center it, and use a
   soft backdrop only to fill unused frame space. */

/* ---------- Public homepage gallery ---------- */
#selectedSchoolGallery .r3252-gallery-viewport{
  background:#071a28;
}
#selectedSchoolGallery .r3252-gallery-slide{
  background:#071a28;
  isolation:isolate;
}
#selectedSchoolGallery .r3252-gallery-slide .r32531-media-backdrop{
  position:absolute;
  inset:-30px;
  z-index:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(26px) saturate(.82) brightness(.62);
  opacity:.46;
  transform:scale(1.08);
  pointer-events:none;
}
#selectedSchoolGallery .r3252-gallery-slide img{
  position:absolute!important;
  inset:0!important;
  z-index:1!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:rgba(5,20,31,.26)!important;
  cursor:zoom-in;
}
#selectedSchoolGallery .r3252-gallery-slide:after{
  z-index:2!important;
  background:linear-gradient(180deg,rgba(1,12,22,0) 50%,rgba(1,12,22,.68) 100%)!important;
  pointer-events:none;
}
#selectedSchoolGallery .r3252-gallery-slide figcaption{z-index:3!important}

/* ---------- Public PTA candidate poster ---------- */
#ptaCandidateShowcase .r3253-candidate-photo{
  position:relative!important;
  aspect-ratio:4/5!important;
  min-height:0!important;
  overflow:hidden!important;
  display:grid!important;
  place-items:center!important;
  background:#e8f0f4!important;
  isolation:isolate;
}
#ptaCandidateShowcase .r3253-candidate-photo .r32531-media-backdrop{
  position:absolute;
  inset:-18px;
  z-index:0;
  background-position:center;
  background-size:cover;
  background-repeat:no-repeat;
  filter:blur(18px) saturate(.76) brightness(.92);
  opacity:.32;
  transform:scale(1.08);
  pointer-events:none;
}
#ptaCandidateShowcase .r3253-candidate-photo img{
  position:relative!important;
  z-index:1!important;
  display:block!important;
  width:100%!important;
  height:100%!important;
  object-fit:contain!important;
  object-position:center center!important;
  background:rgba(246,249,251,.72)!important;
  cursor:zoom-in;
}

/* ---------- Manager / executive upload previews ---------- */
.r3252-gallery-upload .r3252-preview,
.r3252-gallery-card,
.r3252-private-item,
.r3253-cand-preview,
.r3253-admin-card{
  background:#edf3f6!important;
}
.r3252-gallery-upload .r3252-preview img,
.r3252-gallery-card img,
.r3252-private-item img,
.r3253-cand-preview img,
.r3253-admin-card img{
  object-fit:contain!important;
  object-position:center center!important;
  background:#edf3f6!important;
}
.r3253-admin-card img{
  aspect-ratio:4/5!important;
  height:auto!important;
}

/* ---------- Full-image viewer ---------- */
.r32531-viewer{
  position:fixed;
  inset:0;
  z-index:2147483000;
  display:none;
  place-items:center;
  padding:clamp(12px,3vw,32px);
  background:rgba(2,13,22,.92);
  backdrop-filter:blur(8px);
}
.r32531-viewer.is-open{display:grid}
.r32531-viewer-panel{
  position:relative;
  width:min(1180px,96vw);
  height:min(88vh,900px);
  display:grid;
  place-items:center;
  border-radius:20px;
  overflow:hidden;
  border:1px solid rgba(255,255,255,.16);
  background:#081a28;
  box-shadow:0 24px 70px rgba(0,0,0,.38);
}
.r32531-viewer img{
  width:100%;
  height:100%;
  object-fit:contain!important;
  object-position:center!important;
  display:block;
}
.r32531-viewer-close{
  position:absolute;
  top:12px;
  left:12px;
  z-index:2;
  width:42px;
  height:42px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:50%;
  background:rgba(2,20,33,.78);
  color:#fff;
  font:700 24px/1 sans-serif;
  display:grid;
  place-items:center;
  cursor:pointer;
}
.r32531-viewer-close:focus-visible{outline:3px solid #5ee0f2;outline-offset:3px}

@media(max-width:680px){
  #ptaCandidateShowcase .r3253-candidate-photo{aspect-ratio:4/5!important}
  .r32531-viewer{padding:8px}
  .r32531-viewer-panel{width:100%;height:88vh;border-radius:16px}
  .r32531-viewer-close{top:8px;left:8px;width:38px;height:38px;font-size:21px}
}
@media(prefers-reduced-motion:reduce){.r32531-viewer{backdrop-filter:none}}

/* === r3255-home-balance.css === */
/* R32.55 — public home balance: seven-candidate poster + smaller school image */

/* 1) PTA showcase is authored for exactly seven candidates on desktop. */
@media (min-width:1101px){
  #ptaCandidateShowcase .r3253-pta-inner{padding:20px!important}
  #ptaCandidateShowcase .r3253-pta-grid{
    grid-template-columns:repeat(7,minmax(0,1fr))!important;
    gap:9px!important;
    align-items:start!important;
  }
  #ptaCandidateShowcase .r3253-candidate{border-radius:17px!important}
  #ptaCandidateShowcase .r3253-candidate-photo{aspect-ratio:4/5!important}
  #ptaCandidateShowcase .r3253-candidate-copy{padding:10px 9px 11px!important}
  #ptaCandidateShowcase .r3253-candidate-copy b{font-size:12.5px!important;line-height:1.55!important}
  #ptaCandidateShowcase .r3253-candidate-copy span{font-size:9.5px!important;line-height:1.55!important}
  #ptaCandidateShowcase .r3253-candidate-copy p{display:none!important}
}
@media (min-width:761px) and (max-width:1100px){
  #ptaCandidateShowcase .r3253-pta-grid{grid-template-columns:repeat(4,minmax(0,1fr))!important}
}
@media (max-width:760px){
  #ptaCandidateShowcase .r3253-pta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}
}

/* 2) The school-introduction visual was too dominant. Reduce its overall footprint ~30%. */
body.r21p5-public .r21p17-wide-story{
  height:255px!important;
  min-height:255px!important;
}
body.r21p5-public .r21p17-wide-story .story-photo{
  height:255px!important;
  min-height:255px!important;
}
body.r21p5-public .r21p17-wide-story .story-photo img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  object-position:center center!important;
}
body.r21p5-public .r21p17-wide-story .story-copy{
  padding:22px 26px!important;
}
body.r21p5-public .r21p17-wide-story .story-copy h2{
  font-size:clamp(21px,2vw,27px)!important;
  margin:8px 0 7px!important;
}
body.r21p5-public .r21p17-wide-story .story-copy p{
  font-size:11px!important;
  line-height:1.85!important;
  margin-bottom:10px!important;
}

/* 3) If the older top hero is visible in another viewport/theme, keep it 30% shorter too. */
body.r21p5-public .r21p5-hero{
  max-height:287px!important;
}

@media (max-width:980px){
  body.r21p5-public .r21p17-wide-story,
  body.r21p5-public .r21p17-wide-story .story-photo{
    height:252px!important;
    min-height:252px!important;
  }
}
@media (max-width:760px){
  body.r21p5-public .r21p5-hero{max-height:300px!important}
  body.r21p5-public .r21p17-wide-story{
    height:294px!important;
    min-height:294px!important;
  }
  body.r21p5-public .r21p17-wide-story .story-photo{
    height:294px!important;
    min-height:294px!important;
  }
  body.r21p5-public .r21p17-wide-story .story-copy{
    padding:16px 14px!important;
  }
  body.r21p5-public .r21p17-wide-story .story-copy h2{font-size:21px!important}
  body.r21p5-public .r21p17-wide-story .story-copy p{font-size:10.5px!important;line-height:1.75!important}
}

/* === support-r3256.css === */
/* R32.56 — reliable sitewide support control */
:root{--mnp56-bg:#082c50;--mnp56-bg2:#0a6f9f;--mnp56-border:rgba(94,221,255,.46);--mnp56-text:#fff;--mnp56-muted:#d5edf8}
#mnpSupportFixed{position:fixed!important;left:18px!important;bottom:calc(18px + env(safe-area-inset-bottom,0px))!important;z-index:2147483000!important;display:flex!important;align-items:center!important;gap:9px!important;min-height:56px!important;padding:7px 12px 7px 7px!important;border:1px solid var(--mnp56-border)!important;border-radius:18px!important;background:linear-gradient(135deg,var(--mnp56-bg),var(--mnp56-bg2))!important;box-shadow:0 12px 34px rgba(0,0,0,.38),0 0 0 1px rgba(255,255,255,.04) inset!important;color:var(--mnp56-text)!important;text-decoration:none!important;font-family:inherit!important;direction:rtl!important;box-sizing:border-box!important;isolation:isolate!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important;transform:none!important;overflow:visible!important}
#mnpSupportFixed:hover,#mnpSupportFixed:focus-visible{transform:translateY(-2px)!important;box-shadow:0 16px 38px rgba(0,0,0,.42),0 0 22px rgba(40,205,255,.18)!important;outline:3px solid rgba(84,219,255,.28)!important;outline-offset:2px!important}
#mnpSupportFixed .mnp56-icon{width:42px;height:42px;border-radius:13px;display:grid;place-items:center;flex:0 0 42px;background:rgba(255,255,255,.13);border:1px solid rgba(255,255,255,.2);box-shadow:inset 0 0 18px rgba(255,255,255,.05)}
#mnpSupportFixed .mnp56-icon svg{width:25px;height:25px;display:block;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
#mnpSupportFixed .mnp56-copy{display:flex;flex-direction:column;line-height:1.45;white-space:nowrap;text-align:right}
#mnpSupportFixed .mnp56-copy b{font-size:13px;font-weight:900;color:#fff}.mnp56-copy small{font-size:10px;color:var(--mnp56-muted)}
#mnpSupportFixed::after{content:"";position:absolute;right:-2px;top:-2px;width:10px;height:10px;border-radius:50%;background:#43e5a8;box-shadow:0 0 0 4px rgba(67,229,168,.15)}
/* Existing footer support control stays usable and looks clickable */
[data-mnp-support],.mnp-support-link{cursor:pointer!important;pointer-events:auto!important}
.mnp-support-footer{position:relative!important;z-index:3!important}
.mnp-support-footer .mnp-support-link{opacity:1!important;visibility:visible!important}
@media(max-width:700px){
  #mnpSupportFixed{left:12px!important;bottom:calc(82px + env(safe-area-inset-bottom,0px))!important;width:58px!important;height:58px!important;min-height:58px!important;padding:7px!important;border-radius:50%!important;justify-content:center!important}
  #mnpSupportFixed .mnp56-icon{width:42px;height:42px;flex-basis:42px;border-radius:50%}
  #mnpSupportFixed .mnp56-copy{display:none!important}
}
@media(prefers-reduced-motion:reduce){#mnpSupportFixed{transition:none!important}}

/* === r3266-home-hero-canonical.css === */

/*
 R32.66
 SINGLE CANONICAL HOMEPAGE HERO
 No fixed desktop height.
 Frame follows actual image geometry.
*/

html body.r319-root-home
.r312-home-main > .r312-hero,

html body.r319-root-home
.r312-hero {

    width:100% !important;

    height:auto !important;
    min-height:0 !important;
    max-height:none !important;

    aspect-ratio:2172 / 724 !important;

    position:relative !important;

    overflow:hidden !important;

    box-sizing:border-box !important;

    border-radius:18px !important;

    background:#06192a !important;
}


html body.r319-root-home
.r312-hero .r312-hero-media,

html body.r319-root-home
.r312-hero [class*="hero-media"] {

    position:absolute !important;

    inset:0 !important;

    width:100% !important;
    height:100% !important;

    min-height:0 !important;
    max-height:none !important;

    overflow:hidden !important;

    display:flex !important;

    align-items:center !important;
    justify-content:center !important;

    background:#06192a !important;
}


html body.r319-root-home
.r312-hero .r312-hero-media img,

html body.r319-root-home
.r312-hero [class*="hero-media"] img,

html body.r319-root-home
.r312-hero > img {

    display:block !important;

    width:100% !important;
    height:100% !important;

    min-width:0 !important;
    min-height:0 !important;

    max-width:100% !important;
    max-height:100% !important;

    object-fit:contain !important;

    object-position:center center !important;

    transform:none !important;

    margin:0 !important;
}


/*
 Initial hero before home-layout-r312.js rebuilds DOM.
 This prevents first-paint jump.
*/

html body.r319-root-home
.r21p5-hero {

    height:auto !important;

    min-height:0 !important;

    max-height:none !important;

    aspect-ratio:2172 / 724 !important;

    overflow:hidden !important;
}


html body.r319-root-home
.r21p5-hero .hero-campus {

    width:100% !important;

    height:100% !important;

    min-height:0 !important;

    max-height:100% !important;

    object-fit:contain !important;

    object-position:center center !important;

    transform:none !important;
}

/* === r3269-home-pta.css === */
/* R32.69 - visible PTA member panel, no homepage voting banner */
.r21p5-role-card.r3269-pta-role-card{position:relative;overflow:hidden;border:1px solid rgba(206,169,91,.48)!important;background:linear-gradient(155deg,#ffffff 0%,#f9fbfc 66%,#fff8e8 140%)!important;box-shadow:0 15px 34px rgba(10,43,66,.12),0 3px 0 rgba(216,180,103,.22)!important;transform:translateZ(0);transition:transform .2s ease,box-shadow .2s ease!important}
.r21p5-role-card.r3269-pta-role-card:hover{transform:translateY(-4px)!important;box-shadow:0 22px 44px rgba(10,43,66,.17),0 4px 0 rgba(216,180,103,.32)!important}
.r21p5-role-card.r3269-pta-role-card:before{content:"اعضای منتخب";position:absolute;z-index:3;top:10px;right:10px;padding:4px 9px;border-radius:999px;background:rgba(7,38,59,.88);color:#f0d38d;border:1px solid rgba(240,211,141,.44);font-size:10px;font-weight:900;backdrop-filter:blur(7px)}
.r21p5-role-card.r3269-pta-role-card>img{width:100%!important;height:132px!important;object-fit:cover!important;object-position:center 48%!important;filter:saturate(.9) contrast(1.02)}
.r21p5-role-card.r3269-pta-role-card h3{color:#153d57!important}.r21p5-role-card.r3269-pta-role-card p{color:#6a7e8b!important}.r21p5-role-card.r3269-pta-role-card>span:last-child{color:#9e762b!important}
body.r319-root-home .r3268-home-entry{display:none!important}
@media(max-width:640px){.r21p5-role-card.r3269-pta-role-card>img{height:118px!important}}

/* === r32694-pta-overlay-fix.css === */
/* R32.69.4 — targeted PTA card repair only. No homepage architecture changes. */
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card::before,
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card::after{
  content:none!important;
  display:none!important;
  position:static!important;
  inset:auto!important;
  top:auto!important;
  right:auto!important;
  bottom:auto!important;
  left:auto!important;
  width:0!important;
  height:0!important;
  min-width:0!important;
  min-height:0!important;
  max-width:0!important;
  max-height:0!important;
  margin:0!important;
  padding:0!important;
  border:0!important;
  background:none!important;
  box-shadow:none!important;
  transform:none!important;
  opacity:0!important;
  pointer-events:none!important;
}
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card>img{
  display:block!important;
  width:100%!important;
  height:132px!important;
  object-fit:cover!important;
  object-position:center 34%!important;
  filter:none!important;
  position:relative!important;
  z-index:1!important;
}
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card h3,
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card p,
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card>span:last-child{
  position:relative!important;
  z-index:2!important;
}
@media(max-width:640px){
  html body.r319-root-home .r21p5-role-card.r3269-pta-role-card>img{height:118px!important}
}

/* === r32695-election-countdown.css === */
/* R32.69.5 — compact election countdown. No homepage layout rewrite. */
.r32695-countdown-wrap{display:flex;justify-content:flex-start;align-items:center;margin:0 0 14px;direction:rtl}
.r32695-election-countdown{display:inline-flex;align-items:center;gap:12px;min-height:52px;padding:9px 13px 9px 16px;border-radius:17px;border:1px solid rgba(216,180,103,.55);background:linear-gradient(155deg,#092a42 0%,#0d4667 72%,#183c55 100%);color:#fff!important;box-shadow:0 10px 24px rgba(8,40,61,.16),inset 0 1px 0 rgba(255,255,255,.12);text-decoration:none!important;transition:transform .18s ease,box-shadow .18s ease;max-width:420px}
.r32695-election-countdown:hover{transform:translateY(-2px);box-shadow:0 14px 30px rgba(8,40,61,.22),inset 0 1px 0 rgba(255,255,255,.14)}
.r32695-countdown-icon{width:34px;height:34px;flex:0 0 34px;border-radius:12px;display:grid;place-items:center;background:linear-gradient(145deg,#f3d487,#d6a53f);color:#17364a;font-weight:1000;box-shadow:0 5px 14px rgba(221,174,70,.24)}
.r32695-countdown-copy{min-width:0}.r32695-countdown-copy b{display:block;font-size:13px;line-height:1.6;color:#fff}.r32695-countdown-copy small{display:block;font-size:10px;line-height:1.6;color:#cfe0e8}.r32695-countdown-days{margin-right:auto;white-space:nowrap;padding:5px 8px;border-radius:10px;background:rgba(255,255,255,.09);border:1px solid rgba(255,255,255,.12);color:#f0d18a;font-size:11px;font-weight:900}
.r32695-election-countdown.is-open{border-color:#d9b85f;box-shadow:0 12px 30px rgba(8,40,61,.22),0 0 0 3px rgba(217,184,95,.10)}
.r32695-election-countdown.is-open .r32695-countdown-icon{animation:r32695Pulse 1.8s ease-in-out infinite}
@keyframes r32695Pulse{0%,100%{transform:scale(1)}50%{transform:scale(1.08)}}
.r32695-dock-countdown{margin:0 0 12px;padding:9px 10px;border-radius:13px;background:rgba(239,207,131,.10);border:1px solid rgba(239,207,131,.24);color:#f2d58d;font-size:11px;font-weight:900;line-height:1.8;text-align:center}
.r32695-dock-countdown span{display:block;color:#d6e6ee;font-size:10px;font-weight:600}
@media(max-width:640px){.r32695-countdown-wrap{margin:0 0 10px}.r32695-election-countdown{width:100%;max-width:none;min-height:50px;padding:8px 10px}.r32695-countdown-days{font-size:10px}.r32695-countdown-copy b{font-size:12px}}

/* === r3271-home-structure.css === */
/* R32.71.1 - restore the public dashboard rail, keep public home compact,
   and place the live PTA candidate showcase directly below role panels. */
body.r319-root-home{background:#eef5f8!important}
/* Keep the proven R32.35 sidebar geometry. R32.71 previously hid it. */
@media(min-width:981px){
  body.home-r312>.r312-home-shell{display:block!important;width:100%!important;max-width:none!important;margin:0!important;padding:0!important}
  body.home-r312 .r312-home-side{display:flex!important;visibility:visible!important;opacity:1!important;pointer-events:auto!important}
  body.home-r312 .r312-home-main{width:auto!important;max-width:none!important;min-width:0!important;margin-right:240px!important;margin-left:0!important;padding-left:12px!important;padding-right:12px!important}
}
/* On mobile the existing R32.35 drawer behavior remains canonical. */
@media(max-width:980px){body.home-r312 .r312-home-main{width:100%!important;margin:0!important;padding:0!important}}
/* Public home is compact: preserved legacy content stays available to the dashboard layer, not stacked below the panels. */
body.home-r312 .r312-preserved{display:none!important}
body.home-r312 .r312-top-host{width:100%!important;max-width:none!important;margin:0 0 10px!important}
body.home-r312 .r312-hero{width:100%!important;max-width:none!important;margin:0 0 12px!important}
body.home-r312 .r312-roles{width:100%!important;max-width:none!important;margin:0!important}
body.home-r312 .r312-top-host .r21p5-header{min-height:54px!important;padding:7px 12px!important;border-radius:16px!important}
body.home-r312 .r312-top-host .r21p5-header nav{gap:4px!important}
body.home-r312 .r312-top-host .r21p5-header nav a{font-size:10px!important;padding:7px 9px!important;min-height:36px!important}
body.home-r312 .r312-roles .r21p5-role-grid{grid-template-columns:repeat(5,minmax(0,1fr))!important;gap:12px!important}
body.home-r312 .r312-roles .r21p5-role-card{min-height:222px!important;padding:8px 8px 12px!important;border-radius:19px!important}
body.home-r312 .r312-roles .r21p5-role-card img,body.home-r312 .r312-roles .r21p5-role-card.family .family-card-visual{height:116px!important;max-height:116px!important;border-radius:13px!important;margin-bottom:9px!important}
body.home-r312 .r312-roles .r21p5-role-card h3{font-size:14px!important;line-height:1.55!important;margin:1px 0 3px!important}
body.home-r312 .r312-roles .r21p5-role-card p{font-size:9px!important;line-height:1.7!important;margin:0!important}
body.home-r312 .r3269-pta-role-card img{object-fit:cover!important;object-position:center 32%!important;filter:none!important}
body.r319-root-home .r32695-countdown-wrap{display:none!important}
/* Dashboard identity label inside the restored rail. */
.r32711-dashboard-label{padding:5px 8px 0;display:grid;gap:1px;color:#153c55}.r32711-dashboard-label b{font-size:16px}.r32711-dashboard-label small{font-size:9px;color:#7690a0}
/* Candidate showcase directly below role panels. */
body.home-r312 #ptaCandidateShowcase.r32711-home-candidates{display:block;width:100%!important;max-width:none!important;margin:14px 0 0!important;border:1px solid #dce8ee!important;border-radius:22px!important;background:linear-gradient(180deg,#fff,#f8fbfc)!important;color:#15394f!important;box-shadow:0 12px 30px rgba(12,50,73,.07)!important;overflow:hidden}
body.home-r312 #ptaCandidateShowcase.r32711-home-candidates[hidden]{display:none!important}
body.home-r312 .r32711-home-candidates:before,body.home-r312 .r32711-home-candidates:after{display:none!important}
body.home-r312 .r32711-home-candidates .r3253-pta-inner{padding:16px!important}
body.home-r312 .r32711-home-candidates .r3253-pta-head{align-items:center!important;margin-bottom:12px!important}
body.home-r312 .r32711-home-candidates .r3253-pta-head small{color:#178477!important}.r32711-home-candidates .r3253-pta-head h2{font-size:20px!important;color:#11394f!important}.r32711-home-candidates .r3253-pta-head p{color:#708692!important;margin-top:3px!important}.r32711-home-candidates .r3253-pta-status{background:#e8f6f3!important;border-color:#cbe9e2!important;color:#137262!important}
.r32711-candidate-body{display:grid;grid-template-columns:minmax(0,1fr) 286px;gap:14px;align-items:start}
body.home-r312 .r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important;gap:10px!important}
body.home-r312 .r32711-home-candidates .r3253-candidate{border:1px solid #dfe9ee!important;border-radius:17px!important;background:#fff!important;color:#12384d!important;box-shadow:0 7px 18px rgba(12,50,73,.06)!important}
body.home-r312 .r32711-home-candidates .r3253-candidate-photo{aspect-ratio:4/3!important;background:#edf3f6!important}
body.home-r312 .r32711-home-candidates .r3253-candidate-copy{padding:10px 11px 12px!important}.r32711-home-candidates .r3253-candidate-copy b{font-size:13px!important}.r32711-home-candidates .r3253-candidate-copy span{font-size:10px!important}.r32711-home-candidates .r3253-candidate-copy p{font-size:9px!important;-webkit-line-clamp:3!important}
.r32711-home-candidates .r3253-pta-foot{margin-top:16px!important;padding:14px 18px!important;border:2px solid #8fd8ca!important;border-radius:16px!important;background:linear-gradient(135deg,#e9fbf7,#f4fbff)!important;color:#173f52!important;box-shadow:0 8px 22px rgba(15,95,110,.10)!important;display:flex!important;align-items:center!important;justify-content:space-between!important;gap:14px!important;flex-wrap:wrap!important}.r32711-home-candidates .r3253-pta-foot strong{color:#0b665d!important;font-size:15px!important;font-weight:1000!important}.r32711-home-candidates #r3253PtaNote{display:block!important;font-size:18px!important;line-height:1.8!important;font-weight:1000!important;color:#0b5265!important;padding:5px 10px!important}.r32711-home-candidates #r3253PtaNote:before{content:'📊 ';font-size:22px!important}@media(max-width:700px){.r32711-home-candidates .r3253-pta-foot{padding:12px!important}.r32711-home-candidates #r3253PtaNote{font-size:15px!important}}
.r32711-home-vote-card{position:sticky;top:14px;border-radius:19px;padding:11px;background:linear-gradient(155deg,#072a40,#0a5960 78%,#a7833e 155%);color:#fff;box-shadow:0 16px 32px rgba(6,39,58,.18),inset 0 1px 0 rgba(255,255,255,.12)}
.r32711-ballot{position:relative;height:132px;border-radius:15px;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 10%,rgba(255,255,255,.16),transparent 52%),rgba(255,255,255,.04);border:1px solid rgba(255,255,255,.09)}.r32711-ballot img{width:min(175px,82%);max-height:125px;object-fit:contain;filter:drop-shadow(0 10px 13px rgba(0,0,0,.2))}.r32711-ballot span{position:absolute;right:9px;bottom:7px;font-size:9px;color:#f0d28a;font-weight:900}
.r32711-home-vote-copy{padding:9px 4px 2px;text-align:right}.r32711-home-vote-copy small{color:#bfdbe0;font-size:9px}.r32711-home-vote-copy h3{margin:4px 0 1px;font-size:16px;line-height:1.6}.r32711-home-vote-copy p{margin:0;color:#f0d38b;font-size:10px;font-weight:900}.r32711-home-vote-copy ul{display:grid;gap:4px;margin:9px 0;padding:0;list-style:none;font-size:9px;color:#d8e8ec}.r32711-home-vote-copy li:before{content:'✓';display:inline-grid;place-items:center;width:15px;height:15px;border-radius:50%;margin-left:5px;background:rgba(255,255,255,.1);color:#f0d38b}.r32711-home-vote-copy a{display:block;padding:10px 8px;border-radius:12px;text-align:center;text-decoration:none;background:linear-gradient(135deg,#f0ce78,#d4a53f);color:#183649;font-size:11px;font-weight:1000;box-shadow:0 8px 18px rgba(213,166,65,.2)}
/* Dashboard content layer: the rail remains visible while one topic opens in the main area. */
.r32711-dashboard-layer[hidden]{display:none!important}.r32711-dashboard-layer{position:fixed;inset:12px 12px 12px 252px;z-index:145;background:rgba(235,244,248,.94);backdrop-filter:blur(12px);padding:12px;border-radius:24px;overflow:auto;direction:rtl}.r32711-layer-shell{width:min(1100px,100%);min-height:100%;margin:0 auto;border:1px solid #dbe7ed;border-radius:21px;background:#f8fbfc;box-shadow:0 20px 55px rgba(8,39,58,.16);overflow:hidden}.r32711-layer-head{position:sticky;top:0;z-index:3;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:13px 16px;background:rgba(255,255,255,.96);border-bottom:1px solid #e0eaef;backdrop-filter:blur(10px)}.r32711-layer-head small{display:block;color:#79909e;font-size:9px}.r32711-layer-head h2{margin:2px 0 0;font-size:19px;color:#143b53}.r32711-layer-close{width:38px;height:38px;border:1px solid #d6e3e9;border-radius:12px;background:#fff;color:#173e55;font-size:24px;cursor:pointer}.r32711-layer-body{padding:14px}.r32711-layer-body>#news,.r32711-layer-body>#about,.r32711-layer-body>#contact,.r32711-layer-body>#r319RegistrationStatus,.r32711-layer-body>#events,.r32711-layer-body>#selectedSchoolGallery{display:block!important;width:100%!important;max-width:none!important;margin:0 0 12px!important}.r32711-layer-body>#about{grid-template-columns:1fr!important}.r32711-layer-body>#about>#news{display:none!important}.r32711-layer-body .r21p5-footer{border-radius:18px!important;margin:0!important}.r32711-layer-open{overflow:hidden!important}
@media(max-width:1100px){body.home-r312 .r312-roles .r21p5-role-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r32711-candidate-body{grid-template-columns:minmax(0,1fr) 250px}.r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}}
@media(max-width:980px){.r32711-dashboard-layer{inset:8px;z-index:2100}.r32711-dashboard-label{display:none}.r32711-home-vote-card{position:relative;top:auto}.r32711-candidate-body{grid-template-columns:1fr}.r32711-home-vote-card{grid-row:1}}
@media(max-width:700px){body.home-r312 .r312-roles .r21p5-role-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}body.home-r312 .r312-roles .r21p5-role-card{min-height:205px!important}body.home-r312 .r312-roles .r21p5-role-card img,body.home-r312 .r312-roles .r21p5-role-card.family .family-card-visual{height:108px!important}.r32711-home-candidates .r3253-pta-head{align-items:flex-start!important}.r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}.r32711-dashboard-layer{padding:5px;border-radius:16px}.r32711-layer-body{padding:8px}}


/* R32.71.2 - compact candidate strip + public dashboard nav repair */
body.r319-root-home .r319-home-nav a{min-width:0!important;overflow:hidden!important}
body.r319-root-home .r319-home-nav a>span:last-child{min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.r319-root-home .r319-home-nav .r32712-nav-label{display:block!important;min-width:0!important;overflow:hidden!important;text-overflow:ellipsis!important;white-space:nowrap!important}
body.r319-root-home #ptaCandidateShowcase.r32711-home-candidates{margin:10px 0 0!important;border-radius:18px!important;box-shadow:0 8px 22px rgba(12,50,73,.06)!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-inner{padding:11px 12px 12px!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-head{margin-bottom:8px!important;gap:8px!important;align-items:center!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-head small{font-size:9px!important;margin-bottom:2px!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-head h2{font-size:16px!important;line-height:1.45!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-head p{font-size:9px!important;line-height:1.6!important;margin-top:2px!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-status{padding:5px 8px!important;font-size:9px!important}
body.r319-root-home .r32711-candidate-body{grid-template-columns:minmax(0,1fr) 218px!important;gap:10px!important;align-items:start!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(6,minmax(0,1fr))!important;gap:7px!important;align-items:stretch!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate{border-radius:14px!important;box-shadow:0 5px 13px rgba(12,50,73,.05)!important;min-height:0!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate:hover{transform:translateY(-1px)!important;box-shadow:0 8px 16px rgba(12,50,73,.08)!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-photo{aspect-ratio:auto!important;height:92px!important;min-height:92px!important;max-height:92px!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-photo img{object-fit:cover!important;object-position:center 24%!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy{padding:7px 7px 8px!important;text-align:center!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy b{font-size:11px!important;line-height:1.45!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy span{font-size:8px!important;line-height:1.5!important;margin-top:1px!important;white-space:nowrap!important;overflow:hidden!important;text-overflow:ellipsis!important}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy p{font-size:8px!important;line-height:1.45!important;margin:4px 0 0!important;-webkit-line-clamp:2!important;min-height:23px!important}
body.r319-root-home .r32711-home-candidates .r3253-votes{display:none!important}
body.r319-root-home .r32711-home-candidates .r3253-rank{width:25px!important;height:25px!important;top:6px!important;right:6px!important;font-size:9px!important}
body.r319-root-home .r32711-home-candidates .r3253-pta-foot{margin-top:8px!important;padding-top:7px!important;font-size:8px!important}
body.r319-root-home .r32711-home-vote-card{position:sticky!important;top:10px!important;border-radius:15px!important;padding:8px!important;box-shadow:0 10px 22px rgba(6,39,58,.14),inset 0 1px 0 rgba(255,255,255,.1)!important}
body.r319-root-home .r32711-ballot{height:78px!important;border-radius:12px!important}
body.r319-root-home .r32711-ballot img{width:min(105px,72%)!important;max-height:72px!important}
body.r319-root-home .r32711-ballot span{right:7px!important;bottom:5px!important;font-size:8px!important}
body.r319-root-home .r32711-home-vote-copy{padding:6px 2px 1px!important}
body.r319-root-home .r32711-home-vote-copy small{font-size:8px!important}
body.r319-root-home .r32711-home-vote-copy h3{font-size:13px!important;line-height:1.45!important;margin:3px 0 1px!important}
body.r319-root-home .r32711-home-vote-copy p{font-size:9px!important}
body.r319-root-home .r32711-home-vote-copy ul{grid-template-columns:1fr 1fr!important;gap:4px!important;margin:6px 0!important;font-size:8px!important}
body.r319-root-home .r32711-home-vote-copy li{white-space:nowrap!important}
body.r319-root-home .r32711-home-vote-copy li:before{width:13px!important;height:13px!important;margin-left:3px!important}
body.r319-root-home .r32711-home-vote-copy a{padding:8px 6px!important;border-radius:10px!important;font-size:9px!important}
@media(max-width:1220px){body.home-r312 .r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}.r32711-candidate-body{grid-template-columns:minmax(0,1fr) 218px!important}}
@media(max-width:980px){body.home-r312 .r32711-candidate-body{grid-template-columns:1fr!important}body.home-r312 .r32711-home-vote-card{position:relative!important;top:auto!important;grid-row:1!important;display:grid!important;grid-template-columns:110px minmax(0,1fr)!important;gap:8px!important;align-items:center!important}body.home-r312 .r32711-ballot{height:86px!important}body.home-r312 .r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(3,minmax(0,1fr))!important}}
@media(max-width:700px){body.home-r312 .r32711-home-candidates .r3253-pta-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important}body.home-r312 .r32711-home-candidates .r3253-candidate-photo{height:100px!important;min-height:100px!important;max-height:100px!important}body.home-r312 .r32711-home-vote-card{grid-template-columns:90px minmax(0,1fr)!important}.r32711-home-candidates .r3253-pta-head{align-items:flex-start!important}}

/* R32.71.4 - candidate balance */
body.r319-root-home #ptaCandidateShowcase.r32711-home-candidates{
  margin:8px 0 0!important;
  min-height:0!important;
  height:auto!important;
  border-radius:16px!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-inner{
  padding:8px 10px 9px!important;
  min-height:0!important;
  height:auto!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-head{
  display:grid!important;
  grid-template-columns:minmax(0,1fr) auto!important;
  align-items:center!important;
  gap:8px!important;
  margin:0 0 6px!important;
  min-height:0!important;
  height:auto!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-head>div{
  min-width:0!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-head small{
  font-size:8px!important;
  line-height:1.35!important;
  margin:0 0 1px!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-head h2{
  font-size:14px!important;
  line-height:1.35!important;
  margin:0!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-head p{
  display:none!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-status{
  padding:4px 7px!important;
  font-size:8px!important;
  line-height:1.2!important;
}

body.r319-root-home .r32711-candidate-body{
  grid-template-columns:minmax(0,1fr) 205px!important;
  gap:8px!important;
  align-items:stretch!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-grid{
  grid-template-columns:repeat(6,minmax(0,1fr))!important;
  gap:8px!important;
  align-items:stretch!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate{
  min-height:0!important;
  height:auto!important;
  border-radius:14px!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-photo{
  aspect-ratio:auto!important;
  height:110px!important;
  min-height:110px!important;
  max-height:110px!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-photo img{
  object-fit:cover!important;
  object-position:center 22%!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-copy{
  padding:6px 7px 7px!important;
  text-align:center!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-copy b{
  font-size:11.5px!important;
  line-height:1.4!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-copy span{
  font-size:8.5px!important;
  line-height:1.35!important;
  margin-top:1px!important;
  white-space:nowrap!important;
  overflow:hidden!important;
  text-overflow:ellipsis!important;
}

body.r319-root-home .r32711-home-candidates .r3253-candidate-copy p{
  font-size:8px!important;
  line-height:1.35!important;
  margin:3px 0 0!important;
  -webkit-line-clamp:2!important;
  min-height:22px!important;
}

body.r319-root-home .r32711-home-candidates .r3253-pta-foot{
  margin-top:5px!important;
  padding-top:5px!important;
  font-size:7.5px!important;
  line-height:1.35!important;
}

/* Minimal ballot card balanced to candidate row */
body.r319-root-home .r32711-home-vote-card{
  position:relative!important;
  top:auto!important;
  align-self:stretch!important;
  min-height:0!important;
  height:auto!important;
  border-radius:14px!important;
  padding:7px!important;
  display:flex!important;
  flex-direction:column!important;
  justify-content:space-between!important;
  box-shadow:
    0 8px 18px rgba(6,39,58,.13),
    inset 0 1px 0 rgba(255,255,255,.10)!important;
}

body.r319-root-home .r32711-ballot{
  height:68px!important;
  min-height:68px!important;
  border-radius:11px!important;
}

body.r319-root-home .r32711-ballot img{
  width:min(92px,68%)!important;
  max-height:62px!important;
}

body.r319-root-home .r32711-ballot span{
  right:6px!important;
  bottom:4px!important;
  font-size:7.5px!important;
}

body.r319-root-home .r32711-home-vote-copy{
  padding:5px 2px 0!important;
}

body.r319-root-home .r32711-home-vote-copy small{
  font-size:7.5px!important;
  line-height:1.3!important;
}

body.r319-root-home .r32711-home-vote-copy h3{
  font-size:12px!important;
  line-height:1.35!important;
  margin:2px 0 0!important;
}

body.r319-root-home .r32711-home-vote-copy p{
  font-size:8px!important;
  margin:0!important;
}

body.r319-root-home .r32711-home-vote-copy ul{
  grid-template-columns:1fr 1fr!important;
  gap:3px!important;
  margin:5px 0!important;
  font-size:7.5px!important;
}

body.r319-root-home .r32711-home-vote-copy li{
  white-space:nowrap!important;
}

body.r319-root-home .r32711-home-vote-copy li:before{
  width:12px!important;
  height:12px!important;
  margin-left:2px!important;
}

body.r319-root-home .r32711-home-vote-copy a{
  padding:7px 5px!important;
  border-radius:9px!important;
  font-size:8.5px!important;
}

/* Responsive preservation */
@media(max-width:1220px){
  body.home-r312 .r32711-home-candidates .r3253-pta-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }

  body.home-r312 .r32711-candidate-body{
    grid-template-columns:minmax(0,1fr) 205px!important;
  }
}

@media(max-width:980px){
  body.home-r312 .r32711-candidate-body{
    grid-template-columns:1fr!important;
  }

  body.home-r312 .r32711-home-vote-card{
    grid-row:1!important;
    display:grid!important;
    grid-template-columns:96px minmax(0,1fr)!important;
    gap:7px!important;
    align-items:center!important;
  }

  body.home-r312 .r32711-ballot{
    height:76px!important;
    min-height:76px!important;
  }

  body.home-r312 .r32711-home-candidates .r3253-pta-grid{
    grid-template-columns:repeat(3,minmax(0,1fr))!important;
  }
}

@media(max-width:700px){
  body.home-r312 .r32711-home-candidates .r3253-pta-head{
    grid-template-columns:1fr!important;
  }

  body.home-r312 .r32711-home-candidates .r3253-pta-status{
    justify-self:start!important;
  }

  body.home-r312 .r32711-home-candidates .r3253-pta-grid{
    grid-template-columns:repeat(2,minmax(0,1fr))!important;
  }

  body.home-r312 .r32711-home-candidates .r3253-candidate-photo{
    height:120px!important;
    min-height:120px!important;
    max-height:120px!important;
  }

  body.home-r312 .r32711-home-vote-card{
    grid-template-columns:86px minmax(0,1fr)!important;
  }
}
/* === r32715-final-readability.css === */
/* ============================================================
   ANDISHEH R32.71.5 — FINAL READABILITY & TYPOGRAPHY PASS
   Purpose: contrast, proportional type, collision prevention.
   Scope: visual/text only. No layout/business logic changes.
   ============================================================ */
:root{
  --r32715-ink:#17384d;
  --r32715-ink-strong:#0d2d43;
  --r32715-muted:#557184;
  --r32715-muted-2:#6a8292;
  --r32715-light:#f8fbfd;
  --r32715-light-muted:#d3e3ec;
  --r32715-line:#d8e4eb;
}

/* ---------- type geometry: prevent collisions without changing site architecture ---------- */
html[dir="rtl"] body{
  text-rendering:optimizeLegibility!important;
  -webkit-font-smoothing:antialiased;
  font-kerning:normal;
}
html[dir="rtl"] body :where(h1,h2,h3,h4,h5,h6){
  line-height:1.45!important;
  overflow-wrap:break-word;
  word-break:normal;
  margin-block-start:0;
}
html[dir="rtl"] body :where(p,label,small,li,td,th){
  line-height:1.72!important;
  overflow-wrap:break-word;
  word-break:normal;
}
html[dir="rtl"] body :where(.panel-head,.topbar,.top-actions,.parent-actions,.executive-top,.executive-top-actions,.r3271-title,.r3271-grid,.r3253-pta-grid,.r32711-candidate-body,.r3269-election-layout,.r3268-card-head,.r3268-event-head)>*{
  min-width:0!important;
}

/* ---------- controls: text must fit its box ---------- */
html[dir="rtl"] body :where(button,.btn,.r3268-btn,.r3250-role-btn,.top-action-card,.quick-open,.icon-btn){
  line-height:1.45!important;
  text-align:center;
  max-width:100%;
}
html[dir="rtl"] body :where(button,.btn,.r3268-btn,.r3250-role-btn,.top-action-card){
  min-height:40px;
  padding-block:8px;
}
html[dir="rtl"] body :where(input,select,textarea){
  font-size:14px!important;
  line-height:1.55!important;
}
html[dir="rtl"] body label{
  font-size:13px!important;
  line-height:1.7!important;
}

/* ---------- light surfaces: guaranteed dark readable copy ---------- */
body :where(.panel,.r3271-tile,.r3271-welcome-main,.r3271-news-item,.r3268-card,.r3268-event,.r3268-option,.r3253-candidate,.r32711-home-candidates,.r3269-candidate,.guidance-manager-card,.r8-account-row){
  color:var(--r32715-ink)!important;
}
body :where(.panel,.r3271-tile,.r3271-welcome-main,.r3271-news-item,.r3268-card,.r3268-event,.r3268-option,.r3253-candidate,.r32711-home-candidates,.r3269-candidate,.guidance-manager-card,.r8-account-row)
:is(h1,h2,h3,h4,h5,h6,b,strong,label){
  color:var(--r32715-ink-strong)!important;
  -webkit-text-fill-color:var(--r32715-ink-strong)!important;
  opacity:1!important;
}
body :where(.panel,.r3271-tile,.r3271-welcome-main,.r3271-news-item,.r3268-card,.r3268-event,.r3268-option,.r3253-candidate,.r32711-home-candidates,.r3269-candidate,.guidance-manager-card,.r8-account-row)
:is(p,small,.hint,.muted){
  color:var(--r32715-muted)!important;
  -webkit-text-fill-color:var(--r32715-muted)!important;
  opacity:1!important;
}

/* ---------- dark surfaces: guaranteed light readable copy ---------- */
body :where(.sidebar,.login-story,.auth-brand,.student-login-visual,.r3268-topbar,.r3268-hero,.r3269-vote-dock,.r32711-home-vote-card,.r3268-home-entry){
  color:var(--r32715-light)!important;
}
body :where(.sidebar,.login-story,.auth-brand,.student-login-visual,.r3268-topbar,.r3268-hero,.r3269-vote-dock,.r32711-home-vote-card,.r3268-home-entry)
:is(h1,h2,h3,h4,h5,h6,b,strong,label){
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
  opacity:1!important;
}
body :where(.sidebar,.login-story,.auth-brand,.student-login-visual,.r3268-topbar,.r3268-hero,.r3269-vote-dock,.r32711-home-vote-card,.r3268-home-entry)
:is(p,small,.hint,.muted){
  color:var(--r32715-light-muted)!important;
  -webkit-text-fill-color:var(--r32715-light-muted)!important;
  opacity:1!important;
}

/* ---------- public home right dashboard ---------- */
body.r319-root-home .r303-brand-lockup b{font-size:15px!important;line-height:1.45!important;color:#11364f!important}
body.r319-root-home .r303-brand-lockup small{font-size:10.5px!important;line-height:1.55!important;color:#537083!important;opacity:1!important}
body.r319-root-home .r319-home-nav a{
  min-height:48px!important;
  font-size:13px!important;
  line-height:1.55!important;
  gap:9px!important;
  white-space:normal!important;
}
body.r319-root-home .r319-home-nav a>span:not(.ico){
  min-width:0!important;
  white-space:normal!important;
  overflow-wrap:break-word!important;
}
body.r319-root-home .r319-home-nav .ico{flex:0 0 auto!important}

/* ---------- public role cards ---------- */
body.r319-root-home .r21p5-role-card h3{
  font-size:14px!important;
  line-height:1.45!important;
  color:#f9fcff!important;
  -webkit-text-fill-color:#f9fcff!important;
  margin:9px 10px 3px!important;
}
body.r319-root-home .r21p5-role-card p{
  font-size:10.5px!important;
  line-height:1.65!important;
  color:#d6e5ed!important;
  -webkit-text-fill-color:#d6e5ed!important;
  opacity:1!important;
  margin:0 10px 8px!important;
}
body.r319-root-home .r21p5-role-card>span{
  color:#f0bf55!important;
  -webkit-text-fill-color:#f0bf55!important;
  font-size:16px!important;
}
body.r319-root-home .r3250-role-btn{
  font-size:11.5px!important;
  line-height:1.45!important;
  white-space:normal!important;
}

/* ---------- candidates below panels: readable but still compact ---------- */
body.r319-root-home .r32711-home-candidates .r3253-pta-head small{
  font-size:9px!important;
  color:#157e6c!important;
  -webkit-text-fill-color:#157e6c!important;
  font-weight:800!important;
}
body.r319-root-home .r32711-home-candidates .r3253-pta-head h2{
  font-size:15px!important;
  color:#12384f!important;
  -webkit-text-fill-color:#12384f!important;
}
body.r319-root-home .r32711-home-candidates .r3253-pta-status{
  font-size:9px!important;
  color:#156c5b!important;
  -webkit-text-fill-color:#156c5b!important;
  white-space:nowrap!important;
}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy b{
  font-size:12.5px!important;
  line-height:1.45!important;
  color:#15384e!important;
  -webkit-text-fill-color:#15384e!important;
}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy span{
  font-size:9.5px!important;
  line-height:1.5!important;
  color:#536f80!important;
  -webkit-text-fill-color:#536f80!important;
}
body.r319-root-home .r32711-home-candidates .r3253-candidate-copy p{
  font-size:9px!important;
  line-height:1.55!important;
  color:#637b8a!important;
  -webkit-text-fill-color:#637b8a!important;
}
body.r319-root-home .r32711-home-candidates .r3253-pta-foot{
  font-size:8.5px!important;
  color:#617a89!important;
  -webkit-text-fill-color:#617a89!important;
}
body.r319-root-home .r32711-home-vote-copy h3{
  font-size:13px!important;
  line-height:1.5!important;
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}
body.r319-root-home .r32711-home-vote-copy :is(p,small,li){
  font-size:8.5px!important;
  line-height:1.55!important;
  color:#d8e8ee!important;
  -webkit-text-fill-color:#d8e8ee!important;
}
body.r319-root-home .r32711-home-vote-copy a{
  font-size:9.5px!important;
  line-height:1.45!important;
  color:#173547!important;
  -webkit-text-fill-color:#173547!important;
  font-weight:900!important;
}

/* ---------- unified dashboard hub ---------- */
.r3271-welcome-main small{font-size:11.5px!important;color:#627c8d!important}
.r3271-welcome-main h1{font-size:clamp(22px,2.2vw,27px)!important;line-height:1.45!important}
.r3271-welcome-main p{font-size:12.5px!important;line-height:1.75!important;color:#536f80!important}
.r3271-status-card b{font-size:17px!important;line-height:1.45!important}
.r3271-status-card span{font-size:11.5px!important;line-height:1.65!important;color:#d7e9e4!important}
.r3271-title h2{font-size:20px!important;line-height:1.45!important}
.r3271-title span{font-size:11px!important;line-height:1.6!important;color:#5f7889!important}
.r3271-tile b{font-size:15px!important;line-height:1.5!important;color:#15384e!important}
.r3271-tile small{font-size:11px!important;line-height:1.65!important;color:#60798a!important}
.r3271-news-item b{font-size:14px!important;line-height:1.55!important}
.r3271-news-item p{font-size:12px!important;line-height:1.72!important}
.r3271-news-item small{font-size:10.5px!important;line-height:1.55!important;color:#6c8392!important}
.r3271-backbar{font-size:13px!important;line-height:1.55!important}
.r3271-backbar button{font-size:12.5px!important}
.r3271-manager-strip a{font-size:13px!important;line-height:1.55!important}

/* ---------- manager / executive / parent / student dashboard typography ---------- */
.side-nav button{
  font-size:13.5px!important;
  line-height:1.55!important;
  min-height:43px!important;
  white-space:normal!important;
}
.nav-section-label{font-size:10.5px!important;line-height:1.55!important;color:#bcd2df!important;opacity:1!important}
.top-context h2{font-size:18px!important;line-height:1.45!important}
.top-context .eyebrow,.panel-head .eyebrow,.eyebrow{font-size:10.5px!important;line-height:1.55!important}
.page .panel h2,.page .panel h3,.parent-main .panel h2,.student-plan .panel h2,.executive-main .panel h2{
  font-size:17px!important;
  line-height:1.5!important;
}
.page .panel :is(p,.hint,small),.parent-main .panel :is(p,.hint,small),.student-plan .panel :is(p,.hint,small),.executive-main .panel :is(p,.hint,small){
  font-size:12px!important;
  line-height:1.72!important;
}
.soft-pill,.role-chip,.sync-status,.status-label{font-size:10.5px!important;line-height:1.45!important}
.kpi-grid b,.student-kpis b{line-height:1.35!important}
.kpi-grid small,.student-kpis small{font-size:10.5px!important;line-height:1.55!important}
.manager-quick :is(b,strong){font-size:13px!important;line-height:1.5!important}
.manager-quick :is(small,p){font-size:10.5px!important;line-height:1.65!important}

/* ---------- participation / PTA ---------- */
.r3268-brand b{font-size:15.5px!important}.r3268-brand span{font-size:11.5px!important;line-height:1.55!important}
.r3268-btn{font-size:12.5px!important;line-height:1.45!important}
.r3268-card-head h2{font-size:18px!important;line-height:1.5!important}
.r3268-card-head span{font-size:11.5px!important;line-height:1.55!important;color:#647d8d!important}
.r3268-form label{font-size:12.5px!important;line-height:1.65!important}
.r3268-list-item b{font-size:13px!important;line-height:1.55!important}
.r3268-list-item :is(small,p){font-size:11.5px!important;line-height:1.7!important}
.r3268-event h2{font-size:20px!important;line-height:1.45!important}
.r3268-event p{font-size:12.5px!important;line-height:1.72!important;color:#536f80!important}
.r3268-badge{font-size:11px!important;line-height:1.45!important}
.r3269-candidate :is(b,strong){font-size:13px!important;line-height:1.5!important;color:#15384e!important}
.r3269-candidate :is(p,small,span){line-height:1.65!important}
.r3269-vote-dock h3{font-size:18px!important;line-height:1.45!important;color:#fff!important}
.r3269-vote-dock :is(p,small,li,span){line-height:1.65!important}

/* ---------- tables and dense utility areas ---------- */
body table{font-size:12.5px!important}
body :where(td,th){line-height:1.6!important;padding-block:8px}
.empty-state{font-size:12px!important;line-height:1.7!important;color:#5c7484!important}
.toast,.r3268-toast{font-size:12.5px!important;line-height:1.6!important}

/* ---------- mobile: keep readable without reflow collisions ---------- */
@media(max-width:700px){
  html[dir="rtl"] body :where(button,.btn,.r3268-btn,.r3250-role-btn){font-size:12px!important}
  body.r319-root-home .r319-home-nav a{font-size:12px!important;min-height:44px!important}
  body.r319-root-home .r21p5-role-card h3{font-size:13px!important}
  body.r319-root-home .r21p5-role-card p{font-size:10px!important}
  .r3271-tile b{font-size:13px!important}.r3271-tile small{font-size:10px!important}
  .page .panel h2,.page .panel h3,.parent-main .panel h2,.student-plan .panel h2,.executive-main .panel h2{font-size:16px!important}
  body :where(input,select,textarea){font-size:16px!important}
}

/* === readability-r32.css === */
﻿/* R32 READABILITY — targeted typography only */

body .side-nav button b{
  font-size:14.5px !important;
  line-height:1.6 !important;
}

body .page-toolbar h3,
body .panel-head h3{
  font-size:22px !important;
  line-height:1.45 !important;
}

body .panel h4,
body .registration-manager-row h4,
body .staff-cards h4{
  font-size:16px !important;
  line-height:1.6 !important;
}

body label{
  font-size:14px !important;
  line-height:1.7 !important;
}

body input,
body select,
body textarea,
body button{
  font-size:14px !important;
}

body .hint,
body .muted,
body small{
  font-size:12.5px !important;
  line-height:1.8 !important;
}

body .soft-pill,
body .badge,
body .status-label,
body .lock-badge{
  font-size:12px !important;
}

body .kpi-card b,
body .dashboard-kpi b,
body .student-kpis b,
body .kpi-grid > * b{
  font-size:29px !important;
  line-height:1.25 !important;
}

body .kpi-card span,
body .dashboard-kpi span,
body .student-kpis span,
body .kpi-grid > * span{
  font-size:12.5px !important;
}

body #staffCards > div > b,
body #staffCards > div h3,
body #staffCards > div h4{
  font-size:16px !important;
}

body #r32TeacherIdentityManager h3{
  font-size:21px !important;
}

body #r32TeacherIdentityManager h4{
  font-size:16px !important;
}

body #r32TeacherIdentityManager label,
body #r32TeacherIdentityManager input,
body #r32TeacherIdentityManager select{
  font-size:14px !important;
}

/* موبایل */
@media(max-width:700px){

  body .page-toolbar h3,
  body .panel-head h3{
    font-size:19px !important;
  }

  body .side-nav button b{
    font-size:14px !important;
  }

  body .kpi-card b,
  body .dashboard-kpi b,
  body .student-kpis b,
  body .kpi-grid > * b{
    font-size:26px !important;
  }
}

/* === r3272-home-launch.css === */
/* R32.72_HOME_LAUNCH_NOTICE */

body.r319-root-home .r21p5-role-card.executive,
body.r319-root-home .r21p5-role-card.manager,
body.r319-root-home .r21p5-role-card.finance,
body.r319-root-home .r21p5-role-card.counselor,
body.r319-root-home .r21p5-role-card.health,
body.r319-root-home .r21p5-role-card.family,
body.r319-root-home .r21p5-role-card.pta,
body.r319-root-home .r3269-pta-role-card{
padding-bottom:58px!important
}

body.r319-root-home .r21p5-role-card.executive>span,
body.r319-root-home .r21p5-role-card.manager>span,
body.r319-root-home .r21p5-role-card.finance>span,
body.r319-root-home .r21p5-role-card.counselor>span,
body.r319-root-home .r21p5-role-card.health>span,
body.r319-root-home .r21p5-role-card.family>span,
body.r319-root-home .r21p5-role-card.pta>span,
body.r319-root-home .r3269-pta-role-card>span{
position:absolute!important;
left:14px!important;
right:14px!important;
bottom:12px!important;
width:auto!important;
height:38px!important;
border-radius:11px!important;
display:flex!important;
align-items:center!important;
justify-content:center!important;
background:linear-gradient(180deg,#164d6d,#0b3049)!important;
border:1px solid #357895!important;
color:#fff!important;
font-size:0!important
}

body.r319-root-home .r21p5-role-card.executive>span:before,
body.r319-root-home .r21p5-role-card.manager>span:before,
body.r319-root-home .r21p5-role-card.finance>span:before,
body.r319-root-home .r21p5-role-card.counselor>span:before,
body.r319-root-home .r21p5-role-card.health>span:before,
body.r319-root-home .r21p5-role-card.family>span:before,
body.r319-root-home .r21p5-role-card.pta>span:before,
body.r319-root-home .r3269-pta-role-card>span:before{
content:"ورود به پنل";
font-size:12.5px!important;
font-weight:900!important;
color:#fff!important
}

.r3272-launch-notice{
width:min(1180px,calc(100% - 30px));
margin:26px auto 30px;
direction:rtl;
display:grid;
grid-template-columns:120px minmax(0,1fr);
overflow:hidden;
border:1px solid #e8ca8d;
border-radius:24px;
background:linear-gradient(135deg,#fff,#fffaf0);
box-shadow:0 16px 38px rgba(61,50,23,.09);
color:#17384d
}

.r3272-launch-badge{
display:flex;
align-items:center;
justify-content:center;
padding:22px 16px;
background:linear-gradient(160deg,#e5a83b,#b97816);
color:#fff;
font-size:17px;
font-weight:950
}

.r3272-launch-content{
min-width:0;
padding:24px 26px 22px
}

.r3272-launch-content h2{
margin:0 0 10px;
color:#16364d;
font-size:21px;
line-height:1.8
}

.r3272-launch-content>p{
margin:0;
color:#405f73;
font-size:14px;
line-height:2.05
}

.r3272-launch-grid{
display:grid;
grid-template-columns:repeat(2,minmax(0,1fr));
gap:11px;
margin-top:18px
}

.r3272-launch-grid>div{
min-width:0;
padding:13px 15px;
border-radius:14px;
background:#fff;
border:1px solid #eadfc5
}

.r3272-launch-grid b{
display:block;
margin-bottom:4px;
color:#17384d;
font-size:13px;
line-height:1.8
}

.r3272-launch-grid span{
display:block;
color:#557184;
font-size:12px;
line-height:1.95
}

.r3272-launch-footnote{
margin-top:16px!important;
padding-top:13px;
border-top:1px solid #eadfc5;
color:#785417!important;
font-weight:800
}

@media(max-width:760px){

.r3272-launch-notice{
grid-template-columns:1fr
}

.r3272-launch-badge{
padding:10px 16px
}

.r3272-launch-content{
padding:19px 17px
}

.r3272-launch-content h2{
font-size:17px
}

.r3272-launch-grid{
grid-template-columns:1fr
}

}


/* === ui-contract-r3272.css === */

/* ==========================================================
   R32.72_SITEWIDE_UI_CONTRACT

   Purpose:
   - prevent text collision
   - prevent Persian word fragmentation
   - keep text inside assigned containers
   - normalize flex/grid shrinking
   - establish readable light/dark surface contracts

   No Hero geometry.
   No business logic.
   ========================================================== */


/* ----------------------------------------------------------
   1. BOX MODEL
   ---------------------------------------------------------- */

html {
    text-size-adjust: 100%;
    -webkit-text-size-adjust: 100%;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}


/* ----------------------------------------------------------
   2. FLEX / GRID SAFETY

   One of the most common causes of text collision is the
   default min-width:auto of flex/grid children.
   ---------------------------------------------------------- */

:where(
    .grid,
    .layout-2,
    .layout-3,
    .quick-access-grid,
    .account-quick-grid,
    .student-grid,
    .student-grid2,
    .student-kpis,
    .r3271-grid,
    .r3268-grid,
    .r21p5-role-grid
) > * {

    min-width: 0;
    max-width: 100%;
}


:where(
    .panel,
    .card,
    article,
    section,
    form,
    fieldset
) {

    min-width: 0;
}


/* ----------------------------------------------------------
   3. PERSIAN TEXT FIT

   IMPORTANT:
   Do NOT use word-break:break-all or overflow-wrap:anywhere
   globally. Persian words must remain intact.
   ---------------------------------------------------------- */

body :where(
    h1,h2,h3,h4,h5,h6,
    p,
    span,
    small,
    b,
    strong,
    label,
    legend,
    th,
    td,
    li,
    dt,
    dd
) {

    max-width: 100%;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;

    hyphens: none;

    text-overflow: clip;
}


/* Long machine identifiers may break if absolutely necessary. */

body :where(
    code,
    pre,
    .username,
    .user-name,
    .national-id,
    .personnel-code,
    .student-code,
    .account-id,
    .reference-id
) {

    overflow-wrap: anywhere;
    word-break: break-word;
}


/* ----------------------------------------------------------
   4. TYPOGRAPHIC RHYTHM
   ---------------------------------------------------------- */

body :where(
    p,
    li,
    td,
    label,
    small
) {
    line-height: 1.8;
}


body :where(
    h1,h2,h3,h4,h5,h6,
    b,
    strong,
    th
) {
    line-height: 1.65;
}


/* Prevent tiny unreadable text. */

body :where(
    .panel,
    .card,
    article
) small {

    font-size: max(
        11px,
        .72rem
    );
}


/* ----------------------------------------------------------
   5. FORM CONTROLS
   ---------------------------------------------------------- */

body :where(
    input,
    select,
    textarea,
    button
) {

    min-width: 0;
    max-width: 100%;

    font: inherit;

    line-height: 1.55;
}


body :where(
    input,
    select,
    textarea
) {

    width: 100%;

    background: #ffffff;
    color: #17384d;
}


body button {

    height: auto;

    min-height: 38px;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;
}


/* ----------------------------------------------------------
   6. LINKS / BUTTON LABEL FIT
   ---------------------------------------------------------- */

body :where(
    a,
    .btn,
    button
) {

    text-align: center;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;
}


/* ----------------------------------------------------------
   7. TABLE SAFETY
   ---------------------------------------------------------- */

body table {

    width: 100%;

    max-width: 100%;

    border-collapse: collapse;
}


body :where(
    th,
    td
) {

    min-width: 0;

    vertical-align: middle;

    white-space: normal;

    word-break: normal;

    overflow-wrap: break-word;
}


body th {

    font-size: clamp(
        11.5px,
        .95vw,
        13.5px
    );
}


/* ----------------------------------------------------------
   8. ACCOUNT REGISTRY

   The header must never fragment Persian words.
   ---------------------------------------------------------- */

.r8-account-head,
.r8-account-row {

    min-width: 0;

    max-width: 100%;
}


.r8-account-head > *,
.r8-account-row > * {

    min-width: 0;

    max-width: 100%;

    white-space: normal !important;

    word-break: normal !important;

    overflow-wrap: break-word !important;

    line-height: 1.7 !important;
}


.r8-account-head {

    color: #17384d !important;
}


.r8-account-head * {

    color: #17384d !important;
}


/* ----------------------------------------------------------
   9. LIGHT SURFACE CONTRACT
   ---------------------------------------------------------- */

:where(
    .panel,
    .card,
    .r3271-tile,
    .r3271-welcome-main,
    .r3271-news-item,
    .r3268-card,
    .r3268-event,
    .r3268-option,
    .r3253-candidate,
    .guidance-manager-card,
    .r8-account-row,
    .student-grid2 > section
) {

    color: #17384d;
}


:where(
    .panel,
    .card,
    .r3271-tile,
    .r3271-welcome-main,
    .r3271-news-item,
    .r3268-card,
    .r3268-event,
    .r3268-option,
    .r3253-candidate,
    .guidance-manager-card,
    .r8-account-row,
    .student-grid2 > section
)
:where(
    h1,h2,h3,h4,h5,h6,
    b,strong,label,legend
) {

    color: #17384d;
}


:where(
    .panel,
    .card,
    .r3271-tile,
    .r3271-welcome-main,
    .r3271-news-item,
    .r3268-card,
    .r3268-event,
    .r3268-option,
    .r3253-candidate,
    .guidance-manager-card,
    .r8-account-row,
    .student-grid2 > section
)
:where(
    p,
    small,
    .hint,
    .muted
) {

    color: #557184;
}


/* ----------------------------------------------------------
   10. DARK SURFACE CONTRACT
   ---------------------------------------------------------- */

:where(
    .sidebar,
    .topbar,
    .parent-top,
    .executive-top,
    .student-welcome,
    .login-story,
    .auth-brand,
    .student-login-visual,
    .r3268-topbar,
    .r3268-hero,
    .r3269-vote-dock,
    .r32711-home-vote-card,
    .r3268-home-entry,
    .r21p5-role-card
) {

    color: #ffffff;
}


:where(
    .sidebar,
    .topbar,
    .parent-top,
    .executive-top,
    .student-welcome,
    .login-story,
    .auth-brand,
    .student-login-visual,
    .r3268-topbar,
    .r3268-hero,
    .r3269-vote-dock,
    .r32711-home-vote-card,
    .r3268-home-entry,
    .r21p5-role-card
)
:where(
    h1,h2,h3,h4,h5,h6,
    b,strong,label
) {

    color: #ffffff;
}


:where(
    .sidebar,
    .topbar,
    .parent-top,
    .executive-top,
    .student-welcome,
    .login-story,
    .auth-brand,
    .student-login-visual,
    .r3268-topbar,
    .r3268-hero,
    .r3269-vote-dock,
    .r32711-home-vote-card,
    .r3268-home-entry,
    .r21p5-role-card
)
:where(
    p,
    small,
    .hint,
    .muted
) {

    color: #d3e3ec;
}


/* ----------------------------------------------------------
   11. LIGHT TABLE HEAD CONTRACT
   ---------------------------------------------------------- */

.r8-account-head,
.table-light-head,
.user-registry-head {

    background: #e9f0f6 !important;

    color: #17384d !important;
}


.r8-account-head *,
.table-light-head *,
.user-registry-head * {

    color: #17384d !important;

    text-shadow: none !important;
}


/* ----------------------------------------------------------
   12. DARK TABLE HEAD CONTRACT
   ---------------------------------------------------------- */

.table-dark-head {

    background: #0d3657 !important;

    color: #ffffff !important;
}


.table-dark-head * {

    color: #ffffff !important;
}


/* ----------------------------------------------------------
   13. MEDIA
   ---------------------------------------------------------- */

body :where(
    img,
    svg,
    video,
    canvas
) {

    max-width: 100%;
}


/* ----------------------------------------------------------
   14. RESPONSIVE TEXT
   ---------------------------------------------------------- */

@media(max-width:760px) {

    body :where(
        h1,h2,h3,h4
    ) {

        overflow-wrap: break-word;
        word-break: normal;
    }


    body :where(
        th,
        td,
        button,
        .btn
    ) {

        line-height: 1.7;
    }
}

/* === ui-contract-r3273.css === */
/* R32.73 Global UI Contract
   UI text: Vazirmatn self-hosted. Question-sheet print: B Nazanin-first.
   Conservative normalization only; feature/layout-specific rules remain intact. */
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-Regular.woff2") format("woff2");font-weight:400;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-Medium.woff2") format("woff2");font-weight:500;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-SemiBold.woff2") format("woff2");font-weight:600;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-Bold.woff2") format("woff2");font-weight:700;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-ExtraBold.woff2") format("woff2");font-weight:800;font-style:normal;font-display:swap}
@font-face{font-family:"Vazirmatn";src:url("/static/fonts/Vazirmatn-Black.woff2") format("woff2");font-weight:900;font-style:normal;font-display:swap}

:root{
  --ui-font:"Vazirmatn","AndishehUI","Noto Persian",Tahoma,"Segoe UI",Arial,sans-serif;
  --ui-radius-sm:10px;--ui-radius-md:14px;--ui-radius-lg:18px;
  --ui-focus:#26a7c8;--ui-focus-ring:rgba(38,167,200,.22);
}
html,body,button,input,select,textarea{font-family:var(--ui-font)!important}
body{font-synthesis:none;text-rendering:optimizeLegibility}
button,input,select,textarea{line-height:1.5}
button,a,input,select,textarea,[tabindex]{-webkit-tap-highlight-color:transparent}
:where(a,button,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--ui-focus)!important;outline-offset:2px!important;
}
:where(input,select,textarea):focus-visible{box-shadow:0 0 0 4px var(--ui-focus-ring)}
img,svg,video{max-width:100%}
@media (max-width:720px){
  input,select,textarea{font-size:16px}
  button,.btn{min-height:42px}
}
@media print{
  #parentPracticeCenter,#parentPracticeCenter *{
    font-family:"B Nazanin","B-NAZANIN","Nazanin","Noto Naskh Arabic",Tahoma,serif!important;
  }
  #parentPracticeCenter .parent-practice-question h3,
  #parentPracticeCenter .parent-practice-choices,
  #parentPracticeCenter .parent-practice-answer-space{
    font-family:"B Nazanin","B-NAZANIN","Nazanin","Noto Naskh Arabic",Tahoma,serif!important;
  }
}

/* R32.73 visual tokens: shared primitives only */
:root{
  --ui-bg:#f3f7fb;--ui-surface:#fff;--ui-surface-soft:#f7fafc;
  --ui-text:#153047;--ui-muted:#607789;--ui-line:rgba(42,92,128,.16);
  --ui-primary:#167fbd;--ui-primary-strong:#126c9f;
  --ui-success:#287a50;--ui-warning:#8a6410;--ui-danger:#a63e4e;
  --ui-shadow-sm:0 6px 18px rgba(20,52,80,.07);
  --ui-shadow-md:0 12px 30px rgba(20,52,80,.10);
  --ui-control-h:44px;
}
:where(button,.btn,input,select,textarea){border-radius:var(--ui-radius-md)}
:where(input,select,textarea){
  min-height:var(--ui-control-h);border-width:1px;
  transition:border-color .18s ease,box-shadow .18s ease,background-color .18s ease;
}
:where(button,.btn){transition:transform .18s ease,box-shadow .18s ease,border-color .18s ease,background-color .18s ease}
:where(button,.btn):not(:disabled):active{transform:translateY(1px)}
:where(button,.btn):disabled{cursor:not-allowed}
:where(.card,.panel,.portal-card,.metric,.item,.assessment-card){
  border-color:var(--ui-line);
}
:where(table){border-spacing:0}
:where(th,td){vertical-align:middle}
:where(.muted,.hint,small){line-height:1.75}
@media (prefers-reduced-motion:reduce){
  *,*::before,*::after{scroll-behavior:auto!important;transition-duration:.01ms!important;animation-duration:.01ms!important;animation-iteration-count:1!important}
}


/* R32.74 VISUAL QA FIXES */
/* Keep floating feedback/toast messages clear of the persistent support control. */
.toast{bottom:96px!important;z-index:70!important}
@media(max-width:700px){
  .toast{left:12px!important;right:12px!important;bottom:calc(154px + env(safe-area-inset-bottom,0px))!important;max-width:none!important}
}
/* PTA role card: reserve a dedicated CTA zone so the button never overlaps copy. */
body.r319-root-home .r21p5-role-card.pta,
body.r319-root-home .r3269-pta-role-card{
  position:relative!important;
  padding-bottom:68px!important;
}
body.r319-root-home .r21p5-role-card.pta>p,
body.r319-root-home .r3269-pta-role-card>p{
  margin-bottom:12px!important;
}
body.r319-root-home .r21p5-role-card.pta>span,
body.r319-root-home .r3269-pta-role-card>span{
  position:absolute!important;
  left:14px!important;
  right:14px!important;
  bottom:14px!important;
  width:auto!important;
  height:38px!important;
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
}

/* R32.74 PTA specificity correction */
html body.r319-root-home .r21p5-role-card.r3269-pta-role-card>span:last-child{position:absolute!important;left:14px!important;right:14px!important;bottom:14px!important;width:auto!important;height:38px!important;display:flex!important;align-items:center!important;justify-content:center!important}

/* === home-mobile-canonical-r3280.css === */
/* R32.80.0 canonical mobile home — loaded last by design */
@media(max-width:760px){
body.r21p5-public .r21p5-hero{position:relative!important;height:auto!important;min-height:390px!important;overflow:hidden!important;padding:34px 18px!important;display:flex!important;align-items:center!important;justify-content:center!important;box-sizing:border-box!important}
body.r21p5-public .r21p5-hero>.hero-campus,body.r21p5-public .r21p5-hero>.hero-atmosphere{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;object-fit:cover!important}
body.r21p5-public .r21p5-hero>.hero-copy{position:relative!important;inset:auto!important;transform:none!important;width:100%!important;max-width:510px!important;height:auto!important;max-height:none!important;overflow:visible!important;margin:auto!important;padding:18px 6px!important;z-index:5!important;box-sizing:border-box!important}
body.r21p5-public .hero-copy .hero-kicker{display:inline-flex!important;color:#e9cf7a!important}
body.r21p5-public .hero-copy h1,body.r21p5-public .hero-copy h2,body.r21p5-public .hero-copy p{position:static!important;color:#fff!important;white-space:normal!important;height:auto!important;max-height:none!important;overflow:visible!important;text-overflow:clip!important}
body.r21p5-public .hero-copy h1{font-size:clamp(26px,7vw,35px)!important;line-height:1.45!important;margin:10px 0!important}
body.r21p5-public .hero-copy h2{line-height:1.55!important;margin:7px 0!important}body.r21p5-public .hero-copy p{line-height:1.9!important;margin:7px 0!important}
body.r21p5-public .r20-install{position:fixed!important;right:8px!important;left:8px!important;bottom:calc(10px + env(safe-area-inset-bottom,0px))!important;top:auto!important;display:grid!important;visibility:visible!important;opacity:1!important;z-index:2147483000!important}
}

/* R32-80-5 — mobile hero clipping root-cause fix */
@media (max-width: 600px) {
  body.r319-root-home .r312-hero {
    height: 365px !important;
    min-height: 365px !important;
    overflow: hidden !important;
  }
  body.r319-root-home .r312-hero-media,
  body.r319-root-home .r312-hero-copy-host {
    height: 100% !important;
    min-height: 365px !important;
  }
}

@media (max-width: 600px) {
  body.home-r312.r319-root-home .r312-hero {
    height: 365px !important;
    min-height: 365px !important;
  }
  body.home-r312.r319-root-home .r312-hero .r312-hero-media,
  body.home-r312.r319-root-home .r312-hero .r312-hero-copy-host {
    height: 365px !important;
    min-height: 365px !important;
  }
}

/* === r3290-mobile-qa-fixes.css === */
/* R32.90 mobile QA fixes ? 2026-10-09 */
/* Public-home role CTAs: one text color across every panel. */
body.r319-root-home .r21p5-role-card>span,
body.r319-root-home .r21p5-role-card>span::before,
body.r319-root-home .r3250-login-btn{
  color:#fff!important;
  -webkit-text-fill-color:#fff!important;
}

/* Mobile public header: active item is indicated by a slim gold underline, not a boxed tab. */
@media(max-width:900px){
  body.r319-root-home .r319-home-nav>a.active{
    border-color:transparent!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
  }
  body.r319-root-home .r319-home-nav>a.active::after{
    content:"";position:absolute;right:12px;left:12px;bottom:1px;height:2px;
    border-radius:999px;background:#d7b34f;
  }
}

/* Student mobile identity: name and class get independent lines and cannot collide. */
@media(max-width:700px){
  body.student-plan>header{position:relative!important;display:grid!important;grid-template-columns:1fr!important;align-items:stretch!important;gap:10px!important;padding:12px 14px!important}
  body.student-plan>header>div:first-child{display:flex!important;align-items:flex-start!important;gap:10px!important;min-width:0!important}
  body.student-plan>header>div:first-child>div{display:grid!important;gap:4px!important;min-width:0!important}
  body.student-plan #studentName{display:block!important;line-height:1.55!important;overflow-wrap:anywhere!important}
  body.student-plan #studentClass{display:block!important;line-height:1.55!important;margin:0!important;white-space:normal!important}
  body.student-plan>header>div:last-child{display:flex!important;gap:8px!important;flex-wrap:wrap!important;justify-content:flex-start!important}
  body.student-plan>header>div:last-child button{min-height:40px!important;padding:8px 13px!important}
}

/* Teacher dashboard: mobile top controls stay in document flow instead of covering first options. */
@media(max-width:900px){
  body.role-academic .topbar{position:relative!important;top:auto!important}
}

/* R32.91 ? dedicated Super Admin role-card artwork */
body.r319-root-home .r3291-admin-card{position:relative!important;overflow:hidden!important}
body.r319-root-home .r3291-admin-visual{height:132px;position:relative;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 72% 28%,rgba(45,173,235,.25),transparent 34%),linear-gradient(135deg,#061725 0%,#0a3148 58%,#082231 100%);border-bottom:1px solid rgba(72,180,229,.18)}
body.r319-root-home .r3291-admin-visual:before{content:"";position:absolute;width:118px;height:76px;border:1px solid rgba(80,194,240,.30);border-radius:13px;background:linear-gradient(145deg,rgba(10,58,87,.82),rgba(4,27,44,.9));box-shadow:0 14px 30px rgba(0,0,0,.25)}
body.r319-root-home .r3291-admin-screen{position:relative;width:78px;height:46px;display:flex;align-items:flex-end;justify-content:center;gap:7px;z-index:2}
body.r319-root-home .r3291-admin-screen i{display:block;width:9px;border-radius:4px 4px 1px 1px;background:linear-gradient(#63d9ff,#258fc5);box-shadow:0 0 12px rgba(61,190,239,.25)}
body.r319-root-home .r3291-admin-screen i:nth-child(1){height:18px}body.r319-root-home .r3291-admin-screen i:nth-child(2){height:31px}body.r319-root-home .r3291-admin-screen i:nth-child(3){height:24px}
body.r319-root-home .r3291-admin-crown{position:absolute;top:15px;right:20px;z-index:3;color:#f2c34d;font-size:27px;text-shadow:0 4px 14px rgba(242,195,77,.24)}
body.r319-root-home .r3291-admin-gear{position:absolute;bottom:13px;left:18px;z-index:3;width:35px;height:35px;display:grid;place-items:center;border-radius:11px;color:#65d7ff;font-size:21px;background:rgba(5,37,58,.9);border:1px solid rgba(91,199,239,.3);box-shadow:0 7px 18px rgba(0,0,0,.2)}
body.r319-root-home .r3291-admin-card h3{color:#f7fbff!important}
body.r319-root-home .r3291-admin-card p{color:#c8d9e5!important}

/* R32.92 dashboard mobile stacking + integrated online exams */
[hidden]{display:none!important}
@media(max-width:900px){body.r3245-manager-mobile-fix .topbar{position:relative!important;top:auto!important;z-index:5!important;margin:0 0 14px!important}body.r3245-manager-mobile-fix .main-area{padding-top:0!important}}
.side-nav .r3292-online-exams-nav{display:flex;align-items:center;gap:12px;width:100%;min-height:48px;padding:10px 13px;border-radius:14px;color:inherit;text-decoration:none;font-weight:800;border:1px solid transparent}
.side-nav .r3292-online-exams-nav:hover{background:rgba(44,166,210,.10);border-color:rgba(73,184,224,.18)}
.side-nav .r3292-online-exams-nav span{display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:rgba(53,186,218,.10);color:#4ed5e4}

/* R32.93 verified mobile dashboard hotfix */
@media(max-width:900px){
 body.r3245-manager-mobile-fix .topbar{position:relative!important;inset:auto!important;top:auto!important;right:auto!important;left:auto!important;transform:none!important;margin:0 0 14px!important;z-index:2!important}
 body.r3245-manager-mobile-fix .main-area{padding-top:0!important;padding-bottom:92px!important}
 body.r3245-manager-mobile-fix .bottom-nav{z-index:30!important}
}

/* R32.95 admin card ? approved Downloads reference */
body.r319-root-home .r3295-admin-reference-card{overflow:hidden!important;border-color:rgba(51,156,214,.34)!important;background:linear-gradient(180deg,#082a43,#061d31)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.06),0 14px 30px rgba(0,0,0,.22)!important}
body.r319-root-home .r3295-admin-art{height:132px!important;overflow:hidden!important;background:#07243b!important;border-bottom:1px solid rgba(75,173,226,.22)!important}
body.r319-root-home .r3295-admin-art img{display:block!important;width:100%!important;height:100%!important;object-fit:cover!important;object-position:center!important}
body.r319-root-home .r3295-admin-reference-card h3{color:#fff!important}
body.r319-root-home .r3295-admin-reference-card p{color:#c7d8e7!important}
body.r319-root-home .r3295-admin-reference-card>span{color:#09223a!important;-webkit-text-fill-color:#09223a!important;background:linear-gradient(135deg,#ffd96a,#ffb72f)!important;border:1px solid rgba(255,221,111,.72)!important;box-shadow:0 8px 18px rgba(255,183,47,.16)!important}

/* R32.96 approved admin CTA: readable horizontal gold button */
body.r319-root-home a.r3295-admin-reference-card>span:last-child{display:flex!important;align-items:center!important;justify-content:center!important;position:relative!important;inset:auto!important;float:none!important;width:calc(100% - 22px)!important;max-width:none!important;min-width:0!important;height:auto!important;min-height:44px!important;margin:12px 11px 13px!important;padding:10px 7px!important;box-sizing:border-box!important;border-radius:13px!important;white-space:normal!important;overflow:visible!important;line-height:1.4!important;font-size:14px!important;font-weight:900!important;letter-spacing:0!important;text-align:center!important;direction:rtl!important;transform:none!important;clip-path:none!important;aspect-ratio:auto!important;color:#08243b!important;-webkit-text-fill-color:#08243b!important;background:linear-gradient(135deg,#ffe17b,#f4b833)!important;border:1px solid #ffe399!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.55),0 6px 16px rgba(0,0,0,.25)!important}

/* R32.99 home navigation ? approved 3D card treatment */
body.r319-root-home .r319-home-nav.r3294-nav3d{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:10px!important;padding:10px 0!important;overflow:visible!important}
body.r319-root-home .r319-home-nav.r3294-nav3d>a{position:relative!important;display:grid!important;grid-template-columns:38px 1fr!important;align-items:center!important;gap:8px!important;min-height:62px!important;width:auto!important;margin:0!important;padding:10px 11px!important;border:1px solid rgba(77,161,206,.24)!important;border-radius:17px!important;background:linear-gradient(145deg,#0d3854,#071f34)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 6px 0 rgba(1,14,25,.28),0 11px 18px rgba(0,0,0,.20)!important;color:#f4f8fb!important;text-decoration:none!important;text-align:right!important;white-space:normal!important;overflow:hidden!important}
body.r319-root-home .r319-home-nav.r3294-nav3d>a .ico{width:36px!important;height:36px!important;border-radius:11px!important;display:grid!important;place-items:center!important;background:linear-gradient(145deg,#164d6d,#0a2a43)!important;border:1px solid rgba(255,255,255,.08)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.08),0 5px 10px rgba(0,0,0,.18)!important;color:#d7e9f4!important;font-size:17px!important}
body.r319-root-home .r319-home-nav.r3294-nav3d>a>span:last-child{font-size:12.5px!important;font-weight:900!important;line-height:1.35!important;color:#f7fbff!important}
body.r319-root-home .r319-home-nav.r3294-nav3d>a.active{border-color:rgba(245,194,63,.62)!important;background:linear-gradient(145deg,#25445a,#102b40)!important;box-shadow:inset 0 1px 0 rgba(255,255,255,.09),0 6px 0 #b8861f,0 11px 20px rgba(0,0,0,.22)!important;outline:none!important}
body.r319-root-home .r319-home-nav.r3294-nav3d>a.active:after{content:"";position:absolute;right:12px;left:12px;bottom:6px;height:2px;border-radius:2px;background:#f4c441;box-shadow:0 0 7px rgba(244,196,65,.38)}
body.r319-root-home .r319-home-nav.r3294-nav3d>a:active{transform:translateY(3px)!important;box-shadow:inset 0 2px 7px rgba(0,0,0,.20),0 3px 0 rgba(1,14,25,.28)!important}
@media(min-width:760px){body.r319-root-home .r319-home-nav.r3294-nav3d{grid-template-columns:repeat(2,minmax(0,1fr))!important}}

/* R33.03 DESKTOP HOME FREEZE ? approved geometry. Do not override outside an explicit unfreeze task. */
@media (min-width:1100px){
 body.r319-root-home{display:grid!important;grid-template-columns:minmax(240px,18vw) minmax(0,1fr)!important;column-gap:0!important}
 body.r319-root-home>.r303-brand-rail{position:sticky!important;top:0!important;right:auto!important;left:auto!important;width:100%!important;min-width:240px!important;max-width:290px!important;height:100vh!important;padding:14px 12px!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important}
 body.r319-root-home>.r303-site-stage{width:100%!important;max-width:none!important;min-width:0!important;margin:0!important;padding:0 10px 28px!important;box-sizing:border-box!important}
 body.r319-root-home .r319-home-nav.r3294-nav3d{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;padding:10px 0!important}
 body.r319-root-home .r319-home-nav.r3294-nav3d>a{grid-template-columns:32px minmax(0,1fr)!important;min-height:72px!important;padding:9px!important;gap:7px!important;border-radius:15px!important}
 body.r319-root-home .r319-home-nav.r3294-nav3d>a .ico{width:32px!important;height:32px!important;font-size:15px!important;border-radius:9px!important}
 body.r319-root-home .r319-home-nav.r3294-nav3d>a>span:last-child{font-size:11.5px!important;line-height:1.55!important;white-space:normal!important;word-break:normal!important;overflow-wrap:normal!important}
 body.r319-root-home .r21p5-hero{height:384px!important;min-height:384px!important;max-height:384px!important;overflow:hidden!important}
 body.r319-root-home .r21p5-hero .hero-campus{width:100%!important;height:100%!important;object-fit:cover!important;object-position:center 44%!important}
 body.r319-root-home .r20-install{max-width:650px!important;right:calc(18vw + 22px)!important;left:22px!important;bottom:14px!important;margin:auto!important;padding:10px 13px!important;border-radius:16px!important}
 body.r319-root-home .r20-install-icon{width:44px!important;height:44px!important;flex-basis:44px!important;border-radius:12px!important}
 body.r319-root-home .r20-install-copy b{font-size:13px!important}
 body.r319-root-home .r20-install-copy span{font-size:10.5px!important;line-height:1.45!important}
 body.r319-root-home .r20-install button{padding:8px 11px!important;font-size:11px!important}
}
/* END R33.03 DESKTOP HOME FREEZE */

/* R33.03 runtime shell freeze */
@media(min-width:1100px){body.r319-root-home .r312-home-shell{display:grid!important;grid-template-columns:270px minmax(0,1fr)!important;gap:14px!important;width:100%!important;max-width:none!important;padding:0 14px!important;box-sizing:border-box!important}body.r319-root-home .r312-home-shell>.r312-home-side{position:sticky!important;top:12px!important;right:auto!important;left:auto!important;width:270px!important;min-width:270px!important;max-width:270px!important;height:calc(100vh - 24px)!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important}body.r319-root-home .r312-home-shell>.r312-home-main{width:100%!important;min-width:0!important;max-width:none!important;margin:0!important;padding:0!important}body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important}body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d>a{width:100%!important;min-width:0!important;min-height:78px!important;height:auto!important;padding:9px 8px!important;grid-template-columns:30px minmax(0,1fr)!important;gap:7px!important}body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d>a>span:nth-child(2){font-size:11px!important;line-height:1.55!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important}body.r319-root-home .r312-home-side .r319-home-nav .r3235-menu-chevron{display:none!important}body.r319-root-home .r312-home-main .r312-hero{height:384px!important;min-height:384px!important;max-height:384px!important}body.r319-root-home .r312-home-main .r312-hero img{height:100%!important;object-fit:cover!important}}
/* END runtime shell freeze */

/* === home-desktop-freeze-r3303.css === */
/* R33.03 HOME DESKTOP FROZEN ? change only after explicit user unfreeze approval */
@media(min-width:1100px){
body.r319-root-home .r312-home-shell{display:block!important;width:100%!important;max-width:none!important;padding:0!important}
body.r319-root-home .r312-home-shell>.r312-home-side{position:fixed!important;top:12px!important;right:10px!important;left:auto!important;width:280px!important;min-width:280px!important;max-width:280px!important;height:calc(100vh - 24px)!important;margin:0!important;padding:12px!important;box-sizing:border-box!important;overflow-y:auto!important;overflow-x:hidden!important}
body.r319-root-home .r312-home-shell>.r312-home-main{width:auto!important;min-width:0!important;max-width:none!important;margin:0 302px 0 0!important;padding:0 12px 28px!important;box-sizing:border-box!important}
body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:9px!important;width:100%!important;padding:10px 0!important}
body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d>a{display:grid!important;grid-template-columns:32px minmax(0,1fr)!important;width:100%!important;min-width:0!important;min-height:76px!important;height:auto!important;padding:9px!important;gap:7px!important;border-radius:15px!important;box-sizing:border-box!important}
body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d>a .ico{width:32px!important;height:32px!important;font-size:15px!important}
body.r319-root-home .r312-home-side .r319-home-nav.r3294-nav3d>a>span:nth-child(2){font-size:11.5px!important;line-height:1.55!important;white-space:normal!important;word-break:keep-all!important;overflow-wrap:normal!important}
body.r319-root-home .r312-home-side .r319-home-nav .r3235-menu-chevron{display:none!important}
body.r319-root-home .r312-home-main .r312-hero{height:384px!important;min-height:384px!important;max-height:384px!important;overflow:hidden!important}
body.r319-root-home .r312-home-main .r312-hero img{width:100%!important;height:100%!important;object-fit:cover!important}
body.r319-root-home .r20-install{max-width:650px!important;right:314px!important;left:22px!important;bottom:14px!important;margin:auto!important;padding:10px 13px!important;border-radius:16px!important}
}

@media(min-width:1100px){html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell.r3241-school-wide>aside.r312-home-side.r3241-school-media{position:fixed!important;top:12px!important;right:10px!important;left:auto!important;width:280px!important;min-width:280px!important;max-width:280px!important;height:calc(100vh - 24px)!important;margin:0!important;padding:12px!important;box-sizing:border-box!important}html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell.r3241-school-wide>main.r312-home-main.r3241-school-copy{width:auto!important;max-width:none!important;margin-right:302px!important;margin-left:0!important;padding-right:12px!important;padding-left:12px!important}}

/* R33.05 FROZEN NAV TEXT CONTRAST */
body.r319-root-home .r319-home-nav.r3294-nav3d>a>span:not(.ico),body.r319-root-home .r319-home-nav.r3294-nav3d>a .r32712-nav-label{color:#f4f8fb!important;opacity:1!important;text-shadow:0 1px 2px rgba(0,0,0,.32)!important}body.r319-root-home .r319-home-nav.r3294-nav3d>a.active>span:not(.ico),body.r319-root-home .r319-home-nav.r3294-nav3d>a.active .r32712-nav-label{color:#ffffff!important;opacity:1!important}
/* END R33.05 */

/* R33.07 HARD FREEZE: public home nav labels always readable */
html body.r319-root-home nav.r319-home-nav>a,html body.r319-root-home nav.r319-home-nav>a:link,html body.r319-root-home nav.r319-home-nav>a:visited{color:#f7fbff!important;opacity:1!important}
html body.r319-root-home nav.r319-home-nav>a>span:not(.ico):not(.r3235-menu-chevron),html body.r319-root-home nav.r319-home-nav>a>span.r32712-nav-label{color:#f7fbff!important;-webkit-text-fill-color:#f7fbff!important;opacity:1!important;filter:none!important;mix-blend-mode:normal!important;text-shadow:0 2px 4px rgba(0,0,0,.38)!important}
html body.r319-root-home nav.r319-home-nav>a.active>span:not(.ico):not(.r3235-menu-chevron){color:#fff!important;-webkit-text-fill-color:#fff!important}
/* END R33.07 */

/* === home-menu-r3312.css === */
/* R33.12 public home menu: approved compact colored cards */
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d{gap:8px!important;align-items:stretch!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a{position:relative!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;justify-content:stretch!important;gap:7px!important;min-width:0!important;min-height:72px!important;height:auto!important;padding:10px 8px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:14px!important;box-sizing:border-box!important;text-decoration:none!important;text-align:right!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff55,0 4px 0 #0111224d,0 7px 12px #000a1c40!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a>.ico{position:relative!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;margin:0!important;padding:0!important;border-radius:10px!important;font-size:17px!important;line-height:1!important;color:#fff!important;background:#ffffff2e!important;border:1px solid #ffffff4d!important;box-sizing:border-box!important;box-shadow:inset 0 1px 1px #ffffff4d,0 4px 7px #0003!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a>span:not(.ico){color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;line-height:1.5!important;font-weight:900!important;white-space:normal!important;overflow-wrap:normal!important;word-break:keep-all!important;min-width:0!important;text-shadow:0 2px 4px #0004!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a>.r3235-menu-chevron{display:none!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a.active{outline:2px solid #f8d571!important;outline-offset:2px!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(1){background:linear-gradient(145deg,#7b54ff,#3e1bb4)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(2){background:linear-gradient(145deg,#ffbd29,#b76b09)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(3){background:linear-gradient(145deg,#2bc9dc,#087a9f)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(4){background:linear-gradient(145deg,#fa6096,#b51e59)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(5){background:linear-gradient(145deg,#2ad4b3,#08775f)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(6){background:linear-gradient(145deg,#39bdf7,#1762c8)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a:nth-child(7){background:linear-gradient(145deg,#7753fa,#3e1bb4)!important}
@media(max-width:759px){html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d>a{min-height:56px!important;padding:7px!important;gap:6px!important;grid-template-columns:34px minmax(0,1fr)!important}}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav{gap:8px!important;align-items:stretch!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a{position:relative!important;display:grid!important;grid-template-columns:34px minmax(0,1fr)!important;align-items:center!important;justify-content:stretch!important;gap:7px!important;min-width:0!important;min-height:72px!important;height:auto!important;padding:10px 8px!important;border:1px solid rgba(255,255,255,.42)!important;border-radius:14px!important;box-sizing:border-box!important;text-decoration:none!important;text-align:right!important;color:#fff!important;box-shadow:inset 0 1px 0 #ffffff55,0 4px 0 #0111224d,0 7px 12px #000a1c40!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a>.ico{position:relative!important;display:grid!important;place-items:center!important;width:34px!important;height:34px!important;min-width:34px!important;margin:0!important;padding:0!important;border-radius:10px!important;font-size:17px!important;line-height:1!important;color:#fff!important;background:#ffffff2e!important;border:1px solid #ffffff4d!important;box-sizing:border-box!important;box-shadow:inset 0 1px 1px #ffffff4d,0 4px 7px #0003!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a>span:not(.ico){color:#fff!important;-webkit-text-fill-color:#fff!important;font-size:12px!important;line-height:1.5!important;font-weight:900!important;white-space:normal!important;overflow-wrap:normal!important;word-break:keep-all!important;min-width:0!important;text-shadow:0 2px 4px #0004!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a>.r3235-menu-chevron{display:none!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a.active{outline:2px solid #f8d571!important;outline-offset:2px!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(1){background:linear-gradient(145deg,#7b54ff,#3e1bb4)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(2){background:linear-gradient(145deg,#ffbd29,#b76b09)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(3){background:linear-gradient(145deg,#2bc9dc,#087a9f)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(4){background:linear-gradient(145deg,#fa6096,#b51e59)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(5){background:linear-gradient(145deg,#2ad4b3,#08775f)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(6){background:linear-gradient(145deg,#39bdf7,#1762c8)!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a:nth-child(7){background:linear-gradient(145deg,#7753fa,#3e1bb4)!important}
@media(max-width:759px){html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav>a{min-height:56px!important;padding:7px!important;gap:6px!important;grid-template-columns:34px minmax(0,1fr)!important}}


@media(max-width:759px){html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r319-home-nav.r3294-nav3d{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r21p5-header>nav{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important;gap:8px!important}}


/* === home-desktop-emergency-r3334.css === */
﻿/* R33-34 emergency desktop restore + final transparent brand */
@media (min-width: 1051px){
  html body.r21p5-public.r319-root-home{overflow-x:hidden!important;}
  html body.r21p5-public.r319-root-home .r303-brand-rail{
    position:fixed!important;right:24px!important;top:100px!important;
    width:216px!important;max-width:216px!important;height:auto!important;
    transform:none!important;z-index:80!important;
  }
  html body.r21p5-public.r319-root-home .r319-home-shell,
  html body.r21p5-public.r319-root-home main{
    width:auto!important;max-width:none!important;
    margin-right:264px!important;margin-left:24px!important;
    transform:none!important;
  }
  html body.r21p5-public.r319-root-home .r303-brand-lockup{
    width:100%!important;min-height:88px!important;overflow:visible!important;
  }
  html body.r21p5-public.r319-root-home .r303-brand-lockup img[src*="andisheh-final-brand"]{
    width:190px!important;height:auto!important;max-width:100%!important;
    object-fit:contain!important;background:transparent!important;
  }
  html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand img{
    width:64px!important;height:64px!important;object-fit:contain!important;background:transparent!important;
  }
}

/* === home-brand-single-r3335.css === */
﻿/* R33-35 single-brand desktop header */
@media (min-width:1051px){
  html body.r21p5-public.r319-root-home .r303-brand-lockup{
    display:none!important;
  }
  html body.r21p5-public.r319-root-home .r303-brand-rail{
    padding-top:12px!important;
  }
  html body.r21p5-public.r319-root-home .r21p5-header{
    min-height:104px!important;
  }
  html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand{
    width:390px!important;max-width:46vw!important;min-height:84px!important;
    display:flex!important;align-items:center!important;justify-content:flex-start!important;
    overflow:visible!important;
  }
  html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand img{
    content:url('/static/andisheh-final-brand-r3333.png')!important;
    width:360px!important;height:auto!important;max-width:100%!important;
    object-fit:contain!important;background:transparent!important;
  }
  html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand > :not(img){
    display:none!important;
  }
}

/* === home-icon-contain-r3336.css === */
﻿/* R33-36 icon containment */
@media (min-width:1051px){
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand{
   width:auto!important;max-width:none!important;min-height:0!important;
   overflow:hidden!important;padding:6px 10px!important;
 }
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand img{
   content:url('/static/andisheh-medal-padded-192-r3338.png')!important;
   width:44px!important;height:44px!important;min-width:44px!important;max-width:44px!important;
   object-fit:contain!important;object-position:center!important;margin:0!important;
 }
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand > :not(img){display:initial!important}
}


/* === home-icon-size-r3337.css === */
﻿/* R33-37 smaller header medallion */
@media (min-width:1051px){
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand img{
   width:28px!important;height:28px!important;min-width:28px!important;max-width:28px!important;
   object-fit:contain!important;
 }
 html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand{
   padding:5px 8px!important;gap:7px!important;
 }
}

/* === home-header-brand-r3343.css === */
@media(min-width:1051px){html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand.r3343-public-brand{width:390px!important;max-width:40vw!important;height:88px!important;min-height:88px!important;padding:4px 8px!important;display:flex!important;align-items:center!important;justify-content:flex-start!important;overflow:visible!important}html body.r21p5-public.r319-root-home .r21p5-header .r21p5-brand.r3343-public-brand img{content:normal!important;width:370px!important;height:auto!important;min-width:0!important;max-width:100%!important;max-height:82px!important;object-fit:contain!important;object-position:right center!important;margin:0!important;background:transparent!important}}@media(max-width:1050px){.r21p5-header .r21p5-brand.r3343-public-brand img{content:normal!important;width:230px!important;height:auto!important;max-height:64px!important;object-fit:contain!important}.r21p5-header .r21p5-brand.r3343-public-brand{width:auto!important;min-width:0!important}}
/* === home-header-brand-r3344.css === */
/* R33-44 exact proportional public header brand */
html body.r21p5-public.r319-root-home .r21p5-header a.r21p5-brand.r3343-public-brand{
  width:390px!important;max-width:40vw!important;height:auto!important;min-height:0!important;
  padding:0!important;overflow:visible!important;display:flex!important;align-items:center!important;
  justify-content:flex-start!important;background:transparent!important
}
html body.r21p5-public.r319-root-home .r21p5-header a.r21p5-brand.r3343-public-brand>img{
  content:url('/static/andisheh-final-brand-r3333.png')!important;
  display:block!important;width:360px!important;height:auto!important;
  min-width:0!important;min-height:0!important;max-width:100%!important;max-height:none!important;
  aspect-ratio:auto!important;object-fit:contain!important;object-position:center!important;
  margin:0!important;padding:0!important;border:0!important;border-radius:0!important;
  transform:none!important
}
@media(max-width:1050px){
 html body.r21p5-public.r319-root-home .r21p5-header a.r21p5-brand.r3343-public-brand{width:250px!important;max-width:45vw!important}
 html body.r21p5-public.r319-root-home .r21p5-header a.r21p5-brand.r3343-public-brand>img{width:240px!important;height:auto!important}
}
/* === home-rail-brand-r3346.css === */
/* R33-46 compact brand above right dashboard rail */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail .r3346-rail-brand{display:flex!important;width:100%!important;justify-content:center!important;align-items:center!important;margin:0 0 8px!important;padding:0 6px!important;box-sizing:border-box!important}
 html body.r21p5-public.r319-root-home .r303-brand-rail .r3346-rail-brand img{display:block!important;width:176px!important;height:auto!important;min-width:0!important;max-width:100%!important;max-height:none!important;aspect-ratio:auto!important;object-fit:contain!important;margin:0!important;padding:0!important;transform:none!important}
 html body.r21p5-public.r319-root-home .r303-brand-lockup{display:none!important}
}
@media(max-width:1050px){.r3346-rail-brand{display:none!important}}
/* === home-rail-top-logo-r3347.css === */
/* R33-47 add-only: logo at TOP of dashboard rail; do not alter existing content */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail{
   padding-top:88px!important;
 }
 html body.r21p5-public.r319-root-home .r303-brand-rail::before{
   content:""!important;
   position:absolute!important;
   top:14px!important;
   right:18px!important;
   left:18px!important;
   height:62px!important;
   display:block!important;
   background:url('/static/andisheh-final-brand-r3333.png') center/contain no-repeat!important;
   opacity:1!important;
   pointer-events:none!important;
 }
 html body.r21p5-public.r319-root-home .r303-brand-rail .r3346-rail-brand{display:none!important}
}
/* === home-brand-proportion-r3348.css === */
/* R33-48 preserve exact source proportions for both full-brand placements */
html body.r21p5-public.r319-root-home .r21p5-header a.r21p5-brand.r3343-public-brand>img{
 width:360px!important;height:auto!important;min-width:0!important;min-height:0!important;
 max-width:100%!important;max-height:none!important;aspect-ratio:2135 / 736!important;
 object-fit:contain!important;object-position:center!important;transform:none!important;
}
html body.r21p5-public.r319-root-home .r303-brand-rail::before{
 height:auto!important;aspect-ratio:2135 / 736!important;
 background-size:contain!important;background-repeat:no-repeat!important;background-position:center!important;
}
/* === home-dashboard-top-brand-r3349.css === */
/* R33-49 actual image above dashboard menu */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail{padding-top:12px!important}
 html body.r21p5-public.r319-root-home .r303-brand-rail::before{display:none!important;content:none!important}
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand{
  width:100%!important;display:flex!important;align-items:center!important;justify-content:center!important;
  margin:0 0 12px!important;padding:0 5px!important;box-sizing:border-box!important;flex:0 0 auto!important
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand img{
  display:block!important;width:190px!important;height:auto!important;min-width:0!important;min-height:0!important;
  max-width:100%!important;max-height:none!important;aspect-ratio:2135 / 736!important;
  object-fit:contain!important;object-position:center!important;margin:0!important;padding:0!important;
  border:0!important;border-radius:0!important;transform:none!important
 }
}
@media(max-width:1050px){.r3349-dashboard-top-brand{display:none!important}}
/* === home-dashboard-brand-position-r3350.css === */
/* R33-50 logo immediately above dashboard cards */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail{padding-top:12px!important}
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand{
   display:flex!important;position:static!important;order:initial!important;
   width:100%!important;height:auto!important;justify-content:center!important;align-items:center!important;
   margin:6px 0 10px!important;padding:0 8px!important;box-sizing:border-box!important;
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand img{
   display:block!important;width:184px!important;height:auto!important;min-width:0!important;max-width:100%!important;
   max-height:none!important;aspect-ratio:2135 / 736!important;object-fit:contain!important;transform:none!important;
 }
}
/* === home-dashboard-brand-exact-r3351.css === */
/* R33-51 exact placement: directly under dashboard heading/subheading */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail{
   padding-top:82px!important;
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand{
   position:absolute!important;top:58px!important;right:18px!important;left:18px!important;
   width:auto!important;height:54px!important;margin:0!important;padding:0!important;
   display:flex!important;align-items:center!important;justify-content:center!important;z-index:2!important;
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand img{
   width:172px!important;height:auto!important;max-width:100%!important;max-height:54px!important;
   aspect-ratio:2135 / 736!important;object-fit:contain!important;transform:none!important;
 }
}
/* === home-dashboard-outside-brand-r3352.css === */
/* R33-52 logo OUTSIDE and above dashboard rail; rail itself moves down */
@media(min-width:1051px){
 html body.r21p5-public.r319-root-home .r303-brand-rail{
   top:150px!important;
   padding-top:12px!important;
   overflow:visible!important;
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand{
   position:absolute!important;
   top:-64px!important;
   right:10px!important;
   left:10px!important;
   height:54px!important;
   width:auto!important;
   margin:0!important;
   padding:0!important;
   display:flex!important;
   align-items:center!important;
   justify-content:center!important;
   z-index:100!important;
   pointer-events:none!important;
 }
 html body.r21p5-public.r319-root-home .r3349-dashboard-top-brand img{
   display:block!important;
   width:172px!important;
   height:auto!important;
   min-width:0!important;
   max-width:100%!important;
   max-height:54px!important;
   aspect-ratio:2135 / 736!important;
   object-fit:contain!important;
   transform:none!important;
 }
}
/* R33.56.2 — public home: persistent native vertical scrollbar */
html:has(body.r21p5-public.r319-root-home){height:auto!important;min-height:100%!important;overflow-x:hidden!important;overflow-y:scroll!important;scrollbar-gutter:stable!important;scrollbar-width:auto!important}
html:has(body.r21p5-public.r319-root-home) body.r21p5-public.r319-root-home{height:auto!important;min-height:100vh!important;max-height:none!important;overflow-x:hidden!important;overflow-y:visible!important}
html:has(body.r21p5-public.r319-root-home)::-webkit-scrollbar{width:12px!important;display:block!important}
html:has(body.r21p5-public.r319-root-home)::-webkit-scrollbar-track{background:#eef3f7!important}
html:has(body.r21p5-public.r319-root-home)::-webkit-scrollbar-thumb{background:#7f98aa!important;border-radius:10px!important;border:3px solid #eef3f7!important}
/* R33.56.3 — first-page dashboard: real right-side internal scrollbar */
body.r21p5-public.r319-root-home .r32711-dashboard-layer:not([hidden]){
  overflow-x:hidden!important;
  overflow-y:scroll!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:auto!important;
}
body.r21p5-public.r319-root-home .r32711-dashboard-layer:not([hidden])::-webkit-scrollbar{width:13px!important;display:block!important}
body.r21p5-public.r319-root-home .r32711-dashboard-layer:not([hidden])::-webkit-scrollbar-track{background:#dfe9ee!important;border-radius:10px!important}
body.r21p5-public.r319-root-home .r32711-dashboard-layer:not([hidden])::-webkit-scrollbar-thumb{background:#66879a!important;border-radius:10px!important;border:3px solid #dfe9ee!important}
body.r21p5-public.r319-root-home .r32711-layer-shell{height:auto!important;max-height:none!important;overflow:visible!important}
body.r21p5-public.r319-root-home .r32711-layer-body{height:auto!important;max-height:none!important;overflow:visible!important}
/* R33.56.4 — fixed right dashboard column: visible functional scrollbar */
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell>.r312-home-side{
  height:calc(100dvh - 24px)!important;
  max-height:calc(100dvh - 24px)!important;
  overflow-x:hidden!important;
  overflow-y:scroll!important;
  overscroll-behavior-y:contain!important;
  touch-action:pan-y!important;
  scrollbar-gutter:stable!important;
  scrollbar-width:auto!important;
  scrollbar-color:#557b91 #dce8ee!important;
}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell>.r312-home-side::-webkit-scrollbar{width:12px!important;display:block!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell>.r312-home-side::-webkit-scrollbar-track{background:#dce8ee!important;border-radius:10px!important}
html body.r21p5-public.r319-root-home.home-r312.andisheh-luxury-theme .r312-home-shell>.r312-home-side::-webkit-scrollbar-thumb{background:#557b91!important;border-radius:10px!important;border:2px solid #dce8ee!important;min-height:42px!important}

/* R33-80 — homepage compact readable occasion + psychology cards */
html body.r319-root-home .r21p15-occasion-bar{
  min-height:0!important;
  padding:12px 18px!important;
  margin-bottom:12px!important;
  border-radius:16px!important;
  align-items:center!important;
}
html body.r319-root-home .r21p15-occasion-bar div{gap:3px!important}
html body.r319-root-home .r21p15-occasion-bar small{font-size:11px!important;line-height:1.5!important}
html body.r319-root-home .r21p15-occasion-bar b{font-size:clamp(17px,1.6vw,21px)!important;line-height:1.55!important}
html body.r319-root-home .r21p15-occasion-bar time{font-size:11px!important;line-height:1.5!important}
html body.r319-root-home .r21p15-psych-card{
  min-height:0!important;
  padding:16px 20px!important;
  border-radius:16px!important;
}
html body.r319-root-home .r21p15-psych-card header span{font-size:11px!important}
html body.r319-root-home .r21p15-psych-card header b{font-size:13px!important}
html body.r319-root-home .r21p15-psych-card h3{font-size:clamp(19px,1.7vw,23px)!important;line-height:1.5!important;margin:8px 0 6px!important}
html body.r319-root-home .r21p15-psych-card p{font-size:14px!important;line-height:1.85!important;max-width:760px}
html body.r319-root-home .r21p15-psych-card a{margin-top:9px!important;padding:5px 10px!important;font-size:10px!important}
@media(max-width:760px){
 html body.r319-root-home .r21p15-occasion-bar{padding:10px 13px!important}
 html body.r319-root-home .r21p15-occasion-bar b{font-size:16px!important}
 html body.r319-root-home .r21p15-psych-card{padding:14px 16px!important}
 html body.r319-root-home .r21p15-psych-card h3{font-size:19px!important}
 html body.r319-root-home .r21p15-psych-card p{font-size:13px!important}
}
