:root {
  --surface: #faf8ff;
  --surface-lowest: #ffffff;
  --surface-low: #f4f3fa;
  --surface-high: #e8e7ef;
  --surface-variant: #e3e2e9;
  --surface-outline: #c4c6d3;
  --outline: #747683;
  --text: #1a1b21;
  --muted: #444651;
  --primary: #00236b;
  --primary-strong: #1a3a8a;
  --primary-soft: #dbe1ff;
  --secondary-soft: #cdd6fd;
  --warning-strong: #ffb95f;
  --danger-bg: #ffdad6;
  --danger-border: #f0b6b0;
  --danger-text: #93000a;
  --info-bg: #eef3ff;
  --info-border: #c9d7ff;
  --info-text: #234191;
  --shadow-lg: 0 20px 70px rgba(20, 24, 39, 0.1);
  --shadow-md: 0 12px 30px rgba(20, 24, 39, 0.08);
}

:root.theme-dark {
  --surface: #0f172a;
  --surface-lowest: #101827;
  --surface-low: #172033;
  --surface-high: #1b2438;
  --surface-variant: #2a3448;
  --surface-outline: #334155;
  --outline: #7c8ba3;
  --text: #f5f7ff;
  --muted: #b6c0d5;
  --primary: #b4c5ff;
  --primary-strong: #dbe1ff;
  --primary-soft: rgba(180, 197, 255, 0.16);
  --secondary-soft: rgba(205, 214, 253, 0.16);
  --warning-strong: #ffce8d;
  --danger-bg: rgba(186, 26, 26, 0.2);
  --danger-border: rgba(255, 180, 171, 0.28);
  --danger-text: #ffd9d5;
  --info-bg: rgba(35, 65, 145, 0.22);
  --info-border: rgba(180, 197, 255, 0.28);
  --info-text: #dbe1ff;
  --shadow-lg: 0 20px 70px rgba(2, 6, 23, 0.45);
  --shadow-md: 0 12px 30px rgba(2, 6, 23, 0.35);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at top, rgba(180, 197, 255, 0.22), transparent 30%),
    var(--surface);
  color: var(--text);
}

/* Override Tailwind utility class `bg-surface` / panel `bg-surface-container-lowest` trong dark mode */
:root.theme-dark body,
:root.theme-dark body.bg-surface {
  background:
    radial-gradient(circle at top, rgba(180, 197, 255, 0.18), transparent 35%),
    var(--surface) !important;
  color: var(--text) !important;
}

:root.theme-dark .settings-panel,
:root.theme-dark .bg-surface-container-lowest {
  background-color: var(--surface-lowest) !important;
  color: var(--text) !important;
}

/* Buttons + link sử dụng Tailwind text-primary/border-outline-variant trong dark */
:root.theme-dark .text-primary,
:root.theme-dark #btnChangePassword {
  color: var(--primary) !important;
}

:root.theme-dark #btnChangePassword {
  border-color: rgba(180, 197, 255, 0.32) !important;
}

:root.theme-dark #btnChangePassword:hover {
  background-color: var(--surface-low) !important;
}

:root.theme-dark .link-inline {
  color: var(--primary-strong);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 20%, rgba(255, 221, 184, 0.18), transparent 24%),
    radial-gradient(circle at 90% 5%, rgba(205, 214, 253, 0.18), transparent 24%);
  z-index: -1;
}

.material-symbols-outlined {
  font-variation-settings: "FILL" 0, "wght" 400, "GRAD" 0, "opsz" 24;
}

.bg-primary-gradient {
  background: linear-gradient(135deg, #00236b 0%, #1a3a8a 100%);
}

.settings-page {
  width: 100%;
}

.settings-hero {
  height: clamp(8rem, 13vw, 10.5rem);
}

.profile-avatar-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  letter-spacing: -0.04em;
  text-transform: uppercase;
  color: #ffffff;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.3), transparent 36%),
    linear-gradient(135deg, #0f235a 0%, #3359c7 100%);
}

.avatar-frame {
  width: 4.4rem;
  height: 4.4rem;
  padding: 0.22rem;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-md);
}

.profile-avatar-display {
  width: 100%;
  height: 100%;
  border-radius: 0.7rem;
  font-size: 1.5rem;
}

.hero-role-badge {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: max-content;
  min-height: 1.9rem;
  padding: 0.25rem 0.85rem;
  border: 2px solid var(--surface-lowest);
  border-radius: 999px;
  background: var(--warning-strong);
  color: #2a1700;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-transform: uppercase;
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.12);
}

.settings-panel {
  position: relative;
  overflow: visible;
  min-height: 100vh;
  isolation: isolate;
  box-shadow: none;
}

.settings-panel > .settings-hero:first-child {
  overflow: hidden;
}

.settings-hero-top {
  display: flex;
  align-items: center;
}

.hero-back-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.8rem;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-decoration: none;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    border-color 0.18s ease;
}

.hero-back-link:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.28);
  transform: translateY(-1px);
}

.settings-hero-profile {
  display: flex;
  align-items: flex-end;
}

.hero-profile-row {
  display: flex;
  align-items: flex-end;
  gap: 1rem;
  min-height: 5rem;
}

.hero-avatar-stack {
  position: relative;
  display: flex;
  flex: 0 0 auto;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: 0.9rem;
}

.hero-summary {
  display: flex;
  min-width: 0;
  flex-direction: column;
  gap: 0.48rem;
  padding-bottom: 0.45rem;
}

.hero-eyebrow {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}

.hero-name {
  margin: 0;
  color: #ffffff;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.25rem, 2vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.05;
}

.hero-department {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.25;
}

.hero-eyebrow {
  font-size: 0.6rem !important;
  letter-spacing: 0.24em !important;
}

.settings-grid {
  position: relative;
  align-content: start;
  gap: 1.2rem 4rem;
}

.settings-panel form {
  display: flex;
  min-height: 0;
  flex-direction: column;
}

/* Compact inputs cho desktop (mobile vẫn dùng default thoáng hơn) */
@media (min-width: 768px) {
  input.setting-input,
  input.setting-input[type],
  .setting-input,
  .field-dropdown-toggle,
  .modal-label input {
    min-height: 2.4rem;
    padding: 0.5rem 0.85rem;
    border-radius: 0.7rem;
  }

  .setting-field {
    gap: 0.25rem;
  }

  .setting-field-label {
    font-size: 0.6rem;
    margin-bottom: 0;
  }

  .role-row {
    min-height: 2.4rem;
    padding: 0.3rem 0;
  }

  .role-pill-display {
    min-height: 1.85rem;
    font-size: 0.74rem;
    padding: 0.3rem 0.85rem;
  }

  .hero-back-link {
    min-height: 2.2rem;
    padding: 0.45rem 0.85rem;
    font-size: 0.7rem;
  }

  .hero-role-badge {
    min-height: 1.55rem;
    padding: 0.18rem 0.7rem;
    font-size: 0.58rem;
  }

  .settings-hero-top {
    top: 1rem !important;
    left: 1.5rem !important;
  }

  .settings-hero-profile {
    bottom: 1rem !important;
    left: 1.5rem !important;
    right: 1.5rem !important;
  }
}

/* Khoá viewport: container không vượt quá 1 màn — không scroll dọc */
@media (min-width: 768px) {
  body {
    min-height: 100vh;
  }

  main.settings-page {
    min-height: 100vh;
  }

  .settings-panel {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
  }

  form.settings-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
  }

  .settings-actions {
    margin-bottom: 0.9rem !important;
  }

  /* Khi đủ cao thì không cần scroll */
  html, body {
    overflow-x: hidden;
  }
}

.setting-field {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.setting-field.dropdown-active {
  z-index: 520;
}

.setting-field-label {
  display: block;
  margin: 0 0 0.15rem;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.setting-field-label-inline {
  margin-bottom: 0;
}

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

/* `input.setting-input` để thắng specificity của Tailwind Forms ([type="text"] etc.) */
input.setting-input,
input.setting-input[type],
.setting-input,
.field-dropdown-toggle,
.modal-label input {
  width: 100%;
  min-height: 3.3rem;
  padding: 0.92rem 1rem;
  border: 1px solid transparent;
  border-radius: 0.9rem;
  background-color: var(--surface-low);
  background-image: none;
  color: var(--text);
  font: inherit;
  font-weight: 600;
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background-color 0.18s ease,
    transform 0.18s ease;
}

.setting-input::placeholder,
.field-dropdown-toggle::placeholder,
.modal-label input::placeholder {
  color: color-mix(in srgb, var(--muted) 72%, transparent);
  font-weight: 500;
}

input.setting-input:focus,
input.setting-input[type]:focus,
.setting-input:focus,
.field-dropdown.open .field-dropdown-toggle,
.field-dropdown-toggle:focus,
.modal-label input:focus {
  border-color: rgba(0, 35, 107, 0.22);
  box-shadow: 0 0 0 4px rgba(26, 58, 138, 0.08);
  background-color: var(--surface-lowest);
}

.setting-input[readonly],
.setting-input.is-readonly {
  color: color-mix(in srgb, var(--text) 90%, transparent);
  cursor: default;
}

/* Chrome/Safari autofill: ép màu chữ + nền theo theme (đặc biệt dark mode) */
.setting-input:-webkit-autofill,
.setting-input:-webkit-autofill:hover,
.setting-input:-webkit-autofill:focus,
.setting-input:-webkit-autofill:active,
.modal-label input:-webkit-autofill,
.modal-label input:-webkit-autofill:hover,
.modal-label input:-webkit-autofill:focus {
  -webkit-text-fill-color: var(--text);
  caret-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-low) inset;
  box-shadow: 0 0 0 1000px var(--surface-low) inset;
  transition: background-color 5000s ease-in-out 0s;
}

:root.theme-dark input.setting-input,
:root.theme-dark input.setting-input[type],
:root.theme-dark .setting-input,
:root.theme-dark .field-dropdown-toggle,
:root.theme-dark .modal-label input {
  color: var(--text);
  caret-color: var(--text);
  background-color: var(--surface-low);
  background-image: none;
}

:root.theme-dark .setting-input:-webkit-autofill,
:root.theme-dark .setting-input:-webkit-autofill:hover,
:root.theme-dark .setting-input:-webkit-autofill:focus,
:root.theme-dark .modal-label input:-webkit-autofill {
  -webkit-text-fill-color: var(--text);
  -webkit-box-shadow: 0 0 0 1000px var(--surface-low) inset;
  box-shadow: 0 0 0 1000px var(--surface-low) inset;
}

/* Khi focus trong dark mode dùng surface-lowest cho contrast đủ */
:root.theme-dark .setting-input:focus,
:root.theme-dark .field-dropdown.open .field-dropdown-toggle,
:root.theme-dark .field-dropdown-toggle:focus,
:root.theme-dark .modal-label input:focus {
  border-color: rgba(180, 197, 255, 0.45);
  box-shadow: 0 0 0 4px rgba(180, 197, 255, 0.16);
  background: var(--surface-lowest);
}

:root.theme-dark .setting-input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px var(--surface-lowest) inset;
  box-shadow: 0 0 0 1000px var(--surface-lowest) inset;
}

/* date input picker indicator: đảo trắng trong dark mode */
:root.theme-dark .setting-input[type="date"]::-webkit-calendar-picker-indicator,
:root.theme-dark .setting-input[type="datetime-local"]::-webkit-calendar-picker-indicator,
:root.theme-dark .setting-input[type="time"]::-webkit-calendar-picker-indicator {
  filter: invert(1) brightness(1.1);
  cursor: pointer;
}

/* Nếu hệ thống đang dark scheme, browser tự render input dark; ép cho phù hợp */
:root.theme-dark {
  color-scheme: dark;
}
:root.theme-light {
  color-scheme: light;
}

.setting-input:disabled,
.field-dropdown-toggle:disabled,
.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.field-dropdown {
  position: relative;
  z-index: 1;
}

.field-dropdown.open {
  z-index: 620;
}

.field-dropdown.opens-up .profile-dropdown-menu {
  top: auto;
  bottom: calc(100% + 0.55rem);
}

.field-dropdown::after {
  content: "expand_more";
  position: absolute;
  top: 50%;
  right: 0.95rem;
  transform: translateY(-50%);
  font-family: "Material Symbols Outlined";
  font-size: 1.15rem;
  color: color-mix(in srgb, var(--muted) 88%, transparent);
  pointer-events: none;
}

.field-dropdown .field-dropdown-toggle {
  padding-right: 2.8rem;
  cursor: pointer;
}

.profile-dropdown-menu {
  position: absolute;
  top: calc(100% + 0.55rem);
  left: 0;
  z-index: 640;
  width: 100%;
  max-height: min(22rem, calc(100vh - 6rem));
  overflow: auto;
  padding: 0.35rem;
  border: 1px solid rgba(116, 118, 131, 0.18);
  border-radius: 0.95rem;
  background: var(--surface-lowest);
  box-shadow: 0 22px 50px rgba(20, 24, 39, 0.16);
  overscroll-behavior: contain;
}

.profile-dropdown-item {
  width: 100%;
  border: none;
  border-radius: 0.75rem;
  background: transparent;
  padding: 0.75rem 0.9rem;
  color: var(--text);
  font: inherit;
  font-size: 0.92rem;
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.profile-dropdown-item:hover,
.profile-dropdown-item:focus-visible {
  background: color-mix(in srgb, var(--secondary-soft) 55%, var(--surface-lowest));
  color: var(--primary);
  outline: none;
}

.profile-dropdown-item:disabled {
  color: var(--muted);
  cursor: not-allowed;
}

.link-inline {
  border: none;
  background: transparent;
  padding: 0;
  color: var(--primary-strong);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: opacity 0.18s ease;
}

.link-inline:hover {
  opacity: 0.78;
}

.role-row {
  display: flex;
  align-items: center;
  min-height: 3.3rem;
  padding: 0.6rem 0;
}

.role-pill-display {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 2.2rem;
  padding: 0.35rem 1rem;
  border-radius: 999px;
  background: var(--secondary-soft);
  color: var(--primary-strong);
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.alert {
  margin-top: 0.95rem;
  border: 1px solid transparent;
  border-radius: 0.95rem;
  padding: 0.95rem 1rem;
  font-size: 0.92rem;
  line-height: 1.55;
}

.alert.error {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-text);
}

.alert.info {
  background: var(--info-bg);
  border-color: var(--info-border);
  color: var(--info-text);
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.25rem;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(100%, 30rem);
  border: 1px solid rgba(116, 118, 131, 0.18);
  border-radius: 1.25rem;
  background: var(--surface-lowest);
  padding: 1.6rem;
  box-shadow: var(--shadow-lg);
}

.modal-dialog h2 {
  margin: 0 0 0.55rem;
  font-family: "Manrope", sans-serif;
  font-size: 1.4rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--primary);
}

.modal-text {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

.modal-label {
  display: block;
}

.modal-label span {
  display: block;
  margin-bottom: 0.45rem;
  font-size: 0.75rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.75rem;
  margin-top: 1rem;
}

.modal-actions-center {
  justify-content: center;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 7rem;
  min-height: 2.9rem;
  border: 1px solid transparent;
  border-radius: 0.85rem;
  padding: 0.72rem 1.1rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn.primary {
  background: linear-gradient(135deg, #00236b 0%, #1a3a8a 100%);
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(26, 58, 138, 0.22);
}

.btn.secondary {
  border-color: rgba(116, 118, 131, 0.22);
  background: var(--surface-low);
  color: var(--text);
}

.mobile-nav-item {
  display: inline-flex;
  min-width: 4.7rem;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border-radius: 0.9rem;
  padding: 0.35rem 0.65rem;
  color: #94a3b8;
  text-decoration: none;
  transition:
    transform 0.16s ease,
    color 0.16s ease,
    background 0.16s ease;
}

.mobile-nav-item:active {
  transform: scale(0.94);
}

.mobile-nav-item.is-active {
  background: rgba(205, 214, 253, 0.55);
  color: var(--primary);
}

.mobile-nav-label {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hidden {
  display: none !important;
}

@media (max-width: 767px) {
  .settings-panel {
    min-height: auto;
  }

  .settings-panel form {
    min-height: 0;
  }

  .settings-hero {
    height: 19rem;
  }

  .hero-profile-row {
    gap: 1rem;
    min-height: 9rem;
  }

  .hero-summary {
    max-width: min(58vw, 20rem);
    padding-bottom: 0.55rem;
  }

  .avatar-frame {
    width: 7rem;
    height: 7rem;
  }

  .profile-avatar-display {
    font-size: 2.3rem;
  }

  .hero-avatar-stack {
    padding-bottom: 1.35rem;
  }

  .hero-role-badge {
    left: 50%;
    bottom: 0.35rem;
    padding-inline: 0.7rem;
  }

  .field-header {
    flex-wrap: wrap;
    align-items: flex-start;
  }

  .profile-dropdown-menu {
    max-height: min(18rem, calc(100vh - 8rem));
  }
}

@media (max-width: 639px) {
  .settings-hero-top {
    left: 1.1rem;
    right: 1.1rem;
  }

  .hero-back-link {
    width: 100%;
    justify-content: center;
    letter-spacing: 0.14em;
  }

  .settings-hero-profile {
    bottom: 1.25rem;
    left: 1.1rem;
    right: 1.1rem;
  }

  .hero-profile-row {
    gap: 0.85rem;
    min-height: 0;
  }

  .hero-summary {
    max-width: none;
    padding-bottom: 0.15rem;
  }

  .hero-name {
    font-size: 2rem;
  }

  .hero-department {
    font-size: 0.9rem;
  }

  .hero-avatar-stack {
    padding-bottom: 1.25rem;
  }

  .modal {
    align-items: flex-end;
    padding: 0;
  }

  .modal-dialog {
    width: 100%;
    border-bottom-right-radius: 0;
    border-bottom-left-radius: 0;
    padding: 1.35rem 1.1rem 1.15rem;
  }

  .modal-actions {
    flex-direction: column-reverse;
  }

  .modal-actions .btn {
    width: 100%;
  }
}

/* ═════════════════ Phase Auth.3 (2026-05-29): Profile readonly polish ═════════════════ */

/* Info banner */
.profile-hint {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: linear-gradient(135deg, #eef2ff 0%, #f0f9ff 100%);
  border: 1px solid #c7d2fe;
  border-radius: 10px;
  padding: 12px 14px;
  margin: 0 0 28px;
  color: #1e3a8a;
  font: 500 13px/1.5 -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
}
.profile-hint-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  margin-top: 1px;
  color: #1E3A8A;
}

/* Settings grid — 2 cột rộng rãi, gap rõ ràng */
.settings-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 36px;
  row-gap: 22px;
}
@media (min-width: 768px) {
  .settings-grid { grid-template-columns: 1fr 1fr; }
}

/* Field */
.setting-field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Label — icon + text */
.setting-field-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font: 600 11.5px/1.2 -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: #5b6072;
  margin: 0;
}
.field-icon {
  width: 16px;
  height: 16px;
  color: #1E3A8A;
  flex-shrink: 0;
}

/* Input — bigger padding, clear background */
.setting-input {
  width: 100%;
  padding: 13px 16px;
  border: 1px solid #e6e8ee;
  border-radius: 10px;
  font: 500 14px/1.4 -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
  color: #1a1f33;
  background: #ffffff;
  transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.setting-input:focus {
  outline: none;
  border-color: #1E3A8A;
  box-shadow: 0 0 0 3px rgba(30,58,138,0.08);
}
.setting-input.is-readonly {
  background: #f7f8fb !important;
  color: #1a1f33;
  cursor: default;
  border-color: #e6e8ee;
}
.setting-input.is-readonly:focus {
  box-shadow: none;
  border-color: #e6e8ee;
}

/* Role row + pill */
.role-row {
  display: flex;
  align-items: center;
  min-height: 48px;
}
.role-pill-display {
  display: inline-block;
  padding: 8px 16px;
  border-radius: 999px;
  font: 600 12.5px/1.2 -apple-system, "Inter", "Segoe UI", Roboto, sans-serif;
  letter-spacing: .4px;
  text-transform: uppercase;
  border: 1px solid transparent;
}
.role-pill-display.access-l1 {
  background: #eef2ff;
  color: #1E3A8A;
  border-color: #c7d2fe;
}
.role-pill-display.access-l2 {
  background: #ecfeff;
  color: #0e7490;
  border-color: #a5f3fc;
}
.role-pill-display.access-l3 {
  background: linear-gradient(135deg, #fed7aa, #fdba74);
  color: #7c2d12;
  border-color: #f97316;
}
.role-pill-display.access-l4 {
  background: linear-gradient(135deg, #fef9c3, #fde68a);
  color: #78350f;
  border-color: #fbbf24;
  box-shadow: 0 2px 6px rgba(251, 191, 36, 0.28);
}

/* Profile form spacing */
.settings-form {
  padding-top: 24px;
}
