@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@500;600;700&family=Manrope:wght@400;500;600;700&display=swap');

:root {
    /* Central site color palette. Keep raw color values here; component CSS should use these variables. */
    --color-black: #000000;
    --color-black-rgb: 0, 0, 0;
    --color-white: #ffffff;
    --color-white-rgb: 255, 255, 255;
    --color-transparent: transparent;

    --color-neutral-950: #0a0a0a;
    --color-neutral-950-rgb: 10, 10, 10;
    --color-neutral-940: #0f0f0f;
    --color-neutral-940-rgb: 15, 15, 15;
    --color-neutral-930: #101010;
    --color-neutral-925: #111111;
    --color-neutral-920: #121212;
    --color-neutral-920-rgb: 18, 18, 18;
    --color-neutral-910: #141414;
    --color-neutral-900: #171717;
    --color-neutral-875: var(--color-neutral-875);
    --color-neutral-850: #191919;
    --color-neutral-825: #1a1a1a;
    --color-neutral-800: #1f1f1f;
    --color-neutral-775: #202020;
    --color-neutral-760: #222222;
    --color-neutral-700: #252525;
    --color-neutral-650: #2b2b2b;
    --color-neutral-600: #383838;

    --color-text-primary: #f1f1f1;
    --color-text-strong: #ffffff;
    --color-text-soft: #f5f5f5;
    --color-text-muted: #c8c8c8;
    --color-text-link: #dddddd;
    --color-text-link-hover: #f3f6f4;
    --color-text-subtle: #e0e0e0;
    --color-text-nav: #dcdcdc;
    --color-text-nav-soft: #efefef;

    --color-brand-0: #93a894;
    --color-brand-1: #7d927f;
    --color-brand-2: #677a68;
    --color-brand-rgb: 147, 168, 148;
    --color-brand-contrast: #0f1712;
    --color-brand-contrast-rgb: 15, 23, 18;
    --color-brand-contrast-strong: #09100b;
    --color-brand-contrast-strong-rgb: 9, 16, 11;
    --color-brand-soft-text: #eaf2ec;
    --color-brand-nav-text: #e8f0e9;
    --color-brand-shadow-rgb: 110, 138, 119;
    --color-brand-border-rgb: 121, 149, 130;
    --color-brand-surface-rgb: 104, 130, 112;

    --color-warning-900: #92400e;
    --color-warning-700: #b45309;
    --color-warning-600-rgb: 234, 88, 12;
    --color-warning-500-rgb: 234, 179, 8;
    --color-warning-200: #fed7aa;
    --color-warning-100: #fef3c7;
    --color-warning-50: #fff7ed;
    --color-warning-text: #fde68a;
    --color-warning-fallback: #ffffe0;

    --color-success-rgb: 34, 197, 94;
    --color-success-text: #bbf7d0;
    --color-success-outline: #26b050;

    --color-danger-rgb: 239, 68, 68;
    --color-danger-text: #fecaca;
    --color-danger-text-strong: #ff6b6b;
    --color-danger-text-strong-rgb: 255, 107, 107;
    --color-danger-border: #ff8888;
    --color-danger-outline: #e50000;
    --color-danger-banner: #b32121;

    --color-info-rgb: 59, 130, 246;
    --color-info-text: #bfdbfe;
    --color-slate-rgb: 148, 163, 184;
    --color-slate-text: #e2e8f0;
    --color-slate-surface-rgb: 75, 85, 99;
    --color-purple-600-rgb: 124, 58, 237;
    --color-purple-800-rgb: 91, 33, 182;
    --color-purple-text: #f5f3ff;

    --surface-white-003: rgba(var(--color-white-rgb), 0.03);
    --surface-white-002: rgba(var(--color-white-rgb), 0.02);
    --surface-white-004: rgba(var(--color-white-rgb), 0.04);
    --surface-white-005: rgba(var(--color-white-rgb), 0.05);
    --surface-white-006: rgba(var(--color-white-rgb), 0.06);
    --surface-white-007: rgba(var(--color-white-rgb), 0.07);
    --surface-white-008: rgba(var(--color-white-rgb), 0.08);
    --surface-white-010: rgba(var(--color-white-rgb), 0.1);
    --surface-white-012: rgba(var(--color-white-rgb), 0.12);
    --surface-white-014: rgba(var(--color-white-rgb), 0.14);
    --surface-white-015: rgba(var(--color-white-rgb), 0.15);
    --surface-white-016: rgba(var(--color-white-rgb), 0.16);
    --surface-white-018: rgba(var(--color-white-rgb), 0.18);
    --surface-white-020: rgba(var(--color-white-rgb), 0.2);
    --surface-white-024: rgba(var(--color-white-rgb), 0.24);
    --surface-white-025: rgba(var(--color-white-rgb), 0.25);
    --surface-white-035: rgba(var(--color-white-rgb), 0.35);
    --surface-white-040: rgba(var(--color-white-rgb), 0.4);
    --surface-white-045: rgba(var(--color-white-rgb), 0.45);
    --surface-white-055: rgba(var(--color-white-rgb), 0.55);
    --surface-white-065: rgba(var(--color-white-rgb), 0.65);
    --surface-white-072: rgba(var(--color-white-rgb), 0.72);

    --surface-black-020: rgba(var(--color-black-rgb), 0.2);
    --surface-black-022: rgba(var(--color-black-rgb), 0.22);
    --surface-black-030: rgba(var(--color-black-rgb), 0.3);
    --surface-black-040: rgba(var(--color-black-rgb), 0.4);
    --surface-black-042: rgba(var(--color-black-rgb), 0.42);
    --surface-black-045: rgba(var(--color-black-rgb), 0.45);
    --surface-black-050: rgba(var(--color-black-rgb), 0.5);
    --surface-black-055: rgba(var(--color-black-rgb), 0.55);
    --surface-black-065: rgba(var(--color-black-rgb), 0.65);
    --surface-black-072: rgba(var(--color-black-rgb), 0.72);
    --surface-black-075: rgba(var(--color-black-rgb), 0.75);
    --surface-black-082: rgba(var(--color-black-rgb), 0.82);
    --surface-black-085: rgba(var(--color-black-rgb), 0.85);

    --bg-0: var(--color-neutral-900);
    --bg-1: var(--color-neutral-800);
    --bg-2: var(--color-neutral-650);
    --text-0: var(--color-text-primary);
    --text-1: var(--color-text-muted);
    --border-0: var(--surface-white-014);
    --accent-0: var(--color-text-link);
    --brand-0: var(--color-brand-0);
    --brand-1: var(--color-brand-1);
    --brand-2: var(--color-brand-2);
    --brand-rgb: 147, 168, 148;
    --brand-contrast: var(--color-brand-contrast);
    --bs-primary: var(--brand-0);
    --bs-primary-rgb: var(--brand-rgb);
    --bs-link-color: var(--accent-0);
    --bs-link-hover-color: var(--color-text-link-hover);
    --bs-link-color-rgb: 221, 221, 221;
    --bs-link-hover-color-rgb: 243, 246, 244;
    --bs-focus-ring-color: rgba(var(--brand-rgb), 0.35);
}

html,
body {
    font-family: 'Manrope', sans-serif;
    background:
        radial-gradient(circle at 20% 10%, var(--surface-white-006), var(--color-transparent) 35%),
        radial-gradient(circle at 85% 30%, var(--surface-white-005), var(--color-transparent) 40%),
        linear-gradient(145deg, var(--bg-0), var(--bg-1) 45%, var(--color-neutral-760) 100%);
    color: var(--text-0);
    min-height: 100%;
}

a,
.btn-link {
    color: var(--accent-0);
}

.btn {
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.btn-primary {
    --bs-btn-color: var(--brand-contrast);
    --bs-btn-bg: var(--brand-0);
    --bs-btn-border-color: var(--brand-0);
    --bs-btn-hover-color: var(--color-brand-contrast-strong);
    --bs-btn-hover-bg: var(--brand-1);
    --bs-btn-hover-border-color: var(--brand-1);
    --bs-btn-focus-shadow-rgb: var(--brand-rgb);
    --bs-btn-active-color: var(--color-brand-contrast-strong);
    --bs-btn-active-bg: var(--brand-2);
    --bs-btn-active-border-color: var(--brand-2);
    --bs-btn-disabled-color: rgba(var(--color-brand-contrast-rgb), 0.78);
    --bs-btn-disabled-bg: rgba(var(--brand-rgb), 0.55);
    --bs-btn-disabled-border-color: rgba(var(--brand-rgb), 0.55);
    color: var(--brand-contrast);
    background-color: var(--brand-0);
    border-color: var(--brand-0);
    font-weight: 600;
}

.btn-primary:hover,
.btn-primary:focus-visible,
.btn-primary:focus,
.btn-primary:active,
.btn-primary:active:focus {
    color: var(--color-brand-contrast-strong);
    background-color: var(--brand-1);
    border-color: var(--brand-1);
}

.btn-primary:disabled,
.btn-primary.disabled {
    color: rgba(var(--color-brand-contrast-rgb), 0.78);
    background-color: rgba(var(--brand-rgb), 0.55);
    border-color: rgba(var(--brand-rgb), 0.55);
}

.btn-outline-light {
    color: var(--text-0);
    border-color: var(--border-0);
}

.btn-outline-light:hover,
.btn-outline-light:focus-visible,
.btn-outline-light:focus,
.btn-outline-light:active {
    color: var(--color-brand-soft-text);
    background-color: rgba(var(--color-brand-surface-rgb), 0.24);
    border-color: rgba(var(--color-brand-border-rgb), 0.62);
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.15rem rgba(var(--color-brand-shadow-rgb), 0.4);
}

.content {
    padding-top: 1.2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.hero {
    min-height: 72vh;
    display: grid;
    align-items: start;
    gap: 0;
    padding: 1rem 0 1.2rem;
}

.hero-inner {
    max-width: 760px;
}

.hero-media {
    margin: 0;
    width: 100%;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--border-0);
    background: var(--surface-white-003);
    aspect-ratio: 16 / 9;
}

.hero-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-compact-copy {
    max-width: 700px;
    margin: -2.25rem auto 0;
    text-align: center;
    border: 1px solid var(--border-0);
    border-radius: 12px;
    background: rgba(var(--color-neutral-940-rgb), 0.78);
    backdrop-filter: blur(6px);
    padding: 1rem 1rem 1.15rem;
    position: relative;
    z-index: 2;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16rem;
    color: var(--text-1);
    font-size: 0.82rem;
    margin-bottom: 0.85rem;
}

h1,
h2,
h3 {
    font-family: 'Cormorant Garamond', serif;
    line-height: 1.1;
}

h1 {
    font-size: clamp(2.4rem, 6vw, 4.7rem);
    margin-bottom: 1rem;
}

.hero-copy {
    color: var(--color-text-subtle);
    max-width: 52ch;
    line-height: 1.7;
    margin-bottom: 1rem;
    margin-left: auto;
    margin-right: auto;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.8rem;
    justify-content: center;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0 2.8rem;
}

.feature-card {
    border: 1px solid var(--border-0);
    background: linear-gradient(170deg, var(--surface-white-005), var(--surface-white-002));
    border-radius: 12px;
    padding: 1rem 1rem 1.1rem;
    backdrop-filter: blur(2px);
}

.feature-card p,
.card-copy,
.muted-copy {
    color: var(--text-1);
}

.seo-copy-block {
    margin: 1.45rem auto 0;
    padding: 1rem 1rem 1.05rem;
    border: 1px solid var(--surface-white-010);
    background: var(--surface-white-003);
    max-width: 760px;
    text-align: center;
}

.seo-copy-block h2 {
    font-size: clamp(1.45rem, 2.5vw, 1.9rem);
    margin-bottom: 0.55rem;
}

.seo-copy-block p {
    color: var(--text-1);
    line-height: 1.55;
    font-size: 0.96rem;
    margin: 0 auto;
    max-width: 56ch;
}

.seo-copy-block p:last-child {
    margin-bottom: 0;
}

.portfolio-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    justify-content: center;
    gap: 1.35rem;
    margin-top: 1.2rem;
}

.prints-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.35rem;
    margin-top: 1.2rem;
}

.shot-card,
.print-card {
    border: 1px solid var(--border-0);
    background-color: var(--surface-white-003);
}

.print-card {
    scroll-margin-top: 5rem;
}

.shot-card {
    position: relative;
    overflow: hidden;
}

.shot-preview,
.print-preview {
    aspect-ratio: 3 / 2;
    background: linear-gradient(160deg, var(--color-neutral-600), var(--color-neutral-700) 50%, var(--color-neutral-850));
    background-color: var(--color-neutral-925);
}

.shot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background-color: var(--color-neutral-925);
    display: block;
}

.shot-image-placeholder {
    background:
        radial-gradient(circle at 20% 20%, var(--surface-white-005), var(--color-transparent) 40%),
        linear-gradient(150deg, var(--color-neutral-825), var(--color-neutral-920) 55%, var(--color-neutral-875));
}

.shot-card-link {
    display: block;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--color-transparent);
    cursor: zoom-in;
    position: relative;
    aspect-ratio: 3 / 2;
}

.shot-card-link:focus-visible {
    outline: 2px solid var(--surface-white-065);
    outline-offset: -2px;
}

.shot-card-hint {
    position: absolute;
    left: 0.6rem;
    bottom: 0.6rem;
    padding: 0.45rem 0.7rem;
    font-size: 0.78rem;
    letter-spacing: 0.08rem;
    text-transform: uppercase;
    color: var(--color-text-soft);
    background: var(--surface-black-055);
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
}

.shot-card-download {
    position: absolute;
    bottom: 0.6rem;
    right: 0.6rem;
    width: 2.2rem;
    height: 2.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    line-height: 1;
    border: 1px solid var(--surface-white-025);
    background: var(--surface-black-055);
    color: var(--color-text-soft);
    text-decoration: none;
    opacity: 0;
    transition: opacity 0.2s ease, background 0.15s ease, border-color 0.15s ease;
    z-index: 2;
}

.shot-card:hover .shot-card-hint,
.shot-card:focus-within .shot-card-hint,
.print-card:hover .shot-card-hint,
.print-card:focus-within .shot-card-hint {
    opacity: 1;
}

.shot-card:hover .shot-card-download,
.shot-card:focus-within .shot-card-download {
    opacity: 1;
}

.shot-card-download:hover,
.shot-card-download:focus-visible {
    background: var(--surface-black-075);
    border-color: var(--surface-white-045);
}

.media-loading-badge {
    position: absolute;
    left: 1rem;
    top: 1rem;
    padding: 0.4rem 0.65rem;
    font-size: 0.72rem;
    letter-spacing: 0.06rem;
    text-transform: uppercase;
    color: var(--color-text-soft);
    background: var(--surface-black-055);
    pointer-events: none;
}

.media-loading-indicator {
    position: absolute;
    right: 0.85rem;
    top: 0.85rem;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 999px;
    background: var(--surface-white-012);
    border: 1px solid var(--surface-white-020);
    display: grid;
    place-items: center;
    pointer-events: none;
}

.media-loading-indicator-dot {
    width: 0.22rem;
    height: 0.22rem;
    border-radius: 999px;
    background: var(--surface-white-072);
    animation: media-loading-pulse 1.15s ease-in-out infinite;
}

@keyframes media-loading-pulse {
    0%,
    100% {
        opacity: 0.35;
        transform: scale(0.8);
    }

    50% {
        opacity: 0.95;
        transform: scale(1);
    }
}

.album-progress-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.65rem;
    margin: 1.5rem auto 0;
    text-align: center;
}

.album-progress-count {
    margin: 0;
}

.album-progress-actions {
    display: flex;
    justify-content: center;
    gap: 0.55rem;
    flex-wrap: wrap;
}

.album-load-sentinel {
    width: 100%;
    height: 1px;
}

.album-load-status {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    margin: 0;
    color: var(--color-text-muted);
    font-size: 0.9rem;
}

.portfolio-progress {
    margin-top: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
}

.shot-card-cta {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    z-index: 1;
    backdrop-filter: blur(6px);
    background-color: var(--surface-black-042);
}

.lightbox-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1050;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1.5rem;
    background: var(--surface-black-082);
    touch-action: pan-y;
}

.lightbox-panel {
    position: relative;
    max-width: min(92vw, 1600px);
    max-height: 92vh;
}

.lightbox-panel:focus {
    outline: none;
}

.lightbox-media-shell {
    position: relative;
}

.lightbox-image {
    display: block;
    max-width: 100%;
    max-height: 92vh;
    width: auto;
    height: auto;
    box-shadow: 0 24px 80px var(--surface-black-045);
}

.lightbox-loading {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    color: var(--color-text-primary);
    background: var(--surface-black-050);
    min-width: min(92vw, 720px);
    min-height: min(72vh, 520px);
}

.lightbox-preload {
    display: none;
}

.lightbox-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    border: 1px solid var(--surface-white-020);
    background: var(--surface-black-055);
    color: var(--color-white);
    padding: 0.55rem 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    font-size: 0.78rem;
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 3.25rem;
    height: 3.25rem;
    border: 1px solid var(--surface-white-020);
    background: var(--surface-black-040);
    color: var(--color-white);
    font-size: 2rem;
    line-height: 1;
    z-index: 1;
}

.lightbox-nav-prev {
    left: 1rem;
}

.lightbox-nav-next {
    right: 1rem;
}

@media (max-width: 700px) {
    .hero {
        min-height: auto;
        padding-top: 0.5rem;
    }

    .hero-media {
        aspect-ratio: 4 / 5;
    }

    .hero-compact-copy {
        margin-top: -1.35rem;
        padding: 0.9rem 0.85rem 1rem;
    }
}

.lightbox-actions {
    position: absolute;
    right: 1rem;
    bottom: 1rem;
    display: flex;
    gap: 0.75rem;
}

.checkout-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.85fr);
    gap: 1.5rem;
    margin-top: 1.5rem;
    align-items: start;
}

.checkout-form,
.checkout-summary,
.cart-table-wrap,
.cart-summary {
    border: 1px solid var(--surface-white-010);
    background-color: var(--surface-white-004);
}

.checkout-form,
.checkout-summary {
    padding: 1.35rem;
}

.checkout-summary table {
    width: 100%;
    border-collapse: collapse;
}

.checkout-summary th,
.checkout-summary td {
    padding: 0.8rem 0;
    border-bottom: 1px solid var(--surface-white-008);
    text-align: left;
}

.checkout-summary tfoot td {
    border-bottom: 0;
    padding-bottom: 0;
}

.form-group {
    margin-bottom: 1rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.45rem;
    color: var(--text-1);
}

.checkout-actions,
.cart-summary-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.checkout-actions .btn,
.cart-summary-actions .btn {
    min-width: 180px;
}

.card-body {
    padding: 0.85rem 1rem 1rem;
}

.price {
    font-weight: 700;
    margin-bottom: 0.9rem;
}

.shop-note {
    border-left: 3px solid var(--surface-white-035);
    background-color: var(--surface-white-004);
    padding: 0.9rem 1rem;
    margin-top: 1.2rem;
}

.admin-auth-card,
.admin-panel {
    border: 1px solid var(--surface-white-010);
    background-color: var(--surface-white-004);
    padding: 1.35rem;
    margin-top: 1.25rem;
}

.admin-auth-card {
    max-width: 520px;
}

.admin-login-form {
    display: grid;
    gap: 0.85rem;
}

.admin-label {
    color: var(--text-1);
}

.admin-token-input {
    max-width: 360px;
}

.admin-toolbar,
.admin-panel-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-toolbar {
    margin-top: 1rem;
}

.admin-summary-copy {
    margin-bottom: 0;
}

.admin-subnav {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-top: 1rem;
}

.admin-subnav-link {
    display: inline-flex;
    align-items: center;
    padding: 0.7rem 1rem;
    border: 1px solid var(--surface-white-010);
    color: var(--text-1);
    text-decoration: none;
    background: var(--surface-white-003);
    font: inherit;
    cursor: pointer;
}

.admin-subnav-link.active,
.admin-subnav-link:hover {
    color: var(--text-0);
    border-color: var(--surface-white-025);
    background: var(--surface-white-008);
}

.admin-card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1rem;
    margin-top: 1.25rem;
}

.admin-section-card {
    display: block;
    border: 1px solid var(--surface-white-010);
    background: var(--surface-white-004);
    padding: 1.2rem;
    color: var(--text-0);
    text-decoration: none;
}

.admin-section-card:hover {
    background: var(--surface-white-007);
}

.admin-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
}

.admin-filter-field {
    flex: 1 1 240px;
}

.admin-filter-field-small {
    flex: 0 1 220px;
}

.admin-filter-actions {
    display: flex;
    align-items: flex-end;
    justify-content: flex-end;
}

.admin-label-hidden {
    visibility: hidden;
}

.admin-photos-filter-panel {
    margin-bottom: 1rem;
}

.admin-photos-helper {
    margin: 0;
}

.admin-photos-grid-panel {
    padding: 1rem;
}

.admin-photos-grid {
    margin-top: 0;
}

.admin-photo-card {
    display: flex;
    flex-direction: column;
}

.admin-photo-preview {
    position: relative;
    overflow: hidden;
    background: linear-gradient(160deg, var(--color-neutral-600), var(--color-neutral-700) 50%, var(--color-neutral-850));
    background-color: var(--color-neutral-925);
}

.admin-photo-preview .shot-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
}

.admin-photo-visibility-overlay {
    position: absolute;
    inset: 0;
    background: rgba(var(--color-slate-surface-rgb), 0.58);
    pointer-events: none;
}

.admin-photo-hidden-badge {
    position: absolute;
    left: 0.8rem;
    bottom: 0.8rem;
    padding: 0.35rem 0.65rem;
    background: rgba(var(--color-warning-600-rgb), 0.94);
    color: var(--color-warning-50);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.1rem;
    text-transform: uppercase;
    z-index: 2;
}

.admin-photo-corner-ribbon {
    position: absolute;
    top: 0;
    right: 0;
    width: 5rem;
    height: 5rem;
    clip-path: polygon(100% 0, 0 0, 100% 100%);
    background: linear-gradient(135deg, rgba(var(--color-purple-600-rgb), 0.96), rgba(var(--color-purple-800-rgb), 0.96));
    z-index: 2;
    pointer-events: none;
}

.admin-photo-corner-ribbon-label {
    position: absolute;
    top: 33%;
    left: 67%;
    width: 4.8rem;
    color: var(--color-purple-text);
    font-size: 0.6rem;
    font-weight: 700;
    letter-spacing: 0.06rem;
    line-height: 1.1;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    text-transform: uppercase;
    transform: translate(-50%, -50%) rotate(45deg);
    transform-origin: center;
}

.admin-photo-card-body {
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
    padding: 0.75rem 0.8rem 0.8rem;
    font-size: 0.9rem;
}

.admin-photo-title-block {
    min-height: 1rem;
    display: flex;
    align-items: flex-start;
}

.admin-photo-description-block {
    min-height: 1.5rem;
}

.admin-photo-meta-block {
    min-height: 1.5rem;
}

.admin-photo-path-block {
    min-height: 1rem;
}

.admin-photo-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.admin-photo-meta-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.28rem 0.55rem;
    border: 1px solid var(--surface-white-012);
    background: var(--surface-white-005);
    color: var(--text-1);
    font-size: 0.74rem;
    line-height: 1.2;
}

.admin-photo-title-block strong {
    font-size: 0.92rem;
    line-height: 1.2;
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-photo-card-actions {
    align-items: center;
    margin-top: 0rem;
}

.admin-photo-view-count {
    margin-left: auto;
    color: var(--text-1);
    font-size: 0.72rem;
    white-space: nowrap;
}

.admin-photo-card .admin-subtle {
    font-size: 0.78rem;
    line-height: 1.35;
}

.admin-photo-description-block .admin-subtle,
.admin-photo-path-block .admin-subtle {
    display: -webkit-box;
    line-clamp: 2;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.admin-photo-preview-draggable {
    cursor: grab;
}

.admin-photo-preview-draggable:active {
    cursor: grabbing;
}

.admin-drop-target {
    border-color: var(--surface-white-045);
    box-shadow: 0 0 0 2px var(--surface-white-014);
    transform: translateY(-2px);
}

.admin-modal-backdrop {
    position: fixed;
    inset: 0;
    z-index: 1200;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    background: var(--surface-black-072);
    backdrop-filter: blur(6px);
}

.admin-modal-panel {
    width: min(900px, 100%);
    max-height: calc(100vh - 4rem);
    overflow: auto;
    border: 1px solid var(--surface-white-012);
    background: var(--color-neutral-910);
    padding: 1.25rem;
    box-shadow: 0 24px 80px var(--surface-black-045);
}

.admin-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.admin-modal-header h2 {
    margin: 0;
}

.admin-editor-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.9fr);
    gap: 1.25rem;
    align-items: start;
}

.admin-editor-panel {
    border: 1px solid var(--surface-white-010);
    background-color: var(--surface-white-003);
    padding: 1rem;
}

.admin-editor-form {
    margin-top: 1rem;
}

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

.admin-form-grid-span {
    grid-column: 1 / -1;
}

.admin-section-header {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
    justify-content: space-between;
}

.admin-subsection-title {
    margin: 0;
    color: var(--text-0);
    font-size: 1rem;
}

.admin-inline-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.admin-textarea {
    min-height: 120px;
}

.admin-checkbox-row {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-top: 2rem;
}

.admin-success {
    color: var(--color-success-text);
    margin-bottom: 1rem;
}

.admin-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.7rem;
    border-radius: 999px;
    background: var(--surface-white-008);
    color: var(--text-0);
}

.admin-grid-two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.25rem;
}

.admin-table-wrap {
    overflow-x: auto;
    margin-top: 1rem;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
}

.admin-table th,
.admin-table td {
    padding: 0.85rem 0.75rem;
    border-bottom: 1px solid var(--surface-white-008);
    vertical-align: top;
}

.admin-table th {
    color: var(--text-1);
    font-size: 0.84rem;
    text-transform: uppercase;
    letter-spacing: 0.06rem;
}

.admin-sort-button {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    width: 100%;
    padding: 0;
    border: 0;
    background: var(--color-transparent);
    color: inherit;
    font: inherit;
    letter-spacing: inherit;
    text-transform: inherit;
    text-align: left;
}

.admin-sort-button.align-end {
    justify-content: flex-end;
    text-align: right;
}

.admin-sort-button:hover,
.admin-sort-button.active {
    color: var(--text-0);
}

.admin-sort-indicator {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 0.8rem;
    color: var(--brand-0);
}

.compact-table th,
.compact-table td {
    padding-top: 0.7rem;
    padding-bottom: 0.7rem;
}

.admin-albums-table {
    font-size: 0.9rem;
}

.admin-albums-table th {
    font-size: 0.74rem;
}

.admin-albums-table th,
.admin-albums-table td {
    padding: 0.62rem 0.5rem;
}

.admin-albums-table td:first-child {
    min-width: 14rem;
}

.admin-muted-row {
    opacity: 0.62;
}

.admin-subtle {
    color: var(--text-1);
    font-size: 0.9rem;
    margin-top: 0.2rem;
}

.admin-wrap {
    word-break: break-word;
}

.admin-shot-row {
    display: flex;
    gap: 0.75rem;
    align-items: flex-start;
}

.admin-shot-thumb {
    width: 56px;
    height: 56px;
    object-fit: cover;
    border-radius: 4px;
    flex-shrink: 0;
    background-color: var(--surface-white-006);
}

.admin-row-draggable {
    cursor: default;
}

.admin-row-draggable:active {
    cursor: default;
}

.admin-row-dragging {
    opacity: 0.58;
}

.admin-sort-cell {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.admin-drag-handle {
    color: var(--text-1);
    letter-spacing: 0.08rem;
    font-weight: 600;
}

.admin-actions-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.btn-sm {
    min-width: auto;
    padding: 0.45rem 0.8rem;
    font-size: 0.88rem;
}

.status-pill {
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    padding: 0.28rem 0.7rem;
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.05rem;
}

.status-pending {
    background: rgba(var(--color-warning-500-rgb), 0.18);
    color: var(--color-warning-text);
}

.status-paid {
    background: rgba(var(--color-info-rgb), 0.18);
    color: var(--color-info-text);
}

.status-visible {
    background: rgba(var(--color-success-rgb), 0.18);
    color: var(--color-success-text);
}

.status-hidden {
    background: rgba(var(--color-slate-rgb), 0.18);
    color: var(--color-slate-text);
}

.album-type-pill {
    border: 1px solid var(--color-transparent);
    min-width: 9.6rem;
    justify-content: center;
}

.album-type-delivery {
    border-color: rgba(var(--brand-rgb), 0.48);
    background: rgba(var(--brand-rgb), 0.18);
    color: var(--color-brand-soft-text);
}

.album-type-culling {
    border-color: rgba(var(--color-warning-600-rgb), 0.42);
    background: rgba(var(--color-warning-600-rgb), 0.16);
    color: var(--color-warning-200);
}

@media (max-width: 900px) {
    .admin-modal-backdrop {
        padding: 1rem;
    }

    .admin-modal-panel {
        max-height: calc(100vh - 2rem);
    }
}

.status-cancelled {
    background: rgba(var(--color-danger-rgb), 0.18);
    color: var(--color-danger-text);
}

.status-fulfilled {
    background: rgba(var(--color-success-rgb), 0.18);
    color: var(--color-success-text);
}

.admin-details {
    margin-top: 0.65rem;
}

.admin-list {
    margin: 0.5rem 0 0;
    padding-left: 1.15rem;
}

.admin-error {
    color: var(--color-danger-text);
    margin-bottom: 0.85rem;
}

@media (max-width: 900px) {
    .admin-grid-two {
        grid-template-columns: 1fr;
    }

    .admin-editor-layout,
    .admin-form-grid {
        grid-template-columns: 1fr;
    }

    .admin-checkbox-row {
        margin-top: 0;
    }
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-success-outline);
}

.invalid {
    outline: 1px solid var(--color-danger-outline);
}

.validation-message {
    color: var(--color-danger-outline);
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZ2h0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, var(--color-danger-banner);
    padding: 1rem 1rem 1rem 3.7rem;
    color: var(--color-white);
}

    .blazor-error-boundary::after {
        content: "An error has occurred."
    }

.darker-border-checkbox.form-check-input {
    border-color: var(--color-text-muted);
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
    color: var(--bs-secondary-color);
    text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
    text-align: start;
}

@media (max-width: 641px) {
    .hero {
        min-height: auto;
    }

    .portfolio-grid,
    .prints-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .shot-card-link {
        aspect-ratio: 4 / 3;
    }

    .shot-card-hint {
        opacity: 1;
        bottom: 0.75rem;
        left: 0.75rem;
    }

    .portfolio-grid .shot-card-hint {
        display: none;
    }

    .shot-card-cta {
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .album-culling-toolbar {
        grid-template-columns: 1fr;
    }

    .album-filter-group {
        justify-content: flex-start;
    }

    .album-selection-controls,
    .album-visibility-group {
        width: 100%;
    }

    .album-visibility-button {
        flex: 1 1 30%;
        justify-content: center;
    }

    .lightbox-backdrop {
        padding: 0.75rem;
    }

    .lightbox-close {
        top: 0.75rem;
        right: 0.75rem;
    }

    .lightbox-nav {
        width: 2.75rem;
        height: 2.75rem;
    }

    .lightbox-nav-prev {
        left: 0.75rem;
    }

    .lightbox-nav-next {
        right: 0.75rem;
    }

    .lightbox-actions {
        right: 0.75rem;
        bottom: 0.75rem;
    }
}

.cart-section {
    margin-top: 2rem;
}

.cart-table-wrap {
    overflow-x: auto;
    border-radius: 12px;
}

.cart-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.cart-table th,
.cart-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--surface-white-010);
}

.cart-table th {
    background-color: var(--surface-white-005);
    font-weight: 600;
}

.cart-table input[type="number"] {
    width: 60px;
    padding: 0.5rem;
    border: 1px solid var(--surface-white-020);
    border-radius: 4px;
    background-color: var(--surface-white-003);
    color: var(--text-0);
}

.cart-summary {
    background-color: var(--surface-white-005);
    border: 1px solid var(--surface-white-010);
    border-radius: 12px;
    padding: 1.5rem;
    max-width: 400px;
}

.cart-summary p {
    margin: 0.5rem 0;
    color: var(--text-1);
}

.btn-outline-danger {
    color: var(--color-danger-text-strong);
    border-color: var(--color-danger-text-strong);
}

.btn-outline-danger:hover {
    background-color: rgba(var(--color-danger-text-strong-rgb), 0.1);
    border-color: var(--color-danger-border);
}

.order-message {
    margin-top: 1rem;
    font-weight: 600;
}

.cart-link {
    margin-left: 1rem;
    padding: 0.5rem 1rem;
    background-color: var(--surface-white-010);
    border: 1px solid var(--surface-white-020);
    border-radius: 6px;
    color: var(--accent-0);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s ease;
}

.cart-link:hover {
    background-color: var(--surface-white-015);
    border-color: var(--surface-white-040);
}

.toast-notification {
    position: fixed;
    display: none;
}

@media (max-width: 641px) {
    .content {
        padding-top: 0.75rem;
    }

    .hero {
        padding: 1rem 0 0.5rem;
    }

    .hero-actions,
    .checkout-actions,
    .cart-summary-actions {
        flex-direction: column;
    }

    .hero-actions .btn,
    .checkout-actions .btn,
    .cart-summary-actions .btn {
        width: 100%;
        min-width: 0;
    }

    .lightbox-actions {
        left: 0.75rem;
        right: 0.75rem;
        bottom: 0.75rem;
    }

    .lightbox-actions .btn {
        width: 100%;
    }

    .album-progress-footer {
        align-items: stretch;
        margin-top: 1.15rem;
    }

    .album-progress-actions {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .album-progress-actions .btn {
        width: 100%;
        min-height: 2.4rem;
    }

    .album-load-status {
        min-height: 2rem;
    }

    .cart-table {
        min-width: 100%;
        margin-bottom: 1rem;
    }

    .cart-table thead {
        display: none;
    }

    .cart-table,
    .cart-table tbody,
    .cart-table tr,
    .cart-table td {
        display: block;
        width: 100%;
    }

    .cart-table tr {
        padding: 1rem;
        border-bottom: 1px solid var(--surface-white-010);
    }

    .cart-table td {
        padding: 0.45rem 0;
        border-bottom: 0;
        text-align: left;
    }

    .cart-table td::before {
        content: attr(data-label);
        display: block;
        margin-bottom: 0.25rem;
        color: var(--text-1);
        font-size: 0.8rem;
        text-transform: uppercase;
        letter-spacing: 0.06rem;
    }

    .cart-table input[type="number"],
    .cart-table .btn {
        width: 100%;
    }

    .cart-summary {
        max-width: none;
    }

    .checkout-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .checkout-form,
    .checkout-summary {
        padding: 1rem;
    }

    .checkout-summary-table-wrap {
        overflow-x: auto;
    }

    .checkout-summary table {
        min-width: 320px;
    }

    .toast-notification {
        top: auto;
        bottom: 1rem;
        right: 1rem;
        left: 1rem;
    }
}

/* ── Album pages ───────────────────────────────────────────────────────────── */

.album-download-bar {
    display: flex;
    justify-content: flex-end;
    margin: 0.75rem 0 0.5rem;
}

.album-culling-toolbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 1rem;
    align-items: start;
    margin: 0.75rem 0 1rem;
    padding: 1rem;
    border: 1px solid var(--border-0);
    background: var(--surface-white-004);
}

.album-culling-copy {
    min-width: 0;
}

.album-culling-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 0.75rem;
}

.album-culling-title {
    margin: 0 0 0.25rem;
    font-weight: 700;
}

.album-filter-group {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.45rem;
}

.album-filter-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.6rem;
    border: 1px solid var(--surface-white-018);
    background: var(--surface-white-006);
    color: var(--text-0);
    font-size: 0.82rem;
}

.album-filter-pill span {
    color: var(--text-1);
}

.album-filter-pill.active {
    border-color: rgba(var(--brand-rgb), 0.8);
    background: rgba(var(--brand-rgb), 0.2);
}

.admin-album-type-filter {
    justify-content: flex-start;
}

.album-photo-card {
    background: rgba(var(--color-white-rgb), 0.035);
}

.album-photo-card.is-selected {
    outline: 2px solid rgba(var(--color-brand-border-rgb), 0.85);
    outline-offset: -2px;
}

.album-photo-card.is-rejected .shot-image {
    opacity: 0.72;
}

.album-selection-card-controls {
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    padding: 0.7rem;
}

.album-photo-filename {
    margin: 0;
    overflow: hidden;
    color: var(--text-1);
    font-size: 0.72rem;
    line-height: 1.25;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.album-selection-controls {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.45rem;
}

.album-visibility-button {
    border: 1px solid var(--surface-white-018);
    background: var(--surface-white-006);
    color: var(--text-0);
    padding: 0.38rem 0.62rem;
    font-size: 0.82rem;
    line-height: 1.2;
}

.album-selection-switch {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-width: 8rem;
    padding: 0.34rem 0.56rem;
    border: 1px solid var(--surface-white-018);
    background: var(--surface-white-006);
    color: var(--text-1);
    font-size: 0.82rem;
    line-height: 1.2;
}

.album-selection-switch.selected {
    border-color: rgba(var(--color-brand-border-rgb), 0.9);
    background: rgba(var(--color-brand-border-rgb), 0.2);
    color: var(--text-0);
}

.album-selection-switch-track {
    position: relative;
    width: 2.25rem;
    height: 1.2rem;
    border-radius: 999px;
    background: var(--surface-white-024);
    transition: background 0.18s ease;
}

.album-selection-switch.selected .album-selection-switch-track {
    background: rgba(var(--color-brand-border-rgb), 0.95);
}

.album-selection-switch-thumb {
    position: absolute;
    top: 0.16rem;
    left: 0.16rem;
    width: 0.88rem;
    height: 0.88rem;
    border-radius: 999px;
    background: var(--color-text-soft);
    transition: transform 0.18s ease;
}

.album-selection-switch.selected .album-selection-switch-thumb {
    transform: translateX(1.05rem);
}

.album-visibility-group {
    display: inline-flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

.album-visibility-button {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.album-visibility-button.active {
    border-color: var(--surface-white-055);
    background: var(--surface-white-016);
}

.album-lightbox-selection {
    max-width: min(92vw, 720px);
    justify-content: center;
}

@media (max-width: 641px) {
    .album-culling-toolbar {
        grid-template-columns: 1fr;
        gap: 0.85rem;
        padding: 0.85rem;
    }

    .album-culling-copy .muted-copy {
        line-height: 1.45;
    }

    .album-culling-actions {
        align-items: stretch;
    }

    .album-filter-group {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
        justify-content: stretch;
    }

    .album-filter-pill {
        justify-content: center;
        min-height: 2.35rem;
        width: 100%;
        text-align: center;
    }
}

/* ── Admin album styles ────────────────────────────────────────────────────── */

.admin-stats-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin: 1rem 0 0;
}

.admin-stat-chip {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 6rem;
    padding: 0.65rem 1rem;
    border: 1px solid var(--border-0);
    background: var(--surface-white-004);
    gap: 0.2rem;
    color: inherit;
    text-decoration: none;
}

.admin-stat-chip-clickable,
.admin-stat-action-chip {
    font: inherit;
    cursor: pointer;
}

.admin-stat-chip-clickable:hover,
.admin-stat-action-chip:hover {
    border-color: var(--border-1);
    color: var(--text-0);
}

.admin-stat-action-chip.is-done {
    border-color: rgba(var(--color-success-rgb), 0.45);
    background: rgba(var(--color-success-rgb), 0.14);
    color: var(--color-success-text);
}

.admin-stat-action-chip.is-open {
    border-color: rgba(var(--color-warning-600-rgb), 0.45);
    background: rgba(var(--color-warning-600-rgb), 0.14);
    color: var(--color-warning-200);
}

.admin-stat-action-chip:disabled {
    cursor: default;
    opacity: 0.65;
}

.admin-tracking-modal {
    width: min(1040px, calc(100vw - 2rem));
    max-height: min(86vh, 760px);
    overflow: auto;
}

.admin-current-address {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin: 1rem 0;
    padding: 0.85rem 1rem;
    border: 1px solid var(--surface-white-010);
    background: var(--surface-white-004);
}

.admin-current-address > div:first-child {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.admin-highlight-row {
    background: rgba(var(--color-warning-500-rgb), 0.08);
}

.admin-stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    line-height: 1;
}

.admin-stat-label {
    font-size: 0.74rem;
    text-transform: uppercase;
    letter-spacing: 0.08rem;
    color: var(--text-1);
}

.admin-section-title {
    font-size: 1rem;
    font-family: 'Manrope', sans-serif;
    font-weight: 600;
    margin-bottom: 0.75rem;
}

.album-share-link {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
    min-width: 320px;
}

.album-share-link-row {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}

.album-upload-queue {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin-top: 0.5rem;
}

.album-upload-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.4rem 0.7rem;
    font-size: 0.85rem;
    border: 1px solid var(--border-0);
    background: var(--surface-white-003);
}

.album-upload-item.done {
    border-color: rgba(var(--color-success-rgb), 0.35);
    background: rgba(var(--color-success-rgb), 0.06);
}

.album-upload-item.error {
    border-color: rgba(var(--color-danger-rgb), 0.35);
    background: rgba(var(--color-danger-rgb), 0.06);
}

.admin-photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 0.75rem;
}

.admin-photo-card {
    position: relative;
    border: 1px solid var(--border-0);
    background: var(--surface-white-003);
    overflow: hidden;
}

.admin-photo-card.selection-private {
    border-color: rgba(var(--color-warning-500-rgb), 0.9);
    box-shadow: inset 0 0 0 1px rgba(var(--color-warning-500-rgb), 0.22);
}

.admin-photo-card.selection-public {
    border-color: rgba(var(--color-success-rgb), 0.75);
    box-shadow: inset 0 0 0 1px rgba(var(--color-success-rgb), 0.2);
}

.admin-photo-card.selection-restricted {
    border-color: rgba(var(--color-info-rgb), 0.8);
    box-shadow: inset 0 0 0 1px rgba(var(--color-info-rgb), 0.22);
}

.admin-photo-thumb {
    width: 100%;
    aspect-ratio: 3 / 2;
    object-fit: contain;
    object-position: center;
    background: var(--color-neutral-925);
    display: block;
}

.admin-photo-info {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.6rem;
    font-size: 0.78rem;
    overflow: hidden;
}

.admin-photo-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
    color: var(--text-1);
    min-width: 0;
}

.admin-photo-delete {
    position: absolute;
    top: 0.4rem;
    right: 0.4rem;
    padding: 0.2rem 0.5rem;
    font-size: 0.85rem;
    line-height: 1;
    opacity: 0;
    transition: opacity 0.15s ease;
    background: var(--surface-black-065);
}

.admin-photo-card:hover .admin-photo-delete,
.admin-photo-card:focus-within .admin-photo-delete {
    opacity: 1;
}

.admin-link {
    color: var(--text-0);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.admin-link:hover {
    color: var(--color-white);
}

.admin-link-button {
    border: 0;
    padding: 0;
    background: var(--color-transparent);
    color: var(--text-0);
    text-decoration: underline;
    text-underline-offset: 3px;
    font: inherit;
}

.admin-link-button:hover {
    color: var(--color-white);
}

.admin-ip-link {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.15rem;
    text-align: left;
}

.admin-ip-pill {
    display: inline-flex;
    align-items: center;
    max-width: 12rem;
    padding: 0.18rem 0.52rem;
    border: 1px solid rgba(var(--color-warning-500-rgb), 0.72);
    border-radius: 999px;
    background: rgba(var(--color-warning-500-rgb), 0.2);
    color: var(--color-warning-100);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    box-shadow: 0 0 0 1px rgba(var(--color-warning-500-rgb), 0.08);
    vertical-align: middle;
}

.admin-ip-raw {
    display: block;
}

.admin-event-pill {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.55rem;
    border: 1px solid rgba(var(--color-brand-rgb), 0.5);
    border-radius: 999px;
    background: rgba(var(--color-brand-rgb), 0.18);
    color: var(--color-brand-soft-text);
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.2;
    text-transform: uppercase;
    white-space: nowrap;
    vertical-align: middle;
}

.admin-pin-block-row {
    border-top: 1px solid var(--surface-white-010);
}

.admin-pin-attempts-row td {
    padding-top: 0;
    background: var(--surface-white-003);
}

.admin-pin-attempts {
    display: grid;
    gap: 0.35rem;
    padding: 0.6rem 0;
}

.admin-pin-attempt,
.admin-pin-attempts-empty {
    display: grid;
    gap: 0.35rem;
    margin: 0;
    font-size: 0.86rem;
}

.admin-pin-attempt-summary {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    align-items: center;
}

.admin-pin-attempt-meta {
    display: grid;
    gap: 0.2rem;
    margin: 0;
    color: var(--text-2);
}

.admin-pin-attempt-meta div {
    display: grid;
    grid-template-columns: 5.5rem minmax(0, 1fr);
    gap: 0.5rem;
}

.admin-pin-attempt-meta dt {
    color: var(--text-3);
    font-weight: 600;
}

.admin-pin-attempt-meta dd {
    margin: 0;
    overflow-wrap: anywhere;
}

.admin-pin-value {
    display: inline-flex;
    align-items: center;
    padding: 0.14rem 0.45rem;
    border: 1px solid rgba(var(--color-warning-500-rgb), 0.55);
    border-radius: 999px;
    background: rgba(var(--color-warning-500-rgb), 0.16);
    color: var(--color-warning-100);
    font-family: var(--bs-font-monospace);
    font-size: 0.78rem;
}

.admin-client-meta {
    display: grid;
    gap: 0.2rem;
    min-width: 14rem;
    overflow-wrap: anywhere;
}

.album-pin-panel {
    width: min(100%, 28rem);
    margin: 2rem auto 4rem;
    padding: 1.25rem;
    border: 1px solid var(--surface-white-010);
    background: var(--surface-white-006);
}

.album-pin-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1.25rem;
}

.album-pin-form {
    margin-top: 1rem;
}

.album-pin-row {
    display: flex;
    gap: 0.6rem;
    align-items: center;
}

.album-pin-row .form-control {
    min-width: 0;
}

@media (max-width: 520px) {
    .album-pin-row {
        align-items: stretch;
        flex-direction: column;
    }
}

.not-found-panel {
    text-align: center;
    padding: 4rem 1rem;
}
