/* Stable footprints keep presence animation and translated labels from shifting navigation. */
.header-tools { gap: 14px; flex-shrink: 0; }
.header-presence { width: 66px; display: flex; justify-content: center; flex-shrink: 0; }
.online-badge { --aura: 3px; --pulse: 1.015; --duration: 4s; position: relative; display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 28px; padding: 0 7px; border: 1px solid #b8daca; border-radius: 9px; background: #e4f3e9; color: #146244; font-size: 12px; font-weight: 750; font-variant-numeric: tabular-nums; isolation: isolate; }
.online-badge::before { content: ""; position: absolute; inset: 0; border-radius: inherit; z-index: -1; animation: presence-aura var(--duration) ease-in-out infinite; }
.online-badge[data-level="0"]::before { animation: none; }
.online-badge[data-level="2"] { min-width: 38px; --aura: 5px; --pulse: 1.04; --duration: 3.5s; }
.online-badge[data-level="3"] { min-width: 42px; --aura: 7px; --pulse: 1.07; --duration: 3s; }
.online-badge[data-level="4"] { min-width: 46px; --aura: 9px; --pulse: 1.1; --duration: 2.5s; }
.online-tooltip { visibility: hidden; opacity: 0; position: absolute; right: 0; top: calc(100% + 13px); width: max-content; max-width: 200px; padding: 7px 10px; background: #153e35; color: white; border-radius: 8px; font-size: 11px; font-weight: 500; transition: opacity .15s; pointer-events: none; }
.online-badge:hover .online-tooltip, .online-badge:focus .online-tooltip { visibility: visible; opacity: 1; }
@keyframes presence-aura { 0%,100% { transform: scale(1); box-shadow: 0 0 0 0 #3aaf7320; } 50% { transform: scale(var(--pulse)); box-shadow: 0 0 0 var(--aura) #3aaf7320, 0 0 16px #3aaf7330; } }
.account-menu { position: relative; }
.account-menu summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 7px; padding: 7px; border-radius: 12px; color: #153e35; }
.account-menu summary::-webkit-details-marker { display: none; }
.account-menu summary:hover, .account-menu[open] summary { background: #edf3ef; }
.account-avatar { width: 32px; height: 32px; border-radius: 50%; background: #e6eee7; display: grid; place-items: center; font-size: 14px; font-weight: 750; }
.account-avatar svg { width: 18px; height: 18px; }
.account-panel { position: absolute; top: calc(100% + 12px); right: 0; width: min(270px, calc(100vw - 24px)); padding: 9px; background: #fffdf9; border: 1px solid #dfe7de; border-radius: 14px; box-shadow: 0 15px 45px #103e3620; z-index: 70; }
.account-panel a, .account-panel button { display: block; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px; color: #244f43; text-decoration: none; }
.account-panel a:hover, .account-panel button:hover { background: #edf3ef; }
.account-panel .locale-form { display: grid; gap: 6px; padding: 12px; border-top: 1px solid #e5e9e1; margin-top: 6px; font-size: 12px; }
.account-panel select { width: 100%; border: 1px solid #d6dfd5; border-radius: 8px; padding: 8px; background: white; }
.account-panel .logout-form { border-top: 1px solid #e5e9e1; margin-top: 6px; padding-top: 6px; }
.account-panel .logout-form button { color: #955348; }
.header-add { display: inline-flex; align-items: center; justify-content: center; background: #153e35; color: white; padding: 11px 14px; border-radius: 11px; font-size: 13px; font-weight: 650; white-space: nowrap; text-decoration: none; }
.header-add:hover { background: #0f3029; color: white; text-decoration: none; }
@media(min-width: 1101px) and (max-width: 1450px) { .desktop-header-inner { gap: 10px; padding-inline: 2%; } .desktop-header-inner > div:first-child { gap: 12px; } .desktop-module-nav a { padding-inline: 8px; font-size: 13px; } .desktop-brand-image { width: 170px; } .header-tools { gap: 7px; } }
@media(max-width: 1100px) { .desktop-header-inner { flex-wrap: wrap; position: relative; } .desktop-header-inner > div:first-child { display: contents; } .desktop-module-nav { order: 3; width: 100%; overflow-x: auto; } .header-tools { margin-left: auto; } .desktop-module-nav a { flex-shrink: 0; } }
@media(max-width: 600px) { .desktop-brand-image { width: 144px; height: 35px; } .desktop-brand-image img { width: 160px; left: -11px; top: -12px; } .desktop-header-inner { gap: 10px; padding: 10px 12px; } .desktop-header-inner > div:first-child > a > span:last-child { display: none; } .header-tools { gap: 4px; } .header-presence { width: 48px; } .header-add { font-size: 11px; padding: 9px; max-width: 125px; white-space: normal; text-align: center; } .account-menu summary { padding: 3px; gap: 3px; } .account-avatar { width: 28px; height: 28px; } .online-badge { --aura: 3px; } }
@media(prefers-reduced-motion: reduce) { .online-badge::before { animation: none; } }
