/*
 * Fenüs Deneme: öğrenci sayfaları (siyah, sarı, beyaz).
 * Önce telefon için yazıldı; tablet ve bilgisayarda genişler. Dış yazı tipi yüklenmez,
 * cihazın kendi yazı tipi kullanılır (hızlı açılış, internetten ek indirme yok).
 */

:root {
	--fbd-black: #111;
	--fbd-ink: #1d1d1b;
	--fbd-yellow: #ffd400;
	--fbd-yellow-soft: #fff6c2;
	--fbd-white: #fff;
	--fbd-paper: #f6f6f3;
	--fbd-line: #dddcd5;
	--fbd-muted: #55554f;
	--fbd-radius: 12px;
}

*,
*::before,
*::after {
	box-sizing: border-box;
}

html {
	-webkit-text-size-adjust: 100%;
	text-size-adjust: 100%;
}

body.fbd-s {
	margin: 0;
	background: var(--fbd-paper);
	color: var(--fbd-ink);
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
	font-size: 1rem;
	line-height: 1.55;
}

.fbd-wrap {
	width: 100%;
	max-width: 760px;
	margin: 0 auto;
	padding: 0 16px;
}

.fbd-skip {
	position: absolute;
	left: -9999px;
}

.fbd-skip:focus {
	left: 8px;
	top: 8px;
	z-index: 10;
	padding: 8px 12px;
	background: var(--fbd-yellow);
	color: var(--fbd-black);
}

a {
	color: inherit;
}

:focus-visible {
	outline: 3px solid var(--fbd-yellow);
	outline-offset: 2px;
}

/* Üst çubuk */
.fbd-top {
	background: var(--fbd-black);
	border-bottom: 4px solid var(--fbd-yellow);
}

.fbd-top-inner {
	display: flex;
	align-items: center;
	min-height: 60px;
}

.fbd-brand {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	color: var(--fbd-white);
	text-decoration: none;
}

.fbd-brand-mark {
	display: inline-grid;
	place-items: center;
	width: 36px;
	height: 36px;
	border-radius: 8px;
	background: var(--fbd-yellow);
	color: var(--fbd-black);
	font-weight: 800;
	font-size: 1.25rem;
}

.fbd-brand-text {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.fbd-brand-text strong {
	color: var(--fbd-yellow);
	letter-spacing: 0.06em;
	font-size: 1rem;
}

.fbd-brand-text span {
	font-size: 0.85rem;
	color: #e9e9e4;
}

main.fbd-wrap {
	padding-top: 20px;
	padding-bottom: 32px;
}

.fbd-h1 {
	margin: 0 0 8px;
	font-size: 1.5rem;
	line-height: 1.25;
	color: var(--fbd-black);
}

.fbd-h2 {
	margin: 0 0 10px;
	font-size: 1.1rem;
	color: var(--fbd-black);
}

.fbd-lead {
	margin: 0 0 20px;
	color: var(--fbd-muted);
}

.fbd-sub {
	margin: 0;
	color: var(--fbd-muted);
}

.fbd-small {
	font-size: 0.9rem;
	color: var(--fbd-muted);
}

.fbd-box {
	margin: 0 0 16px;
	padding: 16px;
	background: var(--fbd-white);
	border: 1px solid var(--fbd-line);
	border-radius: var(--fbd-radius);
}

.fbd-box p:first-child {
	margin-top: 0;
}

.fbd-box p:last-child {
	margin-bottom: 0;
}

.fbd-empty {
	text-align: center;
}

/* Liste */
.fbd-section {
	margin-bottom: 24px;
}

.fbd-cards {
	display: grid;
	gap: 12px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fbd-card-link {
	display: grid;
	gap: 4px;
	padding: 16px;
	background: var(--fbd-white);
	border: 1px solid var(--fbd-line);
	border-left: 6px solid var(--fbd-line);
	border-radius: var(--fbd-radius);
	text-decoration: none;
	color: var(--fbd-ink);
}

.fbd-card[data-phase="open"] .fbd-card-link,
.fbd-card[data-phase="late"] .fbd-card-link {
	border-left-color: var(--fbd-yellow);
}

.fbd-card-link:hover {
	border-color: var(--fbd-black);
}

.fbd-card-title {
	font-size: 1.15rem;
	font-weight: 700;
	color: var(--fbd-black);
}

.fbd-card-meta,
.fbd-card-time {
	color: var(--fbd-muted);
	font-size: 0.95rem;
}

.fbd-card-time small {
	display: block;
	font-size: 0.85rem;
}

.fbd-card-go {
	margin-top: 6px;
	font-weight: 700;
	color: var(--fbd-black);
}

/* Sınıf sekmeleri (liste sayfası). Telefonda yan yana sığmazsa alt satıra iner. */
.fbd-tabs {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 0 0 20px;
}

.fbd-tab {
	display: inline-block;
	padding: 6px 14px;
	border-radius: 999px;
	border: 1px solid var(--fbd-black);
	background: var(--fbd-white);
	color: var(--fbd-black);
	font-weight: 700;
	text-decoration: none;
}

.fbd-tab:hover,
.fbd-tab:focus-visible {
	background: var(--fbd-yellow-soft);
}

.fbd-tab.is-current {
	background: var(--fbd-black);
	color: var(--fbd-yellow);
}

/* Durum etiketi: renk yanında yazıyla da ayrılır. */
.fbd-pill {
	justify-self: start;
	display: inline-block;
	padding: 2px 10px;
	border-radius: 999px;
	border: 1px solid var(--fbd-black);
	background: var(--fbd-white);
	color: var(--fbd-black);
	font-size: 0.8rem;
	font-weight: 700;
}

[data-phase="open"] .fbd-pill {
	background: var(--fbd-yellow);
}

[data-phase="late"] .fbd-pill {
	background: var(--fbd-black);
	color: var(--fbd-yellow);
}

[data-phase="ended"] .fbd-pill {
	border-color: var(--fbd-line);
	color: var(--fbd-muted);
}

/* Sınav bilgi sayfası */
.fbd-back {
	margin: 0 0 12px;
}

.fbd-back a {
	font-weight: 600;
	text-decoration: none;
}

.fbd-exam-head {
	margin-bottom: 16px;
}

.fbd-exam-head .fbd-pill {
	margin-bottom: 8px;
}

.fbd-status {
	margin: 0 0 16px;
	padding: 18px 16px;
	border-radius: var(--fbd-radius);
	background: var(--fbd-black);
	color: var(--fbd-white);
}

.fbd-status p {
	margin: 0 0 6px;
}

.fbd-status-title {
	font-size: 1.2rem;
	font-weight: 800;
	color: var(--fbd-yellow);
}

.fbd-status .fbd-small {
	color: #d8d8d2;
}

.fbd-count strong {
	display: block;
	font-size: 2rem;
	line-height: 1.2;
	font-variant-numeric: tabular-nums;
	color: var(--fbd-white);
}

.fbd-zone {
	margin-top: 10px !important;
	font-size: 0.85rem;
	color: #d8d8d2;
}

.fbd-actions {
	display: grid;
	gap: 10px;
	margin-bottom: 16px;
}

.fbd-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 52px;
	padding: 12px 20px;
	border: 2px solid var(--fbd-black);
	border-radius: 10px;
	background: var(--fbd-white);
	color: var(--fbd-black);
	font: inherit;
	font-weight: 700;
	text-decoration: none;
	cursor: pointer;
}

.fbd-btn-primary {
	background: var(--fbd-yellow);
}

.fbd-btn:disabled {
	cursor: not-allowed;
	opacity: 0.55;
}

.fbd-btn[hidden] {
	display: none;
}

.fbd-note {
	margin: 0;
	padding: 10px 12px;
	border-left: 4px solid var(--fbd-yellow);
	background: var(--fbd-yellow-soft);
	font-size: 0.9rem;
}

.fbd-facts {
	display: grid;
	gap: 0;
	margin: 0;
}

.fbd-facts > div {
	display: grid;
	gap: 2px;
	padding: 10px 0;
	border-top: 1px solid var(--fbd-line);
}

.fbd-facts > div:first-child {
	border-top: 0;
	padding-top: 0;
}

.fbd-facts dt {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-facts dd {
	margin: 0;
	font-weight: 600;
}

.fbd-rules,
.fbd-warn ul {
	margin: 0;
	padding-left: 1.25em;
}

.fbd-rules li,
.fbd-warn li {
	margin-bottom: 8px;
}

.fbd-warn {
	border-left: 6px solid var(--fbd-yellow);
}

.fbd-privacy summary {
	font-weight: 700;
	cursor: pointer;
	min-height: 32px;
}

.fbd-privacy[open] summary {
	margin-bottom: 10px;
}

.fbd-desc {
	white-space: normal;
}

/* Alt bilgi */
.fbd-foot {
	padding: 20px 0 32px;
	background: var(--fbd-black);
	color: #e9e9e4;
	font-size: 0.9rem;
}

.fbd-foot p {
	margin: 0 0 6px;
}

.fbd-foot a {
	color: var(--fbd-yellow);
}

/* Sınava giriş ekranları (FB kodu, kodla devam, kalan süre) */
[hidden] {
	display: none !important;
}

.fbd-mono {
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	letter-spacing: 0.04em;
}

.fbd-test-banner {
	border-left: 6px solid var(--fbd-black);
	background: var(--fbd-yellow-soft);
}

.fbd-device {
	border: 2px solid var(--fbd-black);
	background: var(--fbd-yellow-soft);
}

.fbd-device .fbd-btn {
	width: 100%;
}

.fbd-error {
	margin: 0;
	padding: 10px 12px;
	border-left: 4px solid #b3261e;
	background: #fdecea;
	color: #5c0f0a;
	font-weight: 600;
}

.fbd-row {
	display: grid;
	gap: 10px;
	margin: 12px 0;
}

.fbd-code-card {
	padding: 18px 12px;
	border: 3px dashed var(--fbd-black);
	border-radius: var(--fbd-radius);
	background: var(--fbd-white);
	text-align: center;
}

.fbd-code {
	margin: 0;
	font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, "Liberation Mono", monospace;
	font-size: clamp(1.6rem, 8.5vw, 2.6rem);
	font-weight: 800;
	letter-spacing: 0.06em;
	color: var(--fbd-black);
	word-break: break-all;
	user-select: all;
}

.fbd-code.is-partial {
	font-size: 1.4rem;
}

.fbd-tips {
	margin: 12px 0;
	padding-left: 1.25em;
}

.fbd-tips li {
	margin-bottom: 6px;
}

.fbd-check {
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 52px;
	margin: 8px 0;
	padding: 8px 12px;
	border: 2px solid var(--fbd-black);
	border-radius: 10px;
	background: var(--fbd-white);
	font-weight: 700;
	cursor: pointer;
}

.fbd-check input {
	width: 24px;
	height: 24px;
	accent-color: var(--fbd-black);
}

.fbd-screen > .fbd-btn,
.fbd-row .fbd-btn {
	width: 100%;
}

.fbd-screen label[for] {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.fbd-input {
	display: block;
	width: 100%;
	min-height: 52px;
	padding: 10px 12px;
	border: 2px solid var(--fbd-black);
	border-radius: 10px;
	background: var(--fbd-white);
	color: var(--fbd-black);
	font-size: 1.3rem;
	text-transform: uppercase;
}

.fbd-input[aria-invalid="true"] {
	border-color: #b3261e;
}

.fbd-runbar {
	position: sticky;
	top: 0;
	z-index: 5;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 4px 12px;
	margin-bottom: 16px;
	padding: 12px 16px;
	border-radius: var(--fbd-radius);
	background: var(--fbd-black);
	color: var(--fbd-white);
}

.fbd-runbar .fbd-small {
	color: #e9e9e4;
}

.fbd-runtime {
	font-size: 1.8rem;
	font-variant-numeric: tabular-nums;
	color: var(--fbd-yellow);
}

.fbd-exam.is-warning .fbd-runtime {
	color: var(--fbd-yellow);
	text-decoration: underline;
}

.fbd-exam.is-danger .fbd-runbar {
	background: #8c1d18;
}

.fbd-exam.is-danger .fbd-runtime {
	color: var(--fbd-white);
}

.fbd-offscreen {
	position: fixed;
	left: -9999px;
	top: 0;
}

.fbd-print-only {
	display: none;
}

/* ---------------------------------------------------------------- Sınav ekranı (Modül 3D) */

.fbd-sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

.fbd-btn-sm {
	gap: 0.3em;
	min-height: 44px;
	padding: 8px 12px;
	font-size: 0.92rem;
}

.fbd-btn-dark {
	background: var(--fbd-black);
	color: var(--fbd-white);
}

.fbd-btn-light {
	border-color: var(--fbd-white);
	background: var(--fbd-white);
}

.fbd-btn[aria-pressed="true"] {
	background: var(--fbd-yellow);
}

body.fbd-running main.fbd-wrap {
	max-width: 1120px;
	padding-bottom: 96px;
}

.fbd-run .fbd-runbar {
	flex-wrap: nowrap;
	align-items: center;
	padding: 8px 12px;
}

.fbd-run .fbd-runtime {
	font-size: 1.5rem;
}

.fbd-runbar [data-action="palette"] {
	flex: 0 0 auto;
	gap: 0.15em;
}

.fbd-runbar-time {
	display: flex;
	flex-direction: column;
	line-height: 1.15;
}

.fbd-runbar-label {
	font-size: 0.8rem;
	color: #e9e9e4;
}

.fbd-save {
	flex: 1 1 auto;
	min-width: 0;
	margin: 0;
	font-size: 0.82rem;
	line-height: 1.3;
	overflow-wrap: anywhere;
	color: #e9e9e4;
}

.fbd-save[data-save="saving"] {
	color: var(--fbd-white);
}

.fbd-save[data-save="offline"] {
	color: var(--fbd-yellow);
	font-weight: 700;
}

.fbd-save[data-save="error"] {
	padding: 2px 8px;
	border-radius: 6px;
	background: #fde7e5;
	color: #8c1d18;
	font-weight: 700;
}

.fbd-lost {
	margin-bottom: 16px;
	border-color: #8c1d18;
}

.fbd-run .fbd-error,
.fbd-run .fbd-note {
	margin-bottom: 12px;
}

.fbd-run-grid {
	display: block;
}

.fbd-q {
	padding: 16px;
	border: 1px solid var(--fbd-line);
	border-radius: var(--fbd-radius);
	background: var(--fbd-white);
	-webkit-user-select: none;
	user-select: none;
	-webkit-touch-callout: none;
}

.fbd-q-head {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
	margin-bottom: 12px;
}

.fbd-q-badge {
	padding: 4px 12px;
	border-radius: 999px;
	background: var(--fbd-black);
	color: var(--fbd-yellow);
	font-weight: 700;
	font-variant-numeric: tabular-nums;
}

.fbd-q-tools {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
}

.fbd-size {
	display: inline-flex;
	gap: 4px;
}

.fbd-size .fbd-btn {
	min-width: 44px;
	padding: 8px;
}

.fbd-q-loading {
	margin: 24px 0;
	color: var(--fbd-muted);
}

.fbd-q-stem {
	font-size: 1.05rem;
	line-height: 1.6;
	overflow-wrap: anywhere;
}

.fbd-q-stem p {
	margin: 0 0 0.8em;
}

.fbd-exam[data-text-size="2"] .fbd-q-stem,
.fbd-exam[data-text-size="2"] .fbd-opt-body {
	font-size: 1.22rem;
}

.fbd-exam[data-text-size="3"] .fbd-q-stem,
.fbd-exam[data-text-size="3"] .fbd-opt-body {
	font-size: 1.42rem;
}

.fbd-table-scroll {
	max-width: 100%;
	margin: 0 0 0.8em;
	overflow-x: auto;
}

.fbd-q-figure {
	margin: 0 0 16px;
	text-align: center;
}

.fbd-q-zoom {
	display: block;
	width: 100%;
	padding: 0;
	border: 0;
	background: none;
	cursor: zoom-in;
}

.fbd-q-figure img,
.fbd-opt-img {
	display: block;
	max-width: 100%;
	height: auto;
	margin: 0 auto;
}

img.is-loading {
	min-height: 120px;
	width: 100%;
	border-radius: 8px;
	background: repeating-linear-gradient(45deg, #f1f1ec, #f1f1ec 10px, #e7e7e0 10px, #e7e7e0 20px);
}

.fbd-options {
	display: grid;
	gap: 10px;
	margin-top: 16px;
}

.fbd-opt {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	width: 100%;
	min-height: 52px;
	padding: 10px 12px;
	border: 2px solid var(--fbd-line);
	border-radius: 10px;
	background: var(--fbd-white);
	color: var(--fbd-ink);
	font: inherit;
	text-align: left;
	cursor: pointer;
}

.fbd-opt-letter {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 34px;
	height: 34px;
	border: 2px solid var(--fbd-black);
	border-radius: 50%;
	font-weight: 700;
}

.fbd-opt-body {
	flex: 1 1 auto;
	min-width: 0;
	padding-top: 4px;
	overflow-wrap: anywhere;
}

.fbd-opt-body p {
	margin: 0;
}

.fbd-opt[aria-checked="true"] {
	border-color: var(--fbd-black);
	background: var(--fbd-yellow-soft);
	box-shadow: inset 0 0 0 1px var(--fbd-black);
}

.fbd-opt[aria-checked="true"] .fbd-opt-letter,
.fbd-bubble-opt[aria-checked="true"] .fbd-opt-letter {
	background: var(--fbd-black);
	color: var(--fbd-yellow);
}

.fbd-options.is-bubbles {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.fbd-bubble-opt {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 64px;
	border: 2px solid var(--fbd-line);
	border-radius: 12px;
	background: var(--fbd-white);
	font: inherit;
	cursor: pointer;
}

.fbd-bubble-opt .fbd-opt-letter {
	width: 48px;
	height: 48px;
	font-size: 1.2rem;
}

.fbd-bubble-opt[aria-checked="true"] {
	border-color: var(--fbd-black);
	background: var(--fbd-yellow-soft);
}

.fbd-opt:disabled,
.fbd-bubble-opt:disabled {
	cursor: not-allowed;
	opacity: 0.7;
}

/* Soru listesi: telefonda alttan açılan panel, geniş ekranda sağ sütun. */
.fbd-palette {
	display: none;
}

.fbd-run.is-palette .fbd-palette {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 20;
	display: block;
	max-height: 80vh;
	overflow-y: auto;
	padding: 16px;
	border-top: 4px solid var(--fbd-yellow);
	border-radius: 16px 16px 0 0;
	background: var(--fbd-white);
	box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.25);
}

.fbd-palette-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 8px;
}

.fbd-palette-sum {
	margin: 0;
}

.fbd-palette-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(48px, 1fr));
	gap: 8px;
	margin: 12px 0;
	padding: 0;
	list-style: none;
}

.fbd-dot {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-width: 32px;
	min-height: 48px;
	border: 2px solid var(--fbd-line);
	border-radius: 10px;
	background: var(--fbd-white);
	color: var(--fbd-ink);
	font: inherit;
	font-weight: 700;
	font-variant-numeric: tabular-nums;
	cursor: pointer;
}

.fbd-legend .fbd-dot {
	width: 32px;
	min-height: 32px;
	cursor: default;
}

button.fbd-dot::after {
	position: absolute;
	top: -6px;
	right: -6px;
	font-size: 0.75rem;
	line-height: 1;
}

.fbd-dot.is-answered {
	border-color: var(--fbd-black);
	background: var(--fbd-black);
	color: var(--fbd-yellow);
}

button.fbd-dot.is-answered::after {
	content: "✓";
	padding: 2px 3px;
	border-radius: 50%;
	background: var(--fbd-yellow);
	color: var(--fbd-black);
}

.fbd-dot.is-pending {
	border-style: dashed;
	border-color: var(--fbd-black);
	background: var(--fbd-yellow-soft);
}

button.fbd-dot.is-pending::after {
	content: "⏱";
}

.fbd-dot.is-flagged {
	box-shadow: inset 0 0 0 2px var(--fbd-yellow);
}

button.fbd-dot.is-flagged::before {
	content: "★";
	position: absolute;
	top: -7px;
	left: -5px;
	color: #b58900;
	font-size: 0.85rem;
	line-height: 1;
}

.fbd-dot.is-current {
	outline: 3px solid var(--fbd-yellow);
	outline-offset: 2px;
}

.fbd-dot.is-cancelled {
	color: var(--fbd-muted);
	text-decoration: line-through;
	opacity: 0.6;
}

.fbd-legend {
	display: grid;
	gap: 6px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
	font-size: 0.9rem;
}

.fbd-legend li {
	display: flex;
	align-items: center;
	gap: 8px;
}

.fbd-palette > .fbd-btn {
	width: 100%;
}

/* Alt gezinme çubuğu: başparmakla erişilir. */
.fbd-run-nav {
	position: fixed;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 10;
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 8px;
	padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
	border-top: 1px solid var(--fbd-line);
	background: var(--fbd-white);
}

.fbd-run-nav .fbd-btn {
	min-width: 0;
	padding: 10px 8px;
}

.fbd-toast {
	position: fixed;
	left: 50%;
	bottom: 84px;
	z-index: 30;
	max-width: calc(100% - 32px);
	padding: 10px 16px;
	border-radius: 10px;
	background: var(--fbd-black);
	color: var(--fbd-yellow);
	font-weight: 700;
	transform: translateX(-50%);
}

.fbd-modal,
.fbd-zoom {
	position: fixed;
	inset: 0;
	z-index: 40;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	background: rgba(17, 17, 17, 0.7);
}

.fbd-modal[hidden],
.fbd-zoom[hidden] {
	display: none;
}

.fbd-modal-box {
	width: 100%;
	max-width: 480px;
	max-height: 90vh;
	overflow-y: auto;
	padding: 20px;
	border-top: 6px solid var(--fbd-yellow);
	border-radius: var(--fbd-radius);
	background: var(--fbd-white);
}

.fbd-zoom {
	flex-direction: column;
	background: #111;
}

.fbd-zoom-close {
	align-self: flex-end;
	margin-bottom: 8px;
}

.fbd-zoom-area {
	flex: 1 1 auto;
	width: 100%;
	overflow: auto;
	touch-action: pinch-zoom pan-x pan-y;
}

.fbd-zoom-area img {
	display: block;
	max-width: none;
	width: 100%;
	height: auto;
	background: var(--fbd-white);
}

/* Tablet ve bilgisayar */
@media (min-width: 640px) {
	.fbd-h1 {
		font-size: 1.9rem;
	}

	.fbd-actions {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fbd-note,
	.fbd-actions > p,
	.fbd-actions > div {
		grid-column: 1 / -1;
	}

	.fbd-row {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fbd-facts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		column-gap: 24px;
	}

	.fbd-facts > div:nth-child(2) {
		border-top: 0;
		padding-top: 0;
	}

	.fbd-cards {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

/* Dar telefonda süre çubuğu tek satırda kalır. */
@media (max-width: 400px) {
	.fbd-run .fbd-runbar {
		gap: 4px 8px;
		padding: 8px 10px;
	}

	.fbd-runbar [data-action="palette"] {
		padding: 8px 10px;
	}
}

/* Sınav ekranı: geniş ekranda soru ve soru listesi yan yana. */
@media (min-width: 960px) {
	.fbd-run-grid {
		display: grid;
		grid-template-columns: minmax(0, 1fr) 280px;
		align-items: start;
		gap: 16px;
	}

	.fbd-palette,
	.fbd-run.is-palette .fbd-palette {
		position: sticky;
		top: 88px;
		display: block;
		max-height: none;
		padding: 16px;
		border: 1px solid var(--fbd-line);
		border-radius: var(--fbd-radius);
		background: var(--fbd-white);
		box-shadow: none;
	}

	.fbd-palette-close,
	.fbd-runbar [data-action="palette"] {
		display: none;
	}

	.fbd-q {
		padding: 24px;
	}

	.fbd-run-nav {
		position: static;
		max-width: calc(100% - 296px);
		margin-top: 16px;
		padding: 0;
		border: 0;
		background: none;
	}

	body.fbd-running main.fbd-wrap {
		padding-bottom: 32px;
	}

	.fbd-toast {
		bottom: 24px;
	}
}

/* Sonuç sayfası (4A) */
.fbd-top-link {
	margin-left: auto;
	padding: 8px 12px;
	border: 1px solid var(--fbd-yellow);
	border-radius: 8px;
	color: var(--fbd-yellow);
	font-weight: 600;
	text-decoration: none;
}

.fbd-top-link:hover {
	background: var(--fbd-yellow);
	color: var(--fbd-black);
}

/* Sınav sayfasındaki geri sayım koyu kutuda beyazdır; sonuç sayfasının kutusu beyaz. */
.fbd-result .fbd-count strong {
	color: var(--fbd-black);
}

.fbd-result-head .fbd-pill {
	display: inline-block;
	margin: 0 0 8px;
}

.fbd-stats {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.fbd-stat {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 12px;
	border: 1px solid var(--fbd-line);
	border-radius: var(--fbd-radius);
	background: var(--fbd-white);
}

.fbd-stat-value {
	font-size: 1.5rem;
	font-weight: 800;
	color: var(--fbd-black);
	font-variant-numeric: tabular-nums;
}

.fbd-stat-label {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-stat.is-net,
.fbd-stat.is-score {
	border: 2px solid var(--fbd-black);
	background: var(--fbd-yellow-soft);
}

.fbd-result-table {
	width: 100%;
	border-collapse: collapse;
	font-variant-numeric: tabular-nums;
}

.fbd-result-table th,
.fbd-result-table td {
	padding: 8px 10px;
	border-bottom: 1px solid var(--fbd-line);
	text-align: center;
	white-space: nowrap;
}

.fbd-result-table thead th {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-result-table tr.is-correct .fbd-outcome {
	color: #1b6e2a;
	font-weight: 700;
}

.fbd-result-table tr.is-wrong .fbd-outcome {
	color: #b3261e;
	font-weight: 700;
}

.fbd-result-table tr.is-cancelled td {
	color: var(--fbd-muted);
}

.fbd-review {
	margin: 16px 0;
}

.fbd-review-card {
	margin-bottom: 12px;
}

.fbd-review-head {
	margin: 0 0 8px;
}

.fbd-review-options {
	display: grid;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.fbd-review-options.is-bubbles {
	grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

.fbd-review-opt {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 10px;
	padding: 8px 10px;
	border: 1px solid var(--fbd-line);
	border-radius: 10px;
	background: var(--fbd-white);
}

.fbd-review-opt.is-chosen {
	border: 2px solid #b3261e;
}

.fbd-review-opt.is-key {
	border: 2px solid #1b6e2a;
	background: #eaf6ec;
}

.fbd-review-mark {
	margin-left: auto;
	font-size: 0.85rem;
	font-weight: 700;
}

.fbd-review-opt.is-key .fbd-review-mark {
	color: #1b6e2a;
}

.fbd-review-opt.is-chosen:not(.is-key) .fbd-review-mark {
	color: #b3261e;
}

/* Deneme geneli ve konu / kazanım analizi (4B) */
.fbd-general-list {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
	gap: 8px 16px;
	margin: 0 0 8px;
	padding: 0;
	list-style: none;
}

.fbd-general-list li {
	display: flex;
	flex-direction: column;
}

.fbd-general-label {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-general-value {
	font-size: 1.15rem;
	color: var(--fbd-black);
	font-variant-numeric: tabular-nums;
}

.fbd-analysis .fbd-h2 + .fbd-table-scroll,
.fbd-analysis .fbd-table-scroll + .fbd-h2 {
	margin-top: 16px;
}

.fbd-analysis-table th[scope="row"] {
	min-width: 180px;
	text-align: left;
	white-space: normal;
	font-weight: 600;
}

.fbd-outcome-code {
	font-size: 0.85rem;
}

.fbd-outcome-topic {
	display: block;
	font-weight: 400;
	color: var(--fbd-muted);
}

.fbd-level {
	display: inline-block;
	padding: 2px 8px;
	border: 1px solid var(--fbd-black);
	border-radius: 999px;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--fbd-black);
	background: var(--fbd-white);
}

.fbd-level.is-yeterli {
	background: var(--fbd-yellow);
}

.fbd-level.is-destek {
	background: var(--fbd-black);
	color: var(--fbd-yellow);
}

@media (min-width: 640px) {
	.fbd-stats {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (prefers-reduced-motion: reduce) {
	* {
		transition: none !important;
	}
}

/* Yazdırma: yalnızca kod kartı */
@media print {
	body.fbd-s {
		background: #fff;
	}

	.fbd-top,
	.fbd-foot,
	.fbd-back,
	.fbd-exam-head .fbd-pill,
	.fbd-screen[data-screen="code"] > :not(.fbd-code-card):not(h2),
	.fbd-test-banner {
		display: none !important;
	}

	.fbd-print-only {
		display: block;
	}

	.fbd-code-card {
		border-color: #000;
	}

	.fbd-run,
	.fbd-modal,
	.fbd-zoom {
		display: none !important;
	}
}

/* Modül 4C: karne bölümü. Ad alanı yazıldığı gibi görünür (kod alanları büyük harflidir). */
.fbd-card-form label[for] {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.fbd-card-form .fbd-input {
	font-size: 1.1rem;
	text-transform: none;
}

.fbd-card-form .fbd-row {
	margin-top: 12px;
}

/* ------------------------------------------------------------------ */
/* Sınıf sistemi (Modül 5): öğretmen, öğrenci ve veli panelleri        */
/* ------------------------------------------------------------------ */
.fbd-top-nav {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-left: auto;
	padding: 8px 0;
}

.fbd-top-nav .fbd-top-link {
	margin-left: 0;
	padding: 6px 10px;
	font-size: 0.9rem;
}

body.fbd-s-teacher main.fbd-wrap {
	max-width: 980px;
}

.fbd-panel-head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 8px;
}

.fbd-panel-head .fbd-h1 {
	margin-bottom: 2px;
}

.fbd-panel-head form {
	flex: 0 0 auto;
}

.fbd-h3 {
	margin: 16px 0 8px;
	font-size: 1.1rem;
	color: var(--fbd-black);
}

.fbd-h4 {
	margin: 16px 0 8px;
	font-size: 1rem;
	color: var(--fbd-black);
}

.fbd-field {
	margin: 0 0 12px;
}

.fbd-field label {
	display: block;
	margin-bottom: 6px;
	font-weight: 700;
}

.fbd-input.fbd-input-text,
select.fbd-input {
	font-size: 1rem;
	text-transform: none;
}

.fbd-input-sm {
	min-height: 36px;
	padding: 4px 8px;
	font-size: 0.9rem;
}

.fbd-textarea {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 2px solid var(--fbd-black);
	border-radius: 10px;
	background: var(--fbd-white);
	color: var(--fbd-black);
	font-size: 0.9rem;
	white-space: pre;
	overflow: auto;
}

.fbd-notice {
	border-color: var(--fbd-black);
	background: var(--fbd-yellow-soft);
	font-weight: 600;
}

.fbd-class-entry .fbd-row {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 8px 0 0;
}

.fbd-class-entry .fbd-row .fbd-btn {
	width: auto;
	flex: 1 1 140px;
}

.fbd-linklist {
	display: flex;
	flex-direction: column;
	gap: 4px;
	margin: 0 0 12px;
	padding: 0;
	list-style: none;
}

.fbd-linklist a.is-current {
	font-weight: 800;
	text-decoration-thickness: 3px;
	text-decoration-color: var(--fbd-yellow);
}

.fbd-cell-left {
	text-align: left !important;
	white-space: normal !important;
}

.fbd-class-table th[scope="row"] {
	font-weight: 700;
}

.fbd-inline-form {
	display: flex;
	align-items: center;
	gap: 6px;
	margin: 0;
}

.fbd-inline-form .fbd-btn {
	width: auto;
}

.fbd-danger-zone {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--fbd-line);
}

.fbd-card-form {
	margin-top: 12px;
	padding-top: 12px;
	border-top: 1px dashed var(--fbd-line);
}

.fbd-card-form .fbd-btn {
	width: auto;
}

.fbd-card-time.is-soon {
	color: #b3261e;
	font-weight: 700;
}

.fbd-stat.is-rank {
	border: 2px solid var(--fbd-black);
	background: var(--fbd-black);
}

.fbd-stat.is-rank .fbd-stat-value,
.fbd-stat.is-rank .fbd-stat-label {
	color: var(--fbd-yellow);
}

.fbd-stat.is-rank small {
	font-size: 0.9rem;
	font-weight: 600;
}

.fbd-level {
	display: inline-block;
	padding: 2px 8px;
	border-radius: 999px;
	background: var(--fbd-paper);
	font-size: 0.8rem;
	font-weight: 700;
}

.fbd-level.is-good {
	background: #dff3e3;
	color: #1b6e2a;
}

.fbd-level.is-mid {
	background: var(--fbd-yellow-soft);
	color: #6b5900;
}

.fbd-level.is-low {
	background: #f8dcda;
	color: #b3261e;
}

/* Sınıf modu: FB kodu ve not etme onayı gösterilmez (öğrenci kodu sınıf kodudur). */
.fbd-class-only {
	display: none;
}

.fbd-exam[data-class="1"] .fbd-class-only {
	display: block;
}

.fbd-exam[data-class="1"] .fbd-fb-only {
	display: none !important;
}

/* Kod fişleri */
.fbd-slips {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
	margin: 12px 0;
}

.fbd-slip {
	padding: 10px 12px;
	border: 2px dashed var(--fbd-black);
	border-radius: 8px;
	background: var(--fbd-white);
	break-inside: avoid;
}

.fbd-slip.is-parent {
	border-style: solid;
	background: var(--fbd-yellow-soft);
}

.fbd-slip p {
	margin: 0;
}

.fbd-slip-head {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-slip-code {
	margin: 4px 0;
	font-size: 1.35rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	color: var(--fbd-black);
}

.fbd-slip-foot {
	font-size: 0.78rem;
	color: var(--fbd-muted);
}

@media (max-width: 520px) {
	.fbd-slips {
		grid-template-columns: minmax(0, 1fr);
	}

	.fbd-panel-head {
		flex-direction: column;
	}
}

@media print {
	body.fbd-s-teacher .fbd-top,
	body.fbd-s-teacher .fbd-foot,
	body.fbd-s-teacher .fbd-noprint {
		display: none !important;
	}

	body.fbd-s-teacher {
		background: #fff;
	}

	body.fbd-s-teacher main.fbd-wrap {
		max-width: none;
		padding: 0;
	}

	.fbd-slips {
		gap: 6px;
		margin: 0;
	}

	.fbd-slip {
		padding: 6px 8px;
		border-color: #000;
	}

	.fbd-slip.is-parent {
		background: #fff;
	}

	.fbd-parent-text {
		border: 0;
		padding: 0;
	}
}

.fbd-mini-check {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 0.8rem;
	white-space: nowrap;
}

.fbd-consent-line {
	margin: 10px 0;
	font-size: 1.02rem;
}

.fbd-sign {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px 24px;
	margin: 16px 0 8px;
}

.fbd-sign dt {
	font-size: 0.85rem;
	color: var(--fbd-muted);
}

.fbd-sign dd {
	min-height: 34px;
	margin: 0;
	border-bottom: 1px solid var(--fbd-black);
}

.fbd-exam[data-class="1"] li.fbd-class-only {
	display: list-item;
}

.fbd-brand-logo {
	display: block;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--fbd-white);
}
