/* ═══════════════════════════════════════════════════════════════
   KTradeHub · Material 3 (Material You) theme · seed #008C45
   header.php가 /tools/* 에서 <html class="m3">일 때 tool-ui.css 다음에 로드.
   참고: designmd.app/library/material-design-3 (토큰을 브랜드 초록으로 재시드)
   끄기 ?ui=flat · 켜기 ?ui=m3 (쿠키 30일). 모든 규칙은 html.m3 하위라 기존 스타일보다 우선.
   ═══════════════════════════════════════════════════════════════ */
html.m3 {
  --m3-primary: #008C45;            /* 브랜드 초록: 아이콘·주 버튼·활성 */
  --m3-primary-dim: #006D35;        /* 작은 글자용 초록(대비 5.9:1) */
  --m3-on-primary: #FFFFFF;
  --m3-primary-container: #BDF0D0;  /* 톤 컨테이너: 아이콘 원, FAB */
  --m3-on-primary-container: #00210E;
  --m3-secondary-container: #D6E9DB;/* 선택 상태(내비 항목, 칩) */
  --m3-on-secondary-container: #0F2015;
  --m3-surface: #F7FAF6;            /* 페이지 바탕 */
  --m3-surface-lowest: #FFFFFF;     /* 카드 */
  --m3-surface-low: #F1F5F0;        /* 드로어·푸터 */
  --m3-surface-container: #EBF0EA;  /* 드롭다운·셀렉트 */
  --m3-surface-high: #E5EBE4;
  --m3-surface-highest: #DFE5DE;
  --m3-on-surface: #191C1A;
  --m3-on-surface-variant: #3F4942;
  --m3-outline: #6F7A72;
  --m3-outline-variant: #BFC9C0;
  --m3-error: #BA1A1A;
  --m3-e1: 0 1px 2px rgba(25,28,26,.14), 0 1px 3px 1px rgba(25,28,26,.08);
  --m3-e2: 0 1px 2px rgba(25,28,26,.16), 0 2px 6px 2px rgba(25,28,26,.10);
  --m3-e3: 0 4px 8px 3px rgba(25,28,26,.14), 0 1px 3px rgba(25,28,26,.18);
  --m3-hover: rgba(0,140,69,.08);
  --m3-press: rgba(0,140,69,.12);
  --m3-ease: cubic-bezier(.2,0,0,1);
}
html.m3[data-theme="dark"], html.m3 [data-theme="dark"] {
  --m3-primary: #7FD99A; --m3-primary-dim: #9DF5B5; --m3-on-primary: #00391B;
  --m3-primary-container: #00522A; --m3-on-primary-container: #9DF5B5;
  --m3-secondary-container: #3B4B3F; --m3-on-secondary-container: #D6E9DB;
  --m3-surface: #111411; --m3-surface-lowest: #0C0F0C; --m3-surface-low: #191C19; --m3-surface-container: #1D201D; --m3-surface-high: #272B27; --m3-surface-highest: #323632;
  --m3-on-surface: #E1E4DF; --m3-on-surface-variant: #BFC9C0;
  --m3-outline: #899389; --m3-outline-variant: #3F4942;
  --m3-error: #FFB4AB;
  --m3-hover: rgba(127,217,154,.10); --m3-press: rgba(127,217,154,.16);
}

/* ── 바탕·헤더 ───────────────────────────────────────────── */
html.m3 body { background: var(--m3-surface); color: var(--m3-on-surface); }
html.m3 .header, html.m3 .header--scrolled { background: color-mix(in srgb, var(--m3-surface) 94%, transparent); border-bottom: 0; box-shadow: none; }
html.m3 .header__cta { border-radius: 999px; background: var(--m3-primary); color: #fff; padding: 10px 24px; font-size: 14px; font-weight: 600; transition: background .15s var(--m3-ease), box-shadow .15s var(--m3-ease); }
html.m3 .header__cta:hover { background: #0A9A4F; box-shadow: var(--m3-e1); transform: none; }
html.m3 .header__cta--ghost { background: transparent; border: 1px solid var(--m3-outline); color: var(--m3-primary-dim); margin-right: 0; }
html.m3 .header__cta--ghost:hover { background: var(--m3-hover); color: var(--m3-primary-dim); border-color: var(--m3-outline); box-shadow: none; }
html.m3 .header__util { color: var(--m3-on-surface-variant); }
html.m3 .header__util:hover { color: var(--m3-primary-dim); }
html.m3 .header__util-cnt { background: var(--m3-primary); }
html.m3 .header__toggle span { background: var(--m3-on-surface); }
@media (min-width: 769px) {
  html.m3 .header__nav { gap: 14px; }   /* 메뉴 간격 (2026-11-08: 4→14) */
  html.m3 .header__nav > a, html.m3 .header__nav-tools-link { font-size: 14px; font-weight: 500; letter-spacing: 0; padding: 8px 14px; border-radius: 999px; color: var(--m3-on-surface-variant); transition: background .15s var(--m3-ease), color .15s; }
  html.m3 .header__nav > a::after, html.m3 .header__nav-tools-link::after { display: none; }
  html.m3 .header__nav > a:hover, html.m3 .header__nav-tools-link:hover { background: var(--m3-hover); color: var(--m3-primary-dim); }
  html.m3 .header__nav > a.active, html.m3 .header__nav-tools-link.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; }
  html.m3 .header__tools-mega { left: 0; transform: none; padding-top: 6px; }   /* 드롭다운 왼쪽을 업무도구모음 알약 왼쪽에 맞춤 */
  html.m3 .header__tools-mega-inner { background: var(--m3-surface-lowest); border: 0; border-radius: 20px; box-shadow: var(--m3-e3); padding: 10px; max-width: none; }
  html.m3 .header__tools-col h5 { color: var(--m3-on-surface-variant); border-bottom: 0; padding-bottom: 0; font-size: 12px; letter-spacing: .06em; margin-bottom: 8px; }
  html.m3 .header__tools-col a { font-size: 14px; padding: 6px 12px; margin: 0 -12px; border-radius: 999px; color: var(--m3-on-surface); }
  html.m3 .header__tools-col a:hover { background: var(--m3-hover); color: var(--m3-primary-dim); }
  html.m3 .header__tools-col a.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
}
@media (max-width: 768px) {
  html.m3 .header__toggle { width: 48px; height: 48px; align-items: center; justify-content: center; padding: 0; border-radius: 999px; margin-right: 2px; }
  html.m3 .header__toggle:active { background: var(--m3-press); }
  html.m3 .header__cta { padding: 9px 16px; font-size: 14px; }
  /* 모달 내비게이션 드로어: 오른쪽 모서리 둥글게, 항목은 알약형 */
  html.m3 .header__nav { background: var(--m3-surface-low); border-radius: 0 16px 16px 0; box-shadow: var(--m3-e3); padding: 76px 12px 24px; }
  html.m3 .header__nav > a { padding: 0 16px; min-height: 52px; display: flex; align-items: center; font-size: 15px; font-weight: 500; color: var(--m3-on-surface-variant); border-bottom: 0; border-radius: 999px; }
  html.m3 .header__nav > a:hover { background: var(--m3-hover); }
  html.m3 .header__nav > a.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; border-left: 0; padding-left: 16px; }
  html.m3 .header__nav > a::after { display: none; }   /* 평면 테마의 밑줄(active 시 width:100%)이 알약 아래 선으로 보이던 것 제거 */
  html.m3 .header__nav-tools-mobile-wrap { border-bottom: 0; }
  html.m3 .header__nav-tools-mobile-wrap > summary { padding: 0 16px; min-height: 52px; font-size: 15px; font-weight: 600; color: var(--m3-on-surface); border-radius: 999px; }
  html.m3 .header__nav-tools-mobile-wrap > summary.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
  html.m3 .header__nav-tools-mobile-wrap > summary::after { color: var(--m3-on-surface-variant); }
  html.m3 .header__nav-tools-section { background: transparent; border-top: 0; padding: 0 4px 8px; }
  html.m3 .header__nav-tools-cats { gap: 0; }
  html.m3 .header__nav-tools-list a { display: flex; align-items: center; min-height: 36px; padding: 0 16px; font-size: 14px; line-height: 1.2; border-radius: 999px; color: var(--m3-on-surface-variant); }
  html.m3 .header__nav-tools-list a:hover { background: var(--m3-hover); color: var(--m3-primary-dim); }
  html.m3 .header__nav-tools-list a.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; }
  html.m3 .header__nav-backdrop { background: rgba(0,0,0,.32); }
  html.m3 .nav__extras { border-top-color: var(--m3-outline-variant); }
}

/* ── 경로줄 ───────────────────────────────────────────────── */
html.m3 .tool-crumb { font-size: 14px; color: var(--m3-on-surface-variant); }
html.m3 .tool-crumb a { color: var(--m3-on-surface-variant); }
html.m3 .tool-crumb a:hover { color: var(--m3-primary-dim); }
html.m3 .tool-crumb strong { color: var(--m3-on-surface); }
html.m3 .tool-crumb__sep { border-color: var(--m3-outline); }

/* ── 도구 카탈로그 (tools/index.php) ─────────────────────── */
html.m3 .tools-side__hd { color: var(--m3-on-surface-variant); }
html.m3 .tools-side__title { color: var(--m3-on-surface); }
html.m3 .tools-search input { border-color: var(--m3-outline); border-radius: 8px; background: var(--m3-surface-lowest); color: var(--m3-on-surface); }
html.m3 .tools-search input:focus { border-color: var(--m3-primary); box-shadow: inset 0 0 0 1px var(--m3-primary); }
html.m3 .tools-search input::placeholder { color: var(--m3-on-surface-variant); opacity: .8; }
html.m3 .tools-search__ico { color: var(--m3-on-surface-variant); }
html.m3 #toolNav { border: 0; background: transparent; padding: 0; gap: 2px; border-radius: 0; }
html.m3 .tool-nav__item { border-radius: 999px; padding: 10px 16px; font-size: 14px; font-weight: 500; color: var(--m3-on-surface-variant); transition: background .15s var(--m3-ease), color .15s; }
html.m3 .tool-nav__item:hover { background: var(--m3-surface-container); color: var(--m3-on-surface); }
html.m3 .tool-nav__item.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; }
html.m3 .tool-nav__item--fav.active { background: #FBE7A1; color: #3A2A00; }
html.m3 .tool-cat__title, html.m3 .tool-view__title { border-bottom: 0; padding: 0 2px 2px; font-size: 16px; font-weight: 700; letter-spacing: 0; color: var(--m3-on-surface); }
html.m3 .tool-cat__grid { gap: 12px; }
html.m3 .tool-card { border: 0; border-radius: 16px; background: var(--m3-surface-lowest); box-shadow: var(--m3-e1); padding: 18px 18px 16px; transition: box-shadow .15s var(--m3-ease), transform .15s var(--m3-ease), background .15s; }
html.m3 .tool-card:hover { box-shadow: var(--m3-e2); transform: translateY(-1px); }
html.m3 .tool-card__icon { width: 48px; height: 48px; border: 0; border-radius: 999px; background: var(--cc-bg, var(--m3-primary-container)); margin-bottom: 12px; }
html.m3 .tool-card__icon .msym { color: var(--cc-fg, var(--m3-primary-dim)); font-size: 24px; }
html.m3 .tool-card__title { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--m3-on-surface); }
html.m3 .tool-card__desc { color: var(--m3-on-surface-variant); font-size: 14px; }
html.m3 .tool-card__badge { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
html.m3 .tool-card__badge--soon { background: var(--m3-surface-highest); color: var(--m3-on-surface-variant); }
html.m3 .tool-card__use { color: var(--m3-on-surface-variant); font-size: 11px; }
html.m3 .tool-fav { border-radius: 999px; }
html.m3 .tool-fav:hover { background: var(--m3-surface-container); }
html.m3 .tools-noresult { color: var(--m3-on-surface-variant); }
@media (max-width: 860px) {
  html.m3 #toolNavToggle { border: 0; border-radius: 14px; background: var(--m3-surface-container); min-height: 46px; padding: 0 16px; font-size: 14px; color: var(--m3-on-surface); }
  html.m3 #toolNavToggle.open { border-radius: 14px 14px 0 0; background: var(--m3-surface-high); }
  html.m3 .tool-nav__chev { border-color: var(--m3-on-surface-variant); }
  html.m3 #toolNav { background: var(--m3-surface-container); border-radius: 0 0 14px 14px; padding: 10px; gap: 6px; }
  html.m3 .tool-nav__item { border: 1px solid var(--m3-outline-variant); background: transparent; border-radius: 8px; min-height: 36px; padding: 0 12px; font-size: 14px; color: var(--m3-on-surface); }
  html.m3 .tool-nav__item.active { border-color: transparent; background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
  html.m3 .tool-cat__grid { gap: 8px; }
  html.m3 .tool-card { border-radius: 16px; padding: 12px 6px 12px; min-height: 104px; }
  html.m3 .tool-card:hover { transform: none; box-shadow: var(--m3-e1); }
  html.m3 .tool-card:active { background: var(--m3-surface-container); }
  html.m3 .tool-card__icon { width: 44px; height: 44px; margin-bottom: 8px; }
  html.m3 .tool-card__icon .msym { font-size: 22px; }
  html.m3 .tool-card__title { font-size: 12.5px; }
  html.m3 .tool-view__title, html.m3 .tool-cat__title { font-size: 14px; }
}

/* ── 공통 컴포넌트(.tu-*) ─────────────────────────────────── */
html.m3 .tu-panel { background: var(--m3-surface-lowest); border: 0; border-radius: 28px; box-shadow: var(--m3-e1); padding: 22px 16px 18px; }
/* 큰 동작 타일: 원형 톤 아이콘 + 라벨 (Google 번역 앱 방식) */
html.m3 .tu-tile { background: transparent; border: 0; border-radius: 20px; min-height: 0; padding: 8px 4px 10px; gap: 10px; font-size: 14px; font-weight: 600; color: var(--m3-on-surface); }
html.m3 .tu-tile .msym { width: 64px; height: 64px; border-radius: 999px; background: var(--cc-bg, var(--m3-primary-container)); color: var(--cc-fg, var(--m3-primary-dim)); display: inline-flex; align-items: center; justify-content: center; font-size: 30px; transition: background .15s var(--m3-ease), transform .15s var(--m3-ease); }
html.m3 .tu-tile:hover, html.m3 .tu-tile.drag { background: var(--m3-hover); }
html.m3 .tu-tile:hover .msym { filter: brightness(.95); }
html.m3 .tu-tile:active .msym { transform: scale(.94); }

html.m3 .tu-btn { border-radius: 999px; border: 1px solid var(--m3-outline); background: transparent; color: var(--m3-primary-dim); font-weight: 600; padding: 0 22px; transition: background .15s var(--m3-ease), box-shadow .15s var(--m3-ease); }
html.m3 .tu-btn:hover { background: var(--m3-hover); border-color: var(--m3-outline); color: var(--m3-primary-dim); }
html.m3 .tu-btn--primary { background: var(--m3-primary); border-color: transparent; color: var(--m3-on-primary); }
html.m3 .tu-btn--primary:hover { background: #0A9A4F; border-color: transparent; color: var(--m3-on-primary); box-shadow: var(--m3-e1); }
html.m3[data-theme="dark"] .tu-btn--primary:hover, html.m3 [data-theme="dark"] .tu-btn--primary:hover { background: #9DF5B5; }
html.m3 .tu-btn--sm { padding: 0 14px; }

/* 아이콘+라벨 버튼: 알약 표시기(선택 시 secondary-container) */
html.m3 .tu-ibtn { border: 0; border-radius: 16px; gap: 4px; min-width: 64px; padding: 4px 6px; font-size: 12px; font-weight: 600; color: var(--m3-on-surface-variant); }
html.m3 .tu-ibtn .msym { width: 56px; height: 32px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; color: var(--m3-primary-dim); transition: background .15s var(--m3-ease); }
html.m3 .tu-ibtn:hover { background: transparent; border-color: transparent; }
html.m3 .tu-ibtn:hover .msym { background: var(--m3-surface-high); }
html.m3 .tu-ibtn.on { background: transparent; border-color: transparent; color: var(--m3-on-surface); }
html.m3 .tu-ibtn.on .msym { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); }
html.m3 .tu-ibtn.done .msym { color: var(--m3-primary-dim); }

/* 하단 고정 툴바: 떠 있는 알약형(초록 바탕·흰 아이콘 유지) */
html.m3 .tu-bar { border: 0; border-radius: 999px; box-shadow: var(--m3-e3); padding: 8px 14px; gap: 4px; }
html.m3 .tu-bar .tu-ibtn { color: #fff; min-width: 72px; border-radius: 999px; }
html.m3 .tu-bar .tu-ibtn .msym { width: auto; height: auto; background: transparent; color: #fff; font-size: 28px; }
html.m3 .tu-bar .tu-ibtn:hover { background: rgba(255,255,255,.14); }
html.m3 .tu-bar .tu-ibtn:hover .msym { background: transparent; }
html.m3 .tu-bar .tu-ibtn.done .msym { color: #fff; }
html.m3[data-theme="dark"] .tu-bar, html.m3 [data-theme="dark"] .tu-bar { background: var(--m3-primary-container); }

/* 입력: 테두리형 필드 8px, 셀렉트는 알약형 채움 */
html.m3 .tu-input, html.m3 .tu-textarea { border: 1px solid var(--m3-outline); border-radius: 8px; background: var(--m3-surface-lowest); color: var(--m3-on-surface); }
html.m3 .tu-input:focus, html.m3 .tu-textarea:focus { border-color: var(--m3-primary); box-shadow: inset 0 0 0 1px var(--m3-primary); }
html.m3 .tu-select { border: 0; border-radius: 999px; background: var(--m3-surface-container) url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%233F4942' d='M7 10l5 5 5-5z'/%3E%3C/svg%3E") no-repeat right 12px center / 18px 18px; padding: 0 38px 0 18px; -webkit-appearance: none; appearance: none; color: var(--m3-on-surface); font-weight: 600; }
html.m3 .tu-select:focus { box-shadow: 0 0 0 2px var(--m3-primary); }
html.m3 .tu-label { color: var(--m3-on-surface-variant); }

/* 결과 카드 */
html.m3 .tu-card { border: 0; border-radius: 16px; background: var(--m3-surface-lowest); box-shadow: var(--m3-e1); }
html.m3 .tu-card__head { background: transparent; border-bottom: 1px solid var(--m3-outline-variant); padding: 10px 16px; font-size: 12px; color: var(--m3-on-surface-variant); }
html.m3 .tu-card__body { color: var(--m3-on-surface); }
html.m3 .tu-card__foot { border-top: 1px solid var(--m3-outline-variant); padding: 6px 8px; }
html.m3 .tu-badge { border: 0; border-radius: 999px; background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); padding: 2px 10px; }
html.m3 .tu-msg, html.m3 .tu-note { color: var(--m3-on-surface-variant); }
html.m3 .tu-msg--err { color: var(--m3-error); }
html.m3 .tu-cursor::after { background: var(--m3-primary); }

/* 사진 번역기 배치 클래스 */
html.m3 .pt-card__thumb { border: 0; border-radius: 8px; }
html.m3 .pt-card__stat { color: var(--m3-on-surface-variant); }
html.m3 .pt-card__stat.wait { color: var(--m3-primary-dim); }
html.m3 .pt-out:empty::before, html.m3 .pt-live__cap:empty::before { color: var(--m3-on-surface-variant); }
html.m3 .pt-orig { border-bottom-color: var(--m3-outline-variant); }   /* 접힌 원문 섹션 구분선 */
html.m3 .pt-live { border: 0; border-radius: 20px; overflow: hidden; box-shadow: var(--m3-e1); }
html.m3 .pt-live__cap, html.m3 .pt-live__bar { border-color: var(--m3-outline-variant); }
html.m3 .pt-live__state { border-radius: 999px; }
html.m3 .pt-live__state.on { background: var(--m3-primary); }

/* ── 하단 안내(이 도구는 / 사용법 / FAQ) ─────────────────── */
html.m3 .tool-guide { background: var(--m3-surface-lowest); border-radius: 24px; box-shadow: var(--m3-e1); padding: 22px 24px 24px; margin: 28px auto 8px; }
html.m3 .tool-guide h2 { font-size: 16px; color: var(--m3-on-surface); }
html.m3 .tool-guide p, html.m3 .tool-guide li, html.m3 .tool-guide dd { color: var(--m3-on-surface-variant); font-size: 14px; }
html.m3 .tool-guide dt { color: var(--m3-on-surface); font-size: 14px; }
@media (max-width: 860px) {
  html.m3 .tool-guide { padding: 18px 16px 20px; border-radius: 20px; margin: 24px auto 4px; }
}

/* ── 도구 문의 위젯(.tfb) ─────────────────────────────────── */
html.m3 .tfb-box { border: 0; border-radius: 20px; background: var(--m3-surface-lowest); box-shadow: var(--m3-e1); padding: 20px 22px; }
html.m3 .tfb-hd b { color: var(--m3-on-surface); }
html.m3 .tfb-hd span, html.m3 .tfb-note, html.m3 .tfb-ans small { color: var(--m3-on-surface-variant); }
html.m3 .tfb textarea, html.m3 .tfb input[type=email] { border: 1px solid var(--m3-outline); border-radius: 8px; color: var(--m3-on-surface); background: var(--m3-surface-lowest); }
html.m3 .tfb textarea:focus, html.m3 .tfb input[type=email]:focus { border-color: var(--m3-primary); box-shadow: inset 0 0 0 1px var(--m3-primary); }
html.m3 .tfb-btn { border: 0; border-radius: 999px; background: var(--m3-primary); color: var(--m3-on-primary); padding: 10px 20px; min-height: 40px; }
html.m3 .tfb-btn.ghost { background: transparent; border: 1px solid var(--m3-outline); color: var(--m3-primary-dim); }
html.m3 .tfb-ans { border-left: 0; border-radius: 12px; background: var(--m3-surface-low); color: var(--m3-on-surface); }
html.m3 .tfb-ans.warn { background: #FFF3E0; }

/* ── AI 도구 찾기 FAB ─────────────────────────────────────── */
html.m3 #kfBtn { background: var(--m3-primary); color: var(--m3-on-primary); border-radius: 16px; box-shadow: var(--m3-e3); animation: none; }   /* 브랜드 초록 FAB (2026-11-08, 호박색에서 변경) */
html.m3 #kfBtn:hover { background: #0A9A4F; }
html.m3[data-theme="dark"] #kfBtn, html.m3 [data-theme="dark"] #kfBtn { background: var(--m3-primary); color: var(--m3-on-primary); }
html.m3 #kfPanel { border-radius: 20px; box-shadow: var(--m3-e3); border: 0; }
html.m3 #kfScroll { border: 0; border-radius: 16px; background: var(--m3-surface-lowest); color: var(--m3-on-surface); box-shadow: var(--m3-e2); }   /* 맨 위/맨 아래 토글(FAB 위) */
html.m3 #kfScroll:hover { background: var(--m3-surface-high); }
html.m3[data-theme="dark"] #kfScroll, html.m3 [data-theme="dark"] #kfScroll { background: var(--m3-surface-high); color: var(--m3-on-surface); }

/* ── 푸터 ─────────────────────────────────────────────────── */
html.m3 .footer { background: var(--m3-surface-low); border-top: 0; border-radius: 28px 28px 0 0; color: var(--m3-on-surface-variant); padding: 48px 0 24px; }
html.m3 .footer__brand { color: var(--m3-on-surface); }
html.m3 .footer__desc { color: var(--m3-on-surface-variant); font-size: 14px; }
html.m3 .footer__heading { text-transform: none; letter-spacing: 0; font-size: 14px; color: var(--m3-on-surface); margin-bottom: 14px; }
html.m3 .footer__links { gap: 10px; }
html.m3 .footer__links a { font-size: 14px; color: var(--m3-on-surface-variant); }
html.m3 .footer__links a:hover { color: var(--m3-primary-dim); }
html.m3 .footer .container { max-width: none; padding: 0 24px; }   /* 푸터 가로 100% (2026-11-08) */
html.m3 .footer__company { border-top: 1px solid var(--m3-outline-variant); margin-top: 8px; padding-top: 14px; font-size: 12px; line-height: 1.7; color: var(--m3-on-surface-variant); }
html.m3 .footer__company a { color: inherit; }
html.m3 .footer__sep { margin: 0 8px; color: var(--m3-outline); }
html.m3 .footer__bottom { border-top: 1px solid var(--m3-outline-variant); font-size: 12px; }
@media (max-width: 768px) {
  html.m3 .footer { border-radius: 20px 20px 0 0; padding: 36px 0 20px; }
}

/* ── 보조색 아이콘(카테고리·내비)과 안내 제목 아이콘 ────────── */
html.m3 .nav-ico { color: var(--cc-fg, var(--m3-primary-dim)); }
html.m3 .tool-group__title .msym { color: var(--cc-fg, var(--m3-primary-dim)); }
html.m3 .tool-nav__item.active .nav-ico { color: var(--cc-fg, var(--m3-on-secondary-container)); }
@media (min-width: 769px) {
  html.m3 .header__tools-mega-cats { display: grid; grid-template-columns: repeat(3, max-content); gap: 2px 4px; min-width: 0; max-width: none; }   /* 3열 (2026-11-08) */
  html.m3 .header__tools-mega-cats a { display: flex; align-items: center; min-height: 44px; padding: 0 18px 0 14px; border-radius: 999px; font-size: 14px; color: var(--m3-on-surface); text-decoration: none; white-space: nowrap; }
  html.m3 .header__tools-mega-cats a:hover { background: var(--m3-hover); color: var(--m3-primary-dim); }
}
html.m3 .tool-guide h2 { display: flex; align-items: center; gap: 10px; }
html.m3 .tool-guide h2::before { font-family: 'Material Symbols Outlined'; font-weight: 400; font-size: 18px; line-height: 1; width: 30px; height: 30px; border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; flex: none; font-feature-settings: 'liga'; -webkit-font-smoothing: antialiased; opacity: 0; transition: opacity .15s; }
html.m3.msym-on .tool-guide h2::before { opacity: 1; }
html.m3 .tool-guide h2:nth-of-type(1)::before { content: 'info'; background: #D6E3FF; color: #0B57D0; }
html.m3 .tool-guide h2:nth-of-type(2)::before { content: 'format_list_numbered'; background: #BDF0D0; color: #006D35; }
html.m3 .tool-guide h2:nth-of-type(3)::before { content: 'help'; background: #FFE08C; color: #6E5600; }

/* ── 도구 페이지 오른쪽 안내 사이드바 (2026-11-08) ─────────── */
html.m3 .tool-aside__title { color: var(--m3-on-surface); }
html.m3 .tool-aside__login { border: 0; border-radius: 16px; background: var(--m3-surface-lowest); box-shadow: var(--m3-e1); }
html.m3 .tool-aside__guide { background: none; box-shadow: none; border: 0; padding: 0; }
html.m3 .tool-aside .tool-guide { border-radius: 16px; margin: 0; padding: 20px 22px 22px; }
html.m3 .tool-aside__login b { color: var(--m3-on-surface); }
html.m3 .tool-aside__login p { color: var(--m3-on-surface-variant); }

/* ── 도구 페이지 왼쪽 사이드바 (2026-11-11) ─────────── */
html.m3 .tool-sidenav__title { color: var(--m3-on-surface); }
html.m3 .tool-sidenav__nav { border: 0; background: transparent; padding: 0; gap: 2px; border-radius: 0; }
html.m3 .tsn-cat__hd { border-radius: 999px; padding: 10px 16px; min-height: 0; font-size: 14px; font-weight: 500; color: var(--m3-on-surface-variant); }   /* 카탈로그 .tool-nav__item 과 같은 높이(≈45px) */
html.m3 .tsn-cat__hd:hover { background: var(--m3-surface-container); color: var(--m3-on-surface); }
html.m3 .tsn-cat.is-current > .tsn-cat__hd { color: var(--m3-on-surface); font-weight: 600; }
html.m3 .tsn-cat__cnt { color: var(--m3-on-surface-variant); opacity: 1; }
html.m3 .tsn-item { border-radius: 999px; padding: 0 14px 0 16px; font-size: 14px; color: var(--m3-on-surface-variant); }
html.m3 .tsn-list { padding-left: 10px; }
html.m3 .tool-sidenav__search input { border-color: var(--m3-outline); border-radius: 8px; background: var(--m3-surface-lowest); color: var(--m3-on-surface); }
html.m3 .tool-sidenav__search input:focus { border-color: var(--m3-primary); box-shadow: inset 0 0 0 1px var(--m3-primary); }
html.m3 .tool-sidenav__search .tools-search__ico { color: var(--m3-on-surface-variant); opacity: 1; }
html.m3 .tsn-item:hover { background: var(--m3-surface-container); color: var(--m3-on-surface); }
html.m3 .tsn-item.active { background: var(--m3-secondary-container); color: var(--m3-on-secondary-container); font-weight: 600; }
html.m3 .tsn-item.active .tsn-item__ico { color: var(--m3-on-secondary-container); }
