:root {
    --container: 1200px
}

*,*:before,*:after {
    box-sizing: border-box
}

html {
    scroll-behavior: smooth
}

body {
    margin: 0;
    background: var(--canvas);
    color: var(--ink);
    font-family: var(--font-ui);
    font-size: 16px;
    line-height: 1.8;
    text-rendering: optimizeLegibility
}

body.menu-open {
    overflow: hidden
}

img {
    display: block;
    max-width: 100%
}

a {
    color: inherit;
    text-decoration: none
}

button,input,select,textarea {
    font: inherit;
    color: inherit
}

button {
    cursor: pointer
}

h1,h2,h3,p {
    margin-top: 0
}

h1,h2,h3,.brand-lockup {
    font-family: var(--font-display)
}

h1 {
    font-size: clamp(2.25rem,5vw,3.5rem);
    line-height: 1.2;
    letter-spacing: 0
}

h2 {
    font-size: clamp(1.5rem,3vw,2rem);
    line-height: 1.3;
    letter-spacing: 0
}

h3 {
    font-size: 1.25rem;
    line-height: 1.45
}

:focus-visible {
    outline: 3px solid var(--color-focus-ring);
    outline-offset: 3px
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0
}

.skip-link {
    position: fixed;
    top: 12px;
    right: 12px;
    z-index: 1001;
    transform: translateY(-150%);
    background: var(--ink);
    color: #fff;
    padding: 10px 16px;
    border-radius: 10px
}

.skip-link:focus {
    transform: none
}

.guest-container {
    width: min(calc(100% - 40px),var(--container));
    margin-inline:auto}

#loading {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    background: var(--canvas);
    color: var(--muted);
    transition: opacity .2s ease,visibility .2s ease
}

#loading img {
    width: 52px;
    height: 52px;
    animation: brand-pulse 1.2s ease-in-out infinite alternate
}

#loading.is-hidden {
    opacity: 0;
    visibility: hidden;
    pointer-events: none
}

@keyframes brand-pulse {
    to {
        transform: scale(.9);
        opacity: .55
    }
}

.guest-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(247,241,237,.92);
    border-bottom: 1px solid rgba(220,205,211,.8);
    backdrop-filter: blur(18px)
}

.guest-header__inner {
    height: 76px;
    display: flex;
    align-items: center;
    gap: 28px
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 11px;
    font-weight: 800;
    font-size: 1.35rem;
    line-height: 1
}

.brand-lockup img {
    flex: none
}

.brand-lockup img.brand-mark {
    width: 36px;
    height: 36px
}

.brand-lockup .brand-name {
    font: 700 1.35rem/1 var(--font-display);
    letter-spacing: -.02em
}

.brand-lockup img.brand-wordmark {
    width: 116px;
    height: 28px
}

.brand-lockup--light img {
    filter: brightness(0) invert(1)
}

.brand-lockup--light img.brand-wordmark {
    width: 128px;
    height: 31px
}

.guest-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-inline-start:auto}

.guest-nav a {
    font-size: .92rem;
    color: #51494d;
    position: relative
}

.guest-nav a:after {
    content: "";
    position: absolute;
    right: 0;
    left: 100%;
    bottom: -8px;
    height: 2px;
    background: var(--brand);
    transition: left .2s ease
}

.guest-nav a:hover:after {
    left: 0
}

.guest-menu-button {
    display: none;
    border: 0;
    background: transparent;
    width: 48px;
    height: 48px;
    padding: 13px;
    touch-action: manipulation
}

.guest-menu-button span:not(.sr-only) {
    display: block;
    height: 2px;
    background: var(--ink);
    margin: 5px 0;
    border-radius: 2px
}

.button,.btn-new {
    min-height: 48px;
    border: 1px solid transparent;
    border-radius: 14px;
    padding: 11px 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    background: var(--brand);
    color: #fff;
    font-weight: 600;
    transition: transform .18s ease,background .18s ease,box-shadow .18s ease;
    touch-action: manipulation
}

.button:hover,.btn-new:hover {
    background: var(--brand-dark);
    transform: translateY(-1px);
    box-shadow: 0 8px 24px rgba(142,23,79,.22)
}

.button--quiet {
    background: transparent;
    color: var(--brand);
    border-color: var(--border)
}

.button--quiet:hover {
    color: #fff
}

.button--light {
    background: #fff;
    color: var(--brand)
}

.button--light:hover {
    background: var(--tint);
    color: var(--brand-dark)
}

.button--full {
    width: 100%
}

.button:disabled,.btn-new:disabled {
    background: var(--color-disabled-surface);
    color: var(--color-disabled-text);
    opacity: 1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--brand);
    font-size: .9rem;
    margin-bottom: 16px
}

.eyebrow:before {
    content: "";
    width: 28px;
    height: 2px;
    border-radius: 2px;
    background: var(--accent)
}

.section-heading {
    max-width: 670px;
    margin-bottom: 34px
}

.section-heading p {
    color: var(--muted);
    margin: 10px 0 0
}

.soft-section {
    padding: 96px 0
}

.surface-section {
    padding: 96px 0;
    background: var(--surface)
}

.pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 99px;
    padding: 7px 12px;
    background: var(--tint);
    color: var(--brand-dark);
    font-size: .82rem;
    font-weight: 600
}

.icon-box {
    display: grid;
    place-items: center;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    background: var(--tint);
    color: var(--brand);
    flex: none
}

.icon-box svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round
}

.ui-icon {
    display: inline-block;
    width: 24px;
    height: 24px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vertical-align: middle;
    flex: none
}

.guest-card {
    background: var(--surface);
    border: 1px solid rgba(220,205,211,.72);
    border-radius: var(--radius-md);
    box-shadow: 0 8px 30px rgba(69,25,43,.05)
}

#Toast {
    position: fixed;
    z-index: 10000;
    top: 22px;
    left: 50%;
    width: min(calc(100% - 28px),520px);
    transform: translate(-50%,-16px);
    display: none;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    border-radius: 12px;
    background: #2c2026;
    color: #fff;
    box-shadow: var(--shadow);
    opacity: 0;
    transition: opacity .18s ease,transform .18s ease
}

#Toast.show {
    display: flex;
    opacity: 1;
    transform: translate(-50%,0)
}

#Toast .progress {
    position: absolute;
    right: 0;
    bottom: 0;
    height: 3px;
    border-radius: 0 0 12px 12px;
    background: var(--accent)
}

#Toast .body {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%
}

#Toast .text {
    font-size: .875rem;
    line-height: 1.8
}

#Toast .close {
    width: 44px;
    height: 44px;
    flex: none;
    display: grid;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #fff
}

.guest-footer {
    background: #2c2026;
    color: #f7f1ed;
    padding: 72px 0 28px
}

.guest-footer__grid {
    display: grid;
    grid-template-columns: 2fr repeat(3,1fr);
    gap: 54px
}

.brand-lockup--light {
    color: #fff;
    margin-bottom: 18px
}

.guest-footer__brand p {
    color: #cdbfc5;
    max-width: 360px
}

.guest-footer h2 {
    font-size: 1rem;
    color: #fff;
    margin-bottom: 16px
}

.guest-footer__grid>div:not(:first-child) {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 9px
}

.guest-footer__grid a {
    color: #cdbfc5;
    font-size: .9rem
}

.guest-footer__grid a:hover {
    color: #fff
}

.guest-footer__bottom {
    display: flex;
    justify-content: space-between;
    color: #a99ba1;
    font-size: .82rem;
    border-top: 1px solid rgba(255,255,255,.1);
    margin-top: 50px;
    padding-top: 24px
}

.legacy-action-slot:empty {
    display: none!important
}

.page-shell {
    padding: 34px 0 88px
}

.context-bar {
    background: var(--surface);
    border-bottom: 1px solid var(--border)
}

.context-bar__inner {
    min-height: 64px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.context-bar__back {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 44px;
    color: var(--muted);
    font-size: .9rem
}

.context-bar__title {
    font-family: Peyda;
    font-weight: 600;
}

@media(max-width: 820px) {
    .guest-container {
        width:min(calc(100% - 28px),var(--container))
    }

    .guest-header__inner {
        height: 66px
    }

    .guest-menu-button {
        display: block;
        margin-inline-start:auto}

    .guest-nav {
        position: fixed;
        inset: 66px 0 auto 0;
        background: var(--canvas);
        padding: 24px 20px 32px;
        border-bottom: 1px solid var(--border);
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        transform: translateY(-130%);
        opacity: 0;
        visibility: hidden;
        transition: .22s ease;
        box-shadow: var(--shadow)
    }

    .guest-nav.is-open {
        transform: none;
        opacity: 1;
        visibility: visible
    }

    .guest-nav a {
        display: flex;
        align-items: center;
        min-height: 48px;
        padding: 10px 5px;
        border-bottom: 1px solid var(--border)
    }

    .guest-nav a:after {
        display: none
    }

    .soft-section,.surface-section {
        padding: 68px 0
    }

    .guest-footer__grid {
        grid-template-columns: 1fr 1fr;
        gap: 36px 24px
    }

    .guest-footer__brand {
        grid-column: 1/-1
    }
}

@media(max-width: 520px) {
    body {
        font-size:16px
    }

    h1 {
        font-size: 2.25rem
    }

    .guest-footer__grid {
        grid-template-columns: 1fr 1fr
    }

    .guest-footer__bottom {
        flex-direction: column;
        gap: 6px
    }
}

@media(prefers-reduced-motion:reduce) {
    *,*:before,*:after {
        scroll-behavior: auto!important;
        animation-duration: .01ms!important;
        animation-iteration-count: 1!important;
        transition-duration: .01ms!important
    }
}

/* Account-aware guest header */
.guest-header {
    border-bottom-color: rgba(214,199,205,.78);
    background: rgba(250,247,244,.9);
    box-shadow: 0 7px 28px rgba(52,30,40,.045);
    backdrop-filter: saturate(150%) blur(22px);
    -webkit-backdrop-filter: saturate(150%) blur(22px)
}

.guest-header__inner {
    height: 82px;
    gap: 18px
}

.guest-nav {
    gap: 3px;
    margin-inline-start:auto;padding: 4px;
    border: 1px solid rgba(220,205,211,.72);
    border-radius: 15px;
    background: rgba(255,255,255,.66)
}

.guest-nav a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 6px 13px;
    border-radius: 11px;
    color: #51494d;
    font-size: .82rem;
    font-weight: 650;
    transition: color .18s ease,background .18s ease
}

.guest-nav a:after {
    display: none
}

.guest-nav a:hover,.guest-nav a:focus-visible {
    color: var(--brand);
    background: var(--tint)
}

.guest-header__actions {
    display: flex;
    align-items: center;
    gap: 8px
}

.guest-header__support {
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 10px;
    border-radius: 12px;
    color: var(--muted);
    font-size: .74rem;
    font-weight: 650;
    transition: color .18s ease,background .18s ease
}

.guest-header__support:hover {
    color: var(--brand);
    background: var(--tint)
}

.guest-header__support .ui-icon {
    width: 19px;
    height: 19px
}

.guest-header__login {
    min-height: 50px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 5px 12px 5px 15px;
    border: 1px solid #d6c1ca;
    border-radius: 15px;
    color: var(--brand);
    background: #fff;
    font-size: .76rem;
    transition: border-color .18s ease,background .18s ease,box-shadow .18s ease
}

.guest-header__login:hover {
    border-color: #bd8fa3;
    background: var(--tint);
    box-shadow: 0 8px 22px rgba(76,33,51,.08)
}

.guest-header__login>span {
    width: 36px;
    height: 36px;
    display: grid;
    place-items: center;
    border-radius: 11px;
    color: #fff;
    background: var(--brand)
}

.guest-header__login .ui-icon {
    width: 19px;
    height: 19px
}

.guest-header__login b {
    white-space: nowrap
}

.guest-user-menu {
    position: relative
}

.guest-user-menu summary {
    min-height: 52px;
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 5px 8px 5px 10px;
    border: 1px solid #d9c9cf;
    border-radius: 15px;
    background: #fff;
    cursor: pointer;
    list-style: none;
    transition: border-color .18s ease,box-shadow .18s ease
}

.guest-user-menu summary::-webkit-details-marker {
    display: none
}

.guest-user-menu summary:hover,.guest-user-menu[open] summary {
    border-color: #bd8fa3;
    box-shadow: 0 8px 22px rgba(76,33,51,.08)
}

.guest-user-menu summary>img,.guest-user-menu__identity>img {
    object-fit: cover;
    border: 1px solid #eadde2;
    border-radius: 12px;
    background: var(--soft)
}

.guest-user-menu summary>img {
    width: 38px;
    height: 38px
}

.guest-user-menu summary>span {
    max-width: 110px;
    min-width: 0
}

.guest-user-menu summary small,.guest-user-menu summary strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
}

.guest-user-menu summary small {
    color: var(--muted);
    font-size: .55rem;
    font-weight: 500
}

.guest-user-menu summary strong {
    font-size: .72rem
}

.guest-user-menu__chevron {
    width: 16px;
    height: 16px;
    color: var(--muted);
    transition: transform .18s ease
}

.guest-user-menu[open] .guest-user-menu__chevron {
    transform: rotate(180deg)
}

.guest-user-menu__panel {
    position: absolute;
    z-index: 170;
    top: calc(100% + 11px);
    left: 0;
    width: 270px;
    padding: 9px;
    border: 1px solid #e0d1d7;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 24px 64px rgba(42,23,31,.17)
}

.guest-user-menu__identity {
    display: flex;
    align-items: center;
    gap: 11px;
    margin-bottom: 7px;
    padding: 9px 8px 13px;
    border-bottom: 1px solid var(--border)
}

.guest-user-menu__identity>img {
    width: 46px;
    height: 46px
}

.guest-user-menu__identity strong,.guest-user-menu__identity small {
    display: block
}

.guest-user-menu__identity strong {
    font-size: .82rem
}

.guest-user-menu__identity small {
    direction: ltr;
    margin-top: 2px;
    color: var(--muted);
    font-size: .68rem;
    text-align: right
}

.guest-user-menu__panel>a {
    min-height: 46px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 11px;
    color: #4f474b;
    font-size: .76rem;
    font-weight: 650;
    transition: color .18s ease,background .18s ease
}

.guest-user-menu__panel>a:hover,.guest-user-menu__panel>a:focus-visible {
    color: var(--brand);
    background: var(--tint)
}

.guest-user-menu__panel>a .ui-icon {
    width: 19px;
    height: 19px
}

.guest-user-menu__panel>a.guest-user-menu__logout {
    margin-top: 5px;
    border-top: 1px solid var(--border);
    border-radius: 0 0 11px 11px;
    color: var(--color-danger-text)
}

@media(max-width: 1120px) {
    .guest-nav a {
        padding-inline:9px
    }

    .guest-header__support span {
        display: none
    }

    .guest-header__support {
        width: 44px;
        justify-content: center;
        padding: 0
    }
}

@media(max-width: 820px) {
    .guest-header__inner {
        height:70px;
        gap: 8px
    }

    .guest-nav {
        inset: 70px 0 auto;
        padding: 16px 14px 24px;
        border: 0;
        border-bottom: 1px solid var(--border);
        border-radius: 0;
        background: var(--canvas)
    }

    .guest-nav a {
        min-height: 50px;
        padding-inline:12px;border-bottom: 1px solid var(--border);
        border-radius: 0;
        font-size: .88rem
    }

    .guest-header__actions {
        margin-inline-start:auto}

    .guest-header__support {
        display: none
    }

    .guest-menu-button {
        margin-inline-start:0}

    .guest-header__login {
        width: 46px;
        min-height: 46px;
        padding: 4px;
        justify-content: center;
        border-radius: 14px
    }

    .guest-header__login>b {
        display: none
    }

    .guest-header__login>span {
        width: 36px;
        height: 36px
    }

    .guest-user-menu summary {
        width: 48px;
        min-height: 48px;
        padding: 4px;
        justify-content: center;
        border-radius: 14px
    }

    .guest-user-menu summary>span,.guest-user-menu__chevron {
        display: none
    }

    .guest-user-menu summary>img {
        width: 38px;
        height: 38px
    }

    .guest-user-menu__panel {
        top: calc(100% + 10px);
        left: 0;
        width: min(280px,calc(100vw - 28px))
    }
}

@media(max-width: 420px) {
    .brand-lockup .brand-name {
        font-size:1.12rem
    }

    .brand-lockup img.brand-mark {
        width: 32px;
        height: 32px
    }

    .guest-header__inner {
        gap: 5px
    }

    .guest-menu-button {
        width: 44px
    }

    .guest-header__actions {
        gap: 4px
    }
}

.mobile-guest-nav {
    display: none;
}

@media(max-width: 650px) {
    body.guest-home,
    body.guest-search-results {
        padding-bottom: calc(72px + env(safe-area-inset-bottom));
    }

    body.guest-home .guest-header,
    body.guest-search-results .guest-header {
        background: rgba(255, 255, 255, .96);
        box-shadow: 0 5px 20px rgba(52, 30, 40, .06);
    }

    body.guest-home .guest-header__inner,
    body.guest-search-results .guest-header__inner {
        height: 66px;
    }

    body.guest-home .guest-menu-button,
    body.guest-search-results .guest-menu-button {
        display: none;
    }

    body.guest-home .guest-header__actions,
    body.guest-search-results .guest-header__actions {
        margin-inline-start: auto;
    }

    body.guest-home .guest-footer,
    body.guest-search-results .guest-footer {
        padding-bottom: calc(96px + env(safe-area-inset-bottom));
    }

    .mobile-guest-nav {
        position: fixed;
        z-index: 900;
        right: 0;
        bottom: 0;
        left: 0;
        min-height: calc(68px + env(safe-area-inset-bottom));
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        align-items: start;
        padding: 6px 8px calc(5px + env(safe-area-inset-bottom));
        border-top: 1px solid rgba(220, 205, 211, .88);
        background: rgba(255, 255, 255, .97);
        box-shadow: 0 -12px 34px rgba(50, 27, 37, .09);
        backdrop-filter: blur(18px);
        -webkit-backdrop-filter: blur(18px);
    }

    .mobile-guest-nav a,
    .mobile-guest-nav button {
        position: relative;
        min-width: 0;
        min-height: 56px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 2px;
        padding: 5px 2px 3px;
        border: 0;
        border-radius: 13px;
        background: transparent;
        color: var(--muted);
        font: 600 .64rem/1.4 var(--font-ui);
        flex-direction: column;
        transition: color .18s ease, background-color .18s ease;
    }

    .mobile-guest-nav .ui-icon {
        width: 22px;
        height: 22px;
        stroke-width: 2;
    }

    .mobile-guest-nav [aria-current="page"] {
        color: var(--brand);
        background: var(--tint);
    }

    .mobile-guest-nav [aria-current="page"]::before {
        position: absolute;
        top: -6px;
        right: 24%;
        left: 24%;
        height: 3px;
        border-radius: 0 0 4px 4px;
        background: var(--brand);
        content: "";
    }

    .mobile-guest-nav a:focus-visible,
    .mobile-guest-nav button:focus-visible {
        outline: 3px solid var(--color-focus-ring);
        outline-offset: -2px;
    }
}
