/* ShotList — Standalone CSS */

/* Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    color: #1a1a2e;
    background: #f8f9fa;
    line-height: 1.5;
    font-size: 15px;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: 960px; margin: 0 auto; padding: 0 1rem; }
.text-muted { color: #6b7280; }
.text-danger { color: #dc2626; }
.text-success { color: #16a34a; }

/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 0.75rem 1rem;
}
.nav-container {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.nav-brand {
    font-weight: 700;
    font-size: 1.25rem;
    color: #1a1a2e;
}
.nav-brand:hover { text-decoration: none; }
.nav-right { display: flex; gap: 1rem; align-items: center; }
.nav-link { color: #6b7280; font-size: 0.9rem; }
.nav-link--cta { color: #2563eb; font-weight: 500; }

/* Account dropdown */
.nav-account { position: relative; }
.nav-account-btn {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: #6b7280;
    font: inherit;
}
.nav-account-avatar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 0.8rem;
    font-weight: 600;
}
.nav-account-menu {
    position: absolute;
    right: 0;
    top: calc(100% + 6px);
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    min-width: 200px;
    z-index: 50;
    padding: 0.35rem 0;
}
.nav-account-email {
    padding: 0.5rem 0.85rem;
    font-size: 0.78rem;
    color: #9ca3af;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-account-divider {
    border: none;
    border-top: 1px solid #f3f4f6;
    margin: 0.2rem 0;
}
.nav-account-item {
    display: block;
    width: 100%;
    padding: 0.45rem 0.85rem;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font: inherit;
    font-size: 0.85rem;
}
.nav-account-item:hover { background: #f9fafb; }
.nav-account-item--logout { color: #991b1b; }
.nav-account-item--logout:hover { background: #fef2f2; }

/* Legal Pages */
.legal-page {
    max-width: 680px;
    margin: 0 auto;
    padding: 2rem 1rem 3rem;
}
.legal-header {
    margin-bottom: 2rem;
    padding-bottom: 1.25rem;
    border-bottom: 2px solid #e5e7eb;
}
.legal-header h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 0.25rem;
}
.legal-updated {
    font-size: 0.8rem;
    color: #9ca3af;
}
.legal-section {
    margin-bottom: 1.75rem;
}
.legal-section h2 {
    font-size: 1.05rem;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 0.5rem;
}
.legal-section p {
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0.5rem;
}
.legal-section ul {
    list-style: none;
    padding: 0;
    margin: 0;
}
.legal-section li {
    position: relative;
    padding-left: 1.25rem;
    color: #4b5563;
    line-height: 1.65;
    margin-bottom: 0.35rem;
}
.legal-section li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.65em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #d1d5db;
}

/* Auth Pages */
.auth-page { display: flex; justify-content: center; padding: 2rem 1rem; }
.auth-card { background: #fff; border-radius: 8px; box-shadow: 0 1px 3px rgba(0,0,0,0.1); padding: 2rem; width: 100%; max-width: 420px; }
.auth-card h2 { margin-bottom: 0.25rem; }
.auth-form { display: flex; flex-direction: column; gap: 0.75rem; margin-top: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: 0.25rem; }
.auth-field label { font-size: 0.85rem; font-weight: 500; color: #374151; }
.auth-field input { padding: 0.5rem 0.75rem; border: 1px solid #d1d5db; border-radius: 6px; font-size: 0.95rem; }
.auth-field input:focus { outline: none; border-color: #2563eb; box-shadow: 0 0 0 3px rgba(37,99,235,0.1); }
.auth-field--checkbox { flex-direction: row; align-items: flex-start; gap: 0; }
.auth-checkbox-label { display: flex; align-items: flex-start; gap: 0.5rem; font-size: 0.82rem; color: #4b5563; cursor: pointer; line-height: 1.4; }
.auth-checkbox-label input[type="checkbox"] { margin-top: 0.15rem; flex-shrink: 0; }
.auth-checkbox-label a { color: #2563eb; }
.auth-error { color: #dc2626; font-size: 0.8rem; }
.auth-error-box { background: #fef2f2; border: 1px solid #fecaca; border-radius: 6px; padding: 0.5rem 0.75rem; margin-bottom: 0.5rem; color: #991b1b; font-size: 0.85rem; }
.auth-help { color: #6b7280; font-size: 0.75rem; }
.auth-alt { text-align: center; margin-top: 1rem; font-size: 0.85rem; color: #6b7280; }

/* Dashboard */
.session-list { display: flex; flex-direction: column; gap: 0.5rem; }
.session-card { display: flex; justify-content: space-between; align-items: center; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; padding: 1rem 1.25rem; text-decoration: none; color: inherit; transition: border-color 0.15s; }
.session-card:hover { border-color: #2563eb; text-decoration: none; }
.session-card-main { display: flex; flex-direction: column; gap: 0.15rem; }
.session-card-label { font-weight: 500; color: #1a1a2e; }
.session-card-meta { font-size: 0.8rem; color: #6b7280; }
.session-card-right { display: flex; align-items: center; gap: 0.5rem; }
.session-card-status { font-size: 0.75rem; padding: 0.15rem 0.5rem; border-radius: 99px; background: #f3f4f6; color: #6b7280; }
.session-card-status--complete { background: #ecfdf5; color: #059669; }
.session-card-status--analyzing { background: #eff6ff; color: #2563eb; }
.session-card-badge { font-size: 0.7rem; padding: 0.15rem 0.4rem; border-radius: 99px; background: #dbeafe; color: #1d4ed8; font-weight: 500; }

/* Footer */
.footer {
    margin-top: 3rem;
    padding: 1.5rem 0;
    border-top: 1px solid #e5e7eb;
    text-align: center;
    font-size: 0.8rem;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 0.5rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    background: #fff;
    color: #374151;
    font-size: 0.9rem;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.15s;
}
.btn:hover { background: #f3f4f6; text-decoration: none; }
.btn-primary {
    background: #2563eb;
    color: #fff;
    border-color: #2563eb;
}
.btn-primary:hover { background: #1d4ed8; }
.btn-lg { padding: 0.75rem 1.5rem; font-size: 1rem; }
.btn-outline { background: transparent; }
.btn-xs { padding: 0.2rem 0.5rem; font-size: 0.75rem; }

/* Badges */
.badge {
    display: inline-block;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-success { background: #dcfce7; color: #166534; }
.badge-info { background: #dbeafe; color: #1e40af; }
.badge-error { background: #fee2e2; color: #991b1b; }
.badge-muted { background: #f3f4f6; color: #6b7280; }
.badge-room {
    background: #ede9fe;
    color: #5b21b6;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 500;
}
.badge-quality {
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
}
.badge-quality--5 { background: #dcfce7; color: #166534; }
.badge-quality--4 { background: #d1fae5; color: #065f46; }
.badge-quality--3 { background: #fef9c3; color: #854d0e; }
.badge-quality--2 { background: #fed7aa; color: #9a3412; }
.badge-quality--1 { background: #fee2e2; color: #991b1b; }

/* Messages */
.messages { margin-bottom: 1rem; }
.message {
    padding: 0.75rem 1rem;
    border-radius: 6px;
    margin-bottom: 0.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.message-success { background: #dcfce7; color: #166534; }
.message-error { background: #fee2e2; color: #991b1b; }
.message-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    color: inherit;
    opacity: 0.6;
}

/* Landing */
.landing { padding: 2rem 0; max-width: 960px; margin: 0 auto; }

.hero {
    text-align: center;
    padding: 3rem 1rem;
}
.hero h1 {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.2;
}
.hero-sub {
    font-size: 1.1rem;
    color: #4b5563;
    max-width: 600px;
    margin: 0 auto 2rem;
}
.hero-form {
    display: flex;
    gap: 0.5rem;
    max-width: 500px;
    margin: 0 auto;
    flex-wrap: wrap;
    justify-content: center;
}
.hero-input {
    flex: 1;
    min-width: 200px;
    padding: 0.75rem 1rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 1rem;
}
/* Session Type Picker */
.session-type-picker {
    display: flex;
    gap: 0.5rem;
}
.type-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.15rem;
    padding: 0.65rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    flex: 1;
    transition: border-color 0.15s, background 0.15s;
    text-align: center;
    min-width: 160px;
}
.type-option:hover { border-color: #93c5fd; }
.type-option--selected { border-color: #2563eb; background: #eff6ff; }
.type-option input[type="radio"] { display: none; }
.type-option-title { font-weight: 600; font-size: 0.9rem; color: #1a1a2e; }
.type-option-desc { font-size: 0.75rem; color: #6b7280; }

/* Landing page type cards — 2x2 grid */
.landing-type-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.landing-type-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1.25rem 1rem;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
    gap: 0.35rem;
}
.landing-type-card:hover { border-color: #93c5fd; box-shadow: 0 2px 8px rgba(37, 99, 235, 0.08); }
.landing-type-card--selected { border-color: #2563eb; background: #eff6ff; box-shadow: 0 2px 12px rgba(37, 99, 235, 0.12); }
.landing-type-card--static { cursor: default; }
.landing-type-card--static:hover { border-color: #e5e7eb; box-shadow: none; }
.landing-type-card input[type="radio"] { display: none; }
.landing-type-icon { font-size: 1.5rem; line-height: 1; margin-bottom: 0.15rem; }
.landing-type-title { font-weight: 700; font-size: 0.95rem; color: #1a1a2e; }
.landing-type-desc { font-size: 0.78rem; color: #6b7280; line-height: 1.35; }

/* New Session page */
.new-session-page {
    max-width: 580px;
    margin: 2rem auto;
    padding: 0 1rem;
}
.new-session-page h2 { text-align: center; }
.new-session-form { margin-top: 1rem; }
.new-session-address { margin: 1.25rem 0; }
.new-session-address label { display: block; font-weight: 600; font-size: 0.9rem; margin-bottom: 0.35rem; color: #1a1a2e; }
.new-session-input {
    width: 100%;
    padding: 0.65rem 0.75rem;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.15s;
    box-sizing: border-box;
}
.new-session-input:focus { outline: none; border-color: #2563eb; }

.hero-note {
    margin-top: 0.75rem;
    font-size: 0.85rem;
    color: #9ca3af;
}

/* Landing — Use Cases (horizontal list, not grid) */
.landing-use-cases {
    padding: 2rem 1rem;
}
.landing-use-case-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    max-width: 700px;
    margin: 0 auto;
}
.landing-use-case {
    padding: 1rem 1.25rem;
    border-left: 3px solid #2563eb;
    background: #f9fafb;
    border-radius: 0 8px 8px 0;
}
.landing-use-case-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.35rem;
}
.landing-use-case-icon {
    font-size: 1.1rem;
}
.landing-use-case-header strong {
    font-size: 0.9rem;
    color: #1a1a2e;
}
.landing-use-case p {
    font-size: 0.82rem;
    color: #6b7280;
    line-height: 1.4;
    margin: 0;
}

/* Landing — Beta callout */
.landing-beta {
    text-align: center;
    padding: 2rem 1rem;
    margin-top: 1rem;
    border-top: 1px solid #e5e7eb;
}
.landing-beta p {
    font-size: 1rem;
    color: #374151;
    margin-bottom: 1rem;
}

/* How It Works */
.how-it-works {
    padding: 2rem 1rem;
}
.how-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 1.5rem;
}
.how-step {
    text-align: center;
    padding: 1rem;
}
.how-step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: #2563eb;
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
}
.how-step h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
}
.how-step p {
    font-size: 0.9rem;
    color: #6b7280;
}

/* Demo Preview */
.demo-preview {
    padding: 2rem 1rem;
}
.demo-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 1rem;
}
.demo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}
.demo-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
}
.demo-card-body {
    padding: 1rem;
}
.demo-card-caption {
    font-size: 0.85rem;
    color: #374151;
    font-style: italic;
    margin-bottom: 0.75rem;
    line-height: 1.4;
}
.demo-card-features {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}
.demo-tag {
    font-size: 0.7rem;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    font-weight: 500;
}
.demo-tag--good { background: #dcfce7; color: #166534; }
.demo-tag--warn { background: #fef9c3; color: #854d0e; }

/* Features Grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding: 2rem 1rem;
}
.feature-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}
.feature-card h3 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}
.feature-card p {
    color: #6b7280;
    font-size: 0.9rem;
}

/* Pricing */
.pricing {
    text-align: center;
    padding: 2rem 1rem;
}
.pricing h2 {
    font-size: 1.5rem;
    margin-bottom: 1.5rem;
}
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 1rem;
    max-width: 800px;
    margin: 0 auto;
}
.pricing-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    position: relative;
}
.pricing-card--popular {
    border-color: #2563eb;
    box-shadow: 0 0 0 1px #2563eb;
}
.pricing-badge {
    position: absolute;
    top: -0.75rem;
    left: 50%;
    transform: translateX(-50%);
    background: #2563eb;
    color: #fff;
    padding: 0.2rem 0.75rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
}
.pricing-card h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.pricing-card .btn { margin-top: auto; }
.pricing-price {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 0.25rem;
}

/* FAQ */
.faq-section {
    max-width: 640px;
    margin: 0 auto;
    padding: 2rem 1rem;
}
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}
.faq-item {
    border-bottom: 1px solid #e5e7eb;
}
.faq-item:first-child {
    border-top: 1px solid #e5e7eb;
}
.faq-q {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.85rem 0;
    background: none;
    border: none;
    font-size: 0.95rem;
    font-weight: 500;
    color: #1e293b;
    cursor: pointer;
    text-align: left;
}
.faq-q:hover { color: #2563eb; }
.faq-toggle {
    font-size: 1.2rem;
    color: #9ca3af;
    flex-shrink: 0;
    margin-left: 1rem;
}
.faq-a {
    padding: 0 0 0.85rem;
    font-size: 0.88rem;
    color: #4b5563;
    line-height: 1.55;
}

/* Workspace */
.workspace { padding: 1.5rem 0; max-width: 960px; margin: 0 auto; }
.workspace-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 1rem;
}
.workspace-header h2 { font-size: 1.25rem; }
.workspace-meta { font-size: 0.85rem; color: #6b7280; }

/* Tabs */
.tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #e5e7eb;
    margin-bottom: 1.5rem;
}
.tab {
    padding: 0.5rem 1rem;
    color: #6b7280;
    font-size: 0.9rem;
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
}
.tab:hover { color: #374151; text-decoration: none; }
.tab--active {
    color: #2563eb;
    border-bottom-color: #2563eb;
    font-weight: 500;
}

/* Step Indicator */
.steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
}
.step {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    color: #9ca3af;
    font-size: 0.85rem;
}
.step-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #e5e7eb;
    color: #9ca3af;
    font-size: 0.75rem;
    font-weight: 600;
}
.step--active { color: #2563eb; font-weight: 500; }
.step--active .step-num { background: #2563eb; color: #fff; }
.step--done { color: #059669; }
.step--done .step-num { background: #dcfce7; color: #059669; }
.step-arrow { color: #d1d5db; font-size: 0.9rem; }

/* Upload Progress */
.upload-progress-bar-wrap {
    width: 100%;
    height: 8px;
    background: #e5e7eb;
    border-radius: 4px;
    overflow: hidden;
    margin-bottom: 0.5rem;
}
.upload-progress-bar {
    height: 100%;
    background: #2563eb;
    border-radius: 4px;
    transition: width 0.3s ease;
}
.upload-progress-text {
    font-size: 0.85rem;
    color: #374151;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    flex-wrap: wrap;
}
.upload-cancel-btn {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    padding: 0.2rem 0.75rem;
    font-size: 0.8rem;
    color: #6b7280;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}
.upload-cancel-btn:hover {
    border-color: #dc2626;
    color: #dc2626;
    margin-bottom: 0.5rem;
}

/* Upload Zone */
.upload-zone {
    border: 2px dashed #d1d5db;
    border-radius: 8px;
    padding: 2rem;
    text-align: center;
    margin-bottom: 1.5rem;
    transition: border-color 0.15s, background 0.15s;
}
.upload-zone--active {
    border-color: #2563eb;
    background: #eff6ff;
}
.upload-browse {
    color: #2563eb;
    cursor: pointer;
    text-decoration: underline;
}
.upload-file-list {
    margin-top: 0.75rem;
    text-align: left;
    max-height: 120px;
    overflow-y: auto;
    scroll-behavior: smooth;
}
.upload-file {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.25rem 0;
    font-size: 0.85rem;
}
.upload-filename {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 250px;
}

/* Photo Grid */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.photo-grid-empty { grid-column: 1 / -1; text-align: center; padding: 2rem; }

/* Photo Card */
.photo-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    position: relative;
}
.photo-card-img-wrap { position: relative; }
.photo-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.photo-card-quality {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.4rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 600;
    background: rgba(255,255,255,0.9);
}
.photo-card-quality--5 { color: #166534; }
.photo-card-quality--4 { color: #065f46; }
.photo-card-quality--3 { color: #854d0e; }
.photo-card-quality--2 { color: #9a3412; }
.photo-card-quality--1 { color: #991b1b; }

.photo-card-info {
    padding: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    position: relative;
}
.photo-card-room {
    font-size: 0.8rem;
    font-weight: 500;
    color: #5b21b6;
}
.photo-card-filename {
    font-size: 0.7rem;
    color: #9ca3af;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.photo-card-delete {
    position: absolute;
    top: 0.25rem;
    right: 0.25rem;
    background: none;
    border: none;
    color: #9ca3af;
    font-size: 1.1rem;
    cursor: pointer;
    line-height: 1;
    padding: 0.2rem;
}
.photo-card-delete:hover { color: #ef4444; }

.photo-card--pending {
    opacity: 0.6;
    border-style: dashed;
}
.photo-card--pending .photo-card-img {
    filter: saturate(0.3);
    transition: filter 0.5s, opacity 0.5s;
}

/* Analysis */
/* Analyze card — the pre-analysis CTA */
.analyze-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    margin-bottom: 1.5rem;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.analyze-card-header {
    padding: 0.85rem 1.25rem;
    border-bottom: 1px solid #f3f4f6;
    background: #fafafa;
}
.analyze-card-count {
    font-weight: 600;
    font-size: 0.95rem;
    color: #1e293b;
}
.analyze-card-hint {
    display: block;
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 0.15rem;
}
.analyze-card-body {
    padding: 1rem 1.25rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.85rem;
}
.analyze-card-input {
    padding: 0.55rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.9rem;
    width: 100%;
}
.analyze-card-input:focus {
    outline: none;
    border-color: #475569;
    box-shadow: 0 0 0 2px rgba(71,85,105,0.1);
}
.analyze-card-btn {
    width: 100%;
}

.analysis-bar {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1rem 1.5rem;
    margin-bottom: 1.5rem;
}
.analysis-bar--generating {
    border-color: #2563eb;
    background: #eff6ff;
}
.analysis-bar--error {
    border-color: #fca5a5;
    background: #fef2f2;
    color: #991b1b;
}
.analysis-bar-content {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    justify-content: space-between;
    flex-wrap: wrap;
}

/* Ready-to-analyze fallback card */
.ready-to-analyze {
    background: #f0fdf4;
    border: 2px solid #86efac;
    border-radius: 12px;
    padding: 2rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.ready-to-analyze-content h3 {
    margin: 0.5rem 0 0.25rem;
    font-size: 1.15rem;
}
.ready-to-analyze-icon {
    font-size: 2rem;
}

/* Thumbnail progress strip during analysis */
.analysis-thumbstrip {
    display: flex;
    gap: 0.35rem;
    flex-wrap: wrap;
    justify-content: center;
}
.analysis-thumb {
    width: 48px;
    height: 48px;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    border: 2px solid #d1d5db;
    transition: border-color 0.3s, opacity 0.3s;
}
.analysis-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.analysis-thumb--uploading {
    opacity: 0.5;
    border-color: #2563eb;
    animation: thumb-pulse 1.2s ease-in-out infinite;
}
@keyframes thumb-pulse {
    0%, 100% { opacity: 0.5; }
    50% { opacity: 0.8; }
}
.analysis-thumb--uploaded {
    opacity: 1;
    filter: none;
    border-color: #d1d5db;
}
.analysis-thumb--pending {
    opacity: 0.4;
    filter: grayscale(1);
}
.analysis-thumb--done {
    opacity: 1;
    filter: none;
    border-color: #059669;
}
.analysis-thumb--error {
    opacity: 0.5;
    border-color: #ef4444;
}
.thumb-delete-btn {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: rgba(239,68,68,0.9);
    color: #fff;
    border: none;
    font-size: 0.65rem;
    line-height: 1;
    cursor: pointer;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 0;
    z-index: 1;
}
.analysis-thumb:hover .thumb-delete-btn { display: flex; }
.analysis-thumb-check {
    position: absolute;
    bottom: 1px;
    right: 1px;
    background: #059669;
    color: #fff;
    font-size: 0.55rem;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

.analysis-results {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.analysis-summary h3 { font-size: 1.1rem; margin-bottom: 0.5rem; }
.analysis-summary p { color: #4b5563; margin-bottom: 1rem; }
.analysis-section { margin-bottom: 1rem; }
.analysis-section h4 {
    font-size: 0.9rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: #374151;
}
.analysis-list {
    list-style: none;
    padding: 0;
}
.analysis-list li {
    padding: 0.25rem 0 0.25rem 1.25rem;
    position: relative;
    font-size: 0.9rem;
    color: #4b5563;
}
.analysis-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0.6rem;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #9ca3af;
}
.analysis-list--good li::before { background: #22c55e; }
.analysis-list--warn li::before { background: #f59e0b; }
.analysis-actions {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    flex-wrap: wrap;
}

/* Scorecard */
.scorecard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}
.scorecard-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}
.scorecard-header h3 {
    font-size: 1.1rem;
    margin: 0;
}
.scorecard-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.scorecard-stat {
    text-align: center;
    padding: 0.75rem 0.5rem;
    background: #f9fafb;
    border-radius: 6px;
}
.scorecard-stat-value {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1a2e;
    line-height: 1.2;
}
.scorecard-stat-value small {
    font-size: 0.85rem;
    font-weight: 500;
    color: #6b7280;
}
.scorecard-stat-value--good { color: #059669; }
.scorecard-stat-value--warn { color: #d97706; }
.scorecard-stat-label {
    display: block;
    font-size: 0.75rem;
    color: #6b7280;
    margin-top: 0.15rem;
}
.scorecard-rooms {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
}

/* Paywall */
.paywall {
    background: linear-gradient(135deg, #eff6ff 0%, #f5f3ff 100%);
    border: 2px solid #2563eb;
    border-radius: 8px;
    padding: 2rem 1.5rem;
    margin-bottom: 1.5rem;
    text-align: center;
}
.paywall h3 {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}
.paywall p {
    color: #4b5563;
}

/* Spinner */
.spinner {
    display: inline-block;
    width: 18px;
    height: 18px;
    border: 2px solid #93c5fd;
    border-top-color: #2563eb;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Review Toolbar */
.review-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

/* Feed Cards */
.feed {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.fcard {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.fcard:hover { border-color: #93c5fd; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.fcard--ghost { opacity: 0.4; background: #eff6ff; }

.fcard-img-wrap { position: relative; }
.fcard-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.fcard-order {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    background: rgba(0,0,0,0.55);
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}
.fcard-quality {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    font-size: 0.7rem;
    font-weight: 700;
    background: rgba(255,255,255,0.92);
}
.fcard-quality--5 { color: #166534; }
.fcard-quality--4 { color: #065f46; }
.fcard-quality--3 { color: #854d0e; }
.fcard-quality--2 { color: #9a3412; }
.fcard-quality--1 { color: #991b1b; }

.fcard-info {
    padding: 0.5rem 0.65rem;
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 0.5rem;
}
.fcard-room {
    font-size: 0.85rem;
    font-weight: 600;
    color: #5b21b6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fcard-meta {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    min-width: 0;
    flex-shrink: 1;
    overflow: hidden;
}
.fcard-features {
    font-size: 0.7rem;
    color: #6b7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.fcard-issue-badge {
    font-size: 0.7rem;
    font-weight: 600;
    color: #d97706;
    white-space: nowrap;
}

.fcard-expand-hint {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.35rem 0;
    text-align: center;
    font-size: 0.7rem;
    font-weight: 500;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.5));
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}
.fcard:hover .fcard-expand-hint { opacity: 1; }
/* Show hint on first card always until first click */
.fcard:first-child .fcard-expand-hint { opacity: 1; }
.fcard:first-child:hover .fcard-expand-hint { opacity: 1; }
.feed--clicked .fcard:first-child .fcard-expand-hint { opacity: 0; }
.feed--clicked .fcard:first-child:hover .fcard-expand-hint { opacity: 1; }

/* Modal */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}
.modal-card {
    background: #fff;
    border-radius: 10px;
    width: 100%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.modal-layout {
    display: flex;
    max-height: 90vh;
}
.modal-layout .modal-img-wrap {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    background: #000;
}
.modal-layout .modal-img {
    width: 100%;
    max-height: 90vh;
    object-fit: contain;
}
.modal-sidebar {
    width: 280px;
    flex-shrink: 0;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e5e7eb;
    overflow-y: auto;
}
.modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-bottom: 1px solid #e5e7eb;
    background: #f9fafb;
}
.modal-title {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.9rem;
}
.modal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.6rem 0.75rem;
    border-top: 1px solid #e5e7eb;
    margin-top: auto;
}
.modal-close {
    background: none;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-size: 1.1rem;
    cursor: pointer;
    color: #6b7280;
    width: 28px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.modal-close:hover { background: #fee2e2; color: #991b1b; border-color: #fca5a5; }

.modal-img-wrap {
    position: relative;
}
.modal-img {
    width: 100%;
    display: block;
}
/* Lightbox sidebar sections */
.modal-caption-row {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}
.modal-caption-text {
    font-size: 0.9rem;
    color: #374151;
    line-height: 1.4;
    flex: 1;
    margin: 0;
}
.modal-caption-copy {
    font-size: 0.65rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: #6b7280;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.2rem 0.5rem;
    cursor: pointer;
    flex-shrink: 0;
    margin-top: 0.15rem;
}
.modal-caption-copy:hover { background: #e5e7eb; }
.modal-section { }
.modal-section-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.3rem;
}
.modal-tag {
    font-size: 0.72rem;
    font-weight: 500;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    display: inline-block;
}
.modal-tag--good {
    background: #dcfce7;
    color: #14532d;
}
.modal-tag--warn {
    background: #fef3c7;
    color: #78350f;
}
/* Buyer's First Impression */
.impression-card {
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    padding: 1rem 1.25rem;
    margin-bottom: 1rem;
}
.impression-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
}
.impression-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}
.impression-badge {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fde68a;
    color: #92400e;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
}
.impression-text {
    font-size: 0.95rem;
    line-height: 1.55;
    color: #78350f;
    font-style: italic;
    margin: 0;
}
.modal-body {
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}
.modal-field label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    display: block;
    margin-bottom: 0.15rem;
}
.label--warn { color: #d97706 !important; }
.modal-field input {
    width: 100%;
    padding: 0.4rem 0.55rem;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    font-size: 0.9rem;
}
.modal-field input:focus {
    outline: none;
    border-color: #475569;
    box-shadow: 0 0 0 2px rgba(71,85,105,0.1);
}
.modal-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.25rem;
}
.modal-recs {
    padding: 0.4rem 0.55rem;
    background: #f9fafb;
    border-radius: 6px;
}
.modal-actions {
    display: flex;
    gap: 0.4rem;
    padding-top: 0.4rem;
    border-top: 1px solid #f3f4f6;
}

/* Demo card with photo */
.demo-card-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}

/* Mobile */
@media (max-width: 640px) {
    .hero { padding: 2rem 0.5rem; }
    .hero h1 { font-size: 1.5rem; }
    .hero-sub { font-size: 0.95rem; }
    .hero-form { flex-direction: column; }
    .hero-input { min-width: unset; }
    .session-type-picker { flex-direction: column; gap: 0.5rem; width: 100%; }
    .type-option { min-width: unset; }
    .landing-type-grid { grid-template-columns: 1fr; max-width: 100%; }
    .landing-use-case-list { grid-template-columns: 1fr; }
    .photo-grid { grid-template-columns: repeat(2, 1fr); }
    .feed { grid-template-columns: 1fr; }
    .fcard-img-wrap { max-height: 250px; }
    .modal-overlay { padding: 0; align-items: flex-end; }
    .modal-card { max-width: 100%; border-radius: 10px 10px 0 0; max-height: 85vh; overflow-y: auto; }
    .modal-layout { flex-direction: column; max-height: none; }
    .modal-sidebar { width: 100%; border-left: none; border-top: 1px solid #e5e7eb; }
    .modal-layout .modal-img { max-height: 50vh; }
    .workspace-header { flex-direction: column; gap: 0.25rem; }
    .steps { gap: 0.3rem; padding: 0.75rem 0.5rem; }
    .step-label { font-size: 0.75rem; }
    .step-arrow { font-size: 0.75rem; }
    .upload-zone { padding: 1.25rem; }
    .how-steps { grid-template-columns: 1fr; gap: 1rem; }
    .demo-cards { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; gap: 1rem; }
    .pricing-grid { grid-template-columns: repeat(2, 1fr); }
    .analysis-bar-content { flex-direction: column; gap: 0.75rem; }
    .scorecard-stats { flex-wrap: wrap; }
    .scorecard-stat { min-width: 45%; }
    .review-toolbar { flex-direction: column; gap: 0.5rem; }
    .container { padding: 0 0.75rem; }
}

@media (max-width: 380px) {
    .photo-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .steps { flex-wrap: wrap; justify-content: center; }
}

/* Review Page — Checklist Layout */
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 0.5rem;
    gap: 0.5rem;
}
.review-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}
.review-stats-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 0.25rem;
    flex-wrap: wrap;
}
.review-stat {
    font-size: 0.8rem;
    color: #6b7280;
    font-weight: 500;
}
.review-stat--warn { color: #d97706; }
.review-actions-top {
    flex-shrink: 0;
}
/* Description Card — the hero deliverable */
.description-card {
    background: linear-gradient(135deg, #f8fafc 0%, #eff6ff 100%);
    border: 1px solid #bfdbfe;
    border-radius: 10px;
    padding: 1.25rem;
    margin-bottom: 1rem;
}
.description-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}
.description-card-header h3 {
    font-size: 0.85rem;
    font-weight: 600;
    color: #1e40af;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0;
}
.description-card-text {
    font-size: 1rem;
    line-height: 1.6;
    color: #1a1a2e;
    margin: 0 0 0.75rem;
}
.description-highlights {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    align-items: center;
}
.description-highlights-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    margin-right: 0.25rem;
    width: 100%;
}
.highlight-tag {
    font-size: 0.75rem;
    padding: 0.2rem 0.6rem;
    border-radius: 99px;
    background: #fff;
    border: 1px solid #93c5fd;
    color: #1e40af;
    font-weight: 500;
}

/* Insight Row — hero shot + missing rooms */
/* Room coverage strip */
.coverage-strip {
    display: flex;
    align-items: baseline;
    gap: 0.6rem;
    margin-bottom: 1rem;
    padding: 0.6rem 0.85rem;
    background: #fafafa;
    border: 1px solid #f0f0f0;
    border-radius: 8px;
    flex-wrap: wrap;
}
.coverage-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #9ca3af;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    white-space: nowrap;
}
.coverage-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem;
}
.coverage-tag {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.72rem;
    padding: 0.12rem 0.45rem;
    background: #f0fdf4;
    color: #166534;
    border-radius: 9999px;
    font-weight: 500;
}
.coverage-tag svg {
    flex-shrink: 0;
}

.insight-row {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 1rem;
}
.insight-card {
    flex: 1;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 0.75rem 1rem;
}
.insight-card--subtle {
    background: #fefce8;
    border-color: #fde68a;
}
.insight-label {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: 0.2rem;
}
.insight-value {
    font-size: 0.9rem;
    color: #1a1a2e;
    font-weight: 500;
}
.insight-card--subtle .insight-label { color: #92400e; }
.insight-card--subtle .insight-value { color: #78350f; }

/* Checklist Sections */
.checklist-section {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 1rem;
    overflow: hidden;
}
.checklist-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid #f3f4f6;
}
.checklist-section-header h3 {
    font-size: 0.95rem;
    font-weight: 600;
    margin: 0;
}
.checklist-count {
    font-size: 0.75rem;
    color: #6b7280;
    background: #f3f4f6;
    padding: 0.15rem 0.5rem;
    border-radius: 99px;
}

/* Caption List */
.caption-list {
    max-height: 400px;
    overflow-y: auto;
}
.caption-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.5rem 1rem;
    border-bottom: 1px solid #f3f4f6;
    cursor: pointer;
    transition: background 0.1s;
}
.caption-row:last-child { border-bottom: none; }
.caption-row:hover { background: #f9fafb; }
.caption-thumb {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}
.caption-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
}
.caption-room {
    font-size: 0.75rem;
    font-weight: 600;
    color: #5b21b6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.caption-value {
    font-size: 0.85rem;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.caption-copy-btn {
    flex-shrink: 0;
    background: none;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    padding: 0.3rem;
    cursor: pointer;
    color: #9ca3af;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s, border-color 0.15s;
}
.caption-copy-btn:hover { color: #2563eb; border-color: #93c5fd; }

/* Action Items */
.action-list {
    padding: 0.25rem 0;
}
.action-item {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    cursor: pointer;
    transition: background 0.1s;
    font-size: 0.85rem;
    color: #374151;
    line-height: 1.4;
}
.action-item:hover { background: #f9fafb; }
.action-check {
    margin-top: 0.2rem;
    flex-shrink: 0;
    accent-color: #2563eb;
}
.action-check:checked + .action-icon + .action-text {
    text-decoration: line-through;
    color: #9ca3af;
}
.action-icon {
    flex-shrink: 0;
    font-size: 0.8rem;
    width: 1.2rem;
    text-align: center;
}
.action-item--issue .action-icon { color: #d97706; }
.action-item--recommendation .action-icon { color: #2563eb; }

/* Problem Photos */
.problem-grid {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.problem-card {
    flex-shrink: 0;
    width: 140px;
    cursor: pointer;
    border-radius: 6px;
    overflow: hidden;
    border: 1px solid #fca5a5;
    background: #fff;
    transition: box-shadow 0.15s;
}
.problem-card:hover { box-shadow: 0 2px 8px rgba(239,68,68,0.15); }
.problem-img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    display: block;
}
.problem-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.3rem 0.5rem 0;
}
.problem-room {
    font-size: 0.7rem;
    font-weight: 600;
    color: #374151;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.problem-score {
    font-size: 0.65rem;
    font-weight: 700;
}
.problem-reason {
    display: block;
    padding: 0.15rem 0.5rem 0.4rem;
    font-size: 0.7rem;
    color: #991b1b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Review Grid — compact photo cards */
.review-grid {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    padding: 0.75rem;
}
.rgcard {
    display: flex;
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.15s, border-color 0.15s;
}
.rgcard:hover { border-color: #93c5fd; box-shadow: 0 1px 4px rgba(0,0,0,0.06); }
.rgcard--weak { border-color: #fed7aa; }
.rgcard--weak:hover { border-color: #f59e0b; }
.rgcard-img-wrap {
    position: relative;
    flex-shrink: 0;
    width: 130px;
}
.rgcard-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.rgcard-quality {
    position: absolute;
    top: 0.35rem;
    right: 0.35rem;
    padding: 0.1rem 0.35rem;
    border-radius: 3px;
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(255,255,255,0.92);
}
.rgcard-quality--5 { color: #166534; }
.rgcard-quality--4 { color: #065f46; }
.rgcard-quality--3 { color: #854d0e; }
.rgcard-quality--2 { color: #9a3412; }
.rgcard-quality--1 { color: #991b1b; }
.rgcard-lead {
    position: absolute;
    top: 0.35rem;
    left: 0.35rem;
    padding: 0.1rem 0.4rem;
    border-radius: 3px;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    background: #fbbf24;
    color: #78350f;
}
.rgcard-info {
    padding: 0.5rem 0.65rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    flex: 1;
    min-width: 0;
    justify-content: center;
}
.rgcard-room {
    font-size: 0.75rem;
    font-weight: 600;
    color: #1e293b;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.rgcard-caption {
    font-size: 0.7rem;
    color: #6b7280;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.rgcard-counts {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.25rem;
    font-size: 0.7rem;
}
.rgcard-count {
    font-weight: 500;
}
.rgcard-count--good {
    color: #166534;
}
.rgcard-count--good::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
    margin-right: 0.25rem;
    vertical-align: middle;
}
.rgcard-count--warn {
    color: #92400e;
}
.rgcard-count--warn::before {
    content: '';
    display: inline-block;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
    margin-right: 0.25rem;
    vertical-align: middle;
}
.rgcard-count--view {
    color: #6b7280;
    margin-left: auto;
    opacity: 0;
    transition: opacity 0.15s;
}
.rgcard:hover .rgcard-count--view {
    opacity: 1;
}
/* Tap hint overlay on photo cards (legacy — kept for reference) */
.rgcard-tap-hint { display: none; }
.rgcard-tap-hint-legacy {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.3rem 0;
    text-align: center;
    font-size: 0.65rem;
    font-weight: 600;
    color: #fff;
    background: linear-gradient(transparent, rgba(0,0,0,0.55));
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    opacity: 0;
    transition: opacity 0.2s;
}
.rgcard:hover .rgcard-tap-hint { opacity: 1; }
/* Always show on first card until grid is clicked */
.review-grid:not(.grid--clicked) .rgcard:first-child .rgcard-tap-hint { opacity: 1; }
.checklist-hint {
    font-size: 0.75rem;
    color: #2563eb;
    font-weight: 500;
}
.grid-legend {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.grid-legend-item {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.7rem;
    color: #9ca3af;
}

/* Review Bottom Bar */
.review-bottom-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem;
    padding: 0.75rem 0;
    margin-top: 0.5rem;
    border-top: 1px solid #e5e7eb;
}
.review-bottom-left {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    flex-wrap: wrap;
}
.review-bottom-right {
    display: flex;
    gap: 0.75rem;
    align-items: center;
}
.review-retention {
    font-size: 0.75rem;
    color: #6b7280;
}

@media (max-width: 640px) {
    .review-header { flex-direction: column; }
    .review-grid { gap: 0.4rem; padding: 0.5rem; }
    .rgcard-img-wrap { width: 100px; }
    .caption-thumb { width: 36px; height: 36px; }
    .caption-value { font-size: 0.8rem; }
    .problem-card { width: 120px; }
    .insight-row { flex-direction: column; gap: 0.5rem; }
    .description-card { padding: 1rem; }
    .description-card-text { font-size: 0.95rem; }
    .review-bottom-bar { flex-direction: column; align-items: flex-start; }
    .review-bottom-right { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
}
@media (max-width: 380px) {
    .rgcard-img-wrap { width: 80px; }
}

/* Utility */
[x-cloak] { display: none !important; }
