* { box-sizing: border-box; }
:root {
  color-scheme: light;
  font-family: "Microsoft YaHei", "Segoe UI", system-ui, sans-serif;
  color: #17252b;
  background: #f5f7f9;
  font-size: 15px;
}
[hidden] { display: none !important; }
body { margin: 0; }
main { width: min(820px, calc(100% - 32px)); margin: 5vh auto; }
h1 { font-size: 24px; margin: 0; }
h2 { font-size: 18px; margin: 0 0 12px; }
button, input { font: inherit; }
button {
  background: #fff;
  color: inherit;
  border: 1px solid #ccd7db;
  border-radius: 6px;
  padding: .48rem .78rem;
  cursor: pointer;
}
button:hover { background: #edf4f4; }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: #166757; color: white; border-color: #166757; }
button.danger { background: #a5302c; color: white; border-color: #a5302c; }
input:not([type="checkbox"]) {
  display: block;
  width: 100%;
  padding: .65rem .7rem;
  margin-top: .35rem;
  border: 1px solid #ccd7db;
  border-radius: 6px;
}
button:focus-visible, input:focus-visible { outline: 2px solid #167765; outline-offset: 2px; }
.login, .panel, .transfer, dialog {
  background: #fff;
  border: 1px solid #dce4e7;
  border-radius: 10px;
}
.login { width: min(370px, 100%); margin: 13vh auto; padding: 24px; }
.login form, .login label:not(.remember) { display: block; }
.login label { margin-top: 14px; }
.login .remember { display: flex; align-items: center; gap: .45rem; margin-bottom: 14px; }
.login button { width: 100%; }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar-actions { display: flex; flex-wrap: wrap; gap: 7px; }
.muted, .tree-help, .empty { color: #52636b; }
.muted { margin: 5px 0 0; font-size: .86rem; }
.panel { padding: 11px 12px 0; }
.tree-help { margin: 10px 1px 0; padding: 9px 2px; font-size: .84rem; border-top: 1px solid #ebeff0; }
.tree-children { padding-left: 19px; margin-left: 13px; border-left: 1px solid #e2e9eb; }
.tree-row { display: flex; align-items: center; min-height: 34px; border-radius: 5px; gap: 4px; }
.tree-row:hover, .tree-row:focus-within { background: #eef5f6; }
.tree-row button { border: 0; background: transparent; }
.tree-name {
  display: flex;
  align-items: baseline;
  gap: 8px;
  flex: 1;
  min-width: 0;
  text-align: left;
  padding: .38rem .36rem;
}
.tree-name .label { overflow-wrap: anywhere; }
.tree-name .mark { color: #176656; min-width: 11px; }
.tree-row .details { color: #58676d; font-size: .81rem; white-space: nowrap; }
.tree-row .more { line-height: 1; padding: .38rem .62rem; }
.empty { margin: 5px 8px 8px; font-size: .84rem; }
.menu {
  position: fixed;
  z-index: 5;
  width: 190px;
  padding: 4px;
  border: 1px solid #d0dade;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 5px 18px #1a34362b;
}
.menu button { display: block; width: 100%; border: none; text-align: left; }
.menu button[data-danger] { color: #a5302c; }
dialog { width: min(410px, calc(100% - 30px)); padding: 22px; }
dialog::backdrop { background: #14272b55; }
#prompt-text { overflow-wrap: anywhere; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 9px; margin-top: 16px; }
.transfer { margin-top: 12px; padding: 10px; display: grid; gap: 6px; overflow-wrap: anywhere; }
progress { width: 100%; accent-color: #166757; }
.error, #notice[data-error] { color: #a5302c; }
#notice, #login-error { overflow-wrap: anywhere; margin: 10px 0 0; }

