/*
 * Card/button/row components shared across screens, translated from the inline styles in
 * design_reference/*.dc.html into real classes (per the design README's instruction).
 */

.fa-card {
	background: var(--fa-white);
	border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-card);
	padding: 28px 30px;
}

.fa-card-tight {
	padding: 26px;
}

.fa-card-head {
	display: flex;
	justify-content: space-between;
	align-items: baseline;
	gap: 16px;
	flex-wrap: wrap;
}

.fa-card-head h3,
.fa-h3 {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 19px;
	letter-spacing: -0.015em;
	margin: 0;
}

.fa-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 14.5px;
	font-weight: 600;
	padding: 15px 26px;
	border-radius: var(--fa-radius-control);
	border: none;
	cursor: pointer;
}

.fa-btn-primary {
	background: var(--fa-orange);
	color: var(--fa-white);
}

.fa-btn-primary:hover {
	background: var(--fa-orange-hover);
	color: var(--fa-white);
}

.fa-btn-outline-light {
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.3);
	color: var(--fa-white);
}

.fa-btn-outline-light:hover {
	border-color: var(--fa-white);
	color: var(--fa-white);
}

.fa-btn-outline {
	background: var(--fa-white);
	border: 1px solid #dfe3ea;
	color: var(--fa-navy);
	font-weight: 600;
}

.fa-btn-outline:hover {
	border-color: var(--fa-navy);
}

.fa-btn-navy {
	background: var(--fa-navy);
	color: var(--fa-white);
	display: block;
	text-align: center;
}

.fa-btn-navy:hover {
	background: var(--fa-navy-hover);
	color: var(--fa-white);
}

/* Hero */

.fa-hero {
	background: var(--fa-navy);
	border: 1px solid var(--fa-navy);
	border-radius: var(--fa-radius-card);
	padding: 32px 34px;
	color: var(--fa-white);
}

.fa-hero-pill {
	display: inline-flex;
	align-items: center;
	gap: 9px;
	background: rgba(255, 255, 255, 0.12);
	border-radius: var(--fa-radius-pill);
	padding: 8px 15px;
	margin-bottom: 18px;
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
}

.fa-hero-pill-dot {
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--fa-orange);
}

.fa-hero h2 {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 33px;
	line-height: 1.14;
	letter-spacing: -0.025em;
	margin: 0 0 14px;
	max-width: 26ch;
	color: var(--fa-white);
}

.fa-hero p {
	margin: 0 0 24px;
	font-size: 15.5px;
	line-height: 1.65;
	color: var(--fa-on-navy);
	max-width: 56ch;
}

.fa-hero-actions {
	display: flex;
	gap: 12px;
	flex-wrap: wrap;
}

/* Progress bar */

.fa-progress-row {
	display: flex;
	align-items: center;
	gap: 16px;
	margin: 18px 0 4px;
}

.fa-progress-track {
	flex: 1;
	height: 9px;
	border-radius: var(--fa-radius-pill);
	background: var(--fa-chip);
	overflow: hidden;
}

.fa-progress-track-thin {
	height: 8px;
}

.fa-progress-fill {
	height: 100%;
	border-radius: var(--fa-radius-pill);
	background: var(--fa-orange);
	transition: width 350ms ease;
}

.fa-progress-label {
	font-size: 14px;
	font-weight: 700;
	flex: 0 0 auto;
}

/* Checklist rows */

.fa-checklist-row {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 19px 12px;
	margin: 0 -12px;
	border-top: 1px solid var(--fa-divider);
	border-radius: 12px;
	cursor: pointer;
	background: none;
	border-left: none;
	border-right: none;
	border-bottom: none;
	width: calc(100% + 24px);
	text-align: left;
	font: inherit;
}

.fa-checklist-row:hover {
	background: #fafbfc;
}

.fa-check-circle {
	width: 25px;
	height: 25px;
	border-radius: 50%;
	flex: 0 0 auto;
	border: 1.5px solid #c2cad8;
	color: var(--fa-white);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fa-check-circle.is-done {
	border-color: var(--fa-orange);
	background: var(--fa-orange);
}

.fa-checklist-body {
	min-width: 0;
	flex: 1;
}

.fa-checklist-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 3px;
}

.fa-checklist-title.is-done {
	color: #767f92;
	text-decoration: line-through;
}

.fa-checklist-sub {
	font-size: 13.5px;
	color: var(--fa-muted);
}

.fa-checklist-action {
	flex: 0 0 auto;
	white-space: nowrap;
	font-size: 13.5px;
	font-weight: 600;
	border-radius: 9px;
}

/* Sequence rows */

.fa-seq-row {
	display: flex;
	gap: 15px;
	align-items: center;
	padding: 18px 0;
	border-top: 1px solid var(--fa-divider);
}

.fa-seq-step {
	width: 42px;
	height: 42px;
	border-radius: 12px;
	flex: 0 0 auto;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 13px;
}

.fa-seq-body {
	min-width: 0;
	flex: 1;
}

.fa-seq-title {
	font-size: 15px;
	font-weight: 600;
	margin-bottom: 3px;
}

.fa-seq-meta {
	font-size: 13.5px;
	color: var(--fa-muted);
}

.fa-seq-cta {
	flex: 0 0 auto;
	font-size: 13.5px;
	font-weight: 600;
}

/* Right-rail: featured / jump back in / feed / programme progress */

.fa-featured-media {
	height: 150px;
	padding: 22px 26px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	align-items: flex-start;
	background-color: var(--fa-navy);
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 7px, transparent 7px 14px);
}

.fa-featured-tag {
	font-size: 10.5px;
	font-weight: 700;
	letter-spacing: 0.1em;
	color: var(--fa-white);
	background: rgba(255, 255, 255, 0.14);
	padding: 6px 11px;
	border-radius: var(--fa-radius-pill);
}

.fa-mono-label {
	font-family: var(--fa-font-mono);
	font-size: 11px;
	color: var(--fa-on-navy-muted);
}

.fa-featured-body {
	padding: 22px 26px 26px;
}

.fa-jump-row {
	display: flex;
	gap: 13px;
	align-items: center;
	padding: 13px 11px;
	margin: 0 -11px;
	border-radius: 12px;
}

.fa-jump-row:hover {
	background: #fafbfc;
}

.fa-jump-icon {
	width: 38px;
	height: 38px;
	border-radius: 11px;
	flex: 0 0 auto;
	color: var(--fa-white);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 12px;
}

.fa-feed-row {
	display: flex;
	gap: 12px;
	padding: 15px 0;
	border-top: 1px solid var(--fa-divider);
}

.fa-feed-avatar {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--fa-chip);
	color: var(--fa-body);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11.5px;
	font-weight: 700;
}

.fa-weeks-row {
	display: flex;
	gap: 4px;
	margin-bottom: 12px;
}

.fa-week-tick {
	flex: 1;
	height: 6px;
	border-radius: var(--fa-radius-pill);
}

/* Courses screen */

.fa-body-split {
	display: flex;
	align-items: flex-start;
	gap: 0;
}

.fa-list-pane {
	width: 380px;
	flex: 0 0 auto;
	border-right: 1px solid var(--fa-border);
}

.fa-module-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 18px 22px;
	cursor: pointer;
	border-bottom: 1px solid var(--fa-divider);
	list-style: none;
}

.fa-module-row::-webkit-details-marker {
	display: none;
}

.fa-module-row:hover {
	background: #fafbfc;
}

.fa-module-caret {
	margin-left: auto;
	flex: 0 0 auto;
	color: var(--fa-muted);
	transition: transform 200ms ease;
}

details[open] > .fa-module-row .fa-module-caret {
	transform: rotate(90deg);
}

.fa-module-title {
	font-size: 15px;
	font-weight: 700;
}

.fa-module-meta {
	font-size: 12.5px;
	color: var(--fa-muted);
}

.fa-module-count {
	font-size: 12.5px;
	color: var(--fa-muted);
	white-space: nowrap;
}

.fa-item-row {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 13px 22px 13px 44px;
	background: #fafbfc;
}

.fa-item-row.is-selected {
	background: var(--fa-white);
	border-left: 3px solid var(--fa-orange);
	padding-left: 41px;
}

.fa-item-tag {
	min-width: 44px;
	flex: 0 0 auto;
	text-align: center;
	font-size: 10px;
	font-weight: 700;
	letter-spacing: 0.04em;
	padding: 4px 6px;
	white-space: nowrap;
	border-radius: 6px;
}

.fa-item-title {
	flex: 1;
	min-width: 0;
	font-size: 13.5px;
}

.fa-item-right {
	flex: 0 0 auto;
	font-size: 12.5px;
	font-weight: 600;
	color: var(--fa-muted);
}

.fa-detail-pane {
	flex: 1;
	min-width: 0;
	background: var(--fa-panel);
	padding: 28px 30px 52px;
}

.fa-player {
	height: 270px;
	border-radius: 16px;
	background-color: var(--fa-navy);
	background-image: repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.05) 0 7px, transparent 7px 14px);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	padding: 20px 24px;
	color: var(--fa-white);
	margin-bottom: 20px;
}

.fa-fact-row {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-bottom: 20px;
	font-size: 14px;
	color: var(--fa-body);
}

.fa-fact-row strong {
	color: var(--fa-navy);
}

.fa-attempts-table {
	width: 100%;
	border-collapse: collapse;
	font-size: 13.5px;
}

.fa-attempts-table th {
	text-align: left;
	color: var(--fa-muted);
	font-weight: 600;
	padding: 8px 6px;
	border-bottom: 1px solid var(--fa-border);
}

.fa-attempts-table td {
	padding: 10px 6px;
	border-bottom: 1px solid var(--fa-divider);
}

.fa-result-pill {
	font-size: 12px;
	font-weight: 700;
	padding: 3px 9px;
	border-radius: var(--fa-radius-pill);
}

.fa-dropzone {
	border: 1.5px dashed #c2cad8;
	border-radius: 14px;
	padding: 28px;
	text-align: center;
	color: var(--fa-muted);
	font-size: 13.5px;
	margin-bottom: 18px;
}

.fa-summary-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
	gap: 16px;
	margin-top: 24px;
}

.fa-summary-card {
	background: var(--fa-white);
	border: 1px solid #e3e7ee;
	border-radius: 16px;
	padding: 22px 24px;
}

.fa-summary-row {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	font-size: 14px;
	padding: 6px 0;
}

/* Info note */

.fa-note {
	background: var(--fa-white);
	border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-card);
	padding: 24px 26px;
	display: flex;
	gap: 14px;
	align-items: flex-start;
}

.fa-note-icon {
	width: 26px;
	height: 26px;
	border-radius: 50%;
	flex: 0 0 auto;
	background: var(--fa-chip);
	color: var(--fa-body);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
}

.fa-note p {
	margin: 0;
	font-size: 14px;
	line-height: 1.65;
	color: var(--fa-body);
}

.fa-page-header-navy {
	background: var(--fa-navy);
	color: var(--fa-white);
	padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.6vw, 34px);
}

.fa-page-header-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: var(--fa-on-navy-muted);
	margin-bottom: 6px;
}

.fa-page-header-navy h1 {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: clamp(26px, 3.4vw, 34px);
	letter-spacing: -0.025em;
	margin: 0 0 16px;
	color: var(--fa-white);
}

.fa-page-header-progress {
	display: flex;
	align-items: center;
	gap: 16px;
	max-width: 420px;
}

.fa-page-header-progress .fa-progress-track {
	background: rgba(255, 255, 255, 0.14);
}

.fa-page-header-progress .fa-progress-label {
	color: var(--fa-white);
	white-space: nowrap;
}

/* Quiz screen */

.fa-quiz-header {
	display: flex;
	align-items: center;
	gap: 20px;
	padding: clamp(20px, 2.4vw, 30px) clamp(18px, 2.6vw, 34px) 20px;
	flex-wrap: wrap;
	justify-content: space-between;
	border-bottom: 1px solid var(--fa-border);
	background: var(--fa-white);
	position: sticky;
	top: 0;
	z-index: 6;
}

.fa-quiz-eyebrow {
	font-size: 11.5px;
	font-weight: 700;
	letter-spacing: 0.09em;
	color: var(--fa-orange-text);
	margin-bottom: 6px;
}

.fa-timer {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 26px;
	letter-spacing: -0.01em;
	color: var(--fa-navy);
	text-align: right;
}

.fa-timer.is-low {
	color: var(--fa-danger);
}

.fa-timer-label {
	font-size: 11.5px;
	color: var(--fa-muted);
	letter-spacing: 0.04em;
	text-align: right;
}

.fa-quiz-option {
	display: flex;
	gap: 14px;
	align-items: flex-start;
	padding: 17px 18px;
	border: 1.5px solid var(--fa-border);
	background: var(--fa-white);
	border-radius: 14px;
	cursor: pointer;
	width: 100%;
	text-align: left;
	font: inherit;
	color: inherit;
}

.fa-quiz-option:hover {
	border-color: #c2cad8;
}

.fa-quiz-option.is-selected {
	border-color: var(--fa-orange);
	background: #fdf6f0;
}

.fa-quiz-key {
	width: 26px;
	height: 26px;
	border-radius: 8px;
	flex: 0 0 auto;
	background: var(--fa-chip);
	color: var(--fa-body);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 12.5px;
}

.fa-quiz-option.is-selected .fa-quiz-key {
	background: var(--fa-orange);
	color: var(--fa-white);
}

.fa-qgrid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 9px;
}

.fa-qgrid-cell {
	height: 44px;
	border-radius: 11px;
	border: 1.5px solid var(--fa-border);
	background: #f7f8fa;
	color: var(--fa-navy);
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: var(--fa-font-display);
	font-weight: 700;
	font-size: 14px;
	text-decoration: none;
}

.fa-qgrid-cell:hover {
	border-color: var(--fa-navy);
	color: var(--fa-navy);
}

.fa-qgrid-cell.is-current {
	border-color: var(--fa-navy);
	background: var(--fa-white);
}

.fa-qgrid-cell.is-answered {
	background: var(--fa-orange);
	color: var(--fa-white);
	border-color: var(--fa-orange);
}

.fa-qgrid-cell.is-answered:hover {
	color: var(--fa-white);
}

.fa-qlegend {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
	margin-top: 16px;
	font-size: 12.5px;
	color: var(--fa-body);
}

.fa-qlegend span {
	display: flex;
	align-items: center;
	gap: 7px;
}

.fa-qlegend-swatch {
	width: 11px;
	height: 11px;
	border-radius: 4px;
	display: inline-block;
}

/* Video facade (click-to-play poster over a lecture video) */

.fa-video-facade {
	position: relative;
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
	background-color: var(--fa-navy);
	background-size: cover;
	background-position: center;
	display: flex;
	align-items: center;
	justify-content: center;
}

.fa-video-facade::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(15, 27, 51, 0.28);
}

.fa-video-play {
	position: relative;
	z-index: 1;
	width: 72px;
	height: 72px;
	border-radius: 50%;
	border: none;
	background: rgba(255, 255, 255, 0.95);
	color: var(--fa-navy);
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	box-shadow: 0 10px 24px rgba(15, 27, 51, 0.35);
}

.fa-video-play:hover {
	background: #ffffff;
}

.fa-video-play-icon {
	font-size: 24px;
	margin-left: 4px;
	color: var(--fa-orange);
}

.fa-video-embed-wrap {
	aspect-ratio: 16 / 9;
	border-radius: 16px;
	overflow: hidden;
	margin-bottom: 20px;
}

.fa-video-frame {
	width: 100%;
	height: 100%;
	border: 0;
	display: block;
}

/* Certificate */

.fa-cert-scroll {
	overflow: hidden; /* sheet is scaled to fit by portal.js */
	padding-bottom: 8px;
}

.fa-cert-sheet {
	width: 1000px;
	height: 707px;
	flex: 0 0 auto;
	background: #fff;
	box-shadow: 0 18px 44px rgba(15, 27, 51, 0.1);
	border-top: 14px solid var(--fa-navy);
	border-bottom: 14px solid var(--fa-navy);
	border-left: 14px solid var(--fa-orange);
	border-right: 14px solid var(--fa-orange);
	box-sizing: border-box;
	padding: 34px 54px;
	display: flex;
	flex-direction: column;
}

.fa-cert-header {
	display: flex;
	justify-content: space-between;
	align-items: flex-start;
}

.fa-cert-body {
	flex: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	text-align: center;
}

.fa-cert-name {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 52px;
	color: var(--fa-navy);
	margin: 14px 0;
}

.fa-cert-rule {
	width: 280px;
	height: 2px;
	background: var(--fa-orange);
	margin: 0 auto 22px;
}

.fa-cert-footer {
	display: flex;
	justify-content: space-between;
	align-items: flex-end;
}

/* Community feed */

.fa-feed-post {
	padding: 18px 0;
	border-top: 1px solid var(--fa-divider);
}

.fa-feed-post:first-child {
	border-top: none;
}

.fa-feed-post-head {
	display: flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 8px;
}

.fa-name-badge {
	font-size: 10px;
	font-weight: 700;
	padding: 2px 7px;
	border-radius: 100px;
	letter-spacing: 0.04em;
}

.fa-badge-staff {
	background: var(--fa-navy);
	color: #fff;
}

.fa-badge-top {
	background: var(--fa-orange-tint);
	color: var(--fa-orange-text);
}

.fa-badge-pinned {
	background: var(--fa-chip);
	color: var(--fa-muted);
}

.fa-feed-actions {
	display: flex;
	gap: 16px;
	margin-top: 10px;
}

.fa-feed-action-btn {
	background: none;
	border: none;
	cursor: pointer;
	font-size: 13px;
	color: var(--fa-muted);
	font-weight: 600;
	padding: 0;
	display: flex;
	align-items: center;
	gap: 5px;
}

.fa-feed-action-btn.is-liked {
	color: var(--fa-orange);
}

.fa-feed-comment {
	display: flex;
	gap: 10px;
	margin-top: 10px;
	padding-left: 4px;
}

.fa-feed-comment-body {
	background: var(--fa-panel);
	border-radius: 10px;
	padding: 8px 12px;
	font-size: 13px;
	flex: 1;
}

.fa-online-dot {
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--fa-success);
	display: inline-block;
}

/* Support widget */

.fa-support-widget {
	position: fixed;
	right: 20px;
	bottom: 20px;
	z-index: 40;
	font-family: var(--fa-font-body);
}

.fa-support-fab {
	width: 52px;
	height: 52px;
	border-radius: 50%;
	border: none;
	background: var(--fa-orange);
	color: #fff;
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 20px;
	cursor: pointer;
	box-shadow: 0 10px 24px rgba(15, 27, 51, 0.22);
}

.fa-support-fab:hover {
	background: var(--fa-orange-hover);
}

.fa-support-panel {
	position: absolute;
	right: 0;
	bottom: 64px;
	width: min(340px, calc(100vw - 40px));
	background: #fff;
	border: 1px solid var(--fa-border);
	border-radius: 16px;
	box-shadow: 0 18px 44px rgba(15, 27, 51, 0.18);
	display: flex;
	flex-direction: column;
	max-height: 440px;
}

.fa-support-head {
	display: flex;
	justify-content: space-between;
	align-items: center;
	padding: 14px 16px;
	background: var(--fa-navy);
	color: #fff;
	border-radius: 16px 16px 0 0;
	font-weight: 700;
	font-size: 14px;
}

.fa-support-head button {
	background: none;
	border: none;
	color: #fff;
	font-size: 18px;
	cursor: pointer;
	line-height: 1;
}

.fa-support-messages {
	flex: 1;
	overflow-y: auto;
	padding: 14px 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	max-height: 300px;
}

.fa-support-msg {
	font-size: 13.5px;
	line-height: 1.5;
	padding: 10px 12px;
	border-radius: 12px;
	max-width: 88%;
}

.fa-support-msg-bot {
	background: var(--fa-chip);
	color: var(--fa-navy);
	align-self: flex-start;
}

.fa-support-msg-user {
	background: var(--fa-orange);
	color: #fff;
	align-self: flex-end;
}

.fa-support-form {
	display: flex;
	gap: 8px;
	padding: 12px;
	border-top: 1px solid var(--fa-divider);
}

.fa-support-form input {
	flex: 1;
	padding: 10px 12px;
	border-radius: 10px;
	border: 1px solid var(--fa-border);
	font-size: 13.5px;
}

@media (max-width: 999px) {
	.fa-list-pane {
		width: 100%;
	}
}

.fa-support-panel[hidden] {
	display: none;
}

.fa-detail-pane blockquote {
	margin: 16px 0;
	padding: 14px 18px;
	border-left: 3px solid var(--fa-orange);
	background: var(--fa-white);
	border-radius: 0 12px 12px 0;
}

.fa-detail-pane ul {
	padding-left: 20px;
}

.fa-detail-pane a:not(.fa-btn) {
	color: var(--fa-orange);
	text-decoration: underline;
	text-underline-offset: 3px;
}

.fa-detail-pane a:not(.fa-btn):hover {
	color: var(--fa-orange-hover);
}

/* YouTube Shorts: tall 9:16 player (thumbnail and embed) */
.fa-video-facade.fa-video-vertical,
.fa-video-embed-wrap.fa-video-vertical {
	aspect-ratio: 9 / 16;
	width: 100%;
	max-width: 340px;
}

/* First-login guided tour */
.fa-tour-backdrop {
	position: fixed;
	inset: 0;
	background: rgba(15, 27, 51, 0.62);
	z-index: 9998;
}

.fa-tour-spot {
	position: fixed;
	z-index: 9998;
	border-radius: 12px;
	box-shadow: 0 0 0 4px var(--fa-orange), 0 0 0 9999px rgba(15, 27, 51, 0.62);
	pointer-events: none;
	transition: all 250ms ease;
}

.fa-tour-card {
	position: fixed;
	z-index: 9999;
	width: min(360px, calc(100vw - 24px));
	background: var(--fa-white);
	border-radius: 16px;
	padding: 20px 22px 18px;
	box-shadow: 0 20px 50px rgba(15, 27, 51, 0.35);
	border-top: 5px solid var(--fa-orange);
	font-family: var(--fa-font-body);
	transition: top 250ms ease, left 250ms ease;
}

.fa-tour-card.is-centered {
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%);
	width: min(440px, calc(100vw - 24px));
}

.fa-tour-step {
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	color: var(--fa-orange-text);
	text-transform: uppercase;
	margin-bottom: 6px;
}

.fa-tour-title {
	font-family: var(--fa-font-display);
	font-weight: 800;
	font-size: 18px;
	color: var(--fa-navy);
	margin: 0 0 8px;
}

.fa-tour-body {
	font-size: 14px;
	line-height: 1.6;
	color: var(--fa-body);
	margin: 0 0 16px;
}

.fa-tour-actions {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
}

.fa-tour-nav {
	display: flex;
	gap: 8px;
}

.fa-tour-btn {
	padding: 10px 16px;
	font-size: 13.5px;
}

.fa-tour-skip {
	background: none;
	border: none;
	color: var(--fa-muted);
	font-size: 13px;
	cursor: pointer;
	padding: 6px 0;
	text-decoration: underline;
}

/* ------------------------------------------------------------------ */
/* Messages — track chat room                                          */
/* ------------------------------------------------------------------ */
.fa-main-chat { grid-template-columns: 1fr; }
.fa-chat {
	position: relative;
	display: flex;
	flex-direction: column;
	height: calc(100vh - 150px);
	height: calc(100dvh - 150px);
	min-height: 460px;
	max-width: 980px;
	width: 100%;
	background: var(--fa-white);
	border: 1px solid var(--fa-border);
	border-radius: var(--fa-radius-card);
	overflow: hidden;
}
.fa-chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--fa-divider); }
.fa-chat-room-icon { width: 38px; height: 38px; border-radius: 11px; background: var(--fa-navy); color: #fff; display: flex; align-items: center; justify-content: center; font-family: var(--fa-font-display); font-weight: 800; font-size: 18px; flex: 0 0 auto; }
.fa-chat-room-name { font-family: var(--fa-font-display); font-weight: 800; font-size: 16px; color: var(--fa-navy); }
.fa-chat-room-meta { font-size: 12.5px; color: var(--fa-muted); margin-top: 2px; }
.fa-chat-online-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #2fb36b; vertical-align: 1px; }
.fa-chat-rules { font-size: 12.5px; color: var(--fa-orange-text); background: var(--fa-orange-tint); padding: 8px 20px; line-height: 1.5; }
.fa-chat-scroll { flex: 1 1 auto; overflow-y: auto; padding: 10px 20px 16px; background: var(--fa-bg); overscroll-behavior: contain; }
.fa-chat-more { display: block; margin: 8px auto 4px; background: var(--fa-white); border: 1px solid var(--fa-border); border-radius: var(--fa-radius-pill); padding: 6px 14px; font-size: 12.5px; color: var(--fa-mid); cursor: pointer; }
.fa-chat-more[hidden], .fa-chat-empty[hidden], .fa-chat-newpill[hidden], .fa-chat-replying[hidden], .fa-chat-error[hidden] { display: none; }
.fa-chat-empty { text-align: center; color: var(--fa-muted); font-size: 14px; padding: 60px 20px; line-height: 1.7; }
.fa-chat-empty strong { color: var(--fa-navy); font-family: var(--fa-font-display); font-size: 16px; }
.fa-chat-day { text-align: center; margin: 16px 0 8px; font-size: 11.5px; font-weight: 600; color: var(--fa-muted); text-transform: uppercase; letter-spacing: .06em; }
.fa-msg { display: flex; gap: 10px; margin-top: 12px; align-items: flex-start; }
.fa-msg.is-grouped { margin-top: 3px; }
.fa-msg.is-mine { justify-content: flex-end; }
.fa-msg-avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--fa-chip); color: var(--fa-mid); font-size: 11.5px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.fa-msg.is-grouped .fa-msg-avatar { background: transparent; }
.fa-msg-avatar.is-staff { background: var(--fa-navy); color: #fff; }
.fa-msg-col { max-width: min(640px, 78%); min-width: 0; display: flex; flex-direction: column; }
.fa-msg.is-mine .fa-msg-col { align-items: flex-end; }
.fa-msg-meta { display: flex; align-items: baseline; gap: 8px; margin-bottom: 3px; font-size: 12.5px; flex-wrap: wrap; }
.fa-msg-name { font-weight: 700; color: var(--fa-navy); }
.fa-msg-badge { font-size: 10.5px; font-weight: 700; color: var(--fa-orange-text); background: var(--fa-orange-tint); border-radius: var(--fa-radius-pill); padding: 1px 8px; }
.fa-msg-time { font-size: 11.5px; color: var(--fa-muted); }
.fa-msg-bubble { background: var(--fa-white); border: 1px solid var(--fa-border); border-radius: 4px 14px 14px 14px; padding: 9px 13px; font-size: 14.5px; line-height: 1.55; color: #1f2937; overflow-wrap: anywhere; }
.fa-msg-bubble.is-staff { border-color: #f3c9a4; background: #fffaf5; }
.fa-msg.is-mine .fa-msg-bubble { background: var(--fa-orange); border-color: var(--fa-orange); color: #fff; border-radius: 14px 4px 14px 14px; }
.fa-msg.is-mine .fa-msg-bubble a { color: #fff; }
.fa-msg-bubble a { color: var(--fa-orange-text); text-decoration: underline; }
.fa-msg-bubble.is-deleted { background: transparent !important; border-style: dashed !important; border-color: var(--fa-border) !important; color: var(--fa-muted) !important; font-style: italic; font-size: 13px; }
.fa-msg-quote { border-left: 3px solid var(--fa-orange); background: rgba(15, 27, 51, .05); border-radius: 6px; padding: 5px 9px; margin-bottom: 6px; font-size: 12.5px; cursor: pointer; }
.fa-msg.is-mine .fa-msg-quote { border-left-color: #fff; background: rgba(255, 255, 255, .18); }
.fa-msg-quote div { opacity: .85; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.fa-msg-actions { display: flex; gap: 10px; align-items: center; margin-top: 2px; min-height: 18px; opacity: 0; transition: opacity .15s; }
.fa-msg:hover .fa-msg-actions, .fa-msg:focus-within .fa-msg-actions { opacity: 1; }
@media (hover: none) { .fa-msg-actions { opacity: 1; } }
.fa-msg-actions button { background: none; border: 0; padding: 0; font-size: 12px; color: var(--fa-muted); cursor: pointer; font-weight: 600; }
.fa-msg-actions button:hover { color: var(--fa-orange); }
.fa-msg.is-flash .fa-msg-bubble { box-shadow: 0 0 0 3px rgba(232, 112, 26, .35); }
.fa-chat-newpill { position: absolute; left: 50%; transform: translateX(-50%); bottom: 118px; background: var(--fa-navy); color: #fff; border: 0; border-radius: var(--fa-radius-pill); padding: 7px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; box-shadow: 0 6px 18px rgba(15, 27, 51, .25); }
.fa-chat-compose { border-top: 1px solid var(--fa-divider); padding: 10px 72px 10px 16px; background: var(--fa-white); } /* right padding keeps Send clear of the floating help button */
.fa-chat-row { display: flex; gap: 10px; align-items: flex-end; }
.fa-chat-row textarea { flex: 1; resize: none; border: 1px solid var(--fa-border); border-radius: var(--fa-radius-control); padding: 11px 14px; font-family: inherit; font-size: 14.5px; line-height: 1.45; max-height: 160px; outline: none; }
.fa-chat-row textarea:focus { border-color: var(--fa-orange); box-shadow: 0 0 0 3px rgba(232, 112, 26, .15); }
.fa-chat-send { flex: 0 0 auto; }
.fa-chat-hint { font-size: 11.5px; color: var(--fa-muted); margin-top: 6px; }
.fa-chat-replying { display: flex; gap: 10px; align-items: flex-start; border-left: 3px solid var(--fa-orange); background: var(--fa-orange-tint); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; font-size: 12.5px; }
.fa-chat-replying div div { color: var(--fa-body); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.fa-chat-replying button { background: none; border: 0; font-size: 18px; line-height: 1; cursor: pointer; color: var(--fa-muted); }
.fa-chat-error { background: #fbe7e3; color: var(--fa-danger); border-radius: 8px; padding: 7px 10px; margin-bottom: 8px; font-size: 13px; }
@media (max-width: 759px) {
	.fa-chat { height: calc(100vh - 108px); height: calc(100dvh - 108px); min-height: 400px; border-radius: 14px; } /* below the sticky top nav */
	.fa-chat-rules { font-size: 11.5px; padding: 6px 14px; }
	.fa-chat-head { padding: 10px 14px; }
	.fa-chat-scroll { padding: 8px 12px 12px; }
	.fa-chat-hint { display: none; }
	.fa-msg-col { max-width: 86%; }
}


/* ---------- Responsive refinements (phones & tablets) ---------- */

#fa-detail {
	scroll-margin-top: 84px;
}

.fa-back-to-list {
	display: none;
	font-size: 14px;
	font-weight: 700;
	color: var(--fa-orange) !important;
	text-decoration: none !important;
	margin-bottom: 14px;
}

@media (max-width: 999px) {
	.fa-body-split.has-item .fa-detail-pane {
		order: -1;
	}
	.fa-body-split.has-item .fa-back-to-list {
		display: inline-block;
	}
	.fa-detail-pane {
		width: 100%;
		padding: 22px 18px 40px;
	}
}

@media (max-width: 600px) {
	.fa-checklist-row {
		flex-wrap: wrap;
		row-gap: 10px;
	}
	.fa-checklist-body {
		flex: 1 1 calc(100% - 50px);
	}
	.fa-checklist-action {
		margin-left: 40px;
	}
	.fa-search kbd {
		display: none;
	}
	.fa-item-row {
		padding: 12px 16px 12px 22px;
		gap: 10px;
	}
	.fa-item-row.is-selected {
		padding-left: 19px;
	}
	.fa-item-right {
		font-size: 12px;
	}
	.fa-card {
		padding: 18px 16px;
	}
	.fa-btn {
		white-space: normal;
	}
	table {
		display: block;
		max-width: 100%;
		overflow-x: auto;
	}
}
