/* Dwall — mimari pafta görünümü. Tasarım: Main / Bahce / Oda / AltMenu mockup'ları. */

:root {
  --mavi: #1C3F8C;
  --mavi-koyu: #16336F;
  --beyaz: #FFFFFF;
  --ikincil: #CFE0FF;
  --sari: #FFE36E;
  --murekkep: #1E2A55;
  --turuncu: #FF9A66;
  --turuncu-acik: #FFC2A0;
  --koyu: #1A1A1A;
  --nane: #9BE7B4;
  --nane-acik: #C8F3D5;
  --sari-acik: #FFF0A8;
  --kagit: #F4F1E8;
  --gri: #4A5270;
  --f-baslik: 'Barlow Condensed', 'Arial Narrow', 'Roboto Condensed', sans-serif;
  --f-govde: 'Barlow', 'Segoe UI', Roboto, Arial, sans-serif;
  --f-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;
  --f-marka: 'Unbounded', 'Barlow', sans-serif;
  --alt-yukseklik: calc(110px + env(safe-area-inset-bottom, 0px));
  --kolon: 520px;
}

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

html {
  scrollbar-gutter: stable;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background-color: var(--mavi);
  background-image:
    linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 60px 60px, 60px 60px, 12px 12px, 12px 12px;
}
html:has(dialog[open]) { overflow: hidden; }

body {
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  color: var(--beyaz);
  font-family: var(--f-govde);
  font-size: 15px;
  line-height: 1.4;
  overflow-x: hidden;
  overflow-x: clip;
  -webkit-tap-highlight-color: transparent;
}

button, a, input, select, textarea, label, summary { touch-action: manipulation; }
button { font: inherit; color: inherit; cursor: pointer; }
button:disabled { cursor: not-allowed; }
a { color: var(--sari); }
/* Yalnız sınıfsız düz metin bağlantıları renk değiştirir; bileşen bağlantıları (yapışkan not,
   kart, düğme…) kendi hover kurallarını taşır ve bu kural onları asla boyamaz. */
a:not([class]):hover { color: #FFF2A8; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }

:focus { outline: none; }
:focus-visible { outline: 3px solid var(--sari); outline-offset: 2px; }
.yapiskan :focus-visible, .kart :focus-visible, .levha :focus-visible, .dugme-sari:focus-visible, .yukle-afis :focus-visible,
.not-kart :focus-visible, .levha-ic :focus-visible, .ray-ekle:focus-visible, .ray-menu :focus-visible, .et-cip:focus-visible, .ray-sekme.etkin:focus-visible, .ray-etiket.etkin:focus-visible { outline-color: var(--murekkep); }

.gizli-metin {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}
.mono { font-family: var(--f-mono); }

#app {
  width: 100%;
  max-width: var(--kolon);
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
}
#gorunum { display: block; min-width: 0; }
#gorunum:focus { outline: none; }

.sayfa {
  padding: calc(20px + env(safe-area-inset-top, 0px)) 20px calc(var(--alt-yukseklik) + 20px);
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}
.sayfa.altmenusuz { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
.sayfa > * { min-width: 0; }

@media (min-width: 900px) {
  #app {
    border-left: 1px dashed rgba(207,224,255,.35);
    border-right: 1px dashed rgba(207,224,255,.35);
  }
}

/* ---------- Başlık bloğu (pafta antedi) ---------- */
.baslik-blok {
  display: flex;
  border: 2px solid var(--beyaz);
  height: 72px;
  flex-shrink: 0;
  min-width: 0;
}
.bb-geri {
  width: 52px;
  flex-shrink: 0;
  border-right: 2px solid var(--beyaz);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beyaz);
}
.bb-geri:hover { background: rgba(255,255,255,.08); color: var(--beyaz); }
.bb-ad {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  padding: 0 12px 0 14px;
}
.bb-baslik {
  display: block;
  min-width: 0;
  margin: 0;
  font-family: var(--f-baslik);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: 3px;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.bb-baslik.b-40 { font-size: 40px; }
.bb-baslik.b-34 { font-size: 34px; letter-spacing: 2px; }
.bb-baslik.b-28 { font-size: 28px; letter-spacing: 1.5px; }
.bb-meta {
  flex-shrink: 0;
  max-width: 48%;
  border-left: 2px solid var(--beyaz);
  padding: 8px 12px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ikincil);
  letter-spacing: .5px;
  min-width: 0;
}
.bb-meta > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb-meta .toz-rozet { align-self: flex-start; }

/* ---------- Yapışkan not ---------- */
.yapiskan {
  position: relative;
  background: var(--sari);
  color: var(--murekkep);
  padding: 16px 16px 10px;
  transform: rotate(-1.2deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}
.bant {
  position: absolute;
  top: -9px;
  left: 42%;
  width: 74px;
  height: 18px;
  background: rgba(255,255,255,.55);
  transform: rotate(3deg);
  pointer-events: none;
}
.yp-etiket { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
.yp-metin { font-size: 16px; font-weight: 600; line-height: 1.35; overflow-wrap: anywhere; }
.yp-bag {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: var(--murekkep);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  background: none;
  border: 0;
  padding: 0;
}
.yp-bag:hover { color: #000; }

/* ---------- Ölçü çizgisi ---------- */
.olcu {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 18px;
  font-family: var(--f-mono);
  font-size: 10px;
  color: var(--ikincil);
  min-width: 0;
}
.olcu-uc { width: 1px; height: 12px; background: var(--ikincil); flex-shrink: 0; }
.olcu-cizgi { flex: 1 1 0; min-width: 8px; height: 1px; background: var(--ikincil); }
.olcu-metin { flex-shrink: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Ev planı (oda karoları) ---------- */
.plan {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 108px;
  grid-auto-flow: row dense;
  gap: 3px;
  background: var(--beyaz);
  border: 3px solid var(--beyaz);
}
.oda-karo {
  --toz: 0;
  position: relative;
  text-align: left;
  text-decoration: none;
  color: var(--beyaz);
  background-color: var(--mavi);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,var(--toz)) 0 1.5px, transparent 1.5px 9px);
  border: 0;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  overflow: hidden;
}
.oda-karo:hover { background-color: var(--mavi-koyu); color: var(--beyaz); }
.oda-karo:focus-visible { outline-offset: -4px; }
.oda-karo.uzun { grid-row: span 2; gap: 10px; }
.genis { grid-column: 1 / -1; }
.ok-ad {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  background: var(--mavi);
  padding: 2px 4px;
  margin: -2px -4px;
  max-width: calc(100% + 8px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-transform: uppercase;
}
.ok-kutu { background: var(--mavi); padding: 2px 4px; margin: 0 -4px; max-width: calc(100% + 8px); }
.ok-satir { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ok-kalin { font-size: 14px; font-weight: 600; line-height: 1.25; }
.toz-rozet {
  background: var(--turuncu);
  color: var(--koyu);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 8px;
  white-space: nowrap;
}
.bb-meta .toz-rozet { font-size: 10px; padding: 2px 5px; }
.sepet-yapiskan {
  background: var(--sari);
  color: var(--murekkep);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 10px;
  transform: rotate(2deg);
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sepet-yapiskan.bos { background: transparent; color: var(--ikincil); border: 1.5px dashed var(--ikincil); transform: none; }
.kapi-yay { position: absolute; right: 0; bottom: 0; pointer-events: none; }
.duvar-takvimi { border: 1.5px solid var(--beyaz); padding: 8px; display: flex; flex-direction: column; gap: 4px; align-self: stretch; background: var(--mavi); }
.duvar-takvimi .dt-etiket { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); }
.duvar-takvimi .dt-deger { font-size: 15px; font-weight: 600; }
.somine { display: flex; align-items: center; gap: 8px; margin-top: auto; background: var(--mavi); min-width: 0; align-self: stretch; }
.somine > svg { flex-shrink: 0; }
.somine > span { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.somine .s-etiket { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); }
.somine .s-deger { font-size: 14px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kanepe { align-self: stretch; border: 1.5px solid var(--ikincil); height: 26px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 9px; color: var(--ikincil); background: var(--mavi); }
.ok-ikonlu { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; background: var(--mavi); }
.ok-ikonlu > svg { flex-shrink: 0; }
.ok-ikonlu .ok-kalin { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.buzdolabi { width: 34px; height: 46px; border: 1.5px solid var(--beyaz); position: relative; flex-shrink: 0; }
.buzdolabi::before { content: ''; position: absolute; top: 14px; left: 0; right: 0; height: 1.5px; background: var(--beyaz); }
.buzdolabi::after { content: ''; position: absolute; top: 4px; right: -6px; width: 14px; height: 12px; background: var(--sari); transform: rotate(8deg); }
.oda-ekle-karo {
  background: var(--mavi);
  border: 0;
  color: var(--ikincil);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  outline: 1.5px dashed rgba(207,224,255,.6);
  outline-offset: -10px;
}
.oda-ekle-karo:hover { color: var(--beyaz); background: var(--mavi-koyu); }
.oda-ekle-karo:focus-visible { outline: 3px solid var(--sari); outline-offset: -4px; }

/* ---------- Bahçe şeridi (ev ekranı) ---------- */
.bahce-serit {
  text-decoration: none;
  color: var(--beyaz);
  border: 2px dashed var(--ikincil);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  height: 88px;
  min-width: 0;
}
.bahce-serit:hover { color: var(--beyaz); background: rgba(255,255,255,.05); }
.bahce-serit > span:first-child { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; }
.bahce-serit svg { flex: 0 1 190px; min-width: 0; width: 190px; max-width: 55%; height: auto; }
.etiket-mono { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.alt-mono { font-family: var(--f-mono); font-size: 10px; }
.renk-turuncu { color: var(--turuncu-acik); }
.renk-nane { color: var(--nane-acik); }
.renk-sari { color: var(--sari-acik); }
.renk-ikincil { color: var(--ikincil); }

/* ---------- Bahçe ---------- */
.lejant { border: 1.5px solid var(--beyaz); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lejant > div { padding: 8px 10px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lejant > div + div { border-left: 1.5px solid var(--beyaz); }
.lejant svg { flex-shrink: 0; }
.lejant span { font-family: var(--f-mono); font-size: 10px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vaziyet {
  position: relative;
  border: 2px dashed var(--ikincil);
  padding: 30px 14px 14px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 300px;
}
.vaziyet-etiket { position: absolute; top: 6px; left: 8px; font-family: var(--f-mono); font-size: 9px; color: var(--ikincil); }
.agac {
  --kaydir: 0px;
  border: 0;
  background: none;
  padding: 2px 0;
  display: flex;
  align-items: center;
  gap: 8px;
  text-align: left;
  max-width: calc(100% - var(--kaydir));
  min-height: 44px;
  min-width: 0;
  align-self: flex-start;
  margin-left: var(--kaydir);
}
.agac.sag { flex-direction: row-reverse; text-align: right; align-self: flex-end; margin-left: 0; margin-right: var(--kaydir); }
.agac svg { flex-shrink: 0; }
.agac-yazi { display: flex; flex-direction: column; gap: 2px; border-left: 1px solid currentColor; padding-left: 8px; min-width: 0; }
.agac.sag .agac-yazi { border-left: 0; border-right: 1px solid currentColor; padding-left: 0; padding-right: 8px; }
.agac-ad { font-size: 14px; font-weight: 600; color: var(--beyaz); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agac-alt { font-family: var(--f-mono); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.agac.buyuyor { color: var(--nane); }
.agac.buyuyor .agac-alt { color: var(--nane-acik); }
.agac.soluyor { color: var(--turuncu); }
.agac.soluyor .agac-alt { color: var(--turuncu-acik); }
.agac.acti { color: var(--sari); }
.agac.acti .agac-alt { color: var(--sari-acik); }
.agac:hover .agac-ad { text-decoration: underline; text-underline-offset: 3px; }

.bolum { display: flex; flex-direction: column; min-width: 0; }
.bolum-baslik {
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  padding-bottom: 8px;
  border-bottom: 1.5px solid var(--beyaz);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 8px;
  min-width: 0;
}
.bolum-baslik > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 52px;
  border-bottom: 1px solid rgba(207,224,255,.4);
  min-width: 0;
}
.satir-metin { flex: 1 1 auto; min-width: 0; font-size: 15px; font-weight: 500; overflow-wrap: anywhere; padding: 6px 0; }
.satir-metin.cizili { text-decoration: line-through; color: var(--ikincil); }
.satir-bag { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; min-height: 44px; color: var(--beyaz); text-decoration: none; background: none; border: 0; padding: 0; text-align: left; font-size: 15px; font-weight: 500; }
.satir-bag > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.satir-bag > span.cizili { text-decoration: line-through; color: var(--ikincil); }
.satir-bag:hover { color: var(--beyaz); text-decoration: underline; text-underline-offset: 3px; }
.satir-alt { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); flex-shrink: 0; text-align: right; max-width: 45%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kutucuk {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  margin-left: -9px;
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.kutucuk > span { width: 26px; height: 26px; border: 2px solid var(--beyaz); display: flex; align-items: center; justify-content: center; }
.kutucuk[aria-checked="true"] > span, .kutucuk[aria-pressed="true"] > span { background: var(--beyaz); }
.kutucuk:hover > span { box-shadow: 0 0 0 3px rgba(255,255,255,.2); }
.ikon-dugme {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  border: 0;
  background: none;
  color: var(--ikincil);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
}
.ikon-dugme:hover { color: var(--beyaz); }
details.gecmis > summary {
  list-style: none;
  cursor: pointer;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 1px;
  border-bottom: 1.5px solid var(--beyaz);
}
details.gecmis > summary::-webkit-details-marker { display: none; }
details.gecmis > summary .ok { transition: transform .2s ease; }
details.gecmis[open] > summary .ok { transform: rotate(90deg); }

/* ---------- Oda ---------- */
.oda-plani {
  --toz: 0;
  position: relative;
  height: 260px;
  border: 3px solid var(--beyaz);
  background-color: var(--mavi);
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,var(--toz)) 0 1.5px, transparent 1.5px 9px);
  overflow: hidden;
}
.raf-ust { position: absolute; top: 0; left: 0; right: 0; height: 40px; border-bottom: 2px solid var(--beyaz); background: var(--mavi); display: flex; }
.raf-ust > span { flex: 1; border-right: 1.5px solid var(--ikincil); }
.raf-ust > span:last-child { border-right: 0; }
.raf-sol { position: absolute; top: 40px; left: 0; bottom: 0; width: 40px; border-right: 2px solid var(--beyaz); background: var(--mavi); display: flex; flex-direction: column; }
.raf-sol > span { flex: 1; border-bottom: 1.5px solid var(--ikincil); }
.raf-sol > span:last-child { border-bottom: 0; }
.raf-etiket { position: absolute; top: 12px; right: 10px; font-family: var(--f-mono); font-size: 9px; color: var(--ikincil); }
.plan-not {
  position: absolute;
  background: var(--sari);
  color: var(--murekkep);
  font-size: 12px;
  font-weight: 600;
  padding: 0 10px;
  height: 44px;
  line-height: 44px;
  --don: 0deg;
  transform: rotate(var(--don));
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
  transition: transform 150ms ease, box-shadow 150ms ease;
  border: 0;
  max-width: calc(50% - 40px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: left;
  text-decoration: none;
}
.plan-not.p1 { top: 52px; left: 56px; --don: -4deg; }
.plan-not.p2 { top: 56px; right: 16px; --don: 2deg; }
.plan-not.p3 { top: 118px; left: 66px; --don: 3deg; }
.plan-not.p4 { top: 180px; left: 54px; --don: -2deg; }
/* Not kaldırılır: dönüş korunur (değişkenden), gölge uzar, mürekkep çerçeve belirir; yazı mürekkep kalır. */
.plan-not:hover, .plan-not:focus-visible {
  color: var(--murekkep);
  transform: translateY(-2px) rotate(var(--don));
  box-shadow: 0 7px 0 rgba(0,0,0,.25), inset 0 0 0 2px var(--murekkep);
}
.plan-not:active { color: var(--murekkep); transform: translateY(1px) rotate(var(--don)); box-shadow: 0 2px 0 rgba(0,0,0,.25), inset 0 0 0 2px var(--murekkep); }
.plan-not .mik-ikon { vertical-align: -2px; }
.plan-bos { position: absolute; left: 56px; right: 16px; top: 70px; color: var(--ikincil); font-family: var(--f-mono); font-size: 11px; line-height: 1.5; background: var(--mavi); padding: 6px 8px; }
.gecit-yol { position: absolute; left: 50%; top: 90px; width: calc(50% - 6px); height: 130px; pointer-events: none; }
.gecit-etiket {
  position: absolute;
  right: 12px;
  bottom: 34px;
  max-width: calc(100% - 70px);
  background: var(--mavi);
  border: 1.5px solid var(--sari);
  color: var(--sari);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  padding: 4px 7px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-decoration: none;
  min-height: 44px;
  display: flex;
  align-items: center;
}
.gecit-etiket:hover { color: var(--beyaz); border-color: var(--beyaz); }
.plan-kapi { position: absolute; left: 60px; bottom: -3px; pointer-events: none; }

.dugme {
  min-height: 44px;
  border: 2px solid var(--beyaz);
  background: transparent;
  color: var(--beyaz);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .5px;
  text-decoration: none;
  text-align: center;
  min-width: 0;
}
.dugme:hover { background: rgba(255,255,255,.1); color: var(--beyaz); }
.dugme:disabled { opacity: .55; }
.dugme-sari {
  min-height: 54px;
  border: 2px solid var(--murekkep);
  background: var(--sari);
  color: var(--murekkep);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 0 16px;
  box-shadow: 0 5px 0 rgba(0,0,0,.25);
  text-decoration: none;
  min-width: 0;
  width: 100%;
}
.dugme-sari:hover { background: #FFEA8A; color: var(--murekkep); }
.dugme-sari:active { transform: translateY(2px); box-shadow: 0 3px 0 rgba(0,0,0,.25); }
.dugme-sari:disabled { opacity: .6; transform: none; }
.dugme-sari .ds-ana { font-family: var(--f-baslik); font-size: 22px; font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.dugme-sari .ds-yan { font-family: var(--f-mono); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.dugme-sari.ortala { justify-content: center; }
.dugme-tehlike { border-color: var(--turuncu); color: var(--turuncu-acik); }
.dugme-tehlike:hover { background: rgba(255,154,102,.12); color: var(--turuncu-acik); }
.dugme-satiri { display: flex; flex-wrap: wrap; gap: 10px; }
.dugme-satiri > .dugme { flex: 1 1 140px; }

.kart-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-flow: row dense; gap: 12px; padding: 4px 2px; }
.kart {
  --don: 0deg;
  transform: rotate(var(--don));
  box-shadow: 0 4px 0 rgba(0,0,0,.2);
  transition: transform 150ms ease, box-shadow 150ms ease;
  background: var(--kagit);
  color: var(--murekkep);
  padding: 10px 12px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  border: 0;
  border-top: 4px solid var(--sari);
  text-align: left;
  text-decoration: none;
  min-width: 0;
  min-height: 96px;
}
a.kart:hover, button.kart:hover, a.kart:focus-visible, button.kart:focus-visible {
  color: var(--murekkep);
  transform: translateY(-2px) rotate(var(--don));
  box-shadow: 0 7px 0 rgba(0,0,0,.25), inset 0 0 0 2px var(--murekkep);
}
a.kart:active, button.kart:active { color: var(--murekkep); transform: translateY(1px) rotate(var(--don)); box-shadow: 0 2px 0 rgba(0,0,0,.25), inset 0 0 0 2px var(--murekkep); }
.kart.e1 { --don: -1deg; }
.kart.e2 { --don: 1.2deg; }
.kart.ust-turuncu { border-top-color: var(--turuncu); }
.kart.ust-nane { border-top-color: var(--nane); }
.kart-meta { font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--gri); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kart-baslik { font-size: 15px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.kart-ozet { font-size: 12px; color: var(--gri); line-height: 1.35; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

.gecit {
  border: 1.5px dashed var(--sari);
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  color: var(--beyaz);
  text-decoration: none;
  min-width: 0;
}
a.gecit:hover { background: rgba(255,227,110,.08); color: var(--beyaz); }
.gecit-baslik { font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--sari); letter-spacing: 1px; }
.gecit-metin { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }
.gecit-iz { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); overflow-wrap: anywhere; }

/* Not ekranı */
.not-kart {
  background: var(--kagit);
  color: var(--murekkep);
  border-top: 4px solid var(--sari);
  padding: 14px 16px 18px;
  transform: rotate(-.6deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}
.not-kart h2 { font-family: var(--f-baslik); font-size: 28px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.not-icerik { font-size: 16px; line-height: 1.55; white-space: pre-wrap; overflow-wrap: anywhere; }
.not-icerik.bos { color: var(--gri); font-style: italic; }

/* Boş durum ve iskelet */
.bos {
  border: 1.5px dashed rgba(207,224,255,.7);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: var(--ikincil);
  min-width: 0;
}
.bos .bos-baslik { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--beyaz); }
.bos .bos-metin { font-size: 14px; line-height: 1.45; }
.vaziyet .bos { border: 0; padding: 40px 10px; align-items: center; text-align: center; margin: auto 0; }
.iskelet { background: rgba(255,255,255,.06); border: 1.5px dashed rgba(207,224,255,.3); }
.iskelet-yapiskan { height: 118px; }
.iskelet-plan { height: 333px; }
.iskelet-blok .bb-ad { opacity: .9; }

/* ---------- Takvim ---------- */
.ay-secici { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ay-secici .ay-adi { flex: 1 1 auto; text-align: center; font-family: var(--f-baslik); font-size: 24px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ay-secici .ikon-dugme { border: 2px solid var(--beyaz); color: var(--beyaz); }
.ay-secici .ikon-dugme:hover { background: rgba(255,255,255,.1); }
.takvim-izgara { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 2px; background: var(--beyaz); border: 2px solid var(--beyaz); }
.tk-gunadi { background: var(--mavi); font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--ikincil); text-align: center; padding: 6px 0; }
.tk-gun {
  background: var(--mavi);
  border: 0;
  height: 50px;
  min-width: 0;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  color: var(--beyaz);
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 600;
}
.tk-gun:hover { background: var(--mavi-koyu); }
.tk-gun.disarida { color: rgba(207,224,255,.55); }
.tk-gun.bugun { box-shadow: inset 0 0 0 2px var(--sari); }
.tk-gun[aria-pressed="true"] { background: var(--beyaz); color: var(--mavi); }
.tk-gun:focus-visible { outline-offset: -3px; }
.tk-noktalar { display: flex; gap: 3px; height: 8px; align-items: center; }
.tk-nokta { width: 6px; height: 6px; background: var(--nane); }
.tk-nokta.soluyor { background: var(--turuncu); }
.tk-nokta.acti { background: var(--sari); }
.tk-gun[aria-pressed="true"] .tk-nokta { outline: 1px solid var(--mavi); }
.ajanda-gun { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--sari); padding-top: 14px; padding-bottom: 6px; border-bottom: 1.5px solid var(--beyaz); }
.renk-isaret { width: 10px; height: 10px; flex-shrink: 0; background: var(--nane); }
.renk-isaret.soluyor { background: var(--turuncu); }
.renk-isaret.acti { background: var(--sari); }

/* ---------- Tur ---------- */
.adimlar { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1.5px solid var(--beyaz); }
.adimlar > span { padding: 8px 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; text-align: center; color: var(--ikincil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.adimlar > span + span { border-left: 1.5px solid var(--beyaz); }
.adimlar > span.etkin { background: var(--beyaz); color: var(--mavi); }
.adimlar > span.bitti { color: var(--nane-acik); }
.oda-secim { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.oda-secim .dugme { justify-content: flex-start; text-align: left; }
.oda-secim .dugme > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.ilerleme { font-family: var(--f-mono); font-size: 11px; color: var(--ikincil); }

/* ---------- Ben ---------- */
.kunye { display: grid; grid-template-columns: auto minmax(0, 1fr); border: 2px solid var(--beyaz); }
.kunye > dt, .kunye > dd { margin: 0; padding: 10px 12px; border-bottom: 1.5px solid rgba(255,255,255,.6); min-width: 0; }
.kunye > dt { font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--ikincil); border-right: 1.5px solid rgba(255,255,255,.6); display: flex; align-items: center; letter-spacing: .5px; }
.kunye > dd { font-size: 15px; font-weight: 600; overflow-wrap: anywhere; }
.kunye > dt:nth-last-of-type(1), .kunye > dd:last-of-type { border-bottom: 0; }
.istatistik { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1.5px solid var(--beyaz); }
.istatistik > div { padding: 10px 6px; text-align: center; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.istatistik > div + div { border-left: 1.5px solid var(--beyaz); }
.istatistik b { font-family: var(--f-baslik); font-size: 26px; line-height: 1; }
.istatistik span { font-family: var(--f-mono); font-size: 9px; color: var(--ikincil); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dipnot { display: flex; justify-content: center; padding-top: 18px; }

/* ---------- Giriş / Kayıt ---------- */
.sekme-cift { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border: 2px solid var(--beyaz); }
.sekme-cift button { min-height: 48px; border: 0; background: transparent; font-family: var(--f-baslik); font-size: 18px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sekme-cift button[aria-pressed="true"] { background: var(--beyaz); color: var(--mavi); }
.form { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.alan { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.alan > span, .alan > legend { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .5px; color: var(--ikincil); padding: 0; }
.alan input, .alan textarea, .alan select {
  width: 100%;
  min-width: 0;
  min-height: 48px;
  border: 2px solid var(--beyaz);
  background: rgba(10,28,70,.35);
  color: var(--beyaz);
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border-radius: 0;
}
.alan input::placeholder, .alan textarea::placeholder { color: rgba(207,224,255,.75); }
.alan input:focus-visible, .alan textarea:focus-visible, .alan select:focus-visible { outline: 3px solid var(--sari); outline-offset: 0; }
.form-hata { min-height: 20px; font-size: 14px; font-weight: 600; color: var(--turuncu-acik); overflow-wrap: anywhere; }
.tanitim {
  background: var(--kagit);
  color: var(--murekkep);
  padding: 14px 16px;
  transform: rotate(1deg);
  border-top: 4px solid var(--nane);
  font-size: 15px;
  line-height: 1.45;
}

/* ---------- Alt menü (AltMenu.dc.html) ---------- */
.altmenu {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  width: 100%;
  max-width: var(--kolon);
  height: var(--alt-yukseklik);
  z-index: 40;
  pointer-events: none;
  font-family: var(--f-baslik);
  color: var(--beyaz);
}
.am-cubuk {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: calc(14px + env(safe-area-inset-bottom, 0px));
  height: 72px;
  background-color: var(--mavi);
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 2px solid var(--beyaz);
  border-radius: 4px;
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
  overflow: hidden;
  pointer-events: auto;
}
.am-gosterge {
  --i: 0;
  position: absolute;
  top: 6px;
  height: 56px;
  left: calc(var(--i) * 20% + 6px);
  width: calc(20% - 12px);
  background: var(--beyaz);
  border-radius: 2px;
  transition: left 260ms cubic-bezier(.2,.8,.2,1), opacity 160ms ease;
}
.am-gosterge.yok { opacity: 0; }
.altmenu.acik .am-gosterge { opacity: 0; }
.am-satir {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  transition: opacity 160ms ease, visibility 0s linear 160ms;
}
.am-eylemler { opacity: 0; visibility: hidden; }
.altmenu.acik .am-sekmeler { opacity: 0; visibility: hidden; }
.altmenu.acik .am-eylemler { opacity: 1; visibility: visible; transition: opacity 160ms ease, visibility 0s; }
.am-sekme {
  border: 0;
  background: none;
  text-decoration: none;
  color: var(--beyaz);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  font-family: var(--f-baslik);
  /* Yedek yazı tipinde (Arial Narrow / Roboto) de "TAKVİM" beyaz bloğa sığsın. */
  font-size: clamp(11px, 3.4vw, 14px);
  font-weight: 600;
  letter-spacing: .5px;
  text-transform: uppercase;
  transform: scale(1);
  transition: transform 120ms ease, color 200ms ease;
  min-width: 0;
  padding: 0;
  position: relative;
  z-index: 1;
}
.am-sekme > span:last-child {
  display: block;
  max-width: calc(100% - 12px); /* = etkin beyaz bloğun genişliği */
  overflow: hidden;
  white-space: nowrap;
  text-overflow: clip;
  line-height: 1.1;
}
.am-sekme:hover { color: var(--beyaz); }
.am-sekme.etkin { color: var(--mavi); font-weight: 700; }
.am-sekme.etkin:hover { color: var(--mavi); }
.am-sekme.basili { transform: scale(.9); }
.am-sekme:focus-visible { outline-offset: -4px; }
.am-sekme.etkin:focus-visible { outline-color: var(--murekkep); }
.am-ikon-sar { position: relative; display: flex; }
.am-rozet {
  position: absolute;
  top: -6px;
  right: -11px;
  min-width: 18px;
  height: 18px;
  border-radius: 2px;
  background: var(--turuncu);
  color: var(--koyu);
  font-family: var(--f-baslik);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}
.am-arti {
  position: absolute;
  left: 50%;
  top: 4px;
  width: 62px;
  height: 62px;
  margin-left: -31px;
  border: 0;
  border-radius: 0;
  background: var(--sari);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
  transform: scale(1) rotate(-3deg);
  transition: transform 140ms ease;
  pointer-events: auto;
  z-index: 2;
}
.am-arti-bant { position: absolute; top: -8px; left: 50%; width: 36px; height: 14px; margin-left: -18px; background: rgba(255,255,255,.55); transform: rotate(4deg); }
.am-arti svg { transform: rotate(0deg); transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
.altmenu.acik .am-arti { transform: scale(1) rotate(0deg); }
.altmenu.acik .am-arti svg { transform: rotate(45deg); }
.am-arti.basili { transform: scale(.92) rotate(-3deg); }
.altmenu.acik .am-arti.basili { transform: scale(.92) rotate(0deg); }
.am-arti:focus-visible { outline: 3px solid var(--beyaz); outline-offset: 3px; }

/* ---------- Alt levha (dialog) ---------- */
dialog.levha {
  margin: auto auto 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: var(--kolon);
  max-height: 92vh;
  max-height: 92dvh;
  background: var(--kagit);
  color: var(--murekkep);
  border-top: 5px solid var(--sari);
  box-shadow: 0 -8px 0 rgba(0,0,0,.18);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
dialog.levha:not([open]) { display: none; }
dialog.levha.orta { margin: auto; max-width: min(440px, calc(100% - 32px)); border: 2px solid var(--murekkep); border-top: 5px solid var(--turuncu); }
dialog.levha::backdrop { background: rgba(8, 20, 52, .62); }
.levha-bas { display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px; border-bottom: 2px solid var(--murekkep); flex-shrink: 0; min-width: 0; }
.levha-bas h2 { flex: 1 1 auto; min-width: 0; font-family: var(--f-baslik); font-size: 24px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.levha-bas .ikon-dugme { color: var(--murekkep); }
.levha-govde { padding: 16px 16px calc(18px + env(safe-area-inset-bottom, 0px)); overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.levha .alan > span, .levha-ic .alan > span, .not-kart .alan > span, .levha .alan > legend, .levha-ic .alan > legend, .not-kart .alan > legend { color: var(--gri); }
.levha .alan input, .levha-ic .alan input, .not-kart .alan input, .levha .alan textarea, .levha-ic .alan textarea, .not-kart .alan textarea, .levha .alan select, .levha-ic .alan select, .not-kart .alan select { border-color: var(--murekkep); background: #FFFFFF; color: var(--murekkep); }
.levha .alan input::placeholder, .levha-ic .alan input::placeholder, .not-kart .alan input::placeholder, .levha .alan textarea::placeholder, .levha-ic .alan textarea::placeholder, .not-kart .alan textarea::placeholder { color: #6A7190; }
.levha .alan input:focus-visible, .levha-ic .alan input:focus-visible, .not-kart .alan input:focus-visible, .levha .alan textarea:focus-visible, .levha-ic .alan textarea:focus-visible, .not-kart .alan textarea:focus-visible, .levha .alan select:focus-visible, .levha-ic .alan select:focus-visible, .not-kart .alan select:focus-visible { outline-color: var(--murekkep); }
.levha .alan textarea, .levha-ic .alan textarea, .not-kart .alan textarea { min-height: 140px; resize: vertical; line-height: 1.5; }
.levha .dugme, .levha-ic .dugme, .not-kart .dugme { border-color: var(--murekkep); color: var(--murekkep); }
.levha .dugme:hover, .levha-ic .dugme:hover, .not-kart .dugme:hover { background: rgba(30,42,85,.08); color: var(--murekkep); }
.levha .dugme-tehlike, .levha-ic .dugme-tehlike, .not-kart .dugme-tehlike { border-color: #B4441A; color: #9A3410; }
.levha .form-hata, .levha-ic .form-hata, .not-kart .form-hata { color: #9A3410; }
.levha .satir, .levha-ic .satir, .not-kart .satir { border-bottom-color: rgba(30,42,85,.25); }
.levha .satir-metin.cizili, .levha-ic .satir-metin.cizili, .not-kart .satir-metin.cizili { color: var(--gri); }
.levha .kutucuk > span, .levha-ic .kutucuk > span, .not-kart .kutucuk > span { border-color: var(--murekkep); }
.levha .kutucuk[aria-checked="true"] > span, .levha-ic .kutucuk[aria-checked="true"] > span, .not-kart .kutucuk[aria-checked="true"] > span { background: var(--murekkep); }
.levha .kutucuk[aria-checked="true"] svg, .levha-ic .kutucuk[aria-checked="true"] svg, .not-kart .kutucuk[aria-checked="true"] svg { stroke: var(--kagit); }
.levha .ikon-dugme, .levha-ic .ikon-dugme, .not-kart .ikon-dugme { color: var(--gri); }
.levha .ikon-dugme:hover, .levha-ic .ikon-dugme:hover, .not-kart .ikon-dugme:hover { color: var(--murekkep); }
.levha-ipucu { font-family: var(--f-mono); font-size: 11px; color: var(--gri); overflow-wrap: anywhere; }
.levha-metin { font-size: 15px; line-height: 1.5; overflow-wrap: anywhere; }
.levha .oda-secim .dugme[aria-current="true"], .levha-ic .oda-secim .dugme[aria-current="true"], .not-kart .oda-secim .dugme[aria-current="true"] { background: var(--murekkep); color: var(--kagit); }
.iki-kolon { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.ses-durum { min-height: 22px; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--gri); }
@keyframes nabiz { 50% { transform: scale(.55); opacity: .5; } }
.ios-adim { display: flex; gap: 10px; align-items: flex-start; }
.ios-adim b { font-family: var(--f-mono); font-size: 12px; background: var(--murekkep); color: var(--kagit); min-width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }

/* ---------- Sabit katmanlar ---------- */
.durum-cipi {
  position: fixed;
  top: calc(6px + env(safe-area-inset-top, 0px));
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  background: var(--murekkep);
  color: var(--sari);
  border: 1.5px solid var(--sari);
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  padding: 3px 8px;
  white-space: nowrap;
  pointer-events: none;
}
.bildirim {
  position: fixed;
  left: 50%;
  bottom: calc(var(--alt-yukseklik) + 12px);
  transform: translateX(-50%);
  z-index: 70;
  max-width: min(480px, calc(100% - 32px));
  width: max-content;
  background: var(--kagit);
  color: var(--murekkep);
  border: 2px solid var(--murekkep);
  box-shadow: 0 5px 0 rgba(0,0,0,.25);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
  pointer-events: none;
}
.bildirim.hata { border-color: #9A3410; border-top: 4px solid var(--turuncu); }
.yukle-afis {
  position: fixed;
  left: 50%;
  bottom: calc(var(--alt-yukseklik) + 14px);
  width: min(440px, calc(100% - 40px));
  transform: translateX(-50%) rotate(-1.2deg);
  z-index: 50;
  background: var(--sari);
  color: var(--murekkep);
  padding: 16px 14px 10px;
  box-shadow: 0 6px 0 rgba(0,0,0,.25);
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.yukle-afis.altmenusuz { bottom: calc(20px + env(safe-area-inset-bottom, 0px)); }
.yukle-afis .ya-metin { font-size: 15px; font-weight: 600; line-height: 1.35; }
.yukle-afis .ya-dugmeler { display: flex; gap: 8px; justify-content: flex-end; }
.yukle-afis .dugme { border-color: var(--murekkep); color: var(--murekkep); }
.yukle-afis .dugme:hover { background: rgba(30,42,85,.08); color: var(--murekkep); }
.yukle-afis .dugme.dolu { background: var(--murekkep); color: var(--sari); }
.yukle-afis .dugme.dolu:hover { background: #2A3870; color: var(--sari); }
.noscript { padding: 40px 20px; font-size: 16px; text-align: center; }

/* ---------- Marka imzası: </> code by dagasan ---------- */
.imza {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 6px 12px 6px 6px;
  text-decoration: none;
  color: var(--beyaz);
  border-radius: 12px;
  transition: transform 220ms cubic-bezier(.2,.8,.2,1), background-color 220ms ease;
}
.imza:hover, .imza:focus-visible { color: var(--beyaz); transform: translateY(-2px); background: rgba(255,255,255,.06); }
.imza-ikon {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: #0D1530;
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 4px 0 rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--f-marka);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -1px;
  overflow: hidden;
  transition: box-shadow 220ms ease;
}
.imza:hover .imza-ikon { box-shadow: 0 6px 0 rgba(0,0,0,.3), 0 0 0 2px rgba(255,227,110,.35); }
.imza-ikon .ik-sol, .imza-ikon .ik-sag { display: inline-block; color: var(--sari); animation: imza-sol 700ms cubic-bezier(.2,.8,.2,1) both; }
.imza-ikon .ik-sag { animation-name: imza-sag; }
.imza-ikon .ik-egik { display: inline-block; color: var(--beyaz); margin: 0 1px; animation: imza-egik 900ms cubic-bezier(.2,.8,.2,1) both; }
.imza-metin { display: flex; flex-direction: column; line-height: 1; gap: 3px; }
.imza-ust { font-family: var(--f-mono); font-size: 10px; font-weight: 500; letter-spacing: 2px; color: var(--ikincil); text-transform: lowercase; }
.imza-ad {
  font-family: var(--f-marka);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.3px;
  display: inline-flex;
  align-items: flex-end;
  background: linear-gradient(90deg, #FFFFFF 0%, #FFFFFF 40%, #FFE36E 50%, #FFFFFF 60%, #FFFFFF 100%);
  background-size: 250% 100%;
  background-position: 100% 0;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: background-position 900ms ease;
}
.imza:hover .imza-ad, .imza:focus-visible .imza-ad { background-position: 0 0; }
.imza-imlec { display: inline-block; width: 9px; height: 3px; margin-left: 3px; margin-bottom: 3px; background: var(--sari); animation: imza-imlec 1.05s steps(1) infinite; }
@keyframes imza-sol { from { transform: translateX(9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes imza-sag { from { transform: translateX(-9px); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes imza-egik { 0%, 30% { transform: translateY(-12px) rotate(20deg); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes imza-imlec { 50% { opacity: 0; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 1ms !important; animation-iteration-count: 1 !important; transition-duration: 1ms !important; scroll-behavior: auto !important; }
  .plan-not, .kart, .kayit-dugme { transition: none !important; }
  .imza-imlec { animation: none; }
  .imza:hover, .imza:focus-visible { transform: none; }
}

@media (max-width: 380px) {
  .bb-baslik { font-size: 38px; }
  .bb-baslik.b-40 { font-size: 34px; }
  .bb-baslik.b-34 { font-size: 30px; }
  .bb-baslik.b-28 { font-size: 25px; }
}
@media (max-width: 359px) {
  .sayfa { padding-left: 14px; padding-right: 14px; }
  /* v1.4: 320 px'te de gün hücreleri ≥ 44 px: ızgara sayfa kenarına taşar (tam genişlik), aralık 1 px. */
  .takvim-izgara { margin-left: -14px; margin-right: -14px; gap: 1px; border-left-width: 0; border-right-width: 0; }
  .bb-meta { padding: 6px 8px; font-size: 9px; letter-spacing: 0; }
  .am-sekme { letter-spacing: .3px; }
}

/* =================== v1.1 =================== */

/* ---------- Hatırlatma ---------- */
.hatirlat-cip {
  align-self: flex-start;
  max-width: 100%;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .3px;
  background: var(--murekkep);
  color: var(--sari);
  padding: 3px 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
fieldset.hatirlat-alan { border: 0; margin: 0; padding: 0; min-width: 0; gap: 10px; }
.hizli-zaman { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.hizli-zaman .dugme { padding: 0 8px; }
.hatirlat-durum { min-height: 32px; }
@media (min-width: 540px) { .hizli-zaman { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Duyuru ve bildirim istemi (ev ekranı) ---------- */
.yapiskan.duyuru { transform: rotate(.9deg); padding-right: 52px; }
.duyuru-metin { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.yp-kapat { position: absolute; top: 2px; right: 2px; color: var(--murekkep); }
.yp-kapat:hover { color: #000; }
.yapiskan.istem { background: var(--nane-acik); transform: rotate(-.6deg); }
.istem-dugmeler { display: flex; flex-wrap: wrap; column-gap: 22px; }
.yp-bag:disabled { opacity: .55; }
.yp-alt { font-size: 13px; line-height: 1.4; overflow-wrap: anywhere; }

/* ---------- Ben · Bildirimler ---------- */
.bildirim-bolum { gap: 12px; }
.bildirim-durum { display: flex; align-items: flex-start; gap: 10px; min-height: 44px; font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; padding-top: 2px; }
.bd-isaret { width: 10px; height: 10px; flex-shrink: 0; margin-top: 5px; background: var(--ikincil); }
.bildirim-durum.acik .bd-isaret { background: var(--nane); }
.bildirim-durum.uyari .bd-isaret { background: var(--turuncu); }
.anahtar-liste { display: flex; flex-direction: column; border-top: 1.5px solid var(--beyaz); }
.anahtar {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 62px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(207,224,255,.4);
  cursor: pointer;
  min-width: 0;
}
.anahtar input {
  position: absolute; width: 1px; height: 1px; margin: 0; padding: 0; border: 0;
  opacity: 0; clip-path: inset(50%); pointer-events: none;
}
.anahtar-metin { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.anahtar-baslik { font-size: 15px; font-weight: 600; }
.anahtar-aciklama { font-size: 12px; color: var(--ikincil); line-height: 1.35; overflow-wrap: anywhere; }
.anahtar-yol {
  position: relative;
  flex-shrink: 0;
  width: 54px;
  height: 30px;
  border: 2px solid var(--beyaz);
  background: transparent;
  transition: background-color 160ms ease, border-color 160ms ease;
}
.anahtar-yol::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  background: var(--ikincil);
  transition: transform 180ms cubic-bezier(.2,.8,.2,1), background-color 160ms ease;
}
.anahtar input:checked + .anahtar-yol { background: var(--sari); border-color: var(--sari); }
.anahtar input:checked + .anahtar-yol::after { transform: translateX(24px); background: var(--murekkep); }
.anahtar input:focus-visible + .anahtar-yol { outline: 3px solid var(--sari); outline-offset: 3px; }
.anahtar input:disabled + .anahtar-yol { opacity: .5; }
.anahtar:hover .anahtar-yol { box-shadow: 0 0 0 3px rgba(255,255,255,.15); }
.saat-izgara.soluk { opacity: .6; }
.saat-izgara .alan input { min-height: 48px; }
.yonetim-giris { justify-content: space-between; }

/* ---------- Yönetim paneli ---------- */
/* Masaüstünde panel 520px kolondan taşarak ortalanır. #app'in kendisi genişletilmez:
   böylece yükleme iskeleti → panel geçişinde yerleşim kayması (CLS) olmaz. */
@media (min-width: 600px) {
  .sayfa.yonetim {
    width: min(1100px, calc(100vw - 48px));
    margin-left: calc((100% - min(1100px, calc(100vw - 48px))) / 2);
  }
}
#app:has(.sayfa.yonetim) { border-color: transparent; }
.yonetim-sekmeler { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 2px solid var(--beyaz); }
.yonetim-sekmeler a {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 6px;
  text-align: center;
  color: var(--beyaz);
  text-decoration: none;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .5px;
  min-width: 0;
  overflow-wrap: anywhere;
}
.yonetim-sekmeler a + a { border-left: 2px solid var(--beyaz); }
.yonetim-sekmeler a:hover { background: rgba(255,255,255,.08); color: var(--beyaz); }
.yonetim-sekmeler a[aria-current="page"] { background: var(--beyaz); color: var(--mavi); }
.yonetim-sekmeler a:focus-visible { outline-offset: -4px; }
@media (max-width: 599px) {
  .yonetim-sekmeler { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .yonetim-sekmeler a:nth-child(odd) { border-left: 0; }
  .yonetim-sekmeler a:nth-child(n+3) { border-top: 2px solid var(--beyaz); }
  /* v1.3: 5. sekme (KAYITLAR) tek başına tam satır */
  .yonetim-sekmeler a:last-child:nth-child(odd) { grid-column: span 2; }
}
@media (min-width: 600px) { .yonetim-sekmeler { grid-template-columns: repeat(5, minmax(0, 1fr)); } }

.yonetim-izgara { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 2px; background: var(--beyaz); border: 2px solid var(--beyaz); }
.yonetim-izgara > div { background: var(--mavi); padding: 12px 10px; min-width: 0; }
.yonetim-izgara > div > div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.yonetim-izgara b { font-family: var(--f-baslik); font-size: 30px; line-height: 1; font-weight: 700; }
.yonetim-izgara span { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); letter-spacing: .3px; overflow-wrap: anywhere; }
@media (min-width: 600px) { .yonetim-izgara { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .yonetim-izgara { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

.grafik { padding-top: 34px; }
.grafik-cubuklar { display: flex; align-items: stretch; gap: 2px; height: 150px; border-bottom: 1.5px solid var(--ikincil); }
.grafik-cubuk { position: relative; flex: 1 1 0; min-width: 0; height: 100%; }
.grafik-cubuk::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: max(2px, calc(var(--y, 0) * 100%));
  background: var(--sari);
  border-radius: 4px 4px 0 0;
}
.grafik-cubuk.sifir::before { background: rgba(207,224,255,.35); border-radius: 0; }
.grafik-cubuk:hover::before, .grafik-cubuk:focus-visible::before { background: #FFF2A8; }
.grafik-cubuk:focus-visible { outline: 2px solid var(--beyaz); outline-offset: 1px; }
.grafik-cubuk:hover::after, .grafik-cubuk:focus-visible::after {
  content: attr(data-ipucu);
  position: absolute;
  bottom: calc(max(2px, var(--y, 0) * 100%) + 6px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  background: var(--kagit);
  color: var(--murekkep);
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 4px 7px;
  white-space: nowrap;
  pointer-events: none;
  box-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.grafik-cubuk:nth-child(-n+5):hover::after, .grafik-cubuk:nth-child(-n+5):focus-visible::after { left: 0; transform: none; }
.grafik-cubuk:nth-last-child(-n+5):hover::after, .grafik-cubuk:nth-last-child(-n+5):focus-visible::after { left: auto; right: 0; transform: none; }
.grafik-eksen { display: flex; justify-content: space-between; padding-top: 6px; font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); }

.tablo-kutu { border: 2px solid var(--beyaz); overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tablo { width: 100%; border-collapse: collapse; font-size: 13px; }
.tablo th {
  text-align: left;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  color: var(--ikincil);
  padding: 10px 8px;
  border-bottom: 1.5px solid var(--beyaz);
  white-space: nowrap;
}
.tablo td { padding: 6px 8px; border-bottom: 1px solid rgba(207,224,255,.35); vertical-align: middle; }
.tablo tr:last-child td { border-bottom: 0; }
.tablo td.mono { font-family: var(--f-mono); font-size: 11px; white-space: nowrap; }
.tablo tr.askida td { background: rgba(255,154,102,.08); }
.td-eposta { overflow-wrap: anywhere; min-width: 160px; font-weight: 600; }
.etiket-kucuk { display: inline-block; margin-left: 6px; font-family: var(--f-mono); font-size: 9px; background: var(--sari); color: var(--murekkep); padding: 1px 4px; vertical-align: middle; }
.dugme-kucuk { min-height: 44px; padding: 0 12px; font-size: 11px; }
/* Dar telefonlarda tablo kendi kutusunda yatay kayar; masaüstünde kaydırma yok, sığar. */
@media (max-width: 599px) { .tablo { min-width: 780px; } }

.duyuru-kart { border: 1.5px dashed var(--ikincil); padding: 12px 14px; margin-top: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.duyuru-kart .kart-meta { color: var(--ikincil); white-space: normal; }
.duyuru-kart h3 { font-family: var(--f-baslik); font-size: 22px; font-weight: 700; line-height: 1.15; overflow-wrap: anywhere; }
.duyuru-kart p { font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; white-space: pre-line; }
.duyuru-kart .dugme { align-self: flex-start; }
.duyuru-kart.kapali { opacity: .65; }
.alan-ust { display: flex; justify-content: space-between; gap: 8px; }
.sayac { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); }
.kayit-satir { align-items: flex-start; padding: 4px 0; }
.kayit-satir .kayit-zaman { flex: 0 0 auto; min-width: 104px; max-width: none; text-align: left; padding-top: 8px; }
.kayit-hedef { color: var(--ikincil); font-weight: 400; }
.kayit-ayrinti { display: block; font-size: 12px; color: var(--ikincil); font-weight: 400; padding-top: 2px; }
.levha .kunye, .levha-ic .kunye, .not-kart .kunye { border-color: var(--murekkep); }
.levha .kunye > dt, .levha-ic .kunye > dt, .not-kart .kunye > dt, .levha .kunye > dd, .levha-ic .kunye > dd, .not-kart .kunye > dd { border-bottom-color: rgba(30,42,85,.25); }
.levha .kunye > dt, .levha-ic .kunye > dt, .not-kart .kunye > dt { color: var(--gri); border-right-color: rgba(30,42,85,.25); }
.arama { border-bottom: 0; }

/* =================== v1.2 · Sesli notlar =================== */

.mik-ikon { flex-shrink: 0; }
.ses-cip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  align-self: flex-start;
  flex-shrink: 0;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .5px;
  background: var(--murekkep);
  color: var(--sari);
  padding: 2px 6px;
  white-space: nowrap;
}

/* Sesli not kartı: tam satır; kartın kendisi bağlantı değil (içinde düğmeler var). */
.kart-ses { grid-column: 1 / -1; gap: 8px; }
.kart-ust { display: flex; align-items: center; gap: 8px; min-width: 0; }
.kart-ust .kart-meta { min-width: 0; }
a.kart-bag { color: var(--murekkep); text-decoration: none; padding: 2px 0; }
a.kart-bag:hover, a.kart-bag:focus-visible { color: var(--murekkep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Oynatıcı: sabit yükseklik, saklanan ölçülerden anında çizilir ---------- */
.calar {
  --p: 0;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 44px;
  grid-template-rows: 44px 16px;
  column-gap: 8px;
  row-gap: 4px;
  height: 76px;
  padding: 4px;
  flex-shrink: 0;
  min-width: 0;
  background-color: var(--mavi);
  background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 2px solid var(--murekkep);
  color: var(--beyaz);
}
.calar-oynat {
  width: 44px;
  height: 44px;
  border: 0;
  padding: 0;
  background: var(--sari);
  color: var(--murekkep);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 0 rgba(0,0,0,.3);
}
.calar-oynat:hover { background: #FFEA8A; color: var(--murekkep); }
.calar-oynat:active { transform: translateY(2px); box-shadow: 0 1px 0 rgba(0,0,0,.3); }
.calar-oynat .ik-durakla { display: none; }
.calar.caliyor .ik-oynat { display: none; }
.calar.caliyor .ik-durakla { display: block; }
.calar.bekliyor .calar-oynat { animation: nabiz 1s ease-in-out infinite; }
.calar :focus-visible { outline-color: var(--sari); }
.calar-dalga { position: relative; height: 44px; min-width: 0; }
.calar-cubuklar { position: absolute; inset: 4px 0; display: flex; align-items: center; gap: 1px; pointer-events: none; }
.calar-cubuklar > span { flex: 1 1 0; min-width: 1px; height: calc(var(--y, .2) * 100%); background: #CFE0FF; }
.calar-cubuklar.ust > span { background: #FFE36E; }
.calar-cubuklar.ust { clip-path: inset(0 calc((1 - var(--p)) * 100%) 0 0); }
.calar-aralik {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
  opacity: 0;
  cursor: pointer;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
}
.calar-dalga:has(.calar-aralik:focus-visible) { outline: 3px solid var(--sari); outline-offset: 2px; }
.calar-dalga:hover .calar-cubuklar.alt > span { background: #E2ECFF; }
.calar-hiz {
  width: 44px;
  height: 44px;
  border: 2px solid var(--beyaz);
  background: transparent;
  color: var(--beyaz);
  padding: 0;
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}
.calar-hiz:hover { background: rgba(255,255,255,.14); color: var(--beyaz); }
.calar-satir {
  grid-column: 1 / -1;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  height: 16px;
  min-width: 0;
  overflow: hidden;
  font-family: var(--f-mono);
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap;
  padding: 0 2px;
}
.calar-zaman { color: var(--beyaz); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.calar-cip { color: var(--ikincil); min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.calar-cip.az { color: var(--turuncu-acik); }
.calar-cip.yuklenecek { background: var(--sari); color: var(--murekkep); padding: 0 5px; line-height: 16px; }
.calar-doldu {
  display: flex;
  align-items: center;
  padding: 6px 12px;
  border-style: dashed;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ikincil);
  overflow: hidden;
  overflow-wrap: anywhere;
}

/* Yazıya döküm */
.ses-metin-kutu { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ses-metin { font-size: 14px; line-height: 1.45; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--murekkep); }
.ses-metin.kisa { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.ses-metin-ac {
  align-self: flex-start;
  min-height: 44px;
  border: 0;
  background: none;
  padding: 0;
  color: var(--murekkep);
  font-family: var(--f-mono);
  font-size: 12px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ses-metin-ac:hover { color: #000; }
.ses-metin-durum { font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--gri); letter-spacing: .3px; }

/* ---------- Kaydedici levhası ---------- */
.kayit-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 14px 14px 20px;
  background-color: var(--mavi);
  background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 12px 12px;
  border: 2px solid var(--murekkep);
  color: var(--beyaz);
  min-width: 0;
}
.kayit-ust { display: flex; align-items: center; justify-content: center; gap: 10px; height: 32px; min-width: 0; }
.kayit-isik { width: 12px; height: 12px; background: var(--ikincil); flex-shrink: 0; }
.kayitta .kayit-isik { background: var(--turuncu); animation: kayit-isik 1s steps(1) infinite; }
@keyframes kayit-isik { 50% { opacity: .25; } }
.kayit-zaman { font-family: var(--f-mono); font-size: 24px; font-weight: 600; letter-spacing: 1px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.kayit-tuval { display: block; width: 100%; height: 56px; }
.kayit-dugme {
  position: relative;
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  margin-top: 6px;
  border: 2px solid var(--murekkep);
  background: var(--sari);
  color: var(--murekkep);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 8px;
  font-family: var(--f-baslik);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .5px;
  transform: rotate(-2deg);
  box-shadow: 0 6px 0 rgba(0,0,0,.28);
  transition: transform 150ms ease, box-shadow 150ms ease;
}
.kayit-dugme .bant { top: -10px; left: 50%; width: 56px; margin-left: -28px; }
.kayit-dugme:hover:not(:disabled) { background: #FFEA8A; color: var(--murekkep); transform: translateY(-2px) rotate(-2deg); box-shadow: 0 8px 0 rgba(0,0,0,.28); }
.kayit-dugme:active:not(:disabled) { transform: translateY(2px) rotate(-2deg); box-shadow: 0 3px 0 rgba(0,0,0,.28); }
.kayit-dugme:disabled { opacity: .75; }
.kayit-dugme:focus-visible { outline: 3px solid var(--beyaz); outline-offset: 4px; }
.kayitta .kayit-dugme { box-shadow: 0 6px 0 rgba(0,0,0,.28), 0 0 0 4px rgba(255,154,102,.6); }
.kd-ikon { display: flex; height: 30px; align-items: center; }
.kd-yazi { max-width: 100%; line-height: 1.05; text-align: center; overflow-wrap: anywhere; }
.levha .ses-durum, .levha-ic .ses-durum, .not-kart .ses-durum { min-height: 51px; line-height: 17px; overflow-wrap: anywhere; }
.ses-durum.uyari { color: #9A3410; }

/* ---------- Ben · Ses arşivi ---------- */
.ses-kota { display: block; height: 10px; margin-top: 12px; border: 1.5px solid var(--beyaz); }
.ses-kota > span { display: block; height: 100%; background: var(--sari); }
.ses-kota-not { padding-top: 8px; font-size: 12px; line-height: 1.4; color: var(--ikincil); }

@media (min-width: 600px) and (max-width: 899px) {
  .yonetim-izgara > div:last-child:nth-child(3n + 1) { grid-column: span 3; }
}


/* =====================================================================
   v1.3 — Arama (#/ara) ve MALİYET sekmesi, cihazda yazıya döküm
   ===================================================================== */

/* Ev antedindeki arama hücresi (geri hücresinin eşi, sağda) */
.bb-eylem {
  width: 52px;
  flex-shrink: 0;
  border-left: 2px solid var(--beyaz);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--beyaz);
}
a.bb-eylem:hover { background: rgba(255,255,255,.1); color: var(--beyaz); }
.bb-eylem:focus-visible { outline-offset: -5px; }
@media (max-width: 359px) { .bb-eylem { width: 46px; } }

.ara-form { margin: 0; }
.ara-kutu {
  display: flex;
  align-items: center;
  height: 64px;
  border: 2px solid var(--beyaz);
  background: rgba(255,255,255,.06);
  min-width: 0;
}
.ara-kutu:focus-within { outline: 3px solid var(--sari); outline-offset: 2px; background: rgba(255,255,255,.1); }
.ara-buyutec { width: 52px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; color: var(--sari); }
.ara-kutu input {
  flex: 1 1 auto;
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--beyaz);
  font-family: var(--f-govde);
  font-size: 20px;
  font-weight: 500;
  padding: 0;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
}
.ara-kutu input:focus-visible { outline: none; }
.ara-kutu input::placeholder { color: rgba(207,224,255,.8); }
.ara-kutu input::-webkit-search-cancel-button { -webkit-appearance: none; display: none; }
.ara-sil { color: var(--ikincil); }
.ara-sil:hover { color: var(--beyaz); }
.ara-sil:focus-visible { outline-offset: -4px; }

/* Süzgeçler: sabit genişlikli hücreler sarılır (yatay kaydırma şeridi yok); sayılar değişse de yerleşim oynamaz. */
.ara-filtreler { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 6px; }
.ara-filtre {
  min-height: 44px;
  border: 2px solid var(--beyaz);
  background: transparent;
  color: var(--beyaz);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 0 2px;
  font-family: var(--f-mono);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0;
  min-width: 0;
  white-space: nowrap;
}
.ara-filtre .af-ad { overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.ara-filtre .af-sayi { flex-shrink: 0; min-width: 2ch; text-align: left; font-variant-numeric: tabular-nums; color: var(--sari); }
.ara-filtre:hover { background: rgba(255,255,255,.12); color: var(--beyaz); }
.ara-filtre[aria-pressed="true"] { background: var(--beyaz); color: var(--mavi); }
.ara-filtre[aria-pressed="true"] .af-sayi { color: var(--mavi); }
.ara-filtre:focus-visible { outline-offset: 2px; }

.ara-sonuc { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.ara-liste { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.ara-grup { display: flex; flex-direction: column; min-width: 0; }
.ara-satir {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  height: 88px;
  padding: 10px 8px;
  border: 0;
  border-bottom: 1.5px dashed rgba(207,224,255,.45);
  background: transparent;
  color: var(--beyaz);
  text-decoration: none;
  text-align: left;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  cursor: pointer;
  font: inherit;
}
.ara-satir:hover { background: rgba(255,255,255,.1); color: var(--beyaz); }
.ara-satir.secili { background: rgba(255,255,255,.12); box-shadow: inset 4px 0 0 var(--sari); }
.ara-satir:focus-visible { outline-offset: -3px; }
.ara-ikon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1.5px solid var(--ikincil);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ikincil);
}
.ara-govde { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ara-konum { font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: .5px; color: var(--sari); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 14px; height: 14px; }
.ara-baslik { font-size: 15px; font-weight: 600; line-height: 20px; height: 20px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ara-ozet { font-size: 13px; line-height: 17px; height: 34px; color: var(--ikincil); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow-wrap: anywhere; }
.ara-satir mark, .ara-son mark { background: #FFE36E; color: #1E2A55; padding: 0 1px; border-radius: 0; }
.ara-daha { height: 52px; align-items: center; justify-content: center; font-family: var(--f-mono); font-size: 12px; font-weight: 600; color: var(--sari); }
.ara-son .bolum-baslik { align-items: center; }
.ara-temizle { color: var(--sari); min-height: 44px; }
.ara-temizle:hover { color: #FFF2A8; }
.ara-son-satir { gap: 10px; border-bottom: 1.5px dashed rgba(207,224,255,.45); color: var(--beyaz); }
.ara-son-satir svg { flex-shrink: 0; color: var(--ikincil); }
.ara-ipucu { display: none; font-family: var(--f-mono); font-size: 10px; letter-spacing: .5px; color: var(--ikincil); }
@media (hover: hover) and (pointer: fine) { .ara-ipucu { display: block; } }

/* Kaydedici: cihazda yazıya döküm kutusu (sabit yükseklik → kayıt/önizleme geçişinde kayma yok) */
.levha .alan textarea.kayit-yazi, .levha-ic .alan textarea.kayit-yazi, .not-kart .alan textarea.kayit-yazi { min-height: 0; height: 92px; resize: none; font-size: 15px; line-height: 1.4; overflow-y: auto; }
.levha .alan textarea.kayit-yazi[readonly], .levha-ic .alan textarea.kayit-yazi[readonly], .not-kart .alan textarea.kayit-yazi[readonly] { background: #F7F5EF; }
.levha .alan textarea.kayit-yazi:disabled, .levha-ic .alan textarea.kayit-yazi:disabled, .not-kart .alan textarea.kayit-yazi:disabled { opacity: .6; }
.kayit-yazi-alan > span { min-height: 15px; }

/* ---------- MALİYET sekmesi ---------- */
.maliyet-aciklama { border: 1.5px dashed var(--sari); padding: 12px 14px; font-size: 14px; line-height: 1.45; color: var(--beyaz); }
.maliyet-sayaclar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 12px; }
@media (min-width: 900px) { .maliyet-sayaclar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.maliyet-sayac { border: 2px solid var(--beyaz); padding: 12px; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.maliyet-sayac.bilgi { border-style: dashed; }
.ms-ust { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; min-width: 0; }
.ms-ad { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: .5px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ms-yuzde { font-family: var(--f-mono); font-size: 13px; font-weight: 600; color: var(--sari); flex-shrink: 0; font-variant-numeric: tabular-nums; }
.ms-cubuk { display: block; height: 14px; border: 1.5px solid var(--beyaz); background: rgba(255,255,255,.06); }
.ms-cubuk > span { display: block; height: 100%; background: var(--sari); }
.maliyet-sayac.uyari .ms-cubuk > span { background: var(--turuncu); }
.maliyet-sayac.uyari .ms-yuzde, .maliyet-sayac.dolu .ms-yuzde { color: var(--turuncu-acik); }
.maliyet-sayac.dolu { border-color: var(--turuncu); }
.maliyet-sayac.dolu .ms-cubuk { border-color: var(--turuncu); }
.maliyet-sayac.dolu .ms-cubuk > span { background: var(--turuncu); }
.ms-deger { font-family: var(--f-baslik); font-size: 22px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.ms-alt { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); letter-spacing: .3px; line-height: 1.4; overflow-wrap: anywhere; }
.maliyet-not { color: var(--ikincil); }
.maliyet-alanlar { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; }
@media (min-width: 700px) { .maliyet-alanlar { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.maliyet-alan { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mf-girdi { display: flex; align-items: stretch; min-width: 0; }
.mf-girdi input { flex: 1 1 auto; min-width: 0; font-variant-numeric: tabular-nums; }
.mf-birim { flex-shrink: 0; display: flex; align-items: center; padding: 0 10px; border: 2px solid var(--beyaz); border-left: 0; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--ikincil); }
.mf-ipucu { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); letter-spacing: .3px; }
.mf-hata { font-size: 12px; line-height: 1.35; color: var(--turuncu-acik); min-height: 0; }
.mf-hata:empty { display: none; }


/* =====================================================================
   v1.4 — Etiketler ve geniş masaüstü yerleşimi (≥1024 px)
   Yerleşim yalnız CSS medya sorgularıyla seçilir (JS ölçüm yapmaz → açılışta kayma yok).
   ===================================================================== */
:root {
  --pembe: #FFB8D9;
  --ray: 248px;
  --panel: 400px;
  --yan: 340px;
}

/* ---------- Etiket çipleri ---------- */
.et-cip {
  --et: #FFE36E;
  display: inline-flex;
  align-items: center;
  gap: 1px;
  max-width: 100%;
  min-width: 0;
  height: 30px;
  padding: 0 9px 0 7px;
  background: var(--et);
  color: var(--murekkep);
  box-shadow: inset 0 0 0 1.5px rgba(30,42,85,.45);
  font-family: var(--f-govde);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.et-diyez { font-family: var(--f-mono); font-weight: 500; margin-right: 1px; }
.et-ad { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.et-sayi { margin-left: 7px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; background: rgba(30,42,85,.14); padding: 2px 5px; font-variant-numeric: tabular-nums; }
a.et-cip { transition: transform 120ms ease, box-shadow 120ms ease; }
a.et-cip:hover, a.et-cip:focus-visible { color: var(--murekkep); box-shadow: inset 0 0 0 2.5px var(--murekkep), 0 3px 0 rgba(0,0,0,.25); transform: translateY(-1px); }
a.et-cip:active { transform: translateY(1px); box-shadow: inset 0 0 0 2.5px var(--murekkep); }
a.et-cip.secili, a.et-cip[aria-current="page"] { box-shadow: inset 0 0 0 3px var(--murekkep); }
.et-cip.kucuk { height: 20px; padding: 0 5px 0 4px; font-size: 11px; flex-shrink: 1; max-width: 118px; box-shadow: inset 0 0 0 1px rgba(30,42,85,.35); }
.et-cip.kucuk .et-diyez { font-size: 10px; }
.et-cip.duzen { padding-right: 0; height: 44px; font-size: 14px; }
.et-kaldir {
  width: 44px; height: 100%; flex-shrink: 0; margin-left: 4px; border: 0; padding: 0;
  border-left: 1.5px solid rgba(30,42,85,.35); background: transparent; color: var(--murekkep);
  display: flex; align-items: center; justify-content: center;
}
.et-kaldir:hover { background: rgba(30,42,85,.14); color: var(--murekkep); }
.et-kaldir:focus-visible { outline: 3px solid var(--murekkep); outline-offset: -3px; }

/* Kart ve yapışkan nottaki etiket şeridi: tek satır, sabit yükseklik — içerik değişse de kart oynamaz. */
.kart-etiketler { display: flex; align-items: center; gap: 4px; height: 20px; min-width: 0; overflow: hidden; flex-wrap: nowrap; flex-shrink: 0; }
.et-fazla { flex-shrink: 0; font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--gri); padding: 0 2px; }
.not-kart .kart-etiketler { height: auto; flex-wrap: wrap; overflow: visible; row-gap: 6px; }
.not-kart .kart-etiketler .et-cip.kucuk { max-width: 100%; height: 24px; font-size: 12px; }

/* Oda / sepet süzgeci ve etiket bulutları: sarar, yatay kaydırma şeridi yok. */
.et-suzgec, .et-bulut { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; min-width: 0; }
.et-suzgec-bas { font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; color: var(--ikincil); margin-right: 4px; }
.et-suzgec a.et-cip, .et-bulut a.et-cip { height: 44px; }
.et-suzgec-hepsi { display: inline-flex; align-items: center; min-height: 44px; padding: 0 4px; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--sari); text-decoration: underline; text-underline-offset: 3px; }
.et-suzgec-hepsi:hover { color: #FFF2A8; }
.et-bas-satir { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.et-bas-satir .et-cip { height: 44px; font-size: 16px; }
.et-grup .bolum-baslik { align-items: center; }
.et-grup-bag { font-family: var(--f-mono); font-size: 10px; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.et-grup-bag:hover { color: var(--beyaz); text-decoration: underline; }
.yan-bag { color: var(--sari); text-decoration: none; font-family: var(--f-mono); font-size: 11px; font-weight: 600; min-height: 44px; min-width: 44px; justify-content: flex-end; display: inline-flex; align-items: center; flex-shrink: 0; }
.yan-bag:hover { color: #FFF2A8; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Etiket alanı (not düzenleyici) — kağıt yüzeyde, mürekkep ---------- */
.etiket-alan { position: relative; color: var(--murekkep); }
.etiket-alan > span:first-child { color: var(--gri); }
.et-sar { position: relative; }
.et-kutu {
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0;
  min-height: 56px; padding: 5px; border: 2px solid var(--murekkep); background: #FFFFFF; cursor: text;
}
.et-kutu:focus-within { outline: 3px solid var(--murekkep); outline-offset: 0; }
.et-cipler { display: contents; }
.et-cipler > [role="listitem"] { display: inline-flex; max-width: 100%; min-width: 0; }
.et-girdi {
  flex: 1 1 140px; min-width: 120px; height: 44px; border: 0; padding: 0 6px; margin: 0;
  background: transparent; color: var(--murekkep); font: inherit; font-size: 16px; outline: none; border-radius: 0;
}
.et-girdi::placeholder { color: #6A7190; }
/* Etiket girdisi .alan içinde olduğu için genel alan kenarlığı/odak halkası kaldırılır; odak kutunun kendisinde görünür. */
.alan input.et-girdi, .levha .alan input.et-girdi, .not-kart .alan input.et-girdi, .levha-ic .alan input.et-girdi {
  flex: 1 1 140px; width: auto; min-width: 120px; min-height: 44px; height: 44px; border: 0; background: transparent; padding: 0 6px;
}
.alan input.et-girdi:focus-visible, .levha .alan input.et-girdi:focus-visible, .not-kart .alan input.et-girdi:focus-visible { outline: none; }
.et-girdi:disabled { cursor: not-allowed; }
.et-oneriler {
  position: absolute; left: 0; right: 0; top: calc(100% + 4px); z-index: 6;
  max-height: 284px; overflow-y: auto; overscroll-behavior: contain;
  background: #FFFFFF; border: 2px solid var(--murekkep); box-shadow: 0 6px 0 rgba(0,0,0,.18);
}
.et-oneri { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 4px 10px; cursor: pointer; color: var(--murekkep); border-bottom: 1px solid rgba(30,42,85,.15); }
.et-oneri:last-child { border-bottom: 0; }
.et-oneri:hover, .et-oneri.isaretli { background: #E8EEFF; }
.et-oneri.isaretli { box-shadow: inset 4px 0 0 var(--murekkep); }
.et-oneri .et-cip.kucuk { max-width: 70%; height: 24px; font-size: 13px; }
.et-oneri-sayi { margin-left: auto; font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--gri); flex-shrink: 0; }
.et-oneri-yeni { display: flex; color: var(--murekkep); flex-shrink: 0; }
.et-alt { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px; }
.et-renk-dugme {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 2px; border: 0; background: none;
  color: var(--murekkep); font-family: var(--f-mono); font-size: 11px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px;
}
.et-renk-dugme:hover { color: #000; }
.et-ornek { --et: #FFE36E; width: 20px; height: 20px; background: var(--et); box-shadow: inset 0 0 0 1.5px var(--murekkep); flex-shrink: 0; }
.et-ipucu { font-family: var(--f-mono); font-size: 10px; color: var(--gri); }
.et-palet { display: flex; flex-wrap: wrap; gap: 8px; padding: 8px; border: 2px solid var(--murekkep); background: #FFFFFF; }
.et-palet.acik { border: 0; padding: 2px 0; background: none; }
.et-palet-renk { --et: #FFE36E; width: 44px; height: 44px; border: 0; padding: 0; background: var(--et); box-shadow: inset 0 0 0 2px var(--murekkep); }
.et-palet-renk.buyuk { width: 48px; height: 48px; }
.et-palet-renk:hover { box-shadow: inset 0 0 0 3px var(--murekkep); }
.et-palet-renk[aria-checked="true"] { box-shadow: inset 0 0 0 2px var(--murekkep), inset 0 0 0 6px #FFFFFF, inset 0 0 0 8px var(--murekkep); }
.et-palet-renk:focus-visible { outline: 3px solid var(--murekkep); outline-offset: 2px; }
.et-hata { font-size: 13px; font-weight: 600; color: #9A3410; overflow-wrap: anywhere; }
.et-hata:empty { display: none; }
.et-onizleme { display: inline-flex; vertical-align: middle; margin-left: 6px; }

/* Etiket yönetimi */
.et-yonetim { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); }
.et-satir { display: flex; align-items: center; gap: 10px; min-height: 60px; padding: 8px 0; border-bottom: 1px solid rgba(207,224,255,.4); min-width: 0; }
.et-satir a.et-cip { height: 44px; font-size: 15px; }
.et-satir-sayi { margin-left: auto; font-family: var(--f-mono); font-size: 11px; font-weight: 600; color: var(--ikincil); flex-shrink: 0; }
.levha-bolum { gap: 10px; }
.levha-bolum .bolum-baslik { border-bottom-color: var(--murekkep); }
.satir-form { display: flex; gap: 8px; align-items: flex-end; }
.ben-etiket-dugme { justify-content: space-between; }
.ben-etiketler { gap: 12px; }
.ben-etiketler .bolum-baslik { align-items: center; }
.yan-not { font-size: 13px; line-height: 1.4; color: var(--ikincil); }

/* Arama: etiket süzgeci satırı ve etiket sonucu */
.ara-etiket-suz { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.ara-etiket-suz .etiket-mono { color: var(--ikincil); margin-right: 4px; }
.ara-etiket-suz .et-cip.kucuk { height: 24px; font-size: 12px; max-width: 220px; }
.et-yok { font-family: var(--f-mono); font-size: 11px; color: var(--turuncu-acik); }
.ara-ikon[style] { color: var(--et); border-color: var(--et); }
.ara-onizleme { display: none; }
.onizleme-metin { font-size: 15px; max-height: 360px; overflow: hidden; }
.onizleme-metin mark { background: #FFE36E; color: #1E2A55; }
.not-kart .not-baslik mark { background: #FFE36E; color: #1E2A55; }
.onizleme-liste { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.6; }

/* Not kartındaki başlık (h2 yerine h3, panelde) */
.not-kart .not-baslik { font-family: var(--f-baslik); font-size: 28px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }
.not-kart .etiket-alan { margin-top: 4px; }
.panel-duzen .not-formu { gap: 12px; }
.gorev-baslik { font-family: var(--f-baslik); font-size: 28px; font-weight: 700; line-height: 1.1; overflow-wrap: anywhere; }

/* Kağıt panel (görev ayrıntısı panelde) */
.levha-ic { background: var(--kagit); color: var(--murekkep); border-top: 5px solid var(--sari); padding: 16px; display: flex; flex-direction: column; gap: 14px; box-shadow: 0 6px 0 rgba(0,0,0,.2); min-width: 0; }

/* ---------- Usta–ayrıntı: dar ekranda seçili not tam sayfa ---------- */
.md-ana, .md-detay-ic, .ev-ana, .ev-yan, .tk-sol, .ara-sol, .ben-sol, .ben-sag, .ara-duzen, .takvim-duzen, .ben-duzen { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.md-detay { display: none; min-width: 0; }
.md.md-secili > .md-ana { display: none; }
.md.md-secili > .md-detay { display: flex; flex-direction: column; gap: 14px; }
.md-bos { display: none; }
.bb-kapat .ik-kapat { display: none; }
.bb-geri > span { display: flex; }
.kart.secili, .kart-ses.secili { box-shadow: 0 4px 0 rgba(0,0,0,.2), inset 0 0 0 3px var(--murekkep); }
.ev-duzen, .ev-ana { display: contents; }
.ev-yan, .gorev-tablo-bolum { display: none; }
.ok-mobil { display: contents; }
.ok-masa { display: none; }
.tk-isler { display: none; }

/* ---------- Tablet: mobil yerleşim, genişlik iyi kullanılır ---------- */
@media (min-width: 700px) and (max-width: 1023px) {
  :root { --kolon: 720px; }
  .plan { grid-auto-rows: 120px; }
  .oda-plani { height: 300px; }
  .ara-filtreler { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .et-yonetim { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 24px; }
  .hizli-zaman { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* ---------- Sol ray (masaüstü) ---------- */
.ray { display: none; }

@media (min-width: 1024px) {
  :root { --alt-yukseklik: 0px; --kolon: 100%; }
  html:has(dialog[open]) { overflow: hidden; }
  .altmenu { display: none !important; }
  #app { max-width: none; margin: 0 0 0 var(--ray); width: auto; border: 0 !important; }
  .sayfa, .sayfa.yonetim { width: auto; max-width: 1360px; margin: 0 auto; padding: 28px 32px 56px; }
  .sayfa.altmenusuz { padding-bottom: 56px; }
  .sayfa.dar-sayfa { max-width: 760px; }
  .bildirim { left: calc(50% + var(--ray) / 2); bottom: 24px; }
  .yukle-afis, .yukle-afis.altmenusuz { left: calc(50% + var(--ray) / 2); bottom: 28px; }

  .ray {
    position: fixed; top: 0; bottom: 0; left: 0; z-index: 30;
    width: var(--ray);
    display: flex; flex-direction: column; gap: 16px;
    padding: 18px 14px 10px;
    border-right: 2px solid var(--beyaz);
    background-color: var(--mavi-koyu);
    background-image: linear-gradient(rgba(255,255,255,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.07) 1px, transparent 1px);
    background-size: 12px 12px;
    color: var(--beyaz);
  }
  body.oturumsuz .ray-oturum { visibility: hidden; }
  .ray-marka { display: flex; flex-direction: column; flex-shrink: 0; border: 2px solid var(--beyaz); color: var(--beyaz); text-decoration: none; background: var(--mavi); }
  .ray-marka:hover { background: #24499B; color: var(--beyaz); }
  .ray-marka-ad { font-family: var(--f-baslik); font-size: 44px; font-weight: 700; letter-spacing: 5px; line-height: 1; padding: 8px 12px 4px; }
  .ray-marka-meta { display: flex; justify-content: space-between; gap: 6px; border-top: 2px solid var(--beyaz); padding: 5px 10px; font-family: var(--f-mono); font-size: 9px; color: var(--ikincil); letter-spacing: .5px; white-space: nowrap; }
  .ray-nav { display: flex; flex-direction: column; gap: 4px; flex-shrink: 0; padding: 6px; border: 2px solid var(--beyaz); border-radius: 4px; background: var(--mavi); box-shadow: 0 6px 0 rgba(0,0,0,.2); }
  .ray-sekme {
    display: flex; align-items: center; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 2px;
    color: var(--beyaz); text-decoration: none; font-family: var(--f-baslik); font-size: 18px; font-weight: 600; letter-spacing: .6px; text-transform: uppercase;
    transform: scale(1); transition: transform 120ms ease, background-color 160ms ease, color 160ms ease;
  }
  .ray-sekme svg { flex-shrink: 0; }
  .ray-sekme:hover { background: rgba(255,255,255,.14); color: var(--beyaz); }
  .ray-sekme:active { transform: scale(.96); }
  .ray-sekme.etkin { background: var(--beyaz); color: var(--mavi); font-weight: 700; }
  .ray-sekme.etkin:hover { background: var(--beyaz); color: var(--mavi); }
  .ray-sekme kbd { margin-left: auto; font-family: var(--f-mono); font-size: 10px; font-weight: 600; letter-spacing: 1px; color: var(--ikincil); border: 1px solid rgba(207,224,255,.55); padding: 1px 5px; }
  .ray-sekme.etkin kbd { color: var(--mavi); border-color: rgba(28,63,140,.45); }
  .ray-sekme .am-rozet { top: -6px; right: -10px; }
  .ray-ekle-sar { position: relative; flex-shrink: 0; padding-top: 6px; }
  .ray-ekle {
    position: relative; width: 100%; height: 58px; display: flex; align-items: center; gap: 10px; padding: 0 16px;
    border: 0; background: var(--sari); color: var(--murekkep);
    font-family: var(--f-baslik); font-size: 24px; font-weight: 700; letter-spacing: 1.5px;
    transform: rotate(-1.5deg); box-shadow: 0 6px 0 rgba(0,0,0,.25); transition: transform 140ms ease;
  }
  .ray-ekle:hover { background: #FFEA8A; color: var(--murekkep); transform: rotate(-1.5deg) translateY(-1px); }
  .ray-ekle.basili, .ray-ekle:active { transform: scale(.95) rotate(-1.5deg); }
  .ray-ekle svg { transition: transform 220ms cubic-bezier(.2,.8,.2,1); }
  .ray-ekle[aria-expanded="true"] { transform: rotate(0deg); }
  .ray-ekle[aria-expanded="true"] svg { transform: rotate(45deg); }
  .ray-ekle kbd { margin-left: auto; font-family: var(--f-mono); font-size: 11px; font-weight: 600; border: 1.5px solid var(--murekkep); padding: 1px 6px; letter-spacing: 0; }
  .ray-menu {
    position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 8;
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; padding: 8px;
    background: var(--kagit); border: 2px solid var(--murekkep); border-top: 5px solid var(--sari); box-shadow: 0 6px 0 rgba(0,0,0,.25);
  }
  .ray-menu[hidden] { display: none; }
  .ray-menu-oge {
    min-height: 60px; border: 2px solid var(--murekkep); background: transparent; color: var(--murekkep);
    display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
    font-family: var(--f-baslik); font-size: 16px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase;
  }
  .ray-menu-oge:hover, .ray-menu-oge:focus-visible { background: var(--murekkep); color: var(--kagit); }
  .ray-menu-oge:active { transform: scale(.95); }
  .ray-etiketler { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
  .ray-bas { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-bottom: 4px; border-bottom: 1.5px solid var(--beyaz); font-family: var(--f-mono); font-size: 11px; font-weight: 600; letter-spacing: 1px; }
  .ray-bas-bag { color: var(--sari); text-decoration: none; min-height: 32px; display: inline-flex; align-items: center; font-size: 10px; }
  .ray-bas-bag:hover { color: #FFF2A8; text-decoration: underline; text-underline-offset: 3px; }
  .ray-etiket-liste { list-style: none; margin: 0; padding: 6px 2px 4px 0; flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 2px; scrollbar-width: thin; scrollbar-color: rgba(207,224,255,.5) transparent; }
  .ray-etiket { display: flex; align-items: center; gap: 10px; min-height: 36px; padding: 0 8px; color: var(--beyaz); text-decoration: none; font-size: 14px; font-weight: 500; }
  .ray-etiket:hover { background: rgba(255,255,255,.14); color: var(--beyaz); }
  .ray-etiket.etkin { background: var(--beyaz); color: var(--mavi); font-weight: 600; }
  .ray-etiket:focus-visible { outline-offset: -3px; }
  .ray-et-nokta { --et: #FFE36E; width: 12px; height: 12px; flex-shrink: 0; background: var(--et); box-shadow: 0 0 0 1.5px rgba(255,255,255,.7); }
  .ray-etiket.etkin .ray-et-nokta { box-shadow: 0 0 0 1.5px var(--mavi); }
  .ray-et-ad { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .ray-et-sayi { flex-shrink: 0; font-family: var(--f-mono); font-size: 11px; color: var(--ikincil); font-variant-numeric: tabular-nums; }
  .ray-etiket.etkin .ray-et-sayi { color: var(--mavi); }
  .ray-et-bos { font-size: 12px; line-height: 1.4; color: var(--ikincil); padding: 8px 2px; }
  .ray-imza { flex-shrink: 0; height: 66px; display: flex; align-items: center; border-top: 1.5px dashed rgba(207,224,255,.5); padding-top: 6px; }
  .ray-imza .imza { min-height: 52px; }

  /* Diyalog: masaüstünde alt levha yerine ortada pafta kartı */
  dialog.levha { margin: auto; max-width: 620px; max-height: 88vh; border: 2px solid var(--murekkep); border-top: 5px solid var(--sari); box-shadow: 0 10px 0 rgba(0,0,0,.25); }
  dialog.levha.orta { max-width: 460px; }
  .levha-govde { padding-bottom: 20px; }

  /* Fare imleci: dokunmatik olmayan yüzeyde kontrol yükseklikleri biraz daha sıkı olabilir (44 px korunur). */
  .et-cip.duzen { height: 36px; font-size: 13px; }
  .et-kaldir { width: 32px; }
  .et-suzgec a.et-cip, .et-bulut a.et-cip { height: 34px; }

  /* ---------- Usta–ayrıntı ---------- */
  .md { display: grid; grid-template-columns: minmax(0, 1fr) var(--panel); gap: 24px; align-items: start; }
  .md > .md-ana, .md.md-secili > .md-ana { display: flex; }
  .md > .md-detay, .md.md-secili > .md-detay {
    display: flex; flex-direction: column; gap: 14px;
    position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain;
    padding: 4px 6px 12px 4px; margin: -4px -6px 0 -4px; scrollbar-width: thin; scrollbar-color: rgba(207,224,255,.5) transparent;
  }
  .md-bos { display: block; padding-top: 12px; }
  .md-bos-not { transform: rotate(1deg); }
  .md-detay .baslik-blok { height: 60px; }
  .md-detay .bb-baslik { font-size: 34px; }
  .md-detay .bb-geri { width: 48px; }
  .bb-kapat .ik-geri { display: none; }
  .bb-kapat .ik-kapat { display: flex; }
  .md-detay .not-kart { transform: none; }
  .md-izgara { grid-template-columns: repeat(auto-fill, minmax(max(184px, calc((100% - 36px) / 4)), 1fr)); gap: 14px 12px; }
  .md-izgara .kart { min-height: 132px; }
  .md-izgara .kart-ozet { -webkit-line-clamp: 4; }

  /* Bahçe: seçim yokken panel yok, plan + çizelge yan yana */
  .bahce-sayfa:not(.md-secili) { grid-template-columns: minmax(0, 1fr); }
  .bahce-sayfa:not(.md-secili) > .md-detay { display: none; }
  .bahce-sayfa.md > .md-ana, .bahce-sayfa.md.md-secili > .md-ana { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 14px 24px; align-items: start; }
  .bahce-sayfa.md.md-secili > .md-ana { grid-template-columns: minmax(0, 1fr); }
  .bahce-sayfa .md-ana > .baslik-blok, .bahce-sayfa .md-ana > .lejant, .bahce-sayfa .md-ana > details { grid-column: 1 / -1; }
  .bahce-sayfa .saksilar { display: none; }
  .gorev-tablo-bolum { display: flex; }
  .bahce-sayfa .vaziyet {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); align-content: start; gap: 14px 18px;
    min-height: 440px; padding: 40px 20px 24px;
  }
  .bahce-sayfa.md-secili .vaziyet { min-height: 0; }
  .bahce-sayfa .vaziyet .bos { grid-column: 1 / -1; }
  .bahce-sayfa .agac, .bahce-sayfa .agac.sag { flex-direction: row; text-align: left; align-self: start; margin-right: 0; max-width: 100%; min-height: 64px; }
  .bahce-sayfa .agac.sag .agac-yazi { border-right: 0; border-left: 1px solid currentColor; padding-right: 0; padding-left: 8px; }
  .agac-sembol { display: flex; flex-shrink: 0; }
  .bahce-sayfa .agac-sembol svg { width: calc(var(--b) * 1.35px); height: calc(var(--b) * 1.35px); }
  .bahce-sayfa .agac-ad { font-size: 15px; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; line-height: 1.2; overflow-wrap: anywhere; }
  .gorev-tablo-kutu { overflow: visible; }
  .gorev-tablo { table-layout: fixed; }
  .gorev-tablo th, .gorev-tablo td { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gorev-tablo .gt-kutu { width: 48px; padding-left: 10px; padding-right: 0; }
  .gorev-tablo .gt-kutu .kutucuk { margin-left: 0; }
  .gorev-tablo .gt-durum { width: 104px; }
  .gorev-tablo .gt-tarih { width: 108px; }
  .gorev-tablo .gt-saat { width: 64px; }
  .gorev-tablo .gt-tekrar { width: 96px; }
  .gt-durum-ic { display: inline-flex; align-items: center; gap: 6px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; }
  .gorev-tablo tbody tr:hover td { background: rgba(255,255,255,.08); }
  .gorev-tablo tr.secili td { background: rgba(255,255,255,.14); }
  .gorev-tablo tr.secili td:first-child { box-shadow: inset 4px 0 0 var(--sari); }
  .gorev-tablo tr.bitti td { color: var(--ikincil); }
  .gorev-tablo .satir-bag { min-height: 44px; }
  .gorev-panel .levha-ic { transform: none; }

  /* Oda: masaüstünde notlar buzdolabı listesinden önce gelir */
  .oda-sayfa .oda-plani { height: 240px; }
  .oda-sayfa .md-ana > .liste-bolum { order: 3; }
  .oda-sayfa .md-ana > .oda-gecit, .oda-sayfa .md-ana > .oda-dugmeler { order: 2; }

  /* ---------- Ev: geniş kat planı + sağ sütun ---------- */
  .ev-duzen {
    display: grid; grid-template-columns: minmax(0, 1fr) var(--yan);
    grid-template-areas: "ana tur" "ana yan"; grid-template-rows: auto 1fr; gap: 20px 28px; align-items: start;
  }
  .ev-tur { grid-area: tur; }
  .ev-ana { grid-area: ana; display: flex; }
  .ev-yan { grid-area: yan; display: flex; gap: 18px; }
  .ev-sayfa .bahce-serit { display: none; }
  /* Duvarlar: her karonun 3 px beyaz gölgesi (boş hücre beyaz blok olarak görünmez, boş arsa gibi kalır).
     Oda ekle karosu her zaman son satırı tam genişlikte kaplar (alçak bir "genişleme" şeridi). */
  .plan {
    grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); grid-auto-rows: auto;
    background: transparent; gap: 3px;
  }
  .plan > * { box-shadow: 0 0 0 3px var(--beyaz); }
  .plan > .oda-karo { min-height: 176px; }
  .plan .giris-karo { grid-column: span 2; }
  .plan .oda-ekle-karo, .plan .oda-ekle-karo.genis { grid-column: 1 / -1; height: 64px; }
  .oda-karo { padding: 12px 12px 10px; gap: 8px; }
  .oda-karo:hover .ok-mini { transform: rotate(0deg) translateY(-1px); }
  .ok-mobil { display: none; }
  .ok-masa { display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; min-height: 0; width: 100%; }
  .ok-miniler { flex: 1 1 auto; min-height: 0; display: flex; flex-wrap: wrap; align-content: flex-start; gap: 7px; overflow: hidden; padding: 2px 2px 4px; }
  .ok-mini {
    --et: transparent;
    max-width: 100%; padding: 5px 8px 5px 9px; background: var(--sari); color: var(--murekkep);
    font-size: 12px; font-weight: 600; line-height: 1.25; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    transform: rotate(-2deg); box-shadow: 0 3px 0 rgba(0,0,0,.22), inset 4px 0 0 var(--et); transition: transform 140ms ease;
  }
  .ok-mini.m2 { transform: rotate(1.4deg); }
  .ok-mini.m3 { transform: rotate(-.8deg); }
  .ok-mini.m4 { transform: rotate(2deg); }
  .ok-mini-bos { font-family: var(--f-mono); font-size: 10px; color: var(--ikincil); background: var(--mavi); padding: 2px 4px; }
  .ok-alt-satir { display: flex; justify-content: space-between; gap: 8px; font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--ikincil); background: var(--mavi); padding: 1px 2px; }
  .ok-toz-cubuk { display: block; height: 4px; background: rgba(255,255,255,.16); }
  .ok-toz-cubuk > span { display: block; height: 100%; background: var(--turuncu); }
  .giris-karo .sepet-yapiskan { align-self: flex-start; }
  .yan-kutu { border: 2px solid var(--beyaz); background: rgba(10,28,70,.28); padding: 12px 14px 10px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
  .yan-kutu .bolum-baslik { align-items: center; }
  .yan-lejant { border-width: 1.5px; }
  .yan-lejant > div { flex-direction: column; align-items: flex-start; gap: 4px; padding: 8px; }
  .yan-lejant span { font-size: 10px; }
  .yan-liste { display: flex; flex-direction: column; }
  .yan-satir { color: var(--beyaz); text-decoration: none; min-height: 48px; }
  .yan-satir:hover { background: rgba(255,255,255,.08); color: var(--beyaz); }
  .yan-satir .satir-metin { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .ev-somine { flex-direction: row; align-items: center; gap: 14px; }
  .ev-somine > svg { flex-shrink: 0; }
  .somine-yazi { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
  .somine-deger { font-family: var(--f-baslik); font-size: 24px; font-weight: 700; line-height: 1.05; }

  /* ---------- Takvim: büyük ay ızgarası + sağda ajanda ---------- */
  .takvim-duzen { display: grid; grid-template-columns: minmax(0, 1fr) var(--yan); gap: 24px; align-items: start; }
  .ajanda { position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; overscroll-behavior: contain; padding-right: 4px; }
  .tk-gun { height: 116px; align-items: stretch; justify-content: flex-start; gap: 4px; padding: 6px; }
  .tk-no { align-self: flex-start; font-size: 14px; }
  .tk-gun .tk-noktalar { display: none; }
  .tk-isler { display: flex; flex-direction: column; gap: 3px; min-width: 0; width: 100%; }
  .tk-is { display: block; min-width: 0; padding: 2px 5px; border-left: 3px solid var(--nane); background: rgba(255,255,255,.09); font-family: var(--f-govde); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--beyaz); }
  .tk-is.soluyor { border-left-color: var(--turuncu); }
  .tk-is.acti { border-left-color: var(--sari); color: var(--ikincil); text-decoration: line-through; }
  .tk-is-fazla { font-family: var(--f-mono); font-size: 10px; font-weight: 600; color: var(--sari); text-align: left; padding-left: 4px; }
  .tk-gun[aria-pressed="true"] .tk-is { background: rgba(28,63,140,.1); color: var(--mavi); }
  .tk-gun[aria-pressed="true"] .tk-is-fazla { color: var(--mavi); }
  .tk-gun.disarida .tk-is { opacity: .6; }
  .tk-gunadi { font-size: 11px; padding: 8px 0; }

  /* ---------- Ara: solda sonuçlar, sağda önizleme ---------- */
  .ara-duzen { display: grid; grid-template-columns: minmax(0, 1fr) 420px; gap: 24px; align-items: start; }
  .ara-onizleme { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 20px; max-height: calc(100vh - 40px); overflow-y: auto; }
  .ara-onizleme .md-bos { padding-top: 12px; }
  .onizleme-kart { transform: none; }

  /* ---------- Ben: iki sütun ---------- */
  .ben-duzen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; align-items: start; }
  .ben-sayfa > .dipnot { display: none; }
  .et-yonetim { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 32px; }
  .etiketler-sayfa { max-width: 1100px; }

  /* Yönetim: tablolar tam genişlik, yatay kaydırma yok */
  .tablo-kutu { overflow-x: visible; }
  .yonetim-izgara { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

/* Dar masaüstü (1024–1279): ray ve panel sıkışır; etiketler ve adlar yine görünür. */
@media (min-width: 1024px) and (max-width: 1279px) {
  :root { --ray: 212px; --panel: 340px; --yan: 290px; }
  .sayfa, .sayfa.yonetim { padding: 24px 24px 48px; }
  .ray { padding: 14px 10px 8px; gap: 12px; }
  .ray-marka-ad { font-size: 36px; letter-spacing: 4px; }
  .ray-marka-meta > span + span { display: none; }
  .ray-sekme { font-size: 16px; gap: 10px; min-height: 46px; padding: 0 10px; }
  .ray-sekme kbd { display: none; }
  .ray-ekle { font-size: 21px; height: 54px; }
  .plan { grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); }
  .plan > .oda-karo { min-height: 168px; }
  .ara-duzen { grid-template-columns: minmax(0, 1fr) 340px; }
  .bahce-sayfa.md > .md-ana, .bahce-sayfa.md.md-secili > .md-ana { grid-template-columns: minmax(0, 1fr); }
  .tk-gun { height: 104px; }
  .gorev-tablo .gt-saat { width: 56px; }
  .gorev-tablo .gt-tekrar { width: 84px; }
  .gorev-tablo .gt-durum { width: 92px; }
}

/* Geniş masaüstü: oda üst bölümü iki sütun (plan | toz + geçit + düğmeler) */
@media (min-width: 1440px) {
  .oda-sayfa.md > .md-ana, .oda-sayfa.md.md-secili > .md-ana {
    display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 14px 20px; align-items: start;
    grid-template-areas: "baslik baslik" "plan toz" "plan dugme" "plan gecit" "suzgec suzgec" "notlar notlar" "liste liste";
    grid-template-rows: auto auto auto 1fr auto auto auto;
  }
  .oda-sayfa .md-ana > .baslik-blok { grid-area: baslik; }
  .oda-sayfa .md-ana > .oda-plani { grid-area: plan; }
  .oda-sayfa .md-ana > .oda-toz { grid-area: toz; }
  .oda-sayfa .md-ana > .oda-dugmeler { grid-area: dugme; flex-direction: column; }
  .oda-sayfa .md-ana > .oda-dugmeler > .dugme { flex: 0 0 auto; justify-content: flex-start; }
  .oda-sayfa .md-ana > .oda-gecit { grid-area: gecit; }
  .oda-sayfa .md-ana > .et-suzgec { grid-area: suzgec; }
  .oda-sayfa .md-ana > .liste-bolum { grid-area: liste; }
  .oda-sayfa .md-ana > .oda-notlar, .oda-sayfa .md-ana > .bos { grid-area: notlar; }
  .oda-sayfa .oda-plani { height: 100%; min-height: 250px; }
}
