:root {
  color-scheme: light;
  font: 15px/1.55 system-ui, "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #202631;
  background: #f7f8fa;
  --line: #dce1e8;
  --muted: #555f6e;
  --accent: #17594b;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden], .sprite { display: none !important; }
body { margin: 0; }
h1, h2, p { margin: 0; }
h1 { font-size: 24px; }
h2 { font-size: 19px; }
svg { flex: none; width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.shell { width: min(100% - 40px, 1040px); margin-inline: auto; }
.topbar { background: #fff; border-bottom: 1px solid var(--line); }
.topbar-inner, .identity, .brand, .toolbar, .actions { display: flex; align-items: center; }
.topbar-inner { min-height: 60px; justify-content: space-between; gap: 16px; }
.brand { gap: 9px; font-weight: 650; flex: none; }
.brand svg { color: var(--accent); }
.identity { min-width: 0; gap: 8px; color: var(--muted); }
#account { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
main { padding-block: 28px; }
.toolbar { justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.actions { flex-wrap: wrap; gap: 8px; }
button, input { font: inherit; }
button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 38px; padding: 5px 11px; border: 1px solid var(--line); border-radius: 6px; color: inherit; background: #fff; cursor: pointer; }
button:hover { background: #edf1f5; }
button:disabled { opacity: .5; cursor: default; }
button.primary { border-color: var(--accent); background: var(--accent); color: #fff; }
button.primary:hover:not(:disabled) { background: #11483d; }
button.danger { border-color: #9b272f; background: #9b272f; color: #fff; }
button.danger:hover { background: #7c1d24; }
.icon-button { width: 36px; min-height: 36px; padding: 0; flex: none; }
button:focus-visible, input:focus-visible { outline: 2px solid #2878ac; outline-offset: 2px; }
input:not([type=file]) { width: 100%; min-height: 42px; border: 1px solid #aeb7c4; border-radius: 6px; padding: 7px 10px; margin: 5px 0 14px; background: #fff; color: inherit; }
.login { width: min(100%, 360px); margin: 26px auto 0; padding: 24px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.login h1, dialog h2 { margin-bottom: 16px; }
.login .primary { width: 100%; margin-top: 4px; }
#crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; min-height: 38px; margin-bottom: 12px; color: var(--muted); }
.crumb, .name-button { display: inline-flex; justify-content: flex-start; min-height: 30px; max-width: 100%; padding: 2px 4px; border: 0; text-align: left; color: var(--accent); background: transparent; }
.crumb[aria-current] { font-weight: 650; color: inherit; }
table { width: 100%; table-layout: fixed; border-collapse: collapse; background: #fff; }
thead { background: #eef1f4; color: var(--muted); }
th, td { padding: 7px 10px; border-bottom: 1px solid var(--line); text-align: left; overflow-wrap: anywhere; }
th { font-size: 13px; font-weight: 650; }
tbody tr:hover { background: #f5f8fa; }
.size { width: 96px; }
.modified { width: 174px; }
.row-actions { width: 130px; text-align: right; white-space: nowrap; }
.row-actions button { margin-inline-start: 3px; }
.file-name { display: flex; align-items: center; gap: 6px; }
.file-name svg { color: var(--muted); }
.file-name .name-button svg { color: var(--accent); }
.file-name span, .crumb { overflow-wrap: anywhere; min-width: 0; }
.empty { padding: 28px 12px; text-align: center; color: var(--muted); background: #fff; }
.status, .transfer { margin-top: 12px; padding: 9px 12px; color: var(--accent); background: #e8f3ee; border-left: 3px solid currentColor; overflow-wrap: anywhere; }
.status[data-error=true] { color: #8b2129; background: #fae9eb; }
.transfer { margin: 0 0 12px; }
progress { display: block; width: 100%; height: 12px; margin-top: 4px; accent-color: var(--accent); }
dialog { width: min(100% - 32px, 440px); max-height: calc(100% - 32px); overflow: auto; padding: 20px; border: 1px solid var(--line); border-radius: 8px; color: inherit; background: #fff; }
dialog::backdrop { background: #17233480; }
dialog p { margin-bottom: 14px; overflow-wrap: anywhere; }
.dialog-actions { justify-content: flex-end; }
#dialog-cancel { order: -1; }

@media (max-width: 650px) {
  .shell { width: calc(100% - 24px); }
  .modified { display: none; }
  th, td { padding-inline: 5px; }
}
@media (max-width: 430px) {
  .size { display: none; }
  .row-actions { width: 128px; }
}
