/* =============================================================================
   OPTIONS TERMINAL
   ========================================================================== */
html, body.app { height: 100%; }
body.app { display: flex; flex-direction: column; background: var(--bg); overflow: hidden; }

/* ---------- top bar ---------- */
.app-nav {
  flex: none; height: 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 0 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(8,10,17,0.9); backdrop-filter: blur(10px);
  z-index: 40;
}
.app-nav .brand-name { font-size: 16px; }
.term-tag { font-size: 9.5px; letter-spacing: 0.18em; color: var(--accent);
  border: 1px solid var(--accent-line); border-radius: var(--r-xs); padding: 2px 6px; margin-left: 8px; }
.app-nav-left { display: flex; align-items: center; gap: 16px; }
.app-pool-link { font-size: 12.5px; color: var(--text-2); letter-spacing: .02em; transition: color .15s; }
.app-pool-link:hover { color: var(--accent); }
.app-nav-mid { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--text-3); }
.app-nav-right { display: flex; align-items: center; gap: 12px; }
.app-net { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; color: var(--text-2);
  height: 34px; padding: 0 12px; border: 1px solid var(--line); border-radius: var(--r-pill); }
.net-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
/* network switch (mainnet / testnet) */
.net-switch { display: inline-flex; align-items: center; height: 34px; padding: 3px;
  border: 1px solid var(--line); border-radius: var(--r-pill); gap: 2px; }
.net-opt { appearance: none; border: 0; background: transparent; cursor: pointer;
  font: inherit; font-size: 11.5px; letter-spacing: .02em; color: var(--text-3);
  height: 26px; padding: 0 11px; border-radius: var(--r-pill); transition: background .15s, color .15s; }
.net-opt:hover:not(:disabled) { color: var(--text); }
.net-opt:disabled { opacity: .38; cursor: not-allowed; }
.net-opt.active[data-net="mainnet"] { background: var(--accent); color: var(--accent-ink); box-shadow: 0 0 10px var(--accent-glow); }
.net-opt.active[data-net="testnet"] { background: rgba(255,255,255,0.08); color: var(--text); }
.feed-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--text-4); }
.feed-dot.live { background: var(--up); box-shadow: 0 0 8px var(--up); }
.feed-dot.sim { background: var(--accent); box-shadow: 0 0 8px var(--accent-glow); }
#connectBtn.connected { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--line-2); box-shadow: none; }

/* ---------- body grid ---------- */
.app-body {
  flex: 1 1 auto; min-height: 0; min-width: 0;
  display: grid; grid-template-columns: 376px minmax(0, 1fr) 232px;
  grid-auto-rows: minmax(0, auto);
  gap: 1px; background: var(--line);
}
.rail { order: 3; }
.chain-panel { order: 2; }
.ticket-panel { order: 1; }
.rail, .chain-panel, .ticket-panel { background: var(--bg); min-height: 0; min-width: 0; display: flex; flex-direction: column; }

/* ---------- rail ---------- */
.rail-head, .rail-foot { flex: none; padding: 13px 16px; font-size: 11px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--text-3); }
.rail-head { border-bottom: 1px solid var(--line); }
.rail-list { flex: 1 1 auto; overflow-y: auto; padding: 6px; }
.rail-item {
  width: 100%; display: grid; grid-template-columns: 1fr auto; grid-auto-rows: auto;
  gap: 2px 8px; align-items: center; text-align: left;
  padding: 9px 11px; border-radius: var(--r-sm); transition: background .14s;
}
.rail-item:hover { background: rgba(255,255,255,0.03); }
.rail-item.active { background: var(--accent-soft); }
.rail-item .ri-sym { font-weight: 600; font-size: 13.5px; }
.rail-item .ri-px { font-size: 12px; color: var(--text-2); text-align: right; }
.rail-item .ri-d { font-size: 11px; grid-column: 2; }
.rail-item.locked { opacity: .45; }
.rail-item.locked:hover { background: rgba(255,255,255,0.02); cursor: not-allowed; }
.rail-item.locked .ri-px { color: var(--text-3); }
.ri-lock { font-size: 10px; opacity: .8; }
.rail-note { padding: 8px 14px 2px; font-size: 10.5px; line-height: 1.5; color: var(--text-3); }
.rail-foot { border-top: 1px solid var(--line); display: flex; justify-content: space-between; text-transform: none; letter-spacing: 0; }
.rail-foot span { color: var(--text); }

/* ---------- chain ---------- */
.mkt-header { flex: none; display: flex; align-items: center; justify-content: space-between;
  padding: 15px 20px; border-bottom: 1px solid var(--line); }
.mh-left { display: flex; align-items: center; gap: 13px; }
.mh-img { width: 44px; height: 61px; object-fit: cover; border-radius: 5px; flex: none;
  background: #0a0a0f; box-shadow: 0 2px 10px rgba(0,0,0,.5), 0 0 0 1px var(--line),
  0 0 22px var(--accent-glow); }
.mh-id { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 9px; }
.mh-sym { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mh-name { font-size: 13px; color: var(--text-3); }
.mh-set { font-size: 10.5px; color: var(--text-3); opacity: .7; flex-basis: 100%; letter-spacing: .02em; }
.mh-right { display: flex; align-items: baseline; gap: 12px; }
.mh-spot { font-size: 20px; font-weight: 500; }
.mh-right .delta { font-size: 14px; }

/* price chart */
.chart-wrap { flex: none; padding: 11px 16px 12px; border-bottom: 1px solid var(--line); }
.chart-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px; }
.chart-ranges { display: flex; gap: 3px; }
.chart-ranges button { padding: 4px 10px; border-radius: var(--r-xs); font-size: 11.5px;
  color: var(--text-3); border: 1px solid transparent; transition: all .14s; }
.chart-ranges button:hover { color: var(--text); background: rgba(255,255,255,0.03); }
.chart-ranges button.active { background: var(--accent-soft); color: var(--accent); }
.chart-src { font-size: 10.5px; letter-spacing: 0.02em; color: var(--text-4); }
#priceChart { width: 100%; height: 232px; display: block; }
#priceChart:empty { background: repeating-linear-gradient(90deg, transparent 0 3px, rgba(255,255,255,0.015) 3px 4px); border-radius: var(--r-sm); }
/* lightweight-charts attribution link (kept subtle) */
#priceChart a[href*="tradingview"] { color: var(--text-4) !important; }

.chain-title { flex: none; padding: 12px 16px 2px; font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--text-3); }

.expiry-tabs { flex: none; display: flex; gap: 4px; padding: 8px 16px; border-bottom: 1px solid var(--line); overflow-x: auto; }
.exp-tab { display: inline-flex; align-items: baseline; gap: 6px; padding: 7px 13px; border-radius: var(--r-pill);
  font-size: 12.5px; color: var(--text-2); border: 1px solid var(--line); white-space: nowrap; transition: all .15s; }
.exp-tab:hover { border-color: var(--line-2); color: var(--text); }
.exp-tab.active { background: var(--accent-soft); border-color: var(--accent-line); color: var(--accent); }
.exp-tab .exp-d { font-size: 10px; opacity: 0.6; }

.chain-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: auto; }
.chain-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 12.5px; }
.chain-table thead th { position: sticky; top: 0; background: var(--bg-2); z-index: 1;
  padding: 9px 12px; font-size: 10px; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--text-3); font-weight: 500; text-align: right; border-bottom: 1px solid var(--line); }
.chain-table th.side-lbl.call { text-align: left; color: var(--up); }
.chain-table th.side-lbl.put { color: var(--text-2); }
.chain-table th.strike-col { text-align: center; }
.crow { border-bottom: 1px solid rgba(255,255,255,0.03); }
.crow .c { padding: 8px 12px; text-align: right; cursor: pointer; transition: background .1s; }
.crow .call-cell:first-child { text-align: left; }
.crow .c.dim { color: var(--text-3); }
.crow .c.call-cell:not(.dim) { color: var(--up); }
.crow .c.put-cell:not(.dim) { color: var(--text); }
.crow .c.itm { background: rgba(255,255,255,0.02); }
.crow .strike { text-align: center; color: var(--text-2); font-weight: 600; background: rgba(255,255,255,0.02); cursor: default; }
.crow:hover .call-cell, .crow:hover .put-cell { background: rgba(255,255,255,0.03); }
.crow .call-cell:hover, .crow .put-cell:hover { background: var(--accent-soft) !important; color: var(--accent) !important; }
.crow.atm .strike { color: var(--accent); background: var(--accent-soft); }
.crow.sel { background: rgba(177, 92, 255,0.05); }

/* ---------- ticket ---------- */
.ticket-panel { border-left: none; }
.ticket { flex: 1 1 auto; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.ticket-sides { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.ticket-sides button { padding: 10px; border-radius: var(--r-sm); font-size: 13px; font-weight: 500;
  background: var(--surface); border: 1px solid var(--line); color: var(--text-2); transition: all .14s; }
.ticket-sides button:hover { border-color: var(--line-2); color: var(--text); }
.ticket-sides button[data-side="buyCall"].active, .ticket-sides button[data-side="buyPut"].active { background: var(--up-soft); border-color: rgba(47,224,160,0.4); color: var(--up); }
.ticket-sides button[data-side="sellCall"].active, .ticket-sides button[data-side="sellPut"].active { background: var(--down-soft); border-color: rgba(255,93,110,0.4); color: var(--down); }

.ticket-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ticket-row label { font-size: 12.5px; color: var(--text-3); }
.ticket-row select { flex: 1; max-width: 190px; height: 38px; padding: 0 12px; text-align: right;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm); font-size: 13px; }
.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; }
.qty button { width: 34px; height: 38px; background: var(--surface); font-size: 16px; color: var(--text-2); }
.qty button:hover { background: var(--surface-2); color: var(--text); }
.qty input { width: 60px; height: 38px; text-align: center; background: var(--bg); border: none; border-inline: 1px solid var(--line); font-size: 14px; }
.qty input::-webkit-outer-spin-button, .qty input::-webkit-inner-spin-button { -webkit-appearance: none; }
/* spend-by-amount field */
.budget-field { display: flex; align-items: center; flex: 1; max-width: 190px; height: 38px;
  border: 1px solid var(--line); border-radius: var(--r-sm); overflow: hidden; background: var(--bg); }
.budget-field input { flex: 1; min-width: 0; height: 100%; text-align: right; background: transparent;
  border: none; padding: 0 10px; font-size: 14px; color: var(--text); }
.budget-field input::-webkit-outer-spin-button, .budget-field input::-webkit-inner-spin-button { -webkit-appearance: none; }
.budget-suffix { padding: 0 10px; font-size: 12px; color: var(--text-3); border-left: 1px solid var(--line); height: 100%; display: flex; align-items: center; }

.ticket-metrics { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 6px 14px; }
.tm-row { display: flex; align-items: center; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 12.5px; }
.tm-row:last-of-type { border-bottom: none; }
.tm-l { color: var(--text-3); }
.tm-v { color: var(--text); font-weight: 500; }
.tm-v.up { color: var(--up); }
.tm-v.down { color: var(--down); }
.tm-greeks { display: flex; justify-content: space-between; gap: 8px; padding: 12px 2px 4px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 12px; color: var(--text-3); }
.tm-greeks b { color: var(--text); font-weight: 600; margin-left: 3px; }

.payoff-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px; }
.payoff-head { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-3); margin-bottom: 6px; }
#payoff { width: 100%; display: block; }

.place-btn { width: 100%; height: 48px; font-size: 14.5px; }
.place-btn.disabled, .place-btn:disabled { opacity: .45; cursor: not-allowed; filter: grayscale(0.4); }
.ticket-note { text-align: center; font-size: 11px; color: var(--text-4); }

/* ---------- positions ---------- */
.positions { flex: none; height: 232px; border-top: 1px solid var(--line); display: flex; flex-direction: column; background: var(--bg-2); }
.pos-summary { flex: none; display: flex; gap: 0; border-bottom: 1px solid var(--line); }
.ps { flex: 1; display: flex; flex-direction: column; gap: 4px; padding: 14px 20px; border-right: 1px solid var(--line); }
.ps:last-child { border-right: none; }
.ps-l { font-size: 11px; color: var(--text-3); text-transform: uppercase; letter-spacing: 0.05em; }
.ps-v { font-size: 18px; font-weight: 600; }
.ps-v.up { color: var(--up); } .ps-v.down { color: var(--down); }
.pos-scroll { flex: 1 1 auto; overflow-y: auto; overflow-x: auto; }
.pos-table { width: 100%; min-width: 640px; border-collapse: collapse; font-size: 12.5px; }
.pos-table thead th { position: sticky; top: 0; background: var(--bg-2); text-align: right; padding: 10px 16px;
  font-size: 10px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-3); font-weight: 500; border-bottom: 1px solid var(--line); }
.pos-table thead th:first-child, .pos-table thead th:nth-child(2) { text-align: left; }
.prow td { padding: 10px 16px; text-align: right; border-bottom: 1px solid rgba(255,255,255,0.03); }
.prow td:first-child, .prow td:nth-child(2) { text-align: left; }
.prow .p-sym { font-weight: 600; }
.close-x { color: var(--text-4); font-size: 12px; padding: 4px 6px; border-radius: var(--r-xs); }
.close-x:hover { color: var(--down); background: var(--down-soft); }
.pos-empty td { text-align: center !important; color: var(--text-4); padding: 34px; font-size: 13px; }

/* ---------- wallet picker ---------- */
.wallet-modal { position: fixed; inset: 0; z-index: 300; display: flex; align-items: center; justify-content: center;
  background: rgba(2,3,6,0.72); backdrop-filter: blur(6px); opacity: 0; transition: opacity .2s var(--ease); padding: 20px; }
.wallet-modal.in { opacity: 1; }
.wallet-card { width: 100%; max-width: 380px; background: var(--surface-2); border: 1px solid var(--line-2);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg); transform: translateY(10px); transition: transform .2s var(--ease); overflow: hidden; }
.wallet-modal.in .wallet-card { transform: none; }
.wallet-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-bottom: 1px solid var(--line); font-size: 15px; font-weight: 600; }
.wallet-x { color: var(--text-3); font-size: 15px; padding: 4px 8px; border-radius: 6px; }
.wallet-x:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.wallet-list { display: flex; flex-direction: column; gap: 6px; padding: 12px; }
.wallet-item { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); font-size: 14.5px; font-weight: 500; text-align: left; transition: all .14s; }
.wallet-item:hover { border-color: var(--accent-line); background: var(--surface-3); transform: translateY(-1px); }
.wallet-item img { border-radius: 7px; }
.wallet-dot { width: 26px; height: 26px; border-radius: 7px; background: var(--accent-soft); display: inline-block; }
.wallet-empty { color: var(--text-3); font-size: 13.5px; line-height: 1.6; padding: 8px; }

/* ---------- toast ---------- */
.toast-host { position: fixed; bottom: 20px; right: 20px; z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.toast { padding: 12px 16px; border-radius: var(--r-md); font-size: 13px; font-weight: 500;
  background: var(--surface-2); border: 1px solid var(--line-2); color: var(--text);
  box-shadow: var(--shadow-lg); opacity: 0; transform: translateY(10px); transition: all .3s var(--ease); max-width: 320px; }
.toast.in { opacity: 1; transform: none; }
.toast.up { border-color: rgba(47,224,160,0.4); }
.toast.down { border-color: rgba(255,93,110,0.4); }
.toast.muted { color: var(--text-2); }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  body.app { overflow-x: hidden; overflow-y: visible; height: auto; }
  .app-body { grid-template-columns: minmax(0, 1fr); }
  .positions { min-width: 0; }
  .rail { flex-direction: column; }
  .rail-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px,1fr)); max-height: 200px; }
  .ticket-panel { order: 3; }
  .positions { height: auto; }
}
@media (max-width: 620px) {
  .app-nav-mid { display: none; }
  .term-tag { display: none; }                 /* free up header space for the switch */
  .net-switch { height: 30px; }
  .net-opt { padding: 0 8px; font-size: 10.5px; height: 22px; }
  .pos-summary { flex-wrap: wrap; }
  .ps { min-width: 50%; }
  /* chain -> exact 3-column grid rows (Calls | Strike | Puts), no table quirks */
  .chain-scroll { overflow-x: hidden; }
  .chain-table th:nth-child(2), .chain-table th:nth-child(3),
  .chain-table th:nth-child(5), .chain-table th:nth-child(6),
  .crow .c.dim { display: none; }
  .chain-table, .chain-table thead, .chain-table tbody { display: block; width: 100%; min-width: 0; }
  .chain-table thead tr, .crow { display: grid; grid-template-columns: minmax(0,1fr) 84px minmax(0,1fr); align-items: center; }
  .chain-table thead th, .crow .c { padding: 12px 14px; font-size: 13.5px; }
  .pos-scroll { overflow-x: auto; }
}

/* =============================================================================
   POKEOPTIONS TERMINAL — holo accents (v2)
   ========================================================================== */
/* holo hairline under the top bar */
.app-nav { position: relative; }
.app-nav::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(0,231,255,.35), rgba(177,92,255,.6), rgba(255,111,216,.35), transparent); }

/* brand mark in a holo-glow tile */
.app-nav .brand-mark { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px;
  background: radial-gradient(120% 120% at 30% 20%, rgba(177,92,255,.32), rgba(0,231,255,.12) 70%, transparent); }
.app-nav .brand-mark img { filter: drop-shadow(0 0 8px var(--accent-glow)); }

/* TERMINAL / POOL tag: holo border */
.term-tag { border: 1px solid transparent; color: var(--accent);
  background: linear-gradient(var(--bg), var(--bg)) padding-box, var(--holo-soft) border-box; }

/* active market: holo left bar + gradient wash */
.rail-item.active { background: linear-gradient(90deg, var(--accent-soft), transparent 78%); position: relative; }
.rail-item.active::before { content: ''; position: absolute; left: 0; top: 7px; bottom: 7px; width: 3px; border-radius: 0 3px 3px 0;
  background: var(--holo); background-size: 200% 200%; animation: holoText 5s linear infinite; }

/* card thumb in the market header gets a stronger holo ring */
.mh-img { box-shadow: 0 2px 12px rgba(0,0,0,.55), 0 0 0 1px var(--accent-line), 0 0 30px rgba(177,92,255,.42); }

/* connected wallet pill (holo button reverts to a calm state once connected) */
#connectBtn.connected { background: rgba(255,255,255,0.05); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: none; animation: none; }

/* place-order + connect keep the holo look via .btn-holo (set in HTML) */
.place-btn { height: 46px; font-size: 15px; }

/* ticket side buttons: holo ring on the active side */
.ticket-sides button.active { position: relative; }

/* faint holo ambient glow in the terminal background (behind the grid) */
.app-body { position: relative; }
.app-body::before { content: ''; position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background: radial-gradient(50% 40% at 78% -6%, rgba(177,92,255,.10), transparent 70%),
              radial-gradient(40% 40% at 0% 100%, rgba(0,231,255,.06), transparent 70%); }
.rail, .chain-panel, .ticket-panel { position: relative; z-index: 1; }

/* =============================================================================
   PRINT / INK TERMINAL THEME (v3) — remaps design tokens for body.app
   Matches the light "print" brand: ink-navy terminal, IBM Plex Mono data,
   yellow strikes, red ATM, green/orange calls/puts.
   ========================================================================== */
body.app{
  --red:#E3350D; --red-deep:#A82304; --ink:#111111; --paper:#FFF6EA; --yellow:#FFCB05; --green:#0E9F6E;
  --bg:#111111; --bg-2:#1a1a1a;
  --surface:#222222; --surface-2:#2a2a2a; --surface-3:#333333;
  --line:rgba(255,255,255,0.08); --line-2:rgba(255,255,255,0.14); --line-strong:rgba(255,255,255,0.22);
  --text:#FFF6EA; --text-2:#d4d4d4; --text-3:#a3a3a3; --text-4:#737373;
  --accent:#FFCB05; --accent-soft:rgba(255,203,5,.16); --accent-line:rgba(255,203,5,.55); --accent-glow:rgba(255,203,5,.4); --accent-ink:#111111;
  --up:#22c55e; --down:#ef4444; --up-soft:rgba(34,197,94,.16); --down-soft:rgba(239,68,68,.16);
  --font-display:'Bricolage Grotesque',sans-serif; --font-sans:'Outfit',sans-serif; --font-mono:'IBM Plex Mono',monospace;
  font-family:var(--font-sans); color:var(--text);
}
body.app .mono, body.app .chain-table, body.app .pos-table, body.app select, body.app input { font-family:var(--font-mono); }

/* top bar */
body.app .app-nav{ background:#1a1a1a; border-bottom:3px solid var(--line); }
body.app .app-nav::after{ display:none; }
body.app .app-nav .brand-mark{ background:none; width:auto; height:auto; display:inline-flex; }
body.app .brand-name{ font-family:var(--font-display); font-weight:800; text-transform:uppercase; letter-spacing:-.01em; font-size:17px; }
body.app .term-tag{ background:var(--yellow); color:var(--ink); border:2px solid var(--ink); border-radius:8px; font-weight:700; }
body.app .app-pool-link:hover{ color:var(--yellow); }
body.app .net-switch{ border:2px solid var(--line); }
body.app .net-opt.active[data-net="testnet"]{ background:var(--yellow); color:var(--ink); box-shadow:none; font-weight:700; }
body.app .net-opt.active[data-net="mainnet"]{ background:var(--yellow); color:var(--ink); }

/* red print buttons (connect + place order) */
body.app .btn-holo{
  background:var(--red); color:#fff; animation:none; font-family:var(--font-sans); font-weight:700;
  border:2px solid var(--paper); border-radius:12px;
  box-shadow:0 4px 0 var(--red-deep), 0 4px 0 2px var(--ink);
}
body.app .btn-holo:hover{ transform:translateY(-2px); box-shadow:0 6px 0 var(--red-deep),0 6px 0 2px var(--ink); }
body.app .btn-holo:active{ transform:translateY(2px); box-shadow:0 2px 0 var(--red-deep),0 2px 0 2px var(--ink); }
body.app #connectBtn.connected{ background:var(--surface-2); color:var(--text); border:2px solid var(--line); box-shadow:none; }

/* chunkier separators */
body.app .app-body{ gap:2px; }
body.app .app-body::before{ display:none; }

/* rail active → yellow tab */
body.app .rail-item.active{ background:var(--accent-soft); }
body.app .rail-item.active::before{ background:var(--yellow); animation:none; }

/* market header card thumb: ink frame, no violet glow */
body.app .mh-img{ box-shadow:0 2px 0 var(--ink), 0 0 0 2px var(--line); border-radius:6px; }
body.app .mh-sym{ font-family:var(--font-display); font-weight:800; text-transform:uppercase; }

/* option chain: green calls / orange puts / yellow strike / red ATM */
body.app .crow .c.put-cell:not(.dim){ color:var(--down); }
body.app .crow .strike{ color:var(--yellow); background:#2a2a2a; }
body.app .crow.atm .strike{ background:var(--red); color:#fff; }
body.app .crow.atm .c{ background:#333333; }
body.app .chain-table th.side-lbl.call{ color:var(--up); }
body.app .chain-table th.strike-col{ color:var(--yellow); }

/* expiry + range pills → yellow active (already via --accent), add borders */
body.app .exp-tab{ border:2px solid var(--line); }
body.app .exp-tab.active{ background:var(--yellow); color:var(--ink); border-color:var(--yellow); font-weight:700; }
body.app .chart-ranges button.active{ background:var(--yellow); color:var(--ink); }

/* ticket + inputs */
body.app .ticket-sides button{ border:2px solid var(--line); }
body.app select, body.app .budget-field, body.app .qty{ border:2px solid var(--line); }
body.app .ticket-metrics, body.app .payoff-wrap{ border:2px solid var(--line); }

/* image logo in terminal/pool top bar — render clean (image is pre-framed) */
.app-nav .brand-mark{ width:auto;height:auto;background:none;padding:0; }
.app-nav .brand-mark img{ object-fit:cover; display:block; border:none; box-shadow:none; border-radius:8px; width:30px; height:30px; }
