* { box-sizing: border-box; }
body {
  width: 410px; margin: 0; color: #172033; background: #f7f8fa;
  font-family: "Microsoft YaHei", system-ui, sans-serif;
}
header {
  display: flex; gap: 11px; align-items: center; padding: 16px;
  background: #111827; color: #fff;
}
header img { width: 42px; height: 42px; border-radius: 11px; object-fit: cover; }
header strong { display: block; font-size: 16px; }
header small { display: block; color: #96a0b2; margin-top: 3px; font-size: 11px; }
main { padding: 14px; display: grid; gap: 9px; }
button {
  min-height: 40px; border-radius: 9px; border: 1px solid #dfe2e8;
  background: #fff; color: #172033; font: 700 12px "Microsoft YaHei", system-ui, sans-serif;
  cursor: pointer;
}
button:hover { border-color: #9ca3af; }
button.primary { width: 100%; background: #13d9d0; border-color: #13d9d0; color: #082525; font-size: 13px; }
button:disabled { opacity: .55; cursor: wait; }
.hidden { display: none !important; }
.account-panel { padding: 12px; border: 1px solid #e1e5eb; border-radius: 11px; background: #fff; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.panel-head > div { min-width: 0; }
.panel-head strong { display: block; font-size: 13px; }
.panel-head small { display: block; margin-top: 3px; overflow: hidden; color: #667085; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.link-button { min-height: 30px; padding: 4px 9px; border-color: #b8ccff; color: #165dff; font-size: 10px; }
.account-controls, .login-form { display: grid; gap: 9px; margin-top: 11px; }
.account-controls label, .login-form label { display: grid; gap: 5px; color: #475467; font-size: 10px; font-weight: 700; }
select, input {
  width: 100%; height: 36px; padding: 0 10px; border: 1px solid #dfe3ea; border-radius: 7px;
  outline: 0; background: #fff; color: #172033; font: 12px "Microsoft YaHei", system-ui, sans-serif;
}
select:focus, input:focus { border-color: #165dff; box-shadow: 0 0 0 2px rgba(22, 93, 255, .12); }
.account-actions { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.account-actions span { min-width: 0; color: #667085; font-size: 9px; line-height: 1.4; }
.danger-light { min-height: 28px; padding: 3px 8px; border-color: #ffd0d2; color: #c41d25; font-size: 9px; }
.login-title { display: flex; align-items: center; justify-content: space-between; font-size: 12px; }
.icon-button { width: 28px; min-height: 28px; padding: 0; border: 0; background: transparent; color: #667085; font-size: 20px; }
.privacy-note { color: #667085; font-size: 9px; line-height: 1.5; }
.account-empty { margin-top: 10px; padding: 10px; border-radius: 7px; background: #f2f4f7; color: #667085; font-size: 10px; line-height: 1.5; }
.option {
  display: flex; align-items: center; gap: 8px; min-height: 34px; padding: 7px 9px;
  border: 1px solid #e5e7eb; border-radius: 8px; background: #fff; color: #475467; font-size: 11px;
}
.option input { accent-color: #0f9f97; }
#status {
  min-height: 42px; padding: 10px 11px; border-radius: 8px;
  background: #eef2f6; color: #667085; font-size: 11px; line-height: 1.55;
}
#status.success { background: #ecfdf5; color: #047857; }
#status.error { background: #fff1f2; color: #be123c; }
.task-summary { padding: 11px; border: 1px solid #e1e5eb; border-radius: 11px; background: #fff; }
.summary-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.summary-head strong { font-size: 13px; }
.summary-head span { color: #667085; font-size: 10px; }
.counts { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; margin-bottom: 8px; }
.count { padding: 6px 2px; border-radius: 7px; background: #f2f4f7; text-align: center; }
.count b { display: block; font-size: 13px; }
.count small { display: block; margin-top: 2px; color: #667085; font-size: 9px; }
.task-list { display: grid; gap: 5px; max-height: 200px; overflow: auto; }
.task-row { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 7px 8px; border: 1px solid #eef0f3; border-radius: 8px; background: #fafbfc; }
.task-main { min-width: 0; }
.task-title { display: flex; gap: 6px; align-items: center; font-size: 11px; font-weight: 800; }
.task-title span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-meta { margin-top: 3px; overflow: hidden; color: #667085; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.task-error { margin-top: 3px; color: #b42318; font-size: 9px; line-height: 1.35; white-space: normal; }
.badge { flex: 0 0 auto; padding: 2px 5px; border-radius: 999px; background: #e5e7eb; color: #475467; font-size: 9px; }
.badge.waiting { background: #fff4d6; color: #8a5700; }.badge.collecting { background:#e0f2fe;color:#0369a1 }.badge.success { background:#dcfce7;color:#047857 }.badge.partial_success { background:#fef3c7;color:#92400e }.badge.failed { background:#fee2e2;color:#b42318 }
.retry-one { min-height: 28px; padding: 4px 7px; align-self: center; font-size: 10px; }
.empty { padding: 18px 0; color: #98a2b3; text-align: center; font-size: 11px; }
.task-actions { display:grid;grid-template-columns:1fr 1fr;gap:6px;margin-top:8px }.task-actions button{min-height:31px;font-size:10px}
#openDashboard{width:100%}
