.app-header {
    max-width: 1368px;
    min-height: 108px;
    margin: 0 auto;
    padding: 16px 36px;
    display: flex;
    align-items: center;
    gap: 32px;
    color: #48213f;
}
.app-header-brand { display: block; flex-shrink: 0; width: 112px; }
.app-header-brand img { display: block; width: 100%; height: auto; }
.app-header-nav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    flex-wrap: wrap;
    gap: 14px 28px;
    margin-left: auto;
    font-size: 16px;
    font-weight: 600;
}
.app-header-nav a { white-space: nowrap; }
.app-header-nav [aria-current=page] { text-decoration: underline; text-underline-offset: 4px; }
.app-header-actions { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.app-header-icon { display: flex; align-items: center; justify-content: center; width: 36px; height: 44px; }
.app-header-icon svg { width: 27px; height: 27px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.app-header-icon { padding: 0; border: 0; background: transparent; }
.header-search { position: relative; }
.header-search-panel {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    gap: 8px;
    width: min(360px, calc(100vw - 40px));
    margin: 0;
    padding: 10px;
    border: 1px solid #e4d8de;
    border-radius: 16px;
    background: #fffaf6;
    box-shadow: 0 12px 32px #48213f1a;
}
.header-search-panel[hidden] { display: none; }
.header-search-panel input { flex: 1; min-width: 0; width: 100%; padding: 8px; border: 0; border-radius: 8px; background: transparent; }
.header-search-panel .app-header-icon { flex-shrink: 0; border-radius: 10px; background: #ff7868; }
.app-header-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    gap: 10px;
    padding: 9px 25px;
    border: 1px solid #ff695b;
    border-radius: 32px;
    background: linear-gradient(110deg, #ff8773, #ff6c60);
    box-shadow: inset 0 2px 5px #ffffff33;
    color: white;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.app-header-button:hover { background: #f56559; text-decoration: none; }
.app-header-button svg { width: 21px; height: 21px; flex-shrink: 0; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@media (max-width: 1100px) {
    .app-header { flex-wrap: wrap; gap: 12px 24px; }
    .app-header-actions { margin-left: auto; }
    .app-header-nav { order: 3; width: 100%; gap: 12px 24px; }
}
@media (max-width: 540px) {
    .app-header { padding: 16px 20px; gap: 14px 12px; }
    .app-header-brand { width: 96px; }
    .app-header-actions { gap: 8px; }
    .app-header-icon { width: 28px; }
    .app-header-icon svg { width: 23px; height: 23px; }
    .app-header-button { min-height: 40px; padding: 8px 12px; font-size: 12px; }
    .app-header-nav { gap: 10px 18px; font-size: 13px; }
    .app-header { position: relative; }
    .header-search { position: static; }
    .header-search-panel { top: 76px; right: 20px; }
}
.language-picker { margin:0; position:relative; font-size:12px; }
.language-picker summary { padding:8px; border:1px solid #e4d8de; border-radius:10px; background:#fffaf6; color:#48213f; cursor:pointer; white-space:nowrap; }
.language-picker ul { position:absolute; top:100%; right:0; z-index:30; min-width:140px; max-height:min(60vh,360px); overflow-y:auto; margin:6px 0 0; padding:6px; list-style:none; border:1px solid #e4d8de; border-radius:10px; background:#fffaf6; box-shadow:0 8px 24px #48213f18; }
.language-picker a { display:block; padding:8px 10px; border-radius:6px; color:#48213f; white-space:nowrap; }
.language-picker a:hover,.language-picker a[aria-current] { background:#f4e6eb; text-decoration:none; }
.language-picker summary:focus-visible,.language-picker a:focus-visible { outline:2px solid #48213f; outline-offset:2px; }
.localization-edit-button { position:absolute; z-index:9999; padding:3px 8px; background:#48213f; color:white; border:0; border-radius:4px; cursor:pointer; }
.localization-modal { width:min(660px,90vw); max-height:85vh; border:0; border-radius:16px; padding:24px; }
.localization-modal label,.localization-modal textarea { display:block; width:100%; margin:8px 0; }
.localization-modal::backdrop { background:#0008; }
@media(max-width:430px) { .app-header-button > span:not(.sr-only) { display:none; } }
.account-menu svg{width:21px;height:21px;fill:none;stroke:currentColor;stroke-width:1.6}.account-menu summary{border:0;padding:8px;background:transparent}.account-menu-email{font-size:12px;padding:10px;max-width:230px;overflow-wrap:anywhere}.account-menu button{background:transparent;border:0;font:inherit;color:#48213f;padding:10px;width:100%;text-align:left;cursor:pointer}

.site-footer > .language-picker { display:table; margin:0 auto 24px; }
.site-footer > .language-picker ul { top:auto; bottom:100%; left:50%; right:auto; transform:translateX(-50%); margin:0 0 6px; text-align:left; max-width:calc(100vw - 40px); }
