/* Operations, direction 10 "The map.": the page is a drawing sheet. A quiet dot grid,
   swimlanes, numbered callouts with leader lines, measured dimensions, revision stamps.
   Drafting lines use the frost ink (blue pencil); red stays for attention and the brand dot. */

.p-operations {
  --op-pen: var(--frost-ink);
  --op-dot: color-mix(in srgb, var(--line-strong) 70%, transparent);
  --op-lane: color-mix(in srgb, var(--surface-sunk) 55%, var(--surface));
  background-color: var(--paper);
  background-image: radial-gradient(var(--op-dot) 1px, transparent 1.3px);
  background-size: 24px 24px;
  background-position: 12px 12px;
}
.p-operations .op-hero { padding: var(--space-12) 0 0; }

/* ---------- Sheet header and labels ---------- */
.p-operations .op-sheet { display: flex; flex-wrap: wrap; gap: 6px 24px; padding: 10px 0; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--line); margin-bottom: var(--space-12);
  font: 500 11px/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-operations .op-sheet span:first-child { color: var(--ink); }
.p-operations .op-sheet span:first-child::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--carmine); margin-right: 8px; vertical-align: 1px; }
.p-operations .op-sheet span:last-child { margin-left: auto; color: var(--op-pen); }
.p-operations .op-hero__head { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; margin-bottom: var(--space-12); }
.p-operations .op-hero__text { display: grid; gap: var(--space-8); padding-bottom: 40px; }
.p-operations .op-hero__text h1 { font-size: clamp(48px, 7vw, 100px); }
.p-operations .op-hero__text .lead { max-width: 52ch; }
/* Fig. 1: the photo, framed like a detail on the sheet */
.p-operations .op-fig { position: relative; margin: 0; padding: 10px; border: 1px solid var(--line-strong); background: var(--surface); }
.p-operations .op-fig::before, .p-operations .op-fig::after { content: ""; position: absolute; width: 14px; height: 14px; border-color: var(--op-pen); border-style: solid; }
.p-operations .op-fig::before { left: -6px; top: -6px; border-width: 1.5px 0 0 1.5px; }
.p-operations .op-fig::after { right: -6px; bottom: -6px; border-width: 0 1.5px 1.5px 0; }
.p-operations .op-fig__photo { aspect-ratio: 1 / 1; border-radius: 2px; }
.p-operations .op-fig__photo > img { object-position: 40% 42%; }
.p-operations .op-fig figcaption { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 10px 2px 2px; font-size: 13px; line-height: 1.45; color: var(--muted); }
.p-operations .op-fig figcaption span { font: 500 11px/1.8 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--op-pen); white-space: nowrap; }
.p-operations .op-acts { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-3) var(--space-6); }
.p-operations .op-link { font-size: 15px; font-weight: 500; color: var(--ink); text-decoration: none; border-bottom: 1px solid var(--line-strong); padding-bottom: 2px; }
.p-operations .op-link:hover { border-bottom-color: var(--ink); }

.p-operations .op-label { display: flex; align-items: center; gap: 12px; margin: 0 0 var(--space-8); font: 500 11.5px/1 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.p-operations .op-label span { width: 26px; height: 26px; display: grid; place-items: center; border: 1px solid var(--op-pen); border-radius: 50%; color: var(--op-pen); letter-spacing: 0; font-size: 12px; }
.p-operations .op-label i { flex: 1; height: 1px; background: var(--line); }
.p-operations .op-head { margin-bottom: var(--space-12); }
.p-operations .op-head__grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: var(--space-12); align-items: end; }
.p-operations .op-head__grid .lead { padding-bottom: 6px; }
.p-operations .op-head--small { margin-bottom: var(--space-8); }
.p-operations .op-sec { position: relative; }
.p-operations .op-todo { margin-top: var(--space-6); max-width: 880px; }
.p-operations .ok { color: var(--ok); }

/* ---------- The map (hero) ---------- */
.p-operations .op-map { position: relative; }
.p-operations .op-map__rev { font: 500 11px/1 var(--font-mono); color: var(--op-pen); border: 1px solid currentColor; border-radius: 4px; padding: 4px 6px; letter-spacing: .04em; }
.p-operations .op-map__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 24px; flex-wrap: wrap; padding: 10px 16px; border-bottom: 1px solid var(--line); }
.p-operations .op-map__procs, .p-operations .op-legend { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.p-operations .op-map__procs li { height: 30px; display: inline-flex; align-items: center; gap: 8px; padding: 0 12px; border-radius: var(--radius-pill); font-size: 13px; color: var(--muted); border: 1px solid transparent; }
.p-operations .op-map__procs li small { font: 500 11px/1 var(--font-mono); color: var(--muted); }
.p-operations .op-map__procs li.is-on { background: var(--ink); color: var(--paper); }
.p-operations .op-map__procs li.is-on small { color: color-mix(in srgb, var(--paper) 70%, transparent); }
.p-operations .op-map__procs .op-map__more { border-color: var(--line); }
.p-operations .op-legend { gap: 16px; font-size: 12px; color: var(--muted); }
.p-operations .op-legend li { display: inline-flex; align-items: center; gap: 6px; }
.p-operations .op-legend svg { width: 12px; height: 12px; color: var(--carmine); }
.p-operations .op-legend__note { font-size: 12px; color: var(--op-pen); }

.p-operations .op-map__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.p-operations .op-map__scroll:focus-visible { outline: 2px solid var(--op-pen); outline-offset: -2px; }
.p-operations .op-map__in { display: grid; grid-template-columns: 112px var(--cw); width: max-content; min-width: 100%; }
.p-operations .op-map__labs { position: sticky; left: 0; z-index: 4; background: var(--surface); border-right: 1px solid var(--line); }
.p-operations .op-lab { display: flex; flex-direction: column; justify-content: center; gap: 2px; padding: 0 14px; border-top: 1px dashed var(--line-strong); }
.p-operations .op-lab b { font-size: 13px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.p-operations .op-lab small { font: 500 11px/1 var(--font-mono); color: var(--op-pen); font-variant-numeric: tabular-nums; }
.p-operations .op-canvas { position: relative; width: var(--cw); height: var(--ch);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 23px 23px; background-position: -1px -1px; background-color: var(--surface); }
.p-operations .op-lane { position: absolute; left: 0; right: 0; border-top: 1px dashed var(--line-strong); }
.p-operations .op-lane:nth-child(odd) { background: color-mix(in srgb, var(--surface) 70%, transparent); }
.p-operations .op-lane:nth-child(even) { background: color-mix(in srgb, var(--surface-sunk) 45%, transparent); }
.p-operations .op-ruler, .p-operations .op-wires { position: absolute; left: 0; top: 0; overflow: visible; pointer-events: none; }
.p-operations .op-ruler { z-index: 1; background: var(--surface); }
.p-operations .op-ruler line { stroke: var(--op-pen); stroke-width: 1; }
.p-operations .op-ruler text { font: 500 10.5px var(--font-mono); fill: var(--op-pen); font-variant-numeric: tabular-nums; }
.p-operations .op-wires { z-index: 1; }
.p-operations .op-wire { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linejoin: round; }
.p-operations .op-tip { fill: none; stroke: var(--ink-2); stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.p-operations .op-leaders path { fill: none; stroke: var(--op-pen); stroke-width: 1; stroke-dasharray: 3 3; }
.p-operations .op-leaders circle { fill: var(--op-pen); }

.p-operations .op-stamp { position: absolute; z-index: 1; display: grid; gap: 2px; padding: 8px 12px; border: 1.5px solid var(--op-pen); border-radius: 4px; background: var(--surface);
  font: 500 10.5px/1.35 var(--font-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--op-pen); }
.p-operations .op-stamp b { font: 600 13px/1.2 var(--font-sans); letter-spacing: -0.01em; text-transform: none; color: var(--ink); }

.p-operations .op-call { position: absolute; z-index: 2; width: 220px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px; align-items: start; margin: 0;
  padding: 7px 10px 7px 7px; background: var(--surface); border: 1px solid color-mix(in srgb, var(--op-pen) 45%, var(--line)); border-radius: 6px;
  font-size: 12px; line-height: 1.35; color: var(--ink-2); box-shadow: 0 1px 2px rgba(18,18,17,.05); }
.p-operations .op-call__k { width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; background: var(--op-pen); color: var(--surface); font: 600 10.5px/1 var(--font-mono); }
.p-operations .op-call svg { display: inline-block; width: 10px; height: 10px; color: var(--carmine); margin-right: 4px; vertical-align: -1px; }

.p-operations .op-node { position: absolute; z-index: 3; width: 124px; height: 78px; display: grid; grid-template-rows: auto auto 1fr auto; gap: 1px; padding: 7px 9px 8px;
  border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); color: var(--ink); text-align: left; cursor: pointer;
  font: inherit; box-shadow: 0 1px 2px rgba(18,18,17,.06); transition: border-color .15s ease, box-shadow .2s ease, transform .2s ease; }
.p-operations .op-node:hover { border-color: var(--ink-2); transform: translateY(-1px); }
.p-operations .op-node:focus-visible { outline: 2px solid var(--op-pen); outline-offset: 2px; }
.p-operations .op-node.is-sel { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink), 0 10px 24px -12px rgba(18,18,17,.4); }
.p-operations .op-node__top { display: flex; align-items: center; gap: 5px; }
.p-operations .op-node__n { font: 500 10px/1 var(--font-mono); color: var(--muted); letter-spacing: .04em; }
.p-operations .op-node__notes { margin-left: auto; font: 500 10px/1 var(--font-mono); color: var(--op-pen); }
.p-operations .op-node__ok { width: 14px; height: 14px; display: grid; place-items: center; border-radius: 50%; background: var(--ok-soft); color: var(--ok); }
.p-operations .op-node__ok svg { width: 10px; height: 10px; }
.p-operations .op-node__name { font-size: 13px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-operations .op-node__meta { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; font-size: 11px; color: var(--muted); min-width: 0; }
.p-operations .op-node__meta span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-operations .op-node__meta em { font: 500 11px/1 var(--font-mono); font-style: normal; color: var(--ink); white-space: nowrap; font-variant-numeric: tabular-nums; }
.p-operations .op-node__foot { display: flex; align-items: center; gap: 8px; }
.p-operations .op-node__bar { flex: 1; height: 3px; border-radius: 2px; background: var(--surface-sunk); position: relative; overflow: hidden; }
.p-operations .op-node__bar::after { content: ""; position: absolute; inset: 0; background: var(--ink-2); transform-origin: left; transform: scaleX(var(--m)); border-radius: 2px; }

.p-operations .op-pips { display: inline-flex; gap: 2px; vertical-align: middle; }
.p-operations .op-pips i { width: 7px; height: 7px; border-radius: 2px; border: 1px solid var(--line-strong); }
.p-operations .op-pips i.on { background: var(--ok); border-color: var(--ok); }

.p-operations .op-map__hint { display: none; margin: 0; padding: 8px 16px; border-top: 1px solid var(--line); font: 500 11px/1.2 var(--font-mono); color: var(--muted); letter-spacing: .04em; }

/* Inspector: the selected step */
.p-operations .op-insp { border-top: 1px solid var(--line); background: var(--surface); }
.p-operations .op-insp__panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr) minmax(0, 1.35fr) minmax(0, 1.2fr); }
.p-operations .op-insp__panel[hidden] { display: none; }
.p-operations .op-insp__panel > * { padding: 18px 20px; min-width: 0; }
.p-operations .op-insp__panel > * + * { border-left: 1px solid var(--line); }
.p-operations .op-insp__k { display: block; margin-bottom: 8px; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.p-operations .op-insp__id h3 { margin: 0 0 12px; font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.p-operations .op-insp__who { display: flex; align-items: center; gap: 10px; }
.p-operations .op-insp__who img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.p-operations .op-insp__who b { display: block; font-size: 13.5px; font-weight: 600; color: var(--ink); }
.p-operations .op-insp__who small { display: block; font-size: 12px; color: var(--muted); }
.p-operations .op-insp__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; align-content: start; }
.p-operations .op-insp__facts dt { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.p-operations .op-insp__facts dd { margin: 0; font: 500 18px/1.15 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.p-operations .op-insp__facts dd small { font: 400 11.5px var(--font-sans); color: var(--muted); }
.p-operations .op-insp__facts dd.op-insp__txt { font: 400 13px/1.4 var(--font-sans); color: var(--ink-2); }
.p-operations .op-insp__txt .op-pips { margin-right: 6px; }
.p-operations .op-insp__notes, .p-operations .op-insp__ideas { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.p-operations .op-insp__notes li { padding-left: 12px; border-left: 2px solid color-mix(in srgb, var(--op-pen) 50%, var(--line)); }
.p-operations .op-insp__notes p { font-size: 13.5px; line-height: 1.45; color: var(--ink); }
.p-operations .op-insp__notes small { font-size: 12px; color: var(--muted); }
.p-operations .op-insp__ideas li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: center; font-size: 13px; color: var(--ink); }
.p-operations .op-insp__ideas b { font-weight: 500; }
.p-operations .op-insp__ideas em { font: 500 12px/1 var(--font-mono); font-style: normal; color: var(--ok); white-space: nowrap; }
.p-operations .op-insp__ideas li.op-insp__none { display: block; font-size: 13px; line-height: 1.45; color: var(--muted); }

.p-operations .op-layer { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font: 500 10.5px/1 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; }
.p-operations .op-layer--now { background: var(--ink); color: var(--paper); }
.p-operations .op-layer--next { border: 1px dashed var(--ink-2); color: var(--ink-2); }

/* Title block */
.p-operations .op-tblock { margin: 0; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); border-top: 1.5px solid var(--ink); background: var(--surface); }
.p-operations .op-tblock div { padding: 10px 16px 12px; min-width: 0; }
.p-operations .op-tblock div + div { border-left: 1px solid var(--line); }
.p-operations .op-tblock dt { font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.p-operations .op-tblock dd { margin: 0; font: 500 14px/1.25 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.p-operations .op-under { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); margin-top: var(--space-6); }
.p-operations .op-key { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 60ch; }
.p-operations .op-key__k { font: 500 11px/1.9 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--op-pen); white-space: nowrap; }

/* Draw-in, only once armed by JS (still state is final) */
.p-operations.is-armed .op-map .op-wire { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset .5s ease calc(.25s + var(--k) * .16s); }
.p-operations.is-armed .op-map .op-tip, .p-operations.is-armed .op-map .op-call, .p-operations.is-armed .op-map .op-leaders, .p-operations.is-armed .op-map .op-stamp { opacity: 0; transition: opacity .4s ease; }
.p-operations.is-armed .op-map .op-tip { transition-delay: calc(.6s + var(--k) * .16s); }
.p-operations.is-armed .op-map .op-node { opacity: 0; transform: translateY(6px); transition: opacity .4s ease calc(var(--k) * .16s), transform .5s cubic-bezier(.2,.7,.2,1) calc(var(--k) * .16s), border-color .15s ease, box-shadow .2s ease; }
.p-operations.is-armed .op-map.is-in .op-wire { stroke-dashoffset: 0; }
.p-operations.is-armed .op-map.is-in .op-tip, .p-operations.is-armed .op-map.is-in .op-stamp { opacity: 1; }
.p-operations.is-armed .op-map.is-in .op-node { opacity: 1; transform: none; }
.p-operations.is-armed .op-map.is-in .op-leaders, .p-operations.is-armed .op-map.is-in .op-call { opacity: 1; transition-delay: 1.8s; }
.p-operations.is-armed .op-map.is-in .op-node:hover { transform: translateY(-1px); transition-delay: 0s; }

/* ---------- B: notes change the map ---------- */
.p-operations .op-noteflow { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-8); align-items: stretch; }
.p-operations .op-frag { grid-template-rows: auto 1fr auto auto; }
.p-operations .op-frag__lane { align-self: center; }
.p-operations .op-thread__body { padding: 20px; display: grid; gap: 16px; }
.p-operations .op-msg { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; }
.p-operations .op-msg img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }
.p-operations .op-msg__who { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin-bottom: 4px; }
.p-operations .op-msg__who b { font-size: 14px; font-weight: 600; color: var(--ink); }
.p-operations .op-msg__who span { font-size: 12px; color: var(--muted); }
.p-operations .op-msg__text { font-size: 16px; line-height: 1.5; color: var(--ink); padding: 12px 14px; border-radius: 4px 12px 12px 12px; background: var(--surface-sunk); }
.p-operations .op-reply { margin-left: 48px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); display: grid; gap: 12px; }
.p-operations .op-reply__head { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--ink); }
.p-operations .op-reply__mark { width: 22px; height: 22px; display: grid; place-items: center; border-radius: 6px; background: var(--carmine-soft); color: var(--carmine); }
.p-operations .op-reply__mark svg { width: 12px; height: 12px; }
.p-operations .op-reply__when { margin-left: auto; font: 500 11px/1 var(--font-mono); color: var(--muted); }
.p-operations .op-reply__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.p-operations .op-reply__list li { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 10px; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); transition: opacity .3s ease; }
.p-operations .op-reply__list b { font-weight: 600; color: var(--ink); }
.p-operations .op-reply__k { font: 500 10.5px/1.9 var(--font-mono); letter-spacing: .06em; text-transform: uppercase; color: var(--op-pen); }
.p-operations .op-reply__acts { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); }
.p-operations .op-undo { height: 32px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--line-strong); background: var(--surface); font: 500 13px/1 var(--font-sans); color: var(--ink); cursor: pointer; }
.p-operations .op-undo:hover { border-color: var(--ink); }
.p-operations .op-undo:focus-visible { outline: 2px solid var(--op-pen); outline-offset: 2px; }
.p-operations .op-reply__state { font-size: 12.5px; color: var(--muted); }
.p-operations .op-undo__b, .p-operations .op-reply__off, .p-operations .op-dim__off { display: none; }
.p-operations [data-state="undone"] .op-undo__a, .p-operations [data-state="undone"] .op-reply__on, .p-operations [data-state="undone"] .op-dim__on { display: none; }
.p-operations [data-state="undone"] .op-undo__b, .p-operations [data-state="undone"] .op-reply__off, .p-operations [data-state="undone"] .op-dim__off { display: inline; }
.p-operations [data-state="undone"] .op-reply__list li { opacity: .45; text-decoration: line-through; text-decoration-color: var(--line-strong); }

.p-operations .op-frag { margin: 0; position: relative; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); display: grid; gap: 18px; align-content: start;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: 23px 23px; background-position: -1px -1px; }
.p-operations .op-frag__cap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font: 500 11px/1.4 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); }
.p-operations .op-frag__rev { color: var(--op-pen); }
.p-operations .op-frag__rev s { color: var(--muted); margin-right: 4px; }
.p-operations .op-frag__lane { display: grid; grid-template-columns: minmax(0, 1fr) 18px minmax(0, 1.15fr) 18px minmax(0, 1fr); align-items: center; padding: 22px 12px; border-top: 1px dashed var(--line-strong); border-bottom: 1px dashed var(--line-strong); background: color-mix(in srgb, var(--surface) 75%, transparent); }
.p-operations .op-fnode { position: relative; display: grid; gap: 3px; padding: 9px 10px; border: 1px solid var(--line-strong); border-radius: 8px; background: var(--surface); box-shadow: 0 1px 2px rgba(18,18,17,.06); min-width: 0; transition: opacity .35s ease, transform .35s ease; }
.p-operations .op-fnode b { font-size: 13px; line-height: 1.25; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.p-operations .op-fnode--new { border: 1.5px solid var(--op-pen); box-shadow: 0 0 0 4px color-mix(in srgb, var(--frost) 80%, transparent); }
.p-operations .op-fnode__tag { position: absolute; top: -10px; right: 8px; padding: 2px 6px; border-radius: 4px; background: var(--op-pen); color: var(--surface); font: 500 10px/1.3 var(--font-mono); }
.p-operations .op-renum s { color: var(--muted); margin-right: 4px; }
.p-operations .op-renum b { font: inherit; color: var(--op-pen); }
.p-operations .op-frag__wire { height: 1.4px; background: var(--ink-2); position: relative; }
.p-operations .op-frag__wire::after { content: ""; position: absolute; right: 0; top: -3px; width: 6px; height: 6px; border-top: 1.4px solid var(--ink-2); border-right: 1.4px solid var(--ink-2); transform: rotate(45deg); }
.p-operations .op-dim { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; margin: -6px 22% 0; font: 500 11px/1 var(--font-mono); color: var(--op-pen); }
.p-operations .op-dim i { height: 1px; background: var(--op-pen); position: relative; }
.p-operations .op-dim i:first-child::before, .p-operations .op-dim i:last-child::after { content: ""; position: absolute; top: -5px; width: 1px; height: 11px; background: var(--op-pen); }
.p-operations .op-dim i:first-child::before { left: 0; }
.p-operations .op-dim i:last-child::after { right: 0; }
.p-operations .op-frag__sum { margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface); }
.p-operations .op-frag__sum div { padding: 10px 14px; }
.p-operations .op-frag__sum div + div { border-left: 1px solid var(--line); }
.p-operations .op-frag__sum dt { font: 500 10px/1.2 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.p-operations .op-frag__sum dd { margin: 0; display: flex; gap: 8px; align-items: baseline; flex-wrap: wrap; font: 500 16px/1.2 var(--font-mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.p-operations .op-frag__sum s { font-size: 12px; color: var(--muted); }
/* undone: the fragment goes back to Rev. 15 */
.p-operations [data-state="undone"] .op-fnode--new { opacity: .28; transform: scale(.96); border-style: dashed; box-shadow: none; }
.p-operations [data-state="undone"] .op-frag__wire--new { opacity: .3; }
.p-operations [data-state="undone"] .op-frag__rev b, .p-operations [data-state="undone"] .op-renum b, .p-operations [data-state="undone"] .op-frag__sum b { text-decoration: line-through; opacity: .45; }
.p-operations [data-state="undone"] .op-frag__rev s, .p-operations [data-state="undone"] .op-renum s, .p-operations [data-state="undone"] .op-frag__sum s { text-decoration: none; color: var(--ink); font-size: inherit; }
.p-operations [data-state="undone"] .op-frag__rev s { color: var(--op-pen); }

/* revision table */
.p-operations .op-revs { margin-top: var(--space-8); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.p-operations .op-revs__head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1.5px solid var(--ink); font-size: 13px; color: var(--muted); }
.p-operations .op-revs__head b { color: var(--ink); font-weight: 600; }
.p-operations .op-revs__scroll { overflow-x: auto; }
.p-operations .op-revtab { width: 100%; border-collapse: collapse; font-size: 13px; color: var(--ink); min-width: 680px; }
.p-operations .op-revtab th { text-align: left; font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 9px 16px; border-bottom: 1px solid var(--line); }
.p-operations .op-revtab td { padding: 10px 16px; border-bottom: 1px solid var(--line); vertical-align: top; }
.p-operations .op-revtab tr:last-child td { border-bottom: 0; }
.p-operations .op-revtab td:nth-child(2) { font: 400 12px/1.5 var(--font-mono); color: var(--muted); white-space: nowrap; }
.p-operations .op-revtab td:nth-child(3) { white-space: nowrap; color: var(--ink-2); }
.p-operations .op-rev__n { font: 600 13px/1.4 var(--font-mono); color: var(--op-pen); width: 56px; }
.p-operations .op-revst { font-size: 12.5px; color: var(--ok); white-space: nowrap; }
.p-operations .op-revst--new { color: var(--op-pen); }
.p-operations .op-revst--undone { color: var(--muted); white-space: normal; }
.p-operations .op-rev--undone .op-rev__what { color: var(--muted); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.p-operations .op-rev--new td { background: color-mix(in srgb, var(--frost) 55%, transparent); }
.p-operations .op-revs[data-state="undone"] .op-rev--new .op-rev__what { color: var(--muted); text-decoration: line-through; }

.p-operations .op-notes-side { margin-top: var(--space-8); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.p-operations .op-rule { display: flex; gap: 14px; align-items: flex-start; max-width: 70ch; font-size: clamp(17px, 1.5vw, 20px); line-height: 1.5; color: var(--ink); }
.p-operations .op-rule svg { width: 20px; height: 20px; flex: none; color: var(--ok); margin-top: 2px; }

/* ---------- C: heat map ---------- */
.p-operations .op-heat { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 8px 20px 18px; }
.p-operations .op-heat__scroll { overflow-x: auto; }
.p-operations .op-heat__tab { width: 100%; min-width: 640px; border-collapse: separate; border-spacing: 4px; table-layout: fixed; }
.p-operations .op-heat__tab thead th:first-child { width: 28%; }
.p-operations .op-heat__tab thead th.op-heat__tot { width: 64px; }
.p-operations .op-heat__cap { caption-side: top; text-align: left; padding: 12px 4px 8px; font-size: 13px; color: var(--muted); }
.p-operations .op-heat__cap b { font: 600 22px/1 var(--font-mono); color: var(--ink); margin-right: 4px; letter-spacing: -0.02em; }
.p-operations .op-heat__tab th { font-weight: 400; }
.p-operations .op-heat__tab thead th { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); text-align: center; padding: 6px 2px; }
.p-operations .op-heat__tab thead th:first-child { text-align: left; }
.p-operations .op-heat__corner i { font-style: normal; color: var(--op-pen); }
.p-operations .op-heat__tab tbody th { text-align: left; font-size: 14px; color: var(--ink); padding-right: 12px; white-space: nowrap; width: 30%; }
.p-operations .op-heat__tab td { padding: 0; text-align: center; }
.p-operations .op-cell { width: 100%; height: 46px; display: grid; place-items: center; border: 0; border-radius: 6px; cursor: pointer;
  background: color-mix(in srgb, var(--ink) calc(var(--v) * 88%), var(--surface-sunk)); color: var(--ink);
  font: 500 14px/1 var(--font-mono); font-variant-numeric: tabular-nums; transition: box-shadow .15s ease, opacity .4s ease; }
.p-operations .op-cell.is-dark { color: var(--paper); }
.p-operations .op-cell:hover { box-shadow: 0 0 0 1.5px var(--op-pen); }
.p-operations .op-cell:focus-visible { outline: 2px solid var(--op-pen); outline-offset: 2px; }
.p-operations .op-cell.is-sel { box-shadow: 0 0 0 2px var(--surface), 0 0 0 3.5px var(--op-pen); }
.p-operations .op-cell--zero { cursor: default; background: transparent; color: var(--line-strong); border: 1px dashed var(--line); }
.p-operations .op-heat__tot { font: 500 13px/1 var(--font-mono); color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; width: 60px; }
.p-operations .op-heat__tab tfoot th, .p-operations .op-heat__tab tfoot td { padding-top: 10px; border-top: 1px solid var(--line); font: 500 13px/1 var(--font-mono); color: var(--muted); text-align: center; }
.p-operations .op-heat__tab tfoot th { text-align: left; font: 500 10.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; }
.p-operations .op-heat__tab tfoot b { color: var(--ink); }
.p-operations .op-heat__read { display: flex; gap: 10px; align-items: baseline; margin: 10px 4px 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: 14px; color: var(--ink-2); min-height: 2.6em; }
.p-operations .op-heat__read b { color: var(--ink); font-weight: 600; }
.p-operations .op-heat__dot { flex: none; width: 8px; height: 8px; border-radius: 2px; background: var(--op-pen); transform: translateY(-1px); }
.p-operations .op-heat__scale { display: flex; align-items: center; gap: 10px; margin: 10px 4px 0; font: 500 10.5px/1 var(--font-mono); color: var(--muted); }
.p-operations .op-heat__scale b { display: flex; gap: 2px; }
.p-operations .op-heat__scale i { width: 26px; height: 8px; border-radius: 2px; background: color-mix(in srgb, var(--ink) calc(var(--v) * 88%), var(--surface-sunk)); }
.p-operations.is-armed .op-heat .op-cell { opacity: 0; transition: opacity .5s ease calc(var(--k) * .05s), box-shadow .15s ease; }
.p-operations.is-armed .op-heat.is-in .op-cell { opacity: 1; }

/* ---------- D: roadmap ---------- */
.p-operations .op-road { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 20px; display: grid; gap: 22px; }
.p-operations .op-road__top { display: flex; justify-content: space-between; align-items: center; gap: 16px 32px; flex-wrap: wrap; }
.p-operations .op-road__figs { margin: 0; display: flex; gap: 28px; flex-wrap: wrap; }
.p-operations .op-road__figs dt { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.p-operations .op-road__figs dd { margin: 0; display: grid; font: 600 24px/1.1 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-operations .op-road__figs dd > b, .p-operations .op-seg em > b, .p-operations .op-strip__saved > span { grid-area: 1 / 1; font-weight: inherit; transition: opacity .3s ease; }
.p-operations .op-road__figs .ok { color: var(--ok); }
.p-operations .op-road .op-v { opacity: 0; }
.p-operations .op-road[data-layer="today"] .op-v--t, .p-operations .op-road[data-layer="now"] .op-v--n, .p-operations .op-road[data-layer="next"] .op-v--x { opacity: 1; }

.p-operations .op-strip__cap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 10px; font-size: 13px; color: var(--muted); }
.p-operations .op-strip__cap b { color: var(--ink); font-weight: 600; }
.p-operations .op-strip__bar { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; height: 64px; }
.p-operations .op-seg { --m: var(--t); flex: 0 0 calc(var(--m) * (100% - 18px) / 163); min-width: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 6px 6px 7px;
  background: var(--surface-sunk); border-top: 2px solid var(--ink-2); overflow: hidden; transition: flex-basis .6s cubic-bezier(.2,.7,.2,1), background-color .3s ease; }
.p-operations .op-road[data-layer="now"] .op-seg { --m: var(--n); }
.p-operations .op-road[data-layer="next"] .op-seg { --m: var(--x); }
.p-operations .op-road:not([data-layer="today"]) .op-seg--chg { border-top-color: var(--ok); background: var(--ok-soft); }
.p-operations .op-seg span { font-size: 11px; line-height: 1.2; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-operations .op-seg em { display: grid; font: 500 12px/1 var(--font-mono); font-style: normal; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-operations .op-strip__saved { flex: 1; display: grid; place-items: center; border: 1px dashed var(--line-strong); border-radius: 0 6px 6px 0; font: 500 12px/1 var(--font-mono); color: var(--ok); min-width: 0; }
.p-operations .op-road[data-layer="today"] .op-strip__saved { border-color: transparent; }

.p-operations .op-rds { list-style: none; margin: 0; padding: 0; display: grid; border-top: 1px solid var(--line); }
.p-operations .op-rd { display: grid; grid-template-columns: 28px minmax(0, 1.7fr) 80px 56px minmax(80px, 1fr) 64px minmax(0, 0.9fr); gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); transition: opacity .3s ease; }
.p-operations .op-rd__n { font: 500 12px/1 var(--font-mono); color: var(--muted); }
.p-operations .op-rd .op-layer { justify-self: start; }
.p-operations .op-rd__what b { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.p-operations .op-rd__what small { display: block; font-size: 12.5px; color: var(--muted); }
.p-operations .op-rd__dept { font-size: 13px; color: var(--ink-2); }
.p-operations .op-rd__bar { height: 6px; border-radius: 3px; background: var(--surface-sunk); position: relative; overflow: hidden; }
.p-operations .op-rd__bar i { position: absolute; inset: 0; border-radius: 3px; background: var(--ok); transform-origin: left; transform: scaleX(var(--w)); }
.p-operations .op-rd--next .op-rd__bar i { background: color-mix(in srgb, var(--ok) 45%, var(--surface-sunk)); }
.p-operations .op-rd em { font: 500 13px/1 var(--font-mono); font-style: normal; color: var(--muted); text-align: right; white-space: nowrap; }
.p-operations .op-rd em b { font-size: 16px; color: var(--ink); }
.p-operations .op-rd__tool { font: 500 10.5px/1.3 var(--font-mono); letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.p-operations .op-road[data-layer="today"] .op-rd { opacity: 1; }
.p-operations .op-road[data-layer="now"] .op-rd--next { opacity: .35; }
.p-operations .op-road__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; color: var(--muted); }

/* ---------- E: measured ---------- */
.p-operations .op-meas { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); overflow: hidden; }
.p-operations .op-meas__chart { padding: 18px 20px 12px; border-right: 1px solid var(--line); min-width: 0; overflow-x: auto; }
.p-operations .op-meas__cap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 8px; }
.p-operations .op-meas__cap b { color: var(--ink); font-weight: 600; }
.p-operations .op-ch { width: 100%; height: auto; overflow: visible; }
.p-operations .op-ch text { font: 500 10.5px var(--font-mono); fill: var(--muted); }
.p-operations .op-ch__grid { stroke: var(--line); stroke-width: 1; }
.p-operations .op-ch__after { fill: color-mix(in srgb, var(--ok-soft) 70%, transparent); }
.p-operations .op-ch__live { stroke: var(--ok); stroke-width: 1.2; stroke-dasharray: 4 3; }
.p-operations .op-ch text.op-ch__livet { fill: var(--ok); font-weight: 600; }
.p-operations .op-ch__avg { stroke: var(--op-pen); stroke-width: 1; stroke-dasharray: 2 3; }
.p-operations .op-ch__line { fill: none; stroke: var(--ink); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.p-operations .op-ch circle { fill: var(--surface); stroke: var(--ink); stroke-width: 1.6; }
.p-operations .op-ch circle.is-after { stroke: var(--ok); }
.p-operations .op-ch__dim line, .p-operations .op-ch__dim path { stroke: var(--op-pen); stroke-width: 1; fill: none; }
.p-operations .op-ch__dim text { fill: var(--op-pen); font-weight: 600; font-size: 11px; }
.p-operations.is-armed .op-meas .op-ch__line { stroke-dasharray: 1; stroke-dashoffset: 1; transition: stroke-dashoffset 1.6s ease .2s; }
.p-operations.is-armed .op-meas .op-ch circle, .p-operations.is-armed .op-meas .op-ch__dim { opacity: 0; transition: opacity .5s ease 1.4s; }
.p-operations.is-armed .op-meas.is-in .op-ch__line { stroke-dashoffset: 0; }
.p-operations.is-armed .op-meas.is-in .op-ch circle, .p-operations.is-armed .op-meas.is-in .op-ch__dim { opacity: 1; }
.p-operations .op-meas__facts { margin: 0; display: grid; grid-template-columns: 1fr 1fr; align-content: start; }
.p-operations .op-meas__facts > div { padding: 16px 20px; border-bottom: 1px solid var(--line); }
.p-operations .op-meas__facts > div:nth-child(odd):not(.op-meas__wide) { border-right: 1px solid var(--line); }
.p-operations .op-meas__wide { grid-column: 1 / -1; }
.p-operations .op-meas__facts > div:last-child { border-bottom: 0; }
.p-operations .op-meas__facts dt { font: 500 10.5px/1.2 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.p-operations .op-meas__facts dd { margin: 0; font: 600 28px/1.05 var(--font-mono); letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; }
.p-operations .op-meas__facts dd.ok { color: var(--ok); }
.p-operations .op-meas__facts dd small { font: 400 12px var(--font-sans); letter-spacing: 0; color: var(--muted); }
.p-operations .op-meas__facts dd.op-meas__txt { font: 400 14px/1.5 var(--font-sans); letter-spacing: 0; color: var(--ink-2); }

/* ---------- F: schedules ---------- */
.p-operations .op-sched { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-8); }
.p-operations .op-sched__col { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); padding: 18px 20px 20px; min-width: 0; }
.p-operations .op-sched__cap { display: flex; gap: 10px; align-items: baseline; flex-wrap: wrap; margin-bottom: 16px; font-size: 13px; color: var(--muted); }
.p-operations .op-sched__cap b { color: var(--ink); font-weight: 600; font-size: 15px; }
.p-operations .op-org { display: grid; justify-items: center; }
.p-operations .op-org__top { display: grid; grid-template-columns: 32px auto; column-gap: 10px; align-items: center; padding: 8px 14px 8px 8px; border: 1px solid var(--ink); border-radius: 10px; background: var(--surface); position: relative; }
.p-operations .op-org__top img { grid-row: span 2; width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.p-operations .op-org__top b { font-size: 13.5px; color: var(--ink); }
.p-operations .op-org__top small { font-size: 11.5px; color: var(--muted); }
.p-operations .op-org__top::after { content: ""; position: absolute; left: 50%; top: 100%; width: 1px; height: 18px; background: var(--line-strong); }
.p-operations .op-org__list { list-style: none; margin: 18px 0 0; padding: 18px 0 0; width: 100%; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; position: relative; }
.p-operations .op-org__list::before { content: ""; position: absolute; top: 0; left: 10%; right: 10%; height: 1px; background: var(--line-strong); }
.p-operations .op-org__list li { position: relative; display: grid; justify-items: center; text-align: center; gap: 4px; padding: 10px 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.p-operations .op-org__list li::before { content: ""; position: absolute; left: 50%; bottom: 100%; width: 1px; height: 18px; background: var(--line-strong); }
.p-operations .op-org__list img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; }
.p-operations .op-org__list b { font-size: 12.5px; line-height: 1.2; color: var(--ink); }
.p-operations .op-org__list small { font: 400 11px/1.3 var(--font-mono); color: var(--muted); }
.p-operations .op-sys { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.p-operations .op-sys li { display: grid; grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 64px 44px; gap: 12px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; color: var(--ink); }
.p-operations .op-sys li:last-child { border-bottom: 0; }
.p-operations .op-sys__bar { height: 6px; border-radius: 3px; background: var(--surface-sunk); position: relative; overflow: hidden; }
.p-operations .op-sys__bar i { position: absolute; inset: 0; background: var(--ink-2); border-radius: 3px; transform-origin: left; transform: scaleX(var(--w)); }
.p-operations .op-sys small { font: 400 12px/1 var(--font-mono); color: var(--muted); white-space: nowrap; }
.p-operations .op-sys em { font: 500 13px/1 var(--font-mono); font-style: normal; text-align: right; }

/* ---------- G: blank sheet and the drawing set ---------- */
.p-operations .op-close { padding-bottom: var(--space-24); }
.p-operations .op-close__grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-12); align-items: center; }
.p-operations .op-close__text { display: grid; gap: var(--space-6); }
.p-operations .op-close__text .op-label { margin-bottom: var(--space-2); }
.p-operations .op-blank { border: 1.5px dashed var(--line-strong); border-radius: var(--radius-lg); background: color-mix(in srgb, var(--surface) 80%, transparent); overflow: hidden; }
.p-operations .op-blank__lanes { position: relative; }
.p-operations .op-blank__lanes > div { height: 74px; border-bottom: 1px dashed var(--line); display: flex; align-items: center; padding-left: 14px; }
.p-operations .op-blank__lanes span { font: 500 10.5px/1 var(--font-mono); letter-spacing: .07em; text-transform: uppercase; color: var(--line-strong); }
.p-operations .op-blank__node { position: absolute; left: 34%; top: 88px; display: grid; gap: 3px; padding: 10px 14px; border: 1.5px solid var(--op-pen); border-radius: 8px; background: var(--surface); font-size: 14px; font-weight: 600; color: var(--ink); box-shadow: 0 0 0 5px color-mix(in srgb, var(--frost) 70%, transparent); }
.p-operations .op-blank__node small { font: 500 11px/1 var(--font-mono); color: var(--op-pen); font-weight: 500; }
.p-operations .op-tblock--blank { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.p-operations .op-set { margin-top: var(--space-24); border-top: 1px solid var(--ink); }
.p-operations .op-set__head { display: flex; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; padding: 12px 0; font-size: 13px; color: var(--muted); }
.p-operations .op-set__head b { font: 500 11.5px/1.6 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.p-operations .op-set ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.p-operations .op-set li { border-bottom: 1px solid var(--line); }
.p-operations .op-set a { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 15px; color: var(--ink); text-decoration: none; }
.p-operations .op-set a span { font: 500 11px/1 var(--font-mono); color: var(--op-pen); }
.p-operations .op-set a i { margin-left: auto; font-style: normal; color: var(--muted); transition: transform .2s ease, color .2s ease; padding-right: 16px; }
.p-operations .op-set a:hover i { transform: translateX(3px); color: var(--ink); }
.p-operations .op-set li.is-here > span { display: flex; align-items: center; gap: 14px; padding: 14px 4px; font-size: 15px; color: var(--muted); }
.p-operations .op-set li.is-here > span > span { font: 500 11px/1 var(--font-mono); color: var(--carmine); }
.p-operations .op-set li.is-here i { margin-left: auto; padding-right: 16px; font: 500 10.5px/1 var(--font-mono); font-style: normal; letter-spacing: .06em; text-transform: uppercase; color: var(--op-pen); }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .p-operations .op-insp__panel { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); }
  .p-operations .op-insp__panel > :nth-child(3) { border-left: 0; }
  .p-operations .op-insp__panel > :nth-child(n+3) { border-top: 1px solid var(--line); }
  .p-operations .op-rd { grid-template-columns: 24px minmax(0, 1.6fr) 56px minmax(60px, 1fr) 64px; }
  .p-operations .op-rd__dept, .p-operations .op-rd__tool { display: none; }
  .p-operations .op-noteflow { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 960px) {
  .p-operations .op-hero { padding-top: var(--space-6); }
  .p-operations .op-hero__head, .p-operations .op-head__grid { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); }
  .p-operations .op-hero__text { padding-bottom: 0; }
  .p-operations .op-fig { max-width: 560px; }
  .p-operations .op-fig__photo { aspect-ratio: 4 / 3; }
  .p-operations .op-fig__photo > img { object-position: 40% 40%; }
  .p-operations .op-sheet span:nth-child(2) { display: none; }
  .p-operations .op-map__hint { display: block; }
  .p-operations .op-tblock { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .p-operations .op-tblock div:nth-child(4) { border-left: 0; }
  .p-operations .op-tblock div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .p-operations .op-tblock--blank div:nth-child(n+4) { border-top: 0; }
  .p-operations .op-under, .p-operations .op-sched, .p-operations .op-close__grid, .p-operations .op-meas { grid-template-columns: minmax(0, 1fr); }
  .p-operations .op-meas__chart { border-right: 0; border-bottom: 1px solid var(--line); }
  .p-operations .op-notes-side { grid-template-columns: minmax(0, 1fr); }
  .p-operations .op-set ol { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 640px) {
  .p-operations { background-size: 20px 20px; }
  .p-operations .op-map__tools { padding: 10px 12px; }
  .p-operations .op-legend { display: none; }
  .p-operations .op-map__procs li:not(.is-on) { display: none; }
  .p-operations .op-map__in { grid-template-columns: 84px var(--cw); }
  .p-operations .op-lab { padding: 0 10px; }
  .p-operations .op-insp__panel { grid-template-columns: minmax(0, 1fr); }
  .p-operations .op-insp__panel > * + * { border-left: 0; border-top: 1px solid var(--line); }
  .p-operations .op-insp__panel > * { padding: 14px 16px; }
  .p-operations .op-tblock div { padding: 8px 10px 10px; }
  .p-operations .op-tblock dd { font-size: 12.5px; }
  .p-operations .op-thread__body { padding: 14px; }
  .p-operations .op-reply { margin-left: 0; }
  .p-operations .op-reply__list li { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .p-operations .op-frag { padding: 14px; }
  .p-operations .op-frag__lane { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 14px 10px; justify-items: stretch; }
  .p-operations .op-frag__wire { width: 1.4px; height: 16px; justify-self: center; }
  .p-operations .op-frag__wire::after { right: -3px; top: auto; bottom: 0; transform: rotate(135deg); }
  .p-operations .op-dim { margin: -6px 8% 0; }
  .p-operations .op-frag__sum div { padding: 8px 10px; }
  .p-operations .op-frag__sum dd { font-size: 14px; }
  .p-operations .op-heat { padding: 4px 12px 14px; }
  .p-operations .op-road { padding: 14px; }
  .p-operations .op-road__figs { gap: 16px 22px; }
  .p-operations .op-road__figs dd { font-size: 19px; }
  .p-operations .op-strip__bar { height: 56px; }
  .p-operations .op-seg span { display: none; }
  .p-operations .op-seg { padding: 4px 3px; justify-content: flex-end; }
  .p-operations .op-seg em { font-size: 10.5px; }
  .p-operations .op-rd { grid-template-columns: 20px minmax(0, 1fr) auto; gap: 4px 10px; }
  .p-operations .op-rd .op-layer { grid-column: 2; grid-row: 2; justify-self: start; }
  .p-operations .op-rd__bar { display: none; }
  .p-operations .op-rd em { grid-column: 3; grid-row: 1 / span 2; }
  .p-operations .op-meas__facts dd { font-size: 22px; }
  .p-operations .op-meas__facts > div { padding: 12px 14px; }
  .p-operations .op-org__list { grid-template-columns: repeat(2, minmax(0, 1fr)); padding-top: 0; margin-top: 18px; }
  .p-operations .op-org__list::before, .p-operations .op-org__list li::before { display: none; }
  .p-operations .op-sys li { grid-template-columns: minmax(0, 1fr) 60px 40px; }
  .p-operations .op-sys__bar { grid-column: 1 / -1; grid-row: 2; }
  .p-operations .op-set ol { grid-template-columns: minmax(0, 1fr); }
  .p-operations .op-ch { min-width: 540px; }
  .p-operations .op-revtab { min-width: 0; }
  .p-operations .op-revtab thead { display: none; }
  .p-operations .op-revtab tr { display: grid; grid-template-columns: 40px minmax(0, 1fr); column-gap: 8px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
  .p-operations .op-revtab tr:last-child { border-bottom: 0; }
  .p-operations .op-revtab td { display: block; padding: 0; border: 0 !important; background: none !important; }
  .p-operations .op-revtab td.op-rev__n { grid-row: 1 / span 4; width: auto; }
  .p-operations .op-revtab td:nth-child(2), .p-operations .op-revtab td:nth-child(3) { display: inline; }
  .p-operations .op-revtab td:nth-child(3) { grid-column: 2; font-size: 12.5px; }
  .p-operations .op-revtab td:nth-child(2) { grid-column: 2; }
  .p-operations .op-revtab td.op-rev__what { grid-column: 2; margin-top: 2px; }
  .p-operations .op-revtab td:last-child { grid-column: 2; margin-top: 2px; }
  .p-operations .op-rev--new { background: color-mix(in srgb, var(--frost) 55%, transparent); }
  .p-operations .op-blank__node { left: 22%; }
}

@media (prefers-reduced-motion: reduce) {
  .p-operations .op-node, .p-operations .op-seg, .p-operations .op-cell, .p-operations .op-fnode, .p-operations .op-set a i { transition: none; }
}
