/* Вход, регистрация и кабинет: та же плашка, золото и шрифты, что на главной и в магазине. */
.account-page { --control-h:52px; min-height:100svh; display:flex; flex-direction:column; }
.account-page .shop-sitebar { position:relative; z-index:1; background:#0d0e14b3; backdrop-filter:blur(6px); }

/* Фон — иллюстрация первого экрана под тем же затемнением. */
.account-art { position:fixed; inset:0; z-index:-1; pointer-events:none; }
.account-art img { width:100%; height:100%; object-fit:cover; object-position:70% 30%; }
.account-art::after { content:''; position:absolute; inset:0; background:linear-gradient(90deg,#0d0e14f2 0%,#0d0e14bf 38%,#0d0e1466 70%,#0d0e14b3 100%),linear-gradient(0deg,var(--bg) 0%,transparent 40%); }

.account-frame { flex:1; display:grid; grid-template-columns:minmax(0,1fr) minmax(0,560px); align-items:start; align-content:start; gap:clamp(28px,5vw,120px); width:min(1440px,100%); margin-inline:auto; padding:clamp(28px,4vw,80px) clamp(16px,3vw,40px); }

.account-intro { display:grid; gap:clamp(14px,1.3vw,26px); justify-items:start; }
.account-intro .eyebrow { color:var(--gold-bright); }
.account-intro h1 { font-size:clamp(44px,4.6vw,104px); line-height:1; letter-spacing:-.02em; text-shadow:0 4px 40px #000a; }
.account-intro .lead { text-shadow:0 2px 16px #000; }
.account-path { display:grid; gap:30px; margin:clamp(8px,1.4vw,28px) 0 0; padding:0; list-style:none; }
.account-path li { display:flex; align-items:center; gap:26px; padding-left:10px; }
.account-path strong { font:500 var(--fs-h4)/1.2 var(--serif); }
.account-path p { color:var(--muted); font-size:var(--fs-small); }
/* Ромб пути — как узлы шагов «Как начать» на главной. */
.account-node { flex:none; display:grid; place-items:center; width:48px; aspect-ratio:1; background:var(--ink-2); border:1px solid var(--line-gold-strong); rotate:45deg; color:var(--gold); font:600 15px/1 var(--display); }
.account-node>span { rotate:-45deg; }

/* Карточка формы. */
.account-card { --face:linear-gradient(110deg,#1d1726f5,#14131df5); --face-top:radial-gradient(ellipse at 20% 0%,var(--glow),transparent 70%); --edge-c:var(--line-gold-strong);
  display:grid; gap:20px; padding:clamp(24px,2.4vw,44px); box-shadow:0 30px 80px #0009; }
.account-card:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
.account-card form,.account-card #register-panel>div,.account-card #reset-ask,.account-card #reset-set,.account-card #profile { display:grid; gap:18px; }
.account-card #verify { display:grid; gap:14px; }
.account-tabs { margin-bottom:24px; }
.account-tabs>button { flex:1; }
.account-title { font-size:var(--fs-h3); line-height:1.15; overflow-wrap:anywhere; }
.account-title em { font-style:italic; color:var(--gold-bright); }
.account-submit { width:100%; margin-top:4px; }
.account-alt { color:var(--muted); font-size:var(--fs-small); text-align:center; }
.account-note { color:var(--text-soft); overflow-wrap:anywhere; }
.account-note strong { color:var(--gold-bright); font-weight:600; }
.account-card .service-field { flex:none; }

/* Глазик в поле пароля: та же геометрия, отдельная зона нажатия 44px. */
.account-input,.account-card .password-input { position:relative; display:block; }
.account-card .password-input input { padding-right:60px; }
.account-eye { position:absolute; right:4px; top:50%; translate:0 -50%; display:grid; place-items:center; width:44px; min-height:44px; padding:0; color:var(--gold-3); }
.account-eye .ui-icon { width:24px; height:24px; pointer-events:none; }
.account-eye:not(:disabled):hover { color:var(--gold-bright); background:var(--glow); }
.account-eye:focus-visible { outline:2px solid var(--gold); outline-offset:0; }
.account-eye:disabled { cursor:default; opacity:.5; }

/* Подсказки к логину и паролю: серые, золотые при выполнении, розовые при ошибке. */
.account-rules { display:flex; flex-wrap:wrap; gap:6px 16px; margin:-8px 0 0; padding:0; list-style:none; color:var(--muted); font-size:var(--fs-small); }
.account-rules li::before { content:'·'; display:inline-block; width:1.1em; color:var(--faint); }
.account-rules li.ok { color:var(--gold-3); }
.account-rules li.ok::before { content:'✓'; color:var(--gold); }
.account-rules li.no { color:var(--danger); }
.account-rules li.no::before { content:'×'; color:var(--danger); }

/* Шаги регистрации. */
.account-steps { display:grid; grid-template-columns:repeat(3,1fr); gap:6px; margin:0 0 6px; padding:0; list-style:none; counter-reset:step; }
.account-steps li { counter-increment:step; padding-top:10px; border-top:2px solid var(--line-strong); color:var(--muted); font:600 var(--fs-micro)/1.4 var(--sans); letter-spacing:.16em; text-transform:uppercase; }
.account-steps li::before { content:counter(step,upper-roman) ' · '; }
.account-steps li.now { border-color:var(--gold); color:var(--gold-bright); }
.account-steps li.done { border-color:var(--gold-6); color:var(--gold-5); }

.account-closed { display:grid; gap:4px; padding:14px 18px; border-left:2px solid var(--gold); background:var(--glow); color:var(--text-soft); font-size:var(--fs-small); }
.account-closed strong { color:var(--gold-bright); font:500 var(--fs-h4)/1.2 var(--serif); }

/* Шесть клеток кода. */
.account-code { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:clamp(6px,.8vw,12px); }
.account-code input { width:100%; min-width:0; aspect-ratio:1 / 1.15; border:1px solid var(--line-strong); border-radius:0; background:var(--ink-1); color:var(--gold-bright); text-align:center; font:500 clamp(24px,2vw,32px)/1 var(--sans); font-variant-numeric:lining-nums tabular-nums; caret-color:var(--gold); }
.account-code input:focus { border-color:var(--gold); outline:none; box-shadow:0 0 0 1px var(--gold) inset; }
.account-code.bad input { border-color:var(--danger); animation:account-shake .35s var(--ease); }
@keyframes account-shake { 25% { translate:-4px 0; } 75% { translate:4px 0; } }

/* Telegram. */
.account-tg { display:grid; gap:14px; min-width:0; padding:18px 20px; background:var(--ink-2); border-left:2px solid var(--gold); }
.account-tg ol { margin:0; padding-left:1.3em; color:var(--text-soft); }
.account-tg li::marker { color:var(--gold); font-family:var(--serif); }
.account-wait { color:var(--gold-3); font-size:var(--fs-small); animation:account-pulse 1.4s ease-in-out infinite; }
@keyframes account-pulse { 50% { opacity:.75; } }

.account-seal { display:grid; margin:14px 0 6px 12px; place-items:center; width:64px; aspect-ratio:1; border:1px solid var(--line-gold-strong); rotate:45deg; color:var(--gold); background:radial-gradient(var(--glow),transparent 70%); }
.account-seal .ui-icon { width:30px; height:30px; rotate:-45deg; }
.account-actions { display:flex; flex-wrap:wrap; align-items:center; gap:12px; }

/* Кабинет. */
.account-zbt { padding:12px 16px; border-left:2px solid var(--ok); background:#79bea014; color:var(--text-soft); }
.account-zbt.todo { border-color:var(--gold); background:var(--glow); }
.account-facts { display:grid; border-top:1px solid var(--line-gold); }
.account-facts>div { display:grid; grid-template-columns:7.5em minmax(0,1fr) auto; align-items:center; gap:12px; padding:14px 2px; border-bottom:1px solid var(--line-gold); }
.account-facts dt { color:var(--muted); font-size:var(--fs-small); }
.account-facts dd { display:grid; overflow-wrap:anywhere; }
.account-facts small { font-size:var(--fs-small); color:var(--muted); }
.account-facts small.good { color:var(--ok); }
.account-facts small.warn { color:var(--gold-3); }

.account-status { min-height:1.5em; color:var(--muted); font-size:var(--fs-small); }
.account-status:empty { margin-top:-20px; min-height:0; }
.account-status.ok { color:var(--ok); }
.account-status.bad { color:var(--danger); }

@media (max-width:900px) {
  .account-frame { width:min(640px,100%); grid-template-columns:1fr; align-items:start; }
  .account-intro .lead,.account-path { display:none; }
  .account-intro h1 { font-size:clamp(40px,10vw,64px); }
}
@media (max-width:560px) { .account-tg { padding:16px; } .account-steps li { letter-spacing:.08em; } }
@media (max-width:420px) { .account-facts>div { grid-template-columns:1fr auto; } .account-facts dt { grid-column:1 / -1; } }

@media (prefers-reduced-motion:reduce) { .account-code.bad input,.account-wait { animation:none; } }

/* Никнейм и аватар отделены от постоянного логина для входа. */
.profile-identity { display:grid; grid-template-columns:96px minmax(0,1fr); align-items:center; gap:20px; }
.profile-heading { display:grid; gap:8px; min-width:0; justify-items:start; }
.profile-heading .service-note { overflow-wrap:anywhere; }
.profile-portrait { width:96px; height:112px; padding:5px; }
.profile-avatar-art { position:relative; display:block; width:100%; aspect-ratio:1; overflow:hidden; background:var(--ink-2); }
.profile-portrait .profile-avatar-art { height:100%; }
.profile-avatar-art img { position:absolute; width:var(--avatar-scale,380%); max-width:none; height:auto; left:50%; top:50%; transform:translate(calc(-1 * var(--avatar-x,50%)),calc(-1 * var(--avatar-y,20%))); }
.profile-avatar-choice[data-avatar="swordsman"],.profile-identity[data-avatar="swordsman"] { --avatar-x:54%; --avatar-y:26.4%; --avatar-scale:380%; }
.profile-avatar-choice[data-avatar="paladin"],.profile-identity[data-avatar="paladin"] { --avatar-x:53%; --avatar-y:14.4%; --avatar-scale:380%; }
.profile-avatar-choice[data-avatar="rogue"],.profile-identity[data-avatar="rogue"] { --avatar-x:43.5%; --avatar-y:19.8%; --avatar-scale:420%; }
.profile-avatar-choice[data-avatar="sorceress"],.profile-identity[data-avatar="sorceress"] { --avatar-x:55.5%; --avatar-y:26.7%; --avatar-scale:390%; }
.profile-avatar-choice[data-avatar="archer"],.profile-identity[data-avatar="archer"] { --avatar-x:55.5%; --avatar-y:15%; --avatar-scale:380%; }
.profile-avatar-choice[data-avatar="mystic"],.profile-identity[data-avatar="mystic"] { --avatar-x:46.5%; --avatar-y:16.1%; --avatar-scale:400%; }
.profile-avatar-choice[data-avatar="cannoneer"],.profile-identity[data-avatar="cannoneer"] { --avatar-x:39.5%; --avatar-y:24.4%; --avatar-scale:340%; }
.profile-identity[data-avatar=""] img { position:static; width:100%; height:100%; object-fit:contain; padding:12px; transform:none; }
.profile-editor { padding-block:22px; border-block:1px solid var(--line-gold); }
.profile-editor #profile-name-note { margin-top:-10px; }
.profile-identity[data-avatar="photo"] .profile-avatar-art img { position:static; width:100%; height:100%; object-fit:cover; transform:none; }
.profile-portrait.drag { outline:2px solid var(--gold); outline-offset:3px; }
.profile-photo { display:flex; flex-wrap:wrap; align-items:center; gap:8px 14px; margin-top:12px; }
.profile-photo .service-note { flex:1 1 220px; margin:0; }
.profile-avatars { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; }
.profile-avatar-choice { display:grid; justify-content:stretch; align-items:stretch; gap:8px; min-width:0; min-height:0; padding:6px; --face:initial; --face-c:var(--ink-2); }
.profile-avatar-caption { font:400 var(--fs-small)/1.4 var(--sans); letter-spacing:0; }
.profile-avatar-choice[aria-pressed="true"] { --edge-c:var(--gold); --face-c:var(--ink-4); color:var(--gold-bright); }
.profile-avatar-choice[aria-pressed="true"] .profile-avatar-caption { text-decoration:underline; text-underline-offset:4px; }
.account-card .button.profile-avatar-choice[aria-pressed="true"],.account-card .button.profile-avatar-choice[aria-pressed="true"]:is(:hover,:focus-visible,:active) { --edge-c:var(--gold); --face-c:var(--ink-4); color:var(--gold-bright); }
@media (max-width:560px) { .profile-identity { grid-template-columns:80px minmax(0,1fr); gap:16px; } .profile-portrait { width:80px; height:96px; } .profile-avatars { grid-template-columns:repeat(3,minmax(0,1fr)); } }

/* Во время редактирования карточка показывает только выбранное действие. */
#profile:has(#profile-editor:not([hidden])) > :is(.profile-overview,#verify,#p-tg-box),#profile:has(#profile-editor:not([hidden])) #p-edit-profile { display:none; }

.account-tg-manual { display:grid; gap:10px; padding-top:12px; border-top:1px solid var(--line-gold); }
.account-tg-manual input { font-family:var(--sans); font-size:var(--fs-small); }
:is(#reg-tg-copy-status,#p-tg-copy-status):empty { margin-top:-14px; }

.account-tg a[aria-disabled="true"] { opacity:.55; cursor:not-allowed; }

/* Новые подтверждения используют поля и ритм существующей карточки. */
.account-card :is([data-auth-challenge],#reset-telegram) { display:grid; gap:14px; min-width:0; }
.account-card :is(select,textarea) { width:100%; min-width:0; padding:12px; border:1px solid var(--line-strong); border-radius:0; background:var(--ink-1); color:var(--text); font:inherit; }
.account-card textarea { resize:vertical; overflow-wrap:anywhere; }
.account-card :is(select,textarea):focus-visible { outline:2px solid var(--gold); outline-offset:2px; }

/* Иерархия форм: подсказка рядом с полем, подтверждение отдельным шагом. */
.account-card #registration-fields { display:grid; gap:18px; }
.account-card .account-field-note { margin-top:-12px; }
.account-card .service-field > small { font-weight:400; letter-spacing:0; }
.account-field-error { color:var(--danger); font-size:var(--fs-small); }
.account-card input[aria-invalid="true"] { border-color:var(--danger); }
.account-card .service-field :is(input,select,textarea):focus-visible { border-color:var(--gold); outline:2px solid var(--gold); outline-offset:2px; }
.account-card .service-field input[aria-invalid="true"]:focus-visible { border-color:var(--danger); outline-color:var(--danger); }
.account-session-note { padding-top:14px; border-top:1px solid var(--line-gold); }
.account-card #signin[data-auth-stage="challenge"] > :is(label,#password-note,#password-error,#signin-submit,.account-alt) { display:none; }
.account-card [aria-busy="true"] { cursor:progress; }
.account-card [data-auth-number],#reg-tg-number,#reset-number { color:var(--gold-bright); font-weight:600; letter-spacing:.08em; }
.account-card #closed { display:block; padding:0; border:0; background:none; color:var(--muted); font-size:var(--fs-body); }
.account-card #closed .registration-countdown { width:100%; }
.account-card #closed .countdown-note { font-size:var(--fs-small); }
#reset-context { color:var(--gold-3); overflow-wrap:anywhere; }

/* После входа форма становится обзором: статус сверху, связанные действия рядом. */
.account-frame:has(#profile:not([hidden])) { width:min(1120px,100%); grid-template-columns:minmax(0,1fr); }
.account-frame:has(#profile:not([hidden])) .account-intro { display:none; }
.account-frame:has(#profile> :is(#verify,#profile-editor):not([hidden])) { width:min(800px,100%); }
.account-card #profile { gap:20px; }
.profile-toolbar { display:flex; align-items:center; justify-content:space-between; gap:16px; }
.profile-quiet-action,.profile-heading .inline-link { display:inline-flex; align-items:center; gap:8px; min-height:44px; }
.profile-quiet-action .ui-icon,.profile-heading .ui-icon { width:20px; height:20px; }
.profile-identity { padding-bottom:20px; border-bottom:1px solid var(--line-gold); }
.profile-heading .account-title { font-size:clamp(32px,3vw,48px); }
.profile-overview { display:grid; gap:24px; min-width:0; }
.profile-access { display:grid; grid-template-columns:44px minmax(0,1fr) auto; align-items:center; gap:20px; padding:10px 0 22px; border-bottom:1px solid var(--line-gold); }
.profile-section-icon { width:44px; height:44px; color:var(--gold); }
.profile-access .overline { margin-bottom:8px; color:var(--muted); }
.profile-access .account-zbt { margin-top:10px; padding:0; border:0; background:none; max-width:56ch; font-size:var(--fs-small); }
.profile-access[data-access="open"] .account-title,.profile-access[data-access="open"] .profile-section-icon { color:var(--ok); }
.profile-access[data-access="closed"] .account-title { color:var(--gold-bright); }
.profile-access-actions { display:flex; flex-direction:column; align-items:flex-end; gap:10px; text-align:right; }
.profile-access-actions .service-note { margin:0; max-width:40ch; }
.launcher-download { white-space:nowrap; }
.profile-grid { display:grid; grid-template-columns:minmax(0,1fr) minmax(0,1fr); gap:32px; }
.profile-section { display:grid; align-content:start; justify-items:start; gap:16px; min-width:0; }
.profile-section-heading { display:flex; align-items:center; gap:12px; }
.profile-section-heading>.ui-icon { flex:none; width:26px; height:26px; color:var(--gold); }
.profile-section-heading h2 { font:500 var(--fs-h4)/1.15 var(--serif); }
.profile-section .account-facts { width:100%; border-color:var(--line); }
.profile-section .account-facts>div { grid-template-columns:5.5em minmax(0,1fr) auto; padding:16px 0; border-color:var(--line); gap:12px; }
.profile-section .account-facts dd { gap:4px; }
.profile-section #p-email-note { max-width:47ch; }
.account-card :is(#verify,#profile-editor) { width:min(100%,600px); margin-inline:auto; }
.account-card #profile-editor { padding-top:0; border-top:0; }
.account-card #verify { padding-block:12px; gap:18px; }
#verify .account-code { max-width:420px; }
#verify .account-code input { aspect-ratio:1; font-size:32px; }
#profile:has(#verify:not([hidden]))>.profile-overview,#profile:has(#verify:not([hidden])) #p-edit-profile { display:none; }

/* Альтернативные способы не отвлекают от основного подтверждения в Telegram. */
.account-flow-help { width:100%; min-width:0; padding-top:14px; border-top:1px solid var(--line); }
.account-flow-help>summary { min-height:44px; padding-block:10px; cursor:pointer; color:var(--gold-3); font-size:var(--fs-small); }
.account-flow-help>summary::marker { color:var(--gold); }
.account-flow-help>summary:focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
.account-flow-help[open] { padding-bottom:8px; }
.account-flow-help> :not(summary) { margin-top:12px; }
.account-flow-number { display:grid; justify-items:center; text-align:center; gap:8px; padding-block:16px; border-block:1px solid var(--line-gold); font-size:var(--fs-small); }
.account-flow-number strong { color:var(--gold-bright); font:600 30px/1.2 var(--sans); letter-spacing:.08em; padding-left:.08em; font-variant-numeric:lining-nums tabular-nums; }
.account-flow-heading { display:grid; gap:10px; }
.account-flow-main,.account-flow-help-body,.account-flow-confirmation,.account-flow-status { display:grid; gap:14px; min-width:0; }
.account-flow-confirmation { padding-block:18px; border-block:1px solid var(--line-gold); }
.account-flow-confirmation:has(#reg-activate[hidden]) { display:none; }
#step-telegram:has(#reg-activate:not([hidden]))>.account-tg,#step-telegram:has(#reg-activate:not([hidden])) #tg-check { display:none; }
.account-flow-value { color:var(--gold-bright); font-style:normal; overflow-wrap:anywhere; }
.account-flow-status { padding-block:18px; border-block:1px solid var(--line-gold); }
.account-flow-help-body .inline-link { justify-self:start; min-height:44px; }
.account-flow-summary { display:grid; gap:8px; padding-block:16px; border-block:1px solid var(--line-gold); }
.account-flow-summary .ui-icon { color:var(--ok); }
.account-flow-steps { display:grid; gap:10px; }
.account-flow-actions { display:flex; align-items:center; flex-wrap:wrap; gap:12px 20px; }
.account-flow-actions>.inline-link { min-height:44px; }
.account-tg .account-flow-help { background:none; }
.account-code[aria-busy="true"] { opacity:.65; }
.account-card #signin[data-auth-stage="challenge"] > :is(#account-title,#signin-note,.account-session-note) { display:none; }
@media (max-width:900px) {
  .profile-access { grid-template-columns:36px minmax(0,1fr); gap:16px; }
  .profile-access>.profile-access-actions { grid-column:2; align-items:flex-start; text-align:left; }
  .profile-section-icon { width:36px; height:36px; }
}
@media (max-width:680px) {
  .profile-grid { grid-template-columns:minmax(0,1fr); gap:28px; }
  .profile-section+.profile-section { padding-top:24px; border-top:1px solid var(--line-gold); }
  .profile-access { padding-top:0; }
  .profile-access>.profile-access-actions { grid-column:1 / -1; align-items:stretch; }
  .profile-access-actions .service-note { max-width:none; }
  .profile-access-actions>.text-link { align-self:flex-start; }
  .profile-access .account-title { font-size:28px; }
  .profile-section .account-facts>div { grid-template-columns:5.5em minmax(0,1fr); }
  .profile-section .account-facts dt { grid-column:auto; }
  .profile-section>.button { width:100%; }
  #verify .account-actions>.button,#verify .account-actions>.text-link { width:100%; }
}
@media (max-width:560px) {
  .account-page .shop-sitebar { flex-wrap:nowrap; gap:10px; padding:14px 16px; }
  .account-page .shop-brand { font-size:20px; letter-spacing:.08em; gap:8px; }
  .account-page .shop-brand img { width:30px; height:30px; }
  .account-page .shop-sitebar>.text-link { flex:none; min-height:44px; padding-inline:12px; font-size:15px; }
}

/* 06.11 дизайн-аудит (Sol): иерархия заголовков, ритм секций, спокойные ссылки. Только CSS. */
/* 06.11 владелец: никнейм без свечения — спокойное золото, без яркого gold-bright. */
.profile-heading .account-title em { color:var(--gold-3); text-shadow:none; }

/* 06.11 владелец (уточнение): фиолетовый отблеск-«прямоугольник» за ником убрать,
   самому нику — добавить тёплое золотое свечение (дышит очень мягко). */
.account-card { --face-top:none; }
#p-display-name, .profile-heading .account-title {
  color:var(--gold-bright);
  text-shadow:0 0 14px #e2bb7b59, 0 2px 28px #e2bb7b26;
}
@media (prefers-reduced-motion:no-preference) {
  #p-display-name, .profile-heading .account-title { animation:nick-glow 4.2s ease-in-out infinite; }
}
@keyframes nick-glow {
  0%,100% { text-shadow:0 0 12px #e2bb7b4d, 0 2px 26px #e2bb7b22; }
  50%     { text-shadow:0 0 22px #e2bb7b80, 0 2px 42px #e2bb7b3d; }
}
.account-card #profile { gap:24px; }
.profile-overview { gap:28px; }
.profile-heading .account-title { line-height:1.1; overflow-wrap:break-word; text-wrap:balance; }
.profile-access .account-title { font-size:clamp(28px,2.6vw,36px); line-height:1.15; overflow-wrap:break-word; text-wrap:balance; }
.profile-section { gap:16px; }
.profile-section-heading { min-width:0; align-items:center; }
.profile-section-heading h2 { margin:0; line-height:1.2; overflow-wrap:break-word; }
.profile-section-heading > .ui-icon { width:24px; height:24px; }
.account-card .service-note { line-height:1.6; }
.account-card .account-status:empty { display:none; margin:0; min-height:0; }
.account-card .service-field { min-width:0; gap:8px; }
.account-card .service-field > small { line-height:1.5; }
.account-card .service-field :is(input,select,textarea) { min-width:0; }
.account-card .service-field input { min-height:var(--control-h); font-size:16px; }
.account-rules { display:grid; gap:4px; line-height:1.5; }
.account-tg ol { display:grid; gap:8px; line-height:1.6; }
.profile-section .account-facts > div { align-items:start; }
.account-facts dt, .account-facts dd { min-width:0; margin:0; }
.account-facts dd { line-height:1.5; }
.account-facts small:empty { display:none; }
.launcher-download { white-space:normal; text-align:center; }
.launcher-download > span:not(.ui-icon) { min-width:0; overflow-wrap:break-word; }
.account-card .inline-link, .account-card .text-link { text-underline-offset:.2em; }
.account-card .account-actions > :is(.inline-link,.text-link), .profile-access-actions > .text-link { min-height:44px; }
.account-card #p-edit-profile, .account-card #p-edit-profile:is(:hover,:focus-visible,:active) { transform:none; }
@media(max-width:420px) { .profile-section .account-facts > div { grid-template-columns:minmax(0,1fr); gap:6px; padding-block:14px; } .profile-section .account-facts dt { grid-column:1; } }

/* Audit: shell, form rhythm and resilient dynamic values. */
.account-frame { width:var(--shell); padding:32px 0; gap:48px; }
.account-intro { gap:16px; }
.account-intro h1 { font:500 clamp(32px,4vw,64px)/1.1 var(--serif); overflow-wrap:anywhere; }
.account-path { gap:32px; }
.account-path li { gap:24px; padding-left:8px; }
.account-card { gap:24px; padding:32px; }
.account-card form,
.account-card #register-panel>div,
.account-card :is(#reset-ask,#reset-set,#verify,#registration-fields) { gap:16px; }
.account-card :is([data-auth-challenge],#reset-telegram) { gap:16px; }
.account-title { font-weight:500; }
.account-tg,.account-flow-main,.account-flow-help-body,
.account-flow-confirmation,.account-flow-status { gap:16px; }
.account-tg { padding:16px; }
.account-flow-heading,.account-flow-steps { gap:12px; }
.account-flow-confirmation,.account-flow-status { padding-block:16px; }
.profile-heading .account-title { overflow-wrap:anywhere; }
.profile-overview { gap:32px; }
.profile-toolbar { flex-wrap:wrap; }
.profile-access,.profile-access>div { min-width:0; }
.account-frame:has(#profile:not([hidden])),
.account-frame:has(#profile> :is(#verify,#profile-editor):not([hidden])) { width:var(--shell); }
.account-frame:has(#profile:not([hidden]))>.account-card { width:100%; max-width:1120px; justify-self:center; }
.account-frame:has(#profile> :is(#verify,#profile-editor):not([hidden]))>.account-card { max-width:800px; }
@media(max-width:900px) {
  .account-frame { width:var(--shell); grid-template-columns:minmax(0,1fr); gap:32px; }
  .account-intro h1 { font-size:clamp(32px,4vw,64px); }
  .account-card { width:100%; max-width:640px; justify-self:center; }
}
@media(max-width:560px) {
  .account-page .shop-sitebar { flex-wrap:wrap; gap:8px 16px; padding:16px var(--gutter); }
  .account-card { padding:24px; }
  .account-frame { padding-block:24px; }
}
