/* Yoyo Box: sakin, mavi-beyaz, yumusak golgeli dosya yoneticisi. Posta ve Fotograflar'dan bagimsiz tasarim. */
:root {
  --bg: #f3f6fb; --panel: #fff; --ink: #0f172a; --mute: #64748b; --line: #e2e8f0;
  --blue: #2563eb; --blue-d: #1d4ed8; --blue-l: #e8f0fe; --red: #dc2626; --amber: #f59e0b;
  --sh: 0 1px 2px rgba(15, 23, 42, .06), 0 4px 14px rgba(15, 23, 42, .06);
  --r: 14px;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body { background: var(--bg); color: var(--ink); font: 15px/1.45 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
svg { width: 20px; height: 20px; fill: currentColor; flex: none; }
[hidden] { display: none !important; }

.yb { display: grid; grid-template-columns: 264px 1fr; min-height: 100vh; }
.yb-side { padding: 20px 16px; display: flex; flex-direction: column; gap: 20px; position: sticky; top: 0; height: 100vh; }
.yb-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 19px; letter-spacing: -.02em; padding: 0 6px; }
.yb-logo svg { width: 32px; height: 32px; }
.yb-new { display: grid; gap: 8px; }
.yb-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px; padding: 10px 16px; font-weight: 600; transition: background .12s, box-shadow .12s; }
.yb-btn:hover { background: #f8fafc; box-shadow: var(--sh); }
.yb-btn.primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.yb-btn.primary:hover { background: var(--blue-d); }
.yb-btn.danger { color: var(--red); border-color: #fecaca; background: #fff5f5; }
.yb-btn.sm { padding: 6px 12px; font-size: 13px; }
.yb-nav { display: grid; gap: 2px; }
.yb-nav button { display: flex; align-items: center; gap: 12px; border: 0; background: none; padding: 10px 12px; border-radius: 10px; font-weight: 600; color: #334155; text-align: start; }
.yb-nav button:hover { background: #e9eef6; }
.yb-nav button.on { background: var(--blue-l); color: var(--blue-d); }
.yb-quota { margin-top: auto; background: var(--panel); border-radius: var(--r); padding: 14px; box-shadow: var(--sh); display: grid; gap: 6px; font-size: 13px; font-weight: 600; }
.yb-quota small { color: var(--mute); font-weight: 500; }
.bar { height: 6px; background: #e2e8f0; border-radius: 99px; overflow: hidden; }
.bar i { display: block; height: 100%; width: 0; background: var(--blue); border-radius: 99px; transition: width .2s; }

.yb-main { min-width: 0; padding: 14px 24px 40px 8px; position: relative; }
.yb-top { display: flex; align-items: center; gap: 10px; position: sticky; top: 0; background: var(--bg); padding: 6px 0 12px; z-index: 5; }
.yb-search { flex: 1; display: flex; align-items: center; gap: 10px; background: var(--panel); border-radius: 12px; padding: 0 14px; height: 46px; box-shadow: var(--sh); max-width: 720px; color: var(--mute); }
.yb-search input { flex: 1; border: 0; outline: 0; background: none; min-width: 0; color: var(--ink); }
.yb-search:focus-within { outline: 2px solid var(--blue); }
.yb-icon { border: 0; background: none; width: 40px; height: 40px; border-radius: 10px; display: inline-grid; place-items: center; color: #475569; }
.yb-icon:hover { background: #e2e8f0; }
.yb-icon.sm { width: 32px; height: 32px; }
#burger { display: none; }
#layout { margin-inline-start: auto; }
.yb-av { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--blue); color: #fff; font-weight: 700; display: inline-grid; place-items: center; overflow: hidden; padding: 0; flex: none; }
.yb-av img { width: 100%; height: 100%; object-fit: cover; }
.yb-av.big { width: 64px; height: 64px; font-size: 26px; }

.yb-crumb { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; min-height: 40px; margin: 4px 0 12px; font-size: 18px; font-weight: 600; }
.yb-crumb i { color: var(--mute); font-style: normal; }
.yb-crumb #empty { margin-inline-start: auto; }
.yb-link { border: 0; background: none; color: var(--blue); font-weight: 600; padding: 4px 6px; border-radius: 8px; font-size: inherit; }
.yb-link:hover { background: var(--blue-l); }
.yb-link.danger { color: var(--red); }
.yb-link.danger:hover { background: #fee2e2; }
.yb-crumb .yb-link { color: var(--ink); }
.yb-crumb .yb-link:last-child { color: var(--blue-d); }

.yb-body { min-height: 300px; }
.yb-table { background: var(--panel); border-radius: var(--r); box-shadow: var(--sh); overflow: visible; }
.yb-row { display: grid; grid-template-columns: minmax(0, 1fr) 110px 140px 96px; gap: 12px; align-items: center; padding: 10px 16px; border-top: 1px solid var(--line); }
.yb-row:first-child { border-top: 0; }
.yb-row.head { font-size: 12px; font-weight: 600; color: var(--mute); text-transform: uppercase; letter-spacing: .04em; padding-block: 12px; }
.yb-row:not(.head):hover { background: #f8fafc; }
.yb-row .n { display: flex; align-items: center; gap: 12px; min-width: 0; }
.name { border: 0; background: none; padding: 0; font-weight: 600; text-align: start; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.name:hover { color: var(--blue); }
.yb-row .s, .yb-row .d { color: var(--mute); font-size: 13px; white-space: nowrap; }
.acts { display: flex; align-items: center; justify-content: flex-end; gap: 2px; position: relative; }
.chip { font-style: normal; font-size: 11px; font-weight: 600; background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 99px; flex: none; }
.yb-ic { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; flex: none; background: #e0e7ff; color: #4f46e5; }
.yb-ic.fold, .thumb.fold { background: #fef3c7; color: #d97706; }
.yb-ic.img, .thumb.img { background: #fce7f3; color: #db2777; }
.yb-ic.pdf, .thumb.pdf { background: #fee2e2; color: #dc2626; }
.yb-ic.media, .thumb.media { background: #ede9fe; color: #7c3aed; }
.yb-ic.zip, .thumb.zip { background: #e2e8f0; color: #475569; }
.yb-ic.sheet, .thumb.sheet { background: #dcfce7; color: #16a34a; }
.thumb.doc { background: #e0e7ff; color: #4f46e5; }
.yb-star { border: 0; background: none; padding: 6px; border-radius: 8px; color: #cbd5e1; display: inline-grid; }
.yb-star:hover { background: #f1f5f9; }
.yb-star.on { color: var(--amber); }

.yb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.yb-card { background: var(--panel); border-radius: var(--r); box-shadow: var(--sh); padding: 10px; display: grid; gap: 8px; }
.yb-card .thumb { border: 0; border-radius: 10px; height: 124px; display: grid; place-items: center; overflow: hidden; padding: 0; }
.yb-card .thumb svg { width: 46px; height: 46px; }
.yb-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.yb-card .meta { display: flex; align-items: center; gap: 4px; min-width: 0; }
.yb-card .meta .name { flex: 1; }
.yb-card small { color: var(--mute); font-size: 12px; }

.yb-menu, .yb-pop { position: absolute; z-index: 30; background: var(--panel); border-radius: 12px; box-shadow: 0 10px 30px rgba(15, 23, 42, .18); border: 1px solid var(--line); padding: 6px; display: grid; min-width: 190px; }
.yb-menu { right: 0; top: 100%; }
.yb-menu button, .yb-pop a, .yb-pop button { border: 0; background: none; text-align: start; padding: 9px 12px; border-radius: 8px; font-weight: 500; text-decoration: none; color: var(--ink); }
.yb-menu button:hover, .yb-pop a:hover, .yb-pop button:hover { background: #f1f5f9; }
.yb-menu .danger { color: var(--red); }
.yb-pop { right: 24px; top: 58px; min-width: 260px; }
.yb-pop .who { display: grid; justify-items: center; gap: 4px; padding: 14px 10px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; text-align: center; }
.yb-pop .who span { color: var(--mute); font-size: 13px; overflow-wrap: anywhere; }

.yb-empty { text-align: center; padding: 72px 16px; color: var(--mute); }
.yb-empty .art { width: 84px; height: 84px; border-radius: 24px; background: var(--blue-l); color: var(--blue); display: grid; place-items: center; margin: 0 auto 16px; }
.yb-empty .art svg { width: 40px; height: 40px; }
.yb-empty b { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }
.yb-empty p { margin: 0; }

#uploads { display: grid; gap: 6px; margin-bottom: 10px; }
#uploads:empty { display: none; }
.yb-up { display: grid; grid-template-columns: minmax(0, 1fr) 160px 110px; gap: 12px; align-items: center; background: var(--panel); border-radius: 10px; padding: 9px 14px; box-shadow: var(--sh); font-size: 13px; }
.yb-up span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.yb-up em { font-style: normal; color: var(--mute); text-align: end; }
.yb-up.ok .bar i { background: #16a34a; }
.yb-up.bad .bar i { background: var(--red); }
.yb-up.bad em { color: var(--red); }
body.dropping::after { content: ""; position: fixed; inset: 10px; border: 3px dashed var(--blue); border-radius: 18px; background: rgba(37, 99, 235, .08); pointer-events: none; z-index: 50; }

.yb-dlg { border: 0; border-radius: 16px; padding: 24px; width: min(460px, calc(100vw - 32px)); box-shadow: 0 24px 60px rgba(15, 23, 42, .3); color: var(--ink); }
.yb-dlg::backdrop { background: rgba(15, 23, 42, .45); }
.yb-dlg h2 { margin: 0 0 6px; font-size: 19px; }
.yb-dlg .sub { color: var(--mute); margin: 0 0 12px; overflow-wrap: anywhere; }
.yb-dlg input { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #f8fafc; }
.yb-dlg .foot { display: flex; gap: 8px; justify-content: flex-end; align-items: center; margin-top: 18px; flex-wrap: wrap; }
.yb-dlg .grow { flex: 1; }
.yb-dlg .where { display: flex; align-items: center; gap: 8px; margin: 10px 0; }
.yb-dlg .pick { display: grid; gap: 2px; max-height: 280px; overflow: auto; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.yb-dlg .pick button { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 8px; border-radius: 8px; text-align: start; font-weight: 600; }
.yb-dlg .pick button:hover { background: #f1f5f9; }
.yb-dlg .pick p { color: var(--mute); margin: 10px; }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: #0f172a; color: #fff; padding: 11px 18px; border-radius: 10px; font-weight: 500; box-shadow: 0 10px 30px rgba(15, 23, 42, .3); z-index: 80; max-width: calc(100vw - 32px); }
.toast.bad { background: var(--red); }

@media (max-width: 820px) {
  .yb { grid-template-columns: 1fr; }
  .yb-side { position: fixed; z-index: 40; left: 0; top: 0; width: 280px; background: var(--bg); transform: translateX(-105%); transition: transform .18s; box-shadow: 0 0 40px rgba(15, 23, 42, .25); }
  .yb-side.open { transform: none; }
  #burger { display: inline-grid; }
  .yb-main { padding: 10px 16px 32px; }
  .yb-row { grid-template-columns: minmax(0, 1fr) 84px; }
  .yb-row .s, .yb-row.head span:nth-child(2), .yb-row .d, .yb-row.head span:nth-child(3) { display: none; }
  .yb-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
  .yb-up { grid-template-columns: minmax(0, 1fr) 90px; }
  .yb-up .bar { display: none; }
  .yb-pop { right: 16px; }
}
