/* ==========================================================================
   ToolingBlog v4 — 디자인 레이어
   main.css(레거시) 위에 얹는다. 새 마크업은 tb- 접두사, 계산 엔진이 쓰는
   tf- 기능 클래스는 이름을 유지하고 모양만 여기서 다시 입힌다.
   레거시가 !important 를 남발하므로 .tb4(body) 범위로 특이도를 올려 이긴다.
   ========================================================================== */

:root {
  --tb-bg: #F6F6F2;
  --tb-bg-2: #F3F3EF;
  --tb-card: #FFFFFF;
  --tb-thumb: #EDEDE8;
  --tb-ink: #121212;
  --tb-ink-2: #3D3D3D;
  --tb-ink-3: #5C5C5C;
  --tb-ink-4: #8A8A85;
  --tb-ink-5: #B0B0AA;
  --tb-line: #EEEEE9;
  --tb-line-2: #E6E6E1;
  --tb-line-3: #DADAD4;
  --tb-line-soft: #F0F0EC;
  --tb-accent: #4C3DF2;
  --tb-accent-ink: #3A2BD8;
  --tb-accent-bg: #EEEBFF;
  --tb-accent-soft: #8C80FF;
  --tb-accent-lt: #B3AAFF;
  --tb-accent-pale: #E4E1FF;
  --tb-red: #C62F2F;
  --tb-red-bg: #FDEEEE;
  --tb-amber: #7A5000;
  --tb-amber-bg: #FFF4DB;
  --tb-pad: clamp(16px, 5.5vw, 80px);
  --tb-shadow: 0 30px 60px -30px rgba(18, 18, 18, .25);
  --tb-ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- 0. 바탕 ---------- */
html body.tb4 {
  margin: 0 !important;
  padding: 0 !important;
  background: var(--tb-bg) !important;
  color: var(--tb-ink);
  font-family: 'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Noto Sans KR', sans-serif !important;
  font-feature-settings: 'tnum';
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
.tb4 *, .tb4 *::before, .tb4 *::after { box-sizing: border-box; }
.tb4 a { color: inherit; text-decoration: none; }
:where(.tb4) button, :where(.tb4) input, :where(.tb4) select, :where(.tb4) textarea { font-family: inherit; color: inherit; }
.tb4 :focus-visible { outline: 3px solid var(--tb-accent-soft); outline-offset: 2px; border-radius: 10px; }
.tb4 ::selection { background: var(--tb-accent-bg); color: var(--tb-ink); }
.tb4 svg { flex: none; }
.tb-wrap { max-width: 1440px; margin: 0 auto; padding-left: var(--tb-pad); padding-right: var(--tb-pad); }
.tb-sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.tb-main { display: block; min-height: 60vh; }

/* 레거시 셸 은닉 */
.tb4 .floating-scroll-top-btn, .tb4 #floating-share-toast { display: none !important; }

/* ---------- 1. 데스크톱 헤더 ---------- */
.tb-header { position: sticky; top: 0; z-index: 50; background: rgba(246, 246, 242, .92); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); }
.tb-header-in { height: 80px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.tb-logo { display: inline-flex; align-items: center; height: 44px; cursor: pointer; }
.tb-logo img { height: 32px; width: auto; display: block; }
.tb-nav { display: flex; gap: 6px; font-size: 16px; font-weight: 600; }
.tb-nav a { padding: 10px 16px; border-radius: 999px; transition: background .2s; white-space: nowrap; }
.tb-nav a:hover { background: rgba(255, 255, 255, .7); color: var(--tb-ink); }
.tb-nav a.is-on { background: #fff; }
.tb-search-pill { display: flex; align-items: center; gap: 10px; width: 300px; height: 46px; padding: 0 8px 0 18px; background: #fff; border: 0; border-radius: 999px; font-size: 15px; color: var(--tb-ink-3); cursor: text; text-align: left; transition: box-shadow .2s; }
.tb-search-pill:hover { box-shadow: 0 0 0 2px var(--tb-line-3); }
.tb-search-pill span:first-of-type { flex: 1; }
.tb-kbd { font-size: 12px; font-weight: 700; background: var(--tb-bg); padding: 6px 10px; border-radius: 999px; color: var(--tb-ink); white-space: nowrap; }

/* ---------- 2. 모바일 헤더 · 하단 탭 ---------- */
.tb-mhead, .tb-tabbar, .tb-mbar { display: none; }

/* ---------- 3. 홈 · 상황별 히어로 ---------- */
.tb-hero { display: grid; grid-template-columns: minmax(0, 1fr) 500px; gap: 64px; align-items: center; padding-top: 64px; padding-bottom: 72px; }
.tb-hero-left { display: flex; flex-direction: column; gap: 30px; min-width: 0; }
.tb4 .tb-hero h1.wix-hero-h1, .tb4 .tb-hero div.wix-hero-h1 { margin: 0; font-size: 16px; font-weight: 600; line-height: 1.5; letter-spacing: 0; color: var(--tb-ink-3); }
.tb-say { display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.tb-say-now { font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; }
.tb-say-chip { display: inline-block; background: var(--tb-accent); color: #fff; border-radius: 26px; padding: 6px 28px 12px; font-size: 72px; font-weight: 800; letter-spacing: -.05em; line-height: 1.15; max-width: 100%; }
.tb-say-hook { margin: 0; font-size: 24px; font-weight: 600; line-height: 1.55; letter-spacing: -.02em; color: var(--tb-ink-2); max-width: 580px; min-height: 74px; text-wrap: pretty; }
.tb-sit-pillrow { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.tb-sit-pills { display: flex; gap: 8px; flex-wrap: nowrap; flex: 1; min-width: 0; overflow-x: auto; scrollbar-width: none; scroll-snap-type: x proximity; padding-bottom: 2px; }
.tb-sit-pills::-webkit-scrollbar { display: none; }
.tb-sit-pills.is-open { flex-wrap: wrap; overflow: visible; }
/* 한 줄일 때: 오른쪽에 더 있다는 걸 흐림으로 보여 주고(끝까지 넘기면 해제), 마우스로 끌어 넘길 때 글자가 선택되지 않게 */
.tb-sit-pills { -webkit-user-select: none; user-select: none; }
.tb-sit-pills:not(.is-open):not(.is-end) { -webkit-mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); mask-image: linear-gradient(to right, #000 calc(100% - 56px), transparent); }
@media (pointer: fine) { .tb-sit-pills:not(.is-open) { cursor: grab; } }
.tb-sit-pills.is-drag { cursor: grabbing; scroll-snap-type: none; }
.tb-sit-pills.is-drag .tb-sit-pill { pointer-events: none; }
.tb-sit-more { flex: none; display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 14px 0 18px; border-radius: 999px; border: 1px solid var(--tb-ink); background: #fff; font-size: 14px; font-weight: 700; color: var(--tb-ink); cursor: pointer; white-space: nowrap; transition: background .15s, color .15s; }
.tb-sit-more-n { min-width: 22px; height: 22px; padding: 0 6px; border-radius: 999px; background: var(--tb-bg-2); color: var(--tb-ink-3); font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.tb-sit-more::after { content: ''; width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); }
.tb-sit-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.tb-sit-more:hover { background: var(--tb-ink); color: #fff; }
.tb-sit-more:hover .tb-sit-more-n { background: rgba(255, 255, 255, .16); color: #fff; }
.tb-sit-pill { position: relative; overflow: hidden; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--tb-line-3); background: transparent; font-size: 15px; font-weight: 600; color: var(--tb-ink-2); cursor: pointer; transition: background .2s, color .2s; }
.tb-sit-pill { flex: none; scroll-snap-align: start; white-space: nowrap; }
.tb-sit-pill:hover { background: rgba(255, 255, 255, .7); }
.tb-sit-pill.is-on { background: var(--tb-ink); border-color: var(--tb-ink); color: #fff; font-weight: 700; }
.tb-sit-pill > i { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--tb-accent-soft); }
.tb-sit-pill.is-on.is-run > i { animation: tbProg var(--tb-sit-ms, 7000ms) linear forwards; }
.tb-sit-segs { display: none; }
@keyframes tbProg { from { width: 0 } to { width: 100% } }

.tb-feat { background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; box-shadow: var(--tb-shadow); transition: transform .3s var(--tb-ease); }
.tb-feat:hover { transform: translateY(-4px); }
.tb-feat-img { position: relative; aspect-ratio: 4 / 3; background: var(--tb-thumb); overflow: hidden; }
.tb-feat-img img, .tb-card-img img, .tb-tool-thumb img, .tb-guide-img img, .tb-rel-img img, .tb-pal-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-feat-img picture, .tb-card-img picture, .tb-tool-thumb picture, .tb-guide-img picture { display: block; width: 100%; height: 100%; }
.tb-feat-badge { position: absolute; top: 18px; left: 18px; background: #fff; font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 999px; }
.tb-feat-body { padding: 24px 28px 28px; display: flex; flex-direction: column; gap: 8px; }
.tb-meta { font-size: 13px; font-weight: 600; color: var(--tb-ink-3); }
.tb-feat-name { font-size: 26px; font-weight: 800; letter-spacing: -.04em; line-height: 1.3; }
.tb-feat-desc { font-size: 16px; line-height: 1.6; color: var(--tb-ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-feat-foot { display: flex; justify-content: space-between; align-items: center; padding-top: 12px; }
.tb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border-radius: 999px; border: 0; background: var(--tb-accent); color: #fff !important; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; transition: filter .15s; }
.tb-btn:hover { filter: brightness(1.08); }
.tb-btn-dark { background: var(--tb-ink); }
.tb-btn-ghost { background: transparent; border: 1.5px solid var(--tb-ink-2); color: #fff !important; }
.tb-feat-pos { font-size: 14px; font-weight: 700; color: var(--tb-ink-4); }

.tb-sit-row { padding-bottom: 88px; display: flex; flex-direction: column; gap: 20px; }
.tb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.tb-head-t { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.tb-head a, .tb-head button.tb-link { font-size: 15px; font-weight: 700; background: none; border: 0; cursor: pointer; padding: 0; white-space: nowrap; }
.tb-head a:hover, .tb-head button.tb-link:hover { color: var(--tb-accent); }
.tb-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tb-card { background: #fff; border-radius: 28px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--tb-ease), box-shadow .3s; }
.tb-card:hover { transform: translateY(-4px); box-shadow: 0 24px 48px -24px rgba(18, 18, 18, .28); }
.tb-card-img { aspect-ratio: 4 / 3; background: var(--tb-thumb); overflow: hidden; }
.tb-card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.tb-card-name { font-size: 21px; font-weight: 800; letter-spacing: -.035em; line-height: 1.35; margin: 0; }
.tb-card-desc { font-size: 15px; line-height: 1.6; color: var(--tb-ink-3); text-wrap: pretty; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- 4. 도구함 ---------- */
.tb-box-wrap { padding-bottom: 0; }
.tb-box { background: #fff; border-radius: 40px; padding: 48px; display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 56px; scroll-margin-top: 96px; }
.tb-box-side { display: flex; flex-direction: column; gap: 22px; }
.tb-box-count { display: flex; flex-direction: column; gap: 4px; }
.tb-box-count > span { font-size: 16px; font-weight: 700; color: var(--tb-ink-3); }
.tb-box-count > strong { font-size: 64px; font-weight: 800; letter-spacing: -.05em; line-height: 1; }
.tb-box-count small { font-size: 24px; margin-left: 4px; font-weight: 800; }
.tb4 #cat-tabs-wrap { display: flex; flex-direction: column; gap: 2px; margin: 0; padding: 0; overflow: visible; border: 0; background: none; }
.tb4 #cat-tabs-wrap .wix-cat-link { display: flex !important; justify-content: space-between; align-items: center; width: 100%; height: 46px; min-height: 46px; padding: 0 16px !important; margin: 0 !important; border: 0 !important; border-radius: 14px !important; background: transparent !important; color: var(--tb-ink) !important; font-size: 16px !important; font-weight: 600 !important; letter-spacing: 0 !important; cursor: pointer; text-align: left; box-shadow: none !important; transition: background .15s; }
.tb4 #cat-tabs-wrap .wix-cat-link:hover { background: var(--tb-bg) !important; }
.tb4 #cat-tabs-wrap .wix-cat-link .cat-count { color: var(--tb-ink-4); font-weight: 600; font-size: 15px; margin: 0; background: none; padding: 0; }
.tb4 #cat-tabs-wrap .wix-cat-link.active { background: var(--tb-ink) !important; color: #fff !important; font-weight: 700 !important; }
.tb4 #cat-tabs-wrap .wix-cat-link.active .cat-count { color: var(--tb-accent-lt); }
.tb4 #cat-tabs-wrap .wix-cat-link::after, .tb4 #cat-tabs-wrap .wix-cat-link::before { display: none !important; }

.tb-box-main { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.tb-box-search { display: flex; align-items: center; gap: 14px; height: 72px; padding: 0 24px; background: var(--tb-bg); border-radius: 22px; }
.tb-box-search input { flex: 1; min-width: 0; border: 0 !important; outline: 0; background: transparent !important; font-size: 20px; font-weight: 600; padding: 0 !important; height: 100%; width: auto !important; box-shadow: none !important; }
.tb-box-search input::placeholder { color: var(--tb-ink-4); font-weight: 500; }
.tb-box-result { font-size: 14px; color: var(--tb-ink-3); white-space: nowrap; }

.tb4 #saas-catalog-grid.wix-magazine-grid { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important; gap: 0 32px !important; margin: 0 !important; padding: 0 !important; }
.tb-tool { display: grid !important; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 16px 4px; border-bottom: 1px solid var(--tb-line); border-radius: 0; transition: background .15s; min-width: 0; }
.tb-tool:hover { background: #FAFAF7; }
.tb-tool-thumb { width: 48px; height: 48px; border-radius: 14px; overflow: hidden; background: var(--tb-thumb); position: relative; }
.tb-tool-body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb4 .tb-tool-name { margin: 0; font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; color: var(--tb-ink); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-tool-desc { font-size: 14px; color: var(--tb-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.45; }
.tb-tool-cat { font-size: 13px; font-weight: 600; color: var(--tb-ink-3); white-space: nowrap; }
.tb-tool-loc { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; }
.tb-tool.is-review .tb-tool-cat { color: var(--tb-accent-ink); }
.tb4 .desktop-section-header, .tb4 .tb-feed-head { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; margin: 28px 0 4px !important; padding: 0 0 12px !important; border: 0 !important; border-bottom: 1px solid var(--tb-line) !important; font-size: 17px; font-weight: 800; letter-spacing: -.02em; }
.tb4 .tb-feed-head:first-child { margin-top: 0 !important; }
.tb4 .tb-feed-head.is-tools { display: none !important; }
.tb4 #country-city-filter-bar { display: flex; gap: 6px; flex-wrap: wrap; }
.tb4 #country-city-filter-bar .review-country-btn { height: 34px; min-height: 34px; padding: 0 12px !important; border-radius: 999px !important; border: 1px solid var(--tb-line-3) !important; background: #fff !important; color: var(--tb-ink-2) !important; font-size: 13px !important; font-weight: 600 !important; box-shadow: none !important; }
.tb4 #country-city-filter-bar .review-country-btn.active { background: var(--tb-ink) !important; border-color: var(--tb-ink) !important; color: #fff !important; }
.tb4 .feed-more-wrap { grid-column: 1 / -1; margin: 20px 0 0 !important; display: flex; justify-content: center; }
.tb4 .feed-more-btn { width: 100%; height: 52px; min-height: 52px; border-radius: 16px; border: 1px solid var(--tb-line-2); background: #fff; color: var(--tb-ink); font-size: 16px; font-weight: 700; cursor: pointer; }
.tb4 .feed-more-btn:hover { background: var(--tb-bg); color: var(--tb-ink); border-color: var(--tb-line-3); }
.tb4 .feed-more-rest { color: var(--tb-ink-4); font-weight: 600; }
.tb-empty { grid-column: 1 / -1; background: var(--tb-bg); border-radius: 22px; padding: 32px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.tb-empty strong { font-size: 18px; font-weight: 700; }

/* ---------- 5. 가이드 ---------- */
.tb-guides { padding-top: 88px; padding-bottom: 96px; display: flex; flex-direction: column; gap: 24px; }
.tb-guides .tb-head-t { font-size: 36px; letter-spacing: -.04em; }
.tb-guide-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; }
.tb-guide-big { background: #fff; border-radius: 32px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--tb-ease); }
.tb-guide-big:hover, .tb-guide-sm:hover { transform: translateY(-3px); }
.tb-guide-big .tb-guide-img { height: 340px; }
.tb-guide-img { background: var(--tb-thumb); overflow: hidden; }
.tb-guide-big-body { padding: 28px 32px 32px; display: flex; flex-direction: column; gap: 10px; }
.tb-guide-meta { font-size: 14px; font-weight: 700; color: var(--tb-ink-3); }
.tb-guide-big-t { font-size: 28px; font-weight: 800; letter-spacing: -.04em; line-height: 1.35; margin: 0; }
.tb-guide-big-d { font-size: 16px; line-height: 1.65; color: var(--tb-ink-3); margin: 0; }
.tb-guide-col { display: flex; flex-direction: column; gap: 16px; }
.tb-guide-sm { flex: 1; background: #fff; border-radius: 28px; padding: 16px; display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: center; transition: transform .3s var(--tb-ease); }
.tb-guide-sm .tb-guide-img { height: 124px; border-radius: 18px; }
.tb-guide-sm-t { font-size: 19px; font-weight: 800; letter-spacing: -.03em; line-height: 1.4; margin: 6px 0 0; }

/* SEO 디렉터리 */
.tb-dir { margin-top: 0; padding-bottom: 96px; }
.tb-dir-in { background: #fff; border-radius: 32px; padding: 36px 40px; }
.tb-dir-head h2 { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 0; }
.tb-dir-head p { font-size: 15px; color: var(--tb-ink-3); margin: 6px 0 0; }
.tb-dir-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin-top: 24px; }
.tb-dir-group { background: var(--tb-bg); border-radius: 22px; padding: 20px 22px; }
.tb-dir-group h3 { font-size: 16px; font-weight: 800; margin: 0 0 12px; display: flex; justify-content: space-between; gap: 8px; }
.tb-dir-group h3 small { font-size: 13px; color: var(--tb-ink-4); font-weight: 700; }
.tb-dir-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-dir-links a { display: inline-flex; padding: 7px 12px; background: #fff; border-radius: 10px; font-size: 14px; font-weight: 600; line-height: 1.35; }
.tb-dir-links a:hover { color: var(--tb-accent-ink); }

/* ---------- 6. 푸터 ---------- */
.tb-footer { background: var(--tb-ink); color: #fff; margin-top: 0; }
.tb-footer-in { padding-top: 64px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 48px; }
.tb-footer-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 40px; flex-wrap: wrap; }
.tb-footer-brand { display: flex; flex-direction: column; gap: 16px; }
.tb-footer-brand img { height: 38px; width: auto; align-self: flex-start; }
.tb-footer-brand p { margin: 0; font-size: 16px; color: #A8A8A2; line-height: 1.6; }
.tb-footer-cols { display: flex; gap: 72px; font-size: 15px; }
.tb-footer-col { display: flex; flex-direction: column; gap: 12px; }
.tb-footer-col > span { color: var(--tb-ink-4); font-weight: 700; }
.tb-footer-col a, .tb-footer-col button { color: #fff; background: none; border: 0; padding: 0; font-size: 15px; cursor: pointer; text-align: left; }
.tb-footer-col a:hover, .tb-footer-col button:hover { color: var(--tb-accent-lt); }
.tb-footer-legal { font-size: 13px; color: var(--tb-ink-4); line-height: 1.7; border-top: 1px solid #2A2A2A; padding-top: 24px; margin: 0; }

/* ---------- 7. 도구 페이지 ---------- */
.tb-art { padding-bottom: 0; }
.tb-crumb { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 15px; font-weight: 600; color: var(--tb-ink-3); padding: 40px 0 16px; min-width: 0; }
.tb-crumb a { color: var(--tb-ink-3); cursor: pointer; }
.tb4 .tb-crumb #app-bread-cat { padding: 0 !important; background: none !important; color: var(--tb-ink-3) !important; border: 0 !important; border-radius: 0 !important; font-size: 15px !important; font-weight: 600 !important; box-shadow: none !important; display: inline !important; cursor: pointer; }
.tb4 .tb-crumb #app-bread-cat:hover { color: var(--tb-ink) !important; }
.tb-crumb a:hover, .tb-crumb-cat:hover { color: var(--tb-ink); }
.tb-crumb-cur { color: var(--tb-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60ch; }
.tb4 .tb-art .article-title-block-wrap { all: unset; display: flex !important; flex-direction: column; gap: 16px; padding: 0 0 40px !important; margin: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; box-shadow: none !important; }
.tb4 .tb-art #app-software-heading { margin: 0 !important; font-size: 56px !important; font-weight: 800 !important; letter-spacing: -.05em !important; line-height: 1.15 !important; color: var(--tb-ink) !important; word-break: keep-all; text-wrap: balance; max-width: 22ch; }
.tb4 .tb-art #app-software-sub { margin: 0 !important; font-size: 19px !important; line-height: 1.7 !important; letter-spacing: -.01em; color: var(--tb-ink-3) !important; max-width: 680px; word-break: keep-all; text-wrap: pretty; }
.tb-lead-1 { color: var(--tb-ink-2); font-weight: 500; }
.tb-lead-rest, .tb-lead-paren { display: none; }
#app-software-sub.is-open .tb-lead-rest, #app-software-sub.is-open .tb-lead-paren { display: inline; }
.tb-lead-more { align-self: flex-start; margin-top: -8px; border: 0; background: none; padding: 4px 0; font-size: 15px; font-weight: 700; color: var(--tb-accent-ink); cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tb-lead-more::after { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .2s; }
.tb-lead-more[aria-expanded="true"]::after { transform: translateY(2px) rotate(-135deg); }
.tb4 .tb-art #app-post-top-meta-row { all: unset; display: flex !important; justify-content: flex-start !important; gap: 8px; flex-wrap: wrap; align-items: center; margin: 0 !important; width: auto !important; }
.tb4 .tb-art #app-post-top-meta-row > * { all: unset; display: inline-flex; flex-wrap: wrap; gap: 8px; max-width: 100%; min-width: 0; }
.tb4 .tb-art #app-post-date-meta > span:first-child, .tb-tag { font-size: 14px; font-weight: 700; background: #fff; padding: 8px 14px; border-radius: 999px; color: var(--tb-ink); white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.tb4 .tb-art #app-post-date-meta strong { font-weight: 700 !important; color: var(--tb-ink) !important; }
.tb4 .tb-art #app-verified-badge.active { font-size: 14px; font-weight: 700; background: var(--tb-accent-bg) !important; color: var(--tb-accent-ink) !important; padding: 8px 14px; border-radius: 999px; border: 0 !important; }
.tb4 .tb-art #app-post-location-wrap { margin: 0 !important; }
.tb4 .tb-art .post-location-mini-box { font-size: 14px; font-weight: 700; background: #fff; padding: 8px 14px; border-radius: 999px; border: 0; color: var(--tb-ink); }

.tb4 .tb-art .app-top-toolbar { display: none !important; }

.tb4 .tb-art .section-partition { margin: 0 !important; padding: 0 !important; border: 0 !important; background: none; }
.tb4 .tb-art .partition-header-badge, .tb-h2 { display: block !important; margin: 0 0 20px !important; padding: 0 !important; background: none !important; border: 0 !important; border-radius: 0 !important; font-size: 32px !important; font-weight: 800 !important; letter-spacing: -.04em !important; line-height: 1.3 !important; color: var(--tb-ink) !important; }

/* 계산기 2단 */
.tb-calc { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.tb-calc-left { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.tb4 #part1-partition-box > .partition-header-badge, .tb4 #tool-input-reset { display: none !important; }
.tb4 .tb-art .sync-inputs-grid { display: flex !important; flex-direction: column; gap: 16px !important; }
.tb4 #tool-live-preview { position: static !important; top: auto !important; z-index: auto !important; margin: 0 !important; padding: 0 !important; background: none !important; box-shadow: none !important; border: 0 !important; }
.tb4 #tool-live-preview:empty { display: none; }

.tb-pane { background: #fff; border-radius: 36px; padding: 40px 44px; display: flex; flex-direction: column; gap: 28px; }
.tb-pane-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-pane-title { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; }
.tb-badge { font-size: 13px; font-weight: 800; background: var(--tb-ink); color: #fff; padding: 5px 10px; border-radius: 8px; white-space: nowrap; }
.tb-badge.is-soft { background: var(--tb-accent-bg); color: var(--tb-accent-ink); }
.tb-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600; color: var(--tb-accent-ink); background: var(--tb-accent-bg); padding: 6px 12px; border-radius: 999px; }

/* 문장형 기본 입력 */
.tb-sentence { margin: 0; font-size: clamp(24px, 2.2vw, 32px); font-weight: 700; line-height: 1.8; letter-spacing: -.04em; text-wrap: pretty; word-break: keep-all; }
.tb-chipw { white-space: nowrap; }
.tb-chip { display: inline-flex; align-items: center; gap: 8px; vertical-align: baseline; border: 0; border-bottom: 3px dashed var(--tb-accent-soft); cursor: pointer; font: inherit; letter-spacing: inherit; line-height: 1.35; padding: 0 12px 0 14px; border-radius: 14px 14px 4px 4px; background: var(--tb-accent-bg); color: var(--tb-accent-ink); transition: background .15s, color .15s, filter .15s; max-width: 100%; }
.tb-chip:hover { filter: brightness(.96); }
.tb-chip.is-on { background: var(--tb-accent); color: #fff; border-bottom-color: var(--tb-accent-ink); }
.tb-chip-v { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 14em; }
.tb-chip svg { width: 22px; height: 22px; opacity: .75; }
.tb-rows { display: none; }

/* 조정 패널 (선택된 기본 항목의 실제 입력칸) */
.tb-adjust { background: var(--tb-bg); border-radius: 26px; padding: 24px 26px; }
.tb4 .tb-adjust .tf-field { display: none; margin: 0; padding: 0; border: 0 !important; background: none !important; box-shadow: none !important; flex-direction: column; gap: 18px; }
.tb4 .tb-adjust .tf-field.is-on { display: flex; }
.tb-adj-top { display: flex; justify-content: space-between; align-items: center; gap: 16px; }
.tb4 .tb-adjust .tf-label, .tb4 .tb-adjust legend.tf-label { font-size: 17px !important; font-weight: 700 !important; color: var(--tb-ink) !important; margin: 0 !important; padding: 0; line-height: 1.45; float: none; }
.tb4 .tb-adjust .tf-shell { display: flex !important; align-items: center; gap: 6px; background: #fff !important; border: 0 !important; border-radius: 14px !important; height: 52px; padding: 0 16px !important; width: 240px; flex: none; box-shadow: none !important; }
.tb4 .tb-adjust .tf-num { flex: 1; min-width: 0; width: 100% !important; border: 0 !important; outline: 0; background: transparent !important; text-align: right; font-size: 24px !important; font-weight: 800 !important; padding: 0 !important; height: auto !important; box-shadow: none !important; color: var(--tb-ink) !important; letter-spacing: -.02em; }
.tb4 .tb-adjust .tf-unit { position: static !important; font-size: 16px !important; font-weight: 600 !important; color: var(--tb-ink-3) !important; white-space: nowrap; transform: none !important; }
.tb4 .tb-adjust .tf-step { display: none !important; }

/* 눈금 슬라이더 */
.tb4 .tb-ruler { position: relative; height: 60px; margin: 0; padding: 0; }
.tb4 .tb-ruler::before { content: ""; position: absolute; inset: 0 0 auto; height: 24px; background: repeating-linear-gradient(90deg, var(--tb-ink) 0 2px, transparent 2px 10%) top / 100% 24px no-repeat, repeating-linear-gradient(90deg, #B9B9B2 0 1.5px, transparent 1.5px 2%) top / 100% 13px no-repeat; pointer-events: none; }
.tb-ruler-thumb { position: absolute; top: 0; left: var(--tf-pct, 0%); transform: translateX(-50%); display: flex; flex-direction: column; align-items: center; pointer-events: none; transition: left .08s linear; }
.tb-ruler-thumb::before { content: ""; width: 4px; height: 38px; background: var(--tb-accent); border-radius: 2px; }
.tb-ruler-thumb::after { content: ""; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 5px solid var(--tb-accent); margin-top: -4px; box-sizing: border-box; }
.tb4 .tb-ruler .tf-range { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; margin: 0 !important; opacity: 0; cursor: ew-resize; -webkit-appearance: none; appearance: none; background: none !important; }
.tb4 .tb-ruler .tf-scale { position: absolute; left: 0; right: 0; bottom: -2px; display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--tb-ink-4); pointer-events: none; margin: 0; padding: 0; }
.tb4 .tb-ruler .tf-read-inline { display: none !important; }
.tb-adj-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb4 .tb-adjust .tf-presets { display: flex !important; gap: 6px; flex-wrap: wrap; margin: 0 !important; padding: 0; }
.tb4 .tb-adjust .tf-preset { height: 40px; min-height: 40px; padding: 0 14px !important; border-radius: 12px !important; border: 0 !important; background: #fff !important; color: var(--tb-ink) !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; }
.tb4 .tb-adjust .tf-preset.is-on { background: var(--tb-ink) !important; color: #fff !important; font-weight: 700 !important; }
.tb4 .tb-adjust .tf-help, .tb4 .tb-adjust .tf-sub, .tb4 .tb-adjust .tf-note, .tb4 .tb-adjust .tf-read { font-size: 14px !important; color: var(--tb-ink-3) !important; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; line-height: 1.55; }
.tb4 .tb-adjust .tf-read { font-weight: 700; color: var(--tb-accent-ink) !important; }
.tb4 .tb-art .tf-clamp { font-size: 14px !important; font-weight: 600 !important; color: var(--tb-amber) !important; background: var(--tb-amber-bg) !important; border: 0 !important; border-radius: 10px !important; padding: 9px 12px !important; margin: 0 !important; line-height: 1.5; }
.tb4 .tb-art .tf-clamp[hidden], .tb4 .tb-art [hidden] { display: none !important; }

/* 기본 항목이 선택형일 때: 알약 → 세그먼트 */
.tb4 .tb-adjust .tf-pills, .tb4 .tb-drow .tf-pills { display: flex !important; flex-wrap: wrap; gap: 4px; background: #fff; border-radius: 14px; padding: 4px; margin: 0 !important; grid-template-columns: none !important; }
.tb4 .tb-art .tf-pill { position: relative; display: inline-flex !important; align-items: center; justify-content: center; gap: 6px; min-height: 40px; height: auto; padding: 8px 14px !important; margin: 0 !important; border-radius: 10px !important; border: 0 !important; background: transparent !important; color: var(--tb-ink-3) !important; font-size: 14px !important; font-weight: 600 !important; cursor: pointer; box-shadow: none !important; text-align: center; line-height: 1.35; grid-column: auto !important; flex: 1 1 auto; }
.tb4 .tb-art .tf-pill.is-on { background: var(--tb-ink) !important; color: #fff !important; font-weight: 700 !important; }
.tb4 .tb-art .tf-pill-input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
.tb4 .tb-art .tf-pill-check { display: none !important; }
.tb4 .tb-art .tf-select-shell { position: relative; display: block; margin: 0 !important; }
.tb4 .tb-art .tf-select { width: 100%; height: 52px; border: 0 !important; border-radius: 14px !important; background: #fff !important; padding: 0 40px 0 16px !important; font-size: 16px !important; font-weight: 700 !important; color: var(--tb-ink) !important; -webkit-appearance: none; appearance: none; cursor: pointer; box-shadow: none !important; text-overflow: ellipsis; }
.tb4 .tb-art .tf-select-arrow { position: absolute; right: 16px; top: 50%; width: 10px; height: 10px; border-right: 2.4px solid var(--tb-ink); border-bottom: 2.4px solid var(--tb-ink); transform: translateY(-70%) rotate(45deg); pointer-events: none; border-left: 0 !important; border-top: 0 !important; }

/* 세부 조정 */
.tb-detail { gap: 20px; padding: 36px 40px 28px; }
.tb-reset-all { height: 38px; padding: 0 14px; border: 0; border-radius: 999px; background: var(--tb-accent); color: #fff; font-size: 14px; font-weight: 700; cursor: pointer; }
.tb-reset-idle { font-size: 14px; font-weight: 600; color: var(--tb-ink-3); }
.tb-dsearch { display: flex; align-items: center; gap: 12px; height: 52px; padding: 0 18px; background: var(--tb-bg); border-radius: 16px; }
.tb-dsearch input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 16px; font-weight: 600; }
.tb-dsearch input::placeholder { color: var(--tb-ink-4); font-weight: 500; }
.tb-group { border-top: 1px solid var(--tb-line); }
.tb-group-btn { width: 100%; border: 0; background: transparent; cursor: pointer; display: grid; grid-template-columns: 110px minmax(0, 1fr) auto 28px; gap: 14px; align-items: center; padding: 20px 4px; text-align: left; }
.tb-group-t { font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tb-group-sum { font-size: 15px; color: var(--tb-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tb-group-meta { display: flex; gap: 6px; align-items: center; font-size: 13px; color: var(--tb-ink-4); }
.tb-dot-badge { font-size: 12px; font-weight: 800; background: var(--tb-accent); color: #fff; padding: 3px 8px; border-radius: 999px; }
.tb-dot-badge[hidden] { display: none !important; }
.tb-chev { transition: transform .2s; }
.tb-group.is-open .tb-chev { transform: rotate(180deg); }
.tb-group-body { display: none; flex-direction: column; padding: 0 0 14px; }
.tb-group.is-open .tb-group-body { display: flex; }
.tb-dnone { font-size: 15px; color: var(--tb-ink-3); padding: 16px 4px 4px; }

.tb4 .tb-drow { display: grid !important; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 20px; align-items: center; min-height: 66px; padding: 12px 0 !important; margin: 0 !important; border: 0 !important; border-bottom: 1px solid var(--tb-line-soft) !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
.tb4 .tb-drow:last-child { border-bottom: 0 !important; }
.tb-drow-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-drow-t { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 16px; font-weight: 600; line-height: 1.45; }
.tb4 .tb-drow .tf-label, .tb4 .tb-drow legend.tf-label { font-size: 16px !important; font-weight: 600 !important; color: var(--tb-ink) !important; margin: 0 !important; padding: 0 !important; float: none; line-height: 1.45; }
.tb4 .tb-drow .tf-help, .tb4 .tb-drow .tf-sub, .tb4 .tb-drow .tf-note { font-size: 13px !important; color: var(--tb-ink-3) !important; line-height: 1.45; margin: 0 !important; padding: 0 !important; background: none !important; border: 0 !important; }
.tb4 .tb-drow .tf-clamp, .tb4 .tb-drow .tf-note:not([hidden]) { grid-column: 1 / -1; }
.tb4 .tb-drow .tf-read { display: none !important; }
.tb-def { border: 0; cursor: pointer; background: var(--tb-accent-bg); color: var(--tb-accent-ink); font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.tb-def[hidden] { display: none !important; }
.tb-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--tb-accent); display: none; }
.tb-drow.is-changed .tb-dot { display: inline-block; }

/* 행 컨트롤: 스테퍼 */
.tb4 .tb-drow .tf-amount { display: flex !important; align-items: center; background: var(--tb-bg); border-radius: 12px; height: 42px; padding: 0 4px; margin: 0 !important; gap: 0; border: 0 !important; }
.tb4 .tb-drow .tf-step { width: 34px !important; height: 34px !important; min-height: 34px; border: 0 !important; border-radius: 9px !important; background: transparent !important; cursor: pointer; font-size: 18px !important; color: var(--tb-ink-3) !important; padding: 0 !important; display: grid !important; place-items: center; box-shadow: none !important; }
.tb4 .tb-drow .tf-step:hover { background: #fff !important; }
.tb4 .tb-drow .tf-shell { display: flex !important; align-items: center; gap: 4px; background: none !important; border: 0 !important; height: auto; padding: 0 !important; box-shadow: none !important; width: auto; }
.tb4 .tb-drow .tf-num { width: 92px !important; border: 0 !important; outline: 0; background: transparent !important; text-align: right; font-size: 17px !important; font-weight: 800 !important; padding: 0 !important; height: auto !important; box-shadow: none !important; color: var(--tb-ink) !important; }
.tb-drow.is-changed .tf-num { color: var(--tb-accent-ink) !important; }
.tb4 .tb-drow .tf-unit { position: static !important; transform: none !important; font-size: 13px !important; font-weight: 600 !important; color: var(--tb-ink-3) !important; margin: 0 4px !important; white-space: nowrap; }
.tb4 .tb-drow .tf-presets, .tb4 .tb-drow .tf-slider-wrap { display: none !important; }
/* 행 컨트롤: 세그먼트 */
.tb4 .tb-drow .tb-seg { display: flex !important; gap: 2px; background: var(--tb-line-soft); border-radius: 11px; padding: 3px; flex-wrap: nowrap; }
.tb4 .tb-drow .tb-seg .tf-pill { min-height: 36px; padding: 0 14px !important; border-radius: 9px !important; white-space: nowrap; flex: none; }
.tb4 .tb-drow .tb-seg .tf-pill.is-on { background: #fff !important; color: var(--tb-ink) !important; box-shadow: 0 1px 3px rgba(0, 0, 0, .12) !important; }
/* 행 컨트롤: 토글 */
.tb-toggle { border: 0; cursor: pointer; width: 51px; height: 31px; border-radius: 999px; padding: 2px; display: flex; justify-content: flex-start; background: #E0E0DA; transition: background .2s; flex: none; }
.tb-toggle > span { width: 27px; height: 27px; border-radius: 50%; background: #fff; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); transition: transform .2s var(--tb-ease); }
.tb-toggle[aria-checked="true"] { background: var(--tb-accent); }
.tb-toggle[aria-checked="true"] > span { transform: translateX(20px); }
.tb4 .tb-drow .tb-toggle-src { display: none !important; }
/* 행 컨트롤: 드롭다운 */
.tb4 .tb-drow .tf-select-shell { min-width: 200px; max-width: 280px; }
.tb4 .tb-drow .tf-select { height: 42px; border-radius: 12px !important; background: var(--tb-bg) !important; font-size: 15px !important; padding: 0 36px 0 12px !important; }
.tb4 .tb-drow .tf-select-arrow { right: 13px; width: 8px; height: 8px; border-width: 2.2px; }
.tb-drow.is-changed .tf-select { color: var(--tb-accent-ink) !important; }
.tb-mval { display: none; }

/* 계산서 */
.tb-receipt-col { position: sticky; top: 96px; }
.tb-receipt { background: var(--tb-ink); border-radius: 36px; padding: 34px 36px 36px; display: flex; flex-direction: column; gap: 22px; color: #fff; }
.tb-rc-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tb-rc-title { font-size: 16px; font-weight: 700; color: #C9C9C3; }
.tb-rc-live { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: #C9C9C3; }
.tb-rc-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--tb-accent-soft); }
.tb-rc-paper { display: flex; flex-direction: column; }
.tb-rc-sheet { background: #fff; color: var(--tb-ink); border-radius: 10px 10px 0 0; padding: 28px 28px 22px; display: flex; flex-direction: column; gap: 13px; }
.tb-rc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.tb-rc-top img { height: 17px; width: auto; }
.tb-rc-no { font-size: 13px; font-weight: 600; color: var(--tb-ink-3); white-space: nowrap; }
.tb-rc-dash { border-top: 2px dashed #D6D6D0; }
.tb-rc-rule { border-top: 2px solid var(--tb-ink); margin-top: 4px; }
.tb-rc-item { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; font-size: 16px; line-height: 1.45; }
.tb-rc-item > span:first-child { color: var(--tb-ink-2); min-width: 0; }
.tb-rc-item > b { font-weight: 700; text-align: right; min-width: 0; word-break: keep-all; overflow-wrap: anywhere; }
.tb-rc-item.is-total > span:first-child { color: var(--tb-ink); font-weight: 700; }
.tb-rc-warn { display: flex; gap: 8px; font-size: 14px; font-weight: 600; color: var(--tb-amber); background: var(--tb-amber-bg); padding: 9px 12px; border-radius: 10px; line-height: 1.5; }
.tb-rc-total { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; }
.tb-rc-total > span { font-size: 16px; font-weight: 700; padding-bottom: 6px; line-height: 1.4; }
.tb-rc-total > strong { font-size: 46px; font-weight: 800; letter-spacing: -.05em; line-height: 1.05; text-align: right; word-break: keep-all; }
.tb-rc-total > strong.is-long { font-size: 30px; letter-spacing: -.03em; }
.tb-rc-compare { align-self: flex-end; font-size: 14px; font-weight: 700; background: var(--tb-accent-bg); color: var(--tb-accent-ink); padding: 5px 10px; border-radius: 8px; text-align: right; line-height: 1.5; }
.tb-rc-edge { height: 14px; background: radial-gradient(circle at 9px 14px, var(--tb-ink) 8px, transparent 8.5px) 0 0 / 18px 14px repeat-x, #fff; }
.tb-rc-verdict { margin: 0; font-size: 18px; line-height: 1.6; font-weight: 600; word-break: keep-all; }
.tb-rc-actions { display: flex; gap: 10px; }
.tb-rc-actions .tb-btn { height: 56px; font-size: 16px; font-weight: 800; flex: 1; }
.tb-rc-actions .tb-btn-ghost { flex: none; padding: 0 24px; font-weight: 700; }
.tb-mbanner { display: none; }

/* 진행 순서 / 체크 */
.tb-steps-wrap { padding-top: 16px; }
.tb4 #part4-partition-box .fold-block { all: unset; display: block; }
.tb4 #part4-partition-box .fold-summary { display: none !important; }
.tb4 #part4-partition-box .fold-body { all: unset; display: flex; flex-direction: column; gap: 16px; }
.tb4 .practical-action-guide { display: flex; flex-direction: column; gap: 16px; padding: 0 !important; background: none !important; border: 0 !important; }
.tb-steps { background: #fff; border-radius: 36px; padding: 36px 40px; display: flex; flex-direction: column; gap: 24px; }
.tb-steps-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-steps-head h2 { margin: 0; font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.tb-steps-done { font-size: 15px; font-weight: 700; background: var(--tb-bg); padding: 8px 14px; border-radius: 999px; }
.tb-step-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; list-style: none; margin: 0; padding: 0; }
.tb-steps-sub { margin: 6px 0 0; font-size: 15px; color: var(--tb-ink-3); }
.tb-step { position: relative; list-style: none; border-radius: 24px; background: var(--tb-bg); transition: background .2s, box-shadow .2s; }
.tb-step:hover { box-shadow: inset 0 0 0 2px var(--tb-line-3); }
.tb-step-open { width: 100%; height: 100%; border: 0; background: none; cursor: pointer; text-align: left; padding: 22px 22px 20px; display: flex; flex-direction: column; gap: 12px; border-radius: 24px; }
.tb-step-n { font-size: 14px; font-weight: 700; color: var(--tb-ink-3); padding-right: 40px; }
.tb-step-ck { position: absolute; top: 18px; right: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 15px; font-weight: 800; background: #fff; color: transparent; border: 2px solid var(--tb-line-3); cursor: pointer; padding: 0; transition: all .2s; }
.tb-step-ck:hover { border-color: var(--tb-accent-soft); color: var(--tb-accent-soft); }
.tb-step-t { font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.4; }
.tb-step-d { font-size: 14px; line-height: 1.55; color: var(--tb-ink-3); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tb-step-doc { font-size: 13px; line-height: 1.5; color: var(--tb-ink-3); border-top: 1px dashed var(--tb-line-3); padding-top: 10px; }
.tb-step-go { margin-top: auto; font-size: 14px; font-weight: 700; color: var(--tb-accent-ink); display: inline-flex; align-items: center; gap: 6px; }
.tb-step-go::after { content: "→"; transition: transform .2s; }
.tb-step:hover .tb-step-go::after { transform: translateX(3px); }
.tb-step.is-done { background: var(--tb-accent-bg); }
.tb-step.is-done .tb-step-ck { background: var(--tb-accent); border-color: var(--tb-accent); color: #fff; }
.tb-step.is-done .tb-step-t { text-decoration: line-through; text-decoration-color: var(--tb-accent-soft); }

/* 단계 상세 시트 */
.tb-st-kick { font-size: 13px; font-weight: 800; color: var(--tb-accent-ink); letter-spacing: .02em; }
.tb-st-prog { display: flex; gap: 4px; }
.tb-st-prog i { flex: 1; height: 4px; border-radius: 2px; background: var(--tb-line-2); }
.tb-st-prog i.is-done { background: var(--tb-accent-soft); }
.tb-st-prog i.is-on { background: var(--tb-accent); }
.tb-st-sec { display: flex; flex-direction: column; gap: 10px; padding-top: 4px; }
.tb-st-sec h3 { margin: 0; font-size: 15px; font-weight: 800; color: var(--tb-ink); display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tb-st-sec h3 small { font-size: 13px; font-weight: 700; color: var(--tb-accent-ink); }
.tb-st-p { margin: 0; font-size: 16px; line-height: 1.75; color: var(--tb-ink-2); word-break: keep-all; }
.tb-st-docs, .tb-st-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.tb-st-doc { width: 100%; display: flex; align-items: center; gap: 12px; text-align: left; border: 1px solid var(--tb-line-2); background: #fff; border-radius: 14px; padding: 13px 14px; font-size: 15px; font-weight: 600; line-height: 1.45; cursor: pointer; transition: background .15s, border-color .15s; }
.tb-st-box { flex: none; width: 22px; height: 22px; border-radius: 7px; border: 2px solid var(--tb-line-3); display: grid; place-items: center; transition: all .15s; }
.tb-st-doc.is-on { background: var(--tb-accent-bg); border-color: transparent; }
.tb-st-doc.is-on .tb-st-box { background: var(--tb-accent); border-color: var(--tb-accent); }
.tb-st-doc.is-on .tb-st-box::after { content: ""; width: 10px; height: 5px; border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff; transform: translateY(-1px) rotate(-45deg); }
.tb-st-checks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.65; color: var(--tb-ink-2); }
.tb-st-checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; background: var(--tb-accent-bg); color: var(--tb-accent-ink); font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.tb-st-trap { background: var(--tb-amber-bg); border-radius: 14px; padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.tb-st-trap b { font-size: 15px; color: var(--tb-amber); line-height: 1.45; }
.tb-st-trap p { margin: 0; font-size: 14px; line-height: 1.65; color: var(--tb-ink-2); }
.tb-st-terms { margin: 0; display: grid; gap: 4px 0; }
.tb-st-terms dt { font-size: 14px; font-weight: 800; margin-top: 6px; }
.tb-st-terms dd { margin: 0; font-size: 14px; line-height: 1.65; color: var(--tb-ink-3); }
.tb-st-links { display: flex; flex-wrap: wrap; gap: 6px; }
.tb-st-links a { font-size: 14px; font-weight: 700; background: var(--tb-bg-2); padding: 10px 14px; border-radius: 12px; }
.tb-st-links a:hover { background: var(--tb-accent-bg); color: var(--tb-accent-ink); }
.tb-st-ask { margin-top: 6px; padding: 16px 18px; background: var(--tb-bg-2); border-radius: 18px; display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.tb-st-ask strong { font-size: 17px; font-weight: 800; }
.tb-st-ask > div { display: flex; gap: 8px; }
.tb-st-ask.is-done strong { color: var(--tb-accent-ink); }
.tb-st-btn { height: 46px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--tb-line-2); background: #fff; font-size: 15px; font-weight: 700; cursor: pointer; }
.tb-st-btn.is-yes { background: var(--tb-accent); border-color: var(--tb-accent); color: #fff; }
.tb-st-hint { margin: 0; font-size: 14px; color: var(--tb-accent-ink); background: var(--tb-accent-bg); border-radius: 12px; padding: 10px 12px; }
.tb-st-nav { display: flex; justify-content: space-between; gap: 8px; }
.tb-st-nav button { border: 0; background: none; font-size: 15px; font-weight: 700; color: var(--tb-ink-3); cursor: pointer; padding: 8px 0; }
.tb-st-nav button:hover { color: var(--tb-ink); }
.tb-st-loading { padding: 40px 0; text-align: center; color: var(--tb-ink-3); font-size: 15px; }
.tb-checks { background: #fff; border-radius: 36px; padding: 36px 40px; display: flex; flex-direction: column; gap: 8px; }
.tb-checks h2 { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -.035em; }
.tb-check { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--tb-line-2); list-style: none; }
.tb-check:last-child { border-bottom: 0; }
.tb-check-ico { width: 28px; height: 28px; border-radius: 9px; background: var(--tb-accent-bg); color: var(--tb-accent-ink); display: grid; place-items: center; font-size: 15px; font-weight: 800; }
.tb-check-t { font-size: 17px; line-height: 1.7; color: var(--tb-ink-2); }
.tb-checks ul { margin: 0; padding: 0; }

/* 본문 2단 */
.tb-body { display: grid; grid-template-columns: minmax(0, 760px) 300px; justify-content: space-between; gap: 64px; padding-top: 72px; padding-bottom: 120px; }
.tb-article { display: flex; flex-direction: column; gap: 64px; min-width: 0; }
.tb-article > *:empty { display: none; }
.tb4 .tb-article .section-partition { scroll-margin-top: 100px; }
.tb-aside { position: relative; }
.tb-aside-in { position: sticky; top: 96px; display: flex; flex-direction: column; gap: 20px; }
.tb-toc { background: #fff; border-radius: 26px; padding: 24px; display: flex; flex-direction: column; gap: 2px; }
.tb-toc > span { font-size: 14px; font-weight: 700; color: var(--tb-ink-3); margin-bottom: 10px; }
.tb-toc a { font-size: 16px; color: var(--tb-ink-2); padding: 8px 0; transition: color .15s; }
.tb-toc a:hover { color: var(--tb-ink); }
.tb-toc a.is-on { font-weight: 800; color: var(--tb-accent); }
.tb4 .tb-aside .sidebar-widget-card { background: #fff !important; border: 0 !important; border-radius: 26px !important; padding: 24px !important; box-shadow: none !important; }
.tb4 .tb-aside .sidebar-widget-card > div:first-child { font-size: 14px !important; font-weight: 700 !important; color: var(--tb-ink-3) !important; border: 0 !important; padding: 0 !important; margin: 0 0 10px !important; }
.tb4 #sidebar-tools-stack .side-mini-card { background: none !important; border: 0 !important; border-bottom: 1px solid var(--tb-line) !important; border-radius: 0 !important; padding: 10px 0 !important; margin: 0 !important; }
.tb4 #sidebar-tools-stack .side-mini-card:last-child { border-bottom: 0 !important; }

/* 헷갈리는 포인트 */
.tb-tips { display: flex; flex-direction: column; gap: 24px; list-style: none; margin: 0; padding: 0; }
.tb-tip { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 8px; }
.tb-tip-n { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; color: var(--tb-accent); }
.tb-tip-b { display: flex; flex-direction: column; gap: 8px; }
.tb-tip-t { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.4; }
.tb-tip-p { font-size: 18px; line-height: 1.85; color: var(--tb-ink-2); margin: 0; }
/* 근거가 된 법 */
.tb-laws { display: flex; flex-direction: column; gap: 16px; list-style: none; margin: 0; padding: 0; }
.tb-law { background: #fff; border-radius: 24px; padding: 24px 26px; display: flex; flex-direction: column; gap: 8px; }
.tb-law-tag { font-size: 14px; font-weight: 800; color: var(--tb-accent-ink); }
.tb-law-t { font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.tb-law-p { font-size: 17px; line-height: 1.75; color: var(--tb-ink-2); margin: 0; }
.tb-sub-h { font-size: 22px; font-weight: 800; letter-spacing: -.03em; margin: 40px 0 16px; }

/* 자세한 계산 내역 (레거시 결과 블록 재스킨) */
.tb4 #tool-hero-summary-band { display: none !important; }
.tb4 .rs-kpis { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px !important; margin: 0 0 16px !important; }
.tb4 .rs-kpi { background: #fff !important; border: 0 !important; border-radius: 22px !important; padding: 20px 22px !important; box-shadow: none !important; }
.tb4 .rs-kpi-label { font-size: 14px !important; font-weight: 700 !important; color: var(--tb-ink-3) !important; }
.tb4 .rs-kpi-value { font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.03em; color: var(--tb-ink) !important; font-family: inherit !important; }
.tb4 .rs-kpi-sub { font-size: 14px !important; color: var(--tb-ink-3) !important; line-height: 1.5; }
.tb4 .rs-chart { background: #fff !important; border: 0 !important; border-radius: 24px !important; padding: 24px 26px !important; margin: 0 0 16px !important; box-shadow: none !important; }
.tb4 .rs-chart-cap { font-size: 17px !important; font-weight: 800 !important; color: var(--tb-ink) !important; }
.tb4 .rs-chart-sub { font-size: 14px !important; color: var(--tb-ink-3) !important; font-weight: 600 !important; }
.tb4 .fold-block { background: #fff !important; border: 0 !important; border-radius: 24px !important; overflow: hidden; box-shadow: none !important; margin: 0 0 16px !important; }
.tb4 .fold-summary { font-size: 17px !important; font-weight: 800 !important; padding: 20px 24px !important; background: #fff !important; color: var(--tb-ink) !important; border: 0 !important; cursor: pointer; }
.tb4 .fold-body { padding: 0 24px 24px !important; background: #fff !important; border: 0 !important; }
.tb4 .rs-table { font-size: 15px !important; }
.tb4 .rs-table th, .tb4 .rs-table td { border-color: var(--tb-line) !important; }
.tb4 .rs-table thead th { background: var(--tb-bg) !important; color: var(--tb-ink-3) !important; font-weight: 700 !important; }
.tb4 .rs-tr-total { background: var(--tb-accent-bg) !important; }
.tb4 .rs-tr-total td, .tb4 .rs-tr-total th { color: var(--tb-ink) !important; }

/* 맞춤 진단 리포트 / 심화 해설 — 컨테이너만 정리 */
.tb4 .expert-analysis-box { background: #fff !important; border: 0 !important; border-radius: 28px !important; padding: 32px 34px !important; box-shadow: none !important; font-size: 17px; line-height: 1.8; color: var(--tb-ink-2); }
.tb4 .expert-analysis-loading { border: 0 !important; background: var(--tb-bg) !important; border-radius: 20px !important; }
.tb4 #tool-deepdive-wrap .tool-deepdive, .tb4 #tool-deepdive-wrap > div:first-child { background: #fff; border-radius: 28px; padding: 32px 34px; border: 0; box-shadow: none; }

/* FAQ */
.tb4 .policy-faq-section { margin: 0 !important; }
.tb4 #faq-list-wrap { display: flex; flex-direction: column; gap: 10px; }
.tb4 .faq-item { background: #fff !important; border: 0 !important; border-radius: 22px !important; margin: 0 !important; overflow: hidden; box-shadow: none !important; }
.tb4 .faq-q { display: flex !important; justify-content: space-between; align-items: center; gap: 16px; padding: 22px 26px !important; background: #fff !important; font-size: 19px !important; font-weight: 700 !important; letter-spacing: -.02em; line-height: 1.5; color: var(--tb-ink) !important; border: 0 !important; }
.tb4 .faq-q > span:last-child { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--tb-bg); display: grid; place-items: center; font-size: 0 !important; color: transparent !important; position: relative; }
.tb4 .faq-q > span:last-child::before { content: "+"; font-size: 20px; font-weight: 700; color: var(--tb-ink); line-height: 1; }
.tb4 .faq-item.active .faq-q > span:last-child::before { content: "\2212"; }
.tb4 .faq-a { padding: 0 26px 24px !important; background: #fff !important; border: 0 !important; font-size: 17px !important; line-height: 1.8 !important; color: var(--tb-ink-2) !important; }

/* 공식 자료 */
.tb4 #official-gov-links-wrap { background: #fff !important; border: 0 !important; border-radius: 24px !important; padding: 24px 26px !important; }
.tb4 #official-gov-links-wrap a { border: 0 !important; background: var(--tb-bg) !important; color: var(--tb-ink) !important; border-radius: 14px !important; padding: 14px 16px !important; font-size: 15px !important; font-weight: 700 !important; }
.tb4 #official-gov-links-wrap a:hover { background: var(--tb-accent-bg) !important; color: var(--tb-accent-ink) !important; }
.tb4 #official-gov-links-wrap > div:first-child { color: var(--tb-ink-3) !important; font-size: 14px !important; }
.tb4 #official-gov-links-wrap span[style*="border-radius:20px"] { border: 0 !important; background: var(--tb-accent-bg) !important; color: var(--tb-accent-ink) !important; font-size: 13px !important; }
.tb4 #official-gov-links-wrap p { color: var(--tb-ink-3) !important; font-size: 14px !important; }
.tb4 #official-gov-links-wrap p a { display: inline !important; padding: 0 !important; background: none !important; border-radius: 0 !important; font-size: inherit !important; color: var(--tb-accent-ink) !important; font-weight: 700 !important; text-decoration: underline; text-underline-offset: 2px; cursor: pointer; }
.tb4 #official-gov-links-wrap p a:hover { background: none !important; }
.tb4 #official-gov-links-wrap div[style*="border-top"] { border-top-color: var(--tb-line-2) !important; }

/* 같이 쓰면 좋은 도구 · 법적 고지 */
.tb4 #related-tools-partition-box { margin: 0 !important; }
.tb4 .legal-safety-box { background: transparent !important; border: 0 !important; border-top: 1px solid var(--tb-line-3) !important; border-radius: 0 !important; padding: 24px 0 0 !important; margin: 0 !important; }
.tb4 .legal-safety-box, .tb4 .legal-safety-box p, .tb4 .legal-safety-box div { color: var(--tb-ink-3) !important; font-size: 14px !important; line-height: 1.7 !important; }
.tb4 .legal-safety-box > div:first-child { color: var(--tb-ink) !important; font-size: 15px !important; font-weight: 800 !important; }

/* 내돈내산 리뷰 상세는 본문 1단으로 */
.tb4 .tb-art.is-review .tb-calc, .tb4 .tb-art.is-review .tb-steps-wrap, .tb4 .tb-art.is-review .tb-aside { display: none !important; }
.tb4 .tb-art.is-review .tb-body { grid-template-columns: minmax(0, 860px); justify-content: center; padding-top: 0; }
.tb4 .tb-art.is-review .expert-analysis-box { font-size: inherit; background: none !important; padding: 0 !important; border-radius: 0 !important; }

/* 같이 쓰면 좋은 도구 · 사이드바 · 리뷰 추천 */
.tb-rel { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tb-rel-card { background: #fff; border-radius: 24px; padding: 14px; display: grid; grid-template-columns: 88px minmax(0, 1fr); gap: 16px; align-items: center; transition: transform .2s var(--tb-ease); }
.tb-rel-card:hover { transform: translateY(-2px); }
.tb-rel-img { width: 88px; height: 88px; border-radius: 16px; overflow: hidden; background: var(--tb-thumb); display: block; }
.tb-rel-img picture { display: block; width: 100%; height: 100%; }
.tb-rel-b { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-rel-b strong { font-size: 18px; font-weight: 800; letter-spacing: -.025em; line-height: 1.4; }
.tb-rel-b span { font-size: 14px; color: var(--tb-ink-2); line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tb-mesh { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.tb4 .tb-mesh .mesh-chip { font-size: 14px; font-weight: 600; background: #fff; padding: 8px 14px; border-radius: 999px; color: var(--tb-ink-2); border: 0; }
.tb4 .tb-mesh .mesh-chip:hover { color: var(--tb-accent-ink); }
.tb-side-link { display: block; font-size: 15px; font-weight: 600; color: var(--tb-ink-2); padding: 9px 0; border-bottom: 1px solid var(--tb-line); line-height: 1.45; }
.tb-side-link:last-child { border-bottom: 0; }
.tb-side-link:hover { color: var(--tb-accent-ink); }
.tb4 #bottom-reviews-recommendation-box { margin: 0 !important; padding: 0 !important; border: 0 !important; }
.tb-rev-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.tb-m { display: none; }
.tb-cnt-em { font-style: normal; color: var(--tb-ink-4); font-weight: 700; }
.tb-guide-sm > div:last-child { display: flex; flex-direction: column; min-width: 0; }

/* 정책 페이지(소개·약관·개인정보·문의) */
.tb4 .policy-page-view { max-width: 860px; margin: 0 auto; padding: 40px var(--tb-pad) 96px; }
.tb4 .policy-main-h1 { font-size: 40px !important; font-weight: 800 !important; letter-spacing: -.04em; color: var(--tb-ink) !important; margin: 16px 0 24px !important; }
.tb4 .policy-tab-nav { display: flex; gap: 6px; flex-wrap: wrap; }
.tb4 .policy-tab-link { padding: 10px 16px !important; border-radius: 999px !important; background: #fff !important; border: 0 !important; color: var(--tb-ink-2) !important; font-weight: 600 !important; font-size: 15px !important; }
.tb4 .policy-tab-link.active { background: var(--tb-ink) !important; color: #fff !important; }
.tb4 .policy-back-btn { color: var(--tb-ink-3) !important; font-weight: 600; }
.tb4 .policy-update-badge { background: #fff !important; color: var(--tb-ink-3) !important; border: 0 !important; border-radius: 999px !important; }
.tb4 #policy-modal-overlay > div { border-radius: 28px !important; }
.tb4 #policy-modal-title { border-bottom: 0 !important; font-size: 24px !important; font-weight: 800 !important; letter-spacing: -.03em; }

/* ---------- 8. 오버레이: 팔레트 · 시트 · 토스트 ---------- */
.tb-ov { position: fixed; inset: 0; z-index: 1000; display: none; }
.tb-ov.is-open { display: block; }
.tb-ov-dim { position: absolute; inset: 0; background: rgba(18, 18, 18, .45); animation: tbFade .2s ease; }
@keyframes tbFade { from { opacity: 0 } to { opacity: 1 } }
@keyframes tbUp { from { transform: translateY(24px); opacity: 0 } to { transform: none; opacity: 1 } }

.tb-pal { position: absolute; left: 50%; top: 12vh; transform: translateX(-50%); width: min(680px, calc(100% - 32px)); background: #fff; border-radius: 28px; box-shadow: 0 40px 100px -30px rgba(0, 0, 0, .45); display: flex; flex-direction: column; overflow: hidden; animation: tbUp .22s var(--tb-ease); }
.tb-pal-in { display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 20px 0 24px; border-bottom: 1px solid var(--tb-line); }
.tb-pal-in input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: 19px; font-weight: 600; }
.tb-pal-in input::placeholder { color: var(--tb-ink-4); font-weight: 500; }
.tb-pal-esc { font-size: 12px; font-weight: 700; color: var(--tb-ink-3); background: var(--tb-bg); border: 0; padding: 6px 10px; border-radius: 999px; cursor: pointer; }
.tb-pal-list { max-height: min(60vh, 520px); overflow-y: auto; padding: 8px; display: flex; flex-direction: column; }
.tb-pal-cap { font-size: 13px; font-weight: 700; color: var(--tb-ink-4); padding: 10px 12px 6px; }
.tb-pal-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px 12px; border-radius: 16px; cursor: pointer; }
.tb-pal-row.is-on { background: var(--tb-bg); }
.tb-pal-thumb { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: var(--tb-thumb); }
.tb-pal-name { font-size: 16px; font-weight: 700; letter-spacing: -.02em; display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-pal-desc { font-size: 13px; color: var(--tb-ink-3); display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.tb-pal-cat { font-size: 12px; font-weight: 600; color: var(--tb-ink-3); white-space: nowrap; }
.tb-pal-row mark { background: var(--tb-accent-bg); color: var(--tb-accent-ink); border-radius: 4px; padding: 0 2px; }
.tb-pal-empty { padding: 28px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.tb-pal-empty strong { font-size: 17px; font-weight: 700; }
.tb-pal-foot { display: flex; gap: 14px; padding: 12px 20px; border-top: 1px solid var(--tb-line); font-size: 12px; color: var(--tb-ink-4); font-weight: 600; }

.tb-sheet { position: absolute; left: 0; right: 0; bottom: 0; margin: 0 auto; max-width: 560px; max-height: 88vh; overflow-y: auto; background: #fff; border-radius: 28px 28px 0 0; padding: 10px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 16px; animation: tbUp .24s var(--tb-ease); }
.tb-sheet-grab { align-self: center; width: 40px; height: 5px; border-radius: 3px; background: #D9D9D3; flex: none; }
.tb-sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.tb-sheet-head > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-sheet-t { font-size: 21px; font-weight: 800; letter-spacing: -.03em; line-height: 1.35; }
.tb-sheet-h { font-size: 15px; color: var(--tb-ink-3); line-height: 1.5; }
.tb-sheet-x { flex: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: var(--tb-bg-2); cursor: pointer; font-size: 18px; font-weight: 700; }
.tb-sheet-disp { display: flex; align-items: baseline; justify-content: flex-end; gap: 6px; padding: 6px 4px 10px; border-bottom: 2px solid var(--tb-accent); }
.tb-sheet-disp b { font-size: 44px; font-weight: 800; letter-spacing: -.05em; line-height: 1; word-break: break-all; }
.tb-sheet-disp span { font-size: 20px; font-weight: 700; color: var(--tb-ink-3); }
.tb-sheet-read { font-size: 14px; font-weight: 700; color: var(--tb-accent-ink); text-align: right; margin-top: -8px; min-height: 20px; }
.tb-sheet-warn { font-size: 14px; font-weight: 600; color: var(--tb-amber); background: var(--tb-amber-bg); padding: 9px 12px; border-radius: 10px; line-height: 1.5; }
.tb-sheet-picks { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tb-sheet-picks button { height: 44px; border: 1px solid var(--tb-line-2); border-radius: 12px; background: #fff; cursor: pointer; font-size: 15px; font-weight: 700; padding: 0 4px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-keys { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tb-keys button { height: 56px; border: 0; border-radius: 14px; background: var(--tb-bg-2); cursor: pointer; font-size: 24px; font-weight: 600; -webkit-user-select: none; user-select: none; touch-action: manipulation; }
.tb-keys button:active { background: var(--tb-line-2); }
.tb-sheet-done { height: 58px; border: 0; border-radius: 16px; background: var(--tb-accent); color: #fff; cursor: pointer; font-size: 18px; font-weight: 800; flex: none; }
.tb-opts { display: flex; flex-direction: column; }
.tb-opt { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 12px; align-items: center; text-align: left; padding: 16px 4px; border: 0; border-bottom: 1px solid var(--tb-line-soft); background: none; cursor: pointer; font-size: 17px; font-weight: 600; line-height: 1.45; }
.tb-opt small { display: block; font-size: 14px; color: var(--tb-ink-3); font-weight: 500; margin-top: 3px; }
.tb-opt::after { content: ""; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--tb-line-3); box-sizing: border-box; }
.tb-opt.is-on { color: var(--tb-accent-ink); }
.tb-opt.is-on::after { border: 7px solid var(--tb-accent); }
.tb-saved-list { display: flex; flex-direction: column; }
.tb-saved { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; padding: 16px 0; border-bottom: 1px solid var(--tb-line-soft); }
.tb-saved a { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tb-saved-n { font-size: 17px; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-saved-v { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.tb-saved-m { font-size: 13px; color: var(--tb-ink-3); }
.tb-saved-x { align-self: center; border: 0; background: var(--tb-bg-2); width: 36px; height: 36px; border-radius: 50%; cursor: pointer; font-size: 16px; color: var(--tb-ink-3); }
.tb-saved-empty { padding: 24px 4px 12px; font-size: 16px; line-height: 1.7; color: var(--tb-ink-3); }

.tb-toast { position: fixed; left: 50%; bottom: 32px; transform: translate(-50%, 20px); z-index: 1100; background: var(--tb-ink); color: #fff; font-size: 15px; font-weight: 700; padding: 13px 20px; border-radius: 999px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s var(--tb-ease); box-shadow: 0 12px 30px -10px rgba(0, 0, 0, .4); white-space: nowrap; max-width: calc(100% - 32px); overflow: hidden; text-overflow: ellipsis; }
.tb-toast.is-on { opacity: 1; transform: translate(-50%, 0); }
html.tb-lock, html.tb-lock body { overflow: hidden !important; }

/* ---------- 9. 반응형 ---------- */
@media (max-width: 1240px) {
  .tb-hero { grid-template-columns: minmax(0, 1fr) 420px; gap: 48px; }
  .tb-say-now, .tb-say-chip { font-size: 60px; }
  .tb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-box { grid-template-columns: 240px minmax(0, 1fr); gap: 40px; padding: 40px; }
  .tb4 #saas-catalog-grid.wix-magazine-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .tb-step-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb-body { grid-template-columns: minmax(0, 1fr) 260px; gap: 40px; }
  .tb-nav a { padding: 10px 12px; }
  .tb-search-pill { width: 220px; }
}
@media (max-width: 1080px) {
  .tb-calc { grid-template-columns: minmax(0, 1fr); }
  .tb-receipt-col { position: static; }
  .tb-hero { grid-template-columns: minmax(0, 1fr); }
  .tb-feat { max-width: 560px; }
  .tb-guide-grid { grid-template-columns: 1fr; }
  .tb-body { grid-template-columns: minmax(0, 1fr); }
  .tb-aside { display: none; }
  .tb-footer-cols { gap: 40px; }
}

@media (max-width: 768px) {
  html body.tb4 { background: #fff !important; padding-bottom: calc(76px + env(safe-area-inset-bottom)) !important; }
  html body.tb4.tb-on-article { padding-bottom: calc(88px + env(safe-area-inset-bottom)) !important; }
  .tb-header { display: none; }

  .tb-mhead { display: block; position: sticky; top: 0; z-index: 60; background: rgba(255, 255, 255, .94); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s; }
  .tb-mhead.is-scrolled { border-bottom-color: var(--tb-line); }
  .tb-mhead-row { height: 56px; display: flex; justify-content: space-between; align-items: center; padding: 0 12px 0 24px; gap: 8px; }
  .tb-mhead-row img { height: 22px; width: auto; display: block; }
  .tb-ibtn { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 12px; flex: none; }
  .tb-mhead-art { display: none; }
  .tb-on-article .tb-mhead-home { display: none; }
  .tb-on-article .tb-mhead-art { display: flex; padding: 0 8px; }
  .tb-mhead-title { flex: 1; min-width: 0; text-align: center; font-size: 17px; font-weight: 700; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

  .tb-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--tb-line); padding: 8px 16px calc(10px + env(safe-area-inset-bottom)); }
  .tb-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--tb-ink-4); background: none; border: 0; cursor: pointer; padding: 4px 0; font-size: 12px; font-weight: 600; min-height: 48px; justify-content: center; }
  .tb-tab svg { stroke: currentColor; }
  .tb-tab.is-on { color: var(--tb-ink); font-weight: 800; }
  .tb-tab.is-on svg path, .tb-tab.is-on svg rect { fill: currentColor; }
  .tb-on-article .tb-tabbar { display: none; }

  /* 홈 */
  .tb-wrap { padding-left: 24px; padding-right: 24px; }
  .tb-hero { display: flex; flex-direction: column; gap: 0; align-items: stretch; padding-top: 8px; padding-bottom: 28px; }
  .tb-hero-left { gap: 0; }
  .tb4 .tb-hero h1.wix-hero-h1, .tb4 .tb-hero div.wix-hero-h1 { font-size: 14px; order: 2; margin: 0 0 10px; }
  .tb-sit-seg { flex: 1; height: 20px; border: 0; background: transparent; padding: 8px 0; cursor: pointer; }
  .tb-sit-seg > span { display: block; position: relative; height: 4px; border-radius: 2px; background: var(--tb-line-2); overflow: hidden; }
  .tb-sit-seg > span > i { position: absolute; inset: 0 auto 0 0; width: 0; background: var(--tb-accent); }
  .tb-sit-seg.is-done > span > i { width: 100%; }
  .tb-sit-seg.is-on.is-run > span > i { animation: tbProg var(--tb-sit-ms, 7000ms) linear forwards; }
  .tb-sit-seg.is-on:not(.is-run) > span > i { width: 100%; }
  .tb-say { order: 3; gap: 10px; }
  .tb-say-now { font-size: 34px; line-height: 1.2; }
  .tb-say-chip { font-size: 30px; border-radius: 16px; padding: 3px 14px 7px; line-height: 1.3; }
  .tb-say-hook { order: 4; margin-top: 18px; font-size: 18px; line-height: 1.6; letter-spacing: -.015em; min-height: 58px; }
  .tb-sit-pillrow { order: 5; margin-top: 16px; }
  .tb-sit-pill { height: 40px; padding: 0 14px; font-size: 14px; }
  .tb-sit-more { height: 40px; padding: 0 10px 0 14px; font-size: 13px; gap: 6px; }
  .tb-sit-more-w { display: none; }
  .tb-feat { margin-top: 24px; background: none; box-shadow: none; border-radius: 0; overflow: visible; gap: 14px; max-width: none; }
  .tb-feat:hover { transform: none; }
  .tb-feat-img { border-radius: 24px; }
  .tb-feat-badge { display: none; }
  .tb-feat-body { padding: 0 2px; gap: 6px; }
  .tb-feat-name { font-size: 22px; line-height: 1.35; }
  .tb-feat-desc { font-size: 16px; }
  .tb-feat-foot { padding-top: 8px; }
  .tb-feat-foot .tb-btn { flex: 1; height: 54px; border-radius: 16px; font-size: 17px; font-weight: 800; }
  .tb-feat-pos { display: none; }
  .tb-div { height: 10px; background: var(--tb-bg-2); }

  .tb-sit-row { padding: 28px 0 32px; gap: 16px; }
  .tb-sit-row .tb-head { padding: 0 24px; }
  .tb-sit-row .tb-head a, .tb-sit-row .tb-head .tb-link { display: none; }
  .tb-cards { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 0 24px; scroll-padding: 0 24px; scroll-snap-type: x mandatory; grid-template-columns: none; }
  .tb-cards::-webkit-scrollbar { display: none; }
  .tb-card { flex: none; width: 200px; scroll-snap-align: start; background: none; border-radius: 0; gap: 12px; }
  .tb-card:hover { transform: none; box-shadow: none; }
  .tb-card-img { width: 200px; height: 200px; aspect-ratio: auto; border-radius: 22px; }
  .tb-card-body { padding: 0; gap: 4px; }
  .tb-card-body .tb-meta { order: 2; font-size: 14px; }
  .tb-card-name { font-size: 17px; font-weight: 700; letter-spacing: -.02em; line-height: 1.4; }
  .tb-card-desc { display: none; }

  .tb-box-wrap { padding: 0; }
  .tb-box { display: flex; flex-direction: column; gap: 16px; border-radius: 0; padding: 28px 24px 24px; }
  .tb-box-side { display: contents; }
  .tb-box-count { order: 1; flex-direction: row; justify-content: space-between; align-items: baseline; }
  .tb-box-count > span { font-size: 22px; font-weight: 800; color: var(--tb-ink); letter-spacing: -.035em; }
  .tb-box-count > strong { font-size: 15px; font-weight: 600; color: var(--tb-ink-3); letter-spacing: 0; }
  .tb-box-count small { font-size: 15px; margin: 0; font-weight: 600; }
  .tb-box-main { display: contents; }
  .tb-box-search { order: 2; height: 54px; padding: 0 16px; gap: 10px; background: var(--tb-bg-2); border-radius: 16px; }
  .tb-box-search input { font-size: 17px; }
  .tb-box-result { display: none; }
  .tb4 #cat-tabs-wrap { order: 3; flex-direction: row; gap: 6px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; }
  .tb4 #cat-tabs-wrap::-webkit-scrollbar { display: none; }
  .tb4 #cat-tabs-wrap .wix-cat-link { flex: none; width: auto; height: 40px; min-height: 40px; border: 1px solid #E0E0DA !important; border-radius: 999px !important; background: #fff !important; font-size: 15px !important; gap: 6px; justify-content: center; }
  .tb4 #cat-tabs-wrap .wix-cat-link .cat-count { display: none; }
  .tb4 #cat-tabs-wrap .wix-cat-link.active { border-color: var(--tb-ink) !important; }
  .tb4 #saas-catalog-grid.wix-magazine-grid { order: 4; display: flex !important; flex-direction: column; }
  .tb-tool { grid-template-columns: 56px minmax(0, 1fr); gap: 14px; padding: 12px 0; border-bottom-color: var(--tb-line-soft); }
  .tb-tool:hover { background: none; }
  .tb-tool-thumb { width: 56px; height: 56px; }
  .tb-tool-cat { display: none; }
  .tb-tool-desc { font-size: 15px; }
  .tb-empty { flex-direction: column; align-items: flex-start; border-radius: 16px; padding: 20px; background: var(--tb-bg-2); }
  .tb-empty .tb-btn { height: 44px; border-radius: 12px; background: var(--tb-ink); }
  .tb4 .desktop-section-header, .tb4 .tb-feed-head { margin: 20px 0 0 !important; font-size: 16px; }

  .tb-guides { padding-top: 28px; padding-bottom: 32px; gap: 6px; }
  .tb-guides .tb-head-t { font-size: 22px; letter-spacing: -.035em; margin-bottom: 10px; }
  .tb-guides .tb-head a { display: none; }
  .tb-guide-grid, .tb-guide-col { display: flex; flex-direction: column; gap: 0; }
  .tb-guide-big, .tb-guide-sm { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 16px; align-items: center; padding: 10px 0; background: none; border-radius: 0; }
  .tb-guide-big .tb-guide-img, .tb-guide-sm .tb-guide-img { width: 100px; height: 100px; border-radius: 18px; }
  .tb-guide-big-body { padding: 0; gap: 6px; }
  .tb-guide-big-t, .tb-guide-sm-t { font-size: 17px; font-weight: 700; line-height: 1.45; letter-spacing: -.02em; margin: 0; }
  .tb-guide-big-d { display: none; }
  .tb-guide-meta { font-size: 14px; font-weight: 600; }

  .tb-dir { padding-bottom: 32px; }
  .tb-dir-in { border-radius: 0; padding: 0; background: none; }
  .tb-dir-group { border-radius: 16px; background: var(--tb-bg-2); }

  .tb-footer { background: var(--tb-bg-2); color: var(--tb-ink); }
  .tb-footer-in { padding: 28px 24px 36px; gap: 16px; }
  .tb-footer-top { flex-direction: column; gap: 16px; }
  .tb-footer-brand img { height: 22px; content: url('/images/brand/logo-v4.svg'); }
  .tb-footer-brand p { display: none; }
  .tb-footer-cols { flex-wrap: wrap; gap: 6px 18px; }
  .tb-footer-col { display: contents; }
  .tb-footer-col > span { display: none; }
  .tb-footer-col a, .tb-footer-col button { color: var(--tb-ink); font-weight: 600; }
  .tb-footer-col .is-strong { font-weight: 800; }
  .tb-footer-col .tb-desk { display: none; }
  .tb-footer-legal { border: 0; padding: 0; color: var(--tb-ink-3); }

  /* 도구 페이지 */
  .tb-crumb { display: none; }
  .tb4 .tb-art .article-title-block-wrap { padding: 8px 24px 24px !important; gap: 12px; }
  .tb4 .tb-art .article-title-block-wrap::before { content: attr(data-cat); align-self: flex-start; font-size: 13px; font-weight: 700; background: var(--tb-accent-bg); color: var(--tb-accent-ink); padding: 5px 10px; border-radius: 8px; }
  .tb4 .tb-art .article-title-block-wrap:not([data-cat])::before, .tb4 .tb-art .article-title-block-wrap[data-cat=""]::before { display: none; }
  .tb4 .tb-art #app-software-heading { font-size: 30px !important; letter-spacing: -.045em !important; line-height: 1.25 !important; max-width: none; }
  .tb4 .tb-art #app-software-sub { font-size: 16px !important; line-height: 1.65 !important; }
  .tb-lead-more { margin-top: -4px; font-size: 14px; }
  .tb4 .tb-art #app-post-top-meta-row { display: block !important; font-size: 13px; line-height: 1.6; color: var(--tb-ink-3); }
  .tb4 .tb-art #app-post-top-meta-row > *, .tb4 .tb-art #app-post-top-meta-row .tb-tag, .tb4 .tb-art #app-post-date-meta > span:first-child { display: inline !important; white-space: normal; font-size: 13px; }
  .tb4 .tb-art .tb-tags:not(:empty) + #app-post-date-meta::before { content: " · "; }
  .tb4 .tb-art #app-post-date-meta > span:first-child, .tb-tag { background: none; padding: 0; font-weight: 500; color: var(--tb-ink-3); max-width: none; overflow: visible; }
  .tb4 .tb-art #app-post-date-meta strong { font-weight: 500 !important; color: var(--tb-ink-3) !important; }
  .tb4 .tb-art .tb-tags .tb-tag + .tb-tag::before { content: "· "; }
  .tb4 .tb-art .partition-header-badge, .tb-h2 { font-size: 22px !important; letter-spacing: -.035em !important; margin-bottom: 14px !important; }

  .tb-art > .tb-wrap { padding-left: 0; padding-right: 0; }
  .tb-calc { gap: 0; }
  .tb-calc-left { gap: 0; }
  .tb4 .tb-art .sync-inputs-grid { gap: 0 !important; }
  .tb-mbanner { display: flex; flex-direction: column; gap: 6px; margin: 0 20px; background: var(--tb-accent); border-radius: 24px; padding: 22px 22px 20px; color: #fff; }
  .tb-mbanner-l { font-size: 15px; font-weight: 600; color: var(--tb-accent-pale); }
  .tb-mbanner-v { font-size: 40px; font-weight: 800; letter-spacing: -.05em; line-height: 1.1; word-break: keep-all; }
  .tb-mbanner-v.is-long { font-size: 28px; letter-spacing: -.03em; }
  .tb-mbanner-s { font-size: 15px; font-weight: 600; color: var(--tb-accent-pale); line-height: 1.5; }

  .tb-pane { border-radius: 0; padding: 28px 24px 12px; gap: 4px; background: #fff; }
  .tb-pane-head { margin-bottom: 4px; }
  .tb-pane-title { font-size: 20px; font-weight: 800; letter-spacing: -.03em; }
  .tb-pane-title .tb-badge { display: none; }
  .tb-hint { background: none; padding: 0; color: var(--tb-ink-3); font-weight: 500; }
  .tb-sentence, .tb-adjust { display: none; }
  .tb-basic .tb-pane-title .tb-d { display: none; }
  .tb-rows { display: flex; flex-direction: column; }
  .tb-row { width: 100%; border: 0; background: transparent; cursor: pointer; text-align: left; display: grid; grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; align-items: center; min-height: 72px; padding: 12px 0; border-bottom: 1px solid var(--tb-line-soft); }
  .tb-row:last-child { border-bottom: 0; }
  .tb-row-l { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .tb-row-t { font-size: 17px; font-weight: 600; line-height: 1.4; }
  .tb-row-h { font-size: 14px; color: var(--tb-ink-3); line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tb-row-v { font-size: 21px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; color: var(--tb-ink); }
  .tb-row-v.is-text { font-size: 16px; font-weight: 700; white-space: normal; text-align: right; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }

  .tb-detail { padding: 28px 24px 16px; gap: 4px; border-top: 10px solid var(--tb-bg-2); }
  .tb-detail .tb-pane-title .tb-badge.is-soft { display: none; }
  .tb-detail-lead { display: block !important; margin: 0 0 8px; font-size: 15px; line-height: 1.55; color: var(--tb-ink-3); }
  .tb-reset-all { background: none; color: var(--tb-accent-ink); padding: 8px 0; font-size: 15px; height: auto; }
  .tb-reset-idle { display: none; }
  .tb-dsearch { display: none; }
  .tb-group { border-top-color: var(--tb-line-2); }
  .tb-group-btn { grid-template-columns: minmax(0, 1fr) auto 20px; gap: 10px; min-height: 68px; padding: 12px 0; }
  .tb-group-btn > .tb-group-t { display: none; }
  .tb-group-sum { display: flex; flex-direction: column; gap: 3px; white-space: normal; }
  .tb-group-sum::before { content: attr(data-title); font-size: 18px; font-weight: 800; letter-spacing: -.02em; color: var(--tb-ink); }
  .tb-group-sum > span { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-group-meta .tb-cnt { display: none; }

  .tb4 .tb-drow { grid-template-columns: minmax(0, 1fr) auto 16px; gap: 10px; min-height: 68px; cursor: pointer; }
  .tb4 .tb-drow .tf-amount, .tb4 .tb-drow .tb-def { display: none !important; }
  .tb4 .tb-drow .tf-help, .tb4 .tb-drow .tf-sub { font-size: 14px !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .tb4 .tb-drow .tf-label, .tb4 .tb-drow legend.tf-label { font-size: 17px !important; }
  .tb-mval { display: block; font-size: 17px; font-weight: 700; white-space: nowrap; max-width: 40vw; overflow: hidden; text-overflow: ellipsis; text-align: right; }
  .tb-drow.is-changed .tb-mval { color: var(--tb-accent-ink); }
  .tb-mchev { display: block; }
  .tb4 .tb-drow.is-toggle, .tb4 .tb-drow.is-seg { cursor: default; }
  .tb4 .tb-drow.is-toggle { grid-template-columns: minmax(0, 1fr) auto; }
  .tb4 .tb-drow.is-toggle .tb-mval, .tb4 .tb-drow.is-toggle .tb-mchev, .tb4 .tb-drow.is-seg .tb-mval, .tb4 .tb-drow.is-seg .tb-mchev { display: none; }
  .tb4 .tb-drow.is-seg { grid-template-columns: minmax(0, 1fr); padding: 14px 0 16px !important; gap: 12px; }
  .tb4 .tb-drow.is-seg .tb-seg { width: 100%; }
  .tb4 .tb-drow.is-seg .tb-seg .tf-pill { flex: 1; min-height: 40px; font-size: 15px !important; }
  .tb4 .tb-drow.is-select .tf-select-shell { position: absolute; inset: 0; min-width: 0; max-width: none; opacity: 0; }
  .tb4 .tb-drow.is-select .tf-select { height: 100%; }
  .tb4 .tb-drow.is-select { position: relative; }

  .tb-receipt-col { background: var(--tb-bg-2); padding: 28px 20px 32px; }
  .tb-receipt { background: none; border-radius: 0; padding: 0; gap: 0; color: var(--tb-ink); }
  .tb-rc-head { padding: 0 4px 16px; }
  .tb-rc-title { font-size: 20px; font-weight: 800; color: var(--tb-ink); letter-spacing: -.03em; }
  .tb-rc-live { display: none; }
  .tb-rc-sheet { border-radius: 16px 16px 0 0; padding: 24px 22px 20px; gap: 12px; }
  .tb-rc-top img { height: 16px; }
  .tb-rc-dash { border-top-color: var(--tb-line-3); }
  .tb-rc-total > strong { font-size: 32px; }
  .tb-rc-total > strong.is-long { font-size: 22px; }
  .tb-rc-edge { height: 12px; background: radial-gradient(circle at 8px 12px, var(--tb-bg-2) 7px, transparent 7.5px) 0 0 / 16px 12px repeat-x, #fff; }
  .tb-rc-verdict { margin: 20px 4px 18px; font-size: 17px; line-height: 1.65; }
  .tb-rc-actions { gap: 8px; }
  .tb-rc-actions .tb-btn { height: 54px; border-radius: 16px; font-size: 16px; font-weight: 700; background: var(--tb-ink); }
  .tb-rc-actions .tb-btn-ghost { flex: 1; background: #fff; color: var(--tb-ink) !important; border: 0; }

  .tb-steps-wrap { padding: 0; }
  .tb-steps, .tb-checks { border-radius: 0; padding: 28px 24px 20px; gap: 6px; }
  .tb-steps-head h2, .tb-checks h2 { font-size: 20px; letter-spacing: -.03em; }
  .tb-steps-done { background: none; padding: 0; font-size: 14px; color: var(--tb-accent-ink); }
  .tb-steps-sub { font-size: 14px; }
  .tb-step-grid { display: flex; flex-direction: column; gap: 0; }
  .tb-step { background: none; border-radius: 0; border-bottom: 1px solid var(--tb-line-soft); }
  .tb-step:hover { box-shadow: none; }
  .tb-step.is-done { background: none; }
  .tb-step-open { padding: 14px 0 14px 48px; gap: 4px; border-radius: 0; }
  .tb-step-n { display: none; }
  .tb-step-ck { top: 14px; left: 0; right: auto; width: 30px; height: 30px; }
  .tb-step-t { font-size: 17px; font-weight: 700; }
  .tb-step-d { font-size: 15px; line-height: 1.5; -webkit-line-clamp: 2; }
  .tb-step-doc { border: 0; padding: 0; }
  .tb-step-go { font-size: 14px; margin-top: 4px; }

  .tb-body { padding: 0; gap: 0; display: block; }
  .tb-article { gap: 0; }
  .tb4 .tb-article > .section-partition, .tb4 .tb-article > .tb-sec { padding: 32px 24px 8px !important; }
  .tb-tips { gap: 22px; }
  .tb-tip { display: flex; flex-direction: column; gap: 8px; }
  .tb-tip-n { font-size: 15px; letter-spacing: 0; }
  .tb-tip-t { font-size: 18px; }
  .tb-tip-p { font-size: 17px; line-height: 1.75; }
  .tb-law { background: var(--tb-bg-2); border-radius: 18px; padding: 18px 20px; }
  .tb-law-p { font-size: 16px; }
  .tb4 .rs-kpi, .tb4 .rs-chart, .tb4 .fold-block, .tb4 .expert-analysis-box, .tb4 #tool-deepdive-wrap .tool-deepdive, .tb4 #tool-deepdive-wrap > div:first-child, .tb4 #official-gov-links-wrap { background: var(--tb-bg-2) !important; border-radius: 18px !important; }
  .tb4 .fold-summary, .tb4 .fold-body { background: transparent !important; }
  .tb4 .expert-analysis-box, .tb4 #tool-deepdive-wrap .tool-deepdive { padding: 20px !important; font-size: 16px; }
  .tb4 .faq-item { background: none !important; border-radius: 0 !important; border-bottom: 1px solid var(--tb-line-soft) !important; }
  .tb4 #faq-list-wrap { gap: 0; }
  .tb4 .faq-q { padding: 18px 0 !important; font-size: 17px !important; line-height: 1.45; background: none !important; }
  .tb4 .faq-q > span:last-child { background: none; width: 24px; }
  .tb4 .faq-q > span:last-child::before { font-weight: 500; color: var(--tb-ink-3); font-size: 22px; }
  .tb4 .faq-a { padding: 0 0 18px !important; font-size: 16px !important; line-height: 1.75 !important; background: none !important; }
  .tb4 .legal-safety-box { padding: 24px 0 0 !important; }

  .tb-mbar { display: none; }
  .tb-on-article .tb-mbar.is-ready { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .96); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-top: 1px solid var(--tb-line); padding: 12px 20px calc(14px + env(safe-area-inset-bottom)); align-items: center; justify-content: space-between; gap: 12px; }
  .tb-mbar-l { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
  .tb-mbar-l span { font-size: 13px; font-weight: 600; color: var(--tb-ink-3); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
  .tb-mbar-l b { font-size: 21px; font-weight: 800; letter-spacing: -.03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .tb-mbar .tb-btn { height: 52px; border-radius: 16px; font-size: 16px; font-weight: 800; flex: none; }

  .tb-pal { top: 0; left: 0; right: 0; transform: none; width: 100%; height: 100%; border-radius: 0; animation: tbFade .18s ease; }
  .tb-pal-list { max-height: none; flex: 1; }
  .tb-pal-foot { display: none; }
  .tb-toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
}

@media (max-width: 900px) {
  .tb-nav { display: none; }
}

@media (max-width: 768px) {
  .tb-d { display: none !important; }
  .tb-m { display: inline; }
  .tb-rel { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; margin: 0 -24px; padding: 0 24px; scroll-padding: 0 24px; }
  .tb-rel::-webkit-scrollbar { display: none; }
  .tb-rel-card { flex: none; width: 150px; display: flex; flex-direction: column; align-items: stretch; gap: 10px; padding: 0; background: none; border-radius: 0; }
  .tb-rel-img { width: 150px; height: 150px; border-radius: 20px; }
  .tb-rel-b strong { font-size: 16px; font-weight: 700; }
  .tb-rel-b span { display: none; }
  .tb4 .tb-mesh .mesh-chip { background: var(--tb-bg-2); }
  .tb-rev-grid { display: flex; grid-template-columns: none; }
  .tb4 .policy-main-h1 { font-size: 28px !important; }
}

@media (min-width: 769px) {
  .tb-div, .tb-mchev, .tb-detail-lead { display: none; }
  .tb-sheet { top: 50%; bottom: auto; left: 50%; right: auto; width: min(640px, calc(100% - 48px)); max-width: none; max-height: 86vh; transform: translate(-50%, -50%); border-radius: 28px; padding: 26px 28px 24px; animation: tbPop .22s var(--tb-ease); }
  .tb-sheet-grab { display: none; }
}
@keyframes tbPop { from { opacity: 0; transform: translate(-50%, -46%); } to { opacity: 1; transform: translate(-50%, -50%); } }

@media (prefers-reduced-motion: reduce) {
  .tb4 *, .tb4 *::before, .tb4 *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@media print {
  .tb-header, .tb-mhead, .tb-tabbar, .tb-mbar, .tb-footer, .tb-aside, .tb-rc-actions { display: none !important; }
}

/* ---------- 계정 (로그인 · 내 기록) ---------- */
.tb-header-r { display: flex; align-items: center; gap: 10px; }
.tb4 .tb-acct-btn { height: 46px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--tb-ink); color: #fff; font-size: 15px; font-weight: 700; cursor: pointer; white-space: nowrap; }
.tb4 .tb-acct-btn:hover { filter: brightness(1.15); }
.tb-mhead-r { display: flex; align-items: center; gap: 2px; }
.tb-signed-in .tb-acct-ibtn svg circle { fill: var(--tb-accent); stroke: var(--tb-accent); }
.tb-acct-free { display: flex; flex-direction: column; gap: 4px; padding: 14px 16px; border-radius: 16px; background: var(--tb-accent-bg); color: var(--tb-accent-ink); }
.tb-acct-free b { font-size: 16px; font-weight: 800; }
.tb-acct-free span { font-size: 14px; line-height: 1.5; opacity: .85; }
.tb-acct-perks { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tb-acct-perks li { position: relative; padding-left: 26px; font-size: 15px; line-height: 1.5; color: var(--tb-ink-2); }
.tb-acct-perks li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 12px; height: 7px; border-left: 2.5px solid var(--tb-accent); border-bottom: 2.5px solid var(--tb-accent); transform: rotate(-45deg); }
.tb-acct-consent { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--tb-line-2); border-radius: 16px; }
.tb-acct-consent label { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.5; color: var(--tb-ink-2); cursor: pointer; }
.tb-acct-consent input { width: 20px; height: 20px; margin: 1px 0 0; flex: none; accent-color: var(--tb-accent); }
.tb-acct-consent a { color: var(--tb-accent); text-decoration: underline; text-underline-offset: 2px; }
.tb-acct-btns { display: grid; gap: 10px; }
.tb-acct-btns:empty { display: none; }
.tb4 .tb-acct-sns { height: 54px; border: 0; border-radius: 14px; font-size: 16px; font-weight: 700; cursor: pointer; }
.tb4 .tb-acct-sns.is-kakao { background: #FEE500; color: #191600; }
.tb4 .tb-acct-sns.is-google { background: #fff; color: var(--tb-ink); box-shadow: inset 0 0 0 1px var(--tb-line-3); }
.tb4 .tb-acct-sns.is-apple { background: #000; color: #fff; }
.tb-acct-mail { display: flex; gap: 8px; }
.tb-acct-mail input { flex: 1; min-width: 0; height: 52px; padding: 0 16px; border: 1px solid var(--tb-line-3); border-radius: 14px; font-size: 16px; background: #fff; color: var(--tb-ink); }
.tb-acct-mail input:focus { outline: 2px solid var(--tb-accent); outline-offset: 1px; }
.tb4 .tb-acct-mail .tb-btn { height: 52px; border-radius: 14px; padding: 0 16px; flex: none; }
.tb-acct-note { margin: 0; font-size: 14px; line-height: 1.6; color: var(--tb-ink-3); }
.tb-acct-err { margin: 0; font-size: 14.5px; font-weight: 700; color: #C2410C; }
.tb-acct-stats { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tb-acct-stats li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; border-radius: 16px; background: var(--tb-bg); }
.tb-acct-stats b { font-size: 24px; font-weight: 800; letter-spacing: -.02em; }
.tb-acct-stats span { font-size: 13.5px; color: var(--tb-ink-3); }
.tb-acct-row { display: flex; justify-content: space-between; gap: 12px; }
.tb4 .tb-acct-link { height: 44px; padding: 0 4px; border: 0; background: none; font-size: 15px; font-weight: 600; color: var(--tb-ink-3); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.tb4 .tb-acct-link.is-danger { color: #B91C1C; }
.tb4 .tb-acct-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; width: 100%; padding: 14px 16px; border: 0; border-radius: 16px; background: var(--tb-accent-bg); color: var(--tb-accent-ink); text-align: left; cursor: pointer; }
.tb-acct-cta b { font-size: 15.5px; font-weight: 800; }
.tb-acct-cta span { font-size: 13.5px; opacity: .85; }
.tb-acct-inline { margin: 4px 0 0; font-size: 13.5px; color: var(--tb-ink-3); text-align: center; }
@media (max-width: 1024px) { .tb4 .tb-acct-btn { padding: 0 14px; } }

/* 위에서 고른 선택지와 상관없는 세부 항목 (예: 전세를 골랐을 때 월세 항목) */
.tb4 .tb-when-off { display: none !important; }

/* ---------- 본문 중간 관련 글 · 이어서 읽어 볼 글 ---------- */
.tb-inrel-slot:empty { display: none; }
.tb-inrel { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.tb-inrel-k { font-size: 13px; font-weight: 800; color: var(--tb-accent-ink); letter-spacing: -.01em; }
.tb4 .tb-inrel-a { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 16px 12px 12px; border: 1px solid var(--tb-line-2); border-radius: 18px; background: #fff; color: var(--tb-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s; }
.tb4 .tb-inrel-a:hover { border-color: var(--tb-accent); box-shadow: 0 4px 18px rgba(76, 61, 242, .08); }
.tb-inrel-img { width: 96px; height: 54px; border-radius: 10px; overflow: hidden; background: var(--tb-bg); }
.tb-inrel-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tb-inrel-b { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.tb-inrel-b strong { font-size: 16px; font-weight: 800; line-height: 1.4; letter-spacing: -.02em; overflow-wrap: anywhere; }
.tb-inrel-b span { font-size: 14px; line-height: 1.5; color: var(--tb-ink-3); overflow-wrap: anywhere; }
.tb-inrel-go { font-size: 20px; font-weight: 700; color: var(--tb-accent); }
.tb-more { margin-top: 36px; }
.tb-more-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 14px; }
.tb4 .tb-more-card { display: flex; flex-direction: column; gap: 6px; color: var(--tb-ink); text-decoration: none; min-width: 0; }
.tb-more-img { aspect-ratio: 16 / 9; border-radius: 14px; overflow: hidden; background: var(--tb-bg); }
.tb-more-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .25s; }
.tb4 .tb-more-card:hover .tb-more-img img { transform: scale(1.03); }
.tb-more-meta { font-size: 12.5px; font-weight: 700; color: var(--tb-ink-3); }
.tb-more-t { font-size: 15.5px; font-weight: 800; line-height: 1.45; letter-spacing: -.02em; overflow-wrap: anywhere; }
@media (max-width: 768px) {
  .tb4 .tb-article > .tb-inrel-slot { padding: 28px 24px 4px; }
  .tb4 .tb-inrel-a { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 12px; padding: 10px 12px 10px 10px; }
  .tb-inrel-img { width: 72px; height: 48px; }
  .tb-inrel-b strong { font-size: 15px; }
  .tb-more-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 12px; }
  .tb-more-t { font-size: 14.5px; }
}

/* 심화 해설 — 최근 변경 내역 (정책 변경과 공식 원문 링크) */
.tb4 .dd-changelog { margin: 0 0 20px; padding: 16px 18px; border-radius: 16px; background: var(--tb-accent-bg); }
.tb4 .dd-changelog-t { font-size: 14px; font-weight: 800; color: var(--tb-accent-ink); margin-bottom: 8px; }
.tb4 .dd-changelog ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.tb4 .dd-changelog li { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 10px; font-size: 14.5px; line-height: 1.6; color: var(--tb-ink-2); }
.tb4 .dd-changelog time { font-weight: 800; color: var(--tb-ink); white-space: nowrap; }
.tb4 .dd-changelog a { color: var(--tb-accent); text-decoration: underline; text-underline-offset: 2px; overflow-wrap: anywhere; }

/* ---------- B2B 퍼가기 ---------- */
.tb-embed-slot:empty { display: none; }
.tb4 .tb-embed-box { border: 1px solid var(--tb-line-2); border-radius: 18px; background: #fff; padding: 0; }
.tb4 .tb-embed-box summary { list-style: none; cursor: pointer; display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; }
.tb4 .tb-embed-box summary::-webkit-details-marker { display: none; }
.tb4 .tb-embed-box summary b { font-size: 16px; font-weight: 800; }
.tb4 .tb-embed-box summary span { font-size: 14px; color: var(--tb-ink-3); }
.tb4 .tb-embed-box[open] summary { border-bottom: 1px solid var(--tb-line); }
.tb4 .tb-embed-box p { margin: 14px 18px 10px; font-size: 14.5px; line-height: 1.6; color: var(--tb-ink-2); }
.tb4 .tb-embed-box textarea { display: block; width: calc(100% - 36px); margin: 0 18px; padding: 12px; border: 1px solid var(--tb-line-3); border-radius: 12px; font: 12.5px/1.5 ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--tb-ink); background: var(--tb-bg); resize: vertical; }
.tb4 .tb-embed-act { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 14px 18px 18px; }
.tb4 .tb-embed-act a { font-size: 14px; color: var(--tb-accent); text-decoration: underline; text-underline-offset: 2px; }
@media (max-width: 768px) { .tb4 .tb-article > .tb-embed-slot { padding: 24px 24px 0; } }

/* 퍼가기 화면(?embed=1): 계산기만 남긴다 */
.tb-embed #mobile-top-app-bar, .tb-embed #tb-tabbar, .tb-embed #tb-mbar, .tb-embed .tb-mhead, .tb-embed .tb-header, .tb-embed .tb-tabbar, .tb-embed .tb-mbar, .tb-embed footer, .tb-embed .tb-footer,
.tb-embed .tb-crumb, .tb-embed .tb-body, .tb-embed #part4-partition-box, .tb-embed .adsense-responsive-container,
.tb-embed #tb-tags, .tb-embed .tb-art-tags, .tb-embed #view-home { display: none !important; }
.tb-embed .tb-main { padding-top: 20px !important; }
.tb-embed h1 { font-size: clamp(24px, 4.2vw, 36px) !important; }
.tb4.tb-embed { padding-bottom: 0 !important; background: #fff; }
.tb4 .tb-embed-by { display: block; margin: 12px auto 24px; max-width: 1200px; padding: 0 24px; font-size: 14px; font-weight: 700; color: var(--tb-accent); text-decoration: none; text-align: right; }

/* 저장 직후 토스트의 버튼 */
.tb-toast.has-act { pointer-events: auto; display: flex; align-items: center; gap: 12px; padding: 10px 10px 10px 20px; white-space: normal; }
.tb-toast.has-act button { border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); color: #fff; font: inherit; font-size: 14px; font-weight: 800; padding: 8px 14px; cursor: pointer; white-space: nowrap; }
.tb-toast.has-act button:first-of-type { background: #fff; color: var(--tb-ink); }
/* 글 맨 아래 저장한 계산서 */
.tb-saved-slot:empty { display: none; }
.tb-saved-box { margin: 8px 0 0; padding: 22px; border: 1px solid var(--tb-line-soft); border-radius: 20px; background: var(--tb-bg-2); }
.tb-saved-box h2 { margin: 0 0 6px; font-size: 18px; font-weight: 800; letter-spacing: -.02em; }
.tb-saved-box p { margin: 0 0 12px; font-size: 15px; line-height: 1.7; color: var(--tb-ink-3); }
.tb-saved-box .tb-saved { display: flex; flex-direction: column; gap: 2px; padding: 10px 0; border-bottom: 1px solid var(--tb-line-soft); }
.tb-saved-act { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.tb-saved-act .tb-btn { height: 46px; padding: 0 18px; }
.tb-rc-actions { flex-wrap: wrap; }
.tb-rc-actions .tb-rc-save { flex: 1 1 100%; }
.tb-rc-actions .tb-btn-ghost { flex: 1 1 0; }
@media (max-width: 768px) {
  .tb4 .tb-article > .tb-saved-slot { padding: 24px 24px 0; }
  .tb-mbar-saved { position: relative; flex: none; width: 48px; height: 52px; border: 0; background: transparent; color: var(--tb-ink); display: grid; place-items: center; cursor: pointer; }
  .tb-mbar-saved i { position: absolute; top: 6px; right: 2px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--tb-ink); color: #fff; font: 800 11px/18px var(--tb-font, inherit); text-align: center; font-style: normal; }
  .tb-mbar-saved i[hidden] { display: none; }
}
@media (min-width: 769px) { .tb-mbar-saved { display: none; } .tb4 .tb-article > .tb-saved-slot { padding: 28px 0 0; } }

/* 도구함 보기 전환: 전체 · 인기 · 새로 나온 */
.tb-seg { display: flex; width: fit-content; max-width: 100%; gap: 4px; padding: 4px; margin: 0 0 14px; border-radius: 999px; background: var(--tb-bg-2); }
.tb-seg button { border: 0; background: transparent; color: var(--tb-ink-3); font: inherit; font-size: 15px; font-weight: 700; padding: 9px 18px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.tb-seg button.is-on { background: var(--tb-ink); color: #fff; }
.tb-my-h { margin: 22px 0 4px; font-size: 16px; font-weight: 800; letter-spacing: -.02em; }
.tb-my-h small { font-size: 13px; font-weight: 700; color: var(--tb-ink-3); margin-left: 4px; }
.tb-my-recent { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px 0 4px; }
.tb-my-recent a { padding: 9px 14px; border-radius: 999px; background: var(--tb-bg-2); font-size: 14px; font-weight: 700; color: var(--tb-ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* 로그인했던 기기: 로그인 확인이 끝나기 전에는 기본 '로그인' 글자를 보이지 않게 한다(새로고침 깜빡임 방지) */
html.tb-acct-hint:not(.tb-acct-ready) [data-acct-label] { visibility: hidden; }
