.navbar {
    background: #fff;
    border-bottom: 1px solid #e2e8f0;
    padding: 0 24px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.navbar-brand {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
    white-space: nowrap;
    text-decoration: none;
    color: #1e293b;
    font-weight: 600;
    font-size: 1.25rem;
}

.navbar-brand svg { width: 32px; height: 32px; flex-shrink: 0; }
.navbar-links { display: flex; align-items: center; gap: 32px; }
.navbar-links a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s;
}
.navbar-links a:hover, .navbar-links a.active { color: #3b82f6; }
.navbar a:focus-visible { outline: 2px solid #2563eb; outline-offset: 5px; border-radius: 3px; }
.navbar-dropdown { position: relative; flex-shrink: 0; }
.navbar-trigger {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.25;
    list-style: none;
    white-space: nowrap;
    cursor: pointer;
}
.navbar-trigger::-webkit-details-marker { display: none; }
.navbar-trigger.active { font-weight: 600; }
.navbar-trigger:hover, .navbar-trigger.active, .navbar-dropdown[open] .navbar-trigger { color: #1e293b; }
.navbar-trigger:focus-visible { outline: 2px solid #2563eb; outline-offset: 5px; border-radius: 4px; }
.navbar-chevron { flex-shrink: 0; transition: transform 0.15s; }
.navbar-dropdown[open] .navbar-chevron { transform: rotate(180deg); }
.navbar-menu {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    z-index: 101;
    width: 256px;
    max-width: calc(100vw - 32px);
    padding: 6px;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 12px 32px #0f172a1a, 0 2px 6px #0f172a08;
}
.navbar-dropdown:not([open]) .navbar-menu { display: none; }
.navbar-links .navbar-menu a { display: flex; flex-direction: column; gap: 4px; padding: 12px; border-radius: 7px; color: #1e293b; white-space: normal; line-height: 1.35; }
.navbar-menu a small { font-size: 12px; font-weight: 400; color: #64748b; }
.navbar-links .navbar-menu a:hover { background: #f1f5f9; color: #1e293b; }
.navbar-links .navbar-menu a.active { background: #eff6ff; color: #1e293b; }
.navbar-menu a:focus-visible { outline-offset: -2px; }
.navbar-links .navbar-build {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 14px;
    border: 1px solid #bfdbfe;
    border-radius: 999px;
    background: #eff6ff;
    color: #1e293b;
    font-weight: 600;
    line-height: 1.25;
    transition: color 0.2s, background 0.2s, border-color 0.2s;
}
.navbar-links .navbar-build:hover { background: #dbeafe; border-color: #93c5fd; color: #1e293b; }
.navbar-links .navbar-build.active { background: #dbeafe; border-color: #93c5fd; color: #1e293b; }
.navbar-links .navbar-build.active:hover { background: #bfdbfe; border-color: #60a5fa; }
.navbar-links .navbar-build:focus-visible { border-radius: 999px; }

@media (max-width: 960px) {
    .navbar { height: auto; padding: 14px 24px 10px; flex-wrap: wrap; gap: 14px; }
    .navbar-links { width: 100%; gap: 24px; overflow: visible; padding: 4px 2px 8px; }
    .navbar-links a, .navbar-trigger { flex-shrink: 0; font-size: 0.875rem; }
}

@media (max-width: 600px) {
    .navbar { padding-left: 16px; padding-right: 16px; }
    .navbar-links { gap: 12px; }
}

@media (prefers-reduced-motion: reduce) {
    .navbar-chevron, .navbar-links .navbar-build { transition: none; }
}
