.account-bar { display:flex; align-items:center; gap:6px; margin-inline-start:auto; flex-wrap:nowrap; min-width:0; }
.account-bar + .lang { margin-inline-start:6px; flex:none; }
.account-chip { display:inline-flex; align-items:center; gap:6px; padding:4px 9px; border-radius:999px; background:var(--tint); border:1px solid var(--line); font-size:.82rem; color:var(--ink); min-width:0; max-width:250px; }
.account-email { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; min-width:0; }
.account-badge { flex:none; white-space:nowrap; padding:2px 7px; border-radius:999px; font-size:.73rem; font-weight:700; background:var(--accent-tint); color:var(--accent-ink); }
.account-badge.pro { background:var(--action); color:var(--on-action); }
.account-bar button { flex:none; white-space:nowrap; padding:.4rem .72rem; font-size:.82rem; }
#languageButton { white-space:nowrap; padding:.42rem .72rem; gap:6px; font-size:.84rem; }
.account-bar .account-primary { background:var(--action); color:var(--on-action); border-color:var(--action); }
.account-bar .account-primary:hover { background:var(--action-hover); }

.access-dialog { width:min(460px, calc(100vw - 24px)); padding:0; border:1px solid var(--line); border-radius:18px; background:var(--panel); color:var(--ink); box-shadow:0 20px 50px rgba(0,0,0,.35); }
.access-dialog::backdrop { background:rgba(10,14,22,.62); backdrop-filter:blur(3px); }
.access-wrap { padding:22px 24px 24px; display:grid; gap:14px; }
.access-head { display:flex; align-items:start; justify-content:space-between; gap:12px; }
.access-head h2 { font-size:1.25rem; line-height:1.25; }
.access-close { padding:4px 10px; font-size:1.1rem; line-height:1; border-radius:8px; }
.access-desc { color:var(--muted); font-size:.93rem; line-height:1.5; }
.access-form { display:grid; gap:10px; }
.access-form label { display:grid; gap:5px; font-size:.88rem; font-weight:600; }
.access-btn { background:var(--action); color:var(--on-action); border-color:var(--action); padding:.72rem 1rem; font-weight:650; }
.access-btn:hover { background:var(--action-hover); }
.access-price-card { background:var(--tint); border:1px solid var(--line); border-radius:14px; padding:16px; display:grid; gap:8px; }
.access-price-row { display:flex; align-items:baseline; justify-content:space-between; gap:10px; }
.access-price { font-size:1.6rem; font-weight:800; letter-spacing:-.03em; }
.access-price small { font-size:.85rem; font-weight:500; color:var(--muted); }
.access-perks { margin:0; padding-inline-start:18px; color:var(--muted); font-size:.88rem; display:grid; gap:4px; }
.access-divider { display:flex; align-items:center; gap:10px; color:var(--muted); font-size:.82rem; }
.access-divider::before, .access-divider::after { content:''; flex:1; height:1px; background:var(--line); }
.access-msg { font-size:.88rem; line-height:1.45; color:var(--accent-ink); background:var(--accent-tint); padding:8px 12px; border-radius:9px; }
.access-msg:empty { display:none; }
.access-msg.error { color:#b91c1c; background:#fee2e2; }
html[data-theme="dark"] .access-msg.error { color:#fecaca; background:#450a0a; }
.access-dev-note { font-size:.78rem; color:var(--muted); line-height:1.45; }
@media(max-width:1180px){
  .account-chip { max-width:185px; }
  #languageButton { padding:6px 8px; gap:0; min-height:34px; }
  #languageButton .lang-name { display:none; }
}
@media(max-width:800px){
  .account-bar { margin-inline-start:auto; flex-wrap:nowrap; gap:6px; }
  .account-bar + .lang { margin-inline-start:4px; }
  .account-bar button { padding:.38rem .65rem; font-size:.8rem; white-space:nowrap; }
  .account-chip { max-width:42vw; font-size:.76rem; padding:3px 8px; }
  .account-badge { display:none; }
}
@media(max-width:560px){
  .account-extra { display:none; }
}
