/* Compact header: the menu occupies its own space next to search. */
.product-topbar {
    min-height: 4.25rem;
    padding: .75rem 1.25rem;
    gap: .75rem;
    flex-wrap: nowrap;
}

.product-topbar .sidebar-collapsed-toggle {
    position: static;
    display: none;
    width: 2.25rem;
    height: 2.25rem;
    flex: 0 0 2.25rem;
    margin: 0;
    opacity: 1;
    transform: none;
    box-shadow: none;
    pointer-events: auto;
    z-index: auto;
}

.app-layout.is-sidebar-collapsed .product-topbar .sidebar-collapsed-toggle {
    display: grid;
}

.product-topbar .global-search {
    flex: 1 1 32rem;
    min-width: 0;
    max-width: 36rem;
    height: 2.5rem;
    padding: 0 .8rem;
    border-radius: .75rem;
    font-size: .875rem;
}

.product-topbar .global-search input {
    min-width: 0;
}

.product-topbar .topbar-actions {
    flex: 0 0 auto;
    margin-left: auto;
    gap: .6rem;
}

.product-topbar .topbar-actions > .btn {
    min-height: 2.5rem;
    padding: .5rem .85rem;
    font-size: .875rem;
}

.product-topbar .icon-button,
.product-topbar .topbar-profile > .avatar {
    width: 2.25rem;
    height: 2.25rem;
}

.product-topbar .topbar-profile {
    border-radius: 50%;
}

.product-topbar .sidebar-collapsed-toggle:focus-visible,
.product-topbar .topbar-profile:focus-visible {
    outline: 2px solid var(--ring);
    outline-offset: 3px;
}

@media (max-width: 620px) {
    .product-topbar {
        padding: .65rem .75rem;
        gap: .5rem;
        flex-wrap: wrap;
    }

    .product-topbar .global-search {
        order: 3;
        flex-basis: 100%;
        max-width: none;
    }

    .product-topbar .global-search kbd {
        display: none;
    }
}
.product-topbar .topbar-create-button {
    display:inline-flex;
    align-items:center;
    justify-content:center;
    gap:10px;
    width:62px;
    height:40px;
    flex-shrink:0;
    padding:0 10px;
    border:1px solid var(--border);
    border-radius:7px;
    background:var(--card);
    color:var(--foreground);
    box-shadow:none;
    text-decoration:none;
    transition:background-color .15s ease,border-color .15s ease;
}
.product-topbar .topbar-create-button .icon { width:20px; height:20px; }
.product-topbar .topbar-create-chevron { width:10px; height:10px; }
.product-topbar .topbar-create-button:hover { background:var(--muted); border-color:var(--border); }
.product-topbar .topbar-create-button:focus-visible { outline:2px solid var(--ring); outline-offset:3px; }
.product-topbar .notification-menu > [data-notifications-button] {
    display:grid;
    place-items:center;
    width:40px;
    height:40px;
    padding:0;
    border:1px solid var(--border);
    border-radius:9px;
    background:var(--card);
    color:var(--foreground);
    box-shadow:none;
    list-style:none;
}
.product-topbar .notification-menu > [data-notifications-button]::-webkit-details-marker { display:none; }
.product-topbar .notification-menu > [data-notifications-button]:hover { background:var(--muted); border-color:var(--border); }
.product-topbar .notification-menu > [data-notifications-button]:focus-visible { outline:2px solid var(--ring); outline-offset:3px; }
.product-topbar .notification-menu > [data-notifications-button] .icon { width:20px; height:20px; }
.topbar-create-menu { position:relative; }
.topbar-create-menu summary { list-style:none; cursor:pointer; }
.topbar-create-menu summary::-webkit-details-marker { display:none; }
.topbar-create-options { position:absolute; top:calc(100% + 8px); right:0; z-index:100; width:210px; padding:6px; border:1px solid var(--border-color); border-radius:10px; background:var(--card); box-shadow:0 8px 24px color-mix(in srgb, var(--shadow-color) 9.4%, transparent); }
.topbar-create-options a { display:flex; align-items:center; gap:10px; padding:10px 12px; border-radius:6px; color:var(--foreground); text-decoration:none; font-size:14px; }
.topbar-create-options a:hover,.topbar-create-options a:focus-visible { background:var(--muted); }
.topbar-create-options svg { width:18px; height:18px; flex-shrink:0; }
