/* Approved simple calculator. The document owns scrolling; the fee popup is separate. */
#horangi-margin-simple {
  --hm-ink: #332f2b;
  --hm-muted: #81796f;
  --hm-line: #eae5dd;
  --hm-orange: #b4521a;
  --hm-brown: #5d3b26;
  --hm-soft: #fff7ed;
  --hm-red: #b94339;
  width: 100%;
  max-width: 1160px;
  margin-inline: auto;
  background: #fff;
  color: var(--hm-ink);
  color-scheme: light;
  font-family: "Pretendard", "Noto Sans KR", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
#horangi-margin-simple *, #horangi-margin-simple *::before, #horangi-margin-simple *::after { box-sizing: border-box; }
#horangi-margin-simple [hidden] { display: none !important; }
#horangi-margin-simple .hm-layout { display: grid; grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 22px; align-items: start; }
#horangi-margin-simple .hm-inputs { min-width: 0; margin: 0; padding: 24px; border: 1px solid var(--hm-line); border-radius: 10px; background: #fff; }
#horangi-margin-simple .hm-section + .hm-section { margin-top: 23px; padding-top: 22px; border-top: 1px solid var(--hm-line); }
#horangi-margin-simple h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 18px; color: var(--hm-ink); font-size: 16px; font-weight: 750; line-height: 1.35; letter-spacing: -.3px; }
#horangi-margin-simple .hm-step { color: var(--hm-orange); font-size: 13px; font-weight: 750; font-variant-numeric: tabular-nums; }
#horangi-margin-simple .hm-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 17px 16px; }
#horangi-margin-simple .hm-field { display: block; min-width: 0; margin: 0; color: #5b5148; font-size: 13px; font-weight: 600; }
#horangi-margin-simple .hm-wide { grid-column: 1 / -1; }
#horangi-margin-simple .hm-field > .hm-label { display: block; margin-bottom: 7px; font-size: 13px; font-weight: 600; line-height: 1.5; }
#horangi-margin-simple .hm-label small { margin-left: 3px; color: var(--hm-muted); font-size: 13px; font-weight: 400; }
#horangi-margin-simple .hm-control { position: relative; display: flex; align-items: center; min-width: 0; }
#horangi-margin-simple .hm-field input[data-margin-input] { width: 100%; min-width: 0; height: 44px; margin: 0; padding: 8px 35px 8px 12px; border: 1px solid #dcd6cd; border-radius: 6px; background: #fff; color: var(--hm-ink); font: inherit; font-size: 16px; font-weight: 400; line-height: 1.5; font-variant-numeric: tabular-nums; text-align: right; transition: border-color .15s; }
#horangi-margin-simple .hm-field input[data-margin-input="productName"] { padding-right: 12px; text-align: left; }
#horangi-margin-simple .hm-field input::placeholder { color: #a39a90; font-size: 13px; opacity: 1; }
#horangi-margin-simple .hm-field input:focus { border-color: var(--hm-orange); outline: 2px solid #e7954340; outline-offset: 1px; }
#horangi-margin-simple .hm-field input[aria-invalid="true"] { border-color: var(--hm-red); }
#horangi-margin-simple .hm-field input[data-margin-input]:disabled { border-color: #e5e1da; background: #f2f0ec; color: #a29a90; cursor: not-allowed; }
#horangi-margin-simple .hm-field input::-webkit-inner-spin-button, #horangi-margin-simple .hm-field input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
#horangi-margin-simple .hm-field input[type="number"] { appearance: textfield; -moz-appearance: textfield; }
#horangi-margin-simple .hm-unit { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); color: var(--hm-muted); font-size: 13px; font-style: normal; font-weight: 400; pointer-events: none; }
#horangi-margin-simple .hm-note { margin: 7px 0 0; color: var(--hm-muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
#horangi-margin-simple .hm-section-note { margin: -8px 0 16px; color: var(--hm-muted); font-size: 13px; font-weight: 400; line-height: 1.6; }
#horangi-margin-simple .field-error { display: block; margin-top: 6px; color: var(--hm-red); font-size: 13px; font-weight: 400; line-height: 1.5; }
#horangi-margin-simple .field-error:empty { display: none; }
#horangi-margin-simple .hm-manual { display: flex; align-items: center; gap: 7px; margin: 15px 0 0; color: #74695e; font-size: 13px; font-weight: 400; cursor: pointer; }
#horangi-margin-simple .hm-manual input[type="checkbox"] { flex: 0 0 15px; width: 15px; height: 15px; min-height: 0; margin: 0; padding: 0; accent-color: var(--hm-orange); }
#horangi-margin-simple #override-field { margin-top: 12px; }
#horangi-margin-simple .hm-result { position: static; min-width: 0; border: 1px solid var(--hm-line); border-radius: 10px; background: #fff; overflow: hidden; font-variant-numeric: tabular-nums; }
#horangi-margin-simple .hm-result-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 22px; border-bottom: 1px solid var(--hm-line); background: #faf8f5; }
#horangi-margin-simple .hm-result-head h2 { margin: 0; }
#horangi-margin-simple .hm-result-section { padding: 22px; }
#horangi-margin-simple .hm-result-section + .hm-result-section { border-top: 1px solid var(--hm-line); }
#horangi-margin-simple h3 { margin: 0 0 15px; color: #72685e; font-size: 13px; font-weight: 650; line-height: 1.5; }
#horangi-margin-simple .hm-cost-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
#horangi-margin-simple .hm-cost-pair span { display: block; margin-bottom: 5px; color: #7e7368; font-size: 13px; }
#horangi-margin-simple .hm-cost-pair strong { color: var(--hm-brown); font-size: 23px; font-weight: 750; letter-spacing: -.7px; line-height: 1.3; overflow-wrap: anywhere; }
#horangi-margin-simple .hm-cost-pair strong small { margin-left: 3px; font-size: 13px; font-weight: 500; letter-spacing: 0; }
#horangi-margin-simple .hm-judgement { margin: 13px 0 0; color: #78634f; font-size: 13px; line-height: 1.6; }
#horangi-margin-simple .hm-judgement[data-tone="bad"] { color: var(--hm-red); }
#horangi-margin-simple .hm-hero { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 17px; }
#horangi-margin-simple .hm-big { color: var(--hm-orange); font-size: 34px; font-weight: 780; line-height: 1.15; letter-spacing: -1.2px; overflow-wrap: anywhere; }
#horangi-margin-simple .hm-big small { margin-left: 4px; font-size: 17px; font-weight: 500; letter-spacing: 0; }
#horangi-margin-simple .hm-rate { color: #887766; font-size: 13px; white-space: nowrap; }
#horangi-margin-simple .hm-rows { display: grid; gap: 9px; margin: 0; }
#horangi-margin-simple .hm-row { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; font-size: 13px; }
#horangi-margin-simple .hm-row dt { color: #7a7167; font-weight: 400; }
#horangi-margin-simple .hm-row dd { margin: 0; color: #3e352e; font-weight: 600; text-align: right; overflow-wrap: anywhere; }
#horangi-margin-simple .hm-result details { margin-top: 16px; padding-top: 11px; border-top: 1px solid var(--hm-line); }
#horangi-margin-simple .hm-result summary { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 30px; color: #8d7763; font-size: 13px; list-style: none; cursor: pointer; }
#horangi-margin-simple .hm-result summary::-webkit-details-marker { display: none; }
#horangi-margin-simple .hm-result summary svg { flex: 0 0 14px; width: 14px; height: 14px; transition: transform .15s; }
#horangi-margin-simple .hm-result details[open] summary svg { transform: rotate(180deg); }
#horangi-margin-simple .hm-result details .hm-rows { margin-top: 13px; }
#horangi-margin-simple .hm-plan { background: #fffaf3; }
#horangi-margin-simple .hm-plan h3 { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
#horangi-margin-simple .hm-plan h3 span { color: #9b8069; font-size: 13px; font-weight: 400; }
#horangi-margin-simple .hm-total { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; flex-wrap: wrap; margin-top: 16px; padding-top: 16px; border-top: 1px solid #eadbc9; }
#horangi-margin-simple .hm-total .hm-label { color: var(--hm-brown); font-size: 13px; font-weight: 650; }
#horangi-margin-simple .hm-total strong { color: var(--hm-brown); font-size: 27px; font-weight: 750; line-height: 1.2; letter-spacing: -.8px; overflow-wrap: anywhere; }
#horangi-margin-simple .hm-total strong small { margin-left: 3px; font-size: 14px; font-weight: 500; letter-spacing: 0; }
#horangi-margin-simple .hm-roi { margin: 7px 0 0; color: var(--hm-muted); font-size: 13px; text-align: right; }
#horangi-margin-simple .hm-negative { color: var(--hm-red) !important; }
#horangi-margin-simple .hm-foot { display: flex; flex-wrap: wrap; gap: 3px 14px; margin: 18px 0 0; color: var(--hm-muted); font-size: 13px; line-height: 1.7; }
#horangi-margin-simple .hm-alert { margin: 12px 0 0; color: var(--hm-red); font-size: 13px; }
#horangi-margin-simple .hm-result-placeholder { color: var(--hm-muted); }
#horangi-margin-simple .fee-applied-note { margin: 8px 0 0; color: var(--hm-orange); font-size: 13px; line-height: 1.6; }
#horangi-margin-simple .fee-applied-note:empty { display: none; }
#horangi-margin-simple :is(button, summary, a):focus-visible { outline: 2px solid var(--hm-orange); outline-offset: 3px; }

/* Keep account storage controls and history at the same readable width. */
.margin-page > :is(.page-head, .notice, .margin-save-action, .margin-history, .footer-info) { width: 100%; max-width: 1160px; margin-inline: auto; }
.commerce-surface[data-commerce-page="calculator"] .margin-page .page-head h1 { color: #5d3b26; font-size: 28px; line-height: 1.3; }
.margin-page .page-head .subtitle { color: #81796f; font-size: 13px; }
.margin-page .page-head .actions { flex-wrap: wrap; justify-content: flex-end; }
.margin-page .page-head .btn { min-height: 38px; font-size: 13px; }
.margin-page > .notice { margin-bottom: 22px; border-color: #eae5dd; background: #faf8f5; color: #81796f; font-size: 13px; }
.margin-page > .notice button { min-height: 25px; color: #9a4512; font-size: 13px; }
.margin-page .margin-save-action { margin-top: 28px; }
.commerce-surface .margin-page .margin-save-button { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 58px; padding: 16px 24px; border-radius: 10px; font-size: 17px; font-weight: 750; line-height: 1.5; }
.margin-page .margin-save-button:focus-visible { outline: 2px solid #b4521a; outline-offset: 3px; }
.commerce-surface .margin-page .margin-history { margin-top: 28px; padding: 22px 24px; border: 1px solid #eae5dd; border-radius: 10px; background: #fff; }
.commerce-surface .margin-page .margin-save-action + .margin-history { margin-top: 32px; }
.margin-page .margin-history .section-head { align-items: flex-start; flex-wrap: wrap; }
.margin-page .margin-history h2 { color: #332f2b; font-size: 16px; font-weight: 750; }
.margin-page .margin-history .subtitle { color: #81796f; font-size: 13px; }
.margin-page .margin-history .actions { flex-wrap: wrap; }
.margin-page .margin-history .btn { min-height: 32px; padding: 6px 10px; font-size: 13px; }
.margin-page .margin-history table { font-size: 13px; }
.margin-page .margin-history th { padding: 12px; color: #81796f; background: #faf8f5; font-size: 13px; }
.margin-page .margin-history td { padding: 14px 12px; color: #332f2b; }
.margin-page .margin-history :is(th, td) { border-color: #eae5dd; }
.margin-page .margin-history .empty { color: #81796f; font-size: 13px; }
.margin-page .margin-history .empty strong { color: #5d3b26; font-size: 15px; }
.margin-page > .footer-info { padding-bottom: 105px; color: #81796f; font-size: 13px; }

.margin-page .margin-history-name { min-width: 140px; text-align: left; }
.margin-page .margin-history-actions { display: flex; justify-content: center; align-items: center; gap: 6px; white-space: nowrap; }
.margin-page .margin-history-actions .btn { flex-shrink: 0; }
.margin-page .margin-history-connect { color: #9a4512; border-color: #dcc5ad; background: #fff8ee; }
.margin-page .margin-history-connect[aria-expanded="true"] { color: #fff; border-color: #9a4512; background: #9a4512; }
.margin-page .margin-history tr.margin-history-link-row > td { padding: 0; text-align: left; }
.margin-page .margin-keyword-link { padding: 20px 24px; background: #fffaf3; color: #332f2b; }
.margin-page #margin-history-notice:empty { display: none; }
.margin-page .mkl-history-notice { margin-bottom: 14px; padding: 12px 16px; border: 1px solid #eae5dd; border-radius: 6px; background: #faf8f5; }
.margin-page .mkl-history-notice :is(.mkl-note,.mkl-entry) { margin-top: 0; padding-top: 0; border-top: 0; }
.margin-page .mkl-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.margin-page .mkl-label { display: block; margin-bottom: 4px; color: #81796f; font-size: 13px; }
.margin-page .mkl-heading strong { display: block; font-size: 15px; font-weight: 700; overflow-wrap: anywhere; }
.margin-page .mkl-heading strong small { margin-left: 7px; color: #81796f; font-size: 13px; font-weight: 400; }
.margin-page .mkl-note { margin: 8px 0 0; color: #81796f; font-size: 13px; line-height: 1.6; }
.margin-page .mkl-picker { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid #eae5dd; }
.margin-page .mkl-picker label { grid-column: 1 / -1; color: #5d3b26; font-size: 13px; font-weight: 600; }
.margin-page .mkl-picker select { width: 100%; min-width: 0; min-height: 38px; padding: 8px 12px; border: 1px solid #dcd6cd; border-radius: 6px; background: #fff; color: #332f2b; font: inherit; font-size: 13px; }
.margin-page .mkl-entry { margin-top: 12px; padding-top: 12px; border-top: 1px solid #eae5dd; }
.margin-page .mkl-entry .btn { margin-top: 9px; }
.margin-page .mkl-actions { display: flex; align-items: center; gap: 7px; }
.margin-page .mkl-picker :is(.mkl-note,.mkl-error), .margin-page .mkl-manage { grid-column: 1 / -1; }
.margin-page .mkl-manage { width: fit-content; color: #9a4512; font-size: 13px; text-decoration: none; }
.margin-page .mkl-manage:hover { text-decoration: underline; }
.margin-page .mkl-error { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; color: #b94339; font-size: 13px; }
.margin-page .mkl-record-link { display: block; margin-top: 4px; color: #9a4512; font-size: 13px; }
.margin-page .margin-keyword-link .btn { min-height: 34px; padding: 7px 11px; font-size: 13px; }
.margin-page .margin-keyword-link :is(button,select,a):focus-visible { outline: 2px solid #b4521a; outline-offset: 3px; }

@media (max-width: 900px) {
  #horangi-margin-simple .hm-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  #horangi-margin-simple .hm-inputs { padding: 21px; }
  #horangi-margin-simple :is(.hm-result-head, .hm-result-section) { padding: 21px; }
  .margin-page .page-head .actions { justify-content: flex-start; }
}
@media (max-width: 600px) {
  .margin-page .mkl-picker { grid-template-columns: minmax(0, 1fr); }
  .margin-page .margin-keyword-link { padding: 16px; }
  .margin-page > .notice { align-items: flex-start; flex-wrap: wrap; gap: 4px 10px; }
  .margin-page > .notice button { margin-left: 0; }
  .commerce-surface .margin-page .margin-history { padding: 18px; }
  .margin-page .margin-history .section-head > .actions { margin-top: 5px; }
}
@media (max-width: 390px) {
  #horangi-margin-simple .hm-inputs, #horangi-margin-simple .hm-result-section, #horangi-margin-simple .hm-result-head { padding: 17px; }
  #horangi-margin-simple .hm-fields { gap: 14px 12px; }
  #horangi-margin-simple .hm-field > .hm-label { display: flex; align-content: flex-end; flex-wrap: wrap; gap: 0 3px; min-height: 39px; }
  #horangi-margin-simple .hm-wide > .hm-label { min-height: 0; }
  #horangi-margin-simple .hm-label small { margin-left: 0; }
  #horangi-margin-simple .hm-big { font-size: 30px; }
  #horangi-margin-simple .hm-total strong { font-size: 25px; }
  .margin-page .page-head .btn { padding-inline: 10px; }
}
@media (prefers-reduced-motion: reduce) {
  #horangi-margin-simple .hm-field input, #horangi-margin-simple .hm-result summary svg { transition: none; }
}
@media print {
  #horangi-margin-simple .hm-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); gap: 14px; }
  #horangi-margin-simple :is(.hm-inputs, .hm-result) { break-inside: avoid; }
  .margin-page > .notice, .margin-page .margin-save-action, .margin-page .margin-history { display: none; }
}

/* 2026-11-18 원가 참고 링크·메모 */
#horangi-margin-simple .hm-sourcing { display: grid; grid-template-columns: 1fr; gap: 10px; margin-top: 12px; }
#horangi-margin-simple .hm-sourcing-link { display: flex; align-items: center; gap: 6px; }
#horangi-margin-simple .hm-sourcing-link input { flex: 1; min-width: 0; }
#horangi-margin-simple .hm-sourcing-link a[hidden] { display: none; }
#horangi-margin-simple .hm-sourcing-link a { flex: none; text-decoration: none; }
.margin-sourcing-link { display: block; color: #b4521a; text-decoration: none; }
.margin-sourcing-link:hover { text-decoration: underline; }

/* 2026-11-18 광고비중 슬라이더(1% 단위). 손잡이 중심이 막대 양 끝(0%·100%)에 정확히 닿도록 입력칸을 손잡이 반지름만큼 넓힌다. */
#horangi-margin-simple .hm-ad-share { margin-top: 14px; padding-top: 14px; border-top: 1px solid #eadbc9; }
#horangi-margin-simple .hm-ad-share-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--hm-muted); font-size: 13px; }
#horangi-margin-simple .hm-ad-share-head b { color: var(--hm-orange); font-size: 15px; font-weight: 750; }
#horangi-margin-simple .hm-ad-share-range { position: relative; height: 22px; margin: 10px 0 6px; }
#horangi-margin-simple .hm-ad-share-range::before, #horangi-margin-simple .hm-ad-share-fill { content: ""; position: absolute; left: 0; top: 50%; height: 6px; margin-top: -3px; border-radius: 3px; pointer-events: none; }
#horangi-margin-simple .hm-ad-share-range::before { right: 0; background: #eadfd2; }
#horangi-margin-simple .hm-ad-share-fill { width: var(--share, 100%); background: var(--hm-orange); }
#horangi-margin-simple .hm-ad-share-range input[type="range"] { position: absolute; top: 0; left: -10px; width: calc(100% + 20px); height: 22px; margin: 0; padding: 0; border: 0 !important; border-radius: 0; box-shadow: none !important; outline: none !important; min-height: 0; background: transparent !important; -webkit-appearance: none; appearance: none; cursor: pointer; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]::-webkit-slider-runnable-track { height: 22px; background: transparent; border: 0; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]::-moz-range-track { height: 22px; background: transparent; border: 0; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; margin-top: 1px; border: 3px solid #fff; border-radius: 50%; background: var(--hm-orange); box-shadow: 0 1px 4px #5d3b2640; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 3px solid #fff; border-radius: 50%; background: var(--hm-orange); box-shadow: 0 1px 4px #5d3b2640; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]:is(:focus,:focus-visible) { outline: none !important; box-shadow: none !important; }
#horangi-margin-simple .hm-ad-share-range input[type="range"]:focus-visible::-webkit-slider-thumb { box-shadow: 0 0 0 3px #b4521a40; }
#horangi-margin-simple .hm-ad-share-ends { display: flex; justify-content: space-between; gap: 8px; color: var(--hm-muted); font-size: 13px; }
#horangi-margin-simple .hm-ad-share-ends span:last-child { text-align: right; }
#horangi-margin-simple .hm-ad-share-ends b { display: block; color: var(--hm-brown); font-size: 13px; font-weight: 700; }
/* 2026-11-18 단계별 결과: 각 단계 아래에 그 단계의 답을 바로 보여주고, 오른쪽은 따라오는 요약 카드로 줄인다. */
#horangi-margin-simple .hm-layout { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); }
#horangi-margin-simple .hm-result { position: sticky; top: 84px; }
#horangi-margin-simple .hm-desc { margin: -10px 0 16px; color: var(--hm-muted); font-size: 13px; line-height: 1.6; }
#horangi-margin-simple .hm-step-result { display: flex; align-items: center; justify-content: space-between; gap: 6px 14px; flex-wrap: wrap; margin-top: 16px; padding: 14px 16px; border-radius: 8px; background: var(--hm-soft); font-variant-numeric: tabular-nums; }
#horangi-margin-simple .hm-step-result-label { color: var(--hm-brown); font-size: 13px; font-weight: 650; }
#horangi-margin-simple .hm-step-result-value { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; justify-content: flex-end; }
#horangi-margin-simple .hm-step-result-value strong { color: var(--hm-orange); font-size: 24px; font-weight: 780; line-height: 1.2; letter-spacing: -.7px; overflow-wrap: anywhere; }
#horangi-margin-simple .hm-step-result-value small { color: #8d7763; font-size: 13px; font-weight: 500; }
#horangi-margin-simple .hm-step-result-value small b { color: var(--hm-brown); font-weight: 700; }
#horangi-margin-simple #margin-cost-gap[data-tone="good"] { color: #2f7a43; font-weight: 650; }
#horangi-margin-simple #margin-cost-gap[data-tone="bad"] { color: var(--hm-red); font-weight: 650; }
#horangi-margin-simple .hm-step-result + .hm-judgement { margin-top: 8px; }
#horangi-margin-simple .hm-section .hm-ad-share { margin-top: 0; padding-top: 0; border-top: 0; }
#horangi-margin-simple .hm-section .hm-roi { margin-top: 6px; }
#horangi-margin-simple .hm-summary { display: grid; gap: 12px; margin: 0; }
#horangi-margin-simple .hm-summary .hm-row { font-size: 13.5px; }
#horangi-margin-simple .hm-summary .hm-row dd { color: var(--hm-brown); font-size: 16px; font-weight: 700; }
#horangi-margin-simple .hm-summary-total { margin-top: 2px; padding-top: 12px; border-top: 1px solid var(--hm-line); }
#horangi-margin-simple .hm-summary-total dt span { color: var(--hm-muted); font-size: 13px; }
#horangi-margin-simple .hm-summary-total dd { color: var(--hm-orange) !important; font-size: 20px !important; font-weight: 780 !important; }
#horangi-margin-simple .hm-tip { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 16px; height: 16px; margin-left: 5px; border: 1px solid #d5c9bb; border-radius: 50%; color: #8d7763; font-size: 10.5px; font-weight: 700; line-height: 1; vertical-align: 1px; cursor: help; }
#horangi-margin-simple .hm-tip::after { content: attr(data-tip); position: absolute; left: 50%; bottom: calc(100% + 8px); z-index: 5; width: max-content; max-width: 240px; padding: 8px 10px; border-radius: 6px; background: #3e352e; color: #fff; font-size: 13px; font-weight: 400; line-height: 1.5; text-align: left; white-space: normal; transform: translateX(-50%); opacity: 0; visibility: hidden; pointer-events: none; transition: opacity .12s; }
#horangi-margin-simple .hm-tip:is(:hover, :focus-visible)::after { opacity: 1; visibility: visible; }
@media (max-width: 900px) {
  #horangi-margin-simple .hm-result { position: static; }
}

/* 2026-11-18 글자 크기 통일: 본문·항목 이름 14px, 안내·보조 문구 13px(분석 화면과 같은 기준) */
#horangi-margin-simple .hm-field, #horangi-margin-simple .hm-field > .hm-label { font-size: 14px; }
#horangi-margin-simple .hm-desc, #horangi-margin-simple .hm-manual { font-size: 14px; }
#horangi-margin-simple .hm-step-result-label { font-size: 14px; }
#horangi-margin-simple .hm-summary .hm-row { font-size: 14px; }
#horangi-margin-simple .hm-summary .hm-row dd { font-size: 17px; }
#horangi-margin-simple .hm-ad-share-head { font-size: 14px; }
#horangi-margin-simple .hm-ad-share-ends b { font-size: 14px; }
#horangi-margin-simple .hm-rows .hm-row { font-size: 14px; }
#horangi-margin-simple .hm-result summary { font-size: 13px; }

/* 2026-11-18 가독성 2차: 단계 번호 배지, 단계 간격, 02 판정 한 줄, 참고 링크·메모 접기, 요약 수익률 */
#horangi-margin-simple .hm-section h2 .hm-step { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--hm-orange); color: #fff; font-size: 13px; font-weight: 800; letter-spacing: 0; flex: 0 0 auto; }
#horangi-margin-simple .hm-section + .hm-section { margin-top: 32px; padding-top: 30px; }
#horangi-margin-simple .hm-section h2 { font-size: 17px; }
#horangi-margin-simple .hm-verdict { display: flex; flex-wrap: wrap; gap: 0 5px; margin-top: 8px; font-size: 14px; }
#horangi-margin-simple .hm-verdict:has(#margin-cost-gap:empty):has(#margin-status:empty) { display: none; }
#horangi-margin-simple .hm-verdict #margin-cost-gap:not(:empty) + #margin-status:not(:empty)::before { content: "·"; margin-right: 5px; color: #a39383; }
#horangi-margin-simple #margin-status[data-tone="bad"] { color: var(--hm-red); font-weight: 650; }
#horangi-margin-simple #margin-cost-gap[data-tone="good"] + #margin-status[data-tone="normal"] { color: #2f7a43; font-weight: 650; }
#horangi-margin-simple .hm-sourcing-details { margin-top: 16px; }
#horangi-margin-simple .hm-sourcing-details > summary { display: inline-flex; align-items: center; color: var(--hm-brown); font-size: 14px; font-weight: 650; cursor: pointer; list-style: none; }
#horangi-margin-simple .hm-sourcing-details > summary::-webkit-details-marker { display: none; }
#horangi-margin-simple .hm-sourcing-details[open] > summary { margin-bottom: 12px; }
#horangi-margin-simple .hm-sourcing-details .hm-sourcing { margin-top: 0; }
#horangi-margin-simple .hm-summary-roi dd { color: var(--hm-brown) !important; font-size: 16px !important; }

/* 2026-11-19 광고비중을 03 광고 · 판매 계획 안으로: 입력칸 아래 간격, 1개당 이익과 총 이익을 이어서 */
#horangi-margin-simple .hm-section .hm-fields + .hm-ad-share { margin-top: 16px; padding-top: 14px; border-top: 1px dashed #eadbc9; }
#horangi-margin-simple .hm-section .hm-ad-share + .hm-step-result { margin-top: 12px; }
#horangi-margin-simple .hm-section .hm-step-result + .hm-step-result { margin-top: 8px; }

/* 2026-11-19 03 결과 두 칸 통일: 금액 아래에 보조 지표(이익률·수익률)를 2줄로, 상자 조금 더 높게 */
#horangi-margin-simple .hm-step-result--stack { min-height: 78px; padding: 16px 18px; }
#horangi-margin-simple .hm-step-result--stack .hm-step-result-value { flex-direction: column; align-items: flex-end; gap: 3px; }
#horangi-margin-simple .hm-step-result--stack .hm-step-result-value strong { font-size: 24px; }
#horangi-margin-simple .hm-step-result--stack .hm-step-result-value small { font-size: 13px; }
/* 2026-12-03 연결할 관심 상품: 썸네일 + 상품명 + 키워드 목록 */
.margin-page .mkl-choice { position: relative; min-width: 0; }
.margin-page .mkl-choice-native { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.margin-page .mkl-choice-button { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 52px; padding: 6px 12px 6px 8px; border: 1px solid #dcd6cd; border-radius: 6px; background: #fff; color: #332f2b; font: inherit; text-align: left; cursor: pointer; }
.margin-page .mkl-choice-button:hover:not(:disabled) { border-color: #c9a27f; }
.margin-page .mkl-choice-button:disabled { opacity: .6; cursor: default; }
.margin-page .mkl-choice-caret { margin-left: auto; color: #81796f; }
.margin-page .mkl-choice-list { position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 4px); max-height: 340px; margin: 0; padding: 4px; overflow-y: auto; list-style: none; border: 1px solid #dcd6cd; border-radius: 8px; background: #fff; box-shadow: 0 10px 28px rgba(51, 47, 43, .14); }
.margin-page .mkl-choice-list [role="option"] { display: flex; align-items: center; gap: 10px; width: 100%; padding: 6px 8px; border: 0; border-radius: 6px; background: transparent; color: #332f2b; font: inherit; text-align: left; cursor: pointer; }
.margin-page .mkl-choice-list [role="option"]:hover, .margin-page .mkl-choice-list [role="option"]:focus-visible { background: #faf3ec; outline: none; }
.margin-page .mkl-choice-list [role="option"][aria-selected="true"] { background: #fdeee0; }
.margin-page .mkl-choice-thumb { flex: none; width: 40px; height: 40px; border-radius: 5px; object-fit: cover; background: #f3f0ec; }
.margin-page .mkl-choice-text { display: flex; flex-direction: column; min-width: 0; gap: 2px; }
.margin-page .mkl-choice-name { overflow: hidden; font-size: 14px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.margin-page .mkl-choice-text small { color: #81796f; font-size: 12px; }
/* 2026-12-03 수정 중일 때 '새 계산으로 따로 저장' 보조 버튼 */
.margin-page .margin-save-new { display: block; margin: 10px auto 0; padding: 8px 14px; border: 0; background: transparent; color: #9a4512; font-size: 14px; text-decoration: underline; cursor: pointer; }
.margin-page .margin-save-new[hidden] { display: none; }
