.dentor-navbar {
    --navbar-height: 72px;
    position: sticky;
    top: 0;
    z-index: 50;
    background: var(--ui-surface);
    color: var(--ui-text);
    border-bottom: 1px solid var(--ui-border);
    font-family: var(--ui-font);
}
.dentor-navbar__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ui-space-2); min-height: var(--navbar-height); }
.dentor-navbar__brand { display: inline-flex; gap: var(--ui-space-1); align-items: center; color: inherit; font-weight: 600; text-decoration: none; white-space: nowrap; min-height: 44px; }
.dentor-navbar__brand img { width: 44px; height: 44px; border-radius: 50%; object-fit: contain; background: var(--ui-surface); }
.dentor-navbar__actions { display: flex; align-items: center; gap: var(--ui-space-1); }
.dentor-navbar__avatar, .dentor-navbar__toggle { display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; padding: 0; font: 600 18px/1 var(--ui-font); cursor: pointer; text-decoration: none; }
.dentor-navbar__avatar { background: var(--ui-primary); color: white; border: 1px solid var(--ui-primary); border-radius: 50%; list-style: none; }
.dentor-navbar__avatar::-webkit-details-marker { display: none; }
.dentor-navbar__avatar:hover { background: var(--ui-primary-hover); }
.dentor-navbar__toggle { background: var(--ui-surface); color: var(--ui-text); border: 1px solid var(--ui-border); border-radius: 8px; }
.dentor-navbar__toggle svg { width: 24px; height: 24px; }
.dentor-navbar__toggle .dentor-navbar__close-icon { display: none; }
.dentor-navbar__toggle[aria-expanded='true'] .dentor-navbar__menu-icon { display: none; }
.dentor-navbar__toggle[aria-expanded='true'] .dentor-navbar__close-icon { display: block; }
.dentor-navbar__panel { width: 100%; order: 3; }
.dentor-navbar[data-enhanced] .dentor-navbar__row { height: var(--navbar-height); flex-wrap: nowrap; }
.dentor-navbar[data-enhanced] .dentor-navbar__panel { position: absolute; top: 100%; left: 0; right: 0; padding: var(--ui-space-2); background: var(--ui-surface); border-bottom: 1px solid var(--ui-border); box-shadow: 0 12px 24px rgb(15 23 42 / .1); max-height: calc(100dvh - var(--navbar-height) - 16px); overflow-y: auto; overscroll-behavior: contain; }
.dentor-navbar__links { display: flex; flex-direction: column; gap: var(--ui-space-1); list-style: none; padding: 0; margin: 0 auto; max-width: var(--container); }
.dentor-navbar__links a, .dentor-navbar__dropdown a { display: flex; align-items: center; min-height: 44px; padding: 8px 16px; color: var(--ui-muted); text-decoration: none; border-radius: 8px; font-size: 16px; font-weight: 500; }
.dentor-navbar__links a:hover, .dentor-navbar__dropdown a:hover, .dentor-navbar__links a[aria-current] { color: var(--ui-primary); background: var(--ui-selected); }
.dentor-navbar__links a[aria-current] { box-shadow: inset 3px 0 var(--ui-primary); }
.dentor-navbar__account { position: relative; }
.dentor-navbar__dropdown { position: absolute; right: 0; top: calc(100% + 8px); width: min(240px, calc(100vw - 88px)); max-height: calc(100dvh - var(--navbar-height) - 16px); overflow-y: auto; padding: 8px; border: 1px solid var(--ui-border); border-radius: 16px; background: var(--ui-surface); box-shadow: 0 12px 24px rgb(15 23 42 / .1); }
.dentor-navbar__username { display: block; overflow-wrap: anywhere; padding: 8px 16px; border-bottom: 1px solid var(--ui-border); font-size: 14px; }
.dentor-navbar :focus-visible { outline: 3px solid var(--ui-primary); outline-offset: 3px; }
.dentor-navbar [hidden] { display: none; }
/* Keep in sync with the matchMedia query in navbar.js. */
@media (min-width: 1100px) {
    .dentor-navbar__row { flex-wrap: nowrap; }
    .dentor-navbar__panel, .dentor-navbar[data-enhanced] .dentor-navbar__panel { display: block; position: static; order: 0; width: auto; flex: 1; padding: 0; border: 0; box-shadow: none; overflow: visible; max-height: none; }
    .dentor-navbar__links { flex-direction: row; justify-content: center; gap: 0; }
    .dentor-navbar__links a { white-space: nowrap; }
    .dentor-navbar__toggle { display: none; }
}
