:root {
  color-scheme: light;
  --ink: #1c2430;
  --muted: #4b5565;
  --line: #dbe4de;
  --soft: #f7f9f8;
  --green: #176b56;
  --green-dark: #125642;
  --green-soft: #eaf5f0;
  --white: #fff;
  --shadow: 0 20px 70px rgba(30, 47, 59, .08), 0 2px 8px rgba(30, 47, 59, .035);
}
* { box-sizing: border-box; }
html { min-width: 320px; background: var(--soft); scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  font-family: Inter, Pretendard, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  background: radial-gradient(ellipse at 50% -15%, rgba(199, 239, 221, .38), transparent 48%), var(--soft);
}
a { color: inherit; }
button, input { font: inherit; }
button { -webkit-tap-highlight-color: transparent; }
.skip-link { position: absolute; z-index: 10; top: 8px; left: 8px; padding: 10px 14px; border-radius: 8px; color: white; background: var(--green-dark); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
.site-header { height: 68px; border-bottom: 1px solid rgba(229, 235, 231, .8); background: rgba(255,255,255,.78); }
.header-inner { display: flex; width: min(100% - 40px, 1080px); height: 100%; margin: 0 auto; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 9px; color: var(--ink); text-decoration: none; font-size: 17px; font-weight: 780; letter-spacing: -.05em; }
.brand-english { margin-left: 3px; color: #475467; font-size: .62em; font-weight: 650; letter-spacing: -.015em; }
.brand-badge-pill {
  display: inline-flex;
  align-items: center;
  margin-left: 6px;
  padding: 3px 9px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 780;
  color: #0f5c3e;
  background: #dff5ea;
  border: 1px solid #b2e4cb;
  letter-spacing: -0.02em;
  vertical-align: middle;
  line-height: 1.25;
}
.footer-brand .brand-badge-pill {
  background: #ebf6f0;
  color: #12563d;
  border-color: #bce1ce;
}
.brand-mark { display: grid; width: 33px; height: 33px; place-items: center; border-radius: 11px; color: white; background: var(--green); box-shadow: 0 5px 12px rgba(23,107,86,.18); }
.brand-mark svg { width: 19px; height: 19px; }
.site-nav { display: flex; align-items: center; gap: 6px; }
.site-nav a { display: inline-flex; align-items: center; justify-content: center; min-height: 40px; padding: 8px 13px; border-radius: 9px; color: #374151; text-decoration: none; font-size: 13.5px; font-weight: 650; transition: color .16s, background .16s; }
.site-nav a:hover, .site-nav a.active { color: var(--green-dark); background: #ebf6f0; font-weight: 750; }
.hero { width: min(100% - 40px, 800px); margin: 47px auto 25px; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 7px; color: var(--green); font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow svg { width: 14px; height: 14px; }
h1 { margin: 12px 0 9px; font-size: clamp(30px, 5vw, 43px); line-height: 1.2; letter-spacing: -.065em; font-weight: 770; }
.hero > p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.75; letter-spacing: -.025em; }
.calculator-card { overflow: hidden; width: min(100% - 40px, 860px); margin: 0 auto; border: 1px solid rgba(228,233,237,.9); border-radius: 23px; background: var(--white); box-shadow: var(--shadow); }
.card-bar { display: flex; min-height: 59px; padding: 0 23px; align-items: center; justify-content: space-between; border-bottom: 1px solid #edf0f2; }
.bar-title { display: inline-flex; align-items: center; gap: 9px; color: #4d5662; font-size: 13px; font-weight: 700; }
.bar-title svg { width: 16px; height: 16px; color: var(--green); }
.bar-badge { padding: 5px 11px; border: 1px solid #d4e8de; border-radius: 99px; color: #17543f; background: #f4faf6; font-size: 12px; font-weight: 700; }
.conversation { padding: 27px clamp(18px, 5.5vw, 46px) 33px; }
.message { display: flex; align-items: flex-start; gap: 12px; }
.avatar { display: grid; flex: 0 0 34px; width: 34px; height: 34px; place-items: center; border-radius: 12px; color: white; background: linear-gradient(145deg, #31886f, #155b49); box-shadow: 0 4px 10px rgba(23,107,86,.18); }
.avatar svg { width: 19px; height: 19px; }
.message-content { min-width: 0; flex: 1; }
.message-meta { display: flex; align-items: baseline; gap: 8px; margin: 1px 0 9px; }
.sender { color: #202b36; font-size: 13px; font-weight: 750; }
.message-time { color: #475467; font-size: 12px; font-weight: 500; }
.bubble { width: fit-content; max-width: 100%; padding: 13px 17px; border: 1px solid #e1e7e4; border-radius: 4px 16px 16px 16px; color: #374151; background: #f8faf9; font-size: 14px; line-height: 1.7; letter-spacing: -.02em; }
.bubble strong { color: #111827; font-weight: 750; }
.entry-panel { margin: 19px 0 0 46px; padding: 22px; border: 1px solid #e2e8e5; border-radius: 17px; background: #fff; box-shadow: 0 4px 14px rgba(29,46,57,.025); }
.entry-heading { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 0 0 17px; }
.entry-heading h2 { margin: 0; font-size: 14.5px; letter-spacing: -.025em; font-weight: 750; color: #1f2937; }
.entry-hint { color: #4b5768; font-size: 12px; font-weight: 600; }
.fields { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.field { min-width: 0; }
.field label { display: block; margin-bottom: 8px; color: #374151; font-size: 13px; font-weight: 700; }
.control { position: relative; display: flex; height: 50px; padding: 0 14px; align-items: center; border: 1px solid #d5dddf; border-radius: 11px; background: white; transition: border-color .18s, box-shadow .18s; }
.control:focus-within { border-color: #176b56; box-shadow: 0 0 0 3px rgba(23,107,86,.18); }
.control input { width: 100%; min-width: 0; height: 100%; border: 0; outline: 0; color: #111827; background: transparent; font-size: 16px; font-weight: 700; letter-spacing: -.025em; }
.control input::-webkit-inner-spin-button, .control input::-webkit-outer-spin-button { margin: 0; appearance: none; }
.control input[type=number] { appearance: textfield; }
.prefix, .suffix { flex: 0 0 auto; color: #4b5565; font-size: 13px; font-weight: 650; }
.prefix { margin-right: 7px; }
.suffix { margin-left: 6px; }
.schedule-summary { display: flex; align-items: center; gap: 8px; margin-top: 13px; color: #374151; font-size: 12.5px; letter-spacing: -.015em; line-height: 1.6; }
.schedule-summary svg { width: 16px; height: 16px; color: #176b56; flex: 0 0 auto; }
.attendance { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 17px; padding: 14px 16px; border: 1px solid #dce4e0; border-radius: 11px; background: #fbfcfc; }
.attendance-copy { display: flex; flex-direction: column; gap: 4px; }
.attendance-copy strong { color: #1f2937; font-size: 13.5px; font-weight: 750; }
.attendance-copy span { color: #4b5565; font-size: 12px; line-height: 1.55; }
.toggle { position: relative; flex: 0 0 auto; width: 44px; height: 26px; }
.toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.toggle-track { position: absolute; inset: 0; border-radius: 20px; background: #cbd5e1; cursor: pointer; transition: .2s; }
.toggle-track::after { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: white; box-shadow: 0 1px 4px #0002; content: ""; transition: .2s; }
.toggle input:checked + .toggle-track { background: #176b56; }
.toggle input:checked + .toggle-track::after { transform: translateX(18px); }
.toggle input:focus-visible + .toggle-track { outline: 3px solid #146c51; outline-offset: 2px; }
.form-bottom { display: flex; align-items: center; justify-content: flex-start; gap: 14px; margin-top: 17px; }
.privacy-note { display: inline-flex; align-items: center; gap: 6px; color: #4b5565; font-size: 12px; }
.privacy-note svg { width: 14px; height: 14px; flex: 0 0 auto; }
.assistant-response { margin: 25px 0 0 46px; padding-top: 23px; border-top: 1px solid #e5ebe7; }
.response-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.response-label { display: inline-flex; align-items: center; gap: 7px; color: #1f2937; font-size: 13.5px; font-weight: 750; }
.response-label svg { width: 16px; height: 16px; color: #176b56; }
.period-picker { display: inline-flex; padding: 4px; align-items: center; gap: 4px; border: 1px solid #d5e0d9; border-radius: 10px; background: #f4f6f5; }
.period-button { min-width: 52px; min-height: 40px; padding: 0 14px; border: 0; border-radius: 8px; color: #4b5565; background: transparent; cursor: pointer; font-size: 13px; font-weight: 700; transition: .16s; }
.period-button[aria-pressed="true"] { color: #0d4a3b; background: white; box-shadow: 0 1px 5px rgba(24,43,53,.14); }
.period-button:focus-visible, .copy-button:focus-visible, .button-link:focus-visible, .chip-btn:focus-visible, .tax-chip:focus-visible, .cloud-tag-btn:focus-visible { outline: 2.5px solid #146c51; outline-offset: 2px; }
.result-bubble { padding: 22px 24px 20px; border: 1px solid #cce5d8; border-radius: 4px 17px 17px 17px; background: linear-gradient(145deg, #f7fcf9, #eff8f3); }
.result-period { margin-bottom: 7px; color: #17543f; font-size: 13px; font-weight: 700; }
.amount-line { display: flex; align-items: baseline; flex-wrap: wrap; gap: 8px; }
.amount { color: #0e3b2e; font-size: clamp(32px, 6vw, 44px); line-height: 1.08; letter-spacing: -.07em; font-weight: 800; font-variant-numeric: tabular-nums; }
.amount-unit { color: #235844; font-size: 15px; font-weight: 700; }
.result-caption { margin-top: 8px; color: #2c5945; font-size: 12.5px; font-weight: 600; }
.breakdown { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 19px; padding-top: 16px; border-top: 1px solid #cde4d7; }
.breakdown-item { display: flex; align-items: center; justify-content: space-between; gap: 8px; color: #2a3c33; font-size: 13px; }
.breakdown-item strong { color: #0d382a; font-size: 13.5px; font-weight: 750; font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc-explain { display: flex; margin-top: 13px; padding: 12px 14px; align-items: flex-start; gap: 8px; border: 1px solid #dce4e0; border-radius: 10px; color: #374151; background: #fff; font-size: 12.5px; line-height: 1.65; }
.calc-explain svg { flex: 0 0 15px; width: 15px; height: 15px; margin-top: 2px; color: #176b56; }
.warning { display: none; margin-top: 10px; padding: 12px 14px; border-radius: 9px; color: #7c440a; background: #fff8ee; border: 1px solid #fbd38d; font-size: 12.5px; line-height: 1.65; font-weight: 550; }
.warning.visible { display: block; }
.response-actions { display: flex; margin-top: 14px; align-items: center; justify-content: space-between; gap: 10px; }
.legal-note { max-width: 520px; color: #475467; font-size: 12px; line-height: 1.6; }
.copy-button { display: inline-flex; min-height: 44px; min-width: 44px; padding: 8px 14px; align-items: center; justify-content: center; gap: 6px; border: 1px solid #d1ded8; border-radius: 8px; color: #17543f; background: #ffffff; cursor: pointer; font-size: 12.5px; font-weight: 700; white-space: nowrap; transition: all .16s; }
.copy-button:hover { color: #ffffff; background: var(--green); border-color: var(--green); }
.copy-button svg { width: 15px; height: 15px; }

/* Content on the calculator home page */
.content-section { width: min(100% - 40px, 860px); margin: 66px auto 58px; }
.section-heading { margin-bottom: 22px; text-align: center; }
.section-heading h2 { margin: 9px 0 7px; font-size: clamp(22px, 3vw, 29px); line-height: 1.35; letter-spacing: -.05em; }
.section-heading p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.info-grid { display: grid; gap: 13px; }
.three-columns { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.two-columns { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.info-card { min-width: 0; padding: 20px; border: 1px solid var(--line); border-radius: 15px; background: white; }
.step-number { display: inline-grid; width: 27px; height: 27px; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 12px; font-weight: 800; }
.info-card h3 { margin: 13px 0 7px; font-size: 15px; letter-spacing: -.03em; color: #1f2937; }
.info-card p { margin: 0; color: #374151; font-size: 13px; line-height: 1.75; }
.formula { margin-top: 15px; padding: 10px 12px; border-radius: 8px; color: #12563f; background: #eaf5ef; font-size: 12.5px; font-weight: 750; }
.text-link { display: inline-block; margin-top: 15px; color: var(--green); text-decoration: none; font-size: 13px; font-weight: 750; }
.text-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.example-panel { display: flex; margin-top: 15px; padding: 22px 24px; align-items: center; justify-content: space-between; gap: 20px; border: 1px solid #dceee5; border-radius: 15px; background: linear-gradient(110deg, #f1f9f5, #fbfdfc); }
.example-tag { color: #176b56; font-size: 12px; font-weight: 780; }
.example-panel h3 { margin: 7px 0 5px; font-size: 16px; letter-spacing: -.035em; color: #1f2937; }
.example-panel p { max-width: 500px; margin: 0; color: #374151; font-size: 13px; line-height: 1.7; }
.example-total { display: flex; flex: 0 0 auto; flex-direction: column; gap: 5px; text-align: right; }
.example-total span { color: #374151; font-size: 12px; font-weight: 600; }
.example-total strong { color: #0d3b2e; font-size: 24px; letter-spacing: -.05em; }
.content-disclaimer { margin: 16px 0 0; color: #475467; font-size: 12.5px; line-height: 1.7; }

/* About, feature guide, and privacy pages */
.article-page { width: min(100% - 40px, 840px); margin: 26px auto 70px; }
.breadcrumbs { display: flex; align-items: center; gap: 9px; margin: 0 0 30px; color: #475467; font-size: 13px; }
.breadcrumbs a { color: #374151; text-decoration: none; font-weight: 600; }
.breadcrumbs a:hover { color: var(--green); }
.article-header { max-width: 700px; margin: 0 auto 32px; text-align: center; }
.article-header h1 { margin-top: 11px; font-size: clamp(31px, 5vw, 42px); }
.article-lead { max-width: 640px; margin: 0 auto; color: #374151; font-size: 15.5px; line-height: 1.85; }
.policy-date { margin: 15px 0 0; color: #475467; font-size: 12.5px; }
.article-body { padding: 35px clamp(22px, 5.5vw, 56px); border: 1px solid var(--line); border-radius: 18px; background: white; box-shadow: 0 10px 35px rgba(30,47,59,.035); }
.article-body section + section { margin-top: 34px; padding-top: 28px; border-top: 1px solid #eef1ef; }
.article-body h2 { margin: 0 0 13px; color: #1f2937; font-size: 20px; letter-spacing: -.045em; line-height: 1.45; }
.article-body p { margin: 0 0 14px; color: #374151; font-size: 14.5px; line-height: 1.9; word-break: keep-all; }
.article-body p:last-child { margin-bottom: 0; }
.article-body strong { color: #111827; font-weight: 750; }
.article-body a { color: var(--green); text-underline-offset: 3px; font-weight: 600; }
.article-body a:hover { text-decoration-thickness: 2px; }
.step-list { display: grid; gap: 11px; padding: 0; margin: 0; counter-reset: steps; list-style: none; }
.step-list li { display: grid; grid-template-columns: 38px 1fr; gap: 0 11px; padding: 14px; border: 1px solid #edf1ee; border-radius: 11px; background: #fcfdfc; counter-increment: steps; }
.step-list li::before { display: grid; width: 28px; height: 28px; grid-row: span 2; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); content: counter(steps, decimal-leading-zero); font-size: 12px; font-weight: 800; }
.step-list li strong { align-self: end; font-size: 13.5px; color: #1f2937; }
.step-list li span { margin-top: 4px; color: #475467; font-size: 13px; line-height: 1.7; }
.formula-panel { display: grid; grid-template-columns: 1fr 1.3fr; gap: 10px 18px; margin: 18px 0; padding: 17px 19px; border: 1px solid #dceee5; border-radius: 12px; background: #f5fbf7; }
.formula-panel span { color: #374151; font-size: 13px; font-weight: 600; }
.formula-panel strong { color: #12563f; font-size: 14px; }
.small-note { color: #475467 !important; font-size: 12.5px !important; }
.source-line { color: #475467 !important; font-size: 12.5px !important; }
.table-wrap { overflow-x: auto; margin: 15px 0; border: 1px solid #e9eeeb; border-radius: 10px; }
table { width: 100%; border-collapse: collapse; text-align: left; }
th, td { min-width: 130px; padding: 13px 15px; border-bottom: 1px solid #edf1ee; vertical-align: top; font-size: 13px; line-height: 1.65; }
th { color: #1f2937; background: #f4f8f5; font-weight: 750; }
td { color: #374151; }
tr:last-child td { border-bottom: 0; }
.faq-section details { border-bottom: 1px solid #edf1ee; }
.faq-section details:first-of-type { border-top: 1px solid #edf1ee; }
.faq-section summary { position: relative; padding: 16px 32px 16px 4px; color: #1f2937; cursor: pointer; font-size: 14.5px; font-weight: 750; list-style: none; }
.faq-section summary::-webkit-details-marker { display: none; }
.faq-section summary::after { position: absolute; top: 14px; right: 4px; color: #176b56; content: "+"; font-size: 20px; font-weight: 700; }
.faq-section details[open] summary::after { content: "−"; }
.faq-section details p { margin: 0; padding: 0 25px 16px 4px; color: #374151; font-size: 13.5px; line-height: 1.8; }
.article-cta { display: flex; margin-top: 18px; padding: 20px 23px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid #cce5d8; border-radius: 14px; background: #f4faf6; }
.article-cta > div { display: flex; flex-direction: column; gap: 5px; }
.article-cta strong { color: #12563f; font-size: 15px; }
.article-cta span { color: #475467; font-size: 13px; }
.button-link { display: inline-flex; flex: 0 0 auto; min-height: 44px; padding: 0 16px; align-items: center; justify-content: center; gap: 8px; border-radius: 9px; color: white; background: var(--green); text-decoration: none; font-size: 13.5px; font-weight: 750; }
.button-link:hover { background: var(--green-dark); }
.button-link span { color: inherit; font-size: 15px; }
.feature-icon { display: inline-grid; width: 29px; height: 29px; place-items: center; border-radius: 9px; color: var(--green); background: var(--green-soft); font-size: 14px; font-weight: 800; }
.contact-card { padding: 18px; border: 1px solid #e7efea; border-radius: 12px; background: #fafcfb; }
.contact-card h2 { font-size: 16px; }
.launch-notice { display: flex; flex-direction: column; gap: 5px; margin: 0 0 15px; padding: 15px 18px; border: 1px solid #e0c89e; border-radius: 12px; color: #6d4b24; background: #fff9ef; }
.launch-notice strong { font-size: 13px; }
.launch-notice span { font-size: 12.5px; line-height: 1.65; }
.policy-body { padding-top: 31px; }
.contact-details { display: grid; gap: 0; margin: 14px 0; padding: 5px 15px; border: 1px solid #e9eeeb; border-radius: 10px; background: #fcfdfc; }
.contact-details p { display: grid; grid-template-columns: 170px 1fr; gap: 10px; margin: 0; padding: 11px 0; border-bottom: 1px solid #edf1ee; font-size: 12.5px; }
.contact-details p:last-child { border-bottom: 0; }
.contact-details strong { color: #374151; }
.contact-details span { color: #475467; }
.policy-bottom { margin-top: 16px; padding: 18px 20px; border: 1px solid #e7efea; border-radius: 12px; background: #f8fbf9; }
.policy-bottom strong { color: #17543f; font-size: 13px; }
.policy-bottom p { margin: 6px 0 0; color: #475467; font-size: 12.5px; line-height: 1.7; }

.site-footer { border-top: 1px solid #e7ece9; background: rgba(255,255,255,.75); }
.footer-inner { display: grid; width: min(100% - 40px, 1080px); margin: 0 auto; padding: 25px 0 23px; grid-template-columns: 1fr auto; align-items: center; gap: 10px 24px; }
.footer-brand { font-size: 14px; }
.footer-brand .brand-mark { width: 28px; height: 28px; border-radius: 9px; }
.footer-brand .brand-mark svg { width: 16px; height: 16px; }
.footer-inner > div:first-child p { margin: 7px 0 0 37px; color: #475467; font-size: 12.5px; line-height: 1.6; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; justify-content: flex-end; align-items: center; }
.footer-links a { color: #374151; text-decoration: none; font-size: 12.5px; font-weight: 650; min-height: 36px; display: inline-flex; align-items: center; }
.footer-links a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.copyright { grid-column: 1 / -1; margin: 9px 0 0; padding-top: 13px; border-top: 1px solid #edf0ee; color: #475467; font-size: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 700px) {
  .header-inner { width: calc(100% - 28px); gap: 10px; }
  .site-nav { gap: 2px; }
  .site-nav a { padding: 6px 7px; font-size: 12px; min-height: 38px; }
  .brand { gap: 7px; font-size: 15px; }
  .brand-mark { width: 30px; height: 30px; }
  .hero { margin-top: 38px; }
  .hero > p { max-width: 340px; margin: 0 auto; font-size: 13.5px; }
  .calculator-card { width: calc(100% - 24px); border-radius: 18px; }
  .card-bar { min-height: 53px; padding: 0 16px; }
  .conversation { padding: 22px 15px 25px; }
  .entry-panel, .assistant-response { margin-left: 0; }
  .entry-panel { margin-top: 16px; padding: 17px 14px; }
  .fields { gap: 10px; }
  .control { height: 48px; }
  .attendance { padding: 12px; }
  .privacy-note { font-size: 12px; }
  .assistant-response { margin-top: 22px; padding-top: 20px; }
  .response-top { align-items: flex-start; }
  .period-picker { margin-top: -4px; }
  .period-button { min-width: 44px; min-height: 38px; padding: 0 10px; font-size: 12px; }
  .result-bubble { padding: 18px 16px 15px; }
  .breakdown { gap: 10px; }
  .breakdown-item { align-items: flex-start; flex-direction: column; gap: 4px; }
  .response-actions { align-items: flex-start; flex-direction: column; gap: 10px; }
  .legal-note { max-width: 100%; font-size: 12px; }
  .content-section { width: calc(100% - 28px); margin-top: 48px; }
  .three-columns { grid-template-columns: 1fr; }
  .info-card { padding: 17px; }
  .example-panel { align-items: flex-start; flex-direction: column; padding: 19px; }
  .example-total { text-align: left; }
  .article-page { width: calc(100% - 28px); margin-top: 21px; }
  .breadcrumbs { margin-bottom: 22px; }
  .article-header { margin-bottom: 24px; }
  .article-lead { font-size: 13px; }
  .article-body { padding: 27px 20px; }
  .article-body h2 { font-size: 17px; }
  .article-body p { font-size: 12px; }
  .two-columns { grid-template-columns: 1fr; }
  .formula-panel { grid-template-columns: 1fr; gap: 7px; }
  .formula-panel strong + span { margin-top: 7px; }
  .article-cta { align-items: flex-start; flex-direction: column; }
  .footer-inner { width: calc(100% - 28px); grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; margin-top: 4px; }
  .copyright { grid-column: 1; }
}
@media (max-width: 420px) {
  .site-header { height: auto; min-height: 62px; }
  .header-inner { min-height: 62px; flex-wrap: wrap; padding: 10px 0; }
  .site-nav { width: 100%; justify-content: space-between; order: 2; }
  .site-nav a { padding: 7px 9px; }
  .hero { width: calc(100% - 26px); margin-top: 30px; }
  .calculator-card { width: calc(100% - 18px); }
  .conversation { padding-right: 11px; padding-left: 11px; }
  .entry-heading { align-items: flex-start; flex-direction: column; gap: 5px; }
  .entry-hint { font-size: 12px; }
  .privacy-note { max-width: 145px; line-height: 1.45; }
  .response-label { font-size: 12.5px; }
  .period-button { min-width: 32px; padding: 0 6px; }
  .article-page { width: calc(100% - 20px); }
  .article-body { padding: 23px 16px; }
  .step-list li { grid-template-columns: 33px 1fr; padding: 12px 10px; }
  .contact-details p { grid-template-columns: 1fr; gap: 3px; }
  .legal-note { max-width: 68%; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; } }

/* Audience selection and modular calculator tools */
[hidden] { display: none !important; }
.audience-switch { width: min(100% - 40px, 860px); margin: 0 auto 22px; padding: 17px 20px 14px; border: 1px solid #e5ebe7; border-radius: 17px; background: rgba(255,255,255,.92); box-shadow: 0 6px 24px rgba(30,47,59,.035); }
.audience-copy { display: flex; align-items: baseline; gap: 9px; margin-bottom: 12px; }
.audience-copy strong { font-size: 13px; }
.audience-copy span { color: var(--muted); font-size: 12.5px; }
.audience-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.audience-button { min-height: 42px; border: 1px solid #e4e9e6; border-radius: 11px; color: #65716c; background: #fbfcfb; font-size: 12px; font-weight: 700; cursor: pointer; transition: .18s ease; }
.audience-button:hover { border-color: #a9cdbd; }
.audience-button.is-active { border-color: var(--green); color: var(--green); background: var(--green-soft); box-shadow: inset 0 0 0 1px rgba(23,107,86,.08); }
.audience-subnav { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.audience-subnav a { padding: 7px 10px; border-radius: 99px; color: #17543f; background: #eaf6ef; text-decoration: none; font-size: 12.5px; font-weight: 650; }
.audience-subnav a:hover { color: var(--green-dark); background: #dcefe4; }
.coming-soon { margin: 13px 0 2px; padding: 13px; border-radius: 10px; color: #65716c; background: #f7f9f8; font-size: 12.5px; text-align: center; }
.slider-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; padding: 14px; border-radius: 12px; background: #f8faf9; }
.slider-control label, .salary-simulator > label { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-bottom: 8px; color: #374151; font-size: 12.5px; font-weight: 650; }
.slider-control output, .salary-simulator output { color: var(--green); font-size: 12.5px; font-weight: 780; }
input[type="range"] { width: 100%; height: 20px; accent-color: var(--green); cursor: pointer; }
.threshold-badge { margin-top: 11px; padding: 10px 12px; border: 1px solid #cce8d8; border-radius: 10px; color: #176b56; background: #eff9f2; font-size: 12.5px; font-weight: 700; line-height: 1.55; }
.weekly-pattern { margin-top: 17px; padding: 16px; border: 1px solid #e7ece9; border-radius: 13px; background: #fbfcfb; }
.pattern-heading h3 { margin: 0 0 4px; font-size: 13px; }
.pattern-heading p, .pattern-note { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.pattern-list { display: grid; gap: 6px; margin-top: 12px; }
.pattern-row { display: grid; grid-template-columns: minmax(100px,1fr) 150px 92px; align-items: center; gap: 10px; padding: 7px 9px; border: 1px solid #edf0ee; border-radius: 9px; background: white; }
.pattern-row.is-lookback { background: #f7f9f8; }
.pattern-week-label { display: grid; gap: 2px; }
.pattern-week-label strong { font-size: 12.5px; }
.pattern-week-label span, .pattern-attendance { color: var(--muted); font-size: 12px; }
.pattern-number { height: 36px; }
.pattern-number input { font-size: 13px; }
.pattern-attendance { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.pattern-attendance input { accent-color: var(--green); }
.pattern-note { margin-top: 10px; }
.pattern-result { margin: 9px 0 0; color: #496454; font-size: 12px; line-height: 1.7; }
.tool-page { padding-bottom: 60px; }
.tool-card { width: min(100% - 40px, 860px); margin: 0 auto 30px; padding: clamp(18px,4vw,30px); border: 1px solid #e5ebe7; border-radius: 19px; background: white; box-shadow: var(--shadow); }
.tool-form { display: grid; gap: 18px; }
.tool-hours-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.tool-hours-grid small { display: block; margin-top: 3px; color: #475467; font-size: 12px; font-weight: 500; }
.tool-hint { margin: -6px 0 0; color: var(--muted); font-size: 12px; line-height: 1.6; }
.tool-result { margin-top: 22px; padding: 18px; border-radius: 13px; background: #f5faf7; text-align: center; }
.tool-result .result-label { display: block; color: #17543f; font-size: 13px; font-weight: 700; }
.tool-result > strong { display: block; margin-top: 5px; color: var(--green-dark); font-size: clamp(26px,5vw,35px); letter-spacing: -.05em; }
.tool-breakdown { display: grid; gap: 8px; max-width: 520px; margin: 14px auto 0; text-align: left; }
.tool-breakdown > div { display: flex; justify-content: space-between; gap: 12px; color: #374151; font-size: 12.5px; }
.tool-breakdown strong { color: #111827; font-weight: 700; }
.legal-reference { width: min(100% - 40px, 860px); margin: 25px auto; padding: 21px; border: 1px solid #e7ece9; border-radius: 14px; background: white; }
.legal-reference h2 { margin: 0 0 10px; font-size: 18px; color: #1f2937; }
.legal-reference p, .legal-reference li { color: #374151; font-size: 13.5px; line-height: 1.8; }
.legal-reference ul { padding-left: 20px; }
.salary-simulator { padding: 16px; border-radius: 12px; background: #f7faf8; }
.range-labels { display: flex; justify-content: space-between; color: #475467; font-size: 12px; }
.comparison-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 17px; }
.comparison-card { padding: 17px; border: 1px solid #e8edeb; border-radius: 13px; }
.comparison-kicker { color: var(--green); font-size: 12px; font-weight: 750; }
.comparison-card h2 { margin: 5px 0 14px; font-size: 16px; color: #1f2937; }
.comparison-gross { display: flex; justify-content: space-between; gap: 10px; padding-bottom: 10px; border-bottom: 1px solid #edf0ee; color: #374151; font-size: 13px; }
.comparison-gross strong { color: var(--ink); }
.comparison-net { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; color: #374151; font-size: 13px; }
.comparison-net strong { color: #111827; }
.comparison-net.is-total { margin-top: 4px; padding: 12px 10px; border-radius: 8px; color: #0d4a3b; background: #ebf6f0; font-weight: 750; font-size: 14px; }
.comparison-net.is-total strong { color: var(--green-dark); }
.comparison-card > p:last-child { margin: 10px 0 0; color: #475467; font-size: 12px; line-height: 1.6; }
.comparison-callout { margin-top: 16px; padding: 16px; border: 1px solid #f0e4c6; border-radius: 12px; background: #fffaf0; }
.comparison-callout strong { color: #795c2d; font-size: 13.5px; }
.comparison-callout p { margin: 8px 0 0; color: #475467; font-size: 13px; line-height: 1.7; }
.tool-links a.info-card { display: block; color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease, border-color .16s ease; }
.tool-links a.info-card:hover { transform: translateY(-2px); border-color: #c9ddd2; box-shadow: 0 10px 25px rgba(30,47,59,.06); }
.pattern-hours-control { display: grid; grid-template-columns: 68px minmax(45px,1fr); align-items: center; gap: 6px; }
.pattern-range { min-width: 0; }
.pattern-row .pattern-range { height: 18px; }
.tool-card .content-disclaimer { margin: 17px 0 0; color: #475467; font-size: 12.5px; line-height: 1.7; }
@media (max-width: 700px) {
  .audience-switch, .tool-card, .legal-reference { width: calc(100% - 28px); }
  .audience-copy { display: grid; gap: 3px; }
  .slider-grid, .tool-hours-grid, .comparison-grid { grid-template-columns: 1fr; }
  .pattern-row { grid-template-columns: minmax(90px,1fr) minmax(115px,1.2fr) 80px; gap: 6px; padding: 6px; }
  .pattern-hours-control { grid-template-columns: 63px minmax(40px,1fr); gap: 3px; }
  .pattern-number { padding: 0 7px; }
}
@media (max-width: 420px) {
  .audience-button { font-size: 12px; }
  .pattern-row { grid-template-columns: 85px minmax(0,1fr); }
  .pattern-attendance { grid-column: 2; justify-self: end; }
  .pattern-hours-control { grid-template-columns: 63px minmax(40px,1fr); }
  .pattern-week-label strong { font-size: 12px; }
  .pattern-week-label span, .pattern-attendance { font-size: 12px; }
}


/* =========================================================================
 * PayPrompt Extended UI Styles (Mode Switcher, Sliders, Per-Week Monthly,
 * 5+ Workers Overtime Calculator, 3.3% vs 4-Insurance Tax Comparison)
 * ========================================================================= */
.mode-hub {
  width: min(100% - 40px, 860px);
  margin: 14px auto 16px;
}
.mode-switch-bar {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 6px;
  border: 1px solid #dfe8e3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 8px 26px rgba(23, 107, 86, 0.06);
}
.mode-switch-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 52px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 13px;
  color: #5b6670;
  background: transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 760;
  letter-spacing: -0.03em;
  transition: all 0.18s ease;
}
.mode-switch-btn:hover {
  color: var(--green);
  background: #f4faf7;
}
.mode-switch-btn.active {
  border-color: #c5e3d5;
  color: var(--green-dark);
  background: linear-gradient(135deg, #eaf7f1, #f5fbf8);
  box-shadow: 0 3px 10px rgba(23, 107, 86, 0.09);
}
.mode-emoji {
  font-size: 16px;
}
.mode-pill {
  padding: 3px 8px;
  border-radius: 99px;
  color: var(--green);
  background: #ffffff;
  font-size: 12px;
  font-weight: 700;
  border: 1px solid #d4eae0;
}
.mode-pill.upcoming {
  color: #8a6d3b;
  background: #fff8eb;
  border-color: #f0dec0;
}
.mode-hub .hero,
.mode-hub .calculator-hero {
  margin: 10px auto 12px;
}
.calculator-hero .page-title,
.calculator-hero h2 {
  margin: 6px 0 4px;
  font-size: clamp(20px, 3.2vw, 26px);
  line-height: 1.25;
  letter-spacing: -0.045em;
  font-weight: 800;
  color: #172a23;
}
.calculator-hero #hero-description,
.calculator-hero > p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.5;
  color: #63776e;
}
.mode-subnav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.subnav-item {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #e4ece8;
  border-radius: 12px;
  color: var(--ink);
  background: #ffffff;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.subnav-item:hover {
  transform: translateY(-2px);
  border-color: #a9d4c1;
  box-shadow: 0 8px 20px rgba(23, 107, 86, 0.07);
}
.subnav-item.is-active {
  border-color: var(--green);
  background: #f3faf6;
  box-shadow: 0 4px 14px rgba(23, 107, 86, 0.08);
}
.subnav-item.is-upcoming {
  opacity: 0.88;
  background: #fafcfb;
}
.subnav-item-top {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.subnav-item-title {
  color: #26323d;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: -0.03em;
}
.subnav-badge {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 99px;
  color: var(--green);
  background: var(--green-soft);
  font-size: 12px;
  font-weight: 780;
}
.subnav-badge.upcoming {
  color: #7a5824;
  background: #fff5e4;
}
.subnav-item-desc {
  color: #475467;
  font-size: 12.5px;
  line-height: 1.45;
}

/* Sliders & Simulation Controls */
.sim-field-group {
  display: grid;
  gap: 18px;
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}
.field-label-row label {
  margin-bottom: 0;
}
.currency-live-badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  background: #edf7f2;
  color: #12563f;
  border: 1px solid #cce5d9;
  font-size: 12.5px;
  font-weight: 780;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}
.preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #cde4d8;
  border-radius: 99px;
  color: #12563f;
  background: #f4faf6;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.chip-btn:hover {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
}
.slider-wrap {
  margin-top: 10px;
}
.sim-slider {
  width: 100%;
  height: 8px;
  margin: 6px 0;
  border-radius: 99px;
  accent-color: var(--green);
  cursor: pointer;
}
.sim-slider:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 4px;
}
.slider-ticks {
  position: relative;
  min-height: 20px;
  margin-top: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 550;
}
.slider-ticks:not(.positioned) {
  display: flex;
  justify-content: space-between;
}
.slider-ticks.positioned {
  display: block;
}
.slider-ticks.positioned .tick-item {
  position: absolute;
  top: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  user-select: none;
}
.slider-ticks.positioned .tick-item[data-tick-val] {
  cursor: pointer;
  transition: color 0.15s ease, transform 0.12s ease;
}
.slider-ticks.positioned .tick-item[data-tick-val]:hover {
  color: var(--green);
}
.slider-ticks.positioned .tick-start {
  left: 0 !important;
  transform: none !important;
}
.slider-ticks.positioned .tick-end {
  right: 0 !important;
  left: auto !important;
  transform: none !important;
}
.slider-ticks .tick-highlight {
  color: #12563f;
  font-weight: 800;
}

/* Milestone Badge (15시간 달성 배지 등) */
@keyframes milestonePop {
  0% { transform: scale(0.97); }
  50% { transform: scale(1.025); }
  100% { transform: scale(1); }
}
.sim-milestone-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 11px;
  padding: 11px 14px;
  border-radius: 11px;
  font-size: 13px;
  line-height: 1.55;
  transition: all 0.2s ease;
}
.sim-milestone-badge.achieved {
  border: 1px solid #bfe4d1;
  color: #12563f;
  background: linear-gradient(135deg, #ebf9f1, #f4fcf8);
}
.sim-milestone-badge.near {
  border: 1px solid #e2cb9d;
  color: #6d4b24;
  background: #fffaf0;
}
.sim-milestone-badge.muted {
  border: 1px solid #dbe4de;
  color: #374151;
  background: #f8fafb;
}
.sim-milestone-badge.pop-anim {
  animation: milestonePop 0.35s ease-out;
}
.badge-icon {
  flex: 0 0 auto;
  font-size: 15px;
}

/* Monthly Per-Week Configuration Panel */
.monthly-weekly-panel {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #d8ebe1;
  border-radius: 14px;
  background: #f8fcfa;
}
.monthly-panel-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid #e3efe9;
}
.monthly-panel-top h3 {
  margin: 0 0 4px;
  color: #1f4739;
  font-size: 14px;
  font-weight: 760;
}
.monthly-panel-top p {
  margin: 0;
  color: #475467;
  font-size: 12.5px;
  line-height: 1.55;
}
.monthly-mode-switch {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.radio-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 11px;
  border: 1px solid #dce9e2;
  border-radius: 9px;
  color: #1f2937;
  background: #ffffff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 680;
}
.radio-chip input {
  accent-color: var(--green);
}
.monthly-panel-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 13px 0;
}
.week5-check {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 680;
  cursor: pointer;
}
.week5-check input {
  accent-color: var(--green);
}
.preset-Action-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.weekly-schedule-rows {
  display: grid;
  gap: 10px;
}
.week-row {
  padding: 12px 14px;
  border: 1px solid #e4ece8;
  border-radius: 11px;
  background: #ffffff;
  transition: border-color 0.16s ease;
}
.week-row.has-holiday {
  border-color: #c5e4d4;
}
.week-row.no-holiday {
  border-color: #ecefe9;
  background: #fcfdfd;
}
.week-row-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}
.week-row-title {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.week-tag {
  color: #2b3945;
  font-size: 12px;
  font-weight: 760;
}
.week-holiday-pill {
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 700;
}
.week-holiday-pill.achieved {
  color: #12563f;
  background: #eaf8f1;
}
.week-holiday-pill.missed {
  color: #634f32;
  background: #f7f4ee;
}
.week-attend-label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 650;
  cursor: pointer;
}
.week-attend-label input {
  accent-color: var(--green);
}
.week-row-controls {
  display: grid;
  grid-template-columns: 1fr 120px;
  align-items: center;
  gap: 12px;
}
.week-number-control {
  height: 38px;
  padding: 0 10px;
}
.week-number-control input {
  font-size: 13px;
}

/* Inline Tax Picker & Extended Breakdown */
.tax-inline-picker {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  padding: 9px 12px;
  border: 1px solid #e8efec;
  border-radius: 11px;
  background: #f9fbfa;
}
.tax-picker-label {
  color: #1f2937;
  font-size: 13px;
  font-weight: 750;
}
.tax-picker-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tax-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 7px 13px;
  border: 1px solid #cde4d8;
  border-radius: 8px;
  color: #24352d;
  background: #ffffff;
  cursor: pointer;
  font-size: 12.5px;
  font-weight: 700;
  transition: all 0.15s ease;
}
.tax-chip.active {
  border-color: var(--green);
  color: #ffffff;
  background: var(--green);
  box-shadow: 0 2px 6px rgba(23,107,86,0.22);
}
.breakdown.four-items {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.breakdown.three-items {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.breakdown-item.highlight strong {
  color: var(--green-dark);
  font-weight: 800;
}
.monthly-weeks-breakdown {
  margin-top: 15px;
  padding-top: 14px;
  border-top: 1px dashed #cfe3d8;
}
.monthly-weeks-title {
  margin-bottom: 8px;
  color: #17543f;
  font-size: 12.5px;
  font-weight: 740;
}
.monthly-weeks-list {
  display: grid;
  gap: 6px;
}
.month-week-chip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 11px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.85);
  font-size: 12.5px;
}
.month-week-chip.achieved {
  border-left: 3px solid var(--green);
}
.month-week-chip.missed {
  border-left: 3px solid #cbd3cf;
}
.chip-week {
  color: #1f2937;
  font-weight: 720;
}
.chip-detail {
  color: #475467;
  font-size: 12px;
}
.chip-total {
  color: #1c4739;
}

/* Secondary Calculator Cards (Overtime & Tax Comparison) */
.secondary-card {
  margin-top: 32px;
}
.three-fields {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.field-subnote {
  display: block;
  margin-top: 4px;
  color: #475467;
  font-size: 12px;
}
.inline-select {
  width: 100%;
  margin-top: 5px;
  padding: 7px 10px;
  min-height: 38px;
  border: 1px solid #dfe6e2;
  border-radius: 8px;
  color: #1f2937;
  background: #f9fbfa;
  font-size: 12.5px;
  font-weight: 650;
}
.tax-compare-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.tax-card {
  padding: 18px;
  border: 1px solid #e3ebe6;
  border-radius: 15px;
  background: #ffffff;
}
.tax-card.insurance-card {
  border-color: #bfe0d0;
  background: linear-gradient(160deg, #f6fcf9, #ffffff);
}
.tax-card-head h3 {
  margin: 6px 0 12px;
  color: #24313a;
  font-size: 15px;
}
.tax-card-tag {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 99px;
  color: #374151;
  background: #f1f5f3;
  font-size: 12px;
  font-weight: 760;
}
.tax-card-tag.recommended {
  color: var(--green-dark);
  background: var(--green-soft);
}
.tax-card-amount {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding: 11px 12px;
  border-radius: 10px;
  background: #f4faf6;
}
.tax-card-amount span {
  color: #1f2937;
  font-size: 12.5px;
  font-weight: 680;
}
.tax-card-amount strong {
  color: #194738;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.04em;
}
.tax-card-deduction {
  display: flex;
  justify-content: space-between;
  margin-top: 10px;
  padding-bottom: 10px;
  border-bottom: 1px solid #edf2ef;
  color: #475467;
  font-size: 12.5px;
}
.tax-detail-list {
  display: grid;
  gap: 7px;
  margin: 12px 0 0;
  padding: 0;
  list-style: none;
}
.tax-detail-list li {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #475467;
  font-size: 12.5px;
}
.tax-detail-list strong {
  color: #1f2937;
  text-align: right;
}
.tax-verdict-box {
  margin-top: 14px;
  padding: 15px 17px;
  border: 1px solid #dcece3;
  border-radius: 13px;
  background: #f7fcf9;
}
.verdict-headline {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #1d4b3c;
  font-size: 13px;
}
.verdict-sub {
  margin: 7px 0 0;
  color: #374151;
  font-size: 12.5px;
  line-height: 1.65;
}

/* Worker Mode Coming Soon View */
.worker-coming-card {
  margin-bottom: 56px;
}
.worker-coming-body {
  padding: 38px clamp(20px, 5vw, 48px);
  text-align: center;
}
.coming-badge {
  display: inline-block;
  padding: 5px 11px;
  border-radius: 99px;
  color: #724c1e;
  background: #fff6e5;
  font-size: 12px;
  font-weight: 780;
}
.worker-coming-body h2 {
  margin: 14px 0 10px;
  font-size: clamp(23px, 4vw, 31px);
  line-height: 1.3;
  letter-spacing: -0.05em;
}
.worker-coming-body > p {
  max-width: 540px;
  margin: 0 auto 24px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.75;
}
.worker-preview-grid {
  text-align: left;
  margin-bottom: 24px;
}
.worker-coming-actions {
  display: flex;
  justify-content: center;
}

@media (max-width: 700px) {
  .mode-hub {
    width: calc(100% - 24px);
  }
  .mode-switch-bar {
    grid-template-columns: 1fr;
  }
  .mode-subnav {
    grid-template-columns: 1fr 1fr;
  }
  .three-fields,
  .tax-compare-grid,
  .breakdown.three-items {
    grid-template-columns: 1fr;
  }
  .week-row-controls {
    grid-template-columns: 1fr 105px;
  }
}
@media (max-width: 420px) {
  .mode-subnav {
    grid-template-columns: 1fr;
  }
}


/* 8-Week Lookback Schedule Group & 2026 Minimum Wage Alert Styles */
.weekly-schedule-rows {
  gap: 14px;
}
.week-group-block {
  padding: 13px;
  border: 1px solid #dfebe4;
  border-radius: 12px;
  background: #ffffff;
}
.week-group-block.lookback-group {
  border-color: #e4e9ec;
  background: #f9fbfb;
}
.week-group-header {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  padding-bottom: 8px;
  border-bottom: 1px solid #edf2ef;
}
.week-group-header strong {
  color: #22382f;
  font-size: 13px;
  font-weight: 760;
}
.week-group-header span {
  color: #475467;
  font-size: 12px;
  line-height: 1.5;
}
.week-group-rows {
  display: grid;
  gap: 8px;
}
.week-row.is-lookback-row {
  padding: 10px 12px;
  border-color: #e6ebee;
  background: #f5f8f9;
}
.week-tag.lookback-tag {
  color: #374151;
}
.week-holiday-pill.lookback-pill {
  color: #374151;
  background: #e9eff2;
}
.week-lookback-note {
  color: #475467;
  font-size: 12px;
}
.min-wage-alert {
  border: 1px solid #f2d3a8;
  color: #8b571d;
  background: #fff8ed;
}
.min-wage-alert a {
  display: inline-block;
  margin-left: 6px;
  color: var(--green-dark);
  font-weight: 700;
  text-underline-offset: 2px;
}

/* =========================================================================
 * Design Consistency & Readability Refinements (Unified Layout & Typography)
 * ========================================================================= */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.site-nav {
  flex-wrap: wrap;
  gap: 4px;
}
.site-nav a {
  padding: 8px 11px;
  font-size: 12.5px;
  font-weight: 680;
  white-space: nowrap;
}
.content-section .article-body {
  margin-top: 22px;
}
.article-page {
  width: min(100% - 40px, 860px);
}
.article-body p {
  color: #55606a;
  font-size: 13.5px;
  line-height: 1.88;
}
.article-body ul,
.article-body ol:not(.step-list) {
  margin: 10px 0 14px;
  padding-left: 20px;
  color: #55606a;
  font-size: 13.5px;
  line-height: 1.85;
  word-break: keep-all;
}
.article-body ul li + li,
.article-body ol:not(.step-list) li + li {
  margin-top: 6px;
}
.article-body code {
  padding: 2px 6px;
  border: 1px solid #e0ebe5;
  border-radius: 5px;
  color: #1d5743;
  background: #f2f9f5;
  font-size: 12px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}
.faq-section summary {
  padding: 16px 32px 16px 4px;
  color: #2c3842;
  font-size: 13.5px;
  font-weight: 720;
  line-height: 1.5;
  transition: color 0.15s ease;
}
.faq-section summary:hover {
  color: var(--green);
}
.faq-section details p {
  padding: 0 24px 16px 4px;
  color: #5c6771;
  font-size: 13px;
  line-height: 1.85;
}
.info-card {
  transition: border-color 0.16s ease, box-shadow 0.16s ease;
}
.info-card:hover {
  border-color: #cde2d7;
  box-shadow: 0 6px 18px rgba(23, 107, 86, 0.05);
}
.info-card p {
  font-size: 12px;
  line-height: 1.75;
}
.tool-page .calculator-card {
  width: 100%;
}
.tool-card-body {
  padding: clamp(20px, 4vw, 32px);
}
.tool-hours-grid small {
  font-size: 12px;
  color: #475467;
}
.tool-hint {
  margin: -2px 0 0;
  font-size: 12.5px;
  color: #475467;
  line-height: 1.65;
}
.tool-result-bubble {
  margin-top: 22px;
}
.tool-breakdown {
  display: grid;
  gap: 8px;
  max-width: none;
  margin: 16px 0 0;
  padding-top: 14px;
  border-top: 1px solid #dcebe2;
}
.tool-breakdown > div {
  font-size: 12px;
  color: #58665e;
}
.tool-breakdown strong {
  color: #24362d;
  font-variant-numeric: tabular-nums;
}
.salary-simulator {
  padding: 18px;
  border: 1px solid #e3ece7;
  border-radius: 14px;
  background: #f8fcfa;
}
.comparison-card {
  padding: 18px;
  border-radius: 14px;
  background: #ffffff;
}
.comparison-kicker {
  font-size: 12px;
}
.comparison-gross,
.comparison-net {
  font-size: 13px;
}
.comparison-net.is-total {
  font-size: 13.5px;
}
.comparison-card > p:last-child {
  font-size: 12.5px;
  line-height: 1.65;
}
.comparison-callout {
  margin: 16px 0;
  padding: 15px 17px;
}
.comparison-callout strong {
  font-size: 12.5px;
}
.comparison-callout p {
  font-size: 12px;
  line-height: 1.75;
}
.control-select {
  width: 100%;
  height: 48px;
  padding: 0 12px;
  border: 1px solid #e5e9ed;
  border-radius: 11px;
  color: #303945;
  background: #ffffff;
  font-size: 14px;
  font-weight: 650;
  outline: 0;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.control-select:focus {
  border-color: #82bba6;
  box-shadow: 0 0 0 3px rgba(57, 145, 113, 0.1);
}
.legal-note {
  font-size: 12.5px;
  color: #475467;
}
.content-disclaimer {
  font-size: 12.5px;
  color: #475467;
  line-height: 1.75;
}
.footer-inner > div:first-child p,
.footer-links a {
  font-size: 12.5px;
}
.copyright {
  font-size: 12px;
}
.not-found-hero {
  min-height: 55vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.not-found-cta {
  margin-top: 22px;
}
@media (min-width: 701px) {
  .mode-subnav {
    grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  }
}
@media (max-width: 760px) {
  .site-header {
    height: auto;
    min-height: 62px;
  }
  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
    gap: 8px 12px;
  }
  .site-nav {
    width: 100%;
    justify-content: flex-start;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: 2px;
  }
  .site-nav a {
    padding: 7px 10px;
    font-size: 12.5px;
  }
}

/* =========================================================================
 * Guide Hub & Article Enhancements
 * ========================================================================= */
.guide-category-section {
  margin-top: 36px;
}
.guide-category-header {
  margin-bottom: 16px;
}
.guide-category-header h2 {
  margin: 0 0 6px;
  font-size: 19px;
  color: #24313a;
}
.guide-category-header p {
  margin: 0;
  font-size: 12.5px;
  color: #6d7b85;
}
.guide-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.guide-card {
  display: flex;
  flex-direction: column;
  padding: 22px;
  border: 1px solid #dfeae3;
  border-radius: 16px;
  background: #ffffff;
  text-decoration: none;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}
.guide-card:hover {
  transform: translateY(-2px);
  border-color: #88c2ab;
  box-shadow: 0 8px 24px rgba(23, 107, 86, 0.08);
}
.guide-card-badge {
  display: inline-block;
  align-self: flex-start;
  padding: 3px 8px;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
  background: var(--green-soft);
  color: var(--green-dark);
  margin-bottom: 12px;
}
.guide-card-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 750;
  color: #202e38;
  line-height: 1.45;
  letter-spacing: -0.03em;
}
.guide-card-desc {
  margin: 0 0 16px;
  font-size: 12.5px;
  color: #5c6872;
  line-height: 1.65;
  flex: 1 1 auto;
}
.guide-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 12px;
  border-top: 1px solid #edf3ef;
  font-size: 12.5px;
  font-weight: 680;
  color: var(--green);
}
.toc-box {
  margin: 20px 0 28px;
  padding: 18px 20px;
  border: 1px solid #dbebe2;
  border-radius: 14px;
  background: #f7fbf9;
}
.toc-title {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 12px;
  font-size: 13.5px;
  font-weight: 760;
  color: #1a4d3d;
}
.toc-list {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 7px;
  font-size: 12.5px;
}
.toc-list a {
  color: #385246;
  text-decoration: none;
  transition: color 0.15s ease;
}
.toc-list a:hover {
  color: var(--green);
  text-decoration: underline;
}
.summary-box {
  margin: 20px 0 26px;
  padding: 18px 20px;
  border-left: 4px solid var(--green);
  border-radius: 0 14px 14px 0;
  background: #f4faf6;
}
.summary-box strong {
  display: block;
  margin-bottom: 8px;
  color: #174838;
  font-size: 13.5px;
}
.summary-box ul {
  margin: 0;
  padding-left: 18px;
  color: #4b6156;
  font-size: 12.5px;
  line-height: 1.75;
}

/* =========================================================================
 * Screen 1: Question Cloud Portal (고민 질문 구름 포털 & 앰비언트 플로팅)
 * ========================================================================= */
.cloud-portal-view {
  margin: 12px auto 44px;
  padding: 42px 28px 52px;
  border: 1px solid #d4ebdf;
  border-radius: 32px;
  background: radial-gradient(circle at 50% 8%, rgba(222, 248, 237, 0.7) 0%, rgba(247, 252, 249, 0.95) 45%, #ffffff 100%);
  box-shadow: 0 12px 40px rgba(23, 107, 86, 0.05);
  position: relative;
  overflow: hidden;
  animation: portalFadeIn 0.3s ease-out;
}
.cloud-portal-view::before {
  content: "";
  position: absolute;
  top: -60px;
  left: 8%;
  width: 340px;
  height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(167, 243, 208, 0.45) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(40px);
}
.cloud-portal-view::after {
  content: "";
  position: absolute;
  bottom: 30px;
  right: 6%;
  width: 300px;
  height: 200px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(186, 230, 253, 0.4) 0%, rgba(255, 255, 255, 0) 70%);
  pointer-events: none;
  filter: blur(45px);
}
@keyframes portalFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.cloud-portal-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 24px;
}
.cloud-portal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 14px;
  border-radius: 99px;
  font-size: 12.5px;
  font-weight: 750;
  color: #12563f;
  background: #dff5ea;
  border: 1px solid #c8edd9;
  margin-bottom: 12px;
}
.situation-pulse-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(23, 107, 86, 0.5);
  animation: pulseDot 1.8s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(23, 107, 86, 0.6); }
  70% { box-shadow: 0 0 0 6px rgba(23, 107, 86, 0); }
  100% { box-shadow: 0 0 0 0 rgba(23, 107, 86, 0); }
}
.cloud-portal-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 4vw, 30px);
  color: #1a2933;
  letter-spacing: -0.04em;
  font-weight: 850;
  line-height: 1.35;
}
.cloud-portal-desc {
  margin: 0;
  font-size: 14px;
  color: #556873;
  line-height: 1.65;
}

/* 실시간 키워드 검색창 */
.cloud-search-container {
  max-width: 560px;
  margin: 0 auto 20px;
  position: relative;
}
.cloud-search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 16px;
  color: #728c80;
  pointer-events: none;
}
.cloud-search-input {
  width: 100%;
  height: 52px;
  padding: 0 46px 0 48px;
  border: 1.5px solid #c0e2d2;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.96);
  font-size: 14px;
  color: #1f2c35;
  box-shadow: 0 4px 18px rgba(23, 107, 86, 0.05), inset 0 1px 2px rgba(0, 0, 0, 0.02);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.cloud-search-input:focus {
  outline: none;
  border-color: #10b981;
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.16), 0 8px 24px rgba(16, 185, 129, 0.08);
  background: #ffffff;
}
.cloud-search-clear {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  font-size: 15px;
  color: #8fa097;
  cursor: pointer;
  padding: 4px;
}
.cloud-search-clear:hover {
  color: #2b3931;
}

/* 카테고리 필터 태그 */
.cloud-filter-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-bottom: 26px;
}
.cloud-tag-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid #cce5d9;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(6px);
  color: #17543f;
  font-size: 13.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(23, 107, 86, 0.05);
}
.cloud-tag-btn:hover {
  background: #ebf7f0;
  border-color: #83cdab;
  color: #0f5c40;
  transform: translateY(-1px);
}
.cloud-tag-btn.active {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(23, 107, 86, 0.28);
  transform: translateY(-1px);
}

/* 둥실둥실 떠다니는 질문 구름 캔버스 */
.cloud-universe-canvas {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 36px;
  position: relative;
}
.cloud-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 22px 20px;
  border: 1.5px solid rgba(198, 233, 218, 0.85);
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.97) 0%, rgba(246, 252, 249, 0.92) 100%);
  box-shadow: 0 10px 28px -6px rgba(23, 107, 86, 0.06), 0 3px 8px -2px rgba(23, 107, 86, 0.03), inset 0 1.5px 0 rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  text-align: left;
  width: 100%;
  transition: transform 0.24s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.24s ease, border-color 0.2s ease, background 0.2s ease;
}
/* 피로감 없는 자연스러운 제자리 일렁임 (Ambient Floating with subtle organic drift) */
.cloud-card.float-anim-1 {
  animation: ambientFloat1 5.2s ease-in-out infinite;
}
.cloud-card.float-anim-2 {
  animation: ambientFloat2 6.4s ease-in-out infinite;
  animation-delay: 0.7s;
}
.cloud-card.float-anim-3 {
  animation: ambientFloat3 5.6s ease-in-out infinite;
  animation-delay: 1.3s;
}
.cloud-card.float-anim-4 {
  animation: ambientFloat4 6.8s ease-in-out infinite;
  animation-delay: 1.9s;
}
@keyframes ambientFloat1 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-7px) rotate(-0.5deg); }
}
@keyframes ambientFloat2 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-9px) rotate(0.5deg); }
}
@keyframes ambientFloat3 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-6px) rotate(-0.4deg); }
}
@keyframes ambientFloat4 {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.4deg); }
}
.cloud-card:hover, .cloud-card:focus-visible {
  animation-play-state: paused;
  transform: translateY(-8px) scale(1.02);
  border-color: #10b981;
  box-shadow: 0 18px 38px -6px rgba(16, 185, 129, 0.22), 0 6px 14px -2px rgba(23, 107, 86, 0.08), inset 0 1.5px 0 #ffffff;
  background: #ffffff;
  outline: 3px solid #146c51;
  outline-offset: 3px;
}
.cloud-card.is-hidden {
  display: none !important;
}
.cloud-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 11px;
}
.situation-tag {
  display: inline-block;
  padding: 4px 10px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 750;
}
.tag-holiday { background: #e8f7ee; color: #1a6b47; }
.tag-split { background: #fdf2e3; color: #9c6014; }
.tag-overtime { background: #eaf1fc; color: #1e56b5; }
.tag-tax { background: #fbf0ea; color: #a64818; }
.tag-severance { background: #edeafc; color: #5833b3; }
.tag-wage { background: #fbebf0; color: #b01e4a; }
.cloud-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(226, 246, 237, 0.75);
  font-size: 18px;
  transition: transform 0.22s ease, background-color 0.22s ease;
}
.cloud-card:hover .cloud-icon {
  transform: scale(1.12);
  background: rgba(206, 242, 228, 0.95);
}
.cloud-card-q {
  margin: 0 0 8px;
  font-size: 15px;
  line-height: 1.45;
  color: #111827;
  letter-spacing: -0.025em;
  font-weight: 780;
  flex: 1 1 auto;
}
.cloud-card-hint {
  font-size: 13px;
  color: #374151;
  margin-bottom: 12px;
  line-height: 1.6;
}
.cloud-card-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  font-weight: 750;
  color: #12563f;
  border-top: 1px solid #f0f4f2;
  padding-top: 11px;
}
.cloud-empty-msg {
  grid-column: 1 / -1;
  text-align: center;
  padding: 38px 20px;
  background: #ffffff;
  border: 1px dashed #bfe2d0;
  border-radius: 20px;
  color: #556c60;
  font-size: 13.5px;
  line-height: 1.6;
}
.cloud-empty-msg p {
  margin: 0 0 6px;
  font-weight: 750;
  color: #213a2e;
}

/* 하단 바로가기 액션 바 */
.cloud-portal-footer {
  text-align: center;
  border-top: 1px solid #dcece3;
  padding-top: 26px;
}
.btn-skip-to-calc {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 30px;
  border-radius: 99px;
  background: #ffffff;
  border: 1.5px solid #a3d9c1;
  color: #165b3d;
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(23, 107, 86, 0.08);
  transition: all 0.2s ease;
}
.btn-skip-to-calc:hover {
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(23, 107, 86, 0.22);
}
.skip-btn-icon {
  font-size: 16px;
}
.cloud-portal-guides {
  margin-top: 14px;
  font-size: 12px;
  color: #6b7f76;
}
.cloud-portal-guides a {
  color: #196043;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* =========================================================================
 * Screen 2: Calculator Suite View & Top Return Bar
 * ========================================================================= */
.calculator-suite-view {
  animation: portalFadeIn 0.28s ease-out;
}
.calc-portal-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 9px 15px;
  background: #eef8f3;
  border: 1px solid #c7e6d7;
  border-radius: 12px;
  margin-bottom: 14px;
}
.btn-back-to-portal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 13px;
  background: #ffffff;
  border: 1px solid #bce1d0;
  border-radius: 99px;
  color: #17543f;
  font-size: 12.5px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-back-to-portal:hover {
  background: var(--green);
  color: #ffffff;
  border-color: var(--green);
  transform: translateX(-2px);
}
.calc-top-topic-wrap {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #4f685c;
}
.calc-current-topic-badge {
  font-weight: 750;
  color: #114c37;
  background: #dcf3e7;
  padding: 3px 10px;
  border-radius: 99px;
}

/* 상단 고정 헤더 배너(Sticky Header) 가림 방지 스크롤 마진 */
.situation-verdict-card,
.calculator-card,
.cloud-portal-view,
.content-section,
[id^="section-"],
:target {
  scroll-margin-top: 86px;
}
@media (max-width: 760px) {
  .situation-verdict-card,
  .calculator-card,
  .cloud-portal-view,
  .content-section,
  [id^="section-"],
  :target {
    scroll-margin-top: 110px;
  }
}

/* 법률 진단 카드 & 사장님 문의 템플릿 복사기 */
.situation-verdict-card {
  margin-bottom: 16px;
  padding: 18px 20px;
  border: 1px solid #bfe0cf;
  border-radius: 16px;
  background: linear-gradient(135deg, #eef9f3 0%, #f7fdf9 100%);
  animation: slideDownFade 0.25s ease-out;
}
@keyframes slideDownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.verdict-card-inner {
  display: flex;
  gap: 16px;
}
.verdict-icon-wrap {
  flex: 0 0 auto;
  font-size: 28px;
  line-height: 1;
  padding-top: 2px;
}
.verdict-content {
  flex: 1 1 auto;
}
.verdict-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.verdict-badge {
  font-size: 12px;
  font-weight: 750;
  color: #12563f;
  background: #dcf3e7;
  padding: 3px 10px;
  border-radius: 99px;
}
.verdict-close-btn {
  background: #edf5f0;
  border: 1px solid #cce5d9;
  border-radius: 50%;
  font-size: 18px;
  color: #1a4d3b;
  cursor: pointer;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.16s ease;
}
.verdict-close-btn:hover {
  background: #ddeee5;
  color: #0b3425;
  transform: scale(1.06);
}
.verdict-close-btn:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 2px;
}
.verdict-headline {
  display: block;
  font-size: 16.5px;
  font-weight: 850;
  color: #0d3828;
  margin-bottom: 6px;
  line-height: 1.45;
}
.verdict-body-text {
  margin: 0 0 12px;
  font-size: 14px;
  color: #1f2937;
  line-height: 1.8;
}

/* 💬 사장님께 보낼 정중한 문의 카톡 템플릿 */
.boss-template-box {
  margin: 14px 0 14px;
  padding: 16px 18px;
  border: 1px dashed #b5dec8;
  border-radius: 12px;
  background: #ffffff;
}
.boss-template-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}
.boss-template-badge {
  font-size: 13px;
  font-weight: 750;
  color: #17543f;
}
.btn-copy-boss-msg {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  gap: 6px;
  padding: 8px 15px;
  border-radius: 8px;
  border: 1px solid #1a7857;
  background: var(--green);
  color: #ffffff;
  font-size: 13px;
  font-weight: 750;
  cursor: pointer;
  transition: all 0.16s ease;
}
.btn-copy-boss-msg:hover {
  background: var(--green-dark);
  transform: translateY(-1px);
}
.btn-copy-boss-msg:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 2px;
}
.boss-template-text {
  font-size: 13.5px;
  color: #1f2937;
  line-height: 1.7;
  background: #f7fbf9;
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid #e2ede7;
  margin: 0;
  word-break: keep-all;
}

/* 맞춤 계산기로 바로 이동하는 원터치 버튼 */
.verdict-jump-calc-wrap {
  margin: 16px 0 14px;
  padding: 12px 14px;
  background: #ffffff;
  border: 1.5px solid #a3d9c1;
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(23, 107, 86, 0.06);
}
.btn-scroll-to-calc {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3);
  transition: all 0.18s ease;
  letter-spacing: -0.02em;
}
.btn-scroll-to-calc:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(16, 185, 129, 0.4);
  background: linear-gradient(135deg, #12c48b 0%, #04825a 100%);
}
.btn-scroll-to-calc:active {
  transform: translateY(0);
}
.jump-calc-icon {
  font-size: 15px;
}
.jump-calc-arrow {
  font-size: 15px;
  transition: transform 0.18s ease;
}
.btn-scroll-to-calc:hover .jump-calc-arrow {
  transform: translateY(3px);
}
.verdict-jump-caption {
  font-size: 12.5px;
  color: #17543f;
  font-weight: 650;
  display: flex;
  align-items: center;
  gap: 6px;
}

.verdict-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  border-top: 1px solid #d5ece0;
  padding-top: 10px;
}
.verdict-guide-link {
  font-size: 12px;
  font-weight: 750;
  color: var(--green-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.verdict-scroll-prompt {
  font-size: 12.5px;
  color: #17543f;
  font-weight: 650;
}

/* 토스트 피드백 알림 */
.boss-msg-toast {
  position: fixed;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  background: #143e2f;
  color: #ffffff;
  padding: 12px 24px;
  border-radius: 99px;
  font-size: 13.5px;
  font-weight: 750;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  z-index: 9999;
  animation: toastFadeAnim 2.4s forwards;
}
@keyframes toastFadeAnim {
  0% { opacity: 0; transform: translate(-50%, 15px); }
  15% { opacity: 1; transform: translate(-50%, 0); }
  80% { opacity: 1; transform: translate(-50%, 0); }
  100% { opacity: 0; transform: translate(-50%, -10px); }
}

@keyframes cardPulseGlow {
  0% { box-shadow: 0 0 0 0 rgba(23, 107, 86, 0.4); }
  50% { box-shadow: 0 0 0 6px rgba(23, 107, 86, 0.15); }
  100% { box-shadow: 0 0 0 0 rgba(23, 107, 86, 0); }
}
.card-highlight-pulse {
  animation: cardPulseGlow 1.2s ease-out;
}

/* 반응형 스타일 */
@media (max-width: 900px) {
  .cloud-universe-canvas {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 580px) {
  .cloud-universe-canvas {
    grid-template-columns: 1fr;
  }
  .cloud-portal-view {
    padding: 26px 16px 36px;
    border-radius: 22px;
  }
  .cloud-tag-btn {
    padding: 7px 13px;
    font-size: 12.5px;
  }
  .cloud-card {
    padding: 18px 16px;
    border-radius: 20px;
  }
  .verdict-card-inner {
    flex-direction: column;
    gap: 8px;
  }
  .calc-portal-top-bar {
    flex-direction: column;
    align-items: flex-start;
  }
  .cloud-modal-card {
    padding: 20px 18px 18px;
    border-radius: 22px;
  }
  .cloud-modal-question {
    font-size: 16px;
    margin-bottom: 12px;
  }
  .cloud-modal-verdict-box {
    padding: 13px 14px;
    margin-bottom: 15px;
  }
  .cloud-modal-verdict-desc {
    font-size: 12.8px;
  }
  .cloud-modal-cta-btn {
    padding: 13px 14px;
    font-size: 14px;
  }
}

/* =========================================================================
 * 2.5D 돌출 질문 구름 줌인 모달 & 앰비언트 블러 (Cloud Verdict Pop-out Modal)
 * ========================================================================= */
.cloud-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 1;
  visibility: visible;
  transition: opacity 0.22s ease, visibility 0.22s ease;
}
.cloud-modal-overlay[hidden] {
  display: none !important;
  opacity: 0;
  visibility: hidden;
}
.cloud-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(14, 28, 22, 0.62);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  cursor: pointer;
}
.cloud-modal-card {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 520px;
  background: #ffffff;
  border: 1.5px solid #a8e5cc;
  border-radius: 28px;
  padding: 28px 28px 24px;
  box-shadow: 0 25px 65px -10px rgba(10, 40, 26, 0.42), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  animation: cloudModalPop 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  transform-origin: center center;
}
@keyframes cloudModalPop {
  0% {
    opacity: 0;
    transform: scale(0.86) translateY(22px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}
.cloud-modal-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.cloud-modal-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 13px;
  background: #eaf8f1;
  color: #155e3f;
  border: 1px solid #c0ebd5;
  border-radius: 99px;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: -0.01em;
}
.cloud-modal-close-btn {
  background: #f1f5f3;
  border: 1px solid #dce5e0;
  color: #1a4d3b;
  width: 44px;
  height: 44px;
  min-width: 44px;
  min-height: 44px;
  border-radius: 50%;
  font-size: 19px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  transition: all 0.15s ease;
  padding: 0;
}
.cloud-modal-close-btn:hover {
  background: #ddeee5;
  color: #0b3425;
  transform: scale(1.08);
}
.cloud-modal-close-btn:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 2px;
}
.cloud-modal-question {
  font-size: clamp(17px, 3.5vw, 20px);
  font-weight: 850;
  color: #14221c;
  line-height: 1.4;
  margin: 0 0 16px;
  letter-spacing: -0.03em;
  word-break: keep-all;
}
.cloud-modal-verdict-box {
  background: #f4faf6;
  border: 1.5px solid #caeedb;
  border-radius: 18px;
  padding: 16px 18px;
  margin-bottom: 20px;
}
.cloud-modal-verdict-head {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: #0d5f39;
  margin-bottom: 8px;
  font-weight: 850;
  letter-spacing: -0.02em;
}
.cloud-verdict-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulseGreen 1.6s infinite;
  flex-shrink: 0;
}
.cloud-modal-verdict-desc {
  margin: 0 0 10px;
  font-size: 13.5px;
  color: #385044;
  line-height: 1.6;
  word-break: keep-all;
}
.cloud-modal-hook {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 12px;
  background: #ffffff;
  border: 1px dashed #9fd9bc;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  color: #186542;
  line-height: 1.5;
  word-break: keep-all;
}
.cloud-modal-hook .hook-icon {
  flex-shrink: 0;
}
.cloud-modal-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.cloud-modal-cta-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 15px 18px;
  background: linear-gradient(135deg, #10b981 0%, #059669 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  font-size: 15px;
  font-weight: 850;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(16, 185, 129, 0.35);
  transition: all 0.18s ease;
  letter-spacing: -0.02em;
  text-align: center;
}
.cloud-modal-cta-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #12c48b 0%, #04825a 100%);
}
.cloud-modal-cta-btn:active {
  transform: translateY(0);
}
.cta-btn-arrow {
  transition: transform 0.18s ease;
}
.cloud-modal-cta-btn:hover .cta-btn-arrow {
  transform: translateX(4px);
}
.cloud-modal-cta-caption {
  font-size: 12.5px;
  color: #17543f;
  display: flex;
  align-items: center;
  gap: 6px;
  font-weight: 650;
}



/* =========================================================================
 * 판정 조건·예외 / 내 상황 입력기 / 면책 고지
 * ========================================================================= */
.cloud-modal-caveat {
  margin: 0 0 8px;
  font-size: 12px;
  line-height: 1.5;
  color: #8a5a00;
  background: #fff8e6;
  border: 1px solid #f3dfab;
  border-radius: 10px;
  padding: 7px 10px;
  word-break: keep-all;
}
.cloud-modal-caveat:empty { display: none; }
.cloud-modal-disclaimer {
  margin: 8px 0 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475467;
  text-align: center;
  word-break: keep-all;
}
.verdict-caveat {
  display: flex;
  gap: 6px;
  margin: 10px 0 0;
  padding: 8px 12px;
  font-size: 12px;
  line-height: 1.55;
  color: #8a5a00;
  background: #fff8e6;
  border: 1px solid #f3dfab;
  border-radius: 10px;
  word-break: keep-all;
}
.verdict-caveat[hidden], .verdict-tuner[hidden], .verdict-preset-note[hidden] { display: none; }
.verdict-preset-note {
  margin: 10px 0 0;
  font-size: 12px;
  color: #3f6b57;
  background: #eef7f2;
  border-radius: 10px;
  padding: 7px 12px;
  word-break: keep-all;
}
.verdict-tuner {
  margin: 14px 0 4px;
  padding: 14px 16px;
  background: #ffffff;
  border: 1.5px solid #a3d9c1;
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(23, 107, 86, 0.06);
}
.verdict-tuner-title {
  font-size: 13px;
  font-weight: 800;
  color: #134c38;
  margin-bottom: 10px;
}
.verdict-tuner-fields {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}
.tuner-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.tuner-label {
  font-size: 12.5px;
  font-weight: 700;
  color: #1f2937;
}
.tuner-input-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 10px;
  background: #f6faf8;
  border: 1px solid #cfe3d9;
  border-radius: 10px;
}
.tuner-input-wrap:focus-within {
  border-color: #10b981;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.15);
}
.tuner-input-wrap input {
  flex: 1;
  min-width: 0;
  padding: 9px 0;
  border: 0;
  background: transparent;
  font-size: 15px;
  font-weight: 750;
  color: #14221c;
  outline: none;
}
.tuner-unit {
  font-size: 12px;
  color: #6b8277;
  font-weight: 650;
}
.verdict-tuner-result {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f4faf6;
  border: 1px solid #d7ebe0;
  border-radius: 12px;
}
.tuner-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  padding: 4px 0;
  font-size: 12.5px;
  color: #3b5247;
}
.tuner-row dt { margin: 0; font-weight: 600; }
.tuner-row dd { margin: 0; font-weight: 800; white-space: nowrap; color: #14221c; }
.tuner-row.is-strong {
  margin-top: 4px;
  padding-top: 8px;
  border-top: 1px dashed #b9dccb;
  font-size: 14px;
  color: #0d5f39;
}
.tuner-row.is-strong dd { color: #0d5f39; font-size: 15px; }
.verdict-tuner-note {
  margin: 8px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #374151;
  word-break: keep-all;
}
.verdict-tuner-note:empty { display: none; }
.verdict-disclaimer {
  margin: 12px 0 0;
  font-size: 12.5px;
  line-height: 1.6;
  color: #475467;
  word-break: keep-all;
}
@media (max-width: 580px) {
  .cloud-modal-caveat { font-size: 12.5px; padding: 7px 10px; }
  .cloud-modal-disclaimer { font-size: 12px; margin-top: 8px; color: #475467; }
  .verdict-tuner { padding: 12px; }
  .verdict-tuner-fields { grid-template-columns: 1fr; }
  .tuner-row { font-size: 12.5px; }
}
.cloud-modal-card {
  max-height: calc(100vh - 32px);
  max-height: calc(100dvh - 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* =========================================================================
 * Phase 2 & 3 + Visual Polish Refactor (Toss-Inspired Minimalist Hierarchy)
 * 1. Unified Input + Stepper Bar (.control-with-steppers)
 * 2. Progressive Disclosure Boss Accordion (details.boss-accordion)
 * 3. Soft Layering & Reduced Border Clutter
 * 4. Slider Fill, Receipt Button & True Dark Mode Palette
 * ========================================================================= */

/* Soften calculator layout & remove double-border clutter */
.entry-panel {
  margin: 18px 0 0 0;
  padding: 24px;
  border: 1px solid #edf2ef;
  border-radius: 20px;
  background: #f8faf9;
  box-shadow: none;
}
.assistant-response {
  margin: 26px 0 0 0;
  padding-top: 24px;
  border-top: 1px solid #edf2ef;
}
.sim-field-group {
  display: grid;
  gap: 16px;
}
.sim-field-group > .field {
  padding: 20px 22px;
  border: 1px solid #edf2ef;
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.02);
}
.field-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 10px;
}
.field-label-row label {
  margin-bottom: 0;
  font-size: 14px;
  font-weight: 780;
  color: var(--ink);
}

/* 1. Unified Input + Stepper Bar */
.control-with-steppers {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 4px 6px;
  border: 1.5px solid #d5e0db;
  border-radius: 14px;
  background: var(--white);
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}
.control-with-steppers:focus-within {
  border-color: var(--green);
  box-shadow: 0 0 0 3px rgba(23, 107, 86, 0.15);
}
.control-with-steppers .control {
  flex: 1 1 auto;
  min-width: 110px;
  height: 42px;
  padding: 0 10px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.control-with-steppers .control:focus-within {
  box-shadow: none;
}
.control-with-steppers .control input {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.quick-stepper-group {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.stepper-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  min-width: 54px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: #f1f5f3;
  color: #1e293b;
  font-size: 13px;
  font-weight: 780;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  user-select: none;
  transition: background 0.15s ease, color 0.15s ease, transform 0.12s ease;
}
.stepper-btn:hover {
  background: var(--green);
  color: #ffffff;
}
.stepper-btn:active {
  transform: scale(0.96);
}
.stepper-btn:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 2px;
}

/* Soft Preset Pills below slider */
.slider-wrap {
  margin-top: 12px;
}
.slider-wrap .preset-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}
.slider-wrap .chip-btn {
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 99px;
  background: #f1f5f3;
  color: #475467;
  font-size: 12.5px;
  font-weight: 680;
}
.slider-wrap .chip-btn:hover,
.slider-wrap .chip-btn.active {
  background: var(--green-soft);
  color: var(--green-dark);
  font-weight: 780;
}

/* Softer secondary info blocks */
.calc-explain {
  border: 0;
  border-radius: 14px;
  background: #f4f7f5;
  padding: 14px 16px;
}
.attendance {
  border: 0;
  border-radius: 14px;
  background: var(--white);
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.03);
}

/* Response Action Buttons & Primary Receipt CTA */
.response-action-btns {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}
.receipt-btn {
  min-height: 44px;
  background: var(--green);
  border-color: var(--green);
  color: #ffffff;
  border-radius: 11px;
  padding: 0 16px;
  box-shadow: 0 4px 12px rgba(23, 107, 86, 0.2);
}
.receipt-btn:hover {
  background: var(--green-dark);
  border-color: var(--green-dark);
}
.share-link-btn {
  border-color: #d1ded8;
  background: var(--white);
  color: #17543f;
  border-radius: 11px;
}
.share-link-btn:hover {
  background: var(--green-soft);
  border-color: var(--green);
  color: var(--green-dark);
}
.copy-button {
  border-radius: 11px;
}

/* 2. Progressive Disclosure Boss Accordion & 3-Tone Tabs */
.boss-tone-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-bottom: 12px;
  padding: 4px;
  background: #edf4f0;
  border: 0;
  border-radius: 12px;
}
.boss-tone-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-height: 44px;
  padding: 7px 8px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #475467;
  font-size: 12.5px;
  font-weight: 760;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: center;
}
.boss-tone-tab .tone-sub {
  font-size: 12px;
  font-weight: 600;
  color: #64748b;
}
.boss-tone-tab:hover {
  color: #12563f;
  background: rgba(255, 255, 255, 0.6);
}
.boss-tone-tab.active {
  background: var(--white);
  color: #0e4b36;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.07);
}
.boss-tone-tab.active .tone-sub {
  color: var(--green);
  font-weight: 700;
}
.boss-tone-tab:focus-visible {
  outline: 2.5px solid #146c51;
  outline-offset: 2px;
}

details.boss-accordion {
  margin-top: 16px;
  padding: 0;
  border: 1px solid #d5e8de;
  border-radius: 16px;
  background: #f8fcfa;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
details.boss-accordion[open] {
  border-color: #b0dcc6;
  background: var(--white);
  box-shadow: 0 8px 24px rgba(18, 86, 66, 0.06);
}
.boss-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 54px;
  padding: 12px 18px;
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.boss-accordion-summary::-webkit-details-marker {
  display: none;
}
.boss-acc-pill {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 99px;
  background: #e0f2e9;
  color: #125642;
  font-size: 12px;
  font-weight: 700;
}
.boss-acc-chevron {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 99px;
  background: #eaf4ef;
  color: #176b56;
  font-size: 12px;
  font-weight: 760;
  transition: background 0.15s ease;
}
details.boss-accordion[open] .boss-acc-chevron {
  font-size: 0;
}
details.boss-accordion[open] .boss-acc-chevron::after {
  content: "접기 ▴";
  font-size: 12px;
}
.boss-accordion-body {
  padding: 4px 18px 18px;
  border-top: 1px solid #edf4f0;
}
.boss-accordion-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 10px;
}

/* Mobile Bottom Sticky Result Bar */
.mobile-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 950;
  padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(15, 35, 28, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(167, 243, 208, 0.24);
  box-shadow: 0 -8px 30px rgba(12, 32, 24, 0.24);
  color: #ffffff;
  animation: stickySlideUp 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes stickySlideUp {
  from { opacity: 0; transform: translateY(100%); }
  to { opacity: 1; transform: translateY(0); }
}
.sticky-bar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: min(100%, 860px);
  margin: 0 auto;
}
.sticky-bar-info {
  flex: 1 1 auto;
  min-width: 0;
  cursor: pointer;
}
.sticky-bar-info:focus-visible {
  outline: 2.5px solid #6ee7b7;
  outline-offset: 3px;
  border-radius: 6px;
}
.sticky-bar-top {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.sticky-bar-period {
  font-size: 12px;
  font-weight: 700;
  color: #a7f3d0;
}
.sticky-bar-sub {
  font-size: 12px;
  font-weight: 650;
  color: #d1fae5;
  background: rgba(16, 185, 129, 0.22);
  padding: 1px 7px;
  border-radius: 99px;
}
.sticky-bar-amount-row {
  display: flex;
  align-items: baseline;
  gap: 5px;
}
.sticky-bar-amount {
  font-size: clamp(19px, 4.5vw, 23px);
  font-weight: 850;
  color: #ffffff;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
}
.sticky-bar-unit {
  font-size: 12.5px;
  font-weight: 700;
  color: #a7f3d0;
}
.sticky-bar-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}
.sticky-action-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 13px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 780;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}
.sticky-action-btn.secondary {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  color: #ffffff;
}
.sticky-action-btn.secondary:hover {
  background: rgba(255, 255, 255, 0.22);
}
.sticky-action-btn.primary {
  background: #10b981;
  border: 1px solid #34d399;
  color: #06281c;
  font-weight: 850;
}
.sticky-action-btn.primary:hover {
  background: #34d399;
}
.sticky-action-btn:focus-visible {
  outline: 2.5px solid #ffffff;
  outline-offset: 2px;
}
body.has-sticky-bar {
  padding-bottom: 84px;
}

/* Slider Fill & Theme Toggle */
.sim-slider {
  -webkit-appearance: none;
  appearance: none;
  height: 7px;
  background: linear-gradient(to right, var(--green) var(--fill, 50%), #dce5e0 var(--fill, 50%));
}
.sim-slider::-webkit-slider-runnable-track { height: 7px; border-radius: 99px; background: transparent; }
.sim-slider::-moz-range-track { height: 7px; border-radius: 99px; background: transparent; }
.sim-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px; margin-top: -8.5px;
  border-radius: 50%; border: 3px solid #fff; background: var(--green);
  box-shadow: 0 2px 8px rgba(18, 86, 66, 0.32);
  transition: transform 0.12s ease;
}
.sim-slider::-moz-range-thumb {
  width: 20px; height: 20px; border-radius: 50%;
  border: 3px solid #fff; background: var(--green);
  box-shadow: 0 2px 8px rgba(18, 86, 66, 0.32);
}
.sim-slider:active::-webkit-slider-thumb { transform: scale(1.12); }

.theme-toggle {
  flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%;
  border: 1px solid var(--line); background: var(--white);
  color: var(--ink);
  font-size: 17px; line-height: 1; cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}
.theme-toggle:hover {
  border-color: var(--green);
  background: var(--green-soft);
}
.theme-toggle:focus-visible { outline: 2.5px solid #146c51; outline-offset: 2px; }

/* ==========================================================
 * Toss-Style UI v3 (3대 핵심 정돈: 타깃 분리, 마이크로카피 다이어트, 상단 구름 바 통합)
 * ========================================================== */
html {
  font-family: Pretendard, "Pretendard Variable", Inter, "Apple SD Gothic Neo", "Noto Sans KR", system-ui, sans-serif;
}
body {
  font-family: inherit;
  -webkit-font-smoothing: antialiased;
  letter-spacing: -.01em;
}
html:not([data-theme="dark"]) body {
  background: #f2f4f6;
}

/* [개선 3] 상단 구름 포털 컴팩트화 & 첫 화면(Above the Fold) 메인 계산기 직결 */
.cloud-portal-view {
  min-height: auto;
  margin: 0 auto 14px;
  padding: 18px 20px 14px;
  border-radius: 24px;
  border: 1px solid rgba(20, 108, 81, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbf8 100%);
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.04);
}
.cloud-portal-view::before,
.cloud-portal-view::after {
  display: none;
}
.cloud-portal-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  text-align: left;
  max-width: 100%;
  margin: 0 0 12px;
}
.cloud-portal-badge {
  margin-bottom: 0;
  padding: 5px 12px;
  font-size: 12px;
}
.cloud-portal-title {
  margin: 0;
  font-size: clamp(18px, 2.8vw, 22px);
  line-height: 1.3;
}
.cloud-portal-desc,
.cloud-portal-footer,
.calc-portal-top-bar {
  display: none !important;
}
.cloud-search-container {
  max-width: 100%;
  margin: 0 0 10px;
}
.cloud-search-input {
  height: 44px;
  padding: 0 40px 0 42px;
  font-size: 14px;
  border-radius: 14px;
  box-shadow: none;
}
.cloud-search-icon {
  left: 14px;
  font-size: 15px;
}
.cloud-filter-tags {
  justify-content: flex-start;
  gap: 6px;
  margin: 0 0 10px;
}
.cloud-tag-btn {
  padding: 6px 12px;
  font-size: 13px;
}
.cloud-universe-canvas {
  display: flex;
  flex-wrap: nowrap;
  overflow-x: auto;
  gap: 10px;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}
.cloud-card,
.cloud-card.float-anim-1,
.cloud-card.float-anim-2,
.cloud-card.float-anim-3,
.cloud-card.float-anim-4 {
  flex: 0 0 250px;
  scroll-snap-align: start;
  padding: 14px 16px;
  border-radius: 18px;
  gap: 8px;
  animation: none !important;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.cloud-card:hover {
  transform: translateY(-2px);
}
.cloud-card-hint,
.cloud-card-cta {
  display: none !important;
}
.cloud-card-q {
  font-size: 14px;
  line-height: 1.4;
}
.cloud-icon {
  width: 30px;
  height: 30px;
  font-size: 16px;
}
.calculator-suite-view {
  padding-top: 4px;
}

/* [개선 1] 타깃 분리 (알바생 / 직장인 2탭 세그먼트 & 서브 계산기 단일 탭 스위처) */
.mode-hub {
  margin-bottom: 14px;
}
.mode-switch-bar {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 6px;
  border-radius: 18px;
  background: #e8ecef;
  border: 1px solid transparent;
  margin-bottom: 12px;
}
.mode-switch-btn {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: 14px;
  border: 0;
  text-align: center;
}
.mode-switch-btn.active {
  background: #ffffff;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08);
}
.mode-pill {
  padding: 3px 8px;
  font-size: 12px;
}
.mode-title {
  font-size: 15px;
  font-weight: 800;
}
.calculator-hero {
  display: none !important;
}
.mode-subnav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 0;
}
.subnav-item {
  flex: 1 1 auto;
  min-width: 140px;
  padding: 11px 16px;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}
.subnav-item-top {
  justify-content: center;
  gap: 8px;
}
.subnav-item-desc {
  display: none !important;
}
.subnav-item.is-active {
  background: #146c51;
  border-color: #146c51;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(20, 108, 81, 0.22);
}
.subnav-item.is-active .subnav-item-title {
  color: #ffffff;
}
.subnav-item.is-active .subnav-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #ffffff;
}

/* [개선 2] 마이크로카피 다이어트 (상단 중복 챗봇 말풍선 제거 & 하단 산출 기준 아코디언 수납) */
.conversation > .message {
  display: none !important;
}
.schedule-summary,
.form-bottom {
  display: none !important;
}
.conversation {
  padding: 20px;
  gap: 16px;
}
.entry-panel {
  padding: 20px;
  border-radius: 20px;
}
.result-bubble {
  padding: 24px 22px 20px;
  border-radius: 20px;
}
html:not([data-theme="dark"]) .calculator-card,
html:not([data-theme="dark"]) .tool-card,
html:not([data-theme="dark"]) .audience-switch,
html:not([data-theme="dark"]) .article-body,
html:not([data-theme="dark"]) .legal-reference {
  border-color: transparent;
  box-shadow: 0 1px 2px rgba(0, 27, 55, 0.04), 0 8px 24px rgba(0, 27, 55, 0.04);
}
.calculator-card,
.tool-card,
.article-body {
  border-radius: 24px;
}
.secondary-card {
  margin-top: 0;
}
.home-guide.content-section {
  margin-top: 28px;
}
html:not([data-theme="dark"]) .entry-panel {
  border-color: transparent;
  background: #f9fafb;
  box-shadow: none;
}
html:not([data-theme="dark"]) .result-bubble {
  border-color: transparent;
  background: #eef8f3;
}
html:not([data-theme="dark"]) .result-period {
  margin-bottom: 6px;
  color: #4e5968;
  font-size: 14px;
  font-weight: 600;
}
.amount {
  font-size: clamp(38px, 8.5vw, 46px);
  line-height: 1.12;
  letter-spacing: -.04em;
  font-weight: 800;
}
html:not([data-theme="dark"]) .amount-unit {
  color: #4e5968;
  font-size: 16px;
  font-weight: 600;
}
html:not([data-theme="dark"]) .result-caption {
  margin-top: 8px;
  color: #4e5968;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.5;
}
html:not([data-theme="dark"]) .copy-button:not(.receipt-btn) {
  border: 0;
  border-radius: 12px;
  color: #4e5968;
  background: #f2f4f6;
  font-size: 13px;
  font-weight: 600;
}
html:not([data-theme="dark"]) .copy-button:not(.receipt-btn):hover {
  background: #e5e8eb;
}
.button-link:active,
.copy-button:active,
.stepper-btn:active,
.period-button:active,
.audience-button:active {
  transform: scale(.97);
}

/* 산출 기준 및 관련 노동법 가이드 접기/펼치기 아코디언 */
details.calc-criteria-accordion {
  margin-top: 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #f8fafb;
  overflow: hidden;
}
.criteria-accordion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.criteria-accordion-summary::-webkit-details-marker {
  display: none;
}
.criteria-acc-chevron {
  font-size: 12px;
  font-weight: 600;
  color: var(--green);
}
details.calc-criteria-accordion[open] .criteria-accordion-summary {
  border-bottom: 1px solid var(--line);
  color: var(--ink);
}
.criteria-accordion-body {
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}
.criteria-accordion-body .calc-explain,
.criteria-accordion-body .legal-note,
.criteria-accordion-body .source-line,
.criteria-accordion-body .comparison-callout {
  margin-top: 0 !important;
}

@keyframes tossFadeUp {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}
.calculator-card,
.tool-card,
.audience-switch,
.article-body,
.legal-reference {
  animation: tossFadeUp .35s ease-out both;
}
details[open] > :not(summary) {
  animation: tossFadeUp .22s ease-out both;
}

/* ==========================================================
 * 4. Complete Natural Dark Mode (자연스러운 다크모드 전면 보강)
 * ========================================================== */
html[data-theme="dark"] {
  color-scheme: dark;
  --ink: #f1f5f9;
  --muted: #94a3b8;
  --line: #243240;
  --soft: #0b1117;
  --green: #10b981;
  --green-dark: #34d399;
  --green-soft: rgba(16, 185, 129, 0.16);
  --white: #131c26;
  --shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  background: var(--soft);
}
html[data-theme="dark"] body {
  background: radial-gradient(ellipse at 50% -15%, rgba(16, 185, 129, 0.12), transparent 55%), #0b1117;
  color: var(--ink);
}

/* 헤더 & 푸터 & 브랜드 */
html[data-theme="dark"] .site-header,
html[data-theme="dark"] .site-footer {
  background: rgba(15, 23, 32, 0.88);
  border-color: var(--line);
}
html[data-theme="dark"] .brand {
  color: #f8fafc;
}
html[data-theme="dark"] .brand-badge-pill {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
html[data-theme="dark"] .site-nav a {
  color: #cbd5e1;
}
html[data-theme="dark"] .site-nav a:hover,
html[data-theme="dark"] .site-nav a.active {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
html[data-theme="dark"] .theme-toggle {
  background: #182430;
  border-color: #2b3b4b;
  color: #f1f5f9;
}

/* 상단 질문 구름 포털 & 모달 */
html[data-theme="dark"] .cloud-portal-view {
  background: linear-gradient(180deg, #131d27 0%, #0f1720 100%);
  border-color: #233242;
  box-shadow: 0 10px 32px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .cloud-portal-badge {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.32);
  color: #34d399;
}
html[data-theme="dark"] .cloud-portal-title,
html[data-theme="dark"] .cloud-card-q {
  color: #f8fafc;
}
html[data-theme="dark"] .cloud-search-input {
  background: #0b1219;
  border-color: #283848;
  color: #f1f5f9;
}
html[data-theme="dark"] .cloud-search-input::placeholder {
  color: #64748b;
}
html[data-theme="dark"] .cloud-search-clear {
  background: #1e2d3b;
  color: #cbd5e1;
}
html[data-theme="dark"] .cloud-tag-btn {
  background: #17222d;
  border-color: #273747;
  color: #cbd5e1;
}
html[data-theme="dark"] .cloud-tag-btn:hover {
  background: #1e2d3b;
  border-color: #34d399;
  color: #34d399;
}
html[data-theme="dark"] .cloud-tag-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}
html[data-theme="dark"] .cloud-card {
  background: #17222e;
  border-color: #263646;
  color: #f1f5f9;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.28);
}
html[data-theme="dark"] .cloud-card:hover,
html[data-theme="dark"] .cloud-card.active {
  background: #1b2938;
  border-color: #10b981;
}
html[data-theme="dark"] .cloud-icon {
  background: #0f1720;
  box-shadow: none;
}
html[data-theme="dark"] .tag-holiday { background: rgba(16, 185, 129, 0.18); color: #6ee7b7; }
html[data-theme="dark"] .tag-split { background: rgba(245, 158, 11, 0.18); color: #fcd34d; }
html[data-theme="dark"] .tag-overtime { background: rgba(99, 102, 241, 0.2); color: #a5b4fc; }
html[data-theme="dark"] .tag-tax { background: rgba(14, 165, 233, 0.2); color: #7dd3fc; }
html[data-theme="dark"] .tag-severance { background: rgba(236, 72, 153, 0.2); color: #f9a8d4; }
html[data-theme="dark"] .tag-wage { background: rgba(239, 68, 68, 0.2); color: #fca5a5; }
html[data-theme="dark"] .cloud-empty-msg {
  background: #131c26;
  border-color: #273747;
  color: #cbd5e1;
}
html[data-theme="dark"] .cloud-empty-msg p {
  color: #f8fafc;
}

/* 질문 구름 팝업 모달 다크모드 */
html[data-theme="dark"] .cloud-modal-card {
  background: #15202b;
  border-color: #2a3c4e;
  color: #f1f5f9;
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.65);
}
html[data-theme="dark"] .cloud-modal-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.35);
  color: #34d399;
}
html[data-theme="dark"] .cloud-modal-close-btn {
  background: #1e2d3b;
  color: #cbd5e1;
}
html[data-theme="dark"] .cloud-modal-close-btn:hover {
  background: #283b4c;
  color: #ffffff;
}
html[data-theme="dark"] .cloud-modal-question {
  color: #f8fafc;
}
html[data-theme="dark"] .cloud-modal-verdict-box {
  background: #10231f;
  border-color: #1f4d3d;
}
html[data-theme="dark"] .cloud-modal-verdict-head strong {
  color: #6ee7b7;
}
html[data-theme="dark"] .cloud-modal-verdict-desc {
  color: #e2e8f0;
}
html[data-theme="dark"] .cloud-modal-caveat {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}
html[data-theme="dark"] .cloud-modal-hook {
  background: #162936;
  border-color: #264357;
  color: #cbd5e1;
}
html[data-theme="dark"] .cloud-modal-cta-caption,
html[data-theme="dark"] .cloud-modal-disclaimer {
  color: #94a3b8;
}

/* 선택된 질문 법률 진단 카드 & 상황 입력기(Tuner) 다크모드 */
html[data-theme="dark"] .situation-verdict-card {
  background: linear-gradient(145deg, #132229 0%, #131c26 100%);
  border-color: #24463e;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .verdict-icon-wrap {
  background: #1a2d36;
  border-color: #284652;
}
html[data-theme="dark"] .verdict-law-badge {
  background: rgba(16, 185, 129, 0.18);
  color: #34d399;
}
html[data-theme="dark"] .verdict-close-btn {
  background: #1e2d3b;
  border-color: #2d4052;
  color: #cbd5e1;
}
html[data-theme="dark"] .verdict-headline {
  color: #f8fafc;
}
html[data-theme="dark"] .verdict-body {
  color: #cbd5e1;
}
html[data-theme="dark"] .verdict-caveat-box {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.32);
  color: #fde68a;
}
html[data-theme="dark"] .verdict-tuner {
  background: #16222e;
  border-color: #263849;
}
html[data-theme="dark"] .verdict-tuner-head {
  border-bottom-color: #233444;
}
html[data-theme="dark"] .verdict-tuner-badge {
  background: #10b981;
  color: #052e16;
}
html[data-theme="dark"] .verdict-tuner-title {
  color: #34d399;
}
html[data-theme="dark"] .tuner-field label {
  color: #cbd5e1;
}
html[data-theme="dark"] .tuner-input-wrap,
html[data-theme="dark"] .tuner-field select {
  background: #0d151d;
  border-color: #2a3c4d;
  color: #f8fafc;
}
html[data-theme="dark"] .tuner-input-wrap input {
  color: #f8fafc;
}
html[data-theme="dark"] .tuner-unit {
  color: #94a3b8;
}
html[data-theme="dark"] .verdict-tuner-result {
  background: #10241f;
  border-color: #1f4d3d;
  color: #d1fae5;
}
html[data-theme="dark"] .verdict-tuner-result strong {
  color: #34d399;
}
html[data-theme="dark"] .verdict-preset-note {
  color: #6ee7b7;
}
html[data-theme="dark"] .verdict-guide-btn {
  background: #1a2836;
  border-color: #2c4054;
  color: #6ee7b7;
}
html[data-theme="dark"] .btn-scroll-to-calc {
  background: #10b981;
  color: #052e16;
}

/* 모드 스위치 바 & 서브 계산기 탭 다크모드 */
html[data-theme="dark"] .mode-switch-bar {
  background: #111922;
  border-color: #22303e;
}
html[data-theme="dark"] .mode-switch-btn {
  color: #94a3b8;
}
html[data-theme="dark"] .mode-switch-btn:hover {
  background: rgba(255, 255, 255, 0.04);
}
html[data-theme="dark"] .mode-switch-btn.active {
  background: #1c2a38;
  color: #f8fafc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
html[data-theme="dark"] .mode-title {
  color: inherit;
}
html[data-theme="dark"] .mode-pill {
  background: #1e2d3b;
  color: #94a3b8;
}
html[data-theme="dark"] .mode-switch-btn.active .mode-pill {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
html[data-theme="dark"] .subnav-item {
  background: #141e28;
  border-color: #243444;
  color: #cbd5e1;
}
html[data-theme="dark"] .subnav-item-title {
  color: #e2e8f0;
}
html[data-theme="dark"] .subnav-badge {
  background: rgba(16, 185, 129, 0.16);
  color: #34d399;
}
html[data-theme="dark"] .subnav-item:hover {
  background: #1a2734;
  border-color: #10b981;
}
html[data-theme="dark"] .subnav-item.is-active {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}
html[data-theme="dark"] .subnav-item.is-active .subnav-item-title {
  color: #052e16;
}
html[data-theme="dark"] .subnav-item.is-active .subnav-badge {
  background: rgba(5, 46, 22, 0.18);
  color: #052e16;
}

/* 계산기 카드 본체 & 입력 폼 & 컨트롤 다크모드 */
html[data-theme="dark"] .calculator-card,
html[data-theme="dark"] .tool-card,
html[data-theme="dark"] .info-card,
html[data-theme="dark"] .article-body,
html[data-theme="dark"] .legal-reference,
html[data-theme="dark"] .audience-switch {
  background: #131c26;
  border-color: #233242;
  color: var(--ink);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.38);
}
html[data-theme="dark"] .card-bar {
  background: #16212d;
  border-bottom-color: #233242;
}
html[data-theme="dark"] .bar-title {
  color: #f1f5f9;
}
html[data-theme="dark"] .bar-badge,
html[data-theme="dark"] .currency-live-badge {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.3);
  color: #34d399;
}
html[data-theme="dark"] .entry-panel,
html[data-theme="dark"] .monthly-weekly-panel {
  background: #17222e;
  border-color: #253545;
  color: #e2e8f0;
}
html[data-theme="dark"] .sim-field-group > .field,
html[data-theme="dark"] .control-with-steppers,
html[data-theme="dark"] .control,
html[data-theme="dark"] .control-select,
html[data-theme="dark"] .inline-select,
html[data-theme="dark"] .attendance {
  background: #0e161f;
  border-color: #28394a;
  color: var(--ink);
}
html[data-theme="dark"] .control input,
html[data-theme="dark"] .entry-heading h2,
html[data-theme="dark"] .response-label,
html[data-theme="dark"] .page-title,
html[data-theme="dark"] .attendance-copy strong,
html[data-theme="dark"] .info-card h3,
html[data-theme="dark"] .field label {
  color: #f8fafc;
}
html[data-theme="dark"] .prefix,
html[data-theme="dark"] .suffix,
html[data-theme="dark"] .field-subnote,
html[data-theme="dark"] .entry-hint,
html[data-theme="dark"] .slider-ticks {
  color: #94a3b8;
}
html[data-theme="dark"] .slider-ticks .tick-highlight {
  color: #34d399;
}
html[data-theme="dark"] .stepper-btn,
html[data-theme="dark"] .slider-wrap .chip-btn,
html[data-theme="dark"] .chip-btn {
  background: #1c2b39;
  border-color: #2d4154;
  color: #e2e8f0;
}
html[data-theme="dark"] .stepper-btn:hover,
html[data-theme="dark"] .chip-btn:hover,
html[data-theme="dark"] .chip-btn.active {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}
html[data-theme="dark"] .sim-slider {
  background: linear-gradient(to right, var(--green) var(--fill, 50%), #273747 var(--fill, 50%));
}
html[data-theme="dark"] .sim-slider::-webkit-slider-thumb {
  background: #131c26;
  border-color: #10b981;
}

/* 8주 변동 근무 입력 그리드 다크모드 */
html[data-theme="dark"] .monthly-mode-switch {
  background: #0e161f;
  border-color: #28394a;
}
html[data-theme="dark"] .mode-chip {
  color: #94a3b8;
}
html[data-theme="dark"] .mode-chip.active {
  background: #1e2e3d;
  color: #34d399;
}
html[data-theme="dark"] .week-group-block {
  background: #121b24;
  border-color: #243444;
}
html[data-theme="dark"] .week-group-header strong {
  color: #f1f5f9;
}
html[data-theme="dark"] .week-row {
  background: #0d141c;
  border-color: #233343;
}
html[data-theme="dark"] .week-label {
  color: #e2e8f0;
}
html[data-theme="dark"] .month-week-chip {
  background: #192634;
  border-color: #2b3e50;
  color: #cbd5e1;
}
html[data-theme="dark"] .week-status.ok {
  background: rgba(16, 185, 129, 0.16);
  color: #6ee7b7;
}
html[data-theme="dark"] .week-status.under {
  background: rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}

/* 피커(주간/월간/연간) 및 세금 공제 칩 다크모드 */
html[data-theme="dark"] .period-picker,
html[data-theme="dark"] .tax-inline-picker {
  background: #111922;
  border-color: #233242;
}
html[data-theme="dark"] .period-button {
  color: #94a3b8;
}
html[data-theme="dark"] .period-button[aria-pressed="true"],
html[data-theme="dark"] .period-button.active {
  background: #1e2e3d;
  color: #34d399;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
html[data-theme="dark"] .tax-inline-label {
  color: #cbd5e1;
}
html[data-theme="dark"] .tax-chip {
  background: #18232f;
  border-color: #28394a;
  color: #cbd5e1;
}
html[data-theme="dark"] .tax-chip:hover {
  border-color: #34d399;
  color: #34d399;
}
html[data-theme="dark"] .tax-chip.active {
  background: #10b981;
  border-color: #10b981;
  color: #052e16;
}

/* 결과 버블 & 배지 & 아코디언 다크모드 */
html[data-theme="dark"] .result-bubble {
  background: linear-gradient(145deg, #102821, #0c1f1a);
  border: 1px solid #1f4d3d;
}
html[data-theme="dark"] .amount {
  color: #34d399;
}
html[data-theme="dark"] .result-period,
html[data-theme="dark"] .amount-unit,
html[data-theme="dark"] .result-caption {
  color: #a7f3d0;
}
html[data-theme="dark"] .breakdown {
  border-top-color: rgba(52, 211, 153, 0.22);
}
html[data-theme="dark"] .breakdown-item {
  background: rgba(11, 17, 23, 0.45);
  border-color: rgba(52, 211, 153, 0.18);
  color: #cbd5e1;
}
html[data-theme="dark"] .breakdown-item strong {
  color: #f8fafc;
}
html[data-theme="dark"] .copy-button:not(.receipt-btn) {
  background: #1a2633;
  border: 1px solid #2b3d4f;
  color: #e2e8f0;
}
html[data-theme="dark"] .copy-button:not(.receipt-btn):hover {
  background: #223242;
  border-color: #34d399;
  color: #34d399;
}
html[data-theme="dark"] .sim-milestone-badge.achieved {
  background: rgba(16, 185, 129, 0.14);
  border-color: rgba(16, 185, 129, 0.35);
  color: #6ee7b7;
}
html[data-theme="dark"] .sim-milestone-badge.near {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.38);
  color: #fde68a;
}
html[data-theme="dark"] .sim-milestone-badge.muted {
  background: #16212c;
  border-color: #263646;
  color: #cbd5e1;
}
html[data-theme="dark"] .warning {
  background: rgba(245, 158, 11, 0.14);
  border-color: rgba(245, 158, 11, 0.35);
  color: #fde68a;
}
html[data-theme="dark"] .overtime-jump-banner {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.35);
  color: #c7d2fe;
}
html[data-theme="dark"] details.calc-criteria-accordion {
  background: #141e28;
  border-color: #243444;
}
html[data-theme="dark"] .criteria-accordion-summary {
  color: #cbd5e1;
}
html[data-theme="dark"] details.calc-criteria-accordion[open] .criteria-accordion-summary {
  border-bottom-color: #243444;
  color: #f8fafc;
}
html[data-theme="dark"] .calc-explain,
html[data-theme="dark"] .legal-note {
  background: #0f1720;
  border-color: #233343;
  color: #cbd5e1;
}
html[data-theme="dark"] .comparison-callout {
  background: #122422;
  border-color: #1f4d3d;
  color: #d1fae5;
}
html[data-theme="dark"] .comparison-callout strong,
html[data-theme="dark"] .comparison-callout a {
  color: #34d399;
}

/* 3.3% vs 4대보험 비교 카드 & 하단 가이드 섹션 다크모드 */
html[data-theme="dark"] .tax-card {
  background: #16212d;
  border-color: #263747;
}
html[data-theme="dark"] .tax-card.insurance-card {
  background: linear-gradient(180deg, #122822 0%, #15212c 100%);
  border-color: #1f4d3d;
}
html[data-theme="dark"] .tax-card-head h3 {
  color: #f8fafc;
}
html[data-theme="dark"] .tax-card-tag {
  background: #223242;
  color: #cbd5e1;
}
html[data-theme="dark"] .tax-card-tag.recommended {
  background: rgba(16, 185, 129, 0.2);
  color: #34d399;
}
html[data-theme="dark"] .tax-card-amount {
  background: #0e161f;
  border-color: #253646;
}
html[data-theme="dark"] .tax-card-amount span {
  color: #94a3b8;
}
html[data-theme="dark"] .tax-card-amount strong {
  color: #34d399;
}
html[data-theme="dark"] .tax-detail-list li {
  border-bottom-color: #233343;
  color: #cbd5e1;
}
html[data-theme="dark"] .tax-detail-list li strong {
  color: #f1f5f9;
}
html[data-theme="dark"] .tax-verdict-box {
  background: #15222e;
  border-color: #263849;
  color: #e2e8f0;
}
html[data-theme="dark"] .tax-verdict-box .verdict-headline {
  color: #6ee7b7;
}
html[data-theme="dark"] .tax-verdict-box .verdict-sub {
  color: #cbd5e1;
}
html[data-theme="dark"] .example-panel,
html[data-theme="dark"] .formula-panel,
html[data-theme="dark"] .article-cta,
html[data-theme="dark"] .faq-section details {
  background: #16212d;
  border-color: #253646;
  color: #e2e8f0;
}
html[data-theme="dark"] .formula {
  background: #0e161f;
  border-color: #253646;
  color: #34d399;
}
html[data-theme="dark"] .faq-section summary {
  color: #f8fafc;
}
html[data-theme="dark"] .faq-section details p {
  color: #cbd5e1;
}
html[data-theme="dark"] details.boss-accordion,
html[data-theme="dark"] .boss-template-box {
  background: #16222b;
  border-color: #263847;
}
html[data-theme="dark"] .boss-tone-tabs { background: #0f171e; }
html[data-theme="dark"] .boss-tone-tab { color: #94a3b8; }
html[data-theme="dark"] .boss-tone-tab.active {
  background: #1e2d3a;
  color: #34d399;
}
html[data-theme="dark"] .boss-template-text {
  background: #0f171e;
  border-color: #263847;
  color: #e2e8f0;
}

@media (max-width: 700px) {
  .cloud-portal-view {
    padding: 14px 14px 12px;
    margin-bottom: 12px;
  }
  .cloud-card,
  .cloud-card.float-anim-1,
  .cloud-card.float-anim-2,
  .cloud-card.float-anim-3,
  .cloud-card.float-anim-4 {
    flex: 0 0 225px;
    padding: 12px 14px;
  }
  .mode-switch-btn {
    padding: 10px 10px;
    gap: 6px;
  }
  .mode-title {
    font-size: 14px;
  }
  .subnav-item {
    min-width: calc(50% - 4px);
    padding: 10px 12px;
  }
  .conversation {
    padding: 14px;
  }
  .entry-panel { padding: 16px 14px; }
  .sim-field-group > .field { padding: 16px 14px; }
  .control-with-steppers {
    flex-direction: row;
    padding: 3px 5px;
  }
  .quick-stepper-group {
    width: auto;
    display: inline-flex;
  }
  .stepper-btn {
    min-width: 48px;
    padding: 0 10px;
  }
  .boss-tone-tabs {
    grid-template-columns: 1fr;
  }
  .boss-tone-tab {
    flex-direction: row;
    justify-content: space-between;
    padding: 8px 12px;
  }
  .boss-acc-pill {
    display: none;
  }
  .response-action-btns {
    width: 100%;
  }
  .response-action-btns .copy-button {
    flex: 1 1 auto;
  }
  .boss-msg-toast {
    bottom: 92px;
  }
  .header-inner { gap: 10px; }
  .theme-toggle { width: 42px; height: 42px; }
}

@media (prefers-reduced-motion: reduce) {
  .calculator-card,
  .tool-card,
  .audience-switch,
  .article-body,
  .legal-reference,
  details[open] > :not(summary) {
    animation: none !important;
  }
  .button-link:active,
  .copy-button:active,
  .stepper-btn:active,
  .period-button:active,
  .audience-button:active {
    transform: none;
  }
}
