:root{--wine:#70263b;--wine-deep:#351724;--wine-light:#9a4760;--gold:#bd9653;--gold-soft:#f7efd9;--ink:#272635;--muted:#797783;--line:#ece8e7;--canvas:#f7f6f5;--surface:#fff}
body{background:#f7f6f5;color:#272635}
/* Right-aligned school administration */
.app-shell{text-align:right}.side-nav,.student-app .side-nav{left:auto;right:0;width:258px;background:linear-gradient(175deg,#3b1d2b 0%,#261c2a 100%);box-shadow:-7px 0 32px rgba(42,24,34,.1)}
.main-area{margin-left:0;margin-right:258px}.brand-lockup,.side-link,.side-user,.topbar,.section-heading,.section-heading>div,.step-heading,.quick-action-card,.profile-trigger{flex-direction:row-reverse}.brand-lockup,.side-user,.profile-trigger{text-align:right}.side-caption{text-align:right;color:#b6a8ae}.side-link{color:#d4c8ce;justify-content:flex-start}.side-link.active{background:#8a3d55;box-shadow:0 8px 19px rgba(0,0,0,.13)}.side-link:hover{background:#694053}.nav-icon{color:#e6c88f}.avatar{background:#ead6ac;color:#57293a}.student-avatar{overflow:hidden}.student-avatar img{width:100%;height:100%;object-fit:cover}.topbar{justify-content:flex-start}.topbar-title{text-align:right}.global-search{margin-left:0;margin-right:auto;flex-direction:row-reverse}.global-search input{text-align:right}.topbar-actions{margin:0}.profile-trigger{text-align:right}.dropdown-panel{left:0;right:auto;text-align:right}.menu-button{background:#faf1f3;color:#70263b}.page-content{max-width:1500px}.app-footer{flex-direction:row-reverse}
.welcome-banner,.profile-hero{flex-direction:row-reverse;text-align:right;background:radial-gradient(circle at 5% 0%,rgba(230,197,143,.15),transparent 40%),linear-gradient(120deg,#8d4357,#5e2438 65%,#3d1b2b);box-shadow:0 16px 34px rgba(91,37,57,.14)}.welcome-banner .eyebrow,.profile-hero .eyebrow{color:#f1d8a8}.welcome-banner p,.profile-hero p{color:#f2dfe5}.button-light{color:#67273b}.quick-actions-heading{justify-content:flex-end;text-align:right}.quick-action-icon,.primary-action .quick-action-icon{background:#f8eef1;color:#80334b}.quick-action-arrow{margin-left:0;margin-right:auto;transform:scaleX(-1)}.quick-action-card:hover .quick-action-arrow{transform:scaleX(-1) translateX(3px);color:#80334b}.quick-action-card:hover{border-color:#e8c9d1;box-shadow:0 10px 23px rgba(99,36,57,.08)}.stat-icon{right:auto;left:14px;background:#f8eef1;color:#80334b}.stat-card small{margin-left:34px}.stat-card,.content-card,.detail-card,.document-card,.student-year-card{border-color:#ede8e8;box-shadow:0 4px 18px rgba(52,36,43,.04)}.section-kicker,.step-number,.credit-chip,.tag{background:#f8eff1;border-color:#f0dce1;color:#80334b}.text-link{color:#80334b}.button-primary,.primary-button{background:linear-gradient(110deg,#6b263b,#93445c);box-shadow:0 7px 17px rgba(103,37,59,.15)}.button-primary:hover,.primary-button:hover{background:linear-gradient(110deg,#5b2032,#84374f);box-shadow:0 10px 19px rgba(103,37,59,.2)}.button-outline:hover{border-color:#dfbdc7;background:#fbf3f5;color:#762e46}.field>span{color:#4d4148}.field input,.field select,.search-input input{direction:ltr;text-align:right}.field input:focus,.field select:focus,.grade-input:focus{border-color:#b66a80;box-shadow:0 0 0 3px rgba(143,59,85,.1)}.data-table th,.data-table td,.grade-table th,.grade-table td{text-align:right}.filter-bar{flex-direction:row-reverse}.table-actions,.document-actions,.danger-actions{justify-content:flex-end}.section-heading>div{justify-content:flex-start}.section-heading>div>div{text-align:right}.student-wizard-shell{width:min(100%,1120px)}.wizard-progress-top{flex-direction:row-reverse}.wizard-progress-track span{background:linear-gradient(90deg,#ae6b7d,#70263b);margin-left:auto}.wizard-step-list{direction:rtl}.wizard-step-marker{flex-direction:row-reverse;text-align:right;justify-content:flex-end}.wizard-step-marker b{display:block;width:auto;height:auto;border:0;background:transparent;border-radius:0;color:inherit;font-size:.69rem}.wizard-step-marker.is-current,.wizard-step-marker.is-current b{color:#8b3d55}.wizard-step-marker.is-current span{background:#80334b;border-color:#80334b;box-shadow:0 4px 10px rgba(112,38,59,.16)}.wizard-step-marker.is-complete span{background:#f5e9ec;border-color:#e8c8d1;color:#80334b}.step-heading>.status-pill,.step-heading>.credit-chip{margin-left:0;margin-right:auto}.form-grid{direction:rtl}.field{direction:ltr;text-align:right}.form-actions{flex-direction:row-reverse}.wizard-actions .button-primary{margin-left:0;margin-right:auto}.student-number-control{flex-direction:row-reverse}.grade-mode-bar{flex-direction:row-reverse}.grade-mode-bar>div{text-align:right;margin:0}.grade-mode-bar output,.derived-value{color:#80334b}.grade-year-tabs{direction:rtl}.grade-year-tab.is-active{background:#80334b}.year-average,.grade-table tfoot th,.grade-table tfoot td{background:#faf0f3;color:#80334b}.upload-grid{direction:rtl}.upload-card{direction:ltr;text-align:right}.review-card{flex-direction:row-reverse;text-align:right}.review-meta{justify-content:flex-end}.credentials-card{text-align:right}.profile-hero{position:relative}.profile-photo{border-radius:12px;object-fit:cover}.student-info-sheet,.transcript-sheet,.diploma-sheet{text-align:left}.info-photo-box img{object-fit:cover}.print-toolbar{text-align:left}
/* Login */
.login-v2{min-height:100vh;padding:28px;display:grid;place-items:center;background:#f1eeee}
.login-v2-shell{width:min(1160px,100%);min-height:690px;display:grid;grid-template-columns:1.08fr 1fr;background:#fff;border:1px solid #e9e3e2;border-radius:24px;overflow:hidden;box-shadow:0 24px 70px rgba(57,34,44,.12)}
.login-v2-intro{position:relative;isolation:isolate;overflow:hidden;display:flex;flex-direction:column;padding:42px 46px;color:#fff;background:radial-gradient(circle at 105% 4%,rgba(210,161,113,.19),transparent 35%),linear-gradient(150deg,#542038,#341a2a 75%)}
.login-v2-brand{position:relative;z-index:1;display:flex;align-items:center;gap:13px}.login-v2-brand img,.login-v2-mobile-brand img{width:54px;height:54px;padding:4px;object-fit:contain;background:#fff;border-radius:13px}.login-v2-brand div{display:grid;line-height:1.4}.login-v2-brand strong{letter-spacing:.16em;font-size:1rem}.login-v2-brand span{font-size:.55rem;color:#e9d9de;letter-spacing:.08em}
.login-v2-intro-copy{position:relative;z-index:1;max-width:440px;margin:auto 0}.login-v2-kicker,.login-v2-heading>span{font-size:.64rem;font-weight:800;letter-spacing:.15em;color:#d9b778}.login-v2-intro h2{margin:18px 0;font-size:clamp(2.6rem,4.4vw,4.2rem);font-weight:700;line-height:1.08;letter-spacing:-.045em}.login-v2-intro h2 em{color:#e2c593;font-family:Georgia,serif;font-weight:400}.login-v2-intro p{max-width:380px;color:#eadce2;line-height:1.8;font-size:.87rem}
.login-v2-info{position:relative;z-index:1;display:flex;gap:14px;padding:18px;border:1px solid rgba(255,255,255,.18);background:rgba(255,255,255,.06);border-radius:15px}.login-v2-info-icon{flex:0 0 38px;width:38px;height:38px;display:grid;place-items:center;border-radius:10px;background:rgba(225,193,142,.15);color:#e7c58d;font-size:1.4rem}.login-v2-info div{display:grid;gap:4px}.login-v2-info small{color:#e2bd82;font-weight:800;letter-spacing:.1em;font-size:.55rem}.login-v2-info strong{font-size:.72rem;line-height:1.5}.login-v2-info div>span{font-size:.7rem;color:#d6c1c9}.login-v2-orbit{position:absolute;border:1px solid rgba(226,197,147,.16);border-radius:50%;pointer-events:none}.orbit-one{width:410px;height:410px;right:-205px;top:80px}.orbit-two{width:520px;height:520px;right:-260px;top:25px}.login-v2-foot{display:flex;justify-content:space-between;margin-top:24px;font-size:.58rem;letter-spacing:.1em;color:#d2b8c2}
.login-v2-content{position:relative;display:grid;place-items:center;padding:60px 42px 80px}.login-v2-panel{width:min(360px,100%)}.login-v2-heading{margin-bottom:24px}.login-v2-heading>span{color:#a47d42}.login-v2-heading h1{margin:7px 0 2px;font-size:2rem;letter-spacing:-.04em;color:#302430}.login-v2-heading p{margin:0;color:#8c8389;font-size:.82rem}.login-v2 .login-tabs{padding:5px;background:#f5f1f2;border-radius:11px}.login-v2 .login-tab{height:42px;font-size:.8rem;color:#8a7c82}.login-v2 .login-tab.active{background:#fff;color:#772d43}.login-v2 .login-form{gap:9px}.login-v2 .login-form label{margin-top:6px;font-size:.74rem;color:#584e54}.login-v2 .login-form input{height:49px;border-color:#e7e0e2;font-size:.8rem}.login-v2 .login-form input:focus{border-color:#b47789;box-shadow:0 0 0 3px rgba(143,59,85,.1)}.login-v2 .password-toggle{background:#f7f1f2;color:#743048}.login-v2 .primary-button{margin-top:17px;justify-content:space-between;padding:0 18px;font-size:.8rem}.login-v2-security{display:flex;align-items:center;gap:9px;margin-top:25px;padding-top:19px;border-top:1px solid #f0ebec;color:#8b8186;font-size:.68rem}.login-v2-security span{display:grid;place-items:center;width:22px;height:22px;border-radius:50%;background:#edf6ef;color:#3d835c;font-weight:bold}.login-v2-security p{margin:0}.login-v2-copyright{position:absolute;bottom:23px;margin:0;color:#aaa0a5;font-size:.62rem}.login-v2-mobile-brand{display:none}
@media(max-width:820px){.side-nav{transform:translateX(105%)}.side-nav.is-open{transform:translateX(0)}.main-area{margin-right:0}.topbar{flex-wrap:wrap}.topbar-actions{margin-left:0;margin-right:auto}.global-search{order:3;margin:0;flex-basis:100%;max-width:none}.login-v2-shell{min-height:600px}.login-v2-intro{padding:32px}.login-v2-content{padding:45px 30px 75px}.login-v2-intro h2{font-size:2.7rem}}
@media(max-width:600px){.topbar{flex-direction:row-reverse}.topbar-actions{margin-right:auto;margin-left:0}.welcome-banner,.profile-hero{flex-direction:column;align-items:flex-end}.welcome-banner .button{align-self:flex-end}.section-heading{align-items:flex-end}.quick-actions-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.wizard-step-marker{flex-direction:column;justify-content:flex-start}.wizard-step-marker b{max-width:65px;text-align:center;font-size:.55rem}.form-actions{flex-direction:column-reverse}.wizard-actions .button-primary{margin:0}.student-number-control{flex-direction:row-reverse}.profile-label{display:none}.login-v2{display:block;padding:0;background:#fff}.login-v2-shell{display:flex;flex-direction:column;min-height:100vh;border:0;border-radius:0;box-shadow:none}.login-v2-intro{display:none}.login-v2-content{display:flex;flex-direction:column;justify-content:center;align-items:stretch;flex:1;padding:26px 24px 80px}.login-v2-mobile-brand{display:flex;align-items:center;gap:12px;margin:0 0 45px;color:#60273a;font-weight:850;letter-spacing:.08em;line-height:1.2}.login-v2-mobile-brand img{border:1px solid #efe6e7}.login-v2-mobile-brand small{font-size:.51rem;letter-spacing:.06em;color:#8f7d83}.login-v2-panel{width:100%;max-width:390px;margin:auto}.login-v2-heading h1{font-size:1.8rem}.login-v2-copyright{align-self:center;bottom:25px;text-align:center}.info-photo-box img{max-width:100%}}
@media print{.student-info-sheet,.transcript-sheet,.diploma-sheet{box-shadow:none!important;border-radius:0!important}.student-info-sheet{width:190mm;max-width:190mm;margin:0 auto!important}.student-info-sheet .info-photo-box img{print-color-adjust:exact;-webkit-print-color-adjust:exact}}
.data-table td.ltr{display:table-cell;direction:ltr;text-align:right}
.grade-table{width:100%;border-collapse:collapse}.grade-table tbody tr{border-bottom:1px solid #f1eded}.grade-panel-heading{flex-direction:row-reverse}.grade-panel-heading>div{text-align:right}
.side-link{font-size:.86rem}.topbar-title h1{font-size:1.08rem}.content-card .section-heading h2{font-size:1.05rem}.section-heading p,.step-heading p{font-size:.76rem}.quick-action-card b{font-size:.8rem}.quick-action-card small{font-size:.68rem}.data-table thead th,.grade-table thead th{font-size:.72rem}.data-table tbody td,.grade-table tbody td{font-size:.78rem}.field>span{font-size:.8rem}.field input,.field select{font-size:.84rem}.wizard-step-marker b{font-size:.74rem}.grade-table th,.grade-table td{padding:10px 12px}
@media(max-width:600px){.side-link{font-size:.9rem}.wizard-step-marker b{font-size:.58rem}.field input,.field select{font-size:16px}.grade-table{min-width:650px}}
.student-record-banner{width:min(100%,1120px);margin:0 auto 16px;padding:17px 20px;display:flex;flex-direction:row-reverse;align-items:center;gap:15px;background:#fff;border:1px solid #ede8e8;border-radius:16px;box-shadow:0 4px 18px rgba(52,36,43,.04)}.record-photo{width:62px;height:70px;flex:0 0 62px;display:grid;place-items:center;overflow:hidden;border-radius:11px;background:#f5e8ec;color:#7c334a;font-size:1.4rem;font-weight:800}.record-photo img{height:100%;width:100%;object-fit:cover}.record-heading{display:grid;gap:2px;text-align:right}.record-heading small{font-size:.61rem;letter-spacing:.1em;color:#ab8450;font-weight:800}.record-heading strong{font-size:1rem;color:#302631}.record-heading span{font-size:.73rem;color:#89808a}.student-record-banner>.button{margin-right:auto}
@media(max-width:600px){.student-record-banner{padding:13px;gap:10px;flex-wrap:wrap}.student-record-banner>.button{margin-right:0;width:100%}.record-photo{width:50px;height:58px;flex-basis:50px}.record-heading strong{font-size:.86rem}}
.grade-year-tab,.wizard-step-marker{direction:ltr;unicode-bidi:isolate}
