.tpc {
	--tpc-black: #111111;
	--tpc-yellow: #f2e812;
	--tpc-yellow-dark: #d9cf00;
	--tpc-yellow-soft: #fdfbd0;
	--tpc-ink: #111111;
	--tpc-muted: #5c5c5c;
	--tpc-line: #dedede;
	--tpc-bg: #f5f5f5;
	--tpc-ok: #12855a;
	--tpc-ok-soft: #e6f6ef;
	--tpc-ko: #c62f2f;
	--tpc-ko-soft: #fdecec;
	--tpc-warn: #b76a00;
	--tpc-warn-soft: #fff5e0;
	max-width: 1100px;
	margin: 0 auto;
	padding: 16px;
	color: var(--tpc-ink);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.tpc *, .tpc *::before, .tpc *::after { box-sizing: border-box; }
.tpc h2, .tpc h3 { margin: 0 0 8px; color: var(--tpc-ink); line-height: 1.25; text-transform: none; }
.tpc h2 { font-size: 24px; }
.tpc h3 { font-size: 18px; }
.tpc p { margin: 0 0 12px; }
.tpc a { color: var(--tpc-ink); text-decoration: underline; }
.tpc ul, .tpc ol { list-style: none; margin: 0; padding: 0; }
.tpc-muted, .tpc-lead { color: var(--tpc-muted); }
.tpc-title { margin-top: 8px !important; }
.tpc-h { margin: 24px 0 12px !important; }

.tpc-card {
	display: block;
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: 12px;
	padding: 20px;
	margin: 0 0 16px;
}
.tpc-narrow { max-width: 460px; margin: 32px auto; }
.tpc-narrow input[type="text"], .tpc-narrow input[type="password"] { width: 100%; }

.tpc-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 4px;
	background: var(--tpc-black);
	border-radius: 12px;
	padding: 6px;
	margin-bottom: 16px;
}
.tpc .tpc-nav a {
	color: #e9e9e9;
	text-decoration: none;
	padding: 9px 14px;
	border-radius: 8px;
	font-weight: 600;
	font-size: 15px;
}
.tpc .tpc-nav a:hover { background: rgba(255, 255, 255, .14); color: #fff; }
.tpc .tpc-nav a.is-active { background: var(--tpc-yellow); color: var(--tpc-black); }

.tpc-msg { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-weight: 600; }
.tpc-msg-ok { background: var(--tpc-ok-soft); color: var(--tpc-ok); }
.tpc-msg-err { background: var(--tpc-ko-soft); color: var(--tpc-ko); }

.tpc-hero {
	display: flex;
	flex-wrap: wrap;
	gap: 16px;
	align-items: center;
	justify-content: space-between;
	background: var(--tpc-black);
	border-radius: 12px;
	padding: 24px;
	margin-bottom: 16px;
}
.tpc .tpc-hero h2, .tpc-hero p { color: #fff; margin: 0; }
.tpc .tpc-hero h2 { overflow-wrap: anywhere; }
.tpc-hero > div:first-child { min-width: 0; }
.tpc-hero p { opacity: .85; margin-top: 4px; }

.tpc-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.tpc-hero .tpc-stats { margin: 0; }
.tpc-stat {
	background: #fff;
	border: 1px solid var(--tpc-line);
	border-radius: 10px;
	padding: 10px 16px;
	min-width: 110px;
}
.tpc-stat strong { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.tpc-stat span { font-size: 13px; color: var(--tpc-muted); }
.tpc-stat.tpc-ok strong { color: var(--tpc-ok); }
.tpc-stat.tpc-ko strong { color: var(--tpc-ko); }

.tpc-grid { display: grid; gap: 16px; margin-bottom: 16px; }
.tpc-grid-4 { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.tpc-grid .tpc-card { margin: 0; display: flex; flex-direction: column; gap: 6px; }
.tpc .tpc-link { text-decoration: none; color: var(--tpc-ink); transition: border-color .15s, transform .15s; }
.tpc .tpc-link:hover { border-color: var(--tpc-black); transform: translateY(-2px); }
.tpc-link span, .tpc-rec span { color: var(--tpc-muted); font-size: 14px; }
.tpc-dot { width: 36px; height: 36px; border-radius: 50%; background: var(--tpc-yellow); border: 2px solid var(--tpc-black); margin-bottom: 6px; }
.tpc-link-sim .tpc-dot { background: #e88a00; }
.tpc-link-failed .tpc-dot { background: #d93a3a; }
.tpc-link-progress .tpc-dot { background: var(--tpc-black); }
.tpc-link-esquemas .tpc-dot { background: #fff; }
.tpc-grid-4 { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }

/* Esquemas */
.tpc .tpc-files-h { margin: 18px 0 4px; font-size: 15px; color: var(--tpc-muted); text-transform: uppercase; letter-spacing: .03em; }
.tpc-files li { display: flex; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--tpc-line); }
.tpc-files li > div { flex: 1; min-width: 0; }
.tpc-files li > div strong { overflow-wrap: anywhere; }
.tpc-files li > div span:last-child { display: block; font-size: 13px; color: var(--tpc-muted); }
.tpc-pdf { flex: none; width: 42px; height: 50px; border: 2px solid var(--tpc-black); border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; background: var(--tpc-yellow); }
.tpc-new { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 99px; background: var(--tpc-black); color: var(--tpc-yellow); vertical-align: middle; }
.tpc-rec .tpc-btn { margin-top: auto; }
.tpc-rec span { margin-bottom: 10px; }

.tpc .tpc-btn {
	display: inline-block;
	background: var(--tpc-yellow);
	color: var(--tpc-black);
	border: 1px solid var(--tpc-black);
	border-radius: 8px;
	padding: 9px 16px;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.3;
	cursor: pointer;
	text-decoration: none;
	text-transform: none;
}
.tpc .tpc-btn:hover { background: var(--tpc-black); border-color: var(--tpc-black); color: var(--tpc-yellow); }
.tpc .tpc-btn-ghost { background: #fff; color: var(--tpc-ink); border-color: var(--tpc-line); }
.tpc .tpc-btn-ghost:hover { background: var(--tpc-bg); color: var(--tpc-ink); border-color: var(--tpc-black); }
.tpc .tpc-btn:disabled { opacity: .45; cursor: default; }
.tpc .tpc-btn:focus-visible, .tpc .tpc-option:focus-visible { outline: 3px solid var(--tpc-black); outline-offset: 2px; }

.tpc-opts { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin: 8px 0 16px; font-size: 14px; color: var(--tpc-muted); }
.tpc-opts select { margin-left: 6px; padding: 6px 8px; border: 1px solid var(--tpc-line); border-radius: 6px; background: #fff; color: var(--tpc-ink); font-size: 14px; }
.tpc-check input { margin-right: 6px; }

.tpc-list li {
	display: flex;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	padding: 12px 0;
	border-top: 1px solid var(--tpc-line);
}
.tpc-list li div strong { display: block; }
.tpc-list li div span { font-size: 14px; color: var(--tpc-muted); }

.tpc-redeem { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.tpc-redeem input { flex: 1 1 200px; padding: 9px 12px; border: 1px solid var(--tpc-line); border-radius: 8px; font-size: 15px; }

.tpc-access li { padding: 2px 0; color: var(--tpc-muted); }
.tpc-access li strong { color: var(--tpc-ink); }
.tpc-access li.is-soon { color: var(--tpc-warn); font-weight: 600; }

.tpc-crumb { font-size: 14px; color: var(--tpc-muted); margin-bottom: 12px; }

/* Test */
.tpc-test { max-width: 820px; margin-left: auto; margin-right: auto; }
.tpc-test-head { display: flex; align-items: center; gap: 16px; margin-bottom: 8px; }
.tpc-progress { flex: 1; height: 10px; background: var(--tpc-black); border: 2px solid var(--tpc-black); border-radius: 99px; overflow: hidden; }
.tpc-progress span { display: block; height: 100%; background: var(--tpc-yellow); border-radius: 99px; }
.tpc-timer { font-weight: 700; font-variant-numeric: tabular-nums; }
.tpc-timer.is-low { color: var(--tpc-ko); }
.tpc-count { color: var(--tpc-muted); font-size: 14px; }
.tpc .tpc-qtext { font-size: 19px; font-weight: 700; margin: 0 0 16px; white-space: pre-line; }
.tpc-options { display: grid; gap: 10px; margin-bottom: 16px; }
.tpc .tpc-option {
	display: flex;
	gap: 10px;
	width: 100%;
	text-align: left;
	background: #fff;
	color: var(--tpc-ink);
	border: 1px solid var(--tpc-line);
	border-radius: 8px;
	padding: 12px 14px;
	font-size: 16px;
	font-weight: 400;
	line-height: 1.45;
	cursor: pointer;
	text-transform: none;
	white-space: normal;
}
.tpc .tpc-option { box-shadow: none; }
.tpc .tpc-option:hover:not(:disabled):not(.is-selected) { border-color: var(--tpc-black); background: #fff; color: var(--tpc-ink); }
.tpc .tpc-option.is-selected:hover { color: var(--tpc-ink); }
.tpc .tpc-option.is-selected { border-color: var(--tpc-black); background: var(--tpc-yellow-soft); box-shadow: inset 4px 0 0 var(--tpc-yellow-dark); }
.tpc .tpc-option.is-correct { border-color: var(--tpc-ok); background: var(--tpc-ok-soft); box-shadow: none; }
.tpc .tpc-option.is-wrong { border-color: var(--tpc-ko); background: var(--tpc-ko-soft); box-shadow: none; }
.tpc .tpc-option:disabled { cursor: default; opacity: 1; color: var(--tpc-ink); }
.tpc-exp { background: var(--tpc-yellow-soft); border-radius: 8px; padding: 12px 14px; margin: 0 0 16px; }
.tpc-exp p { margin: 4px 0 0; white-space: pre-line; }
.tpc-exp-ok { background: var(--tpc-ok-soft); }
.tpc-exp-ko { background: var(--tpc-ko-soft); }
.tpc-test-nav { display: flex; gap: 8px; justify-content: space-between; flex-wrap: wrap; }
.tpc-test-nav .tpc-btn:first-child { margin-right: auto; }

/* Resultado */
.tpc-result { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; }
.tpc-ring {
	width: 130px;
	height: 130px;
	border-radius: 50%;
	background: conic-gradient(var(--tpc-ok) calc(var(--p) * 1%), var(--tpc-line) 0);
	display: grid;
	place-items: center;
	flex: none;
}
.tpc-ring > div { width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-content: center; text-align: center; }
.tpc-ring strong { font-size: 26px; }
.tpc-ring span { font-size: 13px; color: var(--tpc-muted); }
.tpc-result-body { flex: 1 1 300px; }
.tpc-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.tpc-review > li { counter-increment: tpc; }
.tpc-review { counter-reset: tpc; }
.tpc-rev-head { display: flex; gap: 12px; justify-content: space-between; align-items: flex-start; }
.tpc-review .tpc-qtext { font-size: 16px; margin-bottom: 10px; }
.tpc-review .tpc-qtext::before { content: counter(tpc) ". "; }
.tpc-review ul li { padding: 6px 10px; border-radius: 6px; margin-bottom: 4px; }
.tpc-review ul li.is-correct { background: var(--tpc-ok-soft); color: #0b5e3f; font-weight: 600; }
.tpc-review ul li.is-wrong { background: var(--tpc-ko-soft); color: #9a2020; }
.tpc-review .tpc-exp { margin: 10px 0 0; }
.tpc-badge { flex: none; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--tpc-bg); color: var(--tpc-muted); }
.tpc-badge-ok { background: var(--tpc-ok-soft); color: var(--tpc-ok); }
.tpc-badge-ko { background: var(--tpc-ko-soft); color: var(--tpc-ko); }

/* Progreso */
.tpc-bar-row { display: grid; grid-template-columns: minmax(120px, 1.2fr) 2fr 52px; gap: 12px; align-items: center; padding: 7px 0; font-size: 15px; }
.tpc-bar { height: 8px; background: var(--tpc-line); border-radius: 99px; overflow: hidden; }
.tpc-bar span { display: block; height: 100%; border-radius: 99px; background: var(--tpc-black); }
.tpc-bar span.is-good { background: var(--tpc-ok); }
.tpc-bar span.is-mid { background: #e0a100; }
.tpc-bar span.is-low { background: var(--tpc-ko); }
.tpc-bar-val { text-align: right; font-weight: 700; font-variant-numeric: tabular-nums; }
.tpc-alert {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	align-items: center;
	justify-content: space-between;
	background: var(--tpc-warn-soft);
	border-radius: 10px;
	padding: 12px 16px;
	margin-top: 14px;
}
.tpc-alert strong { color: var(--tpc-warn); }
.tpc-chart { width: 100%; height: auto; display: block; }
.tpc-chart text { font-size: 11px; fill: var(--tpc-muted); }
.tpc-grid-line { stroke: var(--tpc-line); stroke-width: 1; }
.tpc-line { fill: none; stroke: var(--tpc-black); stroke-width: 2.5; stroke-linejoin: round; }
.tpc-chart circle { fill: var(--tpc-yellow); stroke: var(--tpc-black); stroke-width: 2.5; }
.tpc-table-wrap { overflow-x: auto; }
.tpc .tpc-table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0; border: 0; }
.tpc .tpc-table th, .tpc .tpc-table td { text-align: left; padding: 9px 10px; border: 0; border-bottom: 1px solid var(--tpc-line); white-space: nowrap; }
.tpc .tpc-table th { color: var(--tpc-muted); font-size: 13px; font-weight: 600; }

@media (max-width: 600px) {
	.tpc { padding: 12px; }
	.tpc-hero { padding: 18px; }
	.tpc .tpc-hero h2 { font-size: 21px; }
	.tpc-hero .tpc-stat { flex: 1 1 90px; min-width: 0; padding: 8px 12px; }
	.tpc .tpc-nav a { padding: 8px 11px; font-size: 14px; }
	.tpc-card { padding: 16px; }
	.tpc-bar-row { grid-template-columns: 1fr 52px; }
	.tpc-bar { grid-column: 1 / -1; order: 3; }
	.tpc-list li { flex-wrap: wrap; }
	.tpc-files li { flex-wrap: wrap; }
	.tpc-files li > div { flex-basis: calc(100% - 60px); }
	.tpc-files .tpc-btn { flex: 1; text-align: center; }
}
