/**
 * 다크모드 전역 오버라이드 (core/code/design.php 에서 로드)
 * @see html[data-theme="dark"]
 */

/* ── 토큰:html[data-theme="dark"] 에서만 적용 (클래스·유틸 일괄 덮어쓰기) ── */
html[data-theme="dark"]{color-scheme:dark;/* 다크그레이·다크네이비 (순수 #000 지양) */
  --tq-dm-surface:#1e2533;/* 본문·양옆 여백 = 서브네비·가로탭 띠와 동일 톤 */
  --tq-dm-page:var(--tq-dm-surface);--tq-dm-page-hor:#181e2c;/* 섹션 타이틀바(.page_hor_next): SVG .subbox-bg rect 가 영역을 덮어 배경색만 바꿔도 색이 안 바뀐 것처럼 보임 → 배경+rect fill 을 이 토큰으로 통일 */
  --tq-dm-surface-2:#252d3d;--tq-dm-navy:#222d3f;--tq-dm-navy-deep:#1a2332;/* 푸터:본문/헤더와 구분되게 더 깊은 톤 */
  --tq-dm-footer:#151c26;/* 서브네비 띠:서페이스(1)와 같은 채도·색조로 아주 살짝만 어둡게 */
  --tq-dm-subnav:#1c2230;--tq-dm-text:#e6eaf2;--tq-dm-muted:#9aa4b8;--tq-dm-border:rgba(255,255,255,0.1);--tq-dm-link:#9ec0ff;/* master.css --tqroot-border / --tqroot-border-color (#ddd) — 타임라인 세로선·카드 테두리 등 */
  --tqroot-border:var(--tq-dm-border);--tqroot-border-color:var(--tq-dm-border);/* 라이트 고정색 3종 → 다크 토큰 (--tqroot-* 는 master.css:root 에 기본값) */
  --tqroot-navy:var(--tq-dm-link);/* #31415e */
  --tqroot-navy-bg:var(--tq-dm-navy-deep);--tqroot-body-text:var(--tq-dm-muted);/* #343434 */
  --tqroot-gray-700:var(--tq-dm-muted);/* #495057 · BS gray-700 계열 */
  --bs-gray-700:var(--tq-dm-muted);/* bootstrap.min.css 의 #495057 대응 */
  
/* 메가메뉴 등 기존 --menu 토큰을 다크 톤으로 */
  --menu:#2d3a4d;--menu-2:#c75a54;}
html[data-theme="dark"] body{background-color:var(--tq-dm-page)!important;color:var(--tq-dm-text)!important;}
/* master.css .text-pen — 다크에서는 스크롤 애니 없이 형광 전체·글자색 즉시 (라이트 .active 종료 상태와 동일) */
html[data-theme="dark"] .text-pen{background-size:100% 100%!important;transition:none!important;color:#121212!important;}
/*
  add.css 벤치 텍스트 일괄:#31415e·var(--tqroot-navy) 글자색 → 링크 톤,#343434·#555 등 본문 회색 → muted (클래스명 접미사로만 매칭).
*/
html[data-theme="dark"] [class*="tqcss"][class*="text-navy"],html[data-theme="dark"] [class*="tqcss"][class*="highlight-navy"],html[data-theme="dark"] [class*="tqcss"][class*="point-navy"],html[data-theme="dark"] [class*="tqcss"][class*="chart-title"],html[data-theme="dark"] [class*="tqcss"][class*="footer-highlight"],html[data-theme="dark"] [class*="tqcss"][class*="icon-male"]{color:var(--tq-dm-link)!important;}
/* subtitle:대부분 네이비(#31415e) — 26·27 등은 회색 본문(#343434)이라 제외 */
html[data-theme="dark"] [class*="tqcss"][class*="subtitle"]:not([class*="tqcss_s"]):not([class*="26_subtitle"]):not([class*="27_subtitle"]){color:var(--tq-dm-link)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="26_subtitle"],html[data-theme="dark"] [class*="tqcss"][class*="27_subtitle"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="text-body"],html[data-theme="dark"] [class*="tqcss"][class*="text-md"],html[data-theme="dark"] [class*="tqcss"][class*="text-normal"],html[data-theme="dark"] [class*="tqcss"][class*="list-text"],html[data-theme="dark"] [class*="tqcss"][class*="check-text"],html[data-theme="dark"] [class*="tqcss"][class*="card-text"],html[data-theme="dark"] [class*="tqcss"][class*="26_text"],html[data-theme="dark"] [class*="tqcss"][class*="27_text"],html[data-theme="dark"] [class*="tqcss"][class*="info-text"],html[data-theme="dark"] [class*="tqcss"][class*="text-block"],html[data-theme="dark"] [class*="tqcss"][class*="desc-text"],html[data-theme="dark"] [class*="tqcss"][class*="step-text"],html[data-theme="dark"] [class*="tqcss"][class*="card-desc"],html[data-theme="dark"] [class*="tqcss"][class*="list-item"],html[data-theme="dark"] [class*="tqcss"][class*="bold-text"],html[data-theme="dark"] [class*="tqcss"][class*="wrapper"]:not([class*="chart-wrapper"]):not([class*="swiper-wrapper"]){color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="card-head"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="pill-num"]{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="circle-title"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="circle-desc"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="list"]:not([class*="list_notice"]):not([class*="notice-list"]) li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="list"]:not([class*="list_notice"]):not([class*="notice-list"]) li::before{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="title-main"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="main-title"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="center-text"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="num-desc"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="title-big"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="title-highlight"]{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="sub-title"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="_desc"]{color:var(--tq-dm-muted)!important;}
/* add.css .tqcssNN_title 은 네이비(var(--tqroot-navy)) — [class*="_title"] 에 걸리면 본문색으로 덮여 구분 안 됨 */
html[data-theme="dark"] [class*="tqcss"][class*="_title"]:not([class*="title-main"]):not([class*="main-title"]):not([class*="page-title"]):not([class*="s01y"]):not([class*="s01t"]):not([class*="card-title"]):not([class*="modal-name"]):not([class*="doc_title"]):not([class*="range_title"]):not([class*="sec_title"]):not([class*="feat-name"]):not([class*="title-big"]):not([class*="title-highlight"]):not([class*="tqcss17_title"]):not([class*="tqcss18_title"]):not([class*="tqcss19_title"]):not([class*="tqcss21_title"]):not([class*="tqcss22_title"]):not([class*="tqcss23_title"]):not([class*="tqcss24_title"]):not([class*="tqcss25_title"]):not([class*="tqcss26_title"]):not([class*="tqcss27_title"]):not([class*="tqcss28_title"]):not([class*="tqcss29_title"]):not([class*="tqcss30_title"]){color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="bg-navy"]{background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="border-navy"]{border-color:var(--tq-dm-link)!important;}
/* add.css 오타 접두사 tacss16_* (tqcss 아님) */
html[data-theme="dark"] [class*="tacss"][class*="section-title"],html[data-theme="dark"] [class*="tacss"][class*="img-caption"],html[data-theme="dark"] [class*="tacss"][class*="highlight-navy"]{color:var(--tq-dm-link)!important;}
/* tacss*_list-li 색은 파일 끝 [최종 고정] 블록 (--tqroot-body-text) */
html[data-theme="dark"] [class*="tacss"][class*="list-li"]::before{color:#f26b65!important;}
html[data-theme="dark"] [class*="tacss"][class*="img-placeholder"]{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tacss"][class*="step-card"]{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tacss"][class*="step-last"]{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;}
/* 프리로더 (core/css/master.css .preloader-container 덮어쓰기) */
html[data-theme="dark"] .preloader-container{background-color:var(--tq-dm-navy-deep)!important;background-image:linear-gradient(
    118deg,#141a24 0%,var(--tq-dm-navy-deep) 22%,var(--tq-dm-surface) 45%,#1e2635 62%,var(--tq-dm-navy-deep) 82%,#141a24 100%
  )!important;background-size:320% 320%;}
html[data-theme="dark"] .preloader-border{box-shadow:inset 0 0 0 2px rgba(255,255,255,0.12)!important;}
html[data-theme="dark"] .preloader-line{box-shadow:inset 0 0 0 2px #e74139!important;}
@media (prefers-reduced-motion:reduce){html[data-theme="dark"] .preloader-container{animation:none!important;background-image:none!important;background-color:var(--tq-dm-navy-deep)!important;}}
html[data-theme="dark"] .tqseoul-on,html[data-theme="dark"] #smooth-wrapper,html[data-theme="dark"] #smooth-content{background-color:var(--tq-dm-page)!important;}
html[data-theme="dark"] .main__header,html[data-theme="dark"] .main__header.sticky_menu{background-color:var(--tq-dm-navy-deep)!important;border-bottom-color:var(--tq-dm-border)!important;box-shadow:0 0.2rem 1.2rem rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .menu-header-inner{background-color:transparent!important;border-color:transparent!important;}
/* 헤더 햄버거 메뉴 아이콘(SVG) — 다크 헤더에서 검은 선이 묻히지 않도록 */
html[data-theme="dark"] #navigation .navigation-button-toggler .hori-bar-icon{
  filter:brightness(0) invert(1);
  opacity:0.9;
}
/*
  헤더 테마 토글 — 마크업: kr/menu/main_right.php · kr/menu/main_menu_mobile.php
  요소: button.tq-darkmode-toggle (#tq-darkmode-toggle 는 PC 한 곳)
  아이콘: i.ph.ph-moon|ph-sun.tq-darkmode-icon (darkmode.js 가 클래스 교체)
  주의: 다크 모드에서 var(--tqroot-navy) 는 본문 링크색(--tq-dm-link)으로 재정의됨 → 토글 색은 hex 또는 --tq-dm-navy* 만 사용.
  레이아웃(크기·radius): add.css button.tq-darkmode-toggle
*/
html:not([data-theme="dark"]) button.tq-darkmode-toggle{
  background:#e4eaf4!important;
  border:1px solid rgba(49,65,94,0.28)!important;
  color:#31415e!important;
  box-shadow:0 1px 4px rgba(49,65,94,0.12)!important;
}
html:not([data-theme="dark"]) button.tq-darkmode-toggle:hover{
  background:#d6e0f0!important;
  border-color:rgba(49,65,94,0.4)!important;
  color:#24324a!important;
  opacity:1!important;
  box-shadow:0 2px 8px rgba(49,65,94,0.15)!important;
}
html[data-theme="dark"] button.tq-darkmode-toggle{
  background:#31415e!important;
  border:1px solid rgba(255,255,255,0.14)!important;
  color:#e8ecf4!important;
  box-shadow:0 1px 4px rgba(0,0,0,0.25)!important;
}
html[data-theme="dark"] button.tq-darkmode-toggle:hover{
  background:#3d4d68!important;
  border-color:rgba(255,255,255,0.2)!important;
  color:#fff!important;
  opacity:1!important;
}
button.tq-darkmode-toggle i.tq-darkmode-icon{
  display:inline-block!important;
  line-height:1!important;
  vertical-align:middle!important;
  transform:translateY(-2px);
  color:inherit!important;
}
html[data-theme="dark"] .main-menu-style > li > a,html[data-theme="dark"] .main-menu-style > li.has-megamenu > .main-menu-trigger{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .sticky_menu > .stkmenu{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .mm-active{color:#f08080!important;}
html[data-theme="dark"] .mega-menu,html[data-theme="dark"] .mega-menu-2{background-color:var(--tq-dm-navy)!important;background-image:none!important;}
html[data-theme="dark"] .mega-menu li a,html[data-theme="dark"] .mega-menu-2 li a{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .mega-menu li ul li a,html[data-theme="dark"] .mega-menu-2 li ul li a{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .mega-menu li a .menu-text,html[data-theme="dark"] .mega-menu-2 li a .menu-text{text-shadow:none!important;}
html[data-theme="dark"] .mega-menu li a.active,html[data-theme="dark"] .mega-menu-2 li a.active{color:var(--tq-dm-text)!important;}
/* 사이드 퀵 스위처 — master.css .switcher__icon · fa-comment-medical / fa-xmark */
html[data-theme="dark"] .switcher__icon{background:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;box-shadow:-3px 0 12px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .switcher__icon button{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .switcher__icon button:hover{color:var(--tq-dm-link)!important;}
/* 가로 1차 탭 (nav-barhor) · 서브 (sub-nav) — master.css #f9f9fa / #fff!important */
html[data-theme="dark"] .nav-barhor-section{border-top-color:var(--tq-dm-border)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .nav-barhor-section,html[data-theme="dark"] .nav-barhor-wrapper,html[data-theme="dark"] .nav-barhor-arrow{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .nav-barhor-item{border-right-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .nav-barhor-link{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .nav-barhor-link:hover{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .nav-barhor-link.active{background-color:var(--tq-dm-surface)!important;color:#f08080!important;}
html[data-theme="dark"] .nav-barhor-arrow{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .nav-barhor-section2.sub-nav,html[data-theme="dark"] .sub-nav .nav-barhor-wrapper,html[data-theme="dark"] .sub-nav .nav-barhor-arrow,html[data-theme="dark"] #subNavSection .nav-barhor-wrapper{background-color:var(--tq-dm-subnav)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .sub-nav .nav-barhor-link{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .sub-nav .nav-barhor-link:hover{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .sub-nav .nav-barhor-link.active{background-color:var(--tq-dm-subnav)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .sub-nav .nav-barhor-link.active:hover{background-color:var(--tq-dm-subnav)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] #subNavSection .nav-barhor-link.active{background-color:var(--tq-dm-subnav)!important;color:var(--tq-dm-text)!important;}
/* 비스티키:#subNavSection 이 max-width 1360px 이라 좌우는 부모 배경 — 서브네비 톤 통일 */
html[data-theme="dark"] .sub-nav-bar{background-color:var(--tq-dm-subnav)!important;border-bottom-color:var(--tq-dm-border)!important;}
/* 서브네비:푸터보다 살짝 밝은 톤 · add.js 스티키 시 인라인 #fff →!important로 덮음 */
html[data-theme="dark"] #subNavSection{background-color:var(--tq-dm-subnav)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
/* 스티키:라이트와 동일하게 하단만 라운드 (master:0 0 15px 15px). 보더·그림자는 과한 흰선 방지용 최소화 */
html[data-theme="dark"] #subNavSection.is-pinned{background-color:var(--tq-dm-subnav)!important;border:none!important;border-bottom:1px solid var(--tq-dm-border)!important;border-radius:0 0 15px 15px!important;box-shadow:none!important;}
@media only screen and (max-width:961px){html[data-theme="dark"] #subNavSection.is-pinned{border-radius:0!important;}}
/* THANQ MEDICAL GUIDE 띠:투명이면 본문(bg-white→surface-2) 위에 서페이스1만 보임 — 아래 섹션과 동일 톤 */
html[data-theme="dark"] .sub-margin{background-color:var(--tq-dm-surface-2)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .sub-margin-no-border{background-color:var(--tq-dm-surface-2)!important;}
/* site_*.php:정책 본문 section만 서페이스(1). footer.tq_footer.bg-white 는 제외(푸터 고정색 유지) */
html[data-theme="dark"] .tq-page-site section.bg-white{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .sub-margin-page-title,html[data-theme="dark"] .sub-margin-page-title .sub-t-strong,html[data-theme="dark"] .sub-margin-page-title .sub-t-thin{color:var(--tq-dm-text)!important;}
/* 첫 자식 my-* 마진이 섹션 위로 붕괴되면 배경(서페이스2) 밖에 서페이스1이 보임 */
html[data-theme="dark"] #smooth-content > section.bg-white.sec-end{display:flow-root;}
/* 모바일 햄버거 패널 */
html[data-theme="dark"] .navigation-body{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .navigation-body-header{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .navigation-link,html[data-theme="dark"] .navigation-link:visited{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .navigation-link.active,html[data-theme="dark"] .navigation-dropdown-link.active{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .navigation-dropdown{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .navigation-dropdown-link,html[data-theme="dark"] .navigation-dropdown-link:visited{color:var(--tq-dm-muted)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .navigation-dropdown-item:hover > .navigation-dropdown-link{color:var(--tq-dm-text)!important;background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] .navigation-body-close-button{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .header__nav__text{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .header__nav__text_b{color:#f08080!important;}
/* ━━━ 다크모드 유틸 전략 ━━━
   ① 토큰:--tq-dm-page / surface / surface-2 / border / text / muted / link
   ② basic.css 연회색·연블루 배경 → 아래 "일괄"로 처리 (클래스를 하나씩 추가하지 않도록)
   ③ 브랜드만 개별:.bg-tqnavy,.bg-tqred,.bg-tqblue
   ④ 인라인 style → [style*="hex"] 패턴만 추가
*/

/* basic.css — 흰색·gray1~6 (로고·연회색 밴드 → surface-2,surface와 한 단계 구분) */
html[data-theme="dark"] .bg-white,html[data-theme="dark"] .bg-gray1,html[data-theme="dark"] .bg-gray2,html[data-theme="dark"] .bg-gray3,html[data-theme="dark"] .bg-gray4,html[data-theme="dark"] .bg-gray5,html[data-theme="dark"] .bg-gray6{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .bg-gray7{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .bg-gray8{background-color:#1e3038!important;}
/* basic.css — 연블루·연회색 계열 일괄 (bg-tqsky / bg-tqsky2 / bg-tqsky3 포함) */
html[data-theme="dark"] [class*="bg-tqsky"],html[data-theme="dark"] .bg-tqbs,html[data-theme="dark"] .bg-tqbg2,html[data-theme="dark"] .bg-tqnavy2,html[data-theme="dark"] .bg-solitude,html[data-theme="dark"] .bg-snow,html[data-theme="dark"] .bg-quartz,html[data-theme="dark"] .bg-quartz2,html[data-theme="dark"] .bg-pure,html[data-theme="dark"] .bg-light-blue,html[data-theme="dark"] .bg-medium-light-gray,html[data-theme="dark"] .bg-very-light-gray,html[data-theme="dark"] .bg-light-gray,html[data-theme="dark"] .bg-seashell,html[data-theme="dark"] .bg-light-greenish-gray,html[data-theme="dark"] .bg-penguin-white,html[data-theme="dark"] .bg-light-desert-storm,html[data-theme="dark"] .bg-medium-desert-storm,html[data-theme="dark"] .bg-very-light-desert-storm,html[data-theme="dark"] .bg-light-cream,html[data-theme="dark"] .bg-very-light-pink,html[data-theme="dark"] .bg-very-light-orange,html[data-theme="dark"] .bg-sky-half,html[data-theme="dark"] .bg-sky-half2{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .bg-tqgra{background-image:linear-gradient(
    to bottom,var(--tq-dm-surface-2) 0%,var(--tq-dm-page) 100%
  )!important;}
html[data-theme="dark"] .bg-tqgra2{background-image:linear-gradient(
    to top,var(--tq-dm-surface-2) 0%,var(--tq-dm-page) 100%
  )!important;}
html[data-theme="dark"] .bg-tqnavy{/* navy-deep(#1a2332)는 페이지(#1e2533)와 거의 동일 — 한 톤 밝은 navy + 안쪽 테두리로 박스 구분 */
  background-color:var(--tq-dm-navy)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.1)!important;}
html[data-theme="dark"] .bg-tqblue{background-color:#1e6fa8!important;}
html[data-theme="dark"] .bg-tqred{background-color:#d94840!important;}
/* master.css — 패딩 박스 (.pcp5mp3:#ecf1f4) */
html[data-theme="dark"] .pcp5mp3{background-color:var(--tq-dm-surface-2)!important;border:1px solid var(--tq-dm-border)!important;}
/*
  인라인 style (background/border/color) — 클래스보다 우선하므로!important 필요.
  마크업은 그대로 두고 다크에서만 토큰으로 치환 (예:thyroid_nodule 박스,color:#31415e).
*/
html[data-theme="dark"] [style*="f5f7fb"]{background-color:var(--tq-dm-surface-2)!important;border:1px solid var(--tq-dm-border)!important;}
/* 연한 핑크 경고 박스 (#fff9f9 / #f0d4d2 — 악성결절 등) */
html[data-theme="dark"] [style*="fff9f9"]{background-color:rgba(231,65,57,0.12)!important;border:1px solid rgba(242,107,101,0.42)!important;}
html[data-theme="dark"] [style*="background-color:#f8f9fa"],html[data-theme="dark"] [style*="background-color:#f8f9fa"]{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] [style*="background-color:#f8f8f8"],html[data-theme="dark"] [style*="background-color:#f8f8f8"]{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] [style*="background-color:#31415e"],html[data-theme="dark"] [style*="background-color:#31415e"]{background-color:var(--tq-dm-navy-deep)!important;}
/* 흰 카드 + #ccc 테두리 (thanq_specialty 세포검사 안내 박스 등) */
html[data-theme="dark"] [style*="background-color:#fff"][style*="border:1px solid #ccc"],html[data-theme="dark"] [style*="background-color:#fff"][style*="border:1px solid #ccc"]{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
/* border-bottom:1px solid #e8eaee — 인라인 구분선 (thyroid_dysfunction·oral_tonsil 등) */
html[data-theme="dark"] [style*="border-bottom:1px solid #e8eaee"],html[data-theme="dark"] [style*="border-bottom:1px solid #e8eaee"]{border-bottom-color:var(--tq-dm-border)!important;}
/* #cdd4e0 — thyroid_nodule:border + border-top:3px 병행 시 상단 강조색 유지 */
html[data-theme="dark"] [style*="border:1px solid #cdd4e0"][style*="border-top:3px"],html[data-theme="dark"] [style*="border:1px solid #cdd4e0"][style*="border-top:3px"]{border-left-color:var(--tq-dm-border)!important;border-right-color:var(--tq-dm-border)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [style*="solid #cdd4e0"]:not([style*="border-top"]){border-color:var(--tq-dm-border)!important;}
/* 인라인 color:#31415e (브랜드 네이비 글자 — thanq_specialty·salivary_gland 등) */
html[data-theme="dark"] [style*="color:#31415e"],html[data-theme="dark"] [style*="color:#31415e"]{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .text-dark,html[data-theme="dark"] .text-black{color:var(--tq-dm-text)!important;}
/* text-set12·15 = 영상/슬라이드 위 연한 글씨(basic.css) — 배경 미디어는 그대로라 제외 */
html[data-theme="dark"] [class*="text-set"]:not(.text-set12):not(.text-set15){color:var(--tq-dm-muted)!important;}
/* 메인 첫 히어로 — 배경 surface-2 + 영상(--hero-video-dim)·이미지슬라이드(--hero-slide-dim) 각각 조절(add.css 라이트 0.35) */
html[data-theme="dark"] .hero-main-section{background-color:var(--tq-dm-surface-2)!important;--hero-video-dim:0.55;--hero-slide-dim:0.55;}
/* 메인 히어로(영상·이미지 슬라이드):배경 그대로 — 라이트 시안 글자 유지 */
html[data-theme="dark"] .hero-main-section .slide-deco-container .main_slide_t1,html[data-theme="dark"] .hero-main-section .slide-deco-container .main_slide_t1 strong,html[data-theme="dark"] .hero-main-section .slide-deco-container .main_slide_t2{color:#fff!important;}
html[data-theme="dark"] .hero-main-section .slide-deco-container .deco-brand-text,html[data-theme="dark"] .hero-main-section .slide-deco-container .deco-brand-text span{color:rgba(255,255,255,0.9)!important;}
/* 의료진 등 썸네일 슬라이드(.vs_slide) — 이미지 위 오버레이는 라이트 시안 유지 */
html[data-theme="dark"] .vs_slide .vs_slide__content,html[data-theme="dark"] .vs_slide .vs_slide__content__title,html[data-theme="dark"] .vs_slide .vs_slide__content__title span,html[data-theme="dark"] .vs_slide .vs_slide__content__name,html[data-theme="dark"] .vs_slide .vs_slide__content__date,html[data-theme="dark"] .vs_slide .vs_slide__content i{color:#fff!important;}
/* skin/latest/main_post_gal/style.css — .vs_slide__title color:#232323 (썸네일 하단 제목) */
html[data-theme="dark"] .vs_slide .vs_slide__title{color:var(--tq-dm-text)!important;}
/* Swiper fraction 네비 (1 / 8 등) — add.css color:var(--black);.text-white 카드 슬라이드는 제외 */
html[data-theme="dark"] .swiper-pagination.swiper-pagination-fraction:not(.text-white),html[data-theme="dark"] .vs_slide .swiper-pagination:not(.text-white){color:var(--tq-dm-text)!important;opacity:1!important;}
/* Swiper prev/next — add.css color:var(--black-3);모바일 opacity:0.3;img 는 slider-arrow.svg(진) / -w.svg(흰) */
html[data-theme="dark"] .vs_slide .swiper-button-prev.hero_prev,html[data-theme="dark"] .vs_slide .swiper-button-next.hero_next{color:var(--tq-dm-text)!important;opacity:1!important;}
html[data-theme="dark"] .vs_slide .swiper-button-prev.hero_prev:hover,html[data-theme="dark"] .vs_slide .swiper-button-next.hero_next:hover{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .vs_slide .swiper-button-prev.hero_prev img:not([src*="-w"]),html[data-theme="dark"] .vs_slide .swiper-button-next.hero_next img:not([src*="-w"]){filter:brightness(0) invert(1);opacity:0.92;}
html[data-theme="dark"] .vs_slide .swiper-button-prev.hero_prev:hover img:not([src*="-w"]),html[data-theme="dark"] .vs_slide .swiper-button-next.hero_next:hover img:not([src*="-w"]){opacity:1;}
/* 메인 의료진 띠 — 라이트(#eaeaea→#d3d7dc)와 같은 회색축, 살짝만 어둡게(background 단축 덮어쓰기) */
html[data-theme="dark"] .tq-staff-section{background:linear-gradient(180deg,#c2c5c9 0%,#a4a9b2 100%)!important;}
/* add.css 물결 — 다크에서 알파 대폭 낮춤(은은한 웨이브) */
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(1){fill:rgba(255,255,255,0.06)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(2){fill:rgba(255,255,255,0.1)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(3){fill:rgba(255,255,255,0.16)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(4){fill:rgba(255,255,255,0.22)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(5){fill:rgba(255,255,255,0.28)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(6){fill:rgba(255,255,255,0.34)!important;}
html[data-theme="dark"] .wave-area-bottom .parallax-wave > use:nth-child(7){fill:rgba(255,255,255,0.48)!important;}
/* 메인 의료진 카드 슬라이드 — index #doctor (기본 .bg-white → surface 대신 패널 톤) */
html[data-theme="dark"] section#doctor.bg-white{background-color:var(--tq-dm-surface-2)!important;}
/* 메인만 — ACADEMIC & COLUMN · NEWS & PRESS (bg-gray5 일괄 surface 보다 높은 특이도로 surface-2) */
html[data-theme="dark"] .tq-section-academic-column.bg-gray5,html[data-theme="dark"] .tq-section-news-press.bg-gray5{background-color:var(--tq-dm-surface-2)!important;}
/* 메인(index)만 — <main> 은 index.php 에만 존재. 4개 블록 배경 서페이스(1) */
html[data-theme="dark"] #smooth-content main .flow__section__area.bg-gray3,html[data-theme="dark"] #smooth-content main .flow__section__area_end.bg-gray3{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] #smooth-content main section.youtube-section{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] #smooth-content main section.always-on.bg-white{background-color:var(--tq-dm-surface)!important;}
/* add.css 플로우 — #e6e6e4·로고·#fdfdfd 를 다크용 회색으로만 살짝 진하게(네이비 토큰 금지:가로스크롤·의료진 회색 띠가 한 덩어리로 보임) */
html[data-theme="dark"] .flow__section{background-color:#bdbdbb!important;background-image:url("/kr/images/thanq_seoul_logo.webp")!important;background-repeat:no-repeat!important;background-size:auto!important;}
@media only screen and (max-width:767px){html[data-theme="dark"] .flow__section{background-image:none!important;}}
/* 플로우 중 "압도적인 신뢰성" 패널만 — add.css상 첫 번째 .flow__section__area(bg 유틸 없음). 나머지(bg-gray3·bg-white)는 기존 bg-* 다크 규칙 유지 */
html[data-theme="dark"] .flow__section__area:not(.bg-white):not(.bg-gray3){background-color:var(--tq-dm-surface-2)!important;}
/* 땡큐서울의원 수술 세부현황 슬라이드 — 압도적인 신뢰성 패널과 동일 배경 (add.css .lpddki 는 메인 해당 섹션 전용) */
html[data-theme="dark"] .flow__section__area.bg-white.lpddki{background-color:var(--tq-dm-surface-2)!important;}
/* add.css .flow__section__area .sec-title-wrapper p — color:var(--black-2) */
html[data-theme="dark"] .flow__section__area .sec-title-wrapper p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .flow__section__area .card-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .flow__section__area .card-text strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .flow__section_btn li a{color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .flow__section_btn li a:hover{color:var(--tq-dm-text)!important;background-color:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-link)!important;}
/* add.css .tqs_count_area — #fdfdfd;master .border-effect::after #fff */
html[data-theme="dark"] .tqs_count_area{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqs_count_area.border-effect::after{background:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqs_count_item p{color:var(--tq-dm-muted)!important;}
/* add.css .scmtm — border 1px solid #ddd */
html[data-theme="dark"] .scmtm{border-color:var(--tq-dm-border)!important;}
/* basic.css 브랜드 텍스트 유틸 (.text-tqnavy 등 — 소제목·강조,fs/fw 클래스는 색만 여기서) */
html[data-theme="dark"] .text-tqnavy,html[data-theme="dark"] .text-tqblue{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .text-tqred{color:#f26b65!important;}
html[data-theme="dark"] .text-tqsky{color:#5ec8ff!important;}
html[data-theme="dark"] .text-tqcate{color:#5fd4c4!important;}
html[data-theme="dark"] .text-bmenu{color:#e88a84!important;}
/* master.css — 아웃라인 pill 버튼 (.hr-btn-navy / .hr-btn-navy-s) */
html[data-theme="dark"] .hr-btn-navy,html[data-theme="dark"] .hr-btn-navy-s{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .hr-btn-navy:hover,html[data-theme="dark"] .hr-btn-navy-s:hover{color:var(--tq-dm-text)!important;background-color:var(--tq-dm-navy-deep)!important;border-color:rgba(158,192,255,0.4)!important;}
html[data-theme="dark"] .tq_footer,html[data-theme="dark"] .tq_footer_copy{background-color:var(--tq-dm-footer)!important;border-color:var(--tq-dm-border);}
html[data-theme="dark"] .tq_w_title,html[data-theme="dark"] .tq_w_title_lt{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tq_footer_list,html[data-theme="dark"] .tq_footer_text{color:var(--tq-dm-muted)!important;}
/* 약관 등 작은 링크 — list_hor 안이라 .tq_footer_list 와 별개,master #666 덮음 */
html[data-theme="dark"] .tq_footer_list_small{color:var(--tq-dm-muted)!important;}
/* 푸터 로고:logoe_darkmode.svg 가 없으면 footer_main 에서 원본만 출력(다크에서도 동일) */
.footer__logo--theme-dark{display:none!important;}
html[data-theme="dark"] .footer__logo--theme-light{display:none!important;}
/* block 이면 부모 text-align(pleftmcenter)만으로는 가운데 정렬 안 됨 — 모바일 가운데는 master.css @media (max-width:767px) .footer__logo */
html[data-theme="dark"] .footer__logo--theme-dark{display:block!important;}
/* tq_k.svg / tq_k_darkmode.svg — 의료진·병원소개 등 (thanq_doctors / thanq_seoul) */
.tq-tqk-logo--theme-dark{display:none!important;}
html[data-theme="dark"] .tq-tqk-logo--theme-light{display:none!important;}
html[data-theme="dark"] .tq-tqk-logo--theme-dark{display:inline-block!important;}
/* ── 게시판 스킨 (skin/board/*/
style.css — list·gallery·keyword 등)
   스킨은 background 단축 속성(#fcfcfc)을 쓰므로 background 로 통째로 덮음 */
html[data-theme="dark"] ul.tables_th,html[data-theme="dark"] .tables_th{background:var(--tq-dm-surface-2)!important;border-bottom-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tables_th li{color:inherit!important;}
html[data-theme="dark"] .tables_td{border-bottom-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tables_td:hover{background:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .rel_table{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .pa_subject a{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .pa_subject .sub_txt{color:var(--tq-dm-muted)!important;}
/* 갤러리·카드 스킨 제목 링크 (skin/board/gallery|card/style.css .titles) */
html[data-theme="dark"] .titles{color:var(--tq-dm-text)!important;}
/* 게시글 보기 상단 제목 (skin/board/*/
style.css .v_title — color:#111) */
html[data-theme="dark"] .v_title{color:var(--tq-dm-text)!important;}
/* 게시글 보기 상단 래퍼 (skin/board/*/
style.css .v_top_div — border-bottom:#ddd) */
html[data-theme="dark"] .v_top_div{border-bottom-color:var(--tq-dm-border)!important;}
/* 갤러리·카드 목록 메타 (skin/board/*/
style.css .main_lists_cont — color:#565656) */
html[data-theme="dark"] .main_lists_cont{color:var(--tq-dm-muted)!important;}
/* 이전글·다음글 (skin/board/list|gallery|card/style.css .bo_v_nb) */
html[data-theme="dark"] .bo_v_nb{background:var(--tq-dm-surface)!important;border-top:2px solid var(--tq-dm-border)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .bo_v_nb li{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .bo_v_nb li:hover{background:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .bo_v_nb .nb_tit{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bo_v_nb .nb_tit i{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .bo_v_nb .nb_link a{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .bo_v_nb .nb_link a:hover{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bo_v_nb .nb_date{color:var(--tq-dm-muted)!important;}
/* basic.css 유틸 — 연회색 테두리 */
html[data-theme="dark"] .border-d5d5d5{border-color:var(--tq-dm-border)!important;}
/* basic.css — #ddd·#dedede 계열 (border-dedede 명칭 / 실제 #ddd 동일 블록) */
html[data-theme="dark"] .border-dedede,html[data-theme="dark"] .border-ddd,html[data-theme="dark"] .border-eee{border-color:var(--tq-dm-border)!important;}
/* add.css · 갤러리 스킨 — border 1px solid #dedede */
html[data-theme="dark"] .tqcss19_ico-1,html[data-theme="dark"] .tqcss19_ico-2,html[data-theme="dark"] .tqcss19_ico-3,html[data-theme="dark"] .tqcss19_ico-4,html[data-theme="dark"] .tqcss47_logo{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .img_link{border-color:var(--tq-dm-border)!important;}
/* basic.css — 반투명 흰 배경 (라이트 0.9) → 다크: 부모(bg-tqsky 등 surface-2) 위 카드로 surface-1+테두리 */
html[data-theme="dark"] .bg-transparent-white{
  background-color:var(--tq-dm-surface)!important;
  border-color:var(--tq-dm-border)!important;
}
/* 페이지네이션 현재 페이지 (css/default.css · skin/board/*/
style.css) */
html[data-theme="dark"] .pg_current{background:var(--tq-dm-navy-deep)!important;border:1px solid var(--tq-dm-link)!important;color:var(--tq-dm-text)!important;}
/* 페이지네이션 일반 링크 (#f5f5f5·#eee·color:#444!important 등) */
html[data-theme="dark"] .pg_page{background:var(--tq-dm-surface-2)!important;color:var(--tq-dm-muted)!important;border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .pg_page:hover{background:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
/* 엘프(Elf) 등 삽입 위젯 — 해시 클래스명(빌드마다 바뀔 수 있음) */
html[data-theme="dark"] .bEtZOY,html[data-theme="dark"] .iejzhH{background-color:var(--tq-dm-surface)!important;border:1px solid var(--tq-dm-border)!important;box-sizing:border-box;}
html[data-theme="dark"] .irziqB{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .irziqB *{color:inherit!important;}
html[data-theme="dark"] .irziqB a{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .bNAJGd{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bxkjWd{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .exownv,html[data-theme="dark"] .dPmPDN{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .btn_category_list a{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .btn_category_list a:hover{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .btn_category_list a.active{background-color:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-link)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .search_box{border-color:var(--tq-dm-border)!important;background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .search_box .b_sch_sel{background-color:var(--tq-dm-surface-2)!important;border-right-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .search_box .sch_inp{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .search_box .b_inp_ico{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .search_box .b_inp_ico svg{stroke:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .search_box .b_inp_ico:hover svg{stroke:var(--tq-dm-text)!important;}
/* 게시글·댓글 HTML 본문:워드/웹 붙여넣기 인라인
   (background-color·color·font-family·font-size·letter-spacing 등)
   일반 인라인 style은!important가 이김. 인라인에도!important가 있으면 CSS만으로 한계 → 에디터·저장 시 sanitize 권장 */
html[data-theme="dark"] .v-con,html[data-theme="dark"] #bo_v_atc,html[data-theme="dark"] .cmt_contents{background-color:transparent!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .v-con [bgcolor],html[data-theme="dark"] #bo_v_atc [bgcolor],html[data-theme="dark"] .cmt_contents [bgcolor]{background-color:transparent!important;}
html[data-theme="dark"] .v-con *:not(img):not(video):not(iframe):not(svg):not(canvas):not(picture),html[data-theme="dark"] #bo_v_atc *:not(img):not(video):not(iframe):not(svg):not(canvas):not(picture),html[data-theme="dark"] .cmt_contents *:not(img):not(video):not(iframe):not(svg):not(canvas):not(picture){background-color:transparent!important;color:inherit!important;font-family:inherit!important;letter-spacing:normal!important;}
html[data-theme="dark"] .v-con a,html[data-theme="dark"] #bo_v_atc a,html[data-theme="dark"] .cmt_contents a{color:var(--tq-dm-link)!important;}
/* 워드가 자주 쓰는 span/p에 묶인 pt 단위 글자 크기 → 본문에 맞춤 */
html[data-theme="dark"] .v-con span,html[data-theme="dark"] .v-con p,html[data-theme="dark"] .v-con font,html[data-theme="dark"] #bo_v_atc span,html[data-theme="dark"] #bo_v_atc p,html[data-theme="dark"] #bo_v_atc font,html[data-theme="dark"] .cmt_contents span,html[data-theme="dark"] .cmt_contents p,html[data-theme="dark"] .cmt_contents font{font-size:inherit!important;}
html[data-theme="dark"] .bg-gradient-greenblue{background:linear-gradient(90deg,#156b12 0%,#243580 100%)!important;}
/* ── 아이콘 그룹 (icon_group / tqcss37) ── */
html[data-theme="dark"] .tqcss37_section.border-top{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss37_wrap{background-color:var(--tq-dm-page)!important;}
/* 메인(index)·thanq_seoul.php — 아이콘 그룹 배경 surface-2 (섹션 전체 = 양옆 포함) */
html[data-theme="dark"] .tqcss37_section--main{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss37_section--main .tqcss37_wrap{background-color:var(--tq-dm-surface-2)!important;}
/* .tqseoul-on 본문 안에서도 일반 .tqcss37_wrap(page=surface) 덮어씀 */
html[data-theme="dark"] .tqseoul-on .tqcss37_section--main{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqseoul-on .tqcss37_section--main .tqcss37_wrap{background-color:var(--tq-dm-surface-2)!important;}
/* 메인(index)만 — 아이콘 그룹 배경 푸터와 동일 (_INDEX_ 일 때만 .tqcss37_section--index) */
html[data-theme="dark"] .tqcss37_section--index,html[data-theme="dark"] .tqcss37_section--index .tqcss37_wrap,html[data-theme="dark"] .tqseoul-on .tqcss37_section--index,html[data-theme="dark"] .tqseoul-on .tqcss37_section--index .tqcss37_wrap{background-color:var(--tq-dm-footer)!important;}
html[data-theme="dark"] .tqcss37_row:first-child{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss37_icon{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss37_icon i{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss37_label{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss37_item:hover .tqcss37_icon{background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] .tqcss37_item:hover .tqcss37_icon i{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss37_item.active .tqcss37_icon{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss37_item.active .tqcss37_icon i,html[data-theme="dark"] .tqcss37_item.active .tqcss37_label{color:#e74139!important;}
@media (max-width:767px){html[data-theme="dark"] .tqcss37_trigger{background-color:var(--tq-dm-page)!important;color:var(--tq-dm-text)!important;}html[data-theme="dark"] .tqcss37_section--main .tqcss37_trigger{background-color:var(--tq-dm-surface-2)!important;}html[data-theme="dark"] .tqcss37_trigger:first-child{border-bottom-color:var(--tq-dm-border)!important;}html[data-theme="dark"] .tqcss37_trigger .tqcss37_arrow i{color:var(--tq-dm-muted)!important;}html[data-theme="dark"] .tqcss37_row{background-color:var(--tq-dm-page)!important;}html[data-theme="dark"] .tqcss37_section--main .tqcss37_row{background-color:var(--tq-dm-surface-2)!important;}html[data-theme="dark"] .tqseoul-on .tqcss37_section--main .tqcss37_trigger{background-color:var(--tq-dm-surface-2)!important;}html[data-theme="dark"] .tqseoul-on .tqcss37_section--main .tqcss37_row{background-color:var(--tq-dm-surface-2)!important;}html[data-theme="dark"] .tqcss37_section--index .tqcss37_trigger,html[data-theme="dark"] .tqcss37_section--index .tqcss37_row,html[data-theme="dark"] .tqseoul-on .tqcss37_section--index .tqcss37_trigger,html[data-theme="dark"] .tqseoul-on .tqcss37_section--index .tqcss37_row{background-color:var(--tq-dm-footer)!important;}html[data-theme="dark"] .tqcss37_row.open{border-bottom-color:var(--tq-dm-border)!important;}html[data-theme="dark"] .tqcss37_row.open:last-child{border-top-color:var(--tq-dm-border)!important;}}
/* ── 섹션 타이틀바 (page_hor_next + subtitle_svg_bg SVG 영문 배경) ── */
html[data-theme="dark"] .page_hor_next{background-color:var(--tq-dm-page-hor)!important;border-top-color:var(--tq-dm-border)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .subbox-bg rect{fill:var(--tq-dm-page-hor)!important;}
html[data-theme="dark"] .outline-txt{stroke:rgba(255,255,255,0.1)!important;stroke-opacity:1!important;}
html[data-theme="dark"] .text-area .main-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .text-area .sub-title{color:var(--tq-dm-muted)!important;}
@media (max-width:768px){html[data-theme="dark"] .page_hor_next{background-color:var(--tq-dm-page-hor)!important;}html[data-theme="dark"] .bg-thanq .page_hor_next{background-color:var(--tq-dm-page-hor)!important;}html[data-theme="dark"] .outline-txt{stroke:rgba(255,255,255,0.12)!important;}html[data-theme="dark"] .text-area .main-title{color:var(--tq-dm-text)!important;}html[data-theme="dark"] .text-area .sub-title{color:var(--tq-dm-muted)!important;}}
/* ===== thanq_seoul.php 등:tq-hello · tqcss43~47 (add.css 고정 #fff·그라데이션 대응) ===== */
html[data-theme="dark"] .bg-gradient-solitude-white{background-image:none!important;background-color:var(--tq-dm-page)!important;}
html[data-theme="dark"] .tq-hello{background-color:var(--tq-dm-page)!important;}
html[data-theme="dark"] .tqh-slogan,html[data-theme="dark"] .tqh-slogan-thin{background:linear-gradient(93deg,#6d7d94 0%,#aab8cc 42%,#e6eaf2 100%)!important;-webkit-background-clip:text!important;background-clip:text!important;-webkit-text-fill-color:transparent!important;}
html[data-theme="dark"] .tqh-line{background:rgba(255,255,255,0.22)!important;}
html[data-theme="dark"] .tqh-sub{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqh-img-wrap{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqh-col p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss43_sec{background-color:var(--tq-dm-page)!important;}
html[data-theme="dark"] .tqcss43_title,html[data-theme="dark"] .tqcss43_ko{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss43_label{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss43_circle{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss43_bg-letter{color:rgba(255,255,255,0.06)!important;}
html[data-theme="dark"] .tqcss43_en{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss43_dot{background-color:#7a9fd4!important;}
html[data-theme="dark"] .tqcss43_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss43_head p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss43_track::before{background:linear-gradient(to right,transparent,rgba(255,255,255,0.14) 10%,rgba(255,255,255,0.14) 90%,transparent)!important;}
@media (max-width:767px){html[data-theme="dark"] .tqcss43_track::before{background:linear-gradient(to bottom,transparent,rgba(255,255,255,0.14) 10%,rgba(255,255,255,0.14) 90%,transparent)!important;}}
html[data-theme="dark"] .tqcss44_sec.bg-gray5{background-color:var(--tq-dm-page)!important;background-image:none!important;}
/* thanq_seoul.php 본문:짝수= surface-2 · 홀수= surface (1·2번째 모두 surface-2) */
html[data-theme="dark"] .tq-seoul-strip--odd{background-color:var(--tq-dm-surface)!important;background-image:none!important;}
html[data-theme="dark"] .tq-seoul-strip--even{background-color:var(--tq-dm-surface-2)!important;background-image:none!important;}
html[data-theme="dark"] #scroll_section1.tq-seoul-strip--odd,html[data-theme="dark"] section.tq-hello.tq-seoul-strip--odd{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss44_tag,html[data-theme="dark"] .tqcss45_tag,html[data-theme="dark"] .tqcss46_tag,html[data-theme="dark"] .tqcss47_tag{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_bracket,html[data-theme="dark"] .tqcss45_bracket,html[data-theme="dark"] .tqcss46_bracket{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_bracket .b,html[data-theme="dark"] .tqcss45_bracket .b,html[data-theme="dark"] .tqcss46_bracket .b{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_bracket .k,html[data-theme="dark"] .tqcss45_bracket .k,html[data-theme="dark"] .tqcss46_bracket .k{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss47_bracket{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss47_bracket .b{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss47_bracket .k{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_mission_quote{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_mission_quote em{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_vision_sub{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_vision_line::before{background:linear-gradient(to bottom,rgba(255,255,255,0.25),transparent)!important;}
html[data-theme="dark"] .tqcss44_vision_circle,html[data-theme="dark"] .tqcss44_vision_circle:nth-child(2){background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss44_vision_ctitle,html[data-theme="dark"] .tqcss44_vision_ctitle em{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_vision_ctxt{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_vision_ctxt small{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_cv_card{background:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss44_cv_icon{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_cv_ko{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_cv_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss44_cap_name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss44_cap_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss45_logo_caption{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss45_sub_item{border-right-color:var(--tq-dm-border)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss45_sub_name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss45_sub_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss45_color_chip2{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss45_color_info2{background:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss45_color_name2,html[data-theme="dark"] .tqcss45_color_hex2{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss45_color_mode{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss45_color_divider{background:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss46_sec{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss46_card{border-left-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss46_title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss46_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss46_btn{background:var(--tq-dm-surface)!important;border-color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss46_btn svg{stroke:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss46_btn:hover{background:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss46_pagination .swiper-pagination-bullet{background:rgba(255,255,255,0.2)!important;}
html[data-theme="dark"] .tqcss46_pagination .swiper-pagination-bullet-active{background:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss47_card{background:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss47_logo{background-color:#fff!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss47_name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss47_type{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] a.btn_b03,html[data-theme="dark"] .btn_b03{background:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] a.btn_b03:hover,html[data-theme="dark"] .btn_b03:hover,html[data-theme="dark"] .tqcss45_dl_btn:hover{background:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-link)!important;color:var(--tq-dm-text)!important;}
/* ===== 공통 페이지 (index·클리닉·진료안내·뉴스·사이트약관·검사센터 등) — tqcss07·32·38~42·FAQ·policy ===== */

/* 클리닉 표:.tqcss07_* / .tqcss08_* 는 add.css 에서 동일 패턴(번호만 다름) → 접미사로 일괄 */
html[data-theme="dark"] [class*="tqcss"][class*="table-title"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="custom-table"]{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] thead th{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] td,html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] th{color:var(--tq-dm-muted)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] td[class*="col-category"],html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] th[class*="col-category"]{color:#a8d8ff!important;}
html[data-theme="dark"] [class*="tqcss"][class*="custom-table"] tr{border-color:var(--tq-dm-border)!important;}
/* 표 래퍼 — add.css border:1px solid #ddd (.tqcss07·08_table-responsive) */
html[data-theme="dark"] .tqcss07_table-responsive,html[data-theme="dark"] .tqcss08_table-responsive{border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="col-category"]{background-color:var(--tq-dm-surface-2)!important;color:#a8d8ff!important;}
html[data-theme="dark"] .tqcss07_col-category{color:#a8d8ff!important;}
html[data-theme="dark"] .tqcss07_col-category .tqcss07_eng-text{color:rgba(168,216,255,0.9)!important;}
html[data-theme="dark"] .tqcss07_eng-text,html[data-theme="dark"] .tqcss07_footer-note{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss32_container{background-color:transparent!important;}
html[data-theme="dark"] .tqcss32_section-title,html[data-theme="dark"] .tqcss32_doc-name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss32_contact-card,html[data-theme="dark"] .tqcss32_hour-box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_contact-desc,html[data-theme="dark"] .tqcss32_contact-label,html[data-theme="dark"] .tqcss32_hour-time,html[data-theme="dark"] .tqcss32_hours-note{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss32_hour-day{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss32_doc-img-wrap{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_doc-title{color:var(--tq-dm-muted)!important;}
/* add.css border-bottom:2px solid var(--tqroot-navy) — 다크에서는 링크색이 아닌 구분선 */
html[data-theme="dark"] .tqcss32_doc-header{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_table th{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_table td,html[data-theme="dark"] .tqcss32_table td:first-child{background-color:var(--tq-dm-surface)!important;color:var(--tq-dm-muted)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_table .note-row td{background-color:var(--tq-dm-surface)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss32_badge{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss32_btn-intro{background-color:var(--tq-dm-surface)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_modal-content{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss32_modal-left{background-color:var(--tq-dm-surface-2)!important;border-right-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss32_modal-img-wrap{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss32_modal-name,html[data-theme="dark"] .tqcss32_modal-list li{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss32_modal-spec{color:var(--tq-dm-muted)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss38_sec{background-color:var(--tq-dm-page)!important;}
html[data-theme="dark"] .tqcss39_body{border-color:var(--tq-dm-border)!important;background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss39_floors{background-color:var(--tq-dm-surface-2)!important;border-right-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss39_floor{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss39_floor.active{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss39_slide-area,html[data-theme="dark"] .tqcss39_bar{background-color:var(--tq-dm-surface)!important;border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss39_bar-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss39_bar-desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss39_fixed-img{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss40_feature{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss40_feat-img,html[data-theme="dark"] .tqcss40_main_swiper .swiper-slide{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss40_feat-info{background-color:var(--tq-dm-surface)!important;border-left-color:var(--tq-dm-border)!important;border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss40_feat-name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss40_feat-desc,html[data-theme="dark"] .tqcss40_feat-num,html[data-theme="dark"] .tqcss40_feat-counter{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss40_thumb{background-color:var(--tq-dm-surface-2)!important;box-shadow:0 4px 12px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .tqcss40_map_placeholder{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss40_row{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss40_icon_box span,html[data-theme="dark"] .tqcss40_desc,html[data-theme="dark"] .tqcss40_bus-nums{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss40_desc strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss40_notice{border-top-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss40_list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss40_list li::before{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss40_notice p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss41_block-title{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss41_list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss41_list li::before{background-color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss42_hd-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss42_hd-desc,html[data-theme="dark"] .tqcss42_member-name,html[data-theme="dark"] .tqcss42_member-role{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss42_btn{background:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss42_btn:hover{background:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-link)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss42_p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .policy-wrap{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .policy-wrap .title-main{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .policy-wrap .title-section{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .policy-wrap .text-body,html[data-theme="dark"] .policy-wrap li,html[data-theme="dark"] .policy-wrap p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .policy-wrap ul li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .policy-wrap ul li::before{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .faq-search-box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;box-shadow:0 4px 12px rgba(0,0,0,0.25)!important;}
html[data-theme="dark"] .faq-search-box input{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .faq-search-box input::placeholder{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .faq-card{background-color:var(--tq-dm-surface)!important;box-shadow:0 6px 24px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .faq-card__a,html[data-theme="dark"] .faq-card__logo{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .faq-a-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .faq-a-text strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .mobile-bottom-nav{background-color:var(--tq-dm-navy-deep)!important;border-top:1px solid var(--tq-dm-border)!important;box-shadow:0 -4px 12px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .mobile-bottom-nav__item-content span{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .mobile-bottom-nav__item-content i{color:var(--tq-dm-muted)!important;}
/* 오프캔버·mean-menu (master.css — --black-4 / --gray-14 / #222 / 확장 버튼 회색) */
html[data-theme="dark"] .offcanvas__left{border-right-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li a,html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li div{color:var(--tq-dm-text)!important;border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav > ul > li:last-child > a{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li a .menu-text{text-shadow:0 80px 0 var(--tq-dm-surface)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li a.mean-expand,html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li div.mean-expand{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li a.mean-expand:hover,html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li div.mean-expand:hover{background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li li:first-child{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .offcanvas__menu-wrapper.mean-container .mean-nav ul li li a{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .star-sec-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .sec-title{color:var(--tq-dm-text)!important;}
/* ===== 클리닉·진료 콘텐츠 블록 (tqcss01·02·03·11·34~36·s02 시리즈) ===== */
html[data-theme="dark"] .tqcss01_info-card{background-color:var(--tq-dm-surface)!important;box-shadow:0 4px 14px rgba(0,0,0,0.25)!important;}
html[data-theme="dark"] .tqcss01_info-text,html[data-theme="dark"] .tqcss01_card-sub-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss01_center-box{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss02_card-box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss02_list-item{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss02_highlight{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss03_top-desc,html[data-theme="dark"] .tqcss03_main-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss03_desc-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss11_chart-wrapper{background-color:var(--tq-dm-surface)!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,0.06)!important;}
html[data-theme="dark"] .tqcss11_chart-title,html[data-theme="dark"] .tqcss11_main-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss11_chart-divider{border-top-color:rgba(255,255,255,0.1)!important;opacity:1!important;}
html[data-theme="dark"] .tqcss11_info-box{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss11_info-content h4{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss11_info-content p{color:var(--tq-dm-muted)!important;}
/* thyroid_surgery.php .thyroid-gallery — 본문(surface)보다 한 톤 밝은 면 + 그림자로 카드감 */
html[data-theme="dark"] .thyroid-gallery .card{--bs-card-bg:var(--tq-dm-surface-2);--bs-card-border-color:var(--tq-dm-border);background-color:var(--tq-dm-surface-2)!important;border:1px solid var(--tq-dm-border)!important;box-shadow:0 4px 16px rgba(0,0,0,0.32)!important;}
html[data-theme="dark"] .thyroid-gallery .card .card-body{background-color:transparent!important;}
html[data-theme="dark"] .thyroid-gallery .card .card-text{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss34_online_box{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss34_online_box h3,html[data-theme="dark"] .tqcss34_step_text,html[data-theme="dark"] .tqcss34_list > li{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss34_online_box p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss34_diagram_step,html[data-theme="dark"] .tqcss34_doc_col{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss34_doc_body{color:var(--tq-dm-muted)!important;}
/* guide_documents:온라인 발급 절차 안내 박스 — 인라인 border #ccc */
html[data-theme="dark"] .tqcss34_container .p-4.text-center.mt-3.b-r-15[style*="border"][style*="#ccc"]{border-color:var(--tq-dm-border)!important;}
/* 문서 표·다운로드 버튼:.tqcss34_* ~ .tqcss36_* 동일 토큰 (NN만 다름). table_wrap 제외,tqcss45_dl_btn 제외 */
html[data-theme="dark"] [class*="tqcss"][class*="34_table"]:not([class*="table_wrap"]),html[data-theme="dark"] [class*="tqcss"][class*="35_table"]:not([class*="table_wrap"]),html[data-theme="dark"] [class*="tqcss"][class*="36_table"]:not([class*="table_wrap"]){border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="34_table"]:not([class*="table_wrap"]) th,html[data-theme="dark"] [class*="tqcss"][class*="35_table"]:not([class*="table_wrap"]) th,html[data-theme="dark"] [class*="tqcss"][class*="36_table"]:not([class*="table_wrap"]) th{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="34_table"]:not([class*="table_wrap"]) td,html[data-theme="dark"] [class*="tqcss"][class*="35_table"]:not([class*="table_wrap"]) td,html[data-theme="dark"] [class*="tqcss"][class*="36_table"]:not([class*="table_wrap"]) td{background-color:var(--tq-dm-surface)!important;color:var(--tq-dm-muted)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="dl_btn"]:not([class*="tqcss45"]){border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;background-color:var(--tq-dm-surface)!important;}
/*
  add.css .tqcss* 다크 보강 — 클래스를 하나씩 외울 필요 없음:- 번호(NN)만 다른 동일 접미사 → [class*="tqcss"][class*="접미사"] 한 줄로 끝.
  - 예외(배경 위 흰 글씨,원색 등)만 아래 개별 규칙 또는:not() 으로 덮기.
  - 같은 페이지:클리닉 표(custom-table),문서 표(34_table~36_table),dl_btn(45 제외) 등은 위 규칙으로 이미 묶임.
*/
html[data-theme="dark"] [class*="tqcss"][class*="plain_notice"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss34_plain_notice strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss36_plain_notice strong{color:#f26b65!important;}
html[data-theme="dark"] [class*="tqcss"][class*="list_notice"]{border-top-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="sec_title"]{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="case_box"],html[data-theme="dark"] [class*="tqcss"][class*="range_item"]{border-color:var(--tq-dm-border)!important;background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="range_title"]{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="range_desc"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="case_body"]{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="case_list"] li::before{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="case_text"],html[data-theme="dark"] [class*="tqcss"][class*="case_list"] li,html[data-theme="dark"] [class*="tqcss"][class*="doc_title"],html[data-theme="dark"] [class*="tqcss"][class*="doc_list"] li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="doc_wrap"]{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="doc_item"]{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="doc_num"]{color:rgba(255,255,255,0.12)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="doc_list"] li::before{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02b_title,html[data-theme="dark"] .tqcss_s02b_subtitle{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s02b_text,html[data-theme="dark"] .tqcss_s02b_small,html[data-theme="dark"] .tqcss_s02b_tnm_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02b_tnm_wrap,html[data-theme="dark"] .tqcss_s02b_tnm_row{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s02b_card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s02b_card_body{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss_s02b_img_area{background-color:var(--tq-dm-surface-2)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s02b_tnm_label{background-color:#3d4d66!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s02b_tag{background-color:#3d4d66!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s02_stats_box{background-color:var(--tq-dm-navy-deep)!important;border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s02_chart_sub{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02_desc_list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02_desc_list li::before{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02_detail_title{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s02_detail_title strong{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss_s02_detail_item{background-color:var(--tq-dm-surface)!important;}
/* ===== 검사센터 examination:원데이 배너·플로우·병리·초음파 플로우 ===== */
html[data-theme="dark"] .ex-oneday-banner .tagline,html[data-theme="dark"] .ex-oneday-banner .intro{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-oneday-banner .heading-wrap h1,html[data-theme="dark"] .ex-oneday-banner .heading-wrap .sub{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-oneday-banner .flow-circle{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-oneday-banner .banner .cards .card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-oneday-banner .banner .cards .card .card-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-oneday-banner .banner .cards .card .card-text strong,html[data-theme="dark"] .ex-oneday-banner .banner .cards .card .card-text .accent{color:var(--tq-dm-text)!important;}
/* 원데이 배너:--red-dark 등 어두운 빨강 → 다크 배경에서 가독성 있게 한 톤 밝게 */
html[data-theme="dark"] .ex-oneday-banner .banner .cards .card .card-result{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .banner .cards .card .divider{background:linear-gradient(90deg,transparent,#e57373,transparent)!important;}
html[data-theme="dark"] .ex-oneday-banner .banner .cards-arrow{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .tagline span{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .heading-wrap h1 em{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .flow-arrow{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .flow > .flow-arrow:nth-child(4)::after{color:#e57373!important;}
html[data-theme="dark"] .ex-oneday-banner .disclaimer{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqvid_label{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-flow__intro{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-flow__node--default,html[data-theme="dark"] .ex-th-flow__node--ct{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-flow__node-name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-th-flow__node-desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-flow__node-ico{color:#e57373!important;}
html[data-theme="dark"] .ex-th-flow__arrow--h .ex-th-flow__arrow-label,html[data-theme="dark"] .ex-th-flow__arrow--v .ex-th-flow__arrow-label{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-flow__legend{border-top-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-flow-m__node--default{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-flow-m__node--ct{background:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-flow-m__name{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-th-flow-m__desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-aside--ratio{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-aside__en{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-aside__title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-th-aside__desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-imgbox--ratio{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-imgbox__label{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-criteria{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-criteria__title{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-criteria__item{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-criteria__text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-th-criteria__compare-head,html[data-theme="dark"] .ex-th-criteria__compare-row{color:var(--tq-dm-muted)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-criteria__compare-head{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-th-criteria__tag{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-th-criteria__badge--high{background-color:rgba(196,184,192,0.18)!important;color:#d4c8d0!important;}
html[data-theme="dark"] .ex-th-criteria__badge--mid{background-color:rgba(255,167,38,0.2)!important;color:#ffcc80!important;}
html[data-theme="dark"] .ex-th-criteria__badge--low{background-color:rgba(129,199,132,0.18)!important;color:#b9f6b0!important;}
html[data-theme="dark"] .ex-th-criteria__badge--lymph{background-color:rgba(158,192,255,0.14)!important;color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .ex-th-criteria__badge--time{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .ex-th-point{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-th-point__text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-card__title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-card__text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-aside{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-aside__icon{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-aside__en{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-aside__title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-aside__desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-time{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-time__type{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-time__label{color:#e57373!important;}
html[data-theme="dark"] .ex-ph .ex-ph-time__target,html[data-theme="dark"] .ex-ph .ex-ph-time__days{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .ex-ph .ex-ph-note{color:var(--tq-dm-muted)!important;}
/* ===== 오시는 길 주차 탭 (thanq_location) ===== */
html[data-theme="dark"] .tqloc-park-sec{background-color:transparent!important;}
html[data-theme="dark"] .tqloc-section + .tqloc-section{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-panel-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqloc-panel-date,html[data-theme="dark"] .tqloc-panel-lead,html[data-theme="dark"] .tqloc-muted{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-subtitle{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqloc-table th,html[data-theme="dark"] .tqloc-table td{border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-table thead th{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqloc-table tbody th{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqloc-note{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-steps li,html[data-theme="dark"] .tqloc-bullets li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-steps__num{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
/* 오시는 길:흰색 pill 버튼·모달 (add.css .tqloc-modal-open-btn 등) */
html[data-theme="dark"] .tqloc-modal-open-btn{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-modal-open-btn:hover{background-color:var(--tq-dm-navy)!important;color:var(--tq-dm-text)!important;border-color:rgba(158,192,255,0.4)!important;}
html[data-theme="dark"] .tqloc-modal-open-btn .ph{color:inherit!important;}
html[data-theme="dark"] .tqloc-modal-content,html[data-theme="dark"] .tqloc-vidpop-sub-content,html[data-theme="dark"] .tqloc-vidpop-park-content{background-color:var(--tq-dm-surface)!important;box-shadow:0 25px 50px rgba(0,0,0,0.5)!important;}
html[data-theme="dark"] .tqloc-modal-close,html[data-theme="dark"] .tqloc-vidpop-sub-close,html[data-theme="dark"] .tqloc-vidpop-park-close{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-modal-close:hover,html[data-theme="dark"] .tqloc-vidpop-sub-close:hover,html[data-theme="dark"] .tqloc-vidpop-park-close:hover{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqloc-modal-scroll,html[data-theme="dark"] .tqloc-vidpop-sub-scroll,html[data-theme="dark"] .tqloc-vidpop-park-scroll{scrollbar-color:rgba(255,255,255,0.22) transparent!important;}
html[data-theme="dark"] .tqloc-modal-scroll::-webkit-scrollbar-thumb,html[data-theme="dark"] .tqloc-vidpop-sub-scroll::-webkit-scrollbar-thumb,html[data-theme="dark"] .tqloc-vidpop-park-scroll::-webkit-scrollbar-thumb{background:rgba(255,255,255,0.2)!important;}
html[data-theme="dark"] .tqloc-vidpop-sub-title,html[data-theme="dark"] .tqloc-vidpop-park-title{color:var(--tq-dm-text)!important;}
/* ===== 2차 일괄:add.css 흰 박스·표·클리닉 컴포넌트 (페이지 나열 없이 공통 패턴) ===== */

/* tqcss07·08 클리닉 표·카테고리:상단 [class*="custom-table"]·[class*="col-category"] 와 중복 — 여기서는 08 전용만 */
html[data-theme="dark"] [class*="tqcss"][class*="section-header"]{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] [class*="tqcss"][class*="footer-main"]{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s1b_footer_text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss04_card{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss04_content-section{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss04_text-block{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss04_safe-msg{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-left-color:#e74139!important;}
html[data-theme="dark"] .tqcss04_emphasis{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss05_info-card{background-color:var(--tq-dm-surface)!important;box-shadow:0 8px 24px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .tqcss05_sub-title,html[data-theme="dark"] .tqcss05_list-item{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss05_main-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss05_card-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss06_container-box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss06_illustration-box{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss06_type-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss06_card-title{background-color:var(--tq-dm-surface)!important;border-top-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss06_footer-note{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss06_magnify-icon{background-color:var(--tq-dm-surface)!important;box-shadow:0 4px 12px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .tqcss09_step-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss09_step-text,html[data-theme="dark"] .tqcss09_desc-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss09_image-circle{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss14_container{border-color:var(--tq-dm-border)!important;background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss14_header-desc{background-color:transparent!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss14_card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss14_highlight-box{background-color:var(--tq-dm-surface-2)!important;border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss14_highlight-text{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss14_point-navy{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss14_point-red{color:#f26b65!important;}
/* 도넛 남성(네이비) 구간 — navy-deep 는 배경과 유사해 구분 어려움 → 한 단계 밝은 블루그레이 */
html[data-theme="dark"] .tqcss15_donut{background:conic-gradient(#4a5c73 0 61.5%,#e74139 61.5% 100%)!important;}
html[data-theme="dark"] .tqcss15_donut::after{background-color:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqcss15_num-large{background:var(--tq-dm-surface)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss15_list-item{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss15_highlight{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss15_footer-text{color:var(--tq-dm-text)!important;background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss15_card-list{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss15_footer{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss17_section,html[data-theme="dark"] .tqcss18_section,html[data-theme="dark"] .tqcss19_section,html[data-theme="dark"] .tqcss21_section,html[data-theme="dark"] .tqcss24_section,html[data-theme="dark"] .tqcss25_section,html[data-theme="dark"] .tqcss28_section{background-color:var(--tq-dm-page)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss17_box-border,html[data-theme="dark"] .tqcss17_alert-box,html[data-theme="dark"] .tqcss18_box-border,html[data-theme="dark"] .tqcss18_stage-content,html[data-theme="dark"] .tqcss21_box,html[data-theme="dark"] .tqcss21_compare-card,html[data-theme="dark"] .tqcss23_card,html[data-theme="dark"] .tqcss24_box,html[data-theme="dark"] .tqcss24_list-wrap,html[data-theme="dark"] .tqcss25_box,html[data-theme="dark"] .tqcss25_comp-img-wrap,html[data-theme="dark"] .tqcss25_bottom-wrap,html[data-theme="dark"] .tqcss25_bottom-text-area,html[data-theme="dark"] .tqcss26_box,html[data-theme="dark"] .tqcss27_box,html[data-theme="dark"] .tqcss27_card,html[data-theme="dark"] .tqcss28_box,html[data-theme="dark"] .tqcss28_list-wrap,html[data-theme="dark"] .tqcss10_card-container,html[data-theme="dark"] .tqcss13_container,html[data-theme="dark"] .tqcss12_step-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
/* add.css .tqcss12_icon-box — navy-bg(≈카드 surface)와 겹침 → 한 단계 밝은 면 + 테두리 */
html[data-theme="dark"] .tqcss12_icon-box{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border:1px solid var(--tq-dm-border)!important;box-shadow:0 2px 12px rgba(0,0,0,0.25)!important;}
html[data-theme="dark"] .tqcss25_img_bttext{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss25_highlight-box{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-muted)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss25_header-desc{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
/* 라이트 #f1f1f1 띠 ≈ 본문보다 살짝 밝은 면 — 일괄 bg-gray5보다 우선 */
html[data-theme="dark"] .tqcss24_card-head.bg-gray5{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss21_img-frame{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss21_img-cap{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-muted)!important;border-top:1px solid var(--tq-dm-border)!important;}
/* 세로 강조 바 .tqcssNN_bar (네이비·빨강 스트립 — tqcss39_bar 등 푸터용 블록과 구분) */
html[data-theme="dark"] .tqcss17_bar,html[data-theme="dark"] .tqcss19_bar,html[data-theme="dark"] .tqcss21_bar,html[data-theme="dark"] .tqcss22_bar{background-color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss18_bar,html[data-theme="dark"] .tqcss21_bar-red{background-color:#e57373!important;}
html[data-theme="dark"] .tqcss18_stage-item{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss18_stage-badge{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss18_text-sm{color:var(--tq-dm-muted)!important;}
/* tqcssNN_pill 본문 글자 #495057 — 번호 무관,pill-num·icon_pill 제외 */
html[data-theme="dark"] [class*="tqcss"][class*="pill"]:not([class*="pill-num"]):not([class*="icon_pill"]){color:var(--tqroot-gray-700)!important;}
/* tqcss27_card 안 span — 라이트 #31415e = --tqroot-navy (add.css var 덮임 방지) */
html[data-theme="dark"] .tqcss27_card span{color:var(--tqroot-navy)!important;}
/* tqcss17 강조 본문(#343434 계열) — text-md와 동일 토큰,text-red 조합 시 제외 */
html[data-theme="dark"] .tqcss17_text-lg:not(.tqcss17_text-red){color:var(--tqroot-body-text)!important;}
html[data-theme="dark"] .tqcss23_card.tqcss23_card-sky-bottom-half{background:linear-gradient(
    to bottom,var(--tq-dm-surface) 0%,var(--tq-dm-surface) 43%,var(--tq-dm-surface-2) 43%,var(--tq-dm-surface-2) 100%
  )!important;}
/* tqcss13 — 타이틀·본문·스텝 (add.css 고정 #343434·#31415e 등) */
html[data-theme="dark"] .tqcss13_title-main{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss13_title-highlight{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss13_desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss13_desc strong{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss13_step-number{color:rgba(255,255,255,0.1)!important;text-shadow:none!important;}
html[data-theme="dark"] .tqcss13_step-box{background-color:var(--tq-dm-navy-deep)!important;border:1px solid var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss13_step-box.step-2{background-color:#3d4d66!important;}
html[data-theme="dark"] .tqcss13_step-highlight{color:#fff59a!important;}
html[data-theme="dark"] .tqcss13_note{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss13_image-area img.border{border-color:var(--tq-dm-border)!important;}
/* tqcss_ct_wrap — CT 이미지+캡션+본문 (thyroid_nodule·headandneck 등,전용 스타일 없음) */
html[data-theme="dark"] .tqcss_ct_wrap{color:var(--tq-dm-muted);}
html[data-theme="dark"] .tqcss_ct_wrap .text-tqblue{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss_ct_wrap img{border:1px solid var(--tq-dm-border);box-sizing:border-box;}
html[data-theme="dark"] .tqcss22_anatomy-wrap{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss22_style-top,html[data-theme="dark"] .tqcss22_style-bottom{background:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss22_circle{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss22_circle:hover{border-color:var(--tq-dm-border)!important;box-shadow:0 4px 12px rgba(0,0,0,0.28)!important;}
html[data-theme="dark"] .tqcss19_box .tqcss22_circle{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss22_circle-title,html[data-theme="dark"] .tqcss19_box .tqcss22_circle-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss22_circle-desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss22_circle-icon,html[data-theme="dark"] .tqcss19_box .tqcss22_circle-icon{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss22_circle:hover .tqcss22_circle-icon{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_symptom-chip{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;box-shadow:0 2px 10px rgba(0,0,0,0.22)!important;}
html[data-theme="dark"] .tqcss_symptom-chip:hover{border-color:var(--tq-dm-border)!important;box-shadow:0 4px 14px rgba(0,0,0,0.28)!important;}
html[data-theme="dark"] .tqcss_symptom-chip .tqcss_symptom-icon{background:rgba(158,192,255,0.12)!important;color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss_symptom-chip .tqcss_symptom-text{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss29_bg{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss29_title,html[data-theme="dark"] .tqcss29_card-title{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss29_text-navy{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss29_box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss29_text,html[data-theme="dark"] .tqcss29_small,html[data-theme="dark"] .tqcss29_aux,html[data-theme="dark"] .tqcss29_list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss29_img-wrap{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
/* 페이지(서페이스1) 위 카드 → 서페이스2로 층 구분 */
html[data-theme="dark"] .tqcss30_card,html[data-theme="dark"] .tqcss31_step-card,html[data-theme="dark"] .tqcss31_call-right{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss30_card-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss30_card-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss30_check-icon{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss30_card-num{background-color:var(--tq-dm-navy)!important;color:#fff!important;border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss30_exception-title{color:var(--tq-dm-text)!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss30_exception-item{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss31_step-desc{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss31_step-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss31_notice-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss31_notice-list li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss31_notice-list li::before{background-color:var(--tq-dm-link)!important;}
/* guide_hospitalization 등 — .tqcss33_* (add.css 1950~) */
html[data-theme="dark"] .tqcss33_section{border-top-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss33_title_col{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss33_list > li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss33_list > li::before{background-color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss33_highlight{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss33_subbox{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss33_subbox_title{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss33_subbox_content .tqcss33_list > li::before{background-color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss33_meal_grid{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss33_meal_item{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss33_meal_type{background-color:rgba(255,255,255,0.18)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss33_meal_time{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss33_num_list > li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01y_box{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01y_box_header{color:#fff!important;border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01y_title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s01y_text,html[data-theme="dark"] .tqcss_s01y_list_item,html[data-theme="dark"] .tqcss_s01y_ul li{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01_box,html[data-theme="dark"] .tqcss_s01_img_wrap{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01_table th{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01_table td{border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01_bg-gray{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss_s01m_overlay{background:linear-gradient(
    90deg,rgba(0,0,0,0) 15%,rgba(26,35,50,0.75) 45%,var(--tq-dm-page) 78%
  )!important;}
html[data-theme="dark"] .tqcss_s01m_label,html[data-theme="dark"] .tqcss_s01m_desc,html[data-theme="dark"] .tqcss_s01m_profile{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01m_desc strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s01m_profile{border-left-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01m_profile strong{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s01m_brand_box{background-color:#0f141d!important;color:#fff!important;box-shadow:0 4px 14px rgba(0,0,0,0.38)!important;}
html[data-theme="dark"] .tqcss_s01_title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s01_subtitle{color:var(--tq-dm-muted)!important;}
/* thanq_specialty 히어로 — 하단 구분은 얇은 그림자로만(보더 선 제거) */
html[data-theme="dark"] .tqcss_s01m_hero.bg-tqcss_s_main,html[data-theme="dark"] .bg-tqcss_s_main{border-bottom:none!important;box-shadow:0 1px 0 rgba(255,255,255,0.05)!important;background-color:var(--tq-dm-page)!important;}
/* thanq_specialty 히어로: 좁은 화면에서 그라데이션 투명 구간 제거(색 번짐). 히어로를 이미지 위로 끌어올리면 사진 하단이 가려져 잘림 → margin 보정 없음 */
@media (max-width:968px){
  html[data-theme="dark"] .tqcss_s01m_overlay{background:var(--tq-dm-page)!important;}
}
html[data-theme="dark"] .tqcss_s01_label{color:var(--tq-dm-muted)!important;}
/* add.css .tqcss_s01_grid_line — 1px 라인 background #eee (특별함 페이지 막대 그래프 보조선) */
html[data-theme="dark"] .tqcss_s01_grid_line{background-color:var(--tq-dm-border)!important;}
/* thanq_specialty 등 — .tqcss_s01t_* (add.css 1621~) */
html[data-theme="dark"] .tqcss_s01t_wrapper{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01t_text-navy{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss_s01t_text-red{color:#f26b65!important;}
html[data-theme="dark"] .tqcss_s01t_title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tqcss_s01t_subtitle,html[data-theme="dark"] .tqcss_s01t_text,html[data-theme="dark"] .tqcss_s01t_small{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01t_text[style*="color:#31415e"],html[data-theme="dark"] .tqcss_s01t_text[style*="color:#31415e"]{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqcss_s01t_aux{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss_s01t_quote_box{background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] .tqcss_s01t_table_wrap{border:1px solid var(--tq-dm-border)!important;background-color:var(--tq-dm-surface)!important;box-sizing:border-box;}
/* thanq_specialty 등:table 인라인 border(#dedede)는 일반 CSS보다 우선 →!important 필요 */
html[data-theme="dark"] .tqcss_s01t_table_wrap .tqcss_s01t_table{border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table th{background-color:#0d4f7a!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table td{color:var(--tq-dm-muted)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table tbody tr:nth-child(odd){background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss_s01t_table tbody tr:nth-child(even){background-color:transparent!important;}
html[data-theme="dark"] .tqcss_s01t_table thead tr{background-color:transparent!important;}
html[data-theme="dark"] .tqcss_s01t_highlight_box{border-color:#f26b65!important;color:#f26b65!important;background-color:rgba(242,107,101,0.12)!important;}
html[data-theme="dark"] .tqcss_s01t_badge_red{background-color:#c04540!important;color:#fff!important;}
html[data-theme="dark"] .tqloc-spec-board{border-color:var(--tq-dm-border)!important;background:var(--tq-dm-surface)!important;}
html[data-theme="dark"] .tqloc-spec-board__grid{background:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqloc-spec-cell{background:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-spec-cell__label{color:#fff!important;background:linear-gradient(145deg,#3d4d68 0%,#2a3548 100%)!important;box-shadow:0 2px 8px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-spec-cell__label{box-shadow:0 2px 10px rgba(0,0,0,0.38)!important;}
html[data-theme="dark"] .tqloc-spec-cell__value,html[data-theme="dark"] .tqloc-spec-cell__suffix,html[data-theme="dark"] .tqloc-spec-cell__hint{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-spec-cell{background:linear-gradient(180deg,var(--tq-dm-surface) 0%,var(--tq-dm-surface-2) 100%)!important;box-shadow:0 2px 12px rgba(0,0,0,0.25)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-spec-cell__line:last-child{border-left-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-vehicle-group{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-vehicle-group p{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqloc-brand{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-vehicle-group{background:var(--tq-dm-surface)!important;box-shadow:0 2px 12px rgba(0,0,0,0.25),0 0 0 1px var(--tq-dm-border)!important;border-left-color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-vehicle-group:hover{box-shadow:0 5px 20px rgba(0,0,0,0.35),0 0 0 1px var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqloc-section--vehicle-spec .tqloc-brand::before{background:linear-gradient(145deg,var(--tq-dm-link),#6b8fd4)!important;}
html[data-theme="dark"] .feature-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
/* add.css #fff 카드 — 다크에서는 부모(bg-white·플로우 패널) 톤과 맞추기 위해 이중 톤 방지 */
html[data-theme="dark"] .chart-card{background-color:transparent!important;}
/* add.css .chart-subtitle — color:#666 */
html[data-theme="dark"] .chart-subtitle{color:var(--tq-dm-muted)!important;}
/* skin/latest/main_post_doc/style.css — Medical Journal 슬라이드 */
html[data-theme="dark"] .mpd-img-wrap{border-color:var(--tq-dm-border)!important;background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .mpd-img-wrap img{background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .mpd-title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .mpd-content{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .mpd-prev,html[data-theme="dark"] .mpd-next{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;box-shadow:0 4px 20px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .mpd-prev:hover,html[data-theme="dark"] .mpd-next:hover{background-color:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;box-shadow:0 6px 24px rgba(0,0,0,0.45)!important;}
/* skin/latest/main_post_news/style.css — .tq-fixed-card */
html[data-theme="dark"] .tq-fixed-card{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tq-card-link:hover .tq-fixed-card{border-color:#e57373!important;background-color:var(--tq-dm-surface-2)!important;box-shadow:inset 0 0 15px rgba(255,255,255,0.04),0 10px 25px rgba(0,0,0,0.35)!important;}
html[data-theme="dark"] .tq-content-area{color:var(--tq-dm-muted)!important;}
/* skin/latest/main_post_news/style.css — .tq-badge */
html[data-theme="dark"] .tq-badge{background-color:var(--tq-dm-navy-deep)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .btn-video-more,html[data-theme="dark"] .btn-video-more2{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
/* add.css #b90003 — 메인 영상 썸네일 선택 테두리 */
html[data-theme="dark"] .thumb-item.active{border-color:#e57373!important;}
/* 유튜브 등 add.css .custom-tabs — .nav-tabs 하단선 + 탭 버튼 */
html[data-theme="dark"] .custom-tabs .nav-tabs,html[data-theme="dark"] .nav-tabs{border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .custom-tabs .nav-link{color:var(--tq-dm-muted)!important;background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;border-bottom-color:transparent!important;}
html[data-theme="dark"] .custom-tabs .nav-link:hover{color:var(--tq-dm-text)!important;background-color:var(--tq-dm-navy-deep)!important;}
html[data-theme="dark"] .custom-tabs .nav-link.active{background-color:var(--tq-dm-surface)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;border-bottom-color:var(--tq-dm-surface)!important;box-shadow:inset 0 -2px 0 0 #e74139!important;}
html[data-theme="dark"] .tab-content{background-color:var(--tq-dm-surface)!important;border-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss34_btn_primary:hover{background-color:var(--tq-dm-surface-2)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .faq-search-btn{background-color:#3d5280!important;}
html[data-theme="dark"] .faq-search-btn:hover{background-color:#2d6a52!important;}
html[data-theme="dark"] .faq-a-icon{color:rgba(255,255,255,0.12)!important;}
html[data-theme="dark"] .faq-float-badge strong{color:#ff9a9a!important;}
html[data-theme="dark"] .page-community-faq .faq-card__q p{color:#fff!important;}
/*
  최종 고정:네이비 소제목(.tqcssNN_title) · tacss 본문 리스트
  — tqcss12 는 아래 별도 블록([class*="tqcss12"]) — main-title 일괄보다 특이도 높게
*/
html[data-theme="dark"] .tqcss17_title,html[data-theme="dark"] .tqcss18_title,html[data-theme="dark"] .tqcss19_title,html[data-theme="dark"] .tqcss21_title,html[data-theme="dark"] .tqcss22_title,html[data-theme="dark"] .tqcss23_title,html[data-theme="dark"] .tqcss24_title,html[data-theme="dark"] .tqcss25_title,html[data-theme="dark"] .tqcss26_title,html[data-theme="dark"] .tqcss27_title,html[data-theme="dark"] .tqcss28_title,html[data-theme="dark"] .tqcss29_title,html[data-theme="dark"] .tqcss30_title{color:var(--tqroot-navy)!important;}
/* tqcss12:위쪽 [class*="main-title"] 일괄(3속성)이 .tqcss12_main-title 보다 특이도 높음 */
html[data-theme="dark"] [class*="tqcss"][class*="main-title"][class*="tqcss12"],html[data-theme="dark"] [class*="tqcss"][class*="card-title"][class*="tqcss12"]{color:var(--tqroot-navy)!important;}
html[data-theme="dark"] [class*="tacss"][class*="list-li"]{color:var(--tqroot-body-text)!important;}
/* 최종:게시판 헤더/행 · tqcss12_intro-text · tqcss03_board-container · titles · v_title · v_top_div · main_lists_cont · bo_v_nb · border-d5d5d5 · pg_current · pg_page */
html[data-theme="dark"] ul.tables_th,html[data-theme="dark"] .tables_th{background:var(--tq-dm-surface-2)!important;border-bottom-color:var(--tq-dm-border)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .tables_td{border-bottom-color:var(--tq-dm-border)!important;color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss12_intro-text{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .tqcss03_board-container{background-color:var(--tq-dm-surface-2)!important;border-color:var(--tq-dm-border)!important;box-shadow:0 12px 32px rgba(0,0,0,0.38)!important;}
html[data-theme="dark"] .titles{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .v_title{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .main_lists_cont{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .bo_v_nb{background:var(--tq-dm-surface)!important;border-top:2px solid var(--tq-dm-border)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .bo_v_nb li{border-bottom-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .bo_v_nb li:hover{background:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .bo_v_nb .nb_tit{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bo_v_nb .nb_tit i{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .bo_v_nb .nb_link a{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .bo_v_nb .nb_link a:hover{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bo_v_nb .nb_date{color:var(--tq-dm-muted)!important;}
html[data-theme="dark"] .border-d5d5d5{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .border-dedede,html[data-theme="dark"] .border-ddd,html[data-theme="dark"] .border-eee{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss19_ico-1,html[data-theme="dark"] .tqcss19_ico-2,html[data-theme="dark"] .tqcss19_ico-3,html[data-theme="dark"] .tqcss19_ico-4,html[data-theme="dark"] .tqcss47_logo{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .img_link{border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .pg_current{background:var(--tq-dm-navy-deep)!important;border:1px solid var(--tq-dm-link)!important;color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .pg_page{background:var(--tq-dm-surface-2)!important;color:var(--tq-dm-muted)!important;border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .pg_page:hover{background:var(--tq-dm-navy-deep)!important;color:var(--tq-dm-text)!important;border-color:var(--tq-dm-border)!important;}
html[data-theme="dark"] .bEtZOY,html[data-theme="dark"] .iejzhH{background-color:var(--tq-dm-surface)!important;border:1px solid var(--tq-dm-border)!important;box-sizing:border-box;}
html[data-theme="dark"] .irziqB{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .irziqB *{color:inherit!important;}
html[data-theme="dark"] .irziqB a{color:var(--tq-dm-link)!important;}
html[data-theme="dark"] .bNAJGd{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .bxkjWd{color:var(--tq-dm-text)!important;}
html[data-theme="dark"] .exownv,html[data-theme="dark"] .dPmPDN{color:var(--tq-dm-text)!important;}
/* 최종:wrap #ddd + table 인라인 border 덮어쓰기 */
html[data-theme="dark"] .tqcss_s01t_table_wrap{border:1px solid var(--tq-dm-border)!important;background-color:var(--tq-dm-surface)!important;box-sizing:border-box;}
html[data-theme="dark"] .tqcss_s01t_table_wrap .tqcss_s01t_table{border:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table th{background-color:#0d4f7a!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table td{color:var(--tq-dm-muted)!important;border-bottom:1px solid var(--tq-dm-border)!important;}
html[data-theme="dark"] .tqcss_s01t_table tbody tr:nth-child(odd){background-color:var(--tq-dm-surface-2)!important;}
html[data-theme="dark"] .tqcss_s01t_table tbody tr:nth-child(even){background-color:transparent!important;}
html[data-theme="dark"] .tqcss_s01t_table thead tr{background-color:transparent!important;}

/* thanq_specialty 수술실적 섹션 — 다크 배경 surface-1 (--tq-dm-surface), #smooth-content 직계·파일 말미 */
html[data-theme="dark"] .tqseoul-on #smooth-content > section.bg-white.tq-dm-surface-band,
html[data-theme="dark"] #smooth-content > section.bg-white.tq-dm-surface-band{
  background-color:var(--tq-dm-surface)!important;
  border-bottom-color:var(--tq-dm-border)!important;
}

/* basic.css 전역 p{color:var(--tqroot-body-text)} 가 채팅 p에도 먹는 것 방지 — 말풍선 부모 색 상속 */
html[data-theme="dark"] [class*="es-window-container"] p,
html[data-theme="dark"] [class^="elfsight-app-"] p,
html[data-theme="dark"] .ePBOlt p,
html[data-theme="dark"] .kQFnlg p{color:inherit!important;}
