.tt-auth {
    --tt-auth-ink: #14283e;
    --tt-auth-accent: #174589;
    --tt-auth-accent-hover: #12366a;
    --tt-auth-line: #d4dfec;
    --tt-auth-surface: #fff;
    color: var(--tt-auth-ink);
}

.tt-auth .tt-auth__actions,
.tt-auth .tt-auth__links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .625rem;
}

.tt-auth form {
    margin: 0;
}

.tt-auth .tt-auth__button {
    box-sizing: border-box;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: .55rem .88rem;
    min-height: 2.75rem;
    border: 1px solid var(--tt-auth-accent);
    border-radius: .55rem;
    background: var(--tt-auth-accent);
    color: var(--tt-auth-surface);
    font: inherit;
    font-weight: 650;
    line-height: 1.25;
    text-decoration: none;
    cursor: pointer;
}

.tt-auth .tt-auth__button:is(:hover, [aria-expanded="true"]) {
    background: var(--tt-auth-accent-hover);
    color: var(--tt-auth-surface);
    text-decoration: none;
}

.tt-auth .tt-auth__button--secondary {
    background: var(--tt-auth-surface);
    color: var(--tt-auth-accent);
}

.tt-auth [data-tt-auth-card][hidden] {
    display: none !important;
}

.tt-auth .tt-auth__card {
    box-sizing: border-box;
    width: min(100%, 30rem);
    margin-top: .7rem;
    padding: clamp(.85rem, 3vw, 1.5rem);
    border: 1px solid var(--tt-auth-line);
    border-radius: .85rem;
    background: var(--tt-auth-surface);
    color: var(--tt-auth-ink);
    box-shadow: 0 .55rem 1.6rem rgba(20, 40, 62, .10);
}

.tt-auth .tt-auth__header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: .5rem;
    margin-bottom: .85rem;
}

.tt-auth .tt-auth__header h2 {
    margin: 0;
    color: inherit;
    font-size: 1.25rem;
    line-height: 1.2;
}

.tt-auth .tt-auth__close {
    display: grid;
    flex: 0 0 2.75rem;
    place-items: center;
    width: 2.75rem;
    height: 2.75rem;
    padding: 0;
    border: 1px solid var(--tt-auth-line);
    border-radius: .5rem;
    background: #f3f7fb;
    color: var(--tt-auth-ink);
    font: 1.55rem/1 sans-serif;
    cursor: pointer;
}

.tt-auth .tt-auth__close:hover {
    background: #e8eff8;
}

.tt-auth :is(a, button, input, select, textarea):focus-visible {
    outline: 2px solid var(--tt-auth-accent);
    outline-offset: 2px;
}

.tt-auth .tt-auth__form {
    display: grid;
    gap: .75rem;
}

.tt-auth .tt-auth__field {
    display: grid;
    gap: .4rem;
}

.tt-auth .tt-auth__form :is(.control-group, .control-label, .controls) {
    min-width: 0;
    margin: 0;
}

.tt-auth .tt-auth__form .control-label {
    margin-bottom: .35rem;
}

.tt-auth .tt-auth__form label {
    font-weight: 600;
}

.tt-auth .tt-auth__form input:is([type="text"], [type="email"], [type="password"]) {
    box-sizing: border-box;
    min-width: 0;
    width: 100%;
    min-height: 2.75rem;
    border: 1px solid #a7bad0;
    border-radius: .45rem;
    padding: .52rem .65rem;
    background: var(--tt-auth-surface);
    color: inherit;
    font-family: inherit;
    font-size: max(1em, 16px);
}

.tt-auth .tt-auth__form .password-group > .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: stretch;
    gap: .375rem;
    width: 100%;
}

.tt-auth .tt-auth__form .password-group > .input-group > .form-control {
    min-width: 0;
    width: 100%;
}

:is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
    padding: .5rem;
    border: 1px solid var(--tt-auth-line, #d4dfec);
    border-radius: .45rem;
    background: #f1f5f9;
    color: var(--tt-auth-ink, #14283e);
}

:is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle:hover {
    background: #e2e8f0;
}

:is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle:focus-visible {
    outline: 2px solid var(--tt-auth-accent, #174589);
    outline-offset: 2px;
}

@supports (mask-image: url("")) {
    :is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle > [aria-hidden="true"] {
        display: block;
        width: 20px;
        height: 20px;
        background: currentColor;
        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2 12s3.5-7 10-7 10 7 10 7-3.5 7-10 7-10-7-10-7Z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E") center / contain no-repeat;
    }

    :is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle > .icon-eye-slash {
        mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3l18 18M10.6 5.1c.5-.1.9-.1 1.4-.1 6.5 0 10 7 10 7a16 16 0 0 1-2.2 3M6.2 6.2C3.5 8.3 2 12 2 12s3.5 7 10 7c2 0 3.7-.6 5-1.4M9.9 9.9a3 3 0 0 0 4.2 4.2'/%3E%3C/svg%3E");
    }

    :is(.tt-auth .tt-auth__form, main .password-group) .input-password-toggle > [aria-hidden="true"]::before {
        content: none;
    }
}

.tt-auth .tt-auth__form :is(select, textarea) {
    max-width: 100%;
}

.tt-auth .tt-auth__remember {
    display: flex;
    align-items: center;
    justify-self: start;
    gap: .4rem;
    min-height: 2rem;
}

.tt-auth .tt-auth__submit {
    width: 100%;
}

.tt-auth .tt-auth__links a {
    min-height: 1.5rem;
    color: var(--tt-auth-accent);
    text-decoration: underline;
    text-underline-offset: .16em;
}

.site-header .header-links:has(.tt-auth) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-end;
    gap: .5rem;
}

.header-links:has(.tt-auth) .tku-header-menu > ul,
.header-links .tt-auth .tt-auth__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .5rem;
}

.header-links:has(.tt-auth) .tku-header-menu > ul > li > a,
.header-links .tt-auth .tt-auth__actions .tt-auth__button,
.header-links .tt-auth .tt-auth__mobile-toggle {
    box-sizing: border-box;
    min-height: 44px;
    padding: .45rem .8rem;
    align-items: center;
    justify-content: center;
    border-radius: .55rem;
    font-size: .875rem;
    font-weight: 650;
    line-height: 1.2;
    white-space: nowrap;
}

.header-links:has(.tt-auth) .tku-header-menu > ul > li > a {
    display: inline-flex;
}

.tt-auth .tt-auth__mobile-toggle {
    display: none;
}

/* Raise the header's stacking context only while its authentication card is open. */
.site-header:has(.header-links [data-tt-auth-card]:not([hidden])) {
    z-index: 10000;
}

.header-links .tt-auth .tt-auth__card {
    position: fixed;
    top: 50%;
    left: 50%;
    z-index: 1050;
    transform: translate(-50%, -50%);
    width: min(30rem, calc(100% - 2rem));
    max-height: calc(100vh - 2rem);
    max-height: calc(100dvh - 2rem);
    margin: 0;
    overflow: auto;
    overscroll-behavior: contain;
}

@media (max-width: 900px) {
    .header-links .tt-auth .tt-auth__mobile-toggle:not([hidden]) {
        display: inline-flex;
    }

    .header-links .tt-auth__mobile-toggle:not([hidden]) + .tt-auth__actions {
        margin-top: .45rem;
    }

    .header-links .tt-auth__mobile-toggle:not([hidden])[aria-expanded="false"] + .tt-auth__actions {
        display: none;
    }
}

@media (max-width: 600px) {
    .site-header .header-inner:has(> .header-links .tt-auth) {
        display: flex;
        align-items: center;
        flex-wrap: wrap;
        justify-content: space-between;
        gap: .375rem;
    }

    .header-inner:has(> .header-links .tt-auth) > .site-brand {
        flex: 1 1 0;
        min-width: 3rem;
        align-items: flex-start;
        margin-inline: 0;
        text-align: start;
    }

    .header-inner:has(> .header-links .tt-auth) > .site-brand .brand-logo {
        width: min(var(--logo-width, 145px), 145px, 100%);
        height: auto;
    }

    .header-inner:has(> .header-links .tt-auth) > .header-spacer {
        display: none;
    }

    .site-header .header-inner > .header-links:has(.tt-auth) {
        position: relative;
        flex: 0 1 auto;
        width: auto;
        max-width: 100%;
        margin-inline-start: auto;
        justify-content: flex-end;
        gap: .375rem;
    }

    .header-links:has(.tt-auth) > .tku-header-menu {
        width: auto;
    }

    .header-links:has(.tt-auth) .tku-header-menu > ul {
        gap: .375rem;
    }

    .header-links:has(.tt-auth) .tku-header-menu > ul > li > a,
    .header-links .tt-auth .tt-auth__mobile-toggle {
        padding-inline: .5rem;
        font-size: .8125rem;
    }

    .header-links:has(.tt-auth__mobile-toggle[aria-expanded="true"]) {
        z-index: 50;
    }

    .header-links .tt-auth__mobile-toggle:not([hidden])[aria-expanded="true"] + .tt-auth__actions {
        position: absolute;
        inset-block-start: calc(100% + .375rem);
        inset-inline-end: 0;
        width: max-content;
        max-width: calc(100vw - 2rem);
        margin: 0;
        padding: .5rem;
        justify-content: center;
        border: 1px solid var(--tt-auth-line);
        border-radius: .55rem;
        background: var(--tt-auth-surface);
        box-shadow: 0 .4rem 1rem rgba(20, 40, 62, .15);
    }

    .site-header:has(.header-links .tt-auth__mobile-toggle[aria-expanded="true"]) {
        z-index: 10000;
    }
}

#member-profile .tt-auth__security-settings {
    margin-block-start: 1rem;
}

#member-profile .tt-auth__security-settings > summary {
    width: fit-content;
    padding-block: .5rem;
    font-weight: 600;
    cursor: pointer;
}

#member-profile .tt-auth__security-settings[open] > fieldset {
    margin-block-start: .65rem;
}

main.main-content:has(> :is(.com-users-reset, .com-users-remind)) {
    width: 100%;
    max-width: 36rem;
    margin-inline: auto;
}

main :is(.com-users-reset, .com-users-remind) :is(form, fieldset, .controls) {
    min-inline-size: 0;
}

main :is(.com-users-reset, .com-users-remind) fieldset {
    margin-inline: 0;
    padding-inline: 0;
    border: 0;
}

main :is(.com-users-reset, .com-users-remind) :is(legend, p) {
    max-width: 100%;
    overflow-wrap: anywhere;
}

main :is(.com-users-reset, .com-users-remind) .controls > input[type="email"] {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    min-height: 44px;
    font-size: max(1em, 16px);
}

@media (max-width: 600px) {
    main.main-content:has(> :is(.com-users-reset, .com-users-remind)) {
        min-width: 0;
        padding-inline: clamp(.75rem, 4vw, 1.25rem);
    }

    main :is(.com-users-reset, .com-users-remind) button[type="submit"] {
        width: 100%;
        min-height: 44px;
    }
}

.tt-auth-registration-notice {
    box-sizing: border-box;
    width: 100%;
    max-width: 36rem;
    margin: .5rem auto 1rem;
    padding: clamp(1rem, 4vw, 1.5rem);
    border: 1px solid #d4dfec;
    border-inline-start: .25rem solid #174589;
    border-radius: .65rem;
    background: #f1f6fd;
    color: #14283e;
    overflow-wrap: anywhere;
}

.tt-auth-registration-notice h2 {
    margin: 0 0 .6rem;
    color: inherit;
    font-size: clamp(1.2rem, 4vw, 1.5rem);
}

.tt-auth-registration-notice p {
    margin: 0 0 .75rem;
}

.tt-auth-registration-notice a {
    color: #174589;
    font-weight: 650;
    text-decoration: underline;
}

.tt-auth .tt-auth__card--register {
    --tt-auth-register-padding: clamp(1rem, 4vw, 1.6rem);
    width: min(100%, 35rem);
    padding: 0;
    border-radius: 1.1rem;
    overflow-wrap: anywhere;
}

.header-links .tt-auth .tt-auth__card--register {
    display: flex;
    flex-direction: column;
    width: min(35rem, calc(100% - 1.5rem));
    overflow: hidden;
    box-shadow: 0 .8rem 2.4rem rgba(15, 30, 50, .24), 0 0 0 100vmax rgba(13, 26, 42, .42);
}

.tt-auth .tt-auth__card--register .tt-auth__header {
    flex: 0 0 auto;
    margin: 0;
    padding: .8rem var(--tt-auth-register-padding);
    border-block-end: 1px solid var(--tt-auth-line);
    background: #f0f5fc;
}

.tt-auth .tt-auth__card--register .tt-auth__header h2 {
    font-size: clamp(1.3rem, 4.5vw, 1.6rem);
    font-weight: 750;
}

.tt-auth .tt-auth__card--register .tt-auth__form {
    gap: 0;
    min-block-size: 0;
    overflow-y: auto;
    overscroll-behavior: contain;
}

.tt-auth .tt-auth__registration-fields {
    padding: var(--tt-auth-register-padding);
}

.tt-auth .tt-auth__registration-fields-group {
    display: grid;
    gap: .85rem 1rem;
    min-inline-size: 0;
}

.tt-auth .tt-auth__registration-fields-group + .tt-auth__registration-fields-group:not(:empty) {
    margin-block-start: .85rem;
}

.tt-auth .tt-auth__registration-fields-group > * {
    min-inline-size: 0;
}

.tt-auth .tt-auth__registration-fields :is(fieldset, .input-group) {
    min-inline-size: 0;
    max-inline-size: 100%;
}

.tt-auth .tt-auth__registration-fields input:is([type="text"], [type="email"], [type="password"]) {
    min-height: 2.875rem;
    border-radius: .65rem;
}

.tt-auth .tt-auth__registration-fields .input-password-toggle {
    border-radius: .65rem;
}

.tt-auth .tt-auth__registration-fields :is(.form-text, .form-control-feedback, .invalid-feedback) {
    line-height: 1.4;
}

.tt-auth .tt-auth__registration-actions {
    display: grid;
    gap: .35rem;
    justify-items: center;
    padding: .85rem var(--tt-auth-register-padding) 1rem;
    border-block-start: 1px solid var(--tt-auth-line);
    background: #f7f9fc;
}

.tt-auth .tt-auth__registration-actions a {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    color: var(--tt-auth-accent);
    font-weight: 650;
    text-underline-offset: .18em;
}

@media (min-width: 640px) {
    .tt-auth .tt-auth__registration-fields-group {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .tt-auth .tt-auth__registration-fields-group > * {
        grid-column: 1 / -1;
    }

    .tt-auth .tt-auth__registration-fields-group > .control-group:has(> .controls > :is(#jform_name, #jform_username)) {
        grid-column: auto;
    }
}

.com-users-profile__edit:has(#member-profile),
.com-users-profile-edit:has(#member-profile) {
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
}

#member-profile {
    --tt-auth-ink: #14283e;
    --tt-auth-accent: #174589;
    --tt-auth-line: #d4dfec;
    --tt-auth-profile-padding: clamp(1rem, 3vw, 1.6rem);
    box-sizing: border-box;
    max-width: 48rem;
    min-inline-size: 0;
    margin-inline: auto;
    padding: var(--tt-auth-profile-padding);
    border: 1px solid var(--tt-auth-line);
    border-radius: 1.1rem;
    background: #fff;
    color: var(--tt-auth-ink);
    box-shadow: 0 .4rem 1.4rem rgba(20, 40, 62, .08);
    overflow-wrap: anywhere;
}

#member-profile > fieldset {
    min-inline-size: 0;
    margin: 0 0 1.25rem;
    padding: 0 0 .75rem;
    border: 0;
    border-block-end: 1px solid var(--tt-auth-line);
}

#member-profile > fieldset > legend {
    float: none;
    width: auto;
    margin-block-end: .8rem;
    color: var(--tt-auth-ink);
    font-size: 1.13rem;
    font-weight: 750;
}

#member-profile > fieldset :is(.control-label, .controls, .password-group) {
    min-inline-size: 0;
    max-inline-size: 100%;
}

#member-profile > fieldset .control-label label {
    font-weight: 650;
}

#member-profile > fieldset :is(input.form-control, select, textarea) {
    box-sizing: border-box;
    min-inline-size: 0;
    inline-size: 100%;
    min-block-size: 2.875rem;
    border-radius: .65rem;
    font-size: max(1em, 16px);
}

#member-profile .password-group > .input-group {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: .375rem;
    min-inline-size: 0;
}

#member-profile .com-users-profile__edit-submit :is(button, a.btn) {
    box-sizing: border-box;
    min-block-size: 2.75rem;
    padding: .55rem 1rem;
    border-radius: .65rem;
}

#member-profile .tt-auth__security-settings {
    padding: .35rem .85rem;
    border: 1px solid var(--tt-auth-line);
    border-radius: .7rem;
    background: #f5f8fc;
}

#member-profile .tt-auth__security-settings > summary {
    color: var(--tt-auth-accent);
}

#member-profile .tt-auth__security-settings[open] > fieldset {
    min-inline-size: 0;
}

@media (max-width: 540px) {
    #member-profile .com-users-profile__edit-submit .controls {
        display: flex;
        flex-wrap: wrap;
        gap: .5rem;
        margin-inline: 0;
    }

    #member-profile .com-users-profile__edit-submit :is(button, a.btn) {
        flex: 1 0 auto;
        text-align: center;
    }
}

.com-users-profile:not(:has(#member-profile)) {
    --tt-auth-profile-ink: #14283e;
    --tt-auth-profile-line: #d4dfec;
    --tt-auth-profile-accent: #174589;
    box-sizing: border-box;
    width: 100%;
    max-width: 48rem;
    margin-inline: auto;
    color: var(--tt-auth-profile-ink);
    overflow-wrap: anywhere;
}

.com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) {
    float: none !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: .5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

.com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) > li {
    list-style: none;
    margin: 0;
    padding: 0;
}

.com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 44px;
    padding: .6rem 1rem;
    border: 1px solid var(--tt-auth-profile-accent);
    border-radius: .65rem;
    background: var(--tt-auth-profile-accent);
    color: #fff;
    font-weight: 650;
    text-decoration: none;
}

.com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) a:hover {
    background: #12366a;
}

.com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) a:focus-visible {
    outline: 2px solid var(--tt-auth-profile-accent);
    outline-offset: 3px;
}

.com-users-profile:not(:has(#member-profile)) > fieldset {
    box-sizing: border-box;
    min-inline-size: 0;
    margin: 0;
    padding: .8rem clamp(.85rem, 4vw, 1.5rem) 1.05rem;
    border: 1px solid var(--tt-auth-profile-line);
    border-radius: 1rem;
    background: #fff;
    box-shadow: 0 .3rem 1rem rgba(20, 40, 62, .06);
}

.com-users-profile:not(:has(#member-profile)) > fieldset + fieldset {
    margin-block-start: 1.15rem;
}

.com-users-profile:not(:has(#member-profile)) > fieldset > legend {
    float: none;
    width: auto;
    max-inline-size: 100%;
    margin: 0;
    padding-inline: .55rem;
    color: var(--tt-auth-profile-ink);
    font-size: 1.15rem;
    font-weight: 750;
}

.com-users-profile:not(:has(#member-profile)) > fieldset > dl {
    display: grid;
    grid-template-columns: minmax(0, 12rem) minmax(0, 1fr);
    align-items: start;
    margin: 0;
}

.com-users-profile:not(:has(#member-profile)) > fieldset > dl > :is(dt, dd) {
    float: none;
    min-inline-size: 0;
    inline-size: auto;
    margin: 0;
    padding-block: .58rem;
    border-block-end: 1px solid #edf2f7;
    text-align: start;
}

.com-users-profile:not(:has(#member-profile)) > fieldset > dl > dt {
    padding-inline-end: .75rem;
    color: #40546c;
    font-weight: 650;
}

.com-users-profile:not(:has(#member-profile)) > fieldset > dl > :is(dt:last-of-type, dd:last-of-type) {
    border-block-end: 0;
}

@media (max-width: 560px) {
    .com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) > li,
    .com-users-profile:not(:has(#member-profile)) > :is(ul.com-users-profile__edit, ul:has(> li > a.btn)) a {
        box-sizing: border-box;
        width: 100%;
    }

    .com-users-profile:not(:has(#member-profile)) > fieldset > dl {
        grid-template-columns: minmax(0, 1fr);
    }

    .com-users-profile:not(:has(#member-profile)) > fieldset > dl > dt {
        padding-block: .55rem .12rem;
        border-block-end: 0;
    }

    .com-users-profile:not(:has(#member-profile)) > fieldset > dl > dd {
        padding-block: 0 .55rem;
    }
}

.tt-auth__account {
    position: relative;
    min-width: 0;
    max-width: 100%;
}

.tt-auth .tt-auth__account-trigger {
    display: flex;
    align-items: center;
    gap: .5rem;
    min-height: 44px;
    padding: .3rem .6rem .3rem .35rem;
    border: 1px solid var(--tt-auth-line);
    border-radius: .7rem;
    background: var(--tt-auth-surface);
    color: var(--tt-auth-ink);
    font-weight: 650;
    list-style: none;
    cursor: pointer;
}

.tt-auth__account-trigger::-webkit-details-marker { display: none; }
.tt-auth__account-trigger::marker { content: ''; }

.tt-auth__account-trigger:focus-visible {
    outline: 2px solid var(--tt-auth-accent);
    outline-offset: 2px;
}

.tt-auth__account[open] .tt-auth__account-trigger,
.tt-auth__account-trigger:hover {
    border-color: #a7bad0;
    background: #f3f7fb;
}

.tt-auth__avatar {
    position: relative;
    display: grid;
    flex: 0 0 32px;
    place-items: center;
    width: 32px;
    height: 32px;
    overflow: hidden;
    border-radius: 50%;
    background: #e5eefb;
    color: var(--tt-auth-accent);
    font-size: .73rem;
    line-height: 1;
}

.tt-auth__avatar img {
    position: absolute;
    inset: 0;
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tt-auth__avatar img[hidden] { display: none; }

.tt-auth__account-name {
    min-width: 0;
    max-width: min(30vw, 12rem);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: .875rem;
}

.tt-auth__account-chevron {
    flex: 0 0 .42rem;
    height: .42rem;
    margin-inline-end: .15rem;
    border-inline-end: 2px solid currentColor;
    border-block-end: 2px solid currentColor;
    transform: translateY(-2px) rotate(45deg);
}

.tt-auth__account[open] .tt-auth__account-chevron {
    transform: translateY(2px) rotate(225deg);
}

.tt-auth__account-panel {
    position: absolute;
    z-index: 1060;
    inset-block-start: calc(100% + .4rem);
    inset-inline-end: 0;
    box-sizing: border-box;
    width: min(13rem, calc(100vw - 2rem));
    padding: .35rem;
    border: 1px solid var(--tt-auth-line);
    border-radius: .75rem;
    background: var(--tt-auth-surface);
    box-shadow: 0 .6rem 1.5rem rgba(20, 40, 62, .16);
}

.tt-auth .tt-auth__account-panel :is(a, button) {
    box-sizing: border-box;
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 44px;
    padding: .5rem .65rem;
    border: 0;
    border-radius: .45rem;
    background: transparent;
    color: var(--tt-auth-ink);
    font: inherit;
    text-align: start;
    text-decoration: none;
    cursor: pointer;
}

.tt-auth .tt-auth__account-panel :is(a, button):hover {
    background: #f1f5f9;
    color: var(--tt-auth-accent);
}

.site-header:has(.header-links .tt-auth__account[open]) { z-index: 10000; }

/* The main navigation can sit inside the same header stacking context. */
.site-header .header-inner:has(.tt-auth__account[open]),
.site-header .header-links:has(.tt-auth__account[open]) {
    position: relative;
    z-index: 10000;
}
