@import "https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap";
:root{--bg-color:#f4f4f5;--text-main:#18181b;--text-muted:#52525b;--card-bg:#fff;--card-border:#e4e4e7;--accent:#2563eb;--accent-secondary:#3b82f6;--accent-light:#dbeafe;--dark-brand:#09090b;--accent-glow:#2563eb0d;--success:#16a34a}*{box-sizing:border-box;overflow-wrap:break-word;word-break:break-word;margin:0;padding:0}html,body{max-width:100vw;overflow-x:hidden}.error-msg{color:#dc2626;background:#fef2f2;border:1px solid #fee2e2;border-radius:6px;margin-bottom:1.5rem;padding:1rem;font-size:.9rem}body{background-color:var(--bg-color);color:var(--text-main);background:var(--bg-color);min-height:100vh;font-family:Inter,system-ui,-apple-system,sans-serif;font-size:1rem;font-weight:400;line-height:1.6}@keyframes pulse{0%{opacity:.6}50%{opacity:1}to{opacity:.6}}.dashboard-container{max-width:1200px;margin:0 auto;padding:1rem}.header{border-bottom:1px solid var(--card-border);flex-direction:column;gap:1.5rem;padding-bottom:1.5rem;display:flex}.header-brand{text-align:center;flex-direction:column;align-items:center;display:flex}.header-logo{object-fit:contain;width:60px;height:60px}.header h1{letter-spacing:-.025em;word-spacing:.5rem;color:var(--dark-brand);font-size:2.25rem;font-weight:800}.header p{color:var(--text-muted);margin-top:-.5rem;font-size:1rem}.tldr-header-row{justify-content:space-between;align-items:center;display:flex}.tldr-timestamp{color:var(--text-muted);font-size:.8rem;font-weight:500}.tldr-badge{background:var(--accent-light);color:var(--accent);border-radius:20px;padding:.25rem .75rem;font-size:.85rem;font-weight:700;display:inline-block}.header-actions{align-items:center;gap:.75rem;width:100%;display:flex}.lang-toggle-btn{color:var(--accent);border:1.5px solid var(--accent);cursor:pointer;white-space:nowrap;background:0 0;border-radius:8px;justify-content:center;align-items:center;min-width:120px;height:44px;padding:0 1.25rem;font-size:.8rem;font-weight:600;transition:all .2s;display:inline-flex}.lang-toggle-btn:hover{background:var(--accent);color:#fff;transform:translateY(-1px);box-shadow:0 4px 12px #2563eb4d}button.refresh-btn{background:var(--accent);color:#fff;border:1.5px solid var(--accent);cursor:pointer;border-radius:8px;flex:1;justify-content:center;align-items:center;min-width:120px;height:44px;padding:0 1.25rem;font-size:.8rem;font-weight:600;transition:all .2s;display:inline-flex}button.refresh-btn:hover:not(:disabled){background:var(--accent-secondary);border-color:var(--accent-secondary);transform:translateY(-1px);box-shadow:0 4px 12px #2563eb4d}button.refresh-btn:disabled{opacity:.7;cursor:not-allowed;animation:1.5s infinite pulse}.card-grid{grid-template-columns:minmax(0,1fr);gap:1.5rem;width:100%;margin-top:1.5rem;display:grid}.card{background:var(--card-bg);border:1px solid var(--card-border);border-radius:8px;flex-direction:column;width:100%;min-width:0;padding:1.5rem;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000001a,0 1px 2px #0000000f}.scrollable-content{flex:1;overflow:hidden auto}.scrollable-content::-webkit-scrollbar{width:5px}.scrollable-content::-webkit-scrollbar-track{background:#f1f1f1}.scrollable-content::-webkit-scrollbar-thumb{background:#d4d4d8;border-radius:4px}.fixed-height-card{height:400px}.card h2{color:var(--text-main);text-transform:uppercase;letter-spacing:.025em;align-items:center;gap:.5rem;margin-bottom:1.25rem;font-size:1.1rem;font-weight:700;display:flex}.ai-summary{background:#fff;grid-column:1/-1}.tldr-hero{background:#f8fafc;border:1px solid #e2e8f0;grid-column:1/-1;position:relative;overflow:hidden;padding:1.5rem!important}.tldr-badge{color:var(--accent);letter-spacing:-.02em;text-transform:none;background:0 0;align-items:center;gap:.75rem;margin-bottom:1.25rem;padding:0;font-size:1.5rem;font-weight:800;display:flex}.tldr-badge:after{content:"";background:linear-gradient(90deg,#3b82f680,#0000);flex:1;height:1px}.tldr-text{color:#1e293b;margin-left:.25rem;font-size:1.15rem;font-weight:500;line-height:1.6}.tldr-metrics{border-top:1px solid var(--card-border);margin-top:1.5rem;padding-top:1.5rem}.metrics-label{color:#71717a;text-transform:uppercase;letter-spacing:.05em;margin-bottom:.75rem;font-size:.85rem;font-weight:700}.tldr-metrics ul{grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:1.25rem;list-style:none;display:grid}.tldr-metrics li{color:var(--text-main);align-items:flex-start;gap:.75rem;font-size:1rem;display:flex}.tldr-metrics li:before{content:"•";color:var(--accent);font-weight:900}.markdown-body{color:var(--text-main);overflow-wrap:break-word;font-size:1rem}.markdown-body pre,.markdown-body code{white-space:pre-wrap;word-break:break-all;max-width:100%;overflow-x:auto}.markdown-body img{max-width:100%;height:auto}.markdown-body h1{color:#7c3aed;margin-bottom:1rem;font-size:1.5rem}.markdown-body h2{color:#2563eb;border-bottom:1px solid #0000000d;margin-top:1.5rem;margin-bottom:.75rem;padding-bottom:.25rem;font-size:1.15rem}.markdown-body p{margin-bottom:1rem}.markdown-body ul,.markdown-body ol{margin-bottom:1rem;margin-left:1.25rem}.markdown-body li{margin-bottom:.5rem}.markdown-body strong{color:#0f172a;font-weight:700}.status{color:var(--text-muted);align-items:center;gap:.5rem;font-size:.85rem;display:inline-flex}.dot{background:#ef4444;border-radius:50%;width:8px;height:8px}.dot.green{background:var(--success)}.data-list{font-size:.9rem;list-style:none}.data-list li{word-break:break-word;border-bottom:1px solid #0000000d;padding:.75rem 0}.data-list li:last-child{border-bottom:none}.text-muted{color:var(--text-muted);font-size:.8rem}.empty-state{color:var(--text-muted);padding:1rem 0;font-style:italic}@media (min-width:768px){.dashboard-container{padding:2rem}.header{flex-direction:row;justify-content:space-between;align-items:center;padding-bottom:2rem}.header-brand{text-align:left;flex-direction:row;gap:1rem}.header-logo{width:80px;height:80px}button.refresh-btn{flex:none;width:auto}.header-actions{width:auto}.card-grid{grid-template-columns:repeat(2,minmax(0,1fr));margin-top:2rem}.fixed-height-card{height:500px}.card h2{font-size:1.5rem}.tldr-hero{padding:2rem!important}}.collapsible-sections{flex-direction:column;gap:.75rem;margin-bottom:2rem;display:flex}.summary-section{border:1px solid var(--card-border);background:#fff;border-radius:8px;transition:all .2s;overflow:hidden;box-shadow:0 1px 2px #0000000d}.summary-section:hover{border-color:#d1d5db;box-shadow:0 4px 6px -1px #0000000d}.summary-section.is-open{border-color:var(--accent);box-shadow:0 10px 15px -3px #0000000d}.summary-section-header{cursor:pointer;text-align:left;width:100%;color:var(--text-main);background:#f8fafc;border:none;border-left:4px solid #0000;justify-content:space-between;align-items:center;padding:1.25rem 1.5rem;transition:background .2s;display:flex}.summary-section.is-open .summary-section-header{border-left-color:var(--accent);border-bottom:1px solid var(--card-border);background:#fff}.summary-section-header:hover{background:#f1f5f9}.section-title{color:var(--text-main);align-items:center;gap:.75rem;font-size:1.1rem;font-weight:700;display:flex}.section-icon{color:var(--accent);background:var(--accent-light);border-radius:50%;justify-content:center;align-items:center;width:24px;height:24px;font-size:1.5rem;font-weight:300;transition:transform .3s;display:flex}.summary-section.is-open .section-icon{color:#dc2626;background:#fecaca;transform:rotate(180deg)}.summary-section-content{background:#fff;padding:1.5rem}.summary-section-content.funnel-section-content{max-height:480px;overflow-y:auto}.summary-section-content.markdown-body{padding-top:1rem;font-size:1rem;line-height:1.7}.card-header-simple{border-bottom:1px solid var(--card-border);margin-bottom:2rem;padding-bottom:1rem}.funnel-header{justify-content:space-between;align-items:center;margin-bottom:1.5rem;display:flex}.funnel-header h2{text-transform:none;letter-spacing:normal;margin-bottom:0;font-size:1.25rem}.funnel-controls{align-items:center;gap:1rem;display:flex}.pipeline-select{color:var(--text-main);appearance:none;cursor:pointer;background-color:#fff;background-image:url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");background-position:right .75rem center;background-repeat:no-repeat;background-size:1em;border:1px solid #d1d5db;border-radius:6px;outline:none;min-width:200px;padding:.5rem 2rem .5rem 1rem;font-size:.95rem}.pipeline-select:focus{border-color:var(--accent);box-shadow:0 0 0 2px #2563eb33}.funnel-summary{border-bottom:1px solid var(--card-border);margin-bottom:1.5rem;padding-bottom:1.5rem}.funnel-total-value{color:#2e384d;font-size:2.25rem;font-weight:700;line-height:1.2}.funnel-chart-container{gap:2rem;margin-top:1rem;display:flex}.funnel-chart-area{flex-direction:column;flex:1;display:flex}.funnel-axis{color:var(--text-muted);justify-content:space-between;margin-bottom:.5rem;margin-left:2px;margin-right:2px;padding:0 0 .5rem;font-size:.85rem;font-weight:500;display:flex}.funnel-bars{flex-direction:column;gap:4px;display:flex}.funnel-bar-row{border-radius:6px;width:100%;height:48px;display:flex;overflow:hidden}.funnel-bar-fill{color:#fff;white-space:nowrap;border-radius:6px 8px 8px 6px;align-items:center;min-width:fit-content;height:100%;padding:0 1rem;transition:width .5s ease-out;display:flex}.funnel-bar-label{text-shadow:0 1px 2px #0000001a;font-size:.95rem;font-weight:500}.funnel-bar-empty{background-color:#f1f5f9;border-top-right-radius:6px;border-bottom-right-radius:6px;height:100%;transition:width .5s ease-out}.funnel-metrics-area{gap:1.5rem;padding-top:28px;display:flex}.funnel-metrics-column{flex-direction:column;align-items:center;gap:4px;display:flex}.funnel-metrics-header{color:#1e293b;text-align:center;white-space:nowrap;justify-content:center;align-items:flex-end;height:32px;margin-top:-36px;margin-bottom:.5rem;font-size:.85rem;font-weight:600;line-height:1.2;display:flex}.funnel-chevron{color:#475569;clip-path:polygon(10% 0,100% 0,90% 50%,100% 100%,10% 100%,0% 50%);background-color:#f1f5f9;justify-content:center;align-items:center;min-width:90px;height:48px;padding:0 .5rem;font-size:.9rem;font-weight:500;display:flex}@media (max-width:767px){.funnel-header{flex-direction:column;align-items:flex-start;gap:1rem}.funnel-controls{width:100%}.pipeline-select{width:100%;min-width:unset}.funnel-chart-container{-webkit-overflow-scrolling:touch;padding-bottom:.5rem;overflow-x:auto}.funnel-chart-area{min-width:450px}.funnel-metrics-area{min-width:250px}}
