/* 简单页面壳与其中的 TOTP 启用流程：居中的单卡片，标题 24px，正文区与页脚按 16px 节奏排列。 */

.kxed-simple-page {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: var(--kxed-space-6) var(--kxed-space-4);
}

/* 面板是 grid 子项，缺省 min-width: auto 会被不换行的长按钮撑出视口；窄屏下按钮文字改为换行。 */
.kxed-simple-page-panel {
  display: grid;
  gap: var(--kxed-space-4);
  box-sizing: border-box;
  min-width: 0;
  width: min(24rem, 100%);
  border: 1px solid var(--kxed-divider);
  border-radius: var(--kxed-radius-md);
  padding: var(--kxed-space-6);
  background: var(--kxed-surface);
  box-shadow: var(--kxed-shadow-xs);
}

.kxed-simple-page-panel .kxed-button {
  max-width: 100%;
  padding-block: var(--kxed-space-1);
  line-height: var(--kxed-line-height-sm);
  white-space: normal;
  text-align: center;
}

.kxed-simple-page-brand {
  display: flex;
  align-items: center;
  justify-content: center;
}

.kxed-simple-page-heading {
  margin: 0;
  font-size: var(--kxed-font-size-xl);
  font-weight: var(--kxed-font-weight-semibold);
  line-height: var(--kxed-line-height-xl);
  text-align: center;
}

.kxed-simple-page-subheading {
  margin: 0;
  color: var(--kxed-muted);
  text-align: center;
}

.kxed-simple-page-body {
  display: grid;
  gap: var(--kxed-space-4);
}

.kxed-simple-page-footer {
  display: flex;
  justify-content: center;
  gap: var(--kxed-space-3);
  border-top: 1px solid var(--kxed-divider);
  padding-top: var(--kxed-space-4);
  font-size: var(--kxed-font-size-sm);
}

/* 二维码固定白底：暗色方案下扫码器仍需要深码浅底的对比。 */
.kxed-totp-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--kxed-divider);
  border-radius: var(--kxed-radius);
  padding: var(--kxed-space-3);
  background: var(--kxed-white);
}

.kxed-totp-qr :is(img, svg) {
  width: var(--kxed-qr-size);
  height: var(--kxed-qr-size);
}

.kxed-recovery-codes {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(9rem, 1fr));
  gap: var(--kxed-space-1) var(--kxed-space-3);
  margin: 0;
  border: 1px solid var(--kxed-divider);
  border-radius: var(--kxed-radius);
  padding: var(--kxed-space-3);
  background: var(--kxed-subtle);
  list-style: none;
}

.kxed-recovery-code {
  font-family: var(--kxed-font-mono);
  font-size: var(--kxed-font-size-xs);
  font-variant-numeric: tabular-nums;
  line-height: var(--kxed-line-height-xs);
  user-select: all;
}
