:root {
  --bg-void: #06080f;
  --surface: rgba(12, 20, 38, 0.82);
  --surface-solid: #0c1426;
  --surface-hover: rgba(20, 32, 58, 0.92);
  --surface-active: rgba(34, 211, 238, 0.1);
  --border: rgba(34, 211, 238, 0.18);
  --border-strong: rgba(34, 211, 238, 0.4);
  --cream: var(--bg-void);
  --cream-dark: var(--border);
  --peach: rgba(167, 139, 250, 0.18);
  --brown-900: #f0f6fc;
  --brown-800: #e2e8f0;
  --brown-700: #cbd5e1;
  --brown-600: #94a3b8;
  --brown-500: #64748b;
  --brown-400: #94a3b8;
  --gold: #22d3ee;
  --gold-light: #67e8f9;
  --sage: #34d399;
  --sage-light: #6ee7b7;
  --rose: #e879f9;
  --rose-light: #f0abfc;
  --blue: #38bdf8;
  --green: #34d399;
  --red: #fb7185;
  --amber: #fbbf24;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.45), 0 0 1px rgba(34, 211, 238, 0.12);
  --shadow-lg: 0 12px 48px rgba(0, 0, 0, 0.55), 0 0 32px rgba(34, 211, 238, 0.1);
  --glow-cyan: 0 0 20px rgba(34, 211, 238, 0.45);
  --glow-green: 0 0 18px rgba(52, 211, 153, 0.4);
  --glow-red: 0 0 18px rgba(251, 113, 133, 0.4);
  --radius: 10px;
  --radius-sm: 6px;
  --font: 'Inter', system-ui, sans-serif;
  --font-display: 'Space Grotesk', 'Inter', sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font);
  background-color: var(--bg-void);
  background-image:
    radial-gradient(ellipse 80% 55% at 50% -15%, rgba(34, 211, 238, 0.14), transparent 55%),
    radial-gradient(ellipse 50% 40% at 100% 40%, rgba(167, 139, 250, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 35% at 0% 80%, rgba(56, 189, 248, 0.08), transparent 50%),
    linear-gradient(rgba(34, 211, 238, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(34, 211, 238, 0.035) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 100% 100%, 44px 44px, 44px 44px;
  color: var(--brown-900);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
}

/* Sticky header + scorecard */
.site-sticky {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(6, 8, 15, 0.92);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
}

/* Header */
.header {
  background: transparent;
  color: var(--brown-900);
  padding: 0.85rem 1.75rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-width: 0;
  flex: 1 1 280px;
}

.brand-logo-link {
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--glow-cyan);
  border: 1px solid var(--border-strong);
  line-height: 0;
  transition: transform 0.2s, box-shadow 0.2s;
}

.brand-logo-link:hover {
  transform: scale(1.02);
  box-shadow: var(--glow-cyan), var(--shadow-lg);
}

/* Wordmark logo — keep aspect, no crop */
.brand-logo {
  display: block;
  width: auto;
  height: 44px;
  max-width: min(220px, 42vw);
  object-fit: contain;
  object-position: left center;
  border-radius: 6px;
  background: #0a0a0a;
}

.brand-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.brand h1 {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.25;
  text-transform: none;
  background: linear-gradient(135deg, #f0f6fc 30%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.brand p {
  font-size: 0.74rem;
  color: var(--brown-600);
  margin: 0;
  line-height: 1.35;
}

.header-ig {
  color: var(--gold);
  text-decoration: none;
  font-weight: 500;
}

.header-ig:hover { text-decoration: underline; }

.header-built-by {
  display: inline-block;
  margin-top: 0.15rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--gold-light);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.header-built-by:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
  text-decoration: none;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem 0.85rem;
  flex-wrap: wrap;
  justify-content: flex-end;
  flex: 0 1 auto;
}

.research-badge {
  font-size: 0.75rem;
  background: rgba(34, 211, 238, 0.12);
  color: var(--gold-light);
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  box-shadow: var(--glow-cyan);
}

.last-updated {
  font-size: 0.75rem;
  color: var(--brown-500);
}

.header-meta-cluster {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.header-update-btn {
  display: inline-flex;
  align-items: center;
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--surface-active);
  color: var(--gold-light);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.header-update-btn:hover {
  border-color: var(--gold);
  background: rgba(34, 211, 238, 0.16);
  color: var(--gold);
  transform: translateY(-1px);
}

body.theme-light .header-update-btn {
  background: rgba(184, 134, 42, 0.1);
  color: var(--gold-light);
}

/* Scorecard Strip — single horizontal row */
.scorecard-strip {
  background: rgba(8, 12, 24, 0.55);
  border-bottom: none;
  padding: 0.6rem 0 0.2rem;
  overflow: hidden;
}

.scorecard-inner {
  max-width: none;
  margin: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.5rem;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 0 1.5rem 0.45rem;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  overscroll-behavior-x: contain;
}

.scorecard-inner::-webkit-scrollbar {
  height: 6px;
}

.score-card,
.scorecard-overall {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: var(--radius);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s, background 0.2s;
  cursor: pointer;
  border: 1px solid var(--cream-dark);
  flex: 0 0 auto;
  width: 168px;
  min-width: 148px;
  scroll-snap-align: start;
  pointer-events: auto;
}

.score-card,
.scorecard-overall {
  background: var(--surface);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.score-card:hover,
.scorecard-overall:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan), var(--shadow);
  border-color: var(--border-strong);
}

.score-card.active,
.scorecard-overall.active {
  border-color: var(--gold);
  box-shadow: var(--glow-cyan), 0 0 0 1px var(--gold);
  background: var(--surface-active);
}

.score-card:focus-visible,
.scorecard-overall:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

.score-ring {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 0.95rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: rgba(6, 8, 15, 0.9);
}

.score-ring[data-tier="high"] { border-color: var(--green); color: var(--green); box-shadow: var(--glow-green); }
.score-ring[data-tier="mid"] { border-color: var(--gold); color: var(--gold); box-shadow: var(--glow-cyan); }
.score-ring[data-tier="low"] { border-color: var(--red); color: var(--red); box-shadow: var(--glow-red); }

.score-info { min-width: 0; }

.score-label {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brown-800);
  margin-bottom: 0.1rem;
}

.score-basis {
  font-size: 0.68rem;
  color: var(--brown-500);
  margin-top: 0.15rem;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.scorecard-methodology {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem 0.55rem;
  font-size: 0.65rem;
  color: var(--brown-500);
  text-align: left;
  line-height: 1.35;
  white-space: normal;
}

.score-ring-icon {
  font-size: 1.1rem;
  background: rgba(6, 8, 15, 0.9);
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: var(--glow-cyan);
}

/* Hero & Owner's Brief */
#section-brief {
  padding-top: 1.25rem;
  border-bottom: none;
}

.hero-banner {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  margin: 0 0 1.35rem;
  box-shadow: var(--shadow-lg);
  min-height: 200px;
}

.hero-image {
  display: block;
  width: 100%;
  height: 240px;
  object-fit: cover;
  object-position: center 30%;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(6, 8, 15, 0.35) 0%, rgba(6, 8, 15, 0.55) 45%, rgba(6, 8, 15, 0.88) 100%),
    linear-gradient(135deg, rgba(34, 211, 238, 0.12) 0%, transparent 55%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 0.35rem;
  padding: 1.35rem 1.5rem 1.4rem;
  color: white;
}

.hero-prepared {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.88;
  margin: 0;
  line-height: 1.3;
}

.hero-headline {
  font-family: var(--font-display);
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  font-weight: 700;
  line-height: 1.35;
  margin: 0;
  max-width: min(52rem, 100%);
  text-shadow: 0 0 30px rgba(34, 211, 238, 0.35);
}

.brief-body { padding-top: 0.25rem; }

.brief-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}

.brief-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.brief-wins { border-top: 3px solid var(--green); }
.brief-gaps { border-top: 3px solid var(--red); }
.brief-actions { border-top: 3px solid var(--gold); }

.brief-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--brown-800);
}

.brief-list,
.brief-action-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.brief-list li strong,
.brief-action-list li strong {
  display: block;
  font-size: 0.85rem;
  color: var(--brown-900);
  margin-bottom: 0.15rem;
}

.brief-list li span,
.brief-why {
  font-size: 0.78rem;
  color: var(--brown-600);
  line-height: 1.45;
}

.brief-action-list li {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.brief-step {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: var(--bg-void);
  box-shadow: var(--glow-cyan);
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Review quote cards */
.quote-row {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.quote-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--gold);
}

.quote-text {
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-style: italic;
  color: var(--brown-800);
  line-height: 1.55;
  margin-bottom: 0.65rem;
}

.quote-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.72rem;
}

.quote-meta a {
  color: var(--brown-500);
  text-decoration: none;
}

.quote-meta a:hover { text-decoration: underline; }

/* What-if score impact */
.whatif-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 0.75rem;
}

.whatif-card {
  background: rgba(34, 211, 238, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
}

.whatif-action {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--brown-900);
  margin-bottom: 0.35rem;
}

.whatif-lift {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--sage);
  margin-bottom: 0.2rem;
}

.whatif-overall {
  font-size: 0.78rem;
  color: var(--brown-700);
  margin-bottom: 0.25rem;
}

.whatif-note {
  font-size: 0.68rem;
  color: var(--brown-500);
  line-height: 1.4;
}

/* Catering opportunity */
.catering-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.catering-partners { grid-column: 1 / -1; }

.catering-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown-500);
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.catering-partner-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.catering-scenario {
  background: rgba(34, 211, 238, 0.04);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
}

.catering-scenario-label {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brown-900);
  margin-bottom: 0.25rem;
}

.catering-scenario-example {
  font-size: 0.8rem;
  color: var(--brown-700);
  margin-bottom: 0.2rem;
}

.catering-scenario-estimate {
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--sage);
}

.catering-menu-ref { grid-column: 1 / -1; }

.catering-menu-item {
  font-size: 0.82rem;
  padding: 0.3rem 0;
  border-bottom: 1px solid var(--cream-dark);
}

.catering-menu-item a { color: var(--brown-700); }

/* Seasonal playbook */
.seasonal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.75rem;
}

.seasonal-card {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  border: 1px solid var(--cream-dark);
  box-shadow: var(--shadow);
}

.seasonal-period {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brown-900);
  margin-bottom: 0.35rem;
}

.seasonal-action {
  font-size: 0.8rem;
  color: var(--brown-700);
  line-height: 1.5;
  margin: 0.5rem 0;
}

.seasonal-peak { border-top: 3px solid var(--green); }
.seasonal-slow { border-top: 3px solid var(--amber); }
.seasonal-growth { border-top: 3px solid var(--blue); }
.seasonal-risk { border-top: 3px solid var(--red); }

/* SWOT 4-column */
.swot-row-4 {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

/* Technology friendly intro */
.friendly-intro-card { border-left: 4px solid var(--blue); }

.friendly-intro {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-800);
  margin-bottom: 0.65rem;
  line-height: 1.5;
}

/* Collapsible detail panels */
.collapsible-panel {
  background: var(--surface);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  margin-bottom: 1rem;
  box-shadow: var(--shadow);
}

.collapsible-panel summary {
  padding: 0.85rem 1.25rem;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--brown-800);
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.collapsible-panel summary::before {
  content: '▸';
  color: var(--gold);
  transition: transform 0.2s;
}

.collapsible-panel[open] summary::before { transform: rotate(90deg); }

.collapsible-content {
  padding: 0 1.25rem 1.25rem;
  border-top: 1px solid var(--cream-dark);
}

/* Action plan */
.action-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.action-filter-btn {
  font-family: var(--font);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  color: var(--brown-700);
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
}

.action-filter-btn:hover {
  border-color: var(--gold);
  background: var(--cream);
  color: var(--brown-800);
}

.action-filter-btn.active {
  background: var(--surface);
  border-color: var(--gold);
  box-shadow: 0 0 0 2px var(--gold), var(--shadow);
  color: var(--brown-800);
}

.action-plan-table .action-rationale {
  font-size: 0.78rem;
  color: var(--brown-600);
  margin: 0.35rem 0;
  line-height: 1.45;
}

.score-lift-cell {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--sage);
  white-space: nowrap;
}

.badge.tag-quick-win { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.tag-growth-bet { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge.tag-operational { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.tag-peak { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.tag-slow { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.tag-growth { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge.tag-risk { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.tag-signature-pastries,
.badge.tag-gluten-free-line,
.badge.tag-service-culture,
.badge.tag-value-perception { background: rgba(34, 211, 238, 0.12); color: var(--gold-light); border: 1px solid rgba(34, 211, 238, 0.28); }

/* Methodology & back to top */
.methodology-panel {
  max-width: 720px;
  margin: 1rem auto 0;
  text-align: left;
}

.methodology-panel summary {
  font-size: 0.75rem;
  color: var(--brown-600);
  cursor: pointer;
  text-align: center;
}

.methodology-content {
  font-size: 0.78rem;
  color: var(--brown-600);
  line-height: 1.6;
  padding: 0.75rem 0;
}

.methodology-content p { margin-bottom: 0.5rem; }

.back-to-top {
  display: block;
  margin: 1rem auto 0;
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.45rem 1rem;
  border-radius: 20px;
  border: 1px solid var(--cream-dark);
  background: var(--surface);
  color: var(--brown-700);
  cursor: pointer;
  transition: background 0.2s;
}

.back-to-top:hover {
  border-color: var(--gold);
  background: var(--cream);
}

/* Vertical long-page layout */
.dashboard {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.75rem 3rem;
}

.dashboard-section {
  scroll-margin-top: var(--sticky-offset, 180px);
  padding: 2rem 0;
  border-bottom: 1px solid var(--border);
}

.dashboard-section:last-child { border-bottom: none; }

.panel {
  background: transparent;
}

.panel-header {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
  position: relative;
}

.panel-header::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 120px;
  height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  box-shadow: var(--glow-cyan);
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.panel-title {
  font-family: var(--font-display);
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #f0f6fc 20%, var(--gold) 90%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.panel-score {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.panel-score-ring {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-mono);
  font-size: 1.1rem;
  font-weight: 700;
  border: 2px solid var(--border);
  background: rgba(6, 8, 15, 0.9);
}

.panel-score-ring[data-tier="high"] { border-color: var(--green); color: var(--green); box-shadow: var(--glow-green); }
.panel-score-ring[data-tier="mid"] { border-color: var(--gold); color: var(--gold); box-shadow: var(--glow-cyan); }
.panel-score-ring[data-tier="low"] { border-color: var(--red); color: var(--red); box-shadow: var(--glow-red); }

.panel-subtitle {
  font-size: 0.85rem;
  color: var(--brown-600);
  margin-top: 0.5rem;
  line-height: 1.5;
}

.panel-meta {
  font-size: 0.72rem;
  color: var(--brown-500);
  display: block;
  margin-top: 0.25rem;
}

.panel-body {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.h-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
  margin-bottom: 0.5rem;
}

.h-row > .card-wide {
  grid-column: 1 / -1;
}

.swot-row {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.market-context-row {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.ai-opp-row {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.roadmap-row {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.summary-text {
  font-size: 0.9rem;
  color: var(--brown-700);
  line-height: 1.65;
}

.factor-chip {
  background: var(--surface);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
}

.factor-chip-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.4rem;
}

.factor-points {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
}

.factor-points[data-tier="high"] { color: var(--sage); }
.factor-points[data-tier="mid"] { color: var(--gold); }
.factor-points[data-tier="low"] { color: var(--red); }

.factor-weight {
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--gold-light);
  background: rgba(34, 211, 238, 0.1);
  border: 1px solid var(--border);
  padding: 0.15rem 0.45rem;
  border-radius: 10px;
  font-family: var(--font-mono);
}

.factor-name {
  font-size: 0.78rem;
  color: var(--brown-700);
  line-height: 1.4;
}

.breakdown-card {
  flex: 1 0 160px;
  min-width: 160px;
  background: var(--surface);
  border: 1px solid var(--cream-dark);
  border-radius: var(--radius);
  padding: 1rem;
  text-align: center;
  text-decoration: none;
  color: inherit;
  transition: border-color 0.2s, transform 0.2s;
  cursor: pointer;
}

.breakdown-card:hover {
  border-color: var(--gold);
  transform: translateY(-2px);
  box-shadow: var(--glow-cyan);
}

.breakdown-score {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
}

.breakdown-score[data-tier="high"] { color: var(--sage); }
.breakdown-score[data-tier="mid"] { color: var(--gold); }
.breakdown-score[data-tier="low"] { color: var(--red); }

.breakdown-label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown-800);
}

.chart-container-md { height: 240px; position: relative; }

.table-scroll { max-height: 280px; overflow-y: auto; }



/* Business Overview */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.overview-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.overview-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown-500);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.overview-value {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-900);
  line-height: 1.5;
}

.overview-value a {
  color: var(--brown-700);
  text-decoration: none;
}

.overview-value a:hover { text-decoration: underline; }

.subsection-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  color: var(--brown-800);
  margin: 1.75rem 0 1rem;
}

/* KPI Grid (legacy) */
.kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.kpi-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.kpi-label {
  font-size: 0.8rem;
  color: var(--brown-600);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.5rem;
}

.kpi-value {
  font-family: var(--font-display);
  font-size: 1.75rem;
  font-weight: 600;
  color: var(--brown-900);
  line-height: 1.2;
}

.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.8rem;
  font-weight: 600;
  margin-top: 0.4rem;
  padding: 0.15rem 0.5rem;
  border-radius: 20px;
}

.kpi-change.up { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.kpi-change.down { background: rgba(251, 113, 133, 0.12); color: var(--red); }

/* Section */
.section-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-800);
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-title::before {
  content: '';
  width: 4px;
  height: 1.1rem;
  background: var(--gold);
  border-radius: 2px;
}

/* Chart Grid */
.chart-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.chart-grid-2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.card {
  background: var(--surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.card:hover {
  border-color: var(--border-strong);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
}

.card-title {
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--brown-800);
}

.card-subtitle {
  font-size: 0.75rem;
  color: var(--brown-500);
}

.chart-container {
  position: relative;
  height: 280px;
}

.chart-container-sm { height: 220px; }
.chart-container-lg { height: 320px; }

/* Goals */
.goals-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.goal-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.goal-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 0.75rem;
}

.goal-name {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--brown-700);
}

.goal-pct {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--brown-900);
}

.progress-bar {
  height: 8px;
  background: var(--cream-dark);
  border-radius: 4px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  border-radius: 4px;
  transition: width 0.6s ease;
}

.progress-fill.revenue { background: linear-gradient(90deg, var(--gold), var(--gold-light)); }
.progress-fill.catering { background: linear-gradient(90deg, var(--rose), var(--rose-light)); }
.progress-fill.online { background: linear-gradient(90deg, var(--blue), #6b9fd4); }

.goal-detail {
  font-size: 0.75rem;
  color: var(--brown-500);
  margin-top: 0.5rem;
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  position: relative;
}

.table-wrap::after {
  content: '';
  position: sticky;
  right: 0;
  top: 0;
  float: right;
  width: 24px;
  height: 100%;
  margin-left: -24px;
  pointer-events: none;
  background: linear-gradient(to right, transparent, rgba(6, 8, 15, 0.95));
  opacity: 0;
  transition: opacity 0.2s;
}

.table-wrap.is-scrollable::after {
  opacity: 1;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
  color: var(--brown-600);
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  border-bottom: 2px solid var(--cream-dark);
}

td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid var(--cream-dark);
  color: var(--brown-800);
}

tr:hover td { background: var(--surface-active); }

.badge {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge.completed, .badge.picked-up, .badge.delivered { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.ready, .badge.confirmed { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge.preparing, .badge.in-prep, .badge.in-transit { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.critical { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.low { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.ok { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }

.channel-tag {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 500;
}

.channel-tag.in-store { background: rgba(148, 163, 184, 0.12); color: var(--brown-700); border: 1px solid rgba(148, 163, 184, 0.25); }
.channel-tag.online-pickup { background: rgba(56, 189, 248, 0.12); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.28); }
.channel-tag.doordash { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.channel-tag.catering { background: rgba(34, 211, 238, 0.12); color: var(--gold-light); border: 1px solid rgba(34, 211, 238, 0.28); }

.trend-up { color: var(--green); font-weight: 600; font-size: 0.8rem; }
.trend-up::before { content: '↑ '; }

/* Insights sidebar */
.insights-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 1.5rem;
  margin-bottom: 1.5rem;
}

.insight-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--cream-dark);
  font-size: 0.85rem;
}

.insight-item:last-child { border-bottom: none; }

.insight-label { color: var(--brown-600); }
.insight-value { font-weight: 600; color: var(--brown-900); }

/* SWOT Analysis */
.swot-section {
  margin-bottom: 2rem;
}

.swot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.swot-meta {
  font-size: 0.75rem;
  color: var(--brown-500);
}

.swot-summary {
  font-size: 0.9rem;
  color: var(--brown-700);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  padding: 1rem 1.25rem;
  background: var(--surface);
  border-radius: var(--radius);
  border-left: 4px solid var(--gold);
  box-shadow: var(--shadow);
}

.market-context-grid,
.market-context-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.75rem;
}

.market-stat {
  background: var(--surface);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.market-stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown-500);
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.market-stat-value {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 600;
  color: var(--brown-900);
}

.market-stat-change {
  font-size: 0.75rem;
  color: var(--green);
  font-weight: 600;
  margin-top: 0.2rem;
}

.market-stat-source {
  font-size: 0.65rem;
  color: var(--brown-400);
  margin-top: 0.35rem;
}

.market-stat-source a {
  color: var(--brown-500);
  text-decoration: none;
}

.market-stat-source a:hover { text-decoration: underline; }

.swot-grid,
.swot-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1rem;
}

.swot-card {
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.swot-strengths { background: linear-gradient(135deg, #0c1426 0%, #0f1f1a 100%); border-top: 3px solid var(--sage); }
.swot-weaknesses { background: linear-gradient(135deg, #0c1426 0%, #1a1020 100%); border-top: 3px solid var(--rose); }
.swot-opportunities { background: linear-gradient(135deg, #0c1426 0%, #0c1a2e 100%); border-top: 3px solid var(--blue); }
.swot-threats { background: linear-gradient(135deg, #0c1426 0%, #1a1018 100%); border-top: 3px solid var(--red); }

.swot-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 0.85rem;
  color: var(--brown-800);
}

.swot-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.swot-item-title {
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--brown-900);
  margin-bottom: 0.2rem;
}

.swot-item-detail {
  font-size: 0.8rem;
  color: var(--brown-700);
  line-height: 1.5;
}

.swot-item-source {
  font-size: 0.7rem;
  color: var(--brown-600);
  margin-top: 0.3rem;
}

.swot-item-source a {
  color: var(--brown-500);
  text-decoration: none;
}

.swot-item-source a:hover { text-decoration: underline; }

.swot-bottom { margin-bottom: 0; }

.audit-method {
  font-size: 0.8rem;
  color: var(--brown-500);
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

.ai-section { margin-bottom: 2rem; }

.ai-state-grid,
#aiCurrentState,
#aiFactors,
#growthFactors,
#marketingFactors,
#predictionFactors,
#overallScoreBreakdown {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1rem;
}

.ai-state-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--blue);
}

.ai-state-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brown-500);
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.ai-state-value {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--brown-900);
  margin-bottom: 0.5rem;
}

.ai-state-value a { color: var(--brown-700); }

.ai-state-detail {
  font-size: 0.8rem;
  color: var(--brown-600);
  line-height: 1.5;
}

.status-none { color: var(--red); }
.status-partial { color: var(--amber); }

.ai-opportunities-grid,
.ai-opp-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1rem;
}

.ai-opp-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  border-left: 4px solid var(--blue);
}

.ai-opp-header {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  margin-bottom: 0.6rem;
  flex-wrap: wrap;
}

.ai-opp-title {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-900);
  flex: 1;
}

.ai-opp-addresses {
  font-size: 0.8rem;
  color: var(--brown-600);
  margin-bottom: 0.5rem;
}

.ai-opp-detail {
  font-size: 0.85rem;
  color: var(--brown-800);
  line-height: 1.55;
  margin-bottom: 0.6rem;
}

.ai-opp-evidence, .ai-opp-impl {
  font-size: 0.78rem;
  color: var(--brown-600);
  line-height: 1.5;
  margin-bottom: 0.4rem;
}

.roadmap-grid,
.roadmap-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1rem;
}

.roadmap-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
}

.roadmap-phase {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-900);
  margin-bottom: 0.35rem;
}

.roadmap-focus {
  font-size: 0.8rem;
  color: var(--brown-500);
  margin-bottom: 0.75rem;
}

.roadmap-actions {
  list-style: none;
  margin-bottom: 0.75rem;
}

.roadmap-actions li {
  font-size: 0.82rem;
  color: var(--brown-700);
  padding: 0.35rem 0;
  border-bottom: 1px solid var(--cream-dark);
  padding-left: 1rem;
  position: relative;
}

.roadmap-actions li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--gold);
}

.roadmap-actions li:last-child { border-bottom: none; }

.chart-footnote {
  font-size: 0.72rem;
  color: var(--brown-500);
  margin-top: 0.75rem;
  line-height: 1.5;
}

.chart-footnote a { color: var(--brown-600); }

.badge.status-active { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.status-unclaimed { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.status-not-present { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.status-partial { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.status-manual { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.status-unknown-likely-fragmented { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.priority-critical { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }

.badge.threat-high { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.threat-low { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.threat-medium { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.priority-high { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.priority-medium { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.priority-low { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }

.badge.verdict-ahead { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.verdict-mid { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.verdict-behind { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.verdict-opportunity { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }
.badge.verdict-gap { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }

.competitor-row-aria td { background: rgba(34, 211, 238, 0.08); }
.competitor-row-aria td:first-child { border-left: 3px solid var(--gold); box-shadow: inset 3px 0 12px rgba(34, 211, 238, 0.15); }

/* Customer Prediction */
.prediction-outlook-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

.prediction-outlook-card {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
  border: 1px solid var(--cream-dark);
  border-top: 3px solid var(--gold);
}

.outlook-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--brown-500);
  margin-bottom: 0.5rem;
}

.outlook-metric {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.1;
  margin-bottom: 0.35rem;
}

.outlook-metric[data-tier="high"] { color: var(--sage); }
.outlook-metric[data-tier="mid"] { color: var(--gold); }
.outlook-metric[data-tier="low"] { color: var(--red); }

.outlook-sub {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-600);
  margin-bottom: 0.5rem;
}

.outlook-text {
  font-size: 0.85rem;
  color: var(--brown-700);
  line-height: 1.45;
  margin: 0;
}

.badge.demand-very-high { background: rgba(52, 211, 153, 0.15); color: var(--sage); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.demand-high { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.demand-medium { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.demand-low { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }

.table-empty {
  text-align: center;
  color: var(--brown-500);
  font-style: italic;
  padding: 1.25rem !important;
}

/* ── High-tech theme layer ── */
.brief-card,
.quote-card,
.factor-chip,
.breakdown-card,
.swot-card,
.prediction-outlook-card,
.whatif-card,
.ai-state-card,
.ai-opp-card,
.roadmap-card,
.goal-card,
.kpi-card,
.overview-card,
.collapsible-panel,
.market-stat,
.catering-scenario,
.seasonal-card {
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-color: var(--border);
}

.factor-points,
.breakdown-score,
.outlook-metric,
.kpi-value,
.goal-pct,
.market-stat-value,
.catering-scenario-estimate,
.whatif-lift {
  font-family: var(--font-mono);
}

.section-title::before {
  background: var(--gold);
  box-shadow: var(--glow-cyan);
}

.swot-summary {
  border-left-color: var(--gold);
  box-shadow: var(--shadow), inset 0 0 24px rgba(34, 211, 238, 0.04);
}

.swot-card {
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

.swot-strengths { box-shadow: var(--shadow), inset 0 1px 0 rgba(52, 211, 153, 0.12); }
.swot-weaknesses { box-shadow: var(--shadow), inset 0 1px 0 rgba(232, 121, 249, 0.12); }
.swot-opportunities { box-shadow: var(--shadow), inset 0 1px 0 rgba(56, 189, 248, 0.14); }
.swot-threats { box-shadow: var(--shadow), inset 0 1px 0 rgba(251, 113, 133, 0.12); }

.swot-strengths .swot-title { color: var(--sage-light); }
.swot-weaknesses .swot-title { color: var(--rose-light); }
.swot-opportunities .swot-title { color: var(--blue); }
.swot-threats .swot-title { color: var(--red); }

.quote-card { border-left-color: var(--gold); }

.action-filter-btn {
  background: rgba(6, 8, 15, 0.6);
  border-color: var(--border);
  color: var(--brown-700);
}

.action-filter-btn:hover {
  border-color: var(--border-strong);
  background: var(--surface-active);
  color: var(--gold-light);
}

.action-filter-btn.active {
  background: var(--surface-active);
  border-color: var(--gold);
  box-shadow: var(--glow-cyan);
  color: var(--gold-light);
}

.back-to-top {
  background: var(--surface);
  border-color: var(--border);
  color: var(--brown-700);
  backdrop-filter: blur(8px);
}

.back-to-top:hover {
  border-color: var(--gold);
  background: var(--surface-active);
  color: var(--gold-light);
  box-shadow: var(--glow-cyan);
}

.prediction-outlook-card {
  border-top-color: var(--gold);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(34, 211, 238, 0.08);
}

.table-wrap::after {
  background: linear-gradient(to right, transparent, rgba(6, 8, 15, 0.95));
}

th {
  border-bottom-color: var(--border);
  color: var(--brown-600);
}

td { border-bottom-color: rgba(34, 211, 238, 0.08); }

.badge.tag-quick-win,
.badge.demand-high,
.badge.demand-very-high,
.badge.completed, .badge.picked-up, .badge.delivered,
.badge.ok,
.badge.status-active,
.badge.threat-low {
  background: rgba(52, 211, 153, 0.15);
  color: var(--green);
  border: 1px solid rgba(52, 211, 153, 0.3);
}

.badge.tag-growth-bet,
.badge.tag-growth,
.badge.ready, .badge.confirmed {
  background: rgba(56, 189, 248, 0.15);
  color: var(--blue);
  border: 1px solid rgba(56, 189, 248, 0.3);
}

.badge.tag-operational,
.badge.status-manual,
.badge.status-partial,
.badge.status-unknown-likely-fragmented,
.badge.threat-medium,
.badge.priority-medium,
.badge.demand-medium,
.badge.tag-slow,
.badge.preparing, .badge.in-prep, .badge.in-transit,
.badge.low {
  background: rgba(251, 191, 36, 0.12);
  color: var(--amber);
  border: 1px solid rgba(251, 191, 36, 0.28);
}

.badge.tag-risk,
.badge.critical,
.badge.status-unclaimed,
.badge.status-not-present,
.badge.priority-critical,
.badge.priority-high,
.badge.threat-high,
.badge.demand-low {
  background: rgba(251, 113, 133, 0.12);
  color: var(--red);
  border: 1px solid rgba(251, 113, 133, 0.28);
}

.badge.tag-peak,
.badge.tag-signature-pastries,
.badge.tag-gluten-free-line,
.badge.tag-service-culture,
.badge.tag-value-perception {
  background: rgba(34, 211, 238, 0.12);
  color: var(--gold-light);
  border: 1px solid rgba(34, 211, 238, 0.28);
}

.badge.verdict-leads,
.badge.verdict-strong,
.badge.verdict-ahead { background: rgba(52, 211, 153, 0.15); color: var(--green); border: 1px solid rgba(52, 211, 153, 0.3); }
.badge.verdict-trails,
.badge.verdict-gap,
.badge.verdict-behind { background: rgba(251, 113, 133, 0.12); color: var(--red); border: 1px solid rgba(251, 113, 133, 0.28); }
.badge.verdict-mixed,
.badge.verdict-parity,
.badge.verdict-mid { background: rgba(251, 191, 36, 0.12); color: var(--amber); border: 1px solid rgba(251, 191, 36, 0.28); }
.badge.verdict-opportunity,
.badge.priority-low { background: rgba(56, 189, 248, 0.15); color: var(--blue); border: 1px solid rgba(56, 189, 248, 0.3); }

.kpi-change.up { background: rgba(52, 211, 153, 0.12); color: var(--green); }
.kpi-change.down { background: rgba(251, 113, 133, 0.12); color: var(--red); }

.channel-tag.in-store { background: rgba(148, 163, 184, 0.12); color: var(--brown-700); }
.channel-tag.online-pickup { background: rgba(56, 189, 248, 0.12); color: var(--blue); }
.channel-tag.doordash { background: rgba(251, 113, 133, 0.12); color: var(--red); }
.channel-tag.catering { background: rgba(34, 211, 238, 0.12); color: var(--gold-light); }

.hero-banner {
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

.friendly-intro-card { border-left-color: var(--blue); }

/* Partner CTA — Bizfission */
.partner-cta-section {
  padding-top: 0.5rem;
  scroll-margin-top: var(--sticky-offset, 180px);
}

body.theme-light .header-built-by {
  color: var(--gold-light);
}

body.theme-light .header-built-by:hover {
  color: var(--gold);
}

.partner-cta {
  text-align: center;
  padding: 1.75rem 1.5rem 1.85rem;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
  background:
    linear-gradient(145deg, rgba(34, 211, 238, 0.08) 0%, rgba(167, 139, 250, 0.06) 45%, rgba(12, 20, 38, 0.9) 100%);
  box-shadow: var(--shadow-lg);
  max-width: 720px;
  margin: 0 auto;
}

.partner-cta-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold-light);
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  padding: 0.28rem 0.75rem;
  margin-bottom: 0.85rem;
  background: var(--surface-active);
}

.partner-cta-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--brown-900);
  margin: 0 0 0.65rem;
  letter-spacing: -0.02em;
}

.partner-cta-body {
  font-size: 0.92rem;
  line-height: 1.6;
  color: var(--brown-700);
  margin: 0 auto 1rem;
  max-width: 38rem;
}

.partner-cta-invite {
  font-size: 0.95rem;
  color: var(--brown-800);
  margin: 0 0 1.1rem;
}

.partner-cta-email {
  color: var(--gold-light);
  font-weight: 600;
  text-decoration: none;
  border-bottom: 1px solid rgba(34, 211, 238, 0.35);
}

.partner-cta-email:hover {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

.partner-cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.65rem 1.25rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: linear-gradient(135deg, rgba(34, 211, 238, 0.2), rgba(167, 139, 250, 0.18));
  color: var(--brown-900);
  text-decoration: none;
  box-shadow: var(--glow-cyan);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.partner-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-lg), var(--glow-cyan);
}

/* Footer */
.footer {
  text-align: center;
  padding: 1.5rem;
  font-size: 0.75rem;
  color: var(--brown-500);
  border-top: 1px solid var(--border);
  margin-top: 1rem;
}

.footer a {
  color: var(--brown-600);
  text-decoration: none;
}

.footer a:hover { text-decoration: underline; }

.footer-help {
  margin: 0.45rem 0 0;
  font-size: 0.78rem;
  color: var(--brown-600);
}

.footer-help a {
  color: var(--gold-light);
  font-weight: 600;
}

/* Footer theme selector (all pages) */
.footer-theme {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin: 0.9rem 0 0.25rem;
  flex-wrap: wrap;
}

.footer-theme-label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.footer-theme-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 15, 0.45);
  gap: 2px;
}

.footer-theme-btn {
  font-family: var(--font);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.4rem 0.85rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--brown-600);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.footer-theme-btn:hover {
  color: var(--brown-900);
}

.footer-theme-btn.is-active {
  background: var(--surface-active);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--border-strong);
}

body.theme-light .footer-theme-toggle {
  background: rgba(244, 241, 234, 0.95);
}

body.theme-light .footer-theme-btn.is-active {
  background: rgba(184, 134, 42, 0.15);
  color: var(--gold-light);
}

/* Responsive */
@media (max-width: 900px) {
  .brief-grid { grid-template-columns: 1fr; }
  .hero-headline { font-size: 1.15rem; }
  .hero-image { height: 210px; }
  .hero-overlay { padding: 1.1rem 1.15rem 1.2rem; }
  .panel-title { font-size: 1.35rem; }
  .dashboard { padding: 0 1rem 2rem; }
  #section-brief { padding-top: 1rem; }
  .dashboard-section { padding: 1.5rem 0; }
  .prediction-outlook-row { grid-template-columns: 1fr; }
  .swot-row-4 { grid-template-columns: 1fr; }
  .chart-container-lg { height: 280px; }
  .brand-logo { height: 40px; max-width: min(180px, 40vw); }
  .brand h1 { font-size: 0.98rem; }
}

@media (max-width: 768px) {
  .header {
    padding: 0.7rem 1rem;
    gap: 0.55rem;
  }

  .header-actions {
    width: 100%;
    justify-content: space-between;
  }

  .brand {
    width: 100%;
    gap: 0.75rem;
  }

  .scorecard-strip {
    padding: 0.5rem 0 0.15rem;
    overflow: hidden;
  }

  .scorecard-inner {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 0.5rem;
    padding: 0 1rem 0.5rem;
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    overscroll-behavior-x: contain;
  }

  .scorecard-inner::-webkit-scrollbar { display: none; }

  .score-card,
  .scorecard-overall {
    flex: 0 0 auto;
    width: 118px;
    min-width: 118px;
    scroll-snap-align: start;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 0.6rem 0.5rem;
    gap: 0.35rem;
  }

  .scorecard-overall { grid-column: auto; }

  .score-ring {
    width: 44px;
    height: 44px;
    font-size: 0.88rem;
  }

  .score-label {
    font-size: 0.62rem;
    line-height: 1.25;
  }

  .score-basis { display: none; }

  .scorecard-methodology { display: none; }

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

  .panel-heading {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .panel-header {
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
  }

  .card {
    padding: 1rem;
  }

  .chart-container { height: 240px; }
  .chart-container-md { height: 220px; }
  .chart-container-sm { height: 200px; }
  .chart-container-lg { height: 260px; }

  #overallScoreBreakdown {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }

  .breakdown-card {
    min-width: 0;
    padding: 0.75rem 0.5rem;
  }

  .breakdown-score { font-size: 1.5rem; }
  .breakdown-label { font-size: 0.68rem; }

  .outlook-metric { font-size: 1.65rem; }

  table { font-size: 0.8rem; }
  th, td { padding: 0.5rem 0.6rem; }

  .table-scroll { max-height: 240px; }
}

@media (max-width: 600px) {
  .brand h1 { font-size: 1.15rem; letter-spacing: 0.08em; }
  .brand-logo { width: auto; height: 40px; max-width: 140px; }
  .brand p { font-size: 0.72rem; }

  .last-updated { display: none; }
  .header-meta-cluster { gap: 0.4rem; }
  .header-update-btn {
    font-size: 0.68rem;
    padding: 0.35rem 0.65rem;
  }

  .research-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.6rem;
  }

  .hero-image { height: 150px; }
  .hero-headline { font-size: 1.05rem; }
  .hero-overlay { padding: 0.85rem 1rem; }

  .panel-title { font-size: 1.15rem; }
  .panel-subtitle { font-size: 0.8rem; }
  .panel-meta { font-size: 0.68rem; word-break: break-word; }

  .panel-score-ring {
    width: 42px;
    height: 42px;
    font-size: 1rem;
  }

  .factor-chip { padding: 0.7rem 0.85rem; }
  .factor-points { font-size: 1.1rem; }
  .factor-name { font-size: 0.74rem; }

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

  .market-context-row,
  .market-context-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .whatif-grid { grid-template-columns: 1fr; }
  .catering-grid,
  .seasonal-grid { grid-template-columns: 1fr; }

  .action-filter-btn {
    font-size: 0.72rem;
    padding: 0.45rem 0.75rem;
    min-height: 36px;
  }

  .action-plan-table thead { display: none; }
  .action-plan-table tr {
    display: block;
    margin-bottom: 1rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    padding: 0.5rem;
  }
  .action-plan-table td {
    display: block;
    border: none;
    padding: 0.35rem 0.5rem;
  }
  .action-plan-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brown-500);
    margin-bottom: 0.15rem;
  }
  .action-plan-table td.mobile-stack-primary {
    padding-bottom: 0.5rem;
    margin-bottom: 0.35rem;
    border-bottom: 1px solid var(--cream-dark);
  }
  .action-plan-table td.mobile-stack-primary::before { display: none; }

  .mobile-stack-table thead { display: none; }
  .mobile-stack-table tbody tr {
    display: block;
    margin-bottom: 0.85rem;
    border: 1px solid var(--cream-dark);
    border-radius: var(--radius-sm);
    padding: 0.5rem 0.65rem;
    background: var(--surface);
  }
  .mobile-stack-table tbody tr:hover td { background: transparent; }
  .mobile-stack-table td {
    display: block;
    border: none;
    padding: 0.3rem 0;
  }
  .mobile-stack-table td::before {
    content: attr(data-label);
    display: block;
    font-size: 0.65rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--brown-500);
    margin-bottom: 0.1rem;
  }
  .mobile-stack-table td.mobile-stack-primary {
    font-size: 0.9rem;
    padding-bottom: 0.4rem;
    margin-bottom: 0.25rem;
    border-bottom: 1px solid var(--cream-dark);
  }
  .mobile-stack-table td.mobile-stack-primary::before { display: none; }

  .chart-container { height: 220px; }
  .chart-container-md { height: 200px; }
  .chart-container-sm { height: 180px; }
  .chart-container-lg { height: 240px; }

  .table-wrap table { min-width: 0; }
  .table-wrap:not(.table-scroll) table { min-width: 480px; }

  .back-to-top {
    width: 100%;
    max-width: 280px;
    min-height: 44px;
  }
}

@media (max-width: 480px) {
  .dashboard {
    padding: 0 0.75rem 2rem;
    padding-left: max(0.75rem, env(safe-area-inset-left));
    padding-right: max(0.75rem, env(safe-area-inset-right));
  }

  .site-sticky {
    padding-left: env(safe-area-inset-left);
    padding-right: env(safe-area-inset-right);
  }

  .kpi-grid { grid-template-columns: 1fr; }
  .brand h1 { font-size: 1.05rem; }

  .score-card,
  .scorecard-overall {
    width: 108px;
    min-width: 108px;
  }

  #overallScoreBreakdown {
    grid-template-columns: repeat(2, 1fr);
  }

  .market-context-row,
  .market-context-grid {
    grid-template-columns: 1fr;
  }

  .prediction-outlook-card { padding: 1rem; }
}

/* Admin-only tools (shown with ?admin=1) */
.admin-value-root {
  position: fixed;
  right: max(1rem, env(safe-area-inset-right));
  bottom: max(1rem, env(safe-area-inset-bottom));
  z-index: 9999;
  display: none !important;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.65rem;
  pointer-events: none;
}

/* Must use .is-active — bare [hidden] can be overridden by display:flex elsewhere */
.admin-value-root.is-active {
  display: flex !important;
  pointer-events: none;
}

.admin-mode-badge {
  display: none;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: rgba(212, 168, 83, 0.18);
  color: var(--gold-light);
}

body.admin-view .admin-mode-badge {
  display: inline-block;
}

.admin-value-fab,
.admin-theme-fab,
.admin-value-panel {
  pointer-events: auto;
}

.admin-fab-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  pointer-events: auto;
}

.admin-theme-fab {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: var(--surface-solid);
  color: var(--gold-light);
  font-size: 1rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: transform 0.15s ease, background 0.15s ease, color 0.15s ease;
}

.admin-theme-fab:hover {
  transform: translateY(-1px) scale(1.04);
  border-color: var(--gold);
  background: var(--surface-active);
}

.admin-theme-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 1rem;
  border-bottom: 1px solid var(--border);
}

.admin-theme-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--brown-700);
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.admin-theme-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(6, 8, 15, 0.45);
  gap: 2px;
}

.admin-theme-btn {
  font-family: var(--font);
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: none;
  background: transparent;
  color: var(--brown-600);
  cursor: pointer;
}

.admin-theme-btn:hover {
  color: var(--brown-900);
}

.admin-theme-btn.is-active {
  background: var(--surface-active);
  color: var(--gold-light);
  box-shadow: 0 0 0 1px var(--border-strong);
}

.admin-value-fab {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: linear-gradient(145deg, rgba(212, 168, 83, 0.95), rgba(91, 141, 239, 0.9));
  color: #0a0e18;
  font-family: var(--font-display);
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
  box-shadow: var(--shadow-lg), 0 0 24px rgba(212, 168, 83, 0.35);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.admin-value-fab:hover {
  transform: translateY(-2px) scale(1.04);
  box-shadow: var(--shadow-lg), 0 0 32px rgba(212, 168, 83, 0.5);
}

.admin-value-fab.is-open {
  background: var(--surface-solid);
  color: var(--gold-light);
  border-color: var(--gold);
}

.admin-value-fab.has-ratings::after {
  content: '';
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--sage);
  box-shadow: 0 0 0 2px rgba(6, 8, 15, 0.8);
}

.admin-value-fab {
  position: relative;
}

.admin-value-panel {
  width: min(360px, calc(100vw - 2rem));
  max-height: min(70vh, 520px);
  display: flex;
  flex-direction: column;
  background: rgba(10, 16, 30, 0.96);
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
  overflow: hidden;
}

.admin-value-panel[hidden] {
  display: none !important;
}

.admin-value-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--border);
}

.admin-value-panel-head-compact {
  min-height: 0;
}

.admin-value-panel-kicker {
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brown-600);
}

.admin-value-panel-head h3 {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--brown-900);
  margin: 0;
}

.admin-value-sub {
  margin: 0.25rem 0 0;
  font-size: 0.72rem;
  line-height: 1.4;
  color: var(--brown-600);
}

.admin-value-close {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--brown-600);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}

.admin-value-close:hover {
  color: var(--brown-900);
  border-color: var(--gold);
  background: var(--surface-active);
}

.admin-value-list {
  overflow-y: auto;
  padding: 0.5rem 0.65rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.admin-value-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.35rem 0.6rem;
  align-items: center;
  padding: 0.55rem 0.6rem;
  border-radius: 10px;
  border: 1px solid transparent;
  background: rgba(12, 20, 38, 0.55);
}

.admin-value-row:hover {
  border-color: var(--border);
  background: var(--surface-hover);
}

.admin-value-row-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--brown-800);
}

.admin-value-row-meta {
  grid-column: 1 / -1;
  font-size: 0.68rem;
  color: var(--brown-600);
}

.admin-value-list-title {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--brown-900);
  margin: 0.15rem 0.15rem 0.2rem;
  letter-spacing: 0.02em;
}

.admin-value-list-sub {
  font-size: 0.72rem;
  color: var(--brown-600);
  margin: 0 0.15rem 0.55rem;
  line-height: 1.35;
}

.admin-value-scale {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
}

.admin-value-scale button,
.admin-star-btn {
  width: 30px;
  height: 30px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid rgba(34, 211, 238, 0.15);
  background: rgba(6, 8, 15, 0.55);
  color: var(--brown-500);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s, transform 0.1s;
}

.admin-star-scale .admin-star-btn {
  color: #475569;
}

.admin-value-scale button:hover,
.admin-star-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
  transform: scale(1.06);
}

/* Filled stars up through the chosen rating */
.admin-star-btn.is-star-on,
.admin-value-scale button.is-selected {
  background: rgba(212, 168, 83, 0.22);
  border-color: var(--gold);
  color: #fbbf24;
  box-shadow: 0 0 10px rgba(212, 168, 83, 0.25);
}

.admin-value-scale button.is-selected[data-tier="high"],
.admin-star-btn.is-star-on[data-tier="high"] {
  background: rgba(52, 211, 153, 0.18);
  border-color: var(--sage);
  color: #fbbf24;
}

.admin-value-scale button.is-selected[data-tier="low"],
.admin-star-btn.is-star-on[data-tier="low"] {
  background: rgba(251, 113, 133, 0.14);
  border-color: var(--red);
  color: #fbbf24;
}

body.theme-light .admin-value-list-title {
  color: var(--brown-900);
}

body.theme-light .admin-star-btn {
  background: #fff;
  border-color: var(--border);
  color: #94a3b8;
}

body.theme-light .admin-star-btn.is-star-on {
  background: rgba(184, 134, 42, 0.15);
  border-color: var(--gold);
  color: #d69e2e;
}

.admin-value-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.65rem 0.9rem 0.85rem;
  border-top: 1px solid var(--border);
}

.admin-value-avg {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--brown-600);
}

.admin-value-actions {
  display: flex;
  gap: 0.4rem;
}

.admin-value-btn {
  font-family: var(--font);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--surface-active);
  color: var(--gold-light);
  cursor: pointer;
}

.admin-value-btn.ghost {
  background: transparent;
  color: var(--brown-700);
}

.admin-value-btn:hover {
  border-color: var(--gold);
  color: var(--gold-light);
}

.admin-value-toast {
  position: absolute;
  bottom: 56px;
  right: 0;
  font-size: 0.7rem;
  padding: 0.4rem 0.65rem;
  border-radius: 8px;
  background: rgba(52, 211, 153, 0.15);
  border: 1px solid rgba(52, 211, 153, 0.4);
  color: var(--sage-light);
  white-space: nowrap;
  pointer-events: none;
  animation: adminValueFade 1.8s ease forwards;
}

@keyframes adminValueFade {
  0% { opacity: 0; transform: translateY(4px); }
  15% { opacity: 1; transform: translateY(0); }
  80% { opacity: 1; }
  100% { opacity: 0; }
}

/* ——— Light theme (admin toggle; html/body.theme-light) ——— */
html.theme-light,
body.theme-light {
  --bg-void: #f4f1ea;
  --surface: rgba(255, 252, 247, 0.96);
  --surface-solid: #fffdf9;
  --surface-hover: rgba(255, 255, 255, 0.98);
  --surface-active: rgba(184, 134, 42, 0.12);
  --border: rgba(45, 55, 72, 0.14);
  --border-strong: rgba(184, 134, 42, 0.5);
  --cream: #f4f1ea;
  --cream-dark: rgba(45, 55, 72, 0.14);
  --peach: rgba(184, 134, 42, 0.12);
  --brown-900: #1a2332;
  --brown-800: #2d3748;
  --brown-700: #4a5568;
  --brown-600: #64748b;
  --brown-500: #718096;
  --brown-400: #94a3b8;
  --gold: #b8862a;
  --gold-light: #9a6f1a;
  --sage: #2f7d5b;
  --sage-light: #3d9a6f;
  --rose: #a8559a;
  --rose-light: #c084b5;
  --blue: #2b6cb0;
  --green: #2f7d5b;
  --red: #c53030;
  --amber: #d69e2e;
  --shadow: 0 4px 20px rgba(26, 35, 50, 0.08), 0 0 1px rgba(26, 35, 50, 0.06);
  --shadow-lg: 0 12px 40px rgba(26, 35, 50, 0.12);
  --glow-cyan: 0 0 16px rgba(184, 134, 42, 0.2);
  --glow-green: 0 0 14px rgba(47, 125, 91, 0.18);
  --glow-red: 0 0 14px rgba(197, 48, 48, 0.18);
}

html.theme-light,
body.theme-light {
  background-color: var(--bg-void) !important;
  background-image:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(184, 134, 42, 0.12), transparent 55%),
    radial-gradient(ellipse 45% 35% at 100% 30%, rgba(47, 125, 91, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 0% 80%, rgba(43, 108, 176, 0.05), transparent 50%) !important;
  color: var(--brown-900);
}

body.theme-light .site-sticky {
  background: rgba(255, 252, 247, 0.94) !important;
  border-bottom-color: var(--border);
}

body.theme-light .header {
  color: var(--brown-900);
  border-bottom-color: var(--border);
}

/* Title gradients: dark ink → gold (readable on cream) */
body.theme-light .brand h1,
body.theme-light .panel-title {
  background: linear-gradient(135deg, #1a2332 15%, var(--gold) 95%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

body.theme-light .scorecard-strip {
  background: rgba(255, 252, 247, 0.96) !important;
  border-bottom-color: var(--border);
}

/* Score cards + rings (were stuck on dark rgba fills) */
body.theme-light .score-card,
body.theme-light .scorecard-overall,
body.theme-light .panel,
body.theme-light .card,
body.theme-light .brief-card,
body.theme-light .factor-chip,
body.theme-light .breakdown-card,
body.theme-light .market-stat,
body.theme-light .prediction-outlook-card,
body.theme-light .seasonal-card,
body.theme-light .whatif-card,
body.theme-light .quote-card,
body.theme-light .ai-state-card,
body.theme-light .ai-opp-card,
body.theme-light .roadmap-card,
body.theme-light .collapsible-panel,
body.theme-light .catering-scenario {
  background: var(--surface-solid) !important;
  border-color: var(--border);
  box-shadow: var(--shadow);
  color: var(--brown-900);
}

body.theme-light .score-ring,
body.theme-light .panel-score-ring,
body.theme-light .score-ring-icon {
  background: #ffffff !important;
  color: inherit;
}

body.theme-light .score-ring[data-tier="high"],
body.theme-light .panel-score-ring[data-tier="high"] {
  border-color: var(--sage);
  color: var(--sage);
  box-shadow: 0 0 0 1px rgba(47, 125, 91, 0.2);
}

body.theme-light .score-ring[data-tier="mid"],
body.theme-light .panel-score-ring[data-tier="mid"] {
  border-color: var(--gold);
  color: var(--gold);
  box-shadow: 0 0 0 1px rgba(184, 134, 42, 0.25);
}

body.theme-light .score-ring[data-tier="low"],
body.theme-light .panel-score-ring[data-tier="low"] {
  border-color: var(--red);
  color: var(--red);
  box-shadow: 0 0 0 1px rgba(197, 48, 48, 0.2);
}

body.theme-light .score-label,
body.theme-light .score-basis,
body.theme-light .panel-subtitle,
body.theme-light .summary-text,
body.theme-light .card-title,
body.theme-light .factor-name {
  color: var(--brown-800);
}

body.theme-light .score-card.active,
body.theme-light .scorecard-overall.active {
  background: rgba(184, 134, 42, 0.1) !important;
  border-color: var(--gold);
  box-shadow: 0 0 0 1px var(--gold), var(--shadow);
}

body.theme-light .research-badge {
  background: rgba(184, 134, 42, 0.12);
  color: var(--gold-light);
}

body.theme-light .update-header-simple {
  background: rgba(255, 252, 247, 0.95);
}

body.theme-light .swot-strengths {
  background: linear-gradient(135deg, #ffffff 0%, #eef8f2 100%);
  border-top-color: var(--sage);
}

body.theme-light .swot-weaknesses {
  background: linear-gradient(135deg, #ffffff 0%, #faf0f7 100%);
  border-top-color: var(--rose);
}

body.theme-light .swot-opportunities {
  background: linear-gradient(135deg, #ffffff 0%, #eef4fb 100%);
  border-top-color: var(--blue);
}

body.theme-light .swot-threats {
  background: linear-gradient(135deg, #ffffff 0%, #fdf0f0 100%);
  border-top-color: var(--red);
}

body.theme-light .hero-overlay {
  background: linear-gradient(135deg, rgba(26, 35, 50, 0.72) 0%, rgba(26, 35, 50, 0.45) 55%, rgba(184, 134, 42, 0.25) 100%);
}

body.theme-light .table-wrap::after {
  background: linear-gradient(to right, transparent, rgba(255, 253, 249, 0.95));
}

body.theme-light th {
  color: var(--brown-600);
  border-bottom-color: var(--border);
}

body.theme-light td {
  border-bottom-color: rgba(45, 55, 72, 0.08);
}

html.theme-light .admin-value-panel,
body.theme-light .admin-value-panel,
html.theme-light #adminValuePanel,
body.theme-light #adminValuePanel {
  background: #fffdf9 !important;
  border-color: var(--border-strong) !important;
  color: var(--brown-900) !important;
  box-shadow: var(--shadow-lg) !important;
}

html.theme-light .admin-value-panel-head,
body.theme-light .admin-value-panel-head {
  background: rgba(244, 241, 234, 0.55);
  border-bottom-color: var(--border);
}

html.theme-light .admin-value-footer,
body.theme-light .admin-value-footer {
  background: rgba(244, 241, 234, 0.4);
  border-top-color: var(--border);
}

html.theme-light .admin-value-row,
body.theme-light .admin-value-row {
  background: rgba(244, 241, 234, 0.9) !important;
}

html.theme-light .admin-value-row:hover,
body.theme-light .admin-value-row:hover {
  background: #fff !important;
}

html.theme-light .admin-value-list-title,
html.theme-light .admin-value-row-label,
body.theme-light .admin-value-list-title,
body.theme-light .admin-value-row-label {
  color: var(--brown-900) !important;
}

html.theme-light .admin-value-list-sub,
html.theme-light .admin-value-row-meta,
html.theme-light .admin-value-panel-kicker,
html.theme-light .admin-value-avg,
body.theme-light .admin-value-list-sub,
body.theme-light .admin-value-row-meta,
body.theme-light .admin-value-panel-kicker,
body.theme-light .admin-value-avg {
  color: var(--brown-600) !important;
}

body.theme-light .admin-theme-toggle {
  background: rgba(244, 241, 234, 0.9);
}

body.theme-light .admin-value-scale button {
  background: #fff;
  border-color: var(--border);
  color: var(--brown-600);
}

body.theme-light .admin-value-scale button.is-selected {
  background: rgba(184, 134, 42, 0.15);
  border-color: var(--gold);
  color: var(--gold-light);
}

body.theme-light .admin-value-scale button.is-selected[data-tier="high"] {
  background: rgba(47, 125, 91, 0.12);
  border-color: var(--sage);
  color: var(--sage);
}

body.theme-light .admin-value-scale button.is-selected[data-tier="low"] {
  background: rgba(197, 48, 48, 0.1);
  border-color: var(--red);
  color: var(--red);
}

body.theme-light .admin-value-fab {
  color: #1a2332;
}

body.theme-light .admin-theme-fab {
  background: #fff;
  color: var(--gold-light);
}

body.theme-light .admin-value-fab.has-ratings::after {
  box-shadow: 0 0 0 2px #fff;
}

body.theme-light .admin-value-toast {
  background: rgba(47, 125, 91, 0.12);
  border-color: rgba(47, 125, 91, 0.35);
  color: var(--sage);
}

body.theme-light .collapsible-panel summary {
  background: var(--surface-solid);
}

body.theme-light .action-filter-btn {
  background: var(--surface-solid);
  color: var(--brown-700);
}

body.theme-light .action-filter-btn.active {
  color: var(--gold-light);
}

body.theme-light .footer {
  color: var(--brown-600);
}

body.theme-light .partner-cta {
  background:
    linear-gradient(145deg, rgba(184, 134, 42, 0.1) 0%, rgba(47, 125, 91, 0.06) 50%, #fffdf9 100%);
  border-color: var(--border-strong);
}

body.theme-light .partner-cta-email,
body.theme-light .footer-help a {
  color: var(--gold-light);
  border-bottom-color: rgba(184, 134, 42, 0.35);
}

body.theme-light .partner-cta-btn {
  background: linear-gradient(135deg, rgba(184, 134, 42, 0.18), rgba(47, 125, 91, 0.12));
  color: var(--brown-900);
  box-shadow: var(--shadow);
}

@media print {
  .site-sticky { position: static; }
  .scorecard-strip, .back-to-top, .action-filter-row, .admin-value-root { display: none; }
  .collapsible-panel { break-inside: avoid; }
  .collapsible-panel[open] summary ~ * { display: block; }
  .dashboard-section { break-inside: avoid; page-break-inside: avoid; }
  .hero-banner { break-inside: avoid; }
}