:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-alt: #f8fbff;
  --text: #162033;
  --muted: #5d6b84;
  --line: #dde5f1;
  --brand: #0b7285;
  --brand-soft: #d9f2f7;
  --ok: #177245;
  --warn: #9a6700;
  --shadow: 0 10px 30px rgba(18, 37, 63, 0.08);
}

[data-theme="dark"] {
  --bg: #0f1117;
  --surface: #1a1f2e;
  --surface-alt: #222736;
  --text: #e4eaf5;
  --muted: #8b96ab;
  --line: #2e3548;
  --brand: #14b8d4;
  --brand-soft: #0e3040;
  --ok: #4caf78;
  --warn: #f0b429;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.45);
}

[data-theme="dark"] body {
  background:
    radial-gradient(circle at 10% 0%, #0d1f3c 0, transparent 25%),
    radial-gradient(circle at 90% 10%, #0d2a1c 0, transparent 22%),
    var(--bg);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 10% 0%, #dbecff 0, transparent 25%),
    radial-gradient(circle at 90% 10%, #ddf7ec 0, transparent 22%),
    var(--bg);
}

.app-shell {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.landing-shell {
  margin: 32px auto;
  display: grid;
  grid-template-columns: minmax(0, 2.3fr) minmax(320px, 0.85fr);
  gap: 16px;
  align-items: stretch;
}

.landing-showcase {
  overflow: hidden;
  background:
    radial-gradient(circle at 0% 0%, rgba(10, 114, 133, 0.18), transparent 35%),
    linear-gradient(135deg, var(--surface), var(--surface-alt));
}

.landing-showcase h1 {
  font-size: clamp(26px, 3.9vw, 38px);
  line-height: 1.08;
  margin-top: 10px;
  letter-spacing: -0.02em;
  max-width: 20ch;
}

.showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
  margin-top: 18px;
}

.simulator-card,
.value-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(3px);
}

[data-theme="dark"] .simulator-card,
[data-theme="dark"] .value-card {
  background: rgba(20, 25, 35, 0.68);
}

.simulator-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.simulator-kicker {
  display: none;
}

.simulator-live-dot {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ok);
}

.simulator-live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--ok);
  box-shadow: 0 0 0 0 rgba(23, 114, 69, 0.45);
  animation: pulse-dot 1.8s infinite;
}

.sim-stage {
  margin: 10px 0 12px;
  font-weight: 700;
  min-height: 22px;
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sim-progress {
  height: 10px;
  width: 100%;
  border-radius: 999px;
  background: rgba(93, 107, 132, 0.2);
  overflow: hidden;
}

.sim-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand), #4aa7b5);
  transition: width 0.8s ease;
}

.sim-events {
  margin: 12px 0 0;
  height: 234px;
  overflow: hidden;
  position: relative;
}

.sim-events-track {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  animation: sim-ticker-up 18s linear infinite;
}

.sim-events:hover .sim-events-track {
  animation-play-state: paused;
}

.sim-events-track li {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  background: var(--surface);
}

.value-card h2 {
  margin: 0;
  font-size: 19px;
}

.value-points {
  margin: 12px 0 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 10px;
}

.app-rail {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.45);
  overflow: hidden;
  position: relative;
}

.app-rail::before,
.app-rail::after {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  z-index: 2;
  pointer-events: none;
}

.app-rail::before {
  left: 0;
  background: linear-gradient(90deg, var(--surface) 0%, rgba(255, 255, 255, 0) 100%);
}

.app-rail::after {
  right: 0;
  background: linear-gradient(270deg, var(--surface) 0%, rgba(255, 255, 255, 0) 100%);
}

.app-rail-track {
  display: flex;
  gap: 8px;
  width: max-content;
  animation: app-rail-slide 26s linear infinite;
}

.app-rail:hover .app-rail-track {
  animation-play-state: paused;
}

.app-chip {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.landing-login {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 12px;
  align-items: center;
  align-self: start;
  margin-top: 0;
}

.login-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: var(--surface-alt);
  margin-top: 0;
  max-width: 380px;
}

.landing-login h2 {
  margin: 0 0 0;
  font-size: clamp(18px, 2.1vw, 26px);
  letter-spacing: -0.01em;
  text-align: center;
}

.login-copy {
  margin: 4px 0 0;
  color: var(--muted);
  text-align: center;
  font-size: 13px;
}

.landing-login .action-row {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.landing-login .ms-login,
.landing-login .admin-login-link {
  width: 100%;
  justify-content: center;
}

.landing-login .ms-login {
  min-height: 42px;
  font-size: 15px;
  font-weight: 700;
}

.entra-note {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.shield-icon {
  font-size: 16px;
  line-height: 1;
}

/* --- Landing hero two-col layout --- */
.landing-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
  align-items: center;
  margin-bottom: 4px;
}

.landing-hero-text h1 {
  margin-top: 0;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
}

.hero-stack {
  position: relative;
  width: 240px;
  height: 140px;
  animation: hs-float 5s ease-in-out infinite;
}

@keyframes hs-float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

.hs-card {
  position: absolute;
  width: 220px;
  height: 130px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.hs-card-c {
  top: 12px;
  left: 20px;
  transform: rotate(5.5deg);
  background: linear-gradient(145deg, #0b7285, #14b8d4);
  opacity: 0.3;
}

.hs-card-b {
  top: 6px;
  left: 10px;
  transform: rotate(2.5deg);
  background: linear-gradient(145deg, #0b7285, #14b8d4);
  opacity: 0.55;
}

.hs-card-a {
  top: 0;
  left: 0;
  background: var(--surface);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.hs-dots {
  display: flex;
  gap: 5px;
}

.hs-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
}

.hs-tiles {
  display: grid;
  grid-template-columns: repeat(5, 22px);
  grid-template-rows: repeat(2, 22px);
  gap: 5px;
}

.hs-tile {
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
}

.hs-tile.hs-on {
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  border-color: transparent;
}

.hs-tile.hs-pulse {
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  border-color: transparent;
  animation: tile-pulse 2s ease-in-out infinite;
}

@keyframes tile-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 1; }
}

.hs-prog {
  height: 5px;
  border-radius: 3px;
  background: var(--line);
  overflow: hidden;
}

.hs-prog-fill {
  height: 100%;
  width: 0;
  border-radius: 3px;
  background: linear-gradient(90deg, #0b7285, #14b8d4);
  animation: hs-fill 3s ease-in-out infinite;
}

@keyframes hs-fill {
  0% { width: 0%; }
  60% { width: 76%; }
  85% { width: 76%; }
  100% { width: 0%; }
}

/* --- Hero canvas & rotating variants --- */
.hero-canvas {
  position: relative;
  width: 100%;
  min-height: 160px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.hero-variant {
  position: absolute;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

@keyframes hv-exit {
  0%   { transform: translateX(0) scale(1); opacity: 1; }
  20%  { transform: translateX(10px) scale(1.02); }
  100% { transform: translateX(-130%) scale(0.88); opacity: 0; }
}

@keyframes hv-enter {
  0%   { transform: translateX(130%) scale(0.88); opacity: 0; }
  50%  { opacity: 1; }
  70%  { transform: translateX(-6%) scale(1.02); }
  85%  { transform: translateX(3%); }
  100% { transform: translateX(0) scale(1); opacity: 1; }
}

.hv-exiting {
  animation: hv-exit 0.45s cubic-bezier(0.4, 0, 0.6, 1) forwards;
}

.hv-entering {
  animation: hv-enter 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

/* Variant 2 – ring gauges */
.hvr-track {
  fill: none;
  stroke: var(--line);
  stroke-width: 5;
}

.hvr-arc {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transform-box: fill-box;
  transform-origin: center;
  transform: rotate(-90deg);
}

.hvr-arc1 {
  stroke: var(--brand);
  stroke-dasharray: 301.6;
  stroke-dashoffset: 301.6;
  animation: hvr-fill1 2s ease-out 0.15s forwards;
}

.hvr-arc2 {
  stroke: #22c55e;
  stroke-dasharray: 219.9;
  stroke-dashoffset: 219.9;
  animation: hvr-fill2 1.9s ease-out 0.3s forwards;
}

.hvr-arc3 {
  stroke: #f59e0b;
  stroke-dasharray: 138.2;
  stroke-dashoffset: 138.2;
  animation: hvr-fill3 1.7s ease-out 0.5s forwards;
}

@keyframes hvr-fill1 { to { stroke-dashoffset: 75; } }
@keyframes hvr-fill2 { to { stroke-dashoffset: 55; } }
@keyframes hvr-fill3 { to { stroke-dashoffset: 21; } }

.hv-rings {
  display: flex;
  align-items: center;
  gap: 20px;
}

.hv-rings-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hv-leg {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.hv-leg::before {
  content: '';
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.hv-leg1::before { background: var(--brand); }
.hv-leg2::before { background: #22c55e; }
.hv-leg3::before { background: #f59e0b; }

/* Variant 3 – network nodes */
.hv-network {
  overflow: visible;
}

.hvn-line {
  stroke: var(--line);
  stroke-width: 1.5;
  stroke-dasharray: 5 3;
  animation: hvn-line-pulse 3s ease-in-out infinite;
}

@keyframes hvn-line-pulse {
  0%, 100% { opacity: 0.5; }
  50% { opacity: 1; }
}

.hvn-node {
  fill: var(--brand);
  animation: hvn-pulse 2s ease-in-out infinite;
}

.hvn-main {
  fill: var(--brand);
  animation: hvn-pulse-main 2s ease-in-out infinite;
}

.hvn-end {
  fill: var(--brand);
  opacity: 0.55;
  animation: hvn-pulse 2.5s ease-in-out infinite;
}

@keyframes hvn-pulse {
  0%, 100% { opacity: 0.55; }
  50% { opacity: 1; }
}

@keyframes hvn-pulse-main {
  0%, 100% { opacity: 0.85; }
  50% { opacity: 1; }
}

/* Variant 4 – checklist */
.hv-checklist {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.hvc-row {
  display: flex;
  align-items: center;
  gap: 9px;
  opacity: 0;
  animation: hvc-appear 0.4s ease-out forwards;
}

.hvc-check {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  position: relative;
}

.hvc-check::after {
  content: '✓';
  line-height: 1;
}

.hvc-label {
  font-size: 13px;
  color: var(--text);
  font-weight: 500;
}

@keyframes hvc-appear {
  from { opacity: 0; transform: translateX(-12px); }
  to   { opacity: 1; transform: translateX(0); }
}

/* Variant 5 – deploy pipeline */
.hv-pipeline {
  display: flex;
  align-items: center;
  gap: 2px;
  flex-wrap: nowrap;
  justify-content: center;
}

.hvp-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  opacity: 0;
  animation: hvp-appear 0.4s ease-out forwards;
}

.hvp-node {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 2px solid var(--line);
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 13px;
  color: var(--muted);
}

.hvp-step-done .hvp-node {
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  border-color: transparent;
  color: #fff;
}

.hvp-step-active .hvp-node {
  background: var(--brand-soft);
  border-color: var(--brand);
  color: var(--brand);
  animation: hvp-pulse-node 1.5s ease-in-out infinite;
}

.hvp-label {
  font-size: 10px;
  color: var(--muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.hvp-arrow {
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 18px;
  flex-shrink: 0;
  opacity: 0.6;
}

@keyframes hvp-appear {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes hvp-pulse-node {
  0%, 100% { box-shadow: 0 0 0 0 rgba(11, 114, 133, 0.35); }
  50%       { box-shadow: 0 0 0 7px rgba(11, 114, 133, 0); }
}

@keyframes pulse-dot {
  0% {
    box-shadow: 0 0 0 0 rgba(23, 114, 69, 0.4);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(23, 114, 69, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(23, 114, 69, 0);
  }
}

@keyframes sim-ticker-up {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(-50%);
  }
}

@keyframes app-rail-slide {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

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

  .landing-hero {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    display: none;
  }

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

  .landing-login {
    order: -1;
  }

  .landing-login h2 {
    font-size: clamp(24px, 7.2vw, 34px);
  }
}

.welcome-panel {
  max-width: 760px;
  margin: 48px auto;
}

.welcome-text {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.5;
}

.topbar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  margin-bottom: 14px;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-menu-wrap {
  position: relative;
}

.profile-btn {
  width: 42px;
  height: 42px;
  border-radius: 999px;
  padding: 0;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--surface);
}

.profile-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: visible;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #dfe7f5;
  color: #22324f;
  font-weight: 700;
  font-size: 14px;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 999px;
  object-fit: cover;
  display: none;
}

.profile-avatar.has-image img {
  display: block;
}

.profile-avatar.has-image #profile-avatar-fallback {
  display: none;
}

.profile-avatar-badge {
  position: absolute;
  top: -5px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  line-height: 20px;
  text-align: center;
  border: 2px solid var(--surface);
}

.profile-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  box-shadow: var(--shadow);
  z-index: 20;
}

.profile-menu-divider {
  height: 1px;
  background: var(--line);
  margin: 8px 0;
}

.profile-dark-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  font-size: 14px;
  padding: 2px 0;
  user-select: none;
}

.profile-dark-toggle input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}

.toggle-track {
  width: 36px;
  height: 20px;
  border-radius: 999px;
  background: var(--line);
  border: 1px solid var(--line);
  position: relative;
  flex-shrink: 0;
  transition: background 0.2s;
}

.profile-dark-toggle input:checked + .toggle-track {
  background: var(--brand);
  border-color: var(--brand);
}

.toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  background: #fff;
  transition: transform 0.2s;
}

.profile-dark-toggle input:checked + .toggle-track .toggle-thumb {
  transform: translateX(16px);
}

.profile-name {
  margin: 0;
  font-weight: 700;
}

.profile-email {
  margin: 4px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.profile-menu-link {
  display: block;
  text-decoration: none;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-weight: 600;
  background: var(--surface-alt);
}

.profile-menu-link:hover {
  border-color: var(--brand);
}

.eyebrow {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}

h1 {
  margin: 6px 0 0;
  font-size: 28px;
}

.status-pill {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  font-size: 13px;
  box-shadow: var(--shadow);
}

.tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.app-workspace {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.explorer-panel {
  position: sticky;
  top: 16px;
}

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

.tab {
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  padding: 9px 14px;
  border-radius: 10px;
  cursor: pointer;
  font-weight: 600;
}

.tab.is-active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

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

.panel-header h2 {
  margin: 0;
}

.panel-header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.dashboard-grid {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

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

.donut-card {
  background: linear-gradient(160deg, rgba(14, 93, 122, 0.08), rgba(14, 93, 122, 0.02));
}

.donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 10px;
}

.donut-chart {
  --donut-progress: 0%;
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: conic-gradient(var(--brand) var(--donut-progress), rgba(14, 93, 122, 0.16) 0);
  position: relative;
  flex-shrink: 0;
}

.donut-chart::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--line);
}

.metric-card {
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
}

.metric-label {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.metric-value {
  margin: 6px 0 0;
  font-size: 24px;
  font-weight: 700;
}

.card-list {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.app-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--surface);
}

.badge {
  background: var(--brand-soft);
  color: #0a4e58;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.catalog-title {
  margin: 14px 0 10px;
  font-size: 15px;
}

.catalog-categories {
  display: grid;
  gap: 8px;
}

.catalog-categories button {
  width: 100%;
  text-align: left;
}

.catalog-categories button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.catalog-category-btn {
  width: 100%;
  text-align: left;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  cursor: pointer;
  font-size: 14px;
  transition: all 150ms ease;
}

.catalog-category-btn:hover {
  background: var(--surface-alt);
  border-color: var(--border-hover);
}

.catalog-category-btn.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.catalog-search {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 14px;
}

.catalog-search input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}

.table-wrap {
  margin-top: 12px;
}

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

.catalog-results {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.catalog-view-toggle {
  display: inline-flex;
  gap: 8px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.catalog-view-toggle button {
  min-width: 84px;
}

.catalog-view-toggle button.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.catalog-list,
.catalog-grid {
  margin-top: 12px;
}

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

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

@media (max-width: 1180px) {
  .catalog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }
}

.catalog-empty {
  border: 1px dashed var(--line);
  border-radius: 14px;
  padding: 22px;
  text-align: center;
  background: var(--surface-alt);
}

.catalog-entry {
  width: 100%;
  display: block;
  text-align: left;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--text);
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.catalog-entry:hover,
.catalog-entry:focus-visible {
  border-color: color-mix(in srgb, var(--brand) 65%, var(--line));
  box-shadow: 0 8px 18px rgba(18, 37, 63, 0.1);
  transform: translateY(-1px);
}

.catalog-entry:focus-visible {
  outline: 2px solid color-mix(in srgb, var(--brand) 60%, transparent);
  outline-offset: 2px;
}

.catalog-entry.is-selected {
  border-color: var(--brand);
  background: color-mix(in srgb, var(--brand-soft) 42%, var(--surface));
}

.catalog-entry-list {
  border: 0;
  border-bottom: 1px solid var(--line);
  border-radius: 0;
  padding: 14px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1.8fr) minmax(120px, 1fr) minmax(120px, 1fr) auto;
  gap: 16px;
  align-items: center;
  background: transparent;
}

.catalog-entry-list:hover,
.catalog-entry-list:focus-visible {
  border-bottom-color: color-mix(in srgb, var(--brand) 55%, var(--line));
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand-soft) 46%, transparent), transparent 65%);
}

.catalog-entry-logo-wrap,
.catalog-entry-tile-top {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.catalog-entry-logo-wrap {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, var(--surface-alt), color-mix(in srgb, var(--surface-alt) 65%, var(--surface)));
}

.catalog-entry-logo {
  width: 34px;
  height: 34px;
  object-fit: contain;
  flex-shrink: 0;
}

.catalog-entry-main,
.catalog-entry-meta {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.catalog-entry-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.catalog-entry-subtitle,
.catalog-entry-slug,
.catalog-entry-meta-label {
  color: var(--muted);
}

.catalog-entry-slug,
.catalog-entry-title,
.catalog-entry-subtitle,
.catalog-entry-meta span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.catalog-entry-meta-label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.catalog-entry-action {
  justify-self: end;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  font-weight: 700;
}

.catalog-entry-tile {
  min-height: 280px;
  border-radius: 18px;
  padding: 18px;
  display: grid;
  align-content: start;
  gap: 10px;
  background:
    radial-gradient(circle at top right, color-mix(in srgb, var(--brand-soft) 70%, transparent) 0, transparent 32%),
    var(--surface);
}

.catalog-entry-tile-top {
  min-height: 140px;
  border-radius: 16px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand-soft) 38%, var(--surface-alt)), var(--surface));
  position: relative;
  margin-bottom: 2px;
}

.catalog-entry-logo-large {
  width: 92px;
  height: 92px;
}

.catalog-entry-version-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.88);
  color: #0a4e58;
  font-size: 12px;
  font-weight: 700;
}

[data-theme="dark"] .catalog-entry-version-badge {
  background: rgba(26, 31, 46, 0.92);
  color: #c8f4fb;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 10px;
  border-bottom: 1px solid var(--line);
}

th {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

.detail-card {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface);
}

.detail-card h3 {
  margin: 0;
}

.detail-app-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.detail-app-logo {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface-alt);
  flex-shrink: 0;
}

.detail-app-head .muted {
  margin: 4px 0 0;
}

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

.action-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.deploy-wizard {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.wizard-step {
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  background: var(--surface-alt);
}

.wizard-step-toggle {
  width: 100%;
  text-align: left;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: transparent;
  border: 0;
  border-bottom: 1px solid transparent;
  padding: 12px 14px;
  font-size: 16px;
}

.wizard-step-toggle:hover {
  background: color-mix(in srgb, var(--brand-soft) 40%, transparent);
}

.wizard-chevron {
  color: var(--muted);
}

.wizard-step-body {
  padding: 12px 14px 14px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}

.deploy-status-bar {
  margin-top: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px;
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.deploy-status-bar strong {
  display: block;
}

.deploy-status-bar .muted {
  margin: 6px 0 0;
}

.deployment-status-actions {
  margin-top: 0;
}

.wizard-label {
  display: block;
  margin-bottom: 6px;
  color: var(--muted);
  font-size: 14px;
}

.wizard-step-body select,
.wizard-step-body input:not([type="checkbox"]):not([type="radio"]) {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
}

.wizard-version-options {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.wizard-version-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.wizard-version-row p {
  margin: 4px 0 0;
}

.wizard-version-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.deploy-flow {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.deploy-step {
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 8px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  transition: all 0.2s ease;
}

.deploy-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--line);
}

.deploy-step.is-active {
  border-color: var(--brand);
  color: var(--text);
  background: var(--surface-alt);
}

.deploy-step.is-active .deploy-dot {
  background: var(--brand);
  box-shadow: 0 0 0 6px color-mix(in srgb, var(--brand) 18%, transparent);
}

.deploy-step.is-done {
  border-color: var(--ok);
  color: var(--ok);
}

.deploy-step.is-done .deploy-dot {
  background: var(--ok);
}

.deploy-step.is-failed {
  border-color: #c23f3f;
  color: #c23f3f;
}

.deploy-step.is-failed .deploy-dot {
  background: #c23f3f;
}

button {
  border-radius: 10px;
  border: 1px solid var(--line);
  padding: 9px 12px;
  font-weight: 600;
  cursor: pointer;
  background: var(--surface);
  color: var(--text);
}

button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.primary {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.danger {
  background: #b42318;
  color: #fff;
  border-color: #b42318;
}

.danger:disabled {
  background: #d7a6a2;
  border-color: #d7a6a2;
  color: #fff;
}

.ms-login {
  background: #fff;
  border: 1px solid #b8c4d9;
  color: #1f2a44;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  min-width: 245px;
}

.ms-logo {
  width: 16px;
  height: 16px;
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 2px;
}

.ms-logo::before,
.ms-logo::after {
  content: "";
}

.ms-logo {
  background:
    linear-gradient(#f35325 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(#81bc06 0 0) 9px 0 / 7px 7px no-repeat,
    linear-gradient(#05a6f0 0 0) 0 9px / 7px 7px no-repeat,
    linear-gradient(#ffba08 0 0) 9px 9px / 7px 7px no-repeat;
}

.ghost {
  background: var(--surface);
}

.status-note {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.status-note.ok {
  color: var(--ok);
}

.status-note.warn {
  color: var(--warn);
}

.form-grid {
  margin-top: 10px;
}

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

.form-grid input {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
}

.group-picker-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  align-items: center;
}

.group-picker-row select {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 14px;
  background: var(--surface);
  color: var(--text);
  min-width: 0;
}

.toggle-grid {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.toggle-row {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  background: var(--surface-alt);
  display: flex;
  align-items: center;
  gap: 10px;
}

.toggle-row input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  flex-shrink: 0;
}

.toggle-row span {
  color: var(--text);
}

.version-list {
  margin: 10px 0 0;
  padding-left: 18px;
}

/* ============================================================
   LANDING PAGE — NAV, SECTIONS, FEATURES, HOW TO USE
   ============================================================ */

html {
  scroll-behavior: smooth;
}

/* --- Sticky nav --- */
.landing-nav {
  position: sticky;
  top: 0;
  z-index: 200;
  height: 56px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 1px 8px rgba(18, 37, 63, 0.06);
}

[data-theme="dark"] .landing-nav {
  box-shadow: 0 1px 8px rgba(0, 0, 0, 0.3);
}

.ln-inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.ln-brand {
  font-weight: 800;
  font-size: 17px;
  color: var(--brand);
  text-decoration: none;
  letter-spacing: -0.01em;
}

.ln-links {
  display: flex;
  gap: 4px;
}

.ln-link {
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
}

.ln-link:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.ln-link.is-active {
  color: var(--brand);
  background: var(--brand-soft);
}

/* --- Section layout --- */
.lp-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

.lp-section {
  padding: 80px 0;
  scroll-margin-top: 56px;
}

.lp-section-home {
  padding: 28px 0 52px;
}

.lp-section-home .landing-shell {
  margin: 0;
}

.lp-section-alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.lp-section-head {
  text-align: center;
  max-width: 580px;
  margin: 0 auto 52px;
}

.lp-section-head .eyebrow {
  margin-bottom: 8px;
}

.lp-section-head h2 {
  font-size: clamp(22px, 3vw, 32px);
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lp-section-head > p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.6;
  margin: 0;
}

/* --- Features grid --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 22px;
  transition: box-shadow 0.2s, transform 0.2s;
}

.feat-card:hover {
  box-shadow: 0 8px 26px rgba(18, 37, 63, 0.11);
  transform: translateY(-2px);
}

[data-theme="dark"] .feat-card:hover {
  box-shadow: 0 8px 26px rgba(0, 0, 0, 0.38);
}

.feat-icon {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--fi-bg);
  color: var(--fi-color);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.feat-icon svg {
  width: 22px;
  height: 22px;
}

.feat-card h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.feat-card > p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
  margin: 0 0 14px;
}

.feat-visual {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  min-height: 44px;
  display: flex;
  align-items: center;
}

/* Feature visual: app grid dots */
.feat-v-grid {
  display: grid;
  grid-template-columns: repeat(3, 24px);
  gap: 6px;
}

.fvg-dot {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: var(--line);
}

/* Feature visual: version chips */
.feat-v-versions {
  flex-direction: column;
  gap: 4px;
  width: 100%;
}

.fvv-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  font-family: monospace;
  color: var(--muted);
  background: var(--surface-alt);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 3px 8px;
}

.fvv-latest {
  color: var(--text);
  border-color: var(--brand);
}

.fvv-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #fff;
  background: var(--brand);
  border-radius: 3px;
  padding: 1px 4px;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Feature visual: package box */
.feat-v-pkg {
  justify-content: center;
  width: 100%;
}

.fvpkg-box {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  font-family: monospace;
  color: #6366f1;
  background: rgba(99, 102, 241, 0.08);
  border: 1.5px dashed rgba(99, 102, 241, 0.4);
  border-radius: 8px;
  padding: 7px 14px;
}

.fvpkg-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #6366f1;
  flex-shrink: 0;
}

/* Feature visual: wizard steps */
.feat-v-wizard {
  display: flex;
  align-items: center;
  gap: 4px;
}

.fvw-step {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface-alt);
  font-size: 10px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.fvw-step.fvw-done {
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  border-color: transparent;
  color: #fff;
}

.fvw-step.fvw-active {
  border-color: #f59e0b;
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.1);
}

.fvw-line {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}

.fvw-line.fvw-done {
  background: linear-gradient(90deg, #0b7285, #14b8d4);
}

/* Feature visual: updates */
.feat-v-updates {
  flex-direction: column;
  gap: 5px;
  width: 100%;
}

.fvu-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.fvu-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--line);
  flex-shrink: 0;
}

.fvu-dot.fvu-on {
  background: #ec4899;
}

.fvu-bar {
  flex: 1;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
}

.fvu-bar.fvu-bar-s { max-width: 55%; }
.fvu-bar.fvu-bar-l { max-width: 80%; }

.fvu-badge {
  font-size: 9px;
  font-weight: 700;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.1);
  border: 1px solid rgba(236, 72, 153, 0.3);
  border-radius: 4px;
  padding: 1px 5px;
  white-space: nowrap;
  flex-shrink: 0;
}

/* Feature visual: lock */
.feat-v-lock {
  justify-content: center;
  width: 100%;
}

/* --- How to Use --- */
.htu-steps {
  display: grid;
  grid-template-columns: 1fr 52px 1fr 52px 1fr 52px 1fr;
  align-items: start;
}

.htu-connline {
  height: 2px;
  background: linear-gradient(90deg, var(--brand), var(--brand-soft));
  margin-top: 25px;
  border-radius: 1px;
  opacity: 0.5;
}

.htu-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.htu-num {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
  box-shadow: 0 4px 14px rgba(11, 114, 133, 0.3);
  flex-shrink: 0;
}

.htu-visual {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
  min-height: 90px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  overflow: hidden;
  padding: 14px;
}

.htu-step h3 {
  margin: 0 0 6px;
  font-size: 15px;
  font-weight: 700;
}

.htu-step p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
  margin: 0;
}

/* HTU visual: Sign In */
.htv-signin {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.htv-ms-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  width: 100%;
  max-width: 170px;
}

.htv-ms-label {
  flex: 1;
  height: 8px;
  background: var(--line);
  border-radius: 4px;
}

.htv-entra-tag {
  width: 110px;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  opacity: 0.6;
}

/* HTU visual: Browse Catalog */
.htv-catalog {
  display: grid;
  grid-template-columns: repeat(3, 28px);
  gap: 6px;
}

.htv-tile {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: var(--tc, var(--line));
  opacity: 0.3;
  border: 1.5px solid transparent;
}

.htv-tile-sel {
  opacity: 1;
  border-color: var(--tc, var(--brand));
  box-shadow: 0 0 0 3px rgba(11, 114, 133, 0.15);
}

/* HTU visual: Configure */
.htv-wizard {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  width: 100%;
}

.htv-wiz-row {
  display: flex;
  align-items: center;
  gap: 4px;
  width: 100%;
}

.htv-ws {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: var(--surface);
  font-size: 9px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  flex-shrink: 0;
}

.htv-ws.htv-ws-done {
  background: linear-gradient(135deg, #0b7285, #14b8d4);
  border-color: transparent;
  color: #fff;
}

.htv-ws.htv-ws-active {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.htv-wl {
  flex: 1;
  height: 2px;
  background: var(--line);
  border-radius: 1px;
}

.htv-wl.htv-wl-done {
  background: linear-gradient(90deg, #0b7285, #14b8d4);
}

.htv-wiz-prog {
  width: 100%;
  height: 5px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.htv-wiz-fill {
  height: 100%;
  width: 55%;
  background: linear-gradient(90deg, #0b7285, #14b8d4);
  border-radius: 3px;
}

/* HTU visual: Deploy */
.htv-deploy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.htv-dep-prog {
  width: 100%;
  height: 6px;
  background: var(--line);
  border-radius: 3px;
  overflow: hidden;
}

.htv-dep-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, #22c55e, #14b8d4);
  animation: htv-dep-anim 3.5s ease-in-out infinite;
}

@keyframes htv-dep-anim {
  0%   { width: 0%; }
  60%  { width: 82%; }
  85%  { width: 82%; }
  100% { width: 0%; }
}

.htv-dep-checks {
  display: flex;
  gap: 8px;
}

.htv-chk {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  color: transparent;
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.htv-chk.htv-chk-done {
  background: linear-gradient(135deg, #22c55e, #14b8d4);
  color: #fff;
}

.htv-chk.htv-chk-pulse {
  background: linear-gradient(135deg, #22c55e, #14b8d4);
  color: #fff;
  animation: htv-pulse-chk 1.5s ease-in-out infinite;
}

@keyframes htv-pulse-chk {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
  50%       { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); }
}

/* --- Landing page responsive --- */
@media (max-width: 900px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .htu-steps {
    grid-template-columns: 1fr;
    max-width: 400px;
    margin: 0 auto;
  }

  .htu-connline {
    width: 2px;
    height: 28px;
    background: linear-gradient(180deg, var(--brand), var(--brand-soft));
    margin: 0 auto;
  }
}

@media (max-width: 600px) {
  .features-grid {
    grid-template-columns: 1fr;
  }

  .ln-links {
    gap: 2px;
  }

  .ln-link {
    padding: 6px 10px;
    font-size: 13px;
  }

  .lp-section {
    padding: 52px 0;
  }
}

.version-list li {
  margin-bottom: 8px;
}

.choose-version-btn,
.download-version-btn {
  margin-left: 8px;
  padding: 4px 8px;
  font-size: 12px;
}

.rank-list {
  margin: 10px 0 0;
  padding-left: 18px;
  display: grid;
  gap: 8px;
}

.rank-list li {
  color: var(--muted);
}

.rank-list strong {
  color: var(--text);
}

.is-hidden {
  display: none;
}

.settings-shell {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.settings-layout {
  margin-top: 14px;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.settings-sidebar {
  position: sticky;
  top: 16px;
  align-self: start;
}

.settings-menu {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.settings-menu-btn {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--text);
  padding: 12px 14px;
  border-radius: 14px;
  font-weight: 600;
  cursor: pointer;
}

.settings-menu-btn:hover {
  background: var(--surface-alt);
}

.settings-menu-btn.is-active {
  border-color: transparent;
  background: linear-gradient(135deg, #0f7a8a, #0b6d86);
  color: #ffffff;
}

.settings-content {
  min-width: 0;
}

.settings-content .settings-card {
  min-height: 220px;
}

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

.settings-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  box-shadow: var(--shadow);
}

.settings-card h3 {
  margin: 0;
}

.settings-card p {
  color: var(--muted);
}

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

.settings-status {
  margin-top: 10px;
  font-size: 14px;
  color: var(--muted);
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(8, 18, 33, 0.44);
  display: grid;
  place-items: center;
  padding: 18px;
  z-index: 60;
}

.modal.is-hidden {
  display: none;
}

.modal-card {
  width: min(560px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow);
}

@media (max-width: 840px) {
  .catalog-entry-list {
    grid-template-columns: auto minmax(0, 1fr);
    row-gap: 8px;
  }

  .catalog-entry-action {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .catalog-view-toggle {
    width: 100%;
  }

  .catalog-view-toggle button {
    flex: 1;
  }

  .catalog-entry-list {
    padding: 14px;
    gap: 10px;
  }

  .catalog-entry-logo-wrap {
    width: 48px;
    height: 48px;
  }

  .catalog-entry-logo {
    width: 30px;
    height: 30px;
  }

  .catalog-entry-logo-large {
    width: 72px;
    height: 72px;
  }

  .catalog-entry-tile {
    min-height: 240px;
  }
}

.modal-card h3 {
  margin: 0;
}

.modal-card .muted {
  margin: 8px 0 12px;
}

.modal-actions {
  justify-content: flex-end;
}

.updates-shell {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 16px 40px;
}

.updates-panel {
  margin-top: 8px;
}

.updates-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.updates-list {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.update-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: var(--surface-alt);
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.update-card-main h3 {
  margin: 0;
}

.update-card-main .muted,
.update-versions {
  margin: 6px 0 0;
}

.update-card-side {
  display: grid;
  gap: 8px;
  justify-items: end;
  align-content: start;
}

.update-card-badge {
  padding: 4px 8px;
  border-radius: 999px;
  background: #d92d20;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
}

.update-lightbox-card {
  width: min(680px, 100%);
}

.update-lightbox-list {
  margin: 10px 0 12px;
  max-height: 180px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-alt);
}

.update-lightbox-list-item {
  padding: 8px 10px;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 14px;
}

.update-lightbox-list-item:last-child {
  border-bottom: 0;
}

.updates-progress-flow {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

@media (max-width: 760px) {
  .topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .topbar-right {
    width: 100%;
    justify-content: space-between;
  }

  .app-workspace {
    grid-template-columns: 1fr;
  }

  .explorer-panel {
    position: static;
  }

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

  .dashboard-two-col {
    grid-template-columns: 1fr;
  }

  .donut-row {
    justify-content: flex-start;
  }

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

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

  .settings-sidebar {
    position: static;
  }

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

  .updates-panel-header {
    flex-direction: column;
    align-items: stretch;
  }

  .update-card {
    flex-direction: column;
  }

  .update-card-side {
    justify-items: stretch;
  }

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

  .deploy-status-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .deployment-status-actions {
    width: 100%;
  }

  .wizard-version-row {
    flex-direction: column;
    align-items: flex-start;
  }

  h1 {
    font-size: 22px;
  }
}