@import url('https://fonts.googleapis.com/css2?family=DM+Mono:wght@400;500&family=Manrope:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;700;900&display=swap');

:root {
  --bg: #07111f;
  --line: rgba(142, 173, 206, .16);
  --muted: #8193a9;
  --text: #eef5fb;
  --cyan: #49e4cd;
  --orange: #ff9f68;
  --red: #ff6e83;
  --mono: 'DM Mono', monospace;
  --sans: 'Manrope', 'Noto Sans SC', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; color: var(--text); background: var(--bg); font-family: var(--sans); font-size: 14px; line-height: 1.5; overflow-x: hidden; }
body::before { content: ''; position: fixed; inset: 0; z-index: -2; pointer-events: none; background-image: linear-gradient(rgba(103, 145, 184, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(103, 145, 184, .035) 1px, transparent 1px); background-size: 44px 44px; mask-image: linear-gradient(to bottom, #000, transparent 80%); }
.ambient { position: fixed; z-index: -1; width: 460px; height: 460px; border-radius: 50%; filter: blur(80px); pointer-events: none; opacity: .13; }.ambient-one { top: -250px; right: -80px; background: #16b4a5; }.ambient-two { bottom: 10%; left: -330px; background: #3a72e5; }
.shell { width: min(1420px, calc(100% - 64px)); margin: 0 auto; }
.topbar { height: 88px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; letter-spacing: .07em; }.brand > span:last-child { display: flex; flex-direction: column; gap: 1px; }.brand b { font-size: 15px; font-weight: 800; }.brand small, .eyebrow, .unit, .footer, .step-chip, .mode-pill { font-family: var(--mono); }.brand small { color: #6e8197; font-size: 8px; letter-spacing: .13em; }.brand-mark { width: 30px; height: 30px; padding: 6px 5px; display: flex; align-items: end; gap: 3px; border: 1px solid rgba(73, 228, 205, .45); border-radius: 8px; background: rgba(73, 228, 205, .08); }.brand-mark i { display: block; width: 4px; border-radius: 2px; background: var(--cyan); }.brand-mark i:nth-child(1) { height: 9px; opacity: .55; }.brand-mark i:nth-child(2) { height: 14px; opacity: .78; }.brand-mark i:nth-child(3) { height: 19px; }
.topnav { display: flex; gap: 34px; margin-left: 110px; }.topnav a { padding: 33px 0 29px; color: #75869a; text-decoration: none; font-size: 13px; transition: color .2s; }.topnav a:hover, .topnav a.active { color: var(--text); }.topnav a.active { border-bottom: 2px solid var(--cyan); }.mode-pill { display: flex; align-items: center; gap: 8px; padding: 7px 11px; border: 1px solid rgba(73, 228, 205, .2); border-radius: 5px; color: var(--cyan); font-size: 10px; letter-spacing: .04em; background: rgba(73, 228, 205, .06); }.mode-pill span, .data-status i { width: 6px; height: 6px; display: block; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(73, 228, 205, .12); }
.intro { display: flex; align-items: end; justify-content: space-between; padding: 74px 0 62px; }.eyebrow { margin: 0 0 13px; color: var(--cyan); font-size: 10px; letter-spacing: .15em; }.intro h1 { max-width: 700px; margin: 0; font-size: clamp(32px, 4.4vw, 62px); line-height: 1.1; letter-spacing: -.055em; font-weight: 800; }.intro h1 em { color: var(--cyan); font-style: normal; }.intro-copy { max-width: 570px; margin: 22px 0 0; color: var(--muted); font-size: 14px; }.intro-note { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; color: var(--cyan); }.intro-note div { display: flex; flex-direction: column; gap: 2px; }.intro-note b { font-size: 12px; }.intro-note small { color: #72869b; font-size: 10px; }.pulse { width: 10px; height: 10px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 6px rgba(73, 228, 205, .11); }
.workspace { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 24px; align-items: start; }.panel { border: 1px solid var(--line); border-radius: 9px; background: linear-gradient(145deg, rgba(18, 38, 62, .88), rgba(10, 23, 40, .88)); box-shadow: 0 18px 50px rgba(0,0,0,.11); }.config-panel { position: sticky; top: 22px; padding: 24px 20px 20px; }.panel-heading, .results-head, .chart-heading, .small-panel-head { display: flex; align-items: start; justify-content: space-between; }.panel-heading h2, .results-head h2 { margin: 0; font-size: 20px; letter-spacing: -.03em; }.step-chip { padding: 4px 6px; color: var(--cyan); border: 1px solid rgba(73, 228, 205, .26); border-radius: 3px; font-size: 9px; }.config-panel form { margin-top: 26px; }.config-panel label { position: relative; display: block; margin-bottom: 16px; color: #b2bfd0; font-size: 11px; letter-spacing: .03em; }.config-panel select, .config-panel input { width: 100%; height: 38px; margin-top: 7px; padding: 0 11px; color: var(--text); outline: 0; border: 1px solid rgba(131, 165, 198, .17); border-radius: 5px; background: rgba(5, 15, 28, .6); font-family: var(--sans); font-size: 12px; transition: border .2s, box-shadow .2s; }.config-panel select:focus, .config-panel input:focus { border-color: rgba(73, 228, 205, .7); box-shadow: 0 0 0 3px rgba(73, 228, 205, .08); }.config-panel select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, #7190a5 50%), linear-gradient(135deg, #7190a5 50%, transparent 50%); background-position: calc(100% - 15px) 16px, calc(100% - 11px) 16px; background-size: 4px 4px; background-repeat: no-repeat; }.config-panel input[type=number] { font-family: var(--mono); }.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }.unit { float: right; color: #5f768c; font-size: 8px; letter-spacing: .08em; }.primary-button { display: flex; justify-content: space-between; align-items: center; width: 100%; height: 43px; margin-top: 8px; padding: 0 13px 0 16px; border: 0; border-radius: 5px; color: #05151b; background: var(--cyan); font: 700 12px var(--sans); cursor: pointer; transition: transform .2s, box-shadow .2s, background .2s; }.primary-button:hover { background: #78f3df; box-shadow: 0 9px 22px rgba(73, 228, 205, .17); transform: translateY(-1px); }.button-arrow { font-size: 18px; }.upload-box { display: grid; grid-template-columns: 30px 1fr; gap: 10px; margin-top: 24px; padding: 13px 12px; border: 1px dashed rgba(121, 159, 191, .32); border-radius: 6px; background: rgba(8, 19, 33, .42); }.upload-icon { display: grid; place-items: center; width: 27px; height: 27px; color: var(--cyan); border-radius: 5px; background: rgba(73, 228, 205, .09); font: 18px var(--mono); }.upload-box b { display: block; color: #c5d0dc; font-size: 11px; font-weight: 600; }.upload-box p, .source-note { margin: 3px 0 0; color: #667d93; font-size: 9px; line-height: 1.5; }.upload-box code { color: #a6c9d4; font-family: var(--mono); }.upload-link { grid-column: 2; margin: 5px 0 0 !important; color: var(--cyan) !important; cursor: pointer; font-family: var(--mono); font-size: 10px !important; }.upload-box input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }.source-note { margin: 12px 2px 0; line-height: 1.6; }
.results { min-width: 0; }.results-head { align-items: end; margin-bottom: 21px; }.results-head h2 span { margin-left: 8px; color: #7690a8; font: 11px var(--mono); letter-spacing: .03em; }.result-actions { display: flex; align-items: center; gap: 20px; }.data-status { display: flex; align-items: center; gap: 8px; color: #87a0b6; font: 10px var(--mono); }.data-status i { width: 5px; height: 5px; box-shadow: none; }.ghost-button { padding: 5px 0; border: 0; color: #71859b; background: transparent; font: 10px var(--mono); cursor: pointer; }.ghost-button:hover { color: var(--cyan); }
.metric-grid { display: grid; grid-template-columns: 1.28fr repeat(3, 1fr); gap: 12px; margin-bottom: 18px; }.metric-card { min-height: 118px; padding: 19px 18px; border: 1px solid var(--line); border-radius: 7px; background: rgba(13, 28, 47, .7); }.metric-card span { display: block; color: #8ba1b5; font-size: 11px; }.metric-card strong { display: block; margin: 12px 0 6px; color: #dfeaf3; font: 500 25px var(--mono); letter-spacing: -.06em; }.metric-card small { color: #62788e; font-size: 9px; }.metric-card.primary-metric { border-color: rgba(73, 228, 205, .28); background: linear-gradient(140deg, rgba(25, 71, 79, .76), rgba(12, 32, 51, .78)); }.metric-card.primary-metric strong { color: var(--cyan); }.metric-card .negative { color: var(--red); }
.chart-panel { padding: 22px 22px 18px; }.chart-heading { align-items: center; }.chart-heading h3, .small-panel-head h3 { margin: 0; font-size: 14px; }.chart-heading p { margin: 4px 0 0; color: #657c91; font-size: 10px; }.legend { display: flex; gap: 18px; color: #788ca0; font-size: 10px; }.legend span { display: flex; align-items: center; gap: 7px; }.legend-line { width: 17px; height: 2px; display: inline-block; background: var(--cyan); }.benchmark-line { background: #647e9a; }.chart-wrap { position: relative; height: 330px; margin-top: 18px; }.chart-wrap canvas, .drawdown-chart-wrap canvas { display: block; width: 100%; height: 100%; }.chart-empty { position: absolute; inset: 0; display: none; align-items: center; justify-content: center; color: #61758a; font: 11px var(--mono); }.lower-grid { display: grid; grid-template-columns: .82fr 1.18fr; gap: 18px; margin-top: 18px; }.drawdown-panel, .trade-panel { padding: 20px 22px; }.small-panel-head { align-items: center; }.small-panel-head h3 { margin-top: 2px; }.small-panel-head .eyebrow { margin-bottom: 2px; }.alert-dot { color: var(--orange); font-size: 11px; text-shadow: 0 0 10px rgba(255, 159, 104, .7); }.trade-count { color: #6e859b; font: 10px var(--mono); }.trade-count b { color: var(--cyan); font-weight: 400; }.drawdown-chart-wrap { height: 118px; margin-top: 14px; }.drawdown-foot { display: flex; justify-content: space-between; padding-top: 11px; border-top: 1px solid var(--line); color: #688096; font-size: 10px; }.drawdown-foot b { color: #a8bac9; font: 10px var(--mono); }.table-wrap { max-height: 158px; margin-top: 13px; overflow: auto; }table { width: 100%; border-collapse: collapse; font-size: 10px; }th { padding: 0 0 9px; color: #5f768d; text-align: left; font: 9px var(--mono); font-weight: 400; }td { padding: 8px 4px 8px 0; border-top: 1px solid rgba(142, 173, 206, .1); color: #9eb1c2; white-space: nowrap; }td:first-child { color: #6e879e; font-family: var(--mono); }td:nth-child(3) { color: #d6e2ed; font-family: var(--mono); }td .buy { color: var(--cyan); }td .sell { color: var(--orange); }.empty-row td { padding: 30px 0; color: #61778d; text-align: center; font-family: var(--mono); }.disclaimer { display: flex; gap: 11px; align-items: flex-start; margin-top: 18px; padding: 12px 14px; color: #778da3; border: 1px solid rgba(255, 159, 104, .17); border-radius: 6px; background: rgba(255, 159, 104, .035); font-size: 10px; }.disclaimer span { color: var(--orange); font-size: 13px; }.disclaimer p { margin: 0; }.disclaimer b { color: #a8b9c9; font-weight: 600; }.footer { display: flex; justify-content: space-between; padding: 28px 0 32px; color: #4b6278; font-size: 9px; letter-spacing: .1em; }
@media (max-width: 1050px) { .workspace { grid-template-columns: 270px minmax(0, 1fr); }.metric-grid { grid-template-columns: repeat(2, 1fr); }.primary-metric { grid-column: span 2; } }
@media (max-width: 760px) { .shell { width: min(100% - 32px, 600px); }.topbar { height: 70px; }.topnav { display: none; }.mode-pill { margin-left: auto; font-size: 9px; }.intro { display: block; padding: 48px 0 38px; }.intro-note { margin-top: 28px; }.workspace { display: block; }.config-panel { position: static; margin-bottom: 24px; }.results-head { align-items: start; display: block; }.result-actions { margin-top: 14px; justify-content: space-between; }.metric-grid { grid-template-columns: 1fr 1fr; }.primary-metric { grid-column: span 2; }.chart-panel { padding: 18px 13px 13px; }.chart-wrap { height: 240px; }.legend { gap: 10px; }.lower-grid { display: block; }.trade-panel { margin-top: 18px; }.footer { font-size: 8px; } }
@media (max-width: 420px) { .field-row { grid-template-columns: 1fr; gap: 0; }.metric-card { padding: 15px 12px; }.metric-card strong { font-size: 20px; }.chart-heading { display: block; }.legend { margin-top: 13px; }.results-head h2 { font-size: 18px; }.results-head h2 span { display: block; margin: 4px 0 0; } }
