/* Explore page styles.
   Extracted verbatim from the inline <style> block in
   templates/main/explore.html on 2026-07-30 so the browser can cache
   it instead of re-parsing ~3,000 lines inside the HTML document on
   every page load. Load order is unchanged: this file is linked last
   in {% block extra_css %}, exactly where the <style> block sat.
   No rules were added, removed or reordered. */

    /* Base Styles */
    * {
        box-sizing: border-box;
    }
    
    body.explore-page {
        font-family: var(--gt-font);
        overflow: hidden;
        margin: 0;
        padding: 0;
        background: var(--gt-bg);
        color: var(--gt-text);
        line-height: 1.6;
        font-weight: 400;
        height: 100vh;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }
    
    /* Remove default base template padding/margin for fullscreen.
       No height here: .app-layout below is position:fixed, so it does not need a
       sized ancestor. Giving these 100vh put a full viewport *below* the 44px
       navbar, so the page carried ~83px it could never scroll to (body is
       overflow:hidden), which clipped the bottom of the app shell. */
    .explore-page main {
        padding: 0 !important;
    }

    .explore-page main .container {
        max-width: none !important;
        padding: 0 !important;
        margin: 0 !important;
        width: 100% !important;
    }
    
    /* Explore page uses the same .modern-navbar from base.html — no overrides needed */
    
    /* Main Application Layout */
    .app-layout {
        position: fixed;
        top: 44px;
        left: 0;
        right: 0;
        bottom: 0;
        height: calc(100vh - 44px);
        overflow: hidden;
    }
    
    /* Map Container - Full Screen */
    .map-container {
        position: absolute;
        top: 0;
        left: 320px;
        right: 0;
        bottom: 0;
        /* style.css:441 sets a global .map-container{height:100vh} from the old
           full-screen map. Here the box is already sized by top/bottom inside
           .app-layout (calc(100vh - 44px)), so an inherited 100vh made the map
           44px taller than its container and pushed its bottom controls out of
           sight. Let top/bottom do the sizing. */
        height: auto;
        background: var(--gt-bg);
        transition: left 200ms ease;
    }
    .map-container.sidebar-collapsed {
        left: 0;
    }
    
    #map {
        width: 100%;
        height: 100%;
        border-radius: 0;
    }
    
    /* Sleek Prompt Box — hidden, replaced by sidebar prompt */
    /* Modern Prompt Container */
    .prompt-container {
        display: none !important;
        position: fixed;
        left: 50%;
        bottom: 32px;
        transform: translateX(-50%);
        width: auto;
        min-width: 480px;
        max-width: 900px;
        z-index: 900;
        transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
        padding: 0;
    }
    
    .prompt-wrapper {
        background: rgba(255, 255, 255, 0.08);
        border: 1px solid rgba(255, 255, 255, 0.2);
        border-radius: var(--gt-radius);
        box-shadow: var(--gt-shadow);
        overflow: hidden;
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .prompt-wrapper:hover {
        background: rgba(255, 255, 255, 0.12);
        border-color: rgba(255, 255, 255, 0.25);
        box-shadow: var(--gt-shadow);
        transform: translateY(-1px);
    }

    [data-theme="light"] .prompt-wrapper {
        background: rgba(255, 255, 255, 0.85);
        border: 1px solid var(--gt-border);
    }
    [data-theme="light"] .prompt-wrapper:hover {
        background: rgba(255, 255, 255, 0.95);
        border-color: var(--gt-green);
    }

    /* ===== HIDE LEGACY ELEMENTS ===== */
    .help-button, .help-docs-floating-btn, .help-card,
    .guide-arrow, .drawing-toolbar, .status-bar { display: none !important; }

    /* ===== WORKFLOW SIDEBAR ===== */
    .workflow-sidebar {
        position: fixed;
        top: 44px;
        left: 0;
        width: 320px;
        bottom: 0;
        z-index: 500;
        background: var(--gt-surface);
        border-radius: 0;
        border: none;
        border-right: 1px solid var(--gt-border);
        display: flex;
        flex-direction: column;
        overflow: hidden;
        font-family: var(--gt-font);
        transition: transform 200ms ease;
    }
    .workflow-sidebar.collapsed {
        transform: translateX(-100%);
    }

    /* Collapse button inside sidebar header */
    .sidebar-collapse-btn {
        width: 24px; height: 24px;
        border: none; border-radius: var(--gt-radius-sm);
        background: transparent;
        color: var(--gt-text-muted);
        cursor: pointer;
        display: flex; align-items: center; justify-content: center;
        font-size: 11px;
        transition: color 100ms ease;
        flex-shrink: 0;
    }
    .sidebar-collapse-btn:hover { color: var(--gt-text); }

    /* Floating restore tab — appears on left edge of map when sidebar is hidden */
    .sidebar-restore-tab {
        position: fixed;
        left: 0;
        top: 50%;
        transform: translateY(-50%);
        width: 28px; height: 56px;
        border: none;
        border-radius: 0 var(--gt-radius) var(--gt-radius) 0;
        background: var(--gt-surface);
        color: var(--gt-text-muted);
        cursor: pointer;
        display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
        font-size: 12px;
        z-index: 600;
        border-right: 1px solid var(--gt-border);
        border-top: 1px solid var(--gt-border);
        border-bottom: 1px solid var(--gt-border);
        transition: opacity 150ms ease;
        opacity: 0;
        pointer-events: none;
    }
    .sidebar-restore-tab.visible {
        opacity: 1;
        pointer-events: auto;
    }
    .sidebar-restore-tab:hover { color: var(--gt-green-light); }
    .sidebar-restore-tab .restore-icon { font-size: 14px; }
    .sidebar-restore-tab .restore-label {
        font-size: 8px; font-weight: 600; text-transform: uppercase;
        letter-spacing: 0.5px; writing-mode: vertical-rl; text-orientation: mixed;
    }
    .sidebar-header {
        padding: 12px 16px 10px;
        border-bottom: 1px solid var(--gt-border-subtle, var(--gt-border));
        flex-shrink: 0;
        display: flex; align-items: center; justify-content: space-between;
    }
    .sidebar-brand {
        display: flex; align-items: center; gap: 8px;
        font-size: 0.8125rem; font-weight: 600; color: var(--gt-text);
    }
    .sidebar-brand i { color: var(--gt-green); font-size: 14px; }
    .sidebar-body {
        flex: 1; overflow-y: auto; padding: 8px 16px 12px;
        scrollbar-width: thin;
    }

    /* Location search */
    .location-search { margin-bottom: 12px; position: relative; }
    .location-search-input {
        width: 100%; padding: 6px 30px 6px 8px;
        border: 1px solid var(--gt-border); border-radius: var(--gt-radius-sm);
        background: var(--gt-bg); color: var(--gt-text);
        font-size: 0.75rem; font-family: inherit;
        transition: border-color var(--gt-transition-fast);
    }
    .location-search-input:focus {
        outline: none; border-color: var(--gt-green);
        box-shadow: var(--gt-focus-ring);
    }
    .location-search-input::placeholder { color: var(--gt-text-muted); }
    .location-search-icon {
        position: absolute; right: 10px; top: 50%;
        transform: translateY(-50%);
        color: var(--gt-text-muted); font-size: 12px;
        pointer-events: none; transition: color 0.2s;
    }
    .location-search.loading .location-search-icon { color: var(--gt-green); animation: spin 1s linear infinite; }
    @keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
    .location-search-results {
        position: absolute; top: 100%; left: 0; right: 0; z-index: 10;
        background: var(--gt-surface-raised); border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius-sm); box-shadow: var(--gt-shadow);
        margin-top: 2px; display: none; max-height: 180px; overflow-y: auto;
    }
    .location-search-results.visible { display: block; }
    .location-result-item {
        padding: 8px 12px; font-size: 11px; color: var(--gt-text);
        cursor: pointer; border-bottom: 1px solid var(--gt-border);
        transition: background 0.1s; display: flex; align-items: center; gap: 8px;
    }
    .location-result-item:last-child { border-bottom: none; }
    .location-result-item:hover { background: rgba(45,106,79,0.08); color: var(--gt-green); }
    .location-result-item i { font-size: 10px; color: var(--gt-green); flex-shrink: 0; }
    .wf-step {
        margin-bottom: 16px;
    }
    .wf-step-header {
        display: flex; align-items: center; gap: 8px; margin-bottom: 8px;
    }
    .wf-step-num {
        width: 18px; height: 18px; border-radius: 50%;
        background: var(--gt-surface-raised); color: var(--gt-text-muted);
        display: flex; align-items: center; justify-content: center;
        font-size: 10px; font-weight: 600; flex-shrink: 0;
    }
    .wf-step.active .wf-step-num { background: var(--gt-green); color: #fff; }
    .wf-step.completed .wf-step-num { background: var(--gt-green-light); color: #fff; }
    .wf-step-title {
        font-size: 0.6875rem; font-weight: 600; color: var(--gt-text-secondary);
        text-transform: uppercase; letter-spacing: 0.04em;
    }
    .wf-step.active .wf-step-title { color: var(--gt-text); }

    /* Step 3 mode toggle: swap between Quick presets and Custom Index in place */
    .wf-mode-toggle {
        display: flex;
        gap: 0;
        margin: 0 0 10px 0;
        border-bottom: 1px solid var(--gt-border);
    }
    .wf-mode-btn {
        flex: 1;
        padding: 7px 6px;
        background: transparent;
        border: none;
        border-bottom: 2px solid transparent;
        margin-bottom: -1px;
        color: var(--gt-text-secondary);
        font-size: 0.6875rem;
        font-weight: 600;
        cursor: pointer;
        text-align: center;
        transition: color 100ms ease, border-color 100ms ease;
        font-family: inherit;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 5px;
    }
    .wf-mode-btn i { font-size: 11px; opacity: 0.7; }
    .wf-mode-btn:hover { color: var(--gt-text); }
    .wf-mode-btn.active {
        color: var(--gt-green);
        border-bottom-color: var(--gt-green);
    }
    .wf-mode-btn.active i { opacity: 1; }
    [data-theme="light"] .wf-mode-btn.active { color: var(--gt-green); }

    /* Draw tool buttons */
    .draw-tools-row {
        display: flex; gap: 6px;
    }
    .draw-tool-btn {
        flex: 1; display: flex; align-items: center; justify-content: center; gap: 5px;
        padding: 7px 8px; border-radius: var(--gt-radius-sm); border: 1px solid var(--gt-border);
        background: transparent; color: var(--gt-text-secondary); cursor: pointer;
        font-size: 0.6875rem; font-weight: 500; transition: color 100ms ease, border-color 100ms ease, background 100ms ease;
    }
    .draw-tool-btn:hover { color: var(--gt-text); border-color: var(--gt-text-muted); }
    .draw-tool-btn.active { color: #fff; background: var(--gt-green); border-color: var(--gt-green); }
    .draw-tool-btn i { font-size: 13px; }

    /* Onboarding hint — no animations */
    .draw-tool-btn.onboard-pulse {
        border-color: var(--gt-green);
    }

    /* Welcome tip — minimal text hint */
    .onboard-tip {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 10px; margin-bottom: 12px; border-radius: var(--gt-radius-sm);
        background: transparent;
        border: 1px solid var(--gt-border);
        font-size: 0.6875rem; color: var(--gt-text-secondary);
        font-weight: 400; line-height: 1.5;
    }
    .onboard-tip i { font-size: 11px; flex-shrink: 0; color: var(--gt-text-muted); }
    .onboard-tip-close {
        margin-left: auto; background: none; border: none; cursor: pointer;
        color: var(--gt-text-muted); font-size: 10px; padding: 2px;
    }
    .onboard-tip-close:hover { color: var(--gt-text); }

    /* Welcome Modal — compact, professional */
    .welcome-modal-overlay {
        position: fixed; inset: 0; z-index: 10000;
        background: rgba(0,0,0,0.6);
        display: flex; align-items: center; justify-content: center;
    }
    .welcome-modal {
        background: var(--gt-surface); border-radius: var(--gt-radius-lg); padding: 24px 24px 20px;
        max-width: 380px; width: 90%; box-shadow: var(--gt-shadow);
        text-align: center; border: 1px solid var(--gt-border);
    }
    .welcome-modal h2 {
        margin: 0 0 6px; font-size: 0.9375rem; font-weight: 600; color: var(--gt-text);
    }
    .welcome-modal .welcome-sub {
        font-size: 13px; color: var(--gt-text-muted); margin-bottom: 24px;
    }
    .welcome-steps {
        display: flex; gap: 12px; margin-bottom: 24px; text-align: center;
    }
    .welcome-step {
        flex: 1; padding: 16px 10px; border-radius: var(--gt-radius);
        background: var(--gt-surface); border: none;
    }
    .welcome-step-num {
        width: 28px; height: 28px; border-radius: 50%;
        background: var(--gt-green); color: #fff; font-size: 13px; font-weight: 700;
        display: inline-flex; align-items: center; justify-content: center; margin-bottom: 8px;
    }
    .welcome-step-title { font-size: 11px; font-weight: 600; color: var(--gt-text); }
    .welcome-step-desc { font-size: 10px; color: var(--gt-text-muted); margin-top: 2px; }
    .welcome-actions { display: flex; flex-direction: column; gap: 8px; }
    .welcome-btn-primary {
        padding: 12px 20px; border-radius: 10px; border: none; cursor: pointer;
        background: var(--gt-green); color: #fff; font-size: 13px; font-weight: 600;
        transition: background 0.2s;
    }
    .welcome-btn-primary:hover { background: var(--gt-green-muted); }
    .welcome-btn-secondary {
        padding: 10px 20px; border-radius: 10px; border: none;
        cursor: pointer; background: var(--gt-surface); color: var(--gt-text-muted); font-size: 12px;
        font-weight: 500; transition: all 0.15s;
    }
    .welcome-btn-secondary:hover { background: rgba(45,106,79,0.08); color: var(--gt-green); }

    /* Floating help button */
    .floating-help-btn {
        position: fixed; bottom: 16px; right: 16px; z-index: 900;
        width: 32px; height: 32px; border-radius: var(--gt-radius-sm);
        background: var(--gt-surface); color: var(--gt-text-muted);
        border: 1px solid var(--gt-border); cursor: pointer;
        font-size: 13px; font-weight: 600;
        display: flex; align-items: center; justify-content: center;
        transition: color 100ms ease, border-color 100ms ease;
    }
    .floating-help-btn:hover { color: var(--gt-text); border-color: var(--gt-text-muted); }

    /* Analysis button tooltips — removed (btn-tooltip elements removed from HTML) */
    .sidebar-analysis-btn .btn-tooltip { display: none; }

    /* Sidebar date inputs */
    .sidebar-date-input {
        width: 100%; padding: 6px 8px; border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius-sm); font-size: 0.75rem;
        color: var(--gt-text); background: var(--gt-bg);
        cursor: pointer; font-family: var(--gt-mono);
        transition: border-color var(--gt-transition-fast);
    }
    .sidebar-date-input:focus {
        outline: none; border-color: var(--gt-green);
        box-shadow: var(--gt-focus-ring);
    }
    .sidebar-date-hint {
        font-size: 0.625rem; color: var(--gt-text-muted); margin-top: 3px;
    }
    .date-field-row { display: flex; align-items: center; gap: 6px; }
    .date-field-label {
        font-size: 0.625rem; font-weight: 600; color: var(--gt-text-secondary); min-width: 36px;
        text-transform: uppercase; letter-spacing: 0.04em;
    }
    .date-field-label--before { color: var(--gt-text-muted); }
    /* Timeline graphic — visual connector between two dates */
    .date-timeline-graphic {
        display: flex; align-items: center; gap: 0; margin: 6px 0 6px; padding: 0 4px;
    }
    .timeline-dot {
        width: 6px; height: 6px; border-radius: 50%;
        background: var(--gt-green); flex-shrink: 0;
    }
    .timeline-dot--end { background: var(--gt-text-muted); }
    .timeline-line {
        flex: 1; height: 1px;
        background: var(--gt-border);
    }

    /* Example link in sidebar */
    .sidebar-example-link {
        display: block; margin-top: 8px; font-size: 0.625rem;
        color: var(--gt-text-muted); text-decoration: none;
    }
    .sidebar-example-link:hover { color: var(--gt-green-light); text-decoration: underline; }
    .sidebar-example-link i { margin-right: 3px; }

    /* Inline signup modal */
    .signup-overlay {
        position: fixed; inset: 0; z-index: 10001;
        background: rgba(0,0,0,0.6);
        display: flex; align-items: center; justify-content: center;
        animation: fadeIn 0.25s ease;
    }
    .signup-modal {
        background: var(--gt-surface); border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius-lg); padding: 24px 24px 20px;
        max-width: 380px; width: 90%; box-shadow: var(--gt-shadow);
        color: var(--gt-text);
    }
    .signup-modal h2 {
        font-size: 0.9375rem; font-weight: 600; color: var(--gt-text); margin: 0 0 4px; text-align: center;
    }
    .signup-modal .signup-sub {
        font-size: 13px; color: #94a3b8; text-align: center; margin-bottom: 24px;
    }
    .signup-field {
        margin-bottom: 14px;
    }
    .signup-field label {
        display: block; font-size: 12px; font-weight: 500; color: #94a3b8;
        margin-bottom: 5px;
    }
    .signup-field input {
        width: 100%; padding: 8px 10px; border-radius: var(--gt-radius-sm);
        border: 1px solid var(--gt-border); background: var(--gt-bg);
        color: var(--gt-text); font-size: 0.8125rem; font-family: var(--gt-font);
        transition: border-color var(--gt-transition-fast);
    }
    .signup-field input:focus {
        outline: none; border-color: var(--gt-green);
        box-shadow: 0 0 0 3px rgba(45,106,79,0.15);
    }
    .signup-field input::placeholder { color: #475569; }
    .signup-submit {
        width: 100%; padding: 12px; border-radius: 10px; border: none;
        background: var(--gt-green); color: #fff; font-size: 14px; font-weight: 600;
        cursor: pointer; transition: background 0.2s; margin-top: 6px;
    }
    .signup-submit:hover { background: var(--gt-green-muted); }
    .signup-submit:disabled { opacity: 0.6; cursor: not-allowed; }
    .signup-error {
        background: rgba(239,68,68,0.1); border: 1px solid rgba(239,68,68,0.2);
        color: #fca5a5; padding: 8px 12px; border-radius: 8px;
        font-size: 12px; margin-bottom: 14px; display: none;
    }
    .signup-toggle {
        text-align: center; margin-top: 16px; font-size: 12px; color: #64748b;
    }
    .signup-toggle a {
        color: var(--gt-green-light); cursor: pointer; text-decoration: none; font-weight: 500;
    }
    .signup-toggle a:hover { color: var(--gt-green-light); }
    .signup-benefits {
        display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; margin-bottom: 20px;
    }
    .signup-benefit {
        font-size: 10px; padding: 4px 10px; border-radius: var(--gt-radius);
        background: rgba(45,106,79,0.1); color: var(--gt-green-light); font-weight: 500;
    }

    /* Guest signup banner (shown after first guest result) */
    .guest-signup-banner {
        display: flex; align-items: center; gap: 10px;
        padding: 12px 16px; margin: 8px 0;
        background: rgba(45,106,79,0.08);
        border: 1px solid rgba(45,106,79,0.2); border-radius: 10px;
        font-size: 12px; color: var(--gt-text);
    }
    .guest-signup-banner i { color: var(--gt-green); font-size: 16px; flex-shrink: 0; }
    .guest-signup-banner span { flex: 1; }
    .guest-banner-btn {
        padding: 6px 14px; border-radius: var(--gt-radius-sm); border: none;
        background: var(--gt-green); color: #fff; font-size: 11px; font-weight: 600;
        cursor: pointer; white-space: nowrap; transition: background 0.15s;
    }
    .guest-banner-btn:hover { background: var(--gt-green-muted); }

    /* Watch area banner */
    .watch-area-banner {
        display: flex; align-items: center; gap: 10px;
        padding: 10px 14px; margin: 8px 0;
        background: rgba(34,197,94,0.06);
        border: 1px solid rgba(34,197,94,0.2); border-radius: var(--gt-radius);
        font-size: 12px; color: var(--gt-text);
    }
    .watch-area-banner i { color: var(--gt-green-light); font-size: 14px; flex-shrink: 0; }
    .watch-area-btn {
        padding: 5px 12px; border-radius: var(--gt-radius-sm); border: none;
        background: var(--gt-green-light); color: #fff; font-size: 11px; font-weight: 600;
        cursor: pointer; white-space: nowrap; transition: background 0.15s;
    }
    .watch-area-btn:hover { background: var(--gt-green); }
    .watch-area-btn:disabled { cursor: default; opacity: 0.7; }
    .watch-area-btn:disabled:hover { background: var(--gt-green-light); }

    /* My Watches section */
    .my-watches-section { flex-shrink: 0; }
    .watch-item {
        display: flex; align-items: center; justify-content: space-between;
        padding: 10px 12px; margin-bottom: 6px;
        background: rgba(45,106,79,0.04);
        border: 1px solid rgba(45,106,79,0.12); border-radius: var(--gt-radius);
        transition: background 0.15s;
    }
    .watch-item:hover { background: rgba(45,106,79,0.08); }
    .watch-item-info { flex: 1; min-width: 0; }
    .watch-item-label {
        font-size: 13px; font-weight: 600; color: var(--gt-text);
        text-transform: capitalize; white-space: nowrap;
        overflow: hidden; text-overflow: ellipsis;
    }
    .watch-item-meta {
        font-size: 11px; color: var(--gt-text-muted); margin-top: 2px;
    }
    .watch-item-actions { display: flex; gap: 4px; flex-shrink: 0; margin-left: 8px; }
    .watch-go-btn, .watch-remove-btn {
        width: 28px; height: 28px; border-radius: var(--gt-radius-sm); border: none;
        display: flex; align-items: center; justify-content: center;
        cursor: pointer; font-size: 12px; transition: all 0.15s;
    }
    .watch-go-btn {
        background: rgba(45,106,79,0.1); color: var(--gt-green);
    }
    .watch-go-btn:hover { background: var(--gt-green); color: #fff; }
    .watch-remove-btn {
        background: rgba(239,68,68,0.08); color: var(--gt-error);
    }
    .watch-remove-btn:hover { background: var(--gt-error); color: #fff; }

    /* Change-since-last-visit banner */
    .change-since-banner {
        display: flex; align-items: center; gap: 8px;
        padding: 8px 10px; margin: 6px 0;
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius-sm);
        font-size: 0.6875rem; color: var(--gt-text-secondary);
    }
    /* Compact map legend */
    .gt-map-legend {
        background: rgba(25, 26, 28, 0.85); padding: 6px 10px;
        border-radius: var(--gt-radius-sm, 3px); font-family: var(--gt-mono);
        pointer-events: none; backdrop-filter: blur(4px);
        border: 1px solid rgba(255,255,255,0.08);
    }
    [data-theme="light"] .gt-map-legend {
        background: rgba(250, 250, 248, 0.9); border-color: rgba(0,0,0,0.08);
    }
    .gt-legend-label {
        font-size: 9px; font-weight: 600; color: var(--gt-text-secondary, #8e9099);
        text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 3px;
    }
    .gt-legend-bar {
        width: 120px; height: 8px; border-radius: 2px;
    }
    .gt-legend-range {
        display: flex; justify-content: space-between;
        font-size: 8px; color: var(--gt-text-muted, #5c5e66); margin-top: 2px;
    }

    .history-sparkline-section {
        margin: 8px 0; padding: 8px 10px;
        border-top: 1px solid var(--gt-border-subtle, var(--gt-border));
    }
    .sparkline-header {
        display: flex; align-items: center; gap: 6px;
        font-size: 0.625rem; color: var(--gt-text-muted); margin-bottom: 4px; font-weight: 500;
        text-transform: uppercase; letter-spacing: 0.04em;
    }
    .sparkline-header i { color: var(--gt-text-muted); font-size: 10px; }

    .area-status {
        margin-top: 6px; padding: 4px 0;
        font-size: 0.625rem; font-weight: 400; font-family: var(--gt-mono);
        color: var(--gt-text-muted);
        display: flex; align-items: center; gap: 4px;
    }
    .area-status i { font-size: 9px; }
    .area-status.has-area { color: var(--gt-text-secondary); }
    .area-status.area-too-large {
        color: var(--gt-error); font-family: var(--gt-font); font-weight: 500;
    }

    /* Analysis category groups */
    .analysis-category { margin-bottom: 12px; }
    .analysis-category-header {
        font-size: 0.625rem; font-weight: 600; color: var(--gt-text-muted);
        padding: 2px 0 6px; display: flex; align-items: center; gap: 5px;
        text-transform: uppercase; letter-spacing: 0.04em;
    }
    .analysis-category-header i { font-size: 10px; }
    /* Category icon colors — muted, per-domain (header + button icons) */
    .analysis-category.cat-vegetation .analysis-category-header i,
    .analysis-category.cat-vegetation .sidebar-analysis-btn i { color: var(--gt-green-light); opacity: 0.7; }
    .analysis-category.cat-fire .analysis-category-header i,
    .analysis-category.cat-fire .sidebar-analysis-btn i { color: var(--gt-warning); opacity: 0.7; }
    .analysis-category.cat-water .analysis-category-header i,
    .analysis-category.cat-water .sidebar-analysis-btn i { color: var(--gt-info); opacity: 0.7; }
    .analysis-category.cat-land .analysis-category-header i,
    .analysis-category.cat-land .sidebar-analysis-btn i { color: var(--gt-text-secondary); opacity: 0.6; }
    .analysis-category-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    }

    /* Collapsible advanced indices */
    .advanced-toggle {
        margin-top: 4px;
    }
    .advanced-toggle summary {
        font-size: 0.6875rem; font-weight: 500; color: var(--gt-text-secondary);
        cursor: pointer; padding: 5px 6px; list-style: none;
        user-select: none; border-radius: var(--gt-radius-sm, 3px);
        transition: background 120ms ease, color 120ms ease;
    }
    .advanced-toggle summary:hover {
        color: var(--gt-text); background: var(--gt-surface-tint, rgba(255,255,255,0.03));
    }
    .advanced-toggle summary:focus-visible {
        outline: 1px solid var(--gt-green); outline-offset: 1px;
    }
    .advanced-toggle summary::before { content: '\25B8 '; }
    .advanced-toggle[open] summary::before { content: '\25BE '; }
    .advanced-toggle summary::-webkit-details-marker { display: none; }


    /* Two-date analyses look identical to single-date ones in the grid, so the
       comparison capability is invisible until you happen to pick one of them.
       This marks them at the point of choice. */
    .sidebar-analysis-btn .two-date-tag {
        display: block; font-size: 0.5rem; font-weight: 600;
        letter-spacing: 0.06em; text-transform: uppercase;
        color: var(--gt-green-light, #40916c); margin-top: 1px;
    }
    .sidebar-analysis-btn:disabled .two-date-tag { color: var(--gt-text-muted); }

    /* Analysis buttons — 2-col grid cells with subtle background */
    .sidebar-analysis-btn {
        display: flex; align-items: center; gap: 6px;
        padding: 7px 8px; border-radius: var(--gt-radius-sm);
        border: 1px solid var(--gt-border-subtle, var(--gt-border));
        background: var(--gt-surface-raised);
        cursor: pointer; font-family: var(--gt-font);
        font-size: 0.6875rem; font-weight: 500;
        transition: border-color 100ms ease, color 100ms ease;
        color: var(--gt-text); white-space: nowrap;
        min-height: auto; position: relative;
    }
    .sidebar-analysis-btn i { font-size: 13px; opacity: 0.5; flex-shrink: 0; }
    .sidebar-analysis-btn .btn-label { font-size: 0.6875rem; font-weight: 500; line-height: 1.2; }
    .sidebar-analysis-btn .btn-desc { display: none; }
    .sidebar-analysis-btn .btn-popular { display: none; }
    .sidebar-analysis-btn:hover:not(:disabled) {
        border-color: var(--gt-green); color: var(--gt-green-light);
    }
    .sidebar-analysis-btn:hover:not(:disabled) i { opacity: 0.8; }
    .sidebar-analysis-btn:active:not(:disabled) {
        background: rgba(45,106,79,0.08);
    }
    .sidebar-analysis-btn:disabled {
        opacity: 0.4; cursor: default;
    }
    /* Armed multi-date analysis (selected, awaiting Run) */
    .sidebar-analysis-btn.armed {
        border-color: var(--gt-green);
        background: rgba(45,106,79,0.12);
        color: var(--gt-green-light);
    }
    .sidebar-analysis-btn.armed i { opacity: 0.9; }
    /* Explicit Run button for armed multi-date analyses */
    .run-analysis-btn {
        margin-top: 10px; width: 100%;
        display: flex; align-items: center; justify-content: center; gap: 6px;
        padding: 9px 12px; border: none; border-radius: var(--gt-radius-sm);
        background: var(--gt-green); color: #fff;
        font-size: 0.8125rem; font-weight: 600; font-family: inherit; cursor: pointer;
        transition: background 120ms ease;
    }
    .run-analysis-btn:hover { background: var(--gt-green-light, #2f8159); }
    .run-analysis-btn i { font-size: 11px; }
    /* Attention cues when a multi-date analysis is armed */
    @keyframes gtArmSlide { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
    @keyframes gtRunPulse {
        0%, 100% { box-shadow: 0 0 0 0 rgba(45,106,79,0.55); }
        50%      { box-shadow: 0 0 0 7px rgba(45,106,79,0); }
    }
    @keyframes gtStepFlash { 0% { background: rgba(45,106,79,0.18); } 100% { background: transparent; } }
    .date-arm-callout {
        margin: 8px 0 6px; padding: 8px 10px;
        background: rgba(45,106,79,0.12); border: 1px solid var(--gt-green);
        border-radius: var(--gt-radius-sm); color: var(--gt-green-light);
        font-size: 0.72rem; font-weight: 600; line-height: 1.35;
        display: flex; align-items: center; gap: 7px;
        animation: gtArmSlide 220ms ease;
    }
    .date-arm-callout i { font-size: 12px; flex-shrink: 0; }
    .run-analysis-btn.armed-in { animation: gtArmSlide 220ms ease, gtRunPulse 1.5s ease 0.2s 2; }
    .wf-step.arm-flash { animation: gtStepFlash 1.3s ease; border-radius: var(--gt-radius-sm); }
    @media (prefers-reduced-motion: reduce) {
        .date-arm-callout, .run-analysis-btn.armed-in, .wf-step.arm-flash { animation: none !important; }
    }
    /* Light theme — slightly different surface for analysis buttons */
    [data-theme="light"] .sidebar-analysis-btn {
        background: var(--gt-surface);
        border-color: var(--gt-border);
    }
    /* Buttons in the advanced toggle — inherit same grid */
    .advanced-toggle .analysis-category-grid {
        display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
    }
    /* Odd-count rows: let last item span if alone */
    .analysis-category-grid > .sidebar-analysis-btn:last-child:nth-child(odd) {
        /* Don't span — keep consistent cell size */
    }

    /* Sidebar AI prompt */
    .sidebar-prompt {
        padding: 10px 16px; border-top: 1px solid var(--gt-border-subtle, var(--gt-border)); flex-shrink: 0;
    }

    /* Ask ELI button — ghost style, no pulsing */
    .sidebar-eli-btn {
        width: 100%; display: flex; align-items: center; gap: 6px;
        padding: 8px 12px; border-radius: var(--gt-radius-sm);
        border: 1px solid var(--gt-border); cursor: pointer;
        background: transparent;
        color: var(--gt-text-secondary); font-size: 0.6875rem; font-weight: 500;
        font-family: var(--gt-font); transition: border-color var(--gt-transition-fast), color var(--gt-transition-fast);
    }
    .sidebar-eli-btn:hover {
        border-color: var(--gt-green); color: var(--gt-text);
    }
    .sidebar-eli-btn i { font-size: 12px; }
    .eli-btn-hint { display: none; }
    .eli-btn-dot { display: none; }

    /* INITIAL CENTERED STATE */
    .prompt-container.initial-state {
        top: 50%;
        bottom: auto;
        transform: translate(-50%, -50%);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* TRANSITIONING STATE */
    .prompt-container.transitioning {
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }

    /* FINAL STATE */
    .prompt-container.bottom-state {
        top: auto;
        bottom: 32px;
        transform: translateX(-50%);
        transition: all 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    }
    
    .prompt-form {
        position: relative;
        background: transparent;
        border: none;
        padding: 0;
        margin: 0;
    }
    
    .prompt-input-wrapper {
        display: flex;
        align-items: flex-end;
        gap: 8px;
        padding: 14px 16px;
        min-height: 48px;
        position: relative;
    }
    
    .prompt-actions {
        display: flex;
        align-items: flex-end;
        gap: 4px;
        flex-shrink: 0;
    }
    
    .prompt-input {
        flex: 1;
        border: none;
        outline: none;
        background: transparent;
        font-size: 15px;
        font-weight: 400;
        color: var(--gt-text);
        font-family: var(--gt-font);
        line-height: 1.4;
        padding: 2px 0;
        resize: none;
        min-height: 20px;
        max-height: 160px;
        overflow-y: auto;
        overflow-x: hidden;
        transition: color 0.2s ease;
        width: 100%;
    }

    .prompt-input::placeholder {
        color: var(--gt-text-muted);
        font-weight: 400;
    }

    .prompt-input:focus {
        outline: none;
        color: var(--gt-text);
    }

    .prompt-input:focus::placeholder {
        color: var(--gt-text-secondary);
    }
    
    /* Analyzing state for prompt input */
    .prompt-input.analyzing-state {
        cursor: not-allowed;
        opacity: 0.8;
    }
    
    .prompt-input.analyzing-state::placeholder {
        background: linear-gradient(90deg, var(--gt-text-secondary), var(--gt-text-muted), var(--gt-text-secondary));
        background-size: 200% 200%;
        -webkit-background-clip: text;
        -webkit-text-fill-color: transparent;
        background-clip: text;
        animation: modernShimmer 3s ease-in-out infinite;
        font-weight: 600;
    }
    
    .prompt-submit.analyzing {
        opacity: 0.5;
        cursor: not-allowed;
        animation: pulse 2s ease-in-out infinite;
    }
    
    @keyframes pulse {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 0.7; }
    }
    
    .action-btn {
        width: 28px;
        height: 28px;
        border: none;
        background: rgba(0, 0, 0, 0.08);
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s ease;
        color: var(--gt-text-muted);
        font-size: 13px;
    }

    .action-btn:hover {
        background: rgba(0, 0, 0, 0.12);
        color: var(--gt-text-secondary);
        transform: scale(1.05);
    }

    [data-theme="dark"] .action-btn {
        background: rgba(255, 255, 255, 0.05);
    }
    [data-theme="dark"] .action-btn:hover {
        background: rgba(255, 255, 255, 0.1);
    }
    
    .prompt-submit {
        width: 28px;
        height: 28px;
        background: var(--gt-green);
        color: white;
        border: none;
        border-radius: 14px;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        font-size: 12px;
        box-shadow: var(--gt-shadow);
    }

    .prompt-submit:hover:not(:disabled) {
        background: var(--gt-green-muted);
        transform: scale(1.05);
    }

    .prompt-submit:active:not(:disabled) {
        transform: scale(0.95);
    }

    .prompt-submit:disabled {
        background: var(--gt-border);
        color: var(--gt-text-muted);
        cursor: not-allowed;
        transform: none;
        box-shadow: none;
    }
    
    .prompt-suggestions {
        padding: 10px 16px 16px 16px;
        display: flex;
        gap: 6px;
        flex-wrap: wrap;
        border-top: 1px solid var(--gt-border);
        transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        opacity: 1;
    }

    .suggestion-chip {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 6px 10px;
        background: var(--gt-surface);
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius);
        font-size: 12px;
        font-weight: 500;
        color: var(--gt-text-secondary);
        cursor: pointer;
        transition: all 0.15s cubic-bezier(0.4, 0, 0.2, 1);
        white-space: nowrap;
        user-select: none;
    }

    .suggestion-chip:hover {
        background: rgba(45,106,79,0.08);
        border-color: rgba(45,106,79,0.2);
        color: var(--gt-green);
        transform: translateY(-1px) scale(1.02);
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    }

    .suggestion-chip:active {
        transform: translateY(0) scale(0.98);
    }

    .suggestion-chip i {
        font-size: 10px;
        opacity: 0.7;
        transition: opacity 0.15s ease;
    }

    .suggestion-chip:hover i {
        opacity: 0.9;
    }
    
    /* Hide suggestions when prompt has content */
    .prompt-container.has-content .prompt-suggestions {
        opacity: 0;
        max-height: 0;
        padding-top: 0;
        padding-bottom: 0;
        overflow: hidden;
    }
    
    /* Responsive Design */
    @media (max-width: 768px) {
        .prompt-container {
            min-width: calc(100vw - 24px);
            max-width: calc(100vw - 24px);
            left: 12px;
            right: 12px;
            transform: none;
            bottom: 12px;
        }
        
        .prompt-container.initial-state,
        .prompt-container.transitioning,
        .prompt-container.bottom-state {
            transform: none;
        }
        
        .prompt-wrapper {
            border-radius: 8px;
        }
        
        .prompt-input-wrapper {
            padding: 12px 14px;
            min-height: 44px;
            gap: 6px;
        }
        
        .prompt-suggestions {
            padding: 8px 14px 14px 14px;
            gap: 4px;
        }
        
        .suggestion-chip {
            font-size: 11px;
            padding: 5px 8px;
            border-radius: 14px;
        }
        
        .prompt-submit {
            width: 26px;
            height: 26px;
            border-radius: 13px;
            font-size: 11px;
        }
    }
    
    @media (max-width: 480px) {
        .prompt-container {
            min-width: calc(100vw - 16px);
            max-width: calc(100vw - 16px);
            left: 8px;
            right: 8px;
            bottom: 8px;
        }
        
        .prompt-wrapper {
            border-radius: 18px;
        }
        
        .prompt-suggestions {
            flex-direction: column;
            align-items: stretch;
            gap: 3px;
        }
        
        .suggestion-chip {
            justify-content: center;
            padding: 6px 10px;
        }
        
        .prompt-input {
            font-size: 14px;
        }
    }
    
    
    /* Legacy analysis panel CSS removed - only using simple-analysis-panel.css */
    
    /* Drawing Toolbar */
    .drawing-toolbar {
        position: absolute;
        top: 20px;
        left: 50%;
        transform: translateX(-50%);
        z-index: 500;
        display: flex;
        flex-direction: row;
        gap: 8px;
        min-width: 400px;
        background: var(--gt-surface-raised);
        border: 1px solid var(--gt-border);
        background-clip: padding-box;
        border-radius: var(--gt-radius);
        padding: 10px;
        box-shadow: var(--gt-shadow);
        width: 200px;
        max-width: calc(100vw - 120px);
        animation: toolbarFadeIn 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
    }
    
    @keyframes toolbarFadeIn {
        from {
            opacity: 0;
            transform: translateX(-50%) translateY(-10px) scale(0.98);
        }
        to {
            opacity: 1;
            transform: translateX(-50%) translateY(0) scale(1);
        }
    }
    
    .toolbar-section {
        display: contents;
    }
    
    .tool-button {
        display: flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border: none;
        border-radius: 10px;
        background: var(--gt-surface);
        color: var(--gt-text);
        cursor: pointer;
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        font-size: 13px;
        font-weight: 500;
        box-shadow: var(--gt-shadow);
        user-select: none;
        -webkit-user-select: none;
        position: relative;
        overflow: hidden;
    }

    .tool-button:hover {
        background: rgba(45, 106, 79, 0.1);
        color: var(--gt-green);
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.15);
        transform: translateY(-1px) scale(1.05);
    }

    .tool-button.active {
        background: linear-gradient(145deg, var(--gt-green) 0%, var(--gt-green-muted) 100%);
        color: white;
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.4);
        transform: translateY(0) scale(0.98);
    }

    .tool-button:disabled {
        opacity: 0.4;
        background: var(--gt-surface);
        color: var(--gt-text-muted);
    }
    
    /* Subtle ripple effect for button interactions */
    .tool-button::before {
        content: '';
        position: absolute;
        top: 50%;
        left: 50%;
        width: 0;
        height: 0;
        border-radius: 50%;
        background: radial-gradient(circle, rgba(45, 106, 79, 0.3) 0%, transparent 70%);
        transform: translate(-50%, -50%);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        opacity: 0;
        pointer-events: none;
    }
    
    .tool-button:active::before {
        width: 40px;
        height: 40px;
        opacity: 1;
    }
    
    /* Icon enhancement with vibrant colors */
    .tool-button i {
        position: relative;
        z-index: 2;
        text-shadow: 0 0.5px 1px rgba(0, 0, 0, 0.1);
        transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
        filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
    }
    
    /* Individual icon colors - semantic and vibrant */
    #select-tool i {
        color: #2d6a4f; /* Indigo - selection/cursor */
    }
    
    #point-tool i {
        color: #ef4444; /* Red - markers/points */
    }
    
    #line-tool i {
        color: #52b788; /* Purple - paths/routes */
    }
    
    #polygon-tool i {
        color: #06b6d4; /* Cyan - areas/shapes */
    }
    
    #rectangle-tool i {
        color: #10b981; /* Emerald - structured shapes */
    }
    
    #circle-tool i {
        color: #f59e0b; /* Amber - circular shapes */
    }
    
    #measure-tool i {
        color: #f97316; /* Orange - measurements */
    }
    
    #buffer-tool i {
        color: #84cc16; /* Lime - zones/buffers */
    }
    
    #clear-tool i {
        color: #6b7280; /* Gray - utility */
    }
    
    #export-tool i {
        color: #059669; /* Green - export/save */
    }
    
    /* Enhanced hover effects with color brightening */
    .tool-button:hover i {
        text-shadow: 0 0.5px 4px currentColor;
        filter: 
            drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15))
            brightness(1.1)
            saturate(1.2);
        transform: scale(1.05);
    }
    
    /* Active state maintains color with different styling */
    .tool-button.active i {
        color: white !important;
        text-shadow: 0 0.5px 3px rgba(0, 0, 0, 0.3);
        filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.2));
        transform: scale(0.95);
    }
    
    /* Subtle pulse animation for active tools */
    .tool-button.active i {
        animation: iconPulse 2s ease-in-out infinite;
    }
    
    @keyframes iconPulse {
        0%, 100% { 
            transform: scale(0.95);
            opacity: 1;
        }
        50% { 
            transform: scale(1);
            opacity: 0.9;
        }
    }
    
    /* Disabled state with desaturated colors */
    .tool-button:disabled i {
        color: var(--gt-text-muted) !important;
        text-shadow: none;
        filter: grayscale(1) opacity(0.5);
    }
    
    /* Basemap Selector - Bottom right (zoom controls are top-right) */
    .basemap-selector {
        position: relative;
        z-index: 51;
    }
    
    .basemap-toggle {
        width: 38px;
        height: 38px;
        background: var(--gt-surface-raised);
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius);
        transition: all 0.15s ease;
        box-shadow: var(--gt-shadow);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gt-text-secondary);
        font-size: 14px;
        font-weight: 500;
    }

    .basemap-toggle:hover {
        background: rgba(45, 106, 79, 0.08);
        border-color: rgba(45,106,79,0.3);
        transform: translateY(-1px);
        color: var(--gt-green);
    }

    .basemap-options {
        position: absolute;
        bottom: 44px;
        left: 0;
        width: 140px;
        background: var(--gt-surface-raised);
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius);
        box-shadow: var(--gt-shadow);
        opacity: 0;
        visibility: hidden;
        transform: translateY(8px) scale(0.98);
        transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
        padding: 8px;
    }
    
    .basemap-options.visible {
        opacity: 1;
        visibility: visible;
        transform: translateY(0) scale(1);
    }
    
    .basemap-option {
        display: flex;
        align-items: center;
        gap: 8px;
        padding: 6px 8px;
        border-radius: 4px;
        cursor: pointer;
        transition: all 0.15s ease;
        font-size: 13px;
        font-weight: 500;
        color: var(--gt-text);
    }

    .basemap-option:hover {
        background: rgba(45, 106, 79, 0.1);
        color: var(--gt-green);
    }

    .basemap-option.active {
        background: rgba(45, 106, 79, 0.15);
        color: var(--gt-green);
        font-weight: 600;
    }
    
    .basemap-preview {
        width: 16px;
        height: 16px;
        border-radius: 50%;
        border: 1px solid rgba(0, 0, 0, 0.1);
        flex-shrink: 0;
    }
    
    .basemap-preview.streets {
        background: linear-gradient(135deg, #e0dbd5, #9a9790);
    }
    
    .basemap-preview.satellite {
        background: linear-gradient(135deg, #065f46, #2a2a2d);
    }

    .basemap-preview.terrain {
        background: linear-gradient(135deg, #92400e, #a16207);
    }

    .basemap-preview.dark {
        background: linear-gradient(135deg, #1b1b1e, #3a3a3d);
    }

    .basemap-preview.minimal {
        background: linear-gradient(135deg, #ffffff, #faf8f5);
    }

    .basemap-preview.hybrid {
        background: linear-gradient(135deg, #065f46, #2a2a2d);
        position: relative;
    }
    .basemap-preview.hybrid::after {
        content: 'Aa';
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: rgba(255,255,255,0.7);
        font-size: 9px;
        font-weight: 600;
    }
    
    /* Feature Analysis Section in Main Panel */
    .feature-analysis-section {
        background: var(--gt-surface-raised);
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius);
        padding: 20px;
        margin-top: 20px;
        display: none;
        box-shadow: var(--gt-shadow);
        transition: all 0.3s ease;
    }
    
    .feature-analysis-section.visible {
        display: block;
    }
    
    .feature-analysis-header {
        display: flex;
        align-items: center;
        gap: 8px;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }
    
    .feature-analysis-title {
        font-size: 1rem;
        font-weight: 600;
        color: var(--gt-text);
        margin: 0;
        letter-spacing: -0.01em;
        transition: color 0.3s ease;
    }
    
    .feature-analysis-header i {
        font-size: 0.875rem;
        color: var(--gt-green);
        opacity: 0.8;
    }
    
    .feature-analysis-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }
    
    .feature-details,
    .feature-measurements {
        background: var(--gt-surface);
        padding: 14px;
        border-radius: var(--gt-radius);
        border: 1px solid var(--gt-border);
        box-shadow: var(--gt-shadow);
        transition: all 0.3s ease;
    }

    .feature-list {
        grid-column: 1 / -1;
        background: var(--gt-surface);
        padding: 14px;
        border-radius: var(--gt-radius);
        border: 1px solid var(--gt-border);
        max-height: 160px;
        overflow-y: auto;
        box-shadow: var(--gt-shadow);
        margin-top: 8px;
        transition: all 0.3s ease;
    }
    
    .feature-details h4,
    .feature-measurements h4,
    .feature-list h4 {
        font-size: 0.8rem;
        font-weight: 600;
        color: var(--gt-text-secondary);
        margin: 0 0 10px 0;
        letter-spacing: 0.02em;
        text-transform: uppercase;
        transition: color 0.3s ease;
    }
    
    .feature-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 8px;
        border-bottom: 1px solid var(--gray-100);
        cursor: pointer;
        transition: all var(--gt-transition);
        border-radius: var(--radius-sm);
    }
    
    .feature-item:hover {
        background: rgba(45,106,79,0.06);
        color: var(--gt-green);
    }
    
    .feature-item:last-child {
        border-bottom: none;
    }
    
    .feature-info {
        display: flex;
        flex-direction: column;
        gap: 4px;
    }
    
    .feature-type {
        font-size: 12px;
        font-weight: 600;
        color: var(--gray-700);
        text-transform: uppercase;
        letter-spacing: 0.5px;
    }
    
    .feature-value {
        font-size: 11px;
        color: var(--gray-500);
        font-family: 'JetBrains Mono', monospace;
    }
    
    .feature-actions {
        display: flex;
        gap: 4px;
    }
    
    .feature-action {
        width: 24px;
        height: 24px;
        border: 1px solid var(--gray-300);
        border-radius: var(--radius-sm);
        background: var(--gray-50);
        color: var(--gray-600);
        cursor: pointer;
        transition: all var(--gt-transition);
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
    }
    
    .feature-action:hover {
        background: var(--gt-error);
        border-color: var(--gt-error);
        color: white;
    }
    
    .analysis-metric {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px solid rgba(0, 0, 0, 0.04);
        font-size: 0.8rem;
        transition: all 0.2s ease;
    }
    
    .analysis-metric:last-child {
        border-bottom: none;
        padding-bottom: 0;
    }
    
    .analysis-metric:hover {
        background: rgba(45, 106, 79, 0.02);
        border-radius: 6px;
        padding-left: 8px;
        padding-right: 8px;
        margin: 0 -8px;
    }
    
    .analysis-metric-label {
        color: var(--gt-text-secondary);
        font-weight: 500;
        font-size: 0.75rem;
        letter-spacing: 0.01em;
        transition: color 0.3s ease;
    }
    
    .analysis-metric-value {
        color: var(--gt-text);
        font-weight: 600;
        font-family: 'JetBrains Mono', monospace;
        font-size: 0.8rem;
        background: rgba(45, 106, 79, 0.1);
        padding: 2px 6px;
        border-radius: 6px;
        border: 1px solid rgba(45, 106, 79, 0.2);
        transition: all 0.3s ease;
    }
    

    /* Map Controls Enhancement */
    .leaflet-top {
        top: var(--space-lg) !important;
    }
    
    .leaflet-right {
        right: var(--space-lg) !important;
    }

    /* Push bottom-left controls above the status bar (40px height + padding) */
    .leaflet-bottom.leaflet-left {
        bottom: 48px !important;
        left: var(--space-lg) !important;
    }
    
    /* Zoom controls in normal top-right position since toolbar is now centered */
    
    /* Remove map adjustment when panel is open */
    /* .map-container.with-panel .leaflet-right {
        right: 420px !important;
    } */
    
    .leaflet-control-zoom {
        border: none !important;
        box-shadow: var(--gt-shadow) !important;
        border-radius: var(--radius-lg) !important;
        overflow: hidden;
        z-index: 1000 !important;
    }
    
    .leaflet-control-zoom a {
        background: var(--gt-surface-raised) !important;
        color: var(--gt-text-secondary) !important;
        border: none !important;
        width: 44px !important;
        height: 44px !important;
        line-height: 44px !important;
        font-size: 1.125rem !important;
        font-weight: 600 !important;
        transition: all 0.15s ease !important;
    }

    .leaflet-control-zoom a:hover {
        background: var(--gt-surface) !important;
        color: var(--gt-green) !important;
        transform: scale(1.05);
    }
    
    .leaflet-control-attribution {
        background: rgba(255, 255, 255, 0.9) !important;
        border-radius: var(--radius-lg) 0 0 0 !important;
        padding: 8px 16px !important;
        font-size: 0.75rem !important;
        color: var(--gray-600) !important;
        border: none !important;
        box-shadow: var(--gt-shadow) !important;
    }
    
    /* Status Bar */
    .status-bar {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        height: 40px;
        background: var(--gt-surface-raised);
        border-top: 1px solid var(--gt-border);
        display: flex;
        align-items: center;
        padding: 0 16px;
        z-index: 50;
        transition: all 0.3s ease;
    }

    .status-item {
        display: flex;
        align-items: center;
        gap: 4px;
        font-size: 0.8rem;
        color: var(--gt-text-secondary);
        margin-right: 16px;
        transition: color 0.3s ease;
    }
    
    .status-item i {
        font-size: 0.75rem;
    }
    
    .status-indicator {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: var(--gt-green-light);
        margin-right: 4px;
    }
    
    .status-indicator.warning {
        background: #f59e0b;
    }
    
    .status-indicator.error {
        background: var(--gt-error);
    }
    

    /* Modern Help Card Styles */
    .help-card {
        position: fixed;
        bottom: 120px;
        left: 20px;
        width: 320px;
        background: var(--gt-surface-raised);
        border: 1px solid var(--gt-border);
        border-radius: var(--gt-radius);
        box-shadow: var(--gt-shadow);
        z-index: 1500;
        opacity: 0;
        transform: translateX(-100%) scale(0.98);
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        pointer-events: none;
    }
    
    .help-card.show {
        opacity: 1;
        transform: translateX(0) scale(1);
        pointer-events: auto;
        animation: helpCardEntrance 0.6s ease-out;
    }
    
    @keyframes helpCardEntrance {
        0% {
            opacity: 0;
            transform: translateX(-20px) translateY(10px) scale(0.9);
        }
        60% {
            transform: translateX(5px) scale(1.02);
        }
        100% {
            opacity: 1;
            transform: translateX(0) scale(1);
        }
    }
    

    .help-card-content {
        padding: 20px;
    }
    
    .help-card-header {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        margin-bottom: 16px;
    }
    
    .help-card-title {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        flex: 1;
    }
    
    .help-icon {
        width: 36px;
        height: 36px;
        background: var(--gt-green);
        border-radius: 8px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 16px;
        flex-shrink: 0;
        box-shadow: 0 4px 12px rgba(45, 106, 79, 0.25);
    }
    
    .help-text h4 {
        font-size: 15px;
        font-weight: 600;
        color: var(--gt-text);
        margin: 0 0 2px 0;
        line-height: 1.2;
    }

    .help-text p {
        font-size: 13px;
        color: var(--gt-text-muted);
        margin: 0;
        line-height: 1.3;
    }
    
    .help-card-close {
        background: none;
        border: none;
        width: 24px;
        height: 24px;
        border-radius: var(--gt-radius-sm);
        cursor: pointer;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gt-text-muted);
        font-size: 12px;
        transition: all 0.2s ease;
        flex-shrink: 0;
    }

    .help-card-close:hover {
        background: var(--gt-surface);
        color: var(--gt-text);
        transform: scale(1.02);
    }
    
    .help-steps {
        margin-bottom: 16px;
    }
    
    .step-item {
        display: flex;
        align-items: flex-start;
        gap: 12px;
        padding: 12px 0;
        border-bottom: 1px solid var(--gt-border);
        opacity: 0.5;
        transition: all 0.3s ease;
    }

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

    .step-item.active {
        opacity: 1;
    }

    .step-number {
        width: 24px;
        height: 24px;
        background: var(--gt-surface);
        color: var(--gt-text-muted);
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 12px;
        font-weight: 600;
        flex-shrink: 0;
        transition: all 0.3s ease;
    }

    .step-item.active .step-number {
        background: var(--gt-green);
        color: white;
        transform: scale(1.02);
    }

    .step-content {
        flex: 1;
    }

    .step-title {
        font-size: 13px;
        font-weight: 600;
        color: var(--gt-text);
        margin-bottom: 2px;
    }

    .step-description {
        font-size: 12px;
        color: var(--gt-text-muted);
        margin-bottom: 8px;
        line-height: 1.3;
    }
    
    .step-action {
        background: rgba(45,106,79,0.06);
        color: var(--gt-green);
        border: 1px solid rgba(45,106,79,0.2);
        border-radius: var(--gt-radius-sm);
        padding: 4px 8px;
        font-size: 11px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
    }
    
    .step-action:hover {
        background: rgba(45,106,79,0.12);
        border-color: rgba(45,106,79,0.3);
        transform: translateY(-1px);
    }

    .help-progress {
        margin-bottom: 16px;
        padding-top: 12px;
        border-top: 1px solid var(--gt-border);
    }

    .progress-bar {
        width: 100%;
        height: 4px;
        background: var(--gt-surface);
        border-radius: 2px;
        overflow: hidden;
        margin-bottom: 8px;
    }

    .progress-fill {
        height: 100%;
        background: linear-gradient(90deg, var(--gt-green) 0%, var(--gt-green-muted) 100%);
        width: 33.33%;
        transition: width 0.4s ease;
        border-radius: 2px;
    }

    .progress-text {
        font-size: 11px;
        color: var(--gt-text-muted);
        text-align: center;
    }

    .help-navigation {
        display: flex;
        gap: 8px;
        justify-content: space-between;
    }

    .nav-btn {
        flex: 1;
        padding: 8px 12px;
        border-radius: var(--gt-radius-sm);
        font-size: 12px;
        font-weight: 500;
        cursor: pointer;
        transition: all 0.2s ease;
        border: 1px solid var(--gt-border);
    }

    .nav-btn.prev {
        background: var(--gt-surface);
        color: var(--gt-text-secondary);
    }

    .nav-btn.next {
        background: var(--gt-green);
        color: white;
        border-color: var(--gt-green);
    }

    .nav-btn:hover:not(:disabled) {
        transform: translateY(-1px);
    }

    .nav-btn.prev:hover:not(:disabled) {
        background: var(--gt-surface-raised);
    }

    .nav-btn.next:hover {
        background: var(--gt-green-muted);
    }

    .nav-btn:disabled {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Help Button - Quick Start Guide - Bottom Left */
    .help-button {
        position: fixed;
        bottom: 60px;
        left: 20px;
        width: 48px;
        height: 48px;
        background: var(--gt-green);
        color: white;
        border: none;
        border-radius: 50%;
        cursor: pointer;
        z-index: 1500;
        display: flex;
        align-items: center;
        justify-content: center;
        font-size: 1.125rem;
        box-shadow: var(--gt-shadow);
        transition: all var(--gt-transition);
    }
    
    .help-button:hover {
        transform: scale(1.02);
        box-shadow: var(--gt-shadow);
        background: var(--gt-green-muted);
    }


    /* Visual Guide Arrows */
    .guide-arrow {
        position: fixed;
        z-index: 1600;
        opacity: 0;
        visibility: hidden;
        transition: all 0.3s ease;
        pointer-events: none;
    }
    
    .guide-arrow.show {
        opacity: 1;
        visibility: visible;
        animation: arrowBounce 2s infinite;
    }
    
    #promptArrow {
        top: 40%;
        left: 50%;
        transform: translateX(-50%);
    }
    
    #drawingArrow {
        top: 80px;
        left: 50%;
        transform: translateX(-50%);
    }
    
    .arrow-content {
        position: relative;
        background: var(--gt-green);
        color: white;
        padding: 8px 12px;
        border-radius: 8px;
        font-size: 12px;
        font-weight: 500;
        box-shadow: var(--gt-shadow);
        white-space: nowrap;
    }
    
    .arrow-pointer {
        position: absolute;
        width: 0;
        height: 0;
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
    
    #promptArrow .arrow-pointer {
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-top: 6px solid var(--gt-green);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
    
    #drawingArrow .arrow-pointer {
        bottom: -6px;
        left: 50%;
        transform: translateX(-50%);
        border-top: 6px solid var(--gt-green);
        border-left: 6px solid transparent;
        border-right: 6px solid transparent;
    }
    
    @keyframes arrowBounce {
        0%, 100% {
            transform: translateX(-50%) translateY(0);
        }
        50% {
            transform: translateX(-50%) translateY(-5px);
        }
    }

    /* Responsive Design */
    @media (max-width: 1200px) {
        .prompt-container {
            min-width: 500px;
            max-width: 600px;
        }
        
        .drawing-toolbar {
            width: 180px;
            grid-template-columns: repeat(4, 1fr);
        }
        
        .tool-button {
            width: 28px;
            height: 28px;
            font-size: 12px;
        }
    }
    
    @media (max-width: 1024px) {
        .workflow-sidebar { width: 240px; }
        .prompt-container {
            min-width: 450px;
            max-width: 550px;
            bottom: 50px;
        }

        .drawing-toolbar {
            top: 15px;
            width: 160px;
            grid-template-columns: repeat(4, 1fr);
        }
        
        .tool-button {
            width: 26px;
            height: 26px;
            font-size: 11px;
        }
        
        .status-bar {
            height: 35px;
        }
        
        .status-item {
            font-size: 0.75rem;
            margin-right: 16px;
        }
    }
    
    /* Help Card & Arrows Responsive */
    @media (max-width: 768px) {
        .help-button {
            bottom: 55px;
            right: 15px;
            width: 44px;
            height: 44px;
            font-size: 1rem;
        }
        
        .help-card {
            bottom: 110px;
            left: 15px;
            right: 15px;
            width: auto;
            max-width: 300px;
        }
        
        .help-card-content {
            padding: 16px;
        }
        
        .help-text h4 {
            font-size: 14px;
        }
        
        .help-text p {
            font-size: 12px;
        }
        
        .step-item {
            padding: 10px 0;
        }
        
        .step-title {
            font-size: 12px;
        }
        
        .step-description {
            font-size: 11px;
        }
        
        .step-action {
            font-size: 10px;
            padding: 3px 6px;
        }
        
        #promptArrow {
            top: 45%;
        }
        
        #drawingArrow {
            top: 90px;
        }
        
        .arrow-content {
            font-size: 11px;
            padding: 6px 10px;
        }
    }


    @media (max-width: 768px) {
        /* App layout adjustments */
        .app-layout {
            top: 50px;
            height: calc(100vh - 50px);
        }
        
        /* Prompt container for tablet */
        .prompt-container {
            width: 90%;
            max-width: 500px;
            min-width: 350px;
            bottom: 45px;
        }
        
        .prompt-form {
            height: 44px;
        }
        
        .prompt-input {
            font-size: 0.9rem;
            padding: 0 16px;
            min-height: 36px;
            max-height: 36px;
        }
        
        .prompt-submit {
            width: 36px;
            height: 36px;
        }
        
        /* Drawing toolbar for tablet */
        .drawing-toolbar {
            top: 12px;
            width: 140px;
            grid-template-columns: repeat(3, 1fr);
            gap: 4px;
            padding: 8px;
        }
        
        .tool-button {
            width: 24px;
            height: 24px;
            font-size: 10px;
            border-radius: 8px;
        }
        
        /* Status bar for tablet */
        .status-bar {
            height: 32px;
            padding: 0 16px;
        }
        
        .status-item {
            font-size: 0.7rem;
            margin-right: 8px;
        }
        
        .status-item:last-child {
            display: none;
        }
        
        .feature-analysis-content {
            grid-template-columns: 1fr;
        }
    }
    
    @media (max-width: 640px) {
        /* Mobile app layout */
        .app-layout {
            top: 50px;
            height: calc(100vh - 50px);
        }
        
        /* Mobile prompt container - better positioning */
        .prompt-container {
            position: fixed;
            width: calc(100vw - 16px);
            max-width: none;
            min-width: none;
            bottom: 80px;
            left: 8px;
            right: 8px;
            transform: none;
            z-index: 950;
            padding: 6px;
            border-radius: 8px;
        }

        /* Mobile responsive states */
        .prompt-container.initial-state {
            top: 50%;
            bottom: auto;
            transform: translate(0, -50%);
            left: 8px;
            right: 8px;
        }
        
        .prompt-container.bottom-state {
            top: auto;
            bottom: 80px;
            transform: none;
            left: 8px;
            right: 8px;
        }
        
        /* Mobile dark theme container */
        
        .prompt-form {
            height: 44px;
            padding: 3px;
            border-radius: 8px;
        }
        
        .prompt-input {
            font-size: 0.9rem;
            padding: 0 14px;
            min-height: 36px;
            max-height: 36px;
            border-radius: 18px;
        }
        
        .prompt-submit {
            width: 36px;
            height: 36px;
            border-radius: 18px;
            margin-right: 2px;
        }
        
        /* Mobile drawing toolbar - improved spacing */
        .drawing-toolbar {
            position: fixed;
            top: auto;
            bottom: 140px;
            left: 8px;
            right: 8px;
            transform: none;
            width: auto;
            max-width: none;
            grid-template-columns: repeat(5, 1fr);
            gap: 8px;
            padding: 8px;
            border-radius: 14px;
        }
        
        .tool-button {
            width: auto;
            height: 36px;
            min-width: 36px;
            font-size: 11px;
            border-radius: 10px;
            padding: 0 4px;
        }
        
        /* Mobile status bar - more compact */
        .status-bar {
            height: 32px;
            padding: 0 8px;
        }
        
        .status-item {
            font-size: 0.7rem;
            margin-right: 12px;
        }
        
        .status-item:nth-child(3),
        .status-item:nth-child(4) {
            display: none;
        }
        
        /* Hide UI elements that clutter mobile */
        .leaflet-control-attribution {
            display: none !important;
        }
        
        /* Ensure map controls are visible */
        .leaflet-control-zoom {
            margin-right: 8px !important;
            margin-top: 8px !important;
        }
        
        .leaflet-control-zoom a {
            width: 36px !important;
            height: 36px !important;
            line-height: 36px !important;
            font-size: 18px !important;
        }
        
        /* Mobile viewport adjustments */
        .map-container {
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            width: 100%;
            height: 100%;
        }
        
        #map {
            width: 100%;
            height: 100%;
            min-height: 100%;
        }
    }
    
    @media (max-width: 480px) {
        /* Extra small mobile devices - iPhone SE and similar */
        .app-layout {
            top: 50px;
            height: calc(100vh - 50px);
        }
        
        /* Compact prompt for small screens */
        .prompt-container {
            bottom: 70px;
            left: 6px;
            right: 6px;
            width: calc(100vw - 12px);
        }
        
        .prompt-form {
            height: 40px;
            padding: 2px;
            border-radius: 8px;
        }
        
        .prompt-input {
            font-size: 0.85rem;
            padding: 0 12px;
            min-height: 32px;
            max-height: 32px;
            border-radius: 8px;
        }
        
        .prompt-submit {
            width: 32px;
            height: 32px;
            border-radius: 8px;
        }
        
        /* Compact drawing toolbar */
        .drawing-toolbar {
            bottom: 125px;
            left: 6px;
            right: 6px;
            grid-template-columns: repeat(5, 1fr);
            gap: 6px;
            padding: 6px;
            border-radius: 8px;
        }
        
        .tool-button {
            height: 32px;
            min-width: 32px;
            font-size: 10px;
            border-radius: 8px;
        }
        
        /* Minimal status bar */
        .status-bar {
            height: 28px;
            padding: 0 6px;
        }
        
        .status-item {
            font-size: 0.65rem;
            margin-right: 8px;
        }
        
        .status-item:not(:first-child) {
            display: none;
        }
        
        /* Optimize map controls for small screens */
        .leaflet-control-zoom {
            margin-right: 6px !important;
            margin-top: 6px !important;
        }
        
        .leaflet-control-zoom a {
            width: 32px !important;
            height: 32px !important;
            line-height: 32px !important;
            font-size: 16px !important;
        }
    }
    
    /* Landscape orientation adjustments */
    @media (max-height: 500px) and (orientation: landscape) {
        .prompt-container {
            bottom: 20px;
        }
        
        .drawing-toolbar {
            bottom: 60px;
        }
        
        .status-bar {
            display: none;
        }
    }
    
    /* Touch-friendly improvements */
    @media (pointer: coarse) {
        .tool-button {
            min-width: 36px;
            min-height: 36px;
        }
        
        .prompt-submit {
            min-width: 36px;
            min-height: 36px;
        }
        
        .navbar-nav .nav-link {
            min-height: 44px;
            display: flex;
            align-items: center;
        }
        
        /* Prevent accidental zoom on form inputs */
        .prompt-input {
            font-size: 16px !important;
        }
    }
    
    /* Additional mobile-specific fixes */
    @media (max-width: 640px) {
        /* Prevent horizontal scroll */
        body.explore-page {
            overflow-x: hidden;
            width: 100vw;
            max-width: 100vw;
            position: relative;
        }
        
        /* Force all containers to stay within viewport */
        .app-layout,
        .map-container,
        #map {
            width: 100vw;
            max-width: 100vw;
            overflow-x: hidden;
        }
        
        /* Fix webkit mobile issues */
        .prompt-input {
            -webkit-appearance: none;
            -webkit-border-radius: 18px;
            border-radius: 18px;
        }
        
        .prompt-submit {
            -webkit-appearance: none;
            -webkit-border-radius: 18px;
            border-radius: 18px;
        }
        
        /* Improve touch targets */
        .tool-button,
        .prompt-submit {
            -webkit-tap-highlight-color: rgba(0,0,0,0);
            tap-highlight-color: rgba(0,0,0,0);
        }
        
        /* Fix map interaction on mobile */
        .map-container,
        #map {
            touch-action: manipulation;
        }
        
        /* Prevent text selection on UI elements */
        .drawing-toolbar,
        .prompt-container,
        .status-bar {
            -webkit-user-select: none;
            -moz-user-select: none;
            -ms-user-select: none;
            user-select: none;
        }
        
        /* Allow text selection in input */
        .prompt-input {
            -webkit-user-select: text;
            -moz-user-select: text;
            -ms-user-select: text;
            user-select: text;
        }
        
        /* Ensure proper stacking order */
        .prompt-container {
            z-index: 1000;
        }
        
        .drawing-toolbar {
            z-index: 999;
        }
        
        .status-bar {
            z-index: 50;
        }
        
        /* Fix iOS Safari issues */
        .app-layout {
            -webkit-overflow-scrolling: touch;
        }
        
        /* Ensure map fills the screen properly */
        .map-container {
            min-height: calc(100vh - 50px);
            max-height: calc(100vh - 50px);
        }
    }
    
    /* Very small screens (iPhone 5/SE and similar) */
    @media (max-width: 375px) {
        .app-layout {
            top: 50px;
            height: calc(100vh - 50px);
        }
        
        /* Compact prompt */
        .prompt-container {
            position: fixed;
            left: 2px;
            right: 2px;
            width: calc(100vw - 4px);
            bottom: 60px;
            z-index: 1000;
        }
        
        .prompt-form {
            height: 36px;
            padding: 1px;
            border-radius: 18px;
        }
        
        .prompt-input {
            font-size: 14px;
            padding: 0 10px;
            min-height: 30px;
            max-height: 30px;
            border-radius: 15px;
        }
        
        .prompt-submit {
            width: 30px;
            height: 30px;
            border-radius: 15px;
            margin-right: 1px;
        }
        
        /* Compact drawing toolbar */
        .drawing-toolbar {
            position: fixed;
            bottom: 110px;
            left: 2px;
            right: 2px;
            width: auto;
            grid-template-columns: repeat(5, 1fr);
            gap: 2px;
            padding: 3px;
            border-radius: 10px;
        }
        
        .tool-button {
            width: auto;
            height: 28px;
            min-width: 28px;
            font-size: 8px;
            border-radius: 6px;
            padding: 0 2px;
        }
        
        /* Compact status bar */
        .status-bar {
            height: 24px;
            padding: 0 4px;
        }
        
        .status-item {
            font-size: 0.6rem;
            margin-right: 6px;
        }
        
        .status-item:not(:first-child) {
            display: none;
        }
        
        /* Compact map controls */
        .leaflet-control-zoom {
            margin-right: 4px !important;
            margin-top: 4px !important;
        }
        
        .leaflet-control-zoom a {
            width: 28px !important;
            height: 28px !important;
            line-height: 28px !important;
            font-size: 14px !important;
        }
        
        /* Ensure map fills properly */
        .map-container {
            min-height: calc(100vh - 40px);
            max-height: calc(100vh - 40px);
        }
    }
    
    /* Extra small screens (iPhone 5 and smaller) */
    @media (max-width: 320px) {
        .app-layout {
            top: 50px;
            height: calc(100vh - 50px);
        }
        
        /* Extreme compact prompt */
        .prompt-container {
            bottom: 55px;
            left: 1px;
            right: 1px;
            width: calc(100vw - 2px);
        }
        
        .prompt-form {
            height: 32px;
            border-radius: 8px;
        }
        
        .prompt-input {
            font-size: 13px;
            padding: 0 8px;
            min-height: 26px;
            max-height: 26px;
            border-radius: 13px;
        }
        
        .prompt-submit {
            width: 26px;
            height: 26px;
            border-radius: 13px;
        }
        
        /* Extreme compact toolbar */
        .drawing-toolbar {
            bottom: 100px;
            left: 1px;
            right: 1px;
            grid-template-columns: repeat(4, 1fr);
            gap: 1px;
            padding: 2px;
            border-radius: 8px;
        }
        
        .tool-button {
            height: 24px;
            min-width: 24px;
            font-size: 7px;
            border-radius: 4px;
        }
        
        .status-bar {
            height: 20px;
            padding: 0 2px;
        }
        
        .status-item {
            font-size: 0.55rem;
        }
        
        /* Very compact map controls */
        .leaflet-control-zoom a {
            width: 24px !important;
            height: 24px !important;
            line-height: 24px !important;
            font-size: 12px !important;
        }
        
        .map-container {
            min-height: calc(100vh - 36px);
            max-height: calc(100vh - 36px);
        }
    }*/
    
    /* Performance optimizations - DISABLED FOR DEBUGGING */
    /*
    .leaflet-container {
        will-change: transform;
    }
    
    .analysis-panel,
    .prompt-container {
        will-change: transform;
    }
    */
    
    /* Accessibility */
    @media (prefers-reduced-motion: reduce) {
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /* High Contrast Mode */
    @media (prefers-contrast: high) {
        .analysis-panel,
        .prompt-form {
            border: 2px solid var(--gt-text);
        }
        
        .example-query,
        .result-section {
            border: 2px solid var(--gt-text);
        }
    }

    /* Always-Visible Help & Docs Button - Below Banner */
    .help-docs-floating-btn {
        position: fixed;
        top: 70px;
        right: 20px;
        background: var(--gt-green);
        color: white;
        border: none;
        border-radius: var(--gt-radius);
        padding: 8px 12px;
        font-size: 12px;
        font-weight: 600;
        cursor: pointer;
        z-index: 1000;
        box-shadow: var(--gt-shadow);
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        display: flex;
        align-items: center;
        gap: 6px;
        font-family: var(--gt-font);
    }

    .help-docs-floating-btn:hover {
        transform: translateY(-1px) scale(1.02);
        box-shadow: var(--gt-shadow);
        background: var(--gt-green-muted);
    }

    .help-docs-floating-btn:active {
        transform: translateY(0) scale(0.98);
    }

    .help-docs-floating-btn i {
        font-size: 13px;
        color: white;
    }

    .help-docs-label {
        font-size: 12px;
        font-weight: 600;
        color: white;
        white-space: nowrap;
    }

    /* Responsive adjustments */
    @media (max-width: 768px) {
        .help-docs-floating-btn {
            top: 65px;
            right: 15px;
            padding: 8px 10px;
            border-radius: 8px;
        }

        .help-docs-label {
            display: none; /* Hide label on mobile, keep just icon */
        }

        .help-docs-floating-btn i {
            font-size: 14px;
        }
    }

    @media (max-width: 480px) {
        .help-docs-floating-btn {
            top: 60px;
            right: 12px;
            padding: 6px 8px;
        }
    }

    /* Create Project Modal Styles */
    .modal {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        z-index: 10000;
        display: flex;
        align-items: center;
        justify-content: center;
        opacity: 0;
        animation: fadeIn 0.2s ease-out forwards;
    }

    .modal-backdrop {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.5);
    }

    .modal-dialog {
        position: relative;
        max-width: 500px;
        width: 90%;
        max-height: 80vh;
        margin: 0 auto;
        transform: translateY(-20px);
        animation: slideIn 0.2s ease-out forwards;
    }

    .modal-content {
        background: var(--gt-surface-raised);
        border-radius: var(--gt-radius);
        box-shadow: 0 4px 16px rgba(0,0,0,0.2);
        overflow: hidden;
    }

    .modal-header {
        padding: 24px 24px 20px;
        border-bottom: 1px solid var(--gt-border);
        display: flex;
        align-items: center;
        justify-content: space-between;
    }

    .modal-title {
        font-size: 1.25rem;
        font-weight: 600;
        color: var(--gt-text);
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0;
    }

    .modal-title i {
        color: var(--gt-green);
    }

    .modal-close {
        background: none;
        border: none;
        width: 32px;
        height: 32px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--gt-text-muted);
        border-radius: var(--gt-radius-sm);
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .modal-close:hover {
        background: var(--gt-surface);
        color: var(--gt-text);
    }

    .modal-body {
        padding: 20px 24px;
    }

    .form-group {
        margin-bottom: 20px;
    }

    .form-group label {
        display: block;
        font-weight: 500;
        color: var(--gt-text-secondary);
        margin-bottom: 6px;
        font-size: 0.875rem;
    }

    .form-control {
        width: 100%;
        padding: 12px 16px;
        border: 2px solid var(--gt-border);
        border-radius: var(--gt-radius);
        font-size: 0.875rem;
        transition: border-color 0.2s ease;
        background: var(--gt-surface);
        color: var(--gt-text);
        font-family: inherit;
        resize: vertical;
    }

    .form-control:focus {
        outline: none;
        border-color: var(--gt-green);
        box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.1);
    }

    .form-control::placeholder {
        color: var(--gt-text-muted);
    }

    .text-red {
        color: var(--gt-error);
    }

    .modal-footer {
        padding: 20px 24px 24px;
        border-top: 1px solid var(--gt-border);
        display: flex;
        gap: 12px;
        justify-content: flex-end;
    }

    .btn {
        padding: 10px 20px;
        border-radius: var(--gt-radius);
        font-size: 0.875rem;
        font-weight: 500;
        border: 2px solid;
        cursor: pointer;
        transition: all 0.2s ease;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .btn-secondary {
        background: var(--gt-surface);
        border-color: var(--gt-border);
        color: var(--gt-text-secondary);
    }

    .btn-secondary:hover {
        background: var(--gt-surface-raised);
        border-color: var(--gt-border);
    }

    .btn-primary {
        background: var(--gt-green);
        border-color: var(--gt-green);
        color: white;
    }

    .btn-primary:hover {
        background: var(--gt-green-muted);
        border-color: var(--gt-green-muted);
    }

    @keyframes fadeIn {
        to {
            opacity: 1;
        }
    }

    @keyframes slideIn {
        to {
            transform: translateY(0);
        }
    }


    /* ═══ Map controls — borderless ═══ */
    .leaflet-control-zoom a,
    .leaflet-bar a {
        border: none !important;
        border-bottom: none !important;
    }
    .leaflet-control-zoom,
    .leaflet-bar {
        border: none !important;
        border-radius: 10px !important;
        overflow: hidden;
        box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    }

    /* ═══ Generous typography ═══ */
    .sidebar-section-label {
        font-size: 10px !important;
        letter-spacing: 0.12em !important;
        text-transform: uppercase !important;
        opacity: 0.5 !important;
        font-weight: 600 !important;
    }
