:root {
  font-family: "DM Sans", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color: #17243b;
  background: #f3f6fa;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --muted: #8290a5;
  --line: #e8edf4;
  --blue: #4778e8;
}

* { box-sizing: border-box; }
body { margin: 0; min-width: 760px; min-height: 100vh; }
button, input { font: inherit; }
button { color: inherit; }
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
  width: 252px; flex: 0 0 252px; display: flex; flex-direction: column;
  padding: 25px 15px 16px; background: #fff; border-right: 1px solid var(--line);
}
.brand { display: flex; align-items: center; gap: 12px; padding: 0 9px 31px; }
.brand-mark {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px;
  color: white; font-weight: 700; font-size: 19px;
  background: linear-gradient(145deg, #5c91fa, #4770dc);
  box-shadow: 0 7px 15px #4778e82e;
}
.brand strong, .brand span, .sidebar-bottom strong, .sidebar-bottom span { display: block; }
.brand strong { font-size: 15px; letter-spacing: .2px; }
.brand span { margin-top: 3px; color: var(--muted); font-size: 11px; }
.nav-caption {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 10px 9px; color: #9ba6b7; font-size: 10px; font-weight: 700; letter-spacing: 1px;
}
.nav-item {
  display: flex; align-items: center; width: 100%; gap: 11px; padding: 10px 11px;
  margin: 2px 0; border: 0; border-radius: 8px; background: transparent;
  color: #627087; text-align: left; font-size: 12px; cursor: pointer;
}
.nav-item:hover, .folder-node:hover { background: #f5f7fb; }
.nav-item.active { color: #3569dc; background: #edf3ff; font-weight: 600; }
.nav-icon { width: 18px; color: #8997aa; text-align: center; font-size: 16px; }
.nav-item.active .nav-icon { color: #4778e8; }
.nav-count { margin-left: auto; color: #95a0b0; font-size: 10px; }
.folder-caption { margin-top: 27px; padding-bottom: 8px; }
.icon-button { padding: 2px 5px; border: 0; background: none; color: #8997aa; font-size: 17px; cursor: pointer; }
.folder-tree { overflow: auto; }
.folder-node {
  display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 9px;
  border: 0; border-radius: 7px; background: transparent; color: #58667c;
  text-align: left; font-size: 11px; cursor: pointer;
}
.folder-node.selected { color: #3569dc; background: #edf3ff; font-weight: 600; }
.folder-glyph { color: #eab650; font-size: 14px; }
.folder-node .folder-total { margin-left: auto; color: #9ba6b7; font-size: 10px; }
.sidebar-bottom {
  display: flex; align-items: center; gap: 10px; margin-top: auto; padding: 13px 10px 0;
  border-top: 1px solid var(--line);
}
.storage-icon { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 8px; background: #f1f5fb; color: #71819a; }
.sidebar-bottom strong { font-size: 10px; }
.sidebar-bottom span { margin-top: 3px; color: var(--muted); font-size: 9px; }
.online-dot { width: 7px; height: 7px; margin-left: auto; border-radius: 50%; background: #54c49a; }

.main { display: flex; flex: 1; min-width: 0; flex-direction: column; }
.topbar {
  display: flex; height: 70px; flex: 0 0 70px; align-items: center; justify-content: space-between;
  padding: 0 35px; border-bottom: 1px solid var(--line); background: #fff;
}
.breadcrumbs { display: flex; align-items: center; gap: 9px; color: #8995a8; font-size: 11px; }
.crumb { border: 0; padding: 0; background: none; color: #8995a8; cursor: pointer; }
.crumb.current { color: #27354b; font-weight: 600; cursor: default; }
.crumb-sep { color: #c1c9d4; }
.search-box {
  display: flex; align-items: center; gap: 9px; width: 246px; height: 34px;
  padding: 0 10px; border: 1px solid #e8edf4; border-radius: 7px; background: #fbfcfe;
  color: #8794a8;
}
.search-box > span { font-size: 18px; transform: rotate(-20deg); }
.search-box input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; color: #25334a; font-size: 11px; }
.search-box input::placeholder { color: #9aa5b4; }
.search-box kbd { padding: 2px 4px; border: 1px solid #e6eaf0; border-radius: 4px; color: #9aa5b4; font-size: 8px; }
.content { display: flex; flex: 1; min-height: 0; flex-direction: column; padding: 30px 35px 20px; }
.page-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 21px; }
.eyebrow { color: #91a0b6; font-size: 9px; font-weight: 700; letter-spacing: 1.5px; }
h1 { margin: 7px 0 5px; color: #1c2a42; font-size: 23px; letter-spacing: -.5px; }
.page-heading p { margin: 0; color: #8995a8; font-size: 11px; }
.view-toggle { display: flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e6ebf2; border-radius: 6px; background: white; color: #68768b; font-size: 10px; cursor: pointer; }
.view-toggle span:first-child { font-size: 15px; }
.type-chips { display: flex; gap: 7px; padding-bottom: 15px; }
.type-chip { padding: 6px 10px; border: 1px solid #e8edf4; border-radius: 20px; background: #fff; color: #778499; font-size: 9px; cursor: pointer; }
.type-chip.selected { border-color: #d7e3ff; background: #edf3ff; color: #3c70df; }
.workspace { display: flex; flex: 1; min-height: 0; overflow: hidden; border: 1px solid #e7ecf3; border-radius: 9px; background: #fff; box-shadow: 0 5px 20px #334b6e08; }
.file-area { display: flex; flex: 1; min-width: 0; flex-direction: column; overflow: hidden; }
.list-toolbar { display: flex; align-items: center; justify-content: space-between; min-height: 37px; padding: 0 16px; border-bottom: 1px solid #edf0f5; color: #8d99aa; font-size: 9px; }
.sort-label { color: #8d99aa; }
.sort-label span { color: #4778e8; }
.file-list { overflow: auto; padding: 3px 8px 8px; }
.file-row {
  display: grid; grid-template-columns: minmax(180px, 1fr) 100px 95px 82px;
  align-items: center; min-height: 48px; gap: 8px; padding: 0 9px;
  border-bottom: 1px solid #f1f3f7; border-radius: 5px; cursor: pointer;
}
.file-row:hover { background: #f8faff; }
.file-row.selected { background: #edf4ff; }
.file-name-cell { display: flex; min-width: 0; align-items: center; gap: 10px; }
.file-icon { display: grid; place-items: center; width: 30px; height: 34px; flex: 0 0 30px; border-radius: 6px; background: #f1f4f9; color: #73839c; font-size: 10px; font-weight: 700; }
.file-icon.html { background: #fff1e9; color: #e98455; }
.file-icon.doc { background: #eaf1ff; color: #5681e8; }
.file-icon.image { background: #f2edff; color: #9272d3; }
.file-icon.text { background: #eaf7f1; color: #51a980; }
.file-name { overflow: hidden; color: #35435a; font-size: 10px; font-weight: 500; text-overflow: ellipsis; white-space: nowrap; }
.file-path { overflow: hidden; margin-top: 3px; color: #9aa5b4; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.file-type, .file-date, .file-size { overflow: hidden; color: #8591a3; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.file-date, .file-size { color: #98a2b1; }
.file-list.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); align-content: start; gap: 8px; padding: 12px; }
.file-list.grid .file-row { display: flex; min-height: 93px; align-items: flex-start; padding: 13px 10px; border: 1px solid #edf0f5; }
.file-list.grid .file-icon { width: 34px; height: 38px; }
.file-list.grid .file-type, .file-list.grid .file-date, .file-list.grid .file-size { display: none; }
.empty-state { display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; gap: 7px; color: #8e9aab; }
.empty-icon { margin-bottom: 4px; font-size: 28px; }
.empty-state strong { color: #54627a; font-size: 12px; }
.empty-state span { font-size: 10px; }
.details-pane { display: flex; width: 240px; flex: 0 0 240px; flex-direction: column; border-left: 1px solid #edf0f5; background: #fcfdff; }
.details-empty { display: flex; flex: 1; align-items: center; justify-content: center; flex-direction: column; padding: 20px; text-align: center; }
.empty-preview-icon { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 13px; border-radius: 14px; background: #f0f4fa; color: #9aa9be; font-size: 21px; }
.details-empty strong { color: #506078; font-size: 11px; }
.details-empty span { max-width: 145px; margin-top: 6px; color: #9ba6b5; font-size: 9px; line-height: 1.6; }
.detail-content { overflow: auto; padding: 21px 17px; }
.detail-file-icon { display: grid; place-items: center; width: 43px; height: 48px; margin-bottom: 13px; border-radius: 9px; background: #fff1e9; color: #e98455; font-size: 13px; font-weight: 700; }
.detail-name { overflow-wrap: anywhere; color: #2b3a51; font-size: 11px; font-weight: 600; line-height: 1.55; }
.detail-kind { margin-top: 4px; color: #8794a7; font-size: 9px; }
.open-button { display: block; width: 100%; margin-top: 15px; padding: 9px; border: 0; border-radius: 6px; background: #4778e8; color: #fff; font-size: 10px; font-weight: 600; text-align: center; text-decoration: none; cursor: pointer; }
.open-button:hover { background: #3869d8; }
.detail-section-title { margin: 22px 0 10px; color: #8290a4; font-size: 9px; font-weight: 700; letter-spacing: .6px; }
.detail-info { display: grid; grid-template-columns: 48px minmax(0, 1fr); gap: 10px 5px; font-size: 9px; }
.detail-info dt { color: #9aa5b4; }
.detail-info dd { overflow-wrap: anywhere; margin: 0; color: #59677d; }
.preview-text { max-height: 175px; overflow: auto; padding: 10px; border-radius: 6px; background: #f4f6fa; color: #66748a; font-size: 9px; line-height: 1.75; overflow-wrap: anywhere; }
.preview-placeholder { color: #9aa5b4; font-size: 9px; line-height: 1.7; }
.statusbar { display: flex; height: 30px; flex: 0 0 30px; align-items: center; justify-content: space-between; padding: 0 35px; border-top: 1px solid var(--line); background: #fff; color: #94a0b0; font-size: 9px; }
.statusbar span:last-child { color: #a4afbd; }
.load-error { margin: 25px; padding: 16px; border: 1px solid #f2d8d8; border-radius: 7px; background: #fff8f8; color: #a34a4a; font-size: 11px; line-height: 1.7; }

@media (max-width: 1000px) {
  .sidebar { width: 210px; flex-basis: 210px; }
  .content { padding-right: 20px; padding-left: 20px; }
  .topbar { padding-right: 20px; padding-left: 20px; }
  .details-pane { width: 210px; flex-basis: 210px; }
  .file-row { grid-template-columns: minmax(150px, 1fr) 83px 76px 60px; }
}
