/* إنجز · injiz.co — light UI, burgundy identity */
@font-face{font-family:Plex;font-weight:400;font-display:swap;src:url(/fonts/plex-ar-400.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E,U+2010-2011,U+204F,U+2E41}
@font-face{font-family:Plex;font-weight:500;font-display:swap;src:url(/fonts/plex-ar-500.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E,U+2010-2011,U+204F,U+2E41}
@font-face{font-family:Plex;font-weight:600;font-display:swap;src:url(/fonts/plex-ar-600.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E,U+2010-2011,U+204F,U+2E41}
@font-face{font-family:Plex;font-weight:700;font-display:swap;src:url(/fonts/plex-ar-700.woff2) format("woff2");unicode-range:U+0600-06FF,U+0750-077F,U+08A0-08FF,U+FB50-FDFF,U+FE70-FEFF,U+200C-200E,U+2010-2011,U+204F,U+2E41}
@font-face{font-family:Plex;font-weight:400;font-display:swap;src:url(/fonts/plex-la-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:Plex;font-weight:500;font-display:swap;src:url(/fonts/plex-la-500.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:Plex;font-weight:600;font-display:swap;src:url(/fonts/plex-la-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}
@font-face{font-family:Plex;font-weight:700;font-display:swap;src:url(/fonts/plex-la-700.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{
  --start:right; --end:left;
  --brand:#7A1E2E; --brand-2:#5E1422; --brand-ink:#7A1E2E; --brand-soft:#F7ECEE; --brand-ring:rgba(122,30,46,.18); --rose:#E8A9B4; --rose-2:#C24A5E;
  --night:#0B0B0B; --night-2:#161616;
  --bg:#F6F5F3; --panel:#FFFFFF; --side:#F1F0ED; --line:#E7E5E1; --line-2:#D6D3CE;
  --ink:#141414; --ink-2:#5F5E5A; --ink-3:#8C8A85;
  --red:#E5484D; --red-soft:#FDECEC; --green:#2F9E5B; --green-soft:#E6F6EC; --orange:#D97A0B; --orange-soft:#FFF2E0; --blue:#2F6FEB; --blue-soft:#EAF1FE;
  --r:14px; --shadow:0 1px 2px rgba(0,0,0,.04),0 6px 24px rgba(0,0,0,.06);
  --safe-b:env(safe-area-inset-bottom,0px); --safe-t:env(safe-area-inset-top,0px);
}
*{box-sizing:border-box;margin:0;padding:0}
html{-webkit-text-size-adjust:100%}
html,body{height:100%}
body{font-family:Plex,system-ui,-apple-system,"Segoe UI",Tahoma,sans-serif;background:var(--bg);color:var(--ink);font-size:14px;line-height:1.55;-webkit-font-smoothing:antialiased;-webkit-tap-highlight-color:transparent}
a{color:inherit;text-decoration:none}
button,input,select,textarea{font:inherit;color:inherit}
button{cursor:pointer;background:none;border:0}
img{max-width:100%}
.ltr{direction:ltr;unicode-bidi:isolate}
.muted{color:var(--ink-3)} .small{font-size:12.5px}
.hidden,[hidden]{display:none!important}
.ic{width:18px;height:18px;flex:none;stroke:currentColor;fill:none;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0)}

/* buttons */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:7px;height:38px;padding:0 16px;border-radius:10px;font-weight:600;font-size:14px;white-space:nowrap;transition:.15s}
.btn-primary{background:var(--brand);color:#fff}
.btn-primary:hover{background:var(--brand-2)}
.btn-dark{background:var(--night);color:#fff}
.btn-ghost{background:#ECEAE6;color:var(--ink)}
.btn-ghost:hover{background:#E3E0DB}
.btn-line{border:1px solid var(--line-2);background:#fff}
.btn-danger{background:var(--red);color:#fff}
.btn-sm{height:32px;padding:0 12px;font-size:13px;border-radius:9px}
.btn-block{width:100%;height:50px;border-radius:14px;font-size:16px}
.icon-btn{width:36px;height:34px;border-radius:9px;display:inline-grid;place-items:center;color:var(--ink-2)}
.icon-btn:hover{background:#EFEDE9;color:var(--ink)}
.icon-btn.accent{color:var(--brand-ink)}

/* pills */
.pill{display:inline-flex;align-items:center;gap:5px;border-radius:99px;padding:2px 10px;font-size:12px;font-weight:500;white-space:nowrap}
.p-green{background:var(--green-soft);color:var(--green)} .p-red{background:var(--red-soft);color:var(--red)} .p-orange{background:var(--orange-soft);color:var(--orange)}
.p-brand{background:var(--brand-soft);color:var(--brand-ink)} .p-gray{background:#EFEDEA;color:var(--ink-2)} .p-blue{background:var(--blue-soft);color:var(--blue)}
.dot{width:8px;height:8px;border-radius:50%;background:var(--brand);flex:none;display:inline-block}
.av{border-radius:50%;display:inline-grid;place-items:center;color:#fff;font-weight:600;flex:none;width:36px;height:36px;font-size:14px;background:var(--night)}

/* forms */
.field{display:block;margin-bottom:14px}
.field>span{display:block;font-size:12.5px;color:var(--ink-2);font-weight:500;margin-bottom:6px}
.input,select.input,textarea.input{width:100%;height:46px;border:1px solid var(--line-2);border-radius:12px;background:#fff;padding:0 14px;font-size:15px;outline:0;transition:.15s}
textarea.input{height:auto;padding:12px 14px;min-height:120px;resize:vertical}
.input:focus{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-ring)}
.input.soft{background:#F2F1EE;border-color:transparent}
.err{color:var(--red);font-size:12.5px;margin-top:6px}
.alert{border-radius:12px;padding:11px 14px;font-size:13.5px;display:flex;gap:9px;align-items:flex-start;margin-bottom:14px}
.alert-red{background:var(--red-soft);color:#A4262C}.alert-brand{background:var(--brand-soft);color:#6B1A28}.alert-green{background:var(--green-soft);color:#1E6B3C}
.switch{position:relative;width:44px;height:26px;flex:none}
.switch input{opacity:0;width:0;height:0}
.switch i{position:absolute;inset:0;border-radius:99px;background:#DEDBD6;transition:.2s}
.switch i:after{content:"";position:absolute;width:22px;height:22px;top:2px;inset-inline-start:2px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.25);transition:.2s}
.switch input:checked+i{background:var(--green)}
.switch input:checked+i:after{inset-inline-start:20px}
.seg{display:inline-flex;background:#ECEAE6;border-radius:10px;padding:3px;gap:2px;flex-wrap:wrap}
.seg a,.seg button{padding:5px 13px;font-size:13px;border-radius:8px;color:var(--ink-2)}
.seg .on{background:#fff;color:var(--ink);font-weight:600;box-shadow:0 1px 3px rgba(0,0,0,.08)}

/* brand */
.brand{display:flex;align-items:center;gap:10px}
.brand img{width:34px;height:auto}
.brand b{font-size:17px;font-weight:700;letter-spacing:-.2px}
.brand small{display:block;font-size:11.5px;color:var(--ink-3);font-weight:400}

/* ========== APP SHELL ========== */
.shell{display:grid;grid-template-columns:256px 400px 1fr;height:100vh;height:100dvh}
.shell.two{grid-template-columns:256px 1fr}
.side{background:var(--side);border-inline-end:1px solid var(--line);padding:18px 12px;display:flex;flex-direction:column;gap:2px;overflow-y:auto}
.side .brand{padding:2px 8px 18px}
.nav-sec{font-size:11.5px;color:var(--ink-3);font-weight:600;padding:16px 10px 6px;display:flex;justify-content:space-between;align-items:center}
.nav-it{display:flex;align-items:center;gap:10px;padding:7px 10px;border-radius:9px;font-size:14px;color:var(--ink)}
.nav-it .ic{color:var(--brand-ink)}
.nav-it .n{margin-inline-start:auto;font-size:12.5px;color:var(--ink-3)}
.nav-it .n.badge{background:var(--red);color:#fff;border-radius:99px;padding:0 7px;line-height:18px;font-size:11px}
.nav-it:hover{background:#E8E6E2}
.nav-it.on{background:#E2DFD9;font-weight:600}
.acc-it{display:flex;align-items:center;gap:9px;padding:6px 10px;border-radius:9px;font-size:13px}
.acc-it:hover{background:#E8E6E2}.acc-it.on{background:#E2DFD9}
.acc-it .av{width:22px;height:22px;font-size:10.5px}
.acc-it .n{margin-inline-start:auto;background:var(--brand);color:#fff;border-radius:99px;font-size:11px;padding:0 7px;line-height:18px;font-weight:600}
.acc-it .em{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;direction:ltr;unicode-bidi:isolate;max-width:150px}
.side-foot{margin-top:auto;border-top:1px solid var(--line);padding-top:10px}

.list{background:var(--panel);border-inline-end:1px solid var(--line);display:flex;flex-direction:column;min-width:0;overflow:hidden}
.list-head{padding:18px 18px 10px;flex:none}
.list-head h1{font-size:23px;font-weight:700;display:flex;align-items:center;justify-content:space-between;gap:8px}
.list-head p{font-size:12.5px;color:var(--ink-3);margin-top:1px}
.search{margin-top:12px;background:#F1F0ED;border-radius:10px;height:36px;display:flex;gap:8px;align-items:center;padding:0 10px;color:var(--ink-3)}
.search input{border:0;background:none;outline:0;flex:1;font-size:14px;color:var(--ink)}
.chips{display:flex;gap:6px;margin-top:10px;overflow-x:auto;scrollbar-width:none}
.chips::-webkit-scrollbar{display:none}
.chips a{font-size:12.5px;padding:4px 11px;border-radius:99px;background:#F1F0ED;color:var(--ink-2);white-space:nowrap}
.chips a.on{background:var(--night);color:#fff}
.msgs{overflow-y:auto;flex:1;padding-bottom:20px}
.msg{display:grid;grid-template-columns:12px 1fr;gap:6px;padding-block:11px 11px;padding-inline:16px 18px;border-bottom:1px solid #F1EFEC;position:relative}
.msg:hover{background:#FAF9F7}
.msg.sel{background:var(--brand);color:#fff;border-radius:12px;margin:2px 8px;border:0;padding-inline-start:10px}
.msg.sel .pv,.msg.sel .tm,.msg.sel .to{color:rgba(255,255,255,.72)}
.msg.sel .dot{background:#fff}
.msg .row{display:flex;justify-content:space-between;align-items:baseline;gap:10px}
.msg .fr{font-size:14.5px;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.msg.read .fr{font-weight:500}
.msg .tm{font-size:12px;color:var(--ink-3);white-space:nowrap}
.msg .sb{font-size:13.5px;margin-top:1px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;text-align:var(--start)}
.msg .pv{font-size:13px;color:var(--ink-2);margin-top:2px;line-height:1.5;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;text-align:var(--start)}
.msg .to{font-size:11px;color:var(--ink-3);margin-top:4px;display:flex;align-items:center;gap:5px}
.msg .tag{width:7px;height:7px;border-radius:50%}
.empty{padding:60px 20px;text-align:center;color:var(--ink-3)}
.empty .ic{width:40px;height:40px;margin:0 auto 10px;color:#CFCBC4}

.reader{background:var(--panel);display:flex;flex-direction:column;min-width:0;overflow:hidden}
.toolbar{display:flex;align-items:center;gap:2px;padding:10px 18px;border-bottom:1px solid var(--line);flex:none}
.toolbar .sp{flex:1}
.toolbar form{display:inline}
.r-scroll{overflow-y:auto;flex:1}
.r-head{padding:24px 32px 16px;display:flex;gap:14px;border-bottom:1px solid var(--line)}
.r-head .av{width:44px;height:44px;font-size:17px}
.r-head .fr{font-size:16px;font-weight:600}
.r-head .meta{font-size:13px;color:var(--ink-2);margin-top:3px;line-height:1.7}
.r-head .dt{margin-inline-start:auto;font-size:12.5px;color:var(--ink-3);text-align:var(--end);white-space:nowrap}
.r-subject{font-size:22px;font-weight:700;padding:22px 32px 0;line-height:1.45}
.r-body{padding:18px 32px 30px}
.r-body iframe{width:100%;border:0;min-height:200px;display:block}
.r-body .plain{white-space:pre-wrap;font-size:15px;line-height:1.9;color:#2A2A2A}
.atts{display:flex;flex-wrap:wrap;gap:10px;padding:0 32px 26px}
.att{border:1px solid var(--line);border-radius:12px;padding:9px 12px;display:flex;gap:10px;align-items:center;font-size:13px;max-width:280px}
.att:hover{border-color:var(--brand)}
.att i{width:32px;height:38px;border-radius:6px;background:var(--night);color:var(--rose);font-style:normal;font-size:9.5px;font-weight:700;display:grid;place-items:center;flex:none}
.att b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;max-width:200px;direction:ltr;text-align:var(--start)}
.reader-empty{flex:1;display:grid;place-items:center;color:var(--ink-3);text-align:center}
.reader-empty img{width:84px;opacity:.22;margin:0 auto 10px}
.notice-card{margin:18px 32px 0;padding:14px 16px;border-radius:14px;background:var(--brand-soft);display:flex;gap:12px;align-items:center;font-size:13.5px}

/* compose */
.compose{max-width:820px;margin:0 auto;width:100%;padding:22px 26px 40px}
.compose .row{display:flex;align-items:center;gap:10px;border-bottom:1px solid var(--line);padding:4px 0}
.compose .row label{width:52px;color:var(--ink-3);font-size:13.5px;flex:none}
.compose .row input,.compose .row select{border:0;outline:0;flex:1;height:44px;background:none;font-size:15px}
.editor{min-height:300px;padding:16px 2px;outline:0;font-size:15px;line-height:1.85}
.editor blockquote{border-inline-start:3px solid var(--brand);padding-inline-start:12px;color:#555;margin:8px 0}
.etools{display:flex;gap:2px;border-bottom:1px solid var(--line);padding:6px 0}

/* ========== MOBILE ========== */
.m-top{display:none}
.tabbar{display:none}
.fab{display:none}
@media (max-width:900px){
  body{background:#fff}
  .shell,.shell.two{display:block;height:auto;min-height:100dvh}
  .side{display:none}
  .list{border:0;min-height:100dvh;padding-bottom:calc(90px + var(--safe-b))}
  .list .msgs{overflow:visible}
  .list-head{padding:calc(10px + var(--safe-t)) 16px 8px}
  .list-head h1{font-size:30px}
  .shell.reading .list{display:none}
  .shell:not(.reading) .reader{display:none}
  .reader{min-height:100dvh;padding-bottom:calc(84px + var(--safe-b))}
  .reader .r-scroll{overflow:visible}
  .toolbar{position:fixed;bottom:0;inset-inline-end:0;inset-inline-start:0;z-index:20;background:rgba(250,250,249,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line);border-bottom:0;justify-content:space-around;padding:10px 10px calc(10px + var(--safe-b))}
  .toolbar .sp,.toolbar .hide-m{display:none}
  .m-top{display:flex;justify-content:space-between;align-items:center;padding:calc(8px + var(--safe-t)) 14px 6px;color:var(--brand-ink);font-size:16px;position:sticky;top:0;background:rgba(255,255,255,.94);backdrop-filter:blur(14px);z-index:10}
  .r-head,.r-subject,.r-body,.atts{padding-inline-start:18px;padding-inline-end:18px}
  .r-subject{font-size:21px;padding-top:6px}
  .notice-card{margin:14px 18px 0}
  .msg{padding-block:11px 11px;padding-inline:14px 16px}
  .msg.sel{background:none;color:inherit;margin:0;border-radius:0;border-bottom:1px solid #F1EFEC;padding-inline-start:14px}
  .msg.sel .pv,.msg.sel .tm,.msg.sel .to{color:var(--ink-3)}
  .tabbar{display:flex;position:fixed;bottom:0;inset-inline-end:0;inset-inline-start:0;z-index:30;height:calc(64px + var(--safe-b));padding-bottom:var(--safe-b);background:rgba(250,250,249,.94);backdrop-filter:blur(18px);border-top:1px solid var(--line);justify-content:space-around;align-items:center}
  .tabbar a{display:flex;flex-direction:column;align-items:center;gap:2px;font-size:10.5px;color:var(--ink-3);position:relative;min-width:64px}
  .tabbar a .ic{width:24px;height:24px}
  .tabbar a.on{color:var(--brand-ink)}
  .tabbar .bd{position:absolute;top:-5px;inset-inline-end:calc(50% + 4px);background:var(--red);color:#fff;font-size:10px;border-radius:99px;padding:0 5px;line-height:16px}
  .shell.reading~.tabbar{display:none}
  .fab{display:grid;position:fixed;inset-inline-end:18px;bottom:calc(80px + var(--safe-b));width:56px;height:56px;border-radius:50%;background:var(--brand);color:#fff;place-items:center;box-shadow:0 10px 24px rgba(122,30,46,.35);z-index:25}
  .fab .ic{width:24px;height:24px}
  .compose{padding:0 16px 40px}
  .hide-mobile{display:none!important}
}
@media (min-width:901px){.only-mobile{display:none!important}}

/* toast */
.toast{position:fixed;inset-inline-end:24px;bottom:24px;z-index:100;max-width:380px;background:rgba(20,20,20,.92);color:#fff;backdrop-filter:blur(14px);border-radius:14px;padding:12px 16px;font-size:14px;display:flex;gap:10px;align-items:center;box-shadow:0 14px 40px rgba(0,0,0,.25);animation:tin .25s ease}
.toast .ic{color:var(--rose)}
@keyframes tin{from{transform:translateY(12px);opacity:0}to{transform:none;opacity:1}}
@media (max-width:900px){.toast{inset-inline-end:12px;inset-inline-start:12px;bottom:calc(76px + var(--safe-b));max-width:none}}
.banner{position:fixed;top:calc(10px + var(--safe-t));left:50%;transform:translateX(-50%);z-index:120;width:min(380px,calc(100% - 20px));background:rgba(246,245,243,.95);backdrop-filter:blur(26px);border-radius:20px;padding:12px 14px;display:flex;gap:11px;box-shadow:0 14px 40px rgba(0,0,0,.18);animation:tin .3s ease}
.banner .lg{width:38px;height:38px;border-radius:10px;background:var(--night);display:grid;place-items:center;flex:none}
.banner .lg img{width:24px}

/* ========== CARDS / ADMIN ========== */
.main{overflow-y:auto;height:100vh;height:100dvh;padding:26px 32px 50px}
.page-top{display:flex;align-items:center;gap:12px;margin-bottom:22px;flex-wrap:wrap}
.page-top h1{font-size:27px;font-weight:700;line-height:1.3}
.page-top p{font-size:13.5px;color:var(--ink-2)}
.page-top .sp{flex:1}
.card{background:var(--panel);border-radius:16px;border:1px solid var(--line)}
.card-h{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:14px 18px;border-bottom:1px solid var(--line)}
.card-h h3{font-size:15.5px;font-weight:600;display:flex;align-items:center;gap:9px}
.kpis{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:18px}
.kpi{padding:15px 18px}
.kpi small{font-size:12.5px;color:var(--ink-2);display:flex;align-items:center;gap:6px}
.kpi small .ic{width:15px;height:15px;color:var(--brand-ink)}
.kpi b{display:block;font-size:25px;font-weight:700;margin-top:4px;line-height:1.3}
.kpi span{font-size:12px;color:var(--ink-3)}
.kpi.dark{background:var(--brand);color:#fff;border-color:var(--brand)}
.kpi.dark small,.kpi.dark span{color:rgba(255,255,255,.75)} .kpi.dark small .ic{color:#fff} .kpi.dark b{color:#fff}
.tbl{width:100%;border-collapse:collapse;font-size:13.5px}
.tbl th{text-align:var(--start);font-weight:500;color:var(--ink-3);font-size:12px;padding:10px 16px;border-bottom:1px solid var(--line);white-space:nowrap}
.tbl td{padding:11px 16px;border-bottom:1px solid #F1EFEC;vertical-align:middle}
.tbl tr:last-child td{border-bottom:0}
.tbl .grp td{background:#FAF9F7;font-size:12.5px;color:var(--ink-2);padding:8px 16px}
.tbl-wrap{overflow-x:auto}
.fav{width:28px;height:28px;border-radius:8px;display:inline-grid;place-items:center;color:#fff;font-size:12px;font-weight:700;flex:none;background:var(--night)}
.bar{height:6px;border-radius:9px;background:#ECEAE6;overflow:hidden;width:110px}
.bar i{display:block;height:100%;border-radius:9px;background:var(--brand)}
.bar i.warn{background:var(--red)}
.grid2{display:grid;grid-template-columns:1.25fr 1fr;gap:16px;align-items:start}
.stack{display:flex;flex-direction:column;gap:16px}
.svc{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:14px 18px;border-bottom:1px solid #F1EFEC}
.svc:last-child{border-bottom:0}
.svc .vi{width:44px;height:44px;border-radius:12px;background:var(--night);display:grid;place-items:center;color:var(--rose)}
.svc b{font-size:15px}.svc .m{font-size:12.5px;color:var(--ink-2);margin-top:3px;display:flex;gap:8px;flex-wrap:wrap}
.ren{text-align:var(--end)}.ren b{font-size:15px;display:block}.ren small{display:block;font-size:12px;color:var(--ink-3)}
.drow{display:grid;grid-template-columns:auto 1fr auto;gap:12px;align-items:center;padding:10px 18px;border-bottom:1px solid #F1EFEC}
.drow:last-child{border-bottom:0}
.drow b{font-size:14px;font-weight:600}.drow small{display:block;font-size:12px;color:var(--ink-3)}
.days{text-align:var(--end);font-size:12px;color:var(--ink-3)}.days b{font-size:17px;display:block;color:var(--ink)}
.days.red b,.days.red{color:var(--red)}.days.orange b,.days.orange{color:var(--orange)}
.ev{display:grid;grid-template-columns:54px 1fr auto;gap:12px;align-items:center;padding:9px 18px;border-bottom:1px solid #F1EFEC}
.ev:last-child{border-bottom:0}
.ev .d{border-radius:12px;background:#F4F3F0;text-align:center;padding:4px 0;line-height:1.25}
.ev .d b{font-size:18px;display:block}.ev .d small{font-size:11px;color:var(--brand-ink);font-weight:600}
.ev .t{font-size:14px;font-weight:500}.ev .s{font-size:12px;color:var(--ink-3)}
.src{display:inline-flex;align-items:center;gap:6px;font-size:11.5px;color:var(--ink-3);font-weight:400}
.logo-chip{width:18px;height:18px;border-radius:5px;color:#fff;font-size:10px;font-weight:700;display:inline-grid;place-items:center}
.sync-it{display:flex;align-items:center;gap:9px;padding:5px 10px;font-size:12.5px}
.sync-it .g{width:7px;height:7px;border-radius:50%;background:var(--green);box-shadow:0 0 0 3px #D9F0E2}
.sync-it .g.off{background:#C9C5BE;box-shadow:0 0 0 3px #EEEBE6}
.sync-it .g.bad{background:var(--red);box-shadow:0 0 0 3px var(--red-soft)}
.sync-it em{margin-inline-start:auto;font-style:normal;color:var(--ink-3);font-size:11px}

/* modal (CSS :target / dialog) */
dialog.modal{border:0;border-radius:20px;padding:0;width:min(520px,calc(100% - 24px));box-shadow:0 30px 80px rgba(0,0,0,.28);margin:auto;color:var(--ink)}
dialog.modal::backdrop{background:rgba(20,20,20,.35);backdrop-filter:blur(3px)}
.modal-h{padding:20px 24px 4px;display:flex;justify-content:space-between;align-items:center}
.modal-h h2{font-size:19px}
.modal-b{padding:12px 24px 6px}
.modal-f{display:flex;gap:10px;padding:16px 24px;background:#FAF9F7;border-top:1px solid var(--line)}
.email-row{display:grid;grid-template-columns:1fr 34px 1.2fr;direction:ltr;border:1px solid var(--line-2);border-radius:12px;overflow:hidden;height:46px}
.email-row:focus-within{border-color:var(--brand);box-shadow:0 0 0 4px var(--brand-ring)}
.email-row input,.email-row select{border:0;outline:0;padding:0 12px;font-size:15px;background:none;min-width:0}
.email-row select{background:#FAF9F7;font-weight:500}
.email-row .at{display:grid;place-items:center;color:var(--ink-3);background:#F3F2EF}
.quota{display:flex;gap:8px}
.quota label{flex:1}
.quota input{display:none}
.quota span{display:block;text-align:center;border:1px solid var(--line-2);border-radius:10px;padding:8px 0;font-size:13.5px;cursor:pointer}
.quota input:checked+span{border-color:var(--brand);background:var(--brand-soft);color:var(--brand-ink);font-weight:600}
.strength{display:flex;gap:4px;margin-top:8px}.strength i{flex:1;height:4px;border-radius:9px;background:#E6E3DE}
.strength i.on{background:var(--green)}
.row-tg{display:flex;justify-content:space-between;align-items:center;padding:12px 0;border-top:1px solid #F1EFEC;font-size:14px}
.menu{position:relative;display:inline-block}
.menu>div{position:absolute;inset-inline-end:0;top:100%;z-index:30;min-width:200px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow);padding:6px;display:none}
.menu.open>div{display:block}
.menu>div button,.menu>div a{display:flex;width:100%;gap:8px;align-items:center;padding:8px 10px;border-radius:8px;font-size:13.5px;text-align:var(--start)}
.menu>div button:hover,.menu>div a:hover{background:#F4F3F0}
.menu>div .danger{color:var(--red)}

@media (max-width:1100px){.kpis{grid-template-columns:repeat(2,1fr)}.grid2{grid-template-columns:1fr}}
@media (max-width:900px){
  .main{height:auto;min-height:100dvh;padding:calc(14px + var(--safe-t)) 16px calc(90px + var(--safe-b))}
  .page-top h1{font-size:28px}
  .kpis{gap:10px}.kpi{padding:12px 14px}.kpi b{font-size:21px}
  .tbl .hide-m{display:none}
}

/* ========== AUTH / GATE / ERRORS ========== */
.auth{min-height:100dvh;display:grid;grid-template-columns:1fr 1fr;background:#fff}
.auth-art{background:var(--night);color:#fff;position:relative;overflow:hidden;display:flex;flex-direction:column;justify-content:space-between;padding:40px 48px}
.auth-art:before{content:"";position:absolute;width:520px;height:520px;border-radius:50%;background:radial-gradient(circle,rgba(122,30,46,.6),transparent 65%);top:-140px;inset-inline-end:-160px}
.auth-art .big{font-size:40px;font-weight:700;line-height:1.35;position:relative}
.auth-art .big em{font-style:normal;color:var(--rose)}
.auth-art p{color:rgba(255,255,255,.7);font-size:15px;margin-top:12px;max-width:440px;position:relative}
.auth-form{display:flex;align-items:center;justify-content:center;padding:40px 24px}
.auth-form .box{width:100%;max-width:380px}
.auth-form h1{font-size:28px;font-weight:700;margin:22px 0 4px}
.auth-mark{width:64px;height:64px;border-radius:18px;display:block;box-shadow:0 10px 24px rgba(122,30,46,.25)}
.auth-mark img{width:100%;height:100%;display:block}
.feat{display:flex;gap:10px;align-items:center;font-size:13.5px;color:rgba(255,255,255,.8);margin-top:10px;position:relative}
.feat .ic{color:var(--rose)}
@media (max-width:900px){.auth{display:block}.auth-art{display:none}.auth-form{min-height:100dvh;padding-top:calc(40px + var(--safe-t))}.auth-form .box{text-align:center}.auth-mark{margin:0 auto}.auth-form .field{text-align:var(--start)}}

#pwa-gate{position:fixed;inset:0;z-index:1000;background:linear-gradient(180deg,#F7ECEE,#fff 55%);display:none;flex-direction:column;align-items:center;text-align:center;padding:calc(50px + var(--safe-t)) 26px 30px;overflow:auto}
html.gate #pwa-gate{display:flex}
html.gate body>*:not(#pwa-gate){display:none!important}
#pwa-gate .auth-mark{width:88px;height:88px;border-radius:24px;box-shadow:0 16px 34px rgba(0,0,0,.18)}
#pwa-gate .auth-mark img{width:100%}
#pwa-gate h1{font-size:25px;margin-top:22px}
#pwa-gate p{color:var(--ink-2);font-size:14.5px;line-height:1.75;margin-top:6px;max-width:330px}
.steps{width:100%;max-width:360px;margin-top:22px;background:#fff;border:1px solid var(--line);border-radius:18px;padding:4px 16px;text-align:var(--start)}
.step{display:flex;gap:12px;align-items:center;padding:12px 0;border-bottom:1px solid #F1EFEC;font-size:14px}
.step:last-child{border:0}
.step i{font-style:normal;width:24px;height:24px;border-radius:50%;background:var(--brand-soft);color:var(--brand-ink);font-size:12.5px;font-weight:700;display:grid;place-items:center;flex:none}
.step .g{margin-inline-start:auto;width:32px;height:32px;border-radius:9px;background:#F3F2EF;display:grid;place-items:center;color:var(--brand-ink)}
.gate-arrow{margin-top:auto;padding-top:24px;color:var(--brand-ink);font-weight:600;font-size:13px;animation:bob 1.4s ease-in-out infinite}
@keyframes bob{50%{transform:translateY(6px)}}

.err-page{min-height:100dvh;display:flex;flex-direction:column;background:#fff}
.err-top{display:flex;justify-content:space-between;align-items:center;padding:22px 40px}
.err-wrap{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:40px;max-width:1180px;margin:0 auto;padding:20px 40px 60px;width:100%}
.err-art{position:relative;aspect-ratio:1/1;max-width:460px;width:100%;margin:0 auto}
.err-art .code{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;font-size:150px;font-weight:700;color:var(--night);letter-spacing:-6px;direction:ltr}
.err-art .code span{color:var(--brand)}
.err-art .ring{position:absolute;inset:8%;border-radius:50%;background:radial-gradient(circle at 50% 40%,var(--brand-soft),transparent 70%)}
.err-art svg.ill{position:absolute;inset:0;width:100%;height:100%}
.err-txt .kicker{display:inline-flex;gap:6px;align-items:center;background:var(--brand-soft);color:var(--brand-ink);padding:4px 12px;border-radius:99px;font-size:12.5px;font-weight:600}
.err-txt h1{font-size:44px;line-height:1.3;margin:16px 0 6px;font-weight:700}
.err-txt h1 em{font-style:normal;color:var(--brand)}
.err-txt h2{font-size:22px;font-weight:600;color:var(--brand-ink)}
.err-txt p{color:var(--ink-2);font-size:15.5px;line-height:1.9;margin-top:12px;max-width:470px}
.err-actions{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap}
.err-actions .btn{height:48px;padding:0 24px;border-radius:14px;font-size:15px}
.err-foot{text-align:center;padding:18px;color:var(--ink-3);font-size:12.5px}
.err-foot code{direction:ltr;unicode-bidi:isolate;background:#F3F2EF;border-radius:6px;padding:1px 6px}
@media (max-width:900px){.err-top{padding:calc(16px + var(--safe-t)) 18px 0}.err-wrap{grid-template-columns:1fr;text-align:center;padding:10px 22px 40px;gap:10px}.err-art{max-width:280px}.err-art .code{font-size:96px}.err-txt h1{font-size:32px}.err-txt p{margin-inline:auto}.err-actions{justify-content:center}}


.c-top{position:sticky;top:0;z-index:10;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:calc(12px + var(--safe-t)) 24px 12px;background:rgba(255,255,255,.95);backdrop-filter:blur(14px);border-bottom:1px solid var(--line)}
.c-top>a{color:var(--brand-ink);font-size:15px}
.c-title{flex:1;text-align:center;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}
@media (max-width:900px){.c-top{padding-inline:14px}}

@media (max-width:900px){
  .shell.reading~.fab{display:none}
  .acc-row{grid-template-columns:auto 1fr!important;row-gap:10px}
  .acc-row>.switch{grid-column:1}
  .acc-row>div:last-child{justify-content:flex-end}
}

.auth-art{background:linear-gradient(160deg,#2A0A10,#0B0B0B 70%)}

/* decoy page (/admin) — إنجز identity */
.decoy-body{background:#1B060B}
.decoy{min-height:100dvh;color:#fff;display:flex;flex-direction:column;background:radial-gradient(1200px 700px at 15% 30%,#5E1422 0%,#2A0A10 55%,#140407 100%)}
.decoy .err-top .home{border:1px solid rgba(232,169,180,.5);color:var(--rose);border-radius:12px;height:42px;padding:0 18px;display:inline-flex;gap:8px;align-items:center;font-size:13px}
.decoy-wrap{flex:1;display:grid;grid-template-columns:1fr 1fr;align-items:center;gap:30px;max-width:1200px;width:100%;margin:0 auto;padding:10px 40px 50px}
.decoy .txt{text-align:center;max-width:520px;margin:0 auto}
.decoy .tag{display:inline-flex;gap:6px;align-items:center;border:1px solid rgba(232,169,180,.35);color:var(--rose);border-radius:99px;padding:5px 14px;font-size:13px}
.decoy h1{font-size:52px;font-weight:700;margin-top:18px;line-height:1.3}
.decoy h1 em{font-style:normal;color:var(--rose)}
.decoy h2{font-size:34px;color:var(--rose);margin-top:4px}
.decoy p{color:rgba(255,255,255,.8);font-size:16px;line-height:1.95;margin-top:14px}
.btn-rose{background:var(--rose);color:#3A0B15;margin-top:30px;height:58px;width:100%;max-width:420px;border-radius:16px;font-size:17px}
.btn-rose:hover{background:#F2C4CC}
.decoy .note{margin-top:16px;font-size:12.5px;color:rgba(255,255,255,.45);display:flex;gap:6px;justify-content:center;align-items:center}
.decoy .art img{width:100%;max-width:520px;display:block;margin:0 auto;filter:drop-shadow(0 30px 60px rgba(0,0,0,.35))}
@media (max-width:900px){.decoy-wrap{grid-template-columns:1fr;padding:0 22px 40px}.decoy .art{order:-1}.decoy .art img{max-width:300px}.decoy h1{font-size:34px}.decoy h2{font-size:26px}}

/* settings */
.settings{display:grid;grid-template-columns:220px 1fr;gap:18px;align-items:start}
.set-tabs{display:flex;flex-direction:column;gap:2px;position:sticky;top:10px}
.set-tabs .nav-it.on{background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.06)}
.set-body{overflow:hidden}
.set-pad{padding:18px}
.g2{display:grid;grid-template-columns:1fr 1fr;gap:12px}
.g3{display:grid;grid-template-columns:2fr 1fr 1fr;gap:12px}
.test-box{margin-top:14px;background:#FAF9F7;border:1px dashed var(--line-2);border-radius:12px;padding:12px 14px}
code.cron{display:block;background:#fff;border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:12.5px;word-break:break-all;text-align:var(--end)}
a.sync-it:hover{background:#E8E6E2;border-radius:8px}
@media (max-width:900px){.settings{grid-template-columns:1fr}.set-tabs{flex-direction:row;overflow-x:auto;position:static;scrollbar-width:none}.set-tabs .nav-it{white-space:nowrap}.g2,.g3{grid-template-columns:1fr}}

/* installer */
.install{min-height:100dvh;display:grid;place-items:center;padding:30px 16px;background:radial-gradient(900px 500px at 50% -10%,var(--brand-soft),var(--bg) 70%)}
.install-box{width:100%;max-width:520px;background:#fff;border:1px solid var(--line);border-radius:24px;padding:30px 28px;box-shadow:var(--shadow)}
.install-box h1{text-align:center;font-size:26px}
.install-box>p{text-align:center}
.stepper{display:flex;gap:8px;margin-bottom:20px}
.stepper div{flex:1;display:flex;align-items:center;gap:7px;font-size:12.5px;color:var(--ink-3);border-bottom:3px solid var(--line);padding-bottom:8px}
.stepper i{font-style:normal;width:22px;height:22px;border-radius:50%;background:#EFEDEA;display:grid;place-items:center;font-size:11px;font-weight:700}
.stepper .on{color:var(--brand);border-color:var(--brand);font-weight:600}.stepper .on i{background:var(--brand);color:#fff}
.stepper .done{border-color:var(--green)}.stepper .done i{background:var(--green);color:#fff}

/* landing (single section) */
.landing{min-height:100dvh;display:flex;flex-direction:column;background:radial-gradient(900px 520px at 50% 0%,var(--brand-soft),transparent 70%),#fff;overflow:hidden}
.l-top{display:flex;justify-content:space-between;align-items:center;padding:calc(18px + var(--safe-t)) 40px 0;max-width:1200px;width:100%;margin:0 auto}
.l-hero{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center;padding:30px 20px 50px;max-width:980px;margin:0 auto;width:100%}
.l-mark{width:76px;margin-bottom:18px}
.l-kicker{display:inline-flex;gap:7px;align-items:center;background:var(--brand-soft);color:var(--brand);border-radius:99px;padding:5px 14px;font-size:13px;font-weight:600}
.l-hero h1{font-size:54px;line-height:1.25;margin-top:18px;font-weight:700;letter-spacing:-.5px}
.l-hero h1 em{font-style:normal;color:var(--brand)}
.l-hero>p{color:var(--ink-2);font-size:17px;line-height:1.9;margin-top:14px}
.l-cta{display:flex;gap:10px;margin-top:26px;flex-wrap:wrap;justify-content:center}
.l-cta .btn{height:52px;padding:0 26px;border-radius:15px;font-size:16px}
.l-sites{margin-top:44px;width:100%}
.l-sites-h{display:flex;align-items:center;gap:14px;color:var(--ink-3);font-size:13px;margin-bottom:16px}
.l-sites-h span{flex:1;height:1px;background:var(--line)}
.l-sites-h b{font-weight:600;color:var(--ink-2)}
.l-grid{display:flex;flex-wrap:wrap;gap:10px;justify-content:center}
.l-site{display:inline-flex;align-items:center;gap:9px;background:#fff;border:1px solid var(--line);border-radius:14px;padding-block:8px 8px;padding-inline:14px 10px;font-size:14.5px;font-weight:500;box-shadow:0 1px 2px rgba(0,0,0,.03)}
.l-site .fav{width:26px;height:26px;border-radius:8px;font-size:12px}
.l-site.more{color:var(--brand);background:var(--brand-soft);border-color:transparent}
@media (max-width:900px){.l-top{padding:calc(14px + var(--safe-t)) 18px 0}.l-hero h1{font-size:34px}.l-hero>p{font-size:15.5px}.l-mark{width:60px}.l-site{font-size:13.5px}}

html[dir=ltr]{--start:left;--end:right}
html[dir=ltr] .flip{display:inline-block;transform:scaleX(-1)}

/* language switch */
.lang-sw{display:inline-flex;align-items:center;gap:6px;height:32px;padding:0 12px;border-radius:9px;border:1px solid var(--line-2);background:#fff;font-size:13px;color:var(--ink-2);white-space:nowrap}
.lang-sw:hover{border-color:var(--brand);color:var(--brand)}
.lang-sw span{font-family:Plex,system-ui,sans-serif}
.lang-sw.dark{background:transparent;border-color:rgba(255,255,255,.3);color:#fff}
.lang-sw.nav{border:0;background:none;height:auto;padding:7px 10px;font-size:14px;color:var(--ink);width:100%}
.lang-sw.nav .ic{color:var(--brand-ink)}
.lang-sw.nav:hover{background:#E8E6E2}
html[dir=ltr] body{font-family:Plex,system-ui,-apple-system,"Segoe UI",sans-serif}
html[dir=ltr] .err-art .code,html[dir=ltr] .email-row{direction:ltr}
.auth-form{position:relative}
.auth-lang{position:absolute;top:calc(18px + var(--safe-t));inset-inline-end:18px}
/* manual subscriptions */
.svc.sub{grid-template-columns:auto 1fr auto auto}
.svc.sub.off{opacity:.55}
.svc.sub b{margin-inline-end:4px}
.fav.lg{width:44px;height:44px;border-radius:12px;font-size:18px}
.sub-desc{font-size:13.5px;color:var(--ink);margin-top:4px;line-height:1.55}
.svc .m a{text-decoration:none}
.chk{display:inline-flex;align-items:center;gap:8px;font-size:13.5px;cursor:pointer}
.chk input{width:17px;height:17px;accent-color:var(--brand)}
@media (max-width:700px){.svc.sub{grid-template-columns:auto 1fr auto}.svc.sub .ren{grid-column:2/3;text-align:var(--start);display:flex;gap:8px;align-items:baseline;flex-wrap:wrap}.svc.sub .menu{grid-row:1;grid-column:3}}
