:root { color-scheme: dark; font-family: Inter, Segoe UI, Arial, sans-serif; letter-spacing: 0; background: #071015; color: #eff6f5; --line: #26363d; --muted: #9bb0b5; --cyan: #29c5e7; --lime: #b7ec37; --panel: #101b20; }
:root[data-theme="light"] { color-scheme: light; background: #f5f7f6; color: #122026; --line: #cbd7da; --muted: #52666d; --cyan: #007f9c; --lime: #6f9500; --panel: #ffffff; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; background: #071015; color: #eff6f5; }
:root[data-theme="light"] body { background: #f5f7f6; color: #122026; }
button, input, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
.topbar { position: sticky; z-index: 5; top: 0; display: grid; grid-template-columns: auto auto 1fr auto; align-items: center; min-height: 64px; padding: 0 28px; border-bottom: 1px solid var(--line); background: rgba(7,16,21,.96); }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; }
.brand span { display: grid; width: 30px; height: 30px; place-items: center; border: 2px solid var(--cyan); color: var(--lime); font-weight: 800; }
.brand strong { font-size: 14px; }
.mode { display: flex; align-items: center; gap: 7px; margin-left: 22px; color: var(--muted); font-size: 12px; font-weight: 700; }
.mode span { width: 7px; height: 7px; background: var(--lime); box-shadow: 0 0 10px rgba(183,236,55,.7); }
nav { display: flex; justify-content: center; gap: 4px; }
nav button, .segmented button { border: 0; border-bottom: 2px solid transparent; padding: 12px 14px; background: transparent; color: var(--muted); cursor: pointer; }
nav button.active, nav button:hover, .segmented button.active { border-color: var(--cyan); color: #fff; }
.icon-button { display: grid; width: 40px; height: 40px; place-items: center; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.topbar > button, .section-heading > button { min-height: 38px; padding: 0 14px; border: 1px solid var(--line); background: transparent; color: #fff; cursor: pointer; }
.display-controls { display: flex; gap: 6px; }
.display-controls button { min-width: 44px; min-height: 38px; border: 1px solid var(--line); background: transparent; color: inherit; cursor: pointer; }
:root[data-theme="light"] .topbar { background: rgba(255,255,255,.96); }
:root[data-theme="light"] .brand, :root[data-theme="light"] nav button.active, :root[data-theme="light"] nav button:hover { color: #122026; }
:root[data-theme="light"] input { background: #fff; color: #122026; }
.disclosure { display: flex; justify-content: center; gap: 12px; padding: 9px 20px; border-bottom: 1px solid #34411b; background: #18220d; color: #dff3aa; font-size: 13px; }
main { width: min(1180px, calc(100% - 40px)); margin: 0 auto; }
.access { display: grid; grid-template-columns: minmax(0,1fr) 420px; gap: 72px; align-items: center; min-height: calc(100vh - 104px); padding: 56px 0 90px; }
.eyebrow { margin: 0 0 10px; color: var(--cyan); font-size: 12px; font-weight: 800; text-transform: uppercase; }
h1 { max-width: 720px; margin: 0; font-size: clamp(38px, 5vw, 68px); line-height: 1.02; }
.access > div > p:last-child { max-width: 640px; color: var(--muted); font-size: 17px; line-height: 1.7; }
form { display: grid; gap: 16px; padding: 28px; border: 1px solid var(--line); background: var(--panel); }
.segmented { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--line); }
label { display: grid; gap: 7px; color: #dce8e8; font-size: 13px; font-weight: 700; }
input { min-width: 0; height: 44px; border: 1px solid #37505a; border-radius: 0; padding: 0 12px; background: #081216; color: #fff; }
input:focus { outline: 2px solid var(--cyan); outline-offset: 1px; }
.check { grid-template-columns: 20px 1fr; align-items: start; color: var(--muted); line-height: 1.5; }
.check input { width: 18px; height: 18px; margin: 1px 0 0; }
.primary { min-height: 44px; border: 0; background: var(--lime); color: #071015; font-weight: 800; cursor: pointer; }
.primary:hover { background: #c9f45e; }
.error { min-height: 20px; margin: 0; color: #ff8d8d; font-size: 13px; }
.workspace { padding: 34px 0 80px; }
.summary-band { display: grid; grid-template-columns: 2fr repeat(3,1fr); margin-bottom: 48px; border-block: 1px solid var(--line); }
.summary-band > div { display: grid; gap: 5px; min-height: 112px; align-content: center; padding: 18px 24px; border-right: 1px solid var(--line); }
.summary-band > div:last-child { border-right: 0; }
.summary-band strong { font-size: 26px; }
.summary-band span { color: var(--muted); font-size: 12px; }
.section-heading { display: flex; align-items: end; justify-content: space-between; margin-bottom: 20px; }
h2 { margin: 0; font-size: 25px; }
.market-list { display: grid; gap: 0; border-top: 1px solid var(--line); }
.market { display: grid; grid-template-columns: minmax(0,1fr) 120px 260px; gap: 20px; align-items: center; min-height: 150px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.market h3 { margin: 5px 0 8px; font-size: 19px; }
.market p { margin: 0; color: var(--muted); line-height: 1.5; }
.badges { display: flex; flex-wrap: wrap; gap: 7px; }
.badge { border: 1px solid #38515b; padding: 4px 7px; color: #bcd0d4; font-size: 10px; font-weight: 800; }
.probability { text-align: right; }
.probability strong { display: block; font-size: 30px; }
.probability span { color: var(--muted); font-size: 11px; }
.order-form { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.order-form input { grid-column: 1 / -1; }
.order-form button { min-height: 38px; border: 1px solid var(--cyan); background: transparent; color: #eafcff; cursor: pointer; }
.order-form button:hover { background: #102d34; }
.table-wrap { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; min-width: 720px; }
th, td { padding: 14px 12px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
th { color: var(--muted); font-size: 11px; text-transform: uppercase; }
td button { border: 1px solid #53636a; background: transparent; color: #fff; cursor: pointer; }
.support { display: flex; justify-content: space-between; gap: 24px; align-items: center; margin-top: 64px; padding: 26px 0; border-block: 1px solid var(--line); }
.support p { margin: 6px 0 0; color: var(--muted); }
.support a { color: var(--cyan); }
.toast { position: fixed; right: 20px; bottom: 20px; max-width: 360px; border-left: 3px solid var(--cyan); padding: 14px 18px; background: #18262c; opacity: 0; transform: translateY(10px); pointer-events: none; }
.toast.show { opacity: 1; transform: translateY(0); transition: opacity .18s ease, transform .18s ease; }
.not-found { display: grid; align-content: center; min-height: 100vh; max-width: 680px; margin: 0 auto; padding: 32px; }
.not-found h1 { margin: 4px 0 10px; font-size: clamp(34px, 7vw, 64px); }
.not-found a { width: fit-content; margin-top: 18px; color: var(--cyan); }
[hidden] { display: none !important; }
@media (max-width: 760px) {
  .topbar { grid-template-columns: 1fr auto auto; padding: 0 14px; }
  .brand strong, nav { display: none; }
  .display-controls #logout { display: none; }
  .mode { margin-left: 0; }
  .disclosure { display: grid; gap: 2px; justify-content: start; padding-inline: 14px; }
  main { width: min(100% - 28px, 1180px); }
  .access { grid-template-columns: 1fr; gap: 30px; padding-top: 42px; }
  h1 { font-size: 40px; }
  form { padding: 20px; }
  .summary-band { grid-template-columns: 1fr 1fr; }
  .summary-band > div { border-bottom: 1px solid var(--line); }
  .market { grid-template-columns: 1fr; gap: 14px; }
  .probability { text-align: left; }
  .support { align-items: start; flex-direction: column; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
