/**
 * Signed-in Compliance Command Center — aligns with MSP Command Centre theme
 * (sleek slate / blue / teal, restrained depth). Scoped to #dashboard-page.ccp-cc-page
 * and to static marketing previews (.ccp-cc-marketing-preview).
 */

#dashboard-page.ccp-cc-page,
.ccp-cc-marketing-preview {
  background: linear-gradient(168deg, #dce4ee 0%, #e8e6e2 42%, #ddd8d2 100%);
}

#dashboard-page.ccp-cc-page > nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
  border-bottom-color: rgba(148, 163, 184, 0.38) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 18px rgba(15, 23, 42, 0.04);
}

/* Main CC card — mirrors msp-cc-shell */
section.ca-command-center-shell.ccp-cc-shell {
  position: relative;
  background: linear-gradient(175deg, #ffffff 0%, #fafafa 55%, #f4f4f5 100%) !important;
  border-color: #c8d4e4 !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.75) inset,
    0 18px 48px -14px rgba(15, 23, 42, 0.11),
    0 8px 20px -8px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

section.ca-command-center-shell.ccp-cc-shell::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 3px;
  background: linear-gradient(90deg, #2563eb 0%, #0d9488 48%, #4f46e5 100%);
  opacity: 0.92;
  pointer-events: none;
}

.ccp-cc-hero {
  background: linear-gradient(110deg, #f8fafc 0%, #eef2ff 42%, #f0fdf9 100%) !important;
  border-bottom: 1px solid rgba(199, 210, 254, 0.75) !important;
}

.ccp-cc-hero h1 {
  letter-spacing: -0.02em;
  color: #0f172a;
}

/* Tenant workspace chip — mirrors MSP hero pill */
.ccp-cc-hero .ccp-cc-brand-pill {
  border: 1px solid rgba(51, 65, 85, 0.35);
  background: linear-gradient(135deg, #1e3a5f 0%, #1e293b 55%, #0f172a 100%);
  color: #f1f5f9;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12);
}

.ccp-cc-hero .ccp-cc-brand-pill i {
  color: #7dd3fc !important;
}

.ccp-cc-actions-cluster {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid rgba(148, 163, 184, 0.45);
  border-radius: 0.65rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  padding: 0.35rem 0.5rem;
  gap: 0.35rem !important;
}

#dashboard-page #scan-btn-primary-min,
.ccp-cc-marketing-preview .land-marketing-scan-btn {
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.22);
}

#dashboard-page #scan-btn-primary-min:hover:not(:disabled),
.ccp-cc-marketing-preview .land-marketing-scan-btn:hover:not(:disabled) {
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.28);
}

.ccp-cc-body {
  background: linear-gradient(180deg, #fafafa 0%, #f5f5f4 100%) !important;
}

/* Inner Command Center tiles (signed-in + static shells; marketing preview tiles use .land-cc-* overrides below) */
.ccp-cc-shell .rounded-xl.border.border-stone-200.bg-stone-100:not(.land-cc-preview-tile):not(.land-cc-preview-hero-tile) {
  background: rgba(248, 250, 252, 0.92) !important;
  border-color: rgba(203, 213, 225, 0.65) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 6px 20px rgba(15, 23, 42, 0.05);
}

.ccp-cc-shell #scan-progress-panel {
  border-color: rgba(96, 165, 250, 0.35) !important;
  box-shadow: 0 4px 18px rgba(37, 99, 235, 0.07);
}

.ccp-cc-shell #findings-section {
  border-color: rgba(148, 163, 184, 0.38) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.85) inset,
    0 10px 28px rgba(15, 23, 42, 0.06);
}

.ccp-cc-shell #findings-section.ccf-findings-shell {
  border-color: rgba(129, 140, 248, 0.28) !important;
}

.ccp-cc-shell .reg-card:hover {
  border-color: rgba(59, 130, 246, 0.35) !important;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.08);
}

#dashboard-page #cc-trust-bundle {
  border-color: rgba(203, 213, 225, 0.85) !important;
  background: rgba(250, 250, 249, 0.92) !important;
}

#dashboard-page #cc-trust-bundle > summary.ccp-cc-trust-summary {
  list-style: none;
}

#dashboard-page #cc-trust-bundle > summary.ccp-cc-trust-summary::-webkit-details-marker {
  display: none;
}

/* Static sample report: full-page gradient + stronger white tiles (matches signed-in depth) */
body.ccp-cc-marketing-preview {
  min-height: 100vh;
}

body.ccp-cc-marketing-preview > nav {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, #f8fafc 100%);
  border-bottom-color: rgba(148, 163, 184, 0.38) !important;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset, 0 4px 18px rgba(15, 23, 42, 0.04);
}

.ccp-cc-marketing-preview .ca-command-center-shell .rounded-xl.border.border-stone-200.bg-white {
  background: linear-gradient(175deg, #ffffff 0%, #f8fafc 52%, #f1f5f9 100%) !important;
  border-color: rgba(148, 163, 184, 0.55) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.9) inset,
    0 8px 22px rgba(15, 23, 42, 0.07);
}

/* Homepage / sample-report marketing preview: less flat grey — closer to signed-in Command Center tints */
.ccp-cc-marketing-preview .ccp-cc-shell .land-cc-preview-tile.rounded-xl.border.border-stone-200.bg-stone-100 {
  background: linear-gradient(148deg, #f8fafc 0%, #eff6ff 40%, #f1f5f9 100%) !important;
  border-color: rgba(147, 197, 253, 0.55) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.95) inset,
    0 10px 28px rgba(37, 99, 235, 0.07);
}

.ccp-cc-marketing-preview .ccp-cc-shell .land-cc-preview-hero-tile.rounded-xl.border.border-stone-200.bg-stone-100 {
  background: linear-gradient(158deg, #ffffff 0%, #f8fafc 32%, #eef2ff 100%) !important;
  border-color: rgba(129, 140, 248, 0.4) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.92) inset,
    0 12px 30px rgba(79, 70, 229, 0.08);
}

.ccp-cc-marketing-preview .land-cc-filescan-pill {
  background: linear-gradient(180deg, #ffffff 0%, #eff6ff 100%) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ccp-cc-marketing-preview .ccp-cc-shell > .ccp-cc-hero {
  background: linear-gradient(112deg, #f8fafc 0%, #eef2ff 44%, #ecfdf5 100%) !important;
}

.ccp-cc-marketing-preview .ccp-cc-shell #triad-section .reg-card.border-stone-200 {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%) !important;
  border-color: rgba(165, 180, 252, 0.5) !important;
}
