
/* ==========================================================================
   PURE CSS LARAVEL BREEZE & MATERIAL 3 DESIGN SYSTEM (app.css)
   Universal CSS-Only Stylesheet for index.html and all 15 code.html prototypes.
   Zero Tailwind CSS, Zero JavaScript required. Pure CSS Utility & UI Architecture.
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Public+Sans:wght@400;500;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Material+Symbols+Outlined:wght,FILL@100..700,0..1&display=swap');

:root {
  /* Core Design Tokens - Breeze & Material 3 Light Theme */
  --bg-main: #fcf8ff;
  --bg-surface-low: #f5f2ff;
  --bg-surface: #ffffff;
  --bg-surface-high: #eae6f4;
  --bg-surface-highest: #e4e1ee;
  
  /* Text & Content Tokens */
  --text-main: #1b1b24;
  --text-muted: #464555;
  --text-dim: #777587;
  --text-inverse: #ffffff;
  --outline: #777587;
  --outline-variant: #c7c4d8;

  /* Brand Accents */
  --primary: #4f46e5;
  --primary-hover: #4338ca;
  --primary-light: #e2dfff;
  --primary-container: #4f46e5;
  --on-primary: #ffffff;
  --on-primary-container: #dad7ff;
  --secondary: #58579b;
  --on-secondary: #ffffff;
  --secondary-container: #b6b4ff;
  --tertiary: #a44100;
  --on-tertiary: #ffffff;
  --tertiary-container: #ffd2be;
  --error: #ba1a1a;
  --on-error: #ffffff;
  --error-container: #ffdad6;
  --on-error-container: #93000a;

  /* Category Filter Colors */
  --auth-color: #e11d48;
  --auth-bg: #ffe4e6;
  --auth-border: #fecdd3;
  --comp-color: #4f46e5;
  --comp-bg: #e0e7ff;
  --comp-border: #c7d2fe;
  --layout-color: #059669;
  --layout-bg: #d1fae5;
  --layout-border: #a7f3d0;
  --system-color: #d97706;
  --system-bg: #fef3c7;
  --system-border: #fde68a;

  /* Elevation & Shadows */
  --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 6px -1px rgba(27, 27, 36, 0.06), 0 2px 4px -2px rgba(27, 27, 36, 0.04);
  --shadow-lg: 0 10px 15px -3px rgba(27, 27, 36, 0.08), 0 4px 6px -2px rgba(27, 27, 36, 0.04);
  --shadow-xl: 0 20px 25px -5px rgba(27, 27, 36, 0.1), 0 10px 10px -5px rgba(27, 27, 36, 0.04);
  --shadow-hover: 0 20px 25px -5px rgba(79, 70, 229, 0.12), 0 8px 10px -6px rgba(79, 70, 229, 0.08);

  /* Typography */
  --font-sans: 'Inter', system-ui, -apple-system, sans-serif;
  --font-label: 'Public Sans', system-ui, -apple-system, sans-serif;
  
  /* Sizing & Transitions */
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.75rem;
  --radius-xl: 1rem;
  --radius-2xl: 1.5rem;
  --radius-full: 9999px;
  --transition-fast: 0.15s ease;
  --transition-smooth: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ==========================================================================
   CSS Reset & Base Rules
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-main);
  color: var(--text-main);
  line-height: 1.5;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

::selection {
  background-color: var(--primary);
  color: #ffffff;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}
::-webkit-scrollbar-track {
  background: var(--bg-main);
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: var(--radius-full);
}
::-webkit-scrollbar-thumb:hover {
  background: var(--primary);
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.25;
  letter-spacing: -0.025em;
}

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

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
  background: none;
  border: none;
  outline: none;
}

button, label[for^="filter-"] {
  cursor: pointer;
  user-select: none;
}

/* ==========================================================================
   PURE CSS RADIO FILTERING LOGIC (Zero JavaScript)
   ========================================================================== */
.filter-radio {
  display: none !important;
}

/* Active filter button styles based on checked radio */
#filter-all:checked ~ * .filter-container label[for="filter-all"],
#filter-auth:checked ~ * .filter-container label[for="filter-auth"],
#filter-comp:checked ~ * .filter-container label[for="filter-comp"],
#filter-layout:checked ~ * .filter-container label[for="filter-layout"],
#filter-system:checked ~ * .filter-container label[for="filter-system"] {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(79, 70, 229, 0.25);
}

#filter-auth:checked ~ * .filter-container label[for="filter-auth"] {
  background: var(--auth-color);
  border-color: var(--auth-color);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.25);
}

/* Active count pill styles */
#filter-all:checked ~ * .filter-container label[for="filter-all"] .count-pill,
#filter-auth:checked ~ * .filter-container label[for="filter-auth"] .count-pill,
#filter-comp:checked ~ * .filter-container label[for="filter-comp"] .count-pill,
#filter-layout:checked ~ * .filter-container label[for="filter-layout"] .count-pill,
#filter-system:checked ~ * .filter-container label[for="filter-system"] .count-pill {
  background: rgba(255, 255, 255, 0.25);
  color: #ffffff;
}

/* Hide non-matching component cards in pure CSS when filter is checked */
#filter-auth:checked ~ * .components-grid .component-card:not([data-group="Authentication"]),
#filter-comp:checked ~ * .components-grid .component-card:not([data-group="Components"]),
#filter-layout:checked ~ * .components-grid .component-card:not([data-group="Layouts"]),
#filter-system:checked ~ * .components-grid .component-card:not([data-group="Design Systems"]) {
  display: none !important;
}

/* ==========================================================================
   Header & Navigation
   ========================================================================== */
.app-wrapper {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  width: 100%;
}

.container {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

@media (max-width: 640px) {
  .container {
    padding: 0 1rem;
  }
}

.app-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--bg-surface-highest);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-smooth);
}

.header-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4.5rem;
}

.brand-identity {
  display: flex;
  align-items: center;
  gap: 0.875rem;
}

.brand-logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-md);
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.125rem;
  color: #ffffff;
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.25);
}

.brand-text h1 {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.brand-text h1 span {
  color: var(--primary);
}

.brand-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-light);
  color: var(--primary);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid rgba(79, 70, 229, 0.2);
}

/* ==========================================================================
   Hero Section
   ========================================================================== */
.hero-section {
  padding: 3.5rem 0 2.5rem;
  text-align: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.875rem;
  background: var(--primary-light);
  border: 1px solid rgba(79, 70, 229, 0.25);
  border-radius: var(--radius-full);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 600;
  margin-bottom: 1.25rem;
}

.hero-title {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 1rem;
  color: var(--text-main);
  letter-spacing: -0.04em;
}

.hero-title span {
  color: var(--primary);
}

.hero-subtitle {
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 2rem;
  line-height: 1.6;
}

@media (max-width: 640px) {
  .hero-title {
    font-size: 2rem;
  }
  .hero-subtitle {
    font-size: 0.95rem;
  }
}

.module-selector-section {
  background: radial-gradient(circle at top left, rgba(124, 58, 237, 0.16), transparent 32%),
              radial-gradient(circle at bottom right, rgba(99, 102, 241, 0.18), transparent 28%),
              linear-gradient(180deg, #050b1d 0%, #0c1229 42%, #0f172a 100%);
}

.subsystem-dashboard-section {
  background: #090f22;
}

.module-section-header,
.dashboard-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2rem;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  padding-bottom: 1.5rem;
}

.module-section-header .eyebrow,
.dashboard-header .eyebrow {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: #c4b5fd;
  margin-bottom: 0.5rem;
}

.section-title,
.dashboard-title {
  font-size: clamp(2rem, 2.6vw, 2.75rem);
  color: #f8fafc;
  margin-bottom: 0.75rem;
}

.section-copy,
.dashboard-description {
  color: #cbd5e1;
  max-width: 760px;
  line-height: 1.75;
}

.search-box {
  position: relative;
  width: min(100%, 320px);
}

.search-box .search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  color: #8f9fcb;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 0.95rem 1rem 0.95rem 3rem;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(15, 23, 42, 0.88);
  color: #f8fafc;
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.05);
}

.search-input::placeholder {
  color: #8f9fcb;
}

.module-selector-grid,
.dashboard-module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}

.module-selection-panel,
.module-card,
.dashboard-card {
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: var(--radius-2xl);
}

.module-selection-panel {
  padding: 2rem;
  box-shadow: 0 28px 80px -45px rgba(15, 23, 42, 0.7);
  overflow: hidden;
}

.module-folder-card {
  background: rgba(15, 23, 42, 0.9);
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: var(--radius-2xl);
  padding: 1.5rem;
  margin-bottom: 1.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

.folder-card-top {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.folder-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 3.5rem;
  min-height: 3.5rem;
  border-radius: 1rem;
  background: rgba(99, 102, 241, 0.2);
  color: #ede9fe;
  font-size: 1rem;
  padding: 0.75rem;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.folder-title {
  font-size: 1.6rem;
  color: #f8fafc;
  margin: 0 0 0.5rem;
}

.folder-copy {
  margin: 0;
  color: rgba(226, 232, 255, 0.82);
  max-width: 740px;
  line-height: 1.75;
}

.folder-content {
  display: grid;
  gap: 1rem;
}

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

.folder-card-item {
  background: rgba(15, 23, 42, 0.82);
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: var(--radius-xl);
  padding: 1.2rem;
}

.folder-card-item h3 {
  margin: 0 0 0.45rem;
  font-size: 1rem;
  color: #f8fafc;
}

.folder-card-item p {
  margin: 0;
  color: rgba(226, 232, 255, 0.78);
  line-height: 1.6;
}

.module-card {
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  min-height: 420px;
  box-shadow: 0 28px 60px -40px rgba(15, 23, 42, 0.8);
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.module-card:hover {
  transform: translateY(-8px);
  border-color: rgba(168, 85, 247, 0.35);
  box-shadow: 0 32px 70px -44px rgba(168, 85, 247, 0.5);
}

.module-card-preview {
  position: relative;
  padding: 1.5rem;
  background: linear-gradient(135deg, rgba(168, 85, 247, 0.92), rgba(79, 70, 229, 0.95));
  display: flex;
  flex-direction: column;
  justify-content: end;
  gap: 0.75rem;
  min-height: 160px;
}

.module-card-preview::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, rgba(255, 255, 255, 0.16), transparent 30%),
              radial-gradient(circle at bottom right, rgba(255, 255, 255, 0.08), transparent 22%);
}

.module-card-preview-badge {
  position: relative;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.95rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.95);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  z-index: 1;
}

.module-card-preview-hero {
  position: relative;
  z-index: 1;
  font-size: 1.05rem;
  font-weight: 700;
  color: #f8fafc;
  line-height: 1.35;
}

.module-card-body {
  padding: 1.75rem 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.module-card h3 {
  color: #f8fafc;
  font-size: 1.15rem;
  margin: 0;
}

.dashboard-card h3 {
  color: #0f172a;
  font-size: 1.15rem;
  margin: 0;
}

.module-card p,
.module-list li {
  color: rgba(226, 232, 255, 0.88);
}

.dashboard-card p {
  color: #475569;
}

.module-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0.6rem;
}

.module-list li {
  position: relative;
  padding-left: 1.35rem;
  line-height: 1.65;
}

.module-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.8rem;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #c084fc;
}

.btn-open,
.btn-secondary {
  width: fit-content;
  border-radius: var(--radius-lg);
  padding: 0.8rem 1.35rem;
  font-weight: 700;
}

.btn-open {
  margin-top: auto;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #ffffff;
  box-shadow: 0 16px 32px -16px rgba(124, 58, 237, 0.5);
}

.btn-open:hover {
  background: linear-gradient(135deg, #7c3aed, #9333ea);
}

.btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1.5rem;
  padding: 0.9rem 1.35rem;
  border: 1px solid rgba(56, 189, 248, 0.24);
  background: #ffffff;
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.06);
}

.btn-secondary:hover {
  background: #f8fbff;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  border-radius: 1.5rem;
  padding: 0.95rem 1.45rem;
  border: none;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 20px 36px rgba(79, 70, 229, 0.22);
}

.btn-primary:hover {
  background: linear-gradient(135deg, #4338ca, #4f46e5);
}

.dashboard-card {
  min-height: 120px;
  padding: 1.75rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: var(--radius-2xl);
  box-shadow: 0 20px 35px rgba(15, 23, 42, 0.05);
}

.dashboard-card-label {
  font-size: 0.72rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: #6366f1;
  margin-bottom: 0.55rem;
}

.dashboard-action-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  border-radius: 999px;
  padding: 0.65rem 1.35rem;
  margin: 0;
}

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

.dashboard-chart-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0.75rem 1.1rem;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #ffffff;
  color: #334155;
  font-size: 0.85rem;
  font-weight: 700;
}

.dashboard-line-chart {
  min-height: 220px;
  width: 100%;
}

.dashboard-line-chart svg {
  width: 100%;
  height: 100%;
  display: block;
  overflow: visible;
}

.donut-chart-wrapper {
  position: relative;
  width: min(100%, 260px);
  margin: 0 auto;
}

.donut-chart {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 999px;
  position: relative;
}

.donut-center-text {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  display: inline-grid;
  gap: 0.35rem;
}

.donut-center-text p:first-child {
  color: #64748b;
  font-size: 0.75rem;
  margin: 0;
}

.donut-center-text p:last-child {
  color: #0f172a;
  font-size: 1.1rem;
  font-weight: 700;
  margin: 0;
}

.donut-list-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.1rem;
  border-radius: 1.5rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.16);
}

.donut-list-color {
  width: 0.9rem;
  height: 0.9rem;
  border-radius: 0.5rem;
}

.quick-action-button {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.25rem;
  border-radius: 1.5rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  color: #0f172a;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  transition: transform var(--transition-fast), background var(--transition-fast), border-color var(--transition-fast);
}

.quick-action-button:hover {
  background: #f8fbff;
  transform: translateY(-1px);
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 14px;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-pill-success {
  background: #ecfdf5;
  color: #166534;
}

.status-pill-info {
  background: #eff6ff;
  color: #1d4ed8;
}

.status-pill-warning {
  background: #ffedd5;
  color: #c2410c;
}

.status-pill-accent {
  background: #ede9fe;
  color: #5b21b6;
}

.status-pill-neutral {
  background: #f8fafc;
  color: #475569;
}

#dashboard-activity-tbody td {
  padding: 1rem 1.25rem;
  vertical-align: middle;
}

#dashboard-activity-tbody tr {
  background: #ffffff;
}

#dashboard-activity-tbody tr:hover {
  background: #f8fbff;
}

.hidden {
  display: none !important;
}

@media (max-width: 900px) {
  .module-selector-grid,
  .dashboard-module-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  .module-card {
    min-height: auto;
  }

  .module-card-preview {
    min-height: 125px;
  }
}

@media (max-width: 640px) {
  .module-section-header,
  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .search-box {
    width: 100%;
  }
}

/* ==========================================================================
   Filter Bar & Tabs
   ========================================================================== */
.filter-container {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.625rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  padding: 0.6rem 1.25rem;
  background: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-weight: 600;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: all var(--transition-fast);
  box-shadow: var(--shadow-sm);
}

.filter-btn:hover {
  background: var(--bg-surface-low);
  color: var(--text-main);
  border-color: var(--primary);
}

.filter-btn .count-pill {
  padding: 0.1rem 0.5rem;
  background: var(--bg-surface-high);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-main);
}

/* ==========================================================================
   Standalone Module Selector Page
   ========================================================================== */
.module-selector-page {
  min-height: 100vh;
  padding: 2rem 1rem 3rem;
  background: linear-gradient(180deg, #eef6ff 0%, #f8fbff 48%, #f6f7fb 100%);
}

.module-selector-shell {
  width: min(95vw, 1800px);
  max-width: 95vw;
  margin: 0 auto;
  padding: 3rem;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 2rem;
  box-shadow: 0 36px 110px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
}

.module-selector-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(250px, 1fr));
  gap: 1.75rem;
  align-items: stretch;
}

@media (max-width: 1400px) {
  .module-selector-grid {
    grid-template-columns: repeat(4, minmax(220px, 1fr));
  }
}

@media (max-width: 1120px) {
  .module-selector-grid {
    grid-template-columns: repeat(3, minmax(220px, 1fr));
  }
}

@media (max-width: 860px) {
  .module-selector-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }
}

@media (max-width: 680px) {
  .module-selector-grid {
    grid-template-columns: 1fr;
  }
}

.module-selector-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
}

.module-selector-title {
  font-size: clamp(2.25rem, 3vw, 3.4rem);
  color: #0f172a;
  margin: 0 0 0.85rem;
  letter-spacing: -0.03em;
}

.module-selector-copy {
  color: #475569;
  max-width: 720px;
  font-size: 1rem;
  line-height: 1.85;
}

.module-selector-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.module-selector-actions .btn-view {
  background: linear-gradient(135deg, #4f46e5, #2563eb);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(59, 130, 246, 0.22);
}

.module-selector-actions .btn-view:hover {
  background: linear-gradient(135deg, #4338ca, #1d4ed8);
}

.subsystem-card {
  position: relative;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 2rem;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  box-shadow: 0 22px 45px rgba(15, 23, 42, 0.06);
  transition: transform var(--transition-smooth), border-color var(--transition-fast), box-shadow var(--transition-fast);
  overflow: hidden;
}

.subsystem-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 4.5rem;
  height: 4px;
  background: linear-gradient(90deg, #4f46e5, #2563eb);
}

.subsystem-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.35);
  box-shadow: 0 34px 65px rgba(59, 130, 246, 0.12);
}

.subsystem-card-head .eyebrow {
  display: inline-flex;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
}

.subsystem-card-head h3 {
  margin: 0.85rem 0 0.85rem;
  font-size: 1.2rem;
  color: #0f172a;
  line-height: 1.3;
}

.subsystem-card-head p {
  margin: 0;
  color: #64748b;
  line-height: 1.75;
}

.subsystem-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(226, 232, 240, 0.8);
}

.subsystem-card-meta .btn-view {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.55rem 0.85rem;
  font-size: 0.8rem;
  border-radius: 0.75rem;
}

.subsystem-card-count {
  color: #475569;
  font-weight: 700;
  font-size: 0.85rem;
}

.subsystem-module-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin: 1.25rem 0 1.5rem;
  flex-grow: 1;
}

.module-chip {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #1e293b;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.35;
  border: 1px solid #e2e8f0;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  text-align: left;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}

.module-chip:hover {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
  transform: translateX(4px);
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.08);
}

.module-chip-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 0.5rem;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  flex-shrink: 0;
  font-size: 16px;
  margin-top: -0.05rem;
}

.module-chip-text {
  flex-grow: 1;
  word-break: break-word;
}

.subsystem-detail {
  margin-top: 2rem;
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 2rem;
  padding: 2rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.06);
}

.subsystem-detail-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 1.5rem;
}

.subsystem-detail-title {
  font-size: clamp(1.75rem, 2.2vw, 2.25rem);
  color: var(--text-main);
  margin: 0.25rem 0 0;
}

.subsystem-detail-copy {
  color: var(--text-muted);
  max-width: 720px;
  line-height: 1.75;
}

.subsystem-detail-actions {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.subsystem-status-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.subsystem-pill {
  display: inline-flex;
  align-items: center;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 700;
}

.subsystem-modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1rem;
}

.module-card-light {
  background: var(--bg-surface-container-low);
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.25rem;
  padding: 1rem 1.1rem;
  box-shadow: 0 10px 25px rgba(15, 23, 42, 0.04);
}

.module-card-light h4 {
  margin: 0;
  font-size: 1rem;
  color: var(--text-main);
}

.module-selector-shell .eyebrow {
  margin-bottom: 0.85rem;
}

.module-selector-shell .btn-view {
  min-width: 10rem;
}

@media (max-width: 900px) {
  .module-selector-header {
    flex-direction: column;
    align-items: stretch;
  }
}

@media (max-width: 680px) {
  .module-selector-grid,
  .subsystem-modules-grid {
    grid-template-columns: 1fr;
  }
}

/* ==========================================================================
   Components Grid & Breeze UI Cards
   ========================================================================== */
.components-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 1.75rem;
  margin-bottom: 4rem;
  min-height: 400px;
}

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

.component-card {
  background: var(--bg-surface);
  border: 1px solid var(--bg-surface-highest);
  border-radius: var(--radius-xl);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-smooth);
  box-shadow: var(--shadow-md);
}

.component-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.component-card[data-group="Authentication"]:hover {
  border-color: var(--auth-color);
  box-shadow: 0 20px 25px -5px rgba(225, 29, 72, 0.1), 0 8px 10px -6px rgba(225, 29, 72, 0.08);
}

.card-thumb-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  background: var(--bg-surface-low);
  overflow: hidden;
  border-bottom: 1px solid var(--bg-surface-highest);
}

.card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.component-card:hover .card-thumb {
  transform: scale(1.05);
}

.fallback-banner {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #f5f2ff 0%, #eae6f4 100%);
  color: var(--primary);
  padding: 1.5rem;
  text-align: center;
}

.fallback-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 0.75rem;
  opacity: 0.8;
}

.fallback-text {
  font-size: 0.875rem;
  font-weight: 700;
  color: var(--text-main);
}

.fallback-subtext {
  font-size: 0.75rem;
  color: var(--text-dim);
  margin-top: 0.25rem;
}

.card-badge-container {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 10;
}

.card-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-full);
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #ffffff;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--outline-variant);
}

.badge-authentication {
  background: var(--auth-bg);
  color: var(--auth-color);
  border-color: var(--auth-border);
}
.badge-components {
  background: var(--comp-bg);
  color: var(--comp-color);
  border-color: var(--comp-border);
}
.badge-layouts {
  background: var(--layout-bg);
  color: var(--layout-color);
  border-color: var(--layout-border);
}
.badge-design-systems {
  background: var(--system-bg);
  color: var(--system-color);
  border-color: var(--system-border);
}

/* Status Badges - Semantic Colors & Breathing Room */
.status-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  flex-shrink: 0;
}
.status-badge-operational {
  background-color: var(--layout-bg);
  color: var(--layout-color);
  border: 1px solid var(--layout-border);
}
.status-badge-maintenance {
  background-color: var(--system-bg);
  color: var(--system-color);
  border: 1px solid var(--system-border);
}
.status-badge-archived {
  background-color: var(--bg-surface-highest);
  color: var(--text-muted);
  border: 1px solid transparent;
}

.card-body {
  padding: 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 0.5rem;
  transition: color var(--transition-fast);
}

.component-card:hover .card-title {
  color: var(--primary);
}
.component-card[data-group="Authentication"]:hover .card-title {
  color: var(--auth-color);
}

.card-desc {
  font-size: 0.875rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  flex: 1;
}

.card-footer {
  padding-top: 1rem;
  border-top: 1px solid var(--bg-surface-highest);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.file-path-info {
  font-family: monospace;
  font-size: 0.75rem;
  color: var(--text-dim);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  transition: all var(--transition-fast);
  text-align: center;
  white-space: nowrap;
  user-select: none;
}

.btn:active {
  transform: scale(0.96);
}

.btn-view {
  background: var(--primary);
  color: #ffffff;
  box-shadow: 0 2px 4px rgba(79, 70, 229, 0.2);
}

.btn-view:hover {
  background: var(--primary-hover);
  box-shadow: 0 4px 10px rgba(79, 70, 229, 0.35);
  color: #ffffff;
}

.component-card[data-group="Authentication"] .btn-view {
  background: var(--auth-color);
  box-shadow: 0 2px 4px rgba(225, 29, 72, 0.2);
}

.component-card[data-group="Authentication"] .btn-view:hover {
  background: #be123c;
  box-shadow: 0 4px 10px rgba(225, 29, 72, 0.35);
}

.btn-icon {
  width: 16px;
  height: 16px;
  transition: transform var(--transition-fast);
}
.btn-view:hover .btn-icon {
  transform: translateX(3px);
}

.sidebar-subsystem-card {
  background: #ffffff;
  border: 1px solid rgba(148, 163, 184, 0.12);
  border-radius: 1.75rem;
  padding: 1.25rem;
  box-shadow: 0 18px 30px rgba(15, 23, 42, 0.04);
}

.sidebar-subsystem-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.sidebar-subsystem-card-header p {
  margin: 0;
}

.sidebar-subsystem-card-header .text-sm {
  color: var(--text-muted);
}

.sidebar-subsystem-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 700;
  color: #1d4ed8;
  background: rgba(59, 130, 246, 0.12);
}

.sidebar-subsystem-modules {
  display: grid;
  gap: 0.75rem;
}

.sidebar-subsystem-module {
  background: #f8f9ff;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 1.75rem;
  padding: 1rem 1rem;
  color: #0f172a;
  font-size: 0.95rem;
  line-height: 1.5;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.04);
}

.sidebar-subsystem-module:nth-child(odd) {
  background: #ffffff;
}

.dashboard-sidebar {
  background: #ffffff;
  border-color: rgba(148, 163, 184, 0.15);
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 4rem);
}

.sidebar-brand-card {
  background: #f8fbff;
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 2rem;
}

.sidebar-brand-icon {
  background: rgba(59, 130, 246, 0.14);
}

.sidebar-subsystem-nav-panel {
  margin-top: 1.75rem;
}

.dashboard-sidebar > .flex-1 {
  min-height: 0;
}

.sidebar-subsystem-modules {
  display: grid;
  gap: 0.75rem;
}

.sidebar-subsystem-link {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.85rem;
  width: 100%;
  padding: 0.75rem 0.95rem;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 1.25rem;
  color: #334155;
  font-size: 0.9rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
  transition: background var(--transition-fast), color var(--transition-fast), transform var(--transition-fast);
}

.sidebar-subsystem-link:hover {
  background: #f1f5f9;
  color: #0f172a;
  border-color: transparent;
  transform: translateX(2px);
}

.sidebar-subsystem-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-width: 2.25rem;
  max-width: 2.25rem;
  height: 2.25rem;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: 999px;
  background: #f1f5f9;
  color: #475569;
  font-size: 1.15rem;
  line-height: 1;
  transition: background var(--transition-fast), color var(--transition-fast);
}

.sidebar-subsystem-link:hover .sidebar-subsystem-link-icon {
  background: #e2e8f0;
  color: #0f172a;
}

.sidebar-subsystem-link.active {
  background: #eef2ff;
  color: #1d4ed8;
  font-weight: 600;
}

.sidebar-subsystem-link.active .sidebar-subsystem-link-icon {
  background: rgba(59, 130, 246, 0.16);
  color: #2563eb;
}

.sidebar-main-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  width: 100%;
  padding: 0.95rem 1rem;
  border-radius: 1.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  background: #eef2ff;
  color: #1d4ed8;
  font-size: 0.95rem;
  font-weight: 600;
  box-shadow: 0 12px 18px rgba(15, 23, 42, 0.06);
  text-decoration: none;
}

.sidebar-main-link:hover,
.sidebar-main-link.active {
  background: #dde9ff;
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}

.sidebar-main-link:hover,
.sidebar-main-link.active {
  background: #eef2ff;
  border-color: rgba(59, 130, 246, 0.35);
  color: #1d4ed8;
}

.sidebar-main-link-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 1rem;
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
  font-size: 1.1rem;
}

.sidebar-profile-card {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.5rem 0.65rem;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 1rem;
  box-shadow: none;
}

.sidebar-profile-footer {
  position: sticky;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 10;
  flex-shrink: 0;
  margin-top: auto;
  padding: 0.5rem 0.75rem 0.65rem;
  background: #ffffff;
  border-top: 1px solid rgba(148, 163, 184, 0.15);
}

/* ==========================================================================
   Footer
   ========================================================================== */
.app-footer {
  margin-top: auto;
  padding: 2rem 0;
  border-top: 1px solid var(--bg-surface-highest);
  background: #ffffff;
  text-align: center;
}

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

.footer-text {
  font-size: 0.875rem;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 1.5rem;
  font-size: 0.875rem;
  color: var(--text-muted);
}

@media (max-width: 640px) {
  .footer-content {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   UNIVERSAL CSS UTILITIES FOR ALL CODE.HTML TEMPLATES (No Tailwind Needed)
   ========================================================================== */

/* Layout & Flex/Grid */
/* Layout & Flex/Grid */
.flex { display: flex !important; }
.inline-flex { display: inline-flex !important; }
.grid { display: grid !important; }
.hidden { display: none !important; }
.block { display: block !important; }
.inline-block { display: inline-block !important; }
.flex-col { flex-direction: column !important; }
.flex-row { flex-direction: row !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-grow, .flex-1 { flex: 1 1 0% !important; }
.flex-shrink-0, .shrink-0 { flex-shrink: 0 !important; }
.flex-shrink, .shrink { flex-shrink: 1 !important; }
.overflow-hidden { overflow: hidden !important; }
.overflow-x-auto { overflow-x: auto !important; }
.overflow-y-auto { overflow-y: auto !important; }
.items-center { align-items: center !important; }
.items-start { align-items: flex-start !important; }
.items-end { align-items: flex-end !important; }
.justify-center { justify-content: center !important; }
.justify-between { justify-content: space-between !important; }
.justify-start { justify-content: flex-start !important; }
.justify-end { justify-content: flex-end !important; }
.self-center { align-self: center !important; }

/* Grid columns */
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)) !important; }
.grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
.grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }

/* Sizing & Slices */
.w-full { width: 100% !important; }
.h-full { height: 100% !important; }
.h-screen { height: 100vh !important; }
.min-h-screen { min-height: 100vh !important; }
.max-w-xs { max-width: 20rem !important; }
.max-w-sm { max-width: 24rem !important; }
.max-w-md { max-width: 28rem !important; }
.max-w-lg { max-width: 32rem !important; }
.max-w-xl { max-width: 36rem !important; }
.max-w-2xl { max-width: 42rem !important; }
.max-w-4xl { max-width: 56rem !important; }
.max-w-7xl { max-width: 80rem !important; }
.mx-auto { margin-left: auto !important; margin-right: auto !important; }
.w-2 { width: 0.5rem !important; } .h-2 { height: 0.5rem !important; }
.w-3 { width: 0.75rem !important; } .h-3 { height: 0.75rem !important; }
.w-4 { width: 1rem !important; } .h-4 { height: 1rem !important; }
.w-5 { width: 1.25rem !important; } .h-5 { height: 1.25rem !important; }
.w-6 { width: 1.5rem !important; } .h-6 { height: 1.5rem !important; }
.w-7 { width: 1.75rem !important; } .h-7 { height: 1.75rem !important; }
.w-8 { width: 2rem !important; } .h-8 { height: 2rem !important; }
.w-9 { width: 2.25rem !important; } .h-9 { height: 2.25rem !important; }
.w-10 { width: 2.5rem !important; } .h-10 { height: 2.5rem !important; }
.w-11 { width: 2.75rem !important; } .h-11 { height: 2.75rem !important; }
.w-12 { width: 3rem !important; } .h-12 { height: 3rem !important; }
.w-14 { width: 3.5rem !important; } .h-14 { height: 3.5rem !important; }
.w-16 { width: 4rem !important; } .h-16 { height: 4rem !important; }
.w-20 { width: 5rem !important; } .h-20 { height: 5rem !important; }
.w-24 { width: 6rem !important; } .h-24 { height: 6rem !important; }
.w-48 { width: 12rem !important; }
.w-64 { width: 16rem !important; }
.w-72 { width: 18rem !important; }
.w-80 { width: 20rem !important; }

/* Positioning */
.relative { position: relative !important; }
.absolute { position: absolute !important; }
.fixed { position: fixed !important; }
.sticky { position: sticky !important; }
.top-0 { top: 0px !important; }
.top-16 { top: 4rem !important; }
.h-\[calc\(100vh-4rem\)\] { height: calc(100vh - 4rem) !important; }
.top-1 { top: 0.25rem !important; }
.top-1\.5 { top: 0.375rem !important; }
.top-1\/2 { top: 50% !important; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }
.inset-y-0 { top: 0; bottom: 0; }
.left-0 { left: 0px !important; }
.left-3 { left: 0.75rem !important; }
.left-4 { left: 1rem !important; }
.left-5 { left: 1.25rem !important; }
.left-6 { left: 1.5rem !important; }
.right-0 { right: 0px !important; }
.right-1\.5 { right: 0.375rem !important; }
.right-2 { right: 0.5rem !important; }
.right-3 { right: 0.75rem !important; }
.right-4 { right: 1rem !important; }
.right-5 { right: 1.25rem !important; }
.right-6 { right: 1.5rem !important; }
.top-2 { top: 0.5rem !important; }
.top-3 { top: 0.75rem !important; }
.top-4 { top: 1rem !important; }
.top-5 { top: 1.25rem !important; }
.top-6 { top: 1.5rem !important; }
.bottom-0 { bottom: 0px !important; }
.bottom-4 { bottom: 1rem !important; }
.bottom-6 { bottom: 1.5rem !important; }
.-translate-y-1\/2 { transform: translateY(-50%) !important; }
.w-0 { width: 0px !important; }
.border-r-0 { border-right-width: 0px !important; }
.opacity-0 { opacity: 0 !important; }
.opacity-100 { opacity: 1 !important; }
.translate-x-0 { transform: translateX(0) !important; }
.-translate-x-full { transform: translateX(-100%) !important; }
.duration-200 { transition-duration: 200ms !important; }
.duration-300 { transition-duration: 300ms !important; }
.top-12 { top: 3rem !important; }
.top-14 { top: 3.5rem !important; }
.w-56 { width: 14rem !important; }
.w-60 { width: 15rem !important; }
.scale-95 { transform: scale(0.95) !important; }
.scale-100 { transform: scale(1) !important; }
.origin-top-right { transform-origin: top right !important; }
.ease-in-out { transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1) !important; }
.pointer-events-auto { pointer-events: auto !important; }
.min-w-\[2\.5rem\] { min-width: 2.5rem !important; }
.min-h-\[2\.5rem\] { min-height: 2.5rem !important; }
.z-10 { z-index: 10 !important; } .z-20 { z-index: 20 !important; } .z-30 { z-index: 30 !important; } .z-40 { z-index: 40 !important; } .z-50 { z-index: 50 !important; }

/* Paddings & Margins */
.p-0 { padding: 0px !important; } .p-1 { padding: 0.25rem !important; } .p-2 { padding: 0.5rem !important; } .p-3 { padding: 0.75rem !important; } .p-4 { padding: 1rem !important; } .p-6 { padding: 1.5rem !important; } .p-8 { padding: 2rem !important; }
.px-2 { padding-left: 0.5rem !important; padding-right: 0.5rem !important; }
.px-3 { padding-left: 0.75rem !important; padding-right: 0.75rem !important; }
.px-4 { padding-left: 1rem !important; padding-right: 1rem !important; }
.px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
.py-1 { padding-top: 0.25rem !important; padding-bottom: 0.25rem !important; }
.py-2 { padding-top: 0.5rem !important; padding-bottom: 0.5rem !important; }
.py-2\.5 { padding-top: 0.625rem !important; padding-bottom: 0.625rem !important; }
.py-3 { padding-top: 0.75rem !important; padding-bottom: 0.75rem !important; }
.py-4 { padding-top: 1rem !important; padding-bottom: 1rem !important; }
.pt-4 { padding-top: 1rem !important; } .pt-8 { padding-top: 2rem !important; } .pt-16 { padding-top: 4rem !important; } .pt-24 { padding-top: 6rem !important; }
.pb-4 { padding-bottom: 1rem !important; } .pb-8 { padding-bottom: 2rem !important; } .pb-16 { padding-bottom: 4rem !important; }
.pl-3 { padding-left: 0.75rem !important; } .pl-7 { padding-left: 1.75rem !important; } .pl-8 { padding-left: 2rem !important; } .pl-9 { padding-left: 2.25rem !important; } .pl-10 { padding-left: 2.5rem !important; } .pl-11 { padding-left: 2.75rem !important; } .pl-12 { padding-left: 3rem !important; }
.pr-3 { padding-right: 0.75rem !important; } .pr-7 { padding-right: 1.75rem !important; } .pr-8 { padding-right: 2rem !important; } .pr-9 { padding-right: 2.25rem !important; } .pr-10 { padding-right: 2.5rem !important; } .pr-11 { padding-right: 2.75rem !important; } .pr-12 { padding-right: 3rem !important; }
.m-0 { margin: 0px !important; }
.my-2 { margin-top: 0.5rem !important; margin-bottom: 0.5rem !important; } .my-4 { margin-top: 1rem !important; margin-bottom: 1rem !important; } .my-6 { margin-top: 1.5rem !important; margin-bottom: 1.5rem !important; }
.mb-1 { margin-bottom: 0.25rem !important; } .mb-1\.5 { margin-bottom: 0.375rem !important; } .mb-2 { margin-bottom: 0.5rem !important; } .mb-3 { margin-bottom: 0.75rem !important; }
.mb-4 { margin-bottom: 1rem !important; } .mb-6 { margin-bottom: 1.5rem !important; } .mb-8 { margin-bottom: 2rem !important; }
.mt-1 { margin-top: 0.25rem !important; } .mt-1\.5 { margin-top: 0.375rem !important; } .mt-2 { margin-top: 0.5rem !important; } .mt-4 { margin-top: 1rem !important; } .mt-6 { margin-top: 1.5rem !important; } .mt-8 { margin-top: 2rem !important; }
.ml-2 { margin-left: 0.5rem !important; } .mr-2 { margin-right: 0.5rem !important; }

/* Gaps & Spacing */
.gap-1 { gap: 0.25rem !important; } .gap-2 { gap: 0.5rem !important; } .gap-3 { gap: 0.75rem !important; } .gap-4 { gap: 1rem !important; } .gap-6 { gap: 1.5rem !important; } .gap-8 { gap: 2rem !important; }
.space-y-1 > * + * { margin-top: 0.25rem !important; }
.space-y-2 > * + * { margin-top: 0.5rem !important; }
.space-y-4 > * + * { margin-top: 1rem !important; }
.space-y-6 > * + * { margin-top: 1.5rem !important; }
.space-y-8 > * + * { margin-top: 2rem !important; }
.space-x-2 > * + * { margin-left: 0.5rem !important; }
.space-x-4 > * + * { margin-left: 1rem !important; }
.space-x-6 > * + * { margin-left: 1.5rem !important; }
.space-x-8 > * + * { margin-left: 2rem !important; }

/* Backgrounds & Surface Colors */
.bg-background { background-color: var(--bg-main); }
.bg-surface { background-color: var(--bg-surface); }
.bg-surface-container-lowest { background-color: var(--bg-surface); }
.bg-surface-container-low { background-color: var(--bg-surface-low); }
.bg-surface-container { background-color: #f0ecf9; }
.bg-surface-container-high { background-color: var(--bg-surface-high); }
.bg-surface-container-highest { background-color: var(--bg-surface-highest); }
.bg-primary { background-color: var(--primary); }
.bg-primary-container { background-color: var(--primary-light); }
.bg-secondary { background-color: var(--secondary); }
.bg-secondary-container { background-color: var(--secondary-container); }
.bg-error { background-color: var(--error); }
.bg-error-container { background-color: var(--error-container); }
.bg-white { background-color: #ffffff; }
.bg-gray-50 { background-color: #f9fafb; }
.bg-gray-100 { background-color: #f3f4f6; }
.bg-gray-800 { background-color: #1f2937; }
.bg-gray-800\/50 { background-color: rgba(31, 41, 55, 0.5) !important; }
.bg-gray-900 { background-color: #111827; }
.bg-gray-900\/50 { background-color: rgba(17, 24, 39, 0.5) !important; }
.bg-indigo-50 { background-color: #eef2ff; }
.bg-indigo-600 { background-color: #4f46e5; }
.bg-primary-container\/10 { background-color: rgba(79, 70, 229, 0.1) !important; }
.bg-surface\/80 { background-color: rgba(255, 255, 255, 0.85) !important; }
.bg-surface-container-low\/30 { background-color: rgba(245, 242, 255, 0.3) !important; }
.bg-surface-container-low\/50 { background-color: rgba(245, 242, 255, 0.5) !important; }
.bg-green-100 { background-color: #dcfce7 !important; }
.bg-amber-100 { background-color: #fef3c7 !important; }
.bg-red-50 { background-color: #fef2f2 !important; }
.bg-red-100 { background-color: #fee2e2 !important; }
.bg-red-600 { background-color: #dc2626 !important; }
.hover\:bg-red-700:hover { background-color: #b91c1c !important; }
.border-red-200 { border-color: #fecaca !important; }
.text-red-600 { color: #dc2626 !important; }
.text-red-700 { color: #b91c1c !important; }
.text-red-800 { color: #991b1b !important; }
.shadow-red-600\/20 { box-shadow: 0 4px 14px 0 rgba(220, 38, 38, 0.2) !important; }
.bg-amber-50 { background-color: #fffbeb !important; }
.bg-amber-600 { background-color: #d97706 !important; }
.hover\:bg-amber-700:hover { background-color: #b45309 !important; }
.border-amber-200 { border-color: #fde68a !important; }
.text-amber-700 { color: #b45309 !important; }
.text-amber-800 { color: #92400e !important; }
.shadow-amber-600\/20 { box-shadow: 0 4px 14px 0 rgba(217, 119, 6, 0.2) !important; }
.bg-blue-100 { background-color: #dbeafe !important; }
.border-blue-200 { border-color: #bfdbfe !important; }
.text-blue-600 { color: #2563eb !important; }
.text-blue-800 { color: #1e40af !important; }

/* Text Colors & Fonts */
.text-on-surface { color: var(--text-main); }
.text-on-surface-variant { color: var(--text-muted); }
.text-on-background { color: var(--text-main); }
.text-primary { color: var(--primary); }
.text-primary-container { color: var(--primary); }
.text-on-primary { color: var(--on-primary); }
.text-on-primary-container { color: var(--primary); }
.text-secondary { color: var(--secondary); }
.text-on-secondary { color: var(--on-secondary); }
.text-outline { color: var(--outline); }
.text-outline-variant { color: var(--outline-variant); }
.text-error { color: var(--error); }
.text-on-error { color: var(--on-error) !important; }
.text-on-error-container { color: var(--on-error-container); }
.text-white { color: #ffffff; }
.text-green-600 { color: #16a34a !important; }
.text-green-800 { color: #166534 !important; }
.text-amber-800 { color: #92400e !important; }
.text-gray-500 { color: #6b7280; }
.text-gray-600 { color: #4b5563; }
.text-gray-700 { color: #374151; }
.text-gray-900 { color: #111827; }
.text-indigo-600 { color: #4f46e5; }

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-2xl { font-size: 1.5rem; line-height: 2rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }
.text-6xl { font-size: 3.75rem; line-height: 1; }

.font-normal { font-weight: 400; }
.font-medium { font-weight: 500; }
.font-semibold { font-weight: 600; }
.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }
.font-headline { font-family: var(--font-sans); }
.font-body { font-family: var(--font-sans); }
.label-text { font-family: var(--font-label); }

.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.tracking-tight { letter-spacing: -0.025em; }
.tracking-wider { letter-spacing: 0.05em; }
.leading-none { line-height: 1; }
.leading-tight { line-height: 1.25; }
.leading-relaxed { line-height: 1.625; }

/* Borders & Radii */
.border { border: 1px solid var(--outline-variant); }
.border-2 { border-width: 2px; }
.border-t { border-top: 1px solid var(--outline-variant); }
.border-b { border-bottom: 1px solid var(--outline-variant); }
.border-l { border-left: 1px solid var(--outline-variant); }
.border-r { border-right: 1px solid var(--outline-variant); }
.border-outline { border-color: var(--outline); }
.border-outline-variant { border-color: var(--outline-variant); }
.border-outline-variant\/30 { border-color: rgba(199, 196, 216, 0.3); }
.border-outline\/20 { border-color: rgba(119, 117, 135, 0.2); }
.border-gray-200 { border-color: #e5e7eb; }
.border-gray-300 { border-color: #d1d5db; }
.border-primary { border-color: var(--primary) !important; }
.border-transparent { border-color: transparent !important; }
.border-l-4 { border-left-width: 4px !important; border-left-style: solid !important; }
.divide-y > * + * { border-top: 1px solid var(--outline-variant); }
.divide-outline-variant\/20 > * + * { border-color: rgba(199, 196, 216, 0.2); }

.rounded { border-radius: 0.25rem; }
.rounded-md { border-radius: var(--radius-md); }
.rounded-lg { border-radius: var(--radius-lg); }
.rounded-xl { border-radius: var(--radius-xl); }
.rounded-2xl { border-radius: var(--radius-2xl); }
.rounded-full { border-radius: var(--radius-full); }

/* Shadows & Effects */
.shadow { box-shadow: var(--shadow-sm); }
.shadow-sm { box-shadow: var(--shadow-sm); }
.shadow-md { box-shadow: var(--shadow-md); }
.shadow-lg { box-shadow: var(--shadow-lg); }
.shadow-xl { box-shadow: var(--shadow-xl); }
.backdrop-blur-md { backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.opacity-50 { opacity: 0.5; }
.opacity-75 { opacity: 0.75; }
.opacity-80 { opacity: 0.8; }
.opacity-90 { opacity: 0.9; }
.pointer-events-none { pointer-events: none; }

/* Transitions & Hover Utility Behaviors */
.transition { transition: all var(--transition-fast); }
.transition-all { transition: all var(--transition-fast); }
.transition-colors { transition: color var(--transition-fast), background-color var(--transition-fast), border-color var(--transition-fast); }
.hover\:bg-primary:hover { background-color: var(--primary) !important; color: #ffffff !important; }
.hover\:bg-surface-container-low:hover { background-color: var(--bg-surface-low) !important; }
.hover\:text-primary:hover { color: var(--primary) !important; }
.hover\:shadow-md:hover { box-shadow: var(--shadow-md) !important; }
.active\:scale-95:active { transform: scale(0.95); }

/* Universal Form & Input Elements for All HTML */
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], select, textarea {
  width: 100%;
  padding: 0.625rem 0.875rem;
  background-color: #ffffff;
  border: 1px solid var(--outline-variant);
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-size: 0.9375rem;
  transition: all var(--transition-fast);
}

input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus, input[type="number"]:focus, input[type="search"]:focus, select:focus, textarea:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.15);
}

input[type="checkbox"], input[type="radio"] {
  width: 1.125rem;
  height: 1.125rem;
  accent-color: var(--primary);
  cursor: pointer;
}

/* Universal Table Styling */
table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

thead th {
  padding: 0.875rem 1rem;
  font-weight: 700;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
  border-bottom: 1px solid var(--outline-variant);
  background-color: var(--bg-surface-low);
}

tbody td {
  padding: 0.875rem 1rem;
  font-size: 0.875rem;
  color: var(--text-main);
  border-bottom: 1px solid var(--outline-variant);
}

tbody tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background-color: rgba(79, 70, 229, 0.03);
}

/* ==========================================================================
   RESPONSIVE BREAKPOINT UTILITIES (sm: 640px, md: 768px, lg: 1024px, xl: 1280px)
   ========================================================================== */

@media (min-width: 640px) {
  .sm\:block { display: block !important; }
  .sm\:flex { display: flex !important; }
  .sm\:inline-flex { display: inline-flex !important; }
  .sm\:hidden { display: none !important; }
  .sm\:flex-row { flex-direction: row !important; }
  .sm\:flex-1 { flex: 1 1 0% !important; }
  .sm\:items-center { align-items: center !important; }
  .sm\:justify-between { justify-content: space-between !important; }
  .sm\:justify-center { justify-content: center !important; }
  .sm\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .sm\:gap-3 { gap: 0.75rem !important; }
  .sm\:p-8 { padding: 2rem !important; }
  .sm\:p-10 { padding: 2.5rem !important; }
  .sm\:px-6 { padding-left: 1.5rem !important; padding-right: 1.5rem !important; }
  .sm\:px-12 { padding-left: 3rem !important; padding-right: 3rem !important; }
}

@media (min-width: 768px) {
  .md\:block { display: block !important; }
  .md\:flex { display: flex !important; }
  .md\:inline-flex { display: inline-flex !important; }
  .md\:hidden { display: none !important; }
  .md\:flex-row { flex-direction: row !important; }
  .md\:items-center { align-items: center !important; }
  .md\:justify-between { justify-content: space-between !important; }
  .md\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .md\:ml-4 { margin-left: 1rem !important; }
  .md\:ml-6 { margin-left: 1.5rem !important; }
  .md\:mt-0 { margin-top: 0px !important; }
  .md\:p-8 { padding: 2rem !important; }
  .md\:p-12 { padding: 3rem !important; }
  .md\:pb-0 { padding-bottom: 0px !important; }
  .md\:w-auto { width: auto !important; }
  .md\:w-96 { width: 24rem !important; }
  .md\:translate-x-0 { transform: translateX(0) !important; }
  .md\:opacity-0 { opacity: 0 !important; }
  .md\:static { position: static !important; }
  .md\:shadow-none { box-shadow: none !important; }
  .md\:border-r-0 { border-right-width: 0px !important; }
  .md\:w-0 { width: 0px !important; }
}

@media (min-width: 1024px) {
  .lg\:block { display: block !important; }
  .lg\:flex { display: flex !important; }
  .lg\:inline-flex { display: inline-flex !important; }
  .lg\:hidden { display: none !important; }
  .lg\:flex-row { flex-direction: row !important; }
  .lg\:items-center { align-items: center !important; }
  .lg\:justify-between { justify-content: space-between !important; }
  .lg\:grid-cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
  .lg\:grid-cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)) !important; }
  .lg\:p-16 { padding: 4rem !important; }
  .lg\:p-24 { padding: 6rem !important; }
  .lg\:px-8 { padding-left: 2rem !important; padding-right: 2rem !important; }
  .lg\:px-24 { padding-left: 6rem !important; padding-right: 6rem !important; }
  .lg\:w-auto { width: auto !important; }
  .lg\:border-t-0 { border-top-width: 0px !important; }
}

/* Universal Viewport & Responsive Layout Safeguards */
html, body {
  max-width: 100vw;
  overflow-x: hidden;
}

.max-w-full { max-width: 100% !important; }
.min-w-0 { min-width: 0px !important; }
.break-words { word-break: break-word !important; overflow-wrap: break-word !important; }
.truncate { overflow: hidden !important; text-overflow: ellipsis !important; white-space: nowrap !important; }

@media (max-width: 767px) {
  .mobile-stack {
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
  }
  .mobile-full {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* ==========================================================================
   GLOBAL UX MICRO-INTERACTIONS & HOVER DYNAMICS
   ========================================================================== */

/* Universal Tactile Button Hover & Active UX */
button,
.btn,
a[class*="btn"] {
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.18s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.18s ease,
              border-color 0.18s ease,
              color 0.18s ease;
}

button:hover:not(:disabled),
.btn:hover:not(:disabled),
a[class*="btn"]:hover {
  transform: translateY(-1px);
}

button:active:not(:disabled),
.btn:active:not(:disabled),
a[class*="btn"]:active {
  transform: translateY(0px) scale(0.98);
}

/* Primary Button Enhanced Hover Glow */
button[class*="bg-primary"]:hover:not(:disabled),
.btn-primary:hover:not(:disabled) {
  box-shadow: 0 8px 18px -4px rgba(79, 70, 229, 0.35);
}

/* Surface / Neutral Action Button Hover Lift */
button[class*="bg-surface-container"]:hover:not(:disabled) {
  box-shadow: 0 4px 10px -2px rgba(27, 27, 36, 0.08);
}

/* Focus Visible Accessibility Ring for all controls */
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 2px solid var(--primary) !important;
  outline-offset: 2px !important;
}

/* Table Row Smooth Interactive Hover */
tbody tr {
  transition: background-color 0.15s ease;
}
tbody tr:hover {
  background-color: rgba(79, 70, 229, 0.035);
}

/* Card Interactive Hover Lift & Shadow Depth */
.dashboard-card,
.sidebar-subsystem-card {
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1),
              border-color 0.22s ease;
}

.dashboard-card:hover,
.sidebar-subsystem-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px -6px rgba(27, 27, 36, 0.09);
  border-color: rgba(79, 70, 229, 0.25);
}

/* Disabled State UX Feedback */
button:disabled,
.btn:disabled {
  cursor: not-allowed !important;
  opacity: 0.45;
  transform: none !important;
  box-shadow: none !important;
}

/* ==========================================================================
   BUTTON COMPONENT LIBRARY EXPLICIT HOVER & ACTIVE UTILITIES
   ========================================================================== */
.hover\:bg-primary-container:hover {
  background-color: var(--primary-hover) !important;
}
.hover\:text-on-primary-container:hover {
  color: #ffffff !important;
}
.hover\:bg-surface-dim:hover {
  background-color: #e2e8f0 !important;
}
.hover\:brightness-95:hover {
  filter: brightness(0.94) !important;
}
.hover\:bg-error\/90:hover {
  background-color: rgba(186, 26, 26, 0.9) !important;
  box-shadow: 0 8px 18px -4px rgba(186, 26, 26, 0.35) !important;
}
.hover\:bg-primary\/10:hover {
  background-color: rgba(79, 70, 229, 0.12) !important;
}
.hover\:bg-error\/10:hover {
  background-color: rgba(186, 26, 26, 0.12) !important;
}
.hover\:bg-on-surface\/5:hover {
  background-color: rgba(27, 27, 36, 0.06) !important;
}

/* Connected Button Group UX Polish */
div[role="group"] button {
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
div[role="group"] button:hover {
  z-index: 5;
  transform: translateY(-1px);
}
div[role="group"] button:active {
  transform: translateY(0px) scale(0.99);
}





:root{
  --gw-primary:#4f46e5;
  --gw-primary-2:#2563eb;
  --gw-bg:#f8fafc;
  --gw-card:#ffffff;
  --gw-text:#0f172a;
  --gw-muted:#64748b;
  --gw-border:#e2e8f0;
  --gw-success:#10b981;
  --gw-warning:#f59e0b;
  --gw-danger:#ef4444;
  --gw-radius:1.35rem;
}
*{box-sizing:border-box}
body{margin:0;background:var(--gw-bg);color:var(--gw-text);font-family:Inter,Public Sans,Arial,sans-serif}
button{font:inherit}
#sidebar-backdrop{display:none}
.gw-sidebar{position:fixed;left:0;top:0;bottom:0;width:280px;background:#fff;border-right:1px solid var(--gw-border);z-index:60;display:flex;flex-direction:column;transition:.25s ease;overflow-y:auto}
.gw-shell{margin-left:280px;min-height:100vh;transition:.25s ease}
.gw-brand{padding:24px 22px;display:flex;align-items:center;gap:12px;border-bottom:1px solid #f1f5f9}
.gw-brand-icon{width:46px;height:46px;border-radius:15px;background:#eef2ff;color:var(--gw-primary);display:grid;place-items:center}
.gw-brand-icon .material-symbols-outlined{font-size:26px}
.gw-brand-title{font-size:18px;font-weight:900;letter-spacing:-.03em}
.gw-brand-subtitle{font-size:11px;color:var(--gw-muted);margin-top:2px}
.gw-sidebar-section{padding:22px 22px 8px;font-size:10px;font-weight:800;letter-spacing:.14em;color:#94a3b8}
.gw-nav{padding:0 14px 20px;display:flex;flex-direction:column;gap:5px}
.gw-nav button{width:100%;border:0;background:transparent;color:#475569;text-align:left;padding:12px 12px;border-radius:12px;display:flex;align-items:center;gap:11px;cursor:pointer;font-size:13px;font-weight:600;transition:.18s}
.gw-nav button:hover{background:#f8fafc;color:var(--gw-primary)}
.gw-nav button.active{background:#eef2ff;color:var(--gw-primary);font-weight:800}
.gw-nav button .material-symbols-outlined{font-size:20px}
.gw-nav .nav-number{margin-left:auto;font-size:10px;background:#f1f5f9;color:#64748b;border-radius:20px;padding:3px 7px}
.gw-nav button.active .nav-number{background:#e0e7ff;color:var(--gw-primary)}
.gw-sidebar-footer{margin-top:auto;margin:14px;border:1px solid #e2e8f0;border-radius:16px;padding:13px;display:flex;gap:10px;align-items:flex-start;background:#f8fafc}
.gw-status-dot{width:9px;height:9px;border-radius:50%;background:var(--gw-success);margin-top:5px;box-shadow:0 0 0 4px #d1fae5}
.gw-sidebar-footer strong{font-size:11px;display:block;color:#1e293b}.gw-sidebar-footer span{font-size:10px;color:var(--gw-primary);font-weight:700;text-transform:capitalize}
.gw-topbar{height:72px;background:rgba(255,255,255,.92);backdrop-filter:blur(12px);border-bottom:1px solid var(--gw-border);display:flex;align-items:center;justify-content:space-between;padding:0 26px;position:sticky;top:0;z-index:50}
.gw-topbar-left,.gw-user{display:flex;align-items:center}
.gw-topbar-left{gap:14px}.gw-topbar-title{display:flex;flex-direction:column;gap:2px}.gw-topbar-title .eyebrow{font-size:9px;letter-spacing:.1em;color:#94a3b8;font-weight:800}.gw-topbar-title strong{font-size:14px}
.icon-btn{border:1px solid var(--gw-border);background:#fff;width:40px;height:40px;border-radius:12px;display:grid;place-items:center;cursor:pointer;color:#475569}
.icon-btn:hover{color:var(--gw-primary);border-color:#c7d2fe;background:#f8fafc}
.gw-user{gap:10px}.gw-avatar{width:38px;height:38px;border-radius:50%;background:#e0e7ff;color:#4338ca;display:grid;place-items:center;font-size:12px;font-weight:800}
.gw-user-copy{display:flex;flex-direction:column}.gw-user-copy strong{font-size:12px}.gw-user-copy span{font-size:10px;color:var(--gw-muted)}.gw-notification{position:relative;color:#64748b;margin-right:3px}.gw-notification b{position:absolute;top:-7px;right:-7px;width:16px;height:16px;border-radius:50%;background:#ef4444;color:#fff;font-size:8px;display:grid;place-items:center;border:2px solid #fff}
.gw-main{padding:26px 30px 50px}.gw-container{max-width:1450px;margin:0 auto}
.gw-breadcrumb{display:flex;gap:8px;align-items:center;color:#94a3b8;font-size:11px;margin-bottom:18px}.gw-breadcrumb .material-symbols-outlined{font-size:15px}.gw-breadcrumb strong{color:#475569}
.gw-hero{display:flex;justify-content:space-between;gap:25px;align-items:flex-end;padding:20px 0 24px}
.gw-hero h1{margin:0;font-size:clamp(25px,3vw,38px);letter-spacing:-.045em;line-height:1.08}.gw-hero p{margin:10px 0 0;color:var(--gw-muted);max-width:700px;font-size:13px;line-height:1.65}
.gw-hero .eyebrow{display:inline-flex;align-items:center;gap:7px;color:var(--gw-primary);font-size:10px;font-weight:900;letter-spacing:.13em;text-transform:uppercase;margin-bottom:8px}.gw-hero .eyebrow:before{content:"";width:18px;height:2px;background:var(--gw-primary);border-radius:2px}
.gw-hero-actions{display:flex;gap:9px;flex-wrap:wrap}.gw-btn{border:0;border-radius:11px;padding:10px 14px;display:inline-flex;align-items:center;gap:7px;font-size:12px;font-weight:800;cursor:pointer}.gw-btn.primary{background:linear-gradient(135deg,var(--gw-primary),var(--gw-primary-2));color:#fff;box-shadow:0 5px 15px rgba(79,70,229,.22)}.gw-btn.secondary{background:#fff;border:1px solid var(--gw-border);color:#475569}.gw-btn .material-symbols-outlined{font-size:17px}
.gw-stats{display:grid;grid-template-columns:repeat(4,1fr);gap:16px;margin-bottom:20px}.gw-stat{background:#fff;border:1px solid var(--gw-border);border-radius:var(--gw-radius);padding:18px;box-shadow:0 2px 8px rgba(15,23,42,.025)}.gw-stat-top{display:flex;justify-content:space-between;align-items:center}.gw-stat-icon{width:40px;height:40px;border-radius:12px;background:#eef2ff;color:var(--gw-primary);display:grid;place-items:center}.gw-stat-label{font-size:11px;color:var(--gw-muted);font-weight:700}.gw-stat-value{font-size:25px;font-weight:900;letter-spacing:-.04em;margin-top:8px}.gw-stat-meta{font-size:10px;color:#64748b;margin-top:5px}.positive{color:#059669}.warning{color:#d97706}.danger{color:#dc2626}
.gw-content-grid{display:grid;grid-template-columns:minmax(0,1.7fr) minmax(300px,.9fr);gap:20px;margin-bottom:20px}.gw-panel{background:#fff;border:1px solid var(--gw-border);border-radius:var(--gw-radius);box-shadow:0 2px 8px rgba(15,23,42,.025);overflow:hidden}.gw-panel-head{padding:17px 20px;border-bottom:1px solid #f1f5f9;display:flex;justify-content:space-between;align-items:center}.gw-panel-head h2{font-size:14px;margin:0;font-weight:850}.gw-panel-head span{font-size:10px;color:var(--gw-muted)}
.gw-overview-body{padding:20px}.gw-chart-wrap{height:220px;position:relative}.gw-chart-wrap svg{width:100%;height:100%}.gw-chart-labels{display:flex;justify-content:space-between;color:#94a3b8;font-size:9px;margin-top:-5px}
.gw-module-summary{display:grid;grid-template-columns:repeat(2,1fr);gap:10px;margin-top:18px}.gw-summary-item{padding:12px;border:1px solid #eef2f7;border-radius:12px;background:#fafbff}.gw-summary-item strong{font-size:12px;display:block}.gw-summary-item span{font-size:10px;color:var(--gw-muted)}
.gw-actions{padding:12px}.gw-action{display:flex;align-items:center;gap:11px;padding:11px;border-radius:12px;cursor:pointer;border:0;background:transparent;width:100%;text-align:left}.gw-action:hover{background:#f8fafc}.gw-action-icon{width:34px;height:34px;border-radius:10px;background:#eef2ff;color:var(--gw-primary);display:grid;place-items:center}.gw-action strong{font-size:11px;display:block}.gw-action span{font-size:9px;color:var(--gw-muted)}
.gw-activity-table{width:100%;border-collapse:collapse}.gw-activity-table th,.gw-activity-table td{padding:13px 18px;text-align:left;border-bottom:1px solid #f1f5f9;font-size:11px}.gw-activity-table th{font-size:9px;text-transform:uppercase;letter-spacing:.08em;color:#94a3b8;background:#fafbfc}.gw-activity-table tr:last-child td{border-bottom:0}.status{display:inline-flex;padding:4px 8px;border-radius:20px;font-size:9px;font-weight:800}.status.success{background:#ecfdf5;color:#047857}.status.warning{background:#fffbeb;color:#b45309}.status.info{background:#eff6ff;color:#1d4ed8}.status.danger{background:#fef2f2;color:#b91c1c}
.gw-module-dashboard{padding:4px 0}.gw-module-dashboard .module-icon{width:52px;height:52px;border-radius:16px;background:#eef2ff;color:var(--gw-primary);display:grid;place-items:center;margin-bottom:12px}.gw-module-dashboard .module-icon .material-symbols-outlined{font-size:28px}.gw-module-dashboard h1{margin:0;font-size:30px;letter-spacing:-.04em}.gw-module-dashboard p{color:var(--gw-muted);font-size:12px;line-height:1.7;max-width:800px}.gw-submodule-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin-top:20px}.gw-sub-card{background:#fff;border:1px solid var(--gw-border);border-radius:17px;padding:16px;cursor:pointer;transition:.18s}.gw-sub-card:hover{transform:translateY(-3px);border-color:#c7d2fe;box-shadow:0 10px 24px rgba(79,70,229,.08)}.gw-sub-card .mini-icon{width:35px;height:35px;border-radius:10px;background:#f1f5f9;display:grid;place-items:center;color:#475569}.gw-sub-card strong{display:block;font-size:12px;margin-top:11px;line-height:1.4}.gw-sub-card span{display:block;color:var(--gw-muted);font-size:9px;margin-top:5px}.gw-sub-card .arrow{float:right;margin-top:-28px;color:#94a3b8}.gw-kpi-strip{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;margin-top:20px}.gw-kpi{padding:14px;background:#fff;border:1px solid var(--gw-border);border-radius:14px}.gw-kpi small{color:#94a3b8;font-size:9px}.gw-kpi strong{display:block;font-size:18px;margin-top:4px}
.gw-empty{padding:45px 20px;text-align:center;color:var(--gw-muted)}.gw-empty .material-symbols-outlined{font-size:40px;color:#cbd5e1}.gw-empty strong{display:block;color:#475569;margin-top:8px}
.gw-modal-backdrop{position:fixed;inset:0;background:rgba(15,23,42,.45);backdrop-filter:blur(4px);z-index:100;display:grid;place-items:center;padding:20px}.gw-modal{background:#fff;border-radius:20px;width:min(680px,100%);box-shadow:0 25px 80px rgba(15,23,42,.25);overflow:hidden}.gw-modal-head{padding:18px 20px;border-bottom:1px solid #eef2f7;display:flex;justify-content:space-between}.gw-modal-head strong{font-size:14px}.gw-modal-body{padding:20px}.gw-modal-close{border:0;background:#f8fafc;border-radius:9px;width:32px;height:32px;cursor:pointer}
@media(max-width:1100px){.gw-stats{grid-template-columns:repeat(2,1fr)}.gw-submodule-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:820px){.gw-sidebar{transform:translateX(-100%)}.gw-sidebar.open{transform:translateX(0)}.gw-shell{margin-left:0}.gw-topbar{padding:0 15px}.gw-user-copy,.gw-user> .material-symbols-outlined{display:none}.gw-main{padding:20px 15px 40px}.gw-content-grid{grid-template-columns:1fr}.gw-hero{align-items:flex-start;flex-direction:column}.gw-kpi-strip{grid-template-columns:1fr}.gw-submodule-grid{grid-template-columns:1fr}#sidebar-backdrop.show{display:block;position:fixed;inset:0;background:rgba(15,23,42,.4);z-index:55}}
@media(max-width:560px){.gw-stats{grid-template-columns:1fr}.gw-topbar-title{max-width:220px}.gw-topbar-title .eyebrow{display:none}.gw-topbar-title strong{font-size:11px}.gw-hero h1{font-size:25px}.gw-activity-table{min-width:650px}.gw-panel:has(.gw-activity-table){overflow-x:auto}}


/* Great Solomon Manpower Services Inc. backend additions */
.page-shell{max-width:1450px;margin:0 auto;padding:28px 30px 60px}.module-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}.record-form{background:#fff;border:1px solid var(--gw-border);border-radius:18px;padding:18px;margin-bottom:20px}.record-form .form-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px}.record-form label{font-size:11px;font-weight:800;color:#475569;display:block;margin-bottom:6px}.record-form input,.record-form select,.record-form textarea{width:100%;border:1px solid #dbe2ea;border-radius:10px;padding:10px 11px;font:inherit;font-size:12px;background:#fff}.record-form textarea{min-height:90px;resize:vertical}.record-form .full{grid-column:1/-1}.record-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:14px}.table-wrap{overflow:auto;background:#fff;border:1px solid var(--gw-border);border-radius:18px}.data-table{width:100%;border-collapse:collapse;min-width:760px}.data-table th,.data-table td{padding:12px 14px;border-bottom:1px solid #eef2f7;text-align:left;font-size:11px}.data-table th{background:#f8fafc;color:#64748b;font-size:9px;text-transform:uppercase;letter-spacing:.08em}.data-table tr:last-child td{border-bottom:0}.notice{padding:12px 14px;border-radius:12px;margin-bottom:14px;font-size:12px}.notice.success{background:#ecfdf5;color:#047857}.notice.error{background:#fef2f2;color:#b91c1c}.top-actions{display:flex;gap:8px;flex-wrap:wrap}.btn-danger{background:#fef2f2!important;color:#b91c1c!important;border:1px solid #fecaca!important}.login-page{min-height:100vh;display:grid;place-items:center;padding:20px;background:#f8fafc}.login-card{width:min(440px,100%);background:#fff;border:1px solid #e2e8f0;border-radius:22px;padding:30px;box-shadow:0 20px 60px rgba(15,23,42,.08)}.login-card h1{margin:0 0 8px;font-size:28px}.login-card p{color:#64748b;font-size:13px;line-height:1.6}.login-card .field{margin:16px 0}.login-card label{display:block;font-size:11px;font-weight:800;margin-bottom:6px}.login-card input{width:100%;padding:12px;border:1px solid #dbe2ea;border-radius:10px}.brand-mark{display:flex;align-items:center;gap:10px;margin-bottom:24px}.brand-mark .gw-brand-icon{flex:none}.module-link{color:inherit;text-decoration:none}.module-link:hover{text-decoration:none}.small-muted{font-size:10px;color:#94a3b8}.logout{margin-left:auto}.empty{padding:30px;text-align:center;color:#94a3b8}@media(max-width:1000px){.module-grid{grid-template-columns:repeat(2,1fr)}.record-form .form-grid{grid-template-columns:repeat(2,1fr)}}@media(max-width:700px){.page-shell{padding:20px 15px 40px}.module-grid{grid-template-columns:1fr}.record-form .form-grid{grid-template-columns:1fr}.record-form .full{grid-column:auto}}

/* ==========================================================================
   GREAT SOLOMON MANPOWER SERVICES INC. CLEAN MODULE REDESIGN — BLUE-VIOLET SIDEBAR
   Keeps all existing functions/data while improving hierarchy and usability.
   ========================================================================== */
:root{
  --gw-sidebar-start:#312e81;
  --gw-sidebar-mid:#4c1d95;
  --gw-sidebar-end:#6d28d9;
  --gw-sidebar-accent:#a78bfa;
  --gw-sidebar-active:rgba(255,255,255,.16);
  --gw-sidebar-hover:rgba(255,255,255,.09);
  --gw-panel-shadow:0 8px 28px rgba(30,27,75,.06);
}
.gw-sidebar{
  background:linear-gradient(180deg,var(--gw-sidebar-start) 0%,var(--gw-sidebar-mid) 58%,var(--gw-sidebar-end) 100%);
  border-right:0;
  box-shadow:8px 0 30px rgba(49,46,129,.16);
}
.gw-brand{border-bottom:1px solid rgba(255,255,255,.13);padding:22px 20px}
.gw-brand-icon{background:rgba(255,255,255,.14);color:#fff;border:1px solid rgba(255,255,255,.12)}
.gw-brand-title{color:#fff}.gw-brand-subtitle{color:#ddd6fe}
.gw-sidebar-section{color:#c4b5fd;padding:22px 20px 9px}
.gw-nav{padding:0 11px 18px;gap:7px}
.gw-nav button{
  color:#ede9fe;border:1px solid transparent;border-radius:13px;padding:12px 11px;
}
.gw-nav button:hover{background:var(--gw-sidebar-hover);color:#fff;border-color:rgba(255,255,255,.08)}
.gw-nav button.active{
  background:var(--gw-sidebar-active);color:#fff;border-color:rgba(255,255,255,.18);
  box-shadow:inset 3px 0 0 #c4b5fd,0 7px 18px rgba(0,0,0,.08);
}
.gw-nav .nav-number,.gw-nav button.active .nav-number{
  background:rgba(255,255,255,.13);color:#fff;
}
.gw-sidebar-footer{
  border:1px solid rgba(255,255,255,.13);background:rgba(255,255,255,.09);color:#fff;
}
.gw-sidebar-footer span{color:#ddd6fe}
.gw-status-dot{box-shadow:0 0 0 4px rgba(167,139,250,.2)}
.gw-shell{background:#f7f7fb}
.gw-main{padding:26px 30px 54px}
.gw-hero{
  position:relative;background:linear-gradient(135deg,#fff 0%,#faf9ff 100%);
  border:1px solid #e9e7f5;border-radius:20px;padding:25px 27px;margin-bottom:20px;
  box-shadow:var(--gw-panel-shadow);
}
.gw-hero:after{content:"";position:absolute;left:0;top:0;bottom:0;width:4px;background:linear-gradient(180deg,#7c3aed,#4f46e5);border-radius:20px 0 0 20px}
.gw-hero h1{font-size:30px}
.gw-stats{gap:14px}
.gw-stat,.gw-panel,.record-form{
  border-color:#e7e5f0;box-shadow:var(--gw-panel-shadow);border-radius:17px;
}
.gw-stat{padding:17px}
.gw-stat:hover{transform:translateY(-2px);box-shadow:0 12px 30px rgba(49,46,129,.08);transition:.2s ease}
.gw-stat-icon,.mini-icon{background:#f0eaff;color:#6d28d9}
.gw-panel-head{padding-bottom:13px}
.gw-panel-head h2{font-size:15px}
.gw-panel-head span{background:#f5f3ff;color:#6d28d9;border-radius:999px;padding:5px 9px;font-size:9px;font-weight:800}
.record-form{padding:20px}
.record-form input:focus,.record-form select:focus,.record-form textarea:focus{
  border-color:#8b5cf6;box-shadow:0 0 0 3px rgba(139,92,246,.12)
}
.gw-btn.primary{background:linear-gradient(135deg,#6d28d9,#4f46e5)}
.module-link .gw-sub-card{
  border:1px solid #e8e5f2;background:#fff;border-radius:16px;box-shadow:none;
}
.module-link .gw-sub-card:hover{
  border-color:#c4b5fd;box-shadow:0 12px 25px rgba(76,29,149,.08);transform:translateY(-2px)
}
.data-table th{background:#f7f5ff;color:#6b5ca5}
.data-table tr:hover td{background:#fbfaff}
.data-table td{vertical-align:middle}
.gw-quick-actions{
  display:flex;gap:9px;flex-wrap:wrap;margin:-6px 0 20px;
}
.gw-quick-actions a{background:#fff;border:1px solid #e8e5f2;border-radius:11px;padding:9px 12px;font-size:11px;font-weight:800;color:#4b5563}
.gw-quick-actions a:hover{color:#6d28d9;border-color:#c4b5fd;background:#faf8ff}
.gw-section-label{
  display:flex;align-items:center;gap:9px;margin:24px 0 11px;color:#475569;font-size:11px;font-weight:900;text-transform:uppercase;letter-spacing:.1em
}
.gw-section-label:before{content:"";width:4px;height:17px;border-radius:4px;background:#7c3aed}
@media(max-width:900px){
  .gw-sidebar{width:250px}.gw-shell{margin-left:250px}.gw-main{padding:20px}
  .gw-stats{grid-template-columns:repeat(2,1fr)}
}
@media(max-width:640px){
  .gw-sidebar{transform:translateX(-100%)}.gw-sidebar.open{transform:translateX(0)}.gw-shell{margin-left:0}
  .gw-main{padding:15px}.gw-stats{grid-template-columns:1fr}.gw-hero{padding:20px}
}


/* ==========================================================================
   GREAT SOLOMON MANPOWER SERVICES INC. AUTHENTICATION — BLUE-VIOLET CENTERED THEME
   ========================================================================== */
.auth-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 15%, rgba(139,92,246,.18), transparent 32%),
    radial-gradient(circle at 80% 85%, rgba(79,70,229,.16), transparent 34%),
    linear-gradient(135deg, #f8f5ff 0%, #eee8ff 48%, #f7f5ff 100%);
}
.auth-body .login-page {
  min-height: 100vh;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px 18px;
}
.auth-card {
  width: min(460px, 100%);
  padding: 34px;
  border: 1px solid #ddd6fe;
  border-radius: 24px;
  background: rgba(255,255,255,.96);
  box-shadow: 0 24px 70px rgba(76,29,149,.16);
  backdrop-filter: blur(10px);
}
.auth-brand {
  justify-content: center;
  margin-bottom: 26px;
}
.auth-icon {
  background: linear-gradient(135deg,#6d28d9,#4f46e5) !important;
  box-shadow: 0 10px 25px rgba(109,40,217,.25);
}
.auth-heading {
  text-align: center;
  margin-bottom: 24px;
}
.auth-heading > .material-symbols-outlined {
  font-size: 42px;
  color: #6d28d9;
  margin-bottom: 10px;
}
.auth-heading h1 {
  font-size: 29px;
  color: #312e81;
  margin-bottom: 7px;
}
.auth-heading p {
  color: #6b6680;
  font-size: 14px;
  line-height: 1.6;
}
.auth-form .field {
  margin-bottom: 18px;
}
.auth-form .field label {
  color: #43386b;
  font-weight: 700;
  margin-bottom: 8px;
}
.auth-form .field input {
  width: 100%;
  border: 1px solid #d8d0ef;
  border-radius: 12px;
  background: #fcfbff;
  padding: 13px 14px;
  transition: .2s ease;
}
.auth-form .field input:focus {
  border-color: #7c3aed;
  box-shadow: 0 0 0 4px rgba(124,58,237,.12);
  background: #fff;
}
.auth-submit {
  min-height: 48px;
  border-radius: 12px;
  background: linear-gradient(135deg,#7c3aed,#4f46e5) !important;
  box-shadow: 0 10px 22px rgba(109,40,217,.22);
  font-weight: 800;
}
.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 13px 25px rgba(109,40,217,.28);
}
.auth-error {
  margin-bottom: 18px;
  border-radius: 12px;
}
.auth-security-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #756b8d;
  font-size: 12px;
  margin-top: 20px;
  text-align: center;
}
.auth-security-note .material-symbols-outlined {
  font-size: 17px;
  color: #7c3aed;
}
.otp-card {
  width: min(500px, 100%);
}
.otp-input {
  text-align: center !important;
  letter-spacing: 12px;
  font-size: 28px !important;
  font-weight: 800;
  color: #5b21b6;
  padding: 15px 12px !important;
}
.otp-input::placeholder {
  color: #c4b5fd;
  letter-spacing: 10px;
}
.resend-form {
  text-align: center;
  margin-top: 16px;
}
.auth-link {
  color: #6d28d9;
  font-weight: 700;
  font-size: 13px;
  background: transparent;
  border: 0;
  cursor: pointer;
}
.auth-link:hover {
  color: #4f46e5;
  text-decoration: underline;
}
.auth-link.secondary {
  display: block;
  text-align: center;
  margin-top: 10px;
}


/* Logo2 branding update: login, OTP and dashboard */
.brand-logo-white {
  background:#fff;
  border:1px solid rgba(226,232,240,.95);
  border-radius:12px;
  display:flex;
  align-items:center;
  justify-content:center;
  flex:0 0 auto;
  overflow:hidden;
  box-shadow:0 5px 15px rgba(15,23,42,.12);
}
.brand-logo-image {
  width:100%;
  height:100%;
  object-fit:contain;
  display:block;
}
.auth-brand {
  justify-content:flex-start;
  gap:13px;
}
.auth-logo-wrap {
  width:64px;
  height:64px;
  padding:5px;
}
.auth-brand-copy {
  min-width:0;
}
.auth-brand-copy strong {
  display:block;
  font-size:15px;
  line-height:1.25;
  color:#312e81;
}
.sidebar-logo-wrap {
  width:52px;
  height:52px;
  padding:4px;
  border-radius:13px;
}
.gw-brand-copy {
  min-width:0;
  flex:1;
}
.gw-brand-title {
  font-size:14px !important;
  line-height:1.2;
  letter-spacing:-.02em;
}
.dashboard-title-brand {
  display:flex;
  align-items:center;
  gap:14px;
}
.dashboard-logo-wrap {
  width:66px;
  height:66px;
  padding:5px;
  border-radius:14px;
}
.gw-hero.dashboard-hero h1 {
  font-size:clamp(21px,2.25vw,28px);
  line-height:1.1;
  margin:0;
}
@media(max-width:560px) {
  .auth-logo-wrap {width:56px;height:56px;}
  .auth-brand-copy strong {font-size:13px;}
  .sidebar-logo-wrap {width:46px;height:46px;}
  .gw-brand-title {font-size:12px !important;}
  .dashboard-logo-wrap {width:54px;height:54px;}
  .dashboard-title-brand {gap:10px;}
  .gw-hero.dashboard-hero h1 {font-size:20px;}
}

/* Power BI compact dashboard */
/* User menu, feedback and date filters */
.user-menu-wrap{position:relative}
.gw-user-button{display:flex;align-items:center;gap:10px;border:0;background:transparent;padding:4px 7px;border-radius:12px;cursor:pointer;text-align:left}
.gw-user-button:hover{background:#f8fafc}
.user-chevron{font-size:18px;color:#64748b}
.user-dropdown{display:none;position:absolute;right:0;top:calc(100% + 8px);min-width:210px;background:#fff;border:1px solid #e2e8f0;border-radius:14px;box-shadow:0 18px 45px rgba(15,23,42,.16);padding:7px;z-index:80}
.user-dropdown.open{display:block}
.user-dropdown button,.user-dropdown a{width:100%;display:flex;align-items:center;gap:9px;padding:10px 11px;border:0;background:#fff;color:#334155;text-decoration:none;border-radius:9px;font:inherit;font-size:12px;cursor:pointer;text-align:left}
.user-dropdown button:hover,.user-dropdown a:hover{background:#f8fafc;color:#4f46e5}
.user-dropdown .material-symbols-outlined{font-size:18px}
.date-filter{display:flex;align-items:center;gap:8px}
.date-filter input{height:36px;border:1px solid var(--gw-border);border-radius:9px;padding:0 9px;font-size:12px;background:#fff}
.date-filter button,.date-filter a{height:36px;display:inline-flex;align-items:center;gap:5px;padding:0 10px;border-radius:9px;text-decoration:none;font-size:12px;font-weight:700}

.status-badge{display:inline-flex;padding:5px 9px;border-radius:999px;font-size:10px;font-weight:800}
.status-badge.returned{background:#dcfce7;color:#166534}
.status-badge.not-returned{background:#fef3c7;color:#92400e}

/* User edit and feedback modal form improvements */
.edit-user-fields { grid-template-columns: 1fr; gap: 14px; }
.edit-user-fields .full { grid-column: 1 / -1; }
.edit-user-fields label { display:block; margin-bottom:6px; font-weight:700; color:var(--text-main); }
.edit-user-input { width:100%; box-sizing:border-box; min-height:44px; padding:11px 13px; border:1px solid var(--outline-variant); border-radius:10px; background:#fff; color:var(--text-main); }
.edit-user-input:focus { outline:none; border-color:var(--primary); box-shadow:0 0 0 3px rgba(109,40,217,.12); }
.gw-modal { width:min(560px, calc(100vw - 32px)); max-height:90vh; overflow:auto; }

/* ==========================================================================
   CT4 GEMINI AI ASSISTANT
   ========================================================================== */
.ai-hero{display:flex;justify-content:space-between;align-items:center;gap:24px}
.ai-hero-badge{display:flex;align-items:center;gap:8px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.24);color:#fff;padding:10px 14px;border-radius:999px;font-size:13px;font-weight:700;white-space:nowrap}
.ai-chat-shell{background:var(--bg-surface);border:1px solid var(--outline-variant);border-radius:var(--radius-xl);box-shadow:var(--shadow-lg);overflow:hidden;display:flex;flex-direction:column;min-height:650px}
.ai-chat-head{display:flex;justify-content:space-between;align-items:center;padding:18px 20px;border-bottom:1px solid var(--outline-variant);background:linear-gradient(180deg,#fff,#f8f7ff)}
.ai-chat-brand{display:flex;align-items:center;gap:12px}
.ai-chat-brand>div:last-child{display:flex;flex-direction:column}
.ai-chat-brand strong{font-size:15px}
.ai-chat-brand span:not(.material-symbols-outlined){font-size:12px;color:var(--text-muted);margin-top:2px}
.ai-avatar,.ai-msg-icon{width:38px;height:38px;border-radius:12px;background:var(--primary);color:#fff;display:grid;place-items:center;flex:0 0 auto}
.ai-messages{padding:22px;display:flex;flex-direction:column;gap:16px;overflow:auto;flex:1;min-height:390px;max-height:58vh;background:var(--bg-main)}
.ai-message{display:flex;gap:10px;align-items:flex-start;max-width:82%;font-size:14px}
.ai-message>div:not(.ai-msg-icon){background:#fff;border:1px solid var(--outline-variant);border-radius:4px 16px 16px 16px;padding:11px 14px;box-shadow:var(--shadow-sm)}
.ai-message strong{font-size:11px;color:var(--primary);display:block;margin-bottom:4px}
.ai-message p{margin:0;line-height:1.65;color:var(--text-main);overflow-wrap:anywhere}
.ai-message.user{align-self:flex-end;justify-content:flex-end}
.ai-message.user .ai-message-content{background:var(--primary);color:#fff;border-radius:16px 4px 16px 16px;padding:11px 14px;box-shadow:var(--shadow-sm)}
.ai-message.user .ai-message-content strong,.ai-message.user p{color:#fff}
.ai-suggestions{display:flex;gap:8px;flex-wrap:wrap;padding:12px 20px;border-top:1px solid var(--outline-variant);background:#fff}
.ai-suggestions button{border:1px solid var(--outline-variant);border-radius:999px;padding:8px 11px;background:var(--bg-surface);font-size:12px;color:var(--text-muted);cursor:pointer;transition:.15s}
.ai-suggestions button:hover{border-color:var(--primary);color:var(--primary);background:var(--primary-light)}
.ai-input-row{display:flex;gap:10px;align-items:flex-end;padding:14px 20px;background:#fff;border-top:1px solid var(--outline-variant)}
.ai-input-row textarea{resize:none;width:100%;min-height:46px;max-height:150px;padding:12px 14px;border:1px solid var(--outline-variant);border-radius:14px;background:var(--bg-main);line-height:1.45}
.ai-input-row textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(79,70,229,.12)}
.ai-send{width:46px;height:46px;border-radius:14px;background:var(--primary);color:#fff;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.ai-send:hover{background:var(--primary-hover)}
.ai-send:disabled{opacity:.6;cursor:not-allowed}
.ai-disclaimer{display:flex;align-items:center;gap:7px;padding:9px 20px 13px;color:var(--text-dim);font-size:11px;background:#fff}
.ai-disclaimer .material-symbols-outlined{font-size:16px}
.ai-thinking .ai-dots{animation:aiPulse 1.2s infinite}
@keyframes aiPulse{0%,100%{opacity:.35}50%{opacity:1}}
@media(max-width:700px){.ai-hero{flex-direction:column;align-items:flex-start}.ai-message{max-width:95%}.ai-messages{max-height:55vh;padding:14px}.ai-input-row,.ai-suggestions,.ai-chat-head{padding-left:12px;padding-right:12px}.ai-suggestions{overflow:auto;flex-wrap:nowrap}.ai-suggestions button{white-space:nowrap}}


/* ==========================================================================
   CT4 AI Assistant — organized workspace redesign
   ========================================================================== */
.ai-workspace{display:grid;grid-template-columns:250px minmax(0,1fr);gap:18px;align-items:stretch;margin-bottom:28px}
.ai-info-panel{background:linear-gradient(180deg,#11182f,#0b1225);color:#fff;border-radius:var(--radius-xl);padding:22px;border:1px solid rgba(148,163,184,.16);box-shadow:var(--shadow-lg)}
.ai-info-icon{width:48px;height:48px;border-radius:14px;background:rgba(124,58,237,.25);display:grid;place-items:center;color:#ddd6fe;margin-bottom:15px}
.ai-info-panel h2{font-size:19px;color:#fff;margin-bottom:6px}
.ai-info-copy{font-size:12px;line-height:1.65;color:#cbd5e1;margin-bottom:22px}
.ai-info-section{border-top:1px solid rgba(255,255,255,.1);padding-top:17px}
.ai-section-label{text-transform:uppercase;letter-spacing:.12em;font-size:10px;font-weight:800;color:#a5b4fc;margin-bottom:10px}
.ai-topic{display:flex;align-items:center;gap:9px;padding:9px 0;color:#e2e8f0;font-size:12px}
.ai-topic .material-symbols-outlined{font-size:18px;color:#a78bfa}
.ai-security-card{display:flex;gap:9px;margin-top:18px;padding:12px;border-radius:12px;background:rgba(255,255,255,.06);border:1px solid rgba(255,255,255,.08)}
.ai-security-card>.material-symbols-outlined{font-size:18px;color:#86efac;flex:0 0 auto}
.ai-security-card strong{font-size:11px;color:#fff}
.ai-security-card p{font-size:10px;line-height:1.5;color:#cbd5e1;margin-top:3px}
.ai-chat-shell{min-width:0;min-height:680px}
.ai-chat-head{padding:15px 18px}
.ai-avatar{width:40px;height:40px;border-radius:12px}
.ai-online-dot{display:inline-block;width:7px;height:7px;border-radius:50%;background:#22c55e;margin-right:5px;vertical-align:middle}
.ai-messages{min-height:400px;padding:24px;gap:18px;background:#f7f7fc}
.ai-message{max-width:78%;animation:aiMessageIn .18s ease-out}
@keyframes aiMessageIn{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}
.ai-message.user .ai-message-content{padding:12px 15px}
.ai-message>div:not(.ai-msg-icon){padding:12px 15px}
.ai-suggestions{padding:13px 18px 10px;display:block}
.ai-suggestions-label{font-size:10px;font-weight:800;text-transform:uppercase;letter-spacing:.1em;color:var(--text-dim);margin-bottom:8px}
.ai-suggestion-list{display:flex;gap:8px;flex-wrap:wrap}
.ai-suggestion-list button{display:inline-flex;align-items:center;gap:6px;border-radius:10px;padding:8px 10px}
.ai-suggestion-list .material-symbols-outlined{font-size:16px}
.ai-input-row{padding:12px 18px 7px}
.ai-input-wrap{position:relative;flex:1}
.ai-input-row textarea{padding:12px 14px 25px;min-height:52px}
.ai-input-hint{position:absolute;right:12px;bottom:7px;font-size:9px;color:#94a3b8;pointer-events:none}
.ai-disclaimer{padding:8px 18px 13px}
@media(max-width:900px){.ai-workspace{grid-template-columns:1fr}.ai-info-panel{display:none}}
@media(max-width:700px){.ai-message{max-width:94%}.ai-messages{padding:14px}.ai-suggestion-list{overflow:auto;flex-wrap:nowrap}.ai-suggestion-list button{white-space:nowrap}.ai-input-hint{display:none}}


/* Reports, Analysis & Dashboard — Chart.js panels */
.gw-chart-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:20px}
.gw-dashboard-chart-panel{min-width:0}
.gw-chart-wrap-large{height:280px;padding:4px 2px 2px}
.gw-chart-wrap-large canvas{width:100%!important;height:100%!important}
@media (max-width:900px){.gw-chart-grid{grid-template-columns:1fr}.gw-chart-wrap-large{height:260px}}

/* Friendly feedback and terms modals */
.feedback-modal,.terms-modal{width:min(680px,calc(100vw - 28px));}
.gw-modal-head>div{display:flex;flex-direction:column;gap:3px;min-width:0}
.gw-modal-head small{font-size:11px;font-weight:500;color:var(--text-muted);line-height:1.45}
.feedback-intro{display:flex;gap:12px;align-items:flex-start;padding:13px 14px;margin-bottom:18px;border:1px solid #e0e7ff;background:#f7f8ff;border-radius:12px;color:#334155}
.feedback-intro>.material-symbols-outlined{color:var(--primary);font-size:22px}
.feedback-intro strong{font-size:12px}.feedback-intro p{margin:3px 0 0;font-size:11px;line-height:1.55;color:var(--text-muted)}
.feedback-account-grid{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin-bottom:16px}
.feedback-readonly-field label,.feedback-message-field label{display:block;margin-bottom:7px;font-size:12px;font-weight:800;color:var(--text-main)}
.feedback-readonly-value{min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px;padding:10px 12px;border:1px solid var(--outline-variant);border-radius:10px;background:#f8fafc;color:#334155;font-size:13px;font-weight:700}
.feedback-readonly-value .material-symbols-outlined{font-size:18px;color:var(--primary)}
.feedback-message-field textarea{width:100%;box-sizing:border-box;resize:vertical;min-height:150px;padding:12px 13px;border:1px solid var(--outline-variant);border-radius:11px;background:#fff;color:var(--text-main);font:inherit;font-size:13px;line-height:1.6}
.feedback-message-field textarea:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px rgba(109,40,217,.12)}
.feedback-helper{margin-top:6px;color:var(--text-dim);font-size:10px}
.terms-body{max-height:65vh;overflow:auto}.terms-body p{margin:0 0 15px;color:#475569;font-size:12px;line-height:1.75}.terms-note{display:flex;gap:9px;align-items:flex-start;padding:12px 13px;background:#f8fafc;border:1px solid var(--outline-variant);border-radius:10px;color:#475569;font-size:11px;line-height:1.55}.terms-note .material-symbols-outlined{color:var(--primary);font-size:19px}
@media(max-width:600px){.feedback-account-grid{grid-template-columns:1fr}.feedback-modal,.terms-modal{width:calc(100vw - 20px)}}

/* Staff feedback notification center */
.notification-badge{display:inline-flex;align-items:center;justify-content:center;min-width:20px;height:20px;padding:0 6px;margin-left:auto;border-radius:999px;background:#ef4444;color:#fff;font-size:11px;font-weight:800}
.notifications-modal{width:min(760px,calc(100vw - 32px));max-height:min(760px,calc(100vh - 48px))}
.notification-list{display:flex;flex-direction:column;gap:12px;max-height:520px;overflow:auto;padding:2px}
.notification-card{padding:16px;border:1px solid #e2e8f0;border-radius:14px;background:#fff;box-shadow:0 4px 16px rgba(15,23,42,.05)}
.notification-card.unread{border-left:4px solid #4f46e5;background:#f8faff}
.notification-card-head{display:flex;justify-content:space-between;gap:16px;align-items:flex-start;margin-bottom:9px}
.notification-card-head strong{display:block;color:#0f172a;font-size:14px}
.notification-card-head span{display:block;margin-top:4px;color:#64748b;font-size:12px}
.notification-card-head small{color:#94a3b8;font-size:11px;white-space:nowrap}
.notification-card p{margin:0;color:#334155;font-size:13px;line-height:1.65;white-space:pre-wrap;word-break:break-word}
.notification-empty{text-align:center;padding:48px 20px;color:#64748b}
.notification-empty .material-symbols-outlined{font-size:46px;color:#94a3b8}
.notification-empty strong{display:block;margin-top:10px;color:#334155}
.notification-empty p{margin:6px 0 0;font-size:13px}
.feedback-sent-modal{width:min(430px,calc(100vw - 32px));text-align:center}
.feedback-sent-icon{padding-top:28px;color:#4f46e5}
.feedback-sent-icon .material-symbols-outlined{font-size:54px}
.feedback-sent-body{padding-top:10px}
.feedback-sent-body>strong{display:block;font-size:20px;color:#0f172a}
.feedback-sent-body>p{margin:8px auto 20px;color:#64748b;font-size:13px;line-height:1.6}
.feedback-sent-body .gw-btn{min-width:110px}

.dashboard-date-filter{display:flex;align-items:center;gap:8px;margin-left:auto;flex-wrap:wrap}
.dashboard-date-filter-label{display:flex;align-items:center;gap:6px;color:#334155;font-size:12px;font-weight:700;white-space:nowrap}
.dashboard-date-filter-label .material-symbols-outlined{font-size:18px;color:#4f46e5}
.dashboard-date-input-wrap{display:flex;align-items:center;gap:8px}
.dashboard-date-input-wrap input{height:36px;min-width:145px;border:1px solid var(--gw-border);border-radius:9px;padding:0 9px;background:#fff;color:#334155;font:inherit;font-size:12px;outline:none}
.dashboard-date-input-wrap input:focus{border-color:var(--primary);box-shadow:0 0 0 3px rgba(79,70,229,.10)}
.dashboard-date-input-wrap>.material-symbols-outlined{display:none}
.dashboard-date-filter .gw-btn{white-space:nowrap;display:inline-flex;align-items:center;gap:5px}
.dashboard-date-filter .gw-btn .material-symbols-outlined{font-size:16px}
@media(max-width:640px){.dashboard-date-filter{width:100%;margin-left:0}.dashboard-date-input-wrap{flex:1}.dashboard-date-input-wrap input{width:100%}}


/* CT4 additions: Data Storage, theme switch, confirmations and inactivity timer */
.theme-toggle-row{display:flex!important;align-items:center;gap:10px!important;width:100%;text-align:left;background:transparent;border:0;color:inherit;cursor:pointer}
.theme-switch{margin-left:auto;width:38px;height:21px;border-radius:999px;background:#cbd5e1;padding:3px;display:inline-flex;align-items:center;transition:.2s}
.theme-switch span{display:block;width:15px;height:15px;border-radius:50%;background:#fff;transition:.2s;box-shadow:0 1px 2px rgba(0,0,0,.2)}
.theme-switch.on{background:#4f46e5}
.theme-switch.on span{transform:translateX(17px)}
.terms-body{text-align:justify;text-justify:inter-word;text-transform:uppercase;line-height:1.75}
.terms-body .terms-note{text-transform:uppercase;text-align:justify}
.data-storage-modal{width:min(1100px,94vw);max-height:88vh}
.data-storage-toolbar{display:flex;justify-content:space-between;align-items:center;gap:18px;padding:14px;border:1px solid #e2e8f0;border-radius:14px;background:#f8fafc;margin-bottom:16px}
.data-storage-toolbar>div{display:flex;flex-direction:column;gap:4px}
.data-storage-toolbar>div span{font-size:12px;color:#64748b}
.data-storage-upload{display:flex;align-items:center;gap:8px;flex-wrap:wrap}
.data-storage-upload input[type=file]{max-width:230px}
.data-storage-upload input[type=text]{width:190px}
.data-storage-list{display:flex;flex-direction:column;gap:8px;max-height:55vh;overflow:auto;padding-right:3px}
.data-storage-item{width:100%;display:flex;align-items:center;gap:12px;text-align:left;border:1px solid #e2e8f0;background:#fff;border-radius:12px;padding:13px 14px;cursor:pointer;transition:.15s}
.data-storage-item:hover{transform:translateY(-1px);box-shadow:0 7px 18px rgba(15,23,42,.08)}
.data-storage-file-icon{width:40px;height:40px;border-radius:10px;display:grid;place-items:center;background:#eef2ff;color:#4f46e5}
.data-storage-file-main{display:flex;flex:1;flex-direction:column;gap:4px;min-width:0}
.data-storage-file-main strong{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.data-storage-file-main small{color:#64748b;font-size:11px}
.data-storage-loading{display:flex;justify-content:center;align-items:center;gap:8px;padding:40px;color:#64748b}
.data-file-viewer-modal{width:min(1050px,94vw);max-height:90vh}
.data-file-preview{height:55vh;border:1px solid #e2e8f0;border-radius:12px;overflow:hidden;background:#f8fafc}
.data-file-preview iframe{width:100%;height:100%;border:0}
.confirmation-modal{width:min(520px,92vw)}
.confirmation-icon{display:grid;place-items:center;width:60px;height:60px;margin:4px auto 14px;border-radius:50%;background:#eef2ff;color:#4f46e5}
.confirmation-text{text-align:center;font-weight:800;letter-spacing:.02em;font-size:15px;margin:0 auto 20px}
#inactivityTimer{position:fixed;right:18px;bottom:18px;z-index:9990;padding:8px 12px;border-radius:999px;background:#0f172a;color:#fff;font:700 11px/1 Inter,sans-serif;letter-spacing:.03em;box-shadow:0 8px 22px rgba(15,23,42,.18);pointer-events:none;opacity:0;visibility:hidden;transform:translateY(8px);transition:opacity .2s ease,visibility .2s ease,transform .2s ease}#inactivityTimer.visible{opacity:1;visibility:visible;transform:translateY(0)}
#inactivityTimer.warning{background:#b91c1c}
@media(max-width:800px){
 .data-storage-toolbar{align-items:stretch;flex-direction:column}
 .data-storage-upload{flex-direction:column;align-items:stretch}
 .data-storage-upload input[type=file],.data-storage-upload input[type=text]{width:100%;max-width:none}
 #inactivityTimer{right:10px;bottom:10px;font-size:10px}
}

/* Module navigation shortcuts */
.gw-quick-actions{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 20px}
.gw-quick-actions a{display:inline-flex;align-items:center;gap:6px;background:#fff;border:1px solid #e8e5f2;border-radius:11px;padding:9px 12px;font-size:11px;font-weight:800;color:#4b5563;text-decoration:none;box-shadow:0 2px 8px rgba(15,23,42,.025);transition:.18s ease}
.gw-quick-actions a:hover{color:#6d28d9;border-color:#c4b5fd;background:#faf8ff;transform:translateY(-1px)}
.gw-quick-actions .material-symbols-outlined{font-size:16px}
.module-top-button{position:fixed;right:24px;bottom:24px;width:46px;height:46px;border:1px solid #ddd6fe;border-radius:50%;background:#fff;color:#6d28d9;display:grid;place-items:center;box-shadow:0 10px 28px rgba(30,27,75,.15);cursor:pointer;z-index:60;opacity:0;visibility:hidden;transform:translateY(12px);transition:.2s ease}
.module-top-button.visible{opacity:1;visibility:visible;transform:translateY(0)}
.module-top-button:hover{background:#f5f3ff;transform:translateY(-2px)}
@media(max-width:560px){.module-top-button{right:15px;bottom:18px;width:42px;height:42px}.gw-quick-actions{gap:6px}.gw-quick-actions a{font-size:10px;padding:8px 10px}}

/* CT4: multi-file release picker and automatic refresh */
.selected-files-list{display:flex;flex-direction:column;gap:7px;margin-top:9px;max-width:100%}
.selected-file-note{padding:11px 13px;border:1px dashed #cbd5e1;border-radius:10px;background:#f8fafc;color:#64748b;font-size:11px}
.selected-file-chip{display:flex;align-items:center;gap:9px;padding:10px 11px;border:1px solid #dbe3ef;border-radius:10px;background:#f8fafc;min-width:0}
.selected-file-chip>.material-symbols-outlined{font-size:18px;color:#4f46e5}
.selected-file-chip-name{font-size:12px;font-weight:700;color:#334155;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:1}
.selected-file-chip button{width:28px;height:28px;border:0;border-radius:8px;background:#fff;color:#64748b;display:grid;place-items:center;cursor:pointer;flex:0 0 auto}
.selected-file-chip button:hover{background:#fee2e2;color:#b91c1c}
.selected-file-chip button .material-symbols-outlined{font-size:17px}
.selected-storage-item{border-color:#c7d2fe!important;background:#f5f7ff!important}
.notification-actions{display:flex;justify-content:flex-end;margin-top:12px;padding-top:10px;border-top:1px solid #eef2f7}
.feedback-reply-context{padding:13px 14px;border:1px solid #dbe3ef;border-radius:12px;background:#f8fafc;margin-bottom:15px}
.feedback-reply-context strong{display:block;font-size:12px;color:#334155;margin-bottom:6px}
.feedback-reply-context p{margin:0;color:#64748b;font-size:12px;line-height:1.6;white-space:pre-wrap}
.auto-refresh-status{position:fixed;right:18px;bottom:18px;z-index:9980;padding:7px 11px;border:1px solid #e2e8f0;border-radius:999px;background:rgba(255,255,255,.94);color:#64748b;font:700 10px/1 Inter,sans-serif;box-shadow:0 5px 16px rgba(15,23,42,.08);pointer-events:none}
