/* Account menu (#dropdown), opened by the "Account" button. js/dropdown.js
   fills it: balance + "Buy credits", the dashboard sections, then Log out. */
.User-Dropdown {
    display: none;
    position: absolute;
    top: 64px;
    right: 0;
    z-index: 60;
    width: 248px;
    margin: 0;
    padding: 6px;
    list-style: none;
    text-align: left;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    background: #0e0e11;
    box-shadow:
        0 18px 48px rgba(0, 0, 0, 0.6),
        inset 0 1px 0 rgba(255, 255, 255, 0.04);
    font-size: 13px;
    color: #e4e4e7;
}
.User-Dropdown.U-open {
    display: block;
    animation: tf-dd-in 0.14s ease-out;
}
@keyframes tf-dd-in {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }
}
@media (prefers-reduced-motion: reduce) {
    .User-Dropdown.U-open {
        animation: none;
    }
}
.User-Dropdown > li {
    margin: 0;
    padding: 0;
    line-height: normal;
}

/* Balance block. */
.User-Dropdown .tf-dd-head {
    padding: 10px 10px 12px;
}
.User-Dropdown .tf-dd-label {
    display: block;
    margin-bottom: 4px;
    color: #8b8b93;
    font-size: 11px;
    font-weight: 500;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}
.User-Dropdown .tf-dd-balance {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.User-Dropdown #credit_amount {
    margin: 0;
    padding: 0;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.User-Dropdown .tf-dd-buy {
    flex: 0 0 auto;
    padding: 5px 10px;
    border: 1px solid rgba(245, 217, 132, 0.3);
    border-radius: 8px;
    background: rgba(245, 217, 132, 0.1);
    color: #f5d984;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    transition:
        background 0.15s ease,
        border-color 0.15s ease;
}
.User-Dropdown .tf-dd-buy:hover {
    border-color: rgba(245, 217, 132, 0.5);
    background: rgba(245, 217, 132, 0.18);
    color: #fbe7a8;
}

.User-Dropdown .tf-dd-sep {
    height: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.07);
}

/* Rows: links and the logout button look the same. */
.User-Dropdown .tf-dd-item > a,
.User-Dropdown .tf-dd-item > .dropdown-logout {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    margin: 0;
    padding: 8px 10px;
    border: 0;
    border-radius: 8px;
    background: none;
    color: #d4d4d8;
    font: inherit;
    font-size: 13px;
    text-align: left;
    text-decoration: none;
    cursor: pointer;
    transition:
        background 0.12s ease,
        color 0.12s ease;
}
.User-Dropdown .tf-dd-ic {
    flex: 0 0 auto;
    width: 16px;
    height: 16px;
    fill: none;
    stroke: #8b8b93;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: stroke 0.12s ease;
}
.User-Dropdown .tf-dd-item > a:hover,
.User-Dropdown .tf-dd-item > a:focus-visible,
.User-Dropdown .tf-dd-item > .dropdown-logout:hover,
.User-Dropdown .tf-dd-item > .dropdown-logout:focus-visible {
    outline: none;
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}
.User-Dropdown .tf-dd-item > a:hover .tf-dd-ic,
.User-Dropdown .tf-dd-item > a:focus-visible .tf-dd-ic {
    stroke: #e5564b;
}
.User-Dropdown .tf-dd-logout > .dropdown-logout:hover,
.User-Dropdown .tf-dd-logout > .dropdown-logout:focus-visible {
    color: #fca5a5;
}
.User-Dropdown .tf-dd-logout > .dropdown-logout:hover .tf-dd-ic {
    stroke: #fca5a5;
}

/* Until js/dropdown.js has run (or if it can't): the old static list, dark. */
.User-Dropdown:not([data-tf-built]) > li > a,
.User-Dropdown:not([data-tf-built]) > li > .dropdown-logout {
    display: block;
    padding: 8px 10px;
    border: 0;
    background: none;
    color: #d4d4d8;
    font: inherit;
    text-decoration: none;
    cursor: pointer;
}
.User-Dropdown:not([data-tf-built]) .divider {
    height: 1px;
    margin: 4px 6px;
    background: rgba(255, 255, 255, 0.07);
}
.User-Dropdown:not([data-tf-built]) #credit_amount {
    padding: 10px;
}

@media (max-width: 520px) {
    .User-Dropdown {
        position: fixed;
        top: 64px;
        right: 12px;
        left: 12px;
        width: auto;
    }
}

/* Top bar: Showcase · Blog · Help on the left, Search · Canvas · Pricing in
   the middle. The page you are on is simply brighter. */
.navbar_middle a.nav-pricing-link {
    color: #f5d984;
}
@media (hover: hover) {
    .navbar_middle a.nav-pricing-link:hover {
        color: #fbe7a8;
    }
}
.navbar_middle a[aria-current='page'] {
    color: var(--geist-foreground, #ededed);
}

/* One navbar on every page. Without these the items sat wherever each page's
   own line-height put them (up to 1px apart), and the centred group moved
   sideways between pages that scroll and the canvas, which doesn't, whenever
   the system shows classic scrollbars. */
html {
    scrollbar-gutter: stable;
}
/* The canvas fills the window and never scrolls: a reserved gutter would show
   as an empty strip, so instead its navbar gives up the same width the other
   pages lose to their scrollbar (--tf-sbw, measured in js/navbar.js; 0 with
   overlay scrollbars). */
html.cv-page {
    scrollbar-gutter: auto;
}
html.cv-page .header_header__zJOD0 {
    box-sizing: border-box;
    border-right: var(--tf-sbw, 0px) solid transparent;
}
.navbar_middle {
    top: 50%;
    transform: translate(-50%, -50%);
    align-items: center;
    line-height: 20px;
}
.navbar_middle a,
.navbar_links__jysVN a {
    line-height: 20px;
}
