:root {
  --bg: #f5f5fa; --surface: #ffffff; --surface-2: #f0f0f7; --border: #e3e3ee;
  --text: #15142b; --muted: #5f5e78; --faint: #8f8ea6;
  --brand: #7c3aed; --brand-2: #8b5cf6; --brand-soft: #ede9fe;
  --ok: #16a34a; --ok-soft: #dcfce7; --bad: #dc2626; --bad-soft: #fee2e2; --frz: #0284c7; --frz-soft: #e0f2fe;
  --warn-bg: #fff7e6; --warn: #92400e;
  --radius: 14px; --shadow: 0 1px 2px rgba(21, 20, 43, .06), 0 4px 16px rgba(21, 20, 43, .05);
  --nav-w: 210px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e0e18; --surface: #161625; --surface-2: #1f1f32; --border: #2b2b42;
    --text: #ebebf5; --muted: #a5a4c0; --faint: #74738f;
    --brand: #c4b5fd; --brand-2: #a78bfa; --brand-soft: #2a2148;
    --ok: #4ade80; --ok-soft: #133524; --bad: #f87171; --bad-soft: #3d1a1d; --frz: #38bdf8; --frz-soft: #0f2c3d;
    --warn-bg: #3a2a10; --warn: #fcd34d;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3);
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); }
body { font: 15px/1.45 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-font-smoothing: antialiased; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--brand); text-decoration: none; }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--muted); } .faint { color: var(--faint); } .small { font-size: 13px; }
.okc { color: var(--ok); } .badc { color: var(--bad); }
.right { text-align: right; } .nowrap { white-space: nowrap; }
.hidden { display: none !important; }

/* ---------- Yerleşim ---------- */
.shell { display: flex; min-height: 100vh; }
.nav { width: var(--nav-w); flex: none; background: var(--surface); border-right: 1px solid var(--border); padding: 18px 12px; position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 2px; }
.nav .logo { display: flex; align-items: center; gap: 10px; font-weight: 800; letter-spacing: .3px; padding: 4px 10px 18px; }
.nav .logo img { width: 30px; height: 30px; border-radius: 8px; }
.nav a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; color: var(--muted); font-weight: 550; }
.nav a:hover { background: var(--surface-2); color: var(--text); }
.nav a.on { background: var(--brand-soft); color: var(--brand); }
.nav .spacer { flex: 1; }
main { flex: 1; min-width: 0; padding: 24px 28px 100px; max-width: 1100px; }
.page-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head h1 { font-size: 22px; margin: 0; flex: 1; min-width: 140px; }
.bottom-nav { display: none; }

@media (max-width: 820px) {
  .nav { display: none; }
  main { padding: 16px 16px calc(90px + env(safe-area-inset-bottom)); }
  .bottom-nav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 20; background: var(--surface); border-top: 1px solid var(--border); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .bottom-nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 11px; color: var(--muted); padding: 4px 0; }
  .bottom-nav a .i { font-size: 20px; line-height: 1; }
  .bottom-nav a.on { color: var(--brand); }
}

/* ---------- Bileşenler ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; min-width: 0; }
.card h2 { font-size: 15px; margin: 0 0 12px; display: flex; align-items: center; gap: 8px; }
.card h2 .x { margin-left: auto; font-weight: 500; font-size: 13px; }
.grid { display: grid; gap: 14px; }
.g-2 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.g-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 900px) { .g-2 { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .g-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.stat .lbl { color: var(--muted); font-size: 13px; font-weight: 600; }
.stat .val { font-size: 24px; font-weight: 750; margin-top: 2px; font-variant-numeric: tabular-nums; }
.stat .sub { color: var(--faint); font-size: 12.5px; margin-top: 2px; }
.sec-title { font-size: 12px; font-weight: 750; letter-spacing: .6px; text-transform: uppercase; color: var(--faint); margin: 22px 2px 8px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border: 1px solid var(--border); background: var(--surface); padding: 8px 14px; border-radius: 10px; cursor: pointer; font-weight: 600; white-space: nowrap; }
.btn:hover { background: var(--surface-2); }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
@media (prefers-color-scheme: dark) { .btn.primary { color: #0e0e18; } }
.btn.primary:hover { filter: brightness(1.07); }
.btn.danger { color: var(--bad); }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.sm { padding: 5px 10px; font-size: 13px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: default; }
.icon-btn { border: 0; background: transparent; cursor: pointer; padding: 6px 8px; border-radius: 8px; color: var(--muted); font-size: 16px; }
.icon-btn:hover { background: var(--surface-2); color: var(--text); }

input:not([type=checkbox]):not([type=radio]), select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--border); border-radius: 10px; background: var(--surface); outline: none; min-width: 0;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 18%, transparent); }
label.f { display: block; }
label.f > span { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin: 0 0 5px; }
.row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.row > * { flex: 1; min-width: 110px; }
.row > .fix { flex: none; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.stack > * { flex-shrink: 0; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }

.seg { display: inline-flex; background: var(--surface-2); border-radius: 11px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: transparent; padding: 7px 12px; border-radius: 9px; cursor: pointer; font-weight: 650; color: var(--muted); }
.seg button.on { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.seg.full { display: flex; } .seg.full button { flex: 1; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--border); background: var(--surface); border-radius: 999px; padding: 6px 12px; cursor: pointer; font-size: 13.5px; font-weight: 550; display: inline-flex; gap: 6px; align-items: center; }
.chip:hover { background: var(--surface-2); }
.chip.on { background: var(--brand-soft); border-color: var(--brand); color: var(--brand); }
.badge { display: inline-block; font-size: 11.5px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); }

.date-nav { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 3px; }
.date-nav span { min-width: 150px; text-align: center; font-weight: 700; }

.bar .top { display: flex; justify-content: space-between; gap: 8px; font-size: 13.5px; margin-bottom: 4px; }
.track { height: 8px; background: var(--surface-2); border-radius: 99px; overflow: hidden; }
.fill { height: 100%; border-radius: 99px; background: var(--brand); transition: width .25s; }
.bars { display: flex; flex-direction: column; gap: 10px; }

.empty { text-align: center; color: var(--muted); padding: 28px 12px; }
.note { background: var(--warn-bg); color: var(--warn); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
.info { background: var(--brand-soft); color: var(--text); padding: 10px 12px; border-radius: 10px; font-size: 13.5px; }
/* ---------- Tablo ---------- */
.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 650; padding: 6px 8px; border-bottom: 1px solid var(--border); }
.tbl td { padding: 7px 8px; border-bottom: 1px solid var(--border); }
.tbl-wrap { overflow-x: auto; }

/* ---------- Modal + toast ---------- */
.overlay { position: fixed; inset: 0; background: rgba(10, 10, 25, .45); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 6vh 12px 12px; overflow-y: auto; }
.modal { background: var(--surface); border-radius: 16px; width: 100%; max-width: 480px; padding: 18px; box-shadow: 0 20px 50px rgba(0, 0, 0, .25); }
.modal.wide { max-width: 760px; }
.modal h3 { margin: 0 0 14px; font-size: 17px; display: flex; align-items: center; gap: 8px; }
.modal h3 .icon-btn { margin-left: auto; }
.modal .actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 16px; flex-wrap: wrap; }
.modal .actions .left { margin-right: auto; }
@media (max-width: 560px) { .overlay { padding: 0; align-items: flex-end; } .modal { border-radius: 16px 16px 0 0; max-height: 92vh; overflow-y: auto; padding-bottom: calc(18px + env(safe-area-inset-bottom)); } }
#toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: #1c1b33; color: #fff; padding: 10px 16px; border-radius: 12px; font-weight: 600; opacity: 0; pointer-events: none; transition: .2s; z-index: 60; max-width: calc(100vw - 32px); text-align: center; }
#toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
@media (max-width: 820px) { #toast { bottom: calc(84px + env(safe-area-inset-bottom)); } }
.menu-pop { position: absolute; right: 8px; top: 52px; z-index: 30; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .15); padding: 6px; display: flex; flex-direction: column; min-width: 190px; }
.menu-pop button { border: 0; background: transparent; text-align: left; padding: 8px 10px; border-radius: 8px; cursor: pointer; }
.menu-pop button:hover { background: var(--surface-2); }
.menu-pop button:disabled { opacity: .45; cursor: default; }

/* ---------- Giriş ---------- */
.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 16px; }
.login .card { width: 100%; max-width: 360px; padding: 24px; }
.login h1 { font-size: 20px; margin: 10px 0 16px; text-align: center; }
.login img { display: block; margin: 0 auto; width: 56px; height: 56px; border-radius: 14px; }

svg text { font-family: inherit; }
.chart { width: 100%; height: auto; display: block; }


/* ===================== ABS Beyin ===================== */
code { background: var(--surface-2); padding: 1px 5px; border-radius: 5px; font-size: .92em; }
kbd { font: 11px ui-monospace, monospace; border: 1px solid var(--border); border-bottom-width: 2px; border-radius: 5px; padding: 0 4px; background: var(--surface); color: var(--muted); }
.wrap { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.tag { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 700; padding: 2px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.tag.pay { background: var(--ok-soft); color: var(--ok); }
.btn.dangerf { background: var(--bad); border-color: var(--bad); color: #fff; }
.btn.ok, .icon-btn.ok { color: var(--ok); font-weight: 800; }
.btn.ok { border-color: color-mix(in srgb, var(--ok) 45%, var(--border)); }
.btn.ok:hover, .icon-btn.ok:hover { background: var(--ok-soft); }
.icon-btn.on { color: var(--brand); background: var(--brand-soft); }
.badge.in { background: var(--brand-soft); color: var(--brand); }
#toast .tbtn { margin-left: 10px; border: 0; background: rgba(255, 255, 255, .18); color: #fff; padding: 3px 10px; border-radius: 8px; cursor: pointer; font-weight: 700; }
#toast.on { pointer-events: auto; }

/* Menü */
.nav .logo { color: var(--text); }
.nav .newbtn { margin: 0 4px 10px; }
.nav a .cnt, .bottom-nav .cnt { margin-left: auto; font-size: 11px; font-weight: 800; background: var(--brand); color: #fff; border-radius: 99px; padding: 1px 7px; }
@media (prefers-color-scheme: dark) { .nav a .cnt, .bottom-nav .cnt { color: #0e0e18; } }
.bottom-nav .i { position: relative; }
.bottom-nav .cnt { position: absolute; top: -4px; left: 14px; font-size: 10px; padding: 0 5px; line-height: 15px; }
.kbd-hint { padding: 0 12px 8px; }

/* Hızlı yakalama */
.capture { padding: 10px 12px 8px; margin-bottom: 10px; border-color: color-mix(in srgb, var(--brand) 30%, var(--border)); }
.capture:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand) 14%, transparent); }
.capture textarea { border: 0 !important; box-shadow: none !important; padding: 6px 2px; resize: none; font-size: 16px; line-height: 1.45; background: transparent; overflow-y: auto; }
.cap-bar { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.cap-bar .cap-hint { margin-right: auto; }
.capture:not(.has) .cap-bar .btn { opacity: .45; }
@media (max-width: 820px) { .cap-hint { display: none; } }
.home-links { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 2px 0; }
.hl-in { font-weight: 650; color: var(--muted); padding: 6px 12px; border-radius: 99px; background: var(--surface); border: 1px solid var(--border); }
.hl-in.has { color: var(--brand); border-color: var(--brand); background: var(--brand-soft); }
.hl-in b { margin-left: 4px; }

/* Tamamlama listesi */
.ac-wrap { position: relative; }
.ac { position: absolute; left: 0; right: 0; top: 100%; z-index: 40; margin-top: 4px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 10px 30px rgba(0, 0, 0, .16); padding: 4px; max-height: 280px; overflow-y: auto; }
.ac button { display: block; width: 100%; text-align: left; border: 0; background: transparent; padding: 7px 10px; border-radius: 8px; cursor: pointer; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ac button.on, .ac button:hover { background: var(--brand-soft); }

/* Not satırları */
.card.list { padding: 2px 0; }
.nr { display: flex; gap: 12px; align-items: flex-start; padding: 11px 14px; border-bottom: 1px solid var(--border); min-width: 0; transition: opacity .25s; }
.nr:last-child { border-bottom: 0; }
.nr.gone { opacity: 0; }
.nr.in { box-shadow: inset 3px 0 0 var(--brand); }
.nr-ic { width: 34px; height: 34px; flex: none; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); border-radius: 10px; }
.nr-th { width: 72px; height: 48px; flex: none; border-radius: 8px; overflow: hidden; background: var(--surface-2); position: relative; }
.nr-th img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nr-th.noimg::after { content: '🔗'; position: absolute; inset: 0; display: grid; place-items: center; }
.play { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; font-size: 16px; text-shadow: 0 1px 4px rgba(0, 0, 0, .7); }
.nr-m { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.nr-t { font-weight: 650; color: var(--text); overflow-wrap: anywhere; }
.nr-t:hover { color: var(--brand); }
.nr-s { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.nr-f { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: center; font-size: 12.5px; }
.nr-f .site { color: var(--muted); max-width: 260px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nr-a { display: flex; gap: 2px; flex: none; margin: -4px -6px 0 0; }
.nr-a .icon-btn { font-size: 15px; }
.nr-a [data-pin]:not(.on) { opacity: .35; }
.nr:hover .nr-a [data-pin] { opacity: 1; }
.htag { color: var(--brand); font-weight: 550; }
mark { background: color-mix(in srgb, #facc15 45%, transparent); color: inherit; border-radius: 3px; padding: 0 1px; }
.more-wrap { display: flex; justify-content: center; margin-top: 10px; }
.more-wrap:empty { display: none; }
@media (max-width: 560px) { .nr { padding: 10px 12px; gap: 10px; } .nr-th { width: 56px; height: 40px; } .nr-a [data-pin]:not(.on) { display: none; } }

/* Not sayfası */
.note-page { max-width: 760px; }
.np-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; position: relative; }
.np-head .sp { flex: 1; }
.np-head .menu-pop { top: 44px; right: 0; }
.np-title { font-size: 24px; margin: 0 0 12px; overflow-wrap: anywhere; line-height: 1.25; }
.np-meta { margin: 16px 2px 0; }
.md { font-size: 16px; line-height: 1.6; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; }
.md h2 { font-size: 22px; margin: 18px 0 8px; line-height: 1.25; } .md h3 { font-size: 18px; margin: 16px 0 6px; } .md h4 { font-size: 16px; margin: 14px 0 4px; }
.md p { margin: 0 0 10px; }
.md ul, .md ol { margin: 0 0 10px; padding-left: 24px; }
.md li.d1 { margin-left: 18px; } .md li.d2 { margin-left: 36px; } .md li.d3 { margin-left: 54px; }
.md li.task { list-style: none; margin-left: -22px; }
.md li.task.d1 { margin-left: -4px; } .md li.task.d2 { margin-left: 14px; }
.md li.task label { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.md li.task input { margin-top: 5px; width: 16px; height: 16px; accent-color: var(--brand); flex: none; }
.md li.task.done span { color: var(--faint); text-decoration: line-through; }
.md blockquote { margin: 0 0 10px; padding: 6px 14px; border-left: 3px solid var(--brand); background: var(--surface-2); border-radius: 0 10px 10px 0; color: var(--muted); }
.md blockquote p:last-child { margin-bottom: 0; }
.md pre { background: var(--surface-2); padding: 10px 12px; border-radius: 10px; overflow-x: auto; font-size: 13.5px; margin: 0 0 10px; }
.md pre code { background: none; padding: 0; }
.md hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.md a.wl { color: var(--brand); background: var(--brand-soft); padding: 0 4px; border-radius: 5px; font-weight: 550; }
.md a.wl.new { background: transparent; border-bottom: 1px dashed var(--brand); border-radius: 0; opacity: .85; }
.md.card { padding: 16px; }

/* Link kartı */
.lcard { display: flex; gap: 0; padding: 0; overflow: hidden; color: var(--text); margin-bottom: 16px; }
.lcard:hover { border-color: var(--brand); }
.lc-img { width: 220px; flex: none; position: relative; background: var(--surface-2); min-height: 124px; }
.lc-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.lc-img .play { font-size: 34px; }
.lc-img .dur { position: absolute; right: 6px; bottom: 6px; background: rgba(0, 0, 0, .78); color: #fff; font-size: 12px; font-weight: 700; padding: 1px 6px; border-radius: 5px; }
.lc-m { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.lc-site { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.lc-t { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.lc-d { font-size: 13.5px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.lc-u { font-size: 12.5px; margin-top: auto; overflow-wrap: anywhere; }
@media (max-width: 600px) { .lcard { flex-direction: column; } .lc-img { width: 100%; min-height: 0; aspect-ratio: 16 / 9; } }

/* Düzenleyici */
.ed-title { font-size: 22px !important; font-weight: 700; border: 0 !important; box-shadow: none !important; padding: 4px 2px !important; background: transparent !important; margin-bottom: 6px; }
.ed-url { margin-bottom: 10px; }
.ed-wrap textarea { min-height: 52vh; resize: vertical; font-size: 16px; line-height: 1.6; padding: 14px; font-family: inherit; }
.ed-tools { margin-top: 8px; }
.ed-tools a { color: var(--brand); }

/* Arama penceresi */
.search-modal { padding: 0; overflow: hidden; }
.sm-in { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--border); }
.sm-in input { border: 0 !important; box-shadow: none !important; font-size: 17px; padding: 6px 0 !important; }
.sm-r { max-height: min(60vh, 520px); overflow-y: auto; padding: 6px; }
.sr { display: flex; gap: 10px; align-items: flex-start; padding: 9px 10px; border-radius: 10px; color: var(--text); }
.sr.on, .sr:hover { background: var(--brand-soft); }
.sr-ic { flex: none; }
.sr-m { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; overflow-wrap: anywhere; }
.sm-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 9px 16px; border-top: 1px solid var(--border); }
@media (max-width: 560px) { .search-modal { min-height: 70vh; } .sm-foot span { display: none; } }

/* Etiketler */
.chips.big .chip { font-size: 14.5px; padding: 7px 13px; }
.chip { color: var(--text); }

/* Ayarlar */
.tg-step { display: flex; gap: 12px; padding: 10px 0; border-top: 1px solid var(--border); }
.tg-n { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: var(--surface-2); color: var(--muted); }
.tg-step.ok .tg-n { background: var(--ok-soft); color: var(--ok); }
.tg-b { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; overflow-wrap: anywhere; }
.tg-b ol { margin: 0; padding-left: 18px; }
.code-in { text-align: center; font-size: 26px !important; letter-spacing: 8px; font-variant-numeric: tabular-nums; }
.devs { display: flex; flex-direction: column; }
.dev { display: flex; align-items: center; gap: 10px; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--border); }
.dev > div { min-width: 0; overflow-wrap: anywhere; }

/* ABS Book bağlantısı */
.bref { display: inline-flex; align-items: center; gap: 3px; background: color-mix(in srgb, #d97706 14%, transparent); color: #b45309; padding: 0 6px; border-radius: 6px; font-weight: 600; white-space: nowrap; }
@media (prefers-color-scheme: dark) { .bref { color: #fbbf24; } }
.bref:hover { text-decoration: underline; }
.badge.book { background: color-mix(in srgb, #d97706 16%, transparent); color: #b45309; }
@media (prefers-color-scheme: dark) { .badge.book { color: #fbbf24; } }

/* ---------- Aşama 2: okuma listesi, kitap, alıntılar ---------- */
.rs { display: inline-flex; align-items: center; gap: 3px; font-size: 11.5px; font-weight: 700; padding: 1px 7px; border-radius: 6px; background: var(--surface-2); color: var(--muted); white-space: nowrap; }
.rs-doing { background: var(--brand-soft); color: var(--brand); }
.rs-done { background: var(--ok-soft); color: var(--ok); }
.stars { color: var(--border); letter-spacing: -1px; white-space: nowrap; }
.stars .star.on, .stars-in .star.on { color: #f59e0b; }
.stars-in { display: inline-flex; }
.stars-in .star { border: 0; background: none; cursor: pointer; font-size: 20px; line-height: 1; padding: 2px 1px; color: var(--border); }
.stars-in.big .star { font-size: 30px; }
.stars-in .star:hover { transform: scale(1.12); }
.nr-take { font-size: 13.5px; color: var(--text); background: var(--surface-2); border-radius: 8px; padding: 6px 9px; margin-top: 4px; overflow-wrap: anywhere; }
.nr-a .btn.sm { padding: 4px 9px; }
.rs-tabs button { font-size: 14px; }
.np-sub { color: var(--muted); margin: -6px 0 12px; font-weight: 600; }
.rbar { padding: 10px 12px; margin-bottom: 16px; display: flex; flex-direction: column; gap: 10px; }
.rbar-top { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.take { border-top: 1px solid var(--border); padding-top: 10px; }
.take-h { display: flex; align-items: center; gap: 8px; }
.take-t { margin-top: 6px; line-height: 1.55; overflow-wrap: anywhere; }
.sec-title .btn { text-transform: none; letter-spacing: 0; }
.quotes { display: flex; flex-direction: column; gap: 8px; }
.quote { padding: 10px 14px; }
.quote blockquote { margin: 0; padding-left: 12px; border-left: 3px solid var(--brand); font-size: 15.5px; line-height: 1.55; overflow-wrap: anywhere; font-style: italic; }
.q-f { display: flex; align-items: center; gap: 8px; margin-top: 6px; flex-wrap: wrap; }
.q-f .sp { flex: 1; }
.q-c { color: var(--muted); font-size: 13.5px; overflow-wrap: anywhere; }
.q-f .icon-btn { font-size: 13px; opacity: .6; }
.quote:hover .q-f .icon-btn { opacity: 1; }
.qf { margin-bottom: 10px; }
@media (max-width: 560px) { .nr-a .btn.sm { padding: 4px 7px; font-size: 12px; } .rs-tabs button { padding: 7px 6px; font-size: 13px; } }
