/* Daily-use screens use a compact type scale; welcome and public storytelling keep their own scale. */
.native-brand-group{display:flex;align-items:center;gap:6px;min-width:0}
.native-brand-group .app-back{flex:0 0 40px;width:40px;height:44px;padding:10px;background:none;color:var(--ink)}
.signed-in .native-main{font-size:14px;line-height:1.65}
.signed-in .page-heading h1,.signed-in .page-heading h2,.signed-in .page-head h1,.signed-in .discover-greeting h1{font-size:22px!important;line-height:1.45;letter-spacing:-.4px}
.signed-in .section-title h2,.signed-in .section-title h3,.signed-in .panel>h3{font-size:16px;line-height:1.5}
.signed-in .cp-name-row h1{font-size:24px!important;line-height:1.4}
.signed-in .cp-bio{font-size:14px!important;line-height:1.75!important}
.signed-in .detail-info h1{font-size:24px;line-height:1.5}
.signed-in .tabs .tab,.signed-in .chip{font-size:12px;line-height:1.45}
.signed-in .discovery-tabs .tab{padding:10px 6px;min-height:44px}
.signed-in .settings-row{padding:13px 14px;gap:14px}
.signed-in .settings-row h3,.signed-in .project-content h3{font-size:14px;line-height:1.5}
.signed-in .settings-row p,.signed-in .project-content p{font-size:12px;line-height:1.65}
.signed-in .settings-row .btn,.signed-in .project-content .btn{font-size:12px;min-height:40px}
.signed-in .detail-about,.signed-in .invitation p{font-size:14px;line-height:1.75}
.signed-in .search{height:42px;margin-bottom:14px}
.signed-in .filters{margin-bottom:12px}
.signed-in .discover-greeting{margin-bottom:12px!important}
.messaging-screen .dm-sidebar h1{font-size:20px!important;line-height:1.4}
.messaging-screen .dm-sidebar-heading{padding:9px 14px 7px;min-height:54px}
.messaging-screen .dm-search input{font-size:13px}
.messaging-screen .dm-filters button{font-size:12px;padding:6px 10px;min-height:34px}
.messaging-screen .dm-row{padding:8px 9px;min-height:66px;gap:9px}
.messaging-screen .dm-row .avatar{width:40px;height:40px;min-width:40px;max-width:40px;flex-basis:40px}
.messaging-screen .dm-row-top>bdi{font-size:14px;font-weight:500}
.messaging-screen .dm-row-preview>bdi{font-size:12px;line-height:1.5}
.messaging-screen .dm-row-top time,.messaging-screen .dm-row-context{font-size:10px}
.messaging-screen .dm-thread-header{min-height:56px;padding:6px 10px;gap:4px}
.messaging-screen .dm-thread-header .dm-person .avatar{width:32px;height:32px;min-width:32px;max-width:32px;flex-basis:32px}
.messaging-screen .dm-person{min-width:0;gap:6px}.messaging-screen .dm-person>span:last-child{min-width:0}.messaging-screen .dm-person bdi{font-size:14px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.messaging-screen .dm-presence{font-size:10px}
.messaging-screen .dm-message{padding:7px 10px;border-radius:13px;min-width:50px}
.messaging-screen .dm-message p{font-size:14px!important;line-height:1.55!important;font-weight:400}
.messaging-screen .dm-message-meta{font-size:10px;line-height:1.3;min-height:13px;margin-top:2px}
.messaging-screen .dm-history{gap:7px;padding-block:10px}
.messaging-screen .dm-compose textarea{font-size:14px!important;line-height:1.5;max-height:104px;min-height:40px}
.messaging-screen .dm-message:has(.dm-voice-player){width:min(210px,76%);padding:6px 9px}
.messaging-screen .dm-voice-player{min-height:34px;gap:7px}
.messaging-screen .dm-voice-player .voice-wave{height:21px}
.messaging-screen .dm-voice-player .voice-wave i{max-height:20px!important}
.messaging-screen .dm-voice-player .voice-time{font-size:10px}
.messaging-screen .dm-thread-context{padding-block:5px}
.messaging-screen .dm-work-name>bdi{font-size:12px}
.messaging-screen .dm-work>img{width:32px;height:32px;flex-basis:32px}
@media(max-width:520px){
 .signed-in .native-header{padding-inline:12px;height:56px}
 .native-brand-group .brand-wordmark{max-width:90px}
 .signed-in .page-heading,.signed-in .page-head{margin-bottom:16px}
 .signed-in .detail-info h1{font-size:22px}
 .signed-in .settings-list{gap:9px}
 .messaging-screen .dm-compose{padding-block:6px}
}
/* iOS input focus zoom is avoided while message display remains compact. */
@supports(-webkit-touch-callout:none){.messaging-screen .dm-compose textarea,.messaging-screen .dm-search input{font-size:16px!important}}

.account-menu-items .btn{font-size:13px;min-height:44px}
.account-menu-summary bdi{font-size:14px}
body:has(.signed-in) dialog:not(:has(.full-player)) .dialog-head h2{font-size:20px;line-height:1.5}
body:has(.signed-in) dialog .dialog-intro{font-size:13px;line-height:1.7}

/* Identity on main sections; context and actions on deeper screens. */
.signed-in>.urab-header{height:60px;padding:6px 12px;gap:12px;box-sizing:border-box;border-bottom:1px solid var(--line)}
.urab-header[dir=rtl]{direction:rtl}.urab-header[dir=ltr]{direction:ltr}
.urab-header .native-brand-group{flex:1;gap:4px;overflow:hidden}
.urab-header .native-brand{min-height:48px;padding:0 4px;flex-shrink:0}
.urab-header .native-brand .brand-wordmark{width:88px;max-width:88px;height:40px;object-fit:contain;border-radius:0}
.urab-header .header-title{font-size:15px;font-weight:600;line-height:1.5;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
.urab-header .header-actions{gap:8px;flex-shrink:0}
.urab-header .icon-btn,.urab-header .app-back{width:48px;height:48px;min-width:48px;flex:0 0 48px;padding:12px;border-radius:50%;background:transparent;color:var(--ink);position:relative}
.urab-header .icon-btn>.icon{width:22px;height:22px}
html[data-theme] .urab-header .account-menu-button,.urab-header .account-menu-button{height:48px;min-width:56px;display:flex;justify-content:center;align-items:center;gap:4px;padding:5px 2px;background:transparent;color:var(--ink);border:0;border-radius:24px;box-shadow:none;flex-shrink:0}
.urab-header .account-menu-button .avatar,.urab-header .header-guest-avatar{width:32px;height:32px;min-width:32px;max-width:32px;flex:0 0 32px;aspect-ratio:1;border-radius:50%}
.urab-header .header-guest-avatar{display:grid;place-items:center;background:var(--accent-soft,#a277ff20);color:var(--violet)}
.urab-header .account-menu-button>.icon-down{width:12px;height:12px;color:var(--muted)}
.urab-header .notif-dot{width:7px;height:7px;top:10px;right:auto;inset-inline-end:9px;border:2px solid var(--bg)}
.urab-header .header-action-label{display:none}
.urab-header button:focus-visible{outline:2px solid var(--violet);outline-offset:1px}
@media(hover:hover){.urab-header .icon-btn:hover,html[data-theme] .urab-header .account-menu-button:hover{background:var(--accent-soft,#a277ff20)}}
.signed-in .discover-greeting{margin-top:4px!important;margin-bottom:12px!important}
.signed-in .discover-greeting>p{font-size:12px!important;color:var(--muted)}
.messaging-screen .dm-thread-header .dm-icon-only{width:48px;height:48px;min-width:48px;flex:0 0 48px}
@media(min-width:900px){
 .signed-in>.urab-header{height:72px;padding:12px 28px}
 .urab-header .native-brand .brand-wordmark{width:102px;max-width:102px}
 .urab-header .header-actions{gap:12px}
 .urab-header .header-title{font-size:16px}
 .urab-header .header-messages{width:auto;flex-basis:auto;display:flex;align-items:center;gap:8px;padding-inline:14px;border-radius:24px}
 .urab-header .header-action-label{display:inline;font-size:14px;font-weight:500}
}
@media(max-width:360px){.signed-in>.urab-header{padding-inline:8px;gap:4px}.urab-header .header-actions{gap:4px}.urab-header .native-brand .brand-wordmark{width:76px;max-width:76px}}
