/* Options pages: builder (expiration strip, legs, chain, payoff), scanner, paper positions, volatility history. */
.o-head { display: grid; grid-template-columns: auto 1fr auto; gap: 14px 22px; align-items: center; }
.o-sym { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.o-sym input { width: 120px; text-transform: uppercase; font-weight: 600; font-size: 0.9375rem; }
.o-px { font: var(--display-w) 1.875rem/1 var(--serif); }
.o-px small { font: 500 0.8125rem var(--font); margin-left: 8px; }
.o-vol { display: flex; flex-wrap: wrap; gap: 6px 20px; justify-content: flex-end; }
.o-vol .stat .v { font-size: 0.9375rem; }
.o-tpl { display: flex; flex-direction: column; gap: 4px; color: var(--muted); font-size: 0.75rem; }
.o-tpl select { min-width: 250px; }
.o-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 14px; border-radius: var(--radius); margin-bottom: 14px;
  border: 1px solid color-mix(in srgb, var(--brass) 55%, var(--line)); background: color-mix(in srgb, var(--brass) 9%, var(--deck)); }
.o-bar .grow { flex: 1; }

/* expiration strip: months with day buttons */
.o-exps { display: flex; gap: 10px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 12px; scrollbar-width: thin; }
.o-exps .mg { flex: none; }
.o-exps .ml { font-size: 0.6875rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px 2px; }
.o-exps .days { display: flex; gap: 3px; }
.o-exps button { min-width: 32px; padding: 5px 6px; font-size: 0.78125rem; border-radius: 6px; background: var(--deck-2); border: 1px solid var(--line); color: var(--muted); }
.o-exps button.used { color: var(--text); border-color: color-mix(in srgb, var(--wait) 55%, var(--line)); }
.o-exps button.sel { background: var(--brass); color: var(--brass-ink); border-color: var(--brass); font-weight: 600; }

/* strike ruler: legs as draggable markers over the listed strikes */
.o-ruler { position: relative; margin: 4px 0 2px; padding: 0 14px 0 70px; user-select: none; }   /* side padding = the chart's plot margins */
.r-track { position: relative; margin-top: 4px; }
.r-title, .r-lane { position: absolute; left: -70px; font-size: 0.6875rem; color: var(--faint); text-transform: uppercase; letter-spacing: .06em; }
.r-lane.long, .r-lane.short { color: var(--muted); }
.r-axis { position: absolute; left: 0; right: 0; height: 12px; border-bottom: 1px solid var(--line); }
.r-axis i { position: absolute; bottom: 0; width: 1px; height: 5px; background: var(--faint); opacity: .55; }
.r-axis i.big { height: 10px; opacity: 1; }
.r-spot { position: absolute; width: 2px; height: 22px; margin-left: -1px; background: var(--brass); border-radius: 1px; }
.r-labels { position: absolute; left: 0; right: 0; height: 34px; font-size: 0.71875rem; color: var(--muted); }
.r-labels span { position: absolute; top: 3px; transform: translateX(-50%); white-space: nowrap; }
.r-labels .r-spotlbl { top: 18px; color: var(--brass); font-weight: 600; font-size: 0.6875rem; background: var(--deck); padding: 0 3px; }
.r-empty { font-size: 0.78125rem; margin-top: 2px; }
.r-track, .r-labels { cursor: default; touch-action: pan-y; }
.o-ruler.panning .r-track, .o-ruler.panning .r-labels { cursor: ew-resize; }
.r-nav { display: flex; gap: 8px; align-items: center; justify-content: center; flex-wrap: wrap; font-size: 0.75rem; margin: 6px 0 6px; }
.r-nav button { padding: 2px 9px; font-size: 0.75rem; }
.r-stem { position: absolute; width: 1px; margin-left: -.5px; background: var(--faint); }
/* the leg's mark across the scale: right under a long leg's stem, or above a short leg's stem (past the strike labels) */
.r-stem::after { content: ''; position: absolute; left: -1px; width: 3px; height: 12px; background: inherit; border-radius: 1px; }
.r-stem.long::after { top: 100%; }
.r-stem.short::after { top: calc(-1 * var(--up, 46px)); }
.r-stem.call { background: color-mix(in srgb, var(--bull) 60%, transparent); } .r-stem.put { background: color-mix(in srgb, var(--bear) 60%, transparent); }
.r-b { position: absolute; transform: translateX(-50%); padding: 3px 8px; font: 700 0.75rem var(--font); border-radius: 6px; white-space: nowrap;
  cursor: default; touch-action: none; color: #fff; border: 1px solid transparent; z-index: 2; }
.r-b.call { --leg: var(--bull); } .r-b.put { --leg: var(--bear); }          /* calls green, puts red */
.r-b.buy { background: color-mix(in srgb, var(--leg) 82%, #000); }                  /* bought: solid, above the scale */
.r-b.sell { background: var(--deck); color: var(--leg); border: 2px solid var(--leg); padding: 2px 7px; }   /* sold: outlined, below */
.r-b small { font-weight: 500; opacity: .85; }
.r-b .w { color: #ffd166; }
.r-b.ex { opacity: .4; text-decoration: line-through; }
.r-b.lock { cursor: default; outline: 1px dashed color-mix(in srgb, var(--text) 50%, transparent); }
.r-b.on, .r-b:focus-visible { outline: 2px solid var(--brass); outline-offset: 1px; }
.r-b.drag { cursor: ew-resize; z-index: 3; box-shadow: 0 2px 10px rgba(0,0,0,.4); }
.r-card { position: absolute; z-index: 20; width: 290px; background: var(--deck); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 8px 28px rgba(0,0,0,.45); padding: 10px 12px; font-size: 0.8125rem; }
.rc-h { display: flex; gap: 8px; align-items: center; margin-bottom: 6px; }
.rc-h .rc-x { margin-left: auto; padding: 2px 7px; }
.rc-warn { color: var(--warn); font-size: 0.78125rem; margin: 2px 0; }
.rc-qp { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px; margin: 8px 0; text-align: center; }
.rc-qp .k, .rc-g .k { color: var(--muted); font-size: 0.75rem; }
.rc-qty { display: flex; gap: 10px; align-items: center; justify-content: center; margin-top: 3px; font-size: 1rem; }
.rc-qty button { padding: 1px 8px; border-radius: 999px; }
.rc-px { font-size: 1.125rem; font-weight: 700; margin-top: 3px; }
.rc-g { width: 100%; font-size: 0.8125rem; }
.rc-g td { padding: 2px 4px; text-align: right; }
.rc-g td.k { text-align: left; }
.rc-acts { display: flex; flex-direction: column; gap: 2px; border-top: 1px solid var(--line); margin-top: 8px; padding-top: 6px; }
.rc-acts button { text-align: left; background: none; border: 0; padding: 5px 4px; font-size: 0.8125rem; }
.rc-acts button:hover:not(:disabled) { background: var(--deck-2); }
.rc-acts .danger-txt { color: var(--bear); }
.rc-exp { display: flex; gap: 8px; align-items: center; padding: 3px 4px; font-size: 0.8125rem; }
.rc-exp select { padding: 3px 6px; font-size: 0.78125rem; }
.o-legs tr.ex td { opacity: .45; }

.o-legs-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 8px; }
.o-legs-head h2 { margin: 0 !important; }
.o-legs-head .right { margin-left: auto; display: flex; gap: 6px; flex-wrap: wrap; }
.o-legs { width: 100%; }
.o-legs td { vertical-align: middle; padding-top: 6px; padding-bottom: 6px; }
.o-legs select, .o-legs input { padding: 5px 7px; font-size: 0.8125rem; }
.o-legs input.qty { width: 62px; }
.o-legs .kstep { padding: 4px 7px; margin: 0 2px; }
.side-btn { min-width: 58px; font-weight: 700; font-size: 0.75rem; letter-spacing: .04em; padding: 5px 8px; }
.side-btn.buy { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 50%, var(--line)); }
.side-btn.sell { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 50%, var(--line)); }
.o-legs .now { font-size: 0.75rem; color: var(--wait); white-space: nowrap; }

.o-chain-wrap { max-height: 460px; overflow: auto; margin-top: 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.o-chain { width: 100%; font-size: 0.78125rem; }
.o-chain th { position: sticky; top: 0; background: var(--deck); z-index: 1; text-align: right; }
.o-chain td { text-align: right; padding: 4px 8px; }
.o-chain td.k { text-align: center; font-weight: 700; background: var(--deck-2); }
.o-chain td.q { cursor: pointer; font-weight: 600; }
.o-chain td.q:hover { outline: 1px solid var(--brass); outline-offset: -1px; }
.o-chain td.q.bid { color: var(--bear); } .o-chain td.q.ask { color: var(--bull); }
.o-chain td.itm { background: color-mix(in srgb, var(--wait) 9%, transparent); }
.o-chain tr.atm td { border-top: 2px solid var(--brass); }

/* stat cards */
.o-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 14px 0; }
.o-stat { background: var(--deck); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px 12px; }
.o-stat .l { font-size: 0.71875rem; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.o-stat .v { font-size: 1.125rem; font-weight: 600; margin-top: 3px; }
.o-stat .s { font-size: 0.75rem; color: var(--faint); margin-top: 2px; }

/* payoff chart */
.o-ctl { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-left: auto; font-weight: 400; }
.o-ctl label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.8125rem; }
.o-ctl select { padding: 5px 8px; font-size: 0.8125rem; }
.o-walls, .o-readout { display: flex; flex-wrap: wrap; gap: 4px 18px; font-size: 0.8125rem; min-height: 20px; margin-bottom: 6px; }
.o-walls .k, .o-readout .k { color: var(--muted); margin-right: 5px; }
.o-chart { position: relative; height: 460px; }
.o-chart canvas { position: absolute; inset: 0; width: 100%; height: 100%; cursor: crosshair; }
.o-sliders { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.o-sliders label { display: flex; flex-direction: column; gap: 4px; font-size: 0.78125rem; color: var(--muted); }
.o-sliders .v { color: var(--text); }
.o-sliders label { position: relative; }
.o-sliders .o-rs { position: absolute; right: 0; top: -4px; padding: 0 7px; font-size: 0.8125rem; line-height: 20px; }
.o-reset { display: flex; justify-content: flex-end; margin-top: 8px; }
.o-reset button:disabled { opacity: .45; }
.o-sliders input[type=range] { width: 100%; accent-color: var(--brass); padding: 0; border: 0; background: none; }
.o-legend { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: 0.75rem; color: var(--muted); margin-top: 10px; }
.o-legend i { display: inline-block; width: 12px; height: 10px; border-radius: 2px; margin-right: 5px; vertical-align: -1px; }
.o-legend i.line { height: 0; border-top: 2px dashed; border-radius: 0; vertical-align: 3px; }
.pl-grid { font-size: 0.75rem; width: 100%; }
.pl-grid td { text-align: right; padding: 0 6px; height: var(--rh, 22px); line-height: 1; color: var(--text); }
.pl-grid th { height: 26px; padding: 0 6px; }
.pl-grid td.px { text-align: left; white-space: nowrap; }
.pl-grid tr.spot td { outline: 1px solid var(--brass); outline-offset: -1px; }

.o-deploy { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 16px; }
.o-deploy label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.8125rem; }
.o-deploy input[type=number] { width: 96px; }
.o-deploy .grow { flex: 1; }

/* order ticket */
.ticket { max-width: 760px; }
.ticket table { width: 100%; font-size: 0.8125rem; }
.ticket .limit { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin-top: 12px; }
.ticket .limit input { width: 96px; font-weight: 600; }
.ticket ul { margin: 10px 0 0; padding-left: 18px; font-size: 0.8125rem; }
.ticket ul.warn { color: var(--warn); }
.ticket ul.block { color: var(--bear); }
.paper-tag { display: inline-block; font: 600 0.6875rem var(--font); letter-spacing: .08em; padding: 3px 8px; border-radius: 999px; color: var(--wait);
  border: 1px solid color-mix(in srgb, var(--wait) 55%, var(--line)); vertical-align: middle; }

/* compact leg list in tables */
.legs-mini { display: inline-flex; flex-wrap: wrap; gap: 4px; }
.legs-mini span { font-size: 0.75rem; padding: 1px 6px; border-radius: 4px; background: var(--deck-2); white-space: nowrap; }
.legs-mini .b { color: var(--bull); } .legs-mini .s { color: var(--bear); }

/* scanner form */
.o-scan { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: flex-end; }
.o-scan label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.o-scan input[type=number] { width: 74px; }
.o-scan .strats { display: flex; gap: 6px; flex-wrap: wrap; }

/* positions */
.o-tot { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-bottom: 4px; }
.adv { border: 1px solid var(--line); border-left: 3px solid var(--wait); border-radius: var(--radius-sm); padding: 10px 12px; margin-top: 10px; }
.adv.Warning { border-left-color: var(--warn); } .adv.Urgent { border-left-color: var(--bear); }
.adv .t { font-weight: 600; display: flex; gap: 8px; align-items: center; }
.adv .d { color: var(--muted); font-size: 0.8125rem; margin: 4px 0 6px; }
.sev { font-size: 0.6875rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--wait); }
.sev.Warning { color: var(--warn); } .sev.Urgent { color: var(--bear); }
.rules { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: flex-end; margin-top: 8px; }
.rules label { display: flex; flex-direction: column; gap: 3px; font-size: 0.75rem; color: var(--muted); }
.rules input { width: 86px; }
.o-mini-chart { height: 230px; }
.o-vol-chart { height: 280px; }
details summary { cursor: pointer; }

@media (max-width: 900px) {
  .o-head { grid-template-columns: 1fr; }
  .o-vol { justify-content: flex-start; }
  .o-sliders { grid-template-columns: 1fr; }
  .o-chart { height: 360px; }
}
.nowrap-cells td { white-space: nowrap; }
/* the calculator's graph / table / chain area at 80% of the panel, centred (the strike ruler shrinks with it so the strikes
   stay over the chart); the height is scaled the same way in fitChart. Full width on small screens. */
@media (min-width: 901px) {
  .o-pl .o-ruler, .o-pl #oChartBox, .o-pl #oTableBox, .o-pl #oChainBox { width: 80%; margin-left: auto; margin-right: auto; box-sizing: border-box; }
}

/* gamma screen */
.o-gpresets { display: flex; gap: 6px; flex-wrap: wrap; margin: 2px 0 12px; }
.warn-txt { color: var(--warn); }
/* compact page top on the options pages, so the builder's calculator fits the window */
.o-page-head { margin-bottom: 10px; align-items: center; }
.o-page-head > div:first-child { display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap; }
.o-page-head h1 { font-size: 1.75rem; }
.o-page-head .sub { margin-top: 0; font-size: 0.8125rem; }
details.callout.risk.compact summary { cursor: pointer; list-style: none; }
details.callout.risk.compact summary::-webkit-details-marker { display: none; }
details.callout.risk.compact .more { color: var(--muted); text-decoration: underline; text-underline-offset: 2px; margin-left: 4px; }
details.callout.risk.compact[open] .more { display: none; }
/* a wrapping row, so bigger text (Settings > Text size) moves the volatility figures down rather than over the strategy box */
.o-head { display: flex; flex-wrap: wrap; align-items: center; padding-top: 8px; padding-bottom: 8px; gap: 8px 18px; }
.o-head .o-vol { margin-left: auto; }
.o-head .o-sym > div { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.o-head .o-px { font-size: 1.375rem; }
.o-head .o-tpl { flex-direction: row; align-items: center; gap: 8px; }
.o-head .o-tpl { flex: 1 1 0; min-width: 190px; }
.o-head .o-tpl select { flex: 1 1 0; min-width: 0; max-width: 300px; }
.o-head .o-vol { gap: 4px 16px; flex-wrap: nowrap; }
.o-head .o-vol .stat .k { font-size: 0.6875rem; }
.o-head .o-vol .stat .v { font-size: 0.875rem; }
.o-pl { padding-top: 10px; padding-bottom: 12px; }
.o-pl .r-nav { margin: 2px 0 4px; }
.tabs.o-tabs { margin-bottom: 10px; }
/* the page's own width decides (the right rail narrows it) */
.o-page { container-type: inline-size; }
.o-pl .o-stat .l { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@container (max-width: 1150px) {
  .o-page-head .sub { display: none; }
  .o-head #oAsOf, .o-head .hv60 { display: none; }
  .o-head .o-tpl { min-width: 175px; }
  .o-head #oVol small { display: none; }
  .o-foot .o-legend { display: none; }
}
@container (max-width: 820px) {
  .o-head .o-vol { margin-left: 0; justify-content: flex-start; flex-wrap: wrap; }
}
/* Builder: one panel, top to bottom like a calculator - expirations, legs, the key numbers, strike scale, chart, sliders,
   then the view switches and the trade form on one row. fitChart sizes the chart to the window. */
.o-one { margin-top: 10px; padding-top: 10px; padding-bottom: 10px; container-type: inline-size; }
.o-one .o-exps { flex-wrap: nowrap; overflow-x: auto; gap: 6px; padding-bottom: 4px; margin-bottom: 6px; }
.o-one .o-exps .ml { font-size: 0.65625rem; margin-bottom: 2px; padding: 1px 4px; border-radius: 4px; background: var(--deck-2); text-align: center; }
.o-one .o-exps button { min-width: 28px; padding: 3px 5px; font-size: 0.75rem; }
.o-one .o-legs-head { margin-bottom: 2px; }
.o-one .o-legs-head h2 { font-size: 0.875rem; }
.o-one .o-legs td { padding-top: 3px; padding-bottom: 3px; }
.o-one .o-legs th { padding-top: 4px; padding-bottom: 4px; font-size: 0.71875rem; }
/* key numbers: label over value, no boxes, spread across the width */
.o-one .o-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; margin: 8px 0 4px; padding: 6px 4px;
  border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); overflow: visible; }
.o-one .o-stat { flex: 1 1 96px; background: none; border: 0; padding: 0; text-align: center; min-width: 0; }
.o-one .o-stat .l { font-size: 0.65625rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-one .o-stat .v { font-size: 0.9375rem; margin-top: 1px; line-height: 1.25; }
.o-one .o-stat .v br { display: none; }
.o-one .o-stat .s { display: none; }
.o-one .o-walls:empty { display: none; }
.o-one .o-readout { margin-bottom: 0; }
.o-one .r-nav { margin: 2px 0 4px; }
/* sliders: the date across the whole width, then price range and volatility side by side */
.o-one .o-sliders { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto; gap: 6px 18px; margin-top: 6px; align-items: end; }
.o-one .o-sliders label { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 8px; align-items: center; }
.o-one .o-sliders label input[type=range] { grid-column: 1 / -1; }
.o-one .o-sliders .v { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.o-one .o-sliders .o-rs { position: static; grid-column: 3; grid-row: 1; padding: 0 6px; line-height: 18px; }
.o-one .o-sliders .o-date { grid-column: 1 / -1; }
.o-one .o-reset { margin-top: 0; }
.o-bottom { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; justify-content: space-between; margin-top: 8px; padding-top: 8px; border-top: 1px solid var(--line-soft); }
.o-bottom .o-ctl { margin-left: 0; }
.o-bottom .o-deploy { margin-top: 0; flex-wrap: nowrap; }
.o-bottom .o-deploy #oName { width: 150px; }
.o-bottom .o-deploy input[type=number] { width: 80px; }
.o-one .o-legend { margin-top: 6px; }
.callout.risk.compact { font-size: 0.78125rem; padding: 6px 12px; margin-bottom: 10px; line-height: 1.45; }
@container (max-width: 900px) { .o-bottom .o-deploy { flex-wrap: wrap; } .o-one .o-legend { display: none; } }
@container (max-width: 640px) {
  .o-legs .c-ba, .o-legs .c-dl, .o-legs .c-iv { display: none; }
  .o-one .o-sliders { grid-template-columns: 1fr; } .o-one .o-reset { display: none; }
}
/* title, the tabs and the market tag share one row */
.o-page-head { flex-wrap: wrap; align-items: flex-end; gap: 6px 22px; margin-bottom: 8px; border-bottom: 1px solid var(--line); }
.o-page-head h1 { padding-bottom: 6px; }
.o-page-head .tabs.o-tabs { border-bottom: 0; margin: 0; flex: 1 1 auto; }
.o-page-head .tools { padding-bottom: 6px; }
/* sliders: three in a row; the date gets the full width only on a wide page */
.o-one .o-sliders { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr) auto; }
.o-one .o-sliders .o-date { grid-column: auto; }

@container (max-width: 1100px) { .o-one .r-navtxt { display: none; } .o-one .o-readout .faint { display: none; } }
/* expirations and the leg buttons share the top row */
.o-toprow { display: flex; align-items: flex-end; gap: 6px 14px; flex-wrap: wrap; margin-bottom: 4px; }
.o-toprow .o-exps { flex: 1 1 420px; min-width: 0; margin-bottom: 0; }
.o-legbtns { display: flex; gap: 6px; flex-wrap: wrap; padding-bottom: 4px; }
.o-legbtns button { padding: 3px 8px; }
.o-legbtns { align-items: center; }
.o-legbtns .o-add.call { color: var(--bull); border-color: color-mix(in srgb, var(--bull) 45%, var(--line)); }
.o-legbtns .o-add.put { color: var(--bear); border-color: color-mix(in srgb, var(--bear) 45%, var(--line)); }
.o-addside button { padding: 3px 9px; font-size: 0.75rem; }
.o-ratio { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; color: var(--muted); white-space: nowrap; }
.o-legs td.c-type.call select { color: var(--bull); font-weight: 700; }
.o-legs td.c-type.put select { color: var(--bear); font-weight: 700; }
.o-chain th .call-h { color: var(--bull); } .o-chain th .put-h { color: var(--bear); }
.o-one .o-stats { margin: 6px 0 2px; padding: 4px; }
.o-one { padding-top: 8px; }
@container (max-width: 1100px) {
  .o-bottom #oChartSub { display: none; }
  .o-bottom .o-deploy #oName { width: 110px; }
  .o-bottom .o-deploy input[type=number] { width: 66px; }
  .o-bottom .o-deploy label { font-size: 0.75rem; }
}
/* Table and Chain take the chart's place and its height (fitChart); each scrolls inside */
.o-view { overflow: auto; }
#oChainBox { display: flex; flex-direction: column; gap: 6px; overflow: hidden; }
#oChainBox.hidden { display: none; }
#oChainBox .o-chain-wrap { flex: 1 1 auto; min-height: 0; max-height: none; margin-top: 0; }
.o-legbtns #oChainBtn.on { border-color: var(--brass); color: var(--brass); }
/* more room for the chart: the readout floats inside it, legend and data notice share a line, one bottom row */
.o-one .o-chart { position: relative; }
.o-one .o-readout { position: absolute; top: 4px; right: 18px; z-index: 1; margin: 0; padding: 3px 9px; font-size: 0.75rem; border-radius: 6px; pointer-events: none;
  background: color-mix(in srgb, var(--deck) 88%, transparent); border: 1px solid var(--line-soft); max-width: calc(100% - 120px); }
.o-one .o-readout:empty { display: none; }
.o-one .o-readout .faint { display: none; }
.o-bottom #oChartSub { display: none; }
.o-bottom { flex-wrap: nowrap; padding-top: 6px; margin-top: 6px; }
.o-bottom .o-ctl { flex: none; }
.o-bottom .o-deploy { flex: 0 1 auto; justify-content: flex-end; }
@container (max-width: 1100px) { .o-bottom { flex-wrap: wrap; } }
.o-legrow { display: flex; flex-wrap: wrap; gap: 4px 16px; align-items: center; justify-content: space-between; margin-top: 4px; }
.o-legrow .o-legend { margin-top: 0; }
.o-legrow .data-notice { margin: 0; padding: 0; border: 0; font-size: 0.71875rem; }
.o-one .o-sliders { margin-top: 4px; }
.o-one .r-nav { margin: 0 0 2px; }
.callout.risk.compact { padding: 3px 12px; font-size: 0.75rem; margin-bottom: 8px; }
.o-page-head { margin-bottom: 6px; }

/* the site's loading picture over the builder's chart / table / chain while a chain is read */
#oChartBox, #oTableBox, #oChainBox { position: relative; }
.o-wait { position: absolute; inset: 0; z-index: 6; min-height: 160px; display: flex; align-items: center; justify-content: center; border-radius: 8px;
  background: var(--deck); }

/* the P/L table fits its box (rows and columns chosen to fit): no scroll bar */
#oTableBox { overflow: hidden; }
/* plain-language readings under the numbers (breakeven vs expected move, time decay, events, IV percentile) */
.o-insights { display: grid; gap: 4px; margin: 6px 0 10px; font-size: 0.8125rem; color: var(--muted); }
.o-insights:empty { display: none; }
.o-insights > div { padding: 5px 10px; border-radius: var(--radius-sm); background: var(--deck-2); border: 1px solid var(--line-soft); }
.o-insights b { color: var(--text); font-weight: 600; }
.o-insights b.pos { color: var(--bull, #2fbf71); } .o-insights b.neg { color: var(--bear, #e5484d); }
.o-insights .ic { margin-right: 6px; }
/* earnings windows and Fed decisions over the Date slider */
.o-date { position: relative; }
.o-events { position: relative; display: block; height: 8px; margin: 2px 7px -2px; }
.o-events .ev { position: absolute; top: 1px; height: 6px; border-radius: 3px; }
.o-events .ev.earn { background: color-mix(in srgb, var(--brass) 70%, transparent); }
.o-events .ev.fed { width: 8px; height: 8px; top: 0; margin-left: -4px; border-radius: 50%; background: #a68cf0; }
.o-one .o-sliders label .o-events { grid-column: 1 / -1; }
/* the four greeks side by side in one card, each explained on hover */
.o-stat.o-greeks { flex: 1.4 1 150px; }
.o-one .o-stat.o-greeks { flex: 1.4 1 140px; }
.o-one .o-stat:not(.o-greeks) { flex-basis: 72px; }
.o-one .o-stat.wide { flex-basis: 140px; }
.o-one .o-stat .l { letter-spacing: .02em; }
.o-one .o-stat.o-greeks { min-width: max-content; }
.o-one .o-stat .v { white-space: nowrap; }
.o-greeks .v { display: grid; grid-template-columns: auto auto; justify-content: center; gap: 0 14px; font-size: 0.78125rem; line-height: 1.3; }
.o-greeks .gk { justify-content: space-between; min-width: 64px; }
.o-greeks .gk { display: inline-flex; align-items: baseline; gap: 4px; cursor: help; white-space: nowrap; }
.o-greeks .gk i { font-style: normal; color: var(--muted); font-weight: 500; }
.o-stat[title]:not([title=""]) { cursor: help; }
.o-sliders .invisible { visibility: hidden; }
/* the Review card: legs (editable), the numbers, what to know, trade details, price */
.ticket { max-width: 920px; max-height: 92vh; overflow-y: auto; }
.ticket .tk-subline { color: var(--muted); font-size: 0.8125rem; margin: -6px 0 6px; }
.ticket .tk-sec { margin-top: 14px; }
.ticket .tk-h { font-size: 0.71875rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); margin-bottom: 6px; font-weight: 600; }
.ticket .tk-h .faint { text-transform: none; letter-spacing: 0; font-weight: 400; margin-left: 6px; }
.ticket .tk-stats { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 8px; margin: 0; padding: 8px 12px;
  background: var(--deck-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); }
.ticket .tk-stats .o-stat { flex: 1 1 64px; background: none; border: 0; padding: 0; text-align: center; min-width: 0; }
.ticket .tk-stats .o-stat .l { font-size: 0.625rem; white-space: nowrap; letter-spacing: 0; }
.ticket .tk-stats .o-stat .v { font-size: 0.9375rem; white-space: nowrap; }
.ticket .tk-stats .o-stat .s { display: none; }
.ticket .tk-stats .o-stat.wide { flex-basis: 140px; }
.ticket .tk-stats .o-stat.o-greeks { flex: 2 1 220px; min-width: max-content; }
.ticket .o-insights { margin: 0; }
.ticket .tk-details { display: flex; gap: 10px 16px; flex-wrap: wrap; align-items: center; }
.ticket .tk-details label { display: flex; gap: 6px; align-items: center; color: var(--muted); font-size: 0.8125rem; }
.ticket .tk-details input[type=number] { width: 96px; }
.ticket .o-legs { font-size: 0.8125rem; }
.ticket .o-greeks .v { grid-template-columns: repeat(4, auto); font-size: 0.875rem; gap: 0 10px; }
/* the number strip with Review at its right end; tighter, so the four greeks fit on one line */
.o-statrow { display: flex; align-items: center; gap: 10px; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); margin: 6px 0 2px; }
.o-statrow .o-stats { flex: 1 1 auto; min-width: 0; border: 0 !important; margin: 0 !important; }
.o-statrow .o-deploy { margin: 0; flex: 0 0 auto; }
.o-statrow .o-deploy.hidden { display: none; }
.o-one .o-stats { gap: 4px 6px; padding: 5px 2px; justify-content: space-between; }
.o-one .o-stat:not(.o-greeks) { flex: 0 1 auto; padding: 0 2px; }
.o-one .o-stat.wide { flex-basis: auto; }
.o-one .o-stat.o-greeks { flex: 0 1 auto; min-width: max-content; }
.o-one .o-greeks .v { grid-template-columns: repeat(4, auto); gap: 0 8px; font-size: 0.875rem; }
.o-one .o-greeks .gk { min-width: 0; gap: 3px; }
/* ± Call / ± Put / ± Shares: + over −, and a Buy / Sell menu */
.o-addwrap { position: relative; display: inline-flex; }
.o-add .pm { display: inline-flex; flex-direction: column; line-height: 0.62; font-size: 0.6875rem; font-weight: 700; margin-right: 5px; vertical-align: middle; }
.o-add .pm i { font-style: normal; }
.o-addmenu { position: absolute; top: calc(100% + 4px); left: 0; z-index: 30; display: flex; flex-direction: column; min-width: 170px; padding: 4px;
  background: var(--deck); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); }
.o-addmenu.hidden { display: none; }
.o-addmenu button { text-align: left; border: 0; background: none; padding: 6px 10px; font-size: 0.8125rem; border-radius: 6px; white-space: nowrap; }
.o-addmenu button:hover, .o-addmenu button:focus-visible { background: var(--deck-2); }
.o-addmenu b { display: inline-block; width: 14px; }
/* "ratio": the keep-ratios switch next to Quantity */
.ratio-tg { display: inline-flex; align-items: center; gap: 4px; padding: 0 4px; margin-left: 6px; border: 0; background: none; font-size: 0.65625rem; color: var(--muted); vertical-align: middle; text-transform: none; letter-spacing: 0; cursor: pointer; }
.ratio-tg i { width: 20px; height: 11px; border-radius: 6px; background: var(--line); position: relative; transition: background .15s; }
.ratio-tg i::after { content: ''; position: absolute; top: 1.5px; left: 1.5px; width: 8px; height: 8px; border-radius: 50%; background: var(--text); transition: left .15s; }
.ratio-tg.on i { background: var(--brass); }
.ratio-tg.on i::after { left: 10.5px; }
.ratio-tg.on span { color: var(--text); }
.o-one .o-statrow .o-stats { flex-wrap: nowrap; gap: 4px 4px; }
.o-one .o-statrow .o-stat .v { font-size: 0.875rem; }
.o-one .o-statrow .o-stat .l { font-size: 0.625rem; letter-spacing: .02em; }
.o-one .o-statrow .o-greeks .v { gap: 0 6px; font-size: 0.8125rem; }
.o-statrow .o-deploy button { padding: 6px 14px; }
.o-stratname { color: var(--brass); font-size: 0.8125rem; white-space: nowrap; }
.o-stratname:empty { display: none; }
/* narrower calculator: the greeks two by two, so the labels keep their room */
@container (max-width: 800px) { .o-one .o-statrow .o-greeks .v { grid-template-columns: auto auto; gap: 0 8px; line-height: 1.25; } }
.pl-grid td { transition: background-color .12s linear; }
/* − / + / Fit: zoom the strike scale */
.r-zoom { display: inline-flex; gap: 4px; align-items: center; }
.r-zoom button { min-width: 26px; padding: 1px 8px; font-weight: 700; }
.r-zoom button[data-zoom="0"] { font-weight: 500; }

/* ---------- Income ideas, Delta finder, Gamma map, Calendars, Coiled, Volatility verdict (optionsx.js) ---------- */
.ox-mode { margin-bottom: 12px; }
.ox-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 16px; }
.ox-bar > label { display: flex; flex-direction: column; gap: 4px; font-size: 0.75rem; color: var(--muted); }
.ox-bar > label > span { display: flex; align-items: center; gap: 6px; }
.ox-sym input { width: 120px; text-transform: uppercase; font-weight: 600; }
.ox-px { font-size: 1rem; align-self: center; }
.ox-more { flex-basis: 100%; }
.ox-more summary { cursor: pointer; color: var(--muted); font-size: 0.8125rem; }
.ox-more .o-scan { margin-top: 10px; }
.ox-note { flex-basis: 100%; margin: 0; font-size: 0.8125rem; }
.ox-h { font-size: 1rem; margin: 0 0 10px; }
.ox-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ox-tiles.two { grid-template-columns: repeat(2, minmax(120px, 1fr)); }
.ox-tile { background: var(--deck-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; min-width: 0; }
.ox-tile .k { font-size: 0.75rem; color: var(--muted); }
.ox-tile .v { font-size: 1.0625rem; font-weight: 600; margin-top: 3px; }
.ox-tile .s { font-size: 0.75rem; color: var(--faint); margin-top: 3px; line-height: 1.4; }
.ox-cond h2 { margin-bottom: 10px; }
.ox-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.ox-card { display: flex; flex-direction: column; gap: 8px; margin: 0; }
.ox-card-h { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; font-size: 1rem; }
.ox-sentence { margin: 0; font-size: 0.875rem; line-height: 1.5; color: var(--text); }
.ox-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ox-mini div { background: var(--deck-2); border-radius: var(--radius-sm); padding: 6px 8px; }
.ox-mini span { display: block; font-size: 0.6875rem; color: var(--muted); }
.ox-why { margin: 0; padding-left: 18px; font-size: 0.8125rem; color: var(--muted); line-height: 1.5; }
.ox-btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; padding-top: 4px; }
.ox-big { font-size: 1.125rem; margin-top: 4px; }
.ox-open .seg { margin: 0 8px; }
.ox-open .inline { display: inline-flex; align-items: center; gap: 6px; font-size: 0.8125rem; color: var(--muted); }
.ox-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.ox-count { background: var(--deck); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 14px; }
.ox-count b { font-size: 1.5rem; display: block; }
.ox-count span { font-size: 0.75rem; color: var(--muted); }
.ox-lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 16px; align-items: start; }
.ox-lane, .ox-card, .ox-coil { margin: 0 !important; }
.ox-lane { display: flex; flex-direction: column; gap: 10px; }
.ox-lane h2 { margin: 0; }
.ox-lane > p { margin: 0; font-size: 0.8125rem; }
.ox-lane.pinned { border-top: 3px solid var(--bull); }
.ox-lane.unstable { border-top: 3px solid var(--bear); }
.ox-lane.flip { border-top: 3px solid var(--brass); }
.ox-gcard { background: var(--deck-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 12px; display: flex; flex-direction: column; gap: 6px; font-size: 0.8125rem; }
.ox-range { position: relative; height: 40px; margin: 2px 6px 4px; }
.ox-range::before { content: ''; position: absolute; left: 0; right: 0; top: 16px; height: 3px; background: var(--line); border-radius: 2px; }
.ox-range i { position: absolute; display: block; }
.ox-range .band { top: 12px; height: 11px; background: color-mix(in srgb, var(--bull) 18%, transparent); border-radius: 3px; }
.ox-range.coil .band { background: color-mix(in srgb, #a68cf0 22%, transparent); }
.ox-range i.lo { top: 6px; width: 2px; height: 22px; background: var(--bull); margin-left: -1px; }
.ox-range i.hi { top: 6px; width: 2px; height: 22px; background: var(--bear); margin-left: -1px; }
.ox-range.coil i.lo { background: var(--bear); } .ox-range.coil i.hi { background: var(--bull); }
.ox-range .dot { top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 50%; background: var(--text); }
.ox-range span { position: absolute; top: 28px; font-size: 0.6875rem; color: var(--muted); transform: translateX(-50%); white-space: nowrap; }
.ox-head { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; }
.ox-head h2 { margin: 0 0 6px; }
.ox-head p { margin: 0; line-height: 1.5; }
.ox-head .ox-tiles { flex: 1 1 420px; }
.ox-head.rich { border-left: 3px solid var(--bull); }
.ox-head.cheap { border-left: 3px solid var(--wait); }
.ox-termchart svg { display: block; max-height: 260px; }
.ox-coils { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ox-coil { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.ox-coil.big { grid-column: 1 / -1; border-color: color-mix(in srgb, #a68cf0 45%, var(--line)); }
.ox-coil .sym { font-size: 1.25rem; }
.ox-badge { font-size: 0.75rem; border-radius: 999px; padding: 3px 9px; background: color-mix(in srgb, #a68cf0 18%, transparent); color: #c4b5fd; margin-left: 4px; }
.ox-coil.broke .ox-badge { background: color-mix(in srgb, var(--brass) 18%, transparent); color: var(--brass); }
.ox-endrow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; }
.ox-endrow .ox-range { flex: 1 1 320px; }
.ox-ends { flex: 1 1 260px; font-size: 0.8125rem; }
.ox-two { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.ox-two p { margin: 6px 0 0; font-size: 0.8125rem; line-height: 1.5; }
.ox-full summary { cursor: pointer; }
.ox-full[open] summary { margin-bottom: 12px; }
@media (max-width: 1100px) {
  .ox-lanes { grid-template-columns: 1fr 1fr; }
  .ox-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .ox-cards, .ox-lanes, .ox-coils, .ox-two, .ox-counts { grid-template-columns: 1fr; }
  .ox-mini { grid-template-columns: repeat(2, 1fr); }
}
.ox-notecell { display: inline-block; min-width: 180px; font-size: 0.75rem; line-height: 1.35; }
.ox-sym #dfSyms { width: 100%; }
.ox-card-h .warn-txt { font-size: 0.8125rem; }
.ox-notes { font-size: 0.75rem; margin-top: 2px; white-space: normal; }
.ox-pick { display: flex; flex-direction: column; gap: 12px; }
.ox-pickrow { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 20px; }
.ox-slide { flex: 1 1 280px; display: flex; flex-direction: column; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.ox-slide b { color: var(--text); font-size: 0.875rem; }
.ox-slide input[type=range] { width: 100%; accent-color: var(--brass); }
.ox-mine { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; background: var(--deck-2); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.8125rem; }
.ox-mine .k { display: block; font-size: 0.6875rem; color: var(--muted); }
.ox-mine button { margin-left: auto; }
#clPairs tr.on td { background: color-mix(in srgb, var(--brass) 10%, transparent); }
