/* ──────────────────────────────────────────────────────────────
   TAM — design tokens
   Light: Apple-ish system surfaces. Dark: elegant near-black.
   Density adjusts spacing+font scale globally.
   ────────────────────────────────────────────────────────────── */

:root {
  --accent: #0a84ff;
  --accent-soft: rgba(10, 132, 255, 0.14);

  /* Bottom safe-area handle — TARAYICIDA env=0 (etkisiz). PWA standalone'da
     env(~34) değerini direkt kullanmak yerine kompakt ayara çekiyoruz. */
  --bottom-inset: env(safe-area-inset-bottom);
  /* Tabbar dikey ofseti — TEK kaynak. PWA'da --pwa-tabbar-shift olarak override
     edilir; --tabbar-shift hem @media hem .is-standalone kuralında AYNI değişkeni
     okur (önceki çakışmayı önler). Negatif = aşağı kaydır, pozitif = yukarı. */
  --pwa-tabbar-shift: 0px;     /* ← PWA için ayarlamak istediğin TEK SAYI */
  --tabbar-shift: 0px;          /* tarayıcı default */

  /* Surfaces */
  --bg: #f3f3f7;
  --bg-elev: #ffffff;
  --bg-overlay: rgba(245, 245, 247, 0.78);
  --surface-2: #ebebef;
  --surface-3: #e2e2e7;

  /* Text */
  --text: #0a0a0c;
  --text-2: #6e6e73;
  --text-3: #aeaeb2;
  --text-on-accent: #ffffff;

  /* Lines */
  --hairline: rgba(60, 60, 67, 0.12);
  --hairline-2: rgba(60, 60, 67, 0.08);

  /* Status colors */
  --green: #34c759;
  --orange: #ff9500;
  --red: #ff3b30;
  --amber: #ffcc00;
  --purple: #af52de;
  --pink: #ff2d55;
  --teal: #5ac8fa;

  /* Density (rahat by default) */
  --density: 1;            /* 1 = comfortable, 0.86 = compact */
  --r-card: 18px;
  --r-tile: 14px;
  --r-pill: 999px;
  --r-sheet: 22px;

  /* Shadows — very subtle */
  --shadow-sm: 0 1px 2px rgba(15, 15, 20, 0.05), 0 0 0 0.5px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 2px 6px rgba(15, 15, 20, 0.05), 0 8px 24px rgba(15, 15, 20, 0.06);
  --shadow-lg: 0 12px 40px rgba(15, 15, 20, 0.14), 0 2px 8px rgba(15, 15, 20, 0.06);

  /* iOS status-bar contrast */
  --status-fg: #000;
}

[data-theme="dark"] {
  --bg: #000000;
  --bg-elev: #1c1c1e;
  --bg-overlay: rgba(20, 20, 22, 0.72);
  --surface-2: #2c2c2e;
  --surface-3: #3a3a3c;

  --text: #ffffff;
  --text-2: rgba(235, 235, 245, 0.6);
  --text-3: rgba(235, 235, 245, 0.3);

  --hairline: rgba(84, 84, 88, 0.45);
  --hairline-2: rgba(84, 84, 88, 0.25);

  --accent-soft: rgba(10, 132, 255, 0.22);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.5), 0 0 0 0.5px rgba(255, 255, 255, 0.04);
  --shadow-md: 0 2px 6px rgba(0, 0, 0, 0.4), 0 8px 24px rgba(0, 0, 0, 0.45);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.6);

  --status-fg: #fff;
}

/* Density */
[data-density="compact"] {
  --density: 0.88;
}

/* PWA standalone: tabbar'ı viewport'un en altına yapıştır.
   --bottom-inset = 0 → padding-bottom yok → tab label'lar ekranın en altına
   konumlanır. iOS home indicator pill (~5px alt-orta) sistem-üst layer'ında
   çizilir; tabbar üzerine bindirir ama dock görsel olarak dipte oturur.
   Tarayıcı modu bu bloktan etkilenmez (env=0 zaten oradaki değer).
   Hem CSS @media hem JS-eklenen .is-standalone (iOS apple-mobile-web-app-capable
   PWA'sında media query bazen match etmediği için, JS fallback). */
@media (display-mode: standalone), (display-mode: fullscreen), (display-mode: minimal-ui) {
  :root {
    --bottom-inset: 0px;
    --tabbar-shift: var(--pwa-tabbar-shift);
  }
}
html.is-standalone {
  --bottom-inset: 0px;
  --tabbar-shift: var(--pwa-tabbar-shift);
}

/* Reset-ish */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: #1a1a1c; font-family: 'Inter', -apple-system, system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
button { font: inherit; color: inherit; background: none; border: none; padding: 0; cursor: pointer; }
input, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
::-webkit-scrollbar { display: none; width: 0; height: 0; }
* { scrollbar-width: none; -ms-overflow-style: none; }

/* App canvas inside the device frame */
.tam-root {
  width: 100%;
  height: 100%;
  position: relative;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', -apple-system, system-ui, sans-serif;
  font-feature-settings: 'cv11', 'ss01', 'ss03';
  letter-spacing: -0.012em;
  overflow: hidden;
}

/* Scroll container per screen */
.tam-scroll {
  position: absolute; inset: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-top: 54px;       /* status bar */
  /* Floating .navbar (bottom:22 + height:62 = ~84px) + nefes payı.
     Tarayıcıda 110px; PWA standalone'da +--bottom-inset (home indicator). */
  padding-bottom: calc(110px + var(--bottom-inset));
}

/* Tap feedback */
.tap {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}
/* .tap-soft standalone bir varyant (§7) — kendi transition'ı olmadan :active
   snap atıyordu; aynı süre/eğri ile pürüzsüzleştir. */
.tap-soft {
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.18s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.18s ease;
}
.tap:active { transform: scale(0.97); opacity: 0.8; }
.tap-soft:active { transform: scale(0.985); opacity: 0.9; }

/* .rise — bölüm bazlı "oturma" KALDIRILDI.
   ESKİDEN translateY(10px)→0 idi; kalabalık panel ekranlarında transform metni
   GPU katmanında grayscale AA ile çizip bitince keskin metne "küt" snap
   yaptırıyordu (harf oturması). Opacity fade denendi ama o da içeriği geçiş
   sırasında ŞEFFAF yapıp yandan-slide'ı görünmez kılıyordu. Çözüm: .rise
   etkisiz → içerik anında, TAM OPAK; sekme/ekran geçişinde yalnız .screen-enter
   yatay slide'ı oynar ve opak içerik kaydığı için net & yumuşak görünür.
   .rise-N gecikmeleri etkisiz (animasyon yok). */
.rise { animation: none; }

/* Skeleton shimmer */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position: 200% 0; }
}
.skel {
  background: linear-gradient(90deg, var(--surface-2) 0%, var(--surface-3) 50%, var(--surface-2) 100%);
  background-size: 200% 100%;
  animation: shimmer 1.6s infinite linear;
  border-radius: 8px;
}

/* Cross-screen transitions — yandan slide KORUNUR (kullanıcı bunu istiyor).
   "Küt" his yatay slide'dan değil, bölümlerin dikey OTURMASINDAN (.rise
   translateY) geliyordu → yalnız .rise opacity'ye alındı. Slide tüm ekranı
   tek parça kaydırır; içerik bölümleri dikey snap yapmaz. */
.screen-enter { animation: screen-in 0.42s cubic-bezier(0.32, 0.72, 0, 1) both; }
.screen-enter-back { animation: screen-in-back 0.42s cubic-bezier(0.32, 0.72, 0, 1) both; }
@keyframes screen-in {
  from { transform: translateX(20px); }
  to   { transform: translateX(0); }
}
@keyframes screen-in-back {
  from { transform: translateX(-20px); }
  to   { transform: translateX(0); }
}

/* Hareket azaltma tercihi — giriş animasyonları kapanır, içerik anında görünür
   (opacity'ye geçtik; animasyon çalışmazsa içerik görünür kalsın). */
@media (prefers-reduced-motion: reduce) {
  .rise, .screen-enter, .screen-enter-back { animation: none; opacity: 1; }
}

/* Sheet (modal) — uses forwards so element shows at rest position if animation can't run */
.sheet-enter { animation: sheet-up 0.36s cubic-bezier(0.32, 0.72, 0, 1) forwards; }
@keyframes sheet-up {
  from { transform: translateY(100%); }
  to   { transform: translateY(0); }
}
.sheet-bg-enter { animation: fade-in 0.36s ease forwards; }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* Pop (small popovers) */
.pop-enter { animation: pop 0.24s cubic-bezier(0.2, 1.6, 0.4, 1) both; transform-origin: top center; }
@keyframes pop {
  from { opacity: 0; transform: scale(0.92); }
  to   { opacity: 1; transform: scale(1); }
}

/* Primitives — buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; height: 50px; padding: 0 22px;
  border-radius: var(--r-pill); font-weight: 600;
  letter-spacing: -0.01em; font-size: 16px;
}
.btn-primary { background: var(--accent); color: var(--text-on-accent); }
.btn-secondary { background: var(--surface-2); color: var(--text); }
.btn-ghost { background: transparent; color: var(--accent); }

/* Pills / chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  height: 32px; padding: 0 12px;
  border-radius: var(--r-pill);
  background: var(--surface-2); color: var(--text);
  font-size: 13.5px; font-weight: 540;
  letter-spacing: -0.005em;
}
.chip-active { background: var(--text); color: var(--bg-elev); }

/* Card */
.card {
  background: var(--bg-elev);
  border-radius: var(--r-card);
  box-shadow: var(--shadow-sm);
}

/* Inset list (iOS grouped) */
.list {
  background: var(--bg-elev);
  border-radius: var(--r-card);
  overflow: hidden;
  margin: 0 16px;
}
.list-row {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; position: relative;
}
.list-row + .list-row::before {
  content: ''; position: absolute; left: 16px; right: 0; top: 0;
  height: 0.5px; background: var(--hairline);
}
.list-row.has-icon + .list-row::before { left: 60px; }

/* Section header (small uppercase) */
.section-h {
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--text-2);
  padding: 22px 22px 8px;
}

/* Subtle glass for floating overlays */
.glass {
  background: var(--bg-overlay);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 0.5px solid var(--hairline-2);
}

/* ==================================================================
   Floating glass bottom navigation (.navbar) — Claude Design handoff.
   Token'lar panelin :root'undakilerle BİREBİR (--accent, --accent-soft,
   --bg-overlay, --hairline-2, --text-3, --bg) → remap yok. Eski katı
   .tabbar/.tab bunun yerini aldı. Masaüstünde (≥768px) .navbar gizlenir
   (sidebar devrede) — aşağıdaki media bloğuna bak. */
.navbar {
  position: absolute;            /* kapsayıcı (PhoneShell) position:relative */
  left: 14px; right: 14px; bottom: 22px;
  height: 62px;
  border-radius: 26px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 8px;
  z-index: 30;
  box-shadow: 0 10px 34px rgba(15, 15, 20, 0.16), 0 2px 8px rgba(15, 15, 20, 0.06);
  /* Sürükle-seç jesti: yatay sürükleme tarayıcı scroll/zoom'una kaçmasın +
     metin seçilmesin. */
  touch-action: none;
  -webkit-user-select: none; user-select: none;
  /* Scroll'da gizleme animasyonu */
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.32s ease;
}
[data-theme="dark"] .navbar {
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6), 0 0 0 0.5px rgba(255, 255, 255, 0.05);
}
.navbar.is-hidden {
  transform: translateY(170%);
  opacity: 0;
  pointer-events: none;
}
.navbar-bg {
  position: absolute; inset: 0;
  border-radius: inherit;
  pointer-events: none;
  background: var(--bg-overlay, rgba(245, 245, 247, 0.78));
  -webkit-backdrop-filter: blur(30px) saturate(180%);
  backdrop-filter: blur(30px) saturate(180%);
  border: 0.5px solid var(--hairline-2, rgba(60, 60, 67, 0.08));
}
/* Genişleyen kapsül sekme — pasif = yalnız ikon; aktif = ikon+yazı YAN YANA
   bir accent kapsülüne açılır. Yazı açılması GRID 0fr→1fr tekniğiyle yapılır:
   max-width tahmini yok → etiket tam içeriği kadar, milimetrik ve akıcı açılır
   (easing gerçekten görünür, "boşlukta akan" snap yok). Kapsül aktif .navtab'ın
   kendi arka planıdır (kayan gösterge yok).
   Ortak yumuşak yavaşlama eğrisi: cubic-bezier(.32,.72,0,1) (overshoot yok). */
.navtab {
  position: relative;
  z-index: 1;
  flex: 0 1 auto;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 999px;
  color: var(--text-3, #aeaeb2);
  background: transparent;
  border: none; cursor: pointer; font: inherit;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.5s cubic-bezier(0.32, 0.72, 0, 1), color 0.32s ease, transform 0.18s ease;
}
.navtab-iconwrap {
  flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.5s cubic-bezier(0.32, 0.72, 0, 1);
}
.navtab.is-active .navtab-iconwrap { transform: scale(1.04); }
/* Etiket: tek-sütun grid; 0fr (kapalı) ↔ 1fr (içerik genişliği). İç span
   overflow:hidden + min-width:0 ile track'e kırpılır. */
.navtab-label {
  display: grid;
  grid-template-columns: 0fr;
  opacity: 0;
  transition: grid-template-columns 0.5s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.34s ease;
}
.navtab-label-inner {
  overflow: hidden;
  min-width: 0;
  white-space: nowrap;
  padding-left: 8px;          /* ikon-yazı boşluğu — kapanınca yazıyla birlikte kırpılır */
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.navtab.is-active {
  background: var(--accent-soft, rgba(10, 132, 255, 0.14));
  color: var(--accent, #0a84ff);
}
.navtab.is-active .navtab-label {
  grid-template-columns: 1fr;
  opacity: 1;
}
.navtab:not(.is-active):active { transform: scale(0.92); }
/* Sürükleme sırasında highlight parmağa daha çabuk yetişsin (daha kısa süre);
   bırakınca normal 0.5s yumuşak oturma geri gelir. */
.navbar.is-dragging .navtab,
.navbar.is-dragging .navtab-iconwrap,
.navbar.is-dragging .navtab-label { transition-duration: 0.28s; }

/* İçerik soluması (scrim) — floating bar'ın arkasındaki içerik alta yumuşar. */
.bottom-scrim {
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 132px;
  z-index: 20;
  pointer-events: none;
  background: linear-gradient(to top, var(--bg, #f3f3f7) 28%, transparent 100%);
  transition: opacity 0.4s ease;
}
.bottom-scrim.is-hidden { opacity: 0; }

/* FAB — floating bar'ın üstünde. tabbar-shift uygulanırsa FAB da onunla birlikte iner. */
.fab {
  position: absolute; right: 18px; bottom: calc(82px + var(--bottom-inset) + var(--tabbar-shift));
  width: 56px; height: 56px; border-radius: 18px;
  background: var(--accent); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(10, 132, 255, 0.4), 0 2px 6px rgba(10, 132, 255, 0.3);
  z-index: 25;
  /* Floating bar ile birlikte scroll'da gizlenir */
  transition: transform 0.46s cubic-bezier(0.32, 0.72, 0, 1), opacity 0.32s ease;
}
.fab.is-hidden {
  transform: translateY(220%) scale(0.92);
  opacity: 0;
  pointer-events: none;
}

/* Number / metric scale */
.metric {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

/* Avatar */
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 600; font-size: 14px;
  letter-spacing: -0.01em; flex-shrink: 0;
}

/* Service color dots (used a lot) */
.dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }

/* ──────────────────────────────────────────────────────────────
   Ekran viewport sarmalayıcısı (app.jsx Router) — eskiden inline
   style={{position:'absolute',inset:0}} idi. Sınıfa taşındı ki masaüstünde
   sidebar için sol ofset !important'sız verilebilsin. Mobil sonuç birebir aynı.
   ────────────────────────────────────────────────────────────── */
.tam-viewport { position: absolute; inset: 0; }

/* Sheet panel temeli (ui.jsx Sheet) — pozisyon/köşe/maxHeight/gölge eskiden
   inline idi; mobil değerleri burada. Masaüstü (≥768) ortalanmış modal override'ı
   bu sınıfı temiz dövebilsin diye taşındı. < 768px: prototiple birebir alttan sheet. */
.tam-sheet-panel {
  position: absolute; left: 0; right: 0; bottom: 0;
  border-top-left-radius: var(--r-sheet);
  border-top-right-radius: var(--r-sheet);
  max-height: 94%;
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.25);
}

/* ──────────────────────────────────────────────────────────────
   Masaüstü / tablet sol kenar çubuğu (.tam-sidenav)
   Mobilde display:none → hiç görünmez (mobil .tabbar devrede).
   ≥768px'de görünür; .tabbar/.tab/.tabbar-bg görsel dilinin DİKEY karşılığı.
   ────────────────────────────────────────────────────────────── */
.tam-sidenav {
  display: none;                 /* mobil: gizli (media query'de flex olur) */
  position: absolute; top: 0; left: 0; bottom: 0;
  width: var(--sidebar-w);
  flex-direction: column;
  padding: 22px 14px calc(18px + var(--bottom-inset));
  background: var(--bg-overlay);
  backdrop-filter: blur(28px) saturate(180%);
  -webkit-backdrop-filter: blur(28px) saturate(180%);
  border-right: 0.5px solid var(--hairline-2);
  z-index: 40;                   /* içeriğin üstü, sheet(60) altı */
}
.tam-sidenav-brand { padding: 6px 10px 18px; }
.tam-sidenav-logo {
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(135deg, #0a0a0c, #1f3a2e);
  color: #fff; font-weight: 700; font-size: 15px; letter-spacing: -0.4px;
  display: flex; align-items: center; justify-content: center;
}
/* ── Şube anahtarı (zincir · migration 056) ──────────────────────
   Tek şubeli kullanıcıda bileşen HİÇ render edilmez, yani bu kurallar
   ölü kalır. Yeni bir görsel dil İCAT EDİLMEZ: .tam-sidenav-item'ın
   token'ları (yükseklik, radius, hairline, --text-2) yeniden kullanılır.
   .tam-branchsw kenar çubuğunun İÇİNDE yaşar; kenar çubuğu mobilde
   display:none olduğundan mobil görünüme hiçbir şey eklemez. */
.tam-branchsw {
  display: flex; flex-direction: column; gap: 1px;
  width: 100%; padding: 8px 10px 9px; margin: 0 0 12px;
  border-radius: var(--r-tile); text-align: left;
  background: var(--fill-1); border: 0.5px solid var(--hairline-2);
}
.tam-branchsw-group {
  font-size: 11px; font-weight: 600; letter-spacing: 0.02em;
  color: var(--text-3); text-transform: uppercase;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tam-branchsw-name {
  display: flex; align-items: center; justify-content: space-between; gap: 6px;
  font-size: 14px; font-weight: 590; color: var(--text-1); letter-spacing: -0.01em;
}
/* Mobil çip — Bugün başlığında. Küçük, sessiz; başlığın hiyerarşisini
   bozmaz (DESIGN_SYSTEM: tek birincil eylem, bu ikincil bir bağlam). */
.tam-branchchip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 9px 3px 10px; border-radius: 999px;
  background: var(--fill-1); border: 0.5px solid var(--hairline-2);
  font-size: 13px; font-weight: 560; color: var(--text-2);
  letter-spacing: -0.01em; max-width: 60vw;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
/* Sheet içeriği — iki yüzey de aynı listeyi açar. */
.tam-branchlist { display: flex; flex-direction: column; gap: 2px; padding: 4px 0 8px; }
.tam-branchrow {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 52px; padding: 8px 14px;
  border-radius: var(--r-tile); text-align: left; color: var(--text-1);
}
.tam-branchrow:disabled { opacity: 0.55; }
.tam-branchrow.is-active { background: var(--fill-1); }
.tam-branchrow-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tam-branchrow-name {
  font-size: 15px; font-weight: 570; letter-spacing: -0.01em;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.tam-branchrow-sub { font-size: 12.5px; color: var(--text-3); }
.tam-branchrow-mark { font-size: 15px; color: var(--text-3); }

.tam-sidenav-items { display: flex; flex-direction: column; gap: 2px; flex: 1; min-height: 0; }
.tam-sidenav-item {
  display: flex; align-items: center; gap: 12px;
  height: 44px; padding: 0 12px; border-radius: var(--r-tile);
  color: var(--text-2); font-size: 15px; font-weight: 540;
  letter-spacing: -0.01em; text-align: left; width: 100%;
}
.tam-sidenav-item span { flex: 1; min-width: 0; }
.tam-sidenav-item.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }
.tam-sidenav-footer { padding-top: 12px; }
.tam-sidenav-new {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  width: 100%; height: 46px; border-radius: var(--r-pill);
  background: var(--accent); color: #fff;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  box-shadow: 0 8px 24px color-mix(in oklab, var(--accent), transparent 64%);
}

/* ──────────────────────────────────────────────────────────────
   EKİP ERİŞİMİ GEÇİDİ — "Sahne" (screen-panel-gate.jsx · PanelGate)

   Panel açılmadan ÖNCEKİ tek ekran: "Kim giriş yapıyor?". Sekme çubuğu,
   başlık, kaydırma yok → bu bir uygulama ekranı değil, bir SAHNE.
   Bu yüzden panelin liste/kart diline değil kendi diline sahiptir:
   tam-ekran zemin, büyük dokunma hedefleri, tek soru.

   Akrabası /personel (CRM): yuvarlak-KARE avatar (panelin dairesi değil),
   hairline kart, tabular rakam. Ama rengi panelindir — sahibin seçtiği
   --accent hâlesi zemine düşer, böylece her işletmenin sahnesi kendine
   benzer. Tema (açık/koyu) kullanıcının tercihidir; sahne ikisinde de
   birinci sınıf çizilir, koyu tema "zorla karartılmaz".

   ERİŞİLEBİLİRLİK: tuş takımı fiziksel klavyeyi DIŞLAMAZ (JSX'te keydown);
   hareket azaltma tercihine uyulur; her hedef ≥44px.
   ────────────────────────────────────────────────────────────── */
/* Dikey ortalama `justify-content:center` ile DEĞİL çocuğun `margin:auto`'su ile
   yapılır: kalabalık bir ekipte (8+ profil) içerik ekranı aşınca justify-content
   taşan üst kısmı kaydırma dışında bırakır ve başlık ULAŞILAMAZ olur. */
.gate-stage {
  position: absolute; inset: 0;
  overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  padding: 20px 20px 0;
  padding-top: max(44px, calc(env(safe-area-inset-top) + 16px));
  padding-bottom: max(28px, calc(env(safe-area-inset-bottom) + 20px));
  --gate-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --gate-tile: 92px;
}

/* Zemindeki aksan hâlesi — DEKORATİF (aria-hidden). Tek renk yerine iki
   yumuşak daire: üstte marka aksanı, altta nötr derinlik. */
.gate-aura {
  position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background:
    radial-gradient(58% 42% at 50% -6%, color-mix(in oklab, var(--accent), transparent 84%), transparent 70%),
    radial-gradient(46% 34% at 50% 108%, color-mix(in oklab, var(--accent), transparent 92%), transparent 72%);
}
[data-theme="dark"] .gate-aura {
  background:
    radial-gradient(58% 42% at 50% -6%, color-mix(in oklab, var(--accent), transparent 74%), transparent 70%),
    radial-gradient(46% 34% at 50% 108%, color-mix(in oklab, var(--accent), transparent 88%), transparent 72%);
}

.gate-inner {
  position: relative; z-index: 1;
  width: 100%; max-width: 520px; margin: auto;
  display: flex; flex-direction: column;
}

/* ── Marka + işletme adı ─────────────────────────────────────── */
.gate-brand { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 22px; }
.gate-seal {
  width: 52px; height: 52px; border-radius: 15px;
  background: linear-gradient(135deg, #0a0a0c, #1f3a2e);
  color: #fff; font-weight: 700; font-size: 19px; letter-spacing: -0.5px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
}
/* İşletme adı — kiracı verisi, çevrilmez. Sahneyi "bu senin salonun" yapar. */
.gate-biz {
  font-size: 11.5px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--text-3);
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

.gate-head { text-align: center; margin-bottom: 26px; }
.gate-title { font-size: 26px; font-weight: 700; letter-spacing: -0.035em; }
.gate-sub { font-size: 14px; color: var(--text-2); margin-top: 5px; line-height: 1.45; }

/* ── Profil ızgarası ─────────────────────────────────────────── */
.gate-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(var(--gate-tile), 1fr));
  gap: 20px 14px;
  justify-content: center;
}
/* 1–2 profil varsa auto-fit ızgarayı geresin diye kolon sayısı sabitlenir
   (aksi halde tek profil tüm satırı kaplayıp devasa görünürdü). */
.gate-grid[data-count="1"] { grid-template-columns: var(--gate-tile); }
.gate-grid[data-count="2"] { grid-template-columns: repeat(2, var(--gate-tile)); }

.gate-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  width: 100%; padding: 0; background: none;
  -webkit-tap-highlight-color: transparent;
  animation: gate-fade 0.34s var(--gate-ease) both;
  animation-delay: calc(var(--i, 0) * 45ms);
}
.gate-card:focus-visible { outline: none; }
.gate-card:focus-visible .gate-tile { box-shadow: 0 0 0 3px var(--bg), 0 0 0 6px var(--accent); }

/* Kare değil YUVARLAK KARE: /personel avatarının büyütülmüş hâli. Panelin
   dairesel .avatar'ından bilinçli olarak ayrışır — burası panel değil. */
.gate-tile {
  position: relative;
  width: var(--gate-tile); height: var(--gate-tile);
  border-radius: calc(var(--gate-tile) * 0.28);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: calc(var(--gate-tile) * 0.3); font-weight: 650;
  letter-spacing: -0.02em;
  background-size: cover; background-position: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.22s var(--gate-ease), box-shadow 0.22s ease, filter 0.22s ease;
}
.gate-card:active .gate-tile { transform: scale(0.955); }

/* Rol işareti — bağırmaz. Sahip: taç. Yönetici: aksan noktası. Personel: yok. */
.gate-mark {
  position: absolute; right: -3px; bottom: -3px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev); color: var(--text-2);
  box-shadow: 0 0 0 2.5px var(--bg), var(--shadow-sm);
}
.gate-mark.is-owner { color: var(--amber); }
.gate-mark.is-admin { color: var(--accent); }

/* Kilitli profil: karartılır ama GİZLENMEZ — kişi kendi kartını görmeli,
   yoksa "profilim silindi mi?" paniği olur. Dokunuşta süre bilgisi verilir. */
.gate-card.is-locked .gate-tile { filter: grayscale(0.85) brightness(0.72); }
.gate-lock {
  position: absolute; inset: 0; border-radius: inherit;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10, 10, 12, 0.42); color: #fff;
}

.gate-name {
  font-size: 14px; font-weight: 560; letter-spacing: -0.01em;
  color: var(--text-2); text-align: center; line-height: 1.25;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  transition: color 0.18s ease;
}
.gate-role { font-size: 11.5px; font-weight: 500; color: var(--text-3); margin-top: -6px; }

/* ── PIN adımı ───────────────────────────────────────────────── */
.gate-hero { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-bottom: 20px; }
.gate-hero .gate-tile { --gate-tile: 76px; width: 76px; height: 76px; border-radius: 22px; font-size: 23px; }
.gate-hero-name { font-size: 20px; font-weight: 680; letter-spacing: -0.03em; }
.gate-hero-sub { font-size: 13.5px; color: var(--text-2); margin-top: -8px; }

/* Nokta yuvaları: ilk 4 dolu çerçeve (zorunlu), son 2 kesik (opsiyonel).
   PIN uzunluğu kişiden kişiye değişir; yuvalar bunu yalan söylemeden anlatır. */
.gate-dots { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 4px 0 20px; }
.gate-dot {
  width: 14px; height: 14px; border-radius: 50%;
  border: 1.5px solid var(--hairline); background: transparent;
  transition: transform 0.16s var(--gate-ease), background-color 0.16s ease, border-color 0.16s ease;
}
.gate-dot.is-optional { border-style: dashed; opacity: 0.55; }
.gate-dot.is-on {
  background: var(--accent); border-color: var(--accent);
  transform: scale(1.14); opacity: 1;
}
.gate-dots.is-error { animation: gate-shake 0.42s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }
.gate-dots.is-error .gate-dot { border-color: var(--red); }
.gate-dots.is-error .gate-dot.is-on { background: var(--red); }

/* Tuş takımı — kasa/POS mantığı. Salon tezgâhındaki tablette parmakla
   girilecek; sistem klavyesini çağırıp ekranın yarısını kaplamaz. */
.gate-keys {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 10px; max-width: 300px; width: 100%; margin: 0 auto;
}
.gate-key {
  height: 62px; border-radius: var(--r-tile);
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elev); color: var(--text);
  font-size: 24px; font-weight: 520; font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  box-shadow: inset 0 0 0 0.5px var(--hairline-2), var(--shadow-sm);
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.14s var(--gate-ease), background-color 0.14s ease;
}
.gate-key:active { transform: scale(0.94); background: var(--surface-2); }
.gate-key.is-quiet { background: transparent; box-shadow: none; color: var(--text-2); font-size: 15px; font-weight: 560; }
.gate-key.is-quiet:active { background: var(--surface-2); }
.gate-key[disabled] { opacity: 0.35; }

/* "Beni hatırla" — tuş takımının altında duran ikincil karar. Birincil
   eylemle (PIN) yarışmaz: dolgu yok, yalnız kutu + iki satır metin.
   İşaretliyken kutu aksana döner; metin rengi DEĞİŞMEZ (renk tek başına
   durumu anlatmaz, alt satır zaten yazıyor). */
.gate-remember { margin-top: 18px; display: flex; justify-content: center; }
.gate-remember-btn {
  display: flex; align-items: center; gap: 12px;
  width: 100%; max-width: 300px; min-height: 44px;
  padding: 8px 10px; border-radius: var(--r-tile);
  background: transparent; text-align: left;
  -webkit-tap-highlight-color: transparent;
  transition: background-color 0.16s ease, opacity 0.18s ease;
}
.gate-remember-btn:active { background: var(--surface-2); }
.gate-remember-btn[disabled] { opacity: 0.4; }
.gate-remember-box {
  flex: 0 0 auto; width: 22px; height: 22px; border-radius: 7px;
  display: flex; align-items: center; justify-content: center;
  border: 1.5px solid var(--hairline); color: #fff;
  transition: background-color 0.16s ease, border-color 0.16s ease;
}
.gate-remember-btn.is-on .gate-remember-box { background: var(--accent); border-color: var(--accent); }
.gate-remember-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.gate-remember-title { font-size: 14.5px; font-weight: 560; letter-spacing: -0.01em; }
.gate-remember-sub { font-size: 12px; color: var(--text-2); line-height: 1.35; }

/* ── Ortak: hata, bilgi, çıkış kapısı ────────────────────────── */
.gate-msg { font-size: 13.5px; font-weight: 500; text-align: center; margin-top: 16px; min-height: 18px; line-height: 1.45; }
.gate-msg.is-error { color: var(--red); }
.gate-msg.is-note  { color: var(--text-2); }

.gate-foot { margin-top: 24px; text-align: center; }
.gate-exit {
  padding: 12px 16px; min-height: 44px;
  font-size: 13.5px; font-weight: 500; color: var(--text-2);
  border-radius: var(--r-pill);
  transition: opacity 0.18s ease, background-color 0.18s ease;
}
.gate-exit[disabled] { opacity: 0.5; }

/* Yalnız ekran okuyucu — görsel akışa hiç girmez (clip-path yerine 1px kutu:
   eski WebKit'lerde de güvenli). */
.gate-sr {
  position: absolute; width: 1px; height: 1px;
  margin: -1px; padding: 0; border: 0;
  overflow: hidden; white-space: nowrap;
  clip: rect(0 0 0 0); clip-path: inset(50%);
}

/* Bootstrap (ilk kurulum) alan satırları — panelin .list dilini korur. */
.gate-field { display: flex; flex-direction: column; gap: 0; padding: 6px 16px; }
.gate-field-label { font-size: 12px; color: var(--text-2); font-weight: 500; padding-top: 10px; }
.gate-field-input {
  width: 100%; min-height: 28px; padding: 6px 0 12px;
  background: transparent; border: none; outline: none;
  font-size: 16px; font-weight: 500; color: var(--text); letter-spacing: -0.2px;
}

@keyframes gate-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes gate-shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}
@media (prefers-reduced-motion: reduce) {
  .gate-card { animation: none; }
  .gate-dots.is-error { animation: none; }
  .gate-tile, .gate-dot, .gate-key { transition: none; }
}

/* Küçük telefon (SE sınıfı): kutu daralır, ızgara üç sütunda kalsın. */
@media (max-width: 380px) {
  .gate-stage { --gate-tile: 80px; padding-left: 16px; padding-right: 16px; }
  .gate-grid { gap: 16px 12px; }
  .gate-title { font-size: 23px; }
  .gate-key { height: 56px; font-size: 22px; }
}

/* İmleçli cihazlar — Netflix'in "adı beyazlar" jesti: kart canlanır,
   ad tam kontrasta çıkar. Dokunmatikte tetiklenmez. */
@media (hover: hover) {
  .gate-card:hover .gate-tile { transform: translateY(-3px) scale(1.03); box-shadow: var(--shadow-lg); }
  .gate-card:hover .gate-name { color: var(--text); }
  .gate-card.is-locked:hover .gate-tile { transform: none; }
  .gate-key:hover { background: var(--surface-2); }
  .gate-key.is-quiet:hover { background: var(--surface-2); }
  .gate-exit:hover { background: var(--surface-2); color: var(--text); }
}

/* ──────────────────────────────────────────────────────────────
   KURULUM & TUR  (docs/ONBOARDING-PLANI.md §7)
   ──────────────────────────────────────────────────────────────
   KIRMIZI ÇİZGİ: metin taşıyan hiçbir öğe transform ile animasyon ALMAZ.
   Metin yalnız opacity ile gelir. Sebebi .rise'ın kapatılma sebebiyle
   AYNI (bkz. yukarıdaki .rise notu): transform metni GPU katmanında
   grayscale AA ile çizip bitişte keskin metne "küt" oturtuyor.
   Hareket, metin taşımayan katmanlara verilir: ikon diskleri, ilerleme
   halkası, spot ışığı, onay tiki, kart zemini.

   Süre sözlüğü (yeni easing UYDURULMAZ, hepsi dosyada zaten var):
     micro 180ms  · pop 240ms · swap 360ms · travel 520ms · draw 320ms
   Bütçe: bir durak açıldıktan sonra en geç 600ms içinde yerine oturur.
   ────────────────────────────────────────────────────────────── */
.ob-shell, .tour-layer {
  --ob-ease: cubic-bezier(0.32, 0.72, 0, 1);
  --ob-pop:  cubic-bezier(0.2, 1.6, 0.4, 1);
}

/* ── Kurulum kabuğu ──────────────────────────────────────────── */
.ob-shell {
  position: absolute; inset: 0;
  background: var(--bg); color: var(--text);
  display: flex; flex-direction: column;
  overflow: hidden;
}
.ob-head {
  display: flex; align-items: center; gap: 12px;
  padding: max(18px, calc(env(safe-area-inset-top) + 8px)) 18px 6px;
}
.ob-body {
  flex: 1; min-height: 0; overflow-y: auto;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: 4px 20px 8px;
}
.ob-foot {
  padding: 10px 20px max(18px, calc(env(safe-area-inset-bottom) + 12px));
  display: flex; gap: 10px;
}

/* İlerleme halkası — metin YOK, yüzde yazılmaz. stroke-dashoffset ile
   dolar; SVG olduğu için transform yasağının kapsamı dışında. */
.ob-ring { width: 34px; height: 34px; flex: none; transform: rotate(-90deg); }
.ob-ring circle { fill: none; stroke-width: 3; stroke-linecap: round; }
.ob-ring .ob-ring-bg { stroke: var(--surface-2); }
.ob-ring .ob-ring-fg {
  stroke: var(--accent);
  transition: stroke-dashoffset 420ms var(--ob-ease);
}

/* Durak geçişi: giden opacity 1→0 (140ms), gelen 0→1 (200ms).
   Metin KAYMAZ. Yalnız .ob-step-deco (dekoratif katman) hafif kayar. */
.ob-step { animation: ob-step-in 200ms var(--ob-ease) both; }
.ob-step.is-leaving { animation: ob-step-out 140ms var(--ob-ease) both; }
@keyframes ob-step-in  { from { opacity: 0; } to { opacity: 1; } }
@keyframes ob-step-out { from { opacity: 1; } to { opacity: 0; } }

/* Dekoratif katman (ikon diski, mühür zemini) — metin taşımaz, kayabilir. */
.ob-step-deco { animation: ob-deco-in 360ms var(--ob-ease) both; }
@keyframes ob-deco-in {
  from { opacity: 0; transform: translateY(8px) scale(0.96); }
  to   { opacity: 1; transform: none; }
}

/* Kademeli giriş — en fazla 3 kademe × 40ms (bütçe). Yalnız opacity. */
.ob-stagger > * { animation: ob-fade 240ms var(--ob-ease) both; }
.ob-stagger > *:nth-child(1) { animation-delay: 0ms; }
.ob-stagger > *:nth-child(2) { animation-delay: 40ms; }
.ob-stagger > *:nth-child(3) { animation-delay: 80ms; }
.ob-stagger > *:nth-child(n+4) { animation-delay: 120ms; }
@keyframes ob-fade { from { opacity: 0; } to { opacity: 1; } }

/* Seçim kartı (sektör, ekip, saat şablonu) — Kart Picker dili:
   outline 2px var(--accent). Kart METİN taşır → transform YOK,
   hareket ikon diskinde (.ob-card-ico). */
.ob-card {
  width: 100%; text-align: left;
  display: flex; align-items: center; gap: 13px;
  padding: 14px 15px; margin-bottom: 9px;
  background: var(--bg-elev); border-radius: var(--r-tile);
  box-shadow: var(--shadow-sm);
  outline: 2px solid transparent; outline-offset: -2px;
  transition: outline-color 180ms var(--ob-ease), background 180ms ease;
}
.ob-card.is-sel { outline-color: var(--accent); background: var(--accent-soft); }
.ob-card-ico {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface-2); color: var(--text-2);
  transition: background 180ms ease, color 180ms ease, transform 240ms var(--ob-pop);
}
.ob-card.is-sel .ob-card-ico {
  background: var(--accent); color: var(--text-on-accent);
  transform: scale(1.06);
}

/* Hizmet satırı — çıkarılınca yüksekliği 240ms'de kapanır. */
.ob-svc { overflow: hidden; transition: height 240ms var(--ob-ease), opacity 180ms ease; }
.ob-svc.is-removing { opacity: 0; }

/* Onay tiki — SVG stroke çizimi (draw 320ms). */
.ob-tick { stroke-dasharray: 32; stroke-dashoffset: 32; animation: ob-draw 320ms linear 60ms both; }
@keyframes ob-draw { to { stroke-dashoffset: 0; } }

/* Bitiş mührü — draw + pop, arkasında TEK yumuşak ışık dalgası.
   Konfeti yok (ürünün dili değil). */
.ob-seal { animation: ob-seal-in 420ms var(--ob-pop) both; }
@keyframes ob-seal-in {
  from { opacity: 0; transform: scale(0.72); }
  to   { opacity: 1; transform: scale(1); }
}
/* Kutlama halkası. Süre BÜTÇEYE tabidir (160+440 = 600ms): "dekoratif olduğu
   için uzun sürebilir" istisnası açılmadı — bir kez açılan istisna zamanla
   kuralı yer, ve nöbetçi test kesin bir çizgi olmadan işe yaramaz. */
.ob-seal-wave {
  position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid var(--accent);
  animation: ob-wave 440ms var(--ob-ease) 160ms both;
}
@keyframes ob-wave {
  from { opacity: 0.5; transform: scale(1); }
  to   { opacity: 0;   transform: scale(1.9); }
}

/* ── Tanışma turu ────────────────────────────────────────────── */
/* Katman tıklamaları yakalar ama scroll'u kilitlemez; kaçış her zaman açık. */
.tour-layer { position: absolute; inset: 0; z-index: 90; }

/* Spot ışığı: TEK öğe. Karartı box-shadow spread ile çizilir (ayrı bir
   scrim elemanı yok) → delik ile karartı asla ayrışamaz. Hedeften hedefe
   travel(520ms) ile kayar ve boyut değiştirir. */
.tour-hole {
  position: absolute; border-radius: 16px;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.62);
  outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: 0;
  pointer-events: none;
  will-change: top, left, width, height;
  animation: ob-fade 240ms var(--ob-ease) both;
  transition: top 520ms var(--ob-ease), left 520ms var(--ob-ease),
              width 520ms var(--ob-ease), height 520ms var(--ob-ease);
}

/* Anlatı kartı — METİN taşır → YALNIZ opacity ile gelir, kaymaz.
   (Kartın altına ayrı bir kayan zemin katmanı KOYULMADI: spot ışığı zaten
   hareket ediyor, ikinci bir hareket aynı anda gözü böler.) */
.tour-card {
  position: absolute; left: 14px; right: 14px;
  background: var(--bg-elev); color: var(--text);
  border-radius: var(--r-card); box-shadow: var(--shadow-lg);
  padding: 16px 17px 14px;
  animation: ob-fade 240ms var(--ob-ease) both;
}
.tour-dots { display: flex; gap: 5px; align-items: center; }
.tour-dot {
  width: 5px; height: 5px; border-radius: 99px; background: var(--text-3);
  transition: width 180ms var(--ob-ease), background 180ms ease;
}
.tour-dot.is-on { width: 16px; background: var(--accent); }

/* Ekran ilk ziyaret ipucu — tepeden iner, metin taşır → opacity + ARKA
   PLAN katmanı kayar. */
.tour-hint { animation: ob-fade 240ms var(--ob-ease) both; }

/* ── Hareket azaltma ─────────────────────────────────────────────
   transform'ların TAMAMI kapanır, geçişler 120ms çapraz solmaya iner,
   spot ışığı zıplayarak yerleşir. İçerik her koşulda görünür kalır. */
@media (prefers-reduced-motion: reduce) {
  .ob-step, .ob-step.is-leaving, .ob-step-deco, .ob-stagger > *,
  .ob-seal, .ob-seal-wave, .ob-tick, .tour-hole, .tour-card, .tour-hint {
    animation-duration: 120ms !important;
    animation-delay: 0ms !important;
    transform: none !important;
  }
  .ob-seal-wave { display: none; }
  .ob-tick { stroke-dashoffset: 0; }
  .ob-ring .ob-ring-fg, .ob-card, .ob-card-ico, .ob-svc, .tour-hole, .tour-dot {
    transition: none !important;
  }
  .ob-card-ico { transform: none !important; }
}

/* ──────────────────────────────────────────────────────────────
   TABLET ve üstü (≥768px) — mobil görünüm ASLA etkilenmez (kapı bu media).
   ────────────────────────────────────────────────────────────── */
@media (min-width: 768px) {
  :root { --sidebar-w: 200px; --content-max: 640px; }

  /* Mobil alt çubuk (floating .navbar) + FAB gizlenir; sidebar bunların yerini
     alır (FAB'ın tek aksiyonu "Yeni Randevu" sidebar footer'ına taşındı). */
  .navbar, .fab { display: none; }

  /* Sidebar görünür */
  .tam-sidenav { display: flex; }

  /* İçerik alanı sidebar genişliği kadar sağa kayar */
  .tam-viewport { left: var(--sidebar-w); }

  /* İçeriği konforlu, ortalanmış banda otur (çocukların 16/22px margin'i korunur).
     padding-top host index.html'in max(54px…) kuralını yenmek için .tam-root ile
     yükseltilmiş özgüllük. */
  .tam-root .tam-scroll {
    padding-top: 30px;
    padding-bottom: 40px;
    padding-left: max(28px, calc((100% - var(--content-max)) / 2));
    padding-right: max(28px, calc((100% - var(--content-max)) / 2));
  }

  /* Sheet → ekran ortasında yüzen modal kart */
  .tam-sheet { display: flex; align-items: center; justify-content: center; padding: 32px; }
  .tam-sheet-panel {
    position: relative; left: auto; right: auto; bottom: auto;
    width: 100%; max-width: 560px;
    max-height: 86vh;
    border-radius: var(--r-sheet);
    box-shadow: var(--shadow-lg);
  }

  /* Shell-dışı ekranlar (Login/Onboarding/klasik geçit) — ortalanmış dar kolon */
  .tam-auth-shell { align-items: center; }
  .tam-auth-shell > * { width: 100%; max-width: 420px; }

  /* Geçit sahnesi tablette nefes alır: daha büyük kart, daha geniş ızgara.
     (.tam-auth-shell dar-kolon kuralı sahneye UYGULANMAZ — sahne ızgaralıdır.) */
  .gate-stage { --gate-tile: 108px; padding-left: 32px; padding-right: 32px; }
  .gate-inner { max-width: 620px; }

  /* Yumuşak geçişler (yalnız ≥768 — mobile transform/active dokunulmaz) */
  .tam-sidenav-item, .btn, .chip { transition: background-color 0.18s ease, color 0.18s ease; }
}

/* MASAÜSTÜ (≥1024px) — daha geniş kolon + tam etiketli sidebar */
@media (min-width: 1024px) {
  :root { --sidebar-w: 240px; --content-max: 840px; }
  .tam-root .tam-scroll { padding-bottom: 48px; }

  /* Geçit sahnesi — masaüstünde tek satırda 5 profile kadar yayılır. */
  .gate-stage { --gate-tile: 124px; }
  .gate-inner { max-width: 780px; }
  .gate-title { font-size: 30px; }
  .gate-hero .gate-tile { --gate-tile: 88px; width: 88px; height: 88px; border-radius: 26px; font-size: 27px; }
}

/* Hover affordance'ları — yalnız gerçek imleçli cihazlarda + ≥768px.
   DESIGN_SYSTEM: "hover scale yok" → scale DEĞİL, sadece hafif bg-tint. */
@media (hover: hover) and (min-width: 768px) {
  .tam-sidenav-item:hover { background: var(--surface-2); color: var(--text); }
  .tam-sidenav-item.is-active:hover { background: var(--accent-soft); color: var(--accent); }
  .tam-sidenav-new:hover { filter: brightness(1.06); }
  .btn-secondary:hover { background: var(--surface-3); }
  .btn-ghost:hover { background: var(--accent-soft); }
  .chip:not(.chip-active):hover { background: var(--surface-3); }
}

@media (min-width: 1024px) {
  /* ════════════════════════════════════════════════════════════════════
     MASAÜSTÜ UI/UX KATMANI (≥1024px) — kapsamlı geniş-ekran düzeni.

     SÖZLEŞME: Masaüstü katmanının HER kuralı (ve yorumu) @media
     (min-width:1024px) / (min-width:1280px) / (hover)+(1024px) kapısı
     İÇİNDEDİR. Mobil (<768) ve tablet (768–1023) çıkışı BAYT-BAYT aynı
     kalır — tests/desktop-guard.test.mjs bunu hash ile doğrular.

     Desen: ekranlar JSX'te yalnızca `desk-*` sınıf kancaları taşır; mobil
     CSS bu sınıfları hiç referans almaz. Ekran bölümlerinin mobil inline
     stillerini masaüstünde ezmek için bilinçli !important kullanılır
     (inline'ı sadece !important dövebilir; kapı ≥1024 olduğundan mobil
     asla etkilenmez). Tasarım dili DESIGN_SYSTEM: token renkler, hover =
     yalnız bg-tint / yumuşak gölge (scale YOK), süre skalası, mevcut eğriler.
     ════════════════════════════════════════════════════════════════════ */

  /* ── Genel kabuk ───────────────────────────────────────────────── */
  /* Alt scrim mobil floating-bar'a aitti; masaüstünde bar yok → veil kalksın
     (içeriğin son satırı soluk görünmesin). */
  .bottom-scrim { display: none; }

  /* Nefes payı: içerik bandı üstten biraz daha rahat otursun. */
  .tam-root .tam-scroll { padding-top: 36px; }

  /* Sheet modal'ı masaüstünde bir tık daha geniş (form/wizard konforu). */
  .tam-sheet-panel { max-width: 600px; }

  /* Etkileşim geçişleri: mevcut .tap eğrisi + bg/gölge kanalları (hover katmanı
     için). Süre skalası korunur (180ms). */
  .tap, .tap-soft {
    transition:
      transform 0.18s cubic-bezier(0.4, 0, 0.2, 1),
      opacity 0.18s ease,
      background-color 0.18s ease,
      box-shadow 0.18s ease;
  }

  /* ── BUGÜN (Dashboard) — iki kolonlu operasyon paneli ─────────────
     greet ─ tam genişlik
     now   │ duo (Sıradaki + Ciro, dikey)
     flow  ─ tam genişlik (yatay şerit → saran grid)
     pending ─ tam genişlik (kartlar 2-3 kolon)
     stats ─ tam genişlik (4 kolon)                                     */
  .tam-root .desk-dash {
    --content-max: 1120px;
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
    grid-template-areas:
      "greet greet"
      "now   duo"
      "flow  flow"
      "pending pending"
      "stats stats";
    column-gap: 18px;
    align-content: start;
  }
  .desk-dash-greet   { grid-area: greet; }
  .desk-dash-now     { grid-area: now; }
  .desk-dash-duo     {
    grid-area: duo;
    grid-template-columns: 1fr !important;   /* yan rayda dikey yığın */
    align-content: start;
    padding-top: 16px !important;            /* now sarmalayıcısıyla üst hizası */
  }
  .desk-dash-flow    { grid-area: flow; }
  .desk-dash-pending { grid-area: pending; }
  .desk-dash-stats   { grid-area: stats; }

  /* Bugünün akışı: dokunmatik yatay şerit yerine saran kart grid'i
     (fare ile yatay scroll eziyettir; masaüstünde tüm gün tek bakışta). */
  .desk-flow-strip {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
    overflow-x: visible !important;
  }

  /* Bekleyen onaylar: kart başına tam satır israfı yerine 2-3 kolon. */
  .desk-pending-list {
    display: grid !important;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  }

  /* Günün özeti: 2×2 yerine tek satır 4 kolon. */
  .desk-stats-grid { grid-template-columns: repeat(4, 1fr) !important; }

  /* ── TAKVİM ──────────────────────────────────────────────────────── */
  .tam-root .desk-cal { --content-max: 1080px; }

  /* Ay görünümü: takvim kartı solda, seçili gün ajandası sağda. */
  .desk-cal-month {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(340px, 0.95fr);
    column-gap: 24px;
    align-items: start;
  }
  .desk-cal-snap { margin-top: 0 !important; }

  /* Hafta ve gün görünümleri: okunur genişlikte ortalanmış bant. */
  .desk-cal-week { max-width: 880px; margin-left: auto; margin-right: auto; }
  .desk-cal .rise-1 { max-width: 440px; }        /* Ay/Hafta/Gün segmented'ı */

  /* Gün görünümü: Sabah | Öğleden sonra yan yana (tek bölümde tek kolon). */
  .desk-cal-day {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    column-gap: 20px;
    align-items: start;
  }
  .desk-cal-day-empty { max-width: 560px; margin-left: auto; margin-right: auto; }

  /* ── MÜŞTERİLER — alfabetik gruplar 2 gazete kolonu ─────────────── */
  .tam-root .desk-cust { --content-max: 960px; }
  .desk-cust .rise-1 { max-width: 480px; }       /* arama alanı */
  .desk-cust-groups {
    columns: 2;
    column-gap: 20px;
  }
  .desk-cust-groups > div { break-inside: avoid; }

  /* ── HİZMETLER — kategori tile'ları tek şerit + hizmet kartları 2 kolon ── */
  .tam-root .desk-serv { --content-max: 1080px; }
  .desk-serv-cats {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)) !important;
  }
  .desk-serv-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
  }

  /* ── DAHA (hub) — bölümler 2 kolon ızgara ───────────────────────── */
  .tam-root .desk-more {
    --content-max: 1040px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 22px;
    align-content: start;
  }
  .desk-more-head, .desk-more-biz { grid-column: 1 / -1; }

  /* ── RAPORLAR — geniş kolon (iç 2'li/3'lü grid'ler nefes alır) ──── */
  .tam-root .desk-reports { --content-max: 960px; }
}

@media (min-width: 1280px) {
  /* Çok geniş masaüstü (≥1280px): varsayılan bant + raylar bir tık cömert. */
  :root { --content-max: 880px; }
  .tam-root .desk-dash { --content-max: 1180px; column-gap: 22px; }
  .tam-root .desk-cal  { --content-max: 1140px; }
  .desk-pending-list   { grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); }
}

@media (hover: hover) and (min-width: 1024px) {
  /* Masaüstü hover affordance'ları — yalnız gerçek imleç + ≥1024px.
     DESIGN_SYSTEM: hover scale YOK → yalnız bg-tint ve yumuşak gölge. */
  /* Liste satırları (yalnız etkileşimli olanlar) */
  button.list-row:hover, .list-row.tap-soft:hover { background: var(--surface-2); }

  /* Kart-buton yüzeyleri: kâğıt bir kademe kalkar (shadow-sm → md). */
  button.card.tap-soft:hover { box-shadow: var(--shadow-md); }
  .desk-flow-strip > .tap-soft:hover { box-shadow: var(--shadow-md); }

  /* Ay görünümü gün hücreleri (seçili hücrenin inline bg'si kazanmaya devam eder) */
  .desk-cal-mcard button.tap-soft:not(:disabled):hover { background: var(--surface-2); }

  /* Birincil aksiyonlar */
  .btn-primary:hover, .fab:hover { filter: brightness(1.06); }
}

/* Tweaks panel styling override (let starter own most of it) */
