/* The system is the visual: a route, its record, and the boundaries on action. */
.ops-project .architecture-frame {
  padding: 0 24px;
  border: 1px solid #273039;
  border-top-color: #6d7983;
  border-radius: 8px;
  background: #020304;
  box-shadow: 0 16px 48px #0009, inset 0 1px 0 #d0e8ff0a;
}
.ops-project .architecture-toolbar { padding: 15px 0; gap: 12px; }
.ops-project .instrument-tabs { gap: 20px; }
.ops-project .instrument-tabs button {
  position: relative; min-height: 44px; flex: none; padding: 8px 0;
  border: 0; border-radius: 0; background: transparent; color: var(--muted); font-size: 12px;
}
.ops-project .instrument-tabs button[aria-pressed='true'] { color: var(--text); background: transparent; }
.ops-project .instrument-tabs button[aria-pressed='true']::after { content: ''; position: absolute; height: 2px; inset: auto 0 -16px; background: var(--accent); }
.ops-project .architecture-label { display: block; color: #6e8294; letter-spacing: .08em; }
.ops-project .machine { padding: 22px 0 20px; }
.ops-project .machine-view-title { align-items: start; gap: 18px; margin-bottom: 24px; font-size: 12px; }
.ops-project #machine-view-count { flex: none; padding-top: 2px; font-size: 8px; }
.instrument-eyebrow { font: 9px/1.5 var(--mono); color: #8da4b6; letter-spacing: .055em; }
.flow-ownership { display: grid; grid-template-columns: 2fr 1fr; margin: 0 0 11px; gap: 10px; font: 8px/1.6 var(--mono); color: #91aab5; }
.flow-ownership > span { display: flex; align-items: center; gap: 7px; }
.flow-ownership i { width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.flow-ownership > span:last-child { color: #dcc477; }
.flow-ownership > span:last-child i { background: var(--amber); }
.flow-route { position: relative; }
.flow-wiring-mobile { display: none; }
.flow-wiring { position: absolute; inset: 0 0 auto; width: 100%; height: 76px; fill: none; stroke: #497184; stroke-width: 1.3; pointer-events: none; }
.flow-wiring .wire-handoff { stroke: #718087; stroke-dasharray: 3 4; }
.flow-wiring .wire-human { stroke: #9b8041; }
.ops-project .states { position: relative; display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0; padding: 0; }
.ops-project .states li::after { display: none !important; }
.ops-project .states button,
.ops-project .states .on button,
.ops-project .states button:hover {
  min-height: 130px; padding: 14px 3px 8px; text-align: center;
  border: 0; border-radius: 0; background: transparent; box-shadow: none; transform: none;
}
.ops-project .states .flow-icon { position: relative; width: 48px; height: 48px; margin: 0 auto 12px; border: 1px solid #3a4d5c; border-top-color: #778e9d; border-radius: 50%; background: #080d11; color: #a8bfca; box-shadow: 0 3px 0 #000, 0 4px 0 #223443, inset 0 1px 0 #dae7ff10; }
.ops-project .states .flow-icon svg { width: 22px; height: 22px; }
.ops-project .states .flow-number { position: static; display: block; margin: 0 0 5px; color: #647989; font-size: 8px; }
.ops-project .states button strong { font-size: 11px; color: #bdc6cd; font-weight: 600; }
.ops-project .states button small { margin-top: 4px; font-size: 8px; line-height: 1.5; color: #83919c; }
.ops-project .states .on .flow-icon { color: #caffef; border-color: var(--accent); border-top-color: #d1fff0; background: #051c1a; box-shadow: 0 3px 0 #000, 0 4px 0 #28756e, 0 0 23px #00efc620; }
.ops-project .states .on strong { color: var(--accent); }
.ops-project .states li:nth-child(n+5) .flow-icon { border-color: #665936; border-top-color: #b29c62; color: #d8c080; }
.ops-project .states li:nth-child(n+5).on .flow-icon { border-color: #edd38c; background: #201a09; box-shadow: 0 3px 0 #000, 0 4px 0 #7d682d, 0 0 23px #eab30820; }
.ops-project .states li:nth-child(n+5).on strong { color: #f0d38a; }
.ops-project .flow-inspector { grid-template-columns: .95fr 1.05fr; align-items: stretch; gap: 24px; margin-top: 23px; padding: 23px 0; border-block: 1px solid #29343c; }
.ops-project .flow-current { display: grid; grid-template-columns: 5px 1fr auto; gap: 8px; margin: 10px 0 12px; }
.ops-project #m-state { font: 500 25px/1.2 var(--sans); letter-spacing: -.045em; text-transform: capitalize; }
.ops-project .flow-dot { width: 4px; height: 4px; }
.ops-project #flow-play { grid-column: 3; min-height: 36px; padding: 6px 0 6px 6px; font-size: 10px; text-decoration: none; }
.ops-project #flow-detail { min-height: 3.6em; font-size: 11px; line-height: 1.8; }
.flow-record { min-width: 0; padding-left: 22px; border-left: 1px solid #29343c; }
.record-heading { display: flex; align-items: center; gap: 7px; margin: 0 0 11px; color: #a9c4d5; font: 8px/1.5 var(--mono); letter-spacing: .02em; }
.record-heading svg { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.2; }
.record-entry { display: none; margin: 0; }
.record-entry > div { min-height: 43px; padding: 6px 0; border-bottom: 1px solid #172028; }
.record-entry > div:last-child { border: 0; }
.record-entry dt { color: #6f8799; font: 8px/1.5 var(--mono); }
.record-entry dd { margin: 2px 0 0; color: #d6e0e6; font: 11px/1.5 var(--sans); }
#machine:has([data-flow-state='0'][aria-pressed='true']) [data-record-stage='0'],
#machine:has([data-flow-state='1'][aria-pressed='true']) [data-record-stage='1'],
#machine:has([data-flow-state='2'][aria-pressed='true']) [data-record-stage='2'],
#machine:has([data-flow-state='3'][aria-pressed='true']) [data-record-stage='3'],
#machine:has([data-flow-state='4'][aria-pressed='true']) [data-record-stage='4'],
#machine:has([data-flow-state='5'][aria-pressed='true']) [data-record-stage='5'] { display: block; }
.ops-project .rail { margin-top: 20px; gap: 11px; }
.ops-project .rail-mark { width: 25px; height: 25px; color: #8aa5b5; }
.ops-project .rail b { font-size: 11px; }
.ops-project .rail div > span { font-size: 10px; }
.ops-project .architecture-foot { padding: 15px 0; font-size: 9px; line-height: 1.7; color: #8c969c; }
.ops-project #machine:not([data-step='0']) .flow-ownership,
.ops-project #machine:not([data-step='0']) .flow-route { display: none; }
.guard-contract { display: none; }
#machine[data-step='1'] .guard-contract { display: grid; gap: 7px; margin: 0 0 23px; }
.guard-contract strong { font-size: clamp(19px, 2vw, 25px); font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.guard-contract > span:last-child { color: #8f9ca5; font-size: 10px; }
.ops-project .guards { grid-template-columns: minmax(0, 1fr); gap: 0; }
.ops-project .guards li { position: relative; grid-template-columns: 24px 1fr 92px; gap: 13px; min-height: 0; padding: 14px 0; border: 0; border-top: 1px solid #27313a; border-radius: 0; background: transparent; }
.ops-project .guards li:last-child { border-bottom: 1px solid #27313a; }
.ops-project .guards li i { align-self: start; color: #657786; font-size: 9px; padding-top: 2px; }
.ops-project .guards li.on { background: transparent; border-color: #27313a; }
.ops-project .guards li.on i { color: var(--accent); }
.guard-case b { display: block; color: #dbe0e4; font-size: 11px; font-weight: 550; line-height: 1.5; }
.guard-case > span { display: block; margin-top: 4px; color: #8394a0; font-size: 10px; line-height: 1.65; }
.guard-outcome { color: #bdab78; font: 8px/1.6 var(--mono); }
.ops-project .guards li.on .guard-case b { color: var(--text); }
.ops-project .layers { position: relative; gap: 0; }
.ops-project .layers::before { content: ''; position: absolute; left: 26px; top: 40px; bottom: 65px; width: 1px; background: linear-gradient(#7db9d0, #455d6a 40%, #718a9b 75%, #9b8245); }
.ops-project .layer,
.ops-project .layer:nth-child(2),
.ops-project .layer:nth-child(3) { position: relative; display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 19px; margin: 0; padding: 0 0 24px; border: 0; background: transparent; box-shadow: none; border-radius: 0; }
.ops-project .layer:last-child { padding-bottom: 0; }
.ops-project .layer-node { position: relative; display: grid; place-items: center; width: 54px; height: 54px; background: #080d11; border: 1px solid #374a56; border-top-color: #8ba3b3; border-radius: 50%; box-shadow: 0 4px 0 #000, 0 5px 0 #223c48; }
.layer-node svg { width: 32px; height: 32px; stroke: #a2cddd; stroke-width: 1.2; stroke-linejoin: round; fill: #080d11; }
.ops-project .layer-policy .layer-node { border-color: #77663e; border-top-color: #b59b5c; }
.layer-policy .layer-node svg { stroke: #d5ba70; }
.ops-project .layer-content > b { display: block; padding: 0; color: #7fa0b1; font: 8px/1.5 var(--mono); }
.ops-project .layer-content h5 { margin: 8px 0 5px; font-size: 20px; font-weight: 500; line-height: 1.2; letter-spacing: -.035em; }
.ops-project .layer-content > p { color: #92a0aa; font-size: 10px; line-height: 1.7; }
.record-fields, .policy-fields { display: flex; gap: 0; margin-top: 12px; }
.ops-project .record-fields > span, .ops-project .policy-fields > span { padding: 0 10px; color: #abc1ce; font: 8px/1.5 var(--mono); border-left: 1px solid #354853; }
.ops-project .record-fields > span:first-child, .ops-project .policy-fields > span:first-child { padding-left: 0; border: 0; }
.ops-project .policy-fields > span { color: #bead7e; }
.permission-route { position: relative; display: grid; grid-template-columns: max-content max-content; gap: 0 12px; width: max-content; margin: 12px 0; }
.permission-route::before { content: ''; position: absolute; left: 24px; right: 28px; top: 26px; height: 8px; border-inline: 1px solid #789aaa; border-bottom: 1px solid #789aaa; }
.ops-project .permission-route > span { position: relative; padding: 6px 9px; border: 1px solid #354650; border-radius: 3px; font: 8px/1.5 var(--mono); color: #c4d2da; }
.permission-route > strong { grid-column: 1 / 3; justify-self: center; padding: 20px 0 0; position: relative; color: #9eb9c8; font: 8px/1.5 var(--mono); }
.permission-route > strong::before { content: ''; position: absolute; left: 50%; top: 8px; width: 1px; height: 8px; background: #789aaa; }
@media (min-width: 1101px) {
  .ops-project .ops-story { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); gap: 40px; }
}
@media (max-width: 760px) {
  .ops-project .architecture-frame { padding: 0 17px; border-radius: 6px; }
  .ops-project .architecture-toolbar { padding: 12px 0; }
  .ops-project .instrument-tabs { width: auto; gap: 27px; }
  .ops-project .instrument-tabs button { padding: 8px 0; font-size: 12px; }
  .ops-project .instrument-tabs button[aria-pressed='true']::after { bottom: -13px; }
  .ops-project .architecture-label { font-size: 7px; }
  .ops-project .machine { padding: 21px 0; }
  .ops-project .machine-view-title { display: block; line-height: 1.65; }
  .ops-project #machine-view-count { margin-top: 6px; }
  .flow-ownership { display: flex; justify-content: space-between; gap: 8px; font-size: 7px; margin-bottom: 19px; }
  .flow-wiring { display: none; }
  .flow-wiring-mobile { position: absolute; inset: 0; display: block; width: 100%; height: 246px; fill: none; stroke: #497184; stroke-width: 1; pointer-events: none; }
  .flow-wiring-mobile .wire-handoff { stroke: #718087; stroke-dasharray: 3 4; }
  .flow-wiring-mobile .wire-human { stroke: #9b8041; }
  .ops-project .states { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
  .ops-project .states li:nth-child(3) { grid-column: 2; grid-row: 2; }
  .ops-project .states li:nth-child(4) { grid-column: 1; grid-row: 2; }
  .ops-project .states li:nth-child(5) { grid-column: 1; grid-row: 3; }
  .ops-project .states li:nth-child(6) { grid-column: 2; grid-row: 3; }
  .ops-project .states button, .ops-project .states .on button, .ops-project .states button:hover { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 0 8px; align-items: center; text-align: left; height: 82px; min-height: 82px; padding: 14px 0; }
  .ops-project .states .flow-icon { grid-column: 1; grid-row: 1 / 3; width: 40px; height: 40px; margin: 0; }
  .ops-project .states .flow-number { position: absolute; top: 5px; left: 12px; right: auto; font-size: 7px; background: #020304; padding: 0 3px; z-index: 1; }
  .ops-project .states button strong { grid-column: 2; align-self: end; font-size: 11px; }
  .ops-project .states button small { grid-column: 2; align-self: start; font-size: 8px; margin-top: 3px; }
  .ops-project .flow-inspector { grid-template-columns: minmax(0, 1fr); margin-top: 18px; gap: 21px; padding: 22px 0; }
  .ops-project #m-state { font-size: 29px; }
  .ops-project #flow-play { min-height: 44px; font-size: 11px; }
  .ops-project #flow-detail { min-height: 3.6em; font-size: 12px; }
  .flow-record { padding-left: 0; border: 0; }
  .record-heading { font-size: 9px; }
  .record-entry > div { min-height: 38px; display: grid; grid-template-columns: 1fr 1.2fr; gap: 16px; padding: 8px 0; align-items: baseline; }
  .record-entry dt { font-size: 9px; }
  .record-entry dd { font-size: 11px; margin: 0; }
  .ops-project .rail div > span { font-size: 10px; line-height: 1.8; }
  .guard-contract strong { font-size: 24px; }
  .ops-project .guards li { grid-template-columns: 24px minmax(0, 1fr); gap: 8px; padding: 19px 0; }
  .guard-case b { font-size: 12px; }
  .guard-case > span { font-size: 11px; line-height: 1.8; }
  .guard-outcome { grid-column: 2; font-size: 9px; }
  .ops-project .layer, .ops-project .layer:nth-child(2), .ops-project .layer:nth-child(3) { grid-template-columns: 42px minmax(0, 1fr); gap: 14px; padding-bottom: 31px; }
  .ops-project .layer:last-child { padding-bottom: 0; }
  .ops-project .layer-node { width: 42px; height: 42px; }
  .layer-node svg { width: 27px; height: 27px; }
  .ops-project .layers::before { left: 20px; bottom: 80px; }
  .ops-project .layer-content > b { font-size: 7px; }
  .ops-project .layer-content h5 { font-size: 22px; line-height: 1.25; }
  .ops-project .layer-content > p { font-size: 11px; line-height: 1.8; }
  .record-fields, .policy-fields { flex-wrap: wrap; gap: 7px 0; }
  .ops-project .record-fields > span, .ops-project .policy-fields > span { font-size: 8px; padding-inline: 7px; }
}

@media (max-width: 389px) {
  .ops-project #flow-detail { min-height: 5.4em; }
}
