/* Cinema UI v1 — scoped, independent from Ring; high contrast, no external dependencies. */
@font-face{font-family:Vazirmatn;src:url('./fonts/Vazirmatn-Variable.woff2') format('woff2');font-style:normal;font-weight:100 900;font-display:swap}
:root{color-scheme:light;--blue:#1769cf;--blue-dark:#1359b0;--navy:#14243a;--text2:#465971;--line:#cfd9e6;--bg:#f4f7fb;--white:#fff;--soft:#f7fafe;--green:#16684c;--red:#a63f43;--shadow:0 6px 24px rgba(30,55,88,.045)}
*{box-sizing:border-box}html{min-height:100%;scroll-behavior:smooth}body{margin:0;min-height:100%;background:var(--bg);font:14px/1.85 Vazirmatn,Tahoma,Arial,sans-serif;color:var(--navy);-webkit-font-smoothing:antialiased}button,input,select,textarea{font:inherit}button{cursor:pointer}button:disabled{opacity:.57;cursor:not-allowed}[hidden]{display:none!important}a{color:var(--blue)}h1,h2,h3,p{margin-top:0}h1{font-size:27px;line-height:1.65}h2{font-size:18px;line-height:1.5}strong{font-weight:800}:focus-visible{outline:3px solid rgba(23,105,207,.29);outline-offset:2px}::selection{color:#124079;background:#d9e9ff}
.shell{min-height:100vh}.page-body{display:flex;flex-direction:column;min-height:100vh}.topbar{background:#fff;border-bottom:1px solid #e3eaf3;min-height:76px;padding:13px 29px;display:flex;justify-content:space-between;align-items:center;gap:20px}.topbar-brand{display:flex;align-items:center;gap:11px}.topbar-brand>span:last-child{display:flex;flex-direction:column;line-height:1.5}.topbar-brand strong{font-size:18px}.topbar-brand small{font-size:11px;color:var(--text2)}.topbar-badge,.brand-icon{background:#1567d1;color:white;border-radius:14px;display:grid;place-items:center;font-weight:900}.topbar-badge{width:43px;height:43px;font-size:24px}.breadcrumb{font-size:12px;font-weight:700;color:#415a75;background:#f3f7fb;border-radius:9px;padding:6px 12px}
.sidebar{width:250px;position:fixed;right:0;top:0;bottom:0;z-index:40;background:#fff;border-left:1px solid #d9e4ef;box-shadow:-3px 0 25px #14243a08;display:flex;flex-direction:column}.side-brand{padding:22px 18px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #e9edf3}.brand-icon{width:44px;height:44px;font-size:25px}.side-brand div:nth-child(2){display:flex;flex-direction:column;line-height:1.6;min-width:0}.side-brand strong{font-size:18px}.side-brand small{font-size:11px;color:var(--text2)}.side-nav{padding:24px 11px;display:flex;flex-direction:column;gap:4px;flex:1;overflow-y:auto}.side-caption{font-size:12px;font-weight:700;color:#586b80;margin:3px 12px 12px}.side-caption.admin-only{margin-top:22px}.nav-item{color:#344c68;background:transparent;border:0;border-radius:11px;min-height:48px;display:flex;align-items:center;gap:12px;width:100%;padding:11px 13px;text-align:right;font-weight:700;font-size:13px}.nav-item:hover{background:#f2f7fe;color:#1656aa}.nav-item.active{background:#e8f1ff;color:#154f9c}.nav-glyph{font-size:22px;font-weight:600;width:24px;text-align:center}.small-tag{font-size:9px;color:#536680;background:#e9eef4;border-radius:99px;padding:1px 7px;margin-right:auto}.side-foot{padding:14px 15px 18px;border-top:1px solid #e4eaf1}.side-profile{display:flex;align-items:center;gap:10px;margin-bottom:13px}.avatar{width:40px;height:40px;border-radius:12px;background:#eaf3ff;color:var(--blue);display:grid;place-items:center}.side-person{min-width:0;display:flex;flex-direction:column;font-size:12px}.side-person strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.side-person span{color:var(--text2);font-size:11px}.side-version{display:block;text-align:center;color:#667890;font-size:10px;margin-top:12px}.hamburger,.mobile-only{display:none}.drawer-shade{position:fixed;inset:0;background:#0b1d385e;z-index:35}
body.is-logged-in .page-body{margin-right:250px}body.is-logged-in .topbar-brand{display:none}body.is-logged-in .breadcrumb{margin-right:auto}main{flex:1}.auth-layout{max-width:1170px;padding:30px;min-height:calc(100vh - 145px);margin:auto;display:grid;grid-template-columns:1fr 445px;gap:70px;align-items:center}.auth-intro .eyebrow{display:inline-block;background:#e8f2ff;border-radius:99px;padding:4px 13px}.auth-intro h1{font-size:clamp(31px,3.9vw,44px);margin:19px 0 10px}.auth-intro>p{color:var(--text2);font-size:15px;max-width:600px;line-height:2}.feature{color:#345a76;margin:12px 0;font-size:13px}.auth-card{background:#fff;border:1px solid #dbe4ee;border-radius:19px;box-shadow:var(--shadow);padding:28px}.auth-card .field-stack>h2{font-size:20px;margin-bottom:0}.auth-card .field-stack>p{margin-bottom:11px}.tabs{display:flex;background:#f0f4f9;border-radius:11px;padding:4px;margin-bottom:22px}.tab{flex:1;background:transparent;border:0;color:#52647d;border-radius:8px;padding:10px}.tab.selected{color:var(--blue);background:white;box-shadow:0 1px 5px #162e4a17;font-weight:800}.subtle{color:var(--text2);font-size:13px;line-height:1.95}.status-view{text-align:center}.status-emblem{width:57px;height:57px;background:#eaf2ff;border-radius:17px;display:grid;place-items:center;font-size:27px;margin:12px auto 19px}
.workspace{max-width:1550px;margin:0 auto;padding:26px 29px 20px;width:100%}.screen-head{background:white;border:1px solid #dce5ef;border-radius:17px;display:flex;justify-content:space-between;align-items:center;gap:15px;padding:22px 24px;margin-bottom:17px;box-shadow:var(--shadow)}.screen-head h1{font-size:22px;margin:3px 0}.screen-head p{margin:0}.eyebrow{font-size:11.5px;font-weight:800;color:#175bb2}.surface{border:1px solid #d4dfeb;border-radius:16px;background:#fff;padding:21px 22px;min-width:0;box-shadow:var(--shadow)}.surface h2{margin-bottom:13px}.surface-head{display:flex;justify-content:space-between;align-items:flex-start;gap:10px;margin-bottom:12px}.surface-head h2{margin:0}.micro,.hint{font-size:12px;color:#52647c;line-height:1.85}.hint{margin:-1px 0 5px}.two-col{display:grid;grid-template-columns:minmax(365px,1.03fr) minmax(350px,.97fr);gap:18px;align-items:start}.history-side{display:grid;gap:18px;min-width:0}.field-stack{display:flex;flex-direction:column;gap:5px}.field-stack>label{font-weight:800;color:#24374e;font-size:12.5px;margin-top:12px}.field-stack>label:first-child{margin-top:0}input:not([type=radio]):not([type=checkbox]),select,textarea{background:#fff;color:var(--navy);border:1px solid #bdcadb;border-radius:10px;min-height:44px;padding:9px 13px;width:100%;outline:none}input:focus,select:focus,textarea:focus{border-color:var(--blue);box-shadow:0 0 0 3px #1769cf1b}input::placeholder,textarea::placeholder{color:#596e86;opacity:1}textarea{resize:vertical;min-height:120px}select:disabled{background:#eff3f8;color:#5b6b7e}.segment{display:flex;gap:9px;margin:4px 0 8px}.segment label{flex:1;min-width:0;display:block;cursor:pointer}.segment input{position:absolute;opacity:0;width:1px;height:1px}.segment span{display:flex;align-items:center;justify-content:center;gap:7px;min-height:45px;background:#fff;border:1px solid #bbcadb;border-radius:10px;font-weight:700;color:#445974;transition:all .14s}.segment input:checked+span{background:#e8f1ff;border-color:#1769cf;color:#1753a2;box-shadow:inset 0 0 0 1px #1769cf}.segment input:focus-visible+span{outline:3px solid #1769cf55;outline-offset:2px}.required{color:#a9303d}.auto-fields{background:#f7f9fc;border:1px solid #d9e2ef;border-radius:11px;padding:12px;margin:7px 0 11px;display:flex;flex-wrap:wrap;gap:12px;color:#4f6077;font-size:12px}.auto-fields strong{color:var(--navy)}
.btn{border:1px solid transparent;border-radius:10px;min-height:41px;padding:8px 16px;font-size:12.5px;font-weight:800;white-space:normal}.btn-primary{color:#fff;background:var(--blue)}.btn-primary:hover:not(:disabled){background:var(--blue-dark)}.btn-outline{background:#fff;border-color:#b4c5da;color:#284867}.btn-outline:hover:not(:disabled){background:#f0f6ff;border-color:#95b1d3}.btn-small{font-size:11px;min-height:35px;padding:6px 11px}.btn-text{background:transparent;color:var(--text2)}.btn-logout{width:100%;text-align:right;background:#fff5f5;border-color:#f2d5d9;color:#923a44}.btn-success{background:#e9f7f0;border-color:#b8e0ca;color:#135d3f}.btn-danger{background:#fff1f1;border-color:#ebc5c5;color:#a0363f}.full{width:100%}.icon-btn{background:#fff;border:1px solid #bbcadb;color:#314e6d;border-radius:10px;width:39px;height:39px;font-size:23px}.notice{background:#edf4ff;border:1px solid #c8dcf8;color:#134982;border-radius:10px;padding:12px 15px;font-size:12.5px;margin-bottom:16px;overflow-wrap:anywhere}.notice.error{background:#fff1f0;border-color:#ebc8c8;color:#9b303b}.notice.success{background:#e9f8ef;border-color:#bce5d0;color:#176243}.empty{padding:25px 12px;background:#f9fbfd;border:1px dashed #cedaeb;border-radius:11px;color:#536780;text-align:center;font-size:12px}.records{display:grid;gap:9px}.record{background:#fff;border:1px solid #d5e1ed;border-radius:12px;padding:12px 14px}.record-top{display:flex;justify-content:space-between;align-items:center;gap:10px;margin-bottom:6px}.record-top strong{font-size:13px}.record p{white-space:pre-wrap;overflow-wrap:anywhere;margin:8px 0;font-size:12.5px}.record-meta{display:flex;gap:7px;flex-wrap:wrap;color:#4a5e77;font-size:11.5px}.record-date{color:#536880;font-size:11px;direction:ltr;unicode-bidi:plaintext}.tag{border-radius:99px;background:#edf4ff;color:#1c5399;padding:2px 9px;font-size:10px;font-weight:800}.tag.green{background:#e8f7ef;color:#176343}.tag.orange{background:#fff3df;color:#8d5a16}.tag.red{background:#ffeded;color:#a33942}.pager{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #e5ebf1;margin-top:15px;padding-top:13px}.pager span{color:#4a617d;font-size:11px}
.inline-actions{display:flex;gap:8px;align-items:center}.inline-actions select{width:auto;min-width:128px}.kpis{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:11px;margin-bottom:17px}.kpi{border:1px solid #d4deeb;background:#fff;border-radius:14px;padding:18px 16px;box-shadow:var(--shadow)}.kpi span{display:block;color:#50647c;font-size:12px;font-weight:700;margin-bottom:6px}.kpi strong{font-size:25px}.dashboard-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:17px}.dashboard-grid .surface:first-child{grid-column:span 2}.section-subhead{margin:24px 0 11px}.bar-list{display:grid;gap:10px}.bar-row{display:grid;grid-template-columns:minmax(100px,1fr) 60px;gap:8px;align-items:center}.bar-label{font-size:12px;color:#2f4560;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.bar-count{font-size:12px;text-align:left;font-weight:800}.bar-track{height:8px;background:#eaf0f7;border-radius:99px;overflow:hidden;grid-column:1/-1}.bar-fill{height:100%;background:#216cca;border-radius:99px;min-width:0}.chart{display:flex;align-items:flex-end;gap:5px;min-height:177px;overflow-x:auto;padding:15px 5px 0}.chart-col{height:154px;display:flex;flex-direction:column;justify-content:flex-end;align-items:center;gap:6px;min-width:22px;flex:1}.chart-value{font-size:10px;color:#4c5f77}.chart-bar{background:linear-gradient(0deg,#1769cf,#80b0ef);border-radius:5px 5px 0 0;width:min(100%,24px);min-height:2px}.chart-day{font-size:9px;color:#586d84;white-space:nowrap;direction:ltr}.filter-row{display:flex;justify-content:space-between;gap:12px;align-items:center;margin-bottom:14px}.filter-row select{max-width:190px}.member-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}.member-card,.group-card{border:1px solid #d4deeb;border-radius:12px;padding:15px;background:#fff;min-width:0}.member-card header,.group-card header{display:flex;justify-content:space-between;align-items:flex-start;gap:10px}.member-card h3,.group-card h3{font-size:14px;margin:0 0 4px;overflow-wrap:anywhere}.member-email{font-size:11px;direction:ltr;text-align:right;overflow-wrap:anywhere;color:#566a82}.member-actions,.group-actions{display:flex;gap:7px;flex-wrap:wrap;margin-top:13px}.check-row{display:flex;gap:7px;align-items:center}.check-row input{width:16px;height:16px}.groups-list{display:grid;gap:11px}.group-edit{display:grid;gap:7px;margin-top:12px}.group-edit label{font-size:11px;color:#465d75}.period-pending{max-width:760px;text-align:center;margin:auto}.period-pending p{max-width:520px;margin:0 auto}.visually-hidden{position:absolute;clip:rect(0 0 0 0);width:1px;height:1px;overflow:hidden;white-space:nowrap}footer{text-align:center;padding:16px;color:#52677f;font-size:11px}
@media(max-width:1220px){.two-col{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(3,1fr)}}
@media(max-width:920px){.auth-layout{grid-template-columns:1fr;gap:20px;max-width:620px}.auth-intro h1{font-size:29px}.dashboard-grid{grid-template-columns:1fr}.dashboard-grid .surface:first-child{grid-column:span 1}.member-list{grid-template-columns:1fr}}
@media(max-width:800px){body.is-logged-in .page-body{margin-right:0}.sidebar{transform:translateX(105%);visibility:hidden;transition:transform .2s;width:min(300px,88vw)}body.drawer-open .sidebar{transform:translateX(0);visibility:visible}.hamburger,.mobile-only{display:inline-flex;align-items:center;justify-content:center}.topbar{padding:11px 17px;min-height:65px}.topbar-brand{display:flex!important}.breadcrumb{display:none}.workspace{padding:16px 13px}.screen-head{flex-wrap:wrap;padding:17px}.screen-head h1{font-size:20px}}
@media(max-width:520px){.auth-layout{padding:16px}.auth-card{padding:18px}.auth-intro>p{font-size:13px}.auth-intro h1{font-size:25px}.side-brand{padding:16px}.surface{padding:15px}.screen-head{padding:14px}.kpis{grid-template-columns:repeat(2,minmax(0,1fr))}.inline-actions{width:100%}.inline-actions select{flex:1}.bar-row{grid-template-columns:minmax(0,1fr) 45px}.pager{gap:5px}}
@media(prefers-reduced-motion:reduce){.sidebar,.segment span{transition:none}}
