:root {
  --bg: #f4f5f7;
  --surface: #ffffff;
  --text: #111827;
  --muted: #6b7280;
  --line: #e5e7eb;
  --line-strong: #d1d5db;
  --accent: #0f766e;
  --accent-soft: #ccfbf1;
  --accent-hover: #0d9488;
  --danger: #dc2626;
  --danger-soft: #fee2e2;
  --high: #b91c1c;
  --high-bg: #fef2f2;
  --medium: #b45309;
  --medium-bg: #fffbeb;
  --low: #047857;
  --low-bg: #ecfdf5;
  --ok: #047857;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
  --radius: 10px;
  --font: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

* { box-sizing: border-box; }

html {
  scrollbar-gutter: stable;
}

html, body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-hover); }

.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px;
  height: 56px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  letter-spacing: -0.02em;
  justify-self: start;
}

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(145deg, #0f766e, #14b8a6);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
  flex: 0 0 auto;
}

img.brand-mark {
  display: block;
  padding: 0;
  background: none;
  object-fit: cover;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.12);
}

.nav {
  display: flex;
  gap: 4px;
  background: var(--bg);
  padding: 3px;
  border-radius: 999px;
  justify-self: center;
}

.nav a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  padding: 6px 14px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
}

.nav a.active,
.nav a:hover {
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow);
}

.top-meta {
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  justify-self: end;
  min-width: 0;
}

.top-meta .user-chip {
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  padding: 4px 8px;
  border-radius: 8px;
}

.top-meta .user-chip:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
}

.top-meta .version-check {
  appearance: none;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  line-height: inherit;
  padding: 4px 8px;
  border-radius: 8px;
  cursor: pointer;
}

.top-meta .version-check:hover {
  background: var(--surface);
  box-shadow: var(--shadow);
  color: var(--text);
}

.top-meta .version-check:disabled {
  opacity: 0.75;
  cursor: wait;
}

.update-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(18, 22, 28, 0.45);
  backdrop-filter: blur(2px);
}

.update-overlay[hidden] {
  display: none !important;
}

.update-overlay-card {
  width: min(420px, 100%);
  background: var(--surface);
  color: var(--text);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 20px 22px 18px;
}

.update-overlay-title {
  font-size: 16px;
  font-weight: 700;
  margin: 0 0 14px;
}

.update-progress {
  height: 10px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 22%, transparent);
  overflow: hidden;
}

.update-progress-bar {
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2f6fed, #4aa3ff);
  transition: width 0.2s ease;
}

.update-overlay-msg {
  margin: 12px 0 4px;
  font-size: 13px;
  line-height: 1.45;
  min-height: 1.45em;
}

.update-overlay-pct {
  font-size: 12px;
  color: var(--muted);
  text-align: right;
}

.update-inline-progress {
  margin-top: 12px;
}

.update-inline-progress[hidden] {
  display: none !important;
}

.top-meta .logout-form {
  display: inline;
  margin: 0;
}

.page {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 24px 20px 48px;
  flex: 1;
}

.page-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
  /* Keep title baseline stable when side actions appear/disappear across pages */
  min-height: 40px;
}

.page-head > div:first-child {
  min-height: 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.page-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  letter-spacing: -0.03em;
  font-weight: 700;
}

.page-head p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.page-head p[hidden] {
  display: none !important;
  margin: 0;
}

.status-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow);
}

.status-item {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 120px;
}

.status-item.status-action {
  margin-left: auto;
  min-width: 0;
}

.status-item .k {
  color: var(--muted);
  font-size: 12px;
}

.status-item .v {
  font-weight: 650;
  font-size: 13px;
}

.muted-row td {
  opacity: 0.72;
}

.row-online td {
  background: rgba(16, 185, 129, 0.04);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  display: inline-block;
  vertical-align: middle;
  background: var(--line-strong);
}

.dot.on { background: #10b981; box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.18); }
.dot.off { background: #ef4444; box-shadow: 0 0 0 3px rgba(239, 68, 68, 0.15); }
.dot.idle { background: #c4c9d2; box-shadow: none; }

.client-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 600;
}
.client-status.online { color: var(--ok); }
.client-status.offline { color: var(--muted); font-weight: 500; }

.ver-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tag {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.4;
  white-space: nowrap;
}
.tag-warn {
  background: #fff7ed;
  color: #c2410c;
  border: 1px solid #fed7aa;
}
.tag-probe {
  background: #f3f4f6;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.tag-current {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid #99f6e4;
}

.mono-id {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
  font-size: 12px;
  color: var(--muted);
  max-width: 148px;
  display: inline-block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: bottom;
  cursor: copy;
}
.mono-id:hover { color: var(--text); }

.rel-time {
  white-space: nowrap;
}
.rel-time .abs {
  display: block;
  font-size: 11px;
  color: var(--muted);
  opacity: 0.85;
}

.clients-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 14px;
  align-items: center;
  justify-content: space-between;
  margin: 0 0 12px;
}
.clients-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.summary-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}
.summary-chip strong {
  color: var(--text);
  font-weight: 700;
}
.summary-chip.ok {
  background: #ecfdf5;
  color: #047857;
}
.summary-chip.ok strong { color: #065f46; }
.summary-chip.warn {
  background: #fff7ed;
  color: #c2410c;
}
.summary-chip.warn strong { color: #9a3412; }

.filter-group {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}
.filter-chip {
  appearance: none;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--muted);
  border-radius: 999px;
  padding: 5px 11px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.filter-chip:hover { border-color: var(--accent); color: var(--accent); }
.filter-chip.active {
  background: var(--accent-soft);
  border-color: #99f6e4;
  color: var(--accent);
}
.filter-chip.toggle.active {
  background: #f3f4f6;
  border-color: #d1d5db;
  color: #374151;
}

.name-cell {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-weight: 600;
}
.name-cell .probe-hint { font-weight: 500; }

.releases-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.release-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 8px 14px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fafafa;
}
.release-card.current {
  background: #f0fdfa;
  border-color: #99f6e4;
}
.release-ver {
  font-weight: 700;
  font-size: 15px;
}
.release-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}
.release-meta .file {
  font-family: ui-monospace, "Cascadia Mono", "Consolas", monospace;
}

.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
  align-items: center;
}

.field, .select, .btn, .textarea {
  font: inherit;
  border-radius: 8px;
  border: 1px solid var(--line-strong);
  background: var(--surface);
  color: var(--text);
  padding: 8px 10px;
  outline: none;
}

.field:focus, .select:focus, .textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.field, .select { min-height: 36px; }
.field.grow { flex: 1; min-width: 160px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 8px 14px;
  white-space: nowrap;
  transition: background 0.15s ease, transform 0.15s ease;
}

.btn:hover { background: var(--accent-hover); }
.btn:active { transform: translateY(1px); }

.btn.secondary {
  background: var(--surface);
  color: var(--text);
  border-color: var(--line-strong);
  font-weight: 500;
}

.btn.secondary:hover { background: #f9fafb; }

.btn.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--muted);
}

.btn.ghost:hover { background: #eef0f3; color: var(--text); }

.btn.danger {
  background: var(--surface);
  color: var(--danger);
  border-color: #fecaca;
}

.btn.danger:hover { background: var(--danger-soft); }

.btn.sm {
  padding: 4px 10px;
  font-size: 12px;
  min-height: 28px;
}

.btn.icon {
  padding: 0;
  width: 28px;
  min-width: 28px;
  gap: 0;
}

.btn.icon .i {
  vertical-align: 0;
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: auto;
  box-shadow: var(--shadow);
}

table.data {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
}

/* Reminder list: keep matched usable; scroll sideways if viewport is narrow */
.table-wrap:has(#hits-table) {
  overflow-x: auto;
}
#hits-table {
  table-layout: fixed;
  /* hit-lead+index+time+group+sender+matched+excerpt(min)+actions */
  min-width: 720px;
}
#hits-table .hit-lead {
  width: 52px;
}
#hits-table .col-index,
#hits-table .row-index {
  width: 48px;
}
#hits-table .col-time {
  /* fits compact MM-DD HH:mm */
  width: 7.5rem;
  overflow: hidden;
  text-overflow: ellipsis;
}
#hits-table .col-group {
  width: 7.5em;
  max-width: none;
}
#hits-table .col-sender {
  width: 5.5em;
  max-width: none;
}
#hits-table .col-matched {
  width: 4.75em;
}
#hits-table .col-client {
  width: 6.5em;
  max-width: none;
}
#hits-table .col-actions {
  width: 104px;
}

table.data th,
table.data td {
  text-align: left;
  padding: 10px 10px;
  border-bottom: 1px solid var(--line);
  vertical-align: middle;
}

/* Shrink meta columns to content; leave remaining width for 群消息 */
table.data th.col-time,
table.data td.col-time {
  width: 1%;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  padding-left: 8px;
  padding-right: 8px;
}
table.data th.col-group,
table.data td.col-group {
  width: 1%;
  max-width: 7.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data th.col-sender,
table.data td.col-sender {
  width: 1%;
  max-width: 5.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data th.col-matched,
table.data td.col-matched {
  width: 1%;
  max-width: 7em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: center;
}
.match-chip {
  display: inline-block;
  max-width: 100%;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 12px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.level-badge {
  display: inline-block;
  min-width: 1.8em;
  padding: 1px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}
.level-badge.level-high {
  color: var(--high);
  background: var(--high-bg);
}
.level-badge.level-medium {
  color: var(--medium);
  background: var(--medium-bg);
}
.level-badge.level-low {
  color: var(--low);
  background: var(--low-bg);
}
table.data th.col-client,
table.data td.col-client {
  width: 1%;
  max-width: 6.5em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
table.data th.col-excerpt,
table.data td.col-excerpt,
table.data td.excerpt {
  width: auto;
  min-width: 0;
  max-width: 0; /* share leftover width under table-layout:fixed; force ellipsis */
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#hits-table th.col-excerpt,
#hits-table td.col-excerpt {
  width: 100%;
  max-width: none;
}

table.data th {
  font-size: 13.5px;
  color: var(--muted);
  font-weight: 650;
  text-align: center;
  background: #fafbfc;
  position: sticky;
  top: 0;
}

#hits-table thead th.sortable {
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}
#hits-table thead th.sortable:hover {
  color: var(--text);
  background: #f3f5f7;
}
#hits-table thead th.sortable::after {
  content: "";
  display: inline-block;
  width: 0;
  height: 0;
  margin-left: 5px;
  vertical-align: middle;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 5px solid currentColor;
  opacity: 0.22;
}
#hits-table thead th.sortable.is-sorted {
  color: var(--text);
}
#hits-table thead th.sortable.is-sorted.asc::after {
  border-top: 0;
  border-bottom: 5px solid var(--accent);
  opacity: 1;
}
#hits-table thead th.sortable.is-sorted.desc::after {
  border-top-color: var(--accent);
  opacity: 1;
}

table.data tr:last-child td { border-bottom: none; }
table.data tbody tr:hover td { background: #fafbfc; }

/* Keep row action buttons (e.g. 删除) from wrapping into vertical text */
table.data th.col-actions,
table.data td.col-actions {
  width: 1%;
  white-space: nowrap;
  vertical-align: middle;
  padding-left: 8px;
  padding-right: 10px;
}

table.data th.col-index,
table.data td.row-index {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  text-align: center;
  vertical-align: middle;
  width: 48px;
  padding-left: 6px;
  padding-right: 6px;
  user-select: none;
  white-space: nowrap;
}

table.data td.row-check {
  width: 36px;
  vertical-align: middle;
  text-align: center;
  padding-left: 10px;
  padding-right: 6px;
}

table.data td.row-check input,
table.data th input[type="checkbox"] {
  width: 15px;
  height: 15px;
  margin: 0;
  cursor: pointer;
  accent-color: var(--accent);
}

.drag-handle {
  display: inline-block;
  cursor: grab;
  color: var(--line-strong);
  font-size: 12px;
  letter-spacing: -2px;
  line-height: 1;
  padding: 4px 2px;
  margin-right: 2px;
  vertical-align: middle;
}

.drag-handle:active { cursor: grabbing; }

.row-num {
  display: inline-block;
  min-width: 1.2em;
  vertical-align: middle;
}

table.data tr.row-dragging td { opacity: 0.45; }
table.data tr.row-drag-over td {
  box-shadow: inset 0 2px 0 var(--accent);
}

table.data tr.row-empty td { background: #fff8f8; }
table.data tr.row-dup td { background: #fffbeb; }
table.data tr.row-empty.row-dup td { background: #fff5f0; }

.field-invalid {
  border-color: var(--danger) !important;
  background: #fef2f2 !important;
}

.section-title-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.section-title-row .section-title { margin: 0; }

.groups-summary {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.match-count-btn.match-count-warn {
  color: var(--medium);
  font-weight: 650;
}

.match-detail-tip {
  font-size: 12px;
  color: var(--medium);
  padding: 4px 0 8px;
}

.match-detail-actions {
  display: inline-flex;
  gap: 4px;
  flex-shrink: 0;
  margin-left: auto;
}

.muted { color: var(--muted); }
.ok { color: var(--ok); }
.err { color: var(--danger); }

.level {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
}

.level.high { background: var(--high-bg); color: var(--high); }
.level.medium { background: var(--medium-bg); color: var(--medium); }
.level.low { background: var(--low-bg); color: var(--low); }

.excerpt {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: #374151;
}

.level-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: var(--line-strong);
}
.level-dot.high { background: var(--high); box-shadow: 0 0 0 2px var(--high-bg); }
.level-dot.medium { background: var(--medium); box-shadow: 0 0 0 2px var(--medium-bg); }
.level-dot.low { background: var(--low); box-shadow: 0 0 0 2px var(--low-bg); }

tr.hit-row > td {
  vertical-align: middle;
}
tr.hit-row > td.hit-lead {
  width: 52px;
  padding-left: 6px;
  padding-right: 2px;
}
#hits-table th.hit-lead {
  padding-left: 6px;
  padding-right: 2px;
}
/* Level color bar sits against the action buttons (right of 群消息) */
tr.hit-row > td.col-actions {
  border-left: 3px solid transparent;
}
tr.hit-row.level-high > td.col-actions { border-left-color: var(--high); }
tr.hit-row.level-medium > td.col-actions { border-left-color: var(--medium); }
tr.hit-row.level-low > td.col-actions { border-left-color: var(--low); }
tr.hit-row.is-read > td:not(:last-child) { color: var(--muted); }
tr.hit-row.is-read td.excerpt { color: #9ca3af; }
tr.hit-row.is-open > td {
  border-bottom-color: transparent;
}

td.hit-lead {
  vertical-align: middle;
}
.hit-lead-inner {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  white-space: nowrap;
  line-height: 1;
}

.status-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  flex-shrink: 0;
}
.status-ico .i {
  width: 13px;
  height: 13px;
}
.status-ico.open {
  color: #047857;
  background: #ecfdf5;
}
.status-ico.done {
  color: #6b7280;
  background: #f3f4f6;
}
.status-ico.ignored {
  color: #9ca3af;
  background: #f9fafb;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 650;
  background: #f3f4f6;
  color: #4b5563;
}
.status-pill.open { background: #ecfdf5; color: #047857; }
.status-pill.done { background: #eff6ff; color: #1d4ed8; }
.status-pill.ignored { background: #f3f4f6; color: #6b7280; }

.row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 4px;
  align-items: center;
  justify-content: center;
}

.tabs {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  border-bottom: 1px solid var(--line);
  margin-bottom: 18px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.tabs::-webkit-scrollbar {
  display: none;
}

.tabs button {
  appearance: none;
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-weight: 650;
  padding: 10px 14px;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  flex: 0 0 auto;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tabs button.active {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

.tab-panel {
  min-width: 0;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--shadow);
}

.panel + .panel { margin-top: 12px; }

.section-title {
  margin: 0 0 4px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hint {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
}

.grid2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

@media (max-width: 800px) {
  .grid2 { grid-template-columns: 1fr; }
  .topbar-inner {
    gap: 10px;
  }
  .top-meta { font-size: 11px; gap: 6px; }
}

.form-label {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-row {
  margin-bottom: 12px;
}

.form-row .field,
.form-row .select,
.form-row .textarea,
.stack .field,
.stack .select,
.stack .textarea {
  width: 100%;
  display: block;
}

/* Rule card — collapsible summary + sectioned form */
.rule-card {
  padding: 0;
  overflow: hidden;
}

.rule-card.is-open {
  /* Allow field-help tips to escape the card without being clipped. */
  overflow: visible;
}

.rule-summary {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px 8px 8px;
}

.rule-summary-main {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 4px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.rule-summary-main:hover {
  background: #f3f4f6;
}

.rule-chevron {
  flex: 0 0 auto;
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}

.rule-card.is-open .rule-chevron {
  transform: rotate(90deg);
}

.rule-index {
  flex: 0 0 auto;
  min-width: 28px;
  height: 28px;
  padding: 0 7px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: #eef1f4;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 12px;
  line-height: 1;
  user-select: none;
}

.rule-summary-name {
  flex: 0 1 auto;
  max-width: 160px;
  font-weight: 650;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-level-pill {
  flex: 0 0 auto;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.rule-level-pill.high {
  color: var(--high);
  background: var(--high-bg);
}

.rule-level-pill.medium {
  color: var(--medium);
  background: var(--medium-bg);
}

.rule-level-pill.low {
  color: var(--low);
  background: var(--low-bg);
}

.rule-summary-kw {
  flex: 1;
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.rule-body {
  display: none;
  padding: 0 14px 14px;
  border-top: 1px solid var(--line);
}

.rule-card.is-open .rule-body {
  display: block;
}

.rule-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 3fr) repeat(3, minmax(0, 1fr));
  gap: 12px;
  padding-top: 14px;
}

.rule-toolbar .form-row {
  margin-bottom: 0;
}

.rule-name {
  font-weight: 600;
}

.rule-level {
  width: 100%;
}

.rule-section {
  padding-top: 14px;
}

.rule-section + .rule-section {
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.rule-section-label {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: var(--muted);
  text-transform: none;
}

.rule-section .form-row {
  margin-bottom: 12px;
}

.rule-section .form-row:last-child {
  margin-bottom: 0;
}

.rule-scope-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 12px;
}

.rule-scope-grid .form-row {
  margin-bottom: 0;
}

.scope-field-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.scope-field-row .field.grow {
  flex: 1;
  min-width: 0;
}

.scope-field-row .btn {
  flex-shrink: 0;
}

.scope-picker-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background: rgba(15, 23, 42, 0.42);
}

.scope-picker-overlay[hidden] {
  display: none;
}

.scope-picker-card {
  width: min(520px, 100%);
  max-height: min(640px, calc(100vh - 48px));
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  border: 1px solid var(--line);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.scope-picker-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px 8px;
}

.scope-picker-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.scope-picker-tools {
  padding: 0 16px 10px;
  margin: 0;
}

.scope-picker-list {
  margin: 0 16px;
  flex: 1;
  min-height: 180px;
  max-height: none;
}

.scope-picker-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
}

.scope-picker-item:last-child {
  border-bottom: none;
}

.scope-picker-item:hover {
  background: #f9fafb;
}

.scope-picker-item input {
  margin-top: 3px;
  flex-shrink: 0;
}

.scope-picker-item-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.scope-picker-item-title {
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.scope-picker-item-sub {
  font-size: 12px;
  word-break: break-all;
}

.scope-picker-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 600;
  color: #1d4ed8;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  padding: 0 6px;
  line-height: 18px;
}

.scope-picker-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px 14px;
  border-top: 1px solid var(--line);
  background: #fafafa;
}

.scope-picker-actions {
  display: flex;
  gap: 8px;
}

.label-hint {
  font-weight: 500;
  color: #9ca3af;
  margin-left: 4px;
}

.field-help {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
  vertical-align: -1px;
  cursor: help;
  outline: none;
}

.field-help-icon {
  box-sizing: border-box;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  border: 1px solid var(--line-strong);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 12px;
  text-align: center;
  background: #fff;
  user-select: none;
}

.field-help:hover .field-help-icon,
.field-help:focus .field-help-icon,
.field-help:focus-visible .field-help-icon {
  border-color: var(--accent);
  color: var(--accent);
}

.field-help-tip {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 7px);
  transform: translateX(calc(-50% + var(--tip-shift, 0px)));
  z-index: 40;
  width: max-content;
  max-width: min(280px, calc(100vw - 24px));
  padding: 8px 10px;
  border-radius: 8px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  box-shadow: 0 8px 20px rgba(16, 24, 40, 0.18);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.12s ease;
  white-space: normal;
  text-align: left;
}

.field-help-tip::after {
  content: "";
  position: absolute;
  top: 100%;
  left: calc(50% - var(--tip-shift, 0px));
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: #111827;
}

.field-help:hover .field-help-tip,
.field-help:focus .field-help-tip,
.field-help:focus-visible .field-help-tip {
  opacity: 1;
  visibility: visible;
}

.rule-advanced > summary .field-help {
  margin-left: 2px;
}

.rule-advanced {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.rule-advanced > summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  user-select: none;
}

.rule-advanced > summary::-webkit-details-marker {
  display: none;
}

.rule-advanced > summary::before {
  content: "";
  width: 0;
  height: 0;
  border-left: 5px solid var(--muted);
  border-top: 4px solid transparent;
  border-bottom: 4px solid transparent;
  transition: transform 0.15s ease;
}

.rule-advanced[open] > summary::before {
  transform: rotate(90deg);
}

.rule-advanced-body {
  margin-top: 10px;
}

.rule-advanced .textarea {
  width: 100%;
  min-height: 72px;
  resize: vertical;
}

.about-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  align-items: center;
  margin-bottom: 14px;
}

.about-meta .v {
  font-weight: 650;
}

.update-notes {
  margin: 12px 0 0;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  font-size: 13px;
  color: var(--text);
  max-height: 160px;
  overflow: auto;
}

@media (max-width: 800px) {
  .rule-summary-name {
    max-width: 100px;
  }
  .rule-toolbar {
    grid-template-columns: 1fr 1fr;
  }
  .rule-toolbar .rule-name-row {
    grid-column: 1 / -1;
  }
  .rule-scope-grid {
    grid-template-columns: 1fr;
  }
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0;
  max-width: 420px;
}

.stack > .btn,
.form-actions {
  margin-top: 4px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.login-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 16px;
  background:
    radial-gradient(900px 420px at 10% -10%, #ccfbf1 0%, transparent 55%),
    radial-gradient(700px 380px at 100% 0%, #e0f2fe 0%, transparent 50%),
    var(--bg);
}

.login-card {
  width: 100%;
  max-width: 360px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 32px 28px 28px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
}

.login-brand {
  justify-content: center;
  margin-bottom: 28px;
  font-size: 18px;
}

.login-brand .brand-mark {
  width: 36px;
  height: 36px;
  font-size: 16px;
  border-radius: 10px;
  line-height: 1;
}

.login-brand img.brand-mark {
  width: 36px;
  height: 36px;
  border-radius: 10px;
}

.login-error {
  margin: 0 0 14px;
  text-align: center;
  font-size: 13px;
}

.login-submit {
  width: 100%;
  margin-top: 8px;
  min-height: 40px;
}

/* 卡片与其它 tab 同宽；仅内部表单限宽，避免「发布/账号」变窄 */
.account-panel .stack {
  max-width: 420px;
}

.account-panel .section-block + .section-block,
.account-panel .section-title.section-divider {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.inline-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.rule-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.rule-card + .rule-card { margin-top: 8px; }

.rules-add-bar {
  margin-top: 16px;
  margin-bottom: 4px;
}

.chat-list {
  max-height: 280px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.chat-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}

.chat-item:last-child { border-bottom: none; }
.chat-item:hover { background: #f9fafb; }

.match-count-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--accent, #2563eb);
  font: inherit;
  font-weight: 600;
  font-size: 13px;
  padding: 0;
  cursor: pointer;
  white-space: nowrap;
}
.match-count-btn:hover { text-decoration: underline; }
.match-count { font-size: 13px; white-space: nowrap; }
.match-detail-row > td {
  padding: 0 12px 12px !important;
  background: #f8fafc;
  border-top: none !important;
}
.match-detail-panel {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 6px 10px;
}
.match-detail-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.match-detail-item:last-child { border-bottom: none; }
.match-detail-name { font-weight: 600; word-break: break-all; min-width: 0; flex: 1; }
.match-detail-id { font-size: 12px; flex-shrink: 0; max-width: 28%; overflow: hidden; text-overflow: ellipsis; }

.footer-actions {
  position: sticky;
  bottom: 0;
  margin-top: 18px;
  padding: 12px 0 0;
  background: linear-gradient(180deg, transparent, var(--bg) 28%);
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--muted);
}

.page-head-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

.btn.monitor-toggle {
  gap: 8px;
}
.btn.monitor-toggle .dot {
  margin-right: 0;
}
.btn.monitor-toggle:disabled {
  opacity: 0.7;
  cursor: wait;
}

.status-item.status-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.status-item.status-link:hover {
  background: #f9fafb;
}

.v.muted-v { color: var(--muted); font-weight: 600; }

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}

.pager-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.pager-size-label {
  font-size: 12px;
}

.select.sm {
  min-height: 28px;
  padding: 2px 8px;
  font-size: 12px;
  width: auto;
  min-width: 72px;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
  pointer-events: none;
}

.expand-btn {
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  line-height: 1;
  flex-shrink: 0;
}
.expand-btn:hover { color: var(--text); }

tr.detail-row > td {
  padding-top: 0;
  border-left: 3px solid transparent;
  vertical-align: top;
}
tr.detail-row.level-high > td { border-left-color: var(--high); }
tr.detail-row.level-medium > td { border-left-color: var(--medium); }
tr.detail-row.level-low > td { border-left-color: var(--low); }

.hit-detail {
  padding: 4px 12px 14px;
  background: #f9fafb;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  font-size: 13px;
}
.hit-detail .hit-meta-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 18px;
  align-items: baseline;
}
.hit-detail .hit-meta-top .k {
  min-width: 0;
  margin-right: 4px;
}
.hit-detail .k {
  display: inline-block;
  min-width: 52px;
  color: var(--muted);
  font-size: 12px;
}
.hit-content {
  margin: 8px 0 0;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 13px;
  max-height: 280px;
  overflow: auto;
}
.hit-body { margin-top: 8px; }
.msg-card {
  padding: 12px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 6px;
}
.msg-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.msg-type {
  display: inline-block;
  padding: 1px 8px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #374151;
  border: 1px solid var(--line);
  font-size: 12px;
  font-weight: 600;
}
.msg-source {
  color: var(--text);
  font-weight: 600;
  font-size: 13px;
}
.msg-title {
  font-size: 14px;
  line-height: 1.45;
  color: var(--text);
}
.msg-media {
  display: flex;
  align-items: center;
}
.msg-emoji {
  max-width: 120px;
  max-height: 120px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 6px;
  background: #f9fafb;
  border: 1px solid var(--line);
}
.msg-summary {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.4;
}
.msg-file {
  font-size: 14px;
  color: var(--text);
  line-height: 1.4;
  word-break: break-all;
}
.msg-quote {
  font-size: 13px;
  color: var(--muted);
  border-left: 3px solid var(--line);
  padding: 4px 0 4px 10px;
  line-height: 1.4;
}
.msg-link {
  font-size: 12px;
  word-break: break-all;
  color: #1d4ed8;
  text-decoration: none;
}
.msg-link:hover { text-decoration: underline; }
.msg-raw {
  margin-top: 8px;
  font-size: 12px;
  color: var(--muted);
}
.msg-raw > summary {
  cursor: pointer;
  user-select: none;
}
.hit-content-raw {
  max-height: 200px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 12px;
}

.more-menu {
  position: relative;
  display: inline-block;
}
.more-menu > summary {
  list-style: none;
  cursor: pointer;
}
.more-menu > summary::-webkit-details-marker { display: none; }
.more-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 4px);
  z-index: 5;
  min-width: 96px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 4px;
  display: flex;
  flex-direction: column;
}
.more-menu-panel button {
  border: none;
  background: transparent;
  text-align: left;
  padding: 6px 10px;
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: 100%;
}
.more-menu-panel button:hover { background: var(--bg); }
.danger-text { color: var(--danger); }
.more-menu-panel button.danger-text { color: var(--danger); }

.toolbar-more > summary {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
}
.toolbar-more .more-menu-panel {
  min-width: 128px;
}

td.excerpt { cursor: pointer; }

#new-hit-banner {
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 0;
}

/* Inline icons (mask SVG, tinted by currentColor) */
.i {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: -0.15em;
  background-color: currentColor;
  -webkit-mask: var(--i) center / contain no-repeat;
  mask: var(--i) center / contain no-repeat;
}
.i.sm { width: 12px; height: 12px; }
.i.lg { width: 16px; height: 16px; }

.i-bell { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 8a6 6 0 0 1 12 0c0 7 3 9 3 9H3s3-2 3-9'/%3E%3Cpath d='M10.3 21a1.94 1.94 0 0 0 3.4 0'/%3E%3C/svg%3E"); }
.i-gear { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
.i-layout { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='18' height='18' x='3' y='3' rx='2'/%3E%3Cpath d='M3 9h18'/%3E%3Cpath d='M9 21V9'/%3E%3C/svg%3E"); }
.i-play { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolygon points='6 3 20 12 6 21 6 3'/%3E%3C/svg%3E"); }
.i-stop { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='6' y='6' width='12' height='12' rx='1'/%3E%3C/svg%3E"); }
.i-refresh { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 0 1 9-9 9.75 9.75 0 0 1 6.74 2.74L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3Cpath d='M21 12a9 9 0 0 1-9 9 9.75 9.75 0 0 1-6.74-2.74L3 16'/%3E%3Cpath d='M8 16H3v5'/%3E%3C/svg%3E"); }
.i-download { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='7 10 12 15 17 10'/%3E%3Cline x1='12' x2='12' y1='15' y2='3'/%3E%3C/svg%3E"); }
.i-upload { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4'/%3E%3Cpolyline points='17 8 12 3 7 8'/%3E%3Cline x1='12' x2='12' y1='3' y2='15'/%3E%3C/svg%3E"); }
.i-logout { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 21H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2h4'/%3E%3Cpolyline points='16 17 21 12 16 7'/%3E%3Cline x1='21' x2='9' y1='12' y2='12'/%3E%3C/svg%3E"); }
.i-login { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4'/%3E%3Cpolyline points='10 17 15 12 10 7'/%3E%3Cline x1='15' x2='3' y1='12' y2='12'/%3E%3C/svg%3E"); }
.i-check { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.i-ban { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='m4.9 4.9 14.2 14.2'/%3E%3C/svg%3E"); }
.i-rotate { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 12a9 9 0 1 0 9-9 9.75 9.75 0 0 0-6.74 2.74L3 8'/%3E%3Cpath d='M3 3v5h5'/%3E%3C/svg%3E"); }
.i-trash { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6h18'/%3E%3Cpath d='M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6'/%3E%3Cpath d='M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2'/%3E%3C/svg%3E"); }
.i-plus { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14'/%3E%3Cpath d='M12 5v14'/%3E%3C/svg%3E"); }
.i-users { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='9' cy='7' r='4'/%3E%3Cpath d='M22 21v-2a4 4 0 0 0-3-3.87'/%3E%3Cpath d='M16 3.13a4 4 0 0 1 0 7.75'/%3E%3C/svg%3E"); }
.i-list { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='8' x2='21' y1='6' y2='6'/%3E%3Cline x1='8' x2='21' y1='12' y2='12'/%3E%3Cline x1='8' x2='21' y1='18' y2='18'/%3E%3Cline x1='3' x2='3.01' y1='6' y2='6'/%3E%3Cline x1='3' x2='3.01' y1='12' y2='12'/%3E%3Cline x1='3' x2='3.01' y1='18' y2='18'/%3E%3C/svg%3E"); }
.i-key { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m15.5 7.5 2.3 2.3a1 1 0 0 0 1.4 0l2.1-2.1a1 1 0 0 0 0-1.4L19 4'/%3E%3Cpath d='m21 2-9.6 9.6'/%3E%3Ccircle cx='7.5' cy='15.5' r='5.5'/%3E%3C/svg%3E"); }
.i-info { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4'/%3E%3Cpath d='M12 8h.01'/%3E%3C/svg%3E"); }
.i-chat { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7.9 20A9 9 0 1 0 4 16.1L2 22z'/%3E%3C/svg%3E"); }
.i-chevron-down { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); }
.i-chevron-up { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m18 15-6-6-6 6'/%3E%3C/svg%3E"); }
.i-save { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15.2 3a2 2 0 0 1 1.4.6l3.8 3.8a2 2 0 0 1 .6 1.4V19a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2V5a2 2 0 0 1 2-2z'/%3E%3Cpath d='M17 21v-7a1 1 0 0 0-1-1H8a1 1 0 0 0-1 1v7'/%3E%3Cpath d='M7 3v4a1 1 0 0 0 1 1h7'/%3E%3C/svg%3E"); }
.i-more { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='12' cy='12' r='1'/%3E%3Ccircle cx='19' cy='12' r='1'/%3E%3Ccircle cx='5' cy='12' r='1'/%3E%3C/svg%3E"); }
.i-chart { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 3v18h18'/%3E%3Cpath d='M18 17V9'/%3E%3Cpath d='M13 17V5'/%3E%3Cpath d='M8 17v-3'/%3E%3C/svg%3E"); }
.i-monitor { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect width='20' height='14' x='2' y='3' rx='2'/%3E%3Cline x1='8' x2='16' y1='21' y2='21'/%3E%3Cline x1='12' x2='12' y1='17' y2='21'/%3E%3C/svg%3E"); }
.i-file { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7Z'/%3E%3Cpath d='M14 2v4a2 2 0 0 0 2 2h4'/%3E%3C/svg%3E"); }
.i-user { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M19 21v-2a4 4 0 0 0-4-4H9a4 4 0 0 0-4 4v2'/%3E%3Ccircle cx='12' cy='7' r='4'/%3E%3C/svg%3E"); }
.i-search { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E"); }
.i-package { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M11 21.73a2 2 0 0 0 2 0l7-4A2 2 0 0 0 21 16V8a2 2 0 0 0-1-1.73l-7-4a2 2 0 0 0-2 0l-7 4A2 2 0 0 0 3 8v8a2 2 0 0 0 1 1.73z'/%3E%3Cpath d='M12 22V12'/%3E%3Cpolyline points='3.29 7 12 12 20.71 7'/%3E%3Cpath d='m7.5 4.27 9 5.15'/%3E%3C/svg%3E"); }
.i-spark { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.937 15.5A2 2 0 0 0 8.5 14.063l-6.135-1.582a.5.5 0 0 1 0-.962L8.5 9.936A2 2 0 0 0 9.937 8.5l1.582-6.135a.5.5 0 0 1 .963 0L14.063 8.5A2 2 0 0 0 15.5 9.937l6.135 1.581a.5.5 0 0 1 0 .964L15.5 14.063a2 2 0 0 0-1.437 1.437l-1.582 6.135a.5.5 0 0 1-.963 0z'/%3E%3C/svg%3E"); }
.i-eye { --i: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.062 12.348a1 1 0 0 1 0-.696 10.75 10.75 0 0 1 19.876 0 1 1 0 0 1 0 .696 10.75 10.75 0 0 1-19.876 0'/%3E%3Ccircle cx='12' cy='12' r='3'/%3E%3C/svg%3E"); }
