@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cairo/cairo-arabic-400-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cairo/cairo-arabic-500-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cairo/cairo-arabic-600-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cairo/cairo-arabic-700-normal.woff2) format('woff2'); unicode-range: U+0600-06FF,U+0750-077F,U+0870-088E,U+0890-0891,U+0897-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: 'Cairo'; font-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/cairo/cairo-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/cairo/cairo-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/cairo/cairo-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Cairo'; font-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/cairo/cairo-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 400; font-display: swap; src: url(../fonts/poppins/poppins-latin-400-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 500; font-display: swap; src: url(../fonts/poppins/poppins-latin-500-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 600; font-display: swap; src: url(../fonts/poppins/poppins-latin-600-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,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-style: normal; font-weight: 700; font-display: swap; src: url(../fonts/poppins/poppins-latin-700-normal.woff2) format('woff2'); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

/* =====================================================================
   [بوابة الحضور] شاشة ملء الشاشة (فاتحة زي باقي السيستم — لحد ما يبقى فيه اختيار الوضع الغامق للسيستم كله — والألوان بتتكلم: أخضر / أصفر / برتقاني / أزرق / أحمر)
   ===================================================================== */
:root { --st-bg: #f4f5f7; --st-panel: #ffffff; --st-line: #e6e8ec; --st-text: #1d2127; --st-muted: #636b78; --st-ok: #16a34a; --st-warn: #eab308; --st-already: #f97316; --st-choose: #3b82f6; --st-bad: #ef4444; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body.st-body { background: var(--st-bg); color: var(--st-text); font-family: 'Poppins', 'Cairo', system-ui, sans-serif; overflow: hidden; -webkit-font-smoothing: antialiased; }
[dir="rtl"] body.st-body { font-family: 'Cairo', 'Poppins', system-ui, sans-serif; }
button { font: inherit; cursor: pointer; }
.st-app { display: grid; grid-template-rows: auto 1fr auto; height: 100vh; height: 100dvh; }
.st-top { display: flex; align-items: center; gap: 16px; padding: 14px 22px; border-bottom: 1px solid var(--st-line); background: #fff; }
.st-brand { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 0; }
.st-brand img { width: 40px; height: 40px; border-radius: 10px; object-fit: contain; background: #fff; }
.st-brand b { display: block; font-size: 16px; }
.st-brand small { display: block; color: var(--st-muted); font-size: 12.5px; }
.st-top-mid { display: flex; align-items: center; gap: 18px; font-size: 14px; color: var(--st-muted); }
.st-count b { color: var(--st-text); font-size: 18px; }
.st-count .fa { color: var(--st-ok); }
.st-clock { font-size: 18px; font-weight: 700; color: var(--st-text); }
.st-top-end { display: flex; align-items: center; gap: 8px; flex: 1 1 0; justify-content: flex-end; }
.st-ic { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--st-line); background: var(--st-panel); color: var(--st-text); display: inline-flex; align-items: center; justify-content: center; text-decoration: none; font-size: 16px; }
.st-ic:hover { border-color: #c9ced6; }
.st-ic.is-off { color: var(--st-bad); }
.st-net { color: var(--st-bad); font-size: 13px; font-weight: 700; }
.st-main { display: grid; grid-template-columns: minmax(0, 1fr) 360px; min-height: 0; }
.st-stage { display: flex; align-items: center; justify-content: center; padding: 24px; min-height: 0; transition: background .25s ease; }
.st-side { background: #fafbfc; border-inline-start: 1px solid var(--st-line); padding: 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.st-side-h { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--st-muted); text-transform: none; margin-top: 4px; }
.st-side-h em { font-style: normal; background: var(--st-bad); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.st-side-h[hidden] { display: none; }
.st-side-h.st-alerts-head { color: #b3262b; }
.st-foot { background: #fff; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 22px; border-top: 1px solid var(--st-line); }
#stManual { display: flex; align-items: center; gap: 10px; flex: 1 1 auto; max-width: 520px; color: var(--st-muted); }
#stManual input { flex: 1 1 auto; height: 38px; border-radius: 10px; border: 1px solid var(--st-line); background: var(--st-panel); color: var(--st-text); padding: 0 12px; font-size: 14px; outline: none; }
#stManual input:focus { border-color: #9aa0a8; }
.st-pw { color: #9aa0a8; font-size: 12px; }

/* الانتظار */
.st-idle { text-align: center; }
.st-idle-ic { width: 150px; height: 150px; border-radius: 40px; display: inline-flex; align-items: center; justify-content: center; font-size: 84px; color: #fff; background: radial-gradient(circle at 30% 20%, #2a2d33, #141414); box-shadow: 0 18px 40px rgba(20,20,20,.18); animation: st-breathe 2.6s ease-in-out infinite; }
.st-idle h2 { margin: 26px 0 6px; font-size: 34px; font-weight: 800; }
.st-idle p { margin: 0; color: var(--st-muted); font-size: 17px; }
@keyframes st-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.st-busy { display: flex; align-items: center; justify-content: center; }
.st-spin { width: 54px; height: 54px; border-radius: 50%; border: 5px solid #e6e8ec; border-top-color: #141414; animation: st-rot .8s linear infinite; }
@keyframes st-rot { to { transform: rotate(360deg); } }

/* الكارت الكبير */
.st-card { width: min(720px, 100%); background: var(--st-panel); border: 2px solid var(--st-line); border-radius: 28px; padding: 30px 32px; box-shadow: 0 24px 60px rgba(20,20,20,.08); animation: st-in .22s ease-out; }
@keyframes st-in { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
.st-state { display: inline-flex; align-items: center; gap: 10px; font-size: 22px; font-weight: 800; padding: 8px 18px; border-radius: 999px; margin-bottom: 22px; }
.st-who { display: flex; align-items: center; gap: 20px; }
.st-who h2 { margin: 0; font-size: 40px; font-weight: 800; line-height: 1.2; word-break: break-word; }
.st-who small { color: var(--st-muted); font-size: 16px; }
.st-face { position: relative; flex: 0 0 auto; width: 104px; height: 104px; border-radius: 28px; background: #141414; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 36px; font-weight: 800; overflow: hidden; }
.st-face img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.st-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.st-chips span { display: inline-flex; align-items: center; gap: 8px; background: #f4f5f7; border: 1px solid var(--st-line); border-radius: 12px; padding: 8px 14px; font-size: 16px; font-weight: 600; }
.st-chips .fa { color: var(--st-muted); }
.st-warns { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 8px; }
.st-warns li { display: flex; align-items: center; gap: 10px; background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; border-radius: 12px; padding: 10px 14px; font-size: 18px; font-weight: 700; }
.st-why { margin: 18px 0 0; font-size: 19px; color: #1d2127; }
.st-hint { margin: 12px 0 0; font-size: 15px; color: var(--st-muted); }
.st-btn { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; border: 0; border-radius: 12px; padding: 12px 18px; font-weight: 800; font-size: 15px; background: #141414; color: #fff; text-decoration: none; }
.st-btn.is-light { background: #f1f2f4; color: #1d2127; margin-top: 0; padding: 9px 13px; font-size: 13.5px; }
.st-btn.is-done { background: #141414; color: #fff; margin-top: 0; padding: 9px 14px; font-size: 13.5px; }
.st-stage.is-ok { background: radial-gradient(ellipse at center, rgba(22,163,74,.12), transparent 70%); }
.st-stage.is-ok .st-state { background: #e7f6ec; color: #177245; }
.st-stage.is-ok .st-card { border-color: rgba(22,163,74,.55); }
.st-stage.is-warn { background: radial-gradient(ellipse at center, rgba(234,179,8,.16), transparent 70%); }
.st-stage.is-warn .st-state { background: #e7f6ec; color: #177245; }
.st-stage.is-warn .st-card { border-color: rgba(234,179,8,.6); }
.st-stage.is-already { background: radial-gradient(ellipse at center, rgba(249,115,22,.16), transparent 70%); }
.st-stage.is-already .st-state { background: #fff1e6; color: #c2410c; }
.st-stage.is-already .st-card { border-color: rgba(249,115,22,.55); }
.st-stage.is-choose { background: radial-gradient(ellipse at center, rgba(59,130,246,.16), transparent 70%); }
.st-stage.is-choose .st-state { background: #e8eefb; color: #1d4fb8; }
.st-stage.is-choose .st-card { border-color: rgba(59,130,246,.55); }
.st-stage.is-bad { background: radial-gradient(ellipse at center, rgba(239,68,68,.12), transparent 70%); }
.st-stage.is-bad .st-state { background: #fbeaea; color: #b3262b; }
.st-stage.is-bad .st-card { border-color: rgba(239,68,68,.65); }

/* محتاج تدخّل */
.st-alerts { display: grid; gap: 10px; }
.st-alert { background: var(--st-panel); border: 1px solid var(--st-line); border-radius: 16px; padding: 12px; animation: st-in .2s ease-out; }
.st-alert.is-bad { border-color: rgba(239,68,68,.7); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.st-alert.is-choose { border-color: rgba(59,130,246,.7); box-shadow: 0 0 0 3px rgba(59,130,246,.12); }
.st-alert-h { display: flex; align-items: center; gap: 10px; }
.st-alert-h .st-face { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.st-alert-h b { display: block; font-size: 15px; }
.st-alert-h small { color: var(--st-muted); font-size: 12px; }
.st-alert p { margin: 8px 0 0; font-size: 13px; color: #4b5260; }
.st-alert .st-alert-t { font-weight: 800; color: #b3262b; font-size: 14px; }
.st-alert-a { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; justify-content: flex-end; }
.st-subs { display: grid; gap: 8px; margin-top: 8px; }
.st-sub { text-align: start; background: #f7f8fa; color: #1d2127; border: 1px solid var(--st-line); border-radius: 12px; padding: 10px 12px; }
.st-sub b { display: block; font-size: 14px; }
.st-sub small { color: var(--st-muted); font-size: 12px; }
.st-sub.is-sug { border-color: rgba(59,130,246,.8); }
.st-sub:disabled { opacity: .45; cursor: not-allowed; }
.st-sub:not(:disabled):hover { border-color: #3b82f6; }
.st-app.is-alarm .st-top { animation: st-flash 1.2s ease-in-out infinite; }
@keyframes st-flash { 0%, 100% { background: #fff; } 50% { background: #fde2e2; } }

/* آخر الحضور */
.st-last { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.st-last li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: 10px; background: #fff; border: 1px solid #eef0f2; font-size: 13.5px; }
.st-last li::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); flex: 0 0 auto; }
.st-last li.is-warn::before { background: var(--st-warn); }
.st-last li span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-last li em { font-style: normal; color: var(--st-muted); font-size: 11.5px; }
.st-last li small { color: var(--st-muted); }

/* شاشة البداية */
.st-start { position: fixed; inset: 0; z-index: 10; display: flex; align-items: center; justify-content: center; background: rgba(244,245,247,.94); backdrop-filter: blur(6px); transition: opacity .35s ease; padding: 20px; }
.st-start.is-gone { opacity: 0; pointer-events: none; }
.st-start-box { max-width: 560px; text-align: center; }
.st-start-ic { display: inline-flex; width: 96px; height: 96px; border-radius: 28px; background: #141414; color: #fff; align-items: center; justify-content: center; font-size: 52px; }
.st-start h1 { font-size: 30px; margin: 20px 0 10px; }
.st-start p { color: #4b5260; font-size: 16px; line-height: 1.8; margin: 0 0 22px; }
.st-go { border: 0; border-radius: 16px; background: var(--st-ok); color: #fff; font-size: 18px; font-weight: 800; padding: 16px 30px; }
.st-start small { display: block; margin-top: 12px; color: var(--st-muted); font-size: 13px; }

/* [بوابة الحضور] التابات: محتاج تدخّل / ملاحظات / آخر الحضور */
.st-tabs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; background: #fff; border: 1px solid var(--st-line); border-radius: 14px; padding: 4px; position: sticky; top: -16px; z-index: 2; box-shadow: 0 1px 2px rgba(20,20,20,.04), 0 6px 16px -10px rgba(20,20,20,.18); }
.st-tabs button {
    --tc: #3d434d; --tb: rgba(61,67,77,.08);
    position: relative; border: 0; background: transparent; border-radius: 10px; padding: 9px 6px 10px; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 5px; color: var(--st-muted); transition: background .18s ease, color .18s ease;
}
.st-tabs .is-need { --tc: #c62828; --tb: rgba(239,68,68,.09); }
.st-tabs .is-note { --tc: #c2410c; --tb: rgba(249,115,22,.1); }
.st-tabs button > i { width: 30px; height: 30px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; font-size: 14px; background: #f2f3f5; color: #8a919c; transition: background .18s ease, color .18s ease; }
.st-tabs button > span { display: block; max-width: 100%; font-size: 12.5px; font-weight: 700; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-tabs button:hover { color: var(--st-text); }
.st-tabs button.is-on { background: var(--tb); color: var(--tc); }
.st-tabs button.is-on > i { background: var(--tc); color: #fff; box-shadow: 0 6px 14px -6px var(--tc); }
.st-tabs button.is-on::after { content: ''; position: absolute; left: 28%; right: 28%; bottom: 3px; height: 3px; border-radius: 3px; background: var(--tc); }
.st-tabs em { position: absolute; top: 3px; inset-inline-start: calc(50% + 7px); font-style: normal; min-width: 20px; height: 20px; border-radius: 999px; padding: 0 6px; font-size: 11.5px; font-weight: 800; line-height: 20px; text-align: center; background: #9aa0a8; color: #fff; box-shadow: 0 0 0 2px #fff; }
.st-tabs em[hidden] { display: none; }
.st-tabs .is-need em { background: var(--st-bad); }
.st-tabs .is-note em { background: var(--st-already); }
.st-pane[hidden] { display: none; }
.st-pane-a { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.st-pane-a:empty, .st-pane-a .st-btn[hidden] { display: none; }
.st-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 28px 10px; color: #9aa0a8; font-size: 13.5px; text-align: center; }
.st-empty .fa { font-size: 26px; color: #c9ced6; }
.st-alert.is-note { border-color: rgba(249,115,22,.45); }
.st-alert.is-note.is-warn { border-color: rgba(234,179,8,.6); }
.st-alert .st-alert-t.is-ok { color: #177245; }
.st-alert .st-alert-t.is-already { color: #c2410c; }
.st-alert-w { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.st-alert-w li { display: flex; align-items: center; gap: 8px; background: #fffbeb; color: #92400e; border: 1px solid #fcd34d; border-radius: 10px; padding: 7px 10px; font-size: 13.5px; font-weight: 700; }
.st-alert .st-alert-s { font-size: 12px; color: var(--st-muted); }
.st-alert-h > div { min-width: 0; flex: 1 1 auto; }
.st-late { display: inline-block; margin-top: 3px; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: #b3262b; border-radius: 999px; padding: 1px 8px; }
.st-alert.is-note .st-late { background: #c2410c; }
.st-alert.is-late { animation: st-late 2.4s ease-in-out infinite; }
@keyframes st-late { 0%, 100% { box-shadow: 0 0 0 3px rgba(239,68,68,.12); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,.22); } }
.st-alert.is-note.is-late { animation: none; }

/* الشارة اللي فوق (بتتشاف من بعيد) + الشريط اللي تحت في الموبايل */
.st-pend { border: 1px solid var(--st-line); background: #fff; border-radius: 999px; padding: 6px 12px; display: inline-flex; align-items: center; gap: 12px; font-size: 13.5px; font-weight: 700; color: var(--st-text); }
.st-pend[hidden] { display: none !important; }
.st-pend span { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.st-pend .is-need { color: #b3262b; }
.st-pend .is-note { color: #c2410c; }
.st-pend b { font-size: 16px; }
.st-pend.is-need { border-color: rgba(239,68,68,.55); box-shadow: 0 0 0 3px rgba(239,68,68,.12); }
.st-mbar { display: none !important; }

/* آخر الحضور: التفاصيل لما تدوس على الاسم */
.st-last li { padding: 0; display: block; }
.st-last li::before { display: none; }
.st-last-b { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border: 0; background: transparent; color: inherit; text-align: start; font-size: 13.5px; }
.st-last-b::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--st-ok); flex: 0 0 auto; }
.st-last li.is-warn .st-last-b::before { background: var(--st-warn); }
.st-last-b span { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.st-last-d { padding: 0 10px 9px 26px; font-size: 12.5px; color: #4b5260; }
[dir="rtl"] .st-last-d { padding: 0 26px 9px 10px; }
.st-last-d p { margin: 2px 0 0; }
.st-last-d small { color: var(--st-muted); }
.st-last-d ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.st-last-d li { border: 0 !important; background: #fffbeb !important; color: #92400e; border-radius: 8px; padding: 5px 8px !important; font-weight: 700; }
.st-last li.is-open { border-color: #d5d9df; }
.st-last li.st-last-e { border: 0; background: transparent; }

@media (max-width: 900px) {
    body.st-body { overflow: auto; }
    /* الموبايل/التابلت: الشريط اللي تحت بالعدادات (القايمة تحت الكارت ومش باينة من غير scroll) + الكارت أصغر لما فيه حاجات مستنية */
    .st-top-mid .st-pend { display: none !important; }
    .st-mbar:not([hidden]) { display: flex !important; position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50; justify-content: center; padding: 12px 16px; box-shadow: 0 10px 30px rgba(20,20,20,.18); }
    .st-app.has-pend { padding-bottom: 76px; }
    .st-app.has-pend .st-stage { padding: 14px; }
    .st-app.has-pend .st-card { padding: 16px; }
    .st-app.has-pend .st-who h2 { font-size: 22px; }
    .st-app.has-pend .st-stage .st-face { width: 56px; height: 56px; font-size: 20px; border-radius: 16px; }
    .st-app.has-pend .st-idle-ic { width: 96px; height: 96px; font-size: 52px; border-radius: 28px; }
    .st-app.has-pend .st-idle h2 { font-size: 24px; margin-top: 14px; }
    .st-tabs { top: 0; }
    .st-app { height: auto; min-height: 100vh; }
    .st-main { grid-template-columns: 1fr; }
    .st-side { border-inline-start: 0; border-top: 1px solid var(--st-line); }
    .st-top-mid .st-clock { display: none; }
    .st-who h2 { font-size: 28px; }
    .st-face { width: 76px; height: 76px; font-size: 26px; }
    .st-card { padding: 22px; }
}
@media (max-width: 600px) {
    /* الهيدر في الموبايل: اسم الجيم والزراير في سطر ، والعداد والساعة تحتهم */
    .st-top { flex-wrap: wrap; gap: 8px 12px; padding: 12px 14px; }
    .st-top-mid { order: 3; flex: 1 1 100%; justify-content: space-between; }
    .st-top-mid .st-clock { display: inline; font-size: 16px; }
    .st-brand small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
    .st-ic { width: 38px; height: 38px; }
}

/* الإسكانر واقف (الشاشة مش قدام) */
.st-paused {
    position: fixed; inset: 0; z-index: 2000; border: 0; width: 100%; background: rgba(244, 245, 247, .9); backdrop-filter: blur(3px);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: #1f2937; cursor: pointer;
}
.st-paused[hidden] { display: none; }
.st-paused i { font-size: 54px; color: #d97706; }
.st-paused b { font-size: 26px; }
.st-paused small { font-size: 16px; color: #6b7280; }
.st-tabs [data-tab="last"] { --tc: #177245; --tb: rgba(22,163,74,.09); }

/* [بوابة الحضور] بروفايل العضو فوق البوابة (نفس مودال السيستم جوه iframe) */
.st-prof { position: fixed; inset: 0; z-index: 3000; background: rgba(15, 17, 21, .45); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); animation: stProfIn .2s ease both; }
.st-prof iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: transparent; }
.st-prof-spin { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 28px; }
@keyframes stProfIn { from { opacity: 0; } to { opacity: 1; } }
