/* /new/calc — new identity on top of builder.css (which the markup still reuses for chart/grid/ruler/editor). Tokens from shell.css (--sh-*). */
main.b-main{max-width:980px;margin:0 auto;padding:12px 16px 90px}
.card{background:var(--sh-panel,#fff);border:1px solid var(--sh-line,#d4d4d4);border-radius:16px;padding:14px 16px;margin:0 0 12px}
.card h2{margin:0 0 10px;font-size:16px}
.muted{color:var(--sh-muted,#595959);font-size:13.5px;line-height:1.6}
.btn{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 18px;border-radius:999px;border:1px solid var(--sh-line,#d4d4d4);background:var(--sh-panel,#fff);color:var(--sh-ink,#000000);font:inherit;font-weight:700;cursor:pointer;text-decoration:none}
.btn.sm{min-height:36px;padding:0 14px;font-size:13.5px}.btn.primary{background:var(--sh-ink,#000000);color:var(--sh-bg,#ffffff);border-color:transparent}
/* top bar: symbol, price */
.cbar{display:flex;flex-wrap:wrap;gap:8px;align-items:center;position:relative;margin:4px 0 8px}
.cbar input{flex:0 0 120px;min-height:48px;border:1px solid var(--sh-line,#d4d4d4);border-radius:999px;padding:0 16px;font:inherit;font-weight:700;text-transform:uppercase;background:var(--sh-panel,#fff);color:inherit}
.cbar .go{min-height:48px;padding:0 20px;border-radius:999px;border:0;background:var(--sh-ink,#000000);color:var(--sh-bg,#ffffff);font:inherit;font-weight:700;cursor:pointer}
.cbar .px{display:flex;align-items:baseline;gap:10px;flex-wrap:wrap;margin-inline-start:auto}.cbar .px b{font-size:24px}.cbar .px small{color:var(--sh-muted,#595959);font-size:12.5px}
.cbar .b-suggest{top:54px;inset-inline-start:0}
.lbl{display:block;font-weight:700;font-size:13.5px;margin-bottom:6px}
#bPreset{width:100%;min-height:48px;font:inherit;font-weight:700;font-size:15px;border:1px solid var(--sh-line,#d4d4d4);border-radius:12px;padding:0 12px;background:var(--sh-panel2,#f4f4f4);color:inherit}
.vidrow{display:flex;flex-direction:column;gap:2px;padding:10px 14px;border-radius:12px;background:var(--sh-panel2,#f4f4f4);color:var(--sh-ink,#000000);text-decoration:none;font-weight:700;margin-top:8px}.vidrow small{font-weight:500;color:var(--sh-muted,#595959)}
/* dates grouped by month */
.b-dates{display:flex;gap:14px;overflow-x:auto;direction:rtl;padding:2px 0 8px}
.b-dates .mon{flex:0 0 auto}.b-dates .mon h3{margin:0 0 6px;font-size:12.5px;color:var(--sh-muted,#595959)}
.mon-items{display:flex;gap:6px}
.b-dates button{min-width:58px;min-height:52px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:0;border:1px solid var(--sh-line,#d4d4d4);border-radius:12px;background:var(--sh-panel,#fff);color:inherit;font:inherit;cursor:pointer;padding:2px 8px}
.b-dates button b{font-size:16px}.b-dates button small{font-size:11px;color:var(--sh-muted,#595959)}
.b-dates button[aria-selected=true]{background:var(--sh-ink,#000000);color:var(--sh-bg,#ffffff);border-color:transparent}.b-dates button[aria-selected=true] small{color:inherit;opacity:.8}
/* contracts in your trade */
.legs-h{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:8px}.legs-h h2{margin:0}
.step{display:flex;align-items:center;gap:4px}.step button{width:44px;height:44px;border-radius:10px;border:1px solid var(--sh-line,#d4d4d4);background:var(--sh-panel2,#f4f4f4);font-size:20px;cursor:pointer;color:inherit}
.warn-earn{margin:0;padding:6px 10px;border-radius:10px;background:var(--sh-warn-bg,#f4f4f4);color:var(--sh-warn,#000000);font-weight:700;font-size:13.5px;display:inline-block}
.ruler-d{margin-top:6px}.ruler-d summary{cursor:pointer;color:var(--sh-muted,#595959);font-size:13.5px;min-height:36px;display:flex;align-items:center}
/* six numbers */
.kpis{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin:0 0 8px}
.kpis .st{background:var(--sh-panel,#fff);border:1px solid var(--sh-line,#d4d4d4);border-radius:14px;padding:10px 12px;display:flex;flex-direction:column;gap:2px;text-align:start}
.kpis .st small{font-size:12.5px;color:var(--sh-muted,#595959)}.kpis .st b{font-size:18px;font-variant-numeric:tabular-nums}.kpis .up b{color:var(--sh-up,#0b8a42)}.kpis .down b{color:#d42a2a}
.capline{display:flex;gap:24px;flex-wrap:wrap;margin:0 0 12px}.ln{display:flex;flex-direction:column;padding:2px 0}.ln small{font-size:12.5px;color:var(--sh-muted,#595959)}.ln b{font-size:15px}
.b-meta{display:flex;gap:16px;flex-wrap:wrap;font-size:13.5px;color:var(--sh-muted,#595959);margin:0 0 12px}
/* table / chart tabs */
.tabs{display:flex;gap:2px;border-bottom:1px solid var(--sh-line,#d4d4d4);margin:0 0 12px}
.tabs>button{padding:10px 16px;min-height:44px;color:var(--sh-muted,#595959);font:inherit;font-weight:700;background:none;border:0;border-bottom:3px solid transparent;cursor:pointer}
.tabs>[aria-selected=true]{color:var(--sh-ink,#000000);border-bottom-color:var(--sh-gold,#000000)}
/* top premium */
.seg{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin:0 0 10px}.seg small{color:var(--sh-muted,#595959);font-size:12.5px;margin-inline-end:4px}
.seg button{min-height:40px;padding:0 14px;border-radius:999px;border:1px solid var(--sh-line,#d4d4d4);background:var(--sh-panel,#fff);font:inherit;font-weight:700;cursor:pointer;color:inherit}
.seg button[aria-pressed=true]{background:var(--sh-ink,#000000);color:var(--sh-bg,#ffffff);border-color:transparent}
.pm-top{display:grid;grid-template-columns:repeat(3,1fr);gap:8px 12px;margin:8px 0 12px}
.pm-t{width:100%;border-collapse:collapse;font-size:14px}.pm-t th,.pm-t td{padding:8px 6px;border-bottom:1px solid var(--sh-line,#d4d4d4);text-align:start}.pm-t th{font-size:12.5px;color:var(--sh-muted,#595959);font-weight:600}
.sc{overflow-x:auto}.capmax{display:flex;flex-direction:column;gap:2px;margin:0 0 10px;max-width:220px}.capmax input{min-height:44px;border:1px solid var(--sh-line,#d4d4d4);border-radius:10px;padding:0 10px;font:inherit;background:var(--sh-panel,#fff);color:inherit}
details.card>summary{cursor:pointer;font-weight:700;min-height:36px;display:flex;align-items:center}
.b-score.locked .btn{margin-top:8px}.b-score{background:var(--sh-panel,#fff)}
.b-actions .btn{flex:1 1 140px}
.top-note{color:var(--sh-muted,#595959);font-size:12.5px;line-height:1.7}
@media(max-width:640px){.kpis,.pm-top{grid-template-columns:repeat(2,1fr)}.cbar input{flex:1 1 100px}.cbar .px{margin-inline-start:0;width:100%}}

/* compact contract row: one line (side, type, strike with +/-, expiry); tap the row to open price / Bid-Ask / count */
.leg{border:1px solid var(--sh-line,#d4d4d4);border-radius:12px;padding:4px 10px;margin-bottom:6px;cursor:pointer}
.leg-row{display:flex;align-items:center;gap:8px 10px;flex-wrap:wrap;min-height:48px}
.tag{padding:2px 10px;border-radius:999px;font-size:13px;font-weight:700;border:1px solid var(--sh-ink,#141412);color:var(--sh-ink,#141412)}
/* buy is always green and sell always red, whatever the option type (owner 2026-11-03) */
.tag.tg-buy{color:var(--sh-up,#0b8a42);border-color:var(--sh-up,#0b8a42)}.tag.tg-sell{color:var(--down,#d42a2a);border-color:var(--down,#d42a2a)}
.k-call{color:var(--sh-up,#0b8a42)}.k-put{color:#d42a2a}.leg-row b{font-size:15px}
.leg-row .step button{width:36px;height:36px;font-size:18px}.leg-row .step input{width:72px;min-height:36px;border:1px solid var(--sh-line,#d4d4d4);border-radius:8px;text-align:center;font:inherit;background:var(--sh-panel,#fff);color:inherit}
.leg-row .exp{font-size:13.5px;color:var(--sh-muted,#595959)}
.leg-row .more,.leg-row .x{border:0;background:none;cursor:pointer;color:var(--sh-muted,#595959);min-width:44px;min-height:44px;font-size:16px}.leg-row .more{margin-inline-start:auto}
.leg-d{display:flex;gap:6px 16px;flex-wrap:wrap;padding:6px 0 10px;border-top:1px solid var(--sh-line,#d4d4d4);cursor:default}.leg-d[hidden]{display:none}
.leg-d label{display:flex;flex-direction:column;gap:2px}.leg-d small{font-size:12.5px;color:var(--sh-muted,#595959)}
.leg-d input{width:96px;min-height:40px;border:1px solid var(--sh-line,#d4d4d4);border-radius:10px;padding:0 8px;font:inherit;text-align:center;background:var(--sh-panel,#fff);color:inherit}
@media(max-width:480px){.leg-row{gap:4px 6px}.leg-row .more,.leg-row .x{min-width:32px}.leg-row .step button{width:32px}.leg-row .step input{width:56px}.leg-row .exp{font-size:12.5px}.leg-row .more{margin-inline-start:0}}

/* option menus (select) instead of button groups */
.optrow{display:flex;gap:12px;flex-wrap:wrap;margin:0 0 10px}.optcol{display:flex;flex-direction:column;gap:4px;flex:1 1 160px;min-width:0}.optcol small{font-size:12.5px;color:var(--sh-muted,#595959)}
.optcol select,.optcol input,#bDateSel,.er select{min-height:46px;width:100%;border:1px solid var(--sh-line,#d4d4d4);border-radius:12px;padding:0 12px;font:inherit;font-weight:700;background:var(--sh-panel,#fff);color:inherit}
.optcol input[hidden]{display:none}
