:root {
  --ink: #1c1c1e;
  --sub: #6b6b70;
  --line: #e3e3e6;
  --bg: #fafafa;
  --accent: #b03a2e;
}
* { box-sizing: border-box; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 15px/1.6 -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}
header {
  padding: 24px 32px; background: #fff; border-bottom: 1px solid var(--line);
  position: relative;
}
header h1 { margin: 0; font-size: 20px; letter-spacing: .5px; }
header .sub { margin: 4px 0 0; color: var(--sub); font-size: 13px; }
#userbar { position: absolute; right: 32px; top: 28px; font-size: 13px; color: var(--sub); }
main { max-width: 1080px; margin: 0 auto; padding: 28px 32px 60px; }
h2 { font-size: 16px; margin: 32px 0 12px; }
h3 { font-size: 14px; margin: 24px 0 10px; color: var(--sub); }

input, select, button, .btn {
  font: inherit; padding: 8px 12px; border: 1px solid var(--line);
  border-radius: 6px; background: #fff;
}
button, .btn { cursor: pointer; }
button:hover, .btn:hover { border-color: #bbb; }
.small { padding: 4px 10px; font-size: 13px; margin-right: 6px; }
form { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }

.drop {
  border: 1.5px dashed var(--line); border-radius: 10px; background: #fff;
  padding: 36px; text-align: center; color: var(--sub); transition: .15s;
}
.drop.on { border-color: var(--accent); background: #fff8f7; }
.drop p { margin: 6px 0; }
.hint { font-size: 12px; }

table { width: 100%; border-collapse: collapse; background: #fff; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
th, td { padding: 10px 12px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
th { background: #f6f6f7; font-weight: 600; color: var(--sub); font-size: 13px; }
tr:last-child td { border-bottom: 0; }
td.name { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.tag { display: inline-block; padding: 2px 9px; border-radius: 11px; font-size: 12px; }
.tag.gray  { background: #eee; color: #555; }
.tag.blue  { background: #e6f0fb; color: #1b5fa8; }
.tag.green { background: #e5f5ea; color: #1d7a3e; }
.tag.amber { background: #fdf3e0; color: #96650d; }
.tag.red   { background: #fdeaea; color: #a52222; }

.alert { background: #fdf3e0; border: 1px solid #f0dcae; padding: 10px 14px; border-radius: 6px; color: #7a5310; }
ul.alert { padding-left: 30px; }
.err { color: #a52222; }
.ok  { color: #1d7a3e; }

.assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 10px; text-align: center; }
.card.low { border-color: #e6b800; box-shadow: 0 0 0 2px #fdf3e0; }
.card img { max-width: 100%; max-height: 90px; object-fit: contain; }
.card .meta { font-size: 11px; color: var(--sub); margin: 6px 0; }
.card select { width: 100%; font-size: 12px; padding: 4px; }
