/* Clank operator console. Tokens copied from apps/web/app/styles.css (dark only, like the site). */
:root {
  --surface-0: #10191f;
  --surface-1: #17242c;
  --surface-2: #20313a;
  --surface-3: #2a3e48;
  --border-subtle: #ffffff12;
  --text-primary: #edf4f3;
  --text-secondary: #a7b8bf;
  --text-muted: #7f949c;
  --accent: #a0e5cf;
  --radius-control: 10px;
  --radius-panel: 16px;
  --line: #26343b;
  --gold: #d9b477;
  --danger: #f08a8a;
  --danger-fill: #b93b3b;
  --danger-fill-hover: #cc4747;
  --ok: #a0e5cf;
  /* Chart series (validated: dataviz categorical slots 1–2, dark steps, on --surface-1). */
  --series-hosted: #3987e5;
  --series-journal: #d95926;
  --grid: #ffffff14;
  color-scheme: dark;
  font-family:
    "DM Sans",
    ui-sans-serif,
    system-ui,
    -apple-system,
    "Segoe UI",
    sans-serif;
  color: var(--text-primary);
  background: var(--surface-0);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--surface-0);
  font-size: 14px;
  line-height: 1.5;
}
button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
h1,
h2,
h3,
p {
  margin: 0;
}
h1 {
  font-family: Manrope, "DM Sans", ui-sans-serif, system-ui, sans-serif;
  font-size: 30px;
  font-weight: 600;
  letter-spacing: -0.8px;
}
h2 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.3px;
}
h3 {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin: 18px 0 10px;
  letter-spacing: 0.1px;
}
code {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 1px 6px;
  overflow-wrap: anywhere;
}
.muted {
  color: var(--text-secondary);
}
.small {
  font-size: 12px;
}
.mono {
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
[hidden] {
  display: none !important;
}

/* Top bar */
.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 12px 28px;
  background: #0e181ef2;
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  font-size: 12px;
  letter-spacing: 2.3px;
}
.brand b {
  font-weight: 600;
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 36px;
  border: 1px solid var(--accent);
  border-radius: 10px;
  color: var(--accent);
  font-family: Manrope, "DM Sans", sans-serif;
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 0;
}
.topbar-server {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: 1;
  min-width: 0;
}
.topbar-right {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}
select {
  min-height: 38px;
  padding: 6px 34px 6px 12px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2)
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M1 1l4 4 4-4' fill='none' stroke='%23a7b8bf' stroke-width='1.5'/%3E%3C/svg%3E")
    no-repeat right 12px center;
  appearance: none;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 26px;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--border-subtle);
  background: var(--surface-1);
  color: var(--text-secondary);
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}
.pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  flex: none;
}
.pill.ok::before {
  background: var(--ok);
}
.pill.bad {
  color: var(--danger);
}
.pill.bad::before {
  background: var(--danger);
}
.pill.warn::before {
  background: var(--gold);
}

/* Buttons */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 38px;
  padding: 8px 14px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  color: var(--text-primary);
  font-weight: 500;
  white-space: nowrap;
}
.button:hover:not(:disabled) {
  background: var(--surface-3);
}
.button.primary {
  background: var(--accent);
  border-color: var(--accent);
  color: #0d1a17;
  font-weight: 600;
}
.button.primary:hover:not(:disabled) {
  background: #b6eedb;
}
.button.danger {
  background: var(--danger-fill);
  border-color: #e0666680;
  color: #fff;
  font-weight: 600;
}
.button.danger:hover:not(:disabled) {
  background: var(--danger-fill-hover);
}
.button.big {
  min-height: 48px;
  padding: 10px 22px;
  font-size: 15px;
}
.button.small {
  min-height: 30px;
  padding: 4px 10px;
  font-size: 12px;
}
.button.ghost-danger {
  color: var(--danger);
}
.text-button {
  border: 0;
  background: none;
  color: var(--accent);
  padding: 6px 4px;
  font-weight: 500;
}
.text-button:hover {
  text-decoration: underline;
}

/* Layout */
main {
  max-width: 1440px;
  margin: 0 auto;
  padding: 22px 28px 60px;
}
.console {
  display: grid;
  gap: 20px;
}
.grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.panel {
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 22px 24px;
  min-width: 0;
}
.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}
.panel-head p {
  margin-top: 4px;
}
.card {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 16px;
  min-width: 0;
}
.card h3:first-child {
  margin-top: 0;
}

/* Stats */
.stats {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}
.stats.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.stat {
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
  padding: 12px 14px;
  min-width: 0;
}
.stat .label {
  display: block;
  color: var(--text-secondary);
  font-size: 12px;
}
.stat .value {
  display: block;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 24px;
  font-weight: 600;
  letter-spacing: -0.5px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}
.stat .value small {
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.stat .detail {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.stat.alert {
  border-color: #f08a8a55;
}
.stat.alert .value {
  color: var(--danger);
}

/* Hosting controls */
.controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 28px;
  margin: 18px 0 16px;
  padding: 14px 16px;
  background: var(--surface-0);
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
.control-group {
  display: flex;
  gap: 8px;
}
.switch {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.switch-track {
  position: relative;
  flex: none;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--surface-3);
  border: 1px solid var(--border-subtle);
  transition: background 0.15s;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition:
    transform 0.15s,
    background 0.15s;
}
.switch input:checked + .switch-track {
  background: #d9b47740;
  border-color: var(--gold);
}
.switch input:checked + .switch-track::after {
  transform: translateX(18px);
  background: var(--gold);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}
.switch input:disabled + .switch-track {
  opacity: 0.5;
}
.switch-text {
  display: grid;
  line-height: 1.3;
}
.switch-text small {
  color: var(--text-secondary);
  font-size: 12px;
}
.cap-form {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  margin-left: auto;
}
.cap-form label {
  display: grid;
  gap: 4px;
  font-size: 12px;
  color: var(--text-secondary);
}
.cap-form input {
  width: 110px;
}
.cap-form small {
  flex-basis: 100%;
  text-align: right;
}
input[type="number"],
input[type="text"],
input[type="password"],
input:not([type]) {
  min-height: 38px;
  padding: 7px 11px;
  border-radius: var(--radius-control);
  border: 1px solid var(--border-subtle);
  background: var(--surface-2);
  width: 100%;
  min-width: 0;
}
input::placeholder {
  color: var(--text-muted);
}
input.dirty {
  border-color: var(--gold);
}

/* Tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border-subtle);
  border-radius: 12px;
}
table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}
th,
td {
  text-align: left;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
th {
  color: var(--text-secondary);
  font-weight: 500;
  font-size: 12px;
  background: var(--surface-0);
  line-height: 1.3;
}
th small {
  color: var(--text-muted);
  font-weight: 400;
}
tbody tr:last-child td {
  border-bottom: 0;
}
tbody tr:hover td {
  background: #ffffff05;
}
.num {
  text-align: right;
  white-space: nowrap;
}
.jobs td:first-child b {
  display: block;
  font-weight: 600;
}
.jobs .id {
  color: var(--text-muted);
  font-size: 11px;
}
.jobs .error {
  max-width: 220px;
  color: var(--danger);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.jobs .row-actions {
  display: flex;
  gap: 6px;
  justify-content: flex-end;
}
.jobs .empty {
  text-align: center;
  color: var(--text-secondary);
  padding: 28px;
}
.state {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  white-space: nowrap;
}
.state::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
}
.state.running::before {
  background: var(--ok);
}
.state.hold::before {
  background: var(--gold);
}
.state.stopped {
  color: var(--text-secondary);
}
.state.stopped::before {
  background: var(--text-muted);
}
.phase {
  display: block;
  color: var(--text-muted);
  font-size: 11px;
}

/* Notices */
.notice {
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 13px;
  margin-bottom: 14px;
}
.notice.warn {
  border-color: #d9b47755;
  color: var(--gold);
}
.notice.error {
  border-color: #f08a8a55;
  color: var(--danger);
}
/* Model-provider pause: the provider's real answer, for operators only. */
.provider-notice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.provider-notice[hidden] {
  display: none;
}
.provider-notice p {
  margin: 4px 0;
  color: var(--text-secondary);
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 12px;
  overflow-wrap: anywhere;
}
.provider-notice small {
  color: var(--text-muted);
}
@media (max-width: 640px) {
  .provider-notice {
    flex-direction: column;
    align-items: stretch;
  }
}
.banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 10px 28px;
  background: #3a2320;
  border-bottom: 1px solid #f08a8a55;
  color: #ffd3cf;
}
.banner-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

/* Spend */
.chart-head {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 18px 0 8px;
}
.chart-head h3 {
  margin: 0;
}
.legend {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-secondary);
  margin-left: auto;
}
.legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.swatch {
  width: 10px;
  height: 10px;
  border-radius: 3px;
  display: inline-block;
}
.swatch.hosted {
  background: var(--series-hosted);
}
.swatch.journal {
  background: var(--series-journal);
}
.chart {
  position: relative;
}
.chart svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.chart .gridline {
  stroke: var(--grid);
  stroke-width: 1;
}
.chart .axis-label {
  fill: var(--text-muted);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}
.chart .bar-hosted {
  fill: var(--series-hosted);
}
.chart .bar-journal {
  fill: var(--series-journal);
}
.chart .hit {
  fill: transparent;
  cursor: default;
}
.chart .hit:hover,
.chart .hit:focus {
  fill: #ffffff0a;
  outline: none;
}
.chart-table table {
  font-size: 12px;
}
.tooltip {
  position: fixed;
  z-index: 20;
  pointer-events: none;
  min-width: 170px;
  padding: 10px 12px;
  border-radius: 10px;
  background: var(--surface-3);
  border: 1px solid #ffffff22;
  box-shadow: 0 8px 28px #0008;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.tooltip b {
  display: block;
  margin-bottom: 4px;
}
.tooltip .row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  color: var(--text-secondary);
}
.tooltip .row span:last-child {
  color: var(--text-primary);
}
.tooltip .row i {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  margin-right: 6px;
}
.split {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 20px;
}
.spenders {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}
.spenders li {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 8px;
  background: var(--surface-0);
  font-size: 13px;
}
.spenders li span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.spenders small {
  color: var(--text-muted);
}
.spenders .amount {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.meter {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
  margin: 8px 0 4px;
}
.meter span {
  display: block;
  height: 100%;
  background: var(--series-journal);
  border-radius: 999px;
}
.kv {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 13px;
  margin-bottom: 10px;
}
.kv dt {
  color: var(--text-secondary);
}
.kv dd {
  margin: 0;
  text-align: right;
  overflow-wrap: anywhere;
}

/* Epoch */
.countdown {
  text-align: right;
  font-family: Manrope, "DM Sans", sans-serif;
  font-size: 26px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.5px;
  white-space: nowrap;
}
.countdown small {
  display: block;
  font-family: "DM Sans", sans-serif;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-secondary);
  letter-spacing: 0;
}
.progress {
  height: 6px;
  border-radius: 999px;
  background: var(--surface-3);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: 999px;
  transition: width 1s linear;
}
#epoch-times {
  margin: 8px 0 14px;
}
.compare td.changed {
  color: var(--gold);
  font-weight: 600;
}
.compare td.changed::after {
  content: " • changes";
  font-weight: 400;
  font-size: 11px;
  color: var(--text-muted);
}
.epoch-form,
.server-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
}
.server-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.epoch-form label,
.server-form label {
  display: grid;
  gap: 5px;
  font-size: 12px;
  color: var(--text-secondary);
}
.full {
  grid-column: 1 / -1;
}
.check {
  display: flex !important;
  align-items: flex-start;
  gap: 8px;
}
.check input {
  margin-top: 3px;
  accent-color: var(--accent);
}
.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.form-status {
  font-size: 13px;
  color: var(--text-secondary);
}
.form-status.error {
  color: var(--danger);
}
.form-status.ok {
  color: var(--ok);
}

/* Tokens */
.server-list,
.token-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.server-list li,
.token-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 10px;
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  min-width: 0;
}
.server-list li.active {
  border-color: #a0e5cf66;
}
.item-main {
  min-width: 0;
  display: grid;
}
.item-main b,
.item-main span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.item-main span,
.item-main small {
  color: var(--text-muted);
  font-size: 12px;
}
.item-actions {
  display: flex;
  gap: 4px;
  flex: none;
}
.token-list li.revoked,
.token-list li.expired {
  opacity: 0.55;
}
.add-server {
  margin-top: 12px;
}
.add-server summary {
  cursor: pointer;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 10px;
}
.server-form.compact {
  grid-template-columns: minmax(0, 1fr);
}

/* Setup */
.setup {
  display: grid;
  place-items: center;
  min-height: calc(100vh - 140px);
}
.setup-card {
  width: min(640px, 100%);
  background: var(--surface-1);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-panel);
  padding: 32px;
}
.setup-card > p {
  margin-top: 10px;
}
.eyebrow {
  color: var(--accent);
  font-size: 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.steps {
  margin: 18px 0 22px;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  color: var(--text-secondary);
}
.steps b {
  color: var(--text-primary);
  font-weight: 600;
}

/* Dialog and toast */
.dialog {
  width: min(520px, calc(100vw - 32px));
  padding: 0;
  border: 1px solid #ffffff22;
  border-radius: var(--radius-panel);
  background: var(--surface-1);
  color: var(--text-primary);
  box-shadow: 0 24px 80px #000a;
}
.dialog::backdrop {
  background: #05090cb8;
  backdrop-filter: blur(3px);
}
.dialog form {
  padding: 24px;
}
.dialog-body {
  margin: 12px 0 20px;
  color: var(--text-secondary);
  display: grid;
  gap: 10px;
}
.dialog-body strong {
  color: var(--text-primary);
}
.dialog-body ul {
  margin: 0;
  padding-left: 18px;
}
.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}
.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  max-width: 420px;
  padding: 12px 16px;
  border-radius: 12px;
  background: var(--surface-3);
  border: 1px solid #ffffff22;
  box-shadow: 0 12px 40px #0009;
}
.toast.error {
  border-color: #f08a8a88;
  color: #ffd3cf;
}
.toast.ok {
  border-color: #a0e5cf66;
}

@media (max-width: 1100px) {
  .grid-2,
  .grid-3,
  .split {
    grid-template-columns: minmax(0, 1fr);
  }
  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .cap-form {
    margin-left: 0;
  }
  .cap-form small {
    text-align: left;
  }
}
@media (max-width: 640px) {
  .topbar {
    flex-wrap: wrap;
    padding: 10px 16px;
  }
  main {
    padding: 16px;
  }
  .panel {
    padding: 18px 16px;
  }
  .panel-head {
    flex-direction: column;
  }
  .stats,
  .stats.three,
  .epoch-form,
  .server-form {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Solana rewards: key facts as a compact grid of label and value rows. */
.facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0 18px;
  margin: 14px 0 6px;
}
.facts .fact {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 0;
  border-bottom: 1px solid #ffffff14;
  font-size: 12px;
}
.facts dt {
  opacity: 0.7;
}
.facts dt,
.facts dd {
  margin: 0;
}
.facts a {
  color: inherit;
}

/* Agent list: search beside the title, pages below the table. */
.agents-head {
  flex-wrap: wrap;
  gap: 10px 14px;
}
.agents-search input {
  width: min(320px, 100%);
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid #ffffff24;
  border-radius: 8px;
  background: #ffffff0a;
  color: inherit;
  font: inherit;
  font-size: 13px;
}
.agents-search input:focus-visible {
  outline: 2px solid #91d6c1;
  outline-offset: 1px;
}
.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}
.pager[hidden] {
  display: none;
}

/* Operator PWA: sign-in, alerts and devices */
.login-block {
  margin-top: 22px;
  padding-top: 18px;
  border-top: 1px solid var(--border-subtle);
}
.login-block h3 {
  margin: 0 0 8px;
}
.wallet-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.wallet-button {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  justify-content: center;
}
.wallet-button img {
  border-radius: 5px;
}
.anchor {
  position: relative;
  top: -80px;
}
.alerts-pill {
  text-decoration: none;
}
.alert-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.alert-list li {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--surface-2);
  border-left: 4px solid var(--line);
}
.alert-list li.empty {
  color: var(--text-muted);
  border-left-color: transparent;
}
.alert-list li.open.critical {
  border-left-color: var(--danger);
}
.alert-list li.open.warning {
  border-left-color: var(--gold);
}
.alert-list li.resolved {
  opacity: 0.62;
}
.alert-list .item-main {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.alert-list .item-main span {
  color: var(--text-secondary);
  font-size: 13px;
  overflow-wrap: anywhere;
}
.link-code {
  margin: 12px 0 0;
  font-size: 22px;
  letter-spacing: 0.08em;
  color: var(--accent);
}
@media (max-width: 640px) {
  .alert-list li {
    flex-direction: column;
  }
}
