/* DAPP05-Genomics — 3-Vertical Codex-Style Shell + Auth/Settings (Adopted from DAPP04-FusionX) */
:root {
  --d5-rail-w: 56px;
  --d5-menu-w: 256px;
  --d5-rail-bg: #0c0e13;
  --d5-menu-bg: #11141b;
  --d5-stage-bg: #0b0d11;
  --d5-surface: #181c24;
  --d5-border: rgba(255, 255, 255, 0.12);
  --d5-border-strong: rgba(255, 255, 255, 0.24);
  --d5-text: #f5f7fa;
  --d5-muted: #9ca3af;
  --d5-ok: #22c55e;
  --d5-warn: #f97316;
  --d5-err: #e11d2e;
  --d5-avatar: #fde047;
}

/* Override legacy SC26 top-dock & viewport-width assumptions so everything lives inside the 3-pane shell */
html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  background: var(--d5-stage-bg);
}

.sc26-nav-dock {
  display: none !important;
}

/* =========================================================================
   PORTAL SIGN-IN OVERLAY (DAPP04-FusionX Pattern)
   ========================================================================= */
.fx-login-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: rgba(8, 10, 15, 0.88);
  backdrop-filter: blur(14px);
}

.fx-login-overlay[hidden] {
  display: none !important;
}

.fx-login-card {
  width: min(420px, 100%);
  padding: 2rem 2.1rem;
  background: #14171f;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.6);
  color: var(--d5-text);
}

.fx-login-brand {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  margin-bottom: 1.5rem;
}

.fx-login-logo {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #ffffff;
  color: #0b0d11;
  font: 800 1.05rem/1 Inter, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

.fx-login-brand h1 {
  margin: 0;
  font-size: 1.32rem;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}

.fx-login-brand p {
  margin: 0.2rem 0 0;
  font-size: 0.8rem;
  color: var(--d5-muted);
}

.fx-login-card label {
  display: block;
  margin: 0 0 0.35rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #d1d5db;
}

.fx-login-card input {
  width: 100%;
  margin: 0 0 0.95rem;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  background: #0c0e13;
  color: #ffffff;
  font: inherit;
  font-size: 0.9rem;
}

.fx-login-card input:focus {
  outline: 2px solid #ffffff;
  outline-offset: -1px;
}

.fx-login-card button[type="submit"] {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0d11;
  font: 700 0.9rem Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.fx-login-card button[type="submit"]:hover {
  background: #e5e7eb;
}

.fx-login-offline-btn {
  width: 100%;
  margin-top: 0.65rem;
  padding: 0.62rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: transparent;
  color: #d1d5db;
  font: 600 0.8rem Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.fx-login-offline-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.fx-login-error {
  margin-top: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(225, 29, 46, 0.18);
  border: 1px solid rgba(225, 29, 46, 0.45);
  color: #fca5a5;
  font-size: 0.82rem;
  font-weight: 500;
}

/* =========================================================================
   3-VERTICAL PANE SHELL (RAIL + COLLAPSIBLE MENU + MAIN STAGE)
   ========================================================================= */
.fx-shell {
  display: flex;
  width: 100vw;
  height: 100dvh;
  overflow: hidden;
  transition: filter 0.18s ease;
}

.fx-shell.fx-locked {
  filter: blur(10px);
  pointer-events: none;
  user-select: none;
}

/* 1. Far-Left Thin Icon Rail */
.fx-rail {
  width: var(--d5-rail-w);
  flex-shrink: 0;
  background: var(--d5-rail-bg);
  border-right: 1px solid var(--d5-border);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0 12px;
  z-index: 40;
}

.fx-rail-top,
.fx-rail-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.fx-rail-brand-mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #ffffff;
  color: #0b0d11;
  font: 800 12px/1 Inter, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  margin-bottom: 4px;
  user-select: none;
}

.fx-rail-btn {
  position: relative;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--d5-muted);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: background 0.14s, color 0.14s;
}

.fx-rail-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.fx-rail-btn.active {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.fx-rail-active-dot {
  position: absolute;
  left: -9px;
  top: 9px;
  bottom: 9px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #ffffff;
  opacity: 0;
}

.fx-rail-btn.active .fx-rail-active-dot {
  opacity: 1;
}

.fx-status-pip {
  position: absolute;
  bottom: 6px;
  right: 6px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--d5-ok);
  border: 1.5px solid var(--d5-rail-bg);
}

.fx-status-pip.warn { background: var(--d5-warn); }
.fx-status-pip.err { background: var(--d5-err); }

.fx-user-avatar-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1.5px solid #eab308;
  background: var(--d5-avatar);
  color: #422006;
  font: 800 0.74rem/1 Inter, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: transform 0.12s, box-shadow 0.12s;
}

.fx-user-avatar-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 10px rgba(234, 179, 8, 0.35);
}

/* Floating Popovers anchored to Left Rail */
.fx-popover-anchor {
  position: relative;
}

.fx-floating-menu {
  position: absolute;
  left: 48px;
  bottom: 0;
  min-width: 238px;
  padding: 8px;
  border-radius: 12px;
  background: #161922;
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.55);
  color: var(--d5-text);
  z-index: 90;
}

.fx-menu-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 6px 8px;
  font-size: 12px;
}

.fx-status-list {
  display: grid;
  gap: 6px;
  padding: 4px 6px;
  font-size: 12px;
  color: #d1d5db;
}

.fx-status-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

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

.fx-dot.ok { background: var(--d5-ok); }
.fx-dot.warn { background: var(--d5-warn); }
.fx-dot.err { background: var(--d5-err); }

.fx-user-card-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
}

.fx-user-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--d5-avatar);
  color: #422006;
  font: 800 12px/1 Inter, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.fx-user-meta strong {
  display: block;
  font-size: 13px;
  color: #ffffff;
}

.fx-user-meta span {
  display: block;
  font-size: 11px;
  color: var(--d5-muted);
}

.fx-menu-divider {
  height: 1px;
  margin: 6px 0;
  background: var(--d5-border);
}

.fx-menu-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #e5e7eb;
  font: 600 12.5px/1.2 Inter, "Segoe UI", sans-serif;
  text-decoration: none;
  cursor: pointer;
  text-align: left;
}

.fx-menu-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.fx-menu-item kbd {
  margin-left: auto;
  font: 600 10px/1 ui-monospace, monospace;
  padding: 2px 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--d5-muted);
}

.fx-menu-danger {
  color: #fca5a5;
}

.fx-menu-danger:hover {
  background: rgba(225, 29, 46, 0.18);
  color: #ffffff;
}

/* 2. Collapsible Middle Navigation Menu */
.fx-menu-pane {
  width: var(--d5-menu-w);
  flex-shrink: 0;
  background: var(--d5-menu-bg);
  border-right: 1px solid var(--d5-border);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transition: width 180ms ease, border-color 180ms ease, opacity 140ms ease;
}

.fx-shell.menu-collapsed .fx-menu-pane {
  width: 0;
  min-width: 0;
  border-right: 0;
  opacity: 0;
  pointer-events: none;
}

.fx-menu-head {
  padding: 13px 14px 11px;
  border-bottom: 1px solid var(--d5-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-shrink: 0;
}

.fx-menu-title-wrap strong {
  display: block;
  font-size: 13.5px;
  color: #ffffff;
  letter-spacing: -0.01em;
}

.fx-menu-title-wrap span {
  display: block;
  margin-top: 2px;
  font-size: 10.5px;
  color: var(--d5-muted);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 700;
}

.fx-icon-btn {
  width: 28px;
  height: 28px;
  border: 1px solid var(--d5-border);
  border-radius: 7px;
  background: transparent;
  color: #d1d5db;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.fx-icon-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.fx-menu-scroll {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 10px 10px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fx-menu-group-lbl {
  padding: 10px 8px 4px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #6b7280;
}

.fx-menu-group-lbl:first-child {
  padding-top: 2px;
}

.fx-nav-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: #d1d5db;
  font: 600 12.5px/1.25 Inter, "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
  transition: background 120ms ease, color 120ms ease, border-color 120ms ease;
}

.fx-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #ffffff;
}

.fx-nav-item.active {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.fx-nav-sub {
  font-size: 10px;
  font-weight: 700;
  color: #9ca3af;
  flex-shrink: 0;
}

.fx-menu-footer {
  padding: 9px 12px;
  border-top: 1px solid var(--d5-border);
  font-size: 10.5px;
  color: #6b7280;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* 3. Right Main Display Pane */
.fx-main-stage {
  flex: 1 1 auto;
  min-width: 0;
  height: 100dvh;
  position: relative;
  overflow: hidden;
  background: var(--d5-stage-bg);
}

.fx-main-stage .stage {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
  min-height: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background: var(--d5-stage-bg) !important;
}

.fx-main-stage .video-shell {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: var(--d5-stage-bg) !important;
}

.fx-main-stage .intro-panel,
.fx-main-stage .video-panel,
.fx-main-stage .hmh-panel,
.fx-main-stage .document-panel,
.fx-main-stage .static-panel,
.fx-main-stage .live-demo-panel {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  aspect-ratio: auto !important;
}

.fx-main-stage .video-panel.hmh-panel,
.fx-main-stage .hmh-panel {
  background: var(--d5-stage-bg) !important;
}

.fx-main-stage .hmh-shell,
.fx-main-stage .visual-arch-shell {
  width: 100% !important;
  max-width: none !important;
  height: 100% !important;
}

.fx-main-stage .demo-canvas {
  left: 0 !important;
  top: 0 !important;
  width: 100% !important;
  height: 100% !important;
}

.fx-main-stage video,
.fx-main-stage .static-panel img {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  object-fit: contain;
}

/* Always-visible top-left sidebar toggle button (DAPP04-FusionX placement) */
.fx-menu-reopen-btn {
  position: absolute;
  top: 11px;
  left: 12px;
  z-index: 35;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border-radius: 8px;
  border: 1px solid var(--d5-border);
  background: var(--d5-surface);
  color: var(--d5-muted);
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease, border-color 140ms ease;
}

.fx-menu-reopen-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: var(--d5-border-strong);
  color: var(--d5-text);
}

/* Reserve top-left gutter in content headers so the sidebar toggle never overlaps headings */
.fx-main-stage .visual-arch-head,
.fx-main-stage .hmh-header {
  padding-left: 40px;
}

/* Segmented Dark/Light Theme Toggle inside Settings */
.fx-theme-toggle {
  display: inline-flex;
  padding: 3px;
  border-radius: 9px;
  border: 1px solid var(--d5-border);
  background: rgba(0, 0, 0, 0.25);
  gap: 3px;
}

.fx-theme-btn {
  border: 0;
  border-radius: 6px;
  padding: 5px 12px;
  background: transparent;
  color: var(--d5-muted);
  font: 700 12px/1 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
  transition: background 140ms ease, color 140ms ease;
}

.fx-theme-btn:hover {
  color: var(--d5-text);
}

.fx-theme-btn.active {
  background: #ffffff;
  color: #0b0d11;
}

/* =========================================================================
   SETTINGS & USER MANAGEMENT MODAL (DAPP04-FusionX Pattern)
   ========================================================================= */
.fx-settings-modal {
  width: min(860px, 94vw);
  height: min(620px, 88vh);
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 16px;
  background: #14171f;
  color: var(--d5-text);
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.65);
  overflow: hidden;
}

.fx-settings-modal::backdrop {
  background: rgba(0, 0, 0, 0.68);
  backdrop-filter: blur(6px);
}

.fx-settings-shell {
  display: flex;
  width: 100%;
  height: 100%;
}

.fx-settings-sidebar {
  width: 230px;
  flex-shrink: 0;
  background: #0e1117;
  border-right: 1px solid var(--d5-border);
  padding: 16px 12px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.fx-settings-side-title {
  margin: 0;
  font-size: 16px;
  color: #ffffff;
  padding: 0 6px;
}

.fx-settings-profile-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.fx-settings-vnav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.fx-vtab {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #d1d5db;
  font: 600 12.5px/1.2 Inter, "Segoe UI", sans-serif;
  cursor: pointer;
  text-align: left;
}

.fx-vtab:hover { background: rgba(255, 255, 255, 0.07); color: #ffffff; }
.fx-vtab.active { background: rgba(255, 255, 255, 0.14); color: #ffffff; }

.fx-settings-main {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  overflow-y: auto;
  padding: 20px 24px;
}

.fx-settings-close-abs {
  position: absolute;
  top: 14px;
  right: 14px;
}

.fx-settings-panel-head h1 {
  margin: 0;
  font-size: 18px;
  color: #ffffff;
}

.fx-settings-panel-head p {
  margin: 4px 0 14px;
  font-size: 12.5px;
  color: var(--d5-muted);
}

.fx-provider-card {
  padding: 14px 16px;
  border-radius: 12px;
  background: #181c24;
  border: 1px solid var(--d5-border);
  margin-bottom: 12px;
}

.fx-user-inline-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.fx-input {
  flex: 1 1 140px;
  padding: 7px 10px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: #0c0e13;
  color: #ffffff;
  font: inherit;
  font-size: 12.5px;
}

.fx-btn-primary {
  padding: 7px 13px;
  border: 0;
  border-radius: 8px;
  background: #ffffff;
  color: #0b0d11;
  font: 700 12px Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.fx-btn-secondary {
  padding: 7px 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: transparent;
  color: #e5e7eb;
  font: 600 12px Inter, "Segoe UI", sans-serif;
  cursor: pointer;
}

.fx-users-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 10px;
  font-size: 12px;
}

.fx-users-table th,
.fx-users-table td {
  padding: 7px 8px;
  text-align: left;
  border-bottom: 1px solid var(--d5-border);
}

.fx-users-table th {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--d5-muted);
}

.fx-status-note {
  display: block;
  margin-top: 6px;
  font-size: 11.5px;
  color: #9ca3af;
}

.fx-setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid var(--d5-border);
  font-size: 12.5px;
}

.fx-setting-row:last-child { border-bottom: 0; }


/* =========================================================================
   LIGHT MODE THEME (DAPP04-FusionX Crisp Light Palette)
   ========================================================================= */
:root[data-theme="light"] {
  --d5-rail-bg: #f8fafc;
  --d5-menu-bg: #ffffff;
  --d5-stage-bg: #f4f6f9;
  --d5-surface: #ffffff;
  --d5-border: rgba(15, 23, 42, 0.12);
  --d5-border-strong: rgba(15, 23, 42, 0.22);
  --d5-text: #0f172a;
  --d5-muted: #64748b;
}

:root[data-theme="light"] body {
  background: var(--d5-stage-bg);
  color: var(--d5-text);
}

:root[data-theme="light"] .fx-rail-brand-mark {
  background: #0f172a;
  color: #ffffff;
}

:root[data-theme="light"] .fx-rail-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

:root[data-theme="light"] .fx-rail-btn.active {
  background: #e2e8f0;
  color: #0f172a;
}

:root[data-theme="light"] .fx-rail-active-dot {
  background: #0f172a;
  display: none;
}

:root[data-theme="light"] .fx-menu-title-wrap strong {
  color: #0f172a;
}

:root[data-theme="light"] .fx-menu-title-wrap span,
:root[data-theme="light"] .fx-menu-group-lbl,
:root[data-theme="light"] .fx-menu-footer,
:root[data-theme="light"] .fx-nav-sub {
  color: #64748b;
}

:root[data-theme="light"] .fx-icon-btn {
  color: #64748b;
}

:root[data-theme="light"] .fx-icon-btn:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #0f172a;
}

:root[data-theme="light"] .fx-nav-item {
  color: #334155;
}

:root[data-theme="light"] .fx-nav-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

:root[data-theme="light"] .fx-nav-item.active {
  background: #eef2ff;
  border-color: rgba(37, 99, 235, 0.25);
  color: #1d4ed8;
}

:root[data-theme="light"] .fx-menu-reopen-btn {
  background: #ffffff;
  color: #475569;
  border-color: rgba(15, 23, 42, 0.14);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

:root[data-theme="light"] .fx-menu-reopen-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}

:root[data-theme="light"] .fx-floating-menu,
:root[data-theme="light"] .fx-settings-modal,
:root[data-theme="light"] .fx-login-card {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
  color: #0f172a;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.16);
}

:root[data-theme="light"] .fx-settings-sidebar {
  background: #f8fafc;
  border-right-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .fx-provider-card {
  background: #f8fafc;
  border-color: rgba(15, 23, 42, 0.1);
}

:root[data-theme="light"] .fx-vtab {
  color: #475569;
}

:root[data-theme="light"] .fx-vtab:hover {
  background: rgba(15, 23, 42, 0.05);
  color: #0f172a;
}

:root[data-theme="light"] .fx-vtab.active {
  background: #eef2ff;
  color: #1d4ed8;
}

:root[data-theme="light"] .fx-menu-item {
  color: #334155;
}

:root[data-theme="light"] .fx-menu-item:hover {
  background: #f1f5f9;
  color: #0f172a;
}

:root[data-theme="light"] .fx-theme-toggle {
  background: #e2e8f0;
  border-color: rgba(15, 23, 42, 0.12);
}

:root[data-theme="light"] .fx-theme-btn {
  color: #475569;
}

:root[data-theme="light"] .fx-theme-btn.active {
  background: #0f172a;
  color: #ffffff;
}

:root[data-theme="light"] .fx-input,
:root[data-theme="light"] .fx-login-card input {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.2);
  color: #0f172a;
}

:root[data-theme="light"] .fx-btn-primary,
:root[data-theme="light"] .fx-login-card button[type="submit"] {
  background: #0f172a;
  color: #ffffff;
}

:root[data-theme="light"] .fx-btn-secondary,
:root[data-theme="light"] .fx-login-offline-btn {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.18);
  color: #334155;
}

:root[data-theme="light"] .fx-login-overlay {
  background: rgba(241, 245, 249, 0.84);
}

:root[data-theme="light"] .fx-login-logo {
  background: #0f172a;
  color: #ffffff;
}

:root[data-theme="light"] .fx-login-brand h1,
:root[data-theme="light"] .fx-settings-side-title,
:root[data-theme="light"] .fx-settings-panel-head h1,
:root[data-theme="light"] .fx-user-meta strong {
  color: #0f172a;
}

:root[data-theme="light"] .fx-login-card label {
  color: #334155;
}

:root[data-theme="light"] .fx-main-stage .intro-panel {
  background: radial-gradient(circle at 72% 16%, rgba(37, 99, 235, 0.08), transparent 36rem),
              linear-gradient(135deg, #f8fafc, #eef2f7 60%, #f1f5f9) !important;
  color: #0f172a !important;
}

:root[data-theme="light"] .fx-main-stage .intro-panel .start-scene-title h2 {
  color: #0f172a !important;
  text-shadow: none !important;
}
