:root {
    --osh-green: #176b2c;
    --osh-green-dark: #0f4f20;
    --osh-text: #111111;
    --osh-muted: #72757d;
    --osh-border: #ececef;
    --osh-surface: rgba(255,255,255,.97);
    --osh-height: 74px;
}

body:not(.wp-admin) { padding-top: var(--osh-height) !important; }
body.admin-bar .osh-header { top: 32px; }
.osh-header, .osh-header * { box-sizing: border-box; }

.osh-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 99990;
    background: var(--osh-surface);
    border-bottom: 1px solid var(--osh-border);
    box-shadow: 0 3px 16px rgba(20,25,32,.07);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.osh-shell {
    width: min(100%, 1720px);
    height: var(--osh-height);
    margin: 0 auto;
    padding: 0 18px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.osh-icon-button, .osh-profile-button {
    appearance: none;
    border: 0;
    background: transparent;
    padding: 0;
    cursor: pointer;
}

.osh-icon-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--osh-text);
    border-radius: 50%;
    transition: background .2s ease;
}
.osh-icon-button:hover { background: #f3f4f5; }

.osh-icon-button svg, .osh-nav-icon svg, .osh-search-icon svg,
.osh-create-button svg, .osh-login-button svg, .osh-profile-chevron svg,
.osh-mobile-link svg, .osh-mobile-search svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.osh-brand {
    display: inline-flex;
    align-items: center;
    gap: 0;
    color: var(--osh-text) !important;
    text-decoration: none !important;
    white-space: nowrap;
    flex: 0 0 auto;
}

.osh-brand-logo {
    width: 58px;
    height: 66px;
    object-fit: contain;
    display: block;
    flex: 0 0 auto;
}

.osh-brand-name {
    display: inline-block;
    margin-left: -2px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 50px;
    font-weight: 700;
    letter-spacing: -3.1px;
    line-height: .82;
    color: #000;
    transform: translateY(1px);
}

.osh-nav {
    height: 100%;
    display: flex;
    align-items: stretch;
    gap: 3px;
    margin-left: 5px;
}

.osh-nav-link {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 0 10px;
    color: #22252a !important;
    text-decoration: none !important;
    font-size: 14.5px;
    font-weight: 650;
    white-space: nowrap;
}
.osh-nav-link::after {
    content: "";
    position: absolute;
    left: 12px;
    right: 12px;
    bottom: 0;
    height: 2px;
    border-radius: 2px 2px 0 0;
    background: transparent;
}
.osh-nav-link:hover, .osh-nav-link.is-active { color: var(--osh-green) !important; }
.osh-nav-link.is-active::after { background: var(--osh-green); }
.osh-nav-icon { display: inline-flex; }

.osh-search {
    position: relative;
    height: 40px;
    width: min(315px, 23vw);
    margin-left: auto;
    display: flex;
    align-items: center;
    border-radius: 22px;
    background: #f4f4f5;
    border: 1px solid transparent;
}
.osh-search:focus-within {
    background: #fff;
    border-color: rgba(23,107,44,.35);
    box-shadow: 0 0 0 4px rgba(23,107,44,.08);
}
.osh-search-icon { display: grid; place-items: center; margin-left: 14px; color: #222; }
.osh-search input {
    min-width: 0;
    flex: 1;
    height: 100%;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    color: var(--osh-text);
    padding: 0 8px;
    font: inherit;
    font-size: 14px;
}
.osh-search-shortcut {
    margin-right: 9px;
    padding: 3px 6px;
    border-radius: 6px;
    background: #e8e8ea;
    color: #6d7077;
    font-size: 11px;
    font-weight: 700;
}

.osh-create-button, .osh-login-button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 16px;
    border-radius: 22px;
    text-decoration: none !important;
    font-size: 14px;
    font-weight: 750;
    white-space: nowrap;
}
.osh-create-button {
    color: #fff !important;
    background: linear-gradient(135deg, var(--osh-green), var(--osh-green-dark));
    box-shadow: 0 7px 16px rgba(23,107,44,.18);
}
.osh-create-button:hover { color: #fff !important; transform: translateY(-1px); }
.osh-create-button svg, .osh-login-button svg { width: 18px; height: 18px; }
.osh-login-button { color: var(--osh-text) !important; background: #f1f2f3; }

.osh-actions { position: relative; display: flex; align-items: center; gap: 6px; }
.osh-notification-button { position: relative; }
.osh-badge {
    position: absolute;
    top: 0;
    right: -2px;
    min-width: 19px;
    height: 19px;
    padding: 0 5px;
    border: 2px solid #fff;
    border-radius: 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--osh-green);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
}
.osh-profile-button { display: inline-flex; align-items: center; gap: 3px; padding: 2px; border-radius: 24px; }
.osh-profile-button:hover { background: #f3f4f5; }
.osh-profile-button img { width: 38px; height: 38px; object-fit: cover; border-radius: 50%; border: 2px solid #eceef0; }
.osh-profile-chevron { display: inline-flex; color: #222; }
.osh-profile-chevron svg { width: 16px; height: 16px; }

.osh-profile-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 12px);
    width: 210px;
    padding: 10px;
    border: 1px solid var(--osh-border);
    border-radius: 15px;
    background: #fff;
    box-shadow: 0 12px 34px rgba(18,24,32,.14);
}
.osh-profile-menu-name { padding: 10px 12px; color: var(--osh-text); font-weight: 800; border-bottom: 1px solid var(--osh-border); margin-bottom: 6px; }
.osh-profile-menu a { display: block; padding: 10px 12px; border-radius: 9px; color: #24272c !important; text-decoration: none !important; font-size: 14px; font-weight: 600; }
.osh-profile-menu a:hover { background: #f3f5f3; color: var(--osh-green) !important; }

.osh-mobile-panel { border-top: 1px solid var(--osh-border); padding: 10px 16px 16px; background: #fff; }
.osh-mobile-link { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 11px; color: #24272d !important; text-decoration: none !important; font-weight: 700; }
.osh-mobile-link.is-active, .osh-mobile-link:hover { color: var(--osh-green) !important; background: rgba(23,107,44,.07); }
.osh-mobile-link span { display: inline-flex; }
.osh-mobile-search { height: 44px; margin-top: 8px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #f4f5f5; border-radius: 14px; }
.osh-mobile-search input { min-width: 0; flex: 1; border: 0 !important; background: transparent !important; box-shadow: none !important; outline: none !important; font: inherit; }

@media (max-width: 1320px) {
    .osh-nav-link { padding: 0 7px; }
    .osh-search { width: min(280px, 22vw); }
}

@media (max-width: 1120px) {
    .osh-nav-link span:last-child { display: none; }
    .osh-nav-link { padding: 0 9px; }
    .osh-search { width: min(260px, 25vw); }
}

@media (max-width: 900px) {
    :root { --osh-height: 68px; }
    .osh-shell { height: var(--osh-height); padding: 0 14px; gap: 10px; }
    .osh-brand-logo { width: 51px; height: 58px; }
    .osh-brand-name { margin-left: -2px; font-size: 43px; letter-spacing: -2.65px; }
    .osh-nav, .osh-search, .osh-create-button { display: none; }
    .osh-actions { margin-left: auto; }
}

@media (max-width: 782px) { body.admin-bar .osh-header { top: 46px; } }

@media (max-width: 520px) {
    .osh-brand { position: absolute; left: 50%; transform: translateX(-50%); gap: 0; }
    .osh-brand-logo { width: 44px; height: 51px; }
    .osh-brand-name { margin-left: -2px; font-size: 37px; letter-spacing: -2.25px; }
    .osh-profile-chevron { display: none; }
    .osh-login-button span { display: none; }
    .osh-login-button { width: 40px; padding: 0; }
}
