/* OMÜ İİBF Sınav Bilgi Sistemi — "Biniş Kartı" teması (aydınlık + karanlık) */

:root {
  --course-size: 14px; /* ders adı: her yerde aynı */
  --bg: #fafaf9;
  --bg-grain: transparent;
  --surface: #ffffff;
  --surface-2: #f4f4f3;
  --surface-3: #eaeae8;
  --ink: #18181b;
  --ink-2: #3f3f46;
  --muted: #71717a;
  --line: #e7e7e5;
  --line-strong: #d4d4d1;
  --accent: #18181b;
  --accent-hover: #000000;
  --accent-ink: #ffffff;
  --accent-soft: #f4f4f3;
  --accent-soft-ink: #18181b;
  --teal: #52525b;
  --teal-soft: #f4f4f3;
  --ok: #71717a;
  --ok-soft: #f4f4f3;
  --warn: #52525b;
  --warn-soft: #f4f4f3;
  --danger: #b42318;
  --danger-soft: #f4f4f3;
  --live: #16a34a;
  --mine: #15803d;
  --mine-ink: #ffffff;
  --mine-soft: #ecf7ef;
  --brand: #2f2c7e;
  --brand-soft: #eceaf8;
  --brand-glow: rgba(47, 44, 126, 0.08);
  --indigo: #2f2c7e; --indigo-soft: #eceaf8;
  --crimson: #b22238; --crimson-soft: #fbe9ec;
  --amber: #a16207; --amber-soft: #fbf1d9;
  --green: #15803d; --green-soft: #e8f5ec;
  --shadow-sm: none;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
  --ring: 0 0 0 3px rgba(24, 24, 27, 0.12);
  --radius: 16px;
  --radius-sm: 10px;
  color-scheme: light;
}

:root[data-theme="dark"] {
  --bg: #0b0b0c;
  --bg-grain: transparent;
  --surface: #131315;
  --surface-2: #1a1a1d;
  --surface-3: #232327;
  --ink: #f4f4f5;
  --ink-2: #d4d4d8;
  --muted: #8b8b93;
  --line: #242428;
  --line-strong: #34343a;
  --accent: #f4f4f5;
  --accent-hover: #ffffff;
  --accent-ink: #0b0b0c;
  --accent-soft: #1a1a1d;
  --accent-soft-ink: #f4f4f5;
  --teal: #a1a1aa;
  --teal-soft: #1a1a1d;
  --ok: #8b8b93;
  --ok-soft: #1a1a1d;
  --warn: #a1a1aa;
  --warn-soft: #1a1a1d;
  --danger: #f87171;
  --danger-soft: #1a1a1d;
  --live: #4ade80;
  --mine: #22c55e;
  --mine-ink: #052e14;
  --mine-soft: #10261a;
  --brand: #a5a3f5;
  --brand-soft: #1e1d3f;
  --brand-glow: rgba(165, 163, 245, 0.10);
  --indigo: #a5a3f5; --indigo-soft: #1e1d3f;
  --crimson: #ff7a8c; --crimson-soft: #3a161c;
  --amber: #f0b94d; --amber-soft: #332708;
  --green: #4ade80; --green-soft: #10261a;
  --shadow-sm: none;
  --shadow: none;
  --ring: 0 0 0 3px rgba(244, 244, 245, 0.14);
  color-scheme: dark;
}

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

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

body {
  margin: 0;
  min-height: 100vh;
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  transition: background-color .3s ease, color .3s ease;
}

a { color: inherit; }
button { font: inherit; color: inherit; }
img { max-width: 100%; display: block; }
[hidden] { display: none !important; }

.serif { font-family: 'Fraunces', Georgia, serif; font-optical-sizing: auto; }
.mono { font-family: 'JetBrains Mono', ui-monospace, monospace; font-variant-numeric: tabular-nums; }

.icon { width: 18px; height: 18px; stroke-width: 1.9; flex-shrink: 0; }
.icon-sm { width: 15px; height: 15px; }
.icon-lg { width: 22px; height: 22px; }

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

/* ---------- Üst bar ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 40;
  backdrop-filter: saturate(170%) blur(18px);
  -webkit-backdrop-filter: saturate(170%) blur(18px);
  background: color-mix(in srgb, var(--bg) 30%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--line) 45%, transparent);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 64px;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; min-width: 0; }
.brand-mark {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: grid; place-items: center;
  flex-shrink: 0;
}
.brand-mark img { width: 30px; height: 30px; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-text strong { font-size: 15px; font-weight: 800; letter-spacing: -0.01em; }
.brand-text span {
  font-size: 12px; color: var(--muted);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

.theme-switch {
  display: inline-flex;
  padding: 3px;
  gap: 2px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.theme-switch button {
  width: 30px; height: 28px;
  border: 0; border-radius: 999px;
  background: transparent;
  color: var(--muted);
  display: grid; place-items: center;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--accent);
  box-shadow: var(--shadow-sm);
}
.theme-switch .icon { width: 16px; height: 16px; }

/* ---------- Hero / arama ---------- */
.hero { padding: 48px 0 28px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 40px;
  align-items: center;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase;
  color: var(--muted);
}
.hero h1 {
  font-family: 'Fraunces', Georgia, serif;
  font-weight: 600;
  font-size: clamp(34px, 5.2vw, 58px);
  line-height: 1.02;
  letter-spacing: -0.025em;
  margin: 14px 0 16px;
}
.hero h1 em { font-style: italic; color: var(--muted); font-weight: 500; }
.hero-lead { color: var(--muted); font-size: 16px; max-width: 46ch; margin: 0; }

.facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.fact {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.fact .icon { width: 15px; height: 15px; color: var(--muted); }

.search-card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 26px;
  padding: 28px;
  box-shadow: var(--shadow);
}
.search-card h2 { font-size: 20px; margin: 0 0 4px; letter-spacing: -0.01em; }
.search-card p { margin: 0 0 20px; color: var(--muted); font-size: 14px; }
.field-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); display: block; margin-bottom: 8px; }
.field {
  position: relative;
  display: flex; align-items: center;
  background: var(--surface-2);
  border: 1.5px solid var(--line);
  border-radius: 16px;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
.field:focus-within { border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.field > .icon { margin-left: 16px; color: var(--muted); }
.field input {
  flex: 1; min-width: 0;
  border: 0; outline: 0; background: transparent;
  padding: 16px 12px;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 20px; letter-spacing: .06em;
  color: var(--ink);
}
.field input::placeholder { color: var(--muted); opacity: .55; letter-spacing: .04em; }
.field .clear {
  margin-right: 8px;
  width: 36px; height: 36px;
  border: 0; border-radius: 10px;
  background: transparent; color: var(--muted);
  display: grid; place-items: center; cursor: pointer;
}
.field .clear:hover { background: var(--surface-3); color: var(--ink); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; cursor: pointer; text-decoration: none;
  font-weight: 700; font-size: 15px;
  border-radius: 14px;
  padding: 13px 20px;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--surface-3); }
.btn-sm { padding: 8px 12px; font-size: 13px; border-radius: 10px; }
.btn-block { width: 100%; margin-top: 14px; padding: 16px 20px; font-size: 16px; }

.form-msg {
  margin-top: 12px; font-size: 14px; font-weight: 600;
  display: flex; gap: 8px; align-items: center;
  color: var(--danger);
}

/* ---------- Ana düzen ---------- */
.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 28px;
  align-items: start;
  padding-bottom: 48px;
}
.stack { display: flex; flex-direction: column; gap: 20px; min-width: 0; }

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.panel-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--line);
}
.panel-title { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin: 0; }
.panel-title .badge-icon {
  width: 32px; height: 32px; border-radius: 10px;
  display: grid; place-items: center;
  background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line);
}
.panel-title .badge-icon .icon { width: 16px; height: 16px; }
.panel-body { padding: 16px 20px 20px; }

.section-title {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px;
  margin: 8px 0 0;
}
.section-title h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.015em; }
.section-title span { color: var(--muted); font-size: 13px; font-weight: 600; }

/* ---------- Öğrenci şeridi ---------- */
.student {
  display: flex; align-items: center; gap: 16px;
  padding: 18px 20px;
}
.avatar {
  width: 54px; height: 54px; border-radius: 50%;
  background: var(--surface-2); color: var(--ink); border: 1px solid var(--line);
  display: grid; place-items: center;
  font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px;
  flex-shrink: 0;
}
.student-info { flex: 1; min-width: 0; }
.student-info h3 { margin: 0; font-size: 18px; font-weight: 800; letter-spacing: -0.01em; overflow-wrap: anywhere; }
.student-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 4px; color: var(--muted); font-size: 14px; }
.student-meta span { display: inline-flex; align-items: center; gap: 6px; }
.student-meta .icon { width: 14px; height: 14px; }

/* ---------- Sıradaki sınav ---------- */
.spotlight {
  position: relative;
  border-radius: var(--radius);
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.spotlight-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.spotlight-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
.spotlight h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin: 8px 0 2px; line-height: 1.2; position: relative; }
.spotlight-sub { color: var(--muted); font-size: 14px; position: relative; }
.countdown { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin-top: 18px; position: relative; }
.cd-unit {
  border-radius: 14px;
  padding: 12px 6px 10px;
  text-align: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.cd-unit b { display: block; font-family: 'JetBrains Mono', monospace; font-size: clamp(24px, 6vw, 36px); font-weight: 600; line-height: 1; letter-spacing: -0.02em; }
.cd-unit small { display: block; margin-top: 6px; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
.spotlight-done { margin-top: 16px; font-weight: 700; display: flex; align-items: center; gap: 8px; position: relative; }

/* ---------- Bilet ---------- */
.tickets { display: flex; flex-direction: column; gap: 16px; }
.ticket {
  --notch: 14px;
  position: relative;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) 250px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s;
  animation: rise .5s cubic-bezier(.2, .8, .2, 1) both;
}
.ticket:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.ticket.is-past { opacity: .72; }
.ticket.is-past:hover { opacity: 1; }
.ticket.is-next { border-color: var(--ink); }

.t-date {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 18px 10px;
  border-right: 1px solid var(--line);
  background: var(--surface-2);
  border-radius: var(--radius) 0 0 var(--radius);
  text-align: center;
}
.t-date .day { font-family: 'Fraunces', Georgia, serif; font-size: 42px; font-weight: 600; line-height: 1; letter-spacing: -0.03em; }
.t-date .mon { font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }
.t-date .wday { font-size: 12px; color: var(--muted); margin-top: 2px; }
.t-date .time { margin-top: 10px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); }

.t-main { padding: 18px 20px; min-width: 0; display: flex; flex-direction: column; gap: 10px; }
.t-top { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.code {
  font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600;
  padding: 3px 8px; border-radius: 7px;
  background: transparent; color: var(--muted); border: 1px solid var(--line);
}
.pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 700;
  padding: 3px 10px; border-radius: 999px;
}
.pill .icon { width: 13px; height: 13px; }
.pill { border: 1px solid var(--line); color: var(--muted); background: transparent; }
.pill-wait { }
.pill-today { color: var(--ink); border-color: var(--ink); }
.pill-done { }
.pill-live { color: var(--live); border-color: currentColor; }
.t-course { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; line-height: 1.3; margin: 0; overflow-wrap: anywhere; }
.t-person { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 14px; }
.t-person .icon { width: 15px; height: 15px; }

.t-stub {
  position: relative;
  padding: 16px 18px;
  border-left: 2px dashed var(--line-strong);
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 14px;
  align-content: center;
}
/* yarım daire çentikler */
.t-stub::before,
.t-stub::after {
  content: "";
  position: absolute; left: calc(var(--notch) * -1 - 1px);
  width: calc(var(--notch) * 2); height: calc(var(--notch) * 2);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
}
.t-stub::before { top: calc(var(--notch) * -1 - 1px); clip-path: inset(50% 0 0 0); }
.t-stub::after { bottom: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 50% 0); }

.slot { min-width: 0; }
.slot-wide { grid-column: 1 / -1; }
.slot-k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: flex; align-items: center; gap: 5px; }
.slot-k .icon { width: 12px; height: 12px; }
.slot-v { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; margin-top: 2px; line-height: 1.15; overflow-wrap: anywhere; }
.slot-v.small { font-size: 14px; font-weight: 700; letter-spacing: 0; }
.slot-v.locked {
  font-size: 13px; font-weight: 600; letter-spacing: 0;
  display: inline-flex; align-items: center; gap: 6px;
  color: var(--muted);
  font-family: 'JetBrains Mono', monospace;
}
.slot-v.locked .icon { width: 13px; height: 13px; }
.seat-link {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 13px; font-weight: 700; color: var(--mine);
  text-underline-offset: 3px; margin-top: 2px;
  padding: 5px 10px; border-radius: 8px; background: var(--mine-soft);
}
.seat-link:hover { text-decoration: underline; }
.seat-link .icon { width: 14px; height: 14px; }

/* ---------- Duyurular ---------- */
.ann-list { list-style: none; margin: 0; padding: 6px; max-height: 440px; overflow-y: auto; }
.ann {
  padding: 14px;
  border-radius: 14px;
  transition: background .2s;
}
.ann + .ann { border-top: 1px solid var(--line); border-radius: 0 0 14px 14px; }
.ann:hover { background: var(--surface-2); }
.ann-date { font-family: 'JetBrains Mono', monospace; font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.ann-date .icon { width: 12px; height: 12px; }
.ann h3 { margin: 4px 0 4px; font-size: 15px; font-weight: 800; line-height: 1.35; }
.ann .tag { display: inline-block; margin-right: 6px; vertical-align: 1px; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: transparent; border: 1px solid currentColor; color: var(--danger); }
.ann-body { font-size: 14px; color: var(--ink-2); overflow-wrap: anywhere; }
.ann-link { margin-top: 10px; }
.ann-body a { color: var(--ink); font-weight: 700; text-underline-offset: 3px; }
.ann-body p { margin: 0 0 6px; }
.ann-body ul, .ann-body ol { margin: 4px 0; padding-left: 20px; }
.empty { padding: 28px 16px; text-align: center; color: var(--muted); font-size: 14px; }
.empty .icon { width: 28px; height: 28px; margin: 0 auto 8px; opacity: .6; }

/* ---------- Kurallar ---------- */
.rules { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.rule {
  padding: 16px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
}
.rule-ic {
  width: 36px; height: 36px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 10px;
}
.rule-ic .icon { width: 18px; height: 18px; }
.rule h3 { margin: 0 0 4px; font-size: 15px; font-weight: 800; }
.rule p { margin: 0; font-size: 14px; color: var(--muted); }
.rule p b { color: var(--ink-2); }
.c1, .c2, .c3, .c4, .c5, .c6 { background: var(--surface-2); color: var(--ink-2); border: 1px solid var(--line); }
.rules-note { margin: 12px 2px 0; font-size: 13px; color: var(--muted); font-style: italic; }

/* ---------- Geribildirim ---------- */
.feedback {
  padding: 20px;
  border-radius: var(--radius);
  background: var(--surface);
  border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.feedback h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 20px; margin: 0 0 6px; }
.feedback p { margin: 0 0 14px; font-size: 14px; color: var(--muted); }
.feedback .btn { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.feedback .btn:hover { background: var(--surface-3); }
.feedback .deco { position: absolute; right: -14px; top: -14px; width: 80px; height: 80px; opacity: .06; }
.aside .feedback { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 22px 0 32px; color: var(--muted); font-size: 13px; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.footer a { color: var(--ink-2); text-decoration: none; font-weight: 600; }
.footer a:hover { text-decoration: underline; }
.visitor { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; }
.visitor .icon { width: 14px; height: 14px; }

/* ---------- Yükleniyor ---------- */
.skeleton { display: flex; flex-direction: column; gap: 14px; }
.sk {
  height: 132px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.3s linear infinite;
  border: 1px solid var(--line);
}
.sk.short { height: 90px; }
.spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid currentColor; border-right-color: transparent; animation: spin .7s linear infinite; }

@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--live) 50%, transparent); }
  70% { box-shadow: 0 0 0 10px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- Duyarlı ---------- */
@media (max-width: 1024px) {
  .layout { grid-template-columns: minmax(0, 1fr); }
  .aside { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
  .aside .panel { grid-column: 1 / -1; }
  .ticket { grid-template-columns: 110px minmax(0, 1fr) 220px; }
}

@media (max-width: 860px) {
  .hero { padding: 28px 0 20px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .ticket { grid-template-columns: 92px minmax(0, 1fr); }
  .t-date { border-radius: var(--radius) 0 0 0; padding: 14px 8px; }
  .t-date .day { font-size: 34px; }
  .t-stub {
    grid-column: 1 / -1;
    border-left: 0;
    border-top: 2px dashed var(--line-strong);
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .t-stub::before,
  .t-stub::after { top: calc(var(--notch) * -1 - 1px); bottom: auto; }
  .t-stub::before { left: calc(var(--notch) * -1 - 1px); clip-path: inset(0 0 0 50%); }
  .t-stub::after { left: auto; right: calc(var(--notch) * -1 - 1px); clip-path: inset(0 50% 0 0); }
  .slot-wide { grid-column: auto; }
  .slot-seat { grid-column: 1 / -1; }
}

@media (max-width: 560px) {
  body { font-size: 15px; }
  .topbar-inner { height: 58px; }
  .search-card { padding: 20px; border-radius: 22px; }
  .field input { font-size: 18px; padding: 14px 10px; }
  .facts { gap: 6px; }
  .fact { font-size: 12px; padding: 6px 10px; }
  .aside { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr 1fr; gap: 10px; }
  .rule { padding: 14px; }
  .rule p { font-size: 13px; }
  .section-title h2 { font-size: 22px; }
  .student { padding: 16px; gap: 12px; flex-wrap: wrap; }
  .avatar { width: 46px; height: 46px; font-size: 17px; border-radius: 14px; }
  .student .btn { width: 100%; }
  .spotlight { padding: 18px; }
  .countdown { gap: 6px; }
  .cd-unit { padding: 10px 2px 8px; }
  .ticket { grid-template-columns: 76px minmax(0, 1fr); }
  .t-date .day { font-size: 28px; }
  .t-date .mon { font-size: 11px; }
  .t-date .time { font-size: 12px; padding: 3px 6px; }
  .t-main { padding: 14px; }
  .t-course { font-size: 16px; }
  .t-stub { padding: 14px; grid-template-columns: 1fr 1fr; gap: 10px; }
  .slot-wide { grid-column: 1 / -1; }
  .slot-v { font-size: 19px; }
  .footer-inner { flex-direction: column; align-items: flex-start; }
}

@media (max-width: 360px) {
  .rules { grid-template-columns: 1fr; }
  .theme-switch button { width: 28px; }
}

/* ---------- Oturma planı ---------- */
.plan-page { padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.back-link {
  display: inline-flex; align-items: center; gap: 6px; align-self: flex-start;
  font-size: 14px; font-weight: 700; color: var(--muted); text-decoration: none;
}
.back-link:hover { color: var(--ink); }
.plan-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.plan-head h1 { font-weight: 600; font-size: clamp(30px, 5vw, 44px); line-height: 1.05; letter-spacing: -0.02em; margin: 10px 0 6px; }
.plan-sub { margin: 0; color: var(--muted); font-size: 15px; }
.plan-stats { display: flex; gap: 10px; }
.plan-stat {
  min-width: 96px; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.plan-stat span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.plan-stat b { display: block; font-family: 'JetBrains Mono', monospace; font-size: 26px; font-weight: 600; line-height: 1.2; }
.plan-stat.is-strong { background: var(--mine); border-color: var(--mine); color: var(--mine-ink); }
.plan-stat.is-strong span { color: inherit; opacity: .65; }

.plan-panel { overflow: hidden; }
.plan-scroll { position: relative; overflow-x: auto; padding: 24px; -webkit-overflow-scrolling: touch; }
/* Mobilde kaydırma çubuğu gizlenmesin: her zaman görünen ince çubuk */
.plan-scroll::-webkit-scrollbar { height: 8px; }
.plan-scroll::-webkit-scrollbar-track { background: var(--surface-3); border-radius: 8px; margin: 0 16px; }
.plan-scroll::-webkit-scrollbar-thumb { background: var(--line-strong); border-radius: 8px; }
.plan-wrap { position: relative; }
.plan-wrap::before, .plan-wrap::after {
  content: ""; position: absolute; top: 0; bottom: 8px; width: 28px; pointer-events: none; opacity: 0; transition: opacity .2s; z-index: 2;
}
.plan-wrap::before { left: 0; background: linear-gradient(to right, var(--surface), transparent); }
.plan-wrap::after { right: 0; background: linear-gradient(to left, var(--surface), transparent); }
.plan-wrap.can-left::before, .plan-wrap.can-right::after { opacity: 1; }
.plan-swipe {
  position: absolute; right: 12px; bottom: 20px; z-index: 3; pointer-events: none;
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  background: var(--ink); color: var(--surface); font-size: 12px; font-weight: 700; box-shadow: 0 4px 14px rgba(0,0,0,.25);
  animation: swipeHint 1.6s ease-in-out infinite;
}
.plan-swipe[hidden] { display: none; }
@keyframes swipeHint { 0%, 100% { transform: translateX(0); } 50% { transform: translateX(-6px); } }
.plan-grid {
  --cols: 10;
  --seat: clamp(30px, calc((min(100vw, 1160px) - 100px - (var(--cols) - 1) * 5px) / var(--cols)), 46px);
  display: grid;
  grid-template-columns: repeat(var(--cols), var(--seat));
  grid-auto-rows: var(--seat);
  gap: 5px;
  width: max-content;
  margin: 0 auto;
}
.plan-grid .empty { grid-column: 1 / -1; width: min(420px, 80vw); }
.cell { border-radius: 8px; display: grid; place-items: center; font-family: 'JetBrains Mono', monospace; font-size: 12px; font-weight: 600; }
.cell-void { visibility: hidden; }
.cell-seat { background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); }
.cell-blank { background: transparent; border-style: dashed; }
.cell-seat.is-mine {
  background: var(--mine); border-color: var(--mine); color: var(--mine-ink);
  font-size: 14px; position: relative; z-index: 1;
  box-shadow: 0 0 0 3px var(--surface), 0 0 0 5px var(--mine);
}
.cell-seat.is-mine.flash { animation: seat-flash 1.2s ease 2; }
.cell-meta {
  display: flex; flex-direction: column; gap: 2px;
  border: 1px dashed var(--line-strong); color: var(--ink-2);
  font-family: 'Manrope', sans-serif; font-size: 9.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
}
.cell-meta .icon { width: 15px; height: 15px; }
.plan-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 14px 20px; border-top: 1px solid var(--line);
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 13px; color: var(--muted); }
.legend-item { display: inline-flex; align-items: center; gap: 8px; }
.lg { width: 14px; height: 14px; border-radius: 4px; background: var(--surface-2); border: 1px solid var(--line); }
.lg-mine { background: var(--mine); border-color: var(--mine); }
.lg-meta { background: transparent; border: 1px dashed var(--line-strong); }
.plan-hint { display: flex; gap: 8px; align-items: flex-start; margin: 0; font-size: 13px; color: var(--muted); }
.plan-hint .icon { margin-top: 2px; }

@keyframes seat-flash {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@media (max-width: 560px) {
  .plan-page { padding-top: 18px; gap: 16px; }
  .plan-head { align-items: flex-start; }
  .plan-stats { width: 100%; }
  .plan-stat { flex: 1; }
  .plan-scroll { padding: 16px; }
  .plan-grid { gap: 4px; --seat: clamp(26px, calc((100vw - 66px - (var(--cols) - 1) * 4px) / var(--cols)), 34px); }
  .cell { font-size: 11px; border-radius: 6px; }
  .cell-meta { font-size: 8px; }
  .cell-meta .icon { width: 13px; height: 13px; }
  .plan-foot { padding: 12px 16px; }
  .plan-foot .btn { width: 100%; }
}

/* ---------- Tüm sınavlar listesi ---------- */
.list-page { padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.clock {
  text-align: right; padding: 10px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: var(--surface);
}
.clock span { display: block; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.clock b { display: block; font-size: 24px; font-weight: 600; line-height: 1.2; }
.clock small { display: block; font-size: 12px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.field-sm { flex: 1 1 280px; border-radius: 12px; }
.field-sm input { font-family: 'Manrope', sans-serif; font-size: 15px; letter-spacing: 0; padding: 11px 12px; }
.field-sm input::-webkit-search-cancel-button { cursor: pointer; }
.select-wrap { position: relative; flex: 0 1 240px; min-width: 0; }
.select-wrap select {
  width: 100%; appearance: none; -webkit-appearance: none;
  font: inherit; font-size: 14px; font-weight: 600; color: var(--ink);
  background: var(--surface-2); border: 1.5px solid var(--line); border-radius: 12px;
  padding: 12px 38px 12px 14px; cursor: pointer;
  text-overflow: ellipsis;
}
.select-wrap select:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }
.select-wrap .icon { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); pointer-events: none; color: var(--muted); }
.toggle { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--ink-2); cursor: pointer; user-select: none; padding: 6px 2px; }
.toggle input { position: absolute; opacity: 0; pointer-events: none; }
.toggle-track { width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); position: relative; transition: background .2s; flex-shrink: 0; }
.toggle-track::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .2s; }
.toggle input:checked + .toggle-track { background: var(--ink); border-color: var(--ink); }
.toggle input:checked + .toggle-track::after { transform: translateX(16px); }
.toggle input:focus-visible + .toggle-track { box-shadow: var(--ring); }

.day-list { display: flex; flex-direction: column; gap: 22px; }
.day-head { display: flex; align-items: baseline; gap: 10px; margin: 0 2px 10px; flex-wrap: wrap; }
.day-head h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 22px; margin: 0; letter-spacing: -0.01em; }
.day-head span { color: var(--muted); font-size: 14px; text-transform: capitalize; }
.day-head em { margin-left: auto; font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); }
.day.is-today .day-head h2::after { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--live); margin-left: 8px; vertical-align: middle; }

.exam-rows { list-style: none; margin: 0; padding: 0; overflow: hidden; }
.exam-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) 190px 100px;
  gap: 16px; align-items: center;
  padding: 14px 18px;
}
.exam-row + .exam-row { border-top: 1px solid var(--line); }
.exam-row:hover { background: var(--surface-2); }
.exam-row.is-done { opacity: .6; }
.er-time { font-size: 16px; font-weight: 600; line-height: 1.2; }
.er-time small { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.er-time small:not(:empty)::before { content: "– "; }
.er-title { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.er-title b { font-size: 15px; font-weight: 800; line-height: 1.35; overflow-wrap: anywhere; }
.er-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 4px; font-size: 13px; color: var(--muted); }
.er-meta span { display: inline-flex; align-items: center; gap: 6px; min-width: 0; }
.er-meta .icon { width: 14px; height: 14px; }
.er-k { display: none; }
.room { font-size: 17px; font-weight: 800; letter-spacing: -0.01em; }
.room-locked { display: inline-flex; align-items: center; gap: 6px; font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.room-locked .icon { width: 13px; height: 13px; }
.er-status { text-align: right; }

@media (max-width: 860px) {
  .exam-row { grid-template-columns: 64px minmax(0, 1fr) auto; }
  .er-status { display: none; }
  .exam-row.is-live .er-status { display: block; grid-column: 2 / -1; text-align: left; }
}

@media (max-width: 560px) {
  .list-page { padding-top: 18px; gap: 16px; }
  .clock { width: 100%; text-align: left; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; }
  .clock span { width: 100%; }
  .clock b { font-size: 20px; }
  .select-wrap { flex: 1 1 100%; }
  .field-sm { flex-basis: 100%; }
  .exam-row { grid-template-columns: 54px minmax(0, 1fr); gap: 6px 12px; padding: 14px; align-items: start; }
  .er-time { font-size: 15px; }
  .er-room { grid-column: 2; display: flex; align-items: center; gap: 8px; }
  .er-k { display: inline; font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  .room { font-size: 15px; }
  .er-meta { flex-direction: column; gap: 3px; }
  .day-head h2 { font-size: 20px; }
}
.all-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; font-weight: 700; color: var(--ink-2); text-decoration: none; }
.all-link:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Hafif renk vurguları (tek yeşil) ---------- */
body { background-image: radial-gradient(900px 420px at 88% -80px, var(--brand-glow), transparent 70%); background-repeat: no-repeat; }
.kicker { color: var(--brand); }
.kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 em { color: var(--brand); }
.fact .icon { color: var(--brand); }
.panel-title .badge-icon { background: var(--brand-soft); color: var(--brand); border-color: transparent; }
.t-date .mon { color: var(--brand); }
.ticket.is-next { border-color: var(--brand); }
.pill-today { color: var(--brand); border-color: var(--brand); }
.all-link { color: var(--brand); }
.all-link:hover { color: var(--brand); }
.btn-primary:focus-visible, .field:focus-within { border-color: var(--brand); }

/* ---------- Renk sistemi ----------
   Logodan türetildi: çivit (#2F2C7E) ana renk, bordo-kırmızı (#B22238) uyarı/ikincil.
   Anlamsal durumlar: yeşil = senin koltuğun / tamam, sarı = bekliyor / kilitli. */
:root { --accent: var(--brand); --accent-hover: color-mix(in srgb, var(--brand) 88%, black); --accent-ink: #ffffff; --accent-soft: var(--brand-soft); --accent-soft-ink: var(--brand); --ring: 0 0 0 3px color-mix(in srgb, var(--brand) 22%, transparent); }
:root[data-theme="dark"] { --accent-ink: #14132e; --accent-hover: color-mix(in srgb, var(--brand) 88%, white); }

.btn-primary { background: var(--brand); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); }
.kicker { color: var(--crimson); }
.kicker::before { content: ""; width: 20px; height: 2px; background: currentColor; border-radius: 2px; }
.hero h1 em { color: var(--brand); }
.field:focus-within, .select-wrap select:focus { border-color: var(--brand); }
.all-link, .all-link:hover { color: var(--brand); }

.fact:nth-child(1) .icon { color: var(--brand); }
.fact:nth-child(2) .icon { color: var(--green); }
.fact:nth-child(3) .icon { color: var(--amber); }

.rule-ic.c1 { background: var(--amber-soft); color: var(--amber); }
.rule-ic.c2 { background: var(--indigo-soft); color: var(--indigo); }
.rule-ic.c3 { background: var(--crimson-soft); color: var(--crimson); }
.rule-ic.c4 { background: var(--green-soft); color: var(--green); }
.rule-ic.c5 { background: var(--crimson-soft); color: var(--crimson); }
.rule-ic.c6 { background: var(--indigo-soft); color: var(--indigo); }
.rule-ic { border-color: transparent; }

.panel-title .badge-icon { background: var(--indigo-soft); color: var(--indigo); border-color: transparent; }
.avatar { background: var(--indigo-soft); color: var(--indigo); border-color: transparent; }
.t-date .mon { color: var(--crimson); }
.ticket.is-next { border-color: var(--brand); }
.code { color: var(--indigo); background: var(--indigo-soft); border-color: transparent; }

.pill-today { color: var(--crimson); background: var(--crimson-soft); border-color: transparent; }
.pill-done { color: var(--green); background: var(--green-soft); border-color: transparent; }
.pill-live { color: var(--green); background: var(--green-soft); border-color: transparent; }
.slot-v.locked, .room-locked { color: var(--amber); }

.ann .tag { color: var(--crimson); background: var(--crimson-soft); border-color: transparent; }
.ann-date .icon { color: var(--indigo); }
.ann-body a { color: var(--brand); }
.feedback .btn { background: var(--indigo-soft); color: var(--indigo); border-color: transparent; }
.feedback .btn:hover { filter: brightness(.97); background: var(--indigo-soft); }
.back-link:hover { color: var(--brand); }
.day.is-today .day-head h2::after { background: var(--crimson); }

/* Kompakt hero */
.hero { padding: 36px 0 20px; }
.hero h1 { font-size: clamp(30px, 4.2vw, 46px); margin: 10px 0 10px; line-height: 1.08; }
.hero-lead { font-size: 15px; max-width: none; }
.facts { margin-top: 16px; align-items: center; }
.facts .all-link { margin: 0 0 0 4px; font-size: 14px; }
@media (max-width: 860px) { .hero { padding: 22px 0 14px; } }
@media (max-width: 560px) { .facts .all-link { margin: 4px 0 0; width: 100%; } }
@media (max-width: 560px) {
  .hero h1 { font-size: 26px; white-space: nowrap; }
  .hero-lead { font-size: 14px; }
}
@media (max-width: 360px) { .hero h1 { font-size: 23px; } .hero-lead { font-size: 13px; } }

/* Kompakt sınav kartı */
.ticket { grid-template-columns: 100px minmax(0, 1fr) 236px; }
.t-date { padding: 12px 8px; }
.t-date .day { font-size: 36px; }
.t-date .time { margin-top: 8px; }
.t-main { padding: 14px 18px; gap: 8px; justify-content: center; }
.t-course { font-size: 17px; }
.t-stub { padding: 12px 16px; gap: 10px 14px; }
.slot-v { font-size: 20px; }
.seat-link { padding: 4px 10px; }

/* Dar masaüstü / tablet: üç sütunlu düzeni koru */
@media (min-width: 701px) and (max-width: 860px) {
  .ticket { grid-template-columns: 92px minmax(0, 1fr) 220px; }
  .t-date { border-radius: var(--radius) 0 0 var(--radius); }
  .t-stub { grid-column: auto; border-top: 0; border-left: 2px dashed var(--line-strong); grid-template-columns: 1fr 1fr; }
  .t-stub::before { top: calc(var(--notch) * -1 - 1px); bottom: auto; left: calc(var(--notch) * -1 - 1px); right: auto; clip-path: inset(50% 0 0 0); }
  .t-stub::after { bottom: calc(var(--notch) * -1 - 1px); top: auto; left: calc(var(--notch) * -1 - 1px); right: auto; clip-path: inset(0 0 50% 0); }
  .slot-wide, .slot-seat { grid-column: 1 / -1; }
}

/* Telefon: koçan 2 satır (salon · sıra · gözetmen, sonra bağlantı) */
@media (max-width: 700px) {
  .ticket { grid-template-columns: 76px minmax(0, 1fr); }
  .t-date { padding: 10px 6px; }
  .t-date .day { font-size: 28px; }
  .t-date .wday { display: none; }
  .t-main { padding: 12px 14px; gap: 6px; }
  .t-stub { padding: 12px 14px; gap: 8px 12px; grid-template-columns: .6fr .6fr 1.8fr; }
  .slot-wide { grid-column: auto; }
  .slot-seat { grid-column: 1 / -1; }
  .slot-v { font-size: 18px; }
  .slot-v.small { font-size: 13px; line-height: 1.25; }
}

/* Üst bölüm: duyurular + sorgu kartı */
.hero-grid { align-items: stretch; }
.hero-ann { display: flex; flex-direction: column; min-width: 0; }
.hero-ann .ann-list { flex: 1 1 auto; max-height: 340px; }
.hero-grid:has(#searchCard[hidden]) { grid-template-columns: minmax(0, 1fr); }
.search-card .all-link { margin-top: 16px; }
@media (max-width: 860px) {
  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-ann .ann-list { max-height: 300px; }
}

/* ---------- Sıradaki sınav: odak kartı ---------- */
/* Kompakt: Salon / Sıra / Gözetmen ince şeritler (etiket solda, değer sağda, tek satır) */
.focus {
  border-radius: var(--radius); padding: 16px; background: var(--surface); border: 1px solid var(--line);
  display: grid; gap: 10px;
}
.fc-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fc-label { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 8px; }
.fc-label .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--live); animation: pulse 1.8s infinite; }
/* Tek satır başlık: ● 16 Kasım Pazartesi | 15:45  SAB207  Genel Muhasebe */
.fc-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }

.fc-date, .fc-time { font-size: var(--course-size); font-weight: 700; color: var(--ink-2); white-space: nowrap; }
.fc-time { color: var(--ink); font-variant-numeric: tabular-nums; }

.fc-line .code { font-size: 12px; padding: 2px 7px; }
.fc-when { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.fc-sep { color: var(--line-strong); font-weight: 400; }
.fc-line h3 { font-weight: 700; font-size: var(--course-size); line-height: 1.15; margin: 0; min-width: 0; }
.fc-title { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.fc-title h3 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(18px, 2.6vw, 22px); line-height: 1.15; margin: 0; text-wrap: balance; min-width: 0; }
.fc-sub { display: flex; flex-wrap: wrap; gap: 4px 14px; color: var(--muted); font-size: 13px; }
.fc-sub span { display: inline-flex; align-items: center; gap: 6px; }
.fc-sub .icon { width: 13px; height: 13px; }
.fc-hoca { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 13px; font-weight: 600; min-width: 0; }
.fc-hoca .icon { width: 13px; height: 13px; flex: none; }
.fc-start { font-size: 13px; color: var(--ink-2); }
.fc-start b { color: var(--ink); font-size: 14px; }
.fc-live { display: inline-flex; align-items: center; gap: 8px; color: var(--live); font-weight: 700; }
.fc-big { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.fc-tile, .fc-goz {
  display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap;
  border-radius: 12px; padding: 8px 12px; min-height: 44px; background: var(--surface-2);
}
.fc-tile .k, .fc-goz .k { font-size: 11px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; }
.fc-tile .k .icon, .fc-goz .k .icon { width: 14px; height: 14px; }
.fc-tile .v { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 19px; line-height: 1; overflow-wrap: anywhere; text-align: right; }
.fc-tile.open, .fc-goz.open { background: var(--green-soft); }
.fc-tile.open .v, .fc-goz.open .v { color: var(--green); }
.fc-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-family: 'JetBrains Mono', monospace; font-size: 13px; font-weight: 600; white-space: nowrap; font-variant-numeric: tabular-nums; }
.fc-lock .icon { width: 14px; height: 14px; }
.fc-lock.small { font-size: 13px; }
.fc-goz .v { font-weight: 700; font-size: 15px; text-align: right; }
.fc-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.fc-step { display: grid; gap: 4px; font-size: 11.5px; color: var(--muted); }
.fc-step i { display: block; height: 4px; border-radius: 4px; background: linear-gradient(90deg, var(--brand) var(--p, 0%), var(--line) var(--p, 0%)); }
.fc-step.ok { color: var(--ink-2); }
.fc-step.ok i { background: var(--green); }
.fc-step.cur { color: var(--ink); font-weight: 700; }
.focus .seat-link { justify-self: start; }

/* ---------- Sınav takvimi: zaman çizelgesi ---------- */
.timeline { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 16px 10px 6px; display: grid; gap: 2px; }
.tl-day { display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px; }
.tl-when { text-align: right; padding-top: 1px; display: grid; align-content: start; min-width: 0; white-space: nowrap; }
.tl-when b { font-family: 'Fraunces', Georgia, serif; font-size: 20px; line-height: 1; }
.tl-when small { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.tl-when small { text-transform: none; letter-spacing: 0; font-size: 12px; line-height: 1.35; }
.tl-when small:nth-of-type(1) { color: var(--crimson); }
.tl-items { border-left: 2px solid var(--line); padding: 0 0 14px 16px; display: grid; gap: 14px; min-width: 0; }
.tl-day:last-child .tl-items { padding-bottom: 6px; }
.tl-item { position: relative; display: grid; gap: 5px; min-width: 0; }
.tl-item::before { content: ""; position: absolute; left: -24px; top: 3px; width: 14px; height: 14px; border-radius: 50%; background: var(--surface); border: 2px solid var(--line-strong); }
.tl-item.is-done::before { background: var(--green); border-color: var(--green); }
.tl-item.is-focus::before, .tl-item.is-live::before { background: var(--brand); border-color: var(--brand); box-shadow: 0 0 0 4px var(--brand-soft); }
.tl-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.tl-title { font-weight: 700; font-size: var(--course-size); min-width: 0; }
.tl-item.is-done .tl-title { color: var(--muted); }
.tl-item.is-focus .tl-title { color: var(--brand); }
.tl-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 14px; color: var(--ink-2); }
.tl-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.tl-meta .icon { width: 14px; height: 14px; color: var(--muted); }
.tl-meta .tl-goz { flex-basis: 100%; }
.tl-meta .tl-k { color: var(--muted); font-weight: 600; margin-right: 1px; }
.tl-row .tl-hoca { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); font-size: 14px; font-weight: 600; }
.tl-row .tl-hoca .icon { width: 14px; height: 14px; }
.tl-lock { display: inline-flex; color: var(--muted); }
.tl-lock .icon { width: 13px; height: 13px; }
.tl-up { color: var(--brand); font-weight: 700; font-size: 13px; text-decoration: none; }
.tl-up:hover { text-decoration: underline; }
.tl-links { display: flex; flex-wrap: wrap; gap: 8px; }
.tl-link { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--mine); text-decoration: none; }
.tl-link:hover { text-decoration: underline; }
.tl-link .icon { width: 13px; height: 13px; }

@media (max-width: 560px) {
  .focus { padding: 12px; gap: 7px; grid-template-columns: minmax(0, 1fr); min-width: 0; max-width: 100%; overflow: hidden; }
  .focus > * { min-width: 0; }
  .fc-sub { font-size: 12px; gap: 2px 10px; }
  .fc-title { gap: 4px 8px; }
  .fc-title .code { font-size: 11px; padding: 3px 7px; }
  .fc-title h3 { font-size: 16px; }
  .fc-line { gap: 3px 6px; }
  .fc-line h3 { font-size: var(--course-size); }
  .fc-date, .fc-time { font-size: 13px; }
  .fc-hoca { font-size: 12px; }
  .fc-top { flex-wrap: nowrap; }
  .fc-top:has(.fc-cd:not([hidden])) .pill { display: none; }
  .fc-cd { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
  .fc-cd .icon { width: 14px; height: 14px; color: var(--muted); }
  .fc-cd b { font-size: 12px; font-weight: 600; color: var(--ink-2); }
  .fc-label { letter-spacing: .06em; font-size: 11px; white-space: nowrap; }
  .fc-top { gap: 6px; }
  .fc-big { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
  .fc-big .fc-tile { flex-direction: column; align-items: flex-start; justify-content: center; gap: 2px; }
  .fc-big .fc-tile .v { text-align: left; }
  .fc-big .fc-lock { font-size: 12px; }
  .fc-tile, .fc-goz { padding: 5px 10px; min-height: 34px; border-radius: 10px; }
  .fc-tile .k, .fc-goz .k { font-size: 11px; }
  .fc-tile .v { font-size: 20px; }
  .fc-lock, .fc-lock.small { font-size: 12px; }
  .fc-goz .v { font-size: 14px; }
  .fc-step { gap: 3px; font-size: 11px; }
  .timeline { padding: 16px 12px 8px 6px; }
  .tl-day { grid-template-columns: 38px minmax(0, 1fr); gap: 8px; }
  .tl-when small { letter-spacing: -.01em; }
  .tl-when small { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) { .fc-label .dot { animation: none; } }

/* ---------- Sınav değerlendirme anketi ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.survey-page { max-width: 760px; padding: 24px 16px 48px; display: flex; flex-direction: column; gap: 20px; }
.sv-exam { padding: 20px; }
.sv-exam .skeleton .sk { height: 22px; }
.sv-exam-title { display: grid; gap: 6px; justify-items: start; }
.sv-exam-title h2 { font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: clamp(22px, 3vw, 28px); line-height: 1.15; margin: 0; text-wrap: balance; }
.sv-exam .facts { margin-top: 14px; }

.sv-form { display: flex; flex-direction: column; gap: 20px; }
.sv-progress {
  position: sticky; top: 72px; z-index: 5;
  padding: 12px 16px; border-radius: 14px;
  background: color-mix(in srgb, var(--surface) 90%, transparent);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  border: 1px solid var(--line);
}
.sv-progress-top { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--ink-2); margin-bottom: 8px; }
.sv-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.sv-bar i { display: block; height: 100%; width: 0; border-radius: inherit; background: var(--green); transition: width .3s ease; }

.sv-questions { display: flex; flex-direction: column; }
.sv-q { border: 0; margin: 0; padding: 18px 20px; display: grid; gap: 12px; min-width: 0; }
.sv-q + .sv-q { border-top: 1px solid var(--line); }
.sv-q legend { display: flex; gap: 12px; align-items: flex-start; padding: 0; margin: 0; font-weight: 700; font-size: 15px; line-height: 1.45; color: var(--ink); float: left; width: 100%; }
.sv-q legend + * { clear: both; }
.sv-num {
  flex: none; width: 26px; height: 26px; border-radius: 8px; margin-top: -1px;
  display: grid; place-items: center; font-size: 13px;
  background: var(--surface-2); color: var(--muted); border: 1px solid var(--line);
}
.sv-q.is-answered .sv-num { background: var(--green-soft); color: var(--green); border-color: transparent; }
.sv-q.is-missing .sv-num { background: var(--crimson-soft); color: var(--crimson); border-color: transparent; }
.sv-q.is-missing .sv-scale .sv-dot { border-color: color-mix(in srgb, var(--crimson) 45%, var(--line)); }

.sv-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.sv-opt { position: relative; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sv-opt input, .sv-none input { position: absolute; opacity: 0; pointer-events: none; }
.sv-dot {
  display: grid; place-items: center; height: 48px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface);
  font-family: 'JetBrains Mono', monospace; font-size: 17px; font-weight: 600; color: var(--ink-2);
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.sv-opt:hover .sv-dot { background: var(--surface-2); }
.sv-opt input:focus-visible + .sv-dot, .sv-none input:focus-visible + span { box-shadow: var(--ring); }
.sv-opt input:checked + .sv-dot { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); transform: scale(1.04); }
.sv-ends { display: flex; justify-content: space-between; gap: 12px; font-size: 12px; color: var(--muted); margin-top: -4px; }
.sv-picked { font-size: 13px; font-weight: 700; color: var(--green); min-height: 0; }
.sv-picked:empty { display: none; }
.sv-none { position: relative; justify-self: start; cursor: pointer; }
.sv-none span {
  display: inline-flex; align-items: center; padding: 6px 12px; border-radius: 99px;
  border: 1px dashed var(--line-strong); font-size: 13px; font-weight: 600; color: var(--muted);
}
.sv-none:hover span { color: var(--ink); }
.sv-none input:checked + span { border-style: solid; border-color: var(--ink); color: var(--ink); background: var(--surface-2); }

.sv-optional { font-size: 12px; font-weight: 700; color: var(--muted); }
.sv-textarea {
  width: 100%; resize: vertical; min-height: 110px; padding: 12px 14px; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink);
  font: 500 15px/1.5 'Manrope', sans-serif;
}
.sv-textarea:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); background: var(--surface); }
.sv-count { text-align: right; font-size: 12px; color: var(--muted); margin-top: 6px; }
.sv-submit .btn-block { margin-top: 0; }
.sv-submit .btn .spinner { width: 16px; height: 16px; }

.sv-state { padding: 36px 24px; text-align: center; display: grid; justify-items: center; gap: 10px; }
.sv-state h2 { margin: 6px 0 0; font-weight: 600; font-size: 26px; }
.sv-state p { margin: 0 0 10px; color: var(--muted); max-width: 46ch; }
.sv-state-ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--surface-2); color: var(--ink-2); }
.sv-state-ic .icon { width: 26px; height: 26px; }
.sv-state.is-ok .sv-state-ic { background: var(--green-soft); color: var(--green); }

@media (max-width: 560px) {
  .survey-page { padding-top: 18px; gap: 16px; }
  .sv-progress { top: 64px; }
  .sv-q { padding: 16px; }
  .sv-scale { gap: 6px; }
  .sv-dot { height: 44px; font-size: 16px; }
  .sv-ends { font-size: 11px; }
}

/* Öğrenci sayfası: değerlendirme bekleyen sınavlar */
.survey-cta { padding: 18px 20px; display: grid; gap: 12px; border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.survey-cta-head { display: flex; gap: 12px; align-items: flex-start; }
.survey-cta-head .sv-state-ic { width: 40px; height: 40px; border-radius: 12px; flex: none; background: var(--green-soft); color: var(--green); }
.survey-cta-head .sv-state-ic .icon { width: 20px; height: 20px; }
.survey-cta-head h3 { margin: 0; font-size: 16px; }
.survey-cta-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
.survey-cta-list { display: grid; gap: 8px; }
.survey-cta-item {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
  padding: 10px 12px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line);
}
.survey-cta-item .t { display: flex; align-items: center; gap: 8px; min-width: 0; font-weight: 700; font-size: var(--course-size); }
.survey-cta-item .t span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tl-link.is-survey { color: var(--green); }

/* Takvimdeki eylem düğmeleri (Sıra konumu / Sınavı değerlendir) */
.tl-links { gap: 8px; margin-top: 2px; }
.tl-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface-2); color: var(--ink-2);
  font-size: 13px; font-weight: 600; line-height: 1.2; text-decoration: none;
  transition: background .15s ease, border-color .15s ease, transform .1s ease;
}
a.tl-btn:hover { background: var(--surface-3); }
a.tl-btn:active { transform: translateY(1px); }
a.tl-btn:focus-visible { outline: none; box-shadow: var(--ring); }
.tl-btn .icon { width: 14px; height: 14px; color: var(--muted); }
/* Ana sayfa hero'su: tam genişlik, kenarsız; görselin alt kısmı görünür (gerekirse gökyüzünden kırpılır).
   Alt kenar sayfa zeminine yumuşakça erir; saydam header görselin üstüne biner. */
.hero:has(.hero-cover) { padding-top: 0; }
.hero-cover {
  --topbar-h: 65px;
  position: relative;
  margin-top: calc(-1 * var(--topbar-h)); /* header görselin üstünde, saydam */
  height: clamp(300px, 42.85vw, 640px);   /* 42.85vw = görselin kendi oranı */
  background: url("/yeni/banner.webp") 50% 100% / cover no-repeat;
}
/* Tema başına ayrı görsel: yalnızca etkin temanın dosyası indirilir */
:root[data-theme="dark"] .hero-cover { background-image: url("/yeni/banner-dark.webp"); }
/* Geçiş: alt şerit kademeli olarak sayfa zeminine karışır */
.hero-cover::after {
  content: ""; position: absolute; inset: auto 0 0; height: 32%; pointer-events: none;
  /* S eğrisi: footer'daki geçişle aynı, keskin bant oluşmasın */
  background: linear-gradient(to top,
    var(--bg) 0%,
    color-mix(in srgb, var(--bg) 99%, transparent) 10%,
    color-mix(in srgb, var(--bg) 95%, transparent) 20%,
    color-mix(in srgb, var(--bg) 86%, transparent) 32%,
    color-mix(in srgb, var(--bg) 72%, transparent) 44%,
    color-mix(in srgb, var(--bg) 54%, transparent) 56%,
    color-mix(in srgb, var(--bg) 35%, transparent) 68%,
    color-mix(in srgb, var(--bg) 18%, transparent) 80%,
    color-mix(in srgb, var(--bg) 7%, transparent) 90%,
    color-mix(in srgb, var(--bg) 0%, transparent) 100%);
}
.hero-cover + .hero-grid { position: relative; margin-top: -24px; }
/* Dar ekran: görselin tamamı; header görselin üstüne binmez */
@media (max-width: 700px) {
  .hero-cover { margin-top: 0; height: 42.85vw; background-size: 100% auto; background-position: 50% 0; }
  .hero-cover::after { height: 30%; }
  .hero-cover + .hero-grid { margin-top: 4px; }
}

/* Ana sayfa footer'ı: sade, yumuşak zeminli kart; marka | iletişim | ziyaretçi */
.footer-hero { margin-top: 56px; padding: 0 0 28px; border-top: 0; color: var(--ink-2); }
.footer-card {
  display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; align-items: center; gap: 24px;
  padding: 24px 28px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line);
  position: relative; overflow: hidden;
}
.footer-card::before {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: linear-gradient(90deg, var(--brand), var(--crimson));
}
.footer-brand { display: flex; align-items: center; gap: 12px; min-width: 0; }
.footer-brand .brand-text strong { font-size: 17px; }
.footer-meta { line-height: 1.6; font-size: 13px; color: var(--muted); }
.footer-meta a { color: var(--ink-2); font-weight: 600; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }
.footer-meta a:hover { text-decoration: underline; }
.footer-meta .icon { width: 14px; height: 14px; color: var(--muted); }
.footer-visitor-wrap { justify-self: end; }
.footer-card .visitor {
  display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px;
  background: var(--surface-2); border: 1px solid var(--line); font-size: 13px; color: var(--ink-2);
}
.footer-card .visitor .icon { width: 15px; height: 15px; color: var(--muted); }
.footer-copy { margin: 12px 4px 0; text-align: center; font-size: 12px; color: var(--muted); }

/* ---------- Açılış animasyonları (ana sayfa) ----------
   Kısa ve hafif: yalnızca opaklık + birkaç piksel kayma, toplam < 1 sn.
   'backwards' dolgu: animasyon bitince hover dönüşümlerine karışmaz.
   Hareket azaltma tercihinde yukarıdaki genel kural süreleri sıfırlar.
   Zamanlama: index.html <head> 'anim-wait' ekler; sayfa (görsel + yazı tipleri) hazır olunca
   veya en geç 1,5 sn sonra 'anim-go' eklenir ve animasyonlar O ZAMAN başlar. Yoksa ilk boyama
   gecikince kısa animasyonlar ekran görünmeden biter. JS yoksa sınıf eklenmez, içerik normal görünür. */
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes drop-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@keyframes soft-rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
html.anim-wait:not(.anim-go) :is(.topbar, .hero-cover, .hero-cover + .hero-grid > *, #rulesSection, .hero ~ .layout > .aside > *) {
  opacity: 0;
}
html.anim-go .topbar { animation: drop-in .5s cubic-bezier(.2, .8, .2, 1) .1s backwards; }
html.anim-go .hero-cover { animation: fade-in .8s ease-out backwards; }
html.anim-go .hero-cover + .hero-grid > * { animation: soft-rise .65s cubic-bezier(.2, .8, .2, 1) backwards; }
html.anim-go .hero-cover + .hero-grid > :nth-child(1) { animation-delay: .2s; }
html.anim-go .hero-cover + .hero-grid > :nth-child(2) { animation-delay: .3s; }
/* Sonuçlar (#results) sonradan açıldığı için burada yok; kendi 'rise' animasyonu var */
html.anim-go #rulesSection, html.anim-go .hero ~ .layout > .aside > * {
  animation: soft-rise .65s cubic-bezier(.2, .8, .2, 1) .4s backwards;
}
/* Ekran dışındaki öğeler: destekleyen tarayıcılarda kaydırınca hafifçe belirir */
@supports (animation-timeline: view()) {
  #rulesSection .rule, .footer-hero .footer-card {
    animation: soft-rise linear backwards;
    animation-timeline: view();
    animation-range: entry 0% entry 60%;
  }
  html.anim-go #rulesSection { animation: none; }
  html.anim-wait:not(.anim-go) #rulesSection { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  #rulesSection .rule, .footer-hero .footer-card { animation: none; }
}
/* Footer: dar ekranda tek sütun */
@media (max-width: 700px) {
  .footer-hero { margin-top: 36px; }
  .footer-card { grid-template-columns: 1fr; gap: 16px; padding: 22px 18px 18px; }
  .footer-visitor-wrap { justify-self: start; }
}

/* Sakin vurgu: nötr düğme + küçük sabit nokta + hafif renkli çerçeve (animasyon yok) */
/* Sıra konumu: açıldı ama henüz tıklanmadı */
.tl-btn.is-new { border-color: color-mix(in srgb, var(--green) 45%, var(--line-strong)); }
.tl-btn.is-new .icon { color: var(--green); }
.tl-btn.is-new .tl-dot { background: var(--green); }
/* Anket: doldurulmadı */
.tl-btn.is-todo { border-color: color-mix(in srgb, var(--amber) 45%, var(--line-strong)); }
.tl-btn.is-todo .icon { color: var(--amber); }
.tl-btn.is-todo .tl-dot { background: var(--amber); }
/* Anket: dolduruldu */
.tl-btn.is-done { background: transparent; border-color: transparent; padding-left: 0; color: var(--muted); font-weight: 600; cursor: default; }
.tl-btn.is-done .icon { color: var(--green); }
.tl-dot { width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; margin-left: 1px; }
.tl-survey-done { display: inline-flex; align-items: center; gap: 5px; font-size: 13px; font-weight: 700; color: var(--muted); }
.tl-survey-done .icon { width: 13px; height: 13px; color: var(--green); }
@media (max-width: 560px) { .survey-cta-item .btn { width: 100%; } }

/* Salon kuralları: kartlarla uyumlu, ortalanmış çizimler */
.rules .rule-ic {
  width: 100%;
  height: 96px;
  margin: 0 0 12px;
  border: 0;
  border-radius: 12px;
}
.rules .rule-art { width: 120px; height: 80px; display: block; }
.rules { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rules .rule-ic.c1 { background: radial-gradient(ellipse 65px 37px at center, var(--amber-soft) 99%, transparent); }
.rules .rule-ic.c2, .rules .rule-ic.c6 { background: radial-gradient(ellipse 65px 37px at center, var(--indigo-soft) 99%, transparent); }
.rules .rule-ic.c3, .rules .rule-ic.c5 { background: radial-gradient(ellipse 65px 37px at center, var(--crimson-soft) 99%, transparent); }
.rules .rule-ic.c4 { background: radial-gradient(ellipse 65px 37px at center, var(--green-soft) 99%, transparent); }
@media (max-width: 360px) { .rules { grid-template-columns: 1fr; } }
/* Imagegen ile hazırlanan saydam görseller */
.rules .rule-ic { height: 128px; background: transparent !important; }
.rules .rule-art { display: block; width: 192px; height: 128px; max-width: 100%; object-fit: contain; }

/* Sınav sonrası değerlendirme popup'ı */
.sv-popup {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 20px;
  background: rgba(10, 16, 40, .5); backdrop-filter: blur(3px); animation: fade-in .2s ease-out;
}
.sv-popup-card {
  width: min(400px, 100%); display: grid; gap: 10px; justify-items: start; padding: 24px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: soft-rise .3s cubic-bezier(.2, .8, .2, 1);
}
.sv-popup-card .sv-state-ic { width: 44px; height: 44px; border-radius: 14px; background: var(--green-soft); color: var(--green); }
.sv-popup-card h3 { margin: 4px 0 0; font-family: 'Fraunces', Georgia, serif; font-weight: 600; font-size: 21px; line-height: 1.25; }
.sv-popup-card p { margin: 0; color: var(--muted); font-size: 14px; }
.sv-popup-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { .sv-popup, .sv-popup-card { animation: none; } }

/* Evet/Hayır görüş anketi popup'ı */
.poll-card { width: min(440px, 100%); justify-items: stretch; }
.poll-card .sv-state-ic { justify-self: start; }
.poll-card .poll-q { color: var(--ink); font-size: 15px; line-height: 1.45; font-weight: 500; }
.poll-options { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.poll-opt { min-height: 46px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; }
.poll-opt[aria-pressed="true"] { border-color: var(--green); background: var(--green-soft); color: var(--green); }
.poll-more { display: grid; gap: 8px; }
.poll-more[hidden] { display: none; }
.poll-more label { color: var(--ink); font-size: 14px; font-weight: 500; }
.poll-more textarea { width: 100%; min-height: 84px; resize: vertical; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; }
.poll-msg { min-height: 18px; font-size: 13px; color: var(--muted); }

/* Tema: tek düğme (gündüz <-> gece) */
.theme-toggle {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  transition: background .2s, color .2s;
}
.theme-toggle:hover { background: var(--surface-3); color: var(--ink); }
.theme-toggle .icon { width: 18px; height: 18px; grid-area: 1 / 1; }
.theme-toggle .ic-moon { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .ic-moon { display: block; }

/* Dil: TR / EN düğmesi (tema düğmesinin yanında); düğmede geçilecek dil yazar */
.lang-toggle {
  height: 38px; min-width: 38px; padding: 0 10px; flex: none; display: grid; place-items: center; cursor: pointer;
  border-radius: 19px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
  font: inherit; font-size: 12.5px; font-weight: 800; letter-spacing: .04em;
  transition: background .2s, color .2s;
}
.lang-toggle:hover { background: var(--surface-3); color: var(--ink); }
.ob-lang { margin-left: auto; margin-right: 12px; height: 30px; min-width: 34px; padding: 0 8px; font-size: 11.5px; }

/* Üst çubuk: tek satır; öğrenci bilgisi + çıkış sağda */
.topbar-inner { gap: 10px; }
.topuser { display: flex; align-items: center; gap: 10px; min-width: 0; margin-left: auto; }
.topuser[hidden] { display: none; }
.topuser .avatar { width: 34px; height: 34px; font-size: 13px; flex: none; }
.topuser-info { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; text-align: right; }
.topuser-info strong { font-size: 13.5px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 240px; }
.topuser-info span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.topuser-out {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; cursor: pointer; padding: 0;
  border-radius: 50%; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2);
}
.topuser-out:hover { background: var(--surface-3); color: var(--ink); }
.topuser-out span { display: none; }
.topbar-inner:has(.topuser:not([hidden])) .lang-toggle { margin-left: 0; }
.topbar-inner:not(:has(.topuser:not([hidden]))) .lang-toggle { margin-left: auto; }
.topbar-inner .theme-toggle { margin-left: 0; }
@media (max-width: 560px) {
  .topbar-inner { gap: 8px; }
  .brand-text span { font-size: 11.5px; }
  .topbar-inner:has(.topuser:not([hidden])) .brand-text strong { font-size: 14px; }
  .topuser { gap: 8px; }
  .topuser .avatar { display: none; }
  .topuser-info { text-align: left; flex: 1; }
  .topuser-info strong { max-width: none; }
  .topbar-inner:has(.topuser:not([hidden])) .brand { flex: none; }
}

/* Sınava katılım bildirimi (kağıt tasarrufu) */
.att-cta { padding: 14px 16px; display: grid; gap: 8px; border-color: color-mix(in srgb, var(--green) 35%, var(--line)); }
.att-cta .survey-cta-head .sv-state-ic { background: var(--green-soft); color: var(--green); width: 32px; height: 32px; border-radius: 10px; }
.att-cta .survey-cta-head .sv-state-ic .icon { width: 17px; height: 17px; }
.att-cta .survey-cta-head { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 10px; }
.att-cta .survey-cta-head > div { display: contents; }
.att-cta .survey-cta-head p { grid-column: 1 / -1; margin: 0; font-size: 13px; line-height: 1.45; }
.att-item .t { flex: 1 1 200px; }
.att-when { font-size: 13px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.att-all { justify-self: start; }
.att-more { margin: 0; font-size: 13px; color: var(--muted); }
.att-saved { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
.att-saved .icon { vertical-align: -2px; margin-right: 6px; }
.att-saved .icon, .eco-note .icon { width: 15px; height: 15px; color: var(--green); flex: none; }
.att-saved b, .eco-note b { color: var(--green); }
.att-seg { display: inline-flex; gap: 6px; }
.att-opt {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 6px 12px; border-radius: 9px;
  border: 1px solid var(--line-strong); background: var(--surface);
  box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 1px 3px rgba(0,0,0,.05);
  color: var(--ink-2); font: inherit; font-size: 13px; font-weight: 700; line-height: 1.2; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease, transform .1s ease;
}
.att-opt:active { transform: translateY(1px); box-shadow: none; }
.att-opt .icon { width: 14px; height: 14px; color: var(--muted); }
.att-opt:hover { background: var(--surface-3); border-color: var(--ink-2); }
.att-opt:focus-visible { outline: none; box-shadow: var(--ring); }
.att-opt:disabled { opacity: .6; cursor: progress; }
.att-opt.is-yes.on { background: var(--green); color: #fff; border-color: var(--green); box-shadow: none; }
.att-opt.is-no.on { background: var(--ink-2); color: var(--surface); border-color: var(--ink-2); box-shadow: none; }
.att-opt.on .icon { color: currentColor; }
.att-inline { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.att-done .icon { color: var(--green); }
.eco-note { display: flex; align-items: flex-start; gap: 8px; margin: 14px 0 0; font-size: 13px; color: var(--muted); line-height: 1.45; }
@media (max-width: 560px) {
  .att-item { display: grid; grid-template-columns: 1fr auto; align-items: center; padding: 8px 10px; gap: 6px 8px; }
  .att-item .t { flex: none; font-size: var(--course-size); gap: 6px; }
  .att-item .t .code { font-size: 11px; padding: 3px 7px; flex: none; }
  .att-item .t span:last-child { white-space: normal; overflow: visible; line-height: 1.25; }
  .tl-title { font-size: var(--course-size); }
  .tl-meta, .tl-row .tl-hoca { font-size: 13px; }  .att-when { font-size: 12px; }
  .att-item .att-seg { grid-column: 1 / -1; width: 100%; }
  .att-item .att-opt { flex: 1; padding: 5px 8px; font-size: 13px; }
  .att-all { justify-self: stretch; justify-content: center; }
}

/* İlk giriş tanıtımı (onboarding) */
.ob-lock, .ob-lock body { overflow: hidden; }
.ob-overlay {
  position: fixed; inset: 0; z-index: 1000; display: grid; place-items: center; padding: 16px;
  background: color-mix(in srgb, var(--ink) 55%, transparent); backdrop-filter: blur(4px);
  animation: ob-in .25s ease both;
}
.ob-overlay.out { opacity: 0; transition: opacity .2s ease; }
@keyframes ob-in { from { opacity: 0; } to { opacity: 1; } }
.ob-card {
  width: min(440px, 100%); max-height: calc(100dvh - 32px); display: grid; grid-template-rows: auto 1fr auto auto; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px 0 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); overflow: hidden;
}
.ob-top { display: flex; align-items: center; justify-content: space-between; padding: 0 18px; }
.ob-brand { font-size: 12px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.ob-skip { border: 0; background: transparent; color: var(--muted); font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; padding: 6px 4px; }
.ob-skip:hover { color: var(--ink); }
.ob-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; overscroll-behavior-x: contain; outline: none;
}
.ob-track::-webkit-scrollbar { display: none; }
.ob-slide {
  flex: 0 0 100%; scroll-snap-align: center; scroll-snap-stop: always; box-sizing: border-box;
  padding: 4px 24px 8px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px;
  min-height: 330px; justify-content: center; overflow-y: auto;
}
.ob-step { font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 10px; border-radius: 999px; }
.ob-art img { display: block; width: 192px; max-width: 100%; height: 128px; object-fit: contain; }
.ob-slide h2 { margin: 0; font-family: 'Fraunces', Georgia, serif; font-size: 22px; line-height: 1.2; }
.ob-slide p { margin: 0; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 34ch; }
.ob-slide p b { color: var(--ink-2); }
.ob-timeline { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 10px; text-align: left; width: 100%; max-width: 320px; }
.ob-timeline li { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 10px 12px; }
.ob-timeline li > div { display: grid; gap: 2px; font-size: 13px; color: var(--muted); }
.ob-timeline li > div > b { color: var(--ink); font-size: 14px; }
.ob-timeline li > div span b { color: var(--ink-2); }
.ob-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; margin-top: 5px; background: var(--amber); }
.ob-dot.b { background: var(--indigo); }
.ob-dot.c { background: var(--green); }
.ob-bell { width: 64px; height: 64px; border-radius: 20px; display: grid; place-items: center; background: var(--green-soft); color: var(--green); }
.ob-bell .icon { width: 30px; height: 30px; }
.ob-push { display: grid; gap: 8px; width: 100%; max-width: 300px; margin-top: 4px; }
.ob-push input {
  width: 100%; box-sizing: border-box; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font: inherit; font-size: 15px; text-align: center;
}
.ob-push input:focus { outline: none; box-shadow: var(--ring); }
.ob-msg { font-size: 13px; color: var(--muted); }
.ob-msg.ok { color: var(--green); font-weight: 700; }
.ob-msg.err { color: var(--crimson); }
.ob-dots { display: flex; justify-content: center; gap: 6px; }
.ob-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--line-strong); transition: width .2s ease, background .2s ease; }
.ob-dots span.on { width: 18px; border-radius: 6px; background: var(--brand); }
.ob-actions { display: flex; gap: 8px; padding: 0 18px; }
.ob-actions .btn { flex: 1; justify-content: center; }
@media (max-height: 640px) { .ob-slide { min-height: 0; } .ob-art img { height: 96px; } }
@media (prefers-reduced-motion: reduce) { .ob-overlay { animation: none; } .ob-track { scroll-behavior: auto; } }
.sv-popup-card .sv-weight {
  display: flex; gap: 10px; align-items: flex-start; width: 100%; box-sizing: border-box; padding: 10px 12px;
  background: var(--green-soft); border-radius: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.45;
}
.sv-popup-card .sv-weight .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.sv-popup-card .sv-weight b { color: var(--green); }
.survey-cta-head p b { color: var(--ink-2); }
.ob-timeline li { align-items: center; }
.ob-ic { flex: none; min-width: 36px; height: 36px; padding: 0 6px; box-sizing: border-box; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 4px; background: var(--amber-soft); color: var(--amber); }
.ob-ic.b { background: var(--indigo-soft); color: var(--indigo); }
.ob-ic.c { background: var(--green-soft); color: var(--green); }
.ob-ic .icon { width: 17px; height: 17px; }
.ob-brand { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ob-brand b { color: var(--ink); font-weight: 800; }
.ob-bell.ob-survey { background: var(--indigo-soft); color: var(--indigo); }
.ob-slide p.ob-weight {
  display: flex; gap: 10px; align-items: flex-start; text-align: left; max-width: 320px; box-sizing: border-box; padding: 10px 12px;
  background: var(--green-soft); border-radius: 12px; color: var(--ink-2); font-size: 13px; line-height: 1.45;
}
.ob-weight .icon { flex: none; width: 18px; height: 18px; margin-top: 1px; color: var(--green); }
.ob-weight b { color: var(--green); }
.ob-slide p { max-width: none; width: 100%; text-align: justify; text-align-last: left; hyphens: auto; -webkit-hyphens: auto; }
.ob-slide p.ob-weight { text-align: justify; text-align-last: left; max-width: none; }

/* Takvimdeki katılım butonları: dar ve taşmaz */
.att-inline { max-width: 100%; min-width: 0; }
.att-inline .att-seg { max-width: 100%; gap: 4px; }
.att-inline .att-opt { padding: 4px 9px; font-size: 12px; gap: 4px; min-width: 0; white-space: nowrap; }
.att-inline .att-opt .icon { width: 12px; height: 12px; }
@media (max-width: 560px) {
  .att-inline .att-opt { padding: 4px 8px; }
  .att-inline .att-opt .icon { display: none; }
}

/* Sınav bilgisinde hata bildirimi */
.report-cta { display: flex; align-items: center; gap: 14px; padding: 16px 20px; flex-wrap: wrap; }
.report-cta-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--surface-2); color: var(--muted); flex: none; }
.report-cta-text { flex: 1 1 220px; min-width: 0; }
.report-cta-text h3 { margin: 0; font-size: 15px; font-weight: 700; }
.report-cta-text p { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.rep-card { width: min(460px, 100%); max-height: calc(100vh - 40px); overflow-y: auto; justify-items: stretch; }
.rep-card .sv-state-ic { justify-self: start; }
.rep-form { display: grid; gap: 8px; }
.rep-types { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; }
.rep-types .field-label { padding: 0; margin-bottom: 4px; }
.rep-opt { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: 12px; background: var(--surface-2); cursor: pointer; font-size: 14.5px; }
.rep-opt:has(input:checked) { border-color: var(--accent); background: var(--surface); box-shadow: var(--ring); }
.rep-opt input { accent-color: var(--accent); }
.rep-select, .rep-input { min-height: 0; resize: none; }
.rep-form .field-label { margin: 6px 0 0; }
.rep-error { margin: 0; color: var(--red, #c0392b); font-size: 13.5px; font-weight: 600; }
.rep-error[hidden] { display: none; }
