/* Vintage Instant Camera Studio — ElevenApril Free Interactive Tool
 * Warm archival paper page framing a tactile obsidian photo darkroom.
 * Typography scale strictly locked to 3 body steps:
 *   --ic-h2:   1.5rem   (24px section headings)
 *   --ic-body: 0.96875rem (15.5px body prose, lists, controls)
 *   --ic-sm:   0.84375rem (13.5px captions, labels, helper copy)
 */

.ic-page {
    --ic-h2: 1.5rem;
    --ic-body: 0.96875rem;
    --ic-sm: 0.84375rem;
    --ic-ease: cubic-bezier(0.22, 1, 0.36, 1);
    --ic-ink: var(--ink, #26221d);
    --ic-ink-muted: #5a5248;
    --ic-accent: #d95a2b;
    background: var(--paper, #fbf6ec);
    color: var(--ic-ink);
}

.ic-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 24px 84px;
}

/* Compact direct tool header (opens straight into workspace, zero eyebrow kicker) */
.ic-header {
    max-width: 720px;
    margin-bottom: 16px;
}

.ic-title {
    font-family: var(--font-ui);
    font-size: clamp(2rem, 3.8vw, 2.85rem);
    font-weight: 800;
    letter-spacing: -0.035em;
    line-height: 1.06;
    color: var(--ic-ink);
    margin: 0 0 10px;
}

.ic-lede {
    font-size: var(--ic-body);
    line-height: 1.58;
    color: var(--ic-ink-muted);
    margin: 0;
    max-width: 62ch;
}

.ic-page [hidden] {
    display: none !important;
}

/* Main interactive darkroom studio workbench */
body.page-sketch .ic-workbench,
.ic-workbench {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 368px;
    padding: 0;
    background: #0d0d11;
    color: #f3eee6;
    border-radius: 22px;
    overflow: hidden;
    border: 1px solid rgba(38, 34, 29, 0.14);
    box-shadow: 0 26px 64px rgba(24, 18, 12, 0.22), 0 4px 16px rgba(24, 18, 12, 0.10);
    margin-bottom: 36px;
}

/* Left: Obsidian darkroom camera stage */
.ic-stage {
    --cam-glow: rgba(235, 143, 107, 0.32);
    --cam-accent: #ff9b70;
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 560px;
    padding: 18px 22px 18px;
    background:
        radial-gradient(circle at 50% 40%, var(--cam-glow) 0%, rgba(13, 13, 17, 0) 58%),
        linear-gradient(180deg, #121218 0%, #09090d 100%);
    transition: background-color 0.2s var(--ic-ease);
}

.ic-stage.is-drop-active::after {
    content: "Drop photo to load into camera";
    position: absolute;
    inset: 14px;
    z-index: 30;
    display: grid;
    place-items: center;
    border-radius: 16px;
    border: 2px dashed var(--cam-accent);
    background: rgba(10, 10, 14, 0.88);
    color: #ffffff;
    font-size: var(--ic-h2);
    font-weight: 700;
    pointer-events: none;
}

.ic-flash-overlay {
    position: absolute;
    inset: 0;
    z-index: 25;
    background: radial-gradient(circle at 50% 34%, #ffffff 0%, rgba(255, 244, 214, 0.92) 45%, rgba(255, 214, 150, 0) 90%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ic-ease);
}

.ic-flash-overlay.is-flashing {
    opacity: 1;
    transition: opacity 0.04s linear;
}

/* Top darkroom header bar: camera title + crisp square viewfinder */
.ic-stage-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 4px;
    position: relative;
    z-index: 4;
}

.ic-cam-heading {
    min-width: 0;
}

.ic-cam-name {
    font-size: var(--ic-h2);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    color: #fbf7f0;
    margin: 0 0 3px;
}

.ic-cam-sub {
    font-size: var(--ic-sm);
    color: #b7b0a6;
    margin: 0 0 4px;
    line-height: 1.35;
}

.ic-film-readout {
    font-size: var(--ic-sm);
    font-weight: 600;
    color: var(--cam-accent);
    margin: 0;
}

/* Live square viewfinder monitor */
.ic-viewfinder {
    flex: none;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.ic-vf-frame {
    position: relative;
    width: 112px;
    height: 112px;
    border-radius: 14px;
    overflow: hidden;
    background: #14151c;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.52);
}

.ic-vf-frame canvas,
.ic-vf-frame video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ic-vf-frame video {
    transform: scaleX(-1);
}

.ic-vf-crosshair {
    position: absolute;
    inset: 10px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 6px;
    pointer-events: none;
}

.ic-vf-status {
    font-size: var(--ic-sm);
    color: #aca499;
    text-align: right;
    max-width: 210px;
    line-height: 1.3;
}

/* Central camera & print ejection theater */
.ic-theater {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    z-index: 3;
    padding: 0 0 8px;
}

.ic-camera-mount {
    width: min(392px, 84%);
    position: relative;
    z-index: 5;
    transform-origin: center center;
    transition: transform 0.16s var(--ic-ease);
}

.ic-camera-mount.is-firing {
    transform: scale(0.985) translateY(2px);
}

/* Sculpted photorealistic 2.5x Retina hardware container */
.ic-hw-shell {
    position: relative;
    width: 100%;
    margin: 0 auto;
    user-select: none;
}

.ic-hw-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 28px 44px rgba(0, 0, 0, 0.72));
    pointer-events: none;
}

/* Live circular optical lens aperture embedded right inside the lens glass */
.ic-hw-lens {
    position: absolute;
    transform: translate(-50%, -50%);
    border-radius: 50%;
    overflow: hidden;
    background: #090b12;
    box-shadow: inset 0 4px 12px rgba(0, 0, 0, 0.75), inset 0 0 0 1px rgba(255, 255, 255, 0.14);
    pointer-events: none;
}

.ic-hw-lens-canvas,
.ic-hw-lens-video {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.88;
    transition: filter 0.2s var(--ic-ease);
}

.ic-hw-lens-video {
    transform: scaleX(-1);
}

.ic-hw-lens.is-bw .ic-hw-lens-canvas,
.ic-hw-lens.is-bw .ic-hw-lens-video {
    filter: grayscale(1) contrast(1.12);
}

/* Multi-coated optical lens glass sheen & subtle depth ring */
.ic-hw-lens-glass {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    background:
        radial-gradient(ellipse 46% 26% at 34% 26%, rgba(210, 232, 255, 0.44) 0%, rgba(164, 198, 255, 0.10) 58%, rgba(255, 255, 255, 0) 100%),
        radial-gradient(circle at 68% 72%, rgba(186, 130, 255, 0.24) 0%, rgba(0, 0, 0, 0) 48%),
        radial-gradient(circle at 50% 50%, rgba(0, 0, 0, 0) 64%, rgba(6, 8, 16, 0.56) 100%);
    pointer-events: none;
}

/* Mechanical iris snap animation on shutter release */
.ic-hw-iris {
    position: absolute;
    inset: -2px;
    border-radius: 50%;
    background: radial-gradient(circle, #0e1016 0%, #1c1f29 100%);
    opacity: 0;
    transform: scale(0.05);
    pointer-events: none;
}

.ic-hw-iris.is-snapping {
    animation: icIrisSnap 0.34s var(--ic-ease) both;
}

@keyframes icIrisSnap {
    0% { opacity: 0; transform: scale(1.25); }
    35% { opacity: 0.96; transform: scale(1); }
    100% { opacity: 0; transform: scale(1.15); }
}

/* Targeted flash discharge bloom aligned to exact flash emitter */
.ic-hw-flash-bloom {
    position: absolute;
    transform: translate(-50%, -50%) scale(0.8);
    border-radius: 50%;
    background: radial-gradient(circle, #ffffff 0%, rgba(255, 244, 206, 0.92) 32%, rgba(255, 198, 112, 0.35) 62%, rgba(255, 180, 90, 0) 100%);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s var(--ic-ease), transform 0.22s var(--ic-ease);
}

.ic-hw-flash-bloom.is-lit {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.35);
    transition: opacity 0.04s linear, transform 0.04s linear;
}

/* Pixel-accurate invisible interactive hardware hotspots */
.ic-hw-hotspot {
    position: absolute;
    transform: translate(-50%, -50%);
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    z-index: 8;
}

.ic-hw-hotspot.is-slider,
.ic-hw-hotspot.is-chin {
    border-radius: 999px;
}

.ic-hw-ring {
    position: absolute;
    inset: -3px;
    border-radius: inherit;
    border: 2px solid rgba(255, 255, 255, 0);
    box-shadow: 0 0 0 0 rgba(255, 148, 92, 0);
    transition: border-color 0.16s var(--ic-ease), box-shadow 0.16s var(--ic-ease), transform 0.14s var(--ic-ease);
}

.ic-hw-hotspot:hover .ic-hw-ring,
.ic-hw-hotspot:focus-visible .ic-hw-ring {
    border-color: rgba(255, 255, 255, 0.82);
    box-shadow: 0 0 0 5px rgba(255, 139, 87, 0.28);
}

.ic-hw-hotspot:active .ic-hw-ring {
    transform: scale(0.92);
}

.ic-hw-hotspot:focus-visible {
    outline: none;
}

.ic-cam-img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 10px 18px rgba(0, 0, 0, 0.50));
}

.ic-stage-cue {
    font-size: var(--ic-sm);
    color: #b7b0a6;
    margin: 4px 0 0;
    text-align: center;
}

/* Ejecting & shake-to-develop archival print */
.ic-eject-wrap {
    margin-top: -16px;
    position: relative;
    z-index: 4;
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.ic-print-card {
    width: 224px;
    padding: 12px 12px 0;
    background: #faf6ee;
    border-radius: 4px;
    box-shadow: 0 22px 44px rgba(0, 0, 0, 0.62), 0 2px 6px rgba(0, 0, 0, 0.35);
    user-select: none;
    touch-action: none;
    cursor: grab;
    transform: translateY(0);
    transition: transform 0.22s var(--ic-ease);
}

.ic-print-card[data-phase="ejecting"] {
    animation: icPrintEject 0.86s var(--ic-ease) both;
}

.ic-print-card.is-dragging {
    cursor: grabbing;
    transition: none;
}

.ic-print-card[data-phase="developed"] {
    cursor: zoom-in;
}

@keyframes icPrintEject {
    0% {
        transform: translateY(-96px) scale(0.92);
        opacity: 0.2;
    }
    45% {
        transform: translateY(-28px) scale(0.97);
        opacity: 1;
    }
    100% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

.ic-print-aperture {
    position: relative;
    width: 200px;
    height: 200px;
    overflow: hidden;
    background: #141c24;
    border-radius: 2px;
}

.ic-print-aperture img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: filter 0.16s linear;
}

.ic-print-veil {
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 30% 24%, rgba(62, 118, 128, 0.56) 0%, rgba(18, 28, 36, 0.94) 72%),
        #121d24;
    pointer-events: none;
    transition: opacity 0.16s linear;
}

.ic-print-card.is-bw .ic-print-veil {
    background:
        radial-gradient(circle at 30% 24%, rgba(92, 92, 98, 0.52) 0%, rgba(20, 20, 22, 0.96) 72%),
        #161618;
}

.ic-print-chin {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 4px 6px;
}

body.page-sketch .ic-print-caption,
.ic-print-caption {
    font-family: var(--font-note);
    font-size: 1.32rem;
    line-height: 1.1;
    color: #26221d;
    text-align: center;
    transform: rotate(-1.4deg);
    clip-path: inset(0 100% 0 0);
    transition: clip-path 0.65s var(--ic-ease);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

body.page-sketch .ic-print-caption.is-revealed,
.ic-print-caption.is-revealed {
    clip-path: inset(0 0 0 0);
}

/* Shake progress & quick print actions */
.ic-shake-bar {
    margin-top: 14px;
    width: min(380px, 100%);
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ic-shake-meter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: var(--ic-sm);
    color: #d6cfc6;
    font-variant-numeric: tabular-nums;
}

.ic-shake-track {
    height: 6px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.12);
    overflow: hidden;
}

.ic-shake-fill {
    height: 100%;
    width: 4%;
    background: linear-gradient(90deg, #ff8b57 0%, #ffd06b 100%);
    border-radius: 99px;
    transition: width 0.14s linear;
}

.ic-shake-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.ic-btn-dark,
.ic-btn-amber {
    appearance: none;
    border: 0;
    border-radius: 999px;
    padding: 9px 18px;
    font-family: var(--font-ui);
    font-size: var(--ic-sm);
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.15s var(--ic-ease), opacity 0.15s var(--ic-ease), background-color 0.15s var(--ic-ease);
}

.ic-btn-amber {
    background: #ff8b57;
    color: #14110f;
}

.ic-btn-amber:hover {
    opacity: 0.92;
}

.ic-btn-amber:active,
.ic-btn-dark:active {
    transform: scale(0.97);
}

.ic-btn-dark {
    background: rgba(255, 255, 255, 0.11);
    color: #f7f3ec;
    border: 1px solid rgba(255, 255, 255, 0.16);
}

.ic-btn-dark:hover:not(:disabled) {
    background: rgba(255, 255, 255, 0.18);
}

.ic-btn-dark:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}

/* Archival darkroom print tray along bottom of stage */
.ic-tray-wrap {
    margin-top: 18px;
    padding-top: 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.10);
    position: relative;
    z-index: 4;
}

.ic-tray-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 10px;
}

.ic-tray-title {
    font-size: var(--ic-sm);
    font-weight: 700;
    color: #ded8ce;
}

.ic-tray-count {
    font-size: var(--ic-sm);
    color: #9e968b;
    font-variant-numeric: tabular-nums;
}

.ic-tray-link {
    appearance: none;
    border: 0;
    background: transparent;
    color: var(--cam-accent);
    font-family: var(--font-ui);
    font-size: var(--ic-sm);
    font-weight: 700;
    cursor: pointer;
    padding: 4px 2px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.ic-tray {
    display: flex;
    align-items: center;
    gap: 12px;
    overflow-x: auto;
    padding: 4px 2px 6px;
    scrollbar-width: thin;
}

.ic-tray-empty {
    font-size: var(--ic-sm);
    color: #9a9288;
    margin: 4px 0;
}

.ic-tray-card {
    appearance: none;
    border: 0;
    flex: none;
    width: 84px;
    padding: 5px 5px 7px;
    background: #faf6ee;
    border-radius: 3px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    cursor: pointer;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.45);
    transition: transform 0.16s var(--ic-ease);
}

.ic-tray-card:hover {
    transform: translateY(-3px) rotate(-1deg);
}

.ic-tray-photo {
    display: block;
    width: 74px;
    height: 74px;
    background: #141418;
    overflow: hidden;
}

.ic-tray-photo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

body.page-sketch .ic-tray-cap,
.ic-tray-cap {
    font-family: var(--font-note);
    font-size: 0.92rem;
    color: #26221d;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
}

/* Right: Calm studio control console */
.ic-console {
    background: #15151c;
    border-left: 1px solid rgba(255, 255, 255, 0.09);
    padding: 20px 20px 22px;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.ic-ctrl {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ic-ctrl-label {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: var(--ic-sm);
    font-weight: 700;
    color: #e9e3da;
}

.ic-ctrl-hint {
    font-size: var(--ic-sm);
    font-weight: 500;
    color: #9e968c;
}

/* Connected segmented control (replaces scattered button clusters) */
.ic-segmented {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    background: #0c0c10;
    border: 1px solid rgba(255, 255, 255, 0.11);
    border-radius: 12px;
    padding: 3px;
}

.ic-seg-btn {
    appearance: none;
    border: 0;
    background: transparent;
    color: #b7b0a5;
    font-family: var(--font-ui);
    font-size: var(--ic-sm);
    font-weight: 600;
    padding: 8px 10px;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.16s var(--ic-ease), color 0.16s var(--ic-ease);
}

.ic-seg-btn:hover {
    color: #ffffff;
}

.ic-seg-btn.is-active {
    background: #272734;
    color: #ffffff;
}

/* Demo scene selector */
.ic-scene-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
}

.ic-scene-btn {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: #1c1c26;
    color: #d7d1c7;
    border-radius: 10px;
    padding: 8px 10px;
    font-family: var(--font-ui);
    font-size: var(--ic-sm);
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    transition: border-color 0.15s var(--ic-ease), background-color 0.15s var(--ic-ease), color 0.15s var(--ic-ease);
}

.ic-scene-btn.is-active {
    border-color: #ff8b57;
    background: rgba(255, 139, 87, 0.16);
    color: #ffffff;
}

.ic-upload-drop {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 16px 12px;
    border-radius: 12px;
    border: 1.5px dashed rgba(255, 255, 255, 0.24);
    background: #101016;
    color: #eae4db;
    font-size: var(--ic-sm);
    text-align: center;
    cursor: pointer;
    transition: border-color 0.16s var(--ic-ease), background-color 0.16s var(--ic-ease);
}

.ic-upload-drop:hover {
    border-color: #ff8b57;
    background: #171722;
}

.ic-upload-drop input {
    display: none;
}

.ic-select,
.ic-input {
    width: 100%;
    box-sizing: border-box;
    padding: 10px 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.14);
    background: #0d0d13;
    color: #f6f2eb;
    font-family: var(--font-ui);
    font-size: var(--ic-body);
    transition: border-color 0.15s var(--ic-ease);
}

.ic-select:focus,
.ic-input:focus {
    outline: none;
    border-color: #ff8b57;
}

.ic-tone-note {
    font-size: var(--ic-sm);
    color: #a69e94;
    margin: 0;
    line-height: 1.45;
}

.ic-check-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.ic-check {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-size: var(--ic-sm);
    color: #ddd6cc;
    cursor: pointer;
}

.ic-check input {
    accent-color: #ff8b57;
    width: 16px;
    height: 16px;
}

/* 6 Playable Camera Picker Strip */
.ic-quick-cams {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.ic-cam-pick {
    appearance: none;
    border: 1px solid rgba(255, 255, 255, 0.10);
    background: #101016;
    border-radius: 12px;
    padding: 8px 6px 7px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    cursor: pointer;
    color: #e6dfd5;
    font-family: var(--font-ui);
    transition: border-color 0.15s var(--ic-ease), background-color 0.15s var(--ic-ease), transform 0.15s var(--ic-ease);
}

.ic-cam-pick:hover {
    border-color: rgba(255, 255, 255, 0.28);
    transform: translateY(-1px);
}

.ic-cam-pick.is-active {
    border-color: #ff8b57;
    background: rgba(255, 139, 87, 0.14);
}

.ic-cam-pick-thumb {
    display: block;
    width: 74px;
    height: 76px;
}

.ic-cam-pick-name {
    font-size: var(--ic-sm);
    font-weight: 700;
    line-height: 1.15;
    text-align: center;
}

.ic-cam-pick-yr {
    font-size: var(--ic-sm);
    color: #9e968b;
    font-variant-numeric: tabular-nums;
}

.ic-shoot-primary {
    appearance: none;
    border: 0;
    width: 100%;
    padding: 13px 18px;
    border-radius: 13px;
    background: #ff6944;
    color: #ffffff;
    font-family: var(--font-ui);
    font-size: var(--ic-body);
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 10px 24px rgba(255, 105, 68, 0.34);
    transition: transform 0.15s var(--ic-ease), opacity 0.15s var(--ic-ease);
}

.ic-shoot-primary:hover {
    opacity: 0.94;
}

.ic-shoot-primary:active {
    transform: scale(0.985);
}

.ic-toast {
    min-height: 20px;
    font-size: var(--ic-sm);
    color: #ffc899;
    opacity: 0;
    transition: opacity 0.2s var(--ic-ease);
}

.ic-toast.is-visible {
    opacity: 1;
}

/* 24-Camera Hall of Fame Collectible Shelf */
body.page-sketch .ic-shelf-sec,
.ic-shelf-sec {
    margin: 44px 0 36px;
    padding: 0;
    background: transparent;
}

.ic-shelf-head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 20px;
}

.ic-shelf-sec h2 {
    font-family: var(--font-ui);
    font-size: var(--ic-h2);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ic-ink);
    margin: 0 0 6px;
}

.ic-shelf-lead {
    font-size: var(--ic-body);
    color: var(--ic-ink-muted);
    margin: 0;
    max-width: 58ch;
    line-height: 1.55;
}

.ic-shelf-tabs {
    display: inline-flex;
    flex-wrap: wrap;
    background: #efe7d9;
    border-radius: 12px;
    padding: 3px;
    gap: 2px;
}

.ic-shelf-tab {
    appearance: none;
    border: 0;
    background: transparent;
    color: #5b5247;
    font-family: var(--font-ui);
    font-size: var(--ic-sm);
    font-weight: 700;
    padding: 7px 13px;
    border-radius: 9px;
    cursor: pointer;
    transition: background-color 0.15s var(--ic-ease), color 0.15s var(--ic-ease);
}

.ic-shelf-tab.is-active {
    background: #26221d;
    color: #ffffff;
}

.ic-shelf-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.ic-shelf-card {
    appearance: none;
    border: 1px solid rgba(38, 34, 29, 0.10);
    background: #ffffff;
    border-radius: 18px;
    padding: 14px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 6px;
    cursor: pointer;
    color: var(--ic-ink);
    font-family: var(--font-ui);
    box-shadow: 0 2px 10px rgba(38, 34, 29, 0.05);
    transition: transform 0.18s var(--ic-ease), border-color 0.18s var(--ic-ease), box-shadow 0.18s var(--ic-ease);
}

.ic-shelf-card:hover {
    transform: translateY(-2px);
    border-color: rgba(217, 90, 43, 0.45);
    box-shadow: 0 12px 28px rgba(38, 34, 29, 0.10);
}

.ic-shelf-card.is-active {
    border-color: #d95a2b;
    box-shadow: 0 0 0 2px rgba(217, 90, 43, 0.18), 0 12px 26px rgba(38, 34, 29, 0.08);
}

.ic-shelf-thumb {
    display: grid;
    place-items: center;
    height: 196px;
    border-radius: 14px;
    padding: 16px;
    background:
        radial-gradient(circle at 50% 48%, var(--thumb-glow, rgba(255, 168, 92, 0.26)) 0%, rgba(16, 16, 22, 0) 70%),
        #121218;
    margin-bottom: 4px;
}

.ic-shelf-thumb .ic-cam-img {
    max-height: 164px;
    width: auto;
    max-width: 100%;
    transition: transform 0.2s var(--ic-ease);
}

.ic-shelf-card:hover .ic-shelf-thumb .ic-cam-img {
    transform: scale(1.045);
}

.ic-shelf-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: var(--ic-sm);
    font-variant-numeric: tabular-nums;
}

.ic-shelf-year {
    font-weight: 700;
    color: #5c5348;
}

.ic-shelf-status {
    font-weight: 700;
    color: #c24b1f;
}

.ic-shelf-card.is-ios .ic-shelf-status {
    color: #6b6358;
    font-weight: 600;
}

.ic-shelf-name {
    font-size: var(--ic-body);
    font-weight: 800;
    color: var(--ic-ink);
    line-height: 1.25;
}

.ic-shelf-tag {
    font-size: var(--ic-sm);
    color: var(--ic-ink-muted);
    line-height: 1.4;
}

/* Editorial Film Guide & FAQ */
.ic-prose {
    max-width: 780px;
    margin: 44px 0 0;
}

.ic-prose h2 {
    font-family: var(--font-ui);
    font-size: var(--ic-h2);
    font-weight: 800;
    letter-spacing: -0.025em;
    color: var(--ic-ink);
    margin: 34px 0 12px;
}

.ic-prose h3 {
    font-family: var(--font-ui);
    font-size: var(--ic-body);
    font-weight: 800;
    color: var(--ic-ink);
    margin: 0 0 6px;
}

.ic-prose p,
.ic-prose li {
    font-size: var(--ic-body);
    line-height: 1.65;
    color: #3d372f;
}

.ic-prose ul {
    padding-left: 20px;
    display: grid;
    gap: 8px;
    margin: 0 0 18px;
}

.ic-table-wrap {
    overflow-x: auto;
    margin: 16px 0 24px;
    border-radius: 14px;
    border: 1px solid rgba(38, 34, 29, 0.12);
    background: #ffffff;
}

.ic-table {
    width: 100%;
    border-collapse: collapse;
    font-size: var(--ic-sm);
}

.ic-table th,
.ic-table td {
    padding: 12px 14px;
    text-align: left;
    border-bottom: 1px solid rgba(38, 34, 29, 0.08);
    line-height: 1.45;
}

.ic-table th {
    font-weight: 700;
    color: var(--ic-ink);
    background: #f5efe4;
}

.ic-table tr:last-child td {
    border-bottom: 0;
}

.ic-faq-list {
    display: grid;
    gap: 18px;
    margin-top: 14px;
}

.ic-faq-item {
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(38, 34, 29, 0.10);
}

.ic-faq-item:last-child {
    border-bottom: 0;
}

.ic-faq-item p {
    margin: 0;
}

/* Modals (Inspect Print & iOS Archive Camera Preview) */
.ic-modal {
    position: fixed;
    inset: 0;
    z-index: 900;
    background: rgba(10, 10, 14, 0.78);
    backdrop-filter: blur(8px);
    display: grid;
    place-items: center;
    padding: 20px;
}

.ic-modal[hidden] {
    display: none;
}

.ic-modal-panel {
    width: min(460px, 100%);
    background: #16161e;
    color: #f5f0e8;
    border-radius: 22px;
    padding: 24px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 28px 68px rgba(0, 0, 0, 0.65);
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}

.ic-modal-close {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 34px;
    height: 34px;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    background: rgba(255, 255, 255, 0.08);
    color: #ffffff;
    font-size: 20px;
    line-height: 1;
    cursor: pointer;
}

.ic-modal-print {
    width: 260px;
    padding: 14px 14px 0;
    background: #faf6ee;
    border-radius: 4px;
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.52);
}

.ic-modal-print img {
    display: block;
    width: 232px;
    height: 232px;
    object-fit: cover;
    background: #141418;
}

body.page-sketch .ic-modal-cap,
.ic-modal-cap {
    font-family: var(--font-note);
    font-size: 1.45rem;
    color: #26221d;
    text-align: center;
    padding: 10px 6px 14px;
    transform: rotate(-1.2deg);
    line-height: 1.15;
}

.ic-modal-meta {
    font-size: var(--ic-sm);
    color: #b4aca2;
    margin: 0;
    text-align: center;
}

.ic-modal-story {
    font-size: var(--ic-body);
    color: #e2dbd1;
    margin: 0;
    text-align: center;
    line-height: 1.55;
}

.ic-lock-svg {
    width: 264px;
    height: 264px;
    display: grid;
    place-items: center;
}

.ic-lock-svg .ic-cam-img {
    max-width: 100%;
    max-height: 100%;
    filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.62));
}

.ic-modal-actions {
    display: flex;
    width: 100%;
    gap: 10px;
    justify-content: center;
}

.ic-modal-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    padding: 12px 20px;
    border-radius: 999px;
    background: #ff6944;
    color: #ffffff;
    text-decoration: none;
    font-weight: 700;
    font-size: var(--ic-body);
}

.ic-modal-cta:hover {
    color: #ffffff;
    opacity: 0.92;
}

/* Responsive layouts */
@media (max-width: 980px) {
    body.page-sketch .ic-workbench,
    .ic-workbench {
        grid-template-columns: 1fr;
    }
    .ic-console {
        border-left: 0;
        border-top: 1px solid rgba(255, 255, 255, 0.09);
    }
    .ic-shelf-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 640px) {
    .ic-container {
        padding: 14px 16px 64px;
    }
    .ic-stage {
        min-height: 540px;
        padding: 16px 16px 18px;
    }
    .ic-stage-top {
        flex-direction: column;
        align-items: stretch;
    }
    .ic-viewfinder {
        flex-direction: row;
        align-items: center;
        justify-content: flex-start;
        gap: 12px;
    }
    .ic-vf-frame {
        width: 72px;
        height: 72px;
    }
    .ic-vf-status {
        text-align: left;
    }
    .ic-camera-mount {
        width: min(326px, 88%);
    }
    .ic-quick-cams {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    .ic-cam-pick-thumb {
        width: 84px;
        height: 86px;
    }
    .ic-shelf-grid {
        grid-template-columns: 1fr;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ic-print-card[data-phase="ejecting"] {
        animation: none;
    }
    .ic-print-caption {
        transition: none;
    }
    .ic-camera-mount,
    .ic-shelf-card,
    .ic-tray-card,
    .ic-cam-pick {
        transition: none;
    }
}
