    /* ==============================================
       MURAL PAGE - v4-inspired aesthetic
       Museum wall: light concrete, warm shadows,
       tiles pinned like photos on a gallery wall
       ============================================== */

    :root {
        --m-coral: #E8704E;
        --m-coral-dark: #CC5836;
        --m-teal: #358585;
        --m-teal-light: #48B0B0;
        --m-aqua: #B5D8D3;
        --m-cream: #FFF5F0;
        --m-cream-dark: #FFEEE6;
        --m-charcoal: #1A1514;
        --m-charcoal-light: #2A2320;
        --m-warm-gray: #6B5E57;
        --m-warm-gray-light: #9B8E87;
        --m-text: #3D2E26;
        --m-text-secondary: #6B5E57;
        --m-text-muted: #9B8E87;
        --m-font-display: 'DM Serif Display', Georgia, serif;
        --m-font-body: 'Quicksand', 'DM Sans', -apple-system, sans-serif;
        --m-font-heading: 'Poppins', 'DM Sans', -apple-system, sans-serif;
        --m-frame-wood: #4A3D2E;
        --m-frame-wood-light: #5E4E3A;
    }

    body {
        background: #E8E0D6;
        overflow: hidden;
        font-family: var(--m-font-body);
        color: var(--m-text);
    }

    /* ================================================
       HERO INTRO SPLASH
       Full-screen pet photo mosaic overlay
       ================================================ */
    .mural-hero {
        position: fixed;
        inset: 0;
        z-index: 1100;
        display: flex;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        background: var(--m-charcoal);
        opacity: 1;
        pointer-events: all;
        transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1);
    }
    .mural-hero.is-dismissing { opacity: 0; pointer-events: none; }
    .mural-hero.is-gone { display: none; }

    /* Photo mosaic background */
    .mural-hero-mosaic {
        position: absolute;
        inset: 0;
        display: grid;
        gap: 3px;
        z-index: 0;
        overflow: hidden;
    }
    .mural-hero-mosaic-cell {
        overflow: hidden;
        position: relative;
        min-height: 0;
    }
    .mural-hero-mosaic-cell img {
        width: 100%; height: 100%;
        object-fit: cover; display: block;
        transition: transform 0.3s ease, filter 0.3s ease;
    }
    .mural-hero-mosaic-cell:hover img {
        transform: scale(1.06);
        filter: brightness(1.12);
    }

    /* Dark overlay for text */
    .mural-hero-overlay {
        position: absolute; inset: 0;
        background:
            radial-gradient(ellipse 60% 55% at 50% 48%, rgba(26,21,20,0.82) 0%, rgba(26,21,20,0.3) 100%),
            linear-gradient(to bottom, rgba(26,21,20,0.5) 0%, rgba(26,21,20,0.55) 40%, rgba(26,21,20,0.55) 60%, rgba(26,21,20,0.5) 100%);
        z-index: 1;
        pointer-events: none;
    }

    /* Content */
    .mural-hero-content {
        position: relative; z-index: 2;
        display: flex; flex-direction: column; align-items: center;
        text-align: center; padding: 0 24px;
        pointer-events: none;
    }
    .mural-hero-enter { pointer-events: all; }

    .mural-hero-title {
        font-family: var(--m-font-display);
        font-size: clamp(2.2rem, 5.5vw, 4rem);
        font-weight: 400;
        color: var(--m-cream);
        line-height: 1.1;
        margin: 0 0 8px;
        opacity: 0; transform: translateY(12px);
        animation: heroFadeUp 0.6s 0.2s ease forwards;
        text-shadow: 0 2px 20px rgba(0,0,0,0.4);
    }
    .mural-hero-tagline {
        font-family: var(--m-font-body);
        font-size: clamp(0.9rem, 2.2vw, 1.2rem);
        font-weight: 500;
        font-style: italic;
        letter-spacing: 4px;
        color: rgba(250,245,240,0.55);
        margin: 0 0 32px;
        opacity: 0; transform: translateY(8px);
        animation: heroFadeUp 0.5s 0.4s ease forwards;
        text-shadow: 0 1px 10px rgba(0,0,0,0.3);
    }
    .mural-hero-stats {
        display: flex; align-items: center; gap: 14px;
        margin-bottom: 32px;
        opacity: 0; transform: translateY(8px);
        animation: heroFadeUp 0.5s 0.55s ease forwards;
    }
    .hero-stat {
        font-family: var(--m-font-body);
        font-size: 0.85rem; font-weight: 500;
        color: rgba(250,245,240,0.55);
        white-space: nowrap;
    }
    .hero-stat-num { font-weight: 700; color: rgba(250,245,240,0.85); }
    .hero-stat-dot {
        display: inline-block; width: 5px; height: 5px;
        border-radius: 50%; background: rgba(250,245,240,0.25);
    }
    .mural-hero-enter {
        display: inline-flex; align-items: center; gap: 8px;
        padding: 14px 32px;
        background: var(--m-coral); color: white; border: none;
        border-radius: 9999px;
        font-family: var(--m-font-body); font-size: 1rem; font-weight: 700;
        cursor: pointer; letter-spacing: 0.01em;
        box-shadow: 0 4px 24px rgba(232,112,78,0.45), 0 8px 40px rgba(0,0,0,0.2);
        transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
        margin-bottom: 16px;
        opacity: 0; transform: translateY(8px);
        animation: heroFadeUp 0.5s 0.7s ease forwards;
    }
    .mural-hero-enter:hover {
        background: #c96b4e;
        box-shadow: 0 6px 32px rgba(232,112,78,0.55), 0 12px 48px rgba(0,0,0,0.25);
        transform: translateY(-1px);
    }
    .mural-hero-hint {
        font-size: 0.75rem; color: rgba(250,245,240,0.3);
        letter-spacing: 0.05em;
        pointer-events: all;
        opacity: 0;
        animation: heroFadeUp 0.5s 0.85s ease forwards;
    }

    /* Progress bar */
    .mural-hero-progress {
        position: absolute; bottom: 0; left: 0; right: 0;
        height: 3px; background: rgba(250,245,240,0.08); z-index: 2;
    }
    .mural-hero-progress-bar {
        height: 100%; background: var(--m-coral);
        width: 100%; transform-origin: left;
        animation: heroProgress var(--hero-duration, 8s) linear forwards;
    }

    @keyframes heroProgress {
        from { transform: scaleX(1); }
        to   { transform: scaleX(0); }
    }
    @keyframes heroFadeUp {
        to { opacity: 1; transform: translateY(0); }
    }

    /* Fallback when not enough pet photos */
    .mural-hero-fallback {
        position: absolute; inset: 0;
        background: linear-gradient(135deg, var(--m-charcoal) 0%, var(--m-charcoal-light) 50%, var(--m-charcoal) 100%);
    }

    /* --- Navbar overrides (dark, narrow, v4-style) --- */
    .navbar {
        background: rgba(26, 21, 20, 0.92) !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        border-bottom: 1px solid rgba(250, 245, 240, 0.06) !important;
        padding: 8px 5% !important;
        box-shadow: none !important;
    }
    .navbar-logo-text {
        background: none !important;
        -webkit-background-clip: unset !important;
        background-clip: unset !important;
        -webkit-text-fill-color: unset !important;
        color: #48B0B0 !important;
        font-size: var(--text-xl) !important;
        font-weight: var(--font-extrabold) !important;
        font-family: var(--font-body) !important;
    }
    .navbar-logo img {
        height: 32px !important;
    }
    .navbar-link {
        color: rgba(250, 245, 240, 0.6) !important;
        font-size: 0.82rem !important;
    }
    .navbar-link:hover {
        color: var(--m-cream) !important;
    }
    .navbar-link::after {
        background: var(--m-coral) !important;
    }
    .navbar-link.active {
        color: var(--m-cream) !important;
    }
    .navbar-cta {
        display: none !important;
    }
    .mobile-menu-btn {
        color: var(--m-cream) !important;
    }
    /* Fix icon centering -- components.css adds margin-right:6px to ALL button icons */
    .mural-cta button .icon,
    .mural-cta button [data-lucide],
    .zoom-controls button .icon,
    .zoom-controls button [data-lucide] {
        margin-right: 0 !important;
        margin-left: 0 !important;
    }

    /* Mobile dropdown dark style */
    .navbar-links.active {
        background: #2A2320 !important;
        border-bottom-color: rgba(250, 245, 240, 0.08) !important;
    }
    .navbar-links.active .navbar-link {
        color: rgba(250, 245, 240, 0.7) !important;
    }
    .navbar-links.active .navbar-link:hover {
        color: var(--m-cream) !important;
        background: rgba(250, 245, 240, 0.06) !important;
    }

    /* --- Zoom Controls (floating, top-right) --- */
    .zoom-controls {
        position: fixed;
        top: 62px;
        right: 16px;
        z-index: 60;
        display: flex;
        align-items: center;
        gap: 4px;
        background: rgba(255, 255, 255, 0.92);
        backdrop-filter: blur(12px);
        padding: 4px 8px;
        border-radius: 10px;
        border: 1px solid rgba(44, 35, 33, 0.1);
        box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    }
    .zoom-btn {
        width: 30px;
        height: 30px;
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--m-text-secondary);
        background: transparent;
        border: none;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
    }
    .zoom-btn:hover { background: rgba(44, 35, 33, 0.08); color: var(--m-text); }
    .zoom-btn .icon { width: 15px; height: 15px; }
    .zoom-level {
        font-family: var(--m-font-body);
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--m-text-muted);
        min-width: 36px;
        text-align: center;
    }
    @media (max-width: 600px) {
        .zoom-controls { display: none; }
    }

    /* --- Mobile: vertical mural (27 cols x 48 rows) --- */
    @media (max-width: 768px) {
        body { overflow: hidden; }
        .mural-viewport {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            overflow: hidden;
            cursor: default;
            touch-action: none;
        }
        .mural-viewport.is-grabbing { cursor: default; }
        .mural-wall {
            position: absolute;
            transform-origin: 0 0;
            padding: 20px 12px 140px;
            display: flex;
            flex-direction: column;
            align-items: center;
            will-change: transform;
        }
        .wall-banner {
            margin-bottom: 16px;
        }
        .wall-banner-title {
            font-size: 1.4rem;
            letter-spacing: 2px;
        }
        .wall-banner-tagline {
            font-size: 0.7rem;
        }
        .wall-banner-tagline::before,
        .wall-banner-tagline::after {
            width: 30px;
        }
        .wall-banner-stats {
            gap: 8px;
        }
        .mural-grid {
            border-width: 3px;
        }
        .mural-cta {
            bottom: 16px;
        }
        .claim-btn {
            padding: 12px 22px;
            font-size: 0.85rem;
        }
    }

    /* --- Mural Viewport (pan/zoom canvas) --- */
    .mural-viewport {
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        overflow: hidden;
        cursor: grab;
        /* Light concrete wall background */
        background: #E8E0D6;
        background-image: url('../assets/images/concrete-bg-1920.webp');
        background-size: cover;
        background-position: center;
        background-attachment: fixed;
    }
    .mural-viewport.is-grabbing { cursor: grabbing; }

    /* --- Wall content wrapper (transformed by JS for zoom/pan) --- */
    .mural-wall {
        position: absolute;
        padding: 60px 50px 80px;
        transform-origin: 0 0;
        will-change: transform;
        contain: layout style;
    }

    /* --- Zoom Controls (in header) --- */
    .zoom-controls {
        display: flex;
        align-items: center;
        gap: 6px;
    }
    .zoom-level {
        font-size: 0.72rem;
        font-weight: 600;
        color: var(--m-warm-gray-light);
        min-width: 36px;
        text-align: center;
    }
    @media (max-width: 900px) {
        .zoom-controls { display: none; }
    }

    /* --- Wall banner (engraved text above the grid) --- */
    .wall-banner {
        text-align: center;
        margin-bottom: 30px;
        pointer-events: none;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
    .wall-banner-title {
        font-family: var(--m-font-display);
        font-size: clamp(1.8rem, 4vw, 3.2rem);
        font-weight: 400;
        color: rgba(45, 24, 16, 0.70);
        text-shadow:
            -1px -1px 1px rgba(255, 255, 255, 0.3),
            1px 1px 2px rgba(0, 0, 0, 0.08);
        letter-spacing: 3px;
        line-height: 1;
        margin-bottom: 4px;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        text-rendering: geometricPrecision;
    }
    .wall-banner-tagline {
        font-family: var(--m-font-body);
        font-size: clamp(0.75rem, 1.4vw, 1rem);
        font-weight: 600;
        font-style: italic;
        color: rgba(45, 24, 16, 0.55);
        text-shadow:
            -1px -1px 1px rgba(255, 255, 255, 0.25),
            1px 1px 2px rgba(0, 0, 0, 0.06);
        letter-spacing: 3px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 16px;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        text-rendering: geometricPrecision;
    }
    .wall-banner-tagline::before,
    .wall-banner-tagline::after {
        content: '';
        width: clamp(40px, 8vw, 100px);
        height: 2px;
        background: rgba(45, 24, 16, 0.25);
        box-shadow: 0 -1px 0 rgba(255,255,255,0.2);
    }
    .wall-banner-stats {
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 14px;
        margin-top: 8px;
        transform: translateZ(0);
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
        text-rendering: geometricPrecision;
    }
    .wall-stat {
        font-family: var(--m-font-body);
        font-size: clamp(0.65rem, 1vw, 0.8rem);
        font-weight: 500;
        color: rgba(45, 24, 16, 0.50);
    }
    .wall-stat-num {
        font-weight: 700;
        color: rgba(45, 24, 16, 0.68);
    }
    .wall-stat-dot {
        display: inline-block;
        width: 4px;
        height: 4px;
        border-radius: 50%;
        background: rgba(45, 24, 16, 0.30);
    }

    /* --- The Grid (the mural frame) --- */
    .mural-grid {
        display: grid;
        gap: 3px;
        position: relative;
        /* Subtle wooden frame effect */
        border: 4px solid var(--m-frame-wood);
        border-radius: 3px;
        box-shadow:
            0 3px 12px rgba(0, 0, 0, 0.18),
            0 6px 24px rgba(0, 0, 0, 0.10),
            inset 0 0 0 2px var(--m-frame-wood-light),
            inset 0 0 0 4px rgba(0, 0, 0, 0.12);
        /* Slightly darker background so the gap between tiles is visible */
        background: rgba(45, 24, 16, 0.08);
        padding: 2px;
        /* Performance: isolate grid from rest of page during transforms */
        contain: layout style;
    }

    /* --- Empty Slot --- */
    .mural-slot {
        position: relative;
        background: transparent;
        border: 1.5px dashed rgba(45, 24, 16, 0.08);
        border-radius: 4px;
        cursor: pointer;
        transition: background 0.12s ease, border-color 0.12s ease;
        aspect-ratio: 1;
        overflow: hidden;
        contain: strict;
    }
    .mural-slot:hover {
        background: rgba(53, 133, 133, 0.08);
        border-color: rgba(53, 133, 133, 0.3);
    }
    /* Debug coordinate labels removed (Session 14) */

    /* Mural complete banner (shown when mural is 100% full) */
    .mural-full-banner {
        display: none;
        position: fixed;
        bottom: 70px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 900;
        background: linear-gradient(135deg, #358585, #2A6B6B);
        color: white;
        padding: 14px 28px;
        border-radius: 16px;
        box-shadow: 0 8px 30px rgba(0,0,0,0.4);
        text-align: center;
        max-width: 500px;
        width: 90%;
        font-family: 'Quicksand', sans-serif;
    }
    .mural-full-banner.show { display: block; }
    .mural-full-banner h3 {
        font-family: 'DM Serif Display', Georgia, serif;
        font-weight: 400;
        font-size: 1.1rem;
        margin: 0 0 6px;
        color: white;
    }
    .mural-full-banner p {
        font-size: 0.85rem;
        margin: 0 0 12px;
        opacity: 0.85;
        color: white;
    }
    .mural-full-banner a {
        display: inline-flex;
        align-items: center;
        gap: 6px;
        background: linear-gradient(135deg, #E8704E, #CC5836);
        color: white;
        padding: 10px 22px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 700;
        font-size: 0.9rem;
        transition: transform 0.15s, box-shadow 0.15s;
    }
    .mural-full-banner a:hover {
        transform: translateY(-1px);
        box-shadow: 0 4px 15px rgba(232,112,78,0.4);
    }
    /* Selectable slots in claim mode - strong contrast vs non-selectable */
    .mural-slot.claim-highlight {
        background: rgba(53, 133, 133, 0.14);
        border-color: rgba(53, 133, 133, 0.45);
        border-style: dashed;
    }
    .mural-slot.claim-highlight:hover {
        background: rgba(53, 133, 133, 0.25);
        border-color: var(--m-teal);
        box-shadow: 0 0 0 2px rgba(53, 133, 133, 0.2);
    }

    /* Hover preview showing the full tile footprint */
    .mural-slot.tile-preview {
        background: rgba(53, 133, 133, 0.22);
        border-color: var(--m-teal);
        border-style: solid;
        box-shadow: inset 0 0 10px rgba(53, 133, 133, 0.12);
    }
    .mural-slot.occupied-by-tile {
        visibility: hidden;
    }

    /* --- Pet Tile (transparent click target over petCanvas) --- */
    .pet-tile {
        border-radius: 2px;
        overflow: hidden;
        cursor: pointer;
        position: relative;
        background: transparent;
        aspect-ratio: 1;
        transition: background 120ms ease;
    }
    /* Hover highlight for approved tiles is drawn on petCanvas (see paintPetHover) */
    /* Pending tiles also rendered on canvas -- keep div transparent */
    .pet-tile.pending {
        background: transparent;
    }
    /* Pending tile hover -- no visual effect (rendered on canvas) */
    .pet-tile .tile-placeholder {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        background: linear-gradient(145deg, #3d2e24, #2A2320);
        color: rgba(250, 245, 240, 0.2);
    }
    .pet-tile .tile-placeholder .icon { width: 20px; height: 20px; }

    /* Name overlay + occasion badge removed (Session 32) -- drawn on petCanvas instead */

    /* Pending tile (submitted, awaiting approval) */
    .pet-tile.pending {
        opacity: 0.5;
        cursor: default !important;
        box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
    }
    .pet-tile.pending .tile-placeholder {
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .pet-tile.pending .tile-placeholder .pending-label {
        font-family: var(--m-font-body, 'Quicksand', sans-serif);
        font-size: 3px;
        font-weight: 700;
        color: rgba(255,255,255,0.85);
        text-transform: uppercase;
        letter-spacing: 0.3px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
        padding: 0 1px;
    }
    .pet-tile.pending.tile-lg .tile-placeholder .pending-label { font-size: 6px; }
    .pet-tile.pending.tile-3x3 .tile-placeholder .pending-label { font-size: 8px; }
    .pet-tile.pending .tile-placeholder .pending-icon {
        width: 50%;
        height: 50%;
        color: rgba(255,255,255,0.6);
    }

    /* Reserved tile (in someone's cart, not yet submitted) */

    /* Deep-link focus highlight */
    .pet-tile.pet-focus {
        outline: 3px solid #E8704E;
        outline-offset: 2px;
        border-radius: 6px;
        animation: pet-focus-pulse 1.8s ease-in-out 3;
        z-index: 5;
    }
    @keyframes pet-focus-pulse {
        0%, 100% { outline-color: #E8704E; box-shadow: 0 0 0 0 rgba(232, 112, 78, 0); }
        50% { outline-color: #F0936E; box-shadow: 0 0 16px 4px rgba(232, 112, 78, 0.35); }
    }

    /* Reserved tile -- visuals drawn on petCanvas, DOM is transparent click target */
    .reserved-tile {
        position: relative;
        border: none;
        border-radius: 4px;
        background: transparent;
        cursor: default;
        overflow: hidden;
    }

    /* --- Wall Footer Hint --- */
    /* --- Mural Onboarding Overlay --- */
    .mural-onboarding {
        position: fixed;
        top: 50%;
        left: 50%;
        transform: translate(-50%, -50%);
        z-index: 9999;
        pointer-events: none;
        opacity: 1;
        transition: opacity 0.8s ease;
    }
    .mural-onboarding.hidden { opacity: 0; }
    .mural-onboarding-text {
        font-family: var(--m-font-body);
        font-size: clamp(0.8rem, 1.4vw, 0.95rem);
        font-weight: 600;
        color: #FFF5F0;
        background: rgba(61, 46, 38, 0.85);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        padding: 14px 28px;
        border-radius: 50px;
        letter-spacing: 0.3px;
        white-space: nowrap;
        box-shadow: 0 8px 32px rgba(0,0,0,0.2);
    }

    /* --- Floating CTA --- */
    .mural-cta {
        position: fixed;
        bottom: 24px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 60;
        display: flex;
        align-items: center;
        justify-content: center;
    }
    .claim-btn {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 14px 28px;
        background: var(--m-coral);
        color: #fff;
        font-family: var(--m-font-body);
        font-weight: 700;
        font-size: 0.9rem;
        border: none;
        border-radius: 9999px;
        cursor: pointer;
        letter-spacing: 0.01em;
        white-space: nowrap;
        box-shadow:
            0 4px 20px rgba(232, 112, 78, 0.35),
            0 8px 40px rgba(0, 0, 0, 0.12);
        transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
        animation: ctaGlow 2.5s ease-in-out infinite;
    }
    .claim-btn:hover {
        background: var(--m-coral-dark);
        box-shadow:
            0 6px 28px rgba(232, 112, 78, 0.45),
            0 12px 48px rgba(0, 0, 0, 0.15);
        transform: translateY(-1px);
        animation: none;
    }
    .claim-btn.active {
        background: #C05F5F;
    }
    .claim-btn .icon { width: 18px; height: 18px; }

    .help-btn {
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(44, 35, 33, 0.55);
        backdrop-filter: blur(8px);
        border: 1px solid rgba(250, 245, 240, 0.1);
        color: rgba(250, 245, 240, 0.7);
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: background 0.15s, color 0.15s;
        margin-left: 10px;
        flex-shrink: 0;
    }
    .help-btn:hover { background: rgba(44, 35, 33, 0.8); color: var(--m-cream); }
    .help-btn .icon { width: 16px; height: 16px; }

    /* --- Tile Size Picker Modal --- */
    .size-picker-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 70;
        background: rgba(26, 21, 20, 0.6);
        backdrop-filter: blur(4px);
    }
    .size-picker-overlay.active { display: flex; align-items: center; justify-content: center; }

    .size-picker {
        background: #fff;
        color: var(--m-text);
        border-radius: 20px;
        padding: 28px;
        max-width: 400px;
        width: 92%;
        box-shadow: 0 24px 80px rgba(0, 0, 0, 0.3);
    }
    .size-picker-title {
        font-family: var(--m-font-heading);
        font-weight: 700;
        font-size: 1.3rem;
        text-align: center;
        margin-bottom: 4px;
    }
    .size-picker-subtitle {
        font-size: 0.82rem;
        color: var(--m-text-muted);
        text-align: center;
        margin-bottom: 20px;
    }
    .size-option-card {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 16px;
        border-radius: 12px;
        border: 2px solid rgba(44, 35, 33, 0.08);
        background: var(--m-cream);
        cursor: pointer;
        transition: border-color 0.15s, background 0.15s;
        margin-bottom: 10px;
    }
    .size-option-card:hover {
        border-color: rgba(232, 112, 78, 0.35);
        background: #FFF8F5;
    }
    .size-option-card.selected {
        border-color: var(--m-coral);
        background: #FFF3ED;
    }
    .size-option-card.disabled {
        opacity: 0.3;
        cursor: not-allowed;
        pointer-events: none;
    }
    .size-preview {
        width: 40px;
        height: 40px;
        border-radius: 6px;
        display: flex;
        align-items: center;
        justify-content: center;
        flex-shrink: 0;
        background: rgba(44, 35, 33, 0.06);
    }
    .size-preview-1x1::after {
        content: '';
        width: 16px;
        height: 16px;
        background: var(--m-coral);
        border-radius: 3px;
    }
    .size-preview-2x2 {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 2px;
        padding: 6px;
    }
    .size-preview-3x3 {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
        gap: 1px;
        padding: 5px;
    }
    .size-preview .dot {
        width: 100%;
        aspect-ratio: 1;
        border-radius: 2px;
    }
    .size-preview-2x2 .dot { background: var(--m-teal); }
    .size-preview-3x3 .dot { background: #D4A03E; }

    .size-option-info { flex: 1; }
    .size-option-name {
        font-family: var(--m-font-heading);
        font-weight: 700;
        font-size: 0.95rem;
    }
    .size-option-desc {
        font-size: 0.75rem;
        color: var(--m-text-muted);
    }
    .size-option-price {
        font-weight: 800;
        font-size: 1.1rem;
        color: var(--m-coral);
        flex-shrink: 0;
    }
    .size-picker-actions {
        display: flex;
        gap: 10px;
        margin-top: 18px;
    }
    .size-picker-cancel {
        flex: 1;
        padding: 12px;
        background: rgba(44, 35, 33, 0.06);
        color: var(--m-text-secondary);
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.85rem;
        cursor: pointer;
        transition: background 0.15s;
    }
    .size-picker-cancel:hover { background: rgba(44, 35, 33, 0.1); }
    .size-picker-continue {
        flex: 2;
        padding: 12px;
        background: var(--m-coral);
        color: #fff;
        border: none;
        border-radius: 12px;
        font-weight: 700;
        font-size: 0.9rem;
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 6px;
        transition: background 0.15s;
    }
    .size-picker-continue:hover { background: var(--m-coral-dark); }
    .size-picker-error {
        color: #C05F5F;
        font-size: 0.75rem;
        text-align: center;
        margin-top: 8px;
        display: none;
    }

    /* --- Help Modal --- */
    .help-overlay {
        display: none;
        position: fixed;
        inset: 0;
        z-index: 90;
        background: rgba(26, 21, 20, 0.5);
        backdrop-filter: blur(4px);
        align-items: center;
        justify-content: center;
        padding: 80px 16px 20px;
    }
    .help-overlay.active { display: flex; }
    .help-modal {
        background: #fff;
        border-radius: 20px;
        max-width: 420px;
        width: 92%;
        max-height: calc(100vh - 80px);
        overflow-y: auto;
        padding: 24px;
    }
    .help-modal h3 {
        font-family: var(--m-font-heading);
        font-weight: 700;
        font-size: 0.95rem;
        margin: 18px 0 8px;
        display: flex;
        align-items: center;
        gap: 8px;
        color: var(--m-text);
    }
    .help-modal h3 .icon { width: 16px; height: 16px; color: var(--m-coral); }
    .help-modal p, .help-modal li {
        font-size: 0.85rem;
        color: var(--m-text-secondary);
        line-height: 1.6;
    }
    .help-modal ul { padding-left: 16px; list-style: disc; }

    /* --- Loading --- */
    .loading-overlay {
        position: fixed;
        inset: 0;
        z-index: 200;
        background: #E8E0D6;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 16px;
        transition: opacity 0.4s;
    }
    .loading-overlay.hidden { opacity: 0; pointer-events: none; }
    .loading-spinner {
        width: 36px;
        height: 36px;
        border: 2px solid rgba(44, 35, 33, 0.12);
        border-top-color: var(--m-coral);
        border-radius: 50%;
        animation: spin 0.8s linear infinite;
    }
    .loading-text {
        font-family: var(--m-font-body);
        font-size: 0.9rem;
        color: rgba(44, 35, 33, 0.45);
    }
    @keyframes spin { to { transform: rotate(360deg); } }

/* Family pet highlight during claim mode */
/* Family highlight removed (Session 32) -- canvas renderer makes CSS outline misaligned.
   Pending/reserved tiles still show as DOM placeholders which is sufficient for family UX. */
