/* 一看就懂的美股期权 第 6 章 做卖方（后缀 b6）：保证金计算器（组件 6）、卖方场景方格、六条纪律、保证金曲线、各档隐含波动率图。
   类名一律 ob6- 开头；颜色只用全站令牌，绿涨红跌、亏损不用绿；没有动画。 */

/* ---------- 保证金计算器 */
.ob6-mc{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.ob6-row{display:grid;grid-template-columns:3.2em minmax(0,1fr);gap:6px 10px;align-items:start}
.ob6-lab{padding-top:7px;font-size:var(--fs-small,13px);color:var(--sub)}
.ob6-chips,.ob6-seg{display:flex;flex-wrap:wrap;gap:8px}
.ob6-chip,.ob6-seg-b{max-width:100%;min-height:34px;padding:4px 12px;line-height:1.4;text-align:left;border:1px solid var(--line2,var(--line));border-radius:999px;background:var(--card);color:var(--prose);font:inherit;font-size:var(--fs-aux,14px);cursor:pointer;font-variant-numeric:tabular-nums}
.ob6-seg-b{border-radius:var(--r-sm,10px)}
.ob6-chip:hover,.ob6-seg-b:hover{border-color:var(--accent-line);color:var(--text)}
.ob6-chip[aria-pressed="true"],.ob6-seg-b[aria-pressed="true"]{border-color:var(--accent);background:var(--accent-soft);color:var(--text);font-weight:600}
.ob6-chip:focus-visible,.ob6-seg-b:focus-visible{outline:2px solid var(--accent);outline-offset:1px}
.ob6-row[hidden]{display:none}
.ob6-mc .oc-calc-f{grid-template-columns:11em minmax(0,1fr)}
.ob6-f{display:block;font-size:var(--fs-aux,14px);font-weight:400;line-height:1.6;color:var(--sub);font-variant-numeric:tabular-nums}
.ob6-f.is-on{color:var(--text);font-weight:600}
.ob6-st:empty{display:none}
.ob6-st .oc-tbl td,.ob6-st .oc-tbl th{white-space:nowrap;font-variant-numeric:tabular-nums}
.ob6-st-note{margin:8px 0 0;font-size:var(--fs-small,13px);line-height:1.65;color:var(--sub)}
@media(max-width:640px){
  .ob6-row{grid-template-columns:minmax(0,1fr);gap:4px}
  .ob6-lab{padding-top:0}
  .ob6-mc .oc-calc-grid{grid-template-columns:minmax(0,1fr)}
  .ob6-mc .oc-calc-f{grid-template-columns:8.5em minmax(0,1fr)}
  .ob6-st .oc-tbl th,.ob6-st .oc-tbl td{padding:8px 6px;font-size:var(--fs-small,13px)}
}

/* ---------- 2×2 方格（卖方四个场景、两款产品） */
.ob6-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px;margin:4px 0 12px}
.ob6-g{min-width:0;padding:12px 14px;border:1px solid var(--line2,var(--line));border-radius:var(--r-sm,10px);background:var(--card)}
.ob6-g b{font-size:var(--fs-ui,15px);color:var(--text)}
.ob6-g-tag{display:inline-block;margin-left:8px;padding:0 8px;border-radius:999px;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent);font-size:var(--fs-tiny,12px);font-weight:600;line-height:1.7;vertical-align:1px}
.ob6-g p{margin:6px 0 0;font-size:var(--fs-aux,14px);line-height:1.65;color:var(--prose)}
.ob6-g .ob6-g-do{padding-top:6px;border-top:1px solid var(--line);color:var(--text)}
.ob6-g .ob6-g-do a{color:var(--accent)}
.ob6-g .oc-neg{color:var(--ch-down)}
.ob6-g .oc-pos{color:var(--ch-up)}
@media(max-width:640px){.ob6-grid{grid-template-columns:minmax(0,1fr)}}
.ob6-grid-tight{margin:0}

/* ---------- 6-4 六条纪律 */
.ob6-rules{list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
.ob6-r{display:grid;grid-template-columns:2em minmax(0,1fr);gap:10px;min-width:0;padding:12px 14px;border:1px solid var(--line2,var(--line));border-radius:var(--r-sm,10px);background:var(--card)}
.ob6-r-n{display:inline-flex;align-items:center;justify-content:center;width:2em;height:2em;border-radius:50%;border:1px solid var(--accent-line);background:var(--accent-soft);color:var(--accent);font-weight:600;font-variant-numeric:tabular-nums}
.ob6-r b{font-size:var(--fs-ui,15px);color:var(--text)}
.ob6-r p{margin:4px 0 0;font-size:var(--fs-aux,14px);line-height:1.65;color:var(--prose)}
.ob6-r .ob6-r-num{color:var(--accent);font-weight:600}
@media(max-width:640px){.ob6-rules{grid-template-columns:minmax(0,1fr)}}

/* ---------- 6-1 结局横条：赚的那一档用绿 */
.ob6-hb .ob5-hb-r.is-pos .ob5-hb-bar i{background:var(--ch-up-soft);border-color:var(--ch-up-line)}
.ob6-hb .ob5-hb-r.is-pos .ob5-hb-bar b{color:var(--ch-up)}

/* ---------- 图下的延伸链接、卡片和正文的间距 */
.ob6-more{margin:10px 0 0;font-size:var(--fs-aux,14px);line-height:1.65;color:var(--sub)}
.ob6-more a{color:var(--accent)}
.ob6-gap{margin:0 0 14px}

/* ---------- 图 */
.oc-svg .ob6-val{stroke:var(--info);stroke-width:1.4;stroke-dasharray:2 3}
.oc-svg .ob6-a{stroke:var(--sub);stroke-width:1.2;stroke-dasharray:6 4}
.oc-svg .ob6-b{stroke:var(--mute,var(--sub));stroke-width:1.2;stroke-dasharray:2 4}
.oc-svg circle.ob6-dot{fill:var(--ch-down)}
.oc-svg circle.ob6-dot-lo{fill:var(--accent)}
.oc-svg text.ob6-dot-t{fill:var(--ch-down);font-size:var(--fs-tiny,12px);font-weight:600}
.oc-svg text.ob6-dot-t-lo{fill:var(--accent)}
.oc-svg .ob6-bar{fill:var(--accent-soft2,var(--accent-soft));stroke:var(--accent-line);stroke-width:1}
.oc-svg .ob6-rng{stroke:var(--ch-down);stroke-width:2;fill:none;stroke-linecap:round}
.oc-svg .ob6-rng-open{stroke-dasharray:3 3}
.oc-svg circle.ob6-mid{fill:var(--ch-down);stroke:var(--card);stroke-width:1.2}
.oc-legend .ob6-val i{border-top:1.5px dotted var(--info)}
.oc-legend .ob6-a i{border-top:1.5px dashed var(--sub)}
.oc-legend .ob6-b i{border-top:1.5px dotted var(--mute,var(--sub))}
.oc-legend .ob6-dot i{width:9px;height:9px;border:0;border-radius:50%;background:var(--ch-down)}
.ob6-legend .ob6-lg-bar i{width:12px;height:12px;border:1px solid var(--accent-line);background:var(--accent-soft2,var(--accent-soft));border-radius:2px}
.ob6-legend .ob6-lg-rng i{width:2px;height:14px;border:0;background:var(--ch-down)}
