:root{--lightningcss-light: ;--lightningcss-dark:initial;color-scheme:dark;--background:#09090b;--foreground:#fafafa;--card:#0e0e11;--card-foreground:#fafafa;--popover:#18181b;--muted:#18181b;--muted-foreground:#a1a1aa;--secondary:#27272a;--secondary-foreground:#fafafa;--accent:#1d1d21;--accent-foreground:#fafafa;--border:#27272a;--border-soft:#1f1f23;--input:#27272a;--input-bg:#0e0e11;--ring:#d4d4d8;--primary:#fafafa;--primary-foreground:#18181b;--brand:#34d399;--brand-foreground:#052e1a;--brand-dim:#34d3991f;--brand-line:#34d39952;--destructive:#ef4444;--destructive-foreground:#fef2f2;--destructive-dim:#ef44441f;--destructive-line:#ef44444d;--warning:#f5b13d;--warning-dim:#f5b13d1a;--warning-line:#f5b13d4d;--radius:8px;--radius-sm:4px;--radius-md:6px;--radius-lg:10px;--radius-pill:999px;--sans:Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;--mono:ui-monospace, "SF Mono", "JetBrains Mono", "Menlo", "Consolas", monospace;--shadow-sm:0 1px 2px 0 #00000052;--shadow:0 1px 3px 0 #0006, 0 8px 24px -12px #00000080}*{box-sizing:border-box}html{scroll-behavior:smooth}body{background:var(--background);min-height:100vh;color:var(--foreground);font-family:var(--sans);-webkit-font-smoothing:antialiased;text-rendering:optimizelegibility;margin:0;font-size:14px;line-height:1.6}a{color:inherit;text-decoration:none}button,input,select{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.55}code{font-family:var(--mono)}a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid var(--ring);outline-offset:2px;border-radius:var(--radius-sm)}.app-shell{grid-template-columns:240px minmax(0,1fr);gap:20px;max-width:1800px;margin:0 auto;padding:20px;display:grid}.sidebar{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);min-height:calc(100vh - 40px);box-shadow:var(--shadow-sm);flex-direction:column;align-self:start;padding:16px 14px;display:flex;position:sticky;top:20px}.brand{border-bottom:1px solid var(--border);align-items:center;gap:11px;padding:6px 6px 16px;display:flex}.brand-mark{border-radius:var(--radius-md);background:var(--foreground);width:34px;height:34px;color:var(--background);place-items:center;font-size:16px;font-weight:800;display:grid}.brand strong,.brand small{line-height:1.2;display:block}.brand strong{letter-spacing:-.01em;font-size:14px}.brand small,.metric-card small{color:var(--muted-foreground);font-family:var(--mono);font-size:11px}.nav-list{gap:3px;margin-top:14px;display:grid}.nav-list a{border-radius:var(--radius-md);min-height:38px;color:var(--muted-foreground);align-items:center;gap:10px;padding:8px 10px;font-size:13.5px;transition:background-color .13s,color .13s;display:flex}.nav-list a:hover{background:var(--accent);color:var(--foreground)}.nav-list a.active{background:var(--secondary);color:var(--foreground)}.nav-list svg{opacity:.9;width:16px;height:16px}.side-foot{margin-top:auto;padding-top:12px}.side-status{border-top:1px solid var(--border);color:var(--muted-foreground);font-family:var(--mono);letter-spacing:.04em;align-items:center;gap:8px;padding:8px 10px;font-size:11px;display:flex}.side-status i{background:var(--brand);width:6px;height:6px;box-shadow:0 0 0 3px var(--brand-dim);border-radius:50%}.workspace{align-content:start;gap:20px;min-width:0;display:grid}.topbar{justify-content:space-between;align-items:flex-start;gap:24px;padding:12px 2px 2px;display:flex}.eyebrow{color:var(--muted-foreground);font-family:var(--mono);letter-spacing:.14em;text-transform:uppercase;margin:0 0 10px;font-size:11px;font-weight:500}h1,h2,h3,p{margin-top:0}h1{letter-spacing:-.03em;text-wrap:balance;max-width:40ch;margin-bottom:12px;font-size:28px;font-weight:600;line-height:1.15}h2{letter-spacing:-.025em;margin-bottom:0;font-size:20px;font-weight:600}h3{letter-spacing:-.01em;margin-bottom:6px;font-size:15px;font-weight:600}.lead,.section-heading p,.flow-card p,.operation-row p{color:var(--muted-foreground);line-height:1.65}.lead{max-width:66ch;font-size:15px}.status-pill,.badge,.endpoint{border:1px solid var(--border);color:var(--muted-foreground);white-space:nowrap;align-items:center;gap:7px;font-size:12px;font-weight:500;line-height:1;display:inline-flex}.badge,.endpoint{border-radius:var(--radius-md);padding:5px 9px}.endpoint{font-family:var(--mono);color:var(--muted-foreground);font-size:11.5px}.status-pill{border-radius:var(--radius-pill);border-color:var(--brand-line);background:var(--brand-dim);color:var(--brand);padding:6px 12px}.status-pill:before{content:"";background:var(--brand);width:6px;height:6px;box-shadow:0 0 0 3px var(--brand-dim);border-radius:50%}.badge:before{content:"";background:currentColor;border-radius:50%;width:6px;height:6px}.badge.success{border-color:var(--brand-line);background:var(--brand-dim);color:var(--brand)}.badge.warning{border-color:var(--warning-line);background:var(--warning-dim);color:var(--warning)}.badge.destructive{border-color:var(--destructive-line);background:var(--destructive-dim);color:#fca5a5}.metrics-grid,.flow-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;display:grid}.metric-card,.panel,.console-card{border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow-sm)}.metric-card{border-radius:var(--radius-lg);gap:5px;padding:16px 18px;display:grid}.metric-card span{color:var(--muted-foreground);font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;font-size:11px}.metric-card strong{letter-spacing:-.035em;font-variant-numeric:tabular-nums;margin:4px 0 2px;font-size:30px;font-weight:600;display:block}.panel,.console-card{border-radius:var(--radius-lg);padding:22px}.section-heading{justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:20px;display:flex}.section-heading>p{max-width:46ch;margin-bottom:0}.flow-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.flow-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-sm);gap:14px;padding:20px;display:grid}.card-topline,.preview-header{justify-content:space-between;align-items:center;gap:12px;display:flex}.flow-card code{font-family:var(--mono);color:var(--muted-foreground);font-size:11px}.stage-list{counter-reset:stage;gap:12px;margin:0;padding:0;list-style:none;display:grid}.stage-list li{color:var(--muted-foreground);grid-template-columns:26px 1fr;gap:12px;font-size:13px;display:grid}.stage-list li:before{border-radius:var(--radius-md);border:1px solid var(--border);background:var(--muted);width:24px;height:24px;color:var(--muted-foreground);content:counter(stage);counter-increment:stage;font-family:var(--mono);place-items:center;font-size:11px;font-weight:600;display:grid}.stage-list strong,.stage-list span{grid-column:2;display:block}.stage-list strong{color:var(--foreground);font-size:13.5px}.dependency-list{flex-wrap:wrap;gap:6px;display:flex}.dependency-list span{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--muted);color:var(--muted-foreground);font-family:var(--mono);padding:4px 8px;font-size:11.5px}.flow-tabs{border:1px solid var(--border-soft);border-radius:var(--radius);background:var(--muted);align-items:center;gap:3px;height:38px;margin-bottom:20px;padding:3px;display:inline-flex}.tab{border-radius:var(--radius-md);height:100%;color:var(--muted-foreground);background:0 0;border:none;align-items:center;padding:0 14px;font-size:13px;font-weight:500;text-decoration:none;transition:background-color .13s,color .13s;display:inline-flex}.tab:hover{color:var(--foreground)}.tab.active{background:var(--secondary);color:var(--foreground);box-shadow:var(--shadow-sm)}.runner-layout{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:16px;display:grid}.flow-form{grid-template-columns:repeat(2,minmax(0,1fr));align-content:start;gap:14px;display:grid}.field{color:var(--foreground);gap:7px;font-size:13px;font-weight:500;display:grid}.field input,.field select{border:1px solid var(--input);border-radius:var(--radius-md);background:var(--input-bg);width:100%;min-height:38px;color:var(--foreground);padding:0 11px;font-weight:400;transition:border-color .13s,box-shadow .13s}.field input::placeholder{color:var(--muted-foreground)}.field select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:36px}.field input:focus,.field select:focus{border-color:var(--ring);outline:none;box-shadow:0 0 0 3px #d4d4d829}.primary-action,.secondary-action,.danger-action{border-radius:var(--radius-md);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;min-height:38px;padding:0 15px;font-size:13.5px;font-weight:500;transition:background-color .13s,border-color .13s,opacity .13s,color .13s;display:inline-flex}.primary-action{background:var(--brand);color:var(--brand-foreground);grid-column:1/-1;align-self:end}.primary-action:hover:not(:disabled){filter:brightness(1.05)}.secondary-action{border-color:var(--border);color:var(--foreground);background:0 0}.secondary-action:hover:not(:disabled){background:var(--accent)}.danger-action{border-color:var(--destructive-line);color:#fca5a5;background:0 0}.danger-action:hover:not(:disabled){background:var(--destructive-dim)}.payload-preview{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);min-width:0;overflow:hidden}.preview-header{border-bottom:1px solid var(--border);color:var(--muted-foreground);font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;padding:10px 12px;font-size:11px}.preview-header code{color:var(--brand);letter-spacing:.04em;font-size:11px}pre{color:#cbd5e1;font-family:var(--mono);margin:0;padding:14px;font-size:12.5px;line-height:1.7;overflow-x:auto}.error-message{border:1px solid var(--destructive-line);border-radius:var(--radius-md);background:var(--destructive-dim);color:#fca5a5;margin:16px 0 0;padding:11px 13px;font-size:13px}.run-result{border:1px solid var(--brand-line);border-radius:var(--radius-md);background:var(--brand-dim);color:var(--muted-foreground);flex-wrap:wrap;align-items:center;gap:12px;margin-top:16px;padding:11px 13px;font-size:13px;display:flex}.run-result strong{color:var(--brand)}.run-result code{font-family:var(--mono);color:var(--muted-foreground);font-size:11.5px}.recent-runs{margin-top:16px}.recent-runs h4{font-size:12px;font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);margin:0 0 8px;font-weight:500}.recent-run-item{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);width:100%;color:var(--muted-foreground);text-align:left;justify-content:space-between;align-items:center;gap:12px;padding:9px 12px;font-size:13px;transition:border-color .13s,background-color .13s,color .13s;display:flex}.recent-run-item+.recent-run-item{margin-top:6px}.recent-run-item:hover{border-color:var(--secondary);background:var(--accent);color:var(--foreground)}.recent-run-item.active{border-color:var(--brand-line);background:var(--brand-dim);color:var(--foreground)}.review-filters{border-bottom:1px solid var(--border-soft);flex-wrap:wrap;gap:14px 18px;padding-bottom:16px;display:flex}.review-filter{color:var(--muted-foreground);gap:4px;font-size:12px;display:grid}.review-filter select,.review-filter input{border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--input-bg);color:var(--foreground);font-size:13px;font-family:var(--sans);padding:6px 8px}.review-filter input[type=number]{width:80px}.review-group{margin-bottom:10px}.review-group summary{cursor:pointer;font-family:var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground);align-items:center;gap:8px;margin-bottom:8px;font-size:11px;font-weight:500;list-style:none;display:flex}.review-group summary::-webkit-details-marker{display:none}.review-group-count{border-radius:var(--radius-pill);background:var(--secondary);color:var(--muted-foreground);padding:1px 7px;font-size:10px}.review-workbench{grid-template-columns:minmax(260px,.85fr) minmax(0,1.15fr);gap:14px;margin-top:20px;display:grid}.review-list,.opportunity-detail{min-width:0}.review-list{border-right:1px solid var(--border-soft);padding-right:16px}.opportunity-detail{padding-left:2px}.review-header,.detail-topline,.review-actions{justify-content:space-between;align-items:center;gap:12px;display:flex}.review-header{margin-bottom:12px}.review-header h3,.opportunity-detail h3,.opportunity-detail h4{margin-bottom:0}.opportunity-detail h4{font-size:12px;font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);margin-top:16px;font-weight:500}.opportunity-item{border:none;border-bottom:1px solid var(--border-soft);width:100%;color:var(--muted-foreground);text-align:left;background:0 0;border-radius:0;grid-template-columns:1fr auto;align-items:center;gap:12px;padding:11px 8px;transition:background-color .13s,color .13s;display:grid}.opportunity-item:last-child{border-bottom:none}.opportunity-item:hover{background:var(--accent);color:var(--foreground)}.opportunity-item.active{background:var(--brand-dim);color:var(--foreground)}.opportunity-item strong{color:var(--brand);font-family:var(--mono);font-variant-numeric:tabular-nums;font-size:14px}.empty-state{color:var(--muted-foreground);margin-bottom:0;font-size:13px}.score-block{border:1px solid var(--brand-line);border-radius:var(--radius-md);background:var(--brand-dim);gap:3px;min-width:150px;margin:12px 0 16px;padding:12px 14px;display:inline-grid}.score-block strong{color:var(--brand);font-variant-numeric:tabular-nums;font-size:34px;font-weight:600;line-height:1}.score-block span{color:var(--muted-foreground);font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;font-size:10px}.evidence-list{color:var(--muted-foreground);gap:7px;margin:10px 0 16px;padding-left:18px;font-size:13px;display:grid}.opportunity-hero{align-items:flex-end;gap:14px;margin:12px 0 16px;display:flex}.opportunity-hero-screenshot{object-fit:cover;object-position:top;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);flex:1;min-width:0;max-width:280px;height:160px}.opportunity-hero-screenshot.placeholder{justify-content:center;align-items:center;display:flex}.opportunity-hero .score-block{flex-shrink:0;margin:0}.pagespeed-gauge{grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:12px;margin:10px 0 16px;display:grid}.pagespeed-meter{gap:6px;display:grid}.pagespeed-meter-header{color:var(--muted-foreground);justify-content:space-between;align-items:baseline;font-size:12px;display:flex}.pagespeed-meter-header strong{font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--foreground);font-size:14px}.pagespeed-meter-track{border-radius:var(--radius-pill);background:var(--border-soft);height:6px;overflow:hidden}.pagespeed-meter-fill{border-radius:var(--radius-pill);height:100%}.pagespeed-meter-fill.status-good{background:var(--brand)}.pagespeed-meter-fill.status-warning{background:var(--warning)}.pagespeed-meter-fill.status-critical{background:var(--destructive)}.tech-chips{flex-wrap:wrap;gap:6px;margin:10px 0 16px;display:flex}.tech-chip{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--card);color:var(--muted-foreground);padding:4px 10px;font-size:12px}.evidence-groups{gap:12px;margin:10px 0 16px;display:grid}.evidence-group-label{font-family:var(--mono);letter-spacing:.06em;text-transform:uppercase;color:var(--muted-foreground);margin-bottom:4px;font-size:11px;font-weight:500}.evidence-group .evidence-list{margin:0}.media-summary-list{color:var(--muted-foreground);gap:6px;margin:10px 0 16px;padding-left:18px;font-size:13px;display:grid}.proposal-preview{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);max-height:260px}.review-actions{flex-wrap:wrap;justify-content:flex-start;margin-top:16px}.toaster{gap:8px;margin-bottom:16px;display:grid}.toast{border:1px solid var(--border);border-radius:var(--radius-md);justify-content:space-between;align-items:center;gap:12px;padding:10px 12px;font-size:13px;display:flex}.toast-success{border-color:var(--brand-line);background:var(--brand-dim);color:var(--brand)}.toast-error{border-color:var(--destructive-line);background:var(--destructive-dim);color:var(--destructive)}.toast-dismiss{color:inherit;cursor:pointer;opacity:.7;background:0 0;border:none;font-size:16px;line-height:1}.toast-dismiss:hover{opacity:1}.approved-list{gap:10px;margin-top:16px;display:grid}.approved-item{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);justify-content:space-between;align-items:center;gap:16px;padding:12px 14px;display:flex}.approved-item p{color:var(--muted-foreground);margin:4px 0 0;font-size:13px}.operations-list{gap:0;display:grid}.operation-row{border-bottom:1px solid var(--border-soft);justify-content:space-between;align-items:center;gap:18px;padding:16px 2px;display:flex}.operation-row:last-child{border-bottom:none}.operation-row p{margin-bottom:0;font-size:13px}.operation-row code{font-family:var(--mono);color:var(--muted-foreground);border:1px solid var(--border);border-radius:var(--radius-sm);white-space:nowrap;padding:4px 8px;font-size:11.5px}.flow-card-cta{color:var(--brand);align-items:center;gap:6px;font-size:13px;font-weight:500;display:inline-flex}.flow-card-cta svg{width:15px;height:15px}a.flow-card{transition:border-color .13s,background-color .13s}a.flow-card:hover{border-color:var(--brand-line)}.kpis{grid-template-columns:repeat(4,1fr);gap:12px;display:grid}.kpi{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-sm);gap:8px;padding:16px 18px;display:grid}.kpi .k{font-family:var(--mono);text-transform:uppercase;letter-spacing:.09em;color:var(--muted-foreground);font-size:10.5px}.kpi .v{letter-spacing:-.04em;font-variant-numeric:tabular-nums;font-size:32px;font-weight:600;line-height:1}.kpi .v small{color:var(--muted-foreground);margin-left:2px;font-size:17px}.kpi-foot{font-family:var(--mono);color:var(--muted-foreground);font-size:11px}.kpi-foot.warn{color:var(--warning)}.chart-row{grid-template-columns:1.55fr 1fr;gap:16px;display:grid}.panel{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);box-shadow:var(--shadow-sm);min-width:0;padding:18px 20px}.panel .ph{justify-content:space-between;align-items:baseline;gap:12px;margin-bottom:6px;display:flex}.panel .ph h4{font-size:14px;font-weight:600}.panel .ph .sub{font-family:var(--mono);color:var(--muted-foreground);font-size:11px}.area-svg{width:100%;height:180px;margin-top:10px;display:block;overflow:visible}.grid-line{stroke:var(--border-soft);stroke-width:1px}.area-fill{fill:url(#dashAreaGrad)}.area-line{fill:none;stroke:var(--brand);stroke-width:2px;stroke-linejoin:round;stroke-linecap:round}.end-dot{fill:var(--brand);stroke:var(--card);stroke-width:3px}.statusbars{gap:12px;margin-top:14px;display:grid}.sbar{grid-template-columns:104px 1fr 32px;align-items:center;gap:12px;display:grid}.sbar .lbl{color:var(--muted-foreground);align-items:center;gap:8px;font-size:12.5px;display:flex}.sbar .lbl i{border-radius:2px;flex:none;width:7px;height:7px}.sbar .track{background:var(--muted);border-radius:999px;height:10px;overflow:hidden}.sbar .fill{border-radius:999px;min-width:2px;height:100%}.sbar .val{font-family:var(--mono);text-align:right;color:var(--foreground);font-variant-numeric:tabular-nums;font-size:12.5px}.hist{align-items:flex-end;gap:10px;height:150px;margin-top:16px;display:flex}.hist .col{flex-direction:column;flex:1;justify-content:flex-end;align-items:center;gap:8px;height:100%;display:flex}.hist .bar{background:var(--brand);opacity:.42;border-radius:4px 4px 2px 2px;width:100%;min-height:2px;transition:opacity .12s}.hist .bar.peak{opacity:1}.hist .col:hover .bar{opacity:.7}.hist .col:hover .bar.peak{opacity:1}.hist .n{font-family:var(--mono);color:var(--foreground);font-variant-numeric:tabular-nums;font-size:11px}.hist-x{gap:10px;margin-top:8px;display:flex}.hist-x span{text-align:center;font-family:var(--mono);color:var(--muted-foreground);flex:1;font-size:9.5px}.tbl{border-collapse:collapse;width:100%;font-size:13px}.tbl th{text-align:left;color:var(--muted-foreground);font-size:11px;font-weight:500;font-family:var(--mono);text-transform:uppercase;letter-spacing:.06em;border-bottom:1px solid var(--border);padding:8px 10px}.tbl td{border-bottom:1px solid var(--border-soft);padding:11px 10px}.tbl tr:last-child td{border-bottom:none}.tbl .mono{font-family:var(--mono);color:var(--muted-foreground);font-size:11.5px}.tbl .num{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums}.tab-group{gap:6px;display:inline-flex}.tab-group .secondary-action.active{background:var(--accent);border-color:var(--ring)}.notes-textarea{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--input-bg);width:100%;color:var(--foreground);resize:vertical;margin-bottom:12px;padding:10px 12px;font-size:13.5px}.notes-textarea:focus{border-color:var(--ring);outline:none;box-shadow:0 0 0 3px #d4d4d829}.outreach-form{gap:8px;margin-bottom:12px;display:flex}.outreach-contact{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--input-bg);min-height:38px;color:var(--foreground);flex:1;padding:0 12px;font-size:13.5px}.outreach-channel{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--input-bg);min-height:38px;color:var(--foreground);padding:0 10px;font-size:13.5px}.empty-state.warn{color:#f5b13d;border:1px solid var(--brand-line,#f5b13d33);border-radius:var(--radius-md);background:#f5b13d14;padding:8px 12px}.funnel-list{gap:8px;margin:0;padding:0;list-style:none;display:grid}.funnel-list li{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--background);justify-content:space-between;align-items:center;padding:8px 10px;display:flex}.funnel-list strong{font-variant-numeric:tabular-nums}@media (max-width:1040px){.chart-row{grid-template-columns:1fr}.kpis{grid-template-columns:repeat(2,1fr)}}@media (max-width:640px){.kpis{grid-template-columns:1fr}}.auth-main{justify-content:center;align-items:center;min-height:100vh;padding:24px;display:flex}.auth-shell{width:100%;max-width:400px}.auth-head{text-align:center;justify-items:center;gap:14px;margin-bottom:22px;display:grid}.auth-head .brand-mark{border-radius:var(--radius);width:48px;height:48px;font-size:22px}.auth-head h1{letter-spacing:-.025em;margin:6px 0 0;font-size:22px}.auth-head p{color:var(--muted-foreground);max-width:34ch;margin:0;font-size:13.5px;line-height:1.6}.auth-card{border:1px solid var(--border);background:var(--card);box-shadow:var(--shadow-sm);border-radius:var(--radius-lg);padding:22px}.auth-card h2{margin:0 0 5px;font-size:15px}.auth-card>p{color:var(--muted-foreground);margin:0 0 18px;font-size:13px;line-height:1.6}.auth-actions{gap:12px;display:grid}.auth-button{border-radius:var(--radius-md);background:var(--brand);min-height:40px;color:var(--brand-foreground);border:1px solid #0000;justify-content:center;align-items:center;gap:8px;padding:0 16px;font-size:14px;font-weight:500;transition:filter .13s;display:inline-flex}.auth-button:hover:not(:disabled){filter:brightness(1.05)}.auth-error{border:1px solid var(--destructive-line);border-radius:var(--radius-md);background:var(--destructive-dim);color:#fca5a5;margin:0;padding:10px 12px;font-size:13px;line-height:1.5}.auth-skeleton{border-radius:var(--radius-md);background:var(--muted);width:100%;height:40px}@media (prefers-reduced-motion:reduce){*,:before,:after{scroll-behavior:auto!important;transition:none!important}}@media (max-width:1040px){.app-shell{grid-template-columns:1fr}.sidebar{flex-direction:column;min-height:auto;position:static}.nav-list{grid-template-columns:repeat(3,minmax(0,1fr))}.topbar,.section-heading,.operation-row{flex-direction:column;align-items:flex-start}.metrics-grid,.flow-grid,.runner-layout,.review-workbench{grid-template-columns:1fr}.review-list{border-right:none;border-bottom:1px solid var(--border-soft);padding-bottom:16px;padding-right:0}}@media (max-width:640px){.app-shell{padding:14px}.nav-list,.flow-form{grid-template-columns:1fr}.flow-tabs{flex-wrap:wrap;height:auto;display:flex}.panel,.console-card,.sidebar{padding:16px}}.candidates-section{flex-direction:column;gap:12px;margin-top:24px;display:flex}.candidates-layout{grid-template-columns:minmax(240px,320px) 1fr;align-items:start;gap:20px;display:grid}.scoring-panel{border-right:1px solid var(--border-soft);flex-direction:column;gap:16px;padding-right:20px;display:flex}.scoring-panel-header{flex-direction:column;gap:4px;display:flex}.scoring-panel-header .hint{opacity:.7;font-size:12px}.scoring-sliders{flex-direction:column;gap:12px;display:flex}.scoring-slider{flex-direction:column;gap:6px;display:flex}.scoring-slider .slider-label{align-items:center;gap:8px;font-size:13px;display:flex}.scoring-slider .slider-label strong{font-variant-numeric:tabular-nums;margin-left:auto}.scoring-slider input[type=range]{width:100%}.scoring-presets{flex-direction:column;gap:10px;display:flex}.scoring-presets .save-preset{gap:8px;display:flex}.scoring-presets .save-preset input{flex:1}.candidate-ranking{flex-direction:column;gap:0;margin:0;padding:0;list-style:none;display:flex}.candidate-row{border-bottom:1px solid var(--border-soft);align-items:center;gap:12px;padding:12px 2px;display:flex}.candidate-row:last-child{border-bottom:none}.candidate-main{flex-direction:column;gap:2px;min-width:0;display:flex}.candidate-name{font-weight:600}.candidate-meta{opacity:.7;font-size:12px}.candidate-score{align-items:center;gap:10px;margin-left:auto;display:flex}.candidate-score strong{font-variant-numeric:tabular-nums}.candidate-thumb{object-fit:cover;object-position:top;border:1px solid var(--border);border-radius:var(--radius-sm);background:var(--card);flex-shrink:0;width:64px;height:48px}.candidate-thumb.placeholder{background:var(--muted)}.candidate-facts{flex-wrap:wrap;align-items:center;gap:8px;margin-top:4px;display:flex}.candidate-rating{font-variant-numeric:tabular-nums;color:var(--muted-foreground);align-items:center;gap:3px;font-size:12px;display:inline-flex}.candidate-rating-star{color:var(--warning)}.candidate-rating-count{opacity:.7}.candidate-link{color:var(--brand);border-bottom:1px solid #0000;align-items:center;gap:3px;font-size:12px;transition:border-color .13s;display:inline-flex}.candidate-link:hover{border-bottom-color:var(--brand-line)}.candidate-actions{flex-shrink:0;align-items:center;gap:8px;display:flex}@media (max-width:900px){.candidates-layout{grid-template-columns:1fr}.scoring-panel{border-right:none;border-bottom:1px solid var(--border-soft);padding-bottom:16px;padding-right:0}}.stepper{align-items:flex-start;margin:4px 0 18px;display:flex}.stepper-item{text-align:center;flex-direction:column;flex:1;align-items:center;min-width:0;padding:0 8px;display:flex;position:relative}.stepper-node{z-index:1;border:2px solid var(--border);background:var(--card);width:28px;height:28px;color:var(--muted-foreground);border-radius:50%;flex:none;place-items:center;display:grid;position:relative}.stepper-line{background:var(--border);z-index:0;height:2px;position:absolute;top:13px;left:-50%;right:50%}.stepper-item.is-done .stepper-node,.stepper-item.is-active .stepper-node{border-color:var(--brand);background:var(--brand);color:var(--brand-foreground)}.stepper-item.is-done .stepper-line,.stepper-item.is-active .stepper-line{background:var(--brand)}.stepper-item.is-error .stepper-node{border-color:var(--destructive);background:var(--destructive);color:var(--destructive-foreground)}.stepper-item.is-error .stepper-line{background:var(--destructive)}.stepper-dot{opacity:.5;background:currentColor;border-radius:50%;width:7px;height:7px}.stepper-spinner{border:2px solid #052e1a66;border-top-color:var(--brand-foreground);border-radius:50%;width:14px;height:14px;animation:.7s linear infinite stepper-spin}@keyframes stepper-spin{to{transform:rotate(360deg)}}.stepper-label{color:var(--muted-foreground);margin-top:8px;font-size:13px;font-weight:600;line-height:1.3}.stepper-item.is-done .stepper-label,.stepper-item.is-active .stepper-label,.stepper-item.is-error .stepper-label{color:var(--foreground)}.stepper-desc{color:var(--muted-foreground);margin-top:3px;font-size:11.5px;line-height:1.4}.stepper-output{color:var(--muted-foreground);margin:-6px 0 18px;font-size:12.5px}@media (prefers-reduced-motion:reduce){.stepper-spinner{animation:none}}@media (max-width:640px){.stepper-desc{display:none}.stepper-label{font-size:11.5px}}.side-panel-root{z-index:60;visibility:hidden;transition:visibility 0s linear .26s;position:fixed;inset:0}.side-panel-root.is-open{visibility:visible;transition:visibility linear}.side-panel-backdrop{opacity:0;background:#0000008c;transition:opacity .26s;position:absolute;inset:0}.side-panel-root.is-open .side-panel-backdrop{opacity:1}.side-panel{border-left:1px solid var(--border);background:var(--card);width:min(520px,100vw);height:100%;box-shadow:var(--shadow);flex-direction:column;transition:transform .26s cubic-bezier(.4,0,.2,1);display:flex;position:absolute;top:0;right:0;transform:translate(100%)}.side-panel-root.is-open .side-panel{transform:translate(0)}.side-panel-header{border-bottom:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;padding:16px 20px;display:flex}.side-panel-title{letter-spacing:-.01em;margin:0;font-size:15px;font-weight:600}.side-panel-close{border:1px solid var(--border);border-radius:var(--radius-md);width:30px;height:30px;color:var(--muted-foreground);background:0 0;place-items:center;transition:background-color .13s,color .13s,border-color .13s;display:grid}.side-panel-close:hover{background:var(--accent);color:var(--foreground);border-color:var(--secondary)}.side-panel-body{flex:1;min-height:0;padding:20px;overflow-y:auto}@media (prefers-reduced-motion:reduce){.side-panel,.side-panel-backdrop{transition:none}}@media (max-width:640px){.side-panel{width:100vw}}.candidate-detail{min-width:0}.candidate-detail h3{margin-bottom:0}.candidate-detail h4{font-size:12px;font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);margin-top:16px;font-weight:500}.candidate-contact-list{color:var(--muted-foreground);gap:6px;margin:10px 0 16px;padding-left:18px;font-size:13px;display:grid}.candidate-contact-list a{color:var(--foreground);text-underline-offset:2px;text-decoration:underline}.candidate-links{flex-wrap:wrap;gap:8px;margin:0 0 16px;display:flex}.candidate-link{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);color:var(--foreground);align-items:center;gap:6px;padding:6px 11px;font-size:13px;transition:border-color .13s,background-color .13s;display:inline-flex}.candidate-link:hover{border-color:var(--brand-line);background:var(--accent)}.candidate-actions{flex-wrap:wrap;gap:12px;margin-top:20px;display:flex}.candidate-actions .primary-action{align-self:auto}.builds-groups{gap:24px;margin-top:20px;display:grid}.build-section h4{font-size:12px;font-family:var(--mono);letter-spacing:.08em;text-transform:uppercase;color:var(--muted-foreground);margin:0 0 12px;font-weight:500}.build-grid{grid-template-columns:repeat(auto-fill,minmax(360px,1fr));gap:14px;display:grid}.build-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--background);align-content:start;gap:12px;min-width:0;padding:16px;display:grid}.build-card-head{justify-content:space-between;align-items:flex-start;gap:12px;display:flex}.build-card-head h3{margin-bottom:6px}.build-card-meta{align-items:center;gap:8px;display:flex}.build-card-meta code{font-family:var(--mono);color:var(--muted-foreground);font-size:11px}.build-status-note{color:var(--muted-foreground);align-items:center;gap:8px;margin:0;font-size:13px;display:flex}.build-status-error{color:#fca5a5}.build-spinner-dot{background:var(--warning);width:7px;height:7px;box-shadow:0 0 0 3px var(--warning-dim);border-radius:50%;flex:none;animation:1.4s ease-in-out infinite build-pulse}@keyframes build-pulse{0%,to{opacity:1}50%{opacity:.35}}.build-preview-frame{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);width:100%;max-width:100%;height:340px}.build-open-link{justify-self:start}.build-feedback-field textarea{resize:vertical;border:1px solid var(--input);border-radius:var(--radius-md);background:var(--input-bg);width:100%;color:var(--foreground);font:inherit;padding:9px 11px}.build-feedback-field textarea:focus{border-color:var(--ring);outline:none;box-shadow:0 0 0 3px #d4d4d829}.build-card-actions{flex-wrap:wrap;gap:8px;display:flex}.scorecard{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);gap:12px;padding:14px;display:grid}.scorecard-head{justify-content:space-between;align-items:center;gap:12px;display:flex}.scorecard-head .score-block{min-width:0;margin:0}.scorecard-dims{gap:8px;margin:0;padding:0;list-style:none;display:grid}.scorecard-dim{grid-template-columns:110px 1fr 28px;align-items:center;gap:10px;font-size:12px;display:grid}.scorecard-dim-key{color:var(--muted-foreground);text-transform:capitalize;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.scorecard-dim .track{background:var(--muted);border-radius:999px;height:8px;overflow:hidden}.scorecard-dim .fill{background:var(--brand);border-radius:999px;min-width:2px;height:100%}.scorecard-dim-score{text-align:right;font-family:var(--mono);font-variant-numeric:tabular-nums;color:var(--foreground)}.scorecard-defects{border-top:1px solid var(--border-soft);gap:8px;margin:0;padding:10px 0 0;list-style:none;display:grid}.scorecard-defects li{gap:4px;font-size:12.5px;display:grid}.scorecard-defects p{color:var(--muted-foreground);margin:0}@media (max-width:640px){.build-grid{grid-template-columns:1fr}}.design-lab{gap:18px;display:grid}.design-lab-hero{grid-template-columns:minmax(0,1fr) 340px;align-items:stretch;gap:18px;display:grid}.design-lab-model-card{border:1px solid var(--brand-line);border-radius:var(--radius-lg);background:linear-gradient(135deg, var(--brand-dim), #ffffff08);align-content:center;gap:6px;padding:18px;display:grid}.design-lab-model-card span,.design-lab-model-card small{color:var(--muted-foreground);font-family:var(--mono);font-size:11px}.design-lab-model-card strong{letter-spacing:-.03em;font-size:18px}.design-loop ol{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;margin:0;padding:0;list-style:none;display:grid}.design-run-panel{gap:14px;display:grid}.design-run-form{grid-template-columns:repeat(4,minmax(0,1fr));gap:10px;display:grid}.design-run-form label{gap:5px;display:grid}.design-run-form label span{color:var(--muted-foreground);font-family:var(--mono);text-transform:uppercase;font-size:11px}.design-run-form input,.design-feedback-form textarea,.design-feedback-form input{border:1px solid var(--border);border-radius:var(--radius-md);width:100%;color:var(--foreground);background:#ffffff09;padding:10px 11px}.design-run-form .is-wide{grid-column:span 3}.design-runs-strip{gap:8px;padding-bottom:3px;display:flex;overflow-x:auto}.design-runs-strip button{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--card);min-width:190px;color:var(--foreground);text-align:left;padding:10px}.design-runs-strip button.is-active{border-color:var(--brand-line);background:var(--brand-dim)}.design-runs-strip span,.design-runs-strip small{display:block}.design-runs-strip small{color:var(--muted-foreground);font-family:var(--mono);font-size:11px}.design-loop li{border:1px solid var(--border);border-radius:var(--radius-md);background:#ffffff06;padding:13px}.design-loop li strong,.design-loop li span{display:block}.design-loop li strong{margin-bottom:5px}.design-loop li span{color:var(--muted-foreground);font-size:13px}.design-candidate-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:14px;display:grid}.design-candidate{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--card);gap:13px;padding:16px;display:grid}.design-candidate--learning_seed{border-color:var(--brand-line);box-shadow:inset 0 0 0 1px #34d39914}.design-candidate--reject{border-color:var(--destructive-line)}.design-candidate-head{justify-content:space-between;gap:12px;display:flex}.design-candidate h3{letter-spacing:-.03em;margin:2px 0 0;font-size:17px}.design-candidate p{color:var(--muted-foreground);margin:0}.design-score{border:1px solid var(--border);background:var(--secondary);width:46px;height:46px;font-family:var(--mono);border-radius:50%;flex:none;place-items:center;font-weight:800;display:grid}.design-tags{flex-wrap:wrap;gap:6px;display:flex}.design-tags span{border:1px solid var(--border);border-radius:var(--radius-pill);color:var(--foreground);font-family:var(--mono);padding:3px 8px;font-size:11px}.design-tags--muted span{color:var(--muted-foreground)}.design-score-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:7px;margin:0;display:grid}.design-score-grid div{border:1px solid var(--border-soft);border-radius:var(--radius-md);padding:8px}.design-score-grid dt{color:var(--muted-foreground);font-family:var(--mono);font-size:10px}.design-score-grid dd{margin:2px 0 0;font-weight:800}.design-feedback{border-left:2px solid var(--brand);padding-left:11px}.design-feedback.is-pending{border-left-color:var(--warning)}.design-feedback strong{margin-bottom:3px;display:block}.design-candidate-actions{border-top:1px solid var(--border-soft);justify-content:space-between;align-items:center;gap:10px;padding-top:12px;display:flex}.design-candidate-actions span{color:var(--muted-foreground);font-family:var(--mono);font-size:11px}.design-candidate-actions button,.artifact-preview button{border:1px solid var(--brand-line);border-radius:var(--radius-pill);background:var(--brand-dim);color:var(--brand);padding:7px 11px;font-size:12px;font-weight:700;transition:background-color .13s,border-color .13s,color .13s}.design-candidate-actions button:hover:not(:disabled),.artifact-preview button:hover{border-color:var(--brand);background:var(--brand);color:var(--brand-foreground)}.design-artifact-detail{gap:16px;display:grid}.design-artifact-summary,.design-artifact-notes{border:1px solid var(--border);border-radius:var(--radius-lg);background:#ffffff06;padding:16px}.design-artifact-summary h2,.design-artifact-notes h3{letter-spacing:-.035em;margin:3px 0 6px}.design-artifact-summary p{color:var(--muted-foreground);margin:0}.design-artifact-summary dl{grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:14px 0 0;display:grid}.design-artifact-summary dl div{border:1px solid var(--border-soft);border-radius:var(--radius-md);min-width:0;padding:8px}.design-artifact-summary dt{color:var(--muted-foreground);font-family:var(--mono);text-transform:uppercase;font-size:10px}.design-artifact-summary dd{text-overflow:ellipsis;white-space:nowrap;margin:2px 0 0;font-size:12px;font-weight:800;overflow:hidden}.design-artifact-frame{border:1px solid var(--border);border-radius:calc(var(--radius-lg) + 2px);background:radial-gradient(circle at 20% 10%,#34d39914,#0000 32%),#ffffff05;padding:10px}.artifact-preview{border:1px solid var(--border-soft);border-radius:var(--radius-lg);background:#0c0d0f;min-height:360px;position:relative;overflow:hidden}.artifact-html-frame{border-radius:var(--radius-lg);background:#0b0d0f;border:0;width:100%;min-height:460px}.artifact-kicker{color:var(--brand);font-family:var(--mono);letter-spacing:.1em;text-transform:uppercase;font-size:10px}.artifact-preview h3{letter-spacing:-.07em;margin:6px 0 8px;font-size:clamp(24px,6vw,42px);line-height:.94}.artifact-preview p{color:#f5f5f5b3;margin:0}.artifact-preview--clinic{grid-template-columns:.92fr 1fr;gap:0;display:grid}.artifact-clinic-photo{background:linear-gradient(135deg,#ffffff2e,#0000 52%),linear-gradient(145deg,#2a2722,#121518 62%,#20342d);min-height:360px;position:relative}.artifact-clinic-photo span{border-radius:var(--radius-pill);font-family:var(--mono);background:#00000047;border:1px solid #ffffff2e;padding:5px 9px;font-size:10px;position:absolute;top:14px;left:14px}.artifact-clinic-photo div{background:linear-gradient(#fff3,#34d3991f);border:1px solid #ffffff29;border-radius:999px 999px 20px 20px;width:44%;height:58%;position:absolute;bottom:24px;right:22px}.artifact-clinic-copy{align-content:center;gap:14px;padding:26px;display:grid}.artifact-proof-strip{border-left:2px solid var(--brand);grid-template-columns:auto minmax(0,1fr);align-items:center;gap:10px;padding-left:12px;display:grid}.artifact-proof-strip strong{letter-spacing:-.06em;font-size:26px}.artifact-proof-strip span{color:var(--muted-foreground);font-size:12px;line-height:1.35}.artifact-preview--gradient{text-align:center;align-content:center;gap:14px;padding:34px;display:grid}.artifact-gradient-orb{filter:blur(12px);background:radial-gradient(circle,#6d5bff9e,#34d39929 48%,#0000 70%);border-radius:50%;width:230px;height:230px;position:absolute;inset:28px auto auto 50%;transform:translate(-50%)}.artifact-preview--gradient>:not(.artifact-gradient-orb){position:relative}.artifact-floating-cards{justify-content:center;gap:8px;margin-top:8px;display:flex}.artifact-floating-cards span{border-radius:var(--radius-pill);font-family:var(--mono);background:#ffffff14;border:1px solid #ffffff29;padding:8px 10px;font-size:11px}.artifact-preview--gradient small{color:#fca5a5;font-family:var(--mono)}.artifact-preview--map{gap:18px;padding:24px;display:grid}.artifact-preview--map header{max-width:38ch}.artifact-map-grid{grid-template-columns:repeat(3,minmax(0,1fr));gap:10px;display:grid}.artifact-map-grid section{border:1px solid var(--border-soft);border-radius:var(--radius-md);background:#ffffff09;gap:7px;padding:13px;display:grid}.artifact-map-grid span{color:var(--warning);font-family:var(--mono);text-transform:uppercase;font-size:10px}.artifact-map-grid strong{letter-spacing:-.03em;font-size:17px}.artifact-map-grid p{font-size:12px}.design-artifact-notes ul{color:var(--muted-foreground);gap:8px;margin:0 0 12px;padding-left:18px;display:grid}.design-artifact-notes code{border:1px solid var(--border-soft);border-radius:var(--radius-md);color:var(--muted-foreground);text-overflow:ellipsis;white-space:nowrap;padding:8px;font-size:11px;display:block;overflow:hidden}.design-preview-with-feedback{gap:16px;display:grid}.design-feedback-form{border:1px solid var(--border);border-radius:var(--radius-lg);background:#ffffff06;gap:10px;padding:16px;display:grid}.design-feedback-form h3{letter-spacing:-.03em;margin:0}.design-feedback-form textarea{resize:vertical;min-height:92px}.design-feedback-form div{flex-wrap:wrap;gap:8px;display:flex}.design-feedback-form button{border:1px solid var(--border);border-radius:var(--radius-pill);background:var(--secondary);color:var(--foreground);padding:8px 12px;font-weight:800}@media (max-width:1180px){.design-lab-hero,.design-loop ol,.design-candidate-grid{grid-template-columns:1fr}}@media (max-width:640px){.design-artifact-summary dl,.design-run-form,.artifact-preview--clinic,.artifact-map-grid{grid-template-columns:1fr}.design-run-form .is-wide{grid-column:auto}}
