.nnoff-navigation,
.nnoff-project-dialog {
    box-sizing: border-box;
    color: #4b3828;
    font: 15px/1.4 system-ui, -apple-system, "Segoe UI", sans-serif;
}
.nnoff-navigation *,
.nnoff-project-dialog * { box-sizing: border-box; }
.nnoff-navigation [hidden],
.nnoff-project-dialog [hidden] { display: none !important; }
.nnoff-navigation {
    position: fixed;
    z-index: 100;
    inset: max(14px, calc(50% - 80px)) auto auto 14px;
    transform: none;
    width: 66px;
    max-height: calc(50dvh + 64px);
    padding: 7px;
    border: 1px solid #ddcbb2;
    border-radius: 23px;
    background: #fffaf2;
    box-shadow: 0 8px 28px #38291c14;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transition: width 140ms ease;
}
.nnoff-navigation.is-open { width: min(270px, calc(100vw - 28px)); }
/* Product pages have global nav rules; the rail owns its layout and typography. */
.nnoff-navigation-rail {
    display: block;
    margin: 0;
    padding: 0;
    gap: 0;
    font: inherit;
    align-items: normal;
}
.nnoff-navigation ul,
.nnoff-project-results {
    list-style: none;
    padding: 0;
    margin: 0;
}
.nnoff-navigation-primary,
.nnoff-navigation-featured { display: grid; gap: 5px; }
.nnoff-navigation-featured {
    margin-top: 7px !important;
    padding-top: 7px !important;
    border-top: 1px solid #eadfce;
}
.nnoff-navigation-link {
    appearance: none;
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 48px;
    margin: 0;
    padding: 6px;
    border: 0;
    border-radius: 15px;
    color: inherit;
    background: transparent;
    font: inherit;
    text-decoration: none;
    text-align: left;
    cursor: pointer;
}
.nnoff-navigation-link:hover,
.nnoff-navigation-link[aria-current],
.nnoff-project-close:hover { background: #f0e5d3; color: #4b3828; text-decoration: none; }
.nnoff-navigation-link:focus-visible,
.nnoff-project-close:focus-visible,
.nnoff-project-filter input:focus-visible,
.nnoff-project-filter select:focus-visible {
    outline: 3px solid #9b6c2d;
    outline-offset: 2px;
}
.nnoff-navigation-link:focus-visible { border-radius: 15px; }
.nnoff-navigation-icon {
    flex: 0 0 36px;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: contain;
}
.nnoff-navigation-label { display: none; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.nnoff-navigation.is-open .nnoff-navigation-label { display: inline; }
.nnoff-navigation-primary .nnoff-navigation-link,
.nnoff-navigation-all { height: 48px; }
.nnoff-navigation-all { margin-top: 5px; }
.nnoff-navigation-all-icon {
    flex: 0 0 36px;
    width: 36px;
    text-align: center;
    font-size: 30px;
    line-height: 36px;
}
.nnoff-project-dialog {
    inset: 0;
    width: min(700px, calc(100vw - 32px));
    max-width: none;
    max-height: calc(100dvh - 32px);
    margin: auto;
    padding: 22px;
    border: 1px solid #ddcbb2;
    border-radius: 24px;
    background: #fffaf2;
    box-shadow: 0 16px 70px #21170f33;
    overflow: hidden;
}
.nnoff-project-dialog[open] { display: flex; flex-direction: column; }
.nnoff-project-dialog::backdrop { background: #21170f66; }
.nnoff-project-dialog-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}
.nnoff-project-dialog-header h2 {
    margin: 0;
    font: 600 24px/1.3 system-ui, sans-serif;
    letter-spacing: normal;
}
.nnoff-project-close {
    appearance: none;
    flex: 0 0 44px;
    width: 44px;
    height: 44px;
    padding: 0;
    border: 1px solid #ddcbb2;
    border-radius: 50%;
    background: transparent;
    color: inherit;
    font: 28px/1 system-ui, sans-serif;
    cursor: pointer;
}
.nnoff-project-filters {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 12px;
    margin: 20px 0 16px;
}
.nnoff-project-filter { display: grid; gap: 6px; font-size: 13px; }
.nnoff-project-filter input,
.nnoff-project-filter select {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 8px 10px;
    border: 1px solid #cdb99d;
    border-radius: 10px;
    background: #fffdf8;
    color: inherit;
    font: 16px/1.3 system-ui, sans-serif;
}
.nnoff-project-results {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    min-height: 0;
    padding: 3px;
    overflow-y: auto;
    overscroll-behavior: contain;
}
.nnoff-project-results > li {
    min-width: 0;
    padding: 5px;
    border: 1px solid #e5d7c3;
    border-radius: 16px;
}
.nnoff-project-name { overflow-wrap: anywhere; }
.nnoff-project-category { display: block; margin: 0 6px 5px 54px; font-size: 12px; color: #796650; }
.nnoff-project-empty { margin: 12px 0; }
@media (max-width: 650px) {
    .nnoff-navigation { inset: auto auto 14px 12px; transform: none; width: max-content; max-width: calc(100vw - 24px); max-height: calc(100dvh - 28px); }
    .nnoff-navigation:not(.is-open) .nnoff-navigation-rail,
    .nnoff-navigation:not(.is-open) .nnoff-navigation-primary { display: flex; gap: 5px; }
    .nnoff-navigation:not(.is-open) .nnoff-navigation-link { width: 48px; }
    .nnoff-navigation:not(.is-open) .nnoff-navigation-all { margin-top: 0; }
    .nnoff-navigation.is-open { width: min(270px, calc(100vw - 24px)); }
    .nnoff-project-dialog { padding: 16px; }
    .nnoff-project-filters { grid-template-columns: 1fr; gap: 10px; margin: 14px 0; }
    .nnoff-project-results { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
    .nnoff-navigation { transition: none; }
}