/* Notlar — tasarımdan çıkarılan renkler ve ölçüler.
   Değerler PNG'den örneklendi, göz kararı değil: yan panel #F8F9FA, etkin
   gezinme hapı #EFF1F3 (beyaz DEĞİL, bir ton koyu), kanban sütunu #F8F9FA. */

@font-face {
  font-family: "Inter var";
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url("InterVariable.woff2") format("woff2");
}

:root {
  --zemin: #F7F7F7;
  --kagit: #FFFFFF;
  --yan: #F8F9FA;
  --yuzey: #F8F9FA;
  --hap: #EFF1F3;

  --cizgi: #E7E9EC;
  --cizgi-ince: #F1F2F5;

  --murekkep: #14161A;
  --soluk: #6B7481;
  --soluk-2: #98A0AC;

  --vurgu: #20262D;
  --vurgu-metin: #FFFFFF;
  --gecti: #DC2626;

  --r: 8px;
  --r-lg: 12px;
  --golge: 0 1px 2px rgba(16, 24, 40, .04), 0 1px 3px rgba(16, 24, 40, .06);
  --golge-kip: 0 24px 60px -16px rgba(16, 24, 40, .28);
  --yan-en: 208px;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--kagit);
  color: var(--murekkep);
  font: 400 14px/1.5 "Inter var", -apple-system, BlinkMacSystemFont, "Segoe UI",
        Roboto, Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  font-feature-settings: "cv11", "ss01";
}
img { max-width: 100%; }
[hidden] { display: none !important; }
.sim { width: 16px; height: 16px; flex: none; }

/* ── kabuk ───────────────────────────────────────────────────────────── */
/* Mobilde 100vh EN BÜYÜK görünümdür: adres çubuğu ekrandayken alt taraf
   onun altında kalıyor. `dvh` o an görünen yüksekliği verir. Önce `vh`:
   `dvh` bilmeyen tarayıcı ikinci satırı yok sayıp birincide kalır. */
.kabuk { display: flex; min-height: 100vh; min-height: 100dvh; }
.yan-anahtar, .yan-perde { display: none; }

.yan {
  width: var(--yan-en);
  flex: none;
  background: var(--yan);
  border-right: 1px solid var(--cizgi-ince);
  padding: 18px 12px 14px;
  /* Ana ekrandan açıldığında panel çentiğin ve home indicator'ın altına
     giriyordu. `env(...)` masaüstünde 0px, yani tasarım değişmiyor. */
  padding-top: calc(18px + env(safe-area-inset-top, 0px));
  padding-bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  padding-left: calc(12px + env(safe-area-inset-left, 0px));
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  height: 100dvh;
}
.marka {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 8px; font-weight: 650; font-size: 15px; letter-spacing: -.01em;
}
.marka .sim { width: 18px; height: 18px; }

.gezinme { display: flex; flex-direction: column; gap: 2px; }
.nav {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: var(--r);
  color: var(--soluk); text-decoration: none;
  font-size: 13.5px; font-weight: 500;
}
.nav .sim { color: var(--soluk-2); }
.nav:hover { background: #F1F3F5; color: var(--murekkep); }
.nav.etkin { background: var(--hap); color: var(--murekkep); font-weight: 550; }
.nav.etkin .sim { color: var(--murekkep); }
.nav-ayrac { height: 1px; background: var(--cizgi); margin: 10px 10px; }

.ben {
  margin-top: auto;
  display: flex; align-items: center; gap: 9px;
  padding: 9px 8px; border-top: 1px solid var(--cizgi);
  text-decoration: none; color: inherit; border-radius: var(--r);
}
.ben:hover { background: #F1F3F5; }
.ben-metin { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ben-metin strong { font-size: 13px; font-weight: 600; letter-spacing: -.01em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ben-metin small { font-size: 11.5px; color: var(--soluk); }
.ben .sim { width: 14px; height: 14px; color: var(--soluk-2); }

/* ── ana sütun ───────────────────────────────────────────────────────── */
/* Sol kenarda `env` yok: geniş ekranda orayı yan panel kapatıyor, dar
   ekranda da .ana sola kadar uzadığı için alt bölümde ayrıca veriliyor. */
.ana {
  flex: 1; min-width: 0;
  padding: 26px 30px 56px;
  padding-top: calc(26px + env(safe-area-inset-top, 0px));
  padding-right: calc(30px + env(safe-area-inset-right, 0px));
  padding-bottom: calc(56px + env(safe-area-inset-bottom, 0px));
}
.tepe { display: flex; align-items: flex-start; gap: 20px; flex-wrap: wrap; }
.tepe-metin { flex: 1; min-width: 220px; }
.tepe h1 { margin: 0; font-size: 34px; font-weight: 700; letter-spacing: -.025em;
  line-height: 1.12; }
.tepe p { margin: 5px 0 0; color: var(--soluk); font-size: 13.5px; }
.yan-dugme { display: none; }

/* İki satır: üstte arama + ekle, altta (yalnız Liste'de) süzgeçler. */
.araclar { display: flex; flex-direction: column; gap: 10px; padding-top: 6px; }
.arac-ust { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.suzgecler { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.suzgec {
  font: inherit; font-size: 12.5px; color: inherit; cursor: pointer;
  background: var(--kagit); border: 1px solid var(--cizgi);
  border-radius: var(--r); padding: 0 8px; height: 32px; max-width: 190px;
}
.suzgec:focus { outline: 0; border-color: #C9CFD8; box-shadow: 0 0 0 3px rgba(32, 38, 45, .06); }
/* Açık süzgeç belli olsun: dört kutudan hangisinin daralttığı bir bakışta
   görünmezse "görev nerede?" sorusu süzgeçten değil veriden sanılıyor. */
.suzgec.dolu { border-color: #B9C6D6; background: #EEF4FB; font-weight: 550; }
.suz-temizle {
  display: inline-flex; align-items: center; gap: 5px; height: 32px;
  padding: 0 8px; border-radius: var(--r);
  font-size: 12.5px; color: var(--soluk); text-decoration: none;
}
.suz-temizle:hover { background: #F1F3F5; color: var(--murekkep); }
.suz-temizle .sim { width: 13px; height: 13px; }
.ara {
  display: flex; align-items: center; gap: 8px;
  background: var(--kagit); border: 1px solid var(--cizgi);
  border-radius: var(--r); padding: 0 11px; height: 36px; width: 218px;
}
.ara:focus-within { border-color: #C9CFD8; box-shadow: 0 0 0 3px rgba(32, 38, 45, .06); }
.ara .sim { width: 15px; height: 15px; color: var(--soluk-2); }
.ara input {
  border: 0; outline: 0; background: none; font: inherit; font-size: 13px;
  width: 100%; color: inherit; padding: 0;
}
.ara input::placeholder { color: var(--soluk-2); }
.ara input::-webkit-search-cancel-button { -webkit-appearance: none; }

#gorunum { margin-top: 22px; border-top: 1px solid var(--cizgi-ince); }

/* ── düğmeler ────────────────────────────────────────────────────────── */
button { font: inherit; }
.birincil, .ikincil, .tehlike-dugme {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 36px; padding: 0 14px; border-radius: var(--r);
  font-size: 13px; font-weight: 550; cursor: pointer; border: 1px solid transparent;
  white-space: nowrap;
}
.birincil { background: var(--vurgu); color: var(--vurgu-metin); }
.birincil:hover { background: #2C333C; }
.birincil .sim { width: 15px; height: 15px; }
.ikincil { background: var(--kagit); color: var(--murekkep); border-color: var(--cizgi); }
.ikincil:hover { background: #F5F6F8; }
.tehlike-dugme { background: #FEF2F2; color: #C42B32; border-color: #FBD5D5; }
.tehlike-dugme:hover { background: #FDE7E7; }
.genis { width: 100%; }
.metin-dugme {
  background: none; border: 0; cursor: pointer; font-size: 12.5px;
  color: var(--soluk); padding: 4px 6px; border-radius: 6px;
}
.metin-dugme:hover { background: #F1F3F5; color: var(--murekkep); }
.metin-dugme.tehlike:hover { background: #FEF2F2; color: #C42B32; }

/* ── rozet · avatar · onay kutusu ────────────────────────────────────── */
.rozet {
  display: inline-flex; align-items: center; border-radius: 999px;
  padding: 3px 9px; font-size: 11.5px; font-weight: 550; letter-spacing: -.005em;
  white-space: nowrap;
}
.avatar {
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--av); color: #fff;
  font-weight: 600; letter-spacing: -.02em; flex: none; user-select: none;
}
.kisi { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.kisi-ad {
  font-size: 12.5px; color: #384250;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nokta { width: 8px; height: 8px; border-radius: 50%; flex: none; }

.kutu {
  width: 18px; height: 18px; border-radius: 5px; flex: none;
  border: 1.5px solid #CFD5DD; background: var(--kagit);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; padding: 0; color: transparent;
}
.kutu:hover { border-color: #A7B0BC; }
.kutu svg { width: 12px; height: 12px; }
.kutu.isaretli { background: var(--vurgu); border-color: var(--vurgu); color: #fff; }

input[type="checkbox"] {
  width: 15px; height: 15px; border-radius: 4px; accent-color: var(--vurgu);
  cursor: pointer; margin: 0;
}

.tarih {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12.5px; color: var(--soluk);
}
.tarih .sim { width: 14px; height: 14px; color: var(--soluk-2); }
.tarih.gecti, .gecti { color: var(--gecti); }
.tarih.gecti .sim { color: var(--gecti); }

.bos { color: var(--soluk); font-size: 13.5px; padding: 40px 4px; text-align: center; }

/* ── Notes ───────────────────────────────────────────────────────────── */
.not-satir {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr) 118px 122px 152px 26px;
  gap: 16px; align-items: center;
  min-height: 66px; padding: 12px 2px;
  border-bottom: 1px solid var(--cizgi-ince);
}
.not-satir:last-child { border-bottom: 0; }
.not-satir:hover { background: #FCFCFD; }
.not-baslik { font-size: 14.5px; font-weight: 600; letter-spacing: -.011em; }
.not-aciklama { margin-top: 3px; font-size: 12.5px; color: var(--soluk); }
.not-satir.bitmis .not-baslik { text-decoration: line-through; color: var(--soluk); }

/* ── Kanban ──────────────────────────────────────────────────────────── */
.pano {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px; padding-top: 20px; align-items: start;
}
.sutun {
  background: var(--yuzey); border-radius: var(--r-lg);
  padding: 12px 10px 10px; min-width: 0;
  /* Sütunda `overflow` YOK: olsaydı son karttaki ⋮ menüsü kırpılırdı. */
}
.sutun.uzerinde { background: #EEF2F6; outline: 2px dashed #C7D2DE; outline-offset: -3px; }
.sutun-tepe {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 6px 12px; font-size: 13px; font-weight: 600;
}
.sutun-sayi { margin-left: auto; color: var(--soluk); font-weight: 500; font-size: 12.5px; }
.sutun-govde { display: flex; flex-direction: column; gap: 8px; min-height: 12px; }
.kart {
  background: var(--kagit); border: 1px solid var(--cizgi);
  border-radius: var(--r); box-shadow: var(--golge);
  padding: 11px 12px; display: flex; flex-direction: column;
  gap: 8px; align-items: flex-start; cursor: grab;
}
.kart:active { cursor: grabbing; }
.kart.suruklenen { opacity: .4; }
.kart-tepe { display: flex; align-items: flex-start; gap: 8px; width: 100%; }
.kart-baslik { flex: 1; font-size: 13px; font-weight: 600; letter-spacing: -.01em; }
.sutun-ekle {
  margin-top: 10px; width: 100%; background: none; border: 0; cursor: pointer;
  display: flex; align-items: center; gap: 6px;
  padding: 7px 8px; border-radius: var(--r);
  color: var(--soluk); font-size: 12.5px; font-weight: 500;
}
.sutun-ekle:hover { background: #EDF0F3; color: var(--murekkep); }
.sutun-ekle .sim { width: 14px; height: 14px; }

/* Tasarımda kanban kartlarında ⋮ YOK — üstüne gelince çıkıyor. Dokunmatikte
   üstüne gelmek diye bir şey olmadığı için orada hep görünür: "Move to"
   telefonda kartı taşımanın tek yolu. */
.kart .menu > summary { opacity: 0; transition: opacity .12s ease; }
.kart:hover .menu > summary,
.kart .menu[open] > summary,
.kart .menu > summary:focus-visible { opacity: 1; }
@media (hover: none) { .kart .menu > summary { opacity: 1; } }

/* ── List — elektronik tablo yoğunluğu ───────────────────────────────── */
/* Kaydırma bu kutuda: gövde yatay kaymasın, tablo kendi içinde kaysın. */
.kaydir { overflow-x: auto; }
.liste { width: 100%; border-collapse: collapse; min-width: 760px; font-size: 12px; }
/* Hücrelere GENEL `overflow` verilmiyor: ⋮ menüsü mutlak konumlu, kırpılırdı
   (Pano sütunlarında aynı sebeple overflow yok). Kırpma yalnız metin
   hücrelerinde, tek tek. */
.liste th, .liste td {
  padding: 2px 8px; text-align: left; white-space: nowrap;
  border-right: 1px solid var(--cizgi-ince);
}
.liste th:last-child, .liste td:last-child { border-right: 0; }
.liste thead th {
  font-size: 11.5px; font-weight: 600; color: var(--soluk);
  background: #F7F8FA; border-bottom: 1px solid var(--cizgi);
}
.liste tbody tr { border-bottom: 1px solid var(--cizgi-ince); }
.liste tbody tr:nth-child(even) { background: #FCFCFD; }
.liste tbody tr:hover { background: #F1F5FA; }
.liste tbody td { height: 25px; }
.liste .rozet { padding: 0 7px; font-size: 11px; line-height: 17px; }
.liste .kisi { gap: 6px; }
.liste .kisi-ad { font-size: 12px; }
.liste input[type="checkbox"] { width: 13px; height: 13px; }
.liste .menu > summary { width: 20px; height: 20px; }
.liste .menu-liste { top: 24px; }
/* Boş durum sıkışmasın: yoğunluk satırlar için, boş ekran için değil. */
.liste td.bos { padding: 32px 8px; white-space: normal; }
.s-kutu { width: 28px; }
.s-menu { width: 28px; text-align: right; }
.s-menu .sim { color: var(--soluk-2); width: 14px; height: 14px; }
.s-baslik {
  font-weight: 500; letter-spacing: -.005em;
  max-width: 420px; overflow: hidden; text-overflow: ellipsis;
}
.s-baslik.bitmis { text-decoration: line-through; color: var(--soluk); }
.s-atanan { max-width: 170px; overflow: hidden; }
.s-alt { width: 92px; }
.s-alt .yorum-sayi { margin-left: 7px; }
.s-tarih { color: var(--soluk); }
.sirala { color: inherit; text-decoration: none; display: inline-flex; gap: 4px; }
.sirala:hover { color: var(--murekkep); }
.sirala.etkin { color: var(--murekkep); font-weight: 600; }
.yon { color: var(--soluk-2); }

.gizli-not { margin: 10px 2px 0; font-size: 12px; color: var(--soluk-2); }

/* Yapışkan çubuğun `bottom`u görünümün kenarından ölçülür, .ana'nın alt
   dolgusundan değil — home indicator'dan kendisi kaçmak zorunda. */
.toplu {
  position: sticky; margin: 16px auto 0;
  bottom: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  display: flex; align-items: center; gap: 14px; width: max-content;
  background: var(--vurgu); color: var(--vurgu-metin);
  border-radius: 999px; padding: 8px 10px 8px 18px;
  box-shadow: var(--golge-kip); font-size: 13px;
}
.toplu[hidden] { display: none; }
.toplu .tehlike-dugme { height: 30px; }

/* ── uyarı şeridi ────────────────────────────────────────────────────── */
#uyari {
  position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%);
  z-index: 90; display: flex; flex-direction: column; gap: 8px;
  align-items: center; pointer-events: none;
}
.uyari {
  background: var(--vurgu); color: var(--vurgu-metin);
  border-radius: 999px; padding: 10px 18px; font-size: 13px; font-weight: 500;
  box-shadow: var(--golge-kip); text-align: center;
  max-width: min(520px, calc(100vw - 32px));
}
.uyari.kotu { background: #C42B32; color: #fff; }

/* ── ⋮ menü ──────────────────────────────────────────────────────────── */
.menu { position: relative; justify-self: end; }
.menu > summary {
  list-style: none; cursor: pointer; display: flex; align-items: center;
  justify-content: center; width: 26px; height: 26px; border-radius: 6px;
  color: var(--soluk-2);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { background: #EDF0F3; color: var(--murekkep); }
.menu-liste {
  position: absolute; right: 0; top: 30px; z-index: 40; width: 186px;
  background: var(--kagit); border: 1px solid var(--cizgi);
  border-radius: 10px; box-shadow: var(--golge-kip); padding: 5px;
  display: flex; flex-direction: column;
}
.menu-liste button {
  display: flex; align-items: center; gap: 8px; text-align: left;
  background: none; border: 0; cursor: pointer; width: 100%;
  padding: 7px 9px; border-radius: 6px; font-size: 13px; color: var(--murekkep);
}
.menu-liste button:hover:not(:disabled) { background: #F2F4F6; }
.menu-liste button:disabled { color: var(--soluk-2); cursor: default; }
.menu-liste button.tehlike { color: #C42B32; }
.menu-liste button.tehlike:hover { background: #FEF2F2; }
.menu-liste .sim { width: 14px; height: 14px; }
.menu-ayrac { height: 1px; background: var(--cizgi-ince); margin: 5px 4px; }
.menu-baslik {
  padding: 6px 9px 3px; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; color: var(--soluk-2);
}

/* ── kip (modal) ─────────────────────────────────────────────────────── */
.kip {
  border: 0; border-radius: 14px; padding: 0; width: min(560px, calc(100vw - 32px));
  box-shadow: var(--golge-kip); color: var(--murekkep); background: var(--kagit);
}
/* ::backdrop'a özel özellik mirası motorlar arasında güvenilmez — düz renk. */
.kip::backdrop { background: rgba(16, 20, 26, .45); }
.kip-tepe {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px; border-bottom: 1px solid var(--cizgi-ince);
}
.kip-tepe h2 { margin: 0; font-size: 15.5px; font-weight: 650; letter-spacing: -.015em; }
.kip-kapat {
  margin-left: auto; background: none; border: 0; cursor: pointer;
  color: var(--soluk); width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
}
.kip-kapat:hover { background: #F1F3F5; color: var(--murekkep); }
.kip-govde { padding: 16px 18px; display: flex; flex-direction: column; gap: 14px; }
.kip-alt {
  display: flex; justify-content: flex-end; gap: 8px;
  padding: 14px 18px; border-top: 1px solid var(--cizgi-ince); background: #FCFCFD;
  border-radius: 0 0 14px 14px;
}
.alan { display: flex; flex-direction: column; gap: 6px; }
.alan > span { font-size: 12.5px; font-weight: 550; color: #414A56; }
.alan-cift { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.alan input, .alan textarea, .alan select {
  font: inherit; font-size: 13.5px; color: inherit;
  border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 9px 11px; background: var(--kagit); width: 100%;
}
.alan textarea { resize: vertical; min-height: 66px; }
.alan input:focus, .alan textarea:focus, .alan select:focus {
  outline: 0; border-color: #C9CFD8; box-shadow: 0 0 0 3px rgba(32, 38, 45, .06);
}
.secmeli { display: flex; gap: 6px; }
.secmeli label { flex: 1; }
.secmeli input { position: absolute; opacity: 0; pointer-events: none; }
.secmeli span {
  display: block; text-align: center; cursor: pointer;
  border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 8px 6px; font-size: 12.5px; font-weight: 500; color: var(--soluk);
}
.secmeli label:hover span { background: #F5F6F8; }
.secmeli input:checked + span {
  background: var(--vurgu); border-color: var(--vurgu); color: var(--vurgu-metin);
  font-weight: 550;
}
.secmeli input:focus-visible + span { box-shadow: 0 0 0 3px rgba(32, 38, 45, .12); }

/* ── kontrol listesi sayacı (kart / satır) ───────────────────────────── */
.ilerleme {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 11.5px; font-weight: 550; color: var(--soluk);
  font-variant-numeric: tabular-nums;
}
.ilerleme .sim { width: 13px; height: 13px; color: var(--soluk-2); }

/* Hatırlatma zili. Değerler kardeşi `.ilerleme` ile AYNI: zil onların
   yanında yabancı durmasın. `flex: none` şart — pano `.kart-tepe` bir flex
   kabı ve zil onsuz ezilip kırpılıyor. Rengi `--soluk-2`, çünkü başlığın
   koyu 600 mürekkebini miras alsaydı sayaçlardan daha ağır görünürdü. */
.zil {
  display: inline-flex; align-items: center; flex: none;
  vertical-align: middle; margin-left: 8px; color: var(--soluk-2);
}
.zil .sim { width: 13px; height: 13px; }
.ilerleme.tam { color: #2F8A6B; }
.ilerleme.tam .sim { color: #2F8A6B; }
.yorum-sayi {
  display: inline-flex; align-items: center; gap: 4px; flex: none;
  font-size: 11.5px; font-weight: 550; color: var(--soluk);
  font-variant-numeric: tabular-nums;
}
.yorum-sayi .sim { width: 13px; height: 13px; color: var(--soluk-2); }
.not-baslik .yorum-sayi { margin-left: 8px; vertical-align: middle; }
.not-baslik .ilerleme { margin-left: 8px; vertical-align: middle; }

/* ── görüntüleme kipi ────────────────────────────────────────────────── */
.bak-baslik { font-size: 17px; font-weight: 650; letter-spacing: -.016em;
  line-height: 1.35; overflow-wrap: anywhere; }
.bak-baslik.bitmis { text-decoration: line-through; color: var(--soluk); }
.bak-rozetler { display: flex; flex-wrap: wrap; gap: 6px; }
/* pre-wrap: açıklama textarea'dan geliyor, satır sonları korunsun. */
.bak-aciklama { margin: 0; font-size: 13.5px; line-height: 1.55; color: #414A56;
  white-space: pre-wrap; overflow-wrap: anywhere; }
.bak-bos { margin: 0; font-size: 13px; color: var(--soluk-2); }
.bak-alan { display: flex; flex-direction: column; gap: 6px; }
.bak-alan > span:first-child { font-size: 12.5px; font-weight: 550; color: #414A56; }
.bak-deger { font-size: 13.5px; }
.bak-iz { margin: 0; padding-top: 12px; border-top: 1px solid var(--cizgi-ince);
  font-size: 11.5px; line-height: 1.6; color: var(--soluk-2); }

/* ── kip içindeki kontrol listesi ────────────────────────────────────── */
.alt-bolum { display: flex; flex-direction: column; gap: 8px;
  padding-top: 14px; border-top: 1px solid var(--cizgi-ince); }
.alt-tepe { display: flex; align-items: center; gap: 8px;
  font-size: 12.5px; font-weight: 550; color: #414A56; }
.alt-sayi { margin-left: auto; font-size: 11.5px; font-weight: 550;
  color: var(--soluk); font-variant-numeric: tabular-nums; }
.alt-cubuk { height: 4px; border-radius: 999px; background: #EDF0F3; overflow: hidden; }
.alt-cubuk span { display: block; height: 100%; background: #2F8A6B;
  border-radius: 999px; transition: width .15s ease; }
.alt-liste { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; }
.alt-liste .alt {
  display: flex; align-items: center; gap: 9px; padding: 5px 0;
  font-size: 13.5px; line-height: 1.4;
}
.alt-metin { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.alt-liste .alt.bitmis .alt-metin { text-decoration: line-through; color: var(--soluk); }
/* Silme düğmesi satır üstünde belirsin: her satırda duran bir çarpı, gözü
   metinden çok kendine çekiyor. Dokunmatikte hover yok, orada hep açık. */
.alt-sil {
  background: none; border: 0; cursor: pointer; padding: 2px; flex: none;
  color: var(--soluk-2); border-radius: 5px; opacity: 0;
  display: flex; align-items: center; justify-content: center;
}
.alt-sil .sim { width: 13px; height: 13px; }
.alt-liste .alt:hover .alt-sil, .alt-sil:focus-visible { opacity: 1; }
.alt-sil:hover { background: #FEF2F2; color: #C42B32; }
@media (hover: none) { .alt-sil { opacity: 1; } }
.alt-ekle { display: flex; gap: 8px; }
.alt-ekle input {
  font: inherit; font-size: 13px; flex: 1; min-width: 0; color: inherit;
  border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 0 11px; height: 34px; background: var(--kagit);
}
.alt-ekle input:focus { outline: 0; border-color: #C9CFD8;
  box-shadow: 0 0 0 3px rgba(32, 38, 45, .06); }
.alt-ekle .ikincil { height: 34px; }

/* ── kip içindeki yorumlar ───────────────────────────────────────────── */
.yorum-bolum { display: flex; flex-direction: column; gap: 10px;
  padding-top: 14px; border-top: 1px solid var(--cizgi-ince); }
.yorum-liste { list-style: none; margin: 0; padding: 0;
  display: flex; flex-direction: column; gap: 12px;
  max-height: 260px; overflow-y: auto; }
.yorum { display: flex; gap: 9px; align-items: flex-start; }
.yorum-govde { flex: 1; min-width: 0; }
.yorum-tepe { display: flex; align-items: center; gap: 8px; }
.yorum-tepe strong { font-size: 12.5px; font-weight: 600; }
.yorum-zaman { font-size: 11px; color: var(--soluk-2);
  font-variant-numeric: tabular-nums; }
.yorum-tepe .alt-sil { margin-left: auto; }
.yorum:hover .alt-sil { opacity: 1; }
/* pre-wrap: yorum textarea'dan geliyor, satır sonları korunsun. */
.yorum-metin { margin: 2px 0 0; font-size: 13.5px; line-height: 1.5;
  color: #414A56; white-space: pre-wrap; overflow-wrap: anywhere; }
.yorum-ekle { display: flex; gap: 8px; align-items: flex-end; }
.yorum-ekle textarea {
  font: inherit; font-size: 13px; flex: 1; min-width: 0; color: inherit;
  border: 1px solid var(--cizgi); border-radius: var(--r);
  padding: 8px 11px; background: var(--kagit); resize: vertical;
}
.yorum-ekle textarea:focus { outline: 0; border-color: #C9CFD8;
  box-shadow: 0 0 0 3px rgba(32, 38, 45, .06); }
.yorum-ekle .ikincil { height: 34px; flex: none; }

/* ── Settings ────────────────────────────────────────────────────────── */
.ayarlar { padding-top: 24px; display: flex; flex-direction: column; gap: 16px;
  max-width: 720px; }
.kutu-bolum {
  border: 1px solid var(--cizgi); border-radius: var(--r-lg);
  padding: 18px 20px; background: var(--kagit);
}
.kutu-bolum h2 { margin: 0; font-size: 14.5px; font-weight: 650; letter-spacing: -.012em; }
.ipucu { margin: 6px 0 14px; color: var(--soluk); font-size: 12.5px; max-width: 56ch; }
.uye-listesi { list-style: none; margin: 0 0 14px; padding: 0; }
.uye-listesi li {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 0; border-bottom: 1px solid var(--cizgi-ince);
}
.uye-listesi li:last-child { border-bottom: 0; }
.uye-metin { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.uye-metin strong { font-size: 13px; font-weight: 600; }
.uye-metin small { font-size: 11.5px; color: var(--soluk); }
.etiket-sen {
  font-size: 11px; font-weight: 600; color: var(--soluk);
  background: var(--hap); border-radius: 999px; padding: 2px 8px;
}
.uye-ekle { display: flex; gap: 8px; flex-wrap: wrap; }
.uye-ekle input {
  font: inherit; font-size: 13px; flex: 1; min-width: 140px;
  border: 1px solid var(--cizgi); border-radius: var(--r); padding: 0 11px; height: 36px;
}
.uye-ekle input:focus { outline: 0; border-color: #C9CFD8; }
.etiket-serisi { display: flex; flex-wrap: wrap; gap: 7px 12px; }
.etiket-sayili { display: inline-flex; align-items: center; gap: 5px; }
.etiket-adet { font-size: 11.5px; color: var(--soluk); font-variant-numeric: tabular-nums; }
.tehlike-bolum { border-color: #F5DADA; background: #FFFCFC; }

/* ── giriş ───────────────────────────────────────────────────────────── */
.giris-zemin { background: var(--zemin); }
.giris {
  max-width: 340px; margin: 11vh auto; background: var(--kagit);
  border: 1px solid var(--cizgi); border-radius: 14px; box-shadow: var(--golge);
  padding: 24px; display: flex; flex-direction: column; gap: 14px;
}
.giris-marka { padding: 0; font-size: 16px; }
.giris-alt { margin: -8px 0 0; color: var(--soluk); font-size: 12.5px; }
.kim-listesi { display: flex; flex-direction: column; gap: 6px; }
.kim input { position: absolute; opacity: 0; pointer-events: none; }
.kim-ic {
  display: flex; align-items: center; gap: 10px; cursor: pointer;
  border: 1px solid var(--cizgi); border-radius: var(--r); padding: 8px 10px;
}
.kim:hover .kim-ic { background: #F7F8FA; }
.kim input:checked + .kim-ic { border-color: var(--vurgu); background: #F5F6F8; }
.kim input:focus-visible + .kim-ic { box-shadow: 0 0 0 3px rgba(32, 38, 45, .12); }
.hata { margin: 0; color: var(--gecti); font-size: 12.5px; }

/* ── dokunmatik ──────────────────────────────────────────────────────── */
/* iOS Safari 16px'in ALTINDAKİ bir girdiye odaklanınca sayfayı zorla
   yakınlaştırıyor ve geri çıkmıyor: aramaya her dokunuşta pano kayıyordu.
   Ayraç genişlik değil `pointer: coarse` — tablet yatayda 900px'in üstünde
   ama hâlâ dokunmatik. Masaüstünde 13.5px tasarımın parçası, dokunulmuyor.
   Kurallar dosyanın sonunda: eşit özgüllükte sonra gelen kazanıyor. */
@media (pointer: coarse) {
  .alan input, .alan textarea, .alan select,
  .ara input, .uye-ekle input { font-size: 16px; }
}

/* ── dar ekran ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .pano { grid-auto-flow: column; grid-auto-columns: 264px;
          grid-template-columns: none; overflow-x: auto; padding-bottom: 8px; }
}
@media (max-width: 860px) {
  .yan {
    position: fixed; z-index: 60; left: 0; top: 0;
    height: 100vh; height: 100dvh;
    transform: translateX(-100%); transition: transform .18s ease;
    box-shadow: var(--golge-kip);
  }
  .yan-anahtar:checked ~ .yan { transform: none; }
  .yan-anahtar:checked ~ .yan-perde {
    display: block; position: fixed; inset: 0; z-index: 50;
    background: rgba(16, 20, 26, .35);
  }
  /* Kısayol dolguyu sıfırladığı için güvenli alan burada yeniden veriliyor.
     Yan panel artık kayan çekmece: sol çentikten .ana kaçmak zorunda. */
  .ana {
    padding: 18px 16px 48px;
    padding-top: calc(18px + env(safe-area-inset-top, 0px));
    padding-right: calc(16px + env(safe-area-inset-right, 0px));
    padding-bottom: calc(48px + env(safe-area-inset-bottom, 0px));
    padding-left: calc(16px + env(safe-area-inset-left, 0px));
  }
  .yan-dugme {
    display: flex; align-items: center; justify-content: center;
    width: 34px; height: 34px; border-radius: var(--r); cursor: pointer;
    border: 1px solid var(--cizgi); color: var(--soluk); order: -1;
  }
  .tepe h1 { font-size: 26px; }
  .araclar { width: 100%; }
  .ara { flex: 1; width: auto; }
  .suzgec { flex: 1 1 140px; max-width: none; }
  .not-satir { grid-template-columns: 18px minmax(0, 1fr) 26px; gap: 10px; }
  .not-etiket, .not-tarih, .not-kisi { display: none; }
  .alan-cift { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
