/* 🆕 (Update 68) مرکزِ امنیت — پنلِ ادمین.
   هویت: «خزانه»؛ نوارِ سربرگِ سرمه‌ایِ تیره با سپرِ امتیاز (تنها عنصرِ پررنگ)، بقیه‌ی صفحه روشن، آرام و جدولی.
   رنگ‌هایِ نمودار (c1..c3) با validate_palette در حالتِ روشن بررسی شده‌اند. RTL، واکنش‌گرا، فوکوسِ قابلِ‌دید، کاهشِ حرکت. */
.sec {
    --sec-ink: #1b2333; --sec-ink-2: #465166; --sec-ink-3: #6b7588;
    --sec-canvas: #f2f4f7; --sec-surface: #ffffff; --sec-line: #dfe4ea; --sec-line-2: #eef1f5;
    --sec-vault: #18233a; --sec-vault-2: #22314f; --sec-on-vault: #e8edf6; --sec-on-vault-2: #a9b5ca;
    --sec-act: #1d4f91; --sec-act-hover: #173f75;
    --sec-ok: #0f766e; --sec-ok-bg: #e7f6f3;
    --sec-warn: #8a4b08; --sec-warn-bg: #fdf3e1;
    --sec-bad: #b42318; --sec-bad-bg: #fdeeec;
    --sec-violet: #4c3bb5; --sec-violet-bg: #efedfb;
    --sec-c1: #0d9488; --sec-c2: #b7791f; --sec-c3: #b42318;
    --sec-r: 12px; --sec-r-sm: 8px;
    direction: rtl; color: var(--sec-ink); font-family: inherit; font-size: 13.5px; line-height: 1.85;
    max-width: 1240px; margin: 0 auto; padding: 16px 16px 72px;
}
.sec *, .sec *::before, .sec *::after { box-sizing: border-box; }
.sec :focus-visible { outline: 2px solid var(--sec-act); outline-offset: 2px; border-radius: 6px; }
.sec .ltr { direction: ltr; unicode-bidi: isolate; text-align: right; font-variant-numeric: tabular-nums; }
.sec .sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sec h1, .sec h2 { margin: 0; font-weight: 800; letter-spacing: 0; }
.sec h2 { font-size: 15px; }
.sec h2 small { font-weight: 500; font-size: 12px; color: var(--sec-ink-3); margin-inline-start: 8px; }

/* ── سربرگ (خزانه) ─────────────────────────────────────────── */
.sec-head {
    display: flex; align-items: center; justify-content: space-between; gap: 24px;
    background: var(--sec-vault); color: var(--sec-on-vault); border-radius: 16px; padding: 22px 26px;
    background-image: repeating-linear-gradient(135deg, rgba(255,255,255,.025) 0 2px, transparent 2px 9px);
}
.sec-head h1 { font-size: 24px; line-height: 1.4; color: #fff; }
.sec-head p { margin: 6px 0 10px; font-size: 14.5px; color: var(--sec-on-vault); max-width: 62ch; }
.sec-head-meta { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--sec-on-vault-2); }
.sec-head .sec-btn.ghost { background: transparent; color: var(--sec-on-vault); border-color: rgba(232,237,246,.28); }
.sec-head .sec-btn.ghost:hover { background: var(--sec-vault-2); }

.sec-shield { margin: 0; display: flex; align-items: center; gap: 14px; flex-shrink: 0; }
.sec-shield svg { width: 92px; height: 108px; display: block; }
.sec-shield-base { fill: var(--sec-vault-2); }
.sec-shield-edge { fill: none; stroke: rgba(232,237,246,.55); stroke-width: 2.5; }
.sec-shield-fill { transition: y .9s cubic-bezier(.2,.8,.2,1); fill: #5b6b86; }
.sec-shield.great .sec-shield-fill { fill: #2bb3a3; }
.sec-shield.good .sec-shield-fill { fill: #3fa27a; }
.sec-shield.fair .sec-shield-fill { fill: #d49a2c; }
.sec-shield.poor .sec-shield-fill { fill: #e0574a; }
.sec-shield figcaption { display: flex; flex-direction: column; line-height: 1.2; }
.sec-shield figcaption b { font-size: 44px; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; }
.sec-shield figcaption span { font-size: 13px; color: var(--sec-on-vault-2); margin-top: 4px; }

/* ── زبانه‌ها ─────────────────────────────────────────────── */
.sec-tabs { display: flex; gap: 4px; margin: 14px 0 16px; padding: 4px; background: var(--sec-surface); border: 1px solid var(--sec-line);
    border-radius: var(--sec-r); overflow-x: auto; scrollbar-width: none; }
.sec-tabs::-webkit-scrollbar { display: none; }
.sec-tab { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 0; background: transparent; color: var(--sec-ink-2);
    font: inherit; font-size: 13px; font-weight: 700; border-radius: var(--sec-r-sm); cursor: pointer; white-space: nowrap; }
.sec-tab:hover { background: var(--sec-canvas); color: var(--sec-ink); }
.sec-tab.on { background: var(--sec-vault); color: #fff; }
.sec-tab i { font-size: 17px; }
.sec-tab-badge { font-style: normal; font-size: 11px; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--sec-bad); color: #fff;
    display: inline-grid; place-items: center; }

/* ── اجزایِ پایه ──────────────────────────────────────────── */
.sec-panel { background: var(--sec-surface); border: 1px solid var(--sec-line); border-radius: var(--sec-r); padding: 18px 20px; margin-bottom: 16px; }
.sec-panel > h2 { margin-bottom: 12px; }
.sec-panel-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.sec-panel-head h2 { margin-inline-end: auto; }
.sec-hint { margin: 0 0 12px; color: var(--sec-ink-3); font-size: 12.5px; max-width: 90ch; }
.sec-empty { margin: 8px 0; color: var(--sec-ink-3); font-size: 13px; }
.sec-muted { color: var(--sec-ink-3); font-size: 12px; }
.sec-ok { color: var(--sec-ok); font-weight: 700; }
.sec-warn { color: var(--sec-warn); font-weight: 700; }

.sec-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--sec-line); background: var(--sec-surface);
    color: var(--sec-ink); border-radius: var(--sec-r-sm); padding: 7px 14px; font: inherit; font-size: 12.5px; font-weight: 700; cursor: pointer;
    text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; }
.sec-btn:hover { background: var(--sec-canvas); }
.sec-btn.primary { background: var(--sec-act); border-color: var(--sec-act); color: #fff; }
.sec-btn.primary:hover { background: var(--sec-act-hover); }
.sec-btn.danger { color: var(--sec-bad); border-color: #f2c4bf; }
.sec-btn.danger:hover { background: var(--sec-bad-bg); }
.sec-modal .sec-btn.danger { background: var(--sec-bad); border-color: var(--sec-bad); color: #fff; }
.sec-btn.ghost { background: transparent; }
.sec-btn.sm { padding: 4px 10px; font-size: 12px; }
.sec-btn[disabled] { opacity: .5; cursor: not-allowed; }

.sec-pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sec-line-2); color: var(--sec-ink-2); vertical-align: middle; }
.sec-pill.violet { background: var(--sec-violet-bg); color: var(--sec-violet); }
.sec-pill.red { background: var(--sec-bad-bg); color: var(--sec-bad); }
.sec-pill.teal { background: var(--sec-ok-bg); color: var(--sec-ok); }
.sec-pill.amber { background: var(--sec-warn-bg); color: var(--sec-warn); }

.sec-alert { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: var(--sec-r-sm); margin-bottom: 12px; font-size: 13px; }
.sec-alert i { font-size: 20px; margin-top: 2px; }
.sec-alert > div { flex: 1; }
.sec-alert.err { background: var(--sec-bad-bg); color: var(--sec-bad); }

.sec-field { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; }
.sec-field > span { font-weight: 700; color: var(--sec-ink-2); }
.sec-field small { color: var(--sec-ink-3); font-size: 11.5px; line-height: 1.7; }
.sec-field input, .sec-field select { font: inherit; font-size: 13px; border: 1px solid #cfd6df; border-radius: var(--sec-r-sm); padding: 7px 10px;
    background: #fff; color: var(--sec-ink); min-width: 0; width: 100%; }
.sec-field input:focus, .sec-field select:focus { border-color: var(--sec-act); outline: none; box-shadow: 0 0 0 3px rgba(29,79,145,.15); }
.sec-field input[disabled] { background: var(--sec-canvas); }
.sec-field.inline { min-width: 130px; }
.sec-field.grow { flex: 1 1 220px; }
.sec-check { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--sec-ink-2); cursor: pointer; }
.sec-check input { width: 16px; height: 16px; accent-color: var(--sec-act); }
.sec-form-row, .sec-filters { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }

/* ── شاخص‌ها ─────────────────────────────────────────────── */
.sec-kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); margin: 0 0 16px; background: var(--sec-surface);
    border: 1px solid var(--sec-line); border-radius: var(--sec-r); }
.sec-kpis > div { padding: 12px 16px; border-inline-start: 1px solid var(--sec-line-2); }
.sec-kpis > div:first-child { border-inline-start: 0; }
.sec-kpis dt { font-size: 12px; color: var(--sec-ink-3); }
.sec-kpis dd { margin: 2px 0 0; font-size: 22px; font-weight: 800; font-variant-numeric: tabular-nums; }
.sec-kpis dd small { font-size: 11.5px; font-weight: 600; color: var(--sec-ink-3); }
.sec-kpis .hot dd { color: var(--sec-bad); }
.sec-kpis .warm dd { color: var(--sec-warn); }

.sec-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.sec-stack > .sec-panel:last-child { margin-bottom: 0; }
.sec-grid > *, .sec-panel { min-width: 0; }
.sec-grid { margin-bottom: 16px; }
.sec-grid > .sec-panel { margin-bottom: 0; }

/* ── ارزیابی ─────────────────────────────────────────────── */
.sec-posture ul { list-style: none; margin: 0; padding: 0; }
.sec-posture li { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; padding: 10px 0; border-top: 1px solid var(--sec-line-2); }
.sec-posture li:first-child { border-top: 0; padding-top: 0; }
.sec-posture li > i { font-size: 20px; margin-top: 2px; }
.sec-posture li b { font-size: 13.5px; }
.sec-posture li p { margin: 2px 0 0; color: var(--sec-ink-2); font-size: 12.5px; line-height: 1.85; }
.sec-posture .st-ok > i { color: var(--sec-ok); }
.sec-posture .st-warn > i { color: var(--sec-warn); }
.sec-posture .st-danger > i { color: var(--sec-bad); }
.sec-posture .st-danger b { color: var(--sec-bad); }

/* ── نمودار ──────────────────────────────────────────────── */
.sec-chart-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.sec-legend { display: flex; gap: 14px; list-style: none; margin: 0 0 0 auto; padding: 0; flex-wrap: wrap; font-size: 12px; color: var(--sec-ink-2); }
.sec-legend li { display: inline-flex; align-items: center; gap: 6px; }
.sec-legend i, .sec-tip i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.sec-chart-plot { position: relative; padding: 0 0 22px; }
.sec-chart-plot svg { width: 100%; height: 200px; display: block; overflow: visible; }
.sec-grid-line { stroke: var(--sec-line-2); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sec-axis-line { stroke: var(--sec-line); stroke-width: 1; vector-effect: non-scaling-stroke; }
.sec-bar { outline: none; cursor: default; }
.sec-bar rect:not([fill="transparent"]) { transition: opacity .15s; }
.sec-chart-plot:hover .sec-bar:not(.on) rect:not([fill="transparent"]) { opacity: .45; }
.sec-bar:focus-visible rect[fill="transparent"] { fill: rgba(29,79,145,.08); }
.sec-chart-x { position: absolute; inset: auto 0 0 0; height: 20px; }
.sec-chart-x span { position: absolute; transform: translateX(50%); font-size: 11px; color: var(--sec-ink-3); white-space: nowrap; }
.sec-chart-y { position: absolute; top: -2px; right: 0; font-size: 11px; color: var(--sec-ink-3); background: var(--sec-surface); padding-inline-end: 4px; }
.sec-tip { position: absolute; top: 4px; transform: translateX(50%); background: var(--sec-ink); color: #fff; border-radius: var(--sec-r-sm); padding: 8px 10px;
    font-size: 12px; display: flex; flex-direction: column; gap: 2px; pointer-events: none; box-shadow: 0 8px 24px rgba(24,35,58,.25); z-index: 2; min-width: 150px; }
.sec-tip span { display: inline-flex; align-items: center; gap: 6px; }

/* ── جدول‌ها ─────────────────────────────────────────────── */
.sec-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.sec-table th { text-align: right; font-weight: 700; color: var(--sec-ink-3); font-size: 12px; padding: 8px 10px; border-bottom: 1px solid var(--sec-line); white-space: nowrap; }
.sec-table td { padding: 9px 10px; border-bottom: 1px solid var(--sec-line-2); vertical-align: top; }
.sec-table tr:last-child td { border-bottom: 0; }
.sec-table tr.me td { background: #f6f9ff; }
.sec-table.compact td, .sec-table.compact th { padding: 6px 8px; }
.sec-actions { white-space: nowrap; text-align: left; }
.sec-actions .sec-btn + .sec-btn { margin-inline-start: 6px; }

/* ── رویدادها ────────────────────────────────────────────── */
.sec-events { list-style: none; margin: 0; padding: 0; }
.sec-events > li { border-top: 1px solid var(--sec-line-2); border-inline-start: 3px solid transparent; }
.sec-events > li:first-child { border-top: 0; }
.sec-events > li.sev-crit { border-inline-start-color: var(--sec-bad); }
.sec-events > li.sev-high { border-inline-start-color: #e0574a; }
.sec-events > li.sev-med { border-inline-start-color: var(--sec-c2); }
.sec-ev-row { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 10px; padding: 9px 10px;
    border: 0; background: transparent; font: inherit; color: inherit; text-align: right; cursor: pointer; }
.sec-ev-row:hover { background: var(--sec-canvas); }
.sec-ev-icon { font-size: 18px; color: var(--sec-ink-2); }
.sec-ev-main { display: flex; flex-direction: column; min-width: 0; }
.sec-ev-main b { font-size: 13px; }
.sec-ev-sub { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--sec-ink-3); }
.sec-sev { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 999px; background: var(--sec-line-2); color: var(--sec-ink-2); }
.sev-crit .sec-sev { background: var(--sec-bad); color: #fff; }
.sev-high .sec-sev { background: var(--sec-bad-bg); color: var(--sec-bad); }
.sev-med .sec-sev { background: var(--sec-warn-bg); color: var(--sec-warn); }
.sec-events time { font-size: 12px; color: var(--sec-ink-3); white-space: nowrap; }
.sec-ev-detail { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px 16px; margin: 0; padding: 4px 42px 12px 12px; font-size: 12.5px; }
.sec-ev-detail .wide { grid-column: 1 / -1; }
.sec-ev-detail dt { color: var(--sec-ink-3); font-size: 11.5px; }
.sec-ev-detail dd { margin: 0; overflow-wrap: anywhere; }
.sec-ua { display: block; color: var(--sec-ink-3); font-size: 11px; }
.sec-result-meta { font-size: 12.5px; color: var(--sec-ink-3); margin: 4px 0 8px; }
.sec-result-meta .err { color: var(--sec-bad); }
.sec-pager { display: flex; align-items: center; justify-content: center; gap: 12px; margin-top: 12px; font-size: 12.5px; color: var(--sec-ink-2); }

/* ── مسدودسازی و حساب‌ها ──────────────────────────────────── */
.sec-found { display: flex; align-items: flex-end; gap: 14px; flex-wrap: wrap; padding: 12px 14px; border: 1px dashed #cfd6df; border-radius: var(--sec-r-sm); margin-bottom: 14px; }
.sec-found > div:first-child { margin-inline-end: auto; }
.sec-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.sec-chips li { display: inline-flex; align-items: center; gap: 10px; border: 1px solid var(--sec-line); border-radius: var(--sec-r-sm); padding: 6px 8px 6px 12px; }
.sec-chips small { color: var(--sec-ink-3); }
.sec-rolebar { display: flex; flex-wrap: wrap; gap: 0; list-style: none; margin: 0 0 14px; padding: 0; border: 1px solid var(--sec-line-2); border-radius: var(--sec-r-sm); }
.sec-rolebar li { display: flex; align-items: baseline; gap: 6px; padding: 8px 14px; border-inline-start: 1px solid var(--sec-line-2); }
.sec-rolebar li:first-child { border-inline-start: 0; }
.sec-rolebar b { font-size: 16px; font-variant-numeric: tabular-nums; }
.sec-rolebar span { font-size: 12px; color: var(--sec-ink-3); }
.sec-rolebar li.admin b { color: var(--sec-violet); }

/* ── تنظیمات ─────────────────────────────────────────────── */
.sec-set-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 20px; margin-bottom: 8px; }
.sec-toggle { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-top: 1px solid var(--sec-line-2); cursor: pointer; }
.sec-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.sec-toggle-ui { flex-shrink: 0; width: 40px; height: 22px; border-radius: 11px; background: #c6cdd8; position: relative; margin-top: 3px; transition: background .2s; }
.sec-toggle-ui::after { content: ""; position: absolute; top: 3px; right: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.sec-toggle input:checked + .sec-toggle-ui { background: var(--sec-ok); }
.sec-toggle input:checked + .sec-toggle-ui::after { transform: translateX(-18px); }
.sec-toggle input:focus-visible + .sec-toggle-ui { outline: 2px solid var(--sec-act); outline-offset: 2px; }
.sec-toggle-text { display: flex; flex-direction: column; }
.sec-toggle-text b { font-size: 13px; }
.sec-toggle-text small { color: var(--sec-ink-3); font-size: 12px; }
.sec-savebar { position: sticky; bottom: 12px; z-index: 5; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 14px;
    background: var(--sec-surface); border: 1px solid var(--sec-line); border-radius: var(--sec-r); box-shadow: 0 6px 20px rgba(24,35,58,.08); }
.sec-savebar > span { margin-inline-end: auto; font-size: 12.5px; color: var(--sec-ink-3); }
.sec-savebar.dirty { border-color: var(--sec-act); }
.sec-savebar.dirty > span { color: var(--sec-act); font-weight: 700; }

/* ── وضعیت‌ها: بارگذاری، پیام، پنجره ─────────────────────── */
.sec-denied { max-width: 460px; margin: 60px auto; text-align: center; padding: 28px; background: var(--sec-surface); border: 1px solid var(--sec-line); border-radius: 16px; }
.sec-denied i { font-size: 44px; color: var(--sec-ink-3); }
.sec-denied h1 { font-size: 17px; margin: 10px 0 6px; }
.sec-denied p { color: var(--sec-ink-2); margin: 0; }
.sec-skeleton { display: grid; gap: 10px; }
.sec-skeleton span { height: 56px; border-radius: var(--sec-r); background: linear-gradient(90deg, var(--sec-line-2), #f7f9fb, var(--sec-line-2)); background-size: 200% 100%; animation: sec-shimmer 1.4s infinite; }
@keyframes sec-shimmer { to { background-position: -200% 0; } }
.sec-spin { animation: sec-rot 1s linear infinite; display: inline-block; }
@keyframes sec-rot { to { transform: rotate(360deg); } }
.sec-toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 1200; display: flex; align-items: center; gap: 8px; max-width: min(560px, calc(100vw - 32px));
    background: var(--sec-ink); color: #fff; padding: 10px 16px; border-radius: var(--sec-r); font-size: 13px; box-shadow: 0 10px 30px rgba(24,35,58,.3); }
.sec-toast i { font-size: 18px; color: #6ee7d8; }
.sec-toast.err { background: var(--sec-bad); }
.sec-toast.err i { color: #fff; }
.sec-modal-back { position: fixed; inset: 0; z-index: 1100; background: rgba(15,22,36,.5); display: grid; place-items: center; padding: 16px; }
.sec-modal { width: min(460px, 100%); background: var(--sec-surface); border-radius: 14px; padding: 20px 22px; box-shadow: 0 20px 60px rgba(15,22,36,.35); }
.sec-modal h2 { font-size: 16px; margin-bottom: 8px; }
.sec-modal p { margin: 0 0 14px; color: var(--sec-ink-2); }
.sec-modal .sec-field { margin-bottom: 14px; }
.sec-modal-actions { display: flex; gap: 8px; }

/* ── 🆕 (Update 72) صفِ احرازِ هویت ─────────────────────────── */
.sec-seg { display: flex; flex-wrap: wrap; gap: 4px; padding: 4px; background: var(--sec-canvas); border-radius: var(--sec-r-sm); margin-bottom: 12px; }
.sec-seg button { border: 0; background: transparent; font: inherit; font-size: 12.5px; font-weight: 700; color: var(--sec-ink-2); padding: 6px 12px; border-radius: 6px; cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.sec-seg button.on { background: var(--sec-surface); color: var(--sec-ink); box-shadow: 0 1px 3px rgba(24,35,58,.12); }
.sec-seg em { font-style: normal; font-size: 11px; background: var(--sec-act); color: #fff; border-radius: 999px; padding: 0 7px; }
.sec-idq { list-style: none; margin: 0; padding: 0; }
.sec-idq > li { border: 1px solid var(--sec-line); border-inline-start: 4px solid var(--sec-line); border-radius: var(--sec-r-sm); margin-bottom: 10px; padding: 10px 12px; }
.sec-idq > li.res-match { border-inline-start-color: var(--sec-c1); }
.sec-idq > li.res-mismatch { border-inline-start-color: var(--sec-bad); }
.sec-idq > li.res-unreadable, .sec-idq > li.res-error { border-inline-start-color: var(--sec-c2); }
.sec-idq-row { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr) minmax(120px, auto) auto; gap: 12px; align-items: center; }
.sec-idq-cmp { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.sec-idq-cmp small { display: block; font-size: 11px; color: var(--sec-ink-3); }
.sec-idq-cmp b { font-size: 13px; font-variant-numeric: tabular-nums; }
.sec-idq-res { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; color: var(--sec-ink-3); }
.sec-idq-notes { margin-top: 8px; font-size: 12px; color: var(--sec-ink-2); background: var(--sec-canvas); border-radius: 6px; padding: 6px 10px; }
.sec-idq-docs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 10px; }
.sec-idq-docs figure { margin: 0; text-align: center; }
.sec-idq-docs img { max-width: 100%; max-height: 360px; border-radius: 8px; border: 1px solid var(--sec-line); object-fit: contain; background: var(--sec-canvas); }
.sec-idq-docs figcaption { font-size: 11.5px; color: var(--sec-ink-3); margin-top: 4px; }
@media (max-width: 900px) { .sec-idq-row { grid-template-columns: 1fr; } .sec-idq-docs { grid-template-columns: 1fr; } }

/* ── واکنش‌گرایی ─────────────────────────────────────────── */
@media (max-width: 1100px) {
    .sec-kpis { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .sec-kpis > div:nth-child(4) { border-inline-start: 0; }
    .sec-kpis > div:nth-child(n+4) { border-top: 1px solid var(--sec-line-2); }
    .sec-grid { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 720px) {
    .sec { padding: 12px 12px 72px; }
    .sec-head { flex-direction: column-reverse; align-items: flex-start; padding: 18px; gap: 12px; }
    .sec-head h1 { font-size: 20px; }
    .sec-shield svg { width: 64px; height: 76px; }
    .sec-shield figcaption b { font-size: 32px; }
    .sec-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sec-kpis > div { border-inline-start: 0; border-top: 1px solid var(--sec-line-2); }
    .sec-kpis > div:nth-child(-n+2) { border-top: 0; }
    .sec-kpis > div:nth-child(even) { border-inline-start: 1px solid var(--sec-line-2); }
    .sec-panel { padding: 14px; }
    .sec-set-grid { grid-template-columns: minmax(0, 1fr); }
    .sec-ev-row { grid-template-columns: auto 1fr auto; }
    .sec-ev-row .sec-sev { display: none; }
    .sec-ev-detail { grid-template-columns: minmax(0, 1fr); padding-inline-start: 12px; }
    .sec-table.stack thead { display: none; }
    .sec-table.stack, .sec-table.stack tbody, .sec-table.stack tr, .sec-table.stack td { display: block; width: 100%; }
    .sec-table.stack tr { border: 1px solid var(--sec-line); border-radius: var(--sec-r-sm); margin-bottom: 10px; padding: 6px 10px; }
    .sec-table.stack td { border: 0; padding: 4px 0; display: flex; gap: 10px; justify-content: space-between; }
    .sec-table.stack td[data-label]::before { content: attr(data-label); color: var(--sec-ink-3); font-size: 11.5px; flex-shrink: 0; }
    .sec-table.stack td.sec-actions { justify-content: flex-start; padding-top: 8px; flex-wrap: wrap; gap: 6px; }
    .sec-actions .sec-btn + .sec-btn { margin-inline-start: 0; }
    .sec-filters .sec-field.inline { flex: 1 1 45%; min-width: 0; }
    .sec-table.compact { display: block; overflow-x: auto; white-space: nowrap; }
}
@media (prefers-reduced-motion: reduce) {
    .sec-shield-fill, .sec-toggle-ui, .sec-toggle-ui::after, .sec-bar rect { transition: none; }
    .sec-skeleton span, .sec-spin { animation: none; }
}
@media (forced-colors: active) {
    .sec-bar rect:not([fill="transparent"]) { forced-color-adjust: none; }
    .sec-tab.on { outline: 2px solid CanvasText; }
}

/* 🆕 (Update 73) مجوزِ سراسریِ احرازِ هویت */
.sec-alert.warn { background: var(--sec-warn-bg); color: var(--sec-warn); }
.sec-idg { border-inline-start: 4px solid var(--sec-line); }
.sec-idg.on { border-inline-start-color: var(--sec-ok); }
.sec-idg .sec-panel-head h2 i { color: var(--sec-act); margin-inline-end: 4px; }
.sec-idg-grid { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 16px; }
.sec-idg-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.sec-idg-crit { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; padding: 10px 12px; background: var(--sec-canvas); border-radius: var(--sec-r-sm); transition: opacity .15s; }
.sec-idg-crit.dim { opacity: .55; }
.sec-idg-crit select { min-height: 36px; border: 1px solid var(--sec-line); border-radius: 6px; padding: 0 8px; font: inherit; background: var(--sec-surface); color: var(--sec-ink); }
.sec-check.strong { font-weight: 700; color: var(--sec-ink); }
.sec-idg-impact { background: var(--sec-canvas); border-radius: var(--sec-r-sm); padding: 12px 14px; }
.sec-idg-impact h3 { margin: 0; font-size: 13px; color: var(--sec-ink-2); }
.sec-idg-impact ul { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--sec-ink); }
.sec-idg-impact li b { font-size: 15px; color: var(--sec-act); margin-inline-end: 2px; }
.sec-idg-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--sec-line-2); }
.sec-idg-sep { flex: 1; }
@media (max-width: 760px) {
    .sec-idg-grid { grid-template-columns: 1fr; }
    .sec-idg-sep { display: none; }
    .sec-idg-actions .sec-btn { flex: 1 1 100%; justify-content: center; }
}
.sec-idq-name { max-width: 240px; min-width: 0; }
.sec-idq-name .sec-pill { font-size: 10px; padding: 0 6px; margin-inline-start: 4px; vertical-align: middle; }
.sec-idq-name b { overflow-wrap: anywhere; }
