:root {
    --ss-font-body: 'Manrope', 'Segoe UI', sans-serif;
    --ss-font-display: 'Plus Jakarta Sans', 'Manrope', 'Segoe UI', sans-serif;
    --ss-ink: #1f2033;
    --ss-muted: #63657c;
    --ss-surface: rgba(255, 255, 255, 0.76);
    --ss-surface-strong: #ffffff;
    --ss-surface-soft: #f7f0eb;
    --ss-border: rgba(31, 32, 51, 0.1);
    --ss-border-strong: rgba(31, 32, 51, 0.16);
    --ss-accent: #db4e4a;
    --ss-accent-strong: #bf3d39;
    --ss-accent-soft: #fff1ee;
    --ss-info: #d4864a;
    --ss-info-strong: #b56f3e;
    --ss-info-soft: #fff5ea;
    --ss-focus-border: rgba(191, 61, 57, 0.42);
    --ss-focus-ring: rgba(219, 78, 74, 0.12);
    --ss-highlight: #f2b97f;
    --ss-shadow: 0 24px 60px rgba(31, 32, 51, 0.12);
    --ss-radius-xl: 32px;
    --ss-radius-lg: 24px;
    --ss-radius-md: 18px;
    --ss-radius-sm: 14px;
    --bs-body-bg: #fcfaf7;
    --bs-body-color: var(--ss-ink);
    --bs-border-color: var(--ss-border);
    --bs-secondary-color: var(--ss-muted);
    --bs-primary: var(--ss-accent);
    --bs-primary-rgb: 219, 78, 74;
    --bs-info: var(--ss-info);
    --bs-info-rgb: 212, 134, 74;
    --bs-link-color: var(--ss-accent);
    --bs-link-hover-color: var(--ss-accent-strong);
    --bs-focus-ring-color: var(--ss-focus-ring);
}

html {
    position: relative;
    min-height: 100%;
    font-size: 15px;
    scroll-behavior: smooth;
}

@media (min-width: 992px) {
    html {
        font-size: 16px;
    }
}

body {
    min-height: 100vh;
    margin: 0;
    color: var(--ss-ink);
    font-family: var(--ss-font-body);
    font-feature-settings: 'liga' 1, 'kern' 1;
    background: radial-gradient( circle at top left, rgba(242, 185, 127, 0.28), transparent 34% ), radial-gradient( circle at top right, rgba(219, 78, 74, 0.12), transparent 28% ), linear-gradient(180deg, #fffdfb 0%, #fcfaf7 42%, #f8f1ec 100%);
}

h1,
h2,
h3,
h4,
h5,
h6,
font-weight: 700;
letter-spacing: -0.032em;
line-height: 1.04;
.display-4,
.display-5,
.display-6 {
    color: var(--ss-ink);
    font-family: var(--ss-font-display);
    font-weight: 700;
    letter-spacing: -0.045em;
    line-height: 0.98;
    text-wrap: balance;
}

letter-spacing: -0.005em;
line-height: 1.68;
li,
.form-control,
.form-select,
.btn,
.alert,
.table {
    letter-spacing: -0.01em;
    line-height: 1.6;
}

a {
    color: var(--ss-accent);
    text-decoration: none;
    transition: color 0.2s ease, opacity 0.2s ease;
}

    a:hover {
        color: var(--ss-accent-strong);
    }

::selection {
    color: #fff;
    background: rgba(219, 78, 74, 0.85);
}

.btn,
.form-control,
.form-select,
.alert,
.card,
.table,
.dropdown-menu,
.modal-content {
    border-radius: var(--ss-radius-sm);
}

.btn {
    --bs-btn-focus-shadow-rgb: 219, 78, 74;
    --bs-btn-focus-box-shadow: 0 0 0 0.2rem var(--ss-focus-ring);
    padding: 0.8rem 1.25rem;
    font-weight: 700;
    letter-spacing: -0.005em;
    border-width: 1px;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

    .btn:hover {
        transform: translateY(-1px);
    }

.btn-primary {
    color: #fff;
    background: linear-gradient(135deg, var(--ss-accent) 0%, #e77254 100%);
    border-color: transparent;
    box-shadow: 0 18px 30px rgba(219, 78, 74, 0.2);
}

    .btn-primary:hover,
    .btn-primary:focus,
    .btn-primary:active {
        color: #fff;
        background: linear-gradient(135deg, var(--ss-accent-strong) 0%, #dd654b 100%);
        border-color: transparent;
        box-shadow: 0 20px 36px rgba(219, 78, 74, 0.26);
    }

    .btn-primary:disabled,
    .btn-primary.disabled,
    fieldset:disabled .btn-primary {
        color: rgba(255, 255, 255, 0.92);
        background: linear-gradient(135deg, rgba(219, 78, 74, 0.7) 0%, rgba(231, 114, 84, 0.7) 100%);
        border-color: transparent;
        box-shadow: none;
        opacity: 0.72;
    }

.btn-outline-secondary {
    color: var(--ss-ink);
    border-color: var(--ss-border-strong);
    background: rgba(255, 255, 255, 0.72);
}

    .btn-outline-secondary:hover,
    .btn-outline-secondary:focus,
    .btn-outline-secondary:active {
        color: var(--ss-ink);
        border-color: rgba(31, 32, 51, 0.22);
        background: rgba(255, 255, 255, 0.95);
    }

.btn-link {
    font-weight: 600;
}

.btn-outline-primary {
    color: var(--ss-accent-strong);
    border-color: rgba(219, 78, 74, 0.24);
    background: rgba(255, 241, 238, 0.82);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
}

    .btn-outline-primary:hover,
    .btn-outline-primary:focus,
    .btn-outline-primary:active,
    .btn-outline-primary.active,
    .btn-check:checked + .btn-outline-primary,
    .btn-check:active + .btn-outline-primary {
        color: #fff;
        border-color: transparent;
        background: linear-gradient(135deg, var(--ss-accent) 0%, #e77254 100%);
        box-shadow: 0 18px 30px rgba(219, 78, 74, 0.16);
    }

    .btn-outline-primary:disabled,
    .btn-outline-primary.disabled,
    fieldset:disabled .btn-outline-primary {
        color: rgba(191, 61, 57, 0.72);
        border-color: rgba(219, 78, 74, 0.14);
        background: rgba(255, 241, 238, 0.56);
    }

.btn:focus,
.btn:focus-visible,
.btn:active:focus,
.btn:active:focus-visible,
.btn-link.nav-link:focus,
.btn-link.nav-link:focus-visible,
.form-control:focus,
.form-check-input:focus,
.form-select:focus {
    box-shadow: 0 0 0 0.2rem var(--ss-focus-ring);
}

.btn:focus,
.btn:focus-visible,
.btn:active:focus,
.btn:active:focus-visible,
.btn-check:focus + .btn,
.btn-check:focus-visible + .btn {
    border-color: rgba(191, 61, 57, 0.28);
    outline: 0;
}

.form-control:focus,
.form-select:focus,
textarea.form-control:focus,
input.form-control:focus {
    border-color: var(--ss-focus-border);
    background-color: rgba(255, 255, 255, 0.96);
    outline: 0;
}

.form-control:focus-visible,
.form-select:focus-visible,
textarea.form-control:focus-visible,
input.form-control:focus-visible {
    border-color: var(--ss-focus-border);
}

.form-floating > .form-control:focus,
.form-floating > .form-select:focus {
    border-color: var(--ss-focus-border);
}

.input-group > .form-control:focus,
.input-group > .form-select:focus {
    z-index: 4;
}

.form-check-input:focus {
    border-color: rgba(191, 61, 57, 0.36);
    box-shadow: 0 0 0 0.2rem rgba(219, 78, 74, 0.16);
}

.form-check-input {
    border-color: rgba(191, 61, 57, 0.28);
}

.form-check-input:checked {
    background-color: var(--ss-accent);
    border-color: var(--ss-accent);
}

.form-check-input:active {
    filter: none;
}

.form-check-input[type="checkbox"] {
    border-radius: 0.35rem;
}

.form-control,
.form-select,
.form-control-plaintext,
.input-group-text {
    padding: 0.85rem 1rem;
    border-color: var(--ss-border);
    background-color: rgba(255, 255, 255, 0.84);
    font-size: 1rem;
    line-height: 1.55;
}

.form-control,
.form-select,
textarea.form-control {
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

    .form-control:-webkit-autofill,
    .form-control:-webkit-autofill:hover,
    .form-control:-webkit-autofill:focus,
    .form-control:-webkit-autofill:active {
        -webkit-text-fill-color: var(--ss-ink);
        -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.84) inset;
        box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.84) inset;
        transition: background-color 9999s ease-in-out 0s;
    }

.alert {
    border: 1px solid var(--ss-border);
    background: rgba(255, 255, 255, 0.76);
}

.table {
    overflow: hidden;
    background: rgba(255, 255, 255, 0.72);
    font-size: 0.96rem;
    line-height: 1.6;
}

    .table th,
    .table td {
        padding: 0.95rem 1rem;
        vertical-align: middle;
    }

    .table thead th {
        color: var(--ss-muted);
        font-size: 0.78rem;
        font-weight: 800;
        letter-spacing: 0.1em;
        text-transform: uppercase;
    }

    .table tbody th,
    .table tbody td {
        color: var(--ss-ink);
    }

.badge {
    padding: 0.55em 0.82em;
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border-radius: 999px;
}

.ss-badge,
.ss-status-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.35rem;
    padding: 0.55em 0.82em;
    color: var(--ss-ink);
    font-size: 0.74rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.74);
}

.ss-badge-analysis,
.ss-status-badge-info {
    color: var(--ss-info-strong);
    border-color: rgba(212, 134, 74, 0.22);
    background: linear-gradient(180deg, rgba(255, 245, 234, 0.96) 0%, rgba(250, 235, 220, 0.92) 100%);
}

.ss-badge-tryon {
    color: #8a571f;
    border-color: rgba(242, 185, 127, 0.28);
    background: linear-gradient(180deg, rgba(255, 247, 228, 0.96) 0%, rgba(255, 239, 212, 0.92) 100%);
}

.ss-badge-quality-medium {
    color: var(--ss-info-strong);
    border-color: rgba(212, 134, 74, 0.22);
    background: rgba(255, 245, 234, 0.94);
}

.ss-badge-quality-high {
    color: #8a571f;
    border-color: rgba(242, 185, 127, 0.28);
    background: rgba(255, 245, 224, 0.94);
}

.ss-badge-quality-base {
    color: var(--ss-muted);
    border-color: rgba(31, 32, 51, 0.08);
    background: rgba(255, 255, 255, 0.82);
}

.ss-note-text {
    color: var(--ss-muted);
    line-height: 1.72;
}

    .ss-note-text strong {
        color: var(--ss-ink);
    }

.site-header {
    position: sticky;
    top: 0;
    z-index: 1030;
    padding: 1rem 0 0;
}

.site-navbar {
    gap: 1.25rem;
    align-items: center;
    padding: 0.85rem 1.1rem;
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: 999px;
    background: rgba(252, 250, 247, 0.84);
    box-shadow: 0 18px 44px rgba(31, 32, 51, 0.08);
    backdrop-filter: blur(16px);
}

.site-brand {
    display: inline-flex;
    align-items: center;
    gap: 0.85rem;
    min-width: 0;
}

    .site-brand:hover {
        color: var(--ss-ink);
    }

.site-brand-mark {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.8rem;
    height: 2.8rem;
    border-radius: 0.95rem;
    color: #fff;
    font-weight: 800;
    background: linear-gradient(135deg, var(--ss-accent) 0%, #ec8f63 100%);
    box-shadow: 0 16px 28px rgba(219, 78, 74, 0.26);
}

.site-brand-copy {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.site-brand-title {
    color: var(--ss-ink);
    font-size: 1.05rem;
    font-family: var(--ss-font-display);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.site-brand-subtitle {
    color: var(--ss-muted);
    font-size: 0.78rem;
    line-height: 1.2;
}

#siteNav {
    align-items: center;
    gap: 1rem;
}

.site-nav {
    align-items: center;
    gap: 0.35rem;
}

.site-nav-link {
    padding: 0.55rem 0.85rem;
    color: var(--ss-muted);
    font-weight: 700;
    border-radius: 999px;
    border: 1px solid transparent;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

    .site-nav-link:hover,
    .site-nav-link:focus {
        color: var(--ss-ink);
        border-color: rgba(219, 78, 74, 0.12);
        background: rgba(255, 255, 255, 0.8);
        box-shadow: 0 12px 24px rgba(31, 32, 51, 0.06);
    }

    .site-nav-link.is-active {
        color: var(--ss-ink);
        border-color: rgba(219, 78, 74, 0.16);
        background: linear-gradient(180deg, rgba(255, 241, 238, 0.96) 0%, rgba(255, 247, 243, 0.94) 100%);
        box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.44);
    }

.site-header-actions {
    display: flex;
    align-items: center;
    margin-left: auto;
}

.site-auth-list {
    align-items: center;
    gap: 0.75rem;
}

.site-auth-link {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.85rem;
    color: var(--ss-muted);
    font-weight: 700;
    border-radius: 999px;
    transition: color 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

    .site-auth-link:hover,
    .site-auth-link:focus {
        color: var(--ss-ink);
        background: rgba(255, 255, 255, 0.72);
    }

.site-auth-button {
    min-height: 46px;
}

.site-auth-form {
    margin: 0;
}

.site-user-link {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    padding: 0.45rem 0.5rem 0.45rem 0.9rem;
    color: var(--ss-ink);
    border: 1px solid var(--ss-border);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.8);
}

.site-user-label {
    color: var(--ss-muted);
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.14em;
}

.site-user-name {
    max-width: 11rem;
    overflow: hidden;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.site-main {
    padding-bottom: 5rem;
}

    .site-main.container {
        padding-top: 2.25rem;
    }

.site-footer {
    padding: 0 0 1.5rem;
}

.site-footer-grid {
    display: grid;
    grid-template-columns: 1.3fr 0.8fr 1fr;
    gap: 1rem;
    padding: 1.5rem;
    border: 1px solid rgba(255, 255, 255, 0.68);
    border-radius: var(--ss-radius-xl);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.82) 0%, rgba(247, 240, 235, 0.92) 100% );
    box-shadow: 0 20px 40px rgba(31, 32, 51, 0.08);
}

.site-footer-block,
.site-footer-card {
    min-width: 0;
}

.site-footer-kicker,
.site-footer-heading,
.section-kicker,
.landing-feature-kicker,
.landing-proof-label,
.landing-note-label {
    margin-bottom: 0.5rem;
    color: var(--ss-accent);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
}

.site-footer-title {
    max-width: 20ch;
    margin-bottom: 0.75rem;
    font-size: clamp(1.45rem, 1vw + 1rem, 1.9rem);
    line-height: 1.16;
}

.site-footer-text {
    color: var(--ss-muted);
    max-width: 34rem;
    margin-bottom: 0;
    font-size: 0.96rem;
}

.site-footer-links {
    display: grid;
    gap: 0.5rem;
}

    .site-footer-links a {
        width: fit-content;
        color: var(--ss-ink);
        font-weight: 700;
        font-size: 0.95rem;
    }

.site-footer-card {
    padding: 1.125rem 1.25rem;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-lg);
    background: rgba(255, 255, 255, 0.76);
}

.site-footer-bottom {
    display: flex;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.75rem 0 0;
    color: var(--ss-muted);
    font-size: 0.88rem;
}

.landing-hero {
    padding: 2rem 0 1.5rem;
}

.landing-hero-panel {
    position: relative;
    overflow: hidden;
    padding: clamp(1.5rem, 3vw, 3rem);
    border: 1px solid rgba(255, 255, 255, 0.72);
    border-radius: min(42px, 5vw);
    background: radial-gradient( circle at top right, rgba(219, 78, 74, 0.16), transparent 28% ), radial-gradient( circle at bottom left, rgba(242, 185, 127, 0.26), transparent 36% ), linear-gradient( 180deg, rgba(255, 255, 255, 0.9) 0%, rgba(250, 244, 238, 0.96) 100% );
    box-shadow: var(--ss-shadow);
}

.landing-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 0.55rem 0.95rem;
    margin-bottom: 1.2rem;
    color: var(--ss-accent-strong);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    border: 1px solid rgba(219, 78, 74, 0.12);
}

.landing-hero-title {
    max-width: 12ch;
    margin-bottom: 1.25rem;
    font-size: clamp(2.65rem, 4.3vw, 4rem);
    line-height: 1.01;
}

.landing-hero-text {
    max-width: 38rem;
    margin-bottom: 1.5rem;
    color: var(--ss-muted);
    font-size: 1rem;
    line-height: 1.78;
}

.landing-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    margin-bottom: 1.75rem;
}

.landing-metrics {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-metric {
    padding: 1rem 1rem 1.1rem;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-md);
    background: rgba(255, 255, 255, 0.62);
}

    .landing-metric strong {
        display: block;
        margin-bottom: 0.35rem;
        font-size: 1.05rem;
    }

    .landing-metric span {
        color: var(--ss-muted);
        font-size: 0.92rem;
        line-height: 1.6;
    }

.landing-showcase {
    display: grid;
    gap: 1rem;
}

.landing-hero-grid,
.landing-story-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.9rem;
}

.landing-portrait-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.9rem;
}

.landing-photo-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(31, 32, 51, 0.1);
    border-radius: 1.5rem;
    background: rgba(255, 255, 255, 0.82);
    box-shadow: 0 18px 38px rgba(31, 32, 51, 0.08);
}

.landing-photo-card-accent {
    transform: translateY(1.25rem);
}

.landing-photo {
    width: 100%;
    aspect-ratio: 4 / 5;
    object-fit: cover;
}

.landing-photo-card-show-full {
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 241, 236, 0.92) 100% );
}

    .landing-photo-card-show-full .landing-photo {
        aspect-ratio: 3 / 4.4;
        object-fit: contain;
        object-position: center top;
        background: rgba(247, 240, 235, 0.72);
    }

.landing-photo-card figcaption {
    padding: 0.85rem 1rem 1rem;
    color: var(--ss-muted);
    font-size: 0.92rem;
    font-weight: 700;
}

.landing-proof-card,
.landing-note-card,
.landing-feature,
.articles-hero,
.article-cta,
.article-content,
.article-sidebar-card,
.gallery-card,
.article-card,
.article-list-item {
    border: 1px solid rgba(31, 32, 51, 0.08);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.9) 0%, rgba(247, 240, 235, 0.72) 100% );
    box-shadow: 0 18px 38px rgba(31, 32, 51, 0.07);
}

.landing-proof-card,
.landing-note-card,
.landing-feature,
.articles-hero,
.article-cta,
.article-content,
.article-sidebar-card,
.gallery-card,
.article-card,
.article-list-item {
    border-radius: var(--ss-radius-lg);
}

.landing-proof-card {
    padding: 1.35rem 1.4rem;
}

.landing-proof-list {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--ss-muted);
    line-height: 1.7;
}

.landing-section {
    padding: 1.5rem 0 0.5rem;
}

.landing-section-contrast {
    padding-top: 2.2rem;
}

.section-heading {
    max-width: 46rem;
    margin-bottom: 1.4rem;
}

    .section-heading h2,
    .landing-storyboard-title,
    .landing-cta h2 {
        margin-bottom: 0;
        font-size: clamp(1.8rem, 2.4vw, 2.45rem);
        line-height: 1.12;
    }

.landing-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
}

.landing-step {
    padding: 1.4rem;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-lg);
    background: rgba(255, 255, 255, 0.72);
}

.landing-step-number {
    display: inline-flex;
    margin-bottom: 1rem;
    color: var(--ss-accent);
    font-weight: 800;
    font-size: 1.15rem;
}

.landing-step p,
.landing-storyboard-text,
.landing-feature p,
.landing-note-card p,
.article-card p,
.article-list-body p,
.article-content,
.article-sidebar-card,
.gallery-prompt {
    color: var(--ss-muted);
}

.landing-storyboard {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(320px, 520px);
    gap: 1.25rem;
    align-items: start;
}

.landing-storyboard-text {
    max-width: 38rem;
    margin: 1rem 0 1.25rem;
    line-height: 1.8;
}

label,
.form-label,
.col-form-label,
.form-check-label {
    color: var(--ss-ink);
    font-size: 0.94rem;
    font-weight: 650;
    letter-spacing: -0.005em;
}

.manage-nav {
    gap: 0.35rem;
}

    .manage-nav .nav-item {
        width: 100%;
    }

.manage-nav-link {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.85rem 1rem;
    color: var(--ss-muted);
    font-weight: 700;
    letter-spacing: -0.01em;
    border: 1px solid rgba(31, 32, 51, 0.05);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.42);
}

    .manage-nav-link:hover,
    .manage-nav-link:focus {
        color: var(--ss-ink);
        background: rgba(255, 255, 255, 0.72);
        border-color: rgba(31, 32, 51, 0.1);
        box-shadow: none;
    }

    .manage-nav-link.active,
    .manage-nav .show > .manage-nav-link {
        color: var(--ss-ink);
        background: linear-gradient(180deg, rgba(255, 241, 238, 0.86) 0%, rgba(255, 248, 244, 0.92) 100%);
        border-color: rgba(219, 78, 74, 0.16);
        box-shadow: inset 0.22rem 0 0 var(--ss-accent);
    }

        .manage-nav-link.active:hover,
        .manage-nav-link.active:focus,
        .manage-nav .show > .manage-nav-link:hover,
        .manage-nav .show > .manage-nav-link:focus {
            color: var(--ss-ink);
            background: linear-gradient(180deg, rgba(255, 238, 234, 0.92) 0%, rgba(255, 246, 241, 0.96) 100%);
            border-color: rgba(219, 78, 74, 0.2);
            box-shadow: inset 0.22rem 0 0 var(--ss-accent);
        }

.form-text,
.text-body-secondary,
.small,
small {
    line-height: 1.72;
}

.form-floating > label {
    font-size: 0.88rem;
    font-weight: 600;
    letter-spacing: 0;
}

.landing-benefits-list {
    display: grid;
    gap: 0.85rem;
}

.landing-benefit-item {
    padding: 1rem 1.1rem;
    border-left: 3px solid rgba(219, 78, 74, 0.3);
    border-radius: 0 1rem 1rem 0;
    background: rgba(255, 255, 255, 0.62);
}

    .landing-benefit-item strong {
        display: block;
        margin-bottom: 0.3rem;
    }

    .landing-benefit-item span {
        color: var(--ss-muted);
    }

.landing-note-card {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.3rem;
    min-height: 100%;
}

.landing-note-card-horizontal {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.45rem;
}

    .landing-note-card-horizontal .landing-note-label {
        margin-bottom: 0;
    }

    .landing-note-card-horizontal p {
        line-height: 1.72;
    }

.landing-feature {
    padding: 1.5rem;
    min-height: 100%;
}

.landing-cta {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1.5rem;
    align-items: center;
    padding: clamp(1.5rem, 3vw, 2.5rem);
    border: 1px solid rgba(255, 255, 255, 0.76);
    border-radius: min(36px, 4vw);
    background: radial-gradient( circle at top left, rgba(242, 185, 127, 0.18), transparent 34% ), linear-gradient( 180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 241, 236, 0.94) 100% );
    box-shadow: var(--ss-shadow);
}

.landing-cta-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.85rem;
    justify-content: flex-end;
}

.app-page {
    display: grid;
    gap: 1.5rem;
}

.auth-shell {
    display: grid;
    gap: 1.5rem;
    max-width: 1080px;
    margin: 0 auto;
}

.auth-hero {
    display: grid;
    gap: 0.7rem;
    max-width: 42rem;
}

.auth-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.7fr);
    gap: 1.25rem;
    align-items: start;
}

.auth-card,
.auth-side-card {
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-lg);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 235, 0.82) 100% );
    box-shadow: 0 18px 38px rgba(31, 32, 51, 0.07);
}

.auth-card,
.auth-side-card {
    padding: 1.35rem 1.4rem;
}

.auth-card-head,
.auth-side-head {
    display: grid;
    gap: 0.45rem;
    margin-bottom: 1.2rem;
}

    .auth-card-head h2,
    .auth-side-head h2 {
        margin: 0;
        font-size: clamp(1.3rem, 1.7vw, 1.7rem);
        line-height: 1.16;
    }

    .auth-card-head p,
    .auth-side-head p,
    .auth-support-links,
    .auth-empty-state,
    .auth-side-list {
        color: var(--ss-muted);
    }

.auth-form {
    display: grid;
    gap: 1rem;
}

.auth-field {
    display: grid;
    gap: 0.45rem;
}

    .auth-field .form-control {
        min-height: 3.4rem;
    }

.auth-validation,
.validation-summary-errors,
.field-validation-error {
    color: #b43d39;
    font-size: 0.9rem;
}

.auth-feedback {
    padding: 0.9rem 1rem;
    border: 1px solid rgba(219, 78, 74, 0.16);
    border-radius: var(--ss-radius-sm);
    background: rgba(255, 243, 242, 0.92);
}

    .auth-feedback ul {
        margin: 0;
        padding-left: 1.1rem;
    }

.auth-checkbox {
    display: flex;
    align-items: center;
    gap: 0.7rem;
    min-height: 3.25rem;
    padding: 0.85rem 1rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-sm);
    background: rgba(255, 255, 255, 0.72);
}

    .auth-checkbox .form-check-input {
        width: 1.15rem;
        height: 1.15rem;
        margin: 0;
    }

    .auth-checkbox .form-label {
        margin: 0;
        font-weight: 650;
    }

.auth-submit {
    width: 100%;
}

.auth-support-links {
    display: grid;
    gap: 0.55rem;
}

    .auth-support-links a {
        width: fit-content;
        font-weight: 700;
    }

.auth-provider-list {
    display: grid;
    gap: 0.75rem;
}

    .auth-provider-list .btn {
        width: 100%;
        justify-content: center;
    }

.auth-empty-state {
    margin: 0;
    line-height: 1.72;
}

.auth-side-list {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding-left: 1.15rem;
}

    .auth-side-list li {
        padding: 0.2rem 0 0.2rem 0.2rem;
        border-left: 2px solid rgba(219, 78, 74, 0.18);
        line-height: 1.7;
    }

.app-page-hero {
    display: grid;
    gap: 0.7rem;
    max-width: 52rem;
    padding: 0.25rem 0 0;
}

.app-page-title {
    margin: 0;
    font-size: clamp(2rem, 3vw, 3rem);
    line-height: 1.04;
}

.app-page-lead {
    max-width: 42rem;
    margin: 0.15rem 0 0;
    color: var(--ss-muted);
    font-size: 1rem;
    line-height: 1.78;
}

.app-status-stack,
.app-results-stack,
.app-section-stack,
.app-side-list {
    display: grid;
    gap: 1rem;
}

.app-status-card,
.app-feedback,
.app-panel,
.app-recommendation-card,
.app-note-card {
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-lg);
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 235, 0.82) 100% );
    box-shadow: 0 18px 38px rgba(31, 32, 51, 0.07);
}

.app-status-card,
.app-feedback,
.app-panel,
.app-recommendation-card,
.app-note-card {
    padding: 1.2rem 1.25rem;
}

    .app-status-card strong,
    .app-note-card strong {
        display: block;
        margin-bottom: 0.45rem;
        font-size: 1rem;
    }

    .app-status-card p,
    .app-feedback p,
    .app-note-card p,
    .app-panel-intro,
    .app-section-copy {
        margin: 0;
        color: var(--ss-muted);
    }

    .app-status-card.is-accent {
        border-color: rgba(219, 78, 74, 0.14);
        background: linear-gradient( 180deg, rgba(255, 241, 238, 0.98) 0%, rgba(255, 249, 245, 0.92) 100% );
    }

    .app-status-card.is-soft {
        background: linear-gradient( 180deg, rgba(255, 255, 255, 0.92) 0%, rgba(252, 248, 244, 0.94) 100% );
    }

.app-feedback {
    display: grid;
    gap: 0.85rem;
}

    .app-feedback.is-danger {
        border-color: rgba(219, 78, 74, 0.18);
        background: linear-gradient( 180deg, rgba(255, 243, 242, 0.98) 0%, rgba(255, 249, 247, 0.92) 100% );
    }

    .app-feedback.is-neutral {
        border-color: rgba(31, 32, 51, 0.08);
    }

.app-flow-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.25rem;
    align-items: start;
}

.app-supporting-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.app-panel-head {
    display: grid;
    gap: 0.5rem;
    margin-bottom: 1.2rem;
}

    .app-panel-head h2,
    .app-section-heading {
        margin: 0;
        font-size: clamp(1.35rem, 1.6vw, 1.85rem);
        line-height: 1.16;
    }

.app-panel-intro,
.app-section-copy,
.app-recommendation-card p {
    line-height: 1.72;
}

.app-form-layout {
    display: grid;
    gap: 1.15rem;
    gap: 1rem;
}

.app-field {
    display: grid;
    gap: 0.5rem;
}

.app-form-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.9rem;
    margin-top: 0.2rem;
}

.app-form-note {
    color: var(--ss-muted);
    font-size: 0.92rem;
}

.app-side-list {
    padding-left: 1.1rem;
    margin: 0;
    color: var(--ss-muted);
}

    .app-side-list li + li {
        margin-top: 0.6rem;
    }

    .app-side-list li {
        padding-left: 0.2rem;
        border-left: 2px solid rgba(219, 78, 74, 0.16);
    }

.dropdown-menu {
    --bs-dropdown-link-hover-bg: rgba(255, 241, 238, 0.88);
    --bs-dropdown-link-hover-color: var(--ss-ink);
    --bs-dropdown-link-active-bg: rgba(255, 241, 238, 0.96);
    --bs-dropdown-link-active-color: var(--ss-accent-strong);
    border: 1px solid rgba(31, 32, 51, 0.08);
    background: linear-gradient(180deg, #ffffff 0%, #f7f0eb 100%);
    box-shadow: 0 18px 40px rgba(31, 32, 51, 0.12);
}

.dropdown-item:active,
.dropdown-item.active {
    color: var(--ss-accent-strong);
    background: rgba(255, 241, 238, 0.96);
}

.link-primary {
    color: var(--ss-accent-strong) !important;
    text-decoration-color: rgba(191, 61, 57, 0.22) !important;
}

    .link-primary:hover,
    .link-primary:focus {
        color: var(--ss-accent) !important;
        text-decoration-color: rgba(219, 78, 74, 0.28) !important;
    }

.app-section-stack {
    grid-template-columns: 1fr;
}

.app-recommendation-list {
    display: grid;
    gap: 1rem;
}

.app-recommendation-card-header {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.app-recommendation-card h3 {
    margin: 0;
    font-size: 1.05rem;
}

.app-confidence-badge {
    display: inline-flex;
    align-items: center;
    padding: 0.4rem 0.7rem;
    border-radius: 999px;
    background: rgba(31, 32, 51, 0.06);
    color: var(--ss-muted);
    font-size: 0.8rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.app-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.app-note-card {
    background: linear-gradient( 180deg, rgba(255, 255, 255, 0.96) 0%, rgba(251, 246, 241, 0.92) 100% );
}

.mode-selection-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}

.mode-selection-card {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 1rem;
    min-height: 100%;
}

.mode-selection-card .app-panel-head {
    flex: 1 1 auto;
}

.mode-selection-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.mode-selection-card .mode-selection-meta {
    margin-top: auto;
}

    .mode-selection-meta span {
        display: inline-flex;
        align-items: center;
        padding: 0.45rem 0.75rem;
        border-radius: 999px;
        background: rgba(31, 32, 51, 0.06);
        color: var(--ss-muted);
        font-size: 0.82rem;
        font-weight: 700;
    }

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 220px));
    justify-content: center;
    gap: 1.25rem;
}

.gallery-compare-toolbar {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 0.75rem;
    padding: 0.65rem 0.85rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-sm);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(248, 241, 236, 0.9));
}

.gallery-card {
    display: flex;
    flex-direction: column;
    width: 220px;
    overflow: hidden;
}

.gallery-card-upload {
    border-top: 4px solid #8c91a7;
}

.gallery-card-generation {
    border-top: 4px solid var(--ss-accent);
}

.gallery-card-tryon {
    border-top: 4px solid var(--ss-highlight);
}

.gallery-media {
    position: relative;
    width: 220px;
    height: 280px;
    aspect-ratio: auto;
    background: #efe7e2;
}

.gallery-compare-toggle {
    position: absolute;
    top: 0.55rem;
    left: 0.55rem;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.4rem;
    height: 1.4rem;
    padding: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.95);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

    .gallery-compare-toggle .form-check-input {
        width: 1.4rem;
        height: 1.4rem;
        margin: 0;
        cursor: pointer;
    }

        .gallery-compare-toggle .form-check-input:disabled {
            cursor: not-allowed;
        }

.gallery-card-selected {
    box-shadow: 0 0 0 2px rgba(219, 78, 74, 0.42), 0 14px 28px rgba(33, 36, 51, 0.2);
}

    .gallery-card-selected .gallery-media::after {
        content: "";
        position: absolute;
        inset: 0;
        background: linear-gradient(180deg, rgba(219, 78, 74, 0.04), rgba(219, 78, 74, 0.22));
        pointer-events: none;
    }

.gallery-media-image,
.gallery-modal-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-media-image {
    cursor: pointer;
}

.gallery-media-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    height: 100%;
    padding: 1.5rem;
    background: radial-gradient(circle at top, rgba(219, 78, 74, 0.08), transparent 48%), linear-gradient(180deg, #f8f1ec 0%, #efe7e2 100%);
}

.gallery-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1rem;
}

.gallery-card-body-minimal {
    padding: 0.75rem;
}

.gallery-card-badges {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: flex-start;
    gap: 0.4rem;
    min-width: 0;
}

.gallery-card-badges .badge {
    max-width: 100%;
    padding: 0.42em 0.62em;
    font-size: 0.6rem;
    letter-spacing: 0.04em;
    white-space: normal;
    text-align: center;
}

.gallery-meta {
    color: var(--ss-muted);
    font-size: 0.78rem;
    line-height: 1.35;
    display: -webkit-box;
    overflow: hidden;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.gallery-actions {
    display: flex;
    flex-wrap: nowrap;
    gap: 0.5rem;
    margin-top: auto;
}

.gallery-media-actions {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    z-index: 2;
    margin-top: 0;
    justify-content: flex-end;
    padding-top: 1.75rem;
    padding-right: 0.5rem;
    padding-bottom: 0.5rem;
    padding-left: 0.5rem;
    background: linear-gradient(180deg, rgba(18, 20, 33, 0), rgba(18, 20, 33, 0.6));
}

    .gallery-media-actions .btn {
        background: rgba(255, 255, 255, 0.92);
        border-color: rgba(255, 255, 255, 0.95);
    }

    .gallery-media-actions .btn-outline-danger,
    .gallery-media-actions .btn-outline-danger:hover,
    .gallery-media-actions .btn-outline-danger:focus,
    .gallery-media-actions .btn-outline-danger:active,
    .gallery-media-actions .btn-outline-danger.active {
        color: var(--ss-accent);
        background: rgba(255, 255, 255, 0.94);
        border-color: rgba(255, 255, 255, 0.95);
    }

@media (hover: hover) and (pointer: fine) {
    .gallery-actions {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.16s ease;
    }

    .gallery-compare-toggle {
        opacity: 0;
        visibility: hidden;
        transition: opacity 0.16s ease;
    }

    .gallery-card:hover .gallery-actions,
    .gallery-card:focus-within .gallery-actions,
    .gallery-card-deleting .gallery-actions {
        opacity: 1;
        visibility: visible;
    }

    .gallery-card:hover .gallery-compare-toggle,
    .gallery-card:focus-within .gallery-compare-toggle,
    .gallery-card-deleting .gallery-compare-toggle,
    .gallery-card-selected .gallery-compare-toggle {
        opacity: 1;
        visibility: visible;
    }
}

@media (hover: none), (pointer: coarse) {
    .gallery-actions {
        opacity: 1;
        visibility: visible;
    }

    .gallery-compare-toggle {
        opacity: 1;
        visibility: visible;
    }
}

.unified-outcome-card {
    padding: 1.2rem 1.25rem;
    border: 1px solid var(--ss-border-strong);
    border-radius: var(--ss-radius-md);
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.94) 0%, rgba(247, 240, 235, 0.88) 100%);
    box-shadow: 0 18px 36px rgba(31, 32, 51, 0.08);
}

.unified-outcome-kicker {
    margin-bottom: 0.45rem;
    color: var(--ss-muted);
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.unified-outcome-head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.65rem;
}

.unified-outcome-text {
    color: var(--ss-muted);
}

.unified-outcome-steps {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: 1rem;
}

.unified-outcome-step {
    padding: 0.8rem 0.9rem;
    border: 1px solid var(--ss-border);
    border-radius: var(--ss-radius-sm);
    color: var(--ss-muted);
    background: rgba(255, 255, 255, 0.62);
    font-size: 0.95rem;
    font-weight: 700;
    text-align: center;
    transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

    .unified-outcome-step.is-active {
        border-color: rgba(219, 78, 74, 0.28);
        color: var(--ss-ink);
        background: var(--ss-accent-soft);
        transform: translateY(-1px);
    }

.gallery-delete-progress {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
    color: var(--ss-muted);
    font-size: 0.875rem;
}

.gallery-card-deleting {
    opacity: 0.7;
}

    .gallery-card-deleting .gallery-actions .btn {
        pointer-events: none;
    }

.gallery-modal-image {
    max-height: 72vh;
    border-radius: 0.75rem;
    object-fit: contain;
    background: #f8f1ec;
}

.gallery-compare-layout {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.gallery-compare-item {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.gallery-compare-item-header {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.gallery-compare-item-kind {
    margin-bottom: 0;
    color: var(--ss-muted);
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.gallery-compare-image-label {
    margin-bottom: 0;
    color: var(--ss-ink);
    font-size: 0.9rem;
    font-weight: 700;
}

.gallery-compare-image {
    width: 100%;
    object-fit: contain;
    max-height: 72vh;
    border-radius: 0.75rem;
    border: 1px solid var(--ss-border);
    background: #f8f1ec;
}

@media (max-width: 575.98px) {
    .gallery-compare-toolbar {
        align-items: stretch;
    }

        .gallery-compare-toolbar > div {
            width: 100%;
        }

    .gallery-compare-layout {
        grid-template-columns: 1fr;
    }
}

.image-picker {
    display: grid;
    gap: 0.75rem;
}

.image-picker-summary {
    display: grid;
    grid-template-columns: minmax(120px, 168px) minmax(0, 1fr);
    gap: 1rem;
    align-items: stretch;
    padding: 1rem;
    border: 1px solid var(--ss-border);
    border-radius: 1rem;
    background: radial-gradient(circle at top left, rgba(219, 78, 74, 0.08), transparent 46%), linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(248, 241, 236, 0.92));
}

.image-picker-summary-media {
    position: relative;
    overflow: hidden;
    min-height: 148px;
    border: 1px solid var(--ss-border);
    border-radius: 0.9rem;
    background: #f4ece7;
    cursor: pointer;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

    .image-picker-summary-media:hover {
        border-color: rgba(219, 78, 74, 0.24);
        box-shadow: 0 8px 18px rgba(39, 33, 32, 0.08);
        transform: translateY(-0.5px);
    }

    .image-picker-summary-media:focus-visible {
        outline: none;
        border-color: rgba(219, 78, 74, 0.55);
        box-shadow: 0 0 0 0.22rem rgba(219, 78, 74, 0.16);
    }

    .image-picker-summary-media.is-empty {
        display: grid;
        place-items: center;
        border-style: dashed;
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(248, 241, 236, 0.94)), repeating-linear-gradient( 135deg, rgba(219, 78, 74, 0.05) 0, rgba(219, 78, 74, 0.05) 14px, rgba(255, 255, 255, 0.15) 14px, rgba(255, 255, 255, 0.15) 28px );
    }

    .image-picker-summary-media.is-drag-active {
        border-color: rgba(219, 78, 74, 0.55);
        box-shadow: 0 0 0 0.22rem rgba(219, 78, 74, 0.16);
        background: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(249, 232, 226, 0.96)), repeating-linear-gradient( 135deg, rgba(219, 78, 74, 0.08) 0, rgba(219, 78, 74, 0.08) 14px, rgba(255, 255, 255, 0.12) 14px, rgba(255, 255, 255, 0.12) 28px );
    }

.image-picker-summary-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.image-picker-summary-clear {
    position: absolute;
    top: 0.65rem;
    right: 0.65rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    padding: 0;
    color: #fff;
    font-size: 1.35rem;
    line-height: 1;
    border: 0;
    border-radius: 999px;
    background: rgba(39, 33, 32, 0.68);
    box-shadow: 0 8px 18px rgba(39, 33, 32, 0.18);
    transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

    .image-picker-summary-clear:hover,
    .image-picker-summary-clear:focus-visible {
        background: rgba(219, 78, 74, 0.92);
        box-shadow: 0 10px 22px rgba(219, 78, 74, 0.22);
        transform: scale(1.04);
    }

    .image-picker-summary-clear:focus-visible {
        outline: none;
    }

.image-picker-summary-media.is-empty .image-picker-summary-image {
    display: none;
}

.image-picker-summary-placeholder {
    display: grid;
    gap: 0.35rem;
    padding: 1rem;
    text-align: center;
    color: var(--ss-muted);
}

.image-picker-summary-placeholder-title {
    color: var(--ss-text);
    font-size: 0.98rem;
    font-weight: 700;
}

.image-picker-summary-placeholder-text {
    font-size: 0.88rem;
    line-height: 1.45;
}

.image-picker-summary-body {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 1rem;
}

.image-picker-summary-kicker {
    margin-bottom: 0.35rem;
    color: var(--ss-muted);
    font-size: 0.78rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.image-picker-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.image-picker-inline-upload {
    display: grid;
    gap: 0.35rem;
    padding-top: 0.9rem;
    border-top: 1px solid rgba(130, 106, 102, 0.18);
}

    .image-picker-inline-upload.is-hidden-input {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        white-space: nowrap;
        border: 0;
        clip: rect(0, 0, 0, 0);
        clip-path: inset(50%);
    }

    .image-picker-inline-upload .form-label {
        font-size: 0.95rem;
        font-weight: 600;
    }

.image-picker-modal .modal-body {
    background: radial-gradient(circle at top left, rgba(219, 78, 74, 0.06), transparent 35%), linear-gradient(180deg, rgba(248, 241, 236, 0.68), rgba(255, 255, 255, 0.98));
}

.image-picker-empty-state {
    display: grid;
    place-items: center;
    gap: 0.75rem;
    min-height: 240px;
    padding: 2rem;
    text-align: center;
    border: 1px dashed var(--ss-border);
    border-radius: 1rem;
    background: rgba(255, 255, 255, 0.72);
}

.image-picker-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
}

.image-picker-option {
    display: block;
    width: 100%;
    padding: 0;
    color: inherit;
    text-align: left;
    background: transparent;
    border: 0;
}

.image-picker-option-frame {
    min-height: 100%;
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.image-picker-option:hover .image-picker-option-frame,
.image-picker-option:focus-visible .image-picker-option-frame {
    transform: translateY(-2px);
    box-shadow: 0 16px 32px rgba(39, 33, 32, 0.12);
}

.image-picker-option:focus-visible {
    outline: none;
}

    .image-picker-option:focus-visible .image-picker-option-frame {
        border-color: rgba(219, 78, 74, 0.48);
        box-shadow: 0 0 0 0.2rem rgba(219, 78, 74, 0.14);
    }

.image-picker-option.is-selected .image-picker-option-frame {
    border-color: rgba(219, 78, 74, 0.4);
    box-shadow: 0 18px 34px rgba(219, 78, 74, 0.14);
}

.image-picker-option.is-selected .image-picker-option-title {
    color: var(--ss-accent);
}

.image-picker-option-media {
    position: relative;
}

.image-picker-option.is-selected .image-picker-option-media::after {
    content: "Выбрано";
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.35rem 0.55rem;
    color: #fff;
    font-size: 0.78rem;
    font-weight: 700;
    border-radius: 999px;
    background: var(--ss-accent);
    box-shadow: 0 8px 18px rgba(219, 78, 74, 0.28);
}

.image-picker-option-body {
    gap: 0.3rem;
}

@media (max-width: 767.98px) {
    .image-picker-summary {
        grid-template-columns: 1fr;
    }

    .image-picker-summary-media {
        min-height: 220px;
    }

    .image-picker-grid {
        grid-template-columns: repeat(auto-fit, minmax(168px, 1fr));
    }
}

.history-preview-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.result-preview-shell {
    display: flex;
    justify-content: center;
    align-items: center;
    width: min(100%, 40rem);
    max-height: 70vh;
    margin-top: 1rem;
    overflow: hidden;
}

.result-preview-image {
    display: block;
    width: auto;
    max-width: 100%;
    max-height: 70vh;
    object-fit: contain;
}

.history-preview-thumb,
.history-preview-missing {
    width: 72px;
    height: 72px;
}

.history-preview-thumb {
    object-fit: cover;
}

.history-preview-missing {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.25rem;
    border: 1px solid var(--ss-border);
    border-radius: 0.75rem;
    background: linear-gradient(180deg, #f8f1ec 0%, #efe7e2 100%);
    color: #c24b47;
    font-size: 0.64rem;
    line-height: 1.2;
    font-weight: 700;
    text-align: center;
    text-transform: lowercase;
}

.form-floating > .form-control-plaintext::placeholder,
.form-floating > .form-control::placeholder {
    color: var(--ss-muted);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder,
.form-floating > .form-control:focus::placeholder {
    text-align: start;
}

.articles-hero,
.article-cta {
    padding: 1.5rem;
}

.articles-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1rem;
}

.articles-view-switch {
    padding: 1rem 1.25rem;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: var(--ss-radius-lg);
    background: rgba(255, 255, 255, 0.76);
}

.articles-view-toggle .btn {
    min-width: 118px;
}

.articles-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-list-item {
    display: grid;
    grid-template-columns: minmax(260px, 360px) minmax(0, 1fr);
    gap: 1.25rem;
    align-items: stretch;
    overflow: hidden;
}

.article-list-image {
    width: 100%;
    height: 100%;
    min-height: 240px;
    object-fit: cover;
}

.article-list-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 1.25rem 1.25rem 1.25rem 0;
}

.article-list-actions,
.article-card-actions {
    margin-top: auto;
}

.article-card {
    display: flex;
    flex-direction: column;
    height: 100%;
    overflow: hidden;
}

.article-card-image {
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
    border-bottom: 1px solid rgba(31, 32, 51, 0.08);
}

.article-card-body {
    display: flex;
    flex: 1;
    flex-direction: column;
    padding: 1.25rem;
}

.article-hero-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    object-fit: cover;
    border: 1px solid rgba(31, 32, 51, 0.08);
    border-radius: calc(var(--ss-radius-lg) - 0.45rem);
    box-shadow: none;
}

.article-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
    gap: 1.5rem;
}

.article-content {
    padding: 1.6rem;
}

.article-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.article-sidebar-card {
    padding: 1.25rem;
}

.article-section + .article-section {
    margin-top: 2rem;
}

.article-section h2,
.article-faq h2 {
    margin-bottom: 1rem;
}

.article-faq .accordion {
    --bs-accordion-bg: rgba(255, 255, 255, 0.82);
    --bs-accordion-border-color: rgba(31, 32, 51, 0.08);
    --bs-accordion-border-radius: var(--ss-radius-md);
    --bs-accordion-inner-border-radius: calc(var(--ss-radius-md) - 1px);
    --bs-accordion-btn-bg: rgba(255, 255, 255, 0.82);
    --bs-accordion-btn-color: var(--ss-ink);
    --bs-accordion-btn-focus-border-color: rgba(191, 61, 57, 0.28);
    --bs-accordion-btn-focus-box-shadow: 0 0 0 0.2rem var(--ss-focus-ring);
    --bs-accordion-active-bg: rgba(255, 241, 238, 0.92);
    --bs-accordion-active-color: var(--ss-accent-strong);
}

.article-faq .accordion-item {
    overflow: hidden;
    border-radius: var(--ss-radius-md);
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(247, 240, 235, 0.82) 100%);
    box-shadow: 0 14px 30px rgba(31, 32, 51, 0.06);
}

.article-faq .accordion-item + .accordion-item {
    margin-top: 0.85rem;
}

.article-faq .accordion-button {
    font-weight: 700;
    letter-spacing: -0.01em;
}

.article-faq .accordion-button:not(.collapsed) {
    box-shadow: inset 0 -1px 0 rgba(219, 78, 74, 0.08);
}

.article-faq .accordion-button::after {
    opacity: 0.8;
    filter: sepia(1) saturate(1.4) hue-rotate(-12deg);
}

.article-faq .accordion-body {
    color: var(--ss-muted);
    line-height: 1.72;
}

.article-keywords {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

    .article-keywords span {
        padding: 0.35rem 0.65rem;
        border-radius: 999px;
        background: rgba(219, 78, 74, 0.08);
        color: var(--ss-muted);
        font-size: 0.875rem;
    }

.article-related-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

@media (max-width: 991.98px) {
    .site-header {
        padding-top: 0.75rem;
    }

    .site-navbar {
        border-radius: 1.75rem;
    }

    #siteNav {
        align-items: stretch;
        padding-top: 1rem;
    }

    .site-nav,
    .site-auth-list,
    .site-header-actions {
        align-items: stretch;
    }

    .site-header-actions {
        margin-left: 0;
    }

    .site-auth-list {
        width: 100%;
    }

    .site-user-link,
    .site-auth-button,
    .site-auth-link {
        width: 100%;
        justify-content: center;
    }

    .site-footer-grid,
    .auth-layout,
    .app-page-hero,
    .app-flow-grid,
    .landing-storyboard,
    .landing-cta,
    .landing-steps,
    .landing-metrics,
    .article-layout,
    .article-list-item {
        grid-template-columns: 1fr;
    }

    .landing-hero-grid,
    .landing-story-grid,
    .landing-portrait-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .landing-photo-card-accent {
        transform: none;
    }

    .landing-cta-actions,
    .site-footer-bottom {
        justify-content: flex-start;
    }

    .article-list-body {
        padding: 0 1.25rem 1.25rem;
    }
}

/* Quality toggle buttons */
.quality-options {
    gap: 0.5rem;
}

.quality-option {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 0.6rem 1rem;
    border: 1.5px solid var(--ss-border-strong);
    border-radius: var(--ss-radius-sm);
    background: var(--ss-surface-strong);
    color: var(--ss-ink);
    text-align: left;
    line-height: 1.3;
    transition: border-color 0.18s, box-shadow 0.18s, background 0.18s;
}

    .quality-option:hover {
        border-color: rgba(219, 78, 74, 0.35);
        background: var(--ss-accent-soft);
        color: var(--ss-ink);
    }

.btn-check:checked + .quality-option {
    border-color: var(--ss-accent);
    background: var(--ss-accent-soft);
    box-shadow: 0 0 0 0.18rem var(--ss-focus-ring);
    color: var(--ss-accent-strong);
}

.btn-check:focus-visible + .quality-option {
    border-color: var(--ss-focus-border);
    box-shadow: 0 0 0 0.2rem var(--ss-focus-ring);
}

.quality-option .text-muted {
    color: var(--ss-muted) !important;
    font-size: 0.8rem;
}

@media (max-width: 575.98px) {
    .site-navbar,
    .auth-card,
    .auth-side-card,
    .app-page-hero,
    .app-panel,
    .app-feedback,
    .app-status-card,
    .app-recommendation-card,
    .app-note-card,
    .landing-hero-panel,
    .site-footer-grid,
    .landing-cta {
        padding-left: 1rem;
        padding-right: 1rem;
    }

    .landing-hero {
        padding-top: 1.25rem;
    }

    .landing-hero-title {
        font-size: 2.2rem;
    }

    .landing-hero-grid,
    .landing-story-grid,
    .landing-portrait-grid {
        grid-template-columns: 1fr;
    }

    .gallery-actions > .btn,
    .app-form-actions > .btn,
    .app-inline-actions > .btn,
    .landing-action-row > .btn,
    .landing-cta-actions > .btn {
        flex: 1 1 100%;
    }

    .site-footer-bottom {
        flex-direction: column;
    }
}
