:root {
  --bg: #f6f7f9;
  --panel: #ffffff;
  --line: #e6e8eb;
  --text: #1f2329;
  --muted: #8a9099;
  --brand: #ff7a45;
  --brand-d: #e8632c;
  --ok: #18a058;
  --err: #d03050;
  --blue: #3a7afe;
}
* { box-sizing: border-box; }
body {
  margin: 0; font-family: -apple-system, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); font-size: 14px;
}
header {
  background: linear-gradient(135deg, #ff8c5a, #ff6b3d);
  color: #fff; padding: 16px 22px; display: flex; align-items: center; justify-content: space-between;
}
header h1 { font-size: 18px; margin: 0; font-weight: 700; letter-spacing: .5px; }
header a { color: #fff; opacity: .9; text-decoration: none; font-size: 13px; }
.wrap { max-width: 960px; margin: 18px auto; padding: 0 16px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin-bottom: 16px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { font-size: 13px; color: var(--muted); display: block; margin: 8px 0 4px; }
input, select, textarea {
  width: 100%; padding: 9px 11px; border: 1px solid var(--line); border-radius: 8px;
  font-size: 14px; color: var(--text); background: #fff; outline: none;
}
input:focus, select:focus, textarea:focus { border-color: var(--brand); }
button {
  background: var(--brand); color: #fff; border: none; padding: 9px 18px; border-radius: 8px;
  font-size: 14px; cursor: pointer; font-weight: 600; transition: .15s;
}
button:hover { background: var(--brand-d); }
button.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand); }
button:disabled { opacity: .5; cursor: not-allowed; }
.half { flex: 1 1 200px; }
.tree { margin-top: 6px; max-height: 520px; overflow: auto; border: 1px solid var(--line); border-radius: 8px; padding: 8px; }
.node { padding: 2px 0; }
.node .self { display: flex; align-items: center; gap: 7px; padding: 3px 4px; border-radius: 6px; }
.node .self:hover { background: #fff6f1; }
.nlabel { cursor: pointer; user-select: none; }
.folder > .self .ico { color: var(--brand); }
.file > .self .ico { color: var(--blue); }
.size { color: var(--muted); font-size: 12px; margin-left: auto; }
.children { margin-left: 18px; border-left: 1px dashed var(--line); padding-left: 6px; }
.status { margin-top: 10px; font-size: 13px; }
.status.ok { color: var(--ok); }
.status.err { color: var(--err); }
.meta { color: var(--muted); font-size: 12px; margin-top: 6px; }
.bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.pill { background: #fff1ea; color: var(--brand-d); padding: 3px 10px; border-radius: 20px; font-size: 12px; }
.tabs a { margin-left: 14px; color: var(--brand); text-decoration: none; font-size: 13px; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
th { color: var(--muted); font-weight: 600; }
input.sm { width: auto; padding: 5px 8px; }
.login { max-width: 360px; margin: 60px auto; }
.toast { position: fixed; top: 16px; left: 50%; transform: translateX(-50%); background: #32363f; color: #fff; padding: 9px 16px; border-radius: 8px; font-size: 13px; z-index: 99; }
