/**
 * Cyber Career Lab — v1.1 feature styles.
 *
 * Kept separate from simulator.css so design work on the core stylesheet
 * does not conflict. Uses the same tokens (var(--ccs-*)).
 *
 * Contents: utilities · settings controls · hints · chips · careers ·
 * readiness report (+ print) · welcome guide · guide animations.
 */

/* Utilities --------------------------------------------------------------- */

.ccs-block { display: block; }
.ccs-mb { margin-bottom: var(--ccs-space-4) !important; }
.ccs-section-title--page { margin-top: var(--ccs-space-7) !important; }
.ccs-grid--flat { margin: 0; gap: var(--ccs-space-6); }

/* Buttons & inputs -------------------------------------------------------- */

.ccs-app .ccs-btn--danger { background: var(--ccs-danger); color: #fff; }
.ccs-app .ccs-btn--danger:hover { background: #dc2626; }
.ccs-app .ccs-btn--danger:disabled { opacity: 0.4; }
.ccs-app .ccs-input--sm { padding: 6px 10px; font-size: 13px; }

.ccs-app .ccs-help-btn {
	width: 32px;
	height: 32px;
	border: 1px solid var(--ccs-border);
	border-radius: 50%;
	font-size: 14px;
	font-weight: 700;
}

/* Settings ---------------------------------------------------------------- */

.ccs-settings__section .ccs-field { margin-bottom: var(--ccs-space-5); }
.ccs-app fieldset.ccs-field { min-width: 0; margin-left: 0; margin-right: 0; padding: 0; border: 0; }
.ccs-app fieldset.ccs-field legend { padding: 0; }

.ccs-segmented { display: flex; flex-wrap: wrap; gap: var(--ccs-space-2); margin-top: var(--ccs-space-2); }
.ccs-segmented label { position: relative; margin: 0; cursor: pointer; }
.ccs-segmented input { position: absolute; opacity: 0; pointer-events: none; }
.ccs-segmented span {
	display: inline-block;
	padding: 7px 12px;
	border: 1px solid var(--ccs-border-strong);
	border-radius: var(--ccs-radius-sm);
	background: var(--ccs-card-elevated);
	color: var(--ccs-text-muted);
	font-size: 13px;
	font-weight: 500;
	transition: border-color 0.15s ease, color 0.15s ease, background-color 0.15s ease;
}
.ccs-segmented input:checked + span { border-color: var(--ccs-accent); background: var(--ccs-accent-soft); color: var(--ccs-accent); }
.ccs-segmented input:focus-visible + span { outline: 2px solid var(--ccs-accent); outline-offset: 2px; }

.ccs-app .ccs-toggle { display: flex; align-items: flex-start; gap: var(--ccs-space-3); margin: 0; cursor: pointer; }
.ccs-toggle input { position: absolute; opacity: 0; pointer-events: none; }
.ccs-toggle__track {
	position: relative;
	flex-shrink: 0;
	width: 38px;
	height: 22px;
	margin-top: 1px;
	border-radius: 999px;
	background: var(--ccs-border-strong);
	transition: background-color 0.15s ease;
}
.ccs-toggle__track::after {
	content: "";
	position: absolute;
	top: 3px;
	left: 3px;
	width: 16px;
	height: 16px;
	border-radius: 50%;
	background: #fff;
	transition: transform 0.15s ease;
}
.ccs-toggle input:checked + .ccs-toggle__track { background: var(--ccs-accent); }
.ccs-toggle input:checked + .ccs-toggle__track::after { transform: translateX(16px); }
.ccs-toggle input:focus-visible + .ccs-toggle__track { outline: 2px solid var(--ccs-accent); outline-offset: 2px; }

.ccs-settings__bar {
	position: sticky;
	bottom: 0;
	z-index: 5;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: var(--ccs-space-4);
	margin: 0 0 var(--ccs-space-4);
	padding: var(--ccs-space-3) 0;
	background: var(--ccs-bg);
}

.ccs-settings__data .ccs-btn { margin-top: var(--ccs-space-3); }
.ccs-danger-zone { padding-left: var(--ccs-space-4); border-left: 2px solid var(--ccs-danger-soft); }
.ccs-inline-form { display: flex; gap: var(--ccs-space-2); margin-top: var(--ccs-space-3); }
.ccs-inline-form .ccs-btn { margin-top: 0; }
.ccs-inline-form .ccs-input { max-width: 160px; }

/* Analyst hints ----------------------------------------------------------- */

.ccs-hints {
	margin: 0 0 var(--ccs-space-4);
	border: 1px solid var(--ccs-border);
	border-radius: var(--ccs-radius-sm);
	background: var(--ccs-card-elevated);
	font-size: 13px;
}
.ccs-tabpanel--flush > .ccs-hints { margin: var(--ccs-space-4); }
.ccs-hints summary {
	display: flex;
	align-items: center;
	gap: var(--ccs-space-2);
	padding: var(--ccs-space-2) var(--ccs-space-3);
	color: var(--ccs-accent);
	font-weight: 600;
	cursor: pointer;
	list-style: none;
}
.ccs-hints summary::-webkit-details-marker { display: none; }
.ccs-hints summary::after { content: "+"; margin-left: auto; color: var(--ccs-text-muted); }
.ccs-hints[open] summary::after { content: "–"; }
.ccs-app .ccs-hints ul { display: flex; flex-direction: column; gap: 6px; padding: 0 var(--ccs-space-3) var(--ccs-space-3) var(--ccs-space-6); }
.ccs-app .ccs-hints li { list-style: disc; color: var(--ccs-text-muted); }

/* Chips ------------------------------------------------------------------- */

.ccs-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ccs-chips li {
	padding: 3px 10px;
	border: 1px solid var(--ccs-border);
	border-radius: 999px;
	background: var(--ccs-card-elevated);
	font-size: 12px;
}
.ccs-chips--mitre li { border-radius: var(--ccs-radius-sm); }
.ccs-app .ccs-chips--mitre a { color: var(--ccs-text); }
.ccs-app .ccs-chips--mitre a:hover { color: var(--ccs-accent); }

/* Careers ----------------------------------------------------------------- */

.ccs-careers { display: flex; flex-direction: column; gap: var(--ccs-space-3); }
.ccs-career { padding: 0; }
.ccs-career.is-active { border-color: var(--ccs-accent); }
.ccs-career__summary {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: var(--ccs-space-3);
	padding: var(--ccs-space-4) var(--ccs-space-5);
	cursor: pointer;
	list-style: none;
}
.ccs-career__summary::-webkit-details-marker { display: none; }
.ccs-career__summary::after { content: "+"; margin-left: auto; color: var(--ccs-text-muted); font-size: 18px; }
.ccs-career[open] .ccs-career__summary::after { content: "–"; }
.ccs-career__title { font-size: 15px; font-weight: 600; }
.ccs-career__entry { font-size: 12px; }
.ccs-career__body { padding: 0 var(--ccs-space-5) var(--ccs-space-5); border-top: 1px solid var(--ccs-border); }
.ccs-career__body > p:first-child { margin-top: var(--ccs-space-4) !important; color: var(--ccs-text); }
.ccs-career__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ccs-space-6); margin: var(--ccs-space-2) 0 var(--ccs-space-4); }
.ccs-career__body .ccs-btn { margin-top: var(--ccs-space-3); }

.ccs-cert-path { counter-reset: ccs-cert; display: flex; flex-direction: column; gap: 6px; }
.ccs-app .ccs-cert-path li { counter-increment: ccs-cert; position: relative; padding-left: 28px; font-size: 13px; }
.ccs-cert-path li::before {
	content: counter(ccs-cert);
	position: absolute;
	left: 0;
	top: 0;
	width: 20px;
	height: 20px;
	border-radius: 50%;
	background: var(--ccs-accent-soft);
	color: var(--ccs-accent);
	font-size: 11px;
	font-weight: 700;
	line-height: 20px;
	text-align: center;
}

/* Readiness report -------------------------------------------------------- */

.ccs-report { max-width: 900px; padding: var(--ccs-space-6); }
.ccs-report__head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: var(--ccs-space-5); padding-bottom: var(--ccs-space-5); border-bottom: 1px solid var(--ccs-border); }
.ccs-app .ccs-report__name { margin: var(--ccs-space-1) 0 !important; font-size: 26px; font-weight: 700; }
.ccs-report__score { display: flex; flex-direction: column; align-items: flex-end; }
.ccs-report__big { color: var(--ccs-accent); font-size: 48px; font-weight: 800; line-height: 1; }
.ccs-report__facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ccs-space-4); margin: var(--ccs-space-5) 0; }
.ccs-report__facts dt { color: var(--ccs-text-muted); font-size: 12px; }
.ccs-report__facts dd { margin: 2px 0 0; font-size: 18px; font-weight: 700; }
.ccs-skill-list--report { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ccs-space-3) var(--ccs-space-6); padding: 0; }
.ccs-report__foot { margin-top: var(--ccs-space-5) !important; }

@media print {
	body.ccs-app-body { background: #fff !important; }
	.ccs-app .ccs-sidebar,
	.ccs-app .ccs-topbar,
	.ccs-no-print,
	.ccs-guide,
	.ccs-overlay { display: none !important; }
	.ccs-shell { display: block !important; background: #fff !important; }
	.ccs-content { max-width: none !important; padding: 0 !important; }
	.ccs-app,
	.ccs-app .ccs-report { color: #111 !important; background: #fff !important; border: 0 !important; }
	.ccs-app .ccs-muted, .ccs-app .ccs-help, .ccs-report__facts dt { color: #555 !important; }
	.ccs-app .ccs-progress { background: #e5e7eb !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ccs-app .ccs-progress__bar { background: #0284c7 !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
	.ccs-app .ccs-table th { background: #f3f4f6 !important; color: #333 !important; position: static; }
	.ccs-app .ccs-table td { color: #111 !important; border-color: #e5e7eb !important; }
	.ccs-report__big { color: #0284c7 !important; }
}

/* Welcome guide ----------------------------------------------------------- */

body.ccs-guide-open { overflow: hidden; }

.ccs-guide {
	position: fixed;
	inset: 0;
	z-index: 200;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--ccs-space-4);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.ccs-guide[hidden] { display: none !important; }
.ccs-guide.is-open { opacity: 1; }

.ccs-guide__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.78); }

.ccs-guide__dialog {
	position: relative;
	display: flex;
	flex-direction: column;
	width: min(820px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	border: 1px solid var(--ccs-border-strong);
	border-radius: var(--ccs-radius-lg);
	background: var(--ccs-card);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}
.ccs-guide.is-open .ccs-guide__dialog { transform: none; }
.ccs-guide__dialog:focus { outline: none; }

.ccs-app .ccs-guide__x { position: absolute; top: 10px; right: 10px; z-index: 2; }

.ccs-guide__step { display: grid; grid-template-columns: 1fr 1fr; min-height: 340px; }
.ccs-guide__step.is-playing .ccs-guide__copy > * { animation: ccs-rise 0.45s ease both; }
.ccs-guide__step.is-playing .ccs-guide__copy > *:nth-child(2) { animation-delay: 0.06s; }
.ccs-guide__step.is-playing .ccs-guide__copy > *:nth-child(3) { animation-delay: 0.12s; }
.ccs-guide__step.is-playing .ccs-guide__copy > *:nth-child(4) { animation-delay: 0.18s; }

.ccs-guide__copy { display: flex; flex-direction: column; justify-content: center; gap: var(--ccs-space-3); padding: var(--ccs-space-6); }
.ccs-guide__count { color: var(--ccs-accent); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ccs-app .ccs-guide__title { font-size: 24px; font-weight: 700; line-height: 1.25; }
.ccs-guide__text { color: var(--ccs-text); font-size: 15px; line-height: 1.6; }
.ccs-guide__tip { padding: var(--ccs-space-2) var(--ccs-space-3); border-left: 2px solid var(--ccs-accent); background: var(--ccs-accent-soft); color: var(--ccs-text-muted); font-size: 13px; }

.ccs-guide__foot {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: var(--ccs-space-3);
	padding: var(--ccs-space-4) var(--ccs-space-6);
	border-top: 1px solid var(--ccs-border);
}
.ccs-guide__dots { display: flex; gap: 6px; }
.ccs-app .ccs-guide__dot {
	width: 8px;
	height: 8px;
	padding: 0;
	border: 0;
	border-radius: 999px;
	background: var(--ccs-border-strong);
	cursor: pointer;
	transition: width 0.2s ease, background-color 0.2s ease;
}
.ccs-app .ccs-guide__dot.is-current { width: 22px; background: var(--ccs-accent); }
.ccs-guide__actions { display: flex; gap: var(--ccs-space-2); }

/* Guide illustrations ----------------------------------------------------- */

.ccs-art {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: var(--ccs-space-4);
	padding: var(--ccs-space-6);
	overflow: hidden;
	border-right: 1px solid var(--ccs-border);
	background:
		radial-gradient(circle at 50% 40%, rgba(56, 189, 248, 0.08), transparent 60%),
		var(--ccs-sidebar);
}

.ccs-art__window {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 8px;
	width: 100%;
	max-width: 300px;
	padding: 14px;
	border: 1px solid var(--ccs-border-strong);
	border-radius: var(--ccs-radius);
	background: var(--ccs-card);
}

/* Shared animation primitives (run only while the step .is-playing). */
.is-playing .ccs-art__slide { animation: ccs-slide-in 0.5s ease both; animation-delay: var(--d, 0s); }
.is-playing .ccs-art__chip { animation: ccs-rise 0.5s ease both; animation-delay: var(--d, 0s); }

/* Welcome */
.ccs-art__center { position: relative; display: flex; align-items: center; justify-content: center; width: 150px; height: 150px; }
.ccs-art__shield {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 84px;
	height: 84px;
	border-radius: 22px;
	background: var(--ccs-accent-soft);
	color: var(--ccs-accent);
}
.is-playing .ccs-art__shield { animation: ccs-pop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) both; }
.ccs-art__ring { position: absolute; inset: 20px; border: 2px solid var(--ccs-accent); border-radius: 50%; opacity: 0; }
.is-playing .ccs-art__ring { animation: ccs-ring 2.4s ease-out 0.4s infinite; }
.is-playing .ccs-art__ring--2 { animation-delay: 1.6s; }
.ccs-art__chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.ccs-art__chip { padding: 4px 10px; border: 1px solid var(--ccs-border-strong); border-radius: 999px; color: var(--ccs-text); font-size: 12px; }

/* Shift + queue tickets */
.ccs-art__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 6px;
	align-self: flex-start;
	padding: 7px 12px;
	border-radius: 6px;
	background: var(--ccs-accent);
	color: var(--ccs-accent-ink);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
}
.is-playing .ccs-art__press { animation: ccs-press 0.5s ease 0.4s both; }
.ccs-art__ticket {
	display: grid;
	grid-template-columns: 4px 1fr auto;
	align-items: center;
	gap: 10px;
	height: 38px;
	padding-right: 10px;
	border: 1px solid var(--ccs-border);
	border-radius: 6px;
	background: var(--ccs-card-elevated);
	overflow: hidden;
}
.ccs-art__ticket b { display: block; height: 7px; border-radius: 4px; background: var(--ccs-border-strong); }
.ccs-art__ticket s { display: block; width: 34px; height: 14px; border-radius: 4px; background: var(--ccs-accent-soft); text-decoration: none; }
.ccs-art__sev { display: block; width: 4px; height: 100%; }
.ccs-art__sev--critical { background: var(--ccs-critical); }
.ccs-art__sev--high { background: var(--ccs-danger); }
.ccs-art__sev--medium { background: var(--ccs-warning); }
.ccs-art__sev--low { background: var(--ccs-success); }
.ccs-art__ticket--focus { border-color: var(--ccs-accent); }
.is-playing .ccs-art__ticket--focus { animation: ccs-glow 1.8s ease-in-out 0.6s infinite; }

.ccs-art__timer { display: block; width: 46px; height: 6px; border-radius: 4px; background: var(--ccs-border); overflow: hidden; }
.ccs-art__timer-bar { display: block; width: 100%; height: 100%; background: var(--ccs-warning); transform-origin: left; }
.is-playing .ccs-art__timer-bar { animation: ccs-drain 6s linear both; }
.is-playing .ccs-art__timer--slow .ccs-art__timer-bar { animation-duration: 14s; background: var(--ccs-text-subtle); }
.is-playing .ccs-art__timer--slower .ccs-art__timer-bar { animation-duration: 24s; background: var(--ccs-text-subtle); }

.ccs-art__cursor {
	position: absolute;
	right: 26px;
	top: 18px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(245, 247, 250, 0.9);
	box-shadow: 0 0 0 4px rgba(245, 247, 250, 0.15);
}
.is-playing .ccs-art__cursor { animation: ccs-cursor 2.6s ease-in-out 0.3s infinite; }

/* Investigate */
.ccs-art__window--split { flex-direction: row; max-width: 330px; }
.ccs-art__main { display: flex; flex: 1; flex-direction: column; gap: 6px; min-width: 0; }
.ccs-art__tabs { display: flex; gap: 4px; margin-bottom: 4px; }
.ccs-art__tabs span { width: 30px; height: 8px; border-radius: 3px; background: var(--ccs-border); }
.ccs-art__tabs span.is-on { background: var(--ccs-accent); }
.is-playing .ccs-art__tabs span:nth-child(2) { animation: ccs-tab 3.2s steps(1) 0.6s infinite; }
.ccs-art__row { display: grid; grid-template-columns: 1fr 1.4fr 14px; align-items: center; gap: 6px; height: 22px; padding: 0 6px; border-radius: 4px; }
.ccs-art__row b, .ccs-art__row s { display: block; height: 6px; border-radius: 3px; background: var(--ccs-border-strong); }
.ccs-art__row em { display: block; width: 14px; height: 14px; border: 1px solid var(--ccs-border-strong); border-radius: 3px; }
.is-playing .ccs-art__row--scan { animation: ccs-scan 3.2s ease 0.4s infinite; }
.is-playing .ccs-art__add { animation: ccs-add 3.2s ease 0.4s infinite; }
.ccs-art__side { display: flex; flex-direction: column; gap: 6px; width: 80px; padding-left: 10px; border-left: 1px solid var(--ccs-border); }
.ccs-art__side-title { display: block; width: 50px; height: 6px; border-radius: 3px; background: var(--ccs-text-subtle); }
.ccs-art__ev { height: 30px; border: 1px solid var(--ccs-accent); border-radius: 4px; background: var(--ccs-accent-soft); opacity: 0; }
.is-playing .ccs-art__ev { animation: ccs-ev 3.2s ease 0.4s infinite; }

/* Notes */
.ccs-art__note { display: flex; flex-direction: column; gap: 10px; min-height: 120px; padding: 12px; border: 1px solid var(--ccs-border-strong); border-radius: 6px; background: var(--ccs-bg); }
.ccs-art__type { display: block; width: 0; height: 7px; border-radius: 4px; background: var(--ccs-text-muted); }
.is-playing .ccs-art__type { animation: ccs-type 0.7s steps(12) both; animation-delay: var(--d, 0s); }
.ccs-art__saved { align-self: flex-end; display: inline-flex; align-items: center; gap: 4px; color: var(--ccs-success); font-size: 11px; opacity: 0; }
.is-playing .ccs-art__saved { animation: ccs-rise 0.4s ease 3.2s both; }

/* Decide */
.ccs-art__steps { display: flex; justify-content: space-between; margin-bottom: 6px; }
.ccs-art__stepdot {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 26px;
	border-radius: 50%;
	background: var(--ccs-border);
	color: var(--ccs-text-muted);
	font-size: 11px;
	font-weight: 700;
}
.is-playing .ccs-art__stepdot { animation: ccs-step 0.4s ease both; animation-delay: calc(var(--d, 0s) + 0.3s); }
.ccs-art__choice { height: 30px; border: 1px solid var(--ccs-border); border-radius: 6px; background: var(--ccs-card-elevated); }
.is-playing .ccs-art__pick { animation: ccs-pick 0.4s ease both; animation-delay: calc(var(--d, 0s) + 0.4s); }

/* Score */
.ccs-art__window--score { align-items: center; }
.ccs-art__score { display: flex; align-items: baseline; gap: 4px; color: var(--ccs-success); }
.ccs-art__count { font-size: 48px; font-weight: 800; line-height: 1; font-variant-numeric: tabular-nums; }
.ccs-art__count::after { content: "96"; }
.is-playing .ccs-art__count::after { animation: ccs-count 1.2s steps(1) both; }
.ccs-art__score small { color: var(--ccs-text-subtle); font-size: 16px; }
.ccs-art__bars { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.ccs-art__bars span { display: block; height: 7px; border-radius: 4px; background: var(--ccs-success); width: var(--w); transform-origin: left; }
.is-playing .ccs-art__bars span { animation: ccs-grow 0.8s ease both; animation-delay: var(--d, 0s); }
.ccs-art__levelup { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--ccs-accent-soft); color: var(--ccs-accent); font-size: 12px; font-weight: 600; }
.is-playing .ccs-art__levelup { animation: ccs-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 1.4s both; }

/* Ready */
.ccs-art__grid { display: grid; grid-template-columns: repeat(2, 110px); gap: 12px; }
.ccs-art__tile {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 8px;
	padding: 16px 8px;
	border: 1px solid var(--ccs-border-strong);
	border-radius: var(--ccs-radius);
	background: var(--ccs-card);
	color: var(--ccs-accent);
}
.ccs-art__tile em { color: var(--ccs-text); font-size: 12px; font-style: normal; }
.is-playing .ccs-art__tile { animation: ccs-pop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: var(--d, 0s); }

/* Keyframes */
@keyframes ccs-rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes ccs-slide-in { from { opacity: 0; transform: translateX(-16px); } to { opacity: 1; transform: none; } }
@keyframes ccs-pop { from { opacity: 0; transform: scale(0.6); } to { opacity: 1; transform: none; } }
@keyframes ccs-ring { 0% { opacity: 0.6; transform: scale(0.7); } 100% { opacity: 0; transform: scale(1.5); } }
@keyframes ccs-press { 0%, 100% { transform: none; } 50% { transform: scale(0.92); filter: brightness(1.2); } }
@keyframes ccs-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(56, 189, 248, 0); } 50% { box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.18); } }
@keyframes ccs-drain { from { transform: scaleX(1); } to { transform: scaleX(0.08); } }
@keyframes ccs-cursor { 0%, 100% { transform: translate(0, 0); } 40% { transform: translate(-8px, 6px) scale(0.85); } 50% { transform: translate(-8px, 6px) scale(1); } }
@keyframes ccs-tab { 0% { background: var(--ccs-border); } 50% { background: var(--ccs-accent); } }
@keyframes ccs-scan { 0%, 20% { background: transparent; } 35%, 70% { background: rgba(56, 189, 248, 0.1); } 100% { background: transparent; } }
@keyframes ccs-add { 0%, 40% { background: transparent; border-color: var(--ccs-border-strong); } 50%, 85% { background: var(--ccs-accent); border-color: var(--ccs-accent); } 100% { background: transparent; } }
@keyframes ccs-ev { 0%, 45% { opacity: 0; transform: translateX(-12px); } 55%, 85% { opacity: 1; transform: none; } 100% { opacity: 0; } }
@keyframes ccs-type { from { width: 0; } to { width: var(--w, 80%); } }
@keyframes ccs-step { to { background: var(--ccs-accent); color: var(--ccs-accent-ink); } }
@keyframes ccs-pick { to { border-color: var(--ccs-accent); background: var(--ccs-accent-soft); } }
@keyframes ccs-grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ccs-count {
	0% { content: "0"; } 10% { content: "12"; } 20% { content: "27"; } 30% { content: "41"; } 40% { content: "55"; }
	50% { content: "66"; } 60% { content: "75"; } 70% { content: "83"; } 80% { content: "89"; } 90% { content: "94"; } 100% { content: "96"; }
}

/* Responsive -------------------------------------------------------------- */

@media (max-width: 1024px) {
	.ccs-career__cols { grid-template-columns: minmax(0, 1fr); gap: var(--ccs-space-4); }
	.ccs-report__facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ccs-skill-list--report { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 720px) {
	.ccs-guide { align-items: flex-end; padding: 0; }
	.ccs-guide__dialog { max-height: 92vh; border-radius: var(--ccs-radius-lg) var(--ccs-radius-lg) 0 0; }
	.ccs-guide__step { grid-template-columns: minmax(0, 1fr); min-height: 0; }
	.ccs-art { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--ccs-border); padding: var(--ccs-space-5); }
	.ccs-guide__copy { padding: var(--ccs-space-5); }
	.ccs-app .ccs-guide__title { font-size: 20px; }
	.ccs-guide__foot { padding: var(--ccs-space-3) var(--ccs-space-5); }
	.ccs-guide__actions { flex: 1; justify-content: flex-end; }
	.ccs-inline-form { flex-wrap: wrap; }
	.ccs-danger-zone { padding-left: 0; border-left: 0; }
	.ccs-settings__bar .ccs-btn { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
	.ccs-guide, .ccs-guide__dialog { transition: none !important; }
	.ccs-guide *, .ccs-guide *::before, .ccs-guide *::after { animation: none !important; }
	.ccs-art__type { width: var(--w, 80%); }
	.ccs-art__saved, .ccs-art__ev { opacity: 1; }
}

/* ==========================================================================
   v1.2 — Plans & Lab Library
   ========================================================================== */

.ccs-plan-badge {
	display: inline-flex;
	align-items: center;
	padding: 1px 8px;
	border: 1px solid var(--ccs-border-strong);
	border-radius: 999px;
	color: var(--ccs-text-muted);
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
}
.ccs-plan-badge.is-pro { border-color: transparent; background: linear-gradient(90deg, rgba(56, 189, 248, 0.18), rgba(34, 197, 94, 0.18)); color: var(--ccs-accent); }

.ccs-app .ccs-upgrade-card {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: var(--ccs-space-3);
	padding: var(--ccs-space-3) var(--ccs-space-4);
	border: 1px solid rgba(56, 189, 248, 0.35);
	border-radius: var(--ccs-radius);
	background: var(--ccs-accent-soft);
	transition: border-color 0.15s ease;
}
.ccs-app .ccs-upgrade-card:hover { border-color: var(--ccs-accent); }
.ccs-upgrade-card__title { display: inline-flex; align-items: center; gap: 6px; color: var(--ccs-accent); font-size: 13px; font-weight: 700; }
.ccs-upgrade-card__text { color: var(--ccs-text-muted); font-size: 12px; line-height: 1.4; }

.ccs-notice.is-upgrade { color: var(--ccs-warning); }
.ccs-notice.is-upgrade .ccs-link { margin-left: 4px; font-size: inherit; }

/* Lab Library */
.ccs-labs { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ccs-space-4); margin-bottom: var(--ccs-space-4); }
.ccs-lab { display: flex; flex-direction: column; gap: var(--ccs-space-2); }
.ccs-lab__meta { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-2); }
.ccs-lab__meta .ccs-tag .ccs-svg { display: inline-block; margin-right: 2px; vertical-align: -1px; }
.ccs-app .ccs-lab__title { font-size: 15px; font-weight: 600; }
.ccs-lab__desc { flex: 1; color: var(--ccs-text-muted); font-size: 13px; }
.ccs-lab__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-3); margin-top: var(--ccs-space-2); padding-top: var(--ccs-space-3); border-top: 1px solid var(--ccs-border); }
.ccs-lab__score { font-size: 12px; font-weight: 600; }
.ccs-lab.is-locked { background: var(--ccs-sidebar); }
.ccs-lab.is-locked .ccs-lab__title, .ccs-lab.is-locked .ccs-lab__desc { opacity: 0.7; }
.ccs-section-title .ccs-badge { margin-left: var(--ccs-space-2); vertical-align: 1px; }

/* Plans */
.ccs-plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ccs-space-4); margin-bottom: var(--ccs-space-4); }
.ccs-plan { display: flex; flex-direction: column; align-items: flex-start; gap: var(--ccs-space-2); }
.ccs-plan.is-current { border-color: var(--ccs-border-strong); }
.ccs-plan--pro { border-color: rgba(56, 189, 248, 0.45); background: linear-gradient(180deg, rgba(56, 189, 248, 0.06), transparent 60%), var(--ccs-card); }
.ccs-plan__name { display: inline-flex; align-items: center; gap: 6px; color: var(--ccs-text-muted); font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; }
.ccs-plan--pro .ccs-plan__name { color: var(--ccs-accent); }
.ccs-plan__price { font-size: 26px; font-weight: 800; }
.ccs-plan .ccs-btn--block { margin-top: var(--ccs-space-2); }
.ccs-plan__actions { display: flex; flex-direction: column; gap: var(--ccs-space-2); width: 100%; margin-top: var(--ccs-space-2); }
.ccs-plan__actions .ccs-btn--block { margin-top: 0; }
.ccs-app .ccs-table--plans th[scope="row"] { position: static; background: transparent; color: var(--ccs-text); font-size: 13px; font-weight: 500; letter-spacing: normal; text-transform: none; white-space: normal; }
.ccs-app .ccs-table--plans td:last-child { color: var(--ccs-accent); }

/* Settings plan row */
.ccs-settings__plan { margin-bottom: var(--ccs-space-4); }
.ccs-settings__plan-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ccs-space-3); }
.ccs-settings__plan-row .ccs-help { margin-left: var(--ccs-space-2); }

/* Report preview (Free) */
.ccs-report.is-preview .ccs-table--report tbody tr:nth-child(n+3) td { filter: blur(4px); user-select: none; }
@media print { .ccs-report.is-preview { display: none !important; } }

@media (max-width: 720px) {
	.ccs-plans { grid-template-columns: minmax(0, 1fr); }
	.ccs-labs { grid-template-columns: minmax(0, 1fr); }
}

/* ==========================================================================
   v1.3 — Icon system (unique class so site-wide CSS cannot resize icons)
   ========================================================================== */
.ccs-app .ccs-svg { display: block; flex-shrink: 0; max-width: none; background: none; border: 0; border-radius: 0; padding: 0; }
.ccs-app .ccs-btn .ccs-svg,
.ccs-app .ccs-tag .ccs-svg,
.ccs-app .ccs-upgrade-card__title .ccs-svg,
.ccs-app .ccs-plan__name .ccs-svg,
.ccs-app .ccs-hints summary .ccs-svg { display: inline-block; vertical-align: -0.15em; }
.ccs-app .ccs-nav__link .ccs-svg { opacity: .85; }
.ccs-app .ccs-nav__link[aria-current="page"] .ccs-svg,
.ccs-app .ccs-nav__link:hover .ccs-svg { opacity: 1; }

/* ==========================================================================
   v1.3 — Minimal app motion (respects reduced motion)
   ========================================================================== */
@keyframes ccs-m-ping { 0% { transform: scale(1); opacity: .5; } 80%, 100% { transform: scale(2.6); opacity: 0; } }
@keyframes ccs-m-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes ccs-m-in   { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

.ccs-app .ccs-dot--success { position: relative; }
.ccs-app .ccs-dot--success::after {
	content: ""; position: absolute; inset: 0; border-radius: 50%;
	background: inherit; animation: ccs-m-ping 2.2s cubic-bezier(0, 0, .2, 1) infinite;
}
.ccs-app .ccs-badge--danger, .ccs-app .ccs-sla.is-breached { animation: ccs-m-breathe 2.6s ease-in-out infinite; }
@keyframes ccs-m-breathe { 0%, 100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } 50% { box-shadow: 0 0 0 4px rgba(239, 68, 68, .14); } }

.ccs-app .ccs-progress__bar { transform-origin: left; animation: ccs-m-fill .9s cubic-bezier(.4, 0, .2, 1) both; }
.ccs-app .ccs-content > * { animation: ccs-m-in .35s ease both; }
.ccs-app .ccs-content > *:nth-child(2) { animation-delay: .04s; }
.ccs-app .ccs-content > *:nth-child(3) { animation-delay: .08s; }
.ccs-app .ccs-content > *:nth-child(4) { animation-delay: .12s; }
.ccs-app .ccs-content > *:nth-child(n+5) { animation-delay: .16s; }
.ccs-app .ccs-card { transition: border-color .2s ease, transform .2s ease; }
.ccs-app a.ccs-card:hover, .ccs-app .ccs-lab:hover, .ccs-app .ccs-course:hover { transform: translateY(-2px); }

@media (prefers-reduced-motion: reduce) {
	.ccs-app .ccs-dot--success::after,
	.ccs-app .ccs-badge--danger, .ccs-app .ccs-sla.is-breached,
	.ccs-app .ccs-progress__bar,
	.ccs-app .ccs-content > * { animation: none; }
	.ccs-app .ccs-card { transition: none; }
}

/* ==========================================================================
   v1.3 — Academy
   ========================================================================== */
.ccs-app .ccs-tone--blue   { --tone: #3b82f6; --tone-soft: rgba(59, 130, 246, .12); }
.ccs-app .ccs-tone--cyan   { --tone: #22d3ee; --tone-soft: rgba(34, 211, 238, .12); }
.ccs-app .ccs-tone--violet { --tone: #a78bfa; --tone-soft: rgba(167, 139, 250, .12); }
.ccs-app .ccs-tone--orange { --tone: #f59e0b; --tone-soft: rgba(245, 158, 11, .12); }
.ccs-app .ccs-tone--green  { --tone: #22c55e; --tone-soft: rgba(34, 197, 94, .12); }
.ccs-app .ccs-tone--red    { --tone: #f87171; --tone-soft: rgba(248, 113, 113, .12); }

/* Hero */
.ccs-app .ccs-acad-hero { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(260px, 1fr); gap: var(--ccs-space-6); padding: var(--ccs-space-6); position: relative; overflow: hidden; }
.ccs-app .ccs-acad-hero::before { content: ""; position: absolute; inset: -40% auto auto -10%; width: 420px; height: 420px; background: radial-gradient(circle, rgba(56, 189, 248, .10), transparent 65%); pointer-events: none; }
.ccs-app .ccs-acad-hero__main { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: var(--ccs-space-3); }
.ccs-app .ccs-acad-hero__title { font-size: 24px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; }
.ccs-app .ccs-acad-path { display: flex; flex-wrap: wrap; gap: 6px; margin: var(--ccs-space-2) 0; padding: 0; list-style: none; counter-reset: none; }
.ccs-app .ccs-acad-path li { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 6px; border: 1px solid var(--ccs-border); border-radius: 999px; background: var(--ccs-card-elevated); color: var(--ccs-text-muted); font-size: 12px; }
.ccs-app .ccs-acad-path li span { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ccs-accent-soft); color: var(--ccs-accent); }
.ccs-app .ccs-acad-path li + li::before { content: ""; width: 10px; height: 1px; margin-left: -12px; margin-right: 2px; background: var(--ccs-border-strong); }
.ccs-app .ccs-acad-hero__stats { position: relative; display: flex; flex-direction: column; gap: var(--ccs-space-2); padding: var(--ccs-space-5); border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: var(--ccs-card-elevated); }
.ccs-app .ccs-acad-rank { display: flex; align-items: center; gap: var(--ccs-space-3); }
.ccs-app .ccs-acad-rank__badge { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; background: var(--ccs-accent-soft); color: var(--ccs-accent); }
.ccs-app .ccs-acad-rank__title { font-size: 16px; font-weight: 700; }
.ccs-app .ccs-acad-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--ccs-space-2); margin: var(--ccs-space-2) 0 0; }
.ccs-app .ccs-acad-kpis div { padding: 8px 10px; border-radius: var(--ccs-radius-sm); background: var(--ccs-card); border: 1px solid var(--ccs-border); }
.ccs-app .ccs-acad-kpis dt { display: flex; align-items: center; gap: 4px; color: var(--ccs-text-muted); font-size: 11px; }
.ccs-app .ccs-acad-kpis dd { margin: 2px 0 0; font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

/* Course cards */
.ccs-app .ccs-courses { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--ccs-space-4); }
.ccs-app .ccs-course { display: flex; flex-direction: column; gap: var(--ccs-space-3); padding: var(--ccs-space-5); border-top: 2px solid var(--tone); }
.ccs-app .ccs-course__top { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-2); }
.ccs-app .ccs-course__icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex-shrink: 0; border-radius: 10px; background: var(--tone-soft); color: var(--tone); }
.ccs-app .ccs-course__tags { display: flex; gap: 6px; }
.ccs-app .ccs-course__title { font-size: 16px; font-weight: 700; }
.ccs-app .ccs-course__desc { color: var(--ccs-text-muted); font-size: 13px; margin-top: -6px; }
.ccs-app .ccs-course__progress { display: flex; align-items: center; gap: var(--ccs-space-2); }
.ccs-app .ccs-course__progress .ccs-progress { flex: 1; }
.ccs-app .ccs-course .ccs-progress__bar { background: var(--tone); }
.ccs-app .ccs-course__lessons { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--ccs-border); }
.ccs-app .ccs-course__lessons li { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--ccs-border); font-size: 13px; }
.ccs-app .ccs-course__lessons li:last-child { border-bottom: 0; }
.ccs-app .ccs-course__lessons a { flex: 1; color: var(--ccs-text); }
.ccs-app .ccs-course__lessons a:hover { color: var(--tone); }
.ccs-app .ccs-course__lessons li > span:nth-child(2) { flex: 1; color: var(--ccs-text-muted); }
.ccs-app .ccs-course__num { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 50%; border: 1px solid var(--ccs-border-strong); color: var(--ccs-text-muted); font-size: 11px; font-weight: 600; }
.ccs-app .ccs-course__lessons li.is-done .ccs-course__num { border-color: transparent; background: var(--ccs-success-soft); color: var(--ccs-success); }
.ccs-app .ccs-course__min { color: var(--ccs-text-subtle); font-size: 12px; white-space: nowrap; }
.ccs-app .ccs-course.is-locked .ccs-course__icon { filter: grayscale(.6); opacity: .7; }
.ccs-app .ccs-course .ccs-btn { align-self: flex-start; }

/* Lesson page */
.ccs-app .ccs-lesson { max-width: 820px; margin: 0 auto; }
.ccs-app .ccs-crumbs { display: flex; gap: 8px; margin-bottom: var(--ccs-space-4); color: var(--ccs-text-subtle); font-size: 12px; }
.ccs-app .ccs-crumbs a { color: var(--ccs-text-muted); }
.ccs-app .ccs-crumbs a:hover { color: var(--ccs-accent); }
.ccs-app .ccs-lesson__head { display: flex; align-items: center; gap: var(--ccs-space-4); margin-bottom: var(--ccs-space-5); }
.ccs-app .ccs-lesson__head .ccs-lesson__heading { flex: 1; min-width: 0; }
.ccs-app .ccs-lesson__title { font-size: 24px; font-weight: 700; line-height: 1.25; letter-spacing: -.01em; }
.ccs-app .ccs-lesson__xp { position: relative; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 1px solid var(--ccs-border); border-radius: 999px; background: var(--ccs-card); color: var(--ccs-warning); font-size: 13px; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.ccs-app .ccs-xp-pop { position: absolute; right: 8px; top: -6px; color: var(--ccs-warning); font-size: 13px; font-weight: 800; pointer-events: none; animation: ccs-xp-pop 1.4s ease forwards; }
@keyframes ccs-xp-pop { 0% { opacity: 0; transform: translateY(6px) scale(.8); } 20% { opacity: 1; transform: translateY(-6px) scale(1.1); } 100% { opacity: 0; transform: translateY(-26px); } }
.ccs-app .ccs-lesson__body { display: flex; flex-direction: column; gap: var(--ccs-space-5); font-size: 15px; line-height: 1.7; }
.ccs-app .ccs-lesson__body p { color: var(--ccs-text); }
.ccs-app .ccs-lesson__lead { font-size: 17px; line-height: 1.6; color: var(--ccs-text) !important; }
.ccs-app .ccs-lesson code { padding: 1px 6px; border-radius: 4px; background: var(--ccs-card-elevated); border: 1px solid var(--ccs-border); font-family: var(--ccs-font-mono); font-size: .86em; color: var(--ccs-accent); }
.ccs-app .ccs-lblock__title { display: flex; align-items: center; gap: 8px; margin-bottom: var(--ccs-space-3); font-size: 15px; font-weight: 700; }
.ccs-app .ccs-lpoints { display: flex; flex-direction: column; gap: 10px; margin: 0; padding: 0; list-style: none; }
.ccs-app .ccs-lpoints li { position: relative; padding-left: 22px; color: var(--ccs-text-muted); }
.ccs-app .ccs-lpoints li strong { color: var(--ccs-text); }
.ccs-app .ccs-lpoints li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--tone); transform: rotate(45deg); }

.ccs-app .ccs-lnote { display: flex; gap: var(--ccs-space-3); padding: var(--ccs-space-4); border-radius: var(--ccs-radius); border: 1px solid var(--ccs-border); background: var(--ccs-card); }
.ccs-app .ccs-lnote strong { display: block; margin-bottom: 2px; font-size: 13px; }
.ccs-app .ccs-lnote p { margin: 0; font-size: 14px; color: var(--ccs-text-muted) !important; }
.ccs-app .ccs-lnote__icon { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex-shrink: 0; border-radius: 8px; }
.ccs-app .ccs-lnote--analogy .ccs-lnote__icon { background: var(--ccs-warning-soft); color: var(--ccs-warning); }
.ccs-app .ccs-lnote--analogy { border-left: 3px solid var(--ccs-warning); }
.ccs-app .ccs-lnote--tip .ccs-lnote__icon { background: var(--ccs-accent-soft); color: var(--ccs-accent); }
.ccs-app .ccs-lnote--tip { border-left: 3px solid var(--ccs-accent); }

/* Annotated sample */
.ccs-app .ccs-sample { margin: 0; border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: #070a10; overflow: hidden; }
.ccs-app .ccs-sample__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-2); padding: 8px 12px; border-bottom: 1px solid var(--ccs-border); background: var(--ccs-card); color: var(--ccs-text-muted); font-size: 12px; }
.ccs-app .ccs-sample__head > span { display: inline-flex; align-items: center; gap: 6px; }
.ccs-app .ccs-sample__code { margin: 0; padding: 12px 0; overflow-x: auto; font-family: var(--ccs-font-mono); font-size: 12.5px; line-height: 1.75; color: #cbd5e1; background: transparent; border: 0; white-space: pre; }
.ccs-app .ccs-sample__line { display: block; position: relative; padding: 0 14px 0 36px; transition: background .25s ease; }
.ccs-app .ccs-sample__pin { position: absolute; left: 10px; top: 50%; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; margin-top: -8.5px; border-radius: 50%; background: var(--ccs-warning); color: #111; font-size: 10px; font-weight: 800; font-family: var(--ccs-font); opacity: 0; transform: scale(.4); transition: opacity .25s ease, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.ccs-app .ccs-sample.is-annotated .ccs-sample__line.has-note { background: rgba(245, 158, 11, .07); }
.ccs-app .ccs-sample.is-annotated .ccs-sample__pin { opacity: 1; transform: none; }
.ccs-app .ccs-sample__notes { margin: 0; padding: 12px 14px 14px 36px; border-top: 1px solid var(--ccs-border); background: var(--ccs-card); color: var(--ccs-text-muted); font-size: 13px; line-height: 1.55; display: flex; flex-direction: column; gap: 6px; }
.ccs-app .ccs-sample__notes { list-style: none; counter-reset: ccs-note; padding-left: 14px; }
.ccs-app .ccs-sample__notes li { position: relative; padding-left: 26px; counter-increment: ccs-note; }
.ccs-app .ccs-sample__notes li::before { content: counter(ccs-note); position: absolute; left: 0; top: 1px; display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: var(--ccs-warning); color: #111; font-size: 10px; font-weight: 800; }
.ccs-app .ccs-sample.is-annotated .ccs-sample__notes li { animation: ccs-m-in .3s ease both; }

/* Compare */
.ccs-app .ccs-compare { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ccs-space-3); }
.ccs-app .ccs-compare__col { border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); overflow: hidden; background: var(--ccs-card); }
.ccs-app .ccs-compare__title { padding: 8px 12px; border-bottom: 1px solid var(--ccs-border); font-size: 12px; font-weight: 700; }
.ccs-app .ccs-compare__col--left .ccs-compare__title { color: var(--ccs-text-muted); }
.ccs-app .ccs-compare__col--right { border-color: rgba(56, 189, 248, .35); }
.ccs-app .ccs-compare__col--right .ccs-compare__title { color: var(--ccs-accent); }
.ccs-app .ccs-compare pre { margin: 0; padding: 12px; overflow-x: auto; font-family: var(--ccs-font-mono); font-size: 12px; line-height: 1.7; color: #cbd5e1; background: transparent; border: 0; white-space: pre; }

/* Spot the red flag */
.ccs-app .ccs-spot { padding: var(--ccs-space-5); border: 1px dashed rgba(239, 68, 68, .35); border-radius: var(--ccs-radius-lg); background: linear-gradient(180deg, rgba(239, 68, 68, .04), transparent 60%); }
.ccs-app .ccs-spot__head { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-2); }
.ccs-app .ccs-spot__badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; background: var(--ccs-danger-soft); color: var(--ccs-danger); font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ccs-app .ccs-spot__prompt { margin: var(--ccs-space-3) 0; font-size: 14px; }
.ccs-app .ccs-spot__lines { display: flex; flex-direction: column; gap: 6px; }
.ccs-app .ccs-spot__line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius-sm); background: #070a10; color: #cbd5e1; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .1s ease; }
.ccs-app .ccs-spot__line code { padding: 0; border: 0; background: none; color: inherit; font-size: 12.5px; white-space: pre-wrap; word-break: break-word; flex: 1; min-width: 0; }
.ccs-app .ccs-spot__line:hover { border-color: var(--ccs-border-strong); }
.ccs-app .ccs-spot__line:active { transform: scale(.995); }
.ccs-app .ccs-spot__tick { width: 16px; height: 16px; flex-shrink: 0; border: 1.5px solid var(--ccs-border-strong); border-radius: 4px; transition: all .15s ease; }
.ccs-app .ccs-spot__line[aria-pressed="true"] { border-color: var(--ccs-warning); background: rgba(245, 158, 11, .06); }
.ccs-app .ccs-spot__line[aria-pressed="true"] .ccs-spot__tick { border-color: var(--ccs-warning); background: var(--ccs-warning); box-shadow: inset 0 0 0 3px #070a10; }
.ccs-app .ccs-spot__line.is-flag { border-color: var(--ccs-danger); background: rgba(239, 68, 68, .08); }
.ccs-app .ccs-spot__line.is-flag .ccs-spot__tick { border-color: var(--ccs-danger); background: var(--ccs-danger); }
.ccs-app .ccs-spot__line.is-miss { border-color: var(--ccs-danger); border-style: dashed; }
.ccs-app .ccs-spot__line.is-wrong { opacity: .5; }
.ccs-app .ccs-spot__why { flex-basis: 100%; padding-left: 26px; color: #fca5a5; font-size: 12.5px; font-family: var(--ccs-font); animation: ccs-m-in .3s ease both; }
.ccs-app .ccs-spot__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-3); margin-top: var(--ccs-space-4); }

.ccs-app .ccs-lfeedback { margin: 0; font-size: 13px; color: var(--ccs-text-muted); }
.ccs-app .ccs-lfeedback.is-ok { color: var(--ccs-success); }
.ccs-app .ccs-lfeedback.is-bad { color: #fca5a5; }

/* Quiz */
.ccs-app .ccs-quiz { display: flex; flex-direction: column; gap: var(--ccs-space-3); margin-top: var(--ccs-space-7); padding-top: var(--ccs-space-5); border-top: 1px solid var(--ccs-border); }
.ccs-app .ccs-quiz__head { display: flex; align-items: baseline; justify-content: space-between; gap: var(--ccs-space-2); flex-wrap: wrap; }
.ccs-app .ccs-quiz__head .ccs-lblock__title { margin: 0; }
.ccs-app .ccs-q { margin: 0; padding: var(--ccs-space-4); border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: var(--ccs-card); transition: border-color .2s ease; }
.ccs-app .ccs-q legend { display: flex; gap: 10px; float: left; width: 100%; margin-bottom: var(--ccs-space-3); padding: 0; font-size: 14px; font-weight: 600; }
.ccs-app .ccs-q__n { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; flex-shrink: 0; border-radius: 6px; background: var(--ccs-card-elevated); color: var(--ccs-text-muted); font-size: 12px; }
.ccs-app .ccs-q__opts { clear: both; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ccs-app .ccs-q__opt { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius-sm); background: var(--ccs-card-elevated); color: var(--ccs-text); font-size: 13px; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.ccs-app .ccs-q__opt:hover:not(:disabled) { border-color: var(--ccs-accent); }
.ccs-app .ccs-q__opt:disabled { cursor: default; }
.ccs-app .ccs-q__key { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 20px; flex-shrink: 0; border-radius: 5px; border: 1px solid var(--ccs-border-strong); color: var(--ccs-text-muted); font-size: 11px; font-weight: 700; }
.ccs-app .ccs-q__opt.is-right { border-color: var(--ccs-success); background: var(--ccs-success-soft); }
.ccs-app .ccs-q__opt.is-right .ccs-q__key { border-color: var(--ccs-success); background: var(--ccs-success); color: #04130a; }
.ccs-app .ccs-q__opt.is-wrong { border-color: var(--ccs-danger); background: var(--ccs-danger-soft); animation: ccs-shake .35s ease; }
.ccs-app .ccs-q__opt.is-wrong .ccs-q__key { border-color: var(--ccs-danger); color: var(--ccs-danger); }
.ccs-app .ccs-q.is-ok { border-color: rgba(34, 197, 94, .45); }
.ccs-app .ccs-q.is-bad { border-color: rgba(239, 68, 68, .35); }
.ccs-app .ccs-q .ccs-lfeedback:not(:empty) { margin-top: var(--ccs-space-3); }
@keyframes ccs-shake { 0%, 100% { transform: none; } 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }

/* Completion */
.ccs-app .ccs-lesson-done { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-4); margin-top: var(--ccs-space-6); padding: var(--ccs-space-5); border: 1px solid rgba(34, 197, 94, .35); border-radius: var(--ccs-radius-lg); background: linear-gradient(135deg, rgba(34, 197, 94, .08), transparent 60%); opacity: 0; transform: translateY(8px); transition: opacity .4s ease, transform .4s ease; }
.ccs-app .ccs-lesson-done.is-shown { opacity: 1; transform: none; }
.ccs-app .ccs-lesson-done__burst { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ccs-success); color: #04130a; box-shadow: 0 0 0 6px rgba(34, 197, 94, .15); }
.ccs-app .ccs-lesson-done.is-shown .ccs-lesson-done__burst { animation: ccs-pop .5s cubic-bezier(.3, 1.6, .5, 1) both; }
.ccs-app .ccs-lesson-done__text { flex: 1; min-width: 200px; }
.ccs-app .ccs-lesson-done__title { font-size: 16px; font-weight: 700; }
.ccs-app .ccs-lesson-done__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-2); }

.ccs-app .ccs-lesson__nav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ccs-space-3); margin-top: var(--ccs-space-6); }
.ccs-app .ccs-lesson__navlink { display: flex; flex-direction: column; gap: 2px; padding: var(--ccs-space-4); border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: var(--ccs-card); color: var(--ccs-text); font-size: 14px; font-weight: 600; transition: border-color .2s ease; }
.ccs-app .ccs-lesson__navlink:hover { border-color: var(--tone, var(--ccs-accent)); }
.ccs-app .ccs-lesson__navlink--next { text-align: right; grid-column: 2; }

@media (max-width: 900px) {
	.ccs-app .ccs-acad-hero { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 640px) {
	.ccs-app .ccs-acad-hero { padding: var(--ccs-space-4); }
	.ccs-app .ccs-acad-hero__title, .ccs-app .ccs-lesson__title { font-size: 20px; }
	.ccs-app .ccs-courses, .ccs-app .ccs-compare, .ccs-app .ccs-q__opts, .ccs-app .ccs-lesson__nav { grid-template-columns: minmax(0, 1fr); }
	.ccs-app .ccs-lesson__navlink--next { grid-column: auto; }
	.ccs-app .ccs-lesson__head { flex-wrap: wrap; }
	.ccs-app .ccs-lesson__head .ccs-course__icon { display: none; }
	.ccs-app .ccs-spot { padding: var(--ccs-space-4); }
	.ccs-app .ccs-acad-path li + li::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
	.ccs-app .ccs-xp-pop, .ccs-app .ccs-q__opt.is-wrong, .ccs-app .ccs-lesson-done.is-shown .ccs-lesson-done__burst, .ccs-app .ccs-spot__why, .ccs-app .ccs-sample.is-annotated .ccs-sample__notes li { animation: none; }
	.ccs-app .ccs-lesson-done, .ccs-app .ccs-sample__pin { transition: none; }
}

.ccs-app .ccs-tag--xs { padding: 1px 6px; font-size: 10px; }
.ccs-app .ccs-course__lessons li.is-locked a { color: var(--ccs-text-muted); }

/* ==========================================================================
   v1.5 — Cyber Career Lab brand
   ========================================================================== */
.ccs-app .ccs-brand__logo { width: 32px; height: 32px; flex-shrink: 0; object-fit: contain; filter: drop-shadow(0 0 8px rgba(34, 211, 238, .25)); }
.ccs-app .ccs-brand__name { letter-spacing: .01em; text-transform: none; }
.ccs-app .ccs-brand__lab { background: linear-gradient(90deg, #3b82f6, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ccs-app .ccs-brand__sub { font-size: 10.5px; }
.ccs-app .ccs-btn.is-busy { position: relative; padding-left: 30px; opacity: .85; cursor: progress; }
.ccs-app .ccs-btn.is-busy::before { content: ""; position: absolute; left: 10px; top: 50%; width: 12px; height: 12px; margin-top: -6px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: ccs-spin .7s linear infinite; }
@keyframes ccs-spin { to { transform: rotate(360deg); } }

/* ==========================================================================
   v1.5 — Career picker (Start Shift)
   ========================================================================== */
.ccs-app .ccs-picker { padding: var(--ccs-space-5); margin-bottom: var(--ccs-space-5); }
.ccs-app .ccs-picker__title { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.ccs-app .ccs-picker__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: var(--ccs-space-3); margin: var(--ccs-space-4) 0; }
.ccs-app .ccs-pick { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--ccs-space-4); border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: var(--ccs-card-elevated); cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.ccs-app .ccs-pick:hover { border-color: var(--ccs-border-strong); transform: translateY(-1px); }
.ccs-app .ccs-pick input { position: absolute; opacity: 0; pointer-events: none; }
.ccs-app .ccs-pick:has(input:checked), .ccs-app .ccs-pick.is-selected:not(:has(input)) { border-color: var(--ccs-accent); box-shadow: 0 0 0 1px var(--ccs-accent), 0 0 24px rgba(56, 189, 248, .12); }
.ccs-app .ccs-pick:has(input:focus-visible) { outline: 2px solid var(--ccs-accent); outline-offset: 2px; }
.ccs-app .ccs-pick__top { display: flex; align-items: center; justify-content: space-between; }
.ccs-app .ccs-pick__icon { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 9px; background: var(--ccs-accent-soft); color: var(--ccs-accent); }
.ccs-app .ccs-pick__title { font-size: 15px; font-weight: 700; }
.ccs-app .ccs-pick__meta { color: var(--ccs-text-muted); font-size: 12px; line-height: 1.4; }
.ccs-app .ccs-pick__check { position: absolute; right: 10px; bottom: 10px; display: none; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ccs-accent); color: var(--ccs-accent-ink); }
.ccs-app .ccs-pick:has(input:checked) .ccs-pick__check { display: inline-flex; }
.ccs-app .ccs-picker__foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--ccs-space-3); padding-top: var(--ccs-space-4); border-top: 1px solid var(--ccs-border); }
.ccs-app .ccs-picker__foot .ccs-notice { flex-basis: 100%; text-align: right; }
@media (max-width: 640px) { .ccs-app .ccs-picker__foot .ccs-btn { width: 100%; } .ccs-app .ccs-picker__foot .ccs-notice { text-align: left; } }

/* v1.5 — Pro passes */
.ccs-app .ccs-passes { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--ccs-space-4); margin-bottom: var(--ccs-space-3); }
.ccs-app .ccs-pass { position: relative; display: flex; flex-direction: column; gap: 6px; padding: var(--ccs-space-5); }
.ccs-app .ccs-pass.is-featured { border-color: var(--ccs-accent); box-shadow: 0 0 0 1px var(--ccs-accent), 0 10px 30px rgba(56, 189, 248, .1); }
.ccs-app .ccs-pass__ribbon { position: absolute; top: -10px; right: 14px; padding: 2px 10px; border-radius: 999px; background: var(--ccs-accent); color: var(--ccs-accent-ink); font-size: 11px; font-weight: 700; }
.ccs-app .ccs-pass__name { font-size: 14px; font-weight: 700; color: var(--ccs-text-muted); }
.ccs-app .ccs-pass__price { font-size: 28px; font-weight: 800; line-height: 1.1; }
.ccs-app .ccs-pass__desc { flex: 1; color: var(--ccs-text-muted); font-size: 13px; }
.ccs-app .ccs-pass .ccs-btn { margin-top: auto; }

/* Career-aware dashboard (v1.6) ------------------------------------------ */

.ccs-dash-actions {
	display: flex;
	flex-wrap: wrap;
	justify-content: flex-end;
	gap: var(--ccs-space-2);
}

.ccs-career-strip,
.ccs-next {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: var(--ccs-space-4);
	padding: var(--ccs-space-4) var(--ccs-space-5);
	margin-bottom: var(--ccs-space-5);
}

.ccs-career-strip__info {
	display: flex;
	align-items: center;
	gap: var(--ccs-space-3);
	min-width: 0;
}

.ccs-career-strip__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: var(--ccs-radius-sm);
	background: var(--ccs-accent-soft);
	color: var(--ccs-accent);
	flex-shrink: 0;
}

.ccs-career-strip__label,
.ccs-next__eyebrow {
	display: block;
	font-size: 11px;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--ccs-text-subtle);
}

.ccs-career-strip__title {
	display: block;
	font-weight: 600;
	color: var(--ccs-text);
}

.ccs-next {
	border-color: var(--ccs-border-strong);
	background: linear-gradient(90deg, var(--ccs-accent-soft), transparent 60%), var(--ccs-card);
}

.ccs-next__eyebrow {
	color: var(--ccs-accent);
}

.ccs-next__title {
	margin: var(--ccs-space-1) 0;
	font-size: 16px;
	font-weight: 600;
	color: var(--ccs-text);
}

.ccs-stat .ccs-progress + .ccs-stat__meta {
	margin-top: var(--ccs-space-2);
}

@media (max-width: 640px) {
	.ccs-dash-actions {
		justify-content: stretch;
	}
	.ccs-dash-actions .ccs-btn {
		flex: 1 1 100%;
		justify-content: center;
	}
	.ccs-career-strip,
	.ccs-next {
		flex-direction: column;
		align-items: stretch;
	}
	.ccs-next .ccs-btn,
	.ccs-career-strip .ccs-btn {
		justify-content: center;
	}
	.ccs-career-strip__info {
		flex-wrap: wrap;
	}
	.ccs-career-strip__info > div {
		flex: 1 1 0;
		min-width: 0;
	}
	.ccs-career-strip__info .ccs-tag {
		flex-basis: 100%;
		width: max-content;
		max-width: 100%;
		margin-left: 48px;
	}
	.ccs-career-strip__label {
		white-space: nowrap;
	}
}

/* First-visit welcome (v1.6) ----------------------------------------------- */

body.ccs-welcome-open { overflow: hidden; }
.ccs-welcome {
	position: fixed;
	inset: 0;
	z-index: 210;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: var(--ccs-space-4);
	opacity: 0;
	transition: opacity 0.2s ease;
}
.ccs-welcome[hidden] { display: none !important; }
.ccs-welcome.is-open { opacity: 1; }
.ccs-welcome__backdrop { position: absolute; inset: 0; background: rgba(4, 6, 10, 0.8); }
.ccs-welcome__dialog {
	position: relative;
	width: min(860px, 100%);
	max-height: calc(100vh - 32px);
	overflow: auto;
	padding: var(--ccs-space-6);
	border: 1px solid var(--ccs-border-strong);
	border-radius: var(--ccs-radius-lg);
	background: var(--ccs-card);
	box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
	transform: translateY(12px) scale(0.98);
	transition: transform 0.25s ease;
}
.ccs-welcome.is-open .ccs-welcome__dialog { transform: none; }
.ccs-welcome__dialog:focus { outline: none; }
.ccs-welcome__eyebrow { margin: 0; color: var(--ccs-accent); font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; }
.ccs-app .ccs-welcome__title { margin: var(--ccs-space-2) 0; font-size: 26px; font-weight: 700; line-height: 1.2; }
.ccs-welcome__desc { margin: 0; color: var(--ccs-text-muted); font-size: 15px; line-height: 1.6; }

.ccs-welcome__career {
	display: grid;
	grid-template-columns: auto minmax(0, 280px) 1fr;
	align-items: center;
	gap: var(--ccs-space-3);
	margin: var(--ccs-space-5) 0;
	padding: var(--ccs-space-3) var(--ccs-space-4);
	border: 1px solid var(--ccs-border);
	border-radius: var(--ccs-radius);
	background: var(--ccs-card-elevated);
}
.ccs-welcome__career label { font-weight: 600; font-size: 14px; }
.ccs-app .ccs-welcome__career .ccs-input { margin: 0; }
.ccs-welcome__hint { color: var(--ccs-text-subtle); font-size: 12px; }

.ccs-welcome__cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--ccs-space-3); }
.ccs-app .ccs-welcome__card {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: var(--ccs-space-2);
	padding: var(--ccs-space-5);
	border: 1px solid var(--ccs-border);
	border-radius: var(--ccs-radius);
	background: var(--ccs-bg);
	color: var(--ccs-text);
	text-decoration: none;
	transition: border-color 0.2s, transform 0.2s;
}
.ccs-app .ccs-welcome__card:hover,
.ccs-app .ccs-welcome__card:focus-visible { border-color: var(--ccs-accent); transform: translateY(-2px); outline: none; }
.ccs-welcome__card.is-busy { opacity: 0.6; pointer-events: none; }
.ccs-welcome__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: var(--ccs-radius-sm);
	background: var(--ccs-accent-soft);
	color: var(--ccs-accent);
}
.ccs-welcome__card-title { font-size: 16px; font-weight: 600; }
.ccs-welcome__card-text { flex: 1; color: var(--ccs-text-muted); font-size: 14px; line-height: 1.5; }
.ccs-welcome__cta { margin-top: var(--ccs-space-2); }
.ccs-welcome__foot { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-3); margin-top: var(--ccs-space-4); }
.ccs-app .ccs-welcome__foot .ccs-link { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; font-size: 13px; }

@media (max-width: 760px) {
	.ccs-welcome__dialog { padding: var(--ccs-space-5); }
	.ccs-welcome__career { grid-template-columns: minmax(0, 1fr); }
	.ccs-welcome__cards { grid-template-columns: minmax(0, 1fr); }
	.ccs-app .ccs-welcome__card { padding: var(--ccs-space-4); }
	.ccs-welcome__foot { flex-direction: column-reverse; align-items: stretch; text-align: center; }
}

/* ==================================================================
 * 1.8 Beginner guidance, state freshness, assessments, accessibility
 * ================================================================== */

/* Out-of-date page bar (state changed in another tab). */
.ccs-stale-bar { position: fixed; z-index: 10000; left: 50%; bottom: 16px; transform: translateX(-50%); display: flex; align-items: center; gap: 12px; max-width: calc(100% - 32px); padding: 10px 14px; border: 1px solid var(--ccs-warning); border-radius: var(--ccs-radius); background: var(--ccs-card-elevated); color: var(--ccs-text); box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 13px; }

/* Dashboard: one next step + journey. */
.ccs-app .ccs-next--hero { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--ccs-space-3) var(--ccs-space-5); align-items: center; }
.ccs-app .ccs-next--hero .ccs-next__title { margin: 4px 0 6px; font-size: 20px; line-height: 1.3; }
.ccs-app .ccs-next__actions { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.ccs-app .ccs-next__assess { display: flex; align-items: center; gap: 6px; margin: 8px 0 0; color: var(--ccs-text-muted); font-size: 12px; }
.ccs-app .ccs-journey { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; margin: var(--ccs-space-2) 0 0; padding: 0; list-style: none; counter-reset: none; }
.ccs-app .ccs-journey__step a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 5px; border: 1px solid var(--ccs-border); border-radius: 999px; color: var(--ccs-text-muted); font-size: 12px; text-decoration: none; }
.ccs-app .ccs-journey__dot { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--ccs-card-elevated); color: var(--ccs-text-muted); font-size: 11px; font-weight: 600; }
.ccs-app .ccs-journey__step.is-done a { color: var(--ccs-text); border-color: var(--ccs-success); }
.ccs-app .ccs-journey__step.is-done .ccs-journey__dot { background: var(--ccs-success); color: #04130a; }
.ccs-app .ccs-journey__step.is-current a { color: var(--ccs-text); border-color: var(--ccs-accent); background: var(--ccs-accent-soft); }
.ccs-app .ccs-journey__step.is-current .ccs-journey__dot { background: var(--ccs-accent); color: var(--ccs-accent-ink, #fff); }
.ccs-app .ccs-journey__step a:focus-visible { outline: 2px solid var(--ccs-accent); outline-offset: 2px; }

/* Task strip (queue and investigation). */
.ccs-app .ccs-taskstrip { display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 var(--ccs-space-4); padding: 0; list-style: none; counter-reset: ccs-strip; }
.ccs-app .ccs-taskstrip li { counter-increment: ccs-strip; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border: 1px solid var(--ccs-border); border-radius: 999px; color: var(--ccs-text-muted); font-size: 12px; }
.ccs-app .ccs-taskstrip li::before { content: counter(ccs-strip); font-weight: 600; color: var(--ccs-text-subtle); }
.ccs-app .ccs-taskstrip li.is-done { border-color: var(--ccs-success); color: var(--ccs-text); }
.ccs-app .ccs-taskstrip li.is-done::before { content: "✓"; color: var(--ccs-success); }
.ccs-app .ccs-taskstrip--compact { grid-column: 1 / -1; width: 100%; margin: var(--ccs-space-3) 0 0; }

/* Expandable help ("How to work this queue", "How this was scored"). */
.ccs-app .ccs-howto { margin-bottom: var(--ccs-space-4); }
.ccs-app .ccs-howto > summary, .ccs-app .ccs-hints > summary, .ccs-app .ccs-welcome__explore > summary { cursor: pointer; font-weight: 600; }
.ccs-app .ccs-howto > summary:focus-visible, .ccs-app .ccs-hints > summary:focus-visible { outline: 2px solid var(--ccs-accent); outline-offset: 2px; border-radius: 4px; }
.ccs-app .ccs-howto__body { margin-top: var(--ccs-space-3); color: var(--ccs-text-muted); font-size: 14px; line-height: 1.6; }
.ccs-app .ccs-howto__body ul { margin: var(--ccs-space-2) 0; padding-left: 1.2em; }
.ccs-app .ccs-hints__note { font-weight: 400; color: var(--ccs-text-subtle); font-size: 12px; }

/* Queue tickets. */
.ccs-app .ccs-ticket__label { font-weight: 600; color: var(--ccs-text); }
.ccs-app .ccs-ticket__why { margin: 4px 0 8px; color: var(--ccs-text-subtle); font-size: 12px; }

/* Facts lists (shift setup, assessment summary). */
.ccs-app .ccs-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--ccs-space-2) var(--ccs-space-4); margin: var(--ccs-space-2) 0; }
.ccs-app .ccs-facts dt { color: var(--ccs-text-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ccs-app .ccs-facts dd { margin: 2px 0 0; color: var(--ccs-text); font-size: 13px; }
.ccs-app .ccs-shift-setup { align-items: flex-end; }

/* Scenario briefing. */
.ccs-app .ccs-briefing { margin-bottom: var(--ccs-space-4); }
.ccs-app .ccs-briefing__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--ccs-space-3) var(--ccs-space-5); margin: var(--ccs-space-3) 0 0; }
.ccs-app .ccs-briefing__grid dt { color: var(--ccs-text-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ccs-app .ccs-briefing__grid dd { margin: 4px 0 0; color: var(--ccs-text); font-size: 14px; line-height: 1.5; }
.ccs-app .ccs-briefing__rules { grid-column: 1 / -1; }

/* Results. */
.ccs-app .ccs-outcome__counts { margin: 8px 0 0; padding: 6px 10px; border-radius: var(--ccs-radius-sm); font-size: 13px; }
.ccs-app .ccs-outcome__counts.is-counted { background: var(--ccs-success-soft); }
.ccs-app .ccs-outcome__counts.is-practice { background: var(--ccs-warning-soft); }
.ccs-app .ccs-help--warn { color: var(--ccs-warning); }
.ccs-app .ccs-help--example { font-style: italic; }

/* Lessons: objectives, worked examples, assessment. */
.ccs-app .ccs-lobjectives { margin: 0 0 var(--ccs-space-4); padding: var(--ccs-space-3) var(--ccs-space-4); border: 1px solid var(--ccs-border); border-left: 3px solid var(--ccs-accent); border-radius: var(--ccs-radius-sm); background: var(--ccs-card-elevated); }
.ccs-app .ccs-worked { margin: var(--ccs-space-4) 0; padding: var(--ccs-space-4); border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius); background: var(--ccs-card-elevated); }
.ccs-app .ccs-worked__title { display: flex; align-items: center; gap: 6px; margin: 0 0 var(--ccs-space-3); font-weight: 600; }
.ccs-app .ccs-worked__steps { margin: 0; padding-left: 1.4em; }
.ccs-app .ccs-worked__steps li { margin-bottom: var(--ccs-space-2); }
.ccs-app .ccs-worked__steps p { margin: 2px 0 0; color: var(--ccs-text-muted); }
.ccs-app .ccs-q__opts--radio .ccs-q__opt input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.ccs-app .ccs-q__opts--radio .ccs-q__opt { position: relative; }
.ccs-app .ccs-q__opts--radio .ccs-q__opt:has(input:checked) { border-color: var(--ccs-accent); background: var(--ccs-accent-soft); }
.ccs-app .ccs-q__opts--radio .ccs-q__opt:has(input:focus-visible) { outline: 2px solid var(--ccs-accent); outline-offset: 2px; }
.ccs-app .ccs-q.is-missing { border-color: var(--ccs-warning); }
.ccs-app .ccs-assess__foot { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-3); margin-top: var(--ccs-space-4); }
.ccs-app .ccs-assess__score { font-size: 18px; font-weight: 600; }
.ccs-app .ccs-assess__review { margin: var(--ccs-space-3) 0; padding-left: 1.4em; }
.ccs-app .ccs-assess__review li { margin-bottom: var(--ccs-space-3); padding-left: var(--ccs-space-2); border-left: 3px solid var(--ccs-border); }
.ccs-app .ccs-assess__review li.is-ok { border-left-color: var(--ccs-success); }
.ccs-app .ccs-assess__review li.is-bad { border-left-color: var(--ccs-danger); }
.ccs-app .ccs-assess__q { margin: 0 0 4px; font-weight: 600; }

/* Skills: metric explanations. */
.ccs-app .ccs-explain { margin-top: var(--ccs-space-4); }
.ccs-app .ccs-explain__list { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--ccs-space-3) var(--ccs-space-5); margin: 0; }
.ccs-app .ccs-explain__list dt { font-weight: 600; }
.ccs-app .ccs-explain__list dd { margin: 4px 0 0; color: var(--ccs-text-muted); font-size: 13px; line-height: 1.55; }

/* Autosave status. */
.ccs-app .ccs-save-state.is-error, .ccs-app [data-ccs-draft-state].is-error { color: var(--ccs-danger); }

/* Review dialog (replaces the browser confirm box). */
.ccs-app .ccs-review-dialog { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 16px; background: rgba(0,0,0,.55); }
.ccs-app .ccs-review-dialog__box { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: var(--ccs-space-5); border: 1px solid var(--ccs-border-strong); border-radius: var(--ccs-radius-lg, 12px); background: var(--ccs-card); color: var(--ccs-text); }
.ccs-app .ccs-review-dialog__box:focus { outline: none; }
.ccs-app .ccs-review-dialog__title { margin: 0 0 var(--ccs-space-3); font-size: 18px; }
.ccs-app .ccs-review-dialog__list { margin: 0 0 var(--ccs-space-3); padding: 0; list-style: none; }
.ccs-app .ccs-review-dialog__list li { display: flex; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--ccs-border); font-size: 14px; }
.ccs-app .ccs-review-dialog__mark { flex: none; width: 18px; font-weight: 700; }
.ccs-app .ccs-review-dialog__list li.is-ok .ccs-review-dialog__mark { color: var(--ccs-success); }
.ccs-app .ccs-review-dialog__list li.is-bad .ccs-review-dialog__mark { color: var(--ccs-warning); }

/* Welcome: role description and first step. */
.ccs-app .ccs-welcome__role { grid-column: 1 / -1; display: grid; gap: 8px; margin: var(--ccs-space-3) 0 0; }
.ccs-app .ccs-welcome__role dt { color: var(--ccs-text-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .04em; }
.ccs-app .ccs-welcome__role dd { margin: 2px 0 0; font-size: 13px; }
.ccs-app .ccs-welcome__start { margin: var(--ccs-space-4) 0; padding: var(--ccs-space-4); border: 1px solid var(--ccs-accent); border-radius: var(--ccs-radius); background: var(--ccs-accent-soft); }
.ccs-app .ccs-welcome__journey { margin: 4px 0 var(--ccs-space-3); color: var(--ccs-text-muted); font-size: 13px; }
.ccs-app .ccs-welcome__explore { margin-bottom: var(--ccs-space-3); }
.ccs-app .ccs-welcome__explore .ccs-welcome__cards { margin-top: var(--ccs-space-3); }

.ccs-app .ccs-btn-row--center { justify-content: center; }
.ccs-app .ccs-firstrun ol { margin: 6px 0 0; padding-left: 1.3em; }

/* Event tables: the "Event" summary cell is for small screens only. */
.ccs-app .ccs-table--events .ccs-mobile-only { display: none; }

/* Investigation tabs stay visible: wrap instead of scrolling sideways. */
@media (max-width: 760px) {
	.ccs-app .ccs-tabs { flex-wrap: wrap; overflow-x: visible; }
	.ccs-app .ccs-next--hero { grid-template-columns: minmax(0, 1fr); }
	.ccs-app .ccs-next__actions { align-items: stretch; }

	/* Event rows become cards: what happened + Add evidence first, then the details. */
	.ccs-app .ccs-table-wrap--events { overflow: visible; border: 0; }
	.ccs-app .ccs-table--events, .ccs-app .ccs-table--events tbody { display: block; width: 100%; }
	.ccs-app .ccs-table--events thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
	.ccs-app .ccs-table--events tr.ccs-row { display: flex; flex-direction: column; gap: 4px; margin: 0 0 10px; padding: 10px 12px; border: 1px solid var(--ccs-border); border-radius: var(--ccs-radius-sm); background: var(--ccs-card-elevated); }
	.ccs-app .ccs-table--events tr.ccs-row--key { border-color: var(--ccs-success); }
	.ccs-app .ccs-table--events td { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; padding: 0; border: 0; white-space: normal; word-break: break-word; font-size: 13px; }
	.ccs-app .ccs-table--events td::before { content: attr(data-label); color: var(--ccs-text-subtle); font-size: 11px; text-transform: uppercase; letter-spacing: .03em; }
	.ccs-app .ccs-table--events .ccs-mobile-only { display: grid; }
	.ccs-app .ccs-table--events td.ccs-ev-summary { order: -2; grid-template-columns: minmax(0, 1fr); font-weight: 600; font-size: 14px; }
	.ccs-app .ccs-table--events td.ccs-ev-summary::before { content: none; }
	.ccs-app .ccs-table--events td.ccs-table__action { order: -1; grid-template-columns: minmax(0, 1fr); margin-bottom: 4px; }
	.ccs-app .ccs-table--events td.ccs-table__action::before { content: none; }
	.ccs-app .ccs-table--events tr.ccs-row-note { display: block; margin: -6px 0 10px; }
	.ccs-app .ccs-table--events tr.ccs-row-note td { display: block; }
	.ccs-app .ccs-table--events tr.ccs-row-note td::before { content: none; }
	/* In the timeline the event cell already is the summary. */
	.ccs-app .ccs-table--events td.ccs-wide.ccs-ev-summary { order: -2; }
}

/* ==========================================================================
 * 1.8.1 — layout polish
 * ========================================================================== */

/* Panels without a __body wrapper (course page, lab/simulation briefing):
 * keep text and lists off the card border. */
.ccs-app .ccs-panel > p,
.ccs-app .ccs-panel > .ccs-subtitle,
.ccs-app .ccs-panel > .ccs-bullets,
.ccs-app .ccs-panel > .ccs-chips,
.ccs-app .ccs-panel > .ccs-help,
.ccs-app .ccs-panel > .ccs-muted,
.ccs-app .ccs-panel > .ccs-notice,
.ccs-app .ccs-panel > .ccs-prep,
.ccs-app .ccs-panel > .ccs-course__lessons {
	margin-left: var(--ccs-space-5);
	margin-right: var(--ccs-space-5);
}
.ccs-app .ccs-panel > .ccs-panel__head + p,
.ccs-app .ccs-panel > .ccs-panel__head + .ccs-bullets,
.ccs-app .ccs-panel > .ccs-panel__head + .ccs-subtitle,
.ccs-app .ccs-panel > .ccs-panel__head + .ccs-prep,
.ccs-app .ccs-panel > .ccs-panel__head + .ccs-muted { margin-top: var(--ccs-space-4); }
.ccs-app .ccs-panel > p:last-child,
.ccs-app .ccs-panel > .ccs-bullets:last-child,
.ccs-app .ccs-panel > .ccs-chips:last-child,
.ccs-app .ccs-panel > .ccs-help:last-child,
.ccs-app .ccs-panel > .ccs-muted:last-child,
.ccs-app .ccs-panel > .ccs-prep:last-child,
.ccs-app .ccs-panel > .ccs-course__lessons:last-child { margin-bottom: var(--ccs-space-5); }
.ccs-app .ccs-panel > .ccs-course__lessons { padding-left: 0; }
@media (max-width: 640px) {
	.ccs-app .ccs-panel > p,
	.ccs-app .ccs-panel > .ccs-subtitle,
	.ccs-app .ccs-panel > .ccs-bullets,
	.ccs-app .ccs-panel > .ccs-chips,
	.ccs-app .ccs-panel > .ccs-help,
	.ccs-app .ccs-panel > .ccs-muted,
	.ccs-app .ccs-panel > .ccs-notice,
	.ccs-app .ccs-panel > .ccs-prep,
	.ccs-app .ccs-panel > .ccs-course__lessons {
		margin-left: var(--ccs-space-4);
		margin-right: var(--ccs-space-4);
	}
}

/* Assessment results: button first, its note beside it, both left-aligned. */
.ccs-app .ccs-assess__retake { display: flex; flex-wrap: wrap; align-items: center; gap: var(--ccs-space-3); margin-top: var(--ccs-space-4); }
.ccs-app .ccs-assess__retake .ccs-help { margin: 0; }
@media (max-width: 640px) {
	.ccs-app .ccs-assess__retake { flex-direction: column; align-items: stretch; }
	.ccs-app .ccs-assess__retake .ccs-btn { width: 100%; justify-content: center; }
}

/* "Why this matters at work": icon inline with its label. */
.ccs-app .ccs-lscenario .ccs-eyebrow { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; color: var(--ccs-text-muted); font-weight: 600; }
.ccs-app .ccs-lscenario .ccs-eyebrow svg { flex: none; }
.ccs-app .ccs-lscenario p:last-child { margin-bottom: 0; }

/* Hero actions (course, lab and simulation pages): primary button on the left,
 * directly under the details, with any note after it. Same place on every page. */
.ccs-app .ccs-scn-hero .ccs-btn-row { justify-content: flex-start; align-items: center; gap: var(--ccs-space-3); margin-top: var(--ccs-space-4); }
.ccs-app .ccs-scn-hero .ccs-btn-row .ccs-help { margin: 0; }

/* Clues card (investigations). */
.ccs-app .ccs-clues { padding: var(--ccs-space-4) var(--ccs-space-5); margin-bottom: var(--ccs-space-4); border-left: 3px solid var(--ccs-warning); }
.ccs-app .ccs-clues__title { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; font-size: 15px; font-weight: 600; }
.ccs-app .ccs-clues .ccs-help { margin: 0 0 var(--ccs-space-3); }
.ccs-app .ccs-clues__list { margin: 0 0 var(--ccs-space-3); padding-left: 20px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; line-height: 1.5; }
.ccs-app .ccs-clues__list li.is-new { color: var(--ccs-text); font-weight: 500; }
.ccs-app .ccs-clues .ccs-notice:empty { display: none; }

/* Spacing: billing card and v2 My Progress sections use .ccs-panel (no padding by default). */
.ccs-app .ccl-dodo-billing, .ccs-app .ccl-pad { padding: var(--ccs-space-5); gap: var(--ccs-space-3); }
.ccs-app .ccl-dodo-billing .ccs-section-title, .ccs-app .ccl-pad > h3 { margin: 0; }
.ccs-app .ccl-dodo-billing dl { margin: 0 !important; }
.ccs-app details.ccl-pad > summary { cursor: pointer; font-weight: 600; }
.ccs-app details.ccl-pad[open] > summary { margin-bottom: var(--ccs-space-3); }
.ccs-app .ccl-pad .ccs-list { margin: 0; padding: 0; }
.ccs-app .ccl-pad ul.ccs-help { margin: 0; padding-left: 1.2em; }
/* Sidebar career card: readiness on its own line instead of a squeezed 3-line column. */
.ccs-app .ccs-role__meta { flex-wrap: wrap; row-gap: var(--ccs-space-2); }
.ccs-app .ccs-role__readiness { flex-basis: 100%; }

/* ==========================================================================
 * 1.10 — consistent spacing
 * ========================================================================== */

/* One rhythm between the blocks of every app page (cards, sections, titles). */
.ccs-app .ccs-content > :not(style):not(script) ~ :not(style):not(script) { margin-top: var(--ccs-space-5); }
.ccs-app .ccs-content > .ccs-section-title--page { margin-bottom: calc(-1 * var(--ccs-space-2)); }

/* Padded panels: room between title, text, buttons and lists. */
.ccs-app .ccs-panel.ccl-pad > p, .ccs-app .ccs-panel.ccl-pad > ul, .ccs-app .ccs-panel.ccl-pad > .ccs-help, .ccs-app .ccs-panel.ccl-pad > .ccs-list { margin: 0; }
.ccs-app .ccl-pad > ul.ccs-help { list-style: disc; }
.ccs-app .ccl-pad > .ccs-btn { align-self: flex-start; }
.ccs-app .ccl-pad .ccs-list__item { padding-left: 0; padding-right: 0; }
.ccs-app details.ccl-pad:not([open]) { gap: 0; }

/* Panels without a body wrapper: keep subtitles and lists off the card border. */
.ccs-app .ccs-panel > h4.ccs-subtitle,
.ccs-app .ccs-panel > details { margin-left: var(--ccs-space-5); margin-right: var(--ccs-space-5); }
.ccs-app .ccs-panel > details + p { margin-top: var(--ccs-space-4); }

/* Lesson blocks: model writing and "Do it for real" (1.10). */
.ccs-app .ccs-writeup { margin: var(--ccs-space-5) 0; border: 1px solid var(--ccs-border); border-radius: 12px; overflow: hidden; }
.ccs-app .ccs-writeup__head { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 13px; font-weight: 600; border-bottom: 1px solid var(--ccs-border); background: rgba(255,255,255,.03); }
.ccs-app .ccs-writeup__body { padding: 16px; }
.ccs-app .ccs-writeup__body p { margin: 0 0 10px; line-height: 1.6; }
.ccs-app .ccs-writeup__body p:last-child { margin-bottom: 0; }
.ccs-app .ccs-lpractice { display: flex; align-items: center; justify-content: space-between; gap: var(--ccs-space-5); flex-wrap: wrap; margin: var(--ccs-space-5) 0; padding: var(--ccs-space-5); border-color: #4ca9de; background: linear-gradient(135deg, #123156, #0f1d33); }
.ccs-app .ccs-lpractice > div { flex: 1 1 320px; }
.ccs-app .ccs-lpractice__title { margin: 4px 0 6px; font-size: 18px; }
.ccs-app .ccs-lpractice p { margin: 0; line-height: 1.6; }
.ccs-app .ccs-lpractice .ccs-eyebrow { display: flex; align-items: center; gap: 6px; }
