.mobile-account{display:none}
@media(max-width:650px){
 .nav #links .mobile-account:not([hidden]){display:block;margin:0 0 12px;padding:14px;border:1px solid #9bcfe5;border-radius:18px;background:linear-gradient(135deg,#fff,#def5ff);color:#104b69;box-shadow:inset 0 1px #fff,0 5px 20px #16628b14}
 .nav #links .mobile-account-identity{display:flex;align-items:flex-start;flex-direction:column;gap:5px;min-height:0;padding:0 0 13px;border:0;border-radius:0;white-space:normal;overflow-wrap:anywhere;color:inherit;background:none;box-shadow:none}
 .mobile-account-identity small{font:850 10px/1.5 system-ui;letter-spacing:.13em;color:#167a96}
 .mobile-account-identity small:before{content:'';display:inline-block;width:7px;height:7px;margin-right:7px;border-radius:50%;background:#128267;box-shadow:0 0 0 3px #12826716}
 .mobile-account-identity strong{font:800 15px/1.5 system-ui}
 .mobile-account-actions{display:grid;gap:8px;grid-template-columns:minmax(0,1fr)}
 .nav #links .mobile-account-actions :is(a,button){display:flex;align-items:center;justify-content:flex-start;gap:9px;width:100%;min-width:0;min-height:46px;margin:0;padding:11px 12px;border:1px solid #82bfd9;border-radius:12px;background:linear-gradient(135deg,#f9feff,#c6efff);color:#084660;box-shadow:inset 0 1px #fff9;font:800 12px/1.5 system-ui;text-decoration:none;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
 .nav #links .mobile-account-actions :is(a,button):before{content:'';position:static;display:block;flex:none;width:20px;height:20px;opacity:1;transform:none;background:currentColor;mask:var(--identity-coin) center/contain no-repeat;-webkit-mask:var(--identity-coin) center/contain no-repeat}
 .nav #links .mobile-account-actions .mobile-account-chat:before{mask-image:var(--identity-chat);-webkit-mask-image:var(--identity-chat)}
 .nav #links .mobile-account :is(a,button):after,.nav #links .mobile-account-identity:before{display:none}
 .nav #links .mobile-account-actions :is(a,button):hover{background:#bceaff;border-color:#3397bd;transform:none}
 .nav #links .mobile-account :is(a,button):focus-visible{outline:3px solid #1682ad;outline-offset:3px}
 .nav #links .mobile-account-actions [hidden]{display:none}
 html[data-theme=dark] .nav #links .mobile-account{background:linear-gradient(135deg,#153e53,#0b2437);border-color:#4f8da7;color:#e5f8ff;box-shadow:inset 0 1px #dcf7ff16,0 5px 20px #0002}
 html[data-theme=dark] .mobile-account-identity small{color:#9ce9ff}
 html[data-theme=dark] .mobile-account-identity small:before{background:#7ee7c6;box-shadow:0 0 0 3px #7ee7c61c}
 html[data-theme=dark] .nav #links .mobile-account-actions :is(a,button){background:linear-gradient(135deg,#214d65,#17384e);border-color:#639bb5;color:#e2f8ff;box-shadow:inset 0 1px #dafaff22}
 html[data-theme=dark] .nav #links .mobile-account-actions :is(a,button):hover{background:#2b5b73;border-color:#a8e6fa}
 html[data-theme=dark] .nav #links .mobile-account :is(a,button):focus-visible{outline-color:#b0edff}
 html[data-theme] body.has-mobile-account :is(.coin-page-pill.coin-page-pill,.urh-chat-launcher.urh-chat-launcher){display:none!important}
 html[data-theme] body.has-mobile-account .urh-chat{bottom:max(8px,env(safe-area-inset-bottom,0px));height:min(660px,calc(100dvh - 24px))}
}
/* Desktop/tablet account capsule; the approved phone rules above stay intact. */
@media(min-width:651px){
 .nav>.mobile-account:not([hidden]){display:flex;align-items:center;gap:10px;flex:none;min-width:0;margin:0;padding:7px 9px;border:1px solid #96c9df;border-radius:15px;background:linear-gradient(125deg,#fff,#ddf4ff);color:#104b69;box-shadow:inset 0 1px #fff,0 4px 15px #14628514}
 .nav>.mobile-account .mobile-account-identity{display:flex;flex-direction:column;gap:2px;min-width:0;max-width:100px;padding:0 5px;text-decoration:none;color:inherit;background:none;border:0;box-shadow:none;transform:none}
 .nav>.mobile-account .mobile-account-identity small{font:850 8px/1.5 system-ui;letter-spacing:.1em;color:#14748d;white-space:nowrap}
 .nav>.mobile-account .mobile-account-identity small:before{content:'';display:inline-block;width:6px;height:6px;margin-right:5px;border-radius:50%;background:#128267;box-shadow:0 0 0 3px #12826716}
 .nav>.mobile-account .mobile-account-identity strong{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font:800 12px/1.5 system-ui}
 .nav>.mobile-account .mobile-account-actions{display:flex;align-items:center;gap:7px;min-width:0}
 .nav>.mobile-account .mobile-account-actions :is(a,button){display:inline-flex;align-items:center;justify-content:center;gap:7px;min-height:40px;min-width:40px;margin:0;padding:8px 10px;border:1px solid #83bcd4;border-radius:10px;background:linear-gradient(135deg,#f8feff,#caefff);color:#0a4c66;box-shadow:inset 0 1px #fff9;font:800 11px/1.5 system-ui;text-decoration:none;white-space:nowrap;cursor:pointer;transition:background .2s,border-color .2s}
 .nav>.mobile-account .mobile-account-actions :is(a,button):before{content:'';display:block;flex:none;width:18px;height:18px;background:currentColor;mask:var(--identity-coin) center/contain no-repeat;-webkit-mask:var(--identity-coin) center/contain no-repeat}
 .nav>.mobile-account .mobile-account-actions .mobile-account-chat{font-size:0;line-height:0;padding:10px}
 .nav>.mobile-account .mobile-account-actions .mobile-account-chat:before{mask-image:var(--identity-chat);-webkit-mask-image:var(--identity-chat)}
 .nav>.mobile-account .mobile-account-actions :is(a,button):hover{background:#bceaff;border-color:#3397bd;transform:none}
 .nav>.mobile-account :is(a,button):focus-visible{outline:3px solid #1682ad;outline-offset:3px}
 .nav>.mobile-account .mobile-account-actions [hidden]{display:none}
 html[data-theme=dark] .nav>.mobile-account{background:linear-gradient(135deg,#163e54,#0d293b);border-color:#568da6;color:#e5f8ff;box-shadow:inset 0 1px #dcf7ff20,0 5px 20px #0002}
 html[data-theme=dark] .nav>.mobile-account .mobile-account-identity small{color:#9ce9ff}
 html[data-theme=dark] .nav>.mobile-account .mobile-account-identity small:before{background:#7ee7c6;box-shadow:0 0 0 3px #7ee7c61c}
 html[data-theme=dark] .nav>.mobile-account .mobile-account-actions :is(a,button){background:linear-gradient(135deg,#234e65,#18384e);border-color:#649bb4;color:#e3f8ff;box-shadow:inset 0 1px #dafaff22}
 html[data-theme=dark] .nav>.mobile-account .mobile-account-actions :is(a,button):hover{background:#2c5c74;border-color:#a8e6fa}
 html[data-theme=dark] .nav>.mobile-account :is(a,button):focus-visible{outline-color:#b0edff}
 html[data-theme] body.has-mobile-account :is(.coin-page-pill.coin-page-pill,.urh-chat-launcher.urh-chat-launcher){display:none!important}
 html[data-theme] body.has-mobile-account .urh-chat{bottom:18px;height:min(660px,calc(100dvh - 100px))}
}
/* Keep signed-in navigation in one row; links open as a menu when space is limited. */
@media(min-width:651px){
 body.has-mobile-account .nav{display:flex;flex-wrap:nowrap;gap:12px;position:relative;max-width:1700px;width:100%}
 body.has-mobile-account .nav>.nav-brand{flex:none}
 body.has-mobile-account .nav>.mobile-account{flex:none}
 body.has-mobile-account .nav>.nav-preferences{flex:none;margin-left:auto}
 body.has-mobile-account .nav>.links{gap:0;margin-left:auto}
 body.has-mobile-account .nav>.links a{padding-inline:8px}
 .nav>.mobile-account .mobile-account-identity small{display:block;max-width:100%;overflow:hidden;text-overflow:ellipsis}
}
@media(min-width:651px) and (max-width:1600px){
 body.has-mobile-account .nav>.menu{display:flex!important;align-items:center;justify-content:center;flex:none;order:0;margin:0 0 0 auto;width:42px;height:42px}
 body.has-mobile-account .nav>.nav-preferences{margin-left:0}
 body.has-mobile-account .nav>.links{display:none!important;position:absolute;top:100%;left:0;right:0;margin:0;padding:14px 22px 22px;flex-direction:column;align-items:stretch;background:#f7fcfff7;backdrop-filter:blur(20px);border-bottom:1px solid #a6def8;box-shadow:0 18px 28px #12345c22;max-height:calc(100dvh - 90px);overflow:auto}
 body.has-mobile-account .nav>.links.open{display:flex!important}
 body.has-mobile-account .nav>.links a{padding:13px 16px;min-height:48px}
 html[data-theme=dark] body.has-mobile-account .nav>.links.open{background:#10283bf8;border-color:#4f8da7}
}
@media(min-width:651px) and (max-width:850px){
 body.has-mobile-account .nav{padding-inline:16px;gap:8px}
 body.has-mobile-account .nav>.nav-brand{gap:6px}
 body.has-mobile-account .nav .nav-wordmark{font-size:16px}
 body.has-mobile-account .nav .nav-brand img{width:32px;height:38px}
 body.has-mobile-account .nav .nav-wordmark small{font-size:5.8px;letter-spacing:.12em}
 body.has-mobile-account .nav>.mobile-account{padding:6px;gap:6px}
 body.has-mobile-account .nav>.mobile-account .mobile-account-identity{max-width:80px;padding-inline:3px}
 body.has-mobile-account .nav .nav-preferences{gap:5px}
 body.has-mobile-account .nav .nav-preferences .lang-switch{width:70px;height:36px}
 body.has-mobile-account .nav .nav-preferences .theme-toggle{width:64px;height:36px}
 body.has-mobile-account .nav>.menu{width:38px;height:40px}
}
@media(prefers-reduced-motion:reduce){.nav>.mobile-account .mobile-account-actions :is(a,button){transition:none}}
@media(min-width:651px){
 .nav>.mobile-account .mobile-account-actions .mobile-account-coins{font-size:0;gap:6px;padding-inline:8px}
 .nav>.mobile-account .mobile-account-actions .mobile-account-coins:after{content:attr(data-short-balance);font:800 11px/1.5 system-ui;max-width:95px;overflow:hidden;text-overflow:ellipsis}
}
