:root { color-scheme: light; font-family: system-ui, "Microsoft YaHei", sans-serif; color: #17263c; background: #edf2f5; }
* { box-sizing: border-box; }
body { margin: 0; }
.site-header { min-height: 64px; background: #142a40; color: #fff; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 3vw, 46px); }
.brand { display: flex; align-items: center; gap: 12px; }
.brand-mark { background: #c5f2e5; color: #164c42; border-radius: 9px; width: 36px; height: 36px; display: grid; place-items: center; font-size: 22px; }
h1, h2, p { margin: 0; }
h1 { font-size: 18px; }
h2 { font-size: 16px; }
p { margin: 10px 0; }
a { color: #176954; text-underline-offset: 3px; }
button, input, select { font: inherit; padding: 7px 9px; border: 1px solid #aab9c6; border-radius: 5px; background: #fff; color: #17263c; }
button { cursor: pointer; font-weight: 600; white-space: nowrap; }
button:hover { background: #e9f3f1; }
.primary { background: #146756; border-color: #146756; color: #fff; }
.primary:hover { background: #105144; }
form { display: flex; align-items: flex-end; flex-wrap: wrap; gap: 10px; }
label { display: grid; gap: 4px; min-width: 0; }
select { max-width: 100%; }
.dashboard { display: grid; gap: 14px; padding: 18px clamp(12px, 2vw, 32px) 28px; font-size: 13px; }
.panel { background: #fff; border: 1px solid #d3dee6; border-radius: 10px; padding: 14px; min-width: 0; }
.panel-heading { display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 10px 16px; }
.muted { color: #4f6272; }
.results { overflow: auto; max-height: min(67vh, 740px); border: 1px solid #d8e4ea; border-radius: 6px; }
table { width: 100%; border-collapse: separate; border-spacing: 0; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #dce6ec; white-space: nowrap; }
th { position: sticky; top: 0; background: #e6efef; }
tbody tr:nth-child(even) { background: #f4f8f9; }
tbody tr:hover, tbody tr:focus-within { background: #eaf5f1; }
#equity-curve { scroll-margin-top: 16px; }
#equity-samples { margin: 16px 0 8px; }
#equity-chart { display: block; width: 100%; max-width: 1100px; height: auto; }
.login { display: grid; min-height: 62vh; place-items: center; padding: 20px; }
.login-form { display: grid; gap: 14px; padding: 26px; width: min(100%, 380px); }
[role="alert"] { color: #9c251e; }
