/* Yerel fontlar (SIL Open Font License; vendor/fonts/LICENSE-OFL.txt): çevrimdışı çalışır, Google'a istek gitmez */
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('vendor/fonts/inter-latin-ext-wght-normal.woff2') format('woff2-variations'), url('vendor/fonts/inter-latin-ext-wght-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-style: normal; font-display: swap; font-weight: 100 900;
  src: url('vendor/fonts/inter-latin-wght-normal.woff2') format('woff2-variations'), url('vendor/fonts/inter-latin-wght-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('vendor/fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2-variations'), url('vendor/fonts/newsreader-latin-ext-opsz-normal.woff2') format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Newsreader'; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url('vendor/fonts/newsreader-latin-opsz-normal.woff2') format('woff2-variations'), url('vendor/fonts/newsreader-latin-opsz-normal.woff2') format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }

:root {
  --bg: #0b0f18;
  --panel: rgba(22, 28, 42, 0.86);
  --panel-strong: #171d2b;
  --panel-soft: #111724;
  --text: #f4f6fb;
  --muted: #9ca7ba;
  --line: rgba(255,255,255,.09);
  --accent: #ffcb69;
  --accent-strong: #ffb932;
  --accent-soft: rgba(255,203,105,.14);
  --danger: #ff7d7d;
  --success: #79dfa7;
  --radius: 22px;
  --shadow: 0 24px 70px rgba(0,0,0,.30);
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(92,108,255,.13), transparent 34%),
    radial-gradient(circle at 86% 22%, rgba(255,203,105,.10), transparent 26%),
    var(--bg);
  color: var(--text);
}
button, input, textarea, select { font: inherit; }
button { color: inherit; }
button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible {
  outline: 3px solid rgba(255,203,105,.35);
  outline-offset: 2px;
}
.app-shell { max-width: 1440px; margin: 0 auto; min-height: 100vh; }
.topbar {
  height: 88px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(18px);
  background: rgba(11,15,24,.76);
}
.brand { border: 0; background: none; display: flex; align-items: center; gap: 13px; cursor: pointer; text-align: left; }
.brand-mark { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 14px; background: var(--accent); color: #17120a; font-weight: 900; letter-spacing: -.04em;  }
.brand strong { display: block; font-size: 16px; }
.brand small { display: block; color: var(--muted); margin-top: 3px; font-size: 12px; }
.topnav { display: flex; gap: 8px; padding: 5px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 13px; }
.nav-button { border: 0; background: transparent; padding: 9px 15px; border-radius: 9px; cursor: pointer; color: var(--muted); font-weight: 700; }
.nav-button.active { background: rgba(255,255,255,.08); color: var(--text); }
main { padding: 48px 34px 72px; }
.view { display: none; }
.view.active { display: block; animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: none; } }
.hero-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(520px, 1.1fr); gap: 54px; align-items: center; min-height: calc(100vh - 208px); }
.hero-copy { padding-left: 5vw; max-width: 650px; }
.eyebrow, .step-label { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .15em; }
.hero-copy h1, .stats-heading h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(48px, 5vw, 78px); line-height: .98; letter-spacing: -.045em; margin: 16px 0 24px; }
.hero-copy p, .stats-heading p { color: var(--muted); font-size: 17px; line-height: 1.75; max-width: 590px; }
.feature-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.feature-pills span { background: rgba(255,255,255,.045); border: 1px solid var(--line); border-radius: 999px; padding: 9px 12px; font-size: 12px; color: #cbd2df; }
.panel { background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow); border-radius: var(--radius); backdrop-filter: blur(20px); }
.setup-card { padding: 28px; }
.panel-heading { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; }
.panel-heading.tight { margin-bottom: 30px; }
.panel-heading h2, .panel-heading h3 { margin: 5px 0 0; }
.field-label { display: block; font-size: 12px; color: #cdd3df; font-weight: 700; margin: 17px 0 8px; }
.text-input, .text-area, .select-input { width: 100%; background: #0d1320; border: 1px solid var(--line); color: var(--text); border-radius: 13px; }
.text-input, .select-input { height: 46px; padding: 0 14px; }
.text-area { min-height: 210px; resize: vertical; padding: 15px; line-height: 1.62; }
.upload-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 12px; }
.upload-box { min-height: 102px; border: 1px dashed rgba(255,203,105,.35); background: var(--accent-soft); border-radius: 15px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; transition: .2s ease; }
.upload-box.dragging, .upload-box:hover { border-color: var(--accent); transform: translateY(-1px); }
.upload-box strong { font-size: 13px; }
.upload-box small { color: var(--muted); margin-top: 4px; }
.upload-icon { font-size: 25px; color: var(--accent); line-height: 1; margin-bottom: 7px; }
.upload-status { background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 15px; padding: 18px; display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.upload-status strong { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.upload-status span { color: var(--muted); font-size: 12px; line-height: 1.45; margin-top: 5px; }
.text-meta, .range-hints { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; margin-top: 7px; }
.setup-options { display: grid; grid-template-columns: 1fr 180px; gap: 18px; margin: 22px 0; }
.option-block label { display: block; color: #cdd3df; font-size: 12px; font-weight: 700; margin-bottom: 10px; }
.range-line { display: flex; align-items: center; gap: 12px; }
.range-line input { flex: 1; }
output { color: var(--accent); font-weight: 800; font-size: 12px; white-space: nowrap; }
input[type="range"] { width: 100%; accent-color: var(--accent); }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
button { user-select: none; }
.primary-button, .secondary-button, .ghost-button, .back-button { border-radius: 12px; font-weight: 800; cursor: pointer; transition: transform .18s ease, background .18s ease, border-color .18s ease; }
.primary-button:hover, .secondary-button:hover, .ghost-button:hover { transform: translateY(-1px); }
.primary-button { border: 0; background: var(--accent); color: #19140b; min-height: 48px; padding: 0 20px; }
.primary-button:hover { background: var(--accent-strong); }
.secondary-button { border: 1px solid var(--line); background: rgba(255,255,255,.06); min-height: 46px; padding: 10px 18px; }
.ghost-button { border: 1px solid var(--line); background: transparent; min-height: 42px; padding: 8px 15px; }
.ghost-button.small { min-height: 34px; font-size: 12px; }
.ghost-button.danger { color: var(--danger); }
.full { width: 100%; }
.error-message { min-height: 18px; color: var(--danger); font-size: 12px; margin-bottom: 7px; }
.reader-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 22px; margin-bottom: 24px; }
.reader-header h2 { margin: 10px 0 0; font-family: Newsreader, Georgia, serif; font-size: 38px; }
.back-button { border: 0; background: transparent; color: var(--muted); padding: 0; }
.mode-switch { display: flex; background: rgba(255,255,255,.04); padding: 5px; border-radius: 13px; border: 1px solid var(--line); }
.mode-switch button { border: 0; background: transparent; color: var(--muted); border-radius: 9px; padding: 9px 14px; cursor: pointer; font-weight: 700; }
.mode-switch button.active { background: var(--accent); color: #19140b; }
.reader-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 22px; }
.reader-stage { min-height: 650px; display: flex; flex-direction: column; overflow: hidden; }
.reader-stats-strip { display: flex; justify-content: flex-end; gap: 25px; padding: 20px 24px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.reader-stats-strip strong { color: var(--text); font-size: 15px; }
.rsvp-stage { flex: 1; min-height: 520px; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px; position: relative; }
.rsvp-word { font-size: clamp(44px, 6vw, 88px); font-weight: 800; letter-spacing: -.05em; text-align: center; line-height: 1.18; max-width: 95%; word-break: break-word; }
.rsvp-word .pivot { color: var(--accent); }
.rsvp-stage p { color: var(--muted); font-size: 12px; position: absolute; bottom: 34px; text-align: center; }
.focus-line { width: 2px; height: 24px; background: var(--accent); position: absolute; left: 50%; transform: translateX(-50%); }
.focus-line.top { top: 29%; }
.focus-line.bottom { bottom: 29%; }
.flow-stage { flex: 1; min-height: 520px; max-height: 600px; overflow: auto; padding: 48px clamp(34px, 7vw, 100px); scroll-behavior: smooth; }
.flow-text { font-family: Newsreader, Georgia, serif; font-size: clamp(25px, 2.2vw, 34px); line-height: 1.9; color: #cbd1dd; }
.flow-word { border-radius: 6px; padding: 1px 2px; transition: .15s ease; }
.flow-word.current { background: var(--accent); color: #17120a; box-shadow: 0 0 0 4px rgba(255,203,105,.1); }
.flow-word.read { color: #6f788a; }
.reader-progress-track { height: 6px; background: rgba(255,255,255,.05); }
.reader-progress-track div { height: 100%; width: 100%; transform: scaleX(0); transform-origin: left center; background: var(--accent); transition: transform .15s linear; }
.reader-controls { padding: 28px; align-self: stretch; }
.play-controls { display: flex; justify-content: center; align-items: center; gap: 15px; margin: 18px 0 35px; }
.round-button, .play-button { border-radius: 999px; cursor: pointer; display: grid; place-items: center; }
.round-button { width: 48px; height: 48px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--muted); font-weight: 800; font-size: 12px; }
.play-button { width: 74px; height: 74px; border: 0; background: var(--accent); color: #17120a; font-size: 24px; box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.control-group { border-top: 1px solid var(--line); padding: 22px 0; }
.control-title { display: flex; justify-content: space-between; font-size: 12px; font-weight: 700; margin-bottom: 14px; }
.check-row { display: flex; justify-content: space-between; align-items: center; }
.reader-controls .secondary-button { margin-bottom: 10px; }
.hidden { display: none !important; }
.quiz-shell { max-width: 850px; margin: 0 auto; }
.quiz-intro { text-align: center; margin: 35px auto 40px; max-width: 650px; }
.quiz-intro h2 { font-family: Newsreader, Georgia, serif; font-size: 48px; margin: 12px 0; }
.quiz-intro p { color: var(--muted); line-height: 1.7; }
.quiz-form { display: grid; gap: 18px; }
.question-card { padding: 24px; background: var(--panel); border: 1px solid var(--line); border-radius: 18px; }
.question-card legend { padding: 0; font-weight: 700; line-height: 1.5; margin-bottom: 18px; }
.question-number { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .12em; display: block; margin-bottom: 8px; }
.answer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.answer-option { display: flex; align-items: center; gap: 10px; padding: 13px 14px; background: #0f1522; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; }
.answer-option:hover { border-color: rgba(255,203,105,.35); }
.answer-option input { accent-color: var(--accent); }
.quiz-actions { display: flex; justify-content: space-between; margin-top: 25px; }
.result-shell { max-width: 780px; margin: 40px auto; padding: 45px; text-align: center; }
.result-shell h2 { font-family: Newsreader, Georgia, serif; font-size: 48px; margin: 10px 0 25px; }
.score-ring { width: 170px; height: 170px; border-radius: 50%; margin: 0 auto 32px; display: flex; flex-direction: column; justify-content: center; border: 10px solid rgba(255,203,105,.22); box-shadow: inset 0 0 0 2px var(--accent); }
.score-ring strong { font-size: 40px; color: var(--accent); }
.score-ring span { color: var(--muted); font-size: 12px; margin-top: 3px; }
.result-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.result-grid div { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 14px; padding: 16px 10px; }
.result-grid span { display: block; color: var(--muted); font-size: 12px; margin-bottom: 7px; }
.result-grid strong { font-size: 17px; }
.result-note { color: var(--muted); line-height: 1.6; margin: 28px auto; max-width: 620px; }
.result-actions { display: flex; justify-content: center; gap: 10px; }
.stats-heading { display: flex; justify-content: space-between; align-items: flex-end; gap: 25px; margin-bottom: 28px; }
.stats-heading h1 { font-size: 58px; margin-bottom: 10px; }
.stats-heading p { margin: 0; }
.stats-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.stat-card { padding: 24px; }
.stat-card span { color: var(--muted); font-size: 12px; display: block; margin-bottom: 10px; }
.stat-card strong { font-size: 30px; }
.history-panel { padding: 26px; }
.history-list { display: grid; gap: 10px; }
.history-item { display: grid; grid-template-columns: 1fr repeat(4, 110px); align-items: center; gap: 12px; background: rgba(255,255,255,.035); border: 1px solid var(--line); border-radius: 13px; padding: 15px; }
.history-title strong, .history-title span { display: block; }
.history-title span, .history-metric span { color: var(--muted); font-size: 12px; margin-top: 4px; }
.history-metric { text-align: right; }
.empty-state { color: var(--muted); text-align: center; padding: 50px 20px; border: 1px dashed var(--line); border-radius: 14px; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translate(-50%, 20px); background: #f5f1e8; color: #17120a; padding: 12px 16px; border-radius: 11px; font-weight: 700; font-size: 12px; opacity: 0; pointer-events: none; transition: .2s ease; z-index: 99; box-shadow: var(--shadow); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.library-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 28px; margin-bottom: 24px; }
.library-heading h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(48px, 5vw, 72px); line-height: 1; letter-spacing: -.04em; margin: 13px 0 16px; }
.library-heading p { max-width: 720px; color: var(--muted); line-height: 1.7; margin: 0; }
.library-summary { min-width: 260px; padding: 22px; }
.library-summary strong { display: block; font-size: 25px; color: var(--accent); }
.library-summary span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 8px; }
.library-toolbar { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 14px; padding: 18px; margin-bottom: 20px; }
.library-toolbar label > span { display: block; color: var(--muted); font-size: 12px; font-weight: 800; letter-spacing: .08em; margin: 0 0 7px 2px; }
.library-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.book-card { overflow: hidden; min-width: 0; display: flex; flex-direction: column; }
.book-cover { min-height: 240px; padding: 24px; display: flex; flex-direction: column; justify-content: flex-end; position: relative; background: radial-gradient(circle at 80% 20%, rgba(255,203,105,.23), transparent 30%), linear-gradient(145deg, #252d42, #101521); border-bottom: 1px solid var(--line); }
.book-card:nth-child(3n+2) .book-cover { background: radial-gradient(circle at 80% 20%, rgba(125,155,255,.24), transparent 30%), linear-gradient(145deg, #252d42, #101521); }
.book-card:nth-child(3n+3) .book-cover { background: radial-gradient(circle at 80% 20%, rgba(121,223,167,.19), transparent 30%), linear-gradient(145deg, #252d42, #101521); }
.book-cover > span { position: absolute; top: 18px; right: 18px; color: rgba(255,255,255,.35); font-weight: 900; font-size: 12px; letter-spacing: .12em; }
.book-cover strong { font-family: Newsreader, Georgia, serif; font-size: 30px; line-height: 1; max-width: 95%; }
.book-cover small { color: var(--accent); margin-top: 10px; font-weight: 700; }
.book-cover.has-image { box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.book-cover.has-image > span { color: rgba(255,255,255,.78); text-shadow: 0 1px 8px rgba(0,0,0,.45); }
.book-cover.has-image strong,
.book-cover.has-image small { color: #fffaf1; text-shadow: 0 2px 14px rgba(0,0,0,.58); }
.book-cover.has-image small { color: #ffe1a8; }
.book-card-body { padding: 20px; display: flex; flex-direction: column; flex: 1; }
.book-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.book-tags span { color: #c9d0dd; border: 1px solid var(--line); background: rgba(255,255,255,.04); border-radius: 999px; padding: 5px 8px; font-size: 11px; font-weight: 800; letter-spacing: .05em; }
.book-card-body h2 { font-family: Newsreader, Georgia, serif; font-size: 25px; line-height: 1.08; margin: 0; }
.book-author { color: var(--accent); font-size: 12px; font-weight: 700; margin: 7px 0 13px; }
.book-description { color: var(--muted); font-size: 12px; line-height: 1.58; margin: 0 0 18px; flex: 1; }
.book-meta { display: flex; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 12px; border-top: 1px solid var(--line); padding-top: 13px; margin-bottom: 14px; }
.library-load-button { min-height: 42px; font-size: 12px; }
.library-legal { margin-top: 22px; padding: 20px 22px; display: grid; grid-template-columns: 140px 1fr; gap: 16px; align-items: center; }
.library-legal strong { color: var(--accent); }
.library-legal p { color: var(--muted); line-height: 1.6; font-size: 12px; margin: 0; }
.library-empty { grid-column: 1 / -1; }

@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-copy { padding: 30px 0 0; }
  .reader-layout { grid-template-columns: 1fr; }
  .reader-stage { min-height: 540px; }
  .stats-cards { grid-template-columns: 1fr 1fr; }
  .history-item { grid-template-columns: 1fr 1fr 1fr; }
  .library-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .history-title { grid-column: 1 / -1; }
}
@media (max-width: 650px) {
  .topbar { padding: 0 16px; height: 76px; }
  .brand small { display: none; }
  main { padding: 28px 16px 55px; }
  .hero-copy h1 { font-size: 45px; }
  .setup-card { padding: 20px; }
  .upload-row, .setup-options, .answer-grid { grid-template-columns: 1fr; }
  .reader-header { align-items: flex-start; flex-direction: column; }
  .reader-controls { padding: 20px; }
  .rsvp-stage { padding: 25px 15px; min-height: 420px; }
  .result-grid, .stats-cards { grid-template-columns: 1fr 1fr; }
  .result-shell { padding: 28px 18px; }
  .result-actions, .quiz-actions { flex-direction: column; }
  .history-item { grid-template-columns: 1fr 1fr; }
  .history-title { grid-column: 1 / -1; }
  .stats-heading { align-items: flex-start; flex-direction: column; }
  .topnav { gap: 2px; }
  .nav-button { padding: 8px 9px; font-size: 12px; }
  .library-heading { align-items: flex-start; flex-direction: column; }
  .library-summary { width: 100%; min-width: 0; }
  .library-toolbar, .library-grid, .library-legal { grid-template-columns: 1fr; }
  .book-cover { min-height: 205px; }
}


/* v0.3 açık kütüphane */
.library-tabs { display:flex; gap:8px; padding:10px; margin-bottom:20px; overflow:auto; }
.library-tab { border:0; background:transparent; color:var(--muted); padding:12px 16px; border-radius:12px; font-weight:800; white-space:nowrap; cursor:pointer; }
.library-tab.active { color:var(--text); background:rgba(255,255,255,.08); box-shadow:inset 0 0 0 1px rgba(255,255,255,.08); }
.library-mode-panel { display:none; }
.library-mode-panel.active { display:block; }
.open-catalog-toolbar { display:grid; grid-template-columns:minmax(260px,1fr) minmax(220px,1fr) auto; gap:14px; align-items:end; padding:18px; margin-bottom:14px; }
.open-catalog-toolbar label > span { display:block; color:var(--muted); font-size:12px; font-weight:800; letter-spacing:.08em; margin:0 0 7px 2px; }
.open-catalog-toolbar .wide-field { grid-column:span 2; }
.catalog-status, .global-warning { padding:16px 18px; margin-bottom:16px; color:var(--muted); line-height:1.55; font-size:13px; }
.global-warning { display:flex; gap:14px; align-items:flex-start; }
.global-warning strong { color:var(--accent); white-space:nowrap; }
.work-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:14px; }
.work-card { padding:18px; display:flex; flex-direction:column; gap:12px; min-width:0; }
.work-card h3 { margin:0; font-family:Newsreader,Georgia,serif; font-size:23px; line-height:1.12; }
.work-card p { margin:0; color:var(--muted); line-height:1.55; font-size:12px; }
.work-card .work-meta { display:flex; flex-wrap:wrap; gap:7px; }
.work-card .work-meta span, .source-status { border:1px solid rgba(255,255,255,.1); border-radius:999px; padding:5px 8px; color:var(--muted); font-size:12px; font-weight:800; }
.work-actions { display:grid; grid-template-columns:1fr auto; gap:8px; margin-top:auto; }
.work-actions button { min-height:40px; }
.source-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:16px; }
.source-card { padding:20px; display:flex; flex-direction:column; gap:12px; }
.source-card h2 { margin:0; font-family:Newsreader,Georgia,serif; font-size:25px; }
.source-card p { margin:0; color:var(--muted); line-height:1.6; font-size:12px; }
.source-card .source-license { color:var(--text); font-size:12px; }
.source-card a { margin-top:auto; color:var(--accent); font-weight:800; text-decoration:none; font-size:12px; }
.source-status.enabled, .source-status.enabled_guarded { color:var(--accent); border-color:rgba(121,223,167,.35); }
.source-status.excluded_commercial_default { color:#ff9d9d; border-color:rgba(255,100,100,.35); }
.catalog-spinner { display:inline-block; width:14px; height:14px; border:2px solid rgba(255,255,255,.2); border-top-color:var(--accent); border-radius:50%; animation:catalog-spin .8s linear infinite; vertical-align:-2px; margin-right:8px; }
@keyframes catalog-spin { to { transform:rotate(360deg); } }
@media (max-width:1000px){ .work-grid,.source-grid{grid-template-columns:repeat(2,minmax(0,1fr));} }
@media (max-width:680px){ .open-catalog-toolbar,.work-grid,.source-grid{grid-template-columns:1fr;} .open-catalog-toolbar .wide-field{grid-column:auto;} .global-warning{flex-direction:column;} }

/* v1 ürünleşme katmanı */
.profile-callout { margin-top:24px; padding:18px; display:flex; align-items:center; justify-content:space-between; gap:18px; max-width:720px; }
.profile-callout strong,.profile-callout small { display:block; }
.profile-callout strong { margin-top:5px; font-size:20px; }
.profile-callout small { color:var(--muted); margin-top:5px; line-height:1.4; }
.document-tools { display:grid; grid-template-columns:minmax(0,1fr) auto; gap:12px; align-items:end; margin-top:12px; }
.document-tools label > span { display:block; color:var(--muted); font-size:12px; font-weight:800; margin:0 0 7px 2px; }
.plan-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:24px; margin-bottom:24px; }
.plan-heading h1 { font-family:Newsreader,Georgia,serif; font-size:clamp(48px,6vw,78px); line-height:.98; margin:12px 0; }
.plan-heading p { color:var(--muted); max-width:720px; line-height:1.6; }
.plan-overview { display:grid; grid-template-columns:repeat(3,160px) 1fr; gap:16px; padding:24px; align-items:center; margin-bottom:18px; }
.plan-overview div { border-right:1px solid var(--line); }
.plan-overview span { color:var(--muted); display:block; font-size:12px; margin-bottom:7px; }
.plan-overview strong { font-size:26px; }
.plan-overview p { color:var(--muted); line-height:1.55; margin:0; }
.exercise-grid { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:14px; }
.exercise-card { padding:20px; }
.exercise-card span { color:var(--accent); font-size:12px; font-weight:800; }
.exercise-card h3 { margin:10px 0 8px; font-family:Newsreader,Georgia,serif; font-size:25px; }
.exercise-card p { color:var(--muted); font-size:12px; line-height:1.5; }
.plan-actions { display:flex; justify-content:space-between; align-items:center; gap:20px; padding:22px; margin-top:18px; }
.plan-actions strong,.plan-actions span { display:block; }
.plan-actions span { color:var(--muted); font-size:12px; margin-top:6px; }
.assessment-shell { max-width:980px; margin:0 auto; padding:32px; }
.assessment-top { display:flex; justify-content:space-between; gap:24px; align-items:flex-start; }
.assessment-top h2 { font-family:Newsreader,Georgia,serif; font-size:48px; margin:10px 0; }
.assessment-top p { color:var(--muted); line-height:1.6; max-width:720px; }
.assessment-top > span { color:var(--accent); font-weight:900; }
.assessment-text { background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:16px; padding:30px; font-family:Newsreader,Georgia,serif; font-size:25px; line-height:1.72; margin:24px 0; }
.assessment-timer { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; color:var(--muted); }
.assessment-timer strong { color:var(--text); font-size:27px; }
.personal-book-actions { display:grid; grid-template-columns:1fr auto auto; gap:7px; }
.personal-book-actions button { min-height:40px; }
.result-diagnostics { display:grid; grid-template-columns:repeat(4,1fr); gap:10px; max-width:660px; margin:0 auto 24px; }
.result-diagnostics div { background:rgba(255,255,255,.035); border:1px solid var(--line); border-radius:12px; padding:12px; }
.result-diagnostics span { display:block; color:var(--muted); font-size:12px; margin-bottom:5px; }
.stats-actions { display:flex; gap:8px; }
.stats-insights { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:18px; margin-bottom:18px; }
.chart-panel,.insight-panel { padding:24px; }
#progressChart { width:100%; min-height:230px; overflow:visible; }
.chart-line { fill:none; stroke:var(--accent); stroke-width:4; stroke-linecap:round; stroke-linejoin:round; }
.chart-grid { stroke:rgba(255,255,255,.08); stroke-width:1; }
.chart-dot { fill:var(--bg); stroke:var(--accent); stroke-width:3; }
.chart-label { fill:var(--muted); font-size:12px; }
.insight-panel h2 { font-family:Newsreader,Georgia,serif; font-size:30px; margin:12px 0; }
.insight-panel p { color:var(--muted); line-height:1.6; }
.question-type { display:inline-flex; margin-left:8px; padding:4px 7px; border:1px solid var(--line); border-radius:999px; color:var(--accent); font-size:11px; font-weight:800; vertical-align:middle; }
@media (max-width:980px){ .plan-overview{grid-template-columns:repeat(3,1fr)} .plan-overview p{grid-column:1/-1} .exercise-grid{grid-template-columns:repeat(2,1fr)} .stats-insights{grid-template-columns:1fr} }
@media (max-width:650px){ .profile-callout,.plan-heading,.plan-actions,.assessment-timer{flex-direction:column;align-items:stretch} .document-tools,.plan-overview,.exercise-grid,.result-diagnostics{grid-template-columns:1fr} .plan-overview div{border-right:0;border-bottom:1px solid var(--line);padding-bottom:12px} .assessment-shell{padding:20px} .assessment-text{font-size:21px;padding:20px} .personal-book-actions{grid-template-columns:1fr 1fr}.personal-book-actions button:first-child{grid-column:1/-1} }
.library-backup-actions{display:flex;gap:8px;justify-content:flex-end;align-items:end}.file-button{display:inline-flex;align-items:center;justify-content:center;cursor:pointer}.personal-book-actions{grid-template-columns:1fr auto auto auto}@media(max-width:650px){.library-backup-actions{flex-direction:column}.personal-book-actions{grid-template-columns:1fr 1fr}.personal-book-actions button:first-child{grid-column:1/-1}}

/* v1.1 — koç, not ve kalıcılık katmanı */
.adaptive-control small { display:block; color:var(--muted); font-size:12px; line-height:1.5; margin-top:9px; }
.adaptive-control small.changed { color:var(--accent); }
.annotation-tools p { color:var(--muted); font-size:12px; line-height:1.5; margin:0 0 10px; }
.annotation-buttons { display:grid; grid-template-columns:repeat(3,1fr); gap:8px; }
.annotation-list { display:grid; gap:8px; margin-top:12px; max-height:190px; overflow:auto; }
.annotation-item { border:1px solid var(--line); background:rgba(255,255,255,.03); border-radius:10px; padding:9px 10px; cursor:pointer; }
.annotation-item:hover { background:rgba(255,255,255,.055); }
.annotation-item strong { display:block; font-size:12px; color:#f6ead5; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.annotation-item span { display:block; color:var(--muted); font-size:11px; margin-top:4px; line-height:1.35; }
.annotation-item button { float:right; border:0; background:transparent; color:var(--muted); cursor:pointer; padding:0 0 0 8px; }
.flow-word.annotated { background:rgba(255,204,107,.20); box-shadow:0 2px 0 rgba(255,204,107,.58); border-radius:3px; }
.flow-word.annotated-note { background:rgba(130,160,255,.20); box-shadow:0 2px 0 rgba(130,160,255,.60); }
.evidence-panel { max-width:760px; margin:0 auto 25px; display:grid; gap:9px; text-align:left; }
.evidence-card { border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.025); padding:12px 14px; }
.evidence-card > div { display:flex; gap:8px; align-items:center; margin-bottom:6px; }
.evidence-card b { font-size:12px; letter-spacing:.04em; }
.evidence-card .ok { color:#79dfa7; }
.evidence-card .bad { color:#ff9b9b; }
.evidence-card p { margin:0; color:var(--muted); font-size:12px; line-height:1.5; }
.evidence-card small { display:block; color:#d7dbe4; margin-top:6px; font-size:12px; line-height:1.45; }
.review-heading { display:flex; justify-content:space-between; gap:24px; align-items:end; margin-bottom:24px; }
.review-heading h1 { font-family:Newsreader,Georgia,serif; font-size:clamp(44px,5vw,68px); line-height:1; letter-spacing:-.04em; margin:12px 0 12px; }
.review-heading p { color:var(--muted); max-width:680px; line-height:1.65; }
.review-summary { min-width:245px; padding:20px; }
.review-summary strong { display:block; color:var(--accent); font-size:22px; }
.review-summary span { display:block; color:var(--muted); font-size:12px; margin-top:8px; }
.review-grid { display:grid; grid-template-columns:minmax(300px,.75fr) minmax(0,1.25fr); gap:18px; }
.review-queue-panel,.review-workspace { padding:22px; }
.review-queue { display:grid; gap:10px; }
.review-item { border:1px solid var(--line); border-radius:12px; padding:13px; background:rgba(255,255,255,.025); }
.review-item.due { border-color:rgba(255,203,105,.48); background:rgba(255,203,105,.055); }
.review-item strong { display:block; font-size:13px; }
.review-item span { display:block; color:var(--muted); font-size:12px; margin:5px 0 10px; }
.review-item button { width:100%; }
.review-result { margin-top:14px; color:var(--muted); font-size:12px; line-height:1.55; }
.review-result strong { color:var(--accent); }
.stats-cards { grid-template-columns:repeat(auto-fit,minmax(145px,1fr)); }
@media (max-width:1100px){ .stats-cards{grid-template-columns:repeat(3,1fr)} .review-grid{grid-template-columns:1fr} }
@media (max-width:650px){ .stats-cards{grid-template-columns:1fr 1fr} .review-heading{flex-direction:column;align-items:stretch}.review-summary{min-width:0}.annotation-buttons{grid-template-columns:1fr} }

/* Vision warm-up */
.vision-heading { display: flex; justify-content: space-between; gap: 28px; align-items: flex-end; margin-bottom: 22px; }
.vision-heading h1 { font-family: Newsreader, Georgia, serif; font-size: clamp(46px, 5vw, 70px); line-height: 1; letter-spacing: -.04em; margin: 12px 0 14px; }
.vision-heading p { max-width: 760px; color: var(--muted); line-height: 1.7; margin: 0; }
.vision-summary { min-width: 260px; padding: 22px; }
.vision-summary strong { display: block; font-size: 24px; color: var(--accent); }
.vision-summary span { display: block; color: var(--muted); font-size: 12px; line-height: 1.55; margin-top: 8px; }
.vision-routine { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px 22px; margin-bottom: 18px; }
.vision-routine > div { display: grid; gap: 5px; }
.vision-routine strong { font-size: 18px; }
.vision-routine small { color: var(--muted); }
.vision-exercise-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-bottom: 18px; }
.vision-card { padding: 18px; min-height: 200px; display: flex; flex-direction: column; }
.vision-card .vision-card-icon { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-weight: 900; margin-bottom: 18px; }
.vision-card > span { color: var(--accent); font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.vision-card h3 { margin: 7px 0 8px; font-size: 18px; }
.vision-card p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 16px; flex: 1; }
.vision-workspace { padding: 24px; }
.vision-workspace-head { display: flex; justify-content: space-between; gap: 24px; align-items: flex-start; margin-bottom: 18px; }
.vision-workspace-head h2 { font-family: Newsreader, Georgia, serif; font-size: 32px; margin: 5px 0 7px; }
.vision-workspace-head p { color: var(--muted); max-width: 720px; margin: 0; line-height: 1.55; }
#visionTimer { font-variant-numeric: tabular-nums; font-size: 30px; color: var(--accent); }
.vision-stage { position: relative; min-height: 370px; overflow: hidden; border: 1px solid var(--line); border-radius: 20px; background: radial-gradient(circle at 50% 50%, rgba(255,255,255,.045), transparent 46%), #090d15; display: grid; place-items: center; }
.vision-placeholder { color: var(--muted); text-align: center; }
.vision-saccade-track { width: min(92%, 900px); display: grid; grid-template-columns: repeat(5, 1fr); align-items: center; }
.vision-saccade-point { width: 18px; height: 18px; border-radius: 50%; margin: auto; border: 2px solid rgba(255,255,255,.18); transform: scale(.75); transition: transform .12s ease, background .12s ease, box-shadow .12s ease; }
.vision-saccade-point.active { transform: scale(1.65); background: var(--accent); border-color: var(--accent); box-shadow: 0 0 26px rgba(255,205,115,.45); }
.peripheral-stage { position: absolute; inset: 0; }
.peripheral-fixation { position: absolute; inset: 0; display: grid; place-items: center; font-size: 54px; font-weight: 300; color: rgba(255,255,255,.92); pointer-events: none; }
.peripheral-target { position: absolute; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #15110b; font-weight: 900; box-shadow: 0 0 26px rgba(255,205,115,.35); }
.peripheral-target.top { top: 9%; left: calc(50% - 19px); }
.peripheral-target.right { right: 7%; top: calc(50% - 19px); }
.peripheral-target.bottom { bottom: 9%; left: calc(50% - 19px); }
.peripheral-target.left { left: 7%; top: calc(50% - 19px); }
.peripheral-controls { position: absolute; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; grid-template-columns: repeat(4, 48px); gap: 8px; }
.peripheral-controls button { min-height: 42px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255,255,255,.06); color: var(--text); font-size: 18px; cursor: pointer; }
.schulte-wrap { width: min(92%, 520px); padding: 18px; }
.schulte-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.schulte-cell { aspect-ratio: 1; border: 1px solid var(--line); border-radius: 12px; background: rgba(255,255,255,.045); color: var(--text); font-size: clamp(17px, 2.5vw, 24px); font-weight: 800; cursor: pointer; }
.schulte-cell.done { opacity: .18; pointer-events: none; }
.schulte-cell.wrong { animation: vision-shake .22s linear; }
.schulte-progress { text-align: center; color: var(--muted); margin-top: 14px; font-size: 12px; }
@keyframes vision-shake { 0%,100%{transform:translateX(0)} 33%{transform:translateX(-4px)} 66%{transform:translateX(4px)} }
.vision-rest { text-align: center; max-width: 620px; padding: 30px; }
.vision-rest strong { display: block; font-family: Newsreader, Georgia, serif; font-size: clamp(34px, 5vw, 58px); margin-bottom: 12px; }
.vision-rest p { color: var(--muted); line-height: 1.65; }
.vision-blink-pulse { width: 100px; height: 44px; margin: 24px auto 0; border-radius: 50%; border: 4px solid var(--accent); animation: blink-pulse 3.5s ease-in-out infinite; }
@keyframes blink-pulse { 0%,35%,100%{transform:scaleY(1)} 45%,55%{transform:scaleY(.08)} }
.vision-feedback { min-height: 24px; color: var(--muted); font-size: 12px; padding: 12px 2px 0; }
.vision-feedback.success { color: var(--accent); }
.vision-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 12px; }
.vision-safety { margin-top: 18px; padding: 18px 20px; display: grid; grid-template-columns: 150px 1fr; gap: 18px; }
.vision-safety strong { color: var(--accent); }
.vision-safety p { color: var(--muted); margin: 0; line-height: 1.55; font-size: 12px; }
.eye-warmup-card { border-color: rgba(255,205,115,.24); }

@media (max-width: 1100px) { .vision-exercise-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .vision-heading { display: block; }
  .vision-summary { margin-top: 18px; }
  .vision-routine { align-items: stretch; flex-direction: column; }
  .vision-exercise-grid { grid-template-columns: 1fr 1fr; }
  .vision-stage { min-height: 330px; }
  .vision-safety { grid-template-columns: 1fr; gap: 7px; }
}
@media (max-width: 480px) { .vision-exercise-grid { grid-template-columns: 1fr; } }

/* v1.3 evidence-aligned reading vision drills */
.vision-evidence { display:block; color:#9ba6ba; font-size:12px; line-height:1.45; margin:0 0 14px; border-top:1px solid var(--line); padding-top:10px; }
.visual-span-lab { position:absolute; inset:0; display:grid; place-items:center; }
.visual-span-fixation { position:absolute; left:50%; top:45%; transform:translate(-50%,-50%); font-size:48px; font-weight:300; color:rgba(255,255,255,.94); z-index:3; }
.visual-span-target { position:absolute; left:50%; top:45%; transform:translate(-50%,-50%); font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:42px; font-weight:900; letter-spacing:.12em; color:#fffaf0; text-shadow:0 0 24px rgba(255,205,115,.28); white-space:nowrap; }
.crowding-target { position:absolute; left:50%; top:45%; display:flex; gap:var(--crowding-gap,.4em); align-items:center; font-family:ui-monospace,SFMono-Regular,Menlo,monospace; font-size:46px; font-weight:850; color:#dce3ef; white-space:nowrap; }
.crowding-target strong { color:#fffaf0; font-weight:950; }
.visual-span-choices { position:absolute; left:50%; bottom:40px; transform:translateX(-50%); width:min(92%,620px); display:grid; grid-template-columns:repeat(4,1fr); gap:10px; }
.vision-answer { min-height:54px; border-radius:14px; border:1px solid var(--line); background:rgba(255,255,255,.06); color:var(--text); font-size:20px; font-weight:850; cursor:pointer; }
.vision-answer:hover { border-color:rgba(255,205,115,.58); background:rgba(255,205,115,.08); }
.vision-answer span { display:inline-grid; place-items:center; width:22px; height:22px; margin-right:8px; border-radius:7px; background:rgba(255,255,255,.07); color:var(--muted); font-size:12px; }
.visual-span-status { position:absolute; top:24px; left:50%; transform:translateX(-50%); color:var(--muted); font-size:12px; letter-spacing:.04em; }
.return-sweep-wrap { width:min(92%,900px); }
.return-sweep-grid { display:grid; gap:24px; }
.return-line { display:grid; grid-template-columns:repeat(6,1fr); align-items:center; min-height:48px; border-bottom:1px dashed rgba(255,255,255,.07); }
.return-node { width:14px; height:14px; display:grid; place-items:center; margin:auto; color:rgba(255,255,255,.16); font-size:18px; transition:transform .1s ease,color .1s ease,text-shadow .1s ease; }
.return-node.active { color:var(--accent); transform:scale(1.65); text-shadow:0 0 20px rgba(255,205,115,.48); }
.return-node.return-target { color:#fff; transform:scale(2); }
.return-node.return-hit { color:#7fe0a8; text-shadow:0 0 24px rgba(127,224,168,.5); }
.return-help { margin-top:24px; text-align:center; color:var(--muted); font-size:12px; }
.return-help kbd { display:inline-block; border:1px solid var(--line); border-bottom-width:2px; background:rgba(255,255,255,.06); border-radius:7px; padding:4px 8px; color:var(--text); }
.guided-reading-wrap { width:min(92%,920px); display:grid; gap:14px; }
.guided-reading-line { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:7px; align-items:center; min-height:58px; }
.guided-chunk { padding:10px 11px; border-radius:10px; color:rgba(226,231,240,.48); font-size:clamp(13px,1.6vw,18px); line-height:1.35; transition:background .12s ease,color .12s ease,box-shadow .12s ease; }
.guided-chunk.active { color:#fffaf2; background:rgba(255,205,115,.10); box-shadow:inset 0 -2px 0 var(--accent); }
.guided-chunk.return-anchor { box-shadow:inset 3px 0 0 #7fe0a8,inset 0 -2px 0 var(--accent); }
.guided-reading-note { text-align:center; color:var(--muted); font-size:12px; margin-top:10px; }
.rest-phase { display:inline-block; color:var(--accent); font-size:12px; font-weight:900; letter-spacing:.12em; margin-bottom:12px; }
@media (max-width:700px) {
  .visual-span-choices { grid-template-columns:1fr 1fr; }
  .guided-reading-line { grid-template-columns:1fr 1fr; }
  .visual-span-target,.crowding-target { font-size:34px; }
}

/* ---------------------------------------------------------------- 1.3.1 mobil: alt sekme çubuğu + iPhone güvenli alanları */
body { min-height: 100dvh; }
.app-shell { min-height: 100dvh; }
.nav-icon, .nav-short { display: none; }
#visionWorkspace { scroll-margin-top: 104px; }
.app-footer { padding: 0 34px 40px; color: var(--muted); font-size: 13px; }
.app-footer a { color: var(--muted); }
@media (max-width: 900px) {
  /* backdrop-filter, içindeki position:fixed öğeyi (alt sekme çubuğu) ekrana değil üst çubuğa bağlar → telefonda kapalı */
  .topbar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(11,15,24,.97); height: calc(72px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(16px, env(safe-area-inset-right)) 0 max(16px, env(safe-area-inset-left)); }
  .topnav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 0;
    padding: 6px max(4px, env(safe-area-inset-right)) calc(6px + env(safe-area-inset-bottom)) max(4px, env(safe-area-inset-left));
    border: 0; border-top: 1px solid var(--line); border-radius: 0;
    background: rgba(11,15,24,.94); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  }
  .nav-button { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; min-height: 50px; padding: 4px 2px; font-size: 11.5px; font-weight: 600; letter-spacing: 0; border-radius: 10px; -webkit-tap-highlight-color: transparent; }
  .nav-button.active { background: transparent; color: var(--accent); }
  .nav-icon { display: block; width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
  .nav-long { display: none; }
  .nav-short { display: inline; }
  main { padding-bottom: calc(96px + env(safe-area-inset-bottom)); padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .app-footer { padding: 0 16px calc(96px + env(safe-area-inset-bottom)); }
  /* Okurken ve test çözerken dikkat dağıtmasın */
  body[data-view="reader"] .topnav, body[data-view="quiz"] .topnav, body[data-view="assessment"] .topnav { display: none; }
  body[data-view="reader"] main, body[data-view="quiz"] main, body[data-view="assessment"] main { padding-bottom: calc(40px + env(safe-area-inset-bottom)); }
}
/* iOS Safari: 16 px altındaki form alanlarına dokununca sayfa yakınlaşıyor */
@media (max-width: 900px) and (pointer: coarse) {
  input, select, textarea { font-size: max(16px, 1em); }
}
@media (prefers-reduced-motion: reduce) {
  .view.active { animation: none; }
  html { scroll-behavior: auto; }
}
.profile-callout .secondary-button { flex-shrink: 0; white-space: nowrap; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

/* ---------------------------------------------------------------- 1.3.3 hesap (isteğe bağlı, yalnız kimlik) */
.account-button { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; max-width: 240px; padding: 5px 14px 5px 5px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255,255,255,.04); cursor: pointer; font-size: 13px; font-weight: 700; transition: border-color .18s ease, background .18s ease; }
.account-button:hover { border-color: rgba(255,203,105,.45); background: rgba(255,255,255,.07); }
.account-avatar { width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: #19140b; font-size: 14px; font-weight: 900; }
.account-avatar.with-icon { background: var(--accent-soft); color: var(--accent); }
.account-avatar.with-icon::before { content: ""; width: 16px; height: 16px; background: currentColor; -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21c1.5-4 4.5-6 8-6s6.5 2 8 6'/%3E%3C/svg%3E") center / contain no-repeat; }
.account-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 480px) {
  .account-button.member { padding: 5px; }
  .account-button.member .account-label { display: none; }
}
body[data-view="reader"] .account-button, body[data-view="quiz"] .account-button, body[data-view="assessment"] .account-button { visibility: hidden; }

.account-dialog { width: min(420px, calc(100vw - 32px)); padding: 32px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel-strong); color: var(--text); box-shadow: var(--shadow); }
.account-dialog::backdrop { background: rgba(5,8,14,.74); }
.account-dialog h2 { margin: 0 44px 8px 0; font-size: 26px; line-height: 1.15; letter-spacing: -.02em; }
.account-lead { margin: 0 0 6px; color: var(--muted); font-size: 14px; line-height: 1.55; }
.account-dialog .field-label { margin-top: 18px; }
.account-code { height: 58px; font-size: 26px; font-weight: 800; letter-spacing: .38em; text-align: center; font-variant-numeric: tabular-nums; padding-left: calc(14px + .38em); }
.account-error { min-height: 20px; margin: 8px 0 8px; color: var(--danger); font-size: 13px; line-height: 1.4; }
.account-error:empty { min-height: 8px; margin: 0; }
.account-dialog .primary-button { margin-top: 10px; }
.account-dialog .primary-button:disabled { opacity: .7; cursor: progress; transform: none; }
.account-note { margin: 14px 0 0; color: var(--muted); font-size: 12.5px; text-align: center; }
.account-links { display: flex; justify-content: space-between; gap: 12px; margin-top: 14px; }
.link-button { border: 0; background: none; padding: 8px 0; color: var(--muted); font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-button:hover { color: var(--text); }
.link-button:disabled { text-decoration: none; opacity: .65; cursor: default; }
.account-close { position: absolute; top: 20px; right: 20px; width: 40px; height: 40px; display: grid; place-items: center; border: 1px solid var(--line); border-radius: 12px; background: transparent; cursor: pointer; }
.account-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.account-close:hover { background: rgba(255,255,255,.06); }
.account-email { margin: 18px 0 20px; padding: 14px 16px; border-radius: 13px; background: #0d1320; border: 1px solid var(--line); font-weight: 700; overflow-wrap: anywhere; }
.account-profile-actions { display: flex; justify-content: space-between; gap: 10px; }

.account-nudge { display: flex; align-items: center; justify-content: space-between; gap: 18px; margin: 22px 0; padding: 16px 18px; border: 1px solid rgba(255,203,105,.28); border-radius: 15px; background: var(--accent-soft); text-align: left; }
.account-nudge p { margin: 0; font-size: 14px; line-height: 1.5; }
.account-nudge-actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
@media (max-width: 650px) {
  .account-dialog { padding: 26px 20px 22px; }
  .account-nudge { flex-direction: column; align-items: stretch; }
  .account-nudge-actions { justify-content: flex-end; }
}
.account-nudge-actions button { min-height: 42px; padding: 8px 16px; font-size: 14px; }
/* Masaüstünde menü ortada sabit kalsın; hesap düğmesinin genişliği (e-posta uzunluğu) onu kaydırmasın */
@media (min-width: 901px) {
  .topbar { display: grid; grid-template-columns: 1fr auto 1fr; gap: 16px; }
  .topbar .brand { justify-self: start; }
  .account-button { justify-self: end; }
}
