/* Shared finish for the entry flow and every tenant workspace. */
.page-actions{display:flex;align-items:center;justify-content:flex-end;gap:8px;flex-wrap:wrap;max-width:48%}.page-actions:empty{display:none}.page-actions .btn{white-space:normal}.page-heading>div:first-child{min-width:0}
@media(max-width:760px){.page-heading{flex-wrap:wrap}.page-actions{max-width:none;width:100%;justify-content:flex-start}.page-actions .btn{flex:1 1 140px}.page-actions .date-pill{display:none}}
.unified-entry{margin:0;min-height:100vh;background:#f4f6f2;padding:30px 6vw 0}.entry-brand{display:flex;align-items:center;gap:12px;width:max-content;margin-bottom:28px;color:#224a3c}.entry-brand b{display:block;font-size:26px;font-weight:600;line-height:1.3}.entry-brand small{font-size:10px;color:#768676}.entry-brand .brand-symbol{background:#184c3e;color:#e4d5ad}.entry-layout{padding:0;min-height:0;max-width:1120px;margin:auto;display:grid;grid-template-columns:1.05fr 1fr;gap:0;background:#fff;border:1px solid #dfe7dd;border-radius:24px;overflow:hidden;box-shadow:0 15px 50px #163e3006}.entry-story{background:#143f35;color:#e9f0e8;position:relative;padding:56px 45px;overflow:hidden;display:flex;flex-direction:column}.entry-eyebrow{font-size:11px;color:#9c8754}.entry-story>.entry-eyebrow{color:#cdbd8c}.entry-story h1{font-size:46px;line-height:1.55;margin:22px 0 18px;font-weight:600;letter-spacing:-1px}.entry-story h1 em{font-style:normal;color:#d7c695}.entry-story>p{font-size:14px;line-height:2.1;color:#b7cfc0;max-width:340px}.entry-features{display:grid;gap:18px;margin:26px 0 75px;font-size:12px}.entry-features b{font:11px Arial;color:#c5b17c;margin-left:14px}.entry-story footer{font-size:10px;color:#a8bfae;margin-top:auto}.entry-decoration{position:absolute;bottom:78px;left:0;display:flex;gap:12px;transform:rotate(-15deg);opacity:.13}.entry-decoration i{width:60px;height:100px;background:#c8d5b1;border-radius:15px}.entry-decoration i:nth-child(2){height:145px;margin-top:-45px}.entry-decoration i:nth-child(3){height:190px;margin-top:-90px}.entry-form-panel{padding:42px 50px;display:flex;flex-direction:column;align-items:stretch}.entry-form-mark{font:29px serif;color:#9c8754;border:1px solid #d9d4bd;border-radius:12px;width:43px;height:46px;display:grid;place-items:center;margin-bottom:22px}.entry-form-panel h2{font-size:29px;font-weight:600;letter-spacing:-.4px;margin:8px 0}.entry-intro{font-size:13px;color:#778777;line-height:1.9;margin:0 0 24px}#unified-login label{display:block;font-size:12px;font-weight:600;margin:0 0 8px}#unified-login input,#unified-login select{display:block;width:100%;min-width:0;height:48px;border:1px solid #dce5da;border-radius:9px;padding:10px 13px;background:#fafcf9;color:#244b3b;font:13px Esnad,Tahoma,sans-serif;margin-bottom:18px}#unified-login input:focus,#unified-login select:focus{outline:2px solid #a89765;outline-offset:2px}#unified-login input::placeholder{color:#98a293;font-size:11px}.password-field{position:relative}.password-field input{padding-left:65px!important}.password-field button{position:absolute;left:9px;top:7px;height:34px;border:0;background:transparent;color:#5e7c63;font-size:11px;border-radius:5px}.entry-submit{display:flex;justify-content:space-between;align-items:center;width:100%;background:#1b5943;color:#fff;border:0;border-radius:9px;min-height:48px;padding:12px 16px;font-size:13px;margin-top:7px}.entry-submit:hover{background:#13452f}.entry-submit:disabled{opacity:.65;cursor:wait}.entry-help{border-top:1px solid #e6ebe2;padding-top:21px;margin-top:25px}.entry-help strong{font-size:12px;font-weight:600}.entry-help p,.entry-telegram{color:#7a8876;font-size:11px;line-height:1.9;margin:6px 0 0}.entry-telegram{margin-top:17px}#entry-error{padding:12px;border-radius:8px;color:#984d3a;background:#fff0ea;font-size:12px}.entry-footer{text-align:center;font-size:10px;color:#86917f;padding:23px 0}
/* Tenant sign-in retains its own Telegram flow and the same visual identity. */
.login-page{background:#f4f6f2;min-height:100vh;padding:36px 5vw;gap:0;grid-template-columns:1.05fr 1fr}.login-story{background:#143f35;color:#e9f0e8;border-radius:0 22px 22px 0;padding:45px 12%;min-width:0}.login-story .wordmark{margin-bottom:52px;font-size:26px}.login-story .brand-symbol{background:#cabb91;color:#183f32}.login-story h1{font-size:45px;font-weight:600}.login-story h1 em{color:#d7c695}.login-story>.eyebrow{color:#c5b582}.login-story>p{color:#bdd0c1}.story-note{border-color:#ffffff20}.story-note small,.login-story footer{color:#a5bfac}.login-form{background:#fff;width:100%;max-width:none;margin:0;padding:60px clamp(25px,5vw,85px);border:1px solid #e2e8de;border-radius:22px 0 0 22px;display:flex;flex-direction:column;justify-content:center}.login-form form{margin-top:15px}.login-form h2{font-size:28px}.login-form .form-control{background:#fafcf9;height:48px}.login-form form button{min-height:48px}.login-form .small-label{color:#9d8651}.login-help{font-size:11px!important}.telegram-login{padding:12px;border-radius:9px}.login-form .subtle-link{margin-top:12px;font-size:11px}
/* Consistent density and typography for all workspace routes. */
.panel-title a,.action-link{font-size:12px}.panel-body{padding:22px}.panel-body>h2,.panel-body>h3{font-weight:600}.table-wrap{max-width:100%;overscroll-behavior-inline:contain}table{font-size:12px}th{font-size:11px;font-weight:600;color:#647c6d;background:#f4f7f2;padding:14px 18px}td{padding:16px 18px;color:#466150;line-height:1.8}td strong{font-size:13px}.row-sub{font-size:11px;color:#859581}.badge-soft{font-size:11px;border-radius:7px;padding:5px 10px}.empty{padding:38px 20px;font-size:13px;background:linear-gradient(#fff,#fafcf9)}.empty>.nav-icon{width:30px;height:30px;color:#8aa58e;margin-bottom:6px}.school-card{padding:24px;transition:border-color .15s}.school-card:hover{border-color:#aac3ac}.school-card h2{font-weight:600;font-size:19px}.school-card p{font-size:12px;line-height:1.9}.school-card footer{font-size:12px}.school-code{color:#9a8656}.tool-row{gap:10px;margin-bottom:23px}.tool-row .btn{min-height:43px}.tool-row>.form-control,.tool-row>.form-select{flex:1;max-width:330px}.form-control,.form-select{font-size:13px;background:#fcfdfa;min-height:45px;border-radius:9px}.field label{font-weight:600;font-size:12px}.form-grid{gap:19px}.form-footer{border-top:1px solid #e4ebe0;padding-top:18px}.pill-tabs{gap:8px}.pill-tabs button{padding:10px 16px;border-radius:8px;font-size:12px}.pill-tabs .active{box-shadow:0 3px 8px #173e3810}.meta-grid{gap:16px;padding:20px;border-radius:12px;background:#f2f6ef}.meta-grid small{font-size:11px}.meta-grid strong{font-size:13px;overflow-wrap:anywhere}.detail-text{font-size:14px;line-height:2}.message{padding:18px;border-radius:12px;background:#f8faf5}.message p{font-size:13px}.help{font-size:12px}.check-option{align-items:center;min-height:43px;border-radius:8px;padding:10px 13px}.wizard-steps{gap:8px}.wizard-steps button{border-radius:8px;padding:12px}.calendar-grid{overflow-x:auto}.calendar-day{min-width:85px}.calendar-event{font-size:10px}.timeline-item strong{font-size:12px}.timeline-item small{font-size:11px}.date-pill{border-radius:9px;font-size:12px}.app-footer{font-size:10px;gap:15px;flex-wrap:wrap}.dialog-head{padding:19px 24px;background:#f8faf6}.dialog-head h2{font-size:20px;font-weight:600}dialog{box-shadow:0 25px 100px #102f2840;border-radius:17px;width:min(800px,94vw)}#dialog-body{padding:25px;overflow-wrap:anywhere}dialog::backdrop{background:#143b3366;backdrop-filter:blur(4px)}
@media(max-width:980px){.unified-entry{padding:23px 24px 0}.entry-story{padding:38px 27px}.entry-story h1{font-size:37px}.entry-form-panel{padding:35px 28px}.login-page{padding:25px}.login-story{padding:35px 25px}.login-story h1{font-size:37px}}
@media(max-width:760px){.entry-layout{grid-template-columns:1fr}.entry-story{padding:27px 30px}.entry-story h1{font-size:29px;margin:12px 0;line-height:1.5}.entry-story h1 br{display:none}.entry-story>p{font-size:12px;max-width:none;margin:0}.entry-features,.entry-story footer,.entry-decoration{display:none}.entry-form-panel{padding:28px 30px}.entry-form-mark{display:none}.entry-form-panel h2{font-size:26px}.entry-brand{margin-bottom:20px}.entry-intro{font-size:12px}.login-page{padding:22px 16px;display:block}.login-story{display:none}.login-form{border-radius:18px;padding:35px 28px;min-height:calc(100vh - 44px)}.login-form::before{content:'إسناد';display:block;color:#9c8754;font-weight:600;font-size:23px;margin-bottom:25px}.page-heading{gap:12px}.page-heading>.btn{width:100%}.tool-row>.form-control,.tool-row>.form-select{max-width:none;flex-basis:100%;width:100%;min-width:0}.tool-row>.btn{flex:1 1 auto}.panel-title{padding:15px;gap:12px;flex-wrap:wrap}.panel-title h2{font-size:14px}.panel-body{padding:17px}.meta-grid{grid-template-columns:repeat(2,minmax(0,1fr));padding:15px}.form-grid{grid-template-columns:minmax(0,1fr)}.form-footer{flex-wrap:wrap}.form-footer>.btn{flex:1}.pill-tabs{gap:6px}.pill-tabs button{padding:9px 12px}.calendar-grid{grid-template-columns:repeat(7,minmax(85px,1fr))}.wizard-steps{flex-wrap:wrap}.wizard-steps button{min-width:38px}.dialog-head{padding:15px 18px}.dialog-head h2{font-size:17px}#dialog-body{padding:18px}.metric-bar{grid-template-columns:minmax(80px,1fr) minmax(50px,1fr) 45px;gap:8px}.check-grid{gap:7px}.check-option{flex:1}.dashboard-widget{min-width:0}}
@media(max-width:420px){.unified-entry{padding:18px 14px 0}.entry-story{padding:23px}.entry-story h1{font-size:25px}.entry-form-panel{padding:25px 23px}.entry-layout{border-radius:18px}.entry-help{padding-top:16px;margin-top:20px}.meta-grid{grid-template-columns:1fr}.login-form{padding:28px 22px}.login-form h2{font-size:24px}.topbar{padding:0 10px}.school-card{padding:19px}}
