:root {
  color-scheme: light;
  --bg: #f5f5f7;
  --ink: #1d1d1f;
  --muted: #7a7a7a;
  --line: #e0e0e0;
  --divider: #f0f0f0;
  --surface: #ffffff;
  --surface-soft: #fafafc;
  --surface-dark: #000000;
  --tile-dark: #272729;
  --accent: #0066cc;
  --accent-focus: #0071e3;
  --accent-on-dark: #2997ff;
  --success: #006b3f;
  --danger: #b3261e;
  --font-display: "SF Pro Display", system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  --font-text: "SF Pro Text", system-ui, -apple-system, BlinkMacSystemFont, "Noto Sans SC", "Microsoft YaHei", sans-serif;
  font-family: var(--font-text);
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
}

button,
input,
select {
  font: inherit;
}

button {
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}

button:hover {
  background: var(--accent-focus);
}

button:active {
  transform: scale(0.95);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

input {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 18px;
  color: var(--ink);
  background: #fff;
}

textarea {
  width: 100%;
  min-height: 120px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 16px;
  color: var(--ink);
  background: #fff;
  resize: vertical;
  font: inherit;
}

select {
  width: 100%;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 38px 0 16px;
  color: var(--ink);
  background: #fff;
}

input[type="checkbox"] {
  width: 16px;
  min-width: 16px;
  min-height: 16px;
  padding: 0;
  border-radius: 4px;
  accent-color: var(--accent);
}

input:focus,
textarea:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--accent-focus);
  outline-offset: 2px;
}

label {
  display: block;
  margin: 16px 0 7px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.29;
}

.app-shell {
  min-height: 100vh;
}

.is-loading {
  cursor: wait;
}

.login-view {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--bg);
}

.global-nav {
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 0 32px;
  color: #fff;
  background: var(--surface-dark);
  font-size: 12px;
  line-height: 1;
}

.nav-brand,
.nav-meta {
  white-space: nowrap;
}

.nav-brand {
  font-weight: 600;
}

.nav-meta {
  color: rgba(255, 255, 255, 0.72);
}

.login-surface {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 430px);
  min-height: calc(100vh - 44px);
}

.login-tile {
  min-height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 80px;
  background: var(--surface);
}

.login-tile h1 {
  max-width: 560px;
  margin: 28px 0 0;
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 600;
  line-height: 1.07;
  letter-spacing: 0;
}

.login-tile p {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 24px;
  line-height: 1.5;
}

.login-panel {
  align-self: center;
  width: min(100% - 48px, 380px);
  margin: 48px auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  background: var(--surface);
}

.brand-mark {
  width: 34px;
  height: 34px;
  border: 7px solid var(--accent);
  border-right-color: var(--accent-on-dark);
  border-radius: 50%;
}

.login-panel h2,
.toolbar h1,
.edit-dialog h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: 34px;
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: 0;
}

.login-panel button,
#saveButton {
  width: 100%;
  margin-top: 20px;
}

.form-message {
  min-height: 21px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: 14px;
  line-height: 1.43;
}

.form-message.is-info {
  color: var(--muted);
}

.form-message:empty {
  margin-top: 0;
}

.workspace {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 44px 52px minmax(0, 1fr);
  background: var(--bg);
}

.workspace-nav {
  position: sticky;
  top: 0;
  z-index: 3;
}

.brand-line {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  color: #fff;
  font-weight: 600;
  white-space: nowrap;
}

.brand-line .brand-mark {
  width: 18px;
  height: 18px;
  border-width: 4px;
}

.account-line {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
}

#currentUser {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-button {
  min-height: 30px;
  padding: 0 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: transparent;
  font-size: 12px;
}

.nav-button:hover {
  background: rgba(255, 255, 255, 0.12);
}

.sub-nav {
  position: sticky;
  top: 44px;
  z-index: 2;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  padding: 0 32px;
  background: rgba(245, 245, 247, 0.84);
  backdrop-filter: saturate(180%) blur(20px);
}

.sub-nav span {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.19;
}

.sub-nav-tabs {
  display: flex;
  align-items: center;
  gap: 6px;
}

.sub-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.sub-nav-tab {
  min-height: 34px;
  padding: 0 16px;
  color: var(--muted);
  border: 0;
  background: transparent;
  font-size: 14px;
}

.sub-nav-tab:hover,
.sub-nav-tab.is-active {
  color: var(--ink);
  background: var(--surface);
}

.ghost-button,
.secondary-button,
.icon-button {
  color: var(--accent);
  border: 1px solid var(--accent);
  background: transparent;
}

.ghost-button:hover,
.secondary-button:hover,
.icon-button:hover {
  color: #fff;
  background: var(--accent);
}

.secondary-button {
  min-height: 34px;
  padding: 0 16px;
  font-size: 14px;
}

.force-refresh-button {
  border-color: rgba(179, 38, 30, 0.42);
  color: var(--danger);
}

.force-refresh-button:hover {
  border-color: var(--danger);
  background: var(--danger);
}

.content-pane {
  min-width: 0;
  width: min(100%, 1440px);
  margin: 0 auto;
  padding: 32px;
}

.toolbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  margin-bottom: 18px;
}

.toolbar h1 {
  font-size: 40px;
  line-height: 1.1;
}

.toolbar p {
  margin: 8px 0 0;
  color: var(--muted);
}

.dashboard-updated {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.43;
  text-align: right;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}

.site-filters {
  display: grid;
  grid-template-columns: minmax(140px, 160px) minmax(200px, 1.3fr) minmax(150px, 1fr) minmax(120px, 0.7fr) minmax(130px, 140px) minmax(116px, auto) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 24px;
  border: 1px solid var(--divider);
  border-radius: 8px;
  padding: 22px 24px;
  background: var(--surface);
}

.inline-check {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  white-space: nowrap;
}

.inline-check input {
  flex: 0 0 auto;
}

.site-filters input,
.site-filters select {
  color: var(--ink);
  font-size: 14px;
}

.site-filters input::placeholder {
  color: #a1a1a6;
}

.search-field {
  position: relative;
}

.search-field span {
  position: absolute;
  left: 14px;
  top: 50%;
  z-index: 1;
  color: var(--muted);
  font-size: 18px;
  line-height: 1;
  transform: translateY(-52%);
  pointer-events: none;
}

.search-field input {
  padding-left: 38px;
}

.alert,
.loading-strip,
.empty-state {
  margin-bottom: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 16px;
  background: var(--surface);
  font-size: 14px;
}

.alert {
  color: var(--danger);
  border-color: rgba(179, 38, 30, 0.22);
}

.table-wrap {
  overflow-wrap: anywhere;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.site-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 1180px;
}

.site-table th,
.site-table td {
  border-bottom: 1px solid var(--line);
  padding: 15px 18px;
  text-align: left;
  vertical-align: top;
}

.site-table th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.site-table th.sortable-col {
  padding: 8px 10px;
}

.sort-button {
  width: 100%;
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  padding: 0 8px;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  text-align: right;
}

.sort-button:hover,
.sort-button.is-active {
  color: var(--accent);
  background: rgba(0, 102, 204, 0.08);
}

.sort-icon {
  width: 14px;
  display: inline-grid;
  place-items: center;
  color: inherit;
  font-size: 12px;
  line-height: 1;
}

.site-table .select-col,
.site-table .select-cell {
  width: 44px;
  text-align: center;
  vertical-align: middle;
}

.site-table tr:last-child td {
  border-bottom: 0;
}

.site-identity {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 220px;
}

.site-avatar {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: #fff;
  background: var(--accent);
  font-size: 16px;
  font-weight: 600;
}

.site-copy {
  min-width: 0;
}

.site-name {
  font-weight: 600;
}

.site-meta {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.site-kind {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}

.port-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 150px;
}

.port-chip,
.state-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--divider);
  border-radius: 999px;
  padding: 0 10px;
  background: var(--surface-soft);
  font-size: 12px;
  white-space: nowrap;
}

.port-chip {
  color: var(--accent);
  border-color: rgba(0, 102, 204, 0.2);
  background: rgba(0, 102, 204, 0.08);
}

.plain-value,
.muted-value,
.metric-value {
  display: inline-block;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.4;
  white-space: nowrap;
}

.muted-value {
  color: var(--muted);
}

.metric-value {
  min-width: 56px;
  color: #4b4b4f;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.cluster-stack {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 86px;
}

.cluster-meta {
  color: var(--muted);
  font-size: 12px;
}

.state-pill.is-off {
  color: var(--muted);
}

.state-pill.is-on {
  color: var(--success);
  border-color: rgba(0, 107, 63, 0.22);
  background: rgba(0, 107, 63, 0.06);
}

.action-cell .secondary-button {
  min-width: 60px;
}

.table-footer {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  padding: 20px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.table-footer span {
  white-space: nowrap;
}

.page-size-select {
  width: auto;
  min-width: 112px;
  min-height: 34px;
  padding: 0 30px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.pager-button {
  width: 34px;
  min-width: 34px;
  min-height: 34px;
  padding: 0;
  color: var(--accent);
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  font-size: 22px;
  line-height: 1;
}

.pager-button:hover {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.pager-button:disabled {
  color: #a1a1a6;
  background: transparent;
}

.table-footer .page-index {
  min-width: 54px;
  min-height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 8px;
  padding: 0 10px;
  color: #fff;
  background: var(--accent);
}

.blacklist-layout {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.blacklist-editor,
.blacklist-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
}

.blacklist-editor {
  position: sticky;
  top: 112px;
  padding: 20px;
}

.blacklist-editor label:first-child {
  margin-top: 0;
}

.blacklist-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.blacklist-editor #blacklistAddButton {
  width: 100%;
  margin-top: 18px;
}

.blacklist-main {
  min-width: 0;
  padding: 18px;
}

.blacklist-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(130px, 160px) auto auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}

.blacklist-table {
  min-width: 860px;
}

.blacklist-value {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 180px;
}

.blacklist-value strong {
  font-size: 14px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.blacklist-value span {
  color: var(--muted);
  font-size: 12px;
}

.blacklist-level {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(0, 102, 204, 0.18);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--accent);
  background: rgba(0, 102, 204, 0.08);
  font-size: 12px;
  white-space: nowrap;
}

.blacklist-level.is-critical,
.blacklist-level.is-fatal {
  color: var(--danger);
  border-color: rgba(179, 38, 30, 0.22);
  background: rgba(179, 38, 30, 0.08);
}

.blacklist-level.is-error {
  color: #8a4b00;
  border-color: rgba(138, 75, 0, 0.22);
  background: rgba(138, 75, 0, 0.08);
}

.blacklist-api-panel {
  margin-top: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  background: var(--surface);
}

.api-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.api-panel-header h2,
.api-doc-block h3 {
  margin: 0;
  color: var(--ink);
  font-size: 16px;
  font-weight: 600;
  letter-spacing: 0;
}

.api-panel-header p {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.api-doc-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.api-doc-block {
  min-width: 0;
}

.api-doc-block h3 {
  margin-bottom: 10px;
  font-size: 14px;
}

.api-param-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 13px;
}

.api-param-table th,
.api-param-table td {
  border-bottom: 1px solid var(--line);
  padding: 9px 10px;
  text-align: left;
  vertical-align: top;
}

.api-param-table th {
  color: var(--muted);
  background: var(--surface-soft);
  font-weight: 600;
}

.api-param-table tr:last-child td {
  border-bottom: 0;
}

.api-doc-block pre {
  min-height: 168px;
  margin: 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #1d1d1f;
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.55;
}

.api-doc-block code,
.api-panel-header code,
.api-param-table code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.credential-api-test {
  margin-top: 18px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
}

.api-test-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.api-test-header h3,
.api-test-result h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0;
}

.api-test-header p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.43;
}

.api-test-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  white-space: nowrap;
}

.api-test-status.is-ok {
  color: var(--success);
  border-color: rgba(0, 107, 63, 0.22);
  background: rgba(0, 107, 63, 0.06);
}

.api-test-status.is-error {
  color: var(--danger);
  border-color: rgba(179, 38, 30, 0.22);
  background: rgba(179, 38, 30, 0.08);
}

.api-test-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.api-test-form label {
  margin: 0;
}

.api-test-form input,
.api-test-form select {
  margin-top: 7px;
  font-size: 14px;
}

.api-test-form button {
  margin-top: 14px;
}

.api-test-result {
  margin-top: 14px;
}

.api-test-result pre {
  min-height: 136px;
  margin: 10px 0 0;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  color: #1d1d1f;
  background: var(--surface-soft);
  font-size: 12px;
  line-height: 1.55;
}

.api-test-result code {
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  letter-spacing: 0;
}

.danger-button {
  border-color: rgba(179, 38, 30, 0.36);
  color: var(--danger);
}

.danger-button:hover {
  border-color: var(--danger);
  background: var(--danger);
}

.edit-dialog {
  width: min(620px, calc(100% - 28px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  color: var(--ink);
  background: var(--surface);
}

.edit-dialog::backdrop {
  background: rgba(29, 29, 31, 0.42);
}

.edit-dialog form {
  padding: 22px;
}

.edit-dialog header,
.edit-dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}

.edit-dialog h2 {
  margin-top: 0;
  font-size: 28px;
}

.edit-dialog header p {
  margin: 6px 0 0;
  color: var(--muted);
}

.icon-button {
  width: 40px;
  min-width: 40px;
  min-height: 40px;
  padding: 0;
  border-radius: 50%;
  font-size: 24px;
  line-height: 1;
}

fieldset {
  margin: 18px 0 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
}

legend {
  padding: 0 6px;
  font-weight: 600;
}

.switch-line {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: var(--ink);
}

.switch-line input {
  width: 18px;
  min-height: 18px;
  border-radius: 4px;
}

.allowed-line {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.allowed-line button {
  min-height: 28px;
  padding: 0 10px;
  color: var(--accent);
  border: 1px solid rgba(0, 102, 204, 0.28);
  background: transparent;
  font-size: 12px;
}

.allowed-hint {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 0 10px;
  color: var(--muted);
  background: var(--surface-soft);
  font-size: 12px;
  white-space: nowrap;
}

.edit-dialog footer {
  margin-top: 16px;
}

.edit-dialog footer button {
  width: 50%;
}

.edit-dialog footer #saveButton {
  width: 50%;
  margin-top: 0;
}

@media (max-width: 900px) {
  .login-surface {
    grid-template-columns: 1fr;
  }

  .login-tile {
    min-height: auto;
    padding: 64px 32px 40px;
  }

  .login-tile h1 {
    font-size: 40px;
  }

  .login-panel {
    align-self: start;
    margin-top: 0;
    margin-bottom: 40px;
  }

  .sub-nav .secondary-button {
    width: auto;
  }

  .site-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blacklist-layout {
    grid-template-columns: 1fr;
  }

  .blacklist-editor {
    position: static;
  }

  .blacklist-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .api-doc-grid {
    grid-template-columns: 1fr;
  }

  .api-test-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .workspace {
    grid-template-rows: 44px auto minmax(0, 1fr);
  }

  .content-pane,
  .global-nav,
  .sub-nav {
    padding: 16px;
  }

  .sub-nav {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .sub-nav-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .global-nav {
    padding-top: 0;
    padding-bottom: 0;
  }

  .login-tile {
    padding: 48px 24px 32px;
  }

  .login-tile h1 {
    font-size: 34px;
  }

  .login-tile p {
    font-size: 21px;
  }

  .login-panel {
    width: calc(100% - 32px);
    padding: 22px;
  }

  .toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .toolbar h1 {
    font-size: 34px;
  }

  .site-filters {
    grid-template-columns: 1fr;
    padding: 16px;
  }

  .blacklist-main {
    border: 0;
    padding: 0;
    background: transparent;
  }

  .blacklist-filters,
  .blacklist-form-grid {
    grid-template-columns: 1fr;
  }

  .table-wrap {
    border: 0;
    background: transparent;
  }

  .site-table,
  .site-table thead,
  .site-table tbody,
  .site-table tr,
  .site-table td {
    display: block;
    width: 100%;
    min-width: 0;
  }

  .site-table thead {
    display: none;
  }

  .site-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--surface);
  }

  .site-table td {
    border-bottom: 1px solid var(--line);
    padding: 12px;
  }

  .site-table td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
  }

  .site-table .select-cell {
    text-align: left;
  }

  .metric-value {
    text-align: left;
  }

  .table-footer {
    flex-wrap: wrap;
    justify-content: flex-start;
  }
}
