/* Inspector, record and facility pages (one-shot build 2026-10-07). Loaded after system.css.
   .lt = list table with its own grid, so the visits-table rules never reach it. Same look as the portal table:
   grey 48px head, 12/18 head text, dashed 1px row dividers, row hover neutral-50. */
.lt { border-radius: 8px; overflow: hidden; }
.lt-head, .lt-row { display: grid; grid-template-columns: var(--cols); align-items: center; }
.lt-head { min-height: 48px; background: var(--background-neutral-100); }
.lt-head > span { padding: 8px 16px; font: 500 12px/18px var(--font-family-text); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-row { min-height: 72px; padding: 6px 0; border-top: 1px dashed var(--border-neutral-secondary); color: inherit; transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.lt-head + .lt-row, .lt-ghead + .lt-row { border-top: 0; }
a.lt-row:hover { background: var(--background-neutral-50); }
a.lt-row:hover .vt-main { color: var(--text-primary); }
a.lt-row:focus-visible { outline-offset: -2px; }
.lt-c.is-end { text-align: end; align-items: flex-end; justify-content: flex-end; }
.lt-row .vt-cell { gap: 4px; }
.lt-row .vt-text b { font-weight: 600; color: var(--text-display); }
.lt-wrap { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.lt-person { gap: 12px; min-width: 0; }
.lt-name { display: flex; align-items: center; gap: 8px; min-width: 0; flex-wrap: wrap; }
.lt-name .vt-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lt-rec { display: inline-flex; align-items: center; gap: 8px; }
.lt-src { display: inline-flex; align-items: center; gap: 8px; }
.lt-ghead { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-top: 1px solid var(--border-neutral-tertiary); background: var(--background-white); cursor: default; }
.lt .vt-group:first-of-type .lt-ghead { border-top: 0; }
.lt-note { display: flex; align-items: center; gap: 8px; margin: 0 0 16px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.lt-note .ico { color: var(--icon-default-400, var(--text-secondary)); }
@media (max-width: 1240px) { .lt-head, .lt-row { grid-template-columns: var(--cols-md); } .lt .hide-md { display: none; } }
@media (max-width: 760px) { .lt-head, .lt-row { grid-template-columns: var(--cols-sm); } .lt .hide-sm { display: none; } .lt-head > span, .lt-row .vt-cell { padding-inline: 12px; } }

/* KPI rows on list pages: same tiles as the visits page */
.kpis .lib-kpi-foot { min-height: 18px; }

/* inspector file */
.work .wk-fig .sig-bar { height: 6px; margin: 4px 0 0; }
.acc li { gap: 12px; padding: 8px 0; }
.acc-t { display: flex; flex-direction: column; gap: 2px; min-width: 0; }

/* record page */
.rec-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rec-issue { margin: 16px 0 20px; font: 600 18px/28px var(--font-family-text); color: var(--text-display); }
.rec-facts { padding-top: 20px; border-top: 1px dashed var(--border-neutral-secondary); }
.rec-facts .fact dd a { color: inherit; }
.rec-facts .fact dd a:hover { color: var(--text-primary); }
.rec-src { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px; align-items: center; }
.rec-ev { margin-top: 20px; padding-top: 20px; border-top: 1px dashed var(--border-neutral-secondary); display: flex; flex-direction: column; gap: 12px; }
.tl { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.tl-step { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 48px; }
.tl-step::before { content: ''; position: absolute; inset-inline-start: 11px; top: 0; bottom: 0; width: 2px; background: var(--border-neutral-tertiary); }
.tl-step:first-child::before { top: 50%; } .tl-step:last-child::before { bottom: 50%; }
.tl-dot { position: relative; z-index: 1; width: 12px; height: 12px; margin-inline-start: 6px; border-radius: 50%; background: var(--background-white); border: 2px solid var(--border-neutral-primary); }
.tl-step.is-done .tl-dot { background: var(--background-success); border-color: var(--background-success); }
.tl-step.is-now .tl-dot { border-color: var(--background-success); box-shadow: 0 0 0 4px var(--tag-bg-success-light); }
.tl-t { font: 500 14px/20px var(--font-family-text); color: var(--text-display); }
.tl-step.is-next .tl-t { color: var(--text-secondary); font-weight: 400; }
.tl-m { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }

/* facility and record side lists link out */
.rests-main { color: inherit; flex-wrap: wrap; }
a.rests-main:hover .mono { color: var(--text-primary); text-decoration: underline; }
.vp-side .sig-bar { margin: 4px 0 8px; }

@media (max-width: 760px) {
  .rec-src { grid-template-columns: minmax(0, 1fr); }
  .kpis .lib-kpi-value { font-size: 24px; line-height: 32px; }
}

/* render-check fixes */
.lt-head > span { white-space: normal; line-height: 16px; }
.lt-name { flex-wrap: nowrap; }
.lt-name .sc-badge { flex: none; }
.wk-delta { display: inline-flex; align-items: center; gap: 8px; color: var(--text-secondary); }
.sig-bar i[style="flex:0"] { display: none; }
.rec-ev .ev { margin: 0; padding-top: 0; border-top: 0; }

/* finish-review fixes (2026-10-07) */
.lt-name { flex-direction: column; align-items: flex-start; gap: 4px; flex-wrap: nowrap; }
.lt-name .vt-main { white-space: normal; overflow: visible; text-overflow: clip; }
.only-sm { display: none; }
@media (max-width: 760px) { .only-sm { display: inline-flex; } }
.tl-step { grid-template-columns: 24px minmax(0, 1fr); min-height: 56px; }
.tl-body { display: flex; flex-direction: column; gap: 2px; padding: 6px 0; }
.lt-note { margin: -4px 0 12px; }
.panel-link { font: 500 14px/20px var(--font-family-text); color: var(--text-primary); }
.panel-link:hover { text-decoration: underline; }

/* visits poll 2026-10-07: trend chart and pillar bars in one panel */
.ov--trend { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
.ov--trend > .tp-chart { display: flex; flex-direction: column; gap: 20px; padding: 24px; min-width: 0; }
.ov--trend > .ov-pillars { padding: 24px; }
@media (max-width: 1240px) { .ov--trend { grid-template-columns: minmax(0, 1fr); } .ov--trend > .ov-pillars { border-inline-start: 0; border-top: 1px solid var(--border-neutral-tertiary); } }
@media (max-width: 760px) { .ov--trend > .tp-chart, .ov--trend > .ov-pillars { padding: 16px; } }

.ov--trend > .ov-pillars { display: flex; flex-direction: column; }
.ov--trend .pbars { flex: 1; display: flex; flex-direction: column; justify-content: space-evenly; margin-top: 12px; }
@media (max-width: 1240px) { .ov--trend .pbars { justify-content: flex-start; } }

/* board by any field + value-chain view (2026-10-07) */
.board { grid-template-columns: repeat(var(--n, 5), minmax(232px, 1fr)); overflow-x: auto; padding-bottom: 8px; }
.bcol-head .grp-title a { color: inherit; } .bcol-head .grp-title a:hover { color: var(--text-primary); }
.bcol-head .grp-tile .sig-dot { width: 10px; height: 10px; }
.bcol-head .grp-tile .ava { flex: none; }
.vcard.is-planned { border-style: dashed; }
.vc-rec { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
.stage-n { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-neutral-primary); font: 600 12px/1 var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.stage-strip { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; }
.stage-strip li { position: relative; display: flex; align-items: center; gap: 8px; padding: 10px 12px; font: 500 13px/18px var(--font-family-text); color: var(--text-primary-paragraph); border-bottom: 2px solid var(--background-success); }
.stage-strip li b { font: 600 12px/18px var(--font-family-text); color: var(--text-success, var(--background-success)); }
.stage-strip li + li::before { content: ''; position: absolute; inset-inline-start: -5px; top: 50%; width: 8px; height: 8px; border-top: 1.5px solid var(--border-neutral-primary); border-inline-start: 1.5px solid var(--border-neutral-primary); transform: translateY(-50%) rotate(-45deg); }
[dir="rtl"] .stage-strip li + li::before, :root[dir="rtl"] .stage-strip li + li::before { transform: translateY(-50%) rotate(135deg); }
.board--chain { grid-template-columns: repeat(6, minmax(220px, 1fr)); }
@media (max-width: 1240px) { .stage-strip { display: none; } }
.grp-sub { display: flex; flex-direction: column; } .grp-sub2 { color: var(--text-secondary); opacity: .85; }
.board--chain .bcol-head { align-items: flex-start; }

/* value chain = shadcn Stepper anatomy (StepperNav · Indicator · Separator · Title · Description, progress variant) on DGA tokens.
   Replaces the board-style chain (user 2026-10-07: the board design does not fit a chain). */
.stp { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); border-bottom: 1px solid var(--border-neutral-tertiary); }
.stp-trigger { display: flex; flex-direction: column; align-items: stretch; gap: 6px; min-width: 0; padding: 4px 0 16px; padding-inline-end: 12px; background: none; border: 0; border-bottom: 2px solid transparent; margin-bottom: -1px; text-align: start; cursor: pointer; color: inherit; font: inherit; transition: border-color .16s cubic-bezier(.2,.8,.2,1); }
.stp-trigger:hover .stp-title { color: var(--text-display); }
.stp-trigger:focus-visible { outline: 2px solid var(--border-primary, #1b8354); outline-offset: 2px; border-radius: 4px; }
.stp-trigger.is-on { border-bottom-color: var(--background-success); }
.stp-head { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.stp-ind { display: inline-flex; flex: none; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-neutral-primary); background: var(--background-white); font: 600 12px/1 var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.stp-trigger.is-on .stp-ind, .stp-ind.is-sm { background: var(--background-success); border-color: var(--background-success); color: #fff; }
.stp-sep { flex: 1; height: 1px; background: var(--border-neutral-secondary); }
.stp-title { font: 500 14px/20px var(--font-family-text); color: var(--text-primary-paragraph); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stp-trigger.is-on .stp-title { font-weight: 600; color: var(--text-display); }
.stp-n { font: 700 20px/28px var(--font-family-text); color: var(--text-display); font-variant-numeric: proportional-nums lining-nums; }
.stp-n small { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.stp-trigger.is-empty .stp-n { color: var(--text-secondary); }
.stp-bar { display: block; height: 4px; border-radius: 9999px; background: var(--background-neutral-100); overflow: hidden; }
.stp-bar i { display: block; height: 100%; border-radius: 9999px; background: var(--background-neutral-400); }
.stp-trigger.is-on .stp-bar i { background: var(--background-success); }
.stp-desc { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.stp-panel { padding-top: 20px; }
.stp-panel-head { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.stp-panel-head .muted { font: 400 12px/18px var(--font-family-text); }
.stp-panel-title { margin: 0; font: 600 16px/24px var(--font-family-text); color: var(--text-display); }
@media (max-width: 1240px) { .stp { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(160px, 1fr); overflow-x: auto; scrollbar-width: none; } }
@media (max-width: 760px) { .stp { grid-auto-columns: 148px; margin-inline: -16px; padding-inline: 16px; } .stp-desc { display: none; } }
.stp-trigger:focus-visible { outline-offset: -2px; }

/* stepper as an overview block (2026-10-07): no selection, no share bar, tab-style hover; six stages always visible; vertical on phone */
.stp-bar { display: none; }
.stp-trigger { position: relative; border-bottom: 0; margin-bottom: 0; text-decoration: none; }
.stp-trigger::after { content: ''; position: absolute; inset-inline: 0 12px; bottom: -1px; height: 3px; border-radius: 9999px; background: transparent; transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
a.stp-trigger:hover::after { background: var(--border-neutral-primary); }
a.stp-trigger:hover .stp-ind { border-color: var(--text-secondary); }
.stp-n { font: 600 16px/24px var(--font-family-text); font-variant-numeric: tabular-nums lining-nums; }
.stp-trigger.is-na .stp-title, .stp-trigger.is-na .stp-n { color: var(--text-secondary); }
@media (max-width: 1240px) { .stp { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); grid-auto-flow: row; overflow: visible; } .stp-title { white-space: normal; } }
@media (max-width: 760px) {
  .stp { grid-template-columns: minmax(0, 1fr); margin-inline: 0; padding-inline: 0; border-bottom: 0; }
  .stp-trigger { display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; column-gap: 12px; align-items: center; min-height: 48px; padding: 8px 0; }
  .stp-head { margin: 0; position: static; }
  .stp-sep { position: absolute; inset-inline-start: 11.5px; top: 36px; bottom: -12px; width: 1px; height: auto; }
  .stp-title { grid-column: 2; } .stp-n { grid-column: 3; grid-row: 1; } .stp-desc { display: none; }
  .stp-trigger::after { display: none; }
}

/* stage track: the value-chain view (rows = visits, columns = stages, pill = current stage) */
.trk-scroll { overflow-x: auto; border-radius: 8px; }
.trk { min-width: 1000px; }
.trk-row { display: grid; grid-template-columns: 236px repeat(6, minmax(112px, 1fr)); align-items: stretch; min-height: 60px; border-top: 1px dashed var(--border-neutral-secondary); transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.trk-head { min-height: 56px; background: var(--background-neutral-100); border-top: 0; }
.trk-head + .trk-row { border-top: 0; }
.trk-id { position: sticky; inset-inline-start: 0; z-index: 2; display: flex; flex-direction: column; justify-content: center; gap: 2px; min-width: 0; padding: 8px 16px; background: var(--background-white); color: inherit; font: 500 12px/18px var(--font-family-text); }
.trk-head .trk-id { background: var(--background-neutral-100); color: var(--text-secondary); }
a.trk-id:hover .vt-main { color: var(--text-primary); }
.trk-id .vt-main { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-id .vt-meta .ava { margin-inline-end: 2px; }
.trk-hc { display: flex; align-items: center; gap: 8px; padding: 8px; min-width: 0; }
.trk-ht { display: flex; flex-direction: column; min-width: 0; }
.trk-ht b { font: 600 12px/18px var(--font-family-text); color: var(--text-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.trk-ht small { font: 400 12px/16px var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.trk-cell { position: relative; display: flex; align-items: center; justify-content: center; padding: 0 6px; border-inline-start: 1px solid var(--border-neutral-tertiary); }
.trk-cell::before { content: ''; position: absolute; top: 50%; height: 2px; margin-top: -1px; inset-inline: 0; background: transparent; }
.trk-cell.is-past::before { background: var(--border-neutral-secondary); }
.trk-cell.is-past::after { content: ''; position: absolute; top: 50%; inset-inline-start: 50%; width: 6px; height: 6px; margin: -3px -3px 0; border-radius: 50%; background: var(--border-neutral-primary); }
.trk-cell.is-cur::before { inset-inline: 0 50%; background: var(--border-neutral-secondary); }
.trk-cell.is-cur[data-stage="plan"]::before { display: none; }
.trk-cell.is-over { background: var(--tag-bg-success-light); box-shadow: inset 0 0 0 1px var(--background-success); }
.trk-row.is-dragging { background: var(--background-neutral-50); }
.trk-row.is-dragging .trk-id { background: var(--background-neutral-50); }
.trk-pill { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; max-width: 100%; height: 28px; padding: 0 10px; border-radius: 9999px; border: 1px solid var(--border-neutral-secondary); background: var(--background-white); box-shadow: 0 1px 2px rgba(16, 24, 40, .05); font: 500 12px/16px var(--font-family-text); color: var(--text-display); white-space: nowrap; overflow: hidden; cursor: grab; font-variant-numeric: tabular-nums; }
.trk-pill:hover { border-color: var(--border-neutral-primary); }
.trk-pill:active { cursor: grabbing; }
.trk-pill:focus-visible { outline: 2px solid var(--background-primary); outline-offset: 2px; }
.trk-pill.is-plan { border-style: dashed; color: var(--text-primary-paragraph); }
.trk-pill .ico { flex: none; color: var(--text-secondary); }
.trk-pill .sig-dot { width: 8px; height: 8px; flex: none; }
.trk-date { display: none; }
.trk-dl { color: var(--text-secondary); } .trk-dl.is-warm { color: var(--tag-text-warning); } .trk-dl.is-hot { color: var(--text-error); }
.chainv .lt-note { margin: 0 0 12px; }
.toast { position: fixed; z-index: 60; inset-inline-start: 50%; bottom: 24px; transform: translateX(50%); display: flex; align-items: center; gap: 16px; max-width: calc(100vw - 32px); padding: 12px 16px; border-radius: 8px; background: var(--text-display); color: #fff; font: 400 14px/20px var(--font-family-text); box-shadow: 0 12px 16px -4px rgba(16, 24, 40, .08), 0 4px 6px -2px rgba(16, 24, 40, .03); animation: sys-fade .16s ease-out; }
.toast-undo { background: none; border: 0; padding: 0; color: #fff; font: 600 14px/20px var(--font-family-text); text-decoration: underline; cursor: pointer; }

/* dropdown lists: no layout footprint while closed; flip to the other edge when they would leave the viewport */
.dd:not(.is-open) .dd-list { display: none; }
.dd.is-flip .dd-list { inset-inline-start: auto; inset-inline-end: 0; }

.trk-row { grid-template-columns: 236px repeat(6, minmax(128px, 1fr)); }
.trk-hot { color: var(--text-error); }
.toolbar .search { flex: 1 1 200px; }
@media (max-width: 760px) { .trk { min-width: 0; width: max-content; } .trk-row { grid-template-columns: 132px repeat(6, 120px); } .trk-id { padding: 8px 10px; } .trk-id .vt-meta { display: none; } }

/* ===== visit page, portal detail pattern (2026-10-07; measured on «تفاصيل طلب الامتثال» 23102:93231) ===== */
.vp--cards { align-items: start; }
.vp-side--cards { background: transparent; border-radius: 0; gap: 20px; }
.vp-side--cards > .vd-card { padding: 20px; border-top: 0; margin: 0; }
.vp-side--cards > .vd-card .side-title, .vp-side--cards > .vd-card .panel-title { margin: 0 0 16px; }
/* summary card: padding 20 · gap 24; tags row gap 8; title 24/32; meta 12/18 with • ; framed facts */
.vd-sum { display: flex; flex-direction: column; gap: 24px; padding: 20px; }
.vd-top { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: start; }
.vd-info { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.vd-tags { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip-o { display: inline-flex; align-items: center; height: 24px; padding: 0 8px; border: 1px solid var(--border-neutral-secondary); border-radius: 9999px; font: 400 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); }
.vd-title { display: flex; align-items: center; gap: 8px; margin: 0; font: 700 24px/32px var(--font-family-text); color: var(--text-display); }
.vd-title a { color: inherit; } .vd-title a:hover { color: var(--text-primary); }
.vd-sub { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-sub i { font-style: normal; color: var(--background-neutral-400); }
.vd-sub bdi { color: var(--text-primary-paragraph); }
.vd-sum .verdict-reason { margin: 0; }
.vd-score { padding-inline-start: 24px; border-inline-start: 1px solid var(--border-neutral-tertiary); align-self: stretch; display: flex; align-items: center; }
.vd-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; border: 1px solid var(--border-neutral-tertiary); border-radius: 8px; }
.vd-fact { display: flex; flex-direction: column; gap: 6px; padding: 16px; min-width: 0; }
.vd-fact + .vd-fact { border-inline-start: 1px solid var(--border-neutral-tertiary); }
.vd-fact dt { display: flex; align-items: center; gap: 6px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-fact dt .ico, .vd-fact dt .ic { color: var(--text-display); }
.vd-fact dd { margin: 0; font: 500 14px/20px var(--font-family-text); color: var(--text-display); min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vd-fact dd a { color: inherit; } .vd-fact dd a:hover { color: var(--text-primary); }
/* what the visit failed: each check open with its evidence */
.vd-fails { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.vd-fail { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 16px 0; border-top: 1px dashed var(--border-neutral-secondary); }
.vd-fail:first-child { border-top: 0; padding-top: 0; }
.vd-fail-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.vd-fail-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.vd-fail-t { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.vd-fail .check-name { font: 600 14px/20px var(--font-family-text); color: var(--text-display); }
.vd-pillar { display: inline-flex; align-items: center; gap: 4px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-fail .ev { margin-top: 8px; padding-top: 0; border-top: 0; margin-inline-start: 0; }
/* pillar table: weight · integrity · contribution; rows expand to their checks */
.pt { border-radius: 8px; overflow: hidden; }
.pt-row { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 32px; align-items: center; width: 100%; min-height: 52px; padding: 0 16px; gap: 12px; background: none; border: 0; border-top: 1px dashed var(--border-neutral-secondary); text-align: start; font: 400 14px/20px var(--font-family-text); color: var(--text-primary-paragraph); cursor: pointer; }
button.pt-row:hover { background: var(--background-neutral-50); }
.pt-head { min-height: 48px; background: var(--background-neutral-100); border-top: 0; cursor: default; font: 500 12px/18px var(--font-family-text); color: var(--text-secondary); }
.pt-head + .pt-grp > .pt-row { border-top: 0; }
.pt-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 500; color: var(--text-display); }
.pt-num { font-variant-numeric: tabular-nums; }
.pt-chev { display: inline-flex; justify-content: flex-end; color: var(--text-secondary); }
.pt-grp.is-open > .pt-row { background: var(--background-neutral-50); }
.pt-checks { margin: 0; padding: 4px 16px 12px; padding-inline-start: 40px; background: var(--background-neutral-50); }
.pt-checks .check { min-height: 40px; border-top: 0; padding: 4px 0; }
.pt-total { cursor: default; font-weight: 600; color: var(--text-display); border-top: 1px solid var(--border-neutral-tertiary); }
/* سجل الزيارة: portal «سجل التحديثات» — 16px dot (green done / grey upcoming), 1px #f3f4f6 line, 14/18 SemiBold event, 12/18 date */
.vlog { list-style: none; margin: 0; padding: 0; }
.vlog-i { position: relative; display: grid; grid-template-columns: 16px minmax(0, 1fr); column-gap: 12px; row-gap: 2px; padding-bottom: 20px; }
.vlog-i:last-child { padding-bottom: 0; }
.vlog-i::before { content: ''; position: absolute; inset-inline-start: 7.5px; top: 20px; bottom: 0; width: 1px; background: var(--border-neutral-tertiary); }
.vlog-i:last-child::before { display: none; }
.vlog-dot { grid-row: 1 / span 2; width: 16px; height: 16px; margin-top: 1px; border-radius: 50%; background: var(--border-neutral-secondary); }
.vlog-i.is-done .vlog-dot { background: var(--background-primary); }
.vlog-i.is-now .vlog-dot { background: var(--background-white); box-shadow: inset 0 0 0 4px var(--tag-text-warning, #b54708); }
.vlog-t { font: 600 14px/18px var(--font-family-text); color: var(--text-display); }
.vlog-i.is-next .vlog-t { font-weight: 500; color: var(--text-secondary); }
.vlog-d { font: 500 12px/18px var(--font-family-text); color: var(--text-secondary); }
/* compact recording: transcript folded */
.rec-tx-toggle { align-self: flex-start; background: none; border: 0; padding: 0; cursor: pointer; }
@media (max-width: 1240px) { .vd-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .vd-fact:nth-child(3) { border-inline-start: 0; } .vd-fact:nth-child(n+3) { border-top: 1px solid var(--border-neutral-tertiary); } }
@media (max-width: 760px) {
  .vd-top { grid-template-columns: minmax(0, 1fr); } .vd-score { order: -1; padding: 0; border: 0; }
  .vd-title { font-size: 20px; line-height: 28px; }
  .pt-row { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr) minmax(0, .8fr) 24px; padding: 0 12px; } .pt-row > :nth-child(2) { display: none; }
}
.vp-side--cards > .vd-card .side-title { font: 700 20px/30px var(--font-family-text); color: var(--text-display); }
.vp-side--cards > .vd-card.side-block { gap: 0; }
.vp-side--cards > .vd-card .baseer-lines { margin: 0; }
.vp-side--cards > .vd-card .basis { margin-top: 12px; }

/* visit details with tabs (2026-10-07: "a visit details page with its analysis, not an analysis page with a bit of visit details") */
.vd-sum:has(> .vd-tabs) { padding-bottom: 0; }
.vd-tabs { margin: 0 -20px; border-top: 1px solid var(--border-neutral-tertiary); border-bottom: 0; border-radius: 0 0 8px 8px; height: 52px; }
.vd-tabpanel { display: flex; flex-direction: column; gap: 20px; }
.vd-rel { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; padding: 0; padding-inline-start: 24px; border: 0; border-inline-start: 1px solid var(--border-neutral-tertiary); background: none; cursor: pointer; text-align: end; align-self: stretch; justify-content: center; }
.vd-rel-l { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-rel-v b { font: 700 28px/36px var(--font-family-text); color: var(--text-display); font-variant-numeric: lining-nums; }
.vd-rel-v small { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-rel:hover .vd-rel-l { color: var(--text-primary); text-decoration: underline; }
.vd-relpanel { padding: 20px; }
.vd-dl { gap: 20px 24px; }
.vd-dl .fact dd a { color: inherit; } .vd-dl .fact dd a:hover { color: var(--text-primary); }
.vd-finds { list-style: none; margin: 0; padding: 0; }
.vd-finds li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto auto; align-items: center; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--border-neutral-secondary); }
.vd-finds li:first-child { border-top: 0; padding-top: 0; }
.vd-find-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.vd-find-t { font: 500 14px/20px var(--font-family-text); color: var(--text-display); }
.vd-find-ph .photo-frame { width: 96px; height: 64px; }
.ev-map.is-in .map-start { inset-inline-start: auto; inset-inline-end: calc(9% + 8px); top: 22%; }
.ev-map.is-in .map-end { inset-inline-start: auto; inset-inline-end: calc(9% + 24px); top: 68%; }
.ev-map.is-in .map-start::before, .ev-map.is-in .map-end::before { background: var(--background-primary); }
@media (max-width: 760px) { .vd-finds li { grid-template-columns: minmax(0, 1fr) auto; } .vd-find-ph { display: none; } .vd-rel { align-items: flex-start; padding: 0; border: 0; } .vd-tabs { overflow-x: auto; scrollbar-width: none; } }
.vd-sum { gap: 20px; }
.vd-sub .person { gap: 6px; } .vd-sub .person .vt-text { font: inherit; color: var(--text-primary-paragraph); }
.vd-lead { margin: -4px 0 16px; color: var(--text-primary-paragraph); }
/* side: score and video above the visit log (user 2026-10-07) */
.vd-scorecard { display: flex; flex-direction: column; gap: 8px; }
.vd-sc-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.vd-sc-head .panel-title { margin: 0 !important; }
.vd-sc-reason { margin: 4px 0 0; font: 400 14px/22px var(--font-family-text); color: var(--text-primary-paragraph); }
.vd-sc-link { align-self: flex-start; background: none; border: 0; padding: 0; margin-top: 8px; cursor: pointer; }
.vd-player { display: flex; flex-direction: column; gap: 8px; }
.vd-player .rec-screen { aspect-ratio: 16/9; }
.rec--noplayer { grid-template-columns: minmax(0, 1fr); }

/* body cameras (2026-10-07) */
.batt { display: inline-flex; align-items: center; gap: 8px; }
.batt i { display: block; width: 28px; height: 10px; border-radius: 2px; border: 1px solid var(--border-neutral-primary); background: linear-gradient(to left, var(--background-success) var(--w, 0%), transparent 0); position: relative; }
.batt b { font: 500 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); font-variant-numeric: tabular-nums; }
.batt.is-low b { color: var(--text-error); }
.cam-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vd-cam { display: flex; align-items: center; gap: 6px; margin: 4px 0 0; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.vd-cam a { color: var(--text-primary); }
@media (max-width: 1240px) { .cam-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) { .cam-row { grid-template-columns: minmax(0, 1fr); } }

/* team load block + reliability gauge (2026-10-07) */
.tl-bar { height: 10px; margin: 0 0 20px; }
.tl-bar i.tl-over, .sig-dot.tl-over { background: var(--background-primary-400, #54c08a); }
.tl-bar i.tl-within, .sig-dot.tl-within { background: var(--background-success); }
.tl-bar i.tl-under, .sig-dot.tl-under { background: var(--tag-text-warning, #b54708); }
.q-head { display: flex; align-items: center; gap: 8px; }
.q-head .q-view { margin-inline-start: auto; }
.gauge { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-top: 8px; }
.gauge-svg { width: 100%; max-width: 320px; align-self: center; overflow: visible; }
.g-track { fill: none; stroke: var(--background-neutral-100); stroke-width: 18; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--background-success); stroke-width: 18; stroke-linecap: round; }
.g-prev { stroke: var(--text-display); stroke-width: 2; }
.g-scale { font: 400 12px var(--font-family-text); fill: var(--text-secondary); }
.g-val { font: 700 36px var(--font-family-text); fill: var(--text-display); }
.g-sub { font: 400 12px var(--font-family-text); fill: var(--text-secondary); }
.gauge-foot { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 4px 0 0; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.g-key { display: inline-block; width: 2px; height: 12px; background: var(--text-display); }
@media (prefers-reduced-motion: no-preference) { .g-fill { stroke-dasharray: 400; stroke-dashoffset: 400; animation: sys-draw .9s cubic-bezier(.2,.8,.2,1) forwards; } }
.quality .gauge { flex: 1; justify-content: center; margin-top: 12px; }
.quality .gauge-svg { max-width: 360px; }
/* gauge, portal styling (2026-10-07) */
.g-track { stroke: var(--background-neutral-100); stroke-linecap: butt; stroke-width: 24; }
.g-fill { stroke: var(--background-success); stroke-linecap: butt; stroke-width: 24; }
.g-notch { stroke: var(--background-neutral-400); stroke-width: 1.5; stroke-linecap: round; }
.g-prev-halo { stroke: var(--background-white); stroke-width: 6; stroke-linecap: round; }
.g-prev { stroke: var(--text-display); stroke-width: 2.5; stroke-linecap: round; }
.g-val { font: 700 44px var(--font-family-text); fill: var(--text-display); font-variant-numeric: lining-nums; }
.g-sub { font: 400 14px var(--font-family-text); fill: var(--text-secondary); }
.g-scale { font: 400 11px var(--font-family-text); fill: var(--text-secondary); }
.quality .gauge-svg { max-width: 380px; }
.g-key { width: 3px; height: 14px; border-radius: 2px; }
@media (prefers-reduced-motion: no-preference) { .g-fill { stroke-dasharray: 420; stroke-dashoffset: 420; } }
/* cameras + team load side by side, 2×2 figures each (user 2026-10-07: no two long blocks) */
.ovg2--figs .cam-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 20px; }
.ovg2--figs .wk-fig { padding-inline: 20px; border-inline-start: 1px solid var(--border-neutral-tertiary); }
.ovg2--figs .wk-fig:nth-child(odd) { padding-inline-start: 0; border-inline-start: 0; }
.ovg2--figs .wk-fig:nth-child(n+3) { padding-top: 20px; border-top: 1px dashed var(--border-neutral-secondary); }
.ovg2--figs .wk-n { font-size: 28px; line-height: 36px; }
.ovg2--figs .tl-bar { margin-bottom: 16px; }
@media (max-width: 1240px) { .ovg2--figs { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 760px) { .ovg2--figs .cam-row { grid-template-columns: minmax(0, 1fr); } .ovg2--figs .wk-fig { padding: 0; border: 0; } .ovg2--figs .wk-fig:nth-child(n+2) { padding-top: 16px; border-top: 1px dashed var(--border-neutral-secondary); } }

/* ===== heavy review fixes (2026-10-07) ===== */
.score-pill.is-mid { color: var(--text-display); }
.tl-bar i.tl-under, .sig-dot.tl-under { background: var(--icon-error); }
/* paired figure blocks: grids aligned to the bottom, small units, balanced labels */
.ovg2--figs > .panel { display: flex; flex-direction: column; }
.ovg2--figs .cam-row { margin-top: auto; }
.ovg2--figs .wk-l { text-wrap: balance; }
.ovg2--figs .panel-head { flex-wrap: nowrap; align-items: flex-start; }
.wk-n small { font: 400 14px/20px var(--font-family-text); color: var(--text-secondary); }
@media (max-width: 1240px) { .ovg2--figs .cam-row { grid-template-columns: repeat(4, minmax(0, 1fr)); } .ovg2--figs .wk-fig:nth-child(odd) { padding-inline-start: 20px; border-inline-start: 1px solid var(--border-neutral-tertiary); } .ovg2--figs .wk-fig:first-child { padding-inline-start: 0; border-inline-start: 0; } .ovg2--figs .wk-fig:nth-child(n+3) { padding-top: 0; border-top: 0; } }
@media (max-width: 760px) { .ovg2--figs .cam-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; } .ovg2--figs .wk-fig, .ovg2--figs .wk-fig:nth-child(n+2) { padding: 0; border: 0; } .ovg2--figs .wk-fig:nth-child(n+3) { padding-top: 16px; border-top: 1px dashed var(--border-neutral-secondary); } .ovg2--figs .wk-fig:nth-child(even) { padding-inline-start: 12px; } .ovg2--figs .wk-n { font-size: 22px; line-height: 30px; } }
/* side columns: every section is its own card (one pattern on all detail pages) */
.vp-side { background: transparent; border-radius: 0; gap: 20px; }
.vp-side > .side-block { background: var(--background-white); border-radius: 8px; border-top: 0; padding: 20px; gap: 12px; }
.vp-side > .side-block .side-title { font: 700 20px/30px var(--font-family-text); color: var(--text-display); }
/* phone overview units table: one column, meta may wrap */
@media (max-width: 760px) { .un a.un-row { grid-template-columns: minmax(0, 1fr); row-gap: 4px; } .un a.un-row .vt-meta { white-space: normal; } }
/* maps never overflow; licence label clear of its dot */
.ev-loc, .ev-map { width: 100%; min-width: 0; }
.ev-map { overflow: hidden; }
.map-lic { inset-inline-end: calc(9% + 59px); }
/* pillar table numbers: colour, no pill */
.pt-num.is-bad { color: var(--text-error); font-weight: 600; }
/* phone KPI foot: the 3-result bar takes the full width */
@media (max-width: 760px) { .kpis .lib-kpi-foot { flex-direction: column; align-items: stretch; } .lib-kpi .sig-bar, .lib-kpi-foot .sig-bar { width: 100%; max-width: none; } }
/* single-line table heads */
.lt-head > span { white-space: nowrap; }
/* camera list: date-time on one line */
.lt-row bdi.mono { white-space: nowrap; }
.nowrap { white-space: nowrap; }
/* phone: no dangling separators in identity meta */
@media (max-width: 760px) { .vd-sub { gap: 4px 12px; } .vd-sub i { display: none; } }
/* one red for data marks (user 2026-10-07: "diff reds... why"): every bar, segment and legend dot uses the DGA chart red;
   the error red stays for text and icons only */
.sig-bar .bad, .sig-dot.bad, .sig-bar i.bad,
.tl-bar i.tl-under, .sig-dot.tl-under,
.pbar-track i, .pbar.is-on .pbar-track i,
.rk-row:hover .sig-bar .bad { background: var(--sys-chart-red-soft); }

/* ===== overview blocks 5 + 6 (2026-10-07) ===== */
.tabs.tabs--panel { margin: 0 -20px 12px; height: 44px; border-radius: 0; }
.tabs--panel .tab { height: 44px; padding: 12px 16px; }
.panel-sub.ins-sub { margin: 0 0 8px; }
.fu { display: flex; flex-direction: column; }
.fu-row { display: grid; grid-template-columns: minmax(0, 1fr) 96px 92px 56px; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border-neutral-secondary); color: inherit; }
.fu-row:first-child { border-top: 0; }
.fu-row:hover .vt-main { color: var(--text-primary); }
.fu-name { display: flex; align-items: center; gap: 8px; min-width: 0; }
.fu-id { display: flex; flex-direction: column; min-width: 0; }
.fu-id .vt-main, .fu-id .vt-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.fu-share { display: flex; align-items: center; justify-content: flex-end; gap: 6px; }
.fu-share .rk-bad > b { font-size: 14px; }
.fu-months { display: flex; flex-direction: column; align-items: flex-end; line-height: 18px; }
.fu-months b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 760px) { .fu-row { grid-template-columns: minmax(0, 1fr) 92px; } .fu-spark, .fu-months { display: none; } }

.pr { display: flex; flex-direction: column; list-style: none; margin: 0; padding: 0; }
.pr-item { display: grid; grid-template-columns: 24px minmax(0, 1fr); gap: 12px; padding: 12px 0; border-top: 1px dashed var(--border-neutral-secondary); }
.pr-item:first-child { border-top: 0; padding-top: 0; }
.pr-rank { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 9999px; background: var(--background-neutral-100); font: 600 12px/18px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.pr-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.pr-kind { font: 500 12px/18px var(--font-family-text); color: var(--text-secondary); }
.pr-t { margin: 0; font: 400 14px/22px var(--font-family-text); color: var(--text-display); }
.pr-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; font: 400 13px/20px var(--font-family-text); color: var(--text-primary-paragraph); }
.pr-meta b { font-weight: 600; color: var(--text-display); font-variant-numeric: tabular-nums; }
.pr-soon { display: inline-flex; align-items: center; gap: 4px; }
.pr-soon .ic { color: var(--tag-bg-error); }
.pr-soon b { color: var(--tag-bg-error); }
.pr-go { margin-inline-start: auto; font-size: 13px; }

.focus-chip { display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 6px 0 12px; border: 1px solid var(--border-neutral-secondary); border-radius: 8px; background: var(--background-white); font: 400 13px/20px var(--font-family-text); color: var(--text-primary-paragraph); max-width: 100%; }
.focus-chip b { font-weight: 600; color: var(--text-display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.focus-chip-n { padding: 0 8px; border-radius: 9999px; background: var(--background-neutral-100); font: 600 12px/18px var(--font-family-text); font-variant-numeric: tabular-nums; }
.focus-chip button { display: grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.focus-chip button:hover { background: var(--background-neutral-50); color: var(--text-display); }
/* chain panel at full width (2026-10-07): steps in one row, arrows point along the reading direction */
@media (min-width: 1100px) { .chain--wide .ch-arrow svg { transform: rotate(90deg); } .chain--wide .ch-arrow { padding-bottom: 0; } }

/* ===== cameras: live map + live stream (2026-10-08) ===== */
.cm-views { margin-inline-start: auto; }
.cm-map { display: grid; grid-template-columns: 340px minmax(0, 1fr); height: 620px; border: 1px solid var(--border-neutral-secondary); border-radius: 8px; overflow: hidden; }
.cm-side { min-height: 0; overflow: auto; border-inline-end: 1px solid var(--border-neutral-secondary); background: var(--background-white); }
.cm-map-main { position: relative; min-width: 0; display: flex; flex-direction: column; }
.cm-map-canvas { flex: 1; min-height: 0; background: var(--background-neutral-50); display: grid; place-items: center; z-index: 0; }
.cm-map-wait { font: 400 13px/20px var(--font-family-text); color: var(--text-secondary); direction: rtl; }
.cm-legend { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 16px; border-top: 1px solid var(--border-neutral-secondary); background: var(--background-white); font: 400 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); }
.cm-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.cm-legend-note { margin-inline-start: auto; color: var(--text-secondary); }

.cm-dot { display: inline-block; flex: none; width: 10px; height: 10px; border-radius: 9999px; }
.cm-dot.is-live { background: var(--background-primary); box-shadow: 0 0 0 3px #d3f8df; }
.cm-dot.is-ok { background: var(--background-white); border: 2px solid var(--background-primary); }
.cm-dot.is-err { background: var(--tag-bg-error); }
.cm-dot.is-free { background: var(--background-neutral-400); }

@keyframes cm-pulse { from { transform: scale(.6); opacity: .45; } to { transform: scale(1.6); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .cm-pin.is-live::before { animation: none; } .live-screen img { animation: none !important; } }

.cm-side-head { position: sticky; top: 0; z-index: 1; display: flex; align-items: baseline; justify-content: space-between; gap: 8px; padding: 14px 16px; border-bottom: 1px solid var(--border-neutral-secondary); background: var(--background-white); font: 400 13px/20px var(--font-family-text); color: var(--text-secondary); }
.cm-side-head b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); }
.cm-side-list ul { list-style: none; margin: 0; padding: 0; }
.cm-item { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%; padding: 10px 16px; border: 0; border-bottom: 1px dashed var(--border-neutral-secondary); background: transparent; text-align: start; cursor: pointer; font: inherit; color: inherit; }
.cm-item:hover { background: var(--background-neutral-50); }
.cm-item:focus-visible { outline: 2px solid var(--border-primary); outline-offset: -2px; }
.cm-item-main { display: flex; flex-direction: column; min-width: 0; }
.cm-item-main .vt-meta { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cm-empty { padding: 16px; }

.live-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 9999px; background: #f3fcf6; color: var(--text-primary); font: 600 12px/18px var(--font-family-text); white-space: nowrap; }
.live-chip .ic { width: 14px; height: 14px; }

.cm-live { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.cm-live-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.cm-live-head > div { display: flex; flex-direction: column; }
.cm-live-id { font: 600 16px/24px var(--font-family-text); color: var(--text-display); }
.cm-x { display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: transparent; color: var(--text-secondary); cursor: pointer; }
.cm-x:hover { background: var(--background-neutral-50); color: var(--text-display); }

.live-screen { position: relative; aspect-ratio: 4 / 3; border-radius: 8px; overflow: hidden; background: #111927; color: #fff; }
.live-screen img { position: absolute; inset: -6%; width: 112%; height: 112%; object-fit: cover; filter: saturate(.85) contrast(1.05); animation: live-walk 14s ease-in-out infinite alternate; }
.live-screen::after { content: ""; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.45)), linear-gradient(to bottom, rgba(0,0,0,.35), transparent 22%, transparent 75%, rgba(0,0,0,.45)); pointer-events: none; }
@keyframes live-walk { 0% { transform: translate(0,0) scale(1); } 30% { transform: translate(-2%,1%) scale(1.03); } 60% { transform: translate(1.5%,-1%) scale(1.05); } 100% { transform: translate(-1%,1.5%) scale(1.02); } }
.live-tl, .live-tr, .live-bl { position: absolute; z-index: 1; color: #fff; font: 500 12px/18px var(--font-family-text); text-shadow: 0 1px 2px rgba(0,0,0,.6); }
.live-tl { top: 10px; right: 10px; display: flex; align-items: center; gap: 8px; }
.live-tr { top: 12px; left: 12px; }
.live-bl { bottom: 10px; right: 12px; display: flex; flex-direction: column; align-items: flex-end; }
.live-chip.is-on { background: var(--tag-bg-error); color: #fff; text-shadow: none; }
.live-chip.is-on i { width: 6px; height: 6px; border-radius: 9999px; background: #fff; animation: live-blink 1.2s steps(2, start) infinite; }
@keyframes live-blink { to { visibility: hidden; } }
.live-fs { position: absolute; z-index: 1; bottom: 8px; left: 8px; display: grid; place-items: center; width: 32px; height: 32px; border: 0; border-radius: 6px; background: rgba(17,25,39,.55); color: #fff; cursor: pointer; }
.live-fs:hover { background: rgba(17,25,39,.8); }
.live-screen:fullscreen { aspect-ratio: auto; border-radius: 0; }
.live-off { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; aspect-ratio: 4 / 3; border-radius: 8px; border: 1px dashed var(--border-neutral-secondary); background: var(--background-neutral-50); text-align: center; padding: 16px; color: var(--text-secondary); font: 400 13px/20px var(--font-family-text); }
.live-off b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); }
.cm-live-note { margin: -4px 0 0; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.cm-facts { display: flex; flex-direction: column; margin: 0; }
.cm-fact { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px dashed var(--border-neutral-secondary); font: 400 13px/20px var(--font-family-text); }
.cm-fact dt { color: var(--text-secondary); }
.cm-fact dd { margin: 0; display: flex; flex-direction: column; align-items: flex-start; color: var(--text-display); min-width: 0; }
.cm-fact dd a { color: var(--text-primary); }
.cm-live-foot { padding-top: 4px; }

.leaflet-container { font-family: var(--font-family-text); }
@media (max-width: 760px) {
  .cm-map { grid-template-columns: minmax(0, 1fr); grid-template-rows: 360px auto; height: auto; }
  .cm-map-main { grid-row: 1; }
  .cm-side { grid-row: 2; border-inline-end: 0; border-top: 1px solid var(--border-neutral-secondary); max-height: 520px; }
}

.live-screen .mono { color: #fff; font-size: 12px; line-height: 18px; }
.cm-golive { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }

/* map pins v2 (2026-10-08) */
.cm-pin { position: relative; display: block; width: 32px; height: 40px; }
.cm-pin-b { position: absolute; inset: 0 0 8px 0; display: grid; place-items: center; border-radius: 8px; background: var(--background-white); border: 1px solid var(--border-neutral-primary); box-shadow: 0 2px 6px rgba(16,24,40,.18); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.cm-pin-b::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; border-right: inherit; border-bottom: inherit; transform: rotate(45deg); border-bottom-right-radius: 2px; }
.cm-pin-g { display: block; width: 16px; height: 16px; background: currentColor; -webkit-mask: url(../assets/icons/camera.svg) center/contain no-repeat; mask: url(../assets/icons/camera.svg) center/contain no-repeat; position: relative; z-index: 1; }
.cm-pin.is-ok .cm-pin-b { color: var(--text-primary); }
.cm-pin.is-live .cm-pin-b { background: var(--background-primary); border-color: var(--background-primary); color: #fff; }
.cm-pin.is-err .cm-pin-b { background: var(--tag-bg-error-light); border-color: #fda29b; color: var(--tag-bg-error); }
.cm-pin.is-free .cm-pin-b { border-style: dashed; color: var(--text-secondary); background: var(--background-neutral-50); }
.cm-pin-rec { position: absolute; z-index: 2; top: -4px; right: -4px; width: 10px; height: 10px; border-radius: 9999px; background: var(--tag-bg-error); border: 2px solid #fff; }
.cm-pin-rec::before { content: ""; position: absolute; inset: -4px; border-radius: 9999px; background: var(--tag-bg-error); opacity: .35; animation: cm-pulse 2s cubic-bezier(.2,.8,.2,1) infinite; }
.leaflet-marker-icon:hover .cm-pin-b, .leaflet-marker-icon:focus-visible .cm-pin-b { transform: translateY(-2px); }
.leaflet-marker-icon:focus-visible { outline: none; }
.leaflet-marker-icon:focus-visible .cm-pin-b { box-shadow: 0 0 0 3px rgba(27,131,84,.35); }
.cm-pin.is-sel .cm-pin-b { background: var(--text-display); border-color: var(--text-display); color: #fff; transform: scale(1.15); transform-origin: 50% 100%; }
.cm-pin-l { position: absolute; top: 100%; left: 50%; transform: translate(-50%, 6px); padding: 2px 8px; border-radius: 4px; background: var(--text-display); color: #fff; font: 600 12px/18px var(--font-family-text); white-space: nowrap; box-shadow: 0 2px 6px rgba(16,24,40,.2); }
.cm-pin--mini { width: 20px; height: 24px; display: inline-block; flex: none; }
.cm-pin--mini .cm-pin-b { inset: 0 0 5px 0; border-radius: 5px; box-shadow: none; }
.cm-pin--mini .cm-pin-b::after { width: 6px; height: 6px; margin-left: -3px; bottom: -4px; }
.cm-pin--mini .cm-pin-g { width: 11px; height: 11px; }
.cm-pin--mini .cm-pin-rec { width: 7px; height: 7px; top: -3px; right: -3px; border-width: 1.5px; }
.cm-pin--mini .cm-pin-rec::before { display: none; }
.cm-cluster { position: absolute; transform: translate(-50%, calc(-100% - 6px)); display: inline-flex; align-items: center; gap: 4px; height: 32px; padding: 0 8px; border-radius: 8px; background: var(--background-white); border: 1px solid var(--border-neutral-primary); box-shadow: 0 2px 6px rgba(16,24,40,.18); color: var(--text-primary); cursor: pointer; white-space: nowrap; direction: ltr; transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.cm-cluster::after { content: ""; position: absolute; left: 50%; bottom: -6px; width: 10px; height: 10px; margin-left: -5px; background: inherit; border-right: inherit; border-bottom: inherit; transform: rotate(45deg); border-bottom-right-radius: 2px; }
.cm-cluster b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.cm-cluster .cm-pin-g { width: 14px; height: 14px; }
.leaflet-marker-icon:hover .cm-cluster { border-color: var(--border-primary); transform: translate(-50%, calc(-100% - 8px)); }
.cm-cluster-live { position: absolute; top: -8px; right: -8px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9999px; border: 2px solid #fff; background: var(--tag-bg-error); color: #fff; font: 600 10px/14px var(--font-family-text); font-style: normal; text-align: center; font-variant-numeric: tabular-nums; }
@media (prefers-reduced-motion: reduce) { .cm-pin-rec::before { animation: none; } }
.cm-cluster--mini { position: relative; transform: none; height: 20px; padding: 0 6px; border-radius: 5px; box-shadow: none; cursor: default; margin: 0 4px 4px 6px; }
.cm-cluster--mini::after { width: 6px; height: 6px; margin-left: -3px; bottom: -4px; }
.cm-cluster--mini b { font-size: 11px; line-height: 16px; }
.cm-cluster--mini .cm-cluster-live { top: -6px; right: -8px; min-width: 14px; height: 14px; font-size: 9px; line-height: 10px; padding: 0 2px; border-width: 1.5px; }

/* audit 2026-10-08: inline text links get a 44px tap area on touch screens without moving the layout (WCAG 2.5.8) */
@media (pointer: coarse) {
  .panel-link, .panel-foot a, .vd-sc-link, .th-sort, .crumb a, .pr-go, a.rests-main { position: relative; }
  .panel-link::after, .panel-foot a::after, .vd-sc-link::after, .th-sort::after, .crumb a::after, .pr-go::after, a.rests-main::after { content: ""; position: absolute; inset: -12px -6px; }
}

/* ===== impeccable audit fixes (2026-10-08) ===== */
/* 5 · old phone rule pulled every evidence block 32px outward; only checks inside the pillar table need it */
@media (max-width: 760px) { .panel > .ev, .vd-tabpanel .ev { margin-inline-start: 0; } }
/* 2 · KPI share bar kept its height in the stacked phone foot */
@media (max-width: 760px) { .kpis .lib-kpi-foot .sig-bar { flex: none; height: 8px; } }
/* 3 · status tags may wrap instead of being cut at the card edge */
@media (max-width: 760px) { .lt-row .vt-cell { min-width: 0; } .lt-row .lib-tag { white-space: normal; height: auto; min-height: 24px; padding-block: 2px; border-radius: 12px; text-align: start; max-width: 100%; line-height: 18px; } }
/* 4 · device id never truncates */
.cm-id { white-space: nowrap; overflow: visible; }
@media (max-width: 760px) { .not-sm { display: none !important; } }
/* 6 · phone visit page: the verdict card comes right after the identity card */
@media (max-width: 1099px) {
  .vp--cards { display: flex; flex-direction: column; align-items: stretch; }
  .vp--cards > .vp-main > *, .vp--cards > .vp-side--cards > * { min-width: 0; }
  .vp--cards > .vp-main, .vp--cards > .vp-side--cards { display: contents; }
  .vp--cards > .vp-main > .vd-sum { order: -3; }
  .vp--cards > .vp-side--cards > :first-child { order: -2; }
}
/* 7 · phone tabs: tighter padding + end fade so the cut tab reads as scrollable */
@media (max-width: 760px) { .vd-tabs .tab { padding: 12px; } .vd-tabs { -webkit-mask-image: linear-gradient(to left, transparent 0, #000 32px); mask-image: linear-gradient(to left, transparent 0, #000 32px); } }
/* 8 · units table on phone: each figure carries its column name */
@media (max-width: 760px) { .un a.un-row .vt-cell[data-l] { flex-direction: column; align-items: flex-start; } .un a.un-row .vt-cell[data-l]::before { content: attr(data-l); display: block; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); } }
/* 9 · chain on phone: no boxes, dashed dividers like the figure blocks */
@media (max-width: 760px) { .chain .ch-step { border: 0; padding: 12px 0; } .chain .ch-arrow + .ch-step { border-top: 1px dashed var(--border-neutral-secondary); } .chain .ch-arrow { display: none; } }
/* 11 · units table: last head cell aligned with its values */
.un .vt-head.un-row > span:last-child { text-align: start; }
/* 13 · facility names wrap to two lines, like the reason beside them */
.vt-row .vt-fac .vt-main { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
/* 14 · phone table foot: count on its own line above the pager */
@media (max-width: 760px) { .vt-foot { flex-wrap: wrap; } .vt-foot > span:first-child { flex: 1 0 100%; white-space: nowrap; } }
/* 18 · phone overview figure blocks: one column; panel-head links stay on one line */
@media (max-width: 760px) {
  .ovg2--figs .cam-row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ovg2--figs .wk-fig, .ovg2--figs .wk-fig:nth-child(odd) { padding: 14px 0; border-inline-start: 0; border-top: 1px dashed var(--border-neutral-secondary); }
  .ovg2--figs .wk-fig:first-child { border-top: 0; padding-top: 0; }
}
.panel-head .panel-link { white-space: nowrap; }
/* 19 · record type is a category, not a state: paragraph ink */
.rc-type, .rc-type.is-obj { color: var(--text-primary-paragraph); }
.rc-type .ico-rec, .rc-type .ico { background-color: currentColor; }
/* 20 · camera coverage figure below the title weight (30/38) */
.cam-cov .score-num { font-size: 30px; line-height: 38px; }
/* toolbar control that cannot apply in the current view (2026-10-08): stays in place, greyed, reason on hover */
.dd.is-disabled .dd-btn { cursor: not-allowed; background: var(--background-neutral-50); border-color: var(--border-neutral-tertiary); color: var(--text-secondary); }
.dd.is-disabled .dd-btn .dd-value, .dd.is-disabled .dd-btn .ic { color: var(--text-secondary); }
.dd.is-disabled .dd-btn:hover { border-color: var(--border-neutral-tertiary); }
/* cameras map side list: group heads */
.cm-ghead { position: sticky; top: 49px; z-index: 1; display: flex; align-items: center; justify-content: space-between; padding: 8px 16px; background: var(--background-neutral-50); border-bottom: 1px solid var(--border-neutral-secondary); font: 600 12px/18px var(--font-family-text); color: var(--text-display); }
.cm-ghead b { font-weight: 600; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
/* visits toolbar in two rows (2026-10-08): search + view toggle, then the five dropdowns; the same in every view */
.toolbar.toolbar--2 { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "search views" "filters filters"; gap: 12px; }
.toolbar--2 > .search { grid-area: search; }
.toolbar--2 > .segs { grid-area: views; order: 0; }
.toolbar--2 > .tb-filters { grid-area: filters; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
@media (max-width: 760px) { .toolbar--2 > .tb-filters { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-inline: -16px; padding-inline: 16px; } .toolbar--2 > .tb-filters > * { flex: none; } }
.cm-st { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; }
/* alignment sweep (2026-10-08) */
.cm-item-main { align-items: flex-start; }               /* LTR device id hugs the start edge like the line under it */
.board { grid-template-columns: repeat(var(--n, 5), minmax(208px, 1fr)); } /* five columns fit at 1440 */

/* ===== overview: main column + follow-up rail (2026-10-08) ===== */
.ov-split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.ov-main, .ov-rail { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
/* units table at ⅔ width: the same cells the ≤1240 rule hides */
.ov-main .un .un-row, .ov-main .un .vt-head.un-row { grid-template-columns: minmax(0, 2fr) minmax(0, 1.3fr) 80px minmax(0, 1.3fr) minmax(0, 1fr); }
.ov-main .un .un-row > :nth-child(4), .ov-main .un .un-row > :nth-child(5), .ov-main .un .vt-head.un-row > span:nth-child(4), .ov-main .un .vt-head.un-row > span:nth-child(5) { display: none; }
/* rail: vertical chain, compact lists */
@media (min-width: 1100px) { .ov-rail .chain .ch-row { grid-template-columns: minmax(0, 1fr) 20px minmax(0, 1fr) 20px minmax(0, 1fr); } }
.ov-rail .chain .ch-n { font-size: 32px; line-height: 40px; }
.ov-rail .chain .ch-l { font-size: 14px; line-height: 20px; }
.ov-rail .chain .ch-read { grid-template-columns: minmax(0, 1fr); }
.ov-rail .chain .ch-row { display: flex !important; flex-direction: column; gap: 0; }
.ov-rail .chain .ch-step { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 16px; align-items: center; padding: 10px 0; border: 0; }
.ov-rail .chain .ch-n { grid-row: 1 / span 2; font-size: 32px; line-height: 40px; text-align: start; }
.ov-rail .chain .ch-l { font-size: 15px; line-height: 22px; }
.ov-rail .chain .ch-m, .ov-rail .chain .ch-inline { grid-column: 2; }
.ov-rail .chain .ch-arrow { justify-content: flex-start; padding: 0 0 0 0; padding-inline-start: 46px; height: 16px; color: var(--border-neutral-primary); }
.ov-rail .chain .ch-read { margin-top: 12px; }
@media (max-width: 760px) { .panel { padding: 16px; } .stack, .ovg, .ovg2, .ovg-why { gap: 16px; } .ov-rail .chain .ch-step { grid-template-columns: 88px minmax(0, 1fr); } .ov-rail .chain .ch-arrow { padding-inline-start: 34px; } }
.ov-rail .chain .ch-arrow { display: none; }
.ov-rail .chain .ch-arrow + .ch-step { border-top: 1px dashed var(--border-neutral-secondary); }
.ov-rail .chain .ch-row { display: flex !important; flex-direction: column; }
.ov-rail .rc-item { flex-wrap: wrap; row-gap: 6px; }
.ov-rail .rc-side { flex-direction: row-reverse; justify-content: flex-end; width: 100%; }
.ov-rail .wl-row { grid-template-columns: minmax(0, 1fr) 56px 36px 56px; }
.ov-rail .fu-row { grid-template-columns: minmax(0, 1fr) 84px 52px; }
.ov-rail .fu-spark { display: none; }
@media (max-width: 1240px) {
  .ov-split { grid-template-columns: minmax(0, 1fr); }
  .ov-rail { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: start; }
}
@media (max-width: 760px) { .ov-rail { display: flex; } }
/* overview stages: segmented bar (2026-10-08) */
.stg-bar { display: flex; gap: 2px; height: 14px; border-radius: 4px; overflow: hidden; }
.stg-seg { display: block; min-width: 4px; transition: opacity .16s cubic-bezier(.2,.8,.2,1); }
.stg-bar:hover .stg-seg { opacity: .55; } .stg-bar .stg-seg:hover { opacity: 1; }
.stg-keys { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; list-style: none; margin: 14px 0 0; padding: 0; }
.stg-keys a { display: flex; flex-direction: column; gap: 2px; padding: 6px 8px; margin: -6px -8px; border-radius: 4px; color: inherit; }
.stg-keys a:hover { background: var(--background-neutral-50); }
.stg-keys a:focus-visible { outline: 2px solid var(--border-primary); outline-offset: 0; }
.stg-name { display: flex; align-items: center; gap: 6px; font: 500 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); }
.stg-name i { flex: none; width: 8px; height: 8px; border-radius: 2px; }
.stg-n { font: 600 16px/24px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.stg-pct { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
@media (max-width: 760px) { .stg-keys { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 14px; } }
/* ===== overview units: stacked bars per scope (block makeover 1, 2026-10-08) ===== */
.un2-title { display: flex; align-items: center; gap: 6px; }
.un2 { display: flex; flex-direction: column; }
.un2-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.1fr) minmax(0, 1.25fr); gap: 24px; align-items: center; padding: 14px 8px; margin-inline: -8px; border-top: 1px dashed var(--border-neutral-secondary); border-radius: 4px; color: inherit; transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.un2-row:first-child { border-top: 0; }
.un2-row:hover { background: var(--background-neutral-50); }
.un2-row:hover .vt-main { color: var(--text-primary); }
.un2-row:focus-visible { outline: 2px solid var(--border-primary); outline-offset: -2px; }
.un2-scope { display: flex; align-items: center; gap: 12px; min-width: 0; }
.un2-bars { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.un2-line { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; }
.un2-line + .un2-plan + .un2-line { margin-top: 6px; }
.un2-bl { font: 500 12px/18px var(--font-family-text); color: var(--text-secondary); }
.un2-bv { display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.un2-bv b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.un2-bv b.is-bad { color: var(--text-error); }
.un2-plan { position: relative; display: block; height: 8px; border-radius: 9999px; background: var(--background-neutral-100); }
.un2-plan i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 9999px; background: var(--background-success); }
.un2-tick { position: absolute; top: -3px; bottom: -3px; width: 2px; margin-inline-start: -1px; border-radius: 1px; background: var(--text-display); }
.un2-sig.sig-bar { height: 8px; margin: 0; }
.un2-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.un2-fact { display: flex; flex-direction: column; min-width: 0; }
.un2-fl { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.un2-fact b { font: 600 16px/24px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.un2-legend { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--border-neutral-tertiary); }
.un2-legend i { display: inline-block; vertical-align: -1px; margin-inline-end: 4px; }
.un2-k-plan { width: 14px; height: 6px; border-radius: 9999px; background: var(--background-success); }
.un2-k-tick { width: 2px; height: 12px; background: var(--text-display); }
.legend2 { display: flex; flex-wrap: wrap; gap: 6px 16px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
@media (max-width: 760px) {
  .un2-row { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .un2-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
.panel-head > div.un2-title { flex-direction: row; align-items: center; }
.un2-row { grid-template-columns: minmax(0, 1.25fr) minmax(0, 2fr) auto; }
.un2-scope .vt-main { white-space: normal; }
.un2-facts { grid-template-columns: repeat(3, auto); gap: 20px; }
.un2-fl { overflow: visible; }
@media (max-width: 760px) { .un2-row { grid-template-columns: minmax(0, 1fr); } .un2-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
/* ===== overview units, direction A: compact table (2026-10-08) ===== */
.un3-tools { display: flex; align-items: center; gap: 12px; }
.un3-tools .dd-btn { height: 32px; }
.un3 { display: flex; flex-direction: column; }
.un3-row { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.6fr) minmax(0, 1.6fr) minmax(0, .8fr) minmax(0, .8fr); gap: 20px; align-items: center; padding: 12px 8px; margin-inline: -8px; border-top: 1px dashed var(--border-neutral-secondary); border-radius: 4px; color: inherit; }
a.un3-row:hover { background: var(--background-neutral-50); }
a.un3-row:hover .vt-main { color: var(--text-primary); }
a.un3-row:focus-visible { outline: 2px solid var(--border-primary); outline-offset: -2px; }
.un3-head { border-top: 0; padding-top: 0; padding-bottom: 10px; border-bottom: 1px solid var(--border-neutral-tertiary); border-radius: 0; align-items: end; }
.un3-head + .un3-row { border-top: 0; }
.un3-head > span { display: flex; flex-direction: column; font: 500 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); }
.un3-head small { font: 400 11px/16px var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.un3-head .is-num, .un3-num { text-align: end; }
.un3-scope { display: flex; flex-direction: column; min-width: 0; }
.un3-cell { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 10px; }
.un3-cell > b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; min-width: 48px; }
.un3-cell > b.is-bad { color: var(--text-error); }
.un3-v { display: inline-flex; align-items: center; gap: 4px; }
.un3-bul { position: relative; display: block; height: 8px; border-radius: 9999px; background: var(--background-neutral-100); }
.un3-bul i { position: absolute; inset-block: 0; inset-inline-start: 0; border-radius: 9999px; background: var(--text-secondary); }
.un3-bul.is-plan i { background: var(--background-success); }
.un3-bul.is-bad i { background: #f97066; }
.un3-avg { position: absolute; top: -4px; bottom: -4px; width: 2px; margin-inline-start: -1px; border-radius: 1px; background: var(--text-display); }
.un3-num { font: 600 16px/24px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.un3-num.is-over { color: var(--text-error); }
.un3-k-avg { width: 2px; height: 12px; background: var(--text-display); }
@media (max-width: 760px) {
  .un3-head { display: none; }
  .un3-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px 16px; }
  .un3-scope { grid-column: 1 / -1; }
  .un3-num { text-align: start; }
  .un3-num::before { display: block; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
  .un3-row > .un3-num[data-l]::before { content: attr(data-l); }
  .un3-tools .dd-label { display: none; }
}
.un2-title .help-tip { inset-inline-start: auto; inset-inline-end: -8px; }  /* opens toward the title, stays on screen */
@media (max-width: 760px) { .help-tip { max-width: calc(100vw - 32px); } }
.un3-cell--d { grid-template-columns: auto minmax(0, 1fr) auto; }
.un3-cell > .delta { justify-self: start; }
@media (min-width: 761px) { .un3-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.8fr) minmax(0, .8fr) minmax(0, .8fr); } } /* scoped: it overrode the phone grid (review 2026-10-08) */
/* after the first render: no replay of entrance animations */
.settled .chart .line, .settled .chart .area, .settled .chart .dot, .settled .chart .col, .settled .g-fill { animation: none !important; }
.settled .chart .line, .settled .g-fill { stroke-dashoffset: 0; }
.settled .chart .area, .settled .chart .dot { opacity: 1; }
.settled .chart .col { opacity: .5; }
/* ===== block 1 map view (2026-10-08) ===== */
.unm { border: 1px solid var(--border-neutral-secondary); border-radius: 8px; overflow: hidden; }
.unm-canvas { height: 380px; display: grid; place-items: center; background: var(--background-neutral-50); z-index: 0; }
.unm-pin { position: absolute; transform: translate(-50%, -50%); display: block; cursor: pointer; }
.unm-pin > i { display: block; width: var(--s); height: var(--s); border-radius: 9999px; background: rgba(108,115,127,.35); border: 2px solid var(--text-secondary); box-shadow: 0 2px 6px rgba(16,24,40,.18); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.unm-pin.is-over > i { background: rgba(249,112,102,.45); border-color: var(--tag-bg-error); }
.unm-pin:hover > i { transform: scale(1.06); }
.unm-l { position: absolute; top: 50%; right: calc(100% + 8px); transform: translateY(-50%); display: flex; flex-direction: column; padding: 6px 10px; border-radius: 8px; background: var(--background-white); border: 1px solid var(--border-neutral-secondary); box-shadow: 0 2px 6px rgba(16,24,40,.12); white-space: nowrap; direction: rtl; text-align: right; font-family: var(--font-family-text); }
.unm-l b { font: 600 13px/18px var(--font-family-text); color: var(--text-display); }
.unm-l em { font: 600 12px/18px var(--font-family-text); font-style: normal; color: var(--text-error); font-variant-numeric: tabular-nums; }
.unm-pin:not(.is-over) .unm-l em { color: var(--text-display); }
.unm-l small { font: 400 11px/16px var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.unm-pin:hover .unm-l { border-color: var(--border-primary); }
.unm-k { display: inline-block; width: 10px; height: 10px; border-radius: 9999px; background: rgba(108,115,127,.35); border: 1.5px solid var(--text-secondary); vertical-align: -1px; margin-inline-end: 4px; }
.unm-k.is-over { background: rgba(249,112,102,.45); border-color: var(--tag-bg-error); }
.unm-note { margin-inline-start: auto; }
@media (max-width: 760px) { .unm-canvas { height: 320px; } }
.unm-pin.side-r .unm-l { right: auto; left: calc(100% + 8px); }
.unm-pin.side-b .unm-l, .unm-pin.side-t .unm-l { right: auto; left: 50%; transform: translateX(-50%); }
.unm-pin.side-b .unm-l { top: calc(100% + 8px); }
.unm-pin.side-t .unm-l { top: auto; bottom: calc(100% + 8px); }
/* ===== block 1 heatmap polish (2026-10-08): shadcn popover/tooltip anatomy on DGA tokens ===== */
.unm { position: relative; }
.unm-canvas { height: 400px; }
.unm-icon { background: none; border: 0; }
.unm-pin { all: unset; position: absolute; transform: translate(-50%, -50%); display: block; cursor: pointer; }
.unm-pin > i { display: block; width: 12px; height: 12px; border-radius: 9999px; background: var(--background-white); border: 2.5px solid var(--text-secondary); box-shadow: 0 1px 3px rgba(16,24,40,.25); transition: transform .16s cubic-bezier(.2,.8,.2,1); }
.unm-pin.is-over > i { border-color: var(--tag-bg-error); }
.unm-pin:hover > i, .unm-pin:focus-visible > i { transform: scale(1.25); }
.unm-pin .unm-l { gap: 1px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-neutral-secondary); background: rgba(255,255,255,.96); box-shadow: 0 4px 12px -2px rgba(16,24,40,.12), 0 2px 4px -2px rgba(16,24,40,.06); transition: border-color .16s cubic-bezier(.2,.8,.2,1), box-shadow .16s cubic-bezier(.2,.8,.2,1); }
.unm-pin:hover .unm-l, .unm-pin:focus-visible .unm-l { border-color: var(--border-primary); box-shadow: 0 8px 16px -4px rgba(16,24,40,.16), 0 2px 4px -2px rgba(16,24,40,.06); }
.unm-pin:focus-visible { outline: none; }
.unm-pin:focus-visible .unm-l { outline: 2px solid var(--border-primary); outline-offset: 2px; }
.unm-l em { display: inline-flex; align-items: center; gap: 6px; }
.unm-l em s { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--text-secondary); text-decoration: none; }
.unm-pin.is-over .unm-l em s { background: var(--tag-bg-error); }
.unm-k { background: var(--background-white); border-width: 2.5px; width: 12px; height: 12px; }
/* map chrome on DGA tokens */
.unm .leaflet-control-zoom { border: 1px solid var(--border-neutral-primary); border-radius: 8px; overflow: hidden; box-shadow: 0 1px 2px rgba(16,24,40,.06); }
.unm .leaflet-control-zoom a { width: 32px; height: 32px; line-height: 30px; color: var(--text-default); font: 500 18px/30px var(--font-family-text); border-bottom-color: var(--border-neutral-tertiary); }
.unm .leaflet-control-zoom a:hover { background: var(--background-neutral-50); color: var(--text-display); }
.unm .leaflet-control-attribution { font: 400 10px/14px var(--font-family-text); color: var(--text-secondary); background: rgba(255,255,255,.8); }
.unm-legend { position: absolute; z-index: 500; bottom: 28px; right: 12px; display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--border-neutral-secondary); background: rgba(255,255,255,.96); box-shadow: 0 2px 6px rgba(16,24,40,.08); }
.unm-legend-t { font: 500 12px/18px var(--font-family-text); color: var(--text-display); }
.unm-ramp { display: flex; align-items: center; gap: 8px; font: 400 11px/16px var(--font-family-text); color: var(--text-secondary); }
.unm-ramp i { display: block; width: 120px; height: 8px; border-radius: 9999px; background: linear-gradient(to left, #fee4e2, #fda29b 35%, #f97066 70%, #d92d20); }
@media (max-width: 760px) { .unm-canvas { height: 340px; } .unm-legend { right: 8px; bottom: 24px; padding: 8px 10px; } .unm-ramp i { width: 80px; } }
/* heatmap: dots only; the label opens on hover / keyboard focus (2026-10-08) */
.unm-pin > i { width: 14px; height: 14px; }
.unm-pin::after { content: ""; position: absolute; inset: -10px; border-radius: 9999px; }   /* 34px hit area */
.unm-pin .unm-l { opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .14s cubic-bezier(.2,.8,.2,1), visibility 0s linear .14s; }
.unm-pin:hover .unm-l, .unm-pin:focus-visible .unm-l { opacity: 1; visibility: visible; transition-delay: 0s; }
.unm-icon:hover, .unm-icon:focus-within { z-index: 1000 !important; }
.unm .leaflet-container { cursor: grab; } .unm .leaflet-dragging .leaflet-container { cursor: grabbing; }
/* ===== block 1 choropleth (2026-10-08) ===== */
.unm-tip.leaflet-tooltip { padding: 0; border: 0; background: none; box-shadow: none; }
.unm-tip.leaflet-tooltip::before { display: none; }
.unm-tip .unm-l { position: static; transform: none; opacity: 1; visibility: visible; display: flex; flex-direction: column; gap: 1px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border-neutral-secondary); background: rgba(255,255,255,.97); box-shadow: 0 8px 16px -4px rgba(16,24,40,.16), 0 2px 4px -2px rgba(16,24,40,.06); direction: rtl; text-align: right; white-space: nowrap; }
.unm-tip .unm-l em s { display: inline-block; width: 10px; height: 10px; border-radius: 2px; text-decoration: none; }
.unm-tip .unm-l em { color: var(--text-display); }
.unm-steps { display: flex; gap: 2px; } .unm-steps i { display: block; width: 32px; height: 10px; }
.unm-steps i:first-child { border-radius: 0 2px 2px 0; } .unm-steps i:last-child { border-radius: 2px 0 0 2px; }
.unm-ramp-l { display: flex; justify-content: space-between; font: 400 11px/16px var(--font-family-text); color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.unm-na { display: flex; align-items: center; gap: 6px; font: 400 11px/16px var(--font-family-text); color: var(--text-secondary); }
.unm-na i { display: block; width: 14px; height: 10px; border-radius: 2px; background: rgba(210,214,219,.7); border: 1px solid #9da4ae; }
.unm .leaflet-interactive { cursor: pointer; }
.unm .leaflet-interactive:focus { outline: none; }
/* block 1 in-block drill trail (2026-10-08): the header filter is never changed from inside the block */
.un-crumb { display: flex; align-items: center; gap: 6px; margin: -4px 0 12px; font: 500 13px/20px var(--font-family-text); color: var(--text-display); }
.un-crumb button { all: unset; cursor: pointer; color: var(--text-primary); border-radius: 4px; }
.un-crumb button:hover { text-decoration: underline; }
.un-crumb button:focus-visible { outline: 2px solid var(--border-primary); outline-offset: 2px; }
.un-crumb .ic { color: var(--text-secondary); }
.un3-row.is-leaf { cursor: default; }
.unm-l--muted b { color: var(--text-primary-paragraph); }
.unm .leaflet-pane svg, .unm .leaflet-pane canvas { max-width: none !important; max-height: none !important; }  /* custom map panes are 0-sized; the base max-width:100% collapsed the mask */
.unm .leaflet-container { background: #ffffff; }  /* uncovered area during a zoom = the mask colour, no grey blink */
.un-crumb[hidden] { display: none; }

/* ===== overview rule (user 2026-10-08): switching a view, tab, sort or filter never changes a block's height ===== */
@media (min-width: 761px) {
  .units .un3, .units .unm { height: 360px; }
  .units .un3 { overflow-y: auto; }
  .units .unm-canvas { height: 100%; }
  .units .un2-legend { min-height: 50px; align-content: flex-start; }
  .units .un-crumb { min-height: 20px; }
  /* blocks whose content count varies with tab or scope: their tallest state is the floor, the footer stays at the bottom */
  section.panel[aria-label="المراقبون"], section.panel[aria-label="أولويات المراجعة"], section.panel[aria-label="مخالفات واعتراضات غير موثوقة"] { display: flex; flex-direction: column; }
  section.panel[aria-label="المراقبون"] { min-height: 740px; }
  section.panel[aria-label="أولويات المراجعة"] { min-height: 745px; }
  section.panel[aria-label="مخالفات واعتراضات غير موثوقة"] { min-height: 635px; }
  section.panel[aria-label="المراقبون"] > .panel-foot, section.panel[aria-label="أولويات المراجعة"] > .panel-foot, section.panel[aria-label="مخالفات واعتراضات غير موثوقة"] > .panel-foot { margin-top: auto; }
}
/* «المقياس»: the measured column is marked in the list head */
.un3-head > span.is-on { color: var(--text-display); font-weight: 600; }
.un3-head > span.is-on::after { content: ""; display: block; width: 24px; height: 2px; margin-top: 4px; border-radius: 1px; background: var(--border-primary); }
/* pillars in the narrow column under the gauge (2026-10-08): name · count · share on one line, the bar full width under them */
.ov-rail .pbar { grid-template-columns: minmax(0, 1fr) auto 52px; grid-template-areas: "name n pct" "track track track"; row-gap: 6px; padding: 8px; }
.ov-rail .pbar-name { grid-area: name; }
.ov-rail .pbar-n { grid-area: n; }
.ov-rail .pbar-pct { grid-area: pct; text-align: end; }
.ov-rail .pbar-track { grid-area: track; }
/* reliability per pillar (2026-10-08) */
.pl2-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.pl2-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name v" "bar bar"; gap: 6px 12px; padding: 10px 8px; margin-inline: -8px; border-radius: 4px; color: inherit; border-top: 1px dashed var(--border-neutral-secondary); }
.pl2-list li:first-child .pl2-row { border-top: 0; }
.pl2-row:hover { background: var(--background-neutral-50); }
.pl2-row:focus-visible { outline: 2px solid var(--border-primary); outline-offset: -2px; }
.pl2-name { grid-area: name; display: flex; align-items: center; gap: 8px; font: 500 14px/20px var(--font-family-text); color: var(--text-display); min-width: 0; }
.pl2-v { grid-area: v; display: inline-flex; align-items: baseline; gap: 4px; }
.pl2-v b { font: 600 16px/24px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.pl2-v small { font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.pl2-bar.sig-bar { grid-area: bar; height: 8px; margin: 0; }
.pl2-keys { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 10px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.pl2-keys .sig-key { display: inline-flex; align-items: center; gap: 6px; }
/* ===== reframe to raising reliability (2026-10-08) ===== */
.g-target { stroke: #067647; stroke-width: 3; stroke-linecap: round; }
.g-target-halo { stroke: #fff; stroke-width: 7; stroke-linecap: round; }
.gauge-goal { display: flex; align-items: center; justify-content: center; gap: 8px; margin: 2px 0 0; font: 500 13px/20px var(--font-family-text); color: var(--text-display); }
.g-key--target { background: #067647; width: 3px; }
.gauge-gap { padding: 0 8px; border-radius: 9999px; background: #ecfdf3; color: #067647; font: 600 12px/20px var(--font-family-text); font-variant-numeric: tabular-nums; }
.un3-bul.is-ok i { background: var(--background-success); }
.un3-cell > b.is-met { color: #067647; }
.pl2-lift { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 4px; font: 400 12px/18px var(--font-family-text); color: #067647; }
.pl2-lift .ic { width: 12px; height: 12px; }
.pr-lift { display: inline-flex; align-items: center; gap: 4px; width: fit-content; padding: 0 8px; border-radius: 9999px; background: #ecfdf3; color: #067647; font: 600 12px/20px var(--font-family-text); font-variant-numeric: tabular-nums; }
.pr-lift .ic { width: 14px; height: 14px; }
.ok-cell { display: inline-flex; align-items: center; justify-content: flex-end; gap: 6px; }
.ok-cell b { font: 600 14px/20px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; }
.wl-row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.4fr) 44px 104px; }
.ov-main .wl-row .wl-bar i { background: var(--background-success); }
.ok-cell--start { justify-content: flex-start; }
/* visit location map (2026-10-08) */
.vm { border: 1px solid var(--border-neutral-secondary); border-radius: 8px; overflow: hidden; }
.vm-canvas { height: 280px; display: grid; place-items: center; background: var(--background-neutral-50); z-index: 0; }
.vm .leaflet-pane svg, .vm .leaflet-pane canvas { max-width: none !important; max-height: none !important; }
.vm-keys { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 16px; padding: 10px 14px; border-top: 1px solid var(--border-neutral-secondary); background: var(--background-white); font: 400 12px/18px var(--font-family-text); color: var(--text-primary-paragraph); direction: rtl; }
.vm-keys > span { display: inline-flex; align-items: center; gap: 6px; }
.vm-k { display: inline-block; width: 10px; height: 10px; border-radius: 9999px; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--border-neutral-primary); }
.vm-k.is-lic { background: #079455; } .vm-k.is-start { background: #2e90fa; } .vm-k.is-end { background: #1f2a37; }
.vm-k.is-range { width: 14px; height: 10px; border-radius: 9999px; border: 1.5px dashed #079455; background: rgba(7,148,85,.08); box-shadow: none; }
.vm-note { margin-inline-start: auto; color: var(--text-secondary); }
.vm-label.leaflet-tooltip { padding: 2px 8px; border-radius: 4px; border: 1px solid var(--border-neutral-secondary); background: rgba(255,255,255,.95); box-shadow: 0 1px 3px rgba(16,24,40,.12); font: 500 12px/18px var(--font-family-text); color: var(--text-display); direction: rtl; }
.vm-label.leaflet-tooltip::before { display: none; }
.vm-dist.leaflet-tooltip { padding: 2px 8px; border-radius: 9999px; border: 0; background: #fef3f2; color: #b42318; font: 600 12px/18px var(--font-family-text); box-shadow: none; direction: rtl; }
.vm-dist.leaflet-tooltip::before { display: none; }

/* team load as a strip inside «المراقبون» (2026-10-08) */
.tl-strip { display: flex; flex-direction: column; gap: 10px; padding: 4px 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border-neutral-tertiary); }
.tl-strip-head { display: flex; flex-direction: column; gap: 2px; }
.tl-strip-t { font: 600 14px/20px var(--font-family-text); color: var(--text-display); }
.tl-strip .tl-bar { height: 8px; margin: 0; }
.tl-row { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tl-row .wk-fig { padding: 0 16px; border-inline-start: 1px solid var(--border-neutral-tertiary); }
.tl-row .wk-fig:first-child { padding-inline-start: 0; border-inline-start: 0; }
.tl-row .wk-n { font-size: 24px; line-height: 32px; }
@media (max-width: 760px) { .tl-row { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 12px; } .tl-row .wk-fig:nth-child(3) { padding-inline-start: 0; border-inline-start: 0; } }
/* stages donut (2026-10-08) */
.stg-wrap { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; flex: 1; }
.stg-donut { width: 150px; height: 150px; }
.stg-slice { transition: opacity .16s cubic-bezier(.2,.8,.2,1); cursor: pointer; }
.stg-donut:hover .stg-slice { opacity: .5; } .stg-donut .stg-slice:hover { opacity: 1; }
.stg-total { font: 700 22px/1 var(--font-family-text); fill: var(--text-display); font-variant-numeric: tabular-nums; }
.stg-total-l { font: 400 12px/1 var(--font-family-text); fill: var(--text-secondary); }
.stg-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; }
.stg-legend a { display: grid; grid-template-columns: minmax(0, 1fr) auto 48px; align-items: center; gap: 10px; padding: 5px 6px; margin-inline: -6px; border-radius: 4px; color: inherit; }
.stg-legend a:hover { background: var(--background-neutral-50); }
.stg-legend .stg-n { font-size: 14px; line-height: 20px; }
.stg-legend .stg-pct { text-align: end; }
.stg-panel { display: flex; flex-direction: column; }
@media (max-width: 760px) { .stg-wrap { grid-template-columns: 1fr; justify-items: center; } .stg-legend { width: 100%; } }
.stg-legend .stg-name { white-space: nowrap; }
.stg-legend a { grid-template-columns: minmax(0, 1fr) auto 44px; gap: 8px; }
.stg-wrap { grid-template-columns: 140px minmax(0, 1fr); gap: 16px; }
.stg-donut { width: 140px; height: 140px; }
/* overview polish (2026-10-08) */
/* records block in the wide main column: two columns of records */
.ov-main section.panel[aria-label="مخالفات واعتراضات غير موثوقة"] { min-height: 0; }
.ov-main .rc-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
.ov-main .rc-mini .rc-item:nth-child(2) { border-top: 0; }
@media (max-width: 1240px) { .ov-main .rc-mini { grid-template-columns: minmax(0, 1fr); } .ov-main .rc-mini .rc-item:nth-child(2) { border-top: 1px dashed var(--border-neutral-secondary); } }
/* camera figures in the half-width pair: labels at most two lines */
.cam-panel .wk-n { font-size: 26px; line-height: 34px; }
.cam-panel .wk-l { font-size: 14px; line-height: 20px; }
.cam-panel .wk-m { font-size: 12px; line-height: 18px; }
.ov-wide section.panel[aria-label="مخالفات واعتراضات غير موثوقة"] { min-height: 0; }
.ov-wide .rc-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); column-gap: 32px; }
.ov-wide .rc-mini .rc-item:nth-child(-n+3) { border-top: 0; }
@media (max-width: 1240px) { .ov-wide .rc-mini { grid-template-columns: repeat(2, minmax(0, 1fr)); } .ov-wide .rc-mini .rc-item:nth-child(3) { border-top: 1px dashed var(--border-neutral-secondary); } }
@media (max-width: 760px) { .ov-wide .rc-mini { grid-template-columns: minmax(0, 1fr); } .ov-wide .rc-mini .rc-item:nth-child(n+2) { border-top: 1px dashed var(--border-neutral-secondary); } }
/* camera figures as a list in the half-width pair: label + sub-line on the start side, number on the end side */
@media (min-width: 761px) {
  .ovg2--figs .cam-panel .cam-row { grid-template-columns: minmax(0, 1fr); row-gap: 0; }
  .ovg2--figs .cam-panel .wk-fig, .ovg2--figs .cam-panel .wk-fig:nth-child(odd), .ovg2--figs .cam-panel .wk-fig:nth-child(n+3) { display: grid; grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "l n" "m n" "x x"; column-gap: 16px; row-gap: 2px; align-items: center; padding: 12px 0; border-inline-start: 0; border-top: 1px dashed var(--border-neutral-secondary); }
  .ovg2--figs .cam-panel .wk-fig:first-child { border-top: 0; padding-top: 4px; }
  .ovg2--figs .cam-panel .wk-fig > .wk-n { grid-area: n; text-align: end; }
  .ovg2--figs .cam-panel .wk-fig > .wk-l { grid-area: l; }
  .ovg2--figs .cam-panel .wk-fig > .wk-m { grid-area: m; }
  .ovg2--figs .cam-panel .wk-fig > :nth-child(4) { grid-area: x; margin-top: 6px; }
}
.stg-wrap { grid-template-columns: 124px minmax(0, 1fr); gap: 14px; }
.stg-donut { width: 124px; height: 124px; }
.stg-legend a { grid-template-columns: minmax(0, 1fr) auto 40px; gap: 10px; }
.stg-legend .stg-name { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.stg-legend a { grid-template-columns: minmax(0, 1fr) 52px 44px; }
.stg-legend .stg-n { text-align: end; }
/* work panel figures (2026-10-08): icon top-end beside the big value */
.wk-fig--ico .wk-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.wk-fig--ico .wk-ico { flex: none; margin-top: 6px; color: var(--icon-default-400, var(--text-secondary)); background-color: currentColor; }
.wk-fig--ico .wk-l { display: block; }
.wk-fig--ico .wk-lm { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; row-gap: 0; }
.wk-fig--ico .wk-lm .wk-l { display: inline; }
.wk-fig--ico .wk-lm .wk-m { margin: 0; }
.wk-fig--ico .wk-lm { column-gap: 6px; }
.wk-fig--ico .wk-lm .wk-l { font-size: 15px; line-height: 22px; white-space: nowrap; }
.wk-fig--ico .wk-lm .wk-m { white-space: nowrap; }
.wk-row > .wk-fig--ico { padding-inline: 16px; }
.wk-row > .wk-fig--ico:first-child { padding-inline-start: 0; }
.wk-row > .wk-fig--ico:last-child { padding-inline-end: 0; }
/* بصير one-line note under the gauge (2026-10-08) */
.bsr { display: flex; align-items: center; justify-content: center; text-align: center; gap: 8px; margin: auto 0 0; padding-top: 12px; font: 400 13px/20px var(--font-family-text); color: var(--text-secondary-paragraph, #4d5761); }
.bsr b { white-space: nowrap; font-weight: 600; color: var(--text-display); }
.bsr-orb { width: 18px; height: 18px; flex: none; }
.panel.quality { display: flex; flex-direction: column; }
.panel.quality { min-height: 445px; }
/* gauge foot stat cells (2026-10-08) */
.gstat { display: flex; justify-content: center; margin-top: 4px; }
.gstat-c { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 0 24px; }
.gstat-c + .gstat-c { border-inline-start: 1px solid var(--border-neutral-primary, #e5e7eb); }
.gstat-l { display: inline-flex; align-items: center; gap: 6px; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
.gstat-l .g-key { width: 3px; height: 12px; border-radius: 2px; }
.gstat-v { display: inline-flex; align-items: baseline; gap: 6px; font: 600 16px/24px var(--font-family-text); color: var(--text-display); }
.gstat-v small { font: 500 12px/18px var(--font-family-text); white-space: nowrap; }
.gstat-v small.gap { color: var(--text-secondary); }
.gstat-v small.up { color: var(--text-success, #067647); }
.gstat-v small.down { color: var(--text-error, #b42318); }
/* one bar shape across the portal (2026-10-08): every bar segment is fully rounded */
/* bar shape (user 2026-10-08, revised): small 2px corners on every bar and segment — full pills read as progress/loading */
.sig-bar i, .tl-bar i, .un3-bul, .un3-bul i, .wl-bar, .wl-bar i, .meter, .meter i, .meter > *, .wl-bar > * { border-radius: 2px !important; }
/* units table head: label + info icon on one line, all aligned with «النطاق» (2026-10-08) */
.un3-head { align-items: center; }
.un3-head > span { flex-direction: row; align-items: center; gap: 4px; position: relative; }
.un3-head > span.is-num { justify-content: flex-end; }
.un3-head .help-btn { color: var(--icon-secondary, #9da4ae); }
.un3-head > span.is-on::after { position: absolute; inset-inline-start: 0; bottom: -11px; margin: 0; }
.un3-head > span { white-space: nowrap; }
@media (min-width: 761px) { .un3-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.8fr) max-content max-content; } }
/* units table: average line in every bar, target tick on reliability, bars for the count columns (2026-10-08) */
@media (min-width: 761px) { .un3-row { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.5fr) minmax(0, 1.9fr) max-content max-content; } }
.un3-cell b { font: 600 16px/24px var(--font-family-text); color: var(--text-display); font-variant-numeric: tabular-nums; min-width: 3.2em; }
.un3-cell--n.is-over b { color: var(--text-error); }
.un3-bul.is-n i { background: var(--background-neutral-400, #9da4ae); }
.un3-tgt { position: absolute; top: -4px; bottom: -4px; width: 3px; margin-inline-start: -1.5px; border-radius: 2px; background: var(--background-primary, #1b8354); box-shadow: 0 0 0 1.5px var(--background-white, #fff); }
@media (max-width: 760px) {
  .un3-cell--n::before { content: attr(data-l); grid-column: 1 / -1; font: 400 12px/18px var(--font-family-text); color: var(--text-secondary); }
}

.un3-k-tgt { display: inline-block; width: 3px; height: 12px; border-radius: 2px; background: var(--background-primary, #1b8354); margin-inline-end: 6px; vertical-align: middle; }
.un3-cell .un3-bul { min-width: 72px; }
@media (max-width: 760px) { .un3-cell--d { grid-template-columns: auto minmax(72px, 1fr) auto; } }
/* month change in the units table = plain coloured text like the gauge foot, no pill (2026-10-08) */
.un3-chg { font: 500 12px/18px var(--font-family-text); white-space: nowrap; font-variant-numeric: tabular-nums; }
.un3-chg.up { color: var(--text-success, #067647); } .un3-chg.down { color: var(--text-error, #b42318); }
@media (max-width: 760px) { .un3-cell .un3-bul { min-width: 0; } .un3-cell--d { grid-template-columns: auto minmax(0, 1fr) auto; } }
/* stages block: fill the panel, slice pops out on hover (2026-10-08) */
.stg-panel .stg-wrap { grid-template-columns: 164px minmax(0, 1fr); gap: 20px; align-items: stretch; flex: 1; margin-top: 8px; }
.stg-panel .stg-donut { width: 164px; height: 164px; align-self: center; overflow: visible; }
.stg-panel .stg-legend { justify-content: space-between; }
.stg-panel .stg-legend a { padding-block: 8px; }
.stg-donut:hover .stg-slice { opacity: 1; }
.stg-g { transition: transform .2s cubic-bezier(.2,.8,.2,1), opacity .16s cubic-bezier(.2,.8,.2,1); }
.stg-wrap.has-hot .stg-g { opacity: .45; }
.stg-wrap.has-hot .stg-g.is-hot { opacity: 1; transform: translate(var(--dx), var(--dy)); }
.stg-wrap.has-hot .stg-legend li.is-hot a { background: var(--background-neutral-50); }
@media (prefers-reduced-motion: reduce) { .stg-g { transition: none; } .stg-wrap.has-hot .stg-g.is-hot { transform: none; } }
@media (max-width: 760px) { .stg-panel .stg-wrap { grid-template-columns: 1fr; } }
.stg-total, .stg-total-l { pointer-events: none; }
.stg-panel .stg-wrap { grid-template-columns: 148px minmax(0, 1fr); gap: 16px; }
.stg-panel .stg-donut { width: 148px; height: 148px; }
.stg-panel .stg-legend a { grid-template-columns: minmax(0, 1fr) auto 40px; gap: 8px; }
.stg-panel .stg-legend .stg-name { overflow: visible; }
/* title + info icon always on one row, in every panel head (2026-10-08) */
.panel-head > .un2-title, .ovg2--figs .panel-head > .un2-title { display: flex; flex-direction: row; align-items: center; gap: 6px; }
/* stages legend: narrow panel → smaller donut so names and numbers never touch */
.stg-panel { container-type: inline-size; }
@container (max-width: 440px) {
  .stg-panel .stg-wrap { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; }
  .stg-panel .stg-donut { width: 112px; height: 112px; }
  .stg-panel .stg-legend a { grid-template-columns: minmax(0, 1fr) auto 36px; gap: 6px; }
}
.un2-title > .panel-title { margin: 0; }
/* team-load figures = list filters (2026-10-08) */
.tl-row { padding: 0 0 16px; margin-bottom: 4px; border-bottom: 1px solid var(--border-neutral-tertiary); }
.tl-row .tl-fig { appearance: none; background: none; border: 0; font: inherit; color: inherit; text-align: start; cursor: pointer; border-radius: 4px; padding-block: 8px; margin-block: -8px 0; transition: background-color .16s cubic-bezier(.2,.8,.2,1); }
.tl-row button.tl-fig:hover { background: var(--background-neutral-50); }
.tl-row button.tl-fig:focus-visible { outline: 2px solid var(--border-primary); outline-offset: -2px; }
.tl-row button.tl-fig.is-on { background: var(--background-neutral-100); box-shadow: inset 0 -2px 0 var(--border-primary); }
.tl-row .tl-fig--ref { cursor: default; }
.tl-row .tl-fig--ref .wk-n { color: var(--text-secondary); }
.tl-row .wk-l { display: inline-flex; align-items: center; gap: 6px; }
.tl-row .sig-dot.tl-over { background: var(--background-primary-400, #54c08a); }
.tl-row .sig-dot.tl-near { background: var(--background-success); }
.tl-row .sig-dot.tl-under { background: var(--icon-error); }
.tl-row .tl-fig, .tl-row .tl-fig:first-child { padding-inline: 12px; }
.tl-row { margin-top: 12px; }
.tl-row .tl-fig { margin-block: 0; }
.tl-row .wk-l { white-space: nowrap; font-size: 13px; }
/* phone: inspector list = name row, then bar + figures row (2026-10-08) */
@media (max-width: 760px) {
  .ov-main .wl-row { grid-template-columns: minmax(0, 1fr) 36px auto; grid-template-areas: "name name name" "bar n ok"; row-gap: 6px; column-gap: 10px; }
  .ov-main .wl-row > .wl-name { grid-area: name; } .ov-main .wl-row > .wl-bar { grid-area: bar; display: block; }
  .ov-main .wl-row > .wl-n { grid-area: n; } .ov-main .wl-row > .ok-cell, .ov-main .wl-row > :last-child { grid-area: ok; }
}
@media (max-width: 760px) { .ov-main .wl-row { padding-block: 12px; } }
