/* 상속분 계산기 (2026-10-25, 양육비 계산기와 같은 틀) */
.sb-hero { padding: 56px 0 28px; }
.sb-hero .h2-crumb { margin-bottom: 28px; }
.sb-h1 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.2; font-weight: 700; letter-spacing: -.035em; margin: 0; }
.sb-lead { font-size: 17px; line-height: 1.7; color: var(--h2-sub); margin: 16px 0 0; max-width: 760px; }
.sb-ver { display: inline-block; margin: 16px 0 0; padding: 6px 14px; border-radius: 999px; background: var(--h2-tint); font-size: 13px; color: var(--h2-sub); line-height: 1.5; }

.sb-tool { padding: 12px 0 72px; }
.sb-card { background: #fff; border: 1px solid var(--h2-line); border-radius: 22px; min-width: 0; }
.sb-card-h { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; padding: 16px 20px; border-bottom: 1px solid #eee8de; }
.sb-card-h h2 { font-size: 17px; letter-spacing: -.02em; margin: 0 auto 0 0; }
.sb-decsel { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--h2-sub); }
.sb-decsel select { height: 38px; max-width: 150px; }
.sb-tbtn, .sb-btn { height: 38px; padding: 0 14px; border: 1px solid var(--h2-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--h2-ink); cursor: pointer; }
.sb-tbtn:hover, .sb-btn:hover { border-color: var(--h2-navy); }
.sb-tbtn.round { width: 38px; padding: 0; font-size: 18px; }
.sb-tbtn.main { background: var(--h2-navy); border-color: var(--h2-navy); color: #fff; }
.sb-tbtn.main i { margin-right: 6px; }
.sb-imgmsg { font-size: 13px; color: var(--h2-accent-dark); }

.sb-tree { overflow: auto; max-height: 66vh; min-height: 240px; background: #fbf9f4; background-image: radial-gradient(#e9e2d6 1px, transparent 1px); background-size: 18px 18px; border-radius: 0 0 22px 22px; -webkit-overflow-scrolling: touch; }
.sb-tree svg { display: block; margin: 0 auto; }
.sb-n { cursor: pointer; }
.sb-n:focus { outline: none; }
.sb-n rect.b { fill: #fff; stroke: var(--h2-line); stroke-width: 1.2; }
.sb-n.dead rect.b { fill: #f1ece4; }
.sb-n.heir rect.b { stroke: var(--h2-accent); stroke-width: 1.8; }
.sb-n.dec rect.b { fill: var(--h2-navy); stroke: var(--h2-navy); }
.sb-n.sel rect.b, .sb-n:focus-visible rect.b { stroke: var(--h2-accent); stroke-width: 3.4; }
.sb-n.dec.sel rect.b { stroke: var(--h2-accent); }
.sb-n text { font-family: inherit; fill: var(--h2-ink); }
.sb-n text.nm { font-size: 13px; font-weight: 700; }
.sb-n.dead text.nm { fill: var(--h2-sub); }
.sb-n text.st { font-size: 10.5px; fill: var(--h2-sub); }
.sb-n rect.tag { fill: #fbe6dc; }
.sb-n text.tg { font-size: 10.5px; font-weight: 700; fill: var(--h2-accent-dark); font-variant-numeric: tabular-nums; }
.sb-n.dec text.nm, .sb-n.dec text.tg { fill: #fff; }
.sb-n.dec text.st { fill: rgba(255,255,255,.78); }
.sb-n.dec rect.tag { fill: rgba(255,255,255,.16); }
.sb-e { fill: none; stroke: var(--h2-sub); stroke-width: 1.3; }
.sb-e.div { stroke-dasharray: 6 4; }
.sb-e.ad { stroke-dasharray: 2 4; stroke-width: 1.7; }
.sb-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; padding: 10px 20px 14px; font-size: 13px; color: var(--h2-sub); }
.sb-legend i { display: inline-block; width: 20px; vertical-align: middle; margin-right: 6px; border-top: 1.4px solid var(--h2-sub); }
.sb-legend i.div { border-top-style: dashed; }
.sb-legend i.ad { border-top-style: dotted; border-top-width: 2px; }
.sb-legend i.nm { border-top-color: #c2b6a4; }
.sb-legend b { display: inline-block; width: 13px; height: 13px; border-radius: 4px; vertical-align: -2px; margin-right: 6px; border: 1.8px solid var(--h2-accent); background: #fff; }

.sb-cols { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 24px; align-items: start; margin-top: 24px; }
.sb-pad { padding: 20px; display: grid; gap: 14px; }

/* 입력 */
.sb-who { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.sb-who strong { font-size: 19px; letter-spacing: -.02em; }
.sb-pill { display: inline-block; padding: 2px 10px; border-radius: 999px; background: var(--h2-tint); color: var(--h2-sub); font-size: 12px; font-weight: 700; white-space: nowrap; }
.sb-pill.navy { background: var(--h2-navy); color: #fff; }
td .sb-pill { margin: 4px 0 0; display: inline-block; background: #fbe6dc; color: var(--h2-accent-dark); }
.sb-f { display: grid; gap: 5px; min-width: 0; }
.sb-f > span { font-size: 13px; font-weight: 700; color: var(--h2-ink); }
.sb-f > span i { font-style: normal; font-weight: 600; color: var(--h2-accent); margin-left: 4px; }
.sb-in { width: 100%; min-width: 0; box-sizing: border-box; height: 46px; border: 1.5px solid var(--h2-line); border-radius: 12px; padding: 0 12px; font: inherit; font-size: 15px; color: var(--h2-ink); background: #fbf9f4; }
.sb-in:focus { outline: none; border-color: var(--h2-navy); background: #fff; }
.sb-g2 { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
/* 날짜 입력칸: 날짜 글자와 달력 아이콘이 칸 밖으로 나가지 않게 (2026-10-26) */
input[type="date"].sb-in { -webkit-appearance: none; appearance: none; min-width: 0; max-width: 100%; padding: 0 8px 0 12px; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
input[type="date"].sb-in::-webkit-datetime-edit { padding: 0; }
input[type="date"].sb-in::-webkit-date-and-time-value { text-align: left; margin: 0; }
input[type="date"].sb-in::-webkit-calendar-picker-indicator { margin: 0 0 0 4px; padding: 2px; cursor: pointer; }

.sb-sec { margin: 6px 0 -4px; font-size: 13px; font-weight: 700; color: var(--h2-navy); letter-spacing: .02em; padding-top: 12px; border-top: 1px solid #eee8de; }
.sb-chk { display: flex; gap: 8px; align-items: flex-start; font-size: 14px; color: var(--h2-sub); line-height: 1.5; }
.sb-chk input { margin-top: 3px; accent-color: var(--h2-navy); }
.sb-mar { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--h2-line); border-radius: 14px; background: #fdfcf9; }
.sb-quick { display: flex; flex-wrap: wrap; gap: 6px; }
.sb-quick button { height: 40px; padding: 0 14px; border: 1.5px dashed var(--h2-line); border-radius: 999px; background: none; font: inherit; font-size: 14px; font-weight: 700; color: var(--h2-navy); cursor: pointer; }
.sb-quick button:hover { border-color: var(--h2-navy); }
.sb-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding-top: 6px; }
.sb-link { border: 0; background: none; padding: 0; font: inherit; font-size: 14px; color: var(--h2-sub); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; justify-self: start; }
.sb-link.warn { color: var(--h2-accent-dark); }
.sb-hint { margin: 0; font-size: 13px; line-height: 1.6; color: var(--h2-sub); }
.sb-sample { padding: 10px 14px; border-radius: 12px; background: var(--h2-tint); }
.sb-empty { margin: 0; padding: 28px 20px; color: var(--h2-sub); font-size: 15px; }

/* 결과 */
.sb-sum { background: var(--h2-navy); color: #fff; border-radius: 22px; padding: 24px 26px 22px; }
.sb-sum-h { margin: 0; font-size: 17px; font-weight: 700; }
.sb-sum-s { margin: 4px 0 0; font-size: 14px; opacity: .75; line-height: 1.6; }
.sb-final { list-style: none; margin: 16px 0 0; padding: 14px 0 0; border-top: 1px solid rgba(255,255,255,.18); display: grid; gap: 8px; }
.sb-final li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 16px; }
.sb-final em { font-style: normal; opacity: .65; margin-left: 8px; font-size: 14px; }
.sb-final b { font-size: 22px; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sb-notes { display: grid; gap: 8px; margin-top: 12px; }
.sb-notes p { margin: 0; padding: 11px 15px; border-radius: 12px; background: var(--h2-tint); color: var(--h2-ink); font-size: 14px; line-height: 1.6; }
.sb-notes p.err { background: #fdf0ea; color: #8a3a1f; }
.sb-box { margin-top: 14px; background: #fff; border: 1px solid var(--h2-line); border-radius: 18px; padding: 16px 18px; }
.sb-h3 { margin: 30px 2px 0; font-size: 18px; letter-spacing: -.02em; }
.sb-tw { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.sb-t { border-collapse: collapse; width: 100%; font-size: 14px; }
.sb-t th, .sb-t td { text-align: left; padding: 9px 8px; border-bottom: 1px solid #eee8de; vertical-align: top; }
.sb-t tr:last-child td { border-bottom: 0; }
.sb-t th { font-size: 12px; font-weight: 700; color: var(--h2-sub); white-space: nowrap; }
.sb-t .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sb-t td.nm { font-weight: 700; white-space: nowrap; }
.sb-t td small { display: block; font-weight: 400; font-size: 12px; color: var(--h2-sub); }
.sb-t td.why { min-width: 170px; color: var(--h2-sub); line-height: 1.5; }
.sb-t b { color: var(--h2-navy); }
.sb-t tr.x td { color: #8d8a83; }
.sb-mini { height: 32px; border: 1px solid var(--h2-line); border-radius: 8px; background: #fbf9f4; font: inherit; font-size: 13px; color: var(--h2-ink); padding: 0 4px; }
.sb-reg { margin: 10px 2px 0; font-size: 14px; color: var(--h2-sub); line-height: 1.6; }
.sb-step-h { margin: 0; font-size: 16px; font-weight: 700; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.sb-step-h b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; align-items: center; justify-content: center; background: var(--h2-navy); color: #fff; font-size: 13px; }
.sb-step-h span { font-size: 13px; font-weight: 500; color: var(--h2-sub); }
.sb-step-m { margin: 6px 0 8px; font-size: 14px; color: var(--h2-sub); }
.sb-copyrow { display: flex; align-items: center; gap: 12px; margin-top: 16px; font-size: 14px; color: var(--h2-accent-dark); }
.sb-warn { margin: 14px 4px 0; font-size: 13px; line-height: 1.65; color: var(--h2-sub); }

/* 설명 */
.sb-info { padding: 40px 0 120px; border-top: 1px solid var(--h2-line); }
.sb-info h2 { font-size: 20px; letter-spacing: -.02em; margin: 0 0 10px; }
.sb-how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 32px; }
.sb-how b { display: inline-flex; width: 34px; height: 34px; border-radius: 50%; align-items: center; justify-content: center; background: var(--h2-navy); color: #fff; font-size: 15px; margin-bottom: 14px; }
.sb-how p { font-size: 16px; line-height: 1.75; color: var(--h2-sub); margin: 0; }
.sb-faq { margin-top: 64px; }
.sb-faq summary { font-size: 17px; padding: 22px 4px; }
.sb-faq .h2-faq-a p { font-size: 16px; line-height: 1.8; color: var(--h2-sub); margin: 0 4px 22px; }
.sb-related { margin-top: 64px; }
.sb-rel-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 16px; }
.sb-rel-grid a { display: block; text-decoration: none; padding: 18px; border: 1px solid var(--h2-line); border-radius: 16px; background: #fff; transition: border-color .2s, transform .2s; }
.sb-rel-grid a:hover { border-color: var(--h2-accent); transform: translateY(-2px); }
.sb-rel-grid b { display: block; font-size: 15px; color: var(--h2-ink); }
.sb-rel-grid span { display: block; font-size: 13px; color: var(--h2-sub); margin-top: 4px; }

@media (max-width: 900px) {
  .sb-cols { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .sb-how { grid-template-columns: 1fr; gap: 22px; }
  .sb-rel-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .h2-wrap { padding: 0 16px; }
  .sb-hero { padding: 28px 0 16px; }
  .sb-hero .h2-crumb { margin-bottom: 18px; }
  .sb-lead { font-size: 15px; }
  .sb-card { border-radius: 18px; }
  .sb-card-h { padding: 14px 14px; }
  .sb-card-h h2 { width: 100%; }
  .sb-tree { max-height: 58vh; border-radius: 0 0 18px 18px; }
  .sb-pad { padding: 16px 14px; }
  .sb-sum { padding: 20px 18px; border-radius: 18px; }
  .sb-box { padding: 14px 12px; }
  .sb-legend { padding: 10px 14px 12px; font-size: 12px; }
}
@media (max-width: 420px) {
  .sb-g2 { grid-template-columns: minmax(0, 1fr); }
  .sb-g2 > span:empty { display: none; }
}
@media (prefers-reduced-motion: reduce) { .sb-rel-grid a { transition: none; } }

/* 구 민법 단계 (2026-10-26) */
.sb-step-law { margin: -4px 0 8px; font-size: 13px; color: var(--h2-sub); }
.sb-old { margin-top: 12px; padding: 14px 16px; border: 1px solid var(--h2-line); border-radius: 12px; background: #fbf9f4; display: grid; gap: 10px; }
.sb-oldf { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; font-size: 14px; }
.sb-oldf > span { min-width: 84px; font-weight: 700; color: var(--h2-ink); }
.sb-gjs { display: flex; flex-wrap: wrap; gap: 8px 14px; flex: 1; }
.sb-gj { display: inline-flex; align-items: center; gap: 6px; }
.sb-gj em { font-style: normal; font-size: 13px; color: var(--h2-ink); }
.sb-old-h { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--h2-sub); }
.sb-pill.hj { background: #fbe6dc; color: #c94f2b; margin: 2px 4px 0 0; }
@media (max-width: 640px) { .sb-oldf > span { min-width: 0; width: 100%; } .sb-gj { width: 100%; justify-content: space-between; } }

/* 저장·불러오기, 대략적인 사망 시기 (2026-10-26) */
.sb-tbtn i { margin-right: 6px; font-size: 13px; }
.sb-filemsg { width: 100%; font-size: 13px; color: var(--h2-accent-dark); }
.sb-filemsg:empty { display: none; }
.sb-approx { display: grid; gap: 10px; padding: 12px 14px; border: 1px solid var(--h2-line); border-radius: 12px; background: #fbf9f4; }
.sb-seg { display: inline-flex; border: 1px solid var(--h2-line); border-radius: 999px; overflow: hidden; background: #fff; justify-self: start; }
.sb-seg button { border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; padding: 8px 14px; color: var(--h2-sub); cursor: pointer; }
.sb-seg button.on { background: var(--h2-navy); color: #fff; }
.sb-nosex { padding: 10px 12px; border-radius: 10px; background: #fdf0ea; }
.sb-nosex > span { color: #8a3a1f; }
/* 계산 전에 확인할 것 (2026-10-26) */
.sb-ask { margin-bottom: 14px; padding: 18px 20px; border: 2px solid var(--h2-accent); border-radius: 16px; background: #fff; display: grid; gap: 12px; }
.sb-ask-h { margin: 0; font-size: 16px; font-weight: 800; color: var(--h2-ink); }
.sb-ask-h span { display: inline-block; margin-left: 6px; padding: 1px 9px; border-radius: 999px; background: var(--h2-accent); color: #fff; font-size: 12px; vertical-align: 2px; }
.sb-ask-q { padding-top: 12px; border-top: 1px solid #eee8de; display: grid; gap: 8px; }
.sb-ask-q p { margin: 0; font-size: 14.5px; line-height: 1.6; }
.sb-ask-a { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.sb-tmp { display: inline-block; margin-left: 8px; padding: 1px 9px; border-radius: 999px; background: var(--h2-accent); color: #fff; font-size: 12px; font-weight: 700; vertical-align: 2px; }
.sb-ask-row { justify-content: space-between; padding: 4px 0; }
.sb-ask-row em { font-style: normal; font-weight: 700; font-size: 14.5px; }
.sb-ask-pick { gap: 8px; }
.sb-pick { height: 38px; padding: 0 14px; border: 1px solid var(--h2-line); border-radius: 999px; background: #fff; font: inherit; font-size: 14px; font-weight: 600; color: var(--h2-ink); cursor: pointer; }
.sb-pick:hover { border-color: var(--h2-navy); }
.sb-pick i { font-style: normal; font-weight: 500; font-size: 12px; color: var(--h2-sub); margin-left: 4px; }

/* 인쇄 (2026-10-26) */
.sb-print, .sb-print-end, .sb-wm, .sb-print-only { display: none; }
.sb-copyrow .sb-btn i { margin-right: 4px; }
@media print {
  @page {
    size: A4 portrait; margin: 14mm 13mm 16mm;
    @bottom-left { content: "오변호사 법률사무소 · 031-647-8655 · 참고용 계산"; font-size: 8pt; color: #777; font-family: 'Pretendard', sans-serif; }
    @bottom-right { content: counter(page) " / " counter(pages); font-size: 8pt; color: #777; font-family: 'Pretendard', sans-serif; }
  }
  html, body { background: #fff !important; }
  body { font-size: 10pt; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none !important; animation: none !important; transition: none !important; }
  .ol-header, .ol-mmenu, .ol-footer, #premium-floating-nav, .floating-container, .ol-float, .ol-notice,
  .sb-hero, .sb-info, #sb-edit-panel, .sb-card-h, .sb-copyrow, .sb-ask, .sb-old, .sb-mini, .sb-imgmsg { display: none !important; }
  .sb-print, .sb-print-end, .sb-print-only { display: block !important; }
  .h2-wrap { max-width: none; padding: 0 !important; }
  .sb-tool { padding: 0; }

  .sb-print-head { display: flex; align-items: center; gap: 14px; padding-bottom: 8px; border-bottom: 2px solid #10305a; margin-bottom: 10px; }
  .sb-print-head img { width: 34mm; height: auto; }
  .sb-print-head .t { margin: 0; font-size: 17pt; font-weight: 700; color: #10305a; letter-spacing: -.02em; }
  .sb-print-head .s { margin: 2px 0 0; font-size: 9pt; color: #555; }

  .sb-card { border: 1px solid #cfc8bc; border-radius: 10px; break-inside: avoid; }
  .sb-tree { max-height: none !important; min-height: 0; overflow: visible !important; background: #fff !important; padding: 6px 0; }
  .sb-tree svg { width: 100% !important; height: auto !important; max-height: 150mm; }
  .sb-n.sel .b { stroke: inherit; }
  .sb-legend { padding: 4px 10px 6px; font-size: 8pt; }
  .sb-legend span:last-child { display: none; }

  .sb-cols { display: block; margin-top: 10px; }
  #sb-result > * { break-inside: avoid; }
  .sb-sum { background: #10305a !important; color: #fff !important; border-radius: 10px; padding: 12px 16px; }
  .sb-final { margin-top: 8px; padding-top: 8px; gap: 3px; grid-template-columns: 1fr 1fr; column-gap: 18px; }
  .sb-final li { font-size: 10pt; }
  .sb-final b { font-size: 12pt; }
  .sb-notes p { font-size: 8.8pt; padding: 6px 10px; border-radius: 6px; }
  .sb-box { border-radius: 10px; padding: 8px 12px; margin-top: 8px; border-color: #cfc8bc; }
  .sb-box.sb-step { break-inside: auto; }
  .sb-h3 { font-size: 11.5pt; margin: 14px 0 6px; color: #10305a; break-after: avoid; }
  .sb-step-h { font-size: 10.5pt; break-after: avoid; }
  .sb-step-h b { width: 20px; height: 20px; font-size: 9pt; }
  .sb-step-m, .sb-step-law, .sb-old-p { font-size: 8.5pt; margin: 3px 0; }
  .sb-old-p { color: #10305a; font-weight: 600; }
  .sb-tw { overflow: visible; }
  .sb-t { font-size: 8.8pt; }
  .sb-t th, .sb-t td { padding: 4px 6px; }
  .sb-t tr { break-inside: avoid; }
  .sb-step .sb-t th:last-child, .sb-step .sb-t td:last-child { display: none; }
  .sb-reg { font-size: 8.5pt; }
  .sb-warn { font-size: 8.5pt; margin: 10px 0 0; }
  .sb-print-end { margin-top: 10px; padding-top: 8px; border-top: 1px solid #cfc8bc; font-size: 8.5pt; color: #444; line-height: 1.6; break-inside: avoid; }
  .sb-print-end p { margin: 0; }
  .sb-wm { display: flex !important; position: fixed; left: 50%; top: 50%; width: 150mm; transform: translate(-50%, -50%) rotate(-28deg); flex-direction: column; align-items: center; gap: 4mm; opacity: .07; pointer-events: none; z-index: 50; }
  .sb-wm img { width: 120mm; height: auto; }
  .sb-wm span { font-size: 15pt; font-weight: 700; color: #333; letter-spacing: .1em; white-space: nowrap; }
}
.sb-t th.sb-th2 { white-space: nowrap; line-height: 1.35; }

/* 가계도에서 가족 더하기 (2026-10-26) */
.sb-tacts { opacity: 0; pointer-events: none; transition: opacity .12s; }
.sb-n:hover .sb-tacts, .sb-n.sel .sb-tacts { opacity: 1; pointer-events: auto; }
.sb-ta rect { fill: var(--h2-accent); stroke: #fff; stroke-width: 1.5; }
.sb-ta text { font-size: 10.5px; font-weight: 700; fill: #fff !important; pointer-events: none; }
.sb-ta:hover rect { fill: var(--h2-accent-dark); }
@media (hover: none) { .sb-n:hover .sb-tacts { opacity: 0; pointer-events: none; } .sb-n.sel .sb-tacts { opacity: 1; pointer-events: auto; } }
@media print { .sb-tacts, .sb-pop { display: none !important; } }
.sb-e { pointer-events: none; }

/* 혼인하지 않은 부모 선, 누구와의 자녀인지 묻는 창 (2026-10-26) */
.sb-e.nm { stroke: #c2b6a4; }
.sb-pop { position: fixed; z-index: 60; width: min(300px, calc(100vw - 16px)); background: #fff; border: 1px solid var(--h2-line, #d9d1c4); border-radius: 14px; box-shadow: 0 10px 30px rgba(16,48,90,.18); padding: 14px; display: flex; flex-direction: column; gap: 6px; }
.sb-pop p { margin: 0 0 4px; font-size: 14px; font-weight: 700; color: var(--h2-navy); }
.sb-pop button { text-align: left; font: inherit; font-size: 14.5px; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--h2-line, #d9d1c4); background: var(--h2-bg, #faf7f2); color: var(--h2-ink, #1c2230); cursor: pointer; }
.sb-pop button:hover, .sb-pop button:focus-visible { border-color: var(--h2-accent); background: #fff; outline: none; }
.sb-pop button i { font-style: normal; color: var(--h2-sub); font-size: 13px; }
.sb-pop small { font-size: 12.5px; line-height: 1.5; color: var(--h2-sub); margin-top: 2px; }
.sb-hint .sb-link { display: inline; padding: 0; }
.sb-pop p.sub { font-size: 13px; font-weight: 600; color: var(--h2-sub); margin: 6px 0 0; }
.sb-pop-c { display: flex; align-items: center; gap: 8px; font-size: 14.5px; padding: 6px 4px; cursor: pointer; }
.sb-pop-c input { width: 18px; height: 18px; accent-color: var(--h2-accent); }
.sb-pop button.ok { text-align: center; background: var(--h2-accent); border-color: var(--h2-accent); color: #fff; font-weight: 700; margin-top: 4px; }
.sb-pop button.ok:hover { background: var(--h2-accent-dark); color: #fff; }
.sb-adopt { margin: 4px 0 6px; padding: 12px 14px; border-radius: 12px; background: var(--h2-bg, #faf7f2); border: 1px solid var(--h2-line, #e6ddd0); }

.sb-e.dfx { stroke-dasharray: 10 3 2 3; }
.sb-legend i.dfx { border-top-style: dashed; border-top-color: var(--h2-accent); }
.sb-bigamy { margin: 6px 0 10px; }
.sb-man { margin-top: 10px; font-size: 14px; }
.sb-man summary { cursor: pointer; color: var(--h2-sub); font-weight: 600; }
.sb-man[open] { padding: 10px 12px; border-radius: 12px; background: var(--h2-bg, #faf7f2); border: 1px solid var(--h2-line, #e6ddd0); }
.sb-man-r { display: flex; gap: 8px; align-items: center; margin: 6px 0; flex-wrap: wrap; }
.sb-man-r input { width: 7em; }
@media print { .sb-man { display: none !important; } }
