/* ============================================================
   LatentPhoto — production stylesheet
   Ported from V9 preview · darkroom theme, ink-smudge, carousel
   ============================================================ */

/* ============================================================
   LATENTPHOTO — V7
   Horizontal-scroll carousel pattern · extensible
   ============================================================

   ARCHITECTURE NOTES
   ------------------
   This layout uses the industry-standard "scroll-carousel" pattern
   for visual selection (App Store, Netflix, Spotify, etc.).

   To ADD a new option in any existing category:
       Just append one <div class="card" data-value="..."> inside
       the matching .card-scroller. CSS does the rest.

   To ADD a new category (e.g. "Texture", "Color Grade"):
       1. Add a new <section class="panel panel-scrollable panel-X">
          with the same internal markup pattern.
       2. Update .studio grid-template-rows.
       3. CSS for card art is the only category-specific code.

   To CHANGE panel height: edit .card width/min-height only.
       Panels auto-fit because they hold one scrollable row.

   To SWAP scroll for wrap on a specific panel: remove the
       .panel-scrollable class on that <section>. Card layout
       falls back to a horizontal flex row that wraps if needed.
   ============================================================ */

:root {
    --umber-deep:      #0a0606;
    --umber-mid:       #1a0e0c;
    --umber-warm:      #2a1612;
    --paper:           #efe7d4;
    --paper-aged:      #d8c4a8;
    --safelight:       #c43222;
    --safelight-deep:  #7a1a14;
    --safelight-glow:  rgba(196, 50, 34, 0.35);
    --ink:             #d8c4b0;
    --ink-dim:         #9b8773;
    --ink-faint:       #6d5d4d;
    --display:         'Fraunces', 'Times New Roman', Georgia, serif;
    --mono:            'IBM Plex Mono', 'SF Mono', Consolas, monospace;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
    min-height: 100vh;
    background: var(--umber-deep);
    color: var(--ink);
    font-family: var(--mono);
    font-size: 12px;
    overflow-x: hidden;
    position: relative;
}

/* ============================================================
   DARKROOM BACKDROP
   ============================================================ */

.room-backdrop {
    position: fixed;
    inset: 0;
    z-index: -2;
    background:
        radial-gradient(ellipse 120% 8% at 50% 11%,
            rgba(0,0,0,0.55) 0%, transparent 60%),
        radial-gradient(circle 520px at 50% 8%,
            rgba(196,50,34,0.32) 0%,
            rgba(196,50,34,0.12) 30%,
            rgba(196,50,34,0.03) 60%,
            transparent 80%),
        radial-gradient(ellipse 110% 90% at 50% 50%,
            transparent 0%,
            rgba(0,0,0,0.3) 55%,
            rgba(0,0,0,0.85) 100%),
        linear-gradient(180deg,
            #1a0c0a 0%,
            #2a1612 35%,
            #1f0e0c 70%,
            #0a0606 100%);
}

.room-svg {
    position: fixed;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    pointer-events: none;
    opacity: 0.7;
}

body::after {
    content: "";
    position: fixed;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0 0.5  0 0 0 0.5 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.07;
    pointer-events: none;
    z-index: 999;
    mix-blend-mode: overlay;
}

/* ============================================================
   MASTHEAD — smaller, LatentPhoto wordmark in Fraunces
   ============================================================ */

.masthead {
    text-align: center;
    padding: 20px 24px 4px;
    position: relative;
    z-index: 2;
}
.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
}
.brand-mark {
    width: 36px;
    height: 36px;
    flex-shrink: 0;
}
.brand-mark svg { width: 100%; height: 100%; display: block; }
.brand-name {
    font-family: 'Honk', 'Fraunces', 'Times New Roman', Georgia, serif;
    font-weight: 400;
    font-style: normal;
    font-size: 44px;
    color: var(--paper-aged);
    letter-spacing: 0.01em;
    text-shadow: 0 2px 16px rgba(0,0,0,0.7);
    line-height: 1;
    filter: url(#ink-smudge-soft);
}
.brand-slogan {
    color: var(--safelight);
    font-family: 'Bitcount Grid Single', 'IBM Plex Mono', monospace;
    font-style: normal;
    font-weight: 400;
    font-size: 16px;
    letter-spacing: 0.12em;
    text-transform: lowercase;
    margin: 8px 0 0;
    opacity: 0.92;
    filter: url(#ink-smudge-soft);
}

/* ============================================================
   STUDIO LAYOUT — 3 rows side panels + tray spanning all + develop centered
   ============================================================ */

.studio {
    max-width: 1500px;
    margin: 0 auto;
    padding: 6px 24px 16px;
    display: grid;
    grid-template-columns: 280px 1fr 280px;
    grid-template-rows: auto auto auto auto;
    gap: 12px;
    position: relative;
    z-index: 2;
}

.panel {
    background: linear-gradient(180deg,
        rgba(20, 10, 8, 0.72) 0%,
        rgba(14, 6, 5, 0.82) 100%);
    backdrop-filter: blur(10px) saturate(110%);
    -webkit-backdrop-filter: blur(10px) saturate(110%);
    border: 1px solid rgba(196, 50, 34, 0.12);
    border-radius: 6px;
    padding: 14px 14px 12px;
    box-shadow:
        inset 0 0 50px rgba(0,0,0,0.4),
        0 6px 20px rgba(0,0,0,0.5);
    position: relative;
}

.panel-label {
    display: block;
    font-family: 'Saira Condensed', 'Arial Narrow', sans-serif;
    font-style: normal;
    font-weight: 700;
    font-size: 15px;
    text-transform: uppercase;
    background: linear-gradient(180deg, #a85820 0%, #6a2810 55%, #3a1206 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    letter-spacing: 0.1em;
    margin: 0 0 5px 0;
    line-height: 1;
    filter: url(#ink-smudge);
}

/* Grid placement: 3 rows side panels, tray spans all 3 rows */
.panel-lens   { grid-column: 1; grid-row: 1; }
.panel-film   { grid-column: 1; grid-row: 2; }
.panel-print  { grid-column: 1; grid-row: 3; }
.panel-tray   { grid-column: 2; grid-row: 1 / 4; }
.panel-atmos  { grid-column: 3; grid-row: 1; }
.panel-mood   { grid-column: 3; grid-row: 2; }
.panel-imp    { grid-column: 3; grid-row: 3; }

/* ============================================================
   TRAY (center, spans all 3 rows = full height)
   ============================================================ */

.panel-tray {
    display: flex;
    flex-direction: column;
    padding: 18px;
}
.tray {
    flex: 1;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196,50,34,0.10), transparent 60%),
        linear-gradient(180deg, #0a0404 0%, #050202 100%);
    border: 1px solid rgba(196,50,34,0.18);
    border-radius: 4px;
    padding: 32px 24px;
    min-height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: inset 0 0 80px rgba(0,0,0,0.7);
    position: relative;
    overflow: hidden;
}
.tray::before {
    content: "";
    position: absolute;
    inset: 14px;
    border: 1px dashed rgba(196,50,34,0.15);
    border-radius: 2px;
    pointer-events: none;
}
.dropzone-inner { text-align: center; color: var(--ink-dim); padding: 24px; z-index: 1; }
.dropzone-icon { font-size: 46px; color: var(--safelight-deep); margin-bottom: 14px; line-height: 1; }
.dropzone-inner p { margin: 4px 0; font-family: var(--mono); font-size: 12.5px; }
.dropzone-inner .hint {
    color: var(--ink-faint);
    font-size: 10px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-top: 14px;
}
.btn-ghost {
    display: inline-block;
    background: transparent;
    color: var(--paper-aged);
    border: 1px dashed rgba(196,50,34,0.4);
    padding: 11px 24px;
    font-family: var(--mono);
    font-size: 11px;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    cursor: pointer;
    border-radius: 2px;
    margin: 14px 0;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
}
.btn-ghost:hover {
    border-color: var(--safelight);
    color: var(--paper);
    background: rgba(196,50,34,0.06);
}
.preview-wrap { position: relative; max-width: 100%; }
.preview-wrap img {
    max-width: 100%;
    max-height: 500px;
    box-shadow: 0 12px 36px rgba(0,0,0,0.8);
    border-radius: 2px;
    display: block;
}
.developing {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(10,4,4,0.85);
    color: var(--paper);
    font-family: var(--display);
    font-variation-settings: "opsz" 60;
    font-style: italic;
    font-size: 20px;
    letter-spacing: 0.15em;
    overflow: hidden;
    border-radius: 2px;
}
.developing::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='200' height='200'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.95' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0.7  0 0 0 0 0.6  0 0 0 0 0.55  0 0 0 0.6 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
    opacity: 0.5;
    animation: grain-shift 0.18s steps(8) infinite;
    mix-blend-mode: screen;
}
@keyframes grain-shift {
    0%   { transform: translate(0,0); }
    25%  { transform: translate(-8px, 4px); }
    50%  { transform: translate(5px, -4px); }
    75%  { transform: translate(-3px, -6px); }
    100% { transform: translate(4px, 7px); }
}
.developing p { position: relative; z-index: 2; }
.dots span { display: inline-block; animation: dot-fade 1.4s infinite; }
.dots span:nth-child(2) { animation-delay: 0.2s; }
.dots span:nth-child(3) { animation-delay: 0.4s; }
@keyframes dot-fade {
    0%, 20%   { opacity: 0.2; }
    50%       { opacity: 1; }
    80%, 100% { opacity: 0.2; }
}

/* ============================================================
   CARD GRID — wrap layout, smaller cards
   ============================================================ */

/* ============================================================
   CARD SCROLLER — horizontal carousel pattern.
   INDUSTRY STANDARD for visual selection of N variable items
   (App Store / Netflix / Spotify). Adding new options is O(1):
   just add a new <div class="card"> to the .card-scroller —
   no CSS or layout changes needed. Panel height stays constant.
   ============================================================ */

.card-scroller {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 4px 14px 8px;
    margin: 2px -14px 0;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    scroll-snap-type: x proximity;
}
.card-scroller::-webkit-scrollbar { display: none; }
.card-scroller .card { scroll-snap-align: start; }

/* Fade-edge masks indicating more content is scrollable */
.panel-scrollable {
    overflow: hidden;
}
.panel-scrollable::before,
.panel-scrollable::after {
    content: "";
    position: absolute;
    top: 38px;
    bottom: 12px;
    width: 24px;
    pointer-events: none;
    z-index: 4;
    transition: opacity 0.2s;
}
.panel-scrollable::before {
    left: 14px;
    background: linear-gradient(90deg,
        rgba(14, 6, 5, 0.95) 0%,
        rgba(14, 6, 5, 0) 100%);
    opacity: 0;
}
.panel-scrollable::after {
    right: 14px;
    background: linear-gradient(-90deg,
        rgba(14, 6, 5, 0.95) 0%,
        rgba(14, 6, 5, 0) 100%);
    opacity: 1;
}
.panel-scrollable.at-start::before  { opacity: 0; }
.panel-scrollable.at-end::after     { opacity: 0; }
.panel-scrollable:not(.at-start)::before { opacity: 1; }
.panel-scrollable:not(.at-end)::after    { opacity: 1; }

.card {
    flex: 0 0 auto;
    width: 60px;
    min-height: 80px;
    background: var(--umber-deep);
    border: 1px solid rgba(196,50,34,0.15);
    border-radius: 3px;
    padding: 6px 4px 4px;
    cursor: pointer;
    transition: transform 0.16s cubic-bezier(0.4, 0, 0.2, 1),
                box-shadow 0.16s,
                border-color 0.16s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    position: relative;
    user-select: none;
}
.card:hover {
    border-color: rgba(196,50,34,0.4);
    transform: translateY(-2px);
}
.card.selected {
    border-color: var(--safelight);
    transform: translateY(-2px) scale(1.04);
    box-shadow:
        0 0 0 1px var(--safelight),
        0 0 14px var(--safelight-glow),
        0 4px 14px rgba(0,0,0,0.6);
    background: linear-gradient(180deg,
        rgba(196,50,34,0.08) 0%,
        var(--umber-deep) 60%);
}
.card.selected::after {
    content: "";
    position: absolute;
    top: -2px; left: 50%;
    width: 5px; height: 5px;
    background: var(--safelight);
    border-radius: 50%;
    transform: translateX(-50%);
    box-shadow: 0 0 6px var(--safelight);
}
.card-art {
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.card-name {
    font-family: var(--mono);
    font-size: 8px;
    color: var(--ink-dim);
    text-align: center;
    line-height: 1.18;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    margin-top: 1px;
}
.card.selected .card-name { color: var(--paper); }

/* === Lens art === */
.lens-art {
    width: 40px; height: 40px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 30% 30%, rgba(255,200,180,0.25) 0%, transparent 35%),
        radial-gradient(circle at 50% 50%, #1a1010 0%, #0a0606 60%, #000 100%);
    border: 1.5px solid #2a1812;
    box-shadow:
        inset 0 0 6px rgba(196,50,34,0.4),
        inset 0 0 0 3px rgba(0,0,0,0.6),
        0 1px 2px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
}
.lens-art.plastic {
    border-color: #6b3a2e;
    box-shadow:
        inset 0 0 6px rgba(196,50,34,0.6),
        inset -6px -6px 10px rgba(255,150,120,0.15),
        inset 6px 6px 10px rgba(0,0,0,0.5);
}
.lens-art.compact {
    width: 42px; height: 30px;
    border-radius: 4px;
    background:
        radial-gradient(circle 9px at 35% 50%, #1a1010 0%, #000 70%),
        linear-gradient(180deg, #3a2018 0%, #1a0c08 100%);
    border: 1px solid #2a1812;
}
.lens-art.compact::before {
    content: "";
    position: absolute;
    right: 6px; top: 7px;
    width: 7px; height: 4px;
    background: rgba(255, 220, 180, 0.4);
    border-radius: 1px;
}
.lens-art.dream::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        linear-gradient(45deg, transparent 48%, rgba(255,230,200,0.55) 49.5%, transparent 51%),
        linear-gradient(135deg, transparent 48%, rgba(255,230,200,0.55) 49.5%, transparent 51%),
        linear-gradient(0deg, transparent 48%, rgba(255,230,200,0.4) 49.5%, transparent 51%),
        linear-gradient(90deg, transparent 48%, rgba(255,230,200,0.4) 49.5%, transparent 51%);
}
.lens-art.dusty::before {
    content: "";
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle 0.8px at 22% 35%, rgba(220,200,170,0.7), transparent),
        radial-gradient(circle 1px at 60% 22%, rgba(220,200,170,0.5), transparent),
        radial-gradient(circle 0.8px at 78% 65%, rgba(220,200,170,0.6), transparent),
        radial-gradient(circle 0.6px at 40% 70%, rgba(220,200,170,0.4), transparent),
        radial-gradient(circle 0.9px at 65% 80%, rgba(220,200,170,0.5), transparent);
}
.lens-art.portrait {
    background:
        radial-gradient(circle 4px at 25% 30%, rgba(255,200,150,0.45), transparent 70%),
        radial-gradient(circle 3px at 70% 30%, rgba(255,180,140,0.35), transparent 70%),
        radial-gradient(circle 3.5px at 50% 70%, rgba(255,200,160,0.35), transparent 70%),
        radial-gradient(circle at 50% 50%, #1a1010 0%, #0a0606 60%, #000 100%);
    border-color: #7a5a3a;
}

/* === Film === */
.film-art {
    width: 28px; height: 40px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.film-art .canister {
    width: 24px; height: 30px;
    border-radius: 2px 2px 1.5px 1.5px;
    position: relative;
    box-shadow: inset -2px -2px 4px rgba(0,0,0,0.35),
                inset 1.5px 1.5px 3px rgba(255,255,255,0.1),
                0 1px 3px rgba(0,0,0,0.6);
}
.film-art .canister::before {
    content: "";
    position: absolute;
    top: 3px; left: 50%;
    transform: translateX(-50%);
    width: 10px; height: 2px;
    background: rgba(0,0,0,0.4);
    border-radius: 1px;
}
.film-art .canister::after {
    content: "";
    position: absolute;
    bottom: -2px; left: 50%;
    transform: translateX(-50%);
    width: 7px; height: 4px;
    background: #1a1010;
    border-radius: 0 0 1.5px 1.5px;
}
.film-art .strip {
    width: 5px; height: 10px;
    background:
        linear-gradient(180deg,
            transparent 0%, transparent 12%,
            #000 12%, #000 22%,
            transparent 22%, transparent 38%,
            #000 38%, #000 48%,
            transparent 48%, transparent 64%,
            #000 64%, #000 74%,
            transparent 74%);
    margin-top: -1px;
    z-index: 1;
}
.film-art.warm_summer .canister      { background: linear-gradient(180deg, #e8b04a 0%, #c89028 100%); }
.film-art.warm_summer .strip         { background-color: #d8a040; }
.film-art.faded_kodak .canister      { background: linear-gradient(180deg, #e0c060 0%, #b89838 100%); }
.film-art.faded_kodak .strip         { background-color: #c8a850; }
.film-art.rainy_fuji .canister       { background: linear-gradient(180deg, #4a8b5c 0%, #2a6b3c 100%); }
.film-art.rainy_fuji .strip          { background-color: #3a7b4c; }
.film-art.expired .canister          { background: linear-gradient(180deg, #b04a7a 0%, #803050 100%); }
.film-art.expired .strip             { background-color: #a04060; }
.film-art.tokyo_night .canister      { background: linear-gradient(180deg, #2a1a3a 0%, #1a0a2a 100%); }
.film-art.tokyo_night .strip         { background-color: #c43282; }
.film-art.documentary_mono .canister { background: linear-gradient(180deg, #4a4a4a 0%, #1a1a1a 100%); }
.film-art.documentary_mono .strip    { background-color: #8a8a8a; }

/* === Atmosphere === */
.atmos-art {
    width: 44px; height: 32px;
    border-radius: 2px;
    border: 1px solid rgba(0,0,0,0.5);
    box-shadow: inset 0 0 4px rgba(0,0,0,0.3);
    position: relative;
    overflow: hidden;
}
.atmos-art.salem_dust     { background: linear-gradient(180deg, #d8a060 0%, #b87038 50%, #8a4818 100%); }
.atmos-art.chennai_summer { background: linear-gradient(180deg, #f0d090 0%, #e8a050 60%, #c87028 100%); }
.atmos-art.singapore_rain { background: linear-gradient(180deg, #708090 0%, #4a6878 50%, #2a4858 100%); }
.atmos-art.singapore_rain::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(15deg,
        transparent 0px, transparent 3px,
        rgba(255,255,255,0.15) 3px, rgba(255,255,255,0.15) 3.5px);
}
.atmos-art.tokyo_winter   { background: linear-gradient(180deg, #b8c8d0 0%, #889098 60%, #585c64 100%); }
.atmos-art.kyoto_autumn   { background: linear-gradient(180deg, #e8a848 0%, #c85838 60%, #882828 100%); }
.atmos-art.mumbai_monsoon { background: linear-gradient(180deg, #687060 0%, #485040 50%, #283020 100%); }
.atmos-art.mumbai_monsoon::before {
    content: ""; position: absolute; inset: 0;
    background: repeating-linear-gradient(8deg,
        transparent 0, transparent 4px,
        rgba(255,255,255,0.12) 4px, rgba(255,255,255,0.12) 5px);
}
.atmos-art.blue_hour  { background: linear-gradient(180deg, #4868a8 0%, #283878 60%, #181838 100%); }
.atmos-art.neon_night {
    background:
        radial-gradient(circle 7px at 25% 60%, rgba(196,50,180,0.6), transparent 70%),
        radial-gradient(circle 6px at 70% 50%, rgba(50,180,200,0.5), transparent 70%),
        linear-gradient(180deg, #1a0a2a 0%, #0a0612 100%);
}

/* === Mood swatch === */
.mood-art {
    width: 42px; height: 36px;
    border-radius: 2px;
    background: var(--paper-aged);
    padding: 3px;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.5);
}
.mood-art > span { display: block; border-radius: 0.5px; }
.mood-art.forgotten_summer span:nth-child(1) { background: #e8c878; }
.mood-art.forgotten_summer span:nth-child(2) { background: #d8a868; }
.mood-art.forgotten_summer span:nth-child(3) { background: #b88858; }
.mood-art.quiet_sunday    span:nth-child(1) { background: #d8c8b0; }
.mood-art.quiet_sunday    span:nth-child(2) { background: #b8a898; }
.mood-art.quiet_sunday    span:nth-child(3) { background: #989088; }
.mood-art.lonely_rain     span:nth-child(1) { background: #687888; }
.mood-art.lonely_rain     span:nth-child(2) { background: #485868; }
.mood-art.lonely_rain     span:nth-child(3) { background: #384858; }
.mood-art.childhood       span:nth-child(1) { background: #f8c8b8; }
.mood-art.childhood       span:nth-child(2) { background: #e8a898; }
.mood-art.childhood       span:nth-child(3) { background: #c88878; }
.mood-art.warm_evening    span:nth-child(1) { background: #e88848; }
.mood-art.warm_evening    span:nth-child(2) { background: #c85828; }
.mood-art.warm_evening    span:nth-child(3) { background: #883818; }
.mood-art.old_album       span:nth-child(1) { background: #c8a878; }
.mood-art.old_album       span:nth-child(2) { background: #a88858; }
.mood-art.old_album       span:nth-child(3) { background: #785838; }
.mood-art.urban_isolation span:nth-child(1) { background: #889098; }
.mood-art.urban_isolation span:nth-child(2) { background: #586068; }
.mood-art.urban_isolation span:nth-child(3) { background: #38484e; }
.mood-art.festival_glow   span:nth-child(1) { background: #f8b048; }
.mood-art.festival_glow   span:nth-child(2) { background: #d83878; }
.mood-art.festival_glow   span:nth-child(3) { background: #883858; }

/* === Print minis === */
.print-art {
    width: 38px; height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}
.print-art .sample {
    background: linear-gradient(135deg, #8a6a4a 0%, #4a3a2a 100%);
    display: block;
}
.print-art.polaroid {
    background: var(--paper);
    padding: 2px 2px 9px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transform: rotate(-2deg);
}
.print-art.polaroid .sample { width: 28px; height: 28px; }
.print-art.instax {
    background: var(--paper);
    padding: 2px 2px 7px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transform: rotate(2deg);
    width: 32px; height: 40px;
}
.print-art.instax .sample { width: 25px; height: 28px; }
.print-art.matte {
    width: 38px; height: 28px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.7);
}
.print-art.matte .sample {
    width: 38px; height: 28px;
    background: linear-gradient(135deg, #4a3a2a 0%, #2a1a1a 100%);
    filter: contrast(0.9);
}
.print-art.old_album {
    background: #d8c4a8;
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
    transform: rotate(-1deg);
}
.print-art.old_album .sample {
    width: 28px; height: 34px;
    background: linear-gradient(135deg, #b89878 0%, #785838 100%);
    filter: sepia(0.5);
}
.print-art.old_album::before,
.print-art.old_album::after {
    content: "";
    position: absolute;
    width: 4px; height: 4px;
    background: #1a0a08;
    transform: rotate(45deg);
}
.print-art.old_album::before { top: 3px; left: 1px; }
.print-art.old_album::after  { bottom: 3px; right: 1px; }
.print-art.scrapbook {
    background: var(--paper);
    padding: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    transform: rotate(3deg);
    position: relative;
}
.print-art.scrapbook .sample { width: 28px; height: 34px; }
.print-art.scrapbook::before {
    content: "";
    position: absolute;
    top: -2px; left: 5px;
    width: 12px; height: 5px;
    background: rgba(220,200,150,0.7);
    transform: rotate(-12deg);
}
.print-art.wallet {
    background: var(--paper);
    padding: 2px;
    border-radius: 3px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    width: 30px; height: 40px;
}
.print-art.wallet .sample {
    width: 26px; height: 34px;
    border-radius: 1.5px;
}
.print-art.drugstore {
    background: var(--paper);
    padding: 2px 2px 6px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.6);
    position: relative;
}
.print-art.drugstore .sample { width: 30px; height: 28px; }
.print-art.drugstore::after {
    content: "98";
    position: absolute;
    bottom: 0px; right: 3px;
    font-family: var(--mono);
    font-size: 4.5px;
    color: var(--safelight);
}

/* ============================================================
   IMP & SEED PANEL — right side, third row
   ============================================================ */

.panel-imp {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.imp-section, .seed-section {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.section-label {
    font-family: var(--mono);
    font-size: 9px;
    color: var(--ink-faint);
    letter-spacing: 0.3em;
    text-transform: uppercase;
}
.imp-dial {
    display: flex;
    gap: 6px;
    align-items: center;
    background: var(--umber-deep);
    padding: 8px 10px;
    border-radius: 2px;
    border: 1px solid rgba(196,50,34,0.12);
    justify-content: center;
}
.imp-bulb {
    width: 18px; height: 18px;
    border-radius: 50%;
    background: var(--umber-mid);
    border: 1px solid rgba(196,50,34,0.15);
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}
.imp-bulb.on {
    background: var(--safelight);
    box-shadow: 0 0 8px var(--safelight-glow);
    border-color: var(--safelight);
}
.imp-bulb:hover { border-color: var(--safelight); }
.seed-input {
    background: var(--umber-deep);
    border: 1px solid rgba(196,50,34,0.18);
    color: var(--paper-aged);
    padding: 10px 12px;
    border-radius: 2px;
    font-family: var(--mono);
    font-size: 11px;
    width: 100%;
    outline: none;
    letter-spacing: 0.1em;
}
.seed-input::placeholder { color: var(--ink-faint); }
.seed-input:focus {
    border-color: var(--safelight);
    box-shadow: 0 0 0 2px var(--safelight-glow);
}

/* ============================================================
   DEVELOP — centered own row below studio
   ============================================================ */

.develop-cell {
    grid-column: 1 / 4;
    grid-row: 4;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 18px 0 8px;
}
.develop-btn {
    background:
        radial-gradient(circle at 30% 30%,
            #e85040 0%,
            var(--safelight) 40%,
            var(--safelight-deep) 100%);
    color: var(--paper);
    border: none;
    border-radius: 4px;
    padding: 16px 52px;
    font-family: 'Syne Mono', 'IBM Plex Mono', monospace;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    letter-spacing: 0.15em;
    cursor: pointer;
    box-shadow:
        inset 0 -3px 0 rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 8px 30px var(--safelight-glow),
        0 4px 0 #4a1208;
    transition: transform 0.08s, box-shadow 0.15s;
    text-transform: lowercase;
    min-width: 220px;
}
.develop-btn:hover:not(:disabled) {
    box-shadow:
        inset 0 -3px 0 rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.3),
        0 10px 40px var(--safelight-glow),
        0 4px 0 #4a1208;
}
.develop-btn:active:not(:disabled) {
    transform: translateY(3px);
    box-shadow:
        inset 0 -1px 0 rgba(0,0,0,0.4),
        inset 0 2px 4px rgba(255,255,255,0.2),
        0 3px 16px var(--safelight-glow),
        0 1px 0 #4a1208;
}
.develop-btn:disabled { opacity: 0.45; cursor: not-allowed; }

/* ============================================================
   RESULT VIEW
   ============================================================ */

.result {
    max-width: 1000px;
    margin: 0 auto;
    padding: 36px 24px 50px;
    text-align: center;
    position: relative;
    z-index: 2;
}
.result h2 {
    font-family: var(--display);
    font-variation-settings: "opsz" 144;
    font-style: italic;
    font-weight: 500;
    font-size: 28px;
    color: var(--paper-aged);
    margin: 0 0 24px;
    letter-spacing: 0.06em;
}
.result-image-wrap {
    background:
        radial-gradient(ellipse at 50% 0%, rgba(196,50,34,0.12), transparent 60%),
        var(--umber-deep);
    padding: 32px;
    border: 1px solid rgba(196,50,34,0.15);
    border-radius: 6px;
    display: inline-block;
    max-width: 100%;
    box-shadow:
        inset 0 0 100px rgba(0,0,0,0.5),
        0 20px 50px rgba(0,0,0,0.7);
}
.result-image-wrap img {
    max-width: 100%;
    max-height: 65vh;
    display: block;
    border-radius: 2px;
    box-shadow: 0 10px 36px rgba(0,0,0,0.8);
}
.result-meta {
    margin: 18px 0;
    display: flex;
    gap: 24px;
    justify-content: center;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: 0.2em;
    color: var(--ink-faint);
    text-transform: uppercase;
}
.result-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
    margin-top: 18px;
}
.result-actions .btn-ghost { margin: 0; }
.result-actions .develop-btn { padding: 12px 28px; font-size: 15px; min-width: 0; }

.footer {
    text-align: center;
    padding: 12px 16px 20px;
    color: var(--ink-faint);
    font-family: var(--mono);
    font-size: 9px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

[hidden] { display: none !important; }

@media (max-width: 1100px) {
    .studio { grid-template-columns: 240px 1fr 240px; gap: 10px; }
}
@media (max-width: 900px) {
    .studio { grid-template-columns: 1fr; }
    .panel-lens, .panel-film, .panel-print,
    .panel-atmos, .panel-mood, .panel-imp,
    .panel-tray {
        grid-column: 1; grid-row: auto;
    }
    .develop-cell { grid-column: 1; grid-row: auto; }
    .tray { min-height: 320px; }
}

/* ============================================================
   ERROR TOAST (production only)
   ============================================================ */
.error-toast {
    position: fixed;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(196, 50, 34, 0.95);
    color: var(--paper);
    padding: 12px 22px;
    border-radius: 4px;
    font-family: var(--mono);
    font-size: 12px;
    letter-spacing: 0.05em;
    box-shadow: 0 12px 32px rgba(0,0,0,0.6);
    z-index: 500;
    max-width: 80%;
    text-align: center;
    animation: toast-in 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}
@keyframes toast-in {
    from { opacity: 0; transform: translate(-50%, 12px); }
    to   { opacity: 1; transform: translate(-50%, 0); }
}
