:root {
  --bg: #f5f7fa;
  --card: #fff;
  --border: #e5e7eb;
  --text: #111827;
  --muted: #6b7280;
  --accent: #2563eb;
  --ok: #16a34a;
  --err: #dc2626;
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
}
a { color: var(--accent); text-decoration: none; }
.topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 24px;
  background: var(--card);
  border-bottom: 1px solid var(--border);
}
.topbar .brand { font-weight: 600; margin-right: 12px; }
.topbar nav a {
  margin-right: 12px;
  color: var(--muted);
  padding: 6px 10px;
  border-radius: 6px;
}
.topbar nav a.active { color: var(--accent); background: #eff6ff; }
.topbar .spacer { flex: 1; }
.wrap { max-width: 1100px; margin: 0 auto; padding: 24px; }
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 16px;
}
.btn {
  background: var(--accent);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 10px 16px;
  cursor: pointer;
  font-size: 14px;
}
.btn:disabled { opacity: 0.5; cursor: not-allowed; }
.btn.secondary { background: #e5e7eb; color: var(--text); }
input[type="text"], input[type="password"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 14px;
}
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { border-bottom: 1px solid var(--border); padding: 10px 8px; text-align: left; }
th { color: var(--muted); font-weight: 500; }
.tag { display: inline-block; padding: 2px 8px; border-radius: 999px; font-size: 12px; }
.tag.run { background: #dbeafe; color: #1d4ed8; }
.tag.ok { background: #dcfce7; color: #15803d; }
.tag.fail { background: #fee2e2; color: #b91c1c; }
.dropzone {
  border: 2px dashed #cbd5e1;
  border-radius: 12px;
  padding: 40px;
  text-align: center;
  color: var(--muted);
  background: #fafafa;
}
.dropzone.dragover { border-color: var(--accent); background: #eff6ff; }
.account-panel {
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
}
.account-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid var(--border);
}
.account-search input { flex: 1; border: none; outline: none; }
.account-list { max-height: 320px; overflow-y: auto; }
.account-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid #f3f4f6;
  cursor: pointer;
}
.account-row:hover { background: #f9fafb; }
.account-name { font-size: 14px; color: #111; line-height: 1.4; }
.account-id { font-size: 12px; color: #8b9cb3; margin-top: 2px; }
.thumb-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.thumb-card { border: 1px solid var(--border); border-radius: 8px; overflow: hidden; }
.thumb-card img { width: 100%; height: 100px; object-fit: cover; display: block; background: #f3f4f6; }
.thumb-card label { display: flex; gap: 8px; padding: 8px; font-size: 12px; align-items: center; }
.section-title { font-size: 16px; font-weight: 600; margin: 0 0 12px; }
.execute-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 16px;
  flex-wrap: wrap;
}
.team-session {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
  padding: 10px 14px;
  background: #f9fafb;
  border: 1px solid var(--border);
  border-radius: 10px;
  font-size: 13px;
}
.team-session-label { color: var(--muted); white-space: nowrap; }
.team-account {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}
.status-dot.online { background: var(--ok); box-shadow: 0 0 0 3px #dcfce7; }
.status-dot.offline { background: var(--err); box-shadow: 0 0 0 3px #fee2e2; }
.team-status-text { color: var(--text); min-width: 0; }
.team-status-detail { color: var(--muted); font-size: 12px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.sso-steps { margin: 0; padding-left: 20px; color: var(--muted); line-height: 1.8; }
.sso-steps strong { color: var(--text); }
textarea.cookies-input {
  width: 100%;
  min-height: 120px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-family: ui-monospace, monospace;
  font-size: 12px;
}
