/* ==========================================================================
   AURORA: the results screen's glass layer.
   Loaded after studio.css. It changes how the existing screen looks, not what
   it shows: ambient light behind frosted cards, a navy gradient rail, the
   workflow tracker, the Copilot panel and a glass command palette.
   Scoped to the results screen (.studio-canvas / .studio-sidebar) so the
   intake page and the admin portal keep their own look.
   ========================================================================== */
:root {
  --au-accent: #2563EB;
  --au-accent-2: #4F46E5;
  --au-ai: #7C3AED;
  --au-ok: #10B981;
  --au-ink: #0C1530;
  --au-glass: rgba(255, 255, 255, 0.66);
  --au-glass-strong: rgba(255, 255, 255, 0.86);
  --au-edge: rgba(255, 255, 255, 0.92);
  --au-line: rgba(37, 99, 235, 0.14);
  --au-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 14px 34px -16px rgba(37, 99, 235, 0.3);
  --au-shadow-hover: 0 1px 2px rgba(15, 23, 42, 0.06), 0 22px 44px -16px rgba(37, 99, 235, 0.4);
}

/* ---- ambient light ---- */
.studio-canvas {
  background:
    radial-gradient(620px 420px at 12% -6%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(560px 460px at 92% 12%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(640px 480px at 40% 108%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(160deg, #EEF3FC, #E6EDFB) !important;
  background-attachment: fixed !important;
}

/* ---- frosted cards ---- */
.studio-canvas .studio-card,
.studio-canvas .exec-card,
.studio-canvas .studio-page-head,
.studio-canvas .home-theme-card,
.studio-canvas .studio-kpi,
.studio-canvas .studio-hero,
.studio-canvas .ai-sec,
.studio-canvas .studio-fact {
  background: var(--au-glass) !important;
  border: 1px solid var(--au-edge) !important;
  border-radius: 16px !important;
  box-shadow: var(--au-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
}
.studio-canvas #tabular-suite-card {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}
.studio-canvas .studio-card,
.studio-canvas .studio-kpi,
.studio-canvas .home-theme-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.studio-canvas .studio-card:hover,
.studio-canvas .studio-kpi:hover {
  transform: translateY(-2px);
  box-shadow: var(--au-shadow-hover) !important;
}
.studio-canvas .studio-fact { border-radius: 12px !important; box-shadow: none !important; background: var(--au-glass-strong) !important; }
.studio-canvas .ai-sec { background: var(--au-glass-strong) !important; }
.studio-canvas .table-responsive,
.studio-canvas .enterprise-table { border-radius: 12px; }
.studio-canvas .enterprise-table thead th {
  background: linear-gradient(180deg, rgba(37, 99, 235, 0.08), rgba(37, 99, 235, 0.04)) !important;
  color: #1E3A8A !important;
}

/* ---- hero: the recommendation ---- */
.studio-canvas .studio-hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(238, 243, 252, 0.7)) !important;
}
.studio-canvas .studio-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -70%;
  width: 60%;
  height: 140%;
  background: radial-gradient(closest-side, rgba(124, 58, 237, 0.2), transparent);
  pointer-events: none;
}
.studio-canvas .studio-strategy {
  background: linear-gradient(90deg, var(--au-accent), var(--au-ai));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--au-accent);
}

/* ---- AI card: violet, so generated content reads as generated ---- */
.studio-canvas .exec-ai {
  background: linear-gradient(135deg, rgba(244, 239, 254, 0.9), rgba(255, 255, 255, 0.7)) !important;
}
.studio-canvas .exec-ai .studio-card-title::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  border-radius: 50%;
  background: conic-gradient(var(--au-accent), var(--au-ai), #38BDF8, var(--au-accent));
  box-shadow: 0 0 10px rgba(124, 58, 237, 0.6);
}

/* ---- page header ---- */
.studio-canvas .studio-title { letter-spacing: -0.6px; }
.studio-canvas .studio-btn-primary {
  background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}

/* ---- rail: navy gradient with a lit active item ---- */
.studio-sidebar {
  background: linear-gradient(180deg, #0A1230 0%, #11205A 100%) !important;
  box-shadow: 8px 0 40px -22px rgba(10, 18, 48, 0.7);
}
.studio-sidebar .studio-nav .ent-tab-btn {
  border-radius: 11px !important;
  transition: background 0.15s ease, color 0.15s ease;
}
.studio-sidebar .studio-nav .ent-tab-btn:hover { background: rgba(255, 255, 255, 0.07) !important; }
.studio-sidebar .studio-nav .ent-tab-btn.active {
  background: linear-gradient(90deg, rgba(59, 110, 240, 0.5), rgba(124, 58, 237, 0.3)) !important;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.28), 0 6px 18px -8px rgba(59, 110, 240, 0.8) !important;
}

/* ---- workflow tracker ---- */
.flow-tracker {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 6px;
  list-style: none;
  margin: 0 0 14px;
  padding: 12px 18px;
  background: var(--au-glass);
  border: 1px solid var(--au-edge);
  border-radius: 16px;
  box-shadow: var(--au-shadow);
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
}
.flow-tracker li {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-weight: 700;
  font-size: 13px;
  color: #66749A;
}
.flow-tracker li::before {
  content: "";
  position: absolute;
  top: 13px;
  left: 34px;
  right: -4px;
  height: 2px;
  background: var(--au-line);
}
.flow-tracker li:last-child::before { display: none; }
.flow-tracker li.done::before { background: linear-gradient(90deg, var(--au-ok), var(--au-accent)); }
.flow-tracker b {
  position: relative;
  z-index: 1;
  width: 28px;
  height: 28px;
  margin-bottom: 4px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 12px var(--font-mono, monospace);
  background: var(--au-glass-strong);
  border: 1px solid var(--au-line);
}
.flow-tracker small { font-weight: 500; font-size: 11.5px; color: #66749A; }
.flow-tracker li.done { color: var(--au-ink); }
.flow-tracker li.done b { background: var(--au-ok); border-color: transparent; color: #fff; }
.flow-tracker li.now { color: var(--au-accent); }
.flow-tracker li.now b {
  background: linear-gradient(135deg, var(--au-accent), var(--au-ai));
  border-color: transparent;
  color: #fff;
  box-shadow: 0 0 0 5px rgba(37, 99, 235, 0.18);
  animation: au-pulse 2.4s ease-in-out infinite;
}
@keyframes au-pulse { 50% { box-shadow: 0 0 0 9px rgba(37, 99, 235, 0.05); } }
@media (max-width: 900px) {
  .flow-tracker { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 12px; }
  .flow-tracker li::before { display: none; }
}

/* ---- Copilot ---- */
.cp-orb {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(from 200deg, var(--au-accent), var(--au-ai), #38BDF8, var(--au-accent));
  box-shadow: 0 0 18px rgba(124, 58, 237, 0.55);
  animation: au-spin 9s linear infinite;
}
.cp-orb::after { content: ""; position: absolute; inset: 5px; border-radius: 50%; background: #fff; }
@keyframes au-spin { to { transform: rotate(360deg); } }

.cp-launcher {
  position: fixed;
  z-index: 900;
  right: 20px;
  bottom: calc(20px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px 9px 10px;
  border: 1px solid var(--au-edge);
  border-radius: 999px;
  background: var(--au-glass-strong);
  color: var(--au-ink);
  font-weight: 700;
  box-shadow: var(--au-shadow-hover);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  cursor: pointer;
}
.cp-launcher[hidden], .cp-panel[hidden] { display: none !important; }
.cp-launcher[aria-expanded="true"] { display: none; }

.cp-panel {
  position: fixed;
  z-index: 950;
  top: 12px;
  right: 12px;
  bottom: 12px;
  width: 348px;
  max-width: calc(100vw - 24px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--au-edge);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(244, 247, 254, 0.86));
  box-shadow: 0 30px 70px -24px rgba(15, 23, 42, 0.45), var(--au-shadow);
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
  color: #3A4766;
  font-size: 13px;
}
.cp-head { display: flex; align-items: center; gap: 10px; padding: 14px 14px 12px; border-bottom: 1px solid var(--au-line); }
.cp-head strong { display: block; color: var(--au-ink); font-size: 14px; }
.cp-head small { color: #66749A; font-size: 12px; }
.cp-conf { margin-left: auto; text-align: right; font: 600 10px/1.2 var(--font-mono, monospace); letter-spacing: 0.6px; text-transform: uppercase; color: #66749A; }
.cp-conf strong { font: 800 17px var(--font-sans, sans-serif); letter-spacing: -0.3px; text-transform: none; color: var(--au-ai); }
.cp-close { border: 0; background: none; font-size: 22px; line-height: 1; color: #66749A; cursor: pointer; padding: 2px 6px; border-radius: 8px; }
.cp-close:hover { background: rgba(37, 99, 235, 0.08); }
.cp-thread { flex: 1; min-height: 200px; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.cp-msg { max-width: 94%; padding: 9px 12px; border-radius: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.cp-msg ul { margin: 6px 0 0; padding-left: 18px; }
.cp-msg li { margin-bottom: 3px; }
.cp-ai { align-self: flex-start; background: #fff; border: 1px solid var(--au-line); border-top-left-radius: 4px; }
.cp-me { align-self: flex-end; color: #fff; background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)); border-top-right-radius: 4px; }
.cp-tag { display: block; margin-bottom: 3px; font: 600 10px var(--font-mono, monospace); letter-spacing: 0.8px; text-transform: uppercase; color: var(--au-ai); }
.cp-fine { display: block; margin-top: 6px; font-size: 11.5px; color: #66749A; }
.cp-label { display: block; margin-bottom: 6px; font: 600 10.5px var(--font-mono, monospace); letter-spacing: 0.8px; text-transform: uppercase; color: #66749A; }
.cp-team { margin: 0 14px 8px; padding: 8px 12px; border-radius: 12px; background: rgba(124, 58, 237, 0.08); }
.cp-team ul { margin: 0; padding-left: 16px; }
.cp-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 14px 8px; }
.cp-chips button { padding: 5px 11px; border: 1px solid var(--au-line); border-radius: 999px; background: #fff; color: var(--au-ink); font-weight: 600; font-size: 12px; font-family: inherit; cursor: pointer; }
.cp-chips button:hover { border-color: var(--au-ai); color: var(--au-ai); }
.cp-actions { padding: 0 14px 8px; }
.cp-actions > div { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.cp-act { display: block; width: 100%; margin: 0; padding: 7px 11px; border: 1px solid var(--au-line); border-radius: 11px; background: #fff; color: var(--au-ink); font-weight: 600; font-size: 12.5px; font-family: inherit; text-align: left; cursor: pointer; }
.cp-act:hover { background: rgba(37, 99, 235, 0.06); }
.cp-form { display: flex; gap: 8px; padding: 10px 14px; border-top: 1px solid var(--au-line); }
.cp-form input { flex: 1; min-width: 0; padding: 8px 12px; border: 1px solid var(--au-line); border-radius: 11px; background: #fff; font: inherit; color: var(--au-ink); }
.cp-form input:focus { outline: 2px solid var(--au-accent); outline-offset: 1px; }
.cp-send { padding: 8px 14px; border: 0; border-radius: 11px; color: #fff; font-weight: 700; background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)); cursor: pointer; }
.cp-foot { margin: 0; padding: 0 14px 12px; font-size: 11px; color: #66749A; }

/* Wide screens dock the panel: the work area makes room for it. */
@media (min-width: 1500px) {
  body.copilot-open #portal-user { padding-right: 372px; }
}
@media (max-width: 700px) {
  .cp-panel { top: auto; height: 78vh; left: 8px; right: 8px; width: auto; max-width: none; }
}

/* ---- command palette ---- */
.cmd-palette-backdrop { background: rgba(6, 10, 28, 0.42) !important; }
.cmd-palette {
  background: rgba(255, 255, 255, 0.86) !important;
  border: 1px solid var(--au-edge) !important;
  border-radius: 18px !important;
  box-shadow: 0 40px 80px -24px rgba(6, 10, 28, 0.55) !important;
  -webkit-backdrop-filter: blur(22px) saturate(1.4);
  backdrop-filter: blur(22px) saturate(1.4);
}

@media (prefers-reduced-motion: reduce) {
  .cp-orb, .flow-tracker li.now b { animation: none; }
  .studio-canvas .studio-card, .studio-canvas .studio-kpi { transition: none; }
}
@media print {
  .cp-launcher, .cp-panel, .flow-tracker { display: none !important; }
}

/* ==========================================================================
   The same layer on the intake page (/user before a scan).
   ========================================================================== */
#portal-user .intake-main {
  background:
    radial-gradient(620px 420px at 12% -6%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(560px 460px at 92% 12%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(640px 480px at 40% 108%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(160deg, #EEF3FC, #E6EDFB) !important;
  background-attachment: fixed !important;
}
#portal-user .intake-sidebar {
  background: linear-gradient(180deg, #0A1230 0%, #11205A 100%) !important;
  box-shadow: 8px 0 40px -22px rgba(10, 18, 48, 0.7);
}
#portal-user .intake-sidebar .intake-nav-item { border-radius: 11px !important; }
#portal-user .intake-sidebar .intake-nav-item.active {
  background: linear-gradient(90deg, rgba(59, 110, 240, 0.5), rgba(124, 58, 237, 0.3)) !important;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.28), 0 6px 18px -8px rgba(59, 110, 240, 0.8) !important;
}
#portal-user .intake-main .studio-page-head,
#portal-user .intake-main .intake-step,
#portal-user .intake-main .studio-card {
  background: var(--au-glass) !important;
  border: 1px solid var(--au-edge) !important;
  border-radius: 16px !important;
  box-shadow: var(--au-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
}
#portal-user .intake-choice {
  background: var(--au-glass-strong) !important;
  border: 1px solid var(--au-line) !important;
  border-radius: 14px !important;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}
#portal-user .intake-choice:hover { transform: translateY(-2px); box-shadow: var(--au-shadow-hover); border-color: rgba(37, 99, 235, 0.4) !important; }
#portal-user .intake-choice.active {
  border-color: var(--au-accent) !important;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.08)) !important;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), var(--au-shadow) !important;
}
#portal-user .intake-main .studio-btn-primary,
#portal-user .intake-main #btn-run-scan {
  background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
#portal-user .intake-step-num {
  background: linear-gradient(135deg, var(--au-accent), var(--au-ai)) !important;
  color: #fff !important;
}
#portal-user .intake-main input[type="text"]:focus,
#portal-user .intake-main textarea:focus { outline: 2px solid var(--au-accent); outline-offset: 1px; }

/* ==========================================================================
   The Control Tower (/admin): same shell as the studio.
   The dark masthead, breadcrumb row and title banner give way to the studio's
   navy rail and light top bar; the controls they held live in the top bar.
   ========================================================================== */
body:has(#portal-admin.active) .azure-masthead,
body:has(#portal-admin.active) .azure-sub-header {
  display: none !important;
}
#portal-admin .admin-shell { align-items: stretch !important; min-height: 100vh; }
#portal-admin .admin-sidenav {
  flex: 0 0 264px !important;
  width: 264px !important;
  height: 100vh;
  overflow-y: auto;
  padding: 20px 16px !important;
  gap: 2px !important;
  background: linear-gradient(180deg, #0A1230 0%, #11205A 100%) !important;
  border-right: 0 !important;
  box-shadow: 8px 0 40px -22px rgba(10, 18, 48, 0.7);
}
#portal-admin .au-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 8px 18px;
  margin-bottom: 6px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  color: #fff;
}
#portal-admin .au-brand img { width: 34px; height: 34px; border-radius: 9px; background: #fff; padding: 2px; }
#portal-admin .au-brand b { display: block; font: 700 16px var(--font-display, "Space Grotesk", sans-serif); letter-spacing: -0.2px; }
#portal-admin .au-brand small { display: block; font: 500 10px var(--font-mono, monospace); letter-spacing: 0.9px; text-transform: uppercase; color: #8EA0D6; }
#portal-admin .admin-nav-group {
  padding: 14px 10px 4px !important;
  font: 600 10.5px var(--font-mono, monospace) !important;
  letter-spacing: 1px !important;
  text-transform: uppercase !important;
  color: #6E80B8 !important;
}
#portal-admin .admin-nav-item {
  padding: 9px 10px !important;
  border-radius: 11px !important;
  font-size: 14px !important;
  color: #B7C3E8 !important;
  text-decoration: none;
}
#portal-admin .admin-nav-item:hover { background: rgba(255, 255, 255, 0.07) !important; color: #fff !important; }
#portal-admin .admin-nav-item.active,
#portal-admin .admin-nav-item[aria-current="page"] {
  background: linear-gradient(90deg, rgba(59, 110, 240, 0.5), rgba(124, 58, 237, 0.3)) !important;
  color: #fff !important;
  box-shadow: inset 0 0 0 1px rgba(160, 180, 255, 0.28), 0 6px 18px -8px rgba(59, 110, 240, 0.8) !important;
}
#portal-admin .admin-main {
  background:
    radial-gradient(620px 420px at 12% -6%, rgba(37, 99, 235, 0.2), transparent 70%),
    radial-gradient(560px 460px at 92% 12%, rgba(124, 58, 237, 0.16), transparent 70%),
    radial-gradient(640px 480px at 40% 108%, rgba(14, 165, 233, 0.16), transparent 70%),
    linear-gradient(160deg, #EEF3FC, #E6EDFB);
  background-attachment: fixed;
}
#portal-admin .admin-topbar { position: sticky; top: 0; z-index: 20; }
#portal-admin .au-top-btn {
  padding: 6px 12px;
  border: 1px solid var(--au-line);
  border-radius: 10px;
  background: var(--au-glass-strong);
  color: var(--au-ink);
  font-weight: 600;
  font-size: 13px;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
}
#portal-admin .au-top-btn:hover { background: rgba(37, 99, 235, 0.08); }
#portal-admin .metric-card,
#portal-admin .section-card,
#portal-admin .cockpit-kpi-card,
#portal-admin .resource-card,
#portal-admin .offering-tier-card,
#portal-admin .roadmap-quarter-card,
#portal-admin .wave-milestone-card {
  background: var(--au-glass) !important;
  border: 1px solid var(--au-edge) !important;
  border-radius: 16px !important;
  box-shadow: var(--au-shadow) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.35);
  backdrop-filter: blur(16px) saturate(1.35);
}
#portal-admin .admin-greeting-title { font-family: var(--font-display, "Space Grotesk", sans-serif); letter-spacing: -0.6px; }
#portal-admin .header-action-btn.primary,
#portal-admin .header-action-btn:last-child {
  background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)) !important;
  border: 0 !important;
}
@media (max-width: 900px) {
  #portal-admin .admin-sidenav { width: 100% !important; height: auto; flex-direction: row !important; }
  #portal-admin .au-brand, #portal-admin .admin-nav-group { display: none !important; }
}
@media print { #portal-admin .admin-sidenav, #portal-admin .admin-topbar { display: none !important; } }

#portal-admin .au-brand,
#portal-admin .au-brand:hover,
#portal-admin .admin-nav-link,
#portal-admin .admin-topbar a { text-decoration: none; }
#portal-admin .admin-topbar .studio-breadcrumb-link { color: var(--au-accent); }
#portal-admin .au-brand b, #portal-admin .au-brand small { text-decoration: none; }

/* ==========================================================================
   Sign in and reset password: the same look as the pages behind them.
   ========================================================================== */
body.login-page, body.reset-page {
  background:
    radial-gradient(620px 420px at 12% -6%, rgba(37, 99, 235, 0.22), transparent 70%),
    radial-gradient(560px 460px at 92% 12%, rgba(124, 58, 237, 0.18), transparent 70%),
    radial-gradient(640px 480px at 40% 108%, rgba(14, 165, 233, 0.18), transparent 70%),
    linear-gradient(160deg, #EEF3FC, #E6EDFB) fixed !important;
}
body.login-page .login-card, body.reset-page .reset-card {
  background: var(--au-glass-strong) !important;
  border: 1px solid var(--au-edge) !important;
  border-radius: 20px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05), 0 28px 60px -24px rgba(37, 99, 235, 0.4) !important;
  -webkit-backdrop-filter: blur(18px) saturate(1.35);
  backdrop-filter: blur(18px) saturate(1.35);
}
.au-auth-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 18px; color: var(--au-ink); text-decoration: none; }
.au-auth-brand img { width: 36px; height: 36px; border-radius: 10px; }
.au-auth-brand b { display: block; font: 700 17px var(--font-display, "Space Grotesk", sans-serif); letter-spacing: -0.2px; }
.au-auth-brand small { display: block; font: 500 10px var(--font-mono, monospace); letter-spacing: 0.9px; text-transform: uppercase; color: #66749A; }
body.login-page .login-brand, body.reset-page .reset-brand { font-family: var(--font-display, "Space Grotesk", sans-serif); letter-spacing: -0.4px; }
body.login-page .login-submit, body.reset-page .reset-submit {
  background: linear-gradient(135deg, var(--au-accent), var(--au-accent-2)) !important;
  border: 0 !important;
  box-shadow: 0 10px 24px -10px rgba(37, 99, 235, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.3) !important;
}
body.login-page .login-input:focus, body.reset-page .reset-input:focus {
  outline: 2px solid var(--au-accent); outline-offset: 1px; border-color: var(--au-accent) !important;
}
body.login-page .login-link { color: var(--au-accent) !important; }

/* ---- Admin: Test Runs ---- */
.tr-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 4px 0 16px; }
.tr-stat { padding: 14px 16px; border-radius: 14px; background: var(--au-glass-strong); border: 1px solid var(--au-line); display: flex; flex-direction: column; gap: 2px; }
.tr-stat strong { font: 700 24px/1.2 var(--font-display, "Space Grotesk", sans-serif); color: var(--au-ink); font-variant-numeric: tabular-nums; }
.tr-stat-label { font: 600 10.5px var(--font-mono, monospace); letter-spacing: 0.8px; text-transform: uppercase; color: #66749A; }
.tr-stat-note { font-size: 12px; color: #66749A; min-height: 1em; }
.tr-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-weight: 700; font-size: 12px; }
.tr-ok { color: #047857; background: rgba(16, 185, 129, 0.14); }
.tr-bad { color: #B91C1C; background: rgba(220, 38, 38, 0.12); }
.tr-trend { margin: 0 0 16px; padding: 12px 14px; border-radius: 14px; background: var(--au-glass-strong); border: 1px solid var(--au-line); }
.tr-trend svg { width: 100%; height: 120px; display: block; }
.tr-trend figcaption { margin-top: 6px; font-size: 12px; color: #66749A; }
.tr-note { display: block; font-size: 11.5px; color: #66749A; }
.tr-toggle { padding: 4px 10px; border: 1px solid var(--au-line); border-radius: 8px; background: #fff; color: var(--au-accent); font-weight: 600; font-size: 12px; cursor: pointer; }
.tr-detail > td { background: rgba(37, 99, 235, 0.04); padding: 8px 16px 14px; }
.tr-failrow ul { margin: 0; padding-left: 18px; }
.tr-failrow code { font-size: 12px; overflow-wrap: anywhere; white-space: pre-wrap; }
.tr-empty { padding: 20px; border: 1px dashed var(--au-line); border-radius: 14px; color: #3A4766; }
.tr-empty pre { margin: 8px 0; padding: 10px 12px; border-radius: 10px; background: #0F1729; color: #D5DBEA; overflow-x: auto; }
@media (max-width: 800px) { .tr-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Admin: assessments that are not in the portfolio yet */
.au-banner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin: 14px 24px 0; padding: 12px 16px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1), rgba(124, 58, 237, 0.1)); border: 1px solid var(--au-line); color: #3A4766; }
.au-banner[hidden] { display: none; }
.au-banner > div { flex: 1 1 320px; display: flex; flex-direction: column; gap: 2px; font-size: 13.5px; }
.au-banner strong { color: var(--au-ink); }

/* Scan History: the AI model column */
.ai-model-cell { display: block; font: 600 12px var(--font-mono, monospace); color: #4C1D95; max-width: 240px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ai-model-via { display: block; font-size: 11px; color: #66749A; }
.ai-model-none { color: #66749A; font-size: 12.5px; }

/* ==========================================================================
   VM scan (intake, "VM scan" in the rail)
   ========================================================================== */
#user-standby-state.vm-mode .studio-canvas > .intake-head-code,
#user-standby-state.vm-mode .studio-canvas > .intake-layout { display: none !important; }
.vm-view[hidden], .vm-results[hidden] { display: none !important; }
.vm-view { display: flex; flex-direction: column; gap: 16px; }
.vm-sources { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.vm-source { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; text-align: left; border-radius: 14px; cursor: pointer;
  border: 1px solid var(--au-line); background: var(--au-glass-strong); color: var(--au-ink); font-family: inherit; transition: transform .2s, box-shadow .2s, border-color .2s; }
.vm-source:hover { transform: translateY(-2px); box-shadow: var(--au-shadow-hover); }
.vm-source.active { border-color: var(--au-accent); box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14), var(--au-shadow); background: linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(124, 58, 237, 0.06)); }
.vm-source.is-planned { opacity: 0.82; }
.vm-source-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vm-source-top strong { font-size: 13.5px; line-height: 1.3; }
.vm-source-sub { font-size: 12.5px; color: #3A4766; line-height: 1.45; }
.vm-chip { flex: none; padding: 2px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.vm-chip-available { color: #047857; background: rgba(16, 185, 129, 0.14); }
.vm-chip-planned { color: #A15C07; background: rgba(217, 119, 6, 0.14); }
.vm-chip-future { color: #66749A; background: rgba(102, 116, 154, 0.16); }
.vm-steps { margin: 0 0 14px; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; font-size: 13px; color: #3A4766; }
.vm-planned { padding: 12px 14px; border-radius: 12px; background: rgba(217, 119, 6, 0.08); border: 1px solid rgba(217, 119, 6, 0.25); font-size: 13px; color: #3A4766; }
.vm-downloads { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.vm-after { margin: 8px 0; font-size: 13px; font-weight: 600; color: var(--au-ink); }
.vm-upload { display: flex; flex-direction: column; gap: 10px; }
.vm-file { display: flex; flex-direction: column; gap: 6px; padding: 14px; border: 1px dashed var(--au-accent); border-radius: 12px; background: rgba(37, 99, 235, 0.04); font-size: 13px; font-weight: 600; color: var(--au-ink); cursor: pointer; }
.vm-upload-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vm-template { font-size: 13px; font-weight: 600; color: var(--au-accent); }
.vm-matrix-wrap { overflow-x: auto; margin-top: 8px; }
.vm-matrix { width: 100%; border-collapse: collapse; font-size: 12px; }
.vm-matrix th, .vm-matrix td { padding: 6px 5px; border-bottom: 1px solid var(--au-line); text-align: center; }
.vm-matrix thead th { font: 600 10px var(--font-mono, monospace); letter-spacing: .3px; color: #66749A; vertical-align: bottom; }
.vm-matrix tbody th { text-align: left; font-weight: 600; color: var(--au-ink); white-space: nowrap; padding-right: 10px; }
.vm-col-available { background: rgba(16, 185, 129, 0.06); }
.vm-cell-yes { color: #047857; font-weight: 700; } .vm-cell-partial { color: #A15C07; } .vm-cell-manual { color: #4F46E5; } .vm-cell-no { color: #94A3B8; }
.vm-legend { display: flex; flex-wrap: wrap; gap: 4px 12px; margin: 10px 0 2px; font-size: 11.5px; color: #66749A; }
.vm-legend-note { margin: 0; font-size: 11.5px; color: #66749A; }
.vm-results { padding: 18px 20px; border-radius: 16px; background: var(--au-glass); border: 1px solid var(--au-edge); box-shadow: var(--au-shadow); }
.vm-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.vm-stat { padding: 10px 12px; border-radius: 12px; background: var(--au-glass-strong); border: 1px solid var(--au-line); display: flex; flex-direction: column; gap: 2px; }
.vm-stat span { font: 600 10px var(--font-mono, monospace); letter-spacing: .6px; text-transform: uppercase; color: #66749A; }
.vm-stat strong { font: 700 20px var(--font-display, "Space Grotesk", sans-serif); color: var(--au-ink); font-variant-numeric: tabular-nums; }
.vm-h { margin: 14px 0 6px; font-size: 14px; color: var(--au-ink); }
.vm-issues { margin: 0 0 8px; padding-left: 18px; font-size: 12.5px; color: #3A4766; }
.vm-bad { color: #B91C1C; }
.vm-sub { display: block; font-size: 11.5px; color: #66749A; }
.vm-life { padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 700; white-space: nowrap; }
.vm-life-eol { color: #B91C1C; background: rgba(220, 38, 38, 0.12); }
.vm-life-approaching { color: #A15C07; background: rgba(217, 119, 6, 0.14); }
.vm-life-supported { color: #047857; background: rgba(16, 185, 129, 0.14); }
.vm-life-unknown { color: #66749A; background: rgba(102, 116, 154, 0.14); }
@media (max-width: 900px) { .vm-sources { grid-template-columns: 1fr; } }
.vm-stack { display: flex; flex-direction: column; gap: 16px; }
.vm-matrix-card .vm-matrix { min-width: 640px; }

/* ---- Admin: VM Inventory ---- */
.vmi-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.vmi-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 4px 0 14px; }
.vmi-tile { padding: 12px 14px; border-radius: 14px; background: var(--au-glass-strong); border: 1px solid var(--au-line); display: flex; flex-direction: column; gap: 2px; }
.vmi-tile span { font: 600 10.5px var(--font-mono, monospace); letter-spacing: 0.8px; text-transform: uppercase; color: #66749A; }
.vmi-tile strong { font: 700 22px/1.2 var(--font-display, "Space Grotesk", sans-serif); color: var(--au-ink); font-variant-numeric: tabular-nums; }
.vmi-tile small { color: #66749A; font-size: 12px; }
.vmi-verdicts { display: flex; flex-wrap: wrap; gap: 10px; margin: 0 0 14px; }
.vmi-vcount { display: inline-flex; align-items: center; gap: 6px; }
.vmi-vcount b { font-variant-numeric: tabular-nums; color: var(--au-ink); }
.vmi-chip { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vmi-ok { color: #047857; background: rgba(16, 185, 129, 0.14); } .vmi-warn { color: #A15C07; background: rgba(217, 119, 6, 0.14); }
.vmi-bad { color: #B91C1C; background: rgba(220, 38, 38, 0.12); } .vmi-muted { color: #66749A; background: rgba(102, 116, 154, 0.16); }
.vmi-table td { vertical-align: top; } .vmi-table small { display: block; color: #66749A; font-size: 11.5px; max-width: 360px; white-space: normal; }
.vmi-num { white-space: nowrap; font-variant-numeric: tabular-nums; } .vmi-best { background: rgba(16, 185, 129, 0.08); font-weight: 700; }
.vmi-assumptions { margin-top: 14px; font-size: 13px; color: #3A4766; } .vmi-assumptions summary { cursor: pointer; font-weight: 600; color: var(--au-ink); }
.vmi-empty { padding: 20px; border: 1px dashed var(--au-line); border-radius: 14px; color: #3A4766; }

/* VM scan: the long page scrolls inside the intake instead of being clipped. */
#portal-user #user-standby-state.intake-main.vm-mode:not(.hidden) { overflow-y: auto !important; overflow-x: hidden !important; }
#user-standby-state.vm-mode .studio-canvas { overflow: visible !important; flex: 0 0 auto !important; }
.login-sso-note { margin: 12px 0 0; text-align: center; font-size: 12px; color: #66749A; }

/* VM scan: choose servers and run assessments */
.vm-assess-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 14px 0 6px; }
.vm-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--au-ink); }
.vm-stack { display: flex; flex-wrap: wrap; gap: 4px; }
.vm-stack i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: rgba(37, 99, 235, 0.1); color: #1E3A8A; font-size: 11.5px; white-space: nowrap; }

/* ---- VM migration assessment (shared by VM scan and Admin > VM Inventory) ---- */
.vmx-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 4px 0 12px; }
.vmx-tile { padding: 12px 14px; border-radius: 14px; background: var(--au-glass-strong); border: 1px solid var(--au-line); display: flex; flex-direction: column; gap: 2px; }
.vmx-tile span { font: 600 10.5px var(--font-mono, monospace); letter-spacing: .8px; text-transform: uppercase; color: #66749A; }
.vmx-tile strong { font: 700 22px/1.2 var(--font-display, "Space Grotesk", sans-serif); color: var(--au-ink); font-variant-numeric: tabular-nums; }
.vmx-tile small, .vmx-note { color: #66749A; font-size: 12px; }
.vmx-filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 10px 0; }
.vmx-f { padding: 5px 12px; border-radius: 999px; border: 1px solid var(--au-line); background: #fff; color: var(--au-ink); font: 600 12.5px inherit; font-family: inherit; cursor: pointer; }
.vmx-f.is-on { background: var(--au-accent); border-color: var(--au-accent); color: #fff; }
.vmx-sep { width: 1px; height: 22px; background: var(--au-line); }
.vmx-select, .vmx-search { padding: 6px 10px; border: 1px solid var(--au-line); border-radius: 10px; background: #fff; font-family: inherit; font-size: 13px; }
.vmx-search { min-width: 220px; }
.vmx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 8px 0; }
.vmx-check { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: 13px; color: var(--au-ink); }
.vmx-table td { vertical-align: top; } .vmx-table small { display: block; color: #66749A; font-size: 11.5px; max-width: 340px; white-space: normal; }
.vmx-num { white-space: nowrap; font-variant-numeric: tabular-nums; } .vmx-target { min-width: 220px; }
.vmx-stack { display: flex; flex-wrap: wrap; gap: 4px; max-width: 240px; }
.vmx-stack i { font-style: normal; padding: 1px 8px; border-radius: 999px; background: rgba(37, 99, 235, .1); color: #1E3A8A; font-size: 11.5px; white-space: nowrap; }
.vmx-chip, .vmx-risk { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.vmx-retire { color: #5B6472; background: rgba(102,116,154,.16); } .vmx-rehost { color: #047857; background: rgba(16,185,129,.14); }
.vmx-replatform { color: #1D4FB8; background: rgba(37,99,235,.12); } .vmx-refactor { color: #B91C1C; background: rgba(220,38,38,.12); }
.vmx-repurchase { color: #6D28D9; background: rgba(124,58,237,.14); }
.vmx-risk-high { color: #B91C1C; background: rgba(220,38,38,.12); } .vmx-risk-medium { color: #A15C07; background: rgba(217,119,6,.14); } .vmx-risk-low { color: #047857; background: rgba(16,185,129,.14); }
.vmx-assumptions { margin-top: 14px; font-size: 13px; color: #3A4766; } .vmx-assumptions summary { cursor: pointer; font-weight: 600; color: var(--au-ink); }
.vm-banner { margin: 10px 0 14px; padding: 12px 16px; border-radius: 12px; background: rgba(16, 185, 129, 0.12); border: 1px solid rgba(16, 185, 129, 0.35); color: #064E3B; font-weight: 600; font-size: 14px; }
.vm-banner[hidden] { display: none; }
.vm-banner a { color: #1D4FB8; }
.vmx-save { color: #047857; font-weight: 700; } .vmx-add { color: #B91C1C; font-weight: 700; }

/* VM scan: network scan form */
.vm-net textarea { width: 100%; font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--border, rgba(120,130,160,.35)); background: var(--surface, #fff); color: inherit; resize: vertical; }
.vm-net-label { font-weight: 600; font-size: 13px; }
.vm-net-size { display: flex; flex-wrap: wrap; gap: 14px; }
.vm-net-size label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; }
.vm-net-size input, .vm-net-size select { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border, rgba(120,130,160,.35)); background: var(--surface, #fff); color: inherit; min-width: 120px; }
.vm-net-table { max-height: 320px; overflow: auto; margin-top: 8px; }
.vm-net-down td { opacity: .55; }
.vm-net-creds { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.vm-net-creds fieldset { border: 1px solid var(--border, rgba(120,130,160,.35)); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; }
.vm-net-creds legend { font-weight: 600; font-size: 12px; padding: 0 6px; }
.vm-net-creds label { display: flex; flex-direction: column; gap: 3px; font-size: 12px; }
.vm-net-creds input, .vm-net-creds textarea { padding: 7px 10px; border-radius: 8px; border: 1px solid var(--border, rgba(120,130,160,.35)); background: var(--surface, #fff); color: inherit; font: 12px/1.4 ui-monospace, Menlo, monospace; }
.vm-net-why { opacity: .8; }
.vm-net-table td small { opacity: .75; }

/* VM assessment report: tabs over one assessment */
.vmr-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 4px 0 10px; }
.vmr-head span { font-size: 12px; opacity: .7; }
.vmr-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid var(--border, rgba(120,130,160,.3)); margin-bottom: 14px; }
.vmr-tab { background: none; border: 0; border-bottom: 2px solid transparent; padding: 9px 14px; font: inherit; font-size: 13px; font-weight: 600; color: inherit; opacity: .65; cursor: pointer; }
.vmr-tab:hover { opacity: 1; }
.vmr-tab.is-on { opacity: 1; border-bottom-color: var(--accent, #4f46e5); color: var(--accent, #4f46e5); }
.vmr-tab:focus-visible { outline: 2px solid var(--accent, #4f46e5); outline-offset: 2px; }
.vmr-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; margin: 16px 0; }
.vmr-bars h4, .vmr-sub, .vmr-find h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; opacity: .7; margin: 14px 0 8px; }
.vmr-bar { display: grid; grid-template-columns: minmax(110px, 38%) 1fr auto; align-items: center; gap: 8px; margin: 5px 0; font-size: 13px; }
.vmr-bar i { display: block; height: 10px; border-radius: 6px; background: linear-gradient(90deg, var(--accent, #4f46e5), #22d3ee); }
.vmr-bar b { font-variant-numeric: tabular-nums; }
.vmr-bar small { grid-column: 2 / 4; opacity: .7; margin-top: -2px; }
.vmr-cost .vmr-bar { grid-template-columns: minmax(200px, 42%) 1fr auto; }
.vmr-find { border: 1px solid var(--border, rgba(120,130,160,.3)); border-radius: 12px; padding: 4px 16px 10px; margin: 8px 0 14px; background: rgba(251, 191, 36, .07); }
.vmr-find ul { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }
.vmr-list { margin: 0; padding-left: 16px; font-size: 12px; }
.vmr-warn { color: #dc2626; }
.vmr-ports { word-break: break-word; }
.vmr-empty { padding: 18px; opacity: .75; font-size: 13px; }
.vmr-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 12px; }
.vmr-frame { width: 100%; height: 70vh; border: 1px solid var(--border, rgba(120,130,160,.3)); border-radius: 12px; background: #fff; }
.vmr-unread { border: 1px solid rgba(220, 38, 38, .35); border-radius: 10px; padding: 8px 14px; margin: 10px 0; font-size: 13px; }
.vmr-unread ul { margin: 6px 0 0; padding-left: 18px; }

/* VM assessment as a page of its own */
.vm-report-page { display: flex; flex-direction: column; gap: 14px; padding-bottom: 40px; }
.vm-report-body { background: var(--surface, rgba(255,255,255,.55)); border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 16px; padding: 18px 20px 24px; }
.vm-report-page .vmr-frame { height: 75vh; }

/* VM assessment: workloads, readiness, plan */
.vmr-srvs { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.vmr-srv { border: 1px solid var(--border, rgba(120,130,160,.28)); border-radius: 10px; background: var(--surface, rgba(255,255,255,.5)); }
.vmr-srv > summary { display: grid; grid-template-columns: 14px minmax(130px, 220px) 1fr auto; gap: 12px; align-items: center; padding: 9px 14px; cursor: pointer; font-size: 13px; list-style: none; }
.vmr-srv > summary::-webkit-details-marker { display: none; }
.vmr-srv > summary::before { content: '▸'; opacity: .6; }
.vmr-srv[open] > summary::before { content: '▾'; }
.vmr-srv > summary span { opacity: .75; min-width: 0; }
.vmr-srv > summary em { font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; }
.vmr-srv > div { padding: 0 12px 10px; }
.vmr-dots { display: flex; gap: 4px; flex-wrap: wrap; }
.vmr-s { display: inline-block; width: 11px; height: 11px; border-radius: 3px; background: #94a3b8; }
.vmr-s-ready, .vmr-seg-ready { background: #16a34a; } .vmr-s-work, .vmr-seg-work { background: #f59e0b; }
.vmr-s-blocker, .vmr-seg-blocker { background: #dc2626; } .vmr-s-unknown, .vmr-seg-unknown { background: #94a3b8; }
.vmr-key { display: inline-flex; gap: 10px; align-items: center; margin-left: 8px; }
.vmr-stack { display: flex; height: 12px; border-radius: 6px; overflow: hidden; min-width: 160px; background: rgba(148,163,184,.2); }
.vmr-seg { display: block; height: 100%; }
/* Cost bars: the option's monthly cost against the largest option. */
.vmr-seg-cost { background: linear-gradient(90deg, #2563eb, #4f46e5); border-radius: inherit; }
.vmr-barcell { min-width: 180px; }
.vmr-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.vmr-pill-ready { background: #dcfce7; color: #166534; } .vmr-pill-work { background: #fef3c7; color: #92400e; }
.vmr-pill-blocker { background: #fee2e2; color: #991b1b; } .vmr-pill-unknown { background: #e2e8f0; color: #475569; }
.vmr-move { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e0e7ff; color: #3730a3; }
.vmr-move-container { background: #cffafe; color: #155e75; } .vmr-move-managed { background: #ede9fe; color: #5b21b6; } .vmr-move-not-paas { background: #f1f5f9; color: #475569; }
.vmr-q { font-size: 13px; line-height: 1.6; padding-left: 20px; }
.vmr-ev { opacity: .65; }

/* VM scan: one server's migration report */
.vms { display: flex; flex-direction: column; gap: 14px; }
.vms-back { font-size: 13px; font-weight: 600; text-decoration: none; color: var(--accent, #4f46e5); }
.vms-hero { border-radius: 16px; padding: 18px 20px; color: #e6ecff; background: linear-gradient(120deg, #0b1533, #1d3a8a 60%, #4c1d95); }
.vms-hero h2 { margin: 0; font-size: 22px; color: #fff; }
.vms-hero p { margin: 2px 0 0; color: #c7d2fe; font-size: 13px; }
.vms-hero .vms-meta { color: #a5b4fc; font-size: 12px; }
.vms-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 14px; }
.vms-kpi { background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.vms-kpi strong { font-size: 18px; color: #fff; line-height: 1.25; }
.vms-kpi span { font: 600 10.5px/1.3 ui-monospace, Menlo, monospace; letter-spacing: .06em; text-transform: uppercase; color: #a5b4fc; }
.vms-kpi small { font-size: 11px; color: #c7d2fe; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vms-kpi-high strong { color: #86efac; } .vms-kpi-medium strong { color: #fcd34d; } .vms-kpi-low strong { color: #fca5a5; } .vms-kpi-bad strong { color: #fca5a5; }
.vms-sec { margin: 4px 0 10px; }
.vms-sec h3 { font-size: 13px; text-transform: uppercase; letter-spacing: .07em; margin: 14px 0 8px; padding: 8px 12px; border-radius: 8px; color: #fff; background: linear-gradient(90deg, #0f1f4b, #1e40af); }
.vms-summary { font-size: 14px; line-height: 1.65; margin: 0; padding: 12px 14px; border-radius: 10px; background: var(--surface, rgba(255,255,255,.6)); border: 1px solid var(--border, rgba(120,130,160,.25)); }
.vms-flow { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 10px; }
.vms-flow-col { border: 1px solid var(--border, rgba(120,130,160,.28)); border-radius: 12px; padding: 10px 12px; background: var(--surface, rgba(255,255,255,.55)); }
.vms-flow-col h4 { margin: 0 0 6px; font-size: 13px; display: flex; justify-content: space-between; }
.vms-flow-col h4 em { font-style: normal; font-size: 11px; padding: 0 8px; border-radius: 999px; background: #e0e7ff; color: #3730a3; }
.vms-flow-col ul { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.6; }
.vms-flow-bad { border-color: rgba(220,38,38,.4); } .vms-flow-bad h4 em { background: #fee2e2; color: #991b1b; }
.vms-flow-app h4 em { background: #dcfce7; color: #166534; } .vms-flow-data h4 em { background: #ede9fe; color: #5b21b6; }
.vms-grid, .vms-kv { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 8px; }
.vms-kv { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-bottom: 8px; }
.vms-grid > div, .vms-kv > div { border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 10px; padding: 8px 10px; display: flex; flex-direction: column; gap: 2px; background: var(--surface, rgba(255,255,255,.55)); }
.vms-grid span, .vms-kv span { font-size: 10.5px; text-transform: uppercase; letter-spacing: .06em; opacity: .65; }
.vms-grid b, .vms-kv b { font-size: 13px; font-weight: 600; word-break: break-word; }
.vms-pill { display: inline-block; padding: 1px 9px; border-radius: 999px; font-size: 11px; font-weight: 700; background: #e2e8f0; color: #334155; white-space: nowrap; }
.vms-pill-ready, .vms-pill-good, .vms-pill-low, .vms-pill-move-as-is, .vms-pill-recommended { background: #dcfce7; color: #166534; }
.vms-pill-work, .vms-pill-possible, .vms-pill-medium, .vms-pill-modify { background: #fef3c7; color: #92400e; }
.vms-pill-blocker, .vms-pill-poor, .vms-pill-high, .vms-pill-replace { background: #fee2e2; color: #991b1b; }
.vms-pill-unknown, .vms-pill-todo, .vms-pill-type { background: #e2e8f0; color: #475569; }
.vms-pill-replace { background: #e0e7ff; color: #3730a3; }
.vms-list { margin: 0; padding-left: 16px; font-size: 12px; line-height: 1.55; }
.vms-cat { border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 8px; padding: 6px 10px; margin: 4px 0; font-size: 13px; }
.vms-cat summary { cursor: pointer; font-weight: 600; text-transform: capitalize; }
.vms-cat summary em { font-style: normal; opacity: .6; margin-left: 6px; }
.vms-blockers { display: flex; flex-direction: column; gap: 8px; }
.vms-blockers > div { border-left: 4px solid #dc2626; background: rgba(254,226,226,.5); border-radius: 8px; padding: 8px 12px; }
.vms-blockers p { margin: 2px 0 0; font-size: 13px; }
.vms-paths { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.vms-path { border-radius: 12px; padding: 12px 14px; border: 1px solid var(--border, rgba(120,130,160,.25)); }
.vms-path h4 { margin: 0 0 6px; font-size: 14px; display: flex; gap: 8px; align-items: center; }
.vms-path p { margin: 0 0 6px; font-size: 13px; }
.vms-path-short { background: rgba(220,252,231,.45); border-color: rgba(22,163,74,.35); }
.vms-path-long { background: rgba(224,231,255,.5); border-color: rgba(79,70,229,.35); }
.vms-rec td { background: rgba(220,252,231,.35); }
.vms-sprints { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 10px; }
.vms-sprint { border-left: 4px solid var(--accent, #4f46e5); border-radius: 8px; padding: 8px 12px; background: var(--surface, rgba(255,255,255,.55)); }
.vms-sprint h4 { margin: 0 0 4px; font-size: 13px; display: flex; justify-content: space-between; }
.vms-sprint h4 em { font-style: normal; opacity: .7; font-weight: 500; }
.vms-exit { font-size: 12px; margin: 6px 0 0; opacity: .8; }
.vms-done { list-style: none; padding: 0; margin: 0; font-size: 13px; line-height: 1.8; }
.vms-done li::before { content: '☐'; margin-right: 8px; opacity: .7; }
.vms-files { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 10px; }
.vms-file { border: 1px solid var(--border, rgba(120,130,160,.28)); border-radius: 12px; padding: 10px 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface, rgba(255,255,255,.55)); }
.vms-file-head { display: flex; flex-direction: column; gap: 4px; }
.vms-file-head code { font-size: 11.5px; opacity: .75; }
.vms-file pre { max-height: 320px; overflow: auto; font-size: 11.5px; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; margin: 6px 0 0; }
.vms-dl { align-self: flex-start; }
.vmx-srv-link, .vmr-open a { color: var(--accent, #4f46e5); text-decoration: none; font-weight: 600; }
.vmx-srv-link:hover, .vmr-open a:hover { text-decoration: underline; }
.vmr-open { margin: 0 0 6px; font-size: 13px; }

/* VM assessment laid out as the code scan's results: the report's sections in the sidebar, and the dashboard grid */
#scanner-section.vm-report-active > nav.intake-nav:not(.vm-report-nav) { display: none !important; }
.vm-report-nav[hidden] { display: none !important; }
.vm-report-nav .vm-rnav { width: 100%; text-align: left; background: none; border: 0; font: inherit; cursor: pointer; }
.vm-dash { display: flex; flex-direction: column; gap: 18px; }
.vm-dash .dash-grid { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.vm-dash .dash-grid > * { margin: 0; min-width: 0; width: auto; }
.vm-dash .dash-hero { grid-column: span 7; padding: 26px 28px; gap: 28px; }
.vm-dash .dash-hero .studio-hero-body { min-width: 0; }
.vm-dash .dash-ai { grid-column: span 5; }
.vm-dash .dash-kpis { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 16px; }
.vm-dash .dash-blockers, .vm-dash .dash-actions { grid-column: span 6; }
.vm-dash .exec-card { display: flex; flex-direction: column; }
.vm-dash .exec-card-link { margin-top: auto; padding-top: 12px; align-self: flex-start; }
.vm-dash .dash-ai .action-index .vms-pill { font-size: 10.5px; }
.vm-dash .studio-hero-note { overflow: hidden; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; }
.vm-status-good { background: #dcfce7 !important; color: #166534 !important; }
.vm-status-bad { background: #fee2e2 !important; color: #991b1b !important; }
.vm-status-neutral { background: #e0e7ff !important; color: #3730a3 !important; }
@media (max-width: 1280px) { .vm-dash .dash-hero, .vm-dash .dash-ai { grid-column: 1 / -1; } }
@media (max-width: 720px) { .vm-dash .dash-blockers, .vm-dash .dash-actions { grid-column: 1 / -1; } }
/* The tab strip gives way to the sidebar; the header names the stack by value, as the code scan's does. */
.vmr-tabs[hidden] { display: none !important; }
#vm-report-eyebrow { display: block !important; font: 600 11px/1.6 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #66749A; margin: 0 0 2px; }
#vm-report-eyebrow:empty { display: none !important; }
#vm-report-eyebrow .exec-fact-key { display: none !important; }
#vm-report-eyebrow .exec-fact { display: inline !important; margin: 0 !important; padding: 0 !important; background: none !important; border: none !important; }
#vm-report-eyebrow .exec-fact + .exec-fact::before { content: '\00B7'; padding: 0 8px; color: #C7CCD8; }
.scan-progress-steps li.is-failed .scan-step-mark { background: #fee2e2; color: #991b1b; }
.scan-progress-steps li.is-failed .scan-step-text { color: #991b1b; }

/* VM scan intake, laid out as the code scan's: short, with the detail folded away */
#portal-user .intake-step .intake-choices.scanner-tabs.vm-sources { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
@media (max-width: 1100px) { #portal-user .intake-step .intake-choices.scanner-tabs.vm-sources { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
#portal-user .intake-step .tab-btn.intake-choice.vm-source { min-height: 96px !important; }
.vm-coming { margin: 12px 0 0; font-size: 12px; color: #66749A; display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.vm-coming > span:first-child { font-weight: 600; margin-right: 2px; }
.vm-intake .vm-how, .vm-intake .vm-compare, .vm-intake .vm-key { font-size: 12.5px; color: #5B6472; margin: 10px 0 0; }
.vm-intake .vm-how summary, .vm-intake .vm-compare summary, .vm-intake .vm-key summary { cursor: pointer; font-weight: 600; color: #1D4FB8; }
.vm-intake .vm-how ol { margin: 8px 0 6px; padding-left: 18px; line-height: 1.55; }
.vm-intake .vm-how p { margin: 0; }
.vm-intake .vm-compare .vm-matrix-wrap { margin-top: 10px; overflow-x: auto; }
.vm-intake .vm-drop { border: 1.5px dashed #B9C6E6; border-radius: 12px; padding: 22px; display: flex; flex-direction: column; align-items: center; gap: 8px; background: #FAFBFF; font-weight: 600; }
.vm-intake .vm-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 16px; padding-top: 14px; border-top: 1px solid #E7E9EF; }
.vm-intake .vm-foot-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.vm-intake .vm-net-creds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 10px; }
@media (max-width: 800px) { .vm-intake .vm-net-creds { grid-template-columns: 1fr; } }
.vm-intake .vm-net-creds fieldset { padding: 8px 12px 10px; }
.vm-intake .vm-net-creds label { flex-direction: row; align-items: center; gap: 8px; }
.vm-intake .vm-net-creds label input { flex: 1; }
.vm-intake .vm-key textarea { width: 100%; margin-top: 6px; }
.vm-intake .vm-downloads { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.vm-intake .user-report-open { text-decoration: none; display: flex; flex-direction: column; }

/* Readiness, in the order to deal with it */
.vmr-readiness { display: flex; flex-direction: column; gap: 18px; }
.vmr-rintro { background: #fff; border: 1px solid #E7E9EF; border-radius: 14px; padding: 16px 18px; }
.vmr-rintro p { margin: 0 0 14px; font-size: 13.5px; line-height: 1.65; color: #3B4556; }
.vmr-rtiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .vmr-rtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vmr-rtile { --t: #64748B; text-align: left; border: 1px solid color-mix(in srgb, var(--t) 30%, #fff); border-top: 4px solid var(--t); border-radius: 12px; padding: 12px 14px;
  background: color-mix(in srgb, var(--t) 7%, #fff); cursor: pointer; display: flex; flex-direction: column; gap: 2px; font: inherit; }
.vmr-rtile strong { font-size: 26px; line-height: 1.1; color: var(--t); }
.vmr-rtile span { font-weight: 700; color: #121A2C; font-size: 13px; }
.vmr-rtile small { color: #5B6472; font-size: 12px; }
.vmr-rtile:hover { box-shadow: 0 4px 14px rgba(18, 26, 44, .08); }
.vmr-rtile-blocker { --t: #DC2626; } .vmr-rtile-work { --t: #D97706; } .vmr-rtile-unknown { --t: #64748B; } .vmr-rtile-ready { --t: #059669; }
.vmr-rstep { background: #fff; border: 1px solid #E7E9EF; border-radius: 14px; padding: 14px 18px 16px; scroll-margin-top: 80px; }
.vmr-rstep > header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 10px; }
.vmr-rstep > header h3 { margin: 0; font-size: 16px; color: #121A2C; }
.vmr-rstep > header p { margin: 2px 0 0; font-size: 12.5px; color: #5B6472; }
#rd-blockers { border-left: 5px solid #DC2626; } #rd-work { border-left: 5px solid #D97706; } #rd-questions { border-left: 5px solid #94A3B8; }
#rd-areas, #rd-servers, #rd-ready { border-left: 5px solid #059669; }
.vmr-rtable td { vertical-align: top; font-size: 13px; }
.vmr-rtable td small { display: block; margin-top: 3px; color: #5B6472; }
.vmr-ok { margin: 0; padding: 10px 12px; border-radius: 10px; background: #ECFDF5; color: #166534; font-size: 13px; font-weight: 600; }
.vmr-rfilters { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.vmr-showall { margin-top: 8px; }

/* A short guide at the top of each tab, and the order to read a report in */
.vmg { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 12px 16px; margin: 0 0 16px;
  border-radius: 12px; background: linear-gradient(120deg, #F5F8FF, #F7F3FF); border: 1px solid #E3E8F6; }
.vmg-body { min-width: 0; }
.vmg-what { margin: 0; font-size: 13.5px; color: #3B4556; }
.vmg-take { margin: 6px 0 0; font-size: 14px; color: #121A2C; }
.vmg-legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 8px 0 0; font-size: 12px; }
.vmg-legend > div { display: flex; gap: 6px; }
.vmg-legend dt { font-weight: 700; color: #1D4FB8; }
.vmg-legend dd { margin: 0; color: #5B6472; }
.vmg-next { white-space: nowrap; align-self: center; }
.vmg-end { background: none; border: 0; padding: 0; margin: 4px 0 0; justify-content: flex-end; }
.vmg-order { display: flex; flex-wrap: wrap; align-items: stretch; gap: 8px; }
.vmg-order > span { align-self: center; font: 600 11px/1 ui-monospace, Menlo, monospace; letter-spacing: .08em; text-transform: uppercase; color: #66749A; margin-right: 4px; }
.vmg-order button { display: grid; grid-template-columns: auto 1fr; column-gap: 8px; align-items: center; text-align: left; padding: 8px 12px; border-radius: 10px;
  border: 1px solid #E3E8F6; background: #fff; cursor: pointer; font: inherit; }
.vmg-order button:hover { border-color: #B9C6E6; box-shadow: 0 2px 10px rgba(18, 26, 44, .06); }
.vmg-order b { grid-row: span 2; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: #1D4FB8; color: #fff; font-size: 12px; }
.vmg-order button span { font-weight: 700; font-size: 13px; color: #121A2C; }
.vmg-order small { font-size: 11.5px; color: #66749A; }
.vmx-clamp { display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* A one-line pointer to the tab that owns a piece of data, so nothing is shown twice. */
.vmr-link-line { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin: 12px 0 0; padding: 10px 14px; border: 1px dashed var(--border-color, #d5dbe3); border-radius: 10px; font-size: 13px; color: var(--text-secondary, #475467); }
.vmr-link-line .exec-card-link { margin: 0; }

/* Sections laid open rather than folded: a server's block, the software by kind, the figures' basis. */
.vmr-srv > .vmr-srv-head { display: grid; grid-template-columns: minmax(130px, 220px) 1fr auto; gap: 12px; align-items: center; padding: 10px 14px; font-size: 13px; border-bottom: 1px solid var(--border, rgba(120,130,160,.2)); background: rgba(43,110,203,.04); border-radius: 10px 10px 0 0; }
.vmr-srv > .vmr-srv-head span { opacity: .75; min-width: 0; }
.vmr-srv > .vmr-srv-head em { font-style: normal; font-variant-numeric: tabular-nums; opacity: .8; white-space: nowrap; }
.vmr-srv > .table-responsive, .vmr-srv > .vmr-open, .vmr-srv > .vmx-note, .vmr-srv > .vmr-empty { margin: 8px 12px 10px; }
.vmr-srvs + .vmr-showall { margin-top: 4px; }
@media (max-width: 640px) { .vmr-srv > .vmr-srv-head { grid-template-columns: 1fr; gap: 4px; } }
.vms-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 8px; }
.vms-cat h4 { margin: 0 0 4px; font-size: 13px; text-transform: capitalize; }
.vms-cat h4 em { font-style: normal; opacity: .6; margin-left: 6px; }
.vms-cat ul { max-height: 220px; overflow: auto; margin: 0; }
section.vmx-assumptions { border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 10px; padding: 10px 14px; background: var(--surface, rgba(255,255,255,.5)); }
section.vmx-assumptions h4 { margin: 0 0 6px; font-size: 13px; color: var(--au-ink); }
section.vmx-assumptions ul { margin: 0 0 6px; padding-left: 18px; line-height: 1.5; }
.vm-intake .vm-how h4 { margin: 0 0 4px; font-size: 12.5px; color: #1D4FB8; }

/* AI assist: the tasks AI drafts, the model's review on request and the ground rules. */
.vmai-run { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
.vmai-status { font-size: 13px; color: #5B6472; }
.vmai-status.is-running { color: #1D4FB8; }
.vmai-status.is-off { color: #B45309; }
.vmai-status.is-done { color: #15803D; }
.vmai-review { margin-top: 14px; display: flex; flex-direction: column; gap: 12px; }
.vmai-headline { font-size: 16px; font-weight: 600; margin: 0; color: var(--au-ink, #0f172a); }
.vmai-agree { margin: 0; font-size: 13.5px; }
.vmai-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; }
.vmai-block { border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 12px; padding: 12px 14px; background: var(--surface, rgba(255,255,255,.55)); }
.vmai-block h4 { margin: 0 0 8px; font-size: 13.5px; }
.vmai-block p { margin: 0 0 4px; font-size: 13px; }
.vmai-list { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.5; }
.vmai-list li { margin-bottom: 6px; }
.vmai-list small { display: block; opacity: .75; }
.vmai-prompt { margin-top: 8px; }
.vmai-prompt > div { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: 13px; }
.vmai-prompt pre { white-space: pre-wrap; word-break: break-word; font-size: 12px; background: #0f172a; color: #e2e8f0; padding: 10px 12px; border-radius: 8px; margin: 6px 0 0; max-height: 260px; overflow: auto; }
.vmai-rules { margin: 0; padding-left: 18px; font-size: 13px; line-height: 1.6; }

/* The model a review runs on: a chip in the report header and a line with the picker in AI assist. */
.vm-ai-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px; font-size: 12px; background: rgba(43,110,203,.09); color: #1D4FB8; border: 1px solid rgba(43,110,203,.22); white-space: nowrap; }
.vm-ai-chip b { font-weight: 600; }
.vm-ai-chip.is-off { background: rgba(120,130,160,.1); color: #5B6472; border-color: rgba(120,130,160,.25); }
.vmai-model { margin: 0 0 10px; font-size: 13px; color: #3A4766; }
.vmai-pick { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 600; color: #3A4766; }
.vmai-pick .vmai-name { min-width: min(360px, 70vw); }
@media (max-width: 640px) { .vmai-pick { width: 100%; } .vmai-pick .vmai-name, .vmai-pick select { flex: 1; min-width: 0; } }

/* Self-hosted runner discovery through the customer's runner (vmconnector.js). */
.vmc { display: flex; flex-direction: column; gap: 14px; }
.vmc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 14px; }
.vmc-grid label { display: flex; flex-direction: column; gap: 4px; font-size: 12.5px; font-weight: 600; color: #3A4766; }
.vmc-grid label small { font-weight: 400; opacity: .7; }
.vmc-grid input, .vmc-grid select { font-weight: 400; }
.vmc-note, .vmc-steps { font-size: 12.5px; color: #5B6472; margin: 8px 0 0; line-height: 1.55; }
.vmc-steps { padding-left: 18px; }
.vmc-warn { font-size: 12.5px; color: #B45309; background: rgba(217,119,6,.08); border: 1px solid rgba(217,119,6,.25); border-radius: 8px; padding: 8px 10px; }
.vmc-empty { padding: 12px 14px; border: 1px dashed var(--border, rgba(120,130,160,.35)); border-radius: 10px; font-size: 13px; }
.vmc-register > summary { cursor: pointer; font-weight: 600; font-size: 13px; color: #1D4FB8; }
.vmc-progress { border: 1px solid var(--border, rgba(120,130,160,.28)); border-radius: 12px; padding: 14px; background: var(--surface, rgba(255,255,255,.6)); display: flex; flex-direction: column; gap: 10px; }
.vmc-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.vmc-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 14px; margin: 0; font-size: 12.5px; }
.vmc-facts dt { opacity: .65; } .vmc-facts dd { margin: 0; overflow-wrap: anywhere; }
.vmc-bar { height: 6px; border-radius: 999px; background: rgba(120,130,160,.18); overflow: hidden; }
.vmc-bar i { display: block; height: 100%; background: #2B6ECB; transition: width .4s ease; }
.vmc-bar i.bad { background: #C2410C; }
.vmc-phases { flex-wrap: wrap; }
.vmc-phases li.bad b { background: #C2410C; color: #fff; }
.vmc-chip { display: inline-block; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; }
.vmc-chip-ok { background: rgba(21,128,61,.12); color: #15803D; }
.vmc-chip-run { background: rgba(43,110,203,.12); color: #1D4FB8; }
.vmc-chip-bad { background: rgba(194,65,12,.12); color: #C2410C; }
.vmc-fail { border-left: 3px solid #C2410C; padding: 6px 10px; font-size: 13px; }
.vmc-fail p { margin: 4px 0 0; color: #5B6472; }
.vmc-done { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.vmc-json { max-height: 420px; overflow: auto; font-size: 11.5px; background: #0f172a; color: #e2e8f0; padding: 10px; border-radius: 8px; white-space: pre-wrap; }
.vmc-link { background: none; border: 0; padding: 0; color: #1D4FB8; font-weight: 600; cursor: pointer; }

/* Control Tower: the VM estate on the Overview, the assessment history and Start fresh (adminestate.js). */
.ove-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 12px 14px; border: 1px dashed var(--border, rgba(120,130,160,.35)); border-radius: 10px; font-size: 13px; }
.vmh { margin: 4px 0 18px; }
.vmh-head { display: flex; align-items: baseline; gap: 12px; margin: 6px 0 8px; }
.vmh-head h3 { margin: 0; font-size: 15px; }
.vmh-head span { font-size: 12.5px; color: #5B6472; }
.vmh-trend { margin: 0 0 12px; }
.vmh-trend figcaption { font-size: 12.5px; color: #5B6472; margin-bottom: 4px; }
.vmh-trend svg { width: 100%; max-width: 720px; height: auto; }
.vmh-trend svg text { font-size: 10px; fill: #5B6472; }
.vmh-trend svg line { stroke: rgba(120,130,160,.2); }
.vmh-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 12px; color: #3A4766; }
.vmh-legend i { display: inline-block; width: 10px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }
.adm-reset-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 24px; font-size: 13px; }
.adm-reset-grid h4 { margin: 0 0 6px; font-size: 13.5px; }
.adm-reset-grid ul { margin: 0; padding-left: 18px; line-height: 1.6; }
.adm-reset-form { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; font-size: 13px; }
.adm-reset-row { display: flex; flex-wrap: wrap; gap: 8px; }
.adm-reset-row input { min-width: min(320px, 100%); flex: 1; }
.btn-danger { background: #C2410C; border-color: #C2410C; color: #fff; }
.btn-danger:disabled { opacity: .5; cursor: not-allowed; }
.vmx-lines { border: 1px solid #E3E8F4; border-radius: 8px; margin: 0 0 8px; padding: 8px 12px; }
.vmx-lines summary { cursor: pointer; font-size: 13px; }
.vmx-lines .table-responsive { margin-top: 8px; }
.vmh-prices { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 10px; padding: 8px 12px; border: 1px solid #E3E8F4; border-radius: 8px; font-size: 13px; color: #475467; }

/* Leadership view (leadership.js) */
.ldr-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px; font-size: 12.5px; color: #5B6472; }
.ldr-head .btn { margin-left: auto; }
.ldr-levels { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; color: inherit; }
.ldr-levels button, .ldr-clouds button { border: 1px solid var(--border, rgba(120,130,160,.35)); background: transparent; border-radius: 8px; padding: 4px 12px; font-weight: 700; cursor: pointer; color: inherit; }
.ldr-levels button.active, .ldr-clouds button.active { background: #15803D; border-color: #15803D; color: #fff; }
.ldr-clouds { display: inline-flex; gap: 4px; margin: 0 0 8px; font-size: 12px; }
.ldr-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; margin-bottom: 14px; }
.ldr-tile { border: 1px solid var(--border, rgba(120,130,160,.25)); border-left: 4px solid #98A2B3; border-radius: 12px; padding: 12px 14px; background: var(--surface, rgba(255,255,255,.6)); display: flex; flex-direction: column; gap: 3px; }
.ldr-tile strong { font-size: 22px; font-variant-numeric: tabular-nums; }
.ldr-tile > span { font-size: 13px; font-weight: 600; }
.ldr-tile small { font-size: 11.5px; color: #5B6472; }
.ldr-good { border-left-color: #15803D; } .ldr-info { border-left-color: #2B6ECB; } .ldr-warn { border-left-color: #D97706; } .ldr-bad { border-left-color: #B91C1C; }
.ldr-sec { margin: 0 0 16px; }
.ldr-sec h3 { font-size: 15px; margin: 0 0 8px; }
.ldr-two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 14px; }
.ldr-bar { display: block; height: 8px; min-width: 80px; border-radius: 4px; background: rgba(120,130,160,.18); overflow: hidden; margin-top: 4px; }
.ldr-bar > i { display: block; height: 100%; }
.ldr-fill, .ldr-today { background: #344054; } .ldr-save { background: #15803D; } .ldr-add { background: #B91C1C; } .ldr-future { background: #2B6ECB; }
.ldr-bridge { display: grid; gap: 10px; max-width: 720px; }
.ldr-bridge > div { display: grid; grid-template-columns: 170px 1fr 90px; align-items: center; gap: 10px; font-size: 13px; }
.ldr-bridge .ldr-bar { height: 18px; margin: 0; }
.ldr-bridge b { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 600px) { .ldr-bridge > div { grid-template-columns: 1fr 80px; } .ldr-bridge .ldr-bar { grid-column: 1 / -1; grid-row: 2; } }

/* VM estate > Assessments & cost (vminventory.js) */
.vma-actions { display: flex; gap: 8px; margin-left: auto; }
.vma > section { margin: 0 0 16px; }
.vma header { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; margin-bottom: 8px; }
.vma header h3 { margin: 0; font-size: 15px; }
.vma header span { font-size: 12.5px; color: #5B6472; }
.vma-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; }
.vma-tile { border: 1px solid var(--border, rgba(120,130,160,.25)); border-radius: 12px; padding: 12px 14px; background: var(--surface, rgba(255,255,255,.6)); display: flex; flex-direction: column; gap: 3px; }
.vma-tile span { font-size: 13px; font-weight: 600; }
.vma-tile strong { font-size: 21px; font-variant-numeric: tabular-nums; }
.vma-tile small { font-size: 11.5px; color: #5B6472; }
.vma-tile small.vmx-save, .vma-tile small.vmx-add { font-weight: 600; }
.vma-stale { margin: 0 0 14px; padding: 10px 14px; border-radius: 10px; border: 1px solid #F5C26B; background: rgba(245, 194, 107, .14); font-size: 13px; }
.vma-acts { white-space: nowrap; font-size: 12.5px; }
.vma-acts a, .vma-acts button { margin-right: 10px; }
.vma-cmp p { font-size: 13px; margin: 6px 0; }
.vma td small.vmx-save, .vma td small.vmx-add { display: block; font-weight: 600; }

/* Code Fix tab: fix and deploy (React, features/fixflow) above the bundle download */
.cf-flow:empty { display: none; }
.cf-legacy { margin-top: 14px; }
.cf-legacy > summary { cursor: pointer; font-size: 13px; font-weight: 600; color: #475467; padding: 6px 0; }

/* TCO tab: cloud switch and downloads on one line, the headline, reasons beside risks. */
.vmr-tco-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-bottom: 6px; }
.vmr-tco-head .vmx-seg { display: inline-flex; gap: 6px; }
.vmr-tco-dl { font-size: 13px; color: var(--au-ink, #0C1530); }
.vmr-tco-dl a { font-weight: 600; }
.vmr-tco-headline { font-size: 18px; line-height: 1.4; margin: 8px 0 14px; color: var(--au-ink, #0C1530); }
.vmr-tco-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 16px; }
.vmr-tco-cols h4 { margin: 0 0 6px; font-size: 14px; }

/* A server with nothing serving: what the scan saw and what to do, instead of an empty table (vmserver.js). */
.vmr-none { border: 1px solid rgba(217, 119, 6, .35); background: rgba(255, 251, 235, .85); border-radius: 12px; padding: 14px 16px; }
.vmr-none p { margin: 0 0 8px; }
.vmr-none h4 { margin: 10px 0 4px; font-size: 13px; }
.vmr-none .vmx-chip { margin-right: 4px; }
