:root { --ink:#11201e; --muted:#627875; --line:rgba(13,70,62,.13); --canvas:#eef6f4; --panel:rgba(255,255,255,.72); --teal:#0a9b84; --red:#c34c5b; --amber:#ae7515; --nav:#071714; --nav-muted:#a9c5bf; --glass-border:rgba(255,255,255,.74); --glass-shadow:0 18px 50px rgba(6,48,42,.10); }
* { box-sizing:border-box; }
body { margin:0; color:var(--ink); background:linear-gradient(135deg,#eff8f6 0%,#e7f1ee 52%,#edf4f7 100%); font-family:Inter, ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif; font-size:14px; min-height:100vh; }
button, input { font:inherit; }
button { cursor:pointer; }
[hidden] { display:none!important; }
.login-screen { min-height:100vh; display:grid; place-items:center; padding:24px; background:transparent; }
.login-panel { width:min(100%, 390px); background:var(--panel); border:1px solid var(--glass-border); box-shadow:var(--glass-shadow); backdrop-filter:blur(18px) saturate(145%); -webkit-backdrop-filter:blur(18px) saturate(145%); border-radius:7px; padding:28px; }
.login-panel .brand { color:var(--ink); padding:0 0 30px; }
.login-panel h1 { margin-bottom:28px; }
.login-panel label { display:block; color:var(--muted); font-size:12px; font-weight:700; margin-bottom:8px; }
.login-panel input { width:100%; border:1px solid #cfd6e1; border-radius:5px; padding:11px 12px; outline-color:#24a98f; }
.login-error { min-height:20px; color:var(--red); font-size:12px; margin:10px 0; }
.login-submit { width:100%; border:0; border-radius:5px; background:#0f9b84; color:#fff; font-weight:750; padding:11px 14px; }
.login-submit:hover { background:#087766; }
.app-shell { min-height:100vh; display:grid; grid-template-columns:238px minmax(0,1fr); }
.sidebar { background:rgba(7,23,20,.94); color:#fff; padding:22px 14px; display:flex; flex-direction:column; min-height:100vh; box-shadow:10px 0 34px rgba(0,35,29,.12); backdrop-filter:blur(18px); -webkit-backdrop-filter:blur(18px); }
.brand { display:flex; align-items:center; gap:10px; font-weight:750; letter-spacing:0; padding:0 9px 28px; }
.brand-mark { display:block; width:29px; height:29px; object-fit:cover; border-radius:7px; box-shadow:0 5px 15px rgba(13,215,181,.25); }
.navigation { display:grid; gap:5px; }
.nav-item { appearance:none; border:0; border-radius:6px; background:transparent; color:var(--nav-muted); padding:11px 10px; display:flex; align-items:center; gap:12px; text-align:left; }
.nav-item:hover, .nav-item.active { color:#fff; background:rgba(94,224,197,.16); box-shadow:inset 0 0 0 1px rgba(165,255,234,.11); }
.nav-item span { width:18px; color:#87e4d4; font-size:17px; }
.sidebar-footer { margin-top:auto; color:#d8e1ef; font-size:12px; padding:16px 9px 2px; border-top:1px solid #2a364b; }
.sidebar-footer small { display:block; color:var(--nav-muted); margin-top:7px; }
.status-dot { display:inline-block; width:7px; height:7px; background:#36c8a9; border-radius:50%; margin-right:6px; }
.main-content { padding:30px clamp(20px,4vw,56px) 48px; max-width:1680px; width:100%; margin:0 auto; }
.topbar { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; border-bottom:1px solid rgba(18,79,69,.13); padding-bottom:23px; }
.eyebrow, .panel-kicker { color:var(--muted); font-weight:750; font-size:11px; letter-spacing:0; margin:0 0 6px; }
h1, h2, h3, p { margin-top:0; } h1 { font-size:28px; line-height:1.15; margin-bottom:0; letter-spacing:0; } h2 { font-size:17px; margin-bottom:0; letter-spacing:0; } h3 { font-size:14px; margin-bottom:8px; } p { line-height:1.55; }
.topbar-actions { display:flex; align-items:center; gap:10px; }
.mode-toggle { border:1px solid var(--glass-border); border-radius:5px; padding:8px 11px; background:rgba(255,255,255,.65); color:var(--ink); font-weight:650; box-shadow:0 5px 16px rgba(12,61,53,.06); }
.mode-toggle:hover { background:rgba(255,255,255,.94); transform:translateY(-1px); }
.paper-badge { background:#e5f8f4; color:#087766; border:1px solid #b9ebe1; padding:7px 9px; border-radius:4px; font-size:11px; font-weight:850; letter-spacing:0; }
.page-description { color:var(--muted); max-width:720px; min-height:56px; display:flex; align-items:center; }
.page-description p { margin:0; }
.dashboard { display:grid; gap:18px; }
.metrics-grid { display:grid; grid-template-columns:repeat(6,minmax(0,1fr)); gap:12px; }
.metric, .panel { background:var(--panel); border:1px solid var(--glass-border); box-shadow:0 10px 28px rgba(9,64,55,.06); backdrop-filter:blur(16px) saturate(130%); -webkit-backdrop-filter:blur(16px) saturate(130%); border-radius:7px; }
.metric { padding:16px; min-height:130px; display:flex; flex-direction:column; }
.metric p { color:var(--muted); font-size:12px; margin-bottom:14px; }
.metric strong { font-size:21px; letter-spacing:0; margin-bottom:6px; }
.metric span { font-size:12px; color:var(--muted); margin-top:auto; }
.positive { color:var(--teal)!important; } .negative { color:var(--red)!important; }
.content-grid { display:grid; gap:18px; } .two-columns { grid-template-columns:minmax(0,1.45fr) minmax(300px,1fr); }
.panel { padding:20px; overflow:hidden; }
#dashboard > * { animation:liquid-page-in .34s cubic-bezier(.2,.82,.26,1) both; }
@keyframes liquid-page-in { from { opacity:0; transform:translateY(8px); filter:blur(3px); } to { opacity:1; transform:translateY(0); filter:blur(0); } }
.panel-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:14px; margin-bottom:20px; }
.chart { height:163px; display:flex; align-items:flex-end; gap:9px; padding:0 3px; border-bottom:1px solid var(--line); background:repeating-linear-gradient(to bottom,transparent 0,transparent 40px,#eef1f5 41px); }
.chart span { display:block; flex:1; min-width:8px; background:#43bca9; border-radius:3px 3px 0 0; }
.chart-axis { display:flex; justify-content:space-between; color:var(--muted); font-size:11px; padding-top:9px; }
.status-pill { font-size:11px; border-radius:999px; padding:5px 8px; white-space:nowrap; font-weight:700; }
.good { background:#e7f8f3; color:#087766; } .warning { background:#fff4df; color:#97600a; } .danger { background:#fcebed; color:#b43243; } .neutral-pill { background:#edf0f5; color:#58657a; }
.risk-summary { display:flex; align-items:baseline; gap:9px; margin:33px 0 16px; }.risk-summary strong { font-size:38px; }.risk-summary p { margin:0; color:var(--muted); }
.progress { height:8px; background:#e9eef2; overflow:hidden; border-radius:5px; }.progress i { display:block; height:100%; background:#d59a2a; }.muted { color:var(--muted); font-size:12px; }
.table-panel { padding-bottom:5px; }.table-wrap { overflow-x:auto; margin:0 -20px; }.table-wrap table { min-width:720px; width:100%; border-collapse:collapse; }.table-wrap th { text-align:left; color:var(--muted); font-size:11px; font-weight:700; padding:0 20px 10px; }.table-wrap td { padding:13px 20px; border-top:1px solid var(--line); white-space:nowrap; }.table-wrap td small { display:block; color:var(--muted); font-size:11px; margin-top:3px; }.mono, code, pre { font-family:"SFMono-Regular", Consolas, monospace; }.action { font-weight:800; font-size:11px; }.buy { color:var(--teal); }.sell { color:var(--red); }.score { display:inline-grid; place-items:center; width:29px; height:25px; border-radius:4px; background:#e4f5f1; color:#087766; font-weight:800; }
.empty-state { color:var(--muted); padding:22px 0; line-height:1.55; }
.search { width:210px; border:1px solid #cfd6e1; padding:8px 10px; border-radius:5px; outline-color:#24a98f; }.explain-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:16px; }.explain-grid article { border-left:3px solid #37b59e; padding:4px 0 4px 12px; }.explain-grid p { color:var(--muted); margin-bottom:0; font-size:13px; }
.trader-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); }.pagination { display:flex; justify-content:space-between; align-items:center; gap:14px; padding:14px 0 10px; color:var(--muted); font-size:12px; }.pagination div { display:flex; flex-wrap:wrap; gap:5px; }.page-button { min-width:32px; height:31px; padding:0 8px; border:1px solid #cfd6e1; border-radius:4px; background:#fff; color:var(--ink); font-size:12px; }.page-button:hover:not(:disabled), .page-button.active { border-color:#0f9b84; background:#e5f8f4; color:#087766; }.page-button:disabled { cursor:not-allowed; opacity:.45; }
.wallet-link { display:block; width:max-content; margin-top:6px; color:#087766; font-size:11px; font-weight:700; text-decoration:none; }.wallet-link:hover { text-decoration:underline; }
.scenario-list { display:grid; gap:16px; }.scenario { display:grid; grid-template-columns:75px 1fr 66px; gap:12px; align-items:center; }.scenario div:first-child { display:grid; gap:2px; }.scenario span { color:var(--muted); font-size:11px; }.scenario-bar { height:9px; border-radius:5px; background:#edf1f4; overflow:hidden; }.scenario-bar i { display:block; height:100%; background:var(--teal); border-radius:5px; }.scenario-bar i.loss { background:var(--red); }.large-copy { font-size:16px; line-height:1.6; margin-top:21px; color:#3e4b61; }.technical-note { border-left:3px solid #506987; background:#f2f5f8; padding:12px; margin-top:25px; font-size:12px; }.technical-note code { display:block; margin-top:8px; color:#48566c; }.parameter-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; }.parameter-grid div { border:1px solid var(--line); padding:14px; }.parameter-grid span { display:block; color:var(--muted); font-size:12px; margin-bottom:8px; }.parameter-grid strong { font-size:16px; }
.decision-list { display:grid; }.decision-list div { display:grid; grid-template-columns:1fr auto auto; gap:12px; align-items:center; padding:14px 0; border-bottom:1px solid var(--line); }.decision-list span { color:#3e4b61; }.decision-list em { font-style:normal; font-size:12px; }.warning-text { color:var(--amber); }.sequence { padding-left:21px; margin:19px 0 0; }.sequence li { padding:7px 0; color:#3e4b61; }.pipeline { display:grid; }.pipeline-step { display:grid; grid-template-columns:20px 1fr auto; gap:12px; align-items:center; padding:16px 0; border-bottom:1px solid var(--line); }.pipeline-node { width:10px; height:10px; border-radius:50%; background:#d3dbe5; }.pipeline-step:nth-child(3) .pipeline-node, .pipeline-step:nth-child(5) .pipeline-node { background:#e0a33a; }.pipeline-step p { margin:2px 0 0; color:var(--muted); font-size:12px; }.expert-only { display:none; }.expert .expert-only { display:block; }.expert th.expert-only, .expert td.expert-only { display:table-cell; } pre { font-size:12px; color:#46546b; white-space:pre-wrap; margin:16px 0 0; }
@media (max-width:1150px) { .metrics-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:1024px) { .app-shell { grid-template-columns:1fr; padding-bottom:84px; }.sidebar { position:fixed; left:12px; right:12px; bottom:12px; z-index:10; min-height:62px; padding:7px; border:1px solid rgba(164,255,233,.17); border-radius:8px; box-shadow:0 18px 48px rgba(0,41,34,.26); }.sidebar .brand, .sidebar-footer { display:none; }.navigation { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:4px; width:100%; }.nav-item { min-width:0; min-height:47px; justify-content:center; padding:7px 4px; gap:5px; border-radius:6px; font-size:11px; }.nav-item span { width:auto; font-size:18px; }.main-content { padding:28px 24px 34px; }.two-columns { grid-template-columns:1fr; }.metrics-grid { grid-template-columns:repeat(3,1fr); } }
@media (max-width:800px) { .main-content { padding:22px 16px 22px; }.topbar { align-items:flex-start; }.topbar-actions { display:grid; grid-template-columns:repeat(2,max-content); align-items:center; gap:6px; }.topbar-actions .paper-badge { display:none; }.page-description { min-height:auto; padding:15px 0 8px; }.parameter-grid { grid-template-columns:repeat(2,1fr); }.explain-grid { grid-template-columns:1fr; }.metrics-grid { grid-template-columns:repeat(2,1fr); }.trader-metrics { grid-template-columns:repeat(2,1fr); }.metric { min-height:116px; }.panel-heading { flex-direction:column; }.search { width:100%; }.pagination { align-items:flex-start; flex-direction:column; } }
@media (max-width:440px) { .topbar { align-items:flex-start; }.topbar-actions { gap:6px; }.metrics-grid { grid-template-columns:1fr 1fr; gap:8px; }.metric { padding:12px; }.metric strong { font-size:18px; }.panel { padding:16px; }.table-wrap { margin:0 -16px; }.table-wrap th, .table-wrap td { padding-left:16px; padding-right:16px; }.parameter-grid { grid-template-columns:1fr; }.page-description { min-height:66px; } }
