/**
 * GX Module Styles -- Premium Portal Design System
 * Developed for Becchio Group LLC. 2026. All rights reserved.
 *
 * Design references: Apple Liquid Glass, Linear, Vercel, Stripe.
 * Frosted surfaces with real depth, crisp data typography,
 * dark canvas with luminous data, premium micro-interactions.
 *
 * Every portal includes this. Every module's DOM gets styled automatically.
 * The design quality lives in the platform, not in each client's code.
 */

/* ==========================================================================
   GX Design System Tokens -- Apple HIG x Claypunk-187 foundation
   Cascades through every component. See docs/platform/gx-delivery-spec.md
   ========================================================================== */
:root {
  /* --- Apple-style Type Scale --- */
  --type-large-title: 34px;   /* hero numbers, splash */
  --type-title-1:     28px;   /* page titles */
  --type-title-2:     22px;   /* section titles */
  --type-title-3:     20px;   /* sub-section */
  --type-headline:    17px;   /* card titles */
  --type-body:        14px;   /* default body */
  --type-callout:     16px;   /* emphasized inline */
  --type-subheadline: 13px;   /* secondary body */
  --type-footnote:    12px;   /* metadata */
  --type-caption-1:   12px;   /* labels -- 12px minimum per platform standard */
  --type-caption-2:   12px;   /* fine print -- 12px minimum per platform standard */

  /* --- Material Hierarchy (Apple Liquid Glass Tech Overview) --- */
  --mat-thin:    rgba(255,255,255,0.03);   /* lightest, blur 14px */
  --mat-regular: rgba(255,255,255,0.05);   /* standard tile */
  --mat-thick:   rgba(255,255,255,0.08);   /* sheets, popovers */
  --mat-chrome:  rgba(5,11,20,0.85);       /* nav, toolbar */

  --mat-blur-thin:    blur(14px) saturate(140%);
  --mat-blur-regular: blur(24px) saturate(160%);
  --mat-blur-thick:   blur(32px) saturate(180%);
  --mat-blur-chrome:  blur(20px) saturate(160%);

  /* --- Catch-light gradient (Liquid Glass signature) --- */
  /* Top-edge brightening only -- no bottom-dark, which over a translucent
     surface on a dark canvas swallows tile content. */
  --catch-light: linear-gradient(180deg, rgba(255,255,255,0.14) 0%, rgba(255,255,255,0.0) 28%);

  /* --- Apple Motion --- */
  --ease-standard: cubic-bezier(0, 0, 0.2, 1);
  --ease-spring:   cubic-bezier(0.16, 1, 0.3, 1);
  --dur-micro:  150ms;
  --dur-fast:   200ms;
  --dur-base:   300ms;
}

/* Reduced Transparency: collapse glass to opaque so vision-impaired users
   don't lose contrast on translucent surfaces. */
@media (prefers-reduced-transparency: reduce) {
  :root {
    --mat-thin:    var(--bg-elevated, #0a1f3d);
    --mat-regular: var(--bg-elevated, #0a1f3d);
    --mat-thick:   var(--bg-elevated, #0a1f3d);
    --mat-chrome:  var(--bg-darkest,  #05182F);
    --mat-blur-thin: none; --mat-blur-regular: none;
    --mat-blur-thick: none; --mat-blur-chrome: none;
    --catch-light: none;
  }
}

/* Increased Contrast: bump border opacity + text saturation. */
@media (prefers-contrast: more) {
  :root {
    --glass-border:        rgba(255,255,255,0.32) !important;
    --glass-border-hover:  rgba(255,255,255,0.55) !important;
    --text-muted:          rgba(240,244,248,0.78) !important;
  }
}

/* Reduced Motion: kill all keyframe animations + transforms. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ==========================================================================
   Portal Canvas -- Deep navy void with atmospheric light sources
   ========================================================================== */

body {
  background: var(--bg, #05182F);
  min-height: 100vh;
}

/* --------------------------------------------------------------------------
   Light Theme Overrides
   When data-theme="light" on <html>, invert glass materials for readability.
   -------------------------------------------------------------------------- */
[data-theme="light"] {
  --glass-bg: rgba(0, 0, 0, 0.025);
  --glass-bg-hover: rgba(0, 0, 0, 0.05);
  --glass-bg-subtle: rgba(0, 0, 0, 0.015);
  --glass-border: rgba(0, 0, 0, 0.08);
  --glass-border-hover: rgba(0, 0, 0, 0.14);
  --glass-tile-bg: rgba(0, 0, 0, 0.03);
  --glass-tile-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --glass-tile-shadow-hover: 0 4px 12px rgba(0, 0, 0, 0.08);
  --status-positive: #16a34a;
}

[data-theme="light"] .portal-header {
  background: var(--bg-surface);
  border-bottom-color: rgba(0, 0, 0, 0.06);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .portal-sidebar {
  background: var(--bg-surface);
  border-right-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .header-title {
  color: var(--text);
}

[data-theme="light"] .nav-link {
  color: var(--text-muted);
}

[data-theme="light"] .nav-link.is-active {
  color: var(--text);
  background: var(--glass-bg);
}

[data-theme="light"] .section-title {
  color: var(--text);
}

[data-theme="light"] .user-name,
[data-theme="light"] .user-avatar {
  color: var(--text-muted);
}

[data-theme="light"] .mobile-nav {
  background: var(--bg-surface);
  border-top-color: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .mobile-nav-item {
  color: var(--text-muted);
}

[data-theme="light"] .mobile-nav-item.is-active {
  color: var(--accent);
}

/* Light theme: card overrides */
[data-theme="light"] .kpi-card,
[data-theme="light"] .breakdown-card,
[data-theme="light"] .gx-card,
[data-theme="light"] .insight-card,
[data-theme="light"] .target-card,
[data-theme="light"] .pipeline-card,
[data-theme="light"] .scenario-card,
[data-theme="light"] .deal-card,
[data-theme="light"] .sentiment-card,
[data-theme="light"] .channel-card,
[data-theme="light"] .funnel-stage {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-top: 1px solid rgba(0, 0, 0, 0.04);
  box-shadow:
    0 1px 3px rgba(0, 0, 0, 0.04),
    0 4px 16px rgba(0, 0, 0, 0.03);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

[data-theme="light"] .kpi-card:hover,
[data-theme="light"] .gx-card:hover,
[data-theme="light"] .insight-card:hover,
[data-theme="light"] .target-card:hover {
  border-color: color-mix(in srgb, var(--accent, #B9A590) 30%, transparent);
  box-shadow:
    0 2px 8px rgba(0, 0, 0, 0.06),
    0 8px 24px rgba(0, 0, 0, 0.04);
  transform: translateY(-1px);
}

[data-theme="light"] .kpi-label,
[data-theme="light"] .kpi-sublabel,
[data-theme="light"] .gx-card-title,
[data-theme="light"] .gx-card-subtitle,
[data-theme="light"] .breakdown-label {
  color: var(--text);
}

[data-theme="light"] .kpi-value {
  color: var(--text);
}

[data-theme="light"] .rec-financial {
  color: var(--accent);
}

[data-theme="light"] body::after {
  display: none; /* No noise texture on light themes */
}

/* Noise texture overlay for organic feel */
body::after {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.012;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='1'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 256px 256px;
  z-index: 9998;
}

/* ==========================================================================
   Scrollbar -- Minimal, translucent
   ========================================================================== */

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: rgba(255,255,255,0.08);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover { background: rgba(255,255,255,0.15); }

/* ==========================================================================
   Portal Header -- Frosted sticky bar
   ========================================================================== */

.portal-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 56px;
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  background: rgba(5, 24, 47, 0.6);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.header-title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-weight: 900;
  font-size: 0.875rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.70);
  text-shadow: none;
}

/* ==========================================================================
   Sidebar Navigation -- Frosted panel
   ========================================================================== */

/* Sidebar + nav-link styling lives in portal-template.html (inline <style>)
   so it picks up the brand --accent/--font-display correctly. These module-
   level overrides only apply to legacy .sidebar and .sidebar-nav classes. */
.sidebar,
.sidebar-nav {
  background: rgba(5, 24, 47, 0.5);
  border-right: 1px solid rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.sidebar-nav .active,
[data-app].active {
  color: var(--accent, var(--accent, var(--brand-accent, #00E0FF)));
  background: rgba(var(--accent-rgb, var(--accent-rgb, var(--brand-accent-rgb, 0, 224, 255))), 0.04);
}

/* ==========================================================================
   Mobile Bottom Navigation
   ========================================================================== */

.mobile-nav {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: space-around;
  height: 64px;
  background: rgba(5, 24, 47, 0.85);
  backdrop-filter: blur(40px) saturate(1.3);
  -webkit-backdrop-filter: blur(40px) saturate(1.3);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 0 8px;
  padding-bottom: env(safe-area-inset-bottom);
}

.mobile-nav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.625rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-decoration: none;
  transition: color 200ms ease;
  position: relative;
  padding: 6px 0;
  min-width: 56px;
}
.mobile-nav-item.is-active {
  color: var(--accent, var(--accent, var(--brand-accent, #00E0FF)));
}
.mobile-nav-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 25%;
  right: 25%;
  height: 2px;
  background: var(--accent, var(--accent, var(--brand-accent, #00E0FF)));
  border-radius: 0 0 2px 2px;
  box-shadow: 0 2px 8px rgba(var(--accent-rgb, var(--accent-rgb, var(--brand-accent-rgb, 0, 224, 255))), 0.3);
  opacity: 0;
  transition: opacity 200ms ease;
}
.mobile-nav-item.is-active::before {
  opacity: 1;
}
.mobile-nav-item svg {
  width: 22px;
  height: 22px;
}
.mobile-nav-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Portal Main / Module Content Area
   ========================================================================== */

.portal-main,
.module-content {
  padding: 32px;
  overflow-y: auto;
  scrollbar-gutter: stable;
}

/* ==========================================================================
   Module Layout
   ========================================================================== */

.module-header {
  margin-bottom: 32px;
  position: relative;
}

.module-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 900;
  font-size: 1.5rem;
  letter-spacing: 0.02em;
  color: #00E0FF;
  line-height: 1.1;
  margin: 0 0 4px 0;
}

.data-stamp {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.02em;
}

/* ==========================================================================
   Section Titles -- Accent bar + uppercase label
   ========================================================================== */

.section-title {
  font-family: 'Poppins', sans-serif;
  font-weight: 700;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 32px 0 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.section-title::before {
  content: '';
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent, var(--brand-accent, #00E0FF));
  box-shadow: 0 0 8px rgba(var(--accent-rgb, var(--brand-accent-rgb, 0, 224, 255)), 0.3);
  flex-shrink: 0;
}

.section-label-right {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: rgba(255, 255, 255, 0.28);
  text-align: right;
  margin-top: -28px;
  margin-bottom: 16px;
}

/* ==========================================================================
   Glass Cards -- Liquid Glass panels floating in space
   KPI, Breakdown, Insight, Target, Pipeline, Scenario, etc.
   ========================================================================== */

.glass-card,
.kpi-card,
.breakdown-card,
.gx-card,
.insight-card,
.target-card,
.pipeline-card,
.scenario-card,
.deal-card,
.sentiment-card,
.channel-card,
.funnel-stage {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0%, rgba(255, 255, 255, 0.02) 100%);
  border: 1px solid color-mix(in srgb, var(--accent, var(--brand-accent, #00E0FF)) 15%, transparent);
  border-top: 1px solid color-mix(in srgb, var(--accent, var(--brand-accent, #00E0FF)) 25%, rgba(255,255,255,0.1));
  border-radius: 20px;
  backdrop-filter: blur(40px) saturate(1.2);
  -webkit-backdrop-filter: blur(40px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),   /* catch-light top highlight */
    0 1px 3px rgba(0, 0, 0, 0.30),              /* micro shadow */
    0 8px 24px rgba(0, 0, 0, 0.14),             /* ambient depth */
    0 4px 24px rgba(0, 0, 0, 0.15);
  padding: 24px;
  transition: transform 180ms cubic-bezier(0.2, 0.8, 0.2, 1), border-color 180ms, box-shadow 180ms;
  position: relative;
  overflow: hidden;
  animation: fadeIn 300ms cubic-bezier(0.16, 1, 0.3, 1) both;
}

/* Prismatic top-edge highlight */
.glass-card::before,
.kpi-card::before,
.breakdown-card::before,
.gx-card::before,
.insight-card::before,
.target-card::before,
.pipeline-card::before,
.scenario-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.15), transparent);
  z-index: 0;
}

/* Hover: lift + accent glow */
.glass-card:hover,
.kpi-card:hover,
.breakdown-card:hover,
.gx-card:hover,
.insight-card:hover,
.target-card:hover,
.pipeline-card:hover,
.scenario-card:hover,
.deal-card:hover,
.sentiment-card:hover,
.channel-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  border-top-color: color-mix(in srgb, var(--accent, var(--brand-accent, #00E0FF)) 40%, rgba(255,255,255,0.18));
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 1px 3px rgba(0, 0, 0, 0.30),
    0 8px 32px rgba(0, 0, 0, 0.25),
    0 0 20px color-mix(in srgb, var(--accent, var(--brand-accent, #00E0FF)) 8%, transparent);
}

/* Content above pseudo-elements */
.glass-card > *,
.kpi-card > *,
.breakdown-card > *,
.gx-card > *,
.insight-card > *,
.target-card > * {
  position: relative;
  z-index: 1;
}

/* Keyboard focus ring -- accessibility */
.kpi-card:focus-within,
.gx-card:focus-within,
.insight-card:focus-within,
.target-card:focus-within,
.pipeline-card:focus-within {
  outline: 2px solid var(--accent, var(--brand-accent, #00E0FF));
  outline-offset: 3px;
}

/* Tab panel fade-in -- smooth content swap */
[role="tabpanel"] {
  animation: fadeIn 200ms cubic-bezier(0, 0, 0.2, 1) both;
}
[role="tabpanel"][hidden] { display: none; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Stagger animation for grid children */
.kpi-grid > *:nth-child(1) { animation-delay: 0ms; }
.kpi-grid > *:nth-child(2) { animation-delay: 50ms; }
.kpi-grid > *:nth-child(3) { animation-delay: 100ms; }
.kpi-grid > *:nth-child(4) { animation-delay: 150ms; }
.kpi-grid > *:nth-child(5) { animation-delay: 200ms; }

/* ==========================================================================
   KPI Grid -- Responsive layout
   ========================================================================== */

.kpi-grid,
.breakdown-grid,
.gx-grid,
.insights-grid,
.targets-grid,
.pipeline-grid,
.scenario-grid,
.funnel-grid,
.channel-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-bottom: 40px;
}

@media (min-width: 768px) {
  .kpi-grid,
  .breakdown-grid,
  .targets-grid,
  .pipeline-grid,
  .scenario-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .gx-grid,
  .insights-grid,
  .channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1280px) {
  .kpi-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .insights-grid {
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  }
}

/* ==========================================================================
   KPI Values -- HERO numbers
   ========================================================================== */

.kpi-value,
.breakdown-value,
.target-value {
  font-family: 'JetBrains Mono', monospace;
  font-weight: 800;
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.02em;
  color: var(--text, #F0F4F8);
  text-shadow: 0 0 60px rgba(255, 255, 255, 0.06);
  line-height: 1.1;
  margin: 8px 0;
}

/* ==========================================================================
   KPI Labels
   ========================================================================== */

.kpi-label,
.breakdown-label,
.target-label {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.35);
}

.kpi-sub,
.kpi-sublabel,
.breakdown-sub,
.target-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 4px;
  line-height: 1.4;
}

/* ==========================================================================
   Status Indicators
   ========================================================================== */

.target-status,
.status-indicator {
  display: inline-block;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 9999px;
  margin-top: 8px;
}

.status-positive,
.target-status.on-track { background: rgba(34, 197, 94, 0.15); color: #22C55E; }
.status-warning,
.target-status:not(.on-track) { background: rgba(239, 68, 68, 0.15); color: #EF4444; }
.status-neutral { background: rgba(245, 158, 11, 0.15); color: #F59E0B; }

/* Priority badges */
.badge-p0 { background: rgba(239, 68, 68, 0.2); color: #EF4444; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.badge-p1 { background: rgba(245, 158, 11, 0.2); color: #F59E0B; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }
.badge-p2 { background: rgba(34, 197, 94, 0.2); color: #22C55E; font-size: 12px; font-weight: 700; padding: 2px 6px; border-radius: 4px; }

/* ==========================================================================
   Chart Bars -- Gradient with rounded tops and glow
   ========================================================================== */

.chart-section,
.timeline-section {
  margin-bottom: 40px;
}

.chart-area {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 200px;
  padding: 16px 0;
}

.chart-bar-wrap {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100%;
  justify-content: flex-end;
  gap: 4px;
}

.chart-bar {
  width: 100%;
  max-width: 48px;
  border-radius: 6px 6px 2px 2px;
  background: var(--accent, var(--brand-accent, #c8102e));
  box-shadow: 0 -4px 16px rgba(var(--accent-rgb, var(--brand-accent-rgb, 200, 16, 46)), 0.2);
  min-height: 4px;
  transition: height 600ms cubic-bezier(0.4, 0, 0.2, 1);
}

.chart-bar-label {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.48);
  white-space: nowrap;
}

.chart-bar-day {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.28);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ==========================================================================
   Data Tables -- Crisp typographic hierarchy
   ========================================================================== */

.activity-table,
.data-table,
.staffing-table,
.slot-table,
.reservation-table,
.channel-table,
.rules-table,
.model-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin-bottom: 40px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
}

.activity-table th,
.data-table th,
.staffing-table th,
.slot-table th,
.reservation-table th,
.channel-table th,
.rules-table th,
.model-table th {
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  font-size: 0.625rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.3);
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.activity-table td,
.data-table td,
.staffing-table td,
.slot-table td,
.reservation-table td,
.channel-table td,
.rules-table td,
.model-table td {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.8125rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.8);
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
  font-variant-numeric: tabular-nums;
  transition: background 150ms ease;
}

.activity-table tr:hover td,
.data-table tr:hover td,
.staffing-table tr:hover td,
.reservation-table tr:hover td,
.channel-table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

/* ==========================================================================
   Insight Cards (GX Intelligence)
   ========================================================================== */

.insight-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.insight-id {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 500;
  color: var(--accent, var(--brand-accent, #00E0FF));
}

.insight-confidence {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  font-weight: 600;
  color: #22C55E;
}

.insight-title {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 700;
  color: var(--text, #F0F4F8);
  margin-bottom: 4px;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.insight-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 22px;
  font-weight: 700;
  color: var(--text, #F0F4F8);
  margin-bottom: 8px;
}

.insight-detail {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
  margin-bottom: 8px;
}

.insight-rec {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

/* ==========================================================================
   GX Card (Recommendation Action Cards)
   ========================================================================== */

.gx-card-priority {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.gx-card-title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 14px;
  font-weight: 600;
  color: var(--text, #F0F4F8);
  margin-bottom: 4px;
}

.gx-card-impact {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  font-weight: 500;
  color: #22C55E;
  margin-bottom: 4px;
}

.gx-card-action {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
  line-height: 1.4;
}

/* ==========================================================================
   Funnel (Attribution)
   ========================================================================== */

.funnel-grid {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin-bottom: 40px;
}

.funnel-stage {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  padding: 16px 24px;
}

.funnel-stage:first-child { opacity: 1; }
.funnel-stage:nth-child(2) { opacity: 0.85; padding-left: 36px; padding-right: 12px; }
.funnel-stage:nth-child(3) { opacity: 0.7; padding-left: 48px; padding-right: 0; }
.funnel-stage:nth-child(4) { opacity: 0.6; padding-left: 60px; }

.funnel-label {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  font-weight: 600;
  color: var(--text, #F0F4F8);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.funnel-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 18px;
  font-weight: 700;
  color: var(--text, #F0F4F8);
}

.funnel-rate {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.48);
}

/* ==========================================================================
   Empty States
   ========================================================================== */

.empty-state,
.calendar-note,
.placeholder-note {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.03);
  border: 1px dashed rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  margin-bottom: 40px;
}

/* ==========================================================================
   Section Dividers
   ========================================================================== */

.breakdown-section,
.gx-section,
.chart-section,
.activity-section,
.insights-section,
.calendar-section,
.timeline-section,
.staffing-section,
.throughput-section,
.heatmap-section,
.weather-section,
.campaign-section,
.spend-section,
.funnel-section,
.review-section,
.topic-section,
.response-section,
.availability-section,
.slot-section,
.reservation-section,
.pipeline-section,
.outreach-section,
.deal-section,
.model-section,
.roi-section,
.scenario-section,
.pricing-section,
.rules-section,
.yield-section,
.simulator-section {
  margin-bottom: 40px;
}

/* ==========================================================================
   Sentiment / Review Cards
   ========================================================================== */

.review-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 8px;
  transition: border-color 150ms ease;
}

.review-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
}

.review-rating {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  color: #F59E0B;
  margin-bottom: 4px;
}

.review-text {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px;
  color: rgba(255, 255, 255, 0.72);
  line-height: 1.5;
}

.review-meta {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px;
  color: rgba(255, 255, 255, 0.28);
  margin-top: 4px;
}

/* ==========================================================================
   Account Pill -- Glassmorphic capsule with avatar glow
   ========================================================================== */

.user-block {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 14px 4px 4px;
  border-radius: 9999px;
  background: rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: background 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
  min-height: 40px;
  cursor: pointer;
}
.user-block:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.18);
  box-shadow: 0 2px 12px rgba(var(--accent-rgb, var(--brand-accent-rgb, 0, 224, 255)), 0.08);
}

.user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg,
    var(--accent, var(--brand-accent, #00E0FF)),
    var(--brand-accent-dim, rgba(0, 224, 255, 0.3)));
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--bg, #0A0F1C);
  flex-shrink: 0;
  text-transform: uppercase;
  box-shadow: 0 0 10px rgba(var(--accent-rgb, var(--brand-accent-rgb, 0, 224, 255)), 0.25);
}

/* ==========================================================================
   GX Foundry Connection Status
   ========================================================================== */

.gx-connection-status {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: rgba(255, 255, 255, 0.48);
  cursor: default;
}

.gx-sync-icon {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
  animation: syncPulse 3s ease-in-out infinite;
}

.gx-sync-icon.connected { background: #22c55e; box-shadow: 0 0 6px rgba(34, 197, 94, 0.4); }
.gx-sync-icon.partial { background: #f59e0b; box-shadow: 0 0 6px rgba(245, 158, 11, 0.4); }
.gx-sync-icon.disconnected { background: #ef4444; box-shadow: 0 0 6px rgba(239, 68, 68, 0.4); }

@keyframes syncPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.gx-connection-label {
  font-family: 'Poppins', sans-serif;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.gx-connection-info {
  display: flex;
  align-items: center;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.28);
  transition: color 0.2s;
}
.gx-connection-info:hover { color: var(--accent, var(--brand-accent, #00E0FF)); }
.gx-connection-info svg { width: 14px; height: 14px; }

/* ==========================================================================
   Reduced Motion
   ========================================================================== */

@media (prefers-reduced-motion: reduce) {
  .glass-card, .kpi-card, .breakdown-card, .gx-card, .insight-card,
  .target-card, .pipeline-card, .scenario-card, .deal-card,
  .sentiment-card, .channel-card, .funnel-stage {
    animation: none;
    transition: none;
  }
  .glass-card:hover, .kpi-card:hover, .breakdown-card:hover, .gx-card:hover,
  .insight-card:hover, .target-card:hover {
    transform: none;
  }
  .chart-bar { transition: none; }
  .glass-card::before, .kpi-card::before, .breakdown-card::before,
  .gx-card::before, .gx-sync-icon {
    animation: none;
  }
}

/* ==========================================================================
   Responsive Adjustments -- Mobile-first
   ========================================================================== */

@media (max-width: 767px) {
  .mobile-nav { display: flex; }
  .portal-sidebar {
    position: fixed; top: 56px; left: 0; bottom: 64px;
    z-index: 90; transform: translateX(-100%);
    transition: transform 0.25s ease;
  }
  .portal-sidebar.is-open { transform: translateX(0); }
  .sidebar-toggle { display: block; }
  .portal-body { margin-bottom: 64px; }
  .kpi-value, .breakdown-value, .target-value {
    font-size: 1.5rem;
  }
  .insight-value { font-size: 18px; }
  .chart-area { height: 150px; }
  .funnel-stage:nth-child(2),
  .funnel-stage:nth-child(3),
  .funnel-stage:nth-child(4) {
    padding-left: 16px;
    padding-right: 16px;
  }
  .portal-main, .module-content {
    padding: 16px;
  }
}

/* ==========================================================================
   Module Stub -- for planned modules (utilization, branding, account)
   Centro OS v3.0.0
   ========================================================================== */

.gx-module-stub {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.gx-module-stub__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.gx-module-stub__title {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-size: 1.5rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #00E0FF;
  margin: 0;
}

.gx-module-stub__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg-hover, rgba(255, 255, 255, 0.08));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.12));
  font-family: var(--font-display, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, currentColor);
}

.gx-module-stub__lead {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text, #F0F4F8);
  max-width: 62ch;
  margin: 0;
}

.gx-module-stub__tool-suite {
  padding: 20px;
  background: var(--glass-bg, rgba(255, 255, 255, 0.04));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 12px;
}

.gx-module-stub__tool-suite-label {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted, #a1a1aa);
  margin: 0 0 12px 0;
}

.gx-module-stub__tool-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

@media (min-width: 640px) {
  .gx-module-stub__tool-list {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 960px) {
  .gx-module-stub__tool-list {
    grid-template-columns: repeat(3, 1fr);
  }
}

.gx-module-stub__tool-list li {
  padding: 10px 14px;
  background: var(--glass-tile-bg, rgba(20, 20, 22, 0.4));
  border: 1px solid var(--glass-border, rgba(255, 255, 255, 0.08));
  border-radius: 8px;
  font-size: 0.875rem;
  color: var(--text, #F0F4F8);
}

.gx-module-stub__status {
  font-size: 0.8125rem;
  color: var(--text-muted, #a1a1aa);
  font-style: italic;
  margin: 0;
}

/* ==========================================================================
   Tool Suite Tab Bar (per-module sub-navigation)
   Centro OS v3.0.0 -- spec: manifest.json > apps.<id>.toolSuite
   ========================================================================== */

.tool-suite-nav {
  /* Horizontal-scroll tab bar (mobile + desktop) -- no wrapping.
     Wrapping at narrow widths produced ugly multi-row layouts
     (Clay 2026-04-20 Apple-ship directive). Tabs now snap-scroll
     horizontally with a subtle fade edge.
     Sticky-pinned, so the background must be OPAQUE enough that
     content scrolling beneath it does not bleed through -- a 2%
     white tile exposed tile content ghosting through the tab bar. */
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  padding: 10px clamp(16px, 3vw, 24px);
  margin: 0 0 16px 0;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  background: rgba(10, 14, 22, 0.92);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  position: sticky;
  top: 0;
  z-index: 10;
  /* Fade edge on overflow so users know to scroll */
  mask-image: linear-gradient(
    to right,
    transparent 0,
    black 8px,
    black calc(100% - 16px),
    transparent 100%
  );
  -webkit-mask-image: linear-gradient(
    to right,
    transparent 0,
    black 8px,
    black calc(100% - 16px),
    transparent 100%
  );
}

/* Hide scrollbar on WebKit; keep scroll functionality */
.tool-suite-nav::-webkit-scrollbar {
  height: 0;
  background: transparent;
}

.tool-suite-tab {
  flex: 0 0 auto;
  padding: 10px 18px;
  min-height: 44px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--text-muted, #a1a1aa);
  font-family: var(--font-display, inherit);
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
  white-space: nowrap;
  scroll-snap-align: start;
}

.tool-suite-tab:hover {
  background: var(--glass-bg-hover, rgba(255,255,255,0.05));
  color: var(--text, #F0F4F8);
  border-color: var(--glass-border, rgba(255,255,255,0.08));
}

.tool-suite-tab.is-active {
  background: rgba(var(--accent-rgb, 255,255,255), 0.12);
  border-color: rgba(var(--accent-rgb, 255,255,255), 0.4);
  color: var(--accent, #F0F4F8);
  box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 255,255,255), 0.2),
              0 2px 12px rgba(var(--accent-rgb, 255,255,255), 0.1);
}

.tool-suite-tab:focus-visible {
  outline: 2px solid var(--accent, #F0F4F8);
  outline-offset: 2px;
}

/* Tool Suite fallback pane (non-default tab content, legacy class) */
.tool-coming-soon {
  padding: clamp(24px, 4vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin: clamp(16px, 3vw, 24px);
}

.tool-coming-soon__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.tool-coming-soon__title {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--text, #F0F4F8);
  margin: 0;
}

.tool-coming-soon__badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass-bg-hover, rgba(255,255,255,0.08));
  border: 1px solid rgba(var(--accent-rgb, 255,255,255), 0.3);
  font-family: var(--font-display, inherit);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent, currentColor);
}

.tool-coming-soon__lead {
  font-size: 0.9375rem;
  line-height: 1.6;
  color: var(--text, #F0F4F8);
  max-width: 60ch;
  margin: 0;
}

.tool-coming-soon__meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem;
  color: var(--text-muted, #a1a1aa);
  margin: 0;
  padding-top: 8px;
  border-top: 1px dashed var(--glass-border, rgba(255,255,255,0.08));
}

@media (max-width: 767px) {
  .tool-suite-nav {
    padding: 8px 12px;
    gap: 4px;
  }
  .tool-suite-tab {
    padding: 8px 14px;
    font-size: 0.75rem;
  }
}

/* Build marker pill -- live-deploy confirmation indicator */
.build-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 10px;
  padding: 3px 10px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.18);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.5);
  color: var(--accent, #3b82f6);
  font-family: var(--font-mono, monospace);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
}
@media (max-width: 480px) {
  .build-badge { display: none; }
}

/* ==========================================================================
   Sub-Tool Data-Driven Views (gx-sub-tools.js)
   ========================================================================== */
.sub-tool__intro {
  padding: clamp(16px, 3vw, 24px) clamp(16px, 3vw, 24px) 8px;
}
.sub-tool__header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
}
.sub-tool__title {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 700; letter-spacing: 0.02em; text-transform: uppercase;
  color: var(--text, #F0F4F8); margin: 0;
}
.sub-tool__badge {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border-radius: 999px;
  background: rgba(var(--accent-rgb, 255,255,255), 0.14);
  border: 1px solid rgba(var(--accent-rgb, 255,255,255), 0.4);
  font-family: var(--font-display, inherit); font-size: 0.75rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent, currentColor);
}
.sub-tool__subtitle {
  font-size: 0.9375rem; line-height: 1.6; color: var(--text-muted, #a1a1aa);
  max-width: 72ch; margin: 10px 0 18px 0;
}
.sub-tool__meta {
  font-family: var(--font-mono, monospace); font-size: 0.75rem;
  color: var(--text-muted, #a1a1aa); padding: 8px clamp(16px, 3vw, 24px);
  margin: 0;
}

/* KPI grids -- N-column responsive */
.kpi-grid {
  display: grid; gap: 12px;
  padding: 0 clamp(16px, 3vw, 24px) 16px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 640px) {
  .kpi-grid--2, .kpi-grid--3, .kpi-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 960px) {
  .kpi-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .kpi-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Tile load animation -- subtle scale only, never fade. Opacity-from-zero
   was causing tiles to render invisible in environments where the animation
   completed slowly or didn't fire (Playwright headless, slow connections). */
@keyframes tile-in {
  from { transform: translateY(4px) scale(0.99); }
  to   { transform: translateY(0)   scale(1);    }
}

/* Apple Liquid Glass surface -- vibrancy tint + catch-light rim + subtle
   backdrop blur. Concentric 16px outer radius (inner elements step to 12/10). */
.tile {
  position: relative;
  padding: 20px 22px;
  background: var(--glass-tile-bg, var(--mat-regular));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.12));
  border-radius: 18px;
  backdrop-filter: var(--mat-blur-regular);
  -webkit-backdrop-filter: var(--mat-blur-regular);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.10),
    inset 0 -1px 0 rgba(0,0,0,0.18),
    0 1px 2px rgba(0,0,0,0.25),
    0 12px 32px rgba(0,0,0,0.32);
  transition: border-color 220ms var(--ease-standard), box-shadow 220ms var(--ease-standard), transform 220ms var(--ease-spring), background 220ms var(--ease-standard);
}
/* Liquid Glass catch-light overlay -- top-bright / bottom-dim gradient floats
   above the surface, no pointer-events. Apple's signature edge highlight.
   Applied universally so every glass card reads with the same material. */
.tile::before,
.info-tile::before,
.dow-price-tiles__tile::before,
.dow-hours-tiles__tile::before,
.dow-util-tiles__tile::before,
.pipeline-deal-card::before,
.pipeline-seg-tile::before,
.campaign-card::before,
.top-actions__card::before,
.at-a-glance__tile::before,
.dyn-pricing__cell::before,
.vero-helper::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: inherit;
  background: var(--catch-light);
  pointer-events: none;
  opacity: 0.7;
  /* No mix-blend-mode -- straight alpha on top so tile content stays readable */
}
/* Ensure every glass card is its own positioning context for ::before */
.dow-price-tiles__tile,
.dow-hours-tiles__tile,
.dow-util-tiles__tile,
.pipeline-deal-card,
.pipeline-seg-tile,
.campaign-card,
.top-actions__card,
.at-a-glance__tile,
.dyn-pricing__cell,
.vero-helper { position: relative; }
/* Body content sits above the catch-light overlay */
.tile > *,
.info-tile > *,
.dow-price-tiles__tile > *,
.dow-hours-tiles__tile > *,
.dow-util-tiles__tile > *,
.pipeline-deal-card > *,
.pipeline-seg-tile > *,
.campaign-card > *,
.top-actions__card > *,
.at-a-glance__tile > *,
.dyn-pricing__cell > *,
.vero-helper > * { position: relative; z-index: 1; }
.tile:hover {
  background: var(--glass-tile-bg-hover, rgba(255,255,255,0.07));
  border-color: rgba(var(--accent-rgb, 0,224,255), 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.16),
    inset 0 -1px 0 rgba(0,0,0,0.24),
    0 14px 38px rgba(0,0,0,0.48),
    0 0 48px rgba(var(--accent-rgb, 0,224,255), 0.22);
  transform: translateY(-3px);
}
@media (prefers-reduced-motion: no-preference) {
  .tile { animation: tile-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both; }
}

.kpi-tile .kpi-label {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted, #a1a1aa); margin-bottom: 8px;
}
.kpi-tile .kpi-value {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 2.8vw, 1.75rem);
  font-weight: 900; color: var(--text, #F0F4F8); line-height: 1;
}
.kpi-tile .kpi-sub {
  font-size: 0.8125rem; color: var(--text-muted, #a1a1aa); margin-top: 8px;
}
.kpi-tile.is-above { border-color: rgba(16, 185, 129, 0.35); }
.kpi-tile.is-above .kpi-sub { color: rgba(16, 185, 129, 0.95); }
.kpi-tile.is-below { border-color: rgba(239, 68, 68, 0.35); }
.kpi-tile.is-below .kpi-sub { color: rgba(239, 68, 68, 0.95); }

/* Section header -- generous breathing room. Border-bottom separator per STANDARDS.md. */
.section-header {
  display: flex; align-items: center; gap: 14px;
  padding: 24px clamp(16px, 3vw, 24px) 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 10px;
}
.section-bar {
  width: 4px; height: 16px; border-radius: 2px;
  background: linear-gradient(180deg, var(--accent, #3b82f6), rgba(var(--accent-rgb, 59,130,246), 0.6));
  box-shadow: 0 0 12px rgba(var(--accent-rgb, 59,130,246), 0.6);
}
.section-label {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(240, 244, 248, 0.48);
  margin: 0;
}

/* Python-rendered section headers (from _common.py section_header()) */
.cos-section-header {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-size: 13px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(240, 244, 248, 0.48);
  margin: 24px 0 10px 0; padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Data table */
.data-table-wrap {
  margin: 0 clamp(16px, 3vw, 24px) 16px;
  padding: 0;
  overflow: hidden;
}
.data-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.data-table th {
  text-align: left; padding: 12px 14px;
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--text-muted, #a1a1aa);
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.1));
  background: rgba(255,255,255,0.02);
}
.data-table td {
  padding: 11px 14px;
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.05));
  color: var(--text, #F0F4F8);
}
.data-table tbody tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.data-table-foot {
  padding: 10px 14px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
  border-top: 1px dashed var(--glass-border, rgba(255,255,255,0.08));
}

/* Stack grids for insights / actions */
.stack-grid {
  display: grid; gap: 12px;
  padding: 0 clamp(16px, 3vw, 24px) 20px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
}
@media (min-width: 700px) {
  .stack-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stack-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) {
  .stack-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

.insight-card { display: flex; flex-direction: column; gap: 8px; }
.insight-card__head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.insight-card__title {
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem; font-weight: 700;
  color: var(--text, #F0F4F8); margin: 0;
}
.insight-card__meta {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--accent, #3b82f6);
}
.insight-card__body {
  font-size: 0.875rem; line-height: 1.55; color: var(--text-muted, #d4d4d8);
  margin: 0;
}

.action-card {
  display: flex; flex-direction: column; gap: 6px;
  border-left: 3px solid var(--accent, #3b82f6);
}
.action-card__title {
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem; font-weight: 700;
  color: var(--text, #F0F4F8);
}
.action-card__why {
  font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted, #d4d4d8);
}
.action-card__owner {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted, #a1a1aa); margin-top: 4px;
}

/* ==========================================================================
   Vero Intelligence -- Pending Data states, indicators, info popovers
   ========================================================================== */

/* Sub-tool badge status variants */
.sub-tool__badge--pending {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.5);
  color: rgb(252, 165, 165);
}
.sub-tool__badge--partial {
  background: rgba(234, 179, 8, 0.14);
  border-color: rgba(234, 179, 8, 0.5);
  color: rgb(250, 204, 21);
}

/* KPI tile status backgrounds (Meets / Above / Below) */
.kpi-tile--above { border-color: rgba(16, 185, 129, 0.4); }
.kpi-tile--below { border-color: rgba(239, 68, 68, 0.4); }
.kpi-tile--meets { border-color: rgba(234, 179, 8, 0.3); }

.kpi-tile .kpi-value-row {
  display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
}
.kpi-tile .kpi-target {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
  margin-top: 4px;
}

/* ==========================================================================
   Important Info Tile -- Apple-style (Dashboard + Quick Glance)
   Layout: top-right info icon, center big number, right Vero Target pill,
   bottom centered title + caption + target reference.
   ========================================================================== */
.info-tile {
  position: relative;
  display: flex; flex-direction: column;
  justify-content: space-between;
  min-height: 180px;
  padding: 16px 20px 18px;
  gap: 14px;
  transition: border-color 160ms ease, transform 160ms ease;
}
.info-tile--above { border-color: rgba(16, 185, 129, 0.45); }
.info-tile--below { border-color: rgba(239, 68, 68, 0.45); }
.info-tile--meets { border-color: rgba(234, 179, 8, 0.40); }

.info-tile__top {
  display: flex; align-items: center; justify-content: flex-end;
  min-height: 20px;
}
.info-tile__top .info-btn { margin-left: 0; }

.info-tile__middle {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 80px;
}
.info-tile__middle--clickable { cursor: pointer; }
.info-tile__middle--clickable:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 59,130,246), 0.55);
  outline-offset: 4px;
  border-radius: 12px;
}
/* Claypunk Glass Arrow -- 24x24 inline, left of KPI value.
   Beveled fill, catch-light inset, accent glow. No label text.
   Replaces the large centered disc indicator. */
.info-tile__arrow {
  flex-shrink: 0;
  width: 24px; height: 24px;
  display: flex; align-items: center; justify-content: center;
  transition: filter 200ms ease, transform 200ms ease;
}
.info-tile__arrow > svg { display: block; width: 24px; height: 24px; }
.info-tile__arrow--above { filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.55)); }
.info-tile__arrow--below { filter: drop-shadow(0 0 6px rgba(239, 68, 68, 0.55)); }
.info-tile__arrow--meets { filter: drop-shadow(0 0 5px rgba(234, 179, 8, 0.45)); }
.info-tile__middle--clickable:hover .info-tile__arrow { transform: scale(1.12); }
@media (prefers-reduced-motion: reduce) { .info-tile__arrow { transition: none; } }

/* Glass Arrow SVG parts */
/* Background pill */
.glass-arrow__bg {
  fill: rgba(255,255,255,0.07);
  stroke: rgba(255,255,255,0.18);
  stroke-width: 0.75;
}
.glass-arrow--above .glass-arrow__bg {
  fill: rgba(16, 185, 129, 0.18);
  stroke: rgba(16, 185, 129, 0.50);
}
.glass-arrow--below .glass-arrow__bg {
  fill: rgba(239, 68, 68, 0.18);
  stroke: rgba(239, 68, 68, 0.50);
}
.glass-arrow--meets .glass-arrow__bg {
  fill: rgba(234, 179, 8, 0.14);
  stroke: rgba(234, 179, 8, 0.42);
}

/* Catch-light -- Liquid Glass signature: bright inset arc at top */
.glass-arrow__rim {
  stroke: rgba(255,255,255,0.55);
  stroke-width: 1.0;
  stroke-linecap: round;
}

/* Arrow glyph stroke */
.glass-arrow__glyph { stroke-width: 1.75; }
.glass-arrow--above .glass-arrow__glyph { stroke: rgb(110, 231, 183); }
.glass-arrow--below .glass-arrow__glyph { stroke: rgb(252, 165, 165); }
.glass-arrow--meets .glass-arrow__glyph { stroke: rgb(250, 204, 21); }
/* KPI display number -- Apple Large Title scaled up for widget hierarchy */
.info-tile__value {
  position: relative;
  font-family: var(--font-display, inherit);
  font-size: clamp(var(--type-large-title), 7vw, 4.25rem);
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--text, #F0F4F8);
  text-align: center;
  min-width: 0;
  word-break: break-word;
  z-index: 1;
  font-variant-numeric: tabular-nums;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.6);
}

.info-tile__bottom {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  text-align: center;
}
/* Apple "Headline" / "Footnote" pairing under widget value -- vibrant text
   uses tile background blur as ambient halo; subtle text-shadow keeps
   readability over translucent material. */
.info-tile__title {
  font-family: var(--font-display, inherit);
  font-size: var(--type-caption-1, 11px); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.88px;
  color: var(--text, #F0F4F8);
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}
.info-tile__caption {
  font-size: var(--type-footnote, 12px); line-height: 1.4;
  color: var(--text-muted, rgba(240,244,248,0.72));
  max-width: 36ch;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.info-tile__target-label {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; letter-spacing: 0.04em;
  color: var(--text-muted, #8a8a90);
  margin-top: 4px;
}

@media (min-width: 700px) {
  .info-tile { min-height: 200px; }
}
.indicator {
  display: inline-flex; align-items: center; justify-content: center;
  width: 28px; height: 28px; border-radius: 999px;
  font-family: var(--font-display, inherit);
  font-size: 0.95rem; font-weight: 900; line-height: 1;
}
.indicator--above { background: rgba(16, 185, 129, 0.18); color: rgb(110, 231, 183); }
.indicator--below { background: rgba(239, 68, 68, 0.18);  color: rgb(252, 165, 165); }
.indicator--meets { background: rgba(234, 179, 8, 0.18);  color: rgb(250, 204, 21); }

/* Info icon + popover -- 44px hit target (HIG R010), 24px visual glass disc.
   Apple-ship polish (Clay 2026-04-20): the info "i" is a PASSIVE affordance
   that should not compete with the KPI value for attention. Use muted
   text color by default; brand accent only on hover/focus/active so
   the brand's accent (orange for JUMP, cyan for Ballast, etc) is never
   interpreted as an alert on a cold glance. */
.info-btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; margin-left: 4px;
  padding: 10px;
  border: 0; background: transparent;
  color: var(--text-muted, rgba(240,244,248,0.52));
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem; font-weight: 700; line-height: 1;
  cursor: pointer; vertical-align: middle;
  -webkit-tap-highlight-color: transparent;
  transition: color 180ms cubic-bezier(0,0,0.2,1);
}
.info-btn:hover,
.info-btn:focus-visible,
.info-btn[aria-expanded="true"] {
  color: var(--accent, currentColor);
}
.info-btn::before {
  content: '';
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 24px; height: 24px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.18);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.14);
  transition: background 180ms cubic-bezier(0,0,0.2,1), border-color 180ms cubic-bezier(0,0,0.2,1), transform 180ms cubic-bezier(0,0,0.2,1);
}
.info-btn:hover::before {
  background: rgba(var(--accent-rgb, 59,130,246), 0.20);
  border-color: rgba(var(--accent-rgb, 59,130,246), 0.55);
  transform: translate(-50%, -50%) scale(1.08);
}
.info-btn:focus-visible::before {
  outline: 2px solid rgba(var(--accent-rgb, 59,130,246), 0.6);
  outline-offset: 2px;
}
.info-popover {
  position: absolute; z-index: 9999;
  max-width: 360px; min-width: 280px;
  padding: 16px 18px;
  background: var(--bg-darkest, #030101);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.4);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.6);
  font-size: 0.8125rem; line-height: 1.5;
  color: var(--text, #F0F4F8);
}
.info-popover__row { display: grid; grid-template-columns: 80px 1fr; gap: 8px 12px; margin-bottom: 8px; }
.info-popover__key { font-family: var(--font-display, inherit); font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--accent, currentColor); }
.info-popover__val { color: var(--text, #F0F4F8); }
.info-popover__close {
  position: absolute; top: 8px; right: 10px;
  background: transparent; border: none; color: var(--text-muted, #a1a1aa);
  font-size: 1.2rem; cursor: pointer;
}

/* Vero Context tile */
.vero-context { margin: 0 clamp(16px, 3vw, 24px) 12px; }
.vero-context__label {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent, currentColor);
  margin-bottom: 10px;
}
.vero-context__body { display: grid; gap: 6px; font-size: 0.875rem; line-height: 1.5; }
.vero-context__body strong { color: var(--text-muted, #a1a1aa); font-weight: 700; }

/* Vero Action CTA button */
.action-card__cta {
  align-self: flex-start; margin-top: 10px;
  padding: 8px 14px; min-height: 36px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.14);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.5);
  border-radius: 8px;
  color: var(--accent, currentColor);
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; transition: background 0.15s ease;
}
.action-card__cta:hover { background: rgba(var(--accent-rgb, 59,130,246), 0.24); }

/* Pending Data pane */
.pending-pane {
  margin: 0 clamp(16px, 3vw, 24px) 16px;
  border-left: 3px solid rgba(239, 68, 68, 0.6);
}
.pending-pane__badge {
  display: inline-flex; align-items: center;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(239, 68, 68, 0.18);
  border: 1px solid rgba(239, 68, 68, 0.5);
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.08em; color: rgb(252, 165, 165); margin-bottom: 10px;
}
.pending-pane__title {
  font-family: var(--font-display, inherit);
  font-size: 1.125rem; font-weight: 700; color: var(--text, #F0F4F8); margin: 0 0 14px 0;
}
.pending-pane__list { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.pending-pane__item {
  padding: 12px 14px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 8px;
}
.pending-pane__key { font-family: var(--font-display, inherit); font-size: 0.9375rem; font-weight: 700; color: var(--text, #F0F4F8); margin-bottom: 4px; }
.pending-pane__why { font-size: 0.8125rem; color: var(--text-muted, #d4d4d8); line-height: 1.5; margin-bottom: 6px; }
.pending-pane__source { font-size: 0.75rem; color: var(--text-muted, #a1a1aa); }
.pending-pane__source strong { font-family: var(--font-display, inherit); font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; color: var(--accent, currentColor); }
.pending-pane__who {
  display: inline-block; margin-top: 6px;
  font-family: var(--font-mono, monospace); font-size: 0.75rem;
  color: var(--text-muted, #a1a1aa);
}

/* ==========================================================================
   GX Symbols -- inline SVG icon set, SF-Symbols-style (single weight, round caps)
   ========================================================================== */
.gx-symbol {
  width: 1em; height: 1em; display: inline-block; flex-shrink: 0;
  vertical-align: -0.125em;
  color: currentColor;
  transition: color 160ms var(--ease-standard);
}
.gx-symbol--lg { width: 22px; height: 22px; }
.gx-symbol--xl { width: 28px; height: 28px; }

/* Icon-text lockup */
.gx-icon-text {
  display: inline-flex; align-items: center; gap: 6px;
}

/* ==========================================================================
   GX Sheet -- HIG modal partial-screen (bottom-sheet on mobile, centered on desktop)
   ========================================================================== */
@keyframes gx-sheet-in     { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: translateY(0); } }
@keyframes gx-sheet-out    { from { opacity: 1; transform: translateY(0); }   to { opacity: 0; transform: translateY(24px); } }
@keyframes gx-sheet-backdrop-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes gx-sheet-backdrop-out { from { opacity: 1; } to { opacity: 0; } }

.gx-sheet-wrap {
  position: fixed; inset: 0; z-index: 10000;
  display: flex; align-items: flex-end; justify-content: center;
  pointer-events: none;
}
.gx-sheet__backdrop {
  position: absolute; inset: 0;
  background: rgba(5,24,47,0.65);
  backdrop-filter: blur(12px) saturate(140%);
  -webkit-backdrop-filter: blur(12px) saturate(140%);
  pointer-events: auto;
  animation: gx-sheet-backdrop-in 180ms cubic-bezier(0,0,0.2,1) both;
}
.gx-sheet-wrap.is-closing .gx-sheet__backdrop { animation: gx-sheet-backdrop-out 220ms cubic-bezier(0,0,0.2,1) both; }
.gx-sheet {
  position: relative;
  width: 100%; max-width: 520px; max-height: 86vh;
  margin: 0; padding: 0;
  border-radius: 20px 20px 0 0;
  pointer-events: auto;
  display: flex; flex-direction: column;
  animation: gx-sheet-in 360ms cubic-bezier(0.16, 1, 0.3, 1) both;
}
.gx-sheet-wrap.is-closing .gx-sheet { animation: gx-sheet-out 220ms cubic-bezier(0,0,0.2,1) both; }
@media (min-width: 720px) {
  .gx-sheet-wrap { align-items: center; padding: 24px; }
  .gx-sheet { border-radius: 20px; }
}
.gx-sheet__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 18px 20px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.gx-sheet__title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1.125rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text, #F0F4F8);
  margin: 0;
}
.gx-sheet__close {
  width: 44px; height: 44px;
  background: transparent; border: 0; cursor: pointer;
  color: rgba(240,244,248,0.72);
  font-size: 1.35rem; line-height: 1;
}
.gx-sheet__close:hover { color: var(--text, #F0F4F8); }
.gx-sheet__body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1 1 auto;
  overscroll-behavior: contain;
}
.gx-sheet__footer {
  padding: 14px 20px 18px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex; gap: 10px; justify-content: flex-end;
}

/* ==========================================================================
   GX Toggle -- HIG binary switch (28x16 pill + 12x12 knob)
   ========================================================================== */
.gx-toggle {
  display: inline-flex; align-items: center; gap: 10px;
  cursor: pointer; user-select: none;
  min-height: 44px;
}
.gx-toggle__input {
  position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden;
  clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.gx-toggle__track {
  position: relative;
  width: 28px; height: 16px;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.14);
  border-radius: 999px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
  transition: background 200ms cubic-bezier(0,0,0.2,1), border-color 200ms cubic-bezier(0,0,0.2,1);
}
.gx-toggle__knob {
  position: absolute; top: 1px; left: 1px;
  width: 12px; height: 12px;
  background: var(--text, #F0F4F8);
  border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0,0,0,0.35);
  transition: transform 200ms cubic-bezier(0,0,0.2,1);
}
.gx-toggle__input:checked + .gx-toggle__track {
  background: rgba(var(--accent-rgb, 0,224,255), 0.55);
  border-color: rgba(var(--accent-rgb, 0,224,255), 0.75);
}
.gx-toggle__input:checked + .gx-toggle__track .gx-toggle__knob { transform: translateX(12px); }
.gx-toggle__input:focus-visible + .gx-toggle__track {
  outline: 2px solid rgba(var(--accent-rgb, 0,224,255), 0.65);
  outline-offset: 2px;
}
.gx-toggle__input:disabled + .gx-toggle__track { opacity: 0.4; cursor: not-allowed; }
.gx-toggle__label {
  font-family: var(--font-body, inherit);
  font-size: 0.875rem; color: var(--text, #F0F4F8);
}

/* ==========================================================================
   Page Controls -- HIG pagination dots
   ========================================================================== */
.page-controls {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 4px;
  min-height: 44px;
}
.page-controls__dot {
  width: 8px; height: 8px;
  padding: 0; border: 0; cursor: pointer;
  border-radius: 999px;
  background: rgba(255,255,255,0.30);
  transition: transform 160ms cubic-bezier(0,0,0.2,1), background 160ms cubic-bezier(0,0,0.2,1);
}
.page-controls__dot:hover { background: rgba(255,255,255,0.5); transform: scale(1.1); }
.page-controls__dot.is-active {
  background: var(--accent, #00E0FF);
  box-shadow: 0 0 6px rgba(var(--accent-rgb, 0,224,255), 0.7);
  transform: scale(1.15);
}
.page-controls__dot:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 0,224,255), 0.65);
  outline-offset: 3px;
}

/* ==========================================================================
   Dashboard Revenue Trend (sparkline widget, Apple-widget style)
   ========================================================================== */
.rev-trend { margin: 0 clamp(16px, 3vw, 24px) 24px; }
.rev-trend__card {
  display: flex; flex-direction: column; gap: 10px;
  padding: 18px 20px;
  margin: 0 clamp(16px, 3vw, 24px);
}
.rev-trend__top {
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.rev-trend__latest {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 900;
  letter-spacing: -0.02em;
  color: var(--text, #F0F4F8);
  line-height: 1;
}
.rev-trend__delta {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem; font-weight: 700;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.rev-trend__delta--up   { color: rgb(110, 231, 183); border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.10); }
.rev-trend__delta--down { color: rgb(252, 165, 165); border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.10); }
.rev-trend__spark {
  width: 100%; height: 96px;
  display: block;
}
.rev-trend__grad-top { stop-color: rgba(var(--accent-rgb, 0,224,255), 0.35); }
.rev-trend__grad-bot { stop-color: rgba(var(--accent-rgb, 0,224,255), 0.00); }
.rev-trend__area { opacity: 0.85; }
.rev-trend__line {
  stroke: var(--accent, #00E0FF);
  stroke-width: 2;
  filter: drop-shadow(0 0 6px rgba(var(--accent-rgb, 0,224,255), 0.55));
}
.rev-trend__dot {
  fill: var(--accent, #00E0FF);
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb, 0,224,255), 0.9));
}
.rev-trend__labels {
  display: flex; justify-content: space-between;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; color: rgba(240, 244, 248, 0.48);
}

/* ==========================================================================
   Dashboard Top Actions (3 priority-colored glass cards)
   ========================================================================== */
.top-actions { margin: 0 clamp(16px, 3vw, 24px) 24px; }
.top-actions__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 0 clamp(16px, 3vw, 24px);
}
@media (min-width: 720px)  { .top-actions__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.top-actions__card {
  appearance: none; text-align: left;
  padding: 16px 18px; min-height: 144px;
  background: var(--glass-tile-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 14px;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.07);
  color: inherit; cursor: pointer;
  display: flex; flex-direction: column; gap: 6px;
  transition: transform 0.16s cubic-bezier(0,0,0.2,1), box-shadow 0.16s cubic-bezier(0,0,0.2,1), border-color 0.16s cubic-bezier(0,0,0.2,1);
}
.top-actions__card:hover { transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 10px 28px rgba(0,0,0,0.34); }
.top-actions__card--p0 { border-color: rgba(239, 68, 68, 0.50); }
.top-actions__card--p1 { border-color: rgba(234, 179, 8, 0.50); }
.top-actions__card--p2 { border-color: rgba(var(--accent-rgb, 0,224,255), 0.40); }
.top-actions__priority {
  align-self: flex-start;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.14);
  color: var(--text, #F0F4F8);
  letter-spacing: 0.06em;
}
.top-actions__card--p0 .top-actions__priority { background: rgba(239, 68, 68, 0.15); border-color: rgba(239, 68, 68, 0.5); color: rgb(252, 165, 165); }
.top-actions__card--p1 .top-actions__priority { background: rgba(234, 179, 8, 0.15); border-color: rgba(234, 179, 8, 0.5); color: rgb(250, 204, 21); }
.top-actions__title {
  font-family: var(--font-display, 'Poppins', sans-serif);
  font-size: 1rem; font-weight: 700;
  color: var(--text, #F0F4F8); line-height: 1.3;
}
.top-actions__desc {
  font-size: 0.8125rem; color: rgba(240, 244, 248, 0.72); line-height: 1.45;
  flex: 1 1 auto;
}
.top-actions__cta {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--accent, #00E0FF);
}

/* ==========================================================================
   Dashboard At-a-Glance (hot-linked tiles to each app's Quick Glance)
   ========================================================================== */
.at-a-glance { margin: 0 clamp(16px, 3vw, 24px) 24px; }
.at-a-glance__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 clamp(16px, 3vw, 24px);
}
@media (min-width: 720px)  { .at-a-glance__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .at-a-glance__grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.at-a-glance__tile {
  appearance: none; text-align: left;
  padding: 16px 18px; min-height: 128px;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  color: inherit; cursor: pointer;
  position: relative;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.at-a-glance__tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0,0,0,0.34);
  border-color: rgba(var(--accent-rgb, 59,130,246), 0.4);
}
.at-a-glance__tile:focus-visible { outline: 2px solid rgba(var(--accent-rgb, 59,130,246), 0.55); outline-offset: 3px; }
.at-a-glance__tile--win  { border-color: rgba(16, 185, 129, 0.45); }
.at-a-glance__tile--lose { border-color: rgba(239, 68, 68, 0.45); }
.at-a-glance__label {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted, #a1a1aa);
}
.at-a-glance__value {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3.6vw, 2rem);
  font-weight: 900; line-height: 1;
  color: var(--text, #F0F4F8);
  letter-spacing: -0.01em;
}
.at-a-glance__tile--win  .at-a-glance__value { color: rgb(110, 231, 183); }
.at-a-glance__tile--lose .at-a-glance__value { color: rgb(252, 165, 165); }
.at-a-glance__ref {
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa); line-height: 1.4;
}
.at-a-glance__arrow {
  position: absolute; top: 14px; right: 14px;
  font-size: 1.1rem; color: var(--text-muted, #8a8a90);
  transition: transform 0.16s ease;
}
.at-a-glance__tile:hover .at-a-glance__arrow { transform: translateX(4px); color: var(--text, #F0F4F8); }

/* ==========================================================================
   Period Control (Historical vs Actual vs Industry vs Goals time toggle)
   ========================================================================== */
.period-control {
  display: inline-flex; align-items: center; gap: 0;
  padding: 4px; margin: 0 clamp(16px, 3vw, 24px) 12px;
  border-radius: 999px;
  background: var(--glass-bg, rgba(255,255,255,0.04));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.1));
}
.period-control__btn {
  padding: 6px 14px; min-height: 32px;
  border: 1px solid transparent; border-radius: 999px;
  background: transparent; color: var(--text-muted, #a1a1aa);
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; transition: all 0.16s ease;
}
.period-control__btn:hover { color: var(--text, #F0F4F8); background: rgba(255,255,255,0.04); }
.period-control__btn.is-active {
  background: rgba(var(--accent-rgb, 59,130,246), 0.18);
  border-color: rgba(var(--accent-rgb, 59,130,246), 0.5);
  color: var(--accent, currentColor);
}

/* ==========================================================================
   Stat Compare (Historical / Actual / Industry / Goal)
   ========================================================================== */
.stat-compare { margin: 0 clamp(16px, 3vw, 24px) 16px; }
.stat-compare__table {
  font-variant-numeric: tabular-nums;
  border-spacing: 0;
}
.stat-compare__table th,
.stat-compare__table td {
  text-align: right;
  padding: 12px 14px;
}
.stat-compare__table th {
  font-family: 'Inter', var(--font-body, inherit);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.88px;
  color: rgba(240, 244, 248, 0.48);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.stat-compare__table th:first-child,
.stat-compare__table td.stat-compare__label {
  text-align: left;
}
.stat-compare__table tbody tr {
  transition: background 160ms cubic-bezier(0,0,0.2,1);
}
.stat-compare__table tbody tr:hover { background: rgba(255,255,255,0.025); }
.stat-compare__table tbody td {
  border-bottom: 1px solid rgba(255,255,255,0.04);
  font-family: var(--font-mono, monospace);
}
.stat-compare__label {
  font-family: var(--font-body, inherit) !important;
  font-size: 13px; color: var(--text, #F0F4F8); font-weight: 600;
}
.stat-compare__label .info-btn { margin-left: 4px; }
/* Actual column gets the accent treatment */
.stat-compare__actual {
  font-weight: 700;
  font-size: 14px;
  color: var(--text, #F0F4F8);
  background: rgba(255,255,255,0.025);
  position: relative;
}
.stat-compare__actual.is-in-band,
.stat-compare__actual.is-above-band {
  color: rgb(110, 231, 183);
  background: rgba(16, 185, 129, 0.06);
}
.stat-compare__actual.is-below-band {
  color: rgb(252, 165, 165);
  background: rgba(239, 68, 68, 0.07);
}

/* ==========================================================================
   Campaign Manager -- campaign cards (replaces spreadsheet)
   ========================================================================== */
.campaign-card-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 0 clamp(16px, 3vw, 24px) 20px;
}
@media (min-width: 720px)  { .campaign-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .campaign-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.campaign-card {
  position: relative;
  padding: 16px 18px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 8px;
}
.campaign-card .info-btn { position: absolute; top: 12px; right: 12px; margin: 0; }
.campaign-card--win  { border-color: rgba(16, 185, 129, 0.45); }
.campaign-card--mid  { border-color: rgba(234, 179, 8, 0.45); }
.campaign-card--lose { border-color: rgba(239, 68, 68, 0.45); }
.campaign-card__platform {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted, #a1a1aa);
}
.campaign-card__name {
  font-family: var(--font-display, inherit);
  font-size: 1rem; font-weight: 700;
  color: var(--text, #F0F4F8); line-height: 1.3;
}
.campaign-card__roas-label {
  font-size: 0.75rem; color: var(--text-muted, #c0c0c5);
}
.campaign-card__bar {
  height: 6px; background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden;
}
.campaign-card--win  .campaign-card__bar-fill { background: linear-gradient(90deg, rgba(16, 185, 129, 0.55), rgba(16, 185, 129, 0.92)); }
.campaign-card--mid  .campaign-card__bar-fill { background: linear-gradient(90deg, rgba(234, 179, 8, 0.55), rgba(234, 179, 8, 0.92)); }
.campaign-card--lose .campaign-card__bar-fill { background: linear-gradient(90deg, rgba(239, 68, 68, 0.55), rgba(239, 68, 68, 0.92)); }
.campaign-card__bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 0.5s ease;
}
.campaign-card__metrics {
  display: grid; gap: 6px; grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 4px;
}
.campaign-card__metrics > div { display: flex; flex-direction: column; gap: 2px; }
.campaign-card__metric-label {
  font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted, #8a8a90);
}
.campaign-card__metric-value {
  font-family: var(--font-mono, monospace);
  font-size: 0.875rem; color: var(--text, #F0F4F8);
}

/* ==========================================================================
   Pipeline Toolbar + Add Deal Sheet form
   ========================================================================== */
.pipeline-toolbar {
  display: flex; align-items: center; justify-content: flex-end; gap: 14px;
  margin: 4px clamp(16px, 3vw, 24px) 12px;
}
.pipeline-toolbar__add {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 16px; min-height: 44px;
  background: rgba(var(--accent-rgb, 0,224,255), 0.14);
  border: 1px solid rgba(var(--accent-rgb, 0,224,255), 0.45);
  color: var(--accent, #00E0FF);
  border-radius: 999px;
  font-family: var(--font-display, inherit);
  font-size: 13px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  cursor: pointer;
  transition: background 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}
.pipeline-toolbar__add:hover {
  background: rgba(var(--accent-rgb, 0,224,255), 0.22);
  transform: translateY(-1px);
}
.pipeline-toolbar__add .gx-symbol { width: 18px; height: 18px; }

.pipeline-add-form { display: flex; flex-direction: column; gap: 14px; }
.pipeline-add-form__field { display: flex; flex-direction: column; gap: 6px; }
.pipeline-add-form__field > span {
  font-family: var(--font-display, inherit);
  font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: rgba(240,244,248,0.6);
}
.pipeline-add-form__field input,
.pipeline-add-form__field select {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: var(--text, #F0F4F8);
  padding: 10px 12px; min-height: 44px;
  font: inherit;
}
.pipeline-add-form__field input:focus,
.pipeline-add-form__field select:focus {
  outline: 2px solid rgba(var(--accent-rgb, 0,224,255), 0.55);
  outline-offset: 2px;
}
.pipeline-add-form__footer { display: flex; gap: 10px; justify-content: flex-end; width: 100%; }

.gx-btn {
  appearance: none; cursor: pointer;
  font: 700 13px/1 var(--font-display, inherit);
  text-transform: uppercase; letter-spacing: 0.06em;
  padding: 10px 18px; min-height: 44px;
  border-radius: 12px;
  transition: background 180ms var(--ease-standard), transform 180ms var(--ease-standard);
}
.gx-btn--primary {
  background: linear-gradient(135deg, rgba(var(--accent-rgb, 0,224,255), 0.85), rgba(var(--accent-rgb, 0,224,255), 0.65));
  color: var(--bg-darkest, #05182F);
  border: 0;
}
.gx-btn--primary:hover { transform: translateY(-1px); }
.gx-btn--ghost {
  background: transparent; color: rgba(240,244,248,0.72);
  border: 1px solid rgba(255,255,255,0.18);
}
.gx-btn--ghost:hover { color: var(--text, #F0F4F8); border-color: rgba(255,255,255,0.32); }

/* ==========================================================================
   Pipeline Manager -- segment tiles + funnel bars + deal cards
   ========================================================================== */
.pipeline-seg-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0 clamp(16px, 3vw, 24px) 20px;
}
@media (min-width: 720px) { .pipeline-seg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pipeline-seg-tile {
  appearance: none; text-align: left;
  padding: 14px 16px; min-height: 96px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  color: inherit; cursor: pointer;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
  display: flex; flex-direction: column; gap: 4px;
}
.pipeline-seg-tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.pipeline-seg-tile.is-active { border-color: rgba(var(--accent-rgb, 59,130,246), 0.6); box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 59,130,246), 0.4); }
.pipeline-seg-tile__label {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted, #a1a1aa);
}
.pipeline-seg-tile__value {
  font-family: var(--font-display, inherit);
  font-size: 1.4rem; font-weight: 900;
  color: var(--text, #F0F4F8);
}
.pipeline-seg-tile__sub {
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
}

.pipeline-drill { margin: 0 clamp(16px, 3vw, 24px) 20px; }

.pipeline-funnel {
  display: flex; flex-direction: column; gap: 8px;
  padding: 0 clamp(16px, 3vw, 24px) 16px;
}
.pipeline-funnel__stage {
  display: flex; align-items: center; gap: 14px;
}
.pipeline-funnel__label {
  width: 120px; flex: 0 0 120px;
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted, #a1a1aa);
}
.pipeline-funnel__bar {
  flex: 1 1 auto; height: 20px;
  background: rgba(255,255,255,0.04);
  border-radius: 999px; overflow: hidden;
}
.pipeline-funnel__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb, 59,130,246), 0.55), rgba(var(--accent-rgb, 59,130,246), 0.92));
  border-radius: 999px;
  transition: width 0.5s ease;
}
.pipeline-funnel__stage--closed-won .pipeline-funnel__bar-fill  { background: linear-gradient(90deg, rgba(16, 185, 129, 0.55), rgba(16, 185, 129, 0.92)); }
.pipeline-funnel__stage--closed-lost .pipeline-funnel__bar-fill { background: linear-gradient(90deg, rgba(239, 68, 68, 0.55), rgba(239, 68, 68, 0.92)); }
.pipeline-funnel__meta {
  width: 180px; flex: 0 0 180px;
  font-size: 0.75rem; color: var(--text, #F0F4F8);
  text-align: right;
}

.pipeline-deal-grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  padding: 0 clamp(16px, 3vw, 24px) 20px;
}
@media (min-width: 720px)  { .pipeline-deal-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pipeline-deal-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pipeline-deal-card {
  position: relative;
  padding: 16px 18px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 6px;
}
.pipeline-deal-card .info-btn { position: absolute; top: 12px; right: 12px; margin: 0; }
.pipeline-deal-card__stage {
  align-self: flex-start;
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  background: rgba(var(--accent-rgb, 59,130,246), 0.18);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.5);
  color: var(--accent, currentColor);
}
.pipeline-deal-card__stage--closed-won  { background: rgba(16, 185, 129, 0.18); border-color: rgba(16, 185, 129, 0.5); color: rgb(110, 231, 183); }
.pipeline-deal-card__stage--closed-lost { background: rgba(239, 68, 68, 0.18);  border-color: rgba(239, 68, 68, 0.5);  color: rgb(252, 165, 165); }
.pipeline-deal-card__stage--new         { background: rgba(234, 179, 8, 0.18);  border-color: rgba(234, 179, 8, 0.5);  color: rgb(250, 204, 21); }
.pipeline-deal-card__name {
  font-family: var(--font-display, inherit);
  font-size: 1rem; font-weight: 700;
  color: var(--text, #F0F4F8); line-height: 1.25;
}
.pipeline-deal-card__value {
  font-family: var(--font-mono, monospace);
  font-size: 0.9375rem; color: var(--text, #F0F4F8);
}
.pipeline-deal-card__next {
  font-size: 0.8125rem; color: var(--text-muted, #c0c0c5);
}
.pipeline-deal-card__updated {
  font-size: 0.75rem; color: var(--text-muted, #8a8a90);
  font-family: var(--font-mono, monospace);
}

/* ==========================================================================
   Per-DOW Utilization Tiles (replaces capacity-vs-demand spreadsheet)
   ========================================================================== */
.dow-util-tiles { margin: 0 clamp(16px, 3vw, 24px) 20px; }
.dow-util-tiles__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .dow-util-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dow-util-tiles__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.dow-util-tiles__tile {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.dow-util-tiles__tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.dow-util-tiles__tile--peak   { border-color: rgba(16, 185, 129, 0.45); }
.dow-util-tiles__tile--hold   { border-color: rgba(var(--accent-rgb, 59,130,246), 0.4); }
.dow-util-tiles__tile--mid    { border-color: rgba(234, 179, 8, 0.4); }
.dow-util-tiles__tile--trim   { border-color: rgba(239, 68, 68, 0.45); }
.dow-util-tiles__tile--closed { opacity: 0.45; }
.dow-util-tiles__tile .info-btn { position: absolute; top: 10px; right: 10px; margin: 0; }
.dow-util-tiles__day {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted, #a1a1aa);
}
.dow-util-tiles__util {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
  line-height: 1; color: var(--text, #F0F4F8);
}
.dow-util-tiles__bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden;
  margin-top: 6px;
}
.dow-util-tiles__tile--peak .dow-util-tiles__bar-fill { background: linear-gradient(90deg, rgba(16, 185, 129, 0.5), rgba(16, 185, 129, 0.95)); }
.dow-util-tiles__tile--hold .dow-util-tiles__bar-fill { background: linear-gradient(90deg, rgba(var(--accent-rgb, 59,130,246), 0.5), rgba(var(--accent-rgb, 59,130,246), 0.95)); }
.dow-util-tiles__tile--mid  .dow-util-tiles__bar-fill { background: linear-gradient(90deg, rgba(234, 179, 8, 0.5), rgba(234, 179, 8, 0.95)); }
.dow-util-tiles__tile--trim .dow-util-tiles__bar-fill { background: linear-gradient(90deg, rgba(239, 68, 68, 0.5), rgba(239, 68, 68, 0.95)); }
.dow-util-tiles__bar-fill {
  height: 100%; border-radius: 999px;
  transition: width 0.4s ease;
}
.dow-util-tiles__lever {
  font-size: 0.75rem; color: var(--text-muted, #c0c0c5); margin-top: 4px;
  line-height: 1.3;
}

/* ==========================================================================
   Per-DOW Hours Tiles (replaces schedule-revenue spreadsheet row layout)
   ========================================================================== */
.dow-hours-tiles { margin: 0 clamp(16px, 3vw, 24px) 20px; }
.dow-hours-tiles__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .dow-hours-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dow-hours-tiles__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.dow-hours-tiles__tile {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 4px; align-items: center;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.dow-hours-tiles__tile:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3); }
.dow-hours-tiles__tile--peak    { border-color: rgba(16, 185, 129, 0.45); }
.dow-hours-tiles__tile--trim    { border-color: rgba(239, 68, 68, 0.45); }
.dow-hours-tiles__tile--closed  { opacity: 0.45; }
.dow-hours-tiles__tile .info-btn { position: absolute; top: 10px; right: 10px; margin: 0; }
.dow-hours-tiles__day {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted, #a1a1aa);
}
.dow-hours-tiles__hours {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.25rem, 2.6vw, 1.75rem); font-weight: 900;
  line-height: 1; color: var(--text, #F0F4F8);
}
.dow-hours-tiles__window {
  font-size: 0.75rem; color: var(--text-muted, #8a8a90);
  font-family: var(--font-mono, monospace);
}
.dow-hours-tiles__bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px; overflow: hidden;
  margin-top: 6px;
}
.dow-hours-tiles__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(var(--accent-rgb, 59,130,246), 0.6), rgba(var(--accent-rgb, 59,130,246), 0.95));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.dow-hours-tiles__per-hr {
  font-family: var(--font-mono, monospace);
  font-size: 0.8125rem; color: var(--text, #F0F4F8); margin-top: 4px;
}
.dow-hours-tiles__delta {
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
}
.dow-hours-tiles__delta.is-up   { color: rgb(110, 231, 183); }
.dow-hours-tiles__delta.is-down { color: rgb(252, 165, 165); }

/* ==========================================================================
   Per-DOW Price Tiles (replaces realized-price spreadsheet row layout)
   ========================================================================== */
.dow-price-tiles { margin: 0 clamp(16px, 3vw, 24px) 20px; }
.dow-price-tiles__grid {
  display: grid; gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px)  { .dow-price-tiles__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .dow-price-tiles__grid { grid-template-columns: repeat(7, minmax(0, 1fr)); } }
.dow-price-tiles__tile {
  position: relative;
  padding: 16px 14px 14px;
  background: var(--glass-tile-bg, rgba(20,20,22,0.6));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: 14px;
  display: flex; flex-direction: column; gap: 6px; align-items: center;
  text-align: center;
  transition: transform 0.16s ease, box-shadow 0.16s ease, border-color 0.16s ease;
}
.dow-price-tiles__tile:hover {
  transform: translateY(-2px); box-shadow: 0 8px 22px rgba(0,0,0,0.3);
}
.dow-price-tiles__tile.is-peak {
  border-color: rgba(var(--accent-rgb, 59,130,246), 0.4);
}
.dow-price-tiles__tile.is-under-floor {
  border-color: rgba(239, 68, 68, 0.45);
}
.dow-price-tiles__tile .info-btn {
  position: absolute; top: 10px; right: 10px; margin: 0;
}
.dow-price-tiles__day {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--text-muted, #a1a1aa);
}
.dow-price-tiles__mean {
  font-family: var(--font-display, inherit);
  font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 900;
  line-height: 1; color: var(--text, #F0F4F8);
}
.dow-price-tiles__mean-caption {
  font-size: 0.75rem;
  color: var(--text-muted, #8a8a90);
}
.dow-price-tiles__bar {
  width: 100%; height: 6px;
  background: rgba(255,255,255,0.06);
  border-radius: 999px;
  overflow: hidden;
  margin-top: 4px;
}
.dow-price-tiles__bar-fill {
  height: 100%;
  background: linear-gradient(90deg, rgba(234, 179, 8, 0.85), rgba(239, 68, 68, 0.85));
  border-radius: 999px;
  transition: width 0.4s ease;
}
.dow-price-tiles__bar-caption {
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
}
.dow-price-tiles__rec {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; color: rgb(110, 231, 183);
  margin-top: 2px;
}

/* ==========================================================================
   Dynamic Pricing Grid (7-day and 30-day forecast)
   ========================================================================== */
.dyn-pricing { margin: 0 clamp(16px, 3vw, 24px) 16px; }
.dyn-pricing__grid {
  display: grid; gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
@media (min-width: 600px) {
  .dyn-pricing__grid--7 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .dyn-pricing__grid--30 { grid-template-columns: repeat(5, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .dyn-pricing__grid--7 { grid-template-columns: repeat(7, minmax(0, 1fr)); }
  .dyn-pricing__grid--30 { grid-template-columns: repeat(10, minmax(0, 1fr)); }
}
.dyn-pricing__cell {
  padding: 12px 14px;
  background: var(--glass-tile-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 12px;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  display: flex; flex-direction: column; gap: 4px;
  transition: border-color 200ms cubic-bezier(0,0,0.2,1), transform 200ms cubic-bezier(0,0,0.2,1), box-shadow 200ms cubic-bezier(0,0,0.2,1);
}
.dyn-pricing__cell:hover {
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.10), 0 8px 22px rgba(0,0,0,0.3);
}
.dyn-pricing__cell.is-closed { opacity: 0.45; }
.dyn-pricing__cell--low        { border-color: rgba(255,255,255,0.08); }
.dyn-pricing__cell--mid        { border-color: rgba(234, 179, 8, 0.35); }
.dyn-pricing__cell--high       { border-color: rgba(16, 185, 129, 0.45); }
.dyn-pricing__cell--peak-event { border-color: rgba(var(--accent-rgb, 59,130,246), 0.65); box-shadow: 0 0 0 1px rgba(var(--accent-rgb, 59,130,246), 0.35); }
.dyn-pricing__cell-date {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted, #a1a1aa);
}
.dyn-pricing__cell-tier {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--text-muted, #8a8a90);
}
.dyn-pricing__cell--peak .dyn-pricing__cell-tier { color: rgb(110, 231, 183); }
.dyn-pricing__cell-rec {
  font-family: var(--font-display, inherit);
  font-size: 1.35rem; font-weight: 900;
  color: var(--text, #F0F4F8); line-height: 1;
  letter-spacing: -0.02em;
}
.dyn-pricing__cell-closed {
  font-family: var(--font-display, inherit);
  font-size: 0.8125rem; font-weight: 700;
  color: var(--text-muted, #6a6a70); font-style: italic;
}
.dyn-pricing__cell-demand {
  font-size: 0.75rem; color: var(--text-muted, #a1a1aa);
  text-transform: capitalize;
}
.dyn-pricing__cell-event {
  font-size: 0.75rem;
  color: rgb(110, 231, 183);
  font-weight: 600;
}

/* ==========================================================================
   Hotlink KPI wrapper
   ========================================================================== */
.hotlink-kpi {
  appearance: none;
  background: transparent; border: 0; padding: 0; margin: 0;
  text-align: inherit; color: inherit; cursor: pointer;
  display: block; width: 100%;
  border-radius: 14px;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.hotlink-kpi:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.hotlink-kpi:focus-visible {
  outline: 2px solid rgba(var(--accent-rgb, 59,130,246), 0.55);
  outline-offset: 3px;
}
.hotlink-kpi > .tile {
  width: 100%;
}

/* ==========================================================================
   Vero Insights Tile -- subtle neon glow + slow breathe, no side bar, no badge
   ========================================================================== */
@keyframes vero-helper-breathe {
  0%, 100% {
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb, 59,130,246), 0.22),
      0 0 18px rgba(var(--accent-rgb, 59,130,246), 0.14),
      0 0 40px rgba(var(--accent-rgb, 59,130,246), 0.06);
  }
  50% {
    box-shadow:
      0 0 0 1px rgba(var(--accent-rgb, 59,130,246), 0.34),
      0 0 28px rgba(var(--accent-rgb, 59,130,246), 0.22),
      0 0 64px rgba(var(--accent-rgb, 59,130,246), 0.12);
  }
}
.vero-helper {
  display: flex; flex-direction: column;
  gap: 12px; padding: 18px 20px;
  border-radius: 14px;
  position: relative;
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.22);
  animation: vero-helper-breathe 5.5s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
  .vero-helper { animation: none; }
}
.vero-helper__head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  flex-wrap: wrap;
}
/* Vero / Vero Verified wordmark at left of Insights header. */
.vero-helper__wordmark {
  height: 22px; width: auto; display: block;
  margin-right: auto;
  opacity: 0.92;
  filter: drop-shadow(0 0 8px rgba(var(--accent-rgb, 0,224,255), 0.22));
  transition: filter 200ms cubic-bezier(0,0,0.2,1), opacity 200ms cubic-bezier(0,0,0.2,1);
}
/* Inline SVG wordmark fallback (when brand-config has no logo URL).
   Uses the brand accent color via currentColor so every client's Vero
   mark matches the portal's accent palette. */
.vero-helper__wordmark--inline {
  color: var(--accent, #00E0FF);
  display: inline-flex;
  align-items: center;
}

/* Smart Graph footer (Historical / Actual / Industry / Goals).
   Each meta segment is a small chip; pending/unresolved ones render
   muted so the reader knows WHICH data piece is still coming. */
.stat-compare__foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  margin-top: 10px;
  padding: 8px 10px;
  background: var(--glass-bg-subtle, rgba(255,255,255,0.02));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.06));
  border-radius: 8px;
  font-family: var(--font-body, Inter, system-ui, sans-serif);
  font-size: 11px;
  line-height: 1.4;
  letter-spacing: 0.01em;
}
.stat-compare__foot-seg {
  color: var(--text-muted, rgba(240,244,248,0.52));
}
.stat-compare__foot-seg--pending {
  color: rgba(234, 179, 8, 0.85);
  font-style: italic;
}
.stat-compare__foot-sep {
  color: rgba(240, 244, 248, 0.24);
}
.vero-helper__wordmark--verified {
  height: 26px;
  filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.35));
}
.vero-helper:hover .vero-helper__wordmark {
  opacity: 1;
  filter: drop-shadow(0 0 14px rgba(var(--accent-rgb, 0,224,255), 0.4));
}
.vero-helper:hover .vero-helper__wordmark--verified {
  filter: drop-shadow(0 0 14px rgba(16, 185, 129, 0.55));
}
@media (min-width: 768px) {
  .vero-helper__wordmark { height: 26px; }
  .vero-helper__wordmark--verified { height: 30px; }
}
/* Legacy DOM guards -- safely no-op if any stale markup sneaks in */
.vero-helper__label,
.vero-helper__badge,
.vero-helper__target { display: none !important; }
.vero-confidence {
  display: inline-flex; align-items: center; padding: 3px 10px;
  border-radius: 999px;
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.06em;
}
.vero-confidence--high   { background: rgba(16, 185, 129, 0.18); border: 1px solid rgba(16, 185, 129, 0.5); color: rgb(110, 231, 183); }
.vero-confidence--medium { background: rgba(234, 179, 8, 0.18);  border: 1px solid rgba(234, 179, 8, 0.5);  color: rgb(250, 204, 21); }
.vero-confidence--low    { background: rgba(239, 68, 68, 0.18);  border: 1px solid rgba(239, 68, 68, 0.5);  color: rgb(252, 165, 165); }

.vero-helper__body { display: flex; flex-direction: column; gap: 10px; }
.vero-helper__insight {
  font-family: var(--font-display, inherit);
  font-size: 0.9375rem; font-weight: 700; line-height: 1.4;
  color: var(--text, #F0F4F8); margin: 0;
}
.vero-helper__target {
  font-size: 0.8125rem; color: var(--text-muted, #d4d4d8);
  padding: 8px 12px;
  background: rgba(255,255,255,0.03);
  border-radius: 6px;
}
.vero-helper__target strong {
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; text-transform: uppercase;
  letter-spacing: 0.08em; color: var(--accent, currentColor);
}
.vero-helper__action {
  padding: 10px 12px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.06);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.2);
  border-radius: 8px;
}
.vero-helper__action-title {
  font-family: var(--font-display, inherit);
  font-size: 0.875rem; font-weight: 700;
  color: var(--text, #F0F4F8); margin-bottom: 4px;
}
.vero-helper__action-why {
  font-size: 0.8125rem; line-height: 1.5; color: var(--text-muted, #d4d4d8);
  margin-bottom: 6px;
}
.vero-helper__action-owner {
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.06em;
  color: var(--text-muted, #a1a1aa);
}
.vero-helper__cta {
  align-self: flex-start; margin-top: 4px;
  padding: 8px 14px; min-height: 36px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.14);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.5);
  border-radius: 8px;
  color: var(--accent, currentColor);
  font-family: var(--font-display, inherit);
  font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em;
  cursor: pointer; transition: background 0.15s ease;
}
.vero-helper__cta:hover { background: rgba(var(--accent-rgb, 59,130,246), 0.24); }

/* Clickable build pill in footer -- hard-reload portal on click */
.footer-build { margin: 10px 0 0 0; text-align: center; }
.footer-build-pill {
  display: inline-flex; align-items: center;
  padding: 4px 12px; min-height: 28px;
  background: rgba(var(--accent-rgb, 59,130,246), 0.10);
  border: 1px solid rgba(var(--accent-rgb, 59,130,246), 0.35);
  border-radius: 999px;
  color: var(--accent, currentColor);
  font-family: var(--font-mono, monospace);
  font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.footer-build-pill:hover {
  background: rgba(var(--accent-rgb, 59,130,246), 0.24);
  border-color: rgba(var(--accent-rgb, 59,130,246), 0.6);
}
.footer-build-pill:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }

/* Footer developed-by logo */
.footer-developed-logo { height: 16px; vertical-align: middle; opacity: 0.9; }

/* ==========================================================================
   Empty State Variants -- Shimmer / Connect CTA / Stale Data
   ========================================================================== */

/* Loading shimmer tile -- replaces "--" when data is being collected */
.cos-tile--shimmer {
  background: linear-gradient(90deg, rgba(255,255,255,0.05) 0%, rgba(255,255,255,0.10) 50%, rgba(255,255,255,0.05) 100%);
  background-size: 200% 100%;
  animation: shimmer 1800ms ease-in-out infinite;
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 12px;
  min-height: 88px;
}
@keyframes shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: reduce) {
  .cos-tile--shimmer { animation: none; background: rgba(255,255,255,0.05); }
}

/* Connect CTA tile -- full-width card when integration not configured */
.cos-tile--connect {
  background: rgba(255,255,255,0.04);
  border: 1px dashed rgba(255,255,255,0.14);
  border-radius: 12px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
}
.cos-tile--connect .cos-connect__icon {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 50%;
  margin-bottom: 4px;
}
.cos-tile--connect .cos-connect__title {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 13px; font-weight: 600;
  color: var(--text, #F0F4F8);
  margin: 0;
}
.cos-tile--connect .cos-connect__body {
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px; color: var(--text-muted, rgba(240,244,248,0.48));
  line-height: 1.5; max-width: 340px; margin: 0;
}
.cos-connect__cta-row {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 4px;
}
.cos-connect__btn {
  appearance: none; background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.16);
  border-radius: 6px; padding: 8px 14px;
  font-family: var(--font-body, 'Inter', sans-serif);
  font-size: 12px; font-weight: 600;
  color: var(--text, #F0F4F8);
  cursor: pointer; min-height: 44px; min-width: 44px;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.cos-connect__btn:hover  { background: rgba(255,255,255,0.12); border-color: rgba(255,255,255,0.28); }
.cos-connect__btn:focus-visible { outline: 2px solid var(--accent, #3b82f6); outline-offset: 2px; }

/* Stale data indicator -- amber dot + inline note */
.cos-tile--stale { position: relative; }
.cos-stale__badge {
  display: inline-flex; align-items: center; gap: 5px;
  font-family: var(--font-mono, monospace);
  font-size: 11px; font-weight: 600;
  color: var(--status-warning, #f59e0b);
  margin-top: 4px;
}
.cos-stale__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--status-warning, #f59e0b);
  flex-shrink: 0;
}

/* Confidence dot row -- 5 dots under Vero Insight cards */
.cos-confidence-row {
  display: flex; align-items: center; gap: 3px; margin-top: 6px;
}
.cos-confidence-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent, #3b82f6);
  flex-shrink: 0;
  transition: opacity 0.15s ease;
}
.cos-confidence-dot--empty { opacity: 0.15; }

/* No-activity inline value -- replaces "--" when window contains no events */
.cos-tile-no-activity {
  font-family: var(--font-mono, monospace);
  font-size: 11px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, rgba(240,244,248,0.48));
  display: inline-block;
}

/* ==========================================================================
   Session 11 NIGHT — Unified UI primitives for every portal + module
   (Clay 2026-04-21: "intense scrutiny + hardening applied across every
   screen, App & Module Shell, animation, text, flow, data point").

   These mirror the Centro OS cos-* primitives (platform/centro/web/server.py
   CENTRO_THEME_CSS) so a developer writing a new module sub-tool uses the
   same class names that Centro admin surfaces use. ONE design language
   across the platform.

   Naming: everything here prefixed with `cos-` to match Centro OS. When
   the user is on a client portal or a Centro admin page, the canonical
   button is the same, the canonical card is the same, the canonical
   skeleton is the same.
   ========================================================================== */

/* Page shell */
.cos-page {
  max-width: 1100px; margin: 0 auto;
  padding: 24px 20px calc(96px + env(safe-area-inset-bottom, 0px));
}
.cos-page__header {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 16px; margin-bottom: 24px;
  padding-bottom: 16px; border-bottom: 1px solid var(--border, rgba(255,255,255,0.10));
}
.cos-page__title {
  font-family: 'Poppins', var(--font-display, sans-serif);
  font-size: 28px; font-weight: 900; letter-spacing: -0.01em;
  line-height: 1.1; color: var(--text, #F0F4F8);
}
.cos-page__subtitle {
  font-size: 14px; color: var(--text-muted, rgba(240,244,248,0.48));
  margin-top: 6px; line-height: 1.4;
}

/* Section -- canonical card block with title + optional actions */
.cos-section {
  background: var(--glass-tile-bg, rgba(255,255,255,0.05));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 12px; padding: 20px; margin-bottom: 20px;
  transition: border-color 200ms ease, background 200ms ease;
}
.cos-section:hover {
  border-color: var(--glass-border-hover, rgba(255,255,255,0.18));
}
.cos-section__head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 12px;
}
.cos-section__title {
  font-size: 14px; font-weight: 600;
  color: var(--text-muted, rgba(240,244,248,0.72));
  letter-spacing: 0.01em;
}

/* Canonical button system -- mirrors Centro OS */
.cos-btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; min-height: 40px;
  font-family: 'Inter', var(--font-body, sans-serif);
  font-size: 13.5px; font-weight: 600; letter-spacing: 0.01em;
  border-radius: 8px;
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  background: var(--glass-tile-bg, rgba(255,255,255,0.05));
  color: var(--text, #F0F4F8);
  cursor: pointer; text-decoration: none;
  transition: background 200ms ease, border-color 200ms ease, transform 150ms ease;
}
.cos-btn:hover {
  background: var(--glass-tile-bg-hover, rgba(255,255,255,0.08));
  border-color: var(--glass-border-hover, rgba(255,255,255,0.18));
}
.cos-btn:active { transform: translateY(1px); }
.cos-btn:focus-visible {
  outline: 2px solid var(--accent, #00E0FF); outline-offset: 2px;
}
.cos-btn[disabled], .cos-btn.is-disabled {
  opacity: 0.42; cursor: not-allowed;
}
.cos-btn--primary {
  background: linear-gradient(135deg, var(--accent, #00E0FF), #0066FF);
  border-color: transparent; color: #05182F; font-weight: 700;
}
.cos-btn--primary:hover {
  background: linear-gradient(135deg, #00EFFF, #1A75FF);
}
.cos-btn--ghost {
  background: transparent; border-color: transparent;
  color: var(--text-muted, rgba(240,244,248,0.72));
}
.cos-btn--ghost:hover {
  color: var(--text, #F0F4F8);
  background: var(--glass-tile-bg-hover, rgba(255,255,255,0.08));
}
.cos-btn--danger {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35);
  color: #EF4444;
}
.cos-btn--danger:hover {
  background: rgba(239,68,68,0.22); border-color: rgba(239,68,68,0.55);
}
.cos-btn--sm { padding: 6px 12px; min-height: 32px; font-size: 12px; }
.cos-btn--lg { padding: 12px 22px; min-height: 48px; font-size: 14.5px; }

/* Canonical form controls */
.cos-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.cos-label {
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(240,244,248,0.48));
}
.cos-input, .cos-select, .cos-textarea {
  width: 100%; padding: 10px 12px; min-height: 40px;
  font-family: 'Inter', var(--font-body, sans-serif); font-size: 13.5px;
  background: rgba(5,24,47,0.88);
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 8px; color: var(--text, #F0F4F8); outline: none;
  transition: border-color 200ms ease, background 200ms ease;
}
.cos-input:hover, .cos-select:hover, .cos-textarea:hover {
  border-color: var(--glass-border-hover, rgba(255,255,255,0.18));
}
.cos-input:focus, .cos-select:focus, .cos-textarea:focus {
  border-color: var(--accent, #00E0FF);
  background: rgba(5,24,47,0.96);
  box-shadow: 0 0 0 3px rgba(0,224,255,0.12);
}
.cos-textarea { min-height: 80px; resize: vertical; line-height: 1.45; }
.cos-help { font-size: 12px; color: var(--text-muted, rgba(240,244,248,0.48)); margin-top: 4px; }

/* Canonical pill / badge */
.cos-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 9999px;
  font-size: 12px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--glass-tile-bg, rgba(255,255,255,0.05));
  color: var(--text-muted, rgba(240,244,248,0.72));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.10));
}
.cos-pill--success {
  background: rgba(34,197,94,0.12); border-color: rgba(34,197,94,0.35);
  color: #22C55E;
}
.cos-pill--warn {
  background: rgba(245,158,11,0.12); border-color: rgba(245,158,11,0.35);
  color: #F59E0B;
}
.cos-pill--error {
  background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35);
  color: #EF4444;
}
.cos-pill--accent {
  background: rgba(0,224,255,0.12); border-color: rgba(0,224,255,0.35);
  color: var(--accent, #00E0FF);
}

/* Skeleton loading state */
.cos-skeleton {
  display: inline-block; border-radius: 4px;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04),
    rgba(255,255,255,0.10),
    rgba(255,255,255,0.04)
  );
  background-size: 200% 100%;
  animation: cosSkeletonShimmer 1.4s linear infinite;
}
@keyframes cosSkeletonShimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Empty state */
.cos-empty {
  padding: 32px 24px; text-align: center;
  background: rgba(255,255,255,0.02);
  border: 1px dashed var(--glass-border, rgba(255,255,255,0.10));
  border-radius: 12px;
  color: var(--text-muted, rgba(240,244,248,0.48));
  font-size: 13px; line-height: 1.5;
}
.cos-empty__title {
  color: var(--text, #F0F4F8); font-size: 15px; font-weight: 600;
  margin-bottom: 6px;
}

/* Responsive form grid */
.cos-form-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.cos-form-grid .cos-field--full { grid-column: 1 / -1; }

/* Tables */
.cos-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.cos-table th {
  text-align: left; padding: 10px 12px;
  font-size: 12px; font-weight: 700; letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--text-muted, rgba(240,244,248,0.48));
  border-bottom: 1px solid var(--glass-border, rgba(255,255,255,0.10));
}
.cos-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  color: var(--text-muted, rgba(240,244,248,0.72));
}
.cos-table tr:hover td {
  background: var(--glass-tile-bg-hover, rgba(255,255,255,0.08));
}
.cos-table code {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px; color: var(--accent, #00E0FF);
  background: rgba(0,224,255,0.06);
  padding: 1px 6px; border-radius: 4px;
}

/* Reduced-motion respect */
@media (prefers-reduced-motion: reduce) {
  .cos-btn, .cos-input, .cos-skeleton, .cos-section,
  .cos-tile, .cos-rec-card {
    animation: none !important; transition: none !important;
  }
}
