/* Shared sizes keep the guest header within 360px: 180 + 108 + 44 + 12 + 16. */
header .brand,header .brand-logo,.auth-brand,.auth-brand img,.registration-header>a:first-child,.registration-header>a:first-child img{width:180px;min-width:180px;max-width:180px;height:auto;max-height:none;flex:0 0 180px;filter:none;object-fit:contain}
.auth-brand{left:22px;top:12px}.auth-aside{padding-top:110px}
header:has(.guest-header-auth){padding:0}
header:has(.guest-header-auth) .top{width:100%;max-width:none;box-sizing:border-box;padding:4px 8px;gap:6px;display:flex;flex-wrap:nowrap}
header:has(.guest-header-auth) .desktop{display:none}
header:has(.guest-header-auth) .guest-header-auth{flex:0 0 108px;width:108px;min-width:108px;margin:0;margin-left:auto;display:flex;padding:0;gap:0}
header:has(.guest-header-auth) .guest-header-auth a{box-sizing:border-box;display:flex;align-items:center;justify-content:center;width:108px;min-width:108px;min-height:44px;padding:6px;font-size:16px;line-height:1.2;font-weight:400}
header:has(.guest-header-auth) .header-menu{display:block;flex:0 0 44px;width:44px;min-width:44px;margin:0}
header:has(.guest-header-auth) .header-menu summary{box-sizing:border-box;display:flex;justify-content:center;align-items:center;width:44px;height:44px;padding:0;font-size:24px}
input[type=number]{appearance:textfield;-moz-appearance:textfield}input[type=number]::-webkit-outer-spin-button,input[type=number]::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}
.preference-answer>label{display:block;margin-bottom:6px}.preference-answer-row{display:flex;align-items:center;gap:12px}.preference-answer-row input[type=checkbox]{width:22px;height:22px;flex:0 0 22px;margin:0;padding:0}.preference-answer-row input:not([type=checkbox]){flex:1;min-width:0;margin:0}
.expense-input-row{display:flex;align-items:center;gap:8px}.expense-input-row input{flex:1;min-width:0}.expense-input-row>span{flex:0 0 auto}
.social-actions{align-items:flex-start}.social-actions form{position:relative;margin-top:0;margin-bottom:0}.social-actions [data-social-status]:empty{display:none}.social-actions [data-social-status]:not(:empty){position:absolute;top:100%;left:0;z-index:2;background:white}
@media(min-width:701px){.with-cabinet .profile-editor-layout .profile-save,.profile-editor-layout .profile-save{position:static;left:auto;right:auto;bottom:auto;width:100%;max-width:none;margin:16px 0 0;box-sizing:border-box}body:has(.profile-editor-layout .profile-save){padding-bottom:0}}

.registration-header .header-menu{display:block}.registration-header .header-menu summary{width:44px;height:44px;display:flex;align-items:center;justify-content:center;font-size:24px;padding:0}
