@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap');
@import url('https://cdn.jsdelivr.net/npm/bootstrap-icons@1.11.1/font/bootstrap-icons.css');

:root {
  --ab-navy: #0b1b33;
  --ab-ink: #0f172a;
  --ab-sky: #16a34a;
  --ab-sky-dark: #15803d;
  --ab-sky-light: #dcfce7;
  --ab-muted: #64748b;
  --ab-line: #e2e8f0;
  --ab-bg: #f1f5f9;
  --ab-surface: #ffffff;
  --ab-card: #ffffff;
  --ab-hover: #f8fafc;
  --ab-header-bg: #fafbfc;
  --ab-danger: #dc2626;
  --ab-warning: #d97706;
  --ab-success: #16a34a;
  --radius-sm: 8px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.05);
}

:root[data-theme="dark"] {
  --ab-navy: #0b1b33;
  --ab-ink: #f8fafc;
  --ab-sky: #22c55e;
  --ab-sky-dark: #16a34a;
  --ab-sky-light: #143826;
  --ab-muted: #94a3b8;
  --ab-line: #24334d;
  --ab-bg: #0b0f19;
  --ab-surface: #131b2e;
  --ab-card: #131b2e;
  --ab-hover: #1e293b;
  --ab-header-bg: #162238;
  --ab-danger: #f87171;
  --ab-warning: #fbbf24;
  --ab-success: #4ade80;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --ab-navy: #0b1b33;
    --ab-ink: #f8fafc;
    --ab-sky: #22c55e;
    --ab-sky-dark: #16a34a;
    --ab-sky-light: #143826;
    --ab-muted: #94a3b8;
    --ab-line: #24334d;
    --ab-bg: #0b0f19;
    --ab-surface: #131b2e;
    --ab-card: #131b2e;
    --ab-hover: #1e293b;
    --ab-header-bg: #162238;
    --ab-danger: #f87171;
    --ab-warning: #fbbf24;
    --ab-success: #4ade80;
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 14px rgba(0, 0, 0, 0.5);
  }
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--ab-bg);
  color: var(--ab-ink);
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   BRAND LOGO (Original Greenleaf leaf mark + typography)
   ========================================================================== */
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: inherit;
  padding: 18px 20px;
  border-bottom: 1px solid var(--ab-line);
}
.brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: var(--ab-sky);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(22, 163, 74, 0.28);
}
.brand-mark svg {
  width: 20px;
  height: 20px;
}
.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}
.brand-name {
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ab-ink);
}
.brand-accent {
  color: var(--ab-sky);
}
.brand-sub {
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ab-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  margin-top: 1px;
}

/* Dark version for Login Left Banner */
.brand-dark .brand-name { color: #ffffff; }
.brand-dark .brand-accent { color: #4ade80; }
.brand-dark .brand-sub { color: #94a3b8; }

/* ==========================================================================
   LOGIN / AUTH SPLIT LAYOUT (AeroBuild 2.0 style)
   ========================================================================== */
.login-split {
  display: flex;
  min-height: 100vh;
  width: 100%;
}
.login-left {
  flex: 0 0 54%;
  background: linear-gradient(150deg, #071224 0%, #0b1b33 45%, #0f2747 100%);
  color: #ffffff;
  padding: 56px 48px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.login-left::after {
  content: '';
  position: absolute;
  top: -20%;
  right: -10%;
  width: 480px;
  height: 480px;
  background: radial-gradient(circle, rgba(22, 163, 74, 0.18) 0%, transparent 70%);
  pointer-events: none;
}
.login-hero {
  max-width: 520px;
  position: relative;
  z-index: 1;
}
.login-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.03em;
  margin: 24px 0 12px;
  color: #ffffff;
}
.login-tagline {
  font-size: 1.05rem;
  color: #94a3b8;
  line-height: 1.5;
  margin-bottom: 36px;
}
.login-features {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 12px;
}
.login-feature {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.95rem;
  color: #e2e8f0;
}
.login-feature i {
  font-size: 1.25rem;
  color: #4ade80;
  width: 24px;
  text-align: center;
}
.login-footer-text {
  font-size: 0.78rem;
  color: #64748b;
  position: relative;
  z-index: 1;
}
.login-right {
  flex: 1;
  background: var(--ab-surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 32px;
}
.login-card {
  width: 100%;
  max-width: 400px;
}
.login-card-header {
  margin-bottom: 28px;
}
.login-card-header .brand {
  padding: 0;
  border-bottom: 0;
  margin-bottom: 20px;
}
.login-card-header h2 {
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 6px;
  color: var(--ab-ink);
}
.login-card-header p {
  color: var(--ab-muted);
  font-size: 0.9rem;
  margin: 0;
}
.input-wrap {
  position: relative;
  width: 100%;
}
.input-wrap > .input-icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  pointer-events: none;
  font-size: 16px;
}
.input-wrap .ab-input {
  padding-left: 38px;
  padding-right: 40px;
  border-radius: var(--radius-sm);
  font-size: 14px;
}
.input-wrap .pwd-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  cursor: pointer;
  padding: 6px 8px;
  font-size: 16px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.input-wrap .pwd-toggle:hover {
  color: var(--ab-ink);
}
.form-actions-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin: 8px 0 20px;
}
.forgot-link {
  font-size: 0.85rem;
  color: var(--ab-sky);
  text-decoration: none;
  font-weight: 600;
}
.forgot-link:hover {
  text-decoration: underline;
  color: var(--ab-sky-dark);
}
.auth-error-box {
  display: none;
  background: #fef2f2;
  border: 1px solid #fee2e2;
  color: var(--ab-danger);
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}
.auth-success-box {
  display: none;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  color: #166534;
  border-radius: var(--radius-sm);
  padding: 11px 14px;
  font-size: 0.875rem;
  font-weight: 500;
  margin-bottom: 18px;
  line-height: 1.4;
}
.btn-block {
  width: 100%;
  min-height: 42px;
  font-size: 0.95rem;
}
.login-support {
  margin-top: 24px;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ab-muted);
}
.login-support a {
  color: var(--ab-sky);
  text-decoration: none;
  font-weight: 600;
}

/* ==========================================================================
   SIDEBAR & SHELL (AeroBuild 2.0 style)
   ========================================================================== */
.ab-layout .side {
  width: 244px;
  background: var(--ab-surface);
  border-right: 1px solid var(--ab-line);
  display: flex;
  flex-direction: column;
  position: fixed;
  inset: 0 auto 0 0;
  height: 100dvh;
  z-index: 100;
}
.org-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  margin: 12px 14px 4px;
  background: var(--ab-hover);
  border: 1px solid var(--ab-line);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.org-chip i {
  color: var(--ab-sky);
  font-size: 14px;
  flex-shrink: 0;
}
.org-chip span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-layout .nav {
  padding: 12px 10px;
  flex: 1;
  overflow-y: auto;
}
.ab-layout .nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  margin-bottom: 3px;
  border-radius: 8px;
  color: var(--ab-ink);
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}
.ab-layout .nav a i {
  width: 20px;
  color: var(--ab-muted);
  font-size: 16px;
  text-align: center;
  transition: color 0.15s ease;
}
.ab-layout .nav a:hover {
  background: var(--ab-hover);
  color: var(--ab-ink);
}
.ab-layout .nav a:hover i {
  color: var(--ab-ink);
}
.ab-layout .nav a.active {
  background: var(--ab-sky-light);
  color: var(--ab-sky-dark);
  font-weight: 600;
}
.ab-layout .nav a.active i {
  color: var(--ab-sky);
}
.ab-layout .uchip {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-top: 1px solid var(--ab-line);
  position: relative;
  cursor: pointer;
  background: var(--ab-surface);
  user-select: none;
}
.ab-layout .uchip:hover {
  background: var(--ab-hover);
}
.ab-layout .av {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--ab-navy);
  color: #ffffff;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
.ab-layout .u-info {
  min-width: 0;
  flex: 1;
}
.ab-layout .nm {
  font-weight: 600;
  font-size: 13px;
  color: var(--ab-ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-layout .rl {
  font-size: 11px;
  color: var(--ab-muted);
  text-transform: capitalize;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ab-layout .uchip-menu {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 10px;
  right: 10px;
  padding: 6px;
  background: var(--ab-surface);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.2), 0 8px 10px -6px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--ab-line);
  border-radius: 10px;
  z-index: 1000;
}
.ab-layout .uchip-menu.open {
  display: block;
}
.ab-layout .uchip-menu a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  color: var(--ab-ink);
  transition: background 0.12s;
}
.ab-layout .uchip-menu a:hover {
  background: var(--ab-hover);
}
.ab-layout .uchip-menu a.logout-btn {
  color: var(--ab-danger);
  border-top: 1px solid var(--ab-line);
  margin-top: 4px;
  padding-top: 8px;
}
.ab-layout .uchip-menu a.logout-btn:hover {
  background: #fef2f2;
}

/* Backdrop for mobile sidebar */
.side-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(11, 27, 51, 0.45);
  z-index: 99;
  backdrop-filter: blur(2px);
}
.side-backdrop.open {
  display: block;
}

/* ==========================================================================
   PAGE LAYOUT & HEADER (AeroBuild 2.0 style)
   ========================================================================== */
.ab-layout .main {
  margin-left: 244px;
  min-width: 0;
  flex: 1;
  min-height: 100vh;
}
.ab-page {
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 32px 60px;
}
.ab-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
}
.ab-header h1 {
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.025em;
  margin: 0;
  color: var(--ab-ink);
}
.ab-header p {
  margin: 4px 0 0;
  color: var(--ab-muted);
  font-size: 14px;
}
.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  border-radius: 8px;
  font-size: 1.25rem;
  cursor: pointer;
  color: var(--ab-ink);
}

/* Cards & Grid */
.ab-card {
  background: var(--ab-card);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}
.grid-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-bottom: 24px;
}
.stat-card {
  background: var(--ab-card);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  padding: 20px 22px;
  box-shadow: var(--shadow-sm);
}
.stat-card .stat-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ab-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.stat-card .stat-value {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--ab-ink);
  letter-spacing: -0.02em;
  margin: 8px 0 4px;
}
.stat-card .stat-sub {
  font-size: 12.5px;
  color: var(--ab-muted);
}

/* Chips & Badges */
.ab-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
}
.chip-superadmin { background: #fef3c7; color: #92400e; }
.chip-project_admin { background: #dcfce7; color: #166534; }
.chip-secondary_pa { background: #e0f2fe; color: #0369a1; }
.chip-user { background: #f1f5f9; color: #334155; }
.chip-auditor { background: #f3e8ff; color: #6b21a8; }
.chip-active { background: #dcfce7; color: #15803d; }
.chip-inactive { background: #fee2e2; color: #b91c1c; }

.ab-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.4;
  background: var(--ab-surface-sunken, #f1f5f9);
  color: var(--ab-text, #334155);
}
.ab-badge-primary { background: #e0e7ff; color: #3730a3; }
.ab-badge-success { background: #dcfce7; color: #166534; }
.ab-badge-warning { background: #fef3c7; color: #92400e; }
.ab-badge-danger { background: #fee2e2; color: #991b1b; }
.ab-badge-secondary { background: #f1f5f9; color: #475569; }

/* Tables */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-md);
}
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13.5px;
  text-align: left;
}
th {
  background: var(--ab-header-bg);
  color: var(--ab-muted);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 12px 16px;
  border-bottom: 1px solid var(--ab-line);
}
td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ab-line);
  vertical-align: middle;
  color: var(--ab-ink);
}
tr:last-child td {
  border-bottom: none;
}
tr:hover td {
  background: var(--ab-hover);
}
td small {
  display: block;
  font-size: 12px;
  color: var(--ab-muted);
  margin-top: 2px;
}

/* Toolbar & Filters */
.toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

/* Switch / Toggle Component */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 22px;
  flex-shrink: 0;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  cursor: pointer;
  top: 0; left: 0; right: 0; bottom: 0;
  background-color: #cbd5e1;
  transition: 0.2s;
  border-radius: 22px;
}
.toggle-slider:before {
  position: absolute;
  content: "";
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.2s;
  border-radius: 50%;
}
.toggle-switch input:checked + .toggle-slider {
  background-color: var(--ab-sky);
}
.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(18px);
}

/* Empty States */
.ab-empty-state {
  text-align: center;
  padding: 60px 24px;
  color: var(--ab-muted);
}
.ab-empty-state i {
  font-size: 3rem;
  color: #94a3b8;
  margin-bottom: 16px;
  display: inline-block;
}
.ab-empty-state h3 {
  font-size: 1.18rem;
  font-weight: 700;
  color: var(--ab-ink);
  margin: 0 0 8px;
}
.ab-empty-state p {
  max-width: 460px;
  margin: 0 auto 20px;
  font-size: 14px;
  line-height: 1.5;
}

/* Forced Password Change Notice Banner */
.force-alert-card {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: var(--radius-md);
  padding: 16px 20px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 24px;
}
.force-alert-card i {
  font-size: 1.4rem;
  color: #d97706;
  margin-top: 2px;
  flex-shrink: 0;
}
.force-alert-card h3 {
  font-size: 0.98rem;
  font-weight: 700;
  color: #92400e;
  margin: 0 0 4px;
}
.force-alert-card p {
  font-size: 0.875rem;
  color: #b45309;
  margin: 0;
  line-height: 1.45;
}

/* Accordion sections for Settings Gate */
.section-accordion {
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  background: var(--ab-card);
  margin-bottom: 14px;
  overflow: hidden;
}
.section-summary {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  background: var(--ab-surface);
  font-weight: 700;
  user-select: none;
  list-style: none;
}
.section-summary::-webkit-details-marker { display: none; }
.section-summary:hover { background: var(--ab-hover); }
.section-summary .summary-title {
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-summary .chevron {
  transition: transform 0.2s;
  color: var(--ab-muted);
}
details[open] .chevron {
  transform: rotate(90deg);
}
.gate-row {
  display: grid;
  grid-template-columns: minmax(240px, 2.2fr) minmax(160px, 1fr) minmax(160px, 1fr);
  align-items: end;
  gap: 16px;
  padding: 16px 20px;
  border-top: 1px solid var(--ab-line);
  background: var(--ab-header-bg);
}

/* ==========================================================================
   RESPONSIVE DESIGN (Desktop 1440x900 & Phone 390x844)
   ========================================================================== */
@media (max-width: 900px) {
  .login-split {
    flex-direction: column;
  }
  .login-left {
    flex: none;
    padding: 32px 24px;
  }
  .login-left::after { display: none; }
  .login-features { display: none; }
  .login-hero h1 { font-size: 1.6rem; margin: 16px 0 6px; }
  .login-tagline { font-size: 0.95rem; margin-bottom: 0; }
  .login-footer-text { display: none; }
  .login-right {
    padding: 36px 20px 48px;
  }
}

@media (max-width: 820px) {
  .ab-layout .side {
    position: fixed;
    inset: 0 auto 0 0;
    height: 100dvh;
    transform: translateX(-100%);
    transition: transform 0.22s cubic-bezier(0.2, 0.8, 0.2, 1);
    z-index: 200;
    box-shadow: none;
  }
  .ab-layout .side.open {
    transform: translateX(0);
    box-shadow: 0 0 30px rgba(0, 0, 0, 0.25);
  }
  .ab-layout .main {
    margin-left: 0;
    width: 100%;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .ab-page {
    padding: 18px 16px 36px;
  }
  .ab-header {
    flex-wrap: wrap;
    gap: 12px;
  }
  .ab-header h1 {
    font-size: 1.35rem;
  }
  .gate-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* ==========================================================================
   GLF3: Question Groups, Section Renderer, Grids, Attachments, Timeline
   ========================================================================== */
.group-card {
  background: var(--ab-card);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.group-card-header {
  padding: 16px 20px;
  background: var(--ab-surface);
  border-bottom: 1px solid var(--ab-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.group-card-body {
  padding: 20px;
}
.group-card-footer {
  padding: 14px 20px;
  background: var(--ab-header-bg);
  border-top: 1px solid var(--ab-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}
.question-block {
  padding: 16px 0;
  border-bottom: 1px solid var(--ab-line);
}
.question-block:first-child {
  padding-top: 0;
}
.question-block:last-child {
  border-bottom: none;
  padding-bottom: 0;
}
.question-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.question-label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ab-ink);
  line-height: 1.45;
  flex: 1;
}
.question-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}
.chip-sebi {
  background: var(--ab-hover);
  color: var(--ab-muted);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.chip-submitted {
  background: #e0f2fe;
  color: #0369a1;
}
.chip-rejected {
  background: #fee2e2;
  color: #b91c1c;
}
.chip-approved {
  background: #dcfce7;
  color: #15803d;
}
.chip-draft {
  background: #fef3c7;
  color: #b45309;
}
.chip-locked {
  background: var(--ab-hover);
  color: var(--ab-muted);
  border: 1px solid var(--ab-line);
}
.question-attachments {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.attachment-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 12px;
  background: var(--ab-hover);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-sm);
  font-size: 12.5px;
}
.attachment-pill a {
  color: var(--ab-ink);
  text-decoration: none;
  font-weight: 500;
}
.attachment-pill a:hover {
  text-decoration: underline;
  color: var(--ab-sky);
}
.grid-table-wrap {
  width: 100%;
  overflow-x: auto;
  margin-top: 8px;
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-sm);
}
.grid-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}
.grid-table th {
  background: var(--ab-header-bg);
  padding: 10px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--ab-ink);
  border-bottom: 1px solid var(--ab-line);
  border-right: 1px solid var(--ab-line);
}
.grid-table th:last-child {
  border-right: none;
}
.grid-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--ab-line);
  border-right: 1px solid var(--ab-line);
  vertical-align: middle;
}
.grid-table tr:last-child td {
  border-bottom: none;
}
.grid-table td:last-child {
  border-right: none;
}
.grid-table .grid-heading-row td {
  background: var(--ab-header-bg);
  font-weight: 700;
  color: var(--ab-ink);
  border-top: 1px solid var(--ab-line);
  border-bottom: 1px solid var(--ab-line);
}
.grid-cell-input {
  width: 100%;
  min-height: 32px;
  padding: 4px 8px;
  font-size: 13px;
  background: var(--ab-surface);
  color: var(--ab-ink);
  border: 1px solid var(--ab-line);
  border-radius: 4px;
}
.grid-cell-input:focus {
  outline: none;
  border-color: var(--ab-sky);
}
.section-bottom-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 32px;
  padding-top: 20px;
  border-top: 1px solid var(--ab-line);
}
.history-entry {
  padding: 12px 14px;
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  background: var(--ab-surface);
}
.history-entry-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--ab-muted);
  margin-bottom: 4px;
}

/* ==========================================================================
   GLF4: Dashboards per role (hand-written SVG charts, no chart library)
   ========================================================================== */
.dash-card { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.dash-card > .ab-btn { align-self: flex-start; }
.dash-card-head { display: flex; gap: 12px; align-items: flex-start; }
.dash-card-head > i { font-size: 18px; color: var(--ab-sky-dark); background: var(--ab-hover); border-radius: 8px; padding: 6px 8px; }
.dash-card-head h2 { margin: 0; font-size: 1.05rem; font-weight: 700; color: var(--ab-ink); }
.dash-card-head p { margin: 2px 0 0; font-size: 12.5px; color: var(--ab-muted); }
.dash-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-bottom: 18px; }
.dash-stack { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.dash-tiles { margin-bottom: 18px; }
.dash-tiles .stat-card { text-decoration: none; color: inherit; }
.dash-tiles-5 { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.dash-completion { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.dash-completion-main { display: flex; align-items: center; gap: 16px; }
.dash-completion h2 { margin: 0; font-size: 1.2rem; font-weight: 700; color: var(--ab-ink); }
.dash-completion p { margin: 2px 0 0; font-size: 13px; color: var(--ab-muted); }
.dash-completion-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.dash-completion-actions .ab-select { width: auto; min-height: 40px; }
.dash-expand { flex-basis: 100%; border-top: 1px solid var(--ab-line); padding-top: 12px; }
.dash-ring-wrap { position: relative; width: 64px; height: 64px; flex: none; }
.dash-ring-wrap strong { position: absolute; inset: 0; display: grid; place-items: center; font-size: 14px; color: var(--ab-ink); }
.dash-ring { width: 64px; height: 64px; transform: rotate(-90deg); }
.dash-ring-bg { fill: none; stroke: var(--ab-line); stroke-width: 6; }
.dash-ring-fg { fill: none; stroke: var(--ab-sky); stroke-width: 6; stroke-linecap: round; }
.dash-row { display: grid; grid-template-columns: minmax(110px, 1.1fr) 2fr 56px; align-items: center; gap: 12px; font-size: 13px; padding: 4px 0; color: var(--ab-ink); }
.dash-row strong { text-align: right; font-variant-numeric: tabular-nums; }
.dash-bar { height: 8px; background: var(--ab-bg); border-radius: 999px; overflow: hidden; }
.dash-bar span { display: block; height: 100%; background: var(--ab-sky); border-radius: 999px; }
.dash-chart { width: 100%; height: auto; display: block; }
.dash-gridline { stroke: var(--ab-line); stroke-width: 1; }
.dash-axis { font-size: 11px; fill: var(--ab-muted); }
.dash-legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 12.5px; color: var(--ab-ink); }
.dash-legend i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; vertical-align: -1px; }
.dash-table { width: 100%; border-collapse: collapse; font-size: 12.5px; }
.dash-table th, .dash-table td { padding: 6px 8px; border-bottom: 1px solid var(--ab-line); text-align: right; font-variant-numeric: tabular-nums; color: var(--ab-ink); }
.dash-table th:first-child, .dash-table td:first-child { text-align: left; }
.dash-table th { color: var(--ab-muted); font-weight: 600; }
.dash-note { margin: 0; font-size: 12.5px; }
.dash-empty { display: grid; place-items: center; text-align: center; gap: 6px; padding: 28px 12px; color: var(--ab-muted); background: var(--ab-surface); border: 1px dashed var(--ab-line); border-radius: 8px; }
.dash-empty i { font-size: 22px; }
.dash-empty p { margin: 0; font-size: 13px; }
.dash-facility { padding: 12px 0; border-top: 1px solid var(--ab-line); }
.dash-facility:first-of-type { border-top: 0; }
.dash-facility > a { color: inherit; text-decoration: none; }
.dash-cells { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.dash-cells > a, .dash-cells > span { display: flex; flex-direction: column; gap: 4px; padding: 8px 10px; border: 1px solid var(--ab-line); border-radius: 8px; text-decoration: none; color: inherit; min-width: 120px; }
.dash-cells small { font-size: 11.5px; color: var(--ab-muted); }
.dash-item { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid var(--ab-line); }
.dash-item:first-of-type { border-top: 0; }
.dash-item a { color: inherit; }
.dash-comment { margin: 4px 0 0; font-size: 12.5px; color: var(--ab-danger); }
@media (max-width: 900px) {
  .dash-grid { grid-template-columns: 1fr; }
  .dash-row { grid-template-columns: minmax(90px, 1fr) 1.4fr 48px; }
}

/* ==========================================================================
   DARK MODE COMPONENT STYLES & CONTRAST (WCAG AA compliant)
   ========================================================================== */
:root[data-theme="dark"] .chip-approved,
:root[data-theme="dark"] .chip-project_admin,
:root[data-theme="dark"] .chip-active,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-approved,
  :root:not([data-theme="light"]) .chip-project_admin,
  :root:not([data-theme="light"]) .chip-active {
    background: #064e3b;
    color: #6ee7b7;
  }
}

:root[data-theme="dark"] .chip-draft,
:root[data-theme="dark"] .chip-warning,
:root[data-theme="dark"] .chip-superadmin,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-draft,
  :root:not([data-theme="light"]) .chip-warning,
  :root:not([data-theme="light"]) .chip-superadmin {
    background: #451a03;
    color: #fde68a;
  }
}

:root[data-theme="dark"] .chip-rejected,
:root[data-theme="dark"] .chip-error,
:root[data-theme="dark"] .chip-inactive,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-rejected,
  :root:not([data-theme="light"]) .chip-error,
  :root:not([data-theme="light"]) .chip-inactive {
    background: #450a0a;
    color: #fca5a5;
  }
}

:root[data-theme="dark"] .chip-submitted,
:root[data-theme="dark"] .chip-secondary_pa,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-submitted,
  :root:not([data-theme="light"]) .chip-secondary_pa {
    background: #082f49;
    color: #7dd3fc;
  }
}

:root[data-theme="dark"] .chip-locked,
:root[data-theme="dark"] .chip-neutral,
:root[data-theme="dark"] .chip-user,
:root[data-theme="dark"] .chip-sebi,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-locked,
  :root:not([data-theme="light"]) .chip-neutral,
  :root:not([data-theme="light"]) .chip-user,
  :root:not([data-theme="light"]) .chip-sebi {
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid #334155;
  }
}

:root[data-theme="dark"] .chip-auditor,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .chip-auditor {
    background: #2e1065;
    color: #d8b4fe;
  }
}

:root[data-theme="dark"] .dash-card-head > i,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .dash-card-head > i {
    background: #143826;
    color: #4ade80;
  }
}

:root[data-theme="dark"] .auth-error-box,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-error-box {
    background: #450a0a;
    border-color: #7f1d1d;
    color: #fca5a5;
  }
}

:root[data-theme="dark"] .auth-success-box,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .auth-success-box {
    background: #064e3b;
    border-color: #047857;
    color: #a7f3d0;
  }
}

:root[data-theme="dark"] .grid-cell-total,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .grid-cell-total {
    background: #1e293b !important;
    color: #f8fafc !important;
  }
}

:root[data-theme="dark"] .theme-btn.active,
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn.active {
    background: var(--ab-sky);
    border-color: var(--ab-sky);
    color: #ffffff;
  }
}
.theme-btn.active {
  background: var(--ab-sky);
  border-color: var(--ab-sky);
  color: #ffffff;
}

/* ==========================================================================
   GLF6: SECTION PAGE MASTER-DETAIL LAYOUT (No screen overflow)
   ========================================================================== */
.section-content-container {
  padding: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  overflow: hidden !important;
}

.section-master-detail {
  display: flex;
  height: 100%;
  width: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  background: var(--ab-bg);
}

.section-master-pane {
  width: 330px;
  min-width: 280px;
  max-width: 380px;
  flex-shrink: 0;
  height: 100%;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: var(--ab-surface);
  border-right: 1px solid var(--ab-line);
  overflow: hidden;
}

.section-master-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--ab-line);
  background: var(--ab-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-master-count {
  font-size: 13px;
  font-weight: 700;
  color: var(--ab-ink);
}

.section-master-list {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.section-master-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: all 0.15s ease;
  user-select: none;
  text-decoration: none;
  color: inherit;
}

.section-master-item:hover {
  background: var(--ab-hover);
}

.section-master-item.is-selected {
  background: var(--ab-sky-light);
  border-color: rgba(22, 163, 74, 0.3);
}

:root[data-theme="dark"] .section-master-item.is-selected {
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.35);
}

.master-item-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
}

.master-item-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ab-ink);
  line-height: 1.3;
  flex: 1;
}

.master-item-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--ab-muted);
  flex-wrap: wrap;
}

.section-master-nav {
  padding: 12px 14px;
  border-top: 1px solid var(--ab-line);
  background: var(--ab-surface);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.section-detail-pane {
  flex: 1;
  min-width: 0;
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 28px;
  background: var(--ab-bg);
}

.section-detail-mobile-bar {
  display: none;
  margin-bottom: 14px;
}

@media (max-width: 768px) {
  .section-master-pane {
    width: 100%;
    max-width: 100%;
    border-right: none;
  }
  .section-detail-pane {
    display: none;
    padding: 16px;
  }
  .section-master-detail.show-detail .section-master-pane {
    display: none;
  }
  .section-master-detail.show-detail .section-detail-pane {
    display: block;
    width: 100%;
  }
  .section-detail-mobile-bar {
    display: block;
  }
}

/* ==========================================================================
   GLF6: STATE CARDS (v1 parity: Draft, Pending, Rejected, Approved, Locked, Unlocked)
   ========================================================================== */
.state-card {
  border-radius: var(--radius-md);
  padding: 14px 18px;
  margin-bottom: 20px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border-width: 1px;
  border-style: solid;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: var(--shadow-sm);
}

.state-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.state-card-status {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  opacity: 0.85;
}

.state-card-body {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0;
}

.state-card-quote {
  margin: 6px 0;
  padding: 8px 12px;
  border-left: 3px solid var(--ab-danger);
  background: rgba(220, 38, 38, 0.05);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic;
  font-size: 13px;
  color: #991b1b;
}

:root[data-theme="dark"] .state-card-quote {
  color: #fca5a5;
  background: rgba(239, 68, 68, 0.1);
}

.state-card-changes {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(14, 165, 233, 0.3);
  font-size: 12.5px;
}
.state-card-changes ul {
  margin: 4px 0 0;
  padding-left: 18px;
}

/* State card themes */
.state-card-draft {
  background: #fffbeb;
  border-color: #fde68a;
  color: #92400e;
}
:root[data-theme="dark"] .state-card-draft {
  background: #271c08;
  border-color: #78350f;
  color: #fde68a;
}

.state-card-pending {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #166534;
}
:root[data-theme="dark"] .state-card-pending {
  background: #082f1b;
  border-color: #14532d;
  color: #86efac;
}

.state-card-rejected {
  background: #fef2f2;
  border-color: #fecaca;
  color: #991b1b;
}
:root[data-theme="dark"] .state-card-rejected {
  background: #2b0c0c;
  border-color: #7f1d1d;
  color: #fca5a5;
}

.state-card-approved {
  background: #f0fdf4;
  border-color: #86efac;
  color: #14532d;
}
:root[data-theme="dark"] .state-card-approved {
  background: #052e16;
  border-color: #166534;
  color: #bbf7d0;
}

.state-card-locked {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: #334155;
}
:root[data-theme="dark"] .state-card-locked {
  background: #0f172a;
  border-color: #334155;
  color: #cbd5e1;
}

.state-card-unlocked {
  background: #fff7ed;
  border-color: #fed7aa;
  color: #9a3412;
}
:root[data-theme="dark"] .state-card-unlocked {
  background: #2e1505;
  border-color: #7c2d12;
  color: #fdba74;
}

.state-card-notstarted {
  background: var(--ab-surface);
  border-color: var(--ab-line);
  color: var(--ab-muted);
}

/* ==========================================================================
   GLF6: MG WINDSOR EV STYLE SLIDING WIDGET ROWS
   ========================================================================== */
.widget-row-section {
  margin-bottom: 30px;
}

.widget-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.widget-row-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ab-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.widget-row-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.widget-row-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--ab-surface);
  border: 1px solid var(--ab-line);
  color: var(--ab-ink);
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0;
}
.widget-row-btn:hover:not(:disabled) {
  background: var(--ab-hover);
  border-color: var(--ab-sky);
  color: var(--ab-sky);
}
.widget-row-btn:active:not(:disabled) {
  transform: scale(0.94);
}
.widget-row-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.widget-row-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  padding: 4px 2px 14px;
  max-width: 100%;
}

.widget-row-track::-webkit-scrollbar {
  height: 6px;
}
.widget-row-track::-webkit-scrollbar-thumb {
  background: var(--ab-line);
  border-radius: 999px;
}

.widget-card {
  flex: 0 0 310px;
  max-width: 85vw;
  scroll-snap-align: start;
  background: var(--ab-card);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  min-height: 156px;
}

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

.widget-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.widget-card-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--ab-ink);
  line-height: 1.3;
}

.widget-card-unit {
  font-size: 11px;
  font-weight: 600;
  color: var(--ab-muted);
  background: var(--ab-hover);
  padding: 2px 6px;
  border-radius: 4px;
  white-space: nowrap;
}

.widget-card-value-wrap {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-bottom: 8px;
}

.widget-card-val {
  font-size: 1.7rem;
  font-weight: 800;
  color: var(--ab-ink);
  line-height: 1.1;
  letter-spacing: -0.02em;
}

.widget-card-val.no-data {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--ab-muted);
}

.widget-card-change {
  font-size: 12px;
  font-weight: 700;
}
.widget-card-change.pos { color: var(--ab-success); }
.widget-card-change.neg { color: var(--ab-danger); }
.widget-card-change.neutral { color: var(--ab-muted); }

.widget-card-spark {
  display: flex;
  align-items: flex-end;
  gap: 6px;
  height: 38px;
  padding-top: 8px;
  border-top: 1px dashed var(--ab-line);
}

.widget-card-bar-col {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  height: 100%;
  justify-content: flex-end;
}

.widget-card-bar {
  width: 100%;
  background: var(--ab-sky);
  border-radius: 3px 3px 0 0;
  min-height: 2px;
  opacity: 0.85;
}

.widget-card-bar.empty {
  background: var(--ab-line);
  height: 2px !important;
}

.widget-card-bar-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--ab-muted);
}

/* ==========================================================================
   GLF6: V1 PARITY 2-SLIDE CAROUSELS (Trend slide + Breakdown slide)
   ========================================================================== */
.slide-carousel-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(460px, 1fr));
  gap: 20px;
  margin-bottom: 28px;
}

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

.slide-carousel-block {
  background: var(--ab-card);
  border: 1px solid var(--ab-line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-carousel-block:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.slide-carousel-head {
  padding: 14px 18px;
  border-bottom: 1px solid var(--ab-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--ab-surface);
}

.slide-carousel-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ab-ink);
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

.slide-carousel-ctrls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.slide-carousel-dots {
  display: flex;
  align-items: center;
  gap: 5px;
}

.slide-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ab-line);
  cursor: pointer;
  transition: all 0.15s ease;
}

.slide-dot.active {
  width: 18px;
  border-radius: 999px;
  background: var(--ab-sky);
}

.slide-ctrl-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--ab-line);
  color: var(--ab-ink);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  transition: all 0.15s ease;
}

.slide-ctrl-btn:hover {
  background: var(--ab-hover);
  border-color: var(--ab-sky);
  color: var(--ab-sky);
}

.slide-ctrl-btn:active {
  transform: scale(0.92);
}

.slide-viewport {
  overflow: hidden;
  position: relative;
  flex: 1;
  min-height: 280px;
}

.slide-track {
  display: flex;
  width: 200%;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.slide-track.slide-1 {
  transform: translateX(-50%);
}

.slide-card-item {
  width: 50%;
  padding: 16px 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.slide-card-subtitle {
  font-size: 12px;
  font-weight: 600;
  color: var(--ab-muted);
  margin: 0 0 10px;
}

/* Donut chart layout */
.dash-donut-wrap {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 16px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.dash-donut-svg-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  flex-shrink: 0;
}

.dash-donut-svg-wrap svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.dash-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.dash-donut-center strong {
  font-size: 15px;
  font-weight: 800;
  color: var(--ab-ink);
}

.dash-donut-center small {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--ab-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dash-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12px;
  flex: 1;
  min-width: 160px;
}

.dash-donut-legend-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dash-donut-legend-label {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ab-ink);
  font-weight: 500;
}

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

.dash-donut-legend-val {
  font-weight: 700;
  color: var(--ab-ink);
}
