/**
 * 사이트 전체 라이트/다크/시스템 모드
 * colorset.css 이후 마지막에 로드되어야 함
 */
:root,
html[data-theme="light"] {
	color-scheme: light;
	--tm-bg: #ffffff;
	--tm-surface: #ffffff;
	--tm-surface-2: #f8fafc;
	--tm-text: #222222;
	--tm-text-muted: #666666;
	--tm-border: #dde3ea;
	--tm-border-strong: #c5cdd8;
	--tm-link: #2563eb;
	--tm-link-hover: #1d4ed8;
	--tm-header-bg: #ffffff;
	--tm-menu-bg: #111111;
	--tm-menu-text: #ffffff;
	--tm-menu-hover: #333333;
	--tm-input-bg: #f1f5f9;
	--tm-input-border: #cbd5e1;
	--tm-card: #ffffff;
	--tm-box-head: #8cadbd;
	--tm-box-body: #ffffff;
	--tm-box-border: #dde3ea;
}

html[data-theme="dark"] {
	color-scheme: dark;
	--tm-bg: #0b1220;
	--tm-surface: #111a2e;
	--tm-surface-2: #151f32;
	--tm-text: #e8eef6;
	--tm-text-muted: #94a3b8;
	--tm-border: #243044;
	--tm-border-strong: #334155;
	--tm-link: #60a5fa;
	--tm-link-hover: #93c5fd;
	--tm-header-bg: #111a2e;
	--tm-menu-bg: #060a12;
	--tm-menu-text: #e2e8f0;
	--tm-menu-hover: #1e293b;
	--tm-input-bg: #1a2438;
	--tm-input-border: #334155;
	--tm-card: #151f32;
	--tm-box-head: #2d4a6a;
	--tm-box-body: #111a2e;
	--tm-box-border: #243044;
}

html { background: var(--tm-bg) !important; }
body {
	background-color: var(--tm-bg) !important;
	background-image: none !important;
	color: var(--tm-text) !important;
}
.wrapper { background: var(--tm-surface) !important; }
.at-body { background: var(--tm-bg) !important; }
a { color: var(--tm-link); }
a:hover, a:focus { color: var(--tm-link-hover); }

.at-lnb, .ib-hd-lnb {
	background: var(--tm-surface) !important;
	border-bottom: 1px solid var(--tm-border) !important;
}
.at-lnb ul > li > a, .ib-hd-lnb a { color: var(--tm-text-muted) !important; }
.at-lnb ul > li::after { color: var(--tm-border-strong) !important; }

.pc-header, .ib-hd-modern.pc-header {
	background-color: var(--ib-hd-bg, var(--tm-header-bg)) !important;
	border-bottom: 1px solid var(--tm-border) !important;
}
html[data-theme="dark"] .ib-hd-modern.pc-header {
	background-color: var(--tm-header-bg) !important;
}
html[data-theme="light"] .ib-hd-modern.pc-header {
	background-color: var(--ib-hd-bg, var(--tm-header-bg)) !important;
}
html[data-theme="light"] .ib-hd-logo-title,
html[data-theme="light"] .ib-hd-logo-link,
html[data-theme="light"] .pc-header .header-logo a {
	color: var(--ib-logo-title-color-light, var(--tm-text)) !important;
}
html[data-theme="dark"] .ib-hd-logo-title,
html[data-theme="dark"] .ib-hd-logo-link,
html[data-theme="dark"] .pc-header .header-logo a {
	color: var(--ib-logo-title-color-dark, var(--tm-text)) !important;
}
.m-header.ib-m-header .ib-m-header-logo b {
	color: var(--ib-m-hd-fg, var(--ib-logo-title-color-light, inherit)) !important;
}
html[data-theme="dark"] .m-header.ib-m-header .ib-m-header-logo b {
	color: var(--ib-m-hd-fg, var(--ib-logo-title-color-dark, inherit)) !important;
}
.ib-hd-logo-desc, .pc-header .header-desc { color: var(--tm-text-muted) !important; }
.ib-hd-verse-text { color: var(--tm-text-muted) !important; }
.ib-hd-auth-link { color: var(--tm-text-muted) !important; }
.ib-hd-auth-link:hover { color: var(--tm-text) !important; }
.ib-hd-auth-name { color: var(--tm-text) !important; }
.ib-hd-util-icon { color: var(--tm-text-muted) !important; }
.ib-hd-util-icon:hover {
	color: var(--tm-text) !important;
	background: rgba(255, 255, 255, 0.06) !important;
}
html[data-theme="light"] .ib-hd-util-icon:hover {
	background: rgba(15, 23, 42, 0.06) !important;
}
.ib-hd-auth-btn-outline {
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
.ib-hd-auth-btn-outline:hover {
	border-color: var(--tm-text-muted) !important;
	background: rgba(255, 255, 255, 0.05) !important;
	color: var(--tm-text) !important;
}
html[data-theme="light"] .ib-hd-auth-btn-outline:hover {
	background: rgba(15, 23, 42, 0.04) !important;
}
.ib-hd-zone-right,
.ib-hd-auth,
.ib-hd-util,
.ib-hd-search { background: transparent !important; }
.ib-hd-search-wrap {
	background: var(--tm-input-bg) !important;
	border-color: var(--tm-input-border) !important;
}
.ib-hd-search-wrap:focus-within {
	background: var(--tm-input-bg) !important;
	border-color: #93c5fd !important;
	box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.15) !important;
}
html[data-theme="dark"] .ib-hd-search-wrap:focus-within {
	border-color: var(--tm-link) !important;
	box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.2) !important;
	background: var(--tm-input-bg) !important;
}
.ib-hd-search-icon { color: var(--tm-text-muted) !important; }
.ib-hd-search-input { color: var(--tm-text) !important; background: transparent !important; }
.ib-hd-search-input::placeholder { color: var(--tm-text-muted); opacity: 0.75; }
.ib-hd-search-btn { background: var(--tm-menu-bg) !important; color: #fff !important; }
.ib-hd-search-classic .ib-hd-search-wrap {
	background: var(--tm-menu-bg) !important;
	border-color: var(--tm-menu-bg) !important;
}
.ib-hd-search-classic .ib-hd-search-input {
	background: var(--tm-input-bg) !important;
	border-color: var(--tm-menu-bg) !important;
	color: var(--tm-text) !important;
}
.ib-hd-search-row { border-top-color: var(--tm-border) !important; }
.ib-hd-logo-link:hover { opacity: 0.92; text-decoration: none; }

.at-menu {
	width: 100%;
}
.pc-menu {
	background: var(--ib-menu-bg, var(--tm-menu-bg)) !important;
	box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15);
}
html[data-theme="dark"] .pc-menu {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
}
.pc-menu .nav-top .menu-a {
	background: var(--ib-menu-bg, var(--tm-menu-bg)) !important;
	color: var(--tm-menu-text) !important;
}
html[data-theme="dark"] .pc-menu .nav-top .menu-a {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
}
.pc-menu .nav-top .menu-li:hover .menu-a,
.pc-menu .nav-top .menu-li.on .menu-a {
	background: var(--ib-menu-hover, var(--tm-menu-hover)) !important;
}
html[data-theme="dark"] .pc-menu .nav-top .menu-li:hover .menu-a,
html[data-theme="dark"] .pc-menu .nav-top .menu-li.on .menu-a {
	background: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
}
.pc-menu .nav-right {
	background: var(--ib-menu-bg, var(--tm-menu-bg)) !important;
	width: auto !important;
	min-width: var(--ib-nav-icon-w, 168px) !important;
	max-width: none !important;
	overflow: hidden;
}
html[data-theme="dark"] .pc-menu .nav-right {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
}
.pc-menu .nav-right > ul > li > a { color: var(--tm-menu-text) !important; }
.pc-menu .nav-right > ul > li > a:hover { background: var(--ib-menu-hover, var(--tm-menu-hover)) !important; }
html[data-theme="dark"] .pc-menu .nav-right > ul > li > a:hover {
	background: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
}
.pc-menu .nav-top.nav-float,
.pc-menu .nav-top.nav-full,
.pc-menu .nav-top {
	background: transparent !important;
}
html[data-theme="dark"] .pc-menu .nav-top.nav-float,
html[data-theme="dark"] .pc-menu .nav-top.nav-full,
html[data-theme="dark"] .pc-menu .nav-top {
	background: transparent !important;
}
.pc-menu .nav-back {
	background: transparent !important;
	height: 0;
}
html[data-theme="dark"] .pc-menu .nav-back {
	background: transparent !important;
}
.pc-menu .nav-top .menu-li.home-icon .menu-a { background: var(--ib-menu-bg, var(--tm-menu-bg)) !important; color: var(--tm-menu-text) !important; }
html[data-theme="dark"] .pc-menu .nav-top .menu-li.home-icon .menu-a {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
}
.pc-menu .nav-visible,
.pc-menu .at-container { background: transparent !important; }
.pc-menu .nav-visible { overflow: visible !important; }

/* 서브메뉴 — 드롭다운만 배경, 나머지 영역 투명 */
.pc-menu .nav-top.nav-both .menu-li { position: relative; }
.pc-menu .nav-top.nav-both .sub-1div {
	position: absolute !important;
	top: 100%;
	left: 0;
	z-index: 30;
}
.pc-menu .nav-top .sub-1div {
	background: #fff !important;
	border-top: 3px solid orangered;
	box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
}
.pc-menu .nav-top .sub-1da {
	color: #000 !important;
	background: #fff !important;
	border-color: #eee !important;
}
.pc-menu .nav-top .sub-1line {
	color: #000 !important;
	background: #fafafa !important;
	border-color: #eee !important;
}
.pc-menu .nav-top .sub-1dli:hover .sub-1da,
.pc-menu .nav-top .sub-1dli.on .sub-1da {
	color: #fff !important;
	background: orangered !important;
	border-color: orangered !important;
}
.pc-menu .nav-top .sub-2div { background: #fff !important; }

/* PC 메뉴바 우측 아이콘 — 세로·가로 정렬 통일 */
.pc-menu .nav-right.nav-height {
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	overflow: visible;
}
.pc-menu .nav-right > .clearfix {
	display: none !important;
}
.pc-menu .nav-right > ul {
	display: flex !important;
	flex-wrap: nowrap !important;
	align-items: stretch !important;
	float: none !important;
	width: max-content !important;
	height: 100% !important;
	margin: 0 !important;
	padding: 0 !important;
	list-style: none !important;
}
.pc-menu .nav-right > ul > li {
	float: none !important;
	flex: 0 0 42px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 42px !important;
	min-width: 42px !important;
	max-width: 42px !important;
	height: 100% !important;
	position: relative;
	box-sizing: border-box;
	overflow: hidden;
}
.pc-menu .nav-right > ul > li > a,
.pc-menu .nav-right .ib-nav-theme-btn,
.pc-menu .nav-right .ib-nav-view-btn {
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	width: 100% !important;
	height: 100% !important;
	min-width: 42px;
	min-height: 1px;
	line-height: 1 !important;
	text-align: center !important;
	color: #fff !important;
	text-decoration: none !important;
	padding: 0 !important;
	border: 0;
	background: transparent;
	box-sizing: border-box;
	position: relative;
	overflow: hidden;
}
.pc-menu .nav-right > ul > li > a:hover,
.pc-menu .nav-right > ul > li > a:focus,
.pc-menu .nav-right .ib-nav-theme-btn:hover,
.pc-menu .nav-right .ib-nav-theme-btn:focus,
.pc-menu .nav-right .ib-nav-view-btn:hover,
.pc-menu .nav-right .ib-nav-view-btn:focus {
	background: var(--tm-menu-hover) !important;
	color: #fff !important;
}
.pc-menu .nav-right > ul > li > a > .fa:not(.ib-tm-one):not(.ib-vm-one) {
	font-size: 16px;
	line-height: 1;
	width: 16px;
	height: 16px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}
.pc-menu .nav-right .ib-nav-theme-btn .ib-tm-one,
.pc-menu .nav-right .ib-nav-view-btn .ib-vm-one,
.ib-nav-theme-btn .ib-tm-one,
.ib-nav-view-btn .ib-vm-one {
	position: static;
	left: auto;
	top: auto;
	transform: none;
	font-size: 16px;
	line-height: 1;
	width: 16px;
	height: 16px;
	display: inline-flex !important;
	align-items: center;
	justify-content: center;
}
.pc-menu .nav-right .ib-nav-view-btn .ib-vm-one.fa-mobile,
.ib-nav-view-btn .ib-vm-one.fa-mobile {
	font-size: 18px;
	width: 18px;
	height: 18px;
}
/* PC Right Icon Menu — colorset 고정폭 덮어쓰기 */
.pc-menu .nav-rw { width: auto !important; min-width: var(--ib-nav-icon-w, 168px) !important; }
.ib-tm-one,
.ib-vm-one {
	font-size: 16px;
	line-height: 1;
}
.ib-vm-one.fa-mobile { font-size: 18px; width: 18px; height: 18px; }

.m-header.ib-m-header .ib-nav-theme-m {
	color: #fff !important;
}

html[data-theme="dark"] .pc-menu .nav-top .sub-1div {
	background: var(--tm-card) !important;
	border-top-color: #f97316 !important;
}
html[data-theme="dark"] .pc-menu .nav-top .sub-1da,
html[data-theme="dark"] .pc-menu .nav-top .sub-1line {
	color: var(--tm-text) !important;
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .pc-menu .nav-top .sub-1dli:hover .sub-1da {
	color: #fff !important;
	background: orangered !important;
}
.pc-menu-all { background: var(--tm-surface-2) !important; }
.pc-menu-all .table td { background: var(--tm-card) !important; border-color: var(--tm-border) !important; }
.pc-menu-all .menu-a { background: var(--tm-surface-2) !important; color: var(--tm-text) !important; border-color: var(--tm-border) !important; }
.pc-menu-all .sub-1dli .sub-1da { color: var(--tm-text-muted) !important; }

.m-header.ib-m-header {
	background: var(--ib-m-hd-bg, var(--ib-menu-bg-mobile, var(--ib-menu-bg, var(--tm-menu-bg)))) !important;
	color: var(--ib-m-hd-fg, var(--ib-menu-fg-mobile, #ffffff)) !important;
}
.m-header.ib-m-header .ib-m-header-btn,
.m-header.ib-m-header .ib-nav-theme-m,
.m-header.ib-m-header .ib-nav-view-btn,
.m-header.ib-m-header .ib-m-header-logo a {
	color: inherit !important;
}
html[data-theme="dark"] .m-header.ib-m-header {
	background: var(--ib-m-hd-bg, var(--ib-menu-bg-mobile-dark, var(--ib-menu-bg-mobile, var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg)))))) !important;
	color: var(--ib-m-hd-fg, var(--ib-menu-fg-mobile-dark, var(--ib-menu-fg-mobile, #ffffff))) !important;
}
/* 모바일 헤더 아이콘 더보기 드롭다운 */
.ib-m-header-more {
	position: relative;
	display: inline-flex;
	align-items: center;
}
.ib-m-header-more-menu {
	display: none;
	position: absolute;
	top: calc(100% + 6px);
	right: -4px;
	z-index: 120;
	flex-direction: column;
	gap: 2px;
	min-width: 44px;
	padding: 6px 4px;
	border-radius: 10px;
	background: var(--ib-m-hd-bg, var(--ib-menu-bg-mobile, var(--ib-menu-bg, var(--tm-menu-bg, #323c46)))) !important;
	box-shadow: 0 8px 24px rgba(0, 0, 0, .28);
	border: 1px solid rgba(255, 255, 255, .12);
}
.ib-m-header-more.open .ib-m-header-more-menu { display: flex; }
.ib-m-header-more.open .ib-m-header-more-btn { opacity: .65; }
.ib-m-header-more-menu .ib-m-header-btn,
.ib-m-header-more-menu .ib-nav-theme-m,
.ib-m-header-more-menu .ib-nav-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	color: inherit !important;
}
.ib-m-header-more-menu .ib-m-admin-btn {
	opacity: 0.95;
}
.ib-m-header-more-menu .ib-m-admin-btn:hover,
.ib-m-header-more-menu .ib-m-admin-btn:focus {
	opacity: 1;
	background: rgba(255, 255, 255, 0.12);
	border-radius: 8px;
}
html[data-theme="dark"] .ib-m-header-more-menu {
	background: var(--ib-m-hd-bg, var(--ib-menu-bg-mobile-dark, var(--ib-menu-bg-mobile, var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg, #232d37)))))) !important;
}

.m-menu {
	background: var(--ib-menu-bg-mobile, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
	box-shadow: 0px 5px 5px -2px rgba(25, 25, 25, 0.15);
}
html[data-theme="dark"] .m-menu {
	background: var(--ib-menu-bg-mobile-dark, var(--ib-menu-bg-mobile, var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))))) !important;
}
.m-menu .m-wrap,
.m-menu .m-table { width: 100%; }
.m-menu .m-icon,
.m-menu .m-list {
	border-color: rgba(255, 255, 255, 0.14) !important;
	color: var(--ib-menu-fg-mobile, var(--tm-menu-text)) !important;
	background: transparent !important;
}
.m-menu .m-icon a,
.m-menu .m-nav ul li a { color: var(--ib-menu-fg-mobile, var(--tm-menu-text)) !important; }
.m-menu .m-nav ul li.active a,
.m-menu .m-nav ul li a:hover { color: var(--ib-menu-fg-mobile, #fff) !important; }
html[data-theme="dark"] .m-menu .m-nav ul li.active a,
html[data-theme="dark"] .m-menu .m-nav ul li a:hover {
	color: var(--ib-menu-fg-mobile-dark, var(--ib-menu-fg-mobile, #fff)) !important;
}
.m-menu.m-menu-wide .m-list { width: 100%; }
.m-menu .m-sub {
	background: var(--ib-menu-hover-mobile, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
	border-color: rgba(255, 255, 255, 0.12) !important;
	color: var(--ib-menu-fg-mobile, var(--tm-menu-text)) !important;
}
.m-menu .m-nav-sub ul li a { color: var(--ib-menu-fg-mobile, var(--tm-menu-text)) !important; }
.m-menu .m-nav-sub ul li.active a { color: var(--ib-menu-fg-mobile, #fff) !important; }
html[data-theme="dark"] .m-menu .m-icon,
html[data-theme="dark"] .m-menu .m-list,
html[data-theme="dark"] .m-menu .m-icon a,
html[data-theme="dark"] .m-menu .m-nav ul li a {
	color: var(--ib-menu-fg-mobile-dark, var(--ib-menu-fg-mobile, var(--tm-menu-text))) !important;
}
html[data-theme="dark"] .m-menu .m-sub {
	background: var(--ib-menu-hover-mobile-dark, var(--ib-menu-hover-mobile, var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))))) !important;
	color: var(--ib-menu-fg-mobile-dark, var(--ib-menu-fg-mobile, var(--tm-menu-text))) !important;
}

.at-content, .at-col { color: var(--tm-text) !important; }
.at-title { background: var(--tm-surface-2) !important; border-color: var(--tm-border) !important; color: var(--tm-text) !important; }
.at-title .page-title { color: var(--tm-text) !important; }
.at-title .page-desc { color: var(--tm-text-muted) !important; }
hr { border-color: var(--tm-border) !important; }

html[data-theme="dark"] .widget-index { --ib-text-muted: #94a3b8; }

/* 위젯 박스 본문 — boxes.css 흰 배경 덮어쓰기 */
html[data-theme="dark"] .widget-index .ib-box,
html[data-theme="dark"] .widget-index .widget-box,
html[data-theme="dark"] .widget-index .ib-box-body,
html[data-theme="dark"] .widget-index .ib-scroll-body,
html[data-theme="dark"] .widget-index .widget-box-s,
html[data-theme="dark"] .widget-index .ib-notice-body,
html[data-theme="dark"] .widget-index .widget-box-n,
html[data-theme="dark"] .widget-index .ib-board-body,
html[data-theme="dark"] .widget-index .ib-dark-body,
html[data-theme="dark"] .widget-index .ib-tab-content,
html[data-theme="dark"] .widget-index .ib-box-card .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-minimal .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-bordered .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-accent_top .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-soft_shadow .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-glass .ib-box-body,
html[data-theme="dark"] .widget-index .ib-box-board_panel,
html[data-theme="dark"] .widget-index .ib-box-dark_panel,
html[data-theme="dark"] .widget-index .ib-box-login_card {
	background: var(--tm-box-body) !important;
	border-color: var(--tm-box-border) !important;
	color: var(--tm-text) !important;
	box-shadow: none !important;
}
html[data-theme="dark"] .widget-index .ib-box-login_card {
	--ib-login-card-bg: var(--tm-card);
	box-shadow: none !important;
}
html[data-theme="light"] .widget-index .ib-box-login_card {
	--ib-login-card-bg: #fff;
	border-color: var(--tm-border, #e2e8f0);
}
html[data-theme="dark"] .widget-index .ib-box-glass .ib-box-body {
	background: linear-gradient(135deg, rgba(45,74,106,0.35), var(--tm-box-body)) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-index .ib-scroll-head,
html[data-theme="dark"] .widget-index .ib-notice-head,
html[data-theme="dark"] .widget-index .ib-board-head,
html[data-theme="dark"] .widget-index .ib-dark-head,
html[data-theme="dark"] .widget-index .ib-box-title-bar {
	background: var(--tm-box-head) !important;
	color: #fff !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs:not(.ib-tabs-pill) li {
	background: var(--tm-surface-2) !important;
	color: var(--tm-text-muted) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs:not(.ib-tabs-pill) li.current {
	background: var(--tm-box-head) !important;
	color: #fff !important;
	border-color: var(--tm-box-head) !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs-pill li {
	background: var(--tm-surface-2) !important;
	color: var(--tm-text-muted) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs-pill li.current {
	background: var(--tm-box-head) !important;
	color: #fff !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs li {
	background: var(--tm-surface-2) !important;
	color: var(--tm-text-muted) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-index .ib-tab-wrap ul.ib-tabs li.current {
	background: var(--tm-box-head) !important;
	color: #fff !important;
}
html[data-theme="dark"] .widget-index .ib-tab-content,
html[data-theme="dark"] .widget-index .post-list > li { border-color: var(--tm-border) !important; }
html[data-theme="dark"] .widget-index .post-list > li > a { color: var(--tm-text) !important; }
html[data-theme="dark"] .widget-index .post-list .pull-right,
html[data-theme="dark"] .widget-index .gray,
html[data-theme="dark"] .widget-index .name { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] .widget-index .div-title-underbar-bold { color: var(--tm-text) !important; }
html[data-theme="dark"] .widget-index .div-title-underbar { border-color: var(--tm-border) !important; }
html[data-theme="dark"] .widget-index .div-title-underbar span { color: var(--tm-text) !important; }
html[data-theme="dark"] .widget-index .basic-post-list .post-list li a,
html[data-theme="dark"] .widget-index .basic-post-list .post-list > li > a { color: var(--tm-text) !important; }
html[data-theme="dark"] .widget-index .post-none,
html[data-theme="dark"] .widget-index .basic-post-list .post-none { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] .widget-index .lightgray { color: var(--tm-text-muted) !important; }

/* 사이드 컬럼 위젯 */
html[data-theme="dark"] .widget-index .at-side .widget-box,
html[data-theme="dark"] .widget-index .at-side .ib-box { color: var(--tm-text) !important; }
html[data-theme="dark"] .div-title-underline-thin,
html[data-theme="dark"] .div-title-underline-bold { color: var(--tm-text) !important; border-bottom-color: var(--tm-link) !important; }
html[data-theme="dark"] .div-title-underbar { border-color: var(--tm-border) !important; }
html[data-theme="dark"] .div-title-underbar span { color: var(--tm-text) !important; }

/* 슬라이드 사이드바 (#sidebar-box) */
html[data-theme="dark"] #sidebar-box {
	background: var(--tm-surface) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-wing-close {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-search {
	background: var(--tm-input-bg) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-search .form-control {
	background: var(--tm-surface) !important;
	border-color: var(--tm-input-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-menu { border-color: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-head { border-color: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-head > a { color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-sub {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-sub li { border-color: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-sub a { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-menu .ca-line {
	background: var(--tm-surface-2) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-media { border-color: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-media .media-info { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-media .media-photo i { background: var(--tm-border) !important; color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-login .profile h3 { color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-login .profile .photo i { background: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-list a {
	color: var(--tm-text) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] #sidebar-box .progress {
	background-color: var(--tm-surface-2) !important;
	box-shadow: inset 0 1px 2px rgba(0,0,0,0.3) !important;
}
html[data-theme="dark"] #sidebar-box .progress-bar { background-color: var(--tm-box-head) !important; }
html[data-theme="dark"] #sidebar-box .progress .sr-only,
html[data-theme="dark"] #sidebar-box .sr-score { color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .basic-category .ca-head,
html[data-theme="dark"] #sidebar-box .basic-category .ca-sub1,
html[data-theme="dark"] #sidebar-box .basic-category .ca-line { color: var(--tm-text) !important; border-color: var(--tm-border) !important; }
html[data-theme="dark"] #sidebar-box .basic-category .ca-sub2 {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] #sidebar-box .basic-category .ca-sub2 a { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box .basic-post-list .post-list li a { color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .basic-post-list .post-list .name,
html[data-theme="dark"] #sidebar-box .basic-post-list .post-none { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box .btn,
html[data-theme="dark"] #sidebar-box .btn-default {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] #sidebar-box .btn-navy {
	background: var(--tm-box-head) !important;
	border-color: var(--tm-box-head) !important;
	color: #fff !important;
}
html[data-theme="dark"] #sidebar-box .sidebar-icon-cell span { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box .sidebar-icon-cell a { color: var(--tm-text) !important; }
html[data-theme="dark"] #sidebar-box .pull-right { color: var(--tm-text-muted) !important; }
html[data-theme="dark"] #sidebar-box label { color: var(--tm-text-muted) !important; }

/* 푸터 — 설정 그라데이션 + 라이트/다크 텍스트 */
.ib-modern-footer {
	background: linear-gradient(to right, var(--ib-ft-from, #1a4f63), var(--ib-ft-to, #2d7a96)) !important;
	color: var(--ib-ft-fg) !important;
}
html[data-theme="dark"] .ib-modern-footer {
	background: linear-gradient(to right, var(--ib-ft-from-dark, var(--ib-ft-from, #1a4f63)), var(--ib-ft-to-dark, var(--ib-ft-to, #2d7a96))) !important;
	--ib-ft-fg: var(--ib-ft-fg-dark, var(--ib-ft-fg-light, #e8eef6));
	--ib-ft-fg-muted: var(--ib-ft-fg-muted-dark, var(--ib-ft-fg-muted-light, #94a3b8));
	--ib-ft-fg-strong: var(--ib-ft-fg-strong-dark, var(--ib-ft-fg-strong-light, #ffffff));
	--ib-ft-fg-dim: var(--ib-ft-fg-dim-dark, var(--ib-ft-fg-dim-light, rgba(148, 163, 184, 0.75)));
	--ib-ft-fg-accent: var(--ib-ft-fg-accent-dark, var(--ib-ft-fg-accent-light, #4ade80));
	--ib-ft-bar: var(--ib-ft-bar-dark, var(--ib-ft-bar-light, #94a3b8));
	--ib-ft-border: var(--ib-ft-border-dark, var(--ib-ft-border-light, rgba(255, 255, 255, 0.12)));
	--ib-ft-sep: var(--ib-ft-sep-dark, var(--ib-ft-sep-light, rgba(255, 255, 255, 0.25)));
	--ib-ft-link: var(--ib-ft-link-dark, var(--ib-ft-link-light, #93c5fd));
	--ib-ft-link-hover: var(--ib-ft-link-hover-dark, var(--ib-ft-link-hover-light, #ffffff));
	--ib-ft-link-strong: var(--ib-ft-link-strong-dark, var(--ib-ft-link-strong-light, #ffffff));
	--ib-ft-btn-bg: var(--ib-ft-btn-bg-dark, var(--ib-ft-btn-bg-light, rgba(255, 255, 255, 0.1)));
	--ib-ft-btn-border: var(--ib-ft-btn-border-dark, var(--ib-ft-btn-border-light, rgba(255, 255, 255, 0.15)));
	--ib-ft-btn-fg: var(--ib-ft-btn-fg-dark, var(--ib-ft-btn-fg-light, #ffffff));
	--ib-ft-btn-hover-bg: var(--ib-ft-btn-hover-bg-dark, var(--ib-ft-btn-hover-bg-light, rgba(255, 255, 255, 0.18)));
}
html[data-theme="light"] .ib-modern-footer {
	--ib-ft-fg: var(--ib-ft-fg-light, #dbeafe);
	--ib-ft-fg-muted: var(--ib-ft-fg-muted-light, rgba(191, 219, 254, 0.85));
	--ib-ft-fg-strong: var(--ib-ft-fg-strong-light, #ffffff);
	--ib-ft-fg-dim: var(--ib-ft-fg-dim-light, rgba(191, 219, 254, 0.6));
	--ib-ft-fg-accent: var(--ib-ft-fg-accent-light, #16a34a);
	--ib-ft-bar: var(--ib-ft-bar-light, #bfdbfe);
	--ib-ft-border: var(--ib-ft-border-light, rgba(255, 255, 255, 0.2));
	--ib-ft-sep: var(--ib-ft-sep-light, rgba(255, 255, 255, 0.4));
	--ib-ft-link: var(--ib-ft-link-light, rgba(219, 234, 254, 0.9));
	--ib-ft-link-hover: var(--ib-ft-link-hover-light, #ffffff);
	--ib-ft-link-strong: var(--ib-ft-link-strong-light, rgba(255, 255, 255, 0.95));
	--ib-ft-btn-bg: var(--ib-ft-btn-bg-light, rgba(255, 255, 255, 0.25));
	--ib-ft-btn-border: var(--ib-ft-btn-border-light, rgba(255, 255, 255, 0.2));
	--ib-ft-btn-fg: var(--ib-ft-btn-fg-light, #ffffff);
	--ib-ft-btn-hover-bg: var(--ib-ft-btn-hover-bg-light, rgba(255, 255, 255, 0.4));
}
.ib-modern-footer a {
	color: var(--ib-ft-link) !important;
}
.ib-modern-footer a:hover,
.ib-modern-footer a:focus {
	color: var(--ib-ft-link-hover) !important;
}
.ib-modern-footer .ib-ft-name,
.ib-modern-footer .ib-ft-stats strong {
	color: var(--ib-ft-fg-strong) !important;
}
.ib-modern-footer .ib-ft-addr,
.ib-modern-footer .ib-ft-tel,
.ib-modern-footer .ib-ft-stats,
.ib-modern-footer .ib-ft-custom {
	color: var(--ib-ft-fg-muted) !important;
}
.ib-modern-footer .ib-ft-copy {
	color: var(--ib-ft-fg-dim) !important;
}
.ib-modern-footer .ib-ft-stats .ib-ft-now {
	color: var(--ib-ft-fg-accent) !important;
}
.ib-modern-footer .ib-ft-stats .ib-ft-stat-link {
	color: inherit !important;
	text-decoration: none;
}
.ib-modern-footer .ib-ft-stats .ib-ft-stat-link:hover,
.ib-modern-footer .ib-ft-stats .ib-ft-stat-link:focus {
	text-decoration: underline;
}
.ib-modern-footer .ib-ft-legal a.ib-ft-legal-strong {
	color: var(--ib-ft-link-strong) !important;
}
.ib-modern-footer .ib-ft-btn {
	color: var(--ib-ft-btn-fg) !important;
}
.ib-modern-footer .ib-ft-btn:hover,
.ib-modern-footer .ib-ft-btn:focus {
	color: var(--ib-ft-btn-fg) !important;
}
.ib-modern-footer .ib-ft-custom a {
	color: var(--ib-ft-link) !important;
}

/* 클래식 헤더 검색 */
html[data-theme="dark"] .pc-header .header-search form {
	background: var(--tm-menu-bg) !important;
	border-color: var(--tm-menu-bg) !important;
}
html[data-theme="dark"] .pc-header .header-search input {
	background: var(--tm-input-bg) !important;
	border-color: var(--tm-menu-bg) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .pc-header .header-search .btn {
	background: var(--tm-menu-bg) !important;
	color: #fff !important;
}

/* 모바일 사이드 검색 상단 — 색상은 .m-header.ib-m-header color 상속 */


.form-control, input.form-control, select.form-control, textarea.form-control {
	background-color: var(--tm-input-bg) !important;
	border-color: var(--tm-input-border) !important;
	color: var(--tm-text) !important;
}

/* 회원 로그인·확인 폼 (.form-box — apms.css 라이트 고정 보정) */
html[data-theme="dark"] .form-box {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .form-box .form-header {
	border-bottom-color: var(--tm-border) !important;
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .form-box .form-header h2,
html[data-theme="dark"] .form-box .form-heading {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .form-box .form-body {
	background: var(--tm-surface) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .form-box .form-body label,
html[data-theme="dark"] .form-box .form-body .checkbox-inline,
html[data-theme="dark"] .form-box .form-body .remember-me {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .form-box .form-body .condition {
	background: var(--tm-input-bg) !important;
	border-color: var(--tm-input-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .form-box .form-footer {
	border-top-color: var(--tm-border) !important;
}
html[data-theme="dark"] .form-box .form-footer a {
	color: var(--tm-link) !important;
}
html[data-theme="dark"] .form-box .form-footer a:hover {
	color: var(--tm-link-hover) !important;
}
html[data-theme="dark"] .form-box .form-control-feedback {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .form-box .text-muted {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] #sns_login {
	border-top-color: var(--tm-border) !important;
}
html[data-theme="dark"] .login-sns {
	background: var(--tm-surface) !important;
	border-color: var(--tm-border) !important;
}
.table { color: var(--tm-text) !important; background: transparent !important; }
.table > thead > tr > th,
.table > tbody > tr > td { border-color: var(--tm-border) !important; }
html[data-theme="dark"] .table-striped > tbody > tr:nth-of-type(odd) { background: var(--tm-surface-2) !important; }
html[data-theme="dark"] .list-group-item {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .panel-default { border-color: var(--tm-border) !important; }
html[data-theme="dark"] .panel-default > .panel-heading {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .panel-default > .panel-body {
	background: var(--tm-card) !important;
	color: var(--tm-text) !important;
}

/* ============================================================
   게시판·그룹·사이드 위젯 (스킨 파일 수정 없이 테마에서 보정)
   ============================================================ */

/* 공통 본문 영역 */
.at-content .board-list,
.at-content .list-wrap,
.at-content .view-wrap,
.at-content .write-wrap { color: var(--tm-text); }

/* 사이드 위젯 (.widget-side — 게시판/그룹 사이드바) */
.widget-side .widget-box { color: var(--tm-text); }
html[data-theme="dark"] .widget-side .widget-box,
html[data-theme="dark"] .at-side .widget-side .widget-box {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .div-title-underbar,
html[data-theme="dark"] .at-side .widget-side .div-title-underbar {
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-side .div-title-underbar span,
html[data-theme="dark"] .widget-side .div-title-underbar b,
html[data-theme="dark"] .at-side .widget-side .div-title-underbar span {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .lightgray,
html[data-theme="dark"] .at-side .widget-side .lightgray {
	color: var(--tm-text-muted) !important;
}

/* 사이드 로그인 (basic-outlogin) */
html[data-theme="dark"] .widget-side .basic-outlogin,
html[data-theme="dark"] .at-side .basic-outlogin {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .profile h3,
html[data-theme="dark"] .at-side .basic-outlogin .profile h3 {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin label,
html[data-theme="dark"] .at-side .basic-outlogin label {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .login-line,
html[data-theme="dark"] .at-side .basic-outlogin .login-line {
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .profile .photo i,
html[data-theme="dark"] .at-side .basic-outlogin .profile .photo i {
	background: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .progress,
html[data-theme="dark"] .at-side .basic-outlogin .progress {
	background-color: var(--tm-surface-2) !important;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.25) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .progress-bar,
html[data-theme="dark"] .at-side .basic-outlogin .progress-bar {
	background-color: var(--tm-box-head) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .sr-only,
html[data-theme="dark"] .widget-side .basic-outlogin .sr-score,
html[data-theme="dark"] .at-side .basic-outlogin .sr-only,
html[data-theme="dark"] .at-side .basic-outlogin .sr-score {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .btn-default,
html[data-theme="dark"] .at-side .basic-outlogin .btn-default {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .btn-navy,
html[data-theme="dark"] .at-side .basic-outlogin .btn-navy {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
	border-color: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
	color: #fff !important;
}
html[data-theme="dark"] .widget-side .basic-outlogin .btn-navy:hover,
html[data-theme="dark"] .at-side .basic-outlogin .btn-navy:hover {
	background: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
	border-color: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
}

/* 로그인 카드 — 로그아웃/로그인 버튼 = 메뉴바 색상 */
.widget-index .basic-login-card .blc-submit,
.at-side .basic-login-card .blc-submit,
.widget-side .basic-login-card .blc-submit {
	background: var(--ib-menu-bg, var(--tm-menu-bg, #111111)) !important;
	border-color: var(--ib-menu-bg, var(--tm-menu-bg, #111111)) !important;
	color: #fff !important;
}
.widget-index .basic-login-card .blc-submit:hover,
.at-side .basic-login-card .blc-submit:hover,
.widget-side .basic-login-card .blc-submit:hover {
	background: var(--ib-menu-hover, var(--tm-menu-hover, #333333)) !important;
	border-color: var(--ib-menu-hover, var(--tm-menu-hover, #333333)) !important;
	color: #fff !important;
}
html[data-theme="dark"] .widget-index .basic-login-card .blc-submit,
html[data-theme="dark"] .at-side .basic-login-card .blc-submit,
html[data-theme="dark"] .widget-side .basic-login-card .blc-submit {
	background: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
	border-color: var(--ib-menu-bg-dark, var(--ib-menu-bg, var(--tm-menu-bg))) !important;
}
html[data-theme="dark"] .widget-index .basic-login-card .blc-submit:hover,
html[data-theme="dark"] .at-side .basic-login-card .blc-submit:hover,
html[data-theme="dark"] .widget-side .basic-login-card .blc-submit:hover {
	background: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
	border-color: var(--ib-menu-hover-dark, var(--ib-menu-hover, var(--tm-menu-hover))) !important;
}
html[data-theme="light"] .widget-side .basic-outlogin .btn-navy,
html[data-theme="light"] .at-side .basic-outlogin .btn-navy {
	background: var(--ib-menu-bg, var(--tm-menu-bg, #111111)) !important;
	border-color: var(--ib-menu-bg, var(--tm-menu-bg, #111111)) !important;
	color: #fff !important;
}
html[data-theme="light"] .widget-side .basic-outlogin .btn-navy:hover,
html[data-theme="light"] .at-side .basic-outlogin .btn-navy:hover {
	background: var(--ib-menu-hover, var(--tm-menu-hover, #333333)) !important;
	border-color: var(--ib-menu-hover, var(--tm-menu-hover, #333333)) !important;
}

/* 사이드 카테고리 */
html[data-theme="dark"] .widget-side .basic-category .ca-head,
html[data-theme="dark"] .at-side .basic-category .ca-head {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-category .ca-sub1,
html[data-theme="dark"] .at-side .basic-category .ca-sub1 {
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-category .ca-sub1 > a,
html[data-theme="dark"] .at-side .basic-category .ca-sub1 > a {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-category .ca-sub2,
html[data-theme="dark"] .at-side .basic-category .ca-sub2 {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .widget-side .basic-category .ca-sub2 a,
html[data-theme="dark"] .at-side .basic-category .ca-sub2 a {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .widget-side .basic-category .ca-line,
html[data-theme="dark"] .at-side .basic-category .ca-line {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}

/* 사이드 글목록 */
html[data-theme="dark"] .widget-side .basic-post-list .post-list li a,
html[data-theme="dark"] .at-side .basic-post-list .post-list li a,
html[data-theme="dark"] .widget-side .basic-post-list .post-list > li > a,
html[data-theme="dark"] .at-side .basic-post-list .post-list > li > a {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-side .basic-post-list .post-list .name,
html[data-theme="dark"] .widget-side .basic-post-list .post-none,
html[data-theme="dark"] .at-side .basic-post-list .post-list .name,
html[data-theme="dark"] .at-side .basic-post-list .post-none {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .widget-side .widget-box ul li,
html[data-theme="dark"] .widget-side .widget-box ul li a,
html[data-theme="dark"] .at-side .widget-box ul li a {
	color: var(--tm-text) !important;
}

/* 그룹 멤버/베스트 위젯 */
html[data-theme="dark"] .widget-basic-member-list li a {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .widget-basic-member-list li .icon {
	color: var(--tm-border-strong) !important;
}
html[data-theme="dark"] .widget-basic-member-list li.item-none {
	color: var(--tm-text-muted) !important;
}

/* 게시판 목록 상단 (검색·태그·카테고리) */
html[data-theme="dark"] .at-content .list-tsearch {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .list-tags .nav {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-tags .tags-submit {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-tags .tags-line,
html[data-theme="dark"] .at-content .list-tags .tags-submit .box-submit {
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-category .nav-tabs > li > a {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .list-category .nav-tabs > li.active > a {
	background: var(--tm-card) !important;
	color: var(--tm-link) !important;
}

/* pkist_basic_1 등 게시판 리스트 테이블 */
html[data-theme="dark"] .at-content .list-board {
	background: transparent !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .list-board::-webkit-scrollbar-track {
	background: var(--tm-surface-2) !important;
}
html[data-theme="dark"] .at-content .list-board::-webkit-scrollbar-thumb {
	background: var(--tm-border-strong) !important;
}
html[data-theme="dark"] .at-content .list-board .list-head > span,
html[data-theme="dark"] .at-content .list-board .list-head > span.common-header-style {
	background-color: var(--tm-box-head) !important;
	color: #fff !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body li > div {
	background-color: var(--tm-box-body) !important;
	color: var(--tm-text) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body li > [class*="wr-"],
html[data-theme="dark"] .at-content .list-board .list-body li > div[class*="wr-"] {
	background-color: var(--tm-box-body) !important;
	color: var(--tm-text) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-board .list-head > [class*="wr-"],
html[data-theme="dark"] .at-content .list-board .list-head > span[class*="wr-"] {
	background-color: var(--tm-box-head) !important;
	color: #fff !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body li:hover > div {
	background-color: var(--tm-surface-2) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body .wr-none {
	background-color: var(--tm-box-body) !important;
	color: var(--tm-text-muted) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body a.item-subject,
html[data-theme="dark"] .at-content .list-board .list-body a {
	color: var(--tm-link) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body a:hover,
html[data-theme="dark"] .at-content .list-board .list-body a:focus {
	color: var(--tm-link-hover) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body .item-details,
html[data-theme="dark"] .at-content .list-board .list-body .text-muted {
	color: var(--tm-text-muted) !important;
}
html[data-theme="dark"] .at-content .list-board .list-body .thumb-icon a {
	background: var(--tm-border) !important;
	color: var(--tm-text-muted) !important;
}

/* 게시판 페이징·버튼·알림 */
html[data-theme="dark"] .at-content .list-wrap .pagination a,
html[data-theme="dark"] .at-content .view-wrap .pagination a {
	color: var(--tm-text) !important;
	background: transparent !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .list-wrap .pagination .active a,
html[data-theme="dark"] .at-content .view-wrap .pagination .active a {
	color: #fff !important;
	background: var(--tm-box-head) !important;
	border-color: var(--tm-box-head) !important;
}
html[data-theme="dark"] .at-content .well {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .btn-default {
	background: var(--tm-surface-2) !important;
	border-color: var(--tm-border) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .btn-default:hover {
	background: var(--tm-card) !important;
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .dropdown-menu {
	background: var(--tm-card) !important;
	border-color: var(--tm-border) !important;
}
html[data-theme="dark"] .at-content .dropdown-menu > li > a {
	color: var(--tm-text) !important;
}
html[data-theme="dark"] .at-content .dropdown-menu > li > a:hover {
	background: var(--tm-surface-2) !important;
	color: var(--tm-text) !important;
}

/* 라이트 모드 — 사이드 위젯 테두리/배경 정리 */
html[data-theme="light"] .widget-side .basic-category .ca-sub2,
html[data-theme="light"] .at-side .basic-category .ca-sub2 {
	background: var(--tm-surface-2);
	border-color: var(--tm-border);
}
html[data-theme="light"] .widget-side .basic-category .ca-line,
html[data-theme="light"] .at-side .basic-category .ca-line {
	background: var(--tm-surface-2);
	border-color: var(--tm-border);
}
html[data-theme="light"] .widget-side .basic-category .ca-sub1,
html[data-theme="light"] .at-side .basic-category .ca-sub1 {
	border-color: var(--tm-border);
}
html[data-theme="light"] .widget-side .basic-outlogin .login-line,
html[data-theme="light"] .at-side .basic-outlogin .login-line {
	border-color: var(--tm-border);
}
html[data-theme="light"] .at-content .list-tsearch {
	background: var(--tm-surface-2);
	border-color: var(--tm-border);
}

/* PC / 모바일 보기 전환 — 아이콘은 .ib-vm-one + view-mode.js */
.m-header.ib-m-header .ib-nav-view-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	line-height: 1;
}

/* 모바일 보기 강제 (데스크톱에서) */
@media (min-width: 992px) {
	html[data-ib-view="mobile"] .ib-hd-modern.pc-header,
	html[data-ib-view="mobile"] .pc-header:not(.ib-hd-modern),
	html[data-ib-view="mobile"] .pc-menu,
	html[data-ib-view="mobile"] .pc-menu-all { display: none !important; }
	html[data-ib-view="mobile"] .m-header { display: block !important; }
	html[data-ib-view="mobile"] .m-menu { display: block !important; }
	html[data-ib-view="mobile"] .widget-index .at-row > [class*="col-md-"] {
		width: 100% !important;
		float: none !important;
	}
}

/* PC 보기: 좁은 화면에서도 본문 반응형 (헤더·메뉴 표시는 thema.php 전환 폭 규칙이 담당) */
@media (max-width: 991px) {
	html[data-ib-view="pc"] .widget-index .ib-layout-row > .at-main,
	html[data-ib-view="pc"] .widget-index .ib-layout-row > .at-side,
	html[data-ib-view="pc"] .widget-index .at-row > [class*="col-md-"],
	html[data-ib-view="pc"] .at-body .at-row > [class*="col-md-"] {
		width: 100% !important;
		max-width: 100% !important;
		float: none !important;
		left: auto !important;
		right: auto !important;
	}
	/* 좁은 화면: 가로 100%까지만, 설정 총 너비(--ib-container-max)는 유지 */
	html[data-ib-view="pc"] .wrapper {
		width: 100% !important;
		max-width: 100% !important;
		min-width: 0 !important;
		box-sizing: border-box;
	}
	html[data-ib-view="pc"] .at-container,
	html[data-ib-view="pc"] .at-container-wide {
		width: 100% !important;
		max-width: var(--ib-container-max, 1200px) !important;
		min-width: 0 !important;
		box-sizing: border-box;
		margin-left: auto !important;
		margin-right: auto !important;
	}
}
