  @import url('https://fonts.googleapis.com/css2?family=IBM+Plex+Mono:ital,wght@0,400;0,500;0,600;0,700&family=IBM+Plex+Sans:ital,wght@0,400;0,500;0,600;0,700&&display=swap');

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

        :root {
        /* Font Families */
        --font-serif: 'IBM Plex Mono', 'Times New Roman', serif;
        --font-sans: 'IBM Plex Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

        /* Accents */
         --accent-rusty: #D25D39;
         --accent-rusty-hover: #BD4F2D;

        /* Font Sizes */
        --text-xs: 0.75rem;
        --text-sm: 0.875rem;
        --text-base: 1rem;
        --text-lg: 1.125rem;
        --text-xl: 1.25rem;
        --text-2xl: 1.5rem;

        /* Font Weights */
        --font-normal: 400;
        --font-medium: 500;
        --font-semibold: 600;
        --font-bold: 700;

        /* Line Heights */
        --leading-tight: 1.25;
        --leading-normal: 1.5;
        --leading-relaxed: 1.6;
        --leading-loose: 1.75;

        /* Primary Colors */
        --primary-50: #eff6ff;
        --primary-100: #dbeafe;
        --primary-500: #3b82f6;
        --primary-600: #2563eb;
        --primary-700: #1d4ed8;

        /* Neutral Colors (Claude-inspired) */
        --neutral-50: #faf9f9;
        --neutral-100: #f1efef;
        --neutral-200: #e6e4e2;
        --neutral-300: #d2cfcc;
        --neutral-400: #a09c98;
        --neutral-500: #5a5652;
        --neutral-600: #6b6b6b;
        --neutral-700: #3d3936;
        --neutral-800: #2d2d2d;
        --neutral-900: #1a1816;

        /* Semantic Colors */
        --success-50: #f0fdf4;
        --success-500: #22c55e;
        --success-600: #16a34a;

        --warning-50: #fffbeb;
        --warning-500: #f59e0b;
        --warning-600: #d97706;

        --error-50: #fef2f2;
        --error-500: #ef4444;
        --error-600: #dc2626;

        /* Application-Specific Colors */
        --background: var(--neutral-50);
        --white: #ffffff;
        --surface: var(--neutral-100);
        --surface-hover: var(--neutral-200);

        /* Text Colors */
        --text-primary: var(--neutral-800);
        --text-secondary: var(--neutral-600);
        --text-tertiary: var(--neutral-500);
        --text-inverse: #ffffff;

        /* Border Colors */
        --border-light: var(--neutral-200);
        --border-medium: var(--neutral-300);
        --border-strong: var(--neutral-400);

        /* Message Bubble Colors */
        --message-system-bg: var(--neutral-100);
        --message-system-text: var(--text-primary);
        --message-system-border: var(--border-light);

        --message-user-bg: var(--neutral-100);
        --message-user-text: var(--text-inverse);

        /* Button Colors */
        --button-primary-bg: var(--primary-600);
        --button-primary-hover: var(--primary-700);
        --button-primary-text: var(--text-inverse);

        --button-secondary-bg: var(--surface);
        --button-secondary-hover: var(--surface-hover);
        --button-secondary-text: var(--text-primary);
        --button-secondary-border: var(--neutral-500);

        /* Progress Bar Colors */
        --progress-bg: var(--neutral-200);
        --progress-fill: linear-gradient(90deg, var(--success-500) 0%, var(--success-600) 100%);

        /* Cost Panel Colors */
        --cost-total-bg: var(--white);
        --cost-item-border: var(--border-light);

        /* Gallery Colors */
        --gallery-card-bg: var(--surface);
        --gallery-card-border: var(--border-light);
        --gallery-card-hover-border: var(--accent-rusty-hover);
        --gallery-card-selected-bg: var(--primary-50);
        --gallery-card-selected-border: var(--accent-rusty-hover);

        /* Shadows */
        --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
        --shadow-md: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 2px 4px -2px rgb(0 0 0 / 0.1);
        --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.1), 0 4px 6px -4px rgb(0 0 0 / 0.1);

        /* Spacing System */
        --space-xs: 0.25rem;
        --space-sm: 0.5rem;
        --space-half-sm: .75rem;
        --space-md: 1rem;
        --space-lg: 1.5rem;
        --space-xl: 2rem;
        --space-2xl: 3rem;

        /* Border Radius */
        --radius-sm: 4px;
        --radius-md: 8px;
        --radius-lg: 12px;
        --radius-xl: 18px;
        --radius-full: 50%;

        /* Sometimes there's a box over a box and the border needs to be... */
        --radius-sm-selected: 6px;
        --radius-md-selected: 10px;
        }


        body {
            font-family: var(--font-sans);
            background-color: var(--background);
            color: var(--text-primary);
            line-height: var(--leading-relaxed);
            font-size: var(--text-base);
            font-weight: var(--font-normal);
        }

        .furnish-container {
            max-width: 1200px;
            margin: 0 auto;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
        }

        /* Mobile-first layout */
        .furnish-main-content {
            display: flex;
            flex-direction: column;
            flex: 1;
            gap: 1rem;
            padding: 1rem;
        }

        /* Conversation Panel */
        .furnish-conversation-panel {
            background: var(--surface);
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-lg);
            display: flex;
            flex-direction: column;
            min-height: 400px;
            max-height: 90vh;
            overflow-y: auto;
        }

        .furnish-conversation-header {
            padding-left: var(--space-xl);
            padding-bottom: var(--space-sm);
            border-bottom: 1px solid var(--neutral-300);
        }

        .furnish-conversation-header,
        .furnish-cost-header {
            font-family: var(--font-sans);
            font-weight: var(--font-semibold);
            font-size: var(--text-sm);
            color: var(--text-primary);
            padding: var(--space-lg);
            /* border-bottom: 1px solid var(--border-light); */
        }



        .furnish-conversation-flow {
            flex: 1;
            padding: var(--space-md) var(--space-xl) var(--space-md) var(--space-xl);
            overflow-y: auto;
            overflow-x: hidden;
            display: flex;
            flex-direction: column;
            gap: 1rem;
            /* Add these for better scrolling */
            min-height: 0; /* Important for flex children */
            scroll-behavior: smooth;
            /*max-height: calc(45vh - 100px);*/
            /*max-height: none;*/
        }

        /* Gallery mode - full height when input options are hidden */
        .furnish-modal .furnish-conversation-flow.furnish-gallery-mode {
            /* max-height: 95vh; */
        }

        .furnish-message {
            display: flex;
            flex-direction: column;
            gap: 0.5rem;
        }

        .furnish-message.system {
            align-items: flex-start;
        }

        .furnish-message.user {
            align-items: flex-start;
        }

        .furnish-message-bubble {
            max-width: 80%;
            padding: 0.75rem 1rem;
            border-radius: 18px;
            word-wrap: break-word;
        }

        .furnish-message.system .furnish-message-bubble {
            background: transparent; /* No background for system messages */
            color: var(--message-system-text);
            border: none;

            /* Serif for system responses - more conversational */
            font-family: var(--font-serif);
            font-size: var(--text-base);
            line-height: var(--leading-relaxed);
            font-weight: var(--font-normal);

            /* Full width with padding */
            width: 100%;
            max-width: none;
            padding: var(--space-xs) 0;
            margin: var(--space-xs) 0;
            border-radius: 0;
        }

        .furnish-message.question .furnish-message-bubble {
            font-weight: var(--text-base);
            color: var(--text-primary);
            padding-left:0;
            padding-right:0;
            position: relative;
            background: white; /* Ensure base background */
            display: inline-block!important; /* ← This makes the element only as wide as the text */
            max-width: 100%; /* ← Prevent overflow */
            width: fit-content;
            word-wrap: break-word; /* ← Handle long words */
        }

        /* Simple test - immediate highlight */
        .furnish-message.question.line-highlight .furnish-message-bubble {
            background: linear-gradient(90deg, 
                #ffeb3b 0%, 
                #ffeb3b 100%
            );
            background-size: 0% 100%;
            background-repeat: no-repeat;
            transition: background-size .5s ease-out;
        }

        .furnish-message.question.line-highlight.animate-highlight .furnish-message-bubble {
            padding-left:var(--space-md);
            padding-right:var(--space-md);
            background-size: 100% 100%;
        }



        .furnish-message.user .furnish-message-bubble {
            background: var(--neutral-200);
            color: var(--text-primary);
            border: none;

            /* Sans-serif for user responses - more direct */
            font-family: var(--font-sans);
            font-size: var(--text-lg);
            line-height: var(--leading-normal);
            font-weight: var(--font-);

            /* Full width with subtle background */
            width: 100%;
            max-width: none;
            padding: var(--space-sm) var(--space-md) var(--space-half-sm) var(--space-md);
            border-radius: var(--radius-md);
            margin-top: var(--space-sm);            

        }

        .furnish-message-user .furnish-message-image {
            margin-right: auto;
        }

        .furnish-message-system .furnish-message-image {
            margin-right: auto;
        }

        .furnish-user-image {
            max-width: 150px;
            max-height: 100px;
        }

                /* User Image Card Styles */
        .furnish-user-image-card {
            width: 100%;
            max-width: none;
            background: var(--white);
            border: 1px solid var(--neutral-200);
            border-radius: var(--radius-md);
            overflow: hidden;
            margin-top: var(--space-sm);
            box-shadow: var(--shadow-sm);
            display: flex;
            flex-direction: column; /* ← Force vertical on mobile */
        }

        .furnish-user-image-card-img {
            width: 100%;
            height: 200px;
            object-fit: cover;
            display: block;
        }

        .furnish-user-image-card-content {
            padding: var(--space-md);
            background: var(--white);
        }

        .furnish-user-image-card-title {
            font-family: var(--font-sans);
            font-weight: var(--font-semibold);
            font-size: var(--text-base);
            color: var(--text-primary);
            margin-bottom: var(--space-xs);
            line-height: var(--leading-tight);
        }

        .furnish-user-image-card-description {
            font-family: var(--font-sans);
            font-weight: var(--font-normal);
            font-size: var(--text-sm);
            color: var(--text-secondary);
            line-height: var(--leading-normal);
        }

        .furnish-message-image {
            max-width: 120px;
            max-height: 80px;
            border-radius: 6px;
            margin: 0.5rem 0;
            object-fit: cover;
            border: 1px solid #ddd;
            display: block;
            box-shadow: 0 2px 4px rgba(0,0,0,0.1);
        }

        /* Email input container */
        .furnish-email-input-container {
            display: flex;
            gap: 0.25rem;
            width: 100%;
        }

        
        .furnish-email-input-container input { flex: 2; }
        .furnish-email-input-container button { flex: 1; } 

        /* ============ INPUT FIELDS ==============  */

        /* Email input field */

        .furnish-email-input {
            font-family: var(--font-sans);
            font-size: var(--text-base);
            font-weight: var(--font-normal);
            padding: var(--space-sm) var(--space-md);
            border: 1px solid var(--primary-500);
            border-radius: var(--radius-sm);
            color: var(--text-primary);
            transition: border-color 0.3s ease;
        }

        .furnish-email-input:focus {
            outline: none;
            border-color: var(--accent-rusty);
            box-shadow: 0 0 0 3px rgba(var(--accent-rusty), 0.1);
        }

        .furnish-email-input.error {
            border-color: #e74c3c;
        }

        /* Email error message */
        .furnish-email-error-message,
        .furnish-number-input-error {
            font-family: var(--font-sans);
            font-size: var(--text-sm);
            font-weight: var(--font-medium);
            color: var(--error-500);
            margin-top: var(--space-xs);
        }

        .furnish-email-input::placeholder {
            color: var(--text-tertiary);
            font-style: italic;
        }

        input.furnish-number-input {
            background: var(--user-message-bg); /* Same as user message #F1EFEF */
            border: 1px solid var(--neutral-200);
            height: 33px;
            padding: var(--space-sm) var(--space-md);
            border-radius: var(--radius-sm);
            font-family: var(--font-sans);
            font-size: var(--text-sm);
            color: var(--text-primary);
            width: 200px; /* Constrained width like in image */
        }

        input.furnish-number-input:focus {
            border: 1px solid var(--neutral-800)!important;
            outline-color: var(--accent-rusty);
        }

        input.furnish-number-input::placeholder {
            color: var(--text-secondary);
        }

        input {
            margin: 0 0 0 0!important;
        }


        /* ============ BUTTONS ==============  */

        /* Base button styles - shared by all buttons */
        .furnish-btn {
            font-family: var(--font-sans);
            font-weight: 600;
            font-size: var(--text-base);
            padding: 0.75rem 1.5rem;
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            border: none;
        }

        /* PRIMARY BUTTONS - Rust colored for main actions */
        .furnish-btn-primary {
            background-color: var(--accent-rusty);
            color: white;
            border: none;
        }

        .furnish-btn-primary:hover:not(:disabled) {
            background-color: var(--accent-rusty-hover);
            transform: translateY(-1px);
        }

        .furnish-btn-primary:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            transform: none;
        }

        /* SECONDARY BUTTONS - White with border for options/selections */
        .furnish-btn-secondary {
            background: var(--white);
            border: 1px solid var(--neutral-500);
            color: var(--text-primary);
        }

        .furnish-btn-secondary:hover:not(:disabled) {
            background: var(--neutral-50);
            border-color: var(--neutral-600);
        }

        .furnish-btn-secondary:disabled {
            background-color: #f5f5f5;
            color: #999;
            border-color: #ddd;
            cursor: not-allowed;
        }

        .furnish-btn-secondary.selected {
            background: var(--user-message-bg);
            border-color: var(--accent-rusty);
        }

        /* SPECIFIC BUTTON CLASSES - For backwards compatibility */

        #galleryConfirmButton {
            /* Container for Gallery */

            margin-top: var(--space-lg);
            text-align: left;
            padding: var(--space-lg);
            background-color: var(--white);
            border-radius: var(--radius-lg);
            border-color: var(--neutral-100);
        }

        /* Using the rust accent color, stand-alone buttons */
        .furnish-option-button.furnish-continue-button,
        .furnish-option-button.furnish-primary,
        .furnish-option-button.furnish-email-submit-button.furnish-primary {
            font-family: var(--font-sans);
            font-weight: var(--font-medium);
            font-size: var(--text-sm);
            padding: var(--space-xs) var(--space-md);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            border: none;
            background-color: var(--accent-rusty);
            color: var(--text-inverse);
        }

        .furnish-continue-button:hover:not(:disabled),
        .furnish-option-button.furnish-continue-button:hover:not(:disabled),
        .furnish-option-button.furnish-primary:hover:not(:disabled),
        .furnish-option-button.furnish-email-submit-button.furnish-primary:hover:not(:disabled),
        .furnish-email-submit-button:hover:not(:disabled) {
            background-color: var(--accent-rusty-hover);
            transform: translateY(-1px);
        }

        .furnish-continue-button:disabled,
        .furnish-email-submit-button:disabled {
            background-color: #ccc;
            color: #666;
            cursor: not-allowed;
            transform: none;
        }

        /* White bg, grey border, usually buttons in groups */
        .furnish-option-button,
        .furnish-option-button .furnish-skip,
        .furnish-multi-select-button {
            font-family: var(--font-sans);
            font-weight: var(--font-medium);
            font-size: var(--text-sm);
            padding: var(--space-xs) var(--space-md);
            border-radius: var(--radius-sm);
            cursor: pointer;
            transition: all 0.3s ease;
            white-space: nowrap;
            flex-shrink: 0;
            background: var(--white);
            border: 1px solid var(--neutral-400);
            color: var(--text-primary);
        }

        .furnish-option-button:hover:not(:disabled),
        .furnish-multi-select-button:hover:not(:disabled) {
            background: var(--neutral-50);
            border-color: var(--neutral-600);
        }

        .furnish-option-button:disabled,
        .furnish-multi-select-button:disabled {
            background-color: #f5f5f5;
            color: #999;
            border-color: #ddd;
            cursor: not-allowed;
        }

        .furnish-option-button.selected,
        .furnish-multi-select-button.selected {
            background: var(--user-message-bg);
            border-color: var(--accent-rusty);
        }

        .furnish-option-button.furnish-text-link {
            color: var(--accent-rusty)!important;
            border: none!important;
            background: transparent;
            font-weight: var(--text-base);
        }

        /* ============== GALLERY CARDS ETC ============== */

        /* Multi-select gallery card base styles */
        /*.gallery-card,
        .multi-select-gallery-card {
            display: flex;
            align-items: center;
            width: 100%;
            background: var(--surface);
            border: 1px solid var(--neutral-200);
            border-radius: var(--space-sm);
            overflow: hidden;
            transition: all 0.2s ease;
        } */

        /* Sticky question area */
        .furnish-current-question {
            position: sticky;
            top: 0;
            background: var(--white);
            border-bottom: 1px solid var(--border-light);
            padding: 1rem 2rem;
            z-index: 20;
            font-family: var(--font-serif);
            font-size: var(--text-base);
            line-height: var(--leading-relaxed);
            color: var(--text-primary);
            box-shadow: 0 2px 4px rgba(0,0,0,0.05);
        }

        /* Hide when no current question */
        .furnish-current-question.furnish-hidden {
            display: none;
        }

        /* Adjust conversation flow to account for sticky header */
        .furnish-conversation-flow {
            /* Keep existing styles */
        }

        .furnish-gallery-card,
        .furnish-multi-select-gallery-card {
            border-radius: var(--space-sm);
            cursor: pointer;
            border: 2px solid transparent;
            border-radius: var(--radius-md);
            overflow: hidden;
            background-color: var(--white);
            transition: all 0.3s ease;
            position: relative;
        }

        /* Image styling for full width cards */
        .furnish-gallery-card .furnish-card-image,
        .furnish-multi-select-gallery-card .furnish-card-image {
            width: 100%; /* Fixed width for image */
            height: 180px;
            object-fit: cover;
            flex-shrink: 0;
            display: block;
        }

        /* Content area takes remaining space */
        .furnish-gallery-card .furnish-card-content,
        .furnish-multi-select-gallery-card .furnish-card-content {
            flex: 1;
            padding: 0.75rem;
            display: flex;
            flex-direction: column;
            justify-content: center;
            background: var(--white);
        }

        .furnish-gallery-card:hover,
        .furnish-multi-select-gallery-card:hover {
            border-color: var(--gallery-card-hover-border);
            transform: translateY(-2px);
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-md-selected);
        }

        /* Multi-select gallery card selected state */
        .furnish-gallery-card.selected,
        .furnish-multi-select-gallery-card.selected {
            border-color: var(--gallery-card-selected-border);
            background-color: var(--white);
            transform: translateY(-2px)!important;
            box-shadow: 0 4px 12px rgba(var(--neutral-500), 0.2)!important;
            border-radius: var(--radius-md-selected);
        }

        /* Multi-select gallery card image */
        .furnish-gallery-card .furnish-card-image,
        .furnish-multi-select-gallery-card .furnish-card-image {
            width: 100%;
            height: 180px;
            object-fit: cover;
            display: block;
            border-radius: var(--space-sm) var(--space-sm) 0 0;
        }

        /* Multi-select gallery card content */
        .furnish-gallery-card .furnish-card-content,
        .furnish-multi-select-gallery-card .furnish-card-content {
            padding: 0.75rem;
            border-radius: 0 0 var(--space-sm) var(--space-sm);
        }

        .furnish-gallery-card .furnish-card-title,
        .furnish-multi-select-gallery-card .furnish-card-title {
            font-weight: 600;
            font-size: 0.9rem;
            margin-bottom: 0.25rem;
            color: var(--text-primary);
        }

        .furnish-gallery-card .furnish-card-description,
        .furnish-multi-select-gallery-card .furnish-card-description {
            font-size: 0.8rem;
            color: var(--text-secondary);
            line-height: 1.3;
        }

        /* Selection checkmark for multi-select */
        /*.multi-select-gallery-card .selection-checkmark {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: #4CAF50;
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
            z-index: 1;
        }*/

        /* Multi-select gallery container */
        .furnish-gallery-container,
        .furnish-multi-select-gallery-container {
            display: grid;
            grid-template-columns: repeat(2, 1fr); /* Single column, full width */
            gap: 1rem;
            width: 100%;
            margin: 0 0 var(--space-lg) 0; /* Remove margins */
            padding: 0; /* Remove padding */
        }

        /* Multi-select gallery overlay */

        .furnish-gallery-overlay,
        .furnish-multi-select-gallery-overlay {
            width: 100%;
            padding-top: 2rem; /* Only top/bottom padding */
            padding-bottom: 1rem;
            padding-left: 0rem;
            padding-right: 0rem;
            background: transparent;
            margin: 0;
            border-radius: var(--radius-md);
        }

        .furnish-gallery-overlay,
        .furnish-multi-select-gallery-overlay {
            opacity: 0;
            transform: translateY(20px);
            animation: slideInGallery 0.6s ease-out forwards;
        }

        #furnishGalleryOverlay .instructions {
            font-family: var(--font-sans);
            font-weight: var(--font-semibold);
            font-size: var(--text-sm);
            color: var(--text-primary);
            margin-bottom: var(--space-lg);
        }

        @keyframes slideInGallery {
            to {
                opacity: 1;
                transform: translateY(0);
            }
        }

        .furnish-multi-select-gallery-instructions {
            font-family: var(--font-sans);
            font-weight: var(--font-semibold);
            font-size: var(--text-base);
            color: var(--text-primary);
            margin-bottom: var(--space-lg);
        }



        /* Single-column gallery container */
        .furnish-gallery-container-single {
            display: grid !important;
            grid-template-columns: 1fr !important;  /* Force single column */
            gap: 1rem !important;
            width: 100% !important;
            /* max-width: 500px !important; */ /* Limit width for better appearance */
            margin: 0 auto !important;    /* Center the column */
        }

        /* Make cards full width and taller in single-column */
        .furnish-gallery-container-single .furnish-gallery-card {
            width: 100% !important;
            max-width: none !important;
            min-height: 300px !important;  /* ← Make cards taller */
        }

        /* Much larger images for single-column */
        .furnish-gallery-container-single .furnish-gallery-card img {
            height: 340px !important;  /* ← Increased from 200px */
            width: 100% !important;
        }

        /* More spacious content padding */
        .furnish-gallery-container-single .furnish-gallery-card .furnish-card-content {
            padding: 1.5rem !important;  /* ← More padding */
            flex: 1;  /* ← Take up remaining space */
        }

        /* Larger text for single-column cards */
        .furnish-gallery-container-single .furnish-gallery-card .furnish-card-title {
            font-family: var(--font-sans);
            font-weight: var(--font-semibold);
            font-size: var(--text-sm);
            color: var(--text-primary);
            margin-bottom: var(--space-xs);
            line-height: var(--leading-tight);
        }

        .furnish-gallery-container-single .furnish-gallery-card .furnish-card-description {
            font-family: var(--font-sans);
            font-weight: var(--font-normal);
            font-size: var(--text-xs);
            color: var(--text-tertiary);
            line-height: var(--leading-normal);
        }

        /* Gallery card selection state */
        .furnish-gallery-card {
            transition: all 0.3s ease;
            position: relative;

            background: var(--white);
            border: 2px solid var(--gallery-card-border);
            border-radius: var(--radius-md);
            box-shadow: var(--shadow-sm);
        }

        .furnish-gallery-card:hover {
            border-color: var(--gallery-card-hover-border);
            border-radius: var(--radius-md-selected);
            box-shadow: var(--shadow-md);
        }

        .furnish-gallery-card.selected {
            background: var(--gallery-card-selected-bg);
            border-color: var(--gallery-card-selected-border);
            transform: translateY(-2px) !important;
            box-shadow: 0 4px 12px rgba(33, 150, 243, 0.2) !important;
        }



        /* Selection checkmark */
        .furnish-selection-checkmark {
            position: absolute;
            top: 8px;
            right: 8px;
            background-color: var(--accent-rusty);
            color: white;
            border-radius: 50%;
            width: 24px;
            height: 24px;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 14px;
            font-weight: bold;
            box-shadow: 0 2px 4px rgba(0,0,0,0.2);
        }

        .furnish-multi-select-image-card {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: var(--space-sm);
            justify-content: center;
            width: 100%;
        }

        /* 4-column image grid for multi-select responses */
        .furnish-multi-select-image-grid {
            display: grid;
            grid-template-columns: repeat(3, 1fr);
            gap: 0.5rem;
            margin-top: 0.75rem;
            max-width: 400px; /* Constrain total width */
            width: 100%;
        }

        .furnish-grid-image-item {
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: left;
            width: 100%;
            height: 240px;
        }

        .furnish-grid-image {
            width: 100%;
            height: 200px;
            object-fit: cover;
            border-radius: var(--space-sm);
            border: 1px solid var(--neutral-200);
            display: block;
        }

        .furnish-grid-image-label {
            font-size: var(--text-xs);
            color: var(--text-secondary);
            margin-top: 0.25rem;
            line-height: 1.2;
            display: flex;
            align-items: center;
            justify-content: center;
            text-align: left;
        }

        /* ============== MODAL STYLES ============== */



        /* Launch Button */
        .furnish-launch-btn {
            background: var(--accent-rusty);
            color: white;
            border: none;
            padding: 1rem 2rem;
            font-size: var(--text-lg);
            font-weight: var(--font-semibold);
            border-radius: var(--radius-md);
            cursor: pointer;
            transition: all 0.3s ease;
            box-shadow: var(--shadow-md);
        }

        .furnish-launch-btn:hover {
            background: var(--accent-rusty-hover);
            transform: translateY(-2px);
            box-shadow: var(--shadow-lg);
        }

        /* Modal Container */
        .furnish-estimator-wrapper .furnish-modal,
        #furnishModal,
        div.furnish-modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            z-index: 999998!important;
            display: flex;
            align-items: center;
            justify-content: center;
            opacity: 0;
            
            /* Smooth fade-in only */
            opacity: 0;
            transition: opacity 0.25s ease-out;
        }

  

        .furnish-modal.show {
            opacity: 1;
        }

        /* Modal Backdrop */
        .furnish-modal-backdrop {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(0, 0, 0, 0.6);
            backdrop-filter: blur(2px);
        }

        /* Modal Content Container */
        .furnish-modal-content {
            position: relative;
            margin: 10px auto;
            width: 98vw;
            height: 98vh;
            z-index: 999999!important;
            max-width: 1080px;
            max-height: none;
            background: white;
            border-radius: var(--radius-lg);
            overflow: hidden;
            box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
            transform: scale(0.9);
            
            /* Smooth scale animation */
            transform: scale(0.95);
            transition: transform 0.25s ease-out;
        }

        .furnish-modal.show .furnish-modal-content {
            transform: scale(1);
        }



        /* Close Button */
        .furnish-modal-close {
            position: absolute;
            top: 1rem;
            right: 1rem;
            background: rgba(0, 0, 0, 0.1);
            border: none;
            width: 40px;
            height: 40px;
            border-radius: 50%;
            font-size: 24px;
            font-weight: bold;
            color: var(--text-secondary);
            cursor: pointer;
            z-index: 1000;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s ease;
        }

        .furnish-modal-close:hover {
            background: rgba(0, 0, 0, 0.2);
            color: var(--text-primary);
        }

        /* Modal Estimator Wrapper */
        .furnish-modal .furnish-estimator-wrapper {
            width: 100%;
            height: 100%;
            display: flex;
            flex-direction: column;
        }

        .furnish-modal .furnish-container {
            width: 100%;
            height: 100%;
            max-width: none;
            margin: 0;
            display: flex;
            flex-direction: column;
        }

        .furnish-modal .furnish-main-content {
            flex: 1;
            display: flex;
            flex-direction: row;
            height: 100%;
            gap: 0;
            padding: 0;
        }

        /* Modal Panels */
        .furnish-modal .furnish-conversation-panel {
            flex: 3;
            height: 100%;
            max-height: none;
            border-radius: 0;
            box-shadow: none;
            border-right: 1px solid var(--border-light);
            display: flex;
            flex-direction: column;
        }



        .furnish-modal .furnish-cost-panel {
            flex: 2;
            height: 100%;
            max-height: none;
            border-radius: 0;
            box-shadow: none;
        }

        /* Modal Conversation Flow */
        .furnish-modal .furnish-conversation-flow {
            flex: 1;
            max-height: none;
            overflow-y: auto;
        }

        /* Modal Input Options */
        .furnish-modal .furnish-input-options {
            flex-shrink: 0;
            margin: 1rem;
            position: relative;
            /*bottom: auto;*/
        }

        /* Mobile Modal Adjustments */
        @media (max-width: 768px) {
            .furnish-modal-content {
                width: 98vw;
                height: 98vh;
                border-radius: var(--radius-md);
            }
            
            .furnish-modal .furnish-main-content {
                flex-direction: column;
            }
            
            .furnish-modal .furnish-conversation-panel {
                flex: 2;
                border-right: none;
                border-bottom: 1px solid var(--border-light);
            }
            
            .furnish-modal .furnish-cost-panel {
                flex: 1;
            }
        }

        /* Medium screens - 50/50 split between 768px and 1080px */
        @media (min-width: 768px) and (max-width: 1080px) {
            .furnish-modal .furnish-main-content {
                flex-direction: row; /* Keep side by side */
            }
            
            .furnish-modal .furnish-conversation-panel {
                flex: 1; /* 50% width */
            }
            
            .furnish-modal .furnish-cost-panel {
                flex: 1; /* 50% width */
            }
        }



        /* Responsive - 2 columns on mobile */
        @media (max-width: 768px) {
            .furnish-multi-select-image-grid {
                grid-template-columns: repeat(2, 1fr);
                max-width: 200px;
            }
        }

        .furnish-input-options {
            position: sticky;
            bottom: 30px;
            padding: 1.5rem 1rem;
            border: none;
            background: var(--white);
            box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Add shadow like in image */
            border-radius: 8px;
            margin: 1rem 2rem; /* Space from edges */
            display: flex;
            flex-direction: row; /* Side by side */
            flex-wrap: wrap;
            gap: var(--space-xs);
            max-height: none;
            min-height: 84px;
            overflow: visible;
        }



        /* Cost Panel */
        .furnish-cost-panel {
            background: var(--white);
            box-shadow: var(--shadow-md);
            border-radius: var(--radius-lg);
            border-left: 1px solid var(--neutral-300);
            display: flex;
            flex-direction: column;
            min-height: 300px;
            max-height: 85vh;
        }

        /*.cost-header {
            padding: 1rem;
            border-bottom: 1px solid #e5e5e5;
            font-weight: 600;
            color: #2c3e50;
        }*/

        /* Line item flash animation */
        @keyframes lineItemFlash {
            0% {
                /*background-color: var(--accent-rusty);*/
                transform: translateX(-10px);
                opacity: 0;
            }
            50% {
                /*background-color: var(--accent-rusty);*/
                opacity: 1;
            }
            100% {
               /*background-color: transparent;*/
                transform: translateX(0);
                opacity: 1;
            }
        }

        @keyframes pulse {
            0%, 100% { opacity: 1; }
            50% { opacity: 0.5; }
        }

        .furnish-cost-items {
            flex: 1;
            padding: 1rem;
            overflow-y: auto;
            max-height: calc(85vh - 140px);
        }

        .furnish-cost-item {
            position: relative;
            display: flex;
            justify-content: between;
            align-items: center;
            padding: var(--space-xs) 0;
            border-bottom: 1px solid var(--cost-item-border);
            transition: all 0.3s ease;
        }

       /* .furnish-cost-item.furnish-new-item {
            animation: lineItemFlash 0.8s ease-out;
        }

        .furnish-cost-item.furnish-new-item::before {
            content: '';
            position: absolute;
            left: -20px;
            top: 50%;
            transform: translateY(-50%);
            width: 16px;
            height: 12px;
            background-color: var(--accent-rusty);
            border-radius: 2px 0 0 2px;
            animation: slideInTag 0.6s ease-out;
        }

        .furnish-cost-item.furnish-new-item::after {
            content: '';
            position: absolute;
            left: -4px;
            top: 50%;
            transform: translateY(-50%);
            width: 0;
            height: 0;
            border-top: 6px solid transparent;
            border-bottom: 6px solid transparent;
            border-left: 6px solid var(--accent-rusty);
        }

        @keyframes slideInTag {
            0% {
                transform: translateY(-50%) translateX(-10px);
                opacity: 0;
            }
            100% {
                transform: translateY(-50%) translateX(0);
                opacity: 1;
            }
        }*/

        .furnish-cost-item:last-child {
            border-bottom: none;
        }

        .furnish-cost-item-name {
            font-family: var(--font-serif);
            font-weight: var(--font-normal);
            font-size: var(--text-sm);
            color: var(--text-primary);
            line-height: var(--leading-normal);
            flex: 1;
        }

        .furnish-cost-item-price {
            font-family: var(--font-serif);
            font-weight: var(--font-normal);
            font-size: var(--text-sm);
            color: var(--text-primary);
        }

        .furnish-total-section {
            padding: 1rem;
            background: var(--cost-total-bg);
            border-top: none;
            display: flex;
            justify-content: space-between;
        }

        .furnish-total-range {
            display: flex;
            justify-content: space-between;
            font-family: var(--font-serif);
            font-weight: var(--font-semibold);
            font-size: var(--text-sm);
            color: var(--text-primary);
        }

        .furnish-range-display {
            display: flex;
            font-family: var(--font-serif);
            font-weight: var(--font-normal);
            font-size: var(--text-sm);
            color: var(--text-primary);
            text-align: right;
            /* padding: var(--space-md) var(--space-xl); */
            background: none;
            /* margin-top: var(--space-sm); */
        }

        .furnish-top-section { 
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
         }

        /* Custom scrollbar styling */
        .furnish-conversation-flow::-webkit-scrollbar,
        .furnish-cost-items::-webkit-scrollbar,
        .furnish-input-options::-webkit-scrollbar {
            width: 6px;
        }

        .furnish-conversation-flow::-webkit-scrollbar-track,
        .furnish-cost-items::-webkit-scrollbar-track,
        .furnish-input-options::-webkit-scrollbar-track {
            background: #f1f1f1;
            border-radius: 3px;
        }

        .furnish-conversation-flow::-webkit-scrollbar-thumb,
        .furnish-cost-items::-webkit-scrollbar-thumb,
        .furnish-input-options::-webkit-scrollbar-thumb {
            background: #c1c1c1;
            border-radius: 3px;
        }

        .furnish-conversation-flow::-webkit-scrollbar-thumb:hover,
        .furnish-cost-items::-webkit-scrollbar-thumb:hover,
        .furnish-input-options::-webkit-scrollbar-thumb:hover {
            background: #a8a8a8;
        }


        .furnish-progress-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 4px;
            background: transparent;
            border: none;
            padding: 0;
            z-index: 10;
        }

        .furnish-progress-bar {
            height: 100%;
            background: transparent; /* Your rust color #DE7D60 */
            border-radius: 0;
            transition: width 0.6s ease-out;
            width: 100%;
        }

        .furnish-progress-fill {
          height: 100%;

          background-color: var(--accent-rusty); /*linear-gradient(90deg, #4CAF50 0%, #45a049 100%);*/
          border-radius: 4px;
          transition: width 0.3s ease-in-out;
          width: 0%;
        }

        .furnish-progress-text {
          font-family: var(--font-sans);
          font-weight: var(--font-medium);
          font-size: var(--text-sm);
          color: var(--text-secondary);
          text-align: right;
          padding-right: var(--space-md);
          padding-top: var(--space-half-sm);
        }

        /* Animated progress fill */
        .furnish-progress-fill.furnish-animate {
          background: linear-gradient(90deg, #4CAF50 0%, #45a049 50%, #4CAF50 100%);
          background-size: 200% 100%;
          animation: progressShimmer 1.5s ease-out;
        }

        @keyframes progressShimmer {
          0% { background-position: -200% 0; }
          100% { background-position: 200% 0; }
        }
        /* Responsive adjustments */
        @media (max-height: 600px) {
            .furnish-conversation-panel,
            .furnish-cost-panel {
                max-height: 95vh;
            }

            .furnish-conversation-panel {
                overflow-y: auto;
            }
            
            .furnish-conversation-flow {
                max-height: calc(90vh - 140px);
                /*max-height: none;*/
            }
            
            .furnish-cost-items {
                max-height: calc(90vh - 200px);
            }
        }

        /* Desktop layout */
        @media (min-width: 768px) {

            .furnish-main-content {
                flex-direction: row; /* Keep side by side */
                min-height: 100vh;
                max-height: 100vh;
                overflow: hidden; /* Prevent double scrollbars */
                gap: 0;
                padding: 0;
            }

            .furnish-conversation-header {
                font-size: var(--text-sm);
                padding: var(--space-md) var(--space-xl) var(--space-sm) var(--space-2xl);
            }


            .furnish-cost-header {
                font-size: var(--text-sm);
                padding: var(--space-md);
            }

            .furnish-message.furnish-system .furnish-message-bubble,
            .furnish-message.furnish-user .furnish-message-bubble {
                /* padding: var(--space-sm) 0; */
            }

            .furnish-range-display {
                font-size: var(--text-sm);
                text-align: right;
                /* padding: var(--space-sm) var(--space-lg);*/
            }

            .furnish-conversation-panel {
                border-radius: 0;
                box-shadow: none;
                border-right: 1px solid var(--border-light);
                position: relative;
                display: flex;
                flex-direction: column;
                min-height: 0; /* Important for flex children */
                overflow: auto;
                flex: 1;
            }

            .furnish-cost-panel {
                border-radius: 0;
                box-shadow: none;
                position: static;
            }

            .furnish-message-image {
                max-width: 300px;
            }
        }

        /* Large desktop */
        @media (min-width: 1024px) {
            .furnish-conversation-panel {
                flex: 3;
            }

            .furnish-cost-panel {
                flex: 2;
            }
        }