:root {
  --lumi-purple: #8067d8;
  --lumi-purple-deep: #6650b7;
  --lumi-purple-soft: #eeeaff;
  --lumi-purple-pale: #f7f5ff;
  --lumi-ink: #242033;
  --lumi-muted: #767083;
  --lumi-line: #e6e1f3;
  --lumi-danger: #c74f64;
  --lumi-success: #4c8b72;
}

* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  overflow-x: hidden;
  color: var(--lumi-ink);
  background: #fbfaff;
  font-family: Inter, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }

.lumi-page-enter { animation: lumiPageIn .28s ease both; }
.lumi-page-leave { animation: lumiPageOut .18s ease both; }
@keyframes lumiPageIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes lumiPageOut { from { opacity: 1; } to { opacity: 0; transform: translateY(-5px); } }

.lumi-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 700;
  letter-spacing: .04em;
}
.lumi-brand-mark {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
}
.lumi-brand-mark img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; }
.lumi-brand-mark img:last-child { opacity: .72; }

.auth-page {
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  display: grid;
  grid-template-columns: minmax(320px, 44%) minmax(420px, 56%);
  overflow: hidden;
}
.auth-story {
  min-width: 0;
  min-height: 100svh;
  padding: 42px clamp(34px, 5vw, 78px);
  background: #eee9ff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}
.auth-story::after {
  content: "";
  position: absolute;
  width: min(42vw, 520px);
  aspect-ratio: 1;
  right: -15%;
  bottom: -10%;
  background: url('/assets/lumi-snowflake-effect.webp?v=1') center/contain no-repeat;
  opacity: .18;
  pointer-events: none;
}
.auth-story-copy { position: relative; z-index: 1; width: 100%; min-width: 0; max-width: 520px; margin: auto 0; padding: 80px 0; }
.auth-story-kicker { color: var(--lumi-purple-deep); font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.auth-story h1 { margin: 18px 0 16px; font-size: clamp(38px, 5vw, 68px); line-height: 1.04; letter-spacing: -.045em; }
.auth-story p { min-width: 0; margin: 0; color: #625b74; font-size: 17px; line-height: 1.8; max-width: min(100%, 470px); overflow-wrap: anywhere; word-break: break-word; }
.auth-story-foot { position: relative; z-index: 1; color: #736b84; font-size: 13px; }

.auth-form-panel {
  width: 100%;
  min-width: 0;
  min-height: 100svh;
  padding: 36px clamp(28px, 7vw, 110px);
  background: #fff;
  display: flex;
  flex-direction: column;
}
.auth-form-top { display: flex; justify-content: flex-end; min-height: 42px; align-items: center; }
.auth-back { color: var(--lumi-muted); font-size: 14px; padding: 8px 0; border-bottom: 1px solid transparent; }
.auth-back:hover { color: var(--lumi-purple-deep); border-color: var(--lumi-purple); }
.auth-form-wrap { width: min(100%, 430px); min-width: 0; max-width: 100%; margin: auto; padding: 54px 0 70px; }
.auth-form-wrap h2 { margin: 0; font-size: 36px; letter-spacing: -.035em; }
.auth-form-intro { color: var(--lumi-muted); line-height: 1.7; margin: 12px 0 34px; }
.lumi-form-field { min-width: 0; margin-bottom: 19px; }
.lumi-form-field label { display: block; color: #514a61; font-size: 13px; font-weight: 650; margin: 0 0 8px; }
.lumi-input {
  width: 100%;
  max-width: 100%;
  height: 50px;
  border: 1px solid var(--lumi-line);
  border-radius: 10px;
  padding: 0 15px;
  color: var(--lumi-ink);
  background: #fff;
  outline: none;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.lumi-input:focus { border-color: var(--lumi-purple); box-shadow: 0 0 0 4px rgba(128,103,216,.12); }
.lumi-input:disabled { background: #f4f2f8; color: #918b9d; cursor: not-allowed; }
.field-hint { margin: 8px 0 0; color: #908a9b; font-size: 12px; line-height: 1.55; }
.form-status { min-height: 22px; margin: 4px 0 12px; font-size: 13px; line-height: 1.55; color: var(--lumi-danger); }
.form-status.is-success { color: var(--lumi-success); }
.lumi-primary {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 10px;
  background: var(--lumi-purple);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: background .16s ease, transform .16s ease, opacity .16s ease;
}
.lumi-primary:hover { background: var(--lumi-purple-deep); transform: translateY(-1px); }
.lumi-primary:disabled { opacity: .55; cursor: wait; transform: none; }
.auth-helper-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 12px 0 24px; color: var(--lumi-muted); font-size: 13px; }
.auth-helper-row a, .auth-switch a { color: var(--lumi-purple-deep); font-weight: 650; }
.auth-switch { margin-top: 28px; color: var(--lumi-muted); font-size: 14px; }
.lumi-visually-hidden {
  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;
}
.auth-page-legal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 28px;
  padding-top: 18px;
  border-top: 1px solid var(--lumi-line);
  color: #8a8494;
  font-size: 12px;
}
.auth-page-legal a { transition: color .16s ease; }
.auth-page-legal a:hover { color: var(--lumi-purple-deep); }

.legal-page { min-height: 100svh; background: #f8f6ff; }
.legal-topbar {
  min-height: 76px;
  padding: 14px clamp(20px, 4vw, 62px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-bottom: 1px solid var(--lumi-line);
  background: rgba(255,255,255,.88);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
}
.legal-home-link { color: var(--lumi-muted); font-size: 14px; }
.legal-home-link:hover { color: var(--lumi-purple-deep); }
.legal-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
}
.legal-sidebar {
  position: sticky;
  top: 30px;
  padding: 64px 34px 64px 0;
}
.legal-sidebar-kicker,
.legal-document-head > span {
  color: var(--lumi-purple-deep);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .15em;
}
.legal-sidebar nav { display: grid; gap: 4px; margin-top: 22px; }
.legal-sidebar a {
  padding: 11px 13px;
  border-left: 3px solid transparent;
  color: #6e6878;
  font-size: 13px;
}
.legal-sidebar a:hover { color: var(--lumi-purple-deep); background: rgba(128,103,216,.05); }
.legal-sidebar a.is-active { color: var(--lumi-purple-deep); border-color: var(--lumi-purple); background: var(--lumi-purple-soft); font-weight: 700; }
.legal-document {
  min-width: 0;
  padding: 62px 0 88px clamp(34px, 6vw, 84px);
  border-left: 1px solid var(--lumi-line);
}
.legal-document-head { max-width: 760px; padding-bottom: 38px; border-bottom: 1px solid var(--lumi-line); }
.legal-document-head h1 { margin: 13px 0 16px; font-size: clamp(36px, 5vw, 58px); line-height: 1.06; letter-spacing: -.045em; }
.legal-document-head p { margin: 0; color: #686174; font-size: 16px; line-height: 1.8; }
.legal-sections { max-width: 760px; }
.legal-sections section { padding: 30px 0 4px; }
.legal-sections h2 { margin: 0 0 14px; color: #312b42; font-size: 18px; line-height: 1.45; }
.legal-sections p,
.legal-sections li { color: #625b6e; font-size: 14px; line-height: 1.9; }
.legal-sections p { margin: 0 0 12px; }
.legal-sections ul { margin: 0; padding-inline-start: 22px; }
.legal-sections li { margin: 6px 0; padding-inline-start: 4px; }
.legal-page-footer {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 24px 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  border-top: 1px solid var(--lumi-line);
  color: #918b99;
  font-size: 12px;
}
.legal-page-footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px 20px; }
.legal-page-footer a:hover { color: var(--lumi-purple-deep); }

.account-page { min-height: 100svh; background: #f8f6ff; }
.account-topbar {
  height: 76px;
  padding: 0 clamp(20px, 4vw, 62px);
  background: #fff;
  border-bottom: 1px solid var(--lumi-line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.account-top-actions { display: flex; align-items: center; gap: 18px; color: var(--lumi-muted); font-size: 14px; }
.account-top-actions a:hover, .account-top-actions button:hover { color: var(--lumi-purple-deep); }
.account-language {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 10px;
  border: 1px solid var(--lumi-line);
  border-radius: 10px;
  color: #716987;
  background: #fbfaff;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}
.account-language:focus-within { border-color: #aa98dd; box-shadow: 0 0 0 3px rgba(128,103,216,.1); background: #fff; }
.account-language svg { width: 16px; height: 16px; flex: 0 0 16px; fill: none; stroke: currentColor; stroke-width: 1.65; stroke-linecap: round; stroke-linejoin: round; }
.account-language select { max-width: 112px; border: 0; outline: 0; color: inherit; background: transparent; cursor: pointer; font: inherit; }
.account-language option { color: var(--lumi-ink); background: #fff; }
.account-logout { border: 0; background: transparent; color: inherit; cursor: pointer; padding: 8px 0; }
.account-layout {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100svh - 76px);
}
.account-sidebar { padding: 52px 28px 52px 0; border-right: 1px solid var(--lumi-line); }
.account-user-summary { padding: 0 8px 30px; border-bottom: 1px solid var(--lumi-line); }
.account-user-summary img { width: 68px; height: 68px; border-radius: 22px; object-fit: cover; background: var(--lumi-purple-soft); }
.account-user-summary strong { display: block; margin-top: 14px; font-size: 17px; word-break: break-word; }
.account-user-summary span { display: block; color: var(--lumi-muted); font-size: 12px; margin-top: 6px; }
.account-nav { display: grid; gap: 6px; margin-top: 24px; }
.account-nav a { padding: 13px 14px; border-left: 3px solid transparent; color: #635d70; font-size: 14px; }
.account-nav a:hover { color: var(--lumi-purple-deep); background: rgba(128,103,216,.05); }
.account-nav a.is-active { color: var(--lumi-purple-deep); border-color: var(--lumi-purple); background: var(--lumi-purple-soft); font-weight: 700; }
.account-main { padding: 54px 0 70px clamp(34px, 5vw, 72px); min-width: 0; }
.account-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; margin-bottom: 34px; }
.account-heading h1 { margin: 0; font-size: clamp(28px, 4vw, 42px); letter-spacing: -.04em; }
.account-heading p { margin: 10px 0 0; color: var(--lumi-muted); line-height: 1.7; }
.status-pill { display: inline-flex; align-items: center; min-height: 30px; padding: 0 12px; border-radius: 999px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status-pill.is-verified { color: #2e745c; background: #e6f5ef; }
.status-pill.is-unverified { color: #8b5b1f; background: #fff0d7; }
.account-section { padding: 26px 0; border-top: 1px solid var(--lumi-line); }
.account-section:first-of-type { border-top: 0; padding-top: 0; }
.account-section-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.account-section h2 { margin: 0; font-size: 18px; }
.account-section-copy { color: var(--lumi-muted); margin: 7px 0 0; font-size: 13px; line-height: 1.7; }
.account-form { max-width: 560px; }
.account-form-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.account-form-row .lumi-form-field { margin: 0; }
.account-secondary, .account-inline-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border-radius: 9px;
  cursor: pointer;
  font-weight: 650;
}
.account-secondary { border: 1px solid var(--lumi-line); color: var(--lumi-purple-deep); background: #fff; }
.account-inline-primary { border: 0; color: #fff; background: var(--lumi-purple); }
.account-secondary:hover { border-color: var(--lumi-purple); }
.account-inline-primary:hover { background: var(--lumi-purple-deep); }
.account-inline-primary:disabled, .account-secondary:disabled { opacity: .5; cursor: not-allowed; }
.security-gate {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 22px 24px;
  margin-bottom: 30px;
  background: #eeeaff;
  border-left: 4px solid var(--lumi-purple);
}
.security-gate strong { display: block; font-size: 17px; }
.security-gate p { margin: 7px 0 0; color: #665e78; line-height: 1.65; }
.locked-note { color: #8d6470; font-size: 12px; margin-top: 9px; }

.feedback-main { min-width: 0; }
.feedback-heading { align-items: center; }
.feedback-compose[hidden] { display: none; }
.feedback-textarea { min-height: 150px; padding-top: 12px; resize: vertical; line-height: 1.65; }
.feedback-form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.feedback-list-section .account-section-head { align-items: center; }
.feedback-refresh { width: auto; }
.feedback-list { display: grid; gap: 12px; }
.feedback-item { padding: 17px 18px; border: 1px solid #e8e1f3; border-radius: 12px; background: #fff; }
.feedback-item-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.feedback-item-title { display: grid; gap: 5px; min-width: 0; }
.feedback-item-title strong { color: #342e48; font-size: 15px; overflow-wrap: anywhere; }
.feedback-item-title span { color: #9991a6; font-size: 12px; }
.feedback-status { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; font-size: 12px; }
.feedback-status.is-new { color: #7950bd; background: #f1eaff; }
.feedback-status.is-reviewing { color: #936500; background: #fff0c8; }
.feedback-status.is-resolved { color: #157252; background: #e5f7ef; }
.feedback-item-message { margin: 13px 0 0; color: #5f586d; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.7; }
.feedback-admin-note { display: grid; gap: 4px; margin-top: 13px; padding: 11px 13px; border-radius: 9px; color: #665a7a; background: #f8f5fd; }
.feedback-admin-note strong { color: #4f426a; font-size: 12px; }
.feedback-admin-note span { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 13px; line-height: 1.6; }
.feedback-empty { padding: 36px 16px; border: 1px dashed #e1d8ef; border-radius: 11px; color: #9890a5; text-align: center; }
.feedback-empty.is-error { color: #a54b5d; }

@media (max-width: 720px) {
  .feedback-heading { align-items: stretch; }
  .feedback-heading .account-inline-primary { width: 100%; }
  .feedback-item-head { align-items: stretch; flex-direction: column; }
  .feedback-status { align-self: flex-start; }
}
.profile-avatar-editor { display: flex; align-items: center; gap: 22px; }
.profile-avatar-editor img { width: 88px; height: 88px; border-radius: 28px; object-fit: cover; background: var(--lumi-purple-soft); }
.file-button { display: inline-flex; align-items: center; justify-content: center; min-height: 42px; padding: 0 16px; border: 1px solid var(--lumi-line); border-radius: 9px; color: var(--lumi-purple-deep); cursor: pointer; background: #fff; }
.file-button input { position: absolute; opacity: 0; pointer-events: none; }
.avatar-library { display:grid; grid-template-columns:repeat(12,minmax(0,1fr)); gap:8px; max-width:720px; margin-top:18px; }
.avatar-library-item { display:grid; place-items:center; aspect-ratio:1; min-width:0; padding:5px; border:1px solid var(--lumi-line); border-radius:12px; background:#fff; cursor:pointer; transition:border-color .16s ease,box-shadow .16s ease,transform .16s ease; }
.avatar-library-item:hover { border-color:#b9a9e4; transform:translateY(-1px); }
.avatar-library-item.is-selected { border-color:var(--lumi-purple); box-shadow:0 0 0 3px rgba(128,103,216,.13); background:var(--lumi-purple-pale); }
.avatar-library-item:disabled { opacity:.55; cursor:wait; transform:none; }
.avatar-library-item img { display:block; width:100%; height:100%; border-radius:8px; object-fit:cover; }
.avatar-crop-dialog {
  width: min(520px, calc(100vw - 28px));
  max-width: none;
  margin: auto;
  padding: 0;
  border: 1px solid var(--lumi-line);
  border-radius: 18px;
  color: var(--lumi-ink);
  background: #fff;
  box-shadow: 0 28px 80px rgba(42, 31, 73, .24);
}
.avatar-crop-dialog::backdrop { background: rgba(28, 22, 42, .48); backdrop-filter: blur(5px); }
.avatar-crop-shell { padding: 24px; }
.avatar-crop-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.avatar-crop-header h2 { margin: 4px 0 0; font-size: 21px; letter-spacing: -.02em; }
.avatar-crop-kicker { color: var(--lumi-purple-deep); font-size: 10px; font-weight: 800; letter-spacing: .14em; }
.avatar-crop-close { width: 34px; height: 34px; border: 0; border-radius: 50%; color: #746d80; background: #f4f1fa; cursor: pointer; font-size: 22px; line-height: 1; }
.avatar-crop-stage {
  position: relative;
  width: min(100%, 360px);
  aspect-ratio: 1;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 18px;
  background: #edeaf4;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.avatar-crop-stage.is-dragging { cursor: grabbing; }
.avatar-crop-stage canvas { display: block; width: 100%; height: 100%; }
.avatar-crop-guide { position: absolute; inset: 10%; border: 2px solid rgba(255,255,255,.94); border-radius: 24%; box-shadow: 0 0 0 999px rgba(26,20,38,.25), 0 0 0 1px rgba(78,58,126,.16); pointer-events: none; }
.avatar-crop-zoom { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 14px; margin: 20px 4px 0; color: #625a70; font-size: 13px; }
.avatar-crop-zoom input { width: 100%; accent-color: var(--lumi-purple); }
.avatar-crop-help { margin: 9px 4px 0; color: var(--lumi-muted); font-size: 12px; line-height: 1.6; }
.avatar-crop-status { margin: 10px 4px 0; }
.avatar-crop-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 16px; }
.avatar-crop-actions button { min-width: 104px; }
.identity-list { display: flex; flex-wrap: wrap; gap: 9px; }
.identity-chip { display: inline-flex; align-items: center; min-height: 34px; padding: 0 13px; border-radius: 999px; background: var(--lumi-purple-soft); color: var(--lumi-purple-deep); font-size: 13px; font-weight: 700; }
.account-meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--lumi-line); border: 1px solid var(--lumi-line); }
.account-meta-item { background: #fff; padding: 18px; min-width: 0; }
.account-meta-item span { display: block; color: var(--lumi-muted); font-size: 12px; margin-bottom: 8px; }
.account-meta-item strong { font-size: 14px; word-break: break-word; }
.bound-email-value { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 17px 18px; border: 1px solid #e5dcf4; border-radius: 14px; background: linear-gradient(135deg, #fbf9ff, #f5efff); }
.bound-email-value span { color: var(--lumi-muted); font-size: 12px; }
.bound-email-value strong { min-width: 0; color: var(--lumi-text); font-size: 14px; overflow-wrap: anywhere; }
.bound-email-value em { padding: 6px 10px; border-radius: 999px; background: #ece3fb; color: #6f45a3; font-size: 12px; font-style: normal; white-space: nowrap; }
.verification-code-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.cdk-redeem-section { scroll-margin-top: 24px; }
.cdk-redeem-section:target { animation: lumiCdkHighlight 1.1s ease both; }
.cdk-code-input { letter-spacing: .08em; text-transform: uppercase; }
@keyframes lumiCdkHighlight { 0% { background: rgba(128,103,216,.12); } 100% { background: transparent; } }
.account-section[aria-disabled="true"] { opacity: .62; }

@media (max-width: 860px) {
  .auth-page { grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .auth-story { width: 100%; max-width: 100vw; min-height: auto; padding: 24px 22px; }
  .auth-story-copy { width: calc(100vw - 44px); max-width: calc(100vw - 44px); padding: 48px 0 34px; }
  .auth-story p { width: calc(100vw - 44px); max-width: calc(100vw - 44px); }
  .auth-story h1 { font-size: 38px; }
  .auth-story p { font-size: 15px; }
  .auth-form-panel { width: 100%; max-width: 100vw; min-height: auto; padding: 22px; }
  .auth-form-top { min-height: 30px; }
  .auth-form-wrap { width: calc(100vw - 44px); max-width: calc(100vw - 44px); padding: 44px 0 64px; }
  .auth-form-wrap form { width: 100%; max-width: 100%; }
  .account-topbar { height: 68px; }
  .account-layout { width: 100%; grid-template-columns: 1fr; }
  .account-sidebar { padding: 22px 20px 0; border-right: 0; border-bottom: 1px solid var(--lumi-line); }
  .account-user-summary { display: flex; align-items: center; gap: 14px; padding: 0 0 18px; }
  .account-user-summary img { width: 52px; height: 52px; border-radius: 18px; }
  .account-user-summary strong { margin: 0; }
  .account-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; gap: 0; }
  .account-nav a { text-align: center; border-left: 0; border-bottom: 3px solid transparent; }
  .account-main { padding: 36px 20px 56px; }
  .legal-layout { width: 100%; grid-template-columns: 1fr; }
  .legal-sidebar { position: static; padding: 24px 20px 0; }
  .legal-sidebar-kicker { display: none; }
  .legal-sidebar nav { display: flex; margin-top: 0; overflow-x: auto; }
  .legal-sidebar a { flex: none; border-left: 0; border-bottom: 3px solid transparent; }
  .legal-document { padding: 42px 20px 68px; border-left: 0; }
	.avatar-library { grid-template-columns:repeat(8,minmax(0,1fr)); }
}

@media (max-width: 560px) {
  .auth-story-foot { display: none; }
  .auth-form-wrap h2 { font-size: 30px; }
  .account-top-actions a { display: none; }
  .account-topbar { gap: 10px; padding-inline: 14px; }
  .account-topbar .lumi-brand { gap: 8px; min-width: 0; }
  .account-topbar .lumi-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .account-topbar .lumi-brand > span:last-child { max-width: 86px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .account-top-actions { gap: 9px; }
  .account-language { padding-inline: 8px; }
  .account-language select { width: 82px; max-width: 82px; }
  .account-heading, .account-section-head { display: block; }
  .status-pill { margin-top: 14px; }
  .security-gate { grid-template-columns: 1fr; }
  .account-form-row, .verification-code-row, .account-meta, .bound-email-value { grid-template-columns: 1fr; }
	.bound-email-value { gap: 8px; }
	.bound-email-value em { justify-self: start; }
  .account-form-row button, .verification-code-row button { width: 100%; }
  .avatar-crop-shell { padding: 20px 16px 16px; }
  .avatar-crop-stage { width: min(100%, 330px); }
  .avatar-crop-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .avatar-crop-actions button { width: 100%; min-width: 0; }
	.profile-avatar-editor { align-items:flex-start; flex-direction:column; }
	.avatar-library { grid-template-columns:repeat(6,minmax(0,1fr)); gap:7px; }
  .legal-topbar { min-height: 68px; padding: 12px 16px; }
  .legal-topbar .lumi-brand-mark { width: 36px; height: 36px; flex-basis: 36px; }
  .legal-document-head h1 { font-size: 34px; }
  .legal-page-footer { width: calc(100% - 32px); display: block; }
  .legal-page-footer nav { justify-content: flex-start; margin-top: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .lumi-page-enter, .lumi-page-leave { animation: none; }
  * { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}
