:root {
    --portal-ink: #171717;
    --portal-muted: #67645f;
    --portal-paper: #f6f3ed;
    --portal-card: #ffffff;
    --portal-line: #ded9d0;
    --portal-accent: #a8793d;
    --portal-accent-dark: #7f5728;
    --portal-success: #1e6a52;
    --portal-error: #9c3434;
    --portal-shadow: 0 24px 70px rgba(24, 20, 15, .13);
}

* { box-sizing: border-box; }
body.client-portal { margin: 0; color: var(--portal-ink); background: var(--portal-paper); font-family: Inter, "Segoe UI", Arial, sans-serif; line-height: 1.55; }
.client-portal a { color: inherit; }
.client-header { position: sticky; z-index: 200; top: 0; min-height: 86px; padding: 16px clamp(22px, 5vw, 76px); display: flex; align-items: center; justify-content: space-between; gap: 30px; background: rgba(18,18,18,.98); color: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.12); }
.client-admin-preview { position: relative; z-index: 190; padding: 10px clamp(22px,5vw,76px); display: flex; align-items: center; justify-content: center; gap: 14px; color: #fff; background: #8a5a18; font-size: .76rem; }
.client-admin-preview span { padding: 4px 8px; border-radius: 999px; background: rgba(255,255,255,.16); font-size: .65rem; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.client-admin-preview a { color: #fff; font-weight: 800; }
.client-brand img { display: block; width: 148px; height: 52px; object-fit: contain; }
.client-nav { display: flex; align-items: center; gap: 26px; font-size: .9rem; }
.client-nav a { color: rgba(255,255,255,.78); text-decoration: none; }
.client-nav a:hover { color: #fff; }
.client-nav .client-nav-button { padding: 10px 18px; border: 1px solid rgba(255,255,255,.42); border-radius: 999px; color: #fff; }
.client-menu-toggle { display: none; }
.client-site-footer { position: relative; z-index: 2; overflow: hidden; margin-top: 70px; color: #fff; background-color: #111; background-image: url('../img/background/bg-5.png'),linear-gradient(135deg,#141416,#0e0e0f); background-size: auto,cover; }
.client-site-footer::before { content: ''; position: absolute; z-index: -1; top: 105px; left: 50%; width: min(1040px,82vw); height: 520px; transform: translateX(-50%); border: 1px solid rgba(255,255,255,.09); border-bottom: 0; border-radius: 520px 520px 0 0; pointer-events: none; }
.client-site-footer__main { width: min(1270px,calc(100% - 48px)); min-height: 510px; margin: 0 auto; padding: 105px 0 75px; display: grid; grid-template-columns: 1fr 1.2fr 1fr; align-items: center; gap: 55px; }
.client-site-footer__nav { display: grid; gap: 22px; }
.client-site-footer__nav a { color: #fff; font-size: .86rem; font-weight: 700; letter-spacing: .17em; text-decoration: none; text-transform: uppercase; transition: color .2s ease,transform .2s ease; }
.client-site-footer__nav a:hover { color: #d7a04e; transform: translateX(4px); }
.client-site-footer__nav--right { text-align: right; }
.client-site-footer__nav--right a:hover { transform: translateX(-4px); }
.client-site-footer__center { display: grid; justify-items: center; text-align: center; }
.client-site-footer__logo { width: min(350px,100%); display: block; }
.client-site-footer__logo img { width: 100%; height: 105px; display: block; object-fit: contain; }
.client-site-footer__center p { margin: 50px 0 28px; font-size: 1rem; font-weight: 700; letter-spacing: .08em; line-height: 1.25; text-transform: uppercase; }
.client-site-footer__button { min-width: 216px; padding: 16px 24px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; color: #fff; background: #cb0707; font-size: .78rem; font-weight: 800; text-decoration: none; text-transform: uppercase; transition: background .2s ease,transform .2s ease; }
.client-site-footer__button:hover { background: #eb1515; transform: translateY(-2px); }
.client-site-footer__bottom { min-height: 90px; padding: 20px max(24px,calc((100% - 1270px)/2)); display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; border-top: 1px solid rgba(255,255,255,.08); }
.client-site-footer__bottom p { margin: 0; font-size: .83rem; }
.client-site-footer__bottom p a { color: #fff; font-weight: 750; text-decoration: none; }
.client-site-footer__facebook { width: 48px; height: 28px; display: grid; place-items: center; border: 1px solid #fff; border-radius: 50%; color: #fff; font: 800 .8rem Arial,sans-serif; text-decoration: none; }
.client-site-footer__top { width: 55px; height: 55px; display: grid; place-items: center; justify-self: end; border-radius: 4px; color: #fff; background: #cb0707; font-size: 1.4rem; text-decoration: none; }
.eyebrow { margin: 0 0 12px; color: var(--portal-accent-dark); font-size: .74rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.flash-stack { position: fixed; z-index: 100; top: 104px; right: 22px; width: min(420px, calc(100vw - 44px)); display: grid; gap: 10px; }
.flash { position: relative; padding: 15px 50px 15px 18px; border-radius: 10px; background: #fff; box-shadow: 0 12px 35px rgba(0,0,0,.16); border-left: 4px solid var(--portal-accent); cursor: pointer; transition: opacity .18s ease, transform .18s ease; }
.flash--error { border-color: var(--portal-error); }
.flash--success { border-color: var(--portal-success); }
.flash:focus-visible { outline: 3px solid rgba(168,121,61,.28); outline-offset: 2px; }
.flash.is-dismissing { opacity: 0; transform: translateY(-8px); pointer-events: none; }
.flash__close { position: absolute; top: 50%; right: 12px; width: 30px; height: 30px; padding: 0; display: grid; place-items: center; transform: translateY(-50%); border: 0; border-radius: 50%; background: #f1ede7; color: #504a43; font: 700 1.15rem/1 sans-serif; cursor: pointer; }
.flash__close:hover, .flash__close:focus-visible { background: #171717; color: #fff; }

.entry-shell { width: min(1380px, calc(100% - 48px)); min-height: 710px; margin: 46px auto; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(390px, .65fr); overflow: hidden; border-radius: 22px; background: #1a1a1a; box-shadow: var(--portal-shadow); }
.entry-story { position: relative; min-height: 710px; display: flex; align-items: flex-end; background: url('../img/background/page-header-bg-login.jpg') center/cover no-repeat; color: #fff; }
.entry-story__shade { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,.06) 15%, rgba(0,0,0,.82) 100%); }
.entry-story__content { position: relative; z-index: 1; max-width: 720px; padding: clamp(38px, 6vw, 82px); }
.entry-story .eyebrow { color: #e2b87a; }
.entry-story h1 { max-width: 640px; margin: 0 0 22px; font: 500 clamp(2.7rem, 5vw, 5.3rem)/.98 Georgia, serif; letter-spacing: -.045em; }
.entry-story p { max-width: 620px; color: rgba(255,255,255,.82); font-size: 1.03rem; }
.trust-list { display: flex; flex-wrap: wrap; gap: 10px 24px; padding: 22px 0 0; margin: 0; list-style: none; color: rgba(255,255,255,.82); font-size: .86rem; }
.trust-list li::before { content: "✓"; margin-right: 8px; color: #ddb171; }
.access-panel { display: flex; flex-direction: column; justify-content: center; padding: clamp(32px, 4vw, 68px); background: var(--portal-card); }
.access-panel__heading h2, .register-card h2 { margin: 0 0 10px; font: 500 clamp(2rem, 3vw, 3rem)/1.05 Georgia, serif; }
.access-panel__heading > p:last-child { margin: 0; color: var(--portal-muted); }
.portal-tabs { display: grid; grid-template-columns: repeat(3, 1fr); margin: 35px 0 28px; border-bottom: 1px solid var(--portal-line); }
.portal-tab { position: relative; padding: 12px 8px 15px; text-align: center; text-decoration: none; color: var(--portal-muted); font-weight: 700; }
.portal-tab.is-active { color: var(--portal-ink); }
.portal-tab.is-active::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--portal-accent); }
.portal-form { display: grid; gap: 11px; }
.portal-form label { margin-top: 4px; font-size: .86rem; font-weight: 750; }
.portal-form input { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #cfc9c0; border-radius: 9px; background: #fff; color: var(--portal-ink); font: inherit; outline: none; }
.portal-form input:focus { border-color: var(--portal-accent); box-shadow: 0 0 0 3px rgba(168,121,61,.14); }
.code-input-wrap { position: relative; }
.code-input-wrap input { padding-right: 55px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.code-input-wrap span { position: absolute; right: 19px; top: 50%; transform: translateY(-50%); color: var(--portal-accent); font-weight: 900; }
.field-help, .form-note { margin: 0; color: var(--portal-muted); font-size: .82rem; }
.form-note { margin-top: 16px; text-align: center; }
.form-note a, .label-row a { color: var(--portal-accent-dark); }
.label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 4px; }
.label-row a { font-size: .78rem; }
.portal-button,
.client-portal a.portal-button { min-height: 55px; margin-top: 11px; padding: 14px 20px; display: flex; align-items: center; justify-content: space-between; gap: 18px; border: 0; border-radius: 9px; background: var(--portal-ink); color: #fff; cursor: pointer; font-family: inherit; font-size: .92rem; font-weight: 750; line-height: 1; text-decoration: none; transition: background .2s, color .2s, transform .2s, opacity .2s; }
.portal-button:hover,
.client-portal a.portal-button:hover { background: var(--portal-accent-dark); color: #fff; transform: translateY(-1px); }
.portal-button:focus-visible,
.client-portal a.portal-button:focus-visible { outline: 3px solid rgba(168,121,61,.35); outline-offset: 3px; }
.portal-button:disabled,
.portal-button[aria-disabled="true"] { cursor: not-allowed; opacity: .5; transform: none; }
.passkey-login { margin-top: 18px; }
.passkey-divider { margin: 14px 0 18px; display: flex; align-items: center; gap: 12px; color: var(--portal-muted); font-size: .74rem; text-transform: uppercase; }
.passkey-divider::before, .passkey-divider::after { content: ""; height: 1px; flex: 1; background: var(--portal-line); }
.passkey-button { width: 100%; min-height: 53px; padding: 13px 18px; display: flex; align-items: center; justify-content: center; gap: 10px; border: 1px solid var(--portal-ink); border-radius: 9px; background: #fff; color: var(--portal-ink); font: 750 .9rem/1.2 inherit; cursor: pointer; transition: background .2s, color .2s, opacity .2s, transform .2s; }
.passkey-button[hidden] { display: none; }
.passkey-button svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.passkey-button:hover { background: var(--portal-ink); color: #fff; transform: translateY(-1px); }
.passkey-button:disabled { opacity: .55; cursor: wait; transform: none; }
.passkey-button--dark { margin-top: 24px; background: var(--portal-ink); color: #fff; }
.passkey-button--dark:hover { background: var(--portal-accent-dark); }
.passkey-status { min-height: 1.25em; margin: 9px 0 0; color: var(--portal-muted); font-size: .78rem; text-align: center; }
.security-note { margin-top: 30px; padding-top: 22px; display: flex; gap: 10px; border-top: 1px solid var(--portal-line); color: var(--portal-muted); font-size: .78rem; }
.security-note span { color: var(--portal-accent); }

.register-shell { width: min(1160px, calc(100% - 48px)); margin: 58px auto; display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(40px, 7vw, 100px); align-items: center; }
.register-intro h1 { margin: 0 0 22px; font: 500 clamp(2.8rem, 5vw, 5rem)/1 Georgia, serif; letter-spacing: -.04em; }
.register-intro > p:last-child { color: var(--portal-muted); }
.back-link { display: inline-block; margin-bottom: 48px; color: var(--portal-muted); font-size: .85rem; text-decoration: none; }
.validated-gallery { margin: 30px 0; padding: 18px; display: flex; align-items: center; gap: 14px; border: 1px solid #d8d2c8; border-radius: 12px; background: rgba(255,255,255,.5); }
.validated-gallery__icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--portal-success); color: #fff; }
.validated-gallery strong, .validated-gallery span { display: block; }
.validated-gallery span { color: var(--portal-muted); font-size: .8rem; }
.register-card { padding: clamp(30px, 5vw, 60px); border-radius: 18px; background: #fff; box-shadow: var(--portal-shadow); }
.register-card__lead { margin: 0 0 26px; color: var(--portal-muted); line-height: 1.6; }
.registration-benefits { display: grid; gap: 10px; margin: 24px 0; }
.registration-benefits span { padding: 13px 16px; border: 1px solid var(--portal-line); border-radius: 10px; background: rgba(255,255,255,.6); }
.registration-benefits span::before { content: "✓"; margin-right: 10px; color: var(--portal-success); font-weight: 900; }
.verification-countdown { margin: 0 0 24px; padding: 14px 18px; border-radius: 10px; background: #f4f1eb; color: var(--portal-muted); text-align: center; }
.verification-countdown strong { color: var(--portal-accent-dark); font-size: 1.2rem; font-variant-numeric: tabular-nums; }
.verification-countdown.is-expired { background: #f9e5e2; color: #9e352c; }
.verification-code-input { text-align: center; letter-spacing: .45em; font-size: 1.45rem !important; font-weight: 800; font-variant-numeric: tabular-nums; }
.verification-restart { margin-top: 18px; text-align: center; }
.verification-restart button { padding: 0; border: 0; border-bottom: 1px solid currentColor; background: none; color: var(--portal-accent-dark); cursor: pointer; }
.verified-email { display: flex; align-items: center; gap: 13px; margin: 22px 0 6px; padding: 14px 16px; border-radius: 10px; background: #e8f3ed; }
.verified-email > span { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: var(--portal-success); color: #fff; font-weight: 900; }
.verified-email small, .verified-email strong { display: block; }
.verified-email small { color: var(--portal-muted); }
.portal-form--grid { grid-template-columns: 1fr 1fr; gap: 13px 16px; margin-top: 28px; }
.form-span-2 { grid-column: 1 / -1; }
.optional { color: var(--portal-muted); font-size: .72rem; font-weight: 500; }

.dashboard-shell, .photo-gallery-shell { width: min(1320px, calc(100% - 48px)); margin: 58px auto 80px; }
.dashboard-hero { padding: 38px 0 52px; display: flex; justify-content: space-between; align-items: end; gap: 30px; border-bottom: 1px solid var(--portal-line); }
.dashboard-hero h1, .photo-gallery-heading h1 { margin: 0; font: 500 clamp(3rem, 6vw, 6rem)/.95 Georgia, serif; letter-spacing: -.045em; }
.dashboard-hero p:last-child { color: var(--portal-muted); }
.secondary-button { padding: 13px 19px; border: 1px solid var(--portal-ink); border-radius: 999px; background: transparent; color: inherit; cursor: pointer; text-decoration: none; white-space: nowrap; font-family: inherit; font-weight: 750; font-size: .85rem; }
.access-code-modal[hidden] { display: none; }
.access-code-modal { position: fixed; z-index: 1250; inset: 0; padding: 20px; display: grid; place-items: center; }
.access-code-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(17,17,17,.64); backdrop-filter: blur(3px); cursor: pointer; }
.access-code-modal__dialog { position: relative; width: min(510px,100%); padding: 30px; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.32); }
.access-code-modal__dialog header { margin-bottom: 24px; display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.access-code-modal__dialog header .eyebrow { margin-bottom: 7px; }
.access-code-modal__dialog h2 { margin: 0; font: 500 2rem/1.05 Georgia,serif; }
.access-code-modal__dialog header > button { width: 38px; height: 38px; flex: 0 0 auto; border: 0; border-radius: 50%; background: #171717; color: #fff; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.access-code-modal__dialog .portal-form { padding-top: 22px; border-top: 1px solid var(--portal-line); }
body.has-access-code-modal { overflow: hidden; }
.gallery-section { margin-top: 52px; }
.section-heading { margin-bottom: 24px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.section-heading h2 { margin: 0; font: 500 2.2rem/1 Georgia, serif; }
.section-heading > span { color: var(--portal-muted); font-size: .85rem; }
.gallery-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 26px; }
.gallery-card { overflow: hidden; border-radius: 14px; background: #fff; box-shadow: 0 14px 35px rgba(32,27,20,.08); }
.gallery-card__image { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #24211e; text-decoration: none; }
.gallery-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.gallery-card:hover .gallery-card__image img { transform: scale(1.025); }
.gallery-card__placeholder { font: 500 4rem Georgia, serif; color: rgba(255,255,255,.22); }
.gallery-card__count { position: absolute; right: 14px; bottom: 14px; padding: 7px 11px; border-radius: 999px; background: rgba(15,15,15,.76); color: #fff; font-size: .72rem; backdrop-filter: blur(8px); }
.gallery-card__body { padding: 21px; }
.gallery-card__date { margin: 0 0 5px; color: var(--portal-accent-dark); font-size: .72rem; font-weight: 800; letter-spacing: .1em; }
.gallery-card h3 { margin: 0; font: 500 1.55rem Georgia, serif; }
.gallery-card h3 a { text-decoration: none; }
.gallery-card__meta { margin-top: 22px; padding-top: 15px; display: flex; justify-content: space-between; border-top: 1px solid #ece8e1; color: var(--portal-muted); font-size: .8rem; }
.gallery-card__meta a { text-decoration: none; font-size: 1.2rem; color: var(--portal-ink); }
.empty-state { max-width: 620px; margin: 80px auto; padding: 60px 30px; text-align: center; border: 1px solid var(--portal-line); border-radius: 18px; background: rgba(255,255,255,.45); }
.empty-state__icon { display: block; color: var(--portal-accent); font-size: 3rem; }
.empty-state h2 { margin: 14px 0 8px; font: 500 2rem Georgia, serif; }
.empty-state p { color: var(--portal-muted); }
.portal-button--inline { width: fit-content; margin: 25px auto 0; }

.photo-gallery-shell > .back-link { margin-bottom: 30px; }
.photo-gallery-heading { padding-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 35px; border-bottom: 1px solid var(--portal-line); }
.photo-gallery-heading > div:first-child > p:last-child { max-width: 680px; color: var(--portal-muted); }
.selection-counter { min-width: 170px; padding: 17px 21px; border-radius: 12px; background: #fff; text-align: center; }
.selection-counter strong { display: block; font: 500 2rem Georgia, serif; color: var(--portal-accent-dark); }
.selection-counter span { color: var(--portal-muted); font-size: .75rem; }
.gallery-instruction { margin: 28px 0 18px; color: var(--portal-muted); font-size: .86rem; }
.photo-grid { columns: 3 300px; column-gap: 18px; }
.photo-tile { position: relative; margin: 0 0 18px; break-inside: avoid; overflow: hidden; border-radius: 10px; background: #ddd; }
.photo-tile img { display: block; width: 100%; height: auto; }
.photo-tile figcaption { position: absolute; left: 12px; bottom: 10px; padding: 5px 8px; border-radius: 5px; background: rgba(0,0,0,.58); color: #fff; font-size: .7rem; opacity: 0; transition: opacity .2s; }
.photo-tile:hover figcaption { opacity: 1; }
.favorite-button { position: absolute; z-index: 1; top: 12px; right: 12px; width: 42px; height: 42px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(255,255,255,.9); color: #222; cursor: pointer; font-size: 1.35rem; box-shadow: 0 5px 20px rgba(0,0,0,.15); }
.favorite-button.is-selected { background: var(--portal-accent); color: #fff; }

.portrait-configurator { margin: 42px 0 58px; display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(340px, .65fr); gap: 24px; align-items: start; }
.configurator-controls, .configurator-preview { border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 40px rgba(34,28,20,.07); }
.configurator-controls { padding: clamp(24px, 4vw, 42px); }
.configurator-heading { padding-bottom: 26px; border-bottom: 1px solid #ece7df; }
.configurator-heading h2 { margin: 0 0 8px; font: 500 clamp(2rem, 4vw, 3.3rem)/1 Georgia, serif; }
.configurator-heading > p:last-child { margin: 0; color: var(--portal-muted); }
.configurator-step { padding-top: 30px; }
.configurator-step + .configurator-step { margin-top: 30px; border-top: 1px solid #ece7df; }
.configurator-step__title { margin-bottom: 18px; display: flex; align-items: center; gap: 13px; }
.configurator-step__title > span { width: 34px; height: 34px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--portal-ink); color: #fff; font-weight: 800; }
.configurator-step__title strong, .configurator-step__title small { display: block; }
.configurator-step__title small { color: var(--portal-muted); }
.pose-picker, .background-picker { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.pose-option, .background-option { position: relative; padding: 0; overflow: hidden; border: 2px solid transparent; border-radius: 11px; background: #f1ede6; color: var(--portal-ink); cursor: pointer; font: inherit; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pose-option:hover, .background-option:hover { transform: translateY(-2px); box-shadow: 0 9px 24px rgba(35,28,20,.12); }
.pose-option.is-selected, .background-option.is-selected { border-color: var(--portal-accent); box-shadow: 0 0 0 3px rgba(168,121,61,.15); }
.pose-option.is-selected::after, .background-option.is-selected::after { content: "✓"; position: absolute; top: 8px; right: 8px; width: 25px; height: 25px; display: grid; place-items: center; border-radius: 50%; background: var(--portal-accent); color: #fff; font-weight: 900; }
.pose-option img, .background-option img { width: 100%; aspect-ratio: 4 / 3; display: block; object-fit: contain; }
.pose-option img { background-image: linear-gradient(45deg,#e2ded7 25%,transparent 25%),linear-gradient(-45deg,#e2ded7 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e2ded7 75%),linear-gradient(-45deg,transparent 75%,#e2ded7 75%); background-size: 16px 16px; background-position: 0 0,0 8px,8px -8px,-8px 0; }
.background-option img { object-fit: cover; }
.pose-option > span, .background-option > span { padding: 9px 10px; display: block; font-size: .76rem; }
.background-option strong, .background-option small { display: block; }
.background-option small { color: var(--portal-muted); }
.background-tabs { margin-bottom: 15px; display: flex; flex-wrap: wrap; gap: 8px; }
.background-tabs button { padding: 8px 13px; border: 1px solid var(--portal-line); border-radius: 999px; background: #fff; cursor: pointer; color: var(--portal-muted); }
.background-tabs button.is-selected { border-color: var(--portal-ink); background: var(--portal-ink); color: #fff; }
.configurator-preview { position: sticky; top: 22px; padding: 22px; }
.configurator-preview__top { margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 15px; }
.configurator-preview__top .eyebrow { margin-bottom: 3px; }
.configurator-preview__top h3 { margin: 0; font: 500 1.6rem Georgia, serif; }
.live-badge { padding: 6px 9px; border-radius: 999px; background: #e1f1ea; color: var(--portal-success); font-size: .69rem; font-weight: 800; text-transform: uppercase; }
.portrait-stage { position: relative; aspect-ratio: 4 / 5; overflow: hidden; border-radius: 13px; background: #e9e4dc; box-shadow: inset 0 0 0 1px rgba(0,0,0,.08); }
.portrait-stage.is-landscape { aspect-ratio: 5 / 4; }
.portrait-stage img { position: absolute; inset: 0; width: 100%; height: 100%; }
.portrait-stage__background { z-index: 1; object-fit: cover; }
.portrait-stage__subject { z-index: 2; inset: auto 7% 0; width: 86%; height: 94%; object-fit: contain; object-position: center bottom; }
.composition-summary { margin: 18px 0 0; }
.composition-summary div { padding: 9px 0; display: flex; justify-content: space-between; gap: 18px; border-bottom: 1px solid #ece7df; }
.composition-summary dt { color: var(--portal-muted); }
.composition-summary dd { margin: 0; font-weight: 750; text-align: right; }
.preview-note { margin: 14px 0 0; color: var(--portal-muted); font-size: .72rem; }

.settings-shell { width: min(1180px, calc(100% - 48px)); margin: 58px auto 80px; }
.settings-shell > .back-link { margin-bottom: 30px; }
.settings-heading { padding-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 35px; border-bottom: 1px solid var(--portal-line); }
.settings-heading h1 { margin: 0 0 12px; font: 500 clamp(3.2rem, 7vw, 6.2rem)/.92 Georgia, serif; letter-spacing: -.045em; }
.settings-heading > div:first-child > p:last-child { margin: 0; color: var(--portal-muted); }
.settings-member-card { min-width: 270px; padding: 15px 18px; display: flex; align-items: center; gap: 13px; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff; }
.settings-member-card > span { width: 46px; height: 46px; display: grid; place-items: center; flex: 0 0 auto; border-radius: 50%; background: var(--portal-ink); color: #fff; font-weight: 800; letter-spacing: .06em; }
.settings-member-card strong, .settings-member-card small { display: block; }
.settings-member-card small { color: var(--portal-muted); }
.settings-grid { margin-top: 34px; display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(340px, .88fr); gap: 24px; align-items: start; }
.settings-card { padding: clamp(25px, 4vw, 42px); border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(35,28,20,.07); }
.settings-card__heading { padding-bottom: 25px; display: flex; gap: 17px; border-bottom: 1px solid #ece7df; }
.settings-card__heading > span { color: var(--portal-accent); font: 500 1.15rem Georgia, serif; }
.settings-card__heading .eyebrow { margin-bottom: 5px; }
.settings-card__heading h2 { margin: 0 0 8px; font: 500 clamp(1.7rem, 3vw, 2.35rem)/1 Georgia, serif; }
.settings-card__heading p:last-child { margin: 0; color: var(--portal-muted); font-size: .84rem; }
.settings-form { margin-top: 27px; }
.settings-form > div { display: grid; gap: 7px; }
.settings-security-note { margin-top: 27px; padding-top: 20px; display: flex; gap: 12px; border-top: 1px solid #ece7df; color: var(--portal-muted); font-size: .78rem; }
.settings-security-note span { color: var(--portal-accent); }
.settings-security-note p { margin: 0; }
.settings-card--wide { grid-column: 1 / -1; }
.passkey-list { margin-top: 24px; display: grid; gap: 10px; }
.passkey-device { padding: 13px 14px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; border: 1px solid var(--portal-line); border-radius: 11px; background: #faf8f4; }
.passkey-device__icon { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: #e8f3ed; color: var(--portal-success); font-size: 1.25rem; font-weight: 800; }
.passkey-device strong, .passkey-device small { display: block; }
.passkey-device strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .84rem; }
.passkey-device small { color: var(--portal-muted); font-size: .7rem; }
.passkey-device form { margin: 0; }
.passkey-device form button { width: 32px; height: 32px; display: grid; place-items: center; border: 1px solid #e0b7b3; border-radius: 50%; background: #fff; color: var(--portal-error); cursor: pointer; font-size: 1.2rem; }
.passkey-device form button:hover { background: var(--portal-error); color: #fff; }
.portal-form select { width: 100%; height: 54px; padding: 0 16px; border: 1px solid #cfc9c0; border-radius: 9px; background: #fff; color: var(--portal-ink); font: inherit; }
.orders-shell { width: min(1120px, calc(100% - 48px)); margin: 58px auto 80px; }
.orders-heading { padding-bottom: 36px; display: flex; align-items: end; justify-content: space-between; gap: 30px; border-bottom: 1px solid var(--portal-line); }
.orders-heading h1 { margin: 0 0 12px; font: 500 clamp(3.2rem, 7vw, 6rem)/.94 Georgia, serif; }
.orders-heading p:last-child { margin: 0; color: var(--portal-muted); }
.orders-heading > span { color: var(--portal-muted); }
.order-list { margin-top: 30px; display: grid; gap: 20px; }
.order-card { padding: clamp(24px, 4vw, 38px); border: 1px solid var(--portal-line); border-radius: 17px; background: #fff; box-shadow: 0 15px 40px rgba(35,28,20,.07); }
.order-card > header { display: flex; justify-content: space-between; gap: 25px; }
.order-card h2 { margin: 0 0 4px; font: 500 2rem Georgia, serif; }
.order-card header small { color: var(--portal-muted); }
.order-card header > strong { font: 500 1.5rem Georgia, serif; }
.order-products { margin-top: 26px; padding: 20px; border: 1px solid #e7e0d7; border-radius: 14px; background: #faf8f4; }
.order-products__heading { margin-bottom: 15px; display: flex; align-items: end; justify-content: space-between; gap: 20px; }
.order-products__heading small { display: block; margin-bottom: 3px; color: var(--portal-accent); font-size: .66rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; }
.order-products__heading h3 { margin: 0; font: 500 1.35rem Georgia, serif; }
.order-products__heading > span { color: var(--portal-muted); font-size: .75rem; }
.order-product-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.order-product-item { min-width: 0; padding: 10px; display: grid; grid-template-columns: 88px minmax(0,1fr); align-items: center; gap: 14px; border: 1px solid #e8e1d8; border-radius: 11px; background: #fff; }
.order-product-item > div:last-child { min-width: 0; }
.order-product-item small,.order-product-item strong,.order-product-item span { display: block; }
.order-product-item small { margin-bottom: 3px; color: var(--portal-accent); font-size: .66rem; font-weight: 750; text-transform: uppercase; }
.order-product-item strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .83rem; }
.order-product-item span { margin-top: 5px; color: var(--portal-muted); font-size: .72rem; }
.order-product-preview { position: relative; width: 88px; aspect-ratio: 4/5; overflow: hidden; border-radius: 8px; background: #e7e2da; }
.order-product-preview img { position: absolute; inset: 0; width: 100%; height: 100%; }
.order-product-preview__background { z-index: 1; object-fit: cover; }
.order-product-preview__photo { z-index: 2; object-fit: contain; object-position: center bottom; }
.order-product-preview.is-fixed .order-product-preview__photo,.order-product-preview.is-personal .order-product-preview__photo { object-fit: cover; object-position: center; }
.order-products__summary { margin: 14px 0 0; padding-top: 12px; border-top: 1px solid #e6ded4; color: var(--portal-muted); font-size: .73rem; line-height: 1.55; }
.order-progress { margin: 30px 0; display: grid; grid-template-columns: repeat(4,1fr); }
.order-progress span { position: relative; padding-top: 22px; color: var(--portal-muted); font-size: .72rem; text-align: center; border-top: 2px solid #ddd7ce; }
.order-progress i { position: absolute; top: -7px; left: 50%; width: 12px; height: 12px; transform: translateX(-50%); border-radius: 50%; background: #ddd7ce; }
.order-progress span.is-complete { color: var(--portal-success); border-color: var(--portal-success); }
.order-progress span.is-complete i { background: var(--portal-success); }
.tracking-box { padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-radius: 11px; background: #f2eee8; }
.tracking-box small, .tracking-box strong { display: block; }

.package-showcase { margin: 34px 0; padding: clamp(25px, 4vw, 45px); border: 1px solid var(--portal-line); border-radius: 18px; background: #fff; box-shadow: 0 16px 45px rgba(35,28,20,.07); }
.package-showcase__heading { margin-bottom: 28px; display: flex; align-items: end; justify-content: space-between; gap: 30px; }
.package-showcase__heading h2 { margin: 0; font: 500 clamp(2rem,4vw,3.1rem)/1 Georgia,serif; }
.package-showcase__heading > p { max-width: 390px; margin: 0; color: var(--portal-muted); }
.package-card-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 18px; }
.package-card { position: relative; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--portal-line); border-radius: 14px; background: #faf8f4; }
.package-card > .package-card__badge { position: absolute; z-index: 5; top: -15px; left: 50%; padding: 8px 14px; transform: translateX(-50%); border: 1px solid var(--portal-line); border-radius: 8px; background: #fff; font-size: .7rem; font-weight: 850; letter-spacing: .05em; text-transform: uppercase; white-space: nowrap; box-shadow: 0 5px 14px rgba(26,45,50,.08); }
.package-card--A > .package-card__badge { border-color: #9dddec; background: #c7f2fc; }
.package-card--A > .package-card__badge::before { content: "♥"; margin-right: 7px; color: #388ca1; }
.package-card--B > .package-card__badge::before { content: "★"; margin-right: 7px; color: #388ca1; }
.package-card__visual { position: relative; height: 190px; min-height: 190px; margin: 8px -25px 18px; overflow: hidden; background: #e4f5f9; color: #126d83; }
.package-example-art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.package-pose-badge { position: absolute; z-index: 4; left: 16px; bottom: 12px; padding: 9px 14px; border-radius: 8px; background: #bceefa; color: #17272b; font-size: .78rem; font-weight: 800; box-shadow: 0 5px 16px rgba(18,83,99,.12); }
.package-pose-badge b { margin-right: 5px; color: #19758b; font: 500 1.25rem Georgia,serif; }
.package-card header { display: flex; justify-content: space-between; gap: 15px; }
.package-card h3 { margin: 0; font: 750 1.15rem/1.2 inherit; }
.package-card header > strong { white-space: nowrap; }
.package-card ul { padding: 0; margin: 16px 0 22px; list-style: none; color: var(--portal-muted); font-size: .83rem; }
.package-card a { margin-top: auto; padding: 13px 16px; display: flex; justify-content: space-between; border: 1px solid var(--portal-accent); border-radius: 9px; color: var(--portal-accent-dark); font-weight: 800; text-decoration: none; }
.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; }
.sheet-products { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--portal-line); }
.sheet-products__header { margin-bottom: 25px; display: flex; align-items: end; justify-content: space-between; gap: 25px; }
.sheet-products__header > div { display: flex; gap: 28px; }
.sheet-products__header span { padding-bottom: 9px; color: var(--portal-muted); font-weight: 800; }
.sheet-products__header span.is-active { color: var(--portal-ink); border-bottom: 2px solid var(--portal-ink); }
.sheet-products__header p { margin: 0; color: var(--portal-muted); font-size: .84rem; }
.sheet-product-grid { display: grid; grid-template-columns: repeat(auto-fit,minmax(205px,1fr)); gap: 15px; }
.sheet-product-card { display: flex; flex-direction: column; }
.sheet-product-visual { position: relative; height: 230px; padding: 20px; overflow: hidden; border-radius: 13px; background: #e4f5f9; }
.sheet-product-visual p { position: relative; z-index: 2; margin: 0; color: #195f71; line-height: 1.05; }
.sheet-product-visual p strong,.sheet-product-visual p small { display: block; }
.sheet-product-visual p strong { font-size: .9rem; text-transform: capitalize; }
.sheet-product-visual p small { margin-top: 3px; font-weight: 800; }
.sheet-print-layout { position: absolute; left: 50%; top: 54%; display: grid; gap: 4px; transform: translate(-50%,-50%); filter: drop-shadow(0 4px 4px rgba(32,89,103,.18)); }
.sheet-print-layout span { position: relative; display: block; overflow: hidden; border: 3px solid #fff; background: #d4ebf1; }
.sheet-print-layout span i::before { content: ""; position: absolute; left: 50%; top: 22%; width: 30%; aspect-ratio: 1; transform: translateX(-50%); border-radius: 50%; background: #dda37a; }
.sheet-print-layout span i::after { content: ""; position: absolute; left: 28%; right: 28%; bottom: -5%; height: 52%; border-radius: 50% 50% 0 0; background: #3b7e98; }
.sheet-print-layout--AA { grid-template-columns: 76px; }
.sheet-print-layout--AA span { width: 76px; height: 108px; }
.sheet-print-layout--BB { grid-template-columns: repeat(2,70px); }
.sheet-print-layout--BB span { width: 70px; height: 98px; }
.sheet-print-layout--CC { grid-template-columns: repeat(2,55px); }
.sheet-print-layout--CC span { width: 55px; height: 78px; }
.sheet-print-layout--DD { grid-template-columns: repeat(4,38px); }
.sheet-print-layout--DD span { width: 38px; height: 53px; border-width: 2px; }
.sheet-print-layout--EE { grid-template-columns: repeat(4,29px); gap: 3px; }
.sheet-print-layout--EE span { width: 29px; height: 41px; border-width: 2px; }
.sheet-product-card > header { margin: 17px 8px 0; display: flex; justify-content: space-between; gap: 12px; }
.sheet-product-card h3 { margin: 0; font-size: 1rem; }
.sheet-product-card > header strong { white-space: nowrap; }
.sheet-product-card > p { margin: 12px 8px 20px; color: var(--portal-muted); font-size: .82rem; }
.sheet-product-card > a { margin: auto 8px 0; padding: 13px 15px; display: flex; justify-content: space-between; border: 1px solid var(--portal-accent); border-radius: 9px; color: var(--portal-accent-dark); font-weight: 800; text-decoration: none; }
.package-customizer-shell { width: min(1280px,calc(100% - 48px)); margin: 58px auto 80px; }
.package-customizer-heading { padding-bottom: 32px; display: flex; justify-content: space-between; align-items: end; gap: 30px; border-bottom: 1px solid var(--portal-line); }
.package-customizer-heading h1 { margin: 0 0 12px; font: 500 clamp(3rem,7vw,5.8rem)/.94 Georgia,serif; }
.package-customizer-heading p:last-child { margin: 0; color: var(--portal-muted); }
.package-customizer-heading > strong { font: 500 2.1rem Georgia,serif; white-space: nowrap; }
.package-address-warning { margin: 24px 0; padding: 16px 18px; display: flex; align-items: center; gap: 12px; border-radius: 10px; background: #fff2d9; font-size: .84rem; }
.package-address-warning a { margin-left: auto; color: var(--portal-accent-dark); font-weight: 800; }
.package-customizer-form { display: grid; gap: 24px; }
.package-pose-card { padding: clamp(22px,4vw,38px); display: grid; grid-template-columns: minmax(0,1.45fr) minmax(300px,.55fr); gap: 35px; border: 1px solid var(--portal-line); border-radius: 17px; background: #fff; box-shadow: 0 15px 40px rgba(35,28,20,.07); }
.package-pose-controls h2 { margin: 0 0 25px; font: 500 2.3rem Georgia,serif; }
.package-pose-controls h3 { margin: 23px 0 11px; font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }
.package-choice-grid { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 10px; }
.package-choice-grid label { cursor: pointer; }
.package-choice-grid label[hidden], .background-option[hidden] { display: none; }
.package-choice-grid input { position: absolute; opacity: 0; pointer-events: none; }
.package-choice-grid span { height: 100%; padding: 7px; display: block; border: 2px solid transparent; border-radius: 10px; background: #f3f0ea; }
.package-choice-grid input:checked + span { border-color: var(--portal-accent); background: #fff8ee; }
.package-choice-grid img { width: 100%; aspect-ratio: 4/3; display: block; object-fit: contain; border-radius: 6px; }
.package-choice-grid--backgrounds img { object-fit: cover; }
.package-choice-grid small { margin-top: 5px; display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .68rem; }
.package-choice-grid em { margin-top: 4px; display: block; color: var(--portal-accent); font-size: .62rem; font-style: normal; font-weight: 700; }
.package-background-load-more { margin: 18px auto 0; min-width: 240px; padding: 12px 20px; display: block; border: 1px solid var(--portal-accent); border-radius: 999px; background: #fff; color: var(--portal-accent); font: inherit; font-weight: 700; cursor: pointer; }
.package-background-load-more:hover, .package-background-load-more:focus-visible { background: var(--portal-accent); color: #fff; }
.package-background-load-more[hidden] { display: none; }
[data-package-orientation-note] { color: var(--portal-muted); font-size: .68rem; font-weight: 600; letter-spacing: 0; text-transform: none; }
.package-fixed-background-note { display: none; padding: 12px 14px; border-radius: 9px; color: #70440e; background: #f7ead2; }
[data-background-controls].is-fixed .package-choice-grid--backgrounds,
[data-background-controls].is-fixed .background-tabs,
[data-background-controls].is-fixed .package-background-load-more { display: none; }
[data-background-controls].is-fixed .package-fixed-background-note { display: block; }
.package-preview-mode { margin: 10px 0 0; color: var(--portal-accent); font-size: .75rem; font-weight: 700; text-align: center; }
[data-gallery-background-step].is-fixed::after { content: 'Cette photo possède déjà son fond. Elle peut être commandée telle quelle.'; display: block; padding: 12px 14px; border-radius: 9px; color: #70440e; background: #f7ead2; }
[data-gallery-background-step].is-fixed .background-tabs,
[data-gallery-background-step].is-fixed .background-picker { display: none; }
.package-live-preview { position: sticky; top: 110px; padding: 20px; border-radius: 13px; background: #f5f2ed; align-self: start; }
.package-live-preview .portrait-stage { margin-top: 12px; }
.package-order-summary { padding: clamp(25px,4vw,42px); display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: end; border-radius: 17px; background: #20201f; color: #fff; }
.package-order-summary .eyebrow { color: #ddb171; }
.package-order-summary h2 { margin: 0; font: 500 2.5rem Georgia,serif; }
.package-order-summary ul { columns: 2; padding: 0; list-style: none; color: rgba(255,255,255,.75); font-size: .83rem; }
.package-order-summary p:last-child,.package-order-summary small { color: rgba(255,255,255,.56); }
.package-order-summary > div:last-child { min-width: 270px; text-align: right; }
.package-order-summary > div:last-child > strong { display: block; font: 500 2.2rem Georgia,serif; }
.package-order-summary small { display: block; }
.package-order-summary .portal-button { width: 100%; background: #fff; color: #171717; }

.upload-gallery-shell { width: min(1420px,calc(100% - 48px)); margin: 54px auto 80px; }
.upload-gallery-heading { padding-bottom: 32px; display: flex; align-items: end; justify-content: space-between; gap: 35px; border-bottom: 1px solid var(--portal-line); }
.upload-gallery-heading h1 { margin: 0 0 12px; font: 500 clamp(3rem,6vw,5.6rem)/.94 Georgia,serif; letter-spacing: -.04em; }
.upload-gallery-heading p:last-child { margin: 0; color: var(--portal-muted); }
.upload-storage { min-width: 180px; padding: 17px 20px; border: 1px solid var(--portal-line); border-radius: 13px; background: #fff; text-align: center; }
.upload-storage strong { display: block; font: 500 2rem Georgia,serif; }
.upload-storage span,.upload-storage small { display: block; color: var(--portal-muted); }
.upload-projects { margin: 18px 0 0; padding-bottom: 18px; display: flex; gap: 10px; overflow-x: auto; border-bottom: 1px solid var(--portal-line); }
.upload-projects a { min-width: 170px; padding: 12px 15px; display: grid; gap: 3px; border: 1px solid var(--portal-line); border-radius: 10px; background: #fff; color: #171717; text-decoration: none; }
.upload-projects a span { color: var(--portal-muted); font-size: .72rem; }
.upload-projects a.is-active { border-color: var(--portal-accent); background: #f8f0e5; box-shadow: inset 0 0 0 1px var(--portal-accent); }
.upload-project-actions { margin: 20px 0 2px; display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.upload-project-back { color: var(--portal-accent-dark); font-size: .82rem; font-weight: 800; text-decoration: none; }
.upload-project-actions form { margin: 0; }
.upload-project-actions__buttons { display: flex; align-items: center; gap: 10px; }
.upload-project-actions button { padding: 9px 12px; display: inline-flex; align-items: center; gap: 7px; border: 1px solid #c94b45; border-radius: 8px; background: #fff; color: #a52e29; cursor: pointer; font-size: .75rem; font-weight: 800; }
.upload-project-actions .upload-project-add { border-color: #9a6828; background: #171717; color: #fff; }
.upload-project-actions svg,.project-directory-delete svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.project-directory-grid { margin-top: 28px; display: grid; grid-template-columns: repeat(auto-fill,minmax(290px,1fr)); gap: 20px; align-items: start; }
.project-directory-item { position: relative; }
.project-directory-card { display: block; overflow: hidden; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(32,27,20,.07); color: #171717; text-decoration: none; transition: transform .18s ease,box-shadow .18s ease; }
.project-directory-card:hover { transform: translateY(-3px); box-shadow: 0 18px 42px rgba(32,27,20,.13); }
.project-directory-card__cover { position: relative; height: 210px; display: grid; place-items: center; overflow: hidden; background: #e9e4dc; }
.project-directory-card__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.02); transition: opacity 1s ease,transform 10s linear; }
.project-directory-card__cover img.is-active { opacity: 1; transform: scale(1); }
.project-directory-card__cover > span { color: var(--portal-accent); font-size: 4rem; }
.project-directory-card__cover em { position: absolute; z-index: 2; right: 12px; bottom: 12px; padding: 6px 9px; border-radius: 999px; background: rgba(20,20,20,.82); color: #fff; font-size: .68rem; font-style: normal; font-weight: 800; }
.project-directory-card__body { padding: 18px; }
.project-directory-card__body h2 { margin: 0 0 6px; font: 500 1.5rem Georgia,serif; }
.project-directory-card__body p { margin: 0 0 18px; color: var(--portal-muted); font-size: .78rem; }
.project-directory-card__body > span { color: var(--portal-accent-dark); font-size: .76rem; font-weight: 800; }
.project-directory-delete { position: absolute; z-index: 3; top: 12px; right: 12px; margin: 0; }
.project-directory-delete button { width: 38px; height: 38px; display: grid; place-items: center; border: 0; border-radius: 50%; background: rgba(164,39,34,.92); color: #fff; cursor: pointer; box-shadow: 0 6px 18px rgba(0,0,0,.22); }
.project-directory-delete button:hover { background: #8e201c; }
.project-directory-create { min-height: 410px; }
.upload-gallery-toolbar { padding: 22px 0; display: flex; justify-content: space-between; gap: 25px; color: var(--portal-muted); font-size: .82rem; }
.upload-gallery-toolbar p { margin: 0; }
.upload-gallery-toolbar strong { color: var(--portal-accent-dark); }
.photo-bulk-toolbar { margin: 0 0 24px; padding: 16px; display: grid; grid-template-columns: auto auto minmax(150px,1fr) minmax(180px,1.15fr) minmax(135px,.75fr) 90px auto; align-items: end; gap: 12px; border: 1px solid #d9d2c7; border-radius: 13px; background: #fff; box-shadow: 0 10px 28px rgba(35,28,20,.06); }
.photo-bulk-toolbar [hidden] { display: none !important; }
.photo-bulk-toolbar > label:not(.photo-bulk-select-all) { display: grid; gap: 5px; color: var(--portal-muted); font-size: .68rem; font-weight: 800; }
.photo-bulk-toolbar select,.photo-bulk-toolbar input[type=number] { width: 100%; height: 40px; padding: 0 10px; border: 1px solid #d7d1c8; border-radius: 7px; background: #fff; color: var(--portal-ink); font: inherit; }
.photo-bulk-toolbar button { height: 40px; padding: 0 17px; border: 0; border-radius: 7px; background: var(--portal-ink); color: #fff; cursor: pointer; font-weight: 800; }
.photo-bulk-toolbar button:disabled { cursor: not-allowed; opacity: .38; }
.photo-bulk-select-all { align-self: center; display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 800; white-space: nowrap; cursor: pointer; }
.photo-bulk-select-all input { width: 18px; height: 18px; accent-color: var(--portal-accent-dark); }
.photo-bulk-toolbar > strong { align-self: center; color: var(--portal-accent-dark); font-size: .76rem; white-space: nowrap; }
.upload-photo-grid { display: grid; grid-template-columns: repeat(auto-fill,minmax(280px,1fr)); gap: 18px; align-items: start; }
.upload-photo-card,.upload-add-card { min-height: 330px; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 12px 34px rgba(32,27,20,.07); overflow: hidden; }
.upload-photo-card { transition: border-color .18s ease,box-shadow .18s ease,transform .18s ease; }
.upload-photo-card.is-bulk-selected { border-color: var(--portal-accent-dark); box-shadow: 0 0 0 3px rgba(168,121,61,.2),0 14px 36px rgba(32,27,20,.12); transform: translateY(-2px); }
.upload-photo-card__media { position: relative; }
.upload-photo-card__image { position: relative; width: 100%; height: 190px; min-height: 0; padding: 0; overflow: hidden; border: 0; background: #efede9; }
.upload-photo-card__image img { position: absolute; inset: 0; width: 100%; height: 100%; min-width: 0; min-height: 0; display: block; object-fit: contain; }
.upload-photo-card__image > span { position: absolute; right: 10px; bottom: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(20,20,20,.82); color: #fff; font-size: .65rem; }
.upload-photo-card__image > em { position: absolute; left: 10px; top: 10px; padding: 5px 8px; border-radius: 999px; background: rgba(255,255,255,.9); color: var(--portal-muted); font-size: .61rem; font-style: normal; font-weight: 800; }
.upload-photo-card__preview { cursor: zoom-in; }
.upload-photo-card__preview > i { position: absolute; right: 50px; top: 10px; width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: rgba(20,20,20,.78); color: #fff; font-size: 1rem; font-style: normal; opacity: 0; transform: translateY(-4px); transition: opacity .18s ease,transform .18s ease; }
.upload-photo-card__preview:hover > i,.upload-photo-card__preview:focus-visible > i { opacity: 1; transform: translateY(0); }
.upload-photo-card__preview:focus-visible { outline: 3px solid var(--portal-accent); outline-offset: -3px; }
.upload-photo-bulk-check { position: absolute; z-index: 6; left: 10px; bottom: 10px; width: 34px; height: 34px; display: grid; place-items: center; border: 2px solid #fff; border-radius: 50%; background: rgba(20,20,20,.78); color: #fff; cursor: pointer; box-shadow: 0 4px 13px rgba(0,0,0,.2); }
.upload-photo-bulk-check input { position: absolute; opacity: 0; pointer-events: none; }
.upload-photo-bulk-check > span { opacity: 0; font-size: 1rem; font-weight: 900; transform: scale(.65); transition: opacity .15s ease,transform .15s ease; }
.upload-photo-bulk-check:has(input:checked) { border-color: #fff; background: var(--portal-accent-dark); }
.upload-photo-bulk-check:has(input:checked) > span { opacity: 1; transform: scale(1); }
.upload-photo-bulk-check:focus-within { outline: 3px solid rgba(168,121,61,.38); outline-offset: 2px; }
.upload-photo-cover-form { position: absolute; z-index: 4; top: 9px; right: 9px; margin: 0; }
.upload-photo-cover-button { width: 34px; height: 34px; padding: 7px; display: grid; place-items: center; border: 1px solid rgba(255,255,255,.72); border-radius: 50%; background: rgba(20,20,20,.76); color: #fff; cursor: pointer; box-shadow: 0 4px 13px rgba(0,0,0,.2); transition: color .18s ease,background .18s ease,transform .18s ease; }
.upload-photo-cover-button svg { width: 100%; height: 100%; fill: transparent; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; }
.upload-photo-cover-button:hover { transform: translateY(-1px) scale(1.04); }
.upload-photo-cover-button.is-selected { border-color: #f2c45d; background: #9a641e; color: #ffd76e; }
.upload-photo-cover-button.is-selected svg { fill: currentColor; }
.upload-photo-cover-button:disabled { cursor: wait; opacity: .65; }
.upload-photo-card__body { padding: 16px; }
.upload-photo-card__body h2 { margin: 0 0 14px; overflow: hidden; font-size: .86rem; text-overflow: ellipsis; white-space: nowrap; }
.print-selection-row { margin-top: 9px; display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 10px; align-items: center; }
.print-selection-row.is-updating { opacity: .6; pointer-events: none; }
.print-format-form select { width: 100%; height: 38px; padding: 0 9px; border: 1px solid #d7d1c8; border-radius: 7px; background: #fff; }
.print-quantity { display: flex; align-items: center; gap: 8px; }
.print-quantity form { margin: 0; }
.print-quantity button { width: 30px; height: 30px; border: 0; border-radius: 50%; background: #171717; color: #fff; cursor: pointer; font-size: 1.1rem; line-height: 1; }
.print-quantity strong { min-width: 18px; text-align: center; }
.upload-photo-actions { margin-top: 16px; padding-top: 13px; display: flex; justify-content: space-between; gap: 10px; border-top: 1px solid #ece7df; }
.upload-photo-actions form { margin: 0; }
.upload-photo-actions button { padding: 0; border: 0; background: transparent; color: var(--portal-accent-dark); cursor: pointer; font: 800 .72rem/1 inherit; }
.upload-photo-actions button.is-danger { color: var(--portal-error); }
.upload-add-card { padding: 28px; display: flex; align-items: center; justify-content: center; flex-direction: column; border-style: dashed; box-shadow: none; text-align: center; }
.upload-add-card label { display: grid; gap: 8px; cursor: pointer; }
.upload-add-card label span { color: var(--portal-accent); font-size: 2.8rem; }
.upload-add-card label strong { font: 500 1.45rem Georgia,serif; }
.upload-add-card label small { color: var(--portal-muted); }
.upload-add-card input[type=text] { width: 100%; margin: 20px 0 10px; padding: 12px 13px; border: 1px solid #d7d1c8; border-radius: 8px; background: #fff; font: inherit; }
.upload-add-card .upload-file-label { width: 100%; padding: 11px 12px; display: block; border: 1px solid var(--portal-accent); border-radius: 8px; color: var(--portal-accent-dark); font-size: .8rem; font-weight: 800; }
.upload-add-card input[type=file] { width: 100%; margin: 20px 0 10px; color: var(--portal-muted); font-size: .75rem; }
.upload-add-card button { width: 100%; padding: 12px; border: 0; border-radius: 8px; background: #171717; color: #fff; cursor: pointer; font-weight: 800; }
.upload-photos-load-more { grid-column: 1/-1; justify-self: center; margin: 4px 0 10px; min-width: 270px; padding: 12px 22px; border: 1px solid var(--portal-accent); border-radius: 999px; background: #fff; color: var(--portal-accent); cursor: pointer; font: inherit; font-size: .82rem; font-weight: 800; }
.upload-photos-load-more:hover,.upload-photos-load-more:focus-visible { background: var(--portal-accent); color: #fff; }
.upload-photos-load-more[hidden] { display: none; }
.has-upload-modal { overflow: hidden; }
.photo-upload-modal[hidden] { display: none; }
.photo-upload-modal { position: fixed; z-index: 1000; inset: 0; display: grid; place-items: center; padding: 20px; }
.photo-upload-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.52); backdrop-filter: blur(2px); }
.photo-upload-modal__dialog { position: relative; width: min(650px,100%); max-height: calc(100vh - 40px); overflow: hidden; border-radius: 12px; background: #fff; box-shadow: 0 24px 80px rgba(0,0,0,.28); }
.photo-upload-modal__dialog > header { padding: 20px 24px; background: #f0efed; }
.photo-upload-modal__dialog h2 { margin: 0; font-size: 1.2rem; }
.photo-upload-modal__body { max-height: calc(100vh - 180px); padding: 24px; overflow: auto; text-align: center; }
.photo-upload-modal__body > p { margin: 12px 0; font-size: 1.08rem; }
.photo-upload-modal__body > strong { display: block; margin-bottom: 16px; font: 600 1.8rem Georgia,serif; }
.photo-upload-spinner { width: 44px; height: 44px; margin: 0 auto; border: 7px solid #e2e4e7; border-bottom-color: #171717; border-radius: 50%; animation: photo-upload-spin .8s linear infinite; }
@keyframes photo-upload-spin { to { transform: rotate(360deg); } }
.photo-upload-modal.is-complete .photo-upload-spinner { position: relative; border: 3px solid #15994d; animation: none; }
.photo-upload-modal.is-complete .photo-upload-spinner::before { content: ''; position: absolute; left: 11px; top: 8px; width: 16px; height: 9px; border-left: 3px solid #15994d; border-bottom: 3px solid #15994d; transform: rotate(-45deg); }
.photo-upload-progress { height: 14px; overflow: hidden; border-radius: 999px; background: #d9d9d9; }
.photo-upload-progress i { display: block; width: 0; height: 100%; border-radius: inherit; background: var(--portal-accent-dark); transition: width .15s ease; }
.photo-upload-modal.is-complete .photo-upload-progress i { background: #111; }
.photo-preview-modal[hidden] { display: none; }
.photo-preview-modal { position: fixed; inset: 0; z-index: 1200; display: grid; place-items: center; padding: 22px; }
.photo-preview-modal__backdrop { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: rgba(12,11,10,.82); cursor: zoom-out; }
.photo-preview-modal__dialog { position: relative; width: min(1100px,94vw); max-height: 92vh; display: grid; grid-template-rows: auto minmax(0,1fr) auto; overflow: hidden; border-radius: 16px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.45); }
.photo-preview-modal__dialog header { padding: 14px 17px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--portal-line); }
.photo-preview-modal__dialog h2 { margin: 0; font-size: .96rem; }
.photo-preview-modal__dialog header button { width: 38px; height: 38px; border: 0; border-radius: 50%; background: #171717; color: #fff; cursor: pointer; font-size: 1.6rem; line-height: 1; }
.photo-preview-modal__canvas { min-height: 260px; display: grid; place-items: center; overflow: hidden; background: #171717; }
.photo-preview-modal__canvas img { max-width: 100%; max-height: calc(92vh - 125px); display: block; object-fit: contain; }
.photo-preview-modal__dialog footer { padding: 13px 18px; overflow: hidden; color: var(--portal-muted); font-size: .82rem; text-overflow: ellipsis; white-space: nowrap; }
body.has-photo-preview { overflow: hidden; }
.photo-upload-details-toggle { margin: 18px auto 12px; padding: 5px 10px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; color: #171717; font-size: .9rem; }
.photo-upload-details[hidden] { display: none; }
.photo-upload-file { padding: 12px 8px; display: grid; grid-template-columns: minmax(0,1fr) 200px; gap: 20px; align-items: center; border-top: 1px solid #dedbd6; text-align: left; }
.photo-upload-file span { overflow: hidden; color: var(--portal-muted); text-overflow: ellipsis; white-space: nowrap; }
.photo-upload-file > div { height: 8px; overflow: hidden; border-radius: 999px; background: #d5d5d5; }
.photo-upload-file i { display: block; width: 0; height: 100%; background: #171717; transition: width .15s ease; }
.photo-upload-file.is-complete i { background: var(--portal-success); }
.photo-upload-file.has-error span { color: var(--portal-error); }
.photo-upload-file.has-error i { width: 100% !important; background: var(--portal-error); }
.photo-upload-modal__dialog > footer { padding: 14px 24px 18px; display: flex; justify-content: flex-end; }
.photo-upload-modal__dialog > footer button { padding: 8px 4px; border: 0; border-bottom: 1px solid currentColor; background: transparent; cursor: pointer; }
.photo-upload-modal.is-complete .photo-upload-modal__dialog > footer { padding-top: 18px; border-top: 1px solid #dedbd6; }
.photo-upload-modal.is-complete .photo-upload-modal__dialog > footer button { padding: 11px 19px; border: 0; border-radius: 999px; background: #111; color: #fff; font-weight: 800; }
.upload-order-bar { margin-top: 25px; padding: 25px 30px; display: flex; align-items: center; justify-content: space-between; gap: 30px; border-radius: 14px; background: #20201f; color: #fff; }
.upload-order-bar .eyebrow { color: #ddb171; }
.upload-order-bar strong,.upload-order-bar span { display: block; }
.upload-order-bar span { margin-top: 5px; color: rgba(255,255,255,.55); font-size: .78rem; }
.upload-order-bar form { margin: 0; }
.upload-order-bar button { padding: 14px 19px; border: 0; border-radius: 8px; background: #fff; color: #171717; cursor: pointer; font-weight: 850; }
.upload-order-bar button:disabled { opacity: .45; cursor: not-allowed; }
.upload-gallery-layout { display: grid; grid-template-columns: minmax(0,1fr) 245px; gap: 24px; align-items: start; }
.upload-gallery-layout .upload-photo-grid { grid-template-columns: repeat(auto-fill,minmax(250px,1fr)); }
.upload-selection-panel { position: sticky; top: 96px; margin-top: 0; padding: 24px; display: block; border: 1px solid var(--portal-line); border-radius: 14px; background: #fff; box-shadow: 0 14px 40px rgba(32,27,20,.1); color: #171717; text-align: center; }
.upload-selection-panel .eyebrow { margin: 0 0 20px; color: var(--portal-accent-dark); }
.upload-selection-panel > p:not(.eyebrow) { margin: 0 0 4px; font-weight: 750; }
.upload-selection-panel > strong { margin-bottom: 18px; display: block; font: 600 1.45rem Georgia,serif; }
.upload-selection-panel > span { margin: 0; color: var(--portal-muted); font-size: .77rem; }
.upload-selection-panel > b { margin: 5px 0 20px; display: block; font: 600 1.7rem Georgia,serif; }
.upload-selection-panel form,.upload-selection-panel button { width: 100%; }
.upload-selection-panel button { background: var(--portal-accent-dark); color: #fff; }
.has-order-processing-modal { overflow: hidden; }
.order-processing-modal[hidden] { display: none; }
.order-processing-modal { position: fixed; z-index: 1100; inset: 0; display: grid; place-items: center; padding: 20px; }
.order-processing-modal__backdrop { position: absolute; inset: 0; background: rgba(17,17,17,.58); backdrop-filter: blur(3px); }
.order-processing-modal__dialog { position: relative; width: min(590px,100%); padding: 42px; border-radius: 14px; background: #fff; box-shadow: 0 28px 90px rgba(0,0,0,.3); text-align: center; }
.order-processing-modal__dialog .eyebrow { margin: 18px 0 9px; color: var(--portal-accent-dark); }
.order-processing-modal__dialog h2 { margin: 0 0 10px; font: 500 clamp(1.8rem,4vw,2.7rem)/1 Georgia,serif; }
.order-processing-modal__dialog > p:not(.eyebrow) { margin: 0 0 25px; color: var(--portal-muted); }
.order-processing-spinner { width: 48px; height: 48px; margin: 0 auto; border: 7px solid #e4e1dc; border-bottom-color: var(--portal-accent-dark); border-radius: 50%; animation: photo-upload-spin .8s linear infinite; }
.order-processing-progress { height: 14px; overflow: hidden; border-radius: 999px; background: #e3e0db; }
.order-processing-progress i { display: block; width: 5%; height: 100%; border-radius: inherit; background: var(--portal-accent-dark); transition: width .45s ease; }
.order-processing-modal__dialog > strong { margin: 10px 0 18px; display: block; font-size: 1.2rem; }
.order-processing-modal__dialog > small { display: block; color: var(--portal-muted); line-height: 1.5; }

@media (max-width: 980px) {
    .entry-shell { grid-template-columns: 1fr; }
    .entry-story { min-height: 460px; }
    .access-panel { padding: 45px; }
    .register-shell { grid-template-columns: 1fr; }
    .register-intro { max-width: 700px; }
    .back-link { margin-bottom: 28px; }
    .gallery-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .portrait-configurator { grid-template-columns: 1fr; }
    .configurator-preview { position: static; }
    .portrait-stage { max-width: 520px; margin-inline: auto; }
    .settings-grid { grid-template-columns: 1fr; }
    .settings-card--wide { grid-column: 1; }
    .package-card-grid { grid-template-columns: 1fr; }
    .sheet-product-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .package-pose-card { grid-template-columns: 1fr; }
    .package-live-preview { position: static; }
    .upload-gallery-heading { align-items: flex-start; flex-direction: column; }
    .upload-gallery-layout { grid-template-columns: 1fr; }
    .upload-selection-panel { position: static; }
    .photo-bulk-toolbar { grid-template-columns: repeat(3,minmax(0,1fr)); }
}

@media (max-width: 640px) {
    .client-header { min-height: 72px; padding: 12px 18px; }
    .client-admin-preview { padding: 9px 14px; flex-wrap: wrap; gap: 7px 10px; text-align: center; }
    .client-brand img { width: 116px; }
    .client-menu-toggle { width: 46px; height: 46px; padding: 11px; display: grid; align-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.48); border-radius: 50%; background: transparent; color: #fff; cursor: pointer; }
    .client-menu-toggle span { width: 100%; height: 2px; display: block; border-radius: 2px; background: currentColor; transition: transform .2s ease,opacity .2s ease; }
    .client-menu-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
    .client-menu-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
    .client-menu-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
    .client-nav { position: absolute; top: 100%; left: 0; right: 0; padding: 10px 18px 20px; display: none; align-items: stretch; flex-direction: column; gap: 0; background: #121212; border-top: 1px solid rgba(255,255,255,.12); box-shadow: 0 18px 35px rgba(0,0,0,.25); }
    .client-nav.is-open { display: flex; }
    .client-nav a { padding: 14px 4px; display: block; border-bottom: 1px solid rgba(255,255,255,.1); color: #fff; font-size: .95rem; }
    .client-nav .client-nav-button { margin-top: 12px; padding: 12px 18px; border: 1px solid rgba(255,255,255,.48); text-align: center; }
    body.has-client-menu { overflow: hidden; }
    .client-site-footer { margin-top: 45px; }
    .client-site-footer::before { top: 155px; width: 130vw; height: 520px; }
    .client-site-footer__main { width: calc(100% - 40px); min-height: 0; padding: 62px 0 50px; grid-template-columns: 1fr; gap: 45px; }
    .client-site-footer__center { grid-row: 1; }
    .client-site-footer__logo { width: min(280px,85vw); }
    .client-site-footer__logo img { height: 82px; }
    .client-site-footer__center p { margin: 28px 0 22px; font-size: .86rem; }
    .client-site-footer__nav,.client-site-footer__nav--right { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px 24px; text-align: center; }
    .client-site-footer__nav a { font-size: .72rem; }
    .client-site-footer__nav a:hover,.client-site-footer__nav--right a:hover { transform: none; }
    .client-site-footer__bottom { padding: 25px 20px; grid-template-columns: 1fr auto; gap: 20px; }
    .client-site-footer__bottom p { font-size: .72rem; }
    .client-site-footer__facebook { justify-self: end; }
    .client-site-footer__top { display: none; }
    .entry-shell, .register-shell, .dashboard-shell, .photo-gallery-shell { width: min(100% - 24px, 100%); margin-top: 12px; }
    .settings-shell { width: min(100% - 24px, 100%); margin-top: 12px; }
    .entry-shell { border-radius: 13px; }
    .entry-story { min-height: 390px; }
    .entry-story__content { padding: 30px; }
    .entry-story h1 { font-size: 2.65rem; }
    .trust-list { display: grid; }
    .access-panel { padding: 32px 22px; }
    .register-intro h1 { font-size: 3rem; }
    .register-card { padding: 28px 20px; }
    .portal-form--grid { grid-template-columns: 1fr; }
    .portal-form--grid > *, .form-span-2 { grid-column: 1; }
    .dashboard-hero, .photo-gallery-heading { align-items: flex-start; flex-direction: column; }
    .dashboard-hero h1, .photo-gallery-heading h1 { font-size: 3.2rem; }
    .gallery-card-grid { grid-template-columns: 1fr; }
    .selection-counter { width: 100%; }
    .flash-stack { top: 84px; right: 12px; width: calc(100vw - 24px); }
    .portrait-configurator { margin-top: 28px; }
    .configurator-controls, .configurator-preview { border-radius: 13px; }
    .pose-picker, .background-picker { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .settings-heading { align-items: flex-start; flex-direction: column; }
    .settings-heading h1 { font-size: 3.4rem; }
    .settings-member-card { width: 100%; }
    .orders-shell { width: calc(100% - 24px); margin-top: 12px; }
    .orders-heading, .tracking-box { align-items: flex-start; flex-direction: column; }
    .order-card > header,.order-products__heading { align-items: flex-start; flex-direction: column; }
    .order-product-list { grid-template-columns: 1fr; }
    .package-showcase__heading,.package-customizer-heading,.package-address-warning { align-items: flex-start; flex-direction: column; }
    .package-choice-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .package-order-summary { grid-template-columns: 1fr; }
    .package-order-summary > div:last-child { min-width: 0; text-align: left; }
    .package-order-summary ul { columns: 1; }
    .sheet-products__header { align-items: flex-start; flex-direction: column; }
    .sheet-product-grid { grid-template-columns: 1fr; }
    .upload-gallery-shell { width: calc(100% - 24px); margin-top: 12px; }
    .upload-gallery-toolbar,.upload-order-bar { align-items: flex-start; flex-direction: column; }
    .photo-bulk-toolbar { grid-template-columns: 1fr 1fr; }
    .photo-bulk-toolbar > label:not(.photo-bulk-select-all),.photo-bulk-toolbar > button { grid-column: 1 / -1; }
    .photo-bulk-toolbar > strong { justify-self: end; white-space: normal; text-align: right; }
    .upload-photo-grid { grid-template-columns: 1fr; }
    .project-directory-grid { grid-template-columns: 1fr; }
    .upload-project-actions { align-items: flex-start; flex-direction: column; }
    .upload-project-actions__buttons { width: 100%; flex-wrap: wrap; }
    .photo-upload-file { grid-template-columns: minmax(0,1fr) 110px; gap: 12px; }
}
.client-ordering-pause { margin: 22px 0; padding: 18px 20px; display: flex; align-items: center; gap: 14px; border: 1px solid #dfd6ca; border-left: 4px solid #ad762c; border-radius: 14px; background: #fff; box-shadow: 0 12px 30px rgba(55,42,25,.06); }
.client-admin-access-form { margin: 0; }
.client-admin-access-form button { padding: 10px 14px; border: 1px solid #c8954d; border-radius: 999px; background: #c8954d; color: #111; cursor: pointer; font: 800 .76rem/1 inherit; }
.client-admin-access-form button:hover,.client-admin-access-form button:focus-visible { background: #e2b776; }
@media (max-width: 640px) { .client-admin-access-form { margin-top: 10px; } .client-admin-access-form button { width: 100%; padding: 13px 18px; } }
.client-ordering-pause > span { width: 38px; height: 38px; flex: 0 0 auto; display: grid; place-items: center; border-radius: 50%; background: #f3eadf; color: #875718; font-size: 1.35rem; }
.client-ordering-pause div { display: grid; gap: 3px; }
.client-ordering-pause strong { font-size: .95rem; }
.client-ordering-pause p { margin: 0; color: #71675d; line-height: 1.45; }
.digital-product-grid { margin-top: 28px; padding-top: 26px; border-top: 1px solid var(--portal-line); }
.digital-product-card { padding: 24px; display: grid; grid-template-columns: 180px minmax(0,1fr); gap: 26px; align-items: center; border: 1px solid var(--portal-line); border-radius: 16px; background: #eef8fb; }
.digital-product-card__visual { height: 155px; display: grid; place-items: center; border-radius: 12px; background: linear-gradient(145deg,#d5edf4,#fff); }
.digital-product-card__visual svg { width: 82px; height: 82px; fill: none; stroke: #176f88; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.digital-product-card header { display: flex; justify-content: space-between; gap: 20px; align-items: baseline; }
.digital-product-card h3 { margin: 5px 0 8px; font: 500 1.8rem Georgia,serif; }
.digital-product-card p:not(.eyebrow) { margin: 0 0 18px; color: var(--portal-muted); }
.digital-product-card a { padding: 12px 16px; display: flex; justify-content: space-between; border: 1px solid var(--portal-accent); border-radius: 9px; color: var(--portal-accent-dark); text-decoration: none; font-weight: 800; }
@media (max-width: 700px) { .digital-product-card { grid-template-columns: 1fr; } .digital-product-card__visual { height: 120px; } }
.downloads-shell { width: min(1280px,calc(100% - 40px)); margin: 0 auto; padding: 70px 0 90px; }
.downloads-heading { padding-bottom: 32px; display: flex; justify-content: space-between; gap: 30px; align-items: flex-end; border-bottom: 1px solid var(--portal-line); }
.downloads-heading h1 { margin: 4px 0 8px; font: 500 clamp(3rem,7vw,6rem) Georgia,serif; }
.downloads-heading p { margin: 0; color: var(--portal-muted); }
.downloads-heading > span { color: var(--portal-muted); }
.download-list { margin-top: 30px; display: grid; gap: 16px; }
.download-card { padding: 24px; display: grid; grid-template-columns: 64px minmax(0,1fr) minmax(260px,auto); gap: 20px; align-items: center; border: 1px solid var(--portal-line); border-radius: 16px; background: #fff; box-shadow: 0 14px 36px rgba(36,29,20,.06); }
.download-card__icon { width: 58px; height: 58px; display: grid; place-items: center; border-radius: 50%; background: #edf7f3; color: #26745d; font-size: 1.8rem; }
.download-card.is-pending .download-card__icon { background: #f4ecdf; color: #9b6a28; }
.download-card h2 { margin: 4px 0; font: 500 1.55rem Georgia,serif; }
.download-card small,.download-card__actions span { color: var(--portal-muted); }
.download-card__actions { display: flex; justify-content: flex-end; align-items: center; gap: 10px; flex-wrap: wrap; text-align: right; }
.download-card__actions strong { color: #26745d; }
.download-card.is-pending .download-card__actions strong { color: #9b6a28; }
.download-card__actions a { padding: 10px 13px; border-radius: 8px; background: #171717; color: #fff; text-decoration: none; font-size: .78rem; font-weight: 800; }
@media (max-width: 760px) { .downloads-shell { width: min(100% - 24px,1280px); padding-top: 40px; } .downloads-heading { align-items: flex-start; flex-direction: column; } .download-card { grid-template-columns: 52px 1fr; } .download-card__actions { grid-column: 1/-1; justify-content: flex-start; text-align: left; } }
