/* ==========================================================================
   MoveApp Control Tower — Apple-Inspired Enterprise Design System
   Clean Minimalism · Frosted Glass · SF Pro Typography · Signature Palette
   ========================================================================== */

/*
  Typography is deliberately NOT @import-ed here. An @import creates a serial
  request chain that delays first paint, and the previous version double-loaded
  JetBrains Mono (this @import plus a <link> in index.html) while requesting
  Plus Jakarta Sans, which no rule ever referenced. Both families are now
  requested once, from the document head, with preconnect hints.
  See templates/index.html <head>.
*/

:root {
  /* Apple Surface Hierarchy */
  --bg-app: #f5f5f7;
  --bg-surface: #ffffff;
  --bg-surface-secondary: #fbfbfd;
  --bg-surface-tertiary: #f5f5f7;
  --bg-elevated: rgba(255, 255, 255, 0.72);
  --bg-frosted: rgba(255, 255, 255, 0.82);

  /* Apple Border Palette (ultra-subtle) */
  --border-hairline: rgba(0, 0, 0, 0.06);
  --border-subtle: rgba(0, 0, 0, 0.08);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-strong: rgba(0, 0, 0, 0.18);
  /* Focus / interactive border. Darkened from #007AFF (3.28:1 on white) to
     #0066CC (5.57:1) so it satisfies WCAG 1.4.11 non-text contrast against
     both the app background and white surfaces. */
  --border-focus: #0066cc;

  /* Apple Typography Colors
     --text-muted was #86868b, which measures 3.62:1 on white and 3.34:1 on
     --bg-app — below the 4.5:1 AA floor for body text, yet it is used for
     captions, table meta and helper copy. #6f6f74 measures 4.99:1 on white and
     4.59:1 on --bg-app, clearing AA on every surface it appears on.
     --text-disabled stays #aeaeb2: WCAG 1.4.3 explicitly exempts disabled
     controls from the contrast minimum, and lightening it would make disabled
     and enabled states harder to tell apart. */
  --text-primary: #1d1d1f;
  --text-secondary: #424245;
  --text-tertiary: #6e6e73;
  --text-muted: #6f6f74;
  --text-disabled: #aeaeb2;

  /* Apple Accent Colors
     ---
     The brand accent doubles as TEXT and as a BACKGROUND BEHIND WHITE TEXT
     (46 `color: var(--apple-blue)` declarations plus every filled blue button).
     At #007AFF that is 3.28:1 in both directions — a failure either way.
     Repointed to the Green-Glass brand (--gg-brand, set in admin-theme.css)
     to unify this page's accent with control-tower-v3.html and the
     admin/user portals, which already reference --gg-brand directly. #0b7d4e
     measures ~5.18:1 on white in both directions, clearing the same AA floor
     #0066CC was chosen for. The #0066cc fallback keeps this safe even if
     admin-theme.css or its --gg-brand token is ever removed. */
  --apple-blue: var(--gg-brand, #0066cc);
  --apple-blue-hover: var(--gg-brand-hover, #0052a3);
  --apple-blue-light: var(--gg-green-subtle, #EBF5FF);
  --apple-green: #34C759;
  --apple-green-light: #E8FAF0;
  --apple-orange: #FF9500;
  --apple-orange-light: #FFF4E5;
  --apple-red: #FF3B30;
  --apple-red-light: #FFF0EF;
  --apple-purple: #AF52DE;
  --apple-purple-light: #F5EEFB;
  --apple-teal: #5AC8FA;
  --apple-indigo: #5856D6;

  /* Azure & AWS Brand (muted, tasteful) - these represent the actual Microsoft
     Azure / AWS brand colors in side-by-side platform comparisons, so they
     stay put; they are not the app's own UI accent. */
  --azure-blue: #0078d4;
  --azure-blue-subtle: #f0f8ff;
  --aws-orange: #d97706;
  --aws-orange-subtle: #fefcf3;

  /* This app's own UI accent (tab highlights, active states, sidebar icons).
     Every usage was written as var(--azure-primary, #0078d4) with no actual
     definition anywhere, so it always silently fell back to Azure blue.
     Defining it here, pointed at the Green-Glass brand, is what actually
     unifies these accents with control-tower-v3.html and admin-theme.css. */
  --azure-primary: var(--gg-brand, #0078d4);

  /* Status Colors (Apple-styled) */
  --status-compliant-bg: #E8FAF0;
  --status-compliant-text: #1B7340;
  --status-compliant-border: rgba(52, 199, 89, 0.2);
  --status-partial-bg: #FFF4E5;
  --status-partial-text: #8B5E00;
  --status-partial-border: rgba(255, 149, 0, 0.2);
  --status-action-bg: #FFF0EF;
  --status-action-text: #C41E16;
  --status-action-border: rgba(255, 59, 48, 0.2);
  --status-info-bg: #EBF5FF;
  --status-info-text: #005EC4;
  --status-info-border: rgba(0, 122, 255, 0.2);

  /* Apple Fonts */
  --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Helvetica Neue', sans-serif;
  --font-mono: 'JetBrains Mono', 'SF Mono', SFMono-Regular, ui-monospace, monospace;

  /* Apple Elevations (soft, diffused) */
  --shadow-xs: 0 0.5px 1px rgba(0, 0, 0, 0.03);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 0.5px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06), 0 1px 4px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0.5px 3px rgba(0, 0, 0, 0.02);
  --shadow-card-hover: 0 8px 28px rgba(0, 0, 0, 0.08), 0 2px 8px rgba(0, 0, 0, 0.03);

  /* Apple Radii */
  --radius-xs: 6px;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-pill: 9999px;
}

/* ==========================================================================
   RESET & GLOBAL
   ========================================================================== */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  height: 100vh;
  height: 100dvh;
  max-height: 100vh;
  overflow: hidden !important;
  margin: 0;
  padding: 0;
  background-color: var(--bg-app);
  color: var(--text-primary);
  font-family: var(--font-main);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-feature-settings: 'cv02', 'cv03', 'cv04', 'cv11';
}

body.enterprise-theme,
body.cockpit-layout {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-height: 100vh;
  background: var(--bg-app);
}

/* ==========================================================================
   GLOBAL NAVIGATION BAR — Frosted Glass Apple-Style
   ========================================================================== */
.azure-masthead {
  height: 42px;
  min-height: 42px;
  max-height: 42px;
  background: rgba(29, 29, 31, 0.94);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  flex-shrink: 0;
  z-index: 1000;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.08);
  font-family: var(--font-main);
  box-sizing: border-box;
}

.azure-masthead-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.azure-menu-hamburger {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  padding: 6px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.azure-menu-hamburger:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.azure-brand-group {
  display: flex;
  align-items: center;
  gap: 12px;
  user-select: none;
}

.azure-logo-icon {
  color: #f5f5f7;
  flex-shrink: 0;
  opacity: 0.9;
}

.ritam-masthead-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
  background: #ffffff;
  padding: 2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.ritam-masthead-logo:hover {
  transform: scale(1.05);
}

.azure-brand-name {
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -0.4px;
  color: #f5f5f7;
}

.azure-divider {
  color: rgba(255, 255, 255, 0.2);
  font-weight: 200;
  margin: 0 4px;
  font-size: 18px;
}

.azure-product-name {
  font-size: 14px;
  font-weight: 400;
  color: rgba(245, 245, 247, 0.72);
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: -0.1px;
}

.azure-version-badge {
  background: rgba(0, 122, 255, 0.2);
  color: var(--apple-teal);
  border: none;
  font-size: 10px;
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Global Search */
.azure-masthead-center {
  flex: 0 1 520px;
}

.azure-search-box {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: none;
  border-radius: var(--radius-sm);
  padding: 5px 14px;
  height: 32px;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  gap: 10px;
}

.azure-search-box:focus-within {
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 0 4px rgba(0, 122, 255, 0.15), var(--shadow-lg);
}

.azure-search-box:focus-within svg { color: var(--apple-blue); }
.azure-search-box:focus-within input { color: var(--text-primary); }
.azure-search-box:focus-within input::placeholder { color: var(--text-muted); }
.azure-search-box:focus-within .azure-search-badge { background: var(--bg-app); color: var(--text-tertiary); }

.azure-search-box input {
  background: transparent;
  border: none;
  outline: none;
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  width: 100%;
  font-family: inherit;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.azure-search-box input::placeholder {
  color: rgba(255, 255, 255, 0.4);
  font-weight: 400;
}

.azure-search-badge {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.5);
  font-size: 10px;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  font-family: var(--font-mono);
  white-space: nowrap;
  font-weight: 500;
}

/* Masthead Right */
.azure-masthead-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

.azure-util-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.64);
  padding: 6px 8px;
  border-radius: var(--radius-xs);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.azure-util-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.azure-shell-icon {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: var(--radius-xs);
}

.azure-unread-dot {
  position: absolute;
  top: 4px;
  right: 5px;
  width: 7px;
  height: 7px;
  background: var(--apple-red);
  border-radius: 50%;
  border: 1.5px solid rgba(29, 29, 31, 0.92);
}

.azure-tenant-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: all 0.3s ease;
}

.azure-tenant-badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.azure-avatar-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  padding: 3px 6px;
  border-radius: var(--radius-sm);
  transition: all 0.3s ease;
}

.azure-avatar-chip:hover {
  background: rgba(255, 255, 255, 0.08);
}

.azure-avatar-caret {
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.2s ease;
  flex-shrink: 0;
}

.azure-avatar-chip[aria-expanded="true"] .azure-avatar-caret {
  transform: rotate(180deg);
}

/* Brand lockup doubles as the Home link since the portal switcher was removed. */
.azure-brand-home {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  border-radius: var(--radius-sm);
  padding: 2px 4px;
  transition: background 0.2s ease;
}

.azure-brand-home:hover {
  background: rgba(255, 255, 255, 0.08);
}


.azure-avatar-circle {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--apple-blue), var(--apple-indigo));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.3px;
}

.azure-avatar-label {
  font-size: 12.5px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.85);
  letter-spacing: -0.1px;
}

/* ==========================================================================
   SUB-HEADER — Breadcrumbs & Service Title (Apple Clean White)
   ========================================================================== */
.azure-sub-header {
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-hairline);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.03), 0 1px 2px rgba(0, 0, 0, 0.02);
  flex-shrink: 0;
}

.azure-sub-header-top {
  padding: 4px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(0, 0, 0, 0.04);
  box-sizing: border-box;
}

.azure-breadcrumbs {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}

.bc-link {
  color: #0b7d4e;
  text-decoration: none;
  font-weight: 400;
  transition: opacity 0.2s ease;
}

.bc-link:hover { opacity: 0.72; }

.bc-sep {
  color: var(--text-disabled);
  font-size: 12px;
  font-weight: 300;
}

.bc-current {
  color: var(--text-primary);
  font-weight: 600;
}

.azure-sub-header-bottom {
  padding: 4px 24px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  box-sizing: border-box;
}

.azure-service-title-area {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 3X HERO LOGO IN HEADING PANEL */
.ritam-heading-logo-wrapper {
  position: relative;
  flex-shrink: 0;
}

.ritam-heading-logo-card {
  width: 44px;
  height: 44px;
  background: #ffffff;
  border: 1.5px solid rgba(0, 113, 227, 0.16);
  border-radius: 10px;
  padding: 3px;
  box-shadow: 0 4px 12px -2px rgba(0, 113, 227, 0.15), 0 2px 6px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  cursor: pointer;
}

.ritam-heading-logo-card:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 36px -4px rgba(0, 113, 227, 0.25), 0 4px 14px rgba(0, 0, 0, 0.08);
}

.ritam-heading-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

.ritam-logo-glow-fx {
  position: absolute;
  inset: -12px;
  background: radial-gradient(circle, rgba(0, 122, 255, 0.18) 0%, transparent 70%);
  filter: blur(12px);
  z-index: -1;
  pointer-events: none;
  border-radius: 28px;
}

.azure-service-details {
  display: flex;
  flex-direction: column;
  line-height: 1.3;
}

.ritam-heading-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

.ritam-platform-pill {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: #0071e3;
  background: rgba(0, 113, 227, 0.08);
  border: 1px solid rgba(0, 113, 227, 0.18);
  padding: 3px 10px;
  border-radius: 9999px;
}

.ritam-domain-pill {
  font-size: 11.5px;
  font-weight: 600;
  color: #1d1d1f;
  background: #ffffff;
  padding: 3px 11px 3px 9px;
  border-radius: 9999px;
  border: 1px solid rgba(0, 0, 0, 0.12);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.ritam-domain-pill:hover {
  border-color: #0071e3;
  color: #0071e3;
  transform: translateY(-1px);
}

.ritam-domain-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #34c759;
  box-shadow: 0 0 6px rgba(52, 199, 89, 0.8);
}

.ritam-status-badge {
  font-size: 11px;
  font-weight: 600;
  background: rgba(52, 199, 89, 0.08);
  color: #15803d;
  border: 1px solid rgba(52, 199, 89, 0.22);
  padding: 3px 11px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.azure-service-name-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.azure-service-name {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
  margin: 0;
  line-height: 1.2;
  white-space: nowrap;
}

.azure-version-tag {
  font-size: 10px;
  font-weight: 700;
  color: #475569;
  background: #f1f5f9;
  padding: 2px 7px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  font-family: var(--font-mono);
}

.ritam-heading-sub-row {
  display: none !important;
}

.azure-service-subtitle {
  font-size: 11px;
  color: #64748b;
  letter-spacing: -0.1px;
  line-height: 1.4;
}

/* Portal Switcher — Apple Segmented Control */
.azure-portal-switcher {
  display: flex;
  align-items: center;
  background: var(--bg-tertiary);
  padding: 3px;
  border-radius: var(--radius-sm);
  gap: 2px;
  background: rgba(0, 0, 0, 0.04);
}

.azure-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  font-size: 13px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
  letter-spacing: -0.1px;
}

.azure-tab-btn:hover {
  color: var(--text-primary);
}

.azure-tab-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 0.5px 1px rgba(0, 0, 0, 0.04);
}

.azure-count-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: rgba(0, 0, 0, 0.05);
  color: var(--text-tertiary);
}

.azure-tab-btn.active .azure-count-pill {
  background: var(--apple-blue-light);
  color: var(--apple-blue);
}

.azure-count-pill.live {
  background: var(--apple-green-light);
  color: #1B7340;
}

/* Command Bar — Apple Toolbar */
.azure-command-bar {
  display: flex;
  align-items: center;
  gap: 2px;
}

.azure-cmd-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
  background: transparent;
  border: none;
  border-radius: var(--radius-xs);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  font-family: inherit;
  letter-spacing: -0.1px;
}

.azure-cmd-btn:hover {
  background: rgba(0, 0, 0, 0.04);
  color: var(--apple-blue);
}

.azure-cmd-btn svg {
  color: var(--apple-blue);
  flex-shrink: 0;
}

.azure-cmd-primary {
  background: var(--apple-blue) !important;
  color: #ffffff !important;
  font-weight: 500;
  border-radius: var(--radius-pill) !important;
  padding: 5px 16px !important;
}

.azure-cmd-primary svg { color: #ffffff !important; }
.azure-cmd-primary:hover { background: var(--apple-blue-hover) !important; opacity: 0.92; }

.azure-cmd-accent {
  background: var(--apple-green) !important;
  color: #ffffff !important;
  font-weight: 500;
  border-radius: var(--radius-pill) !important;
  padding: 5px 16px !important;
}

.azure-cmd-accent svg { color: #ffffff !important; }
.azure-cmd-accent:hover { background: #2DA84E !important; }

/* ==========================================================================
   EXECUTIVE VISUAL COCKPIT — Apple Card Graphic Dashboard
   ========================================================================== */
.admin-visual-cockpit {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-bottom: 8px;
  flex-shrink: 0;
}

.cockpit-kpi-card {
  background: var(--bg-surface);
  border-radius: var(--radius-lg, 14px);
  padding: 12px 16px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.cockpit-kpi-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.06), 0 2px 6px rgba(0,0,0,0.04);
  border-color: var(--border-subtle);
}

.kpi-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.kpi-card-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--text-muted);
}

.kpi-card-body-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
}

/* Card 1: Radial Progress Ring */
.kpi-radial-wrapper {
  position: relative;
  width: 68px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.kpi-radial-svg {
  width: 68px;
  height: 68px;
  transform: rotate(-90deg);
}

.kpi-radial-bg {
  fill: none;
  stroke: rgba(0,0,0,0.06);
}

.kpi-radial-fg {
  fill: none;
  stroke: var(--apple-green);
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.kpi-radial-label {
  position: absolute;
  font-size: 15px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}

.kpi-radial-details {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
  min-width: 0;
}

.kpi-detail-item {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-detail-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--apple-green);
}

.kpi-detail-label {
  font-size: 11px;
  color: var(--text-secondary);
  font-weight: 500;
}

.kpi-micro-bars {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 2px;
}

.kpi-bar-row {
  display: grid;
  grid-template-columns: 85px 1fr 24px;
  align-items: center;
  gap: 6px;
  font-size: 10px;
}

.kpi-bar-label {
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-bar-track {
  height: 4px;
  background: rgba(0,0,0,0.06);
  border-radius: 2px;
  overflow: hidden;
}

.kpi-bar-fill {
  height: 100%;
  border-radius: 2px;
}

.kpi-bar-fill.emerald {
  background: var(--apple-green);
}

.kpi-bar-pct {
  color: var(--text-secondary);
  font-weight: 600;
  text-align: right;
}

/* Card 2: FinOps Comparison Graphic */
.kpi-finops-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  gap: 4px;
}

.kpi-big-metric-group {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.kpi-big-metric {
  font-size: 22px;
  font-weight: 800;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.kpi-big-metric.amber { color: #d97706; }
.kpi-big-sub { font-size: 11px; color: var(--text-muted); }

.kpi-compare-bars {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 2px;
}

.kpi-compare-row {
  display: grid;
  grid-template-columns: 105px 1fr 58px;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
}

.kpi-compare-label {
  color: var(--text-muted);
  font-size: 10px;
  white-space: nowrap;
}

.kpi-compare-track {
  height: 6px;
  background: rgba(0,0,0,0.06);
  border-radius: 3px;
  overflow: hidden;
}

.kpi-compare-fill.baseline {
  background: #94a3b8;
  height: 100%;
  border-radius: 3px;
}

.kpi-compare-fill.target {
  background: linear-gradient(90deg, #34c759, #30d158);
  height: 100%;
  border-radius: 3px;
  transition: width 0.6s ease;
}

.kpi-compare-val {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-align: right;
}

.kpi-compare-val.emerald {
  color: #1b7340;
}

.kpi-card-footer {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  margin-top: 4px;
  padding-top: 4px;
  border-top: 0.5px solid rgba(0,0,0,0.04);
}

/* Card 3: Wave Runway Pipeline */
.kpi-wave-pipeline {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.kpi-wave-step {
  flex: 1;
  background: var(--bg-app);
  border-radius: 8px;
  padding: 6px 8px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
}

.kpi-wave-step:hover {
  background: #fff;
  border-color: rgba(0,113,227,0.3);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.kpi-wave-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-bottom: 2px;
}

.kpi-wave-dot.w1 { background: #34c759; }
.kpi-wave-dot.w2 { background: #0071e3; }
.kpi-wave-dot.w3 { background: #af52de; }

.kpi-wave-badge-num {
  font-size: 12px;
  color: var(--text-primary);
}

.kpi-wave-badge-num strong {
  font-size: 15px;
  font-weight: 800;
}

.kpi-wave-sub {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}

.kpi-wave-type {
  font-size: 9px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.kpi-wave-arrow {
  color: var(--text-disabled);
  font-size: 12px;
  font-weight: 700;
}

/* Card 4: Architecture Targets Breakdown */
.kpi-targets-breakdown {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100%;
  gap: 6px;
}

.kpi-target-badge-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 4px;
}

.kpi-target-chip {
  background: var(--bg-app);
  border-radius: 6px;
  padding: 4px 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10px;
}

.kpi-chip-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  margin-right: 4px;
}

.kpi-chip-dot.blue { background: #0078d4; }
.kpi-chip-dot.orange { background: #ff9900; }

.kpi-chip-name {
  color: var(--text-secondary);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  flex: 1;
}

.kpi-chip-count {
  font-weight: 700;
  color: var(--text-primary);
  margin-left: 4px;
  font-size: 10.5px;
}

.kpi-governance-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10.5px;
  color: var(--text-muted);
  padding-top: 4px;
  border-top: 0.5px solid rgba(0,0,0,0.04);
}

/* Quadrant Summary Bar on Heatmap */
.heatmap-quadrant-summary-bar {
  display: flex;
  gap: 6px;
  align-items: center;
}

.quad-summary-chip {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.2s ease;
}

.quad-summary-chip:hover {
  transform: scale(1.04);
}

.quad-summary-chip.q1 {
  background: rgba(52, 199, 89, 0.12);
  color: #1b7340;
}

.quad-summary-chip.q2 {
  background: rgba(0, 113, 227, 0.12);
  color: #0071e3;
}

.quad-summary-chip.q4 {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

/* Portfolio View Switcher Toggle */
.portfolio-view-toggle {
  display: flex;
  background: rgba(0,0,0,0.05);
  padding: 2px;
  border-radius: 6px;
  gap: 2px;
  margin-left: auto;
  margin-right: 8px;
}

.view-toggle-btn {
  border: none;
  background: transparent;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 5px;
  transition: all 0.2s ease;
}

.view-toggle-btn.active {
  background: #ffffff;
  color: var(--text-primary);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

/* Portfolio Cards Grid View */
.portfolio-cards-scroll-container {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 12px 14px;
  min-height: 0;
}

.portfolio-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: 10px;
}

.portfolio-card {
  background: var(--bg-surface);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
  border: 1px solid rgba(0,0,0,0.04);
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all 0.22s ease;
  cursor: pointer;
}

.portfolio-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.08);
  border-color: rgba(0, 113, 227, 0.25);
}

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

.port-card-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.25;
}

.port-card-stack {
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 2px;
}

.port-card-crit {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.port-card-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: var(--bg-app);
  border-radius: 8px;
  padding: 8px 10px;
}

.port-metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.port-metric-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
}

.port-metric-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.port-metric-val.emerald { color: #1b7340; }
.port-metric-val.amber { color: #d97706; }

.port-card-targets {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.port-target-pill {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
  white-space: nowrap;
}

.port-target-pill.azure {
  background: rgba(0, 120, 212, 0.1);
  color: #0078d4;
}

.port-target-pill.aws {
  background: rgba(255, 153, 0, 0.12);
  color: #d97706;
}

.port-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 0.5px solid rgba(0,0,0,0.05);
}

.btn-icon-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: var(--radius-pill, 9999px);
  background: rgba(255, 59, 48, 0.08);
  color: #ff3b30;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease;
}

.btn-icon-delete:hover,
.btn-icon-delete:focus-visible {
  background: rgba(255, 59, 48, 0.18);
}

.port-wave-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.port-wave-pill.w1 { background: rgba(52,199,89,0.12); color: #1b7340; }
.port-wave-pill.w2 { background: rgba(0,113,227,0.12); color: #0071e3; }
.port-wave-pill.w3 { background: rgba(175,82,222,0.12); color: #af52de; }

.port-card-cta {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  gap: 3px;
  transition: gap 0.2s ease;
}

.portfolio-card:hover .port-card-cta {
  gap: 6px;
}

/* Legacy Essentials support */
.azure-essentials-blade { display: none; }
.azure-essentials-grid { display: none; }
.azure-kpi-metric { font-size: 18px; font-weight: 800; color: var(--apple-blue); }
.azure-kpi-metric.emerald { color: var(--apple-green); }
.azure-kpi-metric.amber { color: var(--apple-orange); }
.azure-kpi-metric.purple { color: var(--apple-purple); }
.azure-unit { font-size: 12px; font-weight: 400; color: var(--text-muted); }
.azure-subtext { font-size: 11px; color: var(--text-muted); }
.azure-status-pill { font-size: 11px; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); margin-left: 4px; }
.azure-status-pill.success { background: var(--apple-green-light); color: #1B7340; }
.azure-status-pill.warning { background: rgba(255, 149, 0, 0.12); color: #b45309; }
.azure-status-pill.info { background: var(--apple-blue-light); color: var(--apple-blue); }
.azure-status-pill.neutral { background: rgba(0,0,0,0.05); color: var(--text-secondary); }

.azure-mini-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--apple-green), #2DA84E);
  border-radius: var(--radius-pill);
  transition: width 0.8s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.azure-status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 4px;
}

.azure-status-dot.running {
  background: var(--apple-green);
  box-shadow: 0 0 0 3px rgba(52, 199, 89, 0.12);
}

/* ==========================================================================
   MAIN COCKPIT — Zero Scroll Viewport
   ========================================================================== */
.main-content,
.main-content.app-cockpit {
  flex: 1 1 auto;
  min-height: 0;
  height: calc(100vh - 96px - 28px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
  box-sizing: border-box;
  width: 100%;
}

/* ==========================================================================
   PORTAL VIEWS
   ========================================================================== */
.portal-view,
.view-container {
  width: 100%;
  height: 100%;
  min-height: 0;
  display: none;
  overflow: hidden;
  flex: 1;
}

.portal-view.active,
.view-container.active {
  display: flex !important;
}

#portal-home,
#portal-admin,
#portal-user {
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--bg-app);
  height: 100%;
  width: 100%;
}

/* ==========================================================================
   SHARED PORTAL PAGE CONTAINER — FULL-SCREEN UTILIZATION
   ========================================================================== */
.portal-page-container {
  width: calc(100% - 48px) !important;
  max-width: calc(100% - 48px) !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
  padding: 8px 0 16px 0 !important;
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box !important;
}

/* Portal Banner Strip */
.portal-banner {
  background: var(--bg-surface);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
  padding: 24px 28px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  border: 1px solid var(--border-hairline);
}

.portal-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 380px;
  height: 380px;
  background: radial-gradient(circle, rgba(11, 125, 78, 0.06) 0%, rgba(18, 183, 102, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.portal-banner-content {
  flex: 1;
  min-width: 0;
}

.portal-banner-badge {
  display: inline-flex;
  align-items: center;
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: rgba(18, 183, 102, 0.12);
  color: #0b7d4e;
  margin-bottom: 8px;
}

.portal-banner-badge.user-badge {
  background: rgba(18, 183, 102, 0.12);
  color: #0b7d4e;
}

.portal-banner-title {
  font-size: 24px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  margin: 0 0 6px;
}

.portal-banner-subtitle {
  font-size: 13.5px;
  line-height: 1.5;
  color: var(--text-secondary);
  margin: 0;
  max-width: 680px;
}

.portal-banner-stats {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 8px;
  flex-shrink: 0;
}

.portal-banner-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  padding: 6px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  color: var(--text-secondary);
}

.banner-pill-label {
  color: var(--text-muted);
  font-weight: 500;
}

.portal-banner-brand-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: rgba(255, 255, 255, 0.88);
  border: 1.5px solid rgba(11, 125, 78, 0.16);
  padding: 10px 20px;
  border-radius: 20px;
  box-shadow: 0 10px 28px -4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(11, 125, 78, 0.08);
  backdrop-filter: blur(14px);
  flex-shrink: 0;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-banner-brand-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -4px rgba(0, 0, 0, 0.08), 0 4px 12px rgba(11, 125, 78, 0.12);
  border-color: rgba(18, 183, 102, 0.35);
}

.portal-banner-brand-card.user-brand-card {
  margin-bottom: 2px;
}

.banner-brand-logo-frame {
  width: 88px;
  height: 88px;
  background: #ffffff;
  border-radius: 16px;
  padding: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
  flex-shrink: 0;
}

.banner-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
}

.banner-brand-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  line-height: 1.25;
}

.banner-brand-top-tag {
  font-size: 9.5px;
  font-weight: 700;
  color: #0b7d4e;
  letter-spacing: 0.8px;
  text-transform: uppercase;
}

.banner-brand-title {
  font-size: 17px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.4px;
}

.banner-brand-sub {
  font-size: 12px;
  font-weight: 600;
  color: #0b7d4e;
  letter-spacing: 0.2px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: color 0.2s ease;
}

.banner-brand-sub:hover {
  text-decoration: underline;
  color: #08613c;
}

.footer-brand-link {
  color: #0b7d4e;
  text-decoration: none;
  font-weight: 600;
}

.footer-brand-link:hover {
  text-decoration: underline;
}

/* Stage Layouts inside Portal Page Container with Generous Empty Space */
.portal-page-container .portfolio-stage-split {
  display: flex;
  flex-direction: row;
  gap: 24px;
  min-height: 540px;
  overflow: visible;
}

.portal-page-container .portfolio-left-panel {
  width: 500px;
  flex-shrink: 0;
  overflow: visible;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.portal-page-container .portfolio-right-panel {
  flex: 1;
  min-width: 0;
  overflow: visible;
}

.portal-page-container .portfolio-table-card {
  height: 100%;
  min-height: 540px;
  max-height: 640px;
  border-radius: var(--radius-xl, 16px);
  padding: 16px 20px;
  box-shadow: var(--shadow-card);
}

.portal-page-container .heatmap-card {
  border-radius: var(--radius-xl, 16px);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
}

.portal-page-container .wave-milestones-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.portal-page-container .wave-milestone-card {
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: var(--shadow-card);
}

.portal-page-container .user-cockpit-split {
  display: flex;
  flex-direction: row;
  gap: 24px;
  min-height: 620px;
  overflow: visible;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.portal-page-container .user-cockpit-split.full-output-mode {
  display: block !important;
  flex-direction: column !important;
  gap: 0 !important;
  width: 100% !important;
  max-width: 100% !important;
}

.portal-page-container .cockpit-sidebar {
  width: 360px;
  flex-shrink: 0;
  height: auto;
  max-height: 720px;
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
}

.portal-page-container .cockpit-stage {
  flex: 1;
  min-width: 0;
  height: auto;
  max-height: 720px;
  overflow-y: auto;
  border-radius: var(--radius-xl, 16px);
  gap: 24px;
}

@media (max-width: 1120px) {
  .portal-page-container .portfolio-stage-split {
    grid-template-columns: 1fr;
  }
  .portal-page-container .user-cockpit-split {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   HOME — Landing Page & Modernization Launchpad
   ========================================================================== */
.home-page {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 20px 24px 36px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* Home Hero Section */
.home-hero {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 28px;
  align-items: center;
  background: var(--bg-surface);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
  padding: 32px 36px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--border-hairline);
}

.home-hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -15%;
  width: 460px;
  height: 460px;
  background: radial-gradient(circle, rgba(0, 113, 227, 0.07) 0%, rgba(88, 86, 214, 0.03) 50%, transparent 70%);
  pointer-events: none;
}

.home-hero-content {
  flex: 1;
  max-width: 50%;
}

.home-hero-badge {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  background: var(--apple-blue-light);
  color: var(--apple-blue);
  margin-bottom: 12px;
}

.home-hero-title {
  font-size: 32px;
  line-height: 1.2;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.025em;
  margin: 0 0 12px;
}

.home-gradient-text {
  background: linear-gradient(135deg, #0071e3 0%, #5856d6 50%, #af52de 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.home-hero-subtitle {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  margin: 0 0 20px;
  max-width: 500px;
}

.home-hero-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.home-cta {
  padding: 12px 24px;
  font-size: 14.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
}

.home-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 113, 227, 0.22);
}

.home-hero-graphic {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex: 1;
}

.home-hero-svg {
  width: 100%;
  max-width: 460px;
  height: auto;
  border-radius: 14px;
  filter: drop-shadow(0 4px 16px rgba(0,0,0,0.06));
  transition: transform 0.35s ease;
}

.home-hero-svg:hover {
  transform: scale(1.015);
}

/* Home Feature Cards */
.home-features {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
}

.home-feature-card {
  flex: 1;
  background: var(--bg-surface);
  border-radius: var(--radius-lg, 14px);
  padding: 22px 24px;
  box-shadow: var(--shadow-card);
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.25, 0.1, 0.25, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  border: 1px solid var(--border-hairline);
}

.home-feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 24px rgba(0,0,0,0.07);
}

.home-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.home-feature-icon.blue {
  background: var(--apple-blue-light);
  color: var(--apple-blue);
}

.home-feature-icon.green {
  background: var(--apple-green-light);
  color: var(--apple-green);
}

.home-feature-icon.purple {
  background: rgba(175, 82, 222, 0.1);
  color: #af52de;
}

.home-feature-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 8px;
  letter-spacing: -0.2px;
}

.home-feature-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-tertiary);
  margin: 0 0 16px;
  flex: 1;
}

.home-feature-link {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--apple-blue);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.home-feature-card:hover .home-feature-link {
  gap: 8px;
}

/* Home Live Stats Strip */
.home-stats-strip {
  display: flex;
  flex-direction: row;
  justify-content: space-between;
  gap: 24px;
}

.home-stat-card {
  flex: 1;
  background: var(--bg-surface);
  border-radius: var(--radius-lg, 14px);
  padding: 18px 20px;
  box-shadow: var(--shadow-card);
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: transform 0.2s ease;
  border: 1px solid var(--border-hairline);
}

.home-stat-card:hover {
  transform: translateY(-2px);
}

.home-stat-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.home-stat-value {
  font-size: 26px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
  line-height: 1.2;
}

.home-stat-value.emerald { color: var(--apple-green); }
.home-stat-value.amber { color: var(--apple-orange); }
.home-stat-value.purple { color: #af52de; }

.home-stat-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

@media (max-width: 980px) {
  .home-hero { grid-template-columns: 1fr; }
  .home-features { grid-template-columns: 1fr; }
  .home-stats-strip { grid-template-columns: repeat(2, 1fr); }
}

/* ==========================================================================
   ADMIN — Portfolio Split Layout
   ========================================================================== */
.portfolio-stage-split {
  display: flex;
  flex: 1;
  min-height: 0;
  gap: 12px;
  overflow: hidden;
}

.portfolio-left-panel {
  width: 500px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

@media (max-width: 1200px) {
  .portfolio-left-panel { width: 420px; }
}

.portfolio-right-panel {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Heatmap Card */
.heatmap-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 12px 16px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.section-card {
  padding: 10px 16px;
  margin-bottom: 0;
}

.heatmap-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.heatmap-title-group { display: flex; flex-direction: column; }

.heatmap-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.heatmap-subtitle {
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: -0.1px;
  margin-top: 1px;
}

.heatmap-legend {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.legend-pill {
  font-size: 11px;
  font-weight: 500;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-app);
  border: none;
  color: var(--text-secondary);
}

.legend-pill .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-pill .dot.q1 { background: var(--apple-green); }
.legend-pill .dot.q2 { background: var(--apple-blue); }
.legend-pill .dot.q3 { background: var(--apple-orange); }
.legend-pill .dot.q4 { background: var(--apple-red); }

.heatmap-canvas-wrapper {
  position: relative;
  flex: 1;
  min-height: 0;
  width: 100%;
  border: none;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  overflow: hidden;
  box-shadow: inset 0 0 0 0.5px var(--border-subtle);
}

.heatmap-svg { width: 100%; height: 100%; display: block; }

.heatmap-tooltip {
  position: absolute;
  pointer-events: none;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  color: #f5f5f7;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  line-height: 1.45;
  box-shadow: var(--shadow-xl);
  z-index: 50;
  max-width: 250px;
}

/* Wave Milestones */
.wave-milestones-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  flex-shrink: 0;
  height: 80px;
}

.wave-milestone-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  box-shadow: var(--shadow-card);
}

.wave-milestone-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.wave-milestone-card.active-filter {
  background: var(--apple-blue-light);
  box-shadow: 0 0 0 2px var(--apple-blue), var(--shadow-sm);
}

.wave-tag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wave-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.wave-badge.w1 { background: var(--apple-green-light); color: #1B7340; }
.wave-badge.w2 { background: var(--apple-blue-light); color: #005EC4; }
.wave-badge.w3 { background: var(--apple-orange-light); color: #8B5E00; }

.wave-days {
  font-size: 11px;
  color: var(--text-muted);
  font-weight: 400;
}

.wave-headline {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
}

.wave-count {
  font-family: var(--font-mono);
  font-weight: 800;
  color: var(--apple-blue);
}

.wave-desc {
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Portfolio Table Card */
.portfolio-table-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.portfolio-table-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: auto;
}

.scan-history-card {
  margin-top: 16px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl, 16px);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.scan-history-card .table-responsive {
  max-height: 340px;
  overflow-y: auto;
}

.table-empty-state {
  text-align: center;
  padding: 24px 12px;
  color: var(--text-secondary, #6e6e73);
  font-size: 13px;
}

.portfolio-table-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* ==========================================================================
   USER PORTAL — Role Bar & Split
   ========================================================================== */
.role-sub-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 20px;
  border-radius: var(--radius-md);
  font-size: 13px;
  flex-shrink: 0;
  border: none;
  background: var(--bg-surface);
  box-shadow: var(--shadow-card);
}

.role-sub-bar.admin-sub-bar {
  background: var(--apple-blue-light);
}

.role-sub-bar.user-sub-bar {
  background: var(--apple-green-light);
}

.role-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.role-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--apple-blue);
}

.role-dot.green {
  background: var(--apple-green);
}

.role-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-tertiary);
  font-size: 12.5px;
}

.role-meta .divider { color: var(--text-disabled); }

/* User Cockpit Split */
.user-cockpit-split {
  display: flex;
  flex-direction: row;
  gap: 12px;
  flex: 1;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.user-cockpit-split .cockpit-sidebar {
  width: 320px;
  flex-shrink: 0;
}

.user-cockpit-split .cockpit-stage {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

/* ==========================================================================
   SIDEBAR — Apple Card with Frosted Header
   ========================================================================== */
.cockpit-sidebar {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
}

.cockpit-sidebar .sidebar-header {
  padding: 14px 16px 12px;
  flex-shrink: 0;
  border-bottom: 0.5px solid var(--border-hairline);
  background: var(--bg-surface);
}

.cockpit-sidebar .sidebar-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}

.cockpit-sidebar .sidebar-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  letter-spacing: -0.3px;
}

.panel-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--apple-blue);
  background: var(--apple-blue-light);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  border: none;
}

.cockpit-sidebar .sidebar-subtitle {
  font-size: 12.5px;
  color: var(--text-muted);
  margin-bottom: 12px;
  line-height: 1.35;
  letter-spacing: -0.1px;
}

.cockpit-sidebar .scanner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  background: rgba(0, 0, 0, 0.04);
  padding: 4px;
  border-radius: var(--radius-sm);
  border: none;
}

.cockpit-sidebar .tab-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
  font-family: inherit;
}

.cockpit-sidebar .tab-btn:hover {
  color: var(--text-primary);
}

.cockpit-sidebar .tab-btn.active {
  background: var(--bg-surface);
  color: var(--azure-primary, #0078d4);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.tab-content { display: none; }
.tab-content.active { display: block; }

.cockpit-sidebar .intake-scroll-body {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 14px;
}

/* Preset Cards — Apple Rounded */
.preset-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.preset-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-md);
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
  position: relative;
  box-shadow: var(--shadow-card);
}

.preset-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.preset-card.selected {
  background: var(--apple-blue-light);
  box-shadow: 0 0 0 2px var(--apple-blue), var(--shadow-sm);
}

.preset-card.selected::before {
  content: '✓ Active';
  position: absolute;
  top: 8px;
  right: 10px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--apple-blue);
  background: rgba(0, 122, 255, 0.1);
  padding: 2px 10px;
  border-radius: var(--radius-pill);
}

.preset-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.preset-badge {
  font-size: 10.5px;
  font-weight: 600;
  color: var(--apple-blue);
  background: var(--apple-blue-light);
  padding: 2px 9px;
  border-radius: var(--radius-pill);
  border: none;
}

.preset-runtime {
  font-size: 12px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-weight: 500;
}

.preset-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}

.preset-compact-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
  margin-top: 4px;
}

.meta-tag { color: var(--text-muted); }
.meta-sep { color: var(--text-disabled); }

/* Sidebar Footer */
.sidebar-footer {
  flex-shrink: 0;
  padding: 12px 14px;
  border-top: 0.5px solid var(--border-hairline);
  background: var(--bg-surface);
}

.btn-block { width: 100%; }

/* Dropzone */
.dropzone {
  border: 2px dashed rgba(0, 122, 255, 0.25);
  border-radius: var(--radius-lg);
  padding: 24px 14px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  background: var(--bg-surface-secondary);
}

.dropzone:hover, .dropzone.drag-over {
  border-color: var(--apple-blue);
  background: var(--apple-blue-light);
}

.file-input { display: none; }
.drop-icon { color: var(--apple-blue); margin-bottom: 8px; }
.drop-text { font-size: 13.5px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; letter-spacing: -0.1px; }
.drop-hint { font-size: 12px; color: var(--text-muted); margin-bottom: 10px; }
.drop-title { font-size: 14px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.drop-subtitle { font-size: 12px; color: var(--text-muted); margin-bottom: 8px; }
.drop-tip { font-size: 11.5px; color: #1B7340; font-weight: 600; margin-bottom: 8px; }

/* JSON Editor */
.json-editor-container,
.json-editor-wrapper {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.json-textarea,
.code-editor {
  width: 100%;
  height: 220px;
  background: var(--bg-surface-secondary);
  border: none;
  color: var(--text-primary);
  font-family: var(--font-mono);
  font-size: 12.5px;
  padding: 12px 14px;
  line-height: 1.55;
  resize: none;
  outline: none;
}

.editor-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 14px;
  background: var(--bg-app);
  border-bottom: 0.5px solid var(--border-hairline);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
}

/* ==========================================================================
   COCKPIT STAGE
   ========================================================================== */
.cockpit-stage {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
  gap: 10px;
}

.glass-panel {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
}

/* ==========================================================================
   USER PORTAL RESULTS WRAPPER & STANDBY STATE
   ========================================================================== */
.user-scan-results-wrapper {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.user-standby-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 32px;
  background: var(--bg-surface);
  border-radius: var(--radius-xl, 16px);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
  position: relative;
  border: 1px solid var(--border-hairline);
}

.standby-inner {
  max-width: 780px;
  width: 100%;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

/* Radar & Pulse Animation */
.standby-radar-wrapper {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.standby-pulse-ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  pointer-events: none;
}

.standby-pulse-ring.ring-1 {
  border: 1.5px solid rgba(0, 122, 255, 0.35);
  animation: pulseRadar 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}

.standby-pulse-ring.ring-2 {
  border: 1px solid rgba(0, 122, 255, 0.2);
  inset: -12px;
  animation: pulseRadar 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 0.75s;
}

.standby-pulse-ring.ring-3 {
  border: 1px dashed rgba(0, 122, 255, 0.12);
  inset: -24px;
  animation: pulseRadar 3s cubic-bezier(0.215, 0.61, 0.355, 1) infinite 1.5s;
}

@keyframes pulseRadar {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.08); opacity: 0.3; }
  100% { transform: scale(1.2); opacity: 0; }
}

.standby-icon-box {
  width: 60px;
  height: 60px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.12), rgba(88, 86, 214, 0.16));
  border: 1px solid rgba(0, 122, 255, 0.22);
  color: var(--apple-blue);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.15);
  position: relative;
  z-index: 2;
}

.standby-badge-row {
  margin-bottom: 12px;
}

.standby-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--apple-blue);
  background: var(--apple-blue-light);
  border: 0.5px solid rgba(0, 122, 255, 0.25);
  border-radius: 9999px;
}

.standby-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--apple-blue);
  box-shadow: 0 0 8px var(--apple-blue);
  animation: dotBlink 1.8s ease-in-out infinite;
}

@keyframes dotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.8); }
}

.standby-title {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.standby-subtitle {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-secondary);
  max-width: 640px;
  margin: 0 auto 18px;
}

/* Selected Workload Preview Box */
.standby-selected-box {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  padding: 8px 18px;
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-full);
  margin-bottom: 22px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}

.standby-selected-label {
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--text-tertiary);
}

.standby-selected-name {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--apple-blue);
}

.standby-selected-meta {
  font-size: 11.5px;
  color: var(--text-muted);
  background: rgba(0, 0, 0, 0.04);
  padding: 2px 8px;
  border-radius: 6px;
}

/* 3 Feature Cards Grid */
.standby-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  width: 100%;
  margin-bottom: 24px;
  text-align: left;
}

.standby-feature-card {
  padding: 16px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-surface-secondary);
  border: 1px solid var(--border-hairline);
  transition: all 0.2s ease;
}

.standby-feature-card:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 122, 255, 0.25);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.standby-feature-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.standby-feature-icon.azure-icon {
  background: rgba(0, 120, 212, 0.12);
  color: var(--azure-blue);
}

.standby-feature-icon.green-icon {
  background: rgba(52, 199, 89, 0.12);
  color: var(--apple-green);
}

.standby-feature-icon.purple-icon {
  background: rgba(175, 82, 222, 0.12);
  color: var(--apple-purple);
}

.standby-feature-card h4 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 6px;
}

.standby-feature-card p {
  font-size: 11.5px;
  line-height: 1.45;
  color: var(--text-secondary);
  margin: 0;
}

/* Standby CTA */
.standby-cta-row {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.standby-scan-btn {
  padding: 12px 28px;
  font-size: 14px;
  font-weight: 600;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 16px rgba(0, 122, 255, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.standby-scan-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.standby-cta-hint {
  font-size: 12px;
  color: var(--text-tertiary);
}

/* ==========================================================================
   VERDICT BLADE — Radial Gauge & Pipeline
   ========================================================================== */
#scorecard-card {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--bg-surface);
}

.verdict-blade-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: var(--bg-surface);
  border-bottom: 0.5px solid var(--border-hairline);
  gap: 20px;
  flex-shrink: 0;
}

.verdict-gauge-group {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}

.gauge-wrapper { position: relative; }

.radial-gauge-svg {
  transform: rotate(-90deg);
  display: block;
}

.gauge-bg { stroke: var(--bg-app); }

.gauge-fill {
  transition: stroke-dasharray 1s cubic-bezier(0.25, 0.1, 0.25, 1), stroke 0.5s ease;
}

.gauge-text {
  transform: rotate(90deg);
  transform-origin: 18px 18px;
  font-size: 8.5px;
  font-weight: 800;
  font-family: var(--font-main);
  fill: var(--text-primary);
  letter-spacing: -0.3px;
}

.gauge-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.gauge-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.score-badge-pill {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  width: fit-content;
}

.score-badge-pill.emerald { background: var(--apple-green-light); color: #1B7340; }
.score-badge-pill.blue { background: var(--apple-blue-light); color: var(--apple-blue); }
.score-badge-pill.amber { background: var(--apple-orange-light); color: #8B5E00; }

/* Pipeline Flow — Expanded Full Width */
.arch-pipeline-flow {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 1;
  max-width: none;
  width: 100%;
  justify-content: space-between;
}

.flow-step {
  display: flex;
  flex-direction: column;
  background: var(--bg-app);
  border: none;
  border-radius: var(--radius-md);
  padding: 8px 14px;
  flex: 1;
  min-width: 150px;
  line-height: 1.3;
  transition: all 0.3s ease;
  box-shadow: var(--shadow-xs);
}

.flow-step:hover { box-shadow: var(--shadow-sm); }

.flow-step.target-step {
  background: var(--apple-blue-light);
}

.step-label {
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-muted);
  letter-spacing: 0.5px;
}

.step-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.step-name.azure-text { color: var(--apple-blue); }

.step-sub {
  font-size: 10.5px;
  color: var(--text-muted);
  font-family: var(--font-mono);
}

.step-sub.aws-text { color: var(--apple-orange); }

.flow-arrow-track {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.flow-pill {
  font-size: 10px;
  font-weight: 600;
  background: var(--bg-app);
  border: none;
  color: var(--text-secondary);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
  box-shadow: var(--shadow-xs);
}

.flow-line-bar {
  display: flex;
  align-items: center;
  color: var(--text-disabled);
  font-size: 13px;
  font-weight: 600;
}

.line-dot {
  width: 5px;
  height: 5px;
  background: var(--text-disabled);
  border-radius: 50%;
  margin-right: 3px;
}

.flow-sub {
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.verdict-actions-col {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

/* ==========================================================================
   DIMENSION SERVICE TILES — Apple Cards
   ========================================================================== */
.azure-dimensions-tiles {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  padding: 4px 12px 6px;
  flex-shrink: 0;
}

.dim-tile {
  background: var(--bg-surface);
  border: none;
  border-top: none;
  border-radius: var(--radius-md, 8px);
  padding: 10px 12px;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-card);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.dim-tile::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2.5px;
  background: linear-gradient(90deg, var(--apple-blue), var(--apple-teal));
  border-radius: var(--radius-md) var(--radius-md) 0 0;
}

.dim-tile:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-card-hover);
}

.dim-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.dim-tile-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--apple-blue);
}

.dim-tile-sla {
  font-size: 10px;
  font-weight: 600;
  color: #1B7340;
  background: var(--apple-green-light);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.dim-tile-target {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.25;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.dim-tile-sub {
  display: none;
}

/* Real, per-scan capability data (e.g. "Edge CDN", "KEDA Autoscale") computed
   by renderCaps() in app.js - previously force-hidden, which threw away
   useful detail these tiles exist to show. */
.cap-pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 2px 0 3px;
}

.cap-pill-group .cap-pill {
  font-size: 9.5px;
  font-weight: 600;
  color: var(--text-secondary);
  background: var(--bg-app);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.dim-tile-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
  border-top: 0.5px solid var(--border-hairline);
}

.dim-tile-state {
  font-size: 10px;
  font-family: var(--font-mono);
  color: var(--text-muted);
  background: var(--bg-app);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.dim-tile-cost {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--apple-green);
  letter-spacing: -0.2px;
}

/* View Toggle */
.view-toggle-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.04);
  border-radius: var(--radius-xs);
  padding: 2px;
  margin-left: 10px;
}

.view-toggle-btn {
  background: transparent;
  border: none;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.view-toggle-btn.active {
  background: var(--bg-surface);
  color: var(--text-primary);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

/* ==========================================================================
   TABULAR SUITE PANEL
   ========================================================================== */
#tabular-suite-card {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 10px 16px 12px;
  overflow: hidden;
  background: var(--bg-surface);
}

#tabular-suite-card .panel-header {
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 0.5px solid var(--border-hairline);
}

.suite-header-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  width: 100%;
}

.suite-title-badge {
  display: flex;
  align-items: center;
  gap: 8px;
}

.suite-badge-pill {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  background: rgba(0, 120, 212, 0.1);
  color: var(--azure-primary, #0078d4);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.suite-subtitle-text {
  font-size: 12px;
  color: var(--text-muted);
}

/* Nav Tabs — Full Width, Stretched, All Visible Without Scroll Bar */
.enterprise-nav-tabs {
  display: flex;
  flex-wrap: nowrap !important;
  overflow-x: auto;
  align-items: center;
  gap: 5px;
  width: 100%;
  scrollbar-width: none !important;
  -ms-overflow-style: none !important;
  padding: 2px 0;
}

.enterprise-nav-tabs::-webkit-scrollbar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
}

.ent-tab-btn {
  flex: 0 0 auto !important;
  min-width: fit-content !important;
  background: var(--bg-subtle, rgba(0, 0, 0, 0.03));
  border: 1px solid var(--border-hairline, rgba(0, 0, 0, 0.08));
  color: var(--text-secondary);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  border-radius: 6px;
  cursor: pointer;
  white-space: nowrap;
  font-family: inherit;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  letter-spacing: -0.1px;
}

.ent-tab-btn:hover {
  background: rgba(0, 120, 212, 0.08);
  color: var(--azure-primary, #0078d4);
  border-color: rgba(0, 120, 212, 0.25);
  transform: translateY(-1px);
}

.ent-tab-btn.active {
  background: var(--azure-primary, #0078d4);
  color: #ffffff;
  font-weight: 600;
  border-color: var(--azure-primary, #0078d4);
  box-shadow: 0 1px 4px rgba(0, 120, 212, 0.35);
}

.tab-icon { font-size: 13px; }

/* ==========================================================================
   UNIFIED SYMMETRICAL COCKPIT GRID (Results Stream + Left Actions Rail)
   ========================================================================== */
.results-symmetric-grid {
  display: grid !important;
  grid-template-columns: 230px minmax(0, 1fr) !important;
  gap: 14px !important;
  width: 100% !important;
  align-items: start !important;
}

.results-main-column {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
}

.results-main-column #scorecard-card,
.results-main-column #tabular-suite-card {
  width: 100% !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  margin: 0 !important;
}

/* Left-Side Panel: Artifact Downloads & View Controls */
.suite-right-panel,
.suite-left-rail {
  grid-column: 1 !important;
  width: 230px !important;
  min-width: 230px !important;
  max-width: 230px !important;
  flex-shrink: 0;
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
  padding: 10px 12px !important;
  position: sticky !important;
  top: 8px !important;
  align-self: flex-start !important;
  background: var(--bg-surface);
  border-radius: var(--radius-lg, 12px);
  box-shadow: var(--shadow-card);
  border: 0.5px solid var(--border-subtle);
  box-sizing: border-box !important;
}

.right-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border-hairline);
}

.right-panel-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-primary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.right-panel-title svg {
  color: var(--azure-primary, #0078d4);
}

.right-panel-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.right-panel-section-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding-left: 2px;
}

.right-panel-btn-stack {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.btn-panel-action {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 6px 10px !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  border-radius: var(--radius-sm, 6px) !important;
  border: 1px solid var(--border-subtle) !important;
  background: var(--bg-app) !important;
  color: var(--text-primary) !important;
  text-decoration: none !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04) !important;
  width: 100% !important;
  box-sizing: border-box !important;
  cursor: pointer !important;
}

.btn-panel-action:hover {
  background: var(--bg-surface) !important;
  border-color: var(--azure-primary, #0078d4) !important;
  color: var(--azure-primary, #0078d4) !important;
  transform: translateX(2px) !important;
  box-shadow: 0 2px 6px rgba(0, 120, 212, 0.15) !important;
}

.btn-panel-action.btn-full-toggle {
  background: rgba(0, 120, 212, 0.06) !important;
  border-color: rgba(0, 120, 212, 0.25) !important;
  color: var(--azure-primary, #0078d4) !important;
  justify-content: flex-start !important;
}

.btn-panel-action.btn-full-toggle:hover {
  background: rgba(0, 120, 212, 0.12) !important;
  border-color: var(--azure-primary, #0078d4) !important;
}

.btn-panel-action.iac-btn {
  border-color: rgba(92, 45, 145, 0.25) !important;
  background: rgba(92, 45, 145, 0.04) !important;
}

.btn-panel-action.iac-btn:hover {
  background: rgba(92, 45, 145, 0.1) !important;
  border-color: #5c2d91 !important;
  color: #5c2d91 !important;
}

.panel-btn-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 4px;
  background: var(--bg-surface);
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.panel-btn-text {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.panel-format-badge {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 2px 5px;
  border-radius: 3px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border: 0.5px solid var(--border-subtle);
  flex-shrink: 0;
}

.panel-format-badge.iac-badge {
  background: rgba(92, 45, 145, 0.08);
  color: #5c2d91;
  border-color: rgba(92, 45, 145, 0.2);
}

@media (max-width: 768px) {
  .results-symmetric-grid {
    grid-template-columns: 1fr !important;
  }
  .suite-right-panel,
  .suite-left-rail {
    grid-column: 1 !important;
    width: 100% !important;
    min-width: 100% !important;
    max-width: 100% !important;
    position: static !important;
  }
  .suite-right-panel .right-panel-btn-stack {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  }
}

.btn-full-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-full-toggle:hover {
  transform: translateY(-1px);
}

/* Full Output Window Mode — Expands output stage to UTILIZE FULL SCREEN */
.portal-page-container.full-screen-container,
.portal-page-container:has(.full-output-mode),
body.full-output-active .portal-page-container {
  max-width: calc(100% - 48px) !important;
  width: calc(100% - 48px) !important;
  margin-left: 24px !important;
  margin-right: 24px !important;
  padding-left: 0 !important;
  padding-right: 0 !important;
  padding-top: 6px !important;
  padding-bottom: 10px !important;
  box-sizing: border-box !important;
  transition: none;
}

.portal-page-container .user-cockpit-split.full-output-mode,
.user-cockpit-split.full-output-mode {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  gap: 0 !important;
  min-height: auto !important;
  overflow: visible !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .cockpit-sidebar,
.user-cockpit-split.full-output-mode .cockpit-sidebar {
  display: none !important;
  width: 0 !important;
  height: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  overflow: hidden !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .cockpit-stage,
.user-cockpit-split.full-output-mode .cockpit-stage {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 1 1 100% !important;
  height: auto !important;
  max-height: none !important;
  overflow: visible !important;
  border-radius: var(--radius-xl, 16px);
  gap: 8px !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .user-scan-results-wrapper,
.user-cockpit-split.full-output-mode .user-scan-results-wrapper {
  display: flex !important;
  flex-direction: column !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 1 1 100% !important;
  overflow: visible !important;
  gap: 8px !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .results-symmetric-grid,
.user-cockpit-split.full-output-mode .results-symmetric-grid {
  display: grid !important;
  grid-template-columns: 270px minmax(0, 1fr) !important;
  gap: 16px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-height: calc(100vh - 180px) !important;
  align-items: stretch !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .results-main-column,
.user-cockpit-split.full-output-mode .results-main-column {
  grid-column: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 10px !important;
  width: 100% !important;
  min-width: 0 !important;
  height: 100% !important;
  flex: 1 !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .suite-right-panel,
.user-cockpit-split.full-output-mode .suite-right-panel,
.suite-left-rail {
  grid-column: 1 !important;
  width: 270px !important;
  min-width: 270px !important;
  max-width: 270px !important;
  position: sticky !important;
  top: 8px !important;
  align-self: start !important;
  height: auto !important;
}

.portal-page-container .user-cockpit-split.full-output-mode #tabular-suite-card,
.user-cockpit-split.full-output-mode #tabular-suite-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  flex: 1 !important;
  min-height: calc(100vh - 380px) !important;
  overflow: hidden !important;
  padding: 10px 16px 12px !important;
}

.portal-page-container .user-cockpit-split.full-output-mode #scorecard-card,
.user-cockpit-split.full-output-mode #scorecard-card {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  padding: 10px 16px !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .ent-tab-panel,
.user-cockpit-split.full-output-mode .ent-tab-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  min-height: calc(100vh - 460px) !important;
  height: 100% !important;
  max-height: none !important;
  overflow-y: auto !important;
}

.portal-page-container .user-cockpit-split.full-output-mode .ent-table-container,
.user-cockpit-split.full-output-mode .ent-table-container {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  overflow-x: auto !important;
}

/* Hide bulky banner and footer when scan results are displayed to fit everything in one single page */
#user-portal-container:has(#user-scan-results-wrapper:not(.hidden)) .portal-banner,
.portal-page-container.full-screen-container .portal-banner,
body.full-output-active #user-portal-container .portal-banner,
body.full-output-active .app-footer,
body:has(#user-scan-results-wrapper:not(.hidden)) .app-footer {
  display: none !important;
}

/* Global No-Scrollbar Rule: Lock window height to 100vh with no vertical scrollbar on the page */
html, body {
  height: 100vh !important;
  max-height: 100vh !important;
  overflow-y: hidden !important;
}

/* Tabular Suite tab content internal scrollable area */
.ent-tab-panel,
.portal-page-container .user-cockpit-split.full-output-mode .ent-tab-panel,
.user-cockpit-split.full-output-mode .ent-tab-panel {
  width: 100% !important;
  max-width: 100% !important;
  min-width: 100% !important;
  height: calc(100vh - 280px) !important;
  max-height: calc(100vh - 280px) !important;
  overflow-y: auto !important;
  padding-right: 4px !important;
  box-sizing: border-box !important;
}

/* ==========================================================================
   SCAN CODE BUTTON — Small & Azure Blue
   ========================================================================== */
.btn-scan-blue {
  background: linear-gradient(135deg, #0b7d4e 0%, #12b766 100%) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  padding: 6px 14px !important;
  border-radius: var(--radius-sm, 6px) !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer !important;
  box-shadow: 0 4px 14px rgba(11, 125, 78, 0.28) !important;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
  width: auto !important;
  height: auto !important;
  line-height: 1.4 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}

.btn-scan-blue svg {
  width: 13px !important;
  height: 13px !important;
  stroke: #ffffff !important;
  flex-shrink: 0;
}

.btn-scan-blue:hover {
  filter: brightness(1.08) !important;
  box-shadow: 0 6px 18px rgba(18, 183, 102, 0.35) !important;
  transform: translateY(-1px);
}

.btn-scan-blue:active {
  background: #08613c !important;
  transform: translateY(0);
}

.btn-scan-blue:disabled {
  opacity: 0.65 !important;
  cursor: not-allowed !important;
  transform: none !important;
  box-shadow: none !important;
}

.ent-tab-panel {
  flex: 1;
  min-height: 0;
  display: none;
  flex-direction: column;
  overflow: hidden;
}

.ent-tab-panel.active { display: flex; }

/* ==========================================================================
   HOME PAGE THEME CARDS SYSTEM FOR ALL OUTPUT TABS
   ========================================================================== */
.home-theme-card {
  background: var(--gg-glass-bg, rgba(255, 255, 255, 0.94));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid var(--gg-border, rgba(11, 125, 78, 0.18));
  border-radius: 16px;
  box-shadow: var(--gg-shadow, 0 4px 20px rgba(0, 0, 0, 0.05));
  padding: 22px 24px;
  margin-bottom: 18px;
  position: relative;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

.home-theme-card:hover {
  border-color: var(--gg-border-hover, rgba(11, 125, 78, 0.35));
  box-shadow: var(--gg-shadow-elevated, 0 8px 30px rgba(0, 0, 0, 0.08));
}

.home-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-hairline, rgba(0, 0, 0, 0.07));
}

.home-card-header-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.home-card-header-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.home-card-header-icon.blue {
  background: rgba(0, 122, 255, 0.12);
  color: #007aff;
}

.home-card-header-icon.green {
  background: rgba(11, 125, 78, 0.12);
  color: #0b7d4e;
}

.home-card-header-icon.purple {
  background: rgba(175, 82, 222, 0.12);
  color: #af52de;
}

.home-card-header-icon.amber {
  background: rgba(245, 158, 11, 0.15);
  color: #d97706;
}

.home-card-header-icon.teal {
  background: rgba(8, 165, 184, 0.12);
  color: #08a5b8;
}

.home-card-title-group {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.home-card-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary, #1d1d1f);
  margin: 0;
  letter-spacing: -0.2px;
  line-height: 1.2;
}

.home-card-subtitle {
  font-size: 12.5px;
  color: var(--text-secondary, #6e6e73);
  margin: 0;
  line-height: 1.4;
}

.home-card-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.home-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 20px;
  font-size: 11.5px;
  font-weight: 600;
  font-family: var(--gg-font-mono), monospace;
  background: rgba(11, 125, 78, 0.1);
  color: #0b7d4e;
  border: 1px solid rgba(11, 125, 78, 0.25);
  white-space: nowrap;
}

.home-card-badge.success {
  background: rgba(11, 125, 78, 0.1);
  color: #0b7d4e;
  border-color: rgba(11, 125, 78, 0.25);
}

.home-card-badge.warning {
  background: rgba(245, 158, 11, 0.12);
  color: #d97706;
  border-color: rgba(245, 158, 11, 0.25);
}

.home-card-badge.info {
  background: rgba(0, 122, 255, 0.1);
  color: #007aff;
  border-color: rgba(0, 122, 255, 0.25);
}

.home-card-badge.purple {
  background: rgba(175, 82, 222, 0.1);
  color: #af52de;
  border-color: rgba(175, 82, 222, 0.25);
}

.home-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  width: 100%;
  box-sizing: border-box;
}

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

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

.ent-tab-panel .home-feature-card,
#tabular-suite-card .home-feature-card {
  background: var(--gg-glass-bg, rgba(255, 255, 255, 0.92)) !important;
  backdrop-filter: blur(16px) !important;
  -webkit-backdrop-filter: blur(16px) !important;
  border: 1px solid var(--gg-border, rgba(11, 125, 78, 0.18)) !important;
  border-radius: 16px !important;
  box-shadow: var(--gg-shadow, 0 4px 16px rgba(0, 0, 0, 0.04)) !important;
  padding: 20px 22px !important;
  display: flex !important;
  flex-direction: column !important;
  position: relative !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  cursor: pointer !important;
  box-sizing: border-box !important;
}

.ent-tab-panel .home-feature-card:hover,
#tabular-suite-card .home-feature-card:hover {
  border-color: var(--gg-border-hover, rgba(11, 125, 78, 0.35)) !important;
  transform: translateY(-3px) !important;
  box-shadow: var(--gg-shadow-elevated, 0 8px 24px rgba(0, 0, 0, 0.08)) !important;
}

.home-feature-top-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin-bottom: 12px !important;
}

.home-feature-top-row .home-feature-icon {
  margin-bottom: 0 !important;
}

.ent-tab-panel .home-stats-strip,
#tabular-suite-card .home-stats-strip {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
  gap: 14px !important;
  width: 100% !important;
  box-sizing: border-box !important;
}

.ent-tab-panel .home-stat-card,
#tabular-suite-card .home-stat-card {
  background: var(--gg-glass-bg, rgba(255, 255, 255, 0.92)) !important;
  backdrop-filter: blur(14px) !important;
  -webkit-backdrop-filter: blur(14px) !important;
  border: 1px solid var(--gg-border, rgba(11, 125, 78, 0.18)) !important;
  border-radius: 14px !important;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03) !important;
  padding: 16px 20px !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 4px !important;
  transition: transform 0.2s ease, border-color 0.2s ease !important;
  box-sizing: border-box !important;
}

.ent-tab-panel .home-stat-card:hover,
#tabular-suite-card .home-stat-card:hover {
  transform: translateY(-2px) !important;
  border-color: var(--gg-border-hover, rgba(11, 125, 78, 0.35)) !important;
}

/* ==========================================================================
   TABLE TOOLBAR & FILTERS
   ========================================================================== */
.table-toolbar {
  flex-shrink: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 8px;
  background: var(--bg-app);
  padding: 8px 12px;
  border-radius: var(--radius-md);
  border: none;
}

.table-search-box {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-surface);
  border: 0.5px solid var(--border-subtle);
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: all 0.25s ease;
}

.table-search-box:focus-within {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.table-search-input {
  background: transparent;
  border: none;
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  outline: none;
  width: 240px;
  letter-spacing: -0.1px;
}

.table-search-input::placeholder { color: var(--text-disabled); }

.table-filter-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.filter-pill {
  background: var(--bg-surface);
  border: none;
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-xs);
}

.filter-pill:hover {
  color: var(--text-primary);
  background: var(--bg-surface);
  box-shadow: var(--shadow-sm);
}

.filter-pill.active {
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
}

/* ==========================================================================
   DATA TABLES — Clean Apple Style
   ========================================================================== */
.table-responsive {
  flex: 1;
  min-height: 0;
  width: 100%;
  overflow-x: auto;
  overflow-y: auto;
  border-radius: var(--radius-md);
  border: none;
  background: var(--bg-surface);
  box-shadow: inset 0 0 0 0.5px var(--border-subtle);
}

.scorecard-scroll { max-height: 200px; }

.enterprise-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 13px;
}

.enterprise-table th {
  background: var(--bg-app);
  color: var(--text-tertiary);
  padding: 8px 12px;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  border-bottom: 0.5px solid var(--border-subtle);
  white-space: nowrap;
}

.enterprise-table.sticky-header th {
  position: sticky;
  top: 0;
  z-index: 10;
}

.enterprise-table td {
  padding: 8px 12px;
  border-bottom: 0.5px solid var(--border-hairline);
  color: var(--text-secondary);
  vertical-align: middle;
}

.enterprise-table tr:hover td {
  background: rgba(0, 122, 255, 0.03);
}

.enterprise-table tr:last-child td {
  border-bottom: none;
}

.compact-table td { padding: 6px 10px; }
.table-desc-text { font-size: 12.5px; color: var(--text-tertiary); }

/* ==========================================================================
   CODE BLUEPRINT VIEWER
   ========================================================================== */
.iac-console-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  flex-shrink: 0;
}

.iac-tab-selector {
  display: flex;
  gap: 6px;
}

.iac-pill {
  background: var(--bg-app);
  border: none;
  color: var(--text-tertiary);
  padding: 5px 12px;
  font-size: 12.5px;
  font-weight: 500;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all 0.25s ease;
  font-family: inherit;
}

.iac-pill:hover { background: var(--border-subtle); color: var(--text-primary); }

.iac-pill.active {
  background: var(--text-primary);
  color: #ffffff;
  font-weight: 600;
}

.iac-actions { display: flex; gap: 6px; }

.code-snippet-box {
  background: #1d1d1f;
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.code-snippet-box .snippet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 16px;
  background: #2c2c2e;
  border-bottom: 0.5px solid rgba(255, 255, 255, 0.06);
}

.code-snippet-box .snippet-title {
  color: #f5f5f7;
  font-size: 12.5px;
  font-weight: 500;
  font-family: var(--font-mono);
}

.code-snippet-box .copy-btn {
  background: rgba(255, 255, 255, 0.06);
  border: none;
  color: rgba(255, 255, 255, 0.72);
  padding: 4px 12px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  cursor: pointer;
  transition: all 0.25s ease;
  font-weight: 500;
}

.code-snippet-box .copy-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.code-snippet-box pre {
  max-height: 280px;
  overflow-y: auto;
  font-size: 12.5px;
  padding: 14px 18px;
  color: #5AC8FA;
  font-family: var(--font-mono);
  line-height: 1.6;
}

/* ==========================================================================
   STATUS CHIPS & BADGES
   ========================================================================== */
.chip {
  display: inline-block;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
  border: none;
}

.chip-compliant { background: var(--status-compliant-bg); color: var(--status-compliant-text); }
.chip-partial { background: var(--status-partial-bg); color: var(--status-partial-text); }
.chip-action { background: var(--status-action-bg); color: var(--status-action-text); }

.sev-chip-critical { background: var(--apple-red-light); color: #C41E16; font-weight: 600; border: none; }
.sev-chip-high { background: var(--apple-orange-light); color: #8B5E00; font-weight: 600; border: none; }
.sev-chip-medium { background: var(--apple-blue-light); color: var(--apple-blue); font-weight: 600; border: none; }
.sev-chip-low { background: var(--apple-green-light); color: #1B7340; font-weight: 600; border: none; }

.mini-score-bar { display: flex; align-items: center; gap: 8px; }
.mini-bar-track { width: 60px; height: 6px; background: var(--bg-app); border-radius: var(--radius-pill); overflow: hidden; }
.mini-bar-fill { height: 100%; border-radius: var(--radius-pill); background: linear-gradient(90deg, var(--apple-blue), var(--apple-teal)); transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }

/* ==========================================================================
   BUTTONS — Apple Rounded Pill Style
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-weight: 500;
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.1, 0.25, 1);
  text-decoration: none;
  border: none;
  letter-spacing: -0.1px;
}

.btn-primary {
  background: var(--apple-blue);
  color: #ffffff;
}

.btn-primary:hover {
  background: var(--apple-blue-hover);
  transform: scale(1.02);
}

.btn-secondary {
  background: var(--text-primary);
  color: #ffffff;
}

.btn-secondary:hover { background: #424245; }

.btn-outline {
  background: var(--bg-surface);
  border: 0.5px solid var(--border-medium);
  color: var(--text-secondary);
}

.btn-outline:hover {
  background: var(--bg-app);
  color: var(--apple-blue);
  border-color: var(--apple-blue);
}

.btn-success {
  background: var(--apple-green);
  color: #ffffff;
}

.btn-success:hover {
  background: #2DA84E;
  transform: scale(1.02);
}

.btn-text {
  background: none;
  border: none;
  color: var(--apple-blue);
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
}

.btn-text:hover { opacity: 0.72; }

.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 12px; font-size: 12px; border-radius: var(--radius-xs); }
.btn-spinner { width: 14px; height: 14px; border: 2px solid rgba(255,255,255,0.3); border-top-color: #fff; border-radius: 50%; animation: spin 0.8s linear infinite; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   SCROLLBARS — Minimal Apple Style
   ========================================================================== */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(0, 0, 0, 0.12); border-radius: var(--radius-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(0, 0, 0, 0.2); }

/* ==========================================================================
   TOAST — Apple Notification Style
   ========================================================================== */
.toast {
  position: fixed;
  bottom: 40px;
  right: 28px;
  background: rgba(29, 29, 31, 0.92);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  color: #f5f5f7;
  padding: 12px 20px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xl);
  font-size: 13.5px;
  font-weight: 500;
  z-index: 1000;
  border: none;
  border-left: 4px solid var(--apple-green);
  animation: toast-in 0.4s cubic-bezier(0.25, 0.1, 0.25, 1);
  letter-spacing: -0.1px;
}

@keyframes toast-in {
  from { opacity: 0; transform: translateY(16px) scale(0.95); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.hidden { display: none !important; }

/* ==========================================================================
   FOOTER — Minimal Apple Bottom Bar
   ========================================================================== */
.app-footer {
  height: 40px;
  min-height: 40px;
  max-height: 40px;
  background: var(--bg-surface);
  color: var(--text-muted);
  border-top: 1px solid var(--border-hairline);
  font-size: 11.5px;
  padding: 0 24px;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  font-weight: 400;
  letter-spacing: -0.1px;
}

.app-footer .footer-inner {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.app-footer strong {
  color: var(--text-primary);
  font-weight: 600;
}

.app-footer .footer-right span {
  color: var(--text-muted);
}

/* ==========================================================================
   MODAL — Apple Sheet Style
   ========================================================================== */
.modal-backdrop {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0, 0, 0, 0.4);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
}

.modal-dialog {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
  width: 620px;
  max-width: 90vw;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  animation: modal-in 0.35s cubic-bezier(0.25, 0.1, 0.25, 1);
}

@keyframes modal-in {
  from { opacity: 0; transform: scale(0.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.modal-header {
  padding: 18px 24px 14px;
  border-bottom: 0.5px solid var(--border-hairline);
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-surface);
}

.modal-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.3px;
}

.modal-close-btn {
  background: var(--bg-app);
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.modal-close-btn:hover {
  background: var(--border-subtle);
  color: var(--text-primary);
}

.modal-body {
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.modal-intro {
  font-size: 13.5px;
  color: var(--text-tertiary);
  line-height: 1.55;
  letter-spacing: -0.1px;
}

.csv-upload-dropzone {
  border: 2px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  background: var(--bg-surface-secondary);
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
}

.csv-upload-dropzone:hover {
  border-color: var(--apple-blue);
  background: var(--apple-blue-light);
}

.csv-drop-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-secondary);
  font-size: 13.5px;
}

.file-format-hint { font-size: 12px; color: var(--text-muted); }
.csv-paste-section { display: flex; flex-direction: column; gap: 6px; }
.csv-label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }

.csv-textarea {
  width: 100%;
  height: 110px;
  border: 0.5px solid var(--border-subtle);
  border-radius: var(--radius-md);
  padding: 12px;
  font-family: var(--font-mono);
  font-size: 12px;
  resize: none;
  background: var(--bg-surface);
  color: var(--text-primary);
  outline: none;
  transition: border-color 0.2s ease;
}

.csv-textarea:focus {
  border-color: var(--apple-blue);
  box-shadow: 0 0 0 3px rgba(0, 122, 255, 0.1);
}

.modal-footer {
  padding: 14px 24px;
  border-top: 0.5px solid var(--border-hairline);
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: var(--bg-surface);
}

/* ==========================================================================
   STEPPER — Apple Steps Design
   ========================================================================== */
.azure-migration-stepper {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow-y: auto;
  gap: 6px;
  padding: 4px 8px;
}

.stepper-stages-container {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 6px;
  flex-shrink: 0;
}

.stepper-card {
  background: var(--bg-surface);
  border: none;
  border-radius: var(--radius-sm, 6px);
  padding: 5px 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 6px;
  position: relative;
  box-shadow: var(--shadow-card);
  min-height: 38px;
}

.stepper-card:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-card-hover);
}

.stepper-card.active {
  background: var(--apple-blue-light);
  box-shadow: 0 0 0 1.5px var(--apple-blue), var(--shadow-sm);
}

.stepper-badge {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--bg-app);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  flex-shrink: 0;
  transition: all 0.2s ease;
}

.stepper-card.active .stepper-badge {
  background: var(--apple-blue);
  color: #ffffff;
}

.stepper-info { display: flex; flex-direction: column; min-width: 0; }

.stepper-name {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stepper-card.active .stepper-name { color: var(--apple-blue); font-weight: 700; }

.stepper-window {
  font-size: 9px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Drawer */
.stepper-active-drawer {
  background: var(--bg-surface);
  border: none;
  border-left: 3px solid var(--apple-blue);
  border-radius: var(--radius-md, 8px);
  padding: 6px 12px;
  flex-shrink: 0;
  box-shadow: var(--shadow-card);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
  border-bottom: 0.5px solid var(--border-hairline);
  padding-bottom: 3px;
}

.drawer-title-group { display: flex; align-items: center; gap: 8px; }

.drawer-phase-pill {
  background: var(--apple-blue);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 600;
  text-transform: uppercase;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  letter-spacing: 0.3px;
}

.drawer-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.2px;
  margin: 0;
}

.drawer-window-chip {
  font-size: 10px;
  font-weight: 600;
  color: var(--apple-blue);
  background: var(--apple-blue-light);
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.drawer-body-grid {
  display: grid;
  grid-template-columns: 2fr 1.5fr 1.2fr;
  gap: 12px;
}

.drawer-col { display: flex; flex-direction: column; gap: 2px; }

.drawer-col-heading {
  font-size: 9.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  display: block;
}

.drawer-text {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
  margin: 0;
}

.emerald-text { color: #1B7340 !important; font-weight: 600; }
.red-text { color: var(--apple-red) !important; }

.drawer-authority {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 4px;
}

/* ==========================================================================
   LEGACY SELECTORS (kept for compatibility)
   ========================================================================== */
.app-header { height: 48px; flex-shrink: 0; display: flex; align-items: center; background: var(--bg-surface); border-bottom: 0.5px solid var(--border-subtle); padding: 0 20px; z-index: 100; }
.nav-container { width: 100%; max-width: 100%; display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-icon { width: 32px; height: 32px; border-radius: var(--radius-md); background: linear-gradient(135deg, var(--apple-blue), var(--apple-indigo)); display: flex; align-items: center; justify-content: center; color: #fff; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 16px; font-weight: 700; letter-spacing: -0.3px; color: var(--text-primary); }
.brand-version { font-size: 10.5px; font-weight: 600; color: var(--apple-blue); background: var(--apple-blue-light); padding: 2px 8px; border-radius: var(--radius-pill); margin-left: 4px; }
.brand-tagline { font-size: 12.5px; color: var(--text-muted); }
.brand-tagline strong { color: var(--apple-blue); font-weight: 600; }
.header-badges { display: flex; align-items: center; gap: 8px; }
.gov-badge { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; padding: 4px 14px; border-radius: var(--radius-pill); background: var(--bg-app); border: none; color: var(--text-secondary); }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot.live { background: var(--apple-green); }
.dot.info { background: var(--apple-blue); }
.dot.emerald { background: var(--apple-green); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.blueprint-viewer { flex: 1; min-height: 0; overflow-y: auto; }

/* KPI Cards */
.portfolio-kpi-bar { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; flex-shrink: 0; height: 86px; }
.kpi-card { background: var(--bg-surface); border: none; border-radius: var(--radius-lg); padding: 12px 16px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: var(--shadow-card); transition: all 0.3s ease; }
.kpi-card:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-1px); }
.kpi-header { display: flex; justify-content: space-between; align-items: center; }
.kpi-label { font-size: 11px; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; }
.kpi-icon { font-size: 15px; }
.kpi-value-row { display: flex; align-items: baseline; gap: 8px; }
.kpi-val { font-size: 22px; font-weight: 800; color: var(--text-primary); line-height: 1.1; font-family: var(--font-mono); letter-spacing: -0.5px; }
.kpi-val.highlight { color: var(--apple-green); }
.kpi-unit { font-size: 12.5px; color: var(--text-muted); font-weight: 400; }
.badge-kpi { font-size: 10.5px; font-weight: 600; padding: 2px 10px; border-radius: var(--radius-pill); }
.badge-kpi.emerald { background: var(--apple-green-light); color: #1B7340; }
.kpi-subtext { font-size: 11.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi-progress-bar { height: 4px; background: var(--bg-app); border-radius: var(--radius-pill); overflow: hidden; margin-top: 4px; }
.kpi-progress-fill { height: 100%; background: linear-gradient(90deg, var(--apple-green), #2DA84E); border-radius: var(--radius-pill); transition: width 0.6s cubic-bezier(0.25, 0.1, 0.25, 1); }

/* Portal Nav Legacy */
.portal-nav-switcher, .control-tower-nav { display: flex; align-items: center; background: rgba(0,0,0,0.04); padding: 3px; border-radius: var(--radius-sm); gap: 2px; border: none; }
.portal-switch-btn, .mode-switch-btn { display: flex; align-items: center; gap: 6px; background: transparent; border: none; padding: 6px 14px; font-size: 13px; font-weight: 500; color: var(--text-tertiary); cursor: pointer; border-radius: var(--radius-xs); transition: all 0.25s ease; }
.portal-switch-btn:hover, .mode-switch-btn:hover { color: var(--text-primary); }
.portal-switch-btn.active, .mode-switch-btn.active { background: var(--bg-surface); color: var(--text-primary); font-weight: 600; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.mode-pill { font-size: 10.5px; font-weight: 600; padding: 2px 8px; border-radius: var(--radius-pill); background: rgba(0,0,0,0.05); color: var(--text-tertiary); }
.portal-switch-btn.active .mode-pill, .mode-switch-btn.active .mode-pill { background: var(--apple-blue-light); color: var(--apple-blue); }
.mode-pill.live { background: var(--apple-green-light); color: #1B7340; }
.portal-actions-group { display: flex; align-items: center; gap: 6px; }
.portal-actions-group.hidden { display: none !important; }
.winner-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px; border-radius: var(--radius-md); background: var(--bg-app); border: none; font-size: 13px; }
.winner-chip.azure-chip { border-left: 3px solid var(--azure-blue); background: var(--azure-blue-subtle); }
.winner-chip.aws-chip { border-left: 3px solid var(--aws-orange); background: var(--aws-orange-subtle); }
.chip-cloud { color: var(--text-muted); font-size: 11.5px; text-transform: uppercase; font-weight: 700; }
.chip-score { background: var(--apple-blue); color: #fff; padding: 2px 8px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700; }
.aws-chip .chip-score { background: var(--aws-orange); }
.verdict-chips-group { display: flex; gap: 10px; align-items: center; }

/* Sidebar extras */
.cockpit-sidebar .scanner-footer { flex-shrink: 0; padding: 12px 14px; border-top: 0.5px solid var(--border-hairline); background: var(--bg-surface); display: flex; flex-direction: column; gap: 6px; }
.cockpit-sidebar .scan-status-info { font-size: 12px; color: var(--text-muted); line-height: 1.35; }
.file-status { margin-top: 8px; padding: 8px 14px; background: var(--apple-blue-light); border: none; border-radius: var(--radius-sm); color: var(--apple-blue); font-size: 12.5px; font-weight: 600; }
.selected-file-info { margin-top: 8px; padding: 6px 14px; background: var(--apple-blue-light); border: none; border-radius: var(--radius-sm); color: var(--apple-blue); font-size: 12.5px; font-weight: 600; display: inline-block; }
.preset-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.preset-desc { font-size: 12.5px; color: var(--text-tertiary); line-height: 1.35; margin-bottom: 5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.preset-tags { display: flex; flex-wrap: wrap; gap: 5px; }
.preset-tags .tag { font-size: 10.5px; padding: 2px 8px; background: var(--bg-app); border-radius: var(--radius-pill); border: none; color: var(--text-secondary); }

/* Executive scorecard legacy */
#executive-scorecard-card { flex-shrink: 0; max-height: 175px; min-height: 0; display: flex; flex-direction: column; padding: 10px 16px 12px; overflow: hidden; background: var(--bg-surface); }
#executive-scorecard-card .panel-header { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; padding-bottom: 6px; margin-bottom: 4px; border-bottom: 0.5px solid var(--border-hairline); }
#executive-scorecard-card .scorecard-header-left { display: flex; align-items: center; gap: 10px; }
#executive-scorecard-card .panel-title { font-size: 15px; font-weight: 700; color: var(--text-primary); margin: 0; letter-spacing: -0.3px; }

/* ==========================================================================
   ENTERPRISE CAPABILITIES: BLOCKERS, DEPENDENCIES, SPRINTS, FINOPS, 7 Rs
   ========================================================================== */

/* 1. Issue Blockers */
.blocker-kpi-ribbon {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  padding: 8px 12px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.blocker-kpi-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-pill);
  font-size: 12px;
  border: 0.5px solid var(--border-hairline);
}
.blocker-kpi-pill.red-pill { background: #fee2e2; border-color: #fca5a5; color: #b91c1c; }
.blocker-kpi-pill.amber-pill { background: #fef3c7; border-color: #fde68a; color: #b45309; }
.blocker-kpi-label { color: var(--text-tertiary); font-weight: 500; }
.blocker-kpi-val { font-weight: 700; color: var(--text-primary); }
.blocker-kpi-pill.red-pill .blocker-kpi-val { color: #991b1b; }
.blocker-kpi-pill.amber-pill .blocker-kpi-val { color: #92400e; }

.blockers-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 380px);
  padding: 2px;
}
.blocker-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  transition: all 0.2s ease;
}
.blocker-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}
.blocker-card.p0 { border-left: 4px solid #ef4444; }
.blocker-card.p1 { border-left: 4px solid #f59e0b; }
.blocker-card.p2 { border-left: 4px solid #3b82f6; }

.blocker-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.blocker-title { font-size: 13.5px; font-weight: 700; color: var(--text-primary); margin: 0; line-height: 1.35; }
.blocker-tag {
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  flex-shrink: 0;
}
.blocker-tag.p0 { background: #fee2e2; color: #b91c1c; }
.blocker-tag.p1 { background: #fef3c7; color: #b45309; }
.blocker-tag.p2 { background: #dbeafe; color: #1d4ed8; }

.blocker-section-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; color: var(--text-tertiary); margin-bottom: 2px; }
.blocker-impact-text { font-size: 12px; color: #b91c1c; background: #fff5f5; padding: 6px 10px; border-radius: var(--radius-sm); line-height: 1.4; margin: 0; }
.blocker-remediation-text { font-size: 12px; color: var(--text-secondary); background: var(--bg-app); padding: 6px 10px; border-radius: var(--radius-sm); line-height: 1.4; margin: 0; }
.blocker-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 4px;
  padding-top: 8px;
  border-top: 0.5px solid var(--border-hairline);
  font-size: 11.5px;
}
.blocker-effort { font-weight: 700; color: var(--apple-blue); }
.blocker-role { color: var(--text-tertiary); }

/* 2. Dependencies & Move Group */
.move-group-hero-card {
  background: linear-gradient(135deg, rgba(0, 122, 255, 0.05), rgba(88, 86, 214, 0.08));
  border: 1px solid rgba(0, 122, 255, 0.2);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 12px;
}
.move-group-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}
.move-group-badge-col { display: flex; gap: 8px; align-items: center; }
.move-group-title { font-size: 16px; font-weight: 700; color: var(--text-primary); margin: 0 0 6px 0; }
.move-group-rationale { font-size: 13px; color: var(--text-secondary); line-height: 1.45; margin: 0 0 10px 0; }
.move-group-assets-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.mg-assets-label { font-size: 12px; font-weight: 600; color: var(--text-tertiary); }
.mg-assets-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.mg-asset-pill { font-size: 11.5px; font-weight: 600; background: var(--bg-surface); color: var(--apple-blue); padding: 3px 10px; border-radius: var(--radius-pill); border: 0.5px solid rgba(0,122,255,0.25); }

/* 3. Sprint Planning */
.squad-staffing-ribbon {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.squad-meta-col { display: flex; flex-direction: column; gap: 2px; }
.squad-label { font-size: 11px; text-transform: uppercase; font-weight: 600; color: var(--text-tertiary); }
.squad-roles-pills { display: flex; gap: 6px; flex-wrap: wrap; }
.squad-role-chip { font-size: 11.5px; background: var(--bg-surface); padding: 3px 10px; border-radius: var(--radius-pill); border: 0.5px solid var(--border-hairline); font-weight: 500; color: var(--text-secondary); }
.squad-actions-col { display: flex; gap: 8px; }

.sprints-board {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 12px;
  overflow-y: auto;
  max-height: calc(100vh - 390px);
  padding: 2px;
}
.sprint-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sprint-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 8px;
  border-bottom: 0.5px solid var(--border-hairline);
}
.sprint-name { font-size: 13.5px; font-weight: 700; color: var(--text-primary); }
.sprint-badge { font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--apple-blue-light); color: var(--apple-blue); }
.sprint-tickets-list { display: flex; flex-direction: column; gap: 8px; }
.sprint-ticket-item {
  background: var(--bg-app);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ticket-top { display: flex; justify-content: space-between; align-items: center; }
.ticket-id { font-size: 11px; font-weight: 700; color: var(--apple-blue); font-family: monospace; }
.ticket-pts { font-size: 11px; font-weight: 700; background: var(--bg-surface); padding: 1px 6px; border-radius: 4px; }
.ticket-summary { font-size: 12.5px; font-weight: 600; color: var(--text-primary); margin: 0; line-height: 1.35; }
.ticket-role { font-size: 11px; color: var(--text-tertiary); }

/* 4. 7 Rs Strategy Grid & NFR Ribbon */
.seven-r-section { margin-bottom: 12px; }
.seven-r-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 10px;
  margin-top: 8px;
}
.seven-r-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  position: relative;
}
.seven-r-card.recommended {
  border: 1.5px solid var(--apple-green);
  background: linear-gradient(135deg, rgba(52, 199, 89, 0.05), var(--bg-surface));
}
.seven-r-top { display: flex; justify-content: space-between; align-items: center; }
.seven-r-name { font-size: 12.5px; font-weight: 700; color: var(--text-primary); }
.seven-r-fit { font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: var(--radius-pill); }
.seven-r-card.recommended .seven-r-fit { background: #d1fae5; color: #065f46; }
.seven-r-target { font-size: 11.5px; font-weight: 600; color: var(--apple-blue); }
.seven-r-desc { font-size: 11px; color: var(--text-tertiary); line-height: 1.35; margin: 0; }

.nfr-targets-ribbon {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  margin-bottom: 12px;
}
.nfr-item-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--bg-surface);
  border-radius: var(--radius-sm);
  font-size: 11px;
  border: 0.5px solid var(--border-hairline);
}
.nfr-key { color: var(--text-tertiary); font-weight: 600; }
.nfr-val { color: var(--apple-blue); font-weight: 700; }

/* 5. FinOps TCO Cards */
.finops-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 12px;
}
.finops-kpi-card {
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.finops-kpi-card.emerald-card { border-top: 3px solid var(--apple-green); }
.finops-kpi-card.blue-card { border-top: 3px solid var(--apple-blue); }
.finops-kpi-card.purple-card { border-top: 3px solid var(--apple-purple); }
.finops-kpi-card.amber-card { border-top: 3px solid var(--apple-orange); }

.finops-kpi-title { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-tertiary); }
.finops-kpi-val { font-size: 20px; font-weight: 800; color: var(--text-primary); letter-spacing: -0.02em; }
.finops-kpi-sub { font-size: 11.5px; color: var(--text-secondary); }
.finops-investment-box {
  margin-top: 12px;
  padding: 12px 16px;
  background: var(--bg-app);
  border-radius: var(--radius-md);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12.5px;
}

/* ==========================================================================
   TABULAR ASSESSMENT REPORT (HTML AUDIT TABLES)
   ========================================================================== */
.tabular-report-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  gap: 16px;
  flex-wrap: wrap;
}

.report-header-text {
  flex: 1;
  min-width: 260px;
}

.report-main-title {
  margin: 0 0 4px 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.report-sub-title {
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: block;
}

.report-toolbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.report-section {
  margin-bottom: 22px;
  background: var(--bg-surface);
  border: 1px solid var(--border-hairline);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.report-section-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--bg-app);
  border-bottom: 1px solid var(--border-subtle);
}

.report-section-header h4 {
  margin: 0;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.section-num {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--azure-primary);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.section-badge {
  font-size: 11px;
  color: var(--text-tertiary);
  background: var(--bg-surface);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  border: 0.5px solid var(--border-hairline);
  margin-left: auto;
}

.cost-total-row {
  background: var(--bg-app);
  border-top: 1.5px solid var(--border-subtle);
}

.cost-total-row td {
  padding: 9px 12px;
}

.cost-total-row.highlight-row {
  background: rgba(16, 185, 129, 0.06);
  border-top: 2px solid rgba(16, 185, 129, 0.3);
}

.rec-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  background: rgba(16, 185, 129, 0.12);
  color: var(--accent-emerald, #059669);
  border: 0.5px solid rgba(16, 185, 129, 0.3);
  border-radius: var(--radius-pill);
  font-size: 11px;
  font-weight: 700;
}

/* ==========================================================================
   UNIVERSAL CODE AUTO-DETECTION INTAKE STYLING
   ========================================================================== */
.cockpit-sidebar .scanner-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  background: rgba(0, 0, 0, 0.04);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: none;
}

.cockpit-sidebar .tab-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 5px 8px;
  font-size: 11.5px;
  font-weight: 500;
  border-radius: var(--radius-xs);
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.cockpit-sidebar .tab-btn.active {
  background: var(--bg-surface);
  color: var(--azure-primary, #0078d4);
  font-weight: 600;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.intake-panel-box {
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border-hairline, rgba(0, 0, 0, 0.06));
}

.intake-box-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 2px;
}

.intake-badge {
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
  background: rgba(0, 120, 212, 0.1);
  color: var(--azure-primary, #0078d4);
}

.intake-hint {
  font-size: 11px;
  color: var(--text-muted);
}

.intake-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--text-secondary);
}

.intake-input-group {
  display: flex;
  gap: 6px;
  align-items: center;
}

.azure-form-input {
  width: 100%;
  padding: 7px 10px;
  font-size: 12px;
  font-family: inherit;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color, #d1d5db);
  background: var(--bg-input, #ffffff);
  color: var(--text-primary);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.azure-form-input:focus {
  outline: none;
  border-color: var(--azure-primary, #0078d4);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.15);
}

.intake-quick-actions {
  display: flex;
  gap: 6px;
  align-items: center;
  margin-top: 2px;
}

.intake-capabilities-callout {
  margin-top: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  background: rgba(0, 120, 212, 0.04);
  border: 1px dashed rgba(0, 120, 212, 0.2);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.cap-item {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.35;
}

.snippet-samples-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  margin-top: 2px;
}

.snippet-samples-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.snippet-sample-btn {
  padding: 3px 8px;
  font-size: 10.5px;
  font-weight: 600;
  border-radius: var(--radius-pill);
  border: 1px solid var(--border-hairline, rgba(0,0,0,0.1));
  background: var(--bg-subtle, #f3f4f6);
  color: var(--text-secondary);
  cursor: pointer;
  transition: all 0.15s ease;
}

.snippet-sample-btn:hover {
  background: var(--azure-primary, #0078d4);
  color: #ffffff;
  border-color: var(--azure-primary, #0078d4);
  transform: translateY(-1px);
}

.snippet-textarea {
  width: 100%;
  min-height: 140px;
  max-height: 220px;
  padding: 8px 10px;
  font-family: 'JetBrains Mono', 'Fira Code', Menlo, monospace;
  font-size: 11.5px;
  line-height: 1.4;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color, #d1d5db);
  background: #0f172a;
  color: #38bdf8;
  resize: vertical;
  box-sizing: border-box;
}

.snippet-textarea:focus {
  outline: none;
  border-color: var(--azure-primary, #0078d4);
  box-shadow: 0 0 0 2px rgba(0, 120, 212, 0.2);
}

/* ==========================================================================
   PRINT MEDIA OPTIMIZATIONS
   ========================================================================== */
@media print {
  .azure-masthead, .azure-sub-header, .app-footer, .cockpit-sidebar, .ent-tab-bar, .report-toolbar-actions, #btn-report-download-html {
    display: none !important;
  }
  body, html {
    overflow: visible !important;
    height: auto !important;
    max-height: none !important;
    background: #ffffff !important;
    color: #000000 !important;
  }
  .main-content {
    height: auto !important;
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
  }
  #tab-tabular-report {
    display: block !important;
  }
  .report-section {
    break-inside: avoid;
    margin-bottom: 16px;
    border: 1px solid #d1d5db !important;
    box-shadow: none !important;
  }
  .enterprise-table th, .enterprise-table td {
    padding: 6px 8px !important;
    font-size: 10px !important;
    color: #111827 !important;
  }
  .enterprise-table th {
    background: #f3f4f6 !important;
    color: #374151 !important;
  }
}
