:root{color-scheme:dark;--bg: #0b0f14;--surface: #121820;--surface-2: #1a2230;--border: #243044;--text: #e8eef7;--muted: #8b9bb4;--accent: #3b82f6;--green: #22c55e;--red: #ef4444;--amber: #f59e0b;font-family:SF Pro Text,system-ui,-apple-system,sans-serif;line-height:1.5;font-weight:400;color:var(--text);background:var(--bg)}*{box-sizing:border-box}body{margin:0;min-height:100vh}button{font:inherit;cursor:pointer;border:1px solid var(--border);background:var(--accent);color:#fff;border-radius:8px;padding:.5rem .9rem}button:disabled{opacity:.45;cursor:not-allowed}button.secondary{background:var(--surface-2);color:var(--text)}button.ghost{background:transparent;color:var(--muted)}.app{max-width:1200px;margin:0 auto;padding:1.5rem}.header{display:flex;justify-content:space-between;align-items:flex-start;gap:1rem;margin-bottom:1.25rem}.header h1{margin:0;font-size:1.6rem}.subtitle{margin:.25rem 0 0;color:var(--muted)}.header-meta{display:flex;gap:.5rem;flex-wrap:wrap}.pill{font-size:.8rem;padding:.25rem .6rem;border-radius:999px;border:1px solid var(--border);background:var(--surface)}.pill.ok{border-color:#22c55e59;color:var(--green)}.pill.warn{border-color:#f59e0b59;color:var(--amber)}.card{background:var(--surface);border:1px solid var(--border);border-radius:12px;padding:1rem 1.1rem;margin-bottom:1rem}.card h2{margin:0 0 .75rem;font-size:1rem}.stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:.75rem;margin-bottom:1rem}.stat .label,.label{color:var(--muted);font-size:.85rem}.stat-value{font-size:1.35rem;font-weight:600;margin-top:.15rem}.positive{color:var(--green)}.negative{color:var(--red)}.controls-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;flex-wrap:wrap}.button-row{display:flex;gap:.5rem;flex-wrap:wrap}.grid-2{display:grid;grid-template-columns:1fr 1fr;gap:1rem}.table-wrap{overflow-x:auto}table{width:100%;border-collapse:collapse;font-size:.9rem}th,td{text-align:left;padding:.55rem .45rem;border-bottom:1px solid var(--border);vertical-align:top}th{color:var(--muted);font-weight:500}.reasoning{max-width:360px;color:var(--muted)}.actions{white-space:nowrap;display:flex;gap:.35rem}.tag{display:inline-block;font-size:.75rem;font-weight:600;padding:.15rem .45rem;border-radius:6px}.tag.buy{background:#22c55e26;color:var(--green)}.tag.sell{background:#ef444426;color:var(--red)}.tag.hold{background:#8b9bb426;color:var(--muted)}.tag[class*=status-]{background:#3b82f61f;color:#93c5fd}.muted{color:var(--muted);font-size:.9rem}.error-text{color:var(--red);font-size:.85rem;margin-top:.25rem}.banner.error{display:flex;justify-content:space-between;align-items:center;gap:1rem;background:#ef44441f;border:1px solid rgba(239,68,68,.35);color:#fecaca;padding:.75rem 1rem;border-radius:10px;margin-bottom:1rem}.loading{color:var(--muted);padding:2rem 0}.login-page{min-height:100vh;display:grid;place-items:center;padding:1.5rem}.login-card{width:min(100%,360px)}.login-card h1{margin:0 0 .25rem}.field{display:block;margin:.85rem 0}.field input{width:100%;margin-top:.35rem;padding:.55rem .65rem;border-radius:8px;border:1px solid var(--border);background:var(--surface-2);color:var(--text);font:inherit}.login-card button[type=submit]{width:100%;margin-top:.5rem}.section-header{display:flex;justify-content:space-between;align-items:center;gap:1rem;margin-bottom:.75rem}.section-header h2{margin:0}.progress-bar{height:6px;background:var(--surface-2);border-radius:999px;overflow:hidden;margin-bottom:.5rem}.progress-fill{height:100%;background:var(--accent);border-radius:999px}.performance-stats{margin:1rem 0}.equity-chart svg{width:100%;max-width:560px;height:auto;display:block}.chart-labels{display:flex;justify-content:space-between;max-width:560px;font-size:.8rem;color:var(--muted);margin-top:.25rem}.activity-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.5rem 1rem;margin-top:1rem;font-size:.9rem}.criteria-list{display:grid;gap:.5rem;margin:1rem 0}.criteria-row{display:flex;justify-content:space-between;align-items:center;gap:1rem;font-size:.9rem}.pill.bad{background:color-mix(in srgb,var(--red) 20%,transparent);color:var(--red)}.benchmark-table{margin:1rem 0}.chart-legend{display:flex;flex-wrap:wrap;gap:.75rem 1rem;margin-top:.5rem;font-size:.8rem;color:var(--muted)}.legend-dot{display:inline-block;width:.65rem;height:.65rem;border-radius:999px;margin-right:.35rem;vertical-align:middle}@media(max-width:900px){.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-2{grid-template-columns:1fr}}
