* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, "PingFang HK", "Microsoft JhengHei", sans-serif;
  color: #1f2933;
  background: #f5f7fa;
}
.view { min-height: 100vh; }
.hidden { display: none !important; }
.muted { color: #6b7280; font-size: 13px; }
.err { color: #d92d20; font-size: 13px; min-height: 18px; margin: 8px 0 0; }

/* 登录 */
#login { display: flex; align-items: center; justify-content: center; }
.login-card { width: 320px; text-align: center; }
.card {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 10px;
  padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,.05);
}

/* 顶部 */
header {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 24px; background: #fff; border-bottom: 1px solid #e5e7eb;
}
header h1 { font-size: 18px; margin: 0; }
header #who { margin-left: auto; }

main { max-width: 820px; margin: 0 auto; padding: 24px 16px 60px; }
.row { display: flex; align-items: center; justify-content: space-between; }
h2 { font-size: 16px; margin: 8px 0 12px; }

/* 表单 */
input, select {
  padding: 9px 10px; border: 1px solid #d1d5db; border-radius: 6px;
  font-size: 14px; width: 100%; background: #fff;
}
form.card { display: flex; flex-direction: column; gap: 10px; margin-bottom: 16px; }
#company-form { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
#company-form input { flex: 1; min-width: 140px; width: auto; }
#upload-form { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 8px; }
#upload-form select { width: auto; }
#upload-form input { flex: 1; min-width: 160px; width: auto; }

button {
  padding: 9px 16px; border: none; border-radius: 6px; cursor: pointer;
  background: #2563eb; color: #fff; font-size: 14px;
}
button:hover { background: #1d4ed8; }
button.ghost { background: transparent; color: #2563eb; }
button.ghost:hover { background: #eff6ff; }
button.danger { background: transparent; color: #d92d20; }
button.danger:hover { background: #fef2f2; }

/* 列表 */
.list { list-style: none; margin: 0; padding: 0; }
.list li {
  display: flex; align-items: center; gap: 10px;
  background: #fff; border: 1px solid #e5e7eb; border-radius: 8px;
  padding: 12px 14px; margin-bottom: 8px;
}
.list li .name { flex: 1; }
.list li .tag {
  font-size: 12px; padding: 2px 8px; border-radius: 10px; background: #eef2ff; color: #4338ca;
}
.list li small { color: #9ca3af; }
