body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.centered-body {
  justify-content: center;
  align-items: center;
  padding: 24px 16px;
}

.minimal-main {
  width: 100%;
  max-width: 440px;
}

.auth-card {
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.floating-theme-toggle {
  position: fixed;
  top: 14px;
  right: 16px;
  z-index: 1030;
}

.main-content {
  flex: 1;
}

.code-block {
  background: var(--bs-tertiary-bg);
  color: var(--bs-body-color);
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 0.9rem 1rem;
  font-size: 0.82rem;
  line-height: 1.5;
  overflow-x: auto;
  margin-bottom: 0;
}

.qr-wrap {
  display: inline-block;
  background: #ffffff;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  padding: 8px;
}

.qr-img {
  display: block;
  width: 180px;
  height: 180px;
}

.account-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
  background: var(--bs-body-bg);
  color: var(--bs-body-color);
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.account-btn:hover {
  border-color: var(--bs-primary);
  background: var(--bs-tertiary-bg);
}

.avatar-circle {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  flex-shrink: 0;
}

.app-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: var(--bs-border-radius);
  background: var(--bs-primary-bg-subtle);
  color: var(--bs-primary-text-emphasis);
  border: 1px solid var(--bs-border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.cropper-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1080;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.cropper-dialog {
  width: 100%;
  max-width: 380px;
}

.cropper-canvas {
  display: block;
  width: 256px;
  height: 256px;
  margin: 0 auto;
  border-radius: var(--bs-border-radius);
  border: 1px solid var(--bs-border-color);
  cursor: grab;
  touch-action: none;
}

.cropper-canvas:active {
  cursor: grabbing;
}

.account-meta {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.account-meta strong,
.account-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cf-turnstile {
  min-height: 65px;
}

.hidden {
  display: none !important;
}
