:root {
  color-scheme: dark;
  --black: #050607;
  --black-2: #0b0d0e;
  --surface: #111416;
  --surface-2: #171b1d;
  --line: #292f32;
  --line-strong: #515a5e;
  --white: #f5f6f2;
  --muted: #8f999d;
  --coral: #ff5b3d;
  --coral-dark: #c93620;
  --teal: #55d6c7;
  --acid: #d7ff64;
  --warning: #ffc857;
  font-family: "Avenir Next", Avenir, "Helvetica Neue", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; background: var(--black); }
body { margin: 0; overflow-x: hidden; color: var(--white); background-color: var(--black); background-image: linear-gradient(rgba(255, 255, 255, 0.027) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.027) 1px, transparent 1px); background-size: 32px 32px; }
a { color: inherit; }
button, input, select { min-height: 42px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--black-2); color: var(--white); font: inherit; }
input, select { padding: 8px 10px; }
button, .button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 4px; background: var(--surface); color: var(--white); font-weight: 750; text-decoration: none; cursor: pointer; transition: border-color 150ms ease, background 150ms ease, color 150ms ease, transform 150ms ease; }
button:hover, .button:hover { border-color: var(--white); transform: translateY(-1px); }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid rgba(85, 214, 199, 0.32); outline-offset: 2px; }
.button.primary { border-color: var(--coral); background: var(--coral); color: #070707; }
.button.primary:hover { border-color: #ff8069; background: #ff8069; }
.button.dark { background: transparent; }
.button.disabled { color: #5f686c; border-color: #303638; pointer-events: none; }

.skip-link { position: fixed; top: 8px; left: 8px; z-index: 30; padding: 8px 12px; background: var(--white); color: var(--black); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.topbar { position: sticky; top: 0; z-index: 20; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px; min-height: 70px; padding: 10px max(18px, calc((100vw - 1240px) / 2)); border-bottom: 1px solid var(--line); background: rgba(5, 6, 7, 0.94); backdrop-filter: blur(12px); }
.brand { display: flex; align-items: center; gap: 11px; text-decoration: none; }
.brand-mark { display: grid; width: 36px; height: 40px; place-items: center; border: 1px solid var(--line-strong); background: var(--surface); }
.brand-mark img { width: 18px; height: 23px; filter: invert(48%) sepia(97%) saturate(2975%) hue-rotate(338deg) brightness(106%) contrast(102%); }
.brand-copy { display: grid; gap: 1px; }
.brand-copy strong { font-size: 15px; }
.brand-copy small { color: var(--muted); font-size: 10px; text-transform: uppercase; }
.primary-nav { display: flex; justify-content: center; gap: 4px; }
.primary-nav a, .github-link { padding: 8px 10px; color: #b4bdc0; text-decoration: none; }
.primary-nav a:hover, .primary-nav a[aria-current="page"], .github-link:hover { color: var(--white); }
.github-link { justify-self: end; border: 1px solid var(--line-strong); border-radius: 4px; }

main { width: min(1240px, calc(100% - 36px)); margin: 0 auto; }
.eyebrow { margin: 0 0 10px; color: var(--teal); font-size: 11px; font-weight: 800; text-transform: uppercase; }
.status-dot { display: inline-block; width: 7px; height: 7px; margin-right: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 4px rgba(85, 214, 199, 0.1); animation: status-pulse 2.4s ease-in-out infinite; }
h1, h2 { margin: 0; letter-spacing: 0; }
h1 { font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif; font-size: 72px; font-weight: 800; line-height: 0.94; text-transform: uppercase; }
h2 { font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif; font-size: 40px; font-weight: 750; line-height: 1.02; }
.intro { display: grid; grid-template-columns: minmax(0, 1fr) 520px; gap: 70px; align-items: center; min-height: 630px; padding: 62px 0 48px; }
.intro-copy { max-width: 650px; }
.lede { max-width: 640px; margin: 24px 0 0; color: #b7c0c3; font-size: 18px; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; }
.hero-note { margin: 16px 0 0; color: #727c80; font: 10px/1.4 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }

.pipeline-stage { position: relative; min-height: 440px; overflow: hidden; border: 1px solid var(--line); background-color: #080a0b; background-image: radial-gradient(circle at center, rgba(85, 214, 199, 0.08), transparent 58%), linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px); background-size: auto, 24px 24px, 24px 24px; box-shadow: 0 26px 70px rgba(0, 0, 0, 0.45); }
.stage-head { position: absolute; top: 18px; right: 18px; left: 18px; display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1px solid var(--line); color: var(--muted); font: 10px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.stage-head strong { color: var(--acid); }
.stage-node { position: absolute; z-index: 2; display: grid; gap: 5px; width: 176px; padding: 15px; border: 1px solid var(--line-strong); border-left: 4px solid var(--coral); border-radius: 5px; background: rgba(17, 20, 22, 0.96); box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35); opacity: 0; transform: translateY(12px); }
.stage-node small { color: var(--muted); font: 9px/1.2 "SFMono-Regular", Consolas, monospace; }
.stage-node strong { font-size: 14px; }
.stage-node span { color: var(--coral); font: 10px/1.2 "SFMono-Regular", Consolas, monospace; }
.node-main { top: 90px; left: 28px; }
.node-review { top: 184px; left: 172px; border-left-color: var(--teal); }
.node-review span { color: var(--teal); }
.node-release { right: 28px; bottom: 82px; border-left-color: var(--acid); }
.node-release span { color: var(--acid); }
.motion-ready .node-main { animation: node-enter 480ms 80ms cubic-bezier(.2,.8,.2,1) forwards; }
.motion-ready .node-review { animation: node-enter 480ms 300ms cubic-bezier(.2,.8,.2,1) forwards; }
.motion-ready .node-release { animation: node-enter 480ms 520ms cubic-bezier(.2,.8,.2,1) forwards; }
.stage-route { position: absolute; z-index: 1; height: 2px; overflow: hidden; background: #344044; transform-origin: left center; }
.stage-route::after { position: absolute; inset: 0 auto 0 -45%; width: 42%; content: ""; background: var(--teal); box-shadow: 0 0 12px rgba(85, 214, 199, 0.85); animation: route-flow 2.2s linear infinite; }
.route-one { top: 174px; left: 180px; width: 140px; transform: rotate(33deg); }
.route-two { top: 289px; left: 333px; width: 125px; transform: rotate(26deg); }
.route-two::after { animation-delay: 900ms; background: var(--acid); box-shadow: 0 0 12px rgba(215, 255, 100, 0.8); }
.stage-metrics { position: absolute; right: 18px; bottom: 18px; left: 18px; display: flex; justify-content: space-between; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font: 9px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }

.action-strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 40px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.action-strip a { display: grid; min-height: 134px; align-content: center; gap: 6px; padding: 20px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: rgba(11, 13, 14, 0.9); text-decoration: none; transition: background 150ms ease, border-color 150ms ease; }
.action-strip a:hover { border-bottom-color: var(--coral); background: var(--surface); }
.action-strip span { color: var(--coral); font: 10px/1 "SFMono-Regular", Consolas, monospace; }
.action-strip strong { font-size: 17px; }
.action-strip small { color: var(--muted); line-height: 1.4; }

.catalog, .protocol { padding: 38px; border: 1px solid var(--line); background: rgba(11, 13, 14, 0.96); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 24px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.catalog-meta { display: grid; justify-items: end; }
.catalog-meta strong { color: var(--coral); font-size: 28px; }
.catalog-meta span, .section-note { color: var(--muted); font-size: 12px; }
.section-note { max-width: 470px; margin: 0; line-height: 1.5; text-align: right; }
.catalog-controls { display: grid; grid-template-columns: minmax(220px, 1fr) 190px 170px; gap: 10px; padding: 18px 0; }
.catalog-controls label, .submission-panel label, .action-input { display: grid; gap: 5px; color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; }
.catalog-controls input, .catalog-controls select, .submission-panel input, .action-input input { width: 100%; }
.package-list { display: grid; gap: 8px; }
.package-card { display: grid; grid-template-columns: minmax(180px, 0.8fr) minmax(260px, 1.4fr) minmax(150px, 0.6fr) auto; gap: 20px; align-items: center; min-height: 112px; padding: 18px; border: 1px solid var(--line); border-left: 4px solid var(--teal); background: var(--surface); }
.package-card.featured { border-left-color: var(--coral); }
.package-title { display: grid; gap: 5px; }
.package-title strong { font-size: 17px; }
.package-title span, .package-description, .package-meta { color: var(--muted); font-size: 12px; line-height: 1.45; }
.package-description { margin: 0; }
.package-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.package-tag { padding: 3px 6px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; }
.package-actions { display: flex; gap: 6px; }
.empty-state { display: grid; min-height: 220px; place-content: center; justify-items: center; gap: 8px; padding: 32px; border: 1px dashed var(--line-strong); background: #090b0c; text-align: center; }
.empty-state strong { font-family: "Avenir Next Condensed", "Arial Narrow", sans-serif; font-size: 28px; text-transform: uppercase; }
.empty-state span { max-width: 560px; color: var(--muted); line-height: 1.5; }
.notice { padding: 16px; border-left: 4px solid var(--warning); background: #201a0c; }
.notice.error { border-left-color: var(--coral); background: #25110d; }

.publish { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.9fr); gap: 50px; margin: 36px 0; padding: 44px; border: 1px solid var(--line); background: #0d1011; }
.publish-copy > p:not(.eyebrow) { max-width: 650px; color: #aeb7ba; line-height: 1.65; }
.button-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.submission-panel { align-self: start; padding: 22px; border: 1px solid var(--line-strong); background: var(--black); }
.submission-panel p { min-height: 34px; margin: 8px 0 0; color: var(--muted); font-size: 11px; line-height: 1.45; }
.protocol { margin-bottom: 38px; }
.resource-grid { display: grid; grid-template-columns: repeat(3, 1fr); margin-top: 20px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.resource-grid a { display: grid; min-height: 120px; align-content: center; gap: 6px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); text-decoration: none; transition: background 150ms ease; }
.resource-grid a:hover { background: var(--surface-2); }
.resource-grid span { color: var(--muted); font-size: 12px; }

.action-workspace { min-height: calc(100vh - 70px); padding: 70px 0 42px; }
.action-heading { max-width: 760px; margin-bottom: 46px; }
.action-heading h1 { font-size: 64px; }
.action-heading > p:last-child { max-width: 690px; margin: 20px 0 0; color: #aeb7ba; font-size: 17px; line-height: 1.6; }
.command-grid { display: grid; border-top: 1px solid var(--line); }
.command-panel { position: relative; display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: 24px; align-items: center; min-height: 250px; padding: 28px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); background: rgba(11, 13, 14, 0.94); opacity: 0; transform: translateY(10px); }
.motion-ready .command-panel { animation: panel-enter 420ms cubic-bezier(.2,.8,.2,1) forwards; }
.motion-ready .command-panel:nth-child(2) { animation-delay: 90ms; }
.motion-ready .command-panel:nth-child(3) { animation-delay: 180ms; }
.motion-ready .command-panel:nth-child(4) { animation-delay: 270ms; }
.command-panel::before { position: absolute; inset: 0 auto 0 0; width: 3px; content: ""; background: transparent; transition: background 150ms ease; }
.command-panel:hover::before, .command-panel:target::before, .active-panel::before { background: var(--coral); }
.command-number { color: var(--coral); font: 26px/1 "SFMono-Regular", Consolas, monospace; }
.command-copy { display: grid; max-width: 720px; gap: 9px; }
.command-type { color: var(--teal); font: 9px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.command-copy h2 { font-size: 32px; }
.command-copy p { margin: 0; color: #aeb7ba; line-height: 1.55; }
.command-copy ul { display: flex; flex-wrap: wrap; gap: 7px; margin: 2px 0 0; padding: 0; list-style: none; }
.command-copy li { padding: 4px 7px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); font-size: 10px; }
.command-button { min-width: 170px; }
.action-input { margin-top: 6px; }
.field-status { min-height: 17px; color: var(--muted) !important; font-size: 10px; }
.action-boundary { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; margin-top: 24px; padding: 18px; border: 1px solid var(--line); background: #080a0b; color: var(--muted); font-size: 11px; line-height: 1.5; }
.action-boundary strong { color: var(--acid); text-transform: uppercase; }

footer { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 22px max(18px, calc((100vw - 1240px) / 2)); border-top: 1px solid var(--line); background: #080a0b; color: var(--muted); font-size: 11px; }
footer span:nth-child(2) { text-align: center; }

@keyframes status-pulse { 0%, 100% { opacity: 0.55; transform: scale(0.86); } 50% { opacity: 1; transform: scale(1); } }
@keyframes node-enter { to { opacity: 1; transform: translateY(0); } }
@keyframes route-flow { from { transform: translateX(0); } to { transform: translateX(360%); } }
@keyframes panel-enter { to { opacity: 1; transform: translateY(0); } }

@media (max-width: 960px) {
  .intro { grid-template-columns: 1fr; }
  .pipeline-stage { width: min(100%, 620px); }
  .action-strip { grid-template-columns: repeat(2, 1fr); }
  .catalog-controls { grid-template-columns: 1fr 1fr; }
  .search-field { grid-column: 1 / -1; }
  .package-card { grid-template-columns: 1fr 1fr; }
  .package-description { grid-column: 1 / -1; grid-row: 2; }
  .publish { grid-template-columns: 1fr; }
  .resource-grid { grid-template-columns: repeat(2, 1fr); }
  .command-panel { grid-template-columns: 58px 1fr; }
  .command-button { grid-column: 2; justify-self: start; }
}

@media (max-width: 660px) {
  main { width: min(100% - 20px, 1240px); }
  .topbar { grid-template-columns: 1fr auto; gap: 8px; padding: 9px 10px; }
  .brand-copy strong { font-size: 13px; }
  .github-link { padding: 7px 8px; }
  .primary-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; }
  .intro { min-height: auto; gap: 42px; padding: 44px 4px 34px; }
  h1, .action-heading h1 { font-size: 44px; }
  .lede, .action-heading > p:last-child { font-size: 15px; }
  .pipeline-stage { min-height: 420px; }
  .node-main { top: 82px; left: 16px; }
  .node-review { top: 181px; left: 92px; }
  .node-release { right: 16px; bottom: 72px; }
  .route-one { top: 167px; left: 164px; width: 100px; transform: rotate(42deg); }
  .route-two { top: 287px; left: 254px; width: 75px; transform: rotate(39deg); }
  .action-strip { grid-template-columns: 1fr; }
  .catalog, .protocol, .publish { padding: 22px 16px; }
  .section-heading { align-items: start; flex-direction: column; }
  .catalog-meta { justify-items: start; }
  .section-note { text-align: left; }
  .catalog-controls { grid-template-columns: 1fr; }
  .search-field { grid-column: auto; }
  .package-card { grid-template-columns: 1fr; gap: 10px; }
  .package-description { grid-column: auto; grid-row: auto; }
  .package-actions { width: 100%; }
  .package-actions .button { flex: 1; }
  .resource-grid { grid-template-columns: 1fr; }
  .action-workspace { padding-top: 44px; }
  .command-panel { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px; }
  .command-button { grid-column: 1; width: 100%; }
  .action-boundary { grid-template-columns: 1fr; }
  footer { grid-template-columns: 1fr; text-align: left; }
  footer span:nth-child(2) { text-align: left; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; }
}

.ops-home {
  --parallax-x: 0px;
  --parallax-y: 0px;
  background-color: #030405;
  background-image: none;
}

.ambient-field { position: fixed; inset: 0; z-index: -2; overflow: hidden; pointer-events: none; }
.ambient-grid { position: absolute; inset: -5%; background-image: linear-gradient(rgba(116, 154, 161, 0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(116, 154, 161, 0.035) 1px, transparent 1px); background-size: 42px 42px; transform: translate(calc(var(--parallax-x) * -0.22), calc(var(--parallax-y) * -0.22)); transition: transform 900ms cubic-bezier(.2,.8,.2,1); }
.ambient-grid::after { position: absolute; inset: 0; content: ""; background: repeating-linear-gradient(0deg, transparent 0 3px, rgba(0, 0, 0, 0.16) 3px 4px); }
.ambient-haze { position: absolute; width: 680px; height: 680px; border: 1px solid rgba(85, 214, 199, 0.08); border-radius: 50%; opacity: 0.52; filter: blur(70px); transform: translate(var(--parallax-x), var(--parallax-y)); transition: transform 1100ms cubic-bezier(.2,.8,.2,1); }
.haze-one { top: -290px; right: -180px; background: rgba(48, 145, 151, 0.13); }
.haze-two { bottom: -420px; left: -260px; background: rgba(255, 91, 61, 0.08); transform: translate(calc(var(--parallax-x) * -0.7), calc(var(--parallax-y) * -0.7)); }

.ops-home .topbar { border-bottom-color: #242a2d; background: rgba(3, 4, 5, 0.88); }
.top-actions { display: flex; align-items: center; justify-self: end; gap: 7px; }
.channel-switch { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 10px; border: 1px solid #3b474b; border-radius: 4px; color: #aab4b7; background: #0a0d0e; font: 9px/1 "SFMono-Regular", Consolas, monospace; text-decoration: none; text-transform: uppercase; }
.channel-switch:hover { color: var(--white); border-color: #66777c; }
[data-channel="beta"] .channel-switch { color: var(--warning); border-color: rgba(255, 200, 87, 0.48); }
[data-channel="beta"] .status-dot, [data-channel="beta"] .route-health i { background: var(--warning); box-shadow: 0 0 10px rgba(255, 200, 87, 0.72); }
[data-channel="beta"] #rail-channel { color: var(--warning); }
.command-trigger { display: flex; min-height: 38px; align-items: center; gap: 18px; padding: 7px 9px 7px 12px; color: #aab4b7; background: #0a0d0e; border-color: #343c40; font-size: 11px; }
.command-trigger kbd { padding: 3px 6px; border: 1px solid #3e474b; border-radius: 3px; color: #a5b0b3; background: #050607; font: 9px/1 "SFMono-Regular", Consolas, monospace; }

.ops-home main { width: min(1380px, calc(100% - 36px)); }
.ops-home .intro { grid-template-columns: minmax(390px, 0.78fr) minmax(650px, 1.22fr); gap: 52px; min-height: calc(100svh - 126px); padding: 48px 0 40px; }
.ops-home .intro-copy { max-width: 570px; }
.ops-home h1 { font-size: 76px; letter-spacing: 0; }
.ops-home .lede { max-width: 560px; color: #aeb9bd; }
.hero-capabilities { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 22px; }
.hero-capabilities span { position: relative; padding: 5px 8px 5px 18px; border: 1px solid #273033; border-radius: 3px; color: #889397; background: rgba(8, 11, 12, 0.8); font: 9px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.hero-capabilities span::before { position: absolute; top: 50%; left: 7px; width: 5px; height: 5px; content: ""; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(85, 214, 199, 0.8); transform: translateY(-50%); }

.ops-home .pipeline-stage { --tilt-x: 0deg; --tilt-y: 0deg; position: relative; min-height: 590px; overflow: hidden; border: 1px solid #30383b; border-radius: 2px; background-color: rgba(5, 8, 9, 0.92); background-image: radial-gradient(circle at 54% 48%, rgba(47, 160, 157, 0.12), transparent 37%), linear-gradient(rgba(106, 139, 145, 0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(106, 139, 145, 0.04) 1px, transparent 1px); background-size: auto, 28px 28px, 28px 28px; box-shadow: 0 42px 100px rgba(0, 0, 0, 0.58), inset 0 0 70px rgba(85, 214, 199, 0.025); transform: perspective(1500px) rotateX(var(--tilt-x)) rotateY(var(--tilt-y)); transform-style: preserve-3d; transition: border-color 220ms ease, transform 700ms cubic-bezier(.2,.8,.2,1), filter 180ms ease, opacity 180ms ease; }
.ops-home .pipeline-stage::before { position: absolute; inset: 0; z-index: 0; content: ""; background: linear-gradient(112deg, transparent 0 38%, rgba(145, 255, 245, 0.025) 46%, transparent 55%); transform: translateX(-65%); animation: stage-scan 8s ease-in-out infinite; pointer-events: none; }
.ops-home .pipeline-stage::after { position: absolute; inset: 0; z-index: 6; content: ""; background: repeating-linear-gradient(0deg, transparent 0 4px, rgba(0, 0, 0, 0.12) 4px 5px); mix-blend-mode: multiply; pointer-events: none; }
.pipeline-stage.is-switching { opacity: 0.6; filter: blur(2px); }
.stage-chrome { position: absolute; inset: 10px; z-index: 8; pointer-events: none; }
.stage-chrome span { position: absolute; width: 22px; height: 22px; border-color: #536166; }
.stage-chrome span:nth-child(1) { top: 0; left: 0; border-top: 1px solid; border-left: 1px solid; }
.stage-chrome span:nth-child(2) { top: 0; right: 0; border-top: 1px solid; border-right: 1px solid; }
.stage-chrome span:nth-child(3) { right: 0; bottom: 0; border-right: 1px solid; border-bottom: 1px solid; }
.stage-chrome span:nth-child(4) { bottom: 0; left: 0; border-bottom: 1px solid; border-left: 1px solid; }
.ops-home .stage-head { position: absolute; top: 18px; right: 22px; left: 22px; z-index: 7; display: flex; align-items: start; justify-content: space-between; padding: 0 0 13px; border-bottom: 1px solid #293236; color: inherit; font: inherit; text-transform: none; }
.stage-head > div:first-child { display: grid; gap: 4px; }
.stage-kicker { color: #6f7c81; font: 8px/1 "SFMono-Regular", Consolas, monospace; letter-spacing: 0; }
.stage-head strong { color: var(--white); font: 13px/1.1 "SFMono-Regular", Consolas, monospace; }
.route-health { display: flex; align-items: center; gap: 7px; color: var(--acid); font: 9px/1 "SFMono-Regular", Consolas, monospace; }
.route-health i { width: 7px; height: 7px; border-radius: 50%; background: var(--acid); box-shadow: 0 0 10px rgba(215, 255, 100, 0.8); animation: status-pulse 2s ease-in-out infinite; }
.route-modes { position: absolute; top: 74px; left: 22px; z-index: 9; display: flex; gap: 3px; }
.route-mode { min-height: 29px; padding: 5px 10px; border-color: #2b3437; border-radius: 2px; color: #727e82; background: rgba(4, 6, 7, 0.8); font: 8px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.route-mode.active { color: var(--white); border-color: #556368; background: #151a1c; box-shadow: inset 0 -2px var(--teal); }
.route-viewport { position: absolute; inset: 106px 15px 50px; z-index: 2; min-height: 0; }
.live-route { display: block; width: 100%; height: 100%; overflow: visible; }
.node-readout { position: absolute; top: 14px; right: 12px; z-index: 6; display: grid; width: 226px; gap: 8px; padding: 13px; border: 1px solid rgba(93, 113, 119, 0.62); border-top-color: var(--teal); background: rgba(5, 8, 9, 0.91); box-shadow: 0 16px 34px rgba(0, 0, 0, 0.42), inset 0 0 24px rgba(85, 214, 199, 0.025); backdrop-filter: blur(9px); transform: translateZ(18px); }
.node-readout > span { color: var(--teal); font: 8px/1 "SFMono-Regular", Consolas, monospace; }
.node-readout > strong { font-size: 14px; }
.node-readout > p { min-height: 48px; margin: 0; color: #879397; font-size: 10px; line-height: 1.5; }
.node-readout dl { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5px; margin: 0; }
.node-readout dl div { display: grid; gap: 3px; padding-top: 7px; border-top: 1px solid #273033; }
.node-readout dt { color: #5f6a6e; font: 7px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.node-readout dd { margin: 0; color: #c8d1d3; font: 8px/1.2 "SFMono-Regular", Consolas, monospace; }

.route-edge, .route-current { fill: none; vector-effect: non-scaling-stroke; }
.route-edge { color: #435055; stroke: #263034; stroke-width: 1.2; opacity: 0.7; }
.route-current { stroke: #45595d; stroke-width: 1.3; stroke-dasharray: 8 13; opacity: 0.12; }
.route-connection.is-live .route-edge { stroke: #405257; opacity: 1; }
.route-connection.is-live .route-current { stroke: var(--teal); opacity: 0.95; filter: url(#route-glow); animation: edge-current 1.1s linear infinite; }
.route-packet { fill: #4e5d62; opacity: 0.18; }
.route-connection.is-live .route-packet { fill: var(--teal); opacity: 1; filter: url(#route-glow); }
.route-node { --phase-color: var(--coral); cursor: pointer; outline: none; }
.route-node.phase-quality { --phase-color: var(--teal); }
.route-node.phase-final { --phase-color: var(--acid); }
.node-shell { transform-box: fill-box; transform-origin: center; transition: transform 240ms cubic-bezier(.2,.8,.2,1), opacity 240ms ease; }
.node-body { fill: rgba(14, 18, 20, 0.96); stroke: #4c5a5f; stroke-width: 1; vector-effect: non-scaling-stroke; }
.node-halo { fill: transparent; stroke: var(--phase-color); stroke-width: 1; opacity: 0; vector-effect: non-scaling-stroke; }
.node-lock { fill: none; stroke: var(--phase-color); stroke-width: 1.6; opacity: 0.7; vector-effect: non-scaling-stroke; }
.node-port { fill: #050607; stroke: #66767b; stroke-width: 1; vector-effect: non-scaling-stroke; }
.node-code { fill: #768287; font: 7px "SFMono-Regular", Consolas, monospace; }
.node-label { fill: #eef3f2; font: 700 12px "Avenir Next", Avenir, sans-serif; }
.node-state { fill: var(--phase-color); font: 8px "SFMono-Regular", Consolas, monospace; }
.node-pulse { fill: var(--phase-color); opacity: 0.45; }
.route-node.is-standby .node-shell { opacity: 0.46; transform: scale(0.96); }
.route-node.is-complete .node-body { stroke: color-mix(in srgb, var(--phase-color) 45%, #465157); }
.route-node.is-complete .node-pulse { opacity: 1; }
.route-node.is-active .node-shell { transform: scale(1.055); animation: magnetic-lock 520ms cubic-bezier(.18,.86,.24,1); }
.route-node.is-active .node-body { stroke: var(--phase-color); stroke-width: 1.5; filter: url(#route-glow); }
.route-node.is-active .node-halo { opacity: 0.35; animation: node-radiate 1.7s ease-out infinite; }
.route-node.is-active .node-pulse { opacity: 1; filter: url(#route-glow); animation: status-pulse 1.2s ease-in-out infinite; }
.route-node:hover .node-shell, .route-node:focus .node-shell, .route-node.is-pinned .node-shell { transform: scale(1.075); }
.route-node:hover .node-body, .route-node:focus .node-body, .route-node.is-pinned .node-body { stroke: var(--white); }

.ops-home .stage-metrics { position: absolute; right: 22px; bottom: 18px; left: 22px; z-index: 7; display: grid; grid-template-columns: repeat(4, 1fr); align-items: center; gap: 12px; padding-top: 12px; border-top: 1px solid #293236; color: #6f7b7f; font: 8px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.stage-metrics span { display: flex; align-items: center; gap: 5px; }
.stage-metrics span:last-child { justify-content: end; }
.stage-metrics b { color: #d5dddf; font-weight: 500; }
.metric-led { width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.metric-led.teal { color: var(--teal); box-shadow: 0 0 8px rgba(85, 214, 199, 0.8); }
.metric-led.coral { color: var(--coral); box-shadow: 0 0 8px rgba(255, 91, 61, 0.7); }
.metric-led.acid { color: var(--acid); box-shadow: 0 0 8px rgba(215, 255, 100, 0.65); }

.protocol-rail { display: grid; grid-template-columns: repeat(6, 1fr); margin-bottom: 22px; border: 1px solid #283034; background: rgba(6, 8, 9, 0.88); box-shadow: 0 18px 44px rgba(0, 0, 0, 0.24); }
.protocol-rail > div { display: grid; gap: 5px; min-height: 70px; align-content: center; padding: 12px 15px; border-right: 1px solid #283034; }
.protocol-rail > div:last-child { border-right: 0; }
.protocol-rail span { color: #899599; font: 7px/1 "SFMono-Regular", Consolas, monospace; text-transform: uppercase; }
.protocol-rail strong { color: #c8d1d3; font: 9px/1 "SFMono-Regular", Consolas, monospace; }
.live-indicator { color: var(--teal) !important; }
.live-indicator i { display: inline-block; width: 5px; height: 5px; margin-right: 5px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 8px rgba(85, 214, 199, 0.8); }

.ops-home .action-strip { grid-template-columns: repeat(4, 1fr); }
.ops-home .action-strip button { display: grid; min-height: 134px; align-content: center; justify-content: stretch; gap: 6px; padding: 20px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); border-radius: 0; background: rgba(11, 13, 14, 0.9); text-align: left; }
.ops-home .action-strip button:hover { border-bottom-color: var(--coral); background: var(--surface); transform: none; }
.ops-home .action-strip button span { color: var(--coral); font: 10px/1 "SFMono-Regular", Consolas, monospace; }
.ops-home .action-strip button strong { font-size: 17px; }
.ops-home .action-strip button small { color: var(--muted); line-height: 1.4; }

.ops-home .catalog { position: relative; overflow: hidden; background: rgba(6, 8, 9, 0.93); }
.ops-home .catalog::before { position: absolute; inset: 0; content: ""; background-image: linear-gradient(rgba(111, 145, 151, 0.028) 1px, transparent 1px), linear-gradient(90deg, rgba(111, 145, 151, 0.028) 1px, transparent 1px); background-size: 24px 24px; pointer-events: none; }
.ops-home .catalog > * { position: relative; z-index: 1; }
.ops-home .package-list { grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 10px; }
.ops-home .package-card { position: relative; display: grid; grid-template-columns: 1fr; grid-template-rows: auto auto minmax(62px, auto) auto auto auto; gap: 12px; min-height: 310px; align-content: start; padding: 17px; border: 1px solid #30393c; border-left-width: 1px; background: rgba(12, 16, 17, 0.96); box-shadow: inset 0 0 28px rgba(85, 214, 199, 0.018); transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.ops-home .package-card:hover { border-color: #5f7075; box-shadow: 0 18px 40px rgba(0, 0, 0, 0.32), inset 0 0 34px rgba(85, 214, 199, 0.035); transform: translateY(-3px); }
.package-rail { display: flex; justify-content: space-between; color: #6e7a7e; font: 7px/1 "SFMono-Regular", Consolas, monospace; }
.package-rail i { width: 30px; height: 1px; background: var(--teal); box-shadow: 0 0 8px rgba(85, 214, 199, 0.8); }
.ops-home .package-title strong { font-size: 18px; }
.ops-home .package-description { min-height: 62px; }
.package-signal { display: flex; height: 18px; align-items: end; gap: 3px; padding-top: 6px; border-top: 1px solid #273033; }
.package-signal span { width: 3px; background: var(--teal); opacity: 0.52; animation: signal-bars 1.8s ease-in-out infinite; }
.package-signal span:nth-child(1) { height: 4px; }
.package-signal span:nth-child(2) { height: 9px; animation-delay: -0.4s; }
.package-signal span:nth-child(3) { height: 6px; animation-delay: -0.8s; }
.package-signal span:nth-child(4) { height: 12px; animation-delay: -1.1s; }
.package-signal span:nth-child(5) { height: 7px; animation-delay: -0.2s; }
.ops-home .package-actions { margin-top: auto; }
.ops-home .empty-state { grid-column: 1 / -1; min-height: 250px; }

.command-palette { width: min(680px, calc(100% - 28px)); max-height: min(620px, calc(100vh - 40px)); padding: 0; overflow: hidden; border: 1px solid #56666b; border-radius: 5px; color: var(--white); background: rgba(6, 9, 10, 0.98); box-shadow: 0 38px 120px rgba(0, 0, 0, 0.8), 0 0 50px rgba(85, 214, 199, 0.08); backdrop-filter: blur(18px); }
.command-palette::backdrop { background: rgba(0, 0, 0, 0.72); backdrop-filter: blur(5px); }
.command-shell { display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; max-height: inherit; }
.command-shell > header { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #273034; }
.palette-symbol { color: var(--teal); font: 18px/1 "SFMono-Regular", Consolas, monospace; }
.command-shell > header div { display: grid; gap: 2px; }
.command-shell > header strong { font-size: 12px; }
.command-shell > header small { color: #6e7a7f; font-size: 9px; }
.command-shell > header kbd, .command-option kbd { padding: 3px 6px; border: 1px solid #384347; border-radius: 3px; color: #7f8c90; background: #050607; font: 8px/1 "SFMono-Regular", Consolas, monospace; }
.palette-search { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid #273034; color: var(--teal); }
.palette-search input { width: 100%; min-height: 42px; border: 0; background: transparent; font: 14px/1.3 "SFMono-Regular", Consolas, monospace; outline: none; }
.command-list { min-height: 120px; overflow: auto; padding: 7px; }
.command-option { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; width: 100%; min-height: 58px; align-items: center; gap: 10px; padding: 8px 10px; border: 0; border-radius: 3px; background: transparent; text-align: left; }
.command-option:hover, .command-option.selected { background: #172023; transform: none; }
.command-option.selected { box-shadow: inset 3px 0 var(--teal); }
.command-group { color: var(--coral); font: 7px/1 "SFMono-Regular", Consolas, monospace; }
.command-copy { display: grid; gap: 3px; }
.command-copy strong { font-size: 11px; }
.command-copy small { color: #788589; font-size: 9px; }
.command-empty { padding: 30px; color: var(--muted); text-align: center; }
.command-shell > footer { display: flex; gap: 16px; padding: 10px 16px; border-top: 1px solid #273034; color: #657175; font: 8px/1 "SFMono-Regular", Consolas, monospace; }

@keyframes stage-scan { 0%, 16% { transform: translateX(-70%); } 58%, 100% { transform: translateX(150%); } }
@keyframes edge-current { to { stroke-dashoffset: -42; } }
@keyframes node-radiate { 0% { opacity: 0.52; transform: scale(0.96); } 100% { opacity: 0; transform: scale(1.13); } }
@keyframes magnetic-lock { 0% { transform: scale(0.96); } 42% { transform: scale(1.085); } 72% { transform: scale(1.03); } 100% { transform: scale(1.055); } }
@keyframes signal-bars { 0%, 100% { opacity: 0.28; transform: scaleY(0.72); } 50% { opacity: 0.9; transform: scaleY(1); } }

@media (max-width: 1120px) {
  .ops-home .intro { grid-template-columns: 1fr; }
  .ops-home .intro-copy { max-width: 760px; }
  .ops-home .pipeline-stage { width: min(100%, 880px); min-height: 610px; }
  .protocol-rail { grid-template-columns: repeat(3, 1fr); }
  .protocol-rail > div:nth-child(3) { border-right: 0; }
  .protocol-rail > div:nth-child(-n+3) { border-bottom: 1px solid #283034; }
}

@media (max-width: 700px) {
  .top-actions { gap: 4px; }
  .command-trigger span { display: none; }
  .command-trigger { padding-left: 9px; }
  .ops-home main { width: min(100% - 20px, 1380px); }
  .ops-home .intro { gap: 32px; min-height: auto; padding-top: 42px; }
  .ops-home h1 { font-size: 46px; }
  .ops-home .pipeline-stage { min-height: 690px; transform: none; }
  .route-modes { top: 78px; }
  .route-viewport { inset: 112px 8px 203px; }
  .node-readout { top: auto; right: 10px; bottom: -127px; left: 10px; width: auto; }
  .ops-home .stage-metrics { grid-template-columns: 1fr 1fr; bottom: 14px; gap: 9px; }
  .stage-metrics span:last-child { justify-content: start; }
  .protocol-rail { grid-template-columns: repeat(2, 1fr); }
  .protocol-rail > div { border-right: 1px solid #283034 !important; border-bottom: 1px solid #283034; }
  .protocol-rail > div:nth-child(even) { border-right: 0 !important; }
  .ops-home .action-strip { grid-template-columns: 1fr; }
  .command-option { grid-template-columns: 58px minmax(0, 1fr) auto; }
  .command-shell > footer { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  .ops-home .pipeline-stage { transform: none !important; }
  .ambient-grid, .ambient-haze { transform: none !important; }
  .route-node.is-active .node-halo { opacity: 0.35; }
}

.extension-link, .download-link { display: inline-flex; min-height: 38px; align-items: center; padding: 7px 10px; border: 1px solid #3b474b; border-radius: 4px; color: #c6d0d2; background: #0a0d0e; font: 9px/1 "SFMono-Regular", Consolas, monospace; text-decoration: none; text-transform: uppercase; }
.extension-link { color: var(--teal); border-color: rgba(85, 214, 199, 0.42); }
.download-link { color: var(--acid); border-color: rgba(215, 255, 100, 0.38); }
.extension-link:hover, .download-link:hover { color: var(--white); border-color: #77878c; }
.command-button-stack { display: grid; min-width: 180px; gap: 7px; }
.command-button-stack .command-button { width: 100%; }
.ops-home .package-actions { flex-wrap: wrap; }
.ops-home .package-actions .button { min-height: 38px; padding: 7px 9px; font-size: 10px; }
.ops-home .package-actions .button:first-child { flex: 1 1 100%; }

@media (max-width: 1120px) {
  .top-actions > .extension-link, .top-actions > .download-link { display: none; }
}

@media (max-width: 700px) {
  .command-button-stack { grid-column: 1; width: 100%; }
}
