/* ==========================================================================
   OCTOLOGIC HEALTH — base.css
   Baseline design tokens and defaults for octologichealth.com

   This file defines every visual token used across the platform.
   Product-specific stylesheets may override any value, but this is the
   single source of truth for the default look and feel.

   Load order:  base.css  →  [product/page].css
   ========================================================================== */
/* Google Fonts are injected by oh-nav.js via <link> tags in <head> to avoid render-blocking @import chain. */


/* ==========================================================================
   1. COLOR TOKENS (CSS Custom Properties)
   ========================================================================== */

:root {

  /* --------------------------------------------------------------------------
     BACKGROUNDS
     -------------------------------------------------------------------------- */

  /* --bg-page
     Default page background, main content area, article body */
  --bg-page: #F0F2F5;

  /* --bg-surface
     Cards, modals, popovers, tooltips, dropdown menus, toast notifications,
     sidebar panels, drawer panels, accordion panels */
  --bg-surface: #ffffff;

  /* --bg-surface-alt
     Alternating table rows, code blocks, pre-formatted text blocks,
     input fields (idle), textarea (idle), select dropdowns (idle),
     file upload zones (idle), sidebar background, settings panels, filter bars */
  --bg-surface-alt: #f8fafb;

  /* --bg-warm
     Hero sections (warm variant), feature highlight sections,
     testimonial blocks, quote blocks, CTA banners,
     pricing section backgrounds, onboarding panels */
  --bg-warm: #f6f3ee;

  /* --bg-dark
     Hero sections (dark variant), footer background, dark navigation bars,
     dark mode card backgrounds */
  --bg-dark: #142942;

  /* --bg-dark-mid
     Overlay backdrops (semi-transparent), dark section secondary panels,
     footer secondary zones */
  --bg-dark-mid: #1E3A5F;

  /* --bg-tint
     Selected sidebar item, active table row, selected chip/tag,
     search result highlight, hover row in tables and lists,
     selected card state, info alert background (subtle),
     tooltip background (light variant), notification badge background (subtle) */
  --bg-tint: #e8f5f3;

  /* --bg-disabled
     Disabled buttons, disabled inputs, disabled textareas, disabled selects,
     disabled file upload zones, disabled toggle track,
     skeleton loading placeholders */
  --bg-disabled: #e2e8f0;


  /* --------------------------------------------------------------------------
     TEXT
     -------------------------------------------------------------------------- */

  /* --text-primary
     Body text, headings (h1-h6), input field typed values,
     dropdown selected-option text, modal titles, table header text,
     sidebar nav text, card titles, accordion headers, dialog titles,
     toolbar labels */
  --text-primary: #1a2332;

  /* --text-secondary
     Subheadings, card descriptions, table cell text,
     breadcrumb non-current items, tab labels (inactive),
     dropdown option text, accordion body text, form labels, legend text,
     list item secondary lines, sidebar section headers */
  --text-secondary: #4a5568;

  /* --text-muted
     Placeholder text, disabled button text, disabled input text, captions,
     help text under form fields, empty-state descriptions,
     character/word count indicators, "last updated" timestamps,
     footer secondary links, version numbers, watermarks */
  --text-muted: #596673;

  /* --text-on-dark
     Hero heading text (on dark bg), hero body text (on dark bg),
     footer text, footer links, dark navbar text, text inside dark toasts,
     dark badge text, overlay text */
  --text-on-dark: #ffffff;

  /* --text-link
     Inline text links, link buttons (text-only buttons that navigate),
     breadcrumb links, skip-to-content links, "read more" links,
     table-cell links */
  --text-link: #1e7a70;  /* darkened for WCAG AA (4.7:1 on white) */

  /* --text-link-hover
     All link elements on hover/focus */
  --text-link-hover: #176b62;

  /* --text-link-on-dark
     Inline links inside dark hero sections, dark banners, footer */
  --text-link-on-dark: #a5b4fc;

  /* --text-error
     Error messages, inline validation text (invalid),
     required-field asterisks, form error summaries */
  --text-error: #DC2626;

  /* --text-success
     Success messages, inline validation text (valid),
     "complete" status text */
  --text-success: #059669;

  /* --text-warning
     Warning messages, "expires soon" text, "work in progress" labels */
  --text-warning: #b8860b;


  /* --------------------------------------------------------------------------
     BORDERS
     -------------------------------------------------------------------------- */

  /* --border-default
     Input field borders (idle), card borders, dividers / horizontal rules,
     table cell borders, dropdown borders, modal borders, sidebar dividers,
     tab bar bottom border, accordion section dividers, popover borders,
     tooltip borders, separator lines, fieldset borders */
  --border-default: #e2e8f0;

  /* --border-focus
     Input field borders (focused), textarea borders (focused),
     select borders (focused), search bar borders (focused),
     any focusable control's border on keyboard/mouse focus */
  --border-focus: #1e7a70;

  /* --border-error
     Input field borders (invalid), textarea borders (invalid),
     select borders (invalid), file upload zone borders (invalid) */
  --border-error: #DC2626;

  /* --border-disabled
     Disabled input borders, disabled textarea borders,
     disabled select borders, disabled checkbox borders,
     disabled radio borders */
  --border-disabled: #d1d8e0;


  /* --------------------------------------------------------------------------
     BUTTONS — PRIMARY
     Save, Submit, Create, Add, Confirm, Continue, Next, Sign Up, Log In
     -------------------------------------------------------------------------- */

  --btn-primary-bg: #1e7a70;  /* darkened from #2a9d8f for WCAG AA (4.7:1 with white) */
  --btn-primary-text: #ffffff;
  --btn-primary-bg-hover: #176b62;
  --btn-primary-bg-active: #125c54;


  /* --------------------------------------------------------------------------
     BUTTONS — SECONDARY (outline / ghost)
     Edit, Settings, Filter, View, Details, Export
     -------------------------------------------------------------------------- */

  --btn-secondary-bg: transparent;
  --btn-secondary-text: #1a2332;
  --btn-secondary-border: #e2e8f0;
  --btn-secondary-bg-hover: #f8fafb;


  /* --------------------------------------------------------------------------
     BUTTONS — TERTIARY / LINK BUTTON (text-only)
     Cancel, Skip, Back, Dismiss, "Learn more", "View all"
     -------------------------------------------------------------------------- */

  --btn-tertiary-text: #1e7a70;
  --btn-tertiary-text-hover: #238a7e;


  /* --------------------------------------------------------------------------
     BUTTONS — DESTRUCTIVE
     Delete, Remove, Revoke, Disconnect, Deactivate, Unsubscribe,
     Permanently delete
     -------------------------------------------------------------------------- */

  --btn-danger-bg: #DC2626;
  --btn-danger-text: #ffffff;
  --btn-danger-bg-hover: #B91C1C;

  --btn-settings-bg: #C2610C;        /* warm amber — WCAG AA on white (4.7:1) */
  --btn-settings-text: #ffffff;
  --btn-settings-bg-hover: #A8530A;

  /* --------------------------------------------------------------------------
     BUTTONS — ON DARK
     CTAs on hero sections, dark banners, footer CTAs
     -------------------------------------------------------------------------- */

  --btn-on-dark-bg: #ffffff;
  --btn-on-dark-text: #2a9d8f;  /* lighter teal OK on dark backgrounds */
  --btn-on-dark-bg-hover: #e8f5f3;


  /* --------------------------------------------------------------------------
     BUTTONS — DISABLED (any button type when disabled)
     -------------------------------------------------------------------------- */

  --btn-disabled-bg: #e2e8f0;
  --btn-disabled-text: #8a95a3;
  --btn-disabled-border: #d1d8e0;


  /* --------------------------------------------------------------------------
     FORM CONTROLS
     -------------------------------------------------------------------------- */

  /* --input-bg
     Text inputs, textareas, select dropdowns, search bars, date pickers,
     number inputs, file upload zones (idle state) */
  --input-bg: #f8fafb;

  /* --input-bg-focus
     All of the above when focused */
  --input-bg-focus: #ffffff;

  /* --input-text
     Typed text in all input types */
  --input-text: #1a2332;

  /* --input-placeholder
     Placeholder text in all input types */
  --input-placeholder: #6b7785;

  /* --input-label
     Form labels, fieldset legends, input group labels */
  --input-label: #5a6978;

  /* --toggle-track-off
     Toggle/switch track when off */
  --toggle-track-off: #d1d8e0;

  /* --toggle-track-on
     Toggle/switch track when on */
  --toggle-track-on: #1e7a70;

  /* --toggle-thumb
     Toggle/switch thumb (both states) */
  --toggle-thumb: #ffffff;

  /* --checkbox-border
     Checkbox border (unchecked), radio button border (unchecked) */
  --checkbox-border: #d1d8e0;

  /* --checkbox-checked-bg
     Checkbox fill (checked), radio button fill (selected) */
  --checkbox-checked-bg: #1e7a70;

  /* --checkbox-check-color
     Checkmark icon color, radio dot color */
  --checkbox-check-color: #ffffff;

  /* --range-track
     Range/slider track (unfilled portion) */
  --range-track: #e2e8f0;

  /* --range-track-fill
     Range/slider track (filled portion) */
  --range-track-fill: #2a9d8f;

  /* --range-thumb
     Range/slider thumb */
  --range-thumb: #2a9d8f;


  /* --------------------------------------------------------------------------
     NAVIGATION
     -------------------------------------------------------------------------- */

  /* --nav-text
     Nav item text (idle), header nav links, sidebar nav items,
     footer nav links */
  --nav-text: #5a6978;

  /* --nav-text-hover
     All of the above on hover */
  --nav-text-hover: #1a2332;

  /* --nav-text-active
     Active/current nav item text, selected sidebar item text */
  --nav-text-active: #1e7a70;

  /* --nav-indicator
     Active tab underline, active sidebar left-border accent,
     current breadcrumb indicator, active nav item underline */
  --nav-indicator: #2a9d8f;

  /* --nav-bg-hover
     Nav item background on hover (header, sidebar, dropdowns) */
  --nav-bg-hover: #f8fafb;


  /* --------------------------------------------------------------------------
     TAGS / BADGES / CHIPS
     -------------------------------------------------------------------------- */

  /* --tag-default-bg / --tag-default-text
     Default informational tags, category labels, metadata chips */
  --tag-default-bg: #e8f5f3;
  --tag-default-text: #238a7e;

  /* --tag-success-bg / --tag-success-text
     "Active", "Complete", "Published", "Purchased" tags */
  --tag-success-bg: #eafaf1;
  --tag-success-text: #047857;

  /* --tag-warning-bg / --tag-warning-text
     "WIP", "Draft", "Pending", "Expiring" tags */
  --tag-warning-bg: #fef9e7;
  --tag-warning-text: #b8860b;

  /* --tag-danger-bg / --tag-danger-text
     "Error", "Failed", "Overdue", "Revoked" tags */
  --tag-danger-bg: #fdedec;
  --tag-danger-text: #DC2626;

  /* --tag-info-bg / --tag-info-text
     "Free", "New", "Beta", "Updated" tags */
  --tag-info-bg: #eaf0fb;
  --tag-info-text: #5b6abf;


  /* --------------------------------------------------------------------------
     ALERTS / BANNERS / TOASTS
     -------------------------------------------------------------------------- */

  /* Info: info alert background, info toast background, info banner background */
  --alert-info-bg: #eaf0fb;
  --alert-info-border: #5b6abf;
  --alert-info-icon: #5b6abf;

  /* Success: success alert, success toast, success banner */
  --alert-success-bg: #eafaf1;
  --alert-success-border: #059669;
  --alert-success-icon: #059669;

  /* Warning: warning alert, warning toast, warning banner */
  --alert-warning-bg: #fef9e7;
  --alert-warning-border: #b8860b;
  --alert-warning-icon: #b8860b;

  /* Error: error alert, error toast, error banner */
  --alert-error-bg: #fdedec;
  --alert-error-border: #DC2626;
  --alert-error-icon: #DC2626;


  /* --------------------------------------------------------------------------
     PROGRESS / LOADING
     -------------------------------------------------------------------------- */

  /* --progress-track
     Progress bar empty track, step wizard connector line (incomplete) */
  --progress-track: #e2e8f0;

  /* --progress-fill
     Progress bar filled portion, step wizard connector line (complete) */
  --progress-fill: #2a9d8f;

  /* --progress-step-active
     Active step marker, current step number */
  --progress-step-active: #2a9d8f;

  /* --progress-step-complete
     Completed step marker, completed step checkmark */
  --progress-step-complete: #059669;

  /* --progress-step-incomplete
     Future/incomplete step marker */
  --progress-step-incomplete: #d1d8e0;

  /* --spinner-color
     Loading spinner stroke, skeleton pulse animation color */
  --spinner-color: #2a9d8f;


  /* --------------------------------------------------------------------------
     SHADOWS
     -------------------------------------------------------------------------- */

  /* --shadow-sm
     Dropdown menus, tooltips, popovers, small floating elements */
  --shadow-sm: 0 1px 3px rgba(26, 35, 50, 0.08), 0 1px 2px rgba(26, 35, 50, 0.06);

  /* --shadow-md
     Cards (idle), toasts, notification panels,
     elevated buttons on hover */
  --shadow-md: 0 4px 20px rgba(26, 35, 50, 0.08);

  /* --shadow-lg
     Modals, dialogs, drawer panels, sticky headers on scroll */
  --shadow-lg: 0 8px 30px rgba(26, 35, 50, 0.12);

  /* --shadow-xl
     Hero overlays, full-screen takeovers */
  --shadow-xl: 0 20px 60px rgba(26, 35, 50, 0.15);

  /* --shadow-overlay
     Modal backdrop overlay, drawer backdrop overlay, lightbox backdrop */
  --shadow-overlay: rgba(26, 35, 50, 0.5);


  /* --------------------------------------------------------------------------
     FOCUS
     -------------------------------------------------------------------------- */

  /* --focus-ring
     Keyboard focus outline on every interactive element: buttons, inputs,
     links, checkboxes, radios, toggles, tabs, nav items,
     cards (if clickable), menu items, accordion triggers */
  --focus-ring: 0 0 0 3px rgba(42, 157, 143, 0.35);


  /* --------------------------------------------------------------------------
     SCROLLBAR
     -------------------------------------------------------------------------- */

  /* --scrollbar-track
     Scrollbar track background */
  --scrollbar-track: #f8fafb;

  /* --scrollbar-thumb
     Scrollbar thumb */
  --scrollbar-thumb: #d1d8e0;

  /* --scrollbar-thumb-hover
     Scrollbar thumb on hover */
  --scrollbar-thumb-hover: #8a95a3;


  /* --------------------------------------------------------------------------
     TYPOGRAPHY
     -------------------------------------------------------------------------- */

  --font-body: 'Google Sans Flex', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', 'Cascadia Code', Consolas, monospace;

  --font-weight-regular: 400;
  --font-weight-medium: 500;
  --font-weight-semibold: 600;
  --font-weight-bold: 700;
  --font-weight-extrabold: 800;

  --line-height-tight: 1.2;
  --line-height-normal: 1.5;
  --line-height-relaxed: 1.7;


  /* --------------------------------------------------------------------------
     SPACING SCALE (8px base grid)
     -------------------------------------------------------------------------- */

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;


  /* --------------------------------------------------------------------------
     BORDER RADIUS
     -------------------------------------------------------------------------- */

  /* Small elements: tags, badges, checkboxes, small buttons */
  --radius-sm: 4px;

  /* Standard elements: inputs, buttons, cards, dropdowns */
  --radius-md: 8px;

  /* Large elements: modals, panels, hero cards */
  --radius-lg: 12px;

  /* Extra-large elements: full card containers, featured sections */
  --radius-xl: 16px;

  /* Pill shape: tags, full-round buttons, avatars */
  --radius-full: 9999px;


  /* --------------------------------------------------------------------------
     TRANSITIONS
     -------------------------------------------------------------------------- */

  /* Micro-interactions: color changes, opacity, border color */
  --transition-fast: 0.15s ease;

  /* Standard interactions: hover states, focus rings, button presses */
  --transition-base: 0.2s ease;

  /* Larger motions: panel slides, accordion open/close, card lifts */
  --transition-slow: 0.3s ease;


  /* --------------------------------------------------------------------------
     BRAND IDENTITY
     -------------------------------------------------------------------------- */

  /* From business card */
  --brand-rust:      #D95A2B;   /* warm accent — large text only (3.8:1 on white) */
  --brand-deep-teal: #0E6B6B;   /* dark teal variant — AA all sizes (5.0:1 on white) */

  /* Product brands */
  --brand-edu:    #2563EB;   /* EduForge — blue   */
  --brand-lume:   #7C3AED;   /* LumeLMS — purple  */
  --brand-guide:  #059669;   /* Guidelines — green */
  --brand-lines:  #1E3A5F;   /* OctoLines — navy  */
  --brand-clues:  #D97706;   /* OctoClues — amber */
  --brand-qbank:  #0D9488;   /* Question Bank — teal */
  --brand-gamify: #E11D48;   /* Gamify — rose */


  /* --------------------------------------------------------------------------
     SITE-LEVEL TOKENS (no base.css equivalent)
     -------------------------------------------------------------------------- */

  --color-bg:           var(--bg-page);
  --color-surface:      var(--bg-surface);
  --color-primary:      var(--text-primary);   /* chained to --text-primary for consistent text color */
  --color-primary-dark: var(--bg-dark);        /* chained to --bg-dark for consistent dark navy */
  --color-accent:       var(--btn-primary-bg);
  --color-accent-hover: var(--btn-primary-bg-hover);
  --color-accent-dark:  #0E6B6B;   /* business card deep teal */
  --color-accent-on-dark: #5bc0b5; /* teal lightened for dark bgs — WCAG AA 5.98:1 on navy */
  --color-accent-rgb:   30, 122, 112; /* RGB components of --color-accent for rgba() usage */
  --color-accent-tint:  var(--bg-tint);
  --color-warning:      #92400E;   /* amber — WCAG AA on white (7.5:1) */
  --color-warning-dot:  #D97706;   /* amber dot/icon — decorative only, not for text */
  --color-text:         var(--text-primary);
  --color-muted:        var(--text-secondary);
  --color-border:       var(--border-default);
  --color-success:      var(--text-success);
  --color-error:        var(--text-error);

  /* Button intent tokens */
  --btn-destructive: var(--color-error);
  --btn-creative:    var(--color-success);
  --btn-cancel:      var(--color-muted);
  --btn-nav:         var(--color-accent);

  /* Typography aliases (backward compat) */
  --font-head: var(--font-display);

  /* Shape & elevation aliases */
  --radius:    var(--radius-md);
  --shadow:    var(--shadow-sm);

  /* Layout */
  --max-width: 1140px;

  /* Breakpoints (reference only — CSS can't use vars in media queries,
     but documenting them here keeps them in one place) */
  --bp-xl: 1280px;
  --bp-lg: 1024px;
  --bp-md: 768px;
  --bp-sm: 640px;
  --bp-xs: 480px;

}


/* ==========================================================================
   2. BASE RESETS & DEFAULTS
   ========================================================================== */

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

html {
  font-size: 16px; /* explicit 16px floor for non-tech/older users (WCAG readability) */
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  scroll-behavior: smooth;
}

/* Bigger Text toggle — adds ~15% to all rem-based sizes.
   Applied by oh-a11y-toggle.js when user enables the preference. */
html.oh-a11y-bigger-text { font-size: 18.4px; }

/* High-contrast theme — darkens text/borders, ups contrast on interactive elements.
   Applied by oh-a11y-toggle.js when user enables the preference. */
html.oh-a11y-high-contrast {
  --text-primary: #0A0F1A;
  --text-secondary: #1E2A3A;
  --text-muted: #364458;
  --border-default: #0F172A;
  --border-subtle: #334155;
  --focus-ring: 0 0 0 3px #000, 0 0 0 5px #fde047;
}
html.oh-a11y-high-contrast a { text-decoration: underline; }
html.oh-a11y-high-contrast button,
html.oh-a11y-high-contrast .btn,
html.oh-a11y-high-contrast input,
html.oh-a11y-high-contrast select,
html.oh-a11y-high-contrast textarea { border-width: 2px !important; }

body {
  font-family: var(--font-body);
  font-weight: var(--font-weight-regular);
  line-height: var(--line-height-normal);
  color: var(--text-primary);
  background-color: var(--bg-page);
  font-size: 1rem; /* inherits explicit 16px */
}


/* ==========================================================================
   3. TYPOGRAPHY DEFAULTS
   ========================================================================== */

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-display);
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  color: var(--text-primary);
}

p, li, td, th, label, legend, figcaption {
  color: var(--text-primary);
}

small, caption, .text-muted {
  color: var(--text-muted);
}


/* ==========================================================================
   4. LINKS
   ========================================================================== */

a {
  color: var(--text-link);
  text-decoration: none;
  transition: color var(--transition-fast);
}

a:hover,
a:focus-visible {
  color: var(--text-link-hover);
}


/* ==========================================================================
   5. FOCUS RING (global — applies to every interactive element)
   ========================================================================== */

:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}


/* ==========================================================================
   6. SCROLLBAR
   ========================================================================== */

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: var(--radius-full);
}

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


/* ==========================================================================
   7. SELECTION
   ========================================================================== */

::selection {
  background-color: var(--bg-tint);
  color: var(--text-primary);
}
/* ===================================================================
   Octologic Health — Site Component Stylesheet
   Shared oh-* and pub-* component classes for public pages.
   Requires base.css to be loaded first (tokens, fonts, resets).
   =================================================================== */


/* ===================================================================
   BUTTONS
   =================================================================== */
.oh-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 22px;
  border-radius: var(--radius);
  border: 1.5px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s;
  text-decoration: none;
  white-space: nowrap;
}

.oh-btn:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.oh-btn-primary {
  background: var(--color-accent);
  color: var(--btn-primary-text, #FFFFFF);
  border-color: var(--color-accent);
}

.oh-btn-primary:hover {
  background: var(--color-accent-hover);
  border-color: var(--color-accent-hover);
  color: var(--btn-primary-text, #FFFFFF);
}
/* ===================================================================
   TYPOGRAPHY
   =================================================================== */
h1, h2, h3, h4 {
  font-family: var(--font-head);
  color: var(--color-primary);
  letter-spacing: -0.3px;
  line-height: 1.2;
}
h1 { font-size: 2.75rem; }
h2 { font-size: 2rem; }
h3 { font-size: 1.375rem; }
h4 { font-size: 1.125rem; }


@media (max-width: 768px) {
  h1 { font-size: 2rem; }
  h2 { font-size: 1.625rem; }
}
/* ===================================================================
   FOOTER
   =================================================================== */
.oh-footer {
  background: var(--color-primary-dark);
  color: rgba(255,255,255,0.5);
  padding: 32px 24px;
  font-size: 0.8125rem;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ===================================================================
   PAYWALL OVERLAY — shown when logged-in user lacks required service
   =================================================================== */
.oh-paywall-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 41, 66, 0.65);
  backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.oh-paywall-card {
  background: var(--color-surface, #fff);
  border-radius: 16px;
  padding: 48px 40px 40px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0,0,0,.18);
  animation: oh-paywall-in 0.25s ease-out;
}
@keyframes oh-paywall-in {
  from { opacity: 0; transform: scale(0.95) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.oh-paywall-icon {
  width: 56px; height: 56px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin: 0 auto 20px;
  color: #fff;
}
.oh-paywall-title {
  font-size: 1.375rem;
  font-weight: 700;
  color: var(--text-primary, #1E293B);
  margin: 0 0 10px;
}
.oh-paywall-desc {
  font-size: 0.875rem;
  color: var(--text-secondary, #5a6978);
  line-height: 1.6;
  margin: 0 0 16px;
}
.oh-paywall-sub {
  font-size: 0.8125rem;
  color: var(--text-muted, #596673);
  margin: 0 0 24px;
  font-weight: 500;
}
.oh-paywall-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.oh-paywall-btn-primary {
  display: block;
  padding: 12px 24px;
  background: var(--brand-deep-teal, #0E6B6B);
  color: #fff;
  font-size: 0.9375rem;
  font-weight: 600;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: background 0.15s;
}
.oh-paywall-btn-primary:hover { background: #0a5555; }
.oh-paywall-btn-ghost {
  display: block;
  padding: 10px 24px;
  background: transparent;
  color: var(--text-secondary, #5a6978);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1.5px solid var(--border-default, #E2E8F0);
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: border-color 0.15s, color 0.15s;
}
.oh-paywall-btn-ghost:hover { border-color: var(--brand-deep-teal, #0E6B6B); color: var(--text-primary, #1E293B); }
.oh-paywall-help {
  font-size: 0.75rem;
  color: var(--text-muted, #596673);
  margin: 20px 0 0;
}
.oh-paywall-help a {
  color: var(--brand-deep-teal, #0E6B6B);
  font-weight: 500;
}

/* ===================================================================
   LOGIN PAGE
   =================================================================== */
.oh-login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  padding: 24px;
}

.oh-login-card {
  width: 400px;
  max-width: 100%;
  background: var(--color-surface);
  border-radius: var(--radius-lg);
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
}

.oh-login-header {
  background: var(--color-primary-dark);
  padding: 32px 32px 28px;
  text-align: center;
}

.oh-login-logo {
  font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif);
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-on-dark, #FFFFFF);
  margin-bottom: 6px;
}

.oh-login-logo span { color: var(--color-accent); }

.oh-login-sub {
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.5);
}

.oh-login-body {
  padding: 32px;
}

.oh-field {
  margin-bottom: 20px;
}

.oh-field label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 6px;
}

.oh-field input {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--color-border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.875rem;
  color: var(--color-text);
  background: var(--color-surface);
  outline: none;
  transition: border-color 0.15s;
}

.oh-field input:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 2px rgba(99,102,241,.25);
}

.oh-field input:disabled,
.oh-field input.oh-disabled {
  background: var(--bg-disabled, #e2e8f0);
  color: var(--text-muted, #6b7785);
  cursor: not-allowed;
  border-color: var(--border-disabled, #d1d8e0);
}

.oh-login-error {
  display: none;
  background: var(--alert-error-bg, #FEF2F2);
  border: 1px solid var(--alert-error-border, #FECACA);
  color: var(--text-error, #DC2626);
  font-size: 0.8125rem;
  padding: 10px 14px;
  border-radius: var(--radius);
  margin-bottom: 16px;
}

.oh-login-error.visible { display: block; }

.oh-login-success {
  display: none;
  padding: 12px 16px;
  background: var(--tag-success-bg, #ECFDF5);
  border: 1px solid var(--text-success, #059669);
  border-radius: var(--radius);
  color: var(--text-success, #065F46);
  font-size: 0.875rem;
  margin-bottom: 16px;
}

.oh-login-success.visible { display: block; }

.oh-check-inbox {
  display: none;
  text-align: center;
  padding: 16px 0;
}

.oh-check-inbox-icon {
  font-size: 2rem;
  margin-bottom: 12px;
}

.oh-check-inbox h2 {
  font-size: 1.125rem;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.oh-check-inbox p {
  color: var(--text-muted);
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0 0 16px;
}

.oh-check-inbox-retry {
  color: var(--text-muted);
  font-size: 0.8125rem;
}

.oh-check-inbox-sub {
  color: var(--text-muted, #596673);
  font-size: 0.8125rem;
  margin: 0 0 8px;
}

.oh-check-inbox-alt {
  background: var(--bg-surface-alt, #F1F5F9);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
  text-align: center;
}
.oh-check-inbox-alt p {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  color: var(--text-secondary, #5a6978);
}
.oh-check-inbox-hint {
  font-size: 0.75rem;
  color: var(--text-muted, #596673);
  margin: 10px 0 0;
  line-height: 1.5;
}

/* Resend magic link */
.oh-check-inbox-resend {
  margin: 16px 0 8px;
  text-align: center;
}
.oh-btn-resend {
  background: var(--btn-secondary-bg, transparent);
  color: var(--text-primary, #1a2332);
  border: 1.5px solid var(--border-default, #e2e8f0);
  border-radius: var(--radius, 8px);
  padding: 10px 16px;
  font-size: 0.875rem;
  font-family: var(--font-body);
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s;
}
.oh-btn-resend:hover:not(:disabled) {
  background: var(--btn-secondary-bg-hover, #f8fafb);
  border-color: var(--border-focus, #1e7a70);
}
.oh-btn-resend:disabled {
  color: var(--text-muted, #596673);
  cursor: not-allowed;
  opacity: 0.7;
}
.oh-resend-exhausted {
  font-size: 0.8125rem;
  color: var(--text-secondary, #4a5568);
  margin-top: 12px;
  line-height: 1.5;
}

/* Poll spinner — subtle animated dots */
.oh-poll-spinner {
  display: flex;
  gap: 6px;
  justify-content: center;
  margin: 8px 0 12px;
}
.oh-poll-spinner::before,
.oh-poll-spinner::after,
.oh-poll-spinner {
  content: '';
}
@keyframes oh-poll-bounce {
  0%, 80%, 100% { transform: scale(0); opacity: 0.4; }
  40% { transform: scale(1); opacity: 1; }
}
.oh-poll-spinner::before,
.oh-poll-spinner::after {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--brand-deep-teal, #0E6B6B);
  animation: oh-poll-bounce 1.2s infinite ease-in-out;
}
.oh-poll-spinner::before { animation-delay: 0s; }
.oh-poll-spinner::after { animation-delay: 0.3s; }

/* Login code input — large centered digits */
.oh-login-code-input {
  font-size: 28px !important;
  letter-spacing: 8px;
  text-align: center;
  font-family: monospace;
  font-weight: 700;
  padding: 12px 16px !important;
}

/* Ghost button variant */
.oh-btn-ghost {
  background: transparent;
  color: var(--brand-deep-teal, #0E6B6B);
  border: 1.5px solid var(--border-default, #E2E8F0);
  font-weight: 500;
}
.oh-btn-ghost:hover {
  background: var(--bg-surface-alt, #F1F5F9);
  border-color: var(--brand-deep-teal, #0E6B6B);
}
.oh-btn-sm {
  padding: 6px 14px;
  font-size: 13px;
}

/* Logged-out sidebar user section */
.pub-sidebar-user.pub-logged-out {
  padding: 16px;
  border-bottom: 1px solid var(--border-default, #E2E8F0);
}
.pub-sidebar-user.pub-logged-out .pub-sidebar-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1E293B);
  margin: 0 0 8px;
}
.pub-sidebar-user.pub-logged-out .pub-sidebar-user-actions {
  display: flex;
  gap: 12px;
}
.pub-sidebar-user.pub-logged-out .pub-sidebar-user-actions a {
  font-size: 13px;
  font-weight: 500;
  color: var(--brand-deep-teal, #0E6B6B);
  text-decoration: none;
}
.pub-sidebar-user.pub-logged-out .pub-sidebar-user-actions a:hover {
  text-decoration: underline;
}

.oh-login-link {
  color: var(--brand-deep-teal, #0E6B6B);
  font-weight: 500;
}

.oh-login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary, #5a6978);
  cursor: pointer;
  margin: -8px 0 16px;
}
.oh-login-remember input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--brand-deep-teal, #0E6B6B);
  cursor: pointer;
}

.oh-field-hint {
  color: var(--text-muted);
  font-size: 12px;
  margin-top: 4px;
  display: block;
}

.oh-field-optional {
  color: var(--text-muted);
  font-weight: 400;
}

.oh-login-info {
  font-size: 12px;
  color: var(--color-muted);
  text-align: center;
  margin-top: 16px;
  line-height: 1.5;
}

.oh-login-footer {
  padding: 16px 32px;
  background: var(--color-bg);
  border-top: 1px solid var(--color-border);
  text-align: center;
  font-size: 11px;
  color: var(--color-muted);
}
/* Login — Demo CTA (moved from inline <style> in login.html) */
.oh-login-demo { margin-bottom: 24px; padding: 20px 24px; background: linear-gradient(135deg, var(--tag-info-bg, #eaf0fb) 0%, var(--bg-surface-alt, #f8fafb) 100%); border: 1.5px solid var(--tag-info-border, #b6d4fe); border-radius: 12px; text-align: center; }
.oh-login-demo-title { font-size: 15px; font-weight: 700; color: var(--bg-dark-mid, #1E3A5F); margin-bottom: 4px; }
.oh-login-demo-sub { font-size: 13px; color: var(--text-secondary, #5a6978); line-height: 1.5; margin-bottom: 14px; }
.oh-login-demo-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 24px; background: var(--brand-edu, #2563EB); color: var(--text-on-dark, #fff); border: none; border-radius: 8px; font-size: 14px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s; }
.oh-login-demo-btn:hover { background: var(--brand-edu-hover, #1D4ED8); }
.oh-login-divider { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; color: var(--text-muted, #6b7785); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }
.oh-login-divider::before, .oh-login-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-default, #e2e8f0); }


.oh-plan-badge {
  text-align: center;
  padding: 8px 16px;
  background: var(--bg-dark, #142942);
  border: 1px solid var(--bg-dark-mid, #1E3A5F);
  border-radius: 8px;
  margin-bottom: 16px;
  font-size: 14px;
  color: var(--text-muted, #6b7785);
}

.oh-plan-badge-name { color: var(--text-on-dark, #ffffff); }


/* ===================================================================
   PUBLIC PAGE COMPONENTS
   =================================================================== */
.pub-page { background: var(--color-surface); }
.pub-page body, body.pub-page { font-family: var(--font-body); color: var(--color-text); }

/* ── Skip-to-content link (WCAG 2.1 AA) ── */
.pub-skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--bg-dark);
  color: var(--text-on-dark);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}
.pub-skip-link:focus,
.skip-link:focus {
  top: 0;
  outline: 3px solid var(--color-accent);
  outline-offset: 2px;
}
.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  z-index: 10000;
  padding: 12px 24px;
  background: var(--bg-dark, #142942);
  color: var(--text-on-dark, #fff);
  font-size: 14px;
  font-weight: 600;
  border-radius: 0 0 8px 8px;
  text-decoration: none;
  transition: top 0.15s ease;
}

/* ── Eyebrow label — standalone (used anywhere, not scoped to hero) ── */
.pub-eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.pub-eyebrow::after {
  content: '';
  flex: 0 0 40px;
  height: 1px;
  background: rgba(var(--color-accent-rgb),0.4);
}

/* ── Shared dark hero base (about, services pages) ── */
.pub-dark-hero {
  background: linear-gradient(150deg, var(--bg-dark, #0D1F36) 0%, var(--bg-dark, #142942) 55%, var(--bg-dark-mid, #1a3a5c) 100%);
  color: var(--text-on-dark, #fff);
  position: relative;
  overflow: hidden;
}
.pub-dark-hero .pub-eyebrow { color: var(--color-accent-on-dark); }
.pub-dark-hero .pub-eyebrow::after { background: rgba(91, 192, 181, 0.4); }

/* ── Hero ── */
.pub-hero {
  padding: 120px 24px 80px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  color: var(--text-on-dark, #fff);
  position: relative;
  overflow: hidden;
}
.pub-hero::before {
  content: '';
  position: absolute;
  top: -150px; right: -100px;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--color-accent-rgb),0.12) 0%, transparent 70%);
  pointer-events: none;
}
.pub-hero-inner {
  display: flex;
  align-items: center;
  gap: 60px;
  max-width: 1100px;
  margin: 0 auto;
  width: 100%;
}
.pub-hero-text { flex: 1; }
.pub-hero-text h1 {
  font-family: var(--font-head);
  font-size: clamp(36px, 5vw, 54px);
  line-height: 1.12;
  letter-spacing: -0.5px;
  color: var(--text-on-dark, #fff);
  margin-bottom: 24px;
}
.pub-hero-text h1 em { font-style: italic; color: var(--color-accent-on-dark); }
.pub-hero-text .pub-eyebrow { color: var(--color-accent-on-dark); }
.pub-hero-text .pub-eyebrow::after { background: rgba(91, 192, 181, 0.4); }
.pub-hero-text p {
  font-size: 18px;
  line-height: 1.7;
  color: rgba(255,255,255,0.62);
  max-width: 540px;
}
.pub-hero-actions { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.pub-hero-mockup {
  flex: 0 0 380px;
  max-width: 380px;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.2);
  background: var(--color-primary-dark);
}

/* ── Stats bar ── */
.pub-stats-bar {
  background: var(--color-accent-dark); /* darker teal — ensures white text meets WCAG AA 4.5:1 */
  padding: 28px 24px;
  color: var(--text-on-dark, #fff);
}
.pub-stats-bar-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.pub-stat { text-align: center; }
.pub-stat-num { font-family: var(--font-head); font-size: 36px; font-weight: 700; line-height: 1; }
.pub-stat-num span { font-size: 20px; }
.pub-stat-label { font-size: 13px; color: rgba(255,255,255,0.9); margin-top: 4px; }

/* ── Feature grid ── */
.pub-feature-section { padding: 80px 24px; background: var(--color-bg); }
.pub-feature-section-inner { max-width: 1100px; margin: 0 auto; }
.pub-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
}
.pub-feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 32px 28px;
  box-shadow: 0 1px 3px rgba(0,0,0,.04);
  transition: border-color 0.15s, box-shadow 0.2s;
}
.pub-feature-card:hover {
  border-color: var(--color-accent);
  box-shadow: 0 8px 32px rgba(var(--color-accent-rgb),0.1);
}
.pub-feature-card-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.pub-feature-card h3 { font-family: var(--font-head); font-size: 20px; color: var(--color-primary); margin-bottom: 8px; }
.pub-feature-card p  { font-size: 14px; color: var(--color-muted); line-height: 1.65; }

/* Feature icon color variants */
.pub-feature-card-icon--teal   { background: var(--color-accent-tint); color: var(--color-accent); }
.pub-feature-card-icon--amber  { background: var(--tag-warning-bg, #fef3e2); color: var(--brand-clues, #D97706); }
.pub-feature-card-icon--indigo { background: var(--tag-info-bg, #eef2ff); color: var(--tag-info-text, #5b6abf); }
.pub-feature-card-icon--red    { background: var(--alert-error-bg, #fce8ec); color: var(--text-error, #c0392b); }

/* ── Product grid ── */
.pub-product-section { padding: 80px 24px; background: var(--color-bg); }
.pub-product-section-inner { max-width: 1100px; margin: 0 auto; text-align: center; }
.pub-product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 48px;
  text-align: left;
}
.pub-product-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  padding: 32px 28px;
  transition: border-color 0.15s, box-shadow 0.2s, transform 0.15s;
}
.pub-product-card:hover {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-lg);
  transform: translateY(-2px);
}
.pub-product-card h3 { font-size: 20px; margin-bottom: 8px; }
.pub-product-card p  { font-size: 14px; color: var(--color-muted); line-height: 1.65; }
.pub-product-card .pub-product-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 16px;
}

/* Product status color variants */
.pub-product-status--wip { color: var(--color-warning); }
.pub-product-status__dot {
  width: 7px; height: 7px; border-radius: 50%; display: inline-block;
}
.pub-product-status--wip .pub-product-status__dot { background: var(--color-warning-dot); }

/* Section eyebrow label — standalone (outside hero) */
.pub-eyebrow-center {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px;
  text-transform: uppercase; color: var(--color-accent);
  margin-bottom: 16px; text-align: center;
}

/* Section heading + lead used in feature/product sections */
.pub-section-head { text-align: center; margin-bottom: 0; }
.pub-section-head h2 {
  font-family: var(--font-head); font-size: 34px; color: var(--color-primary);
}
.pub-section-head p {
  font-size: 16px; color: var(--color-muted);
  max-width: 540px; margin: 12px auto 0; line-height: 1.65;
}

/* ── CTA banner ── */
.pub-cta-banner {
  padding: 80px 24px;
  background: linear-gradient(135deg, var(--color-primary-dark) 0%, var(--color-primary) 100%);
  text-align: center;
  color: var(--text-on-dark, #fff);
}
.pub-cta-banner h2 { font-family: var(--font-head); font-size: 34px; color: var(--text-on-dark, #fff); margin-bottom: 12px; }
.pub-cta-banner p  {
  font-size: 16px;
  color: rgba(255,255,255,0.55);
  max-width: 500px;
  margin: 0 auto 28px;
  line-height: 1.65;
}

/* ── Footer ── */
.pub-footer {
  background: var(--color-primary-dark);
  padding: 48px 24px 32px;
  color: rgba(255,255,255,0.55);
  font-size: 13px;
}
.pub-footer-inner {
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}
.pub-footer-brand { font-family: var(--font-sans, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif); font-size: 18px; color: var(--text-on-dark, #fff); font-weight: 700; letter-spacing: -0.01em; }
.pub-footer-links { display: flex; gap: 24px; }
.pub-footer-links a { color: rgba(255,255,255,0.5); font-size: 13px; transition: color 0.15s; }
.pub-footer-links a:hover { color: var(--text-on-dark, #fff); }
.pub-footer-contact-btn { background: none; border: none; padding: 0; font: inherit; font-size: 13px; color: rgba(255,255,255,0.5); transition: color 0.15s; cursor: pointer; }
.pub-footer-contact-btn:hover { color: var(--text-on-dark, #fff); }
.pub-footer-a11y-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  padding: 6px 14px;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.55);
  text-transform: uppercase;
}
.pub-footer-a11y-badge svg { opacity: 0.7; }
.pub-footer-copy {
  width: 100%;
  text-align: center;
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.08);
}

/* ── Buttons (pub variant) ── */
.pub-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  transition: all 0.15s;
  cursor: pointer;
  border: none;
}
.pub-btn-teal  { background-color: var(--color-accent); color: var(--text-on-dark, #fff); }
.pub-btn-teal:hover { background-color: var(--color-accent-hover); color: var(--text-on-dark, #fff); }
.pub-btn-white { background: rgba(255,255,255,0.1); color: var(--text-on-dark, #fff); border: 1px solid rgba(255,255,255,0.2); }
.pub-btn-white:hover { background: rgba(255,255,255,0.18); color: var(--text-on-dark, #fff); }
/* Dark mode: --btn-primary-bg resolves to #2DD4BF (light teal) in dark mode — only 1.86:1
   with white text. Switch .pub-btn-teal to --brand-deep-teal (#0E6B6B, 5.0:1 with white). */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .pub-btn-teal,
  html:not([data-theme="light"]) .pub-btn-teal:hover { background-color: var(--brand-deep-teal, #0E6B6B); color: #fff; }
}

/* ── Hero mockup (decorative EduForge preview in homepage hero) ── */
.pub-mockup-body { padding: 20px; }
.pub-mockup-toolbar { display: flex; gap: 6px; margin-bottom: 14px; }
.pub-mockup-tool {
  height: 28px; border-radius: 6px;
  background: rgba(var(--color-accent-rgb),.15); border: 1px solid rgba(var(--color-accent-rgb),.2);
  display: flex; align-items: center; padding: 0 10px;
  font-size: 11px; font-weight: 600; color: var(--color-accent);
}
.pub-mockup-block {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px; padding: 12px 14px; margin-bottom: 8px;
}
.pub-mockup-label {
  font-size: 9px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  color: var(--color-accent); margin-bottom: 6px;
}
.pub-mockup-bar {
  height: 8px; background: rgba(255,255,255,.12); border-radius: 4px; margin-bottom: 4px;
}
.pub-mockup-bar--60 { width: 60%; }
.pub-mockup-bar--80 { width: 80%; }
.pub-mockup-bar--85 { width: 85%; margin-bottom: 8px; }
.pub-mockup-choices { display: flex; gap: 6px; }
.pub-mockup-choice {
  flex: 1; height: 26px; border-radius: 5px;
  border: 1px solid rgba(var(--color-accent-rgb),.3); background: rgba(var(--color-accent-rgb),.08);
}
.pub-mockup-choice--active {
  border-color: rgba(var(--color-accent-rgb),.5); background: rgba(var(--color-accent-rgb),.18);
}

/* ── Product card icon ── */
.pub-product-icon { font-size: 28px; margin-bottom: 12px; }

/* ── Product section CTA row ── */
.pub-product-cta { margin-top: 32px; text-align: center; }

/* ── Large pub button ── */
.pub-btn-lg { font-size: 15px; padding: 14px 36px; }

.pub-dark-link { color: var(--text-link-on-dark); }
.pub-dark-link:hover { color: var(--text-link-on-dark-hover, #c7d2fe); }

/* ── Login back link ── */
.oh-login-back {
  position: fixed; top: 16px; left: 20px;
  font-size: 13px; color: rgba(255,255,255,0.75);
  text-decoration: none; transition: color .12s;
}
.oh-login-back:hover { color: var(--text-on-dark, #fff); }

/* ── Full-width button modifier ── */
.oh-btn-full { width: 100%; }

/* ── 404 hero ── */
.oh-404-hero {
  min-height: 60vh; display: flex; align-items: center;
  justify-content: center; text-align: center; padding: 104px 24px 40px;
}
.oh-404-num {
  font-size: 72px; color: var(--color-accent);
  font-family: var(--font-head); margin-bottom: 8px;
}
.oh-404-msg { font-size: 18px; color: var(--color-muted); margin-bottom: 24px; }

/* ── Responsive (pub) ── */
@media (max-width: 820px) {
  .pub-hero-inner      { flex-direction: column; gap: 40px; text-align: center; }
  .pub-hero-text .pub-eyebrow { justify-content: center; }
  .pub-hero-text p     { margin: 0 auto; }
  .pub-hero-actions    { justify-content: center; }
  .pub-hero-mockup     { flex: none; max-width: 100%; }
  .pub-feature-grid    { grid-template-columns: 1fr; }
  .pub-product-grid    { grid-template-columns: 1fr; }
  .pub-stats-bar-inner { flex-direction: column; gap: 16px; }
  .pub-footer-inner    { flex-direction: column; text-align: center; }
  .pub-footer-links    { justify-content: center; }
}
/* (About page CSS extracted to css/about.css — 2026-04-14) */
/* (Services page CSS extracted to css/services.css — 2026-04-14) */
/* ===================================================================
   Purchases / Pricing Page — px-* prefix
   =================================================================== */

/* ── Hero ── */
.px-hero { padding: 88px 24px 64px; text-align: center; }
.px-hero::before {
  content: '';
  position: absolute; bottom: -100px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 300px; border-radius: 50%;
  background: radial-gradient(ellipse, rgba(var(--color-accent-rgb),.08) 0%, transparent 70%);
  pointer-events: none;
}
.px-hero-eyebrow {
  font-size: 11px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--color-accent); margin-bottom: 20px;
}
.px-hero h1 {
  font-family: var(--font-head);
  font-size: clamp(34px, 5vw, 52px); color: var(--text-on-dark);
  line-height: 1.12; letter-spacing: -.4px; margin-bottom: 18px;
}
.px-hero p {
  font-size: 18px; color: rgba(255,255,255,.58);
  max-width: 540px; margin: 0 auto 36px; line-height: 1.65;
}

/* ── Billing toggle ── */
.px-billing-toggle {
  display: inline-flex; background: rgba(255,255,255,.07); border-radius: 10px;
  padding: 4px; gap: 2px;
}
.px-toggle-btn {
  font-family: inherit; font-size: 13px; font-weight: 600;
  padding: 8px 22px; border-radius: 7px; border: none; cursor: pointer;
  color: rgba(255,255,255,.5); background: transparent; transition: all .15s;
  display: inline-flex; align-items: center; gap: 6px;
}
.px-toggle-btn:hover { color: rgba(255,255,255,.85); }
.px-toggle-btn.active { background: rgba(255,255,255,.12); color: var(--text-on-dark); }
.px-save-badge {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px;
  background: rgba(5,150,105,.25); color: var(--text-success, #34d399); padding: 2px 7px; border-radius: 4px;
}

/* ── Sticky billing toggle ── */
.px-sticky-toggle {
  position: sticky; top: 64px; z-index: 90;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-default);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform .25s ease, opacity .25s ease;
}
.px-sticky-toggle.visible {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}
.px-sticky-toggle-inner {
  max-width: 1060px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  padding: 10px 24px;
}
.px-sticky-label {
  font-size: 12px; font-weight: 600; color: var(--text-muted); letter-spacing: .3px;
}
.px-billing-toggle--compact {
  background: var(--bg-surface-alt); border: 1px solid var(--border-default);
}
.px-billing-toggle--compact .px-toggle-btn {
  color: var(--text-muted); font-size: 12px; padding: 6px 16px;
}
.px-billing-toggle--compact .px-toggle-btn:hover { color: var(--text-primary); }
.px-billing-toggle--compact .px-toggle-btn.active {
  background: var(--btn-primary-bg); color: var(--btn-primary-text, #fff);
}
.px-billing-toggle--compact .px-save-badge {
  background: rgba(5,150,105,.12); color: var(--text-success, #059669);
}

/* ── Sections ── */
.px-section { padding: 72px 24px; }
.px-section--alt { background: var(--bg-surface-alt); }
.px-section-inner { max-width: 1060px; margin: 0 auto; }
.px-section-header { text-align: center; margin-bottom: 48px; }
.px-section-eyebrow {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  margin-bottom: 10px;
}
.px-eyebrow--edu { color: var(--sv-edu-accent, #2BBCD4); }
.px-eyebrow--lume { color: var(--sv-lume-accent, #E07A3F); }
.px-eyebrow--gamify { color: var(--neon-purple, #a855f7); }
.px-section-header h2 {
  font-family: var(--font-head); font-size: 34px; line-height: 1.15;
  color: var(--color-primary); margin-bottom: 12px;
}
.px-section-header p {
  font-size: 16px; color: var(--color-muted); max-width: 560px;
  margin: 0 auto; line-height: 1.65;
}

/* ── Shared features block (above cards) ── */
.px-shared-features {
  max-width: 680px; margin: 0 auto 40px; text-align: center;
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 16px; padding: 28px 36px 24px;
}
.px-shared-features-label {
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px;
  color: var(--color-muted); margin-bottom: 16px;
}
.px-shared-features-list {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px;
}
.px-shared-features-list li {
  font-size: 14px; color: var(--text-secondary); line-height: 1.8;
}
.px-shared-features-list li::before {
  content: '✓'; color: var(--btn-primary-bg); font-weight: 700; margin-right: 6px;
}
/* Compact card — no feature list, just seats + price + CTA */
.px-card--compact { text-align: center; }
.px-card--compact .px-card-header { margin-bottom: 16px; }
.px-card--compact .px-card-btn { margin-bottom: 0; }

/* ── Pricing cards ── */
.px-cards {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.px-card {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 16px; padding: 36px 28px 32px; position: relative;
  transition: border-color .15s, box-shadow .2s;
}
.px-card:hover { border-color: var(--border-focus); box-shadow: 0 8px 32px rgba(30,122,112,.08); }
.px-card--popular {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 0 0 1px var(--btn-primary-bg), 0 12px 40px rgba(30,122,112,.12);
}
.px-card--popular:hover {
  box-shadow: 0 0 0 1px var(--btn-primary-bg), 0 16px 48px rgba(30,122,112,.16);
}
.px-popular-flag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--btn-primary-bg); color: var(--btn-primary-text, #fff);
  font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px;
  padding: 4px 16px; border-radius: 20px; white-space: nowrap;
}
.px-card-header { margin-bottom: 20px; }
.px-card-name {
  font-family: var(--font-head); font-size: 22px; color: var(--color-primary);
  margin-bottom: 4px;
}
.px-card-seats { font-size: 13px; color: var(--color-muted); }
.px-card-price { margin-bottom: 4px; }
.px-amount {
  font-family: var(--font-head); font-size: 48px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.px-period { font-size: 16px; color: var(--color-muted); font-weight: 500; }
.px-annual-note {
  font-size: 12px; color: var(--color-muted); margin-bottom: 24px;
  min-height: 18px;
}
.px-card-btn {
  display: block; width: 100%; text-align: center;
  padding: 12px 24px; border-radius: 9px; font-size: 14px; font-weight: 700;
  text-decoration: none; transition: opacity .12s; margin-bottom: 24px;
  border: none; cursor: pointer; font-family: inherit;
}
.px-btn--edu { background: var(--sv-edu-accent, #2BBCD4); color: var(--bg-dark, #0D1F36); }
.px-btn--edu:hover { opacity: .85; }
.px-btn--gamify { background: var(--neon-purple, #a855f7); color: #fff; }
.px-btn--gamify:hover { opacity: .85; }
.px-cards--two { grid-template-columns: repeat(2, 1fr); max-width: 640px; margin: 0 auto; }
.px-gamify-single { max-width: 680px; margin: 0 auto; }
.px-gamify-card { padding: 32px !important; }
.px-gamify-card .px-features { margin-bottom: 28px; }
.px-gamify-card .px-features li:first-child { border-top: none; }
.px-gamify-options { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; padding-top: 24px; border-top: 1px solid var(--border-default); }
.px-gamify-option { padding: 20px; border-radius: 12px; background: var(--bg-page, #F0F2F5); text-align: center; }
.px-gamify-option--highlight { background: rgba(var(--neon-purple-rgb, 168,85,247),.06); border: 1.5px solid rgba(var(--neon-purple-rgb, 168,85,247),.25); }
.px-gamify-option-label { font-size: 15px; font-weight: 600; color: var(--text-primary); margin-bottom: 4px; }
.px-gamify-option-desc { font-size: 12px; color: var(--color-muted); margin-bottom: 12px; line-height: 1.4; }
.px-gamify-option .px-card-price { margin-bottom: 12px; }
.px-gamify-option .px-card-btn { font-size: 13px; padding: 10px 20px; }

/* ── Gamify — Neon Arcade Treatment ── */
.px-neon-arcade {
  /* Neon theme tokens — single source for all neon colors */
  --neon-bg:            #0a0a0f;
  --neon-purple:        #a855f7;
  --neon-purple-light:  #c084fc;
  --neon-purple-pale:   #e9d5ff;
  --neon-cyan:          #22d3ee;
  --neon-purple-rgb:    168, 85, 247;
  --neon-cyan-rgb:      34, 211, 238;
  --neon-purple-lt-rgb: 192, 132, 252;
  --neon-white-rgb:     255, 255, 255;
  --neon-rust-rgb:      217, 90, 43;
  --neon-teal-rgb:      14, 107, 107;

  position: relative;
  background: var(--neon-bg);
  overflow: hidden;
}
.px-neon-arcade .px-section-inner { position: relative; z-index: 1; }
/* Faint perspective grid behind content */
.px-neon-grid {
  position: absolute; inset: 0;
  background:
    linear-gradient(rgba(var(--neon-purple-rgb),.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(var(--neon-purple-rgb),.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 50%, #000 30%, transparent 100%);
}
/* Top edge glow line */
.px-neon-arcade::before {
  content: '';
  position: absolute; top: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-purple), var(--neon-cyan), var(--neon-purple), transparent);
  box-shadow: 0 0 12px 2px rgba(var(--neon-purple-rgb),.35), 0 0 40px 4px rgba(var(--neon-cyan-rgb),.15);
}
/* Bottom edge glow line */
.px-neon-arcade::after {
  content: '';
  position: absolute; bottom: 0; left: 10%; right: 10%; height: 1px;
  background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), var(--neon-cyan), transparent);
  box-shadow: 0 0 12px 2px rgba(var(--neon-cyan-rgb),.35), 0 0 40px 4px rgba(var(--neon-purple-rgb),.15);
}
/* Header text overrides for dark bg */
.px-neon-header h2 { color: var(--text-on-dark); }
.px-neon-header p { color: rgba(var(--neon-white-rgb),.6); }
.px-neon-header .px-eyebrow--gamify {
  color: var(--neon-purple-light);
  text-shadow: 0 0 8px rgba(var(--neon-purple-lt-rgb),.5);
  letter-spacing: 2px;
}
/* Neon glow title */
.px-neon-title {
  text-shadow:
    0 0 10px rgba(var(--neon-purple-rgb),.4),
    0 0 40px rgba(var(--neon-purple-rgb),.15);
}
.px-neon-arcade .oh-brand-o {
  text-shadow: 0 0 8px rgba(var(--neon-rust-rgb),.6), 0 0 24px rgba(var(--neon-rust-rgb),.2);
}
.px-neon-arcade .oh-brand-h {
  text-shadow: 0 0 8px rgba(var(--neon-teal-rgb),.6), 0 0 24px rgba(var(--neon-teal-rgb),.2);
}
/* Card override — dark glass */
.px-neon-card {
  background: rgba(var(--neon-white-rgb),.04) !important;
  border: 1px solid rgba(var(--neon-purple-rgb),.2) !important;
  box-shadow: 0 0 30px rgba(var(--neon-purple-rgb),.08), inset 0 1px 0 rgba(var(--neon-white-rgb),.05);
  backdrop-filter: blur(8px);
}
.px-neon-card:hover {
  border-color: rgba(var(--neon-purple-rgb),.4) !important;
  box-shadow: 0 0 40px rgba(var(--neon-purple-rgb),.15), 0 0 80px rgba(var(--neon-cyan-rgb),.06);
}
.px-neon-card .px-features li {
  color: rgba(var(--neon-white-rgb),.75);
  border-color: rgba(var(--neon-white-rgb),.08);
}
.px-neon-card .px-features li::before {
  color: var(--neon-cyan);
  text-shadow: 0 0 6px rgba(var(--neon-cyan-rgb),.5);
}
/* Option panels — dark with neon edges */
.px-neon-card .px-gamify-options {
  border-color: rgba(var(--neon-white-rgb),.08);
}
.px-neon-card .px-gamify-option {
  background: rgba(var(--neon-white-rgb),.03);
  border: 1px solid rgba(var(--neon-white-rgb),.08);
  transition: border-color .2s, box-shadow .2s;
}
.px-neon-card .px-gamify-option:hover {
  border-color: rgba(var(--neon-purple-rgb),.3);
  box-shadow: 0 0 20px rgba(var(--neon-purple-rgb),.1);
}
.px-neon-card .px-gamify-option--highlight {
  background: rgba(var(--neon-purple-rgb),.06);
  border: 1.5px solid rgba(var(--neon-purple-rgb),.3);
  box-shadow: 0 0 20px rgba(var(--neon-purple-rgb),.08);
}
.px-neon-card .px-gamify-option--highlight:hover {
  box-shadow: 0 0 30px rgba(var(--neon-purple-rgb),.18);
}
.px-neon-card .px-gamify-option-label {
  color: var(--text-on-dark);
}
.px-neon-card .px-gamify-option-desc {
  color: rgba(var(--neon-white-rgb),.45);
}
.px-neon-card .px-card-price .px-amount {
  color: var(--text-on-dark);
}
.px-neon-card .px-card-price .px-period {
  color: rgba(var(--neon-white-rgb),.4);
}
/* Neon save badge */
.px-neon-badge {
  background: rgba(var(--neon-cyan-rgb),.12) !important;
  color: var(--neon-cyan) !important;
  text-shadow: 0 0 6px rgba(var(--neon-cyan-rgb),.4);
}
/* Neon CTA buttons */
.px-btn--neon {
  background: transparent;
  color: var(--neon-purple-light);
  border: 1.5px solid var(--neon-purple);
  box-shadow: 0 0 10px rgba(var(--neon-purple-rgb),.25), inset 0 0 10px rgba(var(--neon-purple-rgb),.06);
  transition: all .2s;
  text-shadow: 0 0 6px rgba(var(--neon-purple-lt-rgb),.4);
}
.px-btn--neon:hover {
  background: rgba(var(--neon-purple-rgb),.12);
  color: var(--neon-purple-pale);
  box-shadow: 0 0 20px rgba(var(--neon-purple-rgb),.4), 0 0 60px rgba(var(--neon-purple-rgb),.1), inset 0 0 15px rgba(var(--neon-purple-rgb),.1);
  text-shadow: 0 0 10px rgba(var(--neon-purple-lt-rgb),.6);
}
/* Pulse animation on the highlight option */
@keyframes neonPulse {
  0%, 100% { box-shadow: 0 0 20px rgba(var(--neon-purple-rgb),.08); }
  50% { box-shadow: 0 0 30px rgba(var(--neon-purple-rgb),.2), 0 0 60px rgba(var(--neon-purple-rgb),.06); }
}
.px-neon-card .px-gamify-option--highlight {
  animation: neonPulse 3s ease-in-out infinite;
}
.oh-brand-o { color: var(--brand-rust, #D95A2B); }
.oh-brand-h { color: var(--brand-deep-teal, #0E6B6B); }
.px-features { list-style: none; padding: 0; margin: 0; }
.px-features li {
  font-size: 14px; color: var(--text-primary); line-height: 1.5;
  padding: 8px 0; border-top: 1px solid var(--border-default);
  padding-left: 22px; position: relative;
}
.px-features li::before {
  content: '\2713'; position: absolute; left: 0; color: var(--text-success);
  font-weight: 700; font-size: 13px;
}

/* ── Add-ons ── */
.px-addons { display: flex; flex-direction: column; gap: 20px; max-width: 720px; margin: 0 auto; }
.px-addon {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 14px; padding: 28px 32px; display: flex; gap: 24px;
  align-items: flex-start; transition: border-color .15s, box-shadow .2s;
}
.px-addon:hover { border-color: var(--border-focus); box-shadow: 0 4px 20px rgba(30,122,112,.06); }
.px-addon-icon {
  width: 52px; height: 52px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.px-icon--lume { background: rgba(224,122,63,.1); color: var(--sv-lume-accent, #E07A3F); }
.px-icon--gamify { background: rgba(var(--neon-purple-rgb, 168,85,247),.1); color: var(--neon-purple, #a855f7); }
.px-addon-body { flex: 1; }
.px-addon-eyebrow {
  font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px;
  margin-bottom: 4px;
}
.px-addon-name {
  font-family: var(--font-head); font-size: 20px; color: var(--color-primary);
  margin-bottom: 6px;
}
.px-addon-desc {
  font-size: 14px; color: var(--color-muted); line-height: 1.6; margin-bottom: 14px;
}
.px-addon-pricing-row { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.px-addon-divider { width: 1px; height: 28px; background: var(--border-default); }
.px-addon-price { display: flex; align-items: baseline; gap: 4px; flex-wrap: wrap; }
.px-addon-amount {
  font-family: var(--font-head); font-size: 28px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.px-addon-period { font-size: 14px; color: var(--color-muted); }
.px-addon-note {
  font-size: 12px; color: var(--color-muted); margin-left: 4px;
}
.px-addon-tag {
  display: inline-block; margin-top: 10px;
  font-size: 11px; font-weight: 600; color: var(--tag-info-text);
  background: var(--tag-info-bg); padding: 3px 10px; border-radius: 20px;
}

/* ── Bundles ── */
.px-bundles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.px-bundle {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: 14px; padding: 28px 24px; text-align: center;
  transition: border-color .15s;
}
.px-bundle:hover { border-color: var(--border-focus); }
.px-bundle--highlight {
  border-color: var(--btn-primary-bg);
  box-shadow: 0 0 0 1px var(--btn-primary-bg);
}
.px-bundle-label {
  font-family: var(--font-head); font-size: 18px; color: var(--color-primary);
  margin-bottom: 6px;
}
.px-bundle-contents { font-size: 13px; color: var(--color-muted); margin-bottom: 16px; line-height: 1.5; }
.px-bundle-price { margin-bottom: 6px; }
.px-bundle-amount {
  font-family: var(--font-head); font-size: 36px; font-weight: 700;
  color: var(--text-primary); line-height: 1;
}
.px-bundle-period { font-size: 14px; color: var(--color-muted); }
.px-bundle-note { font-size: 12px; color: var(--color-muted); line-height: 1.4; }

/* ── FAQ ── */
.px-faq-inner { max-width: 680px; }
.px-faq-list { display: flex; flex-direction: column; gap: 0; }
.px-faq {
  border-bottom: 1px solid var(--border-default);
}
.px-faq summary {
  font-size: 15px; font-weight: 600; color: var(--text-primary);
  padding: 18px 0; cursor: pointer; list-style: none; display: flex;
  align-items: center; justify-content: space-between;
}
.px-faq summary::-webkit-details-marker { display: none; }
.px-faq summary::after {
  content: '+'; font-size: 20px; font-weight: 400; color: var(--color-muted);
  transition: transform .15s;
}
.px-faq[open] summary::after { content: '\2212'; }
.px-faq p {
  font-size: 14px; color: var(--color-muted); line-height: 1.7;
  padding: 0 0 18px; margin: 0;
}

/* ── Responsive (pricing) ── */
@media (max-width: 820px) {
  .px-cards { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .px-cards--two { grid-template-columns: 1fr; max-width: 400px; }
  .px-bundles { grid-template-columns: 1fr; max-width: 400px; margin: 0 auto; }
  .px-addon { flex-direction: column; gap: 16px; }
  .px-addon-pricing-row { flex-direction: column; gap: 8px; }
  .px-addon-divider { width: 100%; height: 1px; }
  .px-gamify-options { grid-template-columns: 1fr; }
}

/* ============================================================
   Octologic Health — File Upload Modal  (/css/file-upload.css)
   v2 — Self-contained: all styles scoped to fu-* prefix.
   ============================================================ */

/* ── Buttons ─────────────────────────────────────────────────── */
.fu-btn{padding:6px 14px;border-radius:8px;border:1.5px solid var(--border-default);background:var(--bg-surface);color:var(--text-primary);font-family:inherit;font-size:13px;font-weight:500;cursor:pointer;transition:all .15s;white-space:nowrap;line-height:1.4}
.fu-btn:hover{border-color:var(--border-focus);color:var(--text-link)}
.fu-btn:disabled{opacity:.4;cursor:not-allowed;pointer-events:none}
.fu-btn-primary{background:var(--btn-primary-bg);color:var(--text-on-dark);border-color:var(--border-focus)}
.fu-btn-primary:hover{opacity:.88;color:var(--text-on-dark);border-color:var(--border-focus)}
.fu-btn-sm{padding:3px 9px;font-size:11px;border-radius:5px}
.fu-btn-danger{color:var(--text-error);border-color:var(--alert-error-border);background:var(--alert-error-bg)}
.fu-btn-danger:hover{background:var(--alert-error-bg);border-color:var(--alert-error-border)}
.fu-btn-warn{color:var(--text-warning);border-color:var(--alert-warning-border);background:var(--alert-warning-bg)}
.fu-btn-warn:hover{background:var(--alert-warning-bg)}

/* ── Help bubble ─────────────────────────────────────────────── */
.fu-help-btn{width: 44px;height: 44px;border-radius:50%;border:1.5px solid var(--border-disabled);background:var(--bg-surface-alt);color:var(--text-secondary);font-size:11px;font-weight:700;cursor:pointer;display:flex;align-items:center;justify-content:center;font-family:inherit;transition:all .15s;padding:0;line-height:1}
.fu-help-btn:hover{border-color:var(--border-focus);color:var(--text-link);background:var(--bg-tint)}
.fu-help-popover{position:absolute;top:calc(100% + 8px);right:0;width:300px;background:var(--bg-surface);border:1.5px solid var(--border-default);border-radius:10px;box-shadow:0 8px 28px rgba(0,0,0,.14);padding:16px;z-index:20}
.fu-help-popover::before{content:'';position:absolute;top:-7px;right:7px;width:12px;height:12px;background:var(--bg-surface);border:1.5px solid var(--border-default);border-bottom:none;border-right:none;transform:rotate(45deg)}
.fu-help-title{font-size:12px;font-weight:700;color:var(--text-primary);letter-spacing:.3px;margin-bottom:8px}
.fu-help-body{font-size:12px;color:var(--text-secondary);line-height:1.55;margin:0}
.fu-help-link{display:inline-block;font-size:12px;font-weight:600;color:var(--text-link);text-decoration:none;margin-top:8px}
.fu-help-link:hover{text-decoration:underline}

/* ── Tabs ────────────────────────────────────────────────────── */
.fu-tab-bar{display:flex;border-bottom:1.5px solid var(--border-default)}
.fu-tab{flex:1;padding:9px 12px;font-size:12px;font-weight:600;color:var(--text-secondary);background:none;border:none;border-bottom:2px solid transparent;margin-bottom:-1.5px;cursor:pointer;text-transform:uppercase;letter-spacing:.4px;font-family:inherit;transition:color .15s,border-color .15s}
.fu-tab:hover{color:var(--text-primary)}
.fu-tab:disabled{opacity:.4;cursor:not-allowed}
.fu-tab-active{color:var(--text-link);border-bottom-color:var(--text-link)}

/* ── Upload zone ─────────────────────────────────────────────── */
.fu-upload-zone{padding:14px 20px;border-bottom:1px solid var(--border-default);background:var(--bg-surface-alt)}
.fu-file-picker-row{display:flex;gap:8px;align-items:center}
.fu-filename-display{flex:1;padding:7px 10px;border:1.5px solid var(--border-default);border-radius:8px;font-size:13px;color:var(--text-secondary);background:var(--bg-surface);font-family:inherit;cursor:default;outline:none}

/* ── Search bar ──────────────────────────────────────────────── */
.fu-search-wrap{padding:8px 16px;border-bottom:1px solid var(--border-default);background:var(--bg-surface-alt)}
.fu-search-input{width:100%;padding:7px 10px;border:1.5px solid var(--border-default);border-radius:8px;font-size:13px;font-family:inherit;color:var(--text-primary);background:var(--bg-surface);outline:none;transition:border-color .15s;box-sizing:border-box}
.fu-search-input:focus{border-color:var(--border-focus);box-shadow:var(--focus-ring)}
.fu-search-input::placeholder{color:var(--text-muted)}

/* ── APA fields (used in expanded file rows) ─────────────────── */
.fu-apa-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px}
.fu-apa-wide{grid-column:1/-1}
.fu-apa-field-narrow{grid-column:span 1}
.fu-apa-field label{display:block;font-size:10px;font-weight:600;color:var(--text-secondary);text-transform:uppercase;letter-spacing:.5px;margin-bottom:3px;font-family:inherit}
.fu-apa-input{width:100%;padding:5px 8px;border:1.5px solid var(--border-default);border-radius:6px;font-size:12px;font-family:inherit;color:var(--text-primary);background:var(--bg-surface);outline:none;box-sizing:border-box;transition:border-color .15s}
.fu-apa-input:focus{border-color:var(--border-focus);box-shadow:var(--focus-ring)}
.fu-apa-input:disabled{opacity:.45;cursor:default;background:var(--bg-surface-alt)}

/* ── File list area ──────────────────────────────────────────── */
.fu-list-area{flex:1}
.fu-list-locked{opacity:.45;pointer-events:none}
.fu-section-hdr{display:flex;align-items:center;justify-content:space-between;padding:5px 14px;font-size:10px;font-weight:700;text-transform:uppercase;letter-spacing:.5px;color:var(--text-secondary);background:var(--bg-page);border-bottom:1px solid var(--border-default)}

/* ── File wrap (outer container) ────────────────────────────── */
.fu-file-wrap{border-bottom:1px solid var(--border-default)}
.fu-file-wrap:last-child{border-bottom:none}

/* ── File rows ───────────────────────────────────────────────── */
.fu-file-row{display:flex;align-items:center;gap:8px;padding:9px 16px;cursor:pointer;transition:background .1s}
.fu-file-row:hover{background:var(--bg-surface-alt)}
.fu-file-row.fu-file-expanded{background:var(--bg-tint)}
.fu-file-row.fu-file-muted{opacity:.4;pointer-events:none}
.fu-file-row.fu-file-moving{background:var(--alert-warning-bg);outline:2px dashed var(--text-warning);outline-offset:-2px}
.fu-file-chevron{font-size:9px;color:var(--text-muted);flex-shrink:0;width:12px;text-align:center}
.fu-file-info{flex:1;min-width:0}
.fu-file-name{font-size:13px;font-weight:600;color:var(--text-primary);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:flex;align-items:center;gap:6px}
.fu-file-meta{font-size:11px;color:var(--text-secondary);margin-top:2px}
.fu-file-actions{display:flex;gap:5px;flex-shrink:0}
.fu-ext-badge{font-size:9px;font-weight:700;letter-spacing:.3px;text-transform:uppercase;color:var(--text-on-dark);background:var(--text-secondary);border-radius:3px;padding:1px 5px;flex-shrink:0}

/* ── Expanded APA panel ──────────────────────────────────────── */
.fu-file-expand{padding:12px 16px 14px 36px;background:var(--bg-surface-alt);border-top:1px solid var(--border-default)}
.fu-expand-apa{display:grid;grid-template-columns:1fr 1fr 1fr;gap:8px;margin-bottom:12px}
.fu-expand-footer{display:flex;align-items:center;justify-content:space-between;padding-top:8px;border-top:1px solid var(--border-default);margin-top:4px}
.fu-expand-footer-right{display:flex;gap:6px;align-items:center}

/* ── Folder rows ─────────────────────────────────────────────── */
.fu-folder-wrap{}
.fu-folder-row{display:flex;align-items:center;gap:6px;padding:0 12px;height:36px;cursor:pointer;background:var(--bg-page);border-bottom:1px solid var(--border-default);user-select:none;transition:background .1s}
.fu-folder-row:hover{background:var(--bg-tint)}
.fu-folder-chevron{font-size:9px;color:var(--text-secondary);transition:transform .15s;flex-shrink:0;display:inline-block}
.fu-folder-row.open .fu-folder-chevron{transform:rotate(90deg)}
.fu-folder-icon{font-size:14px;flex-shrink:0}
.fu-folder-name{font-size:13px;font-weight:600;color:var(--text-primary)}
.fu-folder-count{font-size:10px;font-weight:600;color:var(--text-muted);background:var(--bg-surface-alt);border:1px solid var(--border-default);border-radius:99px;padding:0 6px;line-height:18px;flex-shrink:0;margin-left:4px}
.fu-folder-spacer{flex:1}
.fu-folder-actions{visibility:hidden;display:flex;gap:4px;flex-shrink:0;opacity:0;transition:opacity .12s}
.fu-folder-row:hover .fu-folder-actions{visibility:visible;opacity:1}
.fu-folder-content{display:none}
.fu-folder-content.open{display:block}
.fu-folder-empty{padding:9px 16px 9px 36px;font-size:12px;color:var(--text-secondary);font-style:italic;border-bottom:1px solid var(--border-default)}

/* ── Move / Copy Here button ─────────────────────────────────── */
.fu-move-here-btn{font-size:11px;font-weight:600;padding:3px 10px;background:var(--btn-primary-bg);color:var(--text-on-dark);border:none;border-radius:4px;cursor:pointer;white-space:nowrap;flex-shrink:0;font-family:inherit}
.fu-move-here-btn:hover{opacity:.88}
/* ===================================================================
   Guidelines — Shared Stylesheet
   Designed for popup/embed use on standard corporate monitors (~1920x1080).
   Target popup size: ~900px wide × 600px tall (max).
   =================================================================== */

/* --g-* tokens for guideline popup pages (DM Sans, blue accent) */
.g-shell {
  --g-primary: #1E3A5F;
  --g-accent: #2D9CDB;
  --g-accent-light: #E0F2FE;
  --g-bg: #FAFBFC;
  --g-surface: #FFFFFF;
  --g-text: #1A1A2E;
  --g-muted: #5A6578;
  --g-border: #E2E8F0;
  --g-sidebar-bg: #F1F5F9;
  --g-callout-bg: #F8FAFC;
  --g-font-head: 'DM Sans', system-ui, -apple-system, sans-serif;
  --g-font-body: 'DM Sans', system-ui, -apple-system, sans-serif;
  --g-radius: 6px;
}



/* --- LAYOUT: sidebar + content --- */
.g-shell {
  display: flex;
  height: 100%;
  overflow: hidden;
}

/* --- SIDEBAR --- */
.g-sidebar {
  width: 200px;
  min-width: 200px;
  background: var(--g-sidebar-bg);
  border-right: 1px solid var(--g-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.g-sidebar-head {
  padding: 14px 16px 10px;
  border-bottom: 1px solid var(--g-border);
}

.g-sidebar-title {
  font-family: var(--g-font-head);
  font-size: 13px;
  font-weight: 700;
  color: var(--g-primary);
  letter-spacing: -0.2px;
  line-height: 1.3;
}

.g-sidebar-subtitle {
  font-size: 10px;
  color: var(--g-muted);
  margin-top: 2px;
  letter-spacing: 0.3px;
  text-transform: uppercase;
  font-weight: 600;
}

.g-nav {
  list-style: none;
  padding: 8px 0;
  overflow-y: auto;
  flex: 1;
}

.g-nav li {
  position: relative;
}

.g-nav a {
  display: block;
  padding: 6px 16px;
  font-size: 12px;
  color: var(--g-muted);
  text-decoration: none;
  transition: color 0.12s, background 0.12s;
  line-height: 1.4;
  border-left: 3px solid transparent;
}

.g-nav a:hover {
  color: var(--g-text);
  background: rgba(45, 156, 219, 0.06);
}

.g-nav a.active {
  color: var(--g-accent);
  font-weight: 600;
  border-left-color: var(--g-accent);
  background: rgba(45, 156, 219, 0.08);
}

.g-nav-divider {
  height: 1px;
  background: var(--g-border);
  margin: 6px 16px;
}

/* --- MAIN CONTENT --- */
.g-main {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px 40px;
  scroll-behavior: smooth;
}

/* --- HEADINGS --- */
.g-main h1 {
  font-family: var(--g-font-head);
  font-size: 20px;
  font-weight: 700;
  color: var(--g-primary);
  margin-bottom: 4px;
  letter-spacing: -0.3px;
}

.g-main h1 + .g-lead {
  font-size: 13px;
  color: var(--g-muted);
  margin-bottom: 20px;
  line-height: 1.5;
}

.g-section {
  margin-bottom: 28px;
  scroll-margin-top: 16px;
}

.g-section h2 {
  font-family: var(--g-font-head);
  font-size: 15px;
  font-weight: 700;
  color: var(--g-primary);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--g-accent-light);
  letter-spacing: -0.1px;
}

.g-section h3 {
  font-size: 13px;
  font-weight: 700;
  color: var(--g-text);
  margin: 14px 0 6px;
}

/* --- BODY TEXT --- */
.g-section p {
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.65;
}

.g-section ul, .g-section ol {
  margin: 6px 0 10px 20px;
  font-size: 13px;
  line-height: 1.65;
}

.g-section li {
  margin-bottom: 4px;
}

.g-section li::marker {
  color: var(--g-accent);
}

/* --- CALLOUT BOXES --- */
.g-callout {
  background: var(--g-callout-bg);
  border-left: 3px solid var(--g-accent);
  border-radius: 0 var(--g-radius) var(--g-radius) 0;
  padding: 10px 14px;
  margin: 10px 0;
  font-size: 12px;
  line-height: 1.55;
}

.g-callout-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--g-accent);
  margin-bottom: 4px;
}

.g-callout.g-callout--tip {
  border-left-color: var(--text-success, #10B981);
}
.g-callout.g-callout--tip .g-callout-label {
  color: var(--text-success, #10B981);
}

.g-callout.g-callout--warn {
  border-left-color: var(--color-warning-dot);
  background: var(--alert-warning-bg, #FFFBEB);
}
.g-callout.g-callout--warn .g-callout-label {
  color: var(--brand-clues, #D97706);
}

/* --- KEY POINT (bold inline highlight) --- */
.g-key {
  font-weight: 600;
  color: var(--g-primary);
}

/* --- STAT / NUMBER CALLOUT --- */
.g-stat {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  background: var(--g-accent-light);
  border-radius: var(--g-radius);
  padding: 6px 12px;
  margin: 6px 0;
  font-size: 12px;
}

.g-stat-num {
  font-size: 20px;
  font-weight: 700;
  color: var(--g-accent);
  line-height: 1;
}

/* --- TABLE --- */
.g-table-wrap {
  overflow-x: auto;
  margin: 10px 0;
}

.g-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.g-table th {
  background: var(--g-sidebar-bg);
  text-align: left;
  padding: 8px 10px;
  font-weight: 700;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--g-muted);
  border-bottom: 2px solid var(--g-border);
}

.g-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--g-border);
  vertical-align: top;
  line-height: 1.5;
}

.g-table tr:last-child td {
  border-bottom: none;
}

/* --- COMPARISON (do / don't) --- */
.g-compare {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 10px 0;
}

.g-compare-do, .g-compare-dont {
  border-radius: var(--g-radius);
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.5;
}

.g-compare-do {
  background: var(--tag-success-bg, #ECFDF5);
  border: 1px solid var(--tag-success-border, #A7F3D0);
}

.g-compare-dont {
  background: var(--alert-error-bg, #FEF2F2);
  border: 1px solid var(--alert-error-border, #FECACA);
}

.g-compare-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 4px;
}

.g-compare-do .g-compare-label { color: var(--text-success, #059669); }
.g-compare-dont .g-compare-label { color: var(--text-error, #DC2626); }

/* --- SOURCE CITATION --- */
.g-source {
  font-size: 11px;
  color: var(--g-muted);
  font-style: italic;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--g-border);
  line-height: 1.5;
}

/* --- CHECKLIST --- */
.g-checklist {
  list-style: none;
  margin: 8px 0;
  padding: 0;
}

.g-checklist li {
  padding: 5px 0 5px 22px;
  position: relative;
  font-size: 12px;
  line-height: 1.5;
}

.g-checklist li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 7px;
  width: 14px;
  height: 14px;
  border: 1.5px solid var(--g-border);
  border-radius: 3px;
  background: var(--g-surface);
}

/* --- SCROLLBAR (subtle) --- */
.g-main::-webkit-scrollbar,
.g-nav::-webkit-scrollbar {
  width: 5px;
}

.g-main::-webkit-scrollbar-track,
.g-nav::-webkit-scrollbar-track {
  background: transparent;
}

.g-main::-webkit-scrollbar-thumb,
.g-nav::-webkit-scrollbar-thumb {
  background: var(--g-border);
  border-radius: 4px;
}

.g-main::-webkit-scrollbar-thumb:hover,
.g-nav::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover, #94A3B8);
}

/* --- FOOTER --- */
.g-footer {
  margin-top: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--g-border);
  font-size: 10px;
  color: var(--g-muted);
  text-align: center;
}

/* (breakroom CSS removed — theBreakroom was removed 2026-04-08, ~408 lines deleted) */

/* ══ Guidelines — Index Page (extracted from inline) ══ */
/* --g-* tokens for guidelines index page (Inter, teal accent) */
.shell {
  --g-primary: #1E3A5F;
  --g-accent: #2a9d8f;
  --g-accent-light: #e8f5f3;
  --g-bg: #F0F2F5;
  --g-surface: #FFFFFF;
  --g-text: #1A1A2E;
  --g-muted: #5A6578;
  --g-border: #E2E8F0;
  --g-sidebar-bg: #F1F5F9;
  --g-font: 'Inter', -apple-system, sans-serif;
  --g-radius: 8px;
}



/* ── SHELL ── */
.shell {
  display: flex;
  height: calc(100vh - var(--ohh-height, 40px));
  overflow: hidden;
}

/* ── SEARCH ── */
.sidebar-search {
  width: 100%;
  height: 30px;
  border: 1px solid var(--g-border);
  border-radius: 6px;
  background: var(--g-sidebar-bg);
  padding: 0 10px;
  font-family: var(--g-font);
  font-size: 12px;
  color: var(--g-text);
  outline: none;
  margin-top: 8px;
  transition: border-color 0.15s;
}
.sidebar-search::placeholder { color: var(--g-muted); }
.sidebar-search:focus { border-color: var(--g-accent); }

/* ── SIDEBAR ── */
.sidebar {
  width: 240px;
  min-width: 240px;
  background: var(--g-surface);
  border-right: 1px solid var(--g-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sidebar-head {
  padding: 16px 18px 12px;
  border-bottom: 1px solid var(--g-border);
}

.sidebar-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--g-muted);
}

.cat-list {
  list-style: none;
  overflow-y: auto;
  flex: 1;
  padding: 8px 0;
}

.cat-header {
  padding: 10px 18px 4px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.7px;
  color: var(--g-accent);
}

.cat-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 18px;
  cursor: pointer;
  transition: background 0.12s;
  border-left: 3px solid transparent;
}

.cat-item:hover { background: var(--g-sidebar-bg); }

.cat-item.active {
  background: var(--g-accent-light);
  border-left-color: var(--g-accent);
}

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

.cat-info { flex: 1; min-width: 0; }

.cat-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--g-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cat-desc {
  font-size: 11px;
  color: var(--g-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 1px;
}

.cat-badge {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 10px;
  background: var(--g-sidebar-bg);
  color: var(--g-muted);
  flex-shrink: 0;
}

.sidebar-footer {
  padding: 10px 18px;
  border-top: 1px solid var(--g-border);
  font-size: 10px;
  color: var(--g-muted);
  text-align: center;
}

/* ── MAIN AREA ── */
.main {
  flex: 1;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Landing view */
.landing {
  flex: 1;
  overflow-y: auto;
  padding: 40px;
}

.landing-hero {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 40px 0 32px;
}

.landing-icon {
  width: 56px;
  height: 56px;
  border-radius: 14px;
  background: var(--g-accent-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 26px;
}

.landing-hero h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--g-primary);
  letter-spacing: -0.3px;
  margin-bottom: 8px;
}

.landing-hero p {
  font-size: 14px;
  color: var(--g-muted);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 16px;
  max-width: 800px;
  margin: 0 auto;
}

.g-card {
  background: var(--g-surface);
  border: 1px solid var(--g-border);
  border-radius: var(--g-radius);
  padding: 20px;
  cursor: pointer;
  transition: border-color 0.15s, box-shadow 0.15s, transform 0.12s;
  position: relative;
  overflow: hidden;
}

.g-card:hover {
  border-color: var(--g-accent);
  box-shadow: 0 4px 16px rgba(45, 156, 219, 0.1);
  transform: translateY(-1px);
}

.g-card-stripe {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
}

.g-card-head {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 10px;
}

.g-card-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.g-card-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--g-text);
  line-height: 1.3;
}

.g-card-subtitle {
  font-size: 11px;
  color: var(--g-muted);
  margin-top: 2px;
}

.g-card p {
  font-size: 13px;
  color: var(--g-muted);
  line-height: 1.55;
}

.g-card-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.g-card-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--g-sidebar-bg);
  color: var(--g-muted);
  letter-spacing: 0.2px;
}

/* Viewer (iframe) */
.viewer {
  flex: 1;
  display: none;
  flex-direction: column;
}

.viewer.active { display: flex; }
.landing.hidden { display: none; }

.viewer-bar {
  height: 38px;
  background: var(--g-surface);
  border-bottom: 1px solid var(--g-border);
  display: flex;
  align-items: center;
  padding: 0 14px;
  gap: 10px;
  flex-shrink: 0;
}

.viewer-back {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  color: var(--g-accent);
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  border: none;
  background: none;
  font-family: var(--g-font);
  transition: background 0.12s;
}

.viewer-back:hover { background: var(--g-accent-light); }

.viewer-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--g-text);
}

.viewer-frame {
  flex: 1;
  border: none;
  background: var(--g-bg);
}

/* ── SCROLLBAR ── */
.cat-list::-webkit-scrollbar,
.landing::-webkit-scrollbar { width: 5px; }
.cat-list::-webkit-scrollbar-track,
.landing::-webkit-scrollbar-track { background: transparent; }
.cat-list::-webkit-scrollbar-thumb,
.landing::-webkit-scrollbar-thumb { background: var(--g-border); border-radius: 4px; }

/* ── EMPTY STATE ── */
.empty-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
  background: var(--tag-warning-bg, #FEF3C7);
  color: var(--color-warning, #92400E);
  margin-top: 6px;
}


/* ══ Guidelines — Interactive Learning (extracted from inline) ══ */

.g-block-card {
  background: var(--g-surface, #fff);
  border: 1px solid var(--g-border);
  border-radius: 8px;
  padding: 14px 16px;
  margin: 12px 0;
}
.g-block-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}
.g-block-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.g-block-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--g-primary);
}
.g-block-subtitle {
  font-size: 11px;
  color: var(--g-muted);
  margin-top: 1px;
}
.g-block-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 8px 0;
}
.g-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.g-tag--blue  { background: var(--tag-info-bg, #EFF6FF); color: var(--brand-edu, #2563EB); }
.g-tag--green { background: var(--tag-success-bg, #ECFDF5); color: var(--text-success, #059669); }
.g-tag--amber { background: var(--tag-warning-bg, #FFFBEB); color: var(--brand-clues, #D97706); }
.g-tag--red   { background: var(--alert-error-bg, #FEF2F2); color: var(--text-error, #DC2626); }
.g-tag--purple{ background: var(--tag-purple-bg, #F5F3FF); color: var(--brand-lume, #7C3AED); }
.g-priority {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.g-priority-cell {
  border: 1px solid var(--g-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 11px;
  text-align: center;
}
.g-priority-cell-label {
  font-weight: 700;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--g-muted);
  margin-bottom: 4px;
}
.g-priority-cell-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--g-primary);
}
.g-principle-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0;
}
.g-principle {
  background: var(--g-callout-bg);
  border: 1px solid var(--g-border);
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 12px;
}
.g-principle-name {
  font-weight: 700;
  font-size: 12px;
  color: var(--g-primary);
  margin-bottom: 3px;
}


/* ══ Account — Index Page (extracted from inline) ══ */



/* ── Layout shell ─────────────────────────────────────── */
.acct-shell{
  display:flex;
  height:calc(100vh - 64px);
  margin-top:64px;
  overflow:hidden;
}

/* ── Left sidebar ─────────────────────────────────────── */
.acct-sidebar{
  width:240px;
  flex-shrink:0;
  background:var(--bg-surface, #fff);
  border-right:1px solid var(--border-default, #E2E8F0);
  display:flex;
  flex-direction:column;
  overflow-y:auto;
  overflow-x:hidden;
}

/* user card */
.acct-user-card{
  padding:24px 20px 20px;
  border-bottom:1px solid var(--bg-surface-alt, #F1F5F9);
  display:flex;
  flex-direction:column;
  align-items:center;
  text-align:center;
  gap:10px;
}

.acct-initials{
  width:52px;
  height:52px;
  border-radius:50%;
  background:var(--ohh-accent, #2a9d8f);
  color:var(--text-on-dark, #fff);
  font-size:18px;
  font-weight:700;
  display:flex;
  align-items:center;
  justify-content:center;
  letter-spacing:.5px;
  flex-shrink:0;
}

.acct-user-name{
  font-size:15px;
  font-weight:600;
  color:var(--bg-dark-mid, #1E3A5F);
  line-height:1.3;
}

.acct-user-domain{
  font-size:12px;
  color:var(--text-muted, #596673);
  margin-top:-4px;
}

/* nav items */
.acct-nav{
  padding:12px 10px;
  display:flex;
  flex-direction:column;
  gap:2px;
  flex:1;
}

.acct-nav-item{
  display:flex;
  align-items:center;
  gap:10px;
  padding:9px 12px;
  border-radius:7px;
  cursor:pointer;
  font-size:14px;
  font-weight:500;
  font-family:inherit;
  color:var(--text-secondary, #4A5568);
  background:none;
  border:none;
  border-left:3px solid transparent;
  transition:background .1s, color .1s, border-color .1s;
  user-select:none;
  width:100%;
  text-align:left;
}

.acct-nav-item:hover{
  background:var(--tag-info-bg, #F0F9FF);
  color:var(--bg-dark-mid, #1E3A5F);
}

.acct-nav-item.active{
  background:var(--tag-info-bg, #EFF6FF);
  color:var(--bg-dark-mid, #1E3A5F);
  font-weight:600;
  border-left-color:var(--ohh-accent, #2a9d8f);
}

.acct-nav-icon{
  font-size:15px;
  line-height:1;
  flex-shrink:0;
}

/* ── Main content ─────────────────────────────────────── */
.acct-main{
  flex:1;
  overflow-y:auto;
  background:var(--bg-surface-alt, #F8FAFC);
  padding:32px;
}

/* section heading */
.acct-section-heading{
  font-family:'Playfair Display',serif;
  font-size:22px;
  color:var(--bg-dark-mid, #1E3A5F);
  margin-bottom:24px;
  font-weight:400;
}

.acct-subsection-heading { font-size: 16px; margin-top: 24px; }
.acct-actions { margin-top: 20px; }

/* views */
.acct-view{ display:none; }
.acct-view.visible{ display:block; }

/* cards */
.acct-card{
  background:var(--bg-surface, #fff);
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  padding:24px;
  margin-bottom:24px;
}

/* profile fields */
.acct-fields{
  display:flex;
  flex-direction:column;
  gap:0;
}

.acct-field{
  display:flex;
  align-items:baseline;
  gap:16px;
  padding:14px 0;
  border-bottom:1px solid var(--bg-surface-alt, #F1F5F9);
}
.acct-field:last-child{ border-bottom:none; }

.acct-field-label{
  font-size:12px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:.6px;
  color:var(--text-muted, #596673);
  min-width:110px;
  flex-shrink:0;
}

.acct-field-value{
  font-size:14px;
  color:var(--bg-dark-mid, #1E3A5F);
  font-weight:500;
}

.acct-role-badge{
  display:inline-block;
  padding:2px 10px;
  border-radius:4px;
  font-size:11px;
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.5px;
}
.acct-role-employee{
  background:var(--tag-info-bg, #DBEAFE);
  color:var(--brand-edu-hover, #1D4ED8);
}
.acct-role-client{
  background:var(--tag-success-bg, #F0FDF4);
  color:var(--text-success-dark, #15803D);
}

.acct-note{
  font-size:12px;
  color:var(--text-muted, #596673);
  margin-top:4px;
  font-style:italic;
}

/* product cards */
.acct-products-grid{
  display:flex;
  flex-direction:column;
  gap:16px;
  margin-bottom:0;
}

.acct-product-card{
  background:var(--bg-surface, #fff);
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  padding:24px;
  display:flex;
  align-items:center;
  gap:20px;
}

.acct-product-icon{
  width:44px;
  height:44px;
  border-radius:10px;
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:20px;
  flex-shrink:0;
}
.acct-product-icon.eduforge{ background:var(--tag-info-bg, #DBEAFE); }
.acct-product-icon.lumelms{ background:var(--tag-purple-bg, #EDE9FE); }

.acct-product-info{
  flex:1;
  min-width:0;
}
.acct-product-name{
  font-size:15px;
  font-weight:700;
  color:var(--bg-dark-mid, #1E3A5F);
  margin-bottom:3px;
}
.acct-product-desc{
  font-size:13px;
  color:var(--text-secondary, #5A6578);
  line-height:1.5;
}

/* .btn removed — EduForge owns .btn in eduforge.css.
   Other products use prefixed classes (pub-btn, dash-btn, gm-btn, arc-btn). */
/* admin tabs */
.acct-admin-tabs{
  display:flex;gap:0;margin-bottom:20px;border-bottom:2px solid var(--border-default, #E2E8F0);
}
.acct-tab{
  padding:8px 18px;font-size:13px;font-weight:600;color:var(--text-muted, #64748B);background:none;border:none;
  border-bottom:2px solid transparent;margin-bottom:-2px;cursor:pointer;transition:color .15s;
}
.acct-tab:hover{color:var(--bg-dark-mid, #1E3A5F);}
.acct-tab.active{color:var(--brand-edu, #2563EB);border-bottom-color:var(--brand-edu, #2563EB);}
.acct-tab-panel{display:none;}
.acct-tab-panel.visible{display:block;}

/* member row */
.admin-member-row{
  display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--bg-surface-alt, #F1F5F9);
}
.admin-member-row:last-child{border-bottom:none;}
.admin-member-avatar{
  width:32px;height:32px;border-radius:50%;background:var(--btn-primary-bg, #2a9d8f);color:var(--text-on-dark, #fff);
  font-size:12px;font-weight:700;display:flex;align-items:center;justify-content:center;flex-shrink:0;
}
.admin-member-info{flex:1;min-width:0;}
.admin-member-name{font-size:13px;font-weight:600;color:var(--bg-dark-mid, #1E3A5F);}
.admin-member-email{font-size:11px;color:var(--text-muted, #596673);}
.admin-member-role{font-size:11px;padding:2px 8px;border-radius:10px;font-weight:600;}
.admin-member-role.admin{background:var(--tag-info-bg, #DBEAFE);color:var(--brand-edu, #1D4ED8);}
.admin-member-role.member{background:var(--bg-surface-alt, #F1F5F9);color:var(--text-muted, #64748B);}

/* team row */
.admin-team-row{
  display:flex;align-items:center;gap:14px;padding:10px 14px;border-bottom:1px solid var(--bg-surface-alt, #F1F5F9);
}
.admin-team-row:last-child{border-bottom:none;}
.admin-team-name{flex:1;font-size:13px;font-weight:600;color:var(--bg-dark-mid, #1E3A5F);}
.admin-team-badge{font-size:11px;color:var(--text-muted, #64748B);padding:2px 8px;background:var(--bg-surface-alt, #F1F5F9);border-radius:10px;}
.admin-team-del{
  font-size:11px;color:var(--text-error, #DC2626);background:none;border:1px solid var(--alert-error-border, #FCA5A5);border-radius:4px;
  padding:3px 10px;cursor:pointer;transition:background .1s;
}
.admin-team-del:hover{background:var(--alert-error-bg, #FEF2F2);}

.btn-lumelms{
  background:var(--brand-lume, #7C3AED);
}
.btn-lumelms:hover{
  background:var(--brand-lume-hover, #6d28d9);
  box-shadow:0 2px 8px rgba(124,58,237,.25);
}
/* In product cards, LumeLMS CTA should match EduForge's plain link style */
.acct-product-card .btn-lumelms{
  background:none;
  color:var(--brand-lume, #7C3AED);
  box-shadow:none;
  font-weight:600;
  padding:0;
}
.acct-product-card .btn-lumelms:hover{
  background:none;
  color:var(--brand-lume-hover, #6d28d9);
  box-shadow:none;
}

/* empty products */
.acct-no-products{
  text-align:center;
  padding:40px 24px;
  color:var(--text-muted, #596673);
  font-size:14px;
  background:var(--bg-surface, #fff);
  border-radius:12px;
  box-shadow:0 1px 4px rgba(0,0,0,.06);
  margin-bottom:24px;
}
.acct-no-products p{ margin-bottom:6px; line-height:1.6; }

/* discover more */
.acct-divider{
  border:none;
  border-top:1px solid var(--border-default, #E2E8F0);
  margin:28px 0;
}

.acct-discover-heading{
  font-size:16px;
  font-weight:700;
  color:var(--bg-dark-mid, #1E3A5F);
  margin-bottom:4px;
}
.acct-discover-sub{
  font-size:13px;
  color:var(--text-secondary, #5A6578);
  margin-bottom:20px;
  line-height:1.5;
}

.acct-discover-grid{
  display:flex;
  flex-direction:column;
  gap:12px;
}

.acct-discover-card{
  background:var(--bg-surface, #fff);
  border-radius:10px;
  border:1px solid var(--border-default, #E2E8F0);
  padding:16px 20px;
  display:flex;
  align-items:center;
  gap:16px;
  opacity:.75;
}

.acct-discover-icon{
  width:36px;
  height:36px;
  border-radius:8px;
  background:var(--bg-surface-alt, #F1F5F9);
  display:flex;
  align-items:center;
  justify-content:center;
  font-size:16px;
  flex-shrink:0;
}

.acct-discover-info{ flex:1; min-width:0; }
.acct-discover-name{
  font-size:14px;
  font-weight:600;
  color:var(--text-secondary, #475569);
  margin-bottom:2px;
}
.acct-discover-desc{
  font-size:12px;
  color:var(--text-muted, #596673);
  line-height:1.4;
}

.acct-discover-action{
  font-size:12px;
  font-weight:600;
  color:var(--text-muted, #596673);
  text-decoration:none;
  padding:5px 12px;
  border-radius:5px;
  border:1px solid var(--border-default, #E2E8F0);
  white-space:nowrap;
  transition:color .12s, border-color .12s;
  flex-shrink:0;
}
.acct-discover-action:hover{
  color:var(--text-secondary, #475569);
  border-color:var(--border-default, #CBD5E1);
}

/* ── Responsive ────────────────────────────────────────── */
@media (max-width:768px){
  .acct-shell{
    flex-direction:column;
    height:auto;
    overflow:visible;
  }

  .acct-sidebar{
    width:100%;
    border-right:none;
    border-bottom:1px solid var(--border-default, #E2E8F0);
    flex-direction:row;
    overflow-x:auto;
    overflow-y:visible;
    height:auto;
  }

  .acct-user-card{
    flex-direction:row;
    text-align:left;
    padding:14px 16px;
    border-bottom:none;
    border-right:1px solid var(--bg-surface-alt, #F1F5F9);
    flex-shrink:0;
    align-items:center;
    gap:10px;
  }

  .acct-user-name{ font-size:13px; }
  .acct-user-domain{ display:none; }
  .acct-initials{ width:36px; height:36px; font-size:13px; }

  .acct-nav{
    flex-direction:row;
    padding:0 8px;
    align-items:center;
    gap:0;
    flex:0;
  }

  .acct-nav-item{
    border-left:none;
    border-bottom:3px solid transparent;
    border-radius:0;
    padding:12px 14px 9px;
    white-space:nowrap;
    font-size:13px;
  }
  .acct-nav-item.active{
    border-bottom-color:var(--ohh-accent, #2a9d8f);
    border-left-color:transparent;
    background:transparent;
  }
  .acct-nav-item:hover{
    background:transparent;
  }

  .acct-main{
    padding:20px 16px;
  }

  .acct-product-card{
    flex-wrap:wrap;
    gap:12px;
  }
  .acct-product-card .btn{
    width:100%;
    text-align:center;
  }
}

/* ── Dashboard/Account tabs — narrow mobile overflow (#383) ── */
@media (max-width:480px){
  .acct-sidebar{
    overflow-x:auto;
    -webkit-overflow-scrolling:touch;
    scrollbar-width:none;         /* Firefox */
  }
  .acct-sidebar::-webkit-scrollbar{
    display:none;                 /* Chrome/Safari */
  }
  .acct-nav{
    flex-wrap:nowrap;
    min-width:max-content;
  }
  .acct-nav-item{
    padding:10px 10px 7px;
    font-size:12px;
  }
  .dash-nav-divider{
    display:none;
  }
  .acct-user-card{
    display:none;
  }
}


/* ══ Account — Pricing Page (extracted from inline) ══ */


.pricing-wrap{
  max-width:960px;
  margin:100px auto 60px;
  padding:0 24px;
  text-align:center;
}

.pricing-title{
  font-size:32px;
  font-weight:700;
  color:var(--text-primary);
  margin-bottom:8px;
}

.pricing-subtitle{
  font-size:16px;
  color:var(--text-secondary, #64748B);
  margin-bottom:48px;
  max-width:560px;
  margin-left:auto;
  margin-right:auto;
}

.pricing-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit, minmax(280px, 1fr));
  gap:24px;
  justify-items:center;
}

.pricing-card{
  background:var(--bg-surface, #fff);
  border:1px solid var(--border-primary, #E2E8F0);
  border-radius:12px;
  padding:32px 28px;
  width:100%;
  max-width:340px;
  text-align:left;
  display:flex;
  flex-direction:column;
  transition:box-shadow 0.2s;
}
.pricing-card:hover{
  box-shadow:0 4px 20px rgba(0,0,0,0.08);
}
.pricing-card.featured{
  border-color:var(--brand-deep-teal, #0E6B6B);
  box-shadow:0 0 0 2px var(--brand-deep-teal, #0E6B6B);
}

.pricing-badge{
  display:inline-block;
  background:var(--brand-deep-teal, #0E6B6B);
  color:var(--text-on-dark, #fff);
  font-size:11px;
  font-weight:600;
  text-transform:uppercase;
  letter-spacing:0.05em;
  padding:3px 10px;
  border-radius:20px;
  margin-bottom:16px;
  align-self:flex-start;
}

.pricing-plan-name{
  font-size:20px;
  font-weight:700;
  color:var(--text-primary);
  margin-bottom:6px;
}

.pricing-plan-desc{
  font-size:13px;
  color:var(--text-secondary, #64748B);
  margin-bottom:20px;
  line-height:1.5;
}

.pricing-amount{
  font-size:36px;
  font-weight:800;
  color:var(--text-primary);
  margin-bottom:4px;
}
.pricing-amount span{
  font-size:14px;
  font-weight:500;
  color:var(--text-secondary, #64748B);
}

.pricing-period{
  font-size:12px;
  color:var(--text-muted, #596673);
  margin-bottom:24px;
}

.pricing-features{
  list-style:none;
  padding:0;
  margin:0 0 28px;
  flex:1;
}
.pricing-features li{
  font-size:13px;
  color:var(--text-secondary, #64748B);
  padding:6px 0;
  padding-left:22px;
  position:relative;
  line-height:1.4;
}
.pricing-features li::before{
  content:'\2713';
  position:absolute;
  left:0;
  color:var(--brand-deep-teal, #0E6B6B);
  font-weight:700;
}

.pricing-btn{
  display:block;
  width:100%;
  padding:12px;
  border:none;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  text-align:center;
  transition:background 0.15s, opacity 0.15s;
}
.pricing-btn:disabled{
  opacity:0.5;
  cursor:not-allowed;
}
.pricing-btn-primary{
  background:var(--brand-deep-teal, #0E6B6B);
  color:var(--text-on-dark, #fff);
}
.pricing-btn-primary:hover:not(:disabled){
  background:var(--brand-deep-teal-hover, #0a5858);
}
.pricing-btn-outline{
  background:transparent;
  color:var(--brand-deep-teal, #0E6B6B);
  border:1px solid var(--brand-deep-teal, #0E6B6B);
}
.pricing-btn-outline:hover:not(:disabled){
  background:rgba(14,107,107,0.06);
}

.pricing-toggle-wrap{
  display:inline-flex;
  align-items:center;
  gap:14px;
  margin-bottom:40px;
  background:var(--bg-surface-alt, #F1F5F9);
  border-radius:40px;
  padding:4px;
}
.pricing-toggle-btn{
  padding:8px 22px;
  border:none;
  border-radius:36px;
  font-size:14px;
  font-weight:600;
  cursor:pointer;
  background:transparent;
  color:var(--text-secondary, #64748B);
  transition:background 0.2s, color 0.2s, box-shadow 0.2s;
}
.pricing-toggle-btn.active{
  background:var(--bg-surface, #fff);
  color:var(--text-primary);
  box-shadow:0 1px 4px rgba(0,0,0,0.1);
}
.pricing-toggle-btn:hover:not(.active){
  color:var(--text-primary);
}
.pricing-save-badge{
  font-size:11px;
  font-weight:700;
  color:var(--brand-deep-teal, #0E6B6B);
  background:rgba(14,107,107,0.1);
  padding:2px 8px;
  border-radius:10px;
  margin-left:-6px;
}

.pricing-note{
  margin-top:40px;
  font-size:12px;
  color:var(--text-muted, #596673);
}

.pricing-loading{
  padding:80px 0;
  color:var(--text-secondary);
  font-size:15px;
}

@media(max-width:640px){
  .pricing-wrap{margin-top:80px}
  .pricing-title{font-size:24px}
  .pricing-card{max-width:100%}
}


/* ══ Account — Success Page (extracted from inline) ══ */


.success-wrap{
  max-width:520px;
  margin:140px auto 60px;
  padding:0 24px;
  text-align:center;
}

.success-icon{
  width:72px;
  height:72px;
  border-radius:50%;
  background:var(--alert-success-bg, #ECFDF5);
  color:var(--alert-success-text, #059669);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-size:36px;
  margin-bottom:24px;
}

.success-title{
  font-size:28px;
  font-weight:700;
  color:var(--text-primary);
  margin-bottom:12px;
}

.success-desc{
  font-size:15px;
  color:var(--text-secondary, #64748B);
  line-height:1.6;
  margin-bottom:32px;
}

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

.success-btn{
  display:inline-block;
  padding:12px 28px;
  border-radius:8px;
  font-size:14px;
  font-weight:600;
  text-decoration:none;
  transition:background 0.15s;
}
.success-btn-primary{
  background:var(--brand-deep-teal, #0E6B6B);
  color:var(--text-on-dark, #fff);
}
.success-btn-primary:hover{ background:var(--brand-deep-teal-hover, #0a5858) }
.success-btn-outline{
  background:transparent;
  color:var(--brand-deep-teal, #0E6B6B);
  border:1px solid var(--brand-deep-teal, #0E6B6B);
}
.success-btn-outline:hover{ background:rgba(14,107,107,0.06) }

.success-details{
  margin-top:32px;
  padding:20px;
  background:var(--bg-surface, #fff);
  border:1px solid var(--border-primary, #E2E8F0);
  border-radius:10px;
  text-align:left;
  font-size:13px;
  color:var(--text-secondary, #64748B);
  display:none;
}
.success-details dt{
  font-weight:600;
  color:var(--text-primary);
  margin-top:10px;
}
.success-details dt:first-child{ margin-top:0 }
.success-details dd{ margin:2px 0 0 }


/* ══ OctoClues — Index Page (extracted from inline) ══ */

.page { max-width: 1000px; margin: 0 auto; padding: 96px 28px 80px; }

/* ── Section headings ── */
.sec-head {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: var(--space-4);
}
.sec-title {
  font-size: 11px; font-weight: var(--font-weight-bold); text-transform: uppercase;
  letter-spacing: .08em; color: var(--text-muted);
}

/* ── Site control panel ── */
.site-panel {
  background: var(--bg-dark-mid); border-radius: var(--radius-lg);
  padding: var(--space-5) 28px; margin-bottom: 36px;
}
.site-panel-header {
  display: flex; align-items: center; gap: var(--space-3); margin-bottom: 20px;
}
.site-panel-title {
  font-size: 15px; font-weight: var(--font-weight-bold); color: var(--text-on-dark);
}
.site-panel-sub {
  font-size: 12px; color: rgba(255,255,255,.45); margin-top: 2px;
}
.site-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--btn-primary-bg); box-shadow: 0 0 6px var(--btn-primary-bg); flex-shrink: 0;
}
.site-readonly-badge {
  margin-left: auto; font-size: 10px; font-weight: var(--font-weight-bold); text-transform: uppercase;
  letter-spacing: .06em; color: rgba(255,255,255,.35);
  background: rgba(255,255,255,.08); padding: 3px 10px; border-radius: 20px;
}
.site-libs { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.site-lib-card {
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  border-radius: 10px; padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
  flex: 1 1 260px; min-width: 220px; transition: background var(--transition-fast);
}
.site-lib-card.active { background: rgba(var(--color-accent-rgb),.15); border-color: rgba(var(--color-accent-rgb),.4); }
.site-lib-icon { font-size: 22px; flex-shrink: 0; }
.site-lib-info { flex: 1; min-width: 0; }
.site-lib-name { font-size: 13px; font-weight: var(--font-weight-semibold); color: var(--text-on-dark); }
.site-lib-count { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Toggle switch */
.toggle { position: relative; width: 38px; height: 22px; flex-shrink: 0; }
.toggle input { opacity: 0; width: 0; height: 0; }
.toggle-track {
  position: absolute; inset: 0; border-radius: 11px;
  background: var(--toggle-track-off); cursor: pointer; transition: background var(--transition-base);
}
.toggle-track::after {
  content: ''; position: absolute; width: 16px; height: 16px;
  border-radius: 50%; background: var(--toggle-thumb); top: 3px; left: 3px; transition: transform var(--transition-base);
}
.toggle input:checked + .toggle-track { background: var(--toggle-track-on); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:disabled + .toggle-track { cursor: default; opacity: .5; }
.site-updated {
  margin-top: 14px; font-size: 11px; color: rgba(255,255,255,.3); font-style: italic;
}

/* ── Library grid ── */
.lib-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
  gap: var(--space-4); margin-bottom: 36px;
}
.lib-card {
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-lg);
  overflow: hidden; display: flex; flex-direction: column;
  transition: box-shadow var(--transition-fast), border-color var(--transition-fast);
}
.lib-card:hover { box-shadow: var(--shadow-md); border-color: var(--scrollbar-thumb); }
.lib-card-preset-bar {
  padding: 6px 14px; display: flex; align-items: center; justify-content: flex-end;
  border-bottom: 1px solid var(--bg-surface-alt); background: var(--bg-surface-alt);
}
/* reuse .toggle but smaller for cards */
.toggle-sm { position: relative; width: 30px; height: 17px; flex-shrink: 0; }
.toggle-sm input { opacity: 0; width: 0; height: 0; }
.toggle-sm .toggle-track { border-radius: 9px; }
.toggle-sm .toggle-track::after { width: 12px; height: 12px; top: 2px; left: 2px; }
.toggle-sm input:checked + .toggle-track::after { transform: translateX(13px); }
.lib-card-top { padding: 18px 20px 16px; flex: 1; }
.lib-card-head { display: flex; align-items: flex-start; gap: var(--space-3); margin-bottom: 10px; }
.lib-card-icon {
  width: 38px; height: 38px; border-radius: 9px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.lib-card-name { font-size: 14px; font-weight: var(--font-weight-bold); color: var(--bg-dark-mid); margin-bottom: 3px; }
.lib-card-badge {
  font-size: 10px; font-weight: var(--font-weight-bold); text-transform: uppercase;
  letter-spacing: .05em; padding: 2px 7px; border-radius: 20px; display: inline-block;
}
.badge-preset { background: var(--tag-info-bg); color: var(--tag-info-text); }
.badge-custom { background: var(--tag-success-bg); color: var(--tag-success-text); }
.lib-card-desc { font-size: 12px; color: var(--text-secondary); line-height: 1.55; }
.lib-card-footer {
  padding: 10px 20px; border-top: 1px solid var(--bg-surface-alt);
  display: flex; align-items: center; justify-content: space-between;
}
.lib-card-count { font-size: 11px; color: var(--text-muted); }
.lib-card-actions { display: flex; gap: 6px; }
.btn-sm {
  font-size: 11px; font-weight: var(--font-weight-semibold); padding: 5px 12px; border-radius: var(--radius-sm);
  border: 1px solid; cursor: pointer; font-family: inherit;
  text-transform: uppercase; letter-spacing: .04em; transition: all var(--transition-fast);
}
.btn-browse { background: transparent; border-color: var(--btn-secondary-border); color: var(--text-secondary); }
.btn-browse:hover { border-color: var(--bg-dark-mid); color: var(--bg-dark-mid); }
.btn-edit { background: transparent; border-color: var(--tag-success-border, #BBF7D0); color: var(--text-success); }
.btn-edit:hover { background: var(--tag-success-bg); }
.btn-danger { background: var(--btn-danger-bg); color: var(--btn-danger-text); border-color: var(--btn-danger-bg); }
.btn-danger:hover { background: var(--btn-danger-bg-hover); border-color: var(--btn-danger-bg-hover); }
.btn-delete { background: transparent; border-color: var(--alert-error-border, #FECACA); color: var(--btn-danger-bg); }
.btn-delete:hover { background: var(--alert-error-bg); }

/* ── Create button ── */
.btn-create {
  font-family: inherit; font-size: 12px; font-weight: var(--font-weight-bold);
  text-transform: uppercase; letter-spacing: .06em;
  padding: 8px 18px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--bg-dark-mid); color: var(--text-on-dark); border: none; transition: background var(--transition-fast);
}
.btn-create:hover { background: var(--btn-primary-bg); }

/* ── Modal base ── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: var(--shadow-overlay);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .18s;
}
.modal-overlay.open { opacity: 1; pointer-events: all; }
.modal {
  background: var(--bg-surface); border-radius: var(--radius-lg); width: 90%; max-height: 85vh;
  display: flex; flex-direction: column; box-shadow: var(--shadow-xl);
}

/* ── Browse modal ── */
.browse-modal { max-width: 680px; }
.modal-header {
  padding: 20px 24px 16px; border-bottom: 1px solid var(--border-default);
  display: flex; align-items: center; gap: 14px; flex-shrink: 0;
}
.modal-header-icon { font-size: 26px; }
.modal-header-name { font-size: 16px; font-weight: var(--font-weight-bold); color: var(--bg-dark-mid); }
.modal-header-desc { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.modal-close {
  margin-left: auto; background: none; border: none; cursor: pointer;
  font-size: 20px; color: var(--text-muted); line-height: 1; padding: 4px; transition: color var(--transition-fast);
}
.modal-close:hover { color: var(--text-primary); }
.modal-body { padding: 16px 24px 24px; overflow-y: auto; }
.term-list { display: flex; flex-direction: column; gap: 14px; }
.term-item { border: 1px solid var(--border-default); border-radius: 10px; padding: 14px 16px; }
.term-item-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.term-name { font-size: 14px; font-weight: var(--font-weight-bold); color: var(--bg-dark-mid); }
.term-cat {
  font-size: 10px; font-weight: var(--font-weight-semibold); text-transform: uppercase; letter-spacing: .05em;
  padding: 2px 7px; border-radius: 10px; background: var(--tag-default-bg); color: var(--tag-default-text);
}
.term-aliases { font-size: 11px; color: var(--text-muted); margin-bottom: 6px; }
.term-blurb { font-size: 12px; color: var(--text-secondary); line-height: 1.6; }
.term-source { font-size: 11px; color: var(--text-muted); font-style: italic; margin-top: 5px; }

/* ── Create modal ── */
.create-modal { max-width: 620px; }
.modal-form { padding: 20px 24px 24px; overflow-y: auto; display: flex; flex-direction: column; gap: var(--space-4); }
.form-row { display: flex; gap: var(--space-3); }
.form-group { display: flex; flex-direction: column; gap: 5px; flex: 1; }
.form-label { font-size: 11px; font-weight: var(--font-weight-bold); text-transform: uppercase; letter-spacing: .06em; color: var(--input-label); }
.form-input {
  font-family: inherit; font-size: 13px; color: var(--input-text);
  border: 1px solid var(--border-default); border-radius: var(--radius-md); padding: 8px 12px;
  outline: none; transition: border-color var(--transition-fast);
}
.form-input:focus { border-color: var(--border-focus); box-shadow: var(--focus-ring); }
.form-hint { font-size: 11px; color: var(--text-muted); }

.terms-editor { display: flex; flex-direction: column; gap: var(--space-3); }
.term-editor-row {
  background: var(--bg-surface-alt); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 10px 12px; display: flex; flex-direction: column; gap: 6px;
}
.term-editor-row-top { display: flex; align-items: center; gap: 6px; }
.term-editor-row .form-input { padding: 7px 10px; }
.term-editor-row .form-input:first-of-type { font-weight: var(--font-weight-semibold); flex: 1; }
.btn-remove-term {
  font-family: inherit; font-size: 11px; font-weight: var(--font-weight-semibold);
  background: none; border: 1px solid var(--alert-error-border, #FECACA); color: var(--btn-danger-bg);
  cursor: pointer; padding: 4px 10px; line-height: 1; flex-shrink: 0;
  border-radius: var(--radius-sm); transition: all var(--transition-fast); text-transform: uppercase; letter-spacing: .04em;
}
.btn-remove-term:hover { background: var(--alert-error-bg); border-color: var(--alert-error-border, #FCA5A5); }
.btn-add-term {
  font-family: inherit; font-size: 11px; font-weight: var(--font-weight-bold); text-transform: uppercase;
  letter-spacing: .05em; padding: 7px 14px; border-radius: 7px; cursor: pointer;
  background: var(--bg-surface-alt); color: var(--text-secondary); border: 1px solid var(--border-default);
  transition: all var(--transition-fast); align-self: flex-start;
}
.btn-add-term:hover { background: var(--bg-disabled); }

.modal-footer {
  padding: 14px 24px; border-top: 1px solid var(--border-default); flex-shrink: 0;
  display: flex; justify-content: flex-end; gap: 8px;
}
.btn-cancel {
  font-family: inherit; font-size: 12px; font-weight: var(--font-weight-semibold); text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 16px; border-radius: var(--radius-md); cursor: pointer;
  background: transparent; color: var(--text-secondary); border: 1px solid var(--border-default); transition: all var(--transition-fast);
}
.btn-cancel:hover { border-color: var(--text-muted); color: var(--text-primary); }
.btn-save {
  font-family: inherit; font-size: 12px; font-weight: var(--font-weight-bold); text-transform: uppercase;
  letter-spacing: .05em; padding: 8px 20px; border-radius: var(--radius-md); cursor: pointer;
  background: var(--bg-dark-mid); color: var(--text-on-dark); border: none; transition: background var(--transition-fast);
}
.btn-save:hover { background: var(--btn-primary-bg); }
.btn-save:disabled { opacity: .5; cursor: not-allowed; }

.empty-state {
  text-align: center; padding: var(--space-6) 20px; color: var(--text-muted);
  font-size: 13px; font-style: italic;
}

/* ===================================================================
   SHARED COMPONENT BASE CLASSES — extend in product CSS (#421/#381)
   =================================================================== */
.btn-primary { background: var(--btn-primary-bg); color: var(--btn-primary-text, #fff); }
.btn-primary:hover { background: var(--btn-primary-bg-hover); }
.card { background: var(--bg-surface, #fff); border: 1px solid var(--border-default); border-radius: var(--radius-lg, 12px); box-shadow: var(--shadow-sm); }

/* ===================================================================
   UTILITY CLASSES — public page helpers
   =================================================================== */
.pub-bg-page    { background: var(--bg-page); }
.pub-text-center { text-align: center; }
.pub-cta-spacer { margin-top: var(--space-5); }

/* Screen-reader-only utility */
.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; }

/* ── Shared utility classes (reduce inline styles across products) ─── */
.oh-loading { padding: 24px; text-align: center; color: var(--text-muted, #596673); font-size: 13px; }
.oh-hint { font-size: 12px; color: var(--text-muted, #596673); margin-top: 4px; }
.oh-disabled { background: var(--bg-surface-alt, #F1F5F9); color: var(--text-muted, #596673); cursor: not-allowed; }

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

/* ── High Contrast ─────────────────────────────── */
@media (prefers-contrast: more) {
  :root {
    --color-border: #000;
    --color-muted: #333;
    --shadow-sm: none;
    --shadow-md: 0 0 0 1px #000;
    --shadow-lg: 0 0 0 2px #000;
  }
  a { text-decoration: underline !important; }
  button, .btn, [role="button"] { border: 2px solid currentColor !important; }
}

@media (max-width: 768px) {
  button, .btn, [role="button"],
  input[type="submit"], input[type="button"],
  a.btn, .sl-btn {
    min-height: 44px;
    min-width: 44px;
  }
}

/* ── Dark Mode ─────────────────────────────────── */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) {
    /* Backgrounds */
    --bg-page: #0F172A;
    --bg-surface: #1E293B;
    --bg-surface-alt: #1E293B;
    --bg-warm: #1A2332;
    --bg-dark: #0B1120;
    --bg-dark-mid: #0F172A;
    --bg-tint: rgba(45, 212, 191, 0.08);
    --bg-disabled: #334155;

    /* Text */
    --text-primary: #E2E8F0;
    --text-secondary: #94A3B8;
    --text-muted: #8898AE; /* was #64748B — 3.2:1 fail on --bg-surface; #8898AE = 5.0:1 pass */
    --text-on-dark: #ffffff;
    --text-link: #2DD4BF;
    --text-link-hover: #5EEAD4;
    --text-link-on-dark: #a5b4fc;
    --text-error: #F87171;
    --text-success: #34D399;
    --text-warning: #FBBF24;

    /* Borders */
    --border-default: #334155;
    --border-focus: #2DD4BF;
    --border-error: #F87171;
    --border-disabled: #475569;

    /* Buttons — Primary */
    --btn-primary-bg: #2DD4BF;
    --btn-primary-text: #0F172A;
    --btn-primary-bg-hover: #5EEAD4;
    --btn-primary-bg-active: #14B8A6;

    /* Buttons — Secondary */
    --btn-secondary-bg: transparent;
    --btn-secondary-text: #E2E8F0;
    --btn-secondary-border: #475569;
    --btn-secondary-bg-hover: rgba(255, 255, 255, 0.05);

    /* Buttons — Tertiary */
    --btn-tertiary-text: #2DD4BF;
    --btn-tertiary-text-hover: #5EEAD4;

    /* Buttons — Destructive */
    --btn-danger-bg: #DC2626;
    --btn-danger-text: #ffffff;
    --btn-danger-bg-hover: #EF4444;

    /* Buttons — Settings */
    --btn-settings-bg: #D97706;
    --btn-settings-text: #ffffff;
    --btn-settings-bg-hover: #F59E0B;

    /* Buttons — On Dark */
    --btn-on-dark-bg: #1E293B;
    --btn-on-dark-text: #2DD4BF;
    --btn-on-dark-bg-hover: #334155;

    /* Buttons — Disabled */
    --btn-disabled-bg: #334155;
    --btn-disabled-text: #64748B;
    --btn-disabled-border: #475569;

    /* Form Controls */
    --input-bg: #1E293B;
    --input-bg-focus: #334155;
    --input-text: #E2E8F0;
    --input-placeholder: #64748B;
    --input-label: #94A3B8;
    --toggle-track-off: #475569;
    --toggle-track-on: #2DD4BF;
    --toggle-thumb: #0F172A;
    --checkbox-border: #475569;
    --checkbox-checked-bg: #2DD4BF;
    --checkbox-check-color: #0F172A;
    --range-track: #334155;
    --range-track-fill: #2DD4BF;
    --range-thumb: #2DD4BF;

    /* Navigation */
    --nav-text: #94A3B8;
    --nav-text-hover: #E2E8F0;
    --nav-text-active: #2DD4BF;
    --nav-indicator: #2DD4BF;
    --nav-bg-hover: rgba(255, 255, 255, 0.05);

    /* Tags / Badges */
    --tag-default-bg: #334155;
    --tag-default-text: #CBD5E1;
    --tag-success-bg: rgba(5, 150, 105, 0.15);
    --tag-success-text: #34D399;
    --tag-warning-bg: rgba(217, 119, 6, 0.15);
    --tag-warning-text: #FBBF24;
    --tag-danger-bg: rgba(220, 38, 38, 0.15);
    --tag-danger-text: #F87171;
    --tag-info-bg: rgba(91, 106, 191, 0.15);
    --tag-info-text: #A5B4FC;

    /* Alerts / Banners / Toasts */
    --alert-info-bg: rgba(91, 106, 191, 0.15);
    --alert-info-border: #3730A3;
    --alert-info-icon: #A5B4FC;
    --alert-success-bg: rgba(5, 150, 105, 0.15);
    --alert-success-border: #065F46;
    --alert-success-icon: #34D399;
    --alert-warning-bg: rgba(217, 119, 6, 0.15);
    --alert-warning-border: #92400E;
    --alert-warning-icon: #FBBF24;
    --alert-error-bg: rgba(220, 38, 38, 0.15);
    --alert-error-border: #991B1B;
    --alert-error-icon: #F87171;

    /* Progress / Loading */
    --progress-track: #334155;
    --progress-fill: #2DD4BF;
    --progress-step-active: #2DD4BF;
    --progress-step-complete: #34D399;
    --progress-step-incomplete: #475569;
    --spinner-color: #2DD4BF;

    /* Shadows — more subtle on dark */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 20px 60px rgba(0, 0, 0, 0.6);
    --shadow-overlay: rgba(0, 0, 0, 0.7);

    /* Focus ring */
    --focus-ring: 0 0 0 3px rgba(45, 212, 191, 0.4);

    /* Scrollbar */
    --scrollbar-track: #1E293B;
    --scrollbar-thumb: #475569;
    --scrollbar-thumb-hover: #64748B;

    /* Site-level alias overrides */
    --color-bg: var(--bg-page);
    --color-surface: var(--bg-surface);
    --color-primary: var(--text-primary);
    --color-primary-dark: var(--bg-dark);
    --color-accent: #2DD4BF;
    --color-accent-hover: #5EEAD4;
    --color-accent-tint: var(--bg-tint);
    --color-accent-rgb: 45, 212, 191;
    --color-text: var(--text-primary);
    --color-muted: var(--text-secondary);
    --color-border: var(--border-default);
    --color-success: var(--text-success);
    --color-error: var(--text-error);
    --color-warning: #FBBF24;
    --color-warning-dot: #F59E0B;

    /* Enable dark color scheme for native form controls */
    color-scheme: dark;
  }

  /* Image brightness reduction to avoid glare */
  img:not([src*=".svg"]) {
    filter: brightness(0.9);
  }

  /* Code blocks */
  pre, code {
    background: #1E293B;
    border-color: #334155;
  }

  /* Login — contrast fixes on dark surfaces */
  .oh-login-divider { color: var(--text-secondary, #94A3B8); }
  .oh-login-link { color: var(--color-accent-on-dark, #5bc0b5); }

  /* Login page: --color-primary resolves to #E2E8F0 in dark mode, making the gradient
     go dark→white which is broken. Override to a proper dark navy gradient. */
  .oh-login-page {
    background: linear-gradient(135deg, #0B1120 0%, #142942 100%);
  }

  /* Demo CTA box: --bg-surface-alt becomes #1E293B making gradient dark on one end;
     switch to a consistent dark surface with light-mode-like text. */
  .oh-login-demo {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.12);
  }
  .oh-login-demo-title { color: var(--text-primary, #E2E8F0); }
  .oh-login-demo-sub   { color: var(--text-secondary, #94A3B8); }

  /* Pricing note: --text-muted (#64748B) on dark page bg = 3:1 — lift to secondary */
  .pricing-note { color: var(--text-secondary, #94A3B8); }

}

/* Breadcrumbs */
.oh-breadcrumb{display:flex;align-items:center;gap:6px;padding:10px 24px;font-size:13px;color:var(--color-muted,#64748B)}
.oh-breadcrumb a{color:var(--color-accent);text-decoration:none}
.oh-breadcrumb a:hover{text-decoration:underline}
.oh-breadcrumb-sep{color:var(--color-border,#CBD5E1);font-size:14px}

/* =====================================================================
   Empty State — oh-empty-state
   Centered layout for lists/grids that have zero items.
   ===================================================================== */
.oh-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 48px 24px;
  min-height: 160px;
}
.oh-empty-state-icon {
  font-size: 40px;
  line-height: 1;
  margin-bottom: 12px;
  opacity: 0.55;
}
.oh-empty-state-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary, #1E293B);
  margin: 0 0 6px;
}
.oh-empty-state-desc {
  font-size: 13px;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
  max-width: 340px;
  margin: 0 0 16px;
}
.oh-empty-state .oh-btn {
  margin-top: 4px;
}

/* =====================================================================
   Loading Timeout Utility — oh-loading
   Progressive spinner → "still working" → "having trouble" states.
   ===================================================================== */
.oh-loading-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  text-align: center;
  gap: 12px;
}
.oh-loading-spinner {
  width: 28px;
  height: 28px;
  border: 3px solid var(--border-default, #E2E8F0);
  border-top-color: var(--color-accent, #0E6B6B);
  border-radius: 50%;
  animation: oh-spin 0.7s linear infinite;
}
@keyframes oh-spin {
  to { transform: rotate(360deg); }
}
.oh-loading-msg {
  font-size: 14px;
  color: var(--text-muted, #64748B);
  line-height: 1.5;
}
.oh-loading-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.oh-loading-actions .oh-btn-sm {
  font-size: 13px;
  padding: 6px 14px;
}
.oh-breadcrumb-current{color:var(--color-text);font-weight:500}

/* ==========================================================================
   FORM VALIDATION — oh-form-validate.js companion styles
   ========================================================================== */

/* Required asterisk */
.oh-required {
  color: #DC2626;
  margin-left: 2px;
  font-weight: 700;
}

/* Form legend (shows above forms with required fields) */
.oh-form-legend {
  font-size: 13px;
  color: var(--text-muted, #596673);
  margin-bottom: 12px;
}

/* Inline field error */
.oh-field-error {
  color: #DC2626;
  font-size: 13px;
  margin-top: 4px;
  display: none;
}
.oh-field-error.visible {
  display: block;
}

/* Valid field: green checkmark after the wrapper */
.oh-field.oh-field-valid::after {
  content: "\2713";
  color: #059669;
  font-size: 16px;
  font-weight: 700;
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}
.oh-field.oh-field-valid {
  position: relative;
}
.oh-field.oh-field-valid input {
  border-color: #059669;
  padding-right: 32px;
}

/* Invalid field: red border */
.oh-field.oh-field-invalid input {
  border-color: #DC2626;
}

/* Focus-visible ring on all form inputs */
.oh-field input:focus-visible,
.oh-field select:focus-visible,
.oh-field textarea:focus-visible,
.form-input:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring, 0 0 0 3px rgba(42, 157, 143, 0.35));
}


/* ==========================================================================
   MOBILE TOUCH TARGETS — 44x44px minimum per WCAG 2.5.8
   ========================================================================== */

@media (max-width: 640px) {
  .btn, button.btn, .pub-nav a, .pub-footer a, .oh-action, [role="button"] {
    min-height: 44px;
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  /* Mobile bottom navigation bar */
  .oh-mobile-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: var(--bg-surface, #fff);
    border-top: 1px solid var(--border-default, #e2e8f0);
    display: flex;
    z-index: 400;
    box-shadow: 0 -2px 8px rgba(0,0,0,.08);
  }
  .oh-mobile-bottom-nav a {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    color: var(--text-secondary, #4a5568);
    font-size: 11px;
    text-decoration: none;
    min-height: 44px;
    padding: 6px 4px;
    transition: color 0.12s;
  }
  .oh-mobile-bottom-nav a.active {
    color: var(--brand-deep-teal, #0E6B6B);
  }
  .oh-mobile-bottom-nav a .icon {
    font-size: 20px;
    line-height: 1;
  }
  body.oh-has-bottom-nav {
    padding-bottom: 60px;
  }

  /* ── Single-column collapse for multi-column grids ────── */

  /* Base.css grids */
  .fu-apa-grid,
  .fu-expand-apa,
  .g-compare,
  .g-priority,
  .g-principle-grid {
    grid-template-columns: 1fr !important;
  }

  /* Account page grids */
  .acct-products-grid,
  .acct-discover-grid {
    grid-template-columns: 1fr !important;
  }
}

/* Hide bottom nav on desktop */
@media (min-width: 641px) {
  .oh-mobile-bottom-nav { display: none; }
}

/* Form validation — dark mode contrast overrides.
   Placed at end of file so these rules win over the light-mode base definitions above.
   Card background #1E293B (--bg-surface):
     .oh-required  #DC2626 → 3.0:1 fail  | #F87171 (--text-error) → 5.4:1 AA pass
     .oh-field-error #DC2626 → 3.0:1 fail | #F87171 → 5.4:1 AA pass
     .oh-form-legend --text-muted(#64748B) → 3.2:1 fail | --text-secondary(#94A3B8) → 5.9:1 AA pass */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .oh-required    { color: var(--text-error, #F87171); }
  html:not([data-theme="light"]) .oh-field-error { color: var(--text-error, #F87171); }
  html:not([data-theme="light"]) .oh-form-legend { color: var(--text-secondary, #94A3B8); }
}

/* ==========================================================================
   Privacy summary (used on login.html + register.html)
   ========================================================================== */
.oh-privacy-summary {
  margin-top: 18px;
  padding: 14px 16px;
  background: var(--bg-page, #F0F2F5);
  border: 1px solid var(--border-subtle, #e2e8f0);
  border-radius: 10px;
  font-size: 14px;
  color: var(--text-secondary, #475569);
}
.oh-privacy-summary summary {
  cursor: pointer;
  font-weight: 600;
  color: var(--text-primary, #0F172A);
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
}
.oh-privacy-summary summary::-webkit-details-marker { display: none; }
.oh-privacy-summary summary::before {
  content: "▸";
  display: inline-block;
  color: var(--text-muted, #64748B);
  font-size: 12px;
  transition: transform 0.15s ease;
}
.oh-privacy-summary[open] summary::before { transform: rotate(90deg); }
.oh-privacy-summary ul {
  margin: 12px 0 0;
  padding-left: 20px;
  line-height: 1.6;
}
.oh-privacy-summary li { margin-bottom: 6px; }
.oh-privacy-summary a { color: var(--brand-deep-teal, #0E6B6B); }
/* Dark mode: --brand-deep-teal #0E6B6B ≈ 2.4:1 on dark bg — use --text-link #2DD4BF (9.8:1) */
@media (prefers-color-scheme: dark) {
  html:not([data-theme="light"]) .oh-privacy-summary a { color: var(--text-link, #2DD4BF); }
}

/* ==========================================================================
   EXPLICIT THEME OVERRIDES — for manual dark/light mode toggle
   html[data-theme="dark"]  → force dark mode regardless of OS setting
   Light mode (no dark): all @media (prefers-color-scheme: dark) blocks use
   html:not([data-theme="light"]) so they are suppressed when light is set.
   The JS default is "light" — set in oh-nav.js before first paint.
   ========================================================================== */

/* ── Explicit dark mode ───────────────────────────────────────────── */
html[data-theme="dark"] {
  color-scheme: dark;
  --bg-page: #0F172A; --bg-surface: #1E293B; --bg-surface-alt: #1E293B;
  --bg-warm: #1A2332; --bg-dark: #0B1120; --bg-dark-mid: #0F172A;
  --bg-tint: rgba(45,212,191,.08); --bg-disabled: #334155;
  --text-primary: #E2E8F0; --text-secondary: #94A3B8;
  --text-muted: #8898AE; --text-on-dark: #ffffff;
  --text-link: #2DD4BF; --text-link-hover: #5EEAD4;
  --text-link-on-dark: #a5b4fc; --text-error: #F87171;
  --text-success: #34D399; --text-warning: #FBBF24;
  --border-default: #334155; --border-focus: #2DD4BF;
  --border-error: #F87171; --border-disabled: #475569;
  --btn-primary-bg: #2DD4BF; --btn-primary-text: #0F172A;
  --btn-primary-bg-hover: #5EEAD4; --btn-primary-bg-active: #14B8A6;
  --btn-secondary-bg: transparent; --btn-secondary-text: #E2E8F0;
  --btn-secondary-border: #475569; --btn-secondary-bg-hover: rgba(255,255,255,.05);
  --btn-tertiary-text: #2DD4BF; --btn-tertiary-text-hover: #5EEAD4;
  --btn-danger-bg: #DC2626; --btn-danger-text: #ffffff; --btn-danger-bg-hover: #EF4444;
  --btn-settings-bg: #D97706; --btn-settings-text: #ffffff; --btn-settings-bg-hover: #F59E0B;
  --btn-on-dark-bg: #1E293B; --btn-on-dark-text: #2DD4BF; --btn-on-dark-bg-hover: #334155;
  --btn-disabled-bg: #334155; --btn-disabled-text: #64748B; --btn-disabled-border: #475569;
  --input-bg: #1E293B; --input-bg-focus: #334155; --input-text: #E2E8F0;
  --input-placeholder: #64748B; --input-label: #94A3B8;
  --toggle-track-off: #475569; --toggle-track-on: #2DD4BF; --toggle-thumb: #0F172A;
  --checkbox-border: #475569; --checkbox-checked-bg: #2DD4BF; --checkbox-check-color: #0F172A;
  --range-track: #334155; --range-track-fill: #2DD4BF; --range-thumb: #2DD4BF;
  --nav-text: #94A3B8; --nav-text-hover: #E2E8F0; --nav-text-active: #2DD4BF;
  --nav-indicator: #2DD4BF; --nav-bg-hover: rgba(255,255,255,.05);
  --tag-default-bg: #334155; --tag-default-text: #CBD5E1;
  --tag-success-bg: rgba(5,150,105,.15); --tag-success-text: #34D399;
  --tag-warning-bg: rgba(217,119,6,.15); --tag-warning-text: #FBBF24;
  --tag-danger-bg: rgba(220,38,38,.15); --tag-danger-text: #F87171;
  --tag-info-bg: rgba(91,106,191,.15); --tag-info-text: #A5B4FC;
  --alert-info-bg: rgba(91,106,191,.15); --alert-info-border: #3730A3; --alert-info-icon: #A5B4FC;
  --alert-success-bg: rgba(5,150,105,.15); --alert-success-border: #065F46; --alert-success-icon: #34D399;
  --alert-warning-bg: rgba(217,119,6,.15); --alert-warning-border: #92400E; --alert-warning-icon: #FBBF24;
  --alert-error-bg: rgba(220,38,38,.15); --alert-error-border: #991B1B; --alert-error-icon: #F87171;
  --progress-track: #334155; --progress-fill: #2DD4BF;
  --progress-step-active: #2DD4BF; --progress-step-complete: #34D399; --progress-step-incomplete: #475569;
  --spinner-color: #2DD4BF;
  --shadow-sm: 0 1px 3px rgba(0,0,0,.3); --shadow-md: 0 4px 12px rgba(0,0,0,.4);
  --shadow-lg: 0 8px 24px rgba(0,0,0,.5); --shadow-xl: 0 20px 60px rgba(0,0,0,.6);
  --shadow-overlay: rgba(0,0,0,.7); --focus-ring: 0 0 0 3px rgba(45,212,191,.4);
  --scrollbar-track: #1E293B; --scrollbar-thumb: #475569; --scrollbar-thumb-hover: #64748B;
  --color-bg: var(--bg-page); --color-surface: var(--bg-surface);
  --color-primary: var(--text-primary); --color-primary-dark: var(--bg-dark);
  --color-accent: #2DD4BF; --color-accent-hover: #5EEAD4; --color-accent-tint: var(--bg-tint);
  --color-accent-rgb: 45,212,191; --color-text: var(--text-primary);
  --color-muted: var(--text-secondary); --color-border: var(--border-default);
  --color-success: var(--text-success); --color-error: var(--text-error);
  --color-warning: #FBBF24; --color-warning-dot: #F59E0B;
}
html[data-theme="dark"] img:not([src*=".svg"]) { filter: brightness(0.9); }
html[data-theme="dark"] pre,
html[data-theme="dark"] code { background: #1E293B; border-color: #334155; }
html[data-theme="dark"] .oh-login-divider { color: var(--text-secondary, #94A3B8); }
html[data-theme="dark"] .oh-login-link { color: var(--color-accent-on-dark, #5bc0b5); }
html[data-theme="dark"] .oh-login-page { background: linear-gradient(135deg, #0B1120 0%, #142942 100%); }
html[data-theme="dark"] .oh-login-demo { background: rgba(255,255,255,.06); border-color: rgba(255,255,255,.12); }
html[data-theme="dark"] .oh-login-demo-title { color: var(--text-primary, #E2E8F0); }
html[data-theme="dark"] .oh-login-demo-sub { color: var(--text-secondary, #94A3B8); }
html[data-theme="dark"] .pricing-note { color: var(--text-secondary, #94A3B8); }
html[data-theme="dark"] .oh-required { color: var(--text-error, #F87171); }
html[data-theme="dark"] .oh-field-error { color: var(--text-error, #F87171); }
html[data-theme="dark"] .oh-form-legend { color: var(--text-secondary, #94A3B8); }
html[data-theme="dark"] .oh-privacy-summary a { color: var(--text-link, #2DD4BF); }
html[data-theme="dark"] .pub-btn-teal,
html[data-theme="dark"] .pub-btn-teal:hover { background-color: var(--brand-deep-teal, #0E6B6B); color: #fff; }

/* ── Light mode: no overrides needed — the :not([data-theme="light"]) guards
   on every @media (prefers-color-scheme: dark) block handle suppression.
   html[data-theme="light"] { color-scheme: light; } is intentionally omitted
   because it does not block media queries. ─────────────────────────────── */
