:root{--orange:#ef6320;--orange-dark:#bc4310;--ink:#29241f;--muted:#827b75;--line:#eee7e0;--peach:#fff4e9;--white:#fff;--shadow:0 10px 30px #68340c07}*{box-sizing:border-box}body{margin:0;color:var(--ink);background:#fcfaf7;font-family:'Noto Sans KR',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;font-size:16px;line-height:1.6;-webkit-font-smoothing:antialiased}button,input,select{font:inherit}button,a{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible{outline:3px solid #eb773b;outline-offset:4px}a{text-decoration:none;color:inherit}button{color:inherit}button svg{pointer-events:none}svg{width:24px;height:24px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}.header{height:86px;background:#ffffffed;border-bottom:1px solid var(--line)}.header-inner{max-width:1180px;margin:auto;height:100%;display:flex;align-items:center;justify-content:space-between;padding:0 28px}.brand{display:flex;align-items:center;gap:10px;font-size:25px;font-weight:900;letter-spacing:-1.1px}.brand img{border-radius:12px}.header nav{display:flex;height:100%;gap:32px}.header nav button{border:0;background:none;font-size:15px;color:#77716a;position:relative;padding:0 3px;font-weight:600}.header nav button.active{color:var(--orange);font-weight:800}.header nav button.active:after{content:'';position:absolute;bottom:0;height:3px;left:0;right:0;background:var(--orange);border-radius:3px 3px 0 0}.header-note{font-size:13px;color:#968a7d}main{max-width:1180px;margin:auto;padding:0 28px}.intro{display:flex;align-items:center;justify-content:space-between;min-height:244px;padding:30px 8px 28px}.eyebrow{display:flex;align-items:center;gap:8px;font-size:11px;font-weight:800;letter-spacing:2.1px;color:#b85627}.eyebrow span{height:6px;width:6px;border-radius:50%;background:var(--orange)}h1{font-size:40px;letter-spacing:-1.9px;line-height:1.4;margin:12px 0 9px;font-weight:800}h1 em{font-style:normal;color:var(--orange)}.intro p{font-size:15px;color:#86786c;margin:0}.mobile-break{display:none}.intro-brand{width:243px;display:flex;align-items:center;justify-content:center;position:relative;align-self:stretch}.intro-brand img{width:128px;height:128px;border-radius:33px;transform:rotate(10deg);box-shadow:0 18px 40px #ec76252b}.brand-bubble{position:absolute;font-size:12px;font-weight:600;background:#fff;border:1px solid #fae1c5;border-radius:30px;padding:8px 14px;bottom:3px;left:-13px;transform:rotate(-4deg);box-shadow:0 4px 15px #9b6c1707}.section-line{display:flex;align-items:center;justify-content:space-between;margin-bottom:15px;gap:12px}.section-line h2{margin:0;display:flex;gap:9px;align-items:center;font-size:17px;font-weight:700;letter-spacing:-.6px}.step{color:var(--orange);font-size:12px;font-weight:800;background:#ffebdc;width:26px;height:26px;display:inline-flex;align-items:center;justify-content:center;border-radius:8px;letter-spacing:0}.small-text{color:#948a80;font-size:12px}.type-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:14px;margin-bottom:32px}.type-card{border:1px solid #eee5dc;background:#fff;border-radius:20px;padding:23px 22px;min-height:161px;display:flex;flex-direction:column;text-align:left;position:relative;overflow:hidden;box-shadow:var(--shadow);transition:transform .2s,border-color .2s,box-shadow .2s}.type-card:hover{transform:translateY(-3px);border-color:#eeb386;box-shadow:0 9px 22px #b46b1410}.type-card.active{background:linear-gradient(120deg,#ff9b44 0%,#f57225 47%,#e8551b 100%);border-color:transparent;color:#fff;box-shadow:0 8px 20px #eb70282e}.type-card.active:after{content:'';width:190px;height:190px;position:absolute;right:-98px;top:-50px;border:26px solid #ffffff0d;border-radius:50%}.type-card .type-icon{background:#fff5eb;color:#c96a2e;width:43px;height:43px;display:flex;align-items:center;justify-content:center;border-radius:13px;margin-bottom:15px}.type-card.active .type-icon{background:#ffffff2b;color:#fff}.type-card .type-name{font-size:21px;font-weight:800;line-height:1.4;letter-spacing:-.7px}.type-card .type-sub{font-size:12px;color:#96897e;margin-top:3px}.type-card.active .type-sub{color:#fff2e5}.type-count{position:absolute;right:20px;top:22px;font-size:12px;color:#a79a8e}.active .type-count{color:#ffefdf}.workspace{background:#fff;border:1px solid var(--line);border-radius:24px;padding:27px 28px 20px;box-shadow:var(--shadow)}.field-heading{margin-bottom:17px}.category-grid{display:grid;grid-template-columns:repeat(var(--cols,4),1fr);gap:10px;border-bottom:1px solid var(--line);padding-bottom:25px}.category{border:1px solid #eee9e3;background:#fff;border-radius:13px;display:flex;align-items:center;justify-content:center;gap:10px;min-height:59px;font-size:15px;font-weight:600;transition:all .15s}.category svg{width:21px;height:21px;color:#918980}.category:hover{background:#fff9f2}.category.active{background:#fff4e9;border-color:#f2a876;color:#b8470b;box-shadow:inset 0 0 0 .5px #f2a876}.category.active svg{color:#de6929}.category .category-count{font-size:11px;font-weight:500;margin-left:4px;color:#a19a90}.results-heading{display:flex;justify-content:space-between;align-items:center;padding:28px 0 20px}.section-kicker{font-size:10px;font-weight:800;letter-spacing:1.8px;color:#c27643}.results-heading h2{font-size:23px;letter-spacing:-1px;margin:3px 0 5px}.results-heading h2 span{font-size:14px;font-weight:700;background:#fff0e3;color:#d16a27;display:inline-flex;width:25px;height:25px;align-items:center;justify-content:center;border-radius:8px;vertical-align:middle;margin-left:5px;letter-spacing:0}.results-heading p{font-size:13px;color:#8b8177;margin:0}.collection-label{font-size:12px;color:#a19589;border:1px solid #eee7df;border-radius:6px;padding:5px 10px}.tool-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:13px}.tool-card{position:relative;text-align:left;background:white;border:1px solid #ebe6df;border-radius:15px;padding:21px;min-height:165px;transition:transform .2s,box-shadow .2s,border-color .2s}.tool-card:hover{transform:translateY(-3px);border-color:#efb183;box-shadow:0 12px 28px #b5661712}.tool-card-icon{height:38px;width:38px;border-radius:11px;background:#fff4e7;color:#cc773e;display:flex;align-items:center;justify-content:center;margin-bottom:16px}.tool-card-icon svg{height:21px;width:21px}.tool-card:nth-child(2) .tool-card-icon{background:#edf5f0;color:#63917b}.tool-card:nth-child(3) .tool-card-icon{background:#f0f0fa;color:#8c83b6}.tool-card h3{font-size:16px;letter-spacing:-.5px;margin:0 0 6px;font-weight:700}.tool-card p{font-size:12px;line-height:1.8;color:#958b82;margin:0;word-break:keep-all}.tool-tag{position:absolute;right:16px;top:23px;font-size:10px;font-weight:600;color:#ab967f;background:#faf5ef;border-radius:5px;padding:2px 6px}.bottom-note{margin-top:26px;background:#faf8f5;border-radius:12px;display:flex;align-items:center;gap:12px;padding:16px 19px}.note-icon{font-size:16px;color:#b89b7d;background:#f0e9df;border-radius:50%;width:28px;height:28px;display:flex;align-items:center;justify-content:center}.bottom-note p{margin:0;font-size:12px;color:#8f8376;display:flex;gap:12px;align-items:center}.bottom-note strong{color:#786a5e;font-weight:600}.note-word{margin-left:auto;font-size:10px;font-weight:800;letter-spacing:1px;color:#b9aa9a}footer{max-width:1124px;padding:29px 0 32px;margin:0 auto;display:flex;align-items:center;gap:22px;color:#a5998d;font-size:11px}.footer-brand{font-size:15px;font-weight:800;color:#8f8174;display:flex;align-items:center;gap:9px}.footer-brand span{font-size:9px;letter-spacing:.5px;font-weight:600;color:#b6a89a}footer p{margin:0}footer>span{margin-left:0}.footer-links{margin-left:auto;display:flex;flex-wrap:wrap;gap:4px 14px;font-size:12px}.footer-links a:hover{text-decoration:underline}dialog{padding:0;border:1px solid #eee3d8;border-radius:26px;width:min(520px,calc(100% - 32px));max-height:90dvh;color:var(--ink);box-shadow:0 24px 100px #34230d30;overscroll-behavior:contain}dialog::backdrop{background:#31221960;backdrop-filter:blur(5px)}.dialog-header{position:sticky;top:0;background:#fffcf9f5;z-index:2;border-bottom:1px solid var(--line);padding:14px 24px;display:flex;align-items:center;justify-content:space-between}.dialog-category{font-size:13px;color:#a15e36}.icon-button{border:0;background:#f5eee7;border-radius:50%;height:36px;width:36px;font-size:16px}.dialog-body{padding:26px}.dialog-icon{color:var(--orange);background:#fff0e1;width:46px;height:46px;display:flex;align-items:center;justify-content:center;border-radius:13px}.dialog-body h2{font-size:25px;margin:12px 0 5px;letter-spacing:-1px}.dialog-body>p{font-size:14px;color:#87796e;margin:0 0 22px}.field{display:block;margin:17px 0}.field>span{font-size:14px;display:block;font-weight:600;margin-bottom:7px}.field-input{display:flex;align-items:center;border:1px solid #e7ded5;border-radius:11px;overflow:hidden;background:#fff}.field-input:focus-within{border-color:var(--orange);box-shadow:0 0 0 3px #f9782515}.field input,.field select{border:0;width:100%;min-width:0;padding:13px;background:none;color:var(--ink);outline:0!important;font-size:16px}.field-input>span{color:#978778;font-size:14px;padding-right:15px;white-space:nowrap}.submit{width:100%;border:0;border-radius:12px;background:linear-gradient(110deg,#ff9235,#ec621b);padding:14px;color:#fff;font-weight:700;margin-top:9px;box-shadow:0 5px 12px #ef711a20}.form-error{font-size:13px;color:#bd361d;margin:0}.result-box{margin-top:23px;background:#fff2e4;border:1px solid #ffd8b0;border-radius:15px;padding:22px}.result-box>span{font-size:13px;color:#a86734}.result-box strong{display:block;color:#c45113;font-size:28px;line-height:1.6;overflow-wrap:anywhere;margin-top:6px;letter-spacing:-.5px}.result-box p{font-size:13px;color:#93724e;margin:7px 0 0;white-space:pre-line}.dialog-body p.tool-note{font-size:12px;color:#a09386;line-height:1.8;margin:18px 0 0}body.dialog-open{overflow:hidden}[hidden]{display:none!important}@media(min-width:1500px){main{padding-top:10px}.intro{min-height:260px}}@media(max-width:900px){.header-note{display:none}.header nav{gap:25px}.intro-brand{width:185px}.brand-bubble{left:-30px;white-space:nowrap}.bottom-note p{display:block}.bottom-note p span{display:block;margin-top:3px}.note-word{display:none}footer{margin:0 28px}.footer-brand span{display:none}.tool-card{padding:17px}.tool-tag{right:12px}.tool-card h3{font-size:15px}}@media(max-width:640px){.header{height:68px}.header-inner{padding:0 20px}.brand{font-size:22px}.brand img{width:34px;height:34px;border-radius:10px}.header nav{display:none}.header-note{display:block;font-size:11px}main{padding:0 18px}.intro{min-height:203px;padding:26px 3px 24px;position:relative;align-items:center}.eyebrow{font-size:9px;letter-spacing:1.65px}h1{font-size:30px;line-height:1.4;letter-spacing:-1.4px;margin-top:9px;margin-bottom:9px}.mobile-break{display:block}.intro p{font-size:12px;max-width:270px;line-height:1.8}.intro-brand{position:absolute;right:3px;top:35px;width:90px;height:106px;z-index:-1;opacity:.98}.intro-brand img{width:70px;height:70px;border-radius:20px;box-shadow:0 10px 22px #ec762525}.brand-bubble{display:none}.section-line h2{font-size:15px;gap:8px}.small-text{font-size:10px}.step{width:23px;height:23px;font-size:11px;border-radius:7px}.type-grid{grid-template-columns:repeat(2,1fr);gap:10px;margin-bottom:23px}.type-card{border-radius:17px;padding:16px;min-height:130px}.type-card .type-icon{height:33px;width:33px;border-radius:10px;margin-bottom:10px}.type-icon svg{height:20px;width:20px}.type-card .type-name{font-size:19px}.type-card .type-sub{font-size:11px;margin-top:3px}.type-count{top:16px;right:15px;font-size:11px}.workspace{margin:0 -18px;border-radius:24px 24px 0 0;border-left:0;border-right:0;padding:24px 18px 22px}.field-heading .small-text{display:none}.category-grid{grid-template-columns:repeat(2,1fr);gap:8px;padding-bottom:23px}.category{min-height:49px;font-size:14px;gap:9px;border-radius:11px}.category svg{width:19px;height:19px}.category .category-count{font-size:10px}.results-heading{padding:23px 1px 16px}.section-kicker{font-size:9px;letter-spacing:1.4px}.results-heading h2{font-size:21px}.results-heading p{font-size:12px;line-height:1.8}.collection-label{display:none}.tool-grid{grid-template-columns:1fr;gap:10px}.tool-card{min-height:96px;padding:18px 38px 18px 72px;display:flex;flex-direction:column;justify-content:center;border-radius:14px}.tool-card-icon{position:absolute;left:17px;top:50%;transform:translateY(-50%);height:40px;width:40px;margin:0}.tool-card h3{font-size:16px;margin-bottom:3px}.tool-card p{font-size:12px;line-height:1.7;max-width:260px}.tool-tag{display:none}.bottom-note{padding:15px 13px;gap:10px;margin-top:20px;border-radius:11px}.bottom-note p{font-size:11px}.bottom-note p span{font-size:10px}.note-icon{flex-shrink:0;width:25px;height:25px;font-size:14px}footer{padding:23px 0;margin:0 20px;gap:8px;flex-wrap:wrap;line-height:1.8}.footer-brand{font-size:14px}footer p{font-size:10px;flex-basis:100%;order:3}footer>span{font-size:10px;margin-left:auto}.footer-links{margin-left:0;flex-basis:100%;order:2;font-size:12px}dialog{width:100%;max-width:none;max-height:93dvh;margin:auto 0 0;border-radius:24px 24px 0 0;border-bottom:0}.dialog-body{padding:23px 22px 30px}.dialog-header{padding:12px 22px}.result-box strong{font-size:26px}}@media(max-width:360px){h1{font-size:27px}.intro-brand{right:0;width:64px}.intro-brand img{width:54px;height:54px}.header-note{display:none}.small-text{display:none}.tool-card{padding-right:16px}.tool-card p{font-size:11px}}@media(prefers-reduced-motion:reduce){*{transition:none!important;scroll-behavior:auto!important}}

/* Readable Korean labels across compact layouts. */
.type-card .type-sub,.results-heading p,.tool-card p{font-size:14px}.type-card .type-sub{line-height:1.65}.tool-card{min-height:178px}.section-kicker,.eyebrow{font-size:12px}.type-count,.type-tag,.tool-tag,.category .category-count,.collection-label,.small-text{font-size:12px}.intro p{font-size:16px}.header-note{font-size:14px}.bottom-note p{font-size:13px}.field input[type=time]{min-height:51px}@media(max-width:640px){.header-note{font-size:12px}.intro p{font-size:14px;max-width:275px}.type-card{min-height:141px}.type-card .type-sub{font-size:13px}.tool-card{min-height:108px}.tool-card p{font-size:14px}.results-heading p{font-size:14px}.section-kicker,.eyebrow{font-size:11px}.bottom-note p{font-size:12px}.bottom-note p span{font-size:12px}.small-text{font-size:12px}.intro-brand{z-index:0;pointer-events:none}.intro>div:first-child{position:relative;z-index:1}}

/* ═══════════════════════════════════════════════════════════════
   여기부터 추가분 — 위쪽은 팀장님 시안(2026-10-05)의 CSS 그대로다.
   글꼴은 base.html 의 <link> 로 부른다(같은 글꼴 · 같은 굵기).
   ═══════════════════════════════════════════════════════════════ */

/* 상단 메뉴: 홈에서는 그 자리에서 종류가 바뀌고, 다른 페이지에서는 홈으로 가는 링크다 */
.header nav a{display:flex;align-items:center;font-size:15px;color:#77716a;position:relative;padding:0 3px;font-weight:600}
.header nav a.active,
body:has(.tool-page[data-type="calculator"]) #top-nav a[data-type="calculator"],
body:has(.tool-page[data-type="check"]) #top-nav a[data-type="check"],
body:has(.tool-page[data-type="convert"]) #top-nav a[data-type="convert"],
body:has(.tool-page[data-type="generate"]) #top-nav a[data-type="generate"]{color:var(--orange);font-weight:800}
.header nav a.active:after,
body:has(.tool-page[data-type="calculator"]) #top-nav a[data-type="calculator"]:after,
body:has(.tool-page[data-type="check"]) #top-nav a[data-type="check"]:after,
body:has(.tool-page[data-type="convert"]) #top-nav a[data-type="convert"]:after,
body:has(.tool-page[data-type="generate"]) #top-nav a[data-type="generate"]:after{content:'';position:absolute;bottom:0;height:3px;left:0;right:0;background:var(--orange);border-radius:3px 3px 0 0}

/* 도구 페이지 — 시안의 팝업 안 모양을 페이지에 펼친다 */
.tool-page{max-width:760px;margin:0 auto;padding:26px 0 8px;word-break:keep-all;overflow-wrap:break-word}
.crumb{font-size:13px;color:#a15e36;margin:0 4px 14px}
.crumb a:hover{text-decoration:underline}
.tool-panel{background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:30px 32px 28px}
.tool-panel h1{font-size:27px;margin:12px 0 5px;letter-spacing:-1.1px;line-height:1.4;font-weight:800}
.tool-panel .tool-lead{font-size:15px;color:#87796e;margin:0 0 22px}
.tool-panel p.tool-note{font-size:12px;color:#a09386;line-height:1.8;margin:18px 0 0}
.tool-text{margin-top:16px;background:#fff;border:1px solid var(--line);border-radius:24px;box-shadow:var(--shadow);padding:8px 32px 28px}
.tool-text h1{font-size:27px;margin:24px 0 6px;letter-spacing:-1.1px;line-height:1.4;font-weight:800}
.tool-text h2{font-size:19px;letter-spacing:-.6px;margin:26px 0 8px;font-weight:700}
.tool-text p,.tool-text li{font-size:15.5px;line-height:1.85;color:#4f463f;margin:8px 0}
.tool-text ul,.tool-text ol{padding-left:20px;margin:8px 0}
.tool-text strong{color:var(--ink)}
.tool-text a{color:var(--orange-dark);text-decoration:underline;text-decoration-color:#f2a876;text-underline-offset:3px}
.tool-text .lead{font-size:17px;font-weight:700;color:var(--ink)}
.tool-text .btn-home{display:inline-block;margin-top:8px;padding:12px 22px;border-radius:12px;background:linear-gradient(110deg,#ff9235,#ec621b);color:#fff;font-weight:700;text-decoration:none;box-shadow:0 5px 12px #ef711a20}
.formula{background:#fff4e9;border-radius:12px;padding:13px 16px;margin:10px 0;font-size:15px;font-weight:600;color:#8a4a17;line-height:1.9}
/* 도구 카드가 버튼에서 링크로 바뀌어도 시안과 같은 자리에 글자가 놓이게 한다 (버튼은 내용을 세로 가운데에 둔다) */
a.tool-card{display:flex;flex-direction:column;justify-content:center}
.tool-more{margin-top:28px}
.tool-more .section-line{margin:0 4px 13px}
.tool-more .tool-grid{grid-template-columns:repeat(2,1fr)}
.tool-more .tool-card{min-height:0}
@media(max-width:640px){
  .tool-page{padding-top:18px}
  .tool-panel,.tool-text{margin-left:-18px;margin-right:-18px;border-left:0;border-right:0;border-radius:24px;padding-left:20px;padding-right:20px}
  .tool-panel{padding-top:24px}
  .tool-panel h1,.tool-text h1{font-size:24px}
  .tool-more .tool-grid{grid-template-columns:1fr}
}

/* ── 4대보험 판별기처럼 「고르는 질문」을 쓰는 도구 (클래스 이름은 CM-2 그대로) ── */
/* 도구 공통 스타일 — 질문(고르기) · 입력칸 · 버튼 · 결과 상자
   클래스 이름은 CM-2 그대로다. 모양만 시안(2026-10-05)에 맞췄다.
   고르기는 큰 버튼처럼(터치 48px 이상) · 선택하면 살구색 바탕 + 주황 테두리 */

.tool { margin: 20px 0 0; }

/* ── 질문 한 묶음 (판별기) ── */
.tool-q { border: 0; padding: 0; margin: 22px 0 0; min-width: 0; }
.tool-q[hidden] { display: none; }
.tool-q legend { padding: 0; margin-bottom: 9px; font-size: 15px; font-weight: 700; color: #29241F; }

.tool-opts { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tool-opt { position: relative; display: block; cursor: pointer; }
.tool-opt input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.tool-opt span {
  display: flex; align-items: center; min-height: 52px; padding: 10px 16px;
  background: #fff; border: 1px solid #E7DED5; border-radius: 13px;
  font-size: 15.5px; font-weight: 600; line-height: 1.45; color: #29241F;
  transition: background .15s, border-color .15s, color .15s;
}
.tool-opt:hover span { background: #FFF9F2; }
.tool-opt input:checked + span {
  background: #FFF4E9; border-color: #F2A876; color: #B8470B;
  box-shadow: inset 0 0 0 .5px #F2A876;
}
.tool-opt input:focus-visible + span { outline: 3px solid #EB773B; outline-offset: 3px; }

/* ── 입력칸 (계산기 · 변환기) ── */
.tool-field { display: block; margin: 17px 0; }
.tool-field > span { display: block; margin-bottom: 7px; font-size: 14px; font-weight: 600; color: #29241F; }
.tool-input {
  display: flex; align-items: center; overflow: hidden;
  background: #fff; border: 1px solid #E7DED5; border-radius: 11px;
}
.tool-input:focus-within { border-color: #EF6320; box-shadow: 0 0 0 3px #f9782515; }
.tool-input input, .tool-input select {
  width: 100%; min-width: 0; padding: 13px; border: 0; background: none; outline: 0 !important;
  font: inherit; font-size: 16px; color: #29241F;
}
.tool-input > span { padding-right: 15px; font-size: 14px; color: #978778; white-space: nowrap; }
.tool-error { margin: 0; font-size: 13px; color: #BD361D; }

/* ── 버튼 ── */
.tool-btn {
  display: block; width: 100%; min-height: 52px; margin-top: 24px; padding: 14px 18px;
  border: 0; border-radius: 12px; cursor: pointer;
  background: linear-gradient(110deg, #FF9235, #EC621B); box-shadow: 0 5px 12px #ef711a20;
  font: inherit; font-size: 16px; font-weight: 700; color: #fff;
}
.tool-btn:hover, .tool-btn:focus { filter: brightness(1.04); }
.tool-btn:disabled { background: #E9E2DA; box-shadow: none; color: #fff; cursor: not-allowed; filter: none; }

/* ── 결과 상자 (살구색) ── */
.tool-result {
  margin-top: 23px; padding: 20px;
  background: #FFF2E4; border: 1px solid #FFD8B0; border-radius: 15px;
}
.tool-result:empty { display: none; }
.tool-panel .tool-result h2 { margin: 0 0 4px; font-size: 13px; font-weight: 600; letter-spacing: 0; color: #A86734; }
.tool-result .tool-value { display: block; margin-top: 6px; font-size: 28px; font-weight: 800; line-height: 1.6; letter-spacing: -.5px; color: #C45113; overflow-wrap: anywhere; }
.tool-detail { margin: 7px 0 0; font-size: 13px; color: #93724E; white-space: pre-line; }

/* 판정 줄 — 보험·항목 하나에 한 줄 */
.tool-row { margin-top: 8px; padding: 14px 16px; background: #fff; border: 1px solid #F8E3CD; border-radius: 12px; }
.tool-row-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.tool-row-name { font-size: 17px; font-weight: 800; color: #29241F; }
.tool-row p { margin: 6px 0 0; font-size: 15px; line-height: 1.65; color: #5F564E; }
.tool-result .tool-note { font-size: 13.5px; color: #93724E; }
.tool-result > .tool-note { margin: 4px 2px 10px; }
.tool-foot { margin: 12px 2px 0; font-size: 15px; font-weight: 700; color: #8A4A17; }

/* 판정 표시: 대상 초록 / 조건부 노랑 / 제외 회색 — 글자(○ △ ✕)가 항상 같이 나온다 */
.mark { padding: 4px 12px; border-radius: 99px; font-size: 13.5px; font-weight: 800; white-space: nowrap; }
.mark-o { background: #E6F4EC; color: #1B7447; }
.mark-t { background: #FFF0BF; color: #7A5200; }
.mark-x { background: #F1EEEA; color: #6F6861; }

/* ── 기준일·근거 ── */
.tool-text p.tool-basis {
  margin: 8px 0; padding: 14px 17px; background: #FAF8F5; border-radius: 12px;
  font-size: 13.5px; line-height: 1.75; color: #7A7068;
}

@media (min-width: 600px) {
  .tool-opts { grid-template-columns: repeat(2, 1fr); }
}

/* ── 마진 계산기 「자세히 계산」 (CM-5) — 색은 위에서 쓰는 값만 쓴다 ── */
.more-toggle{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:2px 12px;width:100%;margin:2px 0 4px;padding:12px 15px;border:1px dashed #f2a876;border-radius:11px;background:#fff9f2;font-size:14px;font-weight:700;color:#b8470b;text-align:left}
.more-toggle[aria-expanded="true"]{border-style:solid;background:#fff4e9}
.more-toggle small{font-size:12px;font-weight:500;color:#a86734}
.field-hint{display:block;margin-top:6px;font-size:12px;line-height:1.6;color:#a09386}
.calc-rows{margin-top:14px;padding-top:10px;border-top:1px solid #ffd8b0}
.calc-row{display:flex;align-items:baseline;justify-content:space-between;gap:12px;padding:5px 0;font-size:14px;color:#93724e}
.calc-label{min-width:0;overflow-wrap:anywhere}
.calc-sign{display:inline-block;width:16px;font-style:normal;color:#a86734}
.calc-value{white-space:nowrap;font-weight:600;color:#4f463f}
.calc-row.is-total{margin-top:6px;padding-top:11px;border-top:1px solid #ffd8b0;font-weight:800;color:#c45113}
.calc-row.is-total .calc-value,.calc-row.is-total .calc-sign{font-weight:800;color:#c45113}
.calc-row.is-extra.is-first{margin-top:12px;padding-top:12px;border-top:1px dashed #ffd8b0}
.calc-note{margin:-2px 0 4px;font-size:12px;line-height:1.6;color:#a86734}

.calc-tabs{margin-bottom:6px}
.calc-tabs .category{width:100%}

/* ── 고르기 칸 — 브라우저 기본 목록 대신 쓰는 목록 ── */
.pick{position:relative}
.pick-btn{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;min-width:0;padding:13px;border:0;background:none;color:var(--ink);font-size:16px;text-align:left;outline:0!important}
.pick-text{min-width:0;overflow-wrap:anywhere}
.pick-arrow{flex-shrink:0;width:18px;height:18px;color:#978778;transition:transform .15s}
.pick.is-open .pick-arrow{transform:rotate(180deg)}
.pick.is-open .field-input{border-color:var(--orange);box-shadow:0 0 0 3px #f9782515}
.pick-list{position:absolute;z-index:5;left:0;right:0;top:calc(100% + 6px);margin:0;padding:6px;list-style:none;background:#fff;border:1px solid #e7ded5;border-radius:13px;box-shadow:0 14px 34px #34230d1f;max-height:300px;overflow-y:auto}
.pick-opt{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:44px;padding:9px 12px;border-radius:9px;font-size:15px;line-height:1.45;color:var(--ink);cursor:pointer}
.pick-opt span{min-width:0;overflow-wrap:anywhere}
.pick-opt.is-active{background:#fff9f2}
.pick-opt[aria-selected="true"]{background:#fff4e9;color:#b8470b;font-weight:700}
.pick-check{flex-shrink:0;width:18px;height:18px;color:var(--orange);visibility:hidden}
.pick-opt[aria-selected="true"] .pick-check{visibility:visible}

/* 연봉 실수령액 표 (CM-7) */
.salary-table-scroll{margin-top:10px;max-height:520px;overflow-y:auto;border:1px solid var(--line);border-radius:12px;background:#fff}
.salary-table{border-collapse:collapse;width:100%;font-size:14px;font-variant-numeric:tabular-nums}
.salary-table th,.salary-table td{padding:9px 12px;text-align:right;border-bottom:1px solid var(--line);white-space:nowrap}
.salary-table thead th{position:sticky;top:0;background:#fff7f2;color:#7a4a2a;font-weight:700;z-index:1}
.salary-table tbody th{font-weight:600;text-align:left;color:#3d342d}
.salary-table td:last-child{font-weight:700;color:#d14f14}
.salary-table tbody tr:nth-child(10n){background:#fffaf6}
@media(max-width:640px){.salary-table{font-size:13px}.salary-table th,.salary-table td{padding:8px 7px}.salary-table .col-gross{display:none}}
