*{margin:0;padding:0;box-sizing:border-box}:root{--bg: #f8f9fa;--surface: #ffffff;--border: #dee2e6;--text: #212529;--text-secondary: #6c757d;--primary: #4361ee;--primary-hover: #3a56d4;--success: #2e7d32;--error: #c62828;--radius: 8px}body{font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif;background:var(--bg);color:var(--text);line-height:1.6}.app{min-height:100vh;max-width:1400px;margin:0 auto;padding:0 24px}.app-header{padding:24px 0 16px;border-bottom:1px solid var(--border)}.app-header h1{font-size:1.6rem;font-weight:700;color:var(--text)}.subtitle{color:var(--text-secondary);font-size:.9rem;margin-top:4px}.app-main{display:grid;grid-template-columns:380px 1fr;gap:32px;padding:24px 0}.sidebar{display:flex;flex-direction:column;gap:16px}.content{min-height:400px}.search-bar{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.search-row{display:flex;gap:8px}.search-input{flex:1;padding:10px 14px;border:1px solid var(--border);border-radius:var(--radius);font-size:.95rem;outline:none;transition:border-color .2s}.search-input:focus{border-color:var(--primary)}.url-input{width:100%;margin-top:8px;padding:8px 14px;border:1px solid var(--border);border-radius:var(--radius);font-size:.85rem;outline:none}.search-button{padding:10px 20px;background:var(--primary);color:#fff;border:none;border-radius:var(--radius);font-size:.9rem;font-weight:600;cursor:pointer;transition:background .2s;white-space:nowrap}.search-button:hover:not(:disabled){background:var(--primary-hover)}.search-button:disabled{opacity:.5;cursor:not-allowed}.progress-panel{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.progress-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.status-badge{display:inline-block;padding:3px 10px;border-radius:12px;font-size:.8rem;font-weight:600;background:#e9ecef}.status-badge.status-running{background:#e3f2fd;color:#1565c0}.status-badge.status-done{background:#e8f5e9;color:var(--success)}.status-badge.status-error{background:#ffebee;color:var(--error)}.ws-indicator{font-size:.75rem;color:var(--success)}.progress-details{display:flex;flex-direction:column;gap:6px}.progress-row{display:flex;justify-content:space-between;font-size:.85rem}.progress-label{color:var(--text-secondary)}.event-log{margin-top:12px;font-size:.8rem}.event-log summary{cursor:pointer;color:var(--text-secondary)}.event-log ul{list-style:none;margin-top:8px;max-height:200px;overflow-y:auto}.event-item{padding:2px 0;font-family:monospace;font-size:.75rem}.error-banner{background:#ffebee;border:1px solid #ffcdd2;color:var(--error);padding:10px 14px;border-radius:var(--radius);font-size:.85rem}.history-list{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:16px}.history-list h3{font-size:.9rem;font-weight:600;margin-bottom:8px}.history-list ul{list-style:none}.history-item{display:flex;justify-content:space-between;align-items:center;padding:8px 0;border-bottom:1px solid var(--border);cursor:pointer;transition:background .15s}.history-item:hover{background:var(--bg)}.history-item.selected{background:#e3f2fd;margin:0 -8px;padding:8px;border-radius:4px}.history-query{font-size:.85rem;font-weight:500}.history-status{font-size:.75rem;padding:2px 8px;border-radius:10px;background:#e9ecef}.report-view{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:32px}.report-stats{display:flex;gap:16px;margin-bottom:24px;padding-bottom:16px;border-bottom:1px solid var(--border);font-size:.85rem;color:var(--text-secondary)}.report-content h2{font-size:1.3rem;margin:24px 0 12px;padding-bottom:8px;border-bottom:2px solid var(--primary)}.report-content h3{font-size:1.1rem;margin:16px 0 8px}.report-content p{margin:8px 0}.report-content ul,.report-content ol{margin:8px 0;padding-left:24px}.report-content li{margin:4px 0}.report-content strong{font-weight:600}.report-content a{color:var(--primary)}.report-content code{background:#f1f3f5;padding:1px 5px;border-radius:3px;font-size:.9em}.references-section{margin-top:24px}.references-section summary{cursor:pointer;font-weight:600;color:var(--text-secondary)}.references-section ol{margin-top:8px;font-size:.85rem}.references-section a{color:var(--primary);word-break:break-all}.empty-state{display:flex;align-items:center;justify-content:center;min-height:300px;color:var(--text-secondary);font-size:1rem}@media(max-width:900px){.app-main{grid-template-columns:1fr}.sidebar{order:1}.content{order:2}}
