:root {
    --sf-ink: #171717;
    --sf-muted: #68635f;
    --sf-cream: #f7f3ed;
    --sf-paper: #fffdfa;
    --sf-berry: #b72552;
    --sf-berry-dark: #8f173d;
    --sf-line: rgba(23, 23, 23, .12);
    --sf-radius: 26px;
}

/* Branded authentication pages */
body#login {
    color: var(--sf-ink);
    background: var(--sf-cream);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body#login > .display-flex {
    background: var(--sf-cream);
}

body#login .background-cover {
    position: relative;
    width: 48%;
    max-width: 760px;
    background-image:
        linear-gradient(180deg, rgba(24, 16, 18, .06), rgba(24, 16, 18, .36)),
        url('/content/legacy/themes/Peafowl/theme-img/soberifoto/hero-collage.webp') !important;
    background-position: center;
    background-size: cover;
}

body#login .background-cover::after {
    position: absolute;
    right: 38px;
    bottom: 36px;
    left: 38px;
    color: #fff;
    content: "Фото остаются с вами";
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(30px, 4vw, 54px);
    line-height: 1.02;
    text-shadow: 0 3px 20px rgba(0, 0, 0, .24);
}

body#login .flex-center {
    position: relative;
    width: 52%;
    min-width: 510px;
    padding: 118px 48px 60px;
    background: radial-gradient(circle at 90% 4%, rgba(183, 37, 82, .09), transparent 28%), var(--sf-cream);
}

body#login .flex-center::before {
    position: absolute;
    top: 42px;
    left: 50%;
    width: 210px;
    height: 48px;
    background: url('/content/images/system/default/soberifoto-logo.svg') center / contain no-repeat;
    content: "";
    transform: translateX(-50%);
}

body#login .content-box.card-box {
    width: min(460px, 100%);
    max-width: none;
    padding: 0;
    overflow: visible;
    background: transparent;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}

body#login .fancy-box {
    padding: 36px;
    background: rgba(255, 253, 250, .94);
    border: 1px solid var(--sf-line);
    border-radius: 24px;
    box-shadow: 0 24px 70px rgba(42, 34, 30, .12);
    backdrop-filter: blur(14px);
}

body#login .fancy-box-heading {
    margin: 0 0 12px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 1.15;
}

body#login .fancy-box-heading .fas,
body#login .fancy-box-heading .far {
    color: var(--sf-berry);
    font-family: "Font Awesome 6 Free";
    font-size: 22px;
}

body#login .content-section {
    color: var(--sf-muted);
    line-height: 1.5;
}

body#login .sf-auth-note {
    margin: 22px 0 0;
    color: #8b8580;
    font-size: 12px;
    line-height: 1.55;
}

body#login a {
    color: var(--sf-berry);
    font-weight: 700;
}

body#login .fancy-fieldset {
    overflow: visible;
    border: 0;
}

body#login .fancy-fieldset .input {
    min-height: 50px;
    color: var(--sf-ink);
    background: #fff;
    font-size: 15px;
}

body#login .fancy-fieldset .input:focus {
    background: #fff;
    box-shadow: inset 3px 0 0 var(--sf-berry);
}

body#login .btn.btn-input.accent,
body#login .icon--input-submit {
    color: #fff;
    background: var(--sf-berry);
}

body#login .btn.btn-input.accent {
    min-height: 48px;
    border-radius: 12px;
    box-shadow: 0 10px 24px rgba(183, 37, 82, .2);
    font-weight: 800;
}

body#login .btn.btn-input.accent:hover,
body#login .icon--input-submit:hover {
    background: var(--sf-berry-dark);
}

body#login #top-left {
    top: 18px;
    left: 18px;
}

body#login .sf-auth-home a {
    display: inline-flex;
    height: 42px;
    align-items: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(18, 18, 18, .48);
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 11px;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}

body#login .footer {
    display: none;
}

/* Signup fields are separate, touch-friendly controls rather than legacy joined rows. */
body#login.sf-auth-signup .fancy-fieldset { display: grid; gap: 12px; overflow: visible; border: 0; border-radius: 0; }
body#login.sf-auth-signup .fancy-fieldset .input { box-sizing: border-box; display: block; width: 100%; padding: 0 14px; border: 1px solid rgba(23,23,23,.16); border-radius: 11px; }
body#login.sf-auth-signup .fancy-fieldset .input:focus { border-color: var(--sf-berry); outline: 3px solid rgba(183,37,82,.12); box-shadow: none; }
body#login.sf-auth-signup .input-password { display: block; width: 100%; margin-bottom: 0 !important; }
body#login.sf-auth-signup .input-password-strength { position: static; width: 100%; height: 4px; margin-top: 6px; background: #e8e1dc; border-radius: 99px; }
body#login.sf-auth-signup .input-password-strength span { display: block; height: 100%; background: var(--sf-berry); border-radius: inherit; }
body#login.sf-auth-signup .input-label { padding: 0; }
body#login.sf-auth-signup .checkbox-label label { display: flex; align-items: flex-start; gap: 8px; font-size: 13px; line-height: 1.5; }
body#login.sf-auth-signup .checkbox-label input { flex: 0 0 auto; margin: 3px 0 0; accent-color: var(--sf-berry); }
body#login.sf-auth-signup .btn-container .btn { width: 100%; }
body#login.sf-auth-login .fancy-fieldset { display: grid; gap: 12px; overflow: visible; border: 0; border-radius: 0; }
body#login.sf-auth-login .fancy-fieldset .input { box-sizing: border-box; display: block; width: 100%; padding: 0 14px; border: 1px solid rgba(23,23,23,.16); border-radius: 11px; }
body#login.sf-auth-login .fancy-fieldset .input:focus { border-color: var(--sf-berry); outline: 3px solid rgba(183,37,82,.12); box-shadow: none; }
body#login.sf-auth-login .btn-container { margin-top: 14px; }
body#login.sf-auth-login .btn-container .btn { width: 100%; }
body#login .sf-auth-field { display: grid; gap: 7px; text-align: left; }
body#login .sf-auth-field > span { color: #514c49; font-size: 13px; font-weight: 700; }
body#login .fancy-fieldset .input,
body#login .fancy-fieldset .input:-webkit-autofill,
body#login .fancy-fieldset .input:autofill { width: 100%; color: var(--sf-ink); background: #fff; -webkit-text-fill-color: var(--sf-ink); }
body#login .fancy-fieldset .input:-webkit-autofill { -webkit-box-shadow: 0 0 0 100px #fff inset; }
body#login .fancy-fieldset .input:focus-visible { outline: 3px solid rgba(183,37,82,.13); outline-offset: 1px; }
body#login .sf-auth-field .input { margin: 0; }
body#login .fancy-box-heading > i { display: none; }

@media (max-width: 860px) {
    body#login .background-cover { display: none; }
    body#login .flex-center {
        width: 100%;
        min-width: 0;
        padding: 105px 20px 36px;
    }
    body#login .sf-auth-home a {
        color: var(--sf-ink);
        background: rgba(255, 255, 255, .76);
        border-color: var(--sf-line);
    }
}

@media (max-width: 520px) {
    body#login .flex-center { box-sizing: border-box; align-items: flex-start; padding-right: 14px; padding-left: 14px; }
    body#login .flex-center::before { top: 32px; width: 176px; height: 38px; }
    body#login .content-box.card-box { box-sizing: border-box; width: 100%; margin: 0; }
    body#login .fancy-box { box-sizing: border-box; width: 100%; margin: 0; padding: 26px 20px; border-radius: 20px; }
    body#login .fancy-box-heading { font-size: 26px; }
    body#login .sf-auth-home a { width: 40px; padding: 0; justify-content: center; }
    body#login .sf-auth-home span { display: none; }
}

body#index.landing {
    background: var(--sf-paper);
    color: var(--sf-ink);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    padding-top: 72px;
}

body#index.landing #top-bar {
    height: 72px;
    background: rgba(255, 253, 250, .93);
    border-bottom: 1px solid var(--sf-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

body#index.landing #top-bar .content-width {
    width: min(1180px, calc(100% - 40px));
    height: 72px;
}

body#index.landing .top-bar-left,
body#index.landing .top-bar-right {
    height: 72px;
}

body#index.landing .top-bar-left > li,
body#index.landing .top-bar-right > li {
    height: 72px;
    line-height: 72px;
}

body#index.landing .top-bar-left > li > a,
body#index.landing .top-bar-right > li > a,
body#index.landing .top-bar-right > li > .top-btn-text {
    color: var(--sf-ink);
}

body#index.landing .sf-home-nav {
    margin-left: 38px;
}

body#index.landing .sf-home-nav li {
    display: inline-flex;
    align-items: center;
}

body#index.landing .sf-home-nav a {
    padding: 0 13px;
    color: #4f4b48;
    font-size: 14px;
    font-weight: 600;
}

body#index.landing .sf-home-nav a:hover {
    color: var(--sf-berry);
}

body#index.landing #top-bar-signin a {
    border: 1px solid var(--sf-line);
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    margin-top: 15px;
    padding: 0 16px;
}

body#index.landing [data-nav="upload"] a {
    color: #fff !important;
    background: var(--sf-ink);
    border-radius: 12px;
    height: 42px;
    line-height: 42px;
    margin-top: 15px;
    padding: 0 18px;
}

body#index.landing .footer {
    display: none;
}

.sf-landing *,
.sf-landing *::before,
.sf-landing *::after {
    box-sizing: border-box;
}

.sf-landing {
    overflow: hidden;
}

.sf-shell {
    width: min(1180px, calc(100% - 40px));
    margin: 0 auto;
}

.sf-hero {
    position: relative;
    padding: 68px 0 76px;
    background: radial-gradient(circle at 11% 4%, rgba(183, 37, 82, .10), transparent 29%), linear-gradient(180deg, #fffdfa 0%, #f7f3ed 100%);
}

.sf-hero-grid {
    display: grid;
    grid-template-columns: minmax(0, .93fr) minmax(520px, 1.07fr);
    gap: 58px;
    align-items: center;
}

.sf-eyebrow,
.sf-kicker {
    color: var(--sf-berry);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.sf-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 8px 12px;
    background: rgba(183, 37, 82, .08);
    border-radius: 999px;
}

.sf-eyebrow span {
    width: 7px;
    height: 7px;
    background: var(--sf-berry);
    border-radius: 50%;
}

.sf-hero h1 {
    max-width: 690px;
    margin: 24px 0 22px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(48px, 5.25vw, 76px);
    font-weight: 500;
    letter-spacing: -.045em;
    line-height: .99;
}

.sf-hero h1 em {
    color: var(--sf-berry);
    font-weight: 400;
}

.sf-lead {
    max-width: 610px;
    margin: 0;
    color: #57524f;
    font-size: 18px;
    line-height: 1.65;
}

.sf-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 32px;
}

.sf-btn {
    display: inline-flex;
    min-height: 52px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 24px;
    border: 1px solid transparent;
    border-radius: 14px;
    font-size: 15px;
    font-weight: 750;
    transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}

.sf-btn:hover { transform: translateY(-2px); }

.sf-btn-primary {
    color: #fff !important;
    background: var(--sf-berry);
    box-shadow: 0 12px 30px rgba(143, 23, 61, .22);
}

.sf-btn-primary:hover { background: var(--sf-berry-dark); }

.sf-btn-secondary {
    color: var(--sf-ink) !important;
    background: rgba(255, 255, 255, .7);
    border-color: var(--sf-line);
}

.sf-trust-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 22px;
    margin: 26px 0 0;
    padding: 0;
    color: #625d59;
    font-size: 13px;
    list-style: none;
}

.sf-trust-list i { margin-right: 6px; color: var(--sf-berry); }

.sf-hero-visual { position: relative; min-width: 0; }

.sf-hero-visual::before {
    position: absolute;
    z-index: 0;
    top: -30px;
    right: -35px;
    width: 180px;
    height: 180px;
    border: 1px solid rgba(183, 37, 82, .16);
    border-radius: 50%;
    content: "";
}

.sf-hero-visual img {
    position: relative;
    z-index: 1;
    display: block;
    width: 100%;
    height: 590px;
    object-fit: cover;
    border: 8px solid #fff;
    border-radius: 30px;
    box-shadow: 0 28px 70px rgba(50, 38, 31, .18);
}

.sf-float-card {
    position: absolute;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 15px;
    background: rgba(255, 255, 255, .94);
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 16px;
    box-shadow: 0 16px 42px rgba(36, 26, 22, .18);
    backdrop-filter: blur(12px);
}

.sf-float-card i {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 11px;
    font-size: 18px;
}

.sf-float-card span { display: grid; gap: 2px; }
.sf-float-card strong { font-size: 13px; }
.sf-float-card small { color: var(--sf-muted); font-size: 11px; }
.sf-float-card-qr { bottom: 34px; left: -34px; }
.sf-float-card-download { top: 34px; right: -24px; }

.sf-section { padding: 96px 0; }
.sf-section-heading { max-width: 720px; margin-bottom: 42px; }

.sf-section-heading h2,
.sf-values h2,
.sf-final-cta h2 {
    margin: 11px 0 13px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(36px, 4vw, 54px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.sf-section-heading p,
.sf-values-grid > div > p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 17px;
    line-height: 1.65;
}

.sf-use-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }

.sf-use-card {
    position: relative;
    display: flex;
    min-height: 535px;
    flex-direction: column;
    padding: 38px;
    overflow: hidden;
    border: 1px solid var(--sf-line);
    border-radius: var(--sf-radius);
}

.sf-use-card::after {
    position: absolute;
    right: -80px;
    bottom: -105px;
    width: 260px;
    height: 260px;
    border: 45px solid rgba(255, 255, 255, .4);
    border-radius: 50%;
    content: "";
}

.sf-use-card-event { background: #f4e8eb; }
.sf-use-card-pro { background: #e9eee8; }

.sf-use-icon {
    display: grid;
    width: 54px;
    height: 54px;
    margin-bottom: 26px;
    place-items: center;
    color: #fff;
    background: var(--sf-ink);
    border-radius: 16px;
    font-size: 22px;
}

.sf-card-label {
    color: var(--sf-berry);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.sf-use-card h3 {
    max-width: 510px;
    margin: 12px 0 16px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1.13;
}

.sf-use-card p { color: #5c5753; font-size: 15px; line-height: 1.65; }

.sf-use-card ul {
    display: grid;
    gap: 10px;
    margin: 21px 0 28px;
    padding: 0;
    color: #373330;
    font-size: 14px;
    line-height: 1.45;
    list-style: none;
}

.sf-use-card li::before { margin-right: 9px; color: var(--sf-berry); content: "✓"; font-weight: 800; }

.sf-use-card > a {
    z-index: 1;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-top: auto;
    color: var(--sf-ink);
    font-size: 14px;
    font-weight: 800;
}

.sf-use-card > a:hover { color: var(--sf-berry); }

.sf-how { color: #fff; background: var(--sf-ink); }
.sf-section-heading-light h2, .sf-how .sf-kicker { color: #fff; }
.sf-how .sf-kicker { opacity: .62; }

.sf-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    list-style: none;
}

.sf-steps li {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 20px;
    padding: 28px 32px;
    border-top: 1px solid rgba(255, 255, 255, .17);
}

.sf-steps li + li { border-left: 1px solid rgba(255, 255, 255, .17); }
.sf-steps > li > span { color: #dd95aa; font-family: Georgia, "Times New Roman", serif; font-size: 18px; }
.sf-steps h3 { margin: 0 0 8px; color: #fff; font-size: 18px; }
.sf-steps p { margin: 0; color: rgba(255, 255, 255, .68); font-size: 14px; line-height: 1.6; }

.sf-values { background: var(--sf-cream); }
.sf-values-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 90px; align-items: center; }
.sf-text-link { display: inline-flex; align-items: center; gap: 9px; margin-top: 24px; color: var(--sf-berry); font-weight: 800; }
.sf-value-list { display: grid; gap: 14px; }

.sf-value-list article {
    display: grid;
    grid-template-columns: 52px 1fr;
    gap: 18px;
    padding: 22px;
    background: rgba(255, 255, 255, .78);
    border: 1px solid rgba(23, 23, 23, .08);
    border-radius: 18px;
}

.sf-value-list i {
    display: grid;
    width: 52px;
    height: 52px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 14px;
    font-size: 19px;
}

.sf-value-list h3 { margin: 2px 0 5px; font-size: 16px; }
.sf-value-list p { margin: 0; color: var(--sf-muted); font-size: 14px; line-height: 1.5; }
.sf-faq-grid { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 92px; }
.sf-faq-list details { border-top: 1px solid var(--sf-line); }
.sf-faq-list details:last-child { border-bottom: 1px solid var(--sf-line); }

.sf-faq-list summary {
    position: relative;
    padding: 21px 42px 21px 0;
    cursor: pointer;
    color: var(--sf-ink);
    font-size: 16px;
    font-weight: 750;
    list-style: none;
}

.sf-faq-list summary::-webkit-details-marker { display: none; }
.sf-faq-list summary::after { position: absolute; top: 20px; right: 6px; color: var(--sf-berry); content: "+"; font-size: 22px; font-weight: 400; }
.sf-faq-list details[open] summary::after { content: "−"; }
.sf-faq-list details p { margin: -4px 46px 23px 0; color: var(--sf-muted); font-size: 14px; line-height: 1.65; }

.sf-final-cta { padding: 72px 0; color: #fff; background: var(--sf-berry); }
.sf-final-cta .sf-shell { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(250px, .65fr); gap: 64px; align-items: center; }
.sf-final-cta .sf-kicker, .sf-final-cta h2 { color: #fff; }
.sf-final-cta h2 { max-width: 810px; margin-bottom: 0; }
.sf-final-actions { display: grid; justify-items: start; gap: 16px; }
.sf-btn-light { color: var(--sf-ink) !important; background: #fff; }
.sf-final-actions > a:not(.sf-btn) { color: rgba(255, 255, 255, .86); font-size: 13px; font-weight: 700; }

@media (max-width: 980px) {
    .sf-hero-grid { grid-template-columns: 1fr; gap: 48px; }
    .sf-hero-copy { max-width: 760px; }
    .sf-hero-visual { width: min(760px, 100%); margin: 0 auto; }
    .sf-use-card { padding: 30px; }
    .sf-steps, .sf-values-grid, .sf-faq-grid { grid-template-columns: 1fr; }
    .sf-values-grid, .sf-faq-grid { gap: 42px; }
    .sf-steps li + li { border-left: 0; }
    body#index.landing .sf-home-nav { display: none; }
}

@media (max-width: 680px) {
    body#index.landing { padding-top: 62px; }
    body#index.landing #top-bar,
    body#index.landing #top-bar .content-width,
    body#index.landing .top-bar-left,
    body#index.landing .top-bar-right,
    body#index.landing .top-bar-left > li,
    body#index.landing .top-bar-right > li { height: 62px; }
    body#index.landing #top-bar .content-width, .sf-shell { width: min(100% - 28px, 1180px); }
    body#index.landing #top-bar-signin { display: none; }
    body#index.landing [data-nav="upload"] a { height: 38px; margin-top: 12px; padding: 0 13px; line-height: 38px; }
    body#index.landing [data-nav="upload"] .icon { display: none; }
    body#index.landing [data-nav="upload"] .btn-text { display: inline !important; font-size: 12px; }
    .sf-hero { padding: 48px 0 56px; }
    .sf-hero h1 { font-size: 43px; }
    .sf-lead { font-size: 16px; }
    .sf-btn { width: 100%; }
    .sf-trust-list { display: grid; gap: 10px; }
    .sf-hero-visual img { height: 430px; border-width: 5px; border-radius: 22px; }
    .sf-float-card-download { top: 18px; right: -5px; }
    .sf-float-card-qr { bottom: 18px; left: -4px; }
    .sf-section { padding: 68px 0; }
    .sf-section-heading h2, .sf-values h2, .sf-final-cta h2 { font-size: 37px; }
    .sf-use-grid { grid-template-columns: 1fr; }
    .sf-use-card { min-height: auto; padding: 26px; }
    .sf-use-card h3 { font-size: 27px; }
    .sf-steps li { padding: 24px 4px; }
    .sf-final-cta .sf-shell { grid-template-columns: 1fr; gap: 36px; }
}

/* SoberiFoto albums application */
body#events {
    background: #f7f4ef;
    color: var(--sf-ink);
}

.sf-app {
    min-height: calc(100vh - 50px);
    padding-bottom: 80px;
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.sf-app-shell {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.sf-dashboard,
.sf-create {
    padding-top: 58px;
}

.sf-app-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 38px;
}

.sf-app-heading h1,
.sf-create-intro h1,
.sf-gate-card h1,
.sf-album-hero h1 {
    margin: 10px 0 8px;
    color: var(--sf-ink);
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(38px, 5vw, 60px);
    font-weight: 500;
    letter-spacing: -.035em;
    line-height: 1.04;
}

.sf-app-heading p,
.sf-create-intro > p {
    margin: 0;
    color: var(--sf-muted);
    font-size: 16px;
}

.sf-panel {
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 24px;
    box-shadow: 0 18px 55px rgba(42, 34, 30, .08);
}

.sf-app-empty {
    display: grid;
    min-height: 390px;
    place-items: center;
    align-content: center;
    padding: 46px 24px;
    text-align: center;
    background: #fff;
    border: 1px dashed rgba(23, 23, 23, .18);
    border-radius: 24px;
}

.sf-app-empty-icon {
    display: grid;
    width: 68px;
    height: 68px;
    margin-bottom: 19px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 20px;
    font-size: 27px;
}

.sf-app-empty h2 {
    margin: 0 0 8px;
    color: var(--sf-ink);
    font-size: 22px;
}

.sf-app-empty p {
    max-width: 460px;
    margin: 0 0 24px;
    color: var(--sf-muted);
    font-size: 15px;
    line-height: 1.55;
}

.sf-album-cards {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
}

.sf-album-card {
    overflow: hidden;
    color: var(--sf-ink) !important;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 20px;
    box-shadow: 0 10px 35px rgba(42, 34, 30, .06);
    transition: transform .18s ease, box-shadow .18s ease;
}

.sf-album-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 45px rgba(42, 34, 30, .11);
}

.sf-album-card-cover {
    display: grid;
    min-height: 178px;
    place-items: center;
    align-content: center;
    gap: 12px;
    color: #fff;
}

.sf-album-card-cover.is-event { background: linear-gradient(135deg, #bd3c63, #77223d); }
.sf-album-card-cover.is-client { background: linear-gradient(135deg, #496053, #202b25); }
.sf-album-card-cover i { font-size: 30px; }
.sf-album-card-cover span { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sf-album-card-body { padding: 20px; }
.sf-album-card-body h2 { margin: 0 0 7px; color: var(--sf-ink); font-size: 18px; }
.sf-album-card-body p { margin: 0; color: var(--sf-muted); font-size: 13px; }

.sf-back-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 34px;
    color: var(--sf-muted);
    font-size: 13px;
    font-weight: 700;
}

.sf-create-grid {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(520px, 1.25fr);
    gap: 72px;
    align-items: start;
}

.sf-create-intro {
    position: sticky;
    top: 100px;
}

.sf-create-note {
    display: grid;
    grid-template-columns: 42px 1fr;
    gap: 14px;
    margin-top: 30px;
    padding: 18px;
    background: #f1e6e9;
    border-radius: 16px;
}

.sf-create-note > i {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 12px;
}

.sf-create-note div { display: grid; gap: 3px; }
.sf-create-note strong { font-size: 14px; }
.sf-create-note span { color: var(--sf-muted); font-size: 12px; line-height: 1.45; }
.sf-create-form { display: grid; gap: 22px; padding: 34px; }
.sf-type-picker { display: grid; gap: 10px; margin: 0; padding: 0; border: 0; }
.sf-type-picker legend, .sf-field > span { margin-bottom: 9px; color: var(--sf-ink); font-size: 13px; font-weight: 800; }
.sf-type-option { position: relative; cursor: pointer; }
.sf-type-option input { position: absolute; opacity: 0; }

.sf-type-content {
    display: grid;
    grid-template-columns: 48px 1fr;
    gap: 14px;
    align-items: center;
    padding: 16px;
    border: 1px solid var(--sf-line);
    border-radius: 16px;
    transition: border-color .15s ease, background .15s ease;
}

.sf-type-option input:checked + .sf-type-content {
    background: rgba(183, 37, 82, .055);
    border-color: var(--sf-berry);
    box-shadow: 0 0 0 2px rgba(183, 37, 82, .08);
}

.sf-type-content > i {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 13px;
    font-size: 19px;
}

.sf-type-content > span { display: grid; gap: 4px; }
.sf-type-content strong { font-size: 14px; }
.sf-type-content small { color: var(--sf-muted); font-size: 12px; line-height: 1.4; }
.sf-field { display: grid; }
.sf-field > span small { color: #98918c; font-weight: 500; }

.sf-field input,
.sf-field textarea,
.sf-copy-row input {
    width: 100%;
    padding: 13px 14px;
    color: var(--sf-ink);
    background: #fff;
    border: 1px solid rgba(23, 23, 23, .17);
    border-radius: 12px;
    font: inherit;
    font-size: 15px;
    outline: 0;
}

.sf-field input:focus,
.sf-field textarea:focus {
    border-color: var(--sf-berry);
    box-shadow: 0 0 0 3px rgba(183, 37, 82, .1);
}

.sf-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.sf-submit { width: 100%; border: 0; cursor: pointer; }

.sf-alert {
    padding: 13px 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 650;
}

.sf-alert-error { color: #8b1738; background: #fbe8ed; border: 1px solid #efc2cf; }
.sf-alert-success { color: #285b3d; background: #e7f4ec; border: 1px solid #bdddc9; }

.sf-gate {
    display: grid;
    min-height: calc(100vh - 130px);
    place-items: center;
    padding: 48px 20px;
}

.sf-gate-card {
    width: min(460px, 100%);
    padding: 40px;
    text-align: center;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 26px;
    box-shadow: 0 20px 65px rgba(42, 34, 30, .12);
}

.sf-gate-icon {
    display: grid;
    width: 62px;
    height: 62px;
    margin: 0 auto 22px;
    place-items: center;
    color: #fff;
    background: var(--sf-berry);
    border-radius: 18px;
    font-size: 23px;
}

.sf-gate-card h1 { font-size: 38px; }
.sf-gate-card > p { margin: 0 0 24px; color: var(--sf-muted); line-height: 1.55; }
.sf-gate-card form { display: grid; gap: 14px; text-align: left; }
.sf-gate-card button { width: 100%; border: 0; cursor: pointer; }

.sf-album-hero {
    padding: 64px 0;
    color: #fff;
}

.sf-album-hero.is-event { background: radial-gradient(circle at 82% 0%, rgba(255,255,255,.12), transparent 32%), linear-gradient(135deg, #b72552, #6f1935); }
.sf-album-hero.is-client { background: radial-gradient(circle at 82% 0%, rgba(255,255,255,.10), transparent 32%), linear-gradient(135deg, #43594d, #18211c); }
.sf-album-hero-inner { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; }
.sf-album-kind { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.sf-album-hero h1 { max-width: 780px; margin-top: 14px; color: #fff; }
.sf-album-hero p { max-width: 680px; margin: 13px 0 0; color: rgba(255,255,255,.76); font-size: 16px; line-height: 1.6; }
.sf-album-meta { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: rgba(255,255,255,.78); font-size: 13px; }
.sf-album-meta span { display: inline-flex; align-items: center; gap: 7px; }
.sf-album-content { display: grid; gap: 24px; padding-top: 34px; }

.sf-owner-tools {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 18px;
}

.sf-share-box,
.sf-qr-box {
    display: grid;
    gap: 16px;
    padding: 22px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 18px;
}

.sf-share-box > div:first-child { display: grid; gap: 5px; }
.sf-share-box strong { font-size: 16px; }
.sf-copy-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.sf-copy-row input { background: #f7f4ef; font-size: 13px; }
.sf-copy-row button { padding: 0 16px; cursor: pointer; color: #fff; background: var(--sf-ink); border: 0; border-radius: 11px; font-size: 12px; font-weight: 800; }
.sf-qr-box { grid-template-columns: 112px 180px; align-items: center; }
.sf-qr-box img { display: block; width: 112px; height: 112px; padding: 7px; background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; }
.sf-qr-box div { display: grid; gap: 5px; }
.sf-qr-box strong { font-size: 14px; }
.sf-qr-box span { color: var(--sf-muted); font-size: 12px; line-height: 1.4; }
.sf-qr-box a { color: var(--sf-berry); font-size: 12px; font-weight: 800; }

.sf-upload-panel {
    display: grid;
    grid-template-columns: 58px minmax(260px, 1fr) auto auto;
    gap: 18px;
    align-items: center;
    padding: 24px;
    background: #fff;
    border: 1px solid var(--sf-line);
    border-radius: 20px;
}

.sf-upload-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 16px;
    font-size: 22px;
}

.sf-upload-copy h2 { margin: 0 0 5px; color: var(--sf-ink); font-size: 18px; }
.sf-upload-copy > p { margin: 0; color: var(--sf-muted); font-size: 12px; line-height: 1.5; }
.sf-name-field { max-width: 390px; margin-top: 15px; }
.sf-name-field input { padding: 10px 12px; font-size: 13px; }
.sf-file-button { cursor: pointer; }
.sf-file-button input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.sf-file-button span { display: inline-flex; height: 46px; align-items: center; gap: 8px; padding: 0 16px; border: 1px solid var(--sf-line); border-radius: 12px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sf-file-button:hover span { border-color: var(--sf-berry); color: var(--sf-berry); }
.sf-upload-submit { display: none; border: 0; cursor: pointer; white-space: nowrap; }
.sf-file-button:has(input:valid) + .sf-upload-submit { display: inline-flex; }
.sf-gallery-empty { min-height: 310px; }
.sf-gallery-heading { display: flex; align-items: center; gap: 10px; margin-top: 18px; }
.sf-gallery-heading h2 { margin: 0; color: var(--sf-ink); font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.sf-gallery-heading span { display: grid; min-width: 28px; height: 28px; place-items: center; color: var(--sf-berry); background: rgba(183,37,82,.09); border-radius: 999px; font-size: 12px; font-weight: 800; }

.sf-photo-grid {
    columns: 4 240px;
    column-gap: 12px;
}
.sf-photo-grid.is-single { columns: 1; max-width: 520px; }

.sf-photo-card {
    position: relative;
    margin: 0 0 12px;
    overflow: hidden;
    break-inside: avoid;
    background: #ece8e2;
    border-radius: 12px;
}

.sf-photo-card > .sf-photo-open { display: block; position: relative; }
.sf-photo-card img { display: block; width: 100%; height: auto; transition: transform .24s ease; }
.sf-photo-card:hover img { transform: scale(1.018); }
.sf-photo-download { position: absolute; right: 10px; bottom: 10px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: rgba(18,18,18,.76); border-radius: 10px; opacity: 0; transition: opacity .18s ease; }
.sf-photo-card:hover .sf-photo-download { opacity: 1; }
.sf-photo-card figcaption { position: absolute; bottom: 10px; left: 10px; max-width: calc(100% - 64px); padding: 7px 9px; overflow: hidden; color: #fff; background: rgba(18,18,18,.72); border-radius: 8px; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }

@media (max-width: 900px) {
    .sf-album-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .sf-create-grid { grid-template-columns: 1fr; gap: 34px; }
    .sf-create-intro { position: static; }
    .sf-owner-tools { grid-template-columns: 1fr; }
    .sf-qr-box { grid-template-columns: 112px 1fr; }
    .sf-upload-panel { grid-template-columns: 58px 1fr auto; }
    .sf-upload-submit { grid-column: 2 / -1; width: 100%; }
}

@media (max-width: 620px) {
    .sf-app-shell { width: min(100% - 28px, 1120px); }
    .sf-dashboard, .sf-create { padding-top: 34px; }
    .sf-app-heading { align-items: flex-start; flex-direction: column; }
    .sf-app-heading .sf-btn { width: 100%; }
    .sf-album-cards { grid-template-columns: 1fr; }
    .sf-create-form { padding: 22px; }
    .sf-form-row { grid-template-columns: 1fr; }
    .sf-gate-card { padding: 28px 22px; }
    .sf-album-hero { padding: 44px 0; }
    .sf-album-hero-inner { align-items: flex-start; flex-direction: column; }
    .sf-album-hero .sf-btn { width: 100%; }
    .sf-owner-tools { margin-top: -4px; }
    .sf-copy-row { grid-template-columns: 1fr; }
    .sf-copy-row button { height: 42px; }
    .sf-qr-box { grid-template-columns: 88px 1fr; }
    .sf-qr-box img { width: 88px; height: 88px; }
    .sf-upload-panel { grid-template-columns: 46px 1fr; align-items: start; padding: 18px; }
    .sf-upload-icon { width: 46px; height: 46px; border-radius: 13px; }
    .sf-file-button, .sf-upload-submit { grid-column: 1 / -1; width: 100%; }
    .sf-file-button span { width: 100%; justify-content: center; }
    .sf-photo-grid { columns: 2 145px; gap: 8px; }
    .sf-photo-card { margin-bottom: 8px; border-radius: 9px; }
    .sf-photo-download { opacity: 1; }
}

/* Product shell: replaces the public Chevereto navigation and footer */
body.sf-site-page {
    --menuBackground: #fff;
    --menuText: var(--sf-ink);
    --menuItemText: var(--sf-ink);
    --menuItemHoverText: var(--sf-ink);
    --menuItemHoverBackground: #f3efea;
    --menuSeparator: var(--sf-line);
    color: var(--sf-ink);
    background: var(--sf-paper);
    font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

body.sf-site-page:not(#index) {
    padding-top: 68px;
}

.sf-top-bar#top-bar {
    position: fixed;
    z-index: 1000;
    top: 0;
    right: 0;
    left: 0;
    height: 68px;
    color: var(--sf-ink);
    background: rgba(255, 253, 250, .94);
    border-bottom: 1px solid var(--sf-line);
    box-shadow: none;
    backdrop-filter: blur(18px);
}

.sf-top-bar#top-bar::before { display: none; }

.sf-top-bar .sf-top-bar-inner {
    display: flex;
    width: min(1180px, calc(100% - 40px));
    height: 68px;
    align-items: center;
    margin: 0 auto;
    padding: 0;
}

.sf-top-bar#top-bar #logo {
    display: block;
    position: static;
    flex: 0 0 auto;
    width: auto;
    height: 38px;
    text-align: left;
    inset: auto;
}

.sf-top-bar#top-bar #logo a,
.sf-top-bar#top-bar #logo img {
    display: block;
    position: static;
    width: 181px;
    max-width: none;
    height: 38px;
    object-fit: contain;
    margin: 0;
    transform: none;
}

.sf-primary-nav {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 36px;
    min-width: 0;
}

.sf-primary-nav a {
    padding: 9px 12px;
    color: #4f4b48;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
}

.sf-primary-nav a:hover,
.sf-primary-nav a.is-current {
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .07);
}

.sf-top-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
    flex: 0 0 auto;
    min-width: 0;
}

.sf-top-actions > a,
.sf-user-menu > .top-btn-text {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 15px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 800;
    line-height: 42px;
}

.sf-top-create {
    color: #fff !important;
    background: var(--sf-ink);
}

.sf-top-create:hover { background: #34312f; }

.sf-top-login {
    color: var(--sf-ink) !important;
    background: transparent;
    border: 1px solid var(--sf-line);
}

.sf-top-login:hover { color: var(--sf-berry) !important; border-color: rgba(183, 37, 82, .35); }

.sf-user-menu {
    position: relative;
    height: 42px;
    flex: 0 0 auto;
    cursor: pointer;
}

.sf-user-menu > .top-btn-text {
    color: var(--sf-ink);
    background: #fff;
    border: 1px solid var(--sf-line);
}

.sf-user-menu .sf-user-avatar {
    display: inline-grid;
    flex: 0 0 28px;
    width: 28px;
    height: 28px;
    place-items: center;
    margin: 0;
    color: var(--sf-berry);
    background: rgba(183, 37, 82, .09);
    border-radius: 50%;
    font-size: 13px;
    line-height: 1;
}
.sf-user-menu .sf-user-avatar i { display: block; width: auto; height: auto; margin: 0; line-height: 1; }
.sf-user-menu .sf-user-trigger { box-sizing: border-box; min-width: 42px; white-space: nowrap; }
.sf-user-menu .sf-user-trigger:focus-visible { outline: 3px solid rgba(183,37,82,.2); outline-offset: 2px; }
.sf-user-menu .btn-text { max-width: 170px; overflow: hidden; text-overflow: ellipsis; }

.sf-user-menu .sf-user-chevron { color: #958d87; font-size: 9px; }
.sf-user-menu .pop-box { top: 52px; min-width: 220px; }
.sf-user-menu .pop-box-inner { border-radius: 14px; box-shadow: 0 18px 45px rgba(32, 27, 25, .14); }
.sf-user-menu .pop-box { z-index: 1300; background: #fff; border: 1px solid #e8e3df; border-radius: 14px; opacity: 1; backdrop-filter: none; }
.sf-user-menu .pop-box-inner { color: var(--sf-ink); background: #fff !important; opacity: 1 !important; backdrop-filter: none !important; }
.sf-user-menu .pop-box li, .sf-user-menu .pop-box a { background: #fff; }
.sf-user-menu .pop-box li:hover, .sf-user-menu .pop-box li:hover a { color: var(--sf-ink); background: #f3efea; }
body.sf-site-page .pop-box-menu li.current a, body.sf-site-page .pop-box-menu li.current a:hover { color: var(--sf-ink); background: #f3efea; }
body.sf-site-page .pop-box-menu a:focus-visible { color: var(--sf-ink); background: #f3efea; outline: 2px solid #b6aba1; outline-offset: -2px; }

.sf-site-footer {
    margin-top: 72px;
    color: #eee8e2;
    background: #1e1c1b;
}

.sf-site-footer-inner {
    display: grid;
    grid-template-columns: minmax(220px, 1fr) auto auto;
    width: min(1120px, calc(100% - 40px));
    min-height: 108px;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
    margin: 0 auto;
}

.sf-footer-brand { display: grid; gap: 7px; min-width: 0; }
.sf-site-footer strong { color: #fff; font-family: Georgia, "Times New Roman", serif; font-size: 20px; font-weight: 400; }
.sf-site-footer span { color: #aaa29c; font-size: 12px; }
.sf-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; }
.sf-site-footer a { color: #eae6e1; font-size: 12px; font-weight: 600; }
.sf-site-footer a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.sf-site-footer small { color: #aaa29c; font-size: 11px; white-space: nowrap; }
body#login .sf-site-footer { display: none; }
body#index .sf-site-footer { margin-top: 0; }

/* Album cards with real covers */
.sf-album-card-cover { position: relative; overflow: hidden; }
.sf-album-card-cover { height: 190px; min-height: 0; }
.sf-album-card-cover > img { position: absolute; z-index: 2; inset: 0; display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.sf-album-card:hover .sf-album-card-cover > img { transform: scale(1.025); }
.sf-album-card-cover > span {
    position: absolute;
    z-index: 3;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 10px;
    color: #fff;
    background: rgba(22, 20, 19, .68);
    border: 1px solid rgba(255, 255, 255, .16);
    border-radius: 999px;
    font-size: 11px;
    font-weight: 800;
    backdrop-filter: blur(10px);
}
.sf-album-card-cover > span i { font-size: 13px; line-height: 1; }
.sf-album-card-cover > i { position: relative; z-index: 1; }

/* Premium album presentation */
.sf-album-hero { position: relative; overflow: hidden; min-height: 320px; display: flex; align-items: flex-end; }
.sf-album-hero.has-cover { min-height: clamp(360px, 52vw, 600px); background-image: linear-gradient(180deg, rgba(12, 10, 10, .10) 22%, rgba(12, 10, 10, .78) 100%), var(--sf-album-cover); background-position: var(--sf-album-cover-x, 50%) var(--sf-album-cover-y, 38%); background-size: cover; }
.sf-album-hero.has-cover::after { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0,0,0,.28), transparent 55%); content: ""; pointer-events: none; }
.sf-album-hero-inner { position: relative; z-index: 1; width: min(1120px, calc(100% - 40px)); margin: 0 auto; padding-top: 64px; padding-bottom: 58px; }
.sf-album-hero h1 { font-size: clamp(42px, 6vw, 76px); line-height: .98; text-shadow: 0 4px 32px rgba(0, 0, 0, .24); }
.sf-album-hero .sf-btn-light { flex: 0 0 auto; }
.sf-album-content { padding-bottom: 18px; }

.sf-photo-card { background: #e7e2dc; }
.sf-photo-open {
    display: block;
    width: 100%;
    margin: 0;
    padding: 0;
    overflow: hidden;
    background: transparent;
    border: 0;
    cursor: zoom-in;
}
.sf-photo-open img { display: block; width: 100%; height: auto; transition: transform .28s ease, filter .28s ease; }
.sf-photo-card:hover .sf-photo-open img { transform: scale(1.018); filter: brightness(.93); }
.sf-photo-download { z-index: 2; }

html.sf-lightbox-open { overflow: hidden; }
.sf-lightbox {
    position: fixed;
    inset: 0;
    width: 100%;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    padding: 0;
    overflow: hidden;
    color: #fff;
    background: #111;
    border: 0;
}
.sf-lightbox::backdrop { background: rgba(0, 0, 0, .94); }
.sf-lightbox-bar {
    position: absolute;
    z-index: 4;
    top: 0;
    right: 0;
    left: 0;
    display: flex;
    height: 72px;
    align-items: center;
    justify-content: space-between;
    padding: 0 24px;
    background: linear-gradient(180deg, rgba(0,0,0,.72), transparent);
    font-size: 12px;
    font-weight: 800;
}
.sf-lightbox-bar > div { display: flex; align-items: center; gap: 10px; }
.sf-lightbox-bar button,
.sf-lightbox-download {
    display: inline-flex;
    height: 42px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 14px;
    color: #fff;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.16);
    border-radius: 11px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 800;
    backdrop-filter: blur(8px);
}
.sf-lightbox-bar button { width: 42px; padding: 0; font-size: 18px; }
.sf-lightbox-stage { position: absolute; inset: 72px 82px 48px; display: flex; align-items: center; justify-content: center; min-width: 0; min-height: 0; }
.sf-lightbox-stage img { display: block; max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; box-shadow: 0 16px 60px rgba(0,0,0,.24); }
.sf-lightbox-caption { position: absolute; right: 82px; bottom: 16px; left: 82px; overflow: hidden; color: rgba(255,255,255,.70); font-size: 12px; line-height: 18px; text-align: center; text-overflow: ellipsis; white-space: nowrap; }
.sf-lightbox-nav { position: absolute; z-index: 3; top: 50%; display: grid; width: 48px; height: 64px; place-items: center; color: #fff; background: rgba(255,255,255,.1); border: 0; border-radius: 12px; cursor: pointer; font-size: 18px; transform: translateY(-50%); backdrop-filter: blur(8px); }
.sf-lightbox-nav svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.sf-lightbox-prev { left: 18px; }
.sf-lightbox-next { right: 18px; }

/* Photographer controls and dependable uploads */
.sf-album-settings { overflow: hidden; background: #fff; border: 1px solid var(--sf-line); border-radius: 18px; }
.sf-album-settings > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 24px; cursor: pointer; list-style: none; font-size: 15px; font-weight: 800; }
.sf-album-settings > summary::-webkit-details-marker { display: none; }
.sf-album-settings > summary span { display: inline-flex; align-items: center; gap: 10px; }
.sf-album-settings > summary > i { color: var(--sf-muted); transition: transform .2s; }
.sf-album-settings[open] > summary > i { transform: rotate(180deg); }
.sf-album-settings form { display: grid; gap: 18px; padding: 2px 24px 24px; }
.sf-settings-grid, .sf-settings-pin { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; }
.sf-settings-pin { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sf-album-settings select { width: 100%; min-height: 48px; padding: 0 13px; background: #fff; border: 1px solid var(--sf-line); border-radius: 11px; font: inherit; }
.sf-settings-check { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 700; }
.sf-settings-check input { width: 18px; height: 18px; accent-color: var(--sf-berry); }
.sf-settings-hint { margin: -5px 0 0; color: var(--sf-muted); font-size: 12px; line-height: 1.5; }
.sf-cover-position { display: grid; gap: 12px; }
.sf-cover-position > strong { font-size: 13px; }
.sf-cover-position-preview { height: 160px; background-image: linear-gradient(180deg, rgba(0,0,0,.08), rgba(0,0,0,.34)), var(--sf-cover-preview); background-size: cover; background-position: var(--sf-cover-x) var(--sf-cover-y); border-radius: 12px; }
.sf-cover-position-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.sf-cover-position-controls label { display: grid; gap: 6px; color: var(--sf-muted); font-size: 12px; font-weight: 700; }
.sf-cover-position-controls input { width: 100%; accent-color: var(--sf-berry); }
.sf-cover-position > p { margin: 0; color: var(--sf-muted); font-size: 12px; }
.sf-album-settings .sf-btn { width: fit-content; border: 0; cursor: pointer; }
.sf-danger-zone { display: grid; gap: 10px; margin: 0 24px 24px; padding: 18px; background: #fff7f7; border: 1px solid #f0d6db; border-radius: 12px; }
.sf-danger-zone > strong { color: #9d2141; font-size: 14px; }
.sf-danger-zone p { margin: 0; color: #5a4c4f; font-size: 12px; line-height: 1.55; }
.sf-danger-zone form { display: flex; gap: 8px; padding: 0; }
.sf-danger-zone input { flex: 1; min-width: 0; padding: 0 12px; border: 1px solid #e6bfc9; border-radius: 9px; font: inherit; }
.sf-danger-zone button { min-height: 42px; padding: 0 14px; color: #fff; background: #a62346; border: 0; border-radius: 9px; cursor: pointer; font-size: 12px; font-weight: 800; }
.sf-photo-owner-actions { position: absolute; z-index: 3; top: 10px; right: 10px; display: flex; gap: 6px; }
.sf-photo-owner-actions button { display: grid; width: 35px; height: 35px; place-items: center; color: #fff; background: rgba(18,18,18,.76); border: 1px solid rgba(255,255,255,.18); border-radius: 9px; cursor: pointer; }
.sf-photo-owner-actions button:hover { background: var(--sf-berry); }
.sf-photo-owner-actions button:disabled { opacity: .48; cursor: default; }
.sf-upload-status { display: none; grid-column: 1 / -1; padding: 9px 12px; color: var(--sf-ink); background: #f7f4ef; border-radius: 10px; font-size: 13px; }
.sf-upload-status:not(:empty) { display: block; }
.sf-upload-status.is-error { color: #a2163a; background: #fff0f3; }
.sf-upload-panel.is-uploading .sf-upload-submit { display: inline-flex; opacity: .6; cursor: wait; }

/* Calm, product-specific treatment for the only legacy account page we expose */
body#settings .top-sub-bar { display: none; }
body#settings .top-sub-bar .content-width,
body#settings > .content-width { width: min(720px, calc(100% - 40px)); }
body#settings > .content-width { margin-top: 0; padding-top: 42px; }
body#settings .form-content { padding: 30px; background: #fff; border: 1px solid var(--sf-line); border-radius: 22px; box-shadow: 0 18px 50px rgba(42,34,30,.08); }
body#settings .form-content::before { display: block; margin: 0 0 26px; color: var(--sf-ink); content: "Сменить пароль"; font-family: Georgia, "Times New Roman", serif; font-size: 34px; line-height: 1.1; }
body#settings .form-content .c12 { float: none; width: 100%; }
body#settings .text-input { min-height: 48px; padding: 0 13px; border: 1px solid rgba(23,23,23,.15); border-radius: 11px; }
body#settings .btn-container--fixed { position: static; margin-top: 18px; background: transparent; box-shadow: none; }
body#settings .btn-input.accent { min-height: 46px; background: var(--sf-berry); border-radius: 11px; }

@media (max-width: 900px) {
    .sf-primary-nav { display: none; }
}

@media (max-width: 760px) {
    body.sf-site-page:not(#index) { padding-top: 60px; }
    .sf-top-bar#top-bar { height: 60px; }
    .sf-top-bar .sf-top-bar-inner { width: calc(100% - 28px); height: 60px; }
    .sf-top-bar#top-bar #logo, .sf-top-bar#top-bar #logo a, .sf-top-bar#top-bar #logo img { width: 152px; height: 32px; }
    .sf-top-actions { gap: 7px; }
    .sf-top-actions > a, .sf-user-menu > .top-btn-text { height: 38px; padding: 0 11px; line-height: 38px; }
    .sf-user-menu { height: 38px; }
    .sf-user-menu > .sf-user-trigger { width: 38px; padding: 0 !important; }
    .sf-user-menu .sf-user-avatar { flex-basis: 27px; width: 27px; height: 27px; }
    .sf-user-menu .sf-user-chevron { display: none; }
    .sf-top-bar-shared .sf-top-login span { display: none; }
    .sf-top-bar-shared .sf-top-login { width: 38px; padding: 0; }
    .sf-site-footer-inner { grid-template-columns: 1fr; min-height: 0; align-items: start; justify-content: stretch; gap: 22px; padding: 33px 0 29px; }
    .sf-footer-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; justify-content: stretch; padding: 18px 0; border-top: 1px solid rgba(255,255,255,.14); border-bottom: 1px solid rgba(255,255,255,.14); }
    .sf-footer-brand span { max-width: 280px; line-height: 1.5; }
    .sf-album-hero.has-cover { min-height: 440px; }
    .sf-album-hero h1 { font-size: clamp(38px, 12vw, 58px); }
    .sf-album-hero-inner { padding-top: 46px; padding-bottom: 34px; }
    .sf-lightbox-stage { inset: 64px 10px 112px; }
    .sf-lightbox-nav { top: auto; bottom: 16px; width: 44px; height: 44px; }
    .sf-lightbox-caption { right: 70px; bottom: 76px; left: 70px; }
    .sf-lightbox-prev { left: 18px; }
    .sf-lightbox-next { right: 18px; }
    .sf-lightbox-download span { display: none; }
    .sf-user-menu .btn-text { display: none !important; }
    body#settings .form-content { padding: 22px 18px; }
}

@media (max-width: 480px) {
    .sf-top-create span { display: none; }
    .sf-top-create { width: 38px; padding: 0 !important; }
    .sf-top-login span { display: none; }
    .sf-top-login { width: 38px; padding: 0 !important; }
    .sf-album-hero.has-cover { min-height: 390px; }
    .sf-owner-tools, .sf-upload-panel { gap: 12px; }
    .sf-lightbox-bar { padding: 0 12px; }
    .sf-album-settings > summary { padding: 17px; }
    .sf-album-settings form { padding: 0 17px 18px; }
    .sf-danger-zone { margin: 0 17px 18px; }
    .sf-danger-zone form { flex-direction: column; padding: 0; }
    .sf-danger-zone input { min-height: 42px; }
    .sf-settings-grid, .sf-settings-pin { grid-template-columns: 1fr; }
    .sf-cover-position-controls { grid-template-columns: 1fr; }
    .sf-album-settings .sf-btn { width: 100%; }
}

/* Public plans and owner workspace */
.sf-pricing, .sf-owner { padding-top: 70px; padding-bottom: 20px; }
.sf-pricing-head { max-width: 700px; margin: 0 auto 44px; text-align: center; }
.sf-pricing-head h1, .sf-owner-head h1 { margin: 12px 0 14px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(38px, 5vw, 62px); font-weight: 500; letter-spacing: -.035em; line-height: 1.05; }
.sf-pricing-head p, .sf-owner-head p { margin: 0; color: var(--sf-muted); font-size: 16px; line-height: 1.65; }
.sf-pricing-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 20px; max-width: 960px; margin: 0 auto; }
.sf-plan { display: flex; min-width: 0; flex-direction: column; padding: 34px; background: #fff; border: 1px solid var(--sf-line); border-radius: 22px; }
.sf-plan-pro { background: #f0ede6; border-color: #bcb2a5; }
.sf-plan-heading { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.sf-plan h2 { margin: 0; font-size: 23px; letter-spacing: -.02em; }
.sf-plan-tag { width: fit-content; padding: 6px 10px; color: #4c4942; background: #fff; border: 1px solid #ddd6cb; border-radius: 999px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.sf-plan-price { display: flex; align-items: baseline; gap: 10px; margin-top: 24px; font-size: 52px; font-weight: 600; letter-spacing: -.05em; line-height: 1.1; }
.sf-plan-price small { color: var(--sf-muted); font-size: 13px; font-weight: 400; letter-spacing: 0; }
.sf-plan > p { margin: 15px 0 24px; color: var(--sf-muted); font-size: 14px; line-height: 1.6; }
.sf-plan .sf-btn { box-sizing: border-box; width: 100%; margin: 0 0 26px; cursor: pointer; border-radius: 11px; }
.sf-plan-pro .sf-btn { color: #fff !important; background: var(--sf-ink); box-shadow: none; }
.sf-plan-pro .sf-btn:hover { background: #38342f; }
.sf-plan-limits { display: grid; gap: 0; margin: 0; border-top: 1px solid #ded8d0; }
.sf-plan-limits > div { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; padding: 15px 0; border-bottom: 1px solid #e8e3dc; }
.sf-plan-limits dt { color: var(--sf-muted); font-size: 13px; }
.sf-plan-limits dd { margin: 0; font-size: 15px; font-weight: 650; text-align: right; }
.sf-plan .sf-plan-storage { margin: 18px 0 0; color: #645d55; font-size: 12px; line-height: 1.65; }
.sf-pricing-shared { max-width: 960px; margin: 34px auto 0; padding: 26px 0; border-top: 1px solid var(--sf-line); border-bottom: 1px solid var(--sf-line); }
.sf-pricing-shared h2 { margin: 0 0 17px; font-size: 15px; font-weight: 700; }
.sf-pricing-shared ul { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 13px 28px; margin: 0; padding: 0; list-style: none; }
.sf-pricing-shared li { position: relative; padding-left: 24px; color: #625b54; font-size: 13px; line-height: 1.5; }
.sf-pricing-shared li::before { position: absolute; left: 0; color: #4f6651; content: "✓"; font-weight: 700; }
.sf-pricing-beta { display: flex; align-items: center; justify-content: space-between; gap: 28px; max-width: 960px; margin: 28px auto 0; padding: 26px 28px; background: #e9eee7; border: 1px solid #dbe2d6; border-radius: 16px; }
.sf-pricing-beta h2 { margin: 0 0 7px; font-family: Georgia, "Times New Roman", serif; font-size: 25px; font-weight: 400; }
.sf-pricing-beta p { max-width: 590px; margin: 0; color: #586151; font-size: 13px; line-height: 1.65; }
.sf-pricing-beta .sf-btn { flex: 0 0 auto; min-height: 44px; padding: 0 18px; font-size: 13px; border-color: #cbd4c4; border-radius: 10px; }
.sf-pricing-note { max-width: 960px; margin: 22px auto 0; color: var(--sf-muted); font-size: 12px; line-height: 1.65; }
.sf-pro-dialog .sf-dialog-actions { justify-content: stretch; }
.sf-pro-dialog .sf-dialog-actions .sf-btn { flex: 1; min-height: 48px; font-size: 13px; }
.sf-owner-head { display: flex; align-items: end; justify-content: space-between; gap: 20px; margin-bottom: 30px; }
.sf-owner-stats { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; margin-bottom: 25px; }
.sf-owner-stats > div { display: grid; gap: 7px; padding: 24px; background: #fff; border: 1px solid var(--sf-line); border-radius: 16px; }
.sf-owner-stats strong { font-size: 27px; line-height: 1; }
.sf-owner-stats span { color: var(--sf-muted); font-size: 12px; }
.sf-owner-panel { padding: 28px; background: #fff; border: 1px solid var(--sf-line); border-radius: 18px; }
.sf-owner-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 15px; }
.sf-owner-panel h2 { margin: 0; font-size: 22px; }
.sf-owner-panel p { color: var(--sf-muted); }
.sf-owner-panel-head a { color: var(--sf-berry); font-size: 13px; font-weight: 700; }
.sf-owner-filters { display: grid; grid-template-columns: minmax(0,1fr) 220px auto; align-items: end; gap: 12px; margin: 20px 0; }
.sf-owner-filters label { display: grid; gap: 7px; font-size: 12px; font-weight: 700; }
.sf-owner-filters input, .sf-owner-filters select { box-sizing: border-box; width: 100%; min-height: 48px; padding: 0 12px; background: #fff; border: 1px solid var(--sf-line); border-radius: 10px; font: inherit; }
.sf-owner-filters .sf-btn { min-height: 48px; cursor: pointer; }
.sf-owner-table-wrap { max-width: 100%; overflow-x: auto; }
.sf-owner-table { width: 100%; border-collapse: collapse; text-align: left; font-size: 13px; }
.sf-owner-table th, .sf-owner-table td { padding: 13px 11px; border-bottom: 1px solid var(--sf-line); white-space: nowrap; }
.sf-owner-table th { color: var(--sf-muted); font-size: 11px; text-transform: uppercase; }
.sf-owner-table td:first-child { min-width: 180px; white-space: normal; }
.sf-owner-table a { color: var(--sf-berry); font-weight: 700; }
.sf-owner-table small { display: block; margin-top: 4px; color: var(--sf-muted); }
.sf-owner-footnote { margin: 14px 0 0; font-size: 12px; }
.sf-owner-tabs { display: flex; width: fit-content; max-width: 100%; gap: 4px; margin: 0 0 26px; padding: 4px; overflow-x: auto; background: #ece7e0; border: 1px solid #e2dbd2; border-radius: 12px; }
.sf-owner-tabs a { display: inline-flex; min-height: 39px; align-items: center; justify-content: center; padding: 0 19px; color: #70675d; border-radius: 8px; font-size: 13px; font-weight: 600; white-space: nowrap; }
.sf-owner-tabs a:hover { color: var(--sf-ink); }
.sf-owner-tabs a.is-current, .sf-owner-tabs a[aria-current="page"] { color: var(--sf-ink); background: #fff; box-shadow: 0 1px 4px rgba(46, 36, 26, .08); }
.sf-owner-section { margin: 0 0 24px; }
.sf-owner-row-actions { display: flex; min-width: 140px; max-width: 250px; align-items: center; flex-wrap: wrap; gap: 7px; white-space: normal; }
.sf-owner-row-actions .sf-btn, .sf-owner-row-actions > button { box-sizing: border-box; min-height: 34px; padding: 7px 10px; border: 1px solid var(--sf-line); border-radius: 8px; font-family: inherit; font-size: 11px; font-weight: 600; line-height: 1.4; cursor: pointer; }
.sf-owner-row-actions .sf-btn:hover { transform: none; }
.sf-owner-badge { display: inline-flex; align-items: center; width: fit-content; padding: 4px 8px; color: #555f4d; background: #edf0e9; border: 1px solid #dce3d5; border-radius: 6px; font-size: 11px; font-weight: 650; line-height: 1.2; white-space: nowrap; }
.sf-owner-badge.sf-owner-status-blocked, .sf-owner-status-blocked { color: #9a3045; background: #fbebee; border-color: #edcfd6; }
.sf-owner-user-usage { display: grid; gap: 5px; min-width: 150px; max-width: 225px; color: var(--sf-muted); font-size: 12px; font-variant-numeric: tabular-nums; line-height: 1.45; white-space: normal; }
.sf-owner-user-usage strong { color: var(--sf-ink); font-weight: 600; }
.sf-owner-user-usage progress { display: block; width: 100%; height: 4px; overflow: hidden; color: #6d7967; background: #eeeae4; border: 0; border-radius: 999px; appearance: none; }
.sf-owner-user-usage progress::-webkit-progress-bar { background: #eeeae4; border-radius: 999px; }
.sf-owner-user-usage progress::-webkit-progress-value { background: #6d7967; border-radius: 999px; }
.sf-owner-user-usage progress::-moz-progress-bar { background: #6d7967; border-radius: 999px; }
.sf-owner-change-form { min-width: 0; font-size: 12px; white-space: normal; }
.sf-owner-change-form summary { display: inline-flex; min-height: 34px; box-sizing: border-box; align-items: center; padding: 7px 10px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 8px; font-size: 11px; font-weight: 600; cursor: pointer; list-style: none; }
.sf-owner-change-form summary::-webkit-details-marker { display: none; }
.sf-owner-change-form summary::after { margin-left: 8px; content: "+"; font-size: 14px; line-height: 1; }
.sf-owner-change-form[open] summary::after { content: "−"; }
.sf-owner-change-form form { display: grid; gap: 8px; margin-top: 9px; }
.sf-owner-change-form select { box-sizing: border-box; width: 100%; min-height: 38px; padding: 7px 8px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 7px; font-family: inherit; font-size: 12px; color-scheme: light; }
.sf-owner-change-form .sf-btn { min-height: 35px; padding: 7px 10px; border-radius: 7px; font-size: 11px; }
.sf-owner .sf-owner-danger { color: #96354a !important; background: #fff7f8; border-color: #ebd5da; cursor: pointer; }
.sf-owner .sf-owner-danger:hover { color: #7e263a !important; background: #fbe9ed; border-color: #dba8b4; }
.sf-owner-table td { vertical-align: top; }
.sf-owner-table td:first-child { max-width: 250px; overflow-wrap: anywhere; }
.sf-owner-table td small, .sf-owner-table td .sf-owner-user-name, .sf-owner-table td .sf-owner-email { max-width: 235px; white-space: normal; overflow-wrap: anywhere; }
.sf-owner-pagination { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 23px; font-size: 12px; }
.sf-owner-pagination a { display: inline-flex; min-height: 38px; align-items: center; justify-content: center; padding: 0 13px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 8px; font-weight: 600; }
.sf-owner-pagination a:hover { border-color: #b6aba1; }
.sf-owner-pagination span { color: var(--sf-muted); }
.sf-dashboard-selections { margin: 4px 0 28px; }
.sf-dashboard-selection-list { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 10px; margin-top: 13px; }
.sf-dashboard-selection-list a { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-width: 0; padding: 15px 18px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; }
.sf-dashboard-selection-list a:hover { border-color: rgba(183,37,82,.45); }
.sf-dashboard-selection-list a > span { display: grid; gap: 3px; min-width: 0; }
.sf-dashboard-selection-list strong, .sf-dashboard-selection-list small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-dashboard-selection-list strong { font-size: 14px; }
.sf-dashboard-selection-list small { color: var(--sf-muted); font-size: 12px; }
.sf-dashboard-selection-list i { color: var(--sf-berry); font-size: 11px; }

@media (max-width: 760px) {
    .sf-pricing, .sf-owner { padding-top: 42px; }
    .sf-pricing-grid { grid-template-columns: 1fr; }
    .sf-plan { padding: 26px; }
    .sf-pricing-shared ul { grid-template-columns: 1fr; }
    .sf-pricing-beta { align-items: stretch; flex-direction: column; padding: 23px; gap: 18px; }
    .sf-pricing-beta .sf-btn { width: 100%; }
    .sf-owner-head { align-items: start; flex-direction: column; }
    .sf-owner-stats { grid-template-columns: repeat(2,minmax(0,1fr)); }
    .sf-owner-panel { padding: 20px 14px; }
    .sf-owner-panel-head { align-items: start; flex-direction: column; }
    .sf-owner-filters { grid-template-columns: 1fr; }
    .sf-owner-filters .sf-btn { width: 100%; }
    .sf-owner-tabs { width: 100%; box-sizing: border-box; }
    .sf-owner-tabs a { flex: 1; padding-right: 13px; padding-left: 13px; }
    .sf-owner-table-wrap { width: 100%; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
    .sf-owner-table th, .sf-owner-table td { padding: 12px 9px; }
    .sf-owner-table td:first-child { min-width: 155px; max-width: 190px; }
    .sf-owner-table td small, .sf-owner-table td .sf-owner-email { max-width: 190px; }
    .sf-owner-row-actions { min-width: 150px; }
    .sf-owner-row-actions .sf-btn { width: auto; }
    .sf-owner-table-wrap { overflow: visible; }
    .sf-owner-table, .sf-owner-table tbody, .sf-owner-table tr, .sf-owner-table td { display: block; width: 100%; }
    .sf-owner-table thead { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
    .sf-owner-table tr { margin-bottom: 12px; padding: 10px 14px; border: 1px solid var(--sf-line); border-radius: 12px; }
    .sf-owner-table td, .sf-owner-table td:first-child { box-sizing: border-box; min-width: 0; padding: 8px 0; border-bottom: 0; white-space: normal; }
    .sf-owner-table td:not(:first-child) { display: grid; grid-template-columns: 84px minmax(0,1fr); gap: 8px; font-size: 12px; }
    .sf-owner-table td:not(:first-child)::before { content: attr(data-label); color: var(--sf-muted); font-weight: 700; }
    .sf-owner-table td:first-child { padding-bottom: 12px; border-bottom: 1px solid var(--sf-line); font-size: 14px; }
    .sf-dashboard-selection-list { grid-template-columns: 1fr; }
}
@media (max-width: 420px) {
    .sf-owner-stats > div { padding: 18px 12px; }
    .sf-owner-stats strong { font-size: 23px; }
}

/* Focused legal reading pages */
.sf-legal { max-width: 850px; padding-top: 58px; padding-bottom: 10px; }
.sf-legal h1 { margin: 12px 0 8px; font-family: Georgia, "Times New Roman", serif; font-size: clamp(36px,5vw,58px); font-weight: 500; letter-spacing: -.035em; line-height: 1.08; }
.sf-legal-date { margin: 0 0 30px !important; color: var(--sf-muted); font-size: 13px !important; }
.sf-legal h2 { margin: 34px 0 10px; font-size: 22px; line-height: 1.25; }
.sf-legal p, .sf-legal li { color: #46413e; font-size: 16px; line-height: 1.72; }
.sf-legal ul { padding-left: 23px; }
.sf-legal li + li { margin-top: 9px; }
.sf-legal a { color: var(--sf-berry); text-decoration: underline; text-underline-offset: 3px; }
.sf-legal-contact { display: grid; gap: 8px; margin: 28px 0; padding: 24px; background: #fff; border: 1px solid var(--sf-line); border-radius: 15px; }
.sf-legal-contact strong { font-size: 17px; }
.sf-legal-contact span { color: var(--sf-muted); }
@media (max-width: 760px) { .sf-legal { padding-top: 38px; } .sf-legal p, .sf-legal li { font-size: 15px; } }

/* Client proofing: unobtrusive selection controls, clear submission state */
.sf-photo-favorite { position: absolute; z-index: 3; top: 10px; left: 10px; display: grid; width: 40px; height: 40px; place-items: center; color: #fff; background: rgba(18,18,18,.76); border: 1px solid rgba(255,255,255,.18); border-radius: 11px; cursor: pointer; font-size: 17px; }
.sf-photo-favorite:hover, .sf-photo-favorite.is-active { background: var(--sf-berry); }
.sf-photo-favorite:disabled, .sf-lightbox-favorite:disabled { opacity: .55; cursor: wait; }
.sf-lightbox-favorite.is-active { color: #fff; background: var(--sf-berry); }
.sf-selection-guide { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 18px 0 12px; padding: 18px 20px; background: #fff; border: 1px solid var(--sf-line); border-radius: 14px; }
.sf-selection-guide strong { font-size: 15px; }
.sf-selection-guide p { margin: 4px 0 0; color: var(--sf-muted); font-size: 13px; line-height: 1.5; }
.sf-selection-guide a { flex: 0 0 auto; color: var(--sf-berry); font-size: 13px; font-weight: 800; }
.sf-selection-status { min-height: 22px; color: var(--sf-muted); font-size: 12px; }
.sf-selection-panel { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 30px; margin-top: 32px; padding: 30px; background: #fff; border: 1px solid var(--sf-line); border-radius: 18px; }
.sf-selection-panel h2 { margin: 10px 0; font-family: Georgia, "Times New Roman", serif; font-size: 30px; font-weight: 500; }
.sf-selection-panel p { color: var(--sf-muted); font-size: 14px; line-height: 1.6; }
.sf-selection-panel form { display: grid; gap: 13px; }
.sf-selection-panel .sf-alert { grid-column: 1 / -1; }
.sf-selection-panel .sf-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.sf-selection-panel .sf-btn[hidden] { display: none; }
.sf-owner-selections { margin: 30px 0; }
.sf-owner-selections > p { color: var(--sf-muted); font-size: 14px; }
.sf-selection-list { display: grid; gap: 10px; margin-top: 15px; }
.sf-selection-record { background: #fff; border: 1px solid var(--sf-line); border-radius: 13px; }
.sf-selection-record summary { display: flex; align-items: center; gap: 12px; padding: 16px 18px; cursor: pointer; list-style: none; }
.sf-selection-record summary::-webkit-details-marker { display: none; }
.sf-selection-record summary strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sf-selection-record summary span { margin-left: auto; color: var(--sf-muted); font-size: 12px; white-space: nowrap; }
.sf-selection-record summary i { color: var(--sf-muted); font-size: 12px; }
.sf-selection-record[open] summary i { transform: rotate(180deg); }
.sf-selection-record-body { padding: 0 18px 18px; }
.sf-selection-record-body p { margin: 0 0 14px; color: var(--sf-muted); }
.sf-selection-record-body textarea { width: 100%; min-height: 90px; font: 12px/1.5 ui-monospace,monospace; }
.sf-selection-record-body .sf-btn { min-height: 42px; margin-top: 12px; cursor: pointer; }
.sf-owner-preview-link { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; gap: 8px; align-self: center; padding: 0 17px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 11px; font-size: 13px; font-weight: 800; white-space: nowrap; }
.sf-owner-preview-link:hover { color: var(--sf-berry); }
.sf-preview-banner { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 13px 17px; background: #fff; border: 1px solid var(--sf-line); border-radius: 12px; font-size: 13px; }
.sf-preview-banner span { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.sf-preview-banner a { color: var(--sf-berry); font-weight: 800; }
@media (max-width: 760px) {
    .sf-selection-panel { grid-template-columns: 1fr; gap: 14px; padding: 22px 18px; }
    .sf-selection-guide { align-items: start; flex-direction: column; }
    .sf-selection-record summary { flex-wrap: wrap; }
    .sf-selection-record summary span { margin-left: 0; }
    .sf-owner-preview-link { width: 100%; }
    .sf-preview-banner { align-items: start; flex-direction: column; }
}

/* Gallery actions, review before submission, and non-blocking file operations */
[hidden] { display: none !important; }
.sf-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; }
.sf-hero-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 10px; }
.sf-hero-actions button { border: 1px solid rgba(255,255,255,.44); cursor: pointer; }
.sf-album-hero .sf-hero-actions { display: grid; grid-template-columns: 1fr; flex: 0 0 190px; margin-top: 0; }
.sf-album-hero .sf-hero-actions > .sf-btn { box-sizing: border-box; width: 100%; min-height: 52px; margin: 0; padding: 0 20px; border: 1px solid transparent; font-family: inherit; font-size: 15px; font-weight: 750; line-height: 1.25; white-space: nowrap; }
.sf-gallery-toolbar { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin: 25px 0 15px; }
.sf-gallery-toolbar .sf-gallery-heading { margin-top: 8px; }
.sf-gallery-toolbar .sf-back-link { margin: 0; }
.sf-gallery-toolbar-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.sf-gallery-toolbar-actions .sf-btn { min-height: 42px; cursor: pointer; }
.sf-gallery-toolbar-actions .sf-btn span { display: inline-grid; min-width: 21px; height: 21px; place-items: center; padding: 0 5px; background: #f1ebe7; border-radius: 50%; font-size: 11px; }
.sf-account-usage { margin: 0 0 28px; padding: 22px 24px; color: var(--sf-ink); background: #fff; border: 1px solid var(--sf-line); border-radius: 16px; }
.sf-usage-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; margin-bottom: 19px; font-size: 14px; line-height: 1.4; }
.sf-usage-head h2, .sf-usage-head p { margin: 0; font-size: inherit; }
.sf-usage-head strong { font-weight: 700; }
.sf-usage-head a { color: var(--sf-berry); font-size: 12px; font-weight: 650; text-decoration: underline; text-underline-offset: 3px; }
.sf-usage-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.sf-usage-grid > div { display: flex; min-width: 0; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 8px 14px; }
.sf-usage-grid strong { color: var(--sf-ink); font-size: 17px; font-weight: 600; font-variant-numeric: tabular-nums; }
.sf-usage-grid span { color: var(--sf-muted); font-size: 12px; line-height: 1.4; }
.sf-usage-grid progress { display: block; flex: 0 0 100%; width: 100%; height: 5px; overflow: hidden; color: #6d7967; background: #eeeae4; border: 0; border-radius: 999px; appearance: none; }
.sf-usage-grid progress::-webkit-progress-bar { background: #eeeae4; border-radius: 999px; }
.sf-usage-grid progress::-webkit-progress-value { background: #6d7967; border-radius: 999px; }
.sf-usage-grid progress::-moz-progress-bar { background: #6d7967; border-radius: 999px; }
.sf-retention-note { margin: 15px 0 0; color: var(--sf-muted); font-size: 12px; line-height: 1.65; }
.sf-retention-note a { color: var(--sf-berry); text-decoration: underline; text-underline-offset: 3px; }
.sf-albums-sort, .sf-photo-sort { display: flex; min-width: 0; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin: 0; }
.sf-albums-sort { justify-content: flex-end; margin: 0 0 18px; }
.sf-photo-sort { align-items: stretch; flex-direction: column; gap: 5px; }
.sf-albums-sort label, .sf-photo-sort label { margin: 0; color: var(--sf-muted); font-size: 12px; font-weight: 500; line-height: 1.5; }
.sf-albums-sort select, .sf-photo-sort select { box-sizing: border-box; width: auto; min-width: 220px; max-width: 100%; min-height: 42px; margin: 0; padding: 9px 12px; color: var(--sf-ink); background-color: #fff; border: 1px solid var(--sf-line); border-radius: 9px; font-family: inherit; font-size: 13px; font-weight: 500; line-height: 1.4; color-scheme: light; cursor: pointer; }
.sf-albums-sort select:focus-visible, .sf-photo-sort select:focus-visible { border-color: #968a80; outline: 3px solid rgba(150, 138, 128, .16); outline-offset: 1px; }
.sf-photo-sort select:disabled { opacity: .6; cursor: wait; }
.sf-gallery-toolbar-actions:has(.sf-photo-sort) { align-items: flex-end; }
.sf-owner-bar { display: flex; width: min(1120px, calc(100% - 40px)); min-width: 0; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px 20px; margin: 0 auto; padding: 11px 0; color: var(--sf-muted); font-size: 12px; line-height: 1.5; }
.sf-owner-bar a { display: inline-flex; min-height: 32px; align-items: center; gap: 7px; color: #635a51; font-size: 12px; font-weight: 600; }
.sf-owner-bar a:hover { color: var(--sf-ink); text-decoration: underline; text-underline-offset: 3px; }
.sf-owner-bar a:focus-visible { outline: 2px solid #b6aba1; outline-offset: 4px; border-radius: 3px; }
.sf-owner-bar .sf-back-link { margin: 0 auto 0 0; }
.sf-selection-email { margin: 0 0 12px; color: var(--sf-muted); font-size: 13px; line-height: 1.6; overflow-wrap: anywhere; }
.sf-selection-email a { color: var(--sf-ink); text-decoration: underline; text-underline-offset: 3px; }
.sf-photo-share { position: absolute; z-index: 3; right: 54px; bottom: 10px; display: grid; width: 36px; height: 36px; place-items: center; color: #fff; background: rgba(18,18,18,.82); border: 1px solid rgba(255,255,255,.2); border-radius: 10px; cursor: pointer; opacity: 0; transition: opacity .18s ease; }
.sf-photo-card:hover .sf-photo-share, .sf-photo-share:focus-visible { opacity: 1; }
.sf-photo-card:not(:has(.sf-photo-download)) .sf-photo-share { right: 10px; }
.sf-selection-status.is-error { color: #a2163a; }
.sf-selection-thumbnails { display: grid; grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); gap: 9px; margin: 14px 0 18px; }
.sf-selection-thumbnails a { overflow: hidden; aspect-ratio: 1; background: #ede9e4; border-radius: 9px; }
.sf-selection-thumbnails img { width: 100%; height: 100%; object-fit: cover; }
.sf-btn-danger { color: #fff !important; background: #a3213c !important; border: 1px solid #a3213c !important; }
.sf-btn-danger:hover { background: #81192f !important; }
.sf-btn-danger:disabled { opacity: .55; cursor: not-allowed; }
.sf-delete-toolbar { position: sticky; z-index: 12; top: 74px; display: flex; align-items: center; gap: 10px; margin: 12px 0; padding: 12px 14px; background: #fff; border: 1px solid #e9d8dc; border-radius: 12px; box-shadow: 0 8px 30px rgba(0,0,0,.08); }
.sf-delete-toolbar span { margin-right: auto; font-size: 13px; }
.sf-delete-toolbar .sf-btn { min-height: 40px; cursor: pointer; }
.sf-photo-select { position: absolute; z-index: 5; top: 11px; left: 11px; display: none; width: 33px; height: 33px; cursor: pointer; }
.sf-photo-select input { position: absolute; inset: 0; width: 33px; height: 33px; margin: 0; opacity: 0; cursor: pointer; }
.sf-photo-select > span:not(.sf-sr-only) { display: grid; width: 33px; height: 33px; place-items: center; color: transparent; background: rgba(20,20,20,.6); border: 2px solid #fff; border-radius: 8px; }
.sf-photo-select input:checked + span { color: #fff; background: #a3213c; }
.sf-delete-mode .sf-photo-select { display: block; }
.sf-delete-mode .sf-photo-card:has(.sf-photo-select input:checked) { outline: 3px solid #a3213c; outline-offset: -3px; }
.sf-upload-progress { display: flex; grid-column: 1 / -1; align-items: center; gap: 12px; }
.sf-upload-progress-track { flex: 1; height: 7px; overflow: hidden; background: #eee7e2; border-radius: 999px; }
.sf-upload-progress-track span { display: block; width: 0; height: 100%; background: var(--sf-berry); border-radius: inherit; transition: width .12s linear; }
.sf-upload-progress > span { min-width: 38px; color: var(--sf-ink); font-size: 12px; font-weight: 800; text-align: right; }
dialog.sf-action-dialog { box-sizing: border-box; position: fixed; inset: auto; top: 50%; left: 50%; width: min(560px, calc(100vw - 32px)); max-width: none; max-height: calc(100dvh - 32px); margin: 0 !important; padding: 25px; overflow: auto; color: var(--sf-ink); background: #fff !important; border: 1px solid #e5dfd8; border-radius: 18px; box-shadow: 0 28px 90px rgba(0,0,0,.23); transform: translate(-50%, -50%); }
dialog.sf-action-dialog:not([open]) { display: none; }
.sf-action-dialog::backdrop { background: rgba(24,20,18,.63); }
.sf-dialog-head { display: flex; align-items: start; justify-content: space-between; gap: 20px; }
.sf-dialog-head h2 { margin: 0; font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; }
.sf-dialog-head button { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; background: #f4f1ed; border: 0; border-radius: 50%; cursor: pointer; }
.sf-action-dialog > p { color: var(--sf-muted); font-size: 13px; line-height: 1.55; }
.sf-action-dialog .sf-copy-row { margin: 18px 0 22px; }
.sf-action-dialog .sf-copy-row input { min-width: 0; height: 44px; padding: 0 11px; border: 1px solid var(--sf-line); border-radius: 9px; }
.sf-share-channels { display: flex; flex-wrap: wrap; gap: 9px; }
.sf-share-channels a { padding: 10px 12px; color: var(--sf-ink); background: #f5f1ed; border-radius: 9px; font-size: 12px; font-weight: 700; }
.sf-delete-preview { display: grid; max-height: 45dvh; gap: 8px; overflow: auto; }
.sf-delete-preview-item { display: flex; min-width: 0; align-items: center; gap: 10px; padding: 7px; border: 1px solid var(--sf-line); border-radius: 9px; cursor: pointer; }
.sf-delete-preview-item input { width: 18px; height: 18px; flex: 0 0 18px; accent-color: #a3213c; }
.sf-delete-preview-item img { width: 50px; height: 50px; flex: 0 0 50px; object-fit: cover; border-radius: 6px; }
.sf-delete-preview-item span { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.sf-dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 20px; }
.sf-dialog-actions .sf-btn { min-height: 42px; cursor: pointer; }
.sf-dialog-error { color: #a2163a; font-size: 12px; }
@media (max-width: 760px) {
    .sf-user-menu .pop-box { position: fixed !important; top: 68px !important; right: 12px !important; bottom: auto !important; left: 12px !important; width: auto !important; height: auto !important; max-height: calc(100dvh - 80px) !important; overflow-y: auto; transform: none !important; }
    .sf-user-menu .pop-box-inner { height: auto !important; max-height: none !important; padding: 8px !important; }
    .sf-user-menu .pop-box-menu ul { display: grid; grid-template-columns: 1fr; }
    .sf-user-menu .pop-box-menu li, .sf-user-menu .pop-box-menu a { width: 100% !important; max-width: none !important; }
    .sf-hero-actions { width: 100%; justify-content: stretch; }
    .sf-hero-actions .sf-btn { flex: 1 1 140px; }
    .sf-album-hero .sf-hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); flex: none; }
    .sf-gallery-toolbar { align-items: stretch; flex-direction: column; }
    .sf-gallery-toolbar-actions .sf-btn { width: 100%; }
    .sf-account-usage { padding: 19px; }
    .sf-usage-grid { gap: 22px; }
    .sf-albums-sort { align-items: stretch; flex-direction: column; gap: 6px; }
    .sf-albums-sort select, .sf-photo-sort select { width: 100%; min-width: 0; min-height: 44px; font-size: 16px; }
    .sf-gallery-toolbar-actions:has(.sf-photo-sort) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; }
    .sf-gallery-toolbar-actions .sf-photo-sort { grid-column: 1 / -1; width: 100%; margin-bottom: 4px; }
    .sf-gallery-toolbar-actions:has(.sf-photo-sort) .sf-btn { min-width: 0; padding-right: 12px; padding-left: 12px; font-size: 13px; }
    .sf-photo-share { opacity: 1; }
    .sf-delete-toolbar { top: 65px; flex-wrap: wrap; }
    .sf-delete-toolbar span { flex-basis: 100%; }
    .sf-delete-toolbar .sf-btn { flex: 1; }
    dialog.sf-action-dialog { padding: 20px 16px; }
    .sf-action-dialog .sf-copy-row { grid-template-columns: 1fr; }
    .sf-action-dialog .sf-copy-row button { height: 42px; }
}
@media (max-width: 400px) {
    .sf-top-bar .sf-top-bar-inner { gap: 5px; }
    .sf-top-bar#top-bar #logo, .sf-top-bar#top-bar #logo a, .sf-top-bar#top-bar #logo img { max-width: 160px; }
    .sf-site-footer-inner { width: calc(100% - 32px); }
    .sf-album-hero .sf-hero-actions { grid-template-columns: 1fr; }
    .sf-usage-grid { grid-template-columns: 1fr; gap: 17px; }
    .sf-owner-bar { width: calc(100% - 32px); }
    .sf-gallery-toolbar-actions:has(.sf-photo-sort) { grid-template-columns: 1fr; }
    .sf-dialog-actions { flex-direction: column; }
    .sf-dialog-actions .sf-btn { width: 100%; }
}
