/* =========================================================================
   Grit Akademi — taslak arayüz
   -------------------------------------------------------------------------
   Renk yaklaşımı: tek bir sakin mavi ana renk (odaklanma / güven), sıcak
   nötr gri zemin (saf beyaza göre daha az parlaklık kontrastı), ve durum
   renkleri (yeşil / amber / kırmızı) yalnızca veri anlamı taşıdıkları
   yerlerde — dekorasyon olarak değil. Degrade, kutu gölgesi ve ikon
   süslemesi bilinçli olarak minimumda tutuldu.
   ========================================================================= */

:root {
  /* Marka paleti — temadan bağımsız sabitler */
  --color-black: #1A1A1A;
  --color-black-soft: #4A4A4A;
  --color-gold: #C9A227;
  --color-gold-hover: #A9861E;
  --color-gold-light: #F0E4BE;
  --color-white: #FFFFFF;

  /* --- Açık tema (varsayılan). Koyu tema aşağıda html[data-theme="dark"] --- */
  --primary: #C9A227;
  --primary-strong: #A9861E;
  --primary-wash: #F0E4BE;      /* "benim" mesaj balonu, aktif menü, gold tint */
  --primary-ink: #6b5410;       /* --primary-wash üzerindeki yazı */

  --ink: #1A1A1A;
  --ink-2: #4A4A4A;
  --muted: #837e73;
  --faint: #a39c8e;             /* etiket / kicker — muted'dan soluk */

  --line: #E2DED4;
  --line-strong: #d2ccbe;
  --paper: #F7F5F0;             /* sayfa zemini */
  --surface: #FFFFFF;           /* kart / panel / header */
  --surface-2: #fbf9f4;         /* yükseltilmiş / hover nötr yüzey */
  --chip: #e7e3d7;             /* nötr etiket zemini */

  --pos: #3A7D44;  --pos-wash: #e6efe7;  --pos-ink: #2c6034;  --pos-line: #cfe0d1;
  --warn: #A9861E; --warn-wash: #F0E4BE; --warn-ink: #6b5410;
  --neg: #C0392B;  --neg-wash: #f6e6e4;  --neg-ink: #8e3524;

  --backdrop: rgba(26, 26, 26, .4);

  /* Her iki temada da koyu kalan dekoratif yüzeyler için (flip olmaz) */
  --ink-on-dark: #f7f5f0;
  --ink-on-dark-2: #b8b3aa;
  --line-on-dark: #2e2b27;

  --r: 8px;
  --r-sm: 6px;
  --maxw: 1120px;
  --font: 'Hanken Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

/* =========================================================================
   Koyu tema — yalnızca kullanıcının seçtiği durumda (header'daki toggle,
   localStorage). Yalnızca uygulama sayfalarında (body.app) geçerli; landing
   ve auth sayfaları her zaman açık kalır.
   ========================================================================= */
html[data-theme="dark"] body.app {
  --color-gold-hover: #D8B24A;   /* koyu zeminde daha okunur altın (vurgu yazı) */

  --primary: #DCB64A;
  --primary-strong: #C9A227;
  --primary-wash: #322C1B;
  --primary-ink: #E2CD8F;

  --ink: #ECEAE6;
  --ink-2: #B9B8B3;
  --muted: #8A8A86;
  --faint: #6F6F6A;

  --line: #2E2E2C;
  --line-strong: #3F3F3C;
  --paper: #121211;
  --surface: #1C1C1A;
  --surface-2: #272725;
  --chip: #2B2B28;

  --pos: #54A866;  --pos-wash: #1C2A20;  --pos-ink: #8FD0A0;  --pos-line: #2F4635;
  --warn: #DCB64A; --warn-wash: #322C1B; --warn-ink: #E2CD8F;
  --neg: #E0655A;  --neg-wash: #33211F;  --neg-ink: #F0A79F;

  --backdrop: rgba(0, 0, 0, .6);

  color-scheme: dark;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

/* Klavye kullanıcıları için: sekmeye basınca ilk odak burası, header'ı
   atlayıp doğrudan içeriğe gider. Görsel olarak yalnızca odaklanınca çıkar. */
.skip-link {
  position: absolute; top: -100px; left: 12px; z-index: 1000;
  padding: 10px 16px; border-radius: var(--r-sm);
  background: var(--color-gold); color: var(--color-black);
  font-size: .88rem; font-weight: 700;
  box-shadow: 0 8px 24px -8px rgba(26,26,26,.5);
  transition: top .15s ease;
}
.skip-link:focus {
  top: 12px;
  outline: 2px solid var(--color-black); outline-offset: 2px;
}
#main-content:focus { outline: none; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

h1, h2, h3, h4 { line-height: 1.2; font-weight: 600; letter-spacing: -0.012em; }
h1 { font-size: 1.9rem; }
h2 { font-size: 1.3rem; }
h3 { font-size: 1.02rem; }
p { color: var(--ink-2); }
a { color: var(--primary); text-decoration: none; }
strong { font-weight: 600; }

.container { width: min(var(--maxw), 100% - 40px); margin-inline: auto; }
body.app .container { --maxw: 1360px; }
.muted { color: var(--muted); }

svg.ic { width: 1em; height: 1em; display: inline-block; vertical-align: -0.14em; }

/* ---------- Buttons ---------- */
.btn {
  --h: 40px;
  display: inline-flex; align-items: center; gap: 7px;
  height: var(--h); padding: 0 16px;
  border-radius: var(--r-sm); border: 1px solid transparent;
  font: inherit; font-weight: 500; font-size: .93rem; cursor: pointer;
  transition: background .12s, border-color .12s, color .12s;
  white-space: nowrap;
}
.btn-primary { background: var(--ink); color: var(--surface); }
.btn-primary:hover { opacity: .88; }
.btn-gold { background: var(--color-gold); color: var(--color-black); font-weight: 600; }
.btn-gold:hover { background: var(--color-gold-hover); color: var(--color-black); }
.btn-line { background: transparent; border-color: var(--line-strong); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-danger { background: var(--neg); color: var(--color-white); }
.btn-danger:hover { filter: brightness(.88); }
.btn-sm { --h: 34px; padding: 0 12px; font-size: .88rem; }

/* sınav türü etiketi */
.tag2 { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .03em; padding: 2px 8px; border-radius: 999px; vertical-align: 1px; }
.tag2--tyt { background: var(--primary-wash); color: var(--warn-ink); }
.tag2--ayt { background: var(--chip); color: var(--ink-2); }
.tag2--ydt { background: var(--pos-wash); color: var(--pos); }

/* ---------- Header ---------- */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 30;
}
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { display: inline-flex; align-items: center; font-weight: 700; font-size: 1.06rem; letter-spacing: -0.02em; color: var(--ink); }
.brand img { height: 48px; width: auto; display: block; }
.brand .brand-dark { display: none; }
html[data-theme="dark"] body.app .brand .brand-light { display: none; }
html[data-theme="dark"] body.app .brand .brand-dark { display: block; }
.site-nav { display: flex; align-items: center; gap: 24px; }
.site-nav > a:not(.btn) { color: var(--ink-2); font-size: .93rem; }
.site-nav > a:not(.btn):hover { color: var(--ink); }

/* app navbar (giriş yapmış) */
.site-header--app .header-inner { height: 66px; justify-content: flex-start; gap: 20px; }
.site-header--app .brand img { height: 48px; }
.hdr-sep { width: 1px; height: 26px; background: var(--line); flex: none; }
.hdr-context { font-size: .92rem; color: var(--muted); }
.hdr-right { margin-left: auto; display: flex; align-items: center; gap: 14px; }

/* üst menü breadcrumb: "Koç paneli › Öğrenciler" */
.hdr-crumbs { display: flex; align-items: center; gap: 7px; min-width: 0; }
.hdr-crumbs .hc-root { font-size: .92rem; color: var(--muted); white-space: nowrap; }
.hdr-crumbs .hc-sep { font-size: 15px; color: var(--line-strong); flex: none; }
.hdr-crumbs .hc-cur {
  font-size: .92rem; font-weight: 600; color: var(--ink);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* koç: üst menüde öğrenci arama */
.hdr-search {
  display: flex; align-items: center; gap: 8px;
  height: 38px; padding: 0 13px;
  border: 1px solid var(--line-strong); border-radius: 999px;
  background: var(--surface); color: var(--muted);
  transition: border-color .12s, box-shadow .12s;
}
.hdr-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--primary-wash); }
.hdr-search .ic { font-size: 15px; color: var(--muted); flex: none; }
.hdr-search input[type=search] {
  width: 168px; height: 100%; padding: 0; margin: 0;
  border: 0; border-radius: 0; outline: 0; background: transparent;
  font: inherit; font-size: .88rem; color: var(--ink);
  appearance: none; -webkit-appearance: none;
  transition: width .12s;
}
.hdr-search input[type=search]:focus { border: 0; box-shadow: none; }
.hdr-search input[type=search]::placeholder { color: var(--muted); }
.hdr-search input[type=search]::-webkit-search-decoration,
.hdr-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

.hdr-search-wrap { position: relative; }
.hdr-ac {
  position: absolute; top: calc(100% + 6px); left: 0;
  width: 288px; max-height: 320px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-sm); box-shadow: 0 14px 34px -14px rgba(26, 26, 26, .3);
  padding: 5px; z-index: 40;
}
.hdr-ac a {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 6px; color: var(--ink);
}
.hdr-ac a:hover, .hdr-ac a.on { background: var(--primary-wash); }
.hdr-ac-av {
  width: 28px; height: 28px; flex: none; border-radius: 50%;
  background: var(--color-black); color: var(--color-gold);
  display: grid; place-items: center; font-size: .72rem; font-weight: 600;
}
.hdr-ac-main { min-width: 0; display: flex; flex-direction: column; }
.hdr-ac-name { font-size: .88rem; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hdr-ac-sub { font-size: .76rem; color: var(--muted); }

/* bildirim çanı */
.notif { position: relative; }
.notif-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); cursor: pointer;
}
.notif-btn:hover { color: var(--ink); border-color: var(--line-strong); }
.notif-btn .ic { width: 17px; height: 17px; }

/* header'daki her zaman erişilebilir GRIT AI düğmesi (öğrenci) */
.hdr-ai-btn {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  height: 36px; padding: 0 13px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: var(--surface);
  color: var(--ink); font-size: .84rem; font-weight: 600; text-decoration: none;
}
.hdr-ai-btn:hover { background: var(--paper); }
.hdr-ai-btn.is-active { background: var(--primary-wash); border-color: var(--primary); color: var(--primary-ink); }
.hdr-ai-btn .ic { width: 16px; height: 16px; color: var(--primary); }
.hdr-ai-btn.is-active .ic { color: var(--primary-ink); }
@media (max-width: 620px) { .hdr-ai-btn span { display: none; } .hdr-ai-btn { padding: 0; width: 36px; justify-content: center; } }

/* tema değiştirme düğmesi */
.theme-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--paper); color: var(--ink-2); cursor: pointer; flex: none;
}
.theme-toggle:hover { color: var(--ink); border-color: var(--line-strong); }
.theme-toggle .ic { width: 17px; height: 17px; }
.theme-toggle .theme-ic-light { display: none; }
html[data-theme="dark"] .theme-toggle .theme-ic-dark { display: none; }
html[data-theme="dark"] .theme-toggle .theme-ic-light { display: inline-block; }
.notif-badge {
  position: absolute; top: -3px; right: -3px; min-width: 16px; height: 16px;
  padding: 0 4px; border-radius: 999px; background: var(--neg); color: #fff;
  font-size: .66rem; font-weight: 700; line-height: 16px; text-align: center;
}
.notif-panel {
  position: absolute; top: calc(100% + 8px); right: 0; z-index: 200;
  width: 340px; max-width: calc(100vw - 32px);
  background: var(--surface); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px -14px rgba(26, 26, 26, .28), 0 3px 10px -3px rgba(26, 26, 26, .1);
  overflow: hidden;
}
.notif-panel-head {
  padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink);
}
.notif-list { max-height: 360px; overflow-y: auto; }
.notif-item {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.notif-item:last-child { border-bottom: 0; }
.notif-item:hover { background: var(--paper); }
.notif-item.is-unread { background: var(--surface-2); }
.notif-dot { width: 8px; height: 8px; border-radius: 50%; flex: none; margin-top: 6px; background: var(--line-strong); }
.notif-dot--assignment_new { background: var(--color-gold); }
.notif-dot--assignment_done { background: var(--pos); }
.notif-dot--exam_note { background: var(--color-gold-hover); }
.notif-dot--focus_set { background: #6c7ed6; }
.notif-dot--message_new { background: #2f8a4e; }
.notif-sparkle { width: 16px; height: 16px; flex: none; margin-top: 2px; color: var(--color-gold-hover); }
.notif-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.notif-text { font-size: .84rem; line-height: 1.35; color: var(--ink); }
.notif-time { font-size: .74rem; color: var(--muted); }
.notif-empty { padding: 22px 16px; text-align: center; font-size: .84rem; }

.grit-pill {
  display: flex; align-items: center; gap: 8px;
  height: 36px; padding: 0 12px 0 13px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
  font-size: .84rem; color: var(--ink-2); cursor: help; position: relative;
}
.grit-pill[data-tip]::after {
  content: attr(data-tip);
  position: absolute; top: calc(100% + 9px); right: 0;
  width: max-content; max-width: 280px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--color-black); color: var(--ink-on-dark);
  font-size: .78rem; font-weight: 400; line-height: 1.45; text-align: left;
  white-space: normal;
  box-shadow: 0 10px 30px -10px #1a1a1a55;
  opacity: 0; visibility: hidden; transform: translateY(-3px);
  transition: opacity .14s, transform .14s, visibility .14s;
  z-index: 60; pointer-events: none;
}
.grit-pill[data-tip]::before {
  content: ""; position: absolute; top: calc(100% + 3px); right: 18px;
  border: 6px solid transparent; border-bottom-color: var(--color-black);
  opacity: 0; visibility: hidden; transition: opacity .14s, visibility .14s; z-index: 60;
}
.grit-pill[data-tip]:hover::after,
.grit-pill[data-tip]:focus-visible::after,
.grit-pill[data-tip]:hover::before,
.grit-pill[data-tip]:focus-visible::before {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.grit-pill .gp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold); flex: none; }
.grit-pill b { font-size: .92rem; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.grit-pill .gp-delta { display: inline-flex; align-items: center; gap: 3px; font-size: .78rem; font-weight: 600; color: var(--pos); }
.grit-pill .gp-delta.neg { color: var(--neg); }
.grit-pill .gp-delta .ic { font-size: 13px; }

.hdr-user { display: flex; align-items: center; gap: 7px; color: var(--ink); }
.hdr-user:hover { color: var(--color-gold-hover); }
.hdr-user .hdr-chev { font-size: 15px; color: var(--muted); }

@media (max-width: 1040px) {
  .hdr-search input[type=search] { width: 120px; }
}
@media (max-width: 860px) {
  .hdr-crumbs .hc-root, .hdr-crumbs .hc-sep { display: none; }
  .hdr-search input[type=search] { width: 0; }
  .hdr-search:focus-within input[type=search] { width: 150px; }
}
@media (max-width: 760px) {
  .hdr-context, .grit-pill .gp-k, .hdr-user .hdr-chev { display: none; }
  .site-header--app .header-inner { gap: 12px; }
  .hdr-right { gap: 10px; }
}
@media (max-width: 560px) {
  .hdr-sep { display: none; }
  .btn-gold.btn-sm span:not(.ic) { display: none; }
  .hdr-crumbs .hc-cur { max-width: 40vw; }
}

/* ---------- Footer ---------- */
.site-footer { margin-top: auto; border-top: 1px solid var(--line); background: var(--surface); }
.footer-inner {
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 6px 18px;
  padding: 18px 0; font-size: .86rem; color: var(--muted);
}
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); }
.footer-links a:hover { color: var(--ink); }

/* bilgi / yasal sayfaları */
.legal { max-width: 720px; margin-inline: auto; padding: 32px 0 64px; }
.legal-back { display: inline-block; font-size: .85rem; color: var(--muted); margin-bottom: 18px; }
.legal-back:hover { color: var(--ink); }
.legal h1 { font-size: 1.7rem; margin-bottom: 6px; }
.legal-meta { font-size: .82rem; color: var(--muted); margin-bottom: 26px; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.legal h2 { font-size: 1.05rem; margin: 26px 0 8px; }
.legal p { color: var(--ink-2); margin-bottom: 10px; line-height: 1.65; }
.legal ul { margin: 0 0 12px; padding-left: 20px; }
.legal li { color: var(--ink-2); margin-bottom: 6px; line-height: 1.6; }
.legal a { color: var(--primary); }
.legal a:hover { color: var(--primary-strong); }

/* Hata sayfaları (404 / 500) — base'i genişletmez; her iki temada da koyu
   dekoratif tek görünüm (flip olmayan token'lar). */
body.err {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(135% 120% at 14% 0%, #2b2620 0%, var(--color-black) 60%);
  color: var(--ink-on-dark);
  -webkit-font-smoothing: antialiased;
}
.err-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 96px 24px 72px;
  box-sizing: border-box;
}
.err-wrap::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent 72%);
}
.err-brand {
  position: absolute; top: 28px; left: 28px; line-height: 0;
  background: var(--color-white); border-radius: 12px; padding: 8px 10px;
  box-shadow: 0 16px 40px -18px rgba(0,0,0,.6);
}
.err-brand img { height: 30px; width: auto; display: block; }

.err-content { max-width: 460px; text-align: center; }

.err-num {
  position: relative;
  margin: 0 0 6px;
  font-size: clamp(6.5rem, 24vw, 12rem);
  font-weight: 700;
  letter-spacing: -0.05em;
  line-height: .9;
  color: var(--color-gold-light);
}
/* arka planda büyük, çok soluk dış-çizgili kopya — derinlik hissi */
.err-num span {
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(1.9);
  color: transparent;
  -webkit-text-stroke: 2px var(--ink-on-dark);
  opacity: .06; z-index: -1;
  pointer-events: none;
}
.err-content h1 {
  font-size: clamp(1.3rem, 4vw, 1.65rem);
  margin: 0 0 12px;
  color: var(--ink-on-dark);
  letter-spacing: -0.01em;
}
.err-lead {
  margin: 0 auto 28px;
  max-width: 40ch;
  color: var(--ink-on-dark-2);
  line-height: 1.6;
  font-size: .96rem;
}
.err-actions {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.err-actions .btn { min-width: 140px; justify-content: center; }
.err-ghost {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 120px; padding: 10px 20px;
  font: inherit; font-weight: 600; font-size: .92rem;
  color: var(--ink-on-dark);
  background: transparent;
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color .15s ease, background-color .15s ease;
}
.err-ghost:hover { background: var(--line-on-dark); border-color: var(--color-gold); }

@media (max-width: 480px) {
  .err-brand { top: 20px; left: 20px; }
  .err-actions { flex-direction: column; }
  .err-actions .btn, .err-ghost { width: 100%; }
}

/* =========================================================================
   Landing (1a — skor merkezli)
   ========================================================================= */
.landing { background: var(--paper); }
.lp-wrap { max-width: 1120px; margin-inline: auto; padding-inline: 40px; }
.btn-on-dark { border-color: #45413b; color: var(--ink-on-dark); }
.btn-on-dark:hover { border-color: #837e73; }

/* header */
.lp-header { background: var(--color-black); color: var(--ink-on-dark); }
.lp-header-inner { height: 68px; display: flex; align-items: center; justify-content: space-between; }
.lp-word { display: inline-flex; align-items: center; }
.lp-word img { width: 40px; height: 40px; display: block; }
.lp-nav { display: flex; align-items: center; gap: 26px; }
.lp-nav > a:not(.btn) { color: var(--ink-on-dark-2); font-size: .9rem; }
.lp-nav > a:not(.btn):hover { color: var(--ink-on-dark); }

/* hero */
.lp-hero { position: relative; background: var(--color-black); color: var(--ink-on-dark); padding: 76px 0 84px; overflow: hidden; }
.lp-hero-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px);
  background-size: 72px 72px;
}
.lp-hero-grid { position: relative; display: grid; grid-template-columns: 1.02fr .98fr; gap: 72px; align-items: center; }
.lp-eyebrow { display: inline-flex; align-items: center; gap: 9px; font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold); }
.lp-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--color-gold); }
.lp-hero h1 { font-size: clamp(2.6rem, 5vw, 3.75rem); line-height: 1.04; letter-spacing: -0.03em; font-weight: 700; margin: 20px 0 0; }
.lp-lead { font-size: 1.15rem; line-height: 1.55; color: var(--ink-on-dark-2); max-width: 44ch; margin: 22px 0 0; }
.lp-cta { display: flex; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.lp-cta .btn { --h: 48px; padding: 0 24px; font-size: .97rem; font-weight: 700; }
.lp-fine { font-size: .84rem; color: var(--muted); margin-top: 16px; }

/* skor kartı */
.lp-score { background: var(--paper); color: var(--ink); border-radius: 12px; padding: 26px 26px 22px; box-shadow: 0 30px 70px -30px #00000099; }
.lp-score-top { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.lp-score-top b { font-size: .95rem; font-weight: 700; }
.lp-score-top span { font-size: .82rem; color: var(--muted); }
.lp-score-num { display: flex; align-items: flex-end; gap: 20px; }
.lp-big { font-size: 4.75rem; font-weight: 800; letter-spacing: -0.04em; line-height: .9; font-variant-numeric: tabular-nums; }
.lp-chip-pos { display: inline-flex; align-items: center; gap: 5px; font-size: .88rem; font-weight: 600; color: var(--pos); background: var(--pos-wash); padding: 3px 10px; border-radius: 999px; }
.lp-score-sub { display: block; font-size: .8rem; color: var(--muted); margin-top: 5px; }
.lp-bars { display: flex; align-items: flex-end; gap: 10px; height: 92px; margin: 24px 0 10px; }
.lp-bars i { flex: 1; background: var(--line); border-radius: 3px; }
.lp-bars i.gold { background: var(--color-gold); }
.lp-bars i.ink { background: var(--color-black); }
.lp-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; font-size: .72rem; color: var(--muted); text-align: center; }
.lp-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-radius: 8px; overflow: hidden; margin-top: 22px; }
.lp-mini > div { background: var(--surface); padding: 13px 14px; }
.lp-mini span { display: block; font-size: .75rem; color: var(--muted); }
.lp-mini b { font-size: 1.18rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* rakam şeridi */
.lp-strip { background: var(--color-gold); color: var(--color-black); }
.lp-strip-grid { display: grid; grid-template-columns: repeat(3, 1fr); }
.lp-strip-grid > div { padding: 22px 0; }
.lp-strip-grid > div + div { padding-left: 32px; border-left: 1px solid #00000022; }
.lp-strip-grid b { font-size: 1.03rem; font-weight: 700; }
.lp-strip-grid span { display: block; font-size: .88rem; color: #5c4e14; }

/* section */
.lp-section { padding: 84px 0; }
.lp-head { max-width: 52ch; margin-bottom: 44px; }
.lp-kicker { font-size: .78rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--color-gold-hover); }
.lp-head h2 { font-size: clamp(1.9rem, 3.6vw, 2.25rem); line-height: 1.14; letter-spacing: -0.025em; margin: 12px 0 10px; }
.lp-head p { font-size: 1.06rem; color: var(--ink-2); }

.lp-feats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.lp-feats article { background: var(--surface); padding: 28px 26px 32px; }
.lp-feat-ic { width: 38px; height: 38px; display: block; margin-bottom: 14px; color: var(--color-gold-hover); }
.lp-feats article:hover .lp-feat-ic { color: var(--color-gold); }
.lp-n { font-size: .75rem; font-weight: 700; color: var(--color-gold); letter-spacing: .08em; }
.lp-feats h3 { font-size: 1.18rem; font-weight: 700; margin: 10px 0 8px; letter-spacing: -0.015em; }
.lp-feats p { font-size: .93rem; line-height: 1.6; color: var(--ink-2); }

/* GRIT formülü diyagramı */
.lp-formula { background: var(--surface); border-block: 1px solid var(--line); }
.lp-formula-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.lp-formula .lp-head { margin-bottom: 0; }
.lp-formula-viz { display: flex; align-items: center; gap: 34px; flex-wrap: wrap; }
.lp-donut { width: 186px; height: 186px; flex: none; }
.lp-donut circle { fill: none; stroke-width: 17; }
.lp-donut .s1, .lp-formula-legend i.s1 { stroke: #C9A227; background: #C9A227; }
.lp-donut .s2, .lp-formula-legend i.s2 { stroke: #A9861E; background: #A9861E; }
.lp-donut .s3, .lp-formula-legend i.s3 { stroke: #6E665A; background: #6E665A; }
.lp-donut .s4, .lp-formula-legend i.s4 { stroke: #8B8375; background: #8B8375; }
.lp-donut .s5, .lp-formula-legend i.s5 { stroke: #A9A192; background: #A9A192; }
.lp-donut .s6, .lp-formula-legend i.s6 { stroke: #C6BFB0; background: #C6BFB0; }
.lp-donut-c  { text-anchor: middle; font: 800 22px var(--font); fill: var(--ink); }
.lp-donut-c2 { text-anchor: middle; font: 700 9px var(--font); fill: var(--muted); letter-spacing: .12em; }
.lp-formula-legend { list-style: none; display: flex; flex-direction: column; gap: 12px; min-width: 220px; flex: 1; }
.lp-formula-legend li { display: flex; align-items: center; gap: 11px; font-size: .92rem; color: var(--ink-2); }
.lp-formula-legend i { width: 11px; height: 11px; border-radius: 3px; flex: none; }
.lp-formula-legend b { margin-left: auto; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }

/* GritAI */
.lp-ai { background: var(--surface); border-block: 1px solid var(--line); padding: 70px 0; }
.lp-ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.lp-badge { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--color-gold-hover); background: var(--primary-wash); padding: 4px 10px; border-radius: 999px; }
.lp-ai-grid h2 { font-size: clamp(1.7rem, 3.2vw, 2rem); line-height: 1.15; letter-spacing: -0.025em; margin: 16px 0 12px; }
.lp-ai-grid p { font-size: 1.03rem; line-height: 1.6; color: var(--ink-2); }
.lp-ai-card { border: 1px solid var(--line); border-radius: var(--r); background: var(--paper); padding: 22px 24px; }
.lp-ai-label { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 14px; }
.lp-ai-card p { font-size: .97rem; line-height: 1.65; color: var(--ink); border-left: 2px solid var(--color-gold); padding-left: 16px; }

/* paketler */
.lp-plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 18px; align-items: start; }
.lp-plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 28px 26px 30px; position: relative; }
.lp-plan > b { font-size: 1.06rem; font-weight: 700; }
.lp-plan-sub { font-size: .9rem; color: var(--muted); margin: 6px 0 20px; }
.lp-price { font-size: 2.35rem; font-weight: 800; letter-spacing: -0.03em; }
.lp-price small { font-size: .95rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.lp-plan-list { display: flex; flex-direction: column; gap: 10px; font-size: .93rem; color: var(--ink-2); margin: 22px 0 0; padding-top: 22px; border-top: 1px solid var(--line); }
.lp-plan .btn { width: 100%; justify-content: center; margin-top: 26px; }
.lp-plan--hot { background: var(--color-black); color: var(--ink-on-dark); border-color: var(--color-black); }
.lp-plan--hot .lp-plan-sub, .lp-plan--hot .lp-plan-list { color: var(--ink-on-dark-2); }
.lp-plan--hot .lp-plan-list { border-color: var(--line-on-dark); }
.lp-plan-tag { position: absolute; top: -11px; left: 26px; background: var(--color-gold); color: var(--color-black); font-size: .72rem; font-weight: 700; letter-spacing: .05em; padding: 4px 11px; border-radius: 999px; }
.lp-plan-duration { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.lp-plan--hot .lp-plan-duration { color: var(--ink-on-dark-2); }
.lp-plan-more { display: inline-block; margin-top: 14px; font-size: .84rem; color: var(--ink-2); text-decoration: underline; }
.lp-plan--hot .lp-plan-more { color: var(--ink-on-dark-2); }
.lp-plan-more:hover { color: var(--ink); }
.lp-plan--hot .lp-plan-more:hover { color: var(--ink-on-dark); }

/* SSS */
.lp-faq { background: var(--surface); border-top: 1px solid var(--line); padding: 76px 0; }
.lp-faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.lp-faq-grid > h2 { font-size: clamp(1.7rem, 3.2vw, 2rem); line-height: 1.14; letter-spacing: -0.025em; }
.lp-faq details { border-top: 1px solid var(--line); padding: 18px 0; }
.lp-faq details:last-child { border-bottom: 1px solid var(--line); }
.lp-faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; gap: 20px; font-size: 1.03rem; font-weight: 600; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary span { color: var(--color-gold); font-weight: 400; }
.lp-faq details[open] summary span { transform: rotate(45deg); }
.lp-faq details p { font-size: .95rem; line-height: 1.65; color: var(--ink-2); margin: 12px 0 0; max-width: 60ch; }

/* kapanış */
.lp-close { background: var(--color-black); color: var(--ink-on-dark); padding: 82px 0; }
.lp-close-inner { display: flex; justify-content: space-between; align-items: center; gap: 48px; flex-wrap: wrap; }
.lp-close h2 { font-size: clamp(2rem, 4vw, 2.4rem); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink-on-dark); max-width: 18ch; }
.lp-close p { font-size: 1.03rem; color: var(--ink-on-dark-2); margin-top: 12px; max-width: 46ch; }

.lp-footer { background: var(--color-black); color: var(--ink-on-dark); padding-top: 54px; border-top: 1px solid var(--line-on-dark); }
.lp-footer-top {
  display: grid; grid-template-columns: 1.35fr 2fr; gap: 48px;
  padding-bottom: 40px; border-bottom: 1px solid var(--line-on-dark);
}
.lp-footer-brand .lp-word { margin-bottom: 14px; }
.lp-footer-brand p { font-size: .92rem; line-height: 1.6; max-width: 36ch; margin-bottom: 18px; color: var(--ink-on-dark-2); }
.lp-footer-cols { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; }
.lp-footer-cols h4 {
  font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: #9a9488; margin-bottom: 10px;
}
.lp-footer-cols a { display: block; font-size: .9rem; color: var(--ink-on-dark); padding: 5px 0; }
.lp-footer-cols a:hover { color: var(--color-gold); }
.lp-footer-bottom {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px;
  padding: 20px 0 28px; font-size: .82rem; color: var(--ink-on-dark-2);
}

@media (max-width: 760px) {
  .lp-footer-top { grid-template-columns: 1fr; gap: 34px; }
  .lp-footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 440px) {
  .lp-footer-cols { grid-template-columns: 1fr; gap: 22px; }
}

@media (max-width: 900px) {
  .lp-wrap { padding-inline: 22px; }
  .lp-hero-grid, .lp-ai-grid, .lp-faq-grid, .lp-close-inner, .lp-formula-grid { grid-template-columns: 1fr; gap: 40px; }
  .lp-formula-viz { gap: 28px; }
  .lp-feats, .lp-plans, .lp-strip-grid { grid-template-columns: 1fr; }
  .lp-strip-grid > div + div { padding-left: 0; border-left: 0; border-top: 1px solid #00000022; }
  .lp-nav > a:not(.btn) { display: none; }
  .lp-section { padding: 56px 0; }
}

/* ---------- Landing: giriş + scroll animasyonları ----------
   `.lp-anim` yalnızca hareket kısıtı yoksa <html>'e eklenir (landing.html head'i).
   Kısıt varsa hiçbir kural devreye girmez; her şey normal görünür.               */

/* hero: açılışta yukarı kayarak gelir */
.lp-anim .lp-hero-grid > div { opacity: 0; animation: lp-in .6s cubic-bezier(.2,.7,.3,1) forwards; }
.lp-anim .lp-hero-grid > div:nth-child(2) { animation-delay: .1s; }
@keyframes lp-in { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* hero skor kartı: açılışta aşağıdan yukarı, hafif ölçekle "açılır" */
.lp-anim .lp-score {
  opacity: 0; transform: translateY(16px) scale(.96); transform-origin: 50% 0;
  transition: opacity .6s cubic-bezier(.2,.7,.3,1), transform .6s cubic-bezier(.2,.7,.3,1);
}
.lp-anim .lp-score.is-live { opacity: 1; transform: none; }
.lp-anim .lp-score .lp-score-top,
.lp-anim .lp-score .lp-score-num,
.lp-anim .lp-score .lp-days { opacity: 0; transform: translateY(6px); transition: opacity .45s ease, transform .45s ease; }
.lp-anim .lp-score.is-live .lp-score-top { opacity: 1; transform: none; transition-delay: .12s; }
.lp-anim .lp-score.is-live .lp-score-num { opacity: 1; transform: none; transition-delay: .2s; }
.lp-anim .lp-score.is-live .lp-days { opacity: 1; transform: none; transition-delay: .72s; }

/* hero skor kartı: çubuklar büyür, rozet + mini şerit gecikmeli belirir */
.lp-anim .lp-bars i { transform: scaleY(0); transform-origin: bottom; transition: transform .7s cubic-bezier(.2,.7,.3,1); }
.lp-anim .lp-score.is-live .lp-bars i { transform: scaleY(1); }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(1) { transition-delay: .30s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(2) { transition-delay: .36s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(3) { transition-delay: .42s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(4) { transition-delay: .48s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(5) { transition-delay: .54s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(6) { transition-delay: .60s; }
.lp-anim .lp-score.is-live .lp-bars i:nth-child(7) { transition-delay: .66s; }
.lp-anim .lp-chip-pos { opacity: 0; transform: translateY(3px); transition: opacity .4s ease, transform .4s ease; }
.lp-anim .lp-score.is-live .lp-chip-pos { opacity: 1; transform: none; transition-delay: .9s; }
.lp-anim .lp-mini { opacity: 0; transition: opacity .5s ease; }
.lp-anim .lp-score.is-live .lp-mini { opacity: 1; transition-delay: 1s; }

/* scroll ile beliren öğeler */
.lp-anim .lp-strip-grid > div,
.lp-anim .lp-section > .lp-wrap > .lp-head,
.lp-anim .lp-formula-viz,
.lp-anim .lp-feats > article,
.lp-anim .lp-ai-grid > div,
.lp-anim .lp-plans > .lp-plan,
.lp-anim .lp-faq-grid > h2,
.lp-anim .lp-faq-grid > div > details,
.lp-anim .lp-close-inner > div {
  opacity: 0; transform: translateY(18px);
  transition: opacity .55s ease, transform .55s ease;
}
.lp-anim .in { opacity: 1 !important; transform: none !important; }

/* özellik kartı ikonları: görünürken çizilir */
.lp-anim .lp-feats .lp-feat-ic > * { stroke-dasharray: 1; stroke-dashoffset: 1; }
.lp-anim .lp-feats article.in .lp-feat-ic > * { animation: lp-draw .9s ease .15s forwards; }
@keyframes lp-draw { to { stroke-dashoffset: 0; } }

/* GRIT halkası: dönerek gelir, açıklama satırları kademeli */
.lp-anim .lp-donut-spin {
  opacity: 0; transform: rotate(-16deg) scale(.9);
  transform-box: fill-box; transform-origin: 50% 50%;
  transition: opacity .7s ease, transform .8s cubic-bezier(.2,.7,.3,1);
}
.lp-anim .lp-formula-viz.in .lp-donut-spin { opacity: 1; transform: none; }
.lp-anim .lp-formula-legend li { opacity: 0; transform: translateX(8px); transition: opacity .4s ease, transform .4s ease; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li { opacity: 1; transform: none; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li:nth-child(2) { transition-delay: .07s; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li:nth-child(3) { transition-delay: .14s; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li:nth-child(4) { transition-delay: .21s; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li:nth-child(5) { transition-delay: .28s; }
.lp-anim .lp-formula-viz.in .lp-formula-legend li:nth-child(6) { transition-delay: .35s; }

/* =========================================================================
   Panel (app)
   ========================================================================= */
body.app { background: var(--paper); }
.app-shell { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 32px 0 72px; align-items: start; }

.sidebar {
  position: sticky; top: 86px;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); padding: 16px 12px;
}
.sb-user { display: flex; align-items: center; gap: 11px; padding: 8px; margin-bottom: 12px; border-bottom: 1px solid var(--line); border-radius: 8px; color: inherit; transition: background .12s; }
a.sb-user:hover { background: var(--primary-wash); }
.avatar {
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: var(--primary-wash); color: var(--primary);
  display: grid; place-items: center; font-size: .78rem; font-weight: 600;
}
.avatar--dark { background: var(--color-black); color: var(--color-gold); }
.sb-user b { display: block; font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-user span { font-size: .78rem; color: var(--muted); }

.sb-group { margin-bottom: 18px; }
.sb-group:last-child { margin-bottom: 0; }
.sb-group-label {
  display: block; padding: 0 12px 6px;
  font-size: .68rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint);
}
.sb-nav { display: flex; flex-direction: column; gap: 2px; }
.sb-nav a {
  position: relative;
  display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 12px; border-radius: 7px;
  color: var(--ink-2); font-size: .92rem;
}
.sb-nav a .ic { font-size: 18px; color: var(--faint); }
.sb-nav a:hover { background: var(--paper); color: var(--ink); }
.sb-nav a.active { background: var(--primary-wash); color: var(--ink); font-weight: 600; }
.sb-nav a.active .ic { color: var(--color-gold-hover); }
.sb-nav a .sb-count { margin-left: auto; font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; font-weight: 400; }
.sb-badge {
  margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--color-gold); color: var(--color-white);
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}

.sb-logout { display: flex; }
.sb-logout button {
  flex: 1; display: flex; align-items: center; gap: 11px;
  height: 38px; padding: 0 12px; border: 0; border-radius: 7px;
  background: transparent; color: var(--muted); font-size: .92rem; cursor: pointer;
}
.sb-logout button .ic { font-size: 18px; color: var(--faint); }
.sb-logout button:hover { background: var(--paper); color: var(--neg); }
.sb-logout button:hover .ic { color: var(--neg); }

.sb-card { margin: 8px 2px 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper); }
.sb-card span { display: block; font-size: .74rem; color: var(--muted); margin-bottom: 2px; }
.sb-card b { display: block; font-size: .9rem; font-weight: 600; margin-bottom: 10px; }
.sb-card .btn { width: 100%; justify-content: center; }

.sb-card--coach .scc-row { display: flex; align-items: center; gap: 8px; }
.sb-card--coach .scc-row b { margin-bottom: 0; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.scc-contact {
  flex: none; display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  border: 1px solid var(--line-strong); color: var(--muted);
  transition: color .12s, border-color .12s, background .12s;
}
.scc-contact:hover { color: var(--ink); border-color: var(--ink); background: var(--surface-2); }
.scc-contact .ic { width: 17px; height: 17px; }

.app-main { min-width: 0; }
.page-head {
  display: flex; align-items: flex-start; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; padding-bottom: 22px; margin-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.page-head h1 { font-size: 1.55rem; }
.page-head .sub { color: var(--muted); font-size: .95rem; margin-top: 3px; }
.page-head .ph-actions { display: flex; gap: 10px; }

/* genel bakış üst blok: başlık + sayı şeridi tek beyaz kart */
.ov-hero {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); overflow: hidden; margin-bottom: 22px;
}
.ov-hero-head {
  display: flex; align-items: center; justify-content: space-between;
  min-height: 76px;
  gap: 16px; flex-wrap: wrap;
  padding: 18px 22px; border-bottom: 1px solid var(--line);
}
.ov-hero-head h1 { font-size: 1.55rem; line-height: 1.2; }
.ov-hero-head .sub { color: var(--muted); font-size: .95rem; margin-top: 3px; line-height: 1.3; }
.statrow--flush { border: 0; border-radius: 0; margin: 0; }
.ov-hero-actions { display: flex; gap: 10px; flex-shrink: 0; }

/* koç: öğrenci inceleme yatay sekmeleri */
.cs-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .85rem; color: var(--muted); margin-bottom: 12px;
}
.cs-back:hover { color: var(--ink); }
.cs-back .ic { width: 15px; height: 15px; }
.cs-tabs {
  display: flex; flex-wrap: wrap; gap: 2px;
  padding: 4px 14px; border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.cs-tabs a {
  padding: 9px 12px; font-size: .86rem; color: var(--ink-2);
  border-bottom: 2px solid transparent; margin-bottom: -1px;
}
.cs-tabs a:hover { color: var(--ink); }
.cs-tabs a.on { color: var(--ink); font-weight: 600; border-bottom-color: var(--color-gold); }
.cs-tab-badge {
  display: inline-block; min-width: 16px; height: 16px; margin-left: 5px; padding: 0 4px;
  border-radius: 8px; background: var(--color-gold); color: var(--color-white);
  font-size: .66rem; font-weight: 700; line-height: 16px; text-align: center; vertical-align: 1px;
}
.items .it-actions { display: flex; gap: 12px; font-size: .82rem; flex-shrink: 0; }
.items .it-actions a.neg { color: var(--neg); }

/* koç: öğrenci listesi arama / filtre çubuğu */
.cs-filterbar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 16px; }
.cs-filterbar .tt-search { flex: 0 1 240px; }
.cs-filterbar .seg { flex: none; }

/* sıralanabilir tablo başlıkları */
th.cs-sort { padding: 0; }
th.cs-sort a {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 11px 14px; color: inherit; white-space: nowrap;
}
th.cs-sort.num a { flex-direction: row-reverse; }
th.cs-sort a:hover { color: var(--ink); }
.cs-arrow { font-size: .7rem; line-height: 1; }
.cs-arrow--mut { color: var(--line-strong); }
th.cs-sort.is-sorted a { color: var(--ink); font-weight: 600; }
th.cs-sort.is-sorted .cs-arrow { color: var(--color-gold-hover); }
.wf-form .field { margin-bottom: 10px; }
.statrow {
  display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--surface); overflow: hidden; margin-bottom: 22px;
}
.statrow--3 { grid-template-columns: repeat(3, 1fr); }
.statrow--card { border: 1px solid var(--line); border-radius: var(--r); }
.stat {
  position: relative;
  padding: 16px 20px 14px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  min-height: 104px;
}
.stat + .stat::before {
  content: ""; position: absolute; left: 0; top: 14px; bottom: 14px;
  width: 1px; background: var(--line);
}
/* ov-hero başlığının altındaki sayı şeridi: dikeyde ortala, fazla boşluğu kırp */
.ov-hero .stat { min-height: 82px; justify-content: center; padding-top: 13px; padding-bottom: 13px; }
.s-k { display: block; font-size: .78rem; color: var(--muted); line-height: 1.2; }
.s-v {
  display: flex; align-items: baseline; justify-content: center;
  gap: 8px; font-size: 1.55rem; font-weight: 700; letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums; margin-top: 4px; line-height: 1.2;
}
.s-v small { font-size: .82rem; font-weight: 400; color: var(--muted); }
.s-v .off { color: var(--line-strong); }
.s-v em { font-style: normal; font-size: .78rem; font-weight: 600; }
.s-sub { display: block; font-size: .78rem; color: var(--muted); margin-top: 4px; text-align: center; line-height: 1.3; }
.s-sub.pos, .s-v em.pos { color: var(--pos); }
.s-sub.warn, .s-v em.warn { color: var(--warn); }
.s-sub.neg, .s-v em.neg { color: var(--neg); }
.s-link { display: inline-block; margin-top: 4px; font-size: .78rem; font-weight: 500; color: var(--color-gold-hover); line-height: 1.3; }
.s-link:hover { color: var(--ink); }

/* tıklanabilir filtre şeridi */
.statrow--filter .stat { color: var(--ink); transition: background .1s; position: relative; }
.statrow--filter a.stat:hover { background: var(--paper); }
.statrow--filter a.stat.stat--grit:hover { background: var(--primary-wash); }
.statrow--filter a.stat.on { background: var(--ink); }
.statrow--filter a.stat.on .s-k,
.statrow--filter a.stat.on .s-v,
.statrow--filter a.stat.on .s-v small { color: var(--surface); }
.statrow--filter a.stat.on::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--color-gold);
}

/* ritim kırıcı bant (koyu) */
.streak {
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  background: var(--color-black); color: var(--ink-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r); padding: 20px 24px; margin-bottom: 22px;
}
.streak-txt b { font-size: 1.05rem; font-weight: 600; }
.streak-txt p { font-size: .9rem; color: var(--ink-on-dark-2); margin: 3px 0 0; max-width: 52ch; }

@media (max-width: 760px) {
  .statrow { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(2n+1)::before { display: none; }
  .stat:nth-child(-n+2)::after {
    content: ""; position: absolute; left: 14px; right: 14px; bottom: 0; height: 1px; background: var(--line);
  }
}

/* metrics */
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); overflow: hidden; margin-bottom: 28px; }
.metric { padding: 16px 18px; border-left: 1px solid var(--line); }
.metric:first-child { border-left: 0; }
.metric .m-label { font-size: .82rem; color: var(--muted); }
.metric .m-value { font-size: 1.55rem; font-weight: 600; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; margin-top: 4px; }
.metric .m-sub { font-size: .8rem; color: var(--muted); margin-top: 2px; }
.m-sub.pos { color: var(--pos); }
.m-sub.neg { color: var(--neg); }
.m-sub.warn { color: var(--warn); }

/* cards / blocks */
.block { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 22px; }
.block-head { display: flex; align-items: baseline; flex-wrap: wrap; gap: 2px 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.block-head h2 { font-size: 1.02rem; }
.block-head .muted, .block-head .card-badge { margin-left: auto; }
.block-head .muted { font-size: .84rem; }
.block-body { padding: 20px; }
.block-body.flush { padding: 0; }

/* ders bazlı net matrisi (denemeler sayfası) */
.subtbl + .subtbl { border-top: 1px solid var(--line); }
.subtbl-cap {
  padding: 14px 20px 6px; font-size: .78rem; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase; color: var(--faint);
}
.subtbl thead th { padding-top: 6px; padding-bottom: 8px; }
.subtbl tbody td { padding-top: 10px; padding-bottom: 10px; }
.subtbl .delta { font-size: .82rem; }

/* branşlı ders: ebeveyn satır + açılır branş satırları (matris + deneme detayı) */
.snt-toggle {
  display: inline-flex; align-items: center; gap: 6px;
  border: 0; background: none; cursor: pointer; font: inherit; color: inherit;
  text-align: left; padding: 2px 7px; margin: -2px -7px; border-radius: 6px;
}
.snt-toggle:hover { background: var(--surface-2); }
.snt-toggle .ic { width: 13px; height: 13px; flex: none; color: var(--muted); transition: transform .15s; }
.snt-toggle:hover .ic { color: var(--ink); }
.snt-row.is-open .snt-toggle .ic,
.prog--parent.is-open .snt-toggle .ic { transform: rotate(180deg); color: var(--ink); }

.snt-parent > td:first-child { font-weight: 600; }
.snt-child > td { background: var(--surface-2); }
.snt-child > td:first-child { padding-left: 30px; color: var(--ink-2); font-size: .88rem; }
.snt-child > td.num { color: var(--ink-2); }

.prog--child { opacity: .85; }
.prog--child .p-name { padding-left: 18px; font-size: .88rem; }
.prog[hidden] { display: none; }   /* .prog display:grid, [hidden]'ı ezer */

.cols-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: stretch; margin-bottom: 22px; }
.cols-2 .block { margin-bottom: 0; display: flex; flex-direction: column; }
.cols-2 .block .block-body { flex: 1; }

/* tables */
table { width: 100%; border-collapse: collapse; font-size: .92rem; font-variant-numeric: tabular-nums; }
thead th {
  text-align: left; padding: 11px 20px; font-size: .76rem; font-weight: 600;
  letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
  border-bottom: 1px solid var(--line);
}
tbody td { padding: 13px 20px; border-bottom: 1px solid var(--line); }
tbody tr:last-child td { border-bottom: 0; }
tbody tr.linked { cursor: pointer; }
tbody tr.linked:hover { background: var(--paper); }
td .who { display: flex; align-items: center; gap: 10px; }
td .who .avatar { width: 30px; height: 30px; font-size: .72rem; }
.num { text-align: right; }

/* geniş tabloları kendi içinde kaydır (mobil) */
.tbl { overflow-x: auto; -webkit-overflow-scrolling: touch; }
@media (max-width: 640px) {
  .tbl table { min-width: 36rem; }
  .tbl .formset-table { min-width: 30rem; }
  .tbl th, .tbl td { white-space: nowrap; }
  .tbl .formset-table td { white-space: normal; }
}

/* deltas */
.delta { display: inline-flex; align-items: center; gap: 4px; font-weight: 500; font-variant-numeric: tabular-nums; }
.delta .ic { font-size: 15px; }
.delta.pos { color: var(--pos); }
.delta.neg { color: var(--neg); }

/* status dot list */
.items { list-style: none; }
.items li { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--line); }
.items li:last-child { border-bottom: 0; }
.items .it-main { flex: 1; min-width: 0; }
.items .it-main b { display: block; font-size: .92rem; font-weight: 500; }
.items .it-main span { font-size: .82rem; color: var(--muted); }
.dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--line-strong); }
.dot.done { background: var(--pos); }
.dot.doing { background: var(--warn); }
.dot.todo { background: transparent; box-shadow: inset 0 0 0 1.5px var(--line-strong); }
.state { font-size: .78rem; color: var(--muted); white-space: nowrap; }

/* progress */
.prog { display: grid; grid-template-columns: 1fr auto; gap: 6px 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
.prog:last-child { border-bottom: 0; }
.prog .p-name { font-size: .9rem; color: var(--ink); }
.prog .p-val { font-size: .84rem; color: var(--ink-2); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.prog .p-val.none { color: var(--muted); }
@media (max-width: 560px) { .prog .p-val { white-space: normal; } }
.track { grid-column: 1 / -1; height: 6px; background: var(--paper); border: 1px solid var(--line); border-radius: 4px; overflow: hidden; }
.track > i { display: block; height: 100%; background: var(--primary); border-radius: 4px; }

/* vurgulu satır: skor bileşenleri */
.prog.hl { padding: 12px 0; }
.prog.hl .p-name { font-weight: 600; }
.prog.hl .p-val { font-size: 1rem; font-weight: 700; color: var(--ink); }
.prog.hl .p-val.none { font-weight: 400; color: var(--muted); }
.prog.hl .track { height: 9px; background: var(--primary-wash); border-color: var(--line-strong); }

.card-badge {
  font-size: .8rem; font-weight: 600; color: var(--warn-ink);
  background: var(--primary-wash); padding: 2px 10px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}

/* segment filtre (TYT / AYT / Tümü) */
.seg { display: inline-flex; border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; }
.seg a, .seg button {
  padding: 4px 12px; font-size: .82rem; color: var(--ink-2); background: var(--surface);
  border: 0; font: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 6px;
}
.seg a + a, .seg button + button { border-left: 1px solid var(--line); }
.seg a:hover, .seg button:hover { background: var(--paper); color: var(--ink); }
.seg a.on, .seg button.on { background: var(--ink); color: var(--surface); }
.seg button .ic { width: 14px; height: 14px; }

/* tıklanabilir ilerleme satırı (ders listesi) */
a.prog--link { text-decoration: none; }
a.prog--link .p-name { color: var(--ink); font-weight: 500; }
a.prog--link:hover { background: var(--paper); }
a.prog--link:hover .p-name { color: var(--color-gold-hover); }
a.prog--link.on { background: var(--primary-wash); }
a.prog--link.on .p-name { color: var(--ink); font-weight: 600; }
a.prog--link { margin-inline: -20px; padding-inline: 20px; }

/* konu durumu etiketi */
.status-tag { display: inline-block; font-size: .74rem; font-weight: 600; padding: 2px 9px; border-radius: 999px; white-space: nowrap; }
.status-tag.st-not_started { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.status-tag.st-in_progress { background: var(--primary-wash); color: var(--warn-ink); }
.status-tag.st-completed { background: var(--pos-wash); color: var(--pos); }
.status-tag.st-needs_review { background: var(--neg-wash); color: var(--neg); }
.status-tag.st-locked { background: var(--paper); color: var(--muted); border: 1px solid var(--line); }
.status-tag.st-available { background: var(--primary-wash); color: var(--warn-ink); }
.status-tag.st-pending { background: var(--warn-wash); color: var(--warn); }
.status-tag.st-approved { background: var(--pos-wash); color: var(--pos); }

/* konu tablosu + satır içi durum seçimi */
.topic-table td { vertical-align: middle; }
.status-set { display: inline-flex; align-items: center; gap: 6px; justify-content: flex-end; }
.status-set select { min-width: 130px; }

/* =========================================================================
   Konu takibi
   ========================================================================= */
.tt-head {
  display: flex; align-items: center; justify-content: space-between; gap: 32px; flex-wrap: wrap;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 22px; margin-bottom: 22px;
}
.kicker { display: block; font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); margin-bottom: 5px; }
.tt-head h1 { font-size: 1.55rem; line-height: 1.2; }
.tt-head .sub { color: var(--muted); font-size: .95rem; margin-top: 3px; line-height: 1.3; }
.tt-overall { min-width: 280px; }
.tt-overall-num { display: flex; align-items: baseline; gap: 6px; }
.tt-overall-num b { font-size: 2.3rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.tt-overall-num span { font-size: 1rem; color: var(--muted); }
.tt-overall-num .muted { font-size: .84rem; margin-left: 4px; }

/* segmentli ilerleme çubuğu (tamam / devam / tekrar / başlanmadı) */
.segbar { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--line); }
.segbar--lg { height: 9px; width: 300px; max-width: 100%; margin-top: 8px; }
.segbar > i { display: block; height: 100%; }
.segbar .s-done { background: var(--pos); }
.segbar .s-doing { background: var(--color-gold); }
.segbar .s-review { background: var(--neg); }
.segbar-key { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 9px; font-size: .74rem; color: var(--muted); }
.segbar-key span { display: inline-flex; align-items: center; gap: 5px; }
.segbar-key i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.segbar-key .s-done { background: var(--pos); }
.segbar-key .s-doing { background: var(--color-gold); }
.segbar-key .s-review { background: var(--neg); }
.segbar-key .s-todo { background: var(--line-strong); }

.tt-filters { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.tt-reset { display: inline-flex; align-items: center; gap: 5px; height: 31px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; font-size: .82rem; color: var(--ink-2); background: var(--surface); }
.tt-reset:hover { border-color: var(--neg); color: var(--neg); }
.tt-reset .ic { font-size: 13px; }
.tt-chips { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; padding: 12px 20px; border-bottom: 1px solid var(--line); background: var(--surface-2); }
.tt-chip { display: inline-flex; align-items: center; gap: 7px; height: 31px; padding: 0 12px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); color: var(--ink-2); font-size: .82rem; }
.tt-chip:hover { border-color: var(--ink); color: var(--ink); }
.tt-chip b { font-weight: 700; font-variant-numeric: tabular-nums; opacity: .7; }
.tt-chip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.tt-chip.on b { opacity: .85; }
.tt-chip--q { border-style: dashed; }
.tt-chip--q a { margin-left: 2px; font-weight: 700; color: var(--muted); font-size: 1rem; line-height: 1; }
.tt-chip--q a:hover { color: var(--ink); }
.cdot { width: 8px; height: 8px; border-radius: 50%; flex: none; display: inline-block; }
.cdot.t-muted, .cdot.t-not_started { background: var(--line-strong); }
.cdot.t-doing, .cdot.t-in_progress { background: var(--color-gold); }
.cdot.t-review, .cdot.t-needs_review { background: var(--neg); }
.cdot.t-done, .cdot.t-completed { background: var(--pos); }

.tt-search { display: flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--surface); flex: 0 1 260px; min-width: 190px; }
.tt-search:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px var(--primary-wash); }
.tt-search .ic { font-size: 15px; color: var(--muted); flex: none; }
.tt-search input[type=search] {
  flex: 1; min-width: 0; width: auto; height: 100%; padding: 0; margin: 0;
  border: 0; border-radius: 0; outline: 0; background: transparent;
  font: inherit; font-size: .88rem; color: var(--ink);
  appearance: none; -webkit-appearance: none;
}
.tt-search input[type=search]:focus { border: 0; box-shadow: none; }
.tt-search input[type=search]::-webkit-search-decoration,
.tt-search input[type=search]::-webkit-search-cancel-button { -webkit-appearance: none; }

/* ders kartları (üstte, TYT / AYT gruplu) */
.tt-cards { display: flex; flex-direction: column; gap: 18px; margin-bottom: 22px; }
.tt-cardgroup-h { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.tt-cardgroup-h span { font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-2); }
.tt-cardgroup-h i { flex: 1; height: 1px; background: var(--line-strong); }
.tt-cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 10px; }

.tt-card {
  display: block; padding: 13px 15px 15px;
  border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); color: var(--ink);
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.tt-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px -12px #1a1a1a40; transform: translateY(-1px); }
.tt-card.on { border-color: var(--color-gold); background: var(--primary-wash); box-shadow: 0 6px 22px -14px var(--color-gold-hover); }
.tt-card.done { border-color: var(--pos-line); }

.tt-card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tt-card-name { font-size: .96rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tt-card.on .tt-card-name { color: var(--ink); }
.tt-card-pct { flex: none; font-size: .82rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--ink-2); background: var(--surface-2); padding: 1px 8px; border-radius: 999px; }
.tt-card.on .tt-card-pct { background: var(--surface); color: var(--warn-ink); }
.tt-card.done .tt-card-pct { background: var(--pos-wash); color: var(--pos); }

.tt-card-sub { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); margin: 5px 0 10px; font-variant-numeric: tabular-nums; }
.tt-card.on .tt-card-sub { color: var(--ink-2); }
.tt-card-sub .ic { font-size: 12px; color: var(--pos); }
.tt-card.done .tt-card-sub { color: var(--pos); }

.tt-panel { margin-bottom: 22px; }
.tt-panel .block-head { align-items: flex-start; }
.tt-panel .block-head h2 { font-size: 1.05rem; }
.tt-legend { display: flex; align-items: center; gap: 14px; margin-left: auto; font-size: .8rem; color: var(--ink-2); }
.tt-legend span { display: inline-flex; align-items: center; gap: 6px; }
.tt-legend b { font-weight: 600; font-variant-numeric: tabular-nums; }

.tt-active-filter { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 10px 20px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.tt-active-filter b { color: var(--ink); font-weight: 600; }

.tt-rows { display: flex; flex-direction: column; }
.tt-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 14px; padding: 11px 20px; border-bottom: 1px solid var(--line); scroll-margin-top: 84px; }
.tt-row:target, .tt-row.just-changed { animation: tt-flash 1.4s ease-out 1; }
@keyframes tt-flash { 0%, 35% { background: var(--primary-wash); } 100% { background: transparent; } }
.tt-toggle button[disabled] { opacity: .5; cursor: default; }
.tt-row:last-child { border-bottom: 0; }
.tt-row.st-completed { background: var(--surface-2); }
.tt-row-name { flex: 1 1 auto; min-width: 0; font-size: .93rem; font-weight: 500; }
.tt-row.st-completed .tt-row-name { color: var(--muted); font-weight: 400; }
.tt-row-meta { font-size: .76rem; color: var(--faint); white-space: nowrap; flex: none; }
.tt-row-note { font-size: .78rem; color: var(--ink-2); font-style: italic; flex: 1 1 100%; order: 3; }
.tt-row-subj {
  flex: none; font-size: .72rem; font-weight: 600; white-space: nowrap;
  color: var(--warn-ink); background: var(--primary-wash);
  padding: 2px 8px; border-radius: 999px;
}

.tt-toggle { display: inline-flex; padding: 2px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); gap: 2px; flex: none; }
.tt-tb { height: 27px; padding: 0 11px; border: 0; border-radius: 999px; background: transparent; color: var(--faint); font: inherit; font-size: .78rem; font-weight: 500; cursor: pointer; white-space: nowrap; }
.tt-tb:hover { color: var(--ink); }
.tt-tb.st-in_progress.on { background: var(--primary-wash); color: var(--warn-ink); box-shadow: inset 0 0 0 1px var(--color-gold); font-weight: 700; }
.tt-tb.st-needs_review.on { background: var(--neg-wash); color: var(--neg-ink); box-shadow: inset 0 0 0 1px var(--neg); font-weight: 700; }
.tt-tb.st-completed.on { background: var(--pos-wash); color: var(--pos-ink); box-shadow: inset 0 0 0 1px var(--pos); font-weight: 700; }
.tt-empty { padding: 34px 22px; text-align: center; }

@media (max-width: 640px) {
  .tt-search { flex-basis: 100%; order: -1; }
  .tt-row { gap: 6px 10px; }
  .tt-row-name { flex-basis: 100%; }
}

/* vurgulu bilgi kartı */
.block--accent { border-color: var(--line-strong); background: var(--surface-2); }
.block--accent b { font-size: 1rem; font-weight: 600; }
.block--accent p { margin: 3px 0 12px; }
.track-pick { display: flex; gap: 8px; flex-wrap: wrap; }
.track-pick select { min-width: 180px; }

/* =========================================================================
   Haftalık plan
   ========================================================================= */
.plan-weeknav { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.plan-weeknav--bar { margin: 4px 0 16px; }

.plan-focus { padding: 15px 18px; }
.plan-focus .pf-k {
  display: block; font-size: .7rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--color-gold-hover); margin-bottom: 4px;
}
.plan-focus p { margin: 0; color: var(--ink-2); font-size: .92rem; }
.plan-focus .wf-form textarea { width: 100%; margin: 6px 0 10px; }
.plan-focus .form-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.tag2--task { background: var(--chip); color: var(--ink-2); }

/* 7 sütun "yapışkan not" ızgarası — dar ekranda kendi içinde yatay kayar */
.wg-toolbar { display: flex; justify-content: flex-end; margin-bottom: 8px; }
.wg-toggle {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  font-size: .82rem; color: var(--muted);
}
.wg-toggle input { accent-color: var(--primary); }

.wgrid {
  border: 1px solid var(--primary); border-radius: 14px;
  background: var(--surface); padding: 14px; margin-bottom: 24px;
  overflow-x: auto; -webkit-overflow-scrolling: touch;
}
.wg-wrap .wgrid { border: 0; padding: 0; margin: 0; background: transparent; }
.wgrid.has-more { box-shadow: inset -30px 0 22px -22px var(--surface); }

.wgrid-nav { display: none; }

.wgrid-inner {
  display: grid; grid-template-columns: repeat(7, minmax(130px, 1fr));
  gap: 8px; min-width: 940px;
}
.wgrid-col {
  display: flex; flex-direction: column; min-width: 0;
  border-radius: 12px; padding: 4px 5px 8px;
}
.wgrid-col.is-today { background: var(--surface-2); }

.wgc-head { text-align: center; padding-bottom: 10px; }
.wgc-dow {
  display: block; font-size: .72rem; font-weight: 700; letter-spacing: .07em;
  text-transform: uppercase; color: var(--ink);
}
.wgc-head::after {
  content: ""; display: block; width: 18px; height: 2px; margin: 6px auto 0;
  background: var(--primary); border-radius: 2px;
}
.wgc-date { display: block; margin-top: 6px; font-size: .72rem; color: var(--faint); }
.wgrid-col.is-today .wgc-dow { color: var(--primary-strong); }
.wgrid-col.is-today .wgc-head::after { width: 40px; }
.wgrid-col.is-today .wgc-date { color: var(--warn-ink); font-weight: 600; }

.wgc-prog { display: block; margin-top: 7px; }
.wgc-prog-n { font-size: .68rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.wgc-prog-bar {
  display: block; width: 70%; max-width: 88px; height: 3px; margin: 4px auto 0;
  border-radius: 999px; background: var(--line); overflow: hidden;
}
.wgc-prog-bar > i { display: block; height: 100%; background: var(--pos); }

.wgc-body { display: flex; flex-direction: column; gap: 8px; flex: 1; }

.wnote {
  border: 1.5px solid var(--primary); border-radius: 10px;
  background: var(--surface); padding: 9px 10px 10px;
  box-shadow: 0 3px 10px -6px var(--color-gold-hover);
  transition: transform .12s ease, box-shadow .12s ease;
}
.wnote:nth-child(odd)  { transform: rotate(-0.5deg); }
.wnote:nth-child(even) { transform: rotate(0.5deg); }
.wnote:hover { transform: rotate(0) translateY(-2px); box-shadow: 0 9px 20px -9px var(--color-gold-hover); }

.wnote-title { display: block; font-size: .82rem; font-weight: 600; line-height: 1.35; color: var(--ink); }
.wnote-meta { display: block; margin-top: 3px; font-size: .72rem; color: var(--muted); }
.wnote-bar {
  display: block; height: 3px; margin-top: 5px; border-radius: 999px;
  background: var(--line); overflow: hidden;
}
.wnote-bar > i { display: block; height: 100%; background: var(--primary); }
.wnote-state { display: block; margin-top: 5px; font-size: .72rem; color: var(--muted); }
.wnote-edit {
  display: inline-block; margin-top: 6px; font-size: .74rem; font-weight: 600;
  color: var(--color-gold-hover);
}
.wnote-edit:hover { color: var(--ink); }
.wnote-foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.wnote-foot .wnote-state, .wnote-foot .wnote-edit { margin-top: 0; }
.wnote-add {
  display: block; text-align: center; margin-top: 4px; padding: 5px;
  border: 1px dashed var(--line-strong); border-radius: 8px;
  font-size: .74rem; font-weight: 600; color: var(--muted);
}
.wnote-add:hover { border-color: var(--primary); color: var(--primary-strong); }

.wnote.st-in_progress { border-color: var(--warn); }
.wnote.is-late { border-color: var(--neg); }
.wnote.is-late .wnote-meta { color: var(--neg); font-weight: 600; }

/* biten görev: küçük ve tek satır — aktif işi öne çıkar */
.wnote.st-done { border-color: var(--pos-line); opacity: .8; padding: 6px 9px; box-shadow: none; }
.wnote.st-done .wnote-title { text-decoration: line-through; color: var(--muted); font-weight: 500; font-size: .78rem; }
.wnote.st-done .wnote-meta,
.wnote.st-done .wnote-bar,
.wnote.st-done .wnote-edit,
.wnote.st-done .wnote-state { display: none; }
.wgrid.hide-done .wnote.st-done { display: none; }
/* koç: biten görevi de düzenleyebilmeli — küçültme uygulanmaz */
.wgrid--coach .wnote.st-done { padding: 9px 10px 10px; opacity: .85; }
.wgrid--coach .wnote.st-done .wnote-title { font-size: .82rem; }
.wgrid--coach .wnote.st-done .wnote-meta { display: block; }
.wgrid--coach .wnote.st-done .wnote-foot { display: flex; }
.wgrid--coach .wnote.st-done .wnote-foot .wnote-state,
.wgrid--coach .wnote.st-done .wnote-foot .wnote-edit { display: inline-block; margin-top: 0; }

.wnote--ghost {
  border-style: dashed; border-color: var(--line-strong); box-shadow: none;
  min-height: 34px; opacity: .45; transform: none !important; pointer-events: none;
}

.wnote-more {
  display: block; margin-top: 2px; font-size: .72rem; font-weight: 600;
  color: var(--muted); text-align: center;
}
.wnote-more:hover { color: var(--ink); }

@media (prefers-reduced-motion: reduce) {
  .wnote, .wnote:nth-child(odd), .wnote:nth-child(even) { transform: none; }
}

/* mobil: yatay ızgara yerine gün pilleri + dikey yığın */
@media (max-width: 760px) {
  .wgrid { overflow-x: visible; }
  .wgrid.has-more { box-shadow: none; }

  .wgrid-nav {
    display: flex; gap: 6px; overflow-x: auto; margin-bottom: 12px;
    padding-bottom: 4px; -webkit-overflow-scrolling: touch;
  }
  .wgn-pill {
    flex: none; display: inline-flex; align-items: center; gap: 5px;
    padding: 6px 11px; border-radius: 999px; border: 1px solid var(--line-strong);
    font-size: .78rem; font-weight: 600; color: var(--ink-2); white-space: nowrap;
  }
  .wgn-pill b {
    min-width: 16px; height: 16px; padding: 0 4px; border-radius: 999px;
    background: var(--chip); color: var(--ink-2); font-size: .68rem;
    display: inline-flex; align-items: center; justify-content: center;
  }
  .wgn-pill.is-today { border-color: var(--primary); color: var(--primary-strong); }
  .wgn-pill.is-today b { background: var(--primary-wash); color: var(--warn-ink); }

  .wgrid-inner { grid-template-columns: 1fr; gap: 10px; min-width: 0; }
  .wgrid-col {
    padding: 12px 12px 14px; border: 1px solid var(--line);
    background: var(--surface); scroll-margin-top: 72px;
  }
  .wgrid-col.is-today { border-color: var(--primary); background: var(--surface-2); }
  .wgrid-col.is-empty { opacity: .7; }
  .wgc-head { text-align: left; display: flex; align-items: baseline; gap: 8px; padding-bottom: 10px; }
  .wgc-head::after { display: none; }
  .wgc-date { margin-top: 0; }
  .wgc-prog { margin: 0 0 0 auto; display: flex; align-items: center; gap: 7px; }
  .wgc-prog-bar { width: 54px; margin: 0; }
  .wgc-body { gap: 8px; }
  .wnote--ghost { min-height: 28px; }
}

/* görev güncelleme modalı */
.pt-modal {
  width: min(440px, calc(100vw - 32px)); margin: auto;
  max-height: calc(100vh - 40px);
  padding: 0; border: 0; outline: none;
  border-radius: var(--r); background: var(--surface); color: var(--ink);
  box-shadow: 0 20px 48px -12px rgba(26, 26, 26, 0.35);
}
.pt-modal:focus,
.pt-modal:focus-visible {
  outline: none;
}
.pt-modal::backdrop { background: var(--backdrop); }
.pt-modal form { padding: 18px 20px 20px; overflow-y: auto; max-height: calc(100vh - 40px); }
.pm-head { display: flex; align-items: flex-start; gap: 12px; }
.pm-head h3 { flex: 1; font-size: 1.05rem; }
.pm-x { flex: none; border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 18px; line-height: 1; padding: 2px; }
.pm-x:hover { color: var(--ink); }
.pm-sub { font-size: .82rem; color: var(--muted); margin: 2px 0 0; }
.pm-note { font-size: .86rem; color: var(--ink-2); background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 8px 10px; margin: 12px 0 0; }
.pt-modal .field { margin-top: 12px; }
.pt-modal .field > span { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.pt-modal select, .pt-modal input, .pt-modal textarea { width: 100%; }
.pm-actions { display: flex; gap: 8px; margin-top: 18px; }

/* günlük kayıt modalı (daha geniş, kaydırmalı) */
.daily-modal { width: min(640px, calc(100vw - 32px)); }
.daily-modal .dm-head {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 20px; border-bottom: 1px solid var(--line);
  position: sticky; top: 0; background: var(--surface); z-index: 1;
}
.daily-modal .dm-head h3 { flex: 1; font-size: 1.05rem; }
.daily-modal .dm-body { padding: 16px 20px 20px; overflow-y: auto; max-height: calc(100vh - 120px); }
.daily-modal .daily-form { padding: 0; max-height: none; overflow: visible; }
.daily-modal .daily-intro { font-size: .84rem; margin-bottom: 14px; }
.daily-modal .daily-form .block { margin-bottom: 12px; }
.daily-modal .daily-form .block-head { padding: 10px 14px; }
.daily-modal .daily-form .block-head h2 { font-size: .92rem; }
.daily-modal .daily-form .block-body { padding: 14px; }
.daily-modal .form-actions { display: flex; gap: 8px; margin-top: 4px; }

/* geçmiş gün: salt-okunur görünüm */
.daily-readonly { margin-bottom: 6px; }
.dr-score {
  display: flex; align-items: baseline; gap: 10px;
  padding: 12px 14px; margin-bottom: 14px;
  background: var(--primary-wash); border-radius: var(--r-sm);
}
.dr-score b { font-size: 1.7rem; font-weight: 700; color: var(--ink); }
.dr-score span { font-size: .82rem; color: var(--warn-ink); }
.dr-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; margin: 0; }
.dr-grid > div {
  display: flex; justify-content: space-between; align-items: baseline; gap: 10px;
  padding: 8px 0; border-bottom: 1px solid var(--line);
}
.dr-grid dt { font-size: .84rem; color: var(--muted); }
.dr-grid dd { font-size: .9rem; font-weight: 600; margin: 0; white-space: nowrap; }
.dr-note { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); font-style: italic; line-height: 1.5; }
.daily-readonly--empty { padding: 6px 0 2px; }
.daily-readonly--empty p { margin: 0 0 8px; }
@media (max-width: 480px) { .dr-grid { grid-template-columns: 1fr; } }

/* =========================================================================
   Rozetler
   ========================================================================= */
.badge-group { margin-bottom: 24px; }
.badge-group-h { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.badge-group-h span { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--faint); }
.badge-group-h i { flex: 1; height: 1px; background: var(--line); }

.badge-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.badge-fchip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 13px; border: 1px solid var(--line-strong);
  border-radius: 999px; background: var(--surface); color: var(--ink-2);
  font: inherit; font-size: .86rem; cursor: pointer; transition: background .12s, border-color .12s, color .12s;
}
.badge-fchip b { font-weight: 700; font-variant-numeric: tabular-nums; }
.badge-fchip:hover { border-color: var(--ink); color: var(--ink); }
.badge-fchip.on { background: var(--ink); border-color: var(--ink); color: var(--surface); }
.badge-fsep { width: 1px; align-self: stretch; background: var(--line-strong); margin: 2px 2px; }
.badge-fchip.fchip--gold::before,
.badge-fchip.fchip--silver::before,
.badge-fchip.fchip--bronze::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%; flex: none;
}
.badge-fchip.fchip--gold::before { background: var(--color-gold); }
.badge-fchip.fchip--silver::before { background: #A9AEB5; }
.badge-fchip.fchip--bronze::before { background: #C6884B; }

.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; align-items: start; margin-bottom: 12px; }

.badge-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 6px; padding: 18px 14px 15px;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--surface);
  font: inherit; color: var(--ink); cursor: pointer;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.badge-card[hidden] { display: none; }
.badge-card:hover { border-color: var(--line-strong); box-shadow: 0 6px 20px -12px #1a1a1a40; transform: translateY(-1px); }

.bc-icon { font-size: 2rem; line-height: 1; }
.bc-icon img { width: 44px; height: 44px; object-fit: contain; }
.bc-name { font-size: .92rem; font-weight: 600; letter-spacing: -0.01em; }
.bc-tier {
  font-size: .64rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 1px 7px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.bc-meta { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.bc-bar { width: 100%; height: 5px; border-radius: 999px; background: var(--line); overflow: hidden; margin-top: 2px; }
.bc-bar > i { display: block; height: 100%; background: var(--color-gold); }

/* kilitli: soluk */
.badge-card.locked .bc-icon { filter: grayscale(1); opacity: .45; }
.badge-card.locked .bc-name { color: var(--ink-2); }

/* kazanılan: tier vurgusu */
.badge-card.earned { border-color: var(--line-strong); }
.badge-card.earned.tier-bronze { border-color: #C6884B; background: var(--surface-2); }
.badge-card.earned.tier-silver { border-color: #A9AEB5; background: var(--surface-2); }
.badge-card.earned.tier-gold { border-color: var(--color-gold); background: var(--primary-wash); }
.badge-card.earned .bc-tier { background: var(--surface); color: var(--ink-2); }
.badge-card.earned.tier-gold .bc-meta { color: var(--color-gold-hover); }

/* rozet detay modalı */
.badge-modal { width: min(400px, calc(100vw - 32px)); }
.badge-modal .pm-x { position: absolute; top: 10px; right: 10px; z-index: 1; }
.bm-body { padding: 26px 22px 22px; text-align: center; }
.bm-icon { display: block; font-size: 3rem; line-height: 1; }
.bm-icon img { width: 68px; height: 68px; object-fit: contain; }
.badge-modal:not(.is-earned) .bm-icon { filter: grayscale(1); opacity: .5; }
#bm-name { margin-top: 10px; font-size: 1.15rem; }
.bm-tier {
  display: inline-block; margin-top: 6px;
  font-size: .66rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 2px 9px; border-radius: 999px; background: var(--surface-2); color: var(--muted);
}
.bm-tier.tier-bronze { background: var(--chip); color: var(--ink-2); box-shadow: inset 0 0 0 1px #C6884B; }
.bm-tier.tier-silver { background: var(--chip); color: var(--ink-2); box-shadow: inset 0 0 0 1px #A9AEB5; }
.bm-tier.tier-gold { background: var(--primary-wash); color: var(--warn-ink); }
.bm-desc { margin-top: 12px; font-size: .9rem; color: var(--ink-2); }
.bm-prog { margin-top: 18px; }
.bm-bar { display: block; height: 8px; }
.bm-bar > i { display: block; height: 100%; width: 100%; background: var(--color-gold); transform-origin: left center; transform: scaleX(0); transition: transform .35s ease .05s; }
.badge-modal[open] .bm-bar > i { transform: scaleX(var(--bm-scale, 0)); }
.badge-modal.is-earned .bm-bar > i { background: var(--pos); }
.bm-prog-meta { display: block; margin-top: 8px; font-size: .82rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.badge-modal.is-earned .bm-prog-meta { color: var(--pos); }
.bm-rule {
  display: block; margin-top: 16px; padding-top: 12px; border-top: 1px dashed var(--line-strong);
  font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums;
}

.bar-cell { display: flex; align-items: center; gap: 9px; }
.bar-cell .mini { width: 72px; height: 4px; background: var(--line); border-radius: 2px; overflow: hidden; }
.bar-cell .mini > i { display: block; height: 100%; background: var(--pos); }
.bar-cell.mid .mini > i { background: var(--warn); }
.bar-cell.low .mini > i { background: var(--neg); }

/* risk tag */
.tag { font-size: .78rem; font-weight: 500; padding: 2px 9px; border-radius: 999px; }
.tag.low { background: var(--pos-wash); color: var(--pos); }
.tag.mid { background: var(--warn-wash); color: var(--warn); }
.tag.high { background: var(--neg-wash); color: var(--neg); }

/* 5 kademeli öğrenci durumu */
.tag.s-cok_iyi { background: var(--pos); color: #fff; }
.tag.s-iyi { background: var(--pos-wash); color: var(--pos); }
.tag.s-orta { background: var(--paper); color: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.tag.s-riskli { background: var(--warn-wash); color: var(--warn); }
.tag.s-kritik { background: var(--neg); color: #fff; }

.chart-wrap { padding: 16px 20px; }
.chart-box { position: relative; height: 260px; }
.panel-preview .chart-box { height: 180px; }


/* =========================================================================
   Formlar
   ========================================================================= */
.field { margin-bottom: 15px; }
form p { margin-bottom: 15px; }
form label, .field > label { display: block; font-size: .86rem; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }

input[type=text], input[type=email], input[type=password], input[type=number],
input[type=date], input[type=url], input[type=tel], input[type=search],
select, textarea {
  width: 100%; height: 40px; padding: 0 11px;
  font: inherit; font-size: .93rem; color: var(--ink);
  background: var(--surface);
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  transition: border-color .12s, box-shadow .12s;
}
textarea { height: auto; min-height: 78px; padding: 9px 11px; line-height: 1.5; resize: vertical; }
select {
  appearance: none; -webkit-appearance: none; padding-right: 32px; cursor: pointer;
  accent-color: var(--color-gold);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%238a847b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 10px center;
}

/* =========================================================================
   Özel Filtre Dropdown Bileşeni (.c-select)
   ========================================================================= */
.c-select-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.c-select {
  position: relative;
  display: inline-block;
  vertical-align: middle;
}

.c-select__btn {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  height: 36px;
  padding: 0 12px 0 14px;
  background: var(--surface);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-sm);
  font-family: inherit;
  font-size: .86rem;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  white-space: nowrap;
  user-select: none;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.c-select__btn:hover {
  border-color: var(--ink-2);
  background-color: var(--surface-2);
}

.c-select.is-open .c-select__btn,
.c-select__btn:focus-visible {
  outline: none;
  border-color: var(--color-gold);
  box-shadow: 0 0 0 3px var(--primary-wash);
}

.c-select__label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.c-select__arrow {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--muted);
  transition: transform .2s cubic-bezier(0.16, 1, 0.3, 1), color .15s ease;
}

.c-select.is-open .c-select__arrow {
  transform: rotate(180deg);
  color: var(--color-gold-hover);
}

/* Açılır Menü Listesi */
.c-select__menu {
  position: absolute;
  top: calc(100% + 5px);
  left: 0;
  z-index: 150;
  min-width: 100%;
  width: max-content;
  max-width: 260px;
  max-height: 290px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 28px -4px rgba(26, 26, 26, .14), 0 3px 8px -2px rgba(26, 26, 26, .06);
  padding: 5px;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px) scale(.98);
  transform-origin: top left;
  transition: opacity .15s ease, transform .15s ease, visibility .15s;
  pointer-events: none;
}

.c-select.is-open .c-select__menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

/* Seçenek Öğesi */
.c-select__option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 11px;
  border-radius: 6px;
  font-size: .85rem;
  line-height: 1.3;
  color: var(--ink-2);
  cursor: pointer;
  transition: background-color .12s ease, color .12s ease;
  user-select: none;
}

.c-select__option:hover,
.c-select__option.is-focused {
  background: var(--paper);
  color: var(--ink);
}

.c-select__option.is-selected {
  background: var(--surface-2);
  color: var(--ink);
  font-weight: 600;
}

.c-select__check {
  width: 14px;
  height: 14px;
  color: var(--color-gold-hover);
  flex-shrink: 0;
  opacity: 0;
  transition: opacity .12s ease;
}

.c-select__option.is-selected .c-select__check {
  opacity: 1;
}

/* satır içi seçim kutuları (filtre çubuğu, satır sonu) — form seçimiyle aynı
   görünüm; yalnızca daha kısa ve içeriğe göre genişler */
.cs-filterbar select,
.status-set select,
.track-pick select { height: 36px; width: auto; font-size: .88rem; }
input:focus, select:focus, textarea:focus {
  outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px var(--primary-wash);
}
input[type=checkbox] {
  width: 16px; height: 16px; accent-color: var(--primary);
  vertical-align: -3px; margin-right: 7px;
}
form .helptext, .helptext { display: block; font-size: .8rem; color: var(--muted); margin-top: 4px; }

/* görev formu: eklenen konular (çoklu görev ataması) */
.topic-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.topic-chip {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 6px 6px 6px 12px; border-radius: 999px;
  background: var(--primary-wash); color: var(--ink);
  font-size: .82rem; line-height: 1.2;
}
.topic-chip b { font-weight: 600; }
.topic-chip .muted { font-size: .74rem; }
.topic-chip-x {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%; border: 0; flex: none;
  background: var(--line-strong); color: inherit; font-size: 14px; line-height: 1;
  cursor: pointer;
}
.topic-chip-x:hover { background: var(--muted); color: var(--surface); }
ul.errorlist { list-style: none; margin: 4px 0 0; padding: 0; }
ul.errorlist li { font-size: .82rem; color: var(--neg); }
.form-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 18px; }
.form-grid .field { margin-bottom: 12px; }
.form-grid input { max-width: 160px; }
.form-grid--wide input, .form-grid--wide select { max-width: none; }

/* deneme pop-up'ı (detay / form / silme) — sayfa yedekleriyle ortak */
.exam-modal { width: min(680px, calc(100vw - 32px)); overflow: hidden; }
.exam-modal #exam-dlg-body {
  padding: 18px 20px 20px;
  overflow-y: auto; max-height: calc(100vh - 40px);
  border-radius: inherit;
}
.exam-modal .exam-form { padding: 0; max-height: none; overflow: visible; }

.exam-form-standalone, .exam-view-standalone {
  max-width: 680px; margin-inline: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.exam-form-standalone .exam-form { padding: 20px 22px 22px; }
.exam-view-standalone { padding: 20px 22px 22px; }
.exam-view-standalone .pm-x { display: none; }

.exam-form .pm-sub { margin-bottom: 14px; }
.exam-form .form-grid { margin-top: 4px; }

/* görev oluştur/düzenle pop-up'ı */
.assignment-modal { width: min(600px, calc(100vw - 32px)); overflow: hidden; }
.assignment-modal #asg-dlg-body {
  padding: 18px 20px 20px; overflow-y: auto; max-height: calc(100vh - 40px);
  border-radius: inherit;
}
.assignment-modal .assignment-form { padding: 0; max-height: none; overflow: visible; }
.assignment-modal .pm-sub { margin: 2px 0 12px; }
.assignment-form-wrap .assignment-form { max-width: 620px; }
.assignment-form .field { margin-top: 12px; }
.assignment-form .field > label { display: block; font-size: .8rem; color: var(--muted); margin-bottom: 4px; }
.assignment-form .form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 4px; }
.assignment-form .form-grid .field { margin-top: 0; margin-bottom: 0; }
.assignment-form .form-grid input, .assignment-form .form-grid select { max-width: none; }
@media (max-width: 520px) { .assignment-form .form-grid { grid-template-columns: 1fr; } }

/* deneme detayı gövdesi */
.exam-view .pm-sub { margin-top: 4px; }
.ev-stats {
  border: 1px solid var(--line); border-radius: var(--r-sm);
  margin: 14px 0 4px;
}
.ev-stats .stat { min-height: 66px; justify-content: center; padding: 12px 14px; }
.ev-section { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ev-section .prog:last-child { border-bottom: 0; }
.ev-note { margin: 4px 0 0; font-size: .9rem; color: var(--ink-2); white-space: pre-wrap; line-height: 1.5; }
.ev-delete .confirm-line { margin: 12px 0 8px; }
.ev-coach-note { border-top-color: var(--color-gold); }
.ev-coach-note .es-head b { color: var(--color-gold-hover); }

/* koç: öğrenci denemeleri — genişletilebilir ders dökümü */
.exam-rows { display: flex; flex-direction: column; }
.exam-row { border-bottom: 1px solid var(--line); }
.exam-row:last-child { border-bottom: 0; }
.exam-row > summary {
  list-style: none; cursor: pointer; padding: 13px 20px;
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
}
.exam-row > summary::-webkit-details-marker { display: none; }
.exam-row > summary::before {
  content: "▸"; color: var(--muted); font-size: .8rem; transition: transform .15s;
}
.exam-row[open] > summary::before { transform: rotate(90deg); }
.exam-row > summary:hover { background: var(--paper); }
.er-date { font-size: .85rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.er-name { font-weight: 600; font-size: .92rem; }
.er-net { margin-left: auto; font-size: .88rem; font-variant-numeric: tabular-nums; }
.er-flag {
  font-size: .68rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  color: var(--warn-ink); background: var(--warn-wash); padding: 2px 7px; border-radius: 999px;
}
.er-body { padding: 4px 20px 18px; }
.er-body table tfoot td { border-top: 2px solid var(--line-strong); border-bottom: 0; color: var(--muted); font-weight: 600; }
.er-note { margin: 12px 0 0; font-size: .88rem; color: var(--ink-2); line-height: 1.5; }
.er-body .exam-note-editor { margin-top: 12px; }

.exam-note-preview { margin: 0 0 6px; font-size: .82rem; color: var(--ink-2); font-style: italic; max-width: 220px; }
.exam-note-editor summary { font-size: .78rem; color: var(--color-gold-hover); cursor: pointer; }
.exam-note-editor summary:hover { color: var(--ink); }
.exam-note-editor form { display: flex; flex-direction: column; gap: 6px; margin-top: 6px; min-width: 220px; }
.exam-note-editor textarea { font-size: .82rem; }
.exam-scores { margin-top: 6px; border-top: 1px solid var(--line); padding-top: 14px; }
.es-head {
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; margin-bottom: 8px;
}
.es-head b { font-size: .95rem; }
.es-head .muted { font-size: .8rem; }
.exam-scores .tbl { margin: 0 -4px; }
.exam-scores .formset-table td, .exam-scores .formset-table th { padding: 6px 8px; }
.exam-scores .formset-table th:first-child,
.exam-scores .formset-table td:first-child { padding-left: 4px; }

/* deneme silme onayı */
.confirm-card { max-width: 520px; }
.confirm-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; margin-bottom: 8px; }
.confirm-line b { font-size: 1rem; }

/* formset tablosu (deneme ders netleri) */
.formset-table td, .formset-table th { padding: 8px 20px; }
.formset-table select { min-width: 12rem; }
.formset-table input, .formset-table select { height: 36px; }
.formset-table td.num input { max-width: 76px; text-align: right; }
.formset-table .del { display: inline-flex; align-items: center; gap: 5px; font-size: .78rem; color: var(--muted); font-weight: 400; margin: 0; cursor: pointer; }
.formset-table .del input { margin: 0; }
.checkline { display: flex; align-items: center; font-weight: 400; font-size: .92rem; color: var(--ink); margin: 6px 0 0; cursor: pointer; }
.checkline input[type=checkbox] { margin-right: 9px; }
.checkline--rest {
  margin: 0 0 18px; padding: 12px 14px; border: 1px solid var(--line);
  border-radius: var(--r-sm); background: var(--surface-2);
}
.daily-form.is-rest .checkline--rest { border-color: var(--warn); background: var(--warn-wash); }
.daily-form.is-rest .daily-fields { opacity: .45; pointer-events: none; filter: grayscale(.3); }
.field-warn { display: block; font-size: .8rem; color: var(--color-gold-hover); margin-top: 4px; }
.field-warn[hidden] { display: none !important; }

@media (max-width: 560px) {
  .form-grid { grid-template-columns: 1fr; gap: 0; }
  .form-grid input { max-width: none; }
}

/* =========================================================================
   Kimlik doğrulama (giriş / kayıt) — iki panelli
   ========================================================================= */
body.auth-page { background: var(--paper); }
.auth-split { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }

.auth-aside {
  position: relative; overflow: hidden;
  padding: 44px 52px;
  display: flex; flex-direction: column; justify-content: center; gap: 30px;
  background: radial-gradient(120% 130% at 12% 0%, #2b2620 0%, var(--color-black) 58%);
  color: #f3f0e8;
}
.auth-aside::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, var(--color-gold), transparent 72%);
}
.auth-brand {
  display: inline-block; align-self: flex-start; line-height: 0;
  background: #fff; border-radius: 18px; padding: 12px;
  box-shadow: 0 16px 40px -16px rgba(0,0,0,.6);
}
.auth-brand img { height: 132px; width: auto; display: block; border-radius: 8px; }
.auth-aside-body { margin: 0; }
.auth-aside-foot { margin: 0; }
.auth-aside-body h2 { font-size: 1.9rem; line-height: 1.15; letter-spacing: -0.02em; }
.auth-aside-body > p { margin-top: 12px; max-width: 42ch; font-size: .98rem; color: #c9c3b4; line-height: 1.55; }
.auth-points { list-style: none; margin: 26px 0 0; padding: 0; display: grid; gap: 15px; }
.auth-points li { display: flex; gap: 12px; }
.auth-points .ic { flex: none; width: 20px; height: 20px; color: var(--color-gold); margin-top: 1px; }
.auth-points b { display: block; font-size: .92rem; }
.auth-points span { font-size: .83rem; color: #a9a394; line-height: 1.45; }
.auth-aside-foot { font-size: .8rem; color: #8b8577; }

.auth-main { display: flex; align-items: center; justify-content: center; padding: 44px 24px; }
.auth-form-card { width: 100%; max-width: 384px; }
.auth-form-card--wide { max-width: 468px; }
.auth-mobile-brand { display: none; }
.auth-mobile-brand img { height: 84px; width: auto; border-radius: 10px; }
.auth-form-card h1 { font-size: 1.5rem; letter-spacing: -0.02em; }
.auth-form-card .auth-sub { margin: 5px 0 22px; font-size: .9rem; color: var(--muted); }
.auth-form .field { margin-bottom: 14px; }
.auth-form .btn { width: 100%; margin-top: 6px; justify-content: center; }
.auth-form--grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.auth-form--grid .field { grid-column: 1 / -1; margin-bottom: 12px; }
.auth-form--grid .field--half { grid-column: span 1; }
.auth-form--grid .btn { grid-column: 1 / -1; }
.auth-form--grid .field--check { margin-bottom: 4px; }
.check-inline { display: flex; align-items: flex-start; gap: 9px; font-size: .85rem; color: var(--ink-2); line-height: 1.5; cursor: pointer; }
.check-inline input { width: auto; margin-top: 2px; flex: none; }
.check-inline a { color: var(--primary); }
.check-inline a:hover { color: var(--primary-strong); }
.auth-nonfield { background: var(--neg-wash); color: var(--neg); font-size: .86rem; padding: 9px 12px; border-radius: var(--r-sm); margin-bottom: 16px; }
.auth-alt { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); font-size: .88rem; color: var(--ink-2); }
.auth-alt a { font-weight: 600; color: var(--color-gold-hover); }

@media (max-width: 900px) {
  .auth-split { grid-template-columns: 1fr; }
  .auth-aside { display: none; }
  .auth-mobile-brand { display: block; margin-bottom: 24px; }
  .auth-main { min-height: 100vh; padding: 40px 20px; }
}
@media (max-width: 460px) {
  .auth-form--grid { grid-template-columns: 1fr; }
  .auth-form--grid .field--half { grid-column: 1 / -1; }
}

.pw-rules {
  list-style: none; margin: 9px 0 0; padding: 0;
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 5px 18px;
}
.pw-rules[hidden] { display: none; }
.pw-rules li {
  position: relative; padding-left: 19px;
  font-size: .78rem; color: var(--muted); line-height: 1.4;
  transition: color .15s;
}
.pw-rules li::before {
  content: "–"; position: absolute; left: 5px; top: -1px;
  font-weight: 700; color: var(--line-strong);
}
.pw-rules li.ok { color: var(--pos); }
.pw-rules li.ok::before { content: "✓"; left: 3px; color: var(--pos); }
@media (max-width: 460px) { .pw-rules { grid-template-columns: 1fr; } }

/* hedef belirleme pop-up'ı */
.goal-modal { width: min(520px, calc(100vw - 32px)); }
.goal-modal #goal-dlg-body {
  padding: 18px 20px 20px;
  overflow-y: auto; max-height: calc(100vh - 40px); border-radius: inherit;
}
.goal-modal .goal-form { padding: 0; }
.goal-modal .pm-sub { margin-bottom: 14px; }
.goal-modal .gp-form .field { margin-bottom: 13px; }
.goal-modal .gp-form .field > span { font-size: .82rem; color: var(--ink-2); font-weight: 500; }

/* Koçum */
.coach-card { max-width: 520px; }
.cc-id { display: flex; align-items: center; gap: 14px; }
.cc-avatar { width: 46px; height: 46px; font-size: .95rem; }
.cc-id b { display: block; font-size: 1.05rem; }
.cc-id span { font-size: .85rem; color: var(--muted); }
.cc-bio { margin: 14px 0 0; font-size: .9rem; color: var(--ink-2); line-height: 1.55; }
.cc-note {
  margin: 12px 0 0; padding: 9px 12px; font-size: .86rem; color: var(--ink-2);
  background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--r-sm);
}
.cc-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.cc-actions .btn { display: inline-flex; align-items: center; gap: 8px; }
.cc-actions .ic { width: 17px; height: 17px; }
.cc-empty { margin-top: 16px; }

/* Şifre değiştir */
.pw-card { max-width: 440px; }
.pw-form .field-hint { line-height: 1.45; }
.pw-form .field-hint ul { margin: 4px 0 0; padding-left: 18px; }

/* =========================================================================
   GRIT skoru sayfası
   ========================================================================= */
.week-nav, .month-nav {
  display: inline-flex; align-items: stretch; vertical-align: middle;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm); overflow: hidden; font-size: .88rem;
}
.week-nav a, .week-nav .cur, .month-nav a, .month-nav .cur {
  display: flex; align-items: center; padding: 6px 12px; background: var(--surface); color: var(--ink-2);
}
.week-nav a:hover, .month-nav a:hover { background: var(--paper); color: var(--ink); }
.week-nav .cur, .month-nav .cur { font-weight: 600; color: var(--ink); border-inline: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.week-tag { margin-left: 10px; font-size: .74rem; font-weight: 500; color: var(--warn-ink); background: var(--primary-wash); padding: 3px 9px; border-radius: 999px; vertical-align: middle; }

/* ---- haftalık skor bandı (koyu) ---- */
.score-band {
  display: grid; grid-template-columns: 300px 1fr;
  background: var(--color-black); color: var(--ink-on-dark);
  border: 1px solid var(--line-on-dark);
  border-radius: var(--r); overflow: hidden; margin-bottom: 22px;
}
.sb-score { padding: 24px 26px 26px; border-right: 1px solid var(--line-on-dark); }
.sb-week {
  display: inline-block; font-size: .82rem; font-weight: 600; color: var(--ink-on-dark-2);
  border: 1px solid var(--line-on-dark); border-radius: var(--r-sm); padding: 5px 11px; margin-bottom: 20px;
  font-variant-numeric: tabular-nums;
}
.sb-big { display: flex; align-items: flex-end; gap: 8px; }
.sb-big b { font-size: 4.6rem; font-weight: 800; letter-spacing: -0.045em; line-height: .86; font-variant-numeric: tabular-nums; }
.sb-big span { font-size: .92rem; color: var(--muted); padding-bottom: 8px; }
.sb-delta { display: inline-flex; align-items: center; gap: 5px; margin-top: 16px; font-size: .84rem; font-weight: 600; color: #8fbf98; }
.sb-delta.neg { color: #e39a92; }
.sb-delta .ic { font-size: 14px; }
.sb-delta em { font-style: normal; font-weight: 400; color: var(--muted); }
.sb-stats { display: flex; gap: 22px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line-on-dark); }
.sb-stats b { display: block; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.sb-stats span { font-size: .78rem; color: var(--muted); }

.sb-chart { padding: 24px 26px 22px; min-width: 0; }
.sb-chart-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.sb-chart-head b { font-size: .92rem; font-weight: 600; }
.sb-chart-head span { font-size: .8rem; color: var(--muted); }
.sb-vals, .sb-days { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; text-align: center; font-variant-numeric: tabular-nums; }
.sb-vals { font-size: .78rem; color: var(--ink-on-dark-2); margin-bottom: 7px; }
.sb-days { font-size: .76rem; color: var(--muted); margin-top: 10px; }
.sb-bars { display: grid; grid-template-columns: repeat(7, 1fr); gap: 12px; align-items: end; height: 132px; }
.sb-bars i { border-radius: 3px; background: var(--color-gold); min-height: 3px; }
.sb-bars i.muted { background: #4a463f; }
.sb-empty { grid-column: 1 / -1; padding: 40px 26px; }
.sb-empty b { font-size: 1.05rem; font-weight: 600; }
.sb-empty p { color: var(--muted); margin-top: 4px; }

/* ---- skor bileşenleri ---- */
.comp-note { flex-basis: 100%; text-align: right; font-size: .78rem; }
.comp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 40px; }
.comp { padding: 14px 0; border-bottom: 1px solid var(--line); }
.comp-grid > .comp:nth-last-child(-n+2) { border-bottom: 0; }
.comp-row { display: flex; align-items: baseline; gap: 9px; margin-bottom: 9px; }
.comp-label { font-size: .92rem; font-weight: 600; }
.comp-weight { font-size: .72rem; font-weight: 700; color: var(--warn-ink); background: var(--primary-wash); padding: 2px 7px; border-radius: 999px; }
.comp-val { margin-left: auto; font-size: 1.05rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.comp-val.none { font-weight: 400; color: var(--muted); }
.comp .track { display: block; height: 9px; background: var(--primary-wash); border-color: var(--line-strong); }
.comp .track > i { height: 9px; }
.comp-insight { margin: 16px -20px -20px; padding: 14px 20px 16px; border-top: 1px solid var(--line); background: var(--surface-2); border-radius: 0 0 var(--r) var(--r); }
.ci-title { display: block; font-size: .72rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--color-gold-hover); margin-bottom: 8px; }
.comp-insight ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 7px; }
.comp-insight li { position: relative; padding-left: 16px; font-size: .88rem; color: var(--ink-2); }
.comp-insight li::before { content: ""; position: absolute; left: 0; top: .5em; width: 6px; height: 6px; border-radius: 50%; background: var(--muted); }
.comp-insight li.ci-warn::before { background: var(--neg); }
.comp-insight li.ci-good::before { background: var(--pos); }
.comp-insight li.ci-info::before { background: var(--color-gold); }
.comp-insight strong { font-weight: 600; color: var(--ink); }

/* ---- aylık trend (dikey bar) ---- */
.trend { display: flex; align-items: stretch; gap: 16px; }
.trend-col { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.trend-v { font-size: .78rem; color: var(--muted); font-variant-numeric: tabular-nums; text-align: center; margin-bottom: 6px; }
.trend-plot { flex: 1; min-height: 118px; display: flex; align-items: flex-end; border-bottom: 2px solid var(--line-strong); }
.trend-plot i { width: 100%; background: var(--primary-wash); border-radius: 3px 3px 0 0; min-height: 3px; }
.trend-m { font-size: .76rem; color: var(--muted); text-align: center; padding-top: 8px; }
.trend-col.none .trend-v { color: var(--line-strong); }
.trend-col.none .trend-plot i { background: var(--line); }
.trend-col.cur .trend-v { color: var(--ink); font-weight: 700; }
.trend-col.cur .trend-plot i { background: var(--color-gold); }
.trend-col.cur .trend-m { color: var(--ink); font-weight: 600; }

/* ---- takvim lejandı ---- */
.cal-legend { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; font-size: .78rem; color: var(--muted); }
.cal-legend i { width: 13px; height: 13px; border-radius: 3px; display: inline-block; }

/* ---- aylık takvim (kompakt) ---- */
.cal { padding: 2px 18px 16px; }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 5px; }
.cal-head { margin-bottom: 3px; }
.cal-head span { text-align: center; font-size: .68rem; color: var(--muted); text-transform: uppercase; letter-spacing: .02em; }
.cal-week { margin-bottom: 5px; }
.cal-week:last-child { margin-bottom: 0; }

.cal-day {
  min-height: 50px;
  border: 1px solid var(--line); border-radius: 5px;
  display: flex; flex-direction: column; gap: 2px;
  padding: 5px 7px; color: var(--ink); transition: border-color .1s;
}
a.cal-day:hover { border-color: var(--ink); }
.cal-day .num { font-size: .72rem; font-weight: 500; color: var(--muted); }
.cal-day .sc { margin-top: auto; font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; line-height: 1.1; }
.cal-day.out { border-color: transparent; background: transparent; }
.cal-day.out .num { color: var(--line-strong); }
.cal-day.empty .sc { color: var(--line-strong); font-weight: 400; }
a.cal-day.empty:hover .sc { color: var(--color-gold-hover); }
.cal-day.future { background: var(--paper); }
.cal-day.future .num { color: var(--muted); }
.cal-day.rest {
  background: repeating-linear-gradient(45deg, var(--paper), var(--paper) 5px, var(--line) 5px, var(--line) 10px);
}
.cal-day.rest .sc { font-size: .66rem; font-weight: 500; color: var(--muted); }
.cal-day.today { outline: 2px solid var(--color-gold); outline-offset: -1px; }

@media (max-width: 560px) {
  .cal { padding: 2px 10px 12px; }
  .cal-head, .cal-week { gap: 3px; }
  .cal-day { min-height: 38px; padding: 3px 5px; }
  .cal-day .sc { font-size: .82rem; }
  .cal-legend { display: none; }
}

/* =========================================================================
   Hedef Pusulası — sağ altta sabit yüzen alan
   ========================================================================= */
.goal-fab { position: fixed; left: 22px; bottom: 22px; z-index: 45; font-size: 14px; }

/* konik ilerleme halkası */
.gf-ring {
  --p: 0;
  position: relative; width: 40px; height: 40px; border-radius: 50%; flex: none;
  background: conic-gradient(var(--color-gold) calc(var(--p) * 1%), rgba(255,255,255,.28) 0);
  display: grid; place-items: center;
}
.gf-ring::before {
  content: ""; position: absolute; inset: 4px; border-radius: 50%; background: var(--color-black);
}
.gf-ring.done { background: var(--color-gold); }
.gf-ring.done::before { background: var(--color-gold-hover); }
.gf-ring-val { position: relative; z-index: 1; font-size: .68rem; font-weight: 700; color: var(--ink-on-dark); font-variant-numeric: tabular-nums; }
.gf-ring-val .ic { font-size: 14px; }

/* kapalı: geniş kart */
.gf-card {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: 13px;
  width: min(304px, calc(100vw - 28px));
  padding: 12px 14px 12px 12px;
  border: 1px solid #3a372f; border-radius: 16px;
  background: linear-gradient(150deg, #232019, var(--color-black) 60%);
  color: var(--ink-on-dark); font: inherit; text-align: left; cursor: pointer;
  box-shadow: 0 18px 44px -12px rgba(26,26,26,.62), 0 0 0 4px rgba(201,162,39,.14);
  transition: transform .15s ease, box-shadow .15s ease;
}
.gf-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.gf-card:hover { transform: translateY(-3px); box-shadow: 0 26px 56px -14px rgba(26,26,26,.7), 0 0 0 6px rgba(201,162,39,.24); }
.gf-card .gf-ring { width: 48px; height: 48px; }
.gf-card .gf-ring::before { inset: 5px; }
.gf-card .gf-ring-val { font-size: .76rem; }
.gf-chev { width: 15px; height: 15px; flex: none; margin-left: auto; color: #8f8a7d; transform: rotate(180deg); }
.gf-ico-wrap { width: 46px; height: 46px; flex: none; border-radius: 50%; background: rgba(201,162,39,.16); display: grid; place-items: center; }
.gf-ico { width: 24px; height: 24px; color: var(--color-gold); }
.gf-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.gf-k { font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--color-gold); }
.gf-sub { font-size: .9rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.goal-fab[data-state="empty"] .gf-card { background: var(--color-gold); color: var(--color-black); border-color: var(--color-gold-hover); box-shadow: 0 16px 40px -12px rgba(169,134,30,.5); }
.goal-fab[data-state="empty"] .gf-k { color: #5b4a12; }
.goal-fab[data-state="empty"] .gf-ico-wrap { background: rgba(26,26,26,.12); }
.goal-fab[data-state="empty"] .gf-ico { color: var(--color-black); }
.goal-fab.is-open .gf-card { display: none; }

/* açık panel */
.goal-panel {
  position: absolute; left: 0; bottom: 0;
  width: min(364px, calc(100vw - 28px));
  max-height: calc(100vh - 96px); overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px -12px rgba(26,26,26,.4);
  padding: 16px 18px 18px;
  animation: gp-in .16s ease-out;
}
@keyframes gp-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.gp-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.gp-head .kicker { margin: 0; }
.gp-x { border: 0; background: transparent; color: var(--muted); cursor: pointer; font-size: 17px; line-height: 1; padding: 2px; }
.gp-x:hover { color: var(--ink); }

.gp-dream { padding: 12px 0 14px; border-bottom: 1px solid var(--line); }
.gp-dream b { display: block; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; }
.gp-dream i { display: block; margin-top: 6px; font-size: .86rem; color: var(--muted); line-height: 1.4; }

.gp-body { display: flex; align-items: center; gap: 16px; padding: 16px 0 14px; }
.gf-ring--lg { width: 78px; height: 78px; }
.gf-ring--lg::before { inset: 7px; }
.gf-ring--lg .gf-ring-val { display: flex; flex-direction: column; align-items: center; line-height: 1.1; }
.gf-ring--lg .gf-ring-val b { font-size: 1.15rem; }
.gf-ring--lg .gf-ring-val span { font-size: .58rem; font-weight: 500; color: #cfc9bb; text-transform: uppercase; letter-spacing: .06em; }
.gp-ring-emoji { font-size: 1.6rem; }

.gp-gaps { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.gp-gap {
  display: flex; align-items: baseline; gap: 6px;
  padding: 8px 11px; border: 1px solid var(--line); border-radius: 10px;
  font-size: .86rem; color: var(--ink-2); font-variant-numeric: tabular-nums;
}
.gp-gap .gg-k { font-size: .7rem; font-weight: 700; letter-spacing: .05em; color: var(--muted); margin-right: auto; }
.gp-gap b { font-size: 1rem; font-weight: 700; color: var(--ink); }
.gp-gap.done { border-color: var(--pos-line); background: var(--pos-wash); color: var(--pos); }
.gp-gap.done .ic { font-size: 13px; }

.gp-msg { font-size: .88rem; color: var(--ink); font-weight: 500; margin: 2px 0 0; }
.gp-ref { font-size: .74rem; color: var(--muted); margin: 8px 0 0; }
.gp-empty { font-size: .88rem; color: var(--ink-2); line-height: 1.5; margin: 4px 0 0; }
.gp-edit {
  display: flex; align-items: center; justify-content: center;
  margin-top: 16px; width: 100%; height: 38px; padding: 0 12px;
  border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: .84rem; font-weight: 600; cursor: pointer;
}
.gp-edit:hover { border-color: var(--ink); color: var(--ink); }

/* panel içi hedef formu */
.gp-form .field { margin-bottom: 10px; }
.gp-form .field[hidden] { display: none; }
.gp-form .field > span { display: block; font-size: .78rem; color: var(--muted); margin-bottom: 4px; }
.gp-form select, .gp-form input, .gp-form textarea { width: 100%; }
.gp-form .prog-hidden { display: none; }
.gp-form .prog-results {
  margin-top: 5px; border: 1px solid var(--line); border-radius: var(--r-sm);
  background: var(--surface); max-height: 190px; overflow-y: auto;
}
.gp-form .prog-opt {
  display: flex; flex-direction: column; gap: 1px; width: 100%; text-align: left;
  padding: 8px 11px; border: 0; border-bottom: 1px solid var(--line); background: transparent;
  font: inherit; cursor: pointer;
}
.gp-form .prog-opt:last-child { border-bottom: 0; }
.gp-form .prog-opt:hover { background: var(--paper); }
.gp-form .prog-opt b { font-size: .84rem; font-weight: 600; }
.gp-form .prog-opt span { font-size: .74rem; color: var(--muted); }
.prog-none { padding: 10px 12px; font-size: .8rem; color: var(--muted); margin: 0; }
.gp-form-actions { display: flex; gap: 8px; margin-top: 12px; }

/* Çerez bilgilendirme kartı — landing hero'nun dilini (koyu zemin + nokta
   ızgara + altın eyebrow) küçük ölçekte tekrarlar; her iki temada da aynı
   (flip olmayan token'lar) — sabit dekoratif kart, sayfa temasından bağımsız. */
.cookie-bar {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  max-width: min(320px, calc(100vw - 28px));
}
.cookie-card {
  position: relative; overflow: hidden;
  padding: 22px 22px 20px;
  background: radial-gradient(140% 150% at 100% 0%, #2b2620 0%, var(--color-black) 62%);
  border: 1px solid #3a372f; border-radius: 18px;
  box-shadow: 0 24px 56px -18px rgba(0,0,0,.55);
  opacity: 0; transform: translateY(14px) scale(.98);
  transition: opacity .24s ease, transform .24s ease;
}
.cookie-bar.is-visible .cookie-card { opacity: 1; transform: translateY(0) scale(1); }
.cookie-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; z-index: 1;
  background: linear-gradient(90deg, var(--color-gold), transparent 75%);
}
.cookie-bg {
  position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(#ffffff0d 1px, transparent 1px), linear-gradient(90deg, #ffffff0d 1px, transparent 1px);
  background-size: 24px 24px;
}
.cookie-eyebrow {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  font-size: .7rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--color-gold);
}
.cookie-h {
  position: relative; margin: 11px 0 8px;
  font-size: 1.16rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--ink-on-dark);
}
.cookie-text { position: relative; margin: 0 0 16px; font-size: .85rem; line-height: 1.55; color: var(--ink-on-dark-2); }
.cookie-btn { position: relative; width: 100%; justify-content: center; }
.cookie-row { position: relative; display: flex; gap: 8px; }
.cookie-row .cookie-btn { flex: 1; width: auto; }
.cookie-btn-ghost {
  flex: 1; display: inline-flex; align-items: center; justify-content: center;
  font: inherit; font-weight: 600; font-size: .87rem;
  padding: 0 14px; height: 34px;
  color: var(--ink-on-dark);
  background: transparent; border: 1px solid var(--line-on-dark); border-radius: var(--r-sm);
  cursor: pointer; transition: border-color .15s ease, background-color .15s ease;
}
.cookie-btn-ghost:hover { background: var(--line-on-dark); border-color: var(--color-gold); }
.cookie-fine { position: relative; margin: 10px 0 0; font-size: .76rem; color: #8b8577; text-align: center; }
.cookie-fine a { color: var(--color-gold); }
.cookie-fine a:hover { color: var(--color-gold-hover); }

@media (max-width: 560px) {
  .cookie-bar { left: 14px; right: 14px; bottom: 14px; max-width: none; }
}

@media (max-width: 560px) {
  /* mobilde küçük yuvarlak buton — içeriği kapatmasın */
  .goal-fab { left: 14px; bottom: 14px; right: auto; }
  .gf-card { width: auto; gap: 0; padding: 7px; border-radius: 50%; }
  .gf-card::before { display: none; }
  .gf-card .gf-text, .gf-card .gf-chev { display: none; }
  .goal-panel { width: calc(100vw - 24px); }
}

/* =========================================================================
   Hedefim sayfası (süslü)
   ========================================================================= */
.goal-page { --gold: var(--color-gold); }

.goal-hero {
  position: relative; overflow: hidden;
  border-radius: 20px; margin-bottom: 22px;
  padding: 34px 36px;
  background: radial-gradient(120% 140% at 12% 0%, #2a2620 0%, var(--color-black) 55%);
  color: #f3f0e8;
  display: flex; align-items: center; gap: 36px; flex-wrap: wrap;
}
.goal-hero::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 3px;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
}
.gh-glow {
  position: absolute; right: -80px; top: -120px; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(201,162,39,.28), transparent 70%);
  pointer-events: none;
}
.gh-main { position: relative; flex: 1; min-width: 260px; }
.gh-kicker { display: inline-block; font-size: .72rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--color-gold); margin-bottom: 12px; }
.goal-hero h1 { font-size: 1.85rem; line-height: 1.18; letter-spacing: -0.02em; }
.gh-prog { margin-top: 8px; font-size: 1rem; color: #c8c3b6; max-width: 48ch; }
.gh-quote {
  margin-top: 18px; padding: 12px 0 12px 16px; border-left: 3px solid var(--color-gold);
  font-size: 1.05rem; font-style: italic; color: #f3ecd8; max-width: 46ch; line-height: 1.5;
}
.goal-hero.is-empty h1 { font-size: 2rem; }

.gh-side { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.gh-ref { font-size: .78rem; color: #a49f92; font-variant-numeric: tabular-nums; }
.gh-ring-emoji { font-size: 2.4rem; }

.gf-ring--xl { width: 138px; height: 138px; }
.gf-ring--xl::before { inset: 11px; background: #14130f; }
.gf-ring--xl .gf-ring-val { display: flex; flex-direction: column; align-items: center; line-height: 1.05; color: var(--ink-on-dark); }
.gf-ring--xl .gf-ring-val b { font-size: 2rem; letter-spacing: -0.02em; }
.gf-ring--xl .gf-ring-val span { font-size: .64rem; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #b6b1a3; margin-top: 3px; }
.goal-hero.is-reached .gf-ring--xl.done::before { background: var(--color-gold-hover); }

/* kalan kartları */
.goal-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 22px; }
.gcard {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  padding: 16px 18px; position: relative; overflow: hidden;
}
.gcard::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--color-gold); }
.gcard.ok::before { background: var(--pos); }
.gcard-k { display: block; font-size: .78rem; color: var(--muted); }
.gcard-v { display: block; font-size: 1.7rem; font-weight: 800; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; margin-top: 3px; }
.gcard.ok .gcard-v { color: var(--pos); }
.gcard-s { display: block; font-size: .76rem; color: var(--muted); margin-top: 2px; }

.goal-msg { margin-top: 14px; font-size: .95rem; font-weight: 600; color: var(--ink); }

/* ders bazında hedef netleri */
.subject-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.subject-grid .sr {
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
  padding: 9px 12px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--paper);
  font-size: .84rem;
}
.subject-grid .sr span { color: var(--ink-2); }
.subject-grid .sr b { font-size: .95rem; font-weight: 700; font-variant-numeric: tabular-nums; }

/* form kartı */
.goal-formcard { border-color: var(--line-strong); overflow: hidden; }
.goal-formcard .block-head { background: var(--surface-2); }
.goal-form .prog-search { width: 100%; }
.goal-form .field { margin-bottom: 14px; }
.goal-form .field:last-child { margin-bottom: 0; }
.goal-form .field > span { display: block; font-size: .82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 5px; }
.goal-form select, .goal-form input, .goal-form textarea { width: 100%; }
.goal-form .form-actions { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }

@media (max-width: 720px) {
  .goal-hero { padding: 26px 22px; gap: 22px; }
  .goal-hero h1 { font-size: 1.5rem; }
  .goal-cards { grid-template-columns: 1fr; }
}

/* =========================================================================
   Profil
   ========================================================================= */
.prof-hero {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 22px 24px;
}
.prof-id { display: flex; align-items: center; gap: 16px; }
.prof-avatar { width: 56px; height: 56px; font-size: 1.15rem; flex: none; }
.prof-id h1 { font-size: 1.4rem; letter-spacing: -0.02em; }
.prof-id .sub { color: var(--muted); font-size: .9rem; margin-top: 2px; }

.prof-meta { display: flex; gap: 26px; flex-wrap: wrap; }
.prof-meta > div { min-width: 0; }
.prof-meta dt { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); }
.prof-meta dd { font-size: .9rem; color: var(--ink); margin-top: 3px; font-variant-numeric: tabular-nums; }

/* genel düz mesaj bandı (django messages) — herhangi bir sayfanın üstünde */
.flash-stack { padding-top: 16px; display: flex; flex-direction: column; gap: 8px; }
.flash { font-size: .88rem; font-weight: 500; padding: 10px 14px; border-radius: var(--r-sm); }
.flash--success { background: var(--pos-wash); color: var(--pos); }
.flash--info { background: var(--paper); color: var(--ink-2); border: 1px solid var(--line); }
.flash--warning { background: var(--warn-wash); color: var(--warn); }
.flash--error { background: var(--neg-wash); color: var(--neg); }

.prof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; }
.prof-grid .field { margin-bottom: 0; }
.prof-grid .field:has(textarea) { grid-column: 1 / -1; }
.prof-grid .field--check { grid-column: 1 / -1; display: flex; align-items: center; gap: 8px; }
.prof-grid .field--check label { margin: 0; order: 2; }
.prof-grid .field--check input { width: auto; order: 1; }
.prof-grid textarea { min-height: 74px; }

.prof-archived-list { list-style: none; }
.prof-archived-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 12px 20px; border-bottom: 1px solid var(--line);
}
.prof-archived-row:last-child { border-bottom: 0; }
.prof-archived-name {
  display: block; font-size: .9rem; font-weight: 600; color: var(--ink);
  text-decoration: none;
}
a.prof-archived-name:hover { color: var(--primary); text-decoration: underline; }
.prof-archived-sub { display: block; font-size: .76rem; color: var(--muted); }

.settings-list { display: flex; flex-direction: column; }
.settings-row {
  display: flex; align-items: center; gap: 14px; padding: 16px 20px;
  border-bottom: 1px solid var(--line); color: inherit; text-decoration: none;
}
.settings-row:last-child { border-bottom: 0; }
.settings-row:hover { background: var(--paper); }
.settings-row-icon {
  flex: none; width: 38px; height: 38px; border-radius: var(--r-sm);
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--ink-2);
}
.settings-row-icon .ic { width: 18px; height: 18px; }
.settings-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.settings-row-text b { font-size: .95rem; color: var(--ink); font-weight: 600; }
.settings-row-text small { font-size: .8rem; color: var(--muted); }
.settings-row-chev { flex: none; width: 18px; height: 18px; color: var(--faint); }
.settings-row-badge {
  flex: none; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px;
  background: var(--primary); color: var(--primary-ink); font-size: .72rem; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.settings-back {
  display: inline-flex; align-items: center; gap: 5px; margin-bottom: 8px;
  color: var(--muted); text-decoration: none; font-size: .84rem; font-weight: 600;
}
.settings-back:hover { color: var(--ink); }
.settings-back .ic { width: 14px; height: 14px; }

@media (max-width: 640px) {
  .prof-grid { grid-template-columns: 1fr; }
  .prof-hero { padding: 20px; }
}

/* =========================================================================
   Yanlış soru havuzu
   ========================================================================= */
.mq-filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.mq-fc {
  display: inline-block; margin-left: 4px; padding: 0 6px;
  border-radius: 999px; background: var(--line-strong); font-size: .78em; font-weight: 600;
}
.badge-fchip.on .mq-fc { background: color-mix(in srgb, var(--surface) 35%, transparent); }

.mq-grid {
  display: grid; gap: 14px;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  margin-bottom: 22px;
}
.mq-card {
  display: flex; flex-direction: column; text-align: left;
  padding: 0; border: 1px solid var(--line); border-radius: var(--r);
  background: var(--surface); cursor: pointer; overflow: hidden;
  transition: border-color .12s, box-shadow .12s, transform .12s;
}
.mq-card:hover {
  border-color: var(--color-gold);
  box-shadow: 0 10px 24px -14px #1a1a1a4d;
  transform: translateY(-2px);
}
.mq-card:focus-visible { outline: 2px solid var(--color-gold); outline-offset: 2px; }
.mq-thumb {
  display: block; width: 100%; aspect-ratio: 4 / 3;
  background: var(--surface-2) center / cover no-repeat;
  border-bottom: 1px solid var(--line);
}
.mq-info { display: flex; flex-direction: column; gap: 3px; padding: 10px 12px 12px; }
.mq-subject { font-size: .82rem; font-weight: 600; color: var(--ink); }
.mq-topic {
  font-size: .78rem; color: var(--ink-2);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mq-date { font-size: .72rem; color: var(--muted); }

.mq-hero .statrow .stat { justify-content: center; min-height: 84px; }

.mq-add-modal { width: min(540px, calc(100vw - 32px)); }
.mq-add-modal form { display: block; }

/* fotoğraf seçici — native picker yerine bırakma alanı */
.mq-file {
  position: relative; display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 12px 14px; cursor: pointer;
  border: 1.5px dashed var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface-2); transition: border-color .12s, background .12s;
}
.mq-file:hover, .mq-file:focus-within { border-color: var(--color-gold); background: var(--primary-wash); }
.mq-file.has-file { border-style: solid; background: var(--surface); }
.mq-file-input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  opacity: 0; cursor: pointer;
}
.mq-file-empty { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.mq-file-empty[hidden], .mq-file-picked[hidden] { display: none; }
.mq-file-empty .ic { width: 18px; height: 18px; color: var(--color-gold); }
.mq-file-empty b { font-size: .9rem; font-weight: 600; color: var(--ink); }
.mq-file-empty small { color: var(--muted); font-size: .76rem; }
.mq-file-picked { display: flex; align-items: center; gap: 12px; width: 100%; }
.mq-file-thumb {
  width: 46px; height: 46px; flex: none; object-fit: cover;
  border-radius: var(--r-sm); border: 1px solid var(--line);
}
.mq-file-name {
  flex: 1; font-size: .84rem; color: var(--ink);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mq-file-change {
  flex: none; position: relative; z-index: 1;
  font-size: .78rem; font-weight: 600; color: var(--color-gold-hover);
}

.mq-ac { position: relative; }
.mq-ac-input { width: 100%; }
.mq-ac-results {
  position: fixed; z-index: 90;
  max-height: 360px; overflow-y: auto;
  background: var(--surface); border: 1px solid var(--line-strong);
  border-radius: var(--r-sm); box-shadow: 0 18px 40px -12px #1a1a1a55;
}
.mq-ac-opt {
  display: block; width: 100%; text-align: left; cursor: pointer;
  padding: 10px 14px; border: 0; border-bottom: 1px solid var(--line);
  background: transparent;
}
.mq-ac-opt:last-child { border-bottom: 0; }
.mq-ac-opt:hover { background: var(--paper); }
.mq-ac-opt b { display: block; font-size: .85rem; font-weight: 600; color: var(--ink); }
.mq-ac-opt span { font-size: .74rem; color: var(--muted); }
.mq-ac-none { padding: 10px 12px; margin: 0; font-size: .8rem; color: var(--muted); }
.mq-formerr {
  margin: 10px 0 0; padding: 8px 10px; border-radius: var(--r-sm);
  background: var(--neg-wash); color: var(--neg); font-size: .84rem;
}

.mq-view-modal { width: min(560px, calc(100vw - 32px)); position: relative; }
.mq-view-modal .pm-x {
  position: absolute; top: 8px; right: 8px; z-index: 1;
  background: #ffffffcc; border-radius: 999px; width: 28px; height: 28px;
}
.mq-view-img { background: #14130f; max-height: 62vh; overflow: auto; }
.mq-view-img img { display: block; width: 100%; height: auto; }
.mq-view-body { padding: 14px 18px 18px; }
.mq-view-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.mq-view-note {
  margin: 10px 0 0; font-size: .9rem; color: var(--ink-2);
  white-space: pre-wrap; line-height: 1.5;
}
.mq-view-foot {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; margin-top: 14px;
}
.mq-view-foot .mq-del { color: var(--neg); border-color: var(--neg); }
.mq-view-foot .mq-del:hover { background: var(--neg); color: #fff; }

@media (max-width: 560px) {
  .mq-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
  .mq-info { padding: 8px 10px 10px; }
}

/* =========================================================================
   content — ders videoları
   ========================================================================= */
.vid-thumb {
  position: relative; aspect-ratio: 16 / 9;
  display: flex; align-items: center; justify-content: center;
}
.vid-play {
  display: flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: #1a1a1acc; color: #fff;
  transition: background .12s, transform .12s;
}
.vid-play .ic { width: 26px; height: 26px; }
.mq-card:hover .vid-play { background: var(--color-gold); color: var(--color-black); transform: scale(1.06); }

.vid-player {
  aspect-ratio: 16 / 9; width: 100%; margin-bottom: 18px;
  border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; background: #000;
}
.vid-player iframe { width: 100%; height: 100%; border: 0; display: block; }

.vid-meta { padding: 18px 22px; }
.vid-meta .ov-hero-head { min-height: 0; padding: 0; border: 0; }
.vid-desc {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line);
  font-size: .92rem; color: var(--ink-2); white-space: pre-wrap; line-height: 1.6;
}
.vid-del-form { display: inline; }
.vid-del { color: var(--neg); border-color: var(--neg); }
.vid-del:hover { background: var(--neg); color: #fff; }
.vid-more-title { font-size: 1.05rem; margin: 6px 0 12px; }

.vid-help {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 18px; font-size: .88rem;
}
.vid-help > summary {
  list-style: none; cursor: pointer; padding: 12px 16px;
  font-weight: 600; color: var(--ink); display: flex; align-items: center; gap: 8px;
}
.vid-help > summary::-webkit-details-marker { display: none; }
.vid-help > summary::before {
  content: "?"; flex-shrink: 0;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--primary-wash); color: var(--warn-ink);
  font-size: .78rem; font-weight: 700; line-height: 18px; text-align: center;
}
.vid-help[open] > summary { border-bottom: 1px solid var(--line); }
.vid-help-body { padding: 12px 16px 14px; color: var(--ink-2); line-height: 1.6; }
.vid-help-body p { margin-bottom: 8px; }
.vid-help-body ul { margin: 0 0 8px; padding-left: 18px; }
.vid-help-body li { margin-bottom: 4px; }

/* =========================================================================
   messaging — öğrenci ↔ koç sohbeti
   ========================================================================= */
.msg-thread {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden; height: clamp(440px, 62vh, 640px);
}
.msg-list {
  flex: 1; overflow-y: auto; padding: 18px; background: var(--paper);
  display: flex; flex-direction: column; gap: 10px;
}
.msg-empty { margin: auto; text-align: center; }
.msg-bubble {
  max-width: 68%; align-self: flex-start;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 9px 12px;
}
.msg-bubble.mine { align-self: flex-end; background: var(--primary-wash); border-color: var(--primary-wash); }
.msg-bubble p { font-size: .92rem; white-space: pre-wrap; }
.msg-bubble .msg-meta { display: block; margin-top: 4px; font-size: .7rem; color: var(--muted); text-align: right; }
.msg-bubble .msg-img img { display: block; max-width: 220px; border-radius: 8px; margin-bottom: 6px; }
.msg-bubble audio { display: block; max-width: 240px; margin-bottom: 6px; }

.msg-composer { border-top: 1px solid var(--line); background: var(--surface); padding: 12px 14px; }
.msg-formerr { color: var(--neg); font-size: .82rem; margin-bottom: 8px; }
.msg-preview-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 8px; }
.msg-preview-chip {
  display: flex; align-items: center; gap: 6px;
  background: var(--paper); border: 1px solid var(--line); border-radius: 8px;
  padding: 4px 8px; font-size: .8rem;
}
.msg-preview-row[hidden], .msg-preview-chip[hidden] { display: none; }
.msg-preview-chip img { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; }
.msg-chip-x { border: 0; background: transparent; color: var(--muted); font-size: 1rem; line-height: 1; cursor: pointer; }
.msg-chip-x:hover { color: var(--ink); }

.msg-input-row { display: flex; align-items: flex-end; gap: 8px; }
.msg-input-pill {
  flex: 1; min-width: 0; min-height: 44px;
  display: flex; align-items: flex-end; gap: 2px;
  border: 1px solid var(--line); border-radius: 22px;
  padding: 4px; background: var(--surface); transition: border-color .12s;
}
.msg-input-pill:focus-within { border-color: var(--color-gold); }
.msg-icon-btn {
  position: relative; flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; margin: 0; border-radius: 50%; border: 0;
  background: transparent; color: var(--muted); cursor: pointer;
  transition: background .12s, color .12s;
}
.msg-icon-btn:hover { background: var(--paper); color: var(--ink); }
.msg-icon-btn .ic { width: 18px; height: 18px; }
.msg-icon-btn.is-recording { background: var(--neg-wash); color: var(--neg); animation: msg-pulse 1.2s infinite; }
@keyframes msg-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .55; } }
#msg-image-input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; }
#msg-voice-input { display: none; }

.msg-text-input {
  flex: 1; min-width: 0; resize: none;
  border: 0; background: transparent; outline: none;
  padding: 6px; margin: 0;
  height: 34px; min-height: 34px; max-height: 120px;
  font-family: var(--font); font-size: .92rem; line-height: 20px; color: var(--ink);
}
.msg-text-input::placeholder { color: var(--muted); }

/* buton yüksekliği pill ile aynı: 34px içerik + 4px*2 padding + 1px*2 kenarlık */
#msg-send-btn { flex-shrink: 0; height: 44px; padding: 0 22px; border-radius: 22px; }

/* koç gelen kutusu: sol öğrenci listesi + sağ sohbet — tek yükseklikte iki panel */
.msg-inbox {
  display: grid; grid-template-columns: 288px minmax(0, 1fr); gap: 16px;
  height: calc(100vh - 128px); min-height: 480px;
}
.msg-convos {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  overflow: hidden;
}
.msg-convos-head { flex-shrink: 0; padding: 12px 14px 10px; border-bottom: 1px solid var(--line); }
.msg-convos-title { font-size: .95rem; margin-bottom: 8px; }
.msg-convo-search {
  width: 100%; height: 32px; padding: 0 10px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--paper);
  font-family: var(--font); font-size: .85rem; color: var(--ink);
}
.msg-convo-search:focus { outline: none; border-color: var(--color-gold); background: var(--surface); }
.msg-convo-list { flex: 1; overflow-y: auto; }
.msg-convo {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line); color: var(--ink);
}
.msg-convo[hidden] { display: none; }
.msg-convo:hover { background: var(--paper); }
.msg-convo.on { background: var(--primary-wash); }
.msg-convo-avatar {
  flex-shrink: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink); color: var(--color-white);
  display: flex; align-items: center; justify-content: center;
  font-size: .76rem; font-weight: 700;
}
.msg-convo-main { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.msg-convo-name { font-size: .9rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-convo-snip { font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-convo-badge {
  flex-shrink: 0; min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--color-gold); color: var(--color-white);
  font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
.msg-convos-empty { padding: 16px; }

.msg-pane {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden;
}
.msg-pane-head {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 16px; border-bottom: 1px solid var(--line);
}
.msg-pane-head b { font-size: .98rem; font-weight: 600; }
.msg-pane-link { font-size: .82rem; }

/* öğrenci: tek sohbet (kişi listesi yok) — koç panelindeki sağ panelle aynı */
.msg-inbox--solo { grid-template-columns: minmax(0, 1fr); }

/* sohbet paneli başlığı: avatar + ad + alt satır + eylem butonu */
.msg-pane-head--rich { padding: 11px 14px; }
.mph-id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.mph-id .avatar { width: 36px; height: 36px; flex: none; font-size: .8rem; }
.mph-txt { display: flex; flex-direction: column; min-width: 0; line-height: 1.3; }
.mph-txt b { font-size: .95rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mph-txt span { font-size: .77rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.msg-pane-head--rich .btn { flex: none; }
.msg-pane .msg-thread { flex: 1; height: auto; min-height: 0; border: 0; border-radius: 0; }
.msg-pane-empty {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 20px; text-align: center;
}

@media (max-width: 760px) {
  .msg-inbox { grid-template-columns: 1fr; height: auto; }
  .msg-convos { max-height: 300px; }
  .msg-pane { height: 70vh; }
}

@media (max-width: 560px) {
  .msg-bubble { max-width: 84%; }
  .msg-thread { height: clamp(420px, 72vh, 640px); }
}

/* =========================================================================
   Responsive — ortak kırılım kuralları (dosya sonunda: tüm bileşenlerden
   sonra gelsin ki media override'ları temel kuralları geçebilsin)
   ========================================================================= */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr; }
  .metrics { grid-template-columns: 1fr 1fr; }
  .metric:nth-child(3) { border-left: 0; }
  .metric:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .cols-2 { grid-template-columns: 1fr; }
  .app-shell { grid-template-columns: 1fr; gap: 24px; }
  .sidebar { position: static; }
  .sb-group { margin-bottom: 10px; }
  .sb-nav { flex-flow: row wrap; gap: 4px; }
  .sb-nav a { height: 34px; }
  .sb-card { display: none; }
  .score-band { grid-template-columns: 1fr; }
  .sb-score { border-right: 0; border-bottom: 1px solid var(--line-on-dark); }
  .comp-grid { grid-template-columns: 1fr; }
  .comp-grid > .comp:nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .comp-grid > .comp:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .sb-score, .sb-chart { padding-left: 20px; padding-right: 20px; }
  .sb-stats { flex-wrap: wrap; gap: 14px 20px; }
  .sb-vals, .sb-days, .sb-bars { gap: 6px; }
  .sb-vals span, .sb-days span { font-size: .68rem; }
}
@media (max-width: 560px) {
  .metrics { grid-template-columns: 1fr; }
  .metric { border-left: 0; border-bottom: 1px solid var(--line); }
  .metric:last-child { border-bottom: 0; }
  .site-nav { gap: 14px; }
  .sb-big b { font-size: 3.4rem; }
  .trend { gap: 7px; }
  .trend-v, .trend-m { font-size: .68rem; }
}

/* ---------------------------------------------------------------------------
   GRIT AI (gritai)
--------------------------------------------------------------------------- */
/* iki panel tek yükseklikte: sol konuşma listesi + sağ sohbet (messaging deseni) */
.ai-inbox {
  display: grid; grid-template-columns: 248px minmax(0, 1fr); gap: 16px;
  height: calc(100vh - 128px); min-height: 480px;
}

.ai-convos {
  display: flex; flex-direction: column; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.ai-convos-head { flex: none; padding: 12px; border-bottom: 1px solid var(--line); }
.ai-new-btn {
  width: 100%; display: flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 12px; border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  background: var(--surface); color: var(--ink); font: inherit; font-weight: 600; cursor: pointer;
}
.ai-new-btn:hover { background: var(--paper); }
.ai-new-btn .ic { width: 15px; height: 15px; }
.ai-convo-list { flex: 1; overflow-y: auto; }
.ai-convos-empty { padding: 16px; font-size: .85rem; }
.ai-convo {
  position: relative; display: flex; align-items: center;
  border-bottom: 1px solid var(--line);
}
.ai-convo:hover { background: var(--paper); }
.ai-convo.on { background: var(--primary-wash); }
.ai-convo-link {
  flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.35;
  padding: 10px 4px 10px 12px; color: var(--ink); text-decoration: none;
}
.ai-convo-name { font-size: .88rem; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ai-convo-sub { font-size: .74rem; color: var(--muted); }
.ai-convo-actions { flex: none; position: relative; }
.ai-convo-menu-btn {
  display: flex; align-items: center; justify-content: center;
  width: 30px; height: 30px; margin-right: 4px; border: 0; border-radius: 50%;
  background: transparent; color: var(--muted); cursor: pointer; opacity: 0;
}
.ai-convo:hover .ai-convo-menu-btn,
.ai-convo.on .ai-convo-menu-btn { opacity: 1; }
.ai-convo-menu-btn:hover { background: var(--surface-2); color: var(--ink); }
.ai-convo-menu-btn .ic { width: 16px; height: 16px; }
.ai-convo-menu {
  position: absolute; right: 4px; top: 32px; z-index: 5; min-width: 130px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .25); overflow: hidden;
}
.ai-convo-menu button {
  width: 100%; text-align: left; border: 0; background: transparent;
  padding: 9px 12px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer;
}
.ai-convo-menu button:hover { background: var(--paper); }
.ai-menu-danger { color: var(--neg); }

.ai-toast {
  position: fixed; left: 50%; bottom: 24px; z-index: 60; max-width: calc(100vw - 32px);
  display: flex; align-items: center; gap: 14px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r-sm);
  box-shadow: 0 12px 32px -8px rgba(0, 0, 0, .3); padding: 12px 16px;
  font-size: .86rem; color: var(--ink);
  opacity: 0; transform: translate(-50%, 8px); pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}
.ai-toast.is-visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.ai-toast-undo {
  flex: none; border: 0; background: transparent; color: var(--primary);
  font: inherit; font-weight: 700; cursor: pointer; padding: 2px 4px;
}
.ai-toast-undo:hover { text-decoration: underline; }

.ai-pane {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
}
.ai-pane-head {
  flex: none; display: flex; align-items: center; gap: 10px;
  padding: 11px 14px; border-bottom: 1px solid var(--line);
}
.ai-pane-id { display: flex; align-items: center; min-width: 0; flex: 1; }
.ai-pane-id b {
  min-width: 0; font-size: .95rem; font-weight: 600;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.ai-convos-toggle { display: none; }

.ai-stream {
  flex: 1; overflow-y: auto; padding: 20px;
  display: flex; flex-direction: column; gap: 18px; background: var(--paper);
}
.ai-msg { display: flex; }
.ai-msg--user { justify-content: flex-end; }
.ai-bubble {
  max-width: 82%; padding: 11px 15px; border-radius: 15px;
  line-height: 1.6; color: var(--ink); font-size: .93rem;
  border: 1px solid var(--line); background: var(--surface);
}
.ai-msg--user .ai-bubble {
  border-color: var(--primary-wash);
  background: var(--primary-wash); color: var(--primary-ink);
}
.ai-msg--assistant.is-pending .ai-bubble { color: var(--muted); }
.ai-msg--error .ai-bubble {
  border-color: var(--neg-wash);
  background: var(--neg-wash); color: var(--neg-ink);
}
.ai-prose > :first-child { margin-top: 0; }
.ai-prose > :last-child { margin-bottom: 0; }
.ai-prose p { margin: 0 0 8px; }
.ai-prose .mmd-h { font-weight: 700; margin: 12px 0 4px; }
.ai-prose ul { margin: 4px 0 10px; padding-left: 20px; }
.ai-prose li { margin-bottom: 3px; }
.ai-prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .86em;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 4px; padding: 1px 4px;
}

.ai-empty { margin: auto; text-align: center; max-width: 400px; padding: 24px 16px; }
.ai-empty-ic { width: 30px; height: 30px; color: var(--primary); }
.ai-empty h2 { font-size: 1.1rem; margin: 12px 0 4px; }
.ai-empty p { color: var(--muted); margin: 0; font-size: .9rem; }
.ai-starters { display: flex; flex-direction: column; gap: 8px; margin-top: 18px; }
.ai-starter {
  border: 1px solid var(--line); border-radius: var(--r-sm); padding: 9px 13px;
  background: var(--surface); color: var(--ink); font: inherit; font-size: .88rem;
  text-align: left; cursor: pointer;
}
.ai-starter:hover { background: var(--paper); border-color: var(--line-strong); }

/* sohbete özel hızlı mesajlar (yazı kutusunun üstünde) */
.ai-quick {
  flex: none; display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 14px; background: var(--surface);
}
.ai-quick:not(:empty) { padding: 10px 14px 2px; }
.ai-quick-chip {
  border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px;
  background: var(--surface); color: var(--ink-2); font: inherit; font-size: .8rem;
  cursor: pointer; white-space: nowrap;
}
.ai-quick-chip:hover { background: var(--paper); border-color: var(--line-strong); color: var(--ink); }

.ai-composer { flex: none; padding: 12px 14px; border-top: 1px solid var(--line); background: var(--surface); }
.ai-mode-picker { position: relative; flex: none; align-self: center; }
.ai-mode-trigger {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; border-radius: 999px; padding: 8px 12px; min-height: 32px;
  background: transparent; color: var(--ink-2); font: inherit; font-size: .8rem;
  font-weight: 500; cursor: pointer;
}
.ai-mode-trigger:hover { background: var(--paper); color: var(--ink); }
.ai-mode-trigger .ic { width: 13px; height: 13px; flex: none; }
.ai-mode-chev { width: 11px; height: 11px; color: var(--muted); }
.ai-mode-menu {
  position: absolute; right: 0; bottom: calc(100% + 6px); z-index: 5; min-width: 200px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-sm);
  box-shadow: 0 8px 24px -8px rgba(0, 0, 0, .25); padding: 4px;
}
.ai-mode-option {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; text-align: left; border: 0; border-radius: var(--r-sm); background: transparent;
  padding: 8px 9px; font: inherit; font-size: .85rem; color: var(--ink); cursor: pointer;
}
.ai-mode-option:hover { background: var(--paper); }
.ai-mode-option-right { display: flex; align-items: center; gap: 7px; flex: none; }
.ai-mode-check { width: 14px; height: 14px; color: var(--primary); opacity: 0; flex: none; }
.ai-mode-option.on .ai-mode-check { opacity: 1; }

.ai-mode-info {
  display: flex; align-items: center; justify-content: center;
  width: 16px; height: 16px; color: var(--faint); cursor: help; position: relative;
}
.ai-mode-info .ic { width: 14px; height: 14px; }
.ai-mode-info:hover { color: var(--muted); }
.ai-mode-info[data-tip]::after {
  content: attr(data-tip);
  position: absolute; bottom: calc(100% + 9px); right: -8px;
  width: max-content; max-width: 220px;
  padding: 9px 12px; border-radius: var(--r-sm);
  background: var(--color-black); color: var(--ink-on-dark);
  font-size: .78rem; font-weight: 400; line-height: 1.45; text-align: left;
  white-space: normal;
  box-shadow: 0 10px 30px -10px #1a1a1a55;
  opacity: 0; visibility: hidden; transform: translateY(3px);
  transition: opacity .14s, transform .14s, visibility .14s;
  z-index: 60; pointer-events: none;
}
.ai-mode-info[data-tip]::before {
  content: ""; position: absolute; bottom: calc(100% + 3px); right: 4px;
  border: 6px solid transparent; border-top-color: var(--color-black);
  opacity: 0; visibility: hidden; transition: opacity .14s, visibility .14s; z-index: 60;
}
.ai-mode-info[data-tip]:hover::after, .ai-mode-info[data-tip]:hover::before {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.ai-input-pill {
  display: flex; align-items: flex-end; gap: 6px;
  border: 1px solid var(--line-strong); border-radius: 22px; padding: 4px 4px 4px 6px;
  background: var(--surface); transition: border-color .12s;
}
.ai-input-pill:focus-within { border-color: var(--primary); }
.ai-input-pill textarea {
  flex: 1; min-width: 0; width: auto; resize: none;
  border: 0; background: transparent; box-shadow: none;
  height: auto; min-height: 32px; max-height: 160px; padding: 6px 6px;
  font: inherit; font-size: .93rem; line-height: 1.5; color: var(--ink);
}
.ai-input-pill textarea:focus {
  outline: none; border: 0; box-shadow: none;
}
.ai-send-btn {
  flex: none; width: 36px; height: 36px; border-radius: 50%; border: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  background: var(--color-gold); color: var(--color-black);
}
.ai-send-btn:hover:not(:disabled) { background: var(--color-gold-hover); }
.ai-send-btn:disabled { opacity: .45; cursor: default; }
.ai-send-btn .ic { width: 16px; height: 16px; }
.ai-convos-scrim { position: fixed; inset: 0; background: var(--backdrop); z-index: 40; }

@media (max-width: 860px) {
  .ai-inbox { grid-template-columns: 1fr; height: calc(100vh - 116px); }
  .ai-convos {
    position: fixed; left: 0; top: 0; bottom: 0; width: 280px; z-index: 41;
    border-radius: 0; transform: translateX(-100%); transition: transform .2s ease;
  }
  .ai-convos.is-open { transform: none; }
  .ai-convos-toggle {
    display: inline-flex; border: 0; background: transparent; color: var(--ink-2);
    cursor: pointer; padding: 2px; flex: none;
  }
}
@media (min-width: 861px) { .ai-convos-scrim { display: none; } }

/* Eğitimler — 7 kademeli gelişim programı */
.tr-levels { display: flex; flex-direction: column; gap: 10px; }
.tr-level {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  color: var(--ink); text-decoration: none;
}
a.tr-level:hover { border-color: var(--line-strong); }
.tr-level--locked { opacity: .65; }
.tr-level-num {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: var(--paper); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: .88rem;
}
.tr-level-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.tr-level-sub { font-size: .82rem; color: var(--muted); }
.tr-answer { display: block; font-size: .82rem; color: var(--ink-2); margin-top: 4px; }
.tr-answer b { color: var(--ink); margin-right: 4px; }
.tr-level-lock { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; }
.tr-level-side { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.tr-level-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }

.tr-video-list { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.tr-vitem {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--r-sm); font-size: .88rem;
  background: var(--surface); border: 1px solid var(--line);
}
.tr-vitem .ic { width: 16px; height: 16px; flex-shrink: 0; }
.tr-vitem.is-done { color: var(--pos); border-color: var(--pos-line); background: var(--pos-wash); }
.tr-vitem.is-current { color: var(--warn-ink); border-color: var(--primary); font-weight: 600; }
.tr-vitem.is-locked { color: var(--muted); }

.tr-video-row {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 0; border-bottom: 1px solid var(--line);
}
.tr-video-row:last-child { border-bottom: 0; }
.tr-video-row-title { font-weight: 500; }
.tr-video-row-actions { display: flex; gap: 8px; flex-shrink: 0; }

.tr-pane-body { flex: 1; overflow-y: auto; padding: 16px; }

/* Paket detay sayfası */
.pkg-detail { max-width: 720px; padding-block: 32px; }

.pkg-hero {
  text-align: center; padding: 36px 28px 30px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r);
  margin-bottom: 20px;
}
.pkg-hero h1 { font-size: 1.85rem; }
.pkg-hero-sub { color: var(--muted); font-size: 1rem; margin: 6px 0 0; }
.pkg-tag { position: static; display: inline-block; margin: 0 0 14px; }

.pkg-price-row { display: flex; align-items: baseline; justify-content: center; gap: 14px; margin: 22px 0 26px; flex-wrap: wrap; }
.pkg-price { font-size: 2.6rem; font-weight: 800; letter-spacing: -.03em; }
.pkg-price small { font-size: 1rem; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pkg-duration {
  font-size: .82rem; font-weight: 600; color: var(--warn-ink); background: var(--primary-wash);
  padding: 4px 12px; border-radius: 999px; align-self: center;
}

.pkg-cta { display: flex; width: 100%; max-width: 360px; margin: 0 auto; justify-content: center; font-size: 1rem; font-weight: 700; --h: 50px; }
.pkg-hero .lp-fine { margin-top: 12px; }

.pkg-desc-block .block-body { border-left: 3px solid var(--primary); }
.pkg-desc { white-space: pre-wrap; line-height: 1.7; color: var(--ink-2); font-size: .98rem; }

.pkg-feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 16px; }
.pkg-feature { display: flex; align-items: center; gap: 10px; font-size: .95rem; font-weight: 500; }
.pkg-feature-check {
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  width: 22px; height: 22px; border-radius: 50%; background: var(--pos-wash);
}
.pkg-feature-check .ic { width: 13px; height: 13px; color: var(--pos); }

.pkg-actions { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap; }
.pkg-quota { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; font-weight: 600; color: var(--pos); }
.pkg-quota .ic { width: 16px; height: 16px; flex-shrink: 0; }
.pkg-quota--low { color: var(--warn); }
.pkg-quota--full { color: var(--neg); }
