:root{color-scheme:light;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,Segoe UI,sans-serif;--bg: #f8fafc;--surface: #ffffff;--surface-subtle: #f1f5f9;--surface-hover: #f8fafc;--border: #dbe3ef;--border-strong: #c7d2e3;--text: #0f172a;--text-muted: #64748b;--text-soft: #94a3b8;--blue: #2563eb;--blue-hover: #1d4ed8;--blue-soft: #eff6ff;--blue-border: #bfdbfe;--green: #16a34a;--green-soft: #ecfdf3;--yellow: #ca8a04;--yellow-soft: #fefce8;--orange: #ea580c;--orange-soft: #fff7ed;--red: #dc2626;--red-soft: #fef2f2;--radius-sm: 6px;--radius-md: 10px;--radius-lg: 14px;--shadow-sm: 0 1px 2px rgba(15, 23, 42, .06);--shadow-md: 0 8px 24px rgba(15, 23, 42, .08)}html.dark{--bg: #0f172a;--surface: #1e293b;--surface-subtle: #334155;--surface-hover: #0f172a;--border: #334155;--border-strong: #475569;--text: #f8fafc;--text-muted: #94a3b8;--text-soft: #64748b;--blue: #3b82f6;--blue-hover: #60a5fa;--blue-soft: rgba(59, 130, 246, .15);--blue-border: rgba(59, 130, 246, .25);--green: #22c55e;--green-soft: rgba(34, 197, 94, .15);--yellow: #eab308;--yellow-soft: rgba(234, 179, 8, .15);--orange: #f97316;--orange-soft: rgba(249, 115, 22, .15);--red: #ef4444;--red-soft: rgba(239, 68, 68, .15);--shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);--shadow-md: 0 8px 24px rgba(0, 0, 0, .5)}*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;min-width:320px;min-height:100vh;background:var(--bg);color:var(--text)}a{color:inherit;text-decoration:none}button,input{font:inherit}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.58}:focus-visible{outline:3px solid rgba(37,99,235,.28);outline-offset:2px}.app-shell{min-height:100vh;background:var(--bg)}.app-header{position:sticky;top:0;z-index:20;height:64px;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:0 24px;background:#ffffffeb;border-bottom:1px solid var(--border);-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}html.dark .app-header{background:#1e293beb}.brand{display:inline-flex;align-items:center;gap:10px;font-weight:700;letter-spacing:-.02em;color:var(--text)}.brand-mark,.logo-mark{display:grid;place-items:center;width:32px;height:32px;border-radius:8px;background:var(--blue);color:#fff;font-size:.82rem;font-weight:800}.nav-links{display:flex;align-items:center;gap:4px}.nav-links a{padding:8px 12px;border-radius:var(--radius-md);color:var(--text-muted);font-size:.9rem;font-weight:600}.nav-links a:hover{background:var(--surface-subtle);color:var(--text)}.nav-links a.active{background:var(--blue-soft);color:var(--blue)}.center-screen{min-height:calc(100vh - 64px);display:grid;place-items:center;padding:24px}.spinner{width:28px;height:28px;border:3px solid var(--blue-border);border-top-color:var(--blue);border-radius:999px;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}.card,.panel,.sidebar,.review-panel,.login-card,.chat-shell,.dora-card,.empty-state{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);box-shadow:var(--shadow-sm)}.eyebrow{margin:0 0 8px;color:var(--blue);font-size:.72rem;font-weight:800;letter-spacing:.12em;text-transform:uppercase}h1,h2,h3,p{margin-top:0}h1{margin-bottom:8px;font-size:clamp(1.8rem,3vw,2.25rem);line-height:1.12;letter-spacing:-.045em}h2{margin-bottom:0;font-size:1rem;letter-spacing:-.01em}.muted{color:var(--text-muted)}.button-primary,.button-secondary,.small-button,.github-button,.chat-input-row button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border-radius:var(--radius-md);font-weight:700;line-height:1;transition:background .16s ease,border-color .16s ease,color .16s ease}.button-primary,.github-button,.chat-input-row button{border:1px solid var(--blue);background:var(--blue);color:#fff}.button-primary:hover,.github-button:hover,.chat-input-row button:hover:not(:disabled){border-color:var(--blue-hover);background:var(--blue-hover)}.button-secondary,.small-button{border:1px solid var(--border);background:var(--surface);color:var(--text)}.button-secondary:hover,.small-button:hover:not(:disabled){border-color:var(--border-strong);background:var(--surface-hover)}.small-button{min-height:30px;padding:7px 10px;font-size:.78rem}.login-page{min-height:100vh;display:grid;place-items:center;padding:24px;background:linear-gradient(180deg,var(--surface) 0%,var(--bg) 52%,var(--blue-soft) 100%)}.login-card{width:min(420px,100%);padding:28px}.login-card h1{font-size:1.85rem}.login-card p{margin-bottom:20px;line-height:1.55}.login-logo-row{display:flex;align-items:center;gap:10px;margin-bottom:24px;font-weight:800}.github-button{width:100%;min-height:44px;padding:0 16px}.dashboard-layout{display:grid;grid-template-columns:280px minmax(0,1fr) 340px;gap:16px;padding:24px}.sidebar,.review-panel{height:calc(100vh - 112px);position:sticky;top:88px;overflow:hidden;display:flex;flex-direction:column}.sidebar{padding:16px}.sidebar-section+.sidebar-section{margin-top:22px}.sidebar-heading-row,.section-heading,.panel-header,.card-topline,.review-item-header{display:flex;align-items:center;justify-content:space-between;gap:12px}.user-pill{display:flex;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface-subtle)}.user-pill img{width:30px;height:30px;border-radius:999px}.user-pill span{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:650}.repo-list,.github-repo-picker,.review-feed{display:grid;gap:8px}.repo-button{width:100%;border:1px solid transparent;border-radius:var(--radius-md);background:transparent;color:var(--text);text-align:left;padding:10px}.repo-button:hover{background:var(--surface-subtle)}.repo-button.active{background:var(--blue-soft);border-color:var(--blue-border);color:var(--blue)}.repo-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.88rem;font-weight:700}.repo-meta{display:block;margin-top:3px;color:var(--text-muted);font-size:.74rem}.github-repo-picker{margin-top:14px;max-height:330px;overflow:auto;padding-right:2px}.github-repo-row{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:10px;padding:10px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}.github-repo-row:hover{background:var(--surface-hover)}.github-repo-row strong{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:.82rem}.github-repo-row span{display:block;margin-top:2px;font-size:.74rem}.dashboard-main{min-width:0;display:grid;align-content:start;gap:16px}.section-heading{margin-bottom:2px}.section-heading h1{margin-bottom:4px}.live-pill{display:inline-flex;align-items:center;gap:8px;padding:6px 9px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text-muted);font-size:.78rem;font-weight:650}.live-pill span{width:8px;height:8px;border-radius:999px;background:var(--text-soft)}.live-pill.online span{background:var(--green)}.metrics-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.dora-card{padding:16px}.card-topline{margin-bottom:16px;color:var(--text-muted);font-size:.82rem;font-weight:650}.metric-value{display:flex;align-items:baseline;gap:6px;font-size:1.75rem;font-weight:800;letter-spacing:-.04em}.metric-value span{color:var(--text-muted);font-size:.82rem;font-weight:650;letter-spacing:0}.badge,.performance-badge,.risk{display:inline-flex;align-items:center;border-radius:6px;padding:2px 7px;font-size:.72rem;font-weight:800;text-transform:capitalize}.performance-badge.elite,.risk.green,.badge-green{background:var(--green-soft);color:var(--green)}.performance-badge.high,.badge-blue{background:var(--blue-soft);color:var(--blue)}.performance-badge.medium,.risk.yellow,.badge-yellow{background:var(--yellow-soft);color:var(--yellow)}.performance-badge.low,.risk.red,.badge-red{background:var(--red-soft);color:var(--red)}.risk.orange,.badge-orange{background:var(--orange-soft);color:var(--orange)}.risk.neutral,.badge-muted{background:var(--surface-subtle);color:var(--text-muted)}.panel{padding:16px}.panel-header{margin-bottom:14px}.chart-container{width:100%;min-height:280px}.review-panel{padding:16px}.review-feed{overflow:auto;padding-right:2px}.review-feed.compact{max-height:280px}.review-item{padding:12px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);animation:fade-in .18s ease-out}.review-item.newest{background:var(--blue-soft);border-color:var(--blue-border)}.review-item p{margin:8px 0;color:var(--text-muted);font-size:.86rem;line-height:1.45}@keyframes fade-in{0%{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}.empty-state{padding:22px}.empty-state h2{margin-bottom:8px;font-size:1.05rem}.alert{border:1px solid #fecaca;background:var(--red-soft);color:#991b1b;border-radius:var(--radius-md);padding:11px 12px;font-size:.88rem}.chat-page{padding:24px}.chat-shell{max-width:960px;height:calc(100vh - 112px);margin:0 auto;display:flex;flex-direction:column;overflow:hidden}.chat-header{padding:22px 24px;border-bottom:1px solid var(--border)}.chat-header h1{font-size:2rem}.prompt-row{display:flex;flex-wrap:wrap;gap:8px;padding:14px 16px;border-bottom:1px solid var(--border);background:var(--surface-subtle)}.prompt-chip{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);padding:7px 10px;font-size:.78rem;font-weight:650}.prompt-chip:hover{border-color:var(--blue-border);background:var(--blue-soft);color:var(--blue)}.chat-messages{flex:1;overflow:auto;padding:18px;display:flex;flex-direction:column;gap:12px;background:var(--surface)}.chat-bubble-row{display:flex}.chat-bubble-row.user{justify-content:flex-end}.chat-bubble{max-width:min(720px,86%);border:1px solid var(--border);border-radius:var(--radius-lg);padding:12px 14px;font-size:.92rem;line-height:1.55}.chat-bubble.user{background:var(--blue);border-color:var(--blue);color:#fff}.chat-bubble.assistant{background:var(--surface-subtle);color:var(--text)}.chat-bubble p{margin-bottom:0;white-space:pre-wrap}.chat-data{margin-top:12px}.chat-data button{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);padding:6px 9px;font-size:.78rem;font-weight:700}.table-wrap{margin-top:10px;max-width:100%;overflow:auto;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface)}table{width:100%;border-collapse:collapse;font-size:.82rem}th,td{padding:9px 10px;border-bottom:1px solid var(--border);text-align:left;white-space:nowrap}th{background:var(--surface-subtle);color:var(--text-muted);font-size:.74rem;text-transform:uppercase;letter-spacing:.06em}.chat-input-row{display:flex;gap:10px;padding:14px;border-top:1px solid var(--border);background:var(--surface-subtle)}.chat-input-row input{flex:1;min-height:42px;border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);color:var(--text);padding:0 12px;outline:none}.chat-input-row input:focus{border-color:var(--blue);box-shadow:0 0 0 3px #2563eb1f}.chat-input-row button{min-width:82px;min-height:42px;padding:0 14px}.typing-indicator{display:inline-flex;align-items:center;gap:5px;width:fit-content;padding:10px 12px;border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface-subtle)}.typing-indicator span{width:6px;height:6px;border-radius:999px;background:var(--text-muted);animation:pulse 1s infinite ease-in-out}.typing-indicator span:nth-child(2){animation-delay:.15s}.typing-indicator span:nth-child(3){animation-delay:.3s}@keyframes pulse{0%,80%,to{opacity:.35;transform:translateY(0)}40%{opacity:1;transform:translateY(-3px)}}@media(max-width:1180px){.dashboard-layout{grid-template-columns:260px minmax(0,1fr)}.review-panel{grid-column:1 / -1;height:auto;position:static}.metrics-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}.dashboard-actions{display:flex;align-items:center;justify-content:flex-end;gap:10px;flex-wrap:wrap}.notice{border:1px solid var(--blue-border);background:var(--blue-soft);color:var(--blue);border-radius:var(--radius-md);padding:11px 12px;font-size:.88rem;font-weight:650}.button-secondary{min-height:34px;padding:0 12px}@media(max-width:760px){.app-header{height:auto;align-items:flex-start;flex-direction:column;padding:14px}.dashboard-layout{grid-template-columns:1fr;padding:14px}.sidebar,.review-panel{height:auto;position:static}.metrics-grid{grid-template-columns:1fr}.section-heading,.panel-header{align-items:flex-start;flex-direction:column}.chat-page{padding:14px}.chat-shell{height:calc(100vh - 92px)}.chat-input-row{flex-direction:column}.chat-input-row button{width:100%}}
