.header-account { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border: 3px solid #fff; border-radius: 50%; background: #176d65; color: #fff; padding: 0; font: inherit; font-weight: 800; cursor: pointer; box-shadow: 0 0 0 1px #dce5ed; }
.header-account:hover, .header-account[aria-expanded="true"] { box-shadow: 0 0 0 3px #dce8fb; }
.header-account[hidden], .header-registration[hidden] { display: none !important; }
.site-header.room-user-signed-in .language-switch { margin-left: auto; }
.site-header .header-account { order: 10; margin-left: 0; }
.header-account, .room-menu-avatar { overflow: hidden; }
.header-account img, .room-menu-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.room-photo-preview { width: 128px; height: 128px; font-size: 36px; }
.room-photo-picker { color: #1b4ca0; }
.room-photo-picker input { padding: 10px; font-size: 13px; }
.room-remove-photo { border: 1px solid #dce5ef; border-radius: 9px; padding: 10px; background: #fff; color: #a42335; font: inherit; cursor: pointer; }
.room-remove-photo:disabled { opacity: .45; cursor: default; }
.room-auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; margin: 8px 0 22px; padding: 4px; border-radius: 12px; background: #edf2fa; }
.room-auth-tabs[hidden] { display: none; }
.room-auth-tabs button { min-height: 42px; border: 0; border-radius: 9px; background: transparent; color: #65738b; font: inherit; font-weight: 800; cursor: pointer; }
.room-auth-tabs button[aria-selected="true"] { background: #fff; color: #1457f2; box-shadow: 0 1px 5px #15365a22; }
.room-auth-tabs button:focus-visible, .room-login-panel button:focus-visible, .room-login-panel input:focus-visible { outline: 3px solid #7ca7ff; outline-offset: 2px; }
.registration-dialog .room-login-panel { display: none; }
.registration-dialog.room-login-active > .registration-heading,
.registration-dialog.room-login-active > form,
.registration-dialog.room-login-active > .registration-success { display: none; }
.registration-dialog.room-login-active .room-login-panel { display: block; }
.room-login-panel h2 { margin: 12px 0 24px; font-size: 1.65rem; line-height: 1.25; }
.room-auth-form { display: grid; gap: 17px; }
.room-auth-form label { display: grid; gap: 8px; font-weight: 700; font-size: .9rem; }
.room-auth-form input { width: 100%; min-height: 46px; padding: 10px 12px; border: 1px solid #c8d2e0; border-radius: 9px; font: inherit; }
.room-auth-submit { min-height: 46px; border: 0; border-radius: 9px; background: #1959f0; color: #fff; font: inherit; font-weight: 800; cursor: pointer; }
.room-auth-submit:disabled { opacity: .6; cursor: wait; }
.room-auth-error { margin: 0; color: #a42335; font-size: .9rem; }
.room-auth-after-register { margin-top: 12px; }
.room-auth-dialog { width: min(420px, calc(100vw - 32px)); max-height: calc(100vh - 32px); padding: 0; border: 0; border-radius: 18px; box-shadow: 0 24px 80px #122b4a50; color: #172b4a; }
.room-auth-dialog::backdrop { background: #0d1d35a6; }
.room-account-content { position: relative; display: grid; gap: 16px; padding: 32px; }
.room-auth-dialog h2 { margin: 0 32px 8px 0; font-size: 1.45rem; line-height: 1.25; }
.room-auth-close { position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border: 0; background: transparent; font-size: 28px; cursor: pointer; }
.room-account-name { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 520px) { .header-registration { font-size: .8rem; } .room-account-content { padding: 26px 20px; } }
.room-account-menu { position:fixed;z-index:100;width:min(304px,calc(100vw - 24px));padding:0;background:#fff;border:1px solid #e1e7f0;border-radius:16px;box-shadow:0 18px 55px #10254326,0 3px 10px #1025430a;text-align:left;color:#172b4a;overflow:auto; }
.room-menu-avatar { display: grid; place-items: center; margin: 0 auto 6px; width: 64px; height: 64px; border-radius: 50%; background: #176d65; color: #fff; font-size: 23px; font-weight: 800; }
.room-menu-identity { display:flex;align-items:center;gap:13px;padding:22px 20px 20px;border-bottom:1px solid #edf0f5;background:linear-gradient(120deg,#f5f8ff,#fff); }
.room-account-menu .room-menu-avatar { margin:0;width:46px;height:46px;flex-shrink:0;font-size:17px;border:3px solid #fff;box-shadow:0 0 0 1px #dfe6ef; }
.room-menu-person { min-width:0; }
.room-menu-caption { display:block;color:#8391a6;font-size:10px;margin-bottom:5px; }
.room-menu-name { display:block;font-size:15px;font-weight:750;line-height:1.4;overflow-wrap:anywhere; }
.room-menu-email { margin:4px 0 0;color:#8391a6;font-size:11px;line-height:1.5;overflow-wrap:anywhere; }
.room-profile-identity { margin:0 0 12px;color:#76849a;font-size:14px;overflow-wrap:anywhere; }
.room-menu-links { display:grid;gap:3px;padding:9px; }
.room-account-menu button { display:flex;align-items:center;gap:12px;min-height:48px;width:100%;padding:10px 12px;border:0;border-radius:9px;background:transparent;color:#344965;font:inherit;font-size:13px;font-weight:600;text-align:left;cursor:pointer;transition:background .15s; }
.room-account-menu button:hover { background:#f2f5fa; }
.room-account-menu button:focus-visible { outline:2px solid #94b5fb;outline-offset:-2px;background:#edf3ff; }
.room-menu-label { flex:1;min-width:0;line-height:1.5; }
.room-menu-icon { display:grid;place-items:center;flex-shrink:0;color:#8494ab; }
.room-menu-arrow { display:grid;place-items:center;color:#acb7c8; }
.room-menu-arrow svg { width:14px;height:14px; }
.room-account-menu .room-my-properties { background:#f0f5ff;color:#245ac1; }
.room-my-properties .room-menu-icon { color:#3e73d9; }
.room-menu-exit { border-top:1px solid #edf0f5;padding:7px 9px; }
.room-account-menu .room-logout { color:#b64b54; }
.room-logout .room-menu-icon { color:#c8757c; }
.room-account-menu .room-logout:hover { background:#fff2f2; }
.room-logout .room-menu-arrow { display:none; }
.room-menu-error { margin:0;padding:0 20px 14px;color:#a42335;font-size:12px;line-height:1.5; }
.room-menu-error:empty { display:none; }
@media(prefers-reduced-motion:reduce){.room-account-menu button{transition:none}}
.room-profile-dialog { width: min(580px, calc(100vw - 28px)); }
.room-profile-photo { display: flex; align-items: center; gap: 18px; padding-bottom: 18px; border-bottom: 1px solid #e2e8f1; }
.room-profile-photo .room-menu-avatar { margin: 0; flex-shrink: 0; }
.room-profile-photo-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.room-profile-photo-actions input[hidden] { display: none; }
.room-profile-photo button { border: 1px solid #dce5ef; border-radius: 9px; padding: 10px 14px; background: #fff; color: #1b4ca0; font: inherit; font-weight: 700; cursor: pointer; }
.room-profile-photo .room-photo-trigger { position: relative; width: 70px; height: 70px; flex-shrink: 0; border: 0; border-radius: 50%; padding: 3px; background: transparent; }
.room-photo-trigger .room-menu-avatar { width: 64px; height: 64px; }
.room-photo-trigger:hover { box-shadow: 0 0 0 3px #dce8fb; }
.room-photo-trigger:focus-visible { outline: 3px solid #7ca7ff; outline-offset: 3px; }
.room-photo-camera { position: absolute; right: 0; bottom: 0; display: grid; place-items: center; width: 25px; height: 25px; background: #fff; color: #2457a7; border: 1px solid #dce5ef; border-radius: 50%; }
.room-photo-trigger.is-busy::after { content: ''; position: absolute; inset: -2px; border: 3px solid #dce8fb; border-top-color: #1959f0; border-radius: 50%; animation: room-photo-spin .8s linear infinite; }
.room-photo-trigger.is-busy .room-menu-avatar { opacity: .6; }
.room-photo-trigger.is-ready:not(.is-busy) .room-menu-avatar { animation: room-photo-appear .28s ease-out; }
.room-photo-feedback { flex-basis: 100%; color: #76849a; font-size: 12px; line-height: 1.4; }
@keyframes room-photo-spin { to { transform: rotate(360deg); } }
@keyframes room-photo-appear { from { opacity: .4; transform: scale(.9); } to { opacity: 1; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .room-photo-trigger.is-busy::after { animation: none; } .room-photo-trigger.is-ready:not(.is-busy) .room-menu-avatar { animation: none; } }
.room-profile-fields { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.room-profile-fields label:nth-child(3), .room-profile-fields label:nth-child(5) { grid-column: 1 / -1; }
.room-profile-status { margin: 0; color: #176d65; font-size: 14px; }
@media (max-width: 420px) { .room-profile-fields { grid-template-columns: 1fr; } .room-profile-fields label { grid-column: 1 !important; } }
