: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}}
