/* ================= Local Cloud UI ================= */
:root {
  --bg: #0b0f1a;
  --bg2: #101627;
  --bg3: #171f35;
  --panel: #121a2e;
  --border: #232d48;
  --text: #e8ecf6;
  --text-dim: #8a94b0;
  --accent: #5b8cff;
  --accent-2: #7aa2ff;
  --danger: #ff5b6e;
  --ok: #3ddc97;
  --radius: 14px;
  --shadow: 0 12px 40px rgba(0, 0, 0, .45);
  --sidebar-w: 250px;
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  overflow: hidden;
}
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; }
input { font: inherit; }
.hidden { display: none !important; }
/* offscreen instead of display:none — iOS Safari can drop change events on hidden file inputs */
.file-input-offscreen {
  position: fixed; top: 0; left: -9999px;
  width: 1px; height: 1px; opacity: 0; pointer-events: none;
}

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: #2a3552; border-radius: 8px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- Buttons ---------- */
.btn-primary {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: linear-gradient(135deg, var(--accent), #3f6ae0);
  color: #fff; font-weight: 600; font-size: 14px;
  border-radius: 10px; padding: 11px 18px;
  transition: filter .15s, transform .05s;
  box-shadow: 0 4px 18px rgba(91, 140, 255, .35);
}
.btn-primary:hover { filter: brightness(1.1); }
.btn-primary:active { transform: scale(.98); }
.btn-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  color: var(--text-dim); font-weight: 500; font-size: 14px;
  border: 1px solid var(--border); border-radius: 10px; padding: 10px 16px;
  transition: background .15s, color .15s;
}
.btn-ghost:hover { background: var(--bg3); color: var(--text); }
.btn-ghost.small { padding: 7px 13px; font-size: 13px; }
.btn-ghost.danger:hover { color: var(--danger); border-color: var(--danger); }
.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px; color: var(--text-dim);
  transition: background .15s, color .15s;
}
.icon-btn:hover { background: var(--bg3); color: var(--text); }

/* ---------- Login ---------- */
.login-screen {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  background: radial-gradient(900px 600px at 70% -20%, #1b2a55 0%, transparent 60%), var(--bg);
  padding: 20px;
}
.login-card {
  width: 100%; max-width: 380px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 20px; padding: 40px 32px;
  box-shadow: var(--shadow); text-align: center;
  animation: rise .4s ease;
}
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
.login-logo { color: var(--accent); margin-bottom: 12px; }
.login-card h1 { font-size: 24px; font-weight: 700; letter-spacing: -.02em; }
.login-sub { color: var(--text-dim); font-size: 14px; margin: 8px 0 26px; }
.pw-wrap { position: relative; margin-bottom: 14px; }
.pw-wrap input {
  width: 100%; padding: 13px 46px 13px 16px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); font-size: 15px; outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.pw-wrap input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(91,140,255,.18); }
.pw-toggle {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 36px; height: 36px; display: flex; align-items: center; justify-content: center;
  color: var(--text-dim); border-radius: 8px;
}
.pw-toggle:hover { color: var(--text); }
.login-card .btn-primary { width: 100%; padding: 13px; }
.login-error {
  margin-top: 14px; color: var(--danger); font-size: 13px;
  background: rgba(255,91,110,.1); border: 1px solid rgba(255,91,110,.3);
  padding: 9px; border-radius: 10px;
}

/* ---------- Layout ---------- */
.app { display: flex; height: 100dvh; }

.sidebar {
  width: var(--sidebar-w); flex-shrink: 0;
  background: var(--bg2); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; gap: 10px;
  padding: 20px 16px; overflow-y: auto;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  font-size: 17px; font-weight: 700; letter-spacing: -.02em;
  color: var(--text); padding: 2px 6px 14px;
}
.brand svg { color: var(--accent); }
.btn-upload { width: 100%; }
#btn-newfolder { width: 100%; }

.side-nav { display: flex; flex-direction: column; gap: 2px; margin-top: 10px; }
.side-link {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: 10px;
  color: var(--text-dim); font-size: 14px; font-weight: 500;
  text-align: left; transition: background .15s, color .15s;
}
.side-link:hover { background: var(--bg3); color: var(--text); }
.side-link.active { background: rgba(91,140,255,.14); color: var(--accent-2); }

.storage-box {
  margin-top: auto;
  background: var(--bg3); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 14px;
}
.storage-label { font-size: 12px; color: var(--text-dim); }
.storage-value { font-size: 19px; font-weight: 700; margin: 3px 0 8px; }
.storage-bar { height: 6px; background: var(--bg); border-radius: 4px; overflow: hidden; }
.storage-fill { height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), #9b6bff); border-radius: 4px; transition: width .4s; }
.storage-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 7px; }
.btn-logout { width: 100%; }

/* ---------- Main ---------- */
.main { flex: 1; display: flex; flex-direction: column; min-width: 0; position: relative; }

.topbar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 20px; border-bottom: 1px solid var(--border);
  background: rgba(11,15,26,.8); backdrop-filter: blur(10px);
}
.menu-btn { display: none; }

.breadcrumb { display: flex; align-items: center; gap: 2px; min-width: 0; overflow-x: auto; scrollbar-width: none; flex-shrink: 1; }
.breadcrumb::-webkit-scrollbar { display: none; }
.crumb {
  padding: 6px 10px; border-radius: 8px; font-size: 14px; font-weight: 500;
  color: var(--text-dim); white-space: nowrap; transition: background .15s, color .15s;
}
.crumb:hover { background: var(--bg3); color: var(--text); }
.crumb.current { color: var(--text); font-weight: 600; }
.crumb-sep { color: var(--text-dim); opacity: .5; font-size: 13px; }

.search-wrap {
  margin-left: auto; position: relative; display: flex; align-items: center;
  color: var(--text-dim); flex-shrink: 0;
}
.search-wrap svg { position: absolute; left: 12px; pointer-events: none; }
.search-wrap input {
  width: 220px; padding: 9px 12px 9px 36px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none;
  transition: width .2s, border-color .15s;
}
.search-wrap input:focus { border-color: var(--accent); width: 280px; }

/* selection bar */
.selection-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 20px; background: rgba(91,140,255,.1);
  border-bottom: 1px solid var(--border); font-size: 14px;
}
.selection-actions { margin-left: auto; display: flex; gap: 8px; }

/* ---------- Content ---------- */
.content { flex: 1; overflow-y: auto; padding: 20px; position: relative; }

.file-area.grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px;
}
.file-area.list { display: flex; flex-direction: column; gap: 4px; }

/* grid card */
.card {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; cursor: pointer;
  transition: border-color .15s, transform .1s, box-shadow .15s;
  user-select: none; position: relative;
}
.card:hover { border-color: #33405f; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.3); }
.card.selected { border-color: var(--accent); box-shadow: 0 0 0 2px rgba(91,140,255,.35); }
.card-thumb {
  height: 110px; display: flex; align-items: center; justify-content: center;
  background: var(--bg3); color: var(--text-dim); overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.card-thumb .file-icon { width: 42px; height: 42px; }
.card-meta { padding: 10px 12px; }
.card-name {
  font-size: 13.5px; font-weight: 500; white-space: nowrap;
  overflow: hidden; text-overflow: ellipsis;
}
.card-sub { font-size: 11.5px; color: var(--text-dim); margin-top: 3px; }

/* list row */
.row {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 14px; border-radius: 10px; cursor: pointer;
  border: 1px solid transparent; user-select: none;
  transition: background .12s;
}
.row:hover { background: var(--bg2); }
.row.selected { background: rgba(91,140,255,.12); border-color: var(--accent); }
.row .file-icon { width: 24px; height: 24px; flex-shrink: 0; color: var(--text-dim); }
.row-name { flex: 1; min-width: 0; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-size, .row-date { font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.row-size { width: 80px; text-align: right; }
.row-date { width: 130px; text-align: right; }

.icon-folder { color: #ffb95b; }
.icon-image { color: #5bd6ff; }
.icon-video { color: #b98bff; }
.icon-audio { color: #6de8a8; }
.icon-pdf { color: #ff7a7a; }
.icon-archive { color: #e8c66d; }
.icon-file { color: var(--text-dim); }

/* empty */
.empty-state {
  position: absolute; inset: 0; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 8px; color: var(--text-dim);
}
.empty-state p { font-size: 17px; font-weight: 600; color: var(--text); }
.empty-state span { font-size: 13.5px; }

/* dropzone */
.dropzone {
  position: absolute; inset: 0; z-index: 40;
  background: rgba(11,15,26,.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
}
.dropzone-inner {
  border: 2px dashed var(--accent); border-radius: 24px;
  padding: 60px 80px; text-align: center; color: var(--accent-2);
  animation: pulse 1.2s infinite alternate;
}
@keyframes pulse { to { transform: scale(1.03); } }
.dropzone-inner p { margin-top: 12px; font-size: 18px; font-weight: 600; }

/* ---------- Upload panel ---------- */
.upload-panel {
  position: fixed; right: 20px; bottom: 20px; z-index: 60;
  width: 340px; max-width: calc(100vw - 40px);
  background: var(--panel); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden;
}
.upload-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; background: var(--bg3);
  font-size: 14px; font-weight: 600;
}
.upload-list { max-height: 260px; overflow-y: auto; padding: 8px 0; }
.upload-item { padding: 8px 16px; }
.upload-item-name {
  display: flex; justify-content: space-between; gap: 10px;
  font-size: 13px; margin-bottom: 5px;
}
.upload-item-name span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.upload-item-name .pct { color: var(--text-dim); flex-shrink: 0; }
.upload-item-name .pct.done { color: var(--ok); }
.upload-item-name .pct.err { color: var(--danger); }
.upload-bar { height: 4px; background: var(--bg); border-radius: 3px; overflow: hidden; }
.upload-fill { height: 100%; width: 0%; background: var(--accent); transition: width .2s; }
.upload-fill.done { background: var(--ok); }
.upload-fill.err { background: var(--danger); }

/* ---------- Context menu ---------- */
.ctx-menu {
  position: fixed; z-index: 70; min-width: 170px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; box-shadow: var(--shadow);
  padding: 6px; animation: rise .12s ease;
}
.ctx-menu button {
  display: block; width: 100%; text-align: left;
  padding: 9px 12px; border-radius: 8px; font-size: 14px;
}
.ctx-menu button:hover { background: var(--bg3); }
.ctx-menu button.danger { color: var(--danger); }

/* ---------- Preview ---------- */
.preview {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(5, 8, 15, .96); display: flex; flex-direction: column;
}
.preview-top {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 20px; color: var(--text);
}
.preview-top > div { display: flex; gap: 6px; }
#preview-name { font-size: 15px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.preview-body {
  flex: 1; display: flex; align-items: center; justify-content: center;
  padding: 0 20px 20px; min-height: 0;
}
.preview-body img, .preview-body video {
  max-width: 100%; max-height: 100%; border-radius: 10px;
  box-shadow: var(--shadow); object-fit: contain;
}
.preview-body audio { width: min(480px, 90%); }
.preview-body iframe {
  width: 100%; height: 100%; border: none; border-radius: 10px; background: #fff;
}
.preview-body pre {
  width: 100%; height: 100%; overflow: auto;
  background: var(--panel); border: 1px solid var(--border); border-radius: 10px;
  padding: 20px; font-size: 13px; line-height: 1.6; color: var(--text);
  font-family: ui-monospace, "Cascadia Code", Consolas, monospace;
  white-space: pre-wrap; word-break: break-word;
}
.preview-unsupported { text-align: center; color: var(--text-dim); }
.preview-unsupported p { margin-bottom: 14px; font-size: 15px; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(5,8,15,.7); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 20px;
}
.modal-card {
  width: 100%; max-width: 380px;
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 16px; padding: 24px; box-shadow: var(--shadow);
  animation: rise .18s ease;
}
.modal-card h3 { font-size: 17px; margin-bottom: 16px; }
.modal-card input {
  width: 100%; padding: 12px 14px;
  background: var(--bg2); border: 1px solid var(--border); border-radius: 10px;
  color: var(--text); font-size: 14px; outline: none;
}
.modal-card input:focus { border-color: var(--accent); }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }
.choose-card { text-align: center; }
.choose-btn { width: 100%; margin-top: 10px; }
.choose-card h3 { margin-bottom: 6px; }

/* ---------- Toasts ---------- */
.toast-wrap {
  position: fixed; top: 18px; left: 50%; transform: translateX(-50%);
  z-index: 95; display: flex; flex-direction: column; gap: 8px; align-items: center;
}
.toast {
  background: var(--panel); border: 1px solid var(--border);
  border-radius: 12px; padding: 11px 18px; font-size: 14px;
  box-shadow: var(--shadow); animation: rise .2s ease;
}
.toast.err { border-color: rgba(255,91,110,.5); color: var(--danger); }
.toast.ok { border-color: rgba(61,220,151,.4); color: var(--ok); }

/* ================= Animations ================= */

/* --- login: aurora background --- */
.login-screen { overflow: hidden; }
.login-screen::before, .login-screen::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(90px); opacity: .5; pointer-events: none;
  will-change: transform;
}
.login-screen::before {
  width: 520px; height: 520px; top: -140px; right: -80px;
  background: radial-gradient(circle, #3f6ae0, transparent 65%);
  animation: aurora-a 16s ease-in-out infinite alternate;
}
.login-screen::after {
  width: 460px; height: 460px; bottom: -160px; left: -100px;
  background: radial-gradient(circle, #7a3fe0, transparent 65%);
  animation: aurora-b 20s ease-in-out infinite alternate;
}
@keyframes aurora-a {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(-120px, 80px) scale(1.15); }
  100% { transform: translate(-40px, 160px) scale(.95); }
}
@keyframes aurora-b {
  0%   { transform: translate(0, 0) scale(1); }
  50%  { transform: translate(140px, -70px) scale(1.2); }
  100% { transform: translate(60px, -150px) scale(1); }
}
.login-card { position: relative; z-index: 1; }
.login-logo svg { animation: float-bob 3.4s ease-in-out infinite; }
@keyframes float-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
/* wrong password shake */
.login-card.shake { animation: shake .45s cubic-bezier(.36,.07,.19,.97); }
@keyframes shake {
  10%, 90% { transform: translateX(-2px); }
  20%, 80% { transform: translateX(4px); }
  30%, 50%, 70% { transform: translateX(-7px); }
  40%, 60% { transform: translateX(7px); }
}

/* --- item entrance: staggered rise (delay set from JS) --- */
.card, .row { animation: item-in .38s cubic-bezier(.2,.7,.25,1) backwards; }
@keyframes item-in {
  from { opacity: 0; transform: translateY(14px) scale(.97); }
}

/* --- card hover: glow + image zoom --- */
.card { will-change: transform; }
.card:hover {
  border-color: rgba(91,140,255,.55);
  box-shadow: 0 8px 28px rgba(0,0,0,.35), 0 0 0 1px rgba(91,140,255,.25), 0 0 24px rgba(91,140,255,.12);
}
.card-thumb img { transition: transform .45s cubic-bezier(.2,.7,.25,1); }
.card:hover .card-thumb img { transform: scale(1.08); }
.card-thumb .file-icon { transition: transform .25s cubic-bezier(.34,1.56,.64,1); }
.card:hover .card-thumb .file-icon { transform: scale(1.18) rotate(-4deg); }

/* --- primary button: shine sweep --- */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: none; pointer-events: none;
}
.btn-primary:hover::after { transform: translateX(120%); transition: transform .7s ease; }

/* --- ripple (spawned from JS) --- */
.ripple {
  position: absolute; border-radius: 50%; pointer-events: none;
  background: rgba(255,255,255,.45); transform: scale(0);
  animation: ripple .55s ease-out forwards;
}
@keyframes ripple { to { transform: scale(3.2); opacity: 0; } }

/* --- dropzone: rotating conic border + bounce icon --- */
.dropzone-inner {
  position: relative; border: none; animation: none;
  background:
    linear-gradient(var(--bg2), var(--bg2)) padding-box,
    conic-gradient(from var(--spin, 0deg), var(--accent), #9b6bff, #5bd6ff, var(--accent)) border-box;
  border: 2px solid transparent;
  animation: border-spin 3s linear infinite;
}
@property --spin { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes border-spin { to { --spin: 360deg; } }
.dropzone-inner svg { animation: drop-bounce 1s ease-in-out infinite; }
@keyframes drop-bounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* --- upload progress: shimmer stripes --- */
.upload-fill {
  background-image: linear-gradient(90deg, var(--accent), var(--accent)),
    linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 50%, transparent 70%);
  background-size: 100% 100%, 200% 100%;
  animation: bar-shimmer 1.1s linear infinite;
}
@keyframes bar-shimmer {
  from { background-position: 0 0, 200% 0; }
  to   { background-position: 0 0, -200% 0; }
}
.upload-fill.done, .upload-fill.err { animation: none; background-image: none; }
.upload-panel { animation: panel-up .3s cubic-bezier(.2,.7,.25,1); }
@keyframes panel-up {
  from { opacity: 0; transform: translateY(24px) scale(.97); }
}
/* success pop on percentage label */
.pct.done { animation: pop .35s cubic-bezier(.34,1.56,.64,1); }
@keyframes pop { 50% { transform: scale(1.35); } }

/* --- storage bar: animated candy stripes --- */
.storage-fill {
  background-image: linear-gradient(90deg, var(--accent), #9b6bff),
    repeating-linear-gradient(-45deg, rgba(255,255,255,.16) 0 6px, transparent 6px 12px);
  background-size: 100% 100%, 24px 100%;
  animation: stripes 1.4s linear infinite;
}
@keyframes stripes { to { background-position: 0 0, 24px 0; } }

/* --- preview: cinematic zoom-in --- */
.preview { animation: fade-in .22s ease; }
@keyframes fade-in { from { opacity: 0; } }
.preview-body > * { animation: zoom-in .3s cubic-bezier(.2,.7,.25,1); }
@keyframes zoom-in {
  from { opacity: 0; transform: scale(.92); }
}

/* --- toasts: slide in, fade out --- */
.toast { animation: toast-in .3s cubic-bezier(.34,1.56,.64,1); }
@keyframes toast-in {
  from { opacity: 0; transform: translateY(-18px) scale(.95); }
}
.toast.out { animation: toast-out .3s ease forwards; }
@keyframes toast-out {
  to { opacity: 0; transform: translateY(-14px) scale(.95); }
}

/* --- empty state: drifting cloud --- */
.empty-state svg { animation: float-bob 4s ease-in-out infinite; }

/* --- sidebar links: slide accent --- */
.side-link { position: relative; }
.side-link::before {
  content: ''; position: absolute; left: 0; top: 50%;
  width: 3px; height: 0; border-radius: 2px;
  background: var(--accent); transform: translateY(-50%);
  transition: height .2s ease;
}
.side-link.active::before { height: 60%; }

/* --- folder navigation: View Transitions API --- */
::view-transition-old(root) { animation: vt-out .18s ease forwards; }
::view-transition-new(root) { animation: vt-in .24s cubic-bezier(.2,.7,.25,1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(10px); } }

/* --- accessibility: kill motion on request --- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}

/* ---------- Tablet ---------- */
@media (max-width: 1024px) {
  :root { --sidebar-w: 220px; }
  .search-wrap input { width: 160px; }
  .search-wrap input:focus { width: 200px; }
  .row-date { display: none; }
}

/* ---------- Mobile ---------- */
@media (max-width: 720px) {
  .sidebar {
    position: fixed; inset: 0 auto 0 0; z-index: 50;
    width: min(280px, 84vw);
    transform: translateX(-105%);
    transition: transform .22s ease;
    box-shadow: var(--shadow);
  }
  .sidebar.open { transform: translateX(0); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 10px 12px; gap: 8px; }
  .search-wrap { flex: 1; }
  .search-wrap input, .search-wrap input:focus { width: 100%; }
  .content { padding: 14px; }
  .file-area.grid { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 10px; }
  .card-thumb { height: 88px; }
  .row-size { display: none; }
  .breadcrumb { max-width: 40vw; }
  .upload-panel { right: 10px; bottom: 10px; left: 10px; width: auto; }
  .preview-body { padding: 0 8px 8px; }
}
