/* ============================================================
   opyeb · 결과 액션 바 (Result Action Bar) — v14-2
   결과 카드 바로 아래에 '복사 / 내보내기 / 인쇄 / 다음 계산 / 허브·스튜디오'를 붙인다.
   - 고정(fixed) 아님: 결과를 가리지 않고, 기존 #mbar(있으면)와 겹치지 않는다.
   - 44px 터치 타깃, safe-area 대응, 다크 테마 변수 상속.
   ============================================================ */
.opyeb-rn {
  --rn-line: color-mix(in srgb, currentColor 14%, transparent);
  --rn-bg: color-mix(in srgb, currentColor 4%, transparent);
  --rn-accent: #b8860b;
  margin: 12px 0 0;
  border: 1px solid var(--rn-line);
  border-radius: 14px;
  background: var(--rn-bg);
  padding: 12px;
  font-size: 15px;
  line-height: 1.35;
  box-sizing: border-box;
}
.opyeb-rn *,
.opyeb-rn *::before,
.opyeb-rn *::after { box-sizing: border-box; }
.opyeb-rn__label {
  margin: 0 0 8px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .7;
  color: inherit;
}
.opyeb-rn__actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 8px;
}
.opyeb-rn__btn {
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--rn-line);
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  cursor: pointer;
  touch-action: manipulation;
}
.opyeb-rn__btn:active { transform: translateY(1px); }
.opyeb-rn__btn--primary {
  border-color: var(--rn-accent);
  background: var(--rn-accent);
  color: #fff;
}
.opyeb-rn__status {
  min-height: 18px;
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--rn-accent);
}
.opyeb-rn__status:empty { display: none; }
.opyeb-rn__tools {
  margin: 12px 0 0;
  padding: 10px 0 0;
  border-top: 1px dashed var(--rn-line);
}
.opyeb-rn__tools ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.opyeb-rn__tools a {
  text-decoration: none !important;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 44px;
  padding: 6px 10px;
  border: 1px solid var(--rn-line);
  border-radius: 10px;
  color: inherit;
  font-weight: 600;
  font-size: 14px;
}
.opyeb-rn__tools a span {
  display: block;
  font-weight: 400;
  font-size: 12.5px;
  opacity: .72;
}
.opyeb-rn__hub {
  text-decoration: none !important;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 44px;
  margin-top: 8px;
  padding: 0 10px;
  border-radius: 10px;
  background: color-mix(in srgb, currentColor 7%, transparent);
  color: inherit;
  font-weight: 700;
  font-size: 14px;
}
.opyeb-rn__hub--studio {
  margin-top: 6px;
  background: transparent;
  border: 1px solid var(--rn-line);
  font-weight: 600;
  font-size: 13.5px;
}
/* 결과 핵심 숫자 요약 (capitalgain·medcost) */
.rn-sum {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, currentColor 14%, transparent);
  border-radius: 12px;
  background: color-mix(in srgb, currentColor 4%, transparent);
}
.rn-sum__label {
  margin: 0;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  opacity: .7;
}
.rn-sum__value {
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -.01em;
}
.rn-sum__value small { font-size: .5em; font-weight: 700; margin-left: 2px; }
.rn-sum__note {
  margin: 4px 0 0;
  font-size: 13px;
  opacity: .85;
}
.rn-focus-target:focus { outline: none; }
/* #mbar 안의 복사 버튼 */
.rn-mbarcopy {
  min-height: 44px;
  min-width: 44px;
  padding: 0 12px;
  margin-left: 8px;
  border: 1px solid currentColor;
  border-radius: 10px;
  background: transparent;
  color: inherit;
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  touch-action: manipulation;
}
@media (max-width: 400px) {
  .opyeb-rn__actions { grid-template-columns: 1fr 1fr; }
}
@media print {
  .opyeb-rn, .rn-sum, .rn-mbarcopy { display: none !important; }
}
