/* The visual layer is intentionally absent from the mobile cascade. */
@media (min-width: 901px) {
  @keyframes opc-cockpit-enter {
    from { opacity: 0; transform: translateY(7px) scale(.997); }
    to { opacity: 1; transform: translateY(0) scale(1); }
  }
  @keyframes opc-cockpit-sweep {
    from { clip-path: inset(0 100% 0 -40%); opacity: 0; }
    18% { opacity: .8; }
    to { clip-path: inset(0 -40% 0 100%); opacity: 0; }
  }
  .opc-cockpit-shell {
    --oc-pointer-x: 50%; --oc-pointer-y: 12%;
    display: block; position: relative; isolation: isolate;
  }
  @keyframes opc-cockpit-light-course {
    from { stroke-dashoffset: 44; opacity: .28; }
    45% { opacity: .9; }
    to { stroke-dashoffset: 0; }
  }
  .opc-cockpit {
    --oc-bg: #102333; --oc-ink: #edf3ef; --oc-muted: #a9c0cc;
    --oc-teal: #7dd8c6; --oc-blue: #87bffa; --oc-amber: #dfb978; --oc-red: #ed9c94;
    position: relative; isolation: isolate; margin: 0 0 24px; padding: 24px 26px 20px;
    color: var(--oc-ink); background: radial-gradient(420px 270px at var(--oc-pointer-x) var(--oc-pointer-y),#87bffa18 0%,#7dd8c608 32%,transparent 72%), linear-gradient(120deg,#132d3d 0%,#102333 45%,#101e30 100%);
    border: 1px solid #3b596a; border-radius: 18px 18px 6px 18px; overflow: hidden;
    box-shadow: 0 14px 40px #00000024, inset 0 1px #ffffff12;
    font-family: inherit; font-size: 14px; line-height: 1.6;
    color-scheme: dark; animation: opc-cockpit-enter .62s cubic-bezier(.2,.75,.25,1) both;
  }
  .opc-cockpit::before { content: ''; position: absolute; top: 0; left: 26px; width: 138px; height: 2px; background: linear-gradient(90deg,var(--oc-teal),var(--oc-blue),transparent); box-shadow: 0 0 16px #7dd8c650; }
  .opc-cockpit::after { content: ''; position: absolute; z-index: 5; inset: 0; pointer-events: none; background: linear-gradient(105deg,transparent 0%,transparent 42%,#c8fff41c 49%,#87bffa10 53%,transparent 61%,transparent 100%); clip-path: inset(0 100% 0 -40%); animation: opc-cockpit-sweep 1.15s cubic-bezier(.25,.75,.35,1) .08s both; }
  .opc-cockpit-shell > section.opc-cockpit {
    background: radial-gradient(650px 350px at var(--oc-pointer-x) var(--oc-pointer-y),#87bffa22 0%,#7dd8c609 42%,transparent 78%), radial-gradient(ellipse at 90% 100%,#237f8820,transparent 58%), linear-gradient(115deg,#18394a 0%,#102b3b 30%,#0c1c2b 74%,#122739 100%);
    border-color: #7faaba55;
    box-shadow: 0 24px 48px -18px #05192466, 0 3px 7px #07172214, inset 0 1px #d6fff52b, inset 0 -1px #020c1455;
  }
  .opc-cockpit-shell > section.opc-cockpit::before {
    left: 26px; right: 26px; width: auto; height: 1px;
    background: linear-gradient(90deg,transparent,#7dd8c6 10%,#bfe8ff88 35%,#87bffa14 65%,#87bffa80 90%,transparent);
    box-shadow: 0 0 18px #7dd8c64d;
  }
  .opc-cockpit *, .opc-cockpit *::before, .opc-cockpit *::after { box-sizing: border-box; }
  .opc-cockpit .opc-cockpit-heading { display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; margin-bottom: 14px; }
  .opc-cockpit .opc-cockpit-heading h3 { color: var(--oc-ink); font-size: 21px; line-height: 1.4; font-weight: 650; margin: 0 0 5px; letter-spacing: .03em; }
  .opc-cockpit .opc-cockpit-heading p { margin: 0; font-size: 13px; color: var(--oc-muted); }
  .opc-cockpit-layout { display: grid; grid-template-columns: minmax(0, 1fr) 254px; gap: 22px; align-items: stretch; }
  .opc-cockpit .opc-cockpit-scene { position: relative; isolation: isolate; min-width: 0; overflow: clip; border: 1px solid #87bffa22; border-radius: 12px; background: radial-gradient(ellipse at 45% 70%,#1e778c13,transparent 65%), linear-gradient(155deg,#ffffff05,#04111e18 48%,#07152236); box-shadow: inset 0 1px #ffffff0c, inset 0 -30px 44px #020d1924; }
  .opc-cockpit .opc-cockpit-scene::before { content: ''; position: absolute; z-index: -1; inset: 32% -18% -20%; pointer-events: none; background-image: linear-gradient(#87bffa14 1px,transparent 1px),linear-gradient(90deg,#7dd8c614 1px,transparent 1px); background-size: 48px 48px; transform: perspective(380px) rotateX(56deg); transform-origin: center 65%; mask-image: radial-gradient(ellipse,#0009 8%,transparent 67%); }
  .opc-cockpit .opc-cockpit-scene::after { content: ''; position: absolute; z-index: -1; left: 11%; right: 11%; bottom: 7%; height: 24%; pointer-events: none; border: 1px solid #87bffa17; border-radius: 50%; background: radial-gradient(ellipse,#7dd8c60b,transparent 68%); box-shadow: 0 11px 0 -1px #09212e90,0 12px 0 #7dd8c60b; }
  .opc-cockpit .opc-cockpit-scene > svg { position: relative; z-index: 1; display: block; width: 100%; height: auto; overflow: visible; filter: drop-shadow(0 14px 19px #020c1490); }
  .opc-cockpit svg text { font-family: inherit; }
  .opc-cockpit .opc-cockpit-detail { min-width: 0; padding: 15px 0 12px 22px; border-left: 1px solid #46627380; }
  .opc-cockpit .opc-cockpit-detail h4 { color: var(--oc-ink); font-size: 17px; line-height: 1.5; margin: 0 0 10px; overflow-wrap: anywhere; }
  .opc-cockpit .opc-cockpit-detail p { color: var(--oc-muted); margin: 8px 0; font-size: 13px; }
  .opc-cockpit .opc-cockpit-detail strong { color: var(--oc-ink); }
  .opc-cockpit .opc-cockpit-detail dl { margin: 14px 0; }
  .opc-cockpit .opc-cockpit-detail dt { color: var(--oc-muted); font-size: 12px; margin-top: 10px; }
  .opc-cockpit .opc-cockpit-detail dd { margin: 0; color: var(--oc-ink); overflow-wrap: anywhere; }
  .opc-cockpit .opc-cockpit-badge { display: inline-flex; align-items: center; gap: 7px; padding: 4px 10px; border: 1px solid #547687; border-radius: 20px; color: #cce4e9; font-size: 12px; white-space: nowrap; }
  .opc-cockpit .opc-cockpit-badge::before { content: ''; width: 5px; height: 5px; background: var(--oc-teal); border-radius: 50%; }
  .opc-cockpit .opc-cockpit-note { margin: 10px 0 0; color: var(--oc-muted); font-size: 12px; }
  .opc-cockpit .opc-cockpit-state { padding: 35px 20px; border: 1px dashed #547687; border-radius: 10px; color: var(--oc-muted); text-align: center; }
  .opc-cockpit button, .opc-cockpit select { font-family: inherit; font-size: 13px; }
  .opc-cockpit button { cursor: pointer; transition: border-color .18s ease, background-color .18s ease, box-shadow .18s ease, transform .18s ease; }
  .opc-cockpit button:focus-visible, .opc-cockpit select:focus-visible, .opc-cockpit [role='button']:focus-visible { outline: 2px solid #c9fff4; outline-offset: 4px; }
  .opc-cockpit button:disabled { opacity: .55; cursor: default; }
  .opc-cockpit .opc-cockpit-button { display: inline-flex; align-items: center; justify-content: center; padding: 8px 13px; color: #d6f7ee; background: #1c414c; border: 1px solid #6fbba8; border-radius: 7px; line-height: 1.5; }
  .opc-cockpit .opc-cockpit-button:hover { background: #285560; box-shadow: 0 0 0 1px #7dd8c680, 0 0 18px #7dd8c624; transform: translateY(-1px); }
  .opc-cockpit .opc-cockpit-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 9px 0 0; }
  .opc-cockpit .opc-cockpit-tabs button { border: 1px solid #496577; background: #142d3e; border-radius: 6px; padding: 6px 10px; color: #bfd2dc; }
  .opc-cockpit .opc-cockpit-tabs button[aria-pressed='true'] { color: #d5fff4; border-color: #7dd8c6; background: #234956; }
  .opc-cockpit .opc-cockpit-tabs button:hover { border-color: #87bffa; }
  .opc-cockpit-shell .opc-cockpit :is(.opc-workbench-track,.opc-team-track,.opc-skills-link.is-selected,.opc-flow-rail:not(.opc-flow-rail-shadow)) {
    filter: drop-shadow(0 0 4px #7dd8c642);
    animation: opc-cockpit-light-course 1.8s cubic-bezier(.2,.65,.3,1) .2s 1 backwards;
  }
  .opc-cockpit-shell .opc-cockpit :is(.opc-workbench-track,.opc-team-track) { stroke: #8dcacb; }
  .opc-cockpit-shell .opc-cockpit :is(.opc-finance-node.is-selected,.opc-event-station.is-selected,.opc-project-evidence.is-selected,.opc-flow-dock-selected,.opc-flow-node-selected) { filter: drop-shadow(0 0 8px #7dd8c623); }
  .opc-cockpit-shell .opc-cockpit :is(button,[role='button']):focus-visible { outline-color: #d5fff4; filter: drop-shadow(0 0 5px #87bffa40); }
  .opc-cockpit-shell .opc-cockpit .opc-cockpit-tabs button[aria-pressed='true'] { box-shadow: inset 0 1px #d5fff41a,0 3px 12px #00000024; background: linear-gradient(120deg,#315c64,#1b3a4a); }
  .opc-cockpit-shell .opc-cockpit button:active:not(:disabled) { transform: translateY(1px); }
  .opc-cockpit [data-tone='negative'] { color: var(--oc-red); }
  .opc-cockpit:focus-within { border-color: #628b9f; box-shadow: 0 14px 40px #00000024, 0 0 0 1px #7dd8c61c, inset 0 1px #ffffff12; }
  .opc-cockpit-shell[data-oc-motion="paused"] .opc-cockpit,
  .opc-cockpit-shell[data-oc-motion="paused"] .opc-cockpit *,
  .opc-cockpit-shell[data-oc-motion="paused"] .opc-cockpit::after,
  .opc-cockpit-shell[data-oc-motion="paused"] .opc-cockpit *::before,
  .opc-cockpit-shell[data-oc-motion="paused"] .opc-cockpit *::after { animation-play-state: paused !important; }
  .opc-cockpit-shell[data-oc-motion="still"] .opc-cockpit,
  .opc-cockpit-shell[data-oc-motion="still"] .opc-cockpit *,
  .opc-cockpit-shell[data-oc-motion="still"] .opc-cockpit::after,
  .opc-cockpit-shell[data-oc-motion="still"] .opc-cockpit *::before,
  .opc-cockpit-shell[data-oc-motion="still"] .opc-cockpit *::after { animation: none !important; transition: none !important; }
  [data-game-motion="off"] .opc-cockpit, [data-game-motion="off"] .opc-cockpit::after,
  .opc-cockpit[data-game-motion="off"], .opc-cockpit[data-game-motion="off"]::after { animation: none !important; }
  [data-game-motion="off"] .opc-cockpit *, [data-game-motion="off"] .opc-cockpit *::before, [data-game-motion="off"] .opc-cockpit *::after,
  .opc-cockpit[data-game-motion="off"] *, .opc-cockpit[data-game-motion="off"] *::before, .opc-cockpit[data-game-motion="off"] *::after { animation: none !important; transition: none !important; }
}
@media (min-width: 901px) and (max-width: 1180px) {
  .opc-cockpit { padding: 20px; }
  .opc-cockpit-layout { grid-template-columns: minmax(0,1fr); gap: 12px; }
  .opc-cockpit .opc-cockpit-detail { border-left: 0; border-top: 1px solid #46627380; padding: 14px 0 0; }
}
@media (min-width: 901px) and (prefers-reduced-motion: reduce) {
  .opc-cockpit, .opc-cockpit::after, .opc-cockpit *, .opc-cockpit *::before, .opc-cockpit *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
