/* Painel admin + login — primários alinhados à identidade Wake (wake.tech) */
:root {
  --wake-purple: #9b51e0;
  --wake-purple-hover: #8232c8;
  --wake-cyan: #66d9ef;
  --wake-dark: #1a1a1a;
  --text-navy: #172b4d;
  --text: #253858;
  --muted: #5e6c84;
  --border: #dfe1e6;
  --surface: #ffffff;
  --bg: #f4f5f7;
  --sidebar-bg: #ebecf0;
  --primary: var(--wake-purple);
  --primary-hover: var(--wake-purple-hover);
  --accent-top: var(--wake-cyan);
  --success: #36b37e;
  --warning: #ffab00;
  --danger: #de350b;
  --danger-hover: #bf2600;
  --info: #2a9eb7;
  --shadow-card: 0 1px 2px rgba(9, 30, 66, 0.08), 0 4px 12px rgba(9, 30, 66, 0.06);
  --radius: 4px;
  --radius-lg: 6px;
}

html {
  height: 100%;
  color-scheme: light;
}

html.spm-dark {
  color-scheme: dark;
  --text-navy: #e8edf4;
  --text: #c9d1d9;
  --muted: #94a3b8;
  --border: #334155;
  --surface: #1e293b;
  --bg: #0f172a;
  --sidebar-bg: #151c2c;
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 16px rgba(0, 0, 0, 0.35);
}

html.spm-dark .nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.spm-dark .nav-item.active {
  background: rgba(155, 81, 224, 0.22);
}

html.spm-dark .profile-menu-trigger:hover {
  background: var(--surface);
  border-color: var(--border);
}

html.spm-dark .error {
  background: rgba(222, 53, 11, 0.18);
  color: #fecaca;
  border-color: rgba(248, 113, 113, 0.45);
}

html.spm-dark input:focus,
html.spm-dark select:focus,
html.spm-dark textarea:focus {
  box-shadow: 0 0 0 2px rgba(155, 81, 224, 0.4);
}

html.spm-dark body.login-body:not(.login-has-custom-bg) {
  background: linear-gradient(165deg, #0f172a 0%, #1e293b 45%, #0f172a 100%);
}

html.spm-dark .login-card h1 {
  color: var(--text-navy);
}

html.spm-dark .admin-table tbody tr:hover td {
  background: rgba(255, 255, 255, 0.04);
}

html.spm-dark .admin-modal-backdrop {
  background: rgba(0, 0, 0, 0.62);
}

html.spm-dark .app-toast:not(.app-toast-error) {
  background: #334155;
  color: #f8fafc;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  font-size: 15px;
}

body.admin-shell {
  border-top: 3px solid var(--accent-top);
  min-height: 100vh;
  min-height: 100dvh;
  height: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.muted {
  color: var(--muted);
}
.small {
  font-size: 0.875rem;
}

.layout {
  display: flex;
  flex: 1;
  min-height: 0;
  width: 100%;
}

.sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  padding: 1.25rem 0;
  position: sticky;
  top: 0;
  align-self: flex-start;
  max-height: 100vh;
  max-height: 100dvh;
  min-height: 0;
  overflow: hidden;
}

.sidebar-top {
  flex-shrink: 0;
}

.sidebar-brand-block {
  text-align: center;
  padding: 0 0.85rem 0.65rem;
}

.sidebar-brand-title {
  display: inline-block;
  font-weight: 700;
  font-size: 0.95rem;
  color: var(--text-navy);
  letter-spacing: -0.02em;
  line-height: 1.35;
  max-width: 100%;
}

a.sidebar-brand-title {
  color: inherit;
  text-decoration: none;
}

a.sidebar-brand-title:hover {
  color: var(--wake-purple);
}

.brand {
  font-weight: 700;
  padding: 0 1.25rem 1.1rem;
  font-size: 0.95rem;
  color: var(--text-navy);
  letter-spacing: -0.02em;
  line-height: 1.35;
}
a.brand {
  color: inherit;
  text-decoration: none;
}
a.brand:hover {
  color: var(--wake-purple);
}

.nav {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  overflow-x: hidden;
  overflow-y: auto;
}

.nav-label {
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  padding: 0.85rem 1.25rem 0.35rem;
  font-weight: 600;
}

.nav-item {
  padding: 0.5rem 1.25rem;
  margin: 0 0.5rem;
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  border-left: 3px solid transparent;
}

.nav-item:hover {
  background: rgba(9, 30, 66, 0.06);
}
.nav-item.active {
  background: rgba(155, 81, 224, 0.12);
  border-left-color: var(--primary);
  color: var(--primary);
  font-weight: 600;
}

.nav-item.external {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.875rem;
}
.nav-subgroup {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-bottom: 0.2rem;
}

.nav-item.nav-item-sub {
  padding-left: 1.85rem;
  font-size: 0.875rem;
  font-weight: 450;
}

.nav-page-block {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
  margin-bottom: 0.2rem;
}

.nav-page-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: calc(100% - 1rem);
  margin: 0 0.5rem;
  padding: 0.5rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: transparent;
  font: inherit;
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  border-left: 3px solid transparent;
}

.nav-page-toggle:hover {
  background: rgba(9, 30, 66, 0.06);
}

.nav-page-chevron {
  flex-shrink: 0;
  opacity: 0.55;
  transition: transform 0.2s ease;
}

.nav-page-toggle[aria-expanded='true'] .nav-page-chevron {
  transform: rotate(180deg);
}

.nav-submenu-panel {
  display: flex;
  flex-direction: column;
  gap: 0.05rem;
}

html.spm-dark .nav-page-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
}

.nav-sublabel {
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.45rem 1.85rem 0.15rem;
  font-weight: 600;
}

#emailTplListBody tr.email-tpl-row-active {
  background: rgba(155, 81, 224, 0.1);
  outline: 1px solid rgba(155, 81, 224, 0.35);
}

.nav-item.external::after {
  content: "";
  width: 0.65rem;
  height: 0.65rem;
  background: currentColor;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='black' d='M2 2h3V0H0v5h2V3.41L5.29 6.7l1.42-1.42L3.41 2H2zm7 2V0H6v2h3v3h2V4h3v8H4V7H2v7h12V4H9z'/%3E%3C/svg%3E")
    center / contain no-repeat;
  opacity: 0.7;
}

.sidebar-foot a.nav-item.external.sidebar-foot-external::after {
  display: none;
}

.sidebar-foot {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.sidebar-foot-row {
  display: flex;
  justify-content: stretch;
  margin-bottom: 0.5rem;
}

.sidebar-theme-cycle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  flex: 1;
  min-height: 1.55rem;
  padding: 0.15rem 0.4rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font: inherit;
  font-size: 0.6875rem;
  font-weight: 500;
  line-height: 1.15;
  cursor: pointer;
}

.sidebar-theme-cycle-word {
  font-weight: 600;
  color: var(--text);
  font-size: 0.6875rem;
}

.sidebar-theme-cycle-sub {
  font-size: 0.625rem;
  font-weight: 500;
  color: var(--muted);
}

.sidebar-theme-cycle:hover {
  border-color: #c1c7d0;
  background: var(--bg);
}

html.spm-dark .sidebar-theme-cycle {
  background: var(--bg);
  border-color: var(--border);
}

html.spm-dark .sidebar-theme-cycle:hover {
  border-color: #475569;
}

html.spm-dark .sidebar-theme-cycle-sub {
  color: var(--muted);
}

.main {
  flex: 1;
  padding: 1.75rem 2.25rem 3rem;
  overflow-x: hidden;
  overflow-y: auto;
  background: var(--surface);
  min-width: 0;
  min-height: 0;
}

body.admin-shell .main {
  min-height: 0;
  overflow-y: auto;
}

.main-head-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.main-head-profile {
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.profile-menu-wrap {
  position: relative;
}

.profile-menu-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.35rem 0.2rem 0.2rem;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease;
}

.profile-menu-trigger:hover {
  background: var(--bg);
  border-color: #c1c7d0;
}

.profile-menu-avatar {
  border-radius: 50%;
  object-fit: cover;
  width: 32px;
  height: 32px;
  display: block;
}

.profile-menu-initial {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
}

.profile-menu-chevron {
  flex-shrink: 0;
  color: var(--muted);
  margin-right: 0.15rem;
}

.profile-menu-dropdown {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  min-width: 12rem;
  padding: 0.35rem 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  z-index: 2000;
}

.profile-menu-signed {
  margin: 0;
  padding: 0.35rem 1rem 0.5rem;
  line-height: 1.35;
  border-bottom: 1px solid var(--border);
}

.profile-menu-item {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 500;
}

a.profile-menu-item:hover {
  background: var(--bg);
  color: var(--primary);
}

.profile-menu-item-btn {
  width: 100%;
  text-align: left;
  border: none;
  background: none;
  cursor: pointer;
  font: inherit;
  font-weight: 500;
  color: var(--text);
}

.profile-menu-item-btn:hover {
  background: var(--bg);
  color: var(--danger);
}

.profile-menu-sep {
  height: 1px;
  margin: 0.35rem 0;
  background: var(--border);
  border: none;
}

.profile-menu-theme-row {
  padding: 0.35rem 1rem 0.6rem;
}

.profile-menu-theme-label {
  display: block;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.profile-theme-select {
  width: 100%;
  margin-top: 0;
  padding: 0.45rem 0.5rem;
  font-size: 0.8125rem;
}

.login-theme-footer {
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.login-theme-footer label {
  display: inline;
  margin-right: 0.5rem;
  font-size: 0.8125rem;
}

.login-theme-footer select {
  display: inline-block;
  width: auto;
  min-width: 11rem;
  margin-top: 0;
  vertical-align: middle;
}

.tenant-switch-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
}

.tenant-switch-wrap.tenant-switch-wrap--sidebar {
  flex-direction: column;
  align-items: stretch;
  gap: 0.35rem;
  width: calc(100% - 2.5rem);
  margin: 0 auto 1.1rem;
  padding: 0 0.25rem;
  box-sizing: border-box;
}

.tenant-switch-sidebar-label {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.tenant-switch-select {
  min-width: 11rem;
  max-width: min(24rem, 100%);
  font-size: 0.875rem;
}

.tenant-switch-select--sidebar {
  min-width: 0;
  width: 100%;
  max-width: none;
}

.tenant-switch-dropdown-root {
  position: relative;
  width: 100%;
}

.tenant-switch-trigger {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.4rem 0.5rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  font: inherit;
  cursor: pointer;
  text-align: left;
  color: var(--text);
  transition: background 0.12s ease, border-color 0.12s ease;
}

.tenant-switch-trigger:hover {
  background: var(--bg);
  border-color: #c1c7d0;
}

.tenant-switch-logo {
  flex-shrink: 0;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 700;
  color: #fff;
  line-height: 1;
}

.tenant-switch-name {
  flex: 1;
  min-width: 0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switch-chevron {
  flex-shrink: 0;
  opacity: 0.5;
  transition: transform 0.2s ease;
}

.tenant-switch-trigger[aria-expanded='true'] .tenant-switch-chevron {
  transform: rotate(180deg);
}

.tenant-switch-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 4px);
  z-index: 100;
  padding: 0.35rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow-card, 0 4px 14px rgba(9, 30, 66, 0.12));
  max-height: min(50vh, 18rem);
  overflow-x: hidden;
  overflow-y: auto;
}

.tenant-switch-dropdown-list {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 0.3rem;
}

.tenant-switch-dd-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.45rem 0.55rem;
  border: none;
  border-radius: 6px;
  background: transparent;
  font: inherit;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: background 0.12s ease;
}

.tenant-switch-dd-row:hover {
  background: var(--bg);
}

.tenant-switch-dd-row--current {
  background: rgba(155, 81, 224, 0.08);
}

.tenant-switch-dd-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tenant-switch-dd-badge {
  flex-shrink: 0;
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

html.spm-dark .tenant-switch-trigger:hover {
  border-color: #475569;
}

html.spm-dark .tenant-switch-dropdown {
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.35);
}

html.spm-dark .tenant-switch-dd-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

html.spm-dark .tenant-switch-dd-row--current {
  background: rgba(155, 81, 224, 0.15);
}

.main-head h1 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--text-navy);
  letter-spacing: -0.02em;
}
.main-head .muted {
  font-size: 0.875rem;
  margin: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  max-width: 800px;
  margin-top: 1.25rem;
  box-shadow: var(--shadow-card);
}

/* Listas largas (ex.: usuários) usam a área útil do painel */
.card-fluid {
  max-width: none;
  width: 100%;
}
.card > h2:first-child {
  color: var(--text-navy);
}

.btn {
  font: inherit;
  cursor: pointer;
  border-radius: var(--radius);
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text);
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn:hover {
  background: var(--bg);
}

.btn.primary {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}
.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--border);
}
.btn.secondary:hover {
  background: var(--bg);
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--accent);
  cursor: pointer;
  font-size: 0.875rem;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.btn-link:hover {
  color: var(--accent-hover, var(--accent));
  opacity: 0.85;
}

/* ── User list tabs ────────────────────────────────────────── */
.lu-tab {
  background: var(--bg-card, var(--bg));
  border: 1px solid var(--border);
  color: var(--text-muted, var(--text));
  font-size: 0.85rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lu-tab:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lu-tab.lu-tab-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}
.lu-product-filter-btn {
  background: var(--bg-card, var(--bg));
  border: 1px solid var(--border);
  color: var(--text-muted, var(--text));
  font-size: 0.8rem;
  padding: 0.2rem 0.7rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.lu-product-filter-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.lu-product-filter-btn.lu-tab-active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.btn.destructive,
.btn.btn-destructive {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}
.btn.destructive:hover,
.btn.btn-destructive:hover {
  background: var(--danger-hover);
  border-color: var(--danger-hover);
}

.btn.text {
  border: none;
  background: none;
  color: var(--primary);
  padding-left: 0.35rem;
  padding-right: 0.35rem;
  font-weight: 500;
}
.btn.text:hover {
  text-decoration: underline;
  background: none;
}

.btn.full {
  width: 100%;
  margin-top: 0.75rem;
}

label {
  display: block;
  margin-top: 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
}
input,
select,
textarea {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  color: var(--text);
  background: var(--surface);
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

.error {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  background: #ffebe6;
  color: var(--danger-hover);
  border-radius: var(--radius);
  font-size: 0.875rem;
  border: 1px solid #ffbdad;
}
.hidden {
  display: none !important;
}

/**
 * Prime paint: menu lateral admin visível antes do fetch /api/auth/me (sessionStorage spm_shell_nav_v1).
 * Sobrescreve .hidden só no shell; o JS real ajusta logo a seguir.
 */
html.spm-shell-nav-primed[data-spm-admin='1'] aside.sidebar span.nav-label.nav-admin-only.hidden:not(.nav-corp-admin-only) {
  display: block !important;
}
html.spm-shell-nav-primed[data-spm-admin='1'] aside.sidebar div.nav-subgroup.nav-admin-only.hidden:not(.nav-corp-admin-only),
html.spm-shell-nav-primed[data-spm-admin='1'] aside.sidebar div.nav-page-block.nav-admin-only.hidden:not(.nav-corp-admin-only) {
  display: flex !important;
}
html.spm-shell-nav-primed[data-spm-admin='1'] aside.sidebar a.nav-item.nav-admin-only.hidden:not(.nav-corp-admin-only) {
  display: block !important;
}
html.spm-shell-nav-primed[data-spm-admin='1'][data-spm-corp='1']
  aside.sidebar
  a.nav-item.nav-admin-only.nav-corp-admin-only.hidden {
  display: block !important;
}
html.spm-shell-nav-primed[data-spm-admin='1'] #profileMenuDropdown a.profile-menu-item.nav-admin-only.hidden:not(.nav-corp-admin-only) {
  display: block !important;
}

/* Login */
.login-body {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  background: linear-gradient(165deg, #f4f5f7 0%, #e9eaf0 50%, #dfe1e8 100%);
  position: relative;
}
.login-body.login-has-custom-bg {
  background: #1a1d26;
}
.login-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.login-bg-layer::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  pointer-events: none;
}
.login-card {
  position: relative;
  z-index: 1;
}
.login-body::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--accent-top);
  z-index: 10;
}
.login-card {
  width: 100%;
  max-width: 420px;
  margin: 0;
  box-shadow: var(--shadow-card), 0 12px 40px rgba(9, 30, 66, 0.1);
}
.login-has-custom-bg .login-card {
  box-shadow: var(--shadow-card), 0 16px 48px rgba(0, 0, 0, 0.35);
}

.login-bg-preview-wrap {
  position: relative;
  margin: 1rem 0 0;
  min-height: 140px;
  border-radius: 8px;
  overflow: hidden;
  background: linear-gradient(165deg, #2c3344 0%, #1e2433 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.login-bg-preview-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 1rem;
  max-width: 28rem;
  margin: auto;
}
.login-bg-preview-fill {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.login-bg-preview-fill::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  pointer-events: none;
}
.login-card h1 {
  margin: 0 0 1.25rem;
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-navy);
}

/* ── MFA two-step login ── */
@keyframes spm-fade-in-up {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}
.two-fa-section { display: none; }
.two-fa-section.visible {
  display: block;
  animation: spm-fade-in-up 0.35s ease-out;
}
.two-fa-info {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 0.8rem 0.9rem;
  background: rgba(155, 81, 224, 0.08);
  border: 1px solid rgba(155, 81, 224, 0.25);
  border-radius: var(--radius-lg, 6px);
  margin-bottom: 1rem;
}
.two-fa-info svg { width: 20px; height: 20px; color: var(--primary, #9b51e0); flex-shrink: 0; margin-top: 1px; }
.two-fa-info p { font-size: 0.8125rem; margin: 0; color: var(--muted); line-height: 1.45; }
.two-fa-input {
  text-align: center;
  font-size: 1.6rem !important;
  font-family: ui-monospace, monospace !important;
  letter-spacing: 0.3em;
}
.two-fa-back {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.4rem;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 0.8125rem;
  cursor: pointer;
  transition: color 150ms ease;
}
.two-fa-back:hover { color: var(--text); }
.two-fa-back svg { width: 14px; height: 14px; }

/* ── MFA setup no perfil ── */
.mfa-setup-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 0.75rem 0;
}
.mfa-setup-qr-wrap img {
  max-width: 160px;
  height: auto;
  display: block;
  border-radius: var(--radius);
  background: #fff;
  padding: 6px;
}
.mfa-backup-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.25rem 0.75rem;
  margin: 0.5rem 0 0.75rem;
  font-family: ui-monospace, monospace;
  font-size: 0.85rem;
}
.mfa-backup-grid code {
  display: block;
  padding: 0.2rem 0.4rem;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  text-align: center;
}

.public-body {
  margin: 0;
}
.public-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: 1.5rem 2rem;
}
.public-header h1 {
  margin: 0;
  font-size: 1.5rem;
}
.public-main {
  padding: 1.5rem 2rem;
  max-width: 640px;
}
.public-main .card {
  max-width: none;
}
.list {
  margin: 0;
  padding-left: 1.25rem;
}

code {
  font-size: 0.85em;
  background: var(--bg);
  padding: 0.12em 0.4em;
  border-radius: 3px;
  border: 1px solid var(--border);
  color: var(--text-navy);
}

.admin-view.hidden {
  display: none !important;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.admin-table th,
.admin-table td {
  padding: 0.65rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}
.admin-table th {
  font-weight: 600;
  color: var(--muted);
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--bg);
}
.admin-table tr:last-child td {
  border-bottom: none;
}
.admin-table tbody tr:hover td {
  background: rgba(9, 30, 66, 0.02);
}

.admin-table-components th.admin-th-actions {
  width: 5.5rem;
  text-align: right;
}

.admin-table-components tbody td:last-child {
  text-align: right;
}

.admin-empty {
  color: var(--muted);
  font-size: 0.9rem;
  padding: 1rem 0;
}

.admin-form-row {
  margin-bottom: 1rem;
}
.admin-form-row label {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 0.35rem;
  margin-top: 0;
}
.sp-input-like {
  width: 100%;
  max-width: 28rem;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font: inherit;
  font-size: 0.875rem;
  box-sizing: border-box;
  background: var(--surface);
}
.sp-input-like:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 2px rgba(0, 82, 204, 0.2);
}

/* Select de status com indicador circular (componente) */
.status-select-wrap {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  max-width: 28rem;
}
.status-select-wrap .sp-input-like {
  flex: 1;
  margin-top: 0;
}
.status-select-wrap::before {
  content: "";
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  border-radius: 50%;
  background: #97a0af;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.95);
}
.status-select-wrap[data-status="operational"]::before {
  background: var(--success);
}
.status-select-wrap[data-status="degraded_performance"]::before {
  background: var(--warning);
}
.status-select-wrap[data-status="partial_outage"]::before {
  background: #ff8b00;
}
.status-select-wrap[data-status="major_outage"]::before {
  background: #de350b;
}
.status-select-wrap[data-status="under_maintenance"]::before {
  background: var(--info);
}

/* Pills de status nas tabelas */
.admin-status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text);
}
.admin-status-pill-dot {
  width: 0.625rem;
  height: 0.625rem;
  border-radius: 50%;
  flex-shrink: 0;
  background: #97a0af;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.9);
}
.admin-status-pill[data-status="operational"] .admin-status-pill-dot {
  background: var(--success);
}
.admin-status-pill[data-status="degraded_performance"] .admin-status-pill-dot {
  background: var(--warning);
}
.admin-status-pill[data-status="partial_outage"] .admin-status-pill-dot {
  background: #ff8b00;
}
.admin-status-pill[data-status="major_outage"] .admin-status-pill-dot {
  background: #de350b;
}
.admin-status-pill[data-status="under_maintenance"] .admin-status-pill-dot {
  background: var(--info);
}

.admin-menu-wrap {
  position: relative;
  display: inline-block;
  text-align: right;
}
.admin-menu-btn {
  padding: 0.25rem 0.5rem;
  font-size: 1.15rem;
  line-height: 1;
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  border-radius: var(--radius);
}
.admin-menu-btn:hover {
  background: var(--bg);
  color: var(--text);
}
.admin-dropdown-menu {
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.2rem;
  min-width: 10.5rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 16px rgba(9, 30, 66, 0.18);
  z-index: 40;
  padding: 0.35rem 0;
}
.admin-dropdown-menu.hidden {
  display: none !important;
}
.admin-dropdown-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.5rem 1rem;
  border: none;
  background: none;
  font: inherit;
  font-size: 0.875rem;
  cursor: pointer;
  color: var(--text);
}
.admin-dropdown-item:hover {
  background: var(--bg);
}
.admin-dropdown-item.danger {
  color: var(--danger);
  font-weight: 500;
}

.admin-subtabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  border-bottom: 1px solid var(--border);
  margin-top: 1rem;
}
.admin-subtab {
  background: none;
  border: none;
  padding: 0.65rem 1rem;
  font: inherit;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--muted);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
}
.admin-subtab:hover {
  color: var(--text);
}
.admin-subtab.active {
  color: var(--primary);
  border-bottom-color: var(--primary);
  font-weight: 600;
}

.btn.sub-danger {
  color: var(--danger);
}
.btn.sub-danger:hover {
  text-decoration: underline;
  color: var(--danger-hover);
}

.btn.outline-danger {
  background: transparent;
  color: var(--danger);
  border-color: var(--danger);
}
.btn.outline-danger:hover {
  background: var(--danger);
  color: #fff;
  border-color: var(--danger);
}

.sub-actions-cell {
  vertical-align: middle;
  white-space: normal;
}

.sub-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.sub-actions .btn.text {
  white-space: nowrap;
}

.component-editor-panel {
  margin: 1rem 0;
  padding: 1.25rem 1.35rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg);
}

.component-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.mfa-admin-divider {
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
}

/* Toasts (painel admin) */
#app-toast-root {
  position: fixed;
  bottom: 1.25rem;
  right: 1.25rem;
  z-index: 10050;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  pointer-events: none;
  max-width: min(22rem, calc(100vw - 2rem));
}

.app-toast {
  pointer-events: auto;
  padding: 0.65rem 1.15rem;
  border-radius: var(--radius);
  background: var(--text-navy);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.35;
  box-shadow: 0 4px 18px rgba(9, 30, 66, 0.22);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.app-toast-visible {
  opacity: 1;
  transform: translateY(0);
}

.app-toast-error {
  background: var(--danger);
}

body.admin-shell .nav-item:focus-visible,
body.admin-shell .btn:focus-visible,
body.admin-shell input:focus-visible,
body.admin-shell textarea:focus-visible,
body.admin-shell select:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

body.login-body .btn:focus-visible,
body.login-body input:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}

.user-head-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 0.25rem 0 0;
}

.user-avatar-mini {
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.profile-identity-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 1.25rem;
  margin: 1rem 0;
}

.profile-avatar-block {
  position: relative;
  flex-shrink: 0;
}

.profile-avatar-img {
  display: block;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.15);
}

.profile-avatar-placeholder {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 600;
  background: rgba(255, 255, 255, 0.08);
  color: var(--muted, #8b9cb3);
  border: 2px solid rgba(255, 255, 255, 0.12);
}

.profile-fields-readonly {
  flex: 1;
  min-width: 12rem;
}

.profile-fields-readonly .admin-form-row.tight {
  margin: 0.35rem 0;
}

.profile-label {
  display: inline-block;
  min-width: 5rem;
  color: var(--muted, #8b9cb3);
  font-size: 0.875rem;
  margin-right: 0.5rem;
}

.profile-avatar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
}

.audit-log-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: flex-end;
  margin: 1rem 0 0;
}

.audit-log-period {
  flex-direction: column;
  align-items: stretch;
  align-self: flex-start;
  min-width: min(100%, 18rem);
}

.audit-log-period-label {
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 0.35rem;
}

.audit-log-period-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.audit-log-filter.tight {
  margin-bottom: 0;
}

.audit-log-presets {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
  margin-top: 0.5rem;
}

.audit-log-filter {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.875rem;
}

.audit-log-pager {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}

/* ── Paginação padronizada (histórico e usuários) ── */
.sp-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--sp-border, rgba(0, 0, 0, .1));
}

.sp-pager-info {
  font-size: 0.8125rem;
  color: var(--muted-text, rgba(0, 0, 0, .5));
  white-space: nowrap;
}

.sp-pager-spacer {
  flex: 1 1 0;
  min-width: 0.5rem;
}

.sp-pager-label {
  font-size: 0.875rem;
  white-space: nowrap;
  color: var(--text);
}

.sp-pager-select {
  width: auto !important;
  padding: 0.25rem 0.5rem !important;
  font-size: 0.875rem !important;
}

.admin-table-audit pre.audit-payload-pre,
.admin-table-audit .audit-payload-pre {
  margin: 0;
  max-width: 36rem;
  max-height: 10rem;
  overflow: auto;
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  background: rgba(0, 0, 0, 0.2);
  padding: 0.5rem 0.65rem;
  border-radius: 6px;
}

/* Tabela de usuários — encaixa na largura do painel (sem min-widths que forcem rolagem) */
.lu-table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: visible;
  margin-top: 0.75rem;
}

.admin-table-local-users {
  table-layout: fixed;
  width: 100%;
}

.admin-table-local-users th,
.admin-table-local-users td {
  overflow-wrap: anywhere;
  word-break: break-word;
  vertical-align: top;
  padding: 0.5rem 0.45rem;
}

.admin-table-local-users th:nth-child(1),
.admin-table-local-users td:nth-child(1) {
  width: 11%;
}

.admin-table-local-users th:nth-child(2),
.admin-table-local-users td:nth-child(2) {
  width: 14%;
}

.admin-table-local-users th:nth-child(3),
.admin-table-local-users td:nth-child(3) {
  width: 22%;
}

.admin-table-local-users th:nth-child(4),
.admin-table-local-users td:nth-child(4) {
  width: 10%;
}

.admin-table-local-users th:nth-child(5),
.admin-table-local-users td:nth-child(5) {
  width: 14%;
  font-size: 0.8125rem;
}

.admin-table-local-users th:nth-child(6),
.admin-table-local-users td:nth-child(6) {
  width: 7%;
  font-size: 0.8125rem;
}

.admin-table-local-users th.admin-th-actions,
.admin-table-local-users td.admin-td-actions {
  width: 22%;
  text-align: right;
  white-space: normal;
  vertical-align: middle;
}

/* Pilha vertical: todas as ações na mesma coluna, alinhadas à direita */
.admin-table-local-users td.admin-td-actions .sub-actions.lu-actions-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-wrap: nowrap;
  gap: 0.25rem;
  max-width: 100%;
}

.admin-table-local-users td.admin-td-actions .lu-actions-stack .btn.text {
  white-space: nowrap;
  text-align: right;
  line-height: 1.35;
  padding-top: 0.15rem;
  padding-bottom: 0.15rem;
}

.pwd-rules-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.5;
}

.pwd-rules-list li {
  padding-left: 1.25rem;
  position: relative;
  color: var(--muted, #6b7280);
}

.pwd-rules-list li.pwd-rule-ok {
  color: #22c55e;
}

.pwd-rules-list li.pwd-rule-ok::before {
  content: "✓";
  position: absolute;
  left: 0;
  font-weight: 700;
}

.pwd-rules-list li.pwd-rule-bad::before {
  content: "○";
  position: absolute;
  left: 0;
  opacity: 0.5;
}

.pwd-match-hint.pwd-match-ok {
  color: #22c55e;
}

.branding-slack-url-input {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 2.75rem;
}

.pwd-match-hint.pwd-match-bad {
  color: #f87171;
}

.audit-feed {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0;
}

.audit-feed-item {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem 1.1rem;
  margin-bottom: 0.75rem;
  background: var(--bg);
  box-shadow: 0 1px 2px rgba(9, 30, 66, 0.06);
}

.audit-feed-when {
  font-size: 0.8rem;
  color: var(--muted);
  margin-bottom: 0.5rem;
}

.audit-feed-main {
  font-size: 0.98rem;
  font-weight: 500;
  line-height: 1.45;
  color: var(--text-navy);
}

.audit-feed-type {
  margin-top: 0.4rem;
  font-size: 0.75rem;
  color: var(--muted);
  letter-spacing: 0.02em;
}

.audit-feed-detail {
  margin-top: 0.5rem;
  font-size: 0.78rem;
  color: var(--muted);
  font-family: ui-monospace, monospace;
  word-break: break-word;
  white-space: pre-wrap;
}

/* Modal — criar usuário local */
.admin-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 3000;
  background: rgba(9, 30, 66, 0.5);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 1.75rem 1.25rem 2rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

/* Centrar modais baixos; alterar senha usa scroll no fundo, não dentro do cartão */
.admin-modal-backdrop:not(.admin-modal-backdrop-tall) {
  align-items: center;
  padding-top: 1.25rem;
  padding-bottom: 1.25rem;
}

.admin-modal-backdrop.hidden {
  display: none !important;
}

.admin-modal-dialog {
  background: var(--surface);
  color: var(--text);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  max-width: 26rem;
  width: 100%;
  max-height: min(90vh, 42rem);
  overflow-y: auto;
  padding: 1.35rem 1.5rem;
}

/* Modal "Alterar senha": mostrar tudo sem rolagem interna (rolagem fica no fundo) */
.admin-modal-dialog.profile-pwd-modal-dialog {
  max-height: none;
  overflow: visible;
  margin: auto 0;
}

.profile-pwd-modal-dialog .pwd-rules-list {
  margin: 0.35rem 0 0.25rem;
  font-size: 0.8125rem;
  line-height: 1.4;
}

.profile-pwd-modal-dialog .pwd-rules-list li {
  padding-left: 1.1rem;
}

.groups-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.groups-card {
  box-shadow: none;
  border: 1px solid var(--border);
}

.groups-member-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.groups-member-list li {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 0.75rem;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9375rem;
}

.groups-member-list li:last-child {
  border-bottom: none;
}

.groups-member-meta {
  min-width: 0;
  flex: 1;
}

.groups-member-meta .groups-un {
  font-size: 0.8125rem;
  color: var(--muted);
}

.profile-fields-editable .profile-username-row {
  margin-bottom: 0;
}

.lu-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.lu-tenant-bulk {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
  align-items: center;
  margin: 0.15rem 0 0.45rem;
}

.lu-access-fieldset {
  margin: 0 0 0.75rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: var(--radius, 8px);
  min-width: 0;
}

.lu-access-fieldset:last-of-type {
  margin-bottom: 0;
}

.lu-access-fieldset > legend {
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0 0.25rem;
}

.lu-access-fieldset-lead {
  margin: 0 0 0.6rem;
  line-height: 1.45;
}

.lu-tool-admin-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin: 0;
  cursor: pointer;
}

.lu-tenant-checkbox-list {
  max-height: 11rem;
  overflow-y: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0;
  background: var(--surface);
}

.lu-tenant-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin: 0;
  padding: 0.5rem 0.65rem;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
}

.lu-tenant-check-row:last-child {
  border-bottom: none;
}

.lu-tenant-check-row .lu-tenant-check-label {
  flex: 1;
  min-width: 0;
  line-height: 1.35;
}

.lu-tenant-check-row input[type='checkbox'] {
  flex-shrink: 0;
  margin: 0;
}

.lu-fieldset-pwd .sp-check {
  cursor: pointer;
}

.lu-success-dl {
  margin: 0;
}

.lu-success-dl dt {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0.75rem 0 0.25rem;
}

.lu-success-dl dt:first-child {
  margin-top: 0;
}

.lu-success-dl dd {
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.75rem;
}

.lu-success-code {
  font-size: 0.9rem;
  word-break: break-all;
  background: var(--bg);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
