/* ============================================================
   Proje Arşivi — Premium UI (Apple × Tesla)
   Koyu tema öncelikli, sistem temasına uyar
   ============================================================ */

:root {
  color-scheme: dark light;

  /* — Koyu tema (varsayılan) — */
  --bg:        #000000;
  --surface:   #111113;
  --surface-2: #1c1c1e;
  --surface-3: #2c2c2e;
  --ink:       #f5f5f7;
  --ink-2:     #ebebf5cc;
  --muted:     #8e8e93;
  --line:      rgba(255,255,255,.08);
  --line-2:    rgba(255,255,255,.14);

  --accent:     #34c759;       /* Apple sistem yeşili */
  --accent-dim: #1a4d2e;
  --accent-ink: #000;
  --accent-soft:#0d2d1a;

  --danger: #ff453a;
  --warn:   #ff9f0a;
  --ok:     #34c759;

  --st-fikir:     #bf5af2;
  --st-gorusme:   #ff9f0a;
  --st-aktif:     #34c759;
  --st-beklemede: #636366;
  --st-kapandi:   #48484a;

  --radius:   18px;
  --radius-s: 12px;
  --radius-xs:8px;

  --shadow-s: 0 1px 3px rgba(0,0,0,.5);
  --shadow:   0 4px 24px rgba(0,0,0,.55), 0 1px 2px rgba(0,0,0,.4);
  --shadow-l: 0 8px 40px rgba(0,0,0,.7);

  --blur: blur(24px) saturate(180%);

  --sans: -apple-system, "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  --mono: "SF Mono", "Fira Code", monospace;

  --dur: .18s;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* Açık tema */
@media (prefers-color-scheme: light) {
  :root {
    --bg:        #f2f2f7;
    --surface:   #ffffff;
    --surface-2: #f2f2f7;
    --surface-3: #e5e5ea;
    --ink:       #1c1c1e;
    --ink-2:     #3a3a3c;
    --muted:     #8e8e93;
    --line:      rgba(0,0,0,.08);
    --line-2:    rgba(0,0,0,.13);
    --accent:      #1c7a3e;
    --accent-dim:  #d1f0dc;
    --accent-soft: #e8f8ee;
    --accent-ink:  #fff;
    --shadow-s: 0 1px 3px rgba(0,0,0,.08);
    --shadow:   0 4px 20px rgba(0,0,0,.09), 0 1px 2px rgba(0,0,0,.06);
    --shadow-l: 0 8px 40px rgba(0,0,0,.14);
  }
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.5 var(--sans);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
h1,h2,h3 { font-family: var(--sans); line-height: 1.15; margin: 0; font-weight: 700; letter-spacing: -.02em; }
h1 { font-size: clamp(1.6rem, 5vw, 2rem); }
p { margin: .25rem 0; }
hr { border: 0; border-top: 1px solid var(--line); margin: 16px 0; }
code { font-size: .82em; font-family: var(--mono); background: var(--surface-2); padding: 2px 7px; border-radius: 6px; word-break: break-all; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .82rem; }
.center { text-align: center; }
.grow { flex: 1; }
.ic { width: 1.1em; height: 1.1em; flex: none; vertical-align: -.18em; }
.stack { display: flex; flex-direction: column; gap: 10px; }

/* ── Layout ── */
.main {
  padding: 16px 16px calc(90px + env(safe-area-inset-bottom));
  max-width: 1080px;
  margin: 0 auto;
  width: 100%;
}
body.bare .main {
  padding: 24px 16px;
  display: grid;
  place-items: center;
  min-height: 100vh;
}
.rail { display: none; }

/* Tab bar — cam efekti */
.tabbar {
  position: fixed;
  left: 0; right: 0; bottom: 0;
  z-index: 30;
  display: flex;
  justify-content: space-around;
  align-items: flex-end;
  background: rgba(28,28,30,.72);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border-top: 1px solid var(--line);
  padding: 8px 4px calc(8px + env(safe-area-inset-bottom));
}
.tabbar a {
  position: relative;
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: .65rem;
  font-weight: 500;
  letter-spacing: .01em;
  padding: 4px 2px;
  text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.tabbar a .ic { width: 1.6em; height: 1.6em; }
.tabbar a.on { color: var(--accent); }
.tabbar a.fab { flex: 0 0 64px; }
.tabbar a.fab .ic {
  width: 52px; height: 52px;
  padding: 14px;
  margin-top: -22px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-ink);
  box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 50%, transparent), var(--shadow);
  stroke-width: 2.4;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.tabbar a.fab:active .ic { transform: scale(.92); }
.tabbar a.fab span { display: none; }
.badge {
  position: absolute; top: -2px; left: calc(50% + 8px);
  min-width: 18px; height: 18px;
  padding: 0 5px; border-radius: 9px;
  background: var(--danger); color: #fff;
  font-size: .65rem; font-weight: 700; line-height: 18px; text-align: center;
  border: 2px solid var(--bg);
}

/* Desktop rail */
@media (min-width: 900px) {
  body.has-nav { display: grid; grid-template-columns: 260px 1fr; align-items: start; }
  .tabbar { display: none; }
  .main { padding: 36px 40px 56px; }
  .rail {
    display: flex; flex-direction: column; gap: 8px;
    position: sticky; top: 0; height: 100vh;
    padding: 28px 14px;
    border-right: 1px solid var(--line);
    background: rgba(17,17,19,.8);
    backdrop-filter: var(--blur);
    -webkit-backdrop-filter: var(--blur);
  }
  .brand {
    display: flex; align-items: center; gap: 11px;
    font-weight: 700; font-size: 1.05rem;
    color: var(--ink); text-decoration: none;
    padding: 6px 8px 18px;
  }
  .brand .logo {
    display: grid; place-items: center;
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--accent);
    color: var(--accent-ink);
  }
  .rail nav { display: flex; flex-direction: column; gap: 2px; }
  .rail nav a {
    position: relative; display: flex; align-items: center; gap: 11px;
    padding: 11px 12px; border-radius: 13px;
    color: var(--muted); font-weight: 500;
    text-decoration: none;
    transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
  }
  .rail nav a:hover { background: var(--surface-2); color: var(--ink); }
  .rail nav a.on { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
  .rail nav a.add {
    margin: 8px 0 0;
    background: var(--accent); color: var(--accent-ink); font-weight: 600;
  }
  .rail nav a.add:hover { filter: brightness(1.1); }
  .rail .badge { position: static; margin-left: auto; }
}

/* ── Başlıklar ── */
.top { display: flex; gap: 12px; align-items: flex-start; justify-content: space-between; margin: 4px 0 16px; }
.top-actions { display: flex; gap: 8px; align-items: center; }
.sec {
  display: flex; align-items: center; gap: 8px;
  font-size: .95rem; font-weight: 600;
  margin: 24px 0 10px;
  color: var(--muted);
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem;
}
.sec i, .tabs i, .chip i {
  font-style: normal; font-family: var(--sans);
  font-size: .72rem; font-weight: 600;
  background: var(--surface-3); color: var(--muted);
  padding: 1px 8px; border-radius: 99px;
}

/* ── Düğmeler ── */
.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 44px; padding: 0 18px;
  border-radius: 13px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--ink);
  font: 600 .95rem var(--sans);
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: transform var(--dur) var(--ease), filter var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { text-decoration: none; filter: brightness(1.08); }
.btn:active { transform: scale(.96); }
.btn.primary {
  background: var(--accent);
  border-color: transparent;
  color: var(--accent-ink);
  box-shadow: 0 2px 12px color-mix(in srgb, var(--accent) 35%, transparent);
}
.btn.primary:hover { filter: brightness(1.1); box-shadow: 0 4px 20px color-mix(in srgb, var(--accent) 50%, transparent); }
.btn.danger { color: var(--danger); border-color: color-mix(in srgb, var(--danger) 30%, var(--line)); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.ghost:hover { background: var(--surface-2); }
.btn.small { min-height: 34px; padding: 0 12px; font-size: .84rem; border-radius: 9px; }
.btn.big { min-height: 56px; font-size: 1.05rem; width: 100%; border-radius: 16px; }
.btn.block { width: 100%; }
.btn.busy { opacity: .5; pointer-events: none; cursor: default; }
.btn.busy::after { content: ' Kaydediliyor…'; font-size: .85em; }

/* ── Form ── */
input, select, textarea {
  width: 100%;
  font: inherit; color: var(--ink);
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  padding: 12px 14px; min-height: 46px;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
textarea { resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus,
.btn:focus-visible, summary:focus-visible {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent);
}
input[type=checkbox] { width: auto; min-height: 0; }
.lbl {
  display: flex; align-items: center; gap: 6px;
  font-size: .8rem; font-weight: 600;
  color: var(--muted); letter-spacing: .02em; text-transform: uppercase;
  margin: 14px 0 6px;
}
.panel > .lbl:first-child { margin-top: 0; }
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  margin: 0 0 14px;
  box-shadow: var(--shadow-s);
}
.panel .sec:first-child { margin-top: 0; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.inline { display: inline-flex; align-items: center; gap: 8px; }

/* ── Toast ── */
.toast {
  position: sticky; top: 10px; z-index: 40;
  margin: 0 0 14px;
  padding: 13px 18px;
  border-radius: 14px;
  background: var(--surface-3);
  color: var(--ink);
  font-weight: 600;
  box-shadow: var(--shadow);
  border: 1px solid var(--line-2);
  animation: slideDown .25s var(--ease), fade 5s .5s forwards;
}
.toast.ok { background: var(--accent-dim); color: var(--accent); border-color: transparent; }
.toast.err { background: color-mix(in srgb, var(--danger) 18%, var(--surface)); color: var(--danger); border-color: color-mix(in srgb, var(--danger) 25%, transparent); }
.toast.static { position: static; animation: none; }
@keyframes fade { 0%,85% { opacity:1 } 100% { opacity:0; pointer-events:none } }
@keyframes slideDown { from { opacity:0; transform:translateY(-8px) } to { opacity:1; transform:none } }

/* ── Çipler & Sekmeler ── */
.chips { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; margin: 10px 0; }
.chips.scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin-left: -16px; margin-right: -16px; padding: 2px 16px; }
.chips.scroll::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; flex: none;
  min-height: 34px; padding: 0 14px;
  border-radius: 99px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--muted);
  font: 500 .88rem var(--sans);
  cursor: pointer; text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease), border-color var(--dur) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.chip:hover { color: var(--ink); background: var(--surface-3); }
.chip:active { transform: scale(.95); }
.chip.on { background: var(--accent); border-color: transparent; color: var(--accent-ink); font-weight: 600; }
.chip.on i { background: rgba(255,255,255,.22); color: inherit; }
.chip.ghost { background: transparent; border-color: transparent; }
.chip.ghost.on { background: var(--surface-2); color: var(--ink); border-color: transparent; }
.pill {
  display: inline-block; padding: 3px 10px;
  border-radius: 99px; font-size: .72rem; font-weight: 700; color: #fff;
}
.st-fikir{background:var(--st-fikir)} .st-gorusme{background:var(--st-gorusme)}
.st-aktif{background:var(--st-aktif)} .st-beklemede{background:var(--st-beklemede)}
.st-kapandi{background:var(--st-kapandi)}
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin: 16px 0 18px; overflow-x: auto; }
.tabs a {
  padding: 10px 16px; color: var(--muted);
  font-weight: 600; font-size: .9rem;
  border-bottom: 2px solid transparent; margin-bottom: -1px;
  white-space: nowrap; text-decoration: none;
  transition: color var(--dur) var(--ease);
}
.tabs a.on { color: var(--accent); border-color: var(--accent); }

/* ── Arama ── */
.searchbox { position: relative; margin: 0 0 8px; }
.searchbox .ic { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 44px; border-radius: 99px; min-height: 48px; background: var(--surface-2); }
.searchbox.big input { min-height: 56px; font-size: 1.05rem; }

/* ── Katalog Kartları ── */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; margin-top: 10px; }
.card {
  display: block;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-s);
  color: inherit; text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.card:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.card:active { transform: scale(.98); }
.cover {
  aspect-ratio: 16/9;
  display: grid; place-items: center;
  background: hsl(var(--h,145) 14% 14%);
  color: hsl(var(--h,145) 30% 55%);
  overflow: hidden;
}
@media (prefers-color-scheme: light) {
  .cover { background: hsl(var(--h,145) 22% 88%); color: hsl(var(--h,145) 30% 45%); }
}
.cover img { width: 100%; height: 100%; object-fit: cover; }
.cover .ic { width: 40px; height: 40px; opacity: .6; }
.pbody { padding: 14px 16px 16px; }
.prow { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.pbody h3 { font-size: 1.1rem; margin-bottom: 4px; font-weight: 600; }
.facts { display: flex; flex-wrap: wrap; gap: 6px 12px; font-size: .82rem; margin: 4px 0 8px; color: var(--muted); }
.facts span { display: inline-flex; align-items: center; gap: 5px; }
.clamp { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card.row { display: flex; align-items: center; gap: 10px; padding: 12px 16px; box-shadow: none; }
.plist { display: grid; gap: 8px; }

/* ── Proje başlığı ── */
.phead { margin-bottom: 6px; }
.back { display: inline-flex; align-items: center; gap: 4px; color: var(--accent); font-size: .9rem; font-weight: 500; margin-bottom: 8px; }
.ptitle h1 { font-size: clamp(1.5rem,5vw,2.2rem); }
.pmeta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 10px; }
.desc { margin-top: 10px; max-width: 70ch; color: var(--ink-2); }
.pactions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.pop { position: relative; }
.pop > summary { list-style: none; cursor: pointer; }
.pop > summary::-webkit-details-marker { display: none; }
.pop-body {
  position: absolute; z-index: 20; right: 0; top: calc(100% + 8px);
  width: min(340px, calc(100vw - 32px));
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow-l);
}
.pop.right .pop-body { left: 0; right: auto; }
@media (max-width: 520px) {
  .pop-body {
    position: fixed; left: 12px; right: 12px; top: auto;
    bottom: calc(84px + env(safe-area-inset-bottom));
    width: auto; max-height: 72vh; overflow: auto;
  }
  .pop.right .pop-body { left: 12px; }
}

/* ── Akış / Kayıtlar ── */
.day-h {
  font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .08em;
  color: var(--muted); margin: 24px 0 10px;
}
.cap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px 16px 16px;
  margin: 0 0 10px;
  box-shadow: var(--shadow-s);
  scroll-margin-top: 16px;
  transition: box-shadow var(--dur) var(--ease);
}
.cap:target { outline: 2px solid var(--accent); outline-offset: 2px; }
.cap-h { display: flex; align-items: center; gap: 11px; margin-bottom: 10px; }
.avatar {
  display: grid; place-items: center; flex: none;
  width: 38px; height: 38px; border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  font-weight: 700; font-size: .95rem;
}
.avatar.none { background: var(--surface-2); color: var(--muted); }
.who { flex: 1; min-width: 0; line-height: 1.3; }
.who b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.sel input { position: absolute; opacity: 0; }
.sel span {
  display: block; width: 22px; height: 22px;
  border: 2px solid var(--line-2); border-radius: 6px;
  background: var(--surface-2);
}
.sel input:checked + span {
  background: var(--accent); border-color: var(--accent);
  box-shadow: inset 0 0 0 3px rgba(0,0,0,.3);
}
.sel { position: relative; flex: none; }
.note {
  display: flex; gap: 8px;
  background: var(--surface-2);
  border-radius: var(--radius-xs);
  padding: 10px 12px; margin: 0 0 10px;
  font-size: .92rem; border-left: 3px solid var(--accent);
}
.txt { white-space: normal; overflow-wrap: anywhere; margin: 6px 0; line-height: 1.6; }
.txt summary { cursor: pointer; list-style: none; }
.txt summary::-webkit-details-marker { display: none; }
.txt details[open] summary { display: none; }
.imgs { display: grid; gap: 3px; margin: 10px 0; border-radius: 14px; overflow: hidden; }
.imgs.n1{grid-template-columns:1fr}
.imgs.n2{grid-template-columns:1fr 1fr}
.imgs.n3{grid-template-columns:repeat(3,1fr)}
.imgs.n4{grid-template-columns:repeat(2,1fr)}
@media (min-width: 600px) { .imgs.n4 { grid-template-columns: repeat(4,1fr); } }
.imgs a, .mgrid a { display: block; background: var(--surface-2); overflow: hidden; }
.imgs img { width:100%;height:100%;object-fit:cover;aspect-ratio:1;display:block;transition:transform .3s var(--ease); }
.imgs a:hover img { transform: scale(1.04); }
.imgs.n1 img { aspect-ratio:auto;max-height:520px;object-fit:contain;background:var(--surface-2); }
video { width:100%;max-height:480px;border-radius:14px;background:#000;margin:8px 0; }
.audio { display:flex;align-items:center;gap:10px;margin:8px 0; }
.audio audio { flex:1;min-width:0;height:44px; }
.file, .linkcard {
  display: flex; align-items: center; gap: 12px;
  margin: 8px 0; padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  color: var(--ink); text-decoration: none;
  background: var(--surface-2);
  transition: background var(--dur) var(--ease);
}
.file:hover, .linkcard:hover { background: var(--surface-3); }
.file .ic, .linkcard .ic { width: 1.6em; height: 1.6em; color: var(--accent); }
.file > div { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.linkcard span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ents { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ent {
  display: inline-flex; align-items: center; gap: 5px;
  max-width: 100%; padding: 4px 11px;
  border-radius: 99px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: .76rem; font-weight: 600;
  border: 1px solid color-mix(in srgb, var(--accent) 20%, transparent);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.ent .ic { width: 1em; height: 1em; }
.ent.more { background: var(--surface-2); color: var(--muted); border-color: transparent; }

/* ── Kart menüsü ── */
.menu { position: relative; }
.menu > summary {
  list-style: none; display: grid; place-items: center;
  width: 38px; height: 38px; border-radius: 50%;
  cursor: pointer; color: var(--muted);
  transition: background var(--dur) var(--ease);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: var(--surface-2); color: var(--ink); }
.menu-body {
  position: absolute; z-index: 15; right: 0; top: 46px;
  width: min(320px, calc(100vw - 40px));
  display: flex; flex-direction: column; gap: 14px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  border-radius: 16px;
  padding: 16px;
  box-shadow: var(--shadow-l);
}

/* ── Medya & Bilgiler ── */
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px,1fr)); gap: 3px; }
@media (min-width: 700px) { .mgrid { grid-template-columns: repeat(auto-fill, minmax(160px,1fr)); } }
.mgrid img { width:100%;aspect-ratio:1;object-fit:cover;display:block;transition:transform .3s var(--ease); }
.mgrid a:hover img { transform: scale(1.05); }
.flist { display: grid; gap: 10px; }
.frow { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 6px 14px 12px; }
.irows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.irows li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-s); padding: 12px 16px; }
.ival { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; }
.ival b, .ival > a:first-child { flex: 1 1 auto; min-width: 0; overflow-wrap: anywhere; }

/* ── Ekle formu ── */
.addform { max-width: 720px; }
.picked { display: grid; gap: 8px; margin: 10px 0; }
.pick {
  position: relative; display: flex; align-items: center; gap: 12px;
  padding: 10px; border: 1px solid var(--line); border-radius: var(--radius-s);
  background: var(--surface-2); cursor: pointer;
}
.pick input { position: absolute; opacity: 0; }
.pick img, .pick-ic {
  width: 54px; height: 54px; border-radius: 10px; object-fit: cover; flex: none;
  display: grid; place-items: center; background: var(--surface-3); color: var(--muted);
}
.pick-n { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: .88rem; }
.pick-ok {
  display: grid; place-items: center; width: 26px; height: 26px;
  border-radius: 50%; background: var(--accent); color: var(--accent-ink); flex: none;
}
.pick input:not(:checked) ~ .pick-ok { visibility: hidden; }
.pick input:not(:checked) ~ img,
.pick input:not(:checked) ~ .pick-ic,
.pick input:not(:checked) ~ .pick-n { opacity: .4; }
.filebtns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.filebtns .btn { cursor: pointer; }
.actions-bar {
  position: sticky;
  bottom: calc(78px + env(safe-area-inset-bottom));
  z-index: 10;
}
@media (min-width: 900px) { .actions-bar { bottom: 16px; } }

/* ── Toplu işlem ── */
.bulkbar {
  position: sticky; top: 8px; z-index: 25;
  display: flex; flex-wrap: wrap; gap: 8px; align-items: center;
  margin: 0 0 14px; padding: 12px 14px;
  background: var(--surface-2);
  border: 1px solid var(--accent);
  border-radius: 16px; box-shadow: var(--shadow);
}
.bulkbar select, .bulkbar input { flex: 1 1 180px; width: auto; }

/* ── Ayarlar ── */
.stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; text-align: center; }
.stats b { display: block; font-size: 1.7rem; font-weight: 700; letter-spacing: -.03em; color: var(--ink); }
.stats span { color: var(--muted); font-size: .76rem; }
.steps { margin: 0; padding-left: 22px; display: grid; gap: 6px; }
.checks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.checks li { padding-left: 30px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--ok); color: #000;
  text-align: center; font-size: .72rem; font-weight: 700; line-height: 20px;
}
.checks li.warn::before { content: "!"; background: var(--warn); color: #000; }

/* ── Boş durum & Giriş ── */
.empty {
  display: grid; justify-items: center; gap: 10px;
  text-align: center; padding: 56px 16px;
  color: var(--muted);
}
.empty .ic { width: 48px; height: 48px; color: var(--accent); opacity: .7; }
.empty h2 { color: var(--ink); }
.empty p { max-width: 46ch; }
.auth-card {
  width: min(400px, 100%);
  display: grid; gap: 14px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 24px;
  padding: 32px 28px;
  box-shadow: var(--shadow-l);
}
.auth-logo {
  display: grid; place-items: center;
  width: 54px; height: 54px; border-radius: 16px;
  background: var(--accent); color: var(--accent-ink);
}
.auth-logo .ic { width: 28px; height: 28px; }

/* ── Lightbox ── */
.lightbox {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(0,0,0,.95);
  display: grid; place-items: center;
}
.lightbox img {
  max-width: 100vw; max-height: calc(100vh - 80px);
  object-fit: contain; touch-action: pinch-zoom;
}
.lightbox button {
  position: absolute;
  background: rgba(255,255,255,.1);
  color: #fff; border: 1px solid rgba(255,255,255,.15);
  border-radius: 50%; width: 48px; height: 48px;
  font-size: 1.4rem; cursor: pointer;
  backdrop-filter: blur(8px);
  transition: background var(--dur) var(--ease);
}
.lightbox button:hover { background: rgba(255,255,255,.2); }
.lb-x { top: max(14px, env(safe-area-inset-top)); right: 14px; }
.lb-p { left: 12px; top: 50%; } .lb-n { right: 12px; top: 50%; }
.lb-cap { position: absolute; bottom: max(14px,env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center; color: rgba(255,255,255,.6); font-size: .82rem; }
.lb-dl { position: absolute; bottom: max(40px,env(safe-area-inset-bottom)); left: 50%; transform: translateX(-50%); color: #fff; font-size: .82rem; opacity: .7; }
.lb-dl:hover { opacity: 1; }

/* ── Mobil ince ayar ── */
@media (max-width: 599px) {
  .cover { aspect-ratio: 21/9; }
  .cards { gap: 10px; }
  .panel { padding: 14px; }
}
