/**
 * 게시판 — 공지·FAQ·Q&A 목록 공통 (레거시 filaboard 기반)
 */

.board-page {
	padding-bottom: 3.5rem;
}

.board-container {
	background-color: #fff;
	border-radius: 10px;
}

/* ── Search ── */
.search-container {
	position: relative;
	background-color: #f8f9fa;
	border-radius: 50px;
	padding: 0.3rem;
	display: flex;
	border: 1px solid #dee2e6;
	transition: border-color 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.03);
}

.search-container:focus-within {
	border-color: var(--primary, #0088cc);
	box-shadow: 0 3px 8px rgba(0, 136, 204, 0.1);
}

.search-container .input-group {
	border: none;
	padding: 0;
	margin: 0;
	width: 100%;
	display: flex;
}

.search-container .form-control {
	background-color: transparent;
	border: none;
	box-shadow: none !important;
	padding-left: 1.2rem;
	padding-right: 0.5rem;
	font-size: 0.95rem;
	height: auto;
	flex-grow: 1;
	border-radius: 0;
	min-width: 0;
}

.search-container .btn-search,
.search-container .btn-clear-search {
	background-color: transparent;
	border: none;
	padding: 0.5rem 1rem;
	border-radius: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	box-shadow: none !important;
	color: var(--primary, #0088cc);
	transition: color 0.3s ease;
}

.search-container .btn-clear-search {
	color: #aaa;
	padding: 0.5rem 0.8rem;
	position: absolute;
	right: 50px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 3;
}

.search-container .btn-clear-search:hover {
	color: #777;
}

.search-container .btn-search:hover {
	color: var(--secondary, #e36159);
}

/* ── List header ── */
.board-total-count {
	font-size: 0.9rem;
	color: #6c757d;
	display: flex;
	align-items: center;
	height: 100%;
	gap: 4px;
}

.board-total-count strong {
	color: var(--primary, #0088cc);
}

.board-search-info {
	color: #999;
	font-size: 0.85rem;
}

.board-search-info strong {
	color: #333;
}

/* ── Empty ── */
.board-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5rem 2rem;
	color: #6c757d;
	background: #fafbfc;
	border: 1px dashed #dde1e6;
	border-radius: 12px;
	margin-top: 1rem;
}

.board-empty .lucide-icon {
	width: 3rem;
	height: 3rem;
	color: #dee2e6;
	margin-bottom: 1rem;
}

.board-empty p {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
	color: #888;
	margin-bottom: 0;
}

/* ── List ── */
.board-list {
	display: flex;
	flex-direction: column;
	border-top: 2px solid var(--primary, #0088cc);
	margin-top: 1rem;
}

.board-item {
	display: flex;
	align-items: center;
	padding: 0;
	border-bottom: 1px solid #eef0f3;
	text-decoration: none;
	color: inherit;
	transition: background-color 0.15s ease;
}

.board-item:hover {
	background-color: #f9fafc;
	text-decoration: none;
	color: inherit;
}

.board-item.is-pinned {
	background-color: var(--primary-rgba-10, rgba(0, 136, 204, 0.1));
	border-bottom-color: #cfe2f3;
}

.board-item.is-pinned:hover {
	background-color: rgba(0, 136, 204, 0.14);
}

.board-col-num {
	width: 52px;
	min-width: 52px;
	text-align: center;
	padding: 1rem 0;
}

.board-num {
	font-size: 0.82rem;
	color: #b0b5be;
	font-weight: 500;
	font-variant-numeric: tabular-nums;
}

.notice-pin {
	color: var(--primary, #0088cc);
	font-size: 0.85rem;
}

.notice-pin .lucide-icon {
	width: 1rem;
	height: 1rem;
}

.board-col-title {
	flex: 1;
	min-width: 0;
	padding: 1rem 0.75rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #333;
	line-height: 1.45;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
}

.board-item:hover .board-col-title {
	color: var(--primary, #0088cc);
}

.board-col-date {
	width: 100px;
	min-width: 100px;
	text-align: center;
	padding: 1rem 0;
	font-size: 0.82rem;
	color: #6b7280;
	font-variant-numeric: tabular-nums;
}

.board-col-view {
	width: 72px;
	min-width: 72px;
	text-align: center;
	padding: 1rem 0;
	font-size: 0.8rem;
	color: #9ca3af;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 3px;
}

.board-col-view .lucide-icon {
	width: 0.72rem;
	height: 0.72rem;
}

.notice-flag {
	display: inline-block;
	background: var(--primary, #0088cc);
	color: #fff;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 8px;
	border-radius: 3px;
	margin-right: 6px;
	vertical-align: middle;
	letter-spacing: 0.5px;
}

.board-new {
	display: inline-block;
	color: var(--primary, #0088cc);
	font-size: 0.68rem;
	font-weight: 700;
	margin-left: 5px;
	vertical-align: middle;
	animation: boardNewPulse 2s ease-in-out infinite;
}

@keyframes boardNewPulse {
	0%, 100% { opacity: 1; }
	50% { opacity: 0.4; }
}

.board-pagination {
	margin-top: 2.5rem;
}

.board-container .pagination {
	gap: 4px;
}

.board-container .pagination .page-item .page-link {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	padding: 0;
	border: none !important;
	border-radius: 8px;
	font-size: 0.88rem;
	font-weight: 500;
	color: #6c757d !important;
	background: transparent !important;
	transition: all 0.2s ease;
}

.board-container .pagination .page-item .page-link .lucide-icon {
	width: 1rem;
	height: 1rem;
}

.board-container .pagination .page-item .page-link:hover,
.board-container .pagination .page-item .page-link:focus {
	color: var(--primary, #0088cc) !important;
	background: var(--primary-rgba-10, rgba(0, 136, 204, 0.1)) !important;
	box-shadow: none;
}

.board-container .pagination .page-item.active .page-link {
	color: #fff !important;
	background-color: var(--primary, #0088cc) !important;
	font-weight: 700;
	box-shadow: 0 2px 8px rgba(0, 136, 204, 0.3);
}

.board-container .pagination .page-item.disabled .page-link {
	opacity: 0.45;
	cursor: default;
}

@media (max-width: 768px) {
	.board-total-count {
		margin-bottom: 0.75rem;
		justify-content: center;
	}

	.board-item {
		flex-wrap: wrap;
		padding: 0.85rem 0.5rem;
	}

	.board-col-num {
		width: 36px;
		min-width: 36px;
		padding: 0;
	}

	.board-col-title {
		flex: 1;
		min-width: 0;
		padding: 0 0 0 0.5rem;
		font-size: 0.9rem;
		white-space: normal;
		display: -webkit-box;
		-webkit-line-clamp: 2;
		-webkit-box-orient: vertical;
		overflow: hidden;
	}

	.board-col-date,
	.board-col-view {
		width: auto;
		min-width: auto;
		padding: 0;
		font-size: 0.75rem;
		padding-top: 0.35rem;
		margin-left: 8px;
	}

	.board-col-date {
		margin-left: 36px;
		padding-left: 0.5rem;
	}

	.board-list--qna .board-col-status {
		width: 5rem;
		min-width: 5rem;
		padding: 0;
	}

	.board-list--qna .board-col-author {
		width: auto;
		min-width: auto;
		padding: 0;
		font-size: 0.75rem;
		padding-top: 0.35rem;
		margin-left: 36px;
		padding-left: 0.5rem;
	}

	.board-list--qna .board-col-date {
		margin-left: 0.5rem;
		padding-left: 0;
	}

	.board-container .pagination .page-item .page-link {
		width: 34px;
		height: 34px;
		font-size: 0.82rem;
	}
}

/* ── Detail view ── */
.detail-container {
	background-color: #fff;
	border: 1px solid rgba(0, 136, 204, 0.15);
	border-radius: 10px;
	padding: 0 1.25rem 1.5rem;
	margin-top: 0;
	box-shadow: none !important;
}

.detail-header {
	border-bottom: 1px solid #eee;
	padding: 2rem 0 1.5rem;
	margin-bottom: 0;
}

.detail-header h5.detail-title {
	font-size: 1.5rem;
	font-weight: 700;
	color: #333;
	margin-bottom: 1rem;
	line-height: 1.5;
	word-break: keep-all;
}

.meta-info {
	display: flex;
	align-items: center;
	gap: 6px;
	flex-wrap: wrap;
}

.meta-info span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	font-size: 0.82rem;
	color: #6c757d;
	background: #f5f6f8;
	padding: 4px 10px;
	border-radius: 20px;
}

.meta-info .lucide-icon,
.meta-info svg.lucide-icon,
.meta-info svg.lucide {
	width: 0.75rem;
	height: 0.75rem;
	color: #adb5bd;
}

/* ── 첨부파일 ── */
.attachment-section {
	margin: 1.5rem 0;
	padding: 1rem 1.15rem;
	background: #f8f9fa;
	border-radius: 8px;
	border: 1px solid #eceef1;
}

.attachment-section__title {
	display: flex;
	align-items: center;
	gap: 0.4rem;
	margin: 0 0 0.5rem;
	font-size: 0.88rem;
	font-weight: 600;
	color: #666;
}

.attachment-section__title svg.lucide-icon,
.attachment-section__title svg.lucide,
.attachment-section__title .lucide-icon svg.lucide {
	width: 0.9rem;
	height: 0.9rem;
	color: #999;
	flex-shrink: 0;
}

.attachment-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.attachment-list__item + .attachment-list__item {
	border-top: 1px solid #e9ecef;
}

.attachment-item {
	display: flex;
	align-items: center;
	gap: 0.45rem;
	padding: 0.5rem 0;
	color: var(--primary, #0088cc);
	text-decoration: none;
	font-size: 0.92rem;
	line-height: 1.45;
}

.attachment-item svg.lucide-icon,
.attachment-item svg.lucide,
.attachment-item .lucide-icon svg.lucide {
	width: 0.9rem;
	height: 0.9rem;
	flex-shrink: 0;
	color: #adb5bd;
}

.attachment-item__name {
	flex: 1;
	min-width: 0;
	font-weight: 500;
	word-break: break-all;
}

.attachment-item__size {
	flex-shrink: 0;
	font-size: 0.82rem;
	color: #888;
}

.attachment-item:hover,
.attachment-item:focus-visible {
	color: var(--secondary, #e36159);
	text-decoration: underline;
	outline: none;
}

.content-body {
	padding: 2rem 0;
	line-height: 1.85;
	font-size: 1rem;
	color: #444;
	min-height: 200px;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.content-body * {
	font-family: inherit !important;
}

.content-body img {
	max-width: 100%;
	height: auto;
	border-radius: 6px;
	margin: 0.75rem 0;
}

.content-body p {
	margin-bottom: 0.8rem;
}

.content-body ul,
.content-body ol {
	margin-bottom: 0.8rem;
	padding-left: 1.25rem;
}

.content-body a {
	color: var(--primary, #0088cc);
	text-decoration: underline;
}

.content-body a:hover {
	color: var(--secondary, #e36159);
}

.button-group {
	border-top: 1px solid #f0f0f0;
	padding-top: 1.5rem;
	margin-top: 1rem;
	display: flex;
	justify-content: center;
	gap: 8px;
}

@media (max-width: 768px) {
	.detail-header h5.detail-title {
		font-size: 1.25rem;
	}

	.meta-info {
		gap: 4px;
	}

	.meta-info span {
		font-size: 0.78rem;
		padding: 3px 8px;
	}

	.content-body {
		padding: 1.5rem 0;
		font-size: 0.95rem;
		min-height: 120px;
	}

	.attachment-section {
		padding: 0.85rem 1rem;
	}
}

/* ── FAQ ── */
.faq-category-tabs {
	display: flex;
	gap: 6px;
	margin-bottom: 1.75rem;
	flex-wrap: wrap;
	padding: 6px;
	background: #f5f6f8;
	border: 1px solid #eceef1;
	border-radius: 10px;
}

.faq-tab {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 0.5rem 0.85rem;
	border-radius: 8px;
	font-size: 0.875rem;
	font-weight: 500;
	color: #666;
	background: transparent;
	border: 1px solid transparent;
	text-decoration: none;
	transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
	white-space: nowrap;
}

.faq-tab:hover {
	color: #333;
	background: #fff;
	border-color: #e5e7eb;
	text-decoration: none;
}

.faq-tab.active {
	color: var(--primary, #0088cc);
	background: #fff;
	border-color: rgba(0, 136, 204, 0.22);
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
	font-weight: 600;
}

.faq-tab.active:hover {
	color: var(--primary, #0088cc);
	background: #fff;
	border-color: rgba(0, 136, 204, 0.28);
}

.faq-tab .lucide-icon {
	width: 0.8rem;
	height: 0.8rem;
	flex-shrink: 0;
}

.faq-tab-count {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 1.35rem;
	padding: 0 6px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.45;
}

.faq-tab:not(.active) .faq-tab-count {
	background: #e3e6ea;
	color: #6c757d;
}

.faq-tab.active .faq-tab-count {
	background: rgba(0, 136, 204, 0.12);
	color: var(--primary, #0088cc);
}

.faq-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	padding: 5rem 2rem;
	color: #6c757d;
	background: #fafbfc;
	border: 1px dashed #dde1e6;
	border-radius: 12px;
	margin-top: 1rem;
}

.faq-empty .lucide-icon {
	width: 3rem;
	height: 3rem;
	color: #dee2e6;
	margin-bottom: 1rem;
}

.faq-empty p {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 1rem;
	font-size: 1.1rem;
	color: #888;
	margin-bottom: 0;
}

.faq-empty span {
	font-size: 0.9rem;
}

.faq-list {
	display: flex;
	flex-direction: column;
	gap: 0;
}

.faq-item {
	border-bottom: 1px solid #f0f0f0;
}

.faq-item:last-child {
	border-bottom: none;
}

.faq-question {
	display: flex;
	align-items: center;
	width: 100%;
	padding: 1.25rem 0.5rem;
	background: none;
	border: none;
	cursor: pointer;
	text-align: left;
	gap: 14px;
	transition: background-color 0.2s ease;
	border-radius: 0;
}

.faq-question:hover {
	background-color: #fafafa;
}

.faq-question:focus {
	outline: none;
	box-shadow: none;
}

.faq-q-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 8px;
	background: var(--primary, #0088cc);
	color: #fff;
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: -0.5px;
}

.faq-q-text {
	flex: 1;
	font-size: 1rem;
	font-weight: 500;
	color: #333;
	line-height: 1.5;
	word-break: keep-all;
}

.faq-arrow {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	min-width: 28px;
	color: #bbb;
	transition: transform 0.3s ease, color 0.3s ease;
}

.faq-arrow .lucide-icon {
	width: 1rem;
	height: 1rem;
}

.faq-question:not(.collapsed) .faq-arrow {
	transform: rotate(180deg);
	color: var(--primary, #0088cc);
}

.faq-question:not(.collapsed) .faq-q-text {
	color: var(--primary, #0088cc);
}

.faq-answer {
	display: flex;
	gap: 14px;
	padding: 0 0.5rem 1.5rem;
	animation: faqFadeIn 0.3s ease;
}

@keyframes faqFadeIn {
	from {
		opacity: 0;
		transform: translateY(-6px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.faq-a-badge {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 32px;
	height: 32px;
	min-width: 32px;
	border-radius: 8px;
	background: rgba(0, 136, 204, 0.08);
	color: var(--primary, #0088cc);
	font-weight: 700;
	font-size: 0.85rem;
	letter-spacing: -0.5px;
}

.faq-a-text {
	flex: 1;
	font-size: 0.95rem;
	line-height: 1.75;
	color: #555;
	padding-top: 4px;
	word-break: keep-all;
	font-family: 'Pretendard', -apple-system, BlinkMacSystemFont, sans-serif;
}

.faq-a-text * {
	font-family: inherit !important;
}

.faq-a-text img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
	margin: 0.5rem 0;
}

.faq-a-text p {
	margin-bottom: 0.5rem;
}

.faq-a-text p:last-child {
	margin-bottom: 0;
}

@media (max-width: 768px) {
	.faq-category-tabs {
		gap: 4px;
		padding: 5px;
		border-radius: 8px;
	}

	.faq-tab {
		padding: 0.45rem 0.65rem;
		font-size: 0.8125rem;
		border-radius: 6px;
	}

	.faq-question {
		padding: 1rem 0.25rem;
		gap: 10px;
	}

	.faq-q-badge,
	.faq-a-badge {
		width: 26px;
		height: 26px;
		min-width: 26px;
		font-size: 0.75rem;
		border-radius: 6px;
	}

	.faq-q-text {
		font-size: 0.92rem;
	}

	.faq-answer {
		padding: 0 0.25rem 1.25rem;
		gap: 10px;
	}

	.faq-a-text {
		font-size: 0.88rem;
	}
}

/* ── Q&A list status ── */
.board-list--qna .board-col-status {
	width: 5rem;
	min-width: 5rem;
	flex-shrink: 0;
	padding: 1rem 0;
	text-align: center;
}

.board-list--qna .board-col-author {
	width: 4.5rem;
	min-width: 4.5rem;
	flex-shrink: 0;
	padding: 1rem 0.25rem;
	text-align: center;
	font-size: 0.82rem;
	color: #6b7280;
	font-weight: 500;
}

.qna-answer-status {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	box-sizing: border-box;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 3px 0;
	border-radius: 3px;
	vertical-align: middle;
	letter-spacing: -0.2px;
	line-height: 1.2;
	white-space: nowrap;
}

.qna-answer-status--done {
	background: rgba(0, 136, 204, 0.1);
	color: var(--primary, #0088cc);
}

.qna-answer-status--waiting {
	background: #f3f4f6;
	color: #6b7280;
}

/* ── Q&A detail answer ── */
.qna-answer-section {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid #e5e7eb;
}

.qna-answer-section-title {
	margin: 0 0 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #111827;
}

.qna-answer-block {
	padding: 1rem 1.125rem;
	border: 1px solid rgba(0, 136, 204, 0.15);
	border-radius: 10px;
	background: #f8fbfd;
}

.qna-answer-block + .qna-answer-block {
	margin-top: 0.75rem;
}

.qna-answer-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 0.375rem 0.75rem;
	margin-bottom: 0.75rem;
	font-size: 0.8125rem;
	color: #6b7280;
}

.qna-answer-meta span:first-child {
	font-weight: 600;
	color: #374151;
}

.qna-answer-content {
	font-size: 0.95rem;
	line-height: 1.7;
	color: #374151;
	word-break: break-word;
}

.qna-answer-content p {
	margin: 0 0 0.5rem;
}

.qna-answer-content p:last-child {
	margin-bottom: 0;
}

.qna-answer-empty {
	margin: 0;
	padding: 1.25rem;
	border: 1px dashed #d1d5db;
	border-radius: 10px;
	background: #f9fafb;
	color: #6b7280;
	font-size: 0.875rem;
	text-align: center;
}

/* ── Q&A list icons ── */
.board-item .secret-icon {
	color: #ffc107;
	margin-left: 0.4rem;
	vertical-align: middle;
	width: 0.95rem;
	height: 0.95rem;
}

.board-item .reply-mark {
	color: var(--primary, #0088cc);
	opacity: 0.7;
	margin-right: 0.5rem;
	transform: rotate(180deg);
	display: inline-block;
	vertical-align: middle;
}

.board-item .reply-mark .lucide-icon {
	width: 0.95rem;
	height: 0.95rem;
}

.write-button-container {
	margin-top: 1.5rem;
}

.board-toast {
	position: fixed;
	bottom: 2rem;
	left: 50%;
	z-index: 1050;
	display: flex;
	align-items: center;
	gap: 0.75rem;
	padding: 0.875rem 1rem 0.875rem 1.25rem;
	background: #fff;
	border: 1px solid rgba(0, 136, 204, 0.2);
	border-radius: 10px;
	box-shadow: 0 10px 28px rgba(15, 23, 42, 0.14);
	font-size: 0.9375rem;
	color: #1e293b;
	max-width: min(92vw, 420px);
	transform: translateX(-50%);
	animation: board-toast-in 0.35s ease-out;
}

.board-toast--hiding {
	animation: board-toast-out 0.3s ease-in forwards;
}

.board-toast-icon {
	display: inline-flex;
	flex-shrink: 0;
	color: var(--primary, #0088cc);
}

.board-toast-icon .lucide-icon {
	width: 1.25rem;
	height: 1.25rem;
}

.board-toast-message {
	flex: 1;
	line-height: 1.4;
	font-weight: 500;
}

.board-toast-close {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 1.75rem;
	height: 1.75rem;
	padding: 0;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #64748b;
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.board-toast-close:hover {
	background: rgba(0, 136, 204, 0.08);
	color: #334155;
}

.board-toast-close .lucide-icon {
	width: 1rem;
	height: 1rem;
}

@keyframes board-toast-in {
	from {
		opacity: 0;
		transform: translateX(-50%) translateY(1rem);
	}

	to {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}
}

@keyframes board-toast-out {
	from {
		opacity: 1;
		transform: translateX(-50%) translateY(0);
	}

	to {
		opacity: 0;
		transform: translateX(-50%) translateY(0.5rem);
	}
}

/* ── Q&A password prompt ── */
.password-prompt-card.card {
	max-width: 500px;
	margin: 4rem auto;
	background: #fff;
	border: 1px solid rgba(0, 136, 204, 0.15);
	border-radius: 10px;
	box-shadow: none !important;
}

.password-prompt-card .card-body {
	border-radius: inherit;
}

.password-prompt-card .form-control {
	font-size: 0.9375rem;
	padding: 0.65rem 0.85rem;
}

.password-prompt-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	align-items: center;
	gap: 0.75rem;
}

html .password-prompt-card .password-prompt-btn {
	margin: 0;
	border-radius: 8px;
	min-width: 7.5rem;
	font-weight: 600;
	background-image: none !important;
	transform: none;
}

html .password-prompt-card .password-prompt-btn--cancel {
	background: #f5f6f8 !important;
	color: #333 !important;
	border: 1px solid #d1d5db !important;
}

html .password-prompt-card .password-prompt-btn--cancel:hover {
	background: #e9ecef !important;
	border-color: #bfc5cd !important;
	color: #333 !important;
}

html .password-prompt-card .password-prompt-btn--confirm {
	background: var(--primary, #0088cc) !important;
	color: #fff !important;
	border: 1px solid var(--primary, #0088cc) !important;
}

html .password-prompt-card .password-prompt-btn--confirm:hover {
	filter: brightness(0.95);
	color: #fff !important;
}

/* ── Q&A write / edit form ── */
.filaboard-qna-form {
	background: #fafbfc;
}

.filaboard-qna-form .info-item {
	display: flex;
	flex-wrap: wrap;
	gap: 0.75rem 1rem;
	padding: 1rem 0;
	border-bottom: 1px solid #eee;
}

.filaboard-qna-form .info-item:has(+ .filaboard-qna-form__actions) {
	border-bottom: 0;
}

.filaboard-qna-form .filaboard-qna-form__actions.button-group {
	border-top: 1px solid #eee;
	margin-top: 0;
}

.filaboard-qna-form .info-label {
	flex: 0 0 140px;
	max-width: 100%;
	font-weight: 600;
	color: #444;
	padding-top: 0.55rem;
}

.filaboard-qna-form .info-value {
	flex: 1 1 240px;
	min-width: 0;
}

.filaboard-qna-form .form-control-modern {
	border-radius: 8px;
	border-color: #dee2e6;
	padding: 0.65rem 0.85rem;
	font-size: 0.9375rem;
}

.filaboard-qna-form .form-control-modern:focus {
	border-color: var(--primary, #0088cc);
	box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.12);
}

.filaboard-qna-form .filaboard-uname-hint {
	display: none;
	align-items: flex-start;
	gap: 0.4rem;
	font-size: 0.8125rem;
	color: #888;
	margin-bottom: 0;
}

.filaboard-qna-form .filaboard-uname-hint.is-visible {
	display: flex;
}

.filaboard-qna-form .filaboard-uname-hint__icon {
	flex-shrink: 0;
	width: 0.9rem;
	height: 0.9rem;
	margin-top: 0.1rem;
}

.filaboard-qna-form__actions .btn {
	margin: 0;
}

.filaboard-qna-form .info-item--option {
	align-items: center;
}

.filaboard-qna-form .info-item--option .info-label {
	padding-top: 0;
}

.filaboard-qna-secret-option {
	display: block;
	margin: 0;
	cursor: pointer;
}

.filaboard-qna-secret-option__input {
	position: absolute;
	width: 1px;
	height: 1px;
	padding: 0;
	margin: -1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
	border: 0;
}

.filaboard-qna-secret-option__body {
	display: flex;
	align-items: center;
	gap: 0.85rem;
	padding: 0.85rem 1rem;
	border: 1px solid #dee2e6;
	border-radius: 8px;
	background: #fff;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.filaboard-qna-secret-option:hover .filaboard-qna-secret-option__body {
	border-color: #c5d5e3;
}

.filaboard-qna-secret-option__input:focus-visible + .filaboard-qna-secret-option__body {
	border-color: var(--primary, #0088cc);
	box-shadow: 0 0 0 2px rgba(0, 136, 204, 0.12);
}

.filaboard-qna-secret-option__input:checked + .filaboard-qna-secret-option__body {
	border-color: rgba(0, 136, 204, 0.45);
	background: rgba(0, 136, 204, 0.04);
}

.filaboard-qna-secret-option__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	width: 2.25rem;
	height: 2.25rem;
	border-radius: 50%;
	background: #f0f4f8;
	color: #6c7a89;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.filaboard-qna-secret-option__icon .lucide-icon,
.filaboard-qna-secret-option__icon svg.lucide {
	width: 1rem;
	height: 1rem;
}

.filaboard-qna-secret-option__input:checked + .filaboard-qna-secret-option__body .filaboard-qna-secret-option__icon {
	background: rgba(0, 136, 204, 0.12);
	color: var(--primary, #0088cc);
}

.filaboard-qna-secret-option__content {
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
	flex: 1 1 auto;
	min-width: 0;
}

.filaboard-qna-secret-option__title {
	font-size: 0.9375rem;
	font-weight: 600;
	color: #333;
	line-height: 1.35;
}

.filaboard-qna-secret-option__desc {
	font-size: 0.8125rem;
	color: #7a8794;
	line-height: 1.4;
}

.filaboard-qna-secret-option__switch {
	position: relative;
	flex-shrink: 0;
	width: 2.5rem;
	height: 1.4rem;
	border-radius: 999px;
	background: #d5dbe1;
	transition: background-color 0.2s ease;
}

.filaboard-qna-secret-option__switch::after {
	content: '';
	position: absolute;
	top: 0.15rem;
	left: 0.15rem;
	width: 1.1rem;
	height: 1.1rem;
	border-radius: 50%;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18);
	transition: transform 0.2s ease;
}

.filaboard-qna-secret-option__input:checked + .filaboard-qna-secret-option__body .filaboard-qna-secret-option__switch {
	background: var(--primary, #0088cc);
}

.filaboard-qna-secret-option__input:checked + .filaboard-qna-secret-option__body .filaboard-qna-secret-option__switch::after {
	transform: translateX(1.1rem);
}

.filaboard-qna-secret-option.is-invalid .filaboard-qna-secret-option__body {
	border-color: #dc3545;
}

@media (max-width: 768px) {
	.filaboard-qna-form .info-label {
		flex: 1 1 100%;
		padding-top: 0;
	}

	.filaboard-qna-secret-option__body {
		flex-wrap: wrap;
	}

	.filaboard-qna-secret-option__switch {
		margin-left: auto;
	}

	.password-prompt-card.card {
		margin: 2rem auto;
	}
}
