/* Drive Paneli — Ubuntu (Yaru/Adwaita) Dosyalar görünümü */
:root {
  --view: #ffffff; --side: #ebebed; --hb: #ffffff; --fg: #2e3436; --muted: #77767b; --line: #dededf;
  --hover: rgba(0,0,0,.055); --active: rgba(0,0,0,.1); --btn: rgba(0,0,0,.075);
  --accent: #e95420; --accent-fg: #ffffff; --sel: color-mix(in srgb, var(--accent) 16%, transparent);
  --sel-strong: color-mix(in srgb, var(--accent) 26%, transparent);
  --warn: #c88800; --err: #c01c28; --shadow: 0 2px 14px rgba(0,0,0,.16), 0 0 0 1px rgba(0,0,0,.06);
  --popover: #ffffff; color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --view: #1e1e1e; --side: #2e2e32; --hb: #242424; --fg: #ffffff; --muted: #9a9996; --line: #3a3a3d;
    --hover: rgba(255,255,255,.07); --active: rgba(255,255,255,.12); --btn: rgba(255,255,255,.1);
    --sel: color-mix(in srgb, var(--accent) 28%, transparent); --sel-strong: color-mix(in srgb, var(--accent) 42%, transparent);
    --popover: #383838; --shadow: 0 2px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --view: #1e1e1e; --side: #2e2e32; --hb: #242424; --fg: #ffffff; --muted: #9a9996; --line: #3a3a3d;
  --hover: rgba(255,255,255,.07); --active: rgba(255,255,255,.12); --btn: rgba(255,255,255,.1);
  --sel: color-mix(in srgb, var(--accent) 28%, transparent); --sel-strong: color-mix(in srgb, var(--accent) 42%, transparent);
  --popover: #383838; --shadow: 0 2px 14px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.07); color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; overflow: hidden; }
body { background: var(--view); color: var(--fg); font: 14.5px/1.4 "Ubuntu", "Cantarell", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
.hidden { display: none !important; }
button, .btn { font: inherit; color: inherit; border: 0; background: var(--btn); padding: 6px 12px; border-radius: 7px;
  cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 34px; }
button:hover, .btn:hover { background: var(--active); }
button.flat { background: transparent; }
button.flat:hover { background: var(--hover); }
button.suggested { background: var(--accent); color: var(--accent-fg); justify-content: center; }
button.destructive { background: var(--err); color: #fff; }
input { font: inherit; color: var(--fg); background: var(--btn); border: 0; border-radius: 7px; padding: 7px 10px; outline: none; }
input:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.sym { display: inline-block; width: 16px; height: 16px; flex: none; background: currentColor;
  -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }

/* giriş */
.login { position: fixed; inset: 0; display: grid; place-items: center; padding: 16px; background: var(--side); }
.login-card { width: min(340px, 100%); background: var(--view); border-radius: 14px; padding: 28px; display: grid; gap: 12px;
  box-shadow: var(--shadow); justify-items: stretch; text-align: center; }
.login-card img { justify-self: center; }
.login-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 500; }
.err { color: var(--err); min-height: 1.2em; margin: 0; }

/* pencere düzeni */
.app { display: flex; height: 100%; }
.side { width: 230px; flex: none; background: var(--side); display: flex; flex-direction: column; border-right: 1px solid var(--line); }
.side-hb { height: 48px; display: flex; align-items: center; padding: 0 16px; flex: none; }
.brand { font-weight: 700; font-size: 15px; }
.places { flex: 1; overflow: auto; padding: 0 8px 8px; }
.places .sec { font-size: 12px; font-weight: 700; color: var(--muted); padding: 12px 10px 4px; }
.place { display: flex; align-items: center; gap: 12px; width: 100%; padding: 0 10px; min-height: 38px; border-radius: 7px;
  background: transparent; text-align: left; justify-content: flex-start; }
.place:hover { background: var(--hover); }
.place.on { background: var(--active); font-weight: 500; }
.place.drop-ok { background: var(--sel-strong); }
.place .lbl { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.place .sub { font-size: 11.5px; color: var(--muted); display: block; font-weight: 400; }
.place.off { opacity: .55; }
.place .dot { width: 8px; height: 8px; border-radius: 50%; background: #2ec27e; flex: none; }
.place.off .dot { background: var(--muted); }
.side-foot { padding: 8px; border-top: 1px solid var(--line); }
.row-btn { width: 100%; justify-content: flex-start; gap: 12px; }
.side-shade { display: none; }

.shell { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.hb { height: 48px; flex: none; display: flex; align-items: center; gap: 6px; padding: 0 8px; background: var(--hb);
  border-bottom: 1px solid var(--line); }
.ib { width: 34px; min-height: 34px; height: 34px; padding: 0; justify-content: center; background: transparent; border-radius: 7px; color: inherit; }
.ib:hover { background: var(--hover); }
.ib.on, .ib:active { background: var(--active); }
.ib.narrow { width: 24px; }
.ib:disabled { opacity: .35; cursor: default; background: transparent; }
.linked { display: flex; }
#btn-side { display: none; }
body.side-hidden .side { display: none; }
body.side-hidden #btn-side { display: inline-flex; }

/* yol çubuğu */
.pathbar { flex: 1; min-width: 0; display: flex; align-items: center; height: 34px; background: var(--btn); border-radius: 7px;
  overflow-x: auto; scrollbar-width: none; padding: 0 3px; }
.pathbar::-webkit-scrollbar { display: none; }
.pathbar .seg { background: transparent; min-height: 28px; height: 28px; padding: 0 9px; border-radius: 5px; white-space: nowrap; flex: none; color: var(--muted); }
.pathbar .seg:hover { background: var(--hover); color: var(--fg); }
.pathbar .seg.cur { color: var(--fg); font-weight: 700; }
.pathbar .seg.drop-ok { background: var(--sel-strong); }
.pathbar .sep { color: var(--muted); opacity: .6; flex: none; padding: 0 1px; }
.pathbar input { width: 100%; background: transparent; box-shadow: none; padding: 0 8px; }
.pathbar.editing { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 60%, transparent); }
.searchbar { flex: 1; min-width: 0; display: flex; align-items: center; gap: 8px; height: 34px; background: var(--btn); border-radius: 7px; padding: 0 4px 0 10px; }
.searchbar input { flex: 1; min-width: 0; background: transparent; box-shadow: none !important; padding: 0; }
.searchbar .sym { opacity: .7; }
.chip { min-height: 26px; height: 26px; font-size: 12.5px; padding: 0 10px; border-radius: 13px; background: var(--active); white-space: nowrap; }

.status { padding: 8px 16px; color: var(--warn); background: color-mix(in srgb, var(--warn) 12%, var(--view)); border-bottom: 1px solid var(--line); font-size: 13.5px; }
.status:empty { display: none; }
.main { flex: 1; display: flex; min-height: 0; }
.view { flex: 1; overflow: auto; outline: none; position: relative; user-select: none; -webkit-user-select: none; }
.empty { color: var(--muted); padding: 60px 20px; text-align: center; display: grid; gap: 14px; justify-items: center; font-size: 17px; }
.empty img { width: 96px; opacity: .5; }
.spin { color: var(--muted); padding: 24px; }

/* ızgara (simge) görünümü */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(var(--cell), 1fr)); gap: 6px 4px; padding: 12px; align-content: start; }
.grid .it { display: flex; flex-direction: column; align-items: center; padding: 6px 4px 8px; border-radius: 10px; min-width: 0;
  content-visibility: auto; contain-intrinsic-size: var(--cell) calc(var(--icon) + 60px); }
.grid .it .tb { width: var(--icon); height: var(--icon); display: grid; place-items: center; border-radius: 8px; position: relative; }
.grid .it .tb img { max-width: var(--icon); max-height: var(--icon); display: block; }
.grid .it .tb img.th { border-radius: 4px; box-shadow: 0 1px 4px rgba(0,0,0,.28); object-fit: contain; }
.grid .it .lb { margin-top: 6px; padding: 1px 6px; border-radius: 6px; text-align: center; font-size: 13.5px; line-height: 1.3;
  overflow: hidden; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; word-break: break-word; max-width: 100%; }
.grid .it .cap { font-size: 12px; color: var(--muted); text-align: center; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.grid .it:hover .tb { background: var(--hover); }
.grid .it.sel .tb { background: var(--sel); }
.grid .it.sel .lb { background: var(--accent); color: var(--accent-fg); -webkit-line-clamp: unset; }
.grid .it.cut, .list .it.cut { opacity: .45; }
.grid .it.drop-ok .tb, .list .it.drop-ok { background: var(--sel-strong); }

.emo { font-size: calc(var(--icon) * .78); line-height: 1; }
.list .emo { font-size: calc(var(--licon) * .85); width: var(--licon); text-align: center; flex: none; }

/* liste görünümü */
.list { min-width: 0; }
.list .head, .list .it { display: grid; grid-template-columns: minmax(0, 1fr) 96px 150px 150px; align-items: center; gap: 12px; padding: 0 16px; }
.list.search .head, .list.search .it { grid-template-columns: minmax(0, 1fr) 96px minmax(0, .8fr) 150px; }
.list .head { position: sticky; top: 0; z-index: 2; background: var(--view); border-bottom: 1px solid var(--line); height: 34px;
  font-size: 13px; color: var(--muted); font-weight: 500; }
.list .head button { background: transparent; padding: 0; min-height: 0; color: inherit; justify-content: flex-start; gap: 4px; border-radius: 0; }
.list .head button.r { justify-content: flex-end; }
.list .head button:hover { color: var(--fg); }
.list .head button.on { color: var(--fg); }
.list .head .sym { width: 12px; height: 12px; }
.list .it { min-height: var(--row); content-visibility: auto; contain-intrinsic-size: auto var(--row); }
.list .it:nth-child(odd) { background: color-mix(in srgb, var(--fg) 2.2%, transparent); }
.list .it:hover { background: var(--hover); }
.list .it.sel { background: var(--sel-strong); }
.list .it .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.list .it .nm img { width: var(--licon); height: var(--licon); flex: none; object-fit: contain; }
.list .it .nm img.th { border-radius: 3px; }
.list .it .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .it .c { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.list .it .c.r { text-align: right; }
.list .head > :nth-child(2) { justify-content: flex-end; }

/* yüzen durum çubuğu (Nautilus sağ alt) */
.floatbar { position: absolute; right: 14px; bottom: 14px; background: var(--popover); box-shadow: var(--shadow); padding: 7px 14px;
  border-radius: 9px; font-size: 13.5px; max-width: 60%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; z-index: 5; pointer-events: none; }

/* açılır menüler, iletişim kutuları */
.popover { position: fixed; z-index: 50; background: var(--popover); border-radius: 12px; box-shadow: var(--shadow); padding: 6px;
  min-width: 210px; max-width: 320px; max-height: calc(100vh - 20px); overflow: auto; }
.popover .mi { width: 100%; background: transparent; justify-content: flex-start; padding: 0 12px; min-height: 34px; border-radius: 7px; gap: 10px; }
.popover .mi:hover, .popover .mi:focus-visible { background: var(--hover); outline: none; }
.popover .mi .k { margin-left: auto; color: var(--muted); font-size: 12.5px; }
.popover .mi .chk { width: 16px; visibility: hidden; }
.popover .mi.on .chk { visibility: visible; }
.popover .mi:disabled { opacity: .4; background: transparent; cursor: default; }
.popover hr { border: 0; border-top: 1px solid var(--line); margin: 5px 4px; }
.popover .lab { font-size: 12px; color: var(--muted); padding: 6px 12px 2px; font-weight: 700; }
.popover .zoom { display: flex; align-items: center; gap: 4px; padding: 4px 6px; }
.popover .zoom .lvl { flex: 1; text-align: center; font-size: 13px; color: var(--muted); }
.popover .swatches { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 10px 8px; }
.popover .swatches button { width: 28px; height: 28px; min-height: 28px; padding: 0; border-radius: 50%; background: transparent; }
.popover .swatches img { width: 28px; height: 28px; }
.popover .swatches button.on { box-shadow: 0 0 0 2px var(--accent); }
.dialog-shade { position: fixed; inset: 0; background: rgba(0,0,0,.32); z-index: 60; display: grid; place-items: center; padding: 16px; }
.dialog { background: var(--popover); border-radius: 14px; box-shadow: var(--shadow); width: min(400px, 100%); padding: 22px 22px 18px; display: grid; gap: 14px; }
.dialog h2 { margin: 0; font-size: 17px; font-weight: 700; text-align: center; }
.dialog p { margin: 0; color: var(--muted); text-align: center; word-break: break-word; }
.dialog .btns { display: flex; gap: 8px; justify-content: flex-end; }
.dialog .btns button { flex: 1; justify-content: center; }
.dialog .tree { max-height: 46vh; overflow: auto; background: var(--btn); border-radius: 8px; padding: 4px; }
.dialog .tree button { width: 100%; background: transparent; justify-content: flex-start; min-height: 32px; gap: 8px; }
.dialog .tree button:hover { background: var(--hover); }
.dialog .tree img { width: 20px; height: 20px; }
.dialog .cur { font-size: 13px; color: var(--muted); word-break: break-all; }

/* önizleme: yan panel ya da Nautilus "hızlı bakış" penceresi */
.preview { width: min(46vw, 900px); border-left: 1px solid var(--line); background: var(--view); display: flex; flex-direction: column; min-width: 0; }
.pv-head { display: flex; align-items: center; gap: 6px; padding: 0 6px 0 12px; height: 48px; background: var(--hb); border-bottom: 1px solid var(--line); flex: none; }
.pv-name { flex: 1; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-align: center; }
.pv-actions { display: flex; gap: 2px; }
.pv-body { flex: 1; overflow: auto; position: relative; }
.pv-body iframe, .pv-body .full { width: 100%; height: 100%; border: 0; display: block; }
.pv-body img, .pv-body video { max-width: 100%; max-height: 100%; display: block; margin: auto; }
.pv-body .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--fg) 4%, var(--view)); }
.pv-body .center img, .pv-body .center video { max-width: 100%; max-height: 100%; object-fit: contain; }
.pv-body pre { margin: 0; padding: 14px; font: 13px/1.5 "Ubuntu Mono", ui-monospace, Menlo, monospace; white-space: pre; tab-size: 4; }
.pv-body .md { padding: 18px 24px; max-width: 860px; }
.pv-body .md img { max-width: 100%; }
.pv-body table { border-collapse: collapse; font-size: 12.5px; }
.pv-body td, .pv-body th { border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap; }
.pv-body .sheet-tabs { display: flex; gap: 4px; padding: 6px; position: sticky; top: 0; background: var(--view); border-bottom: 1px solid var(--line); }
.pv-body .sheet-tabs button.sel { background: var(--accent); color: var(--accent-fg); }
.pv-body .note { padding: 16px; color: var(--muted); }
.pv-body .cell { border-bottom: 1px solid var(--line); }
.pv-body .cell pre.out { color: var(--muted); }
.pv-body .arch { padding: 8px 14px; font-size: 13px; }
.pv-body .arch div { padding: 2px 0; white-space: nowrap; }

.drop { position: fixed; inset: 0; background: color-mix(in srgb, var(--accent) 16%, transparent); border: 3px dashed var(--accent);
  display: grid; place-items: center; font-size: 22px; font-weight: 500; pointer-events: none; z-index: 70; }
.toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); background: #303030; color: #fff;
  padding: 10px 18px; border-radius: 999px; max-width: 90vw; z-index: 80; box-shadow: var(--shadow); }

/* telefon (body.phone: dokunmatik küçük ekran; bilgisayarda pencere daralsa da değil) */
  body.phone .side { position: fixed; inset: 0 auto 0 0; z-index: 45; width: min(280px, 85vw); transform: translateX(-105%); transition: transform .18s; box-shadow: var(--shadow); }
  body.phone.side-open .side { transform: none; }
  body.phone.side-open .side-shade { display: block; position: fixed; inset: 0; z-index: 44; background: rgba(0,0,0,.35); }
  body.phone.side-hidden .side { display: flex; }
  body.phone #btn-side { display: inline-flex; }
  body.phone #btn-fwd { display: none; }
  body.phone .list .head, body.phone .list .it, body.phone .list.search .head, body.phone .list.search .it { grid-template-columns: minmax(0, 1fr) 76px; padding: 0 12px; }
  body.phone .list .head > :nth-child(n+3), body.phone .list .it > :nth-child(n+3) { display: none; }
  body.phone .preview { position: fixed; inset: 0 0 var(--dock) 0; width: auto; z-index: 40; border: 0; border-radius: 0; }
  body.phone .floatbar { left: 14px; right: auto; max-width: calc(100% - 28px); }


/* tam sayfa görüntüleyici (#/goster/...) */
body.solo .side, body.solo .hb, body.solo .status, body.solo .view, body.solo .floatbar, body.solo .dock, body.solo .desk { display: none !important; }
body.solo .preview { position: fixed; inset: 0; width: auto; border: 0; border-radius: 0; z-index: 10; }
body.solo #pv-open { display: none !important; }

/* ------------------------------------------------------------ Ubuntu dock */
:root { --dock: 0px; --dock-w: 60px; }
.dock { width: var(--dock-w); flex: none; background: #1b1b1d; display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 8px 0; z-index: 46; overflow: visible; }
.dk { position: relative; width: 48px; height: 48px; min-height: 48px; padding: 0; justify-content: center; border-radius: 12px; background: transparent; color: #eee; flex: none; }
.dk:hover { background: rgba(255,255,255,.12); }
.dk.on { background: rgba(255,255,255,.18); }
.dk img { width: 38px; height: 38px; object-fit: contain; pointer-events: none; }
.dk img.th { width: 36px; height: 36px; border-radius: 6px; object-fit: cover; box-shadow: 0 1px 4px rgba(0,0,0,.5); }
.dk.mn img { opacity: .55; }
.dk .run { position: absolute; left: -6px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); transform: translateY(-50%); display: none; }
.dock-items .dk .run, .dk.running .run { display: block; }
.dk[data-tip]:hover::after { content: attr(data-tip); position: absolute; left: calc(100% + 12px); top: 50%; transform: translateY(-50%);
  background: #303030; color: #fff; padding: 6px 12px; border-radius: 8px; font-size: 13px; white-space: nowrap; max-width: 360px;
  overflow: hidden; text-overflow: ellipsis; pointer-events: none; box-shadow: 0 2px 10px rgba(0,0,0,.4); z-index: 100; }
.dock-sep { width: 32px; height: 1px; background: rgba(255,255,255,.18); margin: 2px 0; flex: none; }
.dock-items { display: flex; flex-direction: column; gap: 6px; align-items: center; overflow-y: auto; overflow-x: visible; scrollbar-width: none; flex: 0 1 auto; padding: 0 6px; }
.dock-items::-webkit-scrollbar { display: none; }
.dock-trash { margin-top: auto; }
#dock-desk .sym { width: 20px; height: 20px; }

/* ------------------------------------------------------------ pencereler */
.desk { position: fixed; left: var(--dock-w); top: 0; right: 0; bottom: var(--dock); pointer-events: none; z-index: 30; }
.win { position: absolute; pointer-events: auto; display: flex; flex-direction: column; background: var(--view); border-radius: 12px;
  box-shadow: 0 6px 30px rgba(0,0,0,.28), 0 0 0 1px rgba(0,0,0,.12); overflow: hidden; outline: none;
  transition: transform .2s ease, opacity .2s ease; }
.win.focused { box-shadow: 0 10px 40px rgba(0,0,0,.36), 0 0 0 1px rgba(0,0,0,.14); }
.win:not(.focused) .w-hb { opacity: .92; }
.win.anim { transition: left .18s ease, top .18s ease, width .18s ease, height .18s ease, transform .2s ease, opacity .2s ease; }
.win.opening { transform: scale(.94); opacity: 0; }
.win.closing { transform: scale(.94); opacity: 0; pointer-events: none; }
.win.min { transform: scale(.06); opacity: 0; pointer-events: none; }
.win[data-state="max"], .win[data-state="left"], .win[data-state="right"], .win[data-state="tl"], .win[data-state="tr"], .win[data-state="bl"], .win[data-state="br"] { border-radius: 0; }
.w-hb { height: 46px; flex: none; display: flex; align-items: center; gap: 4px; padding: 0 6px; background: var(--hb); border-bottom: 1px solid var(--line);
  cursor: default; user-select: none; touch-action: none; }
.w-left, .w-btns { display: flex; align-items: center; gap: 2px; flex: none; }
.w-title { flex: 1; min-width: 0; display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 700; font-size: 14px; }
.w-title img { width: 22px; height: 22px; object-fit: cover; border-radius: 4px; flex: none; }
.w-title span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wb { width: 30px; height: 30px; min-height: 30px; padding: 0; border-radius: 50%; justify-content: center; background: transparent; color: inherit; }
.wb:hover { background: var(--hover); }
.w-min, .w-max, .w-close { background: var(--btn); width: 24px; height: 24px; min-height: 24px; margin-left: 6px; }
.w-min .sym, .w-max .sym, .w-close .sym { width: 12px; height: 12px; }
.w-close:hover { background: var(--accent); color: #fff; }
.w-body { flex: 1; min-height: 0; overflow: auto; position: relative; }
.w-body iframe, .w-body .full { width: 100%; height: 100%; border: 0; display: block; }
.w-body .center { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; background: color-mix(in srgb, var(--fg) 4%, var(--view)); }
.w-body .center img, .w-body .center video { max-width: 100%; max-height: 100%; object-fit: contain; }
.w-body pre { margin: 0; padding: 14px; font: 13px/1.5 "Ubuntu Mono", ui-monospace, Menlo, monospace; white-space: pre; tab-size: 4; }
.w-body .md { padding: 18px 24px; max-width: 860px; }
.w-body .md img { max-width: 100%; }
.w-body table { border-collapse: collapse; font-size: 12.5px; }
.w-body td, .w-body th { border: 1px solid var(--line); padding: 3px 7px; white-space: nowrap; }
.w-body .sheet-tabs { display: flex; gap: 4px; padding: 6px; position: sticky; top: 0; background: var(--view); border-bottom: 1px solid var(--line); }
.w-body .sheet-tabs button.sel { background: var(--accent); color: var(--accent-fg); }
.w-body .note { padding: 16px; color: var(--muted); }
.w-body .cell { border-bottom: 1px solid var(--line); }
.w-body .cell pre.out { color: var(--muted); }
.rs { position: absolute; z-index: 3; }
.rs-n, .rs-s { left: 10px; right: 10px; height: 6px; cursor: ns-resize; } .rs-n { top: 0; } .rs-s { bottom: 0; }
.rs-e, .rs-w { top: 10px; bottom: 10px; width: 6px; cursor: ew-resize; } .rs-e { right: 0; } .rs-w { left: 0; }
.rs-ne, .rs-nw, .rs-se, .rs-sw { width: 14px; height: 14px; } .rs-ne { top: 0; right: 0; cursor: nesw-resize; } .rs-sw { bottom: 0; left: 0; cursor: nesw-resize; }
.rs-nw { top: 0; left: 0; cursor: nwse-resize; } .rs-se { bottom: 0; right: 0; cursor: nwse-resize; }
.win[data-state="max"] .rs { display: none; }
.snap { position: absolute; border-radius: 14px; background: color-mix(in srgb, var(--accent) 22%, transparent); border: 2px solid color-mix(in srgb, var(--accent) 70%, transparent);
  transition: all .12s ease; pointer-events: none; z-index: 1; }
body.wm-drag iframe, body.wm-drag video { pointer-events: none; }
body.wm-drag { user-select: none; }

/* ------------------------------------------------------------ arşiv tarayıcısı */
.arc { position: absolute; inset: 0; display: flex; flex-direction: column; }
.arc-bar { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); flex: none; }
.arc-crumbs { flex: 1; min-width: 0; display: flex; align-items: center; overflow-x: auto; scrollbar-width: none; background: var(--btn); border-radius: 7px; height: 32px; padding: 0 3px; }
.arc-crumbs .seg { background: transparent; min-height: 26px; height: 26px; padding: 0 8px; border-radius: 5px; white-space: nowrap; color: var(--muted); flex: none; }
.arc-crumbs .seg.cur { color: var(--fg); font-weight: 700; }
.arc-crumbs .sep { color: var(--muted); opacity: .6; }
.arc-filter { width: 200px; height: 32px; }
.arc-info { padding: 6px 14px; font-size: 12.5px; color: var(--muted); border-bottom: 1px solid var(--line); flex: none; }
.arc-info .warn { color: var(--warn); }
.arc-head, .arc-row { display: grid; grid-template-columns: minmax(0, 1fr) 90px 120px 34px; align-items: center; gap: 10px; padding: 0 12px; }
.arc-head { height: 30px; font-size: 12.5px; color: var(--muted); font-weight: 500; border-bottom: 1px solid var(--line); flex: none; }
.arc-head .r, .arc-row .r { text-align: right; }
.arc-list { flex: 1; overflow: auto; outline: none; user-select: none; }
.arc-row { min-height: 36px; }
.arc-row:nth-child(odd) { background: color-mix(in srgb, var(--fg) 2.2%, transparent); }
.arc-row:hover { background: var(--hover); }
.arc-row.sel { background: var(--sel-strong); }
.arc-row.enc { opacity: .5; }
.arc-row .nm { display: flex; align-items: center; gap: 10px; min-width: 0; }
.arc-row .nm img { width: 24px; height: 24px; flex: none; }
.arc-row .nm span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.arc-row .nm small { display: block; color: var(--muted); font-size: 11.5px; overflow: hidden; text-overflow: ellipsis; }
.arc-row .c { color: var(--muted); font-size: 13px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.arc-row .dl { width: 30px; height: 30px; min-height: 30px; opacity: 0; }
.arc-row:hover .dl, .arc-row.sel .dl { opacity: 1; }
.arc-note { padding: 6px 14px; font-size: 12px; color: var(--muted); border-top: 1px solid var(--line); flex: none; }

/* ------------------------------------------------------------ asistan (sohbet uygulaması) */
.chat { position: absolute; inset: 0; display: flex; }
.ch-side { width: 230px; flex: none; background: var(--side); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 8px; gap: 6px; }
.ch-new { justify-content: flex-start; gap: 10px; }
.ch-list { flex: 1; overflow: auto; display: flex; flex-direction: column; gap: 2px; }
.ch-item { display: flex; align-items: center; gap: 4px; padding: 0 4px 0 10px; min-height: 36px; border-radius: 7px; cursor: pointer; font-size: 13.5px; }
.ch-item:hover { background: var(--hover); }
.ch-item.on { background: var(--active); font-weight: 500; }
.ch-item span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-item .ch-del { width: 28px; height: 28px; min-height: 28px; opacity: 0; }
.ch-item:hover .ch-del, .ch-item.confirm .ch-del { opacity: 1; }
.ch-item.confirm .ch-del { background: var(--err); color: #fff; }
.ch-none { color: var(--muted); font-size: 13px; padding: 10px; }
.ch-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.ch-top { height: 44px; flex: none; display: flex; align-items: center; gap: 8px; padding: 0 8px; border-bottom: 1px solid var(--line); }
.ch-toggle { display: none; }
.ch-title { flex: 1; min-width: 0; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-model { font: inherit; font-size: 12.5px; color: var(--fg); background: var(--btn); border: 0; border-radius: 7px; padding: 5px 8px; max-width: 220px; }
.chat.narrow .ch-toggle { display: inline-flex; }
.chat.narrow .ch-side { display: none; }
.chat.narrow.side-open .ch-side { display: flex; position: absolute; inset: 0 auto 0 0; z-index: 5; box-shadow: var(--shadow); }
.ch-msgs { flex: 1; overflow: auto; padding: 18px 0 8px; }
.msg { display: flex; gap: 12px; padding: 6px 22px; max-width: 900px; margin: 0 auto; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: color-mix(in srgb, var(--accent) 14%, var(--btn)); padding: 9px 14px; border-radius: 16px 16px 4px 16px; white-space: pre-wrap; word-break: break-word; max-width: 80%; }
.msg.bot .av { width: 30px; height: 30px; flex: none; margin-top: 2px; }
.bot-body { flex: 1; min-width: 0; }
.bot-body .md { padding: 0; max-width: none; line-height: 1.55; }
.bot-body .md p:first-child { margin-top: 4px; }
.bot-body .md pre { background: var(--btn); border-radius: 8px; padding: 10px 12px; overflow: auto; }
.bot-body .md code { font-family: "Ubuntu Mono", ui-monospace, monospace; background: var(--btn); padding: 1px 5px; border-radius: 4px; font-size: .95em; }
.bot-body .md pre code { background: none; padding: 0; }
.bot-body .md code.plink { cursor: pointer; color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
.bot-body .md code.plink:hover { text-decoration: underline; }
.bot-body .md table { border-collapse: collapse; } .bot-body .md td, .bot-body .md th { border: 1px solid var(--line); padding: 4px 8px; }
.tools { display: flex; flex-wrap: wrap; gap: 6px; margin: 2px 0 6px; }
.tool { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: var(--btn); border-radius: 999px; padding: 3px 10px; }
.tool .sym { width: 13px; height: 13px; }
.tool.busy { animation: pulse 1.2s infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.ch-err { color: var(--err); font-size: 13.5px; margin-top: 4px; }
.bot-actions { opacity: 0; margin-top: 2px; } .msg.bot:hover .bot-actions { opacity: 1; }
.bot-actions .ib { width: 28px; height: 28px; min-height: 28px; }
.typing { display: inline-flex; gap: 4px; padding: 8px 0; } .typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: pulse 1s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
.ch-empty { display: grid; justify-items: center; text-align: center; gap: 6px; padding: 8vh 24px 0; color: var(--muted); }
.ch-empty img { width: 80px; } .ch-empty h2 { margin: 6px 0 0; color: var(--fg); font-weight: 500; }
.ch-sugg { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 14px; max-width: 560px; }
.ch-sugg .chip { height: auto; min-height: 32px; padding: 6px 14px; border-radius: 16px; font-size: 13.5px; background: var(--btn); }
.ch-form { flex: none; display: flex; gap: 8px; align-items: flex-end; padding: 10px 16px 14px; max-width: 900px; width: 100%; margin: 0 auto; }
.ch-form textarea { flex: 1; font: inherit; color: var(--fg); background: var(--btn); border: 0; border-radius: 14px; padding: 10px 14px; resize: none; outline: none; max-height: 180px; line-height: 1.4; }
.ch-form textarea:focus { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 55%, transparent); }
.ch-send { width: 42px; height: 42px; min-height: 42px; padding: 0; border-radius: 50%; justify-content: center; }

/* telefon (body.phone: dokunmatik küçük ekran; bilgisayarda pencere daralsa da değil) */
  body.phone { --dock: calc(58px + env(safe-area-inset-bottom)); --dock-w: 0px; }
  body.phone .dock { position: fixed; left: 0; right: 0; bottom: 0; width: auto; height: var(--dock); flex-direction: row; padding: 0 8px env(safe-area-inset-bottom); justify-content: flex-start; }
  body.phone .dock-items { flex-direction: row; overflow-x: auto; overflow-y: hidden; padding: 0; }
  body.phone .dock-sep { width: 1px; height: 30px; }
  body.phone .dock-trash { margin: 0 0 0 auto; }
  body.phone .dk .run { left: 50%; top: auto; bottom: -3px; transform: translateX(-50%); }
  body.phone .dk[data-tip]:hover::after { display: none; }
  body.phone .shell { padding-bottom: var(--dock); }
  body.phone .win { border-radius: 0; }
  body.phone .rs { display: none; }


.status.info { color: var(--fg); background: var(--btn); display: flex; align-items: center; flex-wrap: wrap; gap: 4px; }

/* ------------------------------------------------------------ Diskler */
.dsk { position: absolute; inset: 0; display: flex; }
.dsk-side { width: 250px; flex: none; background: var(--side); border-right: 1px solid var(--line); overflow: auto; padding: 8px; }
.dsk-sec { font-size: 12px; font-weight: 700; color: var(--muted); padding: 14px 8px 4px; }
.dsk-sec .off { font-weight: 400; }
.dsk-none { font-size: 12.5px; color: var(--muted); padding: 4px 10px; }
.dsk-item { width: 100%; background: transparent; justify-content: flex-start; gap: 10px; padding: 6px 8px; min-height: 52px; border-radius: 8px; text-align: left; }
.dsk-item:hover { background: var(--hover); }
.dsk-item.on { background: var(--active); }
.dsk-item.stale { opacity: .6; }
.dsk-item img { width: 32px; height: 32px; flex: none; }
.dsk-item span { flex: 1; min-width: 0; display: grid; }
.dsk-item small { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dot.ok { background: #2ec27e; } .dot.warn { background: #e5a50a; } .dot.bad { background: #e01b24; } .dot.unk { background: var(--muted); }
.dsk-item .dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dsk-main { flex: 1; min-width: 0; overflow: auto; padding: 18px 24px 30px; }
.dsk-main h3 { font-size: 14px; margin: 22px 0 8px; color: var(--muted); font-weight: 700; }
.dsk-head { display: flex; gap: 16px; align-items: center; }
.dsk-head img { width: 64px; height: 64px; }
.dsk-head h2 { margin: 0; font-size: 20px; font-weight: 500; }
.dsk-head p, .dsk-top .age { margin: 2px 0 0; color: var(--muted); font-size: 13.5px; }
.dsk-top { display: flex; align-items: center; gap: 12px; }
.dsk-top h2 { margin: 0; font-size: 20px; font-weight: 500; }
.dsk-top .age { flex: 1; }
.dsk-stale { margin-top: 12px; padding: 8px 12px; border-radius: 8px; background: var(--btn); color: var(--muted); font-size: 13.5px; }
.dsk-health { display: flex; gap: 12px; align-items: flex-start; margin-top: 14px; padding: 12px 14px; border-radius: 10px; }
.dsk-health .sym { width: 22px; height: 22px; margin-top: 1px; }
.dsk-health ul { margin: 4px 0 0; padding-left: 18px; font-size: 13.5px; }
.dsk-health.ok { background: color-mix(in srgb, #2ec27e 16%, transparent); color: color-mix(in srgb, #26a269 80%, var(--fg)); }
.dsk-health.warn { background: color-mix(in srgb, #e5a50a 18%, transparent); }
.dsk-health.bad { background: color-mix(in srgb, #e01b24 16%, transparent); color: color-mix(in srgb, #c01c28 85%, var(--fg)); }
.dsk-health.unk { background: var(--btn); }
.dsk-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; margin-top: 14px; }
.dsk-facts div { background: var(--btn); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.dsk-facts span, .dsk-card .row span { color: var(--muted); font-size: 12.5px; }
.dsk-facts b { font-weight: 500; word-break: break-all; }
.dsk-bar { display: flex; height: 44px; border-radius: 8px; overflow: hidden; gap: 2px; background: var(--line); }
.dsk-bar div { background: color-mix(in srgb, var(--accent) 70%, #3584e4); color: #fff; display: flex; align-items: center; padding: 0 8px; min-width: 0; }
.dsk-bar div:nth-child(2) { background: #3584e4; } .dsk-bar div:nth-child(3) { background: #26a269; }
.dsk-bar span { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dsk-parts { display: grid; gap: 10px; margin-top: 10px; }
.dsk-part { background: var(--btn); border-radius: 10px; padding: 10px 12px; display: grid; gap: 6px; }
.dsk-part .t { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.dsk-part small { color: var(--muted); }
.dsk-part .role { margin-left: auto; font-size: 12px; background: var(--active); padding: 1px 8px; border-radius: 999px; }
.use { height: 8px; border-radius: 4px; background: var(--line); overflow: hidden; }
.use i { display: block; height: 100%; background: #3584e4; } .use i.mid { background: #e5a50a; } .use i.hi { background: #e01b24; }
.dsk-smart { margin-top: 18px; }
.dsk-smart summary { cursor: pointer; color: var(--muted); font-weight: 700; font-size: 14px; }
.dsk-smart table { width: 100%; border-collapse: collapse; margin-top: 8px; font-size: 13px; }
.dsk-smart th, .dsk-smart td { text-align: left; padding: 5px 8px; border-bottom: 1px solid var(--line); }
.dsk-smart tr.warn td { background: color-mix(in srgb, #e5a50a 14%, transparent); }
.dsk-smart tr.bad td { background: color-mix(in srgb, #e01b24 14%, transparent); }
.dsk-zones { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.zone { background: var(--btn); border-radius: 10px; padding: 12px; display: grid; gap: 3px; }
.zone .zh { display: flex; justify-content: space-between; align-items: center; }
.zone .zh span { font-size: 11.5px; padding: 1px 8px; border-radius: 999px; }
.zone .zh .on { background: color-mix(in srgb, #2ec27e 22%, transparent); } .zone .zh .off { background: var(--active); color: var(--muted); }
.zone .zs { font-size: 22px; font-weight: 500; }
.zone small { color: var(--muted); font-size: 12px; }
.zone .cp { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.zone .cp span { font-size: 11.5px; background: var(--view); border-radius: 6px; padding: 1px 6px; }
.dsk-card { background: var(--btn); border-radius: 10px; padding: 10px 14px; display: grid; gap: 6px; }
.dsk-card .row { display: grid; grid-template-columns: 110px 1fr; align-items: center; gap: 10px; }
.dsk-card .row b { font-weight: 500; }
.dsk-card pre.log { margin: 4px 0 0; font: 12px/1.4 "Ubuntu Mono", monospace; white-space: pre-wrap; color: var(--err); }
.dsk-card .muted { color: var(--muted); }
.t-ok { color: #26a269; } .t-bad { color: var(--err); } .t-off { color: var(--muted); }
@container (max-width: 640px) { .dsk-side { width: 190px; } }
/* telefon (body.phone: dokunmatik küçük ekran; bilgisayarda pencere daralsa da değil) */ body.phone .dsk { flex-direction: column; } body.phone .dsk-side { width: auto; max-height: 34%; border-right: 0; border-bottom: 1px solid var(--line); } 

/* PC kapalıyken listeden gelen öğeler */
.grid .it.off .tb, .grid .it.off .lb, .list .it.off .nm, .list .it.off .c { opacity: .45; }
.grid .it.off.sel .lb { opacity: .8; }

.muted-p { color: var(--muted); margin: -4px 0 6px; }
.login-form { display: grid; gap: 12px; }
a.suggested-a { background: var(--accent); color: var(--accent-fg); justify-content: center; padding: 10px; font-weight: 500; }
.login-card .btn { justify-content: center; }

/* alan seçme dikdörtgeni */
.band { position: absolute; z-index: 4; pointer-events: none; border: 1px solid var(--accent); border-radius: 3px;
  background: color-mix(in srgb, var(--accent) 16%, transparent); }

/* ------------------------------------------------------------ Metin Düzenleyici (CodeMirror) */
.ed { position: absolute; inset: 0; display: flex; flex-direction: column; }
.ed-main { flex: 1; min-height: 0; display: flex; }
.ed-cm { flex: 1; min-width: 0; position: relative; }
.ed-cm .CodeMirror { position: absolute; inset: 0; height: auto; font: 14px/1.5 "Ubuntu Mono", ui-monospace, monospace;
  background: var(--view); color: var(--fg); }
.ed-pv { width: 45%; border-left: 1px solid var(--line); overflow: auto; padding: 16px 22px !important; max-width: none !important; }
.ed-status { flex: none; display: flex; gap: 18px; padding: 4px 12px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); background: var(--hb); }
.ed-status .ed-pos { margin-right: auto; }
.ed-ro { color: var(--warn); }
.wb.ed-save.on { background: var(--accent); color: var(--accent-fg); }
.wb.on { background: var(--active); }
.CodeMirror-gutters { background: var(--side); border-right: 1px solid var(--line); }
.CodeMirror-linenumber { color: var(--muted); }
.CodeMirror-cursor { border-left: 2px solid var(--fg); }
.CodeMirror-activeline-background { background: color-mix(in srgb, var(--fg) 5%, transparent); }
.CodeMirror-selected, .CodeMirror-focused .CodeMirror-selected { background: var(--sel-strong) !important; }
.CodeMirror-matchingbracket { color: var(--accent) !important; font-weight: 700; }
.CodeMirror-dialog { background: var(--popover); color: var(--fg); border-color: var(--line) !important; }
.CodeMirror-dialog input { background: var(--btn); color: var(--fg); padding: 2px 6px; border-radius: 4px; }
.cm-s-default .cm-keyword { color: #a626a4; } .cm-s-default .cm-def { color: #4078f2; } .cm-s-default .cm-variable-2 { color: #0184bc; }
.cm-s-default .cm-string, .cm-s-default .cm-string-2 { color: #50a14f; } .cm-s-default .cm-number { color: #986801; }
.cm-s-default .cm-comment { color: #a0a1a7; font-style: italic; } .cm-s-default .cm-builtin, .cm-s-default .cm-type { color: #c18401; }
.cm-s-default .cm-atom { color: #986801; } .cm-s-default .cm-meta, .cm-s-default .cm-qualifier { color: #e45649; }
.cm-s-default .cm-tag { color: #e45649; } .cm-s-default .cm-attribute { color: #986801; } .cm-s-default .cm-header { color: #4078f2; }
:root[data-theme="dark"] .cm-s-default .cm-keyword { color: #c678dd; } :root[data-theme="dark"] .cm-s-default .cm-def { color: #61afef; }
:root[data-theme="dark"] .cm-s-default .cm-string { color: #98c379; } :root[data-theme="dark"] .cm-s-default .cm-number { color: #d19a66; }
:root[data-theme="dark"] .cm-s-default .cm-comment { color: #7f848e; } :root[data-theme="dark"] .cm-s-default .cm-builtin,
:root[data-theme="dark"] .cm-s-default .cm-type { color: #e5c07b; } :root[data-theme="dark"] .cm-s-default .cm-tag,
:root[data-theme="dark"] .cm-s-default .cm-meta { color: #e06c75; } :root[data-theme="dark"] .cm-s-default .cm-variable-2 { color: #56b6c2; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .cm-s-default .cm-keyword { color: #c678dd; } :root:not([data-theme="light"]) .cm-s-default .cm-def { color: #61afef; }
  :root:not([data-theme="light"]) .cm-s-default .cm-string { color: #98c379; } :root:not([data-theme="light"]) .cm-s-default .cm-number { color: #d19a66; }
  :root:not([data-theme="light"]) .cm-s-default .cm-comment { color: #7f848e; } :root:not([data-theme="light"]) .cm-s-default .cm-builtin,
  :root:not([data-theme="light"]) .cm-s-default .cm-type { color: #e5c07b; } :root:not([data-theme="light"]) .cm-s-default .cm-tag,
  :root:not([data-theme="light"]) .cm-s-default .cm-meta { color: #e06c75; } :root:not([data-theme="light"]) .cm-s-default .cm-variable-2 { color: #56b6c2; }
}
@container (max-width: 700px) { .ed-pv { display: none; } }

/* paylaşım işareti ve iletişim kutusu */
.grid .it .tb .emb { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; background: var(--accent);
  -webkit-mask: none; mask: none; border-radius: 50%; box-shadow: 0 0 0 2px var(--view); }
.grid .it .tb .emb::after { content: ""; position: absolute; inset: 3px; background: #fff; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.list .it .nm .emb { width: 14px; height: 14px; color: var(--accent); flex: none; }
.sh-list { display: grid; gap: 8px; max-height: 40vh; overflow: auto; }
.sh-row { display: grid; grid-template-columns: 1fr auto auto; gap: 4px; align-items: center; }
.sh-row input { font-size: 13px; min-width: 0; }
.sh-row small { grid-column: 1 / -1; color: var(--muted); font-size: 12px; }
.sh-none { color: var(--muted); font-size: 13.5px; text-align: center; padding: 6px; }
.sh-new { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding-top: 10px; border-top: 1px solid var(--line); }
.sh-new span:first-child { color: var(--muted); font-size: 13.5px; }
.sh-new select { font: inherit; color: var(--fg); background: var(--btn); border: 0; border-radius: 7px; padding: 6px 8px; }
.sh-note { font-size: 12.5px !important; text-align: left !important; }

/* ------------------------------------------------------------ masaüstü */
.desktop { position: fixed; left: var(--dock-w); top: 0; right: 0; bottom: var(--dock); z-index: 1; overflow: hidden; user-select: none;
  background: radial-gradient(120% 90% at 85% 110%, #e95420 0%, #c34113 18%, #77216f 48%, #2c001e 100%); }
.dt-it { position: absolute; width: 96px; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 6px 4px 8px;
  border-radius: 10px; cursor: default; touch-action: none; transition: left .15s ease, top .15s ease; }
.dt-it.moving { transition: none; z-index: 2; opacity: .85; }
.dt-it img { width: 56px; height: 56px; filter: drop-shadow(0 2px 4px rgba(0,0,0,.35)); pointer-events: none; }
.dt-it span { color: #fff; font-size: 13px; text-align: center; line-height: 1.25; padding: 1px 6px; border-radius: 6px;
  text-shadow: 0 1px 3px rgba(0,0,0,.8), 0 0 2px rgba(0,0,0,.6); max-width: 100%; overflow: hidden; text-overflow: ellipsis; display: -webkit-box;
  -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.dt-it:hover { background: rgba(255,255,255,.12); }
.dt-it.sel { background: rgba(255,255,255,.2); }
.dt-it.sel span { background: var(--accent); text-shadow: none; }
.dt-it.drop-ok { background: color-mix(in srgb, var(--accent) 45%, transparent); }
body.solo .desktop { display: none !important; }

/* arka plan seçici */
.wp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.wp { height: 90px; border-radius: 10px; padding: 0; position: relative; overflow: hidden; align-items: flex-end; justify-content: flex-start;
  background-size: cover !important; box-shadow: inset 0 0 0 1px rgba(0,0,0,.15); }
.wp span { color: #fff; font-size: 12.5px; padding: 4px 8px; text-shadow: 0 1px 3px rgba(0,0,0,.8); }
.wp.on { box-shadow: 0 0 0 3px var(--accent); }
.wp-drive { background: var(--btn); flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.wp-drive span { color: var(--fg); text-shadow: none; }
.wp-drive .sym { width: 24px; height: 24px; }
.pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 55vh; overflow: auto; padding: 2px; }
.pick button { flex-direction: column; height: auto; min-height: 60px; padding: 8px 6px; background: var(--btn); gap: 6px; justify-content: center; }
.pick button img { max-width: 100%; height: 80px; object-fit: cover; border-radius: 6px; }
.pick .pk-dir img { width: 40px; height: 40px; object-fit: contain; }
.pick button span { font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }

/* ------------------------------------------------------------ Dosyalar penceresi */
.w-center { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; }
.w-center .pathbar, .w-center .searchbar { flex: 1; }
.fx { position: absolute; inset: 0; display: flex; }
.fx-side { width: 210px; flex: none; background: var(--side); border-right: 1px solid var(--line); overflow: auto; padding-top: 6px; }
.fx-side .places { padding: 0 6px 8px; }
.fx.noside .fx-side { display: none; }
.fx-main { flex: 1; min-width: 0; display: flex; flex-direction: column; position: relative; }
.fx-content { flex: 1; min-height: 0; display: flex; }
.fx-content .view { flex: 1; }
.fx-pane { width: 42%; max-width: 560px; border-left: 1px solid var(--line); position: relative; flex: none; }
.fx-pane .pv-body { position: absolute; inset: 0; overflow: auto; }
.fx-main .floatbar { right: 12px; bottom: 12px; }
.fx .view.drop-ok { box-shadow: inset 0 0 0 3px color-mix(in srgb, var(--accent) 60%, transparent); }
.win { container-type: inline-size; }
@container (max-width: 620px) { .fx-side { display: none; } .fx-pane { display: none; } .w-center .pathbar .seg:not(.cur) { display: none; } }
.wb:disabled { opacity: .35; }

.grid .it .tb .emb.hddemb { left: -2px; right: auto; background: #c88800; }
.list .it .nm .emb.hddemb { color: #c88800; }

/* ------------------------------------------------------------ İşlemler paneli */
.ops { position: fixed; right: 14px; bottom: calc(var(--dock) + 14px); width: min(420px, calc(100vw - 28px)); z-index: 55; background: var(--popover);
  border-radius: 14px; box-shadow: var(--shadow); overflow: hidden; }
.ops-head { display: flex; align-items: center; gap: 8px; padding: 8px 8px 8px 14px; border-bottom: 1px solid var(--line); }
.ops-head span { flex: 1; color: var(--muted); font-size: 13px; }
.ops-list { max-height: 50vh; overflow: auto; padding: 4px 0; }
.op { padding: 8px 14px; display: grid; gap: 5px; }
.op + .op { border-top: 1px solid var(--line); }
.op-t { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.op-bar { height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.op-bar i { display: block; height: 100%; background: var(--accent); transition: width .4s ease; }
.op.done .op-bar i { background: #2ec27e; } .op.err .op-bar i { background: var(--err); }
.op-m { font-size: 12px; color: var(--muted); display: flex; gap: 6px; }
.op-m .op-p { margin-left: auto; font-variant-numeric: tabular-nums; }
.op.err .op-m { color: var(--err); }
#dock-ops .sym { width: 22px; height: 22px; }
#dock-ops .ops-n { position: absolute; right: 4px; top: 4px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--accent); color: #fff;
  font-size: 10.5px; line-height: 16px; text-align: center; padding: 0 3px; }
#dock-ops .ops-n:empty { display: none; }

.dsk-yedek { width: 100%; border-collapse: collapse; font-size: 13.5px; margin-bottom: 6px; }
.dsk-yedek th, .dsk-yedek td { text-align: left; padding: 6px 8px; border-bottom: 1px solid var(--border, rgba(127,127,127,.2)); }
.dsk-yedek th { font-weight: 600; opacity: .7; font-size: 12.5px; }
.dt-it .th, .dt-it .emo { width: 64px; height: 56px; object-fit: cover; border-radius: 6px; pointer-events: none; }
.dt-it.dt-f img { pointer-events: none; }

/* ---------------------------------------------------------------- telefon */
.fx-places, .fx-shade { display: none; }
.it, .dt-it, .place { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
/* telefon (body.phone: dokunmatik küçük ekran; bilgisayarda pencere daralsa da değil) */
  body.phone .w-hb { height: 52px; padding: 0 4px; }
  body.phone .wb { width: 40px; height: 40px; min-height: 40px; }
  body.phone .win .w-max, body.phone .fx-fwd, body.phone .fx-viewopts { display: none; }
  body.phone .fx-places { display: inline-flex; }
  body.phone .fx.drawer .fx-side { display: block !important; position: absolute; inset: 0 auto 0 0; width: min(290px, 84%); z-index: 6;
    box-shadow: var(--shadow); padding-top: 10px; }
  body.phone .fx.drawer .fx-shade { display: block; position: absolute; inset: 0; z-index: 5; background: rgba(0,0,0,.35); }
  body.phone .fx-side .place { min-height: 44px; }
  body.phone .popover { left: 8px !important; right: 8px; top: auto !important; bottom: calc(var(--dock) + 8px); width: auto; max-height: 72vh; overflow: auto;
    border-radius: 16px; padding: 8px; }
  body.phone .popover .mi { min-height: 46px; font-size: 15px; }
  body.phone .w-center .pathbar { height: 38px; }
  body.phone .dt-it { width: 92px; }
  body.phone .toast { bottom: calc(var(--dock) + 14px); }
  body.phone .ops { left: 8px; right: 8px; width: auto; bottom: calc(var(--dock) + 8px); }


/* ---------------------------------------------------------------- geçici odalar uygulaması */
.tr-app { position: absolute; inset: 0; display: flex; flex-direction: column; overflow: hidden; }
.tr-top { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.tr-top b { display: block; font-size: 16px; }
.tr-top small { color: var(--muted); font-size: 12.5px; }
.tr-list { flex: 1; overflow: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 12px; }
.tr-none { color: var(--muted); padding: 30px 10px; text-align: center; }
.tr-room { background: var(--btn); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; }
.tr-rh { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.tr-kod { font-size: 24px; font-weight: 700; letter-spacing: .06em; }
.tr-rh small { color: var(--muted); flex: 1; min-width: 160px; }
.tr-act { display: flex; gap: 2px; }
.tr-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.tr-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 4px; }
.tr-row { display: flex; align-items: center; gap: 8px; min-height: 32px; font-size: 13.5px; }
.tr-row span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tr-row small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.tr-send { margin-top: 6px; }
.tr-link { width: 100%; font-size: 12.5px; color: var(--muted); }
.tr-pick { display: flex; flex-direction: column; max-height: 55vh; overflow: auto; gap: 2px; margin-top: 8px; }
.tr-pi { justify-content: flex-start; gap: 10px; background: transparent; min-height: 40px; text-align: left; }
.tr-pi:hover { background: var(--hover); }
.tr-pi img { width: 24px; height: 24px; }
.tr-pi span { flex: 1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tr-pi small { color: var(--muted); }
@media (max-width: 620px) { .tr-cols { grid-template-columns: 1fr; } }

/* Diskler → Google Drive ilerleme */
.gd-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.gd-chip { font-size: 13px; padding: 3px 10px; border-radius: 999px; background: var(--btn); }
.gd-chip small { opacity: .7; }
.gd-big { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 10px 0; }
.gd-big > div { display: flex; flex-direction: column; gap: 4px; }
.gd-big span, .gd-h { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.gd-big b { font-size: 17px; }
.gd-big small { color: var(--muted); font-size: 12.5px; }
.gd-h { margin: 12px 0 4px; }
.gd-file { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 13px; margin-bottom: 6px; }
.gd-file span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gd-file small { color: var(--muted); }
.gd-file .use { grid-column: 1 / -1; height: 4px; }
.gd-list { max-height: 180px; overflow: auto; font-size: 13px; display: flex; flex-direction: column; gap: 3px; }
.gd-list small { color: var(--muted); }
.t-warn { color: #c88800; }
@media (max-width: 620px) { .gd-big { grid-template-columns: 1fr; } }

/* VS Code penceresi */
.vs-wait { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 20px; }
.vs-wait img { width: 72px; height: 72px; }
.vs-wait small { color: var(--muted); max-width: 420px; }
/* Konteynerler */
.kt { position: absolute; inset: 0; display: flex; flex-direction: column; }
.kt-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.kt-top b { display: block; font-size: 16px; } .kt-top small { color: var(--muted); font-size: 12.5px; }
.kt-list { flex: 1; overflow: auto; padding: 8px 16px 16px; display: flex; flex-direction: column; gap: 10px; }
.kt-sec { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-top: 8px; }
.kt-sec small { text-transform: none; font-weight: 400; letter-spacing: 0; }
.kt-card { background: var(--btn); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
.kt-h { display: flex; align-items: center; gap: 12px; }
.kt-n { flex: 1; min-width: 0; } .kt-n b { display: block; font-size: 15px; } .kt-n small { color: var(--muted); font-size: 12.5px; }
.kt-dot { width: 10px; height: 10px; border-radius: 50%; background: #9a9996; flex: none; }
.kt-dot.on { background: #2ec27e; box-shadow: 0 0 0 3px color-mix(in srgb, #2ec27e 25%, transparent); }
.kt-dot.busy { background: #e5a50a; animation: kt-pulse 1s infinite alternate; }
@keyframes kt-pulse { to { opacity: .35; } }
.kt-m { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 13px; color: var(--muted); }
.kt-oto { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.kt-age { color: var(--muted); font-size: 12px; }
.kt-none { color: var(--muted); padding: 10px; }

/* Terminal (sekmeli) */
.tm { position: absolute; inset: 0; display: flex; flex-direction: column; background: #1e1e1e; }
.tm-tabs { display: flex; align-items: center; gap: 4px; padding: 4px 6px; background: var(--hb); border-bottom: 1px solid var(--line); min-height: 40px; }
.tm-list { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; min-width: 0; }
.tm-tab { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 10px; height: 30px; border-radius: 8px; cursor: pointer; font-size: 13px;
  color: var(--muted); max-width: 200px; flex: none; user-select: none; }
.tm-tab span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tm-tab:hover { background: var(--hover); }
.tm-tab.on { background: var(--btn); color: var(--fg); font-weight: 500; }
.tm-x { width: 22px; height: 22px; min-height: 22px; padding: 0; border-radius: 50%; background: transparent; justify-content: center; opacity: .6; }
.tm-x:hover { opacity: 1; background: var(--hover); }
.tm-body { flex: 1; position: relative; }
.tm-frame { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #1e1e1e; }
.tm .vs-wait { color: #ddd; }

.gd-hiz select, .gd-hiz input[type="time"] { font: inherit; padding: 4px 8px; border-radius: 7px; border: 1px solid var(--line); background: var(--view); color: var(--fg); }

/* dock: hesap düğmesi (baş harf) */
.dock-hesap .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 700; font-size: 15px;
  color: #fff; background: linear-gradient(135deg, #e95420, #77216f); box-shadow: 0 0 0 2px rgba(255,255,255,.15); }
.dock-hesap:hover .av { box-shadow: 0 0 0 2px rgba(255,255,255,.4); }
