/* ============================================
   IPC Map Feature Styles (v6 - 3-Column Full Viewport)
   ============================================ */

/* Page Level Settings to prevent scroll */
html, body.map-page-body { margin: 0; padding: 0; height: 100%; width: 100%; overflow: hidden; background-color: var(--bg-color, #fbfaf8); font-family: var(--font-sans, 'Inter', sans-serif); color: var(--text-color, #121212); position: fixed; }
.map-page-body .navbar { position: fixed; top: 0; left: 0; width: 100%; height: 70px; z-index: 9999; } /* Assuming navbar height is around 70px */

/* 3-Column App Container */
.map-app { display: flex; width: 100vw; height: calc(100vh - 70px); margin-top: 70px; overflow: hidden; }

/* =========================================
   Left: Sidebar (Controls & List)
   ========================================= */
.map-sidebar { flex: 0 0 340px; background: #fff; display: flex; flex-direction: column; padding: 1.8rem; border-right: 1px solid #f0eeea; overflow-y: auto; z-index: 10; box-shadow: 4px 0 15px rgba(0,0,0,0.02); }

.sidebar-header { margin-bottom: 1.5rem; }
.sidebar-header .tag { display: block; font-family: 'Lora', serif; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 2px; color: var(--accent-color, #003366); margin-bottom: 0.5rem; font-weight: 700; }
.sidebar-header h2 { font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1.5rem; margin: 0; line-height: 1.3; }

.map-controls h3 { font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1rem; margin: 0 0 0.5rem 0; color: #1a1a1a; }
.metric-buttons { display: flex; flex-direction: column; gap: 0.35rem; }
.metric-btn { display: flex; justify-content: space-between; align-items: center; padding: 0.6rem 0.8rem; text-align: left; background: transparent; border: 1px solid #e8e5e0; border-radius: 4px; cursor: pointer; font-size: 0.85rem; font-family: var(--font-sans, 'Inter', sans-serif); transition: all 0.2s ease; color: #555; }
.metric-btn:hover { border-color: var(--accent-color, #003366); color: var(--accent-color, #003366); background: rgba(0, 51, 102, 0.02); }
.metric-btn.active { background-color: var(--accent-color, #003366); color: #fff; border-color: var(--accent-color, #003366); font-weight: 600; }

.info-icon { display: inline-flex; justify-content: center; align-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1px solid currentColor; font-size: 0.6rem; opacity: 0.6; cursor: help; margin-left: auto; }
.metric-btn.active .info-icon { opacity: 0.9; border-color: #fff; }

.legend-section { margin-top: 1rem; }
.legend-bar { display: flex; height: 6px; border-radius: 3px; overflow: hidden; }
.legend-bar span { flex: 1; }
.legend-labels { display: flex; justify-content: space-between; font-size: 0.7rem; color: #aaa; margin-top: 0.3rem; }

.sidebar-divider { border: none; border-top: 1px solid #f0eeea; margin: 1.5rem 0; }

.city-picker { display: flex; flex-direction: column; gap: 0.5rem; flex: 1; overflow: hidden; min-height: 250px; }
.city-search-box { position: relative; flex-shrink: 0; }
.search-icon { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: #999; }
#city-search-input { width: 100%; padding: 0.5rem 0.5rem 0.5rem 2rem; border: 1px solid #e8e5e0; border-radius: 4px; font-size: 0.8rem; background: #faf9f7; outline: none; }
#city-search-input:focus { border-color: var(--accent-color, #003366); background: #fff; }

.city-list-container { flex: 1; overflow-y: auto; padding-right: 5px; }
.city-list-container::-webkit-scrollbar { width: 4px; }
.city-list-container::-webkit-scrollbar-track { background: #f1f1f1; border-radius: 2px; }
.city-list-container::-webkit-scrollbar-thumb { background: #ccc; border-radius: 2px; }
.city-group-title { font-size: 0.75rem; font-weight: 700; color: var(--accent-color, #003366); letter-spacing: 0.5px; margin: 1.2rem 0 0.5rem 0; padding: 0.4rem 0.6rem; background: rgba(0, 51, 102, 0.03); border-radius: 4px; position: sticky; top: 0; z-index: 2; }
.city-group-title:first-child { margin-top: 0; }
.city-list-item { display: flex; justify-content: space-between; align-items: center; padding: 0.4rem 0.5rem; border-radius: 4px; cursor: pointer; transition: background 0.2s; font-size: 0.8rem; width: 100%; text-align: left; background: transparent; border: none; font-family: inherit; color: inherit; appearance: none; }
.city-list-item:hover, .city-list-item.is-hovered { background: rgba(0, 51, 102, 0.04); }
.city-list-item.selected { background: rgba(0, 51, 102, 0.08); font-weight: 600; color: var(--accent-color, #003366); }
.city-item-name { color: #333; }
.city-item-val { font-family: 'Lora', serif; font-size: 0.75rem; color: #777; }
.city-list-item.selected .city-item-name, .city-list-item.selected .city-item-val { color: var(--accent-color, #003366); }


/* =========================================
   Center: Map
   ========================================= */
.map-center { flex: 1; position: relative; background: #f5f4f1; display: flex; flex-direction: column; min-height: 400px; }
#map-canvas { flex: 1; width: 100%; height: 100%; }
.metric-description { position: absolute; bottom: 15px; left: 15px; right: 15px; margin: 0; z-index: 999; font-size: 0.75rem; color: #666; background: rgba(255,255,255,0.9); backdrop-filter: blur(4px); padding: 0.6rem 0.8rem; border-radius: 4px; border: 1px solid rgba(0,0,0,0.05); pointer-events: none; }

.leaflet-container { background: #f5f4f1 !important; font-family: var(--font-sans, 'Inter', sans-serif) !important; }
.muni-marker { transition: fill-opacity 0.2s, fill 0.3s, stroke-width 0.2s, stroke 0.2s; }
@keyframes pulseRing { 0% { stroke-width: 1; stroke-opacity: 0.8; } 100% { stroke-width: 15; stroke-opacity: 0; } }
.muni-marker.selected-marker { animation: pulseRing 1.5s infinite cubic-bezier(0.215, 0.61, 0.355, 1); }
.municipality-tooltip { background: rgba(255, 255, 255, 0.96) !important; border: 1px solid rgba(0, 0, 0, 0.08) !important; border-radius: 4px !important; padding: 0.4rem 0.7rem !important; font-family: var(--font-sans, 'Inter', sans-serif) !important; font-size: 0.8rem !important; color: var(--text-color, #1a1a1a) !important; box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08) !important; }
.tooltip-name { font-weight: 700; font-family: var(--font-serif, 'Noto Serif JP', serif); }

/* Permanent Labels for Major Cities */
.map-permanent-label { background: transparent !important; border: none !important; box-shadow: none !important; font-family: var(--font-sans, 'Inter', sans-serif) !important; font-size: 0.8rem !important; font-weight: 600 !important; color: #444 !important; text-shadow: 1px 1px 2px rgba(255,255,255,0.9), -1px -1px 2px rgba(255,255,255,0.9), 1px -1px 2px rgba(255,255,255,0.9), -1px 1px 2px rgba(255,255,255,0.9) !important; pointer-events: none; }


/* =========================================
   Right: Detail Panel
   ========================================= */
.detail-panel { flex: 0 0 420px; background: #fff; overflow-y: auto; border-left: 1px solid #f0eeea; z-index: 10; box-shadow: -4px 0 15px rgba(0,0,0,0.02); }

/* Onboarding Initial State */
.info-onboarding { padding: 2rem 1.5rem; display: flex; flex-direction: column; gap: 2rem; height: 100%; }
.onboarding-prompt { text-align: center; margin-top: 2rem; color: #666; }
.onboarding-icon { font-size: 3rem; margin-bottom: 1rem; opacity: 0.5; }
.onboarding-prompt h3 { font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1.2rem; color: #1a1a1a; margin-bottom: 0.5rem; }
.onboarding-prompt p { font-size: 0.9rem; line-height: 1.6; margin: 0; }

.diag-accordion { background: #faf9f7; border: 1px solid var(--accent-color, #003366); border-radius: 8px; overflow: hidden; margin-top: auto; margin-bottom: 2rem; }
.diag-banner { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.2rem; cursor: pointer; list-style: none; font-weight: 600; color: var(--accent-color, #003366); font-size: 0.95rem; }
.diag-banner::-webkit-details-marker { display: none; }
.diag-banner:hover { background: rgba(0, 51, 102, 0.03); }
.diagnostic-content { padding: 1.5rem; border-top: 1px solid #e8e5e0; background: #fff; text-align: center; }
.onboarding-desc { font-size: 0.85rem; color: #666; margin-bottom: 1rem; }
.btn-primary-sm { background: var(--accent-color, #003366); color: #fff; border: none; padding: 0.8rem 1.5rem; border-radius: 30px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: transform 0.2s; }
.btn-primary-sm:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,51,102,0.15); }

.diagnostic-questions { text-align: left; }
.diag-step h4 { font-size: 0.95rem; font-family: var(--font-serif, 'Noto Serif JP', serif); margin-bottom: 1rem; color: #1a1a1a; }
.diag-options { display: flex; flex-direction: column; gap: 0.6rem; }
.diag-btn { background: #fff; border: 1px solid #e0e0e0; padding: 0.8rem 1rem; border-radius: 6px; font-size: 0.85rem; text-align: left; cursor: pointer; color: #444; }
.diag-btn:hover { border-color: var(--accent-color, #003366); background: #faf9f7; color: var(--accent-color, #003366); }

.diagnostic-results { text-align: left; }
.diagnostic-results h4 { font-size: 1.1rem; font-family: var(--font-serif, 'Noto Serif JP', serif); margin-bottom: 1rem; border-bottom: 1px solid #eee; padding-bottom: 0.5rem; }
.diag-result-list { display: flex; flex-direction: column; gap: 0.8rem; margin-bottom: 1.5rem; }
.diag-result-item { background: #faf9f7; border-left: 3px solid var(--accent-color, #003366); padding: 0.8rem; border-radius: 4px; cursor: pointer; transition: transform 0.2s; }
.diag-result-item:hover { transform: translateX(3px); }
.diag-res-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.diag-res-title { font-size: 1rem; font-weight: 700; margin: 0; color: #1a1a1a; }
.diag-res-match { font-size: 0.7rem; font-weight: 600; color: var(--accent-color, #003366); background: rgba(0,51,102,0.1); padding: 0.2rem 0.5rem; border-radius: 10px; }
.diag-res-reason { font-size: 0.75rem; color: #555; margin: 0; line-height: 1.5; }
.btn-text { background: none; border: none; color: #888; text-decoration: underline; font-size: 0.8rem; cursor: pointer; width: 100%; }

/* Detailed Information */
.info-details { padding: 2.5rem 2rem; animation: fadeIn 0.4s ease; }
@keyframes fadeIn { from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }
.details-header { margin-bottom: 1.5rem; }
.detail-title { font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1.6rem; margin: 0 0 0.2rem 0; color: #1a1a1a; }
.detail-subtitle { font-family: 'Lora', serif; font-size: 0.85rem; color: #999; display: block; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 1px; }
.detail-tagline { font-size: 0.95rem; font-weight: 600; color: var(--accent-color, #003366); letter-spacing: 0.5px; }

/* Executive Summary Box */
.detail-summary { margin-bottom: 2rem; padding: 1.2rem 1.5rem; background: #faf9f7; border-left: 3px solid #d4c8b8; border-radius: 0 8px 8px 0; font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 0.95rem; line-height: 1.8; color: #444; }

.metrics-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 2rem; }
.metric-card { background: #fff; border: 1px solid #f0eeea; padding: 1rem; border-radius: 8px; box-shadow: 0 2px 8px rgba(0,0,0,0.02); }
.metric-card-header { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 0.3rem; }
.metric-card-label { font-size: 0.65rem; font-weight: 700; color: #777; text-transform: uppercase; }
.metric-card-val { font-family: 'Lora', serif; font-size: 1rem; font-weight: 700; color: var(--accent-color, #003366); }
.metric-card-interp { font-size: 0.75rem; color: #444; line-height: 1.5; margin: 0; }

.consulting-view { display: flex; flex-direction: column; gap: 1rem; margin-bottom: 2rem; }
.consulting-block { padding: 1.2rem; border-radius: 8px; }
.consulting-block h5 { font-size: 0.9rem; margin: 0 0 0.8rem 0; display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-serif, 'Noto Serif JP', serif); }
.consulting-block ul { margin: 0; padding-left: 1.2rem; font-size: 0.85rem; line-height: 1.6; }
.consulting-block li { margin-bottom: 0.4rem; color: #444; }
.block-pros { background: rgba(46, 125, 50, 0.05); } .block-pros h5 { color: #2e7d32; }
.block-warnings { background: rgba(245, 124, 0, 0.05); } .block-warnings h5 { color: #f57c00; }
.block-cons { background: rgba(198, 40, 40, 0.05); } .block-cons h5 { color: #c62828; }

.related-cities-container { margin-bottom: 1.5rem; }
.related-label { font-size: 0.75rem; font-weight: 700; color: #666; margin-bottom: 0.5rem; display: block; }
.related-cities-list { display: flex; flex-direction: column; gap: 0.5rem; }
.btn-related-city { background: #faf9f7; border: 1px solid #e0e0e0; border-radius: 4px; padding: 0.6rem; text-align: left; cursor: pointer; transition: background 0.2s; }
.btn-related-city:hover { background: rgba(0,51,102,0.03); border-color: var(--accent-color, #003366); }
.rel-city-name { font-size: 0.85rem; font-weight: 600; color: var(--accent-color, #003366); display: block; margin-bottom: 0.2rem; }
.rel-city-reason { font-size: 0.75rem; color: #666; line-height: 1.5; }

/* CTA Box */
.detail-cta-box { margin: 2rem 0; padding: 1.5rem; background: #faf9f7; border-radius: 8px; text-align: center; border: 1px solid #f0eeea; }
.cta-message { font-size: 0.85rem; line-height: 1.7; color: #555; margin-bottom: 1.5rem; }

.detail-actions { display: flex; flex-direction: column; gap: 0.8rem; }
.btn-outline { background: #fff; border: 1px solid var(--accent-color, #003366); color: var(--accent-color, #003366); padding: 0.9rem; text-align: center; border-radius: 30px; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: all 0.2s; }
.btn-outline:hover { background: rgba(0, 51, 102, 0.03); }
.btn-cta { background: var(--accent-color, #003366); color: #fff; text-align: center; padding: 0.9rem; border-radius: 30px; font-size: 0.9rem; font-weight: 600; text-decoration: none; display: block; transition: transform 0.2s, box-shadow 0.2s; }
.btn-cta:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,51,102,0.15); }

.desc-accordion { border-top: 1px dashed #e0e0e0; padding-top: 1rem; }
.desc-summary { font-size: 0.85rem; font-weight: 600; color: var(--accent-color, #003366); cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 0.4rem; }
.desc-summary::-webkit-details-marker { display: none; }
.desc-summary:hover { text-decoration: underline; }
.detail-description { margin-top: 0.8rem; font-size: 0.85rem; line-height: 1.7; color: #555; background: #faf9f7; padding: 1rem; border-radius: 4px; }


/* =========================================
   Comparison Panel & Tooltip
   ========================================= */
.comparison-toast { position: absolute; top: 1rem; left: 50%; transform: translateX(-50%) translateY(-20px); background: #003366; color: #fff; padding: 0.6rem 1.2rem; border-radius: 30px; font-size: 0.85rem; font-weight: 600; box-shadow: 0 5px 15px rgba(0,0,0,0.15); z-index: 1000; opacity: 0; pointer-events: none; transition: all 0.3s ease; text-align: center; }
.comparison-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.comparison-backdrop { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.4); z-index: 9998; opacity: 0; pointer-events: none; transition: opacity 0.3s; backdrop-filter: blur(2px); }
.comparison-backdrop.show { opacity: 1; pointer-events: auto; }
.comparison-panel { position: fixed; bottom: 0; left: 0; width: 100%; background: #fff; box-shadow: 0 -10px 40px rgba(0,0,0,0.15); z-index: 9999; transform: translateY(100%); transition: transform 0.4s cubic-bezier(0.19, 1, 0.22, 1); max-height: 85vh; overflow-y: auto; border-radius: 16px 16px 0 0; }
.comparison-panel.open { transform: translateY(0); }
.compare-header { display: flex; justify-content: space-between; align-items: center; padding: 1rem 2rem; border-bottom: 1px solid #f0f0f0; background: #faf9f7; position: sticky; top: 0; z-index: 10; }
.compare-header h3 { margin: 0; font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1.1rem; }
.btn-close { background: none; border: none; font-size: 1.5rem; color: #999; cursor: pointer; }
.compare-body { display: flex; position: relative; padding: 1.5rem 2rem 1rem; gap: 2rem; }
.compare-col { flex: 1; text-align: center; }
.comp-city-title { font-family: var(--font-serif, 'Noto Serif JP', serif); font-size: 1.5rem; margin: 0 0 0.2rem 0; }
.comp-city-tagline { font-size: 0.8rem; color: var(--accent-color, #003366); font-weight: 600; margin: 0; }
.compare-vs { position: absolute; left: 50%; top: 1.5rem; transform: translateX(-50%); background: #f0f0f0; color: #888; font-family: 'Inter', sans-serif; font-weight: 700; font-size: 0.8rem; padding: 0.4rem; border-radius: 50%; display: flex; align-items: center; justify-content: center; width: 32px; height: 32px; border: 2px solid #fff; }
.compare-metrics-container { padding: 0 2rem 2rem; display: flex; flex-direction: column; gap: 1.5rem; max-width: 900px; margin: 0 auto; }
.compare-metric-section { border-top: 1px dashed #e0e0e0; padding-top: 1.5rem; }
.compare-metric-title { text-align: center; font-size: 0.85rem; color: #888; font-weight: 700; text-transform: uppercase; margin-bottom: 1rem; }
.compare-metric-row { display: flex; gap: 2rem; }
.compare-metric-cell { flex: 1; background: #faf9f7; padding: 1rem; border-radius: 6px; }
.compare-cell-val { font-family: 'Lora', serif; font-size: 1.3rem; font-weight: 700; color: var(--accent-color, #003366); margin-bottom: 0.4rem; display: block; text-align: center; }
.compare-cell-interp { font-size: 0.85rem; line-height: 1.6; color: #333; margin: 0; text-align: justify; }

.info-tooltip { position: fixed; background: #222; color: #fff; padding: 0.6rem 0.8rem; border-radius: 4px; font-size: 0.75rem; line-height: 1.4; max-width: 200px; z-index: 10000; opacity: 0; pointer-events: none; transition: opacity 0.2s ease; box-shadow: 0 5px 15px rgba(0,0,0,0.15); }
.info-tooltip.visible { opacity: 1; }

/* =========================================
   Mobile Overrides (max-width: 991px)
   Map-Centric with Bottom Sheet & FAB
   ========================================= */
.mobile-fab { display: none; }
.btn-close-modal { display: none; }
.bottom-sheet-controls { display: none; }

@media (max-width: 991px) {
    /* Map as full background */
    .map-app { display: block; position: relative; height: calc(100dvh - 70px); overflow: hidden; margin-top: 70px; }
    .map-center { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; min-height: unset; }
    
    /* Top Overlay (Search & Metrics) */
    .map-sidebar { position: absolute; top: 0; left: 0; width: 100%; background: transparent; padding: 15px; border: none; box-shadow: none; z-index: 10; pointer-events: none; display: flex; flex-direction: column; gap: 10px; }
    .sidebar-header, .sidebar-divider, .legend-section, .city-list-container, #metric-desc { display: none !important; }
    
    /* Layout order: Search box on top, Metric buttons below */
    .city-picker { display: block; min-height: auto; margin-bottom: 0.5rem; pointer-events: auto; order: 1; }
    .map-controls { order: 2; display: block; }
    #city-search-input { box-shadow: 0 4px 12px rgba(0,0,0,0.1); border: none; padding: 0.8rem 0.8rem 0.8rem 2.5rem; font-size: 16px; /* prevent iOS zoom */ border-radius: 8px; }
    .search-icon { left: 15px; font-size: 1rem; }
    
    .map-controls h3 { display: none; }
    .metric-buttons { display: flex; flex-direction: row; gap: 0.5rem; overflow-x: auto; padding-bottom: 5px; -webkit-overflow-scrolling: touch; pointer-events: auto; }
    .metric-buttons::-webkit-scrollbar { display: none; }
    .metric-btn { padding: 0.5rem 1rem; border-radius: 20px; font-size: 0.85rem; border: none; box-shadow: 0 2px 8px rgba(0,0,0,0.1); background: #fff; flex-shrink: 0; }
    .metric-btn.active { box-shadow: 0 2px 8px rgba(0,51,102,0.3); }

    /* Bottom Sheet Container */
    .detail-panel { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: transparent; z-index: 20; padding: 0; border: none; box-shadow: none; overflow: visible; pointer-events: none; display: none; }
    .detail-panel.sheet-open { display: block; }
    
    /* Bottom Sheet Content */
    .info-details { position: fixed !important; bottom: 0 !important; left: 0 !important; width: 100% !important; height: 80vh !important; background: #fff !important; z-index: 9999 !important; border-radius: 20px 20px 0 0; box-shadow: 0 -4px 20px rgba(0,0,0,0.15); padding: 1.5rem; padding-bottom: 80px; overflow-y: auto; display: block !important; pointer-events: auto; }
    
    .bottom-sheet-controls { display: flex; flex-direction: column; align-items: center; padding: 10px; position: sticky; top: -1.5rem; margin-top: -1.5rem; margin-bottom: 1rem; background: #fff; z-index: 25; border-radius: 20px 20px 0 0; border-bottom: 1px solid #f0eeea; width: calc(100% + 3rem); margin-left: -1.5rem; }
    .drag-handle { width: 40px; height: 5px; background: #ddd; border-radius: 3px; margin-bottom: 5px; }
    .btn-close-sheet { position: absolute; right: 15px; top: 12px; background: #f5f4f1; border: none; width: 30px; height: 30px; border-radius: 50%; font-size: 1.2rem; display: flex; align-items: center; justify-content: center; color: #666; }
    
    .info-details { padding: 1.5rem; padding-bottom: 80px; }
    .details-header { margin-bottom: 1rem; margin-top: 10px; }
    .detail-title { font-size: 1.4rem; }
    .detail-summary { margin-bottom: 1.5rem; padding: 1rem; font-size: 0.9rem; }
    
    .metrics-grid { gap: 0.8rem; margin-bottom: 1.5rem; }
    .metric-card { padding: 0.8rem; }
    .consulting-view { gap: 0.8rem; margin-bottom: 1.5rem; }
    .consulting-block { padding: 1rem; }
    .detail-cta-box { padding: 1.2rem; }

    /* Floating Action Button (Diagnostic) */
    .mobile-fab { display: flex; align-items: center; gap: 8px; position: absolute; bottom: 85px; right: 20px; background: var(--accent-color, #003366); color: #fff; border: none; padding: 0.8rem 1.2rem; border-radius: 30px; font-weight: 700; box-shadow: 0 4px 15px rgba(0,51,102,0.3); z-index: 15; font-size: 0.9rem; transition: transform 0.2s; pointer-events: auto; }
    .mobile-fab:active { transform: scale(0.95); }
    
    /* Diagnostic Modal */
    .info-onboarding { display: none !important; position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; background: #fff; z-index: 999999; flex-direction: column; padding: 6rem 1.5rem 1.5rem 1.5rem; overflow-y: auto; pointer-events: auto; }
    .info-onboarding.modal-open { display: flex !important; animation: slideUp 0.3s forwards; }
    @keyframes slideUp { from{ transform:translateY(100%); } to{ transform:translateY(0); } }
    .btn-close-modal { display: block !important; position: fixed; top: 15px; right: 20px; background: #f5f4f1; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 1.5rem; color: #666; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 1000000; }
    .onboarding-prompt { display: none !important; } /* Hide prompt on mobile */
    .diag-accordion { border: none; background: transparent; margin: 0; }
    .diag-banner { display: none !important; }
    .diagnostic-content { border-top: none; padding: 0; }
    
    .comparison-panel { max-height: 90vh; }
    .compare-body { flex-direction: column; gap: 1rem; padding: 1rem; }
    .compare-metric-row { flex-direction: column; gap: 1rem; }
    .compare-vs { display: none; }
}
