/* CONDUIT PRODUCTION STYLESHEET */
/* Generated from the verified source load order. */

/* =========================================================
   SOURCE: production bundle
   ========================================================= */

:root {
  color-scheme: dark;

  --bg: #001e2b;
  --bg-deep: #001520;
  --surface: rgba(5, 31, 43, .88);
  --surface-solid: #061f2b;
  --surface-raised: #0a2a39;

  --text: #ffffff;
  --muted: #a8bac4;
  --quiet: #748c99;

  --line: rgba(165, 206, 224, .18);
  --line-strong: rgba(165, 206, 224, .34);

  --gold: #fdb81e;

  --signal: #00aeef;
  --mesh: #7f73ff;
  --relay: #f59a23;
  --plug: #20c997;
  --resolve: #ef5b67;

  --accent: var(--gold);
  --accent-rgb: 253, 184, 30;

  --critical: #ff4d5b;
  --high: #ff8c42;
  --medium: #f8c84a;
  --low: #69d59c;

  --display:
    "Liberator",
    "Roboto Condensed",
    "Arial Narrow",
    sans-serif;

  --body:
    "Roboto",
    Arial,
    sans-serif;

  --shadow:
    0 28px 80px rgba(0, 0, 0, .30);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  background: var(--bg-deep);
  color: var(--text);
  font-family: var(--body);
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

button,
a,
input,
select,
textarea {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
}

.water-canvas,
.water-fallback {
  position: fixed;
  inset: 0;
  z-index: -3;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.water-canvas {
  opacity: .82;
}

.water-fallback {
  z-index: -4;
  background:
    radial-gradient(
      ellipse 70% 24% at 18% 24%,
      rgba(33, 135, 166, .22),
      transparent 70%
    ),
    radial-gradient(
      ellipse 66% 20% at 84% 58%,
      rgba(112, 202, 224, .12),
      transparent 74%
    ),
    linear-gradient(180deg, #002636, #001620);
}

.skip-link {
  position: fixed;
  z-index: 999;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  background: var(--text);
  color: var(--bg);
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.app {
  width: min(1140px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 0 28px;
}

.launcher {
  padding: 72px 0 100px;
}

.identity {
  max-width: 1050px;
  margin: 0 auto 62px;
  text-align: center;
}

.conduit-mark {
  width: 46px;
  height: 46px;
  margin-bottom: 22px;
  filter:
    brightness(0)
    saturate(100%)
    invert(82%)
    sepia(94%)
    saturate(1118%)
    hue-rotate(336deg)
    brightness(102%);
}

.platform-title {
  margin: 0 0 24px;
  color: var(--text);
  font-family: var(--display);
  font-size: clamp(2rem, 5vw, 4.2rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: .92;
  text-transform: uppercase;
}

.command-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 24px;
  font-family: var(--display);
  font-size: clamp(.8rem, 1.7vw, 1.05rem);
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.command-heading strong {
  color: var(--gold);
  font-size: inherit;
}

.command-heading b {
  color: var(--gold);
  font-size: 1.25em;
  line-height: 1;
}

.mission-statement {
  max-width: 790px;
  margin: 0 auto;
  color: #c0cdd4;
  font-size: 1.06rem;
  line-height: 1.7;
}

.tool-list {
  border-top: 1px solid var(--line);
}

.tool-row {
  --tool: var(--gold);
  --tool-rgb: 253, 184, 30;

  width: 100%;
  min-height: 122px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 22px 28px;
  border: 0;
  border-bottom: 1px solid var(--line);
  border-left: 4px solid transparent;
  background: transparent;
  color: var(--text);
  text-align: left;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 160ms ease;
}

.tool-row[data-module="signal"] {
  --tool: var(--signal);
  --tool-rgb: 0, 174, 239;
}

.tool-row[data-module="mesh"] {
  --tool: var(--mesh);
  --tool-rgb: 127, 115, 255;
}

.tool-row[data-module="relay"] {
  --tool: var(--relay);
  --tool-rgb: 245, 154, 35;
}

.tool-row[data-module="plug"] {
  --tool: var(--plug);
  --tool-rgb: 32, 201, 151;
}

.tool-row[data-module="resolve"] {
  --tool: var(--resolve);
  --tool-rgb: 239, 91, 103;
}

.tool-row:hover,
.tool-row:focus-visible {
  border-left-color: var(--tool);
  background:
    linear-gradient(
      90deg,
      rgba(var(--tool-rgb), .13),
      rgba(var(--tool-rgb), .025) 62%,
      transparent
    );
  transform: translateX(3px);
}

.tool-icon {
  width: 54px;
  height: 54px;
  display: block;
  background: var(--tool);
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  transition: transform 160ms ease;
}

.tool-row:hover .tool-icon,
.tool-row:focus-visible .tool-icon {
  transform: translateX(3px);
}

.tool-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.tool-name {
  color: var(--tool);
  font-family: var(--display);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: .045em;
  line-height: 1;
  text-transform: uppercase;
}

.tool-description {
  max-width: 760px;
  color: color-mix(in srgb, var(--tool) 58%, white 42%);
  font-size: .96rem;
  font-style: italic;
  font-weight: 500;
  line-height: 1.5;
}

.tool-state {
  color: var(--quiet);
  font-family: var(--display);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.shared-statement {
  max-width: 820px;
  margin: 38px auto 0;
  color: var(--muted);
  font-size: .86rem;
  line-height: 1.65;
  text-align: center;
}

.workspace {
  min-height: 100vh;
  padding: 24px 0 90px;
}

.workspace[hidden] {
  display: none;
}

.workspace-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  min-height: 66px;
  margin-bottom: 34px;
  border-bottom: 1px solid var(--line);
  background: rgba(0, 21, 32, .88);
  backdrop-filter: blur(18px);
}

.conduit-home,
.text-button,
.module-navigation button {
  border: 0;
  background: transparent;
  color: var(--muted);
}

.conduit-home {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 0;
  color: var(--text);
  font-family: var(--display);
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.conduit-home img {
  width: 28px;
  height: 28px;
  filter:
    brightness(0)
    saturate(100%)
    invert(82%)
    sepia(94%)
    saturate(1118%)
    hue-rotate(336deg)
    brightness(102%);
}

.module-navigation {
  display: flex;
  justify-content: center;
  gap: 6px;
  overflow-x: auto;
}

.module-navigation button {
  min-height: 38px;
  padding: 0 12px;
  border-bottom: 2px solid transparent;
  font-family: var(--display);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.module-navigation button.active {
  border-bottom-color: var(--accent);
  color: var(--accent);
}

.text-button {
  font-size: .78rem;
}

.module-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 30px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.module-eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.module-header h1 {
  margin: 0 0 12px;
  color: var(--accent);
  font-family: var(--display);
  font-size: clamp(3.4rem, 8vw, 6.6rem);
  font-weight: 900;
  letter-spacing: .035em;
  line-height: .86;
  text-transform: uppercase;
}

.module-header p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.module-actions {
  display: flex;
  gap: 10px;
}

.primary-button,
.secondary-button {
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--accent);
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.primary-button {
  background: var(--accent);
  color: var(--bg-deep);
}

.secondary-button {
  background: transparent;
  color: var(--accent);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}

.summary-card {
  min-height: 118px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.summary-card span {
  color: var(--muted);
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.summary-card strong {
  display: block;
  margin-top: 22px;
  font-family: var(--display);
  font-size: 2rem;
  font-weight: 900;
}

.signal-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(310px, .55fr);
  gap: 18px;
}

.panel {
  overflow: hidden;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.panel + .panel {
  margin-top: 18px;
}

.panel-header {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 17px;
  border-bottom: 1px solid var(--line);
}

.panel-header h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.filters {
  display: flex;
  gap: 8px;
  padding: 12px 14px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
}

.filter-button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  white-space: nowrap;
}

.filter-button.active {
  border-color: var(--accent);
  color: var(--accent);
}

.incident-list {
  padding: 8px;
}

.incident {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  gap: 14px;
  padding: 16px 10px;
  border-bottom: 1px solid var(--line);
}

.incident:last-child {
  border-bottom: 0;
}

.severity-bar {
  width: 8px;
  min-height: 64px;
  background: var(--medium);
}

.severity-bar.critical {
  background: var(--critical);
}

.severity-bar.high {
  background: var(--high);
}

.severity-bar.medium {
  background: var(--medium);
}

.severity-bar.low {
  background: var(--low);
}

.incident-title {
  margin: 0 0 6px;
  font-size: .98rem;
}

.incident-summary {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: .88rem;
  line-height: 1.45;
}

.incident-meta,
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag {
  padding: 4px 7px;
  border: 1px solid var(--line);
  color: var(--muted);
  font-size: .7rem;
  text-transform: uppercase;
}

.incident-actions {
  display: grid;
  align-content: start;
  gap: 7px;
}

.small-button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  font-size: .76rem;
}

.small-button.acknowledged {
  border-color: var(--plug);
  color: var(--plug);
}

.side-list {
  padding: 9px;
}

.side-item {
  padding: 14px 9px;
  border-bottom: 1px solid var(--line);
}

.side-item:last-child {
  border-bottom: 0;
}

.side-item strong,
.side-item span {
  display: block;
}

.side-item span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.4;
}

.progress-track {
  height: 7px;
  margin-top: 10px;
  background: rgba(255, 255, 255, .08);
}

.progress-fill {
  height: 100%;
  background: var(--accent);
}

.empty-state {
  padding: 30px 18px;
  color: var(--muted);
  text-align: center;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  margin-top: 24px;
}

.placeholder-card {
  min-height: 190px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.placeholder-card h2 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 1.15rem;
  text-transform: uppercase;
}

.placeholder-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.audit-strip {
  margin-top: 18px;
  padding: 17px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  color: var(--muted);
  line-height: 1.6;
}

.audit-strip strong {
  color: var(--text);
}

.modal-backdrop {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 10, 16, .76);
  backdrop-filter: blur(8px);
}

.modal-backdrop[hidden] {
  display: none;
}

.modal {
  width: min(760px, 100%);
  max-height: calc(100vh - 40px);
  overflow-y: auto;
  border: 1px solid var(--line-strong);
  background: var(--surface-solid);
  box-shadow: var(--shadow);
}

.modal-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
}

.modal-header h2 {
  margin: 0;
  font-family: var(--display);
  text-transform: uppercase;
}

.close-button {
  border: 0;
  background: transparent;
  color: var(--text);
  font-size: 2rem;
}

.modal form {
  padding: 20px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.form-grid label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: .82rem;
  font-weight: 600;
}

.full-field {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: #001721;
  color: var(--text);
}

input,
select {
  min-height: 44px;
  padding: 0 12px;
}

textarea {
  padding: 12px;
  resize: vertical;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 20px;
}

body.reduce-motion .water-canvas {
  display: none;
}

@media (max-width: 900px) {
  .summary-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .signal-layout {
    grid-template-columns: 1fr;
  }

  .placeholder-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .app {
    padding: 0 16px;
  }

  .launcher {
    padding-top: 52px;
  }

  .platform-title {
    font-size: clamp(2rem, 12vw, 3.8rem);
  }

  .command-heading {
    gap: 7px;
  }

  .command-heading strong {
    flex-basis: 100%;
    margin-bottom: 4px;
  }

  .tool-row {
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 14px;
    padding: 20px 14px;
  }

  .tool-icon {
    width: 46px;
    height: 46px;
  }

  .tool-state {
    grid-column: 2;
  }

  .workspace-topbar {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .text-button {
    grid-column: 1 / -1;
    justify-self: end;
    padding-bottom: 10px;
  }

  .module-header {
    grid-template-columns: 1fr;
  }

  .module-actions {
    justify-content: flex-start;
  }

  .summary-grid {
    grid-template-columns: 1fr 1fr;
  }

  .incident {
    grid-template-columns: 7px minmax(0, 1fr);
  }

  .incident-actions {
    grid-column: 2;
    grid-template-columns: repeat(2, auto);
    justify-content: start;
  }

  .form-grid {
    grid-template-columns: 1fr;
  }

  .full-field {
    grid-column: auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .water-canvas {
    display: none;
  }

  * {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* =========================================================
   FINAL CONDUIT IDENTITY AND ENVIRONMENT SYSTEM
   ========================================================= */

:root {
  --conduit-color: #fdb81e;
}

.conduit-mark {
  width: 48px;
  height: 48px;
  margin: 0 auto 22px;
}

.workspace-conduit-mark {
  width: 29px;
  height: 29px;
}

.conduit-home img {
  display: none;
}

/* Lifecycle is now the five-tool color sequence. */

.command-heading strong {
  color: var(--conduit-color);
}

.command-heading .stage-detect,
.command-heading .arrow-detect {
  color: var(--signal);
}

.command-heading .stage-understand,
.command-heading .arrow-understand {
  color: var(--mesh);
}

.command-heading .stage-respond,
.command-heading .arrow-respond {
  color: var(--relay);
}

.command-heading .stage-coordinate,
.command-heading .arrow-coordinate {
  color: var(--plug);
}

.command-heading .stage-improve {
  color: var(--resolve);
}

.command-heading b {
  opacity: .9;
}

/* Landing page is tied to the sea. */

body.launcher-mode .water-canvas {
  opacity: 1;
}

body.workspace-mode .water-canvas {
  opacity: .28;
  filter:
    saturate(.72)
    brightness(.72);
}

body.workspace-mode .water-fallback {
  background:
    radial-gradient(
      ellipse 75% 34% at 50% -4%,
      rgba(var(--accent-rgb), .15),
      transparent 67%
    ),
    radial-gradient(
      ellipse 52% 23% at 92% 52%,
      rgba(var(--accent-rgb), .075),
      transparent 74%
    ),
    linear-gradient(
      180deg,
      #001c29,
      #00131d
    );
}

/* Each workspace is a distinct operational environment. */

body.workspace-mode .workspace {
  position: relative;
}

body.workspace-mode .workspace::before {
  content: "";
  position: fixed;
  z-index: -1;
  inset: 0;
  pointer-events: none;

  background:
    linear-gradient(
      135deg,
      rgba(var(--accent-rgb), .045),
      transparent 42%
    ),
    repeating-linear-gradient(
      90deg,
      transparent 0 79px,
      rgba(var(--accent-rgb), .025) 80px,
      transparent 81px 159px
    );
}

body.module-signal .workspace::before {
  background:
    radial-gradient(
      circle at 82% 12%,
      rgba(0, 174, 239, .12),
      transparent 32%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 39px,
      rgba(0, 174, 239, .032) 40px,
      transparent 41px 79px
    );
}

body.module-mesh .workspace::before {
  background:
    linear-gradient(
      30deg,
      transparent 0 47%,
      rgba(127, 115, 255, .055) 48% 49%,
      transparent 50%
    ),
    linear-gradient(
      -30deg,
      transparent 0 47%,
      rgba(127, 115, 255, .045) 48% 49%,
      transparent 50%
    );
  background-size: 150px 150px;
}

body.module-relay .workspace::before {
  background:
    repeating-linear-gradient(
      -12deg,
      transparent 0 74px,
      rgba(245, 154, 35, .045) 75px 77px,
      transparent 78px 152px
    );
}

body.module-plug .workspace::before {
  background:
    repeating-linear-gradient(
      90deg,
      transparent 0 112px,
      rgba(32, 201, 151, .04) 113px 116px,
      transparent 117px 229px
    );
}

body.module-resolve .workspace::before {
  background:
    radial-gradient(
      circle at 20% 16%,
      rgba(239, 91, 103, .10),
      transparent 30%
    ),
    repeating-linear-gradient(
      0deg,
      transparent 0 63px,
      rgba(239, 91, 103, .03) 64px,
      transparent 65px 127px
    );
}

@media (max-width: 760px) {
  .conduit-mark {
    width: 42px;
    height: 42px;
  }

  .command-heading span,
  .command-heading b {
    font-size: .94em;
  }
}

/* =========================================================
   FULL FIVE-SYSTEM WORKSPACES
   ========================================================= */

.mesh-workspace,
.relay-layout,
.plug-layout,
.resolve-layout {
  margin-top: 24px;
}

.mesh-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.mesh-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, .55fr);
  gap: 16px;
}

.mesh-map-panel,
.mesh-inspector,
.relay-runbook-list,
.handoff-list,
.handoff-detail,
.review-list,
.resolve-panel {
  border: 1px solid var(--line);
  background: var(--surface);
  backdrop-filter: blur(12px);
}

.mesh-map-panel {
  min-height: 590px;
  overflow: hidden;
}

.mesh-map {
  width: 100%;
  min-height: 590px;
}

.mesh-link {
  stroke: rgba(127, 115, 255, .48);
  stroke-width: 3;
  stroke-dasharray: 8 7;
}

.mesh-link.fallback-for {
  stroke: var(--plug);
  stroke-dasharray: 3 7;
}

.mesh-node {
  cursor: pointer;
  outline: none;
}

.mesh-node circle {
  fill: #0d2637;
  stroke: var(--mesh);
  stroke-width: 4;
}

.mesh-node .mesh-node-core {
  fill: var(--mesh);
}

.mesh-node text {
  fill: #d8d5ff;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  text-transform: uppercase;
}

.mesh-node.selected circle:first-child {
  fill: rgba(127, 115, 255, .24);
  stroke-width: 7;
}

.mesh-node.incident-node circle:first-child {
  stroke: var(--critical);
}

.mesh-node.incident-node .mesh-node-core {
  fill: var(--critical);
}

.mesh-inspector {
  padding: 22px;
}

.mesh-inspector h2 {
  margin: 0 0 20px;
  color: var(--mesh);
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
}

.record-details {
  margin: 0 0 28px;
}

.record-details div {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}

.record-details dt {
  color: var(--muted);
}

.record-details dd {
  margin: 0;
  color: var(--text);
}

.relationship-list {
  display: grid;
  gap: 8px;
}

.relationship-item {
  padding: 12px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.relationship-item strong,
.relationship-item span {
  display: block;
}

.relationship-item span {
  margin-top: 4px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.relay-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 16px;
}

.relay-runbook-list,
.handoff-list,
.review-list {
  align-self: start;
  padding: 16px;
}

.runbook-choice,
.handoff-choice,
.review-choice {
  width: 100%;
  display: block;
  padding: 14px;
  border: 0;
  border-left: 3px solid transparent;
  border-bottom: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  text-align: left;
}

.runbook-choice.active {
  border-left-color: var(--relay);
  background: rgba(245, 154, 35, .08);
}

.handoff-choice.active {
  border-left-color: var(--plug);
  background: rgba(32, 201, 151, .08);
}

.review-choice.active {
  border-left-color: var(--resolve);
  background: rgba(239, 91, 103, .08);
}

.runbook-choice strong,
.runbook-choice span,
.handoff-choice strong,
.handoff-choice span,
.review-choice strong,
.review-choice span {
  display: block;
}

.runbook-choice span,
.handoff-choice span,
.review-choice span {
  margin-top: 5px;
  color: var(--muted);
  font-size: .78rem;
  text-transform: uppercase;
}

.relay-summary {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--line);
  background: var(--surface);
}

.relay-summary div {
  min-height: 98px;
  padding: 16px;
  border-right: 1px solid var(--line);
}

.relay-summary div:last-child {
  border-right: 0;
}

.relay-summary span,
.relay-summary strong {
  display: block;
}

.relay-summary span {
  color: var(--muted);
  font-size: .72rem;
  text-transform: uppercase;
}

.relay-summary strong {
  margin-top: 18px;
  font-family: var(--display);
  font-size: 1.15rem;
}

.relay-progress {
  height: 8px;
  margin: 12px 0 18px;
  background: rgba(255, 255, 255, .07);
}

.relay-progress span {
  display: block;
  height: 100%;
  background: var(--relay);
}

.runbook-steps {
  display: grid;
  gap: 10px;
}

.runbook-step {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 17px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.runbook-step.complete {
  border-left: 4px solid var(--plug);
}

.runbook-step.blocked {
  opacity: .54;
}

.step-number {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 2px solid var(--relay);
  color: var(--relay);
  font-family: var(--display);
  font-size: 1.25rem;
  font-weight: 900;
}

.runbook-step h2 {
  margin: 0 0 6px;
  font-family: var(--display);
  font-size: 1.1rem;
  text-transform: uppercase;
}

.runbook-step p {
  margin: 0;
  color: var(--muted);
}

.step-actions {
  display: grid;
  justify-items: end;
  gap: 8px;
}

.step-status {
  color: var(--relay);
  font-size: .74rem;
  text-transform: uppercase;
}

.plug-layout {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  gap: 16px;
}

.compact-form {
  display: grid;
  gap: 12px;
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.compact-form h2 {
  margin: 0;
  font-family: var(--display);
  font-size: 1rem;
  text-transform: uppercase;
}

.compact-form label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: .8rem;
}

.handoff-detail {
  padding: 22px;
}

.handoff-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line);
}

.handoff-header h2 {
  margin: 0 0 8px;
  color: var(--plug);
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
}

.handoff-header p {
  margin: 0;
  color: var(--muted);
}

.handoff-route {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--plug);
  font-family: var(--display);
  font-weight: 800;
  text-transform: uppercase;
}

.handoff-status-flow {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 20px 0;
}

.handoff-status {
  min-height: 42px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  text-transform: uppercase;
}

.handoff-status.complete {
  border-color: var(--plug);
  background: rgba(32, 201, 151, .10);
  color: var(--plug);
}

.thread {
  padding-top: 10px;
}

.thread h3 {
  font-family: var(--display);
  text-transform: uppercase;
}

.message {
  margin: 12px 0;
  padding: 14px;
  border-left: 3px solid var(--plug);
  background: rgba(32, 201, 151, .055);
}

.message p {
  margin: 6px 0;
  color: #d3e8e2;
}

.message time {
  color: var(--muted);
  font-size: .75rem;
}

.message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 18px;
}

.resolve-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
}

.review-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--surface);
}

.review-header h2 {
  margin: 0 0 8px;
  color: var(--resolve);
  font-family: var(--display);
  font-size: 2rem;
  text-transform: uppercase;
}

.review-header p {
  margin: 0;
  color: var(--muted);
}

.resolve-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 16px;
}

.resolve-panel {
  margin-bottom: 16px;
  padding: 20px;
}

.resolve-panel h3 {
  margin: 0 0 18px;
  font-family: var(--display);
  text-transform: uppercase;
}

.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 5px;
  bottom: 5px;
  left: 6px;
  width: 2px;
  background: var(--resolve);
}

.timeline-item {
  position: relative;
  padding: 0 0 22px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  top: 4px;
  left: -23px;
  width: 12px;
  height: 12px;
  background: var(--resolve);
}

.timeline-item time {
  color: var(--muted);
  font-size: .72rem;
}

.timeline-item strong {
  display: block;
  margin-top: 5px;
  text-transform: capitalize;
}

.timeline-item p {
  margin: 5px 0 0;
  color: var(--muted);
}

.cause-tree {
  display: grid;
  gap: 10px;
}

.cause-root,
.cause-factor {
  padding: 14px;
  border: 1px solid var(--line);
}

.cause-root {
  border-color: var(--resolve);
  color: var(--resolve);
  font-weight: 700;
}

.cause-factor {
  margin-left: 22px;
  color: var(--muted);
}

.evidence-row {
  display: grid;
  grid-template-columns: 90px minmax(0, 1fr) auto;
  align-items: center;
  gap: 15px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.evidence-row p {
  margin: 5px 0 0;
  color: var(--muted);
}

.evidence-type {
  padding: 6px 8px;
  border: 1px solid var(--line);
  font-size: .72rem;
  text-align: center;
  text-transform: uppercase;
}

.evidence-type.fact {
  border-color: var(--plug);
  color: var(--plug);
}

.evidence-type.inference,
.evidence-type.estimate {
  border-color: var(--relay);
  color: var(--relay);
}

.evidence-type.disputed,
.evidence-type.unknown {
  border-color: var(--resolve);
  color: var(--resolve);
}

.evidence-form {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) auto;
  gap: 9px;
  margin-top: 18px;
}

.corrective-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 20px;
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}

.corrective-action p {
  margin: 5px 0 0;
  color: var(--muted);
}

.quiet {
  color: var(--muted);
}

@media (max-width: 900px) {
  .mesh-layout,
  .relay-layout,
  .plug-layout,
  .resolve-layout {
    grid-template-columns: 1fr;
  }

  .resolve-grid {
    grid-template-columns: 1fr;
  }

  .relay-summary {
    grid-template-columns: 1fr 1fr;
  }

  .handoff-status-flow {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .runbook-step {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .step-actions {
    grid-column: 2;
    justify-items: start;
  }

  .handoff-header,
  .review-header {
    grid-template-columns: 1fr;
  }

  .handoff-route {
    flex-wrap: wrap;
  }

  .message-form,
  .evidence-form {
    grid-template-columns: 1fr;
  }

  .evidence-row {
    grid-template-columns: 1fr;
  }

  .corrective-action {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   FINAL CONDUIT MARK AND WATER SURFACE
   ========================================================= */

:root {
  --conduit-gold: #fdb81e;
  --conduit-steel: #e8f0f4;
}

.conduit-mark {
  width: 58px;
  height: 44px;
  margin: 0 auto 24px;
}

.workspace-conduit-mark {
  width: 36px;
  height: 28px;
}

.command-heading strong {
  color: var(--conduit-gold);
}

.water-canvas {
  opacity: 1;
  filter: none;
  transform: translateZ(0);
}

body.workspace-mode .water-canvas {
  opacity: .18;
  filter:
    saturate(.8)
    brightness(.68);
}

body.launcher-mode .launcher {
  position: relative;
}

body.launcher-mode .identity,
body.launcher-mode .tool-list,
body.launcher-mode .shared-statement {
  position: relative;
  z-index: 2;
}

body.launcher-mode .identity {
  text-shadow:
    0 2px 22px rgba(0, 14, 22, .42);
}

body.launcher-mode .tool-row {
  background:
    linear-gradient(
      90deg,
      rgba(0, 20, 30, .14),
      rgba(0, 20, 30, .025)
    );
}

body.launcher-mode .tool-row:hover,
body.launcher-mode .tool-row:focus-visible {
  background:
    linear-gradient(
      90deg,
      rgba(var(--tool-rgb), .14),
      rgba(0, 20, 30, .10) 56%,
      rgba(0, 20, 30, .025)
    );
}

@media (max-width: 760px) {
  .conduit-mark {
    width: 50px;
    height: 38px;
  }

  .workspace-conduit-mark {
    width: 31px;
    height: 24px;
  }
}

.conduit-mark {
  width: 76px;
  height: 46px;
  margin: 0 auto 25px;
}

.workspace-conduit-mark {
  width: 48px;
  height: 29px;
}

body.launcher-mode .water-canvas {
  opacity: 1;
  filter:
    saturate(.94)
    contrast(1.03);
}

body.workspace-mode .water-canvas {
  opacity: .12;
  filter:
    saturate(.6)
    brightness(.62);
}

body.launcher-mode .identity {
  text-shadow:
    0 2px 18px rgba(0, 12, 19, .54);
}

body.launcher-mode .tool-row {
  background:
    linear-gradient(
      90deg,
      rgba(0, 21, 31, .25),
      rgba(0, 21, 31, .06)
    );
}

@media (max-width: 760px) {
  .conduit-mark {
    width: 65px;
    height: 40px;
  }

  .workspace-conduit-mark {
    width: 42px;
    height: 26px;
  }
}

/* =========================================================
   CLEAN LAUNCHER
   ========================================================= */

body.launcher-mode .launcher {
  padding-top: 12px;
}

body.launcher-mode .identity,
body.launcher-mode .conduit-mark {
  display: none !important;
}

body.launcher-mode .tool-list {
  margin-top: 0;
}

.tool-state {
  color: var(--stage-color, var(--muted));
  font-family: var(--display);
  font-size: .76rem;
  font-weight: 800;
  letter-spacing: .13em;
  opacity: .95;
  text-transform: uppercase;
}

.launcher-footer {
  padding: 28px 0 38px;
  border-top: 1px solid var(--line);
}

.launcher-footer p {
  max-width: 720px;
  margin: 0 auto;
  color: var(--muted);
  font-size: .95rem;
  line-height: 1.65;
  text-align: center;
}

body.launcher-mode .tool-row {
  background:
    linear-gradient(
      90deg,
      rgba(0, 22, 32, .20),
      rgba(0, 22, 32, .04)
    );
}

body.launcher-mode .tool-row:hover,
body.launcher-mode .tool-row:focus-visible {
  background:
    linear-gradient(
      90deg,
      rgba(var(--tool-rgb), .12),
      rgba(0, 22, 32, .10) 60%,
      rgba(0, 22, 32, .03)
    );
}

@media (max-width: 680px) {
  body.launcher-mode .launcher {
    padding-top: 20px;
  }

  .tool-state {
    font-size: .68rem;
    letter-spacing: .09em;
  }

  .launcher-footer {
    padding: 22px 18px 30px;
  }
}

/* =========================================================
   FINAL SINGLE-SCREEN LAUNCHER
   ========================================================= */

.skip-link {
  display: none !important;
}

body.launcher-mode {
  overflow-x: hidden;
}

body.launcher-mode .launcher {
  width: min(100%, 960px);
  margin: 0 auto;
  padding-top: 8px;
  padding-bottom: clamp(16px, 2.8vh, 30px);
}

body.launcher-mode .tool-list {
  display: grid;
  gap: 0;
}

body.launcher-mode .tool-row {
  min-height: 72px;
  padding-top: 8px;
  padding-bottom: clamp(16px, 2.2vh, 24px);
}

body.launcher-mode .launcher-footer {
  padding-top: 8px;
  padding-bottom: clamp(12px, 1.8vh, 22px);
}

body.launcher-mode .launcher-footer p {
  font-size: clamp(.84rem, 1.35vw, .96rem);
}

@media
  (min-width: 760px)
  and (min-height: 780px) {

  body.launcher-mode .launcher {
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  body.launcher-mode .tool-row {
    min-height: clamp(104px, 13vh, 122px);
  }
}

@media (max-height: 760px) and (min-width: 760px) {
  body.launcher-mode .launcher {
    padding-top: 12px;
    padding-bottom: 12px;
  }

  body.launcher-mode .tool-row {
    min-height: 96px;
    padding-top: 13px;
    padding-bottom: 13px;
  }

  body.launcher-mode .tool-name {
    font-size: 1.55rem;
  }

  body.launcher-mode .tool-description {
    margin-top: 4px;
    font-size: .91rem;
  }

  body.launcher-mode .launcher-footer {
    padding-top: 13px;
    padding-bottom: 10px;
  }
}

/* =========================================================
   WORKSPACE HEADER IDENTITY
   ========================================================= */

#homeButton {
  min-width: 72px;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  padding: 7px 12px;
  border: 0;
  background: transparent;
  color: inherit;
}

#homeButton:hover,
#homeButton:focus-visible {
  background: rgba(255, 255, 255, .045);
}

.workspace-conduit-logo {
  width: 58px;
  height: 34px;
  display: block;
  object-fit: contain;
}

#motionButton {
  display: none !important;
}

@media (max-width: 700px) {
  #homeButton {
    min-width: 58px;
    padding-inline: 8px;
  }

  .workspace-conduit-logo {
    width: 48px;
    height: 29px;
  }
}

/* =========================================================
   FINAL CONDUIT LOGO
   ========================================================= */

.workspace-conduit-logo {
  width: 46px;
  height: 46px;
  display: block;
  object-fit: contain;
  background: transparent;
}

#homeButton {
  width: 64px;
  min-width: 64px;
  height: 58px;
  min-height: 58px;
  padding: 6px 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  overflow: visible;
  background: transparent;
}

#homeButton:hover,
#homeButton:focus-visible {
  background: rgba(255,255,255,.045);
}

body.launcher-mode .conduit-mark,
body.launcher-mode .workspace-conduit-logo {
  display: none !important;
}

@media (max-width: 700px) {
  #homeButton {
    width: 56px;
    min-width: 56px;
    height: 52px;
    min-height: 52px;
  }

  .workspace-conduit-logo {
    width: 39px;
    height: 39px;
  }
}

/* =========================================================
   MOBILE LAUNCHER WATER
   ========================================================= */

@media (pointer: coarse), (max-width: 760px) {
  body.launcher-mode .water-canvas {
    opacity: 1;
    filter:
      saturate(1.08)
      contrast(1.12)
      brightness(1.08);
  }

  body.launcher-mode .tool-row {
    background:
      linear-gradient(
        90deg,
        rgba(0, 19, 29, .24),
        rgba(0, 19, 29, .08)
      );
  }

  body.launcher-mode .launcher {
    width: 100%;
    padding:
      12px
      14px
      18px;
  }

  body.launcher-mode .tool-row {
    min-height: 104px;
    padding:
      15px
      8px;
  }

  body.launcher-mode .tool-icon {
    width: 58px;
  }

  body.launcher-mode .tool-name {
    font-size: 1.45rem;
  }

  body.launcher-mode .tool-description {
    max-width: 100%;
    font-size: .88rem;
    line-height: 1.4;
  }

  body.launcher-mode .tool-state {
    font-size: .63rem;
    letter-spacing: .09em;
  }

  body.launcher-mode .launcher-footer {
    padding:
      16px
      8px
      8px;
  }
}

/* Approved launcher copy layout */
body.launcher-mode .tool-state {
  display: none !important;
}

body.launcher-mode .tool-row {
  grid-template-columns:
    minmax(58px, 82px)
    minmax(0, 1fr);
}

body.launcher-mode .tool-copy {
  max-width: none;
}

body.launcher-mode .tool-description {
  max-width: 760px;
}

@media (max-width: 700px) {
  body.launcher-mode .tool-row {
    grid-template-columns:
      56px
      minmax(0, 1fr);
  }
}

/* =========================================================
   MOBILE LAUNCHER PLACEMENT
   Stable against Safari's changing browser chrome
   ========================================================= */

@media (max-width: 760px), (pointer: coarse) {
  html {
    min-height: 100%;
    background: #001e2b;
  }

  body.launcher-mode {
    display: block !important;
    width: 100%;
    min-height: 100svh;
    height: auto;
    margin: 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
  }

  @supports (min-height: 100dvh) {
    body.launcher-mode {
      min-height: 100dvh;
    }
  }

  body.launcher-mode .app-shell,
  body.launcher-mode .launcher-shell,
  body.launcher-mode main {
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
  }

  body.launcher-mode .launcher {
    box-sizing: border-box;
    display: block;
    width: 100%;
    min-height: 0;
    height: auto;
    margin: 0 auto;
    padding:
      max(28px, env(safe-area-inset-top))
      18px
      calc(34px + env(safe-area-inset-bottom));
    transform: none !important;
    align-self: auto !important;
    justify-self: auto !important;
  }

  body.launcher-mode .tool-list {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
  }

  body.launcher-mode .tool-row {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 88px minmax(0, 1fr);
    align-items: center;
    width: 100%;
    min-height: 188px;
    margin: 0;
    padding: 24px 14px;
    border-left: 0 !important;
    transform: none !important;
  }

  body.launcher-mode .tool-row::before {
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 6px;
    background: transparent;
    pointer-events: none;
  }

  body.launcher-mode .tool-row:hover,
  body.launcher-mode .tool-row:focus,
  body.launcher-mode .tool-row:focus-visible,
  body.launcher-mode .tool-row[aria-current="true"],
  body.launcher-mode .tool-row.is-active,
  body.launcher-mode .tool-row.active {
    transform: none !important;
    margin-left: 0 !important;
  }

  body.launcher-mode .tool-row[aria-current="true"]::before,
  body.launcher-mode .tool-row.is-active::before,
  body.launcher-mode .tool-row.active::before {
    background: currentColor;
  }

  body.launcher-mode .tool-icon {
    width: 72px;
    min-width: 72px;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: flex-start;
  }

  body.launcher-mode .tool-icon svg {
    display: block;
    width: 66px;
    height: 66px;
  }

  body.launcher-mode .tool-copy {
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  body.launcher-mode .tool-name {
    margin: 0 0 12px;
    font-size: clamp(2rem, 9vw, 2.65rem);
    line-height: .95;
  }

  body.launcher-mode .tool-description {
    max-width: none;
    margin: 0;
    font-size: clamp(1.05rem, 4.75vw, 1.34rem);
    line-height: 1.42;
  }

  body.launcher-mode .launcher-footer {
    box-sizing: border-box;
    width: 100%;
    margin: 0;
    padding:
      30px
      18px
      calc(24px + env(safe-area-inset-bottom));
    text-align: center;
  }

  body.launcher-mode .launcher-footer p {
    max-width: 560px;
    margin: 0 auto;
    font-size: 1rem;
    line-height: 1.55;
  }

  body.launcher-mode .water-canvas {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
  }
}

/* Smaller phones */
@media (max-width: 390px) {
  body.launcher-mode .launcher {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.launcher-mode .tool-row {
    grid-template-columns: 76px minmax(0, 1fr);
    min-height: 174px;
    padding:
      21px
      10px;
  }

  body.launcher-mode .tool-icon {
    width: 62px;
    min-width: 62px;
  }

  body.launcher-mode .tool-icon svg {
    width: 57px;
    height: 57px;
  }

  body.launcher-mode .tool-name {
    font-size: 2rem;
  }

  body.launcher-mode .tool-description {
    font-size: 1.04rem;
  }
}

/* Landscape phones */
@media (
  max-height: 520px
) and (
  orientation: landscape
) {
  body.launcher-mode .launcher {
    padding-top: max(18px, env(safe-area-inset-top));
  }

  body.launcher-mode .tool-row {
    min-height: 108px;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  body.launcher-mode .tool-icon svg {
    width: 48px;
    height: 48px;
  }

  body.launcher-mode .tool-name {
    margin-bottom: 7px;
    font-size: 1.55rem;
  }

  body.launcher-mode .tool-description {
    font-size: .92rem;
  }
}

/* =========================================================
   ICON-ONLY LAUNCHER
   One shared structure for desktop and mobile
   ========================================================= */

body.launcher-mode .tool-name,
body.launcher-mode .tool-state {
  display: none !important;
}

body.launcher-mode .tool-list {
  width: 100%;
}

body.launcher-mode .tool-row {
  position: relative;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: center;
  width: 100%;
  min-height: 124px;
  margin: 0;
  padding: 22px 30px;
  border-left: 0 !important;
  transform: none !important;
}

body.launcher-mode .tool-row::before {
  content: "";
  position: absolute;
  top: 12px;
  bottom: 12px;
  left: 0;
  width: 4px;
  background: transparent;
  pointer-events: none;
}

body.launcher-mode .tool-row:hover::before,
body.launcher-mode .tool-row:focus-visible::before,
body.launcher-mode .tool-row[aria-current="true"]::before,
body.launcher-mode .tool-row.is-active::before,
body.launcher-mode .tool-row.active::before {
  background: currentColor;
}

body.launcher-mode .tool-row:hover,
body.launcher-mode .tool-row:focus,
body.launcher-mode .tool-row:focus-visible,
body.launcher-mode .tool-row[aria-current="true"],
body.launcher-mode .tool-row.is-active,
body.launcher-mode .tool-row.active {
  margin: 0 !important;
  transform: none !important;
}

body.launcher-mode .tool-icon {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 78px;
  height: 78px;
  margin: 0;
}

body.launcher-mode .tool-icon svg {
  display: block;
  width: 64px;
  height: 64px;
}

body.launcher-mode .tool-copy {
  display: flex;
  align-items: center;
  min-width: 0;
  margin: 0;
  padding: 0;
}

body.launcher-mode .tool-description {
  width: 100%;
  max-width: 820px;
  margin: 0;
  font-size: clamp(1rem, 1.55vw, 1.2rem);
  line-height: 1.5;
  font-weight: 600;
}

body.launcher-mode .launcher-footer {
  margin-top: 0;
  padding-top: 22px;
}

/* Mobile uses the same layout at a smaller scale */
@media (max-width: 760px), (pointer: coarse) {
  body.launcher-mode .launcher {
    width: 100%;
    margin: 0;
    padding:
      max(26px, env(safe-area-inset-top))
      18px
      calc(30px + env(safe-area-inset-bottom));
  }

  body.launcher-mode .tool-row {
    grid-template-columns: 108px minmax(0, 1fr);
    min-height: 168px;
    padding: 24px 18px;
  }

  body.launcher-mode .tool-row::before {
    top: 14px;
    bottom: 14px;
    width: 5px;
  }

  body.launcher-mode .tool-icon {
    width: 76px;
    height: 76px;
  }

  body.launcher-mode .tool-icon svg {
    width: 66px;
    height: 66px;
  }

  body.launcher-mode .tool-description {
    max-width: none;
    font-size: clamp(1.08rem, 4.8vw, 1.32rem);
    line-height: 1.44;
  }

  body.launcher-mode .launcher-footer {
    padding:
      26px
      22px
      calc(24px + env(safe-area-inset-bottom));
  }
}

@media (max-width: 390px) {
  body.launcher-mode .launcher {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.launcher-mode .tool-row {
    grid-template-columns: 88px minmax(0, 1fr);
    min-height: 156px;
    padding: 20px 12px;
  }

  body.launcher-mode .tool-icon {
    width: 66px;
    height: 66px;
  }

  body.launcher-mode .tool-icon svg {
    width: 58px;
    height: 58px;
  }

  body.launcher-mode .tool-description {
    font-size: 1.04rem;
  }
}

@media (
  max-height: 520px
) and (
  orientation: landscape
) {
  body.launcher-mode .tool-row {
    grid-template-columns: 82px minmax(0, 1fr);
    min-height: 104px;
    padding: 14px 18px;
  }

  body.launcher-mode .tool-icon,
  body.launcher-mode .tool-icon svg {
    width: 50px;
    height: 50px;
  }

  body.launcher-mode .tool-description {
    font-size: .92rem;
    line-height: 1.38;
  }
}

/* =========================================================
   MOBILE WATER PARITY
   Match desktop background visibility and depth
   ========================================================= */

@media (max-width: 760px), (pointer: coarse) {
  body.launcher-mode {
    background:
      radial-gradient(
        circle at 50% 20%,
        rgba(0, 101, 130, .16),
        transparent 44%
      ),
      linear-gradient(
        180deg,
        #002532 0%,
        #001a24 52%,
        #00131d 100%
      );
  }

  body.launcher-mode .water-canvas {
    display: block !important;
    position: fixed !important;
    inset: 0 !important;
    z-index: 0 !important;
    width: 100vw !important;
    height: 100dvh !important;
    min-height: 100svh !important;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: none !important;
    filter:
      contrast(1.2)
      brightness(1.16)
      saturate(1.12);
  }

  body.launcher-mode .launcher,
  body.launcher-mode .launcher-shell,
  body.launcher-mode .app-shell,
  body.launcher-mode main {
    position: relative;
    z-index: 1;
    background: transparent !important;
  }

  body.launcher-mode .tool-row {
    background:
      linear-gradient(
        90deg,
        rgba(0, 27, 38, .18),
        rgba(0, 27, 38, .04)
      ) !important;
  }
}

/* =========================================================
   CLEAN LAUNCHER INTERACTION
   Remove stuck active rail and visible mobile scrollbars
   ========================================================= */

body.launcher-mode .tool-row::before {
  display: none !important;
  content: none !important;
}

body.launcher-mode .tool-row,
body.launcher-mode .tool-row:hover,
body.launcher-mode .tool-row:focus,
body.launcher-mode .tool-row:focus-visible,
body.launcher-mode .tool-row[aria-current="true"],
body.launcher-mode .tool-row.is-active,
body.launcher-mode .tool-row.active {
  border-left: 0 !important;
  box-shadow: none !important;
  margin-left: 0 !important;
  transform: none !important;
}

/* Prevent touch hover from remaining visually selected */
@media (hover: none), (pointer: coarse) {
  body.launcher-mode .tool-row:hover,
  body.launcher-mode .tool-row:active,
  body.launcher-mode .tool-row:focus {
    background: transparent !important;
    border-left: 0 !important;
    box-shadow: none !important;
  }
}

/* Keep scrolling functional while hiding the indicator */
html,
body,
body.launcher-mode,
body.launcher-mode .launcher {
  scrollbar-width: none;
  -ms-overflow-style: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar,
body.launcher-mode::-webkit-scrollbar,
body.launcher-mode .launcher::-webkit-scrollbar {
  width: 0;
  height: 0;
  display: none;
}

/* =========================================================
   OFFICIAL CONDUIT BRAND MARK
   ========================================================= */

.workspace-conduit-logo {
  display: block;
  width: 48px;
  height: 48px;
  object-fit: contain;
  background: transparent;
  filter: none;
}

#homeButton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  min-width: 66px;
  height: 60px;
  padding: 6px;
  overflow: visible;
  background: transparent;
}

#homeButton:hover,
#homeButton:focus-visible {
  background: rgba(255, 255, 255, .045);
}

/* Keep the launcher visually logo-free. */
body.launcher-mode #homeButton,
body.launcher-mode .workspace-conduit-logo {
  display: none !important;
}

@media (max-width: 760px) {
  #homeButton {
    width: 58px;
    min-width: 58px;
    height: 54px;
  }

  .workspace-conduit-logo {
    width: 42px;
    height: 42px;
  }
}

/* =========================================================
   FINAL WORKSPACE TOPBAR
   CONDUIT + SIGNAL + MESH + RELAY + PLUG + RESOLVE
   ========================================================= */

body:not(.launcher-mode) .workspace-topbar {
  box-sizing: border-box;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 2.7vw, 34px);
  width: 100% !important;
  min-height: 66px;
  margin: 0 !important;
  padding: 0 18px !important;
}

body:not(.launcher-mode) .conduit-home {
  flex: 0 0 auto;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: auto !important;
  min-width: 0 !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #fdb81e !important;
  font: inherit;
  font-weight: 800;
  letter-spacing: .06em;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}

body:not(.launcher-mode) .conduit-home:hover,
body:not(.launcher-mode) .conduit-home:focus-visible {
  color: #ffd667 !important;
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body:not(.launcher-mode) .module-navigation {
  flex: 0 0 auto;
  display: flex !important;
  flex-flow: row nowrap !important;
  align-items: center !important;
  justify-content: center !important;
  gap: clamp(18px, 2.7vw, 34px);
  width: auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
}

body:not(.launcher-mode) .module-navigation > * {
  flex: 0 0 auto;
  margin: 0 !important;
  white-space: nowrap;
}

body:not(.launcher-mode) .workspace-topbar::before,
body:not(.launcher-mode) .workspace-topbar::after,
body:not(.launcher-mode) .module-navigation::before,
body:not(.launcher-mode) .module-navigation::after {
  display: none !important;
  content: none !important;
}

@media (max-width: 760px) {
  body:not(.launcher-mode) .workspace-topbar {
    justify-content: flex-start !important;
    gap: 20px;
    min-height: 58px;
    padding: 0 14px !important;
    overflow-x: auto;
    overflow-y: hidden;
    scrollbar-width: none;
  }

  body:not(.launcher-mode) .workspace-topbar::-webkit-scrollbar {
    display: none;
  }

  body:not(.launcher-mode) .module-navigation {
    gap: 20px;
  }
}


/* =========================================================
   CONDUIT HOME ICON
   ========================================================= */

body:not(.launcher-mode) .conduit-home {
  flex: 0 0 38px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 38px !important;
  height: 38px !important;
  min-width: 38px !important;
  padding: 0 !important;
  overflow: visible;
}

body:not(.launcher-mode) .conduit-home-icon {
  display: block;
  width: 32px;
  height: 32px;
  object-fit: contain;
  border-radius: 50%;
  filter:
    drop-shadow(0 0 4px rgba(253, 184, 30, .24));
}

body:not(.launcher-mode) .conduit-home:hover
.conduit-home-icon,
body:not(.launcher-mode) .conduit-home:focus-visible
.conduit-home-icon {
  transform: scale(1.06);
}

@media (max-width: 760px) {
  body:not(.launcher-mode) .conduit-home {
    flex-basis: 34px;
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
  }

  body:not(.launcher-mode) .conduit-home-icon {
    width: 30px;
    height: 30px;
  }
}

/* =========================================================
   FINAL TRANSPARENT CONDUIT HOME MARK
   ========================================================= */

body:not(.launcher-mode) .conduit-home {
  flex: 0 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 28px !important;
  min-width: 28px !important;
  height: 28px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  color: transparent !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body:not(.launcher-mode) .conduit-home::before,
body:not(.launcher-mode) .conduit-home::after {
  display: none !important;
  content: none !important;
}

body:not(.launcher-mode) .conduit-home-icon {
  display: block !important;
  width: 26px !important;
  height: 26px !important;
  max-width: none !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter:
    drop-shadow(0 0 2px rgba(253, 184, 30, .28)) !important;
  transform: none !important;
}

body:not(.launcher-mode) .conduit-home:hover,
body:not(.launcher-mode) .conduit-home:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body:not(.launcher-mode) .conduit-home:hover
.conduit-home-icon,
body:not(.launcher-mode) .conduit-home:focus-visible
.conduit-home-icon {
  transform: scale(1.05) !important;
}

/*
  Keep the logo and five labels optically centered as one row.
  The logo's visual height matches the navigation text.
*/

body:not(.launcher-mode) .workspace-topbar {
  gap: clamp(22px, 3vw, 38px) !important;
}

body:not(.launcher-mode) .module-navigation {
  gap: clamp(22px, 3vw, 38px) !important;
}

@media (max-width: 760px) {
  body:not(.launcher-mode) .conduit-home {
    flex-basis: 26px !important;
    width: 26px !important;
    min-width: 26px !important;
    height: 26px !important;
  }

  body:not(.launcher-mode) .conduit-home-icon {
    width: 24px !important;
    height: 24px !important;
  }

  body:not(.launcher-mode) .workspace-topbar,
  body:not(.launcher-mode) .module-navigation {
    gap: 22px !important;
  }
}

/* =========================================================
   CORRECTLY CROPPED CONDUIT NAVIGATION MARK
   ========================================================= */

body:not(.launcher-mode) .conduit-home {
  flex: 0 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body:not(.launcher-mode) .conduit-home-icon {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: none !important;
  object-fit: contain !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  opacity: 1 !important;
}

body:not(.launcher-mode) .conduit-home::before,
body:not(.launcher-mode) .conduit-home::after {
  display: none !important;
  content: none !important;
}

body:not(.launcher-mode) .workspace-topbar {
  gap: clamp(24px, 3vw, 38px) !important;
}

body:not(.launcher-mode) .module-navigation {
  gap: clamp(24px, 3vw, 38px) !important;
}

@media (max-width: 760px) {
  body:not(.launcher-mode) .conduit-home {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  body:not(.launcher-mode) .conduit-home-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
  }
}

/* =========================================================
   EXACT CONDUIT-LOGO.PNG HEADER MARK
   ========================================================= */

body:not(.launcher-mode) .conduit-home {
  flex: 0 0 32px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 32px !important;
  min-width: 32px !important;
  height: 32px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
  font-size: 0 !important;
  line-height: 0 !important;
}

body:not(.launcher-mode) .conduit-home::before,
body:not(.launcher-mode) .conduit-home::after {
  display: none !important;
  content: none !important;
}

body:not(.launcher-mode) .conduit-home-icon {
  display: block !important;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  max-width: 30px !important;
  object-fit: contain !important;
  object-position: center !important;
  opacity: 1 !important;
  visibility: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  filter: none !important;
  transform: none !important;
}

body:not(.launcher-mode) .conduit-home:hover,
body:not(.launcher-mode) .conduit-home:focus-visible {
  background: transparent !important;
  box-shadow: none !important;
  transform: none !important;
}

body:not(.launcher-mode) .workspace-topbar {
  gap: clamp(24px, 3vw, 38px) !important;
}

body:not(.launcher-mode) .module-navigation {
  gap: clamp(24px, 3vw, 38px) !important;
}

@media (max-width: 760px) {
  body:not(.launcher-mode) .conduit-home {
    flex-basis: 30px !important;
    width: 30px !important;
    min-width: 30px !important;
    height: 30px !important;
  }

  body:not(.launcher-mode) .conduit-home-icon {
    width: 28px !important;
    height: 28px !important;
    min-width: 28px !important;
    max-width: 28px !important;
  }
}

/* =========================================================
   SOURCE: assets/css/base.css
   ========================================================= */

:root {
  --conduit-bg: #001e2b;
  --conduit-panel: rgba(5, 39, 52, .92);
  --conduit-line: rgba(255, 255, 255, .12);
  --conduit-text: #f3f7f9;
  --conduit-muted: #9cafba;
  --conduit-gold: #fdb81e;
  --conduit-focus: #8edcff;

  --signal: #00aeef;
  --mesh: #9b6cff;
  --relay: #f59a23;
  --plug: #20c997;
  --resolve: #ff6f61;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

button,
input,
select,
textarea {
  font: inherit;
}

:focus-visible {
  outline: 2px solid var(--conduit-focus);
  outline-offset: 3px;
}

[hidden] {
  display: none !important;
}

.field-error {
  margin: .4rem 0 0;
  color: #ff9f95;
  font-size: .84rem;
}

[aria-invalid="true"] {
  border-color: #ff756d !important;
}

/* =========================================================
   SOURCE: assets/css/shell.css
   ========================================================= */

.workspace-topbar {
  isolation: isolate;
}

.module-navigation {
  min-width: 0;
}

.module-navigation-button[aria-current="page"] {
  color: var(--module-color, currentColor);
}

.modal-backdrop[hidden] {
  display: none !important;
}

/* =========================================================
   SOURCE: assets/css/launcher.css
   ========================================================= */

/*
  Launcher controlled by production bundle
  until the launcher extraction pass.
*/

/* =========================================================
   SOURCE: assets/css/responsive.css
   ========================================================= */

@media (max-width: 760px) {
  .module-navigation {
    overscroll-behavior-inline: contain;
    scroll-snap-type: x proximity;
  }

  .module-navigation > * {
    scroll-snap-align: center;
  }
}

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

@media (max-width: 430px) {
  body:not(.launcher-mode) .workspace-topbar {
    gap: 8px !important;
    padding: 0 8px !important;
    overflow-x: hidden;
  }

  body:not(.launcher-mode) .conduit-home {
    flex: 0 0 24px !important;
    width: 24px !important;
    min-width: 24px !important;
    height: 24px !important;
  }

  body:not(.launcher-mode) .conduit-home-icon {
    width: 22px !important;
    height: 22px !important;
    min-width: 22px !important;
    max-width: 22px !important;
  }

  body:not(.launcher-mode) .module-navigation {
    flex: 1 1 auto !important;
    justify-content: stretch !important;
    gap: 0 !important;
    width: auto !important;
    overflow: visible;
  }

  body:not(.launcher-mode) .module-navigation > * {
    flex: 1 1 20% !important;
    min-width: 0;
  }

  body:not(.launcher-mode) .module-navigation button {
    padding: 0 3px;
    font-size: .66rem;
    letter-spacing: .02em;
  }
}
