/* Generated mirrored portfolio drawer styles. */
html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle {
    position: fixed;
    top: var(--sound-navigation-edge-top, 22px);
    right: -14px;
    z-index: var(--z-navigation);
    display: inline-grid;
    place-items: center;
    width: 44px;
    height: 44px;
    min-height: 44px;
    padding: 0;
    border: 1px solid var(--line);
    border-radius: 999px;
    color: var(--text);
    box-shadow: 0 8px 24px color-mix(in srgb, var(--text) 12%, transparent);
    /* This is a movable drawer tab, rather than a resize control. Match the
       top-navigation handle so its affordance is clear in every app. */
    cursor: grab;
    touch-action: none;
    transition: right .16s ease, background .16s ease, transform .16s ease;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle.is-dragging {
    right: -7px;
    cursor: grabbing;
    transition: background .16s ease, transform .16s ease;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle:hover,
html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle:focus-visible {
    right: -9px;
    background: color-mix(in srgb, var(--panel-soft) 82%, transparent);
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle svg {
    width: 20px;
    height: 20px;
    margin-right: 10px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* Optional title: untitled edge controls retain their compact circle. */
html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle[data-drawer-title]:not([data-drawer-title=""]) {
    display: inline-flex;
    width: auto;
    padding: 0 10px 0 12px;
    overflow: hidden;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle[data-drawer-title]:not([data-drawer-title=""]) svg {
    flex: 0 0 20px;
    margin-right: 0;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle[data-drawer-title]:not([data-drawer-title=""])::after {
    content: attr(data-drawer-title);
    max-width: 0;
    margin-right: 0;
    overflow: hidden;
    opacity: 0;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 600;
    transition: max-width .18s ease, margin .18s ease, opacity .18s ease;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle[data-drawer-title]:is(:hover, :focus-visible, .is-dragging)::after {
    max-width: 20rem;
    margin-right: 8px;
    opacity: 1;
}

@media (prefers-reduced-motion: reduce) {
    html[data-sound-navigation-layout="side"] .app-body .sound-navigation-edge-toggle::after { transition: none; }
}

html[data-sound-navigation-layout="side"][data-sound-navigation-open="true"] .app-body .sound-navigation-edge-toggle,
html[data-sound-navigation-layout="side"][data-sound-navigation-pinned="true"] .app-body .sound-navigation-edge-toggle {
    opacity: 0;
    pointer-events: none;
}

html[data-sound-navigation-layout="side"] .app-body .sound-primary-navigation-drawer {
    position: fixed;
    top: 0;
    bottom: 0;
    right: 0;
    z-index: var(--z-navigation);
    display: grid;
    grid-template-rows: auto minmax(0, 1fr) auto;
    width: var(--sound-navigation-drawer-width, 272px);
    border-left: 1px solid var(--line);
    box-shadow: var(--shadow);
    transform: translateX(calc(100% + 16px));
    transition: transform .2s ease, box-shadow .2s ease;
}

html[data-sound-navigation-layout="side"][data-sound-navigation-open="true"] .app-body .sound-primary-navigation-drawer,
html[data-sound-navigation-layout="side"][data-sound-navigation-pinned="true"] .app-body .sound-primary-navigation-drawer {
    transform: translateX(0);
}

html[data-sound-navigation-layout="side"][data-sound-navigation-pinned="true"] .app-body .sound-primary-navigation-drawer {
    box-shadow: none;
}

html[data-sound-navigation-layout="side"] .app-body .sound-primary-navigation-drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 66px;
    padding: 10px 12px 10px 18px;
    border-bottom: 1px solid var(--line);
}

html[data-sound-navigation-layout="side"] .app-body .nav {
    grid-column: auto;
    grid-row: auto;
    display: block;
    min-height: 0;
    padding: 10px;
    overflow-x: hidden;
    overflow-y: auto;
    white-space: normal;
    overscroll-behavior: contain;
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-drawer-footer {
    display: grid;
    gap: 10px;
    padding: 12px;
    border-top: 1px solid var(--line);
    background: color-mix(in srgb, var(--panel-soft) 42%, transparent);
}

html[data-sound-navigation-layout="side"] .app-body .drawer-account {
    min-width: 0;
}

html[data-sound-navigation-layout="side"] .app-body .drawer-account .user-meta {
    display: grid;
}

html[data-sound-navigation-layout="side"] .app-body .drawer-account .workspace-menu {
    top: auto;
    left: auto;
    bottom: calc(100% + 10px);
    right: 0;
}

.sound-navigation-drawer-footer-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
}

.sound-navigation-drawer-footer-actions a,
.sound-navigation-drawer-footer-actions button {
    display: block;
    width: 100%;
    min-height: 36px;
    padding: 8px 10px;
    border: 0;
    border-radius: 7px;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-weight: 750;
    text-align: right;
    cursor: pointer;
}

.sound-navigation-drawer-footer-actions a:hover,
.sound-navigation-drawer-footer-actions a:focus-visible,
.sound-navigation-drawer-footer-actions button:hover,
.sound-navigation-drawer-footer-actions button:focus-visible {
    background: var(--panel-soft);
    text-decoration: none;
}

html[data-sound-navigation-layout="side"] .app-body .nav-group {
    display: grid;
    gap: 3px;
    padding: 5px 0 9px;
}

html[data-sound-navigation-layout="side"] .app-body .nav-group + .nav-group {
    border-top: 1px solid color-mix(in srgb, var(--line) 74%, transparent);
}

html[data-sound-navigation-layout="side"] .app-body .nav-group > h2 {
    display: block;
    margin: 0;
    padding: 6px 10px 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.2;
    text-transform: uppercase;
}

html[data-sound-navigation-layout="side"] .app-body .nav a {
    justify-content: space-between;
    min-width: 0;
    padding: 10px 11px;
    color: var(--text);
    border-radius: 7px;
}

html[data-sound-navigation-layout="side"] .app-body .nav a[aria-current="page"],
html[data-sound-navigation-layout="side"] .app-body .nav a.nav-link-active {
    color: var(--accent-strong);
    background: color-mix(in srgb, var(--accent) 12%, var(--panel-soft));
    font-weight: 800;
    text-decoration: none;
}

html[data-sound-navigation-layout="side"] .app-body .nav a > span:first-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

html[data-sound-navigation-layout="side"] .app-body .sound-nav-drawer-resizer {
    position: absolute;
    top: 0;
    left: -5px;
    bottom: 0;
    z-index: 2;
    display: block;
    width: 10px;
    cursor: ew-resize;
    touch-action: none;
}

html[data-sound-navigation-layout="side"] .app-body .sound-nav-drawer-resizer::after {
    content: "";
    position: absolute;
    top: 0;
    left: 4px;
    bottom: 0;
    width: 2px;
    background: transparent;
    transition: background .14s ease;
}

html[data-sound-navigation-layout="side"] .app-body .sound-nav-drawer-resizer:hover::after,
html[data-sound-navigation-layout="side"] .app-body .sound-nav-drawer-resizer:focus-visible::after,
html[data-sound-navigation-layout="side"] .app-body .sound-nav-drawer-resizer.is-resizing::after {
    background: var(--accent);
}

html[data-sound-navigation-layout="side"] .app-body .sound-navigation-scrim {
    position: fixed;
    inset: 0;
    z-index: var(--z-navigation-scrim);
    display: block;
    border: 0;
    border-radius: 0;
    background: color-mix(in srgb, var(--text) 14%, transparent);
    backdrop-filter: blur(1px);
    -webkit-backdrop-filter: blur(1px);
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease;
}

html[data-sound-navigation-layout="side"][data-sound-navigation-open="true"] .app-body .sound-navigation-scrim {
    opacity: 1;
    pointer-events: auto;
}

html[data-sound-navigation-layout="side"][data-sound-navigation-pinned="true"] .app-body .sound-navigation-scrim {
    opacity: 0;
    pointer-events: none;
}

