:root {
  --bg: #0f1115;
  --card-bg: #1a1d24;
  --text: #e8e8ec;
  --muted: #8a8f9a;
  --accent: #ff5c8a;
  --border: #2a2e37;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", "Noto Sans TC", sans-serif;
}

.admin-shell {
  max-width: 1100px;
  margin: 32px auto;
  padding: 0 16px;
}

.admin-columns {
  display: flex;
  gap: 20px;
  align-items: flex-start;
}

.admin-col {
  flex: 1;
  min-width: 0;
}

@media (max-width: 860px) {
  .admin-columns {
    flex-direction: column;
  }
}

h1 { font-size: 20px; }
h2 { font-size: 14px; color: var(--muted); margin: 0 0 12px; }

.panel {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin-bottom: 20px;
}

label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin: 12px 0 6px;
}

label:first-of-type { margin-top: 0; }

input, select {
  width: 100%;
  padding: 8px 10px;
  background: #14161c;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text);
  font-size: 14px;
}

button {
  margin-top: 14px;
  background: var(--accent);
  border: none;
  color: #16090f;
  font-weight: 700;
  padding: 8px 18px;
  border-radius: 6px;
  cursor: pointer;
}

.btn-danger {
  background: transparent;
  border: 1px solid #f87171;
  color: #f87171;
}

.hint {
  font-size: 12px;
  color: var(--muted);
  margin: 8px 0 0;
}

.msg {
  font-size: 13px;
  margin: 10px 0 0;
}

.msg.ok { color: #4ade80; }
.msg.err { color: #f87171; }

.accounts-table-wrap {
  max-height: 320px;
  overflow-y: auto;
}

.accounts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}

.accounts-table th, .accounts-table td {
  text-align: left;
  padding: 4px 6px;
  border-bottom: 1px solid var(--border);
}

.accounts-table th {
  color: var(--muted);
  font-weight: 600;
  position: sticky;
  top: 0;
  background: var(--card-bg);
}

.delete-account-btn {
  margin: 0;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--muted);
  border-radius: 4px;
  font-size: 12px;
  line-height: 1;
  cursor: pointer;
}

.delete-account-btn:hover {
  background: #dc2626;
  border-color: #dc2626;
  color: #fff;
}

.hashtag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 4px;
}

.hashtag-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #14161c;
  border: 1px solid var(--border);
  font-size: 12px;
  color: var(--text);
}

.hashtag-remove-btn {
  margin: 0;
  padding: 0;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 11px;
  line-height: 1;
  cursor: pointer;
}

.hashtag-remove-btn:hover {
  color: #f87171;
}

.member-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.member-row .member-slug {
  font-size: 12px;
  color: var(--muted);
  width: 90px;
  flex-shrink: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-row input {
  flex: 1;
}

.member-row button {
  margin: 0;
  padding: 6px 12px;
  font-size: 12px;
  flex-shrink: 0;
}
