/* Application shell */
.app-shell {
    --desktop-sidebar-width: 244px;
    min-height: 100vh;
    min-height: 100dvh;
}

.sidebar {
    position: fixed;
    z-index: 20;
    inset: 0 auto 0 0;
    display: flex;
    width: var(--desktop-sidebar-width);
    height: 100vh;
    height: 100dvh;
    padding: calc(24px + env(safe-area-inset-top)) 18px calc(24px + env(safe-area-inset-bottom));
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    color: #c3c6d2;
    background:
        radial-gradient(circle at 20% 3%, rgba(101, 119, 255, .18), transparent 28%),
        var(--sidebar);
    flex-direction: column;
}

.sidebar-top {
    --sidebar-brand-size: 34px;
    display: flex;
    align-items: stretch;
    gap: 14px;
    flex-direction: column;
}

.brand {
    display: grid;
    min-width: 0;
    align-items: center;
    gap: 11px;
    grid-template-columns: var(--sidebar-brand-size) minmax(0, 1fr);
    color: #fff;
    font-family: "Manrope", sans-serif;
}

.sidebar-brand-copy {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.sidebar-brand-copy strong {
    color: rgba(255, 255, 255, .98);
    font-size: 16px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.sidebar-brand-copy small {
    overflow: hidden;
    color: rgba(211, 215, 231, .62);
    font-size: 9px;
    font-weight: 650;
    letter-spacing: .025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.app-nav {
    margin-top: 28px;
}

.app-nav + .location-nav {
    margin-top: 24px;
}

.location-nav {
    margin-top: 48px;
}

.location-nav .nav-label::after {
    margin-left: 7px;
    color: #8f96b2;
    letter-spacing: 0;
    text-transform: none;
}

.location-nav.location-order-saved .nav-label::after {
    content: "Saved";
}

.location-nav.location-order-error .nav-label::after {
    content: "Could not save";
    color: #df8ea8;
}

.utility-nav {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .07);
}

.utility-icon {
    color: #a5aabc;
    background: rgba(255, 255, 255, .06);
}

.nav-label {
    margin: 0 11px 10px;
    color: #74798d;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.location-link {
    display: flex;
    min-width: 0;
    min-height: 47px;
    padding: 6px 10px;
    align-items: center;
    gap: 11px;
    border-radius: 13px;
    font-size: 13px;
    font-weight: 600;
    transition: .18s ease;
}

.location-link + .location-link {
    margin-top: 4px;
}

.reorderable-location {
    position: relative;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-touch-callout: none;
    -webkit-user-drag: none;
    -webkit-user-select: none;
    user-select: none;
}

.reorderable-location * {
    -webkit-user-select: none;
    user-select: none;
}

.reorderable-location.location-dragging {
    z-index: 2;
    color: #fff;
    background: rgba(255, 255, 255, .12);
    box-shadow: 0 12px 28px rgba(4, 6, 15, .28);
    transform: scale(1.025);
}

.location-nav.reordering .reorderable-location:not(.location-dragging) {
    opacity: .72;
}

.nav-count {
    min-width: 20px;
    margin-left: auto;
    padding: 2px 6px;
    color: #d9dcff;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    font-size: 9px;
    text-align: center;
}

.location-link:hover,
.location-link.active {
    color: #fff;
    background: rgba(255, 255, 255, .07);
}

.location-icon {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--location-accent);
    border-radius: 9px;
    background: color-mix(in srgb, var(--location-accent) 14%, transparent);
}

.location-icon svg {
    width: 16px;
    height: 16px;
}

.location-icon.app-icon {
    --app-icon-fill: #6577ff;
    color: #101522;
    border-radius: 10px;
    background: var(--app-icon-fill);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, .16),
        0 7px 16px color-mix(in srgb, var(--app-icon-fill) 16%, transparent);
}

.location-icon.app-icon svg {
    width: 17px;
    height: 17px;
    stroke-width: 2.2;
}

.location-icon.app-icon-notes {
    --app-icon-fill: #ffb41f;
}

.location-icon.app-icon-boards {
    --app-icon-fill: #ff8f5b;
}

.location-icon.app-icon-expenses {
    --app-icon-fill: #34c970;
}

.location-icon.app-icon-messages {
    --app-icon-fill: #2f73ff;
}

.location-label {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.location-grip {
    display: none;
}

.pinned-location-icon svg {
    stroke: var(--location-accent);
}

@media (hover: hover) and (pointer: fine) {
    .location-grip {
        display: grid;
        width: 24px;
        height: 30px;
        flex: 0 0 auto;
        place-items: center;
        color: rgba(205, 211, 228, .34);
        border-radius: 10px;
        opacity: 0;
        transform: translateX(4px);
        transition: .18s ease;
    }

    .location-grip svg {
        width: 16px;
        height: 16px;
        stroke-width: 2.2;
    }

    .reorderable-location:hover .location-grip,
    .reorderable-location:focus-visible .location-grip,
    .reorderable-location.location-dragging .location-grip {
        opacity: 1;
        transform: translateX(0);
    }

    .reorderable-location:hover .location-grip,
    .reorderable-location:focus-visible .location-grip {
        color: rgba(232, 236, 246, .92);
        background: rgba(255, 255, 255, .08);
    }

    .reorderable-location.location-dragging .location-grip,
    .reorderable-location .location-grip:active {
        cursor: grabbing;
    }

    .reorderable-location .location-grip {
        cursor: grab;
        touch-action: none;
    }
}

.logout-link {
    display: flex;
    margin-top: auto;
    padding: 12px 11px;
    align-items: center;
    gap: 11px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
}

.logout-link:hover {
    color: #fff;
    background: rgba(255, 255, 255, .06);
}

.logout-link svg {
    width: 17px;
    height: 17px;
}

.main-content {
    min-height: 100vh;
    min-height: 100dvh;
    margin-left: var(--desktop-sidebar-width);
}

.topbar {
    position: sticky;
    z-index: 10;
    top: 0;
    display: flex;
    justify-content: center;
    height: 78px;
    padding: 0 34px;
    align-items: center;
    gap: 18px;
    border-bottom: 1px solid rgba(231, 232, 239, .8);
    background: rgba(245, 246, 250, .88);
    backdrop-filter: blur(18px);
}

.menu-button {
    display: none;
}

.search-box {
    display: flex;
    width: min(590px, 60vw);
    height: 43px;
    padding: 0 12px;
    align-items: center;
    gap: 9px;
    color: #8d92a4;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #fff;
}

.search-box > svg {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}

.search-box input {
    width: 100%;
    min-width: 80px;
    outline: 0;
    border: 0;
    background: transparent;
    font-size: 13px;
}

.search-box kbd {
    padding: 3px 6px;
    color: #999ead;
    border: 1px solid var(--line);
    border-radius: 6px;
    background: #f6f6f9;
    font-family: inherit;
    font-size: 9px;
    white-space: nowrap;
}

.topbar-title {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #53586b;
    font-size: 12px;
    font-weight: 700;
}

.topbar-title svg {
    width: 17px;
    height: 17px;
    color: #7e8497;
}

.topbar-actions {
    position: absolute;
    right: 34px;
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 12px;
}

.notes-editor-topbar {
    z-index: 55;
}

@media (min-width: 761px) {
    .notes-editor-topbar {
        justify-content: flex-start;
        padding-right: 260px;
    }
}

.topbar-note-nav {
    display: flex;
    flex: 1 1 auto;
    min-width: 0;
    align-items: center;
    gap: 10px;
}

.topbar-note-actions {
    display: flex;
    margin-left: auto;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.notes-editor-topbar .topbar-actions {
    margin-left: 0;
}

@media (min-width: 761px) {
    .notes-editor-topbar .topbar-note-actions {
        position: absolute;
        right: 188px;
        z-index: 70;
    }

    .notes-editor-topbar .topbar-actions {
        right: 34px;
    }

    .note-editor-app-label {
        position: absolute;
        left: 50%;
        transform: translateX(-50%);
        white-space: nowrap;
        pointer-events: none;
    }
}

.privacy-pill {
    display: flex;
    padding: 7px 10px;
    align-items: center;
    gap: 6px;
    color: #626779;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
}

.privacy-pill svg {
    width: 13px;
    height: 13px;
    color: #41a988;
}

.avatar {
    --profile-color: #292e44;
    position: relative;
    display: grid;
    width: 35px;
    height: 35px;
    place-items: center;
    color: #fff;
    border: 1px solid rgba(255, 255, 255, .48);
    border-radius: 50%;
    background: var(--profile-color);
    box-shadow:
        0 4px 12px rgba(24, 28, 45, .12),
        0 0 0 1px rgba(18, 21, 34, .08);
    font-size: 12px;
    font-weight: 800;
}

.profile-menu {
    position: relative;
    flex: 0 0 auto;
}

.profile-menu > summary {
    list-style: none;
}

.profile-menu > summary::-webkit-details-marker {
    display: none;
}

.profile-menu-trigger {
    cursor: pointer;
}

.profile-menu-trigger:focus-visible {
    outline: 3px solid color-mix(in srgb, var(--accent) 38%, transparent);
    outline-offset: 3px;
}

.avatar.has-notifications {
    overflow: visible;
}

.avatar img {
    display: block;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: inherit;
    object-fit: cover;
}

.avatar[data-avatar-fallback]::before {
    content: attr(data-avatar-fallback);
    grid-area: 1 / 1;
}

.avatar[data-avatar-fallback] > img {
    z-index: 1;
    grid-area: 1 / 1;
}

img[data-avatar-image] {
    transition: opacity .16s ease;
}

img[data-avatar-image]:not(.avatar-media-ready) {
    opacity: 0;
}

.notification-dot {
    position: absolute;
    top: -7px;
    right: -8px;
    display: grid;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    place-items: center;
    color: #fff;
    border: 2px solid #fff;
    border-radius: 999px;
    background: #ef3f5f;
    box-shadow: 0 6px 16px rgba(239, 63, 95, .35);
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.profile-menu-panel {
    position: absolute;
    top: calc(100% + 10px);
    right: 0;
    z-index: 95;
    display: grid;
    width: min(248px, calc(100vw - 24px));
    padding: 8px;
    gap: 5px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: color-mix(in srgb, var(--surface) 98%, transparent);
    box-shadow: 0 22px 60px rgba(20, 23, 35, .22);
    opacity: 0;
    pointer-events: none;
    transform: translate3d(0, -6px, 0) scale(.98);
    transform-origin: top right;
    transition: opacity .18s ease, transform .18s ease;
}

.profile-menu[open] .profile-menu-panel {
    opacity: 1;
    pointer-events: auto;
    transform: translate3d(0, 0, 0) scale(1);
}

.profile-menu-item {
    display: flex;
    width: 100%;
    min-height: 42px;
    padding: 0 10px;
    align-items: center;
    gap: 10px;
    color: var(--ink);
    border: 0;
    border-radius: 11px;
    background: transparent;
    font-family: inherit;
    text-decoration: none;
    font-size: 12px;
    font-weight: 800;
    text-align: left;
    transition: background .18s ease, color .18s ease;
    cursor: pointer;
}

.profile-menu-form {
    margin: 0;
}

.profile-hidden-disclosure > summary {
    list-style: none;
}

.profile-hidden-disclosure > summary::-webkit-details-marker {
    display: none;
}

.profile-hidden-chevron {
    width: 13px !important;
    height: 13px !important;
    margin-left: auto;
    color: var(--muted);
    transition: transform .18s ease;
}

.profile-hidden-disclosure[open] .profile-hidden-chevron {
    transform: rotate(180deg);
}

.profile-hidden-code-form {
    padding: 9px;
    margin: 0 3px 3px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: color-mix(in srgb, var(--canvas) 84%, transparent);
}

.profile-hidden-code-form label {
    display: block;
    margin: 0 0 6px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.profile-hidden-code-form > div {
    display: flex;
    gap: 7px;
}

.profile-hidden-code-form input {
    width: 0;
    min-width: 0;
    height: 44px;
    flex: 1 1 auto;
    padding: 0 8px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 10px;
    background: var(--surface);
    font: 800 16px/1 "Manrope", sans-serif;
    letter-spacing: .2em;
    text-align: center;
}

.profile-hidden-code-form input:focus {
    border-color: color-mix(in srgb, var(--accent) 60%, var(--line));
    outline: 3px solid color-mix(in srgb, var(--accent) 16%, transparent);
}

.profile-hidden-code-form .settings-primary-button {
    min-height: 44px;
    padding: 0 12px;
}

.profile-menu-item:hover,
.profile-menu-item:focus-visible {
    color: var(--accent);
    background: color-mix(in srgb, var(--accent) 10%, transparent);
    outline: 0;
}

.profile-menu-item svg {
    width: 16px;
    height: 16px;
    flex: 0 0 auto;
}

.profile-menu-copy {
    display: grid;
    min-width: 0;
    gap: 1px;
}

.profile-menu-copy strong,
.profile-menu-copy small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-copy strong {
    font-size: 12px;
}

.profile-menu-copy small {
    color: var(--muted);
    font-size: 9px;
    font-weight: 800;
}

.profile-menu-danger {
    color: #be3853;
}

.profile-menu-danger:hover,
.profile-menu-danger:focus-visible {
    color: #a82f47;
    background: rgba(239, 63, 95, .1);
}

.profile-menu-danger .profile-menu-close {
    display: grid;
    width: 22px;
    height: 22px;
    margin-left: auto;
    place-items: center;
    border-radius: 999px;
    background: rgba(239, 63, 95, .1);
}

.profile-menu-danger .profile-menu-close svg {
    width: 10px;
    height: 10px;
}

.profile-menu-count {
    display: grid;
    min-width: 19px;
    height: 19px;
    padding: 0 6px;
    margin-left: auto;
    place-items: center;
    color: #fff;
    border-radius: 999px;
    background: #ef3f5f;
    font-size: 9px;
    font-weight: 900;
    line-height: 1;
}

.profile-presence-icon {
    position: relative;
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    color: var(--muted);
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 10%, transparent);
}

.profile-presence-icon.is-online {
    color: #22b36b;
    background: rgba(34, 179, 107, .12);
}

.profile-presence-icon.is-inactive {
    color: #d79416;
    background: rgba(230, 165, 41, .12);
}

.profile-presence-icon svg {
    width: 13px;
    height: 13px;
}

.profile-presence-switch {
    position: relative;
    width: 34px;
    height: 20px;
    margin-left: auto;
    flex: 0 0 auto;
    border-radius: 999px;
    background: color-mix(in srgb, var(--muted) 22%, var(--surface));
    transition: background .18s ease;
}

.profile-presence-switch i {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 14px;
    height: 14px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 5px rgba(20, 23, 35, .24);
    transition: transform .18s ease;
}

.profile-presence-switch.active {
    background: #22b36b;
}

.profile-presence-switch.active i {
    transform: translateX(14px);
}

.content {
    width: min(1460px, 100%);
    padding: 26px 34px 60px;
    margin: 0 auto;
}

.file-browser-context,
.file-browser-context-inner {
    min-width: 0;
}

.breadcrumbs {
    display: flex;
    min-height: 24px;
    align-items: center;
    gap: 5px;
    color: #858a9b;
    font-size: 12px;
    font-weight: 600;
    overflow-x: auto;
    white-space: nowrap;
}

.breadcrumbs a:last-child {
    color: var(--ink);
}

.breadcrumbs svg {
    width: 14px;
    height: 14px;
    flex: 0 0 auto;
}

.folder-heading {
    display: flex;
    margin-top: 18px;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

.folder-heading-copy {
    min-width: 0;
    flex: 1 1 auto;
}

.folder-heading h1 {
    margin: 0;
    font-family: "Manrope", sans-serif;
    font-size: clamp(28px, 4vw, 39px);
    line-height: 1.15;
    letter-spacing: -.045em;
}

.folder-summary {
    display: flex;
    margin: 9px 0 0;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
}

.folder-access-pill {
    display: inline-flex;
    padding: 3px 7px;
    align-items: center;
    color: #3f62d8;
    border: 1px solid #dce4ff;
    border-radius: 999px;
    background: #eef3ff;
    font-size: 8px;
    font-style: normal;
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.folder-access-pill.public {
    color: #1f7a58;
    border-color: #cdeedc;
    background: #e5f7ed;
}

.folder-access-pill.shared {
    color: #8a5a00;
    border-color: #f0d38b;
    background: #fff0c2;
}

.folder-access-pill.hidden {
    color: #8a4a0d;
    border-color: #efd1a6;
    background: #fff1df;
}

.folder-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 8px;
}

.folder-actions form {
    margin: 0;
}

.folder-view-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 9px;
}

.upload-button,
.folder-button {
    display: inline-flex;
    height: 41px;
    padding: 0 14px;
    align-items: center;
    gap: 7px;
    color: #fff;
    border: 0;
    border-radius: 12px;
    background: var(--accent);
    box-shadow: 0 9px 20px rgba(101, 119, 255, .2);
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}

.upload-button:hover {
    background: var(--accent-dark);
}

.folder-button {
    color: #4d5366;
    border: 1px solid var(--line);
    background: #fff;
    box-shadow: none;
}

.folder-button:hover {
    background: #f2f3f7;
}

.access-button {
    justify-content: center;
}

.folder-button.active {
    color: #6d56bd;
    border-color: #d9cff9;
    background: #f4f0ff;
}

.folder-button.danger {
    color: #c2415b;
    border-color: rgba(194, 65, 91, .24);
    background: rgba(194, 65, 91, .08);
}

.folder-button.danger:hover {
    background: rgba(194, 65, 91, .13);
}

.pin-button.active {
    color: var(--pin-accent);
    border-color: color-mix(in srgb, var(--pin-accent) 35%, var(--line));
    background: color-mix(in srgb, var(--pin-accent) 10%, #fff);
}

.pin-button.active svg {
    fill: var(--pin-accent);
    stroke: var(--pin-accent);
}

.upload-button:disabled,
.folder-button:disabled {
    color: #9a9eac;
    background: #e6e7ed;
    box-shadow: none;
    cursor: not-allowed;
}

.upload-button svg,
.folder-button svg {
    width: 15px;
    height: 15px;
}

.view-switcher {
    display: flex;
    padding: 3px;
    gap: 2px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: #fff;
}

.view-switcher button {
    display: grid;
    width: 35px;
    height: 33px;
    padding: 0;
    place-items: center;
    color: #969baa;
    border: 0;
    border-radius: 9px;
    background: transparent;
    cursor: pointer;
}

.view-switcher button.active {
    color: var(--ink);
    background: #eff0f5;
}

.view-switcher svg {
    width: 16px;
    height: 16px;
}

.toolbar {
    display: flex;
    margin: 18px 0 16px;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
}

.file-toolbar-menus {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}

.selection-toolbar {
    display: flex;
    margin: -8px 0 18px;
    padding: 12px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    border: 1px solid rgba(101, 119, 255, .22);
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(101, 119, 255, .13), rgba(98, 212, 168, .1));
    box-shadow: 0 16px 45px rgba(35, 39, 62, .08);
}

.selection-toolbar[hidden] {
    display: none;
}

.selection-toolbar > div:first-child {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.selection-toolbar strong {
    color: var(--ink);
    font-size: 12px;
}

.selection-toolbar > div:first-child span {
    overflow: hidden;
    color: var(--muted);
    font-size: 9px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.selection-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.selection-actions form {
    margin: 0;
}

.selection-actions .settings-secondary-button,
.selection-actions .settings-danger-button {
    min-height: 36px;
    padding: 0 12px;
}

.selection-actions button:disabled {
    opacity: .48;
    cursor: not-allowed;
}

.upload-flash {
    display: flex;
    margin-top: 20px;
    padding: 12px 14px;
    align-items: start;
    gap: 10px;
    border: 1px solid;
    border-radius: 13px;
    font-size: 10px;
}

.upload-flash svg {
    width: 15px;
    height: 15px;
    flex: 0 0 auto;
}

.upload-flash div {
    display: grid;
    gap: 3px;
}

.upload-flash strong {
    font-size: 11px;
}

.upload-flash span {
    line-height: 1.5;
}

.upload-flash.readonly {
    color: #777c8e;
    border-color: #e1e3ea;
    background: #f8f8fb;
}

.app-notification-stack {
    position: absolute;
    z-index: 90;
    top: calc(100% + 12px);
    right: 34px;
    display: grid;
    width: min(370px, calc(100vw - 68px));
    gap: 9px;
    pointer-events: none;
}

.app-notification-stack[hidden] {
    display: none;
}

.app-notification {
    display: grid;
    min-height: 58px;
    padding: 10px 10px 10px 12px;
    align-items: center;
    gap: 10px;
    grid-template-columns: 30px minmax(0, 1fr) 28px;
    color: #283044;
    border: 1px solid rgba(214, 218, 231, .9);
    border-radius: 16px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 18px 48px rgba(24, 28, 45, .16);
    opacity: 0;
    pointer-events: auto;
    transform: translate3d(0, -8px, 0) scale(.98);
    transition: opacity .24s ease, transform .24s cubic-bezier(.22, 1, .36, 1), border-color .18s ease, background .18s ease;
    will-change: opacity, transform;
    backdrop-filter: blur(18px);
}

.app-notification.is-visible {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
}

.app-notification.is-dismissing {
    opacity: 0;
    transform: translate3d(0, -8px, 0) scale(.98);
}

.app-notification-clickable {
    cursor: pointer;
}

.app-notification-clickable:hover {
    border-color: color-mix(in srgb, var(--accent) 42%, var(--line));
    background: color-mix(in srgb, var(--accent) 5%, rgba(255, 255, 255, .96));
}

.app-notification-clickable:focus-visible {
    border-color: var(--accent);
    outline: 2px solid color-mix(in srgb, var(--accent) 48%, transparent);
    outline-offset: 2px;
}

.app-notification-icon {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    border-radius: 11px;
}

.app-notification-icon svg {
    width: 16px;
    height: 16px;
}

.app-notification-success .app-notification-icon {
    color: #1f7a58;
    background: #e7f8f0;
}

.app-notification-error .app-notification-icon {
    color: #b23852;
    background: #fff0f4;
}

.app-notification-info .app-notification-icon {
    color: #475edc;
    background: #eef2ff;
}

.app-notification-body {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.app-notification-body strong {
    overflow-wrap: anywhere;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.35;
}

.app-notification-code {
    display: block;
    width: fit-content;
    padding: 4px 8px;
    margin: 2px 0;
    color: var(--ink);
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line));
    border-radius: 9px;
    background: color-mix(in srgb, var(--accent) 8%, var(--surface));
    font: 900 24px/1.1 "Manrope", sans-serif;
    letter-spacing: .18em;
}

.app-notification-body span {
    overflow-wrap: anywhere;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.45;
}

.app-notification-close {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    color: #858a9b;
    border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}

.app-notification-close:hover,
.app-notification-close:focus-visible {
    color: var(--ink);
    background: rgba(30, 34, 50, .07);
    outline: 0;
}

.app-notification-close svg {
    width: 15px;
    height: 15px;
}

.filter-chips {
    display: flex;
    gap: 7px;
    overflow-x: auto;
    scrollbar-width: none;
}

.filter-chips::-webkit-scrollbar {
    display: none;
}

.filter-chips button {
    display: flex;
    height: 34px;
    padding: 0 11px;
    align-items: center;
    gap: 7px;
    color: #74798b;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.filter-chips button span {
    color: #a1a5b3;
    font-size: 9px;
}

.filter-chips button.active {
    color: #fff;
    border-color: var(--ink);
    background: var(--ink);
}

.filter-chips button.active span {
    color: #b9bdc9;
}

.sort-control {
    display: flex;
    height: 34px;
    padding-left: 11px;
    align-items: center;
    gap: 5px;
    color: #8c91a0;
    border: 1px solid var(--line);
    border-radius: 10px;
    background: #fff;
    font-size: 11px;
    white-space: nowrap;
}

.ui-dropdown {
    position: relative;
    color: var(--ink);
}

.ui-dropdown-toggle {
    display: flex;
    height: 32px;
    padding: 0 8px;
    align-items: center;
    justify-content: space-between;
    gap: 7px;
    color: inherit;
    border: 0;
    border-radius: 8px;
    background: transparent;
    font-size: 10px;
    font-weight: 700;
    white-space: nowrap;
    cursor: pointer;
}

.ui-dropdown-toggle:hover,
.ui-dropdown.open .ui-dropdown-toggle {
    background: #f1f2f6;
}

.ui-dropdown-toggle:focus-visible {
    outline: 2px solid var(--accent);
    outline-offset: 2px;
}

.ui-dropdown-toggle svg {
    width: 13px;
    height: 13px;
    transition: transform .18s ease;
}

.ui-dropdown.open .ui-dropdown-toggle svg {
    transform: rotate(180deg);
}

.ui-dropdown-menu {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    width: 220px;
    padding: 6px;
    gap: 3px;
    color: var(--ink);
    border: 1px solid var(--line);
    border-radius: 14px;
    background: color-mix(in srgb, var(--surface) 96%, transparent);
    box-shadow: 0 18px 55px rgba(27, 30, 47, .18);
    backdrop-filter: blur(18px);
    animation: dropdown-in .14s ease-out;
}

.ui-dropdown-menu[hidden] {
    display: none;
}

.ui-dropdown-menu.viewport-positioned {
    overflow-y: auto;
    overscroll-behavior: contain;
}

@keyframes dropdown-in {
    from {
        opacity: 0;
        transform: translateY(-4px) scale(.985);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ui-dropdown-menu button {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 49px;
    padding: 8px 32px 8px 10px;
    gap: 2px;
    color: var(--ink);
    border: 0;
    border-radius: 10px;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.ui-dropdown-menu button:hover,
.ui-dropdown-menu button:focus-visible {
    outline: 0;
    background: #f1f2f7;
}

.ui-dropdown-menu button[aria-selected="true"] {
    color: #5364e8;
    background: #eef0ff;
}

.ui-dropdown-menu button[aria-selected="true"]::after {
    position: absolute;
    top: 50%;
    right: 12px;
    width: 7px;
    height: 4px;
    content: "";
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: translateY(-65%) rotate(-45deg);
}

.ui-dropdown-menu strong {
    font-size: 10px;
}

.ui-dropdown-menu small {
    color: var(--muted);
    font-size: 8px;
    font-weight: 500;
}

.search-scope-dropdown {
    flex: 0 0 auto;
    padding-left: 4px;
    border-left: 1px solid var(--line);
}

.search-scope-dropdown .ui-dropdown-toggle {
    min-width: 112px;
    font-size: 12px;
}

.search-scope-dropdown .ui-dropdown-menu {
    width: 184px;
}

.search-scope-dropdown .ui-dropdown-menu button {
    display: flex;
    min-height: 43px;
    padding: 0 34px 0 13px;
    align-items: center;
}

.search-scope-dropdown .ui-dropdown-menu strong {
    font-size: 13px;
    line-height: 1.2;
}

.sort-dropdown .ui-dropdown-toggle {
    min-width: 88px;
    height: 32px;
}

.sort-dropdown .ui-dropdown-menu {
    width: 210px;
}
