:root {
  --bg: #18202b;
  --bg-deep: #0f1722;
  --surface: #172232;
  --surface-2: #202b3a;
  --surface-3: #29384b;
  --line: #344357;
  --text: #f8fafc;
  --muted: #a8b4c4;
  --accent: #52749b;
  --accent-2: #6687ad;
  --good: #70a783;
  --warn: #c6a15b;
  --bad: #b46b72;
}

html,
body {
  min-height: 100%;
  background: var(--bg) !important;
  color: var(--text) !important;
}

body {
  font-family: Inter, "Segoe UI", Arial, sans-serif;
}

.layout-shell {
  display: grid !important;
  grid-template-columns: 256px minmax(0, 1fr) !important;
  min-height: 100vh !important;
  background: var(--bg) !important;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 28px 12px 16px;
  background: var(--bg-deep);
  border-right: 1px solid #2b3545;
}

.app-main {
  min-width: 0;
  background: var(--bg);
}

.topbar,
.site-footer {
  display: none !important;
}

.system-ribbon {
  position: sticky;
  top: 0;
  z-index: 15;
  padding: 18px 32px !important;
  border: 0 !important;
  border-bottom: 1px solid #2c3a4d !important;
  background: #28364d !important;
  color: #dce8ff !important;
  text-align: center;
  text-transform: none !important;
  letter-spacing: 0 !important;
  font-size: 0.92rem !important;
  font-weight: 800;
}

.brand-wrap {
  padding: 0 16px 10px !important;
}

.brand-btn {
  width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  border: 0 !important;
  background: transparent !important;
  color: #fff !important;
  padding: 0 !important;
}

.brand-seal {
  width: 44px !important;
  height: 44px !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: #fff !important;
  color: #111827 !important;
  font-size: 0.9rem !important;
  font-weight: 900;
}

.brand-title {
  color: #fff !important;
  font-size: 1.7rem !important;
  font-weight: 900;
  line-height: 1;
}

.brand-subtitle {
  margin: 8px 0 0 !important;
  color: #aab8cd !important;
  font-size: 0.82rem !important;
  line-height: 1.35;
}

.topnav {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: flex-start !important;
  gap: 6px !important;
  padding: 0 !important;
}

.nav-section {
  margin: 14px 0 4px;
  padding: 0 12px;
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.topnav .inline,
.sidebar .inline {
  display: block !important;
  width: 100%;
}

.nav-btn {
  width: 100% !important;
  min-height: 40px !important;
  justify-content: flex-start !important;
  border: 0 !important;
  border-radius: 7px !important;
  padding: 10px 14px !important;
  background: transparent !important;
  color: #c9d5e7 !important;
  text-align: left !important;
  font-size: 0.92rem !important;
  font-weight: 850 !important;
}

.nav-btn:hover,
.nav-btn:focus {
  background: #222d3e !important;
  color: #fff !important;
}

.nav-btn.active {
  background: #27364a !important;
  color: #fff !important;
  box-shadow: inset 3px 0 0 var(--accent);
}

.nav-btn-danger {
  color: #ffabb0 !important;
}

.identity-strip {
  margin-top: auto !important;
  padding: 12px !important;
  border-top: 1px solid #2b3545;
}

.user-avatar {
  width: 38px !important;
  height: 38px !important;
  border: 1px solid #3b4f68 !important;
  border-radius: 50% !important;
  background: #e5edf7 !important;
  object-fit: cover !important;
}

.identity-meta strong {
  color: #fff !important;
}

.identity-meta span,
.muted,
.tiny-note,
.page-description,
.quick-subtitle {
  color: var(--muted) !important;
}

.content {
  max-width: none !important;
  padding: 32px !important;
}

.panel {
  border: 1px solid var(--line) !important;
  border-radius: 10px !important;
  background: var(--surface) !important;
  color: var(--text) !important;
  box-shadow: 0 10px 22px rgba(5, 9, 15, 0.18) !important;
}

.page-header {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 4px 0 18px !important;
}

.panel h1,
.panel h2,
.panel h3,
.page-header h1,
.quick-title,
.detail-value,
.stat-card .value {
  color: #fff !important;
}

.page-subtitle,
.detail-label,
.list th {
  color: #f5f7fb !important;
  letter-spacing: 0 !important;
}

button,
input[type="submit"],
.btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  border: 0 !important;
  border-radius: 7px !important;
  min-height: 40px !important;
  padding: 9px 14px !important;
  background: var(--accent) !important;
  color: #fff !important;
  font-weight: 850 !important;
  text-decoration: none !important;
  cursor: pointer !important;
}

button:hover,
input[type="submit"]:hover,
.btn:hover {
  background: var(--accent-2) !important;
}

.btn-secondary,
.btn-minor,
button.btn-secondary,
button.btn-minor,
.crumb-link {
  border: 1px solid #35475f !important;
  background: #243247 !important;
  color: #dbe7f7 !important;
}

.btn-secondary:hover,
.btn-minor:hover,
button.btn-secondary:hover,
button.btn-minor:hover,
.crumb-link:hover {
  background: #2d3c54 !important;
  color: #fff !important;
}

input,
select,
textarea {
  border: 1px solid #35475f !important;
  border-radius: 7px !important;
  background: #101827 !important;
  color: #f7f8fb !important;
}

input::placeholder,
textarea::placeholder {
  color: #72839a !important;
}

label {
  color: #d7e0ec !important;
  font-weight: 800 !important;
}

.detail-item,
.stat-card,
.module-action-card,
.quick-button,
pre.record-body,
.record-photo-wrap {
  border: 1px solid #2d3b50 !important;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  border-radius: 8px !important;
}

.quick-button {
  min-height: 88px !important;
  box-shadow: 0 8px 18px rgba(5, 9, 15, 0.16) !important;
}

.quick-button:hover {
  background: #26354a !important;
}

.list {
  border-collapse: separate !important;
  border-spacing: 0 !important;
}

.list th {
  background: #101827 !important;
  border-bottom: 1px solid #2d3b50 !important;
}

.list td {
  border-bottom: 1px solid #2d3b50 !important;
  color: #e5edf7 !important;
}

.list tbody tr:nth-child(2n) {
  background: rgba(255, 255, 255, 0.025) !important;
}

.list tbody tr:hover {
  background: rgba(255, 255, 255, 0.05) !important;
}

.tag {
  border: 1px solid #3c526e !important;
  border-radius: 999px !important;
  background: #243247 !important;
  color: #dce8ff !important;
}

.tag.ok {
  border-color: rgba(74, 222, 128, 0.3) !important;
  background: rgba(74, 222, 128, 0.12) !important;
  color: #86efac !important;
}

.tag.warn {
  border-color: rgba(251, 191, 36, 0.3) !important;
  background: rgba(251, 191, 36, 0.12) !important;
  color: #facc6b !important;
}

.tag.danger,
.error-code {
  border-color: rgba(251, 113, 133, 0.3) !important;
  background: rgba(251, 113, 133, 0.12) !important;
  color: #fda4af !important;
}

.btn-danger {
  background: rgba(251, 113, 133, 0.14) !important;
  color: #fecdd3 !important;
  border: 1px solid rgba(251, 113, 133, 0.35) !important;
}

.btn-danger:hover {
  background: rgba(251, 113, 133, 0.25) !important;
  color: #fff !important;
}

.breadcrumbs,
.crumb-current,
.crumb-sep {
  color: #8fa2ba !important;
}

.auth-center {
  min-height: calc(100vh - 120px) !important;
}

.ribbon-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  margin-left: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(82, 116, 155, 0.22);
  color: #d9e6f7;
  font-size: 0.78rem;
  font-weight: 900;
}

.hero-panel,
.setup-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 28px !important;
  background: var(--surface) !important;
}

.hero-panel h2,
.setup-hero h2,
.login-hero h1 {
  margin: 12px 0 8px;
  font-size: clamp(1.65rem, 2vw, 2.4rem);
  line-height: 1.05;
}

.login-hero {
  width: min(560px, 100%);
  padding: 32px !important;
}

.setup-preview {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
  max-width: 300px;
}

.section-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}

.section-title-row h2 {
  margin: 0 0 6px;
}

.step-card {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 14px !important;
}

.step-number {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: #101827;
  color: #dce8ff;
  font-weight: 950;
}

.step-card.active {
  border-color: rgba(102, 135, 173, 0.62) !important;
  background: var(--surface-2) !important;
}

.step-card.active .step-number {
  background: var(--accent);
  color: #fff;
}

.step-card.complete {
  border-color: rgba(112, 167, 131, 0.45) !important;
  background: var(--surface-2) !important;
}

.step-card.complete .step-number {
  background: rgba(74, 222, 128, 0.18);
  color: #86efac;
}

.server-card {
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 16px !important;
}

.server-card .quick-subtitle {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-card {
  padding: 18px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: var(--surface-2);
}

.tool-card h3 {
  margin: 0 0 6px;
}

.tool-card label {
  display: block;
  margin-top: 12px;
}

.tool-card button {
  width: 100%;
}

.filter-grid {
  align-items: end;
}

.filter-actions,
.row-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
}

.grid-span {
  grid-column: 1 / -1;
}

.server-config-shell {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.server-config-shell.no-local-sidebar {
  grid-template-columns: 1fr;
}

.server-config-menu {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 18px !important;
}

.server-config-menu h2 {
  margin: 8px 0 12px;
}

.server-config-main {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 16px;
}

.server-config-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 14px !important;
}

.config-menu-link {
  display: flex;
  align-items: center;
  min-height: 40px;
  padding: 9px 12px;
  border-radius: 7px;
  background: #202c3d;
  color: #e5edf7;
  font-weight: 850;
  text-decoration: none;
}

.config-menu-link:hover {
  background: #27364a;
  color: #fff;
}

.muted-link {
  color: var(--muted);
}

.role-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
  padding: 12px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: #111a29;
}

.role-chip {
  min-height: 30px !important;
  padding: 5px 9px !important;
  border: 1px solid #35475f !important;
  border-radius: 999px !important;
  background: #243247 !important;
  color: #dce8ff !important;
  font-size: 0.82rem !important;
}

.role-chip:hover {
  background: #2d3c54 !important;
}

.group-loader {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) auto;
}

.option-card-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.option-card {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: var(--surface-2);
}

.option-card input {
  width: auto;
  min-height: auto;
  margin-top: 4px;
}

.option-card strong,
.option-card small {
  display: block;
}

.option-card small {
  margin-top: 4px;
  color: var(--muted);
}

.rank-map-table {
  display: flex;
  flex-direction: column;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  overflow: hidden;
}

.rank-map-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(260px, 360px);
  gap: 14px;
  align-items: center;
  padding: 12px 14px;
  background: var(--surface-2);
  border-bottom: 1px solid #2d3b50;
}

.rank-map-row:last-child {
  border-bottom: 0;
}

.rank-map-row strong,
.rank-map-row span {
  display: block;
}

.empty-state {
  padding: 24px;
  border: 1px dashed #3c526e;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.025);
}

.group-pill-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.group-map-card {
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: #121c2c;
}

.group-map-card:first-of-type {
  margin-top: 0;
}

.group-map-card h3 {
  margin: 0 0 4px;
}

.group-map-card .section-title-row input {
  max-width: 320px;
}

.settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.settings-block {
  padding: 18px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: var(--surface-2);
}

.settings-block input,
.settings-block textarea {
  max-width: 560px;
}

.template-token-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.token-chip {
  min-height: 28px !important;
  padding: 5px 9px !important;
  border: 1px solid #35475f !important;
  border-radius: 5px !important;
  background: #101827 !important;
  color: #dce8ff !important;
  font-size: 0.82rem !important;
}

.toggle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.toggle-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  min-height: 108px;
  padding: 18px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: var(--surface-2);
}

.toggle-card strong,
.toggle-card small {
  display: block;
}

.toggle-card small {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.35;
}

.toggle-card input[type="checkbox"] {
  appearance: none;
  width: 46px;
  height: 24px;
  min-height: 24px;
  flex: 0 0 auto;
  border: 0 !important;
  border-radius: 999px !important;
  background: #3b4658 !important;
  cursor: pointer;
  position: relative;
}

.toggle-card input[type="checkbox"]::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform 0.16s ease;
}

.toggle-card input[type="checkbox"]:checked {
  background: #635bff !important;
}

.toggle-card input[type="checkbox"]:checked::after {
  transform: translateX(22px);
}

.timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 12px;
}

.timeline-card {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: space-between !important;
  min-height: 150px !important;
  padding: 16px !important;
  border: 1px solid #2d3b50 !important;
  border-radius: 8px !important;
  background: var(--surface-2) !important;
  color: var(--text) !important;
  text-align: left !important;
  box-shadow: 0 8px 18px rgba(5, 9, 15, 0.12) !important;
}

.timeline-card:hover {
  background: #26354a !important;
  border-color: #48617f !important;
}

.timeline-card-head,
.timeline-meta,
.timeline-actions {
  display: flex;
  gap: 10px;
}

.timeline-card-head {
  align-items: flex-start;
  justify-content: space-between;
}

.timeline-card-head strong {
  color: #fff;
  font-size: 1rem;
  line-height: 1.25;
}

.timeline-meta {
  flex-direction: column;
  margin-top: 12px;
  color: var(--muted);
  font-weight: 700;
}

.timeline-actions {
  align-items: center;
  justify-content: space-between;
  margin-top: 14px;
}

.copy-id-button {
  display: inline-flex;
  align-items: center;
  min-height: 30px !important;
  width: auto !important;
  padding: 5px 9px !important;
  border-radius: 6px !important;
  cursor: pointer;
}

.copy-id-button::before {
  content: "▣";
  margin-right: 6px;
  font-size: 0.75rem;
}

.timeline-modal[hidden] {
  display: none;
}

.timeline-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 20px;
}

.timeline-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.72);
}

.timeline-modal-panel {
  position: relative;
  width: min(760px, 100%);
  max-height: min(720px, calc(100vh - 48px));
  overflow: auto;
  padding: 22px;
  border: 1px solid #3d526e;
  border-radius: 10px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
}

.modal-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.modal-detail-grid > div {
  padding: 12px;
  border: 1px solid #2d3b50;
  border-radius: 8px;
  background: var(--surface-2);
}

.app-modal[hidden] {
  display: none;
}

.app-modal {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: grid;
  place-items: center;
  padding: 20px;
}

.app-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(6, 10, 18, 0.76);
}

.app-modal-panel {
  position: relative;
  width: min(680px, 100%);
  max-height: calc(100vh - 48px);
  overflow: auto;
  padding: 22px;
  border: 1px solid #3d526e;
  border-radius: 8px;
  background: var(--surface);
}

.filing-command {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.table-scroll {
  width: 100%;
  overflow-x: auto;
}

.registry-table {
  min-width: 1120px;
}

.registry-table th {
  background: #174d80 !important;
  color: #ffffff !important;
  text-transform: uppercase;
  white-space: nowrap;
}

.registry-table td {
  vertical-align: top;
}

.click-row {
  cursor: pointer;
}

.click-row:hover td {
  background: rgba(102, 135, 173, 0.12) !important;
}

@media (max-width: 1000px) {
  .layout-shell {
    grid-template-columns: 1fr !important;
  }

  .sidebar {
    position: relative;
    height: auto;
  }

  .topnav {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

  .nav-section {
    grid-column: 1 / -1;
  }

  .content {
    padding: 20px 14px !important;
  }

  .hero-panel,
  .setup-hero,
  .section-title-row {
    flex-direction: column;
    align-items: stretch;
  }

  .setup-preview {
    justify-content: flex-start;
    max-width: none;
  }

  .server-config-shell,
  .option-card-row,
  .rank-map-row,
  .group-loader,
  .toggle-grid {
    grid-template-columns: 1fr;
  }

  .server-config-menu {
    position: relative;
    top: auto;
  }

  .modal-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Final MUST operations palette.
   This intentionally neutralizes older inline gradients left by generated pages. */
button,
input[type="submit"],
.btn,
.panel button[type="submit"],
.panel .btn {
  border: 1px solid #42546b !important;
  background: #52749b !important;
  color: #f8fbff !important;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.panel button[type="submit"]:hover,
.panel .btn:hover {
  background: #6687ad !important;
}

.btn-secondary,
.btn-minor,
button.btn-secondary,
button.btn-minor,
.quick-button.secondary,
.crumb-link {
  border: 1px solid #3a4b60 !important;
  background: #243247 !important;
  color: #dbe7f7 !important;
}

.btn-danger,
.nav-btn-danger {
  border-color: rgba(180, 107, 114, 0.45) !important;
  background: rgba(180, 107, 114, 0.16) !important;
  color: #f0c2c7 !important;
}

.nav-btn {
  background: transparent !important;
}

.nav-btn:hover,
.nav-btn:focus,
.nav-btn.active {
  background: #263449 !important;
}

.nav-btn.active {
  box-shadow: inset 3px 0 0 #6687ad !important;
}

.tag.ok {
  border-color: rgba(112, 167, 131, 0.42) !important;
  background: rgba(112, 167, 131, 0.14) !important;
  color: #b9d7c4 !important;
}

.tag.warn {
  border-color: rgba(198, 161, 91, 0.42) !important;
  background: rgba(198, 161, 91, 0.14) !important;
  color: #ecd7ae !important;
}

.tag.danger,
.error-code {
  border-color: rgba(180, 107, 114, 0.42) !important;
  background: rgba(180, 107, 114, 0.14) !important;
  color: #f0c2c7 !important;
}

.confidentiality-notice,
.panel[style*="linear-gradient"],
.quick-button[style*="linear-gradient"],
.operation-card,
.stat-box,
[style*="linear-gradient(135deg"],
[style*="linear-gradient(90deg"] {
  border: 1px solid #3a4b60 !important;
  border-left: 4px solid #6687ad !important;
  background: #202b3a !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

.confidentiality-notice h2,
.confidentiality-notice p,
.panel[style*="linear-gradient"] h2,
.panel[style*="linear-gradient"] p,
.operation-card h3,
.operation-card p,
.stat-box,
.stat-box *,
[style*="linear-gradient(135deg"] *,
[style*="linear-gradient(90deg"] * {
  color: #f8fafc !important;
}

.operations-grid a,
.departments-hierarchy > div,
.department-card,
.unit-card,
.tool-card,
.module-action-card,
.quick-button,
.detail-item,
.stat-card {
  background: #202b3a !important;
  border-color: #344357 !important;
  color: #f8fafc !important;
}

.folder-link {
  color: inherit !important;
  text-decoration: none !important;
}

.operation-card {
  min-height: 180px;
  padding: 22px;
  border-radius: 8px;
  cursor: pointer;
}

.stat-box {
  border: 1px solid #344357 !important;
  background: #202b3a !important;
}

.stat-box-warn {
  border-left: 4px solid #c6a15b !important;
}

.quick-button {
  box-shadow: none !important;
}

.quick-button:hover,
.operation-card:hover {
  background: #29384b !important;
}

.operation-card {
  transition: background-color 0.15s ease, border-color 0.15s ease !important;
}

.operation-card [style*="border-top"] {
  border-top-color: #3a4b60 !important;
}

[style*="background: #ff9800"],
[style*="background: #e3f2fd"],
[style*="background: #f3e5f5"],
[style*="background: #f1f8e9"],
[style*="background: #ffcdd2"],
[style*="background: #fff3e0"],
[style*="background: #fafafa"],
[style*="background: white"],
[style*="background: #f5f5f5"],
[style*="background: #f9f9f9"] {
  background: #202b3a !important;
  border-color: #344357 !important;
  color: #f8fafc !important;
  box-shadow: none !important;
}

[style*="color: #2d3748"],
[style*="color: #718096"],
[style*="color: #666"],
[style*="color: #555"],
[style*="color: #333"],
[style*="color: #1976d2"],
[style*="color: #6a1b9a"],
[style*="color: #33691e"],
[style*="color: #01579b"],
[style*="color: #b71c1c"],
[style*="color: #d32f2f"],
[style*="color: white"] {
  color: #f8fafc !important;
}

/* Frontend reset: quiet command-console palette, no generated rainbow/red UI. */
:root {
  --bg: #171f2b;
  --bg-deep: #0f1722;
  --surface: #172232;
  --surface-2: #202b3a;
  --surface-3: #29384b;
  --line: #344357;
  --accent: #52749b;
  --accent-2: #6687ad;
}

button,
input[type="submit"],
.btn,
.panel button,
.panel button[type="submit"],
.panel .btn,
.page-header .btn {
  border: 1px solid #43566d !important;
  background: #52749b !important;
  color: #f8fbff !important;
  box-shadow: none !important;
}

button:hover,
input[type="submit"]:hover,
.btn:hover,
.panel button:hover,
.panel .btn:hover,
.page-header .btn:hover {
  background: #6687ad !important;
}

.btn-secondary,
.btn-minor,
.panel .btn-secondary,
.panel .btn-minor,
button.btn-secondary,
button.btn-minor,
a.btn-secondary {
  border: 1px solid #3a4b60 !important;
  background: #243247 !important;
  color: #dbe7f7 !important;
}

.nav-btn {
  background: transparent !important;
  border: 0 !important;
}

.confidentiality-panel {
  padding: 0 !important;
  overflow: hidden;
}

.confidentiality-notice {
  margin: 0 !important;
  padding: 22px 24px !important;
  border: 1px solid #344357 !important;
  border-left: 4px solid #c6a15b !important;
  border-right: 0 !important;
  border-radius: 8px !important;
  background: #202b3a !important;
  color: #dbe7f7 !important;
  box-shadow: none !important;
  text-align: left !important;
}

.confidentiality-notice h2 {
  margin: 0 0 8px !important;
  color: #f8fafc !important;
  font-size: 1rem !important;
  letter-spacing: 0 !important;
}

.confidentiality-notice p {
  margin: 0 !important;
  color: #b8c7da !important;
  line-height: 1.55 !important;
}
