/* ═══════════════════════════════════════════════════════════
   Omnex Mobile — P8
   Tüm renkler mevcut design-system tokenlarından beslenir.
   Hiçbir hardcoded hex yoktur.
═══════════════════════════════════════════════════════════ */

/* ── Dosya tipi tint tokenları (light + dark) ─────────── */
[data-theme="light"] {
  --fi-folder-bg: #eff6ff; --fi-folder: #2563eb;
  --fi-img-bg:    #f0fffe; --fi-img:    #0d9488;
  --fi-vid-bg:    #fff7ed; --fi-vid:    #ea580c;
  --fi-pdf-bg:    #fef2f2; --fi-pdf:    #dc2626;
  --fi-aud-bg:    #faf5ff; --fi-aud:    #7c3aed;
  --fi-zip-bg:    #f0fdf4; --fi-zip:    #16a34a;
  --fi-doc-bg:    #f0f9ff; --fi-doc:    #0284c7;
  --fi-file-bg:   #f8fafc; --fi-file:   var(--text-muted);
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --fi-folder-bg: #0c1a2e; --fi-folder: #60a5fa;
    --fi-img-bg:    #0a2626; --fi-img:    #2dd4bf;
    --fi-vid-bg:    #241608; --fi-vid:    #fb923c;
    --fi-pdf-bg:    #240a0a; --fi-pdf:    #f87171;
    --fi-aud-bg:    #160a24; --fi-aud:    #a78bfa;
    --fi-zip-bg:    #0a2416; --fi-zip:    #4ade80;
    --fi-doc-bg:    #0a1c24; --fi-doc:    #38bdf8;
    --fi-file-bg:   var(--bg-sunken); --fi-file: var(--text-muted);
  }
}
[data-theme="dark"] {
  --fi-folder-bg: #0c1a2e; --fi-folder: #60a5fa;
  --fi-img-bg:    #0a2626; --fi-img:    #2dd4bf;
  --fi-vid-bg:    #241608; --fi-vid:    #fb923c;
  --fi-pdf-bg:    #240a0a; --fi-pdf:    #f87171;
  --fi-aud-bg:    #160a24; --fi-aud:    #a78bfa;
  --fi-zip-bg:    #0a2416; --fi-zip:    #4ade80;
  --fi-doc-bg:    #0a1c24; --fi-doc:    #38bdf8;
  --fi-file-bg:   var(--bg-sunken); --fi-file: var(--text-muted);
}

/* ── Gradient & glow (primary rengi takip eder) ─────────── */
:root {
  --mob-grad: linear-gradient(135deg,
    color-mix(in srgb, var(--color-primary) 60%, #000 40%),
    var(--color-primary));
  --mob-glow: color-mix(in srgb, var(--color-primary) 45%, transparent);
  --mob-nav-h: 60px;
  --mob-pill-bottom: calc(var(--mob-nav-h) + 12px);
}

/* ═══════════════════════════════════════════════════════════
   SHELL
═══════════════════════════════════════════════════════════ */
.mob-shell {
  display: flex;
  flex-direction: column;
  height: 100vh; /* fallback (eski tarayıcı) */
  height: 100dvh; /* modern: dinamik viewport (mobil tarayıcı çubuğu hariç) → alt bar görünür kalır */
  background: var(--bg-page);
  overflow: hidden;
  position: relative;
}

/* ── Ekran alanı ── */
.mob-screen {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  background: var(--bg-page);
}
.mob-screen::-webkit-scrollbar { display: none; }

/* ── Komut pill (floating) ── */
.mob-pill {
  position: absolute;
  bottom: var(--mob-pill-bottom);
  left: 50%;
  transform: translateX(-50%);
  height: 44px;
  min-width: 130px;
  background: var(--mob-grad);
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 18px;
  box-shadow: 0 6px 24px var(--mob-glow), 0 1px 0 rgba(255,255,255,.12) inset;
  cursor: pointer;
  z-index: var(--z-sticky);
  white-space: nowrap;
  border: none;
  transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}
.mob-pill:active { transform: translateX(-50%) scale(.97); }
.mob-pill svg { width: 16px; height: 16px; color: rgba(255,255,255,.92); flex-shrink: 0; }
.mob-pill__lbl { font-size: 13.5px; font-weight: 600; color: #fff; }
.mob-pill__hint { font-size: 10.5px; color: rgba(255,255,255,.4); margin-left: 2px; }

/* ── Alt navigasyon çubuğu ── */
.mob-nav {
  min-height: var(--mob-nav-h);
  flex-shrink: 0;
  background: color-mix(in srgb, var(--bg-surface) 96%, transparent);
  border-top: 1px solid var(--border-default);
  display: flex;
  align-items: flex-start;
  padding-top: 10px;
  padding-bottom: env(safe-area-inset-bottom); /* notch'lu cihazda home çubuğu üstünde kal */
  box-sizing: border-box;
  position: relative;
  z-index: var(--z-nav);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}
.mob-nav__item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  font-size: 9.5px;
  font-weight: 500;
  color: var(--text-muted);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  transition: color var(--transition-fast);
  touch-action: manipulation;
}
.mob-nav__item ui-icon { display: flex; }
.mob-nav__item.on { color: var(--color-primary); }
.mob-nav__dot {
  width: 3px; height: 3px; border-radius: 50%;
  background: currentColor; opacity: 0;
  transition: opacity var(--transition-fast);
}
.mob-nav__item.on .mob-nav__dot { opacity: 1; }
.mob-nav__spacer { flex: 1; pointer-events: none; }

/* ═══════════════════════════════════════════════════════════
   ANA SAYFA — HUB
═══════════════════════════════════════════════════════════ */
.mob-home { padding-bottom: 90px; }

/* Başlık */
.mob-home__hdr {
  background: var(--bg-surface);
  padding: 10px 16px 12px;
  border-bottom: 1px solid var(--border-default);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.mob-home__logo { font-size: 19px; font-weight: 800; letter-spacing: -.5px; color: var(--text-primary); }
.mob-home__logo em { color: var(--color-primary); font-style: normal; }
.mob-home__btns { display: flex; gap: 8px; }
.mob-home__btn {
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; touch-action: manipulation;
  transition: color var(--transition-fast);
}
.mob-home__btn svg { width: 16px; height: 16px; }
.mob-home__btn:active { background: var(--bg-hover); color: var(--text-primary); }

/* İş kartı */
.mob-job {
  margin: 12px 12px 0;
  background: var(--mob-grad);
  border-radius: var(--radius-lg);
  padding: 13px 16px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 6px 24px var(--mob-glow);
  cursor: pointer;
  touch-action: manipulation;
  transition: opacity var(--transition-fast);
}
.mob-job:active { opacity: .92; }
.mob-job__ic {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: rgba(255,255,255,.15);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mob-job__ic svg { width: 20px; height: 20px; color: rgba(255,255,255,.95); }
.mob-job__body { flex: 1; min-width: 0; }
.mob-job__title { font-size: 12.5px; font-weight: 600; color: rgba(255,255,255,.97); margin-bottom: 2px; }
.mob-job__sub {
  font-size: 11px; color: rgba(255,255,255,.6); margin-bottom: 7px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.mob-job__bar { height: 3px; background: rgba(255,255,255,.2); border-radius: var(--radius-full); overflow: hidden; }
.mob-job__fill { height: 100%; background: rgba(255,255,255,.85); border-radius: var(--radius-full); transition: width .5s; }
.mob-job__pct { font-size: 13px; font-weight: 700; color: rgba(255,255,255,.9); flex-shrink: 0; }

/* Bölüm başlığı */
.mob-sec {
  padding: 16px 16px 8px;
  display: flex; align-items: center; justify-content: space-between;
}
.mob-sec__ttl { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--text-muted); }
.mob-sec__more {
  font-size: 12.5px; font-weight: 500; color: var(--color-primary);
  background: none; border: none; cursor: pointer; padding: 0; touch-action: manipulation;
}

/* Son açılanlar */
.mob-recents { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 4px; }
.mob-recents::-webkit-scrollbar { display: none; }
.mob-recent { flex-shrink: 0; width: 62px; cursor: pointer; touch-action: manipulation; }
.mob-recent__thumb {
  width: 62px; height: 62px; border-radius: var(--radius-md);
  background: var(--bg-sunken); border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center; margin-bottom: 6px;
  overflow: hidden;
}
.mob-recent__name { font-size: 10.5px; color: var(--text-muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Araçlar grid */
.mob-tools { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; padding: 0 12px; }
.mob-tool {
  background: var(--bg-surface); border: 1px solid var(--border-default);
  border-radius: var(--radius-md); padding: 13px 8px 11px;
  display: flex; flex-direction: column; align-items: center; gap: 7px;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--transition-fast), border-color var(--transition-fast);
}
.mob-tool:active { background: var(--color-primary-soft); border-color: var(--color-primary); }
.mob-tool__ic {
  width: 38px; height: 38px; border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: center;
}
.mob-tool__lbl { font-size: 10.5px; font-weight: 500; color: var(--text-secondary); text-align: center; line-height: 1.3; }

/* Araç icon renkleri */
.mob-tool__ic--1 { background: var(--fi-doc-bg); }
.mob-tool__ic--2 { background: var(--fi-vid-bg); }
.mob-tool__ic--3 { background: var(--fi-pdf-bg); }
.mob-tool__ic--4 { background: var(--fi-aud-bg); }
.mob-tool__ic--5 { background: var(--fi-img-bg); }
.mob-tool__ic--6 { background: var(--fi-zip-bg); }
.mob-tool__ic--7 { background: color-mix(in srgb, var(--color-error, #ef4444) 10%, var(--bg-page)); }
.mob-tool__ic--8 { background: var(--fi-folder-bg); }
.mob-tool__ic--9 { background: var(--color-primary-soft); }

/* Depolama kartı */
.mob-storage {
  margin: 12px;
  background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  padding: 13px 16px;
}
.mob-storage__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 9px; }
.mob-storage__lbl { font-size: 14px; font-weight: 600; color: var(--text-primary); }
.mob-storage__val { font-size: 12px; color: var(--text-muted); }
.mob-storage__track {
  height: 5px; background: var(--bg-sunken); border-radius: var(--radius-full);
  overflow: hidden; margin-bottom: 9px;
}
.mob-storage__fill { height: 100%; background: var(--mob-grad); border-radius: var(--radius-full); transition: width .5s; }
.mob-storage__legend { display: flex; gap: 16px; flex-wrap: wrap; }
.mob-storage__item { display: flex; align-items: center; gap: 5px; font-size: 11px; color: var(--text-muted); }
.mob-storage__dot { width: 6px; height: 6px; border-radius: 50%; }

/* Boş durum */
.mob-empty {
  text-align: center; padding: 40px 24px;
  color: var(--text-muted); font-size: 13px;
}

/* ═══════════════════════════════════════════════════════════
   DOSYALAR
═══════════════════════════════════════════════════════════ */
.mob-files { display: flex; flex-direction: column; height: 100%; }
.mob-files__hdr {
  background: var(--bg-surface); padding: 8px 12px;
  border-bottom: 1px solid var(--border-default); flex-shrink: 0;
}
.mob-files__top { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.mob-files__back {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  color: var(--color-primary); cursor: pointer; touch-action: manipulation;
}
.mob-files__back svg { width: 17px; height: 17px; }
.mob-files__title { flex: 1; font-size: 15px; font-weight: 700; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-files__hbtn {
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); border: 1px solid var(--border-default);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer; touch-action: manipulation;
}
.mob-files__hbtn svg { width: 15px; height: 15px; }
.mob-chips { display: flex; gap: 7px; overflow-x: auto; padding-bottom: 2px; }
.mob-chips::-webkit-scrollbar { display: none; }
.mob-chip {
  flex-shrink: 0; font-size: 12px; font-weight: 500;
  border-radius: var(--radius-full); padding: 5px 12px;
  border: 1px solid var(--border-default); background: var(--bg-sunken);
  color: var(--text-muted); cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: background var(--transition-fast), color var(--transition-fast), border-color var(--transition-fast);
}
.mob-chip.on { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }

.mob-files__list { flex: 1; overflow-y: auto; padding-bottom: 80px; }
.mob-files__list::-webkit-scrollbar { display: none; }

/* Dosya satırı */
/* Satır: kaydırılabilir __fg + arka aksiyon __bg (sağa Paylaş / sola Sil) */
.mob-frow { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.mob-frow + .mob-frow .mob-frow__fg { border-top: 1px solid var(--border-subtle); }
.mob-frow__fg {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 12px;
  padding: 11px 16px; cursor: pointer; touch-action: pan-y;
  background: var(--bg-surface);
  transition: transform .2s cubic-bezier(.2,.9,.25,1.1), background var(--transition-fast);
}
.mob-frow.swiping .mob-frow__fg { transition: background var(--transition-fast); }
.mob-frow__fg:active { background: var(--bg-hover); }
.mob-frow__bg { position: absolute; inset: 0; display: flex; align-items: stretch; justify-content: space-between; }
.mob-frow__bg-share, .mob-frow__bg-del {
  display: flex; align-items: center; gap: 7px; padding: 0 20px;
  color: #fff; font-size: 13px; font-weight: 600; opacity: 0; transition: opacity .1s;
}
.mob-frow__bg-share { background: var(--color-primary); }
.mob-frow__bg-del   { background: var(--color-error, #dc2626); }
.mob-frow.rev-share .mob-frow__bg { background: var(--color-primary); }
.mob-frow.rev-del   .mob-frow__bg { background: var(--color-error, #dc2626); }
.mob-frow.rev-share .mob-frow__bg-share { opacity: 1; }
.mob-frow.rev-del   .mob-frow__bg-del   { opacity: 1; }
.mob-frow__ic {
  width: 44px; height: 44px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
}
.mob-frow__info { flex: 1; min-width: 0; }
.mob-frow__name { font-size: 14px; font-weight: 500; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-frow__meta { font-size: 11px; color: var(--text-muted); margin-top: 2px; }
.mob-frow__chev { display: flex; align-items: center; }

/* Kök seçici */
.mob-root-sel {
  display: flex; gap: 8px; overflow-x: auto; padding: 8px 12px;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
}
.mob-root-sel::-webkit-scrollbar { display: none; }
.mob-root-btn {
  flex-shrink: 0; font-size: 12px; font-weight: 500;
  border-radius: var(--radius-sm); padding: 6px 12px;
  border: 1px solid var(--border-default); background: var(--bg-sunken);
  color: var(--text-secondary); cursor: pointer; touch-action: manipulation; white-space: nowrap;
  transition: all var(--transition-fast);
}
.mob-root-btn.on { background: var(--color-primary-soft); border-color: var(--color-primary); color: var(--color-primary); }
.mob-root-btn:active { opacity: .8; }

/* ═══════════════════════════════════════════════════════════
   YEDEK EKRANI
═══════════════════════════════════════════════════════════ */
.mob-backup { padding: 0 0 90px; }
.mob-backup__hdr { background: var(--bg-surface); padding: 12px 16px; border-bottom: 1px solid var(--border-default); }
.mob-backup__title { font-size: 17px; font-weight: 700; color: var(--text-primary); }
.mob-backup__sub { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mob-bcard {
  margin: 12px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md);
  overflow: hidden; cursor: pointer; touch-action: manipulation;
  transition: background var(--transition-fast);
}
.mob-bcard:active { background: var(--bg-hover); }
.mob-bcard__top { padding: 13px 14px 10px; display: flex; align-items: flex-start; gap: 10px; }
.mob-bcard__ic {
  width: 38px; height: 38px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--color-primary-soft); display: flex; align-items: center; justify-content: center;
}
.mob-bcard__ic svg { width: 18px; height: 18px; color: var(--color-primary); }
.mob-bcard__body { flex: 1; min-width: 0; }
.mob-bcard__name { font-size: 14px; font-weight: 600; color: var(--text-primary); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-bcard__path { font-size: 11px; color: var(--text-muted); margin-top: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-bcard__badge {
  flex-shrink: 0; font-size: 10px; font-weight: 600; border-radius: var(--radius-full);
  padding: 3px 8px; margin-top: 2px;
}
.mob-bcard__badge--running { background: var(--color-primary-soft); color: var(--color-primary); }
.mob-bcard__badge--ok  { background: var(--color-success-soft); color: var(--color-success); }
.mob-bcard__badge--err { background: var(--color-danger-soft);  color: var(--color-danger);  }
.mob-bcard__badge--idle { background: var(--bg-sunken); color: var(--text-muted); }
.mob-bcard__prog { padding: 0 14px 12px; }
.mob-bcard__track { height: 3px; background: var(--bg-sunken); border-radius: var(--radius-full); overflow: hidden; }
.mob-bcard__fill { height: 100%; background: var(--color-primary); border-radius: var(--radius-full); transition: width .5s; }

/* ═══════════════════════════════════════════════════════════
   MENÜ EKRANI
═══════════════════════════════════════════════════════════ */
.mob-menu { padding: 0 0 90px; }
.mob-menu__user {
  background: var(--bg-surface); border-bottom: 1px solid var(--border-default);
  padding: 20px 16px; display: flex; align-items: center; gap: 12px;
}
.mob-menu__avatar {
  width: 48px; height: 48px; border-radius: 50%; flex-shrink: 0;
  background: var(--color-primary-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 700; color: var(--color-primary);
}
.mob-menu__uname { font-size: 15px; font-weight: 600; color: var(--text-primary); }
.mob-menu__uemail { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.mob-menu__section { margin: 12px; background: var(--bg-surface); border: 1px solid var(--border-default); border-radius: var(--radius-md); overflow: hidden; }
.mob-menu__row {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--transition-fast);
}
.mob-menu__row:active { background: var(--bg-hover); }
.mob-menu__row + .mob-menu__row { border-top: 1px solid var(--border-subtle); }
.mob-menu__row__ic {
  width: 34px; height: 34px; border-radius: var(--radius-sm); flex-shrink: 0;
  background: var(--bg-sunken); display: flex; align-items: center; justify-content: center;
}
.mob-menu__row__ic svg { width: 16px; height: 16px; color: var(--text-secondary); }
.mob-menu__row__lbl { flex: 1; font-size: 14px; font-weight: 500; color: var(--text-primary); }
.mob-menu__row__chev svg { width: 14px; height: 14px; color: var(--border-strong); }
.mob-menu__danger .mob-menu__row__lbl { color: var(--color-danger); }
.mob-menu__danger .mob-menu__row__ic svg { color: var(--color-danger); }

/* ═══════════════════════════════════════════════════════════
   KOMUT PALETİ (bottom sheet)
═══════════════════════════════════════════════════════════ */
.mob-cmd-backdrop {
  position: fixed; inset: 0; z-index: var(--z-drawer);
  background: var(--overlay);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  display: flex; flex-direction: column; justify-content: flex-end;
  animation: mob-fade-in 160ms ease both;
}
.mob-cmd-backdrop.closing { animation: mob-fade-out 160ms ease both; }
@keyframes mob-fade-in  { from { opacity: 0 } to { opacity: 1 } }
@keyframes mob-fade-out { from { opacity: 1 } to { opacity: 0 } }

.mob-cmd-sheet {
  background: var(--bg-surface); border-radius: var(--radius-xl) var(--radius-xl) 0 0;
  border-top: 1px solid var(--border-default); max-height: 80vh;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-xl);
  animation: mob-slide-up 200ms cubic-bezier(.2,.9,.25,1.1) both;
}
.mob-cmd-backdrop.closing .mob-cmd-sheet { animation: mob-slide-down 160ms ease both; }
@keyframes mob-slide-up   { from { transform: translateY(100%) } to { transform: none } }
@keyframes mob-slide-down { from { transform: none } to { transform: translateY(100%) } }

.mob-cmd-handle { width: 36px; height: 4px; background: var(--border-strong); border-radius: var(--radius-full); margin: 12px auto 8px; flex-shrink: 0; }
.mob-cmd-search {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 16px 12px; border-bottom: 1px solid var(--border-default); flex-shrink: 0;
}
.mob-cmd-search svg { width: 18px; height: 18px; color: var(--text-muted); flex-shrink: 0; }
.mob-cmd-search__inp {
  flex: 1; background: none; border: none; outline: none;
  font-size: 15px; font-family: inherit; color: var(--text-primary);
}
.mob-cmd-search__inp::placeholder { color: var(--text-muted); }
.mob-cmd-search__cancel {
  font-size: 13px; font-weight: 500; color: var(--color-primary);
  background: none; border: none; cursor: pointer; padding: 0; touch-action: manipulation;
}
.mob-cmd-scroll { overflow-y: auto; flex: 1; padding-bottom: 20px; }
.mob-cmd-scroll::-webkit-scrollbar { display: none; }
.mob-cmd-grp-ttl {
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em;
  color: var(--text-muted); padding: 10px 16px 5px;
}
.mob-cmd-row {
  display: flex; align-items: center; gap: 11px; padding: 10px 16px;
  cursor: pointer; touch-action: manipulation;
  transition: background var(--transition-fast);
  -webkit-tap-highlight-color: transparent;
}
.mob-cmd-row:active { background: var(--bg-hover); }
.mob-cmd-row__ic {
  width: 36px; height: 36px; border-radius: var(--radius-sm);
  background: var(--bg-sunken); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.mob-cmd-row__ic svg { width: 16px; height: 16px; color: var(--text-secondary); }
.mob-cmd-row__ic--p { background: var(--color-primary-soft); } .mob-cmd-row__ic--p svg { color: var(--color-primary); }
.mob-cmd-row__ic--0 { background: var(--bg-sunken, #f1f5f9); } .mob-cmd-row__ic--0 svg { color: var(--text-secondary, #64748b); }
.mob-cmd-row__ic--1 { background: var(--fi-doc-bg); } .mob-cmd-row__ic--1 svg { color: var(--fi-doc); }
.mob-cmd-row__ic--2 { background: var(--fi-vid-bg); } .mob-cmd-row__ic--2 svg { color: var(--fi-vid); }
.mob-cmd-row__ic--3 { background: var(--fi-pdf-bg); } .mob-cmd-row__ic--3 svg { color: var(--fi-pdf); }
.mob-cmd-row__ic--4 { background: var(--fi-aud-bg); } .mob-cmd-row__ic--4 svg { color: var(--fi-aud); }
.mob-cmd-row__ic--5 { background: var(--fi-img-bg); } .mob-cmd-row__ic--5 svg { color: var(--fi-img); }
.mob-cmd-row__body { flex: 1; min-width: 0; }
.mob-cmd-row__lbl { font-size: 14px; font-weight: 500; color: var(--text-primary); }
.mob-cmd-row__sub { font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.mob-cmd-badge {
  font-size: 10px; font-weight: 600; border-radius: var(--radius-xs);
  background: var(--color-primary-soft); color: var(--color-primary); padding: 2px 7px;
}
.mob-cmd-tag {
  font-size: 10px; color: var(--text-muted); background: var(--bg-sunken);
  border: 1px solid var(--border-default); border-radius: var(--radius-xs); padding: 2px 7px;
}
.mob-cmd-sep { height: 1px; background: var(--border-subtle); margin: 3px 0; }

/* Yükleme spinner */
.mob-spin { display: flex; align-items: center; justify-content: center; padding: 48px; }
.mob-spin svg { width: 24px; height: 24px; color: var(--text-muted); animation: mob-rotate .8s linear infinite; }
@keyframes mob-rotate { to { transform: rotate(360deg) } }

/* ═══════════════════════════════════════════════════════════
   TAM EKRAN GÖRÜNÜM (Dedup / Sync gibi container view'ler)
═══════════════════════════════════════════════════════════ */
.mob-full-view {
  position: absolute; inset: 0; z-index: 200;
  background: var(--bg-page); display: flex; flex-direction: column;
  animation: mob-fade-in 160ms ease both;
}
.mob-full-view__hdr {
  display: flex; align-items: center;
  padding: 0 8px; height: 50px; flex-shrink: 0;
  border-bottom: 1px solid var(--border-default);
  background: var(--bg-surface);
}
.mob-full-view__back {
  display: flex; align-items: center; gap: 4px;
  background: none; border: none; color: var(--color-primary);
  font-size: 15px; font-weight: 600; cursor: pointer; padding: 8px 6px;
  touch-action: manipulation;
}
.mob-full-view__body {
  flex: 1; overflow-y: auto; overflow-x: hidden;
  padding: 12px;
}

/* ═══════════════════════════════════════════════════════════
   MOBİL MODAL OVERRİDE — tüm ui-ovl modallerini tam ekran yap
   NOT: mobile.css tüm viewport'larda yükleniyor; bu kurallar SADECE mobil
   shell aktifken geçerli olmalı (main.js: innerWidth<640 || (<900 && coarse)).
   Media query ile sarılmazsa PC'de de modaller tam ekran açılır (PWA tipi).
═══════════════════════════════════════════════════════════ */
@media (max-width: 639px), (max-width: 899px) and (pointer: coarse) {
  .ui-ovl--modal {
    padding: 0 !important;
  }
  .ui-ovl--modal .ui-ovl__panel {
    border-radius: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    max-height: 100dvh !important;
    height: 100dvh !important;
  }
  .ui-ovl__body {
    overflow-x: hidden !important;
  }
  /* Mobil: çok butonlu dialog footer'ı KOMPAKT — butonlar içerik-genişliğinde sıkıca sarar
     (PDF Araçları 7 aksiyon → daha az satır), dikey yer yemez; gerekirse kaydırılır. */
  .ui-ovl--modal .ui-ovl__foot { flex-wrap: wrap; gap: 6px; justify-content: flex-start; padding: 8px 12px calc(8px + env(safe-area-inset-bottom)); max-height: 38vh; overflow-y: auto; }
  .ui-ovl--modal .ui-ovl__foot ui-button .ui-btn { height: 34px; padding: 0 11px; font-size: 12.5px; }
  .ui-ovl--modal .ui-ovl__foot ui-button[variant="primary"] { order: 99; flex: 1 1 100%; } /* birincil eylem en sonda, tam satır */
  .ui-ovl--modal .ui-ovl__foot ui-button[variant="primary"] .ui-btn { width: 100%; height: 42px; font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   DİYALOG İÇERİK DÜZELTMELERİ — dar ekran için yeniden düzen
═══════════════════════════════════════════════════════════ */

/* NOT: Bu editör-içi yeniden düzenler SADECE dar/dokunmatik ekran içindir (mobil shell ile
   aynı eşik). Media query'siz olunca PC'de de sızıyordu (ör. .ve-foot wrap → video format
   seçici ile "İşle ve Kaydet" ayrı satıra düşüyordu). Mobil eşiğine sarıldı. */
@media (max-width: 639px), (max-width: 899px) and (pointer: coarse) {
  /* Video editör */
  .ve { overflow-x: hidden; }
  .ve-stage video[hidden] { display: none !important; }
  .ve-drop { position: static !important; margin: 8px !important; }
  .ve-foot { flex-wrap: wrap !important; row-gap: 6px !important; }
  .ve-foot .ve-fmt { width: 100%; flex: none; }

  /* Ses editör */
  .ae { overflow-x: hidden; }
  .ae-row { flex-wrap: wrap !important; row-gap: 4px !important; }
  .ae-row .ae-range { width: 100% !important; min-width: 0 !important; }

  /* OCR */
  .ocr { flex-direction: column !important; min-height: unset !important; overflow-x: hidden; }
  .ocr-left { flex: none !important; width: 100% !important; }
  .ocr-right { flex: none !important; width: 100% !important; }
  .ocr-result { min-height: 140px !important; }

  /* PDF editör */
  .pdfx { overflow-x: hidden; }
  .pdfx-foot { flex-wrap: wrap !important; row-gap: 6px !important; }

  /* Görsel editör */
  .ie { overflow-x: hidden; }
  .ie-top { flex-wrap: wrap !important; row-gap: 6px !important; }
  .ie-zoom { flex-wrap: wrap !important; row-gap: 4px !important; }
  .ie-bottom { flex-wrap: wrap !important; row-gap: 4px !important; }
}

/* Senkron / Yedekleme iş satırları — masaüstü nowrap satırı mobilde taşıyordu (sv-item__actions
   12 buton → ~237px taşma). Satır sarsın, aksiyonlar tam-genişlik ikinci satıra insin. */
.mob-full-view .sv-item,
.mob-full-view .bk-row { flex-wrap: wrap !important; }
.mob-full-view .sv-item__actions,
.mob-full-view .bk-actions { width: 100%; justify-content: flex-start !important; flex-wrap: wrap !important; }
.mob-full-view .sv-item__path span { max-width: 60vw !important; }

/* Dosya aksiyon sayfası (MobileFileSheet) — komut sayfası kabuğunu kullanır + dosya başlığı */
.mob-fsheet__file { display: flex; align-items: center; gap: 12px; padding: 6px 16px 14px; border-bottom: 1px solid var(--border-default, #e2e8f0); margin-bottom: 6px; }
.mob-fsheet__ic { flex: 0 0 auto; }
.mob-fsheet__meta { min-width: 0; flex: 1; }
.mob-fsheet__name { font-weight: var(--font-semibold, 600); font-size: 15px; color: var(--text-primary, #0f172a); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-fsheet__sub { font-size: 12.5px; color: var(--text-muted, #64748b); margin-top: 2px; }
.mob-fsheet .mob-cmd-row { width: 100%; text-align: left; background: none; border: none; }

/* Inline lightbox (MobileLightbox) — app içi tam ekran görsel/video */
.mob-lb { position: fixed; inset: 0; z-index: calc(var(--z-modal, 100) + 10); background: #000;
  display: flex; flex-direction: column; animation: mob-fade-in 160ms ease both; touch-action: none; }
.mob-lb.closing { animation: mob-fade-out 160ms ease both; }
.mob-lb__bar { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex; align-items: center; gap: 8px;
  padding: calc(8px + env(safe-area-inset-top)) 10px 8px; background: linear-gradient(to bottom, rgba(0,0,0,.55), transparent); }
.mob-lb__btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; background: none; border: none; cursor: pointer; flex: none; }
.mob-lb__title { flex: 1; color: #fff; font-size: 14px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mob-lb__stage { flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.mob-lb__media { max-width: 100%; max-height: 100%; object-fit: contain; }
.mob-lb__img { transition: transform .12s ease; touch-action: none; will-change: transform; }
.mob-lb__counter { position: absolute; bottom: calc(14px + env(safe-area-inset-bottom)); left: 0; right: 0; text-align: center;
  color: rgba(255,255,255,.85); font-size: 13px; font-variant-numeric: tabular-nums; pointer-events: none; }
.mob-lb__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 44px; height: 64px; display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.28); border: none; cursor: pointer; }
.mob-lb__nav--prev { left: 0; border-radius: 0 8px 8px 0; }
.mob-lb__nav--next { right: 0; border-radius: 8px 0 0 8px; }
@media (pointer: coarse) { .mob-lb__nav { opacity: .55; } } /* dokunmatikte kaydırma asıl, oklar yardımcı */

/* Hızlı Araçlar — full-view içinde mount edilen araç (.qt-* markup quickTools.css'ten) */
.mob-qt-body { padding: 14px 14px calc(20px + env(safe-area-inset-bottom)); }
.mob-qt-load { display: flex; justify-content: center; padding: 40px 0; }
.mob-qt-body .qtc-pad .qtc-key { height: 48px; } /* dokunmatik hesap tuşları */
/* Vardiya takvimi full-view'da hep açık (katlama anlamsız); dock kenarlığı kalkar */
.mob-qt-body .qt-cal { border-top: none; }
.mob-qt-body .qt-cal__body { display: block !important; }
.mob-qt-body .qt-cal [data-a="fold"] { display: none; }
.mob-qt-body .qt-cal__day { aspect-ratio: 1; } /* mobilde kare günler, daha dokunulabilir */

/* Yükleme FAB (Dosyalar sekmesi) */
.mob-fab { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 5;
  width: 56px; height: 56px; border-radius: 50%; border: none; cursor: pointer;
  background: var(--color-primary); box-shadow: 0 6px 18px rgba(0,0,0,.28);
  display: flex; align-items: center; justify-content: center; }
.mob-fab:active { transform: scale(.94); }

/* Yükleme ilerleme kartı (alt-orta) */
.mob-up { position: fixed; left: 0; right: 0; bottom: 0; z-index: calc(var(--z-modal,100) + 20);
  display: flex; justify-content: center; padding: 0 12px calc(14px + env(safe-area-inset-bottom));
  pointer-events: none; animation: mob-slide-up 200ms cubic-bezier(.2,.9,.25,1.1) both; }
.mob-up.done { animation: mob-fade-out 300ms ease both; }
.mob-up__card { width: 100%; max-width: 420px; background: var(--bg-elevated, var(--bg-surface)); border: 1px solid var(--border-default);
  border-radius: var(--radius-lg, 14px); box-shadow: var(--shadow-xl); padding: 12px 14px; pointer-events: auto; }
.mob-up__top { display: flex; align-items: center; gap: 8px; }
.mob-up__lbl { flex: 1; font-size: 13.5px; font-weight: 600; color: var(--text-primary); }
.mob-up__pct { font-size: 13px; font-variant-numeric: tabular-nums; color: var(--color-primary); font-weight: 600; }
.mob-up__track { height: 6px; border-radius: 3px; background: var(--bg-sunken, #e2e8f0); margin: 9px 0 6px; overflow: hidden; }
.mob-up__fill { height: 100%; width: 0; background: var(--color-primary); border-radius: 3px; transition: width .15s ease; }
.mob-up__sub { font-size: 12px; color: var(--text-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
