:root {
  --bg: #f5f6f8; --panel: #ffffff; --side: #eef0f3; --rail: #1b1e24; --rail-fg: #aab0bb; --rail-act: #ffffff;
  --text: #1c1f24; --muted: #6a707b; --line: #e3e5e9; --accent: #2f6fd6; --accent-soft: #e7eefb;
  --read: #8b9099; --star: #e0a100; --danger: #c0392b; --ok: #1f9d55; --wa: #1fa855;
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, sans-serif;
  --serif: "Iowan Old Style", Charter, Georgia, serif;
  --r: 10px;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: #121418; --panel: #191c21; --side: #15181c; --rail: #0d0f12; --text: #e6e8eb; --muted: #959ba5;
    --line: #2a2e35; --accent: #6ea0ff; --accent-soft: #1f2a3d; --read: #7c828c;
  }
}
:root[data-theme="white"] { --bg: #ffffff; --panel: #ffffff; --side: #ffffff; --rail: #f3f4f6; --rail-fg: #5b616b; --rail-act: #111; --line: #eceef1; }
:root[data-theme="white"] .rbtn:hover { background: rgba(0,0,0,.05); } :root[data-theme="white"] .rbtn.on { background: rgba(0,0,0,.08); }
:root[data-theme="sepia"] { --bg: #f1e9d8; --panel: #f8f2e4; --side: #efe6d2; --rail: #3b3226; --rail-fg: #c9bba2; --text: #3a2f22; --muted: #7d6e58; --line: #e2d6bd; --accent: #9a5b12; --accent-soft: #eddcbf; --read: #8f8169; }
:root[data-theme="dark"] {
  --bg: #121418; --panel: #191c21; --side: #15181c; --rail: #0d0f12; --text: #e6e8eb; --muted: #959ba5;
  --line: #2a2e35; --accent: #6ea0ff; --accent-soft: #1f2a3d; --read: #7c828c;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 15px; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--accent); }
.hidden { display: none !important; }

/* ---------- yerleşim ---------- */
#app { display: grid; grid-template-columns: 60px 270px minmax(320px, 440px) 1fr; height: 100dvh; }
#app.wide { grid-template-columns: 60px 270px 1fr; }
#rail { background: var(--rail); display: flex; flex-direction: column; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 0 10px; gap: 4px; }
#rail .logo { width: 36px; height: 36px; border-radius: 9px; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 10px; }
.rbtn { width: 48px; padding: 7px 0 5px; border: 0; background: none; color: var(--rail-fg); border-radius: 9px; cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; }
.rbtn .i { font-size: 19px; line-height: 1; }
.rbtn:hover { color: var(--rail-act); background: rgba(255,255,255,.06); }
.rbtn.on { color: var(--rail-act); background: rgba(255,255,255,.12); }
#rail .sp { flex: 1; }

#side { background: var(--side); border-right: 1px solid var(--line); overflow-y: auto; padding-bottom: 30px; }
.side-h { display: flex; align-items: center; justify-content: space-between; padding: calc(14px + env(safe-area-inset-top)) 14px 8px; position: sticky; top: 0; background: var(--side); z-index: 2; }
.side-h b { font-size: 16px; }
.sec { margin-top: 10px; padding: 0 8px; }
.sec-h { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); padding: 6px 10px; display: flex; justify-content: space-between; align-items: center; }
.sec-h button { background: none; border: 0; color: var(--muted); cursor: pointer; font-size: 15px; padding: 0 4px; }
.node { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 8px; cursor: pointer; user-select: none; min-height: 33px; font-size: 14px; }
.node:hover { background: color-mix(in srgb, var(--text) 6%, transparent); }
.node.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.node .nm { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.node .ct { font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.node .ic { width: 18px; text-align: center; color: var(--muted); flex: none; font-size: 13px; }
.node .tw { width: 16px; text-align: center; color: var(--muted); font-size: 10px; transition: transform .15s; flex: none; }
.node .tw.open { transform: rotate(90deg); }
.node .fav { width: 16px; height: 16px; border-radius: 3px; flex: none; }
.node .err { color: var(--danger); font-weight: 700; font-size: 12px; }
.kids { margin-left: 16px; display: none; }
.kids.open { display: block; }

/* ---------- liste ---------- */
#list-pane { display: flex; flex-direction: column; background: var(--panel); border-right: 1px solid var(--line); min-width: 0; }
.bar { display: flex; align-items: center; gap: 6px; padding: calc(10px + env(safe-area-inset-top)) 12px 8px; border-bottom: 1px solid var(--line); min-height: 52px; }
.bar h1 { font-size: 17px; margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ib { background: none; border: 0; width: 36px; height: 36px; border-radius: 8px; cursor: pointer; font-size: 16px; flex: none; }
.ib:hover { background: color-mix(in srgb, var(--text) 8%, transparent); }
.chip { border: 1px solid var(--line); background: none; border-radius: 999px; padding: 4px 11px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.chip.on { background: var(--accent); border-color: var(--accent); color: #fff; }
.searchbar { padding: 8px 12px; border-bottom: 1px solid var(--line); display: flex; gap: 6px; }
.searchbar input { flex: 1; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; min-width: 0; }
#list { overflow-y: auto; flex: 1; outline: none; padding-bottom: env(safe-area-inset-bottom); }
.it { display: flex; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); cursor: pointer; }
.it:hover { background: color-mix(in srgb, var(--text) 3%, transparent); }
.it.sel { background: var(--accent-soft); }
.it .b { flex: 1; min-width: 0; }
.it .t { font-size: 15px; line-height: 1.32; font-weight: 600; }
.it.read .t { font-weight: 400; color: var(--read); }
.it .m { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.it .s { font-size: 13px; color: var(--muted); margin-top: 4px; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.it img.th { width: 76px; height: 76px; object-fit: cover; border-radius: 7px; flex: none; background: var(--line); }
.tag { font-size: 11px; padding: 1px 8px; border-radius: 999px; background: var(--accent-soft); color: var(--accent); white-space: nowrap; }
.star { color: var(--star); }
.more { padding: 18px; text-align: center; color: var(--muted); font-size: 13px; }
.kind { font-size: 10px; padding: 0 5px; border: 1px solid var(--line); border-radius: 4px; color: var(--muted); }

/* ---------- okuyucu ---------- */
#reader { overflow-y: auto; background: var(--panel); min-width: 0; }
#reader .empty { color: var(--muted); display: grid; place-items: center; height: 100%; text-align: center; padding: 20px; }
.rbar { position: sticky; top: 0; display: flex; gap: 4px; align-items: center; padding: calc(8px + env(safe-area-inset-top)) 12px 8px; background: color-mix(in srgb, var(--panel) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); z-index: 2; flex-wrap: wrap; }
.rbar .sp { flex: 1; }
.rbar { flex-wrap: nowrap; }
.rbar .tx { display: none; }
@media (min-width: 1700px) { .rbar .tx { display: inline; } }
.lbl { font-size: 13px; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: none; cursor: pointer; text-decoration: none; color: var(--text); white-space: nowrap; }
.lbl.on { border-color: var(--star); color: var(--star); }
.lbl.share { background: var(--wa); border-color: var(--wa); color: #fff; font-weight: 600; }
.art { max-width: 740px; margin: 0 auto; padding: 22px 22px 90px; }
.art h2 { font-family: var(--serif); font-size: 28px; line-height: 1.22; margin: 0 0 10px; }
.art .meta { color: var(--muted); font-size: 13px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 18px; }
.art .content { font-family: var(--serif); font-size: 19px; line-height: 1.62; overflow-wrap: break-word; }
.art .content * { font-family: inherit !important; font-size: inherit; line-height: inherit; letter-spacing: normal; }
.art .content h1, .art .content h2, .art .content h3, .art .content h4, .art .content h5, .art .content h6 {
  font-size: 1em; font-weight: 700; line-height: 1.45; margin: 1.1em 0 .45em; }
.art .content p { margin: 0 0 .9em; }
.art .content ul, .art .content ol { margin: 0 0 .9em; padding-left: 1.3em; }
.art .content blockquote { margin: 0 0 .9em; padding-left: 14px; border-left: 3px solid var(--line); color: var(--muted); }
.art .content figcaption, .art .content small { font-size: .82em; color: var(--muted); }
.art .content table { font-size: .9em; border-collapse: collapse; max-width: 100%; display: block; overflow-x: auto; }
.art .content img, .art .content video, .art .content iframe { max-width: 100%; height: auto; border-radius: 6px; }
.art .lead { width: 100%; border-radius: 8px; margin-bottom: 16px; }
.art .tags { display: flex; gap: 6px; flex-wrap: wrap; margin: 20px 0 6px; align-items: center; }
.art .tags .tag { cursor: pointer; }
.art .tags input { border: 1px dashed var(--line); border-radius: 999px; padding: 2px 10px; background: none; font-size: 12px; width: 140px; }
.art .shares { font-size: 12px; color: var(--muted); margin-top: 8px; }
mark.hl { color: inherit; border-radius: 3px; padding: 0 2px; }

/* ---------- sayfa (ayarlar/otomasyon) ---------- */
#page { overflow-y: auto; background: var(--panel); min-width: 0; }
.pg { max-width: 980px; margin: 0 auto; padding: calc(18px + env(safe-area-inset-top)) 22px 80px; }
.pg h2 { margin: 4px 0 4px; font-size: 22px; }
.pg .lead-t { color: var(--muted); margin: 0 0 18px; line-height: 1.5; }
.card { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); padding: 14px 16px; margin-bottom: 12px; }
.row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.row.end { justify-content: flex-end; }
.grow { flex: 1; min-width: 0; }
label.f { display: block; font-size: 13px; color: var(--muted); margin: 12px 0 4px; }
input.in, select.in, textarea.in { width: 100%; padding: 9px 11px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); font-size: 15px; }
textarea.in { resize: vertical; line-height: 1.45; }
.btn { padding: 9px 15px; border-radius: 8px; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-size: 14px; font-weight: 600; white-space: nowrap; }
.btn.ghost { background: none; border: 1px solid var(--line); color: var(--text); font-weight: 500; }
.btn.danger { background: none; border: 1px solid var(--danger); color: var(--danger); }
.btn.sm { padding: 5px 10px; font-size: 13px; }
.btn:disabled { opacity: .5; cursor: default; }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { background: none; border: 0; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; color: var(--muted); white-space: nowrap; font-weight: 600; }
.tabs button.on { color: var(--accent); border-bottom-color: var(--accent); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font-size: 12px; color: var(--muted); font-weight: 600; padding: 8px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 8px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:hover td { background: color-mix(in srgb, var(--text) 3%, transparent); }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.badge.ok { color: var(--ok); border-color: color-mix(in srgb, var(--ok) 40%, transparent); }
.badge.err { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 40%, transparent); }
.sw { position: relative; width: 38px; min-width: 38px; height: 22px; flex: none; display: inline-block; }
.sw input { opacity: 0; width: 0; height: 0; }
.sw span { position: absolute; inset: 0; background: var(--line); border-radius: 999px; cursor: pointer; transition: .15s; }
.sw span::before { content: ""; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .15s; }
.sw input:checked + span { background: var(--accent); }
.sw input:checked + span::before { transform: translateX(16px); }
.cond { display: grid; grid-template-columns: 170px 150px 1fr 34px; gap: 6px; margin-bottom: 6px; }
.act { display: grid; grid-template-columns: 200px 1fr 34px; gap: 6px; margin-bottom: 6px; }
.prev { margin-top: 10px; border-top: 1px dashed var(--line); padding-top: 10px; }
.prev .pi { display: flex; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; align-items: center; }
.prev .pi img { width: 48px; height: 48px; object-fit: cover; border-radius: 6px; background: var(--line); flex: none; }
.help { font-size: 12px; color: var(--muted); line-height: 1.45; margin-top: 6px; }
.empty-note { color: var(--muted); padding: 30px 10px; text-align: center; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 14px; height: 14px; border-radius: 4px; display: inline-block; vertical-align: middle; }
.stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 14px; }
.stat div { border: 1px solid var(--line); border-radius: var(--r); padding: 12px; }
.stat b { display: block; font-size: 22px; }
.stat span { font-size: 12px; color: var(--muted); }

dialog { border: 1px solid var(--line); border-radius: 14px; background: var(--panel); color: var(--text); width: min(600px, calc(100vw - 20px)); max-height: 88dvh; padding: 0; }
dialog::backdrop { background: rgba(0,0,0,.4); }
.dh { display: flex; justify-content: space-between; align-items: center; padding: 13px 16px; border-bottom: 1px solid var(--line); font-weight: 700; }
.db { padding: 16px; overflow-y: auto; max-height: calc(88dvh - 60px); }
#toast { position: fixed; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%) translateY(140px); background: var(--text); color: var(--bg); padding: 10px 16px; border-radius: 10px; font-size: 14px; transition: transform .2s; z-index: 99; pointer-events: none; max-width: 90vw; }
#toast.show { transform: translateX(-50%) translateY(0); }
#tabbar { display: none; }
#scrim { display: none; }
.only-m { display: none !important; }


/* ---------- v2: Inoreader tarzı düzen ---------- */
.rbtn { position: relative; }
.rbtn .rb { position: absolute; top: 2px; right: 0; font-style: normal; font-size: 9px; background: #3a4150; color: #dfe3ea; border-radius: 999px; padding: 0 5px; line-height: 15px; min-width: 15px; }
.rbtn .rb:empty { display: none; }
.side-h { gap: 2px; }
.side-h .sp { flex: 1; }
.ib.sm { width: 30px; height: 30px; font-size: 14px; color: var(--muted); }
.ib.xs { width: 26px; height: 26px; font-size: 12px; }
.ib.on { color: var(--star); }
.node.big { align-items: flex-start; padding: 9px 10px; }
.node.big .nm { white-space: normal; font-weight: 600; }
.node.big small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; margin-top: 2px; line-height: 1.35; }
.node.big.on small { color: color-mix(in srgb, var(--accent) 70%, var(--muted)); }
.help.pad { padding: 0 10px; }

.bar .ttl { flex: 1; min-width: 0; }
.bar .ttl h1 { flex: none; }
.bar .sub { font-size: 12px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bar .grp { display: flex; border: 1px solid var(--line); border-radius: 8px; }
.bar .grp .ib { width: 32px; height: 32px; border-radius: 0; font-size: 13px; }
.bar .grp .caret { width: 22px; border-left: 1px solid var(--line); font-size: 11px; }
.bar .pill { width: auto; padding: 0 10px; height: 32px; border: 1px solid var(--line); font-size: 13px; }
.newbar { padding: 9px; text-align: center; cursor: pointer; color: var(--accent); font-weight: 600; border-bottom: 1px solid var(--line); font-size: 13px; }

.menu { position: fixed; z-index: 60; min-width: 230px; max-height: 80vh; overflow-y: auto; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 40px rgba(0,0,0,.25); padding: 6px; }
.menu .mh { font-size: 11px; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); padding: 8px 10px 4px; font-weight: 700; }
.menu hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.menu .mi { display: flex; align-items: center; gap: 10px; width: 100%; background: none; border: 0; padding: 7px 10px; border-radius: 8px; cursor: pointer; text-align: left; font-size: 14px; }
.menu .mi:hover { background: color-mix(in srgb, var(--text) 7%, transparent); }
.menu .mi.on { color: var(--accent); font-weight: 600; }
.menu .mi .mic { width: 18px; text-align: center; color: var(--muted); }
.menu .mi.on .mic { color: var(--accent); }
.menu .mi kbd, kbd { margin-left: auto; font: 11px var(--font); color: var(--muted); border: 1px solid var(--line); border-radius: 4px; padding: 0 5px; }

html:has(#app), body:has(#app) { overflow: hidden; overscroll-behavior: none; }
#app > * { min-height: 0; }
/* profil */
.rbtn.sm { padding: 6px 0; }
.rbtn.av { padding: 4px 0; margin-top: 4px; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font-weight: 700; font-size: 12px; background: #556; letter-spacing: .3px; flex: none; }
.avatar.big { width: 64px; height: 64px; font-size: 22px; }
.avatar.xl { width: 72px; height: 72px; font-size: 26px; }
.rbtn.av.on .avatar { box-shadow: 0 0 0 2px var(--rail-act); }
.prof { padding: 0 18px 16px; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.prof b { font-size: 19px; margin-top: 12px; }
.prof .help { margin-top: 2px; }
.sec.sepd { border-top: 1px solid var(--line); padding-top: 10px; margin-top: 6px; }
.row.pad, .help.pad { padding: 0 10px; }
.themes { display: flex; gap: 12px; padding: 4px 10px; }
.sw-th { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); cursor: pointer; }
.sw-th.on { box-shadow: 0 0 0 2px var(--panel), 0 0 0 4px var(--accent); }
.acc-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.acc-head h2 { margin: 0; }
.acc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(380px, 1fr)); gap: 12px; align-items: start; }
.acc-grid .card { margin: 0; }
.plan.on { border-color: var(--accent); }
.plan-l { padding-left: 18px; font-size: 14px; line-height: 1.9; }

/* liste düzenleri */
#app.full { grid-template-columns: 60px 270px 1fr; }
#app.full #list-pane { border-right: 0; }
#app:not(.full) .bar .pill { display: none; }
#app:not(.full) .bar .ttl { min-width: 90px; }
.seg { display: flex; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; flex: none; }
.seg button { border: 0; background: none; padding: 0 10px; height: 30px; font-size: 12px; cursor: pointer; color: var(--muted); }
.seg button.on { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); font-weight: 600; }
body.overlay #reader { position: fixed; top: 0; bottom: 0; left: 330px; right: 0; z-index: 40; box-shadow: -10px 0 40px rgba(0,0,0,.25); }
body.overlay #reader .art { max-width: 780px; }
.it { position: relative; }
.it .src { font-weight: 600; color: color-mix(in srgb, var(--text) 70%, var(--muted)); }
.it .tm { font-size: 12px; color: var(--muted); white-space: nowrap; }
.it .ia { display: flex; gap: 2px; align-items: center; }
.it .ia .ib, .it .bm { color: var(--muted); }
.it .ia .ib.on, .it .bm.on { color: var(--accent); }
.th.ph { background: color-mix(in srgb, var(--text) 7%, transparent); }
.ghead { position: sticky; top: 0; z-index: 1; background: var(--side); font-size: 12px; font-weight: 700; color: var(--muted); padding: 6px 14px; border-bottom: 1px solid var(--line); text-transform: uppercase; letter-spacing: .4px; }

/* 3 · sütun: liste + okuma bölmesi */
#list.v-column .it { padding: 10px 12px; gap: 12px; align-items: flex-start; }
#list.v-column .it .th { width: 72px; height: 64px; object-fit: cover; border-radius: 6px; flex: none; }
#list.v-column .it .t { font-size: 14px; }
#list.v-column .it .tm { margin-top: 6px; }
#list.v-column .it .ia { position: absolute; right: 8px; bottom: 6px; opacity: 0; }
#list.v-column .it:hover .ia, #list.v-column .it.sel .ia { opacity: 1; }

/* 1 · liste: tam genişlik, tek satır */
#list.v-list .it { display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 34px; font-size: 13.5px; }
#list.v-list .it .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; }
#list.v-list .it.read .dot { background: color-mix(in srgb, var(--text) 25%, transparent); }
#list.v-list .it .src { width: 160px; flex: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 400; color: var(--muted); }
#list.v-list .it .ln { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
#list.v-list .it .ln .t, #list.v-list .it .ln .s { display: inline; font-size: 13.5px; margin: 0; -webkit-line-clamp: unset; }
#list.v-list .it .ln .t { font-weight: 700; }
#list.v-list .it.read .ln .t { font-weight: 400; color: var(--read); }
#list.v-list .it .ln .s { color: var(--muted); }
#list.v-list .it .tag { flex: none; }

/* 4 · kart: ızgara */
#list.v-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; padding: 14px; align-content: start; }
#list.v-cards .ghead, #list.v-cards .more, #list.v-cards #newbar { grid-column: 1 / -1; }
#list.v-cards .it { flex-direction: column; border: 1px solid var(--line); border-radius: var(--r); padding: 0; overflow: hidden; gap: 0; min-height: 360px; background: var(--panel); }
#list.v-cards .it:hover { border-color: color-mix(in srgb, var(--accent) 50%, var(--line)); }
#list.v-cards .it .th { width: 100%; height: 200px; object-fit: cover; border-radius: 0; flex: none; }
#list.v-cards .it .b { padding: 14px 16px 6px; flex: 1; }
#list.v-cards .it .t { font-size: 15px; line-height: 1.35; }
#list.v-cards .it .s { -webkit-line-clamp: 9; font-size: 14px; color: var(--muted); margin-top: 10px; line-height: 1.5; }
#list.v-cards .it .ft { display: flex; align-items: center; justify-content: space-between; padding: 6px 10px 10px 16px; }

/* 5 · dergi: ortalanmış, büyük görsel */
#list.v-magazine .it { max-width: 760px; margin: 0 auto; padding: 18px 10px; gap: 18px; border-bottom: 1px solid var(--line); align-items: flex-start; }
#list.v-magazine .it .th { width: 190px; height: 150px; object-fit: cover; border-radius: 8px; flex: none; }
#list.v-magazine .it .t { font-size: 16px; line-height: 1.35; }
#list.v-magazine .it .s { -webkit-line-clamp: 2; font-size: 14px; margin-top: 8px; }
#list.v-magazine .it .b { min-height: 150px; display: flex; flex-direction: column; }
#list.v-magazine .it .ft { margin-top: auto; display: flex; align-items: center; justify-content: space-between; padding-top: 8px; }

/* 2 · genişletilmiş: tam haberler alt alta */
#list.v-expanded { padding: 18px 14px 60px; }
#list.v-expanded .xart { display: block; max-width: 780px; margin: 0 auto 22px; padding: 26px 34px 30px; border: 1px solid var(--line); border-radius: 12px; cursor: default; background: var(--panel); }
#list.v-expanded .xart:hover { background: var(--panel); }
#list.v-expanded .xart .t { font-family: var(--serif); font-size: 26px; line-height: 1.25; margin: 0 0 8px; cursor: pointer; }
#list.v-expanded .xart.read .t { color: var(--text); font-weight: 700; opacity: .75; }
#list.v-expanded .xart .m { font-size: 13px; margin-bottom: 8px; }
#list.v-expanded .xart .xbar { display: flex; gap: 2px; margin: 4px 0 14px; color: var(--muted); }
#list.v-expanded .xart .xbar .ib { color: var(--muted); text-decoration: none; display: inline-grid; place-items: center; }
#list.v-expanded .xart .xbar .ib.on { color: var(--accent); }
#list.v-expanded .xart .lead { width: 100%; border-radius: 8px; margin-bottom: 14px; }
#list.v-expanded .xart .content { font-family: var(--serif); font-size: 18px; line-height: 1.62; overflow-wrap: break-word; }
#list.v-expanded .xart .content * { font-family: inherit !important; font-size: inherit; line-height: inherit; }
#list.v-expanded .xart .content h1, #list.v-expanded .xart .content h2, #list.v-expanded .xart .content h3, #list.v-expanded .xart .content h4 { font-size: 1em; font-weight: 700; margin: 1em 0 .4em; }
#list.v-expanded .xart .content p { margin: 0 0 .9em; }
#list.v-expanded .xart .content img, #list.v-expanded .xart .content iframe, #list.v-expanded .xart .content video { max-width: 100%; height: auto; border-radius: 6px; }

/* okuyucu araç çubuğu */
.rbar .tb { width: 34px; height: 34px; font-size: 15px; color: var(--muted); text-decoration: none; display: inline-grid; place-items: center; }
.rbar .tb:hover { color: var(--text); }
.rbar .tb.on { color: var(--accent); }
.rbar .sep { width: 1px; height: 22px; background: var(--line); margin: 0 4px; }
.notebox { margin-top: 22px; }
.notebox .nt { border-left: 3px solid var(--star); background: color-mix(in srgb, var(--star) 9%, transparent); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.notebox .nt p { margin: 6px 0 8px; white-space: pre-wrap; }

/* sayfalar */
.ph { display: flex; align-items: flex-start; gap: 8px; flex-wrap: wrap; margin-bottom: 6px; }
.ph h2 .cnt { font-size: 14px; color: var(--muted); font-weight: 500; margin-left: 4px; }
.quota { height: 5px; background: var(--line); border-radius: 99px; margin: 14px 0 0; max-width: 220px; overflow: hidden; }
.quota i { display: block; height: 100%; background: var(--accent); }
.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r); }
.tbl-wrap .tbl td, .tbl-wrap .tbl th { padding-left: 12px; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; }
.tbl .nowrap { white-space: nowrap; text-align: right; }
.tbl tr.exp td { background: var(--bg) !important; padding: 4px 16px 16px; }
.link { cursor: pointer; color: var(--text); text-decoration: none; }
.link:hover { color: var(--accent); text-decoration: underline; }
input.dot { width: 26px; height: 26px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; }
.choice { border: 1px solid var(--line); border-radius: var(--r); padding: 14px 16px; margin-bottom: 10px; cursor: pointer; }
.choice:hover { border-color: var(--accent); }
.choice p { margin: 4px 0 10px; }
.rblock { display: grid; grid-template-columns: 110px 1fr; border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 10px; overflow: hidden; }
.rblock .rk { background: var(--bg); padding: 14px; font-weight: 700; border-right: 1px solid var(--line); }
.rblock .rv { padding: 12px 14px; min-width: 0; }
.rblock .rv > label.f:first-child { margin-top: 0; }
.sticky-act { position: sticky; bottom: 0; background: var(--panel); padding: 12px 0; border-top: 1px solid var(--line); margin-top: 6px; }
.cardgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.rcard { border: 1px solid var(--line); border-radius: var(--r); padding: 14px; cursor: pointer; min-height: 110px; display: flex; flex-direction: column; gap: 6px; }
.rcard:hover { border-color: var(--accent); }

/* rapor */
.rp { max-width: 820px; margin: 0 auto; }
.rp-h .rp-k { font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.rp-h h2 { margin: 2px 0 14px; font-family: var(--serif); font-size: 26px; }
.rp section { margin: 22px 0; }
.rp h3 { font-size: 15px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--accent); display: inline-block; }
.rp-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.rp-stats div, .stat.sm div { border: 1px solid var(--line); border-radius: var(--r); padding: 10px 12px; }
.rp-stats b { display: block; font-size: 22px; }
.rp-stats span { font-size: 12px; color: var(--muted); }
.rp-list { padding-left: 22px; margin: 0; }
.rp-list li { padding: 7px 0; border-bottom: 1px solid var(--line); }
.rp-list a { color: var(--text); font-weight: 600; text-decoration: none; }
.rp-list a:hover { color: var(--accent); }
.rp-m { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.rp-chip { font-size: 11px; padding: 0 7px; border-radius: 999px; background: color-mix(in srgb, var(--c) 18%, transparent); box-shadow: inset 0 -2px var(--c); color: var(--text); }
.rp-tag { font-size: 11px; color: var(--accent); }
.rp-sent { color: var(--wa); font-weight: 600; }
.rp-bars div { display: grid; grid-template-columns: 170px 1fr 40px; gap: 8px; align-items: center; font-size: 13px; padding: 3px 0; }
.rp-bars i { display: block; height: 10px; background: var(--accent); border-radius: 99px; opacity: .8; }
.rp-bars b { text-align: right; font-variant-numeric: tabular-nums; }
.rp-feeds { columns: 2; font-size: 13px; padding-left: 22px; }
.rp-feeds b { color: var(--muted); font-weight: 500; }
.rp-ai { border-left: 3px solid var(--accent); background: var(--accent-soft); padding: 10px 16px; border-radius: 0 10px 10px 0; }
.rp-ai p { margin: 6px 0; }
.rp-empty { color: var(--muted); }
.print-body { background: #fff; color: #111; padding: 24px; }
@media print { .print-body { padding: 0; } .rp-list li { break-inside: avoid; } }

/* panolar */
.dgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(330px, 1fr)); gap: 14px; margin-top: 10px; }
.widget { border: 1px solid var(--line); border-radius: var(--r); background: var(--panel); display: flex; flex-direction: column; min-height: 200px; max-height: 520px; }
.widget .wh { display: flex; align-items: center; gap: 2px; padding: 10px 10px 8px 14px; border-bottom: 1px solid var(--line); }
.widget .wh .sp { flex: 1; }
.widget .wb { padding: 8px 12px 12px; overflow-y: auto; }
.wi { display: flex; gap: 10px; padding: 8px 2px; border-bottom: 1px solid var(--line); cursor: pointer; }
.wi:last-child { border-bottom: 0; }
.wi img { width: 54px; height: 54px; object-fit: cover; border-radius: 6px; flex: none; background: var(--line); }
.wi .t { font-size: 14px; font-weight: 600; line-height: 1.3; }
.wi.read .t { font-weight: 400; color: var(--read); }
.wi .help { margin-top: 2px; }
.stat.sm { grid-template-columns: repeat(2, 1fr); gap: 8px; }
.stat.sm b { font-size: 20px; }

/* arama */
.search-hero { max-width: 760px; margin: 30px auto 0; }
.search-hero h2 { font-size: 26px; margin-bottom: 14px; }
.search-hero form .in { font-size: 16px; }
.syntax { margin-top: 12px; }
.syntax summary { cursor: pointer; }
.syntax code { font-size: 13px; background: var(--bg); padding: 1px 6px; border-radius: 4px; }
.kbd-grid { display: grid; grid-template-columns: auto 1fr; gap: 6px 12px; margin-top: 10px; font-size: 13px; }
.kbd-grid kbd { margin: 0; justify-self: start; }

@media (max-width: 1180px) {
  #app.full { grid-template-columns: 60px 1fr; }
  body.overlay #reader { left: 60px; }
  #app { grid-template-columns: 60px minmax(300px, 400px) 1fr; }
  #app.wide { grid-template-columns: 60px 1fr; }
  #side { position: fixed; top: 0; bottom: 0; left: 60px; width: 290px; z-index: 30; transform: translateX(calc(-100% - 60px)); transition: transform .2s; }
  body.side #side { transform: none; }
  body.side #scrim { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.35); z-index: 20; }
  .only-m { display: inline-flex !important; }
}
@media (max-width: 760px) {
  #app, #app.wide, #app.full { grid-template-columns: 1fr; padding-bottom: calc(58px + env(safe-area-inset-bottom)); }
  #rail { display: none; }
  #side { left: 0; width: 86vw; }
  #tabbar { display: flex; position: fixed; bottom: 0; left: 0; right: 0; height: calc(58px + env(safe-area-inset-bottom)); padding-bottom: env(safe-area-inset-bottom); background: var(--panel); border-top: 1px solid var(--line); z-index: 15; }
  #tabbar .rbtn { flex: 1; width: auto; color: var(--muted); font-size: 11px; }
  #tabbar .rbtn.on { color: var(--accent); background: none; }
  #list-pane { border-right: 0; }
  #reader { position: fixed; inset: 0; z-index: 25; transform: translateX(100%); transition: transform .2s; }
  body.reading #reader { transform: none; }
  .art { padding: 16px 16px 90px; }
  .art h2 { font-size: 24px; }
  .art .content { font-size: 18px; }
  .rbar .tx, .rbar .tx2 { display: none; }
  .rbar .lbl { font-size: 16px; padding: 5px 10px; }
  .cond { grid-template-columns: 1fr 1fr; }
  .cond input { grid-column: 1 / 2; }
  .act { grid-template-columns: 1fr 34px; }
  .act > :nth-child(2) { grid-column: 1 / 2; }
  .pg { padding: 16px 14px 90px; }
  .hide-m { display: none; }
}

@media (max-width: 760px) {
  .bar .pill { display: none; }
  .rbar .tb { width: 32px; }
  .rbar .tb[data-act="speak"], .rbar .tb[data-act="prev"], .rbar .tb[data-act="next"], .rbar .sep { display: none; }
  #list.v-cards { grid-template-columns: 1fr; gap: 10px; padding: 10px; }
  #list.v-cards .it { min-height: 0; }
  #list.v-magazine .it .th { width: 110px; height: 90px; }
  #list.v-magazine .it .b { min-height: 90px; }
  #list.v-list .it .src { width: 90px; }
  #list.v-list .it .bm, #list.v-list .it .tag { display: none; }
  #list.v-expanded { padding: 8px 0 60px; }
  #list.v-expanded .xart { padding: 18px 16px; border-radius: 0; border-left: 0; border-right: 0; margin-bottom: 8px; }
  #list.v-expanded .xart .t { font-size: 22px; }
  .seg { display: none; }
  .acc-grid { grid-template-columns: 1fr; }
  .bar .grp .caret { display: none; }
  body.overlay #reader { left: 0; box-shadow: none; }
  .rblock { grid-template-columns: 1fr; }
  .rblock .rk { border-right: 0; border-bottom: 1px solid var(--line); padding: 8px 14px; }
  .rp-stats { grid-template-columns: 1fr 1fr; }
  .rp-bars div { grid-template-columns: 110px 1fr 34px; }
  .rp-feeds { columns: 1; }
  .dgrid { grid-template-columns: 1fr; }
}

a.tlink { color: inherit; text-decoration: none; }
a.tlink:hover { color: inherit; text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.node .nmore { display: none; border: 0; background: none; color: var(--muted); width: 22px; height: 22px; border-radius: 6px; cursor: pointer; font-size: 13px; flex: none; margin-left: 2px; }
.node:hover .nmore { display: inline-grid; place-items: center; }
.node:hover .ct { display: none; }
.node .nmore:hover { background: color-mix(in srgb, var(--text) 10%, transparent); color: var(--text); }
@media (hover: none) { .node.on .nmore { display: inline-grid; place-items: center; } .node.on .ct { display: none; } }

/* ---- seçim modu, geri al bildirimi, kaydedilenler başlığı, okuyucu zamanları ---- */
.selbar { display: flex; align-items: center; gap: 6px; padding: 7px 12px; border-bottom: 1px solid var(--line); background: var(--accent-soft); font-size: 13px; position: sticky; top: 0; z-index: 3; flex-wrap: wrap; }
.selbar .row { gap: 8px; align-items: center; cursor: pointer; }
.selbar .ib.sm { width: auto; padding: 0 9px; height: 30px; border-radius: 8px; font-size: 13px; }
.selbar .ib[disabled] { opacity: .4; pointer-events: none; }
.selbar .sp { flex: 1; }
.it .selcb { flex: none; width: 17px; height: 17px; margin: 2px 4px 0 0; accent-color: var(--accent); cursor: pointer; }
#list.v-cards .it .selcb, #list.v-magazine .it .selcb { position: absolute; top: 8px; left: 8px; z-index: 2; margin: 0; }
.it.chk { background: color-mix(in srgb, var(--accent) 12%, transparent); box-shadow: inset 3px 0 var(--accent); }
.selecting .it .ia, .selecting .it [data-iact] { visibility: hidden; }
.ghead.pin { color: var(--accent); }
#toast.act { pointer-events: auto; display: flex; align-items: center; gap: 14px; }
#toast button { background: none; border: 0; color: var(--accent); font-weight: 700; font-size: 14px; cursor: pointer; padding: 0; filter: brightness(1.4); }
.art .meta.times { margin-top: 2px; font-size: 12px; }

/* ---- yapay zekâ özeti ---- */
.ai-grp { display: inline-flex; align-items: center; }
.ai-grp .caret { width: 18px; padding: 0; font-size: 11px; }
.aibox { margin: 12px 0 16px; padding: 12px 14px; border-radius: 10px; background: color-mix(in srgb, var(--accent) 7%, var(--bg)); border: 1px solid color-mix(in srgb, var(--accent) 25%, transparent); font-size: 15px; line-height: 1.55; }
.aibox.err { background: color-mix(in srgb, var(--danger, #c0392b) 8%, var(--bg)); border-color: color-mix(in srgb, var(--danger, #c0392b) 30%, transparent); }
.aibox .aih { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: 13px; margin-bottom: 6px; }
.aibox .aih .sp { flex: 1; }
.aibox .aih .help { font-weight: 400; }
.aibox p { margin: 6px 0; }
.aibox ul { margin: 6px 0; padding-left: 20px; }
.aibox li { margin: 3px 0; }
.aibox .aiwarn { margin-top: 8px; font-size: 11.5px; }
.ai-skel i { display: block; height: 11px; margin: 8px 0; border-radius: 6px; background: linear-gradient(90deg, var(--line), color-mix(in srgb, var(--line) 40%, transparent), var(--line)); background-size: 200% 100%; animation: aisk 1.2s linear infinite; }
@keyframes aisk { from { background-position: 200% 0; } to { background-position: -200% 0; } }
