/*
 * Alfagen öğrenci / veli paneli ve giriş ekranı.
 * Mobil öncelikli; temadan bağımsız çalışır.
 */

.alf-app,
.alf-login,
.alf-note {
	--alf-navy: #003c66;
	--alf-navy-dark: #002a48;
	--alf-orange: #ff7e00;
	--alf-orange-ink: #a64f00;
	--alf-ink: #14222f;
	--alf-muted: #4a5d70;
	--alf-surface: #ffffff;
	--alf-card: #ffffff;
	--alf-hover: #fafcfd;
	--alf-topbar: rgba(255, 255, 255, .96);
	--alf-skel: #f6f9fb;
	--alf-fill: #003c66;
	--alf-fill-hover: #002a48;
	--alf-accent-soft: #fff1e3;
	--alf-note-bg: #fffaf3;
	--alf-note-line: #f6e3cc;
	--alf-st3-bg: #e7eefb;
	--alf-st3-ink: #1d4a8f;
	--alf-toast-bg: #14222f;
	--alf-toast-ink: #ffffff;
	--alf-backdrop: rgba(11, 23, 36, .5);
	color-scheme: light;
	--alf-surface-alt: #eef3f7;
	--alf-tint: #e3edf5;
	--alf-line: #dfe6ec;
	--alf-line-strong: #74889b;
	--alf-success: #17663a;
	--alf-success-bg: #e6f2eb;
	--alf-danger: #b42318;
	--alf-danger-bg: #fdecea;
	--alf-focus-bg: #0b1724;
	--alf-r1: 4px;
	--alf-r2: 8px;
	--alf-r3: 16px;
	--alf-shadow: 0 1px 2px rgba(20, 34, 47, .06), 0 4px 16px rgba(20, 34, 47, .06);
	--alf-font: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
	font-family: var(--alf-font);
	color: var(--alf-ink);
	font-size: 15px;
	line-height: 1.5;
	-webkit-font-smoothing: antialiased;
	box-sizing: border-box;
}

.alf-app *,
.alf-app *::before,
.alf-app *::after,
.alf-login *,
.alf-login *::before,
.alf-login *::after {
	box-sizing: border-box;
}

.alf-app :where(h1, h2, h3, p, ul, ol, dl, dd, fieldset) {
	margin: 0;
	padding: 0;
}
.alf-app :where(h1, h2, h3, h4) { color: inherit; font-family: var(--alf-font); letter-spacing: normal; }
.alf-app :where(ul, ol) { list-style: none; }
.alf-app :where(fieldset) { border: 0; min-width: 0; }
.alf-app a:where(:not([class])) { color: var(--alf-navy); }
.alf-app a { text-decoration-thickness: 1px; }
.alf-app :where(button, input, select, textarea) { font: inherit; color: inherit; }
.alf-app :where(img, svg) { display: block; }
.alf-app [hidden] { display: none !important; }

.alf-app :focus-visible,
.alf-login :focus-visible {
	outline: 3px solid var(--alf-orange);
	outline-offset: 2px;
}

.alf-sr {
	position: absolute !important;
	width: 1px; height: 1px;
	padding: 0; margin: -1px;
	overflow: hidden; clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}

body.alf-noscroll { overflow: hidden; }

/* ----------------------------------------------------------------- kabuk */

.alf-app {
	position: relative;
	max-width: 640px;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	background: var(--alf-surface);
	padding-bottom: calc(76px + env(safe-area-inset-bottom));
}

.alf-app__loading {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 12px;
	min-height: 60vh;
	color: var(--alf-muted);
}
.alf-spinner {
	width: 22px; height: 22px;
	border: 3px solid var(--alf-line);
	border-top-color: var(--alf-navy);
	border-radius: 50%;
	animation: alf-spin .8s linear infinite;
}
@keyframes alf-spin { to { transform: rotate(360deg); } }

.alf-top {
	position: sticky;
	top: 0;
	z-index: 20;
	display: flex;
	align-items: center;
	gap: 12px;
	min-height: 60px;
	padding: 8px 16px;
	padding-top: calc(8px + env(safe-area-inset-top));
	background: var(--alf-topbar);
	backdrop-filter: saturate(1.4) blur(8px);
	border-bottom: 1px solid var(--alf-line);
}
.admin-bar .alf-top { top: 32px; }
@media (max-width: 782px) { .admin-bar .alf-top { top: 0; } }

.alf-top__brand {
	display: flex;
	align-items: center;
	margin-right: auto;
	color: var(--alf-navy);
	font-weight: 700;
	font-size: 18px;
	letter-spacing: .01em;
	text-decoration: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	min-width: 0;
}
.alf-top__brand span { overflow: hidden; text-overflow: ellipsis; }
.alf-top__brand img { height: 30px; width: auto; max-width: 150px; object-fit: contain; }

.alf-switch {
	display: flex;
	padding: 3px;
	gap: 2px;
	background: var(--alf-surface-alt);
	border-radius: 999px;
}
.alf-switch button {
	border: 0;
	background: transparent;
	padding: 6px 14px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	color: var(--alf-muted);
	cursor: pointer;
	min-height: 34px;
}
.alf-switch button[aria-selected="true"] {
	background: var(--alf-fill);
	color: #fff;
}

.alf-iconbtn {
	position: relative;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 44px;
	height: 44px;
	border: 0;
	border-radius: 50%;
	background: transparent;
	color: var(--alf-ink);
	cursor: pointer;
	text-decoration: none;
}
.alf-iconbtn:hover { background: var(--alf-surface-alt); }
.alf-dot {
	position: absolute;
	top: 9px;
	right: 10px;
	width: 9px;
	height: 9px;
	border-radius: 50%;
	background: var(--alf-orange);
	box-shadow: 0 0 0 2px var(--alf-surface);
}

.alf-view {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 20px 16px 32px;
	outline: none;
}
.alf-app .alf-view:focus,
.alf-app .alf-view:focus-visible { outline: none; }
.alf-view > section { display: flex; flex-direction: column; gap: 10px; }

.alf-nav {
	position: fixed;
	z-index: 30;
	left: 50%;
	bottom: 0;
	transform: translateX(-50%);
	width: 100%;
	max-width: 640px;
	display: flex;
	background: var(--alf-card);
	border-top: 1px solid var(--alf-line);
	padding-bottom: env(safe-area-inset-bottom);
}
.alf-nav a {
	flex: 1 1 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 2px;
	min-height: 62px;
	color: var(--alf-muted);
	font-size: 12px;
	font-weight: 500;
	text-decoration: none;
	position: relative;
}
.alf-nav a[aria-current="page"] { color: var(--alf-navy); font-weight: 600; }
.alf-nav a[aria-current="page"]::before {
	content: "";
	position: absolute;
	top: 0;
	left: 30%;
	right: 30%;
	height: 3px;
	border-radius: 0 0 3px 3px;
	background: var(--alf-orange);
}

/* ----------------------------------------------------------------- yazı */

.alf-muted { color: var(--alf-muted); }
.alf-small { font-size: 13px; display: flex; gap: 6px; align-items: flex-start; }
.alf-small svg { flex: 0 0 auto; margin-top: 2px; }
.alf-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--alf-muted);
}
.alf-eyebrow {
	display: block;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--alf-orange-ink);
}
.alf-subtitle {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 17px;
	font-weight: 600;
	line-height: 1.35;
}
.alf-subtitle { flex-wrap: wrap; }
.alf-subtitle .alf-muted { font-weight: 400; font-size: 14px; white-space: nowrap; }

.alf-pagehead {
	display: flex;
	align-items: center;
	gap: 8px;
	min-height: 44px;
}
.alf-pagehead h1 {
	flex: 1 1 auto;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: var(--alf-ink);
}
.alf-pagehead .alf-iconbtn { margin-left: -10px; }

.alf-hello { gap: 4px !important; }
.alf-hello h1 { font-size: 26px; font-weight: 700; line-height: 1.2; }
.alf-hello p { color: var(--alf-muted); }

.alf-up { color: var(--alf-success); font-weight: 600; }
.alf-down { color: var(--alf-danger); font-weight: 600; }
.alf-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--alf-success); font-weight: 600; font-size: 14px; }

.alf-ul { display: flex; flex-direction: column; gap: 8px; }
.alf-ul li { position: relative; padding-left: 18px; }
.alf-ul li::before {
	content: "";
	position: absolute;
	left: 2px;
	top: .62em;
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: var(--alf-line-strong);
}
ol.alf-ul { counter-reset: alf; }
ol.alf-ul li { padding-left: 30px; counter-increment: alf; }
ol.alf-ul li::before {
	content: counter(alf);
	width: 22px; height: 22px;
	top: 0; left: 0;
	background: var(--alf-tint);
	color: var(--alf-navy);
	font-size: 12px;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
}

/* ----------------------------------------------------------------- düğmeler */

.alf-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 46px;
	padding: 10px 18px;
	border: 1.5px solid var(--alf-line-strong);
	border-radius: var(--alf-r2);
	background: var(--alf-card);
	color: var(--alf-navy);
	font-family: var(--alf-font);
	font-size: 15px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background .15s, border-color .15s, transform .05s;
}
.alf-btn:hover { background: var(--alf-surface-alt); }
.alf-btn:active { transform: translateY(1px); }
.alf-btn[disabled] { opacity: .55; cursor: default; }
.alf-btn--primary { background: var(--alf-fill); border-color: var(--alf-fill); color: #fff; }
.alf-btn--primary:hover { background: var(--alf-fill-hover); border-color: var(--alf-fill-hover); }
.alf-btn--accent { background: var(--alf-orange); border-color: var(--alf-orange); color: var(--alf-ink); }
.alf-btn--accent:hover { background: #ff9126; border-color: #ff9126; }
.alf-btn--ghost-dark { background: transparent; border-color: rgba(255, 255, 255, .45); color: #fff; }
.alf-btn--ghost-dark:hover { background: rgba(255, 255, 255, .08); }
.alf-btn--sm { min-height: 36px; padding: 6px 12px; font-size: 14px; white-space: nowrap; }
.alf-btn--lg { min-height: 54px; font-size: 16px; padding: 12px 22px; }
.alf-btn--block { display: flex; width: 100%; }

.alf-linkbtn {
	border: 0;
	background: transparent;
	padding: 8px 4px;
	min-height: 36px;
	color: var(--alf-navy);
	font-family: var(--alf-font);
	font-size: 14px;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 3px;
	cursor: pointer;
}
.alf-linkbtn--light { color: rgba(255, 255, 255, .85); align-self: center; }

.alf-chipbtn {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	min-height: 36px;
	padding: 6px 12px;
	border: 1px solid rgba(255, 255, 255, .3);
	border-radius: 999px;
	background: transparent;
	color: #fff;
	font-size: 13px;
	cursor: pointer;
}

.alf-fab {
	position: fixed;
	z-index: 25;
	right: max(16px, calc(50% - 320px + 16px));
	bottom: calc(80px + env(safe-area-inset-bottom));
	width: 56px;
	height: 56px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	border-radius: 50%;
	background: var(--alf-orange);
	color: var(--alf-ink);
	box-shadow: 0 6px 18px rgba(255, 126, 0, .35), 0 2px 4px rgba(20, 34, 47, .15);
	cursor: pointer;
}

/* ----------------------------------------------------------------- kartlar */

.alf-card {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 16px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	background: var(--alf-card);
}

.alf-callout {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border-radius: var(--alf-r3);
	background: var(--alf-tint);
	color: var(--alf-ink) !important;
	text-decoration: none;
}
.alf-callout > svg:first-child { color: var(--alf-navy); flex: 0 0 auto; }
.alf-callout > span { flex: 1 1 auto; display: flex; flex-direction: column; }
.alf-callout strong { font-weight: 600; }
.alf-callout span span { font-size: 14px; color: var(--alf-muted); }
.alf-callout--accent { background: var(--alf-accent-soft); }
.alf-callout--accent > svg:first-child { color: var(--alf-orange-ink); }

.alf-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.alf-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }

.alf-stat {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	background: var(--alf-card);
	color: var(--alf-ink) !important;
	text-decoration: none;
	min-width: 0;
}
a.alf-stat:hover { border-color: var(--alf-line-strong); }
.alf-stat > span { display: flex; flex-direction: column; min-width: 0; }
.alf-stat__k { font-size: 13px; color: var(--alf-muted); overflow: hidden; text-overflow: ellipsis; }
.alf-stat__v { font-size: 22px; font-weight: 700; color: var(--alf-navy); line-height: 1.25; }
.alf-ring { flex: 0 0 auto; }

.alf-streak {
	display: flex;
	align-items: center;
	gap: 8px;
	font-size: 14px;
	color: var(--alf-muted);
}
.alf-streak svg { color: var(--alf-orange); }
.alf-streak strong { color: var(--alf-ink); }

.alf-row-card {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	color: var(--alf-ink) !important;
	text-decoration: none;
}
.alf-row-card > span { flex: 1 1 auto; display: flex; flex-direction: column; }
.alf-row-card__v { font-size: 18px; font-weight: 700; color: var(--alf-navy); }
.alf-row-card__v span { font-size: 14px; margin-left: 4px; }
.alf-row-card > svg { color: var(--alf-muted); }

.alf-note-card {
	padding: 16px;
	border-left: 4px solid var(--alf-orange);
	border-radius: 0 var(--alf-r3) var(--alf-r3) 0;
	background: var(--alf-surface-alt);
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.alf-note-card p { font-size: 15px; }
.alf-note-card .alf-muted { font-size: 13px; }

.alf-ann {
	padding: 14px 16px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.alf-ann p { font-size: 14px; color: var(--alf-muted); }
.alf-ann .alf-muted { font-size: 12px; }

.alf-empty {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 14px;
	padding: 28px 20px;
	border: 1.5px dashed var(--alf-line);
	border-radius: var(--alf-r3);
	text-align: center;
	color: var(--alf-muted);
}

.alf-skel { display: flex; flex-direction: column; gap: 14px; }
.alf-skel div {
	height: 72px;
	border-radius: var(--alf-r3);
	background: linear-gradient(90deg, var(--alf-surface-alt) 25%, var(--alf-skel) 50%, var(--alf-surface-alt) 75%);
	background-size: 200% 100%;
	animation: alf-shimmer 1.2s infinite;
}
.alf-skel div:first-child { height: 44px; width: 60%; }
@keyframes alf-shimmer { to { background-position: -200% 0; } }

/* ----------------------------------------------------------------- görevler */

.alf-tasks { display: flex; flex-direction: column; gap: 10px; }
.alf-task {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 4px 12px;
	padding: 14px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	background: var(--alf-card);
}
.alf-task__check {
	grid-row: span 2;
	width: 44px;
	height: 44px;
	margin: -6px 0 0 -6px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 0;
	background: transparent;
	cursor: pointer;
}
.alf-task__check > span {
	width: 26px;
	height: 26px;
	display: flex;
	align-items: center;
	justify-content: center;
	border: 2px solid var(--alf-line-strong);
	border-radius: 50%;
	color: #fff;
	transition: background .15s, border-color .15s;
}
.alf-task.is-done .alf-task__check > span { background: var(--alf-success); border-color: var(--alf-success); }
.alf-task__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.alf-task__title { font-weight: 600; }
.alf-task__detail { font-size: 14px; color: var(--alf-muted); }
.alf-task.is-done .alf-task__title { text-decoration: line-through; color: var(--alf-muted); font-weight: 500; }
.alf-task.is-done { background: var(--alf-surface-alt); border-color: transparent; }
.alf-task__actions {
	grid-column: 2;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-top: 6px;
}
.alf-tag {
	align-self: flex-start;
	margin-top: 4px;
	padding: 2px 8px;
	border-radius: var(--alf-r1);
	background: var(--alf-tint);
	color: var(--alf-navy);
	font-size: 11px;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.alf-suggest {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 12px 14px;
	border: 1.5px dashed var(--alf-line-strong);
	border-radius: var(--alf-r3);
}
.alf-suggest > svg { color: var(--alf-orange-ink); flex: 0 0 auto; }
.alf-suggest > span { flex: 1 1 auto; display: flex; flex-direction: column; font-size: 14px; }

/* ----------------------------------------------------------------- plan */

.alf-weeknav {
	display: flex;
	align-items: center;
	gap: 8px;
	text-align: center;
}
.alf-weeknav > div { flex: 1 1 auto; display: flex; flex-direction: column; }
.alf-weeknav strong { font-weight: 600; }
.alf-weeknav .alf-muted { font-size: 13px; }

.alf-progress {
	display: block;
	height: 6px;
	border-radius: 3px;
	background: var(--alf-surface-alt);
	overflow: hidden;
}
.alf-progress > span {
	display: block;
	height: 100%;
	border-radius: 3px;
	background: var(--alf-orange);
	transition: width .3s;
}

.alf-days {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 4px;
}
.alf-days button {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0;
	padding: 8px 0 6px;
	border: 1px solid transparent;
	border-radius: var(--alf-r2);
	background: transparent;
	cursor: pointer;
	min-height: 64px;
}
.alf-days button span { font-size: 12px; color: var(--alf-muted); }
.alf-days button b { font-size: 17px; font-weight: 600; }
.alf-days button i { font-style: normal; font-size: 8px; letter-spacing: 1px; color: var(--alf-line-strong); line-height: 1.6; max-width: 100%; overflow: hidden; }
.alf-days button.is-today b { color: var(--alf-orange-ink); }
.alf-days button[aria-selected="true"] { background: var(--alf-fill); }
.alf-days button[aria-selected="true"] span,
.alf-days button[aria-selected="true"] b,
.alf-days button[aria-selected="true"] i { color: #fff; }

/* ----------------------------------------------------------------- etkinlik */

.alf-events { display: flex; flex-direction: column; gap: 8px; }
.alf-event {
	display: flex;
	align-items: center;
	gap: 12px;
}
.alf-event > span:last-child { display: flex; flex-direction: column; font-size: 14px; }
.alf-event strong { font-size: 15px; font-weight: 600; }
.alf-event__date {
	flex: 0 0 auto;
	width: 48px;
	height: 52px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	border-radius: var(--alf-r2);
	background: var(--alf-surface-alt);
	line-height: 1.1;
}
.alf-event__date b { font-size: 11px; font-weight: 600; color: var(--alf-orange-ink); text-transform: uppercase; }
.alf-event__date span { font-size: 19px; font-weight: 700; color: var(--alf-navy); }
.alf-events--big .alf-event { padding: 10px; border: 1px solid var(--alf-line); border-radius: var(--alf-r3); }

/* ----------------------------------------------------------------- odak */

.alf-app.is-focus {
	background: var(--alf-focus-bg);
	padding-bottom: 0;
	max-width: none;
}
.alf-app.is-focus .alf-top,
.alf-app.is-focus .alf-nav { display: none; }
.alf-app.is-focus .alf-view { padding: 0; min-height: 100vh; min-height: 100dvh; }

.alf-focus {
	display: flex;
	flex-direction: column;
	gap: 22px;
	max-width: 520px;
	width: 100%;
	min-height: 100vh;
	min-height: 100dvh;
	margin: 0 auto;
	padding: 16px 20px calc(28px + env(safe-area-inset-bottom));
	padding-top: calc(16px + env(safe-area-inset-top));
	color: #fff;
}
.alf-focus a,
.alf-focus .alf-iconbtn { color: #fff; }
.alf-focus .alf-iconbtn:hover { background: rgba(255, 255, 255, .08); }
.alf-focus .alf-muted { color: rgba(255, 255, 255, .65); }
.alf-focus .alf-eyebrow { color: var(--alf-orange); }
.alf-focus__top { display: flex; align-items: center; justify-content: space-between; margin-left: -10px; }
.alf-focus__info h1 { font-size: 24px; font-weight: 600; line-height: 1.3; margin-top: 6px; color: #fff; }
.alf-focus__info p { color: rgba(255, 255, 255, .7); margin-top: 6px; }
.alf-focus__modes legend,
.alf-focus .alf-form legend { font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 10px; padding: 0; }
.alf-focus__modes button {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 2px;
	padding: 14px;
	border: 1.5px solid rgba(255, 255, 255, .18);
	border-radius: var(--alf-r3);
	background: rgba(255, 255, 255, .04);
	color: #fff;
	text-align: left;
	cursor: pointer;
}
.alf-focus__modes button b { font-size: 18px; font-weight: 600; }
.alf-focus__modes button span { font-size: 13px; color: rgba(255, 255, 255, .65); }
.alf-focus__modes button[aria-pressed="true"] { border-color: var(--alf-orange); background: rgba(255, 126, 0, .12); }
.alf-focus__custom,
.alf-focus__sound {
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 14px;
	color: rgba(255, 255, 255, .8);
}
.alf-focus__custom input,
.alf-focus__sound select {
	margin-left: auto;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid rgba(255, 255, 255, .25);
	border-radius: var(--alf-r2);
	background: rgba(255, 255, 255, .06);
	color: #fff;
	font: inherit;
}
.alf-focus__custom input { width: 96px; }
.alf-focus__sound select option { color: var(--alf-ink); }
.alf-focus > .alf-btn { margin-top: auto; }

.alf-focus--run { justify-content: space-between; }
.alf-focus__center {
	flex: 1 1 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
}
.alf-focus__task { font-size: 17px; color: rgba(255, 255, 255, .85); max-width: 32ch; }
.alf-timer {
	font-size: clamp(72px, 22vw, 120px);
	font-weight: 600;
	line-height: 1;
	letter-spacing: -.02em;
	font-variant-numeric: tabular-nums;
}
.alf-focus__bar {
	width: 100%;
	max-width: 320px;
	height: 4px;
	border-radius: 2px;
	background: rgba(255, 255, 255, .12);
	overflow: hidden;
}
.alf-focus__bar span { display: block; height: 100%; background: var(--alf-orange); transition: width .5s linear; }
.alf-focus__actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.alf-focus--done { justify-content: center; }
.alf-focus--done .alf-focus__info h1 { font-size: 30px; }

/* ----------------------------------------------------------------- formlar */

.alf-form { display: flex; flex-direction: column; gap: 14px; }
.alf-form label,
.alf-login__form label {
	display: flex;
	flex-direction: column;
	gap: 6px;
	font-size: 14px;
	font-weight: 500;
	color: var(--alf-ink);
}
.alf-form input[type="text"],
.alf-form input[type="number"],
.alf-form input[type="password"],
.alf-form input[type="email"],
.alf-form select,
.alf-form textarea,
.alf-login__form input[type="text"],
.alf-login__form input[type="password"] {
	width: 100%;
	min-height: 46px;
	padding: 10px 12px;
	border: 1.5px solid var(--alf-line-strong);
	border-radius: var(--alf-r2);
	background: var(--alf-card);
	color: var(--alf-ink);
	font-family: var(--alf-font);
	font-size: 16px;
	font-weight: 400;
	line-height: 1.4;
	box-shadow: none;
}
.alf-form textarea { resize: vertical; min-height: 72px; }
.alf-form input:focus,
.alf-form select:focus,
.alf-form textarea:focus,
.alf-login__form input:focus {
	outline: none;
	border-color: var(--alf-navy);
	box-shadow: 0 0 0 3px rgba(0, 60, 102, .15);
}
.alf-form legend { font-size: 14px; font-weight: 500; margin-bottom: 8px; padding: 0; }
.alf-form .alf-btn { align-self: flex-start; }
.alf-form .alf-btn--block { align-self: stretch; }

.alf-form--dark label { color: rgba(255, 255, 255, .85); }
.alf-form--dark input[type="number"] {
	background: rgba(255, 255, 255, .06);
	border-color: rgba(255, 255, 255, .25);
	color: #fff;
	text-align: center;
	font-size: 20px;
}

.alf-choice label {
	position: relative;
	flex-direction: row;
	align-items: center;
	justify-content: center;
	min-height: 48px;
	padding: 10px;
	border: 1.5px solid rgba(255, 255, 255, .25);
	border-radius: var(--alf-r2);
	cursor: pointer;
	color: #fff;
}
.alf-choice input { position: absolute; opacity: 0; pointer-events: none; }
.alf-choice label:has(input:checked) { border-color: var(--alf-orange); background: rgba(255, 126, 0, .14); }
.alf-choice label:has(input:focus-visible) { outline: 3px solid var(--alf-orange); outline-offset: 2px; }

.alf-search {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 0 12px;
	min-height: 46px;
	border: 1.5px solid var(--alf-line);
	border-radius: var(--alf-r2);
	background: var(--alf-surface-alt);
	color: var(--alf-muted);
}
.alf-search input {
	flex: 1 1 auto;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: var(--alf-ink);
	min-height: 44px;
	outline: none;
}
.alf-search:focus-within { border-color: var(--alf-navy); background: var(--alf-card); }

/* ----------------------------------------------------------------- segment, çipler */

.alf-seg {
	display: flex;
	padding: 4px;
	gap: 4px;
	border-radius: var(--alf-r2);
	background: var(--alf-surface-alt);
	overflow-x: auto;
	scrollbar-width: none;
}
.alf-seg::-webkit-scrollbar { display: none; }
.alf-seg button {
	flex: 1 0 auto;
	display: flex;
	flex-direction: column;
	align-items: center;
	min-height: 40px;
	padding: 6px 12px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: var(--alf-muted);
	font-size: 14px;
	font-weight: 500;
	cursor: pointer;
	white-space: nowrap;
}
.alf-seg button small { font-size: 11px; font-weight: 400; }
.alf-seg button[aria-selected="true"],
.alf-seg button[aria-pressed="true"] { background: var(--alf-card); color: var(--alf-navy); font-weight: 600; box-shadow: 0 1px 3px rgba(20, 34, 47, .12); }
.alf-seg--wrap { flex-wrap: wrap; }
.alf-seg--wrap button { flex: 1 0 calc(25% - 4px); }

.alf-chips {
	display: flex;
	gap: 6px;
	overflow-x: auto;
	scrollbar-width: none;
	padding-bottom: 2px;
}
.alf-chips::-webkit-scrollbar { display: none; }
.alf-chips--wrap { flex-wrap: wrap; overflow: visible; }
.alf-chips button {
	flex: 0 0 auto;
	min-height: 36px;
	padding: 6px 12px;
	border: 1.5px solid var(--alf-line);
	border-radius: 999px;
	background: var(--alf-card);
	color: var(--alf-ink);
	font-size: 13px;
	font-weight: 500;
	cursor: pointer;
}
.alf-chips button[aria-pressed="true"] { border-color: var(--alf-fill); background: var(--alf-fill); color: #fff; }

/* ----------------------------------------------------------------- sonuçlar */

.alf-results { display: flex; flex-direction: column; gap: 8px; }
.alf-result {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 14px 16px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	color: var(--alf-ink) !important;
	text-decoration: none;
}
.alf-result:hover { border-color: var(--alf-line-strong); }
.alf-result > span:first-child { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.alf-result > span:first-child .alf-muted { font-size: 13px; }
.alf-result__v { display: flex; flex-direction: column; align-items: flex-end; }
.alf-result__v b { font-size: 20px; font-weight: 700; color: var(--alf-navy); }
.alf-result__v span { font-size: 13px; }

.alf-chart { width: 100%; height: auto; overflow: visible; }
.alf-chart__tip {
	display: flex;
	justify-content: space-between;
	gap: 12px;
	padding: 10px 12px;
	border-radius: var(--alf-r2);
	background: var(--alf-surface-alt);
	font-size: 14px;
}
.alf-chart__tip strong { color: var(--alf-navy); white-space: nowrap; }
.alf-legend { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--alf-muted); }
.alf-legend__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--alf-orange); flex: 0 0 auto; }

.alf-hbars { display: flex; flex-direction: column; gap: 10px; }
.alf-hbar {
	display: grid;
	grid-template-columns: minmax(90px, 38%) 1fr auto;
	align-items: center;
	gap: 10px;
	font-size: 14px;
}
.alf-hbar > span:last-child { font-weight: 600; min-width: 42px; text-align: right; }
.alf-hbar__track { height: 10px; border-radius: 5px; background: var(--alf-surface-alt); overflow: hidden; }
.alf-hbar__track span { display: block; height: 100%; border-radius: 5px; background: var(--alf-fill); }
.alf-hbars .alf-hbar:first-child .alf-hbar__track span { background: var(--alf-orange); }

.alf-vbars {
	display: grid;
	grid-template-columns: repeat(7, 1fr);
	gap: 6px;
	height: 150px;
	align-items: end;
}
.alf-vbars > div {
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	align-items: center;
	gap: 4px;
	font-size: 12px;
	color: var(--alf-muted);
}
.alf-vbars__v { font-size: 10px; text-align: center; line-height: 1.1; min-height: 11px; }
.alf-vbars__bar { width: 70%; max-width: 32px; min-height: 3px; border-radius: 4px 4px 0 0; background: var(--alf-fill); }

.alf-sugg { display: flex; flex-direction: column; gap: 10px; counter-reset: alf-s; }
.alf-sugg li {
	display: flex;
	align-items: center;
	gap: 12px;
	padding-bottom: 10px;
	border-bottom: 1px solid var(--alf-line);
}
.alf-sugg li:last-child { border-bottom: 0; padding-bottom: 0; }
.alf-sugg li > span:first-child { flex: 1 1 auto; display: flex; flex-direction: column; font-size: 14px; }
.alf-sugg li > span:first-child .alf-muted { font-size: 13px; }

.alf-exam__top { display: flex; flex-direction: column; gap: 2px; }
.alf-exam__total { font-size: 15px; color: var(--alf-muted); }
.alf-exam__total b { font-size: 34px; font-weight: 700; color: var(--alf-navy); }

.alf-table { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.alf-table th,
.alf-table td { padding: 10px 6px; border-bottom: 1px solid var(--alf-line); text-align: right; }
.alf-table th[scope="row"],
.alf-table thead th:first-child { text-align: left; font-weight: 500; }
.alf-table thead th { font-size: 12px; font-weight: 600; color: var(--alf-muted); letter-spacing: .04em; }
.alf-table tbody tr:last-child th,
.alf-table tbody tr:last-child td { border-bottom: 0; }

.alf-reasons { display: flex; flex-direction: column; }
.alf-reason {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	padding: 8px 0;
	border-bottom: 1px solid var(--alf-line);
}
.alf-reason:last-child { border-bottom: 0; }
.alf-stepper { display: flex; align-items: center; gap: 4px; }
.alf-stepper button {
	width: 40px;
	height: 40px;
	border: 1.5px solid var(--alf-line-strong);
	border-radius: 50%;
	background: var(--alf-card);
	color: var(--alf-navy);
	font-size: 20px;
	line-height: 1;
	cursor: pointer;
}
.alf-stepper button[disabled] { opacity: .35; cursor: default; }
.alf-stepper output { min-width: 28px; text-align: center; font-size: 17px; font-weight: 600; }

/* ----------------------------------------------------------------- konular */

.alf-subjects { display: flex; flex-direction: column; gap: 8px; }
.alf-subject { border: 1px solid var(--alf-line); border-radius: var(--alf-r3); overflow: hidden; }
.alf-subject__head {
	display: grid;
	grid-template-columns: 1fr auto;
	gap: 6px 12px;
	width: 100%;
	padding: 14px 16px;
	border: 0;
	background: var(--alf-card);
	text-align: left;
	cursor: pointer;
}
.alf-subject__head .alf-progress { grid-column: 1 / -1; }
.alf-subject__head .alf-muted { font-size: 13px; }
.alf-subject__name { font-weight: 600; }
.alf-subject__head[aria-expanded="true"] { background: var(--alf-surface-alt); }
.alf-topiclist li + li { border-top: 1px solid var(--alf-line); }
.alf-topiclist button {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	width: 100%;
	min-height: 48px;
	padding: 10px 16px;
	border: 0;
	background: var(--alf-card);
	text-align: left;
	font-size: 14px;
	cursor: pointer;
}
.alf-topiclist button:hover { background: var(--alf-hover); }

.alf-st {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	gap: 6px;
	padding: 2px 8px;
	border-radius: 999px;
	font-size: 12px;
	font-weight: 500;
	background: var(--alf-surface-alt);
	color: var(--alf-muted);
	white-space: nowrap;
}
.alf-st--1 { background: var(--alf-accent-soft); color: var(--alf-orange-ink); }
.alf-st--2 { background: var(--alf-tint); color: var(--alf-navy); }
.alf-st--3 { background: var(--alf-st3-bg); color: var(--alf-st3-ink); }
.alf-st--4 { background: var(--alf-success-bg); color: var(--alf-success); }

.alf-statuses { display: flex; flex-direction: column; gap: 6px; }
.alf-statuses legend { font-size: 13px; color: var(--alf-muted); margin-bottom: 6px; }
.alf-statuses button {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 46px;
	padding: 8px 12px;
	border: 1.5px solid var(--alf-line);
	border-radius: var(--alf-r2);
	background: var(--alf-card);
	text-align: left;
	cursor: pointer;
}
.alf-statuses button .alf-st { width: 14px; height: 14px; padding: 0; }
.alf-statuses button .alf-st--0 { background: var(--alf-line); }
.alf-statuses button .alf-st--1 { background: var(--alf-orange); }
.alf-statuses button .alf-st--2 { background: #6f9cc2; }
.alf-statuses button .alf-st--3 { background: var(--alf-st3-ink); }
.alf-statuses button .alf-st--4 { background: var(--alf-success); }
.alf-statuses button[aria-pressed="true"] { border-color: var(--alf-navy); background: var(--alf-tint); font-weight: 600; }

/* ----------------------------------------------------------------- ben, menü */

.alf-menu {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	overflow: hidden;
}
.alf-menu a,
.alf-menu button {
	display: flex;
	align-items: center;
	gap: 12px;
	width: 100%;
	min-height: 54px;
	padding: 12px 16px;
	border: 0;
	background: var(--alf-card);
	color: var(--alf-ink);
	font-size: 15px;
	text-align: left;
	text-decoration: none;
	cursor: pointer;
}
.alf-menu > * + * { border-top: 1px solid var(--alf-line) !important; }
.alf-menu span { flex: 1 1 auto; }
.alf-menu svg:first-child { color: var(--alf-navy); }
.alf-menu svg:last-child:not(:first-child) { color: var(--alf-muted); }
.alf-menu a:hover,
.alf-menu button:hover { background: var(--alf-hover); }

.alf-switchrow {
	display: flex;
	align-items: center;
	gap: 14px;
	width: 100%;
	padding: 14px 16px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	background: var(--alf-card);
	text-align: left;
	cursor: pointer;
}
.alf-switchrow > span:first-child { flex: 1 1 auto; display: flex; flex-direction: column; }
.alf-switchrow .alf-muted { font-size: 13px; }
.alf-toggle {
	position: relative;
	flex: 0 0 auto;
	width: 48px;
	height: 28px;
	border-radius: 14px;
	background: var(--alf-line-strong);
	transition: background .15s;
}
.alf-toggle span {
	position: absolute;
	top: 3px;
	left: 3px;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: var(--alf-card);
	transition: transform .15s;
}
.alf-switchrow[aria-checked="true"] .alf-toggle { background: var(--alf-success); }
.alf-switchrow[aria-checked="true"] .alf-toggle span { transform: translateX(20px); }

.alf-qnotes { display: flex; flex-direction: column; gap: 8px; }
.alf-qnotes li {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	padding: 12px 14px;
	border-radius: var(--alf-r2);
	background: var(--alf-note-bg);
	border: 1px solid var(--alf-note-line);
}
.alf-qnotes p { flex: 1 1 auto; white-space: pre-wrap; font-size: 14px; }

.alf-notifs { display: flex; flex-direction: column; }
.alf-notifs li + li { border-top: 1px solid var(--alf-line); }
.alf-notifs a {
	display: flex;
	flex-direction: column;
	gap: 2px;
	padding: 14px 4px 14px 18px;
	position: relative;
	color: var(--alf-ink);
	text-decoration: none;
}
.alf-notifs a > span { font-size: 14px; color: var(--alf-muted); }
.alf-notifs a > span.alf-muted { font-size: 12px; }
.alf-notifs li.is-new a::before {
	content: "";
	position: absolute;
	left: 2px;
	top: 21px;
	width: 8px;
	height: 8px;
	border-radius: 50%;
	background: var(--alf-orange);
}
.alf-notifs li.is-new strong { font-weight: 700; }
.alf-notifs strong { font-weight: 500; }

.alf-dl {
	display: grid;
	grid-template-columns: auto 1fr;
	gap: 10px 16px;
	font-size: 14px;
}
.alf-dl dt { color: var(--alf-muted); }
.alf-dl dd { font-weight: 500; }
.alf-dl.alf-card { display: grid; }

/* ----------------------------------------------------------------- karşılama */

.alf-onb {
	display: flex;
	flex-direction: column;
	gap: 16px;
	padding-top: 8px;
}
.alf-onb h1 { font-size: 26px; font-weight: 700; line-height: 1.25; }
.alf-onb .alf-linkbtn { align-self: center; }
.alf-onb__motif,
.alf-login__motif {
	position: relative;
	width: 72px;
	height: 40px;
}
.alf-onb__motif span,
.alf-login__motif span {
	position: absolute;
	top: 0;
	width: 40px;
	height: 40px;
	border-radius: 50%;
}
.alf-onb__motif span:first-child,
.alf-login__motif span:first-child { left: 0; background: var(--alf-navy); }
.alf-onb__motif span:last-child,
.alf-login__motif span:last-child { left: 28px; background: var(--alf-orange); mix-blend-mode: multiply; }
.alf-choices { display: flex; flex-direction: column; gap: 10px; }

/* ----------------------------------------------------------------- tabaka (sheet) */

.alf-sheet {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: flex-end;
	justify-content: center;
}
.alf-sheet__backdrop {
	position: absolute;
	inset: 0;
	background: var(--alf-backdrop);
	animation: alf-fade .15s ease-out;
}
.alf-sheet__panel {
	position: relative;
	width: 100%;
	max-width: 640px;
	max-height: 88vh;
	max-height: 88dvh;
	overflow-y: auto;
	overscroll-behavior: contain;
	padding: 6px 20px calc(24px + env(safe-area-inset-bottom));
	border-radius: var(--alf-r3) var(--alf-r3) 0 0;
	background: var(--alf-card);
	color: var(--alf-ink);
	animation: alf-up .2s ease-out;
}
.alf-sheet__grip { width: 40px; height: 4px; margin: 4px auto 6px; border-radius: 2px; background: var(--alf-line); }
.alf-sheet__head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-bottom: 12px;
}
.alf-sheet__head h2 { font-size: 19px; font-weight: 600; }
.alf-sheet__head .alf-iconbtn { margin-right: -10px; }
.alf-sheet__body { display: flex; flex-direction: column; gap: 14px; }
@keyframes alf-up { from { transform: translateY(40px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes alf-fade { from { opacity: 0; } to { opacity: 1; } }

@media (min-width: 700px) {
	.alf-sheet { align-items: center; padding: 24px; }
	.alf-sheet__panel { max-width: 520px; border-radius: var(--alf-r3); padding-bottom: 24px; }
	.alf-sheet__grip { display: none; }
}

/* ----------------------------------------------------------------- bildirim (toast) */

.alf-toast {
	position: fixed;
	z-index: 100001;
	left: 50%;
	bottom: calc(92px + env(safe-area-inset-bottom));
	transform: translateX(-50%);
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: calc(100% - 32px);
	width: max-content;
	padding: 12px 16px;
	border-radius: var(--alf-r2);
	background: var(--alf-toast-bg);
	color: var(--alf-toast-ink);
	font-size: 14px;
	box-shadow: 0 8px 24px rgba(11, 23, 36, .25);
	animation: alf-up .2s ease-out;
}
.alf-toast svg { color: #7fd1a0; flex: 0 0 auto; }
.alf-toast.is-error { background: var(--alf-danger); }
.alf-app.is-focus .alf-toast { bottom: calc(110px + env(safe-area-inset-bottom)); background: var(--alf-card); color: var(--alf-ink); }
.alf-app.is-focus .alf-toast svg { color: var(--alf-success); }

/* ----------------------------------------------------------------- giriş */

.alf-login {
	max-width: 420px;
	margin: 0 auto;
	padding: 40px 20px 48px;
	display: flex;
	flex-direction: column;
	gap: 16px;
}
.alf-login__title {
	margin: 8px 0 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: var(--alf-ink);
}
.alf-login__lead { margin: 0; color: var(--alf-muted); }
.alf-login__error {
	margin: 0;
	padding: 12px 14px;
	border-radius: var(--alf-r2);
	background: var(--alf-danger-bg);
	color: var(--alf-danger);
	font-size: 14px;
	font-weight: 500;
}
.alf-login__form { display: flex; flex-direction: column; gap: 16px; margin: 0; }
.alf-login__form .alf-login__remember {
	flex-direction: row;
	align-items: center;
	gap: 8px;
	font-weight: 400;
}
.alf-login__remember input { width: 18px; height: 18px; accent-color: var(--alf-navy); }
.alf-login__help { margin: 0; font-size: 14px; color: var(--alf-muted); }
.alf-login__help a { color: var(--alf-navy); }
.alf-login--in p { margin: 0; }
.alf-login--in p + p { display: flex; gap: 10px; flex-wrap: wrap; }
.alf-login .alf-btn { text-decoration: none; }

.alf-note {
	max-width: 560px;
	margin: 40px auto;
	padding: 16px 18px;
	border-radius: var(--alf-r2);
	background: #eef3f7;
	color: #14222f;
}
.alf-note a { color: #003c66; font-weight: 600; }

/* ----------------------------------------------------------------- geniş ekran */

@media (min-width: 700px) {
	.alf-app:not(.is-focus) { border-left: 1px solid var(--alf-line); border-right: 1px solid var(--alf-line); }
	.alf-view { padding: 28px 28px 40px; }
	.alf-grid2 > .alf-stat .alf-stat__v { font-size: 24px; }
}

@media (max-width: 360px) {
	.alf-grid2 { gap: 8px; }
	.alf-stat { padding: 12px; gap: 8px; }
	.alf-stat__v { font-size: 19px; }
	.alf-ring { width: 40px; height: 40px; }
	.alf-days button b { font-size: 15px; }
}

@media (prefers-reduced-motion: reduce) {
	.alf-app *,
	.alf-sheet *,
	.alf-toast { animation: none !important; transition: none !important; }
}

.alf-logout { color: var(--alf-muted); margin-left: -6px; }
.alf-logout:hover { color: var(--alf-ink); }

/* ----------------------------------------------------------------- karanlık tema */

html[data-alf-theme="dark"] .alf-app {
	--alf-navy: #8ec2ee;
	--alf-navy-dark: #b5d7f4;
	--alf-fill: #2c6aa0;
	--alf-fill-hover: #3579b3;
	--alf-orange-ink: #ffb366;
	--alf-ink: #e6edf3;
	--alf-muted: #9fb0c1;
	--alf-surface: #0f1a26;
	--alf-card: #152331;
	--alf-hover: #1a2a3a;
	--alf-surface-alt: #1c2c3c;
	--alf-tint: #1d3247;
	--alf-line: #263a4d;
	--alf-line-strong: #5d7489;
	--alf-success: #5fcf8f;
	--alf-success-bg: #163626;
	--alf-danger: #ff8a80;
	--alf-danger-bg: #3a1d1c;
	--alf-topbar: rgba(15, 26, 38, .96);
	--alf-skel: #22344a;
	--alf-accent-soft: #3a2a17;
	--alf-note-bg: #2a2316;
	--alf-note-line: #4a3a22;
	--alf-st3-bg: #1f2f4d;
	--alf-st3-ink: #9db8ec;
	--alf-toast-bg: #e6edf3;
	--alf-toast-ink: #0f1a26;
	--alf-backdrop: rgba(0, 0, 0, .6);
	--alf-shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 4px 16px rgba(0, 0, 0, .3);
	color-scheme: dark;
}
html[data-alf-theme="dark"] body { background: #0a131d; }
html[data-alf-theme="dark"] .alf-app .alf-task.is-done .alf-task__check > span { background: #1f8a4c; border-color: #1f8a4c; }
html[data-alf-theme="dark"] .alf-app .alf-seg button[aria-selected="true"],
html[data-alf-theme="dark"] .alf-app .alf-seg button[aria-pressed="true"] { box-shadow: none; }
html[data-alf-theme="dark"] .alf-app .alf-fab { box-shadow: 0 6px 18px rgba(0, 0, 0, .45); }
html[data-alf-theme="dark"] .alf-app .alf-toast svg { color: #17663a; }
html[data-alf-theme="dark"] .alf-app .alf-switch { background: var(--alf-surface-alt); }
html[data-alf-theme="dark"] .alf-app ::placeholder { color: #6f8396; }

/* Tema seçici */
.alf-themebtn .alf-themebtn__moon { display: block; }
.alf-themebtn .alf-themebtn__sun { display: none; }
html[data-alf-theme="dark"] .alf-themebtn .alf-themebtn__moon { display: none; }
html[data-alf-theme="dark"] .alf-themebtn .alf-themebtn__sun { display: block; }
.alf-top .alf-iconbtn { width: 40px; height: 40px; }
.alf-top { gap: 6px; }
.alf-top__brand { margin-right: auto; padding-right: 6px; }
.alf-appearance { display: flex; flex-direction: column; gap: 10px; }
.alf-appearance .alf-seg button { flex: 1 1 0; }

.alf-brand-short { display: none; }
@media (max-width: 480px) { .alf-brand-full { display: none; } .alf-brand-short { display: inline; } }

@media (max-width: 400px) { .alf-top--kids .alf-top__brand { display: none; } .alf-top--kids .alf-switch { margin-right: auto; } }

/* ----------------------------------------------------------------- canlı dersler */

.alf-app { --alf-live: #c8102e; }
html[data-alf-theme="dark"] .alf-app { --alf-live: #ff6b7d; }

/* Alt menü 6 sekme: dar ekranda yazı küçülür */
@media (max-width: 400px) { .alf-nav a { font-size: 11px; } .alf-nav a svg { width: 21px; height: 21px; } }

.alf-livebadge {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	margin-right: 8px;
	padding: 1px 8px 1px 6px;
	border-radius: 999px;
	background: var(--alf-live);
	color: #fff;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .06em;
	text-transform: uppercase;
	vertical-align: 2px;
}
.alf-livebadge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: #fff; animation: alf-pulse 1.4s ease-in-out infinite; }
.alf-livebadge--soon { background: var(--alf-orange-ink); }
html[data-alf-theme="dark"] .alf-app .alf-livebadge--soon { color: #1a1206; }
.alf-livebadge--soon::before { animation: none; }
@keyframes alf-pulse { 50% { opacity: .25; } }

.alf-callout--live > svg:first-child { color: var(--alf-live); }
.alf-callout--live.is-live { border: 1.5px solid var(--alf-live); }
.alf-callout--live .alf-btn { flex: 0 0 auto; pointer-events: none; }

.alf-player {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: var(--alf-r2);
	overflow: hidden;
}
.alf-player iframe,
.alf-player #alf-yt { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.alf-player__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; font-size: 13px; }
.alf-player__bar .alf-tag { margin-top: 0; }
.alf-player__bar .alf-linkbtn { margin-left: auto; display: inline-flex; align-items: center; gap: 4px; }

.alf-livewait {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 6px;
	padding: 22px 20px;
	border-radius: var(--alf-r3);
	background: var(--alf-focus-bg);
	color: #fff;
}
.alf-livewait strong { font-size: 19px; line-height: 1.3; }
.alf-livewait .alf-muted { color: #b9c7d4; }
.alf-livewait .alf-eyebrow { color: var(--alf-orange); }
.alf-livewait [data-live="until"] { font-size: 15px; color: #ffd2a6; }

.alf-archlist { display: flex; flex-direction: column; gap: 8px; }
.alf-arch {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 10px 12px;
	border: 1px solid var(--alf-line);
	border-radius: var(--alf-r3);
	background: var(--alf-card);
	color: inherit;
	text-decoration: none;
}
.alf-arch:hover { background: var(--alf-hover); }
.alf-arch__play { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--alf-tint); color: var(--alf-navy); }
.alf-arch__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.alf-arch__body strong { font-weight: 600; font-size: 15px; }
.alf-arch__body .alf-muted { font-size: 13px; }
.alf-tag--ok { background: var(--alf-success-bg); color: var(--alf-success); display: inline-flex; align-items: center; gap: 3px; }
.alf-tag--warn { background: var(--alf-accent-soft); color: var(--alf-orange-ink); }
.alf-arch .alf-tag { margin-top: 0; flex: 0 0 auto; }

.alf-event--live > a { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; width: 100%; }
.alf-event--live > a > svg { margin-left: auto; color: var(--alf-live); flex: 0 0 auto; }
.alf-events--big .alf-event--live { padding: 0; }
.alf-events--big .alf-event--live > a { padding: 10px; }

.alf-qform { flex-direction: row; align-items: flex-end; gap: 8px; }
.alf-qform label { flex: 1 1 auto; }
.alf-qform .alf-btn { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; }
.alf-myq { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.alf-myq li { padding: 8px 10px; border-radius: var(--alf-r2); background: var(--alf-surface-alt); font-size: 14px; }
.alf-myq .alf-muted { font-size: 12px; }

.alf-livelist { display: flex; flex-direction: column; gap: 6px; }
.alf-livelist li { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.alf-livelist .alf-tag { margin-top: 0; flex: 0 0 auto; }
.alf-callout .alf-livebadge { color: #fff; font-size: 11px; }
.alf-event--live > a > span:nth-child(2) { display: flex; flex-direction: column; font-size: 14px; flex: 1 1 auto; min-width: 0; }
.alf-event--live > a > span:nth-child(2) strong { font-size: 15px; font-weight: 600; }

/* Tema bağlantı rengi (a:hover) düğme yazısını ezmesin */
.alf-app a.alf-btn:hover { color: var(--alf-navy); }
.alf-app a.alf-btn--primary:hover,
.alf-app a.alf-btn--primary:focus { color: #fff; }
.alf-app a.alf-btn--accent:hover { color: var(--alf-ink); }
.alf-app a.alf-callout:hover,
.alf-app a.alf-arch:hover,
.alf-app a.alf-row-card:hover,
.alf-app a.alf-stat:hover,
.alf-app .alf-event--live > a:hover { color: inherit; }
