/* CodebilEdu — arayüz stilleri
   Codebil kırmızısı + okuma lambası sarısı; kitaplar gerçek kapak gibi raflarda durur.
   Eski bilgisayarlar için: color-mix desteklemeyen tarayıcılarda düz renk yedekleri vardır. */
:root {
  --bg: #f7f4f3;
  --surface: #ffffff;
  --surface-2: #f3ebea;
  --ink: #1d1416;
  --muted: #6c5e61;
  --line: #e7dcdb;
  --brand: #c0141f;
  --brand-strong: #9a0f18;
  --brand-ink: #ffffff;
  --brand-soft: #fde8e9;
  --accent: #e39b00;
  --accent-soft: #fff0c7;
  --accent-ink: #5a3b00;
  --good: #1a8f4d;
  --good-soft: #dcf3e5;
  --warn: #c76a00;
  --warn-soft: #ffeccc;
  --bad: #c62828;
  --bad-soft: #fde2e2;
  --shadow: 0 1px 2px rgba(40, 10, 14, .06), 0 6px 18px rgba(40, 10, 14, .07);
  --paper: #fffdf8;
  --paper-ink: #1d1a14;
  --lv-anaokulu: #e08a00;
  --lv-ilkokul: #13906a;
  --lv-ortaokul: #4f57d6;
  --lv-genel: #c2264d;
  --f-display: 'Lexend', 'Segoe UI', system-ui, sans-serif;
  --f-body: 'Inter', 'Segoe UI', system-ui, sans-serif;
  --f-read-young: 'Andika', 'Lexend', system-ui, sans-serif;
  --f-read: 'Literata', Georgia, 'Times New Roman', serif;
  --r-sm: 8px;
  --r: 14px;
  --r-lg: 22px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #141012; --surface: #1d1719; --surface-2: #2a2023; --ink: #f2eaeb; --muted: #ab9a9d; --line: #3b2f32;
    --brand: #e5343e; --brand-strong: #ff5a63; --brand-ink: #ffffff; --brand-soft: #3a1418;
    --accent: #f5b82e; --accent-soft: #3a2d0c; --accent-ink: #ffe3a1;
    --good: #45c27b; --good-soft: #143224; --warn: #f0a24a; --warn-soft: #3a2810; --bad: #f07070; --bad-soft: #3b1717;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .25);
    --paper: #1b1915; --paper-ink: #ece5d8;
    --lv-anaokulu: #f5a524; --lv-ilkokul: #3cc596; --lv-ortaokul: #8b92ff; --lv-genel: #f2668a;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #141012; --surface: #1d1719; --surface-2: #2a2023; --ink: #f2eaeb; --muted: #ab9a9d; --line: #3b2f32;
  --brand: #e5343e; --brand-strong: #ff5a63; --brand-ink: #ffffff; --brand-soft: #3a1418;
  --accent: #f5b82e; --accent-soft: #3a2d0c; --accent-ink: #ffe3a1;
  --good: #45c27b; --good-soft: #143224; --warn: #f0a24a; --warn-soft: #3a2810; --bad: #f07070; --bad-soft: #3b1717;
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 22px rgba(0, 0, 0, .25);
  --paper: #1b1915; --paper-ink: #ece5d8;
  --lv-anaokulu: #f5a524; --lv-ilkokul: #3cc596; --lv-ortaokul: #8b92ff; --lv-genel: #f2668a;
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 15px/1.55 var(--f-body);
  min-height: 100vh;
}
img { max-width: 100%; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { font-family: var(--f-display); line-height: 1.1; margin: 0; text-wrap: balance; letter-spacing: -.01em; }
h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 800; }
h2 { font-size: clamp(22px, 3vw, 28px); font-weight: 700; }
h3 { font-size: 19px; font-weight: 700; }
p { margin: 0; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 6px; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.eyebrow { font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* ---------- Üst çubuk ---------- */
.topbar {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar-in { max-width: 1200px; margin: 0 auto; padding: 10px 16px; display: flex; align-items: center; gap: 18px; }
.logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo-mark {
  width: 36px; height: 36px; border-radius: 10px; background: var(--brand); display: grid; place-items: center;
}
.logo-mark svg { width: 22px; height: 22px; }
.logo-text { font-family: var(--f-display); font-weight: 800; font-size: 21px; letter-spacing: -.02em; line-height: 1; }
.logo-text b { color: var(--brand); font-weight: 800; }
.nav { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  padding: 8px 12px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 500; white-space: nowrap; font-size: 14px;
}
.nav a:hover { color: var(--ink); background: var(--surface-2); }
.nav a.on { color: var(--brand-ink); background: var(--brand); }
.top-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.pts-chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px 5px 8px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent-ink); font-weight: 600; font-size: 13px; text-decoration: none;
}
.avatar-btn {
  width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--line); background: var(--surface);
  font-size: 20px; display: grid; place-items: center; cursor: pointer; padding: 0;
}
.menu { position: relative; }
.menu-pop {
  position: absolute; right: 0; top: calc(100% + 8px); background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r); box-shadow: var(--shadow); min-width: 220px; padding: 6px; z-index: 40;
}
.menu-pop a, .menu-pop button {
  display: block; width: 100%; text-align: left; padding: 9px 12px; border-radius: 8px; color: var(--ink);
  text-decoration: none; background: none; border: 0; cursor: pointer; font-size: 14px;
}
.menu-pop a:hover, .menu-pop button:hover { background: var(--surface-2); }
.menu-head { padding: 10px 12px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.theme-btn { width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); cursor: pointer; display: grid; place-items: center; padding: 0; }
.theme-btn svg { width: 18px; height: 18px; }

/* ---------- Sayfa ---------- */
.page { max-width: 1200px; margin: 0 auto; padding: 24px 16px 64px; display: grid; gap: 28px; }
.page-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 6px; }
.section { display: grid; gap: 14px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.section-head a { font-size: 14px; font-weight: 500; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 20px; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 20px; align-items: start; }
@media (max-width: 900px) { .split { grid-template-columns: 1fr; } }

.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; min-width: 0; }
.panel-tight { padding: 14px; }
.panel h3 + * { margin-top: 12px; }

/* ---------- Düğmeler ve formlar ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid transparent;
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; text-decoration: none;
  background: var(--brand); color: var(--brand-ink); transition: transform .12s ease, background .12s ease; white-space: nowrap;
}
.btn:hover { background: var(--brand-strong); }
.btn:active { transform: translateY(1px); }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.btn-ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--surface-2); }
.btn-accent { background: var(--accent); color: #2a1c00; }
.btn-accent:hover { background: #c98a00; background: color-mix(in srgb, var(--accent) 85%, #000); }
.btn-danger { background: var(--bad-soft); color: var(--bad); }
.btn-danger:hover { background: var(--bad); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-icon { width: 40px; height: 40px; padding: 0; border-radius: 50%; }

.field { display: grid; gap: 6px; min-width: 0; }
.field > span { font-size: 13px; font-weight: 600; }
.field small { color: var(--muted); font-size: 12px; }
.input, .select, .textarea {
  width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  outline: none; transition: border-color .12s, box-shadow .12s;
}
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-soft); }
.textarea { min-height: 110px; resize: vertical; line-height: 1.6; }
.form { display: grid; gap: 14px; }
.form-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); gap: 14px; }
.form-error { background: var(--bad-soft); color: var(--bad); padding: 10px 14px; border-radius: 12px; font-size: 14px; }

.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip {
  border: 1px solid var(--line); background: var(--surface); padding: 6px 13px; border-radius: 999px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink); white-space: nowrap;
}
.chip:hover { border-color: var(--brand); }
.chip.on { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tab {
  padding: 10px 14px; border: 0; background: none; cursor: pointer; font-weight: 600; color: var(--muted);
  border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; font-size: 14px;
}
.tab.on { color: var(--ink); border-bottom-color: var(--brand); }

.pill { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.pill-good { background: var(--good-soft); color: var(--good); }
.pill-warn { background: var(--warn-soft); color: var(--warn); }
.pill-bad { background: var(--bad-soft); color: var(--bad); }
.pill-mute { background: var(--surface-2); color: var(--muted); }
.pill-brand { background: var(--brand-soft); color: var(--brand); }
.lv { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.lv::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--lvc, var(--muted)); }
.lv-anaokulu { --lvc: var(--lv-anaokulu); } .lv-ilkokul { --lvc: var(--lv-ilkokul); }
.lv-ortaokul { --lvc: var(--lv-ortaokul); } .lv-genel { --lvc: var(--lv-genel); }

/* ---------- Kitap kapağı ---------- */
.cover {
  position: relative; aspect-ratio: 3 / 4; width: 100%; max-width: 100%; border-radius: 4px 12px 12px 4px; overflow: hidden;
  background: var(--c, #456); color: #fff; display: flex; flex-direction: column; justify-content: space-between;
  padding: 10% 10% 9% 16%; box-shadow: 0 2px 4px rgba(0, 0, 0, .12), 0 10px 22px -8px rgba(0, 0, 0, .35);
  isolation: isolate;
}
.cover::before { /* sırt */
  content: ""; position: absolute; inset: 0 auto 0 0; width: 9%; z-index: -1;
  background: linear-gradient(90deg, rgba(0, 0, 0, .28), rgba(0, 0, 0, .08) 60%, rgba(255, 255, 255, .15));
}
.cover::after { /* doku */
  content: ""; position: absolute; inset: 0; z-index: -2;
  background: radial-gradient(120% 80% at 80% 0%, rgba(255, 255, 255, .22), transparent 55%),
              linear-gradient(180deg, transparent 55%, rgba(0, 0, 0, .28));
}
.cover-emoji { font-size: var(--ce, 46px); line-height: 1; filter: drop-shadow(0 3px 4px rgba(0, 0, 0, .2)); }
.cover-title { font-family: var(--f-display); font-weight: 700; font-size: var(--ct, 15px); line-height: 1.05; text-wrap: balance; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.cover-author { font-size: var(--ca, 10px); opacity: .85; margin-top: 4px; }
.cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -1; }
.cover-type { position: absolute; top: 8px; right: 8px; background: rgba(0, 0, 0, .45); color: #fff; font-size: 10px; font-weight: 600; padding: 2px 7px; border-radius: 999px; }

.books { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 26px 20px; }
.books-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(140px, 160px); gap: 20px; overflow-x: auto; padding: 4px 2px 14px; scroll-snap-type: x proximity; }
.books-row > * { scroll-snap-align: start; }
.book-card { display: grid; gap: 9px; text-decoration: none; color: inherit; min-width: 0; }
.book-card .cover { transition: transform .18s ease; }
.book-card:hover .cover { transform: translateY(-4px) rotate(-.6deg); }
.book-meta { display: grid; gap: 3px; min-width: 0; }
.book-title { font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.book-sub { font-size: 12px; color: var(--muted); display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.bar { height: 6px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
.bar.accent > i { background: var(--accent); }
.bar.lg { height: 10px; }

/* ---------- Ana sayfa ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 36px; align-items: center; padding-top: 12px; }
@media (max-width: 860px) { .hero { grid-template-columns: 1fr; } }
.hero h1 { font-size: clamp(36px, 6vw, 62px); line-height: .98; }
.hero h1 em { font-style: normal; color: var(--brand); position: relative; white-space: nowrap; }
.hero h1 em::after { content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .2em; background: var(--accent); opacity: .45; z-index: -1; border-radius: 4px; }
.hero-lead { font-size: 17px; color: var(--muted); max-width: 52ch; margin-top: 16px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
.shelf-art { position: relative; padding: 26px 22px 0; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.shelf-art .shelf-books { display: flex; align-items: end; gap: 10px; height: 220px; }
.shelf-art .shelf-books .cover { flex: 1 1 0; min-width: 0; width: auto; max-width: 150px; height: var(--h, 190px); --ce: 34px; --ct: 12px; padding: 12px 10px 10px 16px; }
.shelf-art .plank { height: 16px; margin: 0 -22px; background: linear-gradient(var(--accent), color-mix(in srgb, var(--accent) 70%, #000)); }
.shelf-art .lamp { position: absolute; right: 18px; top: 14px; font-size: 13px; color: var(--muted); }
.levels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.level-door {
  text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: 18px; display: grid; gap: 6px; position: relative; overflow: hidden; transition: border-color .15s, transform .15s;
}
.level-door:hover { border-color: var(--lvc); transform: translateY(-2px); }
.level-door .ld-top { display: flex; justify-content: space-between; align-items: center; }
.level-door .ld-name { font-family: var(--f-display); font-size: 24px; font-weight: 800; color: var(--lvc); }
.level-door .ld-ages { font-size: 13px; color: var(--muted); }
.level-door .ld-count { font-size: 13px; font-weight: 600; }
.level-door .ld-dot { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--lvc) 16%, transparent); display: grid; place-items: center; font-size: 22px; }
.stats-strip { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.stats-strip > div { background: var(--surface); padding: 18px 20px; }
.stats-strip b { display: block; font-family: var(--f-display); font-size: 30px; font-weight: 800; line-height: 1; }
.stats-strip span { font-size: 13px; color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 16px; counter-reset: s; }
.step { padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); display: grid; gap: 8px; }
.step::before { counter-increment: s; content: counter(s); width: 34px; height: 34px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--f-display); font-weight: 800; display: grid; place-items: center; font-size: 18px; }
.roles-band { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 16px; }
.role-card { padding: 20px; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 8px; align-content: start; }
.role-card ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; display: grid; gap: 4px; }
.announce { display: grid; gap: 4px; padding: 14px 16px; border-left: 4px solid var(--accent); background: var(--surface); border-radius: 0 var(--r) var(--r) 0; }

/* ---------- Panel ---------- */
.welcome { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 20px; align-items: center; padding: 24px; border-radius: var(--r-lg); background: var(--brand); color: var(--brand-ink); position: relative; overflow: hidden; }
@media (max-width: 700px) { .welcome { grid-template-columns: 1fr; } }
.welcome h1 { font-size: clamp(26px, 4vw, 36px); }
.welcome .muted { color: rgba(255,255,255,.82); color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.rank-box { background: rgba(255,255,255,.12); background: color-mix(in srgb, var(--brand-ink) 12%, transparent); border-radius: var(--r); padding: 14px 16px; min-width: 260px; display: grid; gap: 8px; }
.rank-box .bar { background: rgba(255,255,255,.22); background: color-mix(in srgb, var(--brand-ink) 22%, transparent); }
.rank-box .bar > i { background: var(--accent); }
.rank-line { display: flex; align-items: center; gap: 10px; }
.rank-line .re { font-size: 30px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 2px; min-width: 0; }
.tile b { font-family: var(--f-display); font-size: 28px; font-weight: 800; line-height: 1.05; }
.tile span { font-size: 12.5px; color: var(--muted); }
.tile .tile-k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.goal { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-items: center; }
.ring { --p: 0; width: 92px; height: 92px; border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--surface-2) 0); }
.ring > div { width: 72px; height: 72px; border-radius: 50%; background: var(--surface); display: grid; place-items: center; text-align: center; line-height: 1.05; }
.ring b { font-family: var(--f-display); font-size: 22px; }
.ring small { font-size: 10px; color: var(--muted); }
.streak { display: flex; gap: 5px; margin-top: 8px; flex-wrap: wrap; }
.streak i { width: 22px; height: 22px; border-radius: 6px; background: var(--surface-2); display: grid; place-items: center; font-style: normal; font-size: 10px; color: var(--muted); }
.streak i.on { background: var(--accent); color: #2a1c00; font-weight: 700; }
.cont-list { display: grid; gap: 12px; }
.cont { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--bg); text-decoration: none; color: inherit; }
.cont:hover { background: var(--surface-2); }
.cont .cover { --ce: 22px; --ct: 0px; padding: 6px 6px 6px 10px; }
.cont .cover .cover-title, .cont .cover .cover-author { display: none; }
.list { display: grid; gap: 2px; }
.list-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 4px; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.badge-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.badge { display: grid; gap: 4px; justify-items: center; text-align: center; padding: 16px 10px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); }
.badge .be { font-size: 38px; width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); }
.badge.locked { opacity: .55; }
.badge.locked .be { background: var(--surface-2); filter: grayscale(1); }
.badge b { font-size: 14px; }
.badge span { font-size: 12px; color: var(--muted); }
.mini-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.mini-badges span { width: 42px; height: 42px; border-radius: 50%; background: var(--accent-soft); display: grid; place-items: center; font-size: 22px; }

/* ---------- Grafik ---------- */
.chart { width: 100%; max-width: 820px; height: auto; display: block; }
.chart text { fill: var(--muted); font-size: 11px; font-family: var(--f-body); }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .b { fill: var(--brand); }
.chart .b.today { fill: var(--accent); }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; }

/* ---------- Tablo ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface); }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-size: 12px; font-weight: 600; color: var(--muted); padding: 11px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; background: var(--surface); cursor: default; }
th[data-sort] { cursor: pointer; }
th[data-sort]:hover { color: var(--ink); }
td { padding: 11px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: color-mix(in srgb, var(--surface-2) 50%, transparent); }
.person { display: flex; align-items: center; gap: 10px; min-width: 0; }
.person .av { width: 34px; height: 34px; border-radius: 50%; background: var(--surface-2); display: grid; place-items: center; font-size: 18px; flex-shrink: 0; }
.person b { font-weight: 600; display: block; line-height: 1.2; }
.person small { color: var(--muted); font-size: 12px; }
.td-num { text-align: right; font-variant-numeric: tabular-nums; }

/* ---------- Sıralama ---------- */
.podium { display: grid; grid-template-columns: 1fr 1.15fr 1fr; gap: 12px; align-items: end; max-width: 560px; margin: 0 auto; }
.podium > div { text-align: center; display: grid; gap: 6px; justify-items: center; }
.podium .pav { font-size: 40px; width: 72px; height: 72px; border-radius: 50%; background: var(--surface); border: 3px solid var(--line); display: grid; place-items: center; }
.podium .p1 .pav { border-color: var(--accent); width: 86px; height: 86px; font-size: 48px; }
.podium .step-b { width: 100%; border-radius: 12px 12px 0 0; background: var(--brand-soft); color: var(--brand); font-family: var(--f-display); font-weight: 800; font-size: 28px; display: grid; place-items: center; }
.podium .p1 .step-b { height: 110px; background: var(--accent-soft); color: var(--accent-ink); }
.podium .p2 .step-b { height: 80px; } .podium .p3 .step-b { height: 60px; }
.lb-row.me { background: var(--accent-soft); border-radius: 10px; }

/* ---------- Okuyucu ---------- */
.reader { --rbg: var(--paper); --rink: var(--paper-ink); position: fixed; inset: 0; z-index: 50; background: var(--rbg); color: var(--rink); display: grid; grid-template-rows: auto 1fr auto; }
.reader.sepia { --rbg: #f4ead5; --rink: #3b2f1e; }
.reader.night { --rbg: #111312; --rink: #cfd6d2; }
.reader.day { --rbg: #ffffff; --rink: #1a1a1a; }
.r-top { display: flex; align-items: center; gap: 10px; padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 10px; border-bottom: 1px solid color-mix(in srgb, var(--rink) 12%, transparent); }
.r-top .r-title { flex: 1; min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.r-btn { border: 1px solid color-mix(in srgb, var(--rink) 18%, transparent); background: transparent; color: var(--rink); border-radius: 999px; padding: 7px 12px; font-size: 13px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.r-btn:hover { background: color-mix(in srgb, var(--rink) 8%, transparent); }
.r-btn.on { background: var(--accent); color: #2a1c00; border-color: var(--accent); }
.r-tools { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.r-body { overflow-y: auto; display: grid; place-items: center; padding: 28px 16px; }
.r-page { width: 100%; max-width: 680px; display: grid; gap: 22px; }
.r-art { font-size: clamp(70px, 16vw, 130px); text-align: center; line-height: 1.1; letter-spacing: .05em; }
.r-text { font-family: var(--f-read); font-size: var(--rfs, 20px); line-height: 1.75; white-space: pre-line; hyphens: auto; }
.r-young .r-text { font-family: var(--f-read-young); line-height: 1.6; }
.r-tiny .r-text { text-align: center; font-weight: 700; }
.r-text.speaking { background: color-mix(in srgb, var(--accent) 18%, transparent); border-radius: 10px; }
.r-bottom { padding: 10px 16px calc(12px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 8px; border-top: 1px solid color-mix(in srgb, var(--rink) 12%, transparent); }
.r-nav { display: flex; align-items: center; justify-content: space-between; gap: 12px; max-width: 680px; width: 100%; margin: 0 auto; }
.r-nav .r-btn { padding: 10px 18px; font-size: 15px; }
.r-prog { max-width: 680px; width: 100%; margin: 0 auto; }
.r-prog .bar { background: color-mix(in srgb, var(--rink) 12%, transparent); }
.r-prog .bar > i { background: var(--accent); }
.r-meta { display: flex; justify-content: space-between; font-size: 12px; opacity: .75; max-width: 680px; width: 100%; margin: 0 auto; }
.pdf-canvas { max-width: 100%; height: auto; box-shadow: 0 4px 20px rgba(0, 0, 0, .15); background: #fff; }
.audio-box { display: grid; gap: 18px; justify-items: center; text-align: center; max-width: 520px; width: 100%; }
.audio-box audio { width: 100%; }

/* ---------- Test ---------- */
.quiz { max-width: 720px; margin: 0 auto; width: 100%; display: grid; gap: 18px; }
.q-dots { display: flex; gap: 6px; }
.q-dots i { flex: 1; height: 6px; border-radius: 9px; background: var(--surface-2); }
.q-dots i.on { background: var(--brand); }
.q-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; display: grid; gap: 16px; }
.q-card h2 { font-family: var(--f-read-young); font-weight: 700; font-size: clamp(20px, 3vw, 26px); }
.opts { display: grid; gap: 10px; }
.opt { text-align: left; padding: 14px 18px; border-radius: 14px; border: 2px solid var(--line); background: var(--bg); cursor: pointer; font-size: 16px; display: flex; gap: 12px; align-items: center; }
.opt:hover { border-color: var(--brand); }
.opt .ol { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-weight: 700; font-size: 13px; flex-shrink: 0; }
.opt.sel { border-color: var(--brand); background: var(--brand-soft); }
.opt.right { border-color: var(--good); background: var(--good-soft); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); }
.score-big { font-family: var(--f-display); font-size: 64px; font-weight: 800; line-height: 1; color: var(--brand); }

/* ---------- Modal / bildirim ---------- */
.overlay { position: fixed; inset: 0; z-index: 80; background: rgba(8, 16, 13, .55); display: grid; place-items: center; padding: 16px; animation: fade .15s ease; }
.modal { background: var(--surface); border-radius: var(--r-lg); width: 100%; max-width: 520px; max-height: calc(100vh - 32px); overflow: auto; padding: 24px; display: grid; gap: 16px; box-shadow: 0 30px 60px rgba(0, 0, 0, .3); }
.modal.wide { max-width: 760px; }
.modal-head { display: flex; justify-content: space-between; align-items: start; gap: 12px; }
.modal-x { border: 0; background: var(--surface-2); width: 34px; height: 34px; border-radius: 50%; cursor: pointer; font-size: 18px; line-height: 1; flex-shrink: 0; }
.modal-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.celebrate { text-align: center; display: grid; gap: 12px; justify-items: center; }
.celebrate .big { font-size: 72px; line-height: 1; }
.toasts { position: fixed; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); left: 50%; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100vw - 32px)); }
.toast { background: var(--ink); color: var(--bg); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: 14px; animation: up .2s ease; display: flex; gap: 10px; align-items: center; }
.toast.err { background: var(--bad); color: #fff; }
.toast.gold { background: var(--accent); color: #2a1c00; font-weight: 600; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(10px); opacity: 0; } }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 95; }

/* ---------- Kitap detayı ---------- */
.detail { display: grid; grid-template-columns: minmax(180px, 260px) minmax(0, 1fr); gap: 36px; align-items: start; }
@media (max-width: 720px) { .detail { grid-template-columns: 1fr; } .detail > .cover-col { max-width: 220px; } }
.detail .cover { --ce: 76px; --ct: 22px; --ca: 13px; }
.detail-info { display: grid; gap: 16px; min-width: 0; }
.facts { display: flex; flex-wrap: wrap; gap: 20px; padding: 14px 0; border-block: 1px solid var(--line); }
.facts div { display: grid; }
.facts b { font-family: var(--f-display); font-size: 22px; line-height: 1.1; }
.facts span { font-size: 12px; color: var(--muted); }
.stars { color: var(--accent); letter-spacing: 2px; }
.star-pick { display: flex; gap: 6px; font-size: 34px; }
.star-pick button { background: none; border: 0; cursor: pointer; color: var(--line); padding: 0; line-height: 1; }
.star-pick button.on { color: var(--accent); }
.review { padding: 12px 0; border-bottom: 1px solid var(--line); display: grid; gap: 4px; }

/* ---------- Kimlik ---------- */
.auth { max-width: 980px; margin: 0 auto; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; width: 100%; }
@media (max-width: 820px) { .auth { grid-template-columns: 1fr; } .auth-side { display: none; } }
.auth-side { background: var(--brand); color: var(--brand-ink); padding: 36px; display: grid; gap: 18px; align-content: space-between; }
.auth-side .muted { color: color-mix(in srgb, var(--brand-ink) 78%, transparent); }
.auth-form { padding: 32px; display: grid; gap: 18px; align-content: start; }
.role-pick { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.role-opt { border: 2px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; background: var(--bg); text-align: left; display: grid; gap: 2px; }
.role-opt b { font-size: 14px; } .role-opt span { font-size: 12px; color: var(--muted); }
.role-opt.on { border-color: var(--brand); background: var(--brand-soft); }
.demo-list { display: grid; gap: 6px; }
.demo-list button { display: flex; justify-content: space-between; gap: 10px; background: color-mix(in srgb, var(--brand-ink) 10%, transparent); border: 0; color: var(--brand-ink); padding: 9px 12px; border-radius: 10px; cursor: pointer; font-size: 13px; text-align: left; }
.demo-list button:hover { background: color-mix(in srgb, var(--brand-ink) 20%, transparent); }
.avatar-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(44px, 1fr)); gap: 6px; }
.avatar-grid button { font-size: 24px; height: 44px; border-radius: 12px; border: 2px solid transparent; background: var(--bg); cursor: pointer; }
.avatar-grid button.on { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Sınıf ---------- */
.class-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 16px; }
.class-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 14px; text-decoration: none; color: inherit; transition: border-color .15s; }
.class-card:hover { border-color: var(--brand); }
.code-box { display: inline-flex; align-items: center; gap: 10px; background: var(--accent-soft); color: var(--accent-ink); padding: 8px 8px 8px 14px; border-radius: 12px; }
.code-box code { font-family: ui-monospace, 'SFMono-Regular', Menlo, monospace; font-size: 20px; font-weight: 700; letter-spacing: .14em; }
.kv { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.kv div { display: grid; } .kv b { font-family: var(--f-display); font-size: 22px; line-height: 1.1; } .kv span { font-size: 12px; color: var(--muted); }
.asg { display: grid; grid-template-columns: 48px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.asg:last-child { border-bottom: 0; }
.asg .cover { --ce: 18px; padding: 4px 4px 4px 8px; }
.asg .cover .cover-title, .asg .cover .cover-author { display: none; }
.pick-list { display: grid; gap: 6px; max-height: 340px; overflow: auto; }
.pick-item { display: flex; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 10px; border: 1px solid var(--line); cursor: pointer; }
.pick-item:has(input:checked) { border-color: var(--brand); background: var(--brand-soft); }

/* ---------- Kitap editörü ---------- */
.page-edit { display: grid; grid-template-columns: 70px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 12px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.page-edit .pe-n { font-size: 12px; color: var(--muted); font-weight: 600; }
.q-edit { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--line); border-radius: var(--r); background: var(--bg); }
.q-opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 8px; }
.q-opt { display: flex; gap: 8px; align-items: center; }
.empty { text-align: center; padding: 34px 16px; color: var(--muted); display: grid; gap: 10px; justify-items: center; border: 1.5px dashed var(--line); border-radius: var(--r-lg); }
.empty b { color: var(--ink); font-size: 16px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }
.footer { border-top: 1px solid var(--line); padding: 26px 16px; color: var(--muted); font-size: 13px; }
.footer-in { max-width: 1200px; margin: 0 auto; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer a { color: var(--muted); }
.demo-banner { background: var(--accent-soft); color: var(--accent-ink); font-size: 13px; text-align: center; padding: 7px 16px; }

@media (max-width: 640px) {
  .topbar-in { flex-wrap: wrap; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; }
  .logo-text { font-size: 17px; }
  .pts-chip { display: none; }
  .page { padding-top: 18px; gap: 22px; }
  .books { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 20px 14px; }
  .panel { padding: 16px; }
  .auth-form { padding: 22px; }
  .podium .pav { width: 56px; height: 56px; font-size: 30px; }
  .podium .p1 .pav { width: 66px; height: 66px; font-size: 36px; }
  .r-tools .r-label { display: none; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
body.bare .topbar, body.bare .footer, body.bare .demo-banner { display: none; }

/* ---------- CodebilEdu eklemeleri ---------- */
.logo-text { display: flex; flex-direction: column; gap: 2px; }
.logo-text > span, .logo-text { white-space: nowrap; }
.logo-school { font-family: var(--f-body); font-weight: 500; font-size: 11.5px; letter-spacing: 0; color: var(--muted); max-width: 220px; overflow: hidden; text-overflow: ellipsis; }
.welcome { background: linear-gradient(135deg, #c0141f 0%, #8e0e19 100%); }
.school-card { display: grid; gap: 4px; padding: 14px 16px; border-radius: var(--r); background: rgba(255,255,255,.12); }
.school-card b { font-size: 18px; font-family: var(--f-display); }
.school-perks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 15px; }
.school-share { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; justify-content: space-between; border-color: var(--brand-soft); }
.school-share .code-box code { word-break: break-all; }
.skill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--surface-2); color: var(--ink); }
.sk-reading { --sk: #2563eb; } .sk-speaking { --sk: #c0141f; } .sk-writing { --sk: #7c3aed; } .sk-listening { --sk: #0e8a8a; } .sk-vocabulary { --sk: #b45309; } .sk-grammar { --sk: #15803d; }
.skill[class*="sk-"] { background: var(--surface-2); box-shadow: inset 3px 0 0 var(--sk); }
.skill-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 18px; }
.skill-card { display: grid; gap: 6px; padding: 14px; border-radius: var(--r); background: var(--surface); border: 1px solid var(--line); border-top: 4px solid var(--sk, var(--brand)); }
.skill-card .se { font-size: 26px; line-height: 1; }
.skill-card .bar > i { background: var(--sk, var(--brand)); }
.en-week { margin-bottom: 14px; }
.en-task { grid-template-columns: auto minmax(0, 1fr) auto !important; align-items: start; }
.en-answer { font-size: 13px; white-space: pre-line; max-height: 110px; overflow: auto; background: var(--surface-2); border-radius: 8px; padding: 6px 8px; }
.en-fb { margin-top: 6px; font-size: 13px; background: var(--good-soft); color: var(--ink); border-radius: 8px; padding: 6px 10px; }
.linkish { background: none; border: 0; padding: 0; color: var(--brand); text-decoration: underline; cursor: pointer; margin-top: 4px; }
.ok-t { color: var(--good); }
.warn-t { color: var(--warn); font-weight: 600; }
@media print { .topbar, .footer, .tabs, .page-head .btn { display: none !important; } .report-page .table-wrap { overflow: visible; } }
@media (max-width: 640px) { .en-task { grid-template-columns: minmax(0, 1fr) !important; } .logo-school { max-width: 140px; } }
@media (max-width: 640px) { .skill-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; } .skill-card { padding: 10px; } .skill-card .se { font-size: 20px; } .skill-card .muted { display: none; } }

.logo-img { width: 40px; height: 40px; border-radius: 10px; background: #fff; border: 1px solid var(--line); display: grid; place-items: center; overflow: hidden; flex-shrink: 0; }
.logo-img img { max-width: 100%; max-height: 100%; object-fit: contain; }
.school-logo { width: 64px; height: 64px; object-fit: contain; background: #fff; border-radius: 12px; padding: 6px; }
.school-set { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.school-set-logo { width: 56px; height: 56px; border-radius: 12px; border: 1px dashed var(--line); display: grid; place-items: center; overflow: hidden; background: #fff; }
.school-set-logo img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* =====================================================================
   Geniş ekran, tablet ve telefon (2026-10-21)
   ===================================================================== */
@media (min-width: 1400px) { .page, .topbar-in, .footer-in { max-width: 1360px; } }
.tabbar { display: none; }
@media (max-width: 760px) {
  .nav { display: none; }
  .topbar-in { flex-wrap: nowrap; padding: 8px 14px; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; justify-content: space-around; gap: 2px;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--surface) 94%, transparent);
    backdrop-filter: saturate(1.4) blur(12px); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(0, 0, 0, .06); }
  .tabbar[hidden] { display: none; }
  .tabbar a, .tabbar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 3px; padding: 6px 2px; border: 0; background: none;
    color: var(--muted); text-decoration: none; font: 600 11px/1.1 var(--f-ui, inherit); border-radius: 12px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
  .tabbar svg { width: 23px; height: 23px; }
  .tabbar span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .tabbar .on { color: var(--brand); background: color-mix(in srgb, var(--brand) 10%, transparent); }
  body.has-tabbar .footer { padding-bottom: calc(86px + env(safe-area-inset-bottom, 0px)); }
  body.has-tabbar .toast-wrap, body.has-tabbar .toasts { bottom: calc(80px + env(safe-area-inset-bottom, 0px)); }
  /* Pencereler alttan açılan sayfa olur */
  .overlay { place-items: end center; padding: 0; }
  .modal, .modal.wide { max-width: none; border-radius: 22px 22px 0 0; max-height: 92vh; padding: 20px 18px calc(20px + env(safe-area-inset-bottom, 0px)); }
  .modal-actions { position: sticky; bottom: calc(-20px - env(safe-area-inset-bottom, 0px)); background: var(--surface); padding-top: 10px; margin: 0 -2px; }
  .modal-actions .btn { flex: 1; }
  .form-row { grid-template-columns: 1fr !important; }
  /* Tablolar: yatay kaydırılır, ilk sütun sabit kalır */
  .table-wrap { -webkit-overflow-scrolling: touch; }
  .table-wrap table td:first-child, .table-wrap table th:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); box-shadow: 1px 0 0 var(--line); }
  .page-head { gap: 12px; }
  .page-head h1 { font-size: 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; }
  .tabs { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; } .tabs::-webkit-scrollbar { display: none; }
  .tabs .tab { white-space: nowrap; }
}
/* Dokunmatik (tablet ve telefon): parmakla rahat basılan düğmeler ve alanlar */
@media (pointer: coarse) {
  .btn { min-height: 44px; } .btn-sm { min-height: 38px; }
  .input, .select, .textarea { min-height: 46px; font-size: 16px; }   /* iOS'ta odaklanınca yakınlaştırmayı önler */
  .chip { min-height: 38px; }
  .nav a { padding-top: 10px; padding-bottom: 10px; }
}
/* Tablet (dikey): menü yatay kayar, içerik iki sütun */
@media (min-width: 761px) and (max-width: 1100px) {
  .page { padding-left: 22px; padding-right: 22px; }
  .split { grid-template-columns: 1fr; }
}
.sheet-bg { position: fixed; inset: 0; z-index: 90; background: rgba(8, 16, 13, .45); display: flex; align-items: flex-end; animation: fade .15s ease; }
.sheet { width: 100%; background: var(--surface); border-radius: 22px 22px 0 0; padding: 10px 12px calc(16px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 2px; }
.sheet-grip { display: block; width: 42px; height: 5px; border-radius: 99px; background: var(--line); margin: 2px auto 10px; }
.sheet a, .sheet button { display: flex; align-items: center; gap: 14px; padding: 14px 12px; border-radius: 12px; border: 0; background: none; color: var(--ink); text-decoration: none; font: 600 16px var(--f-ui, inherit); text-align: left; cursor: pointer; }
.sheet a:active, .sheet button:active { background: var(--surface-2); }
.sheet svg { width: 22px; height: 22px; color: var(--brand); }
body.bare .tabbar { display: none !important; }
/* Izgara öğeleri geniş tablo yüzünden sayfayı taşırmasın (telefon / tablet) */
.page > *, .split > *, .grid-2 > *, .section > * { min-width: 0; }
.page-head > div:first-child { min-width: 0; }
.list-row > .pill { justify-self: start; }
.school-promo { display: grid; gap: 6px; padding: 14px 16px; border-radius: 14px; background: color-mix(in srgb, var(--brand, #c0141f) 7%, var(--surface, #fff)); border: 1px dashed color-mix(in srgb, var(--brand, #c0141f) 35%, transparent); }
.school-promo b { font-size: 14px; } .school-promo span { font-size: 13px; color: var(--muted, #6b7280); line-height: 1.5; } .school-promo .btn { justify-self: start; margin-top: 4px; }
.school-results { display: grid; gap: 8px; }
.school-hit { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; width: 100%; text-align: left; padding: 10px 12px; border-radius: 12px;
  border: 1px solid var(--line, #e5e7eb); background: var(--surface, #fff); color: inherit; font: inherit; cursor: pointer; min-height: 56px; }
.school-hit:hover, .school-hit:focus-visible { border-color: var(--brand, #c0141f); outline: none; box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand, #c0141f) 15%, transparent); }
.school-hit b { display: block; font-size: 15px; } .school-hit small { display: block; color: var(--muted, #6b7280); font-size: 12px; }
.school-hit i { font-style: normal; color: var(--brand, #c0141f); font-weight: 700; }
.school-av { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--brand, #c0141f); color: #fff; font-weight: 800; }
/* Telefonda giriş / okul seçme formu üstte; tanıtım paneli kısalır */
@media (max-width: 760px) { .auth .auth-form { order: -1; } .auth .auth-side .school-perks { display: none; } .auth .auth-side h2 { font-size: 22px !important; } }

/* =====================================================================
   Profesyonel araçlar (2026-10-23): panolar, sesli okuma, yarışma, karne, takvim
   ===================================================================== */
.stack { display: grid; gap: 20px; min-width: 0; align-content: start; }
.head-actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 165px), 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; display: grid; gap: 4px; align-content: start; min-width: 0; color: inherit; text-decoration: none; }
a.kpi:hover { border-color: var(--brand); }
.kpi-k { font-size: 12px; color: var(--muted); font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.kpi > b { font-family: var(--f-display); font-size: 30px; font-weight: 800; line-height: 1.05; }
.kpi > b small { font-size: 16px; font-weight: 600; color: var(--muted); }
.kpi-s { font-size: 12.5px; color: var(--muted); }
.kpi .hbar { margin-top: 6px; }
.delta { display: inline-flex; gap: 4px; align-items: baseline; font-size: 12.5px; font-weight: 700; color: var(--muted); }
.delta small { font-weight: 500; color: var(--muted); }
.delta.up { color: var(--good); } .delta.down { color: var(--bad); }
.hbar { flex: 1; min-width: 60px; height: 8px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.hbar > i { display: block; height: 100%; border-radius: 99px; background: var(--brand); }
.hbar.good > i { background: var(--good); }
.tiles-sm .tile b { font-size: 22px; }
table.cmp td { vertical-align: middle; }
.cal-day { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); line-height: 1; }
.cal-day b { font-family: var(--f-display); font-size: 18px; } .cal-day small { font-size: 10.5px; text-transform: uppercase; }
.list-row .hbar { margin-top: 5px; max-width: 260px; }

/* Sesli okuma */
.fl-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); font-size: 22px; }
.fl-text { font-size: 19px; line-height: 1.9; font-family: var(--f-display); letter-spacing: .01em; white-space: pre-line; }
.fl-page .fl-text { font-size: clamp(19px, 2.4vw, 24px); }
.fl-text .w-err, .w-err { background: var(--bad-soft); color: var(--bad); border-radius: 6px; text-decoration: line-through; text-decoration-thickness: 2px; }
.fl-text .w-skip { opacity: .35; }
.fl-grade { white-space: normal; max-height: 42vh; overflow: auto; padding: 10px; border: 1px solid var(--line); border-radius: var(--r); background: var(--surface-2); }
.fl-grade button { font: inherit; border: 0; background: none; color: inherit; padding: 1px 3px; border-radius: 6px; cursor: pointer; }
.fl-grade button:hover { background: var(--brand-soft); }
.fl-grade button.w-last { box-shadow: inset 0 -3px 0 var(--brand); }
.seg { display: inline-flex; flex-wrap: wrap; border: 1px solid var(--line); border-radius: 12px; padding: 3px; gap: 3px; background: var(--surface-2); }
.seg button { border: 0; background: none; font: inherit; font-size: 13.5px; font-weight: 600; padding: 7px 12px; border-radius: 9px; cursor: pointer; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.grade-calc { display: grid; grid-template-columns: 120px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: end; }
.grade-calc > div { display: grid; gap: 2px; padding: 8px 10px; background: var(--surface-2); border-radius: 10px; }
.grade-calc > div b { font-family: var(--f-display); font-size: 22px; }
.rec-box { display: grid; gap: 14px; justify-items: center; text-align: center; padding: 28px 20px; }
.rec-time { font-family: var(--f-display); font-size: 46px; font-weight: 800; }
.rec-box[data-state="rec"] .rec-time { color: var(--bad); animation: recp 1.2s ease-in-out infinite; }
@keyframes recp { 50% { opacity: .45; } }
.rec-actions { display: grid; gap: 12px; justify-items: center; width: 100%; }
.rec-actions audio, .rec-prev audio { width: min(100%, 420px); }
.rec-prev { display: grid; gap: 6px; justify-items: center; padding-top: 14px; border-top: 1px dashed var(--line); width: 100%; }
.fl-feedback { border-color: var(--good); background: var(--good-soft); }
.tpl-save { display: grid; gap: 8px; padding: 10px 12px; border: 1px dashed var(--line); border-radius: 12px; }

/* Sınıf analizi (öğrenci × ödev) */
.mx-table th, .mx-table td { white-space: nowrap; }
.mx-table .mx-name { position: sticky; left: 0; background: var(--surface); z-index: 1; min-width: 190px; }
.mx-h { min-width: 118px; max-width: 150px; vertical-align: bottom; white-space: normal !important; }
.mx-h span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: 12.5px; line-height: 1.25; }
.mx-h small { display: block; color: var(--muted); font-weight: 500; margin: 2px 0 4px; }
.mx { text-align: center; font-weight: 700; font-size: 13px; }
.mx small { display: block; font-weight: 500; font-size: 11px; }
.mx i { display: block; font-style: normal; font-size: 10.5px; color: var(--warn); }
.mx-done { background: var(--good-soft); color: var(--good); }
.mx-part { background: var(--warn-soft); color: var(--warn); }
.mx-none { color: var(--muted); }
.mx-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; color: var(--muted); }
.mx-legend i { display: inline-block; font-style: normal; font-weight: 700; padding: 0 6px; border-radius: 6px; margin-right: 4px; }

/* Yarışmalar */
.cmp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 16px; }
.cmp-card { display: grid; gap: 12px; padding: 20px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); color: inherit; text-decoration: none; align-content: start; }
.cmp-card:hover { border-color: var(--brand); }
.cmp-medal { font-size: 30px; }
.rank-row { grid-template-columns: 36px minmax(0, 1fr) auto; }
.rank-row.me { background: var(--accent-soft); border-radius: 12px; }
.rank-n { font-size: 18px; text-align: center; }

/* Takvim */
.cal-title { font-family: var(--f-display); font-size: 18px; min-width: 140px; text-align: center; text-transform: capitalize; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal-h, .cal-g { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.cal-h span { padding: 8px; font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; border-bottom: 1px solid var(--line); }
.cal-c { min-height: 104px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; gap: 3px; align-content: start; min-width: 0; }
.cal-c:nth-child(7n) { border-right: 0; }
.cal-x { background: var(--surface-2); }
.cal-n { font-size: 12.5px; font-weight: 700; color: var(--muted); }
.cal-today { background: var(--brand-soft); } .cal-today .cal-n { color: var(--brand); }
.cal-e { display: block; font-size: 11.5px; line-height: 1.3; padding: 2px 6px; border-radius: 6px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border-left: 3px solid; }
.cal-asg, .cal-legend .cal-asg { background: var(--brand-soft); color: var(--brand-strong); border-color: var(--brand); }
.cal-fl, .cal-legend .cal-fl { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent); }
.cal-cmp, .cal-legend .cal-cmp { background: var(--good-soft); color: var(--good); border-color: var(--good); }
.cal-legend { display: flex; gap: 16px; flex-wrap: wrap; color: var(--muted); }
.cal-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; border-left: 3px solid; margin-right: 6px; vertical-align: -1px; }
.cal-p-asg { background: var(--brand-soft); color: var(--brand); } .cal-p-fl { background: var(--accent-soft); color: var(--accent-ink); } .cal-p-cmp { background: var(--good-soft); color: var(--good); }
@media (max-width: 640px) { .cal-c { min-height: 54px; padding: 3px; } .cal-e { font-size: 0; padding: 0; height: 6px; border-left: 0; } .cal-h span { padding: 6px 2px; } .grade-calc { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grade-calc > label { grid-column: 1 / -1; } }

/* Öğrenci / veli eklemeleri */
.notice-panel { border-color: var(--accent); background: linear-gradient(0deg, var(--surface), var(--surface)) padding-box; box-shadow: inset 4px 0 0 var(--accent); }
.week-sum { padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); display: grid; gap: 4px; }
.week-sum p { margin: 0; }

/* Yazdırılabilir belgeler: karne, pasaport, sertifika */
.doc-bar { position: sticky; top: 0; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; padding: 10px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.doc-bar .small { flex: 1; color: var(--muted); min-width: 160px; }
.doc { max-width: 900px; margin: 20px auto; background: #fff; color: #1d1416; border: 1px solid var(--line); border-radius: 12px; padding: 34px 40px; display: grid; gap: 22px; }
.doc .muted, .doc .small.muted { color: #6c5e61; }
.doc-head { display: flex; gap: 18px; align-items: center; border-bottom: 3px solid #c0141f; padding-bottom: 16px; }
.doc-head h1 { font-size: 30px; margin: 2px 0; }
.doc-logo { width: 72px; height: 72px; object-fit: contain; border-radius: 12px; }
.doc-logo-txt { display: grid; place-items: center; font-size: 40px; background: #fde8e9; }
.doc-school { font-weight: 700; color: #c0141f; letter-spacing: .02em; }
.doc-id { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.doc-id div { display: grid; gap: 2px; padding: 8px 10px; background: #f6f0ef; border-radius: 8px; }
.doc-id span { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: #6c5e61; }
.doc-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; text-align: center; }
.doc-tiles div { border: 1px solid #e7dcdb; border-radius: 10px; padding: 10px 6px; display: grid; }
.doc-tiles b { font-family: var(--f-display); font-size: 22px; }
.doc-tiles span { font-size: 12px; color: #6c5e61; }
.doc-sec h2 { font-size: 17px; margin: 0 0 8px; padding-bottom: 4px; border-bottom: 1px solid #e7dcdb; }
.doc-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.doc .chart text { fill: #6c5e61; } .doc .chart .grid { stroke: #e7dcdb; } .doc .chart .b { fill: #c0141f; }
.doc-skill, .doc-t { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.doc-skill th { background: none; text-transform: none; letter-spacing: 0; color: inherit; font-size: 13.5px; text-align: left; width: 170px; padding: 8px 6px; font-weight: 700; }
.doc-skill td, .doc-t td, .doc-t th { padding: 7px 6px; border-bottom: 1px solid #efe6e5; text-align: left; vertical-align: middle; }
.doc-t th { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: #6c5e61; }
.doc-bar-c { width: 140px; }
.doc .hbar { background: #f0e7e6; }
.lvl { display: inline-block; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.lvl-good { background: #dcf3e5; color: #1a8f4d; } .lvl-warn { background: #ffeccc; color: #a35700; } .lvl-bad { background: #fde2e2; color: #c62828; } .lvl-mute { background: #f3ebea; color: #6c5e61; }
.doc-note { font-size: 11.5px; color: #6c5e61; margin-top: 8px; }
.doc-comment { min-height: 90px; border: 1px dashed #cdbebd; border-radius: 10px; padding: 10px 12px; font-size: 14px; outline: none; }
.doc-comment:empty::before { content: attr(data-ph); color: #a99a9c; }
.doc-sign { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding-top: 30px; }
.doc-sign div, .cert-sign div { display: grid; gap: 6px; text-align: center; font-size: 13px; color: #6c5e61; }
.doc-sign i, .cert-sign i { display: block; border-top: 1px solid #1d1416; margin-top: 30px; }
.pp-cover { display: flex; gap: 18px; align-items: center; padding: 20px; border-radius: 14px; background: linear-gradient(135deg, #8e0e19, #c0141f); color: #fff; }
.pp-cover h1 { font-size: 30px; margin: 2px 0; color: #fff; } .pp-cover .doc-school { color: #ffd9dc; }
.pp-name { font-family: var(--f-display); font-size: 20px; font-weight: 700; }
.pp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 18px; }
.stamp { aspect-ratio: 1; border-radius: 50%; border: 3px double var(--sc); color: var(--sc); display: grid; place-items: center; padding: 10px; transform: rotate(var(--rot)); break-inside: avoid; }
.stamp-in { display: grid; gap: 4px; text-align: center; justify-items: center; }
.stamp-in small { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; }
.stamp-in b { font-family: var(--f-display); font-size: 14px; line-height: 1.2; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.stamp-in span { font-size: 11px; } .stamp-in em { font-style: normal; font-size: 11px; font-weight: 700; }
.cert { max-width: 1050px; margin: 20px auto; aspect-ratio: 297 / 210; background: #fff; color: #1d1416; padding: 18px; border: 1px solid var(--line); }
.cert-in { height: 100%; border: 3px solid #c0141f; outline: 1px solid #e39b00; outline-offset: -10px; padding: 34px 50px; display: grid; align-content: center; justify-items: center; gap: 14px; text-align: center; }
.cert-top { display: flex; gap: 12px; align-items: center; font-weight: 700; color: #c0141f; font-size: 18px; }
.cert-top .doc-logo { width: 60px; height: 60px; }
.cert-k { font-family: var(--f-display); font-size: 42px; font-weight: 800; letter-spacing: .04em; color: #9a0f18; }
.cert-name { font-family: var(--f-display); font-size: 36px; font-weight: 700; border-bottom: 2px solid #e39b00; padding: 0 30px 6px; }
.cert-txt { max-width: 720px; font-size: 17px; line-height: 1.6; }
.cert-sign { display: grid; grid-template-columns: 220px 220px; gap: 120px; }
.cert-foot { font-size: 12px; color: #6c5e61; }
@media (max-width: 700px) { .doc { padding: 20px 16px; margin: 10px; } .doc-id { grid-template-columns: 1fr 1fr; } .doc-tiles { grid-template-columns: repeat(3, 1fr); } .doc-skill th { width: auto; } .doc-bar-c { display: none; } .cert-k { font-size: 26px; } .cert-name { font-size: 22px; } .cert-in { padding: 16px; } .cert-sign { grid-template-columns: 1fr 1fr; gap: 20px; } .cert-txt { font-size: 13px; } }
@media print {
  .no-print, .doc-bar { display: none !important; }
  body.bare, body.bare #view { background: #fff !important; }
  .doc { border: 0; margin: 0; padding: 0 4mm; max-width: none; border-radius: 0; }
  .doc-sec, .doc-tiles, .doc-id { break-inside: avoid; }
  .doc-comment { border-color: #bbb; }
  .doc-comment:empty::before { content: ''; }
  .cert { margin: 0; border: 0; padding: 8mm; width: 100%; height: 100vh; aspect-ratio: auto; page-break-after: always; break-after: page; }
  .stamp { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .pp-cover, .lvl, .hbar, .doc-id div { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
@page { margin: 12mm; }
@media print { .cert { page: yatay; } }
@page yatay { size: A4 landscape; margin: 0; }
.doc > * { min-width: 0; }
.doc-sec { overflow-x: auto; }
@media print { .doc-sec { overflow: visible; } }

/* =====================================================================
   Genişletme 2 (2026-10-23): bildirim, kelime defteri, etkinlik, tarama, erişilebilirlik, ödünç, rapor
   ===================================================================== */
.bell { position: relative; display: grid; place-items: center; text-decoration: none; color: inherit; }
.bell svg { width: 20px; height: 20px; }
.bell-n { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 4px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid var(--surface); }
.push-panel { display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.push-on { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.inbox-row { grid-template-columns: 10px minmax(0, 1fr) auto; }
.inbox-dot { width: 8px; height: 8px; border-radius: 50%; background: transparent; }
.inbox-row.unread .inbox-dot { background: var(--brand); }
.inbox-row.unread b { color: var(--ink); }

/* Kelime defteri */
.word-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.word-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: grid; gap: 6px; align-content: start; border-top: 4px solid var(--line); }
.word-card.box2 { border-top-color: var(--warn); } .word-card.box3 { border-top-color: var(--accent); } .word-card.box4, .word-card.box5 { border-top-color: var(--good); }
.word-top { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.word-top b { font-family: var(--f-display); font-size: 19px; }
.word-s { font-style: italic; }
.word-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 4px; }
.word-q { font-size: clamp(28px, 6vw, 40px); }
.word-cta { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: center; text-decoration: none; color: inherit; }
.word-cta:hover { border-color: var(--brand); }
.r-text .w { border-radius: 4px; }
.r-text.word-mode .w { cursor: pointer; box-shadow: inset 0 -1px 0 color-mix(in srgb, var(--rink) 30%, transparent); }
.r-text.word-mode .w:hover { background: color-mix(in srgb, var(--accent) 30%, transparent); }
.r-text .w-picked { background: color-mix(in srgb, var(--accent) 35%, transparent); }
.r-text .w-say { background: var(--accent); color: #2a1c00; }

/* Erişilebilirlik */
.r-body { position: relative; }
.r-ruler { position: absolute; left: 0; right: 0; pointer-events: none; background: color-mix(in srgb, var(--accent) 22%, transparent); border-top: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); border-bottom: 2px solid color-mix(in srgb, var(--accent) 70%, transparent); transition: top .08s; }
body.a-andika .r-text, body.a-andika .fl-text, body.a-andika .a11y-demo, body.a-andika .ans-text { font-family: 'Andika', var(--f-read), sans-serif !important; }
body.a-atkinson .r-text, body.a-atkinson .fl-text, body.a-atkinson .a11y-demo, body.a-atkinson .ans-text, body.a-atkinson .opt { font-family: 'Atkinson Hyperlegible', var(--f-read), sans-serif !important; }
body.a-space1 .r-text, body.a-space1 .fl-text, body.a-space1 .a11y-demo { letter-spacing: .05em; word-spacing: .16em; line-height: 2; }
body.a-space2 .r-text, body.a-space2 .fl-text, body.a-space2 .a11y-demo { letter-spacing: .1em; word-spacing: .3em; line-height: 2.3; }
body.a-big { font-size: 112.5%; }
body.a-big .small { font-size: 14.5px; }
.a11y-demo { font-size: 20px; padding: 12px 14px; border-radius: var(--r); background: var(--surface-2); margin: 0; }
.modal .seg { display: flex; }
.modal .seg button { flex: 1 1 auto; }

/* Yazılı etkinlik */
.act-text { min-height: 260px; font-size: 17px; line-height: 1.6; }
.star-pick { display: flex; gap: 4px; }
.star-pick button { font-size: 30px; line-height: 1; border: 0; background: none; color: var(--line); cursor: pointer; padding: 2px; }
.star-pick button.on { color: var(--accent); }
.card-ans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; margin-top: 8px; }
.card-ans div { background: var(--surface-2); border-radius: 10px; padding: 10px 12px; }
.card-ans span { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.card-ans p { margin: 4px 0 0; white-space: pre-line; }
.ans-text { white-space: pre-line; line-height: 1.65; margin: 10px 0 0; background: var(--surface-2); border-radius: 10px; padding: 12px 14px; }
.act-list { display: grid; gap: 14px; }
.grade-row { display: flex; gap: 10px; align-items: end; flex-wrap: wrap; margin-top: 12px; }
.grade-row .field:first-child { width: 120px; }

/* Okuma düzeyi taraması */
.band-bar { display: flex; height: 26px; border-radius: 8px; overflow: hidden; background: var(--surface-2); gap: 2px; }
.band-bar i { display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; min-width: 18px; }
.bd-destek { background: #c62828; } .bd-gelisiyor { background: #d98400; } .bd-hedefte { background: #2e9d5b; } .bd-ustunde { background: #1b6e8f; } .bd-yok, .bd-hedefsiz { background: #9b8f91; }
.band-legend { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 10px; color: var(--ink); }
.band-legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

/* Ödünç */
.desk h3 { font-size: 17px; }
.bc-in { font-family: ui-monospace, monospace; font-size: 18px; letter-spacing: .08em; }
.desk-item { display: grid; gap: 6px; padding: 14px; border-radius: var(--r); background: var(--surface-2); justify-items: start; }
.desk-item b { font-family: var(--f-display); font-size: 18px; }
.desk-loan { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.pick-person { width: 100%; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line); font: inherit; color: inherit; cursor: pointer; }
.pick-person:hover { background: var(--surface-2); }
.bc rect { fill: currentColor; }

/* Raporlar */
.yr-tiles { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.yr-cat { display: grid; grid-template-columns: 110px minmax(0, 1fr) 40px; gap: 8px; align-items: center; padding: 4px 0; font-size: 13px; }
.yr-cat b { text-align: right; }
.karne-page { break-after: page; page-break-after: always; }
.karne-page:last-child { break-after: auto; page-break-after: auto; }
@media (max-width: 700px) { .yr-tiles { grid-template-columns: repeat(2, 1fr); } }
@media print { .band-bar i, .bd-destek, .bd-gelisiyor, .bd-hedefte, .bd-ustunde { -webkit-print-color-adjust: exact; print-color-adjust: exact; } .karne-page .doc { margin: 0; } }
.r-ruler { z-index: 0; } .r-body > .r-page { position: relative; z-index: 1; }

/* ===== 2026-11-04: okuma uygulaması kolaylıkları (etkinlik şeridi, etkinlik seçici, görevlerim, profil kartları, rozet yolculukları) ===== */
.bc-kap { position: relative; }
.cover-no { position: absolute; right: 10px; bottom: 10px; min-width: 34px; height: 34px; padding: 0 6px; border-radius: 99px; display: grid; place-items: center;
  background: radial-gradient(circle at 35% 30%, #6fd0ff, #1b7fe0); color: #fff; font-weight: 800; font-size: 14px; box-shadow: 0 3px 10px rgba(0,0,0,.25); border: 2px solid #fff; }
.cover-done { position: absolute; right: -6px; top: -6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--good); color: #fff; font-weight: 900; box-shadow: 0 3px 8px rgba(0,0,0,.2); border: 2px solid #fff; }
.book-series { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.act-strip { display: flex; gap: 4px; flex-wrap: wrap; padding: 4px; border: 1.5px solid var(--accent-soft); border-radius: 10px; background: color-mix(in srgb, var(--accent-soft) 45%, transparent); }
.act { display: inline-flex; align-items: center; gap: 2px; padding: 2px 6px; border-radius: 7px; font-size: 14px; filter: grayscale(1); opacity: .45; }
.act small { font-size: 10.5px; font-weight: 700; color: var(--ink); }
.act.yarim { filter: none; opacity: .9; background: var(--warn-soft); }
.act.ok { filter: none; opacity: 1; background: var(--good-soft); }
.modal:has(> .es-x) { position: relative; }
.es-x { position: absolute; right: 12px; top: 12px; }
.es { display: grid; justify-items: center; gap: 10px; text-align: center; padding: 6px 4px 2px; }
.es-kapak { width: 128px; filter: drop-shadow(0 0 22px color-mix(in srgb, var(--brand) 35%, transparent)); }
.es h2 { font-size: 22px; margin: 6px 0 0; }
.es-btns { display: grid; gap: 10px; width: 100%; max-width: 380px; margin-top: 4px; }
.es-b { position: relative; display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 16px; border-radius: 16px; color: #fff; text-decoration: none; box-shadow: 0 4px 0 rgba(0,0,0,.15); transition: transform .12s; }
.es-b:hover { transform: translateY(-2px); }
.es-b b { display: block; font-size: 16px; letter-spacing: .04em; } .es-b small { display: block; font-size: 12.5px; opacity: .9; }
.es-ic { font-size: 26px; width: 34px; text-align: center; }
.es-ok { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; background: #fff; color: var(--good); font-style: normal; font-weight: 900; display: grid; place-items: center; }
.es-oku { background: linear-gradient(135deg, #3a8de0, #2650c9); }
.es-dinle { background: linear-gradient(135deg, #f08bd0, #b65ee8); }
.es-test { background: linear-gradient(135deg, #f5b82e, #e07b00); }
.es-kelime { background: linear-gradient(135deg, #3cc596, #13906a); }
.es-b.kilit { background: var(--surface-2); color: var(--muted); box-shadow: none; cursor: not-allowed; }
.es-alt { font-size: 13px; margin-top: 4px; }
.rozet-pop { display: grid; justify-items: center; gap: 8px; text-align: center; padding: 8px; }
.rozet-madalya { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; font-size: 58px; background: radial-gradient(circle at 35% 30%, #fff6c9, #f5b82e 70%); border: 6px solid #fff; box-shadow: 0 0 0 4px #f5b82e, 0 10px 24px rgba(0,0,0,.2); animation: rozet-gel .5s ease-out; }
.rozet-pop h2 { color: var(--accent-ink); margin: 6px 0 0; }
@keyframes rozet-gel { from { transform: scale(.3) rotate(-25deg); opacity: 0; } to { transform: none; opacity: 1; } }
.gv-oz { display: flex; gap: 10px; } .gv-oz span { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 8px 14px; font-size: 13px; } .gv-oz b { font-size: 20px; display: block; }
.gv-liste { display: grid; gap: 8px; }
.gv-satir { display: grid; grid-template-columns: 52px minmax(0, 1fr) auto auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 14px; text-decoration: none; color: inherit; background: var(--surface); }
.gv-satir:hover { border-color: var(--brand); }
.gv-satir.bitti { opacity: .85; }
.gv-kapak { width: 44px; } .gv-kapak .cover { font-size: 9px; }
.gv-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; background: var(--surface-2); }
.gv-tarih { white-space: nowrap; }
.gv-bos { display: grid; justify-items: center; gap: 6px; padding: 26px 10px; text-align: center; } .gv-bos span { font-size: 44px; } .gv-bos small { color: var(--muted); max-width: 42ch; }
@media (max-width: 640px) { .gv-satir { grid-template-columns: 44px minmax(0, 1fr); } .gv-satir > :nth-child(n+3) { grid-column: 2; justify-self: start; } }
.pk-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 20px; }
.pk { display: flex; gap: 16px; align-items: center; padding: 20px 22px; border-radius: 22px; text-decoration: none; color: #fff; background: linear-gradient(135deg, color-mix(in srgb, var(--pk) 85%, #000), var(--pk)); box-shadow: var(--shadow); }
.pk-ic { font-size: 42px; } .pk b { display: block; font-size: 34px; line-height: 1; font-family: var(--f-display); } .pk small { font-size: 14px; opacity: .95; }
.yol { display: grid; gap: 14px; margin-bottom: 22px; }
.yol-k { display: flex; gap: 18px; align-items: center; padding: 16px 20px; border-radius: 20px; background: linear-gradient(135deg, var(--surface), var(--surface-2)); border: 1px solid var(--line); }
.yol-e { font-size: 58px; width: 80px; text-align: center; }
.yol-k b { font-size: 18px; display: block; } .yol-k small { color: var(--muted); }
.yol-r { display: flex; gap: 6px; flex-wrap: wrap; margin: 10px 0; }
.yol-r span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; background: var(--surface-2); border: 2px solid var(--line); filter: grayscale(1); opacity: .6; }
.yol-r span.on { filter: none; opacity: 1; background: var(--accent-soft); border-color: var(--accent); }
.yol-bar { position: relative; height: 20px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.yol-bar i { display: block; height: 100%; background: linear-gradient(90deg, #8b5cf6, #ec4899); border-radius: 99px; min-width: 0; }
.yol-bar em { position: absolute; left: 12px; top: 1px; font-style: normal; font-size: 12px; font-weight: 800; color: var(--ink); }
@media (max-width: 600px) { .yol-e { font-size: 40px; width: 50px; } }
