/* Düzen: üstte siyah marka bandı (Bono logosu, tarih, Menü, kişi), ortada tek sütun kartlar, altta başparmakla ulaşılan menü.
   İki ana renk: Bono'nun siyahı + ikinci renk. Açık temada ikinci renk TURUNCU, koyu temada MOR.
   İkinci renk tek anlamda: "buradasın / seçili / ana iş". Varsayılan açık tema; koyu tema yalnızca Ayarlar'dan seçilirse.
   Kontrast: metin çiftleri en az 4.5:1, kenar ve ikonlar en az 3:1. */
:root {
  /* Zemin ve yüzeyler: sıcak kâğıt beyazı */
  --bg: #f6f3ee;
  --surface: #ffffff;
  --surface-2: #f1ede6;
  /* Metin */
  --ink: #161412;
  --muted: #5c5650;
  /* Çizgiler: dekoratif / form kenarı */
  --line: #e4ded4;
  --line-strong: #8d857b;
  /* İkinci renk: turuncu (dolu zeminde koyu yazı) */
  --accent: #f26a1b;
  --accent-ink: #1f0e02;
  --accent-soft: #fde7d8;
  --accent-line: #b4470a;
  --bar: #b3aba1;
  /* Durum renkleri: yazı / açık zemin */
  --ok: #1b7642; --ok-bg: #e1f2e7;
  --warn: #8a5000; --warn-bg: #fdf0d6;
  --bad: #b8231a; --bad-bg: #fde6e3;
  --info: #1d5ca3; --info-bg: #e4eef9;
  /* Beyaz yazılı dolu düğmeler */
  --ok-dolu: #1b7642;
  --bad-dolu: #bf241b;
  --cikis: #1f5ea6;
  --dolu-ink: #ffffff;
  --whatsapp: #17804a;
  /* İkincil dolu düğme ve bildirim */
  --koyu: #161412;
  --koyu-ink: #ffffff;
  /* Üst bant: Bono siyahı */
  --bant: #141414;
  --bant-ink: #ffffff;
  --bant-muted: #c9c2b8;
  --bant-2: #2a2725;
  --bant-line: #3d3935;
  /* Alt menü ve perdeler */
  --chrome: #ffffff;
  --chrome-2: #f1ede6;
  --chrome-ink: #161412;
  --chrome-muted: #5c5650;
  --chrome-line: #e4ded4;
  /* Sohbet: kendi mesajın */
  --balon-ben: #ffe2cf;
  --balon-ben-line: #f6bf9b;
  /* Arka plan süsü */
  --isik-1: rgba(242, 106, 27, .13);
  --isik-2: rgba(20, 20, 20, .06);
  --desen: rgba(22, 20, 18, .045);
  /* Örtü ve gölge */
  --perde-golge: rgba(22, 20, 18, .45);
  --golge: 0 1px 2px rgba(22, 20, 18, .06), 0 4px 14px rgba(22, 20, 18, .06);

  --f-display: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-body: 'Barlow', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --r: 16px;
  --tab-h: 66px;
  /* "only": tarayıcının otomatik karartması açık temayı koyulaştırmasın */
  color-scheme: only light;
}
/* Koyu: derin mor-gri, simsiyah değil; ikinci renk mor */
:root[data-theme="dark"] {
  --bg: #1b1722;
  --surface: #25202d;
  --surface-2: #2f2939;
  --ink: #f1edf7;
  --muted: #b3a9c2;
  --line: #3a3346;
  --line-strong: #7d7290;
  --accent: #a47bff;
  --accent-ink: #12082a;
  --accent-soft: #382a59;
  --accent-line: #c9b0ff;
  --bar: #5a5068;
  --ok: #6fd197; --ok-bg: #1d3829;
  --warn: #f2b552; --warn-bg: #3b2f16;
  --bad: #ff8d82; --bad-bg: #462420;
  --info: #93bef4; --info-bg: #1e3047;
  --ok-dolu: #1d7a45;
  --bad-dolu: #c0342a;
  --cikis: #2862a8;
  --dolu-ink: #ffffff;
  --whatsapp: #17804a;
  --koyu: #ece6f5;
  --koyu-ink: #1b1722;
  --bant: #120f17;
  --bant-ink: #f1edf7;
  --bant-muted: #b3a9c2;
  --bant-2: #2a2433;
  --bant-line: #3a3346;
  --chrome: #211c29;
  --chrome-2: #2f2939;
  --chrome-ink: #f1edf7;
  --chrome-muted: #b3a9c2;
  --chrome-line: #3a3346;
  --balon-ben: #3d2f63;
  --balon-ben-line: #5b4791;
  --isik-1: rgba(164, 123, 255, .16);
  --isik-2: rgba(164, 123, 255, .06);
  --desen: rgba(241, 237, 247, .035);
  --perde-golge: rgba(0, 0, 0, .6);
  --golge: 0 1px 2px rgba(0, 0, 0, .25);
  color-scheme: dark;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.45 var(--f-body);
  padding-bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 24px);
  -webkit-tap-highlight-color: transparent;
}
/* Arka plan süsü: üstte sıcak bir ışık ve burger kâğıdını andıran ince nokta deseni (sabit, kaydırmada titremez) */
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(900px 420px at 110% -8%, var(--isik-1), transparent 62%),
    radial-gradient(700px 360px at -15% 4%, var(--isik-2), transparent 60%),
    radial-gradient(var(--desen) 1px, transparent 1.2px) 0 0 / 18px 18px,
    var(--bg);
}
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent-line); outline-offset: 2px; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 700; letter-spacing: .01em; text-wrap: balance; margin: 0; line-height: 1.1; }
h2 { font-size: 1.5rem; }
h3 { font-size: 1.2rem; }
h2 .ik, h3 .ik { width: 24px; height: 24px; vertical-align: -4px; margin-right: 8px; color: var(--accent-line); }
p { margin: 0; }
a { color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.soluk { color: var(--muted); }
.kucuk { font-size: .875rem; }
.ik { width: 22px; height: 22px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ok-isaret { color: var(--muted); font-weight: 700; }

/* ---------- Üst bant: Bono siyahı, altında ikinci renk şeridi */
.ust {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: var(--bant); color: var(--bant-ink);
  border-bottom: 3px solid var(--accent);
  padding: calc(env(safe-area-inset-top, 0px) + 8px) 16px 8px;
}
.marka { display: flex; align-items: center; gap: 12px; min-width: 0; text-decoration: none; color: var(--bant-ink); }
.marka .logo { display: block; height: 34px; flex: none; color: var(--bant-ink); }
.marka .logo svg { display: block; height: 100%; width: auto; }
.marka-yazi { display: flex; flex-direction: column; min-width: 0; padding-left: 12px; border-left: 1px solid var(--bant-line); }
.marka b { font-family: var(--f-display); font-size: 1.2rem; letter-spacing: .06em; text-transform: uppercase; line-height: 1.05; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.marka-yazi span { color: var(--bant-muted); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Dar telefonda yalnız logo kalır (tarih Bugün ekranında zaten yazıyor) */
@media (max-width: 440px) { .marka-yazi { display: none; } .marka { flex: none; } }
.ust-sag { display: flex; align-items: center; gap: 6px; flex: 0 1 auto; min-width: 0; }
.menu-btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px;
  min-width: 52px; min-height: 48px; padding: 2px 6px; border-radius: 12px;
  font-size: .72rem; font-weight: 700; text-decoration: none; color: var(--bant-ink);
}
.menu-btn .ik { width: 24px; height: 24px; }
.menu-btn[aria-current="page"] { background: var(--accent); color: var(--accent-ink); }
.kim-chip {
  display: inline-flex; align-items: center; gap: 6px;
  border: 1.5px solid var(--bant-line); background: var(--bant-2); color: var(--bant-ink);
  border-radius: 999px; padding: 4px 8px 4px 4px; min-height: 48px; font-weight: 600; max-width: 100%; min-width: 0;
}
.kim-chip .harf {
  width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none;
  background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.1rem;
}
.kim-chip .ad { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.kim-chip .ok { width: 18px; height: 18px; color: var(--bant-muted); }


.durum { display: grid; }
.durum-satir { padding: 9px 16px; font-size: .9rem; font-weight: 600; background: var(--warn-bg); color: var(--warn); display: flex; align-items: center; justify-content: space-between; gap: 6px 12px; flex-wrap: wrap; }
.durum-satir.kotu { background: var(--bad-bg); color: var(--bad); }
.durum-satir.yon { background: var(--info-bg); color: var(--info); }
/* Ortak ekip girişinden kişisel hesaba geçiş bandı (düğmeli) */
.durum-satir.gecis { background: var(--accent-soft); color: var(--ink); border-bottom: 1.5px solid var(--accent-line); }
.durum-satir .btn { min-height: 40px; background: var(--surface); }

/* ---------- Bölüm içi sayfalar: ikonlu kutucuklar, kaydırma yok, hepsi görünür */
.alt-nav {
  display: grid; grid-template-columns: repeat(var(--n, 4), minmax(0, 1fr)); gap: 6px;
  padding: 12px 16px 0; max-width: 720px; margin: 0 auto;
}
.alt-nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  min-height: 66px; padding: 8px 3px; border-radius: 12px; min-width: 0;
  background: var(--surface); border: 1px solid var(--line); box-shadow: var(--golge);
  color: var(--ink); text-decoration: none; font-size: .8rem; font-weight: 600; line-height: 1.15; text-align: center;
  overflow-wrap: anywhere;
}
.alt-nav a .ik { color: var(--muted); }
.alt-nav a[aria-current="page"] { background: var(--accent-soft); border-color: var(--accent-line); box-shadow: inset 0 0 0 1px var(--accent-line); font-weight: 700; }
.alt-nav a[aria-current="page"] .ik { color: var(--ink); }
@media (max-width: 359px) { .alt-nav a { font-size: .72rem; } }

main { max-width: 720px; margin: 0 auto; padding: 16px 16px 0; display: grid; gap: 14px; }
.yukleniyor { color: var(--muted); padding: 40px 0; text-align: center; }

/* ---------- Sayfa başlığı: ad + tek cümle */
.sayfa-bas { display: grid; gap: 4px; padding: 2px 2px 0; }
.sayfa-bas h1 { font-size: 1.85rem; }
.sayfa-bas p { color: var(--muted); font-size: 1rem; max-width: 52ch; }

/* ---------- Alt menü: beyaz; seçili bölümün ikonunun arkasında hardal hap */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr);
  background: var(--chrome); color: var(--chrome-muted);
  border-top: 1px solid var(--chrome-line);
  box-shadow: 0 -2px 10px rgba(23, 27, 26, .06);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
.tabbar a {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  height: var(--tab-h); text-decoration: none; font-size: .74rem; font-weight: 600; min-width: 0;
}
.tabbar a span:not(.rozet) { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tabbar .ik { width: 52px; height: 32px; padding: 3px 13px; border-radius: 999px; }
.tabbar a[aria-current="page"] { color: var(--chrome-ink); font-weight: 700; }
.tabbar a[aria-current="page"] .ik { background: var(--accent); color: var(--accent-ink); stroke-width: 2; }
.tabbar .rozet {
  position: absolute; top: 5px; left: calc(50% + 12px); min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 10px; background: var(--bad-dolu); color: var(--dolu-ink); font-size: .72rem; line-height: 20px; text-align: center; font-weight: 700;
  box-shadow: 0 0 0 2px var(--chrome);
}
.rozet-ic { display: inline-block; background: var(--bad-dolu); color: var(--dolu-ink); border-radius: 10px; padding: 0 7px; font-size: .78rem; font-weight: 700; line-height: 20px; margin-left: 6px; }

/* ---------- Kart ve başlıklar */
.kart { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; display: grid; gap: 12px; min-width: 0; box-shadow: var(--golge); }
.kart-bas { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.kart-bas .soluk { font-size: .9rem; }
.etiket { font-size: .8rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.bos { color: var(--muted); text-align: center; padding: 18px 12px; border: 1.5px dashed var(--line-strong); border-radius: var(--r); background: var(--surface); }
.bos a, .bos button { margin-top: 10px; }
.kilit-not { display: flex; gap: 8px; align-items: center; color: var(--muted); font-size: .92rem; }
.kilit-not .ik { width: 18px; height: 18px; }

/* ---------- Düğmeler */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 10px 18px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface-2); color: var(--ink); font-weight: 600; text-decoration: none; text-align: center;
}
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: default; transform: none; }
.btn .ik { width: 22px; height: 22px; }
.btn-ana { background: var(--accent); border-color: var(--accent-line); color: var(--accent-ink); }
.btn-koyu { background: var(--koyu); border-color: var(--koyu); color: var(--koyu-ink); }
.btn-tehlike { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn-tehlike[data-onay] { background: var(--bad-dolu); border-color: var(--bad-dolu); color: var(--dolu-ink); }
/* Listelerdeki "Sil" onaydan önce sakin dursun; ikinci dokunuşta kırmızıya döner */
.liste .btn-tehlike:not([data-onay]), .eksik-satir .btn-tehlike:not([data-onay]) { border-color: var(--line-strong); color: var(--muted); }
.btn-ince { min-height: 42px; padding: 6px 12px; font-size: .9rem; }
/* "Sil" → "Emin misin?" olunca düğme genişleyip parmağın altından kaymasın */
.btn-ince.btn-tehlike { min-width: 7.5rem; }
.btn-tam { width: 100%; }
.btn-dev {
  width: 100%; min-height: 92px; border-radius: 18px; font-family: var(--f-display); font-size: 1.8rem; letter-spacing: .02em;
  flex-direction: column; gap: 2px; line-height: 1.05;
}
.btn-dev .ik { width: 28px; height: 28px; }
.btn-dev small { font-family: var(--f-body); font-size: .92rem; font-weight: 500; letter-spacing: 0; }
.btn-giris { background: var(--ok-dolu); border-color: var(--ok-dolu); color: var(--dolu-ink); }
.btn-cikis { background: var(--cikis); border-color: var(--cikis); color: var(--dolu-ink); }
.btn-whatsapp { background: var(--whatsapp); border-color: var(--whatsapp); color: #fff; }
.btn-satir { display: flex; gap: 8px; flex-wrap: wrap; }
.btn-satir > * { flex: 1 1 auto; }
.ikon-btn { width: 48px; height: 48px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); display: grid; place-items: center; font-size: 1.4rem; flex: none; }
.ikon-btn:disabled { opacity: .35; }

/* ---------- Durum etiketleri */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 700; white-space: nowrap; }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.p-ok { background: var(--ok-bg); color: var(--ok); }
.p-eksik, .p-gec { background: var(--bad-bg); color: var(--bad); }
.p-yakin { background: var(--warn-bg); color: var(--warn); }
.p-bekliyor, .p-yok { background: var(--surface-2); color: var(--muted); }
.p-bilgi { background: var(--info-bg); color: var(--info); }
.p-sorun { background: var(--bad-bg); color: var(--bad); }
.p-istek { background: var(--info-bg); color: var(--info); }

/* ---------- Bugün: saat, hatırlatma, akış */
.ikili { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ozet { text-decoration: none; }
.ozet .buyuk { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.ozet .buyuk.kotu { color: var(--bad); }
.karsilama { gap: 16px; }
.saat-buyuk { font-family: var(--f-display); font-size: 4.2rem; font-weight: 700; line-height: .9; letter-spacing: -.01em; }
.tarih-buyuk { font-family: var(--f-display); font-size: 1.35rem; font-weight: 600; color: var(--muted); }
.hatirlatma {
  display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 14px 16px; border-radius: var(--r);
  background: var(--accent-soft); border: 1.5px solid var(--accent-line); min-height: 60px;
}
.hatirlatma .ik { width: 26px; height: 26px; }
.hatirlatma > span { display: grid; gap: 2px; }
.hatirlatma > span > span { color: var(--muted); font-size: .92rem; }
.akis { list-style: none; margin: 0; padding: 0; display: grid; }
.akis li { position: relative; padding: 0 0 16px 34px; display: grid; gap: 2px; }
.akis li:last-child { padding-bottom: 0; }
.akis-ikon { position: absolute; left: 0; top: 1px; width: 24px; height: 24px; fill: none; stroke: var(--muted); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.akis li:not(:last-child)::after { content: ''; position: absolute; left: 11px; top: 30px; bottom: 4px; width: 2px; background: var(--line); }
.akis li.kotu .akis-ikon { stroke: var(--bad); }
.akis p { font-size: 1.02rem; font-weight: 600; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.akis li.kotu p { color: var(--bad); }
.akis-link { display: grid; gap: 2px; min-height: 44px; text-decoration: none; color: inherit; }

/* ---------- Kapanış notu fişi */
.fis {
  position: relative; background: var(--surface); border-radius: 6px; padding: 18px 16px 14px; display: grid; gap: 10px;
  border: 1px solid var(--line);
  background-image: radial-gradient(circle at 8px 0, var(--bg) 5px, transparent 5.5px);
  background-size: 16px 10px; background-repeat: repeat-x;
}
.fis-yeni { border: 2px solid var(--accent-line); box-shadow: 0 6px 20px -10px rgba(0,0,0,.25); }
.fis-ust { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); }
.fis-metin { font-size: 1.15rem; font-weight: 500; white-space: pre-wrap; overflow-wrap: anywhere; }
.fis-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: .88rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 10px; }
.fis-kucuk .fis-metin { font-size: 1rem; }

/* ---------- Formlar */
.alan { display: grid; gap: 6px; min-width: 0; }
.alan > span { font-weight: 600; font-size: .98rem; }
.alan > span small { font-weight: 400; color: var(--muted); }
input[type=text], input[type=password], input[type=search], input[type=number], input[type=date], input[type=datetime-local], input[type=time], select, textarea {
  width: 100%; min-height: 52px; padding: 12px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong);
  background: var(--surface); color: var(--ink); font-size: 1.05rem;
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: .85; }
textarea { min-height: 96px; resize: vertical; }
input.sayi-dev { font-family: var(--f-display); font-size: 1.8rem; font-weight: 700; text-align: center; font-variant-numeric: tabular-nums; }
input.sayi-dev::placeholder { font-size: 1.1rem; font-weight: 500; }
input:focus, select:focus, textarea:focus { border-color: var(--accent-line); outline: none; box-shadow: 0 0 0 3px var(--accent-soft); }
.form { display: grid; gap: 14px; }
.izgara-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; align-items: end; }
.izgara-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; align-items: end; }
@media (max-width: 380px) { .izgara-3 { grid-template-columns: 1fr 1fr; } }
.secim { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.secim label { position: relative; }
.secim input { position: absolute; opacity: 0; inset: 0; }
.secim span { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px; padding: 8px; text-align: center; border-radius: 12px; border: 1.5px solid var(--line-strong); font-weight: 600; background: var(--surface); }
.secim span small { font-weight: 400; font-size: .8rem; color: var(--muted); }
.secim input:checked + span { border-color: var(--accent-line); background: var(--accent-soft); color: var(--ink); box-shadow: inset 0 0 0 1px var(--accent-line); }
.secim input:focus-visible + span { outline: 3px solid var(--accent-line); }
.uyari { padding: 10px 12px; border-radius: 10px; background: var(--bad-bg); color: var(--bad); font-weight: 600; font-size: .92rem; }
.bilgi { padding: 12px 14px; border-radius: 10px; background: var(--info-bg); color: var(--info); font-size: .9rem; }
.sonuc { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--accent-soft); border: 1.5px solid var(--accent-line); }
.sonuc > span { font-weight: 600; }
.sonuc small { display: block; font-weight: 400; color: var(--muted); font-size: .82rem; }
.sonuc b { font-family: var(--f-display); font-size: 2.1rem; line-height: 1; }
.ekmek-adim { display: grid; gap: 8px; padding: 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); }
details summary { cursor: pointer; padding: 12px 0; font-weight: 600; color: var(--ink); }
details[open] summary { margin-bottom: 4px; }
.arama { position: relative; }
.arama .ik { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.arama input { padding-left: 46px; }
.arama-buyuk input { min-height: 58px; font-size: 1.1rem; border-radius: 16px; }

/* ---------- Fotoğraf alanı ve küçük resimler */
.foto-sec {
  position: relative; display: grid; grid-template-columns: 32px 1fr; gap: 12px; align-items: center;
  min-height: 64px; padding: 10px 14px; border: 1.5px dashed var(--line-strong); border-radius: 14px; background: var(--surface); cursor: pointer;
}
.foto-sec input { position: absolute; inset: 0; opacity: 0; width: 100%; cursor: pointer; }
.foto-sec:focus-within { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.foto-sec svg { width: 28px; height: 28px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.foto-sec small { display: block; color: var(--muted); }
.foto-sec.secildi { border-style: solid; border-color: var(--ok); background: var(--ok-bg); }
.foto-sec.secildi small { color: var(--ok); font-weight: 600; }
.foto-dizi { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 4px; }
.foto-kucuk { width: 76px; height: 76px; padding: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; background: var(--surface-2); flex: none; }
.foto-kucuk img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-kucuk.yok { display: grid; place-items: center; font-size: .75rem; color: var(--muted); }
.foto-kucuk.yok img { display: none; }
.foto-kucuk.yok::after { content: 'Açılamadı'; }
.foto-buyuk { width: 100%; max-height: 72vh; object-fit: contain; border-radius: 12px; background: var(--surface-2); min-height: 120px; }

/* ---------- Gün seçici */
.gun-sec { display: grid; grid-template-columns: auto 1fr auto; gap: 8px; align-items: center; }
.gun-sec .orta { min-height: 52px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink); font-weight: 600; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.15; padding: 4px 8px; }
.gun-sec .orta small { color: var(--muted); font-weight: 500; font-size: .78rem; }

/* ---------- Listeler */
.liste { display: grid; }
.liste > * { padding: 12px 0; border-top: 1px solid var(--line); }
.liste > *:first-child { border-top: 0; padding-top: 0; }
.liste > *:last-child { padding-bottom: 0; }
.satir { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-width: 0; }
.satir > div { min-width: 0; }
.satir .sag { text-align: right; flex: none; display: grid; justify-items: end; gap: 6px; }
.meta { color: var(--muted); font-size: .88rem; }
.deger-buyuk { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; line-height: 1; font-variant-numeric: tabular-nums; }
.kotu-renk { color: var(--bad); }

/* ---------- Tik kutuları (temizlik, eksik listesi) */
.tik {
  display: grid; grid-template-columns: 44px 1fr; align-items: center; gap: 12px; width: 100%; text-align: left; position: relative;
  min-height: 64px; padding: 10px 14px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--ink);
}
.tik .kutu { width: 40px; height: 40px; border-radius: 10px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: var(--surface); }
.tik .kutu svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 3; fill: none; opacity: 0; }
/* :has() bilmeyen eski telefonlarda bütün kural düşmesin diye ayrı yazıldı */
.tik.on { border-color: var(--ok); background: var(--ok-bg); }
.tik.on .kutu, .gizli-kutu:checked + .kutu { background: var(--ok-dolu); border-color: var(--ok-dolu); color: var(--dolu-ink); }
.tik.on .kutu svg, .gizli-kutu:checked + .kutu svg { opacity: 1; }
.tik:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.tik b { display: block; font-size: 1.1rem; overflow-wrap: anywhere; }
.tik small { color: var(--muted); }
.tik-kucuk { min-height: 56px; }
.gizli-kutu { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.gizli-kutu:focus-visible + .kutu { outline: 3px solid var(--accent-line); outline-offset: 2px; }
.eksik-satir { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: start; }
.eksik-satir > .btn { margin-top: 11px; }
/* Eksik satırında sağ sütun: dar ekranda kalemin yazısına yer kalsın; onayda sola doğru genişler, üst kenarı yerinde kalır */
.eksik-satir .btn-ince.btn-tehlike { min-width: 3rem; }

/* ---------- Seçiciler (Market/Vizyon, Bekleyen/Çözülen, 7/30 gün, ekran rengi) */
.seg { display: inline-flex; border: 1.5px solid var(--line-strong); border-radius: 12px; overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 8px 14px; font-weight: 600; min-height: 44px; color: var(--muted); }
.seg button + button { border-left: 1.5px solid var(--line-strong); }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg-tam { display: flex; }
.seg-tam button { flex: 1; min-height: 52px; display: grid; align-content: center; }
.seg-tam small { font-weight: 500; font-size: .8rem; }
.seg-3 button { padding: 8px 6px; min-width: 0; overflow-wrap: anywhere; }

/* ---------- Tablolar */
.tablo-kap { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { border-collapse: collapse; width: 100%; font-variant-numeric: tabular-nums; font-size: .95rem; }
th, td { padding: 8px 6px; text-align: right; border-bottom: 1px solid var(--line); white-space: nowrap; }
th:first-child, td:first-child { text-align: left; }
th { font-size: .78rem; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
td.kotu { color: var(--bad); font-weight: 700; }
tr.toplam td { font-weight: 700; border-bottom: 0; }
.rapor-tablo th { text-transform: none; letter-spacing: 0; font-size: .82rem; color: var(--ink); }
.rapor-tablo th:first-child, .rapor-tablo td:first-child { position: sticky; left: 0; background: var(--surface); z-index: 1; }
.recete-tablo td { font-size: 1.08rem; padding: 10px 6px; }
.mesai-tablo td:first-child { white-space: normal; overflow-wrap: anywhere; }
@media (max-width: 400px) { th, td { padding-left: 3px; padding-right: 3px; } th { letter-spacing: 0; } }

/* ---------- İzinler */
/* 7 gün dar telefonda da sığsın: hafta sonu sütunları ekran dışında kalmasın */
.izin-tablo { table-layout: fixed; }
.izin-tablo th, .izin-tablo td { text-align: center; padding: 4px 2px; border: 0; }
.izin-tablo th:first-child, .izin-tablo td:first-child { text-align: left; padding-right: 8px; width: 72px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; font-weight: 600; position: sticky; left: 0; z-index: 1; background: var(--surface); }
.izin-tablo th small { display: block; font-weight: 500; letter-spacing: 0; text-transform: none; }
.izin-tablo th.bugun { color: var(--accent-ink); background: var(--accent); border-radius: 8px; }
.izin-tablo td.bugun { background: var(--accent-soft); }
.izin-hucre { width: 100%; min-width: 0; padding: 0; height: 46px; border-radius: 10px; border: 1.5px solid var(--line-strong); background: var(--surface); font-size: .82rem; font-weight: 700; color: var(--muted); }
.izin-hucre.on { background: var(--info-bg); border-color: var(--info); color: var(--info); }
.izin-bugun { background: var(--accent-soft); border-radius: 10px; padding: 12px 10px !important; }

/* ---------- Sorunlar */
.sorun-kart { text-decoration: none; display: grid; gap: 8px; }
.sorun-metin { overflow-wrap: anywhere; white-space: pre-wrap; }
.sorun-kart .sorun-metin { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.yanit { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }

/* ---------- Reçeteler */
.recete-satir { text-decoration: none; min-height: 52px; }
.recete-ad { font-size: 2rem; }
.adimlar { margin: 0; padding-left: 1.5em; display: grid; gap: 12px; }
.adimlar li { padding-left: 4px; font-size: 1.1rem; }
.adimlar li::marker { font-family: var(--f-display); font-weight: 700; color: var(--muted); }

/* ---------- Menü: kategoriler ve arama */
.menu-kat { gap: 6px; }
.menu-kat h2 { display: flex; align-items: center; gap: 10px; font-size: 1.35rem; padding-bottom: 6px; border-bottom: 1px solid var(--line); }
.menu-kat h2 .ik { width: 24px; height: 24px; color: var(--muted); }
.menu-liste { display: grid; }
.menu-satir {
  display: grid; grid-template-columns: 40px 1fr auto auto; gap: 12px; align-items: center;
  min-height: 60px; padding: 8px 0; text-decoration: none; color: inherit; border-top: 1px solid var(--line);
}
.menu-satir:first-child { border-top: 0; }
.menu-satir > span:nth-child(2) { display: grid; gap: 1px; min-width: 0; }
.menu-satir b { font-size: 1.05rem; overflow-wrap: anywhere; }
.menu-satir small { color: var(--muted); font-size: .88rem; overflow-wrap: anywhere; }
.menu-ik { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.menu-satir:active { background: var(--surface-2); }

/* ---------- Yönetici rozeti ve kartı */
.yon-rozet { font-size: .66rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 2px 5px; flex: none; }
.yonetici-kart { border-color: var(--accent-line); }

/* ---------- Grafik */
.grafik { width: 100%; height: auto; display: block; }
.grafik .g-izgara { stroke: var(--line); stroke-width: 1; }
.grafik .g-yazi { fill: var(--muted); font-size: 12px; font-family: var(--f-body); font-variant-numeric: tabular-nums; }
.grafik .g-deger { fill: var(--ink); font-size: 12px; font-weight: 700; font-family: var(--f-body); }
.grafik .g-cubuk { fill: var(--line-strong); }
.grafik .g-son { fill: var(--accent); stroke: var(--accent-line); stroke-width: 1; }
.grafik .g-bos { fill: var(--line-strong); }

/* ---------- Perde: "Sen kimsin?", "Ekip girişi" ve alt sayfa */
.perde { position: fixed; inset: 0; z-index: 50; background: var(--perde-golge); display: flex; align-items: flex-end; justify-content: center; }
.sheet {
  width: 100%; max-width: 560px; max-height: 92vh; max-height: 92dvh; overflow-y: auto; background: var(--bg); color: var(--ink);
  border-radius: 22px 22px 0 0; padding: 20px 16px calc(20px + env(safe-area-inset-bottom, 0px)); display: grid; gap: 16px;
}
.sheet-bas { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.kim-perde { background: var(--bg); border-top: 6px solid var(--accent); align-items: stretch; overflow-y: auto; }
.kim-ic { width: 100%; max-width: 560px; margin: 0 auto; padding: calc(env(safe-area-inset-top, 0px) + 28px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px); display: grid; gap: 18px; align-content: start; color: var(--ink); }
.kim-ic h1 { font-size: 2.6rem; }
.kim-ic p { color: var(--muted); }
.kim-ic p b { color: var(--ink); }
.kim-izgara { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.kim-izgara button {
  min-height: 96px; border-radius: 16px; border: 1.5px solid var(--line); background: var(--surface); color: var(--ink); box-shadow: var(--golge);
  display: grid; justify-items: center; align-content: center; gap: 6px; font-weight: 600; font-size: 1.05rem; padding: 10px;
}
.kim-izgara button small { font-size: .78rem; font-weight: 600; color: var(--accent-line); }
.kim-izgara button.secili { border: 2px solid var(--accent-line); background: var(--accent-soft); }
.kim-izgara button.secili small { color: var(--ink); }
.kim-izgara .harf { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.45rem; }

/* ---------- Kişisel giriş: PIN, kurulum kodu, hesap */
.pin-gir { font-family: var(--f-display); font-size: 1.6rem; font-weight: 700; letter-spacing: .35em; font-variant-numeric: tabular-nums; }
.pin-gir::placeholder { letter-spacing: normal; }
.kod-gir { text-transform: uppercase; letter-spacing: .12em; font-weight: 600; font-variant-numeric: tabular-nums; }
.kod-gir::placeholder { text-transform: none; letter-spacing: .05em; }
.btn-link { background: none; border: 0; padding: 6px 2px; min-height: 44px; justify-self: start; color: var(--accent-line); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.kim-ic .bilgi { font-weight: 600; font-size: .95rem; }
.gecis-kart { display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--accent-soft); border: 1.5px solid var(--accent-line); }
.gecis-kart b { font-size: 1.1rem; }
.kim-ic .gecis-kart p { color: var(--ink); }
.gecis-kart .btn { justify-self: start; }
.hesabim { display: grid; grid-template-columns: 52px 1fr; gap: 12px; align-items: center; }
.hesabim b { font-size: 1.2rem; }
.hesabim .harf { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); font-family: var(--f-display); font-size: 1.6rem; }
.pill-dizi { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.pill-dizi .pill { white-space: normal; }
.hesap-satir > div:first-child { min-width: 0; }
.hesap-islemler { display: grid; gap: 8px; }
.kod-buyuk {
  font-family: var(--f-display); font-size: 2.5rem; font-weight: 700; letter-spacing: .08em; line-height: 1.1; text-align: center;
  padding: 16px 10px; border-radius: 14px; border: 2px dashed var(--accent-line); background: var(--accent-soft); color: var(--ink);
  user-select: all; -webkit-user-select: all; overflow-wrap: anywhere;
}
@media (max-width: 359px) { .kod-buyuk { font-size: 2rem; } }
/* İki dokunuşla onaylanan (ör. "Hesabı kapat") düğme, onay sırasında kırmızı çerçeveli */
.btn[data-onay]:not(.btn-tehlike) { border-color: var(--bad); color: var(--bad); box-shadow: inset 0 0 0 1px var(--bad); }

.toast {
  position: fixed; left: 50%; transform: translateX(-50%); z-index: 60;
  bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 14px);
  background: var(--koyu); color: var(--koyu-ink); padding: 12px 18px; border-radius: 12px; font-weight: 600;
  width: max-content; max-width: calc(100% - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.4);
  pointer-events: none; /* bildirim altındaki düğmeye dokunmayı engellemesin */
}
.toast.kotu { background: var(--bad-dolu); color: var(--dolu-ink); }

/* ---------- Satır içi ekleme formları (eksik, ekip listesi, şifre) */
.derece-gir { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }

/* ---------- Sayfa başlığı: büyük harf, altında kısa ikinci renk çizgisi */
.sayfa-bas h1 { text-transform: uppercase; letter-spacing: .03em; }
.sayfa-bas h1::after { content: ''; display: block; width: 44px; height: 4px; margin-top: 6px; border-radius: 2px; background: var(--accent); }
.kart-link { color: var(--accent-line); font-weight: 700; text-decoration: none; font-size: .95rem; min-height: 44px; display: inline-flex; align-items: center; }

/* ---------- Duyurular */
.duyuru {
  display: grid; gap: 8px; padding: 14px 16px; border-radius: var(--r); background: var(--surface);
  border: 1px solid var(--line); border-left: 5px solid var(--accent); box-shadow: var(--golge);
}
.duyuru-yeni { background: var(--accent-soft); border-color: var(--accent-line); border-left-color: var(--accent); }
.duyuru-ust { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.duyuru-ust .ik { color: var(--accent-line); width: 24px; height: 24px; }
.duyuru-ust .etiket { color: var(--accent-line); }
.duyuru-ust .meta { margin-left: auto; }
.duyuru-metin { font-size: 1.12rem; font-weight: 600; white-space: pre-wrap; overflow-wrap: anywhere; }
.duyuru-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.duyuru-yaz { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: var(--r); border: 1.5px dashed var(--line-strong); text-decoration: none; font-weight: 600; background: var(--surface); }
.duyuru-yaz .ik { color: var(--accent-line); }
.duyuru-yaz span:first-of-type { flex: 1; }
.eski-duyuru { display: grid; gap: 10px; }
.eski-duyuru > summary { min-height: 44px; display: flex; align-items: center; color: var(--muted); padding: 4px 0; }
.eski-duyuru[open] > .duyuru + .duyuru { margin-top: 10px; }

/* ---------- Bildirim daveti */
.davet { grid-template-columns: 40px 1fr; align-items: start; border-color: var(--accent-line); }
.davet-ik { width: 36px; height: 36px; color: var(--accent-line); }
.davet b { font-size: 1.1rem; }
.davet .btn-satir { margin-top: 10px; }

/* ---------- Temizlik: fritöz ve ızgara */
.temizlik-liste { display: grid; gap: 10px; }
.temizlik-satir {
  display: grid; grid-template-columns: 40px 1fr auto; grid-template-areas: "ik bilgi durum" "btn btn btn";
  align-items: center; gap: 10px 12px; padding: 12px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: var(--surface);
}
.temizlik-satir.tamam { border-color: var(--ok); background: var(--ok-bg); }
.temizlik-ik { grid-area: ik; width: 36px; height: 36px; color: var(--accent-line); }
.temizlik-satir.tamam .temizlik-ik { color: var(--ok); }
.temizlik-bilgi { grid-area: bilgi; display: grid; gap: 2px; min-width: 0; }
.temizlik-bilgi b { font-size: 1.15rem; }
.temizlik-bilgi small { color: var(--muted); font-size: .86rem; }
.temizlik-satir .pill { grid-area: durum; }
.temizlik-satir > .btn { grid-area: btn; width: 100%; }
.temizlik-satir > .btn-ana { min-height: 52px; font-size: 1.05rem; }
.temizlik-satir > .btn-ana .ik { stroke-width: 3; }
.temizlik-satir > .btn-ince { justify-self: end; width: auto; }

/* ---------- Kartlar arası kısa yol satırı (Yönetici, Ayarlar) */
.ozet-satir { grid-template-columns: 40px 1fr auto auto; align-items: center; gap: 12px; text-decoration: none; min-height: 72px; }
.ozet-satir > .ik { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--accent-soft); color: var(--ink); }
.ozet-satir > span:nth-child(2) { display: grid; gap: 2px; min-width: 0; }
.ozet-satir small { color: var(--muted); font-size: .88rem; }
.kilitli { justify-items: start; }
.kilitli .form { width: 100%; }
.kilit-buyuk { width: 44px; height: 44px; color: var(--accent-line); }
.btn-satir-esit > * { flex: 1 1 0; min-width: 0; }

/* ---------- Sohbet */
.sohbet-duyuru { display: grid; gap: 10px; }
.sohbet-duyuru:empty { display: none; }
.sohbet-akis { display: flex; flex-direction: column; gap: 8px; min-height: 30vh; }
.sohbet-eski { align-self: center; }
.sohbet-gun { display: flex; justify-content: center; margin: 6px 0 2px; }
.sohbet-gun span { font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--surface-2); border-radius: 999px; padding: 4px 12px; }
.sohbet-bos { display: grid; justify-items: center; gap: 6px; text-align: center; color: var(--muted); padding: 40px 16px; }
.sohbet-bos b { color: var(--ink); font-size: 1.1rem; }
.sohbet-bos-ik { width: 48px; height: 48px; color: var(--accent-line); }
.mesaj { display: grid; gap: 3px; max-width: 84%; align-self: flex-start; justify-items: start; }
.mesaj.benim { align-self: flex-end; justify-items: end; }
.mesaj.devam { margin-top: -4px; }
.mesaj-kim { font-size: .8rem; font-weight: 700; padding: 0 4px; }
.mesaj-kim.r0 { color: #b4470a; } .mesaj-kim.r1 { color: #1d5ca3; } .mesaj-kim.r2 { color: #1b7642; }
.mesaj-kim.r3 { color: #8a3fb5; } .mesaj-kim.r4 { color: #a8323f; } .mesaj-kim.r5 { color: #6a5a00; }
:root[data-theme="dark"] .mesaj-kim.r0 { color: #ffae7a; } :root[data-theme="dark"] .mesaj-kim.r1 { color: #93bef4; } :root[data-theme="dark"] .mesaj-kim.r2 { color: #6fd197; }
:root[data-theme="dark"] .mesaj-kim.r3 { color: #d9b3ff; } :root[data-theme="dark"] .mesaj-kim.r4 { color: #ff9aa5; } :root[data-theme="dark"] .mesaj-kim.r5 { color: #e8d36a; }
.balon {
  display: grid; gap: 4px; padding: 8px 12px 6px; border-radius: 18px 18px 18px 6px; background: var(--surface); border: 1px solid var(--line);
  box-shadow: var(--golge); min-width: 64px; max-width: 100%;
}
.benim .balon { border-radius: 18px 18px 6px 18px; background: var(--balon-ben); border-color: var(--balon-ben-line); }
.balon[data-act] { cursor: pointer; }
.balon[aria-expanded="true"] { outline: 2px solid var(--accent-line); outline-offset: 1px; }
.balon p { white-space: pre-wrap; overflow-wrap: anywhere; font-size: 1.02rem; }
.balon .foto-dizi { margin-top: 2px; }
.mesaj-saat { font-size: .72rem; color: var(--muted); justify-self: end; line-height: 1; }
.mesaj-islem { display: flex; gap: 6px; }
.sohbet-yaz {
  position: sticky; z-index: 5; bottom: calc(var(--tab-h) + env(safe-area-inset-bottom, 0px) + 8px);
  display: grid; grid-template-columns: 48px 1fr 52px; gap: 8px; align-items: end;
  padding: 6px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); box-shadow: 0 6px 24px -8px rgba(0, 0, 0, .28);
}
.sohbet-foto { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; color: var(--muted); cursor: pointer; }
.sohbet-foto input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.sohbet-foto:focus-within { outline: 3px solid var(--accent-line); }
.sohbet-foto.secildi { background: var(--accent-soft); color: var(--ink); }
.sohbet-foto.secildi::after {
  content: attr(data-say); position: absolute; top: 2px; right: 2px; min-width: 18px; height: 18px; border-radius: 9px;
  background: var(--accent); color: var(--accent-ink); font-size: .7rem; font-weight: 700; line-height: 18px; text-align: center;
}
#sohbet-metin { min-height: 48px; max-height: 140px; padding: 12px 14px; border-radius: 14px; resize: none; font-size: 1.02rem; line-height: 1.35; }
.sohbet-gonder { width: 52px; min-height: 48px; padding: 0; border-radius: 14px; }
.sohbet-gonder .ik { width: 24px; height: 24px; }

/* ---------- İrsaliye ve borçlar */
.tedarikci-liste { display: grid; }
.tedarikci { display: grid; grid-template-columns: 1fr auto auto; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); text-decoration: none; min-height: 64px; }
.tedarikci:first-child { border-top: 0; }
.tedarikci-ad { display: grid; gap: 2px; min-width: 0; }
.tedarikci-ad b { font-size: 1.08rem; }
.tedarikci-ad small { color: var(--muted); font-size: .84rem; }
.borc { display: grid; justify-items: end; gap: 0; }
.borc .etiket { font-size: .7rem; }
.borc b { font-family: var(--f-display); font-size: 1.3rem; line-height: 1.05; }
.borc.var b { color: var(--accent-line); }
.tedarikci-bas h1 { font-size: 2rem; }
.borc-buyuk { display: grid; gap: 2px; padding: 12px 14px; border-radius: 12px; background: var(--surface-2); }
.borc-buyuk span { font-weight: 600; color: var(--muted); }
.borc-buyuk b { font-family: var(--f-display); font-size: 2.4rem; line-height: 1; }
.borc-buyuk.var { background: var(--accent-soft); }
.ay-sec { display: grid; grid-template-columns: 48px 1fr 48px; align-items: center; gap: 8px; text-align: center; }
.ay-sec b { font-family: var(--f-display); font-size: 1.45rem; }
.ay-ozet { margin: 0; display: grid; }
.ay-ozet > div { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); }
.ay-ozet > div:first-child { border-top: 0; }
.ay-ozet dt { font-weight: 600; }
.ay-ozet dt small { display: block; font-weight: 400; color: var(--muted); font-size: .8rem; }
.ay-ozet dd { margin: 0; font-family: var(--f-display); font-size: 1.3rem; font-weight: 700; white-space: nowrap; }
.ay-ozet .toplam dt, .ay-ozet .toplam dd { font-size: 1.15rem; }
.ay-ozet .toplam dd { font-size: 1.5rem; color: var(--accent-line); }
.urun-liste .satir span { overflow-wrap: anywhere; }
.urun-liste .satir b { white-space: nowrap; }
.hareket-liste { display: grid; gap: 10px; }
.hareket { display: grid; gap: 8px; padding: 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.hareket.odeme { background: var(--surface-2); }
.hareket-ust { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; }
.hareket-ust .ik { color: var(--accent-line); }
.hareket-ust small { display: block; color: var(--muted); font-size: .84rem; }
/* Boşluksuz uzun not ("deterjan,peçete,limon,…") kartı telefon ekranından taşırmasın */
.hareket-ust > div, .hareket .meta { min-width: 0; overflow-wrap: anywhere; }
.hareket .tutar { font-family: var(--f-display); font-size: 1.3rem; white-space: nowrap; }
.kalemler { margin: 0; padding-left: 1.2em; display: grid; gap: 2px; }
.kalemler li { overflow-wrap: anywhere; }
.hareket-alt { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ek-alanlar > summary { color: var(--muted); }
.ek-alanlar > .form { margin-top: 4px; }

/* ---------- Eksik listesi: alt alta, sık dizilmiş kalemler */
.eksik-form textarea { min-height: 96px; }
.eksik-liste { display: grid; gap: 6px; }
.eksik-liste .tik { min-height: 52px; padding: 8px 12px; grid-template-columns: 36px 1fr; }
.eksik-liste .tik .kutu { width: 34px; height: 34px; }
.eksik-liste .tik b { font-size: 1.05rem; }
/* Hazır listeden seçme: ürün + isteğe bağlı miktar */
.katalog-ac > summary { cursor: pointer; padding: 6px 0; }
.katalog { display: grid; gap: 6px; margin-top: 6px; }
.katalog-satir { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; align-items: center; }
.katalog-satir label { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 6px 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: var(--surface); color: var(--ink); cursor: pointer; }
.katalog-satir label input { width: 22px; height: 22px; margin: 0; flex: none; accent-color: var(--ok-dolu); }
.katalog-satir label span { overflow-wrap: anywhere; font-weight: 600; }
.katalog-satir label:has(input:checked) { border-color: var(--ok); background: var(--ok-bg); }
.katalog-satir.listede { grid-template-columns: minmax(0, 1fr); opacity: .55; }
.katalog-satir.listede label { cursor: default; }
.katalog-satir small { margin-left: 6px; color: var(--muted); font-weight: 400; }
.katalog-miktar { min-height: 48px; width: 100%; text-align: center; }

/* ---------- Tedarikçi: son 14 gün satırları */
.gun-satir { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: center; width: 100%; min-height: 52px; background: none; border: 0; border-top: 1px solid var(--line); color: var(--ink); text-align: left; font: inherit; }
.liste > .gun-satir:first-child { border-top: 0; }
.gun-satir b { white-space: nowrap; }
.gun-satir .meta { min-width: 0; }
/* ---------- Telefonda klavye açıkken (app.js html.klavye koyar) alt menü gizlensin, yazı alanı klavyenin üstünde kalsın */
.klavye .tabbar { display: none; }
.klavye body:has(#sohbet-metin:focus) { padding-bottom: 12px; }
.klavye body:has(#sohbet-metin:focus) .sohbet-yaz { bottom: 8px; }

/* ---------- iPhone uygulaması (app.js html.yerel koyar). Üst bant ve alt menünün çentik/ev çubuğu payı yukarıda zaten var;
   burada yalnız yan tutuşta sağ-sol pay ve uzun basınca çıkan bağlantı menüsünün kapatılması */
.yerel .ust, .yerel .durum-satir, .yerel .alt-nav, .yerel main { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.yerel .tabbar { padding-left: env(safe-area-inset-left, 0px); padding-right: env(safe-area-inset-right, 0px); }
.yerel .ust, .yerel .tabbar, .yerel .alt-nav, .yerel .btn { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* ---------- BONO: Salon bölümü (salon/index.html html[data-bolum="salon"] koyar). Düzen aynı; ikinci renk turuncu yerine
   deniz yeşili (koyu temada nane), böylece kimse hangi bölümde olduğunu karıştırmaz. Kontrastlar Mutfak'taki kurala uyar. */
:root { --selam-2: #ffb23e; }
:root[data-theme="dark"] { --selam-2: #e38bff; }
:root[data-bolum="salon"] {
  --accent: #12a594; --accent-ink: #03211d; --accent-soft: #d4f2ed; --accent-line: #0b6e63;
  --balon-ben: #d4f2ed; --balon-ben-line: #8fd9cd; --isik-1: rgba(18, 165, 148, .14); --selam-2: #7ddc9c;
}
:root[data-bolum="salon"][data-theme="dark"] {
  --accent: #4fd6c3; --accent-ink: #03211d; --accent-soft: #163f3a; --accent-line: #8ae8da;
  --balon-ben: #19423d; --balon-ben-line: #2f6f66; --isik-1: rgba(79, 214, 195, .14); --selam-2: #a6f0b6;
}

/* Salon'da dar ekranda "Salon Defteri" yazısı gizlenir: logonun yanında küçük "SALON" etiketi kalır. Kişinin adı sığsın diye
   logo biraz küçülür; çok dar ekranda (<350px) etiket de gizlenir (renk zaten bölümü söyler). Mutfak'ın üst bandı değişmez. */
.bolum-rozet { display: none; }
@media (max-width: 440px) {
  :root[data-bolum="salon"] .marka { gap: 8px; }
  :root[data-bolum="salon"] .marka .logo { height: 28px; }
  :root[data-bolum="salon"] .bolum-rozet {
    display: inline-block; flex: none; font-family: var(--f-display); font-weight: 700; font-size: .78rem; letter-spacing: .06em;
    text-transform: uppercase; background: var(--accent); color: var(--accent-ink); border-radius: 6px; padding: 1px 5px;
  }
}
@media (max-width: 349px) { :root[data-bolum="salon"] .bolum-rozet { display: none; } }

/* ---------- Selamlar: giriş ekranı, "Sen kimsin?" ve Bugün kartının başı */
.selam-bant {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: var(--r); color: var(--accent-ink);
  background: linear-gradient(120deg, var(--accent) 0%, var(--selam-2) 100%); box-shadow: var(--golge);
}
.selam-bant b { display: block; font-family: var(--f-display); font-size: 1.65rem; line-height: 1.05; }
.selam-bant small { display: block; font-size: .95rem; font-weight: 500; opacity: .9; }
.selam-simge { font-size: 2.1rem; line-height: 1; flex: none; }
.kim-ic p.selam-soz { margin: -10px 0 0; color: var(--accent-line); font-weight: 600; }
.selam-satir { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px dashed var(--line); }
.selam-satir > span { font-size: 1.8rem; line-height: 1; flex: none; }
.selam-satir b { display: block; font-family: var(--f-display); font-size: 1.45rem; line-height: 1.1; }
.selam-satir small { display: block; color: var(--muted); font-size: .9rem; }

/* ---------- BONO bölüm seçimi (yalnız kök index.html; html.bono-sec iken açık) */
.bono-secim { display: none; }
html.bono-sec { overflow: hidden; }
html.bono-sec .bono-secim {
  display: grid; position: fixed; inset: 0; z-index: 200; overflow-y: auto; color: #fff; place-items: center;
  background: radial-gradient(520px 380px at 100% 0%, rgba(242, 106, 27, .35), transparent 70%),
    radial-gradient(520px 380px at 0% 100%, rgba(18, 165, 148, .32), transparent 70%), #141414;
  padding: calc(env(safe-area-inset-top, 0px) + 24px) 16px calc(env(safe-area-inset-bottom, 0px) + 24px);
}
.bono-ic { width: 100%; max-width: 520px; display: grid; gap: 18px; text-align: center; }
.bono-logo { height: 64px; color: #fff; }
.bono-logo svg { height: 100%; width: auto; }
.bono-selam { margin: 0; font-family: var(--f-display); font-size: 1.5rem; font-weight: 600; color: #ffd9bf; }
.bono-ic h1 { font-size: 2.8rem; color: #fff; }
.bono-secenek { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 360px) { .bono-secenek { grid-template-columns: 1fr; } }
.bono-kart {
  display: grid; justify-items: center; gap: 6px; min-height: 180px; padding: 18px 12px; border: 0; border-radius: 22px; cursor: pointer;
  font: inherit; color: #1f0e02; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6); transition: transform .12s ease;
}
.bono-kart:active { transform: scale(.97); }
.bono-kart:focus-visible { outline: 4px solid #fff; outline-offset: 3px; }
.bono-kart.mutfak { background: linear-gradient(150deg, #f26a1b 0%, #ffb23e 100%); }
.bono-kart.salon { background: linear-gradient(150deg, #12a594 0%, #7ddc9c 100%); color: #03211d; }
.bono-kart svg { width: 56px; height: 56px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.bono-kart b { font-family: var(--f-display); font-size: 2rem; letter-spacing: .08em; line-height: 1; }
.bono-kart small { font-size: .9rem; font-weight: 600; opacity: .85; }
.bono-alt { margin: 0; color: #c9c2b8; font-size: .9rem; }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }

@media print {
  :root, :root[data-theme="dark"] {
    --bg: #fff; --surface: #fff; --surface-2: #fff; --ink: #000; --muted: #444; --line: #bbb; --line-strong: #888;
    --bad: #b00; --bad-bg: #fff; --ok: #060; --ok-bg: #fff; --warn: #640; --warn-bg: #fff; --info: #036; --info-bg: #fff;
    --accent-soft: #fff; --golge: none; color-scheme: light;
  }
  body { padding: 0; background: #fff; font-size: 11pt; }
  .ust, .tabbar, .alt-nav, .durum, .yazdirma, .toast, .sayfa-bas { display: none !important; }
  /* Grid, sayfa başında tekrarlanan tablo başlığını hesaba katmıyor ve alttaki yazıyı satırın üstüne bindiriyor */
  main, .kart { display: block; }
  main { max-width: none; padding: 0; }
  main > * + * { margin-top: 10px; }
  .kart > * + * { margin-top: 8px; }
  .kart { border: 0; padding: 0; box-shadow: none; break-inside: auto; }
  h2, h3 { break-after: avoid; }
  .tablo-kap { overflow: visible; }
  .rapor-tablo th:first-child, .rapor-tablo td:first-child { position: static; }
  th, td { padding: 3px 4px; font-size: 9pt; }
  h2 { font-size: 14pt; margin-top: 8pt; }
}
