.hfc-app {
	max-width: 640px;
	margin: 0 auto;
	font-family: inherit;
}

.hfc-login-notice {
	background: #fff8e5;
	border: 1px solid #f0d78c;
	color: #6b5900;
	font-size: 13px;
	padding: 10px 14px;
	border-radius: 6px;
	margin-bottom: 14px;
	text-align: center;
}

.hfc-progress {
	margin-bottom: 16px;
}
.hfc-progress-bar {
	width: 100%;
	height: 8px;
	background: #e5e5e5;
	border-radius: 4px;
	overflow: hidden;
}
.hfc-progress-fill {
	height: 100%;
	width: 0%;
	background: #2271b1;
	transition: width 0.25s ease;
}
.hfc-progress-text {
	margin-top: 6px;
	font-size: 13px;
	color: #555;
	text-align: center;
}

.hfc-piles {
	display: flex;
	justify-content: center;
	gap: 24px;
	margin-bottom: 20px;
}
.hfc-pile {
	display: flex;
	align-items: center;
	gap: 6px;
	padding: 8px 16px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 14px;
}
.hfc-pile-correct { background: #e6f6ea; color: #1e7e34; }
.hfc-pile-incorrect { background: #fbe9e7; color: #c0392b; }
.hfc-pile-count { font-size: 16px; margin-left: 2px; }

.hfc-stage {
	perspective: 1400px;
	margin-bottom: 20px;
}

.hfc-card {
	width: 100%;
	min-height: 320px;
}

.hfc-card-inner {
	position: relative;
	width: 100%;
	min-height: 320px;
	transform-style: preserve-3d;
	transition: transform 0.55s cubic-bezier(0.4, 0.2, 0.2, 1);
}

.hfc-card.is-flipped .hfc-card-inner {
	transform: rotateY(180deg);
}

.hfc-card-face {
	position: absolute;
	inset: 0;
	backface-visibility: hidden;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fff;
	box-shadow: 0 2px 10px rgba(0, 0, 0, 0.06);
	padding: 24px;
	display: flex;
	flex-direction: column;
}

.hfc-card-back {
	transform: rotateY(180deg);
	background: #f8fbff;
}

.hfc-card-meta {
	font-size: 12px;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: #888;
	margin-bottom: 10px;
	font-weight: 600;
}

.hfc-card-question {
	font-size: 17px;
	font-weight: 600;
	margin-bottom: 16px;
	line-height: 1.4;
}

.hfc-card-options {
	list-style: none;
	margin: 0 0 12px;
	padding: 0;
	flex-grow: 1;
}
.hfc-option-row {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	margin-bottom: 8px;
	font-size: 14px;
	cursor: pointer;
}
.hfc-option-row:has(.hfc-option-input:checked) {
	border-color: #2271b1;
	background: #eef6fc;
}
.hfc-option-input {
	margin-top: 3px;
	flex-shrink: 0;
	cursor: pointer;
}
.hfc-option-row label {
	cursor: pointer;
	flex: 1;
}
.hfc-option-row strong {
	margin-right: 6px;
}

.hfc-save-status {
	min-height: 18px;
	font-size: 12px;
	text-align: center;
	margin-bottom: 8px;
}
.hfc-save-status.hfc-save-ok { color: #1e7e34; }
.hfc-save-status.hfc-save-error { color: #c0392b; }

.hfc-result-badge {
	font-size: 13px;
	font-weight: 700;
	text-transform: none;
	letter-spacing: 0;
	padding: 4px 10px;
	border-radius: 20px;
	display: inline-block;
	margin-bottom: 10px;
}
.hfc-badge-correct { background: #e6f6ea; color: #1e7e34; }
.hfc-badge-incorrect { background: #fbe9e7; color: #c0392b; }

.hfc-answer-option {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	padding: 8px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 6px;
	margin-bottom: 6px;
	font-size: 14px;
}
.hfc-answer-mark {
	width: 16px;
	flex-shrink: 0;
	font-weight: 700;
}
.hfc-answer-correct-opt {
	background: #e6f6ea;
	border-color: #1e7e34;
	color: #175c27;
}
.hfc-answer-correct-opt .hfc-answer-mark { color: #1e7e34; }
.hfc-answer-wrong-opt {
	background: #fbe9e7;
	border-color: #c0392b;
	color: #8a291d;
}
.hfc-answer-wrong-opt .hfc-answer-mark { color: #c0392b; }

.hfc-card-answer {
	font-size: 15px;
	line-height: 1.5;
	flex-grow: 1;
}
.hfc-card-answer .hfc-correct-letter {
	display: inline-block;
	background: #1e7e34;
	color: #fff;
	border-radius: 50%;
	width: 26px;
	height: 26px;
	line-height: 26px;
	text-align: center;
	font-weight: 700;
	margin-right: 8px;
}
.hfc-card-answer .hfc-answer-explanation {
	margin-top: 12px;
	color: #444;
}

.hfc-flip-btn {
	align-self: center;
	margin-top: auto;
	background: #2271b1;
	color: #fff;
	border: none;
	border-radius: 6px;
	padding: 10px 20px;
	font-size: 14px;
	cursor: pointer;
}
.hfc-flip-btn:hover { background: #1a5a8a; }
.hfc-flip-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.hfc-next-btn {
	background: #444;
}
.hfc-next-btn:hover { background: #222; }

.hfc-summary {
	text-align: center;
	padding: 32px 16px;
	border: 1px solid #ddd;
	border-radius: 12px;
	background: #fafafa;
}
.hfc-summary-score {
	font-size: 18px;
	margin-bottom: 20px;
}
.hfc-summary button {
	margin: 0 6px;
	padding: 10px 18px;
	border-radius: 6px;
	border: none;
	background: #2271b1;
	color: #fff;
	font-weight: 600;
	cursor: pointer;
}
.hfc-summary .hfc-change-topic-btn {
	background: #666;
}

.hfc-topic-picker {
	margin-bottom: 20px;
	text-align: center;
}
.hfc-topic-picker label {
	display: block;
	font-weight: 600;
	margin-bottom: 6px;
	font-size: 14px;
}
.hfc-card-answer .hfc-answer-explanation {

    display: none;
}
.hfc-competency-select {
	width: 100%;
	max-width: 100%;
	padding: 10px 12px;
	font-size: 15px;
	border: 1px solid #ccc;  
	border-radius: 6px;
	background: #fff;
	color:black;
	height:45px;
}

.hfc-loading-msg {
	text-align: center;
	padding: 24px;
	color: #666;
	font-size: 14px;
}
.hfc-error-msg {
	text-align: center;
	padding: 14px;
	color: #c0392b;
	background: #fbe9e7;
	border: 1px solid #f3c4bd;
	border-radius: 6px;
	font-size: 14px;
}

/* [hearing_flashcards_progress] results table */
.hfc-progress-report {
	max-width: 640px;
	margin: 0 auto;
}
.hfc-progress-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 14px;
}
.hfc-progress-table th,
.hfc-progress-table td {
	padding: 10px 12px;
	border: 1px solid #e5e5e5;
	text-align: left;
}
.hfc-progress-table thead th {
	background: #f5f5f5;
}
.hfc-progress-table .hfc-progress-correct { color: #1e7e34; font-weight: 600; }
.hfc-progress-table .hfc-progress-incorrect { color: #c0392b; font-weight: 600; }
.hfc-progress-table tfoot th { background: #fafafa; }

@media (max-width: 480px) {
	.hfc-piles { gap: 12px; }
}
.hfc-pile-remaining { background:#f2f2f2; color:#555; }
.hfc-pile-incorrect { cursor:pointer; }
.hfc-pile-incorrect:hover { filter:brightness(.97); }
.hfc-summary .hfc-retry-incorrect-btn { background:#c0392b; }
