:root {
  --ink: #18221f;
  --muted: #71807a;
  --line: #d9e1dc;
  --paper: #f5f7f2;
  --panel: #ffffff;
  --mint: #c5f36b;
  --mint-dark: #8bc23f;
  --orange: #e9724c;
  --blue: #4978d5;
  --shadow: 0 16px 50px rgba(31, 51, 42, 0.08);
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; color: var(--ink); background: var(--paper); font-family: "Space Grotesk", sans-serif; }
body::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35; background-image: linear-gradient(rgba(24, 34, 31, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(24, 34, 31, .035) 1px, transparent 1px); background-size: 40px 40px; mask-image: linear-gradient(to bottom, black, transparent 72%); }
.page-shell { position: relative; width: min(1160px, calc(100% - 48px)); margin: 0 auto; padding: 28px 0 34px; }
.topbar, .footer { display: flex; align-items: center; justify-content: space-between; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--ink); font: 600 11px/1 "DM Mono", monospace; letter-spacing: .11em; text-decoration: none; }
.brand-mark { display: grid; place-items: center; width: 42px; height: 42px; border: 1px solid var(--ink); border-radius: 50%; font: 600 15px/1 "DM Mono", monospace; letter-spacing: -.12em; }
.brand-mark span { color: var(--orange); }
.status { color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .1em; }
.status i { display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--mint-dark); box-shadow: 0 0 0 4px rgba(139, 194, 63, .14); }
.hero { max-width: 740px; padding: 96px 0 66px; }
.eyebrow, .panel-kicker { margin: 0 0 19px; color: var(--orange); font: 500 11px/1 "DM Mono", monospace; letter-spacing: .14em; }
h1 { margin: 0; font-size: clamp(46px, 6.5vw, 78px); line-height: .98; letter-spacing: -.06em; font-weight: 600; }
h1 em { color: var(--orange); font-style: normal; }
.intro { max-width: 430px; margin: 25px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.workspace { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 20px; align-items: stretch; }
.panel { border: 1px solid var(--line); border-radius: 4px; background: rgba(255,255,255,.85); box-shadow: var(--shadow); }
.input-panel, .result-panel { padding: 34px; }
.result-panel { display: flex; flex-direction: column; background: var(--ink); color: white; border-color: var(--ink); }
.panel-heading { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 35px; }
.panel-kicker { margin-bottom: 8px; font-size: 10px; }
h2 { margin: 0; font-size: 24px; line-height: 1.1; letter-spacing: -.04em; }
.unit-tag, .result-badge { padding: 7px 9px; border-radius: 2px; background: #edf1eb; color: var(--muted); font: 500 10px/1 "DM Mono", monospace; letter-spacing: .08em; }
.result-badge { background: rgba(197,243,107,.14); color: var(--mint); }
.field-group { margin-bottom: 20px; }
.field-group label { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 9px; color: var(--ink); font-size: 12px; font-weight: 600; }
.field-group label span { color: var(--muted); font: 10px/1 "DM Mono", monospace; font-weight: 400; }
.input-wrap { position: relative; }
.input-wrap input { width: 100%; height: 47px; padding: 0 37px 0 14px; border: 1px solid var(--line); border-radius: 2px; outline: none; color: var(--ink); background: #fbfcfa; font: 500 16px "DM Mono", monospace; transition: border-color .2s, box-shadow .2s, background .2s; }
.input-wrap input:focus { border-color: var(--mint-dark); background: white; box-shadow: 0 0 0 3px rgba(139,194,63,.15); }
.input-wrap input::placeholder { color: #b9c2bc; }
.input-wrap span { position: absolute; right: 14px; top: 50%; color: var(--muted); transform: translateY(-50%); font: 12px "DM Mono", monospace; }
.field-divider { display: flex; align-items: center; gap: 12px; margin: 27px 0 20px; color: var(--muted); font: 10px "DM Mono", monospace; letter-spacing: .08em; }
.field-divider::after { content: ""; height: 1px; flex: 1; background: var(--line); }
.levels-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.full-width { grid-column: 1 / -1; }
.calculate-button { display: flex; align-items: center; justify-content: space-between; width: 100%; height: 52px; margin-top: 8px; padding: 0 15px 0 18px; border: 0; border-radius: 2px; cursor: pointer; background: var(--mint); color: var(--ink); font: 600 13px "Space Grotesk", sans-serif; transition: transform .2s, background .2s; }
.calculate-button:hover { background: #d2fa82; transform: translateY(-2px); }
.button-arrow { font-size: 22px; font-weight: 400; }
.reset-button { display: block; width: 100%; margin-top: 16px; border: 0; background: transparent; color: var(--muted); cursor: pointer; font: 10px "DM Mono", monospace; letter-spacing: .05em; }
.reset-button:hover { color: var(--ink); }
.result-heading { margin-bottom: 31px; }
.result-heading .panel-kicker { color: var(--mint); }
.result-list { display: grid; gap: 12px; }
.result-row { display: grid; grid-template-columns: minmax(120px, 1fr) auto; align-items: center; padding: 18px 0 16px; border-bottom: 1px solid rgba(255,255,255,.13); }
.result-label { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 500; }
.signal-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); }
.signal-dot.put { background: var(--blue); }
.signal-dot.gamma { background: var(--orange); }
.signal-dot.neutral { background: #68776f; }
.result-row strong { color: var(--mint); font: 500 25px/1 "DM Mono", monospace; letter-spacing: -.06em; }
.result-row small { grid-column: 1 / -1; margin: 9px 0 0 17px; color: #86958d; font: 10px "DM Mono", monospace; }
.muted-row { display: block; color: #98a49e; border-bottom: 0; text-align: center; padding: 48px 0; }
.muted-row .result-label { justify-content: center; }
.muted-row strong, .muted-row small { display: block; margin: 14px 0 0; }
.muted-row strong { color: #68776f; font-size: 22px; }
.formula-note { display: flex; gap: 14px; align-items: flex-start; margin-top: auto; padding-top: 30px; color: #a0ada6; font: 10px/1.7 "DM Mono", monospace; }
.formula-note p { margin: 0; }
.formula-note strong { color: white; font-family: "Space Grotesk", sans-serif; font-size: 11px; font-weight: 500; }
.formula-symbol { display: grid; flex: 0 0 27px; place-items: center; width: 27px; height: 27px; border: 1px solid #53635b; color: var(--mint); font: italic 15px Georgia, serif; }
.footer { padding-top: 28px; color: #9aa69f; font: 10px "DM Mono", monospace; letter-spacing: .04em; }
.footer span:last-child { color: #b2bdb6; }
@media (max-width: 760px) { .page-shell { width: min(100% - 32px, 560px); padding-top: 18px; } .hero { padding: 74px 0 44px; } h1 { font-size: clamp(43px, 13vw, 68px); } .workspace { grid-template-columns: 1fr; } .input-panel, .result-panel { padding: 26px 22px; } .result-panel { min-height: 400px; } .footer { align-items: flex-start; flex-direction: column; gap: 10px; padding-bottom: 10px; } }
@media (max-width: 420px) { .levels-grid { grid-template-columns: 1fr; } .full-width { grid-column: auto; } .status { display: none; } }
