:root {
  color-scheme: dark;
  --bg:#10120f; --panel:#171a15; --line:#30362b; --text:#f4f5eb;
  --muted:#a3ad99; --lime:#c7ff62; --red:#ff8e9d; --orange:#ffb45c;
  --sans:'Arena Sans','Space Grotesk',Arial,sans-serif;
  --mono:'Arena Mono','IBM Plex Mono',Consolas,monospace;
  font-family:var(--sans);
}
* { box-sizing:border-box; }
html { scroll-behavior:smooth; scroll-padding-top:24px; }
body { margin:0; background:var(--bg); color:var(--text); font-size:14px; line-height:1.5; }
button,input,select,textarea { font:inherit; }
button,a,summary { -webkit-tap-highlight-color:transparent; }
button,a { cursor:pointer; }
button { color:var(--text); background:#23291e; border:1px solid #46503d; border-radius:5px; padding:11px 14px; font-size:12px; font-weight:600; transition:background .15s,border-color .15s; }
button:hover { border-color:var(--lime); background:#2e3824; }
button:disabled { opacity:.45; cursor:wait; }
button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible,textarea:focus-visible { outline:2px solid var(--lime); outline-offset:4px; }
a { color:inherit; text-decoration:none; }
a:hover { color:var(--lime); }
input,select,textarea { display:block; width:100%; min-width:0; background:#11150e; border:1px solid #414b37; color:var(--text); border-radius:4px; padding:10px; margin-top:6px; }
textarea { line-height:1.6; resize:vertical; }
label { display:block; font-size:11px; color:#c1c9b7; font-weight:500; }
h1,h2,h3,p { margin-top:0; }
h2 { font-size:22px; line-height:1.15; margin-bottom:0; letter-spacing:-.7px; font-weight:500; }
h3 { font-size:14px; margin-bottom:0; }
[hidden] { display:none!important; }
.eyebrow { font:10px/1.5 var(--mono); letter-spacing:1.2px; color:var(--lime); margin-bottom:10px; }
.fine,.quiet { font-size:11px; color:var(--muted); line-height:1.8; }
.quiet { font-size:12px; padding:16px 0; }
.primary { background:var(--lime); color:#152008; border-color:var(--lime); }
.primary:hover { background:#dbff9b; color:#152008; }
.full { width:100%; margin-top:12px; }
.outline { background:transparent; }
.text-button { padding:0; background:none; border:0; color:var(--lime); font-size:11px; }
.text-button:hover { background:none; }
.danger { background:#30211e; color:#ffb3a4; border-color:#754c40; }
.pill { display:flex; align-items:center; gap:8px; font:10px var(--mono); letter-spacing:1px; border:1px solid #46513a; border-radius:3px; padding:7px 10px; color:#c8d1bd; white-space:nowrap; }
.pill i { width:5px; height:5px; background:var(--lime); border-radius:50%; }
.skip-link { position:fixed; left:20px; top:12px; z-index:100; padding:12px 18px; color:var(--bg); background:var(--lime); transform:translateY(-160%); }
.skip-link:focus { transform:none; color:var(--bg); }
header,main,footer { max-width:1600px; margin:auto; }
header { display:flex; align-items:center; justify-content:space-between; height:88px; padding:0 40px; border-bottom:1px solid var(--line); gap:24px; }
.logo { display:flex; align-items:center; gap:11px; font-weight:600; font-size:21px; letter-spacing:-.8px; line-height:1.15; white-space:nowrap; flex-shrink:0; }
.logo img { width:40px; height:40px; }
.logo>span>span { display:inline; color:var(--brand-rival); }
nav { display:flex; align-items:center; gap:34px; color:var(--muted); font-size:12px; }
nav a { padding:8px 0; }
.nav-active { color:var(--text); }
nav .nav-active:before { content:''; display:inline-block; width:4px; height:4px; background:var(--lime); margin:0 8px 2px 0; }
main { padding:0 40px; }
.intro { display:grid; grid-template-columns:1fr .95fr; align-items:center; gap:22px; padding:38px 0 32px; }
.intro-copy { padding:0 0 4px; }
.intro-labels { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin-bottom:20px; }
.beta-tag { font:10px var(--mono); letter-spacing:1.2px; color:var(--lime); white-space:nowrap; }
.hero-series { font:9px var(--mono); color:#939e87; border-left:1px solid #4c573f; padding-left:12px; letter-spacing:.6px; }
.intro h1 { font-size:clamp(41px,4.25vw,65px); line-height:1.06; letter-spacing:-3.2px; font-weight:500; margin:0 0 20px; }
.intro h1 em { color:var(--lime); font-style:normal; }
.hero-description { color:#bec6b5; font-size:14px; line-height:1.7; margin-bottom:22px; }
.hero-actions { display:flex; align-items:center; gap:25px; }
.hero-cta { display:flex; align-items:center; gap:36px; border-radius:4px; padding:12px 17px; font-size:13px; font-weight:600; }
.hero-cta>span { font-size:18px; line-height:1; }
.hero-secondary { color:#dbe1d2; font-size:12px; }
.hero-secondary>span { color:var(--lime); margin-left:6px; }
.hero-assurance { font:10px/1.6 var(--mono); color:#929e87; margin:14px 0 0; }
.hero-arena { margin:0; position:relative; min-width:0; }
.hero-arena svg { display:block; width:100%; height:auto; }
.hero-arena text { font:10px var(--mono); letter-spacing:1.3px; }
.hero-arena .arena-axis { font-size:8px; }
.hero-arena figcaption { font:9px var(--mono); letter-spacing:1px; color:#a3af98; text-align:center; margin-top:3px; }
.status-dot,.feed-dot { display:inline-block; width:6px; height:6px; background:var(--lime); border-radius:50%; margin-right:7px; }
.match-steps { display:flex; align-items:center; justify-content:space-between; gap:14px; padding:17px 0; border-top:1px solid var(--line); color:#c4ccba; font-size:11px; }
.match-steps div { white-space:nowrap; }
.match-steps div>span { font:10px var(--mono); color:#7d8c70; margin-right:9px; }
.match-steps p { font:9px var(--mono); letter-spacing:1px; margin:0; color:#94a287; text-align:right; }
.match-steps p>span { color:var(--lime); margin:0 5px; }
.ticker { display:flex; align-items:center; gap:30px; border:1px solid var(--line); border-radius:6px; background:#191e15; padding:18px 22px; margin:0 0 18px; }
.symbol { display:flex; align-items:center; gap:12px; min-width:218px; }
.bitcoin { color:var(--orange); background:#ffb45c0a; border:1px solid #ffb45c40; border-radius:50%; font-size:27px; font-weight:500; width:43px; height:43px; text-align:center; line-height:43px; }
.symbol strong { display:block; font-size:17px; font-weight:500; }
.symbol small { font:10px var(--mono); color:var(--muted); margin-left:6px; }
.symbol div>span { font:9px var(--mono); letter-spacing:.6px; color:var(--muted); }
.market-price { display:flex; flex-direction:column; min-width:175px; }
.market-price strong { font:29px var(--mono); letter-spacing:-1.3px; }
.market-price span { font-size:11px; color:var(--lime); }
.ticker-stat { display:flex; flex-direction:column; gap:5px; border-left:1px solid var(--line); padding-left:24px; }
.ticker-stat span,.feed-stat>span:last-child { font:9px var(--mono); color:var(--muted); }
.ticker-stat strong { font:14px var(--mono); }
.feed-stat { margin-left:auto; display:grid; grid-template-columns:12px 1fr; align-items:center; gap:5px; font:10px var(--mono); }
.feed-stat>span:last-child { grid-column:2; }
.feed-dot.stale { background:var(--orange); }
.arena-layout { display:grid; grid-template-columns:minmax(0,1fr) 342px; gap:18px; align-items:start; }
.market-column { min-width:0; display:grid; gap:18px; }
.market-panel,.panel { border:1px solid var(--line); border-radius:6px; background:var(--panel); overflow:hidden; }
.chart-toolbar { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:16px 18px; border-bottom:1px solid var(--line); }
.mode-tabs,.intervals { display:flex; gap:4px; }
.mode-tabs button { font-size:12px; background:transparent; border-color:transparent; }
.mode-tabs .selected { background:#29351e; color:var(--lime); border-color:#566c37; }
.intervals button { background:transparent; border-color:transparent; font:12px var(--mono); padding:9px 10px; }
.intervals .selected { background:var(--lime); color:#14200b; }
.zoom { display:flex; align-items:center; gap:7px; font:10px var(--mono); color:var(--muted); }
.zoom select { width:105px; padding:8px; margin:0; font-size:10px; }
.chart-subline { display:flex; justify-content:space-between; gap:10px; padding:16px 20px 0; font:10px var(--mono); color:var(--muted); letter-spacing:.2px; }
.btc-chart-wrap { height:400px; position:relative; margin:2px 0; background:#141911; }
#btc-chart { width:100%; height:100%; display:block; touch-action:pan-y; }
.chart-loading { position:absolute; inset:0; display:flex; flex-direction:column; justify-content:center; align-items:center; pointer-events:none; text-align:center; padding:15px; }
.chart-loading>span { font-size:45px; color:var(--orange); margin-bottom:15px; }
.chart-loading strong { font-size:20px; font-weight:500; }
.chart-loading p { color:var(--muted); font-size:12px; margin-top:8px; }
#chart-tooltip { position:absolute; left:16px; top:10px; background:#10160ef2; border:1px solid #526143; border-radius:4px; pointer-events:none; padding:9px 12px; max-width:calc(100% - 30px); font:11px/1.8 var(--mono); white-space:pre-line; color:#dce7d2; }
.chart-legend { display:flex; align-items:center; flex-wrap:wrap; gap:12px; padding:10px 18px 14px; color:var(--muted); font-size:10px; }
.chart-legend span { display:flex; align-items:center; gap:5px; }
.chart-legend i { height:6px; width:6px; display:block; }
.green { background:#b0ed82; }.red { background:#ff7f91; }
.chart-legend>span:last-child { margin-left:auto; }
.run-strip { padding:16px 18px; border-top:1px solid var(--line); border-bottom:1px solid var(--line); display:flex; justify-content:space-between; align-items:center; gap:12px; background:#1b2315; }
.run-strip>div { display:flex; align-items:center; gap:12px; }
#run-icon { color:var(--lime); font-size:27px; }
.run-strip strong { font-size:13px; font-weight:500; }
.run-strip p { font-size:11px; color:var(--muted); margin:4px 0 0; }
.agent-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); }
.agent-card { padding:17px 14px; border-right:1px solid var(--line); }
.agent-card:last-child { border:0; }
.agent-card .agent-name { display:flex; align-items:center; gap:7px; font-size:11px; font-weight:600; overflow-wrap:anywhere; }
.avatar { display:inline-flex; align-items:center; justify-content:center; width:27px; height:27px; border:1px solid currentColor; border-radius:5px; font:20px var(--mono); flex:0 0 27px; }
.agent-value { font:21px var(--mono); margin:8px 0 5px; letter-spacing:-1px; }
.agent-value small { font-size:9px; color:var(--muted); letter-spacing:0; }
.agent-detail { font:10px/1.9 var(--mono); color:var(--muted); }
.agent-strategy { font:10px/1.5 var(--mono); color:var(--muted); margin-top:8px; min-height:30px; }
.activity-grid { display:grid; grid-template-columns:1fr 1.2fr; gap:18px; }
.panel { padding:22px; }
.panel-title { display:flex; align-items:center; justify-content:space-between; gap:15px; margin-bottom:18px; }
.panel-title>span { font:9px var(--mono); color:var(--muted); letter-spacing:.5px; }
.rank-row { display:flex; align-items:center; gap:10px; border-top:1px solid var(--line); padding:12px 0; }
.rank-row>b { color:var(--muted); font:11px var(--mono); width:10px; }
.rank-row strong { font-size:11px; }
.rank-row .rank-numbers { margin-left:auto; text-align:right; font:13px var(--mono); }
.rank-numbers small { display:block; font-size:10px; margin-top:4px; color:var(--muted); }
.events { height:262px; overflow-y:auto; scrollbar-width:thin; }
.receipt { border-left:2px solid var(--line); padding:0 10px 12px; margin-bottom:12px; font-size:11px; color:#bdc8b2; }
.receipt strong { font-size:11px; display:block; margin-bottom:4px; }
.receipt small { font:10px/1.7 var(--mono); color:var(--muted); display:block; margin-top:5px; }
.background-panel .eyebrow { font-size:9px; }
.run-row { display:grid; grid-template-columns:1fr auto; gap:12px; padding:17px 0; border-top:1px solid var(--line); }
.run-row strong { font-size:13px; font-weight:500; }
.run-row p { margin:5px 0 0; font-size:11px; color:var(--muted); }
.run-row .run-actions { display:flex; align-items:center; gap:8px; }
.run-row.selected { background:#c7ff6207; }
.run-state { display:inline-block; font:10px var(--mono); letter-spacing:.4px; margin-left:8px; color:var(--lime); }
.strategy-panel { padding:22px; position:sticky; top:15px; border-top-color:#6f8549; }
.strategy-panel .bot-symbol { font-size:30px; color:var(--lime); }
.strategy-heading { margin:0; }
.strategy-heading .panel-title { width:100%; padding:0; background:transparent; border:0; border-radius:0; text-align:left; cursor:default; }
.strategy-heading .strategy-heading-copy { font:inherit; color:var(--text); letter-spacing:normal; }
.strategy-heading-copy .eyebrow { display:block; }
.strategy-heading-title { display:block; font-size:23px; line-height:1.15; letter-spacing:-.8px; font-weight:500; }
.identity-row { display:grid; grid-template-columns:minmax(0,1fr) 43px 68px; gap:8px; margin-bottom:20px; }
.identity-row input[type=color] { height:41px; padding:4px; }
.identity-row select { padding:11px 3px; font-size:11px; }
.strategy-panel .fine { font-size:11px; margin:8px 0 15px; }
.rule-heading { display:flex; justify-content:space-between; align-items:center; border-top:1px solid var(--line); padding-top:18px; margin:18px 0 13px; }
.rule-heading span { font:10px var(--mono); color:var(--lime); }
.field-grid { display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.field-grid input { font:14px var(--mono); }
.field-grid label:first-child:nth-last-child(7) { grid-column:1/-1; }
.costs { border-top:1px solid var(--line); padding-top:16px; margin-bottom:16px; }
.execution { font-size:11px; color:var(--muted); margin-top:17px; }
.execution summary { color:#ced8c2; cursor:pointer; }
.execution p { margin:10px 0; line-height:1.8; }
.strategy-panel .primary { padding:15px 8px; font-size:12px; }
.notice { background:#25351b; border:1px solid #6b8647; padding:14px 18px; border-radius:5px; margin-bottom:16px; font-size:13px; position:relative; overflow-wrap:anywhere; }
.notice.error { border-color:#9b6555; background:#34231e; color:#ffbead; }
.parse-notes { font-size:11px; white-space:pre-wrap; background:#25311a; padding:12px; border-radius:4px; line-height:1.8; }
.check-label { display:flex; gap:8px; align-items:flex-start; font-size:11px; margin:10px 0; }
.check-label input { width:14px; flex:0 0 14px; }
.replay-controls { display:flex; align-items:center; gap:8px; border-top:1px solid var(--line); padding:12px 18px; flex-wrap:wrap; }
.replay-controls label { display:flex; gap:5px; align-items:center; }
.replay-controls select { width:60px; margin:0; }
.replay-controls>span { font:10px var(--mono); color:var(--muted); margin-right:auto; }
.recovery { display:flex; align-items:flex-start; gap:24px; margin-top:16px; }
.recovery details { font-size:11px; color:var(--muted); max-width:320px; }
.recovery summary { cursor:pointer; }
.recovery button { margin-top:8px; }
.recovery-note { border-left:2px solid #6b834b; padding:1px 0 1px 12px; margin:16px 0 0; color:var(--muted); font-size:11px; line-height:1.8; }
.recovery-note strong { display:block; color:#d0dcc4; font-weight:500; }
.disclosure { margin-top:22px; font-size:12px; color:var(--muted); }
.disclosure summary { cursor:pointer; color:var(--text); font-size:13px; }
.disclosure p { line-height:1.8; margin:15px 0 0; }
#btc-rivals { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:24px; margin-top:18px; }
#btc-rivals strong { font-size:12px; }
.bottom-note { display:flex; align-items:center; justify-content:space-between; gap:24px; margin-top:40px; padding:38px 0; border-top:1px solid var(--line); }
.bottom-note .eyebrow { font-size:9px; }
.bottom-note strong { display:block; font-size:35px; font-weight:500; line-height:1.2; letter-spacing:-1.3px; }
.bottom-note strong span { color:var(--lime); }
.bottom-note>p { font-size:13px; color:var(--muted); margin:0; line-height:1.8; }
.bottom-note>p a { display:block; color:var(--text); margin-top:14px; font-size:12px; }
.bottom-note>p a>span { color:var(--lime); margin-left:10px; }
footer { display:flex; align-items:center; justify-content:space-between; gap:24px; padding:25px 40px 34px; border-top:1px solid var(--line); font:9px var(--mono); letter-spacing:.5px; color:var(--muted); }
.footer-brand { display:flex; align-items:center; gap:10px; color:var(--text); font:600 12px var(--sans); letter-spacing:1px; }
footer>div { display:flex; gap:20px; font-size:10px; letter-spacing:0; }
.strategy-library { padding:21px 24px; margin-bottom:18px; background:#171d13; }
.library-heading { display:flex; justify-content:space-between; align-items:center; gap:24px; }
.library-heading .eyebrow { font-size:9px; margin-bottom:6px; }
.library-heading h2 { font-size:27px; letter-spacing:-1px; }
.library-heading p:not(.eyebrow) { color:var(--muted); font-size:12px; margin:7px 0 0; }
.library-heading>button { flex-shrink:0; background:transparent; font-size:11px; }
.selected-lineup { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:10px; margin-top:18px; }
.lineup-choice { padding:11px 13px; text-align:left; background:#11160e; border-color:var(--line); position:relative; overflow:hidden; }
.lineup-choice:before { content:''; position:absolute; inset:0 auto 0 0; width:2px; background:var(--category-color); }
.lineup-choice>span { display:block; font:9px var(--mono); letter-spacing:.7px; color:var(--category-color); margin-bottom:5px; }
.lineup-choice>strong { display:block; font-size:11px; font-weight:500; white-space:nowrap; text-overflow:ellipsis; overflow:hidden; padding-right:48px; }
.lineup-choice>small { position:absolute; right:10px; bottom:12px; font-size:10px; color:var(--muted); }
.library-context { font-size:11px; color:var(--muted); margin:10px 0 0; }
.category-tabs { display:flex; gap:8px; border-top:1px solid var(--line); padding-top:20px; margin-top:20px; }
.category-tabs button { display:flex; align-items:center; gap:10px; background:transparent; border-color:transparent; padding:11px 16px; color:var(--muted); font-size:12px; }
.category-tabs button>span { font-size:20px; color:var(--category-color); line-height:1; }
.category-tabs button>small { font:10px var(--mono); color:var(--muted); }
.category-tabs button.selected { background:#ffffff07; border-color:var(--category-color); color:var(--text); }
.library-subline { display:flex; align-items:center; justify-content:space-between; gap:20px; margin:18px 0 16px; }
.library-subline p { font-size:12px; color:#bec9b3; margin:0; }
.library-subline>span { font:10px var(--mono); letter-spacing:.5px; color:var(--muted); white-space:nowrap; }
.strategy-cards { display:grid; grid-template-columns:repeat(5,minmax(0,1fr)); gap:12px; align-items:stretch; }
.research-card { background:#131910; border:1px solid #39452f; border-radius:5px; padding:17px 15px; display:flex; flex-direction:column; min-width:0; }
.research-card.selected { border-color:var(--category-color); box-shadow:0 0 0 1px var(--category-color) inset; background:#1d2816; }
.research-card-top { display:flex; align-items:center; justify-content:space-between; gap:8px; margin-bottom:16px; }
.research-rank { font:29px var(--mono); letter-spacing:-1.5px; color:#8b9d7a; }
.research-card.selected .research-rank { color:var(--category-color); }
.strategy-status { font:9px var(--mono); letter-spacing:.2px; color:var(--muted); text-align:right; }
.research-card.selected .strategy-status { color:var(--category-color); }
.research-card h3 { font-size:15px; line-height:1.4; font-weight:500; letter-spacing:-.2px; }
.strategy-code { font:9px var(--mono); letter-spacing:.5px; color:var(--muted); margin:6px 0 18px; }
.selection-return { font:29px var(--mono); letter-spacing:-1.7px; line-height:1.15; }
.positive { color:var(--lime); }.negative { color:var(--red); }
.metric-caption { font-size:11px; color:var(--muted); margin-top:5px; }
.research-stats { display:grid; grid-template-columns:1.25fr 1fr; gap:8px; margin:18px 0; padding-bottom:15px; border-bottom:1px solid var(--line); }
.research-stats span { display:block; font-size:11px; color:var(--muted); margin-bottom:5px; }
.research-stats strong { font:14px var(--mono); font-weight:400; }
.recent-result { display:grid; grid-template-columns:1fr; gap:5px; }
.recent-result>span { font-size:11px; color:var(--muted); }
.recent-result>strong { font:16px var(--mono); font-weight:400; }
.recent-result>small { font-size:11px; color:var(--muted); }
.research-flags { display:flex; flex-wrap:wrap; gap:5px; min-height:44px; align-content:start; margin:13px 0; }
.research-flags>span { display:inline-block; border:1px solid #45533b; border-radius:3px; padding:4px 6px; font-size:11px; line-height:1.4; color:#c3d1b5; }
.research-flags .loss-label { color:#ffb1bb; border-color:#82515a; background:#ff7f910a; }
.research-flags .evidence-label { color:#ebca9b; border-color:#6d5c40; }
.research-interval { display:flex; align-items:flex-start; justify-content:space-between; flex-direction:column; gap:7px; padding-top:13px; border-top:1px solid var(--line); font-size:11px; color:var(--muted); }
.research-interval b { color:var(--text); }
.research-interval button { padding:6px 9px; font-size:11px; background:transparent; color:var(--category-color); }
.research-interval small { display:block; font-size:11px; line-height:29px; }
.card-rules { font-size:11px; color:var(--muted); margin:14px 0 17px; line-height:1.8; }
.card-rules summary { cursor:pointer; color:#c7d3bc; font-size:11px; }
.card-rules p { margin:9px 0 0; }
.strategy-pick { margin-top:auto; width:100%; font-size:11px; background:#27331f; padding:12px 7px; }
.strategy-pick.chosen { border-color:var(--category-color); color:var(--category-color); background:#ffffff04; }
.research-method { border-top:1px solid var(--line); margin-top:18px; padding-top:15px; font-size:11px; color:var(--muted); line-height:1.9; }
.research-method summary { cursor:pointer; color:#c6d3ba; font-size:11px; }
.research-method p { max-width:1100px; margin:10px 0 0; }
.editor-selection { border-left:2px solid var(--lime); padding:2px 0 2px 11px; margin-bottom:18px; }
.editor-selection>span { display:block; font:9px var(--mono); letter-spacing:.5px; color:var(--muted); }
.editor-selection>strong { display:block; font-size:12px; font-weight:500; margin-top:5px; color:var(--lime); }
.editor-selection>p { font-size:11px; line-height:1.7; color:var(--muted); margin:6px 0 0; }
@media(min-width:1450px) {
  .arena-layout { grid-template-columns:minmax(0,1fr) 360px; }
  .btc-chart-wrap { height:440px; }
  .agent-value { font-size:24px; }
}
@media(max-width:1200px) {
  header,footer { padding-left:26px; padding-right:26px; }
  main { padding:0 26px; }
  .intro h1 { font-size:clamp(40px,4.4vw,53px); letter-spacing:-2.8px; }
  .hero-series { display:none; }
  .hero-description { font-size:13px; }
  .arena-layout { grid-template-columns:minmax(0,1fr) 300px; gap:15px; }
  .strategy-panel { padding:18px; }
  .strategy-heading-title { font-size:21px; }
  .ticker { gap:24px; }
  .ticker-stat { display:none; }
  .activity-grid { grid-template-columns:1fr; }
  .zoom { display:none; }
  .chart-toolbar { gap:8px; padding:14px 12px; }
  .chart-legend>span:last-child { margin-left:0; }
  .agent-card { padding:13px 10px; }
  .agent-value { font-size:19px; }
  .agent-name .avatar { display:none; }
  .agent-detail { font-size:9px; }
  .chart-subline { padding:13px 13px 0; font-size:9px; }
  .lineup-choice>strong { padding-right:0; }
  .lineup-choice>small { display:none; }
  .strategy-cards { gap:9px; }
  .research-card { padding:15px 12px; }
  .research-card h3 { font-size:14px; }
  .selection-return { font-size:26px; }
  .strategy-status { font-size:8px; }
}
@media(max-width:1000px) {
  .agent-grid { grid-template-columns:1fr 1fr; }
  .agent-card { border-bottom:1px solid var(--line); }
  .agent-card:nth-child(2) { border-right:0; }
  .agent-card:nth-child(n+3) { border-bottom:0; }
  .intro { grid-template-columns:1.15fr 1fr; }
  .intro h1 { font-size:clamp(36px,4.4vw,45px); letter-spacing:-2.2px; }
  .hero-description br { display:none; }
  .hero-actions { gap:18px; }
  .hero-cta { gap:18px; }
  .hero-arena figcaption { font-size:7px; letter-spacing:.6px; }
  .match-steps p { display:none; }
  .library-subline { align-items:flex-start; flex-direction:column; gap:8px; }
  .strategy-cards { grid-template-columns:none; grid-auto-flow:column; grid-auto-columns:minmax(230px,28%); overflow-x:auto; scroll-snap-type:x proximity; padding:2px 2px 13px; scrollbar-width:thin; scrollbar-color:#78944b #1b2414; }
  .research-card { scroll-snap-align:start; padding:18px; }
  .research-card h3 { font-size:16px; }
  .selection-return { font-size:31px; }
  .strategy-status { font-size:9px; }
  .category-tabs button { padding:10px 12px; font-size:11px; }
  .library-heading p:not(.eyebrow) { max-width:380px; }
}
@media(max-width:780px) {
  html { scroll-padding-top:16px; }
  header { height:72px; padding:0 18px; gap:16px; }
  .logo { font-size:17px; gap:8px; letter-spacing:-.65px; }
  .logo img { width:34px; height:34px; }
  nav { gap:18px; font-size:11px; }
  nav a:first-child,nav a:nth-child(2) { display:none; }
  header>.pill { display:none; }
  main { padding:0 16px; }
  .intro { grid-template-columns:1fr; padding:30px 0 20px; gap:14px; }
  .intro-labels { margin-bottom:17px; }
  .beta-tag { font-size:9px; letter-spacing:1px; }
  .intro h1 { font-size:clamp(31px,7.7vw,59px); line-height:1.08; letter-spacing:-1.8px; margin-bottom:17px; }
  .hero-description { font-size:13px; max-width:470px; margin-bottom:19px; }
  .hero-description br { display:block; }
  .hero-actions { gap:21px; }
  .hero-cta { padding:12px 14px; font-size:12px; gap:22px; }
  .hero-secondary { font-size:11px; }
  .hero-assurance { font-size:9px; }
  .hero-arena { max-width:480px; width:100%; margin:0 auto; }
  .hero-arena svg { max-height:190px; }
  .hero-arena figcaption { font-size:8px; margin-top:3px; }
  .match-steps { flex-wrap:wrap; column-gap:15px; row-gap:7px; padding:14px 0; font-size:10px; justify-content:flex-start; }
  .match-steps div>span { font-size:9px; margin-right:5px; }
  .ticker { padding:15px 13px; gap:12px; flex-wrap:wrap; margin-bottom:14px; }
  .symbol { min-width:0; flex:1; gap:9px; }
  .symbol strong { font-size:15px; }
  .symbol small { font-size:8px; margin-left:4px; }
  .symbol div>span { font-size:7px; letter-spacing:0; }
  .bitcoin { width:34px; height:34px; line-height:34px; font-size:24px; flex-shrink:0; }
  .market-price { min-width:0; text-align:right; }
  .market-price strong { font-size:24px; }
  .market-price span { font-size:9px; }
  .feed-stat { display:flex; width:100%; margin-top:2px; padding-top:10px; border-top:1px solid var(--line); font-size:9px; }
  .feed-stat>span:last-child { margin-left:auto; font-size:9px; }
  .arena-layout { display:flex; flex-direction:column; gap:14px; }
  .market-column,.strategy-panel { width:100%; }
  .strategy-panel { position:static; padding:20px; order:-1; }
  .strategy-panel form { display:block; }
  .strategy-panel.mobile-collapsed form { display:none; }
  .strategy-panel .panel-title { cursor:pointer; min-height:44px; }
  .strategy-panel .panel-title:after { content:'−'; color:var(--lime); font:22px var(--mono); }
  .strategy-panel.mobile-collapsed .panel-title:after { content:'+'; }
  .strategy-panel.mobile-collapsed .panel-title { margin:0; }
  .strategy-panel .bot-symbol { display:none; }
  .strategy-heading-title { font-size:23px; }
  .strategy-heading-copy .eyebrow { font-size:9px; margin-bottom:6px; }
  .btc-chart-wrap { height:330px; }
  .chart-toolbar { flex-wrap:wrap; gap:7px; padding:11px 9px; }
  .mode-tabs { gap:2px; }
  .mode-tabs button { font-size:11px; padding:9px 8px; }
  .intervals { gap:0; }
  .intervals button { font-size:11px; padding:8px 7px; }
  .chart-subline { flex-wrap:wrap; padding:12px 12px 0; font-size:9px; gap:5px 10px; }
  .chart-legend { font-size:9px; padding:9px 12px 13px; gap:8px 12px; }
  .agent-grid { grid-template-columns:1fr 1fr; }
  .agent-card { padding:15px; border-bottom:1px solid var(--line); }
  .agent-card:nth-child(2) { border-right:0; }
  .agent-name .avatar { display:inline-flex; }
  .agent-value { font-size:24px; }
  .agent-detail { font-size:10px; }
  .agent-strategy { font-size:10px; }
  .panel { padding:20px; }
  .panel h2 { font-size:21px; }
  .panel-title>span { font-size:8px; }
  .run-strip { padding:13px; }
  .run-strip strong { font-size:12px; }
  .run-strip p { font-size:11px; }
  .run-strip .danger { font-size:11px; padding:8px; }
  .run-row { grid-template-columns:1fr; }
  .run-row .run-actions { justify-content:flex-start; }
  .replay-controls { padding:12px; }
  .replay-controls button { font-size:11px; }
  .replay-controls>span { width:100%; order:2; }
  #btc-rivals { grid-template-columns:1fr; gap:14px; }
  .bottom-note { display:block; margin-top:28px; padding:30px 0; }
  .bottom-note strong { font-size:27px; letter-spacing:-1px; }
  .bottom-note>p { margin-top:20px; font-size:12px; }
  footer { padding:22px 18px 30px; flex-wrap:wrap; gap:18px; }
  footer>span { width:100%; order:2; font-size:8px; }
  footer>div { gap:14px; font-size:10px; }
  .recovery { flex-direction:column; gap:15px; }
  .strategy-library { padding:18px; margin-bottom:14px; }
  .library-heading { align-items:flex-start; gap:12px; }
  .library-heading h2 { font-size:25px; }
  .library-heading .eyebrow { font-size:8px; letter-spacing:.8px; }
  .library-heading p:not(.eyebrow) { font-size:11px; }
  .library-heading>button { font-size:11px; padding:9px; max-width:99px; line-height:1.5; }
  .selected-lineup { grid-template-columns:1fr 1fr; margin-top:16px; gap:8px; }
  .lineup-choice { padding:11px 10px; }
  .lineup-choice>strong { font-size:11px; }
  .lineup-choice>span { font-size:9px; letter-spacing:.2px; }
  .library-context { font-size:11px; line-height:1.7; }
  .category-tabs { display:grid; grid-template-columns:1fr 1fr; gap:8px; padding-top:17px; margin-top:17px; }
  .category-tabs button { padding:10px; gap:7px; font-size:11px; }
  .category-tabs button>span { font-size:18px; }
  .category-tabs button>small { font-size:9px; margin-left:auto; }
  .library-subline { margin:15px 0; }
  .library-subline p { font-size:11px; }
  .library-subline>span { font-size:9px; white-space:normal; }
  .strategy-cards { grid-auto-columns:minmax(250px,88%); gap:10px; }
  .research-card { padding:18px; }
  .research-card h3 { font-size:17px; }
  .selection-return { font-size:34px; }
  .research-stats strong { font-size:16px; }
  .recent-result { grid-template-columns:1fr auto; }
  .recent-result>span { grid-column:1/-1; }
  .recent-result>small { text-align:right; }
  .research-interval { flex-direction:row; align-items:center; }
  .strategy-pick { padding:13px; }
}
@media(max-width:380px) {
  main { padding:0 12px; }
  .intro h1 { font-size:42px; letter-spacing:-2.4px; }
  .hero-actions { gap:14px; }
  .hero-cta { gap:14px; }
  .hero-secondary { font-size:10px; }
  .hero-description br { display:none; }
  .market-price strong { font-size:21px; }
  .symbol small { display:block; margin-left:0; }
  .symbol div>span { font-size:6px; }
  .library-heading { flex-wrap:wrap; }
  .library-heading>button { max-width:none; }
  .agent-value { font-size:21px; }
}
@media(prefers-reduced-motion:reduce) {
  * { scroll-behavior:auto!important; transition:none!important; }
}
.header-account { display:flex; align-items:center; gap:15px; }
.account-toggle { display:flex; align-items:center; gap:9px; background:transparent; white-space:nowrap; padding:8px 10px; }
.account-avatar { display:grid; place-items:center; width:25px; height:25px; border-radius:50%; background:#2b3621; color:var(--lime); font-size:18px; }
.account-toggle>span:last-child { color:var(--muted); }
.account-panel { max-width:1520px; margin:18px auto 0; padding:25px 28px; display:grid; grid-template-columns:1.3fr 1fr; gap:35px; background:#1a2015; border:1px solid #52643e; border-radius:6px; }
.account-panel .eyebrow { margin-bottom:7px; }
.account-panel h2 { font-size:25px; }
.account-panel p:not(.eyebrow) { font-size:12px; line-height:1.7; color:var(--muted); margin:10px 0 0; }
.account-panel #account-status { color:#e1e9d7; }
.account-actions { display:flex; align-items:flex-start; justify-content:flex-end; flex-wrap:wrap; gap:10px; }
.account-actions #account-login { min-height:44px; }
.account-actions #account-login>span { margin-left:15px; }
.account-import { width:100%; border-top:1px solid var(--line); margin-top:3px; padding-top:7px; }
.account-import button { margin-top:10px; }
.workbench { margin:0 0 18px; padding:22px 24px; border-color:#445438; background:linear-gradient(120deg,#202819 0%,#171a15 65%); }
.workbench-heading,.workbench-brand { display:flex; align-items:center; gap:17px; }
.workbench-heading { justify-content:space-between; }
.workbench-brand { min-width:0; }
.workbench-icon { width:43px; height:43px; flex:0 0 43px; display:grid; place-items:center; border:1px solid #5e7443; background:#26341b; color:var(--lime); border-radius:9px; font:26px var(--mono); }
.workbench-heading .eyebrow { font-size:10px; margin-bottom:6px; }
.workbench-heading h2 { font-size:25px; }
.workbench-heading p:not(.eyebrow) { color:var(--muted); margin:7px 0 0; font-size:12px; }
.workbench-heading>button { white-space:nowrap; }
.workbench-heading>button span { margin-left:14px; }
.workbench-steps { display:grid; grid-template-columns:repeat(3,1fr); margin:25px 0 0; border-top:1px solid var(--line); padding:20px 0; gap:18px; color:#d4dec9; font-size:12px; }
.workbench-steps b { display:inline-grid; place-items:center; margin-right:9px; border:1px solid #4d6138; width:25px; height:25px; border-radius:50%; color:var(--lime); font:10px var(--mono); }
.workbench-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.workbench-card { border:1px solid #37422e; border-radius:5px; padding:20px; background:#11160e; min-width:0; }
.workbench-card .eyebrow { font-size:9px; letter-spacing:.8px; margin-bottom:13px; }
.workbench-card h3 { font-size:21px; font-weight:500; letter-spacing:-.5px; line-height:1.25; }
.workbench-card h3+p { font-size:12px; line-height:1.7; color:var(--muted); margin:10px 0 18px; }
.workbench-card textarea { min-height:121px; font-size:12px; }
.workbench-card .fine { margin:12px 0 0; }
.workbench-card button { min-height:41px; }
.test-selection { display:grid; grid-template-columns:1fr 1fr; gap:15px; align-items:end; min-height:95px; margin-bottom:20px; }
.workbench-interval { display:flex; flex-direction:column; gap:5px; padding-bottom:2px; }
.workbench-interval>span { font:9px var(--mono); color:var(--muted); }
.workbench-interval strong { font:23px var(--mono); color:var(--lime); }
.workbench-interval small { font-size:10px; color:var(--muted); line-height:1.5; }
.workbench-save-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; margin:15px 0 0; }
.saved-strategies { border-top:1px solid var(--line); margin-top:18px; max-height:214px; overflow:auto; scrollbar-width:thin; }
.saved-strategy { padding:13px 0; border-bottom:1px solid var(--line); }
.saved-strategy:last-child { border:0; }
.saved-strategy strong { display:block; font-size:12px; font-weight:500; overflow-wrap:anywhere; }
.saved-strategy p { color:var(--muted); font:10px/1.6 var(--mono); margin:5px 0 8px; }
.saved-strategy-actions { display:flex; align-items:center; flex-wrap:wrap; gap:8px; }
.saved-strategy-actions button { min-height:32px; padding:6px 9px; font-size:11px; }
.saved-strategy-actions .text-button { margin-left:auto; color:var(--muted); }
.workbench-notice { margin:18px 0 0; background:#28391b; border-left:3px solid var(--lime); padding:13px 16px; font-size:12px; line-height:1.7; overflow-wrap:anywhere; }
.workbench-notice.error { background:#35231e; border-color:#e69c82; color:#ffc0aa; }
.job-state { margin:15px 0 0; padding:11px; border:1px solid #4d6038; border-radius:4px; color:var(--lime); font:11px/1.7 var(--mono); }
.backtest-history { border-top:1px solid var(--line); margin-top:18px; padding-top:14px; font-size:11px; color:var(--muted); }
.backtest-history summary { color:#d6e1cc; cursor:pointer; }
#workbench-jobs { max-height:230px; overflow:auto; margin-top:9px; scrollbar-width:thin; }
.job-history-item { display:block; width:100%; background:transparent; border:0; border-bottom:1px solid var(--line); border-radius:0; padding:12px 0; text-align:left; }
.job-history-item strong { display:block; font-size:11px; font-weight:500; overflow-wrap:anywhere; }
.job-history-item span { display:block; font:9px/1.7 var(--mono); margin-top:4px; color:var(--muted); }
#workbench-ai-retry,#workbench-jobs-retry { margin-top:10px; }
.workbench-review { margin-top:20px; padding:23px; border:1px solid #536b3a; border-radius:5px; background:#161e10; }
.workbench-result-heading { display:flex; align-items:flex-start; justify-content:space-between; gap:20px; margin-bottom:18px; }
.workbench-result-heading .eyebrow { margin-bottom:8px; font-size:10px; }
.workbench-result-heading h3 { font-size:26px; font-weight:500; letter-spacing:-.8px; }
.workbench-result-heading p:not(.eyebrow) { margin:9px 0 0; color:var(--muted); font-size:11px; line-height:1.7; }
.workbench-stamp { border:1px solid #53653f; border-radius:3px; padding:7px 10px; color:var(--lime); font:9px var(--mono); white-space:nowrap; }
#workbench-draft-summary { font-size:13px; line-height:1.8; color:#d3dec7; }
.draft-rule-grid { display:grid; grid-template-columns:repeat(7,minmax(0,1fr)); border:1px solid #3d5030; border-radius:4px; overflow:hidden; margin:18px 0; }
.draft-rule { padding:14px 12px; border-right:1px solid #3d5030; }
.draft-rule:last-child { border:0; }
.draft-rule span { display:block; color:var(--muted); font-size:10px; line-height:1.5; min-height:30px; }
.draft-rule strong { display:block; font:21px var(--mono); margin-top:7px; }
.draft-context { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; }
.draft-context h4 { color:#e6eddf; font-size:12px; font-weight:500; margin:2px 0 9px; }
.draft-context ul { margin:0; padding-left:17px; color:var(--muted); font-size:12px; line-height:1.8; }
.draft-context li+li { margin-top:6px; }
.canonical-prompt { margin:20px 0; border-top:1px solid #3d5030; padding-top:16px; color:#d8e5cc; font-size:12px; }
.canonical-prompt summary { cursor:pointer; }
.canonical-prompt p { margin:12px 0 0; color:var(--muted); line-height:1.8; white-space:pre-wrap; overflow-wrap:anywhere; }
.draft-ack { font-size:12px; line-height:1.7; align-items:flex-start; gap:10px; }
.draft-ack input { margin-top:3px; width:17px; flex-basis:17px; height:17px; }
.draft-actions { display:flex; align-items:center; gap:18px; margin-top:17px; }
.draft-actions p { margin:0; color:var(--muted); font-size:11px; max-width:270px; line-height:1.7; }
.backtest-metrics { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; margin:22px 0; }
.backtest-metric { background:#11170e; border:1px solid #34442a; border-radius:4px; padding:17px; min-width:0; }
.backtest-metric>span { font:9px var(--mono); letter-spacing:.5px; color:var(--muted); }
.backtest-metric strong { display:block; font:27px var(--mono); margin:10px 0 5px; letter-spacing:-1px; }
.backtest-metric small { color:var(--muted); font-size:10px; line-height:1.6; display:block; }
.backtest-table-wrap { overflow-x:auto; scrollbar-width:thin; }
.backtest-table { width:100%; border-collapse:collapse; text-align:left; white-space:nowrap; }
.backtest-table caption { text-align:left; color:#dce6d3; font-size:12px; padding:3px 0 13px; }
.backtest-table th { color:var(--muted); font-size:10px; font-weight:400; padding:12px 13px; border-bottom:1px solid #53643f; }
.backtest-table td { font:12px var(--mono); padding:15px 13px; border-bottom:1px solid #303e25; }
.backtest-table td:first-child { font-family:var(--sans); }
.backtest-table .your-result { background:#c7ff6209; }
.backtest-table .result-marker { display:inline-block; width:6px; height:6px; background:var(--lime); margin-right:8px; border-radius:50%; }
.backtest-warnings { font-size:11px; color:#b8c7ab; line-height:1.8; }
.backtest-warnings p { margin:6px 0; }
.backtest-actions { display:flex; align-items:center; gap:12px; flex-wrap:wrap; border-top:1px solid #3d5030; margin-top:20px; padding-top:20px; }
@media(max-width:1200px) { .header-account>.pill { display:none; } .account-panel { margin-left:24px; margin-right:24px; } .workbench-grid { gap:10px; } .workbench-card { padding:17px; } .draft-rule-grid { grid-template-columns:repeat(4,1fr); } .draft-rule { border-bottom:1px solid #3d5030; } .draft-rule:nth-child(4) { border-right:0; } .draft-rule:nth-child(n+5) { border-bottom:0; } }
@media(max-width:1000px) { header nav { gap:20px; } .account-toggle { font-size:11px; } .workbench-card h3 { font-size:19px; } .workbench-grid { grid-template-columns:1fr 1fr; } .saved-card { grid-column:1/-1; } .saved-strategies { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:0 20px; } .backtest-metric strong { font-size:23px; } }
@media(max-width:780px) { header { gap:10px; } header nav { margin-left:auto; } header nav a:last-child { font-size:10px; } .header-account { gap:0; } .account-toggle { padding:7px; border-color:#46503d; min-height:42px; } .account-toggle #account-label { max-width:75px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; } .account-avatar { display:none; } .account-panel { grid-template-columns:1fr; gap:18px; margin:12px 16px 0; padding:20px; } .account-actions { justify-content:flex-start; } .workbench { padding:18px; margin-bottom:14px; } .workbench-heading { align-items:flex-start; flex-wrap:wrap; gap:16px; } .workbench-brand { gap:12px; } .workbench-icon { width:34px; height:34px; flex-basis:34px; font-size:22px; } .workbench-heading h2 { font-size:22px; line-height:1.2; } .workbench-heading .eyebrow { font-size:9px; } .workbench-heading p:not(.eyebrow) { font-size:11px; line-height:1.7; } .workbench-heading>button { width:100%; display:flex; justify-content:space-between; } .workbench-steps { gap:8px; font-size:10px; align-items:start; margin-top:18px; padding:17px 0; } .workbench-steps b { display:grid; margin:0 0 7px; } .workbench-grid { grid-template-columns:1fr; gap:12px; } .workbench-card { padding:18px; } .workbench-card h3 { font-size:23px; } .saved-card { grid-column:auto; } .saved-strategies { display:block; } .test-selection { min-height:0; margin:10px 0 15px; } .workbench-review { padding:17px; } .workbench-result-heading { flex-direction:column; gap:10px; } .workbench-result-heading h3 { font-size:24px; } .workbench-result-heading .eyebrow { font-size:9px; line-height:1.8; } .draft-rule-grid { grid-template-columns:repeat(2,minmax(0,1fr)); } .draft-rule { border-bottom:1px solid #3d5030!important; } .draft-rule:nth-child(even) { border-right:0; } .draft-rule:last-child { border-bottom:0!important; border-right:1px solid #3d5030; } .draft-rule span { min-height:0; font-size:11px; } .draft-rule strong { font-size:22px; } .draft-context { grid-template-columns:1fr; } .draft-actions { flex-direction:column; align-items:stretch; gap:10px; } .draft-actions p { max-width:none; } .backtest-metrics { grid-template-columns:repeat(2,minmax(0,1fr)); gap:8px; } .backtest-metric { padding:13px 11px; } .backtest-metric>span { font-size:8px; letter-spacing:0; } .backtest-metric strong { font-size:24px; } .backtest-actions { align-items:stretch; flex-direction:column; gap:10px; } .backtest-actions button { min-height:43px; } }
@media(max-width:380px) { header nav { display:none; } .header-account { margin-left:auto; } .workbench-brand { align-items:flex-start; } .workbench-icon { display:none; } .backtest-metric strong { font-size:21px; } }

/* StratDuel: the same proving ground, with a distinct rival side. */
.intro { background:radial-gradient(ellipse at 92% 40%,#94d9ef05,transparent 58%); }
.hero-arena figcaption { color:#a7bec0; }
.hero-secondary>span,.footer-brand { color:var(--brand-rival); }
.primary { box-shadow:inset 0 1px 0 #efffc859; }
.primary:active { background:#b5ec50; }
@media(max-width:430px){.logo{font-size:15px;gap:6px}.logo img{width:32px;height:32px}.intro h1{font-size:clamp(29px,8.65vw,37px);letter-spacing:-1.7px}}
/* Welcome tour and account finishing, v1.7.1. */
.header-account { gap:14px; }
.account-toggle { padding:9px 13px; gap:12px; border:1px solid #46513e; border-radius:9px; background:linear-gradient(135deg,#242b1e,#181d15); min-height:49px; text-align:left; box-shadow:inset 0 1px 0 #ffffff08; }
.account-toggle:hover,.account-toggle[aria-expanded="true"] { background:#29331f; border-color:#a4cf58; }
.account-x { flex:0 0 18px; width:18px; height:18px; color:var(--text); }
.account-labels { display:flex; flex-direction:column; gap:2px; }
#account-label { font-size:12px; font-weight:600; max-width:150px; overflow:hidden; text-overflow:ellipsis; }
#account-caption { font:9px/1.3 var(--mono); color:#aab79d; font-weight:400; }
.account-chevron { font-size:14px; transition:transform .15s; }
.account-toggle[aria-expanded="true"] .account-chevron { transform:rotate(180deg); }
.tour-launch { background:none; border:0; padding:10px 0; display:flex; align-items:center; gap:8px; color:#c0cbb5; white-space:nowrap; }
.tour-launch>span { border:1px solid #667357; width:19px; height:19px; border-radius:50%; font:11px/17px var(--mono); }
.tour-launch:hover { background:none; color:var(--lime); }
.hero-tour { display:inline-flex; align-items:center; gap:10px; padding:8px 0; margin-top:9px; border:0; background:none; color:var(--brand-rival); font-size:12px; text-align:left; }
.hero-tour:hover { background:none; color:#c6edfa; }
.hero-tour>span:first-child { display:grid; place-items:center; width:23px; height:23px; border:1px solid #425964; border-radius:6px; }
.account-panel { position:absolute; z-index:60; top:78px; right:max(24px,calc((100vw - 1520px)/2)); width:400px; max-width:calc(100% - 32px); margin:0; padding:22px; display:flex; flex-direction:column; gap:18px; border:1px solid #526345; border-radius:14px; background:#1a2016; box-shadow:0 24px 70px #0009,inset 0 1px 0 #ffffff0c; }
.account-panel-top { display:flex; align-items:center; justify-content:space-between; gap:15px; }
.account-badge { font:9px var(--mono); letter-spacing:1px; color:var(--lime); }
.icon-button { display:grid; place-items:center; width:32px; height:32px; flex-shrink:0; padding:0; border:1px solid #3f4937; border-radius:7px; background:transparent; color:#c3cebb; font-size:21px; line-height:1; }
.account-panel h2 { font-size:26px; letter-spacing:-.9px; }
.account-panel p:not(.eyebrow) { font-size:12px; line-height:1.7; margin:10px 0 0; }
.account-panel #account-status { color:#b9c4ae; }
.account-actions { display:flex; flex-direction:column; gap:10px; align-items:stretch; }
.account-login { display:flex; align-items:center; justify-content:center; gap:12px; padding:12px; min-height:46px; border:1px solid #e0e4d5; border-radius:8px; background:#f4f5eb; color:#152008; }
.account-login:hover { background:#fff; color:#152008; }
.account-actions #account-login>span { margin:0; }
.account-login>span:first-child { font-size:20px; }
.account-login>span:last-child { margin-left:auto!important; }
.account-login:disabled { opacity:.55; cursor:not-allowed; }
.account-guest { display:flex; gap:12px; padding:16px 0 0; border-top:1px solid #3d4932; }
.account-guest-mark { color:var(--brand-rival); font-size:22px; }
.account-guest strong { font-size:12px; font-weight:500; }
.account-panel .account-guest p { font-size:11px; margin:6px 0 13px; }
.account-guest .text-button { font-size:11px; text-align:left; line-height:1.6; }
.site-tour { position:fixed; inset:0; width:100vw; height:100dvh; max-width:none; max-height:none; margin:0; padding:0; border:0; background:transparent; color:var(--text); overflow:hidden; font-family:var(--sans); }
.site-tour::backdrop { background:#06090438; }
.tour-spotlight { position:fixed; border:1.5px solid #c7ff62; border-radius:10px; box-shadow:0 0 0 9999px #070a05c9,0 0 28px #c7ff6220; pointer-events:none; }
.tour-card { position:fixed; width:392px; max-width:calc(100vw - 32px); max-height:calc(100dvh - 32px); overflow:auto; padding:23px; border:1px solid #657a4b; border-radius:15px; background:linear-gradient(145deg,#222d1b,#131a10 80%); box-shadow:0 20px 75px #0009; }
.tour-top { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:15px; }
.tour-brand { display:flex; align-items:center; gap:10px; font:9px var(--mono); letter-spacing:1.3px; color:#c9d6bc; }
.tour-progress { height:3px; background:#38432e; border-radius:2px; overflow:hidden; margin-bottom:21px; }
.tour-progress>span { display:block; height:100%; background:var(--lime); transition:width .15s; }
.tour-copy .eyebrow { font-size:9px; margin-bottom:9px; }
.tour-copy h2 { font-size:27px; line-height:1.15; letter-spacing:-.8px; margin-bottom:13px; }
#tour-body { font-size:13px; line-height:1.75; color:#e1e8d9; margin-bottom:14px; }
.tour-hint { font-size:11px; line-height:1.7; color:#aebea0; border-left:2px solid #668e42; padding-left:12px; margin:0; }
.tour-actions { display:flex; justify-content:space-between; gap:12px; align-items:center; margin-top:23px; padding-top:16px; border-top:1px solid #3b4b30; }
.tour-actions>div { display:flex; gap:8px; }
.tour-actions button { min-height:42px; }
#tour-back:disabled { cursor:default; }
@media(max-width:1150px) { header { gap:16px; } header nav { gap:17px; font-size:11px; } .header-account { gap:12px; } .tour-launch { font-size:11px; } .logo { font-size:19px; } }
@media(max-width:950px) { .tour-launch { display:none; } }
@media(max-width:780px) {
 header { height:auto; min-height:120px; padding:15px 18px 10px; flex-wrap:wrap; gap:12px; }
 header .logo { font-size:19px; gap:8px; }
 header .logo img { width:32px; height:32px; }
 .header-account { margin-left:auto; }
 .account-toggle { min-height:46px; padding:7px 10px; gap:8px; }
 .account-toggle #account-label { max-width:112px; font-size:11px; }
 .account-x { width:16px; height:16px; flex-basis:16px; }
 .account-chevron { display:none; }
 #account-caption { font-size:8px; }
 header nav { display:flex; order:3; width:100%; justify-content:space-between; gap:12px; font-size:11px; }
 header nav a:nth-child(n) { display:block; font-size:11px; }
 header nav .nav-active:before { display:none; }
 .account-panel { top:69px; right:16px; margin:0; padding:20px; gap:16px; }
 .hero-tour { font-size:11px; margin-top:7px; }
 .tour-card { padding:19px; width:392px; }
 .tour-copy h2 { font-size:25px; }
 #tour-body { font-size:12px; line-height:1.7; }
 .tour-hint { font-size:10px; }
 .tour-actions { margin-top:17px; padding-top:13px; }
}
@media(max-width:360px) { header { padding-left:12px; padding-right:12px; } header .logo { font-size:17px; } .account-toggle { padding:7px; } .account-x { display:none; } header nav { gap:8px; } header nav a,header nav a:last-child { font-size:10px; } .tour-card { padding:16px; } .tour-actions { gap:8px; } .tour-actions button { padding-left:10px; padding-right:10px; } }
@media(prefers-reduced-motion:reduce) { .tour-progress>span,.account-chevron { transition:none; } }
