/* @override 
	https://ff-monitor.ddev.site/assets/style.css
	https://ff-monitor.ddev.site/assets/style.css?* */

@import url("https://use.typekit.net/zdo4kwj.css");
:root {
  --bg-page: #0a0a0a;
  --bg-card: #1a1a1a;
  --border-card: #2a2a2a;
  --text-primary: #ffffff;
  --text-secondary: #999999;
  --accent: #bfacaa;
  --status-up: #22c55e;
  --status-cron-late: #eab308;
  --status-down: #ef4444;
  --font: "termina", sans-serif;
}
[data-theme="light"] {
  --bg-page: #f5f5f5;
  --bg-card: #ffffff;
  --border-card: #e0e0e0;
  --text-primary: #111111;
  --text-secondary: #666666;
  --accent: #ff979c;
}
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}
body {
  font-family: var(--font);
  background: var(--bg-page);
  color: var(--text-primary);
  min-height: 100vh;
  padding: 2rem;
  padding-bottom: 4rem;
}
/* Header */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border-card);
}
.header h1 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--accent);
  text-transform: uppercase;
  flex-shrink: 0;
}
.header h1 a {
  color: inherit;
  text-decoration: none;
}
.header h1 .title-ff {
  font-weight: 400;
  text-transform: lowercase;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}
/* Header menu (desktop: inline, mobile: dropdown) */
.header-menu {
  display: flex;
  align-items: center;
  gap: 1rem;
}
.header-menu .theme-tabs {
  margin-right: auto;
}
/* Hamburger button */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 32px;
  height: 32px;
  background: none;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  padding: 6px;
}
.hamburger span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--accent);
  border-radius: 1px;
  transition:
    transform 0.3s,
    opacity 0.3s;
}
.hamburger.open span:nth-child(1) {
  transform: translateY(6px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-6px) rotate(-45deg);
}
/* Theme tabs (segmented control) */
.theme-tabs {
  display: inline-flex;
  align-items: center;
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 3px;
  gap: 2px;
}
.theme-tab-indicator {
  position: absolute;
  height: calc(100% - 6px);
  width: calc((100% - 6px - 4px) / 3);
  top: 3px;
  left: 3px;
  background: var(--accent);
  border-radius: 6px;
  transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 0;
}
.theme-tab {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 24px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  border-radius: 5px;
  transition: color 0.2s;
}
.theme-tab:hover {
  color: var(--text-primary);
}
.theme-tab.active {
  color: var(--bg-page);
}
/* Buttons */
.btn {
  display: inline-block;
  padding: 0.4rem 1rem;
  border: 1px solid var(--accent);
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.75rem;
  cursor: pointer;
  background: none;
  transition:
    background 0.2s,
    color 0.2s;
  letter-spacing: 0.03em;
}
.btn:hover {
  background: var(--accent);
  color: var(--bg-page);
}
.btn-danger {
  border-color: var(--status-down);
  color: var(--status-down);
}
.btn-danger:hover {
  background: var(--status-down);
  color: #fff;
}
.btn-small {
  padding: 0.2rem 0.6rem;
  font-size: 0.65rem;
}
.btn-icon {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.card .btn {
  text-transform: capitalize;
}
/* Toolbar */
.toolbar {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.toolbar-search {
  position: relative;
  flex: 1;
}
.search-icon {
  position: absolute;
  left: 0.6rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  pointer-events: none;
}
.toolbar-search input {
  width: 100%;
  padding: 0.4rem 0.8rem 0.4rem 2rem;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.75rem;
}
.toolbar-search input:focus {
  outline: none;
  border-color: var(--accent);
}
.toolbar-search input::placeholder {
  color: var(--text-secondary);
}
.toolbar-sort {
  display: flex;
  gap: 0.4rem;
  margin-left: auto;
}
.sort-btn {
  display: inline-block;
  padding: 0.3rem 0.7rem;
  border: 1px solid var(--border-card);
  color: var(--text-secondary);
  background: none;
  border-radius: 6px;
  font-family: var(--font);
  font-size: 0.65rem;
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
  white-space: nowrap;
}
.sort-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.sort-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-page);
}
.card.hidden {
  display: none;
}
/* Card grid */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 1rem;
}
/* Site card */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 12px;
  padding: 1.4rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}
.card::before {
  content: "";
  position: absolute;
  top: -100px;
  right: -100px;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, var(--accent) 0%, transparent 70%);
  opacity: 0.8;
  pointer-events: none;
  filter: blur(8vh);
}
.card:hover {
  border-color: var(--accent);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}
.card-header {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
.favicon-wrapper {
  position: relative;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
}
.favicon-wrapper .status-dot {
  position: absolute;
  top: -3px;
  left: -3px;
  z-index: 2;
  width: 12px;
  height: 12px;
}
.card-header-info {
  flex: 1;
  min-width: 0;
}
.card-title-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-dot.up {
  background: var(--status-up);
  box-shadow: 0 0 6px 2px var(--status-up);
}
.status-dot.cron_late {
  background: var(--status-cron-late);
  box-shadow: 0 0 6px 2px var(--status-cron-late);
}
.status-dot.down {
  background: var(--status-down);
  box-shadow: 0 0 6px 2px var(--status-down);
}
.card-label {
  font-size: 0.9rem;

  font-weight: 600;
  flex: 1;
}
/* History button */
.history-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition: opacity 0.2s;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  margin-right: -0.3rem;
  margin-top: 0;
  color: var(--text-secondary);
}
.history-btn:hover {
  opacity: 0.7;
}
.history-btn svg {
  width: 18px;
  height: 18px;
  display: block;
}
/* Cron trigger button */
.cron-trigger-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 2px;
  transition:
    opacity 0.2s,
    color 0.2s;
  flex-shrink: 0;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
}
.cron-trigger-btn svg {
  width: 17px;
  height: 17px;
}
.cron-trigger-btn:hover {
  opacity: 0.7;
}
.cron-trigger-btn.cron-loading {
  pointer-events: none;
  animation: cron-pulse 0.8s ease-in-out infinite;
}
.cron-trigger-btn.cron-success {
  opacity: 0.8;
  color: var(--status-up);
  pointer-events: none;
}
.cron-trigger-btn.cron-error {
  opacity: 0.8;
  color: var(--status-down);
  pointer-events: none;
}
@keyframes cron-pulse {
  0%,
  100% {
    opacity: 0.3;
  }
  50% {
    opacity: 0.8;
  }
}
/* Trigger All Crons button */
.btn-cron-all {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.btn-cron-all.cron-all-loading {
  pointer-events: none;
  border-color: #daa520;
  color: #daa520;
}
.btn-cron-all.cron-all-loading #cronAllLabel {
  animation: cron-pulse 0.8s ease-in-out infinite;
}
.btn-cron-all.cron-all-success {
  border-color: var(--status-up);
  color: var(--status-up);
}
.btn-cron-all.cron-all-partial {
  border-color: var(--status-cron-late);
  color: var(--status-cron-late);
}
/* History popover */
.history-popover {
  display: none;
  position: absolute;
  z-index: 100;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 10px;
  padding: 0.8rem;
  width: 300px;
  max-width: calc(100vw - 2rem);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}
.history-popover.open {
  display: block;
}
.history-title {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 0.6rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--border-card);
}
.history-scroll {
  max-height: 280px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--border-card) transparent;
  padding-left: 0.8rem;
}
.history-scroll::-webkit-scrollbar {
  width: 4px;
}
.history-scroll::-webkit-scrollbar-track {
  background: transparent;
}
.history-scroll::-webkit-scrollbar-thumb {
  background: var(--border-card);
  border-radius: 2px;
}
.history-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0 0.4rem 0.5rem;
  font-size: 0.65rem;
  color: var(--text-secondary);
  position: relative;
  border-left: 1px solid var(--border-card);
  margin-left: 3px;
}
.history-row .status-dot {
  width: 7px;
  height: 7px;
  position: absolute;
  left: -4px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 1;
}
.history-time {
  flex-shrink: 0;
  width: 80px;
}
.history-detail {
  flex: 1;
  text-align: right;
}
.history-event-detail {
  font-size: 0.6rem;
  color: var(--text-secondary);
  opacity: 0.7;
  text-align: right;
  padding: 0 0 0.2rem 0.5rem;
  border-left: 1px solid var(--border-card);
  margin-left: 3px;
}
.history-loading,
.history-empty {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: center;
  padding: 0.5rem;
}
.card-url {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  color: var(--accent);
  text-decoration: none;
  font-size: 0.7rem;
  margin-top: 0.15rem;
  word-break: break-all;
}
.card-url:hover {
  text-decoration: underline;
}
.card-url .external-icon {
  flex-shrink: 0;
  opacity: 0.5;
}
.card-url:hover .external-icon {
  opacity: 0.8;
}
.card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.7rem;
  color: var(--text-secondary);
}
.cron-value {
  color: var(--text-primary);
}
/* Perf indicators (CSS/JS aggregation) */
.meta-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.25rem;
}
.meta-right-line {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.meta-pill {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border: 1px solid var(--border-card);
  border-radius: 20px;
  font-size: 0.6rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-secondary);
  white-space: nowrap;
}
.meta-pill.perf-ind {
  color: var(--status-up);
  border-color: rgba(34, 197, 94, 0.3);
}
.meta-pill.perf-ind.perf-off {
  color: var(--status-down);
  border-color: rgba(239, 68, 68, 0.3);
}
.card-actions {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-card);
  align-items: center;
}
.card-actions .btn-small {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  font-size: 0.7rem;
  line-height: 1;
}
.card-actions .btn-small svg {
  flex-shrink: 0;
  vertical-align: middle;
}
.card-actions form {
  flex: 1;
  display: flex;
}
.card-actions form .btn-small {
  width: 100%;
}
/* Footer */
.footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.8rem 2rem;
  background: var(--bg-page);
  border-top: 1px solid var(--border-card);
  font-size: 0.7rem;
  color: var(--text-secondary);
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
}
.footer-line {
  line-height: 1.6;
}
.footer-downloads {
  font-size: 0.65rem;
}
.footer-downloads a {
  color: var(--accent);
  text-decoration: none;
}
.footer-downloads a:hover {
  text-decoration: underline;
}
.footer-sep {
  margin: 0 0.3rem;
  opacity: 0.4;
}
/* Live indicator */
.live-indicator {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.live-dot {
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--status-up);
  animation: live-pulse 2s ease-in-out infinite;
}
@keyframes live-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.3;
  }
}
/* Status change animation */
@keyframes status-change {
  0% {
    border-color: var(--accent);
    box-shadow: 0 0 0 0 var(--accent);
  }
  50% {
    box-shadow: 0 0 12px 2px var(--accent);
  }
  100% {
    border-color: var(--border-card);
    box-shadow: 0 0 0 0 transparent;
  }
}
.card.status-changed {
  animation: status-change 2s ease;
}
tr.status-changed {
  animation: status-change 2s ease;
}
/* Toast notifications */
#toast-container {
  position: fixed;
  bottom: 4rem;
  right: 1.5rem;
  z-index: 200;
  display: flex;
  flex-direction: column-reverse;
  gap: 0.5rem;
  pointer-events: none;
}
.toast {
  pointer-events: auto;
  padding: 0.6rem 1rem;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.75rem;
  color: #fff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateX(120%);
  opacity: 0;
  transition:
    transform 0.3s ease,
    opacity 0.3s ease;
  max-width: 320px;
}
.toast-visible {
  transform: translateX(0);
  opacity: 1;
}
.toast-out {
  transform: translateX(120%);
  opacity: 0;
}
.toast-down {
  background: var(--status-down);
}
.toast-up {
  background: var(--status-up);
}
.toast-cron_late {
  background: var(--status-cron-late);
  color: #111;
}
/* View toggle */
.toolbar-view {
  display: flex;
  gap: 0.3rem;
}
.view-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 28px;
  background: none;
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition:
    border-color 0.2s,
    color 0.2s,
    background 0.2s;
}
.view-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.view-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--bg-page);
}
/* Table view */
.table-view {
  margin-bottom: 1.5rem;
}
.table-wrapper {
  overflow-x: auto;
}
.table-view table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.75rem;
}
.table-view th {
  text-align: left;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid var(--border-card);
  color: var(--text-secondary);
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
  white-space: nowrap;
}
.table-view td {
  padding: 0.75rem 0.8rem;
  border-bottom: 1px solid var(--border-card);
  vertical-align: middle;
}
.table-view tbody tr:hover {
  background: var(--border-card);
}
.table-view tbody tr:nth-child(even) {
  background: rgba(255, 255, 255, 0.02);
}
[data-theme="light"] .table-view tbody tr:nth-child(even) {
  background: rgba(0, 0, 0, 0.02);
}
.table-view .card-url {
  margin-bottom: 0;
  margin-top: 0.1rem;
  font-size: 0.65rem;
}
.tv-actions {
  white-space: nowrap;
}
.tv-actions .btn-small {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  vertical-align: middle;
}
.tv-actions > a.btn-small {
  margin-right: 0.4rem;
}
.tv-actions .btn-small svg {
  flex-shrink: 0;
}
/* Favicons */
.site-favicon {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 10px;
  padding: 4px;
}
[data-theme="light"] .site-favicon {
  background: rgba(0, 0, 0, 0.06);
}
.tv-favicon-wrapper {
  width: 48px;
  height: 48px;
}
.tv-site-cell {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.tv-site-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.tv-site-label {
  font-weight: 500;
  white-space: nowrap;
}
/* Quick actions (table) */
.tv-quick-actions {
  white-space: nowrap;
}
.tv-quick-actions button {
  vertical-align: middle;
}
.tv-quick-actions button + button {
  margin-left: 0.3rem;
}
.tv-quick-actions .history-btn svg {
  width: 20px;
  height: 20px;
}
.tv-quick-actions .cron-trigger-btn svg {
  width: 19px;
  height: 19px;
}
.table-view tr.hidden {
  display: none;
}
/* Forms */
.form-container {
  max-width: 520px;
  margin: 2rem auto;
}
.form-group {
  margin-bottom: 1rem;
}
.form-group label {
  display: block;
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.form-group input {
  width: 100%;
  padding: 0.6rem 0.8rem;
  background: var(--bg-page);
  border: 1px solid var(--border-card);
  border-radius: 6px;
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 0.85rem;
}
.form-group input:focus {
  outline: none;
  border-color: var(--accent);
}
/* Help popover (token) */
.help-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1px solid var(--text-primary);
  background: none;
  color: var(--text-primary);
  font-size: 0.55rem;
  font-family: var(--font);
  font-weight: 600;
  cursor: pointer;
  vertical-align: middle;
  margin-left: 0.3rem;
  transition:
    border-color 0.2s,
    color 0.2s;
}
.help-toggle:hover {
  border-color: var(--accent);
  color: var(--accent);
}
.help-popover {
  display: none;
  background: var(--bg-card);
  border: 1px solid var(--border-card);
  border-radius: 8px;
  padding: 0.8rem 1rem;
  margin-bottom: 0.5rem;
  font-size: 0.65rem;
  line-height: 1.6;
  color: var(--text-secondary);
}
.help-popover.open {
  display: block;
}
.help-popover a {
  color: var(--accent);
}
.help-popover code {
  background: var(--bg-page);
  padding: 0.1rem 0.35rem;
  border-radius: 3px;
  font-size: 0.6rem;
}
.help-popover pre {
  background: var(--bg-page);
  padding: 0.5rem 0.7rem;
  border-radius: 4px;
  margin: 0.4rem 0;
  font-size: 0.6rem;
  overflow-x: auto;
  color: var(--text-primary);
}
.field-help {
  display: block;
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.3rem;
  line-height: 1.4;
}
.error-message {
  background: var(--status-down);
  color: #fff;
  padding: 0.6rem 1rem;
  border-radius: 6px;
  font-size: 0.8rem;
  margin-bottom: 1rem;
}
/* Responsive */
@media (max-width: 768px) {
  body {
    padding: 1rem;
  }
  .header {
    flex-wrap: wrap;
    gap: 1rem;
    padding-top: 0.5rem;
    padding-bottom: 1.2rem;
  }
  .header h1 {
    font-size: 1rem;
    width: 100%;
    text-align: left;
  }
  .header-actions {
    width: 100%;
    justify-content: space-between;
  }
  .grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer {
    justify-content: center;
    text-align: center;
  }
  .footer-downloads {
    width: 100%;
  }
  .table-view td {
    padding: 0.6rem 0.6rem;
  }
  .table-view th {
    padding: 0.5rem 0.6rem;
  }
}
@media (max-width: 600px) {
  .grid {
    grid-template-columns: 1fr;
  }
  /* Header: title left + hamburger right on same line */
  .header:has(.hamburger) {
    flex-wrap: nowrap;
    position: relative;
  }
  .header:has(.hamburger) h1 {
    width: auto;
    text-align: left;
  }
  .header:has(.hamburger) .header-actions {
    width: auto;
    position: static;
  }
  /* Show hamburger */
  .hamburger {
    display: flex;
  }
  /* Hide menu by default on mobile */
  .header-menu {
    display: none;
    flex-direction: column;
    width: 100%;
    gap: 0.4rem;
    padding-top: 0.6rem;
    border-top: 1px solid var(--border-card);
    margin-top: 0.5rem;
  }
  .header:has(.hamburger) .header-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-page);
    padding: 0.6rem 0;

    z-index: 50;
  }
  .header-menu.open {
    display: flex;
  }
  .header-menu .btn {
    width: 100%;
    text-align: center;
    padding: 0.35rem 1rem;
    font-size: 0.7rem;
  }
  .header-menu .btn-cron-all {
    justify-content: center;
    padding: 0.35rem 1rem;
  }
  .header-menu .theme-tabs {
    align-self: center;
    margin-right: 0;
  }
  /* Toolbar: search on top, sort + view toggle on same line below */
  .toolbar {
    flex-wrap: wrap;
    gap: 0.6rem;
  }
  .toolbar-search {
    flex: none;
    width: 100%;
    order: -1;
  }
  .toolbar-sort {
    margin-left: 0;
    flex: 1;
  }
  .toolbar-view {
    margin-left: auto;
  }
  /* Cards: tighter spacing */
  .card-header {
    margin-bottom: 0.6rem;
  }
  .card-actions {
    margin-top: 0.6rem;
    padding-top: 0.6rem;
  }
  /* Footer: "X sites" on its own line */
  .footer-status {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0 0.3rem;
  }
  .footer-status #siteCount {
    width: 100%;
  }
  .footer-status .footer-sep-sites {
    display: none;
  }
  .table-view table {
    font-size: 0.7rem;
  }
  .table-view td {
    padding: 0.5rem 0.4rem;
  }
  .table-view th {
    padding: 0.4rem 0.4rem;
    font-size: 0.6rem;
  }
  .table-view .meta-pill {
    padding: 0.08rem 0.35rem;
    font-size: 0.55rem;
  }
  .tv-favicon-wrapper {
    width: 36px;
    height: 36px;
  }
  .tv-site-cell {
    gap: 0.4rem;
  }
  .tv-site-label {
    font-size: 0.7rem;
  }
  .table-view .card-url {
    font-size: 0.6rem;
  }
  .tv-quick-actions .history-btn svg {
    width: 17px;
    height: 17px;
  }
  .tv-quick-actions .cron-trigger-btn svg {
    width: 16px;
    height: 16px;
  }
}
@media (max-width: 480px) {
  .footer {
    padding: 0.8rem 1rem;
  }
}
