:root {
  color-scheme: dark;
  --bg: #07090c;
  --surface: #0d1014;
  --surface-2: #11151a;
  --surface-3: #171c22;
  --border: #242a32;
  --border-soft: #1b2027;
  --text: #f4f6f8;
  --muted: #858e9a;
  --faint: #555e69;
  --green: #54e3a5;
  --green-soft: #10251d;
  --blue: #67a6ff;
  --purple: #aa8cff;
  --amber: #f0c66d;
  --red: #ff747b;
  --sidebar: 190px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input { font: inherit; }
button { color: inherit; }

.app-shell { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 25px 17px 18px; border-right: 1px solid var(--border-soft); background: rgba(9, 11, 14, .97); z-index: 20; }
.brand { display: flex; align-items: center; gap: 9px; padding: 0 8px 29px; color: white; text-decoration: none; font-weight: 760; font-size: 18px; letter-spacing: -.03em; }
.brand-glyph { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f3f5f6; color: #080a0c; font-family: Georgia, serif; font-size: 16px; }
.brand i { margin-left: 2px; color: #5f6874; font-size: 7px; font-style: normal; letter-spacing: .14em; }
nav { display: grid; gap: 4px; }
nav p { margin: 18px 11px 7px; color: #4f5863; font-size: 8px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
nav a { position: relative; display: flex; align-items: center; gap: 11px; min-height: 39px; padding: 0 11px; border-radius: 8px; color: #78818d; text-decoration: none; font-size: 12px; transition: .18s ease; }
nav a:hover { color: #c8cdd2; background: #11151a; }
nav a.active { color: white; background: linear-gradient(90deg, #17201d, #12161a); box-shadow: inset 2px 0 var(--green); }
.nav-icon { width: 17px; color: #707986; text-align: center; font-size: 15px; }
.active .nav-icon { color: var(--green); }
.beta { margin-left: auto; padding: 3px 5px; border-radius: 4px; color: var(--green); background: #163228; font-size: 7px; font-weight: 800; letter-spacing: .08em; }
.sidebar-foot { margin-top: auto; display: grid; gap: 8px; }
.system-status { display: flex; align-items: center; gap: 9px; padding: 11px; border: 1px solid #1d3029; border-radius: 9px; background: #0d1713; }
.system-status div { display: grid; gap: 2px; }
.system-status strong { font-size: 10px; }
.system-status small { color: #6d8178; font-size: 8px; }
.status-dot { display: inline-block; width: 7px; height: 7px; flex: 0 0 auto; border-radius: 99px; background: var(--green); box-shadow: 0 0 10px rgba(84, 227, 165, .55); }
.help-link { display: flex; gap: 11px; align-items: center; padding: 9px 11px; border: 0; background: transparent; color: #636c78; font-size: 10px; cursor: pointer; }

main { min-width: 0; }
.topbar { height: 69px; display: flex; align-items: center; justify-content: flex-end; padding: 0 38px; border-bottom: 1px solid var(--border-soft); background: rgba(7, 9, 12, .85); backdrop-filter: blur(14px); position: sticky; top: 0; z-index: 15; }
.mobile-brand { display: none; font-weight: 750; align-items: center; gap: 8px; }
.topbar-actions { display: flex; align-items: center; gap: 9px; }
.network-chip { display: flex; gap: 7px; align-items: center; padding: 7px 10px; border: 1px solid var(--border); border-radius: 7px; color: #89929d; font-size: 9px; }
.network-chip span { width: 6px; height: 6px; border-radius: 50%; background: var(--amber); }
.icon-button { width: 33px; height: 33px; border: 1px solid var(--border); border-radius: 8px; background: var(--surface); color: #818b97; cursor: pointer; }
.account-button { min-width: 190px; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 9px; background: var(--surface); text-align: left; cursor: pointer; transition: .18s ease; }
.account-button:hover { border-color: #3b444f; background: #12161b; }
.account-button > span:nth-child(2) { display: grid; gap: 1px; }
.account-button small { color: #69727e; font-size: 7px; text-transform: uppercase; letter-spacing: .09em; }
.account-button strong { overflow: hidden; color: #dfe3e7; font-size: 10px; white-space: nowrap; text-overflow: ellipsis; }
.account-button b { color: #646d78; font-size: 10px; }
.avatar, .mini-avatar { display: grid; place-items: center; border-radius: 7px; background: #16251f; color: var(--green); }
.avatar { width: 27px; height: 27px; }
.account-button.disconnected .avatar { background: #171b20; color: #818a95; }

.page { width: 100%; margin: auto; padding: 48px 44px 80px; }
.hero { min-height: 230px; display: grid; grid-template-columns: minmax(0, 1fr) 300px; align-items: center; position: relative; overflow: hidden; }
.overline { display: flex; align-items: center; gap: 9px; margin-bottom: 18px; color: #6e7783; font-size: 8px; font-weight: 800; letter-spacing: .15em; }
.overline span:first-child { color: var(--green); }
.overline i { width: 3px; height: 3px; border-radius: 50%; background: #454d57; }
.hero h1 { max-width: 800px; margin: 0; font-size: clamp(36px, 4.2vw, 58px); line-height: 1.04; letter-spacing: -.055em; font-weight: 680; }
.hero h1 em { color: #707985; font-style: normal; font-weight: 520; }
.hero > div > p { max-width: 630px; margin: 19px 0 0; color: #88919c; line-height: 1.65; font-size: 13px; }
.hero-orbit { position: relative; width: 260px; height: 210px; justify-self: end; opacity: .8; }
.orbit { position: absolute; border: 1px solid #202a29; border-radius: 50%; transform: rotate(-20deg); }
.orbit-one { inset: 35px 5px; }
.orbit-two { inset: 5px 55px; transform: rotate(55deg); }
.core { position: absolute; inset: 0; margin: auto; width: 58px; height: 58px; display: grid; place-items: center; border: 1px solid #2c4c40; border-radius: 50%; background: radial-gradient(circle, #183229, #0b100e 67%); color: var(--green); font-family: Georgia, serif; font-size: 22px; box-shadow: 0 0 60px rgba(84, 227, 165, .15); }
.node { position: absolute; width: 7px; height: 7px; border: 1px solid var(--green); border-radius: 50%; background: var(--bg); box-shadow: 0 0 9px var(--green); }
.n1 { top: 43px; left: 47px; }.n2 { right: 28px; top: 112px; }.n3 { bottom: 22px; left: 111px; }

.safety-banner { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 13px; padding: 14px 17px; border: 1px solid #1d3b30; border-radius: 10px; background: linear-gradient(90deg, #0d1d17, #0c1212); }
.shield-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 8px; background: #143026; color: var(--green); font-size: 17px; }
.safety-banner strong { font-size: 11px; }
.safety-banner p { margin: 3px 0 0; color: #778b82; font-size: 9px; }
.safe-badge, .paper-tag { color: var(--green); background: #173127; border: 1px solid #24483a; font-size: 7px; font-weight: 800; letter-spacing: .09em; border-radius: 5px; padding: 6px 8px; }
.ops-console { display:grid; grid-template-columns:repeat(5,minmax(90px,1fr)) minmax(260px,2fr); gap:1px; margin-top:12px; overflow:hidden; border:1px solid var(--border); border-radius:10px; background:var(--border); }
.ops-stat,.provider-health { min-height:58px; padding:11px 13px; background:#0c1013; }.ops-stat { display:grid; align-content:center; gap:5px; }.ops-stat small { color:#535d68; font-size:6px; letter-spacing:.12em; }.ops-stat strong { font-size:9px; color:#c3c9cf; }
.provider-health { display:flex; flex-wrap:wrap; align-items:center; gap:5px; }.provider-pill { display:inline-flex; align-items:center; gap:5px; padding:5px 7px; border:1px solid #2e353d; border-radius:999px; color:#7f8994; font-size:6px; font-weight:800; letter-spacing:.05em; }.provider-pill i { width:5px;height:5px;border-radius:50%;background:currentColor; }.provider-pill.connected { color:var(--green); border-color:#28513f; }.provider-pill.degraded,.provider-pill.stale { color:var(--amber); }.provider-pill.blocked,.provider-pill.auth_required,.provider-pill.blocked_configuration { color:var(--red); border-color:#543034; }

.builder { display: grid; grid-template-columns: minmax(0, 1fr) 318px; gap: 22px; align-items: start; margin-top: 45px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; }
.section-heading > div { display: flex; align-items: center; gap: 11px; }
.step-number { width: 31px; height: 31px; display: grid; place-items: center; border: 1px solid #2d353e; border-radius: 8px; color: #727c87; font-family: ui-monospace, monospace; font-size: 9px; }
.section-heading p, .launch-head p, .deployments-heading p { margin: 0 0 4px; color: #66707c; font-size: 7px; font-weight: 800; letter-spacing: .14em; }
.section-heading h2, .launch-head h2, .deployments-heading h2 { margin: 0; font-size: 17px; letter-spacing: -.02em; }
.section-heading > span { color: #5b6570; font-size: 9px; }
.strategy-selector { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.strategy-card { --accent: var(--green); min-width: 0; min-height: 224px; display: flex; flex-direction: column; align-items: flex-start; position: relative; padding: 16px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(150deg, #12161a, #0c0f12); text-align: left; cursor: pointer; transition: .2s ease; overflow: hidden; }
.strategy-card::after { content: ""; position: absolute; width: 100px; height: 100px; top: -50px; right: -45px; border-radius: 50%; background: var(--accent); filter: blur(60px); opacity: 0; transition: .2s ease; }
.strategy-card:hover { transform: translateY(-2px); border-color: #3c444e; }
.strategy-card.selected { border-color: color-mix(in srgb, var(--accent), #253039 52%); box-shadow: inset 0 2px var(--accent), 0 15px 40px rgba(0,0,0,.18); }
.strategy-card.selected::after { opacity: .1; }
.strategy-card.yield { --accent: var(--blue); }.strategy-card.arb { --accent: var(--purple); }
.strategy-icon { width: 34px; height: 34px; display: grid; place-items: center; border: 1px solid color-mix(in srgb, var(--accent), transparent 57%); border-radius: 8px; background: color-mix(in srgb, var(--accent), transparent 90%); color: var(--accent); font-family: Georgia, serif; font-size: 14px; }
.selection-check { display: none; place-items: center; position: absolute; right: 13px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--accent); color: #0b0d10; font-size: 10px; font-weight: 900; }
.selected .selection-check { display: grid; }
.strategy-copy { display: grid; margin-top: 15px; }
.strategy-copy strong { font-size: 13px; }
.strategy-copy small { margin-top: 3px; color: var(--accent); font-size: 8px; font-weight: 700; }
.strategy-copy p { min-height: 42px; margin: 10px 0 0; color: #7d8691; font-size: 9px; line-height: 1.5; }
.risk-label { position: absolute; right: 13px; top: 51px; color: var(--amber); font-size: 6px; font-weight: 800; letter-spacing: .08em; }
.strategy-stats { width: 100%; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; padding-top: 12px; margin-top: auto; border-top: 1px solid var(--border-soft); }
.strategy-stats i { display: grid; gap: 3px; font-style: normal; }
.strategy-stats small { color: #505964; font-size: 6px; letter-spacing: .1em; }
.strategy-stats b { overflow: hidden; color: #aab1b9; font-size: 8px; white-space: nowrap; text-overflow: ellipsis; }

.market-heading { margin-top: 38px; }
.refresh-button { border: 0; background: transparent; color: #76808b; font-size: 9px; cursor: pointer; }
.refresh-button:hover { color: var(--green); }
.market-panel { overflow: hidden; border: 1px solid var(--border); border-radius: 11px; background: var(--surface); }
.market-toolbar { min-height: 57px; display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 11px 13px; border-bottom: 1px solid var(--border-soft); }
.search { width: min(270px, 100%); height: 33px; display: flex; align-items: center; gap: 8px; padding: 0 10px; border: 1px solid #282e36; border-radius: 7px; background: #090c0f; color: #626c77; }
.search input { width: 100%; border: 0; outline: 0; background: transparent; color: white; font-size: 9px; }
.filters { display: flex; gap: 5px; }
.filters button { padding: 6px 8px; border: 1px solid transparent; border-radius: 5px; background: transparent; color: #66707b; font-size: 7px; cursor: pointer; }
.filters button.active { border-color: #2b333b; background: #181d23; color: #b9c0c8; }
.market-list-head, .market-row { display: grid; grid-template-columns: minmax(210px, 2.1fr) .75fr .75fr .72fr 1fr 28px; align-items: center; gap: 10px; padding: 0 14px; }
.market-list-head { height: 34px; border-bottom: 1px solid var(--border-soft); color: #4f5863; font-size: 6px; font-weight: 800; letter-spacing: .1em; }
.market-row { width: 100%; min-height: 79px; border: 0; border-bottom: 1px solid var(--border-soft); background: transparent; color: inherit; text-align: left; cursor: pointer; transition: .15s ease; }
.market-row:hover { background: #11161a; }.market-row.selected { background: #101c17; box-shadow: inset 2px 0 var(--green); }
.market-question { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: center; }
.category-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 8px; background: #1a211f; color: var(--green); font-size: 13px; }
.market-question > span:last-child { display: grid; gap: 5px; min-width: 0; }
.market-question strong { overflow: hidden; font-size: 9px; white-space: nowrap; text-overflow: ellipsis; }
.market-tags { display: flex; gap: 5px; }.market-tags i { padding: 3px 5px; border-radius: 4px; background: #18241f; color: #6fc49d; font-size: 6px; font-style: normal; }
.market-cell { display: grid; gap: 3px; }.market-cell strong { font-size: 10px; }.market-cell small { color: #66707b; font-size: 7px; }.positive { color: var(--green)!important; }
.venue-stack { display: flex; gap: 4px; flex-wrap: wrap; }.venue-stack i { padding: 4px 6px; border: 1px solid #2d343c; border-radius: 4px; color: #8f98a3; font-size: 6px; font-style: normal; }
.row-radio { width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid #38414b; border-radius: 50%; }.selected .row-radio { border-color: var(--green); }.selected .row-radio::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.market-loading { height: 79px; display: flex; align-items: center; justify-content: center; gap: 9px; color: #646e79; font-size: 9px; }.market-loading span { width: 12px; height: 12px; border: 2px solid #293038; border-top-color: var(--green); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.market-foot { height: 37px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; color: #66707b; font-size: 7px; }.market-foot span { display: flex; align-items: center; gap: 7px; }.market-foot .status-dot { width: 5px; height: 5px; }

.launch-panel { position: sticky; top: 91px; padding: 18px; border: 1px solid var(--border); border-radius: 12px; background: linear-gradient(155deg, #13171c, #0c0f12); box-shadow: 0 18px 50px rgba(0,0,0,.2); }
.launch-head { display: flex; justify-content: space-between; align-items: flex-start; }
.setup-progress { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; margin: 16px 0; }.setup-progress i { height: 2px; border-radius: 2px; background: #252b32; }.setup-progress i.complete { background: var(--green); }
.selection-summary { display: grid; grid-template-columns: auto 1fr; gap: 10px; padding: 12px; border: 1px solid #2b333a; border-radius: 8px; background: #0c1013; }
.summary-icon { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 7px; background: #17241f; color: var(--green); }
.selection-summary div { min-width: 0; display: grid; gap: 2px; }.selection-summary small, .account-field small { color: #57616c; font-size: 6px; letter-spacing: .1em; }.selection-summary strong { font-size: 10px; }.selection-summary p { margin: 1px 0 0; color: #6f7883; font-size: 7px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.empty-summary { opacity: .7; }.field-label { display: block; margin: 17px 0 7px; color: #77818d; font-size: 8px; }
.account-field { width: 100%; display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 9px; padding: 9px; border: 1px dashed #323943; border-radius: 8px; background: #0b0e11; text-align: left; cursor: pointer; }.mini-avatar { width: 27px; height: 27px; }.account-field > span:nth-child(2) { display: grid; gap: 2px; }.account-field strong { font-size: 9px; }.account-field b { color: #5d6671; }.account-field.connected { border-style: solid; border-color: #28503f; }
.capital-field, .mini-field { display: flex; align-items: center; border: 1px solid #2a3139; border-radius: 8px; background: #090c0f; }.capital-field { height: 43px; padding: 0 11px; }.capital-field span, .mini-field span { color: #68727d; }.capital-field input, .mini-field input { min-width: 0; width: 100%; border: 0; outline: 0; background: transparent; color: white; }.capital-field input { padding: 0 7px; font-size: 16px; font-weight: 650; }.capital-field em { color: #5d6670; font-size: 7px; font-style: normal; }.capital-range { width: 100%; height: 3px; margin: 13px 0 2px; accent-color: var(--green); }.range-labels { display: flex; justify-content: space-between; color: #515a64; font-size: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }.mini-field { height: 35px; padding: 0 9px; }.mini-field input { padding-left: 6px; font-size: 10px; }
.estimate-box { display: grid; gap: 8px; padding: 11px; margin-top: 17px; border: 1px solid var(--border-soft); border-radius: 8px; background: #0a0d10; }.estimate-box div { display: flex; justify-content: space-between; gap: 12px; }.estimate-box span { color: #626c77; font-size: 7px; }.estimate-box strong { max-width: 150px; overflow: hidden; color: #b0b7bf; font-size: 7px; white-space: nowrap; text-overflow: ellipsis; }.green { color: var(--green)!important; }
.deploy-button { width: 100%; height: 42px; display: flex; align-items: center; justify-content: center; gap: 9px; margin-top: 15px; border: 0; border-radius: 8px; background: #e8edef; color: #090b0d; font-size: 10px; font-weight: 800; cursor: pointer; transition: .18s ease; }.deploy-button:not(:disabled):hover { transform: translateY(-1px); background: white; box-shadow: 0 9px 25px rgba(255,255,255,.08); }.deploy-button:disabled { background: #1c2127; color: #555e68; cursor: not-allowed; }.launch-message { min-height: 12px; margin: 8px 0 0; color: #636d78; font-size: 7px; line-height: 1.4; text-align: center; }.launch-message.error { color: var(--red); }

.deployments { margin-top: 58px; scroll-margin-top: 90px; }.deployments-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 14px; }.deployment-summary { display: flex; gap: 17px; color: #717b86; font-size: 8px; }.deployment-summary span { display: flex; align-items: center; gap: 6px; }.deployment-summary b { color: #c7ccd1; }
.empty-state { min-height: 200px; display: grid; place-items: center; align-content: center; gap: 7px; border: 1px dashed #282f37; border-radius: 11px; background: #0a0d10; color: #7b8590; }.empty-rings { width: 49px; height: 49px; display: grid; place-items: center; border: 1px solid #25302c; border-radius: 50%; color: var(--green); background: #0d1713; }.empty-state strong { margin-top: 5px; color: #b9c0c6; font-size: 11px; }.empty-state p { margin: 0; font-size: 8px; }.empty-state button { margin-top: 6px; border: 0; background: transparent; color: var(--green); font-size: 8px; cursor: pointer; }
.bot-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 11px; }.bot-running-card { --accent: var(--green); position: relative; overflow: hidden; padding: 15px; border: 1px solid var(--border); border-radius: 11px; background: linear-gradient(145deg,#11161a,#0b0e11); }.bot-running-card::before { content:""; position:absolute; inset:0 auto 0 0; width:2px; background:var(--accent); }.bot-running-card.yield { --accent:var(--blue); }.bot-running-card.arb { --accent:var(--purple); }.bot-card-head { display:flex; justify-content:space-between; align-items:flex-start; }.bot-identity { display:grid; grid-template-columns:auto 1fr; gap:9px; align-items:center; }.bot-identity .strategy-icon { width:31px; height:31px; }.bot-identity div { display:grid; gap:2px; }.bot-identity strong { font-size:10px; }.bot-identity small { color:#69737e; font-size:7px; }.running-badge { display:flex; align-items:center; gap:5px; color:var(--green); font-size:7px; text-transform:uppercase; }.running-badge.paused,.running-badge.stopped,.running-badge.draft { color:var(--amber); }.bot-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:6px; margin:15px 0; }.bot-metrics div { display:grid; gap:4px; }.bot-metrics small { color:#555f6a; font-size:6px; letter-spacing:.08em; }.bot-metrics strong { font-size:9px; }.bot-card-foot { display:flex; justify-content:space-between; align-items:center; padding-top:11px; border-top:1px solid var(--border-soft); }.bot-card-foot span { color:#58626e; font-size:7px; }.bot-actions { display:flex; gap:5px; }.bot-actions button { padding:6px 8px; border:1px solid #2b333b; border-radius:5px; background:#161b20; color:#9ba3ac; font-size:7px; cursor:pointer; }.bot-actions button:hover { color:white; }.bot-actions .kill { color:var(--red); }
.event-panel { margin-top:12px; overflow:hidden; border:1px solid var(--border); border-radius:11px; background:#0a0d10; }.event-head { display:flex; justify-content:space-between; padding:11px 13px; border-bottom:1px solid var(--border-soft); color:#77818c; font-size:7px; letter-spacing:.1em; }.event-head small { color:#4f5863; letter-spacing:normal; }.event-feed { max-height:330px; overflow:auto; }.event-feed>.quiet { padding:15px; }.event-row { display:grid; grid-template-columns:64px 1fr auto; gap:10px; align-items:center; padding:9px 13px; border-bottom:1px solid var(--border-soft); }.event-row time,.event-row small { color:#5f6974; font-size:7px; }.event-row span { display:grid; gap:3px; min-width:0; }.event-row strong { font-size:7px; letter-spacing:.06em; }.event-row small { overflow:hidden; white-space:nowrap; text-overflow:ellipsis; }.event-row b { color:var(--green); font-size:6px; text-transform:uppercase; }.event-row.warning b { color:var(--amber); }.event-row.error b { color:var(--red); }

.modal { width: min(440px, calc(100% - 28px)); padding: 25px; border: 1px solid #2c343d; border-radius: 14px; background: #11151a; color: white; box-shadow: 0 25px 100px rgba(0,0,0,.7); }.modal::backdrop { background: rgba(2,3,4,.78); backdrop-filter: blur(5px); }.modal-close { position:absolute; top:13px; right:15px; border:0; background:transparent; color:#747e89; font-size:21px; cursor:pointer; }.modal-icon { width:39px; height:39px; display:grid; place-items:center; margin-bottom:14px; border:1px solid #28503f; border-radius:10px; background:#13261e; color:var(--green); }.modal-overline { margin:0 0 6px; color:var(--green); font-size:7px; font-weight:800; letter-spacing:.14em; }.modal h2 { margin:0; font-size:20px; }.modal-copy { color:#7f8995; font-size:9px; line-height:1.6; }.account-options { display:grid; gap:8px; margin:18px 0; }.account-option { width:100%; display:grid; grid-template-columns:auto 1fr auto; gap:10px; align-items:center; padding:12px; border:1px solid #29313a; border-radius:9px; background:#0b0e11; text-align:left; cursor:pointer; }.account-option:hover { border-color:#315744; background:#0e1713; }.account-option > span:nth-child(2) { display:grid; gap:3px; }.account-option strong { font-size:10px; }.account-option small { color:#69737e; font-size:7px; }.account-option b { color:var(--green); font-size:8px; }.modal-security { display:flex; gap:9px; padding:10px; border:1px solid #20372e; border-radius:8px; background:#0e1b16; color:var(--green); }.modal-security p { margin:0; color:#779087; font-size:7px; line-height:1.5; }.modal-security strong { color:#b6cbc2; }
.detail-modal { width:min(720px,calc(100% - 28px)); }.detail-metrics { display:grid; grid-template-columns:repeat(4,1fr); gap:7px; margin:18px 0; }.detail-metrics div { display:grid; gap:5px; padding:11px; border:1px solid var(--border); border-radius:7px; background:#0a0d10; }.detail-metrics small { color:#69737e; font-size:6px; }.detail-metrics strong { font-size:12px; }.detail-section { margin-top:17px; }.detail-section h3 { color:#747e89; font-size:7px; letter-spacing:.12em; }.activity-row { display:grid; grid-template-columns:1fr 1fr auto; gap:10px; padding:9px 0; border-top:1px solid var(--border-soft); font-size:8px; }.activity-row span { color:#7e8893; }.activity-row em { color:var(--green); font-style:normal; text-transform:uppercase; }.decision-code { max-height:180px; overflow:auto; padding:11px; border:1px solid var(--border); border-radius:7px; background:#090b0e; color:#87939f; font-size:7px; white-space:pre-wrap; }.quiet { color:#6b7580; font-size:8px; }
.toast { position:fixed; right:24px; bottom:24px; max-width:330px; padding:12px 15px; border:1px solid #2a4b3d; border-radius:8px; background:#102219; color:#c6dacf; font-size:9px; opacity:0; transform:translateY(10px); pointer-events:none; transition:.2s ease; z-index:50; }.toast.visible { opacity:1; transform:none; }.toast.error { border-color:#543034; background:#251316; color:#f2b3b7; }

/* Guided workspace: generous typography, colorful presets, progressive controls. */
body { background: radial-gradient(ellipse at 85% 0, #20233b 0, transparent 42%), #0b0e14; }
.page { max-width: 1680px; padding: 40px 44px 80px; margin: auto; }
.sidebar { background: #0c1018; }
.sidebar nav a { font-size: 13px; min-height: 46px; }
.sidebar nav p { font-size: 10px; }
.sidebar .beta, .icon-button { display: none; }
.hero { min-height: 255px; }
.hero h1 { font-size: clamp(42px, 4.4vw, 72px); line-height: 1.04; letter-spacing: -.055em; }
.hero h1 em { color: #c3b0ff; }
.hero p { max-width: 590px; font-size: 16px; line-height: 1.65; color: #a6afc0; }
.overline { font-size: 11px; letter-spacing: .12em; }
.hero-orbit { transform: scale(1.15); }
.safety-banner { margin: 24px 0 12px; padding: 16px 20px; background: #12221d; border-color: #284639; border-radius: 14px; }
.safety-banner strong { font-size: 12px; }.safety-banner p { font-size: 12px; line-height: 1.5; }
.safe-badge { font-size: 10px; }
summary { cursor: pointer; color: #b3bed0; font-size: 13px; padding: 16px 0; }
summary:hover { color: white; } details[open] > summary { margin-bottom: 12px; }
.diagnostics { margin-bottom: 28px; }.diagnostics > summary { padding: 8px 2px; font-size: 12px; color: #929fb4; }
.ops-console { margin: 0; }.ops-stat small { font-size: 10px; }.ops-stat strong { font-size: 13px; }.provider-pill { font-size: 10px; }
.section-heading { margin-bottom: 20px; }.section-heading h2, .launch-head h2, .deployments-heading h2 { font-size: 24px; letter-spacing: -.04em; }.section-heading p, .launch-head p, .deployments-heading p { font-size: 10px; letter-spacing: .12em; }
.section-heading > span { font-size: 12px; color: #9aa6ba; }.step-number { width: 34px; height: 34px; font-size: 12px; border-radius: 10px; }
.preset-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.preset-card { --tile: #c4f2ba; position: relative; text-align: left; display: flex; flex-direction: column; align-items: flex-start; min-height: 236px; padding: 26px; border: 2px solid transparent; border-radius: 22px; color: #172519; background: var(--tile); cursor: pointer; transition: transform .18s, box-shadow .18s; overflow: hidden; }
.preset-card:nth-child(2) { --tile: #cfc2ff; color: #28203d; }.preset-card:nth-child(3) { --tile: #ffcbac; color: #3d281e; }
.preset-card:hover { transform: translateY(-4px); }.preset-card.selected { border-color: white; box-shadow: 0 0 0 4px #ffffff20, 0 18px 45px #0003; }
.preset-card.selected::after { content: '✓'; position: absolute; top: 17px; right: 17px; border-radius: 50%; background: #172219; color: white; width: 25px; height: 25px; display: grid; place-items: center; }
.preset-symbol { position: absolute; right: 25px; bottom: 55px; font-size: 95px; opacity: .14; line-height: 1; }
.preset-card small { font-size: 10px; letter-spacing: .1em; font-weight: 750; opacity: .7; }
.preset-card strong { font-size: clamp(22px, 2.1vw, 32px); letter-spacing: -.055em; margin-top: 21px; }
.preset-card p { max-width: 230px; font-size: 14px; line-height: 1.5; margin: 10px 0 26px; }
.preset-bottom { display: flex; justify-content: space-between; width: 100%; border-top: 1px solid #0002; padding-top: 13px; margin-top: auto; font-size: 12px; font-weight: 600; }.preset-bottom b { font-size: 20px; }
.preset-explainer { font-size: 13px; line-height: 1.7; padding: 18px 2px 25px; color: #acb7c9; }
.builder { grid-template-columns: minmax(0, 1fr) 350px; gap: 28px; align-items: start; }
.builder-main { min-width: 0; }.customize { border-bottom: 1px solid #2a3242; margin-bottom: 25px; }.customize summary { display: flex; justify-content: space-between; gap: 12px; }.customize summary span { color: #c4b1ff; font-size: 12px; }.customize[open] { padding-bottom: 20px; }
.market-heading { margin-top: 0; }.refresh-button { font-size: 12px; }
.selection-mode { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; }
.selection-mode button { padding: 12px 16px; border: 1px solid #47536a; border-radius: 10px; background: #171e2c; color: #bec8db; cursor: pointer; font-size: 13px; }
.selection-mode button[aria-pressed="true"] { background: #d1c2ff; color: #211a36; border-color: #d1c2ff; }
.auto-selection-status { margin-bottom: 18px; padding: 16px; background: #1a2230; border: 1px solid #37465c; border-radius: 12px; font-size: 13px; line-height: 1.6; color: #c0ccdf; overflow-wrap: anywhere; }
.market-types { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 26px; }
.market-types button, .balance-options button { border: 1px solid #30394b; border-radius: 999px; padding: 10px 15px; background: #141b27; color: #aeb9cb; font-size: 13px; cursor: pointer; }
.market-types button span { margin-right: 8px; }.market-types button.active { color: #10151e; background: #e6ebf4; border-color: #e6ebf4; }
.recommendation-heading { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 15px; }.recommendation-heading h3 { font-size: 16px; margin: 0; }.recommendation-heading > span { max-width: 210px; font-size: 11px; color: #9eabc0; text-align: right; }
.recommended-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.recommendation-card { display: flex; flex-direction: column; min-height: 255px; padding: 20px; border: 1px solid #30394b; border-radius: 18px; background: linear-gradient(145deg, #1b2332, #111721); text-align: left; cursor: pointer; transition: .18s; }
.recommendation-card:hover { border-color: #b1a0e6; transform: translateY(-2px); }.recommendation-card.selected { border-color: #c3b0ff; background: linear-gradient(145deg, #2e2841, #181d2c); box-shadow: inset 0 0 0 1px #c3b0ff; }
.recommendation-top { display: flex; justify-content: space-between; gap: 10px; font-size: 10px; color: #b4bfd1; }.recommendation-top i { font-style: normal; color: #c8b9f7; }
.recommendation-card > strong { font-size: 16px; line-height: 1.5; letter-spacing: -.015em; margin: 17px 0 20px; }
.probability { display: flex; align-items: baseline; gap: 9px; margin-top: auto; }.probability b { color: #cdf2be; font-size: 34px; letter-spacing: -.05em; }.probability > span { font-size: 10px; color: #a3afc1; }.probability .market-arrow { margin-left: auto; font-size: 25px; color: #c8b9f7; }
.recommendation-bottom { display: flex; flex-direction: column; gap: 6px; font-size: 10px; color: #a7b3c5; border-top: 1px solid #313b4c; padding-top: 12px; margin-top: 15px; }
.recommendation-note { font-size: 11px; line-height: 1.65; color: #99a6bb; margin: 15px 2px; }.recommendation-empty { grid-column: 1 / -1; border: 1px dashed #45516b; border-radius: 18px; padding: 35px; background: #151b27; }.recommendation-empty p { color: #a6b2c5; font-size: 14px; line-height: 1.6; }
.market-browser { margin-top: 10px; }.market-list { max-height: 500px; overflow-y: auto; }.market-list-head, .market-row { grid-template-columns: minmax(140px, 2fr) .7fr .8fr 22px; }.market-row > :nth-child(4), .market-row > :nth-child(5), .market-list-head > :nth-child(4), .market-list-head > :nth-child(5) { display: none; }.market-question strong { white-space: normal; font-size: 12px; }.market-cell strong { font-size: 12px; }.market-cell small, .market-tags i { font-size: 9px; }.market-list-head { font-size: 9px; }.market-foot { height: auto; padding: 12px; gap: 10px; font-size: 10px; flex-wrap: wrap; }.market-loading { font-size: 13px; }
.search { height: 40px; }.search input { font-size: 12px; }.filters button { font-size: 10px; }
.launch-panel { padding: 25px; top: 90px; background: linear-gradient(155deg, #252b3c, #141b28); border: 1px solid #3c455b; border-radius: 22px; }
.launch-head h2 { font-size: 22px; }.paper-tag { font-size: 10px; }.setup-progress { margin: 22px 0; }.selection-summary { padding: 16px; background: #121925; border-color: #384156; }.selection-summary small, .account-field small { font-size: 9px; }.selection-summary strong { font-size: 15px; }.selection-summary p { font-size: 11px; white-space: normal; line-height: 1.5; }.summary-icon { width: 36px; height: 36px; }
.field-label { font-size: 12px; margin-top: 22px; color: #b1bed0; }.account-field { padding: 13px; }.account-field strong { font-size: 12px; }.capital-field { height: 58px; }.capital-field input { font-size: 26px; }.capital-field em { font-size: 11px; }.range-labels { font-size: 10px; }.balance-options { display: flex; gap: 8px; margin-top: 18px; }.balance-options button { flex: 1; font-size: 12px; padding: 9px; }.balance-options button:hover { border-color: #c4b1ff; }.risk-options { margin-top: 10px; }.mini-field input { font-size: 14px; }.mini-field { height: 42px; }
.estimate-box { padding: 15px; gap: 12px; }.estimate-box span, .estimate-box strong { font-size: 11px; }.estimate-box strong { max-width: 170px; white-space: normal; text-align: right; }.deploy-button { height: 52px; font-size: 14px; border-radius: 12px; background: #cfbfff; }.deploy-button:not(:disabled):hover { background: #e0d5ff; }.launch-message { font-size: 11px; line-height: 1.6; margin-top: 12px; }
.strategy-copy strong { font-size: 15px; }.strategy-copy small, .strategy-copy p { font-size: 11px; }.strategy-copy p { min-height: 65px; }.strategy-stats small { font-size: 9px; }.strategy-stats b { font-size: 10px; }.risk-label { display: none; }
.deployment-summary, .empty-state p, .empty-state button { font-size: 13px; }.empty-state { padding: 30px; }.empty-state strong { font-size: 17px; }.bot-running-card { padding: 22px; border-radius: 18px; }.bot-identity strong { font-size: 15px; }.bot-identity small, .running-badge, .bot-card-foot span, .bot-actions button { font-size: 11px; }.bot-metrics small { font-size: 10px; }.bot-metrics strong { font-size: 13px; }.bot-actions { flex-wrap: wrap; }.bot-card-foot { gap: 12px; flex-wrap: wrap; }.event-head, .event-row time, .event-row small, .event-row strong, .event-row b { font-size: 10px; }
.modal-copy, .account-option strong { font-size: 14px; }.account-option small, .account-option b, .modal-security p, .quiet { font-size: 11px; }.toast { font-size: 13px; max-width: 450px; }.account-button small { font-size: 10px; }.account-button strong { font-size: 12px; }
button:focus-visible, summary:focus-visible, a:focus-visible, input:focus-visible { outline: 3px solid #c5b3ff; outline-offset: 4px; }
[hidden] { display: none !important; }
@media (min-width: 1650px) { .recommended-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1250px) { .page { padding: 30px 26px 60px; }.builder { grid-template-columns: minmax(0, 1fr) 310px; gap: 20px; }.preset-card { padding: 20px; }.launch-panel { padding: 20px; }.market-toolbar { flex-wrap: wrap; } }
@media (max-width: 1100px) {
  .builder { grid-template-columns: 1fr; }
  .launch-panel { position: static; }
  .strategy-selector { grid-template-columns: repeat(3, minmax(200px,1fr)); overflow-x: auto; padding-bottom: 5px; }
  .hero-orbit { opacity: .45; }
  .ops-console { grid-template-columns:repeat(3,1fr); }.provider-health { grid-column:span 3; }
}
@media (max-width: 780px) {
  :root { --sidebar: 0px; }
  .app-shell { display:block; }.sidebar { display:none; }.topbar { height:62px; justify-content:space-between; padding:0 16px; }.mobile-brand { display:flex; }.mobile-brand .brand-glyph { width:26px; height:26px; }.network-chip,.icon-button { display:none; }.account-button { min-width:160px; }
  .page { padding:30px 16px 60px; }.hero { min-height:260px; grid-template-columns:1fr; }.hero-orbit { display:none; }.hero h1 { font-size:38px; }.safe-badge { display:none; }.safety-banner { grid-template-columns:auto 1fr; }
  .market-toolbar { align-items:stretch; flex-direction:column; }.search { width:100%; }.filters { overflow:auto; }.market-list-head { display:none; }.market-row { grid-template-columns:1fr auto; padding:13px; }.market-row > :not(.market-question):not(.row-radio) { display:none; }
  .bot-grid { grid-template-columns:1fr; }.deployments-heading { align-items:flex-start; gap:12px; flex-direction:column; }.bot-metrics { grid-template-columns:1fr 1fr; }.detail-metrics { grid-template-columns:1fr 1fr; }.activity-row { grid-template-columns:1fr; }
  .ops-console { grid-template-columns:1fr 1fr; }.provider-health { grid-column:span 2; }.event-row { grid-template-columns:52px 1fr; }.event-row b { display:none; }
}
@media (max-width: 780px) {
  .preset-grid { grid-template-columns: 1fr; gap: 12px; }.preset-card { min-height: 180px; padding: 22px; }.preset-card strong { font-size: 27px; margin-top: 12px; }.preset-card p { margin-bottom: 18px; max-width: 85%; }.hero { min-height: 210px; }.hero h1 { font-size: 49px; }.hero p { font-size: 15px; }.recommendation-heading { align-items: flex-start; flex-direction: column; gap: 7px; }.recommendation-heading > span { text-align: left; max-width: none; }.section-heading > span { display: none; }.recommended-grid { grid-template-columns: 1fr; }.recommendation-card { min-height: 220px; }.market-types { gap: 7px; }.market-types button { font-size: 12px; padding: 9px 12px; }.customize summary { flex-wrap: wrap; }.launch-panel { margin-top: 12px; }.section-heading h2 { font-size: 23px; }.market-row { grid-template-columns: 1fr auto; }.strategy-selector { grid-template-columns: 1fr; }.strategy-card { min-height: 200px; }.safety-banner { padding: 15px; }.bot-metrics { gap: 15px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* Keep the actual setup close to the top, with optional detail collapsed. */
.hero { min-height: 155px; grid-template-columns: 1fr; }.hero-orbit { display: none; }
.hero h1 { font-size: clamp(30px, 3vw, 44px); }.hero h1 br { display: none; }.hero h1 em { margin-left: .2em; }
.hero > div > p { margin-top: 12px; font-size: 15px; }.overline { margin-bottom: 12px; }
.preset-card { min-height: 175px; padding: 20px; }.preset-card strong { margin-top: 12px; font-size: 25px; }.preset-card p { margin: 8px 0 15px; }.preset-symbol { font-size: 65px; bottom: 35px; }
.builder { margin-top: 12px; }.preset-explainer { padding-bottom: 10px; }
.connection-readiness { margin: 0 0 18px; }.connection-readiness summary { padding: 8px 0; }
#connectionReadiness { padding: 12px 18px; background: #141c29; border-radius: 12px; font-size: 12px; line-height: 1.7; color: #aebbd0; }
.kairos-connection { margin: 18px 0; padding: 16px; border: 1px solid #41495c; border-radius: 12px; }.kairos-connection strong { font-size: 14px; }.kairos-connection p { font-size: 12px; line-height: 1.7; color: #b0bacb; }.kairos-connection a { color: #cfbdff; font-size: 13px; }
.kairos-header-button { padding: 10px 13px; border: 1px solid #77639f; border-radius: 9px; background: #261e36; color: #ddcaff; font-size: 12px; cursor: pointer; }
.kairos-modal { width: min(440px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 30px; border-radius: 20px; background: #141923; }
.kairos-modal h2 { font-size: 25px; letter-spacing: -.035em; margin-top: 10px; }.kairos-modal .modal-copy { font-size: 13px; margin: 10px 0 24px; color: #a6b1c3; }
#kairosForm { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; margin: 0; }
.kairos-field { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
#kairosForm label { color: #d4dbe6; font-size: 13px; font-weight: 600; }
#kairosForm input { display: block; width: 100%; min-width: 0; height: 46px; padding: 0 13px; margin: 0; border: 1px solid #3c475b; border-radius: 9px; background: #0d131e; color: white; font-size: 16px; }
#kairosForm input::placeholder { color: #758198; } #kairosForm input:focus-visible { outline: 2px solid #bba3fa; outline-offset: 2px; }
.kairos-note { margin: 0; font-size: 12px; line-height: 1.6; color: #a8b2c4; } #kairosForm .deploy-button { margin: 0; height: 46px; }
.kairos-key-link { display: block; margin-top: 20px; text-align: center; font-size: 12px; color: #c4b4f4; text-decoration: none; }
#kairosVerifyStatus { padding: 12px; margin: 16px 0 0; font-size: 12px; line-height: 1.6; border: 1px solid #414d64; border-radius: 8px; background: #1c2433; }
.account-modal { max-height: calc(100dvh - 32px); overflow-y: auto; }
@media(max-width: 420px) { .topbar { padding: 0 10px; }.topbar-actions { gap: 5px; }.topbar .account-button { min-width: 0; width: 120px; }.mobile-brand { font-size: 0; gap: 0; }.kairos-header-button { max-width: 130px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: 9px; font-size: 11px; } }
.research-details { border-top: 1px solid #30384a; }.research-details > summary { font-size: 15px; }
.saved-connection { margin: 22px 0 30px; padding: 22px; border: 1px solid #465273; background: #192232; border-radius: 16px; }
.saved-connection-head { display: flex; justify-content: space-between; gap: 15px; }.saved-connection-head strong { font-size: 17px; }.saved-connection-head p { font-size: 12px; color: #a9b5c8; }
.kairos-account-checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 15px 0; }.kairos-account-checks > div { display: grid; gap: 7px; padding: 14px; border: 1px solid #394960; border-radius: 10px; background: #101923; }.kairos-account-checks strong { font-size: 13px; text-transform: capitalize; }.kairos-account-checks span { font-size: 12px; color: #d2c0ff; }.kairos-account-checks small { font-size: 11px; color: #a9b5c8; line-height: 1.6; }
.connection-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }.connection-actions button { border: 1px solid #53647e; border-radius: 8px; padding: 9px 12px; background: #212c40; font-size: 12px; cursor: pointer; }
.account-button { grid-template-columns: 27px minmax(0, 1fr) auto; }.account-button > span:nth-child(2) { min-width: 0; overflow: hidden; }
@media(max-width: 420px) { .topbar .mobile-brand { font-size: 0; gap: 0; flex: 0 0 26px; }.topbar-actions { min-width: 0; gap: 5px; }.topbar .account-button { width: 115px; min-width: 0; }.topbar .kairos-header-button { max-width: 120px; min-width: 0; } }
@media(max-width: 780px) {
  .hero { min-height: 150px; }.hero h1 { font-size: 31px; }.hero h1 br { display: initial; }.hero h1 em { margin-left: 0; }
  .preset-card { min-height: 110px; padding: 16px 20px; }.preset-card strong { font-size: 22px; margin-top: 6px; }.preset-card p { font-size: 12px; margin-bottom: 0; }.preset-bottom { display: none; }.preset-symbol { bottom: 14px; }.preset-card.selected::after { top: 10px; right: 10px; }
  .recommendation-card { min-height: 190px; }.recommended-grid { max-height: 620px; overflow-y: auto; padding: 3px; overscroll-behavior: contain; }.recommendation-card > strong { margin: 12px 0; }
}
.kairos-feed-report { margin: 18px 0; padding: 14px; border: 1px solid var(--border, #303843); border-radius: 12px; }
.kairos-feed-report summary { cursor: pointer; font-size: 14px; overflow-wrap: anywhere; }
.feed-table-wrap { max-width: 100%; overflow-x: auto; }
.kairos-feed-report table { width: 100%; font-size: 12px; border-collapse: collapse; }
.kairos-feed-report th, .kairos-feed-report td { text-align: left; padding: 8px 10px 8px 0; white-space: nowrap; }
