/* ==========================================================================
   ingilizceoku — dijital kitaplık arayüzü
   Krem zemin, solda kitaplık kenar çubuğu, ortada beyaz okuma sayfası,
   sağda kelime paneli. Açık tema; koyu mod bilinçli olarak yoktur.
   --accent, --font-*, --page-w, --read-* değişkenleri
   "Genel Sistem Ayarları > Tasarım" sekmesinden gelir.
   ========================================================================== */

:root {
	color-scheme: light only;
	--bg: #FAF9F6;
	--bg-2: #F2EFE8;
	--bg-3: #F7F5F0;
	--card: #FFFFFF;
	--ink: #262722;
	--ink-2: #77766F;
	--ink-3: #A3A29B;
	--line: #EAE6DE;
	--line-2: #DED9CE;
	--accent: #B77D4C;
	--accent-2: #77766F;
	--accent-ink: color-mix(in srgb, var(--accent) 72%, #262722);
	--accent-soft: color-mix(in srgb, var(--accent) 12%, #FFFFFF);
	--accent-tint: color-mix(in srgb, var(--accent) 22%, #FFFFFF);
	--ok: #3F7A4C;
	--ok-soft: #EAF2E8;
	--bad: #A2432F;
	--bad-soft: #FBEDE9;
	--page-w: 1180px;
	--read-w: 700px;
	--font-head: "Lora", Georgia, serif;
	--font-ui: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--font-read: "Lora", Georgia, serif;
	--read-size: 20px;
	--read-lh: 1.8;
	--sb-w: 272px;
	--top-h: 60px;
	--r-sm: 8px;
	--r: 14px;
	--r-lg: 20px;
	--shadow-sm: 0 1px 2px rgba(38, 39, 34, .05);
	--shadow: 0 1px 2px rgba(38, 39, 34, .04), 0 14px 34px -16px rgba(38, 39, 34, .16);
	--shadow-lg: 0 2px 4px rgba(38, 39, 34, .04), 0 24px 48px -18px rgba(38, 39, 34, .24);
	--ab: 0px;
}
.admin-bar { --ab: var(--wp-admin--admin-bar--height, 32px); }
@media (max-width: 600px) { .admin-bar { --ab: 0px; } }

/* ---------- Temel ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--top-h) + 70px); }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-ui); font-size: 15.5px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--font-head); font-weight: 500; line-height: 1.2; margin: 0; letter-spacing: -0.015em; text-wrap: balance; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; }
dl, dd { margin: 0; }
.ic { flex: none; display: inline-block; vertical-align: middle; }
.screen-reader-text { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link { position: absolute; left: -999px; top: 8px; background: var(--ink); color: var(--bg); padding: 8px 14px; border-radius: var(--r-sm); z-index: 200; }
.skip-link:focus { left: 8px; color: var(--bg); }

/* ---------- Uygulama kabuğu ---------- */
.app { display: flex; min-height: 100vh; }
.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.site-main { flex: 1; padding: 0 24px; }
.sheet { max-width: calc(var(--page-w) + 160px); margin: 0 auto; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); padding: clamp(22px, 3.4vw, 48px); min-height: calc(100vh - var(--top-h) - var(--ab) - 90px); }
.sheet .wrap { max-width: none; padding: 0; }
.read-col { max-width: var(--read-w); }

/* Kenar çubuğu */
.sidebar { position: sticky; top: var(--ab); height: calc(100vh - var(--ab)); width: var(--sb-w); flex: none; display: flex; flex-direction: column; background: var(--bg); border-right: 1px solid var(--line); z-index: 90; }
.sb-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; height: var(--top-h); padding: 0 12px 0 20px; flex: none; }
.sb-scroll { flex: 1; overflow-y: auto; padding: 4px 12px 16px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.sb-foot { flex: none; padding: 12px; border-top: 1px solid var(--line); }
.sidebar .sb-close { display: none; }
.sb-search { margin: 4px 0 12px; }
.sb-label { margin: 22px 8px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.sb-nav { display: grid; gap: 1px; }
.sb-link { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 6px 10px; border-radius: var(--r-sm); color: #45453F; font-size: 14.5px; cursor: pointer; list-style: none; }
.sb-link::-webkit-details-marker { display: none; }
.sb-link .ic { color: var(--ink-2); }
.sb-link > span:not(.count):not(.tag):not(.lvl-dot) { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-link:hover { background: var(--bg-2); color: var(--ink); }
.sb-link[aria-current="page"] { background: var(--card); color: var(--ink); font-weight: 500; box-shadow: var(--shadow-sm); outline: 1px solid var(--line); }
.sb-link[aria-current="page"] .ic { color: var(--accent); }
.count { font-size: 12px; color: var(--ink-3); font-variant-numeric: tabular-nums; }

.tree details > summary .ic { transition: transform .15s; color: var(--ink-3); }
.tree details[open] > summary .ic { transform: rotate(90deg); }
.tree-level.is-open > details > summary { color: var(--ink); font-weight: 500; }
.lvl-dot { flex: none; min-width: 28px; padding: 1px 0; text-align: center; font-size: 11px; font-weight: 600; letter-spacing: .02em; border-radius: 6px; }
.tree-items { position: relative; margin: 2px 0 6px 21px; padding-left: 12px; border-left: 1px solid var(--line-2); }
.tree-link { display: flex; align-items: center; gap: 8px; min-height: 32px; padding: 4px 8px; border-radius: var(--r-sm); font-size: 13.5px; color: #55554E; }
.tree-link:hover { background: var(--bg-2); color: var(--ink); }
.tree-link.is-current { background: var(--accent-soft); color: var(--ink); font-weight: 500; }
.tree-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tree-dot { flex: none; width: 7px; height: 7px; border-radius: 50%; border: 1.5px solid var(--line-2); background: var(--card); }
.tree-dot.reading { border-color: var(--accent); background: var(--accent-tint); }
.tree-dot.done { border-color: var(--ok); background: var(--ok); }
.tree-link.is-current .tree-dot { border-color: var(--accent); background: var(--accent); }
.tree-more { color: var(--ink-2); font-size: 13px; }

.sb-promo { display: block; padding: 14px; border-radius: var(--r); background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow-sm); margin-bottom: 10px; }
a.sb-promo:hover { border-color: var(--accent); color: inherit; }
.sb-promo-title { display: block; font-family: var(--font-head); font-size: 15.5px; font-weight: 500; }
.sb-promo-text { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.5; color: var(--ink-2); }
.sb-promo-actions { display: grid; gap: 6px; margin-top: 12px; }
.sb-promo-actions .btn { width: 100%; }
.sb-user { display: flex; align-items: center; gap: 10px; padding: 4px; }
.sb-user-text { flex: 1; min-width: 0; }
.sb-user-name { display: block; font-size: 14px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sb-user-plan { display: block; font-size: 12px; color: var(--ink-2); }

/* Üst çubuk */
.topbar { display: flex; align-items: center; gap: 10px; height: var(--top-h); padding: 0 24px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); -webkit-backdrop-filter: saturate(1.4) blur(10px); z-index: 50; }
.has-sticky-header .topbar { position: sticky; top: var(--ab); }
.topbar-gap { flex: 1; }
.topbar .brand-top, .topbar .sb-open, .topbar .sb-expand { display: none; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--font-head); font-size: 20px; font-weight: 600; letter-spacing: -0.02em; color: var(--ink); }
.brand:hover { color: var(--ink); }
.brand-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--ink); color: var(--bg); font-size: 17px; font-style: italic; font-weight: 600; box-shadow: inset 0 -3px 0 var(--accent); }
.brand-logo { max-height: 32px; width: auto; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; flex: none; border-radius: 50%; background: var(--accent-tint); color: var(--accent-ink); font-weight: 600; font-size: 14px; border: 1px solid color-mix(in srgb, var(--accent) 30%, #fff); }
a.avatar:hover { background: var(--accent); color: #fff; }

.search { position: relative; display: flex; align-items: center; }
.search .ic { position: absolute; left: 12px; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; height: 38px; padding: 0 38px 0 36px; font: inherit; font-size: 14px; color: var(--ink); background: var(--card); border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow-sm); }
.search input::placeholder { color: var(--ink-3); }
.search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.topbar .search { width: min(320px, 34vw); }
.search kbd { position: absolute; right: 9px; padding: 1px 7px; font: 500 11.5px/1.5 var(--font-ui); color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--line); border-radius: 6px; }
.icon-btn { display: inline-grid; place-items: center; min-width: 36px; height: 36px; padding: 0 8px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--ink-2); cursor: pointer; font-size: 14px; }
.icon-btn:hover { background: var(--bg-2); color: var(--ink); }

.scrim { position: fixed; inset: 0; background: rgba(38, 39, 34, .32); z-index: 85; }
.scrim[hidden] { display: none; }

/* Kenar çubuğu gizli (geniş ekran tercihi) */
@media (min-width: 1024px) {
	.sb-closed .sidebar { display: none; }
	.sb-closed .topbar .sb-expand { display: inline-grid; }
}

/* Dar ekran: kenar çubuğu çekmece olur */
@media (max-width: 1023px) {
	.sidebar { position: fixed; left: 0; top: var(--ab); width: min(86vw, 320px); transform: translateX(-102%); transition: transform .22s ease; box-shadow: var(--shadow-lg); background: var(--bg); }
	.sb-open .sidebar { transform: none; }
	.sidebar .sb-collapse { display: none; }
	.sidebar .sb-close { display: inline-grid; }
	.topbar .sb-open { display: inline-grid; }
	.topbar .brand-top { display: inline-flex; }
	.topbar { padding: 0 12px; }
	.topbar .search { display: none; }
	.site-main { padding: 0 10px; }
	.sheet { border-radius: 16px; padding: 22px 18px; }
}
@media (max-width: 420px) { .top-login { display: none; } }

/* ---------- Butonlar, etiketler ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 10px; background: var(--ink); color: var(--bg); border: 1px solid var(--ink); font-weight: 500; font-size: 14.5px; line-height: 1.2; text-align: center; cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s; }
.btn:hover { background: var(--accent-ink); border-color: var(--accent-ink); color: #fff; }
.btn-ghost { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { background: var(--bg-2); border-color: var(--line-2); color: var(--ink); }
.btn-sm { min-height: 34px; padding: 0 12px; font-size: 13.5px; border-radius: 9px; }
.btn-lg { min-height: 48px; padding: 0 22px; font-size: 15.5px; border-radius: 12px; }
.btn-danger { background: var(--bad); border-color: var(--bad); }
.btn-danger:hover { background: #82331f; border-color: #82331f; }
button.btn:disabled { opacity: .55; cursor: default; }
.btn-quiet { display: inline-flex; align-items: center; gap: 6px; padding: 8px 0; font-weight: 500; border-bottom: 1px solid currentColor; border-radius: 0; }

.tag { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; font-size: 12px; font-weight: 500; line-height: 1.5; color: var(--ink-2); background: var(--bg-3); border: 1px solid var(--line); border-radius: 6px; white-space: nowrap; }
a.tag:hover { color: var(--ink); border-color: var(--line-2); }
.tag-current { color: #8C5426; background: #F8EADC; border-color: #EED5BE; }
.tag-accent { color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-tint); }
.tag-done { color: var(--ok); background: var(--ok-soft); border-color: #D3E4CF; }
.tag-premium { color: #7A5A12; background: #F8EFD6; border-color: #EEDDAE; }
.eyebrow { display: inline-block; margin: 0 0 12px; padding: 2px 8px; font-size: 12px; font-weight: 500; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-tint); border-radius: 6px; }

.pill { display: inline-flex; align-items: center; padding: 2px 8px; font-size: 12px; font-weight: 600; letter-spacing: .02em; line-height: 1.5; border-radius: 6px; white-space: nowrap; }
.pill-a1, .lvl-a1 { background: #E7F0E3; color: #3C6A43; }
.pill-a2, .lvl-a2 { background: #E3ECF3; color: #3A5E7C; }
.pill-b1, .lvl-b1 { background: #F4ECDB; color: #85642A; }
.pill-b2, .lvl-b2 { background: #F5E4DC; color: #96492F; }
.pill-c1, .lvl-c1 { background: #ECE5F2; color: #5F4979; }
.pill-c2, .lvl-c2 { background: #E9E7E2; color: #47473F; }

/* ---------- Bölümler ---------- */
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.section-head h2 { font-size: clamp(1.3rem, 2.4vw, 1.6rem); }
.section-note { margin: 4px 0 0; font-size: 14px; color: var(--ink-2); }
.more { display: inline-flex; align-items: center; gap: 4px; flex: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 6px 10px; border-radius: 8px; }
.more:hover { background: var(--bg-2); color: var(--ink); }

/* ---------- Keşfet: tanıtım ---------- */
.hero { display: grid; gap: 36px; align-items: center; padding-bottom: 8px; }
.hero-kicker { display: flex; align-items: center; gap: 8px; margin: 0 0 18px; font-size: 14px; color: var(--ink-2); }
.hero h1 { font-size: clamp(2.3rem, 5.2vw, 3.7rem); line-height: 1.06; letter-spacing: -0.03em; max-width: 13ch; }
.hero-text { margin: 18px 0 26px; max-width: 34rem; font-size: clamp(1.02rem, 1.6vw, 1.14rem); line-height: 1.65; color: #5E5D56; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.hero-note { display: flex; align-items: center; gap: 8px; margin: 18px 0 0; font-size: 13.5px; color: var(--ink-2); }
.hero-note .ic { color: var(--ok); }
@media (min-width: 980px) { .hero { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }

.demo { position: relative; min-height: 410px; padding: 26px; border-radius: var(--r-lg); background:
	radial-gradient(circle at 1px 1px, rgba(38, 39, 34, .07) 1px, transparent 0) 0 0 / 18px 18px, var(--bg-3); border: 1px solid var(--line); }
.demo-card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; box-shadow: var(--shadow); }
.demo-card p { margin: 0; }
.demo-head { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; }
.demo-dots { margin-left: auto; display: flex; gap: 3px; }
.demo-dots i { width: 4px; height: 4px; border-radius: 50%; background: var(--ink-3); }
.demo-story { width: 74%; }
.demo-title { font-family: var(--font-head); font-size: 1.45rem; font-weight: 500; }
.demo-tr { font-family: var(--font-head); font-style: italic; color: var(--ink-2); font-size: .98rem; }
.demo-text { margin-top: 12px !important; font-family: var(--font-read); font-size: 15.5px; line-height: 1.75; color: #3B3B35; }
.demo-sentence { background: color-mix(in srgb, var(--accent) 12%, transparent); border-radius: 3px; }
.demo-text mark { background: color-mix(in srgb, var(--accent) 34%, transparent); color: inherit; border-radius: 3px; padding: 0 2px; box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 34%, transparent); }
.demo-player { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--ink-2); }
.demo-play { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; }
.demo-bar { flex: 1; height: 4px; border-radius: 4px; background: var(--line); overflow: hidden; }
.demo-bar i { display: block; width: 38%; height: 100%; background: var(--accent); }
.demo-word { position: absolute; right: 22px; bottom: 22px; width: min(60%, 290px); box-shadow: var(--shadow-lg); }
@media (min-width: 980px) and (max-width: 1279px) { .demo-story { width: 86%; } .demo-word { width: 66%; } }
.demo-w { font-family: var(--font-read); font-size: 1.5rem; font-weight: 500; }
.demo-w span { font-family: var(--font-ui); font-size: 13px; color: var(--ink-2); font-weight: 400; margin-left: 4px; }
.demo-w em { font-family: var(--font-ui); font-style: normal; font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; margin-left: 4px; }
.demo-mean { font-size: 1.2rem; font-weight: 600; margin-top: 2px !important; }
.demo-ctx { font-size: 13px; color: var(--ink-2); margin-top: 4px !important; }
.demo-tabs { display: flex; gap: 14px; margin-top: 12px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--ink-2); }
.demo-tabs span { padding: 0 0 6px; }
.demo-tabs .is-on { color: var(--ink); border-bottom: 2px solid var(--accent); font-weight: 500; }
.demo-sent { margin-top: 10px !important; font-size: 13.5px; }
.demo-actions { display: flex; gap: 6px; margin-top: 12px; }
.chip { display: inline-flex; align-items: center; gap: 5px; padding: 4px 10px; border-radius: 99px; font-size: 12px; border: 1px solid var(--line-2); background: var(--card); }
.chip-dark { background: var(--ink); color: #fff; border-color: var(--ink); }
@media (max-width: 600px) {
	.demo { min-height: 0; padding: 16px; }
	.demo-story { width: 100%; }
	.demo-word { position: relative; right: auto; bottom: auto; width: 88%; margin: -26px 0 0 auto; }
}

/* Nasıl çalışır */
.how-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); counter-reset: how; }
.how-item { padding: 18px; border-radius: var(--r); background: var(--bg-3); border: 1px solid var(--line); }
.how-icon { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--card); border: 1px solid var(--line); color: var(--accent-ink); box-shadow: var(--shadow-sm); }
.how-step { display: block; margin-top: 14px; font-size: 12px; font-weight: 600; color: var(--ink-3); letter-spacing: .04em; text-transform: uppercase; }
.how-item h3 { font-size: 1.08rem; margin-top: 4px; }
.how-item p { margin: 6px 0 0; font-size: 14px; color: var(--ink-2); line-height: 1.55; }

/* Seviye karoları */
.level-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.level-tile { display: flex; flex-direction: column; gap: 2px; padding: 16px; border-radius: var(--r); border: 1px solid transparent; transition: transform .15s, box-shadow .15s; }
.level-tile:hover { transform: translateY(-2px); box-shadow: var(--shadow); color: inherit; }
.level-tile.is-mine { outline: 2px solid currentColor; outline-offset: -2px; }
.level-code { font-family: var(--font-head); font-size: 1.9rem; font-weight: 500; line-height: 1; }
.level-name { font-weight: 600; font-size: 14px; margin-top: 8px; }
.level-count { font-size: 12.5px; opacity: .8; }

/* ---------- Hikâye kartları ---------- */
.cards-row, .cards-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(228px, 1fr)); }
.card { min-width: 0; }
.card-link { display: flex; flex-direction: column; height: 100%; padding: 16px 18px 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s, border-color .15s; }
.card-link:hover { color: inherit; transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.card-image { display: block; margin: -6px -8px 14px; border-radius: 10px; overflow: hidden; aspect-ratio: 16 / 9; background: var(--bg-2); }
.card-image img { width: 100%; height: 100%; object-fit: cover; }
.card-top { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 24px; }
.card-cat { font-size: 12.5px; color: var(--ink-2); }
.card-top .tag { margin-left: auto; }
.card-title { display: block; margin-top: 12px; font-family: var(--font-head); font-size: 1.22rem; font-weight: 500; line-height: 1.25; letter-spacing: -0.01em; }
.card-link:hover .card-title { color: var(--accent-ink); }
.card-tr { display: block; margin-top: 2px; font-family: var(--font-head); font-style: italic; font-size: .95rem; color: var(--ink-2); }
.card-sum { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-top: 10px; font-size: 13.5px; line-height: 1.55; color: #64635C; }
.card-meta { display: flex; align-items: center; gap: 14px; margin-top: auto; padding-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.card-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.card-meta .ic { color: var(--ink-3); }
.card-go { margin-left: auto; color: var(--ink-3); transition: transform .15s; }
.card-link:hover .card-go { transform: translateX(2px); color: var(--accent); }
.card-sum { margin-bottom: 0; }
.card.is-done .card-title { color: #55554E; }
@media (max-width: 700px) {
	.cards-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 12px; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
	.cards-row::-webkit-scrollbar { display: none; }
	.cards-row .card { flex: 0 0 82%; scroll-snap-align: start; }
	.cards-grid { grid-template-columns: 1fr; }
}
/* "Sade liste" kart görünümü (Tasarım ayarı) */
.cards-plain .cards-row, .cards-plain .cards-grid { display: grid; grid-template-columns: 1fr; gap: 0; margin: 0; padding: 0; overflow: visible; }
.cards-plain .card-link { border: 0; border-bottom: 1px solid var(--line); border-radius: 0; box-shadow: none; padding: 16px 0; transform: none; }
.cards-plain .card-image, .cards-plain .card-sum { display: none; }
.cards-plain .cards-row .card { flex: none; }

/* ---------- Sayfa başlıkları, süzgeçler ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 13px; color: var(--ink-2); }
.crumbs a { padding: 2px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); }
.crumbs a:hover { color: var(--ink); border-color: var(--line-2); }
.crumbs > span[aria-hidden] { color: var(--ink-3); }
.crumbs .ic { color: var(--ink-3); }
.page-head { padding: 0 0 22px; margin-bottom: 4px; }
.page-head h1 { font-size: clamp(1.9rem, 4vw, 2.7rem); letter-spacing: -0.025em; }
.page-desc { color: var(--ink-2); max-width: 42rem; margin: 12px 0 0; font-size: 1.02rem; line-height: 1.65; }
.filters { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; padding: 10px; margin-bottom: 20px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips a { display: block; padding: 5px 12px; font-size: 13.5px; font-weight: 500; border-radius: 8px; color: #55554E; border: 1px solid transparent; }
.chips a:hover { background: var(--card); color: var(--ink); border-color: var(--line); }
.chips a[aria-current] { background: var(--card); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-sm); }
.sorts { display: flex; flex-wrap: wrap; gap: 4px; font-size: 13.5px; }
.sorts a { display: block; padding: 5px 10px; border-radius: 8px; color: var(--ink-2); }
.sorts a:hover { color: var(--ink); background: var(--bg-2); }
.sorts a[aria-current] { color: var(--ink); background: var(--card); box-shadow: var(--shadow-sm); outline: 1px solid var(--line-2); }
.result-count { font-size: 13px; color: var(--ink-2); margin: 0 0 14px; }
.pager { margin-top: 36px; }
.pager .nav-links { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager .page-numbers { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); font-size: 14px; }
.pager .page-numbers:hover { border-color: var(--line-2); }
.pager .page-numbers.current { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .dots { border: 0; background: none; }
.empty { padding: 48px 20px; text-align: center; color: var(--ink-2); background: var(--bg-3); border: 1px dashed var(--line-2); border-radius: var(--r); }
.empty p { margin-bottom: 12px; }
.empty-page { padding: 64px 24px; }
.empty-page h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); color: var(--ink); margin-bottom: 12px; }
.empty-page .btn { margin-top: 10px; }
.notice-line { padding: 12px 16px; border-radius: 12px; background: var(--accent-soft); border: 1px solid var(--accent-tint); margin-bottom: 22px; font-size: 14.5px; }
.notice-line a { text-decoration: underline; text-underline-offset: 2px; }

/* Kategoriler ve seviyeler dizini */
.index-list { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.index-item { position: relative; display: grid; grid-template-columns: 1fr auto; gap: 6px 14px; align-items: start; padding: 18px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); transition: box-shadow .15s, border-color .15s; }
.index-item:hover { box-shadow: var(--shadow); border-color: var(--line-2); }
.index-item:has(.index-mark) { grid-template-columns: auto 1fr; }
.index-item:has(.index-mark) .index-count { grid-column: 2; }
.index-mark { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 12px; font-family: var(--font-head); font-size: 1.25rem; font-weight: 600; background: var(--bg-2); color: var(--ink); }
.index-item:nth-child(1) .index-mark { background: #E7F0E3; color: #3C6A43; }
.index-item:nth-child(2) .index-mark { background: #E3ECF3; color: #3A5E7C; }
.index-item:nth-child(3) .index-mark { background: #F4ECDB; color: #85642A; }
.index-item:nth-child(4) .index-mark { background: #F5E4DC; color: #96492F; }
.index-item:nth-child(5) .index-mark { background: #ECE5F2; color: #5F4979; }
.index-main h2 { font-size: 1.18rem; }
a.index-main::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.index-main p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; line-height: 1.55; }
a.index-main:hover h2 { color: var(--accent-ink); }
.index-count { font-size: 12.5px; color: var(--ink-2); white-space: nowrap; padding: 2px 8px; border-radius: 6px; background: var(--bg-3); border: 1px solid var(--line); justify-self: start; }
.index-item.is-empty { background: var(--bg-3); box-shadow: none; }
.index-item.is-empty .index-main h2 { color: var(--ink-2); }
.index-sub { grid-column: 1 / -1; position: relative; z-index: 1; }

/* ---------- Okuma sayfası ---------- */
.reader { display: grid; gap: 40px; }
@media (min-width: 1200px) { .reader { grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; } }
.story { min-width: 0; }
.story > * { max-width: var(--read-w); }
.story-head { padding-bottom: 6px; }
.story-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 16px; }
.story-head h1 { font-size: clamp(2.1rem, 4.4vw, 3.15rem); line-height: 1.1; letter-spacing: -0.025em; }
.story-tr { margin: 8px 0 0; font-family: var(--font-head); font-style: italic; font-size: 1.2rem; color: var(--ink-2); }
.story-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 16px 0 0; font-size: 13.5px; color: var(--ink-2); }
.story-meta span { display: inline-flex; align-items: center; gap: 6px; }
.story-meta .ic { color: var(--ink-3); }
.story-summary { margin: 20px 0 0; padding: 14px 16px; font-size: 15px; line-height: 1.6; color: #4F4E48; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.story-cover { margin: 24px 0 0; }
.story-cover img { width: 100%; border-radius: var(--r); border: 1px solid var(--line); }

.read-tools { position: sticky; top: calc(var(--ab) + var(--top-h)); z-index: 6; display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 24px; padding: 10px 0; background: var(--card); border-bottom: 1px solid var(--line); }
.has-sticky-header .read-tools { top: calc(var(--ab) + var(--top-h)); }
.read-tools .fav[aria-pressed="true"] { color: var(--accent-ink); border-color: var(--accent-tint); background: var(--accent-soft); }
.read-hint { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-2); margin-left: 6px; }
.read-hint .ic { color: var(--accent); }
.read-sizes { display: flex; gap: 2px; margin-left: auto; }
.read-sizes .icon-btn { font-family: var(--font-head); color: var(--ink); }
.read-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: transparent; }
.read-progress i { display: block; width: 0; height: 100%; background: var(--accent); transition: width .2s linear; }
@media (max-width: 560px) { .read-hint { display: none; } }

.story-text { font-family: var(--font-read); font-size: calc(var(--read-size) - 2px + var(--read-step, 0px)); line-height: var(--read-lh); padding-top: 26px; overflow-wrap: break-word; color: #2D2E29; }
@media (min-width: 720px) { .story-text { font-size: calc(var(--read-size) + var(--read-step, 0px)); } }
.story-text p { margin: 0 0 1.2em; scroll-margin-top: calc(var(--top-h) + 80px); }
.story-text .stanza { margin-bottom: 1.6em; }
.format-poem .story-text { padding-left: clamp(0px, 5vw, 40px); }
.story-text .line { padding-left: 14px; border-left: 2px solid var(--line); }
.story-text .speaker { display: block; margin-bottom: 2px; font-family: var(--font-ui); font-size: .6em; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink); }
.story-text .w { cursor: pointer; border-radius: 3px; transition: background-color .12s; }
.story-text .w:hover { background: color-mix(in srgb, var(--accent) 15%, transparent); }
.story-text .w.is-active { background: color-mix(in srgb, var(--accent) 30%, transparent); box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 30%, transparent); }
.story-text .s.is-active { background: color-mix(in srgb, var(--accent) 10%, transparent); border-radius: 3px; }
.story-text .s.is-reading { background: color-mix(in srgb, var(--accent) 17%, transparent); border-radius: 3px; box-decoration-break: clone; -webkit-box-decoration-break: clone; }
.story-end { text-align: center; color: var(--accent); letter-spacing: .4em; margin: 28px 0 0; font-size: 20px; }
.story-source { font-size: 13px; color: var(--ink-2); margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); }
.gate { position: relative; margin-top: 8px; padding: 28px 24px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.gate::before { content: ""; position: absolute; left: 0; right: 0; bottom: 100%; height: 90px; background: linear-gradient(to bottom, rgba(255, 255, 255, 0), #fff); pointer-events: none; }
.gate h2 { font-size: 1.5rem; margin: 10px 0 8px; }
.gate p { color: var(--ink-2); }

/* Kelime paneli (geniş ekran) */
.inspector { display: none; }
@media (min-width: 1200px) {
	.inspector { display: block; position: sticky; top: calc(var(--ab) + var(--top-h) + 16px); align-self: start; max-height: calc(100vh - var(--ab) - var(--top-h) - 32px); overflow-y: auto; scrollbar-width: thin; }
	.inspector.has-word .insp-default { display: none; }
}
.panel { padding: 16px; margin-bottom: 12px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.panel p { font-size: 14px; color: #55554E; margin: 10px 0 0; line-height: 1.55; }
.panel-head { display: flex; align-items: center; gap: 8px; }
.panel-title { font-family: var(--font-head); font-size: 1.05rem; font-weight: 500; }
.panel-note { padding-top: 10px; border-top: 1px solid var(--line); }
.panel-note a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 2px; }
.kv { margin-top: 10px; }
.kv > div { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv > div:last-child { border-bottom: 0; padding-bottom: 0; }
.kv dt { color: var(--ink-2); }
.kv dd { font-weight: 500; text-align: right; }
.outline { margin-top: 10px; counter-reset: ol; }
.outline li { counter-increment: ol; }
.outline a { display: flex; gap: 10px; padding: 6px 8px; margin: 0 -8px; border-radius: 8px; font-family: var(--font-read); font-size: 14px; line-height: 1.4; color: #55554E; }
.outline a::before { content: counter(ol); flex: none; width: 18px; font-family: var(--font-ui); font-size: 11.5px; font-weight: 600; color: var(--ink-3); padding-top: 2px; }
.outline a:hover { background: var(--card); color: var(--ink); }
.outline a.is-current { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }
.outline a.is-current::before { color: var(--accent); }

/* ---------- Kelime kartı ---------- */
.wcard { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(460px, calc(100vw - 20px)); max-height: 64dvh; overflow-y: auto; padding: 14px 18px 16px; background: var(--card); border: 1px solid var(--line-2); border-radius: 18px; box-shadow: var(--shadow-lg); z-index: 70; font-family: var(--font-ui); }
.wcard[hidden] { display: none; }
.wcard.is-docked { position: static; transform: none; width: auto; max-height: none; border-radius: var(--r); box-shadow: var(--shadow); z-index: auto; }
.wcard p { margin: 0; }
.wcard-bar { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.wcard-close { display: grid; place-items: center; width: 32px; height: 32px; margin-right: -6px; border: 0; border-radius: 8px; background: none; color: var(--ink-2); cursor: pointer; }
.wcard-close:hover { background: var(--bg-2); color: var(--ink); }
.wcard-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; }
.wcard-word { font-family: var(--font-read); font-size: 1.65rem; font-weight: 500; line-height: 1.2; }
.wcard-ipa { font-size: 14px; color: var(--ink-2); }
.wcard-pos { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-ink); font-weight: 600; }
.wcard-hear { margin-left: auto; align-self: center; }
.wcard-tabs { display: flex; gap: 16px; margin-top: 14px; border-bottom: 1px solid var(--line); }
.wcard-tabs button { position: relative; padding: 0 0 8px; border: 0; background: none; font-size: 13.5px; color: var(--ink-2); cursor: pointer; }
.wcard-tabs button:hover { color: var(--ink); }
.wcard-tabs button.is-on { color: var(--ink); font-weight: 500; }
.wcard-tabs button.is-on::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; background: var(--accent); border-radius: 2px; }
.wcard-pane { padding-top: 12px; }
.wcard-pane[hidden] { display: none; }
.wcard-tr { font-size: 1.3rem; font-weight: 600; line-height: 1.3; }
.wcard-ctx { font-size: 14px; color: #55554E; margin-top: 6px !important; line-height: 1.55; }
.wcard-line { font-size: 14px; margin-top: 12px !important; padding-top: 10px; border-top: 1px solid var(--line); }
.wcard-label { display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 2px; }
.wcard-en { font-family: var(--font-read); font-size: 15.5px; color: #3B3B35; line-height: 1.55; }
.wcard-str { font-size: 15px; margin-top: 8px !important; padding: 10px 12px; background: var(--bg-3); border-radius: 10px; }
.wcard-ex { font-family: var(--font-read); font-style: italic; font-size: 15.5px; line-height: 1.55; }
.wcard-wait { color: var(--ink-2); font-size: 14px; margin-top: 10px !important; }
.wcard-acts { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); }
.wcard-listen, .wcard-save { display: inline-flex; align-items: center; gap: 5px; min-height: 32px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; }
.wcard-listen:hover { border-color: var(--accent); color: var(--accent-ink); }
.wcard-save { margin-left: auto; color: #fff; background: var(--ink); border-color: var(--ink); }
.wcard-save:hover { background: var(--accent-ink); border-color: var(--accent-ink); }
.wcard-save[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-ink); border-color: var(--accent-tint); }
.wcard-free { margin-top: 12px !important; padding: 9px 12px; font-size: 12.5px; color: #6B5A2E; background: #FBF5E6; border: 1px solid #F0E3BF; border-radius: 10px; }
.wcard-free a { font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.wcard-demo { margin-top: 10px !important; font-size: 12px; color: var(--ink-3); }

/* ---------- Testler ---------- */
.story-quiz { margin-top: 40px; padding: 24px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r-lg); font-family: var(--font-ui); }
.story-quiz h2 { font-size: 1.45rem; margin: 10px 0 18px; }
.quiz-list { counter-reset: quiz; }
.quiz-q { counter-increment: quiz; padding: 18px 0; border-bottom: 1px solid var(--line); }
.quiz-q:first-child { padding-top: 0; }
.quiz fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
.quiz legend { font-family: var(--font-read); font-size: 1.1rem; line-height: 1.5; padding: 0; margin-bottom: 12px; }
.quiz legend::before { content: counter(quiz) ". "; color: var(--accent-ink); font-family: var(--font-ui); font-size: .85em; font-weight: 600; }
.quiz-opt { display: flex; align-items: flex-start; gap: 10px; padding: 11px 14px; margin-bottom: 6px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); cursor: pointer; font-size: 15.5px; transition: border-color .12s; }
.quiz-opt:hover { border-color: var(--accent); }
.quiz-opt input { margin-top: 4px; accent-color: var(--accent); flex: none; }
.quiz-opt:has(input:checked) { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.quiz-q.is-right .quiz-opt:has(input:checked), .quiz-opt.is-answer { border-color: var(--ok); background: var(--ok-soft); box-shadow: none; }
.quiz-q.is-wrong .quiz-opt:has(input:checked) { border-color: var(--bad); background: var(--bad-soft); box-shadow: none; }
.quiz-q.is-wrong .quiz-opt.is-answer:has(input:checked) { border-color: var(--ok); background: var(--ok-soft); }
.quiz-note { margin: 8px 0 0; font-size: 14px; color: #55554E; }
.quiz-q.is-right .quiz-note { color: var(--ok); }
.quiz-q.is-wrong .quiz-note { color: var(--bad); }
.quiz-q.is-blank .quiz-note { color: var(--ink-2); }
.quiz .btn { margin-top: 20px; }
.quiz-result { margin-top: 20px; padding: 18px 20px; background: var(--card); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 12px; }
.quiz-result p { margin: 0; }
.quiz-result h2 { font-size: 1.45rem; margin-bottom: 8px; }
.quiz-result .btn { margin-top: 14px; }
.quiz > .quiz-result:first-child { margin: 0 0 24px; }
.placement { padding-bottom: 10px; }

/* ---------- Premium ve üyelik ---------- */
.premium { margin-top: 48px; border-radius: var(--r-lg); background: linear-gradient(135deg, #FBF6EE, #F5EEE3); border: 1px solid #EBDCC8; overflow: hidden; }
.premium-inner { display: grid; gap: 26px; padding: 28px 24px; }
.premium .eyebrow { background: #fff; }
.premium h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); margin-bottom: 14px; }
.premium-list { display: grid; gap: 8px; }
.premium-list li { position: relative; padding-left: 26px; font-size: 15px; }
.premium-list li::before { content: ""; position: absolute; left: 0; top: 5px; width: 16px; height: 16px; border-radius: 50%; background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12.5 4 4 8-9'/%3E%3C/svg%3E") center / 11px no-repeat; }
.premium-price { align-self: center; padding: 22px; background: var(--card); border: 1px solid #EBDCC8; border-radius: var(--r); box-shadow: var(--shadow); }
.price { font-size: 1rem; color: var(--ink-2); margin: 0 0 6px; }
.price span { font-family: var(--font-head); font-size: clamp(2.3rem, 6vw, 3rem); color: var(--ink); letter-spacing: -0.02em; }
.price-note { font-size: 13px; color: var(--ink-2); margin-bottom: 16px; }
.premium-price .btn { width: 100%; }
@media (min-width: 860px) { .premium-inner { grid-template-columns: 1.4fr 1fr; gap: 40px; padding: 40px 44px; } }

.steps { counter-reset: step; display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.steps li { counter-increment: step; padding: 18px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.steps li::before { content: counter(step); display: grid; place-items: center; width: 30px; height: 30px; margin-bottom: 12px; border-radius: 9px; font-family: var(--font-head); font-weight: 600; background: var(--card); border: 1px solid var(--line); color: var(--accent-ink); }
.steps h3 { font-size: 1.08rem; }
.steps p { margin: 6px 0 0; color: var(--ink-2); font-size: 14px; }
.section > h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.section-actions { margin-top: 22px; }

.status-box { padding: 22px; margin: 20px 0; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.status-box h3 { font-size: 1.3rem; margin: 6px 0 8px; }
.status-box p { color: var(--ink-2); margin: 8px 0 0; }
.status-box .btn, .status-box .btn-quiet { margin-top: 16px; }
.facts { margin: 14px 0 0; }
.facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts dt { color: var(--ink-2); font-size: 14px; }
.facts dd { margin: 0; font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.fact-key dd { color: var(--accent-ink); font-size: 1.05rem; letter-spacing: .03em; }
.copy { background: none; border: 0; padding: 0; margin-left: 8px; font-size: 13px; font-weight: 500; color: var(--ink-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.copy:hover { color: var(--accent-ink); }
.pay-grid { display: grid; gap: 20px; margin-top: 20px; }
.pay-bank, .pay-form { padding: 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow-sm); }
.pay-grid h3 { font-size: 1.2rem; margin-bottom: 12px; }
.pay-note { margin: 16px 0 0; font-weight: 500; }
.pay-steps { margin-top: 14px; color: var(--ink-2); font-size: 14px; }
.pay-steps li { padding: 3px 0; }
@media (min-width: 860px) { .pay-grid { grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; } }

/* ---------- Formlar ---------- */
.form label, .modal-form label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 14px; }
.form input:not([type=hidden]):not([type=file]):not([type=checkbox]):not([type=radio]), .form textarea, .form select, .modal-form input, .prefs-form select { display: block; width: 100%; margin-top: 6px; padding: 10px 12px; font: inherit; font-size: 16px; font-weight: 400; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: var(--shadow-sm); }
.form input:focus, .form textarea:focus, .form select:focus, .modal-form input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.form input[type=file] { display: block; margin-top: 8px; font-size: 14px; max-width: 100%; }
.form .btn, .modal-form .btn { margin-top: 4px; width: 100%; }
.hint, .optional { display: block; margin-top: 5px; font-size: 12.5px; font-weight: 400; color: var(--ink-2); }
.optional { display: inline; margin: 0; }
.hint a { text-decoration: underline; text-underline-offset: 2px; }
.form-msg { margin: 0 0 12px !important; padding: 9px 12px; font-size: 14px !important; background: var(--bad-soft); color: var(--bad) !important; border-radius: 10px; }
.form-msg.is-ok { background: var(--ok-soft); color: var(--ok) !important; }
.flash { padding: 12px 16px; margin: 0 0 22px; border-radius: 12px; border: 1px solid #D3E4CF; background: var(--ok-soft); color: #2E5C38; }
.flash-bad { border-color: #F0D2CA; background: var(--bad-soft); color: var(--bad); }
.form label.check { display: flex; align-items: center; gap: 9px; font-weight: 400; font-size: 14.5px; margin-bottom: 4px; }
.form label.check input[type=checkbox] { width: 18px; height: 18px; margin: 0; flex: none; accent-color: var(--accent); }
.interest-set { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }
.interest-set legend { font-size: 14px; font-weight: 500; padding: 0; }
.interest-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 6px 14px; margin-top: 10px; }
.interest-list label.check { margin: 0; padding: 8px 10px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.interest-list label.check:has(input:checked) { border-color: var(--accent-tint); background: var(--accent-soft); }
.prefs-form { max-width: 560px; margin-top: 14px; }
.prefs-form > label.check { margin-bottom: 16px; }
.prefs-form .btn { width: auto; }

/* ---------- Hesap sayfaları ---------- */
.account .page-head { padding-bottom: 14px; }
.account-nav { margin-bottom: 24px; overflow-x: auto; scrollbar-width: none; }
.account-nav::-webkit-scrollbar { display: none; }
.account-nav .sorts { flex-wrap: nowrap; white-space: nowrap; padding: 4px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; width: max-content; }
@media (min-width: 1024px) { .account-nav { display: none; } }
.read-list { display: grid; gap: 8px; }
.read-list li { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.read-title { display: block; font-family: var(--font-head); font-size: 1.1rem; }
.read-sub { display: block; font-size: 13px; color: var(--ink-2); margin-top: 2px; }
.read-list a:hover .read-title { color: var(--accent-ink); }
.read-state { font-size: 13px; color: var(--ink-2); text-align: right; white-space: nowrap; }
.read-state .done { color: var(--ok); font-weight: 500; }
.read-date { display: block; font-size: 12px; }
.settings-grid { display: grid; gap: 28px; }
.settings-grid > .form { padding: 22px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.settings-grid h2, .account .section > h2 { font-size: 1.3rem; margin-bottom: 14px; }
.settings-grid .btn { width: auto; }
@media (min-width: 860px) { .settings-grid { grid-template-columns: 1fr 1fr; } }
.data-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding: 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; }
.data-row p { margin: 0; color: var(--ink-2); }
.data-row .btn { width: auto; }
.danger { margin-top: 16px; }
.danger summary { cursor: pointer; color: var(--bad); font-size: 14px; }
.danger .form { max-width: 420px; margin-top: 14px; }
.danger .form p { color: var(--ink-2); font-size: 14px; }
.danger .btn { width: auto; }
form.notice-line { display: block; }

/* Kelime defteri ve tekrar */
.vocab-filters { margin-top: 24px; }
.vocab-search input { font: inherit; font-size: 15px; height: 36px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--card); color: var(--ink); width: min(240px, 100%); }
.vocab-list { display: grid; gap: 8px; }
.vocab-list li { display: flex; justify-content: space-between; gap: 16px; padding: 14px 16px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.vocab-list p { margin: 0; }
.vocab-word { font-family: var(--font-read); font-size: 1.25rem; }
.vocab-ipa { font-family: var(--font-ui); font-size: 13.5px; color: var(--ink-2); margin-left: 6px; }
.vocab-tr { font-weight: 600; margin-top: 2px !important; }
.vocab-ex { font-family: var(--font-read); font-style: italic; color: #55554E; font-size: 14.5px; margin-top: 6px !important; }
.vocab-meta { font-size: 12.5px; color: var(--ink-2); margin-top: 6px !important; }
.vocab-meta a { text-decoration: underline; text-underline-offset: 2px; }
.vocab-meta .done, .stat-block .done { color: var(--ok); font-weight: 500; }
.vocab-acts { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex: none; }
.vocab-acts .copy { margin: 0; }
.review { max-width: 520px; margin: 20px 0 32px; }
.review[hidden], .review-box[hidden] { display: none; }
.review-count { font-size: 13px; color: var(--ink-2); margin: 0 0 8px; }
.review-card { padding: 34px 24px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: var(--shadow); text-align: center; min-height: 230px; display: flex; flex-direction: column; justify-content: center; }
.review-card p { margin: 0; }
.review-word { font-family: var(--font-read); font-size: 2.1rem; }
.review-ipa { color: var(--ink-2); font-size: 15px; margin-top: 4px !important; }
.review-ex { font-family: var(--font-read); font-style: italic; color: #55554E; margin-top: 14px !important; }
.review-answer { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--line); }
.review-tr { font-size: 1.35rem; font-weight: 600; }
.review-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.review-actions .btn { flex: 1 1 140px; }
.review-actions .btn[hidden] { display: none; }
.review-quit { margin: 14px 0 0; }

/* İstatistikler */
.stat-block { margin-bottom: 34px; }
.stat-block h2 { font-size: 1.3rem; margin-bottom: 4px; }
.stat-block .muted { color: var(--ink-2); font-weight: 400; }
.week { margin-top: 12px; padding: 8px 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: var(--r); }
.week li { display: grid; grid-template-columns: 40px 1fr 56px; align-items: center; gap: 12px; padding: 7px 0; font-size: 13.5px; }
.week-day { color: var(--ink-2); }
.week-bar { height: 8px; background: var(--card); border: 1px solid var(--line); border-radius: 6px; overflow: hidden; }
.week-bar span { display: block; height: 100%; background: var(--accent); border-radius: 6px; }
.week-min { text-align: right; font-variant-numeric: tabular-nums; }
.badges { display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); margin-top: 12px; }
.badges li { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px; background: var(--bg-3); border: 1px solid var(--line); border-radius: 12px; color: var(--ink-2); }
.badges .badge-name { font-family: var(--font-head); font-size: 1.05rem; }
.badges .is-earned { background: var(--accent-soft); border-color: var(--accent-tint); color: var(--ink); }
.badges .is-earned .badge-state { color: var(--accent-ink); }
.badge-state { font-size: 13px; }

/* ---------- Pencere (modal) ---------- */
.modal { width: min(420px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--card); color: var(--ink); box-shadow: var(--shadow-lg); overflow-y: auto; }
.modal::backdrop { background: rgba(38, 39, 34, .36); backdrop-filter: blur(2px); }
.modal h2 { font-size: 1.6rem; margin: 10px 0 10px; padding-right: 24px; }
.modal p { color: var(--ink-2); font-size: 15px; margin-bottom: 0; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 36px; height: 36px; border: 0; border-radius: 10px; background: none; font-size: 24px; line-height: 1; color: var(--ink-2); cursor: pointer; }
.modal-close:hover { background: var(--bg-2); color: var(--ink); }
.modal-actions { display: grid; gap: 8px; margin-top: 22px; }
.modal-price { margin-top: 16px !important; }
.modal-price span { font-family: var(--font-head); font-size: 2.1rem; color: var(--ink); }
.modal-perk { display: flex; gap: 8px; align-items: flex-start; margin-top: 14px !important; padding: 10px 12px; font-size: 14px !important; color: #2E5C38 !important; background: var(--ok-soft); border-radius: 10px; }
.modal-perk .ic { margin-top: 2px; }
.modal-note { margin: 0 0 10px !important; padding: 10px 12px; font-size: 14px !important; color: #6B5A2E !important; background: #FBF5E6; border: 1px solid #F0E3BF; border-radius: 10px; }
.modal-links { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; margin-top: 16px !important; }
.modal-links button { background: none; border: 0; padding: 2px 0; font-size: 14px; color: var(--ink-2); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.modal-links button:hover { color: var(--accent-ink); }
.modal-form { margin-top: 18px; }

/* Kısa bildirim */
.toast { position: fixed; left: 50%; top: calc(var(--ab) + 70px); transform: translateX(-50%); max-width: calc(100vw - 32px); padding: 10px 16px; background: var(--ink); color: #fff; font-size: 14px; border-radius: 12px; box-shadow: var(--shadow-lg); z-index: 120; text-align: center; }
.toast[hidden] { display: none; }

/* ---------- Sesli okuma oynatıcısı ---------- */
.player { position: fixed; left: 0; right: 0; bottom: 0; z-index: 65; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(10px); border-top: 1px solid var(--line); box-shadow: 0 -10px 30px -18px rgba(38, 39, 34, .3); padding-bottom: env(safe-area-inset-bottom); }
@media (min-width: 1024px) { html:not(.sb-closed) .player { left: var(--sb-w); } }
.player[hidden] { display: none; }
.player-track { height: 12px; cursor: pointer; background: linear-gradient(var(--line), var(--line)) top / 100% 3px no-repeat; }
.player-fill { height: 3px; width: 0; background: var(--accent); transition: width .2s linear; }
.player-row { display: flex; align-items: center; gap: 6px; max-width: var(--page-w); margin-inline: auto; padding: 0 16px 8px; }
.pl-btn { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: 50%; color: var(--ink); cursor: pointer; flex: none; }
.pl-btn:hover { background: var(--bg-2); }
.pl-play { width: 44px; height: 44px; background: var(--ink); color: #fff; }
.pl-play:hover { background: var(--accent-ink); }
.pl-close { font-size: 22px; line-height: 1; color: var(--ink-2); }
.pl-info { font-size: 13px; color: var(--ink-2); margin-left: 6px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-variant-numeric: tabular-nums; min-width: 0; flex: 0 1 auto; }
.pl-gap { flex: 1 1 0; min-width: 0; }
.pl-speed, .pl-accent { height: 34px; padding: 0 6px; font: inherit; font-size: 13px; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 9px; }
.pl-vol { width: 84px; accent-color: var(--accent); display: none; }
@media (min-width: 700px) { .pl-vol { display: block; } }
@media (max-width: 699px) { .pl-btn { width: 38px; height: 38px; } .player-row { gap: 2px; padding-inline: 8px; } .pl-info { flex: none; margin-left: 4px; } .pl-speed, .pl-accent { padding: 0 2px; } }
.has-player .site-footer { padding-bottom: 84px; }
.has-player .wcard:not(.is-docked) { bottom: 82px; }

/* ---------- Alt bilgi ---------- */
.site-footer { padding: 22px 28px 28px; font-size: 13px; color: var(--ink-2); }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; max-width: calc(var(--page-w) + 160px); margin: 0 auto; }
.footer-text { margin: 0; }
.footer-text strong { color: var(--ink); font-weight: 600; }
.footer-links { display: flex; flex-wrap: wrap; gap: 4px 14px; }
.footer-links a:hover { color: var(--ink); }
.footer-copy { max-width: calc(var(--page-w) + 160px); margin: 10px auto 0; color: var(--ink-3); font-size: 12.5px; }
@media (max-width: 1023px) { .site-footer { padding: 18px 16px 24px; } }

/* Serbest sayfa içeriği */
.prose { font-size: 16.5px; line-height: 1.75; max-width: var(--read-w); }
.prose h2 { font-size: 1.5rem; margin: 1.6em 0 .5em; }
.prose a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.prose ul { list-style: disc; padding-left: 1.2em; margin-bottom: 1em; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition: none !important; }
}

/* Cümle çeviri düğmesi ve satır içi çeviri */
.story-text .s-tr { position: relative; display: inline; margin: 0 .5em 0 .25em; padding: .22em .5em; vertical-align: .18em; font: 600 .5em/1 var(--font-ui); letter-spacing: .05em; color: var(--ink-3); background: var(--card); border: 1px solid var(--line-2); border-radius: 6px; cursor: pointer; opacity: .65; transition: opacity .12s, color .12s, background-color .12s, border-color .12s; }
.story-text .s-tr::before { content: "TR"; }
.story-text .s-tr::after { content: ""; position: absolute; inset: -10px -8px; }
.story-text .s:hover .s-tr, .story-text .s-tr:hover, .story-text .s-tr:focus-visible, .story-text .s-tr[aria-expanded="true"] { opacity: 1; color: var(--accent-ink); background: var(--accent-soft); border-color: var(--accent-tint); }
.story-text .s-tr[aria-expanded="true"] { background: var(--accent); border-color: var(--accent); color: #fff; }
.story-text .s-trans { display: block; margin: .3em 0 .55em; padding: .55em .85em; font: 400 .74em/1.55 var(--font-ui); color: #45453F; background: var(--bg-3); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; }
.story-text .s-trans.is-loading, .story-text .s-trans.is-empty { color: var(--ink-2); }
.story-text .s-trans-text { display: block; }
.story-text .s-trans-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: .45em; font-size: .86em; color: var(--ink-2); }
.story-text .s-trans-listen { padding: 2px 10px; font: inherit; color: var(--ink); background: var(--card); border: 1px solid var(--line-2); border-radius: 99px; cursor: pointer; }
.story-text .s-trans-listen:hover { border-color: var(--accent); color: var(--accent-ink); }
.tr-key { display: inline-block; padding: 0 5px; font-size: 10.5px; font-weight: 600; letter-spacing: .05em; color: var(--accent-ink); background: var(--accent-soft); border: 1px solid var(--accent-tint); border-radius: 5px; vertical-align: 1px; }
@media (hover: none) { .story-text .s-tr { opacity: .85; } }
.story-text .s-end { white-space: nowrap; }
