/* ============================================================
   VRS — Cookie Consent Banner
   ============================================================ */

.vrs-cookie {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(120px);
  width: calc(100% - 32px);
  max-width: 780px;
  z-index: 9999;
  opacity: 0;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), opacity 0.3s ease;
  pointer-events: none;
}

.vrs-cookie--visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
  pointer-events: auto;
}

.vrs-cookie__inner {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 18px 20px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.18), 0 2px 8px rgba(0, 0, 0, 0.08);
}

.vrs-cookie__icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  background: var(--green-alpha);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}

.vrs-cookie__text {
  flex: 1;
  min-width: 0;
}

.vrs-cookie__title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.vrs-cookie__body {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.vrs-cookie__link {
  color: var(--green);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.vrs-cookie__link:hover {
  color: var(--green-dark);
}

.vrs-cookie__actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.vrs-cookie__btn {
  padding: 9px 18px;
  border-radius: var(--radius-md);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s, transform 0.1s;
  font-family: inherit;
}

.vrs-cookie__btn:active {
  transform: scale(0.97);
}

.vrs-cookie__btn--reject {
  background: var(--bg-hover);
  color: var(--text-secondary);
  border: 1px solid var(--divider);
}

.vrs-cookie__btn--reject:hover {
  background: var(--divider);
  color: var(--text-primary);
}

.vrs-cookie__btn--accept {
  background: var(--cta-green); /* 4.6:1 against #fff — WCAG AA */
  color: #fff;
}

.vrs-cookie__btn--accept:hover {
  background: var(--cta-green-hover); /* 5.1:1 against #fff — WCAG AA */
}

@media (max-width: 640px) {
  .vrs-cookie {
    bottom: 16px;
    width: calc(100% - 24px);
  }
  .vrs-cookie__inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
  }
  .vrs-cookie__icon { display: none; }
  .vrs-cookie__actions {
    width: 100%;
  }
  .vrs-cookie__btn {
    flex: 1;
    text-align: center;
  }
}

/* ============================================================
   VRS — Design System
   Primary accent: VRS Green (#18B24B)
   Brand Navy: VRS Navy (#313844)
   Surfaces: clean whites/light grays (light) + deep navy/slate (dark)
   Typography: Public Sans
   ============================================================ */

/* ---- GOOGLE FONTS ---- */
@import url('https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,400&display=swap');
/* Barlow Condensed loaded via <link> in each HTML file */

/* ---- CSS VARIABLES ---- */
:root {
  /* VRS brand */
  --vo-navy:        #313844;   /* VRS Dark Navy */
  --ts-green:       #18B24B;   /* VRS Signature Green */

  /* Brand (VRS Green) */
  --green:          #18B24B;   /* accent: logos, headlines, non-text-bearing elements */
  --green-dark:     #12893A;
  --green-light:    #4DCC75;
  --green-lighter:  #D0F5DC;
  --green-alpha:    rgba(24, 178, 75, 0.12);
  --cta-green:      #0c8a37;   /* CTA buttons: 4.6:1 contrast against #fff — WCAG AA */
  --cta-green-hover: #0a7a2e; /* CTA hover: 5.1:1 contrast against #fff — WCAG AA */

  /* Neutrals (light mode) */
  --bg:             #FFFFFF;
  --bg-paper:       #F4F6F8;
  --bg-card:        #FFFFFF;
  --bg-hover:       rgba(145, 158, 171, 0.08);
  --divider:        rgba(145, 158, 171, 0.24);

  /* Text (light mode) */
  --text-primary:   #212B36;
  --text-secondary: #556370;   /* was #637381 — darkened to 4.8:1 on white — WCAG AA */
  --text-disabled:  #6B7280;   /* was #919EAB — darkened to 4.7:1 on white — WCAG AA for footer copy */

  /* Shadows (light mode) */
  --shadow-card:    0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
  --shadow-sm:      0 1px 2px 0 rgba(145, 158, 171, 0.16);
  --shadow-md:      0 4px 8px 0 rgba(145, 158, 171, 0.16);
  --shadow-lg:      0 8px 16px 0 rgba(145, 158, 171, 0.16);
  --shadow-dialog:  -40px 40px 80px -8px rgba(145, 158, 171, 0.24);

  /* Border */
  --radius-xs:      4px;
  --radius-sm:      8px;
  --radius-md:      12px;
  --radius-lg:      16px;
  --radius-xl:      20px;
  --radius-full:    9999px;

  /* Navigation */
  --nav-height:     72px;
  --nav-bg:         rgba(255, 255, 255, 0.92);
  --nav-border:     var(--divider);
}

/* ---- DARK MODE ---- */
/* Surface colours unified around a warm green-black base to match the        */
/* hero's #09120A — eliminates the blue-slate bleed from Material UI defaults. */
[data-theme="dark"] {
  --vo-navy:        #E8EDF3;   /* VRS navy inverts to near-white in dark */
  --bg:             #0F1510;   /* near-black, faint green warmth (was blue-slate #161C24) */
  --bg-paper:       #141C15;   /* dark forest layer  (was #212B36) */
  --bg-card:        #1B2A1D;   /* raised card surface (was #28343F) */
  --bg-hover:       rgba(24, 178, 75, 0.06);   /* green-tinted hover (was grey) */
  --divider:        rgba(24, 178, 75, 0.10);   /* green-tinted divider (was grey) */

  --text-primary:   #F4FAF5;   /* slightly warm white (was pure #FFFFFF) */
  --text-secondary: rgba(210, 232, 214, 0.80); /* was 0.65 — lifted to 0.80 for WCAG AA 4.5:1 on dark cards */
  --text-disabled:  rgba(196, 220, 200, 0.82); /* was 0.75 — lifted for WCAG AA on #141c15 */

  --shadow-card:    0 0 2px 0 rgba(0, 0, 0, 0.5), 0 12px 24px -4px rgba(0, 0, 0, 0.35);
  --shadow-sm:      0 1px 2px 0 rgba(0, 0, 0, 0.32);
  --shadow-md:      0 4px 8px 0 rgba(0, 0, 0, 0.32);
  --shadow-lg:      0 8px 16px 0 rgba(0, 0, 0, 0.32);
  --shadow-dialog:  -40px 40px 80px -8px rgba(0, 0, 0, 0.64);

  --nav-bg:         rgba(9, 18, 10, 0.92);   /* matches hero base (was blue-slate) */
  --nav-border:     var(--divider);

  --green-lighter:  rgba(24, 178, 75, 0.16);
  --green-alpha:    rgba(24, 178, 75, 0.16);
}

/* ---- RESET & BASE ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Public Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  transition: background 0.3s, color 0.3s;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; }
ul { list-style: none; }

/* ---- TYPOGRAPHY ---- */
h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text-primary);
}

h1 { font-size: clamp(2rem, 5vw, 3.5rem); line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.125rem, 2vw, 1.5rem); }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }

.caption {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 1.1px;
  text-transform: uppercase;
  color: var(--green);
}

/* ---- LAYOUT ---- */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.container--wide {
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.section {
  padding: 96px 0;
}

.section--sm {
  padding: 64px 0;
}

.section--lg {
  padding: 120px 0;
}

/* ---- CARDS ---- */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.card--flat {
  box-shadow: none;
  border: 1px solid var(--divider);
}

.card--green {
  background: var(--green-alpha);
  border: 1px solid rgba(0, 171, 85, 0.2);
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 700;
  line-height: 1.71429;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  white-space: nowrap;
}

.btn-primary {
  background: var(--cta-green);
  color: #fff;
  box-shadow: 0 8px 16px 0 rgba(0, 171, 85, 0.24);
}

.btn-primary:hover {
  background: var(--cta-green-hover);
  box-shadow: 0 12px 24px 0 rgba(0, 171, 85, 0.32);
  transform: translateY(-1px);
}

.btn-outlined {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--divider);
}

.btn-outlined:hover {
  background: var(--bg-hover);
  border-color: var(--text-primary);
}

.btn-ghost {
  background: transparent;
  color: var(--green);
  padding: 6px 12px;
}

.btn-ghost:hover {
  background: var(--green-alpha);
}

.btn-lg {
  padding: 14px 32px;
  font-size: 0.9375rem;
  border-radius: var(--radius-sm);
}

.btn-sm {
  padding: 6px 16px;
  font-size: 0.8125rem;
}

/* ---- NAVIGATION ---- */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-height);
  /* At top: seamlessly blends with dark-forest-green hero grid */
  background: rgba(9, 18, 10, 0.88);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.25s, background 0.25s, box-shadow 0.25s;
}

.nav.scrolled {
  background: var(--nav-bg);
  border-bottom-color: var(--nav-border);
  box-shadow: var(--shadow-sm);
}

/* ── Unscrolled state: dark in dark mode (base rule above handles this) ──
   Nav links always readable over dark hero in dark mode             */
.nav:not(.scrolled) .nav-link {
  color: rgba(255, 255, 255, 0.7);
}

.nav:not(.scrolled) .nav-link:hover,
.nav:not(.scrolled) .nav-link.active {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav:not(.scrolled) .nav-link-ai {
  color: #C4B5FD;  /* was #A78BFA — 5.5:1 on dark hero bg #09120A — WCAG AA */
}

.nav:not(.scrolled) .nav-link-ai:hover,
.nav:not(.scrolled) .nav-link-ai.active {
  color: #DDD6FE;  /* 7.2:1 on dark bg — WCAG AA */
  background: rgba(196, 181, 253, 0.1);
}

.nav:not(.scrolled) .nav-login {
  color: rgba(255, 255, 255, 0.65);
}

.nav:not(.scrolled) .nav-login:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.nav:not(.scrolled) .theme-toggle {
  color: rgba(255, 255, 255, 0.6);
}

.nav:not(.scrolled) .theme-toggle:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

/* ── Light mode nav ──────────────────────────────────────────────
   Unscrolled: translucent light surface over light-mode hero/page-header.
   Scrolled  : opaque white panel (unchanged — already working).       */
[data-theme="light"] .nav {
  background: rgba(244, 246, 248, 0.92); /* --bg-paper at 92% opacity */
  border-bottom-color: rgba(145, 158, 171, 0.16);
}

[data-theme="light"] .nav.scrolled {
  background: rgba(255, 255, 255, 0.95);
}

/* Unscrolled link/control colours in light mode */
[data-theme="light"] .nav:not(.scrolled) .nav-link {
  color: var(--text-secondary);
}

[data-theme="light"] .nav:not(.scrolled) .nav-link:hover,
[data-theme="light"] .nav:not(.scrolled) .nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

[data-theme="light"] .nav:not(.scrolled) .nav-link-ai {
  color: #5B21B6;  /* 6.0:1 on light nav bg — WCAG AA */
}

[data-theme="light"] .nav:not(.scrolled) .nav-link-ai:hover,
[data-theme="light"] .nav:not(.scrolled) .nav-link-ai.active {
  color: #4C1D95;  /* 7.3:1 on light bg — WCAG AAA */
  background: rgba(91, 33, 182, 0.08);
}

[data-theme="light"] .nav:not(.scrolled) .nav-login {
  color: var(--text-secondary);
}

[data-theme="light"] .nav:not(.scrolled) .nav-login:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

[data-theme="light"] .nav:not(.scrolled) .theme-toggle {
  color: var(--text-disabled);
}

[data-theme="light"] .nav:not(.scrolled) .theme-toggle:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 100%;
  max-width: 1400px;
  margin: 0 auto;
  padding: 0 24px;
}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

.nav-logo-img {
  height: 36px;
  width: auto;
}

.nav-logo-text {
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1.2;
  letter-spacing: -0.03em;
  font-family: 'Public Sans', sans-serif;
}

/* ── VRS Logo — SVG injected by js/logo.js ─────────────────
   Light surfaces : vrs-logo-vrs.svg      (dark wordmark)
   Dark surfaces  : vrs-logo-vrs-dark.svg (white wordmark)
   Clock emblem identical in both; no CSS filter required.
   ──────────────────────────────────────────────────────── */
.vrs-logo-wrap {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  flex-shrink: 0;
  background: transparent;
}

.vrs-logo-mark {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  user-select: none;
  line-height: 1;
  background: transparent;
}

/* The injected img element — provided logo asset */
/* background:transparent is belt-and-suspenders: SVGs loaded as <img> should be
   transparent by default per spec, but some browsers paint a background when any
   background hint is present on the SVG root. The SVG files have no background
   attribute; this CSS rule guards against any browser or inherited background. */
.vrs-logo-img-el {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  transition: opacity 0.2s;
}

/* Fixed-nav anchor offset */
section[id],
div[id] {
  scroll-margin-top: calc(var(--nav-height) + 24px);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}

.nav-link {
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: color 0.2s, background 0.2s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-link-ai {
  color: #6D28D9;  /* was #7635DC — 5.2:1 on scrolled-white nav bg — WCAG AA */
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-link-ai:hover,
.nav-link-ai.active {
  color: #6D28D9;
  background: rgba(109, 40, 217, 0.08);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-login {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-xs);
  transition: color 0.2s, background 0.2s;
}

.nav-login:hover {
  color: var(--text-primary);
  background: var(--bg-hover);
}

/* Dark mode toggle */
.theme-toggle {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-xs);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-secondary);
  background: transparent;
  transition: background 0.2s, color 0.2s;
}

.theme-toggle:hover {
  background: var(--bg-hover);
  color: var(--text-primary);
}

/* Mobile toggle */
.nav-mobile-toggle {
  display: none;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  color: var(--text-primary);
  transition: background 0.2s;
}

.nav-mobile-toggle:hover {
  background: var(--bg-hover);
}

/* Mobile menu */
.nav-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--bg);
  z-index: 999;
  flex-direction: column;
  padding: 24px;
  overflow-y: auto;
}

.nav-mobile-menu.open {
  display: flex;
}

.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}

.nav-mobile-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nav-mobile-link {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-secondary);
  transition: all 0.2s;
  border: 1px solid transparent;
}

.nav-mobile-link:hover,
.nav-mobile-link.active {
  color: var(--text-primary);
  background: var(--bg-hover);
}

.nav-mobile-actions {
  margin-top: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid var(--divider);
}

/* ════════════════════════════════════════════════════════════════
   HERO — Tech-grid background  (reference: ODS / VTS grid style)
   Layers (bottom → top):
     0  base dark-forest-green fill  (#0A1209)
     1  line-grid  (fine lines, 40 px cell, green-tinted)
     2  ::before  directional green glow bloom (center-right)
     3  ::after   vignette — darkens left/bottom edges
     4  .hero-grid-scan  animated horizontal scanline
     5  content (z-index 2)
   ════════════════════════════════════════════════════════════════ */

/* ── Scanline keyframe ── */
@keyframes heroScan {
  0%   { transform: translateY(-100%); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(200%); opacity: 0; }
}

/* ── Grid-line fade mask keyframe ── */
@keyframes gridPulse {
  0%, 100% { opacity: 0.93; }
  50%       { opacity: 1;    }
}

.hero {
  padding-top: calc(var(--nav-height) + 80px);
  padding-bottom: 96px;
  position: relative;
  overflow: hidden;

  /* ── Layer 0: base color — deepest forest green-black ── */
  background-color: #09120A;

  /* ── Layer 1: two-axis line grid (40 px cells) ──
     Fine 1 px lines in green at low opacity. A second set of
     thicker 1 px lines every 160 px (×4 grid) provides the
     "major grid" feel seen in the reference. */
  background-image:
    /* major grid: every 160 px, slightly brighter */
    linear-gradient(rgba(24, 178, 75, 0.11) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.11) 1px, transparent 1px),
    /* minor grid: every 40 px */
    linear-gradient(rgba(24, 178, 75, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.055) 1px, transparent 1px);
  background-size:
    160px 160px,
    160px 160px,
    40px  40px,
    40px  40px;
  /* minor grid offset so major-grid lines coincide */
  background-position:
    0 0, 0 0,
    0 0, 0 0;
  animation: gridPulse 8s ease-in-out infinite;
}

/* ── Layer 2: directional green glow bloom ──
   Mimics the luminous emerald bloom visible behind the dashboard
   card in the reference image — strong centre-right, diagonal. */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* primary bloom — large, centre-right */
    radial-gradient(
      ellipse 80% 90% at 78% 38%,
      rgba(24, 178, 75, 0.28) 0%,
      rgba(24, 178, 75, 0.12) 35%,
      transparent 65%
    ),
    /* secondary accent — tighter, near dashboard card */
    radial-gradient(
      ellipse 45% 55% at 85% 55%,
      rgba(47, 195, 90, 0.18) 0%,
      transparent 60%
    ),
    /* warm fill between left copy and right card */
    radial-gradient(
      ellipse 55% 60% at 50% 30%,
      rgba(24, 178, 75, 0.07) 0%,
      transparent 70%
    );
  pointer-events: none;
  z-index: 1;
}

/* ── Layer 3: vignette ──
   Heavy dark overlay on bottom-left corner + top-left corner,
   leaving the centre-right luminous. */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    /* bottom-left corner — deepest shadow */
    radial-gradient(
      ellipse 110% 90% at -5% 110%,
      rgba(4, 7, 5, 0.82) 0%,
      transparent 55%
    ),
    /* top-left corner — lighter shadow */
    radial-gradient(
      ellipse 55% 75% at -5% -5%,
      rgba(4, 7, 5, 0.55) 0%,
      transparent 52%
    ),
    /* bottom edge darkening */
    linear-gradient(
      to top,
      rgba(4, 7, 5, 0.35) 0%,
      transparent 20%
    );
  pointer-events: none;
  z-index: 1;
}

/* ── Ensure content sits above all pseudo-element layers ── */
.hero > * {
  position: relative;
  z-index: 2;
}

/* ── Animated horizontal scanline element ── */
.hero-scanline {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
.hero-scanline::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(24, 178, 75, 0.04) 40%,
    rgba(24, 178, 75, 0.07) 50%,
    rgba(24, 178, 75, 0.04) 60%,
    transparent 100%
  );
  animation: heroScan 12s linear infinite;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE HERO — theme-aware override
   Background switches to var(--bg-paper) (#F4F6F8); all text,
   decorative overlays, and companion elements adapt accordingly.
   Dark mode is UNCHANGED — all rules below are scoped to
   [data-theme="light"] only.
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] .hero {
  /* ── Surface ── */
  background-color: var(--bg-paper);
  background-image: none;         /* remove the green line-grid */
  animation: none;                /* disable gridPulse on light bg */
}

/* Kill the dark green radial bloom (::before) in light mode */
[data-theme="light"] .hero::before {
  background: none;
}

/* Kill the dark corner vignette (::after) in light mode */
[data-theme="light"] .hero::after {
  background: none;
}

/* Hide green grid-dot overlay in light mode */
[data-theme="light"] .hero-grid-dots {
  display: none;
}

/* Hide animated scanline in light mode */
[data-theme="light"] .hero-scanline {
  display: none;
}

/* Mute the bottom separator line to a neutral divider in light mode */
[data-theme="light"] .hero-bottom-line {
  background: var(--divider);
}

/* ── Hero text ── */
/* Light mode: headline green (works on light bg, bold brand statement) */
[data-theme="light"] .hero-title {
  color: var(--green);
}
/* Inner span resets to parent colour — prevents green-on-green in light mode */
[data-theme="light"] .hero-title span {
  color: inherit;
}

[data-theme="light"] .hero-subtitle {
  color: var(--text-secondary);
}

[data-theme="light"] .hero-trust-label {
  color: var(--text-disabled);
}

[data-theme="light"] .trust-logo {
  color: var(--text-disabled);
}
[data-theme="light"] .trust-logo:hover {
  color: var(--text-secondary);
}

/* ── Outlined secondary CTA — dark border on light bg ── */
[data-theme="light"] .hero .btn-outlined {
  border-color: var(--divider);
  color: var(--text-primary);
}
[data-theme="light"] .hero .btn-outlined:hover {
  background: var(--bg-hover);
  border-color: rgba(145, 158, 171, 0.5);
  color: var(--text-primary);
}

/* ── MS Partner strip ── */
[data-theme="light"] .hero .ms-partner-label {
  color: var(--text-disabled) !important;
}
[data-theme="light"] .hero .ms-partner-badge {
  background: rgba(0, 120, 212, 0.08) !important;
  border-color: rgba(0, 120, 212, 0.20) !important;
  color: #0078D4 !important;
}
[data-theme="light"] .hero .ms-partner-badge--isv {
  background: var(--green-alpha) !important;
  border-color: rgba(24, 178, 75, 0.25) !important;
  color: #0F7A32 !important;
}

/* ── Corner dots at major grid intersections (160px × 160px) ──
   Layered on top of the line grid; creates the "crosshair node" detail
   visible in the reference image where major lines intersect.
   Implemented as a separate div so it doesn't conflict with ::before/::after. */
.hero-grid-dots {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  /* Radial dot at each 160px grid intersection */
  background-image: radial-gradient(
    circle,
    rgba(24, 178, 75, 0.30) 1px,
    transparent 1px
  );
  background-size: 160px 160px;
  background-position: 0 0;
}

/* ── Hero bottom separator — thin green gradient line ── */
.hero-bottom-line {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(24, 178, 75, 0.08) 10%,
    rgba(24, 178, 75, 0.35) 40%,
    rgba(24, 178, 75, 0.35) 60%,
    rgba(24, 178, 75, 0.08) 90%,
    transparent 100%
  );
  z-index: 3;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(24, 178, 75, 0.12);
  border: 1px solid rgba(24, 178, 75, 0.35);
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  margin-bottom: 24px;
}

.hero-title {
  margin-bottom: 20px;
  /* Off-white on the dark hero background */
  color: #F0F4F1;
  font-weight: 800;
}

/* Inner span inherits parent colour in dark mode — unified off-white headline */
.hero-title span {
  color: inherit;
}

.hero-subtitle {
  font-size: 1.125rem;
  /* Slightly muted white on dark hero */
  color: rgba(255, 255, 255, 0.65);
  max-width: 560px;
  margin-bottom: 36px;
  line-height: 1.7;
}

.hero-cta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 64px;
}

.hero-trust {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.hero-trust-label {
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
}

.hero-trust-logos {
  display: flex;
  align-items: center;
  gap: 28px;
  flex-wrap: wrap;
}

/* Image logos */
.trust-logo-img {
  display: block;
  height: 22px;
  width: auto;
  max-width: 110px;
  object-fit: contain;
  opacity: 0.55;
  transition: opacity 0.2s;
  filter: brightness(0) invert(1);
}
.trust-logo-img:hover { opacity: 0.85; }

/* Special treatments per logo */
.trust-logo-img.logo-odda {
  filter: brightness(0) invert(1);
  height: 26px;
}
.trust-logo-img.logo-fasader {
  filter: brightness(0) invert(1);
  height: 20px;
}
.trust-logo-img.logo-fomo {
  filter: brightness(0) invert(1);
  height: 18px;
}
/* Hero slogan — always white on dark hero */
.hero-slogan {
  color: var(--green) !important;
}

/* MS partner badges in hero — override for dark bg */
.hero .ms-partner-label {
  color: rgba(255, 255, 255, 0.4) !important;
}

.hero .ms-partner-badge {
  background: rgba(0, 120, 212, 0.15) !important;
  border-color: rgba(0, 120, 212, 0.3) !important;
  color: #60A5FA !important;
}

.hero .ms-partner-badge--isv {
  background: rgba(24, 178, 75, 0.15) !important;
  border-color: rgba(24, 178, 75, 0.3) !important;
  color: var(--green) !important;
}

/* Hero outlined button — white border on dark bg */
.hero .btn-outlined {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.85);
}

.hero .btn-outlined:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.45);
  color: #ffffff;
}

/* Text fallback for logos without image */
.trust-logo {
  font-size: 0.8125rem;
  font-weight: 700;
  /* Always readable on dark hero */
  color: rgba(255, 255, 255, 0.28);
  letter-spacing: 0.5px;
  transition: color 0.2s;
  white-space: nowrap;
}
.trust-logo:hover { color: rgba(255, 255, 255, 0.55); }

/* Hero visual / UI mock */
.hero-visual {
  /* Glass card floating above the grid — matches ODS reference style */
  background: rgba(12, 22, 14, 0.72);
  border-radius: var(--radius-xl);
  border: 1px solid rgba(24, 178, 75, 0.22);
  box-shadow:
    /* outer green glow */
    0 0 0 1px rgba(24, 178, 75, 0.10),
    /* ambient deep shadow */
    0 40px 100px rgba(0, 0, 0, 0.65),
    /* green accent rim light from right */
    4px 0 40px rgba(24, 178, 75, 0.12),
    /* subtle inner highlight at top */
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  overflow: hidden;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  /* Slight upward float animation */
  animation: heroCardFloat 6s ease-in-out infinite;
}

@keyframes heroCardFloat {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}

/* ═══════════════════════════════════════════════════════════════
   HERO VISUAL — Operations Command Centre  (.hv-*)
   ═══════════════════════════════════════════════════════════════ */

/* ── Keyframes ── */
@keyframes hvPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%       { opacity: 0.5; transform: scale(0.85); }
}
@keyframes hvFeedSlide {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes hvBarGrow {
  from { width: 0 !important; }
  to   { /* width set inline */ }
}
@keyframes hvNudgePop {
  0%   { opacity: 0; transform: translateY(6px) scale(0.97); }
  100% { opacity: 1; transform: translateY(0)   scale(1); }
}

/* ── Outer card — glass panel ── */
.hv-card {
  background: rgba(10, 18, 11, 0.78);
  border-radius: 16px;
  border: 1px solid rgba(24, 178, 75, 0.22);
  box-shadow:
    0 0 0 1px rgba(24, 178, 75, 0.09),
    0 40px 100px rgba(0, 0, 0, 0.65),
    4px 0 40px  rgba(24, 178, 75, 0.10),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  overflow: hidden;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  animation: heroCardFloat 6s ease-in-out infinite;
  font-family: 'Public Sans', sans-serif;
}

/* ── Light-mode: kill backdrop-filter so the light hero bg doesn't
   bleed through the semi-transparent card surface.
   Raise background to full opacity — card looks crisp and deep,
   identical in colour to dark mode but with no milky haze.        ── */
[data-theme="light"] .hv-card {
  background: #0A120B;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    0 0 0 1px rgba(24, 178, 75, 0.14),
    0 24px 64px rgba(0, 0, 0, 0.22),
    4px 0 32px rgba(24, 178, 75, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

/* ── Card header ── */
.hv-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(24, 178, 75, 0.07);
  border-bottom: 1px solid rgba(24, 178, 75, 0.13);
}
.hv-header-left,
.hv-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hv-header-title {
  font-size: 0.8125rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  letter-spacing: -0.01em;
}
.hv-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #18B24B;
  box-shadow: 0 0 0 3px rgba(24, 178, 75, 0.25);
  animation: hvPulse 2s ease-in-out infinite;
  flex-shrink: 0;
}
.hv-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  font-variant-numeric: tabular-nums;
}
.hv-badge {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.hv-badge--green {
  background: rgba(24, 178, 75, 0.18);
  color: #2FC35A;
  border: 1px solid rgba(24, 178, 75, 0.3);
}

/* ── KPI row ── */
.hv-kpi-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  padding: 14px 0 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.hv-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px 8px;
}
.hv-kpi--divider {
  border-left: 1px solid rgba(255, 255, 255, 0.07);
}
.hv-kpi-value {
  font-size: 1.4rem;
  font-weight: 800;
  color: #ffffff;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}
.hv-kpi-unit {
  font-size: 0.875rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.6);
}
.hv-kpi-label {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  text-align: center;
}
.hv-kpi-delta {
  font-size: 0.625rem;
  font-weight: 700;
  padding: 1px 5px;
  border-radius: 999px;
}
.hv-delta--up {
  background: rgba(24, 178, 75, 0.15);
  color: #2FC35A;
}
.hv-delta--warn {
  background: rgba(255, 171, 0, 0.15);
  color: #FFAB00;
}

/* ── Body: two-column ── */
.hv-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  min-height: 0;
}

/* ── Shared panel header ── */
.hv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.hv-panel-title {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.hv-panel-value {
  font-size: 0.8125rem;
  font-weight: 700;
  color: #2FC35A;
}

/* ── Chart panel (left) ── */
.hv-chart-panel {
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
}
.hv-chart-wrap {
  padding: 10px 14px 4px;
  flex: 1;
}
.hv-sparkline {
  width: 100%;
  height: 64px;
  display: block;
  overflow: visible;
}
.hv-spark-fill {
  fill: url(#sparkGrad);
}
.hv-spark-line {
  fill: none;
  stroke: url(#sparkLine);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.hv-spark-dot {
  fill: rgba(24, 178, 75, 0.5);
  stroke: none;
}
.hv-spark-dot--active {
  fill: #18B24B;
  filter: drop-shadow(0 0 4px rgba(24, 178, 75, 0.8));
}
.hv-chart-labels {
  display: flex;
  justify-content: space-between;
  padding: 0 2px;
  margin-bottom: 10px;
}
.hv-chart-labels span {
  font-size: 0.5625rem;
  color: rgba(255, 255, 255, 0.3);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ── Mini compliance bars ── */
.hv-mini-bars {
  padding: 0 14px 12px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.hv-mini-bar-row {
  display: flex;
  align-items: center;
  gap: 8px;
}
.hv-mini-bar-label {
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 500;
  width: 88px;
  flex-shrink: 0;
  white-space: nowrap;
}
.hv-mini-bar-track {
  flex: 1;
  height: 4px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 2px;
  overflow: hidden;
}
.hv-mini-bar-fill {
  height: 100%;
  background: #18B24B;
  border-radius: 2px;
  animation: hvBarGrow 1.2s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: 0.6s;
}
.hv-fill--amber { background: #FFAB00; }
.hv-mini-bar-val {
  font-size: 0.625rem;
  font-weight: 700;
  width: 36px;
  text-align: right;
  flex-shrink: 0;
}
.hv-val--green { color: #2FC35A; }
.hv-val--amber { color: #FFAB00; }

/* ── Activity feed (right) ── */
.hv-feed-panel {
  display: flex;
  flex-direction: column;
}
.hv-feed-count {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.35);
}
.hv-feed {
  list-style: none;
  padding: 8px 0 0;
  margin: 0;
  flex: 1;
  overflow: hidden;
}
.hv-feed-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 14px;
  transition: background 0.2s;
}
.hv-feed-item:hover {
  background: rgba(255, 255, 255, 0.03);
}
.hv-feed-item--new {
  animation: hvFeedSlide 0.4s ease both;
  background: rgba(24, 178, 75, 0.06);
}
.hv-feed-icon {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.hv-icon--green  { background: rgba(24, 178, 75, 0.18); color: #2FC35A; }
.hv-icon--amber  { background: rgba(255, 171, 0, 0.15); color: #FFAB00; }
.hv-icon--blue   { background: rgba(24, 144, 255, 0.15); color: #60A5FA; }
.hv-feed-text {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.4;
  flex: 1;
}
.hv-feed-text strong {
  color: rgba(255, 255, 255, 0.92);
  font-weight: 600;
}
.hv-feed-time {
  display: block;
  font-size: 0.625rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 1px;
}

/* ── AI nudge strip ── */
.hv-ai-nudge {
  margin: 6px 14px 10px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: rgba(124, 58, 237, 0.12);
  border: 1px solid rgba(124, 58, 237, 0.25);
  border-radius: 8px;
  cursor: default;
  animation: hvNudgePop 0.5s cubic-bezier(0.22, 1, 0.36, 1) 1s both;
  transition: background 0.2s;
}
.hv-ai-nudge:hover {
  background: rgba(124, 58, 237, 0.18);
}
.hv-ai-icon {
  font-size: 0.875rem;
  color: #A78BFA;
  flex-shrink: 0;
  line-height: 1;
}
.hv-ai-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}
.hv-ai-label {
  font-size: 0.5625rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #A78BFA;
}
.hv-ai-msg {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 500;
  line-height: 1.35;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hv-ai-arrow {
  font-size: 0.75rem;
  color: #A78BFA;
  flex-shrink: 0;
  opacity: 0.7;
}

/* ── Footer status bar ── */
.hv-footer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: rgba(255, 255, 255, 0.025);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}
.hv-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.hv-status--ok { background: #18B24B; }
.hv-footer-text {
  font-size: 0.6875rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 500;
  flex: 1;
}
.hv-footer-logos {
  display: flex;
  align-items: center;
  gap: 4px;
}
.hv-int-pill {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.09);
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* ── Responsive: collapse to single column on narrow ── */
@media (max-width: 480px) {
  .hv-body { grid-template-columns: 1fr; }
  .hv-feed-panel { border-top: 1px solid rgba(255,255,255,0.06); }
  .hv-chart-panel { border-right: none; }
  .hv-kpi-row { grid-template-columns: repeat(2, 1fr); }
  .hv-kpi:nth-child(3) { border-left: none; border-top: 1px solid rgba(255,255,255,0.07); }
  .hv-kpi:nth-child(4) { border-top: 1px solid rgba(255,255,255,0.07); }
  .hv-footer-logos { display: none; }
  .hv-ai-msg { white-space: normal; }
}

/* ── Mobile performance — LCP optimisations (≤ 640 px) ──────────────────
   Rationale: on a 412 px viewport the hv-card stacks below the hero copy
   (grid-2col collapses to 1 col at ≤1024px).  Three GPU-expensive
   properties drive the mobile LCP time from ~2 s to 4–5 s:

   1. backdrop-filter: blur(14px)  — forces a separate composited layer
      and a full-resolution blur pass on every frame.  Removed on mobile;
      the card's solid background colour is imperceptible without the blur.
   2. animation: heroCardFloat     — triggers continuous repaints / layout
      on the entire card.  Disabled on narrow viewports.
   3. animation: gridPulse (hero background) — GPU-animated background-size
      on a gradient grid; disabled on mobile where the grid is barely visible.
   4. hvBarGrow delay              — stagger-in on compliance bars causes a
      partial-paint that counts as a "change" in Lighthouse LCP tracking;
      cleared to instant-render on mobile.
   No visual regressions on desktop (rules are gated behind max-width:640px).
   ──────────────────────────────────────────────────────────────────────── */
@media (max-width: 640px) {
  /* 1. Kill backdrop-filter — eliminate GPU composited blur layer */
  .hv-card,
  .hero-visual {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    /* Raise opacity so card surface stays visually solid without blur */
    background: rgba(10, 18, 11, 0.96) !important;
  }

  /* 2. Stop float animation on the card — no continuous repaints */
  .hv-card,
  .hero-visual {
    animation: none !important;
    transform: none !important;
  }

  /* 3. Stop hero background grid pulse — costly background-size animation */
  .hero {
    animation: none !important;
  }

  /* 4. Compliance bar grow: instant render — no delayed partial paint */
  .hv-mini-bar-fill {
    animation: none !important;
    animation-delay: 0s !important;
  }

  /* 5. Live-dot pulse: keep it but cheap (opacity only, no scale) */
  .hv-live-dot {
    animation: none !important;
    opacity: 1;
  }

  /* 6. AI nudge pop-in: instant — removes a delayed 1s paint */
  .hv-ai-nudge {
    animation: none !important;
    opacity: 1;
    transform: none !important;
  }

  /* 7. Feed slide: instant — removes partial paint on new feed items */
  .hv-feed-item--new {
    animation: none !important;
  }
}

.ui-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.12);
  background: rgba(24, 178, 75, 0.06);
}

.ui-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.9);
}

.ui-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
}

.ui-badge--green {
  background: var(--green-alpha);
  color: var(--green);
}

.ui-badge--orange {
  background: rgba(255, 171, 0, 0.12);
  color: #B76E00;
}

[data-theme="dark"] .ui-badge--orange {
  color: #FFAB00;
}

.ui-badge--purple {
  background: rgba(118, 53, 220, 0.1);
  color: #7635DC;
}

.ui-badge--red {
  background: rgba(255, 86, 48, 0.1);
  color: #B71D18;
}

[data-theme="dark"] .ui-badge--red {
  color: #FF5630;
}

/* Schedule grid */
.schedule-grid {
  padding: 16px 20px;
}

.schedule-days {
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 8px;
}

.schedule-day {
  font-size: 0.6875rem;
  font-weight: 700;
  color: var(--text-disabled);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  text-align: center;
}

.schedule-row {
  display: grid;
  grid-template-columns: 140px repeat(5, 1fr);
  gap: 4px;
  margin-bottom: 4px;
}

.schedule-person {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
}

.avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  font-weight: 700;
  flex-shrink: 0;
  color: #fff;
}

.avatar--green  { background: var(--green); }
.avatar--blue   { background: #1890FF; }
.avatar--purple { background: #7635DC; }
.avatar--orange { background: #FF8B00; }
.avatar--teal   { background: #006C9C; }

.person-name {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-primary);
}

.shift-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 5px 4px;
  border-radius: var(--radius-xs);
  font-size: 0.75rem;
  font-weight: 700;
  min-height: 32px;
}

.shift-D   { background: rgba(0, 171, 85, 0.12); color: var(--green-dark); }
.shift-N   { background: rgba(118, 53, 220, 0.1); color: #7635DC; }
.shift-AL  { background: rgba(255, 171, 0, 0.12); color: #B76E00; }
.shift-OT  { background: rgba(255, 86, 48, 0.1); color: #B71D18; }
.shift-empty { background: transparent; color: var(--text-disabled); }

[data-theme="dark"] .shift-D  { color: var(--green); }
[data-theme="dark"] .shift-AL { color: #FFAB00; }
[data-theme="dark"] .shift-OT { color: #FF5630; }

.schedule-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 12px 20px;
  border-top: 1px solid var(--divider);
}

.metric-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
}

.metric-pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
}

/* ---- SECTION LABELS ---- */
.section-label {
  display: inline-block;
  margin-bottom: 12px;
}

/* ---- FEATURE GRID ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.feature-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.feature-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--green-alpha);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
  font-size: 1.25rem;
  color: var(--green);
}

.feature-icon--purple {
  background: rgba(118, 53, 220, 0.1);
  color: #7635DC;
}

.feature-icon--blue {
  background: rgba(24, 144, 255, 0.1);
  color: #1890FF;
}

.feature-icon--orange {
  background: rgba(255, 171, 0, 0.12);
  color: #B76E00;
}

[data-theme="dark"] .feature-icon--orange { color: #FFAB00; }

.feature-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.feature-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* Feature list */
.feature-list {
  list-style: none;
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

.feature-list li::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--green-alpha);
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M4.5 9.5L7.5 12.5L13.5 6' stroke='%2318B24B' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 14px;
  flex-shrink: 0;
  margin-top: 1px;
}

/* ---- STATS STRIP ---- */
.stats-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--divider);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.stat-item {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
}

.stat-value {
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

/* ---- MODULE SECTIONS ---- */
.module-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.module-section.reverse {
  direction: rtl;
}

.module-section.reverse > * {
  direction: ltr;
}

.module-content {}

.module-content .caption {
  margin-bottom: 8px;
}

.module-content h2 {
  margin-bottom: 16px;
}

.module-content > p {
  font-size: 1rem;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.7;
}

.module-visual {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-dialog);
  overflow: hidden;
}

/* ---- UI COMPONENTS (app mockups) ---- */
.app-panel {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.app-panel-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-paper);
}

.app-panel-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.app-panel-body {
  padding: 16px 18px;
}

.attendance-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.attendance-row:last-child {
  border-bottom: none;
}

.attendance-info {
  flex: 1;
}

.attendance-name {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
}

.attendance-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

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

.status-dot--green  { background: var(--green); }
.status-dot--orange { background: #FFAB00; }
.status-dot--blue   { background: #1890FF; }

/* Compliance table */
.compliance-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
  gap: 12px;
}

.compliance-row:last-child {
  border-bottom: none;
}

.compliance-info {}

.compliance-rule {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.compliance-detail {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Payroll table */
.payroll-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid var(--divider);
}

.payroll-row:last-child { border-bottom: none; }

.payroll-name { font-size: 0.875rem; font-weight: 600; }
.payroll-hours { font-size: 0.8125rem; color: var(--text-secondary); }

/* ---- CHIPS / TAGS ---- */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.chip--green  { background: var(--green-alpha);           color: #0E7A2D; }   /* was #18B24B — 5.1:1 on light bg — WCAG AA */
.chip--orange { background: rgba(255, 171, 0, 0.12);     color: #B76E00; }
.chip--red    { background: rgba(255, 86, 48, 0.1);      color: #B71D18; }
.chip--blue   { background: rgba(24, 144, 255, 0.1);     color: #0C53B7; }
.chip--purple { background: rgba(118, 53, 220, 0.1);     color: #7635DC; }
.chip--grey   { background: rgba(145, 158, 171, 0.16);   color: var(--text-secondary); }

[data-theme="dark"] .chip--orange { color: #FFAB00; }
[data-theme="dark"] .chip--red    { color: #FF5630; }
[data-theme="dark"] .chip--blue   { color: #2D99FF; }
[data-theme="dark"] .chip--green  { color: #4DCC75; }  /* dark mode: light green on dark card — 4.6:1 */

/* ---- TABS ---- */
.tabs {
  display: flex;
  border-bottom: 1px solid var(--divider);
  margin-bottom: 28px;
  overflow-x: auto;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar { display: none; }

.tab {
  padding: 12px 20px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-secondary);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  white-space: nowrap;
  transition: color 0.2s, border-color 0.2s;
  cursor: pointer;
}

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

.tab.active {
  color: var(--text-primary);
  border-bottom-color: var(--text-primary);
}

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

/* ---- SECTION HEADER ---- */
.section-header {
  margin-bottom: 56px;
}

.section-header.centered {
  text-align: center;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}

.section-header h2 {
  margin-bottom: 16px;
}

.section-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
}

/* ---- WHO IT'S FOR ---- */
.industry-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.industry-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.industry-icon {
  font-size: 1.5rem;
  margin-bottom: 14px;
}

.industry-card h3 {
  font-size: 1.0625rem;
  margin-bottom: 8px;
}

.industry-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

/* ---- INTEGRATIONS ---- */
.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 16px;
}

.integration-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  padding: 20px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-sm);
  transition: box-shadow 0.2s, transform 0.2s;
}

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

.integration-logo {
  font-size: 1.5rem;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-paper);
  border-radius: var(--radius-sm);
  border: 1px solid var(--divider);
}

.integration-name {
  font-size: 0.9375rem;
  font-weight: 700;
}

.integration-type {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: -8px;
}

.integration-badge {
  margin-top: auto;
}

/* ---- TESTIMONIALS ---- */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
}

.testimonial-card {
  padding: 28px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

.testimonial-quote {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
  font-style: italic;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.testimonial-avatar {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
}

.testimonial-name {
  font-size: 0.875rem;
  font-weight: 700;
}

.testimonial-role {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.testimonial-tags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-top: 16px;
}

/* ====================================================
   FEATURE LISTING PAGE — feat-block layout
   ==================================================== */

/* Intro grid */
.feat-intro-grid {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 48px;
  align-items: center;
  padding: 40px 48px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
}
@media (max-width: 768px) {
  .feat-intro-grid { grid-template-columns: 1fr; padding: 28px; gap: 24px; }
}
.feat-intro-text h2 {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin-bottom: 14px;
}
.feat-intro-text p {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
}
.feat-intro-stats {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.feat-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 18px;
  background: var(--bg-paper);
  border-radius: var(--radius-md);
  border: 1px solid var(--divider);
}
.feat-stat-value {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.03em;
  min-width: 48px;
  text-align: center;
}
.feat-stat-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* Feature block */
.feat-block {
  padding: 56px 0;
}
.feat-block-header {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}
.feat-block-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}
.feat-block-title {
  font-size: 1.625rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
}
.feat-block-sub {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  margin: 4px 0 0;
}
.feat-block-desc {
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.7;
  max-width: 720px;
  margin-bottom: 32px;
}

/* Feature card grid */
.feat-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
}
.feat-card {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: box-shadow 0.18s, transform 0.18s;
}
.feat-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}
.feat-card-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  color: var(--green);
  margin-bottom: 14px;
  background: color-mix(in srgb, currentColor 10%, transparent);
  border-radius: var(--radius-sm);
}
.feat-card h3,
.feat-card h4 {  /* h4 kept for legacy snapshot pages */
  font-size: 0.9375rem;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}
.feat-card p {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.6;
}
.feat-card-link {
  display: inline-block;
  margin-top: 12px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--green);
  text-decoration: none;
}
.feat-card-link:hover { text-decoration: underline; }

/* Divider between feature blocks */
.feat-divider {
  height: 1px;
  background: var(--divider);
  margin: 0;
}

/* Chip variants */
.chip--purple {
  background: rgba(118,53,220,0.12);
  color: #7635DC;
}

/* ---- FAQ ---- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--bg-card);
  transition: box-shadow 0.2s;
}

.faq-item.open {
  box-shadow: var(--shadow-card);
}

.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px;
  cursor: pointer;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--text-primary);
  gap: 16px;
  user-select: none;
}

.faq-icon {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-paper);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, transform 0.3s;
  font-size: 1rem;
  color: var(--text-secondary);
}

.faq-item.open .faq-icon {
  background: var(--green-alpha);
  color: var(--green);
  transform: rotate(45deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-answer-inner {
  padding: 0 20px 20px;
  font-size: 0.9rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ---- CTA SECTION ---- */
.cta-section {
  background: var(--bg-paper);
  border-radius: var(--radius-xl);
  padding: 80px 64px;
  text-align: center;
  border: 1px solid var(--divider);
}

.cta-section h2 {
  margin-bottom: 16px;
}

.cta-section p {
  color: var(--text-secondary);
  font-size: 1rem;
  max-width: 480px;
  margin: 0 auto 32px;
  line-height: 1.7;
}

.cta-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- FOOTER ---- */
footer {
  background: var(--bg-paper);
  /* Explicit color declaration — footer swaps background token between themes.
     Declaring color here ensures footer text reads correctly against the new
     background regardless of body inheritance order or any future cascade change.
     Light: #F4F6F8 bg → needs #212B36 text (--text-primary)
     Dark:  #141C15 bg → needs #F4FAF5 text (--text-primary, dark-mode value) */
  color: var(--text-primary);
  border-top: 1px solid var(--divider);
  padding: 64px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
  margin-bottom: 48px;
}

.footer-brand p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
  margin-top: 12px;
  max-width: 280px;
}

.footer-col-title {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 16px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  font-size: 0.875rem;
  color: var(--text-secondary);
  transition: color 0.2s;
}

.footer-link:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid var(--divider);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-copy {
  font-size: 0.8125rem;
  color: var(--text-disabled);
}

/* ---- PAGE HEADER ---- */
.page-header {
  padding: calc(var(--nav-height) + 64px) 0 64px;
  background: #09120A;
  border-bottom: 1px solid rgba(24, 178, 75, 0.12);
  margin-bottom: 0;
  position: relative;
  overflow: hidden;
  /* Grid at 25 % hero intensity */
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(24, 178, 75, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.014) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
}

/* Subtle green glow bloom on page headers */
.page-header::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 120% at 80% 50%, rgba(24, 178, 75, 0.12) 0%, transparent 65%),
    radial-gradient(ellipse 50% 80% at -5% 110%, rgba(4, 7, 5, 0.55) 0%, transparent 50%);
  pointer-events: none;
  z-index: 0;
}

/* Ensure page-header children sit above the pseudo-element */
.page-header > * {
  position: relative;
  z-index: 1;
}

/* Text colours always white on dark page-header */
.page-header h1,
.page-header h2 {
  color: #ffffff;
}
.page-header p,
.page-header .caption {
  color: rgba(255, 255, 255, 0.6);
}
.page-header .section-label {
  color: var(--green);
}

.page-header-content {
  max-width: 640px;
}

.page-header h1 {
  margin-bottom: 16px;
}

.page-header p {
  font-size: 1.0625rem;
  color: var(--text-secondary);
  line-height: 1.7;
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — .page-header component override
   Used on: features.html, integrations.html (root), pricing.html
   Dark mode: pixel-identical, zero changes.
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] .page-header {
  background: var(--bg-paper);
  background-image: none;           /* remove green line-grid */
  border-bottom-color: var(--divider);
}

/* Kill green glow bloom pseudo-element */
[data-theme="light"] .page-header::before {
  background: none;
}

/* Text: headings */
[data-theme="light"] .page-header h1,
[data-theme="light"] .page-header h2 {
  color: var(--text-primary);
}

/* Text: body copy and captions */
[data-theme="light"] .page-header p,
[data-theme="light"] .page-header .caption {
  color: var(--text-secondary);
}

/* ---- AI SPECIFIC ---- */
.ai-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full);
  background: rgba(118, 53, 220, 0.1);
  border: 1px solid rgba(118, 53, 220, 0.2);
  font-size: 0.8125rem;
  font-weight: 600;
  color: #7635DC;
  margin-bottom: 24px;
}

.ai-chat {
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--divider);
  overflow: hidden;
}

.ai-chat-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--divider);
  background: var(--bg-paper);
  display: flex;
  align-items: center;
  gap: 10px;
}

.ai-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 8px rgba(0, 171, 85, 0.5);
}

.ai-chat-title {
  font-size: 0.875rem;
  font-weight: 600;
}

.ai-chat-messages {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.chat-msg {
  max-width: 85%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  font-size: 0.875rem;
  line-height: 1.6;
}

.chat-msg--user {
  background: var(--green);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chat-msg--ai {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  color: var(--text-primary);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.ai-suggestion {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.ai-suggestion-icon {
  font-size: 1.25rem;
  flex-shrink: 0;
}

.ai-suggestion-content {}

.ai-suggestion-title {
  font-size: 0.875rem;
  font-weight: 600;
  margin-bottom: 2px;
}

.ai-suggestion-detail {
  font-size: 0.8125rem;
  color: var(--text-secondary);
}

.ai-match {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--green);
}

.match-bar {
  flex: 1;
  height: 4px;
  background: var(--bg-paper);
  border-radius: 2px;
  overflow: hidden;
  max-width: 80px;
}

.match-bar-fill {
  height: 100%;
  background: var(--green);
  border-radius: 2px;
}

.llm-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 20px;
}

.llm-pill {
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.8125rem;
  font-weight: 600;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  color: var(--text-secondary);
  transition: all 0.2s;
}

.llm-pill:hover,
.llm-pill.active {
  background: var(--green-alpha);
  border-color: rgba(0, 171, 85, 0.3);
  color: var(--green);
}

/* ---- PRICING ---- */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  align-items: start;
}

.pricing-card {
  padding: 32px;
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  border: 1px solid var(--divider);
  box-shadow: var(--shadow-card);
}

.pricing-card--featured {
  border-color: var(--green);
  position: relative;
  box-shadow: 0 0 0 3px rgba(0, 171, 85, 0.12), var(--shadow-dialog);
}

.pricing-plan {
  font-size: 0.8125rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.pricing-price {
  font-size: 3rem;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
  margin-bottom: 4px;
}

.pricing-price sup {
  font-size: 1.25rem;
  vertical-align: super;
}

.pricing-period {
  font-size: 0.875rem;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.pricing-divider {
  height: 1px;
  background: var(--divider);
  margin: 24px 0;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 28px;
}

.pricing-features li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.875rem;
  color: var(--text-secondary);
}

.pricing-features li .check {
  color: var(--green);
  font-size: 1rem;
  flex-shrink: 0;
  line-height: 1.4;
}

/* ---- SCROLL REVEAL ---- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Fallback: ensure content is visible if JS observer never fires
   (e.g. in iframes, print, or reduced-motion contexts) */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
}

/* ---- UTILITIES ---- */
/* Screen-reader only — hides text visually while keeping it in the accessibility tree */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.text-green    { color: var(--green); }
.text-muted    { color: var(--text-secondary); }
.text-disabled { color: var(--text-disabled); }
.text-center   { text-align: center; }
.font-bold     { font-weight: 700; }
.mt-4  { margin-top: 4px; }
.mt-8  { margin-top: 8px; }
.mt-12 { margin-top: 12px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-48 { margin-bottom: 48px; }
.gap-8 { gap: 8px; }
.flex  { display: flex; }
.flex-center { display: flex; align-items: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.w-full { width: 100%; }
.overflow-hidden { overflow: hidden; }

/* ---- RESPONSIVE ---- */

/* Prevent horizontal overflow globally */
html, body {
  overflow-x: hidden;
  max-width: 100%;
}

/* Utility responsive classes */
.grid-2col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}

.grid-2col-start {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: start;
}

.grid-3col {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.grid-4col {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

@media (max-width: 1024px) {
  .module-section {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .module-section.reverse {
    direction: ltr;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .stats-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .grid-2col,
  .grid-2col-start {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .grid-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-links,
  .nav-actions .nav-login,
  .nav-actions .btn {
    display: none;
  }

  .nav-mobile-toggle {
    display: flex;
  }

  /* Keep theme toggle visible on mobile */
  .nav-actions .theme-toggle {
    display: flex !important;
  }

  .hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }

  /* AI hero padding on mobile */
  .ai-hero {
    padding-top: calc(var(--nav-height) + 48px);
    padding-bottom: 64px;
  }

  /* Page header adjustments */
  .page-header {
    padding: calc(var(--nav-height) + 40px) 0 40px;
  }

  .section {
    padding: 64px 0;
  }

  .section--sm {
    padding: 48px 0;
  }

  .section--lg {
    padding: 80px 0;
  }

  .cta-section {
    padding: 48px 24px;
  }

  .industry-grid {
    grid-template-columns: 1fr;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .pricing-grid {
    max-width: 100%;
  }

  /* Schedule grid — shrink name column */
  .schedule-days,
  .schedule-row {
    grid-template-columns: 110px repeat(5, 1fr);
    gap: 3px;
  }

  /* Scroll schedule horizontally if needed */
  .schedule-grid,
  .hero-visual .schedule-grid {
    overflow-x: auto;
  }

  /* Module visuals: allow scroll on small screens */
  .module-visual,
  .hero-visual {
    overflow-x: auto;
  }

  /* Grids */
  .grid-2col,
  .grid-2col-start {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .grid-3col {
    grid-template-columns: 1fr;
  }

  .grid-4col {
    grid-template-columns: 1fr 1fr;
  }

  /* Testimonials stack on mobile */
  .testimonial-grid {
    grid-template-columns: 1fr;
  }

  /* Feature grid stacks */
  .feature-grid {
    grid-template-columns: 1fr;
  }

  /* Integration grid */
  .integration-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 480px) {
  h1 { font-size: 1.875rem; }
  h2 { font-size: 1.5rem; }

  .container {
    padding: 0 16px;
  }

  .stats-strip {
    grid-template-columns: 1fr 1fr;
  }

  .hero-cta {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero-trust-logos {
    gap: 12px;
  }

  /* Schedule — compact on very small screens */
  .schedule-days,
  .schedule-row {
    grid-template-columns: 80px repeat(5, 1fr);
    gap: 2px;
  }

  .person-name {
    font-size: 0.6875rem;
  }

  .avatar {
    width: 24px;
    height: 24px;
    font-size: 0.5625rem;
  }

  .shift-cell {
    font-size: 0.625rem;
    padding: 4px 2px;
    min-height: 28px;
  }

  .grid-3col {
    grid-template-columns: 1fr;
  }

  .grid-4col {
    grid-template-columns: 1fr 1fr;
  }

  .cta-section {
    padding: 40px 20px;
  }

  .section-header.centered {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
  }

  /* Pricing cards full width */
  .pricing-grid {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
}

/* ============================================================
   MICROSOFT PARTNER / ISV BADGES
   ============================================================ */
.ms-partner-strip {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 16px;
}

.ms-partner-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.ms-partner-badges {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.ms-partner-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  background: rgba(0, 120, 212, 0.08);
  color: #0078D4;
  border: 1px solid rgba(0, 120, 212, 0.2);
}

.ms-partner-badge--isv {
  background: var(--green-alpha);
  color: var(--green);
  border-color: rgba(24, 178, 75, 0.25);
}

[data-theme="dark"] .ms-partner-badge {
  background: rgba(0, 120, 212, 0.15);
  border-color: rgba(0, 120, 212, 0.3);
}

[data-theme="dark"] .ms-partner-badge--isv {
  background: rgba(24, 178, 75, 0.15);
}

/* ============================================================
   PARTNER SPOTLIGHT (SpareBank 1 Regnskap / Unimicro)
   ============================================================ */
.partner-spotlight {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.partner-spotlight-header {
  margin-bottom: 32px;
}

.partner-spotlight-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--green);
  background: var(--green-alpha);
  padding: 4px 12px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
}

.partner-spotlight-header h2 {
  margin-bottom: 12px;
}

.partner-spotlight-header p {
  color: var(--text-secondary);
  font-size: 1rem;
  line-height: 1.7;
  max-width: 680px;
}

.partner-spotlight-body {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
  align-items: start;
}

.partner-spotlight-logos {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-logo-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-md);
}

.partner-logo-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  flex-shrink: 0;
}

.partner-logo-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
}

.partner-logo-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
}

.partner-spotlight-plus {
  text-align: center;
  font-size: 1.25rem;
  color: var(--text-disabled);
  padding: 4px;
}

.partner-spotlight-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.partner-spotlight-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.9375rem;
  color: var(--text-secondary);
  line-height: 1.6;
}

.partner-check {
  color: var(--green);
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
}

.partner-spotlight-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

@media (max-width: 768px) {
  .partner-spotlight {
    padding: 24px;
  }

  .partner-spotlight-body {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* ============================================================
   LANGUAGE TOGGLE
   ============================================================ */
/* ── Language flag picker ───────────────────────────── */
.lang-picker {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.lang-picker-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 8px;
  border-radius: var(--radius-full);
  border: 1px solid var(--divider);
  background: var(--bg-paper);
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: border-color 0.15s, background 0.15s;
}

.lang-picker-btn:hover {
  border-color: var(--green);
  background: var(--bg-card);
  color: var(--text-primary);
}

.lang-picker-flag {
  font-size: 1.05rem;
  line-height: 1;
  display: block;
}

.lang-picker-chevron {
  color: var(--text-disabled);
  transition: transform 0.2s;
  flex-shrink: 0;
}

.lang-picker.open .lang-picker-chevron {
  transform: rotate(180deg);
}

/* Dropdown */
.lang-picker-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 130px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 4px;
  list-style: none;
  margin: 0;
  z-index: 999;
}

.lang-picker.open .lang-picker-dropdown {
  display: block;
  animation: langDropIn 0.15s ease;
}

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

.lang-picker-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  cursor: pointer;
  font-size: 0.83rem;
  font-weight: 500;
  color: var(--text-secondary);
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}

.lang-picker-option:hover {
  background: var(--bg-paper);
  color: var(--text-primary);
}

.lang-picker-option.selected {
  color: var(--text-primary);
  font-weight: 700;
}

.lang-picker-option.selected::after {
  content: '✓';
  margin-left: auto;
  font-size: 0.75rem;
  color: var(--green);
}

.lang-picker-option-flag {
  font-size: 1.05rem;
  line-height: 1;
}

.lang-picker-option-label {
  flex: 1;
}

/* ============================================================
   VRS — TECH-GRID DESIGN SYSTEM
   Professional dark grid aesthetic inspired by ODS/VTS sister sites.
   Adds: dark sections, dot-grid backgrounds, glassmorphism cards,
   gradient borders, glow accents, bento grids, and blueprint lines.
   ============================================================ */

/* ── New CSS Variables for Tech-Grid Theme ─────────────────── */
:root {
  --grid-dot-color:     rgba(145, 158, 171, 0.18);
  --grid-line-color:    rgba(145, 158, 171, 0.08);
  --glass-bg:           rgba(255, 255, 255, 0.06);
  --glass-border:       rgba(255, 255, 255, 0.12);
  --glow-green:         0 0 40px rgba(24, 178, 75, 0.25), 0 0 80px rgba(24, 178, 75, 0.08);
  --glow-green-sm:      0 0 20px rgba(24, 178, 75, 0.2);
  --dark-section-bg:    #0B130C;   /* green-black (was blue-black #0D1117) */
  --dark-section-mid:   #0F1710;   /* dark forest (was #111827) */
  --dark-card-bg:       rgba(24, 178, 75, 0.04);   /* faint green tint on dark cards */
  --dark-card-border:   rgba(24, 178, 75, 0.12);   /* green-tinted card borders */
  --tg-accent-purple:   #7C3AED;
  --tg-accent-cyan:     #06B6D4;   /* kept — only used for AI accent, never as a base */
  --tg-gradient:        linear-gradient(135deg, var(--green) 0%, #2FC35A 100%); /* all-green gradient (removed cyan-blue end) */
}

[data-theme="dark"] {
  --grid-dot-color:     rgba(255, 255, 255, 0.06);
  --grid-line-color:    rgba(255, 255, 255, 0.04);
  --glass-bg:           rgba(255, 255, 255, 0.04);
  --glass-border:       rgba(255, 255, 255, 0.08);
}

/* ── DOT-GRID BACKGROUND PATTERN ──────────────────────────── */
.bg-dot-grid {
  background-image: radial-gradient(circle, var(--grid-dot-color) 1px, transparent 1px);
  background-size: 24px 24px;
}

/* ── SECTION-DARK: always dark regardless of site theme ─────── */
/* These are intentional "tech block" sections, dark in both modes */
.section-dark,
.section-dark-mid {
  --text-primary: #F8FAFC;
  --text-secondary: rgba(248, 250, 252, 0.6);
  --text-disabled: rgba(248, 250, 252, 0.35);
  --divider: rgba(255, 255, 255, 0.08);
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-paper: rgba(255, 255, 255, 0.03);
  --bg-hover: rgba(255, 255, 255, 0.06);
  --green-alpha: rgba(24, 178, 75, 0.15);
  --shadow-card: 0 4px 24px rgba(0, 0, 0, 0.3);
}

.bg-line-grid {
  background-image:
    linear-gradient(var(--grid-line-color) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line-color) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ══════════════════════════════════════════════════════════════
   SITE-WIDE GRID TEXTURE SYSTEM
   Three intensity levels — same line-grid DNA as the hero,
   applied selectively to dark surfaces only.

   Level 1 — Hero          (full intensity, defined on .hero itself)
   Level 2 — section-dark  (40 % of hero intensity)
   Level 3 — cta-dark /    (25 % of hero intensity)
             page-header /
             ai-hero /
             stories-hero
   ══════════════════════════════════════════════════════════════ */

/* ── DARK SECTION (blueprint/tech background) ──────────────── */
.section-dark {
  background: var(--dark-section-bg);
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

/* Replace old dot-grid with line-grid at 40 % hero intensity */
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(24, 178, 75, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.022) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
  pointer-events: none;
}

.section-dark .caption {
  color: var(--green);
}

.section-dark .section-header h2,
.section-dark h2,
.section-dark h3 {
  color: #F8FAFC;
}

.section-dark .section-header p,
.section-dark p {
  color: rgba(248, 250, 252, 0.6);
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — .section-dark override
   In light mode, sections using .section-dark switch to the standard
   light surface. Dark mode is completely unchanged.
   Covers: Outcomes Strip, "Hvor det brukes / Where it runs",
   and any other .section-dark on the homepage.
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] .section-dark {
  background: var(--bg-paper);
  color: var(--text-primary);
  /* Restore the scoped token overrides that .section-dark set for dark surfaces */
  --text-primary:   #212B36;
  --text-secondary: #637381;
  --text-disabled:  #919EAB;
  --divider:        rgba(145, 158, 171, 0.24);
  --bg-card:        #FFFFFF;
  --bg-paper:       #F4F6F8;
  --bg-hover:       rgba(145, 158, 171, 0.08);
  --green-alpha:    rgba(24, 178, 75, 0.12);
  --shadow-card:    0 0 2px 0 rgba(145, 158, 171, 0.2), 0 12px 24px -4px rgba(145, 158, 171, 0.12);
}

/* Kill the green line-grid overlay in light mode */
[data-theme="light"] .section-dark::before {
  background-image: none;
}

/* Text: headings and paragraphs */
[data-theme="light"] .section-dark h2,
[data-theme="light"] .section-dark h3,
[data-theme="light"] .section-dark .section-header h2 {
  color: var(--text-primary);
}

[data-theme="light"] .section-dark p,
[data-theme="light"] .section-dark .section-header p {
  color: var(--text-secondary);
}

/* Tech cards inside section-dark: use standard surface in light mode */
[data-theme="light"] .section-dark .tech-card {
  background: var(--bg-card);
  border-color: var(--divider);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .section-dark .tech-card:hover {
  background: var(--bg-card);
  border-color: rgba(24, 178, 75, 0.25);
  box-shadow: 0 4px 24px rgba(24, 178, 75, 0.08), var(--shadow-card);
}

/* Tech card inner text */
[data-theme="light"] .section-dark .tech-card h3 {
  color: var(--text-primary);
}

[data-theme="light"] .section-dark .tech-card p {
  color: var(--text-secondary);
}

/* Metrics band (Outcomes Strip uses .metrics-band--dark with white text) */
[data-theme="light"] .section-dark .metric-value {
  color: var(--text-primary);
}

[data-theme="light"] .section-dark .metric-label {
  color: var(--text-secondary);
}

/* Override any residual white/alpha text inside .section-dark children */
[data-theme="light"] .section-dark [style*="color:rgba(255,255,255"],
[data-theme="light"] .section-dark [style*="color: rgba(255,255,255"] {
  color: var(--text-disabled) !important;
}

/* Mid-dark section */
.section-dark-mid {
  background: var(--dark-section-mid);
  color: #F8FAFC;
  position: relative;
  overflow: hidden;
}

.section-dark-mid::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(24, 178, 75, 0.022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.022) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
  pointer-events: none;
}

/* ── GLASSMORPHISM CARD ─────────────────────────────────────── */
.glass-card {
  background: var(--glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-xl);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.glass-card:hover {
  border-color: rgba(24, 178, 75, 0.35);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(24, 178, 75, 0.15);
  transform: translateY(-3px);
}

/* Dark-surface glass card */
.dark-card {
  background: var(--dark-card-bg);
  border: 1px solid var(--dark-card-border);
  border-radius: var(--radius-xl);
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
  position: relative;
  overflow: hidden;
}

.dark-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(24, 178, 75, 0.5), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.dark-card:hover {
  border-color: rgba(24, 178, 75, 0.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), 0 0 0 1px rgba(24, 178, 75, 0.1);
  transform: translateY(-3px);
}

.dark-card:hover::before {
  opacity: 1;
}

/* ── GRADIENT BORDER CARD ───────────────────────────────────── */
.grad-border-card {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  position: relative;
  z-index: 0;
  transition: transform 0.25s, box-shadow 0.25s;
}

.grad-border-card::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  background: linear-gradient(135deg, rgba(24, 178, 75, 0.4), rgba(6, 182, 212, 0.2), rgba(124, 58, 237, 0.2));
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}

.grad-border-card:hover::before {
  opacity: 1;
}

.grad-border-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-dialog);
}

/* ── BENTO GRID ─────────────────────────────────────────────── */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  grid-auto-rows: minmax(80px, auto);
  gap: 16px;
}

.bento-cell {
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 28px;
  overflow: hidden;
  position: relative;
  transition: border-color 0.3s, box-shadow 0.3s;
}

.bento-cell:hover {
  border-color: rgba(24, 178, 75, 0.3);
  box-shadow: var(--shadow-card);
}

/* Span classes */
.bento-span-4 { grid-column: span 4; }
.bento-span-6 { grid-column: span 6; }
.bento-span-8 { grid-column: span 8; }
.bento-span-12 { grid-column: span 12; }
.bento-row-2 { grid-row: span 2; }

@media (max-width: 1024px) {
  .bento-span-4, .bento-span-6 { grid-column: span 6; }
  .bento-span-8 { grid-column: span 12; }
}

@media (max-width: 640px) {
  .bento-grid { grid-template-columns: 1fr; }
  .bento-span-4, .bento-span-6, .bento-span-8, .bento-span-12 { grid-column: span 1; }
  .bento-row-2 { grid-row: span 1; }
}

/* ── TECH FEATURE GRID (3-col with glow) ───────────────────── */
.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

@media (max-width: 600px) {
  .tech-grid { grid-template-columns: 1fr; }
}

.tech-card {
  padding: 28px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

/* Top accent line */
.tech-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 2px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.tech-card:hover {
  border-color: rgba(24, 178, 75, 0.25);
  box-shadow: 0 4px 24px rgba(24, 178, 75, 0.08), var(--shadow-card);
  transform: translateY(-3px);
}

.tech-card:hover::after {
  opacity: 1;
}

/* Dark-surface tech card */
.section-dark .tech-card,
.section-dark-mid .tech-card {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .tech-card:hover,
.section-dark-mid .tech-card:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(24, 178, 75, 0.4);
  box-shadow: 0 4px 32px rgba(24, 178, 75, 0.12);
}

/* Tech card icon */
.tech-card-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 18px;
  position: relative;
  flex-shrink: 0;
}

.tech-card-icon--green {
  background: rgba(24, 178, 75, 0.12);
  color: var(--green);
  border: 1px solid rgba(24, 178, 75, 0.2);
}

.tech-card-icon--blue {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.2);
}

.tech-card-icon--purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.2);
}

.tech-card-icon--orange {
  background: rgba(251, 146, 60, 0.1);
  color: #FB923C;
  border: 1px solid rgba(251, 146, 60, 0.2);
}

.tech-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.tech-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

.section-dark .tech-card h3,
.section-dark-mid .tech-card h3 {
  color: #F8FAFC;
}

.section-dark .tech-card p,
.section-dark-mid .tech-card p {
  color: rgba(248, 250, 252, 0.55);
}

/* ── GLOW ACCENT ────────────────────────────────────────────── */
.glow-accent {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(80px);
  opacity: 0.35;
}

.glow-accent--green {
  background: radial-gradient(circle, #18B24B 0%, transparent 70%);
}

.glow-accent--cyan {
  background: radial-gradient(circle, #06B6D4 0%, transparent 70%);
}

.glow-accent--purple {
  background: radial-gradient(circle, #7C3AED 0%, transparent 70%);
}

/* ── TERMINAL / CODE BLOCK ──────────────────────────────────── */
.tech-terminal {
  background: #0B130C;   /* green-black (was blue-black) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  overflow: hidden;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.tech-terminal-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 14px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.terminal-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.terminal-dot--red    { background: #FF5F57; }
.terminal-dot--yellow { background: #FFBD2E; }
.terminal-dot--green  { background: #28CA41; }

.tech-terminal-title {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.4);
  margin-left: 8px;
  font-family: inherit;
}

.tech-terminal-body {
  padding: 20px 24px;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.75);
}

.terminal-comment { color: rgba(255, 255, 255, 0.3); }
.terminal-key { color: #79C0FF; }
.terminal-string { color: #A5D6FF; }
.terminal-number { color: #56D364; }
.terminal-keyword { color: #FF7B72; }

/* ── NUMBERED STEP / HOW IT WORKS ───────────────────────────── */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  position: relative;
}

/* Connector line between steps */
.steps-grid::before {
  content: '';
  position: absolute;
  top: 28px;
  left: calc(16.66% + 24px);
  right: calc(16.66% + 24px);
  height: 1px;
  background: linear-gradient(90deg, var(--green), rgba(24, 178, 75, 0.2));
  pointer-events: none;
}

@media (max-width: 768px) {
  .steps-grid { grid-template-columns: 1fr; }
  .steps-grid::before { display: none; }
}

.step-card {
  padding: 28px 24px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}

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

.step-number {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--green-alpha);
  border: 2px solid rgba(24, 178, 75, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.125rem;
  font-weight: 800;
  color: var(--green);
  margin: 0 auto 18px;
  position: relative;
  z-index: 1;
}

.step-card h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 10px;
}

.step-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── METRICS / STATS BAND ───────────────────────────────────── */
.metrics-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--divider);
}

@media (max-width: 768px) {
  .metrics-band { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .metrics-band { grid-template-columns: 1fr 1fr; }
}

.metric-item {
  background: var(--bg-card);
  padding: 32px 24px;
  text-align: center;
  position: relative;
}

.metric-value {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  margin-bottom: 8px;
  letter-spacing: -0.03em;
}

.metric-label {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.5;
  font-weight: 500;
}

/* Dark variant of metrics band */
.metrics-band--dark {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.08);
}

.metrics-band--dark .metric-item {
  background: transparent;
}

.metrics-band--dark .metric-label {
  color: rgba(255, 255, 255, 0.5);
}

/* Light-mode override for .metrics-band--dark */
[data-theme="light"] .metrics-band--dark {
  background: var(--divider);
  border-color: var(--divider);
}

[data-theme="light"] .metrics-band--dark .metric-item {
  background: var(--bg-card);
}

[data-theme="light"] .metrics-band--dark .metric-label {
  color: var(--text-secondary);
}

/* ── GRADIENT HEADLINE ──────────────────────────────────────── */
.text-gradient {
  background: linear-gradient(135deg, var(--green) 0%, #0EA5E9 60%, #7C3AED 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.text-gradient--green {
  background: linear-gradient(135deg, var(--green) 0%, #4ade80 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── PILL / TAG ENHANCEMENTS ────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.pill--green {
  background: rgba(24, 178, 75, 0.1);
  color: var(--green);
  border: 1px solid rgba(24, 178, 75, 0.25);
}

.pill--cyan {
  background: rgba(6, 182, 212, 0.1);
  color: #06B6D4;
  border: 1px solid rgba(6, 182, 212, 0.25);
}

.pill--purple {
  background: rgba(124, 58, 237, 0.1);
  color: #7C3AED;
  border: 1px solid rgba(124, 58, 237, 0.25);
}

.pill--white {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* ── FEATURE CALLOUT ROW ────────────────────────────────────── */
.feature-callout {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 16px 20px;
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  transition: border-color 0.2s, background 0.2s;
}

.feature-callout:hover {
  border-color: rgba(24, 178, 75, 0.3);
  background: var(--green-alpha);
}

.feature-callout-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: var(--green-alpha);
  color: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 1rem;
}

.feature-callout-title {
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.feature-callout-desc {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* Dark surface callout */
.section-dark .feature-callout,
.section-dark-mid .feature-callout {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(255, 255, 255, 0.08);
}

.section-dark .feature-callout:hover,
.section-dark-mid .feature-callout:hover {
  border-color: rgba(24, 178, 75, 0.35);
  background: rgba(24, 178, 75, 0.08);
}

.section-dark .feature-callout-title,
.section-dark-mid .feature-callout-title {
  color: #F8FAFC;
}

/* ── CARD GRID (enhanced 2-col and 3-col) ───────────────────── */
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

@media (max-width: 1024px) {
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
  .card-grid-2, .card-grid-3, .card-grid-4 { grid-template-columns: 1fr; }
}

/* ── HORIZONTAL DIVIDER WITH LABEL ─────────────────────────── */
.section-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 48px 0;
}

.section-divider::before,
.section-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--divider);
}

.section-divider-label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-disabled);
  white-space: nowrap;
}

/* ── HOVER LINK WITH ARROW ──────────────────────────────────── */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--green);
  transition: gap 0.2s;
}

.link-arrow::after {
  content: '→';
  transition: transform 0.2s;
}

.link-arrow:hover {
  gap: 10px;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

/* ── ANIMATED COUNTER (for stat numbers) ────────────────────── */
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.stat-animate {
  animation: countUp 0.5s ease forwards;
}

/* ── REVEAL ON SCROLL ────────────────────────────────────────── */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ── HIGHLIGHTED STAT BADGE ─────────────────────────────────── */
.stat-badge {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-lg);
  text-align: center;
  min-width: 120px;
  transition: transform 0.25s, box-shadow 0.25s;
}

.stat-badge:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-badge-value {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--green);
  line-height: 1;
  letter-spacing: -0.03em;
  margin-bottom: 4px;
}

.stat-badge-label {
  font-size: 0.75rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── ENHANCED HERO GRADIENT ─────────────────────────────────── */
.hero-glow {
  position: absolute;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  pointer-events: none;
  filter: blur(120px);
  opacity: 0.18;
}

.hero-glow--green {
  background: var(--green);
  top: -200px;
  right: -100px;
}

.hero-glow--blue {
  background: #0EA5E9;
  bottom: -200px;
  left: -100px;
  opacity: 0.1;
}

/* ── NAV ENHANCEMENT — active indicator dot ─────────────────── */
.nav-link.active::before,
.nav-mobile-link.active::before {
  content: '';
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--green);
  margin-right: 5px;
  vertical-align: middle;
  margin-bottom: 1px;
}

/* ── FEATURE ICON SIZES (supplement existing) ───────────────── */
.feature-icon--lg {
  width: 56px;
  height: 56px;
  font-size: 1.5rem;
}

/* ── SUBTLE SECTION INSET BOX ───────────────────────────────── */
.inset-box {
  background: var(--bg-paper);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  padding: 40px;
}

@media (max-width: 640px) {
  .inset-box { padding: 24px; }
}

/* ── CODE SNIPPET ────────────────────────────────────────────── */
.code-snippet {
  background: #0B130C;   /* green-black (was blue-black) */
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  font-family: 'JetBrains Mono', 'Fira Code', 'Courier New', monospace;
  font-size: 0.8125rem;
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.8);
  overflow-x: auto;
}

/* ── DARK SECTION TEXT CORRECTIONS ──────────────────────────── */
.section-dark h1,
.section-dark h2,
.section-dark h3,
.section-dark h4,
.section-dark h5 {
  color: #F8FAFC;
}

.section-dark-mid h1,
.section-dark-mid h2,
.section-dark-mid h3,
.section-dark-mid h4,
.section-dark-mid h5 {
  color: #F8FAFC;
}

.section-dark .chip--grey,
.section-dark .chip {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
}

/* Feature list in dark sections */
.section-dark .feature-list li,
.section-dark-mid .feature-list li {
  color: rgba(248, 250, 252, 0.6);
}

.section-dark .feature-list li::before,
.section-dark-mid .feature-list li::before {
  background-color: rgba(24, 178, 75, 0.15);
}

/* Dark card feature list text */
.dark-card .feature-list li {
  color: rgba(248, 250, 252, 0.6);
}

.dark-card .feature-list li::before {
  background-color: rgba(24, 178, 75, 0.15);
}

/* Dark section link colors */
.section-dark a.btn-ghost,
.section-dark-mid a.btn-ghost {
  color: rgba(248, 250, 252, 0.8);
}

/* Tech card in dark sections — link override */
.section-dark .tech-card .btn-ghost,
.section-dark-mid .tech-card .btn-ghost {
  opacity: 0.85;
}

/* ── BENEFITS STRIP (value pillars) — ENHANCED ──────────────── */
.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

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

.benefit-card {
  padding: 32px 28px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.benefit-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--green), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}

.benefit-card:hover {
  border-color: rgba(24, 178, 75, 0.25);
  box-shadow: 0 8px 32px rgba(24, 178, 75, 0.06);
  transform: translateY(-3px);
}

.benefit-card:hover::before {
  opacity: 1;
}

.benefit-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--green-alpha);
  border: 1px solid rgba(24, 178, 75, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 20px;
  color: var(--green);
}

.benefit-card h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}

.benefit-card p {
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.65;
}

/* ── INTEGRATION CARD — ENHANCED ────────────────────────────── */
.integration-card--tech {
  padding: 24px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.integration-card--tech::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at top right, rgba(24, 178, 75, 0.04), transparent 60%);
  opacity: 0;
  transition: opacity 0.3s;
  pointer-events: none;
}

.integration-card--tech:hover {
  border-color: rgba(24, 178, 75, 0.28);
  box-shadow: 0 4px 24px rgba(24, 178, 75, 0.08);
  transform: translateY(-3px);
}

.integration-card--tech:hover::after {
  opacity: 1;
}

/* ── TESTIMONIAL — ENHANCED ─────────────────────────────────── */
.testimonial-card--tech {
  padding: 32px;
  background: var(--bg-card);
  border: 1px solid var(--divider);
  border-radius: var(--radius-xl);
  position: relative;
  overflow: hidden;
  transition: border-color 0.3s, box-shadow 0.3s;
}

/* Large quotation mark */
.testimonial-card--tech::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 5rem;
  font-family: Georgia, serif;
  line-height: 1;
  color: var(--green);
  opacity: 0.07;
  pointer-events: none;
}

.testimonial-card--tech:hover {
  border-color: rgba(24, 178, 75, 0.25);
  box-shadow: 0 8px 32px rgba(24, 178, 75, 0.06);
}

/* ── PRICING CARD — FEATURED TECH STYLE ────────────────────── */
.pricing-card--tech-featured {
  background: linear-gradient(145deg, rgba(24, 178, 75, 0.06) 0%, var(--bg-card) 60%);
  border-color: rgba(24, 178, 75, 0.4);
  box-shadow: 0 0 0 1px rgba(24, 178, 75, 0.15), 0 20px 60px rgba(24, 178, 75, 0.1);
}

/* ── CTA SECTION DARK ────────────────────────────────────────── */
.cta-dark {
  background: #0B130C;   /* green-black (was blue-black) */
  border-radius: var(--radius-xl);
  padding: 80px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.cta-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.028) 1px, transparent 1px),
    linear-gradient(rgba(24, 178, 75, 0.014) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.014) 1px, transparent 1px);
  background-size: 160px 160px, 160px 160px, 40px 40px, 40px 40px;
  pointer-events: none;
}

.cta-dark::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 70% 80% at 75% 40%, rgba(24, 178, 75, 0.14) 0%, transparent 65%),
    radial-gradient(ellipse 50% 60% at 20% 80%, rgba(4, 7, 5, 0.6) 0%, transparent 60%);
  pointer-events: none;
}

.cta-dark h2 {
  color: #F8FAFC;
  position: relative;
  z-index: 1;
}

.cta-dark p {
  color: rgba(248, 250, 252, 0.6);
  position: relative;
  z-index: 1;
}

.cta-dark .cta-btns {
  position: relative;
  z-index: 1;
}

@media (max-width: 640px) {
  .cta-dark { padding: 48px 24px; }
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — .cta-dark full override
   Switch to a light surface so the component is fully theme-aware.
   Dark mode: pixel-identical to before (no rules changed above).
   ══════════════════════════════════════════════════════════════════ */
[data-theme="light"] .cta-dark {
  background: var(--bg-paper);
  border-color: var(--divider);
}
[data-theme="light"] .cta-dark::before {
  background-image: none;
}
[data-theme="light"] .cta-dark::after {
  background: none;
}
[data-theme="light"] .cta-dark h2 {
  color: var(--text-primary);
}
[data-theme="light"] .cta-dark p {
  color: var(--text-secondary);
}
/* Secondary outlined button inside the CTA — white border becomes dark */
[data-theme="light"] .cta-dark .btn-outlined {
  border-color: var(--divider) !important;
  color: var(--text-primary) !important;
}
[data-theme="light"] .cta-dark .btn-outlined:hover {
  background: var(--bg-hover) !important;
}

/* ── INTEGRATION HUB VISUAL ─────────────────────────────────── */
.hub-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: relative;
  padding: 32px;
}

.hub-center {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--green-alpha);
  border: 2px solid rgba(24, 178, 75, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  position: relative;
  z-index: 1;
  box-shadow: var(--glow-green-sm);
}

.hub-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(24, 178, 75, 0.15);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* ── SMOOTH SCROLL IMPROVEMENT ───────────────────────────────── */
html {
  scroll-behavior: smooth;
}

/* ── SECTION TRANSITION ARC ──────────────────────────────────── */
.section-arc-top {
  position: relative;
}

.section-arc-top::before {
  content: '';
  position: absolute;
  top: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: inherit;
  clip-path: ellipse(55% 100% at 50% 0%);
  z-index: 1;
}

/* ── TECH BADGE (NEW!) ───────────────────────────────────────── */
.tech-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  background: linear-gradient(135deg, rgba(24, 178, 75, 0.1), rgba(6, 182, 212, 0.1));
  border: 1px solid rgba(24, 178, 75, 0.25);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: var(--green);
  text-transform: uppercase;
}

.tech-badge--new::before {
  content: '●';
  font-size: 0.5rem;
  color: var(--green);
  animation: pulse 1.5s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

/* ── LOGO / BRAND STRIP ──────────────────────────────────────── */
.brand-strip {
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  opacity: 0.45;
  transition: opacity 0.2s;
}

.brand-strip:hover { opacity: 0.65; }

/* ── SECTION BACKGROUND ALTERNATION ─────────────────────────── */
.section-alt {
  background: var(--bg-paper);
}

[data-theme="dark"] .section-alt {
  background: rgba(255, 255, 255, 0.02);
}

/* ══════════════════════════════════════════════════════════════════
   LIGHT MODE — inline white-opacity btn-outlined overrides
   Several sections use inline style="border-color:rgba(255,255,255,…)"
   on .btn-outlined elements written for dark backgrounds. In light mode
   these become invisible. Override them to use the standard token values.
   Specifically:
     #ai teaser secondary CTA ("See the AI direction")
   Dark mode: no change (the inline styles win in dark mode as before).
   ══════════════════════════════════════════════════════════════════ */

[data-theme="light"] #ai .btn-outlined {
  border-color: var(--divider) !important;
  color: var(--text-primary) !important;
}
[data-theme="light"] #ai .btn-outlined:hover {
  background: var(--bg-hover) !important;
  border-color: rgba(145, 158, 171, 0.5) !important;
  color: var(--text-primary) !important;
}

/* ── RESPONSIVE HELPERS ──────────────────────────────────────── */
@media (max-width: 768px) {
  .tech-grid { grid-template-columns: 1fr; }
  .benefit-grid { grid-template-columns: 1fr; }
  .steps-grid { grid-template-columns: 1fr; }
  .metrics-band { grid-template-columns: repeat(2, 1fr); }
  .card-grid-3 { grid-template-columns: 1fr; }
  .card-grid-4 { grid-template-columns: repeat(2, 1fr); }
}

/* ── EXISTING CARD HOVER UPGRADE ────────────────────────────── */
.feature-card {
  transition: border-color 0.3s, box-shadow 0.3s, transform 0.25s;
}

.feature-card:hover {
  border-color: rgba(24, 178, 75, 0.2);
  box-shadow: 0 4px 24px rgba(24, 178, 75, 0.06), var(--shadow-card);
}

/* Upgrade existing industry-card */
.industry-card {
  position: relative;
  overflow: hidden;
}

.industry-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--green), rgba(6, 182, 212, 0.5));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.3s ease;
}

.industry-card:hover::after {
  transform: scaleX(1);
}

/* ── EXISTING HERO UPGRADE (additive only) ──────────────────── */
/* hero-grid-overlay and hero-spotlight are now handled by
   .hero::before and .hero::after pseudo-elements above.
   These divs are kept in HTML for legacy but hidden. */
.hero-grid-overlay,
.hero-spotlight {
  display: none;
}

/* ── SCROLLBAR STYLE (cosmetic) ──────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: var(--divider);
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-disabled);
}

/* ============================================================
   VRS — FEATURE MODULE SHOWCASE COMPONENTS
   Interactive illustrated UI panels for each feature block.
   ============================================================ */

/* ── Shared shell ─────────────────────────────────────────── */
.fmod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24, 178, 75, 0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(24, 178, 75, 0.06),
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 4px 16px rgba(0, 0, 0, 0.3);
  position: relative;
}

/* faint grid overlay inside the shell */
.fmod-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.04) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── App chrome: sidebar + main ───────────────────────────── */
.fmod-layout {
  display: grid;
  grid-template-columns: 1fr;
  min-height: 420px;
  position: relative;
  z-index: 1;
}

/* Sidebar */
.fmod-sidebar {
  background: rgba(7, 12, 8, 0.85);
  border-right: 1px solid rgba(24, 178, 75, 0.10);
  padding: 20px 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fmod-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 16px 16px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  margin-bottom: 8px;
}

.fmod-sidebar-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #18B24B 0%, #12893A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.fmod-sidebar-info {
  min-width: 0;
}

.fmod-sidebar-name {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F4FAF5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmod-sidebar-role {
  font-size: 0.625rem;
  color: rgba(196, 220, 200, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmod-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 16px;
  font-size: 0.75rem;
  color: rgba(196, 220, 200, 0.55);
  border-radius: 0;
  cursor: default;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.fmod-nav-item i {
  width: 14px;
  text-align: center;
  font-size: 0.75rem;
  flex-shrink: 0;
}

.fmod-nav-item.active {
  background: rgba(24, 178, 75, 0.14);
  color: #18B24B;
  font-weight: 600;
  border-left: 2px solid #18B24B;
  padding-left: 14px;
}

.fmod-nav-item:not(.active):hover {
  background: rgba(24, 178, 75, 0.05);
  color: rgba(196, 220, 200, 0.8);
}

/* ── Main content area ────────────────────────────────────── */
.fmod-main {
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Top bar */
.fmod-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 20px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.10);
  background: rgba(11, 19, 12, 0.6);
  flex-shrink: 0;
  gap: 12px;
  flex-wrap: wrap;
}

.fmod-topbar-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.fmod-page-title {
  font-size: 1rem;
  font-weight: 800;
  color: #F4FAF5;
  letter-spacing: -0.02em;
}

/* Small segmented control tabs */
.fmod-seg {
  display: flex;
  background: rgba(24, 178, 75, 0.06);
  border: 1px solid rgba(24, 178, 75, 0.12);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.fmod-seg-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  color: rgba(196, 220, 200, 0.5);
  padding: 3px 10px;
  border-radius: 5px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  user-select: none;
}

.fmod-seg-btn.active {
  background: #18B24B;
  color: #fff;
}

.fmod-topbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.fmod-btn {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.fmod-btn--outline {
  border-color: rgba(24, 178, 75, 0.25);
  color: rgba(196, 220, 200, 0.7);
  background: transparent;
}

.fmod-btn--red {
  background: #B71D18;
  color: #fff;
  border-color: #B71D18;
}

.fmod-btn--red:hover { background: #D32F2F; }

.fmod-btn--green {
  background: #18B24B;
  color: #fff;
}

/* ── TAB PANELS (view switcher) ─────────────────────────── */
.fmod-tab-panels {
  flex: 1;
  overflow: hidden;
}

.fmod-panel {
  display: none;
  height: 100%;
}

.fmod-panel.active {
  display: flex;
  flex-direction: column;
}

/* ── PANEL 1: Week Timer View ─────────────────────────────── */
.fmod-week-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  background: rgba(11, 19, 12, 0.5);
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  flex-shrink: 0;
}

.fmod-person-selector {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: #F4FAF5;
  font-weight: 600;
}

.fmod-person-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4DCC75 0%, #18B24B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
}

.fmod-week-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.6875rem;
  color: rgba(196, 220, 200, 0.6);
}

.fmod-week-label {
  font-weight: 700;
  color: #18B24B;
  font-size: 0.75rem;
}

.fmod-today-badge {
  background: rgba(24, 178, 75, 0.15);
  border: 1px solid rgba(24, 178, 75, 0.3);
  color: #18B24B;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  letter-spacing: 0.04em;
}

/* Week grid */
.fmod-week-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr) 180px;
  flex: 1;
  overflow: hidden;
  border-top: none;
}

.fmod-day-col {
  border-right: 1px solid rgba(24, 178, 75, 0.07);
  display: flex;
  flex-direction: column;
  min-height: 260px;
}

.fmod-day-col:last-child { border-right: none; }

.fmod-day-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.07);
  flex-shrink: 0;
}

.fmod-day-name {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(196, 220, 200, 0.45);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.fmod-day-date {
  font-size: 0.75rem;
  font-weight: 700;
  color: rgba(196, 220, 200, 0.7);
  margin-top: 2px;
}

.fmod-day-header.today .fmod-day-name { color: #18B24B; }
.fmod-day-header.today .fmod-day-date { color: #18B24B; }

.fmod-day-metrics {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.05);
}

.fmod-metric-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex-shrink: 0;
}

.fmod-metric-dot--green { background: #18B24B; }
.fmod-metric-dot--amber { background: #FFAB00; }

.fmod-metric-val {
  font-size: 0.625rem;
  color: rgba(196, 220, 200, 0.5);
  font-weight: 500;
}

.fmod-day-body {
  flex: 1;
  padding: 10px 12px;
  position: relative;
}

/* Active task card */
.fmod-task-card {
  background: rgba(14, 22, 15, 0.9);
  border: 1px solid rgba(24, 178, 75, 0.18);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  margin-bottom: 8px;
}

.fmod-task-project {
  font-size: 0.625rem;
  color: rgba(196, 220, 200, 0.5);
  margin-bottom: 3px;
}

.fmod-task-label {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #F4FAF5;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.fmod-task-label::before {
  content: '';
  width: 2px;
  height: 12px;
  background: #18B24B;
  border-radius: 2px;
  flex-shrink: 0;
}

/* Live timer bar */
.fmod-timer-bar {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #B71D18;
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.6875rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.04em;
  cursor: default;
}

.fmod-timer-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: fmodTimerPulse 1s ease-in-out infinite;
  flex-shrink: 0;
}

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

/* Day add button */
.fmod-day-add {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(24, 178, 75, 0.3);
  color: rgba(24, 178, 75, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.625rem;
  cursor: pointer;
  transition: all 0.15s;
}

.fmod-day-add:hover {
  background: rgba(24, 178, 75, 0.15);
  color: #18B24B;
  border-color: #18B24B;
}

/* Summary column */
.fmod-summary-col {
  background: rgba(7, 12, 8, 0.6);
  border-left: 1px solid rgba(24, 178, 75, 0.10);
  display: flex;
  flex-direction: column;
}

.fmod-summary-header {
  padding: 10px 14px 8px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.07);
  font-size: 0.75rem;
  font-weight: 700;
  color: #F4FAF5;
}

.fmod-summary-body {
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}

.fmod-kpi-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.fmod-kpi {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.fmod-kpi-icon {
  width: 24px;
  height: 24px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  margin-bottom: 2px;
}

.fmod-kpi-icon--green { background: rgba(24,178,75,0.15); color: #18B24B; }
.fmod-kpi-icon--amber { background: rgba(255,171,0,0.15); color: #FFAB00; }
.fmod-kpi-icon--blue  { background: rgba(24,144,255,0.12); color: #60A5FA; }
.fmod-kpi-icon--red   { background: rgba(183,29,24,0.15); color: #FF5630; }

.fmod-kpi-val {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F4FAF5;
}

.fmod-kpi-label {
  font-size: 0.5625rem;
  color: rgba(196, 220, 200, 0.45);
  text-align: center;
}

.fmod-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.fmod-pill {
  font-size: 0.5625rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(24, 178, 75, 0.2);
  color: rgba(196, 220, 200, 0.5);
  background: rgba(24, 178, 75, 0.06);
}

/* ── PANEL 2: Live Attendance View ────────────────────────── */
.fmod-attendance-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: rgba(11, 19, 12, 0.5);
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  flex-shrink: 0;
  flex-wrap: wrap;
}

.fmod-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(24, 178, 75, 0.06);
  border: 1px solid rgba(24, 178, 75, 0.12);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.6875rem;
  color: rgba(196, 220, 200, 0.4);
  min-width: 120px;
}

.fmod-filter-chip {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(24, 178, 75, 0.06);
  border: 1px solid rgba(24, 178, 75, 0.12);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 0.6875rem;
  color: rgba(196, 220, 200, 0.55);
  cursor: default;
}

.fmod-filter-chip i { font-size: 0.5625rem; }

.fmod-att-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  padding: 0 20px;
  background: rgba(11, 19, 12, 0.3);
  flex-shrink: 0;
}

.fmod-att-tab {
  font-size: 0.75rem;
  font-weight: 600;
  color: rgba(196, 220, 200, 0.45);
  padding: 8px 16px;
  border-bottom: 2px solid transparent;
  cursor: default;
  transition: color 0.15s, border-color 0.15s;
}

.fmod-att-tab.active {
  color: #18B24B;
  border-bottom-color: #18B24B;
}

.fmod-table-wrap {
  flex: 1;
  overflow-y: auto;
}

.fmod-table {
  width: 100%;
  border-collapse: collapse;
}

.fmod-table thead th {
  text-align: left;
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(196, 220, 200, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  background: rgba(7, 12, 8, 0.5);
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  position: sticky;
  top: 0;
}

.fmod-table tbody tr {
  border-bottom: 1px solid rgba(24, 178, 75, 0.05);
  transition: background 0.12s;
}

.fmod-table tbody tr:hover {
  background: rgba(24, 178, 75, 0.04);
}

.fmod-table td {
  padding: 9px 16px;
  font-size: 0.6875rem;
  color: rgba(196, 220, 200, 0.8);
  vertical-align: middle;
}

.fmod-emp-cell {
  display: flex;
  align-items: center;
  gap: 9px;
}

.fmod-emp-avatar {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
  position: relative;
}

.fmod-status-ring {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 1.5px solid #0B130C;
}

.fmod-status-ring--green  { background: #18B24B; }
.fmod-status-ring--red    { background: #FF5630; }
.fmod-status-ring--amber  { background: #FFAB00; }

.fmod-emp-info { display: flex; flex-direction: column; gap: 1px; }
.fmod-emp-name { font-size: 0.6875rem; font-weight: 600; color: #F4FAF5; }
.fmod-emp-email { font-size: 0.5625rem; color: rgba(196, 220, 200, 0.4); }

.fmod-time-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.6875rem; font-weight: 500; }
.fmod-time-cell--in  { color: #18B24B; }
.fmod-time-cell--out { color: rgba(196, 220, 200, 0.55); }

.fmod-duration-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(24, 178, 75, 0.12);
  color: #18B24B;
  border: 1px solid rgba(24, 178, 75, 0.2);
}

.fmod-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.625rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  background: rgba(183, 29, 24, 0.15);
  color: #FF5630;
  border: 1px solid rgba(183, 29, 24, 0.3);
}

.fmod-live-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #FF5630;
  animation: fmodTimerPulse 1.2s ease-in-out infinite;
}

/* ── PANEL 3: Dashboard / Summary ─────────────────────────── */
.fmod-dash-kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid rgba(24, 178, 75, 0.08);
  flex-shrink: 0;
}

.fmod-dash-kpi {
  padding: 14px 16px;
  border-right: 1px solid rgba(24, 178, 75, 0.06);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.fmod-dash-kpi:last-child { border-right: none; }

.fmod-dash-kpi-label {
  font-size: 0.5625rem;
  color: rgba(196, 220, 200, 0.4);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.fmod-dash-kpi-val {
  font-size: 1.0625rem;
  font-weight: 800;
  color: #F4FAF5;
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.fmod-dash-kpi-delta {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 600;
  color: #18B24B;
}

.fmod-dash-kpi-delta--amber { color: #FFAB00; }

/* Dashboard body: chart + today panel */
.fmod-dash-body {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 200px;
  overflow: hidden;
  min-height: 0;
}

.fmod-chart-area {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
}

.fmod-chart-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #F4FAF5;
}

.fmod-chart-wrap {
  flex: 1;
  position: relative;
  min-height: 120px;
}

/* SVG chart inside .fmod-chart-wrap canvas placeholder */
.fmod-chart-canvas {
  width: 100%;
  height: 100%;
}

/* Mini user table */
.fmod-user-table-wrap {
  padding: 14px 20px;
  overflow-y: auto;
}

.fmod-user-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 0;
  border-bottom: 1px solid rgba(24, 178, 75, 0.05);
}

.fmod-user-row:last-child { border-bottom: none; }

.fmod-user-name-cell {
  flex: 1;
  min-width: 0;
}

.fmod-user-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #F4FAF5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmod-user-meta {
  font-size: 0.5625rem;
  color: rgba(196, 220, 200, 0.4);
}

.fmod-user-hours {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #18B24B;
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* Today panel (right of chart) */
.fmod-today-panel {
  border-left: 1px solid rgba(24, 178, 75, 0.08);
  background: rgba(7, 12, 8, 0.4);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.fmod-today-head {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(24, 178, 75, 0.07);
}

.fmod-today-title {
  font-size: 0.6875rem;
  font-weight: 700;
  color: #F4FAF5;
}

.fmod-today-sub {
  font-size: 0.5625rem;
  color: rgba(196, 220, 200, 0.4);
  margin-top: 2px;
}

.fmod-checkin-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px 0;
}

.fmod-checkin-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px;
  transition: background 0.12s;
}

.fmod-checkin-item:hover { background: rgba(24, 178, 75, 0.04); }

.fmod-checkin-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.5rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.fmod-checkin-name {
  font-size: 0.625rem;
  font-weight: 600;
  color: #F4FAF5;
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fmod-checkin-time {
  font-size: 0.5625rem;
  color: rgba(196, 220, 200, 0.4);
  font-family: 'JetBrains Mono', monospace;
  white-space: nowrap;
}

/* ── View switcher pill tabs (outside shell, above) ───────── */
.fmod-view-tabs {
  display: flex;
  gap: 4px;
  margin-bottom: 16px;
}

.fmod-view-tab {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(24, 178, 75, 0.15);
  color: rgba(196, 220, 200, 0.5);
  cursor: pointer;
  transition: all 0.18s;
  background: transparent;
  user-select: none;
}

.fmod-view-tab i { font-size: 0.6875rem; }

.fmod-view-tab:hover {
  border-color: rgba(24, 178, 75, 0.35);
  color: rgba(196, 220, 200, 0.8);
}

.fmod-view-tab.active {
  background: rgba(24, 178, 75, 0.12);
  border-color: rgba(24, 178, 75, 0.4);
  color: #18B24B;
}

/* ── Responsive collapse ─────────────────────────────────── */
@media (max-width: 860px) {
  .fmod-week-grid { grid-template-columns: repeat(3, 1fr); }
  .fmod-day-col:nth-child(n+4):not(.fmod-summary-col) { display: none; }
  .fmod-dash-kpi-strip { grid-template-columns: repeat(2, 1fr); }
  .fmod-dash-body { grid-template-columns: 1fr; }
  .fmod-today-panel { display: none; }
}

@media (max-width: 560px) {
  .fmod-week-grid { grid-template-columns: repeat(2, 1fr) 140px; }
  .fmod-day-col:nth-child(n+3):not(:nth-last-child(-n+2)) { display: none; }
}

/* ============================================================
   FMOD — LIGHT MODE OVERRIDES
   All fmod colours are hardcoded dark. Override every token
   when the site is in its default (light) state.
   Strategy: target :root that does NOT have data-theme="dark",
   plus an explicit [data-theme="light"] for safety.
   ============================================================ */

:root:not([data-theme="dark"]) .fmod-shell,
[data-theme="light"] .fmod-shell {
  background: #F0F5F1;
  border-color: rgba(24, 178, 75, 0.18);
  box-shadow:
    0 0 0 1px rgba(24, 178, 75, 0.08),
    0 12px 40px rgba(0, 0, 0, 0.10),
    0 2px 8px rgba(0, 0, 0, 0.05);
}

:root:not([data-theme="dark"]) .fmod-shell::before,
[data-theme="light"] .fmod-shell::before {
  background-image:
    linear-gradient(rgba(24, 178, 75, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24, 178, 75, 0.06) 1px, transparent 1px);
}

:root:not([data-theme="dark"]) .fmod-topbar,
[data-theme="light"] .fmod-topbar {
  background: rgba(255, 255, 255, 0.9);
  border-bottom-color: rgba(24, 178, 75, 0.12);
}

:root:not([data-theme="dark"]) .fmod-page-title,
[data-theme="light"] .fmod-page-title { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-seg,
[data-theme="light"] .fmod-seg {
  background: rgba(24, 178, 75, 0.07);
  border-color: rgba(24, 178, 75, 0.18);
}

:root:not([data-theme="dark"]) .fmod-seg-btn,
[data-theme="light"] .fmod-seg-btn { color: #637381; }

:root:not([data-theme="dark"]) .fmod-btn--outline,
[data-theme="light"] .fmod-btn--outline {
  border-color: rgba(24, 178, 75, 0.28);
  color: #637381;
}

:root:not([data-theme="dark"]) .fmod-week-header,
[data-theme="light"] .fmod-week-header {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(24, 178, 75, 0.10);
}

:root:not([data-theme="dark"]) .fmod-person-selector,
[data-theme="light"] .fmod-person-selector { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-week-nav,
[data-theme="light"] .fmod-week-nav { color: #637381; }

:root:not([data-theme="dark"]) .fmod-day-col,
[data-theme="light"] .fmod-day-col {
  border-right-color: rgba(24, 178, 75, 0.10);
  background: #fff;
}

:root:not([data-theme="dark"]) .fmod-day-header,
[data-theme="light"] .fmod-day-header {
  border-bottom-color: rgba(24, 178, 75, 0.08);
}

:root:not([data-theme="dark"]) .fmod-day-name,
[data-theme="light"] .fmod-day-name { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-day-date,
[data-theme="light"] .fmod-day-date { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-day-header.today .fmod-day-name,
:root:not([data-theme="dark"]) .fmod-day-header.today .fmod-day-date,
[data-theme="light"] .fmod-day-header.today .fmod-day-name,
[data-theme="light"] .fmod-day-header.today .fmod-day-date { color: #18B24B; }

:root:not([data-theme="dark"]) .fmod-day-metrics,
[data-theme="light"] .fmod-day-metrics { border-bottom-color: rgba(0,0,0,0.04); }

:root:not([data-theme="dark"]) .fmod-metric-val,
[data-theme="light"] .fmod-metric-val { color: #637381; }

:root:not([data-theme="dark"]) .fmod-task-card,
[data-theme="light"] .fmod-task-card {
  background: #F4F6F8;
  border-color: rgba(24, 178, 75, 0.22);
}

:root:not([data-theme="dark"]) .fmod-task-project,
[data-theme="light"] .fmod-task-project { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-task-label,
[data-theme="light"] .fmod-task-label { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-day-add,
[data-theme="light"] .fmod-day-add {
  border-color: rgba(24, 178, 75, 0.25);
  color: rgba(24, 178, 75, 0.55);
}

:root:not([data-theme="dark"]) .fmod-summary-col,
[data-theme="light"] .fmod-summary-col {
  background: #F4F6F8;
  border-left-color: rgba(24, 178, 75, 0.12);
}

:root:not([data-theme="dark"]) .fmod-summary-header,
[data-theme="light"] .fmod-summary-header {
  color: #212B36;
  border-bottom-color: rgba(24, 178, 75, 0.08);
}

:root:not([data-theme="dark"]) .fmod-kpi-val,
[data-theme="light"] .fmod-kpi-val { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-kpi-label,
[data-theme="light"] .fmod-kpi-label { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-pill,
[data-theme="light"] .fmod-pill {
  color: #637381;
  border-color: rgba(24, 178, 75, 0.18);
  background: rgba(24, 178, 75, 0.06);
}

:root:not([data-theme="dark"]) .fmod-attendance-toolbar,
[data-theme="light"] .fmod-attendance-toolbar {
  background: rgba(255, 255, 255, 0.75);
  border-bottom-color: rgba(24, 178, 75, 0.10);
}

:root:not([data-theme="dark"]) .fmod-search,
[data-theme="light"] .fmod-search {
  background: rgba(24, 178, 75, 0.05);
  border-color: rgba(24, 178, 75, 0.15);
  color: #919EAB;
}

:root:not([data-theme="dark"]) .fmod-filter-chip,
[data-theme="light"] .fmod-filter-chip {
  background: rgba(24, 178, 75, 0.05);
  border-color: rgba(24, 178, 75, 0.15);
  color: #637381;
}

:root:not([data-theme="dark"]) .fmod-att-tabs,
[data-theme="light"] .fmod-att-tabs {
  background: rgba(255, 255, 255, 0.6);
  border-bottom-color: rgba(24, 178, 75, 0.08);
}

:root:not([data-theme="dark"]) .fmod-att-tab,
[data-theme="light"] .fmod-att-tab { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-att-tab.active,
[data-theme="light"] .fmod-att-tab.active { color: #18B24B; }

:root:not([data-theme="dark"]) .fmod-table thead th,
[data-theme="light"] .fmod-table thead th {
  color: #919EAB;
  background: rgba(240, 245, 241, 0.95);
  border-bottom-color: rgba(24, 178, 75, 0.10);
}

:root:not([data-theme="dark"]) .fmod-table tbody tr,
[data-theme="light"] .fmod-table tbody tr { border-bottom-color: rgba(0,0,0,0.05); }

:root:not([data-theme="dark"]) .fmod-table tbody tr:hover,
[data-theme="light"] .fmod-table tbody tr:hover { background: rgba(24,178,75,0.03); }

:root:not([data-theme="dark"]) .fmod-table td,
[data-theme="light"] .fmod-table td { color: #637381; }

:root:not([data-theme="dark"]) .fmod-emp-name,
[data-theme="light"] .fmod-emp-name { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-emp-email,
[data-theme="light"] .fmod-emp-email { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-status-ring,
[data-theme="light"] .fmod-status-ring { border-color: #fff; }

:root:not([data-theme="dark"]) .fmod-dash-kpi-strip,
[data-theme="light"] .fmod-dash-kpi-strip { border-bottom-color: rgba(24,178,75,0.10); }

:root:not([data-theme="dark"]) .fmod-dash-kpi,
[data-theme="light"] .fmod-dash-kpi { border-right-color: rgba(0,0,0,0.06); }

:root:not([data-theme="dark"]) .fmod-dash-kpi-label,
[data-theme="light"] .fmod-dash-kpi-label { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-dash-kpi-val,
[data-theme="light"] .fmod-dash-kpi-val { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-chart-title,
[data-theme="light"] .fmod-chart-title { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-user-row,
[data-theme="light"] .fmod-user-row { border-bottom-color: rgba(0,0,0,0.05); }

:root:not([data-theme="dark"]) .fmod-user-name,
[data-theme="light"] .fmod-user-name { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-user-meta,
[data-theme="light"] .fmod-user-meta { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-today-panel,
[data-theme="light"] .fmod-today-panel {
  background: rgba(244, 246, 248, 0.9);
  border-left-color: rgba(24, 178, 75, 0.10);
}

:root:not([data-theme="dark"]) .fmod-today-head,
[data-theme="light"] .fmod-today-head { border-bottom-color: rgba(24,178,75,0.08); }

:root:not([data-theme="dark"]) .fmod-today-title,
[data-theme="light"] .fmod-today-title { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-today-sub,
[data-theme="light"] .fmod-today-sub { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-checkin-item:hover,
[data-theme="light"] .fmod-checkin-item:hover { background: rgba(24,178,75,0.04); }

:root:not([data-theme="dark"]) .fmod-checkin-name,
[data-theme="light"] .fmod-checkin-name { color: #212B36; }

:root:not([data-theme="dark"]) .fmod-checkin-time,
[data-theme="light"] .fmod-checkin-time { color: #919EAB; }

:root:not([data-theme="dark"]) .fmod-view-tab,
[data-theme="light"] .fmod-view-tab {
  border-color: rgba(24, 178, 75, 0.18);
  color: #637381;
}

:root:not([data-theme="dark"]) .fmod-view-tab:hover,
[data-theme="light"] .fmod-view-tab:hover {
  border-color: rgba(24, 178, 75, 0.4);
  color: #212B36;
}

:root:not([data-theme="dark"]) .fmod-view-tab.active,
[data-theme="light"] .fmod-view-tab.active {
  background: rgba(24, 178, 75, 0.10);
  border-color: rgba(24, 178, 75, 0.35);
  color: #18B24B;
}

/* ============================================================
   PLANNER MODULE SHOWCASE  (plmod-*)
   Gantt-style resource planner with Planlegging / Bemanning views
   ============================================================ */

/* ── Shell ─────────────────────────────────────────────────── */
.plmod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow:
    0 0 0 1px rgba(24,178,75,0.06),
    0 24px 60px rgba(0,0,0,0.45),
    0 4px 16px rgba(0,0,0,0.3);
  position: relative;
  display: flex;
  flex-direction: column;
}

.plmod-shell::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(24,178,75,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.035) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  z-index: 0;
}

/* ── Top tab bar ───────────────────────────────────────────── */
.plmod-tabbar {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(24,178,75,0.10);
  background: rgba(7,12,8,0.7);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
  gap: 6px;
}

.plmod-tab {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  color: rgba(196,220,200,0.45);
  cursor: pointer;
  transition: all 0.15s;
  user-select: none;
}

.plmod-tab:hover { color: rgba(196,220,200,0.8); }

.plmod-tab.active {
  background: #18B24B;
  color: #fff;
  border-color: #18B24B;
}

.plmod-tabbar-right {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.plmod-week-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  color: rgba(196,220,200,0.55);
}

.plmod-week-nav-btn {
  width: 22px; height: 22px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24,178,75,0.18);
  color: rgba(196,220,200,0.5);
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6rem;
  cursor: pointer;
  transition: all 0.15s;
}

.plmod-week-nav-btn:hover {
  border-color: rgba(24,178,75,0.4);
  color: #18B24B;
}

.plmod-today-btn {
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: #18B24B;
  color: #fff;
  cursor: pointer;
  user-select: none;
}

/* ── Toolbar (filters) ─────────────────────────────────────── */
.plmod-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(24,178,75,0.08);
  background: rgba(9,16,10,0.5);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.plmod-search {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(24,178,75,0.05);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.6875rem;
  color: rgba(196,220,200,0.35);
  min-width: 100px;
}

.plmod-dropdown {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(24,178,75,0.05);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.6875rem;
  color: rgba(196,220,200,0.45);
  cursor: default;
}

.plmod-dropdown i { font-size: 0.5rem; opacity: 0.6; }

.plmod-date-range {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(24,178,75,0.05);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.6875rem;
  color: rgba(196,220,200,0.55);
  margin-left: auto;
}

/* ── Sub-tabs (Daglig / Ukentlig / Månedlig) ───────────────── */
.plmod-subtabs {
  display: flex;
  gap: 2px;
  padding: 6px 16px 0;
  background: rgba(9,16,10,0.4);
  border-bottom: 1px solid rgba(24,178,75,0.07);
  position: relative;
  z-index: 2;
}

.plmod-subtab {
  font-size: 0.6875rem;
  font-weight: 600;
  padding: 5px 12px;
  color: rgba(196,220,200,0.4);
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  user-select: none;
}

.plmod-subtab.active {
  color: #18B24B;
  border-bottom-color: #18B24B;
}

/* ── Main grid layout ──────────────────────────────────────── */
.plmod-grid-wrap {
  display: flex;
  flex: 1;
  overflow: hidden;
  position: relative;
  z-index: 1;
  min-height: 340px;
}

/* Left frozen row-label panel */
.plmod-row-panel {
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid rgba(24,178,75,0.10);
  background: rgba(7,12,8,0.6);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Right scrollable grid */
.plmod-gantt {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
  display: flex;
  flex-direction: column;
}

/* ── Week / day column header ─────────────────────────────── */
.plmod-col-header {
  flex-shrink: 0;
  border-bottom: 1px solid rgba(24,178,75,0.08);
  background: rgba(7,12,8,0.7);
}

.plmod-week-row {
  display: flex;
  border-bottom: 1px solid rgba(24,178,75,0.06);
}

.plmod-week-label {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(196,220,200,0.5);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 0 3px 8px;
  border-right: 1px solid rgba(24,178,75,0.07);
}

.plmod-day-headers {
  display: flex;
}

.plmod-day-th {
  text-align: center;
  padding: 5px 4px 4px;
  border-right: 1px solid rgba(24,178,75,0.06);
  min-width: 88px;
  flex-shrink: 0;
}

.plmod-day-th.today {
  background: rgba(24,178,75,0.08);
}

.plmod-day-name {
  font-size: 0.5625rem;
  font-weight: 700;
  color: rgba(196,220,200,0.45);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plmod-day-date {
  font-size: 0.625rem;
  font-weight: 700;
  color: rgba(196,220,200,0.65);
  margin-top: 1px;
}

.plmod-day-cap {
  font-size: 0.5rem;
  color: rgba(196,220,200,0.3);
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
}

.plmod-day-th.today .plmod-day-name,
.plmod-day-th.today .plmod-day-date { color: #18B24B; }

/* Header spacer above row panel */
.plmod-row-panel-header {
  flex-shrink: 0;
  background: rgba(7,12,8,0.7);
  border-bottom: 1px solid rgba(24,178,75,0.08);
  padding: 6px 14px;
  display: flex;
  align-items: flex-end;
  gap: 8px;
}

.plmod-search-sm {
  display: flex;
  align-items: center;
  gap: 5px;
  background: rgba(24,178,75,0.05);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.5625rem;
  color: rgba(196,220,200,0.3);
  flex: 1;
}

/* ── Grid body rows ────────────────────────────────────────── */
.plmod-body {
  display: flex;
  flex: 1;
  overflow: hidden;
}

.plmod-row-labels {
  display: flex;
  flex-direction: column;
  width: 200px;
  flex-shrink: 0;
  border-right: 1px solid rgba(24,178,75,0.10);
  background: rgba(7,12,8,0.5);
  overflow: hidden;
}

.plmod-row-label {
  min-height: 60px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(24,178,75,0.06);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  flex-shrink: 0;
}

.plmod-row-person {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plmod-row-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; font-weight: 700; color: #fff;
  flex-shrink: 0;
}

.plmod-row-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #F4FAF5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plmod-row-dept {
  font-size: 0.5625rem;
  color: rgba(196,220,200,0.4);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-left: 34px;
}

/* Allocation bar */
.plmod-alloc-bar-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding-left: 34px;
  margin-top: 2px;
}

.plmod-alloc-bar-track {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(24,178,75,0.12);
  overflow: hidden;
  max-width: 80px;
}

.plmod-alloc-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: #18B24B;
  transition: width 0.4s ease;
}

.plmod-alloc-bar-fill--over { background: #FF5630; }

.plmod-alloc-pct {
  font-size: 0.5rem;
  color: rgba(196,220,200,0.4);
  white-space: nowrap;
}

/* Project-mode row label (Bemanning) */
.plmod-row-project {
  display: flex;
  align-items: center;
  gap: 7px;
}

.plmod-row-proj-dot {
  width: 8px; height: 8px;
  border-radius: 2px;
  flex-shrink: 0;
}

.plmod-row-proj-name {
  font-size: 0.6875rem;
  font-weight: 600;
  color: #F4FAF5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.plmod-row-proj-sub {
  font-size: 0.5625rem;
  color: rgba(196,220,200,0.4);
  padding-left: 15px;
}

.plmod-row-proj-pct {
  font-size: 0.5rem;
  color: rgba(196,220,200,0.35);
  margin-top: 2px;
  padding-left: 15px;
}

/* ── Scrollable gantt cell area ────────────────────────────── */
.plmod-cell-area {
  flex: 1;
  overflow-x: auto;
  overflow-y: hidden;
}

.plmod-cell-grid {
  display: flex;
  flex-direction: column;
}

.plmod-cell-row {
  display: flex;
  min-height: 60px;
  border-bottom: 1px solid rgba(24,178,75,0.05);
  flex-shrink: 0;
  align-items: stretch;
}

.plmod-cell {
  min-width: 88px;
  flex-shrink: 0;
  border-right: 1px solid rgba(24,178,75,0.05);
  padding: 5px 4px;
  position: relative;
}

.plmod-cell.today { background: rgba(24,178,75,0.05); }

/* Shift card inside cell */
.plmod-shift-card {
  background: rgba(18,137,58,0.18);
  border: 1px solid rgba(24,178,75,0.30);
  border-bottom: 2px solid #18B24B;
  border-radius: var(--radius-sm);
  padding: 5px 7px;
  font-size: 0.5625rem;
  cursor: default;
  transition: border-color 0.15s, background 0.15s;
}

.plmod-shift-card:hover {
  background: rgba(18,137,58,0.28);
  border-color: rgba(24,178,75,0.5);
}

.plmod-shift-proj {
  font-weight: 600;
  color: #F4FAF5;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.plmod-shift-proj i { color: #18B24B; font-size: 0.5rem; }

.plmod-shift-dept {
  color: rgba(196,220,200,0.55);
  display: flex;
  align-items: center;
  gap: 3px;
  margin-bottom: 1px;
}

.plmod-shift-time {
  color: rgba(196,220,200,0.55);
  display: flex;
  align-items: center;
  gap: 3px;
}

/* Add plan button (empty cell hover) */
.plmod-add-plan {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 0.5625rem;
  font-weight: 700;
  color: #18B24B;
  border: 1px dashed rgba(24,178,75,0.3);
  border-radius: var(--radius-sm);
  padding: 6px 8px;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.15s;
}

.plmod-cell:hover .plmod-add-plan { opacity: 1; }

/* Staffing badge (Bemanning view) */
.plmod-staff-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 0.5625rem;
  font-weight: 700;
  padding: 3px 7px;
  border-radius: var(--radius-sm);
  margin: 2px;
}

.plmod-staff-badge--green {
  background: rgba(24,178,75,0.18);
  border: 1px solid rgba(24,178,75,0.35);
  color: #18B24B;
}

.plmod-staff-badge--pink {
  background: rgba(236,72,153,0.18);
  border: 1px solid rgba(236,72,153,0.35);
  color: #EC4899;
}

/* ── Pagination ────────────────────────────────────────────── */
.plmod-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 10px;
  border-top: 1px solid rgba(24,178,75,0.07);
  background: rgba(7,12,8,0.5);
  position: relative;
  z-index: 2;
}

.plmod-page-btn {
  width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 4px;
  font-size: 0.625rem;
  font-weight: 600;
  color: rgba(196,220,200,0.45);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.15s;
  user-select: none;
}

.plmod-page-btn:hover { color: rgba(196,220,200,0.8); border-color: rgba(24,178,75,0.2); }
.plmod-page-btn.active {
  background: rgba(24,178,75,0.15);
  border-color: rgba(24,178,75,0.4);
  color: #18B24B;
}

.plmod-page-dots {
  font-size: 0.625rem;
  color: rgba(196,220,200,0.3);
  padding: 0 2px;
}

/* ── LIGHT MODE ────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .plmod-shell,
[data-theme="light"] .plmod-shell {
  background: #F0F5F1;
  border-color: rgba(24,178,75,0.18);
  box-shadow: 0 0 0 1px rgba(24,178,75,0.08), 0 12px 40px rgba(0,0,0,0.10);
}

:root:not([data-theme="dark"]) .plmod-shell::before,
[data-theme="light"] .plmod-shell::before {
  background-image:
    linear-gradient(rgba(24,178,75,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.06) 1px, transparent 1px);
}

:root:not([data-theme="dark"]) .plmod-tabbar,
[data-theme="light"] .plmod-tabbar {
  background: rgba(255,255,255,0.9);
  border-bottom-color: rgba(24,178,75,0.12);
}

:root:not([data-theme="dark"]) .plmod-tab,
[data-theme="light"] .plmod-tab { color: #637381; }

:root:not([data-theme="dark"]) .plmod-week-nav,
[data-theme="light"] .plmod-week-nav { color: #637381; }

:root:not([data-theme="dark"]) .plmod-week-nav-btn,
[data-theme="light"] .plmod-week-nav-btn { color: #637381; border-color: rgba(24,178,75,0.2); }

:root:not([data-theme="dark"]) .plmod-toolbar,
[data-theme="light"] .plmod-toolbar {
  background: rgba(255,255,255,0.7);
  border-bottom-color: rgba(24,178,75,0.08);
}

:root:not([data-theme="dark"]) .plmod-search,
:root:not([data-theme="dark"]) .plmod-dropdown,
:root:not([data-theme="dark"]) .plmod-date-range,
[data-theme="light"] .plmod-search,
[data-theme="light"] .plmod-dropdown,
[data-theme="light"] .plmod-date-range {
  background: rgba(24,178,75,0.05);
  border-color: rgba(24,178,75,0.15);
  color: #637381;
}

:root:not([data-theme="dark"]) .plmod-subtabs,
[data-theme="light"] .plmod-subtabs { background: rgba(255,255,255,0.6); border-bottom-color: rgba(24,178,75,0.08); }

:root:not([data-theme="dark"]) .plmod-subtab,
[data-theme="light"] .plmod-subtab { color: #919EAB; }

:root:not([data-theme="dark"]) .plmod-subtab.active,
[data-theme="light"] .plmod-subtab.active { color: #18B24B; }

:root:not([data-theme="dark"]) .plmod-col-header,
:root:not([data-theme="dark"]) .plmod-row-panel-header,
[data-theme="light"] .plmod-col-header,
[data-theme="light"] .plmod-row-panel-header {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(24,178,75,0.10);
}

:root:not([data-theme="dark"]) .plmod-week-label,
[data-theme="light"] .plmod-week-label { color: #637381; }

:root:not([data-theme="dark"]) .plmod-day-name,
[data-theme="light"] .plmod-day-name { color: #919EAB; }

:root:not([data-theme="dark"]) .plmod-day-date,
[data-theme="light"] .plmod-day-date { color: #212B36; }

:root:not([data-theme="dark"]) .plmod-day-cap,
[data-theme="light"] .plmod-day-cap { color: #919EAB; }

:root:not([data-theme="dark"]) .plmod-day-th.today,
[data-theme="light"] .plmod-day-th.today { background: rgba(24,178,75,0.07); }

:root:not([data-theme="dark"]) .plmod-row-labels,
:root:not([data-theme="dark"]) .plmod-row-panel,
[data-theme="light"] .plmod-row-labels,
[data-theme="light"] .plmod-row-panel {
  background: rgba(255,255,255,0.85);
  border-right-color: rgba(24,178,75,0.10);
}

:root:not([data-theme="dark"]) .plmod-row-label,
[data-theme="light"] .plmod-row-label { border-bottom-color: rgba(0,0,0,0.05); }

:root:not([data-theme="dark"]) .plmod-row-name,
:root:not([data-theme="dark"]) .plmod-row-proj-name,
[data-theme="light"] .plmod-row-name,
[data-theme="light"] .plmod-row-proj-name { color: #212B36; }

:root:not([data-theme="dark"]) .plmod-row-dept,
:root:not([data-theme="dark"]) .plmod-row-proj-sub,
:root:not([data-theme="dark"]) .plmod-row-proj-pct,
:root:not([data-theme="dark"]) .plmod-alloc-pct,
[data-theme="light"] .plmod-row-dept,
[data-theme="light"] .plmod-row-proj-sub,
[data-theme="light"] .plmod-row-proj-pct,
[data-theme="light"] .plmod-alloc-pct { color: #919EAB; }

:root:not([data-theme="dark"]) .plmod-alloc-bar-track,
[data-theme="light"] .plmod-alloc-bar-track { background: rgba(24,178,75,0.10); }

:root:not([data-theme="dark"]) .plmod-search-sm,
[data-theme="light"] .plmod-search-sm {
  background: rgba(24,178,75,0.05);
  border-color: rgba(24,178,75,0.12);
  color: #919EAB;
}

:root:not([data-theme="dark"]) .plmod-cell-row,
[data-theme="light"] .plmod-cell-row { border-bottom-color: rgba(0,0,0,0.05); }

:root:not([data-theme="dark"]) .plmod-cell,
[data-theme="light"] .plmod-cell {
  border-right-color: rgba(0,0,0,0.05);
  background: #fff;
}

:root:not([data-theme="dark"]) .plmod-cell.today,
[data-theme="light"] .plmod-cell.today { background: rgba(24,178,75,0.04); }

:root:not([data-theme="dark"]) .plmod-shift-card,
[data-theme="light"] .plmod-shift-card {
  background: rgba(24,178,75,0.10);
  border-color: rgba(24,178,75,0.25);
  border-bottom-color: #18B24B;
}

:root:not([data-theme="dark"]) .plmod-shift-proj,
[data-theme="light"] .plmod-shift-proj { color: #212B36; }

:root:not([data-theme="dark"]) .plmod-shift-dept,
:root:not([data-theme="dark"]) .plmod-shift-time,
[data-theme="light"] .plmod-shift-dept,
[data-theme="light"] .plmod-shift-time { color: #637381; }

:root:not([data-theme="dark"]) .plmod-pagination,
[data-theme="light"] .plmod-pagination {
  background: rgba(255,255,255,0.8);
  border-top-color: rgba(24,178,75,0.10);
}

:root:not([data-theme="dark"]) .plmod-page-btn,
[data-theme="light"] .plmod-page-btn { color: #637381; }

:root:not([data-theme="dark"]) .plmod-page-dots,
[data-theme="light"] .plmod-page-dots { color: #919EAB; }

/* ── Conflict banner ───────────────────────────────────────── */
.plmod-conflict-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: rgba(255, 171, 0, 0.08);
  border-top: 1px solid rgba(255, 171, 0, 0.25);
  font-size: 0.75rem;
  color: rgba(255, 220, 120, 0.9);
  position: relative;
  z-index: 2;
  flex-wrap: wrap;
}

.plmod-conflict-banner i {
  color: #FFAB00;
  flex-shrink: 0;
}

.plmod-conflict-banner strong {
  color: #FFAB00;
}

.plmod-resolve-btn {
  margin-left: auto;
  font-size: 0.6875rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: transparent;
  border: 1px solid rgba(255, 171, 0, 0.4);
  color: #FFAB00;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  white-space: nowrap;
}

.plmod-resolve-btn:hover {
  background: rgba(255, 171, 0, 0.12);
  border-color: rgba(255, 171, 0, 0.6);
}

/* light mode overrides for conflict banner */
:root:not([data-theme="dark"]) .plmod-conflict-banner,
[data-theme="light"] .plmod-conflict-banner {
  background: rgba(255, 171, 0, 0.06);
  border-top-color: rgba(255, 171, 0, 0.20);
  color: #7A4F00;
}

:root:not([data-theme="dark"]) .plmod-conflict-banner i,
:root:not([data-theme="dark"]) .plmod-conflict-banner strong,
[data-theme="light"] .plmod-conflict-banner i,
[data-theme="light"] .plmod-conflict-banner strong { color: #B76E00; }

:root:not([data-theme="dark"]) .plmod-resolve-btn,
[data-theme="light"] .plmod-resolve-btn {
  border-color: rgba(183, 110, 0, 0.4);
  color: #B76E00;
}

/* ── Ensure plmod-body has a minimum height ────────────────── */
.plmod-body { min-height: 320px; }

@media (max-width: 760px) {
  .plmod-row-labels, .plmod-row-panel { width: 140px; }
  .plmod-day-th { min-width: 70px; }
  .plmod-cell { min-width: 70px; }
}

/* ═══════════════════════════════════════════════
   CHECKLIST MODULE  (chkmod-*)
═══════════════════════════════════════════════ */
.chkmod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06), 0 24px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.chkmod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(24,178,75,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(24,178,75,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Top bar */
.chkmod-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(7,12,8,0.85);
  border-bottom: 1px solid rgba(24,178,75,0.10);
  position: relative;
}
.chkmod-topbar-title {
  font-size: 0.875rem; font-weight: 700; color: #F4FAF5; flex: 1;
}
.chkmod-tabs-inner {
  display: flex; gap: 0;
  background: rgba(24,178,75,0.07);
  border: 1px solid rgba(24,178,75,0.15);
  border-radius: 6px; overflow: hidden;
}
.chkmod-tab-inner {
  font-size: 0.6875rem; font-weight: 600;
  padding: 5px 14px;
  color: rgba(196,220,200,0.55);
  cursor: pointer; border: none; background: transparent;
  transition: all 0.15s;
}
.chkmod-tab-inner.active { background: #18B24B; color: #fff; }
.chkmod-tab-inner:hover:not(.active) { color: rgba(196,220,200,0.9); }
.chkmod-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid; transition: all 0.15s;
}
.chkmod-btn--green {
  background: #18B24B; color: #fff; border-color: #18B24B;
}
.chkmod-btn--green:hover { background: #15993f; }
.chkmod-btn--outline {
  background: transparent; color: rgba(196,220,200,0.7);
  border-color: rgba(24,178,75,0.25);
}
.chkmod-btn--outline:hover { border-color: #18B24B; color: #18B24B; }

/* Table */
.chkmod-table-wrap { position: relative; overflow-x: auto; }
.chkmod-table {
  width: 100%; border-collapse: collapse; font-size: 0.75rem;
}
.chkmod-table th {
  padding: 10px 14px; text-align: left;
  font-size: 0.6875rem; font-weight: 600;
  color: rgba(196,220,200,0.45); border-bottom: 1px solid rgba(24,178,75,0.10);
  white-space: nowrap;
}
.chkmod-table td {
  padding: 11px 14px; color: #F4FAF5;
  border-bottom: 1px solid rgba(24,178,75,0.06);
  vertical-align: middle;
}
.chkmod-table tr:last-child td { border-bottom: none; }
.chkmod-table tr:hover td { background: rgba(24,178,75,0.04); }
.chkmod-num { color: rgba(196,220,200,0.55); font-size: 0.6875rem; }
.chkmod-proj-wrap { display: flex; flex-direction: column; gap: 2px; }
.chkmod-proj-name { font-size: 0.75rem; color: #F4FAF5; display: flex; align-items: center; gap: 5px; }
.chkmod-proj-sub { font-size: 0.625rem; color: rgba(196,220,200,0.45); }
.chkmod-folder { color: #18B24B; font-size: 0.5625rem; }
.chkmod-avatar {
  width: 24px; height: 24px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; font-weight: 700; color: #fff;
  margin-right: 6px; vertical-align: middle; flex-shrink: 0;
}
.chkmod-reporter { display: flex; align-items: center; color: #F4FAF5; white-space: nowrap; }
.chkmod-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.5625rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.chkmod-badge--green {
  background: rgba(24,178,75,0.15); color: #18B24B;
  border: 1px solid rgba(24,178,75,0.3);
}
.chkmod-badge--gray {
  background: rgba(145,158,171,0.12); color: #919EAB;
  border: 1px solid rgba(145,158,171,0.2);
}
.chkmod-cb { accent-color: #18B24B; width: 13px; height: 13px; cursor: pointer; }

/* Detail view */
.chkmod-detail { display: none; flex-direction: column; }
.chkmod-detail.active { display: flex; }
.chkmod-list-view { display: flex; flex-direction: column; }
.chkmod-list-view.hidden { display: none; }
.chkmod-meta-card {
  margin: 0 16px 0;
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.10);
  border-radius: 10px; padding: 14px 18px;
  display: flex; gap: 32px; flex-wrap: wrap;
  position: relative;
}
.chkmod-meta-block { display: flex; flex-direction: column; gap: 3px; }
.chkmod-meta-label { font-size: 0.5625rem; color: rgba(196,220,200,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.chkmod-meta-val { font-size: 0.75rem; color: #F4FAF5; display: flex; align-items: center; gap: 5px; }
.chkmod-meta-sub { font-size: 0.625rem; color: rgba(196,220,200,0.45); }
.chkmod-questions-panel {
  margin: 12px 16px 16px;
  background: rgba(7,12,8,0.6);
  border: 1px solid rgba(24,178,75,0.10);
  border-radius: 10px; overflow: hidden;
}
.chkmod-q-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(24,178,75,0.10);
  font-size: 0.8125rem; font-weight: 700; color: #F4FAF5;
}
.chkmod-q-scroll { max-height: 320px; overflow-y: auto; }
.chkmod-q-scroll::-webkit-scrollbar { width: 4px; }
.chkmod-q-scroll::-webkit-scrollbar-thumb { background: rgba(24,178,75,0.2); border-radius: 2px; }
.chkmod-q-item { border-bottom: 1px solid rgba(24,178,75,0.06); padding: 14px 16px; }
.chkmod-q-item:last-child { border-bottom: none; }
.chkmod-q-title { font-size: 0.75rem; font-weight: 700; color: #F4FAF5; margin-bottom: 8px; }
.chkmod-q-row { display: flex; gap: 16px; align-items: flex-start; flex-wrap: wrap; }
.chkmod-q-left { flex: 1; min-width: 160px; display: flex; flex-direction: column; gap: 8px; }
.chkmod-q-right { flex: 1; min-width: 160px; }
.chkmod-radios { display: flex; gap: 14px; }
.chkmod-radio-opt { display: flex; align-items: center; gap: 5px; font-size: 0.6875rem; color: rgba(196,220,200,0.7); cursor: pointer; }
.chkmod-radio-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(24,178,75,0.35); background: transparent; flex-shrink: 0;
  transition: all 0.15s;
}
.chkmod-radio-dot.checked { background: #18B24B; border-color: #18B24B; box-shadow: 0 0 0 2px rgba(24,178,75,0.2); }
.chkmod-radio-dot.checked-nei { background: #FF4842; border-color: #FF4842; box-shadow: 0 0 0 2px rgba(255,72,66,0.2); }
.chkmod-comment-label { font-size: 0.5625rem; color: rgba(196,220,200,0.45); margin-bottom: 4px; }
.chkmod-comment-box {
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: 6px; padding: 7px 10px;
  font-size: 0.6875rem; color: #F4FAF5; min-height: 40px;
}
.chkmod-bilder-label { font-size: 0.5625rem; color: rgba(196,220,200,0.45); margin-bottom: 5px; }
.chkmod-thumb-row { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 6px; }
.chkmod-thumb {
  width: 52px; height: 40px; border-radius: 5px;
  border: 1px solid rgba(24,178,75,0.2); overflow: hidden;
  background: rgba(24,178,75,0.08); position: relative;
  display: flex; align-items: center; justify-content: center;
}
.chkmod-thumb i { font-size: 0.875rem; color: rgba(24,178,75,0.4); }
.chkmod-history-bar {
  display: flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.04); border-radius: 4px;
  padding: 5px 10px; margin-top: 8px;
  font-size: 0.5625rem; color: rgba(196,220,200,0.4);
}
.chkmod-history-bar .chkmod-avatar { width: 18px; height: 18px; font-size: 0.4375rem; margin-right: 0; }
.chkmod-history-ts { margin-left: auto; color: rgba(196,220,200,0.35); }

/* Light mode */
:root:not([data-theme="dark"]) .chkmod-shell,
[data-theme="light"] .chkmod-shell {
  background: #F4F6F8;
  border-color: rgba(24,178,75,0.15);
}
:root:not([data-theme="dark"]) .chkmod-topbar,
[data-theme="light"] .chkmod-topbar {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .chkmod-topbar-title,
[data-theme="light"] .chkmod-topbar-title { color: #212B36; }
:root:not([data-theme="dark"]) .chkmod-table td,
[data-theme="light"] .chkmod-table td { color: #212B36; }
:root:not([data-theme="dark"]) .chkmod-table tr:hover td,
[data-theme="light"] .chkmod-table tr:hover td { background: rgba(24,178,75,0.04); }
:root:not([data-theme="dark"]) .chkmod-meta-card,
[data-theme="light"] .chkmod-meta-card {
  background: rgba(255,255,255,0.8);
  border-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .chkmod-meta-val,
[data-theme="light"] .chkmod-meta-val { color: #212B36; }
:root:not([data-theme="dark"]) .chkmod-questions-panel,
[data-theme="light"] .chkmod-questions-panel {
  background: rgba(255,255,255,0.7);
  border-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .chkmod-q-title,
[data-theme="light"] .chkmod-q-title { color: #212B36; }
:root:not([data-theme="dark"]) .chkmod-comment-box,
[data-theme="light"] .chkmod-comment-box {
  background: #F4F6F8; border-color: rgba(24,178,75,0.18); color: #212B36;
}
:root:not([data-theme="dark"]) .chkmod-history-bar,
[data-theme="light"] .chkmod-history-bar { background: rgba(0,0,0,0.04); }

/* ═══════════════════════════════════════════════
   DEVIATION MODULE  (devmod-*)
═══════════════════════════════════════════════ */
.devmod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06), 0 24px 60px rgba(0,0,0,0.45), 0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.devmod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(24,178,75,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(24,178,75,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}
.devmod-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(7,12,8,0.85);
  border-bottom: 1px solid rgba(24,178,75,0.10);
  position: relative;
}
.devmod-topbar-title { font-size: 0.875rem; font-weight: 700; color: #F4FAF5; flex: 1; }
.devmod-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid; transition: all 0.15s;
}
.devmod-btn--green { background: #18B24B; color: #fff; border-color: #18B24B; }
.devmod-btn--green:hover { background: #15993f; }
.devmod-btn--back {
  background: transparent; color: rgba(196,220,200,0.7);
  border-color: rgba(24,178,75,0.25);
}
.devmod-btn--back:hover { border-color: #18B24B; color: #18B24B; }

/* Table */
.devmod-table { width: 100%; border-collapse: collapse; font-size: 0.75rem; }
.devmod-table th {
  padding: 9px 12px; text-align: left;
  font-size: 0.625rem; font-weight: 600;
  color: rgba(196,220,200,0.45);
  border-bottom: 1px solid rgba(24,178,75,0.10);
  white-space: nowrap;
}
.devmod-table td {
  padding: 10px 12px; color: #F4FAF5;
  border-bottom: 1px solid rgba(24,178,75,0.06);
  vertical-align: middle; font-size: 0.6875rem;
}
.devmod-table tr:last-child td { border-bottom: none; }
.devmod-table tr { cursor: pointer; }
.devmod-table tr:hover td { background: rgba(24,178,75,0.05); }
.devmod-num { color: rgba(196,220,200,0.5); font-size: 0.625rem; }
.devmod-proj { max-width: 160px; }
.devmod-proj-name { color: #F4FAF5; font-size: 0.6875rem; line-height: 1.3; }
.devmod-proj-code { color: rgba(196,220,200,0.45); font-size: 0.5625rem; }
.devmod-folder-icon { font-size: 0.5rem; margin-right: 4px; }
.devmod-folder-icon--green { color: #18B24B; }
.devmod-folder-icon--blue { color: #1890FF; }
.devmod-avatar {
  width: 22px; height: 22px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.devmod-reporter { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.devmod-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.5625rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.devmod-badge--red {
  background: rgba(183,29,24,0.18); color: #FF5630;
  border: 1px solid rgba(183,29,24,0.3);
}
.devmod-badge--green {
  background: rgba(24,178,75,0.15); color: #18B24B;
  border: 1px solid rgba(24,178,75,0.3);
}
.devmod-badge--amber {
  background: rgba(255,171,0,0.15); color: #FFAB00;
  border: 1px solid rgba(255,171,0,0.3);
}

/* Detail view */
.devmod-list-view { display: flex; flex-direction: column; }
.devmod-list-view.hidden { display: none; }
.devmod-detail { display: none; flex-direction: column; }
.devmod-detail.active { display: flex; }

/* Summary strip */
.devmod-summary-strip {
  display: flex; gap: 0; flex-wrap: wrap;
  margin: 0 16px;
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.10); border-radius: 10px;
  overflow: hidden;
}
.devmod-sum-cell {
  flex: 1; min-width: 90px; padding: 10px 14px;
  border-right: 1px solid rgba(24,178,75,0.08);
  display: flex; flex-direction: column; gap: 3px;
}
.devmod-sum-cell:last-child { border-right: none; }
.devmod-sum-label { font-size: 0.5rem; color: rgba(196,220,200,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.devmod-sum-val { font-size: 0.6875rem; color: #F4FAF5; font-weight: 600; }

/* Detail body (two columns) */
.devmod-detail-body {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px; margin: 12px 16px 16px;
}
@media (max-width: 640px) { .devmod-detail-body { grid-template-columns: 1fr; } }
.devmod-card {
  background: rgba(7,12,8,0.6);
  border: 1px solid rgba(24,178,75,0.10);
  border-radius: 10px; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
}
.devmod-card-title { font-size: 0.8125rem; font-weight: 700; color: #F4FAF5; margin-bottom: 4px; }
.devmod-field-label { font-size: 0.5625rem; color: rgba(196,220,200,0.45); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.devmod-field-val { font-size: 0.75rem; color: #F4FAF5; margin-top: 2px; }
.devmod-field-val--muted { color: rgba(196,220,200,0.5); }
.devmod-image-thumb {
  width: 80px; height: 64px; border-radius: 6px;
  border: 1px solid rgba(24,178,75,0.2);
  background: rgba(24,178,75,0.06);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.devmod-image-thumb i { font-size: 1.25rem; color: rgba(24,178,75,0.35); }

/* Intern / Ekstern radios */
.devmod-radio-group { display: flex; gap: 16px; margin-top: 4px; }
.devmod-radio-opt { display: flex; align-items: center; gap: 6px; font-size: 0.6875rem; color: rgba(196,220,200,0.7); }
.devmod-radio-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 2px solid rgba(24,178,75,0.35); flex-shrink: 0;
}
.devmod-radio-dot.checked { background: #18B24B; border-color: #18B24B; }

/* Star rating */
.devmod-stars { display: flex; gap: 4px; margin-top: 4px; }
.devmod-star { font-size: 0.875rem; }
.devmod-star--on { color: #FFAB00; }
.devmod-star--off { color: rgba(145,158,171,0.3); }

/* Light mode */
:root:not([data-theme="dark"]) .devmod-shell,
[data-theme="light"] .devmod-shell {
  background: #F4F6F8; border-color: rgba(24,178,75,0.15);
}
:root:not([data-theme="dark"]) .devmod-topbar,
[data-theme="light"] .devmod-topbar {
  background: rgba(255,255,255,0.85);
  border-bottom-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .devmod-topbar-title,
[data-theme="light"] .devmod-topbar-title { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-table td,
[data-theme="light"] .devmod-table td { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-summary-strip,
[data-theme="light"] .devmod-summary-strip {
  background: rgba(255,255,255,0.8); border-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .devmod-sum-val,
[data-theme="light"] .devmod-sum-val { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-card,
[data-theme="light"] .devmod-card {
  background: rgba(255,255,255,0.8); border-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .devmod-card-title,
[data-theme="light"] .devmod-card-title { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-field-val,
[data-theme="light"] .devmod-field-val { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-proj-name,
[data-theme="light"] .devmod-proj-name { color: #212B36; }

/* ═══════════════════════════════════════════════
   PROJECTS MODULE  (projmod-*)
═══════════════════════════════════════════════ */
.projmod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06),
              0 24px 60px rgba(0,0,0,0.45),
              0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.projmod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(118,53,220,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,53,220,0.04) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Top bar */
.projmod-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(7,12,8,0.85);
  border-bottom: 1px solid rgba(118,53,220,0.12);
  position: relative; flex-wrap: wrap;
}
.projmod-topbar-title {
  font-size: 0.875rem; font-weight: 700; color: #F4FAF5; flex: 1;
  min-width: 0;
}
.projmod-breadcrumb {
  width: 100%; font-size: 0.5625rem;
  color: rgba(196,220,200,0.4);
  padding: 0 0 2px;
  display: none;
}
.projmod-breadcrumb.visible { display: block; }
.projmod-tabs-top {
  display: flex; gap: 0;
  border-bottom: 1px solid rgba(118,53,220,0.12);
  background: rgba(7,12,8,0.6);
  padding: 0 16px;
  overflow-x: auto;
}
.projmod-tabs-top::-webkit-scrollbar { height: 0; }
.projmod-tab-top {
  font-size: 0.6875rem; font-weight: 600;
  padding: 10px 16px; cursor: pointer;
  color: rgba(196,220,200,0.45);
  border: none; background: transparent;
  border-bottom: 2px solid transparent;
  white-space: nowrap; transition: all 0.15s;
}
.projmod-tab-top.active { color: #18B24B; border-bottom-color: #18B24B; }
.projmod-tab-top:hover:not(.active) { color: rgba(196,220,200,0.8); }
.projmod-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 6px; cursor: pointer;
  border: 1px solid; transition: all 0.15s; white-space: nowrap;
}
.projmod-btn--green { background: #18B24B; color: #fff; border-color: #18B24B; }
.projmod-btn--green:hover { background: #15993f; }
.projmod-btn--outline {
  background: transparent; color: rgba(196,220,200,0.7);
  border-color: rgba(118,53,220,0.3);
}
.projmod-btn--outline:hover { border-color: #7635DC; color: #B39DDB; }
.projmod-btn--back {
  background: transparent; color: rgba(196,220,200,0.7);
  border-color: rgba(118,53,220,0.3);
}
.projmod-btn--back:hover { border-color: #7635DC; color: #B39DDB; }

/* Project LIST view table */
.projmod-table-wrap { overflow-x: auto; position: relative; }
.projmod-table {
  width: 100%; border-collapse: collapse; font-size: 0.6875rem;
  min-width: 720px;
}
.projmod-table th {
  padding: 9px 12px; text-align: left;
  font-size: 0.5625rem; font-weight: 600;
  color: rgba(196,220,200,0.4);
  border-bottom: 1px solid rgba(118,53,220,0.10);
  white-space: nowrap;
}
.projmod-table td {
  padding: 10px 12px; color: #F4FAF5;
  border-bottom: 1px solid rgba(118,53,220,0.06);
  vertical-align: middle;
}
.projmod-table tr:last-child td { border-bottom: none; }
.projmod-table tr { cursor: pointer; transition: background 0.1s; }
.projmod-table tr:hover td { background: rgba(118,53,220,0.05); }
.projmod-folder {
  width: 18px; height: 18px; border-radius: 4px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; color: #fff; flex-shrink: 0; margin-right: 6px;
  vertical-align: middle;
}
.projmod-proj-name { font-weight: 600; font-size: 0.6875rem; line-height: 1.3; }
.projmod-proj-sub { font-size: 0.5rem; color: rgba(196,220,200,0.4); }
.projmod-muted { color: rgba(196,220,200,0.35); font-size: 0.5625rem; }
.projmod-num-cell {
  display: flex; align-items: center; gap: 4px;
  font-size: 0.6875rem; color: rgba(196,220,200,0.7);
  white-space: nowrap;
}
.projmod-num-cell i { font-size: 0.5rem; color: rgba(196,220,200,0.4); }
.projmod-num-cell--yellow i { color: #FFAB00; }
.projmod-cb { accent-color: #7635DC; width: 13px; height: 13px; cursor: pointer; }

/* Project DETAIL view */
.projmod-list-view { display: flex; flex-direction: column; }
.projmod-list-view.hidden { display: none; }
.projmod-detail { display: none; flex-direction: column; }
.projmod-detail.active { display: flex; }

/* Detail body: two column grid */
.projmod-detail-grid {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 12px;
  padding: 14px 16px;
}
@media (max-width: 680px) {
  .projmod-detail-grid { grid-template-columns: 1fr; }
}

/* Left info card */
.projmod-info-card {
  background: rgba(7,12,8,0.6);
  border: 1px solid rgba(118,53,220,0.14);
  border-top: 3px solid #7635DC;
  border-radius: 10px;
  padding: 14px;
  display: flex; flex-direction: column; gap: 10px;
}
.projmod-info-title { font-size: 0.8125rem; font-weight: 700; color: #F4FAF5; line-height: 1.3; margin-bottom: 4px; }
.projmod-info-sub { font-size: 0.5625rem; color: rgba(196,220,200,0.45); margin-top: -8px; }
.projmod-info-row { display: flex; flex-direction: column; gap: 2px; }
.projmod-info-label { font-size: 0.5rem; color: rgba(196,220,200,0.4); font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.projmod-info-val { font-size: 0.6875rem; color: #F4FAF5; }
.projmod-info-val--muted { color: rgba(196,220,200,0.4); }
.projmod-responsible {
  display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px;
}
.projmod-resp-chip {
  display: flex; align-items: center; gap: 4px;
  background: rgba(118,53,220,0.10);
  border: 1px solid rgba(118,53,220,0.2);
  border-radius: 20px; padding: 2px 8px 2px 3px;
  font-size: 0.5625rem; color: rgba(196,220,200,0.8);
}
.projmod-resp-av {
  width: 18px; height: 18px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.4375rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.projmod-badge-strip { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; }
.projmod-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.5rem; font-weight: 700; padding: 3px 9px;
  border-radius: 20px; white-space: nowrap;
}
.projmod-badge--green {
  background: rgba(24,178,75,0.14); color: #18B24B;
  border: 1px solid rgba(24,178,75,0.28);
}
.projmod-badge--gray {
  background: rgba(145,158,171,0.12); color: #919EAB;
  border: 1px solid rgba(145,158,171,0.2);
}
.projmod-stats-row {
  display: flex; gap: 0; border-top: 1px solid rgba(118,53,220,0.10);
  padding-top: 10px; margin-top: 2px;
}
.projmod-stat { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.projmod-stat-label { font-size: 0.4375rem; color: rgba(196,220,200,0.4); text-transform: uppercase; letter-spacing: .04em; }
.projmod-stat-val { font-size: 0.75rem; font-weight: 700; color: #F4FAF5; }

/* Timer Per Bruker mini card */
.projmod-users-card {
  background: rgba(7,12,8,0.5);
  border: 1px solid rgba(118,53,220,0.10);
  border-radius: 10px; margin-top: 12px; overflow: hidden;
}
.projmod-users-tabs {
  display: flex; border-bottom: 1px solid rgba(118,53,220,0.10);
}
.projmod-users-tab {
  font-size: 0.625rem; font-weight: 600;
  padding: 8px 14px; cursor: pointer;
  color: rgba(196,220,200,0.45); border: none; background: transparent;
  border-bottom: 2px solid transparent; transition: all 0.15s;
}
.projmod-users-tab.active { color: #18B24B; border-bottom-color: #18B24B; }
.projmod-user-row {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-bottom: 1px solid rgba(118,53,220,0.06);
}
.projmod-user-row:last-child { border-bottom: none; }
.projmod-user-av {
  width: 26px; height: 26px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.projmod-user-name { font-size: 0.6875rem; color: #F4FAF5; flex: 1; }
.projmod-user-hours { font-size: 0.6875rem; color: rgba(196,220,200,0.6); white-space: nowrap; }

/* Right panel */
.projmod-right-col { display: flex; flex-direction: column; gap: 12px; }

/* Fremdrift (Progress) card */
.projmod-progress-card {
  background: rgba(7,12,8,0.6);
  border: 1px solid rgba(118,53,220,0.14);
  border-radius: 10px; padding: 14px 16px;
}
.projmod-progress-title { font-size: 0.8125rem; font-weight: 700; color: #F4FAF5; margin-bottom: 12px; }
.projmod-progress-row { display: flex; flex-direction: column; gap: 4px; margin-bottom: 12px; }
.projmod-progress-row:last-child { margin-bottom: 0; }
.projmod-progress-meta {
  display: flex; justify-content: space-between; align-items: center;
}
.projmod-progress-label { font-size: 0.625rem; color: rgba(196,220,200,0.5); }
.projmod-progress-val { font-size: 0.6875rem; font-weight: 600; color: #F4FAF5; }
.projmod-progress-pct { font-size: 0.5rem; color: rgba(196,220,200,0.4); }
.projmod-bar-track {
  height: 8px; border-radius: 4px;
  background: rgba(255,255,255,0.06);
  overflow: hidden; position: relative;
}
.projmod-bar-fill {
  height: 100%; border-radius: 4px; transition: width 0.6s ease;
}
.projmod-bar-fill--blue { background: linear-gradient(90deg,#1890FF,#0C53B7); }
.projmod-bar-fill--red  { background: linear-gradient(90deg,#FF5630,#B71D18); }
.projmod-bar-fill--green{ background: linear-gradient(90deg,#18B24B,#007B55); }

/* Oppgaver (Tasks) card */
.projmod-tasks-card {
  background: rgba(7,12,8,0.6);
  border: 1px solid rgba(118,53,220,0.14);
  border-radius: 10px; overflow: hidden; flex: 1;
}
.projmod-tasks-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(118,53,220,0.10);
}
.projmod-tasks-title { font-size: 0.8125rem; font-weight: 700; color: #F4FAF5; }
.projmod-tasks-table { width: 100%; border-collapse: collapse; font-size: 0.6875rem; }
.projmod-tasks-table th {
  padding: 8px 14px; text-align: left;
  font-size: 0.5625rem; font-weight: 600;
  color: rgba(196,220,200,0.4);
  border-bottom: 1px solid rgba(118,53,220,0.08);
}
.projmod-tasks-table td {
  padding: 9px 14px; color: #F4FAF5;
  border-bottom: 1px solid rgba(118,53,220,0.06);
  vertical-align: middle;
}
.projmod-tasks-table tr:last-child td { border-bottom: none; }
.projmod-tasks-table tr:hover td { background: rgba(118,53,220,0.04); }
.projmod-task-name { font-size: 0.6875rem; color: #F4FAF5; font-weight: 500; }
.projmod-task-bar-track {
  height: 4px; border-radius: 2px;
  background: rgba(255,255,255,0.06); margin-top: 4px;
  overflow: hidden;
}
.projmod-task-bar-fill {
  height: 100%; border-radius: 2px;
  background: #18B24B;
}
.projmod-task-done i { color: #18B24B; font-size: 0.875rem; }
.projmod-task-done-na i { color: rgba(145,158,171,0.3); font-size: 0.875rem; }
.projmod-kebab {
  color: rgba(196,220,200,0.3); cursor: pointer; font-size: 0.75rem;
  padding: 2px 6px;
}
.projmod-kebab:hover { color: rgba(196,220,200,0.7); }

/* Light-mode overrides */
:root:not([data-theme="dark"]) .projmod-shell,
[data-theme="light"] .projmod-shell {
  background: #F4F6F8; border-color: rgba(118,53,220,0.15);
}
:root:not([data-theme="dark"]) .projmod-topbar,
[data-theme="light"] .projmod-topbar {
  background: rgba(255,255,255,0.9);
  border-bottom-color: rgba(118,53,220,0.12);
}
:root:not([data-theme="dark"]) .projmod-topbar-title,
[data-theme="light"] .projmod-topbar-title { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-tabs-top,
[data-theme="light"] .projmod-tabs-top {
  background: rgba(255,255,255,0.7);
  border-bottom-color: rgba(118,53,220,0.10);
}
:root:not([data-theme="dark"]) .projmod-table td,
[data-theme="light"] .projmod-table td { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-table tr:hover td,
[data-theme="light"] .projmod-table tr:hover td { background: rgba(118,53,220,0.04); }
:root:not([data-theme="dark"]) .projmod-info-card,
[data-theme="light"] .projmod-info-card {
  background: rgba(255,255,255,0.85); border-color: rgba(118,53,220,0.15);
}
:root:not([data-theme="dark"]) .projmod-info-title,
[data-theme="light"] .projmod-info-title { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-info-val,
[data-theme="light"] .projmod-info-val { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-stat-val,
[data-theme="light"] .projmod-stat-val { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-users-card,
[data-theme="light"] .projmod-users-card {
  background: rgba(255,255,255,0.8); border-color: rgba(118,53,220,0.12);
}
:root:not([data-theme="dark"]) .projmod-user-name,
[data-theme="light"] .projmod-user-name { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-progress-card,
[data-theme="light"] .projmod-progress-card {
  background: rgba(255,255,255,0.85); border-color: rgba(118,53,220,0.15);
}
:root:not([data-theme="dark"]) .projmod-progress-title,
[data-theme="light"] .projmod-progress-title { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-progress-val,
[data-theme="light"] .projmod-progress-val { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-tasks-card,
[data-theme="light"] .projmod-tasks-card {
  background: rgba(255,255,255,0.85); border-color: rgba(118,53,220,0.15);
}
:root:not([data-theme="dark"]) .projmod-tasks-title,
[data-theme="light"] .projmod-tasks-title { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-task-name,
[data-theme="light"] .projmod-task-name { color: #212B36; }
:root:not([data-theme="dark"]) .projmod-proj-name,
[data-theme="light"] .projmod-proj-name { color: #212B36; }

/* ═══════════════════════════════════════════════
   GEOFENCE MODULE  (geomod-*)
═══════════════════════════════════════════════ */
.geomod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06),
              0 24px 60px rgba(0,0,0,0.45),
              0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.geomod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(24,178,75,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* View-switcher sits above shell (reuses fmod-view-tabs styles) */

/* Top bar */
.geomod-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 16px;
  background: rgba(7,12,8,0.9);
  border-bottom: 1px solid rgba(24,178,75,0.12);
  position: relative;
}
.geomod-topbar-title {
  font-size: 0.875rem; font-weight: 700; color: #F4FAF5; flex: 1;
  letter-spacing: 0.01em;
}
.geomod-breadcrumb {
  font-size: 0.6875rem; color: rgba(196,220,200,0.45);
  display: none;
}
.geomod-breadcrumb.visible { display: block; }
.geomod-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; border: none; cursor: pointer;
  transition: opacity .18s;
}
.geomod-btn:hover { opacity: .82; }
.geomod-btn--green { background: #18B24B; color: #fff; }
.geomod-btn--outline {
  background: transparent;
  border: 1px solid rgba(24,178,75,0.3);
  color: rgba(196,220,200,0.7);
}
.geomod-btn--back {
  background: rgba(24,178,75,0.08);
  border: 1px solid rgba(24,178,75,0.2);
  color: rgba(196,220,200,0.7);
}

/* ── Two-column layout ── */
.geomod-body {
  display: grid;
  grid-template-columns: 220px 1fr;
  min-height: 480px;
  position: relative;
}

/* ── Left settings sidebar ── */
.geomod-sidebar {
  background: rgba(7,12,8,0.7);
  border-right: 1px solid rgba(24,178,75,0.1);
  padding: 12px 0;
}
.geomod-sidebar-title {
  font-size: 0.6rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: rgba(196,220,200,0.35);
  padding: 4px 14px 8px;
}
.geomod-nav-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.75rem; color: rgba(196,220,200,0.55);
  padding: 8px 14px; cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.geomod-nav-item:hover { color: rgba(196,220,200,0.85); background: rgba(24,178,75,0.04); }
.geomod-nav-item.active {
  color: #18B24B;
  background: rgba(24,178,75,0.08);
  border-left-color: #18B24B;
  font-weight: 600;
}
.geomod-nav-item i { width: 14px; text-align: center; font-size: 0.6875rem; }

/* ── Right content panel ── */
.geomod-content {
  padding: 20px;
  overflow-y: auto;
}
.geomod-section-title {
  font-size: 0.9375rem; font-weight: 700; color: #F4FAF5;
  margin-bottom: 16px;
}

/* ── Config cards (settings) ── */
.geomod-card {
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 14px;
}
.geomod-card-title {
  font-size: 0.8125rem; font-weight: 600; color: #F4FAF5;
  margin-bottom: 14px;
}

/* Toggle row */
.geomod-toggle-row {
  display: flex; align-items: center; gap: 10px;
  margin-bottom: 14px;
}
.geomod-toggle {
  position: relative; width: 36px; height: 20px; flex-shrink: 0;
}
.geomod-toggle input { opacity: 0; width: 0; height: 0; }
.geomod-toggle-track {
  position: absolute; inset: 0;
  background: rgba(24,178,75,0.2);
  border-radius: 20px;
  cursor: pointer; transition: background .2s;
}
.geomod-toggle-track::after {
  content: ''; position: absolute;
  left: 3px; top: 3px;
  width: 14px; height: 14px;
  background: rgba(196,220,200,0.5);
  border-radius: 50%; transition: transform .2s, background .2s;
}
.geomod-toggle input:checked + .geomod-toggle-track {
  background: #18B24B;
}
.geomod-toggle input:checked + .geomod-toggle-track::after {
  transform: translateX(16px); background: #fff;
}
.geomod-toggle-label {
  font-size: 0.8125rem; font-weight: 600; color: #F4FAF5;
}

/* Form field */
.geomod-field { margin-bottom: 12px; }
.geomod-field-label {
  font-size: 0.6875rem; color: rgba(196,220,200,0.5);
  margin-bottom: 5px; display: block;
}
.geomod-field-input {
  width: 100%; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(24,178,75,0.15);
  border-radius: 7px; padding: 7px 10px;
  font-size: 0.8125rem; color: #F4FAF5;
  box-sizing: border-box;
  outline: none; transition: border-color .15s;
}
.geomod-field-input:focus { border-color: rgba(24,178,75,0.4); }

/* Time-range row */
.geomod-time-row {
  display: flex; align-items: center; gap: 8px;
  margin-top: 8px;
}
.geomod-time-input {
  display: flex; align-items: center; gap: 5px;
  background: rgba(0,0,0,0.3);
  border: 1px solid rgba(24,178,75,0.15);
  border-radius: 7px; padding: 6px 10px;
  font-size: 0.8125rem; color: #F4FAF5; font-weight: 600;
}
.geomod-time-input i { color: rgba(196,220,200,0.4); font-size: 0.6875rem; }
.geomod-time-sep { color: rgba(196,220,200,0.35); font-size: 0.75rem; }
.geomod-range-bar {
  flex: 1; height: 4px; background: rgba(24,178,75,0.15);
  border-radius: 4px; position: relative; margin: 0 4px;
}
.geomod-range-fill {
  position: absolute; height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, #18B24B, #00AB55);
  left: 8%; right: 10%;
}
.geomod-range-thumb {
  position: absolute; top: 50%; transform: translate(-50%,-50%);
  width: 12px; height: 12px; background: #18B24B;
  border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 0 6px rgba(24,178,75,0.5);
  cursor: grab;
}
.geomod-range-thumb--start { left: 8%; }
.geomod-range-thumb--end { left: 90%; }

/* ── Save button ── */
.geomod-save-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: #18B24B; color: #fff;
  font-size: 0.8125rem; font-weight: 700;
  padding: 9px 22px; border-radius: 8px;
  border: none; cursor: pointer; margin-top: 8px;
  transition: opacity .18s;
}
.geomod-save-btn:hover { opacity: .85; }

/* ── Sites list view ── */
.geomod-sites-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 14px;
}
.geomod-sites-title {
  font-size: 0.875rem; font-weight: 700; color: #F4FAF5;
}
.geomod-site-card {
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.12);
  border-radius: 10px;
  padding: 12px 14px;
  margin-bottom: 10px;
  display: flex; align-items: center; gap: 12px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.geomod-site-card:hover {
  border-color: rgba(24,178,75,0.28);
  background: rgba(24,178,75,0.07);
}
.geomod-site-card.active {
  border-color: #18B24B;
  background: rgba(24,178,75,0.1);
}
.geomod-site-icon {
  width: 34px; height: 34px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; flex-shrink: 0;
}
.geomod-site-icon--green { background: rgba(24,178,75,0.15); color: #18B24B; }
.geomod-site-icon--blue  { background: rgba(24,144,255,0.15); color: #1890FF; }
.geomod-site-icon--amber { background: rgba(255,171,0,0.15);  color: #FFAB00; }
.geomod-site-icon--red   { background: rgba(255,86,48,0.15);  color: #FF5630; }
.geomod-site-name {
  font-size: 0.8125rem; font-weight: 600; color: #F4FAF5; flex: 1;
}
.geomod-site-meta {
  font-size: 0.6875rem; color: rgba(196,220,200,0.45); margin-top: 2px;
}
.geomod-site-badge {
  font-size: 0.625rem; font-weight: 700; padding: 3px 8px; border-radius: 20px;
}
.geomod-site-badge--active { background: rgba(24,178,75,0.15); color: #18B24B; }
.geomod-site-badge--off    { background: rgba(145,158,171,0.15); color: rgba(145,158,171,0.7); }
.geomod-site-radius {
  font-size: 0.6875rem; color: rgba(196,220,200,0.5); text-align: right;
}

/* ── Map mock ── */
.geomod-map-wrap {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(24,178,75,0.14);
  background: #1a2e1c;
  height: 240px;
  margin-bottom: 14px;
}
.geomod-map-bg {
  width: 100%; height: 100%; object-fit: cover; opacity: 0.55;
}
.geomod-map-overlay {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, rgba(24,178,75,0.08) 0%, rgba(11,19,12,0.5) 100%);
}
/* SVG map elements */
.geomod-map-svg { position: absolute; inset: 0; width: 100%; height: 100%; }

/* Map tabs bar */
.geomod-map-tabs {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: flex; background: rgba(11,19,12,0.85);
  border: 1px solid rgba(24,178,75,0.2); border-radius: 6px; overflow: hidden;
}
.geomod-map-tab {
  font-size: 0.6875rem; font-weight: 600; padding: 4px 10px;
  color: rgba(196,220,200,0.5); cursor: pointer;
  transition: all .15s;
}
.geomod-map-tab.active { background: rgba(24,178,75,0.18); color: #18B24B; }

/* Geofence circle on map */
.geomod-fence-circle {
  position: absolute; border-radius: 50%;
  border: 2px solid rgba(255,86,48,0.8);
  background: rgba(255,86,48,0.12);
  transform: translate(-50%,-50%);
  pointer-events: none;
}
.geomod-fence-pin {
  position: absolute; transform: translate(-50%,-100%);
  color: #FF5630; font-size: 1.125rem;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.5));
}
.geomod-map-label {
  position: absolute; background: rgba(11,19,12,0.85);
  border: 1px solid rgba(24,178,75,0.15); border-radius: 5px;
  font-size: 0.5625rem; color: rgba(196,220,200,0.75); padding: 2px 6px;
  white-space: nowrap; pointer-events: none;
}
.geomod-map-fullscreen-btn {
  position: absolute; top: 8px; right: 8px; z-index: 3;
  width: 24px; height: 24px; background: rgba(11,19,12,0.85);
  border: 1px solid rgba(24,178,75,0.2); border-radius: 5px;
  display: flex; align-items: center; justify-content: center;
  color: rgba(196,220,200,0.5); font-size: 0.625rem; cursor: pointer;
}

/* Coordinate + address form under map */
.geomod-coords-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  margin-bottom: 10px;
}
.geomod-addr-row {
  display: flex; gap: 8px; align-items: stretch; margin-bottom: 10px;
}
.geomod-addr-row .geomod-field-input { flex: 1; }
.geomod-locate-btn {
  background: rgba(24,178,75,0.12); border: 1px solid rgba(24,178,75,0.25);
  color: #18B24B; border-radius: 7px; padding: 0 12px;
  font-size: 0.75rem; cursor: pointer; transition: background .15s;
}
.geomod-locate-btn:hover { background: rgba(24,178,75,0.2); }
.geomod-radius-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 14px;
}
.geomod-radius-val {
  font-size: 0.8125rem; font-weight: 700; color: #F4FAF5;
  background: rgba(0,0,0,0.3); border: 1px solid rgba(24,178,75,0.15);
  border-radius: 7px; padding: 6px 10px; width: 60px; text-align: center;
}
.geomod-radius-unit {
  font-size: 0.75rem; color: rgba(196,220,200,0.45);
}
.geomod-radius-slider {
  flex: 1; -webkit-appearance: none; appearance: none;
  height: 4px; border-radius: 4px;
  background: linear-gradient(90deg, #18B24B 42%, rgba(24,178,75,0.2) 42%);
  outline: none; cursor: pointer;
}
.geomod-radius-slider::-webkit-slider-thumb {
  -webkit-appearance: none; width: 14px; height: 14px;
  border-radius: 50%; background: #18B24B;
  border: 2px solid #fff; box-shadow: 0 0 6px rgba(24,178,75,0.5);
}
.geomod-modal-actions {
  display: flex; justify-content: flex-end; gap: 10px;
  margin-top: 4px;
}
.geomod-cancel-btn {
  background: transparent; border: none;
  color: rgba(196,220,200,0.5); font-size: 0.8125rem; font-weight: 600;
  padding: 8px 16px; border-radius: 8px; cursor: pointer;
  transition: color .15s;
}
.geomod-cancel-btn:hover { color: rgba(196,220,200,0.8); }

/* Panel visibility */
.geomod-panel { display: none; }
.geomod-panel.active { display: block; }
.geomod-view { display: none; }
.geomod-view.active { display: grid; }

/* Responsive */
@media (max-width: 640px) {
  .geomod-body { grid-template-columns: 1fr; }
  .geomod-sidebar { display: flex; overflow-x: auto; border-right: none; border-bottom: 1px solid rgba(24,178,75,0.1); padding: 8px 0; }
  .geomod-nav-item { white-space: nowrap; border-left: none; border-bottom: 2px solid transparent; padding: 6px 12px; }
  .geomod-nav-item.active { border-left-color: transparent; border-bottom-color: #18B24B; }
  .geomod-coords-row { grid-template-columns: 1fr; }
}

/* Light-mode overrides */
:root:not([data-theme="dark"]) .geomod-shell,
[data-theme="light"] .geomod-shell {
  background: #F4F6F8; border-color: rgba(24,178,75,0.15);
}
:root:not([data-theme="dark"]) .geomod-topbar,
[data-theme="light"] .geomod-topbar {
  background: rgba(255,255,255,0.92); border-bottom-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .geomod-topbar-title,
[data-theme="light"] .geomod-topbar-title { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-sidebar,
[data-theme="light"] .geomod-sidebar { background: rgba(255,255,255,0.75); }
:root:not([data-theme="dark"]) .geomod-nav-item,
[data-theme="light"] .geomod-nav-item { color: rgba(33,43,54,0.6); }
:root:not([data-theme="dark"]) .geomod-nav-item.active,
[data-theme="light"] .geomod-nav-item.active { color: #18B24B; background: rgba(24,178,75,0.07); }
:root:not([data-theme="dark"]) .geomod-card,
[data-theme="light"] .geomod-card { background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.15); }
:root:not([data-theme="dark"]) .geomod-card-title,
[data-theme="light"] .geomod-card-title { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-toggle-label,
[data-theme="light"] .geomod-toggle-label { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-field-label,
[data-theme="light"] .geomod-field-label { color: rgba(33,43,54,0.6); }
:root:not([data-theme="dark"]) .geomod-field-input,
[data-theme="light"] .geomod-field-input {
  background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); color: #212B36;
}
:root:not([data-theme="dark"]) .geomod-time-input,
[data-theme="light"] .geomod-time-input {
  background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); color: #212B36;
}
:root:not([data-theme="dark"]) .geomod-section-title,
[data-theme="light"] .geomod-section-title { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-sites-title,
[data-theme="light"] .geomod-sites-title { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-site-card,
[data-theme="light"] .geomod-site-card {
  background: rgba(255,255,255,0.85); border-color: rgba(24,178,75,0.15);
}
:root:not([data-theme="dark"]) .geomod-site-name,
[data-theme="light"] .geomod-site-name { color: #212B36; }
:root:not([data-theme="dark"]) .geomod-map-wrap,
[data-theme="light"] .geomod-map-wrap { background: #d8e8da; }
:root:not([data-theme="dark"]) .geomod-radius-val,
[data-theme="light"] .geomod-radius-val {
  background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); color: #212B36;
}

/* ═══════════════════════════════════════════════
   PAYROLL / APPROVALS MODULE  (paymod-*)
═══════════════════════════════════════════════ */
.paymod-shell {
  margin-top: 40px;
  background: #0B130C;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06),
              0 24px 60px rgba(0,0,0,0.45),
              0 4px 16px rgba(0,0,0,0.3);
  overflow: hidden;
  position: relative;
}
.paymod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(0,135,90,0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,135,90,0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* Top bar */
.paymod-topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 16px;
  background: rgba(7,12,8,0.9);
  border-bottom: 1px solid rgba(24,178,75,0.1);
  flex-wrap: wrap;
}
.paymod-page-title {
  font-size: 1rem; font-weight: 800; color: #F4FAF5; letter-spacing: 0.01em;
}
.paymod-top-tabs {
  display: flex; gap: 0; border-bottom: none;
}
.paymod-top-tab {
  font-size: 0.75rem; font-weight: 600;
  padding: 5px 14px; background: transparent; border: none;
  color: rgba(196,220,200,0.45); cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all .15s;
}
.paymod-top-tab.active { color: #18B24B; border-bottom-color: #18B24B; }
.paymod-top-tab:hover:not(.active) { color: rgba(196,220,200,0.75); }
.paymod-period-nav {
  display: flex; align-items: center; gap: 6px; margin-left: auto;
}
.paymod-period-label {
  font-size: 0.75rem; font-weight: 600; color: rgba(196,220,200,0.65);
  padding: 0 4px;
}
.paymod-nav-arrow {
  width: 24px; height: 24px; display: flex; align-items: center; justify-content: center;
  background: rgba(24,178,75,0.06); border: 1px solid rgba(24,178,75,0.15);
  border-radius: 5px; color: rgba(196,220,200,0.5); font-size: 0.625rem;
  cursor: pointer; transition: all .15s;
}
.paymod-nav-arrow:hover { background: rgba(24,178,75,0.12); color: rgba(196,220,200,0.9); }
.paymod-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; font-weight: 700; padding: 6px 12px;
  border-radius: 7px; border: none; cursor: pointer; transition: opacity .15s;
}
.paymod-btn:hover { opacity: .82; }
.paymod-btn--green { background: #18B24B; color: #fff; }
.paymod-btn--red   { background: #FF5630; color: #fff; }

/* Main body: 3-col layout */
.paymod-body {
  display: grid;
  grid-template-columns: 220px 1fr 260px;
  min-height: 520px;
}

/* ── Left: employee list ── */
.paymod-emp-panel {
  background: rgba(7,12,8,0.65);
  border-right: 1px solid rgba(24,178,75,0.1);
  display: flex; flex-direction: column;
}
.paymod-emp-search {
  display: flex; align-items: center; gap: 7px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(24,178,75,0.08);
}
.paymod-emp-search input {
  flex: 1; background: rgba(0,0,0,0.3);
  border: 1px solid rgba(24,178,75,0.12); border-radius: 6px;
  padding: 5px 8px; font-size: 0.6875rem; color: #F4FAF5; outline: none;
}
.paymod-emp-search i { color: rgba(196,220,200,0.35); font-size: 0.6875rem; }
.paymod-emp-item {
  display: flex; align-items: center; gap: 9px;
  padding: 10px 12px; cursor: pointer;
  border-left: 2px solid transparent;
  transition: all .15s;
}
.paymod-emp-item:hover { background: rgba(24,178,75,0.04); }
.paymod-emp-item.active {
  background: rgba(24,178,75,0.07);
  border-left-color: #18B24B;
}
.paymod-emp-av {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.6875rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.paymod-emp-name {
  font-size: 0.75rem; font-weight: 600; color: #F4FAF5; line-height: 1.2;
}
.paymod-emp-meta {
  font-size: 0.5625rem; color: rgba(196,220,200,0.4);
  display: flex; gap: 6px; align-items: center; margin-top: 2px; flex-wrap: wrap;
}
.paymod-emp-hours-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.5rem; font-weight: 700; padding: 1px 5px; border-radius: 10px;
}
.paymod-emp-hours-badge--green { background: rgba(24,178,75,0.15); color: #18B24B; }
.paymod-emp-hours-badge--amber { background: rgba(255,171,0,0.15); color: #FFAB00; }
.paymod-approve-all-btn {
  margin: 10px 12px 12px;
  width: calc(100% - 24px);
  background: rgba(24,178,75,0.1);
  border: 1px solid rgba(24,178,75,0.2);
  color: #18B24B; font-size: 0.6875rem; font-weight: 700;
  padding: 7px 0; border-radius: 7px; cursor: pointer;
  transition: background .15s; text-align: center;
}
.paymod-approve-all-btn:hover { background: rgba(24,178,75,0.18); }
.paymod-emp-pagination {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 8px; border-top: 1px solid rgba(24,178,75,0.08);
  font-size: 0.5625rem; color: rgba(196,220,200,0.4); margin-top: auto;
}
.paymod-emp-pagination i { cursor: pointer; }

/* ── Centre: sub-tabs + day cards ── */
.paymod-centre {
  display: flex; flex-direction: column;
  overflow-y: auto; max-height: 520px;
}
.paymod-subtab-bar {
  display: flex; gap: 0;
  padding: 0 14px;
  border-bottom: 1px solid rgba(24,178,75,0.1);
  background: rgba(7,12,8,0.5);
  flex-shrink: 0;
}
.paymod-subtab {
  font-size: 0.6875rem; font-weight: 600;
  padding: 9px 14px; background: transparent; border: none;
  color: rgba(196,220,200,0.4); cursor: pointer;
  border-bottom: 2px solid transparent; transition: all .15s;
}
.paymod-subtab.active { color: #18B24B; border-bottom-color: #18B24B; }
.paymod-subtab:hover:not(.active) { color: rgba(196,220,200,0.7); }

/* Day card */
.paymod-day-list { padding: 10px 14px; }
.paymod-day-card {
  background: rgba(24,178,75,0.03);
  border: 1px solid rgba(24,178,75,0.1);
  border-radius: 10px; margin-bottom: 10px; overflow: hidden;
}
.paymod-day-header {
  display: grid; grid-template-columns: 44px 1fr auto;
  gap: 10px; align-items: start;
  padding: 10px 12px 0;
}
.paymod-day-cal {
  display: flex; flex-direction: column; align-items: center;
  background: rgba(24,178,75,0.06); border: 1px solid rgba(24,178,75,0.12);
  border-radius: 7px; padding: 4px 6px; font-size: 0.625rem;
}
.paymod-day-cal i { color: #18B24B; margin-bottom: 2px; font-size: 0.5rem; }
.paymod-day-name { font-size: 0.625rem; font-weight: 700; color: rgba(196,220,200,0.5); text-transform: uppercase; }
.paymod-day-num  { font-size: 0.875rem; font-weight: 800; color: #F4FAF5; line-height: 1; }
.paymod-day-month { font-size: 0.5rem; color: rgba(196,220,200,0.4); }
.paymod-day-rows { display: flex; flex-direction: column; gap: 3px; padding-top: 2px; }
.paymod-day-row {
  display: flex; align-items: center; gap: 8px;
}
.paymod-day-row-dot {
  width: 7px; height: 7px; border-radius: 50%; flex-shrink: 0;
}
.paymod-day-row-dot--green { background: #18B24B; }
.paymod-day-row-dot--amber { background: #FFAB00; }
.paymod-day-type { font-size: 0.6875rem; color: rgba(196,220,200,0.7); flex: 1; }
.paymod-day-hrs  { font-size: 0.6875rem; font-weight: 700; color: #F4FAF5; white-space: nowrap; }
.paymod-day-total-row {
  display: flex; align-items: center; gap: 8px;
  padding: 7px 12px 0; font-size: 0.6875rem;
}
.paymod-day-total-label { color: rgba(196,220,200,0.45); }
.paymod-day-total-val   { font-weight: 700; color: #F4FAF5; margin-left: auto; }
.paymod-day-badge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 0.5rem; font-weight: 700; padding: 2px 6px; border-radius: 10px;
}
.paymod-day-badge--green { background: rgba(24,178,75,0.15); color: #18B24B; }
.paymod-day-badge--amber { background: rgba(255,171,0,0.12); color: #FFAB00; }
.paymod-day-shift {
  font-size: 0.5625rem; color: rgba(196,220,200,0.35);
  padding: 0 12px 6px; display: flex; align-items: center; gap: 4px;
}
.paymod-day-shift i { font-size: 0.5rem; }
.paymod-day-actions {
  display: flex; gap: 8px; padding: 8px 12px 10px;
}
.paymod-day-approve-btn {
  flex: 1; background: #18B24B; color: #fff;
  font-size: 0.6875rem; font-weight: 700; padding: 7px 0;
  border-radius: 7px; border: none; cursor: pointer; transition: opacity .15s;
}
.paymod-day-approve-btn:hover { opacity: .85; }
.paymod-day-reject-btn {
  flex: 1; background: transparent;
  border: 1px solid rgba(255,86,48,0.4); color: #FF5630;
  font-size: 0.6875rem; font-weight: 700; padding: 7px 0;
  border-radius: 7px; cursor: pointer; transition: all .15s;
}
.paymod-day-reject-btn:hover { background: rgba(255,86,48,0.08); }

/* Approved/rejected state */
.paymod-day-card.approved {
  border-color: rgba(24,178,75,0.35);
  background: rgba(24,178,75,0.05);
}
.paymod-day-card.rejected {
  border-color: rgba(255,86,48,0.3);
  background: rgba(255,86,48,0.03);
  opacity: .65;
}
.paymod-approved-tag {
  display: none; font-size: 0.5625rem; font-weight: 700;
  color: #18B24B; padding: 2px 8px; border-radius: 10px;
  background: rgba(24,178,75,0.12);
}
.paymod-day-card.approved .paymod-approved-tag { display: inline-flex; align-items: center; gap: 4px; }
.paymod-day-card.approved .paymod-day-actions { display: none; }
.paymod-day-card.rejected .paymod-day-actions { display: none; }

/* ── Right: summary panel ── */
.paymod-summary {
  background: rgba(7,12,8,0.5);
  border-left: 1px solid rgba(24,178,75,0.1);
  padding: 14px;
  overflow-y: auto;
  max-height: 520px;
}
.paymod-summary-title {
  font-size: 0.8125rem; font-weight: 700; color: #F4FAF5; margin-bottom: 12px;
}
.paymod-summary-totals {
  display: flex; gap: 16px; margin-bottom: 12px; flex-wrap: wrap;
}
.paymod-summary-total {
  display: flex; flex-direction: column;
}
.paymod-summary-total-val  { font-size: 0.9375rem; font-weight: 800; color: #F4FAF5; }
.paymod-summary-total-label { font-size: 0.5625rem; color: rgba(196,220,200,0.4); }
.paymod-summary-chips {
  display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 12px;
}
.paymod-summary-chip {
  font-size: 0.5625rem; font-weight: 600; padding: 3px 8px; border-radius: 20px;
  border: 1px solid rgba(24,178,75,0.2); color: rgba(196,220,200,0.55);
  cursor: pointer; transition: all .15s;
}
.paymod-summary-chip:hover,
.paymod-summary-chip.active {
  background: rgba(24,178,75,0.1); color: #18B24B; border-color: rgba(24,178,75,0.35);
}
.paymod-pay-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0; border-bottom: 1px solid rgba(24,178,75,0.06);
}
.paymod-pay-row:last-child { border-bottom: none; }
.paymod-pay-type { font-size: 0.6875rem; color: rgba(196,220,200,0.65); flex: 1; }
.paymod-pay-hrs  { font-size: 0.6875rem; font-weight: 700; color: #F4FAF5; white-space: nowrap; }
.paymod-pay-bar  { height: 3px; border-radius: 3px; margin-top: 2px; }
.paymod-pay-bar--green  { background: #18B24B; }
.paymod-pay-bar--amber  { background: #FFAB00; }
.paymod-pay-bar--blue   { background: #1890FF; }

/* Section divider in summary */
.paymod-summary-section {
  font-size: 0.5625rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(196,220,200,0.3);
  margin: 10px 0 6px;
}

/* Open Lønnsarter btn */
.paymod-lonnsarter-btn {
  width: 100%; margin-top: 10px;
  background: rgba(24,178,75,0.08); border: 1px solid rgba(24,178,75,0.2);
  color: #18B24B; font-size: 0.6875rem; font-weight: 700;
  padding: 7px 0; border-radius: 7px; cursor: pointer;
  transition: background .15s; display: flex; align-items: center; justify-content: center; gap: 6px;
}
.paymod-lonnsarter-btn:hover { background: rgba(24,178,75,0.15); }

/* ── Lønnsarter modal ── */
.paymod-modal-overlay {
  display: none; position: absolute; inset: 0; z-index: 50;
  background: rgba(7,12,8,0.75); backdrop-filter: blur(3px);
  align-items: center; justify-content: center;
}
.paymod-modal-overlay.open { display: flex; }
.paymod-modal {
  background: #0f1a10;
  border: 1px solid rgba(24,178,75,0.2);
  border-radius: 14px;
  width: 360px; max-width: 90%;
  max-height: 480px;
  display: flex; flex-direction: column;
  box-shadow: 0 24px 60px rgba(0,0,0,0.55);
  overflow: hidden;
}
.paymod-modal-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(24,178,75,0.1);
  font-size: 0.875rem; font-weight: 700; color: #F4FAF5;
  flex-shrink: 0;
}
.paymod-modal-body {
  overflow-y: auto; padding: 10px 16px; flex: 1;
}
.paymod-modal-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 5px 0;
}
.paymod-modal-type { font-size: 0.6875rem; color: rgba(196,220,200,0.7); flex: 1; }
.paymod-modal-hrs  { font-size: 0.6875rem; font-weight: 700; color: #F4FAF5; white-space: nowrap; }
.paymod-modal-bar  { height: 2px; border-radius: 2px; background: #18B24B; margin-bottom: 4px; }
.paymod-modal-section {
  font-size: 0.5625rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: rgba(255,171,0,0.6);
  margin: 10px 0 4px;
}
.paymod-modal-section--fixed { color: rgba(24,144,255,0.6); }
.paymod-modal-empty {
  font-size: 0.6875rem; color: rgba(196,220,200,0.35); padding: 4px 0;
}
.paymod-modal-footer {
  padding: 10px 16px;
  border-top: 1px solid rgba(24,178,75,0.1);
  flex-shrink: 0;
}
.paymod-modal-done-btn {
  width: 100%; background: #18B24B; color: #fff;
  font-size: 0.8125rem; font-weight: 700; padding: 9px 0;
  border-radius: 8px; border: none; cursor: pointer;
  transition: opacity .15s;
}
.paymod-modal-done-btn:hover { opacity: .85; }

/* Responsive — handled in the consolidated block at end of file */

/* Light-mode overrides */
:root:not([data-theme="dark"]) .paymod-shell,
[data-theme="light"] .paymod-shell {
  background: #F4F6F8; border-color: rgba(0,135,90,0.15);
}
:root:not([data-theme="dark"]) .paymod-topbar,
[data-theme="light"] .paymod-topbar {
  background: rgba(255,255,255,0.95); border-bottom-color: rgba(0,135,90,0.12);
}
:root:not([data-theme="dark"]) .paymod-page-title,
[data-theme="light"] .paymod-page-title { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-emp-panel,
[data-theme="light"] .paymod-emp-panel { background: rgba(255,255,255,0.8); }
:root:not([data-theme="dark"]) .paymod-emp-name,
[data-theme="light"] .paymod-emp-name { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-centre,
[data-theme="light"] .paymod-centre { background: transparent; }
:root:not([data-theme="dark"]) .paymod-day-card,
[data-theme="light"] .paymod-day-card {
  background: rgba(255,255,255,0.85); border-color: rgba(0,135,90,0.15);
}
:root:not([data-theme="dark"]) .paymod-day-hrs,
[data-theme="light"] .paymod-day-hrs { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-day-total-val,
[data-theme="light"] .paymod-day-total-val { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-summary,
[data-theme="light"] .paymod-summary { background: rgba(255,255,255,0.75); }
:root:not([data-theme="dark"]) .paymod-summary-title,
[data-theme="light"] .paymod-summary-title { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-summary-total-val,
[data-theme="light"] .paymod-summary-total-val { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-pay-hrs,
[data-theme="light"] .paymod-pay-hrs { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-modal,
[data-theme="light"] .paymod-modal { background: #fff; border-color: rgba(0,135,90,0.2); }
:root:not([data-theme="dark"]) .paymod-modal-header,
[data-theme="light"] .paymod-modal-header { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-modal-type,
[data-theme="light"] .paymod-modal-type { color: rgba(33,43,54,0.7); }
:root:not([data-theme="dark"]) .paymod-modal-hrs,
[data-theme="light"] .paymod-modal-hrs { color: #212B36; }

/* ═══════════════════════════════════════════════
   ORG CHART MODULE  (orgmod-*)
═══════════════════════════════════════════════ */
.orgmod-shell {
  margin-top: 40px;
  background: #070e0a;
  border: 1px solid rgba(24,178,75,0.14);
  border-radius: 16px;
  box-shadow: 0 0 0 1px rgba(24,178,75,0.06),
              0 24px 60px rgba(0,0,0,0.50),
              0 4px 16px rgba(0,0,0,0.35);
  overflow: hidden;
  position: relative;
}
.orgmod-shell::before {
  content: '';
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(24,178,75,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}

/* Top bar */
.orgmod-topbar {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 16px;
  background: rgba(7,14,10,0.95);
  border-bottom: 1px solid rgba(24,178,75,0.1);
  position: relative; z-index: 2; flex-wrap: wrap;
}
.orgmod-topbar-title {
  font-size: 0.9375rem; font-weight: 800; color: #F4FAF5;
  letter-spacing: 0.01em;
}
.orgmod-btn {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 0.6875rem; font-weight: 600;
  padding: 6px 12px; border-radius: 7px; border: none; cursor: pointer;
  transition: opacity .15s;
}
.orgmod-btn:hover { opacity: .82; }
.orgmod-btn--green  { background: #18B24B; color: #fff; }
.orgmod-btn--outline {
  background: transparent;
  border: 1px solid rgba(24,178,75,0.25);
  color: rgba(196,220,200,0.65);
}
.orgmod-breadcrumb {
  font-size: 0.6875rem; color: rgba(196,220,200,0.38);
}

/* Scrollable canvas area */
.orgmod-canvas-wrap {
  overflow-x: auto; overflow-y: auto;
  position: relative; z-index: 1;
  padding: 32px 24px 28px;
  min-height: 440px;
  cursor: grab;
}
.orgmod-canvas-wrap:active { cursor: grabbing; }

/* The tree container — fixed-width to allow horizontal scroll */
.orgmod-tree {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 1100px;
  position: relative;
  user-select: none;
}

/* Rows */
.orgmod-row {
  display: flex;
  justify-content: center;
  gap: 20px;
  position: relative;
  width: 100%;
}
.orgmod-row--root  { margin-bottom: 0; }
.orgmod-row--l2    { margin-bottom: 0; }
.orgmod-row--l3    { margin-bottom: 0; }

/* Column wrapper used to group a L2 node with its L3 children */
.orgmod-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
}

/* SVG connector layer */
.orgmod-svg {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  overflow: visible;
}
.orgmod-connector {
  fill: none;
  stroke: rgba(24,178,75,0.35);
  stroke-width: 1.5;
}

/* ── Node card ── */
.orgmod-node {
  display: flex;
  flex-direction: column;
  min-width: 110px;
  max-width: 130px;
  border-radius: 8px;
  overflow: hidden;
  border: 1px solid rgba(24,178,75,0.3);
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
  cursor: pointer;
  transition: border-color .2s, box-shadow .2s, transform .15s;
  position: relative;
}
.orgmod-node:hover {
  border-color: rgba(24,178,75,0.65);
  box-shadow: 0 4px 20px rgba(24,178,75,0.2);
  transform: translateY(-2px);
}
.orgmod-node.active {
  border-color: #18B24B;
  box-shadow: 0 0 0 2px rgba(24,178,75,0.4), 0 4px 20px rgba(24,178,75,0.25);
}
.orgmod-node--root {
  min-width: 120px; max-width: 140px;
  border-color: rgba(24,178,75,0.55);
}
.orgmod-node--teal {
  border-color: rgba(0,184,212,0.45);
}
.orgmod-node--teal:hover {
  border-color: rgba(0,184,212,0.8);
  box-shadow: 0 4px 20px rgba(0,184,212,0.2);
}
.orgmod-node--teal.active {
  border-color: #00B8D9;
  box-shadow: 0 0 0 2px rgba(0,184,212,0.35), 0 4px 20px rgba(0,184,212,0.2);
}

/* Node header (coloured top band) */
.orgmod-node-head {
  padding: 8px 9px 7px;
  font-size: 0.625rem; font-weight: 700;
  color: #fff; text-align: center;
  line-height: 1.25;
  min-height: 38px; display: flex; align-items: center; justify-content: center;
}
.orgmod-node-head--green  { background: #18B24B; }
.orgmod-node-head--teal   { background: #00B8D9; }
.orgmod-node-head--root   { background: #00875A; font-size: 0.6875rem; }

/* Node footer (dark action strip) */
.orgmod-node-foot {
  background: rgba(0,0,0,0.55);
  display: flex; align-items: center; justify-content: center; gap: 10px;
  padding: 5px 8px;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.orgmod-foot-btn {
  display: flex; align-items: center; justify-content: center;
  width: 20px; height: 20px;
  border-radius: 4px;
  background: rgba(24,178,75,0.1);
  border: 1px solid rgba(24,178,75,0.2);
  color: rgba(196,220,200,0.6);
  font-size: 0.5625rem;
  cursor: pointer; transition: all .15s;
}
.orgmod-foot-btn:hover {
  background: rgba(24,178,75,0.2);
  color: #18B24B;
  border-color: rgba(24,178,75,0.4);
}
.orgmod-node--teal .orgmod-foot-btn {
  background: rgba(0,184,212,0.1);
  border-color: rgba(0,184,212,0.2);
  color: rgba(0,184,212,0.6);
}
.orgmod-node--teal .orgmod-foot-btn:hover {
  background: rgba(0,184,212,0.2);
  color: #00B8D9;
}

/* Vertical spacer / connector segment */
.orgmod-vline {
  width: 1.5px;
  background: rgba(24,178,75,0.3);
  margin: 0 auto;
  flex-shrink: 0;
}

/* ── Side detail panel ── */
.orgmod-detail-panel {
  display: none;
  border-top: 1px solid rgba(24,178,75,0.1);
  background: rgba(7,14,10,0.7);
  padding: 16px 20px;
  position: relative; z-index: 2;
}
.orgmod-detail-panel.open { display: block; }
.orgmod-detail-header {
  display: flex; align-items: center; gap: 10px; margin-bottom: 14px;
}
.orgmod-detail-icon {
  width: 36px; height: 36px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.875rem; flex-shrink: 0;
}
.orgmod-detail-icon--green { background: rgba(24,178,75,0.15); color: #18B24B; }
.orgmod-detail-icon--teal  { background: rgba(0,184,212,0.15);  color: #00B8D9; }
.orgmod-detail-name {
  font-size: 0.9375rem; font-weight: 700; color: #F4FAF5;
}
.orgmod-detail-path {
  font-size: 0.6875rem; color: rgba(196,220,200,0.4); margin-top: 2px;
}
.orgmod-detail-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 14px;
}
.orgmod-detail-stat {
  background: rgba(24,178,75,0.04);
  border: 1px solid rgba(24,178,75,0.1);
  border-radius: 8px; padding: 10px 12px;
}
.orgmod-detail-stat-val {
  font-size: 1.0625rem; font-weight: 800; color: #F4FAF5;
}
.orgmod-detail-stat-lbl {
  font-size: 0.5625rem; color: rgba(196,220,200,0.4); margin-top: 2px;
}
.orgmod-detail-members {
  margin-top: 4px;
}
.orgmod-detail-members-title {
  font-size: 0.6875rem; font-weight: 700; color: rgba(196,220,200,0.5);
  text-transform: uppercase; letter-spacing: .06em;
  margin-bottom: 8px;
}
.orgmod-member-row {
  display: flex; align-items: center; gap: 9px;
  padding: 6px 0; border-bottom: 1px solid rgba(24,178,75,0.06);
}
.orgmod-member-row:last-child { border-bottom: none; }
.orgmod-member-av {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.5625rem; font-weight: 700; color: #fff; flex-shrink: 0;
}
.orgmod-member-name  { font-size: 0.75rem; color: #F4FAF5; flex: 1; }
.orgmod-member-role  { font-size: 0.625rem; color: rgba(196,220,200,0.4); }
.orgmod-close-panel {
  position: absolute; top: 14px; right: 16px;
  background: rgba(24,178,75,0.06); border: 1px solid rgba(24,178,75,0.15);
  color: rgba(196,220,200,0.5); font-size: 0.625rem;
  padding: 4px 10px; border-radius: 6px; cursor: pointer; transition: all .15s;
}
.orgmod-close-panel:hover { background: rgba(24,178,75,0.12); color: #18B24B; }

/* Responsive */
@media (max-width: 860px) {
  .orgmod-detail-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .orgmod-tree { min-width: 820px; }
  .orgmod-detail-grid { grid-template-columns: 1fr 1fr; }
}

/* Light-mode overrides */
:root:not([data-theme="dark"]) .orgmod-shell,
[data-theme="light"] .orgmod-shell {
  background: #F4F6F8; border-color: rgba(24,178,75,0.15);
}
:root:not([data-theme="dark"]) .orgmod-topbar,
[data-theme="light"] .orgmod-topbar {
  background: rgba(255,255,255,0.95); border-bottom-color: rgba(24,178,75,0.12);
}
:root:not([data-theme="dark"]) .orgmod-topbar-title,
[data-theme="light"] .orgmod-topbar-title { color: #212B36; }
:root:not([data-theme="dark"]) .orgmod-canvas-wrap,
[data-theme="light"] .orgmod-canvas-wrap { background: #f0f4f1; }
:root:not([data-theme="dark"]) .orgmod-node-foot,
[data-theme="light"] .orgmod-node-foot { background: rgba(0,0,0,0.1); }
:root:not([data-theme="dark"]) .orgmod-detail-panel,
[data-theme="light"] .orgmod-detail-panel { background: rgba(255,255,255,0.85); }
:root:not([data-theme="dark"]) .orgmod-detail-name,
[data-theme="light"] .orgmod-detail-name { color: #212B36; }
:root:not([data-theme="dark"]) .orgmod-detail-stat,
[data-theme="light"] .orgmod-detail-stat { background: rgba(255,255,255,0.9); }
:root:not([data-theme="dark"]) .orgmod-detail-stat-val,
[data-theme="light"] .orgmod-detail-stat-val { color: #212B36; }
:root:not([data-theme="dark"]) .orgmod-member-name,
[data-theme="light"] .orgmod-member-name { color: #212B36; }
:root:not([data-theme="dark"]) .orgmod-breadcrumb,
[data-theme="light"] .orgmod-breadcrumb { color: rgba(33,43,54,0.45); }

/* ═══════════════════════════════════════════════════════════════
   COMPREHENSIVE LIGHT-MODE FIXES  — all showcase modules
   (fills every gap left by the initial per-module overrides)
   Uses explicit :root:not([data-theme="dark"]) + [data-theme="light"]
   selectors for maximum browser compatibility.
════════════════════════════════════════════════════════════════ */

/* ──────────────────────────────────────────────────────────────
   PROJMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .projmod-shell::before,
[data-theme="light"] .projmod-shell::before {
  background-image:
    linear-gradient(rgba(118,53,220,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(118,53,220,0.035) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .projmod-table th,
[data-theme="light"] .projmod-table th {
  color: rgba(33,43,54,0.45); border-bottom-color: rgba(118,53,220,0.12);
}
:root:not([data-theme="dark"]) .projmod-table td,
[data-theme="light"] .projmod-table td { border-bottom-color: rgba(118,53,220,0.08); }

:root:not([data-theme="dark"]) .projmod-proj-sub,
[data-theme="light"] .projmod-proj-sub { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .projmod-muted,
[data-theme="light"] .projmod-muted { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .projmod-num-cell,
[data-theme="light"] .projmod-num-cell { color: rgba(33,43,54,0.65); }
:root:not([data-theme="dark"]) .projmod-num-cell i,
[data-theme="light"] .projmod-num-cell i { color: rgba(33,43,54,0.35); }
:root:not([data-theme="dark"]) .projmod-breadcrumb,
[data-theme="light"] .projmod-breadcrumb { color: rgba(33,43,54,0.4); }

:root:not([data-theme="dark"]) .projmod-tab-top,
[data-theme="light"] .projmod-tab-top { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .projmod-tab-top:hover:not(.active),
[data-theme="light"] .projmod-tab-top:hover:not(.active) { color: rgba(33,43,54,0.75); }

:root:not([data-theme="dark"]) .projmod-info-sub,
[data-theme="light"] .projmod-info-sub { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .projmod-info-label,
[data-theme="light"] .projmod-info-label { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .projmod-info-val--muted,
[data-theme="light"] .projmod-info-val--muted { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .projmod-stat-label,
[data-theme="light"] .projmod-stat-label { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .projmod-stats-row,
[data-theme="light"] .projmod-stats-row { border-top-color: rgba(118,53,220,0.12); }

:root:not([data-theme="dark"]) .projmod-resp-chip,
[data-theme="light"] .projmod-resp-chip {
  background: rgba(118,53,220,0.07); border-color: rgba(118,53,220,0.18); color: rgba(33,43,54,0.75);
}
:root:not([data-theme="dark"]) .projmod-badge--gray,
[data-theme="light"] .projmod-badge--gray { background: rgba(145,158,171,0.12); color: #637381; }

:root:not([data-theme="dark"]) .projmod-users-tabs,
[data-theme="light"] .projmod-users-tabs { border-bottom-color: rgba(118,53,220,0.1); }
:root:not([data-theme="dark"]) .projmod-users-tab,
[data-theme="light"] .projmod-users-tab { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .projmod-users-tab.active,
[data-theme="light"] .projmod-users-tab.active { color: #18B24B; }
:root:not([data-theme="dark"]) .projmod-user-row,
[data-theme="light"] .projmod-user-row { border-bottom-color: rgba(118,53,220,0.07); }
:root:not([data-theme="dark"]) .projmod-user-hours,
[data-theme="light"] .projmod-user-hours { color: rgba(33,43,54,0.55); }

:root:not([data-theme="dark"]) .projmod-progress-label,
[data-theme="light"] .projmod-progress-label { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .projmod-progress-pct,
[data-theme="light"] .projmod-progress-pct { color: rgba(33,43,54,0.38); }
:root:not([data-theme="dark"]) .projmod-bar-track,
[data-theme="light"] .projmod-bar-track { background: rgba(0,0,0,0.08); }

:root:not([data-theme="dark"]) .projmod-tasks-header,
[data-theme="light"] .projmod-tasks-header { border-bottom-color: rgba(118,53,220,0.1); }
:root:not([data-theme="dark"]) .projmod-tasks-table th,
[data-theme="light"] .projmod-tasks-table th { color: rgba(33,43,54,0.4); border-bottom-color: rgba(118,53,220,0.1); }
:root:not([data-theme="dark"]) .projmod-tasks-table td,
[data-theme="light"] .projmod-tasks-table td { color: #212B36; border-bottom-color: rgba(118,53,220,0.07); }
:root:not([data-theme="dark"]) .projmod-tasks-table tr:hover td,
[data-theme="light"] .projmod-tasks-table tr:hover td { background: rgba(118,53,220,0.04); }
:root:not([data-theme="dark"]) .projmod-task-bar-track,
[data-theme="light"] .projmod-task-bar-track { background: rgba(0,0,0,0.08); }

:root:not([data-theme="dark"]) .projmod-kebab,
[data-theme="light"] .projmod-kebab { color: rgba(33,43,54,0.3); }
:root:not([data-theme="dark"]) .projmod-kebab:hover,
[data-theme="light"] .projmod-kebab:hover { color: rgba(33,43,54,0.65); }

:root:not([data-theme="dark"]) .projmod-btn--outline,
:root:not([data-theme="dark"]) .projmod-btn--back,
[data-theme="light"] .projmod-btn--outline,
[data-theme="light"] .projmod-btn--back { color: rgba(33,43,54,0.65); border-color: rgba(118,53,220,0.25); }
:root:not([data-theme="dark"]) .projmod-btn--outline:hover,
:root:not([data-theme="dark"]) .projmod-btn--back:hover,
[data-theme="light"] .projmod-btn--outline:hover,
[data-theme="light"] .projmod-btn--back:hover { border-color: #7635DC; color: #7635DC; }

/* ──────────────────────────────────────────────────────────────
   CHKMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .chkmod-shell::before,
[data-theme="light"] .chkmod-shell::before {
  background-image:
    linear-gradient(rgba(24,178,75,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.035) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .chkmod-table th,
[data-theme="light"] .chkmod-table th { color: rgba(33,43,54,0.45); border-bottom-color: rgba(24,178,75,0.12); }
:root:not([data-theme="dark"]) .chkmod-table td,
[data-theme="light"] .chkmod-table td { border-bottom-color: rgba(24,178,75,0.08); }

:root:not([data-theme="dark"]) .chkmod-num,
[data-theme="light"] .chkmod-num { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .chkmod-proj-name,
[data-theme="light"] .chkmod-proj-name { color: #212B36; }
:root:not([data-theme="dark"]) .chkmod-proj-sub,
[data-theme="light"] .chkmod-proj-sub { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .chkmod-reporter,
[data-theme="light"] .chkmod-reporter { color: #212B36; }

:root:not([data-theme="dark"]) .chkmod-meta-label,
[data-theme="light"] .chkmod-meta-label { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .chkmod-meta-sub,
[data-theme="light"] .chkmod-meta-sub { color: rgba(33,43,54,0.4); }

:root:not([data-theme="dark"]) .chkmod-q-header,
[data-theme="light"] .chkmod-q-header {
  color: #212B36; border-bottom-color: rgba(24,178,75,0.12); background: rgba(255,255,255,0.5);
}
:root:not([data-theme="dark"]) .chkmod-q-item,
[data-theme="light"] .chkmod-q-item { border-bottom-color: rgba(24,178,75,0.08); }
:root:not([data-theme="dark"]) .chkmod-radio-opt,
[data-theme="light"] .chkmod-radio-opt { color: rgba(33,43,54,0.7); }
:root:not([data-theme="dark"]) .chkmod-comment-label,
[data-theme="light"] .chkmod-comment-label { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .chkmod-bilder-label,
[data-theme="light"] .chkmod-bilder-label { color: rgba(33,43,54,0.45); }

:root:not([data-theme="dark"]) .chkmod-thumb,
[data-theme="light"] .chkmod-thumb { background: rgba(24,178,75,0.06); border-color: rgba(24,178,75,0.18); }
:root:not([data-theme="dark"]) .chkmod-history-bar,
[data-theme="light"] .chkmod-history-bar { background: rgba(0,0,0,0.04); color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .chkmod-history-ts,
[data-theme="light"] .chkmod-history-ts { color: rgba(33,43,54,0.35); }

:root:not([data-theme="dark"]) .chkmod-tabs-inner,
[data-theme="light"] .chkmod-tabs-inner { background: rgba(24,178,75,0.05); border-color: rgba(24,178,75,0.18); }
:root:not([data-theme="dark"]) .chkmod-tab-inner,
[data-theme="light"] .chkmod-tab-inner { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .chkmod-tab-inner:hover:not(.active),
[data-theme="light"] .chkmod-tab-inner:hover:not(.active) { color: rgba(33,43,54,0.8); }

:root:not([data-theme="dark"]) .chkmod-btn--outline,
[data-theme="light"] .chkmod-btn--outline { color: rgba(33,43,54,0.65); border-color: rgba(24,178,75,0.25); }
:root:not([data-theme="dark"]) .chkmod-btn--outline:hover,
[data-theme="light"] .chkmod-btn--outline:hover { border-color: #18B24B; color: #18B24B; }

/* ──────────────────────────────────────────────────────────────
   DEVMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .devmod-shell::before,
[data-theme="light"] .devmod-shell::before {
  background-image:
    linear-gradient(rgba(24,178,75,0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.035) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .devmod-table th,
[data-theme="light"] .devmod-table th { color: rgba(33,43,54,0.45); border-bottom-color: rgba(24,178,75,0.12); }
:root:not([data-theme="dark"]) .devmod-table td,
[data-theme="light"] .devmod-table td { border-bottom-color: rgba(24,178,75,0.08); }

:root:not([data-theme="dark"]) .devmod-num,
[data-theme="light"] .devmod-num { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .devmod-proj-name,
[data-theme="light"] .devmod-proj-name { color: #212B36; }
:root:not([data-theme="dark"]) .devmod-proj-code,
[data-theme="light"] .devmod-proj-code { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .devmod-reporter,
[data-theme="light"] .devmod-reporter { color: #212B36; }

:root:not([data-theme="dark"]) .devmod-sum-label,
[data-theme="light"] .devmod-sum-label { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .devmod-sum-cell,
[data-theme="light"] .devmod-sum-cell { border-right-color: rgba(24,178,75,0.1); }

:root:not([data-theme="dark"]) .devmod-field-label,
[data-theme="light"] .devmod-field-label { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .devmod-field-val--muted,
[data-theme="light"] .devmod-field-val--muted { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .devmod-radio-opt,
[data-theme="light"] .devmod-radio-opt { color: rgba(33,43,54,0.7); }
:root:not([data-theme="dark"]) .devmod-star--off,
[data-theme="light"] .devmod-star--off { color: rgba(33,43,54,0.2); }

:root:not([data-theme="dark"]) .devmod-btn--back,
[data-theme="light"] .devmod-btn--back { color: rgba(33,43,54,0.65); border-color: rgba(24,178,75,0.25); }
:root:not([data-theme="dark"]) .devmod-btn--back:hover,
[data-theme="light"] .devmod-btn--back:hover { border-color: #18B24B; color: #18B24B; }

/* ──────────────────────────────────────────────────────────────
   GEOMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .geomod-shell::before,
[data-theme="light"] .geomod-shell::before {
  background-image:
    linear-gradient(rgba(24,178,75,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.025) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .geomod-sidebar,
[data-theme="light"] .geomod-sidebar { border-right-color: rgba(24,178,75,0.12); }
:root:not([data-theme="dark"]) .geomod-sidebar-title,
[data-theme="light"] .geomod-sidebar-title { color: rgba(33,43,54,0.35); }
:root:not([data-theme="dark"]) .geomod-nav-item:hover,
[data-theme="light"] .geomod-nav-item:hover { background: rgba(24,178,75,0.05); color: rgba(33,43,54,0.85); }

:root:not([data-theme="dark"]) .geomod-time-sep,
[data-theme="light"] .geomod-time-sep { color: rgba(33,43,54,0.35); }
:root:not([data-theme="dark"]) .geomod-range-bar,
[data-theme="light"] .geomod-range-bar { background: rgba(24,178,75,0.12); }

:root:not([data-theme="dark"]) .geomod-map-tabs,
[data-theme="light"] .geomod-map-tabs { background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); }
:root:not([data-theme="dark"]) .geomod-map-tab,
[data-theme="light"] .geomod-map-tab { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .geomod-map-tab.active,
[data-theme="light"] .geomod-map-tab.active { background: rgba(24,178,75,0.12); color: #18B24B; }
:root:not([data-theme="dark"]) .geomod-map-label,
[data-theme="light"] .geomod-map-label {
  background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); color: rgba(33,43,54,0.7);
}
:root:not([data-theme="dark"]) .geomod-map-fullscreen-btn,
[data-theme="light"] .geomod-map-fullscreen-btn {
  background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.2); color: rgba(33,43,54,0.5);
}

:root:not([data-theme="dark"]) .geomod-radius-unit,
[data-theme="light"] .geomod-radius-unit { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .geomod-cancel-btn,
[data-theme="light"] .geomod-cancel-btn { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .geomod-cancel-btn:hover,
[data-theme="light"] .geomod-cancel-btn:hover { color: rgba(33,43,54,0.8); }
:root:not([data-theme="dark"]) .geomod-locate-btn,
[data-theme="light"] .geomod-locate-btn { color: #15803d; }

:root:not([data-theme="dark"]) .geomod-site-meta,
[data-theme="light"] .geomod-site-meta { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .geomod-site-radius,
[data-theme="light"] .geomod-site-radius { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .geomod-site-badge--off,
[data-theme="light"] .geomod-site-badge--off { color: rgba(33,43,54,0.5); }

:root:not([data-theme="dark"]) .geomod-btn--outline,
[data-theme="light"] .geomod-btn--outline { color: rgba(33,43,54,0.65); border-color: rgba(24,178,75,0.28); }
:root:not([data-theme="dark"]) .geomod-btn--back,
[data-theme="light"] .geomod-btn--back {
  background: rgba(24,178,75,0.06); border-color: rgba(24,178,75,0.2); color: rgba(33,43,54,0.65);
}

/* ──────────────────────────────────────────────────────────────
   PAYMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .paymod-shell::before,
[data-theme="light"] .paymod-shell::before {
  background-image:
    linear-gradient(rgba(0,135,90,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,135,90,0.025) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .paymod-period-label,
[data-theme="light"] .paymod-period-label { color: rgba(33,43,54,0.6); }
:root:not([data-theme="dark"]) .paymod-nav-arrow,
[data-theme="light"] .paymod-nav-arrow {
  background: rgba(0,135,90,0.06); border-color: rgba(0,135,90,0.15); color: rgba(33,43,54,0.5);
}
:root:not([data-theme="dark"]) .paymod-nav-arrow:hover,
[data-theme="light"] .paymod-nav-arrow:hover { background: rgba(0,135,90,0.12); color: rgba(33,43,54,0.85); }
:root:not([data-theme="dark"]) .paymod-top-tab,
[data-theme="light"] .paymod-top-tab { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .paymod-top-tab:hover:not(.active),
[data-theme="light"] .paymod-top-tab:hover:not(.active) { color: rgba(33,43,54,0.75); }

:root:not([data-theme="dark"]) .paymod-emp-panel,
[data-theme="light"] .paymod-emp-panel { border-right-color: rgba(0,135,90,0.12); }
:root:not([data-theme="dark"]) .paymod-emp-search,
[data-theme="light"] .paymod-emp-search { border-bottom-color: rgba(0,135,90,0.1); }
:root:not([data-theme="dark"]) .paymod-emp-search input,
[data-theme="light"] .paymod-emp-search input {
  background: rgba(255,255,255,0.9); border-color: rgba(0,135,90,0.15); color: #212B36;
}
:root:not([data-theme="dark"]) .paymod-emp-search i,
[data-theme="light"] .paymod-emp-search i { color: rgba(33,43,54,0.35); }
:root:not([data-theme="dark"]) .paymod-emp-meta,
[data-theme="light"] .paymod-emp-meta { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .paymod-emp-pagination,
[data-theme="light"] .paymod-emp-pagination { border-top-color: rgba(0,135,90,0.1); color: rgba(33,43,54,0.4); }

:root:not([data-theme="dark"]) .paymod-subtab-bar,
[data-theme="light"] .paymod-subtab-bar {
  background: rgba(255,255,255,0.7); border-bottom-color: rgba(0,135,90,0.12);
}
:root:not([data-theme="dark"]) .paymod-subtab,
[data-theme="light"] .paymod-subtab { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .paymod-subtab:hover:not(.active),
[data-theme="light"] .paymod-subtab:hover:not(.active) { color: rgba(33,43,54,0.75); }

:root:not([data-theme="dark"]) .paymod-day-cal,
[data-theme="light"] .paymod-day-cal { background: rgba(0,135,90,0.06); border-color: rgba(0,135,90,0.14); }
:root:not([data-theme="dark"]) .paymod-day-name,
[data-theme="light"] .paymod-day-name { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .paymod-day-num,
[data-theme="light"] .paymod-day-num { color: #212B36; }
:root:not([data-theme="dark"]) .paymod-day-month,
[data-theme="light"] .paymod-day-month { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .paymod-day-type,
[data-theme="light"] .paymod-day-type { color: rgba(33,43,54,0.65); }
:root:not([data-theme="dark"]) .paymod-day-total-label,
[data-theme="light"] .paymod-day-total-label { color: rgba(33,43,54,0.45); }
:root:not([data-theme="dark"]) .paymod-day-shift,
[data-theme="light"] .paymod-day-shift { color: rgba(33,43,54,0.35); }

:root:not([data-theme="dark"]) .paymod-summary,
[data-theme="light"] .paymod-summary { border-left-color: rgba(0,135,90,0.12); }
:root:not([data-theme="dark"]) .paymod-summary-section,
[data-theme="light"] .paymod-summary-section { color: rgba(33,43,54,0.3); }
:root:not([data-theme="dark"]) .paymod-pay-type,
[data-theme="light"] .paymod-pay-type { color: rgba(33,43,54,0.65); }
:root:not([data-theme="dark"]) .paymod-summary-chip,
[data-theme="light"] .paymod-summary-chip { color: rgba(33,43,54,0.55); border-color: rgba(0,135,90,0.2); }
:root:not([data-theme="dark"]) .paymod-summary-total-label,
[data-theme="light"] .paymod-summary-total-label { color: rgba(33,43,54,0.4); }

:root:not([data-theme="dark"]) .paymod-modal-overlay,
[data-theme="light"] .paymod-modal-overlay { background: rgba(245,247,250,0.85); backdrop-filter: blur(4px); }
:root:not([data-theme="dark"]) .paymod-modal-section,
[data-theme="light"] .paymod-modal-section { color: rgba(180,130,0,0.75); }
:root:not([data-theme="dark"]) .paymod-modal-section--fixed,
[data-theme="light"] .paymod-modal-section--fixed { color: rgba(24,144,255,0.75); }
:root:not([data-theme="dark"]) .paymod-modal-empty,
[data-theme="light"] .paymod-modal-empty { color: rgba(33,43,54,0.35); }

/* ──────────────────────────────────────────────────────────────
   ORGMOD — additional light overrides
────────────────────────────────────────────────────────────── */
:root:not([data-theme="dark"]) .orgmod-shell::before,
[data-theme="light"] .orgmod-shell::before {
  background-image:
    linear-gradient(rgba(24,178,75,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(24,178,75,0.04) 1px, transparent 1px);
}
:root:not([data-theme="dark"]) .orgmod-connector,
[data-theme="light"] .orgmod-connector { stroke: rgba(24,178,75,0.45); }
:root:not([data-theme="dark"]) .orgmod-vline,
[data-theme="light"] .orgmod-vline { background: rgba(24,178,75,0.38); }

:root:not([data-theme="dark"]) .orgmod-node,
[data-theme="light"] .orgmod-node { box-shadow: 0 2px 8px rgba(0,0,0,0.12); border-color: rgba(24,178,75,0.35); }
:root:not([data-theme="dark"]) .orgmod-node:hover,
[data-theme="light"] .orgmod-node:hover { box-shadow: 0 4px 16px rgba(24,178,75,0.18); }
:root:not([data-theme="dark"]) .orgmod-node-foot,
[data-theme="light"] .orgmod-node-foot { background: rgba(0,0,0,0.08); border-top-color: rgba(0,0,0,0.06); }

:root:not([data-theme="dark"]) .orgmod-detail-panel,
[data-theme="light"] .orgmod-detail-panel { border-top-color: rgba(24,178,75,0.12); }
:root:not([data-theme="dark"]) .orgmod-detail-path,
[data-theme="light"] .orgmod-detail-path { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .orgmod-detail-stat,
[data-theme="light"] .orgmod-detail-stat { background: rgba(255,255,255,0.9); border-color: rgba(24,178,75,0.12); }
:root:not([data-theme="dark"]) .orgmod-detail-stat-lbl,
[data-theme="light"] .orgmod-detail-stat-lbl { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .orgmod-detail-members-title,
[data-theme="light"] .orgmod-detail-members-title { color: rgba(33,43,54,0.5); }
:root:not([data-theme="dark"]) .orgmod-member-row,
[data-theme="light"] .orgmod-member-row { border-bottom-color: rgba(24,178,75,0.08); }
:root:not([data-theme="dark"]) .orgmod-member-role,
[data-theme="light"] .orgmod-member-role { color: rgba(33,43,54,0.4); }
:root:not([data-theme="dark"]) .orgmod-close-panel,
[data-theme="light"] .orgmod-close-panel {
  background: rgba(24,178,75,0.05); border-color: rgba(24,178,75,0.15); color: rgba(33,43,54,0.5);
}
:root:not([data-theme="dark"]) .orgmod-close-panel:hover,
[data-theme="light"] .orgmod-close-panel:hover { background: rgba(24,178,75,0.1); color: #18B24B; }
:root:not([data-theme="dark"]) .orgmod-btn--outline,
[data-theme="light"] .orgmod-btn--outline { color: rgba(33,43,54,0.65); border-color: rgba(24,178,75,0.25); }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — paymod / geomod / orgmod  (features page showcase)
   Primary breakpoint ≤ 860 px; secondary ≤ 560 px / ≤ 480 px
═══════════════════════════════════════════════════════════════ */

/* ── GLOBAL: shells clip content, tabs wrap ─────────────────── */
@media (max-width: 860px) {
  .paymod-shell,
  .geomod-shell,
  .orgmod-shell { overflow: hidden; }
  .fmod-view-tabs { flex-wrap: wrap; }
}

/* ═══════════════════════════════════════════════════════════════
   PAYMOD — Approval block
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Collapse three-column body to single column */
  .paymod-body {
    grid-template-columns: 1fr !important;
    min-height: unset;
  }

  /* Topbar: wrap period nav + action buttons */
  .paymod-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 12px; }
  .paymod-page-title { width: 100%; font-size: 0.875rem; order: 1; }
  .paymod-top-tabs   { order: 2; }
  .paymod-period-nav { order: 3; margin-left: 0; }
  .paymod-btn        { order: 4; }

  /* Employee list → horizontal scroll strip */
  .paymod-emp-panel {
    display: flex !important;          /* override the display:none from inline block */
    border-right: none;
    border-bottom: 1px solid rgba(24,178,75,0.1);
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 8px 12px;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    max-height: none;
  }
  .paymod-emp-panel::-webkit-scrollbar { display: none; }
  .paymod-emp-search { display: none; }   /* search not useful in scroll strip */

  /* Employee items: vertical avatar+name pill */
  .paymod-emp-item {
    flex-direction: column;
    align-items: center;
    min-width: 68px;
    padding: 8px 6px;
    border-bottom: none;
    border-radius: 10px;
    flex-shrink: 0;
    text-align: center;
  }
  .paymod-emp-item.active {
    background: rgba(24,178,75,0.08);
    border: 1px solid rgba(24,178,75,0.22);
  }
  .paymod-emp-av { margin: 0 auto 5px; }
  .paymod-emp-meta { flex-direction: column; gap: 2px; }
  .paymod-emp-pagination { display: none; }
  /* Approve-all button: hide in strip (replaced by topbar btn) */
  .paymod-approve-all-btn { display: none; }

  /* Day card header: stack calendar cal above rows + status */
  .paymod-day-header {
    grid-template-columns: 44px 1fr !important;   /* remove auto col */
    grid-template-rows: auto auto;
    gap: 8px 10px;
  }
  /* Status column (3rd child) wraps below on its own row */
  .paymod-day-header > div:last-child,
  .paymod-day-header > .paymod-day-status {
    grid-column: 2;
    text-align: left;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
  }

  /* Summary panel: sits below day-list */
  .paymod-summary {
    border-left: none;
    border-top: 1px solid rgba(24,178,75,0.1);
    max-height: 240px;
    overflow-y: auto;
  }

  /* Centre detail: no horizontal overflow */
  .paymod-centre { overflow-x: hidden; }
  .paymod-detail { overflow-x: hidden; }
}

@media (max-width: 560px) {
  .paymod-emp-item    { min-width: 56px; }
  .paymod-emp-av      { width: 28px !important; height: 28px !important; font-size: 0.55rem !important; }
  .paymod-emp-name    { font-size: 0.55rem; }
  .paymod-emp-hours-badge { font-size: 0.45rem; padding: 1px 4px; }
  .paymod-btn         { font-size: 0.6rem; padding: 5px 9px; }
  /* Day header: fully stack to single column on very narrow */
  .paymod-day-header {
    grid-template-columns: 1fr !important;
  }
  .paymod-day-cal { flex-direction: row; gap: 8px; justify-content: flex-start; }
  .paymod-day-header > div:last-child,
  .paymod-day-header > .paymod-day-status { grid-column: 1; }
}

@media (max-width: 480px) {
  /* Paymod: full-width approve/reject buttons, more breathing room */
  .paymod-day-actions { flex-direction: column; gap: 6px; }
  .paymod-day-approve-btn,
  .paymod-day-reject-btn { padding: 10px 0; font-size: 0.75rem; border-radius: 8px; }
  /* Subtab bar scrollable on very narrow */
  .paymod-subtab-bar { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; flex-wrap: nowrap; }
  .paymod-subtab-bar::-webkit-scrollbar { display: none; }
  .paymod-subtab { white-space: nowrap; flex-shrink: 0; }
  /* Day list padding tighter */
  .paymod-day-list { padding: 8px 10px; }
  .paymod-day-card { margin-bottom: 8px; }
  /* Period nav stack */
  .paymod-topbar { padding: 8px 10px; }
  .paymod-period-label { font-size: 0.65rem; }
}

/* ═══════════════════════════════════════════════════════════════
   GEOMOD — Geofence block
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Both views (Settings + Sites): force flex column */
  .geomod-view.active {
    display: flex !important;
    flex-direction: column !important;
  }
  /* Clear inline grid-template-columns */
  #geoSettingsView,
  #geoSitesView {
    display: flex !important;
    flex-direction: column !important;
    grid-template-columns: unset !important;
  }

  /* Settings sidebar → horizontal scroll tab strip */
  .geomod-sidebar {
    border-right: none;
    border-bottom: 1px solid rgba(24,178,75,0.1);
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    width: 100%;
  }
  .geomod-sidebar::-webkit-scrollbar { display: none; }
  .geomod-sidebar-title { display: none; }
  .geomod-nav-item {
    flex-shrink: 0;
    border-left: none;
    border-bottom: 2px solid transparent;
    padding: 10px 14px;
    font-size: 0.7rem;
    white-space: nowrap;
  }
  .geomod-nav-item.active {
    border-bottom-color: #18B24B;
    border-left-color: transparent;
    background: rgba(24,178,75,0.05);
  }
  .geomod-nav-item i { display: none; }

  /* Content panel: full width, no x overflow */
  .geomod-content { padding: 16px; width: 100%; box-sizing: border-box; overflow-x: hidden; }

  /* Sites view: left site-list pane stacks above map panel */
  #geoSitesView > div:first-child {
    border-right: none !important;
    border-bottom: 1px solid rgba(24,178,75,0.1);
    padding: 12px;
    width: 100%;
    box-sizing: border-box;
  }
  /* Site cards: ensure touch-friendly height */
  .geomod-site-card { padding: 14px; min-height: 52px; }

  /* Map panel right column: full width */
  #geoMapPanel {
    width: 100% !important;
    box-sizing: border-box;
    padding: 14px !important;
  }

  /* Map header title + button: wrap */
  #geoMapPanel > div:first-child {
    flex-wrap: wrap;
    gap: 8px;
  }

  /* Time range row: wrap range bar below inputs */
  .geomod-time-row {
    flex-wrap: wrap;
    gap: 8px;
  }
  .geomod-time-input { flex-shrink: 0; min-height: 40px; }
  .geomod-range-bar  { flex-basis: 100%; order: 3; margin-top: 4px; }

  /* Coordinate fields: stack */
  .geomod-coords-row { grid-template-columns: 1fr !important; }

  /* All field inputs: full width */
  .geomod-field-input { max-width: 100% !important; width: 100%; box-sizing: border-box; }

  /* Radius row: allow wrap */
  .geomod-radius-row { flex-wrap: wrap; gap: 8px; }
  .geomod-radius-val  { flex-shrink: 0; }
  .geomod-radius-slider { flex-basis: 100%; }

  /* Address row: stack locate btn below input */
  .geomod-addr-row { flex-direction: column; gap: 8px; }
  .geomod-locate-btn { width: 100%; padding: 9px 0; text-align: center; }

  /* Action buttons: full-width stack */
  .geomod-modal-actions { flex-direction: column; gap: 8px; }
  .geomod-save-btn   { width: 100%; justify-content: center; margin-top: 0; }
  .geomod-cancel-btn { width: 100%; text-align: center; padding: 10px 0; }

  /* Topbar: wrap */
  .geomod-topbar { flex-wrap: wrap; gap: 8px; }
  .geomod-topbar-title { flex: 1; min-width: 0; }

  /* Reduce body min-height */
  .geomod-body      { min-height: unset; }
  .geomod-view.active { min-height: unset; }
  .geomod-map-wrap  { height: 200px; }
}

@media (max-width: 560px) {
  .geomod-map-wrap  { height: 160px; }
  .geomod-btn       { font-size: 0.6rem; padding: 5px 9px; }
  .geomod-section-title { font-size: 0.8125rem; }
  .geomod-save-btn  { font-size: 0.75rem; padding: 10px 0; }
}

@media (max-width: 480px) {
  /* Geomod topbar: wrap tightly so buttons don't collide */
  .geomod-topbar { padding: 10px 12px; gap: 6px; }
  .geomod-topbar-title { font-size: 0.8125rem; min-width: 0; }
  .geomod-btn { font-size: 0.6rem; padding: 5px 8px; }
  /* Geofence content padding */
  .geomod-content { padding: 12px; }
  /* Site-card touch target */
  .geomod-site-card { min-height: 56px; padding: 14px 12px; }
  /* Field labels more readable */
  .geomod-field-label { font-size: 0.7rem; }
  /* Map panel extra breathing room */
  #geoMapPanel { padding: 12px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ORGMOD — Workforce / Organisation chart
═══════════════════════════════════════════════════════════════ */
@media (max-width: 860px) {

  /* Topbar: wrap buttons */
  .orgmod-topbar { flex-wrap: wrap; gap: 8px; padding: 10px 14px; }
  .orgmod-topbar-title { width: 100%; }
  .orgmod-breadcrumb   { flex-basis: 100%; }

  /* Canvas: horizontal scroll with touch, reduced min-height */
  .orgmod-canvas-wrap {
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding: 20px 16px;
    min-height: unset;
    cursor: default;
  }
  /* Tree min-width: narrower than default 1100px so it fits on tablets */
  .orgmod-tree { min-width: 640px; }

  /* Node labels: tighten for smaller viewport */
  .orgmod-node-head {
    font-size: 0.6rem !important;
    padding: 8px 6px !important;
  }
  .orgmod-node     { min-width: 72px !important; max-width: 96px !important; }

  /* Detail panel */
  .orgmod-detail-panel {
    position: relative;
    border-top: 1px solid rgba(24,178,75,0.12);
    padding: 16px;
  }
  .orgmod-detail-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 8px;
  }
  .orgmod-detail-stat     { padding: 10px; }
  .orgmod-detail-stat-val { font-size: 1.25rem; }

  /* Member rows: truncate long text */
  .orgmod-member-name {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 130px;
  }
  .orgmod-member-role {
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100px;
  }
}

@media (max-width: 560px) {
  /* Smaller nodes and reduced tree width */
  .orgmod-tree         { min-width: 560px; }
  .orgmod-node         { min-width: 64px !important; max-width: 84px !important; }
  .orgmod-node-head    { font-size: 0.55rem !important; padding: 7px 5px !important; }
  .orgmod-canvas-wrap  { padding: 14px 10px; }
  .orgmod-detail-grid  { grid-template-columns: repeat(2, 1fr) !important; }
  .orgmod-topbar       { padding: 8px 12px; }
  .orgmod-btn          { font-size: 0.625rem; padding: 5px 9px; }
}

@media (max-width: 420px) {
  /* Narrowest phones: shrink further */
  .orgmod-tree         { min-width: 480px; }
  .orgmod-node         { min-width: 56px !important; max-width: 72px !important; }
  .orgmod-node-head    { font-size: 0.5rem !important; padding: 6px 4px !important; }
}

/* ═══════════════════════════════════════════════════════════════
   ORGMOD MOBILE ACCORDION  — replaces tree on ≤ 680 px
   Hidden on desktop; shown on mobile via media query.
═══════════════════════════════════════════════════════════════ */

/* Default: accordion hidden, tree shown */
.orgmod-accordion { display: none; }

@media (max-width: 680px) {

  /* Show accordion, hide tree canvas */
  .orgmod-accordion    { display: block; }
  .orgmod-canvas-wrap  { display: none !important; }
  .orgmod-detail-panel { display: none !important; }

  /* Accordion container */
  .orgmod-accordion {
    padding: 14px 14px 6px;
  }

  /* Root row */
  .orgmod-acc-root {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    background: rgba(24,178,75,0.06);
    border: 1px solid rgba(24,178,75,0.2);
    border-radius: 10px;
    margin-bottom: 8px;
    font-size: 0.875rem;
    font-weight: 800;
    color: #F4FAF5;
  }
  .orgmod-acc-root > i {
    color: #18B24B;
    font-size: 0.9rem;
  }
  .orgmod-acc-root > span:first-of-type { flex: 1; }
  .orgmod-acc-badge {
    font-size: 0.6rem;
    font-weight: 700;
    padding: 2px 8px;
    border-radius: 20px;
    background: rgba(24,178,75,0.12);
    color: #18B24B;
  }

  /* Accordion items */
  .orgmod-acc-item {
    background: rgba(24,178,75,0.03);
    border: 1px solid rgba(24,178,75,0.1);
    border-radius: 10px;
    margin-bottom: 6px;
    overflow: hidden;
  }
  .orgmod-acc-item--active {
    border-color: rgba(24,178,75,0.30);
    background: rgba(24,178,75,0.05);
  }

  /* Remove default marker */
  .orgmod-acc-item summary { list-style: none; }
  .orgmod-acc-item summary::-webkit-details-marker { display: none; }

  /* Summary row */
  .orgmod-acc-summary {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    cursor: pointer;
    user-select: none;
    -webkit-tap-highlight-color: transparent;
    min-height: 48px;         /* touch target */
  }
  .orgmod-acc-summary:active { background: rgba(24,178,75,0.04); }

  /* Icon badge */
  .orgmod-acc-icon {
    width: 32px; height: 32px;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 0.8rem;
    flex-shrink: 0;
  }
  .orgmod-acc-icon--green { background: rgba(24,178,75,0.12); color: #18B24B; }
  .orgmod-acc-icon--teal  { background: rgba(24,178,75,0.08); color: rgba(24,178,75,0.7); }

  /* Name */
  .orgmod-acc-name {
    font-size: 0.8125rem;
    font-weight: 700;
    color: #F4FAF5;
    flex: 1;
  }

  /* Meta (sub-unit count + employee count) */
  .orgmod-acc-meta {
    font-size: 0.6rem;
    color: rgba(196,220,200,0.45);
    white-space: nowrap;
  }

  /* Chevron */
  .orgmod-acc-chevron {
    font-size: 0.6rem;
    color: rgba(196,220,200,0.4);
    transition: transform .2s;
    flex-shrink: 0;
  }
  .orgmod-acc-item[open] .orgmod-acc-chevron { transform: rotate(180deg); }

  /* Children area */
  .orgmod-acc-children {
    padding: 0 14px 12px 14px;
    border-top: 1px solid rgba(24,178,75,0.08);
    background: rgba(0,0,0,0.15);
  }

  /* Sub-unit rows */
  .orgmod-acc-child {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    font-size: 0.75rem;
    color: rgba(196,220,200,0.75);
    border-bottom: 1px solid rgba(24,178,75,0.05);
  }
  .orgmod-acc-child:last-of-type { border-bottom: none; }
  .orgmod-acc-child > span {
    margin-left: auto;
    font-size: 0.6rem;
    color: rgba(196,220,200,0.4);
    white-space: nowrap;
  }

  /* Member list inside expanded child */
  .orgmod-acc-members {
    margin-top: 8px;
    padding: 8px 0 0;
    border-top: 1px dashed rgba(24,178,75,0.15);
  }
  .orgmod-acc-member {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 0;
    font-size: 0.75rem;
    color: rgba(196,220,200,0.75);
    border-bottom: 1px solid rgba(24,178,75,0.05);
  }
  .orgmod-acc-member:last-child { border-bottom: none; }
  .orgmod-acc-member em {
    font-style: normal;
    margin-left: auto;
    font-size: 0.6rem;
    color: rgba(196,220,200,0.4);
    white-space: nowrap;
  }

  /* Avatar */
  .orgmod-acc-av {
    width: 26px; height: 26px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.55rem;
    font-weight: 700;
    color: #fff;
    flex-shrink: 0;
  }

  /* Light-mode overrides for accordion */
  :root:not([data-theme="dark"]) .orgmod-acc-root,
  [data-theme="light"] .orgmod-acc-root {
    background: rgba(24,178,75,0.06);
    color: #212B36;
  }
  :root:not([data-theme="dark"]) .orgmod-acc-item,
  [data-theme="light"] .orgmod-acc-item {
    background: rgba(255,255,255,0.85);
    border-color: rgba(24,178,75,0.15);
  }
  :root:not([data-theme="dark"]) .orgmod-acc-name,
  [data-theme="light"] .orgmod-acc-name { color: #212B36; }
  :root:not([data-theme="dark"]) .orgmod-acc-children,
  [data-theme="light"] .orgmod-acc-children {
    background: rgba(0,0,0,0.03);
  }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE DENSITY POLISH — ≤ 640px
   Light spacing, hierarchy, and touch improvements.
   No structural changes; desktop behavior fully preserved.
═══════════════════════════════════════════════════════════════ */
@media (max-width: 640px) {

  /* ── APPROVAL (paymod) ── */
  /* Day card: more breathing room between cards */
  .paymod-day-card { margin-bottom: 12px; }
  /* Day header rows: slightly looser so time values don't crowd */
  .paymod-day-rows { gap: 5px; }
  .paymod-day-row  { gap: 6px; }
  /* Type label: slightly more weight to separate from hours */
  .paymod-day-type { font-weight: 600; }
  /* Hours value: keep bold, slightly larger for scanability */
  .paymod-day-hrs  { font-size: 0.75rem; }
  /* Total row: give it a bit more vertical space */
  .paymod-day-total-row { padding: 9px 12px 2px; gap: 6px; }
  /* Action buttons: ensure comfortable tap targets */
  .paymod-day-approve-btn,
  .paymod-day-reject-btn { min-height: 40px; }
  /* Shift time line: more visible */
  .paymod-day-shift { font-size: 0.625rem; padding: 4px 12px 8px; }
  /* Summary panel header: slightly larger */
  .paymod-summary-title { font-size: 0.75rem; }

  /* ── WORKFORCE / ORGMOD accordion (visible at ≤ 680px) ── */
  /* Accordion root: clearer hierarchy */
  .orgmod-acc-root { gap: 12px; }
  /* Child rows: better separation */
  .orgmod-acc-child { gap: 8px; border-bottom-width: 1px; }
  .orgmod-acc-child:last-of-type { padding-bottom: 4px; }
  /* Member rows: a touch more vertical space */
  .orgmod-acc-member { padding: 8px 0; }
  /* Expand/collapse summary: comfortable tap */
  .orgmod-acc-summary { min-height: 52px; }
  /* Name: prevent awkward wrap on mid-range widths */
  .orgmod-acc-name { word-break: break-word; }

  /* ── GEOFENCE (geomod) ── */
  /* Content panel: more breathing room */
  .geomod-content { padding: 18px 16px; gap: 18px; }
  /* Section title spacing */
  .geomod-section-title { margin-bottom: 10px; }
  /* Individual field groups: more space between them */
  .geomod-field-group { margin-bottom: 14px; }
  /* Form fields: comfortable tap targets */
  .geomod-field-input { min-height: 40px; padding: 8px 10px; font-size: 0.8125rem; }
  /* Saved location cards: clearer separation */
  .geomod-site-card  { margin-bottom: 8px; }
  /* Map wrap: slightly taller so preview feels less cramped */
  .geomod-map-wrap   { height: 210px; }
  /* Topbar: tighter on mid-range */
  .geomod-topbar     { padding: 10px 14px; }
}

/* ═══════════════════════════════════════════════════════════════
   MOBILE REFINEMENTS — narrowest viewports (≤ 480px)
   Final pass to ensure no text collision, no overflow, touch-safe.
═══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {

  /* ── Orgmod accordion: tighten for small phones ── */
  .orgmod-acc-root {
    font-size: 0.8125rem !important;
    padding: 10px 10px !important;
  }
  .orgmod-acc-summary {
    padding: 10px 12px;
    gap: 8px;
  }
  .orgmod-acc-name    { font-size: 0.75rem; }
  .orgmod-acc-meta    { font-size: 0.575rem; }
  .orgmod-acc-icon    { width: 28px !important; height: 28px !important; font-size: 0.7rem !important; }
  .orgmod-acc-children { padding: 0 10px 10px 10px; }
  .orgmod-acc-child   { font-size: 0.7rem; padding: 7px 0; }
  .orgmod-acc-member  { font-size: 0.7rem; padding: 6px 0; }
  /* Badge fit */
  .orgmod-acc-badge   { font-size: 0.55rem; padding: 2px 6px; }
  /* Topbar stacks cleanly */
  .orgmod-topbar      { padding: 8px 10px; }
  .orgmod-topbar-title { font-size: 0.8125rem; }
  .orgmod-btn         { font-size: 0.6rem; padding: 4px 8px; }

  /* ── Geomod: tighter card padding + toggle label wrapping ── */
  .geomod-card        { padding: 12px; }
  .geomod-toggle-row  { flex-wrap: nowrap; align-items: flex-start; gap: 8px; }
  .geomod-toggle-label { font-size: 0.75rem; line-height: 1.4; }
  .geomod-field-label  { font-size: 0.65rem; }
  .geomod-save-btn     { width: 100%; justify-content: center; font-size: 0.75rem; padding: 10px 0; }

  /* ── Paymod: legibility at narrowest breakpoint ── */
  .paymod-day-type     { font-size: 0.65rem; }
  .paymod-day-hrs      { font-size: 0.7rem; }
  .paymod-day-card     { margin-bottom: 10px; }
}

/* ============================================================
   PARTNER / INTEGRATION LOGOS  (partner-*)
   Shared across integrations/, solutions/, industries/ pages.
   SVG assets: images/partners/*.svg (light + dark variants)
   Theme-aware via [data-theme] + JS class toggling.
   ============================================================ */

/* ── Partner logo strip (horizontal row, used in hero/trust areas) ── */
.partner-logo-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 32px;
  row-gap: 20px;
  padding: 24px 0 8px;
}

.partner-logo-strip--centered {
  justify-content: center;
}

/* ── Partner logo item (a single logo + optional label) ── */
.partner-logo-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  opacity: 0.82;
  transition: opacity 0.2s;
}

.partner-logo-item:hover { opacity: 1; }

.partner-logo-item img {
  display: block;
  height: 36px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
}

.partner-logo-item--large img {
  height: 48px;
  max-width: 240px;
}

.partner-logo-item--small img {
  height: 28px;
  max-width: 140px;
}

.partner-logo-label {
  font-size: 0.6875rem;
  color: var(--text-disabled, rgba(145,158,171,0.7));
  text-align: center;
  white-space: nowrap;
}

/* ── Partner logo grid (card-style grid used on integrations index) ── */
.partner-logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px;
}

.partner-logo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  border-radius: var(--radius-lg, 12px);
  border: 1px solid var(--divider, rgba(145,158,171,0.2));
  background: var(--bg-paper, #1C252E);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
  cursor: pointer;
}

.partner-logo-card:hover {
  border-color: var(--green, #18B24B);
  box-shadow: 0 4px 24px rgba(24,178,75,0.12);
  transform: translateY(-2px);
}

.partner-logo-card img {
  display: block;
  height: 40px;
  width: auto;
  max-width: 160px;
  object-fit: contain;
}

.partner-logo-card-name {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-primary, #F4FAF5);
  text-align: center;
}

.partner-logo-card-type {
  font-size: 0.6875rem;
  color: var(--text-secondary, rgba(196,220,200,0.65));
  text-align: center;
}

/* ── Partner hero lockup (large logo + partner name beside page title) ── */
.partner-hero-lockup {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 16px;
}

.partner-hero-logo {
  display: block;
  height: 44px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  flex-shrink: 0;
}

.partner-hero-divider {
  width: 1px;
  height: 44px;
  background: var(--divider, rgba(145,158,171,0.25));
  flex-shrink: 0;
}

.partner-hero-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.partner-hero-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--green, #18B24B);
}

.partner-hero-name {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary, #F4FAF5);
}

/* ── Trademark disclaimer (injected in footer/partner sections) ── */
.partner-trademark {
  font-size: 0.625rem;
  color: var(--text-disabled, rgba(145,158,171,0.5));
  line-height: 1.6;
  padding-top: 12px;
  border-top: 1px solid var(--divider, rgba(145,158,171,0.1));
  margin-top: 24px;
}

/* ── Light-mode overrides ── */
:root:not([data-theme="dark"]) .partner-logo-card,
[data-theme="light"] .partner-logo-card {
  background: #FFFFFF;
  border-color: rgba(145,158,171,0.18);
}

:root:not([data-theme="dark"]) .partner-logo-card-name,
[data-theme="light"] .partner-logo-card-name {
  color: #212B36;
}

:root:not([data-theme="dark"]) .partner-logo-card-type,
[data-theme="light"] .partner-logo-card-type {
  color: #637381;
}

:root:not([data-theme="dark"]) .partner-hero-name,
[data-theme="light"] .partner-hero-name {
  color: #212B36;
}

:root:not([data-theme="dark"]) .partner-logo-label,
[data-theme="light"] .partner-logo-label {
  color: #919EAB;
}

/* ── Responsive ── */
@media (max-width: 640px) {
  .partner-logo-strip { gap: 20px; }
  .partner-logo-item img { height: 28px; }
  .partner-hero-lockup { flex-direction: column; align-items: flex-start; gap: 12px; }
  .partner-hero-divider { display: none; }
  .partner-hero-logo { height: 36px; }
  .partner-logo-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); }
}

@media (max-width: 420px) {
  .partner-logo-grid { grid-template-columns: 1fr 1fr; }
  .partner-logo-card img { height: 32px; }
}
