/* Cloud Files · File Browser 2.63.17 visual system
   Apple-inspired material, hierarchy and restraint. Visual-only override:
   no file data, routes, permissions or interaction logic are changed. */

:root {
  --cf-blue: #0071e3;
  --cf-blue-deep: #005bb8;
  --cf-blue-soft: rgba(0, 113, 227, .11);
  --cf-ink: #1d1d1f;
  --cf-secondary: #6e6e73;
  --cf-muted: #8e8e93;
  --cf-line: rgba(29, 29, 31, .10);
  --cf-line-strong: rgba(29, 29, 31, .16);
  --cf-glass: rgba(255, 255, 255, .72);
  --cf-glass-heavy: rgba(249, 250, 252, .86);
  --cf-shadow: 0 22px 60px rgba(31, 45, 72, .12), 0 2px 8px rgba(31, 45, 72, .05);
  --cf-shadow-small: 0 8px 24px rgba(31, 45, 72, .10), 0 1px 4px rgba(31, 45, 72, .06);
  --cf-radius-xl: 24px;
  --cf-radius-lg: 18px;
  --cf-radius-md: 14px;
  --cf-radius-sm: 11px;
  --blue: var(--cf-blue);
  --dark-blue: var(--cf-blue-deep);
  --action: #566578;
  --background: #f4f7fb;
  --surfacePrimary: rgba(255, 255, 255, .84);
  --surfaceSecondary: rgba(240, 244, 249, .92);
  --divider: rgba(29, 29, 31, .075);
  --borderPrimary: var(--cf-line);
  --borderSecondary: var(--cf-line-strong);
  --textPrimary: var(--cf-secondary);
  --textSecondary: var(--cf-ink);
  --hover: rgba(0, 113, 227, .075);
}

html {
  min-height: 100%;
  background: #f4f7fb;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Segoe UI", sans-serif;
  font-optical-sizing: auto;
}

body {
  min-width: 320px;
  min-height: 100vh;
  padding-top: 82px;
  overflow-x: hidden;
  color: var(--cf-ink);
  background:
    radial-gradient(circle at 76% -10%, rgba(184, 213, 255, .48), transparent 35%),
    radial-gradient(circle at 12% 100%, rgba(221, 214, 255, .30), transparent 32%),
    linear-gradient(145deg, #f8fbff 0%, #f3f6fb 52%, #eef2f8 100%);
  letter-spacing: -.005em;
}

body::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: fixed;
  inset: 0;
  opacity: .23;
  background-image: linear-gradient(rgba(82, 112, 153, .055) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 112, 153, .055) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 78%);
}

button, input, textarea, select { font: inherit; }

button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible, [role="button"]:focus-visible {
  outline: 3px solid rgba(0, 113, 227, .28) !important;
  outline-offset: 2px;
}

/* ── Floating command bar ─────────────────────────────────────────────── */
header {
  z-index: 30;
  top: 14px !important;
  right: 18px !important;
  left: 18px !important;
  height: 58px !important;
  width: auto !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: 14px;
  padding: 0 10px 0 14px !important;
  color: var(--cf-ink) !important;
  border: 1px solid rgba(255, 255, 255, .78) !important;
  border-radius: 19px !important;
  background: rgba(255, 255, 255, .67) !important;
  box-shadow: 0 14px 40px rgba(31, 45, 72, .10), 0 1px 4px rgba(31, 45, 72, .04) !important;
  backdrop-filter: blur(24px) saturate(175%);
  -webkit-backdrop-filter: blur(24px) saturate(175%);
}

header::after {
  content: "";
  position: absolute;
  pointer-events: none;
  left: 22px;
  right: 22px;
  bottom: -14px;
  height: 18px;
  opacity: .38;
  background: linear-gradient(to bottom, rgba(255, 255, 255, .62), transparent);
  filter: blur(8px);
}

header img {
  order: 1;
  display: block !important;
  flex: 0 0 auto;
  width: 32px !important;
  height: 32px !important;
  padding: 6px;
  box-sizing: border-box;
  border-radius: 10px;
  background: #08090b;
  box-shadow: 0 5px 12px rgba(0, 0, 0, .16);
}

header title {
  order: 2;
  display: flex !important;
  flex-direction: column;
  justify-content: center;
  min-width: 112px;
  margin: 0 !important;
  color: var(--cf-ink) !important;
  font-size: 15px !important;
  font-weight: 700 !important;
  line-height: 1.15 !important;
  letter-spacing: -.025em;
}

header title::before { content: "Cloud Files"; }
header title::after {
  content: "Personal workspace";
  margin-top: 3px;
  color: var(--cf-muted);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: .02em;
}

header .menu-button {
  order: 0;
  display: none !important;
}

header #search {
  order: 3;
  flex: 1 1 300px;
  max-width: 430px;
  min-width: 120px;
  margin: 0 auto !important;
}

header #search #input {
  position: relative;
  height: 38px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 0 12px;
  color: var(--cf-muted);
  border: 1px solid rgba(29, 29, 31, .08);
  border-radius: 12px;
  background: rgba(246, 248, 251, .76);
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

header #search #input:focus-within {
  border-color: rgba(0, 113, 227, .42);
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .09);
}

header #search #input > i { color: #7d8da1; font-size: 19px; }
header #search input {
  min-width: 0;
  flex: 1;
  height: 100%;
  padding: 0 !important;
  color: var(--cf-ink) !important;
  border: 0 !important;
  outline: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  font-size: 13px;
}
header #search input::placeholder { color: transparent !important; opacity: 0 !important; }
header #search #input:has(input:placeholder-shown)::after {
  content: "搜索文件";
  pointer-events: none;
  position: absolute;
  left: 38px;
  color: #9099a7;
  font-size: 13px;
}

header .search-button { order: 3; display: none !important; }

header #dropdown {
  order: 4;
  display: flex !important;
  align-items: center;
  gap: 3px;
  position: static !important;
  transform: none !important;
  margin-left: auto;
  background: transparent !important;
}

header #dropdown .action, header #more {
  width: 37px !important;
  height: 37px !important;
  display: inline-grid !important;
  place-items: center;
  color: #566578 !important;
  border-radius: 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

header #dropdown .action:hover, header #more:hover { color: var(--cf-blue) !important; background: var(--cf-blue-soft) !important; }
header #dropdown .action:active, header #more:active { transform: scale(.95); }
header #dropdown .action i, header #more i { padding: 0 !important; font-size: 20px; }
header #dropdown .action span, header #more span { display: none !important; }
header #more { order: 5; display: none !important; }

/* ── Glass sidebar ─────────────────────────────────────────────────────── */
nav {
  z-index: 31;
  position: fixed !important;
  top: 92px !important;
  bottom: 18px !important;
  left: 18px !important;
  width: 244px !important;
  height: auto !important;
  box-sizing: border-box;
  display: flex !important;
  flex-direction: column;
  gap: 7px;
  padding: 18px 12px 14px !important;
  overflow: hidden auto;
  color: var(--cf-secondary) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: var(--cf-radius-xl) !important;
  background: rgba(244, 248, 253, .69) !important;
  box-shadow: var(--cf-shadow) !important;
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}

nav::before {
  content: "LIBRARY";
  display: block;
  margin: 2px 12px 7px;
  color: #9aa6b7;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
}

nav > .action, nav > div:not(.credits) .action {
  width: 100% !important;
  min-height: 42px;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  gap: 11px;
  padding: 0 12px !important;
  color: #627287 !important;
  border-radius: 12px !important;
  transition: background .18s ease, color .18s ease, transform .18s ease;
}

nav > .action:hover, nav > div:not(.credits) .action:hover { color: var(--cf-blue) !important; background: rgba(0, 113, 227, .08) !important; }
nav > .action:active, nav > div:not(.credits) .action:active { transform: scale(.985); }
nav > .action i, nav > div:not(.credits) .action i { padding: 0 !important; color: currentColor; font-size: 19px; }
nav > .action span, nav > div:not(.credits) .action span { color: inherit; font-size: 13px; font-weight: 650; }
nav > .action:first-child {
  min-height: 52px;
  margin-bottom: 8px;
  padding: 0 12px !important;
  color: var(--cf-ink) !important;
  border: 1px solid rgba(255, 255, 255, .76) !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: 0 5px 16px rgba(31, 45, 72, .07);
}
nav > .action:first-child i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff;
  border-radius: 9px;
  background: linear-gradient(145deg, #121419, #313642);
  font-size: 16px;
}
nav > .action:first-child span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
nav > div:not(.credits) { display: flex; flex-direction: column; gap: 3px; }
nav #logout {
  margin-top: auto;
  color: #8b6470 !important;
  background: rgba(178, 58, 77, .045) !important;
}
nav #logout:hover { color: #ba3f55 !important; background: rgba(178, 58, 77, .09) !important; }

nav > .credits {
  width: auto !important;
  margin: 18px 8px 0 !important;
  color: var(--cf-muted) !important;
  font-size: 11px !important;
  line-height: 1.45;
}
nav > .credits .vue-simple-progress {
  height: 6px !important;
  overflow: hidden;
  border-radius: 99px !important;
  background: rgba(29, 29, 31, .08) !important;
}
nav > .credits .vue-simple-progress-bar { height: 100% !important; border-radius: inherit; background: linear-gradient(90deg, #59a8ff, var(--cf-blue)) !important; }
nav > p.credits { display: none !important; }

/* ── Main workspace ────────────────────────────────────────────────────── */
main {
  width: auto !important;
  max-width: none !important;
  min-height: calc(100vh - 82px);
  margin: 0 18px 0 280px !important;
  padding: 0 0 34px !important;
}

.breadcrumbs {
  width: min(100%, 1340px);
  height: 30px !important;
  box-sizing: border-box;
  display: flex !important;
  align-items: center;
  margin: 0 auto 12px !important;
  padding: 0 6px !important;
  color: var(--cf-muted) !important;
}
.breadcrumbs a { display: inline-flex; align-items: center; color: var(--cf-muted) !important; border-radius: 8px; transition: color .18s ease, background .18s ease; }
.breadcrumbs a:hover { color: var(--cf-blue) !important; background: var(--cf-blue-soft); }
.breadcrumbs i { padding: 6px !important; font-size: 19px !important; }

#listing {
  width: min(100%, 1340px) !important;
  min-height: calc(100vh - 160px) !important;
  box-sizing: border-box;
  margin: 0 auto !important;
  padding: 0 0 44px !important;
}

#listing.list > div:first-child { margin-bottom: 13px; }
#listing.list h2 {
  margin: 24px 4px 10px !important;
  color: var(--cf-secondary) !important;
  font-size: 11px !important;
  font-weight: 800 !important;
  line-height: 1.2 !important;
  letter-spacing: .11em;
  text-transform: uppercase;
}

#listing.list .item {
  box-sizing: border-box;
  width: 100% !important;
  min-height: 68px;
  margin: 0 0 9px !important;
  padding: 10px 15px !important;
  color: var(--cf-ink) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: var(--cf-radius-md) !important;
  background: rgba(255, 255, 255, .67) !important;
  box-shadow: 0 5px 18px rgba(31, 45, 72, .055) !important;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease, background .18s ease;
}
#listing.list .item:not(.header):hover {
  border-color: rgba(0, 113, 227, .24) !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: var(--cf-shadow-small) !important;
  transform: translateY(-1px);
}
#listing.list .item[aria-selected="true"] {
  border-color: rgba(0, 113, 227, .45) !important;
  background: rgba(225, 240, 255, .83) !important;
  box-shadow: 0 0 0 3px rgba(0, 113, 227, .10), var(--cf-shadow-small) !important;
}

#listing.list .item.header {
  min-height: 32px;
  padding: 0 15px 0 74px !important;
  border: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
}
#listing.list .item.header > div {
  width: 100% !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 120px 160px;
  align-items: center;
  gap: 10px;
}
#listing.list .item.header p {
  width: auto !important;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin: 0 !important;
  color: #9aa6b7 !important;
  font-size: 10px !important;
  font-weight: 800 !important;
  letter-spacing: .10em;
  text-transform: uppercase;
}
#listing.list .item.header p:hover { color: var(--cf-blue) !important; }
#listing.list .item.header i { font-size: 14px !important; }
#listing.list .item.header .name, #listing.list .item.header .size, #listing.list .item.header .modified { width: 100% !important; }

#listing.list .item:not(.header) > div:first-of-type {
  width: 44px !important;
  flex: 0 0 44px !important;
  display: grid !important;
  place-items: center;
}
#listing.list .item:not(.header) > div:first-of-type i {
  padding: 0 !important;
  color: var(--cf-blue) !important;
  font-size: 29px !important;
  filter: drop-shadow(0 4px 6px rgba(0, 113, 227, .15));
}
#listing.list .item:not(.header) > div:last-of-type {
  width: auto !important;
  flex: 1 !important;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 120px 160px;
  align-items: center;
  gap: 10px;
}
#listing.list .item:not(.header) p { margin: 0 !important; }
#listing.list .item:not(.header) .name {
  width: auto !important;
  min-width: 0;
  overflow: hidden;
  color: var(--cf-ink) !important;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px !important;
  font-weight: 650 !important;
}
#listing.list .item:not(.header) .size, #listing.list .item:not(.header) .modified {
  width: auto !important;
  color: var(--cf-muted) !important;
  font-size: 12px !important;
}
#listing.list .item:not(.header) time { color: inherit; }

/* Chinese visual labels while leaving accessible names and actions intact. */
nav > button[aria-label="My files"] span, nav > div .action span, nav #logout span,
header #dropdown .action span { font-size: 0 !important; }
nav > button[aria-label="My files"] span::after { content: "我的文件"; font-size: 13px; }
nav > div .action[aria-label="New folder"] span::after { content: "新建文件夹"; font-size: 13px; }
nav > div .action[aria-label="New file"] span::after { content: "新建文件"; font-size: 13px; }
nav #logout span::after { content: "退出登录"; font-size: 13px; }
header #dropdown [aria-label="Switch view"] span::after { content: "切换视图"; }
header #dropdown [aria-label="Download"] span::after { content: "下载"; }
header #dropdown [aria-label="Upload"] span::after { content: "上传"; }
header #dropdown [aria-label="Info"] span::after { content: "信息"; }
header #dropdown [aria-label="Select multiple"] span::after { content: "多选"; }

#listing.list .item.header .name span, #listing.list .item.header .size span, #listing.list .item.header .modified span { font-size: 0; }
#listing.list .item.header .name span::after { content: "名称"; font-size: 10px; }
#listing.list .item.header .size span::after { content: "大小"; font-size: 10px; }
#listing.list .item.header .modified span::after { content: "最近修改"; font-size: 10px; }
#listing.list > h2 { font-size: 0 !important; }
#listing.list > h2::after { content: "文件夹"; font-size: 11px; }

/* ── Search, selection, upload and dialogs ─────────────────────────────── */
#search #result {
  top: 43px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 15px !important;
  background: rgba(255, 255, 255, .88) !important;
  box-shadow: var(--cf-shadow) !important;
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
#search #result > div > p { color: var(--cf-muted) !important; font-size: 12px; }
#search #result .boxes h3 { color: var(--cf-secondary) !important; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
#search #result .boxes > div > div { border-radius: 11px !important; transition: background .18s ease, color .18s ease; }
#search #result .boxes > div > div:hover { color: var(--cf-blue); background: var(--cf-blue-soft); }

#multiple-selection {
  z-index: 40 !important;
  left: 50% !important;
  bottom: -5em !important;
  width: auto !important;
  max-width: calc(100vw - 36px);
  min-height: 48px;
  box-sizing: border-box;
  align-items: center;
  gap: 14px;
  padding: 6px 8px 6px 16px !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: 16px !important;
  background: rgba(255, 255, 255, .83) !important;
  box-shadow: var(--cf-shadow) !important;
  transform: translateX(-50%);
  backdrop-filter: blur(22px) saturate(160%);
  -webkit-backdrop-filter: blur(22px) saturate(160%);
}
#multiple-selection.active { bottom: 22px !important; }
#multiple-selection p { margin: 0 !important; color: var(--cf-secondary) !important; font-size: 12px !important; }
#multiple-selection p { font-size: 0 !important; }
#multiple-selection p::after { content: "已开启多选"; font-size: 12px; }
#multiple-selection .action { color: var(--cf-blue) !important; background: var(--cf-blue-soft) !important; }
#multiple-selection .action:hover { background: rgba(0, 113, 227, .16) !important; }
#multiple-selection .action i { padding: 8px !important; }

.overlay, #modal-background { background: rgba(23, 34, 51, .32) !important; backdrop-filter: blur(7px); -webkit-backdrop-filter: blur(7px); }
.card {
  color: var(--cf-secondary) !important;
  border: 1px solid rgba(255, 255, 255, .82) !important;
  border-radius: var(--cf-radius-lg) !important;
  background: rgba(255, 255, 255, .90) !important;
  box-shadow: 0 30px 90px rgba(31, 45, 72, .23), 0 3px 10px rgba(31, 45, 72, .08) !important;
  backdrop-filter: blur(26px) saturate(160%);
  -webkit-backdrop-filter: blur(26px) saturate(160%);
}
.card h2, .card h3 { color: var(--cf-ink) !important; font-weight: 720 !important; letter-spacing: -.02em; }
.card .card-title { padding: 20px 20px 12px !important; }
.card > div { padding: 14px 20px !important; }
.button {
  min-height: 38px;
  box-sizing: border-box;
  border: 0 !important;
  border-radius: 11px !important;
  box-shadow: 0 7px 15px rgba(0, 113, 227, .17) !important;
  font-weight: 650;
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}
.button:hover { background: var(--cf-blue-deep) !important; box-shadow: 0 10px 22px rgba(0, 113, 227, .22) !important; transform: translateY(-1px); }
.button:active { transform: scale(.97); }
.button--flat { color: var(--cf-blue) !important; background: transparent !important; box-shadow: none !important; }
.input, input, textarea, select {
  color: var(--cf-ink) !important;
  border: 1px solid rgba(29, 29, 31, .12) !important;
  border-radius: 11px !important;
  background: rgba(247, 249, 252, .92) !important;
}
.input:focus, input:focus, textarea:focus, select:focus { border-color: rgba(0, 113, 227, .45) !important; box-shadow: 0 0 0 4px rgba(0, 113, 227, .09) !important; }
.upload-files .card.floating { right: 20px !important; bottom: 20px !important; left: auto !important; transform: none !important; border-radius: 18px !important; }
.upload-files .file .file-progress { height: 6px !important; overflow: hidden; border-radius: 99px; background: rgba(0, 113, 227, .10); }
.upload-files .file .file-progress div { border-radius: inherit; background: linear-gradient(90deg, #62b1ff, var(--cf-blue)) !important; }

.action { transition: background .18s ease, color .18s ease, transform .18s ease !important; }
.action:active { transform: scale(.96); }

/* ── Login surface ─────────────────────────────────────────────────────── */
#login {
  z-index: 1;
  display: grid !important;
  place-items: center;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% -8%, rgba(194, 220, 255, .64), transparent 42%),
    radial-gradient(circle at 12% 100%, rgba(225, 216, 255, .38), transparent 34%),
    linear-gradient(145deg, #f8fbff 0%, #f3f6fb 56%, #eef2f8 100%) !important;
}
#login::before {
  content: "";
  z-index: -1;
  pointer-events: none;
  position: absolute;
  inset: 0;
  opacity: .25;
  background-image: linear-gradient(rgba(82, 112, 153, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(82, 112, 153, .06) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .75), transparent 82%);
}
#login form {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  width: min(360px, calc(100vw - 32px)) !important;
  box-sizing: border-box;
  margin: 0 !important;
  padding: 30px 28px 28px !important;
  border: 1px solid rgba(255, 255, 255, .86) !important;
  border-radius: 26px !important;
  background: rgba(255, 255, 255, .72) !important;
  box-shadow: var(--cf-shadow) !important;
  backdrop-filter: blur(28px) saturate(170%);
  -webkit-backdrop-filter: blur(28px) saturate(170%);
  transform: none !important;
}
#login img {
  width: 58px !important;
  height: 58px !important;
  padding: 9px;
  box-sizing: border-box;
  border-radius: 17px;
  background: #08090b;
  box-shadow: 0 10px 22px rgba(0, 0, 0, .16);
}
#login h1 {
  margin: 14px 0 22px !important;
  color: var(--cf-ink) !important;
  font-size: 32px !important;
  font-weight: 760 !important;
  letter-spacing: -.045em;
  line-height: 1.08;
}
#login h1::after {
  content: "Secure access to your personal files";
  display: block;
  margin-top: 9px;
  color: var(--cf-muted);
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0;
}
#login input {
  width: 100%;
  height: 46px;
  box-sizing: border-box;
  margin: 5px 0 !important;
  padding: 0 14px !important;
  border-radius: 12px !important;
  background: rgba(247, 249, 252, .86) !important;
}
#login input::placeholder { color: #8b95a3; opacity: 1; }
#login input[type="submit"] {
  color: #fff !important;
  background: linear-gradient(180deg, #0b83ee, #0071e3) !important;
  box-shadow: 0 9px 20px rgba(0, 113, 227, .22) !important;
  font-weight: 700;
  cursor: pointer;
}
#login button {
  width: 100%;
  height: 46px;
  margin-top: 10px;
  border: 0 !important;
  border-radius: 12px !important;
  color: #fff !important;
  background: linear-gradient(180deg, #0b83ee, #0071e3) !important;
  box-shadow: 0 9px 20px rgba(0, 113, 227, .22) !important;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
#login button:hover { filter: brightness(.97); box-shadow: 0 12px 24px rgba(0, 113, 227, .27) !important; transform: translateY(-1px); }
#login button:active { transform: scale(.98); }

/* ── Mosaic view ───────────────────────────────────────────────────────── */
#listing.mosaic {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(215px, 1fr));
  align-content: start;
  gap: 11px;
}
#listing.mosaic > div:first-child, #listing.mosaic > h2 { grid-column: 1 / -1; }
#listing.mosaic > div:not(:first-child) { display: contents; }
#listing.mosaic > div:first-child { display: none !important; }
#listing.mosaic .item.header { display: none !important; }
#listing.mosaic > h2 { font-size: 0 !important; }
#listing.mosaic > h2::after { content: "文件夹"; font-size: 11px; }
#listing.mosaic .item:not(.header) {
  width: 100% !important;
  min-width: 0;
  min-height: 158px;
  margin: 0 !important;
  padding: 18px !important;
  display: flex !important;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
}
#listing.mosaic .item:not(.header) > div:first-of-type { width: 100% !important; flex: 0 0 auto !important; display: block !important; }
#listing.mosaic .item:not(.header) > div:first-of-type i { font-size: 38px !important; }
#listing.mosaic .item:not(.header) > div:last-of-type { width: 100% !important; display: flex !important; flex-direction: column; align-items: flex-start; gap: 5px; }
#listing.mosaic .item:not(.header) .name { width: 100% !important; font-size: 14px !important; }
#listing.mosaic .item:not(.header) .size, #listing.mosaic .item:not(.header) .modified { width: 100% !important; font-size: 11px !important; }
#listing.mosaic #multiple-selection:not(.active) { display: none !important; }
#listing.mosaic #multiple-selection.active { display: flex !important; grid-column: 1 / -1; }

/* ── Responsive / mobile ───────────────────────────────────────────────── */
@media (max-width: 1024px) {
  nav { width: 220px !important; }
  main { margin-left: 254px !important; }
  #listing.list .item.header > div, #listing.list .item:not(.header) > div:last-of-type { grid-template-columns: minmax(0, 1fr) 100px 135px; }
}

@media (max-width: 736px) {
  body { padding-top: 78px; padding-bottom: 18px; }
  header { top: 10px !important; right: 10px !important; left: 10px !important; height: 56px !important; padding: 0 8px 0 10px !important; border-radius: 17px !important; }
  header img { width: 30px !important; height: 30px !important; }
  header title { min-width: 88px; font-size: 14px !important; }
  header title::after { content: ""; }
  header #search { display: none !important; }
  header .search-button, header .menu-button, header #more { display: inline-grid !important; order: 4; width: 36px !important; height: 36px !important; }
  header .menu-button { order: 0; }
  header .search-button { order: 3; margin-left: auto; }
  header #dropdown { display: none !important; }
  header #more { order: 5; }
  nav { z-index: 10001 !important; top: 78px !important; bottom: 10px !important; left: -276px !important; width: 258px !important; border-radius: 0 24px 24px 0 !important; transition: left .24s cubic-bezier(.2,.75,.2,1) !important; }
  nav.active { left: 10px !important; }
  main { width: auto !important; min-height: 0; margin: 0 10px !important; padding-bottom: 24px !important; }
  .breadcrumbs { margin-bottom: 8px !important; }
  #listing { min-height: calc(100vh - 138px) !important; padding-bottom: 28px !important; }
  #listing.list .item.header { display: none !important; }
  #listing.list .item:not(.header) { min-height: 64px; padding: 9px 12px !important; }
  #listing.list .item:not(.header) > div:first-of-type { width: 38px !important; flex-basis: 38px !important; }
  #listing.list .item:not(.header) > div:first-of-type i { font-size: 27px !important; }
  #listing.list .item:not(.header) > div:last-of-type { display: flex !important; flex-direction: column; align-items: flex-start; gap: 3px; }
  #listing.list .item:not(.header) .name, #listing.list .item:not(.header) .size, #listing.list .item:not(.header) .modified { width: 100% !important; }
  #listing.list .item:not(.header) .size { display: none !important; }
  #listing.list .item:not(.header) .modified { font-size: 11px !important; }
  #listing.mosaic { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
  #listing.mosaic .item:not(.header) { min-height: 142px; padding: 14px !important; }
  #multiple-selection.active { bottom: 12px !important; }
  .upload-files .card.floating { right: 10px !important; bottom: 10px !important; left: 10px !important; width: auto !important; max-width: none !important; }
}

@media (max-width: 430px) {
  header title { min-width: 74px; }
  header title::before { content: "Cloud"; }
  header img { width: 28px !important; height: 28px !important; padding: 5px; }
  #listing.mosaic { grid-template-columns: 1fr 1fr; }
  #listing.mosaic .item:not(.header) { min-height: 132px; }
}

@media (prefers-reduced-transparency: reduce) {
  header, nav, #listing.list .item, #multiple-selection, .card { background: #fff !important; backdrop-filter: none !important; -webkit-backdrop-filter: none !important; }
}

@media (prefers-contrast: more) {
  header, nav, #listing.list .item, .card { border-color: rgba(29, 29, 31, .28) !important; background: #fff !important; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; }
  #listing.list .item:not(.header):hover { transform: none; }
}
