/* ============================================================================================
   SG-ACCOUNT: the reference settings stylesheet, copied 1:1 from the Stripe-grade prototype
   (src/stripe/stripe-account.css) per Joey: copy the settings 1:1 and pour our controls in.
   Only additions: the base tokens the file expects (inlined from stripe-base.css :root, scoped
   here rather than :root so nothing leaks into the rest of the app), and an alias block at the
   end mapping our existing .setcard/.setrow internals into the reference card language.
   ============================================================================================ */
.sg-settings-page {
  --sg-blue: #1e63ff;
  --sg-blue-dark: #1051de;
  --sg-fast: 140ms;
  --sg-shadow-sm: 0 1px 2px rgba(11, 29, 58, 0.05), 0 4px 14px rgba(11, 29, 58, 0.04);
}
.sg-settings-page,
.sg-auth-page {
  --sg-account-ink: #101a2b;
  --sg-account-muted: #637288;
  --sg-account-line: #dfe5ee;
  --sg-account-soft: #f7f9fc;
  --sg-account-blue-soft: #eef4ff;
  color: var(--sg-account-ink);
}

.sg-settings-page button,
.sg-settings-page input,
.sg-settings-page select,
.sg-auth-page button,
.sg-auth-page input,
.sg-auth-page select {
  font: inherit;
}

.sg-settings-page button,
.sg-auth-page button {
  cursor: pointer;
}

.sg-settings-page button:disabled,
.sg-auth-page button:disabled {
  cursor: not-allowed;
  opacity: .52;
}

.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* -------------------------------------------------------------------------- */
/* Settings                                                                    */
/* -------------------------------------------------------------------------- */

.sg-settings-page {
  width: min(1500px, 100%);
  margin: 0 auto;
}

.sg-settings-local-banner {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  margin-bottom: 14px;
  padding: 9px 13px;
  border: 1px solid #cfdcf7;
  border-radius: 9px;
  background: #f3f7ff;
  color: #26456f;
  font-size: 12px;
}

.sg-settings-local-banner > svg {
  width: 19px;
  height: 19px;
  flex: none;
  color: var(--sg-blue);
}

.sg-settings-local-banner span {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 7px;
}

.sg-access-summary {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  min-height: 96px;
  margin-bottom: 16px;
  overflow: hidden;
  border: 1px solid var(--sg-account-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sg-shadow-sm);
}

.sg-access-summary > span {
  position: relative;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 9px;
  min-width: 0;
  padding: 17px 14px;
}

.sg-access-summary > span:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 22px;
  right: 0;
  bottom: 22px;
  width: 1px;
  background: var(--sg-account-line);
}

.sg-access-summary svg {
  grid-row: 1 / 3;
  align-self: center;
  width: 20px;
  height: 20px;
  color: #46648c;
}

.sg-access-summary small {
  min-width: 0;
  overflow: hidden;
  color: var(--sg-account-muted);
  font-size: 10px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-access-summary strong {
  min-width: 0;
  overflow: hidden;
  color: var(--sg-account-ink);
  font-size: 12px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-settings-layout {
  display: grid;
  grid-template-columns: 196px minmax(0, 1fr) 286px;
  gap: 16px;
  align-items: start;
}

.sg-settings-nav {
  position: sticky;
  top: 82px;
  display: grid;
  gap: 3px;
  padding: 14px 10px;
  border: 1px solid var(--sg-account-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sg-shadow-sm);
}

.sg-settings-nav > span {
  padding: 4px 9px 8px;
  color: #273957;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sg-settings-nav button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 40px;
  padding: 0 9px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #4e6280;
  font-size: 12px;
  text-align: left;
  transition: color var(--sg-fast), background var(--sg-fast);
}

.sg-settings-nav button:hover {
  color: var(--sg-account-ink);
  background: #f5f7fa;
}

.sg-settings-nav button.active {
  color: #0758dd;
  background: #eaf1ff;
  font-weight: 700;
}

.sg-settings-nav button > svg {
  width: 18px;
  height: 18px;
  flex: none;
}

.sg-settings-nav button > i {
  width: 7px;
  height: 7px;
  margin-left: auto;
  border-radius: 50%;
  background: #d97a00;
}

.sg-settings-main {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.sg-settings-card,
.sg-rail-card {
  border: 1px solid var(--sg-account-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sg-shadow-sm);
}

.sg-settings-card {
  min-width: 0;
  padding: 18px;
}

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

.sg-section-heading > div {
  min-width: 0;
}

.sg-section-heading > div > span {
  display: block;
  margin-bottom: 4px;
  color: #38537a;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.sg-section-heading h2 {
  margin: 0;
  color: var(--sg-account-ink);
  font-size: 15px;
  line-height: 1.3;
  letter-spacing: -.015em;
}

.sg-section-heading p {
  max-width: 720px;
  margin: 4px 0 0;
  color: var(--sg-account-muted);
  font-size: 11.5px;
  line-height: 1.55;
}

.sg-primary-button,
.sg-text-button,
.sg-auth-primary,
.sg-auth-secondary,
.sg-auth-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border-radius: 8px;
  font-weight: 700;
}

.sg-primary-button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid var(--sg-blue);
  background: var(--sg-blue);
  color: #fff;
  font-size: 11.5px;
}

.sg-primary-button svg,
.sg-text-button svg {
  width: 15px;
  height: 15px;
}

.sg-text-button {
  min-height: 34px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #0758dd;
  font-size: 11.5px;
}

.sg-settings-rows {
  border-top: 1px solid var(--sg-account-line);
}

.sg-setting-row {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) auto 116px;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 7px 7px;
  border: 0;
  border-bottom: 1px solid var(--sg-account-line);
  background: transparent;
  text-align: left;
}

.sg-setting-row:hover {
  background: #fafbfd;
}

.sg-setting-row-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid #dce4ef;
  border-radius: 7px;
  color: #3e5b84;
  background: #fbfcfe;
}

.sg-setting-row-icon svg {
  width: 16px;
  height: 16px;
}

.sg-setting-row-copy {
  min-width: 0;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 3px 7px;
}

.sg-setting-row-copy strong,
.sg-setting-inline-control > span strong {
  color: #263a59;
  font-size: 11.5px;
}

.sg-setting-row-copy > small:not(.sg-inline-badge),
.sg-setting-inline-control > span small {
  flex-basis: 100%;
  min-width: 0;
  overflow: hidden;
  color: var(--sg-account-muted);
  font-size: 10.5px;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sg-inline-badge,
.sg-planned-pill {
  display: inline-flex;
  align-items: center;
  min-height: 18px;
  padding: 0 6px;
  border: 1px solid #c8d7ef;
  border-radius: 4px;
  background: #f3f7ff;
  color: #355785;
  font-size: 8.5px;
  font-weight: 800;
}

.sg-setting-row-action {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  color: #0758dd;
  font-size: 10.5px;
  font-weight: 700;
}

.sg-setting-row-action svg {
  width: 13px;
  height: 13px;
}

.sg-mini-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: #f1f4f8;
  color: #53647a;
  font-size: 9px;
  font-style: normal;
  font-weight: 750;
  white-space: nowrap;
}

.sg-mini-status.success {
  background: #eaf7ef;
  color: #0f7a3b;
}

.sg-mini-status.warning {
  background: #fff5e5;
  color: #8d5600;
}

.sg-mini-status.planned {
  background: #eef3ff;
  color: #405da4;
}

.sg-setting-inline-control {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 7px;
  border-bottom: 1px solid var(--sg-account-line);
}

.sg-setting-inline-control > span:not(.sg-setting-row-icon) {
  display: grid;
  gap: 3px;
}

.sg-setting-inline-control label,
.sg-compact-select,
.sg-team-row label {
  position: relative;
}

.sg-setting-inline-control select,
.sg-compact-select select,
.sg-team-row select,
.sg-form-grid select {
  min-height: 34px;
  padding: 0 32px 0 10px;
  appearance: none;
  border: 1px solid var(--sg-account-line);
  border-radius: 7px;
  background: #fff;
  color: #263a59;
  font-size: 11px;
}

.sg-setting-inline-control label > svg,
.sg-compact-select > svg,
.sg-team-row label > svg,
.sg-form-grid label > svg {
  position: absolute;
  top: 50%;
  right: 10px;
  width: 13px;
  height: 13px;
  pointer-events: none;
  transform: translateY(-50%);
}

.sg-session-table,
.sg-simple-table,
.sg-audit-list {
  width: 100%;
  overflow: hidden;
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
}

.sg-table-head,
.sg-session-row {
  display: grid;
  grid-template-columns: 1.35fr 1fr 1fr .85fr .65fr .65fr;
  align-items: center;
  min-width: 720px;
}

.sg-session-table {
  overflow-x: auto;
}

.sg-table-head {
  min-height: 34px;
  background: #f7f9fc;
  color: var(--sg-account-muted);
  font-size: 9px;
  font-weight: 750;
  letter-spacing: .02em;
}

.sg-table-head span,
.sg-session-row > span {
  min-width: 0;
  padding: 7px 9px;
}

.sg-session-row {
  min-height: 46px;
  border-top: 1px solid var(--sg-account-line);
  color: #52647c;
  font-size: 10px;
}

.sg-session-row > span:first-child {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #263a59;
}

.sg-session-row > span:first-child svg {
  width: 15px;
  height: 15px;
  flex: none;
}

.sg-session-row button {
  border: 0;
  background: transparent;
  color: #0758dd;
  font-size: 10px;
  font-weight: 700;
}

.sg-session-row em {
  color: var(--sg-account-muted);
  font-size: 9px;
  font-style: normal;
}

.sg-capability-preview {
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
  overflow: hidden;
}

.sg-capability-preview > div {
  display: grid;
  grid-template-columns: 1fr 150px;
  min-height: 38px;
  align-items: center;
  border-top: 1px solid var(--sg-account-line);
  font-size: 10.5px;
}

.sg-capability-preview > div:first-child {
  min-height: 32px;
  border-top: 0;
  background: #f7f9fc;
  color: var(--sg-account-muted);
  font-size: 9px;
  font-weight: 750;
}

.sg-capability-preview > div > * {
  padding: 6px 10px;
}

.sg-capability-preview strong {
  color: #314661;
  font-weight: 600;
}

.sg-capability-preview .allowed,
.sg-capability-preview .denied {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 700;
}

.sg-capability-preview .allowed { color: #0f7a3b; }
.sg-capability-preview .denied { color: #7a8596; }
.sg-capability-preview svg { width: 14px; height: 14px; }

.sg-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.sg-form-grid label {
  position: relative;
  display: grid;
  gap: 6px;
  color: #344a68;
  font-size: 10.5px;
  font-weight: 700;
}

.sg-form-grid input,
.sg-form-grid select {
  width: 100%;
  min-height: 40px;
  padding: 0 11px;
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
  background: #fff;
  color: var(--sg-account-ink);
  font-size: 12px;
  font-weight: 500;
}

.sg-form-grid select { padding-right: 34px; }

.sg-boundary-note,
.sg-plan-note,
.sg-auth-info {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid #cfdcf7;
  border-radius: 8px;
  background: #f5f8ff;
  color: #435a7b;
  font-size: 10.5px;
  line-height: 1.5;
}

.sg-boundary-note > svg,
.sg-plan-note > svg,
.sg-auth-info > svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: #1e63ff;
}

.sg-boundary-note span,
.sg-plan-note span,
.sg-auth-info span {
  display: grid;
  gap: 2px;
}

.sg-plan-note {
  align-items: center;
  margin: 0 0 14px;
  border-color: #ead9b5;
  background: #fff9ee;
  color: #6f5525;
}

.sg-plan-note > svg { color: #9a5a00; }
.sg-plan-note button {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  border: 0;
  background: transparent;
  color: #0758dd;
  font-size: 10px;
  font-weight: 750;
  white-space: nowrap;
}

.sg-team-list,
.sg-integration-list {
  display: grid;
  border-top: 1px solid var(--sg-account-line);
}

.sg-team-row {
  display: grid;
  grid-template-columns: 34px minmax(180px, 1fr) auto 130px;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  border-bottom: 1px solid var(--sg-account-line);
}

.sg-avatar,
.sg-auth-avatar {
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #e9eff9;
  color: #274363;
  font-weight: 800;
}

.sg-avatar { width: 32px; height: 32px; font-size: 10px; }
.sg-team-row > span:nth-child(2) { display: grid; gap: 2px; }
.sg-team-row > span:nth-child(2) strong { color: #273b59; font-size: 11.5px; }
.sg-team-row > span:nth-child(2) small { color: var(--sg-account-muted); font-size: 9.5px; }
.sg-team-row select { width: 100%; }

.sg-stat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
  overflow: hidden;
}

.sg-stat-grid > span {
  display: grid;
  gap: 4px;
  min-height: 92px;
  align-content: center;
  padding: 13px;
}

.sg-stat-grid > span:not(:last-child) { border-right: 1px solid var(--sg-account-line); }
.sg-stat-grid small { color: var(--sg-account-muted); font-size: 9px; font-weight: 750; text-transform: uppercase; letter-spacing: .06em; }
.sg-stat-grid strong { color: var(--sg-account-ink); font-size: 15px; }
.sg-stat-grid em { color: var(--sg-account-muted); font-size: 9.5px; font-style: normal; }

.sg-simple-table {
  overflow-x: auto;
}

.sg-simple-table > div {
  display: grid;
  grid-template-columns: .9fr 1.55fr .7fr .7fr .55fr;
  align-items: center;
  min-width: 620px;
  min-height: 44px;
  border-top: 1px solid var(--sg-account-line);
  color: #53657d;
  font-size: 10px;
}

.sg-simple-table > div:first-child {
  min-height: 32px;
  border-top: 0;
  background: #f7f9fc;
  color: var(--sg-account-muted);
  font-size: 9px;
  font-weight: 750;
}

.sg-simple-table > div > * { min-width: 0; padding: 7px 9px; }
.sg-simple-table strong { color: #30445f; }
.sg-simple-table code { color: #30445f; font-size: 9.5px; }
.sg-simple-table button { border: 0; background: transparent; color: #0758dd; font-size: 10px; font-weight: 700; text-align: left; }

.sg-switch-list {
  display: grid;
  border-top: 1px solid var(--sg-account-line);
}

.sg-switch-row {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 60px;
  border-bottom: 1px solid var(--sg-account-line);
}

.sg-switch-row > span { display: grid; gap: 3px; }
.sg-switch-row strong { color: #30445f; font-size: 11.5px; }
.sg-switch-row small { color: var(--sg-account-muted); font-size: 10px; }
.sg-switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.sg-switch-row > i {
  position: relative;
  width: 38px;
  height: 22px;
  flex: none;
  border: 1px solid #c7d0dc;
  border-radius: 999px;
  background: #e8ecf2;
  transition: background var(--sg-fast), border-color var(--sg-fast);
}
.sg-switch-row > i > span {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(11,29,58,.2);
  transition: transform var(--sg-fast);
}
.sg-switch-row input:checked + i { border-color: var(--sg-blue); background: var(--sg-blue); }
.sg-switch-row input:checked + i > span { transform: translateX(16px); }
.sg-switch-row input:focus-visible + i { outline: 3px solid rgba(30,99,255,.28); outline-offset: 2px; }
.sg-switch-row.is-disabled { opacity: .6; cursor: not-allowed; }

.sg-notification-channels {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 15px;
}

.sg-notification-channels > span {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 2px 8px;
  align-items: center;
  padding: 11px;
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
}
.sg-notification-channels svg { grid-row: 1 / 3; width: 20px; height: 20px; color: #3c5b87; }
.sg-notification-channels strong { font-size: 10.5px; }
.sg-notification-channels small { color: var(--sg-account-muted); font-size: 9px; }
.sg-notification-channels .sg-mini-status { grid-column: 1 / 3; justify-self: start; margin-top: 5px; }

.sg-integration-list > div {
  display: grid;
  grid-template-columns: 28px minmax(180px, 1fr) minmax(130px, .8fr) auto auto;
  align-items: center;
  gap: 10px;
  min-height: 62px;
  border-bottom: 1px solid var(--sg-account-line);
}
.sg-integration-list > div > span:nth-child(2) { display: grid; gap: 3px; }
.sg-integration-list strong { color: #30445f; font-size: 11px; }
.sg-integration-list small { color: var(--sg-account-muted); font-size: 9.5px; }
.sg-integration-list code { overflow: hidden; color: #435874; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.sg-integration-list button { display: inline-flex; align-items: center; gap: 5px; border: 0; background: transparent; color: #0758dd; font-size: 9.5px; font-weight: 700; }
.sg-integration-list button svg { width: 13px; height: 13px; }

.sg-danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 16px;
  padding: 13px;
  border: 1px solid #efd0d2;
  border-radius: 8px;
  background: #fff8f8;
}
.sg-danger-zone > span { display: grid; grid-template-columns: 24px 1fr; gap: 2px 8px; }
.sg-danger-zone svg { grid-row: 1 / 3; width: 20px; height: 20px; color: #b72b38; }
.sg-danger-zone strong { color: #8f2631; font-size: 11px; }
.sg-danger-zone small { color: #81565b; font-size: 9.5px; }
.sg-danger-zone button { min-height: 32px; padding: 0 10px; border: 1px solid #ddb9bd; border-radius: 7px; background: #fff; color: #8f2631; font-size: 10px; font-weight: 700; }

.sg-audit-list { overflow-x: auto; }
.sg-audit-list > div,
.sg-audit-list > button {
  width: 100%;
  display: grid;
  grid-template-columns: .9fr .9fr 1.8fr 1.15fr;
  align-items: center;
  min-width: 650px;
  min-height: 47px;
  padding: 0;
  border: 0;
  border-top: 1px solid var(--sg-account-line);
  background: #fff;
  color: #56687e;
  font-size: 10px;
  text-align: left;
}
.sg-audit-list > div { min-height: 32px; border-top: 0; background: #f7f9fc; color: var(--sg-account-muted); font-size: 9px; font-weight: 750; }
.sg-audit-list > button:hover { background: #fafbfd; }
.sg-audit-list > * > * { padding: 7px 9px; }
.sg-audit-list strong { color: #30445f; }
.sg-audit-list small { display: flex; align-items: center; justify-content: space-between; gap: 7px; }
.sg-audit-list svg { width: 13px; height: 13px; }

.sg-settings-rail {
  display: grid;
  gap: 14px;
}

.sg-rail-card {
  padding: 17px;
}

.sg-rail-card h3 {
  margin: 0 0 12px;
  color: #203552;
  font-size: 12px;
}

.sg-rail-card > p {
  margin: 0 0 12px;
  color: var(--sg-account-muted);
  font-size: 10px;
  line-height: 1.55;
}

.sg-rail-card > button {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 48px;
  padding: 8px 0;
  border: 0;
  border-top: 1px solid var(--sg-account-line);
  background: transparent;
  color: #0758dd;
  font-size: 10px;
  text-align: left;
}
.sg-rail-card > button:first-of-type { border-top: 0; }
.sg-rail-card > button > svg:first-child { width: 17px; height: 17px; flex: none; color: #49688f; }
.sg-rail-card > button > svg:last-child { width: 13px; height: 13px; margin-left: auto; }
.sg-rail-card > button > span { display: grid; gap: 2px; color: #30445f; }
.sg-rail-card > button > span strong { font-size: 10px; }
.sg-rail-card > button > span small { color: var(--sg-account-muted); font-size: 9px; line-height: 1.35; }

.sg-security-score {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 12px;
  align-items: center;
}
.sg-score-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border: 7px solid #dcefe5;
  border-radius: 50%;
  color: #0b7e42;
}
.sg-score-icon svg { width: 34px; height: 34px; opacity: .35; }
.sg-score-icon strong { position: absolute; color: #16345a; font-size: 18px; }
.sg-security-score > div small { color: var(--sg-account-muted); font-size: 9px; text-transform: uppercase; letter-spacing: .06em; }
.sg-security-score > div h3 { margin: 3px 0; }
.sg-security-score > div p { margin: 0; color: var(--sg-account-muted); font-size: 9.5px; line-height: 1.45; }
.sg-security-score > button { grid-column: 1 / 3; min-height: 30px; border-top: 0; color: #0758dd; }

.sg-rail-positive { display: block; margin: 3px 0 10px; color: #0f7a3b; font-size: 10.5px; }
.sg-rail-card > span:not(.sg-score-icon) { display: grid; gap: 2px; margin: 10px 0; }
.sg-rail-card > span small { color: var(--sg-account-muted); font-size: 9px; }
.sg-rail-card > span strong { color: #31527d; font-size: 10px; }

.sg-local-signout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
  background: #fff;
  color: #4e6179;
  font-size: 10.5px;
  font-weight: 700;
}
.sg-local-signout svg { width: 15px; height: 15px; }

/* -------------------------------------------------------------------------- */
/* Authentication                                                              */
/* -------------------------------------------------------------------------- */

.sg-auth-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(430px, 38%) minmax(0, 62%);
  overflow: hidden;
  background: #f6f8fb;
}

.sg-auth-story {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  overflow: hidden;
  padding: clamp(38px, 6vh, 74px) clamp(42px, 5vw, 74px) 30px;
  background-color: #061a35;
  color: #fff;
}

.sg-auth-story::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .025;
  background-image: url("/assets/veritura-mark.svg");
  background-repeat: repeat;
  background-size: 150px 150px;
  pointer-events: none;
}

.sg-auth-story > * {
  position: relative;
  z-index: 1;
}

.sg-auth-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.sg-auth-brand img { width: 43px; height: 43px; object-fit: contain; }
.sg-auth-brand strong { color: #fff; font-size: 29px; letter-spacing: -.045em; }

.sg-auth-story-copy {
  width: min(410px, 100%);
  margin: clamp(52px, 8vh, 96px) auto 0;
}
.sg-auth-story-copy > span { display: block; margin-bottom: 10px; color: #7cc7ff; font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sg-auth-story-copy h2 { margin: 0 0 34px; color: #fff; font-size: clamp(29px, 2.35vw, 38px); line-height: 1.32; letter-spacing: -.03em; }

.sg-auth-story-steps {
  position: relative;
  display: grid;
  gap: 24px;
  padding: 30px 0;
  border-top: 1px solid rgba(255,255,255,.32);
  border-bottom: 1px solid rgba(255,255,255,.32);
}
.sg-auth-story-steps::before { content: ""; position: absolute; top: 56px; bottom: 56px; left: 34px; border-left: 1px dashed rgba(124,199,255,.65); }
.sg-auth-story-steps article { position: relative; display: grid; grid-template-columns: 70px 1fr; gap: 16px; align-items: center; }
.sg-auth-story-steps article > span { display: grid; place-items: center; width: 70px; height: 70px; border: 2px solid #1e63ff; border-radius: 50%; background: #081f3e; color: #fff; }
.sg-auth-story-steps article:nth-child(2) > span { border-color: #00a896; }
.sg-auth-story-steps article svg { width: 31px; height: 31px; }
.sg-auth-story-steps strong { color: #fff; font-size: 17px; }
.sg-auth-story-steps p { margin: 4px 0 0; color: #d4dfed; font-size: 13px; line-height: 1.55; }

.sg-auth-trust {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 8px;
  margin-top: 34px;
}
.sg-auth-trust span { display: grid; justify-items: center; gap: 8px; color: #fff; text-align: center; }
.sg-auth-trust svg { width: 25px; height: 25px; }
.sg-auth-trust small { color: #d7e1ee; font-size: 10px; }

.sg-auth-local-mark {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-top: auto;
  padding-top: 28px;
  color: #b7cae2;
}
.sg-auth-local-mark svg { width: 20px; height: 20px; }
.sg-auth-local-mark span { display: grid; gap: 2px; }
.sg-auth-local-mark strong { color: #dce8f7; font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.sg-auth-local-mark small { font-size: 9px; }

.sg-auth-stage {
  min-width: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(34px, 6vh, 76px) clamp(28px, 5vw, 80px) 30px;
  background: #f6f8fb;
}

.sg-auth-stage-grid {
  width: min(890px, 100%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 560px) 276px;
  gap: 42px;
  align-items: center;
}

.sg-auth-card {
  min-width: 0;
  max-height: calc(100vh - 190px);
  overflow-y: auto;
  padding: 28px 30px 22px;
  border: 1px solid #ced7e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(11,29,58,.08);
  scrollbar-width: thin;
}

.sg-auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-bottom: 27px;
  border-bottom: 1px solid #cfd8e5;
}
.sg-auth-tabs button {
  min-height: 40px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #526b90;
  font-size: 13px;
}
.sg-auth-tabs button.active { border-bottom-color: var(--sg-blue); color: #0056df; font-weight: 700; }

.sg-auth-form { display: grid; gap: 15px; }
.sg-auth-field { display: grid; gap: 7px; color: var(--sg-account-ink); font-size: 12px; font-weight: 650; }
.sg-auth-field > small { margin-top: -2px; color: var(--sg-account-muted); font-size: 9.5px; font-weight: 500; line-height: 1.45; }
.sg-auth-input {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 48px;
  border: 1px solid #cbd5e1;
  border-radius: 9px;
  background: #fff;
  transition: border-color var(--sg-fast), box-shadow var(--sg-fast);
}
.sg-auth-input:focus-within { border-color: var(--sg-blue); box-shadow: 0 0 0 3px rgba(30,99,255,.1); }
.sg-auth-input > svg { width: 18px; height: 18px; margin-left: 14px; flex: none; color: #3f5d87; }
.sg-auth-input input,
.sg-auth-input select {
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 0 13px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sg-account-ink);
  font-size: 12px;
  font-weight: 500;
}
.sg-auth-input select { appearance: none; }
.sg-auth-input input::placeholder { color: #8492a7; }
.sg-input-action {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 34px;
  margin-right: 8px;
  padding: 0 7px;
  border: 0;
  background: transparent;
  color: #344e73;
  font-size: 10px;
  font-weight: 650;
}
.sg-input-action svg { width: 16px; height: 16px; }

.sg-auth-link {
  border: 0;
  background: transparent;
  color: #0758dd;
  font-size: 11.5px;
  font-weight: 650;
}
.sg-align-left { justify-self: start; padding: 0; margin-top: -7px; }

.sg-auth-primary,
.sg-auth-secondary,
.sg-auth-back {
  width: 100%;
  min-height: 46px;
  padding: 0 14px;
  font-size: 12px;
}
.sg-auth-primary { border: 1px solid var(--sg-blue); background: var(--sg-blue); color: #fff; box-shadow: 0 8px 16px rgba(30,99,255,.14); }
.sg-auth-primary:hover { background: var(--sg-blue-dark); }
.sg-auth-primary svg,
.sg-auth-secondary svg,
.sg-auth-back svg { width: 17px; height: 17px; }
.sg-auth-secondary { position: relative; border: 1px solid #cbd5e1; background: #fff; color: #2f4564; }
.sg-auth-secondary:hover { background: #f8fafc; }
.sg-auth-back { min-height: 34px; border: 0; background: transparent; color: #52667f; box-shadow: none; }
.sg-auth-secondary .sg-planned-pill { position: absolute; right: 10px; }

.sg-auth-divider {
  position: relative;
  height: 16px;
  display: grid;
  place-items: center;
}
.sg-auth-divider::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: #dce3ec; }
.sg-auth-divider span { position: relative; padding: 0 12px; background: #fff; color: #65748a; font-size: 10px; text-transform: uppercase; }

.sg-auth-switch { margin: 22px 0 0; color: #4d6079; font-size: 11.5px; text-align: center; }
.sg-auth-switch button { display: inline-flex; align-items: center; gap: 4px; border: 0; background: transparent; color: #0758dd; font-weight: 750; }
.sg-auth-switch svg { width: 14px; height: 14px; }

.sg-auth-boundary {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-top: 18px;
  padding: 10px 11px;
  border-radius: 7px;
  background: #f5f8ff;
  color: #546983;
  font-size: 9.5px;
  line-height: 1.45;
}
.sg-auth-boundary svg { width: 15px; height: 15px; flex: none; color: #1e63ff; }

.sg-auth-card-header {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  margin-bottom: 22px;
}
.sg-auth-header-icon { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #cbd9ef; border-radius: 10px; background: #f3f7ff; color: #1e63ff; }
.sg-auth-header-icon svg { width: 23px; height: 23px; }
.sg-auth-card-header small { color: #45648d; font-size: 9px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.sg-auth-card-header h1 { margin: 3px 0 5px; color: var(--sg-account-ink); font-size: 20px; line-height: 1.2; letter-spacing: -.025em; }
.sg-auth-card-header p { margin: 0; color: var(--sg-account-muted); font-size: 10.5px; line-height: 1.55; }

.sg-auth-check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: #52647c;
  font-size: 10px;
  line-height: 1.45;
}
.sg-auth-check input { width: 15px; height: 15px; flex: none; accent-color: var(--sg-blue); }

.sg-auth-mail-visual,
.sg-auth-lockout,
.sg-auth-ready,
.sg-auth-device {
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 84px;
  padding: 15px;
  border: 1px solid var(--sg-account-line);
  border-radius: 10px;
  background: #fbfcfe;
}
.sg-auth-mail-visual > svg,
.sg-auth-lockout > svg,
.sg-auth-ready > svg,
.sg-auth-device > svg { width: 35px; height: 35px; flex: none; color: #1e63ff; }
.sg-auth-mail-visual span,
.sg-auth-lockout span,
.sg-auth-ready span { display: grid; gap: 4px; }
.sg-auth-mail-visual strong,
.sg-auth-lockout strong,
.sg-auth-ready strong,
.sg-auth-device strong { color: #263a59; font-size: 12px; }
.sg-auth-mail-visual small,
.sg-auth-lockout small,
.sg-auth-ready small,
.sg-auth-device small { color: var(--sg-account-muted); font-size: 9.5px; }
.sg-auth-device { min-height: 138px; flex-direction: column; justify-content: center; text-align: center; }
.sg-auth-device > svg { width: 50px; height: 50px; }
.sg-auth-lockout { border-color: #ead8b7; background: #fff9ef; }
.sg-auth-lockout > svg { color: #9a5a00; }
.sg-auth-ready { border-color: #bfe3cd; background: #f1faf5; }
.sg-auth-ready > svg { color: #16803c; }

.sg-auth-code { display: grid; gap: 7px; color: var(--sg-account-ink); font-size: 12px; font-weight: 650; }
.sg-auth-code input { width: 100%; min-height: 58px; border: 1px solid #cbd5e1; border-radius: 9px; color: #17345c; font-size: 26px; font-weight: 750; letter-spacing: .45em; text-align: center; }
.sg-auth-code input:focus { border-color: var(--sg-blue); outline: 3px solid rgba(30,99,255,.1); }
.sg-auth-feature-label { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; color: #79602f; font-size: 9px; }
.sg-auth-feature-label svg { width: 14px; height: 14px; }

.sg-auth-invite-summary {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--sg-account-line);
  border-radius: 9px;
  background: #f8fafc;
}
.sg-auth-avatar { width: 38px; height: 38px; font-size: 11px; }
.sg-auth-invite-summary > span:nth-child(2) { display: grid; gap: 3px; }
.sg-auth-invite-summary strong { color: #2d425f; font-size: 11px; }
.sg-auth-invite-summary small { color: var(--sg-account-muted); font-size: 9px; }
.sg-auth-role { padding: 4px 7px; border-radius: 999px; background: #eaf1ff; color: #0758dd; font-size: 8.5px; font-weight: 800; }

.sg-recovery-codes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  padding: 10px;
  border: 1px solid var(--sg-account-line);
  border-radius: 8px;
  background: #f8fafc;
}
.sg-recovery-codes code { display: flex; align-items: center; justify-content: space-between; gap: 5px; padding: 7px; border: 1px solid #dbe3ed; border-radius: 6px; background: #fff; color: #314862; font-size: 9px; }
.sg-recovery-codes button { display: grid; place-items: center; border: 0; background: transparent; color: #0758dd; }
.sg-recovery-codes svg { width: 13px; height: 13px; }

.sg-workspace-options { display: grid; gap: 8px; }
.sg-workspace-options > button {
  width: 100%;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr) auto 20px;
  align-items: center;
  gap: 10px;
  min-height: 66px;
  padding: 9px 11px;
  border: 1px solid var(--sg-account-line);
  border-radius: 9px;
  background: #fff;
  color: #31465f;
  text-align: left;
}
.sg-workspace-options > button:hover { background: #fafbfd; }
.sg-workspace-options > button.active { border-color: #7ea9ff; background: #f3f7ff; box-shadow: 0 0 0 2px rgba(30,99,255,.08); }
.sg-workspace-options > button > span:nth-child(2) { display: grid; gap: 3px; }
.sg-workspace-options > button > span:nth-child(2) strong { font-size: 11px; }
.sg-workspace-options > button > span:nth-child(2) small { color: var(--sg-account-muted); font-size: 8.8px; }
.sg-workspace-options > button > span:nth-child(3) { display: grid; gap: 2px; justify-items: end; }
.sg-workspace-options > button > span:nth-child(3) small { color: var(--sg-account-muted); font-size: 8px; }
.sg-workspace-options > button > span:nth-child(3) strong { font-size: 9.5px; }
.sg-workspace-options > button > svg { width: 18px; height: 18px; color: #1e63ff; }
.sg-choice-ring { width: 16px; height: 16px; border: 1px solid #bcc8d7; border-radius: 50%; }

.sg-auth-security {
  overflow: hidden;
  border: 1px solid #cfd8e5;
  border-radius: 14px;
  background: rgba(255,255,255,.76);
}
.sg-auth-security header { display: flex; align-items: center; gap: 12px; min-height: 76px; padding: 0 20px; border-bottom: 1px solid #dce3ec; }
.sg-auth-security header svg { width: 27px; height: 27px; color: #17345c; }
.sg-auth-security h2 { margin: 0; color: #1a2e4a; font-size: 13px; }
.sg-auth-security > span { display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center; min-height: 96px; margin: 0 14px; border-bottom: 1px solid #dce3ec; }
.sg-auth-security > span:last-child { border-bottom: 0; }
.sg-auth-security > span svg { width: 25px; height: 25px; color: #42618a; }
.sg-auth-security p { margin: 0; color: #3f526d; font-size: 10.5px; line-height: 1.5; }

.sg-auth-progress {
  width: min(890px, 100%);
  min-height: 102px;
  margin: 32px auto 0;
  padding: 18px 24px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  border: 1px solid #cfd8e5;
  border-radius: 13px;
  background: rgba(255,255,255,.84);
}
.sg-auth-progress > span { position: relative; display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 10px; }
.sg-auth-progress > span:not(:last-child)::after { content: ""; position: absolute; left: calc(100% - 15px); right: 14px; top: 50%; height: 1px; background: #cfd8e5; }
.sg-auth-progress i { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid #9eb1c9; border-radius: 50%; color: #38516f; background: #fff; font-size: 12px; font-style: normal; font-weight: 700; }
.sg-auth-progress i svg { width: 16px; height: 16px; }
.sg-auth-progress > span > span { display: grid; gap: 4px; min-width: 0; }
.sg-auth-progress strong { color: #344963; font-size: 10.5px; }
.sg-auth-progress small { color: #728197; font-size: 9px; }
.sg-auth-progress .active i { border-color: var(--sg-blue); color: #0758dd; }
.sg-auth-progress .active strong,
.sg-auth-progress .active small { color: #0758dd; }
.sg-auth-progress .done i { border-color: #5dad7f; background: #edf9f2; color: #16803c; }

.sg-auth-announcement {
  width: min(890px, 100%);
  min-height: 18px;
  margin: 10px auto 0;
  color: #6c7b90;
  font-size: 9px;
  text-align: center;
}

@media (max-width: 1320px) {
  .sg-settings-layout { grid-template-columns: 180px minmax(0, 1fr) 250px; }
  .sg-access-summary { grid-template-columns: repeat(4, 1fr); }
  .sg-access-summary > span:nth-child(4)::after { display: none; }
  .sg-access-summary > span:nth-child(n+5) { border-top: 1px solid var(--sg-account-line); }
  .sg-access-summary > span { min-height: 74px; }
  .sg-auth-stage-grid { gap: 24px; grid-template-columns: minmax(0, 540px) 250px; }
}

@media (max-width: 1120px) {
  .sg-settings-layout { grid-template-columns: 180px minmax(0, 1fr); }
  .sg-settings-rail { grid-column: 1 / 3; grid-template-columns: repeat(4, 1fr); }
  .sg-local-signout { grid-column: 1 / -1; }
  .sg-auth-page { grid-template-columns: 360px minmax(0, 1fr); }
  .sg-auth-story { padding-inline: 34px; }
  .sg-auth-story-copy { margin-top: 48px; }
  .sg-auth-stage-grid { grid-template-columns: minmax(0, 560px); justify-content: center; }
  .sg-auth-security { display: none; }
  .sg-auth-progress { max-width: 560px; padding-inline: 16px; }
  .sg-auth-progress > span { grid-template-columns: 35px 1fr; gap: 7px; }
  .sg-auth-progress i { width: 35px; height: 35px; }
}

@media (max-width: 900px) {
  .sg-settings-layout { grid-template-columns: 1fr; }
  .sg-settings-nav { position: static; display: flex; overflow-x: auto; padding: 7px; scrollbar-width: thin; }
  .sg-settings-nav > span { display: none; }
  .sg-settings-nav button { flex: 0 0 auto; min-height: 38px; white-space: nowrap; }
  .sg-settings-main,
  .sg-settings-rail { grid-column: 1; }
  .sg-settings-rail { grid-template-columns: 1fr 1fr; }
  .sg-access-summary { grid-template-columns: repeat(2, 1fr); }
  .sg-access-summary > span:nth-child(2n)::after { display: none; }
  .sg-access-summary > span:nth-child(n+3) { border-top: 1px solid var(--sg-account-line); }
  .sg-stat-grid { grid-template-columns: 1fr 1fr; }
  .sg-stat-grid > span { border-bottom: 1px solid var(--sg-account-line); }
  .sg-stat-grid > span:nth-child(2) { border-right: 0; }
  .sg-stat-grid > span:nth-last-child(-n+2) { border-bottom: 0; }
  .sg-auth-page { grid-template-columns: 1fr; overflow: visible; }
  .sg-auth-story { min-height: auto; padding: 22px 24px; }
  .sg-auth-story-copy { width: 100%; margin: 24px 0 0; }
  .sg-auth-story-copy > span,
  .sg-auth-story-copy h2,
  .sg-auth-story-steps,
  .sg-auth-trust { display: none; }
  .sg-auth-brand img { width: 34px; height: 34px; }
  .sg-auth-brand strong { font-size: 24px; }
  .sg-auth-local-mark { position: absolute; top: 24px; right: 24px; margin: 0; padding: 0; }
  .sg-auth-stage { min-height: calc(100vh - 78px); padding: 28px 20px 24px; justify-content: flex-start; }
  .sg-auth-card { max-height: none; }
}

@media (max-width: 640px) {
  .sg-settings-local-banner span { display: grid; }
  .sg-settings-card { padding: 14px; }
  .sg-section-heading { display: grid; }
  .sg-section-heading > button,
  .sg-section-heading > label { justify-self: start; }
  .sg-setting-row { grid-template-columns: 28px minmax(0, 1fr) auto; }
  .sg-setting-row > .sg-mini-status { display: none; }
  .sg-setting-row-action { font-size: 0; width: 24px; }
  .sg-setting-row-action svg { width: 16px; height: 16px; }
  .sg-setting-row-copy > small:not(.sg-inline-badge) { white-space: normal; }
  .sg-form-grid { grid-template-columns: 1fr; }
  .sg-team-row { grid-template-columns: 34px 1fr auto; padding: 8px 0; }
  .sg-team-row label { grid-column: 2 / 4; }
  .sg-notification-channels { grid-template-columns: 1fr; }
  .sg-integration-list > div { grid-template-columns: 28px minmax(0, 1fr) auto; padding: 9px 0; }
  .sg-integration-list code { grid-column: 2 / 4; }
  .sg-integration-list .sg-mini-status { grid-column: 2; justify-self: start; }
  .sg-integration-list button { grid-column: 3; grid-row: 3; }
  .sg-settings-rail { grid-template-columns: 1fr; }
  .sg-security-score { grid-template-columns: 72px 1fr; }
  .sg-stat-grid { grid-template-columns: 1fr; }
  .sg-stat-grid > span { border-right: 0 !important; border-bottom: 1px solid var(--sg-account-line) !important; }
  .sg-stat-grid > span:last-child { border-bottom: 0 !important; }
  .sg-capability-preview > div { grid-template-columns: 1fr 110px; }
  .sg-auth-local-mark span { display: none; }
  .sg-auth-stage { padding-inline: 12px; }
  .sg-auth-card { padding: 22px 17px 18px; border-radius: 12px; }
  .sg-auth-card-header { grid-template-columns: 38px 1fr; }
  .sg-auth-header-icon { width: 38px; height: 38px; }
  .sg-auth-card-header h1 { font-size: 18px; }
  .sg-auth-secondary .sg-planned-pill { display: none; }
  .sg-recovery-codes { grid-template-columns: 1fr; }
  .sg-workspace-options > button { grid-template-columns: 38px 1fr 18px; }
  .sg-workspace-options > button > span:nth-child(3) { display: none; }
  .sg-auth-progress { min-height: 74px; margin-top: 18px; padding: 10px; }
  .sg-auth-progress > span { display: flex; justify-content: center; }
  .sg-auth-progress > span > span { display: none; }
  .sg-auth-progress > span:not(:last-child)::after { left: calc(100% - 7px); right: 7px; }
  .sg-auth-progress i { width: 34px; height: 34px; }
}

@media (prefers-reduced-motion: reduce) {
  .sg-settings-page *,
  .sg-auth-page * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
}

/* ---- ALIASES: our real cards and rows, worn as the reference components. ---- */
.sg-settings-main .setcard {
  min-width: 0;
  padding: 18px;
  border: 1px solid var(--sg-account-line);
  border-radius: 10px;
  background: #fff;
  box-shadow: var(--sg-shadow-sm);
  margin-bottom: 14px;
}
.sg-settings-main .setcard:last-child { margin-bottom: 0; }
.sg-settings-main .setcard h4 { margin: 0 0 4px; color: var(--sg-account-ink); font-size: 15px; line-height: 1.3; letter-spacing: -.015em; font-weight: 800; }
.sg-settings-main .setcard h4[data-eyebrow]::before {
  content: attr(data-eyebrow);
  display: block;
  margin-bottom: 4px;
  color: var(--sg-blue);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.sg-settings-main .setrow { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 44px; padding: 4px 2px; border-bottom: 1px solid var(--sg-account-line); font-size: 12px; }
.sg-settings-main .setrow:last-of-type { border-bottom: 0; }
.sg-settings-main .setrow > span { color: var(--sg-account-muted); }
.sg-settings-main .setrow > b { color: var(--sg-account-ink); font-weight: 650; text-align: right; }
.sg-settings-main .setnote { color: var(--sg-account-muted); font-size: 11.5px; line-height: 1.55; }
.sg-settings-nav button .vic { width: 16px; height: 16px; flex: 0 0 auto; }
.sg-settings-nav button.on { background: var(--sg-account-blue-soft); color: var(--sg-blue-dark); font-weight: 700; }
.sg-access-summary > span > .vic { width: 20px; height: 20px; grid-row: 1 / span 2; align-self: center; color: #3e5b84; }
.sg-access-summary small { color: var(--sg-account-muted); font-size: 9.5px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.sg-access-summary b { color: var(--sg-account-ink); font-size: 12.5px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
[data-sxpanel] { display: none; }
[data-sxpanel].on { display: block; }
