.guest-dialog { width: min(440px,calc(100% - 24px)); max-height: calc(100dvh - 32px); overflow: auto; border: 1px solid var(--line-soft); border-radius: 8px; padding: 20px; background: var(--panel); color: var(--text); }
.guest-dialog::backdrop { background: rgb(0 0 0 / .65); }
.guest-dialog-head, .guest-wallet > header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.guest-dialog h2 { font-size: 20px; margin: 0; }
.guest-dialog form { display: grid; gap: 12px; margin-top: 16px; }
.guest-dialog .input { width: 100%; min-width: 0; }
.guest-password-field { display: flex; position: relative; min-width: 0; }
.guest-password-field .input { width: 100%; padding-right: 48px; }
.guest-eye { position: absolute; inset: 1px 1px 1px auto; width: 44px; padding: 10px; display: grid; place-items: center; color: var(--muted); border: 0; background: transparent; cursor: pointer; }
.guest-eye svg { width: 20px; height: 20px; }
.guest-eye:hover,.guest-eye[aria-pressed=true] { color: var(--text); }
.guest-eye:focus-visible { outline: 2px solid var(--blue); outline-offset: -3px; border-radius: 5px; }
.guest-return { color: var(--muted); background: none; border: 0; padding: 8px 0; font: inherit; font-size: 12px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.guest-return:hover { color: var(--text); }
.guest-wallet-identity { display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line-soft); }
.guest-wallet-identity .guest-identity { border: 0; }
.guest-wallet .guest-save { max-width: 520px; }
.guest-save small { color: var(--muted); font-size: 12px; line-height: 1.5; }
.guest-save .field { min-width: 0; }
.guest-save .guest-check { align-items: flex-start; flex-wrap: nowrap; }
.guest-save .guest-check input { flex: 0 0 18px; margin-top: 2px; }
.guest-dialog small, .guest-note { color: var(--muted); font-size: 12px; line-height: 1.5; }
.guest-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin-top: 16px; padding: 4px; border: 1px solid var(--line-soft); border-radius: 6px; }
.guest-modes button { min-height: 40px; color: var(--text); background: transparent; border: 0; border-radius: 4px; font: inherit; cursor: pointer; }
.guest-modes button[aria-pressed=true] { background: var(--blue); color: white; }
.guest-check { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 13px; line-height: 1.5; }
.guest-check input { width: 18px; height: 18px; accent-color: var(--blue); }
.guest-icon { display: inline-grid; place-items: center; width: 40px; height: 40px; padding: 8px; flex: 0 0 40px; }
.guest-icon svg { width: 18px; height: 18px; }
.guest-error { color: var(--danger,#e86262); margin: 0; font-size: 13px; }
.guest-wallet { max-width: 1000px; margin: 0 auto; display: grid; gap: 16px; }
.guest-wallet h1 { font-size: 22px; margin: 0; }
.guest-wallet > header strong { font-size: 24px; font-variant-numeric: tabular-nums; }
.guest-identity { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.guest-identity > span { color: var(--muted); font-size: 12px; }
.guest-identity > div { display: flex; align-items: center; gap: 8px; }
.guest-identity code { overflow-wrap: anywhere; white-space: normal; min-width: 0; font-size: 18px; font-variant-numeric: tabular-nums; }
.guest-save { padding: 16px; border: 1px solid var(--line-soft); border-radius: 8px; display: grid; gap: 12px; }
.guest-save p { font-size: 13px; color: var(--muted); margin: 0; line-height: 1.5; }
.guest-history { border-top: 1px solid var(--line-soft); padding: 14px 0; }
.guest-history summary { cursor: pointer; }
.guest-ledger-pages { display: flex; align-items: center; justify-content: flex-end; gap: 12px; margin-top: 12px; }
.guest-ledger-row { display: grid; grid-template-columns: 160px 100px minmax(0,1fr); gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line-soft); font-size: 12px; }
body.guest-view .top .top-account-group .points-link { display: none !important; }
body.guest-view .top .top-account-group { grid-template-columns: minmax(0,1fr) minmax(100px,1fr); }
body.guest-view .account-summary strong { max-width: 190px; overflow: hidden; text-overflow: ellipsis; }
@media(max-width:360px){body.guest-view .top .brand > div { display: none; }}
@media(max-width:760px){
 .guest-dialog { padding: 16px; }
 .guest-dialog .input, .guest-dialog .btn, .guest-save .btn { min-height: 44px; }
 .guest-ledger-row { grid-template-columns: 1fr auto; }
 .guest-ledger-row > :last-child { grid-column: 1/-1; }
 .auth-public-account .guest-entry { display: inline-flex; }
 .auth-public-account > .auth-entry-link[href*="register"] { display: none !important; }
 .guest-wallet-identity { align-items: flex-start; flex-wrap: wrap; gap: 0; }
}
