@charset "UTF-8";
@font-face {
  font-family: 'Pretendard';
  src: url('/assets/fonts/PretendardVariable.woff2') format('woff2');
  font-weight: 45 920;
  font-style: normal;
  font-display: swap;
}
:root {
  --ink: #191f28;
  --muted: #6b7684;
  --blue: #2272eb;
  --line: #e5e8eb;
  --surface: #f7f8fa;
  --radius: 20px;
  --font: 'Pretendard', -apple-system, BlinkMacSystemFont, 'Apple SD Gothic Neo', 'Malgun Gothic', sans-serif;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body { margin: 0; background: #fff; color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.6; letter-spacing: -.02em; word-break: keep-all; overflow-wrap: anywhere; -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
button, input, textarea { font: inherit; }
button, a, input, textarea, summary { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, summary:focus-visible { outline: 3px solid #3182f6; outline-offset: 4px; }
.container { width: min(1080px, calc(100% - 64px)); margin-inline: auto; }
.icon { width: 22px; height: 22px; flex-shrink: 0; vertical-align: middle; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 20px; z-index: 50; background: var(--blue); color: #fff; padding: 12px 20px; border-radius: 8px; }
.skip-link:focus { top: 12px; }
.site-header { background: #fff; border-bottom: 1px solid #f0f1f3; position: sticky; top: 0; z-index: 20; }
.header-inner { display: flex; align-items: center; gap: 54px; min-height: 76px; }
.brand { display: inline-flex; align-items: center; gap: 10px; flex-shrink: 0; }
.brand img { width: 30px; height: 30px; }
.brand > span { font-size: 22px; font-weight: 750; letter-spacing: -.7px; line-height: 1.3; }
.header-inner nav { display: flex; align-items: center; gap: 30px; font-size: 15px; font-weight: 600; color: #4e5968; }
.header-inner nav a { display: inline-flex; align-items: center; min-height: 50px; }
.header-inner nav a:hover, .header-inner nav a[aria-current] { color: var(--blue); }
.header-help { margin-left: auto; font-size: 14px; color: var(--muted); padding: 9px 13px; border-radius: 8px; }
.header-help:hover { background: #f2f4f6; }
.home-intro { text-align: center; padding-top: 52px; padding-bottom: 42px; }
.intro-caption { margin: 0 0 9px; color: var(--blue); font-size: 14px; font-weight: 600; }
.home-intro h1 { font-size: 38px; font-weight: 750; line-height: 1.4; letter-spacing: -1.2px; margin: 0 0 12px; }
.home-intro > p:not(.intro-caption) { font-size: 16px; color: var(--muted); margin: 0; }
.tool-search { display: flex; align-items: center; gap: 14px; max-width: 640px; margin: 28px auto 0; padding: 0 20px; min-height: 62px; border: 1.5px solid #b5c9e8; border-radius: 14px; text-align: left; background: #fff; }
.tool-search:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px #edf4ff; }
.tool-search > .icon { color: var(--blue); width: 23px; height: 23px; }
.tool-search input { width: 100%; min-width: 0; height: 60px; border: none; outline: none; color: var(--ink); background: transparent; font-size: 16px; }
.tool-search input:focus-visible { outline: none; }
.tool-search input::placeholder { color: #8b95a1; }
.search-hint { font-size: 12px; color: #8b95a1; white-space: nowrap; }
.directory-background { background: var(--surface); border-top: 1px solid #f0f1f3; padding-top: 35px; }
.tools-section { padding-bottom: 20px; }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
h2 { font-size: 24px; font-weight: 700; line-height: 1.5; letter-spacing: -.6px; margin: 0; }
.section-heading h2 { display: flex; align-items: center; gap: 9px; }
.count-badge { font-size: 17px; font-weight: 600; color: #8b95a1; }
.free-label { font-size: 13px; color: var(--muted); }
.tool-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tool-filters button { background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 18px; min-height: 42px; color: #6b7684; font-size: 14px; font-weight: 600; }
.tool-filters button[aria-pressed='true'] { color: #fff; border-color: #333d4b; background: #333d4b; }
.tool-filters button:hover { border-color: #8b95a1; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.tool-card { display: flex; flex-direction: column; padding: 25px; border: 1px solid var(--line); background: #fff; border-radius: 18px; transition: border-color .18s, box-shadow .18s; }
.tool-card:hover { border-color: #a6bfe0; box-shadow: 0 4px 16px #172f5010; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 21px; }
.tool-icon { display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: #eaf2ff; color: #3182f6; flex-shrink: 0; }
.tool-icon .icon { width: 25px; height: 25px; stroke-width: 1.9; }
.peach .tool-icon, .tool-icon.peach { background: #e8f7f0; color: #19a16e; }
.purple .tool-icon, .tool-icon.purple { background: #f1ecff; color: #8768d4; }
.category { font-size: 12px; color: #6b7684; }
.tool-card h3 { font-size: 20px; font-weight: 700; line-height: 1.4; letter-spacing: -.6px; margin: 0 0 10px; }
.tool-card > p { color: var(--muted); font-size: 14px; line-height: 1.8; margin: 0 0 22px; min-height: 50px; }
.card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 17px; border-top: 1px solid #f2f4f6; }
.card-bottom > span { font-size: 12px; color: #6b7684; }
.card-bottom > .icon { width: 19px; height: 19px; color: #8b95a1; }
.search-status { font-size: 13px; color: var(--muted); min-height: 20px; margin: 13px 0 0; }
.empty-search { padding: 35px; text-align: center; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.empty-search h3 { font-size: 19px; margin: 0 0 8px; }
.empty-search p { font-size: 14px; color: var(--muted); margin: 0 0 18px; }
.service-notes { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; padding-top: 6px; padding-bottom: 44px; }
.service-notes > div { display: flex; align-items: flex-start; gap: 17px; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.service-notes > div > .icon { width: 25px; height: 25px; color: #7b91b0; margin-top: 3px; }
.service-notes h2 { font-size: 16px; letter-spacing: -.3px; }
.service-notes p { font-size: 13px; color: var(--muted); margin: 6px 0 10px; }
.service-notes a { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 500; color: #4e5968; }
.service-notes a:hover { color: var(--blue); }
.service-notes a .icon { width: 14px; height: 14px; }
.faq-section { padding-bottom: 56px; }
.faq-section > h2 { font-size: 21px; margin-bottom: 20px; }
.faq-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 36px; }
.faq-grid details { border-top: 1px solid #dfe4e9; font-size: 14px; }
.faq-grid details:nth-last-child(-n+2) { border-bottom: 1px solid #dfe4e9; }
.faq-grid summary { cursor: pointer; list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 0; font-weight: 500; }
.faq-grid summary::-webkit-details-marker { display: none; }
.faq-grid summary:after { content: '+'; font-size: 21px; font-weight: 400; color: #8b95a1; }
.faq-grid details[open] summary:after { content: '−'; }
.faq-grid details p { color: var(--muted); font-size: 14px; line-height: 1.9; margin: 0 20px 20px 0; }
.faq-grid details a { color: var(--blue); }
.site-footer { border-top: 1px solid var(--line); background: #fff; padding-top: 30px; }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 30px; padding-bottom: 26px; }
.footer-top .brand img { width: 24px; height: 24px; }
.footer-top .brand > span { font-size: 19px; }
.footer-top p { color: #8b95a1; font-size: 12px; margin: 10px 0 0; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 20px; font-size: 13px; color: #6b7684; }
.footer-top nav a:hover { color: var(--blue); }
.footer-bottom { display: flex; justify-content: space-between; gap: 20px; padding-block: 18px; border-top: 1px solid #f0f1f3; font-size: 11px; color: #8b95a1; letter-spacing: 0; }
.breadcrumbs { display: flex; align-items: center; gap: 11px; color: #8b95a1; font-size: 13px; padding: 25px 0 30px; }
.breadcrumbs a:hover { color: var(--blue); }
.tool-intro { margin-bottom: 30px; }
.tool-intro > .tool-icon { width: 38px; height: 38px; border-radius: 11px; margin-right: 8px; vertical-align: middle; }
.tool-intro > .tool-icon .icon { width: 22px; height: 22px; }
.eyebrow { font-size: 13px; font-weight: 600; color: #6b7684; }
.tool-intro h1 { font-size: 36px; font-weight: 750; line-height: 1.4; letter-spacing: -1px; margin: 16px 0 10px; }
.tool-intro > p { font-size: 16px; color: var(--muted); margin: 0; }
.favorite-control { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; }
.favorite-button { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 7px 12px; color: #fff; background: #c32338; border: 1px solid transparent; border-radius: 9px; font-size: 14px; font-weight: 600; }
.favorite-button:hover { background: #b21f33; }
.favorite-button .icon { width: 17px; height: 17px; color: #ffdb57; fill: currentColor; }
.favorite-button[aria-pressed='true'] { background: #a81d31; }
#favorite-status { color: var(--muted); font-size: 13px; }
.calculator-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 24px; align-items: stretch; }
.input-panel { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; gap: 14px; margin-bottom: 27px; }
.panel-heading h2 { font-size: 20px; letter-spacing: -.5px; margin: 0; }
.example-button { color: #4e5968; font-size: 13px; font-weight: 500; border: 0; background: #f2f4f6; border-radius: 8px; padding: 8px 12px; min-height: 38px; white-space: nowrap; }
.example-button:hover { background: #e5e8eb; }
.field + .field { margin-top: 23px; }
.field label { display: block; font-size: 15px; color: #4e5968; font-weight: 600; margin-bottom: 10px; }
.input-wrap { display: flex; align-items: center; position: relative; }
.input-wrap input { width: 100%; min-width: 0; border: 1px solid #e5e8eb; border-radius: 12px; padding: 14px 46px 14px 18px; height: 62px; color: var(--ink); background: #f9fafb; font-size: 24px; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.input-wrap input::placeholder { font-size: 18px; font-weight: 400; color: #8b95a1; }
.input-wrap input:focus { background: #fff; }
.input-wrap input[aria-invalid='true'] { border-color: #f04452; }
.input-wrap > span { position: absolute; right: 18px; font-size: 16px; color: #6b7684; pointer-events: none; }
.vat-guide { background: #eef5ff; color: #246bca; padding: 10px 13px; border-radius: 8px; margin: 17px 0 0; font-size: 13px; }
.input-help { color: #6b7684; font-size: 12px; line-height: 1.8; margin: 17px 0 0; }
.form-error { font-size: 13px; color: #d92939; min-height: 21px; margin: 10px 0 0; }
.form-actions { display: flex; align-items: center; gap: 14px; margin-top: 15px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 17px; min-height: 52px; padding: 13px 22px; background: #3182f6; color: #fff; border: 0; border-radius: 11px; font-size: 16px; font-weight: 600; transition: background .18s; }
.button:hover { background: #1b64da; }
.button .icon { width: 20px; height: 20px; }
.form-actions .button { flex: 1; }
.reset-button { display: inline-flex; justify-content: center; align-items: center; gap: 6px; min-height: 44px; padding: 8px; font-size: 13px; color: #6b7684; background: transparent; border: 0; }
.reset-button:hover { color: #191f28; }
.reset-button .icon { width: 17px; height: 17px; }
.result-panel { display: flex; flex-direction: column; padding: 32px; background: #f2f6fc; border-radius: var(--radius); min-width: 0; }
.result-panel > h2 { font-size: 24px; font-weight: 700; margin: 0 0 25px; }
.result-label { font-size: 18px; font-weight: 500; color: #4e5968; margin: 0 0 5px; }
.primary-result { display: block; color: #2272eb; font-size: clamp(40px, 4.4vw, 58px); font-weight: 750; line-height: 1.35; letter-spacing: -1.5px; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; word-break: normal; }
.result-panel[data-state='empty'] .primary-result { color: #8b95a1; }
.result-details { display: grid; gap: 15px; margin-top: 26px; padding-top: 22px; border-top: 1px solid #dce5f0; }
.result-details > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 14px; font-size: 16px; color: #4e5968; }
.result-details strong { margin-left: auto; font-size: 22px; font-weight: 650; color: #333d4b; letter-spacing: -.5px; overflow-wrap: anywhere; }
.result-details small { display: inline-block; font-size: 12px; color: #6b7684; margin-left: 4px; }
.result-details .result-total { padding-bottom: 17px; margin-bottom: 2px; border-bottom: 1px solid #dce5f0; font-weight: 600; color: #191f28; }
.result-total strong { font-size: 28px; font-weight: 700; color: #2272eb; }
.result-panel > p:last-child { font-size: 13px; color: #6b7684; line-height: 1.8; margin: 21px 0 0; }
.privacy-note { display: flex; justify-content: center; align-items: flex-start; gap: 6px; color: #6b7684; font-size: 12px; line-height: 1.8; margin: 17px 0 0; }
.privacy-note > .icon { width: 15px; height: 15px; margin-top: 3px; color: #8b95a1; }
.detail-layout { display: grid; grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr); gap: 60px; padding-top: 40px; border-top: 1px solid var(--line); margin-top: 42px; }
.explanation h2 { font-size: 23px; margin: 0 0 16px; }
.explanation h3 { font-size: 18px; margin: 28px 0 12px; }
.explanation p, .explanation li { font-size: 15px; color: #4e5968; line-height: 1.9; }
.explanation p { margin: 0 0 17px; }
.explanation strong { color: #191f28; font-weight: 650; }
.explanation ul { padding-left: 20px; }
.explanation li + li { margin-top: 9px; }
.formula { padding: 20px 22px; border-radius: 12px; background: #f7f8fa; color: #4e5968; font-size: 14px; line-height: 2; }
.explanation .source-note { font-size: 12px; color: #6b7684; }
.source-note a { text-decoration: underline; text-underline-offset: 3px; }
.help-aside { border-left: 1px solid var(--line); padding-left: 30px; }
.help-aside h2 { font-size: 19px; margin: 0 0 18px; }
.help-aside ol { font-size: 14px; color: #6b7684; line-height: 2.6; padding-left: 21px; }
.help-aside li::marker { color: var(--blue); font-weight: 600; }
.aside-contact { margin-top: 29px; padding-top: 23px; border-top: 1px solid var(--line); }
.aside-contact h3 { font-size: 15px; margin: 0 0 8px; }
.aside-contact p { font-size: 13px; color: #6b7684; margin: 0 0 15px; }
.text-link { display: inline-flex; align-items: center; gap: 8px; color: var(--blue); font-size: 14px; font-weight: 500; }
.text-link > .icon { width: 17px; height: 17px; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.related-tools { margin-top: 45px; border-top: 1px solid var(--line); padding-top: 30px; padding-bottom: 60px; }
.related-tools .section-heading h2 { font-size: 23px; }
.related-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.related-grid .tool-card > p { min-height: 0; }
.table-scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; margin: 20px 0; font-size: 14px; text-align: left; }
th, td { border-bottom: 1px solid var(--line); padding: 12px 15px; }
th { background: #f7f8fa; font-weight: 600; }
td { color: #4e5968; }
.character-workspace { overflow: hidden; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.counter-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); background: #f2f6fc; padding: 26px 16px; }
.counter-stats > div { min-width: 0; border-right: 1px solid #dce5f0; text-align: center; }
.counter-stats > div:last-child { border-right: 0; }
.counter-stats span { display: block; font-size: 16px; color: #4e5968; margin-bottom: 6px; }
.counter-stats strong { color: #2272eb; font-size: 44px; font-weight: 700; line-height: 1.4; font-variant-numeric: tabular-nums; letter-spacing: -1px; }
.counter-stats small { font-size: 15px; margin-left: 5px; color: #6b7684; }
.editor-panel { padding: 26px; }
.editor-panel .panel-heading { margin-bottom: 18px; }
.editor-panel label { font-size: 16px; font-weight: 600; }
.live-badge { color: #6b7684; display: flex; align-items: center; gap: 6px; font-size: 12px; white-space: nowrap; }
.tiny-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #1aaa72; }
.editor-panel textarea { display: block; width: 100%; min-height: 280px; max-height: 80vh; resize: vertical; padding: 20px; border: 1px solid var(--line); border-radius: 12px; font-size: 16px; line-height: 1.9; color: var(--ink); background: #f9fafb; word-break: normal; }
.editor-panel textarea::placeholder { color: #8b95a1; }
.average-values { display: block; width: 100%; min-height: 136px; resize: vertical; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #f9fafb; color: var(--ink); }
.average-values[aria-invalid="true"] { border-color: #b42339; }
.editor-actions { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; margin-left: auto; gap: 8px 12px; }
.editor-actions button { min-height: 44px; white-space: nowrap; }
.button-small { min-height: 42px; padding: 10px 16px; font-size: 14px; border-radius: 9px; }
.info-page { padding-bottom: 65px; }
.prose { max-width: 760px; margin: 10px auto 30px; }
.prose h1 { font-size: 36px; font-weight: 750; line-height: 1.4; letter-spacing: -1px; margin: 15px 0 22px; }
.prose .lead { font-size: 18px; line-height: 1.8; color: #4e5968; margin-bottom: 36px; }
.prose h2 { font-size: 22px; margin: 32px 0 12px; }
.prose p, .prose li { font-size: 16px; line-height: 1.95; color: #4e5968; }
.prose ul { padding-left: 21px; }
.prose li + li { margin-top: 9px; }
.prose a:not(.button) { color: var(--blue); }
.prose .button { margin-top: 20px; }
.notice, .contact-pending, .noscript { padding: 20px; background: #f2f4f6; border-radius: 12px; font-size: 14px; line-height: 1.9; color: #4e5968; }
.not-found { padding-block: 90px 110px; text-align: center; }
.not-found h1 { font-size: 43px; line-height: 1.4; letter-spacing: -1px; margin: 22px 0; }
.not-found p { color: #6b7684; font-size: 16px; line-height: 1.9; margin-bottom: 28px; }
@media (max-width: 960px) {
  .container { width: calc(100% - 48px); }
  .header-inner { gap: 35px; }
  .header-inner nav { gap: 24px; }
  .tool-card { padding: 22px; }
  .tool-card h3 { font-size: 19px; }
  .search-hint { display: none; }
  .input-panel, .result-panel { padding: 27px; }
  .primary-result { font-size: 45px; }
  .result-details small { display: block; margin-left: 0; }
  .detail-layout { gap: 35px; }
  .service-notes { gap: 18px; }
  .service-notes > div { padding: 22px; gap: 12px; }
}
@media (max-width: 720px) {
  .container { width: calc(100% - 40px); }
  .header-inner { min-height: 66px; gap: 24px; }
  .brand { gap: 8px; }
  .brand img { width: 27px; height: 27px; }
  .brand > span { font-size: 20px; }
  .header-inner nav { margin-left: auto; font-size: 13px; gap: 20px; }
  .header-inner nav a:last-child, .header-help { display: none; }
  .home-intro { padding-top: 35px; padding-bottom: 32px; }
  .intro-caption { font-size: 12px; margin-bottom: 10px; }
  .home-intro h1 { font-size: 28px; letter-spacing: -.7px; }
  .home-intro > p:not(.intro-caption) { font-size: 14px; max-width: 290px; margin-inline: auto; line-height: 1.8; }
  .tool-search { margin-top: 23px; min-height: 56px; padding-inline: 15px; gap: 10px; border-radius: 12px; }
  .tool-search input { height: 54px; font-size: 15px; }
  .tool-search > .icon { width: 20px; height: 20px; }
  .directory-background { padding-top: 26px; }
  .section-heading { gap: 10px; margin-bottom: 18px; }
  .section-heading h2 { font-size: 21px; }
  .free-label { font-size: 11px; }
  .count-badge { font-size: 15px; }
  .tool-filters { margin-bottom: 18px; }
  .tool-filters button { min-height: 38px; padding: 7px 15px; font-size: 13px; }
  .tool-grid, .related-grid { grid-template-columns: 1fr; gap: 13px; }
  .tool-card { padding: 23px; border-radius: 16px; }
  .card-top { margin-bottom: 17px; }
  .tool-card h3 { font-size: 21px; }
  .tool-card > p { min-height: 0; font-size: 15px; margin-bottom: 20px; }
  .category { font-size: 12px; }
  .card-bottom { padding-top: 16px; }
  .service-notes { grid-template-columns: 1fr; gap: 12px; padding-bottom: 32px; }
  .service-notes > div { padding: 21px; }
  .service-notes h2 { font-size: 15px; }
  .service-notes p { font-size: 13px; }
  .faq-section { padding-bottom: 35px; }
  .faq-section > h2 { font-size: 21px; margin-bottom: 15px; }
  .faq-grid { grid-template-columns: 1fr; }
  .faq-grid details:nth-last-child(2) { border-bottom: 0; }
  .faq-grid summary { font-size: 14px; padding: 17px 0; }
  .footer-top { display: block; padding-bottom: 22px; }
  .footer-top nav { gap: 12px 20px; margin-top: 21px; font-size: 12px; }
  .footer-bottom { font-size: 10px; }
  .footer-bottom > span:last-child { display: none; }
  .breadcrumbs { font-size: 12px; padding-top: 21px; padding-bottom: 25px; }
  .tool-intro { margin-bottom: 25px; }
  .tool-intro h1 { font-size: 29px; margin-top: 14px; }
  .tool-intro > p { font-size: 15px; line-height: 1.8; }
  .calculator-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .input-panel, .result-panel { padding: 25px; border-radius: 18px; }
  .panel-heading { gap: 12px; margin-bottom: 23px; }
  .panel-heading h2 { font-size: 18px; }
  .example-button { font-size: 12px; padding-inline: 10px; }
  .field label { font-size: 15px; }
  .input-wrap input { height: 60px; font-size: 23px; }
  .form-actions { gap: 10px; }
  .form-actions .button { font-size: 15px; }
  .result-panel > h2 { font-size: 24px; margin-bottom: 22px; }
  .result-label { font-size: 17px; }
  .primary-result { font-size: 44px; letter-spacing: -1.1px; }
  .result-details > div { font-size: 15px; }
  .result-details strong { font-size: 23px; }
  .result-total strong { font-size: 28px; }
  .result-details small { display: inline-block; font-size: 11px; margin-left: 3px; }
  .privacy-note { font-size: 11px; justify-content: flex-start; }
  .detail-layout { grid-template-columns: minmax(0, 1fr); gap: 25px; padding-top: 30px; margin-top: 30px; }
  .explanation h2 { font-size: 22px; }
  .explanation h3 { font-size: 17px; }
  .explanation p, .explanation li { font-size: 15px; }
  .formula { font-size: 13px; padding: 18px; }
  .help-aside { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--line); }
  .aside-contact { margin-top: 20px; padding-top: 20px; }
  .related-tools { margin-top: 30px; padding-top: 25px; padding-bottom: 40px; }
  .related-tools .section-heading h2 { font-size: 21px; }
  .counter-stats { padding: 23px 9px; }
  .counter-stats span { font-size: 14px; }
  .counter-stats strong { font-size: 36px; }
  .counter-stats small { font-size: 12px; margin-left: 3px; }
  .editor-panel { padding: 18px; }
  .editor-panel .panel-heading { align-items: flex-start; gap: 10px; }
  .editor-panel label { font-size: 14px; }
  .live-badge { font-size: 10px; margin-top: 2px; }
  .editor-panel textarea { font-size: 16px; padding: 16px; min-height: 300px; }
  .prose h1 { font-size: 30px; }
  .prose .lead { font-size: 16px; }
  .prose h2 { font-size: 20px; }
  .prose p, .prose li { font-size: 15px; }
  .info-page { padding-bottom: 40px; }
  .not-found { padding-block: 65px 85px; }
  .not-found h1 { font-size: 35px; }
  .not-found p { font-size: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *:before, *:after { transition: none !important; animation: none !important; }
}
/* Coupon planning */
.orange .tool-icon, .tool-icon.orange { background: #fff2e7; color: #e78b29; }
.coupon-layout { grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr); align-items: start; }
.coupon-result-column { min-width: 0; position: sticky; top: 102px; }
.coupon-section-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 30px 0 10px; padding-top: 25px; border-top: 1px solid var(--line); }
.coupon-section-heading h2 { font-size: 20px; }
.coupon-section-heading h2 > span { color: #8b95a1; font-size: 12px; font-weight: 500; margin-left: 6px; white-space: nowrap; }
.coupon-instruction { color: #6b7684; font-size: 13px; line-height: 1.8; margin: 0 0 18px; }
.coupon-rows { display: grid; gap: 13px; }
.coupon-row { border: 1px solid var(--line); border-radius: 13px; padding: 18px; background: #fafbfd; min-width: 0; }
.coupon-row-heading { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.coupon-row-heading h3 { font-size: 15px; font-weight: 650; margin: 0; white-space: nowrap; }
.coupon-auto { color: #2272eb; background: #eaf2ff; border-radius: 5px; padding: 3px 6px; font-size: 10px; line-height: 1.5; }
.coupon-remove { background: transparent; border: 0; padding: 5px; min-height: 30px; color: #6b7684; font-size: 12px; margin-left: auto; }
.coupon-remove:hover { color: #d92939; }
.coupon-row-controls { display: grid; grid-template-columns: 115px minmax(0, 1fr); gap: 10px; }
.coupon-row select { width: 100%; min-height: 52px; padding: 10px; border: 1px solid #dce2e9; border-radius: 9px; background: #fff; color: #333d4b; font-size: 14px; font-family: var(--font); }
.coupon-row .input-wrap input { height: 52px; padding: 10px 36px 10px 12px; font-size: 20px; border-radius: 9px; background: #fff; }
.coupon-row .input-wrap input::placeholder { font-size: 14px; }
.coupon-row .input-wrap > span { right: 13px; font-size: 14px; }
.coupon-row-result { display: flex; justify-content: space-between; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 14px; }
.coupon-row-result > span { color: #6b7684; font-size: 11px; }
.coupon-row-result > strong { margin-left: auto; font-size: 20px; font-weight: 650; color: #2272eb; overflow-wrap: anywhere; }
.coupon-add { width: 100%; border: 1px dashed #cdd7e4; background: #fff; color: #4e5968; border-radius: 9px; padding: 11px; min-height: 44px; margin-top: 13px; font-size: 14px; }
.coupon-add:hover { background: #f5f8fc; }
.coupon-add:disabled { cursor: default; color: #8b95a1; background: #f9fafb; }
.coupon-match { font-size: 14px; color: #6b7684; line-height: 1.8; margin: 14px 0 0; }
.coupon-match[data-match='exact'] { color: #14835a; }
.coupon-match[data-match='different'] { color: #c36b1c; }
.coupon-summary { display: grid; gap: 13px; margin-top: 4px; }
.coupon-summary > div { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 5px 12px; font-size: 14px; color: #6b7684; }
.coupon-summary strong { font-size: 19px; color: #333d4b; font-weight: 600; margin-left: auto; }
.coupon-result-column .result-total { margin-bottom: 10px; }
.coupon-form .form-error { margin-top: 15px; }
.coupon-result-column .privacy-note { justify-content: flex-start; }
@media (max-width: 960px) { .coupon-row { padding: 15px; } .coupon-row-controls { grid-template-columns: 101px minmax(0, 1fr); gap: 8px; } }
@media (max-width: 720px) {
  .coupon-layout { grid-template-columns: minmax(0, 1fr); }
  .coupon-result-column { position: static; }
  .coupon-section-heading h2 { font-size: 18px; }
  .coupon-section-heading .live-badge { font-size: 10px; }
  .coupon-row { padding: 15px; }
  .coupon-row-controls { grid-template-columns: 106px minmax(0, 1fr); }
  .coupon-row-result > strong { font-size: 21px; }
  .coupon-match { font-size: 13px; }
}
@media (max-width: 360px) {
  .coupon-form { padding: 20px; }
  .coupon-section-heading { flex-wrap: wrap; gap: 5px; }
  .coupon-row-controls { grid-template-columns: minmax(0, 1fr); }
  .coupon-row select { min-height: 44px; }
  .coupon-auto { font-size: 9px; }
}
.coupon-price-fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.coupon-price-fields .field + .field { margin-top: 0; }
.coupon-row select:focus-visible { outline: 3px solid #3182f6; outline-offset: 3px; }
@media (max-width: 720px) { .coupon-price-fields { grid-template-columns: minmax(0, 1fr); gap: 22px; } }
/* Import cost and business margin */
.teal .tool-icon, .tool-icon.teal { color: #168f94; background: #e4f5f5; }
.margin-layout { grid-template-columns: minmax(0, 1.14fr) minmax(0, 1fr); align-items: start; }
.margin-result-column { min-width: 0; position: sticky; top: 94px; }
.business-types { margin: 0; padding: 0; border: 0; min-width: 0; }
.discount-modes, .feels-like-modes { margin-bottom: 18px; }
[data-humidity-field], [data-wind-field] { margin-top: 23px; }
[data-wind-field] .input-wrap { gap: 10px; }
[data-wind-field] .input-wrap input { padding-right: 14px; }
[data-wind-field] select { min-height: 44px; padding: 8px; border: 1px solid var(--line); border-radius: 9px; background: #fff; color: var(--ink); font: inherit; }
.business-types legend { font-size: 15px; font-weight: 600; color: #4e5968; margin-bottom: 10px; }
.business-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.business-options label { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 10px; min-height: 48px; border: 1px solid #dce2e9; border-radius: 10px; font-size: 15px; font-weight: 600; color: #6b7684; cursor: pointer; }
.business-options label:has(input:checked) { color: #2272eb; background: #edf5ff; border-color: #3182f6; }
.business-options input { width: 16px; height: 16px; accent-color: #3182f6; margin: 0; }
.margin-tax-assumption { font-size: 12px; line-height: 1.8; color: #6b7684; margin: 12px 0 0; }
.margin-input-section { margin-top: 25px; padding-top: 24px; border-top: 1px solid var(--line); }
.margin-section-title { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.margin-section-title h2 { font-size: 19px; }
.margin-section-title > span { font-size: 11px; color: #6b7684; padding: 4px 7px; background: #f2f4f6; border-radius: 5px; white-space: nowrap; }
.margin-field-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.margin-field-grid .field + .field { margin-top: 0; }
.margin-form .field label { font-size: 13px; line-height: 1.6; }
.margin-form select { width: 100%; min-height: 48px; font-family: var(--font); font-size: 15px; color: #333d4b; background: #fff; border: 1px solid #dce2e9; border-radius: 10px; padding: 10px 12px; }
.margin-form select:focus-visible { outline: 3px solid #3182f6; outline-offset: 3px; }
.margin-form .input-wrap input { font-size: 21px; height: 54px; padding: 12px 43px 12px 13px; }
.margin-form .input-wrap input::placeholder { font-size: 14px; }
.margin-form .input-wrap input:disabled { color: #8b95a1; background: #f2f4f6; }
.margin-form .input-wrap > span { font-size: 12px; right: 13px; }
.margin-form select + .margin-field-grid, .margin-input-section > .field + .margin-field-grid { margin-top: 18px; }
.principal-preview { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 7px 12px; padding: 14px; margin: 16px 0 22px; border-radius: 10px; background: #eef5ff; }
.principal-preview > span { font-size: 13px; font-weight: 600; color: #4e5968; }
.principal-preview small { display: block; font-size: 10px; font-weight: 400; color: #6b7684; margin-top: 3px; }
.principal-preview strong { font-size: 22px; font-weight: 700; color: #2272eb; margin-left: auto; }
.margin-credit-input { border-top: 1px solid var(--line); margin-top: 24px; padding-top: 20px; }
.margin-credit-input summary { cursor: pointer; color: #4e5968; font-size: 14px; font-weight: 600; }
.margin-credit-input summary > span { font-size: 11px; font-weight: 400; color: #8b95a1; margin-left: 5px; }
.margin-credit-input > div { margin-top: 17px; }
.margin-credit-input p { font-size: 12px; color: #6b7684; line-height: 1.8; margin: 10px 0 0; }
.margin-result-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.margin-result-heading h2 { font-size: 24px; }
.margin-result-heading > span { font-size: 11px; font-weight: 500; color: #4e5968; background: #e4ebf5; padding: 4px 8px; border-radius: 6px; white-space: nowrap; }
.margin-result-column .result-label { font-size: 18px; }
.margin-result-column .result-label small { font-size: 12px; color: #6b7684; margin-left: 4px; }
.margin-key-metrics { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-top: 20px; padding-bottom: 4px; }
.margin-key-metrics span { display: block; color: #4e5968; font-size: 13px; }
.margin-key-metrics span small { display: block; color: #6b7684; font-size: 10px; }
.margin-key-metrics strong { display: block; color: #2272eb; font-size: 27px; font-weight: 700; line-height: 1.4; margin-top: 7px; overflow-wrap: anywhere; }
.margin-result-column .result-details { gap: 12px; margin-top: 21px; padding-top: 20px; }
.margin-result-column .result-details > div { font-size: 13px; }
.margin-result-column .result-details strong { font-size: 19px; }
.margin-result-column .result-total { padding-top: 10px; padding-bottom: 0; border-bottom: 0; border-top: 1px solid #dce5f0; }
.margin-result-column .result-total strong { font-size: 23px; }
.margin-result-column .result-details small { font-size: 10px; }
.margin-tax-details { margin-top: 18px; padding-top: 17px; border-top: 1px solid #dce5f0; }
.margin-tax-details summary { cursor: pointer; color: #4e5968; font-size: 13px; font-weight: 600; }
.margin-tax-details dl { display: grid; gap: 10px; margin: 17px 0 0; }
.margin-tax-details dl > div { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 10px; font-size: 12px; }
.margin-tax-details dt { color: #6b7684; }
.margin-tax-details dd { margin: 0 0 0 auto; font-size: 15px; color: #333d4b; }
#margin-result[data-profit='loss'] .primary-result, #margin-result[data-profit='loss'] [data-margin-output='marginPercent'] { color: #d92939; }
@media (max-width: 960px) { .margin-form, .margin-result-column .result-panel { padding: 25px; } .margin-section-title h2 { font-size: 18px; } .margin-key-metrics { gap: 12px; } .margin-key-metrics strong { font-size: 24px; } }
@media (max-width: 720px) { .margin-layout { grid-template-columns: minmax(0, 1fr); } .margin-result-column { position: static; } .margin-result-heading h2 { font-size: 24px; } .margin-field-grid { gap: 17px 12px; } .margin-key-metrics strong { font-size: 25px; } .margin-result-column .result-details strong { font-size: 21px; } .margin-result-column .result-total strong { font-size: 24px; } }
@media (max-width: 360px) { .margin-form, .margin-result-column .result-panel { padding: 20px; } .margin-field-grid { grid-template-columns: minmax(0, 1fr); } .margin-section-title { flex-wrap: wrap; gap: 7px; } .business-options label { font-size: 14px; } .margin-key-metrics { grid-template-columns: minmax(0, 1fr); } .margin-key-metrics span small { display: inline; margin-left: 3px; } }
#margin-result { scroll-margin-top: 94px; }
@media (min-width: 721px) and (max-height: 950px) { .margin-result-column { position: static; } }
.margin-exchange-field { margin-top: 18px; }
.margin-total-principal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; margin: -10px 0 23px; padding: 0 4px; color: #4e5968; font-size: 13px; }
.margin-total-principal small { display: block; color: #8b95a1; font-size: 10px; margin-top: 2px; }
.margin-total-principal strong { font-size: 19px; font-weight: 650; margin-left: auto; }
.result-share-panel { padding: 22px; margin-top: 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; }
.result-share-panel h2 { font-size: 16px; margin: 0 0 13px; }
.result-share-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.result-share-actions button { min-height: 48px; padding: 12px 8px; border: 0; border-radius: 10px; font: 600 14px var(--font); color: #333d4b; background: #f2f4f6; cursor: pointer; }
.result-share-actions button:hover { background: #e5e8eb; }
.result-share-actions .kakao-share { background: #fee500; color: #191919; }
.result-share-actions .kakao-share:hover { background: #f0d900; }
.result-share-actions button:disabled { opacity: .45; cursor: default; }
.result-share-actions button:focus-visible { outline: 3px solid #3182f6; outline-offset: 3px; }
.result-share-panel p { font-size: 12px; line-height: 1.8; color: #6b7684; margin: 12px 0 0; }
[data-share-status]:empty { display: none; }
[data-share-status] { color: #2272eb; }
[data-manual-copy] label { display: block; margin: 16px 0 8px; color: #4e5968; font-size: 13px; }
#result-share-text { width: 100%; resize: vertical; border: 1px solid #dce2e9; border-radius: 8px; padding: 12px; font: 13px/1.7 var(--font); color: #333d4b; background: #fafbfd; }
@media (max-width: 360px) { .result-share-panel { padding: 18px; } .result-share-actions { grid-template-columns: minmax(0, 1fr); } }
.margin-minimum { border-top: 1px solid #dce5f0; margin-top: 20px; padding-top: 18px; }
.margin-minimum > span { display: block; color: #4e5968; font-size: 15px; font-weight: 600; }
.margin-minimum small { font-size: 11px; font-weight: 400; margin-left: 5px; }
.margin-minimum strong { display: block; font-size: 32px; color: #2272eb; margin-top: 8px; overflow-wrap: anywhere; }
.margin-minimum p { font-size: 12px; line-height: 1.8; color: #6b7684; margin: 9px 0 0; }
.margin-autosave { margin-top: 20px; border-top: 1px solid var(--line); padding-top: 16px; }
.margin-autosave label { display: flex; align-items: center; gap: 9px; min-height: 44px; color: #4e5968; font-size: 14px; font-weight: 600; cursor: pointer; }
.margin-autosave input { width: 18px; height: 18px; accent-color: #3182f6; margin: 0; flex-shrink: 0; }
.margin-autosave p { color: #6b7684; font-size: 12px; line-height: 1.8; margin: 5px 0 0; }
#margin-save-status:empty { display: none; }
#margin-save-status { color: #2272eb; }
.spelling-check .icon { width: 17px; height: 17px; }
#spelling-status { font-size: 14px; font-weight: 600; color: var(--blue); margin: 16px 0 0; }
#spelling-status:empty { margin: 0; }
.spelling-suggestions { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.spelling-suggestions li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 10px; background: var(--surface); }
.spelling-suggestions p { margin: 0; }
.spelling-original { color: #b42339; }
.spelling-suggestions strong { color: #1765ce; }
.spelling-suggestions .spelling-context { font-size: 12px; color: var(--muted); margin-top: 4px; }
.spelling-context mark { background: #fce9ec; color: #9a2737; border-radius: 3px; }
.spelling-apply { flex-shrink: 0; min-height: 44px; padding: 8px 13px; border: 0; border-radius: 8px; color: #1765ce; background: #e7f0ff; font-size: 14px; font-weight: 600; }
.spelling-apply:hover { background: #dceaff; }

#ranking-result { scroll-margin-top: 90px; }
.ranking-curve { margin: 20px 0 0; }
.ranking-curve svg { display: block; width: 100%; height: auto; }
.ranking-curve path, .ranking-curve line { fill: none; stroke-linecap: round; }
.ranking-curve-axis { stroke: #8a9bb3; stroke-width: 1; stroke-dasharray: 3 4; }
.ranking-curve-line { stroke: #839ab8; stroke-width: 2; }
.ranking-curve-score { stroke: var(--blue); stroke-width: 2.5; }
.ranking-curve-outside { display: none; }
.ranking-curve figcaption { color: #4e5968; font-size: 13px; font-weight: 600; }
.ranking-curve figcaption span { display: block; color: var(--muted); font-size: 12px; font-weight: 400; }

.neis-fields { display: grid; gap: 16px; }
[data-neis-calculator] .counter-stats strong { overflow-wrap: anywhere; }
.neis-fields fieldset { min-width: 0; margin: 0; border: 0; padding: 0; }
.neis-fields legend { margin-bottom: 8px; padding: 0; font-size: 15px; font-weight: 600; }
.neis-choices { display: flex; flex-wrap: wrap; gap: 8px; }
.neis-choices label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 10px; color: #4e5968; font-size: 14px; cursor: pointer; }
.neis-choices label:has(input:checked) { border-color: #3182f6; background: #edf5ff; color: #1765ce; }
.neis-choices input { width: 16px; height: 16px; margin: 0; flex-shrink: 0; accent-color: var(--blue); }
.neis-custom-choice { margin-top: 8px; }
.neis-fields .field { max-width: 240px; margin: 0; }
.neis-editor .panel-heading { margin-top: 20px; }
.neis-meter { display: grid; gap: 6px; margin-top: 14px; }
.neis-meter progress { width: 100%; height: 10px; accent-color: var(--blue); }
.neis-meter p { color: var(--blue); font-size: 14px; margin: 0; }
.neis-meter[data-over='true'] progress { accent-color: #b42339; }
.neis-meter[data-over='true'] p { color: #b42339; }
.neis-guide-table { margin: 12px 0; border-bottom: 1px solid var(--line); padding-bottom: 12px; }
.neis-guide-table summary { cursor: pointer; font-weight: 650; color: var(--ink); }
.neis-guide-table .table-scroll { margin-top: 12px; }
.neis-guide-table small { display: block; font-weight: 400; color: var(--muted); }
.editor-toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin-top: 16px; }
.editor-toolbar label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: 14px; cursor: pointer; }
.editor-toolbar input { margin: 0; width: 17px; height: 17px; accent-color: var(--blue); }
.editor-toolbar-notes { margin-top: 8px; }
.editor-toolbar-notes p { margin: 0; color: var(--muted); font-size: 13px; }
.editor-toolbar-notes [role="status"], .editor-history-status { color: var(--blue); }
.editor-toolbar-notes [role="status"]:empty, .editor-history-status:empty { display: none; }
.editor-history-dialog { width: min(560px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: #fff; color: var(--ink); }
.editor-history-dialog::backdrop { background: rgb(25 31 40 / 50%); }
.editor-history-dialog h2 { margin: 0; font-size: 21px; }
.editor-history-dialog p { font-size: 14px; }
.editor-history-fields { display: grid; gap: 7px; }
.editor-history-fields label { margin-top: 6px; font-weight: 600; }
.editor-history-fields select, .editor-history-fields textarea { width: 100%; min-height: 44px; padding: 9px 12px; border: 1px solid var(--line); border-radius: 8px; background: #f9fafb; color: var(--ink); font: inherit; }
.editor-history-fields textarea { resize: vertical; }
.editor-history-fields .input-help { margin: 0; }
.editor-history-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.editor-history-dialog form { display: flex; justify-content: flex-end; margin-top: 15px; }
.editor-history-dialog form button { min-height: 44px; }
@media (max-width: 720px) {
  [data-neis-calculator] .counter-stats strong { font-size: clamp(22px, 6.8vw, 36px); }
}
