/* Uras Takip — mobil uygulama katmanı (mpro). Yalnız telefon genişliğinde (html.mpro) geçerlidir.
   Masaüstü görünümüne dokunmaz. Renkler uygulamanın tema değişkenlerinden (--accent, --surface, --border...) gelir. */

#mpNav, #mpSheet, #mpBack, .mp-ttl { display: none; }

html.mpro { -webkit-text-size-adjust: 100%; overscroll-behavior-y: none; }
html.mpro body { -webkit-tap-highlight-color: transparent; overscroll-behavior-y: none; padding-bottom: 0; }
html.mpro body * { -webkit-touch-callout: none; }
html.mpro body input, html.mpro body textarea, html.mpro body [contenteditable] { -webkit-touch-callout: default; -webkit-user-select: text; user-select: text; }

/* ---------- üst çubuk: ince, sabit, yalnız marka + sayfa başlığı + durum ---------- */
html.mpro body .topbar {
  position: sticky; top: 0; z-index: 60; display: flex; align-items: center; gap: 10px;
  padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 8px; min-height: 54px;
  background: color-mix(in srgb, var(--surface, #fff) 88%, transparent);
  -webkit-backdrop-filter: saturate(1.4) blur(14px); backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border, #e5e7eb); box-shadow: 0 1px 0 rgba(15, 23, 42, .02), 0 6px 18px -12px rgba(15, 23, 42, .25);
}
html.mpro body .topbar .brand { flex: 0 0 auto; min-width: 0; gap: 8px; }
html.mpro body .topbar .brand img { height: 30px; width: auto; }
html.mpro body .topbar .brand-text { display: none; }
html.mpro body .topbar .mp-ttl {
  display: block; flex: 1 1 auto; min-width: 0; font-family: 'Oswald', 'IBM Plex Sans', sans-serif; font-weight: 600;
  font-size: 18px; letter-spacing: .02em; text-transform: uppercase; color: var(--text, #0f172a);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
html.mpro body .topbar .userbadge { flex: 0 0 auto; margin: 0; padding: 0; background: none; border: 0; box-shadow: none; }
html.mpro body .topbar .userbadge > *:not(:first-child),
html.mpro body .topbar .userbadge-dept { display: none !important; }
html.mpro body .topbar .userbadge .avatar, html.mpro body .topbar .userbadge > *:first-child { width: 34px; height: 34px; font-size: 13px; }
html.mpro body .topbar > button:not(.mp-bell), html.mpro body .topbar .topbar-btn, html.mpro body .topbar .ayar-nav-btn { display: none !important; }
html.mpro body .topbar #saveBox {
  display: inline-flex !important; flex: 0 0 auto; width: 30px; min-width: 0; height: 30px; min-height: 0; padding: 0; margin: 0;
  align-items: center; justify-content: center; border-radius: 50%; font-size: 0;
}
html.mpro body .topbar #saveBox #saveLbl { display: none; }

/* eski hamburger menü ve yatay sekmeler: alt menüye taşındı */
html.mpro body .tabs, html.mpro body .mnav-bar, html.mpro body .mnav-backdrop, html.mpro body .mnav-panel { display: none !important; }

/* ---------- ana alan ---------- */
html.mpro body .main { padding: 14px 12px calc(92px + env(safe-area-inset-bottom, 0px)); max-width: 100%; }
html.mpro body .main > * { max-width: 100%; }
html.mpro body .viewhead { flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 10px; }
html.mpro body .viewhead h2 { font-size: 22px; line-height: 1.15; }
html.mpro body .viewhead .sub { font-size: 13px; }
html.mpro body .section-title { margin: 18px 0 10px; }
html.mpro body .card { border-radius: 16px; padding: 14px; }
html.mpro body .grid-stats { gap: 10px; }
html.mpro body .grid-stats .stat { border-radius: 14px; }

/* ---------- alt gezinme çubuğu ---------- */
html.mpro body #mpNav {
  display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom, 0px));
  background: color-mix(in srgb, var(--surface, #fff) 90%, transparent);
  -webkit-backdrop-filter: saturate(1.5) blur(18px); backdrop-filter: saturate(1.5) blur(18px);
  border-top: 1px solid var(--border, #e5e7eb); border-radius: 20px 20px 0 0;
  box-shadow: 0 -10px 30px -14px rgba(15, 23, 42, .28);
}
html.mpro body #mpNav button {
  position: relative; flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  padding: 7px 2px 6px; border: 0; background: none; color: var(--text-muted, #64748b); font: 600 10.5px/1.1 'IBM Plex Sans', system-ui, sans-serif;
  letter-spacing: .01em; border-radius: 14px; cursor: pointer; transition: color .15s, background .15s, transform .12s;
}
html.mpro body #mpNav button svg { width: 24px; height: 24px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .18s; }
html.mpro body #mpNav button span.l { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html.mpro body #mpNav button:active { transform: scale(.94); }
html.mpro body #mpNav button.on { color: var(--accent, #1d4ed8); background: var(--accent-soft, rgba(29, 78, 216, .09)); }
html.mpro body #mpNav button.on svg { transform: translateY(-1px) scale(1.06); }
html.mpro body #mpNav .bd {
  position: absolute; top: 3px; left: calc(50% + 7px); min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px;
  background: #e11d48; color: #fff; font: 700 10px/17px 'IBM Plex Sans', sans-serif; text-align: center;
}

/* ---------- Menü (alt çekmece) ---------- */
html.mpro body #mpBack {
  display: block; position: fixed; inset: 0; z-index: 99990; background: rgba(8, 12, 24, .5);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .22s;
}
html.mpro body #mpSheet {
  display: flex; flex-direction: column; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99995; max-height: 88dvh;
  background: var(--surface, #fff); border-radius: 24px 24px 0 0; box-shadow: 0 -20px 60px -20px rgba(8, 12, 24, .5);
  transform: translateY(104%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px);
}
html.mpro body.mp-open #mpBack { opacity: 1; pointer-events: auto; }
html.mpro body.mp-open #mpSheet { transform: translateY(0); }
#mpSheet .gr { flex: 0 0 auto; width: 40px; height: 4px; border-radius: 2px; background: var(--border, #cbd5e1); margin: 9px auto 4px; }
#mpSheet .hd { flex: 0 0 auto; display: flex; align-items: center; gap: 12px; padding: 8px 18px 12px; }
#mpSheet .hd .av { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; font: 700 15px 'IBM Plex Sans', sans-serif; color: #fff; background: linear-gradient(135deg, var(--accent, #1d4ed8), #7c3aed); }
#mpSheet .hd b { display: block; font-size: 16px; color: var(--text, #0f172a); }
#mpSheet .hd small { color: var(--text-muted, #64748b); font-size: 12px; }
#mpSheet .bd2 { flex: 1 1 auto; overflow-y: auto; -webkit-overflow-scrolling: touch; padding: 0 14px 12px; overscroll-behavior: contain; }
#mpSheet .st { margin: 12px 4px 8px; font: 700 11px 'IBM Plex Sans', sans-serif; letter-spacing: .09em; text-transform: uppercase; color: var(--text-muted, #64748b); }
#mpSheet .gd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
#mpSheet .gd button {
  position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 8px; min-height: 92px; padding: 14px 6px 10px;
  border: 1px solid var(--border, #e5e7eb); border-radius: 16px; background: var(--surface-2, var(--surface, #fff)); color: var(--text, #0f172a);
  font: 600 12px/1.2 'IBM Plex Sans', sans-serif; text-align: center; cursor: pointer; transition: transform .12s, background .15s, border-color .15s;
}
#mpSheet .gd button:active { transform: scale(.96); }
#mpSheet .gd button.on { border-color: var(--accent, #1d4ed8); background: var(--accent-soft, rgba(29, 78, 216, .08)); color: var(--accent, #1d4ed8); }
#mpSheet .gd button i { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft, rgba(29, 78, 216, .09)); color: var(--accent, #1d4ed8); }
#mpSheet .gd button i svg { width: 22px; height: 22px; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
#mpSheet .gd button span { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; word-break: break-word; }
#mpSheet .gd .bd { position: absolute; top: 8px; right: 10px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: #e11d48; color: #fff; font: 700 11px/18px 'IBM Plex Sans', sans-serif; }
#mpSheet .ft { flex: 0 0 auto; padding: 8px 14px 14px; display: flex; gap: 10px; }
#mpSheet .ft button { flex: 1; min-height: 46px; border-radius: 14px; border: 1px solid var(--border, #e5e7eb); background: var(--surface, #fff); color: var(--text, #0f172a); font: 600 14px 'IBM Plex Sans', sans-serif; cursor: pointer; }
#mpSheet .ft button.dg { color: #e11d48; border-color: color-mix(in srgb, #e11d48 35%, var(--border, #e5e7eb)); }
#mpSheet .ins { margin: 12px 4px 0; padding: 12px 14px; border-radius: 14px; background: var(--accent-soft, rgba(29, 78, 216, .08)); color: var(--text, #0f172a); font-size: 12.5px; line-height: 1.45; }

/* ---------- yüzen düğmeler alt menünün üstünde dursun ---------- */
html.mpro body .chat-widget-fab, html.mpro body #aktFab, html.mpro body .mp-fab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; }
html.mpro body .mp-bell { position: fixed; right: 14px !important; left: auto !important; width: 44px !important; height: 44px !important; }
html.mpro body .topbar > .mp-bell { position: static !important; display: inline-flex !important; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px !important; height: 36px !important; min-height: 0; margin: 0 !important; padding: 0 !important; inset: auto !important; z-index: auto !important; font-size: 17px !important; }
html.mpro body #aktFab { bottom: calc(80px + env(safe-area-inset-bottom, 0px)) !important; left: auto !important; right: 14px !important; }

/* ---------- pencereler (modal) → alttan açılan sayfa ---------- */
html.mpro body .overlay { align-items: flex-end; padding: 0; height: 100dvh; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.mpro body .overlay > .modal, html.mpro body .overlay .modal {
  max-width: 100%; width: 100%; margin: 0; border-radius: 22px 22px 0 0; min-height: 40dvh; max-height: 94dvh; overflow-y: auto; -webkit-overflow-scrolling: touch;
  animation: mpUp .28s cubic-bezier(.2, .8, .2, 1); padding-bottom: env(safe-area-inset-bottom, 0px);
}
html.mpro body .modal-head { position: sticky; top: 0; z-index: 3; padding: 16px 16px 12px; background: var(--surface, #fff); border-radius: 22px 22px 0 0; }
html.mpro body .modal-head::before { content: ''; position: absolute; top: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 2px; background: var(--border, #cbd5e1); }
html.mpro body .modal-head h3 { font-size: 16px; }
html.mpro body .modal-close { width: 38px; height: 38px; font-size: 22px; border-radius: 50%; background: var(--surface-2, rgba(100, 116, 139, .12)); }
html.mpro body .modal-body { padding: 14px 14px 22px; box-shadow: none; }
@keyframes mpUp { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }

/* ---------- dokunma dostu form ve düğmeler ---------- */
html.mpro body input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]), html.mpro body select, html.mpro body textarea { font-size: 16px; min-height: 44px; border-radius: 12px; }
html.mpro body textarea { min-height: 88px; }
html.mpro body button, html.mpro body .btn { min-height: 40px; touch-action: manipulation; }
html.mpro body .btn { border-radius: 12px; }
html.mpro body input[type=checkbox], html.mpro body input[type=radio] { width: 20px; height: 20px; }
html.mpro body .formgrid { grid-template-columns: 1fr 1fr; gap: 10px 12px; }

/* ---------- tablolar: kart listesi (mpro.js 'mp-cards' sınıfını ekler) ---------- */
html.mpro body .main .tablewrap:has(> table.mp-cards), html.mpro body .main .tablewrap:has(table.mp-cards) { overflow: visible; border: 0; background: none; box-shadow: none; border-radius: 0; padding: 0; }
html.mpro body .main table.mp-cards { display: block; width: 100%; min-width: 0; border: 0; background: none; box-shadow: none; overflow: visible; }
html.mpro body .main table.mp-cards thead { display: none; }
html.mpro body .main table.mp-cards tbody { display: flex; flex-direction: column; gap: 10px; }
html.mpro body .main table.mp-cards tr {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 13px 14px; position: relative;
  background: var(--surface, #fff); border: 1px solid var(--border, #e5e7eb); border-radius: 16px; box-shadow: 0 6px 18px -14px rgba(15, 23, 42, .4);
}
html.mpro body .main table.mp-cards td { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; text-align: left; width: auto; background: none; }
html.mpro body .main table.mp-cards td::before { content: attr(data-l); display: block; margin-bottom: 2px; font: 700 9.5px 'IBM Plex Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #64748b); }
html.mpro body .main table.mp-cards td[data-l=""]::before { display: none; }
html.mpro body .main table.mp-cards td:first-child { grid-column: 1 / -1; font-weight: 600; }
html.mpro body .main table.mp-cards td:has(input, select, textarea, button, .btn, .ds-ctl), html.mpro body .main table.mp-cards td.mp-wide { grid-column: 1 / -1; }
html.mpro body .main table.mp-cards td:empty { display: none; }
/* kart yapılamayan tablolar: yatay kaydırılabilir, ilk sütun sabit */
html.mpro body .main table:not(.mp-cards):not(.ds-t):not(.tm-tbl) { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* ---------- genel taşma güvenliği ---------- */
html.mpro, html.mpro body { overflow-x: clip; max-width: 100vw; }
html.mpro body .main { overflow-x: clip; }
html.mpro body .main img, html.mpro body .main video, html.mpro body .main canvas, html.mpro body .main svg { max-width: 100%; }
html.mpro body .main pre, html.mpro body .main code { white-space: pre-wrap; word-break: break-word; }

/* ---------- görünüm geçiş animasyonu (yalnız menüden geçişte) ---------- */
html.mpro body[data-mpgo] #mainArea { animation: mpFade .26s ease-out; }
@keyframes mpFade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

@media (prefers-reduced-motion: reduce) {
  html.mpro body #mpSheet, html.mpro body #mpBack, html.mpro body[data-mpgo] #mainArea, html.mpro body .overlay .modal { animation: none; transition: none; }
}

/* ---------- alt sekmeler (Kayıtlar vb.): yapışkan, kaydırmalı hap şeridi ---------- */
html.mpro body .subtabs { display: flex; flex-wrap: nowrap; gap: 8px; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; scroll-snap-type: x proximity;
  position: sticky; top: calc(54px + env(safe-area-inset-top, 0px)); z-index: 55; margin: 0 -12px 12px; padding: 9px 12px; border-bottom: 1px solid var(--border, #e5e7eb);
  background: color-mix(in srgb, var(--surface, #fff) 86%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); }
html.mpro body .subtabs::-webkit-scrollbar { display: none; }
html.mpro body .subtabs .subtab { flex: 0 0 auto; white-space: nowrap; scroll-snap-align: center; min-height: 38px; border-radius: 19px; }

/* ---------- Dosyalar satırı: ad tam görünsün, tarih altta ---------- */
html.mpro body .dosya-row { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; column-gap: 8px; row-gap: 2px; align-items: center; padding: 11px 12px; }
html.mpro body .dosya-row-icon { grid-row: 1 / span 2; font-size: 22px; }
html.mpro body .dosya-row-name { grid-column: 2 / 4; white-space: normal; overflow: visible; text-overflow: clip; overflow-wrap: anywhere; line-height: 1.25; font-weight: 600; }
html.mpro body .dosya-row .dfs-d { grid-column: 2; font-size: 11.5px; opacity: .7; }
html.mpro body .dosya-row .dosya-row-meta { grid-column: 3; font-size: 11.5px; text-align: right; }
html.mpro body .dosya-row .dosya-row-meta:empty { display: none; }

/* ---------- gruplama satırları (tablo kartında başlık gibi) ---------- */
html.mpro body .main table.mp-cards tr.mp-grp { display: block; padding: 12px 14px; background: var(--accent-soft, rgba(29, 78, 216, .08)); }
html.mpro body .main table.mp-cards tr.mp-grp td { display: block; }
html.mpro body .main table.mp-cards tr.mp-grp td::before { display: none; }
html.mpro body .main table.mp-cards tr.mp-grp td:not(:first-child) { display: none; }

/* kendi kart düzeni olan tablolarda (data-label) grup/başlık satırlarında etiket gösterme */
html.mpro body .main tr td[colspan]::before { display: none !important; content: none !important; }
html.mpro body .main tr.pa-gh td { display: flex; align-items: center; gap: 8px; text-align: left; }

/* pencere açıkken yüzen düğmeler gizlensin */
html.mpro body:has(.overlay) .chat-widget-fab, html.mpro body:has(.overlay) #aktFab { display: none !important; }

/* uygulamanın kendi kart düzenli tabloları (data-label): 2 sütunlu, sıkı kartlar */
html.mpro body .main table.tbl tbody tr:not(.pa-gh):has(td[data-label]) { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 14px; padding: 12px 14px; }
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label] { display: block; padding: 0; border: 0; min-width: 0; overflow-wrap: anywhere; text-align: left; }
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]::before { display: block; margin-bottom: 2px; font: 700 9.5px 'IBM Plex Sans', sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted, #64748b); }
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]:first-child,
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]:nth-child(2),
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]:has(button, .btn, input, select, textarea),
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]:last-child { grid-column: 1 / -1; }
html.mpro body .main table.tbl tbody tr:not(.pa-gh) > td[data-label]:empty { display: none; }

/* ---------- PDF Studio (.pst): telefon düzeni ---------- */
html.mpro body .pst { height: 100dvh; max-height: 100dvh; }
html.mpro body .pst .pst-head { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: calc(6px + env(safe-area-inset-top, 0px)) 10px 6px; }
html.mpro body .pst .pst-head::-webkit-scrollbar { display: none; }
html.mpro body .pst .pst-head > * { flex: 0 0 auto; }
html.mpro body .pst .pst-brand .pst-ttl, html.mpro body .pst .pst-fname, html.mpro body .pst .pst-sp, html.mpro body .pst .pst-sep { display: none; }
html.mpro body .pst .pst-head .pst-b { min-height: 40px; min-width: 40px; }
html.mpro body .pst .pst-body { flex-direction: column; min-height: 0; }
html.mpro body .pst .pst-main { order: 1; flex: 1 1 0; min-height: 0; width: 100%; }
html.mpro body .pst .pst-tools { order: 2; flex: 0 0 auto; width: 100%; height: auto; flex-direction: row; align-items: stretch; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); border-right: 0; border-top: 1px solid rgba(255, 255, 255, .1); }
html.mpro body .pst .pst-tools::-webkit-scrollbar { display: none; }
html.mpro body .pst .pst-tools .pst-tg { display: none; }
html.mpro body .pst .pst-t { flex: 0 0 64px; width: 64px; min-height: 56px; font-size: 10.5px; padding: 6px 2px; }
html.mpro body .pst .pst-t kbd { display: none; }
html.mpro body .pst .pst-t span { white-space: normal; text-align: center; line-height: 1.1; }
/* özellikler paneli: alttan açılan sayfa, düğmeyle açılır */
html.mpro body .pst .pst-right { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: 100% !important; max-height: 58dvh; z-index: 12100; border-radius: 18px 18px 0 0; transform: translateY(105%); transition: transform .28s cubic-bezier(.2, .8, .2, 1); box-shadow: 0 -16px 40px rgba(0, 0, 0, .45); padding-bottom: env(safe-area-inset-bottom, 0px); }
html.mpro body .pst.mp-pr .pst-right { transform: none; }
html.mpro body .pst .mp-pbtn { display: inline-flex !important; position: fixed; right: 12px; bottom: calc(92px + env(safe-area-inset-bottom, 0px)); z-index: 12050; min-height: 44px; padding: 0 16px; align-items: center; border: 0; border-radius: 22px; background: #6366f1; color: #fff; font: 600 13px 'IBM Plex Sans', system-ui, sans-serif; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
html.mpro body .pst.mp-pr .mp-pbtn { bottom: calc(58dvh + 12px); }
.pst .mp-pbtn { display: none; }
html.mpro body .pst .pst-drop { overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.mpro body .pst .pst-empty { min-height: 100%; height: auto; padding: 24px 16px 96px; box-sizing: border-box; }
html.mpro body .pst .pst-status { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; flex-wrap: nowrap; }
html.mpro body .pst .pst-status > * { flex: 0 0 auto; }
html.mpro body .pst .pst-status > :first-child { flex: 1 1 0; min-width: 0; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Dosya görüntüleyici (DXF/DWG/STEP): tek satır, yatay kaydırmalı araç çubuğu ---------- */
html.mpro body .dosya-step-head { flex-direction: row; flex-wrap: nowrap; align-items: center; overflow-x: auto; overflow-y: hidden; -webkit-overflow-scrolling: touch; scrollbar-width: none; gap: 6px; padding: calc(8px + env(safe-area-inset-top, 0px)) 10px 8px; max-height: 64px; }
html.mpro body .dosya-step-head::-webkit-scrollbar { display: none; }
html.mpro body .dosya-step-head-title { flex: 0 0 auto; white-space: nowrap; max-width: 46vw; overflow: hidden; text-overflow: ellipsis; }
html.mpro body .dosya-step-head-actions { display: contents !important; }
html.mpro body .dosya-step-head-actions > * { flex: 0 0 auto; flex-wrap: nowrap; white-space: nowrap; min-height: 38px; }
html.mpro body .dosya-step-head-actions > :last-child { position: sticky; right: 0; z-index: 2; background: var(--surface, #fff); box-shadow: -10px 0 12px -4px var(--surface, #fff); }

/* ===== görüntüleyiciler: dokunmatik + Açınım paneli ===== */
html.mpro, html.mpro body { touch-action: pan-x pan-y; }
html.mpro body .dosya-step-canvas-wrap svg { touch-action: none; }
html.mpro body .sa-fmain svg { touch-action: none; }
/* Açınım (düz kesim) paneli: parça üstte, ayrıntılar altta kaydırmalı çekmece */
html.mpro body .sa-flat { flex-direction: column; }
html.mpro body .sa-flat .sa-fmain { flex: 1 1 auto; min-height: 220px; }
html.mpro body .sa-flat .sa-fhint { display: none; }
html.mpro body .sa-flat .sa-fside { width: auto; flex: 0 0 auto; max-height: 44%; border-left: 0; border-top: 1px solid #2b323c; padding: 6px 14px calc(12px + env(safe-area-inset-bottom, 0px)); -webkit-overflow-scrolling: touch; overscroll-behavior: contain; }
html.mpro body .sa-flat .sa-fside .sa-ftitle { position: sticky; top: -6px; z-index: 2; background: #1b1f26; padding: 8px 0; margin: 0 0 4px; display: flex; align-items: center; justify-content: space-between; cursor: pointer; }
html.mpro body .sa-flat .sa-fside .sa-ftitle::after { content: "▾ gizle"; font-size: 12px; color: #7d8896; font-weight: 500; }
html.mpro body .sa-flat .sa-fside.mp-col { max-height: 46px; overflow: hidden; }
html.mpro body .sa-flat .sa-fside.mp-col .sa-ftitle::after { content: "▴ ayrıntılar"; }

/* STEP 3B görünüm: tuvalde parmakla döndür/yakınlaştır; tarayıcı kaydırması hareketi yarıda kesmesin */
html.mpro body .dosya-step-overlay canvas, html.mpro body .dosya-step-canvas-wrap > canvas { touch-action: none; }

/* Dosyalar > arama sonuçları: ad + yol iki satır, ad tam genişlikte */
html.mpro body .dosya-row.dosya-row-search { display: flex; flex-direction: column; align-items: stretch; gap: 3px; padding: 11px 12px; }
html.mpro body .dosya-row-search .dosya-row-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
html.mpro body .dosya-row-search .dosya-row-icon { grid-row: auto; flex: 0 0 auto; width: 26px; text-align: center; }
html.mpro body .dosya-row-search .dosya-row-name { grid-column: auto; flex: 1 1 auto; min-width: 0; white-space: normal; overflow-wrap: anywhere; }
html.mpro body .dosya-row-search .dosya-row-meta { grid-column: auto; flex: 0 0 auto; font-size: 11.5px; }
html.mpro body .dosya-row-search .dosya-row-path { padding-left: 36px; font-size: 11px; white-space: normal; overflow-wrap: anywhere; line-height: 1.3; opacity: .7; }

/* ===== Yerleşim (nesting) paneli: telefon düzeni ===== */
.mp-ntabs { display: none; }
html.mp-nest body .dn { left: 0; right: 0; top: 0; bottom: 0; border-radius: 0; border-left: 0; border-right: 0; }
html.mp-nest body .dn .dn-h { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; gap: 8px; padding: 8px 10px; }
html.mp-nest body .dn .dn-h::-webkit-scrollbar { display: none; }
html.mp-nest body .dn .dn-h > * { flex: 0 0 auto; }
html.mp-nest body .dn .dn-sub, html.mp-nest body .dn .ck-odak, html.mp-nest body .dn .ck-th { display: none !important; }
html.mp-nest body .dn .dn-body { flex-direction: column; }
html.mp-nest body .dn .mp-ntabs { display: flex; gap: 8px; flex: none; padding: 8px 10px; background: #0f141d; border-bottom: 1px solid rgba(255,255,255,.1); }
html.mp-nest body .dn .mp-ntabs button { flex: 1 1 0; min-height: 42px; border-radius: 10px; border: 1px solid rgba(255,255,255,.18); background: #141b29; color: #cfd7e6; font-weight: 700; font-size: 14px; }
html.mp-nest body .dn .mp-ntabs button.on { background: #38e8ff; color: #03222a; border-color: #38e8ff; }
html.mp-nest body .dn .mp-ntabs button.mp-nrun { flex: 0 0 auto; background: #1fae82; color: #05261c; border-color: #1fae82; padding: 0 14px; }
html.mp-nest body .dn .mp-ntabs button.mp-nrun.stop { background: #e5484d; color: #fff; border-color: #e5484d; }
html.mp-nest body .dn .dn-side { width: auto; flex: 1 1 auto; min-height: 0; border-right: 0; padding: 10px 12px calc(14px + env(safe-area-inset-bottom, 0px)); }
html.mp-nest body .dn .dn-main { flex: 1 1 auto; min-height: 0; }
html.mp-nest body .dn:not(.mp-tm) .dn-main { display: none; }
html.mp-nest body .dn.mp-tm .dn-side { display: none; }
html.mp-nest body .dn .dn-stage { min-height: 0; touch-action: none; }
html.mp-nest body .dn .dn-dock { max-height: 28vh; }
html.mp-nest body .dn .dn-go { min-height: 46px; font-size: 15px; }
html.mp-nest body .dn .dn-stage .dn-ban, html.mp-nest body .dn .dn-stage .dn-ptot, html.mp-nest body .dn .dn-stage .ck-g { display: none !important; }
html.mp-nest body .dn .dn-stage { flex: 1 1 auto; min-height: 42vh; }
html.mp-nest body .dn .dn-main { overflow-y: auto; }
html.mp-nest body .dn .dn-bar { max-height: none; overflow: visible; flex: none; }
html.mp-nest body .dn .dn-dock { max-height: 24vh; overflow: auto; }
