/* n7kel — иллюстрации интерфейса (tools/mockups.py). Подключается для экрана и печати, поэтому токены — свои.
   Панель подстраивается под ширину своей колонки (container queries): в первом экране, в блоке «текст + картинка»
   и на всю ширину. Анимации — только opacity/transform, тонкие, выключены при prefers-reduced-motion. */
.mock {
  --m-bg: #0e0e0d; --m-bar: #121211; --m-surface: #161614; --m-surface-2: #1d1d1a;
  --m-line: #2a2925; --m-line-2: #3b3a34; --m-text: #f3f1ea; --m-muted: #b0ada2; --m-dim: #8b887f;
  --m-y: #ffd400; --m-ok: #3fcf6e; --m-warn: #ffb020; --m-alert: #ff4a3d; --m-ink: #0b0b0a;
  --m-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --m-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --m-display: "Oswald", "Arial Narrow", sans-serif;
  container-type: inline-size;
  position: relative; overflow: hidden; text-align: left;
  background: var(--m-bg); color: var(--m-text); border: 1px solid var(--m-line-2);
  font: 400 13px/1.4 var(--m-body); letter-spacing: normal;
  -webkit-print-color-adjust: exact; print-color-adjust: exact;
  -webkit-user-select: none; user-select: none;
}
.mock:lang(hy) { --m-body: "Noto Sans Armenian", "Inter", system-ui, sans-serif; --m-display: "Noto Sans Armenian", "Inter", sans-serif; }
.mock *, .mock *::before, .mock *::after { box-sizing: border-box; }
.mock :where(p, ul, ol, dl, dd, li) { margin: 0; padding: 0; }
.mock :where(ul, ol) { list-style: none; }
.mock b { font-weight: 600; }
.mock small { font-size: 11px; color: var(--m-dim); }
.mock img.m-frame { border: 0; background: none; }

/* подпись под панелью */
.mock-fig { margin: 0; }
.mock-cap { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-top: 12px; font: 400 13px/1.5 var(--m-mono, monospace); color: #85827a; }
.mock-ill { font: 500 11px/1.4 "JetBrains Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: #ffd400; }
.mock-cap:lang(hy), .mock-cap :lang(hy) { font-family: "Noto Sans Armenian", "Inter", sans-serif; }
:lang(hy) .mock-ill { letter-spacing: .02em; text-transform: none; font-family: "Noto Sans Armenian", "Inter", sans-serif; font-size: 12px; }
.mock-cap-t { font-family: "Inter", "Noto Sans Armenian", sans-serif; }

/* общие элементы */
.m-bar {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px; min-height: 40px;
  background: var(--m-bar); border-bottom: 1px solid var(--m-line);
  font: 500 11px/1.25 var(--m-mono); letter-spacing: .08em; text-transform: uppercase;
}
.mock:lang(hy) .m-bar { font-family: var(--m-body); letter-spacing: .01em; text-transform: none; font-size: 12px; }
.m-led { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--m-ok); box-shadow: 0 0 0 3px rgba(63, 207, 110, .18); }
.m-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--m-text); }
.m-title .nc { text-transform: none; }
.m-status { flex: none; color: var(--m-muted); white-space: nowrap; max-width: 52%; overflow: hidden; text-overflow: ellipsis; }

.m-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-bottom: 1px solid var(--m-line); }
.m-kpi { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; min-width: 0; }
.m-kpi + .m-kpi { border-left: 1px solid var(--m-line); }
.m-kpi b { font: 500 22px/1.1 var(--m-display); color: var(--m-text); }
.m-kpi small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.m-body { display: grid; gap: 14px; padding: 14px; }
.m-split { grid-template-columns: minmax(0, 1fr); }
.m-pane { min-width: 0; }
.m-stack { display: grid; gap: 14px; min-width: 0; align-content: start; }
.m-h { margin: 0 0 8px; font: 500 10.5px/1.3 var(--m-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--m-dim); }
.mock:lang(hy) .m-h { font-family: var(--m-body); letter-spacing: .01em; text-transform: none; font-size: 12px; }
.m-foot { margin-top: 10px; font-size: 11.5px; color: var(--m-dim); }
.m-mono { font: 400 11px/1.3 var(--m-mono); color: var(--m-dim); white-space: nowrap; }
.m-sub { margin-top: 4px; font-size: 12px; color: var(--m-muted); }

.m-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 2px;
  font: 500 10.5px/1.25 var(--m-mono); letter-spacing: .03em; white-space: nowrap;
  color: var(--m-muted); border: 1px solid var(--m-line-2); background: rgba(255, 255, 255, .02);
}
.mock:lang(hy) .m-chip { font-family: var(--m-body); letter-spacing: 0; font-size: 11px; }
.m-chip.is-ok { color: var(--m-ok); border-color: rgba(63, 207, 110, .45); background: rgba(63, 207, 110, .08); }
.m-chip.is-warn { color: var(--m-warn); border-color: rgba(255, 176, 32, .5); background: rgba(255, 176, 32, .08); }
.m-chip.is-alert { color: #ff7a6f; border-color: rgba(255, 74, 61, .6); background: rgba(255, 74, 61, .1); }
.m-chip.is-info { color: var(--m-y); border-color: rgba(255, 212, 0, .45); background: rgba(255, 212, 0, .07); }
.m-chip.is-wait { border-style: dashed; color: var(--m-dim); }

/* камера с разметкой */
.m-cam { position: relative; aspect-ratio: 16 / 9; overflow: hidden; background: #2a2a27; border: 1px solid var(--m-line); }
.m-cam .m-frame { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.9); }
.m-osd {
  position: absolute; left: 0; right: 0; top: 0; z-index: 3; display: flex; align-items: center; gap: 10px;
  padding: 6px 9px 14px; background: linear-gradient(rgba(0, 0, 0, .62), transparent);
  font: 500 clamp(9px, 1.6cqw, 12px)/1 var(--m-mono); letter-spacing: .06em; color: #fff; text-transform: uppercase;
}
.mock:lang(hy) .m-osd { font-family: var(--m-mono), "Noto Sans Armenian", sans-serif; }
.m-osd-r { margin-left: auto; }
.m-rec { display: inline-flex; align-items: center; gap: 5px; }
.m-rec::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--m-alert); }
.m-box { position: absolute; z-index: 1; --bc: var(--m-ok); border: 2px solid var(--bc); }
.m-box.is-neutral { --bc: #e3e0d6; border-style: dashed; border-width: 1.5px; }
.m-box.is-zone { border-width: 1.5px; background: rgba(63, 207, 110, .07); }
.m-box.is-strong { border-width: 2.5px; box-shadow: 0 0 0 1px rgba(0, 0, 0, .35), inset 0 0 0 1px rgba(0, 0, 0, .25); }
.m-box-l {
  position: absolute; left: -2px; bottom: 100%; padding: 2px 6px; white-space: nowrap;
  background: var(--bc); color: var(--m-ink); font: 600 clamp(8.5px, 1.7cqw, 13px)/1.3 var(--m-body);
}
.m-box.is-zone .m-box-l { bottom: 0; left: 0; }
.m-box.is-id .m-box-l { padding-left: 18px; }
.m-box.is-id .m-box-l::before {
  content: ""; position: absolute; left: 6px; top: 50%; width: 5px; height: 9px; margin-top: -6px;
  border: solid var(--m-ink); border-width: 0 2px 2px 0; transform: rotate(45deg);
}
.m-scan { position: absolute; left: 0; right: 0; top: 0; height: 22%; z-index: 2; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, transparent, rgba(255, 212, 0, .10) 80%, rgba(255, 212, 0, .35)); }
.m-cam-pills { position: absolute; left: 8px; bottom: 8px; right: 8px; z-index: 3; display: flex; flex-wrap: wrap; gap: 6px; }
.m-cam-pills .m-chip { background: rgba(11, 11, 10, .82); }
.m-cam-solo { border: 0; }
.mock-identify_frame { border-color: var(--m-line-2); }

/* лента событий («Вахта») */
.m-evs { border-bottom: 1px solid var(--m-line); }
.m-ev { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 8px 8px 10px;
  border-top: 1px solid var(--m-line); border-left: 2px solid transparent; }
.m-ev.is-alert { border-left-color: var(--m-alert); background: rgba(255, 74, 61, .05); }
.m-ev.is-warn { border-left-color: var(--m-warn); }
.m-ev.is-ok { border-left-color: rgba(63, 207, 110, .5); }
.m-ev-t { font: 400 11px/1 var(--m-mono); color: var(--m-dim); }
.m-ev-x { display: flex; flex-direction: column; min-width: 0; }
.m-ev-x b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* «Контроль АЗС»: станции, операции, цепочка */
.m-stations { display: grid; grid-template-columns: repeat(auto-fill, minmax(124px, 1fr)); gap: 6px; }
.m-st { position: relative; display: flex; flex-direction: column; gap: 3px; padding: 9px 10px; background: var(--m-surface); border: 1px solid var(--m-line); min-width: 0; }
.m-st-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 600; }
.m-st-h i { flex: none; width: 7px; height: 7px; border-radius: 50%; background: var(--m-ok); }
.m-st small { overflow-wrap: anywhere; }
.m-st.is-warn { border-color: rgba(255, 176, 32, .45); }
.m-st.is-warn .m-st-h i { background: var(--m-warn); }
.m-st.is-alert { border-color: rgba(255, 74, 61, .6); background: rgba(255, 74, 61, .06); }
.m-st.is-alert .m-st-h i { background: var(--m-alert); }
.m-st em { position: absolute; right: 7px; top: 7px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px;
  font: 600 10.5px/18px var(--m-body); text-align: center; font-style: normal; background: var(--m-warn); color: var(--m-ink); }
.m-st.is-alert em { background: var(--m-alert); color: #fff; }
.m-ops { border: 1px solid var(--m-line); }
.m-op { display: grid; grid-template-columns: 62px 46px minmax(0, 1fr) 70px 112px; gap: 8px; align-items: center; padding: 8px 10px; border-top: 1px solid var(--m-line); font-size: 12px; }
.m-ops ul .m-op:first-child { border-top: 1px solid var(--m-line); }
.m-op-head { border-top: 0; background: var(--m-surface); font: 500 10px/1.3 var(--m-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--m-dim); }
.mock:lang(hy) .m-op-head { font-family: var(--m-body); text-transform: none; letter-spacing: 0; font-size: 11px; }
.m-op-head span:last-child { text-align: right; }
.m-op > .m-chip { justify-self: end; }
.m-op-x { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-op.is-alert { background: rgba(255, 74, 61, .06); }
.m-chain { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center; margin-top: 10px; padding: 10px 12px;
  border: 1px solid rgba(63, 207, 110, .45); background: rgba(63, 207, 110, .06); }
.m-chain-i { color: var(--m-ok); display: flex; }
.m-chain b { display: block; font-size: 12.5px; }
.m-hash { display: flex; align-items: center; }
.m-hash i { width: 9px; height: 9px; border: 1.5px solid var(--m-ok); }
.m-hash i + i { margin-left: 7px; position: relative; }
.m-hash i + i::before { content: ""; position: absolute; right: 100%; top: 2.5px; width: 8.5px; height: 1.5px; background: var(--m-ok); }

/* Antifraud: шкала времени */
.m-tl { padding: 12px 14px 10px; background: var(--m-surface); border: 1px solid var(--m-line); --lane-l: 168px; }
.m-lane { display: grid; grid-template-columns: var(--lane-l) minmax(0, 1fr); gap: 12px; align-items: center; }
.m-lane-l { font-size: 11.5px; color: var(--m-muted); }
.m-track { position: relative; height: 28px; border: 1px solid var(--m-line); background:
  linear-gradient(90deg, transparent calc(33.333% - 1px), var(--m-line) calc(33.333% - 1px) 33.333%, transparent 33.333% calc(66.666% - 1px), var(--m-line) calc(66.666% - 1px) 66.666%, transparent 66.666%), var(--m-bg); }
.m-mk { position: absolute; top: 50%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; background: var(--m-ok); transform: rotate(45deg); }
.m-mk.is-miss { background: transparent; border: 1.5px dashed var(--m-alert); }
.m-links { position: relative; height: 16px; margin-left: calc(var(--lane-l) + 12px); }
.m-link { position: absolute; top: -1px; bottom: -1px; width: 0; border-left: 1.5px solid rgba(63, 207, 110, .45); }
.m-link.is-miss { border-left: 1.5px dashed rgba(255, 74, 61, .75); }
.m-flag { position: absolute; top: 50%; z-index: 1; width: 20px; height: 20px; margin: -10px 0 0 -10px; border-radius: 50%;
  background: var(--m-alert); color: #fff; font: 700 11px/20px var(--m-body); text-align: center; box-shadow: 0 0 0 4px rgba(255, 74, 61, .22); }
.m-flag.is-static { position: static; display: inline-block; flex: none; margin: 0; box-shadow: none; }
.m-axis { display: flex; justify-content: space-between; margin: 6px 0 0 calc(var(--lane-l) + 12px); font: 400 10.5px/1 var(--m-mono); color: var(--m-dim); }
.m-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 10px; font-size: 11.5px; color: var(--m-muted); }
.m-legend span { display: inline-flex; align-items: center; gap: 7px; }
.m-legend span::before { content: ""; width: 8px; height: 8px; transform: rotate(45deg); background: var(--m-ok); }
.m-legend .is-alert::before { background: var(--m-alert); border-radius: 50%; transform: none; }
.m-rows { border-bottom: 1px solid var(--m-line); }
.m-row { display: grid; grid-template-columns: auto auto minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 2px; border-top: 1px solid var(--m-line); }
.m-row-x { display: flex; flex-direction: column; min-width: 0; }
.m-row-x b { font-size: 12.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mock-access_checkin .m-row { grid-template-columns: auto minmax(0, 1fr) auto; }

/* Voice: расшифровка */
.m-search { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; padding: 8px 10px; border: 1px solid var(--m-line-2);
  background: var(--m-surface); color: var(--m-muted); font-size: 12px; min-width: 0; }
.m-search span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-lines { border-bottom: 1px solid var(--m-line); }
.m-ln { display: grid; grid-template-columns: minmax(0, 1fr); gap: 4px; padding: 9px 2px; border-top: 1px solid var(--m-line); }
.m-ln-m { display: flex; align-items: center; gap: 8px; }
.m-who { font-size: 11.5px; color: var(--m-muted); }
.m-lang { padding: 1px 5px; border: 1px solid rgba(255, 212, 0, .5); color: var(--m-y); font: 500 10px/1.3 var(--m-mono); letter-spacing: .06em; }
.m-ln-x { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.m-orig { font-size: 13.5px; color: var(--m-text); }
.m-orig:lang(hy) { font-family: "Noto Sans Armenian", "Inter", sans-serif; }
.m-orig:lang(ru), .m-orig:lang(kk), .m-orig:lang(en) { font-family: "Inter", system-ui, sans-serif; }
.m-tr { padding-left: 8px; border-left: 2px solid var(--m-line-2); font-size: 12px; color: var(--m-dim); }
.mock mark { color: inherit; padding: 0 2px; border-radius: 2px; }
.mock mark.mk-g { background: rgba(63, 207, 110, .18); color: #8ff0ad; }
.mock mark.mk-r { background: rgba(255, 74, 61, .2); color: #ff8f86; }
.mock mark.mk-y { background: rgba(255, 212, 0, .2); color: var(--m-y); }
.m-side { padding: 12px 14px; background: var(--m-surface); border: 1px solid var(--m-line); align-self: start; }
.m-big { margin: 0 0 8px; font: 500 30px/1 var(--m-display); color: var(--m-text); }
.m-segs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; margin-bottom: 12px; }
.m-segs i { height: 6px; background: var(--m-line-2); }
.m-segs i.on { background: var(--m-ok); }
.m-checks { margin-bottom: 16px; }
.m-side .m-checks + .m-h { margin-top: 4px; }
.m-checks li { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 12.5px; color: var(--m-muted); }
.m-checks i { flex: none; width: 12px; height: 12px; border-radius: 50%; border: 1.5px dashed var(--m-dim); }
.m-checks .is-ok i { border: 0; background: var(--m-ok); }
.m-checks .is-ok { color: var(--m-text); }
.m-checks .is-alert i { border: 0; background: var(--m-alert); }
.m-checks .is-alert { color: #ff8f86; }
.m-flags { display: flex; flex-wrap: wrap; gap: 6px; }

/* Flow: план отделения */
.m-plan { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--m-line); background:
  linear-gradient(var(--m-line) 1px, transparent 1px) 0 0 / 5% 8%, linear-gradient(90deg, var(--m-line) 1px, transparent 1px) 0 0 / 5% 8%, #101010; }
.m-zone { position: absolute; display: flex; flex-direction: column; gap: 1px; padding: 5px 6px; overflow: hidden;
  border: 1px solid rgba(255, 212, 0, calc(.25 + .45 * var(--heat)));
  background: rgb(255 calc(220 - 140 * var(--heat)) 0 / calc(.05 + .42 * var(--heat))); }
.m-zone b { font: 600 clamp(9px, 1.45cqw, 12px)/1.2 var(--m-body); color: var(--m-text); overflow-wrap: anywhere; }
.m-zone small { font: 500 clamp(9px, 1.35cqw, 11px)/1.2 var(--m-mono); color: var(--m-y); }
.m-zone.is-service { border: 1px dashed var(--m-line-2); background: repeating-linear-gradient(-45deg, rgba(255, 255, 255, .03) 0 6px, transparent 6px 12px); }
.m-zone.is-service b { color: var(--m-dim); font-weight: 500; }
.m-zone .sh { display: none; }
.m-path { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 1; color: #fff; overflow: visible; }
.m-stop { position: absolute; z-index: 2; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%;
  background: #fff; color: var(--m-ink); font: 700 10px/18px var(--m-body); text-align: center; font-style: normal; box-shadow: 0 0 0 3px rgba(0, 0, 0, .45); }
.m-stop.is-static { position: static; display: inline-block; margin: 0; box-shadow: none; }
.m-heat-l { display: flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 11.5px; color: var(--m-muted); flex-wrap: wrap; }
.m-heat-l i { width: 90px; height: 6px; background: linear-gradient(90deg, rgba(255, 220, 0, .12), rgba(255, 120, 0, .7)); }
.m-queue { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 12px; align-items: end; margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--m-line); }
.m-queue small { grid-column: 1 / -1; font: 500 10.5px/1.3 var(--m-mono); letter-spacing: .1em; text-transform: uppercase; }
.mock:lang(hy) .m-queue small { font-family: var(--m-body); letter-spacing: 0; text-transform: none; font-size: 12px; }
.m-queue b { font: 500 40px/1 var(--m-display); color: var(--m-y); }
.m-queue span { font-size: 12px; color: var(--m-muted); padding-bottom: 4px; }
.m-consent { color: var(--m-ok); }
.m-journey { margin-bottom: 4px; }
.m-journey li { display: grid; grid-template-columns: auto auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--m-line); font-size: 12px; }

/* Access: регистрация, шлюз, журнал */
.m-check { padding: 12px 14px; background: var(--m-surface); border: 1px solid var(--m-line); align-self: start; }
.m-check-in { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: start; }
.m-face-w { aspect-ratio: 1; display: grid; place-items: center; background: #101010; border: 1px solid var(--m-line); color: #77756c; }
.m-face { width: 100%; height: auto; display: block; }
.m-ok-l { display: flex; align-items: center; gap: 8px; color: var(--m-ok); font-size: 15px; font-weight: 600; }
.m-ok-l i { position: relative; flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--m-ok); }
.m-ok-l i::after { content: ""; position: absolute; left: 6.5px; top: 3.5px; width: 4px; height: 8px; border: solid var(--m-ink); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.m-appt-h { margin: 12px 0 6px; color: var(--m-y); }
.m-appt { display: grid; grid-template-columns: repeat(auto-fit, minmax(84px, 1fr)); gap: 6px; }
.m-appt div { padding: 6px 8px; background: var(--m-bg); border: 1px solid var(--m-line); min-width: 0; }
.m-appt dt { font: 500 9.5px/1.3 var(--m-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--m-dim); }
.mock:lang(hy) .m-appt dt { font-family: var(--m-body); text-transform: none; letter-spacing: 0; font-size: 11px; }
.m-appt dd { font-size: 13.5px; font-weight: 600; overflow-wrap: anywhere; }
.m-air { display: grid; grid-template-columns: 8px minmax(0, 1fr) 8px; height: 58px; margin-bottom: 8px; border: 1px solid var(--m-line); background: var(--m-surface); }
.m-door.is-closed { background: var(--m-ok); }
.m-door.is-open { border-left: 2px dashed var(--m-warn); margin-left: 3px; }
.m-cabin { position: relative; background: repeating-linear-gradient(90deg, transparent 0 12px, rgba(255, 255, 255, .03) 12px 13px); }
.m-person { position: absolute; left: 44%; top: 50%; width: 14px; height: 14px; margin: -7px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 5px rgba(255, 255, 255, .1); }
.m-air-l li { display: flex; align-items: center; gap: 8px; padding: 3px 0; font-size: 12px; color: var(--m-muted); }
.m-air-l li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--m-dim); }
.m-air-l .is-ok::before { background: var(--m-ok); }
.m-air-l .is-warn::before { background: var(--m-warn); }

.m-check { display: flex; flex-direction: column; align-self: stretch; }
.m-steps { margin-top: auto; padding-top: 14px; display: grid; gap: 0; }
.m-steps li { position: relative; display: grid; grid-template-columns: 14px auto minmax(0, 1fr); gap: 8px; align-items: center; padding: 6px 0; border-top: 1px solid var(--m-line); font-size: 12px; color: var(--m-muted); }
.m-steps i { width: 10px; height: 10px; border-radius: 50%; background: var(--m-ok); box-shadow: 0 0 0 3px rgba(63, 207, 110, .15); }
.m-air-w { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.m-air-w small { font-size: 10.5px; }
.m-air-w .m-air { margin: 0; }

/* Atlas: граф и доска задач */
.m-srcs { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 10px; }
.m-srcs small { margin-right: 2px; }
.m-src { padding: 2px 7px; border: 1px solid var(--m-line-2); font-size: 11px; color: var(--m-muted); }
.m-graph { position: relative; aspect-ratio: 16 / 10; border: 1px solid var(--m-line);
  background: radial-gradient(circle at 50% 45%, rgba(255, 212, 0, .06), transparent 60%), #101010; }
.m-graph svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.m-graph line { stroke: rgba(255, 212, 0, .38); stroke-width: 1.2; }
.m-node { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 8px; white-space: nowrap; background: #0b0b0a; border: 1px solid var(--nc, var(--m-line-2));
  font: 500 clamp(9.5px, 1.6cqw, 11.5px)/1.2 var(--m-body); color: var(--m-text); }
.m-node i { flex: none; width: 8px; height: 8px; background: var(--nc); }
.m-node.is-person { --nc: #f3f1ea; } .m-node.is-person i { border-radius: 50%; }
.m-node.is-vehicle { --nc: var(--m-y); font-family: var(--m-mono); }
.m-node.is-event { --nc: var(--m-alert); } .m-node.is-event i { transform: rotate(45deg); }
.m-node.is-place { --nc: var(--m-ok); }
.m-node.is-time { --nc: var(--m-dim); font-family: var(--m-mono); color: var(--m-muted); } .m-node.is-time i { border-radius: 50%; background: none; border: 1.5px solid var(--m-dim); }
.m-gleg { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 11.5px; color: var(--m-muted); }
.m-gleg span { display: inline-flex; align-items: center; gap: 6px; }
.m-gleg i { width: 8px; height: 8px; }
.m-gleg .is-person i { background: #f3f1ea; border-radius: 50%; }
.m-gleg .is-vehicle i { background: var(--m-y); }
.m-gleg .is-event i { background: var(--m-alert); transform: rotate(45deg); }
.m-gleg .is-place i { background: var(--m-ok); }
.m-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.m-col { padding: 8px; background: var(--m-surface); border: 1px solid var(--m-line); min-width: 0; }
.m-col-h { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font: 500 10.5px/1.3 var(--m-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--m-dim); }
.mock:lang(hy) .m-col-h { font-family: var(--m-body); text-transform: none; letter-spacing: 0; font-size: 12px; }
.m-col-h small { padding: 0 6px; border: 1px solid var(--m-line-2); border-radius: 8px; font-size: 10px; }
.m-task { padding: 8px 9px; margin-bottom: 6px; background: var(--m-bg); border: 1px solid var(--m-line-2); border-left: 2px solid var(--m-y); }
.m-task:last-child { margin-bottom: 0; }
.m-task b { display: block; font-size: 12.5px; font-weight: 500; line-height: 1.35; }
.m-audit { margin-top: 14px; }
.m-audit li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; align-items: baseline; padding: 6px 0; border-top: 1px solid var(--m-line); font-size: 12px; color: var(--m-muted); }
.m-task-m { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px; margin-top: 7px; }

/* проверка по базам розыска */
.m-wls { border-bottom: 1px solid var(--m-line); }
.m-wl { display: grid; grid-template-columns: 70px minmax(0, 1.5fr) minmax(0, .8fr) 124px; gap: 10px; align-items: center; padding: 9px 10px; border-top: 1px solid var(--m-line); font-size: 12.5px; }
.m-wl-head { border-top: 0; padding-top: 0; font: 500 10px/1.3 var(--m-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--m-dim); }
.mock:lang(hy) .m-wl-head { font-family: var(--m-body); text-transform: none; letter-spacing: 0; font-size: 11px; }
.m-wl-head span:last-child { text-align: right; }
.m-wl > .m-chip { justify-self: end; }
.m-wl-x { display: flex; align-items: center; gap: 8px; min-width: 0; color: var(--m-muted); }
.m-wl-x b { color: var(--m-text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-wl-c { color: var(--m-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.m-wl.is-alert { background: rgba(255, 74, 61, .08); box-shadow: inset 2px 0 0 var(--m-alert); }
.m-alert { padding: 14px; border: 1px solid rgba(255, 74, 61, .55); background: linear-gradient(rgba(255, 74, 61, .12), rgba(255, 74, 61, .03)); }
.mock-watchlist_alert .m-side { padding: 0; border: 0; background: none; }
.m-alert-h { display: flex; align-items: center; gap: 8px; margin: 0 0 10px; color: #ff8f86; font-size: 14px; font-weight: 600; }
.m-alert-h i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--m-alert); box-shadow: 0 0 0 4px rgba(255, 74, 61, .2); }
.m-alert p:not(.m-alert-h) { padding: 5px 0; border-top: 1px solid rgba(255, 74, 61, .2); font-size: 12px; color: var(--m-muted); }
.m-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.m-btn { padding: 7px 12px; border: 1px solid var(--m-line-2); font-size: 12px; font-weight: 600; color: var(--m-text); }
.m-btn.is-primary { background: var(--m-y); border-color: var(--m-y); color: var(--m-ink); }

/* раскладка по ширине панели */
@container (min-width: 720px) {
  .m-split { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
  .m-split-even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .m-split-wide { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  .m-ln { grid-template-columns: 168px minmax(0, 1fr); gap: 12px; align-items: baseline; }
  .m-check-in { grid-template-columns: 136px minmax(0, 1fr); }
  .m-ln-m { flex-wrap: wrap; }
}
@container (max-width: 719px) {
  .mock-vakhta_live .m-ev:nth-child(n+5), .mock-kontrol_network .m-op:nth-child(n+5) { display: none; }
}
@container (max-width: 560px) {
  .m-bar { padding: 8px 10px; gap: 2px 8px; font-size: 10px; flex-wrap: wrap; }
  .m-title { flex-basis: calc(100% - 18px); }
  .m-status { max-width: none; flex: 1 1 100%; padding-left: 16px; white-space: normal; font-size: 10px; }
  .mock:lang(hy) .m-status { font-size: 11px; }
  .m-ev-x b, .m-row-x b, .m-wl-x b, .m-op-x { white-space: normal; overflow: visible; }
  .mock-kontrol_network .m-st:nth-child(n+5) { display: none; }
  .m-air-w { grid-template-columns: minmax(0, 1fr); }
  .m-air-w small { display: none; }
  .m-kpi { padding: 8px 10px; }
  .m-kpi b { font-size: 18px; }
  .m-body { padding: 10px; gap: 12px; }
  .m-tl { --lane-l: 0px; padding: 10px; }
  .m-lane { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .m-links, .m-axis { margin-left: 0; }
  .m-op { grid-template-columns: 56px minmax(0, 1fr) 104px; }
  .m-op > :nth-child(2), .m-op > :nth-child(4) { display: none; }
  .m-hash { display: none; }
  .m-wl { grid-template-columns: 58px minmax(0, 1fr) 112px; padding: 8px 6px; }
  .m-wl > .m-wl-c, .m-wl-head > :nth-child(3) { display: none; }
  .m-wl-x svg { display: none; }
  .m-wl-x b { font-size: 12px; }
  .m-row { gap: 8px; }
  .m-check-in { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .m-zone { padding: 3px 4px; }
  .m-zone small { display: none; }
  .m-zone .lg { display: none; }
  .m-zone .sh { display: inline; }
  .m-plan { aspect-ratio: 4 / 3; }
  .m-graph { aspect-ratio: 1 / 1; }
  .m-node { padding: 3px 6px; gap: 4px; }
  .m-side { padding: 10px; }
}
@container (max-width: 380px) {
  .m-kpi small { font-size: 10px; }
  .m-ev { gap: 8px; padding-left: 8px; }
  .m-ev .m-chip { display: none; }
  .m-cam-pills .m-chip { font-size: 9.5px; padding: 2px 5px; }
}

/* в первом экране — компактнее: без строки показателей и второстепенных частей */
.hero-media .mock .m-kpis, .hero-media .mock .m-foot, .hero-media .mock-voice_transcript .m-checks,
.hero-media .mock-atlas_graph .m-srcs, .hero-media .mock-atlas_graph .m-audit, .hero-media .mock-flow_floor .m-heat-l { display: none; }
.hero-media .mock-vakhta_live .m-ev:nth-child(n+4), .hero-media .mock-kontrol_network .m-op:nth-child(n+4) { display: none; }
.hero-media .mock-atlas_graph .m-graph { aspect-ratio: 16 / 9; }
@container (min-width: 560px) {
  .hero-media .mock-flow_floor .m-split-wide { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .hero-media .mock-access_checkin .m-split-even, .hero-media .mock-watchlist_alert .m-split-wide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .hero-media .mock-flow_floor .m-journey li { grid-template-columns: auto minmax(0, 1fr); }
  .hero-media .mock-flow_floor .m-journey .m-mono { display: none; }
  .hero-media .mock-access_checkin .m-check-in { grid-template-columns: 76px minmax(0, 1fr); gap: 10px; }
  .hero-media .mock-access_checkin .m-air-w small { display: none; }
  .hero-media .mock-access_checkin .m-air-w { grid-template-columns: minmax(0, 1fr); }
  .hero-media .mock-access_checkin .m-row-x b { white-space: normal; overflow: visible; }
  .hero-media .mock-flow_floor .m-zone { padding: 3px 4px; }
  .hero-media .mock-flow_floor .m-zone small, .hero-media .mock-flow_floor .m-zone .lg { display: none; }
  .hero-media .mock-flow_floor .m-zone .sh { display: inline; }
  .hero-media .mock-flow_floor .m-plan { aspect-ratio: 1 / 1; }
}

/* движение: тонко и только если посетитель не просил его убрать */
@media (prefers-reduced-motion: no-preference) {
  .m-rec::before { animation: m-blink 1.6s steps(2, jump-none) infinite; }
  .m-scan { animation: m-scan 5.5s cubic-bezier(.45, 0, .55, 1) 1s infinite; }
  .m-flag:not(.is-static), .m-alert-h i { animation: m-pulse 2.4s ease-out infinite; }
  .m-led { animation: m-blink-soft 3s ease-in-out infinite; }
  .m-face-scan { animation: m-face 3.2s ease-in-out infinite; }
  .m-ev:first-child { animation: m-new 1.2s ease-out 1.2s both; }
}
@keyframes m-blink { 50% { opacity: .15; } }
@keyframes m-blink-soft { 50% { opacity: .55; } }
@keyframes m-scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: 1; } 70% { opacity: .8; } 100% { opacity: 0; transform: translateY(460%); } }
@keyframes m-pulse { 0% { box-shadow: 0 0 0 0 rgba(255, 74, 61, .45); } 70%, 100% { box-shadow: 0 0 0 9px rgba(255, 74, 61, 0); } }
@keyframes m-face { 0%, 100% { transform: translateY(-30px); opacity: .2; } 50% { transform: translateY(30px); opacity: .8; } }
@keyframes m-new { from { background-color: rgba(255, 212, 0, .14); } }

@media print {
  .mock { break-inside: avoid; page-break-inside: avoid; }
  .mock-fig { break-inside: avoid; page-break-inside: avoid; }
  .m-scan { display: none; }
  .mock-cap { color: #555; font-size: 7.5pt; margin-top: 1.5mm; }
  .mock-ill { color: #6b5a00; font-size: 7pt; }
}
