@charset "utf-8";

/* 체크리스트 모바일 스킨 - 터치·작은 화면 최적화 */
.ctt_checklist .sound_only { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); }

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

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

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

/* 탭 - 전체 너비 균등 정렬 */
.checklist-tabs {
	display: flex;
	flex-wrap: nowrap;
	gap: 0;
	margin-bottom: 1.25rem;
	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;
	min-width: 0;
	padding: 0.65rem 0.25rem;
	font-size: 0.9rem;
	font-weight: 600;
	color: #334155;
	background: #fff;
	border: none;
	border-right: 1px solid #e2e8f0;
	cursor: pointer;
	transition: background .2s, color .2s;
	-webkit-tap-highlight-color: transparent;
	text-align: center;
}

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

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

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

.checklist-panels { margin-bottom: 1.25rem; }

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

/* 카드: 모바일에서 세로 1열 */
.checklist-cards {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	align-items: stretch;
}

.checklist-cards-col {
	display: flex;
	flex-direction: column;
	gap: 1rem;
	min-width: 0;
}

.checklist-cards-col + .checklist-card { min-width: 0; }

.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.65rem 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;
}

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

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

.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.75rem 1rem;
	min-height: 2.75rem;
	cursor: pointer;
	user-select: none;
	line-height: 1.4;
	-webkit-tap-highlight-color: transparent;
}

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

.checklist-cb {
	width: 1.4rem;
	height: 1.4rem;
	margin: 0 0.9rem 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-actions {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.75rem;
	margin-bottom: 1.25rem;
}

.checklist-btn-result,
.checklist-actions .checklist-btn-back {
	min-width: 9rem;
	padding: 0.75rem 1.25rem;
	font-size: 1rem;
	font-weight: 600;
	border-radius: 5px;
	cursor: pointer;
	transition: background .2s, color .2s;
	-webkit-tap-highlight-color: transparent;
}

.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:active {
	background: #2670e8;
}

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

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

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

.checklist-result-bar {
	height: 10px;
	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: 0.95rem;
	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.45rem 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 .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;
	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.75rem 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;
	-webkit-tap-highlight-color: transparent;
}

.checklist-btn-back:active {
	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: 9rem;
	padding: 0.75rem 1.25rem;
	font-size: 0.95rem;
	-webkit-tap-highlight-color: transparent;
}

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

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