:root {
  --nova-bg: #06070b;
  --nova-bg-2: #05070d;
  --nova-surface: rgba(22, 31, 50, 0.84);
  --nova-surface-2: rgba(9, 14, 24, 0.88);
  --nova-border: rgba(255, 154, 85, 0.22);
  --nova-text: #ffd5af;
  --nova-muted: #d6bc9b;
  --nova-glow: rgba(255, 149, 72, 0.42);
  --nova-shadow: 0 18px 54px rgba(2, 3, 6, 0.72);
  --nova-radius: 22px;
  --nova-panel-blur: blur(18px) saturate(165%);
  --nova-detail-font: Arial, Helvetica, sans-serif;
  --lcars-purple: #6e61ff;
  --lcars-violet: #9a7aff;
  --lcars-orange: #ff9d4e;
  --lcars-amber: #ffc05a;
  --lcars-red: #ff6f79;
  --lcars-blue: #56b6ff;
  --lcars-badge: #f7ab4a;
}

@keyframes novaDrift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(0, -10px, 0) scale(1.015); }
  100% { transform: translate3d(0, 0, 0) scale(1); }
}

@keyframes novaPulse {
  0%, 100% { opacity: 0.65; box-shadow: 0 0 0 6px rgba(255, 157, 78, 0.08); }
  50% { opacity: 1; box-shadow: 0 0 0 10px rgba(255, 157, 78, 0.12); }
}

@keyframes novaSweep {
  0% { transform: translateX(-120%); opacity: 0; }
  18% { opacity: 0.28; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes novaRing {
  0% { transform: scale(0.985); opacity: 0.42; }
  50% { transform: scale(1.01); opacity: 0.8; }
  100% { transform: scale(0.985); opacity: 0.42; }
}

@keyframes novaGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.08); }
}

body {
  background:
    linear-gradient(150deg, #070d1a 0%, var(--nova-bg) 40%, #070a13 100%),
    radial-gradient(circle at top right, rgba(255, 154, 85, 0.17), transparent 42%),
    radial-gradient(circle at 12% 88%, rgba(90, 143, 255, 0.16), transparent 40%);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.028) 1px, transparent 1px);
  background-size: 24px 24px;
}

body > openclaw-app {
  position: relative;
  z-index: 1;
}

#nova-control-shell {
  position: relative;
  z-index: 2;
  color: var(--nova-text);
  font-family: "Arial Narrow", "Inter", ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

#nova-control-shell h1,
#nova-control-shell h2,
#nova-control-shell h3,
#nova-control-shell .nova-overline,
#nova-control-shell .nova-rail-index,
#nova-control-shell .nova-index {
  letter-spacing: 0.06em;
  font-weight: 700;
}

#nova-control-shell p,
#nova-control-shell li,
#nova-control-shell small,
#nova-control-shell textarea,
#nova-control-shell .nova-subtitle,
#nova-control-shell .nova-metric,
#nova-control-shell .nova-stat,
#nova-control-shell .nova-pulse-card,
#nova-control-shell .nova-task-meta,
#nova-control-shell .nova-bridge-event,
#nova-control-shell .nova-gateway-status {
  font-family: var(--nova-detail-font);
  letter-spacing: 0;
}

#nova-control-shell * {
  box-sizing: border-box;
}

#nova-control-shell ::selection {
  background: rgba(255, 157, 78, 0.28);
  color: #23110f;
}

.nova-shell-backdrop {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 157, 78, 0.18) 0, rgba(255, 157, 78, 0.18) 7px, transparent 7px, transparent 78%),
    linear-gradient(180deg, rgba(126, 145, 255, 0.12) 0, rgba(126, 145, 255, 0.12) 8px, transparent 8px, transparent 92%),
    radial-gradient(circle at 78% 62%, rgba(255, 111, 123, 0.12), transparent 32%),
    radial-gradient(circle at 18% 18%, rgba(124, 77, 255, 0.14), transparent 28%);
  animation: novaDrift 24s ease-in-out infinite;
}

.nova-shell-main {
  position: relative;
  max-width: 1560px;
  margin: 0 auto;
  padding: 24px 18px 34px;
}

.nova-shell-main::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(90, 140, 255, 0) 0%, rgba(90, 140, 255, 0.17) 2px, rgba(90, 140, 255, 0) 4px, rgba(90, 140, 255, 0) 24px),
    linear-gradient(180deg, rgba(255, 157, 78, 0) 0, rgba(255, 157, 78, 0.16) 1px, rgba(255, 157, 78, 0) 2px);
  mask-image: linear-gradient(180deg, transparent 0, transparent 18px, black 44%, black 56%, transparent 80%, transparent 100%);
  opacity: 0.16;
}

.nova-topbar,
.nova-panel,
.nova-console-shell,
.nova-hero,
.nova-help-card {
  position: relative;
  backdrop-filter: var(--nova-panel-blur);
  -webkit-backdrop-filter: var(--nova-panel-blur);
  background: linear-gradient(180deg, rgba(23, 32, 53, 0.96), rgba(9, 11, 20, 0.9));
  border: 1px solid rgba(255, 179, 112, 0.16);
  box-shadow: var(--nova-shadow);
  clip-path: inset(0 round 0 32px 0 0);
}

.nova-topbar::after,
.nova-panel::after,
.nova-console-shell::after,
.nova-hero::after,
.nova-help-card::after,
.nova-console-shell.console-hidden .nova-console-frame::after {
  content: "";
  position: absolute;
  left: 20px;
  right: 20px;
  bottom: 7px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 179, 112, 0.38), transparent);
  opacity: 0.55;
  border-radius: 999px;
}

.nova-topbar::before,
.nova-panel::before,
.nova-console-shell::before,
.nova-hero::before,
.nova-help-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  border-radius: inherit;
  background: linear-gradient(180deg, var(--lcars-purple), var(--lcars-orange));
  opacity: 0.95;
}

.nova-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 22px 18px 28px;
  border-radius: 24px 52px 24px 52px;
  margin-bottom: 18px;
  position: sticky;
  top: 10px;
  z-index: 20;
}

.nova-brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.nova-brand-mark {
  width: 58px;
  height: 58px;
  border-radius: 12px 28px 12px 28px;
  display: grid;
  place-items: center;
  font-size: 24px;
  color: #241321;
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
  border: 1px solid rgba(255, 207, 147, 0.3);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 0 28px rgba(255, 157, 78, 0.2);
  animation: novaGlow 4.6s ease-in-out infinite;
}

.nova-brand h1,
.nova-panel h2,
.nova-panel h3,
.nova-console-shell h2,
.nova-tile h3,
.nova-help-card h3 {
  margin: 0;
}

.nova-overline {
  color: #ffb677;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 800;
}

.nova-brand p,
.nova-panel p,
.nova-help-card p,
.nova-tile p,
.nova-console-shell p {
  margin: 0;
  color: var(--nova-muted);
}

.nova-topbar-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.nova-topbar-status {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: flex-end;
  min-width: 220px;
}

.nova-topbar-clock {
  font-size: clamp(20px, 2.2vw, 30px);
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #ffd4af;
}

.nova-topbar-clock::after {
  content: "";
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-left: 8px;
  border-radius: 999px;
  vertical-align: 4px;
  background: radial-gradient(circle at 35% 35%, #ffe1af, #ff8f2d);
  box-shadow: 0 0 0 3px rgba(255, 142, 42, 0.17);
}

.nova-topbar-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nova-chip,
.nova-action {
  border: 0;
  background: linear-gradient(90deg, #6d61ff 0, #a37bff 100%);
  color: #190f24;
  border-radius: 0 999px 999px 0;
  padding: 10px 16px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.22), 0 10px 20px rgba(10, 8, 22, 0.18);
  position: relative;
  border: 1px solid rgba(0, 0, 0, 0.2);
}

.nova-chip::after,
.nova-action::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 9px;
  background: rgba(20, 18, 31, 0.18);
  pointer-events: none;
}

button.nova-action {
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

button.nova-action:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(255, 157, 78, 0.18);
  filter: brightness(1.06);
}

.nova-action.primary {
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
}

.nova-action.primary::after {
  background: rgba(54, 36, 9, 0.26);
}

.nova-action:focus-visible,
.nova-bridge-item:focus-visible,
.nova-rail-item:focus-visible,
.nova-nav-button:focus-visible,
.nova-tile:focus-visible {
  outline: 2px solid rgba(255, 215, 173, 0.95);
  outline-offset: 2px;
}

.nova-chip-live {
  background: linear-gradient(135deg, rgba(79, 209, 136, 0.92), rgba(126, 231, 135, 0.88));
}

.nova-chip-building {
  background: linear-gradient(135deg, rgba(124, 77, 255, 0.95), rgba(87, 145, 255, 0.84));
}

.nova-chip-warning {
  background: linear-gradient(135deg, rgba(255, 157, 78, 0.96), rgba(255, 205, 112, 0.9));
}

.nova-hero {
  padding: 22px 22px 22px 30px;
  border-radius: 28px 54px 28px 54px;
  margin-bottom: 20px;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.95fr);
  gap: 18px;
  overflow: hidden;
}

.nova-hero-copy h2 {
  font-size: clamp(28px, 3vw, 44px);
  line-height: 1.04;
  margin-bottom: 10px;
}

.nova-hero-masthead {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.nova-hero-callout,
.nova-hero-registry {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 14px;
  border-radius: 0 999px 999px 0;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.nova-hero-callout {
  color: #241321;
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
}

.nova-hero-callout::before,
.nova-hero-registry::before {
  content: "";
  width: 12px;
  height: 100%;
  margin-right: 8px;
  background: rgba(24, 17, 30, 0.28);
}

.nova-hero-registry {
  color: #1b1222;
  background: linear-gradient(135deg, #d8b8ff, #9d8dff);
}

.nova-hero-copy .nova-subtitle {
  max-width: 76ch;
  font-size: 15px;
  line-height: 1.5;
}

.nova-stat-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}

.nova-stat {
  padding: 14px;
  border-radius: 0 28px 0 28px;
  background: linear-gradient(180deg, rgba(255, 157, 78, 0.16), rgba(76, 44, 112, 0.24));
  border: 1px solid rgba(255, 179, 112, 0.18);
  position: relative;
  overflow: hidden;
}

.nova-stat::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(255, 157, 78, 0.64), rgba(125, 103, 255, 0.42));
}

.nova-stat .value {
  font-size: 22px;
  font-weight: 800;
  margin-bottom: 4px;
}

.nova-hero-focus {
  border-radius: 22px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(6, 11, 22, 0.92), rgba(11, 22, 39, 0.72));
  border: 1px solid rgba(125, 211, 252, 0.12);
}

.nova-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.nova-hero-focus ul,
.nova-help-card ul,
.nova-section-bullets {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--nova-muted);
}

.nova-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) 370px;
  gap: 20px;
}

.nova-main-column {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.nova-panel {
  border-radius: 0 46px 0 46px;
  padding: 20px 20px 20px 28px;
}

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

.nova-bridge-panel {
  overflow: hidden;
}

.nova-bridge-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 280px;
  gap: 16px;
  align-items: stretch;
}

.nova-bridge-alert {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, 0.9fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
  padding: 14px 16px;
  border-radius: 18px 32px 18px 32px;
  border: 1px solid rgba(255, 179, 112, 0.14);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(19, 13, 32, 0.78));
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  overflow: hidden;
}

.nova-bridge-alert::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.12), transparent);
  transform: translateX(-120%);
  animation: novaSweep 8.5s linear infinite;
  pointer-events: none;
}

.nova-bridge-alert strong {
  display: block;
  margin-bottom: 6px;
}

.nova-bridge-alert.tone-live {
  border-color: rgba(108, 224, 166, 0.28);
  background: linear-gradient(180deg, rgba(108, 224, 166, 0.08), rgba(19, 13, 32, 0.82));
}

.nova-bridge-alert.tone-warning {
  border-color: rgba(255, 179, 112, 0.28);
  background: linear-gradient(180deg, rgba(255, 157, 78, 0.08), rgba(19, 13, 32, 0.82));
}

.nova-bridge-shortcuts {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.nova-bridge-side {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nova-bridge-stack {
  display: grid;
  gap: 10px;
}

.nova-bridge-pulse {
  display: grid;
  gap: 10px;
}

.nova-pulse-card {
  border-radius: 16px 28px 16px 28px;
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(32, 18, 41, 0.96), rgba(15, 11, 24, 0.92));
  padding: 12px 14px;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.nova-pulse-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 112, 0.26);
  box-shadow: 0 14px 26px rgba(9, 8, 19, 0.22);
}

.nova-pulse-card strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  line-height: 1.2;
}

.nova-pulse-card small {
  display: block;
  margin-top: 6px;
  color: var(--nova-muted);
  font-size: 11px;
  line-height: 1.35;
}

.nova-pulse-label {
  display: inline-block;
  color: #ffb677;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.nova-bridge-core {
  position: relative;
  min-height: 280px;
  border-radius: 22px 38px 22px 38px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(24, 17, 34, 0.92), rgba(11, 10, 20, 0.96));
}

.nova-bridge-core::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top center, rgba(255,255,255,0.06), transparent 48%);
  pointer-events: none;
}

.nova-bridge-core::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.05), transparent);
  transform: translateY(-120%);
  animation: novaSweep 9s linear infinite;
  pointer-events: none;
}

.nova-lcars-schematic {
  position: relative;
  min-height: 160px;
  margin-bottom: 18px;
  border-radius: 18px 34px 18px 34px;
  background:
    radial-gradient(circle at center, rgba(173, 110, 255, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 157, 78, 0.08), rgba(124, 77, 255, 0.06));
  border: 1px solid rgba(255, 179, 112, 0.1);
  overflow: hidden;
}

.nova-lcars-schematic::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent, rgba(255, 184, 123, 0.12), transparent);
  transform: translateY(-120%);
  animation: novaSweep 7s linear infinite;
  pointer-events: none;
}

.nova-lcars-ring {
  position: absolute;
  border: 2px solid rgba(255, 179, 112, 0.22);
  border-radius: 999px;
  animation: novaRing 6.5s ease-in-out infinite;
}

.nova-lcars-ring.ring-a {
  inset: 18px 22% 18px 22%;
}

.nova-lcars-ring.ring-b {
  inset: 34px 30% 34px 30%;
  border-color: rgba(173, 110, 255, 0.26);
  animation-delay: 1.1s;
}

.nova-lcars-ring.ring-c {
  inset: 54px 38% 54px 38%;
  border-color: rgba(119, 169, 255, 0.24);
  animation-delay: 2.2s;
}

.nova-lcars-node {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
  box-shadow: 0 0 0 6px rgba(255, 157, 78, 0.08);
  animation: novaPulse 3.8s ease-in-out infinite;
}

.nova-lcars-node.node-a { top: 24px; left: 22%; }
.nova-lcars-node.node-b { top: 44%; right: 24%; animation-delay: 1s; }
.nova-lcars-node.node-c { bottom: 24px; left: 46%; animation-delay: 2s; }

.nova-lcars-label {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 10px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--lcars-purple), var(--lcars-violet));
  color: #180f22;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.nova-bridge-readout h3 {
  margin: 6px 0 8px;
}

.nova-bridge-brief {
  margin-top: 16px;
  padding: 14px 16px;
  border-radius: 18px 30px 18px 30px;
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(255,255,255,0.05), rgba(17, 12, 28, 0.84));
}

.nova-bridge-brief h4 {
  margin: 8px 0 8px;
  font-size: 18px;
  line-height: 1.2;
}

.nova-bridge-events-shell {
  margin-top: 18px;
  border-top: 1px solid rgba(255, 179, 112, 0.12);
  padding-top: 16px;
}

.nova-bridge-events {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nova-bridge-event {
  border-radius: 16px 28px 16px 28px;
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(31, 18, 40, 0.96), rgba(15, 11, 24, 0.92));
  padding: 14px;
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.nova-bridge-event:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 179, 112, 0.22);
}

.nova-bridge-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.nova-bridge-event p {
  margin-top: 10px;
}

.nova-bridge-event small {
  display: block;
  margin-top: 10px;
  color: var(--nova-muted);
  font-size: 11px;
}

.nova-bridge-list,
.nova-rail-list {
  display: grid;
  gap: 10px;
}

.nova-bridge-item,
.nova-rail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(38, 19, 48, 0.96), rgba(18, 12, 27, 0.9));
  color: var(--nova-text);
  border-radius: 0 28px 0 28px;
  padding: 12px 14px;
  cursor: pointer;
  text-align: left;
  position: relative;
  isolation: isolate;
}

.nova-bridge-item::before,
.nova-rail-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 10px;
  background: linear-gradient(180deg, rgba(255, 158, 74, 0.55), rgba(125, 110, 255, 0.46));
  opacity: 0.82;
}

.nova-bridge-item:hover,
.nova-rail-item:hover,
.nova-rail-item.active {
  border-color: rgba(255, 179, 112, 0.4);
  box-shadow: 0 12px 24px rgba(255, 157, 78, 0.1);
}

.nova-rail-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 10px;
  border-radius: 0 999px 999px 0;
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
  color: #241321;
  font-size: 11px;
  font-weight: 900;
}

.nova-rail-copy {
  display: flex;
  flex-direction: column;
  gap: 3px;
  flex: 1;
}

.nova-rail-copy small {
  color: var(--nova-muted);
  font-size: 11px;
  line-height: 1.35;
}

.nova-rail-utility {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 179, 112, 0.12);
}

.nova-rail-utility p strong {
  color: var(--nova-text);
}

.nova-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.nova-section-header-compact {
  margin-bottom: 12px;
}

.nova-section-header p {
  max-width: 72ch;
  line-height: 1.45;
}

.nova-section-header h2 {
  letter-spacing: 0.04em;
}

.nova-nav-grid,
.nova-tile-grid,
.nova-connector-grid,
.nova-roadmap-grid {
  display: grid;
  gap: 14px;
}

.nova-nav-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nova-tile-grid,
.nova-connector-grid,
.nova-roadmap-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.nova-nav-button,
.nova-tile {
  border: 1px solid rgba(255, 179, 112, 0.12);
  background: linear-gradient(180deg, rgba(38, 19, 48, 0.96), rgba(18, 12, 27, 0.9));
  color: var(--nova-text);
  border-radius: 0 34px 34px 0;
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.nova-nav-button::after,
.nova-tile::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 12px;
  background: linear-gradient(180deg, rgba(255, 158, 74, 0.55), rgba(125, 110, 255, 0.4));
}

button.nova-nav-button,
button.nova-tile {
  cursor: pointer;
}

.nova-nav-button::before,
.nova-tile::before {
  content: "";
  position: absolute;
  inset: -1px;
  background:
    radial-gradient(circle at top right, rgba(255, 179, 112, 0.16), transparent 34%),
    linear-gradient(90deg, rgba(124, 77, 255, 0.26), transparent 18%);
  pointer-events: none;
}

.nova-nav-button.active,
.nova-tile.active,
.nova-tile:hover,
.nova-nav-button:hover {
  border-color: rgba(255, 179, 112, 0.42);
  box-shadow: 0 14px 34px rgba(255, 157, 78, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.nova-nav-button {
  text-align: left;
  min-height: 122px;
}

.nova-nav-button .index,
.nova-tile .index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 28px;
  padding: 0 12px;
  border-radius: 0 999px 999px 0;
  font-size: 11px;
  font-weight: 900;
  margin-bottom: 12px;
  color: #241321;
  background: linear-gradient(135deg, var(--lcars-orange), var(--lcars-amber));
  border: 0;
}

.nova-tile .kicker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #f2b381;
  margin-bottom: 10px;
}

.nova-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 0 999px 999px 0;
  padding: 5px 10px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  border: 1px solid rgba(0, 0, 0, 0.24);
}

.status-live { background: rgba(108, 224, 166, 0.18); color: #bffad6; }
.status-building { background: rgba(119, 169, 255, 0.2); color: #d6e6ff; }
.status-warning { background: rgba(255, 157, 78, 0.2); color: #ffe1b9; }
.status-planning { background: rgba(173, 110, 255, 0.2); color: #eddcff; }

.status-live::before,
.status-building::before,
.status-warning::before,
.status-planning::before {
  content: "";
  width: 10px;
  height: 10px;
  margin-right: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.72;
  box-shadow: 0 0 0 4px color-mix(in srgb, currentColor 34%, transparent);
}

.nova-tile h3,
.nova-nav-button h3 {
  font-size: 17px;
  line-height: 1.15;
  margin-bottom: 8px;
}

.nova-tile p,
.nova-nav-button p {
  line-height: 1.42;
  min-height: 56px;
}

.nova-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.nova-metric {
  padding: 8px 10px;
  border-radius: 0 12px 12px 0;
  background: rgba(11, 22, 39, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  font-size: 11px;
  color: #d2e3f6;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nova-mission-board-shell {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.nova-mission-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.nova-mission-summary-item {
  border: 1px solid rgba(255, 179, 112, 0.12);
  border-radius: 18px 38px 18px 38px;
  padding: 12px;
  background: linear-gradient(180deg, rgba(32, 19, 44, 0.92), rgba(16, 11, 26, 0.9));
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nova-mission-summary-item span {
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.08em;
  color: #ffcb97;
}

.nova-mission-summary-item strong {
  font-size: 18px;
  line-height: 1.1;
  color: #ffe8c6;
}

.nova-mission-board-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.nova-mission-lane {
  border: 1px solid rgba(255, 179, 112, 0.14);
  background: linear-gradient(180deg, rgba(23, 16, 34, 0.92), rgba(12, 10, 22, 0.9));
  border-radius: 0 30px 24px 0;
  min-height: 300px;
  padding: 12px;
}

.nova-mission-lane-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 10px;
  gap: 8px;
}

.nova-mission-lane-head h4 {
  margin: 0;
  color: #ffd5af;
  font-size: 15px;
}

.nova-mission-lane-head span {
  color: #ffd9b7;
  font-size: 11px;
  text-transform: uppercase;
  background: rgba(90, 99, 128, 0.22);
  border: 1px solid rgba(151, 163, 202, 0.2);
  border-radius: 0 12px 12px 0;
  padding: 4px 8px;
}

.nova-mission-empty {
  border: 1px dashed rgba(255, 190, 128, 0.32);
  margin: 8px;
  border-radius: 10px;
  padding: 10px;
  color: #cfb28f;
  font-size: 12px;
}

.nova-mission-task {
  border: 1px solid rgba(255, 179, 112, 0.14);
  border-radius: 0 22px 22px 0;
  padding: 10px;
  margin-bottom: 8px;
  background: rgba(11, 17, 30, 0.76);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.nova-mission-task:last-child {
  margin-bottom: 0;
}

.nova-task-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}

.nova-task-top strong {
  font-size: 14px;
}

.nova-task-top p,
.nova-mission-task p {
  margin: 0;
  color: #e1ccaa;
  line-height: 1.35;
  font-size: 13px;
}

.nova-task-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #c7a98a;
  font-size: 11px;
}

.nova-task-meta span,
.nova-mission-activity-item p {
  color: #c7a98a;
}

.nova-mission-task small {
  color: #ffd39f;
  font-size: 11px;
}

.nova-mission-task.priority-high {
  border-color: rgba(248, 113, 113, 0.4);
  box-shadow: inset 0 0 0 1px rgba(248, 113, 113, 0.12);
}

.nova-mission-task.priority-critical {
  border-color: rgba(251, 113, 133, 0.58);
  background: rgba(66, 17, 27, 0.42);
}

.nova-mission-task.priority-low {
  border-color: rgba(125, 210, 255, 0.24);
}

.nova-gateway-dialog {
  position: fixed;
  inset: 0;
  z-index: 2147483646;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(4, 6, 12, 0.72);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.nova-gateway-card {
  width: min(760px, 100%);
  max-height: min(760px, 92vh);
  overflow: auto;
  border: 1px solid rgba(255, 190, 128, 0.28);
  border-radius: 14px;
  padding: 16px;
  background: linear-gradient(145deg, rgba(12, 18, 31, 0.96), rgba(20, 28, 45, 0.94));
  box-shadow: var(--nova-shadow);
  color: var(--nova-text);
}

.nova-gateway-session-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.nova-gateway-packet {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 12px 0;
  color: #f5cfa8;
  font-family: var(--nova-detail-font);
  font-size: 12px;
}

.nova-gateway-packet textarea {
  min-height: 180px;
  resize: vertical;
  border: 1px solid rgba(255, 190, 128, 0.24);
  border-radius: 10px;
  padding: 10px;
  background: rgba(5, 9, 16, 0.82);
  color: #ffe5c8;
  line-height: 1.45;
}

.nova-gateway-status {
  margin: 10px 0 0;
  color: #d6bc9b;
  font-size: 12px;
}

.nova-mission-activity {
  border: 1px solid rgba(255, 179, 112, 0.14);
  border-radius: 0 22px 22px 0;
  padding: 12px;
  background: linear-gradient(180deg, rgba(26, 16, 32, 0.92), rgba(16, 12, 24, 0.92));
}

.nova-mission-activity h4 {
  margin: 0 0 8px;
  color: #ffd7b2;
}

.nova-mission-activity-item {
  border-top: 1px dashed rgba(255, 179, 112, 0.2);
  padding-top: 8px;
  margin-top: 8px;
}

.nova-mission-activity-item:first-child {
  margin-top: 0;
  border-top: none;
  padding-top: 0;
}

.nova-connector-grid .nova-tile {
  min-height: 220px;
}

.nova-help-column {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.nova-help-card,
.nova-console-shell {
  border-radius: 24px 46px 24px 46px;
  padding: 20px 20px 20px 28px;
  background: linear-gradient(180deg, rgba(25, 15, 39, 0.94), rgba(13, 11, 24, 0.9));
  border: 1px solid var(--nova-border);
  box-shadow: var(--nova-shadow);
}

.nova-status-rail {
  background:
    linear-gradient(180deg, rgba(29, 17, 44, 0.94), rgba(13, 11, 24, 0.9)),
    radial-gradient(circle at top right, rgba(255, 157, 78, 0.08), transparent 42%);
}

@media (prefers-reduced-motion: reduce) {
  .nova-shell-backdrop,
  .nova-brand-mark,
  .nova-bridge-alert::after,
  .nova-bridge-core::after,
  .nova-lcars-schematic::after,
  .nova-lcars-ring,
  .nova-lcars-node {
    animation: none !important;
  }

  button.nova-action,
  .nova-pulse-card,
  .nova-bridge-event {
    transition: none !important;
  }
}

.nova-help-card .nova-help-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.nova-help-card .nova-help-warnings {
  margin-top: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(245, 158, 11, 0.18);
  background: rgba(120, 53, 15, 0.18);
}

.nova-console-shell {
  margin-top: 20px;
}

.nova-console-shell .nova-console-frame {
  margin-top: 14px;
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: rgba(5, 10, 18, 0.78);
  min-height: 340px;
}

.nova-console-shell.console-hidden .nova-console-frame {
  display: none;
}

.nova-console-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}

.nova-console-note {
  color: var(--nova-muted);
  font-size: 13px;
}

.nova-console-target {
  min-height: 340px;
}

.nova-footnote {
  margin-top: 18px;
  color: #87a4c2;
  font-size: 12px;
}

.nova-accent-blue { box-shadow: inset 0 0 0 1px rgba(56, 189, 248, 0.08); }
.nova-accent-teal { box-shadow: inset 0 0 0 1px rgba(45, 212, 191, 0.08); }
.nova-accent-violet { box-shadow: inset 0 0 0 1px rgba(167, 139, 250, 0.08); }
.nova-accent-amber { box-shadow: inset 0 0 0 1px rgba(251, 191, 36, 0.08); }
.nova-accent-rose { box-shadow: inset 0 0 0 1px rgba(251, 113, 133, 0.08); }

@media (max-width: 1280px) {
  .nova-shell-grid {
    grid-template-columns: 1fr;
  }

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

  .nova-bridge-alert {
    grid-template-columns: 1fr;
  }

  .nova-bridge-events {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nova-nav-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .nova-mission-board-grid,
  .nova-mission-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .nova-hero {
    grid-template-columns: 1fr;
  }

  .nova-tile-grid,
  .nova-connector-grid,
  .nova-roadmap-grid,
  .nova-nav-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nova-bridge-core {
    min-height: 240px;
  }

  .nova-bridge-events {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .nova-shell-main {
    padding: 10px 10px 28px;
  }

  .nova-topbar,
  .nova-hero,
  .nova-panel,
  .nova-console-shell,
  .nova-help-card {
    border-radius: 20px;
    padding: 16px;
  }

  .nova-nav-grid,
  .nova-tile-grid,
  .nova-connector-grid,
  .nova-roadmap-grid,
  .nova-stat-strip,
  .nova-bridge-layout {
    grid-template-columns: 1fr;
  }

  .nova-topbar {
    position: relative;
    top: auto;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    max-height: none;
  }

  .nova-brand {
    align-items: flex-start;
    gap: 10px;
  }

  .nova-brand-mark {
    width: 42px;
    height: 42px;
    min-width: 42px;
    border-radius: 10px 20px 10px 20px;
    font-size: 18px;
  }

  .nova-brand h1 {
    font-size: 22px;
    line-height: 1.08;
  }

  .nova-brand p {
    display: none;
  }

  .nova-topbar-actions {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .nova-topbar-actions .nova-chip {
    display: none;
  }

  .nova-topbar-actions .nova-action {
    width: 100%;
    min-height: 42px;
    padding: 10px 8px;
    justify-content: center;
    text-align: center;
    white-space: normal;
    line-height: 1.15;
    font-size: 11px;
  }

  .nova-topbar-status,
  .nova-topbar-meta {
    align-items: flex-start;
    justify-content: flex-start;
  }

  .nova-topbar-status {
    width: 100%;
    gap: 8px;
  }

  .nova-topbar-clock {
    font-size: 18px;
  }

  .nova-topbar-meta {
    gap: 6px;
  }

  .nova-bridge-shortcuts {
    justify-content: flex-start;
  }

  .nova-bridge-item,
  .nova-rail-item {
    align-items: flex-start;
    flex-direction: column;
  }

.nova-mission-board-grid,
.nova-mission-summary {
  grid-template-columns: 1fr;
}
}

.nova-embedded-app-shell {
  display: grid;
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 14px;
  background: rgba(15, 23, 42, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.nova-embedded-app-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.nova-embedded-app-head h3 {
  margin: 2px 0 4px;
  font-size: 16px;
  line-height: 1.2;
}

.nova-embedded-app-head p {
  margin: 0;
  color: rgba(226, 232, 240, 0.72);
  font-size: 12px;
  line-height: 1.35;
}

.nova-embedded-app-frame {
  width: 100%;
  min-height: min(760px, calc(100vh - 190px));
  border: 0;
  border-radius: 10px;
  background: #020617;
}

@media (max-width: 900px) and (orientation: landscape) {
  .nova-topbar {
    position: relative;
    top: auto;
  }
}
