/* ===============================
   arXiv digest — ui theme
   =============================== */

:root {
  --astro-red: #a70000;
  --astro-light: #f8f8f8;
  --astro-accent: #c70000;
  --astro-text: #222;
  --astro-link: #a70000;
  --astro-hover: #800000;
  --astro-border: #ddd;
  --astro-muted: #666;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: #fafafa;
  color: #222;
  margin: 0;
  padding: 0;
}

.math-inline {
  font-style: italic;
  letter-spacing: 0.01em;
}

.accent-text {
  color: var(--astro-red);
}

/* onboarding wizard */
.onboarding-card {
  max-width: 840px;
}

.wizard-step {
  margin-top: 1.5rem;
  padding: 1.5rem;
  border: 1px solid var(--astro-border);
  border-radius: 10px;
  background: #fff;
}

.interest-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.domain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
  margin-bottom: 1rem;
}

.domain-card {
  border: 1px solid var(--astro-border);
  border-radius: 12px;
  padding: 0.9rem;
  display: block;
  cursor: pointer;
}

.domain-card input {
  margin-right: 0.5rem;
}

.domain-card small {
  display: block;
  color: var(--astro-muted);
  margin-top: 0.45rem;
}

.interest-chip {
  border: 1px solid var(--astro-border);
  border-radius: 12px;
  padding: 0.8rem;
  display: block;
  cursor: pointer;
}

.interest-chip.interest-chip-hidden {
  display: none !important;
}

.interest-chip input {
  margin-right: 0.5rem;
}

.interest-chip small {
  display: block;
  color: var(--astro-muted);
  margin-top: 0.35rem;
}

.form-grid {
  display: grid;
  gap: 1rem;
}

.form-grid textarea,
.form-grid select {
  width: 100%;
  margin-top: 0.4rem;
  border: 1px solid var(--astro-border);
  border-radius: 8px;
  padding: 0.6rem;
  font-family: inherit;
}

.wizard-actions {
  margin-top: 1.5rem;
  display: flex;
  gap: 1rem;
}

.preview-list {
  margin-top: 1rem;
  display: grid;
  gap: 1rem;
}

.preview-card {
  border: 1px solid var(--astro-border);
  border-radius: 10px;
  padding: 1rem;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.preview-card h4 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
}

.preview-card h4 a {
  color: #0a49d1;
  text-decoration: underline;
}

.preview-card h4 a:hover {
  color: #082f8f;
}

.preview-meta {
  display: flex;
  gap: 0.8rem;
  font-size: 0.9rem;
  color: var(--astro-muted);
  margin-bottom: 0.5rem;
}

.preview-meta .category-tag {
  background: #f0f4ff;
  color: #223c72;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.preview-meta .score-tag {
  background: #fff4e6;
  color: #a64b00;
  padding: 0.1rem 0.5rem;
  border-radius: 999px;
  font-size: 0.8rem;
}

.preview-card .why-this {
  font-size: 0.9rem;
  color: var(--astro-muted);
  margin-top: 0.5rem;
}

/* ========== HEADER ========== */
header {
  background-color: #fff;
  border-bottom: 1px solid #ddd;
  padding: 1rem 2rem;
}

header h1 {
  margin: 0 0 0.25rem;
  color: #800000;
}

h1 a {
  text-decoration: none;
  color: var(--astro-red);
}

h1 a:hover {
  color: var(--astro-hover);
}

/* ========== NAVIGATION ========== */
nav {
  margin-top: 0.3em;
}

nav a {
  display: inline-block;
  margin-right: 1.2rem;
  color: #a00;
  text-decoration: none;
  font-weight: 500;
  white-space: nowrap;
}

nav a:hover {
  text-decoration: underline;
}

/* ========== MAIN CONTENT ========== */
main {
  padding: 2rem;
  max-width: 800px;
  margin: 0 auto;
}

.page-card {
  background: #fff;
  padding: 2rem 2.4rem;
  border-radius: 14px;
  border: 1px solid var(--astro-border);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
  margin: 2rem auto;
}

.page-card h2 {
  color: var(--astro-red);
  margin-top: 0;
}

.home-card {
  max-width: 880px;
}

.home-card .cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
  margin: 1.5rem 0 2rem;
}

.home-card ol {
  padding-left: 1.2rem;
  line-height: 1.6;
}

.home-card ol li {
  margin-bottom: 0.85rem;
}

.info-page {
  max-width: 780px;
}

.info-page h3 {
  margin-top: 2rem;
  margin-bottom: 0.5rem;
  color: var(--astro-red);
}

.sample-digest {
  list-style: disc;
  padding-left: 1.2rem;
  margin: 1rem 0 2rem;
}

.sample-digest li {
  margin-bottom: 1.6rem;
  line-height: 1.5;
}

.sample-digest .meta small {
  display: block;
  color: var(--astro-muted);
  font-size: 0.95rem;
  margin-top: 0.1rem;
}

.sample-digest .authors {
  margin: 0.4rem 0;
  font-size: 0.95rem;
  color: #333;
}

.sample-digest .summary {
  margin: 0;
  font-size: 0.98rem;
  color: #222;
}

.recommendations-card {
  max-width: 900px;
}

.recommendations-card .paper {
  padding: 1.5rem 0;
  border-bottom: 1px solid #eee;
}

.recommendations-card .paper:last-child {
  border-bottom: none;
}

.recommendations-card .title {
  color: #0a49d1;
  text-decoration: underline;
}

.recommendations-card .title:hover {
  color: #082f8f;
}

.feedback-card {
  max-width: 900px;
}

.feedback-table-wrapper {
  width: 100%;
  overflow-x: auto;
}

.feedback-table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  margin-top: 1rem;
  font-size: 0.95rem;
  table-layout: auto;
}

.feedback-table th,
.feedback-table td {
  border: 1px solid var(--astro-border);
  padding: 0.6rem 0.8rem;
  text-align: left;
  white-space: nowrap;
}

.feedback-table th {
  background: #fafafa;
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--astro-muted);
}

.feedback-table a {
  color: #0a49d1;
}

.feedback-table a:hover {
  color: #082f8f;
}

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

.text-center {
  text-align: center;
}

.liked-section {
  max-width: 780px;
}

.liked-list {
  list-style: none;
  padding-left: 0;
  margin: 1.5rem 0 0;
}

.liked-list li {
  margin-bottom: 1.2rem;
}

.liked-list small {
  display: block;
  color: var(--astro-muted);
  margin-top: 0.2rem;
  font-size: 0.9rem;
}

.highlights-section {
  max-width: 780px;
}

.section-subhead {
  color: var(--astro-muted);
  font-size: 0.95rem;
  margin: 0.35rem 0 0;
}

.highlights-list {
  list-style: none;
  padding-left: 0;
  margin: 1.2rem 0 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.highlights-list li {
  border: 1px solid var(--astro-border);
  border-radius: 12px;
  padding: 1rem 1.2rem;
  background: #fffdf7;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.highlights-list a {
  color: #0a49d1;
  font-weight: 600;
  text-decoration: none;
}

.highlights-list a:hover {
  text-decoration: underline;
}

.highlight-meta {
  font-size: 0.9rem;
  color: var(--astro-muted);
  margin-top: 0.4rem;
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  align-items: center;
}

/* button-style links (subscribe/unsubscribe/dashboard) */
.view-btn {
  background-color: #444;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
  margin-left: 1rem;
}

.view-btn:hover {
  background-color: #222;
}

.cta-links {
  margin-bottom: 1.5rem;
}

.current-prefs {
  margin-top: 1rem;
  padding: 1rem;
  background: #f7f7f7;
  border: 1px solid #ddd;
  border-radius: 6px;
  font-size: 0.95rem;
}

.prefs-summary {
  line-height: 1.6;
}

a.btn {
  display: inline-block;
  background: var(--astro-red);
  color: white;
  padding: 0.6em 1.2em;
  border-radius: 4px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease;
}

a.btn:hover {
  background: var(--astro-hover);
}

/* subtle secondary link button (like unsubscribe) */
a.btn-secondary {
  background: transparent;
  color: var(--astro-link);
  border: 1px solid var(--astro-link);
}

a.btn-secondary:hover {
  background: var(--astro-link);
  color: white;
}

/* ========== PAPER LIST ========== */
ul.paper-list {
  list-style: none;
  padding-left: 0;
}

ul.paper-list li {
  margin-bottom: 1em;
}

ul.paper-list a {
  color: #0a49d1;
  font-weight: 600;
}

ul.paper-list a:hover {
  color: #082f8f;
}

/* ========== FOOTER ========== */
footer {
  text-align: center;
  padding: 1rem;
  color: #777;
  font-size: 0.9rem;
  border-top: 1px solid #ddd;
  margin-top: 3rem;
}

/* ========== PREFERENCES ========== */
.prefs-container {
  max-width: 900px;
}

.prefs-form .form-group,
.prefs-form .form-group-inline {
  margin-bottom: 1.5rem;
}

.prefs-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.prefs-form textarea,
.prefs-form input {
  width: 100%;
  padding: 0.5rem;
  border-radius: 5px;
  border: 1px solid #bbb;
  font-size: 1rem;
  font-family: inherit;
}

.prefs-form textarea:focus,
.prefs-form input:focus {
  outline: none;
  border-color: #a00;
  box-shadow: 0 0 0 2px rgba(160,0,0,0.2);
}

.save-btn {
  background-color: #a00;
  color: #fff;
  border: none;
  padding: 0.6rem 1.2rem;
  border-radius: 5px;
  font-size: 1rem;
  cursor: pointer;
}

.save-btn:hover {
  background-color: #900;
}

.save-status {
  opacity: 0;
  transition: opacity 0.6s ease-in-out;
  font-weight: 600;
  margin-top: 1rem;
}

.advanced-controls {
  margin-top: 1.5rem;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.5rem 1rem 1rem;
  background: #fafafa;
}

.advanced-controls summary {
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.advanced-controls summary::-webkit-details-marker {
  display: none;
}

.advanced-controls summary::after {
  content: "▸";
  float: right;
  transition: transform 0.2s ease;
}

.advanced-controls[open] summary::after {
  transform: rotate(90deg);
}

.advanced-hint {
  font-size: 0.9rem;
  color: #555;
  margin: 0.4rem 0 1rem;
}

.advanced-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1rem;
}

.weight-field small {
  display: block;
  color: #777;
  margin-top: 0.2rem;
}

.feedback-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

.feedback-table th,
.feedback-table td {
  border: 1px solid #ddd;
  padding: 0.5rem;
  text-align: left;
}

.feedback-table th {
  background-color: #f0f0f0;
  font-weight: 600;
}

.feedback-table tr:nth-child(even) {
  background-color: #fafafa;
}

/* ===== FEEDBACK FORM ===== */
.feedback-container.card {
  background: #fff;
  padding: 2rem 2.5rem;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
  border: 1px solid #ddd;
  max-width: 600px;
  margin: 2rem auto;
}

.feedback-container h2 {
  margin-top: 0;
  color: var(--astro-red);
}

.feedback-container .muted {
  color: var(--astro-muted);
  margin-bottom: 1.5rem;
}

.feedback-form .form-group {
  margin-bottom: 1.25rem;
}

.feedback-form label {
  display: block;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.feedback-form input,
.feedback-form textarea {
  width: 100%;
  padding: 0.6rem 0.8rem;
  border: 1px solid #bbb;
  border-radius: 6px;
  font-size: 1rem;
  font-family: inherit;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.feedback-form input:focus,
.feedback-form textarea:focus {
  outline: none;
  border-color: var(--astro-red);
  box-shadow: 0 0 0 2px rgba(167, 0, 0, 0.2);
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.save-status {
  font-weight: 600;
  margin-top: 0.5rem;
  transition: opacity 0.6s ease-in-out;
}

.save-status.success {
  color: green;
  opacity: 1;
}

.save-status.error {
  color: red;
  opacity: 1;
}

/* ========= SUBSCRIBE SECTION ========== */
section.subscribe-section,
section.unsubscribe-section {
  max-width: 640px;
  text-align: center;
}

.input-field {
  width: 70%;
  padding: 0.6em;
  margin-right: 0.5em;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.toastify-success {
  background: #1e7e34 !important;
  color: #fff !important;
}

.toastify-error,
.toastify-info {
  background: #a70000 !important;
  color: #fff !important;
}

#sub-status {
  font-weight: 500;
  color: #1e7e34;
  transition: opacity 0.6s ease-in-out;
  margin-top: 1em;
}

#sub-status.error { color: #b31b1b; }
#sub-status.info  { color: #555; }

/* ===== RECOMMENDATIONS FEEDBACK BUTTONS ===== */
.feedback-buttons {
  margin-top: 8px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.like-btn,
.dislike-btn {
  background: none;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.15s ease, color 0.15s ease;
  color: #555;
}

.like-btn:hover {
  transform: scale(1.2);
  color: green;
}

.dislike-btn:hover {
  transform: scale(1.2);
  color: red;
}

/* ===== arXiv category selector styling ===== */
#categories {
  width: 100%;
  max-width: 400px;
  height: auto;
  min-height: 8em;
  padding: 0.6em 0.8em;
  border: 1px solid #ccc;
  border-radius: 6px;
  background-color: #fff;
  font-size: 0.95rem;
  font-family: inherit;
  color: #222;
  outline: none;
  transition: all 0.2s ease-in-out;
  box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

#categories:hover {
  border-color: #a00;
  box-shadow: 0 0 4px rgba(170, 0, 0, 0.3);
}

#categories:focus {
  border-color: #b30000;
  box-shadow: 0 0 6px rgba(180, 0, 0, 0.4);
}

/* highlight selected items in your theme red */
#categories option:checked {
  background-color: #b30000;
  color: #fff;
}

/* label and helper text alignment */
label[for="categories"] {
  display: block;
  margin-bottom: 0.3em;
  font-weight: 600;
  color: #111;
}

small {
  display: block;
  margin-top: 0.2em;
  font-size: 0.85rem;
  color: #666;
}

.category-tag {
  display: inline-block;
  background-color: #f3f3f3;
  color: #444;
  font-size: 0.85em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-right: 8px;
}

.score-tag {
  display: inline-block;
  background-color: #ffe6cc;
  color: #c05a00;
  font-size: 0.85em;
  padding: 3px 8px;
  border-radius: 12px;
  margin-right: 8px;
}

.meta {
  margin-bottom: 0.5em;
  font-size: 0.9em;
  color: #666;
}

.summary {
  margin-top: 0.5em;
  margin-bottom: 1em;
  line-height: 1.4;
}

mjx-container[jax="CHTML"] mjx-mi,
mjx-container[jax="CHTML"] mjx-mo,
mjx-container[jax="CHTML"] mjx-mn {
    font-family: "Latin Modern Math", "STIX Two Math", "Times New Roman", serif !important;
    font-weight: 400 !important;
}

/* consistent button styling */
button, .btn {
  font-family: inherit;
  font-size: 1rem;
  padding: 0.5em 1.2em;
  border: 2px solid #800000; /* dark red */
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  background: white;
  color: #800000;
}

button:hover, .btn:hover {
  background: #800000;
  color: white;
}

button:active, .btn:active {
  background: #a00000;
  border-color: #a00000;
}

/* make subscribe special (filled by default) */
button.subscribe, .btn.subscribe {
  background: #800000;
  color: white;
}

button.subscribe:hover, .btn.subscribe:hover {
  background: #a00000;
}

table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 1rem;
}

th, td {
  border: 1px solid #ccc;
  padding: 0.5rem;
  text-align: left;
}

thead {
  background-color: #f5f5f5;
}

/* ===== LOGIN PAGE STYLING ===== */
.login-container {
  max-width: 400px;
  margin: 100px auto;
  padding: 2rem;
  background-color: #fff;
  border: 1px solid #ccc;
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  font-family: "Helvetica Neue", sans-serif;
}

.login-container h2 {
  text-align: center;
  margin-bottom: 1.5rem;
  font-weight: 600;
  color: #600000;  /* matches site theme */
}

.login-container label {
  display: block;
  margin-bottom: 0.25rem;
  font-weight: 500;
}

.login-container input {
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 1rem;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.login-container button {
  width: 100%;
  padding: 0.75rem;
  background-color: #800000;
  color: white;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.login-container button:hover {
  background-color: #a00000;
}

/* responsive adjustments for phone */
@media (max-width: 480px) {
  .login-container {
    margin: 50px 1rem;
    padding: 1.5rem;
  }
}

/* ===== SIGNUP PAGE STYLING ===== */
.signup-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.signup-text a {
  color: #800000;
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}

.form-box {
  max-width: 450px;
  margin: 3rem auto;
  padding: 2rem;
  border-radius: 12px;
  background-color: white;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  font-size: 1.75rem;
  color: var(--astro-red);
  margin-bottom: 1.5rem;
}

input[type="text"],
input[type="password"] {
  width: 100%;
  padding: 0.75rem;
  margin: 0.5rem 0 1rem 0;
  border: 1px solid #ccc;
  border-radius: 6px;
  font-size: 1rem;
}

.submit-btn {
  width: 100%;
  padding: 0.75rem;
  background-color: var(--astro-red);
  color: white;
  font-size: 1rem;
  border: none;
  border-radius: 6px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--astro-hover);
}

.signup-text {
  margin-top: 1rem;
  text-align: center;
  font-size: 0.95rem;
  color: #555;
}

.signup-text a {
  color: var(--astro-red);
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}

.form-box {
  background: white;
  border-radius: 12px;
  padding: 2rem;
  max-width: 400px;
  margin: 3rem auto;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.form-title {
  text-align: center;
  font-size: 1.6rem;
  font-weight: bold;
  color: var(--astro-red);
  margin-bottom: 1.5rem;
}

form {
  display: flex;
  flex-direction: column;
}

label {
  font-size: 0.95rem;
  margin-bottom: 0.3rem;
  color: #333;
}

input[type="text"],
input[type="password"] {
  padding: 0.5rem;
  margin-bottom: 1.2rem;
  border-radius: 5px;
  border: 1px solid #ccc;
  font-size: 1rem;
}

.submit-btn {
  background-color: var(--astro-red);
  color: white;
  border: none;
  padding: 0.75rem;
  font-size: 1rem;
  border-radius: 6px;
  cursor: pointer;
  transition: background-color 0.2s ease;
}

.submit-btn:hover {
  background-color: var(--astro-hover);
}

a.forgot-password-link {
  color: var(--astro-red);
  font-size: 0.9rem;
  margin-top: 0.5rem;
  text-align: left;
  display: inline-block;
}

a.forgot-password-link:hover {
  text-decoration: underline;
  color: var(--astro-hover);
}

input[type="email"],
input[type="password"],
input[type="text"] {
  background-color: #f0f8ff;  /* light blue background */
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.form-control {
  background-color: #f0f8ff;
  border: 1px solid #ccc;
  border-radius: 6px;
  padding: 10px;
  width: 100%;
  box-sizing: border-box;
  font-size: 1rem;
  margin-bottom: 1rem;
}

/* ===== ADMIN DASHBOARD ===== */
.admin-dashboard h2 {
  margin-bottom: 0.25rem;
}

.admin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 1.5rem;
}

.admin-card {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.admin-card h3 {
  margin: 0;
  color: var(--astro-red);
}

.admin-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem 1rem;
  margin: 0;
}

.admin-card dl dt {
  font-size: 0.8rem;
  text-transform: uppercase;
  color: var(--astro-muted);
}

.admin-card dl dd {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 600;
}

.admin-card dl dd.alert {
  color: #a70000;
}

.series {
  border-top: 1px solid var(--astro-border);
  padding-top: 0.5rem;
}

.series h4 {
  margin: 0 0 0.5rem 0;
  font-size: 0.9rem;
  color: var(--astro-muted);
}

.series-list {
  list-style: none;
  padding: 0;
  margin: 0;
  max-height: 220px;
  overflow-y: auto;
}

.series-list li {
  display: flex;
  justify-content: space-between;
  font-size: 0.9rem;
  padding: 0.2rem 0;
  border-bottom: 1px dashed var(--astro-border);
}

.series-list li:last-child {
  border-bottom: none;
}

.series-label {
  color: var(--astro-muted);
}

.series-value {
  font-weight: 600;
}

.status-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.status-pill {
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.85rem;
  text-transform: uppercase;
  font-weight: 600;
  color: #fff;
}

.status-ok {
  background-color: #0b8457;
}

.status-warning {
  background-color: #c77d02;
}

.metrics-list {
  list-style: none;
  padding: 0;
  margin: 0;
  font-size: 0.9rem;
}

.metrics-list li {
  margin-bottom: 0.35rem;
}

.alerts ul {
  margin: 0.5rem 0 0 1rem;
  padding: 0;
}

.alerts li {
  font-size: 0.9rem;
  margin-bottom: 0.25rem;
  color: #a70000;
}

.alert-text {
  font-weight: 600;
  margin: 0;
  color: #a70000;
}

.admin-card.wide {
  grid-column: 1 / -1;
}

.table-wrapper {
  overflow-x: auto;
}

.table-wrapper table {
  width: 100%;
  border-collapse: collapse;
}

.table-wrapper th,
.table-wrapper td {
  padding: 0.5rem;
  border-bottom: 1px solid var(--astro-border);
  text-align: left;
  font-size: 0.9rem;
}

.table-wrapper tbody tr:last-child td {
  border-bottom: none;
}

@media (max-width: 720px) {
  .admin-card dl {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}
