/* M.A.I.C. Operating Path Runtime Hardening v6.3.2 */
:root{--maic-operating-path-accent:#8b949e;--maic-operating-path-rgb:139,148,158}
body[data-maic-path-switch-pending="true"] .maic-operating-path-state-strip{position:relative;overflow:hidden}
body[data-maic-path-switch-pending="true"] .maic-operating-path-state-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(100deg,transparent 20%,rgba(255,255,255,.08) 40%,transparent 60%);animation:maic-path-v63-loading 1.05s linear infinite;pointer-events:none}
@keyframes maic-path-v63-loading{from{transform:translateX(-100%)}to{transform:translateX(100%)}}
.maic-path-loading-label{color:var(--maic-operating-path-accent)!important}

/* Authority is fail-closed. Native Phase 07 markers are Governance-backed, so
   Authority mode exposes only the backend canonical_markers v3 layer. */
body[data-maic-operating-path="authority"] #tab-audit-trail [data-maic-governance-memory-canvas] .memory-marker:not(.maic-authority-v63-marker){display:none!important}
body[data-maic-operating-path="authority"] #tab-audit-trail [data-maic-governance-memory-canvas][data-maic-phase7-gesture="true"] .maic-authority-v63-layer{display:none!important}
.maic-authority-v6-layer,.maic-authority-v5-layer,.maic-model-warmup-v5-layer,.maic-authority-carry-marker,.maic-p07-authority-native-created,.maic-p07cx-canvas-overlay{display:none!important}

.maic-authority-v63-overlay{position:absolute;z-index:3;display:block;pointer-events:none;overflow:visible}
.maic-authority-v63-layer{pointer-events:none}
.maic-authority-v63-marker{pointer-events:all;cursor:pointer}
.maic-authority-v63-empty{font-family:"JetBrains Mono",monospace;font-size:8px;font-weight:800;letter-spacing:.35px;fill:#cbd5e1;paint-order:stroke;stroke:rgba(0,0,0,.72);stroke-width:2px;pointer-events:none}
.maic-authority-v63-marker text{font-family:"JetBrains Mono",monospace;font-size:7px;font-weight:800;text-anchor:middle;dominant-baseline:central;fill:#f8fafc;pointer-events:none}
.maic-authority-v63-marker .marker-stem{stroke-width:1;stroke-dasharray:2 2;vector-effect:non-scaling-stroke;opacity:.86}
.maic-authority-v63-marker .maic-authority-v63-shape{stroke-width:1.35;vector-effect:non-scaling-stroke}
.maic-authority-v63-marker .maic-authority-v63-pill{stroke-width:1.1}
.maic-authority-v63-marker.alt-open text,.maic-authority-v63-marker.take-cap text{font-size:5.2px;letter-spacing:.15px}

/* Marker identity is carried by shape/text. Color follows the backend-published
   owning semantic state so lifecycle boundaries cannot imply a different state.
   This keeps Authority marker vibes identical to Observation/Governance. */
.maic-authority-v63-marker.alt-open .maic-authority-v63-shape{fill:#6d28d9;stroke:#c4b5fd}.maic-authority-v63-marker.alt-open .marker-stem{stroke:#a970ff}
.maic-authority-v63-marker.take-cap .maic-authority-v63-shape{fill:#9a4d00;stroke:#fed7aa}.maic-authority-v63-marker.take-cap .marker-stem{stroke:#f59e0b}
.maic-authority-v63-marker.rebuy .maic-authority-v63-shape{fill:rgba(93,169,255,.30);stroke:#5da9ff}.maic-authority-v63-marker.rebuy .marker-stem{stroke:#5da9ff}
.maic-authority-v63-marker.expiry .maic-authority-v63-shape{fill:#111827;stroke:#9ca3af}.maic-authority-v63-marker.expiry .marker-stem{stroke:#6b7280}
.maic-authority-v63-marker.offense-entry .maic-authority-v63-shape{fill:rgba(93,169,255,.30);stroke:#5da9ff}.maic-authority-v63-marker.offense-entry .marker-stem{stroke:#5da9ff}
.maic-authority-v63-marker.core-entry .maic-authority-v63-shape{fill:rgba(102,240,170,.28);stroke:#66f0aa}.maic-authority-v63-marker.core-entry .marker-stem{stroke:#66f0aa}
.maic-authority-v63-marker.defense-entry .maic-authority-v63-shape{fill:rgba(255,104,104,.30);stroke:#ff6868}.maic-authority-v63-marker.defense-entry .marker-stem{stroke:#ff6868}
.maic-authority-v63-marker.standby-entry .maic-authority-v63-shape{fill:rgba(255,209,102,.28);stroke:#ffd166}.maic-authority-v63-marker.standby-entry .marker-stem{stroke:#ffd166}
.maic-authority-v63-marker.governance-suppression .maic-authority-v63-shape{fill:#334155;stroke:#cbd5e1}.maic-authority-v63-marker.governance-suppression .marker-stem{stroke:#94a3b8}
.maic-authority-v63-marker.pas-selection .maic-authority-v63-shape{fill:rgba(169,112,255,.34);stroke:#c4b5fd}.maic-authority-v63-marker.pas-selection .marker-stem{stroke:#a970ff}.maic-authority-v63-marker.pas-selection text{font-size:5.2px}
.maic-authority-v63-marker.pas-rejection-carry .maic-authority-v63-shape{fill:rgba(245,158,11,.28);stroke:#fbbf24}.maic-authority-v63-marker.pas-rejection-carry .marker-stem{stroke:#f59e0b}.maic-authority-v63-marker.pas-rejection-carry text{font-size:7px;font-weight:900}
.maic-authority-v63-marker.pas-deactivation .maic-authority-v63-shape{fill:rgba(139,148,158,.30);stroke:#cbd5e1}.maic-authority-v63-marker.pas-deactivation .marker-stem{stroke:#94a3b8}
.maic-authority-v63-marker.semantic-pas .maic-authority-v63-shape{stroke:#c4b5fd}.maic-authority-v63-marker.semantic-pas .marker-stem{stroke:#a970ff}
.maic-authority-v63-marker.allocation-change-other .maic-authority-v63-shape{fill:#111827;stroke:#9ca3af}.maic-authority-v63-marker.allocation-change-other .marker-stem{stroke:#6b7280}

/* Authority lifecycle boundaries keep canonical event identity while using the
   explicit public lifecycle palette. Base state/allocation ownership is unchanged:
   ALT OPEN = blue, TAKE CAP = red, REBUY = green, END / expiry = red. */
.maic-authority-v63-marker.semantic-alt-open .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-offense .maic-authority-v63-shape{fill:rgba(93,169,255,.30);stroke:#5da9ff}
.maic-authority-v63-marker.semantic-alt-open .marker-stem,
.maic-authority-v63-marker.semantic-offense .marker-stem{stroke:#5da9ff}
.maic-authority-v63-marker.semantic-rebuy .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-core .maic-authority-v63-shape{fill:rgba(102,240,170,.28);stroke:#66f0aa}
.maic-authority-v63-marker.semantic-rebuy .marker-stem,
.maic-authority-v63-marker.semantic-core .marker-stem{stroke:#66f0aa}
.maic-authority-v63-marker.semantic-standby .maic-authority-v63-shape{fill:rgba(255,209,102,.28);stroke:#ffd166}.maic-authority-v63-marker.semantic-standby .marker-stem{stroke:#ffd166}
.maic-authority-v63-marker.semantic-take-cap .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-end .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-defense .maic-authority-v63-shape{fill:rgba(255,104,104,.30);stroke:#ff6868}
.maic-authority-v63-marker.semantic-take-cap .marker-stem,
.maic-authority-v63-marker.semantic-end .marker-stem,
.maic-authority-v63-marker.semantic-defense .marker-stem{stroke:#ff6868}

/* MODEL WARMUP has no blackout. BTC price remains visible while decision and
   allocation publication is withheld before 2015-01-01. */
.maic-model-warmup-v5-layer{display:none!important}

/* Exact legacy/default Governance terminal palette. Canonical Terminal v1 sets
   body[data-maic-signal] as the primary global theme driver and keeps these
   v6.3 tone selectors synchronized for console/hub compatibility. */
body[data-maic-operating-path-tone="red"] .maic-command-console,
body[data-maic-operating-path-tone="red"] #maic-v79-command-governance-hub{--maic-terminal-accent:#ff6868;border-color:rgba(255,104,104,.5)!important}
body[data-maic-operating-path-tone="yellow"] .maic-command-console,
body[data-maic-operating-path-tone="yellow"] #maic-v79-command-governance-hub{--maic-terminal-accent:#ffd166;border-color:rgba(255,209,102,.5)!important}
body[data-maic-operating-path-tone="green"] .maic-command-console,
body[data-maic-operating-path-tone="green"] #maic-v79-command-governance-hub{--maic-terminal-accent:#66f0aa;border-color:rgba(102,240,170,.5)!important}
body[data-maic-operating-path-tone="blue"] .maic-command-console,
body[data-maic-operating-path-tone="blue"] #maic-v79-command-governance-hub{--maic-terminal-accent:#5da9ff;border-color:rgba(93,169,255,.5)!important}
/* Retained only for old event-specific consumers; v6.3.2 and Canonical Terminal
   never emit purple/orange as the active terminal semantic state. */
body[data-maic-operating-path-tone="purple"] .maic-command-console,
body[data-maic-operating-path-tone="purple"] #maic-v79-command-governance-hub{--maic-terminal-accent:#a970ff;border-color:rgba(169,112,255,.5)!important}
body[data-maic-operating-path-tone="orange"] .maic-command-console,
body[data-maic-operating-path-tone="orange"] #maic-v79-command-governance-hub{--maic-terminal-accent:#f59e0b;border-color:rgba(245,158,11,.5)!important}
.maic-operating-path-state-strip strong{color:var(--maic-operating-path-accent)!important}

.maic-operating-signal-dialog-v6 .maic-signal-change-explanation{margin:10px 0 0;color:var(--text-muted);line-height:1.45}
.maic-operating-signal-dialog-v6 .maic-signal-change-cross-mode{margin:8px 0 0;color:var(--maic-operating-path-accent);line-height:1.45}

/* Historical Authority markers reuse the terminal's established signal palette. */
.maic-authority-v63-marker.semantic-alt-open,
.maic-authority-v63-marker.semantic-offense{--maic-history-accent:#5da9ff;--maic-history-rgb:93,169,255}
.maic-authority-v63-marker.semantic-rebuy,
.maic-authority-v63-marker.semantic-core{--maic-history-accent:#66f0aa;--maic-history-rgb:102,240,170}
.maic-authority-v63-marker.semantic-standby{--maic-history-accent:#ffd166;--maic-history-rgb:255,209,102}
.maic-authority-v63-marker.semantic-take-cap,
.maic-authority-v63-marker.semantic-end,
.maic-authority-v63-marker.semantic-defense{--maic-history-accent:#ff6868;--maic-history-rgb:255,104,104}
.maic-authority-v63-marker.semantic-alt-open .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-take-cap .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-rebuy .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-end .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-offense .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-core .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-standby .maic-authority-v63-shape,
.maic-authority-v63-marker.semantic-defense .maic-authority-v63-shape{fill:rgba(var(--maic-history-rgb),.30);stroke:var(--maic-history-accent)}
.maic-authority-v63-marker.semantic-alt-open .marker-stem,
.maic-authority-v63-marker.semantic-take-cap .marker-stem,
.maic-authority-v63-marker.semantic-rebuy .marker-stem,
.maic-authority-v63-marker.semantic-end .marker-stem,
.maic-authority-v63-marker.semantic-offense .marker-stem,
.maic-authority-v63-marker.semantic-core .marker-stem,
.maic-authority-v63-marker.semantic-standby .marker-stem,
.maic-authority-v63-marker.semantic-defense .marker-stem{stroke:var(--maic-history-accent)}
.maic-authority-v63-marker.maic-ledger-linked-marker .maic-authority-v63-shape{stroke-width:2.5;filter:drop-shadow(0 0 5px var(--maic-history-accent,var(--maic-signal-accent,#93a4b5)))}
.maic-authority-v63-marker.maic-ledger-linked-marker .marker-stem{stroke-width:1.7;opacity:1}

.maic-authority-v63-marker.semantic-other{--maic-history-accent:#93a4b5;--maic-history-rgb:147,164,181}
.maic-authority-v63-marker.semantic-other .maic-authority-v63-shape{fill:rgba(var(--maic-history-rgb),.24);stroke:var(--maic-history-accent)}
.maic-authority-v63-marker.semantic-other .marker-stem{stroke:var(--maic-history-accent)}

/* Phase 07 marker layer selector: Authority lifecycle and asset-update markers never co-render. */
.maic-authority-marker-layer-control{display:flex;align-items:center;justify-content:flex-end;gap:8px;margin:8px 0 6px;padding:0 2px}
.maic-authority-marker-layer-control[hidden]{display:none!important}
.maic-authority-marker-layer-toggle{appearance:none;border:1px solid var(--border-color);background:rgba(7,12,19,.82);color:var(--text-muted);font:800 .52rem/1.2 "JetBrains Mono",monospace;letter-spacing:.07em;padding:7px 10px;min-height:30px;cursor:pointer;transition:border-color .14s ease,color .14s ease,background .14s ease}
.maic-authority-marker-layer-toggle:hover,.maic-authority-marker-layer-toggle:focus-visible{border-color:var(--maic-signal-accent,#93a4b5);color:var(--text-main);outline:none}
.maic-authority-marker-layer-toggle[data-marker-mode="authority"]{color:#dce8f8}
.maic-authority-marker-layer-toggle[data-marker-mode="assets"]{color:#ffd58a;border-color:rgba(245,158,11,.46);background:rgba(245,158,11,.07)}
@media(max-width:620px){.maic-authority-marker-layer-control{justify-content:stretch}.maic-authority-marker-layer-toggle{width:100%;text-align:center}}
