/* CHECKPOINT POST-FAZA 8 — Client access landing page. */
.page-client-access {
    background: #000000;
    color: var(--color-text-on-dark);
}

.page-client-access .site-header {
    background: transparent;
    border-bottom-color: transparent;
}

.page-client-access #main-content {
    min-height: calc(100dvh - var(--header-height));
}

.client-access-page {
    position: relative;
    min-height: calc(100dvh - var(--header-height));
    overflow: hidden;
    background:
        radial-gradient(circle at 82% 14%, rgba(196, 143, 86, 0.13), transparent 28rem),
        radial-gradient(circle at 12% 88%, rgba(196, 143, 86, 0.07), transparent 24rem),
        #000000;
}

.client-access-page__decor {
    position: absolute;
    pointer-events: none;
    border: 1px solid rgba(196, 143, 86, 0.09);
    border-radius: 50%;
}

.client-access-page__decor--top {
    width: 42rem;
    height: 42rem;
    top: -21rem;
    right: -20rem;
}

.client-access-page__decor--bottom {
    width: 28rem;
    height: 28rem;
    bottom: -15rem;
    left: -13rem;
}

.client-access-page__inner {
    position: relative;
    z-index: 1;
    display: grid;
    width: min(var(--layout-container), calc(100% - (2 * var(--layout-gutter))));
    min-height: calc(100dvh - var(--header-height));
    margin: 0 auto;
    padding: clamp(3.5rem, 7vw, 6.5rem) 0;
    grid-template-columns: minmax(0, 1.05fr) minmax(23.75rem, 0.78fr);
    align-items: center;
    gap: clamp(2.5rem, 7vw, 6.875rem);
}

.client-access-intro {
    max-width: 41.25rem;
}

.client-access-eyebrow,
.client-access-card__eyebrow {
    margin: 0 0 1.25rem;
    color: var(--color-accent);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.client-access-intro h1 {
    max-width: 45rem;
    color: #ffffff;
    font-size: clamp(3.15rem, 6.3vw, 6rem);
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.055em;
}

.client-access-intro h1 span {
    color: var(--color-accent);
}

.client-access-lead {
    max-width: 36rem;
    margin: 1.75rem 0 0;
    color: rgba(255, 255, 255, 0.63);
    font-size: clamp(1rem, 1.5vw, 1.15rem);
    line-height: 1.82;
}

.client-access-benefits {
    display: grid;
    max-width: 40.625rem;
    margin: 2.875rem 0 0;
    padding: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    list-style: none;
}

.client-access-benefits li {
    min-height: 7.25rem;
    padding: 1.2rem 1.1rem 1.05rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.025);
}

.client-access-benefit__icon {
    display: block;
    width: 1.625rem;
    height: 1.625rem;
    margin-bottom: 1rem;
    color: var(--color-accent);
}

.client-access-benefit__icon svg,
.client-access-lock svg {
    display: block;
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.client-access-benefits strong {
    display: block;
    margin-bottom: 0.375rem;
    color: #ffffff;
    font-size: 0.82rem;
}

.client-access-benefits li > span:last-child {
    display: block;
    color: rgba(255, 255, 255, 0.48);
    font-size: 0.72rem;
    line-height: 1.5;
}

.client-access-card {
    position: relative;
    width: 100%;
    max-width: 29.375rem;
    justify-self: end;
    overflow: hidden;
    padding: 2.375rem;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 1.375rem;
    background: linear-gradient(145deg, rgba(24, 24, 24, 0.97), rgba(10, 10, 10, 0.985));
    box-shadow: 0 1.75rem 5rem rgba(0, 0, 0, 0.48);
}

.client-access-card__accent {
    position: absolute;
    top: 0;
    right: 2.125rem;
    left: 2.125rem;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--color-accent), transparent);
    opacity: 0.8;
}

.client-access-lock {
    display: grid;
    width: 3.125rem;
    height: 3.125rem;
    margin-bottom: 1.625rem;
    border: 1px solid rgba(196, 143, 86, 0.32);
    border-radius: 50%;
    place-items: center;
    color: var(--color-accent);
    background: rgba(196, 143, 86, 0.05);
}

.client-access-lock svg {
    width: 1.375rem;
    height: 1.375rem;
}

.client-access-card__eyebrow {
    margin-bottom: 0.6rem;
}

.client-access-card h2 {
    color: #ffffff;
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    letter-spacing: -0.035em;
}

.client-access-card__copy {
    margin: 0.75rem 0 1.7rem;
    color: rgba(255, 255, 255, 0.63);
    font-size: 0.9rem;
    line-height: 1.7;
}

.client-access-button {
    display: flex;
    min-height: 3.375rem;
    padding: 0 1.1rem;
    border: 1px solid var(--color-accent);
    border-radius: 0.625rem;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    color: #111111;
    background: var(--color-accent);
    font-size: 0.82rem;
    font-weight: 700;
    text-decoration: none;
    transition: transform var(--motion-fast) var(--ease-standard), background var(--motion-fast) var(--ease-standard);
}

.client-access-button:hover {
    transform: translateY(-1px);
    background: #d09a60;
}

.client-access-button:focus-visible {
    outline: var(--focus-ring-width) solid #ffffff;
    outline-offset: 3px;
}

.client-access-card__note {
    margin: 1rem 0 0;
    color: rgba(255, 255, 255, 0.38);
    font-size: 0.7rem;
    line-height: 1.55;
    text-align: center;
}

@media (min-width: 62.001rem) {
    .page-client-access {
        height: 100dvh;
        overflow: hidden;
        background:
            radial-gradient(circle at 82% 14%, rgba(196, 143, 86, 0.13), transparent 28rem),
            radial-gradient(circle at 12% 88%, rgba(196, 143, 86, 0.07), transparent 24rem),
            #000000;
    }

    .page-client-access #main-content {
        height: 100dvh;
        min-height: 0;
        overflow: hidden;
    }

    .client-access-page {
        height: 100dvh;
        min-height: 0;
        background: transparent;
    }

    .client-access-page__inner {
        height: 100%;
        min-height: 0;
        box-sizing: border-box;
        padding: calc(var(--header-height) + clamp(0.4rem, 1.2vh, 0.8rem)) 0 clamp(0.8rem, 2vh, 1.25rem);
        align-items: center;
    }

    .client-access-card {
        box-sizing: border-box;
    }

    .client-access-field input {
        min-height: 3rem;
        box-sizing: border-box;
        padding: 0.65rem 0.9rem;
    }
}

@media (max-width: 62rem) {
    .client-access-page__inner {
        grid-template-columns: minmax(0, 1fr);
        gap: 3.25rem;
    }

    .client-access-intro {
        width: 100%;
        max-width: 46rem;
        box-sizing: border-box;
    }

    .client-access-card {
        width: 100%;
        max-width: 38rem;
        min-width: 0;
        box-sizing: border-box;
        justify-self: start;
    }
}

@media (max-width: 42rem) {
    .page-client-access #main-content,
    .client-access-page,
    .client-access-page__inner {
        min-height: calc(100dvh - var(--header-height-mobile));
    }

    .client-access-page__inner {
        width: calc(100% - 1.875rem);
        padding: 3rem 0 3.5rem;
        gap: 2.5rem;
    }

    .client-access-intro h1 {
        font-size: clamp(2.65rem, 13vw, 4.25rem);
    }

    .client-access-benefits {
        grid-template-columns: 1fr;
        margin-top: 2.25rem;
    }

    .client-access-benefits li {
        min-height: 0;
    }

    .client-access-card {
        padding: 1.75rem 1.25rem;
        border-radius: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-access-button {
        transition: none;
    }

    .client-access-button:hover {
        transform: none;
    }
}


/* Client Portal — same-domain frontend */
.client-access-form {
    display: grid;
    gap: 1rem;
    margin-top: 1.4rem;
}

.client-access-field {
    display: grid;
    gap: .55rem;
    text-align: left;
}

.client-access-field > span {
    color: #f5f5f5;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.client-access-field input {
    width: 100%;
    min-height: 3.4rem;
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: .5rem;
    background: rgba(255, 255, 255, .04);
    color: #fff;
    font: inherit;
    padding: .85rem 1rem;
    outline: none;
    transition: border-color .2s ease, background-color .2s ease;
}

.client-access-field input:focus {
    border-color: #c48f56;
    background: rgba(255, 255, 255, .065);
}

@media (max-width: 62rem) {
    .client-access-field input {
        min-height: 3rem;
        box-sizing: border-box;
        padding: 0.65rem 0.9rem;
    }
}

.client-access-flash {
    margin: 1rem 0 0;
    border-radius: .45rem;
    padding: .75rem .9rem;
    font-size: .88rem;
    line-height: 1.5;
}

.client-access-flash--success { background: rgba(196, 143, 86, .12); color: #e5c19b; }
.client-access-flash--warning { background: rgba(255, 196, 87, .11); color: #ffd27c; }
.client-access-flash--error { background: rgba(225, 84, 84, .12); color: #ff9b9b; }

.client-access-secondary-actions {
    display: flex;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1rem;
}

.client-access-secondary-actions form { margin: 0; }

.client-access-text-button {
    border: 0;
    background: transparent;
    color: #aaa;
    cursor: pointer;
    font: inherit;
    font-size: .82rem;
    padding: .25rem 0;
}

.client-access-text-button:hover,
.client-access-text-button:focus-visible { color: #c48f56; }
.client-access-text-button:disabled { cursor: default; opacity: .55; }

.page-client-portal {
    --client-portal-bg: #0b0b0c;
    --client-portal-panel: #121214;
    --client-portal-panel-soft: #171719;
    --client-portal-line: rgba(255, 255, 255, 0.08);
    --client-portal-text: #f5f3ef;
    --client-portal-muted: #aaa6a0;
    --client-portal-accent: #c48f56;
    --client-portal-accent-soft: rgba(196, 143, 86, 0.14);
    --client-portal-shadow: 0 1.5rem 3.75rem rgba(0, 0, 0, 0.28);
    background:
        radial-gradient(circle at 85% 0%, rgba(196, 143, 86, 0.12), transparent 26rem),
        radial-gradient(circle at 0% 85%, rgba(196, 143, 86, 0.07), transparent 32rem),
        var(--client-portal-bg);
    color: var(--client-portal-text);
}

.page-client-portal .site-header {
    display: none;
}

.page-client-portal #main-content {
    min-height: 100dvh;
}

.client-portal-topbar {
    position: sticky;
    z-index: 200;
    top: 0;
    display: grid;
    width: 100%;
    min-height: 5.75rem;
    box-sizing: border-box;
    padding-inline: max(1.25rem, calc((100% - 92.5rem) / 2));
    grid-template-columns: minmax(13rem, 1fr) auto minmax(7rem, 1fr);
    align-items: center;
    gap: 1.25rem;
    border-bottom: 1px solid var(--client-portal-line);
    background: rgba(11, 11, 12, 0.94);
    backdrop-filter: blur(1rem);
}

.client-portal-brand {
    display: inline-flex;
    width: max-content;
    align-items: center;
    gap: 0.875rem;
    color: inherit;
    text-decoration: none;
}

.client-portal-brand__mark {
    display: grid;
    width: 2.875rem;
    height: 2.875rem;
    flex: 0 0 2.875rem;
    border: 1px solid rgba(196, 143, 86, 0.55);
    border-radius: 50%;
    place-items: center;
    color: var(--client-portal-accent);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    box-shadow: inset 0 0 0 0.375rem rgba(196, 143, 86, 0.04);
}

.client-portal-brand__copy strong,
.client-portal-brand__copy span {
    display: block;
}

.client-portal-brand__copy strong {
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.client-portal-brand__copy span {
    margin-top: 0.15rem;
    color: var(--client-portal-muted);
    font-size: 0.68rem;
}

.client-portal-nav {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
}

.client-portal-nav__link,
.client-portal-button,
.client-portal-status,
.client-portal-pill {
    display: inline-flex;
    min-height: 2.75rem;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    line-height: 1;
}

.client-portal-nav__link,
.client-portal-button {
    padding: 0 1rem;
    border: 1px solid var(--client-portal-line);
    color: var(--client-portal-text);
    background: rgba(255, 255, 255, 0.03);
    font: inherit;
    font-size: 0.76rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.2s ease, border-color 0.2s ease, color 0.2s ease, background-color 0.2s ease;
}

.client-portal-nav__link:hover,
.client-portal-nav__link:focus-visible,
.client-portal-nav__link.is-active,
.client-portal-button:hover,
.client-portal-button:focus-visible {
    border-color: rgba(196, 143, 86, 0.45);
    color: var(--client-portal-accent);
    background: var(--client-portal-accent-soft);
    outline: none;
    transform: translateY(-1px);
}

.client-portal-logout-form {
    justify-self: end;
    margin: 0;
}

.client-portal-preview-return {
    justify-self: end;
}

.client-portal-button--ghost {
    min-width: 5.25rem;
}

.client-portal-shell {
    width: min(92.5rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 1.5rem 0 4rem;
}

.client-portal-dashboard {
    padding-top: 1.25rem;
}

.client-portal-hero {
    position: relative;
    display: grid;
    min-height: 20.5rem;
    overflow: hidden;
    padding: clamp(2rem, 4vw, 3.25rem);
    grid-template-columns: minmax(0, 1.2fr) minmax(20rem, 0.8fr);
    align-items: stretch;
    gap: 1.75rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.75rem;
    background:
        linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 58%),
        var(--client-portal-panel);
    box-shadow: var(--client-portal-shadow);
}

.client-portal-hero::after {
    position: absolute;
    top: -5.5rem;
    right: -4.5rem;
    width: 20rem;
    height: 20rem;
    border: 1px solid rgba(196, 143, 86, 0.14);
    border-radius: 50%;
    box-shadow:
        0 0 0 3.5rem rgba(196, 143, 86, 0.035),
        0 0 0 7rem rgba(196, 143, 86, 0.02);
    content: '';
    pointer-events: none;
}

.client-portal-hero__copy,
.client-portal-overview {
    position: relative;
    z-index: 1;
}

.client-portal-hero__copy {
    display: flex;
    max-width: 48rem;
    flex-direction: column;
    justify-content: center;
}

.client-portal-eyebrow {
    margin: 0 0 0.8rem;
    color: var(--client-portal-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.client-portal-hero h1,
.client-portal-page-head h1 {
    margin: 0;
    color: #ffffff;
    font-weight: 600;
    line-height: 0.98;
    letter-spacing: -0.05em;
}

.client-portal-hero h1 {
    font-size: clamp(2.7rem, 5.2vw, 5rem);
}

.client-portal-hero__lead {
    max-width: 42rem;
    margin: 1.4rem 0 0;
    color: var(--client-portal-muted);
    font-size: clamp(0.9rem, 1.2vw, 1rem);
    line-height: 1.75;
}

.client-portal-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
}

.client-portal-hero .client-portal-pills {
    margin-top: 1.75rem;
}

.client-portal-pill,
.client-portal-status {
    padding: 0 0.85rem;
    border: 1px solid var(--client-portal-line);
    color: #d8d4ce;
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.72rem;
    font-weight: 600;
    white-space: nowrap;
}

.client-portal-status {
    border-color: rgba(196, 143, 86, 0.22);
    color: var(--client-portal-accent);
    background: var(--client-portal-accent-soft);
}

.client-portal-overview {
    display: flex;
    padding: 1.5rem;
    flex-direction: column;
    justify-content: space-between;
    border: 1px solid rgba(196, 143, 86, 0.18);
    border-radius: 1.375rem;
    background:
        linear-gradient(180deg, rgba(196, 143, 86, 0.08), transparent 46%),
        rgba(5, 5, 6, 0.28);
}

.client-portal-overview__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1.25rem;
}

.client-portal-overview__head span {
    color: var(--client-portal-muted);
    font-size: 0.75rem;
}

.client-portal-overview__head strong {
    display: block;
    margin-top: 0.25rem;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.25;
}

.client-portal-overview__mark {
    display: grid;
    width: 4.5rem;
    height: 4.5rem;
    flex: 0 0 4.5rem;
    border: 1px solid rgba(196, 143, 86, 0.35);
    border-radius: 50%;
    place-items: center;
    color: var(--client-portal-accent);
    font-size: 1.35rem;
    font-weight: 700;
    box-shadow: inset 0 0 0 0.45rem rgba(196, 143, 86, 0.055);
}

.client-portal-overview__rows {
    display: grid;
    margin-top: 1.5rem;
}

.client-portal-overview__rows a {
    display: flex;
    min-height: 3.1rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--client-portal-muted);
    font-size: 0.78rem;
    text-decoration: none;
}

.client-portal-overview__rows a:last-child {
    border-bottom: 0;
}

.client-portal-overview__rows a:hover,
.client-portal-overview__rows a:focus-visible {
    color: #ffffff;
    outline: none;
}

.client-portal-overview__rows strong {
    color: var(--client-portal-accent);
    font-size: 1rem;
}

.client-portal-section-heading {
    display: flex;
    margin: 2.2rem 0.15rem 1rem;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
}

.client-portal-section-heading h2 {
    margin: 0;
    color: #ffffff;
    font-size: 1.05rem;
}

.client-portal-section-heading p {
    margin: 0.3rem 0 0;
    color: var(--client-portal-muted);
    font-size: 0.78rem;
}

.client-portal-quick-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.client-portal-quick-card {
    position: relative;
    display: flex;
    min-height: 13.75rem;
    overflow: hidden;
    padding: 1.35rem;
    flex-direction: column;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.25rem;
    color: inherit;
    background: var(--client-portal-panel);
    text-decoration: none;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.client-portal-quick-card::before {
    position: absolute;
    right: -3.75rem;
    bottom: -5rem;
    width: 10.5rem;
    height: 10.5rem;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(196, 143, 86, 0.12), transparent 65%);
    content: '';
    pointer-events: none;
}

.client-portal-quick-card:hover,
.client-portal-quick-card:focus-visible {
    border-color: rgba(196, 143, 86, 0.35);
    box-shadow: 0 1.35rem 3rem rgba(0, 0, 0, 0.2);
    outline: none;
    transform: translateY(-0.25rem);
}

.client-portal-card-icon,
.client-portal-document-icon {
    display: grid;
    width: 2.875rem;
    height: 2.875rem;
    flex: 0 0 2.875rem;
    border-radius: 0.875rem;
    place-items: center;
    color: var(--client-portal-accent);
    background: var(--client-portal-accent-soft);
    font-size: 0.9rem;
    font-weight: 700;
}

.client-portal-quick-card h3 {
    margin: 1.2rem 0 0.45rem;
    color: #ffffff;
    font-size: 1rem;
}

.client-portal-quick-card p {
    margin: 0;
    flex: 1;
    color: var(--client-portal-muted);
    font-size: 0.76rem;
    line-height: 1.65;
}

.client-portal-card-footer {
    position: relative;
    z-index: 1;
    display: flex;
    min-height: 2.25rem;
    margin-top: 1rem;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    color: #dcd8d1;
    font-size: 0.72rem;
}

.client-portal-arrow {
    display: grid;
    width: 2.2rem;
    height: 2.2rem;
    flex: 0 0 2.2rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 50%;
    place-items: center;
    color: var(--client-portal-accent);
    font-size: 0.95rem;
}

.client-portal-module {
    padding-top: 2rem;
    padding-bottom: 5rem;
}

.client-portal-page-head {
    display: grid;
    padding: 1.25rem 0.25rem 1.35rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 1.25rem;
}

.client-portal-page-head h1 {
    font-size: clamp(2.4rem, 4.5vw, 4.4rem);
}

.client-portal-page-head > div:first-child > p:last-child {
    max-width: 45rem;
    margin: 0.95rem 0 0;
    color: var(--client-portal-muted);
    font-size: 0.86rem;
    line-height: 1.65;
}

.client-portal-page-head > .client-portal-pills {
    justify-content: flex-end;
}

.client-portal-project-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.client-portal-project-card {
    display: grid;
    min-height: 18rem;
    padding: 1.5rem;
    grid-template-columns: minmax(0, 1fr) 11.25rem;
    gap: 1.5rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.375rem;
    color: inherit;
    background:
        linear-gradient(135deg, rgba(196, 143, 86, 0.075), transparent 42%),
        var(--client-portal-panel);
    text-decoration: none;
}

.client-portal-project-card--link {
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.client-portal-project-card--link:hover,
.client-portal-project-card--link:focus-visible {
    border-color: rgba(196, 143, 86, 0.36);
    box-shadow: 0 1.35rem 3rem rgba(0, 0, 0, 0.2);
    outline: none;
    transform: translateY(-0.2rem);
}

.client-portal-project-card__copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
}

.client-portal-project-card h2,
.client-portal-document-row h2 {
    color: #ffffff;
    letter-spacing: -0.025em;
}

.client-portal-project-card h2 {
    margin: 1rem 0 0.85rem;
    font-size: 1.35rem;
    line-height: 1.25;
}

.client-portal-details {
    width: 100%;
    margin: 0;
}

.client-portal-details {
    display: grid;
    gap: 0.65rem;
}

.client-portal-details div {
    display: flex;
    min-height: 2.15rem;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.client-portal-details div:last-child {
    border-bottom: 0;
}

.client-portal-details dt {
    color: var(--client-portal-muted);
    font-size: 0.7rem;
}

.client-portal-details dd {
    margin: 0;
    color: #dedad4;
    font-size: 0.74rem;
    text-align: right;
}

.client-portal-project-card__art {
    position: relative;
    min-height: 100%;
    overflow: hidden;
    border-radius: 1.125rem;
    background:
        linear-gradient(160deg, rgba(196, 143, 86, 0.22), transparent 55%),
        radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.11), transparent 16%),
        #1b1918;
}

.client-portal-project-card__art span {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    color: rgba(196, 143, 86, 0.19);
    font-size: 4.5rem;
    font-weight: 700;
}

.client-portal-project-card__art img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.client-portal-project-card__art--selection span {
    font-size: 3.8rem;
    font-weight: 400;
}

.client-portal-inline-action {
    display: inline-flex;
    min-height: 2.75rem;
    margin-top: auto;
    padding-top: 1rem;
    align-items: center;
    gap: 0.6rem;
    color: var(--client-portal-accent);
    font-size: 0.76rem;
    font-weight: 700;
}

.client-portal-inline-action span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1rem;
}

.client-portal-empty {
    padding: 2rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.25rem;
    color: var(--client-portal-muted);
    background: var(--client-portal-panel);
    font-size: 0.86rem;
}

.client-portal-list-panel {
    overflow: hidden;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.25rem;
    background: var(--client-portal-panel);
    box-shadow: var(--client-portal-shadow);
}

.client-portal-page-head--gallery {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    gap: clamp(2rem, 5vw, 5rem);
}

.client-portal-gallery-heading {
    min-width: 0;
}

.client-portal-gallery-actions {
    display: grid;
    min-width: min(20rem, 100%);
    justify-items: stretch;
    gap: 0.65rem;
}

.client-portal-gallery-count {
    display: flex;
    min-height: 2.75rem;
    align-items: baseline;
    justify-content: flex-end;
    gap: 0.45rem;
    color: var(--client-portal-muted);
    font-size: 0.78rem;
}

.client-portal-gallery-count strong {
    color: var(--client-portal-accent);
    font-size: 1.08rem;
}

.client-portal-gallery-actions form {
    margin: 0;
}

.client-portal-gallery-actions .client-portal-button {
    width: 100%;
}

.client-portal-gallery-download-note {
    max-width: 18rem;
    color: var(--client-portal-muted);
    font-size: 0.72rem;
    line-height: 1.55;
    text-align: right;
}

.client-portal-gallery-back {
    margin: 0 0 1.5rem;
}

.client-portal-gallery-back-link {
    display: inline-flex;
    min-height: 2.75rem;
    padding: 0.65rem 1rem;
    align-items: center;
    gap: 0.65rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 999px;
    color: var(--client-portal-text);
    background: rgba(255, 255, 255, 0.025);
    font-size: 0.78rem;
    font-weight: 650;
    line-height: 1;
    text-decoration: none;
    transition: border-color 0.18s ease, color 0.18s ease, background-color 0.18s ease, transform 0.18s ease;
}

.client-portal-gallery-back-link__icon {
    display: grid;
    width: 1.5rem;
    height: 1.5rem;
    place-items: center;
    border: 1px solid rgba(196, 143, 86, 0.45);
    border-radius: 50%;
    color: var(--client-portal-accent);
    font-size: 0.88rem;
    line-height: 1;
}

.client-portal-gallery-back-link__icon svg {
    display: block;
    width: 0.85rem;
    height: 0.85rem;
}

.client-portal-gallery-back-link:hover,
.client-portal-gallery-back-link:focus-visible {
    border-color: rgba(196, 143, 86, 0.58);
    color: var(--client-portal-accent);
    background: rgba(196, 143, 86, 0.08);
    outline: none;
    transform: translateY(-1px);
}

.client-proofing-grid {
    --client-proofing-columns: 4;
    position: relative;
    width: 100%;
    column-gap: clamp(0.75rem, 1.4vw, 1.35rem);
}

.client-proofing-card {
    position: absolute;
    top: 0;
    left: 0;
    min-width: 0;
    margin: 0;
    color: inherit;
    background: transparent;
    transition: transform 0.28s ease, opacity 0.2s ease;
}

.client-proofing-card.is-saving {
    opacity: 0.65;
}

.client-proofing-media {
    position: relative;
    display: block;
    width: 100%;
    overflow: hidden;
    border: 1px solid var(--client-portal-line);
    background: #111112;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.client-proofing-card.is-selected .client-proofing-media {
    border-color: var(--client-portal-accent);
    box-shadow: inset 0 0 0 1px var(--client-portal-accent);
}

.client-proofing-image {
    display: block;
    width: 100%;
    height: auto;
    /* Reserve each thumbnail's space before lazy loading finishes. */
    aspect-ratio: auto 3 / 2;
    object-fit: contain;
    background: #111112;
}

.client-proofing-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    background: rgba(0, 0, 0, 0.34);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.18s ease;
}

.client-proofing-select,
.client-proofing-download {
    pointer-events: none;
}

@media (hover: hover) and (pointer: fine) {
    .client-proofing-card:hover .client-proofing-overlay,
    .client-proofing-card:focus-within .client-proofing-overlay {
        opacity: 1;
    }

    .client-proofing-card:hover .client-proofing-select,
    .client-proofing-card:hover .client-proofing-download,
    .client-proofing-card:focus-within .client-proofing-select,
    .client-proofing-card:focus-within .client-proofing-download {
        pointer-events: auto;
    }
}

@media (hover: none), (pointer: coarse) {
    .client-proofing-overlay {
        opacity: 1;
        background: transparent;
    }

    .client-proofing-select,
    .client-proofing-download {
        pointer-events: auto;
    }
}

.client-proofing-image-trigger {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: transparent;
    color: inherit;
    cursor: zoom-in;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.client-proofing-select,
.client-proofing-download {
    display: grid;
    width: 3.15rem;
    height: 3.15rem;
    padding: 0;
    border: 2px solid rgba(255, 255, 255, 0.92);
    border-radius: 50%;
    place-items: center;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.42);
    font: inherit;
    font-size: 1.85rem;
    line-height: 1;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    backdrop-filter: blur(0.35rem);
    transition:
        transform 0.18s ease,
        background-color 0.18s ease,
        border-color 0.18s ease,
        color 0.18s ease;
}

@media (hover: hover) and (pointer: fine) {
    .client-proofing-select:hover,
    .client-proofing-download:hover {
        transform: scale(1.08);
        border-color: var(--client-portal-accent);
        color: var(--client-portal-accent);
    }
}

.client-proofing-select:focus-visible,
.client-proofing-download:focus-visible,
.client-proofing-image-trigger:focus-visible {
    outline: 2px solid var(--client-portal-accent);
    outline-offset: 3px;
}

.client-proofing-download svg {
    width: 1.45rem;
    height: 1.45rem;
}

.client-proofing-card.is-selected .client-proofing-select {
    border-color: var(--client-portal-accent);
    color: #120e0a;
    background: var(--client-portal-accent);
}

.client-proofing-name {
    position: relative;
    display: flex;
    min-height: 3.05rem;
    padding: 0.7rem 2.7rem;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    color: #ffffff;
    background: transparent;
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: center;
    transition: background-color 0.18s ease, color 0.18s ease;
}

.client-proofing-name__text {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.client-proofing-name__check {
    position: absolute;
    left: 1rem;
    top: 50%;
    display: none;
    color: #ffffff;
    font-size: 1.2rem;
    font-weight: 400;
    line-height: 1;
    transform: translateY(-50%);
}

.client-proofing-card.is-selected .client-proofing-name {
    color: #ffffff;
    background: var(--client-portal-accent);
}

.client-proofing-card.is-selected .client-proofing-name__check {
    display: block;
}

/* Portal proofing reuses the canonical gallery viewer shell/media/arrows/close. */
.client-proofing-viewer__stage {
    display: grid;
    width: max-content;
    max-width: min(100%, var(--layout-container));
    max-height: 100%;
    grid-template-rows: minmax(0, 1fr) auto;
    align-items: start;
}

.client-proofing-viewer__stage > img {
    justify-self: center;
    max-width: 100%;
    max-height: calc(100dvh - 11.5rem);
}

html.has-client-proofing-viewer,
html.has-client-proofing-viewer body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    overscroll-behavior: none;
}

/* Client Portal viewer is owned here; it does not load Gallery page CSS. */
.gallery-viewer {
    position: fixed;
    inset: 0;
    width: 100vw;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #050505;
    color: #ffffff;
}

.gallery-viewer[open] {
    display: block;
}

.gallery-viewer::backdrop {
    background: #050505;
}

.gallery-viewer__shell {
    display: flex;
    box-sizing: border-box;
    width: 100%;
    height: 100dvh;
    flex-direction: column;
    overflow: hidden;
    padding: clamp(0.75rem, 1.5vw, 1.25rem);
}

.gallery-viewer__media {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: clamp(3.75rem, 7vh, 5.75rem) clamp(3.5rem, 8vw, 7rem) clamp(0.75rem, 2vh, 1.25rem);
    touch-action: none;
    overscroll-behavior: none;
}

.gallery-viewer__close {
    position: fixed;
    z-index: 5;
    top: clamp(0.9rem, 2vw, 1.5rem);
    right: clamp(0.9rem, 2vw, 1.5rem);
    width: 2.5rem;
    height: 2.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.82);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gallery-viewer__close span {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 1.55rem;
    height: 1px;
    background: currentColor;
}

.gallery-viewer__close span:first-child { transform: translate(-50%, -50%) rotate(45deg); }
.gallery-viewer__close span:last-child { transform: translate(-50%, -50%) rotate(-45deg); }

.gallery-viewer__arrow {
    position: absolute;
    z-index: 3;
    top: 50%;
    width: 2.8rem;
    height: 3.5rem;
    padding: 0;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.86);
    transform: translateY(-50%);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gallery-viewer__arrow:disabled,
.gallery-viewer__control:disabled,
.gallery-viewer__like:disabled {
    opacity: 0.25;
    cursor: default;
}

.gallery-viewer__arrow svg { width: 1.8rem; height: 1.8rem; }
.gallery-viewer__arrow--prev { left: clamp(0.35rem, 1.6vw, 1.75rem); }
.gallery-viewer__arrow--next { right: clamp(0.35rem, 1.6vw, 1.75rem); }

.gallery-viewer__controls {
    display: flex;
    min-height: 3.25rem;
    flex: 0 0 3.25rem;
    align-items: center;
    justify-content: center;
    gap: 0.1rem;
    color: rgba(255, 255, 255, 0.64);
}

.gallery-viewer__counter {
    min-width: 3.65rem;
    margin: 0 0.05rem;
    color: rgba(255, 255, 255, 0.72);
    font-size: 0.78rem;
    font-variant-numeric: tabular-nums;
    letter-spacing: 0.04em;
    text-align: center;
}

.gallery-viewer__control,
.gallery-viewer__like {
    display: inline-flex;
    min-width: 1.9rem;
    height: 2.2rem;
    padding: 0 0.3rem;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    border: 0;
    background: transparent;
    color: rgba(255, 255, 255, 0.64);
    font: inherit;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.gallery-viewer__control > span { font-size: 1.05rem; line-height: 1; }
.gallery-viewer__control svg,
.gallery-viewer__like svg { width: 0.98rem; height: 0.98rem; flex: 0 0 auto; }
.gallery-viewer__control[data-client-proofing-viewer-grid] circle { fill: currentColor; }
.gallery-viewer__icon--pause { display: none; }
.gallery-viewer__control.is-playing .gallery-viewer__icon--play { display: none; }
.gallery-viewer__control.is-playing .gallery-viewer__icon--pause { display: block; }
.gallery-viewer__like { min-width: auto; margin-left: 0.15rem; font-size: 0.72rem; }
.gallery-viewer__like.is-liked { color: var(--client-portal-accent); }
.gallery-viewer__like.is-liked svg path { fill: currentColor; }

.gallery-viewer__close:focus-visible,
.gallery-viewer__arrow:focus-visible,
.gallery-viewer__control:focus-visible,
.gallery-viewer__like:focus-visible {
    outline: 2px solid var(--client-portal-accent);
    outline-offset: 3px;
}

@media (hover: hover) and (pointer: fine) {
    .gallery-viewer__close:hover,
    .gallery-viewer__arrow:hover:not(:disabled),
    .gallery-viewer__control:hover:not(:disabled),
    .gallery-viewer__like:hover:not(:disabled) {
        color: var(--client-portal-accent);
    }
}

.client-portal-document-row {
    display: grid;
    min-height: 6.5rem;
    padding: 1.15rem 1.3rem;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 1rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.055);
}

.client-portal-document-open {
    display: grid;
    min-width: 0;
    grid-template-columns: 3.25rem minmax(0, 1fr);
    align-items: center;
    gap: 1rem;
    color: inherit;
    text-decoration: none;
}

.client-portal-document-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 0.65rem;
}

@media (hover: hover) and (pointer: fine) {
    .client-portal-document-open:hover h2,
    .client-portal-document-open:focus-visible h2 {
        color: var(--client-portal-accent);
    }
}

.client-portal-document-row:last-child {
    border-bottom: 0;
}

.client-portal-document-icon {
    width: 3.25rem;
    height: 3.25rem;
    flex-basis: 3.25rem;
    font-size: 0.65rem;
}

.client-portal-document-copy {
    min-width: 0;
}

.client-portal-document-row h2 {
    margin: 0 0 0.35rem;
    font-size: 0.92rem;
    line-height: 1.35;
}

.client-portal-document-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem 1rem;
    color: var(--client-portal-muted);
    font-size: 0.7rem;
    line-height: 1.5;
}

/* Navbarul portalului este fixat jos. Pe desktop se ascunde explicit. */
.client-portal-mobile-nav {
    position: fixed;
    z-index: 220;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    align-items: stretch;
    padding: 0.55rem max(0.65rem, env(safe-area-inset-left, 0px)) calc(0.55rem + env(safe-area-inset-bottom, 0px)) max(0.65rem, env(safe-area-inset-right, 0px));
    border-top: 1px solid var(--client-portal-line);
    background: rgba(11, 11, 12, 0.97);
    box-shadow: 0 -0.6rem 2rem rgba(0, 0, 0, 0.35);
    backdrop-filter: blur(1rem);
}

@media (min-width: 48.001rem) {
    .client-portal-mobile-nav { display: none; }
}

@media (max-width: 70rem) {
   .client-portal-topbar {
        grid-template-columns: 1fr auto;
    }

    .client-portal-nav {
        display: none;
    }

    .client-portal-hero {
        grid-template-columns: 1fr;
    }

    .client-portal-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .client-portal-project-grid {
        grid-template-columns: 1fr;
    }

    .client-proofing-grid {
        --client-proofing-columns: 3;
    }

}

@media (max-width: 48rem) {
    .page-client-portal {
        padding-bottom: 5.75rem;
    }

    .client-portal-shell {
        width: calc(100% - 1.375rem);
    }

    .client-portal-topbar {
        min-height: 4.75rem;
        padding-inline: 0.6875rem;
    }

    .client-portal-brand__copy span {
        display: none;
    }

    .client-portal-logout-form .client-portal-button {
        min-width: 4.75rem;
    }

    .client-portal-shell {
        padding-top: 0.75rem;
    }

    .client-portal-hero {
        min-height: 0;
        padding: 1.5rem 1.25rem;
        border-radius: 1.375rem;
    }

    .client-portal-hero h1,
    .client-portal-page-head h1 {
        font-size: clamp(2.35rem, 12vw, 4rem);
    }

    .client-portal-overview {
        padding: 1.1rem;
    }

    .client-portal-overview__mark {
        width: 3.75rem;
        height: 3.75rem;
        flex-basis: 3.75rem;
    }

    .client-portal-quick-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .client-portal-quick-card {
        min-height: 11.75rem;
        padding: 1rem;
        border-radius: 1rem;
    }

    .client-portal-quick-card p {
        display: none;
    }

    .client-portal-quick-card h3 {
        font-size: 0.9rem;
    }

    .client-portal-card-footer {
        margin-top: auto;
    }

    .client-portal-page-head {
        grid-template-columns: 1fr;
        padding-top: 0.75rem;
    }

    .client-portal-page-head > .client-portal-pills {
        justify-content: flex-start;
    }

    .client-portal-project-card {
        min-height: 0;
        padding: 1.15rem;
        grid-template-columns: 1fr;
    }

    .client-portal-project-card__art {
        min-height: 9rem;
    }

    .client-proofing-grid {
        --client-proofing-columns: 2;
        column-gap: 0.6rem;
    }

    .client-proofing-overlay {
        gap: 0.75rem;
        background: rgba(0, 0, 0, 0.16);
        opacity: 1;
    }

    .client-proofing-select,
    .client-proofing-download {
        width: 2.7rem;
        height: 2.7rem;
        font-size: 1.55rem;
    }

    .client-proofing-name {
        font-size: 0.68rem;
    }

    .client-proofing-viewer__stage > img {
        max-height: calc(100dvh - 9.5rem);
    }

    .gallery-viewer__shell {
        padding: 0.5rem 0.75rem 0.65rem;
    }

    .gallery-viewer__media {
        padding: 3.5rem 1.65rem 0.5rem;
    }

    .gallery-viewer__arrow {
        width: 2.45rem;
        height: 3.1rem;
    }

    .gallery-viewer__arrow--prev { left: 0; }
    .gallery-viewer__arrow--next { right: 0; }
    .gallery-viewer__controls { min-height: 3rem; gap: 0.05rem; }
    .gallery-viewer__control,
    .gallery-viewer__like { height: 2rem; padding-inline: 0.25rem; }
    .gallery-viewer__counter { min-width: 3.35rem; margin-inline: 0; }

}

/* Mobile client portal bottom navigation */
.client-portal-mobile-nav__form { margin: 0; min-width: 0; }

@media (max-width: 48rem) {
    .page-client-portal { padding-bottom: calc(6rem + env(safe-area-inset-bottom, 0px)); }
    .client-portal-topbar { grid-template-columns: 1fr; }
    .client-portal-logout-form,
    .client-portal-preview-return { display: none; }
    .client-portal-mobile-nav__form { display: flex; }
    .client-portal-mobile-nav__link {
        min-width: 0;
        min-height: 3.4rem;
        padding: 0.45rem 0.1rem;
        display: flex;
        flex: 1;
        flex-direction: column;
        gap: 0.25rem;
        align-items: center;
        justify-content: center;
        border: 1px solid transparent;
        border-radius: 0.8rem;
        background: transparent;
        color: var(--client-portal-muted);
        font: inherit;
        font-size: 0.68rem;
        font-weight: 600;
        line-height: 1.2;
        text-align: center;
        text-decoration: none;
        cursor: pointer;
    }
    .client-portal-mobile-nav__icon { color: currentColor; font-size: 1.25rem; line-height: 1; }
    .client-portal-mobile-nav__link.is-active,
    .client-portal-mobile-nav__link:focus-visible {
        border-color: rgba(196, 143, 86, 0.35);
        background: var(--client-portal-accent-soft);
        color: var(--client-portal-accent);
        outline: none;
    }
    .client-portal-mobile-nav__exit { color: var(--client-portal-text); }
}

@media (max-width: 25rem) {
    .client-portal-brand__copy {
        display: none;
    }

    .client-portal-quick-grid,
    .client-proofing-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .client-portal-nav__link,
    .client-portal-button,
    .client-portal-quick-card,
    .client-portal-project-card--link,
    .client-proofing-card {
        transition: none;
    }

    .client-portal-nav__link:hover,
    .client-portal-button:hover,
    .client-portal-quick-card:hover,
    .client-portal-project-card--link:hover,
    .client-proofing-card:hover {
        transform: none;
    }
}


/* Client access — segmented OTP on every viewport */
.client-access-field--otp .client-access-otp-fallback {
    position: absolute;
    width: 1px;
    height: 1px;
    min-height: 0;
    padding: 0;
    border: 0;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.client-access-otp-boxes {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: clamp(0.3rem, 2vw, 0.55rem);
}

.client-access-field .client-access-otp-digit {
    width: 100%;
    min-width: 0;
    height: clamp(2.85rem, 12vw, 3.2rem);
    min-height: 0;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 0.55rem;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
    font-size: clamp(1rem, 5vw, 1.25rem);
    font-weight: 600;
    line-height: 1;
    text-align: center;
}

.client-access-field .client-access-otp-digit:focus {
    border-color: var(--color-accent);
    background: rgba(196, 143, 86, 0.08);
    outline: none;
}

@media (min-width: 62.001rem) {
    .page-client-access {
        height: 100dvh;
        overflow: hidden;
    }

    .client-access-page__inner {
        align-items: start;
        gap: clamp(3rem, 5vw, 5.5rem);
        padding-top: calc(var(--header-height) + clamp(1.75rem, 4vh, 3rem));
    }

    .client-access-intro {
        max-width: 39rem;
    }

    .client-access-eyebrow {
        margin-bottom: 0.85rem;
        font-size: 0.72rem;
        letter-spacing: 0.2em;
    }

    .client-access-intro h1 {
        max-width: 38rem;
        margin: 0;
        font-size: clamp(3.2rem, 4.1vw, 4.15rem);
        font-weight: 500;
        line-height: 0.98;
        letter-spacing: -0.045em;
        text-wrap: balance;
    }

    .client-access-intro h1 span {
        display: block;
        margin-top: 0.08em;
        font-size: 0.94em;
        font-weight: 600;
        line-height: 1.02;
    }

    .client-access-lead {
        max-width: 35rem;
        margin-top: 1.25rem;
        font-size: 0.98rem;
        line-height: 1.65;
    }

    .client-access-benefits {
        max-width: 38rem;
        margin-top: 1.65rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .client-access-benefits li {
        min-height: 6.3rem;
        padding: 0.95rem 1rem 0.9rem;
    }

    .client-access-benefit__icon {
        width: 1.4rem;
        height: 1.4rem;
        margin-bottom: 0.7rem;
    }

    .client-access-benefits strong {
        margin-bottom: 0.3rem;
        font-size: 0.78rem;
    }

    .client-access-benefits li > span:last-child {
        font-size: 0.68rem;
        line-height: 1.45;
    }

    .client-access-card {
        max-width: 29.375rem;
        padding: 1.85rem 2rem;
    }

    .client-access-lock {
        width: 2.75rem;
        height: 2.75rem;
        margin-bottom: 1.1rem;
    }

    .client-access-card h2 {
        font-size: 1.55rem;
    }

    .client-access-card__copy {
        margin: 0.65rem 0 1.1rem;
        font-size: 0.84rem;
        line-height: 1.55;
    }

    .client-access-form {
        gap: 0.8rem;
        margin-top: 1rem;
    }

    .client-access-field {
        gap: 0.45rem;
    }

    .client-access-field input {
        min-height: 2.75rem;
        padding: 0.55rem 0.85rem;
    }

    .client-access-button {
        min-height: 3rem;
    }

    .client-access-card__note {
        margin-top: 0.75rem;
    }

}


@media (max-width: 70rem) {
    .client-portal-page-head--gallery {
        grid-template-columns: 1fr;
    }

    .client-portal-gallery-actions {
        width: min(100%, 22rem);
        justify-self: start;
    }

    .client-portal-gallery-count {
        justify-content: flex-start;
    }

    .client-portal-gallery-download-note {
        text-align: left;
    }
}

@media (max-width: 48rem) {
    .client-portal-gallery-actions {
        width: 100%;
    }

    .client-proofing-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .client-proofing-media {
        min-height: 8rem;
    }
}

@media (max-width: 30rem) {
    .client-proofing-grid {
        grid-template-columns: 1fr 1fr;
    }
}


@media (max-width: 32rem) {
    .client-proofing-grid {
        --client-proofing-columns: 1;
    }
}

.client-portal-project-card--expired {
    width: 100%;
    appearance: none;
    font: inherit;
    text-align: left;
    cursor: pointer;
    opacity: 0.78;
}

.client-portal-project-card--expired:hover,
.client-portal-project-card--expired:focus-visible {
    transform: none;
}

.client-portal-status--expired {
    border-color: rgba(255, 255, 255, 0.12);
    color: #b9b1a8;
    background: rgba(255, 255, 255, 0.055);
}

.client-portal-project-card--expired .client-portal-project-card__art {
    filter: grayscale(1);
}

.client-portal-expired-dialog {
    width: min(32rem, calc(100% - 2rem));
    padding: 2rem;
    border: 1px solid var(--client-portal-line);
    border-radius: 1.375rem;
    color: #ffffff;
    background: #11100f;
    box-shadow: 0 2rem 5rem rgba(0, 0, 0, 0.55);
}

.client-portal-expired-dialog::backdrop {
    background: rgba(0, 0, 0, 0.76);
    backdrop-filter: blur(0.25rem);
}

.client-portal-expired-dialog h2 {
    margin: 0.65rem 0 0.85rem;
    color: #ffffff;
    font-size: clamp(1.45rem, 4vw, 2rem);
    line-height: 1.2;
}

.client-portal-expired-dialog > p:not(.client-portal-eyebrow) {
    margin: 0 0 1.5rem;
    color: var(--client-portal-muted);
    line-height: 1.7;
}

.client-portal-expired-dialog__close {
    position: absolute;
    top: 0.9rem;
    right: 0.9rem;
    display: grid;
    width: 2.35rem;
    height: 2.35rem;
    padding: 0;
    place-items: center;
    border: 1px solid var(--client-portal-line);
    border-radius: 999px;
    color: #ffffff;
    background: transparent;
    font: inherit;
    font-size: 1.25rem;
    cursor: pointer;
}

@media (max-width: 47.99rem) {
    .appointments-photographer {
        grid-template-columns: 1fr;
        gap: .45rem;
        justify-content: stretch;
        padding: .85rem;
    }

    .appointments-photographer select {
        min-height: 44px;
    }
}

.client-video-section {
    margin-top: clamp(2.5rem, 6vw, 5rem);
}

.client-video-section__head {
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.client-video-section__head h2 {
    margin: 0.25rem 0 0;
    font-size: clamp(1.5rem, 4vw, 2.4rem);
}

.client-video-section__head > span {
    color: var(--client-portal-muted);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.client-video-grid {
    columns: 1;
    column-gap: 1.25rem;
}

.client-video-card {
    display: inline-block;
    width: 100%;
    vertical-align: top;
    break-inside: avoid;
    margin-bottom: 1.25rem;
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--client-portal-line);
    border-radius: 1rem;
    background: var(--client-portal-panel);
}

.client-video-player {
    display: block;
    width: 100%;
    max-height: 78vh;
    background: #000;
}

.client-video-name {
    margin: 0;
    padding: 0.9rem 1rem 1rem;
    color: var(--client-portal-text);
    font-size: 0.92rem;
    overflow-wrap: anywhere;
}

.client-video-unavailable {
    display: grid;
    min-height: 12rem;
    place-items: center;
    padding: 1rem;
    color: var(--client-portal-muted);
    text-align: center;
}

@media (min-width: 48rem) {
    .client-video-grid {
        columns: 2;
    }
}

@media (max-width: 48rem) {
    .client-portal-document-row {
        grid-template-columns: 1fr;
    }

    .client-portal-document-actions {
        justify-content: flex-start;
        flex-wrap: wrap;
    }
}

/* Scheduled maintenance notice shown inside the authenticated Client Portal. */
.client-portal-announcement {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 0.85rem;
    width: min(92.5rem, calc(100% - 2.5rem));
    margin: 0 auto;
    padding: 0.9rem 1rem;
    border: 1px solid rgba(196, 143, 86, 0.28);
    border-radius: 0.8rem;
    color: var(--client-portal-text);
    background: rgba(196, 143, 86, 0.08);
}

.client-portal-announcement__icon {
    display: grid;
    width: 2.25rem;
    height: 2.25rem;
    place-items: center;
    border: 1px solid rgba(196, 143, 86, 0.32);
    border-radius: 0.7rem;
    color: var(--client-portal-accent);
    background: rgba(196, 143, 86, 0.08);
}

.client-portal-announcement__icon svg {
    width: 1.15rem;
    height: 1.15rem;
}

.client-portal-announcement p {
    margin: 0;
    color: var(--client-portal-text);
    font-size: 0.9rem;
    line-height: 1.55;
}

@media (max-width: 62rem) {
    .client-portal-announcement {
        width: min(92.5rem, calc(100% - 2rem));
    }
}

@media (max-width: 42rem) {
    .client-portal-announcement {
        grid-template-columns: 1fr;
        gap: 0.65rem;
        width: calc(100% - 1.5rem);
        padding: 0.8rem 0.9rem;
    }
}

/* Match the form theme when Chromium autofills saved information. */
.client-access-field input:autofill,
.client-access-field input:autofill:hover,
.client-access-field input:autofill:focus,
.client-access-field input:-webkit-autofill,
.client-access-field input:-webkit-autofill:hover,
.client-access-field input:-webkit-autofill:focus {
    -webkit-text-fill-color: #fff;
    caret-color: #fff;
    box-shadow: 0 0 0 1000px #111112 inset;
}
