*,:before,:after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#f1f5f9;--surface:#fff;--border:#e2e8f0;--text:#0f172a;--text-muted:#64748b;--primary:#3b82f6;--primary-dark:#2563eb;--shadow-sm:0 1px 3px #0000000f, 0 1px 2px #0000000a;--shadow:0 4px 12px #00000014;--radius:12px;--radius-sm:8px;--home-bg:#f8f9ff;--home-section-bg:#f0f2fa;--home-card-bg:#fff;--home-card-border:#00000014;--home-text:#0f172a;--home-muted:#475569;--home-muted2:#64748b;--home-hero-h1-from:#0f172a;--home-hero-h1-mid:#3730a3;--home-hero-h1-to:#5b21b6;--home-badge-color:#3730a3;--home-badge-border:#3730a380;--home-badge-bg:#3730a31a;--home-blob-op:.18;--home-navbar-bg:#f8f9ffeb;--home-navbar-bdr:#00000014}body{background:var(--bg);color:var(--text);min-height:100vh;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,sans-serif;line-height:1.5}.btn-primary{background:var(--primary);color:#fff;border-radius:var(--radius-sm);cursor:pointer;border:none;padding:.75rem 1.5rem;font-size:1rem;font-weight:600;transition:background .15s,transform .1s}.btn-primary:hover:not(:disabled){background:var(--primary-dark)}.btn-primary:active:not(:disabled){transform:translateY(1px)}.btn-primary:disabled{opacity:.6;cursor:not-allowed}.loading-screen,.error-screen{min-height:100vh;color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:1rem;display:flex}.spinner{border:3px solid var(--border);border-top-color:var(--primary);border-radius:50%;width:40px;height:40px;animation:.8s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.navbar{background:var(--home-navbar-bg);-webkit-backdrop-filter:blur(14px);z-index:1000;border-bottom:1px solid var(--home-navbar-bdr);width:100%;position:fixed;top:0}.nav-container{justify-content:space-between;align-items:center;max-width:1200px;margin:0 auto;padding:1rem 2rem;display:flex}.navbar-brand{align-items:center;gap:.5rem;display:flex}.logo-icon{color:#fff;background:linear-gradient(135deg,#0078d4 0%,#5c2d91 100%);border-radius:8px;justify-content:center;align-items:center;width:36px;height:36px;font-size:1.2rem;display:flex}.navbar-title{color:var(--home-text);font-size:1.25rem;font-weight:700}.section{margin-bottom:2rem}.section-title{color:var(--text-muted);text-transform:uppercase;letter-spacing:.07em;margin-bottom:1rem;font-size:.8rem;font-weight:600}.cards-grid{grid-template-columns:repeat(3,1fr);gap:1rem;display:grid}@media (width<=900px){.cards-grid{grid-template-columns:1fr 1fr}}@media (width<=560px){.cards-grid{grid-template-columns:1fr}}.stat-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);border-top:3px solid var(--card-accent,#3b82f6);padding:1.25rem 1.5rem;transition:box-shadow .15s,transform .15s}.stat-card:hover{box-shadow:var(--shadow);transform:translateY(-1px)}.stat-card[data-color=blue]{--card-accent:#3b82f6}.stat-card[data-color=purple]{--card-accent:#8b5cf6}.stat-card[data-color=indigo]{--card-accent:#6366f1}.stat-card[data-color=teal]{--card-accent:#14b8a6}.stat-card[data-color=cyan]{--card-accent:#06b6d4}.stat-card[data-color=sky]{--card-accent:#0ea5e9}.stat-card[data-color=green]{--card-accent:#22c55e}.stat-card[data-color=yellow]{--card-accent:#f59e0b}.stat-card[data-color=red]{--card-accent:#ef4444}.stat-card-header{align-items:center;gap:.5rem;margin-bottom:.75rem;display:flex}.stat-card-icon{font-size:1rem}.stat-card-title{color:var(--text-muted);font-size:.875rem;font-weight:500}.stat-card-value{font-size:1.75rem;font-weight:700;line-height:1.2}.stat-card-sub{color:var(--text-muted);margin-top:.375rem;font-size:.8rem}.card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:1.5rem}.card-title{margin-bottom:1rem;font-size:.95rem;font-weight:600}.model-table-wrap{overflow-x:auto}.model-table{border-collapse:collapse;width:100%;font-size:.875rem}.model-table th{text-align:left;color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;border-bottom:2px solid var(--border);white-space:nowrap;padding:.625rem 1rem;font-size:.75rem;font-weight:600}.model-table td{border-bottom:1px solid var(--border);color:var(--text);padding:.75rem 1rem}.model-table tbody tr:last-child td{border-bottom:none}.model-table tbody tr:hover td{background:#f8fafc}.model-table th.num,.model-table td.num{text-align:right}.model-table .model-name{font-family:monospace;font-size:.9rem;font-weight:500}.model-table .cost-cell{color:var(--primary);font-weight:600}.model-table-empty{color:var(--text-muted);padding:.5rem 0;font-size:.9rem}.tabs-bar{background:var(--surface);border-bottom:1px solid var(--border);padding:0 2rem}.tabs-inner{gap:.25rem;max-width:1200px;margin:0 auto;display:flex}.tab{color:var(--text-muted);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;align-items:center;gap:.5rem;margin-bottom:-1px;padding:.75rem 1.25rem;font-size:.9rem;font-weight:500;transition:color .15s,border-color .15s;display:flex}.tab:hover{color:var(--text)}.tab-active{color:var(--primary);border-bottom-color:var(--primary)}.team-row{cursor:pointer}.team-row:hover td{background:#eff6ff}.view-link{color:var(--primary);white-space:nowrap;font-size:.85rem}.drill-banner{border-radius:var(--radius-sm);background:#eff6ff;border:1px solid #bfdbfe;align-items:center;gap:1rem;margin-bottom:1.5rem;padding:.625rem 1rem;display:flex}.drill-back{color:var(--primary);cursor:pointer;white-space:nowrap;background:0 0;border:none;padding:0;font-size:.9rem;font-weight:600}.drill-back:hover{text-decoration:underline}.drill-label{color:var(--text-muted);font-size:.9rem}.chart-tooltip{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow);padding:.75rem 1rem;font-size:.85rem;line-height:1.8}.tooltip-date{margin-bottom:.2rem;font-weight:600}.home-page{background:var(--home-bg);min-height:100vh}.hero{text-align:center;background:var(--home-bg);padding:8rem 2rem 4rem;position:relative;overflow:hidden}.hero-bg{pointer-events:none;position:absolute;inset:0}.hero-blob{filter:blur(90px);opacity:var(--home-blob-op);border-radius:50%;transition:opacity .3s;animation:10s ease-in-out infinite blob-float;position:absolute}.hero-blob--1{background:radial-gradient(circle,#5c2d91 0%,#0000 70%);width:700px;height:700px;animation-delay:0s;top:-300px;left:-150px}.hero-blob--2{background:radial-gradient(circle,#0078d4 0%,#0000 70%);width:600px;height:600px;animation-delay:4s;top:-200px;right:-100px}.hero-blob--3{background:radial-gradient(circle,#7c3aed 0%,#0000 70%);width:450px;height:450px;animation-delay:7s;bottom:-100px;left:35%}@keyframes blob-float{0%,to{transform:translateY(0)scale(1)}50%{transform:translateY(-28px)scale(1.06)}}.hero-content{z-index:1;max-width:820px;margin:0 auto;position:relative}.hero-badge{border:1px solid var(--home-badge-border);background:var(--home-badge-bg);color:var(--home-badge-color);letter-spacing:.1em;text-transform:uppercase;border-radius:99px;margin-bottom:1.5rem;padding:.3rem 1rem;font-size:.75rem;font-weight:700;display:inline-block}.hero h1{background:linear-gradient(135deg, var(--home-hero-h1-from) 0%, var(--home-hero-h1-mid) 60%, var(--home-hero-h1-to) 100%);-webkit-text-fill-color:transparent;-webkit-background-clip:text;background-clip:text;margin-bottom:1.25rem;font-size:3.75rem;font-weight:800;line-height:1.12}.hero p{color:var(--home-muted2);max-width:640px;margin:0 auto;font-size:1.1rem;line-height:1.75}.tools-section{background:var(--home-section-bg);padding:3rem 2rem 4rem}.tools-header{text-align:center;margin-bottom:2rem}.tools-header h2{color:var(--home-text);margin-bottom:.5rem;font-size:2rem;font-weight:700}.tools-header p{color:var(--home-muted);max-width:540px;margin:0 auto;font-size:.95rem}.tool-card-featured{cursor:pointer;background:linear-gradient(135deg,#0078d41a 0%,#5c2d911a 100%);border:1px solid #0078d459;border-radius:16px;align-items:center;gap:1.75rem;margin-bottom:1.25rem;padding:1.5rem 1.75rem;text-decoration:none;transition:border-color .2s,box-shadow .2s,transform .2s;display:flex}.tool-card-featured:hover{border-color:#0078d499;transform:translateY(-2px);box-shadow:0 0 48px #0078d424}.tool-featured-icon{flex-shrink:0;font-size:2.5rem;line-height:1}.tool-featured-body{flex:1;min-width:0}.tool-featured-body h3{color:var(--home-text);margin-bottom:.35rem;font-size:1.2rem;font-weight:600}.tool-featured-body p{color:var(--home-muted);font-size:.9rem;line-height:1.6}.tool-featured-btn{color:#fff;white-space:nowrap;background:#0078d4;border-radius:8px;flex-shrink:0;align-items:center;gap:.5rem;padding:.7rem 1.5rem;font-size:.9rem;font-weight:600;transition:background .2s,transform .15s;display:inline-flex}.tool-card-featured:hover .tool-featured-btn{background:#005a9e;transform:translateY(-1px)}.tools-grid{grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:1.25rem;display:grid}.tool-card{background:var(--home-card-bg);border:1px solid var(--home-card-border);border-radius:16px;flex-direction:column;gap:.75rem;padding:1.4rem;transition:border-color .25s,transform .2s,box-shadow .25s,background .3s;display:flex;position:relative;overflow:hidden}.tool-card:after{content:"";background:var(--accent,#5c2d91);opacity:0;height:2px;transition:opacity .3s;position:absolute;top:0;left:0;right:0}.tool-card:hover:not(.tool-card--disabled){border-color:#ffffff26;transform:translateY(-3px);box-shadow:0 16px 40px #00000059}.tool-card:hover:not(.tool-card--disabled):after{opacity:1}.tool-card--disabled{opacity:.4;cursor:default}.tool-card-top{justify-content:space-between;align-items:center;display:flex}.tool-icon{font-size:1.9rem;line-height:1}.tool-badge{color:#64748b;text-transform:uppercase;letter-spacing:.07em;background:#ffffff0f;border:1px solid #ffffff1a;border-radius:99px;padding:.22rem .65rem;font-size:.68rem;font-weight:700}.tool-card h3{color:var(--home-text);font-size:1.05rem;font-weight:600}.tool-card p{color:var(--home-muted);flex:1;font-size:.875rem;line-height:1.65}.tool-btn{background:var(--accent,#5c2d91);color:#fff;cursor:pointer;border:none;border-radius:8px;justify-content:center;align-items:center;gap:.45rem;width:100%;margin-top:auto;padding:.65rem 1.25rem;font-size:.88rem;font-weight:600;text-decoration:none;transition:filter .2s,transform .15s;display:inline-flex}.tool-btn:hover{filter:brightness(1.2);transform:translateY(-1px)}.tool-btn-arrow{transition:transform .2s;display:inline-block}.tool-btn:hover .tool-btn-arrow,.tool-card-featured:hover .tool-btn-arrow{transform:translate(4px)}.site-footer{background:var(--home-bg);color:var(--home-muted);text-align:center;border-top:1px solid var(--home-card-border);padding:1.5rem;font-size:.875rem}.container{max-width:1200px;margin:0 auto}@media (width<=768px){.hero h1{font-size:2.5rem}.hero{padding:7rem 1.5rem 3rem}.nav-links{gap:1rem}.tool-card-featured{flex-direction:column;align-items:flex-start}.tool-featured-btn{justify-content:center;width:100%}.tools-grid{grid-template-columns:1fr}}.analytics-page{min-height:100vh}.analytics-page .navbar{position:sticky;top:0}.analytics-subnav{background:var(--surface);border-bottom:1px solid var(--border);padding:0 2rem}.analytics-subnav-inner{align-items:center;gap:.5rem;max-width:1200px;height:40px;margin:0 auto;font-size:.875rem;display:flex}.subnav-back{color:var(--primary);cursor:pointer;background:0 0;border:none;padding:0;font-size:.875rem}.subnav-back:hover{text-decoration:underline}.subnav-sep{color:var(--border)}.subnav-current{color:var(--text-muted)}.data-freshness-bar{background:var(--surface);border-bottom:1px solid var(--border);justify-content:flex-end;align-items:center;gap:.75rem;padding:.35rem 2rem;display:flex}.data-freshness-label{color:var(--text-muted);font-size:.75rem}.data-freshness-label.stale{color:#f59e0b}.data-freshness-refresh{color:var(--primary);cursor:pointer;background:0 0;border:none;align-items:center;gap:.3rem;padding:0;font-size:.75rem;font-weight:600;display:flex}.data-freshness-refresh:hover{text-decoration:underline}.analytics-filter-bar{background:var(--surface);border-bottom:1px solid var(--border);padding:.75rem 2rem}.analytics-filter-inner{max-width:1200px;margin:0 auto}.analytics-tabbar{background:var(--surface);border-bottom:1px solid var(--border);padding:0 2rem}.analytics-tabbar-inner{gap:.25rem;max-width:1200px;margin:0 auto;display:flex}.analytics-filters{flex-wrap:wrap;align-items:flex-end;gap:1.25rem;display:flex}.filter-group{flex-direction:column;gap:.3rem;display:flex}.filter-label{color:var(--text-muted);text-transform:uppercase;letter-spacing:.05em;font-size:.75rem;font-weight:600}.filter-tabs{gap:.25rem;display:flex}.filter-tab{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;padding:.375rem .75rem;font-size:.85rem;font-weight:500;transition:background .12s,border-color .12s,color .12s}.filter-tab:hover{border-color:var(--primary);color:var(--primary)}.filter-tab-active{background:var(--primary);border-color:var(--primary);color:#fff}.filter-range{align-items:center;gap:.5rem;display:flex}.filter-range-sep{color:var(--text-muted);font-size:.8rem}.filter-date,.filter-select,.filter-input{border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text);background:var(--surface);outline:none;padding:.4rem .65rem;font-size:.875rem;transition:border-color .12s}.filter-date:focus,.filter-select:focus,.filter-input:focus{border-color:var(--primary)}.filter-select{min-width:160px}.csd-wrap{min-width:160px;position:relative}.csd-trigger{cursor:pointer;text-align:left;justify-content:space-between;align-items:center;gap:.5rem;width:100%;min-width:160px;display:flex}.csd-value{text-overflow:ellipsis;white-space:nowrap;flex:1;overflow:hidden}.csd-arrow{color:var(--text-muted);flex-shrink:0;font-size:.65rem}.csd-dropdown{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);min-width:100%;max-height:200px;box-shadow:var(--shadow);z-index:200;position:absolute;top:calc(100% + 3px);left:0;overflow-y:auto}.csd-option{color:var(--text);cursor:pointer;white-space:nowrap;padding:.45rem .75rem;font-size:.875rem}.csd-option:hover{background:#eff6ff}.csd-option--active{color:var(--primary);background:#eff6ff;font-weight:600}.filter-input{min-width:200px}.filter-apply{align-self:flex-end;padding:.42rem 1.1rem;font-size:.875rem}.filter-reset{border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;background:0 0;align-self:flex-end;padding:.42rem 1.1rem;font-size:.875rem;font-weight:600;transition:border-color .15s,color .15s}.filter-reset:hover{color:#ef4444;border-color:#ef4444}.filter-group-autocomplete{position:relative}.autocomplete-list{z-index:50;background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow);max-height:240px;margin-top:.25rem;padding:.25rem 0;list-style:none;position:absolute;top:100%;left:0;right:0;overflow-y:auto}.autocomplete-item{cursor:pointer;flex-direction:column;gap:.1rem;padding:.5rem .75rem;transition:background .1s;display:flex}.autocomplete-item:hover{background:#eff6ff}.autocomplete-id{color:var(--text-muted);font-size:.75rem}.analytics-content{max-width:1200px;margin:0 auto;padding:2rem}.analytics-two-col{grid-template-columns:1fr 1fr;gap:1.25rem;display:grid}@media (width<=860px){.analytics-two-col{grid-template-columns:1fr}}.cards-grid--6{grid-template-columns:repeat(6,1fr)}@media (width<=1100px){.cards-grid--6{grid-template-columns:repeat(3,1fr)}}@media (width<=640px){.cards-grid--6{grid-template-columns:repeat(2,1fr)}}.cards-grid--7{grid-template-columns:repeat(7,1fr)}@media (width<=1200px){.cards-grid--7{grid-template-columns:repeat(4,1fr)}}@media (width<=700px){.cards-grid--7{grid-template-columns:repeat(2,1fr)}}.cards-grid--4{grid-template-columns:repeat(4,1fr)}@media (width<=980px){.cards-grid--4{grid-template-columns:repeat(2,1fr)}}@media (width<=560px){.cards-grid--4{grid-template-columns:1fr}}.section-title-row{justify-content:space-between;align-items:center;margin-bottom:1rem;display:flex}.section-title-row .section-title{margin-bottom:0}.trend-toggle{gap:.25rem;display:flex}.trend-btn{background:var(--bg);border:1.5px solid var(--border);border-radius:var(--radius-sm);color:var(--text-muted);cursor:pointer;padding:.3rem .7rem;font-size:.8rem;font-weight:500;transition:background .12s,border-color .12s,color .12s}.trend-btn:hover{border-color:var(--primary);color:var(--primary)}.trend-btn-active{background:var(--primary);border-color:var(--primary);color:#fff}.export-wrap{display:inline-block;position:relative}.export-btn{background:var(--bg);border:1.5px solid var(--primary);border-radius:var(--radius-sm);color:var(--primary);cursor:pointer;white-space:nowrap;padding:.3rem .8rem;font-size:.8rem;font-weight:600;transition:background .12s,color .12s}.export-btn:hover{background:var(--primary);color:#fff}.export-dropdown{background:var(--surface);border:1.5px solid var(--border);border-radius:var(--radius);z-index:100;min-width:180px;position:absolute;top:calc(100% + .3rem);right:0;overflow:hidden;box-shadow:0 4px 16px #0000001a}.export-option{text-align:left;width:100%;color:var(--text);cursor:pointer;background:0 0;border:none;padding:.6rem 1rem;font-size:.85rem;font-weight:500;transition:background .1s;display:block}.export-option:hover{background:var(--bg)}.export-option+.export-option{border-top:1px solid var(--border)}.navbar-right{align-items:center;gap:1rem;display:flex}.nav-user{color:var(--home-muted2);font-size:.875rem;font-weight:500}.nav-logout-btn{border:1.5px solid var(--home-card-border);border-radius:var(--radius-sm);color:var(--home-muted2);cursor:pointer;background:0 0;padding:.3rem .75rem;font-size:.8rem;font-weight:600;transition:border-color .15s,color .15s}.nav-logout-btn:hover{color:#ef4444;border-color:#ef4444}.foundry-page{background:#f8f9ff;min-height:100vh;padding-top:72px}.foundry-container{gap:1.5rem;max-width:1400px;height:calc(100vh - 72px);margin:0 auto;padding:2rem 1.5rem;display:flex}.foundry-sidebar{background:#fff;border-radius:12px;flex-direction:column;flex-shrink:0;gap:.75rem;width:260px;padding:1.5rem;display:flex;box-shadow:0 1px 3px #0000000f}.foundry-sidebar h3{color:#1e293b;margin:0 0 .5rem;font-size:1.1rem}.foundry-back{color:#6366f1;cursor:pointer;font-size:.875rem;text-decoration:none}.foundry-back:hover{text-decoration:underline}.foundry-tabs{gap:.5rem;margin-bottom:.5rem;display:flex}.foundry-tab{cursor:pointer;background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;flex:1;padding:.5rem .75rem;font-size:.85rem;font-weight:500;transition:all .15s}.foundry-tab.active{color:#fff;background:#2563eb;border-color:#2563eb}.foundry-label{color:#64748b;margin-top:.5rem;font-size:.8rem;font-weight:600}.foundry-select{background:#f8fafc;border:1px solid #e2e8f0;border-radius:8px;width:100%;padding:.5rem;font-size:.9rem}.foundry-agent-desc{color:#64748b;margin:.25rem 0;font-size:.8rem}.foundry-new-chat{color:#2563eb;cursor:pointer;background:#f0f4ff;border:1px solid #bfdbfe;border-radius:8px;padding:.6rem 1rem;font-weight:600;transition:background .15s}.foundry-new-chat:hover{background:#dbeafe}.foundry-chat-header{justify-content:flex-end;margin-bottom:.75rem;display:flex}.foundry-main{flex-direction:column;flex:1;min-width:0;display:flex}.foundry-chat{background:#fff;border-radius:12px;flex-direction:column;flex:1;display:flex;overflow:hidden;box-shadow:0 1px 3px #0000000f}.foundry-messages{flex-direction:column;flex:1;gap:1rem;padding:1.5rem;display:flex;overflow-y:auto}.foundry-empty{text-align:center;color:#94a3b8;margin:auto}.foundry-empty-icon{margin-bottom:.5rem;font-size:3rem}.foundry-empty h3{color:#475569;margin:.5rem 0}.foundry-empty p{max-width:400px;font-size:.9rem}.foundry-msg{gap:.75rem;max-width:85%;display:flex}.foundry-msg--user{flex-direction:row-reverse;align-self:flex-end}.foundry-msg--error .foundry-msg-content{background:#fef2f2;border-color:#fecaca}.foundry-msg-avatar{background:#f1f5f9;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:32px;height:32px;font-size:1rem;display:flex}.foundry-msg-content{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;padding:.75rem 1rem}.foundry-msg--user .foundry-msg-content{background:#eff6ff;border-color:#bfdbfe}.foundry-msg-header{color:#64748b;margin-bottom:.25rem;font-size:.75rem;font-weight:600}.foundry-msg-text{color:#1e293b;font-size:.9rem;line-height:1.5}.foundry-msg-text p{margin:.5rem 0}.foundry-msg-text table{border-collapse:collapse;width:100%;margin:.75rem 0;font-size:.82rem}.foundry-msg-text th,.foundry-msg-text td{text-align:left;border:1px solid #e2e8f0;padding:.5rem .75rem}.foundry-msg-text th{color:#334155;background:#f1f5f9;font-weight:600}.foundry-msg-text tr:nth-child(2n){background:#f8fafc}.foundry-msg-text code{background:#f1f5f9;border-radius:4px;padding:.15rem .4rem;font-size:.82rem}.foundry-msg-text pre{background:#f1f5f9;border-radius:6px;padding:.75rem 1rem;overflow-x:auto}.foundry-msg-text ul,.foundry-msg-text ol{margin:.5rem 0;padding-left:1.5rem}.foundry-msg-text strong{font-weight:600}.foundry-typing{color:#94a3b8;font-style:italic}.foundry-input-bar{background:#fafbff;border-top:1px solid #e2e8f0;gap:.5rem;padding:1rem 1.5rem;display:flex}.foundry-input{border:1px solid #e2e8f0;border-radius:8px;outline:none;flex:1;padding:.7rem 1rem;font-size:.95rem;transition:border-color .15s}.foundry-input:focus{border-color:#2563eb}.foundry-send{color:#fff;cursor:pointer;background:#2563eb;border:none;border-radius:8px;padding:.7rem 1.5rem;font-weight:600;transition:background .15s}.foundry-send:hover:not(:disabled){background:#1d4ed8}.foundry-send:disabled{opacity:.5;cursor:not-allowed}.foundry-stop{cursor:pointer;background:#f1f5f9;border:2px solid #64748b;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;width:38px;height:38px;transition:background .15s,border-color .15s;display:flex}.foundry-stop:hover{background:#e2e8f0;border-color:#475569}.foundry-stop .stop-icon{color:#475569;font-size:.75rem;line-height:1}.foundry-deployments{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 1px 3px #0000000f}.foundry-deployments h2{color:#1e293b;margin:0 0 .5rem}.foundry-deploy-desc{color:#64748b;margin-bottom:1.5rem}.foundry-deploy-loading,.foundry-deploy-empty{color:#94a3b8;text-align:center;padding:2rem}.foundry-deploy-table{border-collapse:collapse;width:100%;font-size:.9rem}.foundry-deploy-table th{text-align:left;color:#64748b;background:#f8fafc;border-bottom:1px solid #e2e8f0;padding:.75rem 1rem;font-weight:600}.foundry-deploy-table td{color:#334155;border-bottom:1px solid #f1f5f9;padding:.75rem 1rem}.foundry-deploy-table tr:hover td{background:#f8fafc}.foundry-status{border-radius:4px;padding:.2rem .6rem;font-size:.8rem;font-weight:600;display:inline-block}.foundry-status--succeeded{color:#166534;background:#dcfce7}.foundry-status--failed{color:#991b1b;background:#fef2f2}.foundry-status--updating{color:#92400e;background:#fef3c7}.foundry-admin-info{margin-top:.5rem}.foundry-admin-ops{margin-top:.75rem;font-size:.8rem;line-height:2}.foundry-op-badge{border-radius:3px;margin-right:.4rem;padding:.1rem .4rem;font-family:monospace;font-size:.7rem;font-weight:700;display:inline-block}.foundry-op-badge--get{color:#166534;background:#dcfce7}.foundry-op-badge--post{color:#1e40af;background:#dbeafe}.foundry-op-badge--delete{color:#991b1b;background:#fef2f2}.foundry-deploy-header{flex-wrap:wrap;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1rem;display:flex}.foundry-deploy-actions{gap:.5rem;display:flex}.foundry-btn{cursor:pointer;border:none;border-radius:8px;padding:.5rem 1rem;font-size:.85rem;font-weight:600;transition:background .15s,opacity .15s}.foundry-btn:disabled{opacity:.5;cursor:not-allowed}.foundry-btn--create{color:#fff;background:#2563eb}.foundry-btn--create:hover:not(:disabled){background:#1d4ed8}.foundry-btn--refresh{color:#2563eb;background:#f0f4ff;border:1px solid #bfdbfe}.foundry-btn--refresh:hover:not(:disabled){background:#dbeafe}.foundry-btn--cancel{color:#64748b;background:#f1f5f9}.foundry-btn--cancel:hover{background:#e2e8f0}.foundry-btn-sm{cursor:pointer;border:none;border-radius:6px;padding:.3rem .6rem;font-size:.85rem;transition:background .15s}.foundry-btn-sm--delete{background:#fef2f2}.foundry-btn-sm--delete:hover:not(:disabled){background:#fecaca}.foundry-alert{border-radius:8px;justify-content:space-between;align-items:center;margin-bottom:1rem;padding:.75rem 1rem;font-size:.9rem;display:flex}.foundry-alert--success{color:#166534;background:#dcfce7;border:1px solid #bbf7d0}.foundry-alert--error{color:#991b1b;background:#fef2f2;border:1px solid #fecaca}.foundry-alert-close{cursor:pointer;color:inherit;background:0 0;border:none;padding:0 .25rem;font-size:1.2rem}.foundry-create-form{background:#f8fafc;border:1px solid #e2e8f0;border-radius:12px;margin-bottom:1.5rem;padding:1.5rem}.foundry-create-form h3{color:#1e293b;margin:0 0 1rem;font-size:1rem}.foundry-form-grid{grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:1rem;margin-bottom:1rem;display:grid}.foundry-form-field label{color:#64748b;margin-bottom:.25rem;font-size:.8rem;font-weight:600;display:block}.foundry-form-field input,.foundry-form-field select{background:#fff;border:1px solid #e2e8f0;border-radius:6px;width:100%;padding:.5rem .75rem;font-size:.9rem}.foundry-form-field input:focus,.foundry-form-field select:focus{border-color:#2563eb;outline:none}.foundry-form-buttons{gap:.5rem;display:flex}.ranked-card{background:var(--surface);border-radius:var(--radius);box-shadow:var(--shadow-sm);padding:1.25rem 1.5rem}.ranked-card-title{text-transform:uppercase;letter-spacing:.06em;color:var(--text-muted);margin-bottom:1rem;font-size:.8rem;font-weight:600}.ranked-empty{color:var(--text-muted);font-size:.85rem}.ranked-list{flex-direction:column;gap:.65rem;display:flex}.ranked-list--scroll{max-height:240px;padding-right:.4rem;overflow-y:auto}.ranked-list--scroll::-webkit-scrollbar{width:4px}.ranked-list--scroll::-webkit-scrollbar-track{background:0 0}.ranked-list--scroll::-webkit-scrollbar-thumb{background:var(--border);border-radius:2px}.ranked-row{align-items:center;gap:.75rem;display:flex}.ranked-num{color:var(--text-muted);text-align:right;flex-shrink:0;width:1.1rem;font-size:.72rem;font-weight:700}.ranked-bar-wrap{flex:1;min-width:0}.ranked-name{color:var(--text);white-space:nowrap;text-overflow:ellipsis;margin-bottom:.2rem;font-size:.82rem;font-weight:500;overflow:hidden}.ranked-bar-track{background:var(--border);border-radius:2px;height:4px;overflow:hidden}.ranked-bar-fill{border-radius:2px;height:100%;transition:width .3s}.ranked-value{color:var(--text);white-space:nowrap;text-align:right;flex-shrink:0;min-width:3.5rem;font-size:.8rem;font-weight:600}.analytics-loading,.analytics-error{color:var(--text-muted);flex-direction:column;justify-content:center;align-items:center;gap:1rem;padding:4rem 2rem;display:flex}.playground-page{background:#f1f5f9;flex-direction:column;min-height:100vh;display:flex}.playground-page .navbar{position:sticky;top:0}.playground-body{flex:1;grid-template-columns:272px 1fr;gap:0;display:grid}.playground-controls{background:var(--surface,#fff);border-right:1px solid var(--border,#e2e8f0);flex-direction:column;gap:.75rem;padding:1.25rem 1rem;display:flex;overflow-y:auto}.playground-controls-header{justify-content:space-between;align-items:center;margin-bottom:.1rem;display:flex}.playground-controls-title{color:var(--text,#0f172a);margin:0;font-size:.9rem;font-weight:700}.playground-selected-badge{color:var(--primary,#3b82f6);background:#eff6ff;border:1px solid #bfdbfe;border-radius:20px;padding:.15rem .55rem;font-size:.68rem;font-weight:700}.provider-group{flex-direction:column;gap:.35rem;display:flex}.provider-group-label{text-transform:uppercase;letter-spacing:.06em;margin-bottom:.1rem;font-size:.7rem;font-weight:700}.provider-subgroup{border-left:2px solid #e2e8f0;flex-direction:column;gap:.3rem;margin-top:.4rem;padding-left:.6rem;display:flex}.provider-subgroup-label{text-transform:uppercase;letter-spacing:.05em;color:#94a3b8;margin-bottom:.1rem;font-size:.65rem;font-weight:600}.model-checkbox-row{color:var(--text,#0f172a);cursor:pointer;border:1.5px solid #0000;border-radius:6px;align-items:center;gap:.5rem;padding:.35rem .5rem;font-size:.82rem;transition:background .12s,border-color .12s;display:flex}.model-checkbox-row:hover{background:#f8fafc}.model-checkbox-row input[type=checkbox]{accent-color:var(--row-accent,var(--primary,#3b82f6));flex-shrink:0}.model-checkbox-row--checked{background:color-mix(in srgb, var(--row-accent,#3b82f6) 8%, transparent);border-color:color-mix(in srgb, var(--row-accent,#3b82f6) 30%, transparent)}.model-checkbox-name{text-overflow:ellipsis;white-space:nowrap;font-weight:500;overflow:hidden}.playground-controls-section{border-top:1px solid var(--border,#e2e8f0);flex-direction:column;gap:.4rem;padding-top:.5rem;display:flex}.playground-label{color:var(--home-muted2,#64748b);flex-direction:column;gap:.3rem;font-size:.8rem;font-weight:600;display:flex}.toggle-system-btn{cursor:pointer;color:var(--home-muted2,#64748b);text-align:left;background:0 0;border:none;align-items:center;gap:.3rem;padding:0;font-size:.82rem;font-weight:600;display:flex}.toggle-system-btn:hover{color:var(--primary,#3b82f6)}.playground-main{background:#f1f5f9;flex-direction:column;gap:1.5rem;padding:1.5rem 2rem;display:flex;overflow-y:auto}.playground-prompt-section{background:var(--surface,#fff);border-radius:var(--radius,12px);box-shadow:var(--shadow-sm);flex-direction:column;gap:.6rem;padding:1.25rem 1.5rem;display:flex}.playground-label-row{justify-content:space-between;align-items:center;display:flex}.playground-label{color:var(--text-muted,#64748b);text-transform:uppercase;letter-spacing:.05em;font-size:.78rem;font-weight:700}.playground-char-count{color:#94a3b8;font-size:.72rem}.playground-prompt{border:1.5px solid var(--border,#e2e8f0);resize:vertical;box-sizing:border-box;width:100%;color:var(--text,#0f172a);background:#fafbfc;border-radius:8px;outline:none;padding:.8rem 1rem;font-family:inherit;font-size:.9rem;line-height:1.6;transition:border-color .15s,box-shadow .15s}.playground-prompt:focus{border-color:var(--primary,#3b82f6);background:#fff;box-shadow:0 0 0 3px #3b82f61f}.playground-prompt--system{background:#fdf8ff;min-height:80px}.playground-prompt--system:focus{border-color:#8b5cf6;box-shadow:0 0 0 3px #8b5cf61f}.playground-run-row{justify-content:flex-end;align-items:center;gap:.75rem;display:flex}.playground-hint{color:var(--text-muted,#64748b);margin:0 auto 0 0;font-size:.78rem}.playground-error{color:#ef4444;margin:0;font-size:.82rem}.playground-run-btn{color:#fff;cursor:pointer;background:linear-gradient(135deg,#3b82f6 0%,#6366f1 100%);border:none;border-radius:8px;align-items:center;gap:.5rem;padding:.55rem 1.4rem;font-size:.9rem;font-weight:600;transition:opacity .15s,transform .1s,box-shadow .15s;display:flex;box-shadow:0 2px 8px #6366f159}.playground-run-btn:hover:not(:disabled){opacity:.92;transform:translateY(-1px);box-shadow:0 4px 12px #6366f173}.playground-run-btn:active:not(:disabled){transform:translateY(0)}.playground-run-btn:disabled{opacity:.45;cursor:not-allowed;box-shadow:none}.run-shortcut{opacity:.7;font-size:.7rem;font-weight:500}.run-spinner{border:2px solid #ffffff59;border-top-color:#fff;border-radius:50%;flex-shrink:0;width:12px;height:12px;animation:.7s linear infinite spin}.playground-reset-btn{border:1.5px solid var(--border,#e2e8f0);color:var(--text-muted,#64748b);cursor:pointer;background:0 0;border-radius:8px;padding:.55rem 1rem;font-size:.85rem;font-weight:600;transition:border-color .15s,color .15s}.playground-reset-btn:hover{color:#ef4444;border-color:#ef4444}.playground-results-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:1.25rem;display:grid}.model-result-card{background:var(--surface,#fff);border:1px solid var(--border,#e2e8f0);border-radius:12px;flex-direction:column;gap:0;transition:box-shadow .2s,transform .2s;display:flex;overflow:hidden;box-shadow:0 2px 8px #0000000f}.model-result-card:hover{transform:translateY(-2px);box-shadow:0 6px 20px #0000001a}.model-result-card--loading{opacity:.8}.model-result-card--error .model-result-header-strip{background:linear-gradient(135deg,#ef4444,#f87171)}.model-result-header-strip{background:linear-gradient(135deg, color-mix(in srgb, var(--model-accent,#3b82f6) 85%, #000), color-mix(in srgb, var(--model-accent,#3b82f6) 60%, #6366f1));padding:.75rem 1rem}.model-result-header{align-items:center;gap:.6rem;display:flex}.provider-badge{text-transform:uppercase;letter-spacing:.06em;color:#ffffffd9;background:#fff3;border-radius:4px;flex-shrink:0;padding:.15rem .45rem;font-size:.62rem;font-weight:700}.model-result-name{color:#fff;text-overflow:ellipsis;white-space:nowrap;font-size:.875rem;font-weight:600;overflow:hidden}.model-result-body{flex-direction:column;gap:.75rem;padding:1rem 1.25rem;display:flex}.result-prompt-preview{flex-direction:column;gap:.3rem;margin-bottom:.6rem;display:flex}.result-prompt-block{background:#f1f5f9;border-left:3px solid #cbd5e1;border-radius:0 5px 5px 0;flex-direction:column;gap:.15rem;padding:.4rem .65rem;display:flex}.result-prompt-block--system{background:#f5f3ff;border-left-color:#a78bfa}.result-prompt-block--assistant{background:#f0fdf4;border-left-color:#10a37f}.result-prompt-label{text-transform:uppercase;letter-spacing:.06em;color:#94a3b8;font-size:.62rem;font-weight:700}.result-prompt-block--system .result-prompt-label{color:#7c3aed}.result-prompt-text{color:#475569;white-space:pre-wrap;word-break:break-word;font-size:.8rem;line-height:1.5}.model-result-content{color:var(--text,#0f172a);white-space:pre-wrap;background:var(--home-bg,#f8f9ff);border-radius:6px;max-height:360px;padding:.6rem .8rem;font-size:.875rem;line-height:1.6;overflow-y:auto}.model-result-error{color:#ef4444;margin:0;font-size:.85rem}.model-result-metrics{flex-wrap:wrap;gap:.4rem;display:flex}.metric-chip{background:var(--home-bg,#f1f5f9);border:1px solid var(--border,#e2e8f0);color:var(--home-muted2,#64748b);white-space:nowrap;border-radius:6px;padding:.2rem .5rem;font-size:.72rem;font-weight:600}.metric-chip--latency{color:#7c3aed;background:#f5f3ff;border-color:#ddd6fe}.metric-chip--cost{color:#059669;background:#ecfdf5;border-color:#a7f3d0}.loading-pulse{background:linear-gradient(90deg,#e2e8f0 25%,#f1f5f9 50%,#e2e8f0 75%) 0 0/200% 100%;border-radius:6px;width:100%;height:14px;animation:1.4s infinite shimmer}.loading-pulse--short{width:55%}.loading-pulse--medium{width:75%}@keyframes shimmer{0%{background-position:200% 0}to{background-position:-200% 0}}.playground-empty{text-align:center;background:var(--surface,#fff);border-radius:var(--radius,12px);box-shadow:var(--shadow-sm);flex-direction:column;flex:1;justify-content:flex-start;align-items:center;gap:.75rem;padding:6rem 2rem 2rem;display:flex}.playground-empty-icon{font-size:3rem}.playground-empty-title{color:var(--text,#0f172a);margin:0;font-size:1.05rem;font-weight:700}.playground-empty-sub{color:var(--text-muted,#64748b);max-width:380px;margin:0;font-size:.875rem;line-height:1.6}.playground-empty-sub kbd{color:var(--text,#0f172a);background:#f1f5f9;border:1px solid #cbd5e1;border-radius:4px;padding:.1rem .35rem;font-family:inherit;font-size:.75rem;display:inline-block}@media (width<=768px){.playground-body{grid-template-columns:1fr}.playground-controls{border-right:none;border-bottom:1px solid var(--border,#e2e8f0);max-height:280px}.playground-results-grid{grid-template-columns:1fr}}
