.settings-card {
  border-radius: 12px;
  border: 1px solid #a8b8d0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
  height: 100%;
}

.settings-section-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-modal {
  border-radius: 12px;
  border: 1px solid #a8b8d0;
  box-shadow: 0 20px 40px -26px rgba(15, 23, 42, 0.45);
  overflow: hidden;
}

.settings-modal .modal-header {
  border-bottom: 1px solid #a8b8d0;
  padding: 0.78rem 0.95rem;
  background: #dfe6f3;
}

.settings-modal .modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: #111827;
}

.settings-modal-body {
  background: #ffffff;
  padding: 0.82rem 0.92rem;
}

.settings-form {
  background: #ffffff;
  border: 1px solid #a8b8d0;
  border-radius: 10px;
  padding: 0.78rem;
}

.settings-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #2d3e54;
}

.settings-input {
  border-radius: 8px;
  border-color: #94a7c2;
  font-size: 0.9rem;
  min-height: 34px;
}

.settings-input:focus {
  border-color: #2563eb;
  box-shadow: 0 0 0 0.16rem rgba(37, 99, 235, 0.15);
}

.settings-modal-footer {
  border-top: 1px solid #a8b8d0;
  background: #fbfcfe;
  padding: 0.7rem 0.92rem;
}

.settings-modal-footer .btn {
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.42rem 0.68rem;
}

/* Dark theme */
:root[data-theme="dark"] .settings-card {
  border-color: var(--ui-border);
  box-shadow: 0 1px 3px rgba(2, 6, 23, 0.3);
}

:root[data-theme="dark"] .settings-modal {
  border-color: var(--ui-border);
  box-shadow: 0 24px 40px -30px rgba(2, 6, 23, 0.9);
}

:root[data-theme="dark"] .settings-modal .modal-header {
  border-bottom-color: var(--ui-border);
  background: #162436;
}

:root[data-theme="dark"] .settings-modal .modal-title {
  color: var(--ui-heading);
}

:root[data-theme="dark"] .settings-modal-body {
  background: var(--ui-surface);
}

:root[data-theme="dark"] .settings-form {
  background: #111b2a;
  border-color: #30425e;
}

:root[data-theme="dark"] .settings-label {
  color: #9fb0c8;
}

:root[data-theme="dark"] .settings-input {
  border-color: var(--ui-input-border);
  background: var(--ui-input-bg);
  color: var(--ui-text);
}

:root[data-theme="dark"] .settings-input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 0.16rem rgba(96, 165, 250, 0.22);
}

:root[data-theme="dark"] .settings-modal-footer {
  border-top-color: var(--ui-border);
  background: #162436;
}
