/* Ranex: التنسيق الموحّد للمنظومة. الهاتف أولاً، RTL. ألوان الهوية: نيلي وسماوي وكحلي. */
@font-face{font-family:"Cairo";font-weight:200 1000;font-display:swap;src:url(fonts/cairo-arabic.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0898-08E1,U+08E3-08FF,U+200C-200E,U+2010-2011,U+204F,U+2E41,U+FB50-FDFF,U+FE70-FE74,U+FE76-FEFC}
@font-face{font-family:"Poppins";font-weight:400;font-display:swap;src:url(fonts/poppins-latin-400.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}
@font-face{font-family:"Poppins";font-weight:600 700;font-display:swap;src:url(fonts/poppins-latin-600.woff2) format("woff2");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}

:root{
--ink:#0B1B3F;--ink-2:#22305A;--gold:#4F46E5;--gold-hi:#A5F3FC;--gold-soft:#E0E7FF;--gold-text:#4338CA;
--page:#F5F7FB;--panel:#fff;--muted:#475069;--line:#E3E7EF;--field:#D3D9E4;
--ok:#1E6B3F;--ok-bg:#E6F2EA;--warn:#7A5310;--warn-bg:#FFF1D6;--bad:#9B2B22;--bad-bg:#FCEBEA;--none:#475069;--none-bg:#EDF0F6;
--err:#B3261E;--radius:14px;--r-sm:10px;--shadow:none;
--font:"Poppins","Cairo",Tahoma,"Segoe UI","Noto Sans Arabic",sans-serif;
--tabbar-h:72px;
/* أسلوب Apple: سطوح محايدة، والذهبي للإجراء الرئيسي والعنصر النشط فقط */
--onyx:#fff;--fill:#E8ECF4;--bar:rgba(245,247,251,.82);--side:#EDF0F6;--thead:#F8FAFD;--hover:#F3F5FA;--gold-wash:#F5F5FF;--chev:#A9B1C4;--squircle:#0B1B3F;
color-scheme:light dark;
}
/* الوضع الداكن يتبع إعداد الجهاز */
@media screen and (prefers-color-scheme:dark){:root{
--ink:#EEF1F8;--ink-2:#CDD3E2;--gold:#6366F1;--gold-soft:#25235A;--gold-text:#A5B4FC;
--page:#080E1E;--panel:#121A33;--muted:#98A2BC;--line:#26304D;--field:#34405F;
--ok:#7FD3A1;--ok-bg:#13301F;--warn:#F5C866;--warn-bg:#3D2E0E;--bad:#F3A59C;--bad-bg:#4A1E1A;--none:#C3CADB;--none-bg:#1E2744;--err:#F3A59C;
--fill:#1E2744;--bar:rgba(8,14,30,.8);--side:#0D1428;--thead:#18213D;--hover:#18213D;--gold-wash:#17173A;--chev:#56607D;--squircle:#1B2547;
}}
.logo-dark{display:none}
@media screen and (prefers-color-scheme:dark){.logo-light{display:none}.logo-dark{display:inline}}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{-webkit-text-size-adjust:100%}
body{margin:0;min-height:100vh;min-height:100dvh;display:flex;flex-direction:column;background:var(--page);color:var(--ink);font-family:var(--font);line-height:1.6;-webkit-font-smoothing:antialiased}
a{color:inherit}
::selection{background:var(--gold-soft)}
:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
img{max-width:100%}
.muted{color:var(--muted)}.small{font-size:13px}
.hide{display:none!important}
.ic{width:22px;height:22px;flex:none;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}

/* ---------- الرأس الفاتح شبه الشفاف ---------- */
.appbar{position:sticky;top:0;z-index:30;background:var(--bar);color:var(--ink);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 0.5px 0 var(--line)}
.appbar-in{display:flex;align-items:center;justify-content:space-between;gap:8px;height:52px;padding:0 12px 0 10px;max-width:1400px;margin:0 auto}
.brand{display:flex;align-items:center;gap:8px;text-decoration:none;color:var(--ink);min-width:0}
.brand img{width:28px;height:28px;object-fit:contain;flex:none}
.brand b{font-size:16px;font-weight:600;white-space:nowrap}
.brand small{display:block;font-size:12px;color:var(--muted);font-weight:400;line-height:1.2}
.pop{position:relative}
.pop>summary{list-style:none;cursor:pointer}
.pop>summary::-webkit-details-marker{display:none}
.pop-menu{position:absolute;top:calc(100% + 8px);inset-inline-start:0;min-width:240px;background:var(--panel);color:var(--ink);border-radius:var(--radius);box-shadow:0 10px 30px rgba(0,0,0,.18),0 0 0 0.5px var(--line);padding:6px;z-index:40}
.pop-end .pop-menu{inset-inline-start:auto;inset-inline-end:0}
.pop-menu a,.pop-menu button{display:flex;align-items:center;gap:10px;width:100%;min-height:46px;padding:0 12px;border:0;border-radius:10px;background:none;color:inherit;font:inherit;font-size:15px;text-decoration:none;text-align:start;cursor:pointer}
.pop-menu a:hover,.pop-menu button:hover{background:var(--page)}
.pop-menu a[aria-current]{background:var(--gold-soft);font-weight:600}
.pop-menu .ic{color:var(--gold-text)}
.pop-menu .who{padding:8px 12px 10px;border-bottom:1px solid var(--line);margin-bottom:4px}
.pop-menu .who b{display:block}
.pop-menu .who span{font-size:13px;color:var(--muted)}
.pop-menu .danger{color:var(--bad)}
.pop-menu form{margin:0}
.switch{display:flex;align-items:center;gap:6px}
.brand .switch .ic{width:16px;height:16px}
.brand .switch .ic{color:var(--gold-text)}
.avatar{display:grid;place-items:center;width:36px;height:36px;border-radius:50%;background:var(--fill);color:var(--ink);font-weight:600;font-size:14px}

/* ---------- الهيكل: قائمة جانبية على الكمبيوتر، شريط سفلي على الهاتف ---------- */
.shell{flex:1;display:flex;width:100%;max-width:1400px;margin:0 auto}
.page{flex:1;min-width:0;display:flex;flex-direction:column}
.side{display:none}
.h-wrap{width:100%;max-width:1100px;margin:0 auto;padding:16px 16px 40px}
.has-tabs .h-wrap{padding-bottom:calc(var(--tabbar-h) + 32px)}
.tabbar{position:fixed;inset-inline:0;bottom:0;z-index:30;display:grid;grid-auto-flow:column;grid-auto-columns:minmax(0,1fr);background:var(--bar);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px);box-shadow:0 -0.5px 0 var(--line);padding:6px 4px calc(10px + env(safe-area-inset-bottom))}
.tabbar a,.tabbar button{display:flex;flex-direction:column;align-items:center;gap:2px;padding:4px 0;border:0;background:none;color:var(--muted);font:inherit;font-size:11px;font-weight:500;text-decoration:none;cursor:pointer;min-width:0}
.tabbar span.pill{display:grid;place-items:center;width:56px;height:30px}
.tabbar .ic{width:25px;height:25px;stroke-width:1.7}
.tabbar [aria-current]{color:var(--gold-text);font-weight:600}
.tabbar .lbl{max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;padding:0 2px}
@media(min-width:1000px){
.tabbar{display:none}
.has-tabs .h-wrap{padding-bottom:40px}
.side{display:flex;flex-direction:column;gap:1px;flex:none;width:248px;padding:16px 10px;background:var(--side);color:var(--ink);position:sticky;top:52px;align-self:flex-start;height:calc(100vh - 52px);overflow-y:auto;box-shadow:0.5px 0 0 var(--line)}
.shell{max-width:none}
.side h3{margin:16px 12px 4px;font-size:12px;font-weight:600;color:var(--muted)}
.side h3:first-child{margin-top:0}
.side a{display:flex;align-items:center;gap:10px;min-height:38px;padding:0 10px;border-radius:8px;color:var(--ink);text-decoration:none;font-size:14px}
.side a:hover{background:var(--fill)}
.side a[aria-current]{background:var(--gold-soft);color:var(--gold-text);font-weight:600}
.side .ic{width:19px;height:19px;color:var(--gold-text)}
.h-wrap{padding:24px 28px 40px}
}

/* ---------- قائمة المزيد ---------- */
.sheet{border:0;padding:0;margin:auto auto 0;width:100%;max-width:560px;max-height:88vh;border-radius:26px 26px 0 0;background:var(--page);color:var(--ink)}
.sheet::backdrop{background:rgba(0,0,0,.4)}
.sheet-in{padding:8px 16px calc(20px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.sheet-handle{align-self:center;width:40px;height:5px;border-radius:3px;background:var(--field)}
.sheet-top{display:flex;align-items:center;justify-content:space-between}
.sheet-top h2{margin:0;font-size:17px}
.sheet h3{margin:0 0 8px;font-size:13px;font-weight:600;color:var(--muted)}
.sheet-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px}
.sheet-grid a{display:flex;flex-direction:column;align-items:center;gap:6px;padding:12px 4px;background:var(--panel);border-radius:14px;font-size:12px;font-weight:600;text-align:center;text-decoration:none;line-height:1.35}
.sheet-grid a .ic{width:24px;height:24px;color:var(--gold-text)}
.sheet-grid a[aria-current]{box-shadow:0 0 0 2px var(--gold)}
.sys-row{display:flex;gap:8px;flex-wrap:wrap}
.sys-row a{flex:1 1 120px;display:flex;align-items:center;justify-content:center;gap:8px;min-height:46px;border-radius:14px;background:var(--panel);font-size:14px;font-weight:600;text-decoration:none;box-shadow:var(--shadow)}
.sys-row a.cur{background:var(--gold-soft);color:var(--gold-text)}
.x{display:grid;place-items:center;width:44px;height:44px;border:0;border-radius:50%;background:var(--panel);cursor:pointer;color:var(--ink)}

/* ---------- رأس اللوحات: عنوان كبير وأرقام في مجموعة ---------- */
.hero{width:100%;max-width:1100px;margin:0 auto;padding:16px 16px 0}
.hero p{margin:0;font-size:14px;color:var(--muted)}
.hero h1{margin:0;font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-0.01em}
.hero-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(100px,1fr));gap:1px;margin-top:16px;background:var(--line);border-radius:var(--radius);overflow:hidden}
.hero-stats>*{min-width:0;display:flex;flex-direction:column;padding:12px 14px;background:var(--panel);color:var(--ink);text-decoration:none}
.hero-stats>a:hover{background:var(--hover)}
.hero-stats b{font-size:24px;line-height:1.25;font-weight:600;overflow-wrap:anywhere;font-variant-numeric:tabular-nums}
.hero-stats.money{grid-template-columns:repeat(auto-fit,minmax(150px,1fr))}.hero-stats.money b{font-size:19px;direction:ltr;text-align:right}
.hero-stats span{font-size:12px;color:var(--muted)}
.hero-stats .ok b{color:var(--ok)}.hero-stats .warn b{color:var(--warn)}.hero-stats .bad b{color:var(--bad)}.hero-stats .none b{color:var(--none)}
@media(min-width:1000px){.hero{padding:28px 28px 0}.hero h1{font-size:34px}}

/* ---------- عناوين ونصوص ---------- */
.h-title{margin:8px 0 4px;font-size:30px;line-height:1.25;font-weight:700;letter-spacing:-0.01em}
.h-lede{margin:0 0 16px;color:var(--muted);font-size:15px}
h2.h-sec{margin:28px 0 8px;font-size:20px;line-height:1.35;font-weight:700}
h3{font-size:15px;margin:16px 0 6px}
.sec-head{display:flex;align-items:center;justify-content:space-between;gap:8px;margin:28px 0 8px}
.sec-head h2{margin:0;font-size:20px;font-weight:700}
@media(min-width:1000px){.h-title{font-size:34px}}
.sec-head a{font-size:13px;font-weight:600;color:var(--gold-text);text-decoration:none}

/* ---------- رسائل وتنبيهات ---------- */
.msgs{list-style:none;margin:0 0 12px;padding:0}
.msgs li{padding:12px 14px;margin-bottom:8px;border-radius:var(--r-sm);background:var(--ok-bg);color:var(--ok);font-size:15px;font-weight:600}
.msgs li.error{background:var(--bad-bg);color:var(--bad)}
.msgs li.warning{background:var(--warn-bg);color:var(--warn)}
.alert{margin:12px 0;padding:12px 14px;border-radius:var(--r-sm);background:var(--warn-bg);color:var(--warn);font-size:14px}
.alert a{font-weight:700}

/* ---------- البطاقات والمربعات ---------- */
.card{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px 16px;margin-bottom:12px}
.card.gold{box-shadow:0 0 0 1.5px var(--gold-soft);background:var(--gold-wash)}
.card>:first-child{margin-top:0}.card>:last-child{margin-bottom:0}
.grid{display:grid;gap:10px;grid-template-columns:repeat(2,minmax(0,1fr))}
@media(min-width:760px){.grid.g4{grid-template-columns:repeat(4,minmax(0,1fr))}.grid.g3{grid-template-columns:repeat(3,minmax(0,1fr))}}
.tile{display:block;background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:14px;text-decoration:none;color:inherit}
.tile b{display:block;font-size:28px;line-height:1.2;overflow-wrap:anywhere}
select{max-width:100%}.t td select,.row-actions select{min-width:0;flex:1 1 140px}
.tile span{font-size:13px;color:var(--muted)}
.tile.ok b{color:var(--ok)}.tile.warn b{color:var(--warn)}.tile.bad b{color:var(--bad)}.tile.none b{color:var(--none)}
a.tile:hover{background:var(--hover)}
.badge{display:inline-flex;align-items:center;gap:6px;padding:2px 10px;border-radius:999px;font-size:12px;font-weight:600;white-space:nowrap;background:var(--none-bg);color:var(--none)}
.badge::before{content:"";width:7px;height:7px;border-radius:50%;background:currentColor}
.badge.green{background:var(--ok-bg);color:var(--ok)}.badge.yellow{background:var(--warn-bg);color:var(--warn)}.badge.red{background:var(--bad-bg);color:var(--bad)}
.tag{display:inline-block;padding:1px 10px;border-radius:999px;background:var(--none-bg);font-size:12px;font-weight:600;color:var(--none);white-space:nowrap}
.tag.strong{background:var(--ink);color:var(--page)}
.state-ok{color:var(--ok)}.state-low{color:var(--warn)}.state-out{color:var(--bad)}

/* ---------- إجراءات سريعة وقوائم ---------- */
.quick{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:8px;margin:4px 0 8px}
.quick a{display:flex;flex-direction:column;align-items:center;gap:6px;font-size:13px;font-weight:600;text-decoration:none;text-align:center;line-height:1.3}
.quick a span{display:grid;place-items:center;width:58px;height:58px;border-radius:16px;background:var(--panel);color:var(--gold-text)}
.quick a .ic{width:24px;height:24px}
@media(min-width:760px){.quick{display:flex;flex-wrap:wrap;gap:8px}.quick a{flex-direction:row;gap:8px;padding:0 16px 0 18px;min-height:46px;border-radius:var(--r-sm);background:var(--panel);box-shadow:var(--shadow)}.quick a span{width:auto;height:auto;background:none;box-shadow:none}.quick a .ic{width:20px;height:20px}}
.list{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);padding:0 14px;margin-bottom:12px}
.list>a,.list>div{display:flex;align-items:center;gap:12px;padding:11px 0;text-decoration:none;color:inherit}
.list>*+*{border-top:0.5px solid var(--line)}
.list>a::after{content:"";flex:none;width:7px;height:7px;border:solid var(--chev);border-width:0 0 2px 2px;transform:rotate(45deg);margin-inline-start:2px}
.list .txt{flex:1;min-width:0;display:flex;flex-direction:column}
.list .txt b{font-size:15px;font-weight:600}
.list .txt span{font-size:12px;color:var(--muted)}
.list .ico{flex:none;display:grid;place-items:center;width:36px;height:36px;border-radius:9px;background:var(--none-bg);color:var(--none);font-size:12px;font-weight:700}
.list .ico.ok{background:var(--ok-bg);color:var(--ok)}.list .ico.warn{background:var(--warn-bg);color:var(--warn)}.list .ico.bad{background:var(--bad-bg);color:var(--bad)}.list .ico.gold{background:var(--gold-soft);color:var(--gold-text)}
.fab{position:fixed;inset-inline-end:16px;bottom:calc(var(--tabbar-h) + 18px);z-index:25;display:inline-flex;align-items:center;gap:8px;min-height:54px;padding:0 20px 0 18px;border-radius:27px;background:var(--gold);color:var(--onyx);font-size:15px;font-weight:600;text-decoration:none;box-shadow:0 4px 14px rgba(0,0,0,.18)}
@media(min-width:1000px){.fab{bottom:28px;inset-inline-end:28px}}

/* ---------- الحقول والأزرار ---------- */
.filters{display:flex;flex-wrap:wrap;gap:8px;align-items:flex-end;margin-bottom:14px}
.filters label{display:flex;flex-direction:column;font-size:13px;font-weight:600;gap:4px;min-width:0;max-width:100%}
.filters input:not([type=checkbox]):not([type=radio]),.filters select{max-width:100%;min-width:0}
select,input[type=text],input[type=date],input[type=time],input[type=number],input[type=search],input[type=password],input[type=email],input[type=tel],textarea,.inp{min-height:46px;padding:8px 12px;border:1px solid var(--field);border-radius:var(--r-sm);background:var(--panel);color:var(--ink);font:inherit;font-size:16px;max-width:100%;caret-color:var(--gold)}
select:focus-visible,input:focus-visible,textarea:focus-visible{outline:2px solid var(--gold);outline-offset:0;border-color:var(--gold)}
::placeholder{color:var(--muted);opacity:.8}
textarea{width:100%;min-height:90px}
/* Safari على iPhone: حقول التاريخ والوقت لها عرض داخلي يتجاوز البطاقة، وتظهر بلون النظام لا بألوان المنظومة */
input[type=date],input[type=time]{-webkit-appearance:none;appearance:none;min-width:0;display:block}
input::-webkit-date-and-time-value{text-align:start;min-height:1.5em}
input[type=checkbox],input[type=radio]{width:20px;height:20px;accent-color:var(--gold);vertical-align:middle}
.b{display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:46px;padding:8px 18px;border:0;border-radius:var(--r-sm);background:var(--fill);color:var(--ink);font:inherit;font-weight:600;text-decoration:none;cursor:pointer}
.b.gold{background:var(--gold);color:var(--onyx)}
.b.ghost{background:transparent;color:var(--gold-text);box-shadow:inset 0 0 0 1px var(--field)}
.b.danger{background:var(--bad-bg);color:var(--bad)}
.b:hover{filter:brightness(.97)}
.b.sm{min-height:38px;padding:4px 14px;font-size:14px}
.b:active{filter:brightness(.94)}
.b[disabled]{opacity:.5;cursor:not-allowed}
.row-actions{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.f label{display:block;margin:14px 0 6px;font-weight:600;font-size:14px}
.f .help{display:block;font-size:12px;color:var(--muted);margin-top:4px}
.f .err{color:var(--bad);font-size:13px;margin:4px 0 0}
.f input:not([type=checkbox]):not([type=radio]),.f select,.f textarea{width:100%}
.f ul{list-style:none;padding:0;margin:0;display:grid;grid-template-columns:repeat(auto-fill,minmax(180px,1fr));gap:6px}
.f ul label{display:flex;align-items:center;gap:8px;margin:0;min-height:40px;padding:0 10px;border-radius:10px;background:var(--page);font-weight:400}
.f-inline{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.f-inline>div{min-width:0}
.f-inline label{margin-top:0}
.lines-form{background:var(--gold-wash)}
/* شريط الإجراءات الثابت أسفل النماذج على الهاتف */
@media(max-width:999px){.sticky-actions{position:sticky;bottom:calc(var(--tabbar-h) + 6px);z-index:20;margin:16px -16px 0;padding:12px 16px;background:var(--bar);box-shadow:0 -0.5px 0 var(--line);-webkit-backdrop-filter:saturate(180%) blur(20px);backdrop-filter:saturate(180%) blur(20px)}.sticky-actions form{flex:1;display:flex}.sticky-actions .b{flex:1}}

.kv{display:grid;grid-template-columns:auto 1fr;gap:6px 16px;margin:0;font-size:15px}
.kv dt{color:var(--muted)}.kv dd{margin:0;font-weight:600}

/* ---------- الجداول: بطاقات على الهاتف ---------- */
.t{width:100%;border-collapse:separate;border-spacing:0;background:var(--panel);font-size:14px;border-radius:var(--radius);box-shadow:var(--shadow);overflow:hidden;margin-bottom:12px}
.t th,.t td{padding:11px 12px;border-bottom:0.5px solid var(--line);text-align:start;vertical-align:top}
.t tbody tr:last-child td{border-bottom:0}
.t th{background:var(--thead);font-size:12px;font-weight:600;color:var(--muted);white-space:nowrap}
.t td.n{font-variant-numeric:tabular-nums;white-space:nowrap}
.t td a{font-weight:600;text-decoration:none;color:var(--ink)}
.t td a:hover{color:var(--gold-text)}
.t tbody tr:hover td{background:var(--hover)}
@media(max-width:759px){
.t,.t tbody,.t tr,.t td{display:block;width:100%}
.t{background:none;box-shadow:none;border-radius:0;overflow:visible}
.t thead{display:none}
.t tr{background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow);margin-bottom:10px;padding:8px 0}
.t td{border:0;padding:3px 14px;display:flex;justify-content:space-between;gap:12px}
.t td>*{min-width:0}.t td>form{flex:1 1 auto}
.t tbody tr:hover td{background:none}
.t td::before{content:attr(data-l);color:var(--muted);font-size:13px;flex:none}
.t td[data-l=""]::before{content:none}
.t td.main{font-weight:700;font-size:15px;padding-top:4px;padding-bottom:6px}
}
.entry .card{scroll-margin-top:72px}
.entry-head{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px;align-items:flex-start}
.entry-res{margin-top:10px;padding:10px 12px;background:var(--page);border-radius:var(--r-sm);font-size:14px}
details summary{cursor:pointer;font-weight:600;margin:8px 0}
.empty-note{padding:18px;border-radius:var(--radius);background:var(--panel);color:var(--muted);text-align:center}
.pager{display:flex;gap:8px;margin-top:12px}

/* ---------- صفحات المنصة: الدخول والأنظمة ---------- */
.auth{flex:1;display:flex;flex-direction:column;background:var(--page)}
.auth-top{flex:none;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:12px;padding:48px 16px 24px;text-align:center}
.auth-top img{width:84px;height:auto}
.wordmark{font-family:"Poppins",sans-serif;font-weight:600;font-size:34px!important;letter-spacing:-.01em;color:var(--ink)}
.auth-top b{display:block;font-size:22px;font-weight:700}
.auth-top span{font-size:14px;color:var(--muted)}
.auth-top .org-logo{width:180px;height:auto}
.powered{margin:0;padding:16px;text-align:center;font-size:12px;color:var(--muted)}
.auth-body{flex:1;padding:8px 22px 32px}
.auth-card{width:100%;max-width:400px;margin:0 auto;background:var(--panel);border-radius:20px;padding:24px 20px}
.auth-card h1{margin:0 0 4px;font-size:26px;font-weight:700}
.auth-card .lede{margin:0 0 4px;color:var(--muted);font-size:14px}
.form label{display:block;margin:16px 0 6px;font-weight:600;font-size:14px}
.form input{width:100%;height:52px}
.btn{width:100%;height:52px;margin-top:22px;border:0;border-radius:14px;background:var(--gold);color:var(--onyx);font:inherit;font-size:17px;font-weight:600;cursor:pointer}
.btn:active{filter:brightness(.94)}
.btn:focus-visible{outline-color:var(--ink)}
@media(min-width:760px){.auth{justify-content:center}.auth-top{padding-top:0}.auth-body{flex:none}}

/* شاشة الأنظمة: أيقونات كشاشة iPhone الرئيسية */
.systems{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:20px 4px;margin-top:8px}
.sys{display:flex;flex-direction:column;align-items:center;gap:6px;color:inherit;text-decoration:none;text-align:center;border-radius:16px}
.sys .ico{display:grid;place-items:center;width:62px;height:62px;border-radius:16px;background:var(--squircle);color:var(--gold-hi);box-shadow:0 2px 6px rgba(0,0,0,.16)}
.sys .ico svg{width:30px;height:30px;fill:none;stroke:currentColor;stroke-width:1.6;stroke-linecap:round;stroke-linejoin:round}
.sys:hover .ico{filter:brightness(1.15)}
.sys h2{margin:0;font-size:12px;font-weight:500;line-height:1.35}
.sys.soon-sys{color:var(--muted)}
.sys.soon-sys .ico{background:var(--fill);color:var(--muted);box-shadow:none}
@media(min-width:760px){.systems{grid-template-columns:repeat(auto-fill,minmax(110px,1fr));gap:28px 8px}.sys .ico{width:76px;height:76px;border-radius:19px}.sys h2{font-size:14px}}
.empty{padding:20px;background:var(--panel);border-radius:var(--radius);color:var(--muted)}
.empty p{margin:0}
.soon{padding:24px;background:var(--panel);border-radius:var(--radius);box-shadow:var(--shadow)}
.soon h1{margin:0 0 8px;font-size:24px}
.soon p{margin:0 0 16px;color:var(--muted)}
.soon a{font-weight:600}

@media print{
.appbar,.side,.tabbar,.fab,.sheet,.no-print,.filters,.hero{display:none!important}
body{background:#fff}.h-wrap{max-width:none;padding:0;margin:0!important}
.card,.tile,.list{box-shadow:none;border:1px solid #ccc;break-inside:avoid}
.t{font-size:11px;box-shadow:none;border-radius:0}.t th,.t td{padding:4px 6px;border-bottom:1px solid #ccc}
.t,.t tbody,.t tr,.t td{display:revert}.t thead{display:table-header-group}.t td::before{content:none}
h2.h-sec{break-after:avoid}
}

/* صفحات بسيطة بلا هيكل نظام (الأخطاء) */
.wrap{width:100%;max-width:720px;margin:0 auto;padding:32px 16px}
.title{margin:8px 0 4px;font-size:30px;line-height:1.25;font-weight:700}
.sub{margin:0 0 20px;color:var(--muted)}
.form-card{max-width:440px}
