/* portal.css — 포털형 시안 전용 스타일(이 사이트 폴더에만 둔다. _shared 원본은 건드리지 않는다).
   이 파일 하나만 불러온다: styles.css · nb-polish.css · nb-readability.css · nb-skin.css · nb-carousel.css 는 포털 화면에서 쓰지 않는다.
   4차 규칙(방향 B 디시형): 연한 브랜드 톤 회색 바탕(--page) 위 흰 상자. 머리는 [유틸 줄][로고·검색][차분한 브랜드색 메뉴 띠 38px].
   상자 = 1px 테두리 + 위 2px 진한 브랜드색 선 + 연한 브랜드색 머리줄(--head) + 굵은 제목. 목록 행 34px(휴대폰 44px), 짝수 줄 옅은 면.
   글자 14~15px(휴대폰 16px)·보조 13px 이상, 그림자·그라데이션·블러·애니메이션 없음. 강조 빨강은 새 글 N 표시에만.
   그림은 width/height 를 적어 자리를 먼저 잡는다(밀림 0). */
:root {
  --bg: #fff; --page: #e9eaec; --foot: #dfe0e2; --soft: #f7f7f8; --zebra: #fbfbfb; --head: #eaedf0; --line: #ced1d4; --line2: #e7e8e9;
  --tx: #1b1c1d; --sub: #555659; --weak: #5f6163;
  --pt: #30415a; --pt-d: #2e3642; --pt-bg: #eaedf0; --band: #3d4857; --band-d: #2e3642; --hot: #d92b2b;
  /* app.js·빌드 스크립트가 참조하는 예전 변수 이름 */
  --brand: var(--pt); --accent: var(--pt); --text: var(--tx); --muted: var(--sub);
  color-scheme: light;
}
html[data-theme="dark"] {
  --bg: #17191c; --page: #0f1112; --foot: #1a1d1f; --soft: #1f2226; --zebra: #1b1e21; --head: #1e2125; --line: #363a40; --line2: #2a2d32;
  --tx: #e6e6e6; --sub: #b4b9bf; --weak: #9da2a9;
  --pt: #8b9bb1; --pt-d: #a2b0c3; --pt-bg: #202327; --band: #333d4c; --band-d: #252c37; --hot: #ff7b72;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--tx);
  font: 400 15px/1.6 -apple-system, BlinkMacSystemFont, "Malgun Gothic", "맑은 고딕", "Apple SD Gothic Neo", "Noto Sans KR", sans-serif;
  word-break: keep-all; overflow-wrap: anywhere;
}
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure, pre { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong, th { font-weight: 700; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--pt); outline-offset: 1px; }
.pt-wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ── 머리: 유틸 줄 / 로고·검색 / 초록 메뉴 띠 ─────────────── */
.pt-header { position: relative; background: var(--bg); }
.pt-util { background: var(--soft); border-bottom: 1px solid var(--line2); font-size: 13px; color: var(--sub); }
.pt-util > .pt-wrap { display: flex; align-items: center; justify-content: space-between; height: 30px; }
.pt-fam { display: flex; align-items: center; gap: 18px; }
.pt-dd { position: relative; }
.pt-dd > summary { list-style: none; cursor: pointer; line-height: 30px; white-space: nowrap; user-select: none; }
.pt-dd > summary::-webkit-details-marker { display: none; }
.pt-dd > summary::after { content: ""; display: inline-block; margin-left: 5px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.pt-dd[open] > summary { color: var(--pt); font-weight: 700; }
.pt-dd-menu {
  position: absolute; z-index: 30; top: 100%; left: -10px; width: 580px; max-width: calc(100vw - 16px);
  display: grid; grid-template-columns: 1fr 1fr; padding: 6px 0;
  background: var(--bg); border: 1px solid var(--sub); border-top: 2px solid var(--pt); color: var(--tx);
}
.pt-dd-menu a { display: flex; align-items: baseline; gap: 8px; padding: 0 14px; height: 36px; line-height: 36px; font-size: 14px; white-space: nowrap; overflow: hidden; }
.pt-dd-menu a:hover { background: var(--pt-bg); text-decoration: none; }
.pt-dd-menu a span { color: var(--weak); font-size: 13px; overflow: hidden; text-overflow: ellipsis; }
.pt-util-r { display: flex; align-items: center; gap: 16px; min-height: 24px; }
.pt-util-r #nbLangSel, .pt-util-r .theme-toggle, .pt-util-r .nba-btn {
  margin: 0 !important; padding: 0 !important; height: 24px; border: 0 !important; border-radius: 0 !important; background: none !important;
  color: var(--sub) !important; font-size: 13px !important; font-weight: 400 !important; box-shadow: none !important; line-height: 24px;
}
.pt-util-r #nbLangSel { max-width: 120px; cursor: pointer; }
.pt-util-r .nba-btn svg, .pt-util-r .nba-btn img { display: none; }
.pt-util-r :is(.theme-toggle, .nba-btn):hover { color: var(--tx) !important; text-decoration: underline; }
.pt-top > .pt-wrap { display: flex; align-items: center; gap: 20px; height: 64px; }
/* 로고: 초록 네모 기호(돋보기 + 올라가는 선, 헤더 마크업의 인라인 SVG) + 'NB'만 초록인 글자 워드마크 */
.brand { display: inline-flex; align-items: center; gap: 7px; flex: none; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.b-mark { flex: none; display: block; width: 30px; height: 30px; }
.b-mark .bm-bg { fill: var(--band); }
.b-mark .bm-fg { fill: none; stroke: #fff; }
.brand strong { font-size: 24px; font-weight: 900; line-height: 1; letter-spacing: -.05em; color: var(--tx); }
.brand strong b { font-weight: 900; color: var(--pt); }
.brand small { margin-left: 2px; padding: 2px 5px; font-size: 13px; line-height: 1.2; font-weight: 700; color: var(--sub); border: 1px solid var(--line); }
.pt-search { display: flex; flex: 0 1 440px; height: 40px; border: 2px solid var(--band); background: var(--bg); }
.pt-search input { flex: 1 1 auto; width: 0; min-width: 0; padding: 0 12px; font-size: 14px; border: 0; background: none; outline: 0; -webkit-appearance: none; appearance: none; }
.pt-search input::-webkit-search-cancel-button { display: none; }
.pt-search button { flex: none; display: flex; align-items: center; justify-content: center; width: 44px; padding: 0; border: 0; background: var(--band); color: #fff; }
.pt-search button svg { width: 18px; height: 18px; }
::placeholder { color: var(--weak); opacity: 1; }
/* 메뉴 띠: 첫 메뉴 바탕이 본문 왼쪽 선(.pt-wrap 안쪽 20px)에서 시작한다 — 3차 B 시안의 -14px 튀어나옴을 없앴다 */
.pt-bar { background: var(--band); border-bottom: 3px solid var(--band-d); }
.pt-bar > .pt-wrap { display: flex; align-items: stretch; height: 38px; }
.pt-tabs { display: flex; gap: 0; min-width: 0; }
.pt-tabs a { display: flex; align-items: center; padding: 0 14px; font-size: 14px; font-weight: 700; color: #fff; white-space: nowrap; }
.pt-tabs a:hover, .pt-tabs a[aria-current] { background: var(--band-d); text-decoration: none; }

/* ── 공통 상자: 흰 면 + 1px 테두리 + 위 2px 진한 브랜드색 선 ───────── */
.pt-home, .pt-page { padding-top: 14px; padding-bottom: 20px; }
.pt-box { margin: 0 0 12px; }
.pt-home > section, .pt-page .pt-main > .pt-box, .pt-page > .pt-article, .pt-page .pt-side > .pt-box, .pt-page .pt-side > .fam-wrap {
  margin: 0 0 12px; padding: 0 0 12px; background: var(--bg); border: 1px solid var(--line); border-top: 2px solid var(--band);
}
.pt-home > section.pt-tool { padding: 0; overflow: hidden; }
/* 구역 머리: 연한 브랜드색 줄 + 굵은 제목(가운데 맞춤 — 제목과 오른쪽 링크·탭의 높이가 같다) + 오른쪽 '전체 보기' */
.pt-box-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 38px; margin: 0 0 12px; padding: 0 14px; background: var(--head); border-bottom: 1px solid var(--line); }
.pt-box-head h1 { font-size: 16px; font-weight: 900; line-height: 1.3; color: var(--band-d); }
.pt-box-head h2 { font-size: 15px; font-weight: 900; line-height: 1.3; color: var(--band-d); }
html[data-theme="dark"] :is(.pt-box-head, .tools-head, .fam-wrap) :is(h1, h2), html[data-theme="dark"] .pt-box-head h2 a { color: var(--pt-d); }
.pt-box-head > a { font-size: 13px; color: var(--sub); white-space: nowrap; }
.pt-desc { font-size: 13px; color: var(--sub); }
.pt-list li { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 0 2px; border-bottom: 1px solid var(--line2); }
.pt-list li:nth-child(even) { background: var(--zebra); }
.pt-list li > img { flex: none; width: 64px; height: 48px; object-fit: cover; border: 1px solid var(--line2); }
.pt-list li a { flex: 0 1 auto; min-width: 0; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-list li .c { flex: none; width: 78px; font-size: 13px; color: var(--pt); white-space: nowrap; }
.pt-list li time { flex: none; margin-left: auto; font-size: 13px; color: var(--weak); }
.pt-list li a:visited { color: var(--weak); }
.n { flex: none; font-style: normal; font-size: 13px; font-weight: 700; color: var(--hot); }
.pt-list-desc li { flex-wrap: wrap; row-gap: 0; padding: 8px 6px; }
.pt-list-desc li a { flex: 0 0 auto; color: var(--pt); font-weight: 700; }
.pt-list-desc li span { flex: 1 1 260px; font-size: 14px; color: var(--sub); }
.pt-links { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.pt-links a { display: block; min-height: 32px; line-height: 32px; padding: 0 6px; border-bottom: 1px solid var(--line2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pt-links a span { font-size: 13px; color: var(--weak); }

/* ── 홈: 도구 상자(촘촘하게 — 최신 글 그림 줄이 첫 화면에 들어오게) ─────────────── */
.tools-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 44px; padding: 0 14px; background: var(--head); border-bottom: 1px solid var(--line); }
.tools-head > div:first-child { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.tools-head h1 { font-size: 16px; font-weight: 900; line-height: 1.3; color: var(--band-d); white-space: nowrap; }
.tools-head .pt-desc { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tools-head .tool-search { flex: none; display: flex; align-items: center; gap: 6px; }
.tools-head .tool-search svg { display: none; }
.tools-head .tool-search input { width: 170px; height: 30px; padding: 0 10px; font-size: 13px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); }
.tools-head .fav-filter { width: 30px; height: 30px; padding: 0; font-size: 14px; border: 1px solid var(--line); border-radius: 0; background: var(--bg); color: var(--weak); }
.tools-head .fav-filter[aria-pressed="true"] { color: var(--hot); border-color: var(--hot); }
.pt-tool-head-r { flex: none; font-size: 13px; color: var(--weak); }
.pt-tool-layout { display: grid; grid-template-columns: 220px minmax(0, 1fr); }
.pt-tool-list { background: var(--soft); border-right: 1px solid var(--line); }
.tool-grid { display: block; }
.tool-card {
  position: relative; display: flex; align-items: center; gap: 10px; width: 100%; height: 34px; padding: 0 28px 0 12px; text-align: left;
  background: none; border: 0; border-bottom: 1px solid var(--line2); border-left: 3px solid transparent; border-radius: 0;
}
.tool-card .t-ico { flex: none; width: 16px; height: 16px; color: var(--weak); }
.tool-card .t-ico svg { display: block; width: 16px; height: 16px; }
.tool-card.is-active .t-ico { color: var(--pt); }
.tool-card strong { display: block; font-size: 14px; font-weight: 400; line-height: 1.45; }
.tool-card small { display: none; }
.tool-card:hover { background: var(--bg); }
.tool-card.is-active { background: var(--bg); border-left-color: var(--band); }
.tool-card.is-active strong { font-weight: 800; color: var(--band-d); }
html[data-theme="dark"] .tool-card.is-active strong { color: var(--pt-d); }
.tool-star { position: absolute; top: 5px; right: 4px; width: 24px; height: 24px; padding: 0; border: 0; background: none; font-size: 14px; line-height: 24px; color: var(--weak); }
.tool-card:hover .tool-star { color: var(--weak); }
.tool-card.faved .tool-star { color: var(--hot); }
.workspace-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); height: 100%; }
.ws-form { padding: 12px 16px; border-right: 1px solid var(--line2); }
.ws-result { padding: 12px 16px; min-width: 0; }
.ws-head .ws-ico { display: none; }
.ws-head h3 { font-size: 15px; font-weight: 900; line-height: 1.4; }
.ws-head p { font-size: 13px; color: var(--sub); }
.tool-form { display: grid; gap: 8px; margin-top: 8px; }
.field { display: grid; gap: 5px; }
.field label { font-size: 13px; font-weight: 700; color: var(--tx); }
.field :is(input, select, textarea) { width: 100%; padding: 8px 10px; font-size: 15px; background: var(--bg); border: 1px solid #b9bec5; border-radius: 0; }
html[data-theme="dark"] .field :is(input, select, textarea) { border-color: var(--line); }
.field :is(input, select) { height: 34px; font-size: 14px; }
.field textarea { height: 72px; min-height: 72px; font-size: 14px; resize: vertical; line-height: 1.55; }
.field :is(input, select, textarea):focus { outline: 0; border-color: var(--pt); box-shadow: inset 0 0 0 1px var(--pt); }
.run-row { display: flex; gap: 6px; margin-top: 8px; }
.btn { display: inline-flex; align-items: center; justify-content: center; height: 34px; padding: 0 20px; font-size: 14px; border: 1px solid #b9bec5; border-radius: 0; background: var(--bg); color: var(--tx); white-space: nowrap; }
html[data-theme="dark"] .btn { border-color: var(--line); }
.btn:hover { text-decoration: none; background: var(--soft); }
.btn.primary { min-width: 120px; background: var(--band); border-color: var(--band); color: #fff; font-weight: 700; }
.btn.primary:hover { background: var(--band-d); border-color: var(--band-d); }
.btn.loading { opacity: .6; pointer-events: none; }
.tool-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; }
.tool-actions button { height: 28px; padding: 0; font-size: 13px; color: var(--sub); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.tool-actions button:hover { color: var(--pt); }
.ws-result-head { margin-bottom: 8px; font-size: 14px; font-weight: 700; }
#resultBox { min-height: 262px; max-height: 560px; overflow: auto; padding: 12px 14px; font: inherit; font-size: 14px; line-height: 1.65; white-space: pre-wrap; background: var(--soft); border: 1px solid var(--line); }
#resultBox.rich { white-space: normal; display: grid; gap: 12px; align-content: start; }
.ws-result.is-idle #resultBox { min-height: 0; color: var(--sub); }
/* app.js 가 입력칸·안내문을 그리기 전에도 같은 높이를 잡는다(PC 첫 도구 기준 — 4차 촘촘한 칸 높이로 다시 잼, 밀림 0.018 → 0) */
@media (min-width: 901px) { .tool-form:empty { min-height: 165.6px; } .ws-result.is-idle #resultBox { min-height: 76px; } }
.pt-howto { display: none; margin-top: 8px; font-size: 13px; }
.ws-result.is-idle .pt-howto { display: block; }
.pt-howto b { display: block; margin-bottom: 6px; }
.pt-howto ol { counter-reset: hw; border-top: 1px solid var(--line); }
.pt-howto li { position: relative; padding: 4px 4px 4px 26px; line-height: 1.55; border-bottom: 1px solid var(--line2); counter-increment: hw; }
.pt-howto li::before { content: counter(hw) "."; position: absolute; left: 6px; top: 4px; font-size: 13px; font-weight: 700; color: var(--pt); }
.pt-howto p { margin-top: 4px; font-size: 13px; color: var(--weak); }
.res-sec { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.res-sec:last-child { border-bottom: 0; padding-bottom: 0; }
.res-sec h4 { font-size: 15px; margin-bottom: 4px; }
em.res-num { font-style: normal; font-weight: 700; color: var(--pt); }
.res-li { position: relative; padding-left: 13px; }
.res-li::before { content: ""; position: absolute; left: 2px; top: .75em; width: 4px; height: 4px; background: var(--pt); }
.res-note { margin-top: 4px; font-size: 13px; color: var(--sub); }
.res-check { display: flex; gap: 8px; align-items: flex-start; padding: 3px 0; cursor: pointer; }
.res-check input { accent-color: var(--pt); width: 16px; height: 16px; margin-top: 4px; }
.res-check:has(input:checked) span { text-decoration: line-through; color: var(--weak); }
.res-table-wrap { overflow-x: auto; }
.res-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.res-table th { text-align: left; padding: 7px 8px; background: var(--bg); border-top: 2px solid var(--pt); border-bottom: 1px solid var(--line); white-space: nowrap; }
.res-table td { padding: 7px 8px; border-bottom: 1px solid var(--line); }
.res-viz { display: grid; justify-items: center; gap: 6px; padding: 8px 0; }
.res-viz svg { width: min(210px, 70%); height: auto; overflow: visible; }
.viz-big { font-size: 17px; font-weight: 700; fill: var(--tx); }
.viz-sub { font-size: 8.5px; fill: var(--sub); }
.viz-needle { transform: rotate(-90deg); }
.viz-label { color: var(--sub); font-size: 13px; }
.viz-legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--sub); }
.viz-legend i { display: inline-block; width: 9px; height: 9px; margin-right: 5px; }
.viz-prog-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; width: 100%; }
.viz-prog-head b { font-size: 18px; color: var(--pt); }
.viz-prog-head span { color: var(--sub); font-size: 13px; }
.viz-prog { width: 100%; height: 8px; background: var(--line); overflow: hidden; }
.viz-prog-fill { height: 100%; background: var(--pt); }
.confetti { display: none !important; }
.history-panel { display: grid; gap: 0; margin-top: 12px; }
.history-panel strong { font-size: 13px; font-weight: 700; color: var(--sub); }
.history-panel button { display: flex; justify-content: space-between; gap: 8px; min-height: 34px; align-items: center; padding: 0 2px; font-size: 14px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line2); }
.history-panel button:hover { color: var(--pt); }
.history-panel small { color: var(--weak); flex: none; font-size: 13px; }

/* ── 홈 아래: [도구 화면 3칸] [최신 글 | 옆 3상자] — 구역마다 머리 모양을 다르게 둔다 ── */
.pt-cols { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pt-cols > .pt-main { min-width: 0; }
.pt-cols .pt-box:last-child { margin-bottom: 0; }
.pt-box-head h2 a { color: inherit; }
/* 도구 화면 카드 3칸: 실제 실행 화면(예시 입력) 캡처 + 손으로 쓴 안내 제목·설명. 테두리 없이 그림만 1px 선 */
.pt-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; padding: 0 14px; }
.pt-cards a { display: block; }
.pt-cards a:hover { text-decoration: none; }
.pt-cards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line2); background: var(--soft); }
.pt-cards strong { display: block; margin-top: 6px; font-size: 14px; font-weight: 800; line-height: 1.4; }
.pt-cards a:hover strong { color: var(--pt); text-decoration: underline; }
.pt-cards span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 4px; font-size: 13px; line-height: 1.55; color: var(--sub); }
.pt-ico { flex: none; }
.pt-list-ico .pt-ico { color: var(--weak); }
.pt-list-ico li.on .pt-ico { color: var(--pt); }
/* 4차 최신 글: 머리(제목 + 오른쪽 분류 이름 줄) → 분류 그림 카드 4개 → [그림 붙은 목록 4줄 | YN 계열] */
.pt-catline { display: flex; flex-wrap: wrap; gap: 0; font-size: 13px; color: var(--sub); }
.pt-catline a { padding: 0 8px; }
.pt-catline a + a { border-left: 1px solid var(--line); }
.pt-catline a:last-child { color: var(--tx); }
.pt-pcards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; padding: 0 14px; }
.pt-pcards3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0 0 14px; padding: 0; }
.pt-pcards a { display: block; }
.pt-pcards a:hover { text-decoration: none; }
.pt-pcards img { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border: 1px solid var(--line2); background: var(--soft); }
.pt-pcards .c { display: block; margin-top: 6px; font-size: 13px; font-weight: 700; color: var(--pt); }
.pt-pcards strong { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 2px; font-size: 14px; line-height: 1.45; }
.pt-pcards a:hover strong { text-decoration: underline; }
.pt-pcards time { display: block; margin-top: 4px; font-size: 13px; color: var(--sub); }
.pt-latest .pt-cols { margin: 12px 0 0; padding: 0 14px; }
.pt-latest .pt-side .pt-box { margin: 0; padding: 0; border: 1px solid var(--line); }
.pt-latest .pt-side .pt-box-head { min-height: 34px; margin: 0; }
.pt-latest .pt-side .pt-links { padding: 0 12px; }
.pt-latest .pt-list { border-top: 2px solid var(--band); }
.pt-latest .pt-list li { padding: 4px 2px; }
.blog-chips .chip { height: 40px; padding: 0 2px; margin-right: 22px; font-size: 15px; color: var(--sub); background: none; border: 0; border-bottom: 3px solid transparent; border-radius: 0; }
.blog-chips .chip:hover { color: var(--pt); }
.blog-chips .chip.on { color: var(--pt); font-weight: 700; border-bottom-color: var(--pt); }
/* 글·목록 화면 상자: 안쪽 14px(옆 상자 12px), 머리줄은 상자 끝까지 칠한다(음수 여백으로 안쪽 여백을 되돌림) */
.pt-page .pt-main > .pt-box { padding: 0 14px 12px; }
.pt-page .pt-main > .pt-box > .pt-box-head { margin: 0 -14px 12px; }
.pt-page .pt-side > .pt-box { padding: 0 0 4px; }
.pt-page .pt-side > .pt-box > .pt-box-head { margin: 0; padding: 0 12px; }
.pt-page .pt-side > .pt-box :is(.pt-list, .pt-count) li { padding: 0 12px; }
.pt-page .pt-side > .fam-wrap { padding: 0 12px 4px; }
.pt-side .pt-box:last-child { margin-bottom: 0; }
.pt-side .pt-list li:last-child, .pt-side .pt-count li:last-child { border-bottom: 0; }
.pt-side .pt-links { grid-template-columns: 1fr 1fr; }
.pt-side .pt-links a { border-bottom: 0; min-height: 34px; line-height: 34px; padding: 0; }
.pt-side .channel-grid { margin-top: 6px; padding-top: 6px; border-top: 1px solid var(--line2); }
.pt-more > summary { list-style: none; cursor: pointer; line-height: 38px; font-size: 13px; color: var(--sub); }
.pt-more > summary::-webkit-details-marker { display: none; }
.pt-more > summary::after { content: ""; display: inline-block; margin-left: 5px; vertical-align: 2px; border: 4px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.pt-more > summary:hover { color: var(--pt); }
.pt-more[open] > summary { display: none; }
.pt-count li a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-count li { display: flex; align-items: center; justify-content: space-between; min-height: 34px; padding: 0 2px; border-bottom: 1px solid var(--line2); }
.pt-count li a { flex: 1 1 auto; }
.pt-count li b { font-size: 14px; font-weight: 400; color: var(--weak); }
.pt-count li.sum a { font-weight: 700; }
/* 혜택 표: 왼쪽 머리칸 회색 면 */
.pt-deals { width: 100%; border-collapse: collapse; }
.pt-deals { border-top: 1px solid var(--line); }
.pt-deals th { width: 110px; padding: 0 14px; text-align: left; vertical-align: middle; font-size: 14px; color: var(--sub); background: var(--head); border-bottom: 1px solid var(--line2); white-space: nowrap; }
.pt-deals td { padding: 4px 16px 4px 14px; border-bottom: 1px solid var(--line2); }
.pt-deals td a { display: inline-block; font-size: 14px; line-height: 36px; margin-right: 22px; white-space: nowrap; }
.aff-disclosure { padding: 10px 2px 0; font-size: 13px; color: var(--weak); }
.pt-home .aff-disclosure { padding: 10px 14px 0; }

/* ── 광고 자리: 슬롯·속성은 그대로. 채워진 뒤에만 여백, 안 채워지면 흔적 없이 접는다 ── */
.ad-slot { margin: 0; padding: 0; min-height: 0; border: 0; background: none; text-align: center; overflow: hidden; }
.ad-slot:has(ins[data-ad-status="filled"]) { margin: 0 0 40px; }
ins.adsbygoogle[data-ad-status="unfilled"] { display: none !important; }

/* ── 블로그 목록(게시판 표) ─────────────────────────────── */
.pt-langs { display: flex; gap: 12px; font-size: 13px; color: var(--sub); }
.pt-langs a[aria-current] { color: var(--pt); font-weight: 700; }
.pt-board-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding: 4px 0 12px; }
.blog-chips { display: flex; }
.pt-total { font-size: 13px; color: var(--sub); }
.pt-total b { color: var(--tx); }
.pt-dupchk { margin-left: 14px; cursor: pointer; white-space: nowrap; }
.pt-dupchk input { width: 15px; height: 15px; margin: 0 5px 0 0; vertical-align: -2px; accent-color: var(--pt); }
.pt-two > .pt-side-board { align-self: stretch; }
.pt-board { width: 100%; border-collapse: collapse; table-layout: fixed; }
.pt-board th { height: 42px; font-size: 14px; font-weight: 400; color: var(--sub); border-top: 1px solid var(--tx); border-bottom: 1px solid var(--line); }
html[data-theme="dark"] .pt-board th { border-top-color: var(--line); }
.pt-board td { height: 36px; padding: 0 8px; font-size: 14px; border-bottom: 1px solid var(--line2); }
.pt-board tbody tr:nth-child(even) { background: var(--zebra); }
.pt-board .c-no { width: 70px; text-align: center; font-size: 13px; color: var(--weak); }
.pt-board .c-tag { width: 96px; text-align: center; font-size: 13px; white-space: nowrap; }
.pt-board td.c-tag { color: var(--weak); }
.pt-board .c-date { width: 110px; text-align: center; font-size: 13px; white-space: nowrap; }
.pt-board td.c-date { color: var(--weak); }
.pt-board td.c-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pt-board td.c-title .n { margin-left: 6px; }
.pt-board tbody tr:hover { background: var(--soft); }
.pt-board td.c-title a:visited { color: var(--weak); }
.pt-search-info { padding: 10px 6px; font-size: 14px; color: var(--sub); border-bottom: 1px solid var(--line2); }
.pt-search-info b { color: var(--tx); }
.pt-search-info a { margin-left: 10px; color: var(--pt); }
.pt-pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 4px; padding: 20px 0 6px; }
.pt-pager button { min-width: 36px; height: 36px; padding: 0 10px; font-size: 14px; background: var(--bg); border: 1px solid var(--line); border-radius: 0; color: var(--sub); }
.pt-pager button:hover { border-color: var(--pt); color: var(--pt); }
.pt-pager button { border-color: transparent; }
.pt-pager button[aria-current] { color: var(--pt); font-weight: 700; border-color: var(--pt); }

/* ── 글·도구 안내 본문 ─────────────────────────────────── */
.pt-two { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.pt-two > .pt-main { min-width: 0; }
.pt-article { min-width: 0; font-size: 16px; line-height: 1.75; }
.pt-page > .pt-article { padding: 20px 24px 24px; }
.pt-side-art { font-size: 14px; }
.pt-side-art .fam-wrap h2 { display: flex; align-items: center; min-height: 38px; margin: 0 -12px; padding: 0 12px; font-size: 15px; font-weight: 900; line-height: 1.3; color: var(--band-d); background: var(--head); border-bottom: 1px solid var(--line); }
.pt-side-art .pt-list li { min-height: 34px; }
.pt-side-art .pt-list li.on a { color: var(--pt); font-weight: 700; }
.pt-side-art .pt-links { grid-template-columns: 1fr; }
.pt-side-art .pt-links a { min-height: 34px; line-height: 34px; padding: 0 2px; border-bottom: 0; }
.pt-scroll-hint { display: none; }
.pt-article .eyebrow { font-size: 14px; color: var(--weak); }
.pt-article .eyebrow a { color: var(--sub); }
.pt-article h1 { margin: 6px 0 0; font-size: 28px; line-height: 1.35; letter-spacing: -.02em; }
.pt-meta { display: flex; flex-wrap: wrap; gap: 0 14px; margin: 12px 0 28px; padding-bottom: 18px; font-size: 14px; color: var(--weak); border-bottom: 1px solid var(--line); }
.pt-meta span + span::before { content: ""; display: inline-block; width: 1px; height: 11px; margin-right: 14px; background: var(--line); }
.pt-article h2 { margin: 44px 0 12px; font-size: 21px; line-height: 1.4; letter-spacing: -.01em; }
.pt-article h3 { margin: 22px 0 6px; font-size: 17px; }
.pt-article p { margin: 0 0 14px; }
.pt-article section > :is(ul, ol) { margin: 0 0 14px; padding-left: 22px; }
.pt-article section > ul { list-style: disc; }
.pt-article section > ol { list-style: decimal; }
.pt-article section > :is(ul, ol) li { margin: 4px 0; }
.pt-article section > ul li::marker { color: var(--pt); }
.pt-article section > ul.pt-list { padding-left: 0; list-style: none; font-size: 15px; border-top: 1px solid var(--line); }
.pt-article section > ul.pt-list li { margin: 0; }
/* 사용 순서: 초록 네모 번호 */
.pt-article section > ol.pt-steps { padding-left: 0; list-style: none; counter-reset: st; border-top: 1px solid var(--line); }
.pt-article section > ol.pt-steps li { position: relative; margin: 0; padding: 11px 6px 11px 44px; border-bottom: 1px solid var(--line2); counter-increment: st; }
.pt-steps li::before { content: counter(st) "."; position: absolute; left: 10px; top: 11px; font-size: 16px; font-weight: 700; color: var(--pt); }
.pt-article :not(.pt-list):not(.pt-links) > a:not(.btn):not(.share-btn):not(.fam-card) { color: var(--pt); text-decoration: underline; text-underline-offset: 3px; }
.pt-article code { font-family: Consolas, "D2Coding", monospace; font-size: .92em; padding: 0 4px; background: var(--soft); border: 1px solid var(--line2); }
.pt-article .post-intro { font-size: 17px; color: var(--sub); }
.pt-open { margin: 0 0 8px; padding: 16px 18px; display: flex; align-items: center; gap: 16px; background: var(--soft); }
.pt-open span { font-size: 14px; color: var(--sub); }
.toc-box { margin: 0 0 24px; padding: 16px 20px; font-size: 15px; background: var(--soft); }
.toc-box b { display: block; margin-bottom: 4px; }
.toc-box ol { padding-left: 20px; list-style: decimal; }
.toc-box li { padding: 2px 0; }
.pt-article .toc-box li > a { color: var(--tx); text-decoration: none; }
.pt-article .toc-box li > a:hover { color: var(--pt); text-decoration: underline; }
.pt-article .aff-disclosure { padding: 0; }
.cta-group { margin: 24px 0; border: 1px solid var(--line); font-size: 15px; }
.cta-group .pt-links { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 8px; }
/* 4차 글 끝 제휴: 이름을 아는 링크 한 줄 + '다른 제휴 링크 n개' 펼침 */
.pt-aff { border-width: 1px 0; }
.pt-aff .cta-head { display: inline-block; padding: 12px 18px 0 2px; background: none; border: 0; }
.pt-aff-line { display: inline; margin: 0; }
.pt-aff-line a { display: inline-block; margin-right: 18px; line-height: 40px; }
.pt-aff-more { padding: 0 2px; }
.pt-aff-more .pt-aff-line { display: block; padding-bottom: 4px; }
.pt-aff .aff-disclosure { padding: 4px 2px 12px; }
.cta-group .aff-disclosure { padding: 8px 14px 10px; }
.cta-head { display: block; padding: 8px 14px; font-size: 13px; font-weight: 400; color: var(--sub); background: var(--soft); border-bottom: 1px solid var(--line); }
.cta-bar { display: flex; align-items: center; gap: 10px; min-height: 40px; padding: 0 6px; border-bottom: 1px solid var(--line2); }
.cta-bar a { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cta-bar a b { font-weight: 400; color: var(--weak); }
.tbl-wrap { margin: 14px 0 18px; overflow-x: auto; }
.skill-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.skill-table caption { padding: 0 0 6px; font-size: 13px; text-align: left; color: var(--sub); }
.skill-table th { padding: 9px 10px; text-align: left; font-size: 14px; background: var(--soft); border-top: 2px solid var(--pt); border-bottom: 1px solid var(--line); }
.skill-table td { padding: 9px 10px; border-bottom: 1px solid var(--line2); }
.skill-table .td-num { width: 70px; white-space: nowrap; color: var(--sub); }
.faq-item { border-bottom: 1px solid var(--line2); }
.faq-item summary { padding: 12px 6px; cursor: pointer; font-weight: 700; font-size: 16px; }
.faq-item[open] summary { color: var(--pt); }
.faq-item p { padding: 0 6px 14px 22px; margin: 0; color: var(--sub); font-size: 15px; }
.tool-formula { margin: 0 0 14px; font-size: 15px; }
.tool-formula > p { margin: 0 0 10px; }
.tool-formula .pt-f-h { margin: 16px 0 4px; font-weight: 700; }
.tool-formula .tbl-wrap { margin: 0 0 12px; }
.pt-f-table td:first-child { white-space: nowrap; }
.pt-f-table thead + tbody td:nth-child(2) { white-space: nowrap; font-weight: 700; color: var(--pt); }
.pt-f-list { margin: 0 0 12px; padding-left: 22px; list-style: disc; }
.pt-f-list li { margin: 4px 0; }
.pt-f-list li::marker { color: var(--pt); }
.pt-f-check { margin: 0 0 12px; border-top: 1px solid var(--line); }
.pt-f-check li { padding: 8px 4px; border-bottom: 1px solid var(--line2); }
.nb-box { display: inline-block; width: 14px; height: 14px; margin-right: 9px; vertical-align: -2px; border: 1.5px solid var(--weak); }
.nb-sq { display: inline-block; width: 6px; height: 6px; margin-right: 7px; vertical-align: 3px; background: var(--pt); }
.nb-num { display: inline-block; min-width: 20px; margin-right: 4px; font-size: 15px; font-weight: 700; color: var(--pt); }
.share-row { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin: 22px 0; padding: 12px 0; font-size: 14px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.share-row b { margin-right: 8px; font-weight: 400; color: var(--sub); }
.share-btn { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; font-size: 14px; color: var(--sub); background: var(--bg); border: 1px solid var(--line); border-radius: 0; }
.share-btn:hover { color: var(--pt); text-decoration: none; border-color: var(--pt); }
.fam-wrap .pt-links { font-size: 14px; }
.yn-photo, .pt-article figure img { max-width: 100%; height: auto; }
/* 도구 실제 실행 화면(예시 입력으로 돌린 캡처). 크기를 적어 두어 밀림이 없다 */
.pt-shot { margin: 24px 0 8px; }
.pt-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--line); }
.pt-shot figcaption { margin-top: 8px; font-size: 13px; color: var(--weak); }
/* 글 상단 분류 그림(직접 그린 일러스트, 640×360 을 2:1 로 잘라 보인다) */
.pt-hero { margin: 0 0 28px; }
.pt-hero img { display: block; width: 100%; height: auto; aspect-ratio: 2 / 1; object-fit: cover; border-radius: 4px; }
/* 글 끝 관련 도구: 도구 이름·설명 + 주 버튼(4차: 축소 캡처는 뺐다) */
.pt-toolcard { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 28px 0 8px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.pt-toolcard > div { min-width: 0; }
.pt-toolcard > p { flex: none; }
.pt-toolcard strong { display: block; font-size: 16px; }
.pt-article .pt-toolcard strong a { color: var(--tx); text-decoration: none; }
.pt-toolcard span { display: block; margin: 2px 0 10px; font-size: 14px; line-height: 1.5; color: var(--sub); }
.pt-toolcard p { margin: 0; }
.pt-tags { font-size: 14px; color: var(--sub); }
.pt-tags b { font-weight: 400; }

/* ── 바닥 ──────────────────────────────────────────────── */
.pt-footer { padding: 26px 0 38px; font-size: 13px; color: var(--sub); background: var(--foot); border-top: 3px solid var(--band); }
.pt-foot-fam dl { display: flex; gap: 14px; padding: 8px 0; border-bottom: 1px solid var(--line2); }
.pt-foot-fam dt { flex: 0 0 62px; color: var(--tx); font-weight: 700; line-height: 26px; }
.pt-foot-fam dd { display: flex; flex-wrap: wrap; column-gap: 14px; }
.pt-foot-fam dd a { line-height: 26px; white-space: nowrap; }
.pt-foot-line { display: flex; flex-wrap: wrap; align-items: center; column-gap: 16px; padding: 8px 0; line-height: 26px; }
.yn-growth-footer a { color: var(--tx); text-decoration: underline; }
.pt-foot-369 b { color: var(--tx); }
.pt-foot-369 a span { margin-left: 4px; color: var(--weak); }
.pt-copy { display: flex; gap: 8px; padding-top: 4px; color: var(--weak); }
.pt-copy strong { font-weight: 700; color: var(--sub); }

/* ── 좁은 화면(휴대폰): 글자 16px, 누르는 줄 48px ─────────── */
@media (max-width: 900px) {
  body { font-size: 16px; }
  .pt-wrap { padding: 0 14px; }
  /* 머리 3줄: [로고 · 언어/테마/로그인] [검색] [초록 메뉴 띠] */
  .pt-header { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; }
  .pt-util, .pt-util > .pt-wrap, .pt-top, .pt-top > .pt-wrap, .pt-bar, .pt-bar > .pt-wrap { display: contents; }
  .brand { grid-area: 1 / 1; height: 54px; padding-left: 14px; }
  .b-mark { width: 28px; height: 28px; }
  .brand strong { font-size: 22px; }
  .brand small { display: none; }
  .pt-util-r { grid-area: 1 / 2 / 2 / 4; justify-content: flex-end; padding-right: 14px; gap: 14px; }
  .pt-util-r #nbLangSel, .pt-util-r .theme-toggle, .pt-util-r .nba-btn { height: 44px; line-height: 44px; font-size: 14px !important; }
  .pt-util-r #nbLangSel { max-width: 84px; }
  .pt-search { grid-area: 2 / 1 / 3 / 4; flex: none; margin: 0 14px 10px; height: 42px; }
  .pt-search input { font-size: 16px; }
  .pt-tabs { grid-area: 3 / 1 / 4 / 4; height: 43px; margin: 0; padding: 0 4px; overflow-x: auto; scrollbar-width: none; background: var(--band); border-bottom: 3px solid var(--band-d); }
  .pt-tabs a { padding: 0 12px; font-size: 15px; }
  .pt-tabs::-webkit-scrollbar { display: none; }
  /* 4차: 휴대폰에서는 'YN 도구 / NB 도구' 줄을 빼서 도구 입력칸을 위로 올린다. 같은 링크는 바닥 줄(YN 도구·NB 도구 전체 목록)에 있다 */
  .pt-fam { display: none; }
  .pt-dd { position: static; }
  .pt-dd > summary { line-height: 44px; }
  .pt-dd-menu { left: 0; right: 0; width: auto; max-width: none; max-height: 70vh; overflow-y: auto; border-width: 2px 0 1px; }
  .pt-dd-menu a { height: 48px; line-height: 48px; font-size: 16px; }
  .pt-dd-menu a span { display: none; }
  .pt-home, .pt-page { padding-top: 8px; padding-bottom: 20px; }
  .pt-box { margin-bottom: 8px; }
  /* 휴대폰 상자는 화면 끝까지(옆 테두리 없음) */
  .pt-home > section, .pt-page .pt-main > .pt-box, .pt-page > .pt-article, .pt-page .pt-side > :is(.pt-box, .fam-wrap) { margin: 0 -14px 8px; border-left: 0; border-right: 0; }
  .pt-box-head h1 { font-size: 17px; }
  .pt-box-head h2 { font-size: 16px; }
  .yy { display: none; }
  .pt-two { display: block; }
  .pt-page > .pt-article { padding: 16px 14px 20px; }
  .pt-side-art { margin-top: 0; font-size: 16px; }
  .pt-side-art .pt-list li, .pt-side-art .pt-links a { min-height: 48px; line-height: 48px; }
  .pt-side-art .pt-links { grid-template-columns: 1fr 1fr; }
  .pt-side-art .pt-links a span { display: none; }
  .cta-group .pt-links { grid-template-columns: repeat(3, minmax(0, 1fr)); font-size: 15px; }
  .pt-aff-line a { line-height: 44px; }
  .pt-scroll-hint { display: block; margin: 0 0 4px !important; font-size: 13px; color: var(--weak); }
  .tool-formula { font-size: 16px; }
  .pt-f-table td:first-child { white-space: normal; min-width: 96px; }
  /* 홈 도구: 목록은 가로로 미는 탭, 입력·결과는 위아래 */
  .tools-head { flex-wrap: wrap; align-content: flex-start; gap: 6px; height: auto; min-height: 89.1px; padding: 8px 14px; }
  .tools-head > div:first-child { flex: 1 1 100%; }
  .tools-head h1 { font-size: 17px; }
  .tools-head .pt-desc { display: none; }
  .tools-head .tool-search { flex: 1 1 100%; width: 100%; }
  .tools-head .tool-search input { flex: 1 1 auto; width: 0; height: 44px; font-size: 16px; }
  .tools-head .fav-filter { width: 44px; height: 44px; }
  .pt-tool-layout { display: block; }
  .pt-tool-list { border-right: 0; }
  .tool-grid { display: flex; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
  .tool-grid::-webkit-scrollbar { display: none; }
  .tool-card { flex: none; width: auto; padding: 0 14px; height: 48px; border-bottom: 3px solid transparent; border-left: 0; }
  .tool-card strong { white-space: nowrap; font-size: 15px; }
  .tool-card small, .tool-star, .tool-card .t-ico { display: none; }
  .tool-card.is-active { border-bottom-color: var(--band); }
  .workspace-panel { display: block; }
  .ws-form { padding: 12px 14px; border-right: 0; }
  /* 도구 입력칸·도구 검색칸은 app.js 가 그린다. 그리기 전에도 같은 높이를 잡아 아래 내용이 밀리지 않게 한다(첫 도구 기준, 4차에 다시 잼) */
  .tool-form:empty { min-height: 191.6px; }
  .ws-result.is-idle #resultBox { min-height: 78.8px; }
  .ws-result { padding: 0 14px 12px; }
  .field :is(input, select, textarea) { font-size: 16px; }
  .field :is(input, select) { height: 44px; }
  .field textarea { height: 88px; min-height: 88px; }
  .btn { height: 44px; font-size: 15px; }
  .run-row .btn { flex: 1 1 0; }
  .tool-actions { gap: 4px 18px; }
  .tool-actions button { height: 44px; font-size: 15px; }
  #resultBox { min-height: 120px; font-size: 16px; }
  .history-panel button { min-height: 48px; font-size: 15px; }
  .pt-cols { display: block; }
  .blog-chips::-webkit-scrollbar { display: none; }
  .blog-chips .chip { flex: none; height: 44px; margin-right: 18px; font-size: 16px; }
  .pt-list li { min-height: 44px; padding: 0 2px; }
  .pt-list li a { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: 15px; line-height: 1.4; margin: 7px 0; }
  .pt-list li > img + .c { display: none; }
  .pt-list li .c { width: 72px; }
  .pt-list li time { min-width: 40px; text-align: right; }
  .pt-links a { min-height: 48px; line-height: 48px; }
  .pt-side { margin-top: 12px; }
  .pt-side .pt-links a { min-height: 44px; line-height: 44px; }
  .pt-cards { grid-template-columns: 1fr; gap: 0; border-top: 1px solid var(--line2); }
  .pt-cards li { border-bottom: 1px solid var(--line2); }
  /* 4차: 휴대폰에서 결과 그림을 120px 로 줄이면 글자가 뭉개진다 → 도구 사용법은 글자만 */
  .pt-cards a { display: block; padding: 14px 0; }
  .pt-cards img { display: none; }
  .pt-cards strong { margin-top: 0; }
  .pt-cards span { -webkit-line-clamp: 2; font-size: 15px; }
  .pt-toolcard { display: block; }
  .pt-toolcard > p { margin-top: 12px; }
  .pt-toolcard .btn { width: 100%; }
  /* 4차: 최신 글 카드 2×2(칸 수를 화면에 맞춰 잘리는 카드 없음), 블로그 맨 위 3개는 [그림 | 제목] 줄 */
  .pt-latest .pt-box-head { flex-wrap: wrap; row-gap: 0; padding-top: 2px; padding-bottom: 2px; }
  .pt-catline { font-size: 14px; }
  .pt-catline a { line-height: 36px; }
  .pt-catline a:first-child { padding-left: 0; }
  .pt-pcards { grid-template-columns: 1fr 1fr; gap: 14px 12px; }
  .pt-pcards strong { font-size: 15px; }
  .pt-pcards3 { grid-template-columns: 1fr; gap: 0; margin: 0 0 24px; border-top: 1px solid var(--line2); }
  .pt-pcards3 li { border-bottom: 1px solid var(--line2); }
  .pt-pcards3 a { display: grid; grid-template-columns: 128px minmax(0, 1fr); column-gap: 14px; padding: 12px 0; }
  .pt-pcards3 img { grid-row: 1 / 4; width: 128px; }
  .pt-pcards3 .c { margin-top: 0; }
  .pt-latest .pt-cols { margin-top: 12px; }
  .pt-hero { margin-bottom: 22px; }
  .pt-howto { font-size: 15px; }
  .pt-more > summary { line-height: 48px; font-size: 14px; }
  .pt-dupchk { display: block; margin: 6px 0 0; line-height: 32px; }
  .pt-side-board > :last-child { position: static; }
  .pt-count li { min-height: 44px; }
  .pt-count li b { font-size: 15px; }
  .ad-slot:has(ins[data-ad-status="filled"]) { margin: 0 0 20px; }
  .pt-deals th { width: 76px; padding: 0 10px 0 14px; font-size: 15px; }
  .pt-deals td { padding: 0 10px; }
  .pt-deals td a { line-height: 48px; margin-right: 18px; }
  .aff-disclosure { font-size: 14px; }
  .pt-board-top { display: block; padding: 4px 0 8px; }
  .blog-chips { overflow-x: auto; scrollbar-width: none; }
  .pt-total { margin-top: 8px; font-size: 14px; }
  .pt-board thead { display: none; }
  .pt-board { border-top: 1px solid var(--tx); }
  .pt-board .c-no { display: none; }
  .pt-board .c-tag { width: 76px; font-size: 13px; text-align: left; }
  .pt-board .c-date { width: 50px; font-size: 14px; text-align: right; }
  .pt-board td { height: 48px; padding: 7px 2px; font-size: 15px; }
  .pt-board td.c-title { white-space: normal; line-height: 1.4; }
  .pt-board td.c-title a { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
  .pt-pager button { min-width: 44px; height: 44px; font-size: 16px; }
  .pt-article { font-size: 17px; }
  .pt-article h1 { font-size: 24px; }
  .pt-article h2 { font-size: 20px; margin-top: 30px; }
  .pt-article .post-intro { font-size: 17px; }
  .pt-open { display: block; padding: 14px; }
  .pt-open .btn { width: 100%; }
  .pt-open span { display: block; margin-top: 8px; font-size: 15px; }
  .toc-box { font-size: 16px; }
  .toc-box li { padding: 5px 0; }
  .skill-table, .faq-item p { font-size: 16px; }
  .cta-bar { min-height: 48px; }
  .share-btn { height: 44px; padding: 0 14px; font-size: 15px; }
  .pt-footer { font-size: 14px; }
  .pt-foot-fam dl { display: block; }
  .pt-foot-fam dd a, .pt-foot-line a { line-height: 40px; }
}

/* ── 인쇄: 결과만 ──────────────────────────────────────── */
@media print {
  .pt-side-art, .pt-header, .pt-footer, .pt-tool-list, .tools-head, .tool-actions, .run-row, .history-panel, .ad-slot, .pt-cols, .affiliate-deals { display: none !important; }
  .pt-tool, .pt-tool-layout, .workspace-panel { display: block; border: 0; }
  #resultBox { max-height: none; border: 0; background: #fff; color: #000; }
}

/* 보정 */
.pt-side .channel-grid { grid-template-columns: 1fr; }
.pt-side .pt-list-ico li { gap: 9px; }
.pt-article .pt-list li a { color: var(--tx); }
/* 3차: 목록·관련 도구 이름은 본문 링크(초록 밑줄) 규칙에서 뺀다 — 링크 강조는 본문 문장 안 링크에만 */
.pt-article .pt-list li > a, .pt-article .pt-toolcard strong a { color: var(--tx) !important; text-decoration: none !important; }
.pt-article .pt-list li > a:hover, .pt-article .pt-toolcard strong a:hover { color: var(--pt) !important; text-decoration: underline !important; }
.pt-article .pt-aff-line > a { color: var(--tx) !important; text-decoration: none !important; }
.pt-article .pt-aff-line > a:hover { color: var(--pt) !important; text-decoration: underline !important; }
/* 4차: 맨 위 카드에 있는 글 3줄은 처음부터 표에서 접는다(스크립트가 접을 때 표가 위로 밀리지 않게) */
.pt-pcards3:not([hidden]) ~ .pt-board tr[data-card] { display: none; }
/* 4차: 어둡게에서 밝은 분류 그림·결과 그림이 튀지 않게 살짝 낮춘다 */
html[data-theme="dark"] :is(.pt-pcards img, .pt-hero img, .pt-cards img, .pt-list li > img) { filter: brightness(.82); }

/* 사이트별 보정(nb-2 묶음): 홈 h1 이 nb5 보다 길어 휴대폰에서 잘리지 않게 줄바꿈 */
@media (max-width: 900px) { .tools-head h1 { white-space: normal; } }
