table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  background-color: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
}

table th,
table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
}

table tr:last-child th,
table tr:last-child td {
  border-bottom: 0;
}

table td:last-child {
  color: var(--accent-strong);
  text-align: right;
  font-weight: 700;
}

dialog {
  width: min(92vw, 42rem);
  max-height: 70vh;
  padding: 1rem;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-raised);
  color: var(--text);
  box-shadow: var(--shadow);
}

dialog::backdrop {
  background: rgba(0, 0, 0, 0.48);
}

.page-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.page-links a {
  display: inline-flex;
  min-height: 2.25rem;
  align-items: center;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.45rem 0.75rem;
  background: var(--link-bg);
}

.page-links a:hover {
  border-color: var(--accent);
  text-decoration: none;
}
