/*
 * Custom Styles for TouchDesigner Parameter Control Interface
 * Based on minimalist, colorful design with generous spacing
 */

/* Brand typography: Instrument Sans (Google Fonts), with sensible fallbacks */

:root {
  /* Color Palette from styling.txt */
  --yellow: #ffd203;
  --red: #ff3c41;
  --blue: #00acff;
  --purple: #6742fd;
  --pink: #ff2199;
  --green: #1bad5a;
  --orange: #FF7A00;
  --dark-blue: #0B1F3B;
  --light-blue: #8FD3FF;
  --off-white: #F7F8FA;
  --off-black: #111214;
  --white: #ffffff;
  --black: #000000;

  /* Muted palette (for soft backgrounds) */
  --muted-light-blue: #ADDDF7;
  --muted-light-purple: #BEB3E6;
  --muted-yellow: #E6C65B;

  /* Section accents (RGB so we can use rgba() easily) */
  --accent-projects-rgb: 0, 172, 255;   /* blue */
  --accent-shows-rgb: 103, 66, 253;     /* purple */
  --accent-versions-rgb: 255, 33, 153;  /* pink */
  --accent-live-rgb: 27, 173, 90;       /* green */

  /* Feedback accents (muted, calm) */
  --accent-bug-rgb: 224, 91, 97;        /* muted red: #E05B61 */
  --accent-feature-rgb: 230, 198, 91;   /* muted yellow: #E6C65B */

  /* Convenience hex values (for cases where rgb is awkward) */
  --accent-bug: #E05B61;
  --accent-feature: #E6C65B;

  /* Additional UI colors */
  --light-gray: #f8f9fa;
  --medium-gray: #e9ecef;
  --dark-gray: #495057;

  /* Spacing variables */
  --spacing-xs: 0.25rem;
  --spacing-sm: 0.5rem;
  --spacing-md: 1rem;
  --spacing-lg: 1.5rem;
  --spacing-xl: 2.5rem;

  /* Border radius */
  --border-radius: 8px;
  --border-radius-lg: 12px;
}

/* General Styling Overrides */
body {
  font-family: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--black);
  background-color: var(--off-white);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
}

/* ------------------------------------------------------------
   Shared button sizing
   ------------------------------------------------------------ */
.btn-compact {
  padding: 4px 8px;
  font-size: 0.75rem;
  line-height: 1.2;
  white-space: nowrap;
}

/* ------------------------------------------------------------
   Accent system (projects/shows/versions)
   ------------------------------------------------------------ */
.section-accent {
  --section-accent-rgb: var(--accent-projects-rgb);
}

.section-accent--projects {
  --section-accent-rgb: var(--accent-projects-rgb);
}

.section-accent--shows {
  --section-accent-rgb: var(--accent-shows-rgb);
}

.section-accent--versions {
  --section-accent-rgb: var(--accent-versions-rgb);
}

.section-accent--live {
  --section-accent-rgb: var(--accent-live-rgb);
}

.section-accent--bug {
  --section-accent-rgb: var(--accent-bug-rgb);
}

.section-accent--feature {
  --section-accent-rgb: var(--accent-feature-rgb);
}

.section-accent .content-header-panel {
  background: rgba(var(--section-accent-rgb), 0.10);
  border-bottom: 1px solid rgba(var(--section-accent-rgb), 0.18);
}

.section-accent .content-title {
  position: relative;
}

.section-accent .content-title::after {
  /* Intentionally no decorative underline bar (minimal system). */
  content: none;
}

/* ------------------------------------------------------------
   Breadcrumbs (minimal, no icons)
   ------------------------------------------------------------ */
.site-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(17, 18, 20, 0.68);
  margin-bottom: 0.75rem;
}

.site-breadcrumb a {
  color: rgba(17, 18, 20, 0.72);
  text-decoration: none;
}

.site-breadcrumb a:hover,
.site-breadcrumb a:focus {
  color: rgba(17, 18, 20, 0.92);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.site-breadcrumb .site-breadcrumb-sep {
  opacity: 0.55;
}

/* Clickable cards (used for show/project tiles that navigate on click) */
.clickable-card {
  cursor: pointer;
}

/* Download page: Vimeo embed sizing (keeps styles out of templates) */
.download-video-wrap {
  max-width: 350px;
}

.download-video-aspect {
  padding: 150% 0 0 0;
  position: relative;
}

.download-video-iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* ------------------------------------------------------------
   Button icons (policy: avoid icons next to button labels)
   - We do NOT hide all icons in buttons globally (some buttons are icon-only).
   - Instead, remove icons where we have label+icon in templates.
   ------------------------------------------------------------ */

.section-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(var(--section-accent-rgb), 0.14);
  border: 1px solid rgba(var(--section-accent-rgb), 0.22);
  color: rgba(17, 18, 20, 0.88);
  font-weight: 700;
  text-decoration: none;
}

.section-pill:hover,
.section-pill:focus {
  color: rgba(17, 18, 20, 1);
  border-color: rgba(var(--section-accent-rgb), 0.30);
  text-decoration: none;
}

.entity-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.2rem 0.6rem;
  border-radius: 999px;
  border: 1px solid rgba(17, 18, 20, 0.10);
  background: rgba(255, 255, 255, 0.75);
  color: rgba(17, 18, 20, 0.82);
  font-weight: 700;
}

.entity-pill--versions {
  border-color: rgba(var(--accent-versions-rgb), 0.30);
  background: rgba(var(--accent-versions-rgb), 0.12);
}

/* ------------------------------------------------------------
   Site Header (Variant J: A left + E right)
   ------------------------------------------------------------ */
.site-header {
  background: var(--off-white);
  border-bottom: 1px solid rgba(17, 18, 20, 0.06);
  padding: 0 32px;
}

.site-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  gap: 24px;
}

/* Left: Logo + Nav */
.header-left {
  display: flex;
  align-items: center;
  gap: 32px;
}

.header-left-actions {
  display: flex;
  align-items: center;
}

.header-logo {
  display: flex;
  align-items: center;
}

.header-logo-img {
  height: 56px;
  width: auto;
  display: block;
}

/* Nav links with underline active state */
.header-nav {
  display: flex;
  align-items: center;
  gap: 24px;
}

.header-nav-link {
  color: var(--off-black);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  padding: 3px 0;
  border-bottom: 2px solid transparent;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.header-nav-link:hover,
.header-nav-link.active {
  color: var(--off-black);
  border-bottom-color: var(--blue);
}

/* Right: Action buttons */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.btn-header {
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all 0.15s ease;
  cursor: pointer;
  border: none;
  font-family: inherit;
}

.btn-header-outline {
  background: transparent;
  border: 1px solid #D1D5DB;
  color: var(--off-black);
}

.btn-header-outline:hover {
  border-color: var(--off-black);
  background: #F9FAFB;
  color: var(--off-black);
}

.btn-header-primary {
  background: var(--blue);
  color: #fff;
}

.btn-header-primary:hover {
  background: #0095e0;
  color: #fff;
}

.btn-header-green-primary {
  background: var(--green);
  color: #fff;
}

.btn-header-green-primary:hover {
  background: #16964f;
  color: #fff;
}

.btn-header-green {
  background: rgba(27, 173, 90, 0.12);
  border: 1px solid rgba(27, 173, 90, 0.45);
  color: var(--green);
}

.btn-header-green:hover {
  background: rgba(27, 173, 90, 0.18);
  border-color: var(--green);
  color: var(--green);
}

/* User dropdown trigger */
.header-user-trigger {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--off-black);
  cursor: pointer;
  border-radius: 8px;
  transition: background 0.15s ease;
}

.header-user-trigger:hover {
  background: rgba(0, 0, 0, 0.04);
}

.header-user-trigger.dropdown-toggle::after {
  /* Disable Bootstrap caret - we render a real chevron element for reliability */
  display: none !important;
  content: "" !important;
  border: none !important;
}

.header-user-chevron {
  margin-left: 6px;
  opacity: 0.55;
  vertical-align: middle;
  display: inline-block;
  transform: translateY(-1px);
}

.header-user-chevron svg {
  width: 10px;
  height: 6px;
  display: block;
}

/* Mobile menu toggle */
.header-mobile-toggle {
  display: none;
  padding: 8px;
  background: transparent;
  border: 1px solid rgba(17, 18, 20, 0.18);
  border-radius: 6px;
  cursor: pointer;
}

.header-mobile-toggle-icon {
  display: block;
  width: 20px;
  height: 2px;
  background: var(--off-black);
  position: relative;
}

.header-mobile-toggle-icon::before,
.header-mobile-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
  width: 20px;
  height: 2px;
  background: var(--off-black);
}

.header-mobile-toggle-icon::before {
  top: -6px;
}

.header-mobile-toggle-icon::after {
  top: 6px;
}

/* Mobile nav */
.header-mobile-nav {
  padding: 16px 32px 24px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid rgba(17, 18, 20, 0.06);
}

.header-mobile-link {
  color: var(--off-black);
  text-decoration: none;
  font-weight: 500;
  font-size: 1rem;
  padding: 12px 0;
}

.header-mobile-link:hover {
  color: var(--blue);
}

.header-mobile-divider {
  margin: 8px 0;
  border: none;
  border-top: 1px solid rgba(17, 18, 20, 0.08);
}

/* Responsive: hide desktop nav on mobile, show mobile toggle */
@media (max-width: 991.98px) {
  .header-left .header-nav,
  .header-right {
    display: none;
  }

  .header-left-actions {
    display: none;
  }
  
  .header-mobile-toggle {
    display: block;
  }
  
  .site-header-inner {
    height: 64px;
  }
  
  .header-logo-img {
    height: 48px;
  }
}

/* Legacy navbar styles (kept for backwards compat, can remove later) */
.navbar-logo-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  border-radius: 50%;
  background: var(--blue);
  border: 1px solid rgba(17, 18, 20, 0.10);
}

/* Use a radial “drop shadow” so it fades naturally and doesn’t create a hard line */
.navbar-logo-wrap::after {
  content: "";
  position: absolute;
  inset: -18px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 60%, rgba(0, 0, 0, 0.22), transparent 68%);
  filter: blur(6px);
  opacity: 0.55;
  z-index: -1;
  pointer-events: none;
}

.site-navbar .nav-link {
  color: rgba(17, 18, 20, 0.82);
  font-weight: 600;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link:focus {
  color: rgba(17, 18, 20, 0.98);
}

.site-navbar .navbar-toggler {
  border-color: rgba(17, 18, 20, 0.18);
}

/* ------------------------------------------------------------
   Footer (full bleed, dark, logo + 3 columns)
   ------------------------------------------------------------ */
.site-footer {
  margin-top: 0;
}

.site-footer--dark {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  background: #152A45;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding: 3rem 0 2.5rem;
}

.site-footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

.site-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr 1fr;
  gap: 2rem 2.25rem;
  align-items: start;
}

@media (max-width: 991.98px) {
  .site-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 575.98px) {
  .site-footer--dark {
    padding: 2.25rem 0 2rem;
  }
  .site-footer-grid {
    grid-template-columns: 1fr;
  }
}

.site-footer-brand {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
  text-align: center;
}

.site-footer-logo-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-footer-logo {
  width: auto;
  height: 134px;
  max-height: none;
  object-fit: contain;
  max-width: 100%;
}

.site-footer-col-title {
  font-size: 0.85rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 1);
  margin-bottom: 0.75rem;
  font-weight: 700;
}

.site-footer-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.55rem;
}

.site-footer-link {
  color: rgba(255, 255, 255, 0.86);
  font-weight: 400;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  padding: 0.1rem 0;
  transition: color 0.18s ease, transform 0.18s ease;
}

.site-footer-link:hover,
.site-footer-link:focus {
  color: rgba(255, 255, 255, 1);
  text-decoration: underline;
  text-underline-offset: 3px;
  transform: translateY(-1px);
}

.site-footer-link:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 172, 255, 0.35);
  border-radius: 10px;
}

.site-footer-small {
  color: rgba(255, 255, 255, 1);
  font-size: 0.95rem;
}

@media (prefers-reduced-motion: reduce) {
  .site-footer-link {
    transition: none;
  }
  .site-footer-link:hover,
  .site-footer-link:focus {
    transform: none;
  }
}

h1 {
  font-size: 2.5rem;
  margin-top: var(--spacing-lg);
}

/* ------------------------------------------------------------
   Homepage (calm/artsy)
   ------------------------------------------------------------ */
.homepage {
  /* Break out of the base.html .container so sections can be full-bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -1.5rem; /* offset base container top margin */
  background: var(--off-white);
}

.homepage-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 18, 20, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.homepage-hero {
  position: relative;
  overflow: hidden;
  padding: 4.5rem 0 3.5rem;
  background: var(--off-white);
}

.homepage-hero-inner {
  position: relative;
  z-index: 1;
}

.homepage-hero-panel {
  padding: clamp(1.5rem, 3vw, 2.25rem);
}

.homepage-hero-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin: 0 0 0.75rem 0;
}

.homepage-hero-subtitle {
  color: var(--dark-gray);
  max-width: 52rem;
  margin: 0 auto 1.75rem auto;
  font-size: 1.15rem;
}

.homepage-hero-cta {
  display: flex;
  justify-content: center;
}

.homepage-cta-btn {
  border-radius: 999px;
  padding: 0.95rem 2.2rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.homepage-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  filter: saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .homepage-cta-btn {
    transition: none;
  }
  .homepage-cta-btn:hover {
    transform: none;
  }
}

.homepage-features {
  padding: 3.25rem 0 3.75rem;
  background: var(--off-white);
}

.homepage-card {
  border-radius: 24px;
  padding: 1.6rem 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(17, 18, 20, 0.06);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

/* Feature card layout (Variant 2: text left, image right) */
.homepage-card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.homepage-card-copy {
  flex: 1 1 auto;
  min-width: 0;
}

.homepage-card-art {
  flex: 0 0 auto;
  width: 132px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.homepage-card-image {
  width: 120px;
  height: 120px;
  object-fit: contain;
  display: block;
}

.homepage-card--see {
  background: var(--muted-light-blue);
}

.homepage-card--play {
  background: var(--muted-light-purple);
}

.homepage-card--show {
  background: var(--muted-yellow);
}

.homepage-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.10);
}

.homepage-card-title {
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
  font-weight: 700;
}

.homepage-card-text {
  margin: 0;
  color: var(--dark-gray);
  font-size: 1.05rem;
}

@media (max-width: 576px) {
  .homepage-card-art {
    width: 116px;
  }
  .homepage-card-image {
    width: 108px;
    height: 108px;
  }
}

.homepage-final-cta {
  padding: 3.5rem 0 3.75rem;
  background: var(--off-white);
}

.homepage-final-cta-panel {
  padding: 2.25rem 1.75rem;
  background: var(--blue);
  border-color: rgba(17, 18, 20, 0.10);
  color: var(--white);
}

.homepage-final-cta-text {
  font-size: 1.25rem;
  margin: 1.25rem 0 0 0;
  opacity: 0.98;
}

@media (max-width: 576px) {
  .homepage-hero {
    padding: 3.75rem 0 3rem;
  }

  .homepage-features {
    padding: 2.75rem 0 3.25rem;
  }
}

/* ------------------------------------------------------------
   Content pages (legal/contact) - friendly theme
   ------------------------------------------------------------ */
.content-page {
  /* Break out of the base.html .container so sections can be full-bleed */
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-top: -1.5rem; /* offset base container top margin */
  background: var(--off-white);
  padding: 2.75rem 0 3.25rem;
}

.content-panel {
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(17, 18, 20, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  /* Ensures tinted headers / backgrounds don't create odd corner artifacts */
  overflow: hidden;
}

.content-header-panel {
  padding: clamp(1.25rem, 2.5vw, 2rem);
  /* Remove the "white bar" gap under tinted headers by not using margin separation */
  margin-bottom: 0;
  /* Match panel rounding so header backgrounds look clean */
  border-top-left-radius: 24px;
  border-top-right-radius: 24px;
  /* Subtle divider for non-accent panels; accent panels override the color below */
  border-bottom: 1px solid rgba(17, 18, 20, 0.06);
}

.content-body-panel {
  padding: clamp(1.25rem, 2.5vw, 2.25rem);
}

.content-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  font-size: clamp(1.9rem, 3.2vw, 2.65rem);
  margin: 0 0 0.65rem 0;
}

.content-meta {
  margin: 0;
  color: rgba(17, 18, 20, 0.68);
  font-weight: 600;
}

.content-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.4rem 0.8rem;
  border-radius: 999px;
  background: rgba(17, 18, 20, 0.04);
  border: 1px solid rgba(17, 18, 20, 0.06);
}

.content-prose h2 {
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 1.65rem 0 0.6rem 0;
  font-size: 1.35rem;
}

.content-prose h3 {
  font-weight: 700;
  margin: 1.25rem 0 0.5rem 0;
  font-size: 1.1rem;
}

.content-prose p,
.content-prose li {
  color: rgba(17, 18, 20, 0.88);
}

.content-prose a {
  color: rgba(17, 18, 20, 0.92);
  font-weight: 650;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}

.content-prose a:hover,
.content-prose a:focus {
  color: rgba(17, 18, 20, 0.98);
}

/* Make the contact form feel like the homepage panels */
.content-panel .card {
  border: none;
  background: transparent;
}

/* IMPORTANT: keep this scoped to the contact page to avoid breaking card padding elsewhere */
.content-page.contact-page .content-panel .card-body {
  padding: 0;
}

.content-page .btn.btn-primary {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
}

.content-page .btn.btn-primary:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12);
  filter: saturate(1.05);
}

@media (prefers-reduced-motion: reduce) {
  .content-page .btn.btn-primary {
    transition: none;
  }
  .content-page .btn.btn-primary:hover {
    transform: none;
  }
}

@media (max-width: 576px) {
  .content-page {
    padding: 2.25rem 0 2.75rem;
  }
}

/* ------------------------------------------------------------
   Microscope page (staff monitoring)
   ------------------------------------------------------------ */
.microscope-page .content-panel {
  margin-bottom: 1.75rem;
}

.microscope-section {
  display: grid;
  gap: 0.85rem;
}

.microscope-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  margin: 0;
}

.microscope-section-copy {
  margin: 0;
  color: rgba(17, 18, 20, 0.72);
}

.microscope-sections {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.35rem;
}

.microscope-health-grid {
  display: grid;
  gap: 0.6rem;
}

.microscope-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.85rem 1rem;
  border-radius: 16px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.microscope-health-name {
  font-weight: 600;
  color: rgba(17, 18, 20, 0.88);
}

.microscope-freshness {
  margin: 0.35rem 0 0 0;
  color: rgba(17, 18, 20, 0.6);
  font-size: 0.95rem;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  border: 1px solid rgba(17, 18, 20, 0.12);
  background: rgba(17, 18, 20, 0.04);
  color: rgba(17, 18, 20, 0.72);
}

.status-pill--ok {
  border-color: rgba(27, 173, 90, 0.25);
  background: rgba(27, 173, 90, 0.12);
  color: #1bad5a;
}

.status-pill--warn {
  border-color: rgba(255, 122, 0, 0.28);
  background: rgba(255, 122, 0, 0.12);
  color: #FF7A00;
}

.status-pill--down {
  border-color: rgba(255, 60, 65, 0.28);
  background: rgba(255, 60, 65, 0.12);
  color: #ff3c41;
}

.status-pill--unknown {
  border-color: rgba(17, 18, 20, 0.12);
  background: rgba(17, 18, 20, 0.04);
  color: rgba(17, 18, 20, 0.62);
}

.microscope-kv {
  display: grid;
  gap: 0.7rem;
}

.microscope-kv-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: baseline;
  padding: 0.75rem 0.9rem;
  border-radius: 14px;
  background: rgba(17, 18, 20, 0.03);
  border: 1px solid rgba(17, 18, 20, 0.06);
}

.microscope-kv-key {
  font-weight: 600;
  color: rgba(17, 18, 20, 0.7);
}

.microscope-alarm-raw {
  display: block;
  margin-top: 0.2rem;
  font-weight: 600;
  font-size: 0.9em;
  color: rgba(17, 18, 20, 0.52);
  word-break: break-word;
}

.microscope-kv-val {
  font-weight: 700;
  color: rgba(17, 18, 20, 0.92);
}

@media (max-width: 575.98px) {
  .microscope-kv-row {
    grid-template-columns: 1fr;
  }
}

/* ------------------------------------------------------------
   Projects page - match homepage “friendly panels” + palette
   ------------------------------------------------------------ */
.projects-page .content-panel {
  overflow: hidden; /* keep card shadows tidy within the panel */
}

.projects-page .content-panel--projects-tint {
  background: var(--muted-light-blue);
}

.projects-page .content-body-panel--projects-tint {
  /* Projects background tint (muted palette) */
  background: var(--muted-light-blue);
}

.projects-page .content-header-panel--projects-tint {
  background: var(--muted-light-blue);
  border-bottom: none;
}

.projects-grid {
  margin-top: 0.25rem;
}

.projects-empty {
  border-radius: 18px;
  padding: 1.25rem 1.25rem 1.35rem;
  background: rgba(17, 18, 20, 0.03);
  border: 1px solid rgba(17, 18, 20, 0.06);
}

.projects-empty--colorful {
  /* Wrapper should NOT look like a second card/frame */
  border-radius: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-shadow: none;
}

.projects-empty--colorful::before,
.projects-empty--colorful::after {
  /* Remove decorative blobs / “frame” */
  content: none;
}

.projects-empty-inner {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(17, 18, 20, 0.07);
  border-radius: 20px;
  padding: clamp(1.25rem, 2.2vw, 1.75rem);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
}

.projects-empty-title {
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 0.75rem 0;
}

.projects-empty-text {
  font-size: 1.05rem;
  color: rgba(17, 18, 20, 0.82);
}

.projects-empty-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin: 1rem 0 1.25rem;
}

.projects-empty-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

/* Muted Projects button (same tint as background, for softer CTA) */
.btn-projects-muted {
  background: var(--muted-light-blue);
  color: var(--dark-blue);
  border: 1px solid rgba(17, 18, 20, 0.12);
  font-weight: 700;
}

.btn-projects-muted:hover,
.btn-projects-muted:focus {
  background: #9ad4f2; /* slightly darker muted blue */
  color: var(--dark-blue);
  border-color: rgba(17, 18, 20, 0.18);
}

.projects-empty-actions .btn {
  border-radius: 999px;
}

.projects-empty-actions .btn-outline-secondary {
  border-color: rgba(17, 18, 20, 0.14);
}

.projects-empty-actions .btn-outline-secondary:hover,
.projects-empty-actions .btn-outline-secondary:focus {
  background: rgba(17, 18, 20, 0.04);
}

/* Small secondary action buttons (CI: no icons, calm, readable) */
.btn-action-subtle {
  border: 1px solid rgba(0, 172, 255, 0.35);
  background: rgba(0, 172, 255, 0.06);
  color: var(--blue);
  border-radius: 999px;
}

.btn-action-subtle:hover,
.btn-action-subtle:focus {
  border-color: rgba(0, 172, 255, 0.55);
  background: rgba(0, 172, 255, 0.12);
  color: var(--blue);
  text-decoration: none;
}

.btn-action-subtle:focus {
  box-shadow: 0 0 0 3px rgba(0, 172, 255, 0.20);
}

/* Shared low-noise timestamp styling (projects, shows, etc.) */
.created-at {
  /* Increased contrast for readability (still intentionally subtle). */
  color: rgba(17, 18, 20, 0.55) !important;
}

/* ------------------------------------------------------------
   Project create/edit form page
   ------------------------------------------------------------ */
.project-form-page .content-panel {
  max-width: 920px;
  margin: 0 auto;
}

.project-form-actions {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.project-form-page .form-control {
  border-radius: 14px;
}

.project-form-page .form-control:focus {
  border-color: rgba(var(--accent-projects-rgb), 0.55);
  box-shadow: 0 0 0 3px rgba(var(--accent-projects-rgb), 0.22);
}

.project-form-page .form-check {
  padding: 0.85rem 1rem; /* Increased padding to ensure checkbox stays inside */
  border-radius: 16px;
  background: rgba(17, 18, 20, 0.03);
  border: 1px solid rgba(17, 18, 20, 0.06);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem; /* Add gap between checkbox and label for better spacing */
}

.project-form-page .form-check-input {
  /* Override Bootstrap's default negative margin + float that can "hang" the checkbox out of the container */
  float: none;
  margin-left: 0;
  margin-top: 0.25em; /* Ensure checkbox has proper vertical alignment */
  flex-shrink: 0; /* Prevent checkbox from shrinking */
}

.project-form-page .form-check a {
  color: rgba(17, 18, 20, 0.92);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.project-form-page .form-check a:hover,
.project-form-page .form-check a:focus {
  color: rgba(17, 18, 20, 1);
  text-decoration-thickness: 2px;
}

/* ------------------------------------------------------------
   Bug report success page
   ------------------------------------------------------------ */
.bug-report-success {
  text-align: center;
  padding: 1rem 0;
}

/* ------------------------------------------------------------
   Feedback pages (bug/feature)
   ------------------------------------------------------------ */
.feedback-page .content-panel {
  max-width: 980px;
  margin: 0 auto;
}

.feedback-page .content-body-panel {
  background: rgba(255, 255, 255, 0.92);
}

.btn-bug {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 700;
  background: var(--accent-bug);
  border: 1px solid rgba(17, 18, 20, 0.12);
  color: #ffffff;
}

.btn-bug:hover,
.btn-bug:focus {
  background: #c94d52; /* darker red on hover */
  transform: translateY(-1px);
  color: #ffffff;
}

.btn-feature {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 800;
  background: var(--accent-feature);
  border: 1px solid rgba(17, 18, 20, 0.14);
  color: rgba(17, 18, 20, 0.92);
}

.btn-feature:hover,
.btn-feature:focus {
  background: #d4b44a; /* darker yellow on hover */
  transform: translateY(-1px);
  color: rgba(17, 18, 20, 0.98);
}

/* ------------------------------------------------------------
   Support chooser (Contact page)
   ------------------------------------------------------------ */
.support-chooser {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.9rem;
}

@media (max-width: 991.98px) {
  .support-chooser {
    grid-template-columns: 1fr;
  }
}

.support-chooser-card {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 1.05rem 1.1rem;
  border-radius: 18px;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.9);
  text-decoration: none;
  color: rgba(17, 18, 20, 0.92);
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.support-chooser-card:hover,
.support-chooser-card:focus {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  border-color: rgba(17, 18, 20, 0.14);
  text-decoration: none;
}

.support-chooser-card:focus-visible {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 172, 255, 0.25), 0 14px 34px rgba(0, 0, 0, 0.08);
}

.support-chooser-title {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 1.1rem;
}

.support-chooser-meta {
  color: rgba(17, 18, 20, 0.70);
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.support-chooser-actions {
  margin-top: auto;
  padding-top: 0.25rem;
}

.support-chooser-card--bug {
  background: rgba(var(--accent-bug-rgb), 0.10);
  border-color: rgba(var(--accent-bug-rgb), 0.16);
}

.support-chooser-card--feature {
  background: rgba(var(--accent-feature-rgb), 0.12);
  border-color: rgba(var(--accent-feature-rgb), 0.20);
}

.support-chooser-card--contact {
  background: rgba(var(--accent-projects-rgb), 0.10);
  border-color: rgba(var(--accent-projects-rgb), 0.16);
}

.btn-contact {
  border-radius: 999px;
  padding: 0.75rem 1.35rem;
  font-weight: 800;
  background: rgba(var(--accent-projects-rgb), 0.92);
  border: 1px solid rgba(17, 18, 20, 0.12);
  color: #ffffff;
}

.btn-contact:hover,
.btn-contact:focus {
  background: rgba(var(--accent-projects-rgb), 1);
  transform: translateY(-1px);
  color: #ffffff;
}

.bug-report-success-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.bug-report-success-key {
  font-size: 1.1rem;
  color: var(--dark-gray);
  margin-bottom: 1rem;
}

.bug-report-success-text {
  color: var(--dark-gray);
  max-width: 520px;
  margin: 0 auto;
}

.bug-report-attachments-warning {
  max-width: 640px;
  margin: 0.75rem auto 1.25rem;
  border-radius: 16px;
}

.projects-link {
  color: rgba(17, 18, 20, 0.92);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.projects-link:hover,
.projects-link:focus {
  color: rgba(17, 18, 20, 1);
  text-decoration-thickness: 2px;
}

.project-card {
  border-radius: 20px;
  border: 1px solid rgba(17, 18, 20, 0.07);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.projects-page .project-card .card-body {
  padding: 1.25rem 1.25rem 1.1rem;
}

.projects-page .project-card .card-title {
  margin-bottom: 0.6rem;
}

.projects-page .project-card .card-text {
  margin-bottom: 0;
}

.project-card-body {
  cursor: pointer;
}

.project-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.10);
}

.project-card .card-title {
  font-weight: 700;
  letter-spacing: -0.01em;
}

.project-card .card-text {
  color: rgba(17, 18, 20, 0.75);
}

.project-card .card-footer {
  border-top: 1px solid rgba(17, 18, 20, 0.06);
}

/* Palette-based soft backgrounds (cycle for any number of cards) */
.projects-grid > div:nth-child(6n + 1) .project-card {
  background: var(--muted-light-blue);
}
.projects-grid > div:nth-child(6n + 2) .project-card {
  background: var(--muted-light-purple);
}
.projects-grid > div:nth-child(6n + 3) .project-card {
  background: var(--muted-yellow);
}
.projects-grid > div:nth-child(6n + 4) .project-card {
  background: rgba(0, 172, 255, 0.10);
}
.projects-grid > div:nth-child(6n + 5) .project-card {
  background: rgba(103, 66, 253, 0.10);
}
.projects-grid > div:nth-child(6n + 6) .project-card {
  background: rgba(255, 210, 0, 0.12);
}

/* Keep buttons in the footer “pill-y” and calm */
.projects-page .btn-group .btn {
  border-radius: 999px;
}

@media (prefers-reduced-motion: reduce) {
  .project-card {
    transition: none;
  }
  .project-card:hover {
    transform: none;
  }
}

.card {
  border-radius: var(--border-radius-lg);
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  margin-bottom: var(--spacing-lg);
  overflow: hidden;
}

.card-header {
  background-color: var(--white);
  border-bottom: 1px solid var(--medium-gray);
  padding: var(--spacing-md) var(--spacing-lg);
}

.card-body {
  padding: var(--spacing-lg);
}

/* Form Controls Styling */
.form-label {
  font-weight: 500;
  margin-bottom: var(--spacing-xs);
  font-size: 0.95rem;
}

.form-control {
  border-radius: var(--border-radius);
  border: 1px solid var(--medium-gray);
  padding: 0.75rem 1rem;
  font-size: 1rem;
  transition: all 0.2s ease;
}

.form-control:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(0, 172, 255, 0.25);
}

.form-text {
  color: var(--dark-gray);
  font-size: 0.85rem;
  margin-top: var(--spacing-xs);
}

/* Button Styling */
.btn {
  border-radius: var(--border-radius);
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  transition: all 0.2s ease;
  border: none;
}

.btn-lg {
  padding: 0.9rem 1.8rem;
  font-size: 1.1rem;
}

.btn-primary {
  background-color: var(--blue);
}

.btn-primary:hover {
  background-color: #0090d6;
}

/* (Projects CTAs use the global primary button color `--blue` for clarity/contrast) */

.btn-success {
  background-color: #34c759;
}

.btn-success:hover {
  background-color: #2bb350;
}

.btn-warning {
  background-color: var(--yellow);
  color: var(--black);
}

.btn-warning:hover {
  background-color: #e6bd00;
  color: var(--black);
}

.btn-danger {
  background-color: var(--red);
}

.btn-danger:hover {
  background-color: #f01c25;
}

/* Enhanced Color Picker Controls */
.color-preview-container {
  cursor: pointer;
  position: relative;
}

.color-preview {
  width: 100%;
  height: 3rem;
  border-radius: var(--border-radius);
  margin-bottom: var(--spacing-xs);
  border: 1px solid var(--medium-gray);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
}

.color-preview:hover {
  box-shadow: 0 0 0 2px var(--blue);
}

.color-preview-label {
  font-size: 0.75rem;
  color: var(--dark-gray);
  text-align: center;
  opacity: 0.7;
  margin-bottom: var(--spacing-sm);
}

.color-controls-container {
  background-color: var(--white);
  border-radius: var(--border-radius);
  padding: var(--spacing-md);
  border: 1px solid var(--medium-gray);
  margin-bottom: var(--spacing-md);
}

.color-slider-container {
  margin-bottom: var(--spacing-sm);
}

.color-slider-container label {
  display: block;
  font-size: 0.9rem;
  margin-bottom: var(--spacing-xs);
  font-weight: 600;
}

.color-slider {
  -webkit-appearance: none;
  width: 100%;
  height: 6px;
  border-radius: 3px;
  background: #ddd;
  outline: none;
}

.color-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  cursor: pointer;
}

.color-slider-r::-webkit-slider-thumb {
  background: var(--red);
}

.color-slider-g::-webkit-slider-thumb {
  background: #34c759;
}

.color-slider-b::-webkit-slider-thumb {
  background: var(--blue);
}

.color-slider-a::-webkit-slider-thumb {
  background: var(--dark-gray);
}

.color-values {
  display: flex;
  gap: var(--spacing-xs);
}

.color-value-input {
  width: 100%;
  text-align: center;
  padding: 0.4rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
}

.color-value-label {
  display: block;
  font-size: 0.8rem;
  color: var(--dark-gray);
  margin-bottom: 0;
  font-weight: 600;
}

.td-color-values {
  border-left: 1px solid var(--medium-gray);
  padding-left: var(--spacing-sm);
}

.td-value-exceeded {
  position: relative;
}

.td-value-exceeded::after {
  content: "+";
  position: absolute;
  top: 0;
  right: 5px;
  color: white;
  background-color: var(--red);
  font-size: 0.75rem;
  line-height: 1;
  padding: 2px 4px;
  border-radius: 50%;
}

/* Vector Controls Styling */
.vector-control-container {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
}

.vector-component {
  flex: 1;
  min-width: 80px;
}

.vector-component label {
  display: block;
  font-size: 0.9rem;
  color: var(--dark-gray);
  margin-bottom: var(--spacing-xs);
}

.vector-input {
  width: 100%;
  text-align: center;
  padding: 0.5rem;
  border: 1px solid var(--medium-gray);
  border-radius: var(--border-radius);
}

/* Toggle/Switch Control */
.switch {
  position: relative;
  display: inline-block;
  width: 60px;
  height: 34px;
}

.switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.switch-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--medium-gray);
  transition: .3s;
  border-radius: 34px;
}

.switch-slider:before {
  position: absolute;
  content: "";
  height: 26px;
  width: 26px;
  left: 4px;
  bottom: 4px;
  background-color: var(--white);
  transition: .3s;
  border-radius: 50%;
}

input:checked + .switch-slider {
  background-color: var(--blue);
}

input:checked + .switch-slider:before {
  transform: translateX(26px);
}

/* Pulse Button Animation */
.pulse-button {
  position: relative;
  overflow: hidden;
}

.pulse-button:after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  background: rgba(255, 255, 255, 0.5);
  opacity: 0;
  border-radius: 100%;
  transform: scale(1, 1) translate(-50%, -50%);
  transform-origin: 50% 50%;
}

.pulse-button.active:after {
  animation: ripple 1s ease-out;
}

@keyframes ripple {
  0% {
    transform: scale(0, 0);
    opacity: 0.5;
  }
  100% {
    transform: scale(30, 30);
    opacity: 0;
  }
}

/* Float Control Styling */
.float-control-container {
  display: flex;
  align-items: center;
  gap: var(--spacing-md);
}

.float-slider {
  flex-grow: 1;
}

.float-value {
  width: 5rem;
  text-align: center;
}

/* Control Group Layout */
.control-group {
  margin-bottom: var(--spacing-lg);
}

.control-group-label {
  font-weight: 600;
  margin-bottom: var(--spacing-md);
  color: var(--dark-gray);
  border-bottom: 1px solid var(--medium-gray);
  padding-bottom: var(--spacing-xs);
}

/* Toggle Button Control */
.toggle-button-container {
  margin-bottom: 1rem;
}

.toggle-button {
  font-weight: 600;
  padding: 10px 15px;
  transition: all 0.3s ease;
  border: none;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.toggle-button.btn-success {
  background-color: #28a745;
}

.toggle-button.btn-danger {
  background-color: #dc3545;
}

.toggle-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.toggle-button:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Download Component Button - Navbar */
.btn-download-component {
  background-color: #ffffff !important;
  color: #333333 !important;
  border: 1px solid #333333 !important;
  border-radius: 6px;
  transition: all 0.3s ease;
}

.btn-download-component:hover,
.btn-download-component:focus {
  background-color: #333333 !important;
  color: #ffffff !important;
  border: 1px solid #333333 !important;
}

/* Cookie consent banner (acknowledgement-only) */
.cookie-consent-banner {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 1055; /* above most components */
  box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.25);
  transform: translateY(100%);
  opacity: 0;
  transition: transform 0.2s ease, opacity 0.2s ease;
}

.cookie-consent-banner.cookie-consent-visible {
  transform: translateY(0);
  opacity: 1;
}

.cookie-consent-banner.cookie-consent-hiding {
  transform: translateY(100%);
  opacity: 0;
}

.cookie-consent-actions {
  display: inline-flex;
  gap: 0.5rem;
  align-items: center;
}

@media (max-width: 767.98px) {
  .cookie-consent-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* ------------------------------------------------------------
   Legal & Info Pages (Privacy, Terms, Cookie, etc.)
   Each page has a unique header tint from the muted palette.
   Standard panel gap: 1.75rem (matching project detail).
   ------------------------------------------------------------ */
.legal-page .content-panel {
  margin-bottom: 1.75rem;
}

.legal-page .content-panel:last-child {
  margin-bottom: 0;
}

/* Privacy Policy - Muted Blue */
.legal-privacy .content-header-panel {
  background: rgba(91, 182, 229, 0.12);
}

/* Terms of Service - Muted Purple */
.legal-terms .content-header-panel {
  background: rgba(122, 102, 217, 0.12);
}

/* Cookie Policy - Muted Orange */
.legal-cookie .content-header-panel {
  background: rgba(224, 138, 60, 0.12);
}

/* Accessibility - Muted Green */
.legal-accessibility .content-header-panel {
  background: rgba(74, 155, 115, 0.12);
}

/* Copyright - Muted Pink */
.legal-copyright .content-header-panel {
  background: rgba(217, 92, 159, 0.12);
}

/* Contact - Muted Yellow */
.legal-contact .content-header-panel {
  background: rgba(230, 198, 91, 0.12);
}

/* ------------------------------------------------------------
   Creator profile page - calm panels + meaningful stat accents
   ------------------------------------------------------------ */
.profile-page .content-panel {
  margin-bottom: 1.75rem; /* standard panel gap */
}

.profile-page .content-panel:last-child {
  margin-bottom: 0;
}

.profile-section-title {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-kv {
  display: grid;
  gap: 0.75rem;
}

.profile-kv-row {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 1rem;
  align-items: baseline;
  padding: 0.85rem 0.95rem;
  border-radius: 16px;
  background: rgba(17, 18, 20, 0.03);
  border: 1px solid rgba(17, 18, 20, 0.06);
}

.profile-kv-key {
  font-weight: 800;
  color: rgba(17, 18, 20, 0.78);
}

.profile-kv-val {
  color: rgba(17, 18, 20, 0.92);
  font-weight: 650;
  word-break: break-word;
}

.profile-stats {
  display: grid;
  gap: 0.9rem;
}

.profile-stat {
  border-radius: 18px;
  padding: 1.1rem 1.1rem 1.05rem;
  border: 1px solid rgba(17, 18, 20, 0.08);
  background: rgba(255, 255, 255, 0.9);
}

.profile-stat--projects {
  background: rgba(var(--accent-projects-rgb), 0.10);
  border-color: rgba(var(--accent-projects-rgb), 0.16);
}

.profile-stat--shows {
  background: rgba(var(--accent-shows-rgb), 0.10);
  border-color: rgba(var(--accent-shows-rgb), 0.16);
}

.profile-stat--versions {
  background: rgba(var(--accent-versions-rgb), 0.10);
  border-color: rgba(var(--accent-versions-rgb), 0.16);
}

.profile-stat-value {
  font-size: 2.25rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  color: rgba(17, 18, 20, 0.92);
  line-height: 1.05;
}

.profile-stat-label {
  margin-top: 0.25rem;
  font-weight: 800;
  color: rgba(17, 18, 20, 0.74);
}

@media (max-width: 575.98px) {
  .profile-kv-row {
    grid-template-columns: 1fr;
    gap: 0.4rem;
  }
}