:root {
  color-scheme: dark;
  --bg: #071018;
  --bg-2: #0c1824;
  --panel: rgba(15, 28, 40, 0.88);
  --panel-strong: rgba(20, 38, 54, 0.96);
  --line: rgba(155, 184, 207, 0.2);
  --line-bright: rgba(35, 211, 255, 0.42);
  --text: #f4f8fb;
  --muted: #a8b7c5;
  --soft: #d8e6ef;
  --orange: #ff9d2e;
  --yellow: #ffd166;
  --cyan: #23d3ff;
  --blue: #4f8cff;
  --green: #37e190;
  --red: #ff5c57;
  --steel: rgba(176, 196, 211, 0.14);
  --shadow: 0 24px 80px rgba(0, 0, 0, 0.38);
  --brand-zone-height: clamp(238px, 34vh, 330px);
}

* {
  box-sizing: border-box;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  background:
    radial-gradient(circle at 18% 0%, rgba(35, 211, 255, 0.12), transparent 28rem),
    radial-gradient(circle at 82% 12%, rgba(255, 157, 46, 0.1), transparent 26rem),
    linear-gradient(135deg, #071018 0%, #0c1824 54%, #11151d 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 58px 58px;
  opacity: 0.28;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.55), transparent 72%);
  z-index: 0;
}

body::after {
  content: "";
  position: fixed;
  left: 50%;
  top: 58%;
  width: min(74vw, 980px);
  aspect-ratio: 1;
  background: url("./assets/cq-logo.png") center / contain no-repeat;
  opacity: 0.13;
  filter: saturate(1) contrast(1.08);
  pointer-events: none;
  transform: translate(-50%, -50%);
  z-index: 0;
}

.hero,
main,
footer {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero {
  position: fixed;
  inset: 0 0 auto;
  width: 100%;
  height: var(--brand-zone-height);
  padding: 16px 0 14px;
  z-index: 10;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 16% 22%, rgba(35, 211, 255, 0.18), transparent 20rem),
    radial-gradient(circle at 72% 0%, rgba(255, 157, 46, 0.12), transparent 22rem),
    linear-gradient(180deg, rgba(7, 16, 24, 0.96), rgba(7, 16, 24, 0.74) 72%, rgba(7, 16, 24, 0));
  backdrop-filter: blur(5px);
  pointer-events: none;
}

.hero > * {
  width: min(1180px, calc(100% - 32px));
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}

.hero-topline,
.section-bar,
.deployment-actions,
.deployment-title-row {
  display: flex;
  align-items: center;
}

.hero-topline {
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 10px;
}

.brand-lockup {
  display: inline-flex;
  align-items: center;
  min-width: 0;
  gap: 14px;
}

.brand-lockup img {
  display: block;
  width: clamp(74px, 8vw, 104px);
  height: clamp(74px, 8vw, 104px);
  border: 1px solid rgba(255, 209, 102, 0.34);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 0 44px rgba(255, 157, 46, 0.18), 0 16px 40px rgba(0, 0, 0, 0.32);
  object-fit: contain;
  flex: 0 0 auto;
}

.brand-lockup div {
  min-width: 0;
}

.brand-lockup h1 {
  color: var(--text);
  font-size: clamp(2rem, 4vw, 4.25rem);
  line-height: 0.9;
  letter-spacing: 0;
}

.brand-lockup span {
  display: block;
  margin-top: 8px;
  color: var(--soft);
  font-size: 0.92rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-nav {
  display: flex;
  gap: 6px;
  margin-bottom: 10px;
  overflow-x: auto;
  scrollbar-width: none;
}

.platform-nav::-webkit-scrollbar {
  display: none;
}

.platform-nav a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid rgba(155, 184, 207, 0.16);
  border-radius: 7px;
  background: rgba(7, 16, 24, 0.62);
  color: var(--muted);
  padding: 6px 10px;
  font-size: 0.78rem;
  font-weight: 850;
  text-decoration: none;
  white-space: nowrap;
}

.platform-nav a.active {
  border-color: rgba(35, 211, 255, 0.48);
  background: linear-gradient(135deg, rgba(35, 211, 255, 0.18), rgba(35, 211, 255, 0.06));
  color: var(--cyan);
  box-shadow: inset 0 -2px 0 rgba(35, 211, 255, 0.75);
}

.platform-nav a[aria-disabled="true"] {
  opacity: 0.74;
  cursor: default;
}

.access-pill,
.data-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(13, 27, 39, 0.72), rgba(18, 34, 48, 0.48));
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
  white-space: normal;
}

.session-cluster {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.logout-button {
  min-height: 34px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 7px;
  background: rgba(255, 157, 46, 0.1);
  color: #ffe2b3;
  cursor: pointer;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 7px 10px;
}

.logout-button:hover {
  border-color: rgba(255, 209, 102, 0.56);
}

.auth-view {
  width: min(1180px, calc(100% - 32px));
  min-height: calc(100vh - var(--brand-zone-height) - 48px);
  margin: var(--brand-zone-height) auto 0;
  display: grid;
  place-items: center;
  position: relative;
  z-index: 1;
}

.auth-panel {
  width: min(520px, 100%);
  border: 1px solid rgba(35, 211, 255, 0.22);
  border-left: 6px solid var(--orange);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 28, 40, 0.86), rgba(7, 17, 27, 0.76)),
    linear-gradient(90deg, rgba(35, 211, 255, 0.08), transparent);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(22px, 4vw, 36px);
  backdrop-filter: blur(4px);
}

.auth-panel h2 {
  display: block;
  margin-top: 4px;
  font-size: clamp(1.7rem, 4vw, 2.65rem);
}

.auth-panel p {
  margin: 10px 0 0;
  color: var(--soft);
}

.auth-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.auth-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-form input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(155, 184, 207, 0.24);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.64);
  color: var(--text);
  font-size: 1rem;
  padding: 10px 12px;
}

.auth-form input:focus {
  outline: 2px solid rgba(35, 211, 255, 0.5);
  outline-offset: 2px;
}

.auth-form button {
  min-height: 48px;
  border: 0;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #121820;
  cursor: pointer;
  font-weight: 950;
}

.auth-form button:disabled {
  cursor: wait;
  opacity: 0.62;
}

.auth-message {
  min-height: 22px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 800;
}

.auth-message.error {
  color: #ff8d6b;
}

.auth-message.success {
  color: var(--green);
}

body[data-auth-state="authenticated"] .auth-view {
  display: none;
}

body[data-auth-state="checking"] #app-shell,
body[data-auth-state="unauthenticated"] #app-shell,
body[data-auth-state="denied"] #app-shell {
  display: none;
}

.data-badge.mock {
  border-color: rgba(255, 209, 102, 0.36);
  color: var(--yellow);
}

.data-badge.live {
  border-color: rgba(55, 225, 144, 0.36);
  color: var(--green);
}

.data-badge.danger {
  border-color: rgba(255, 92, 87, 0.38);
  color: #ff8d6b;
}

.status-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 225, 144, 0.14), 0 0 18px rgba(55, 225, 144, 0.75);
  flex: 0 0 auto;
}

.command-header {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(350px, 0.74fr);
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(35, 211, 255, 0.12);
  border-left: 5px solid rgba(255, 157, 46, 0.76);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(35, 211, 255, 0.07), rgba(255, 209, 102, 0.025)),
    linear-gradient(135deg, rgba(13, 29, 45, 0.62), rgba(10, 19, 29, 0.42));
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: 9px 12px;
  overflow: hidden;
  backdrop-filter: blur(3px);
}

.command-header::after {
  content: "";
  position: absolute;
  right: 12px;
  top: 10px;
  width: min(26vw, 280px);
  height: calc(100% - 20px);
  border: 1px solid rgba(35, 211, 255, 0.14);
  background:
    linear-gradient(90deg, transparent, rgba(35, 211, 255, 0.08)),
    repeating-linear-gradient(90deg, transparent 0 40px, rgba(255, 255, 255, 0.04) 40px 41px);
  clip-path: polygon(10% 0, 100% 0, 90% 100%, 0 100%);
  opacity: 0.35;
}

.command-copy,
.hero-status-grid {
  position: relative;
  z-index: 1;
}

.hero-status-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.hero-status-grid div {
  min-width: 0;
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  background: rgba(7, 16, 24, 0.34);
  padding: 8px;
  backdrop-filter: blur(2px);
}

.hero-status-grid div:first-child {
  border-left-color: var(--green);
}

.hero-status-grid div:last-child {
  border-left-color: var(--yellow);
}

.hero-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-status-grid strong {
  display: block;
  margin-top: 3px;
  color: var(--soft);
  font-size: 0.9rem;
  line-height: 1.1;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1 {
  max-width: 760px;
  line-height: 0.98;
  letter-spacing: 0;
}

h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: clamp(1.25rem, 2.4vw, 1.75rem);
  line-height: 1.15;
  min-width: 0;
  flex-wrap: wrap;
}

h3 {
  font-size: 1rem;
  line-height: 1.25;
}

.eyebrow {
  margin-bottom: 5px;
  color: var(--yellow);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.hero-subtitle {
  max-width: 680px;
  margin-top: 5px;
  color: var(--soft);
  font-size: clamp(0.84rem, 1vw, 0.95rem);
}

.hero-panel {
  align-self: flex-end;
  width: min(330px, 100%);
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 14px;
  background: rgba(7, 16, 24, 0.68);
  padding: 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
}

.hero-panel-label {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.hero-panel strong {
  display: block;
  margin-top: 6px;
  color: var(--yellow);
  font-size: clamp(1.25rem, 2.5vw, 2rem);
  line-height: 1.05;
}

.readiness-bar,
.phase-meter,
.metric-bar {
  height: 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.readiness-bar {
  margin-top: 14px;
}

.readiness-bar span,
.phase-meter span,
.metric-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--orange), var(--yellow), var(--green));
  box-shadow: 0 0 20px rgba(255, 209, 102, 0.28);
}

main {
  display: grid;
  gap: 18px;
  margin-top: calc(var(--brand-zone-height) + 18px);
  padding: 0 0 24px;
  overflow-x: hidden;
}

.tab-view {
  display: grid;
  gap: 18px;
}

.tab-view[hidden] {
  display: none;
}

.command-grid {
  display: grid;
  grid-template-columns: 1.05fr 1.18fr 1.24fr 1.08fr;
  gap: 18px;
  align-items: stretch;
}

.command-panel,
.metrics-band {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(155, 184, 207, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(176, 196, 211, 0.12) 0 1px, transparent 1px),
    linear-gradient(145deg, rgba(15, 28, 40, 0.68), rgba(7, 17, 27, 0.54));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: 11px;
  min-height: 0;
  backdrop-filter: blur(4px);
}

.command-panel::before,
.metrics-band::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--cyan), rgba(35, 211, 255, 0.08));
}

.production-panel::before {
  background: linear-gradient(90deg, var(--green), rgba(55, 225, 144, 0.08));
}

.review-panel::before {
  background: linear-gradient(90deg, var(--orange), var(--yellow), rgba(255, 209, 102, 0.08));
}

.wins-panel::before {
  background: linear-gradient(90deg, var(--green), var(--cyan), rgba(35, 211, 255, 0.08));
}

.command-panel-header {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 9px;
}

.panel-index {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255, 209, 102, 0.3);
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.08);
  color: var(--yellow);
  font-size: 0.72rem;
  font-weight: 950;
  flex: 0 0 auto;
}

.command-panel h2 {
  display: block;
  font-size: clamp(1.05rem, 1.4vw, 1.32rem);
}

.command-panel .eyebrow,
.metrics-band .eyebrow {
  margin-bottom: 4px;
  font-size: 0.62rem;
}

.readiness-stack {
  display: grid;
  gap: 7px;
}

.readiness-stack div {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 35px;
  border: 1px solid rgba(55, 225, 144, 0.22);
  border-left: 4px solid var(--green);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(55, 225, 144, 0.1), rgba(255, 255, 255, 0.018));
  padding: 7px;
}

.readiness-stack span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(55, 225, 144, 0.12), 0 0 18px rgba(55, 225, 144, 0.45);
  flex: 0 0 auto;
}

.readiness-stack strong {
  color: var(--soft);
  font-size: 0.82rem;
  line-height: 1.15;
}

.review-queue,
.win-list {
  display: grid;
  gap: 7px;
}

.review-item,
.win-card {
  border: 1px solid rgba(155, 184, 207, 0.13);
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  background: rgba(7, 16, 24, 0.28);
  padding: 8px;
}

.review-item.blocked {
  border-left-color: var(--red);
}

.review-item.review {
  border-left-color: var(--yellow);
}

.review-item.ready {
  border-left-color: var(--green);
}

.review-item span {
  display: inline-flex;
  margin-bottom: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  padding: 3px 6px;
  color: var(--yellow);
  font-size: 0.62rem;
  font-weight: 950;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.review-item p,
.win-card p {
  color: var(--soft);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.78rem;
  line-height: 1.26;
}

.win-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 8px;
  border-left-color: var(--green);
}

.win-mark {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 4px;
  background: rgba(55, 225, 144, 0.14);
  color: var(--green);
  font-size: 0.68rem;
  font-weight: 950;
}

.queue-more {
  border: 1px dashed rgba(255, 209, 102, 0.22);
  border-radius: 7px;
  color: #ffe2b3;
  font-size: 0.75rem;
  font-weight: 850;
  padding: 6px 8px;
}

.metrics-band {
  min-height: 0;
  padding: 16px;
}

.placeholder-view {
  min-height: 460px;
}

.placeholder-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(35, 211, 255, 0.22);
  border-left: 6px solid var(--cyan);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 28, 40, 0.68), rgba(7, 17, 27, 0.54)),
    linear-gradient(90deg, rgba(35, 211, 255, 0.08), transparent);
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  padding: clamp(22px, 4vw, 38px);
  backdrop-filter: blur(4px);
}

.placeholder-panel::after {
  content: "Phase 1";
  position: absolute;
  right: 18px;
  top: 18px;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 999px;
  background: rgba(255, 209, 102, 0.08);
  color: var(--yellow);
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.placeholder-panel h2 {
  max-width: 820px;
  display: block;
  font-size: clamp(1.45rem, 3vw, 2.45rem);
}

.placeholder-panel p:last-child {
  max-width: 720px;
  margin-top: 14px;
  color: var(--soft);
  font-size: 1rem;
}

.panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(255, 157, 46, 0.08) 0 4px, transparent 4px),
    linear-gradient(145deg, rgba(15, 28, 40, 0.68), rgba(9, 20, 31, 0.58));
  box-shadow: 0 18px 54px rgba(0, 0, 0, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.045);
  padding: clamp(18px, 3vw, 26px);
  backdrop-filter: blur(4px);
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(90deg, transparent calc(100% - 1px), rgba(255, 255, 255, 0.035) calc(100% - 1px));
  opacity: 0.55;
}

.panel > * {
  position: relative;
  z-index: 1;
}

.projects-view {
  min-height: 460px;
}

.project-portfolio {
  border-color: rgba(35, 211, 255, 0.24);
  background:
    linear-gradient(90deg, rgba(35, 211, 255, 0.12) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(35, 211, 255, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(15, 28, 40, 0.7), rgba(8, 18, 29, 0.56));
}

.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.project-overview-grid article {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(35, 211, 255, 0.08), transparent),
    rgba(7, 16, 24, 0.54);
  padding: 12px;
}

.project-overview-grid span,
.project-card dt {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.project-overview-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2.05rem);
  line-height: 1;
}

.project-portfolio-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.project-card {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.045), transparent),
    rgba(9, 20, 31, 0.62);
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.045);
}

.project-card.active {
  border-left: 4px solid var(--green);
}

.project-card.review-ready,
.project-card.production-ready {
  border-left: 4px solid var(--cyan);
}

.project-card.blocked {
  border-left: 4px solid var(--red);
}

.project-card.paused {
  border-left: 4px solid var(--yellow);
}

.project-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}

.project-card h3 {
  margin: 0;
  color: var(--text);
  font-size: 1rem;
  letter-spacing: 0;
}

.project-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.project-card dd {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.4;
}

.production-health-view {
  min-height: 460px;
}

.production-health-panel {
  border-color: rgba(55, 225, 144, 0.24);
  background:
    linear-gradient(90deg, rgba(55, 225, 144, 0.11) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(55, 225, 144, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(15, 28, 40, 0.7), rgba(8, 18, 29, 0.56));
}

.health-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(55, 225, 144, 0.08), transparent),
    rgba(7, 16, 24, 0.58);
  margin-bottom: 14px;
  padding: 16px;
}

.health-summary-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.health-summary-card p,
.health-summary-card small {
  display: block;
  color: var(--soft);
}

.health-light {
  display: inline-block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  margin-top: 5px;
  background: var(--yellow);
  box-shadow: 0 0 18px rgba(255, 209, 102, 0.42);
}

.health-light.healthy {
  background: var(--green);
  box-shadow: 0 0 18px rgba(55, 225, 144, 0.44);
}

.health-light.warning {
  background: var(--yellow);
}

.health-light.critical {
  background: var(--red);
  box-shadow: 0 0 18px rgba(255, 92, 87, 0.45);
}

.production-health-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.health-check-card {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background: rgba(9, 20, 31, 0.62);
  padding: 14px;
}

.health-check-card.healthy {
  border-left: 4px solid var(--green);
}

.health-check-card.warning {
  border-left: 4px solid var(--yellow);
}

.health-check-card.critical {
  border-left: 4px solid var(--red);
}

.health-check-top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.health-check-top h3 {
  margin: 0;
  color: var(--text);
  font-size: 0.98rem;
}

.health-check-top p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.health-check-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.health-check-card dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.health-check-card dd {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.health-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.health-list-panel {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.48);
  padding: 14px;
}

.onboarding-view {
  min-height: 460px;
}

.onboarding-panel {
  border-color: rgba(255, 209, 102, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.12) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(255, 209, 102, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(15, 28, 40, 0.7), rgba(8, 18, 29, 0.56));
}

.onboarding-summary-card {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 209, 102, 0.08), transparent),
    rgba(7, 16, 24, 0.58);
  margin-bottom: 14px;
  padding: 16px;
}

.onboarding-summary-card h3 {
  margin: 0 0 6px;
  color: var(--text);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
}

.onboarding-summary-card p,
.onboarding-summary-card small {
  display: block;
  color: var(--soft);
}

.onboarding-metrics-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.onboarding-metric-card {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(9, 20, 31, 0.62);
  padding: 14px;
}

.onboarding-metric-card.healthy {
  border-left-color: var(--green);
}

.onboarding-metric-card.warning {
  border-left-color: var(--yellow);
}

.onboarding-metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.onboarding-metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1.4rem, 3vw, 2rem);
  line-height: 1;
}

.onboarding-metric-card p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.onboarding-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.onboarding-list-panel {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.48);
  padding: 14px;
}

.courses-view {
  min-height: 460px;
}

.courses-panel {
  border-color: rgba(35, 211, 255, 0.22);
  background:
    linear-gradient(90deg, rgba(35, 211, 255, 0.11) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(35, 211, 255, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(15, 28, 40, 0.7), rgba(8, 18, 29, 0.56));
}

.course-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.course-metric-card {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.04), transparent),
    rgba(9, 20, 31, 0.62);
  padding: 14px;
}

.course-metric-card.pending {
  border-left-color: var(--yellow);
}

.course-metric-card span,
.course-rank-card dt {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.course-metric-card strong {
  display: block;
  margin-top: 6px;
  color: var(--text);
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  line-height: 1;
}

.course-metric-card p {
  margin: 8px 0 0;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.35;
}

.course-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 12px;
}

.course-list-panel {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.48);
  padding: 14px;
}

.admin-user-search-panel {
  margin-bottom: 14px;
}

.admin-search-field {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.admin-search-field span {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-search-field input {
  width: 100%;
  border: 1px solid rgba(155, 184, 207, 0.26);
  border-radius: 8px;
  background: rgba(4, 11, 18, 0.72);
  color: var(--text);
  font: inherit;
  padding: 11px 12px;
  outline: none;
}

.admin-search-field input:focus {
  border-color: rgba(35, 211, 255, 0.62);
  box-shadow: 0 0 0 3px rgba(35, 211, 255, 0.12);
}

.admin-search-summary {
  margin: 10px 0 12px;
  color: var(--soft);
  font-size: 0.84rem;
  line-height: 1.4;
}

.admin-user-card {
  cursor: pointer;
}

.admin-user-card.selected {
  border-color: rgba(35, 211, 255, 0.5);
  background:
    linear-gradient(135deg, rgba(35, 211, 255, 0.08), transparent),
    rgba(9, 20, 31, 0.72);
}

.admin-user-card:focus-visible {
  outline: 3px solid rgba(35, 211, 255, 0.35);
  outline-offset: 2px;
}

.admin-user-profile-summary {
  display: block;
  margin-top: 12px;
}

.admin-user-profile-card {
  border: 1px solid rgba(35, 211, 255, 0.24);
  border-radius: 8px;
  background: rgba(7, 16, 24, 0.58);
  padding: 14px;
}

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

.admin-profile-grid dt {
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.admin-profile-grid dd {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.admin-profile-note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.45;
}

.course-rank-list {
  display: grid;
  gap: 10px;
}

.course-rank-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  border: 1px solid rgba(155, 184, 207, 0.14);
  border-radius: 8px;
  background: rgba(9, 20, 31, 0.58);
  padding: 12px;
}

.rank-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(35, 211, 255, 0.22);
  border-radius: 4px;
  color: var(--cyan);
  font-weight: 950;
  font-size: 0.78rem;
}

.course-rank-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.course-rank-card p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.course-rank-card dl {
  display: grid;
  grid-template-columns: repeat(2, auto);
  gap: 10px;
  margin: 0;
  text-align: right;
}

.course-rank-card dd {
  margin: 2px 0 0;
  color: var(--soft);
  font-weight: 900;
}

.training-effectiveness-view {
  min-height: 460px;
}

.training-effectiveness-panel {
  min-width: 0;
  border-color: rgba(55, 225, 144, 0.22);
  background:
    linear-gradient(90deg, rgba(55, 225, 144, 0.11) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(55, 225, 144, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(15, 28, 40, 0.7), rgba(8, 18, 29, 0.56));
}

.training-effectiveness-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  margin-bottom: 18px;
}

.training-metric-group {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(155, 184, 207, 0.14);
  border-radius: 8px;
  background: rgba(9, 20, 31, 0.5);
  padding: 14px;
  overflow: hidden;
}

.training-metric-group .deployment-title-row {
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 12px;
}

.training-metric-group .deployment-title-row > div {
  min-width: 0;
  max-width: 100%;
}

.training-metric-group h3 {
  margin: 2px 0 0;
  color: var(--text);
  font-size: 1rem;
  line-height: 1.2;
}

.training-metric-card-grid {
  min-width: 0;
  max-width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(176px, 1fr));
  gap: 12px;
}

.training-metric-card-grid .course-metric-card {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  min-height: 156px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
}

.training-metric-card-grid .course-metric-card span,
.training-metric-card-grid .course-metric-card strong,
.training-metric-card-grid .course-metric-card p {
  min-width: 0;
}

.training-metric-card-grid .course-metric-card strong {
  max-width: 100%;
  font-size: clamp(1.35rem, 2.1vw, 1.9rem);
  line-height: 1.05;
  overflow-wrap: anywhere;
  word-break: normal;
}

.training-metric-card-grid .course-metric-card p {
  max-width: 100%;
  margin-top: auto;
  padding-top: 10px;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.effectiveness-list {
  min-width: 0;
  max-width: 100%;
  display: grid;
  gap: 10px;
}

.effectiveness-card {
  min-width: 0;
  max-width: 100%;
  border: 1px solid rgba(155, 184, 207, 0.14);
  border-radius: 8px;
  background: rgba(9, 20, 31, 0.58);
  padding: 12px;
  overflow: hidden;
}

.effectiveness-card h4 {
  margin: 0;
  color: var(--text);
  font-size: 0.95rem;
}

.effectiveness-card p {
  margin: 3px 0 12px;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
}

.effectiveness-card dl {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  margin: 0;
}

.effectiveness-card dl > div {
  min-width: 0;
  border: 1px solid rgba(155, 184, 207, 0.1);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.025);
  padding: 8px;
}

.effectiveness-card dt {
  color: var(--muted);
  font-size: 0.64rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.effectiveness-card dd {
  margin: 3px 0 0;
  color: var(--soft);
  font-size: 0.86rem;
  font-weight: 900;
  overflow-wrap: anywhere;
}

.executive-panel {
  border-color: rgba(255, 157, 46, 0.24);
  background:
    linear-gradient(90deg, rgba(255, 157, 46, 0.16) 0 5px, transparent 5px),
    radial-gradient(circle at 96% 0%, rgba(255, 209, 102, 0.08), transparent 25rem),
    linear-gradient(145deg, rgba(20, 38, 54, 0.66), rgba(8, 18, 29, 0.54));
}

.section-heading,
.section-bar {
  margin-bottom: 20px;
}

.section-bar {
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-bar time {
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 800;
}

.section-icon {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(35, 211, 255, 0.28);
  border-radius: 4px;
  background:
    linear-gradient(135deg, rgba(35, 211, 255, 0.15), rgba(35, 211, 255, 0.05));
  color: var(--cyan);
  font-size: 0.78rem;
  font-weight: 950;
  flex: 0 0 auto;
}

.kpi-grid,
.mission-grid,
.signal-grid,
.milestone-grid,
.roadmap,
.metrics-grid,
.integration-grid {
  display: grid;
  gap: 14px;
}

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

.kpi-card,
.milestone-lane,
.roadmap article,
.metric-card,
.mission-grid article,
.signal-column,
.integration-grid article {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(90deg, var(--steel) 0 1px, transparent 1px),
    linear-gradient(145deg, rgba(255, 255, 255, 0.034), rgba(255, 255, 255, 0.012));
  padding: 16px;
  position: relative;
  overflow: hidden;
}

.summary-brief {
  border: 1px solid rgba(255, 209, 102, 0.24);
  border-left: 6px solid var(--orange);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 209, 102, 0.08), transparent 48%),
    linear-gradient(145deg, rgba(255, 157, 46, 0.1), rgba(35, 211, 255, 0.045));
  color: var(--soft);
  padding: 18px 18px 18px 20px;
  font-size: 1.05rem;
  font-weight: 720;
}

.summary-brief.missing,
.loading-card,
.empty-state {
  border: 1px dashed rgba(255, 209, 102, 0.34);
  border-radius: 12px;
  background: rgba(255, 209, 102, 0.06);
  color: #ffe2b3;
  padding: 14px;
}

.empty-state.protected-state {
  border-color: rgba(35, 211, 255, 0.32);
  background:
    linear-gradient(135deg, rgba(35, 211, 255, 0.08), transparent),
    rgba(7, 16, 24, 0.58);
  color: var(--soft);
  line-height: 1.45;
}

.kpi-card::before,
.metric-card::before,
.roadmap article::before,
.mission-grid article::before,
.signal-column::before,
.integration-grid article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, rgba(255, 157, 46, 0.85), rgba(255, 209, 102, 0.24), transparent);
}

.kpi-card.hot::before {
  background: linear-gradient(90deg, var(--orange), var(--yellow));
}

.kpi-card.blue::before {
  background: linear-gradient(90deg, var(--blue), var(--cyan));
}

.kpi-card.green::before {
  background: linear-gradient(90deg, #16c784, var(--green));
}

.kpi-card.warning::before {
  background: linear-gradient(90deg, var(--red), var(--orange));
}

.kpi-card span,
.roadmap article span,
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.kpi-card strong,
.metric-card strong {
  display: block;
  margin-top: 8px;
  overflow-wrap: anywhere;
  color: var(--text);
  font-size: clamp(1.35rem, 2.4vw, 1.9rem);
  line-height: 1.05;
}

.kpi-card small,
.metric-card small {
  display: block;
  margin-top: 8px;
  color: var(--soft);
}

.mission-grid {
  grid-template-columns: 1fr 1fr;
  margin-top: 14px;
}

.workstream-list {
  display: grid;
  gap: 7px;
  margin-top: 0;
}

.workstream-card {
  border: 1px solid rgba(35, 211, 255, 0.24);
  border-left: 4px solid var(--cyan);
  border-radius: 7px;
  background: linear-gradient(90deg, rgba(35, 211, 255, 0.1), rgba(35, 211, 255, 0.035));
  padding: 8px;
}

.workstream-card.blocked {
  border-left-color: var(--red);
}

.workstream-card.review-ready {
  border-left-color: var(--yellow);
}

.workstream-card.paused {
  border-left-color: var(--muted);
}

.workstream-card.production-ready {
  border-left-color: var(--green);
}

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

.workstream-meta {
  margin-top: 5px;
  color: var(--yellow);
  font-size: 0.67rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.workstream-name {
  display: block;
  color: var(--soft);
  font-weight: 800;
}

.workstream-card p {
  margin-top: 7px;
  color: var(--muted);
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  font-size: 0.79rem;
  line-height: 1.28;
}

.workstream-card small {
  display: block;
  margin-top: 8px;
  color: #ffe2b3;
  font-size: 0.78rem;
}

.status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 4px;
  padding: 4px 9px;
  background: rgba(168, 183, 197, 0.14);
  color: var(--soft);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.status-chip.active {
  background: rgba(35, 211, 255, 0.14);
  color: var(--cyan);
}

.status-chip.paused {
  background: rgba(168, 183, 197, 0.16);
  color: var(--muted);
}

.status-chip.blocked {
  background: rgba(255, 92, 87, 0.15);
  color: #ff8d6b;
}

.status-chip.review-ready {
  background: rgba(255, 209, 102, 0.15);
  color: var(--yellow);
}

.status-chip.production-ready {
  background: rgba(55, 225, 144, 0.15);
  color: var(--green);
}

.status-chip.live {
  background: rgba(55, 225, 144, 0.15);
  color: var(--green);
}

.status-chip.mock {
  background: rgba(255, 209, 102, 0.15);
  color: var(--yellow);
}

.status-chip.danger {
  background: rgba(255, 92, 87, 0.15);
  color: #ff8d6b;
}

ul {
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

li + li {
  margin-top: 9px;
}

.signal-list li {
  display: flex;
  gap: 9px;
  color: var(--soft);
}

.signal-list li span {
  width: 12px;
  height: 8px;
  margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--orange), var(--yellow));
  box-shadow: 0 0 12px rgba(35, 211, 255, 0.65);
  flex: 0 0 auto;
}

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

.signal-column {
  border: 1px solid var(--line);
  border-left: 5px solid var(--cyan);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.058), rgba(255, 255, 255, 0.025));
  padding: 15px;
  color: var(--soft);
}

.signal-column h3 {
  color: var(--soft);
}

.signal-column.danger {
  border-left-color: var(--red);
}

.signal-column.info {
  border-left-color: var(--cyan);
}

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

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

.integration-grid article {
  border-color: rgba(255, 209, 102, 0.22);
  min-height: 104px;
}

.integration-grid article span {
  display: block;
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.integration-grid article strong {
  display: block;
  margin-top: 8px;
  color: var(--yellow);
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.integration-grid article p {
  margin-top: 8px;
  color: var(--muted);
}

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

.milestone-lane h3 {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.milestone-lane h3 span {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--soft);
  font-size: 0.78rem;
}

.milestone-lane li {
  position: relative;
  padding-left: 25px;
}

.milestone-lane li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1px solid currentColor;
  color: var(--muted);
}

.milestone-lane.complete {
  border-color: rgba(55, 225, 144, 0.32);
  background: linear-gradient(145deg, rgba(55, 225, 144, 0.1), rgba(255, 255, 255, 0.035));
}

.milestone-lane.complete li::before {
  content: "✓";
  color: var(--green);
  font-size: 0.75rem;
  font-weight: 950;
}

.milestone-lane.active {
  border-color: rgba(255, 209, 102, 0.32);
  background: linear-gradient(145deg, rgba(255, 157, 46, 0.12), rgba(255, 255, 255, 0.035));
}

.milestone-lane.active li::before {
  background: var(--yellow);
  border-color: var(--yellow);
  box-shadow: 0 0 14px rgba(255, 209, 102, 0.55);
}

.milestone-lane.upcoming li::before {
  border-color: var(--cyan);
}

.roadmap article {
  padding-top: 20px;
  border-left: 5px solid var(--cyan);
}

.roadmap article:nth-child(1) {
  border-left-color: var(--orange);
}

.roadmap article:nth-child(2) {
  border-left-color: var(--cyan);
}

.roadmap article:nth-child(3) {
  border-left-color: var(--green);
}

.roadmap article span {
  display: inline-grid;
  min-height: 30px;
  place-items: center;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 4px;
  background: rgba(255, 209, 102, 0.08);
  padding: 5px 9px;
  color: var(--yellow);
}

.roadmap article h3 {
  margin-top: 8px;
  font-size: 1.1rem;
}

.roadmap article p {
  margin-top: 8px;
  color: var(--muted);
}

.phase-meter,
.metric-bar {
  margin-top: 16px;
}

.metric-card::before {
  background: linear-gradient(90deg, var(--cyan), var(--blue));
}

.deployment-actions {
  gap: 10px;
}

.icon-button {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(35, 211, 255, 0.28);
  border-radius: 10px;
  background: rgba(35, 211, 255, 0.1);
  color: var(--cyan);
  cursor: pointer;
}

.icon-button:hover {
  border-color: var(--cyan);
  box-shadow: 0 0 22px rgba(35, 211, 255, 0.16);
}

.icon-button:disabled {
  cursor: wait;
  opacity: 0.55;
}

.icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.integration-note {
  margin-bottom: 14px;
  border: 1px solid rgba(255, 209, 102, 0.28);
  border-radius: 12px;
  background: rgba(255, 157, 46, 0.09);
  padding: 13px;
  color: #ffe2b3;
  font-size: 0.92rem;
}

.deployment-list {
  display: grid;
  gap: 13px;
}

.deployment-center {
  min-height: 520px;
}

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

.deployment-summary-grid article,
.deployment-list-panel {
  border: 1px solid rgba(155, 184, 207, 0.18);
  border-radius: 9px;
  background: rgba(7, 16, 24, 0.32);
}

.deployment-summary-grid article {
  padding: 14px;
}

.deployment-summary-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deployment-summary-grid strong {
  display: block;
  margin-top: 6px;
  color: var(--soft);
  font-size: 1.12rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.deployment-summary-grid p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
}

.deployment-columns {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
  margin-top: 16px;
}

.deployment-list-panel {
  padding: 15px;
}

.deployment-card {
  display: block;
  border: 1px solid rgba(155, 184, 207, 0.2);
  border-radius: 9px;
  background: linear-gradient(135deg, rgba(19, 36, 52, 0.96), rgba(11, 22, 34, 0.92));
  padding: 13px;
}

.deployment-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.deployment-card h4 {
  margin: 0;
  color: var(--soft);
  font-size: 0.98rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.deployment-card p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 0.78rem;
}

.deployment-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.deployment-card dt {
  color: var(--muted);
  font-size: 0.66rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deployment-card dd {
  margin: 2px 0 0;
  color: var(--soft);
  font-size: 0.8rem;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.deployment-card a {
  display: inline-flex;
  margin: 12px 8px 0 0;
  color: var(--cyan);
  font-size: 0.8rem;
  font-weight: 850;
  text-decoration: none;
}

.deployment-card a:hover {
  text-decoration: underline;
}

.deployment-message {
  margin: 16px 0 0;
  border: 1px solid rgba(255, 209, 102, 0.22);
  border-radius: 8px;
  background: rgba(255, 209, 102, 0.06);
  color: #ffe2b3;
  padding: 11px 13px;
  font-size: 0.86rem;
}

.status-source-strip {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(155, 184, 207, 0.16);
  border-left: 5px solid rgba(35, 211, 255, 0.36);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(35, 211, 255, 0.08), rgba(255, 255, 255, 0.018));
  padding: 13px 16px;
  color: var(--muted);
}

.status-source-strip span,
.status-source-strip dt {
  display: block;
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.status-source-strip strong,
.status-source-strip dd {
  margin: 3px 0 0;
  color: var(--soft);
  font-weight: 850;
  overflow-wrap: anywhere;
}

.status-source-strip dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, auto));
  gap: 18px;
  margin: 0;
}

.deployment-card:hover {
  border-color: rgba(35, 211, 255, 0.42);
  box-shadow: 0 16px 44px rgba(0, 0, 0, 0.24);
}

.deployment-main {
  min-width: 0;
}

.deployment-title-row {
  gap: 10px;
  flex-wrap: wrap;
}

.deployment-title-row h3 {
  font-size: 1.08rem;
}

.deployment-url {
  display: block;
  margin-top: 9px;
  color: var(--muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.deploy-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  color: var(--muted);
  font-size: 0.84rem;
}

.deploy-meta span {
  display: block;
  overflow-wrap: anywhere;
}

.deploy-meta strong {
  display: block;
  color: var(--soft);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.deploy-meta a {
  color: var(--cyan);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(168, 183, 197, 0.12);
  color: var(--soft);
  font-size: 0.73rem;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.pill.ready,
.pill.approved {
  background: rgba(55, 225, 144, 0.14);
  color: var(--green);
}

.pill.error,
.pill.rejected,
.pill.blocked {
  background: rgba(255, 92, 87, 0.14);
  color: #ff8d6b;
}

.pill.building,
.pill.in-review {
  background: rgba(255, 209, 102, 0.14);
  color: var(--yellow);
}

.pill.needs-review {
  background: rgba(35, 211, 255, 0.14);
  color: var(--cyan);
}

.open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 132px;
  min-height: 44px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--orange), var(--yellow));
  color: #121820;
  font-weight: 950;
  text-decoration: none;
  box-shadow: 0 12px 28px rgba(255, 157, 46, 0.18);
}

.open-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 18px 34px rgba(255, 157, 46, 0.26);
}

footer {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0 30px;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

footer span {
  max-width: 100%;
  overflow-wrap: anywhere;
}

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

  .hero-status-grid {
    grid-column: 1 / -1;
    width: 100%;
  }

  .command-grid,
  .kpi-grid,
  .mission-grid,
  .signal-grid,
  .milestone-grid,
  .roadmap,
  .integration-grid,
  .onboarding-metrics-grid,
  .onboarding-columns,
  .course-metrics-grid,
  .course-columns,
  .training-effectiveness-grid,
  .deployment-summary-grid,
  .deployment-columns,
  .deployment-card {
    grid-template-columns: 1fr;
  }

  .section-bar,
  .status-source-strip,
  footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .status-source-strip dl {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .command-panel {
    min-height: 0;
  }

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

  .hero-panel {
    align-self: stretch;
  }
}

@media (max-width: 560px) {
  :root {
    --brand-zone-height: auto;
  }

  .hero,
  main,
  footer {
    width: min(100% - 24px, 1180px);
  }

  .hero {
    position: sticky;
    width: 100%;
    height: auto;
    padding: 10px 0 12px;
  }

  .hero > * {
    width: min(100% - 24px, 1180px);
  }

  main {
    margin-top: 0;
    padding-top: 12px;
  }

  .hero-topline {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  body::after {
    left: 50%;
    top: 48%;
    width: min(118vw, 520px);
    opacity: 0.075;
  }

  .brand-lockup {
    gap: 10px;
  }

  .brand-lockup img {
    width: 58px;
    height: 58px;
    border-radius: 10px;
  }

  .brand-lockup h1 {
    font-size: clamp(1.8rem, 10vw, 2.7rem);
  }

  .brand-lockup span {
    margin-top: 4px;
    font-size: 0.7rem;
  }

  .platform-nav {
    margin-right: -12px;
    padding-right: 12px;
  }

  .platform-nav a {
    min-height: 31px;
    padding: 6px 9px;
    font-size: 0.74rem;
  }

  .command-header,
  .panel {
    border-radius: 10px;
    padding: 12px;
  }

  .command-header::after {
    display: none;
  }

  .hero-status-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 6px;
  }

  .placeholder-view {
    min-height: 360px;
  }

  .placeholder-panel {
    padding: 18px;
  }

  .placeholder-panel::after {
    position: static;
    display: inline-flex;
    margin-bottom: 12px;
  }

  .hero-status-grid div {
    padding: 7px 6px;
  }

  .hero-status-grid span {
    font-size: 0.54rem;
  }

  .hero-status-grid strong {
    font-size: 0.76rem;
  }

  h2 {
    align-items: flex-start;
  }

  .metrics-grid,
  .project-overview-grid,
  .project-portfolio-grid,
  .production-health-grid,
  .health-columns,
  .onboarding-metrics-grid,
  .onboarding-columns,
  .course-metrics-grid,
  .course-columns,
  .course-rank-card,
  .training-effectiveness-grid,
  .training-metric-card-grid,
  .effectiveness-card dl,
  .deployment-card dl,
  .deploy-meta {
    grid-template-columns: 1fr;
  }

  .training-metric-group {
    padding: 12px;
  }

  .training-metric-card-grid {
    max-width: calc(100vw - 74px);
  }

  .training-metric-card-grid .course-metric-card {
    min-height: 0;
    padding: 12px;
    max-width: calc(100vw - 82px);
  }

  .training-effectiveness-grid,
  .training-metric-card-grid,
  .effectiveness-card dl {
    grid-template-columns: minmax(0, 1fr);
  }

  .training-metric-card-grid .course-metric-card span,
  .effectiveness-card dt {
    letter-spacing: 0.06em;
  }

  .deployment-actions {
    width: 100%;
    justify-content: space-between;
  }

  .open-button {
    width: 100%;
  }

  .workstream-card {
    min-width: 0;
  }
}
