@charset "utf-8";

/* 체크리스트 스킨 - 내용관리(co) 세련된 디자인 */
.ctt_checklist .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

.checklist-wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 2rem 0;
	background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
	border-radius: 5px;
}
/* 제목 숨김 시 거리탭을 맨 위로: 상단 패딩·여백 제거 */
.checklist-wrap:has(.checklist-title.sound_only) { padding-top: 0; }

.checklist-title {
	font-size: 1.6rem;
	font-weight: 700;
	letter-spacing: -0.02em;
	margin: 0 0 0.25rem 0;
	padding-left: 0.75rem;
	border-left: 4px solid #3180ff;
	color: #334155;
}

.checklist-title + .checklist-tabs { margin-top: 1.5rem; }
.checklist-title.sound_only + .checklist-tabs { margin-top: 0; }

/* 탭 - 세그먼트 스타일 */
.checklist-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 1.5rem;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	background: #fff;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
}

.checklist-tab {
	flex: 1;
	padding: 0.6rem 0.5rem;
	font-size: 0.95rem;
	font-weight: 600;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	cursor: pointer;
	transition: background .2s, color .2s;
	min-width: 0;
}

.checklist-tab:last-of-type { border-right: none; }

.checklist-tab:hover {
	background: #f1f5f9;
	color: #1e293b;
}

.checklist-tab.on {
	background: #3180ff;
	color: #fff;
	border-right-color: #3180ff;
}

.checklist-tab.on:hover { background: #2670e8; color: #fff; }

/* 패널 */
.checklist-panels { margin-bottom: 1.5rem; }

.checklist-panel[hidden] { display: none !important; }

/* 카테고리 카드: 왼쪽 열(기본+상황별) 세로 배치, 오른쪽 열(추천) → 각 박스는 항목 수에 맞는 높이만 */
.checklist-cards {
	display: flex;
	flex-wrap: wrap;
	gap: 1.25rem;
	align-items: flex-start;
}

.checklist-cards-col {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	flex: 1;
	min-width: 260px;
	align-self: flex-start;
}

.checklist-cards-col + .checklist-card {
	flex: 1;
	min-width: 260px;
	align-self: flex-start;
}

.checklist-card {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	overflow: hidden;
}

.checklist-card-head {
	padding: 0.6rem 1rem;
	font-size: 0.95rem;
	font-weight: 700;
	color: #fff;
}

.checklist-card.cat-basic .checklist-card-head {
	background: #3180ff;
}

.checklist-card.cat-recommend .checklist-card-head {
	background: #6366f1;
}

.checklist-card.cat-situation .checklist-card-head {
	background: #64748b;
}

.checklist-card .checklist-list {
	list-style: none;
	margin: 0;
	padding: 0;
	border-top: none;
	box-shadow: none;
	border-radius: 0;
}

.checklist-item {
	margin: 0;
	transition: background .2s ease;
}

.checklist-item + .checklist-item {
	border-top: 1px solid #e2e8f0;
}

/* 체크한 항목 아래 흰줄 제거: 체크된 행은 li 전체 배경 채우고, 다음 행 구분선 제거 */
.checklist-item:has(.checklist-cb:checked) {
	background: #f0f7ff;
}
.checklist-item:has(.checklist-cb:checked) + .checklist-item {
	border-top: none;
}

.checklist-item label {
	display: flex;
	align-items: center;
	padding: 0.5rem 1.1rem;
	cursor: pointer;
	user-select: none;
	line-height: 1.35;
}

.checklist-item label:hover { background: #f8fafc; }

.checklist-cb {
	width: 1.3rem;
	height: 1.3rem;
	margin: 0 0.85rem 0 0;
	accent-color: #3180ff;
	flex-shrink: 0;
}

.checklist-label {
	font-size: 1rem;
	color: #334155;
	transition: color .2s ease;
}

.checklist-cb:checked + .checklist-label {
	color: #64748b;
	text-decoration: line-through;
}

.checklist-item:has(.checklist-cb:checked) label { background: #f0f7ff; }

/* 버튼 */
.checklist-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.5rem;
}

.checklist-btn-result,
.checklist-actions .checklist-btn-back {
	min-width: 10rem;
	padding: 0.65rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s, color .2s, transform .2s, box-shadow .2s;
}

.checklist-btn-result {
	display: inline-block;
	color: #fff;
	background: #3180ff;
	border: none;
	box-shadow: 0 4px 14px rgba(49, 128, 255, 0.35);
}

.checklist-btn-result:hover {
	background: #2670e8;
	transform: translateY(-1px);
	box-shadow: 0 6px 18px rgba(49, 128, 255, 0.4);
}

.checklist-btn-result:active { transform: translateY(0); }

/* 결과 패널 */
.checklist-result {
	background: #fff;
	border-radius: 5px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
	padding: 1.5rem;
	margin-bottom: 1rem;
}

.checklist-result-title {
	font-size: 1.2rem;
	font-weight: 700;
	margin: 0 0 1rem 0;
	padding-left: 0.6rem;
	border-left: 4px solid #3180ff;
	color: #334155;
}

.checklist-result-percent {
	font-size: 1.75rem;
	font-weight: 800;
	color: #3180ff;
	margin-bottom: 0.5rem;
	letter-spacing: -0.02em;
}

.checklist-result-bar {
	height: 12px;
	background: #e2e8f0;
	border-radius: 5px;
	overflow: hidden;
	margin-bottom: 0.75rem;
}

.checklist-result-bar-fill {
	height: 100%;
	background: #3180ff;
	border-radius: 5px;
	width: 0%;
	transition: width 0.4s ease;
}

.checklist-result-desc {
	font-size: 1rem;
	color: #475569;
	margin-bottom: 1rem;
}

.checklist-result-unchecked {
	margin-bottom: 1rem;
}

.checklist-result-unchecked ul {
	list-style: none;
	margin: 0;
	padding: 0;
}

.checklist-result-unchecked li {
	padding: 0.4rem 0;
	font-size: 0.95rem;
	color: #334155;
}

.checklist-result-unchecked .unchecked-num {
	font-weight: 700;
	color: #64748b;
	margin-right: 0.25rem;
}

.checklist-result-unchecked .unchecked-label { font-weight: 500; }

.checklist-result-unchecked .unchecked-msg {
	margin: 0.25rem 0 0 0;
	padding: 0.4rem 0.6rem;
	font-size: 0.875rem;
	color: #64748b;
	line-height: 1.4;
	background: #f8fafc;
	border-radius: 5px;
}

.checklist-result-unchecked strong { color: #475569; }

.checklist-result-unchecked .unchecked-cat {
	margin-top: 1rem;
}

.checklist-result-unchecked .unchecked-cat:first-of-type { margin-top: 0.5rem; }

.checklist-result-unchecked .unchecked-cat-title {
	display: block;
	font-size: 0.9rem;
	color: #475569;
	margin-bottom: 0.35rem;
}

.checklist-result-comments {
	background: #f8fafc;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	padding: 1rem 1.1rem;
	margin-bottom: 1rem;
}

.checklist-result-comments:empty {
	display: none;
}

.checklist-result-comments p {
	margin: 0 0 0.5rem 0;
	font-size: 0.95rem;
	color: #475569;
	line-height: 1.6;
}

.checklist-result-comments p:last-child { margin-bottom: 0; }

.checklist-btn-back {
	padding: 0.65rem 1.25rem;
	font-size: 0.95rem;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.checklist-btn-back:hover {
	background: #e2e8f0;
	color: #334155;
}

.checklist-result-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-top: 1rem;
}

.checklist-result-actions .checklist-btn-back,
.checklist-result-actions .checklist-btn-top {
	min-width: 10rem;
	padding: 0.65rem 1.25rem;
}

.checklist-btn-top {
	font-size: 0.95rem;
	font-weight: 500;
	color: #475569;
	background: #f1f5f9;
	border: 1px solid #e2e8f0;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s, color .2s;
}

.checklist-btn-top:hover {
	background: #e2e8f0;
	color: #334155;
}

/* 반응형 */
@media (max-width: 575px) {
	.checklist-wrap {
		padding: 1.25rem 0;
		border-radius: 5px;
	}
	.checklist-title {
		font-size: 1.35rem;
		padding-left: 0.6rem;
	}
	.checklist-tabs {
		flex-wrap: nowrap;
		overflow-x: auto;
		-webkit-overflow-scrolling: touch;
		margin-bottom: 1.25rem;
	}
	.checklist-tab {
		flex: 0 0 auto;
		min-width: 4rem;
		padding: 0.5rem 0.6rem;
		font-size: 0.9rem;
	}
	.checklist-item label { padding: 0.5rem 0.9rem; }
	.checklist-cards { flex-direction: column; gap: 1rem; }
	.checklist-cards-col { min-width: 0; }
	.checklist-card { border-radius: 5px; }
	.checklist-result-bar { height: 10px; }
	.checklist-btn-result,
	.checklist-actions .checklist-btn-back { padding: 0.65rem 1.25rem; min-width: 9rem; }
	.checklist-result { padding: 1.2rem; border-radius: 5px; }
	.checklist-result-percent { font-size: 1.4rem; }
	.checklist-result-title { font-size: 1.1rem; }
}
