/* =========================================================
   철이야기 steel-gallery - 이 화면의 전체 CSS
   외부 style.css / assets/css 사용하지 않음
   이 PHP 파일을 수정하면 이 화면의 CSS도 함께 수정됨
   ========================================================= */
/**
 * KBoard Default Skin - Modern 2026 Redesign
 * professionally crafted for global enterprise standards.
 */

:root {
	/* Palette */
	--kboard-primary: #2563eb;
	/* Modern Blue */
	--kboard-primary-hover: #1d4ed8;
	--kboard-text: #1e293b;
	/* Slate 800 */
	--kboard-text-muted: #64748b;
	/* Slate 500 */
	--kboard-bg: #ffffff;
	--kboard-bg-alt: #f8fafc;
	/* Slate 50 */
	--kboard-border: #e2e8f0;
	/* Slate 200 */
	--kboard-danger: #ef4444;

	/* Typography */
	--kboard-font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo", "Malgun Gothic", "Segoe UI", Roboto, "Noto Sans KR", "Helvetica Neue", Arial, sans-serif;
	--kboard-font-size: 15px;

	/* Spacing & Radius */
	--kboard-radius: 8px;
	--kboard-spacing-sm: 8px;
	--kboard-spacing-md: 16px;
	--kboard-spacing-lg: 24px;

	/* Shadows */
	--kboard-shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
	--kboard-shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
}

/* Global Reset within KBoard Container */
#kboard-thumbnail-list,
#kboard-thumbnail-document,
#kboard-thumbnail-editor,
#kboard-thumbnail-latest {
	font-family: var(--kboard-font-family);
	font-size: var(--kboard-font-size);
	color: var(--kboard-text);
	box-sizing: border-box;
	line-height: 1.6;
	margin: 20px 0;
}

#kboard-thumbnail-list *,
#kboard-thumbnail-document *,
#kboard-thumbnail-editor *,
#kboard-thumbnail-latest *,
#kboard-thumbnail-list *::before,
#kboard-thumbnail-document *::before,
#kboard-thumbnail-editor *::before,
#kboard-thumbnail-latest *::before,
#kboard-thumbnail-list *::after,
#kboard-thumbnail-document *::after,
#kboard-thumbnail-editor *::after,
#kboard-thumbnail-latest *::after {
	box-sizing: inherit;
}

#kboard-thumbnail-list a,
#kboard-thumbnail-document a,
#kboard-thumbnail-editor a,
#kboard-thumbnail-latest a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s;
}

#kboard-thumbnail-list img,
#kboard-thumbnail-document img,
#kboard-thumbnail-editor img,
#kboard-thumbnail-latest img {
	max-width: 100%;
	height: auto;
	vertical-align: middle;
}

/* Buttons */
a.kboard-thumbnail-button-small,
input.kboard-thumbnail-button-small,
button.kboard-thumbnail-button-small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 36px;
	padding: 0 16px;
	font-size: 14px;
	font-weight: 500;
	color: #fff !important;
	background-color: var(--kboard-text) !important;
	border: 1px solid transparent;
	border-radius: var(--kboard-radius);
	cursor: pointer;
	transition: all 0.2s ease;
	line-height: 1;
	box-shadow: var(--kboard-shadow-sm);
	text-shadow: none;
}

a.kboard-thumbnail-button-small:hover,
button.kboard-thumbnail-button-small:hover {
	background-color: var(--kboard-primary) !important;
	transform: translateY(-1px);
	box-shadow: var(--kboard-shadow-md);
	opacity: 1 !important;
}

/* Lock Icon */
.kboard-icon-lock {
	display: inline-block;
	width: 14px;
	height: 14px;
	vertical-align: middle;
	margin-right: 4px;
	background-color: var(--kboard-text-muted);
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath d='M400 224h-24v-72C376 68.2 307.8 0 224 0S72 68.2 72 152v72H48c-26.5 0-48 21.5-48 48v192c0 26.5 21.5 48 48 48h352c26.5 0 48-21.5 48-48V272c0-26.5-21.5-48-48-48zm-104 0H152v-72c0-39.7 32.3-72 72-72s72 32.3 72 72v72z'/%3E%3C/svg%3E") no-repeat center/contain;
}

/* Reply Icon */
.kboard-icon-reply {
	display: inline-block;
	width: 16px;
	height: 16px;
	vertical-align: middle;
	margin-right: 4px;
	background-color: var(--kboard-text-muted);
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z'/%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 15l-6 6-1.42-1.42L15.17 16H4V4h2v10h9.17l-3.59-3.58L13 9l6 6z'/%3E%3C/svg%3E") no-repeat center/contain;
	transform: none;
}

/* Image Icon */
.kboard-icon-thumbnail {
	display: block;
	width: 50px;
	height: 35px;
	margin: 0 auto;
	background-color: #b0b0b0;
	-webkit-mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
	mask: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='3' y='3' width='18' height='18' rx='2' ry='2'%3E%3C/rect%3E%3Ccircle cx='8.5' cy='8.5' r='1.5'%3E%3C/circle%3E%3Cpolyline points='21 15 16 10 5 21'%3E%3C/polyline%3E%3C/svg%3E") no-repeat center/contain;
}

/* Form Elements Reset & Style */
#kboard-thumbnail-list input[type=text],
#kboard-thumbnail-document input[type=text],
#kboard-thumbnail-editor input[type=text],
#kboard-thumbnail-latest input[type=text],
#kboard-thumbnail-list input[type=email],
#kboard-thumbnail-document input[type=email],
#kboard-thumbnail-editor input[type=email],
#kboard-thumbnail-latest input[type=email],
#kboard-thumbnail-list input[type=password],
#kboard-thumbnail-document input[type=password],
#kboard-thumbnail-editor input[type=password],
#kboard-thumbnail-latest input[type=password],
#kboard-thumbnail-list input[type=number],
#kboard-thumbnail-document input[type=number],
#kboard-thumbnail-editor input[type=number],
#kboard-thumbnail-latest input[type=number],
#kboard-thumbnail-list input[type=date],
#kboard-thumbnail-document input[type=date],
#kboard-thumbnail-editor input[type=date],
#kboard-thumbnail-latest input[type=date],
#kboard-thumbnail-list select,
#kboard-thumbnail-document select,
#kboard-thumbnail-editor select,
#kboard-thumbnail-latest select,
#kboard-thumbnail-list textarea,
#kboard-thumbnail-document textarea,
#kboard-thumbnail-editor textarea,
#kboard-thumbnail-latest textarea {
	appearance: none;
	-webkit-appearance: none;
	background-color: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	padding: 8px 12px;
	font-size: 14px;
	color: var(--kboard-text);
	outline: none;
	transition: border-color 0.2s, box-shadow 0.2s;
	min-height: 40px;
	box-shadow: none;
	margin: 0;
}

#kboard-thumbnail-list input:focus,
#kboard-thumbnail-document input:focus,
#kboard-thumbnail-editor input:focus,
#kboard-thumbnail-latest input:focus,
#kboard-thumbnail-list select:focus,
#kboard-thumbnail-document select:focus,
#kboard-thumbnail-editor select:focus,
#kboard-thumbnail-latest select:focus,
#kboard-thumbnail-list textarea:focus,
#kboard-thumbnail-document textarea:focus,
#kboard-thumbnail-editor textarea:focus,
#kboard-thumbnail-latest textarea:focus {
	border-color: var(--kboard-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	border-bottom: 1px solid var(--kboard-primary) !important;
}

/* Select Custom Arrow (Restore Dropdown Icon) */
#kboard-thumbnail-list select,
#kboard-thumbnail-document select,
#kboard-thumbnail-editor select,
#kboard-thumbnail-latest select {
	background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%2364748b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 10px center;
	background-size: 16px;
	padding-right: 32px !important;
	cursor: pointer;
}

/* --- List View --- */
#kboard-thumbnail-list {
	width: 100%;
	max-width: 100%;
	overflow: hidden;
}

/* Header (Total & Sort) */
#kboard-thumbnail-list .kboard-list-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding-bottom: var(--kboard-spacing-md);
	flex-wrap: wrap;
	gap: 10px;
}

#kboard-thumbnail-list .kboard-total-count {
	float: none;
	font-weight: 600;
	color: var(--kboard-text-muted);
}

#kboard-thumbnail-list .kboard-sort {
	float: none;
}

#kboard-thumbnail-list .kboard-sort select {
	height: 36px;
	padding-right: 32px;
}

/* Categories */
#kboard-thumbnail-list .kboard-category .kboard-category-list {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	padding: 0;
	margin: 0 0 20px 0;
	list-style: none;
	background: transparent;
	border: none;
}

#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list:last-child {
	margin-bottom: 0;
}

#kboard-thumbnail-list .kboard-category .kboard-category-list li {
	display: block;
	margin: 0;
	padding: 0;
}

#kboard-thumbnail-list .kboard-category .kboard-category-list li a {
	display: block;
	padding: 6px 14px;
	border-radius: 20px;
	background-color: var(--kboard-bg-alt);
	color: var(--kboard-text-muted);
	font-size: 14px;
	font-weight: 500;
	transition: all 0.2s;
	border: 1px solid var(--kboard-border);
}

#kboard-thumbnail-list .kboard-category .kboard-category-list li.kboard-category-selected a,
#kboard-thumbnail-list .kboard-category .kboard-category-list li a:hover {
	background-color: var(--kboard-primary);
	color: #fff;
	text-decoration: none;
	border-color: var(--kboard-primary);
	font-weight: 500;
}

/* Table Listing */
#kboard-thumbnail-list .kboard-list {
	background: #fff;
	border-radius: var(--kboard-radius);
	overflow: hidden;
	border: 1px solid var(--kboard-border);
	box-shadow: var(--kboard-shadow-sm);
}

#kboard-thumbnail-list .kboard-list table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	border: 0;
	margin: 0;
}

#kboard-thumbnail-list .kboard-list thead {
	background-color: var(--kboard-bg-alt);
	border-bottom: 1px solid var(--kboard-border);
}

#kboard-thumbnail-list .kboard-list thead td {
	padding: 12px 16px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	color: var(--kboard-text-muted);
	text-align: center;
	border: 0;
	border-bottom: 1px solid var(--kboard-border);
}

#kboard-thumbnail-list .kboard-list tbody tr {
	background: #fff;
	border: 0;
	border-bottom: 1px solid var(--kboard-border);
	transition: background-color 0.1s;
}

#kboard-thumbnail-list .kboard-list tbody tr:last-child {
	border-bottom: none;
}

#kboard-thumbnail-list .kboard-list tbody tr:hover {
	background-color: var(--kboard-bg-alt);
}

#kboard-thumbnail-list .kboard-list td {
	padding: 16px;
	vertical-align: middle;
	text-align: center;
	border: 0;
	font-size: 15px;
}

#kboard-thumbnail-list .kboard-list td.kboard-list-title {
	text-align: left;
	width: auto;
}

/* Notice & Popular Rows */
#kboard-thumbnail-list .kboard-list tbody tr.kboard-list-notice {
	background-color: #eff6ff;
}

#kboard-thumbnail-list .kboard-list tbody tr.kboard-list-notice:hover {
	background-color: #dbeafe;
}

/* Selected Row (Current Post) */
#kboard-thumbnail-list .kboard-list tbody tr.kboard-list-selected {
	background-color: #f0f9ff;
	border-left: 3px solid var(--kboard-primary);
}

#kboard-thumbnail-list .kboard-list tbody tr.kboard-list-selected .kboard-list-title a {
	font-weight: 700;
	color: var(--kboard-primary);
}

/* Icons & Labels */
.kboard-thumbnail-new-notify {
	background-color: var(--kboard-danger);
	color: #fff;
	padding: 2px 6px;
	border-radius: 4px;
	font-size: 10px;
	font-weight: 700;
	vertical-align: middle;
	margin-right: 6px;
}

.kboard-thumbnail-cut-strings {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	font-weight: 500;
}

#kboard-thumbnail-list .kboard-list-title a {
	color: var(--kboard-text);
	text-decoration: none;
	transition: color 0.15s;
}

#kboard-thumbnail-list .kboard-list-title a:hover {
	color: var(--kboard-primary);
}

.kboard-comments-count {
	font-size: 12px;
	color: var(--kboard-primary);
	font-weight: 600;
	margin-left: 4px;
	background: rgba(37, 99, 235, 0.1);
	padding: 2px 6px;
	border-radius: 12px;
}

.kboard-comments-count:empty {
	display: none;
}

/* Mobile Contents hidden on Desktop */
#kboard-thumbnail-list .kboard-mobile-contents {
	display: none;
	margin-top: 6px;
	font-size: 13px;
	color: var(--kboard-text-muted);
}

/* Column Widths (Desktop) */
#kboard-thumbnail-list .kboard-list-uid {
	width: 90px;
	/* Slightly wider */
	color: var(--kboard-text-muted);
	font-size: 13px;
	word-break: keep-all;
	/* Prevent Notice from breaking */
}

/* Specific style for notice text in UID column */
#kboard-thumbnail-list .kboard-list-notice .kboard-list-uid {
	font-weight: 700;
	font-size: 12px;
	/* Smaller font for notice */
	color: var(--kboard-primary);
}

#kboard-thumbnail-list .kboard-list-user {
	width: 120px;
}

#kboard-thumbnail-list .kboard-list-date {
	width: 110px;
	color: var(--kboard-text-muted);
	font-size: 13px;
}

#kboard-thumbnail-list .kboard-list-vote {
	width: 70px;
	color: var(--kboard-text-muted);
	font-size: 13px;
}

#kboard-thumbnail-list .kboard-list-view {
	width: 70px;
	color: var(--kboard-text-muted);
	font-size: 13px;
}

/* Pagination */
#kboard-thumbnail-list .kboard-pagination {
	padding: 30px 0;
	text-align: center;
	float: none;
}

#kboard-thumbnail-list .kboard-pagination ul {
	display: inline-flex;
	padding: 0;
	list-style: none;
	gap: 4px;
}

#kboard-thumbnail-list .kboard-pagination li {
	display: block;
	margin: 0;
}

#kboard-thumbnail-list .kboard-pagination li a {
	display: flex;
	align-items: center;
	justify-content: center;
	min-width: 36px;
	height: 36px;
	padding: 0 8px;
	border-radius: var(--kboard-radius);
	background: #fff;
	border: 1px solid var(--kboard-border);
	font-size: 14px;
	color: var(--kboard-text);
	box-shadow: none;
}

#kboard-thumbnail-list .kboard-pagination li.active a,
#kboard-thumbnail-list .kboard-pagination li a:hover {
	background: var(--kboard-primary);
	color: #fff;
	border-color: var(--kboard-primary);
}

/* Search Bar */
#kboard-thumbnail-list .kboard-search {
	margin-bottom: 20px;
	text-align: center;
	padding: 20px;
	background: var(--kboard-bg-alt);
	border-radius: var(--kboard-radius);
	float: none;
}

#kboard-thumbnail-list .kboard-search form {
	display: inline-flex;
	gap: 8px;
	max-width: 100%;
}

#kboard-thumbnail-list .kboard-search select {
	width: 100px;
	margin: 0;
}

#kboard-thumbnail-list .kboard-search input {
	width: 200px;
	margin: 0;
}

/* Bottom Control */
#kboard-thumbnail-list .kboard-control {
	display: flex;
	justify-content: flex-end;
	padding: 10px 0;
	float: none;
}

/* Powered By - Subtle */
.kboard-thumbnail-poweredby {
	text-align: right;
	font-size: 14px;
	color: #ccc;
	margin-top: 10px;
	float: none;
	width: 100%;
}

/* --- Document View --- */
#kboard-thumbnail-document .kboard-document-wrap {
	background: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	overflow: hidden;
	float: none;
}

#kboard-thumbnail-document .kboard-title {
	float: none;
}

#kboard-thumbnail-document .kboard-title h1 {
	margin: 0;
	padding: 24px;
	text-align: left;
	font-size: 16px;
	font-weight: 700;
	color: var(--kboard-text);
	border-bottom: 1px solid var(--kboard-border);
}

#kboard-thumbnail-document .kboard-detail {
	display: flex;
	flex-wrap: wrap;
	padding: 12px 24px;
	background: var(--kboard-bg-alt);
	font-size: 14px;
	gap: 20px;
	align-items: center;
	float: none;
	border: 0;
	border-bottom: 1px solid var(--kboard-border);
}

#kboard-thumbnail-document .kboard-detail .detail-attr {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0;
	float: none;
}

#kboard-thumbnail-document .kboard-detail .detail-name {
	font-weight: 600;
	color: var(--kboard-text-muted);
	float: none;
	text-align: left;
}

#kboard-thumbnail-document .kboard-detail .detail-value {
	color: var(--kboard-text);
	float: none;
	padding: 0;
}

/* Content */
#kboard-thumbnail-document .kboard-content {
	padding: 30px 24px;
	min-height: 200px;
	float: none;
}

#kboard-thumbnail-document .content-view {
	font-size: 16px;
	line-height: 1.8;
	color: #334155;
	/* Slate 700 */
	padding: 0;
}

/* Document Actions (Like/Unlike/Print) */
#kboard-thumbnail-document .kboard-document-action {
	padding: 10px 24px 20px;
	display: flex;
	justify-content: space-between;
}

.kboard-button-action {
	border: 1px solid var(--kboard-border);
	background: #fff;
	padding: 6px 12px;
	border-radius: 4px;
	font-size: 13px;
	cursor: pointer;
	margin-right: 5px;
	font-weight: 500;
}

.kboard-button-action:hover {
	background: var(--kboard-bg-alt);
}

.kboard-button-like {
	color: #ef4444;
}

.kboard-button-unlike {
	color: var(--kboard-primary);
}

/* Document Control Buttons (List, Reply, Edit, Delete) */
#kboard-thumbnail-document .kboard-control {
	display: flex;
	justify-content: space-between;
	padding: 20px 0;
	float: none;
	gap: 10px;
}

#kboard-thumbnail-document .kboard-control .left,
#kboard-thumbnail-document .kboard-control .right {
	display: flex;
	flex-wrap: nowrap;
	/* Prevent wrapping */
	gap: 8px;
	white-space: nowrap;
	/* Keep text on one line */
}

/* Attachments */
.kboard-attach {
	border-top: 1px dashed var(--kboard-border);
	padding: 15px 24px;
	background: var(--kboard-bg-alt);
	margin: 0;
}

/* Comments & Navi */
.kboard-comments-area {
	float: none;
	width: 100%;
	margin-top: 20px;
}

.kboard-document-navi {
	display: flex;
	gap: 10px;
	margin-top: 20px;
	float: none;
	padding: 0;
}

/* Document Added Options Group Container */
.kboard-document-options-group {
	margin-bottom: 40px;
	border: none;
	background: transparent;
	padding: 0;
}

/* Individual Option Wrapper (Row Style) */
.kboard-document-add-option-value-wrap {
	background-color: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	padding: 0;
	margin-bottom: 12px;
	/* Margin between rows */
	overflow: hidden;
	/* For radius */
	display: block;
}

.kboard-document-add-option-value-wrap:last-child {
	border-bottom: 1px solid var(--kboard-border);
	margin-bottom: 0px;
}

/* Inner Option Layout */
.kboard-document-add-option-value {
	display: flex;
	align-items: stretch;
	/* Stretch to fill height */
	padding: 0;
	min-height: 48px;
	/* Minimum row height */
	border: none;
}

.kboard-document-add-option-value .option-name {
	width: 160px;
	background-color: #f8fafc;
	border-right: 1px solid var(--kboard-border);
	font-weight: 600;
	color: var(--kboard-text);
	/* Matched text color */
	padding: 14px 20px;
	display: flex;
	align-items: center;
	flex-shrink: 0;
	font-size: 15px;
	/* Increased to match content */
}

.kboard-document-add-option-value .option-separator {
	display: none;
}

.kboard-document-add-option-value .option-value {
	color: var(--kboard-text);
	padding: 14px 20px;
	display: flex;
	align-items: center;
	flex-grow: 1;
	word-break: break-all;
	font-size: 15px;
	/* Same size as label */
}

.kboard-document-add-option-value-wrap hr {
	display: none;
}

/* Mobile Responsive for Options */
@media screen and (max-width: 600px) {
	.kboard-document-options-group {
		padding: 0;
	}

	.kboard-document-add-option-value {
		flex-direction: column;
	}

	.kboard-document-add-option-value .option-name {
		width: 100%;
		border-right: none;
		border-bottom: 1px solid var(--kboard-border);
		padding: 12px 16px;
		/* Adjusted padding */
		background-color: #f8fafc;
		color: var(--kboard-text);
		font-size: 15px;
		/* Maintain 15px on mobile */
	}

	.kboard-document-add-option-value .option-value {
		padding: 12px 16px;
		display: block;
		/* Allow block layout for content */
		align-items: flex-start;
	}

	.kboard-document-add-option-value-wrap {
		margin-bottom: 16px;
		/* More space on mobile */
	}
}

#kboard-thumbnail-document .kboard-document-navi a {
	display: flex;
	align-items: center;
	gap: 8px;
	/* space between arrow and text */
	padding: 16px;
	border: 1px solid var(--kboard-border);
	background: #fff;
	border-radius: var(--kboard-radius);
	margin-bottom: 0;
	font-weight: 500;
	height: 100%;
}

#kboard-thumbnail-document .kboard-document-navi a:hover {
	border-color: var(--kboard-primary);
	color: var(--kboard-primary);
	box-shadow: var(--kboard-shadow-sm);
}

#kboard-thumbnail-document .kboard-document-navi .kboard-prev-document,
#kboard-thumbnail-document .kboard-document-navi .kboard-next-document {
	float: none;
	width: 50%;
}

#kboard-thumbnail-document .kboard-document-navi .kboard-prev-document a {
	justify-content: flex-start;
	text-align: left;
}

#kboard-thumbnail-document .kboard-document-navi .kboard-next-document a {
	justify-content: flex-end;
	text-align: right;
}

#kboard-thumbnail-document .kboard-document-navi .navi-arrow {
	position: static;
}

#kboard-thumbnail-document .kboard-control {
	float: none;
	display: flex;
	justify-content: space-between;
	padding: 20px 0;
}

#kboard-thumbnail-document .kboard-control .left,
#kboard-thumbnail-document .kboard-control .right {
	float: none;
	position: static;
}

/* --- Editor --- */
#kboard-thumbnail-editor .kboard-attr-row {
	display: flex;
	flex-direction: column;
	margin-bottom: 16px;
	padding: 0;
	background: transparent;
	border-bottom: none;
	float: none;
}

#kboard-thumbnail-editor .attr-name {
	font-weight: 600;
	margin-bottom: 8px;
	font-size: 14px;
	width: 100% !important;
	float: none !important;
	text-align: left;
	padding: 0 !important;
}

#kboard-thumbnail-editor input[type=file] {
	margin: 0;
	padding: 8px 0;
	width: 100%;
}

#kboard-thumbnail-editor .attr-value {
	margin: 0 !important;
	width: 100%;
	padding: 0;
}

#kboard-thumbnail-editor .attr-value .attr-value-option {
	display: inline-flex;
	align-items: center;
	margin-right: 16px;
	cursor: pointer;
	font-size: 14px;
	color: var(--kboard-text);
}

#kboard-thumbnail-editor .attr-value .attr-value-option input[type=checkbox] {
	appearance: none;
	-webkit-appearance: none;
	width: 18px !important;
	height: 18px !important;
	border: 1px solid var(--kboard-border);
	border-radius: 4px;
	background: #fff;
	cursor: pointer;
	position: relative;
	margin-right: 8px;
	vertical-align: middle;
	outline: none;
	margin: 0 8px 0 0;
	/* Reset margins */
}

#kboard-thumbnail-editor .attr-value .attr-value-option input[type=checkbox]:checked {
	background-color: var(--kboard-primary);
	border-color: var(--kboard-primary);
	background-image: url("data:image/svg+xml,%3csvg viewBox='0 0 16 16' fill='white' xmlns='http://www.w3.org/2000/svg'%3e%3cpath d='M12.207 4.793a1 1 0 010 1.414l-5 5a1 1 0 01-1.414 0l-2-2a1 1 0 011.414-1.414L6.5 9.086l4.293-4.293a1 1 0 011.414 0z'/%3e%3c/svg%3e");
	background-position: center;
	background-repeat: no-repeat;
	background-size: 100% 100%;
}

#kboard-thumbnail-editor input[type=text],
#kboard-thumbnail-editor input[type=email],
#kboard-thumbnail-editor input[type=password],
#kboard-thumbnail-editor select {
	width: 100% !important;
}

#kboard-thumbnail-editor .kboard-content {
	border: none;
	padding: 0;
	margin: 0;
	background: transparent;
	float: none;
}

#kboard-thumbnail-editor textarea {
	width: 100% !important;
	border: 1px solid var(--kboard-border);
	box-sizing: border-box;
}

#kboard-thumbnail-editor .kboard-control {
	float: none;
	display: flex;
	justify-content: space-between;
}

#kboard-thumbnail-editor .kboard-control .left,
#kboard-thumbnail-editor .kboard-control .right {
	float: none;
	width: auto;
}

/* --- Confirm (Password) Page --- */
#kboard-thumbnail-editor.confirm {
	max-width: 400px;
	margin: 60px auto;
	padding: 30px;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	background: #fff;
	box-shadow: var(--kboard-shadow-md);
}

#kboard-thumbnail-editor.confirm .kboard-confirm-row {
	margin-bottom: 24px;
}

#kboard-thumbnail-editor.confirm .attr-name {
	margin-bottom: 10px;
}

#kboard-thumbnail-editor.confirm .description {
	color: var(--kboard-danger);
	font-size: 13px;
	margin-top: 8px;
	font-weight: 500;
}

#kboard-thumbnail-editor.confirm input[type=password] {
	width: 100%;
}

#kboard-thumbnail-editor.confirm .kboard-control {
	justify-content: center;
	flex-direction: column-reverse;
	gap: 10px;
}

#kboard-thumbnail-editor.confirm .kboard-control .left,
#kboard-thumbnail-editor.confirm .kboard-control .right {
	display: flex;
	flex-direction: column;
	gap: 10px;
	width: 100%;
	margin: 0;
}

#kboard-thumbnail-editor.confirm .kboard-control button {
	width: 100%;
	height: 40px;
	font-size: 15px;
}

#kboard-thumbnail-editor.confirm .kboard-control a {
	width: 100%;
	height: 40px;
	background: #fff !important;
	color: var(--kboard-text-muted) !important;
	border: 1px solid var(--kboard-border);
	box-shadow: none;
}

#kboard-thumbnail-editor.confirm .kboard-control a:hover {
	background: var(--kboard-bg-alt) !important;
	color: var(--kboard-text) !important;
	border-color: var(--kboard-text-muted);
}

/* Tree Category in Editor */
#kboard-thumbnail-editor .kboard-tree-category-wrap {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	width: 100%;
	margin-bottom: 20px;
}

#kboard-thumbnail-editor .kboard-tree-category-wrap select {
	flex: 1;
	min-width: 120px;
	width: auto;
}

/* --- Address Field (Postcode) --- */
#kboard-thumbnail-editor .kboard-row-postcode {
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 8px;
}

#kboard-thumbnail-editor .kboard-row-postcode input[type=text] {
	width: 150px !important;
	flex: 0 0 auto;
	/* Fixed width */
}

#kboard-thumbnail-editor .kboard-row-postcode button {
	height: 40px;
	flex: 0 0 auto;
	white-space: nowrap;
	margin: 0 !important;
}

#kboard-thumbnail-editor .kboard-row-address-1,
#kboard-thumbnail-editor .kboard-row-address-2 {
	display: block;
	width: 100%;
	margin-bottom: 8px;
}

#kboard-thumbnail-editor .kboard-row-address-2 {
	margin-bottom: 0;
}

#kboard-thumbnail-editor .kboard-row-address-1 input[type=text],
#kboard-thumbnail-editor .kboard-row-address-2 input[type=text] {
	width: 100% !important;
}

/* --- Latest View (Widget) --- */
#kboard-thumbnail-latest {
	width: 100%;
	background: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	overflow: hidden;
	box-sizing: border-box;
}

#kboard-thumbnail-latest table {
	width: 100%;
	border-collapse: collapse;
	table-layout: fixed;
	border: 0;
}

#kboard-thumbnail-latest thead th {
	padding: 10px;
	background: var(--kboard-bg-alt);
	border-bottom: 1px solid var(--kboard-border);
	font-size: 13px;
	color: var(--kboard-text-muted);
	font-weight: 600;
	text-align: center;
	border-top: 0;
	border-left: 0;
	border-right: 0;
}

#kboard-thumbnail-latest tbody tr {
	border-bottom: 1px solid var(--kboard-border);
	background: #fff;
}

#kboard-thumbnail-latest tbody tr:last-child {
	border-bottom: none;
}

#kboard-thumbnail-latest tbody tr:hover {
	background-color: var(--kboard-bg-alt);
}

#kboard-thumbnail-latest td {
	padding: 12px 16px;
	vertical-align: middle;
	font-size: 14px;
	border: 0;
}

#kboard-thumbnail-latest .kboard-latest-title {
	text-align: left;
}

#kboard-thumbnail-latest .kboard-latest-title a {
	display: block;
	color: var(--kboard-text);
	text-decoration: none;
}

#kboard-thumbnail-latest .kboard-latest-title a:hover {
	color: var(--kboard-primary);
}

#kboard-thumbnail-latest .kboard-thumbnail-cut-strings {
	display: block;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

#kboard-thumbnail-latest .kboard-latest-date,
#kboard-thumbnail-latest .kboard-latest-author {
	color: var(--kboard-text-muted);
	font-size: 13px;
	text-align: center;
	width: 90px;
}

/* --- Responsive Media Query --- */
@media screen and (max-width: 768px) {

	/* Hide complex table headers */
	#kboard-thumbnail-list .kboard-list thead {
		display: none;
	}

	/* Make rows into cards */
	#kboard-thumbnail-list .kboard-list tbody tr {
		display: block;
		padding: 16px;
		border-bottom: 1px solid var(--kboard-border);
	}

	/* Hide unneeded columns */
	#kboard-thumbnail-list .kboard-list-uid,
	#kboard-thumbnail-list .kboard-list-date,
	#kboard-thumbnail-list .kboard-list-vote,
	#kboard-thumbnail-list .kboard-list-view,
	#kboard-thumbnail-list .kboard-list-user {
		display: none;
	}

	/* Title takes full width */
	#kboard-thumbnail-list .kboard-list td.kboard-list-title {
		display: block;
		padding: 0;
		width: 100%;
		text-align: left;
	}

	#kboard-thumbnail-list .kboard-list-title .kboard-thumbnail-cut-strings {
		white-space: normal;
		font-size: 16px;
		line-height: 1.4;
		margin-bottom: 8px;
	}

	/* Show Mobile Contents */
	#kboard-thumbnail-list .kboard-mobile-contents {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
		align-items: center;
		font-size: 12px;
	}

	#kboard-thumbnail-list .kboard-mobile-contents .contents-separator {
		color: #e2e8f0;
	}

	/* Search Stack */
	#kboard-thumbnail-list .kboard-search form {
		flex-direction: column;
		width: 100%;
	}

	#kboard-thumbnail-list .kboard-search select,
	#kboard-thumbnail-list .kboard-search input,
	#kboard-thumbnail-list .kboard-search button {
		width: 100% !important;
		margin: 0 !important;
	}

	/* Document Control Mobile */
	#kboard-thumbnail-document .kboard-control {
		flex-direction: column;
		gap: 10px;
	}

	#kboard-thumbnail-document .kboard-control .left,
	#kboard-thumbnail-document .kboard-control .right {
		width: 100%;
		justify-content: center;
		flex-wrap: wrap;
		white-space: normal;
	}

	#kboard-thumbnail-document .kboard-control a,
	#kboard-thumbnail-document .kboard-control button {
		flex: 1;
		text-align: center;
		min-width: 0;
	}

	/* Editor */
	#kboard-thumbnail-editor .kboard-control {
		flex-direction: column;
		gap: 10px;
	}

	#kboard-thumbnail-editor .kboard-control .left,
	#kboard-thumbnail-editor .kboard-control .right {
		width: 100%;
		text-align: center;
		display: flex;
		flex-direction: column;
		gap: 8px;
	}

	/* Pagination Mobile */
	#kboard-thumbnail-list .kboard-pagination ul {
		flex-wrap: wrap;
		justify-content: center;
	}

	/* Latest Mobile */
	#kboard-thumbnail-latest thead,
	#kboard-thumbnail-latest .kboard-latest-author {
		display: none;
	}

	#kboard-thumbnail-latest tbody tr {
		display: flex;
		flex-direction: column;
		padding: 8px 0;
	}

	#kboard-thumbnail-latest td.kboard-latest-title {
		display: block;
		width: 100%;
		padding-bottom: 4px;
		border: none;
	}

	#kboard-thumbnail-latest td.kboard-latest-date {
		display: block;
		width: 100%;
		text-align: left;
		font-size: 12px;
		padding-top: 5px;
		padding-bottom: 8px;
		border: none;
		color: var(--kboard-text-muted);
	}

	/* Document Navi Mobile */
	.kboard-document-navi {
		flex-direction: column;
	}

	#kboard-thumbnail-document .kboard-document-navi .kboard-prev-document,
	#kboard-thumbnail-document .kboard-document-navi .kboard-next-document {
		width: 100%;
	}
}

/* ============================================
   Tree Category Search (Default)
   ============================================ */
#kboard-thumbnail-list .kboard-tree-category-search {
	margin-bottom: 20px;
	padding: 15px;
	background: var(--kboard-bg-alt);
	border-radius: var(--kboard-radius);
	text-align: left;
	/* Changed to left */
}

#kboard-thumbnail-list .kboard-tree-category-search .kboard-tree-category-wrap {
	display: inline-flex;
	flex-wrap: wrap;
	gap: 10px;
	justify-content: flex-start;
	/* Changed to flex-start */
	align-items: center;
}

/* Individual Select Wrapper */
#kboard-thumbnail-list .kboard-tree-category-search .kboard-search-option-wrap {
	display: inline-block;
}

/* Select Box Style */
#kboard-thumbnail-list .kboard-tree-category-search select {
	height: 38px;
	padding: 0 36px 0 16px;
	border: 1px solid var(--kboard-border);
	border-radius: 999px;
	/* Pill Shape */
	background-color: #fff;
	font-size: 14px;
	color: var(--kboard-text-muted);
	font-weight: 500;
	min-width: 120px;
	cursor: pointer;
	transition: all 0.2s ease;
	appearance: none;
	-webkit-appearance: none;
	background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%236b7280%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
	background-size: 10px;
}

#kboard-thumbnail-list .kboard-tree-category-search select:hover {
	border-color: var(--kboard-primary);
	color: var(--kboard-primary);
	background-color: var(--kboard-bg-alt);
}

#kboard-thumbnail-list .kboard-tree-category-search select:focus {
	border-color: var(--kboard-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
	outline: none;
}

/* =========================================================
   Category Styles (PC vs Mobile) - Default Skin
   ========================================================= */

/* Default: Show PC, Hide Mobile */
#kboard-thumbnail-list .kboard-category.category-mobile {
	display: none;
}

#kboard-thumbnail-list .kboard-category.category-pc {
	display: block;
	margin-bottom: 20px;
	padding: 15px;
	background-color: var(--kboard-bg-alt);
	border-radius: var(--kboard-radius);
}

/* PC Category List Style */
#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list {
	list-style: none;
	padding: 0;
	margin: 0 0 10px 0;
	/* Gap between rows of categories */
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	align-items: center;
}

#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list li {
	display: inline-block;
	margin: 0;
	padding: 0;
	border: none;
}

#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list li a {
	display: block;
	padding: 6px 16px;
	font-size: 14px;
	font-weight: 500;
	color: var(--kboard-text-muted);
	background-color: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: 999px;
	/* Pill shape */
	transition: all 0.2s ease;
	text-decoration: none;
}

#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list li a:hover {
	border-color: var(--kboard-primary);
	color: var(--kboard-primary);
	background-color: var(--kboard-bg-alt);
}

/* Selected Category */
#kboard-thumbnail-list .kboard-category.category-pc .kboard-category-list li.kboard-category-selected a {
	background-color: var(--kboard-primary);
	border-color: var(--kboard-primary);
	color: #fff;
	font-weight: 600;
	box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Mobile Category Style Base */
#kboard-thumbnail-list .kboard-category.category-mobile select {
	width: auto;
	min-width: 120px;
	height: 38px;
	padding: 0 12px;
	margin-right: 5px;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	background-color: #fff;
	font-size: 14px;
	color: var(--kboard-text);
}

/* --- Mobile Media Query for Category --- */
@media screen and (max-width: 600px) {
	#kboard-thumbnail-list .kboard-category.category-pc {
		display: none;
	}

	#kboard-thumbnail-list .kboard-category.category-mobile {
		display: block;
		margin-bottom: 20px;
		padding: 10px;
		background: var(--kboard-bg-alt);
		border-radius: var(--kboard-radius);
	}

	#kboard-thumbnail-list .kboard-category.category-mobile form {
		display: flex;
		flex-wrap: wrap;
		gap: 8px;
	}

	#kboard-thumbnail-list .kboard-category.category-mobile select {
		flex: 1;
		width: 100%;
		min-width: 140px;
		/* Don't get too small */
	}
}

/* =========================================================
   Thumbnail Skin Unique Styles
   ========================================================= */

/* Thumbnail Column */
#kboard-thumbnail-list .kboard-list table td.kboard-list-thumbnail {
	width: 180px;
	padding: 10px;
	text-align: center;
}

/* Thumbnail Header (thead) */
#kboard-thumbnail-list .kboard-list thead td.kboard-list-thumbnail {
	width: 180px;
	padding: 12px 16px;
	font-size: 13px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
	font-weight: 600;
	color: var(--kboard-text-muted);
	text-align: center;
}

#kboard-thumbnail-list .kboard-list tbody td.kboard-list-thumbnail .icon-picture {
	font-size: 20px;
	color: var(--kboard-text-muted);
}

#kboard-thumbnail-list .kboard-list tbody td.kboard-list-thumbnail img {
	display: block;
	margin: 0 auto;
	width: 100%;
	max-width: 160px;
	height: auto;
	border-radius: var(--kboard-radius);
	object-fit: cover;
	aspect-ratio: 16/9;
	box-shadow: var(--kboard-shadow-sm);
}

/* Mobile: Thumbnail in mobile contents */
#kboard-thumbnail-list .kboard-list .kboard-mobile-contents .contents-thumbnail {
	float: left;
	display: inline;
	margin: 0 16px 8px 0;
	width: 100px;
	height: 75px;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	object-fit: cover;
	aspect-ratio: 4/3;
}

/* Mobile: Hide desktop thumbnail column */
@media screen and (max-width: 768px) {
	#kboard-thumbnail-list .kboard-list-thumbnail {
		display: none;
	}

	#kboard-thumbnail-list .kboard-list .kboard-mobile-contents .contents-thumbnail {
		display: block;
	}
}

/* ============================================
   Editor.js Visibility & Usability Patch
   ============================================ */
#kboard-editor-root,
.kboard-editor-root-editorjs,
.kboard-editor-scaffold {
	--kboard-editorjs-left-gutter: 44px;
	position: relative;
	margin: 8px 0 0;
	padding: 12px;
	min-height: 280px;
	background-color: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
	overflow: visible;
}

@media screen and (max-width: 768px) {
	#kboard-editor-root,
	.kboard-editor-root-editorjs,
	.kboard-editor-scaffold {
		--kboard-editorjs-left-gutter: 36px;
	}
}

#kboard-editor-root:focus-within,
.kboard-editor-root-editorjs:focus-within,
.kboard-editor-scaffold:focus-within {
	border-color: var(--kboard-primary);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

#kboard-editor-root .codex-editor,
.kboard-editor-root-editorjs .codex-editor,
.kboard-editor-scaffold .codex-editor {
	position: relative;
	z-index: 1;
	overflow: visible;
}

#kboard-editor-root .codex-editor__redactor,
.kboard-editor-root-editorjs .codex-editor__redactor,
.kboard-editor-scaffold .codex-editor__redactor {
	overflow: visible;
}

#kboard-editor-root .ce-block,
.kboard-editor-root-editorjs .ce-block,
.kboard-editor-scaffold .ce-block {
	padding: 2px 0;
	margin-bottom: 8px;
}

#kboard-editor-root .ce-block:last-child,
.kboard-editor-root-editorjs .ce-block:last-child,
.kboard-editor-scaffold .ce-block:last-child {
	margin-bottom: 0;
}

#kboard-editor-root .ce-block__content,
#kboard-editor-root .ce-toolbar__content,
.kboard-editor-root-editorjs .ce-block__content,
.kboard-editor-root-editorjs .ce-toolbar__content,
.kboard-editor-scaffold .ce-block__content,
.kboard-editor-scaffold .ce-toolbar__content {
	max-width: calc(100% - var(--kboard-editorjs-left-gutter));
	margin-left: var(--kboard-editorjs-left-gutter);
	margin-right: 0;
}

#kboard-editor-root .ce-paragraph,
#kboard-editor-root .ce-header,
#kboard-editor-root .cdx-list,
.kboard-editor-root-editorjs .ce-paragraph,
.kboard-editor-root-editorjs .ce-header,
.kboard-editor-root-editorjs .cdx-list,
.kboard-editor-scaffold .ce-paragraph,
.kboard-editor-scaffold .ce-header,
.kboard-editor-scaffold .cdx-list {
	color: var(--kboard-text);
	line-height: 1.7;
}

#kboard-editor-root .ce-paragraph[data-placeholder]:empty::before,
#kboard-editor-root .ce-header[data-placeholder]:empty::before,
.kboard-editor-root-editorjs .ce-paragraph[data-placeholder]:empty::before,
.kboard-editor-root-editorjs .ce-header[data-placeholder]:empty::before,
.kboard-editor-scaffold .ce-paragraph[data-placeholder]:empty::before,
.kboard-editor-scaffold .ce-header[data-placeholder]:empty::before {
	color: var(--kboard-text-muted);
	opacity: 0.7;
}

#kboard-editor-root .ce-toolbar,
#kboard-editor-root .ce-inline-toolbar,
#kboard-editor-root .ce-popover,
#kboard-editor-root .ce-conversion-toolbar,
#kboard-editor-root .ce-settings,
.kboard-editor-root-editorjs .ce-toolbar,
.kboard-editor-root-editorjs .ce-inline-toolbar,
.kboard-editor-root-editorjs .ce-popover,
.kboard-editor-root-editorjs .ce-conversion-toolbar,
.kboard-editor-root-editorjs .ce-settings,
.kboard-editor-scaffold .ce-toolbar,
.kboard-editor-scaffold .ce-inline-toolbar,
.kboard-editor-scaffold .ce-popover,
.kboard-editor-scaffold .ce-conversion-toolbar,
.kboard-editor-scaffold .ce-settings {
	left: 0;
	right: 0;
	overflow: visible;
	visibility: visible;
	opacity: 1;
	z-index: 1000;
}

#kboard-editor-root .ce-toolbar__plus,
#kboard-editor-root .ce-toolbar__settings-btn,
.kboard-editor-root-editorjs .ce-toolbar__plus,
.kboard-editor-root-editorjs .ce-toolbar__settings-btn,
.kboard-editor-scaffold .ce-toolbar__plus,
.kboard-editor-scaffold .ce-toolbar__settings-btn {
	visibility: visible;
	opacity: 1;
	color: var(--kboard-text);
	background-color: #fff;
	border: 1px solid var(--kboard-border);
	border-radius: 999px;
	box-shadow: var(--kboard-shadow-sm);
}

#kboard-editor-root .ce-toolbar__plus:hover,
#kboard-editor-root .ce-toolbar__plus:focus,
#kboard-editor-root .ce-toolbar__settings-btn:hover,
#kboard-editor-root .ce-toolbar__settings-btn:focus,
.kboard-editor-root-editorjs .ce-toolbar__plus:hover,
.kboard-editor-root-editorjs .ce-toolbar__plus:focus,
.kboard-editor-root-editorjs .ce-toolbar__settings-btn:hover,
.kboard-editor-root-editorjs .ce-toolbar__settings-btn:focus,
.kboard-editor-scaffold .ce-toolbar__plus:hover,
.kboard-editor-scaffold .ce-toolbar__plus:focus,
.kboard-editor-scaffold .ce-toolbar__settings-btn:hover,
.kboard-editor-scaffold .ce-toolbar__settings-btn:focus {
	color: var(--kboard-primary);
	border-color: var(--kboard-primary);
	background-color: var(--kboard-bg-alt);
}

#kboard-editor-root .ce-block:focus-within .ce-toolbar__plus,
#kboard-editor-root .ce-block:focus-within .ce-toolbar__settings-btn,
#kboard-editor-root .ce-block--focused .ce-toolbar__plus,
#kboard-editor-root .ce-block--focused .ce-toolbar__settings-btn,
#kboard-editor-root .ce-block--empty .ce-toolbar__plus,
#kboard-editor-root .ce-block--empty .ce-toolbar__settings-btn,
.kboard-editor-root-editorjs .ce-block:focus-within .ce-toolbar__plus,
.kboard-editor-root-editorjs .ce-block:focus-within .ce-toolbar__settings-btn,
.kboard-editor-root-editorjs .ce-block--focused .ce-toolbar__plus,
.kboard-editor-root-editorjs .ce-block--focused .ce-toolbar__settings-btn,
.kboard-editor-root-editorjs .ce-block--empty .ce-toolbar__plus,
.kboard-editor-root-editorjs .ce-block--empty .ce-toolbar__settings-btn,
.kboard-editor-scaffold .ce-block:focus-within .ce-toolbar__plus,
.kboard-editor-scaffold .ce-block:focus-within .ce-toolbar__settings-btn,
.kboard-editor-scaffold .ce-block--focused .ce-toolbar__plus,
.kboard-editor-scaffold .ce-block--focused .ce-toolbar__settings-btn,
.kboard-editor-scaffold .ce-block--empty .ce-toolbar__plus,
.kboard-editor-scaffold .ce-block--empty .ce-toolbar__settings-btn {
	visibility: visible;
	opacity: 1;
}

#kboard-editor-root .ce-popover,
#kboard-editor-root .ce-conversion-toolbar,
.kboard-editor-root-editorjs .ce-popover,
.kboard-editor-root-editorjs .ce-conversion-toolbar,
.kboard-editor-scaffold .ce-popover,
.kboard-editor-scaffold .ce-conversion-toolbar {
	border: 1px solid var(--kboard-border);
	box-shadow: var(--kboard-shadow-sm);
}

.kboard-content hr,
.kboard-content .kboard-editorjs-delimiter,
.kboard-content .kboard-editorjs-block-delimiter,
.kboard-document-content hr,
.kboard-document-content .kboard-editorjs-delimiter,
.kboard-document-content .kboard-editorjs-block-delimiter {
	margin: 18px 0;
	border: 0;
	height: 0;
	border-top: 1px solid var(--kboard-border);
}

.kboard-content pre,
.kboard-content .kboard-editorjs-code,
.kboard-content .kboard-editorjs-block-code,
.kboard-document-content pre,
.kboard-document-content .kboard-editorjs-code,
.kboard-document-content .kboard-editorjs-block-code {
	margin: 16px 0;
	padding: 12px;
	overflow: auto;
	background-color: var(--kboard-bg-alt);
	border: 1px solid var(--kboard-border);
	border-radius: var(--kboard-radius);
	font-size: 13px;
	line-height: 1.6;
}

.kboard-content table,
.kboard-content .kboard-editorjs-table,
.kboard-content .kboard-editorjs-block-table,
.kboard-document-content table,
.kboard-document-content .kboard-editorjs-table,
.kboard-document-content .kboard-editorjs-block-table {
	width: 100%;
	margin: 16px 0;
	border-collapse: collapse;
	border: 1px solid var(--kboard-border);
	font-size: 14px;
}

.kboard-content table th,
.kboard-content table td,
.kboard-content .kboard-editorjs-table th,
.kboard-content .kboard-editorjs-table td,
.kboard-content .kboard-editorjs-block-table th,
.kboard-content .kboard-editorjs-block-table td,
.kboard-document-content table th,
.kboard-document-content table td,
.kboard-document-content .kboard-editorjs-table th,
.kboard-document-content .kboard-editorjs-table td,
.kboard-document-content .kboard-editorjs-block-table th,
.kboard-document-content .kboard-editorjs-block-table td {
	padding: 10px;
	border: 1px solid var(--kboard-border);
	vertical-align: top;
}

.kboard-content .kboard-warning,
.kboard-content .kboard-editorjs-warning,
.kboard-content .kboard-editorjs-block-warning,
.kboard-document-content .kboard-warning,
.kboard-document-content .kboard-editorjs-warning,
.kboard-document-content .kboard-editorjs-block-warning {
	margin: 16px 0;
	padding: 12px 14px;
	background-color: var(--kboard-bg-alt);
	border: 1px solid var(--kboard-border);
	border-left: 3px solid var(--kboard-primary);
	border-radius: var(--kboard-radius);
	line-height: 1.7;
}

.kboard-content .kboard-editorjs-checklist,
.kboard-content .kboard-editorjs-block-checklist,
.kboard-document-content .kboard-editorjs-checklist,
.kboard-document-content .kboard-editorjs-block-checklist {
	margin: 16px 0;
	padding-left: 0;
	list-style: none;
}

.kboard-content .kboard-editorjs-checklist li,
.kboard-content .kboard-editorjs-block-checklist li,
.kboard-document-content .kboard-editorjs-checklist li,
.kboard-document-content .kboard-editorjs-block-checklist li {
	margin: 0 0 8px;
	padding-left: 2px;
}


/* steel-image: document attachment preview */
#kboard-thumbnail-document .steel-image-media-list {
	margin: 0 0 32px;
}
#kboard-thumbnail-document .steel-image-media-item {
	margin: 0 0 24px;
}
#kboard-thumbnail-document .steel-image-media-item img,
#kboard-thumbnail-document .steel-image-media-item video {
	display: block;
	max-width: 100%;
	height: auto;
}
#kboard-thumbnail-document .steel-image-media-item video {
	width: auto;
}

/* =========================================================
 * steel-image-2 : steel-gallery 목록 화면 디자인
 * KBoard thumbnail 저장/뷰 구조는 그대로 두고 목록만 변경
 * ========================================================= */
#kboard-thumbnail-list.steel-image-gallery-list {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
#kboard-thumbnail-list.steel-image-gallery-list * {
    box-sizing: border-box;
}
#kboard-thumbnail-list.steel-image-gallery-list a {
    text-decoration: none;
}

#kboard-thumbnail-list.steel-image-gallery-list .steel-image-list-control {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    margin: 0 0 12px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-list-control-bottom {
    justify-content: flex-end;
    margin: 22px 0 0;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-total-count {
    color: #777;
    font-size: 14px;
    line-height: 38px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-write-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: auto;
    min-width: 0;
    height: 38px;
    padding: 0 15px;
    margin: 0;
    border: 1px solid #a90000;
    border-radius: 3px;
    background: #b80000;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 38px;
    white-space: nowrap;
}

#kboard-thumbnail-list.steel-image-gallery-list .steel-image-list {
    width: 100%;
    margin: 0 0 10px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-head {
    display: flex;
    width: 100%;
    min-height: 40px;
    align-items: center;
    background: #fafafa;
    border-bottom: 1px solid #ddd;
    color: #555;
    font-size: 14px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-number-head {
    flex: 0 0 60px;
    text-align: center;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-content-head {
    flex: 1;
    text-align: center;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-content-head span {
    color: #aaa;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-row {
    display: flex;
    width: 100%;
    padding: 60px 5px;
    border-bottom: 1px solid #ddd;
    background: #fff;
    color: #666;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-row:hover {
    background: #fff;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-number {
    flex: 0 0 55px;
    padding-top: 3px;
    text-align: center;
    font: normal 14px Tahoma, Arial, sans-serif;
    color: #b3b3b3;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-body {
    flex: 1;
    min-width: 0;
    display: flex;
    min-height: 287px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-thumb {
    flex: 0 0 240px;
    width: 240px;
    height: 287px;
    display: block;
    overflow: hidden;
    margin-left: 3px;
    background: #f7f7f7;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-thumb picture {
    display: block;
    width: 100%;
    height: 100%;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-thumb img {
    display: block;
    width: 240px;
    height: 287px;
    object-fit: cover;
    border: 0;
    margin: 0;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-noimage {
    width: 240px;
    height: 287px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f3f3;
    color: #bbb;
    font-size: 12px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-copy {
    flex: 1;
    min-width: 0;
    min-height: 287px;
    padding-left: 32px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-title {
    display: block;
    color: #555;
    font: 700 14px Tahoma, Arial, "Malgun Gothic", sans-serif;
    line-height: 1.5;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-excerpt {
    display: block;
    margin-top: 24px;
    color: #aaa;
    font-size: 14px;
    line-height: 1.7;
    word-break: break-all;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-notice .steel-image-body {
    min-height: auto;
    display: block;
    padding: 0 20px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-notice .steel-image-excerpt {
    margin-top: 8px;
}

#kboard-thumbnail-list.steel-image-gallery-list .steel-image-pagination {
    margin-top: 25px;
}
#kboard-thumbnail-list.steel-image-gallery-list .steel-image-pagination ul {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
}

@media screen and (max-width: 700px) {
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-write-button {
        height: 36px;
        padding: 0 12px;
        font-size: 13px;
        line-height: 36px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-number-head,
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-number {
        flex-basis: 38px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-row {
        padding: 36px 3px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-body {
        min-height: 0;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-thumb {
        flex: 0 0 120px;
        width: 120px;
        height: 144px;
        margin-left: 0;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-thumb img,
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-noimage {
        width: 120px;
        height: 144px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-copy {
        min-height: 144px;
        padding-left: 15px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-title {
        font-size: 13px;
    }
    #kboard-thumbnail-list.steel-image-gallery-list .steel-image-excerpt {
        margin-top: 12px;
        font-size: 12px;
        line-height: 1.6;
        max-height: 5em;
        overflow: hidden;
    }
}


/* steel-image-6: steel-gallery list layout */
/* ============================================================
   steel-gallery : GNUBOARD gallerY 목록 디자인 이식
   원본 썸네일 240 x 287
   ============================================================ */
#kboard-steel-gallery-list { width:100%; margin:0; padding:0; box-sizing:border-box; }
#kboard-steel-gallery-list * { box-sizing:border-box; }
#kboard-steel-gallery-list a { text-decoration:none; }

#kboard-steel-gallery-list .steel-gallery-list { width:100%; margin:0 0 10px; }
#kboard-steel-gallery-list .steel-gallery-head { display:flex; width:100%; min-height:40px; background:#fafafa; border-bottom:1px solid #ddd; color:#555; font-size:14px; align-items:center; }
#kboard-steel-gallery-list .steel-gallery-number-head { flex:0 0 60px; text-align:center; }
#kboard-steel-gallery-list .steel-gallery-content-head { flex:1; text-align:center; }
#kboard-steel-gallery-list .steel-gallery-content-head span { color:#aaa; }

#kboard-steel-gallery-list .steel-gallery-row { display:flex; width:100%; padding:60px 5px; border-bottom:1px solid #ddd; background:#fff; color:#666; }
#kboard-steel-gallery-list .steel-gallery-row:hover { background:#fff; }
#kboard-steel-gallery-list .steel-gallery-number { flex:0 0 55px; padding-top:3px; text-align:center; font:normal 14px Tahoma, Arial, sans-serif; color:#b3b3b3; }
#kboard-steel-gallery-list .steel-gallery-body { flex:1; min-width:0; display:flex; min-height:287px; }
#kboard-steel-gallery-list .steel-gallery-thumb { flex:0 0 240px; width:240px; height:287px; display:block; overflow:hidden; margin-left:3px; background:#f7f7f7; }
#kboard-steel-gallery-list .steel-gallery-thumb img { display:block; width:240px; height:287px; object-fit:cover; border:0; margin:0; }
#kboard-steel-gallery-list .steel-gallery-noimage { width:240px; height:287px; display:flex; align-items:center; justify-content:center; background:#f3f3f3; color:#bbb; font-size:12px; }
#kboard-steel-gallery-list .steel-gallery-copy { flex:1; min-width:0; min-height:287px; padding-left:32px; display:flex; flex-direction:column; justify-content:center; }
#kboard-steel-gallery-list .steel-gallery-title { display:block; color:#555; font:700 14px Tahoma, Arial, "Malgun Gothic", sans-serif; line-height:1.5; }
#kboard-steel-gallery-list .steel-gallery-title-mobile{display:none;}
#kboard-steel-gallery-list .steel-gallery-title-pc{display:inline;}
#kboard-steel-gallery-list .steel-gallery-excerpt { display:block; margin-top:24px; color:#aaa; font-size:14px; line-height:1.7; word-break:break-all; }
#kboard-steel-gallery-list .steel-gallery-new { margin-right:5px; color:#e15916; font-size:11px; }
#kboard-steel-gallery-list .steel-gallery-notice .steel-gallery-body { min-height:auto; display:block; padding:0 20px; }
#kboard-steel-gallery-list .steel-gallery-notice .steel-gallery-excerpt { margin-top:8px; }

#kboard-steel-gallery-list .kboard-pagination { margin-top:25px; }
#kboard-steel-gallery-list .kboard-search { margin-top:20px; }
#kboard-steel-gallery-list .kboard-control { margin-top:10px; }

@media screen and (max-width:700px) {
    #kboard-steel-gallery-list .steel-gallery-number-head,
    #kboard-steel-gallery-list .steel-gallery-number { flex-basis:38px; }
    #kboard-steel-gallery-list .steel-gallery-row { padding:36px 3px; }
    #kboard-steel-gallery-list .steel-gallery-body { min-height:0; }
    #kboard-steel-gallery-list .steel-gallery-thumb { flex:0 0 120px; width:120px; height:144px; }
    #kboard-steel-gallery-list .steel-gallery-thumb img,
    #kboard-steel-gallery-list .steel-gallery-noimage { width:120px; height:144px; }
    #kboard-steel-gallery-list .steel-gallery-copy { min-height:144px; padding-left:15px; }
    #kboard-steel-gallery-list .steel-gallery-title { font-size:13px; }
    #kboard-steel-gallery-list .steel-gallery-excerpt { margin-top:12px; font-size:12px; line-height:1.6; max-height:5em; overflow:hidden; }
}



/* ============================================================
   NEW WRITE BUTTONS - rebuilt from scratch
   steel-basic current write-button appearance
   Applied to normal list and the list loaded beneath document view.
   ============================================================ */
#kboard-steel-gallery-list .steel-gallery-new-write-control{
    display:flex;
    justify-content:flex-end;
    align-items:center;
    width:100%;
    box-sizing:border-box;
    padding:0 15px;
    clear:both;
}

#kboard-steel-gallery-list .steel-gallery-new-write-control-top{
    margin:0 0 14px 0;
}

#kboard-steel-gallery-list .steel-gallery-new-write-control-bottom{
    margin:12px 0 20px 0;
}

#kboard-steel-gallery-list a.steel-gallery-new-write-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    width:auto;
    min-width:0;
    height:38px;
    min-height:38px;
    margin:0;
    padding:0 15px;
    box-sizing:border-box;
    border:1px solid #ff4065;
    border-radius:3px;
    background:#ff4065;
    color:#fff;
    font-size:14px;
    font-weight:400;
    line-height:1;
    text-align:center;
    text-decoration:none;
    white-space:nowrap;
    box-shadow:none;
    cursor:pointer;
}

#kboard-steel-gallery-list a.steel-gallery-new-write-button:hover,
#kboard-steel-gallery-list a.steel-gallery-new-write-button:focus,
#kboard-steel-gallery-list a.steel-gallery-new-write-button:active{
    border-color:#ff4065;
    background:#ff4065;
    color:#fff;
    text-decoration:none;
    box-shadow:none;
}

@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-new-write-control{
        padding:0 10px;
    }

    #kboard-steel-gallery-list .steel-gallery-new-write-control-top{
        margin:0 0 10px 0;
    }

    #kboard-steel-gallery-list .steel-gallery-new-write-control-bottom{
        margin:30px 0 30px 0;
    }

    #kboard-steel-gallery-list a.steel-gallery-new-write-button{
        height:36px;
        min-height:36px;
        padding:0 14px;
        border-radius:3px;
        font-size:13px;
        line-height:1;
    }
}


/* ============================================================
   steel-gallery-17 : PC 전체 건수 영역 재생성
   - 기존 우측 묶음 배치를 무효화
   - 전체 건수는 줄 맨 왼쪽, 글쓰기는 줄 맨 오른쪽
   - 전체 건수는 밝은 회색 박스 + 가운데 정렬
   - 모바일은 전체 건수 표시하지 않음
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list .steel-gallery-new-write-control{
        display:flex !important;
        flex-direction:row !important;
        flex-wrap:nowrap !important;
        justify-content:space-between !important;
        align-items:center !important;
        width:100% !important;
        max-width:100% !important;
        padding-left:15px !important;
        padding-right:15px !important;
        box-sizing:border-box !important;
    }

    #kboard-steel-gallery-list .steel-gallery-total-count-pc{
        position:static !important;
        float:none !important;
        left:auto !important;
        right:auto !important;
        top:auto !important;
        bottom:auto !important;
        transform:none !important;
        display:inline-flex !important;
        align-items:center !important;
        justify-content:center !important;
        flex:0 0 auto !important;
        min-width:100px !important;
        height:38px !important;
        margin:0 !important;
        padding:0 14px !important;
        box-sizing:border-box !important;
        background:#eeeeee !important;
        border:0 !important;
        border-radius:0 !important;
        color:#555 !important;
        font-size:14px !important;
        font-weight:400 !important;
        line-height:38px !important;
        text-align:center !important;
        white-space:nowrap !important;
    }

    #kboard-steel-gallery-list .steel-gallery-new-write-button{
        position:static !important;
        float:none !important;
        margin-left:auto !important;
    }
}

@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-total-count-pc{
        display:none !important;
    }
}


/* steel-gallery-19 : PC 전체 건수 - 기존 위치에서 우측 9% 이동 (최종 left:-1%) */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list .steel-gallery-total-count-pc{
        position:relative !important;
        left:-1% !important;
    }
}

/* steel-gallery-20 : PC 전체 건수 현재 위치에서 좌측 2% 이동 */
@media (min-width: 769px){
    #kboard-default-list .steel-gallery-total-count-pc,
    #kboard-default-document .steel-gallery-total-count-pc{
        left:-5% !important;
    }
}

/* steel-gallery-22 : PC 리스트 화면 전체 건수만 우측으로 15px 이동 */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top .steel-gallery-total-count-pc{
        left:calc(-1% + 15px) !important;
    }
}

/* steel-gallery-23 : PC 리스트 화면 전체 건수 현재 위치에서 좌측 5px 이동 */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top .steel-gallery-total-count-pc{
        left:calc(-1% + 10px) !important;
    }
}

/* steel-gallery-24 : PC 리스트 전체건수의 '체'와 번호의 '번' 세로 정렬 */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top .steel-gallery-total-count-pc{
        left:0 !important;
    }
}


/* ============================================================
   steel-gallery-25 : PC 리스트 전체 건수 문자 기준 정렬
   - '전체'의 '체' 중심과 '번호'의 '번' 중심을 JS가 실제 렌더링 좌표로 맞춤
   - 기존 left 오프셋은 제거하고 transform만 동적으로 사용
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top .steel-gallery-total-count-pc{
        position:relative !important;
        left:0 !important;
    }
    #kboard-steel-gallery-list .steel-count-anchor,
    #kboard-steel-gallery-list .steel-number-anchor{
        display:inline !important;
        margin:0 !important;
        padding:0 !important;
    }
}


/* ============================================================
   steel-gallery-28 : PC 전체 건수 = steel-basic 그대로 복사
   대상: 일반 리스트 + 뷰 하단에 불러오는 리스트
   모바일은 기존 상태 유지
   ============================================================ */
@media screen and (min-width:701px){
    /* steel-basic .steel-basic-list-top과 동일한 배치 원칙 */
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top{
        display:flex !important;
        align-items:center !important;
        justify-content:space-between !important;
        min-height:40px !important;
        margin:10px 0 18px !important;
        width:100% !important;
        box-sizing:border-box !important;
        padding-left:0 !important;
        padding-right:0 !important;
    }

    /* steel-basic .steel-basic-total의 값을 그대로 적용 */
    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top > .steel-gallery-total-count-pc{
        display:inline-flex !important;
        align-items:center !important;
        justify-content:flex-start !important;
        position:static !important;
        float:none !important;
        left:auto !important;
        right:auto !important;
        top:auto !important;
        bottom:auto !important;
        transform:none !important;
        flex:0 0 auto !important;
        width:auto !important;
        min-width:0 !important;
        min-height:36px !important;
        height:auto !important;
        margin:0 !important;
        padding:0 12px !important;
        border:0 !important;
        border-radius:5px !important;
        background:#d4d4d4 !important;
        color:#4e546f !important;
        font-size:15px !important;
        font-weight:400 !important;
        line-height:normal !important;
        letter-spacing:normal !important;
        word-spacing:normal !important;
        text-align:left !important;
        white-space:nowrap !important;
        box-sizing:border-box !important;
    }

    #kboard-steel-gallery-list > .steel-gallery-new-write-control-top > .steel-gallery-new-write-button{
        margin-left:auto !important;
    }
}

/* ============================================================
   steel-gallery-29 : PC 뷰 하단 리스트 전체건수 문자 기준 정렬
   - 뷰 화면에서만 '전체'의 '체' 중심과 '번호'의 '번' 중심을 일치
   - 일반 리스트 화면은 변경하지 않음
   ============================================================ */
@media screen and (min-width:701px){
    #steel-gallery-mobile-view-list .steel-view-count-anchor,
    #steel-gallery-mobile-view-list .steel-number-anchor{
        display:inline !important;
        margin:0 !important;
        padding:0 !important;
    }
}

/* ============================================================
   steel-gallery-30 : PC 리스트 + 뷰 전체건수 문자 기준 정렬
   - 일반 리스트: '전체'의 '체' 중심 = '번호'의 '번' 중심
   - 뷰 하단 리스트: 같은 기준 유지
   - 모바일 변경 없음
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-steel-gallery-list .steel-list-count-anchor,
    #kboard-steel-gallery-list .steel-number-anchor,
    #steel-gallery-mobile-view-list .steel-view-count-anchor,
    #steel-gallery-mobile-view-list .steel-number-anchor{
        display:inline !important;
        margin:0 !important;
        padding:0 !important;
    }
}


/* ============================================================
   steel-gallery-31 : 제목 입력 폭 50% + 실시간 글자수 표시
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-default-editor .steel-gallery-title-input-wrap{
        width:50% !important;
        max-width:50% !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
    }
    #kboard-default-editor .steel-gallery-title-input-wrap .steel-gallery-auto-grow-title{
        width:100% !important;
        max-width:100% !important;
        box-sizing:border-box !important;
    }
}
#kboard-default-editor .steel-gallery-title-count-row{
    display:flex !important;
    justify-content:flex-end !important;
    align-items:baseline !important;
    gap:6px !important;
    width:100% !important;
    margin:4px 0 0 0 !important;
    padding:0 !important;
    box-sizing:border-box !important;
    text-align:right !important;
    line-height:1.25 !important;
}
#kboard-default-editor .steel-gallery-title-count-guide{
    font-size:12px !important;
    font-weight:400 !important;
    color:#777 !important;
}
#kboard-default-editor #steel-gallery-title-count{
    font-size:15px !important;
    font-weight:500 !important;
    color:#555 !important;
}
@media screen and (max-width:700px){
    #kboard-default-editor .steel-gallery-title-input-wrap{
        width:100% !important;
        max-width:100% !important;
    }
    #kboard-default-editor .steel-gallery-title-count-guide{
        font-size:11px !important;
    }
    #kboard-default-editor #steel-gallery-title-count{
        font-size:14px !important;
    }
}



/* steel-image-12 editor attachment layout: old familiar file/description rows */
#kboard-thumbnail-editor .steel-image-file-row,
#kboard-thumbnail-editor .steel-image-alt-row{
    display:flex;
    align-items:stretch;
    width:100%;
    height:38px;
    margin:0;
    padding:0;
    border:1px solid #d5d5d5;
    background:#fff;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-file-row{
    margin-top:10px;
}
#kboard-thumbnail-editor .steel-image-alt-row{
    margin-top:7px;
}
#kboard-thumbnail-editor .steel-image-file-icon{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 38px;
    width:38px;
    height:36px;
    margin:0;
    padding:0;
    border-right:1px solid #dedede;
    background:#f2f2f2;
    color:#888;
    font-size:16px;
    line-height:36px;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-file-value{
    display:flex;
    align-items:center;
    flex:1 1 auto;
    min-width:0;
    height:36px;
    margin:0;
    padding:0 10px;
    background:#fff;
    box-sizing:border-box;
    overflow:hidden;
}
#kboard-thumbnail-editor .steel-image-file-value input[type="file"]{
    display:block;
    width:auto;
    max-width:100%;
    height:auto;
    min-height:0;
    margin:0;
    padding:0;
    border:0;
    outline:0;
    background:transparent;
    font-size:14px;
    line-height:normal;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-current-file{
    flex:0 0 auto;
    margin:0 10px 0 0;
    padding:0;
    white-space:nowrap;
    font-size:13px;
    line-height:36px;
}
#kboard-thumbnail-editor .steel-image-alt-row input[type="text"]{
    display:block;
    width:100%;
    height:36px;
    min-height:36px;
    margin:0;
    padding:0 8px;
    border:0;
    outline:0;
    background:#fff;
    color:#555;
    font-size:14px;
    line-height:36px;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-alt-row input[type="text"]::placeholder{
    color:#999;
    opacity:1;
}
@media screen and (max-width:700px){
    #kboard-thumbnail-editor .steel-image-file-row,
    #kboard-thumbnail-editor .steel-image-alt-row{
        height:38px;
    }
    #kboard-thumbnail-editor .steel-image-file-icon{
        flex-basis:38px;
        width:38px;
        height:36px;
    }
    #kboard-thumbnail-editor .steel-image-file-value{
        height:36px;
    }
    #kboard-thumbnail-editor .steel-image-alt-row input[type="text"]{
        height:36px;
        min-height:36px;
        font-size:13px;
    }
}

/* ============================================================
   steel-image-13 : familiar file selector + auto-growing editor fields
   ============================================================ */
#kboard-thumbnail-editor .steel-image-file-value{
    position:relative;
    gap:0;
    padding:0 8px 0 10px;
    overflow:hidden;
}
#kboard-thumbnail-editor .steel-image-real-file{
    position:absolute !important;
    width:1px !important;
    height:1px !important;
    padding:0 !important;
    margin:-1px !important;
    overflow:hidden !important;
    clip:rect(0,0,0,0) !important;
    white-space:nowrap !important;
    border:0 !important;
    opacity:0 !important;
}
#kboard-thumbnail-editor .steel-image-file-button{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    flex:0 0 auto;
    height:26px;
    margin:0 8px 0 2px;
    padding:0 11px;
    border:1px solid #888;
    border-radius:2px;
    background:#f7f7f7;
    color:#222;
    font-size:13px;
    font-weight:400;
    line-height:24px;
    cursor:pointer;
    box-sizing:border-box;
    white-space:nowrap;
}
#kboard-thumbnail-editor .steel-image-file-button:hover{
    background:#eee;
}
#kboard-thumbnail-editor .steel-image-selected-file{
    display:block;
    min-width:0;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#555;
    font-size:13px;
    line-height:36px;
}
#kboard-thumbnail-editor .steel-image-current-file{
    display:flex;
    align-items:center;
    gap:8px;
    flex:0 1 auto;
    min-width:0;
    margin:0 0 0 auto;
    padding-left:14px;
    line-height:36px;
    white-space:nowrap;
}
#kboard-thumbnail-editor .steel-image-current-file-name{
    display:block;
    max-width:420px;
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
    color:#777;
    font-size:12px;
}
#kboard-thumbnail-editor .steel-image-delete-file{
    flex:0 0 auto;
    color:#777;
    font-size:12px;
    text-decoration:none;
}
#kboard-thumbnail-editor .steel-image-delete-file:hover{
    text-decoration:underline;
}

/* 제목/메타태그: 제목 입력란 정도의 낮은 높이에서 내용에 따라 자동 확장 */
#kboard-thumbnail-editor textarea.steel-image-title-input,
#kboard-thumbnail-editor textarea.steel-image-meta-input{
    display:block;
    width:100% !important;
    min-height:38px !important;
    height:38px;
    max-height:none !important;
    margin:0;
    padding:8px 10px;
    border:1px solid var(--kboard-border);
    overflow:hidden;
    resize:none;
    line-height:20px;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-meta-row textarea{
    min-height:38px !important;
}

/* 본문: 이전 높이의 절반(약 200px)에서 시작하고 입력량만큼 자동 확장 */
#kboard-thumbnail-editor .kboard-content textarea,
#kboard-thumbnail-editor #kboard_content{
    min-height:200px !important;
    height:200px;
    overflow:hidden;
    resize:none;
    box-sizing:border-box;
}

@media screen and (max-width:700px){
    #kboard-thumbnail-editor .steel-image-current-file-name{max-width:180px;}
    #kboard-thumbnail-editor .steel-image-file-button{padding:0 8px;margin-right:6px;}
}

/* ============================================================
   steel-image-14 : simplified editor + thumbnail row
   ============================================================ */
#kboard-thumbnail-editor .steel-image-thumbnail-gap{
    display:block;
    width:100%;
    height:38px;
    margin:0;
    padding:0;
}
#kboard-thumbnail-editor .steel-image-thumbnail-row{
    display:flex;
    align-items:stretch;
    width:100%;
    height:38px;
    margin:0;
    padding:0;
    border:1px solid #d5d5d5;
    background:#fff;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-thumbnail-label{
    display:flex;
    align-items:center;
    justify-content:center;
    flex:0 0 72px;
    width:72px;
    height:36px;
    margin:0;
    padding:0 6px;
    border-right:1px solid #dedede;
    background:#f2f2f2;
    color:#777;
    font-size:13px;
    line-height:36px;
    box-sizing:border-box;
    white-space:nowrap;
}
#kboard-thumbnail-editor .steel-image-thumbnail-value{
    height:36px;
}
@media screen and (max-width:700px){
    #kboard-thumbnail-editor .steel-image-thumbnail-gap{height:38px;}
    #kboard-thumbnail-editor .steel-image-thumbnail-row{height:38px;}
    #kboard-thumbnail-editor .steel-image-thumbnail-label{
        flex-basis:68px;
        width:68px;
        height:36px;
        font-size:12px;
    }
}

/* ============================================================
   steel-image-15 : PC title/meta 85% + counter 15%, unified controls
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-thumbnail-editor .steel-image-editor-split-row{
        display:flex;
        align-items:stretch;
        width:100%;
        min-height:38px;
        margin:0 0 10px 0;
        padding:0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-editor-input-cell{
        flex:0 0 85%;
        width:85%;
        min-width:0;
        margin:0;
        padding:0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-editor-count-cell{
        display:flex;
        align-items:center;
        justify-content:center;
        flex:0 0 15%;
        width:15%;
        min-height:38px;
        margin:0;
        padding:0 8px;
        border:1px solid #d5d5d5;
        border-left:0;
        background:#f5f5f5;
        color:#777;
        box-sizing:border-box;
        white-space:nowrap;
    }
    #kboard-thumbnail-editor .steel-image-title-input,
    #kboard-thumbnail-editor .steel-image-meta-input{
        display:block;
        width:100% !important;
        min-height:38px !important;
        height:38px;
        margin:0;
        padding:8px 10px;
        border:1px solid #d5d5d5 !important;
        background:#fff;
        overflow:hidden;
        resize:none;
        line-height:20px;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-count-guide{
        font-size:13px;
        font-weight:400;
        color:#777;
        line-height:1;
    }
    #kboard-thumbnail-editor .steel-image-live-count{
        font-size:17px;
        font-weight:600;
        color:#555;
        line-height:1;
    }
}
#kboard-thumbnail-editor .steel-image-editor-controls{
    display:flex;
    align-items:center;
    justify-content:flex-end;
    gap:5px;
    width:100%;
    margin:30px 0 0 0;
    padding:0;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-editor-controls .kboard-thumbnail-button-small{
    margin:0;
}

/* steel-image-16 : restore title/meta labels and original compact starting height */
#kboard-thumbnail-editor .steel-image-field-label{
    margin:0 0 7px 0;
    padding:0;
    font-size:14px;
    font-weight:600;
    line-height:1.4;
    color:#333;
}
#kboard-thumbnail-editor .steel-image-title-row,
#kboard-thumbnail-editor .steel-image-meta-row{
    min-height:38px !important;
}
#kboard-thumbnail-editor textarea.steel-image-title-input,
#kboard-thumbnail-editor textarea.steel-image-meta-input{
    min-height:38px !important;
    height:38px;
}
@media screen and (min-width:701px){
    #kboard-thumbnail-editor .steel-image-field-label{margin-top:14px;}
    #kboard-thumbnail-editor .steel-image-field-label:first-of-type{margin-top:0;}
}


/* steel-image-17 : title compact + meta initial auto-grow */
#kboard-thumbnail-editor .steel-image-title-row,
#kboard-thumbnail-editor .steel-image-meta-row{
    min-height:38px !important;
    height:auto !important;
}
#kboard-thumbnail-editor .steel-image-title-row .steel-image-editor-input-cell,
#kboard-thumbnail-editor .steel-image-meta-row .steel-image-editor-input-cell{
    min-height:38px !important;
    height:auto !important;
}
#kboard-thumbnail-editor textarea.steel-image-title-input,
#kboard-thumbnail-editor textarea.steel-image-meta-input{
    min-height:38px !important;
    height:38px;
    padding:8px 10px !important;
    line-height:20px !important;
    overflow:hidden !important;
    resize:none !important;
}
#kboard-thumbnail-editor .steel-image-editor-count-cell{
    min-height:38px !important;
}

/* ============================================================
   steel-image-21 : attachment module / height-based square preview / drag order
   ============================================================ */
@media screen and (min-width:701px){
    #kboard-thumbnail-editor .steel-image-attach-group{
        display:grid;
        grid-template-columns:76px minmax(0, 1fr);
        align-items:stretch;
        width:100%;
        min-height:76px;
        margin:0 0 14px 0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-file-preview{
        position:relative;
        width:76px;
        height:76px;
        min-width:76px;
        min-height:76px;
        display:flex;
        align-items:center;
        justify-content:center;
        padding:0;
        border:0;
        background:#f7f7f7;
        overflow:hidden;
        box-sizing:border-box;
        cursor:grab;
        user-select:none;
        line-height:0;
        background-repeat:no-repeat;
        background-position:center center;
        background-size:cover;
    }
    #kboard-thumbnail-editor .steel-image-file-preview:active{
        cursor:grabbing;
    }
    #kboard-thumbnail-editor .steel-image-file-preview img,
    #kboard-thumbnail-editor .steel-image-file-preview video{
        position:absolute;
        inset:0;
        display:block;
        width:76px;
        height:76px;
        object-fit:cover;
        object-position:center center;
        margin:0;
        padding:0;
        border:0;
        background:transparent;
    }
    #kboard-thumbnail-editor .steel-image-file-fields{
        width:100%;
        min-width:0;
        min-height:76px;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-file-row,
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-alt-row{
        width:100%;
        min-height:38px;
        height:38px;
        margin:0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-attach-group.is-dragging{
        opacity:.45;
    }
}
#kboard-thumbnail-editor .steel-image-preview-empty{
    color:#aaa;
    font-size:12px;
    line-height:1.2;
    text-align:center;
}
#kboard-thumbnail-editor .steel-image-current-file{
    gap:0;
}
#kboard-thumbnail-editor .steel-image-current-file-name{
    color:#555;
    text-decoration:none;
    cursor:pointer;
}
#kboard-thumbnail-editor .steel-image-current-file-name:hover{
    text-decoration:underline;
}
#kboard-thumbnail-editor .steel-image-current-file-size{
    flex:0 0 auto;
    color:#888;
    font-size:12px;
    white-space:nowrap;
}
#kboard-thumbnail-editor .steel-image-delete-file.is-deleting{
    pointer-events:none;
    opacity:.65;
}



/* ============================================================
   steel-image-32 : editor floating save/list + reliable drag handle
   ============================================================ */
@media screen and (min-width:769px){
    #kboard-thumbnail-editor .steel-image-floating-editor-controls{
        position:fixed;
        top:calc(120px + 2cm);
        right:0.5vw;
        z-index:9999;
        display:flex;
        flex-direction:column;
        gap:5px;
        margin:0;
        padding:0;
    }
    #kboard-thumbnail-editor .steel-image-floating-button{
        display:inline-flex;
        align-items:center;
        justify-content:center;
        height:38px;
        padding:0 15px;
        border:1px solid #444;
        border-radius:3px;
        background:#444;
        color:#fff;
        font-size:14px;
        font-weight:400;
        line-height:38px;
        text-decoration:none;
        white-space:nowrap;
        box-sizing:border-box;
        cursor:pointer;
        font-family:inherit;
    }
    #kboard-thumbnail-editor .steel-image-floating-button:hover,
    #kboard-thumbnail-editor .steel-image-floating-button:focus{
        background:#444;
        border-color:#444;
        color:#fff;
        text-decoration:none;
    }
}
#kboard-thumbnail-editor .steel-image-file-preview[draggable="true"]{
    cursor:grab;
}
#kboard-thumbnail-editor .steel-image-file-preview[draggable="true"]:active{
    cursor:grabbing;
}
#kboard-thumbnail-editor .steel-image-attach-group.is-dragging{
    opacity:.5;
}


/* ============================================================
   steel-image-33 : PC media spacing + editor button colors + mobile attachment modules
   ============================================================ */
@media screen and (min-width:769px){
    /* PC 뷰: 첨부 파일 사이 간격 40px -> 80px */
    #steel-gallery-view .sgv-media-list{
        gap:80px;
    }

    /* PC 글쓰기/수정: 뷰 화면의 따라다니는 버튼과 같은 회색 */
    #kboard-thumbnail-editor .steel-image-floating-button{
        background:#d3d3d3;
        border-color:#d3d3d3;
        color:#333;
    }
    #kboard-thumbnail-editor .steel-image-floating-button:hover,
    #kboard-thumbnail-editor .steel-image-floating-button:focus{
        background:#c7c7c7;
        border-color:#c7c7c7;
        color:#333;
    }
}

@media screen and (max-width:768px){
    /* PC 전용 따라다니는 저장/목록 버튼은 모바일에서 완전히 숨김 */
    #kboard-thumbnail-editor .steel-image-floating-editor-controls{
        display:none;
    }

    /* 모바일 첨부파일도 PC와 동일한 76px 미리보기 + 파일/ALT 2단 모듈 */
    #kboard-thumbnail-editor .steel-image-attach-group{
        display:grid;
        grid-template-columns:76px minmax(0, 1fr);
        align-items:stretch;
        width:100%;
        min-height:76px;
        margin:0 0 14px 0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-file-preview{
        position:relative;
        display:flex;
        align-items:center;
        justify-content:center;
        width:76px;
        height:76px;
        min-width:76px;
        min-height:76px;
        margin:0;
        padding:0;
        border:0;
        background:#f7f7f7;
        background-repeat:no-repeat;
        background-position:center center;
        background-size:cover;
        overflow:hidden;
        box-sizing:border-box;
        cursor:grab;
        user-select:none;
        -webkit-user-select:none;
        touch-action:none;
        line-height:0;
    }
    #kboard-thumbnail-editor .steel-image-file-preview img,
    #kboard-thumbnail-editor .steel-image-file-preview video{
        position:absolute;
        inset:0;
        display:block;
        width:76px;
        height:76px;
        margin:0;
        padding:0;
        border:0;
        object-fit:cover;
        object-position:center center;
        background:transparent;
    }
    #kboard-thumbnail-editor .steel-image-file-fields{
        width:100%;
        min-width:0;
        min-height:76px;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-file-row,
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-alt-row{
        width:100%;
        height:38px;
        min-height:38px;
        margin:0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-attach-group.is-dragging,
    #kboard-thumbnail-editor .steel-image-attach-group.is-touch-dragging{
        opacity:.5;
    }

    /* 하단 이전/목록/저장 세 버튼 색상 통일 */
    #kboard-thumbnail-editor .steel-image-editor-controls > .kboard-thumbnail-button-small{
        background:#444 !important;
        background-color:#444 !important;
        border-color:#444 !important;
        color:#fff !important;
    }
    #kboard-thumbnail-editor .steel-image-editor-controls > .kboard-thumbnail-button-small:hover,
    #kboard-thumbnail-editor .steel-image-editor-controls > .kboard-thumbnail-button-small:focus,
    #kboard-thumbnail-editor .steel-image-editor-controls > .kboard-thumbnail-button-small:active{
        background:#444 !important;
        background-color:#444 !important;
        border-color:#444 !important;
        color:#fff !important;
        transform:none;
    }
}

/* ============================================================
   steel-image-35 : mobile editor counters/autogrow/module borders + compact list
   ============================================================ */
#kboard-steel-gallery-list .steel-gallery-excerpt-mobile{
    display:none;
}

@media screen and (max-width:768px){
    /* 제목/메타 글자수 안내를 입력란 우측에 고정 */
    #kboard-thumbnail-editor .steel-image-editor-split-row{
        display:flex;
        align-items:stretch;
        width:100%;
        min-height:38px;
        height:auto;
        margin:0 0 10px 0;
        padding:0;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-editor-input-cell{
        flex:1 1 auto;
        width:auto;
        min-width:0;
        height:auto;
        box-sizing:border-box;
    }
    #kboard-thumbnail-editor .steel-image-editor-count-cell{
        display:flex;
        align-items:center;
        justify-content:flex-end;
        flex:0 0 104px;
        width:104px;
        min-height:38px;
        height:auto;
        margin:0;
        padding:0 8px;
        border:1px solid #c5c5c5;
        border-left:0;
        background:#f5f5f5;
        color:#777;
        box-sizing:border-box;
        white-space:nowrap;
    }
    #kboard-thumbnail-editor .steel-image-count-guide{
        font-size:12px;
        font-weight:400;
        color:#777;
        line-height:1;
    }
    #kboard-thumbnail-editor .steel-image-live-count{
        font-size:16px;
        font-weight:700;
        color:#444;
        line-height:1;
    }

    /* 모바일에서도 PC와 동일하게 내용 길이에 따라 입력칸 자동 확장 */
    #kboard-thumbnail-editor textarea.steel-image-title-input,
    #kboard-thumbnail-editor textarea.steel-image-meta-input,
    #kboard-thumbnail-editor #kboard_content,
    #kboard-thumbnail-editor .kboard-content textarea{
        max-height:none;
        overflow:hidden;
        resize:none;
        box-sizing:border-box;
    }

    /* 첨부파일/ALT/썸네일 모듈 테두리를 한 단계 더 진하게 */
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-file-row,
    #kboard-thumbnail-editor .steel-image-attach-group .steel-image-alt-row,
    #kboard-thumbnail-editor .steel-image-thumbnail-row{
        border-color:#bdbdbd;
    }
    #kboard-thumbnail-editor .steel-image-file-icon,
    #kboard-thumbnail-editor .steel-image-thumbnail-label{
        border-right-color:#bdbdbd;
    }
    #kboard-thumbnail-editor .steel-image-file-preview{
        border:1px solid #bdbdbd;
        border-right:0;
    }

    /* 모바일 리스트: 제목 한 단계 축소 + 본문 설명은 PC의 절반(100자) */
    #kboard-steel-gallery-list .steel-gallery-title{
        font-size:12px;
        font-weight:500;
    }
    #kboard-steel-gallery-list .steel-gallery-title-pc{display:none;}
    #kboard-steel-gallery-list .steel-gallery-title-mobile{display:inline;}
    #kboard-steel-gallery-list .steel-gallery-excerpt-pc{
        display:none;
    }
    #kboard-steel-gallery-list .steel-gallery-excerpt-mobile{
        display:inline;
    }
}

/* steel-image-43 : PC 리스트를 기존 sssart.net 갤러리형 비율에 가깝게 정리
 * - 원본 이미지 가로/세로 비율 유지
 * - 고정 썸네일 칸 안에서 세로 사진은 세로형, 가로 사진은 가로형으로 자연 출력
 * - 사이드바 다음의 목록 시작 여백과 번호/사진/글 사이 간격 정리
 * - 모바일은 기존 상태 유지
 */
@media screen and (min-width: 769px){
    #kboard-steel-gallery-list .steel-gallery-list{
        width:100%;
    }

    #kboard-steel-gallery-list .steel-gallery-row{
        padding:70px 5px 70px 35px;
        align-items:center;
    }

    #kboard-steel-gallery-list .steel-gallery-number{
        flex:0 0 48px;
        padding-top:0;
        align-self:center;
    }

    #kboard-steel-gallery-list .steel-gallery-body{
        min-height:287px;
        align-items:center;
    }

    /* PC 썸네일: 모바일과 같은 4:3 / 3:4 고정 프레임 방식 */
    #kboard-steel-gallery-list .steel-gallery-thumb{
        flex:0 0 240px;
        width:240px;
        height:240px;
        margin-left:0;
        display:flex;
        align-items:center;
        justify-content:center;
        overflow:hidden;
        background:transparent;
    }

    #kboard-steel-gallery-list .steel-gallery-thumb picture{
        width:240px;
        height:240px;
        display:flex;
        align-items:center;
        justify-content:center;
    }

    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-landscape img{
        display:block;
        width:240px;
        height:180px;
        min-width:240px;
        max-width:240px;
        min-height:180px;
        max-height:180px;
        object-fit:cover;
        object-position:center center;
        margin:0;
        border:0;
    }

    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-portrait img{
        display:block;
        width:180px;
        height:240px;
        min-width:180px;
        max-width:180px;
        min-height:240px;
        max-height:240px;
        object-fit:cover;
        object-position:center top;
        margin:0;
        border:0;
    }

    #kboard-steel-gallery-list .steel-gallery-noimage{
        width:240px;
        height:240px;
    }

    #kboard-steel-gallery-list .steel-gallery-copy{
        min-height:287px;
        padding-left:34px;
        justify-content:center;
    }

    #kboard-steel-gallery-list .steel-gallery-title{
        line-height:1.55;
    }

    #kboard-steel-gallery-list .steel-gallery-excerpt{
        margin-top:22px;
        line-height:1.7;
    }
}

/* steel-image-45 : 스킨 전체를 현재 위치에서 1.5% 왼쪽으로 이동
 * 폭/내부 간격은 바꾸지 않고 목록·뷰·글쓰기의 최상위 컨테이너 위치만 이동합니다.
 * transform을 사용하지 않아 fixed(따라다니는) 버튼 동작에 영향을 주지 않습니다.
 */
#kboard-steel-gallery-list,
#kboard-document,
#kboard-thumbnail-editor {
    position: relative;
    left: -1.5%;
}

/* ============================================================
   steel-image-64
   뷰 하단 리스트: 실제 steel-gallery 스킨의 정상 동작 구조를 그대로 적용
   - 리스트를 document 밖으로 강제 이동하지 않음
   - 모바일 VIEW 하단은 steel-gallery-63 배치와 동일
   - PC는 document.php의 steel-gallery 기본 100% 구조를 그대로 사용
   ============================================================ */
@media screen and (max-width:700px){
    #steel-gallery-mobile-view-list{
        width:100vw !important;
        max-width:100vw !important;
        margin-left:calc((100% - 100vw) / 2) !important;
        margin-right:calc((100% - 100vw) / 2) !important;
        padding:0 !important;
        box-sizing:border-box !important;
        overflow:visible !important;
        position:relative !important;
        left:auto !important;
        transform:none !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list{
        width:95vw !important;
        max-width:95vw !important;
        margin-left:auto !important;
        margin-right:auto !important;
        padding:0 !important;
        box-sizing:border-box !important;
        position:relative !important;
        left:auto !important;
        transform:none !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-list,
    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-head{
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
        box-sizing:border-box !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-row{
        display:flex !important;
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
        padding:36px 4px !important;
        box-sizing:border-box !important;
        align-items:flex-start !important;
        position:relative !important;
        left:auto !important;
        transform:none !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-row > .steel-gallery-number,
    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-row > .steel-gallery-body{
        position:relative !important;
        left:-10px !important;
        transform:none !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-number{
        display:flex !important;
        align-items:center !important;
        justify-content:center !important;
        align-self:flex-start !important;
        flex:0 0 32px !important;
        width:32px !important;
        min-width:32px !important;
        max-width:32px !important;
        height:110px !important;
        min-height:110px !important;
        margin:0 !important;
        padding:0 !important;
        line-height:1 !important;
        box-sizing:border-box !important;
        top:auto !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-thumb{
        flex:0 0 110px !important;
        width:110px !important;
        min-width:110px !important;
        max-width:110px !important;
        height:110px !important;
        min-height:110px !important;
        max-height:110px !important;
        margin:0 !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-thumb img,
    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-noimage{
        width:110px !important;
        min-width:110px !important;
        max-width:110px !important;
        height:110px !important;
        min-height:110px !important;
        max-height:110px !important;
        object-fit:cover !important;
    }

    #steel-gallery-mobile-view-list #kboard-steel-gallery-list .steel-gallery-copy{
        position:relative !important;
        left:10px !important;
        transform:none !important;
        flex:1 1 0 !important;
        width:auto !important;
        min-width:0 !important;
        max-width:none !important;
    }
}

@media screen and (min-width:701px){
    #steel-gallery-view #steel-gallery-mobile-view-list{
        display:block !important;
        width:100% !important;
        max-width:100% !important;
        margin-left:0 !important;
        margin-right:0 !important;
        padding-left:0 !important;
        padding-right:0 !important;
        box-sizing:border-box !important;
        position:static !important;
        transform:none !important;
    }
    #steel-gallery-view #steel-gallery-mobile-view-list > #kboard-steel-gallery-list{
        width:100% !important;
        max-width:100% !important;
        margin:0 !important;
        padding:0 !important;
        box-sizing:border-box !important;
        position:static !important;
        transform:none !important;
    }
}

/* ============================================================
   모바일 일반 리스트 썸네일 고정 프레임
   - 가로형: 140 x 105px (좌우 중앙 기준 잘라냄)
   - 세로형: 105 x 140px (위쪽 기준, 아래쪽 잘라냄)
   - 원본 비율 유지/110x110 규칙 사용 안 함
   - 뷰 하단 리스트에는 적용하지 않음
   ============================================================ */
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-landscape{
        flex:0 0 140px;
        width:140px;
        min-width:140px;
        max-width:140px;
        height:140px;
        min-height:140px;
        max-height:140px;
        margin:0;
        overflow:hidden;
        background:transparent;
        display:flex;
        align-items:center;
        justify-content:center;
            position:relative;
        left:10px;
}
    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-portrait{
        flex:0 0 140px;
        width:140px;
        min-width:140px;
        max-width:140px;
        height:140px;
        min-height:140px;
        max-height:140px;
        margin:0;
        overflow:hidden;
        background:transparent;
        display:flex;
        align-items:center;
        justify-content:center;
            position:relative;
        left:10px;
}
    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-landscape img{
        display:block;
        width:140px;
        min-width:140px;
        max-width:140px;
        height:105px;
        min-height:105px;
        max-height:105px;
        margin:0;
        padding:0;
        object-fit:cover;
        object-position:center center;
        border:0;
    }
    #kboard-steel-gallery-list .steel-gallery-thumb.steel-thumb-portrait img{
        display:block;
        width:105px;
        min-width:105px;
        max-width:105px;
        height:140px;
        min-height:140px;
        max-height:140px;
        margin:0;
        padding:0;
        object-fit:cover;
        object-position:center top;
        border:0;
    }
}


/* steel-gallery-72 : requested spacing adjustments */
@media screen and (min-width:769px){
    #steel-gallery-view .sgv-body-text-after-media{
        margin-top:120px;
    }
}

/* steel-gallery-81 : attachment package layout */
#kboard-thumbnail-editor .steel-image-attach-group{
    display:grid;
    grid-template-columns:160px minmax(0,1fr);
    column-gap:12px;
    row-gap:0;
    width:100%;
    margin:0 0 50px 0;
    padding:0;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-file-preview{
    grid-column:1;
    grid-row:1 / span 2;
}
#kboard-thumbnail-editor .steel-image-file-fields{
    grid-column:2;
    grid-row:1;
    min-width:0;
}
#kboard-thumbnail-editor .steel-image-attach-text-row{
    grid-column:1 / -1;
    grid-row:2;
    width:100%;
    min-height:38px;
    height:auto;
    margin:0;
    padding:0;
    text-align:left;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-alt-row{
    min-height:38px;
    height:auto;
}
#kboard-thumbnail-editor textarea.steel-image-alt-input,
#kboard-thumbnail-editor textarea.steel-image-attach-text{
    display:block;
    width:100%;
    height:38px;
    min-height:38px;
    margin:0;
    padding:8px 10px;
    border:1px solid #aaa;
    border-radius:0;
    background:#fff;
    color:#222;
    font:inherit;
    line-height:20px;
    text-align:left;
    resize:none;
    overflow:hidden;
    box-sizing:border-box;
}
#kboard-thumbnail-editor textarea.steel-image-alt-input{border:0;}
@media screen and (max-width:768px){
    #kboard-thumbnail-editor .steel-image-attach-group{margin-bottom:50px;}
}


/* steel-gallery-83 : package spacing by content (content 30px / empty 80px) */
#kboard-thumbnail-editor .steel-image-attach-group.steel-image-has-content{margin-bottom:30px;}
#kboard-thumbnail-editor .steel-image-attach-group.steel-image-no-content{margin-bottom:80px;}
@media screen and (max-width:768px){
    #kboard-thumbnail-editor .steel-image-attach-group.steel-image-has-content{margin-bottom:30px;}
    #kboard-thumbnail-editor .steel-image-attach-group.steel-image-no-content{margin-bottom:80px;}
}

/* steel-gallery-85 : one module initially + add one module at a time */
#kboard-thumbnail-editor .steel-image-attach-group.steel-image-module-hidden{display:none;}
#kboard-thumbnail-editor .steel-image-module-add-row{
    display:flex;
    align-items:center;
    gap:10px;
    width:100%;
    margin:-45px 0 50px;
    padding:0;
    box-sizing:border-box;
}
#kboard-thumbnail-editor .steel-image-module-add-button{
    min-height:38px;
    padding:0 16px;
    border:1px solid #aaa;
    border-radius:3px;
    background:#fff;
    color:#333;
    font-size:14px;
    line-height:36px;
    cursor:pointer;
}
#kboard-thumbnail-editor .steel-image-module-add-button:hover{background:#f5f5f5;}
#kboard-thumbnail-editor .steel-image-module-limit{font-size:13px;color:#777;}
@media screen and (max-width:768px){
    #kboard-thumbnail-editor .steel-image-module-add-row{margin:-45px 0 50px;}
    #kboard-thumbnail-editor .steel-image-module-add-button{min-height:36px;padding:0 12px;font-size:13px;line-height:34px;}
}

/* =========================================================
   이 화면에 기존부터 있던 화면 전용 CSS
   - 외부 CSS로 분리하지 않고 이 PHP 안에서만 관리
   ========================================================= */

#kboard-steel-gallery-list .steel-gallery-excerpt-mobile{display:none;}
#kboard-steel-gallery-list .steel-gallery-title-mobile{display:none;}
#kboard-steel-gallery-list .steel-gallery-title-pc{display:inline;}
@media screen and (max-width:768px){
  #kboard-steel-gallery-list .steel-gallery-title{font-size:12px;font-weight:500;}
  #kboard-steel-gallery-list .steel-gallery-title-pc{display:none;}
  #kboard-steel-gallery-list .steel-gallery-title-mobile{display:inline;}
  #kboard-steel-gallery-list .steel-gallery-excerpt-pc{display:none;}
  #kboard-steel-gallery-list .steel-gallery-excerpt-mobile{display:inline;}
}

/* steel-image-54: uploaded steel-gallery pagination, applied directly in list markup */
#kboard-steel-gallery-list .kboard-pagination{
    margin:55px 0 10px;
    padding:0;
    text-align:center;
    clear:both;
}
#kboard-steel-gallery-list .kboard-pagination ul,
#kboard-steel-gallery-list .kboard-pagination .kboard-pagination-pages{
    display:inline-flex;
    flex-direction:row;
    flex-wrap:wrap;
    align-items:center;
    justify-content:center;
    gap:4px;
    width:auto;
    margin:0;
    padding:0;
    list-style:none;
}
#kboard-steel-gallery-list .kboard-pagination li{
    display:block;
    float:none;
    width:auto;
    height:auto;
    margin:0;
    padding:0;
    list-style:none;
}
#kboard-steel-gallery-list .kboard-pagination li a,
#kboard-steel-gallery-list .kboard-pagination li span{
    display:inline-flex;
    align-items:center;
    justify-content:center;
    min-width:25px;
    width:auto;
    height:25px;
    min-height:25px;
    margin:0;
    padding:0 3px;
    box-sizing:border-box;
    font-size:18px;
    line-height:25px;
    font-weight:400;
    border:1px solid #ddd;
    border-radius:0;
    background:#fff;
    color:#666;
    text-decoration:none;
    white-space:nowrap;
}
#kboard-steel-gallery-list .kboard-pagination li.active a,
#kboard-steel-gallery-list .kboard-pagination li.active span{
    background:#444;
    border-color:#444;
    color:#fff;
}
#kboard-steel-gallery-list .kboard-pagination li:not(.active) a:hover{
    background:#d4d4d4;
    border-color:#d4d4d4;
    color:#444;
}
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .kboard-pagination{ margin-top:50px; margin-bottom:0; }
    #kboard-steel-gallery-list .kboard-pagination li a,
    #kboard-steel-gallery-list .kboard-pagination li span{
        min-width:22px;
        width:auto;
        height:22px;
        min-height:22px;
        padding:0 2px;
        font-size:16px;
        line-height:22px;
        border-radius:0;
    }
}

@media screen and (min-width:769px){
    #kboard-steel-gallery-list .steel-gallery-row{
        padding-top:20px;
        padding-bottom:20px;
    }
}

/* steel-gallery-61 : 공통 버튼 규격 통일 */
#kboard-steel-gallery-list .steel-gallery-write-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 15px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border-radius:3px !important;
    font-size:14px !important;
    line-height:38px !important;
    text-align:center !important;
    white-space:nowrap !important;
}
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-write-button{
        height:36px !important;
        min-height:36px !important;
        padding:0 12px !important;
        border-radius:3px !important;
        font-size:13px !important;
        line-height:36px !important;
    }
}

/* steel-gallery-63 FINAL : 리스트 글쓰기 버튼 공통 기준 */
#kboard-steel-gallery-list .steel-gallery-write-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 15px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border:1px solid #a90000 !important;
    border-radius:3px !important;
    background:#b80000 !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:600 !important;
    line-height:38px !important;
    text-align:center !important;
    white-space:nowrap !important;
}
#kboard-steel-gallery-list .steel-gallery-write-button:hover,
#kboard-steel-gallery-list .steel-gallery-write-button:focus{
    background:#970000 !important;
    border-color:#8f0000 !important;
    color:#fff !important;
}
#kboard-steel-gallery-list .steel-gallery-write-control{
    gap:5px !important;
}
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-write-button{
        height:36px !important;
        min-height:36px !important;
        padding:0 12px !important;
        border-radius:3px !important;
        font-size:13px !important;
        line-height:36px !important;
    }
}

/* steel-gallery-64 FINAL : steel-basic 실제 버튼 규격과 동일 */
#kboard-steel-gallery-list .steel-gallery-write-button{
    display:inline-flex !important;
    align-items:center !important;
    justify-content:center !important;
    width:auto !important;
    min-width:0 !important;
    height:38px !important;
    min-height:38px !important;
    padding:0 15px !important;
    margin:0 !important;
    box-sizing:border-box !important;
    border-radius:3px !important;
    background:#b80000 !important;
    border:1px solid #a90000 !important;
    color:#fff !important;
    font-size:14px !important;
    font-weight:400 !important;
    line-height:1 !important;
    text-align:center !important;
    white-space:nowrap !important;
}
#kboard-steel-gallery-list .steel-gallery-write-control{
    display:flex !important;
    justify-content:flex-end !important;
    align-items:center !important;
    gap:5px !important;
    box-sizing:border-box !important;
}
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-write-button{
        height:36px !important;
        min-height:36px !important;
        padding:0 14px !important;
        border-radius:3px !important;
        font-size:13px !important;
        line-height:1 !important;
    }
}

#kboard-steel-gallery-list .steel-gallery-write-button{
    display:inline-flex !important;align-items:center !important;justify-content:center !important;
    width:auto !important;min-width:0 !important;height:38px !important;min-height:38px !important;
    padding:0 15px !important;margin:0 !important;border:1px solid #ff4065 !important;
    border-radius:3px !important;background:#ff4065 !important;color:#fff !important;
    font-size:14px !important;font-weight:400 !important;line-height:1 !important;
    text-decoration:none !important;box-sizing:border-box !important;white-space:nowrap !important;
}
#kboard-steel-gallery-list .steel-gallery-write-control{
    display:flex !important;justify-content:flex-end !important;align-items:center !important;
    width:100% !important;gap:5px !important;box-sizing:border-box !important;
}
@media screen and (max-width:700px){
    #kboard-steel-gallery-list .steel-gallery-write-button{
        height:36px !important;min-height:36px !important;padding:0 14px !important;
        border-radius:3px !important;font-size:13px !important;font-weight:400 !important;line-height:1 !important;
    }
}


/* =========================================================
   1:1 화면 전용 추가 CSS — 이 화면 PHP가 단독 소유
   ========================================================= */

/* [steel-gallery-pagination-press-check] */
/* 페이지 번호를 누르는 즉시 검은 체크 표시를 누른 번호로 이동 */
#kboard-steel-gallery-list .kboard-pagination.pagination-switching li.active span,
#kboard-steel-gallery-list .kboard-pagination.pagination-switching li.active a{
    background:#fff;
    border-color:#ddd;
    color:#666;
}
#kboard-steel-gallery-list .kboard-pagination li.steel-page-pressed a{
    background:#444;
    border-color:#444;
    color:#fff;
}
