/* Paseer Admin Console — لوحة تحكم المنصة (مشغّلو المنصة فقط)
   هوية بصرية مميّزة عن تطبيقات المشتركين: إطار جرافيتي داكن ولون كهرماني للإجراءات،
   ووضع «جلسة الوصول» بشريط مخطّط ونص صريح لا يعتمد على اللون وحده (N-V13-17). */
@import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Sans+Arabic:wght@400;500;600;700&family=IBM+Plex+Mono:wght@400;500;600&display=swap');

:root {
  --bg: #F3F4F6; --surface: #FFFFFF; --surface-2: #F8F9FA; --surface-3: #EEF0F3;
  --border: #E1E4E9; --border-2: #CBD0D8;
  --text: #11151C; --text-2: #434B57; --text-3: #5F6B7C;
  --rail: #12161D; --rail-2: #1B212A; --rail-3: #262E39; --rail-text: #C9D0DA; --rail-mute: #7D8796;
  --acc: #D98E04; --acc-ink: #8A5600; --acc-50: #FFF5E0; --acc-100: #FDE6B5;
  --ok: #13794B; --ok-50: #E6F5EE; --warn: #A95B00; --warn-50: #FFF1DD; --bad: #B42330; --bad-50: #FDECEE;
  --info: #1D5FBF; --info-50: #E8F0FC; --vio: #5B45B8; --vio-50: #EFEBFB; --mute-50: #EEF0F3;
  --primary-fill: #1D5FBF; --danger-fill: #B42330; /* ADR-DEC-129: تعبئة صلبة تحت نص أبيض (في الفاتح تساوي اللون نفسه) */
  --shadow-xs: 0 1px 2px rgba(16,22,30,.06); --shadow: 0 8px 28px -10px rgba(16,22,30,.18); --shadow-lg: 0 24px 60px -20px rgba(16,22,30,.35);
  --r: 14px; --r-sm: 10px; --ease: cubic-bezier(.2,.7,.2,1);
  --font: 'IBM Plex Sans Arabic', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif;
  --mono: 'IBM Plex Mono', ui-monospace, Consolas, monospace;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0D1117; --surface: #151B23; --surface-2: #1A212B; --surface-3: #212936;
    --border: #283140; --border-2: #36414F; --text: #E8ECF1; --text-2: #B3BCC8; --text-3: #8490A0;
    --rail: #090C11; --rail-2: #121821; --rail-3: #1E2631;
    --acc: #F2A91E; --acc-ink: #FFC65C; --acc-50: #2E2210; --acc-100: #4A3512;
    --ok: #3FBF83; --ok-50: #10281E; --warn: #F0A445; --warn-50: #2E2112; --bad: #F2707A; --bad-50: #2F1519;
    --info: #6FA5F5; --info-50: #122238; --vio: #A897F2; --vio-50: #1F1A38; --mute-50: #1E2631;
    --primary-fill: #1F74C2; --danger-fill: #C4473B; /* ADR-DEC-129: الأبيض عليها 4.84 و4.87 */
    --shadow: 0 8px 28px -10px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0D1117; --surface: #151B23; --surface-2: #1A212B; --surface-3: #212936;
  --border: #283140; --border-2: #36414F; --text: #E8ECF1; --text-2: #B3BCC8; --text-3: #8490A0;
  --rail: #090C11; --rail-2: #121821; --rail-3: #1E2631;
  --acc: #F2A91E; --acc-ink: #FFC65C; --acc-50: #2E2210; --acc-100: #4A3512;
  --ok: #3FBF83; --ok-50: #10281E; --warn: #F0A445; --warn-50: #2E2112; --bad: #F2707A; --bad-50: #2F1519;
  --info: #6FA5F5; --info-50: #122238; --vio: #A897F2; --vio-50: #1F1A38; --mute-50: #1E2631;
  --primary-fill: #1F74C2; --danger-fill: #C4473B; /* ADR-DEC-129: الأبيض عليها 4.84 و4.87 */
  --shadow: 0 8px 28px -10px rgba(0,0,0,.6); --shadow-lg: 0 24px 60px -20px rgba(0,0,0,.8);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.6; color: var(--text); background: var(--bg); overflow-x: hidden; }
h1, h2, h3, h4 { margin: 0; line-height: 1.3; font-weight: 700; }
p { margin: 0; }
a { color: var(--info); }
button, input, select, textarea { font: inherit; color: inherit; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: middle; }
.i-sm { width: 15px; height: 15px; } .i-lg { width: 22px; height: 22px; }
.mono, .num { font-family: var(--mono); font-feature-settings: 'tnum'; }
.ltr { direction: ltr; unicode-bidi: isolate; }
.muted { color: var(--text-3); } .fs-12 { font-size: 12px; } .fs-13 { font-size: 13px; } .fs-16 { font-size: 16px; }
.bold { font-weight: 700; } .grow { flex: 1; min-width: 0; } .nowrap { white-space: nowrap; }
.row { display: flex; align-items: center; gap: 10px; min-width: 0; } .wrap-row { flex-wrap: wrap; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.mt-4 { margin-top: 4px; } .mt-8 { margin-top: 8px; } .mt-12 { margin-top: 12px; } .mt-16 { margin-top: 16px; } .mt-24 { margin-top: 24px; }
.hide { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 2px; }

/* ================================================================ shell */
.shell { display: grid; grid-template-columns: 264px minmax(0, 1fr); min-height: 100vh; }
.rail { background: var(--rail); color: var(--rail-text); position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; border-inline-start: 1px solid #000; z-index: 30; }
.rail .brand { display: flex; align-items: center; gap: 11px; padding: 18px 18px 16px; border-bottom: 1px solid var(--rail-3); text-decoration: none; color: #fff; }
.rail .brand .mk { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; background: linear-gradient(135deg, #F2A91E, #C97800); color: #16110A; flex: none; }
.rail .brand .mk .i { stroke-width: 2.2; }
.rail .brand b { display: block; font-size: 14px; letter-spacing: .2px; }
.rail .brand span { display: block; font-size: 11.5px; color: var(--rail-mute); }
.rail .zone { margin: 12px 14px 4px; padding: 8px 10px; border-radius: 9px; background: repeating-linear-gradient(135deg, rgba(242,169,30,.10) 0 8px, transparent 8px 16px); border: 1px solid rgba(242,169,30,.35); font-size: 11.5px; color: #F6C66A; display: flex; gap: 8px; align-items: center; }
.rail nav { padding: 8px 10px; overflow-y: auto; flex: 1; }
.rail .grp { font-size: 11px; color: var(--rail-mute); padding: 14px 10px 6px; letter-spacing: .3px; }
.rail nav a { display: flex; align-items: center; gap: 11px; padding: 9px 11px; border-radius: 9px; color: var(--rail-text); text-decoration: none; font-size: 13.5px; position: relative; }
.rail nav a:hover { background: var(--rail-2); color: #fff; }
.rail nav a.on { background: var(--rail-3); color: #fff; font-weight: 600; }
.rail nav a.on::before { content: ""; position: absolute; inset-inline-start: -10px; top: 8px; bottom: 8px; width: 3px; border-radius: 3px; background: var(--acc); }
.rail nav a .cnt { margin-inline-start: auto; font-family: var(--mono); font-size: 11px; background: var(--rail-3); color: var(--rail-text); padding: 0 7px; border-radius: 20px; line-height: 19px; }
.rail nav a .cnt.hot { background: #F2A91E; color: #16110A; font-weight: 600; }
.rail nav a .sc { margin-inline-start: auto; font-size: 10px; color: var(--rail-mute); border: 1px solid var(--rail-3); border-radius: 5px; padding: 0 5px; }
.rail .foot { padding: 12px 16px 16px; border-top: 1px solid var(--rail-3); font-size: 11.5px; color: var(--rail-mute); }
.rail .foot b { color: var(--rail-text); font-weight: 600; }

.main { min-width: 0; display: flex; flex-direction: column; }
.top { position: sticky; top: 0; z-index: 25; height: 60px; background: color-mix(in srgb, var(--surface) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--border); display: flex; align-items: center; gap: 12px; padding: 0 22px; }
.top .crumbs { font-size: 13px; color: var(--text-3); display: flex; gap: 6px; align-items: center; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.top .crumbs b { color: var(--text); font-weight: 600; }
.top .sp { flex: 1; }
.top .burger { display: none; }
.who { display: flex; align-items: center; gap: 9px; padding: 4px 6px 4px 12px; border: 1px solid var(--border); border-radius: 40px; background: var(--surface); cursor: pointer; max-width: 280px; }
.who .av { width: 30px; height: 30px; border-radius: 50%; background: var(--rail); color: #F6C66A; display: grid; place-items: center; font-weight: 700; font-size: 13px; flex: none; }
.who b { font-size: 13px; display: block; line-height: 1.2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.who small { font-size: 11px; color: var(--text-3); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.menu { position: absolute; top: calc(100% + 8px); inset-inline-end: 0; min-width: 300px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-lg); padding: 8px; z-index: 60; display: none; }
.menu.open { display: block; animation: pop .16s var(--ease); }
.menu .mh { font-size: 11.5px; color: var(--text-3); padding: 8px 10px 4px; }
.menu button, .menu a { display: flex; width: 100%; align-items: center; gap: 10px; padding: 8px 10px; border: 0; background: none; border-radius: 9px; text-align: start; cursor: pointer; color: var(--text); text-decoration: none; font-size: 13px; }
.menu button:hover, .menu a:hover { background: var(--surface-3); }
.menu button.on { background: var(--acc-50); }
.menu hr { border: 0; border-top: 1px solid var(--border); margin: 6px 0; }
.relative { position: relative; }

.page { padding: 24px 26px 60px; max-width: 1480px; width: 100%; margin: 0 auto; }
.ph { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.ph h1 { font-size: 23px; }
.ph p { color: var(--text-3); margin-top: 4px; max-width: 820px; }
.ph .acts { margin-inline-start: auto; display: flex; gap: 8px; flex-wrap: wrap; }
.req { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 10.5px; color: var(--text-3); background: var(--surface-3); border: 1px solid var(--border); border-radius: 6px; padding: 0 6px; line-height: 18px; vertical-align: middle; white-space: nowrap; }

/* ================================================================ session mode (N-V13-17) */
.sbar { position: sticky; top: 0; z-index: 40; background: #17130A; color: #FBE7BE; border-bottom: 3px solid #F2A91E; }
.sbar::before { content: ""; display: block; height: 6px; background: repeating-linear-gradient(135deg, #F2A91E 0 10px, #17130A 10px 20px); }
.sbar .in { display: flex; align-items: center; gap: 14px; padding: 8px 22px; flex-wrap: wrap; }
.sbar .tag { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 12.5px; background: #F2A91E; color: #17130A; border-radius: 6px; padding: 2px 9px; white-space: nowrap; }
.sbar .t { font-size: 13px; min-width: 0; }
.sbar .t b { color: #fff; }
.sbar .t span { color: #D7C49A; }
.sbar .clock { font-family: var(--mono); font-size: 18px; font-weight: 600; color: #fff; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 8px; padding: 1px 10px; letter-spacing: 1px; }
.sbar .clock.low { background: #B42330; border-color: #FF8A93; animation: blink 1s steps(2) infinite; }
.sbar .clock.low::after { content: " · أقل من الربع"; font-family: var(--font); font-size: 11px; letter-spacing: 0; }
.sbar .sp { flex: 1; }
.sbar .btn { height: 32px; }
.sbar .end { background: #fff; color: #17130A; border-color: #fff; font-weight: 700; }
.sbar .more { background: transparent; color: #FBE7BE; border-color: rgba(255,255,255,.25); }
body.in-session .main { outline: 3px dashed #F2A91E; outline-offset: -3px; }
body.in-session .top { background: repeating-linear-gradient(135deg, var(--acc-50) 0 14px, var(--surface) 14px 28px); }
@keyframes blink { 50% { opacity: .55; } }

/* ================================================================ components */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 38px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--surface); color: var(--text); font-weight: 500; font-size: 13.5px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s, transform .1s; }
.btn:hover { background: var(--surface-3); }
.btn:active { transform: translateY(1px); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; transform: none; }
.btn-acc { background: var(--acc); border-color: var(--acc); color: #17110A; font-weight: 600; }
.btn-acc:hover { background: #C27E00; border-color: #C27E00; }
.btn-dark { background: var(--rail); border-color: var(--rail); color: #fff; }
.btn-dark:hover { background: var(--rail-3); }
.btn-bad { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn-bad:hover { filter: brightness(.93); background: var(--bad); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { height: 31px; padding: 0 11px; font-size: 12.5px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); cursor: pointer; color: var(--text-2); }
.icon-btn:hover { background: var(--surface-3); color: var(--text); }

.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow-xs); min-width: 0; }
.card > .hd { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.card > .hd h3 { font-size: 15px; }
.card > .hd .sub { font-size: 12px; color: var(--text-3); }
.card > .hd .acts { margin-inline-start: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.card > .bd { padding: 16px 18px; }
.card > .ft { padding: 12px 18px; border-top: 1px solid var(--border); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.g-side { grid-template-columns: minmax(0, 1fr) 360px; }

.badge { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 1px 9px; border-radius: 20px; line-height: 20px; white-space: nowrap; background: var(--mute-50); color: var(--text-2); border: 1px solid transparent; }
.badge .dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.b-ok { background: var(--ok-50); color: var(--ok); } .b-warn { background: var(--warn-50); color: var(--warn); } .b-bad { background: var(--bad-50); color: var(--bad); }
.b-info { background: var(--info-50); color: var(--info); } .b-vio { background: var(--vio-50); color: var(--vio); } .b-acc { background: var(--acc-50); color: var(--acc-ink); } .b-line { background: transparent; border-color: var(--border-2); color: var(--text-2); }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 12px; border-radius: 20px; border: 1px solid var(--border); background: var(--surface); font-size: 12.5px; cursor: pointer; color: var(--text-2); white-space: nowrap; }
.chip:hover { border-color: var(--border-2); }
.chip.on { background: var(--rail); border-color: var(--rail); color: #fff; }
.chip .n { font-family: var(--mono); font-size: 11px; opacity: .75; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }

.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 15px 16px; display: flex; flex-direction: column; gap: 6px; text-decoration: none; color: inherit; min-width: 0; position: relative; }
a.kpi:hover, button.kpi:hover { border-color: var(--border-2); box-shadow: var(--shadow); }
.kpi .l { font-size: 12.5px; color: var(--text-3); display: flex; gap: 7px; align-items: center; }
.kpi .v { font-size: clamp(22px, 2.4vw, 28px); font-weight: 700; font-family: var(--mono); line-height: 1.15; }
.kpi .s { font-size: 12px; color: var(--text-3); }

.tbl-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: start; font-weight: 600; font-size: 12px; color: var(--text-3); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--border); white-space: nowrap; }
.tbl td { padding: 11px 14px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover td { background: var(--surface-2); }
.tbl tr.hl td { background: var(--acc-50); }
.tbl tr.dim td { color: var(--text-3); }
.tbl .t-name { font-weight: 600; color: var(--text); text-decoration: none; }
.tbl .t-name:hover { text-decoration: underline; }
.tbl .sub { font-size: 11.5px; color: var(--text-3); display: block; }
.tbl td.act { text-align: end; white-space: nowrap; }

.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--border); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 10px 14px; font-size: 13.5px; color: var(--text-3); cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; display: inline-flex; gap: 7px; align-items: center; }
.tabs button:hover { color: var(--text); }
.tabs button.on { color: var(--text); font-weight: 600; border-bottom-color: var(--acc); }
.tabs button .n { font-family: var(--mono); font-size: 11px; background: var(--surface-3); border-radius: 10px; padding: 0 6px; }
.tabs button .lk { opacity: .7; }
.tp { display: none; } .tp.on { display: block; animation: fade .2s; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field > label, .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 11.5px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--bad); min-height: 0; }
.input, .select, .textarea { width: 100%; height: 40px; border: 1px solid var(--border-2); border-radius: 10px; background: var(--surface); padding: 0 12px; font-size: 13.5px; min-width: 0; }
.textarea { height: auto; min-height: 80px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.field.bad .input, .field.bad .select, .field.bad .textarea { border-color: var(--bad); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: inline-flex; gap: 8px; align-items: center; font-size: 13px; cursor: pointer; }
.check input { width: 16px; height: 16px; accent-color: var(--acc); }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 10px; padding: 3px; gap: 3px; background: var(--surface-2); flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 5px 12px; border-radius: 7px; font-size: 12.5px; cursor: pointer; color: var(--text-2); }
.seg button.on { background: var(--surface); box-shadow: var(--shadow-xs); color: var(--text); font-weight: 600; }

.kv { display: grid; grid-template-columns: minmax(120px, 38%) minmax(0, 1fr); gap: 0; font-size: 13px; }
.kv > div { padding: 8px 0; border-bottom: 1px dashed var(--border); min-width: 0; overflow-wrap: anywhere; }
.kv > div:nth-child(odd) { color: var(--text-3); padding-inline-end: 12px; }
.kv > div:nth-last-child(-n+2) { border-bottom: 0; }

.bar { height: 8px; background: var(--surface-3); border-radius: 8px; overflow: hidden; position: relative; }
.bar > i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 8px; background: var(--info); }
.bar.warn > i { background: var(--acc); } .bar.bad > i { background: var(--bad); } .bar.ok > i { background: var(--ok); }
.bar .mark { position: absolute; inset-block: -2px; width: 2px; background: var(--text-3); opacity: .6; }
.meter { display: grid; grid-template-columns: minmax(110px, 170px) minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 12.5px; padding: 7px 0; }
.meter .v { font-family: var(--mono); font-size: 12px; color: var(--text-2); white-space: nowrap; }

.note { display: flex; gap: 10px; padding: 11px 14px; border-radius: 11px; font-size: 13px; background: var(--info-50); color: var(--text); border: 1px solid color-mix(in srgb, var(--info) 25%, transparent); align-items: flex-start; }
.note .i { color: var(--info); margin-top: 2px; }
.note.warn { background: var(--warn-50); border-color: color-mix(in srgb, var(--warn) 30%, transparent); } .note.warn .i { color: var(--warn); }
.note.bad { background: var(--bad-50); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .note.bad .i { color: var(--bad); }
.note.ok { background: var(--ok-50); border-color: color-mix(in srgb, var(--ok) 30%, transparent); } .note.ok .i { color: var(--ok); }
.note.dark { background: var(--rail); color: #E6EAF0; border-color: var(--rail); } .note.dark .i { color: #F2A91E; }

.locked { text-align: center; padding: 38px 20px; border: 2px dashed var(--border-2); border-radius: var(--r); background: repeating-linear-gradient(135deg, var(--surface-2) 0 14px, var(--surface) 14px 28px); }
.locked .ic { width: 58px; height: 58px; border-radius: 16px; background: var(--rail); color: #F2A91E; display: inline-grid; place-items: center; margin-bottom: 12px; }
.locked h3 { font-size: 16px; }
.locked p { color: var(--text-3); max-width: 520px; margin: 6px auto 16px; font-size: 13px; }

.empty { text-align: center; color: var(--text-3); padding: 28px 12px; font-size: 13px; }
.list { display: flex; flex-direction: column; }
.li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--border); align-items: flex-start; min-width: 0; }
.li:last-child { border-bottom: 0; }
.li .ic { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; background: var(--surface-3); color: var(--text-2); flex: none; }
.li b { font-size: 13.5px; }
.li .m { font-size: 12px; color: var(--text-3); }

.steps { display: flex; flex-direction: column; gap: 0; }
.step { display: flex; gap: 12px; align-items: flex-start; padding: 9px 0; position: relative; }
.step:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 13px; top: 36px; bottom: -4px; width: 2px; background: var(--border); }
.step .sd { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--border-2); background: var(--surface); flex: none; font-size: 12px; font-family: var(--mono); color: var(--text-3); z-index: 1; }
.step.run .sd { border-color: var(--acc); color: var(--acc-ink); animation: pulse 1s infinite; }
.step.done .sd { border-color: var(--ok); background: var(--ok); color: #fff; }
.step.fail .sd { border-color: var(--bad); background: var(--bad); color: #fff; }
.step.undo .sd { border-color: var(--warn); background: var(--warn-50); color: var(--warn); }
.step b { font-size: 13.5px; display: block; }
.step .m { font-size: 12px; color: var(--text-3); }
@keyframes pulse { 50% { box-shadow: 0 0 0 5px color-mix(in srgb, var(--acc) 25%, transparent); } }

.tl { display: flex; flex-direction: column; }
.tl .e { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding-bottom: 14px; position: relative; }
.tl .e::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--border-2); margin-top: 6px; }
.tl .e:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 4px; top: 18px; bottom: 0; width: 2px; background: var(--border); }
.tl .e.acc::before { background: var(--acc); } .tl .e.ok::before { background: var(--ok); } .tl .e.bad::before { background: var(--bad); }
.tl b { font-size: 13px; } .tl .m { font-size: 12px; color: var(--text-3); }

/* lifecycle state machine */
.lc { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.lc .st { padding: 5px 11px; border-radius: 8px; border: 1px solid var(--border); font-size: 12.5px; background: var(--surface-2); color: var(--text-3); display: inline-flex; gap: 6px; align-items: center; }
.lc .st.cur { background: var(--rail); border-color: var(--rail); color: #fff; font-weight: 600; }
.lc .ar { color: var(--text-3); }

/* ================================================================ modal / toast */
.ov { position: fixed; inset: 0; background: rgba(8,11,16,.55); backdrop-filter: blur(2px); z-index: 100; display: grid; place-items: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--surface); border-radius: 18px; box-shadow: var(--shadow-lg); width: min(560px, 100%); max-height: calc(100vh - 32px); display: flex; flex-direction: column; animation: pop .18s var(--ease); border: 1px solid var(--border); }
.modal.wide { width: min(760px, 100%); }
.modal .mhd { padding: 18px 20px 12px; display: flex; gap: 12px; align-items: flex-start; }
.modal .mhd .mi { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--acc-50); color: var(--acc-ink); flex: none; }
.modal .mhd .mi.bad { background: var(--bad-50); color: var(--bad); } .modal .mhd .mi.dark { background: var(--rail); color: #F2A91E; }
.modal .mhd h3 { font-size: 17px; } .modal .mhd p { font-size: 13px; color: var(--text-3); margin-top: 3px; }
.modal .mbd { padding: 4px 20px 16px; overflow-y: auto; }
.modal .mft { padding: 14px 20px; border-top: 1px solid var(--border); display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.otp { display: flex; gap: 8px; justify-content: center; direction: ltr; margin: 10px 0 4px; }
.otp input { width: 46px; height: 54px; text-align: center; font-size: 22px; font-family: var(--mono); border: 1px solid var(--border-2); border-radius: 12px; background: var(--surface); }
.otp input:focus { outline: none; border-color: var(--acc); box-shadow: 0 0 0 3px color-mix(in srgb, var(--acc) 22%, transparent); }
.impact { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 6px 0 12px; }
.impact .box { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; }
.impact .box h4 { font-size: 12.5px; display: flex; gap: 6px; align-items: center; margin-bottom: 6px; }
.impact .box ul { margin: 0; padding-inline-start: 18px; font-size: 12.5px; color: var(--text-2); }
.impact .box.stop h4 { color: var(--bad); } .impact .box.keep h4 { color: var(--ok); }
.impact .num-row { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.impact .num-row div { background: var(--surface-2); border-radius: 10px; padding: 8px 10px; }
.impact .num-row b { font-family: var(--mono); font-size: 19px; display: block; }
.impact .num-row span { font-size: 11.5px; color: var(--text-3); }
.toasts { position: fixed; bottom: 18px; inset-inline-start: 18px; z-index: 120; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 36px)); }
.toast { background: var(--rail); color: #EEF1F5; border-radius: 12px; padding: 11px 14px; font-size: 13px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: flex-start; animation: pop .2s var(--ease); border-inline-start: 4px solid var(--acc); }
.toast.ok { border-inline-start-color: #3FBF83; } .toast.bad { border-inline-start-color: #F2707A; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.98); } }

/* ================================================================ page specifics */
.scard { position: relative; overflow: hidden; }
.scard.hot { border-color: #F2A91E; box-shadow: 0 0 0 1px #F2A91E, var(--shadow); }
.scard.hot::before { content: ""; position: absolute; inset-inline: 0; top: 0; height: 5px; background: repeating-linear-gradient(135deg, #F2A91E 0 10px, #17130A 10px 20px); }
.scard .skel { height: 30px; width: 60%; border-radius: 8px; background: linear-gradient(90deg, var(--surface-3), var(--surface-2), var(--surface-3)); background-size: 200% 100%; animation: sh 1.2s infinite; }
@keyframes sh { to { background-position: -200% 0; } }
.sess-row { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--border); border-radius: 12px; margin-top: 8px; flex-wrap: wrap; }
.sess-row.half { border-color: #F2A91E; background: var(--acc-50); }
.sess-row .clk { font-family: var(--mono); font-weight: 600; font-size: 15px; }
.sess-row > .grow { flex: 1 1 240px; }
.states { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.matrix td, .matrix th { text-align: center; padding: 8px 6px; }
.matrix td:first-child, .matrix th:first-child { text-align: start; }
.cell { width: 30px; height: 30px; border-radius: 8px; display: inline-grid; place-items: center; border: 1px solid var(--border); cursor: pointer; background: var(--surface); }
.cell.on { background: var(--ok-50); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 35%, transparent); }
.cell.off { background: var(--warn-50); color: var(--warn); }
.cell.na { background: repeating-linear-gradient(135deg, var(--surface-3) 0 4px, var(--surface) 4px 8px); color: var(--text-3); cursor: default; }
.pdot { width: 26px; height: 26px; border-radius: 8px; display: inline-grid; place-items: center; color: #fff; flex: none; }
.pdot .i { width: 15px; height: 15px; }
.pdot.sm { width: 18px; height: 18px; border-radius: 5px; } .pdot.sm .i { width: 11px; height: 11px; }
.hgrid .cell { cursor: default; }
.tk-list .tk { padding: 12px 14px; border-bottom: 1px solid var(--border); cursor: pointer; display: block; width: 100%; text-align: start; background: none; border-inline: 0; border-top: 0; }
.tk-list .tk:hover { background: var(--surface-2); }
.tk-list .tk.on { background: var(--acc-50); box-shadow: inset -3px 0 0 var(--acc); }
.tk-list .tk b { font-size: 13.5px; display: block; }
.ctx { font-family: var(--mono); font-size: 12px; background: var(--surface-2); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; direction: ltr; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg { border: 1px solid var(--border); border-radius: 12px; padding: 10px 12px; margin-top: 8px; font-size: 13px; }
.msg.me { background: var(--surface-2); }
.msg .m { font-size: 11.5px; color: var(--text-3); margin-bottom: 4px; }
.rolepill { display: inline-flex; gap: 5px; align-items: center; font-size: 11.5px; padding: 1px 8px; border-radius: 6px; background: var(--rail); color: #F6C66A; white-space: nowrap; }
.rolepill.tmp { background: var(--acc-50); color: var(--acc-ink); border: 1px dashed var(--acc); }
.conf { display: grid; gap: 4px; }
.qlog { font-family: var(--mono); font-size: 11.5px; }

/* ================================================================ login (distinct from subscriber login) */
.op-login { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); background: #0B0E13; color: #E6EAF0; }
.op-login .side { position: relative; overflow: hidden; padding: 44px 48px; display: flex; flex-direction: column; gap: 28px; background:
  radial-gradient(700px 400px at 85% 10%, rgba(242,169,30,.16), transparent 60%),
  linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px,
  linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px) 0 0 / 32px 32px, #0B0E13; }
.op-login .side::after { content: ""; position: absolute; inset-inline: 0; bottom: 0; height: 8px; background: repeating-linear-gradient(135deg, #F2A91E 0 14px, #0B0E13 14px 28px); }
.op-login .brand { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; }
.op-login .brand .mk { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: linear-gradient(135deg, #F2A91E, #C97800); color: #16110A; }
.op-login .brand b { font-size: 17px; display: block; } .op-login .brand span { font-size: 12.5px; color: #8E98A6; }
.op-login h1 { font-size: clamp(26px, 3vw, 36px); color: #fff; line-height: 1.25; }
.op-login h1 em { font-style: normal; color: #F2A91E; }
.op-login .lead { color: #A7B1BE; max-width: 520px; font-size: 15px; }
.op-login .facts { display: grid; gap: 12px; max-width: 540px; }
.op-login .fact { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid rgba(255,255,255,.08); border-radius: 12px; background: rgba(255,255,255,.025); }
.op-login .fact .fi { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: rgba(242,169,30,.12); color: #F2A91E; flex: none; }
.op-login .fact b { color: #fff; display: block; font-size: 13.5px; } .op-login .fact span { color: #8E98A6; font-size: 12.5px; }
.op-login .form-side { display: grid; place-items: center; padding: 40px 28px; background: #10141B; border-inline-start: 1px solid #1E2530; }
.op-card { width: min(420px, 100%); }
.op-card .netline { display: flex; gap: 8px; align-items: center; font-size: 12px; padding: 8px 12px; border-radius: 10px; margin-bottom: 20px; font-family: var(--mono); direction: ltr; justify-content: flex-end; }
.op-card .netline.ok { background: rgba(63,191,131,.1); color: #6FD8A5; border: 1px solid rgba(63,191,131,.3); }
.op-card .netline.bad { background: rgba(242,112,122,.1); color: #FF9AA2; border: 1px solid rgba(242,112,122,.35); }
.op-card h2 { font-size: 22px; color: #fff; }
.op-card .sub { color: #8E98A6; font-size: 13px; margin-top: 4px; }
.op-card .field > label { color: #C3CBD6; }
.op-card .input { background: #0B0E13; border-color: #2A3340; color: #E6EAF0; height: 46px; }
.op-card .input:focus { border-color: #F2A91E; }
.op-card .btn-acc { width: 100%; height: 46px; font-size: 14.5px; }
.op-card .rules { margin-top: 18px; font-size: 12px; color: #8E98A6; display: grid; gap: 6px; }
.op-card .rules div { display: flex; gap: 8px; align-items: flex-start; }
.op-card .rules .i { color: #F2A91E; width: 15px; height: 15px; margin-top: 2px; }
.op-card .persona { display: grid; gap: 6px; margin-top: 8px; }
.op-card .persona button { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border: 1px solid #2A3340; border-radius: 10px; background: #0B0E13; color: #E6EAF0; cursor: pointer; text-align: start; }
.op-card .persona button:hover, .op-card .persona button.on { border-color: #F2A91E; background: #17130A; }
.op-card .persona .av { width: 30px; height: 30px; border-radius: 50%; background: #262E39; color: #F6C66A; display: grid; place-items: center; font-weight: 700; font-size: 12px; flex: none; }
.op-card .persona small { color: #8E98A6; font-size: 11.5px; display: block; }
.op-card .otp input { background: #0B0E13; border-color: #2A3340; color: #fff; }
.op-card .demo { font-size: 11.5px; color: #8E98A6; border: 1px dashed #2A3340; border-radius: 10px; padding: 8px 10px; margin-top: 14px; }
.op-card a { color: #F6C66A; }
.op-card .back { color: #8E98A6; font-size: 12.5px; text-decoration: none; display: inline-flex; gap: 6px; align-items: center; margin-top: 22px; }
.lpanel { display: none; } .lpanel.on { display: block; animation: fade .2s; }

/* trust center (tenant-facing preview) */
.tc-hero { background: linear-gradient(135deg, #0B4C8C, #1D6FD1); color: #fff; border-radius: var(--r); padding: 22px 24px; display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.tc-hero h1 { font-size: 22px; } .tc-hero p { color: #D6E6FB; font-size: 13px; }

/* ================================================================ responsive */
@media (max-width: 1180px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .g-side { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .shell { grid-template-columns: minmax(0, 1fr); }
  .rail { position: fixed; inset-block: 0; inset-inline-start: 0; width: 280px; transform: translateX(100%); transition: transform .25s var(--ease); box-shadow: var(--shadow-lg); }
  .rail.open { transform: none; }
  .top .burger { display: inline-grid; }
  .g2, .g3 { grid-template-columns: minmax(0, 1fr); }
  .op-login { grid-template-columns: minmax(0, 1fr); }
  .op-login .side { padding: 28px 20px 36px; }
  .op-login .facts { display: none; }
}
@media (max-width: 640px) {
  .page { padding: 18px 16px 48px; }
  .top { padding: 0 12px; gap: 8px; }
  .who { padding: 3px; border-radius: 50%; }
  .who > div, .who > .i { display: none; }
  .kpis, .g4 { grid-template-columns: minmax(0, 1fr); }
  .form-grid { grid-template-columns: minmax(0, 1fr); }
  .impact, .impact .num-row { grid-template-columns: minmax(0, 1fr); }
  .kv { grid-template-columns: minmax(0, 1fr); }
  .kv > div:nth-child(odd) { border-bottom: 0; padding-bottom: 0; font-size: 12px; }
  .meter { grid-template-columns: minmax(0, 1fr) auto; }
  .meter .bar { grid-column: 1 / -1; grid-row: 2; }
  .sbar .in { padding: 8px 12px; gap: 8px; }
  .sbar .clock { font-size: 15px; }
  .ph h1 { font-size: 20px; }
  .ph .acts { margin-inline-start: 0; }
  .otp input { width: 40px; height: 48px; }
  .op-login .form-side { padding: 28px 16px; }
  .menu { position: fixed; top: 64px; inset-inline: 12px; min-width: 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print { .rail, .top, .sbar, .toasts { display: none !important; } .shell { display: block; } }

/* audit: long words on phones */
@media (max-width: 720px) {
  .badge, .pri, .sec, .chip { white-space: normal; }
  b, strong, h1, h2, h3, .t-name { overflow-wrap: anywhere; }
}

/* audit: wrapping rows and buttons on phones */
@media (max-width: 720px) {
  .row, .seg, .card-head, .page-actions, .row-between { flex-wrap: wrap; }
  .btn, .chip, .tab { white-space: normal; }
}

/* audit: controls and media fit the screen */
@media (max-width: 720px) {
  .select, select, .input, textarea, .page-actions > *, .card-head > * { max-width: 100%; }
  svg:not(.i):not([class*="icon"]) { max-width: 100%; height: auto; }
}

/* ---------- البالونة الإرشادية (i) — معيار المنصة: حرف i في دائرة صفراء فاتحة ---------- */
.hint-i { flex: none; width: 18px; height: 18px; padding: 0; border-radius: 50%;
  border: 1px solid var(--hint-bd, #F0C24B); background: var(--hint-bg, #FEF3C7); color: var(--hint-fg, #92400E);
  font: 700 11.5px/1 Georgia, "Times New Roman", serif; font-style: italic; cursor: pointer;
  display: inline-grid; place-items: center; vertical-align: middle; margin-inline-start: 5px; transition: .15s; }
.hint-i:hover { background: var(--hint-bg-h, #FDE68A); border-color: var(--hint-bd-h, #E0A82E); }
.hint-i.on { background: var(--hint-bd-h, #E0A82E); border-color: var(--hint-bd-h, #E0A82E); color: #fff; }
.hint-i:focus-visible { outline: 2px solid var(--hint-bd-h, #E0A82E); outline-offset: 2px; }
.hint-i-pop { position: absolute; z-index: 90; background: var(--hint-pop-bg, #FFFBEB);
  border: 1px solid var(--hint-bd, #F0C24B); border-radius: 10px;
  box-shadow: 0 12px 30px -10px rgba(120, 80, 10, .3); padding: 10px 12px; }
.hint-i-txt { font-size: 12.5px; line-height: 1.75; color: var(--hint-txt, #713F12); }
.hint-i-arrow { position: absolute; top: -6px; width: 11px; height: 11px; transform: rotate(45deg);
  background: var(--hint-pop-bg, #FFFBEB); border-inline-start: 1px solid var(--hint-bd, #F0C24B);
  border-top: 1px solid var(--hint-bd, #F0C24B); border-radius: 2px; }
.hint-i-pop.up .hint-i-arrow { top: auto; bottom: -6px; transform: rotate(225deg); }
[data-theme="dark"] {
  --hint-bg: #3A2E10; --hint-bd: #7A6320; --hint-fg: #FBD96B; --hint-bg-h: #4B3C14; --hint-bd-h: #A88A2E;
  --hint-pop-bg: #2B2208; --hint-txt: #F3DFA4;
}
@media (max-width: 767px) { .hint-i-pop { max-width: calc(100vw - 24px); } }

/* زر ذكاء اصطناعي معطّل: رمادي باهت بسبب مقروء بدل أن يبدو متاحاً ثم يفشل */
.ai-off, .icon-btn.ai-btn.ai-off, .btn.ai-off { background: var(--surface-2, #EEF1F5) !important; color: var(--text-3, #6B7280) !important;
  border-color: var(--border, #D8E0E8) !important; box-shadow: none !important; cursor: not-allowed; opacity: .75; filter: grayscale(1); }
.ai-off svg { opacity: .8; }

/* مراجعة الجودة (الدفعة 1): أهداف لمس لا تقل عن 32 بكسل على الجوال مع بقاء المربع المرئي بحجمه */
@media (max-width: 768px) {
  .btn-sm, .btn-xs, .seg button, .tabs button { min-height: 36px; }
  .btn-sm, .btn-xs, .seg button { min-width: 36px; }
  .check { min-height: 32px; }
  .check input[type="checkbox"] { appearance: none; -webkit-appearance: none; width: 32px; height: 32px; margin: -8px; position: relative; display: grid; place-items: center; background: transparent; border: 0; cursor: pointer; flex: none; }
  .check input[type="checkbox"]::before { content: ""; position: absolute; inset: 8px; border: 1.5px solid var(--border-2); border-radius: 4px; background: var(--surface); }
  .check input[type="checkbox"]:checked::before { background: var(--acc); border-color: var(--acc); }
  .check input[type="checkbox"]:checked::after { content: ""; width: 4px; height: 8px; border: solid #fff; border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px,-1px); position: relative; z-index: 1; }
  .check input[type="checkbox"]:disabled { cursor: not-allowed; opacity: .6; }
}

/* النسخة الإنجليزية على الجوال: أطول خيار في قائمة «العرض بصفة» كان يمدّ أزرار الترويسة خارج الشاشة، فتأخذ الأزرار سطراً كاملاً لا يتجاوزه عنصر */
@media (max-width: 720px) {
  .page-head > .page-actions { flex: 1 1 100%; min-width: 0; max-width: 100%; }
  .page-actions > .select, .page-actions > select { min-width: 0; width: 100%; }
  .tp { max-width: 100%; white-space: normal; overflow-wrap: anywhere; }
}

/* ---------- تجربة الاستخدام · الدفعة 4: سلوك الغلاف الموحّد ---------- */
/* UXR-016: نوع الرسالة بلونه وأيقونته وكلمته، والخطأ يبقى حتى يُغلق */
.toast > .i { flex: none; margin-top: 1px; order: -2; }
.toast[data-k]::before { content: attr(data-k); order: -1; flex: none; font-weight: 800; padding-inline-end: 8px; border-inline-end: 1px solid rgba(255,255,255,.4); }
.toast > div { flex: 1; min-width: 0; line-height: 1.6; }
.toast.t-ok > .i { color: #7BE0A9; }
.toast.t-info > .i { color: #9CCBFF; }
.toast.t-warn { background: #5A3E06; border-inline-start-color: #FCD34D; } .toast.t-warn > .i { color: #FCD34D; }
.toast.t-err { background: #8B1C1C; border-inline-start-color: #FECACA; color: #fff; } .toast.t-err > .i { color: #FECACA; }
.toast-x { flex: none; width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; cursor: pointer; }
.toast-x:hover, .toast-x:focus-visible { background: rgba(255,255,255,.26); outline: 2px solid #fff; outline-offset: 1px; }
.toast-x .i { color: #fff; }
/* UXR-025: الحقول الإلزامية بنجمة حمراء، والحقل غير الصالح يُعلَّم بجوار رسالته */
.req-star { color: var(--bad); font-weight: 700; margin-inline-start: 3px; }
[aria-invalid="true"] { border-color: var(--bad) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--bad) 18%, transparent) !important; }
.err[data-err="0"]:empty { display: none; }
.form-sum { color: var(--bad); font-size: 12.5px; font-weight: 600; }
/* UXR-022: الأرقام والرموز والعناوين اللاتينية معزولة الاتجاه ولا تنكسر في منتصفها */
.px-num, .px-code { unicode-bidi: isolate; white-space: nowrap; }
.px-code { direction: ltr; word-break: keep-all; overflow-wrap: normal; }
.tbl .sub .dual-sep { display: none; }
/* UXR-020: زر اللغة والمساعدة ثابتا العرض في الشريط الضيق */
.top .icon-btn, .top .who { flex-shrink: 0; }
/* UXR-022: سهم التسلسل في شريط الحالة يشير إلى الحالة التالية في الاتجاهين (يسار في العربية، يمين في الإنجليزية) */
[dir="ltr"] .lc .ar svg { transform: scaleX(-1); }
/* UXR-025: نجمة الحقل الإلزامي في مكوّن الاسم ثنائي اللغة حمراء كبقية الحقول لا شارة رمادية */
.field label .req { background: none; border: 0; padding: 0; color: var(--bad); font-family: inherit; font-size: inherit; font-weight: 700; }

/* ---------- أحكام المالك (2026-09-25) ---------- */
/* ADR-DEC-129 (الخيار ب): زر الخطر ودائرة الخطوة الفاشلة بتعبئة منفصلة عن لون النص، فالأبيض عليها ≥ 4.8 في الوضع الداكن */
.btn-bad, .step.fail .sd { background: var(--danger-fill); border-color: var(--danger-fill); }
.btn-bad:hover { background: color-mix(in srgb, var(--danger-fill) 90%, #000); filter: none; }
/* ADR-DEC-128 · ADR-DEC-130: شارات المتطلبات لمدير النظام في المنصة وحده */
:root:not(.px-show-reqs) .req-tag, :root:not(.px-show-reqs) .hero-reqs { display: none !important; }
