/* === Reset & Base === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #0f1117;
  --bg-card: #1a1d27;
  --bg-hover: #222632;
  --border: #2a2e3a;
  --text: #e4e6eb;
  --text-muted: #8b8f9a;
  --green: #22c55e;
  --green-bg: rgba(34, 197, 94, 0.12);
  --yellow: #eab308;
  --yellow-bg: rgba(234, 179, 8, 0.12);
  --red: #ef4444;
  --red-bg: rgba(239, 68, 68, 0.12);
  --blue: #3b82f6;
  --blue-bg: rgba(59, 130, 246, 0.12);
  --radius: 8px;
  --radius-lg: 12px;
}

[data-theme="light"] {
  --bg: #f5f6f8;
  --bg-card: #ffffff;
  --bg-hover: #eef0f3;
  --border: #dde0e6;
  --text: #1a1d27;
  --text-muted: #6b7080;
  --green: #16a34a;
  --green-bg: rgba(22, 163, 74, 0.1);
  --yellow: #ca8a04;
  --yellow-bg: rgba(202, 138, 4, 0.1);
  --red: #dc2626;
  --red-bg: rgba(220, 38, 38, 0.1);
  --blue: #2563eb;
  --blue-bg: rgba(37, 99, 235, 0.1);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

/* === Scrollbar === */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg);
}

::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-muted);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border) var(--bg);
}

a {
  color: inherit;
  text-decoration: none;
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* === Header === */
.header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 12px;
}

.header-text {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.header-brand {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
}

.header-subtitle {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.version-badge {
  font-size: 0.6rem;
  font-weight: 600;
  color: var(--green);
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.2);
  padding: 0px 5px;
  border-radius: 8px;
  display: inline;
  vertical-align: middle;
  margin-left: 4px;
}

.header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.logo {
  height: 40px;
  width: auto;
  flex-shrink: 0;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.time-display {
  display: flex;
  align-items: center;
  gap: 12px;
}

.time-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 4px 12px;
}

.time-label {
  font-size: 0.55rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.time-value {
  font-size: 0.85rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}

/* === Buttons === */
.btn {
  padding: 8px 16px;
  border: none;
  border-radius: var(--radius);
  background: var(--blue);
  color: white;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn:hover {
  opacity: 0.85;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 0.8rem;
}

.btn-outline {
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
}

.btn-outline:hover {
  background: var(--bg-hover);
}

.btn-danger {
  background: var(--red);
  color: white;
}

/* === Summary Bar === */
.summary-bar {
  display: flex;
  gap: 12px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.summary-item {
  flex: 1;
  min-width: 100px;
  padding: 16px 20px;
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.summary-item.up {
  background: var(--green-bg);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.summary-item.degraded {
  background: var(--yellow-bg);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.summary-item.down {
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.summary-item.total {
  background: var(--blue-bg);
  border: 1px solid rgba(59, 130, 246, 0.2);
}

.summary-item.clickable {
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.summary-item.clickable:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.summary-item.active {
  transform: translateY(-2px);
  box-shadow: 0 0 0 2px var(--blue);
}

.summary-count {
  font-size: 2rem;
  font-weight: 700;
}

.summary-item.up .summary-count { color: var(--green); }
.summary-item.degraded .summary-count { color: var(--yellow); }
.summary-item.down .summary-count { color: var(--red); }
.summary-item.total .summary-count { color: var(--blue); }

.summary-label {
  font-size: 0.8rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

/* === Alerts === */
.alerts {
  margin-bottom: 20px;
}

.alert {
  padding: 12px 16px;
  border-radius: var(--radius);
  margin-bottom: 8px;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 8px;
}

.alert-warning {
  background: var(--yellow-bg);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: var(--yellow);
}

.alert-critical {
  background: var(--red-bg);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: var(--red);
}

/* === Table Toolbar === */
.table-toolbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.search-input {
  flex: 0 0 280px;
  padding: 8px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.85rem;
  outline: none;
  transition: border-color 0.2s;
}

.search-input:focus {
  border-color: var(--blue);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.search-count {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Table === */
.table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.sites-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.sites-table th {
  background: var(--bg-card);
  padding: 12px 12px;
  text-align: left;
  font-weight: 600;
  color: var(--text-muted);
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  border-bottom: 1px solid var(--border);
}

.sites-table th.sortable {
  cursor: pointer;
  user-select: none;
  transition: color 0.15s;
}

.sites-table th.sortable:hover {
  color: var(--text);
}

.expand-toggle {
  display: none;
}

.sort-icon {
  font-size: 0.65rem;
  margin-left: 2px;
  color: var(--blue);
}

.sites-table td {
  padding: 14px 12px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
  white-space: nowrap;
}

.sites-table td:nth-child(3) {
  white-space: normal;
  min-width: 200px;
}

.sites-table tbody tr {
  cursor: pointer;
  transition: background 0.15s;
}

.sites-table tbody tr:hover {
  background: var(--bg-hover);
}

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

.loading {
  text-align: center;
  color: var(--text-muted);
  padding: 40px !important;
}

/* === Status Indicators === */
.status-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
}

.status-dot.up { background: var(--green); box-shadow: 0 0 8px rgba(34, 197, 94, 0.5); }
.status-dot.degraded { background: var(--yellow); box-shadow: 0 0 8px rgba(234, 179, 8, 0.5); }
.status-dot.down { background: var(--red); box-shadow: 0 0 8px rgba(239, 68, 68, 0.5); }
.status-dot.unknown { background: var(--text-muted); }

.status-text {
  font-weight: 500;
}

/* === SSL / Expiry Badges === */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.badge.ok {
  background: var(--green-bg);
  color: var(--green);
  border: 1px solid rgba(34, 197, 94, 0.2);
}

.badge.warning {
  background: var(--yellow-bg);
  color: var(--yellow);
  border: 1px solid rgba(234, 179, 8, 0.2);
}

.badge.critical {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.badge.unknown {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
}

.badge.disabled {
  background: var(--bg-hover);
  color: var(--text-muted);
  border: 1px solid var(--border);
  font-size: 0.7rem;
  padding: 2px 8px;
}

.site-name {
  font-weight: 600;
  color: var(--text);
}

.site-url {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.uptime-value {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.time-ago {
  font-size: 0.8rem;
  color: var(--text-muted);
}

/* === Ping Dots (Table) === */
.ping-dots {
  display: flex;
  align-items: center;
  gap: 2px;
  cursor: pointer;
  padding: 2px 0;
}

.ping-dot {
  width: 7px;
  height: 7px;
  border-radius: 2px;
  display: inline-block;
  transition: transform 0.15s;
}

.ping-dot:hover {
  transform: scale(1.5);
}

.ping-up { background: var(--green); }
.ping-degraded { background: var(--yellow); }
.ping-down { background: var(--red); }
.ping-no-data { background: var(--border); opacity: 0.4; }

.ping-empty {
  color: var(--text-muted);
  font-size: 0.8rem;
}

/* === Ping Grid 288 (Modal) === */
.ping-grid-288 {
  display: flex;
  flex-wrap: wrap;
  gap: 3px;
  margin-bottom: 8px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 10px 12px;
  width: 100%;
  box-sizing: border-box;
  justify-content: flex-start;
}

.ping-cell {
  width: 20px;
  height: 20px;
  border-radius: 2px;
  flex-shrink: 0;
  transition: transform 0.15s;
  cursor: default;
  position: relative;
}

.ping-cell .ping-tooltip {
  display: none;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 6px 10px;
  font-size: 0.72rem;
  white-space: nowrap;
  color: var(--text);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.ping-cell .ping-tooltip::after {
  content: '';
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  border: 5px solid transparent;
  border-top-color: var(--border);
}

.ping-cell:hover .ping-tooltip {
  display: block;
}

.ping-cell:hover {
  transform: scale(1.3);
  z-index: 1;
}

.ping-cell:hover {
  transform: scale(1.3);
  z-index: 1;
}

.ping-grid-labels {
  display: flex;
  justify-content: space-between;
  font-size: 0.7rem;
  color: var(--text-muted);
  margin-bottom: 12px;
  padding: 0 4px;
}

.ping-label {
  opacity: 0.6;
}

.ping-stats {
  display: flex;
  gap: 24px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
  font-size: 0.85rem;
  color: var(--text-muted);
}

.ping-stats strong {
  color: var(--text);
}

.ping-loading {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* === Modal === */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}

.modal-overlay.active {
  display: flex;
}

.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  width: 90%;
  max-width: 700px;
  max-height: 85vh;
  overflow-y: auto;
}

.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px;
  border-bottom: 1px solid var(--border);
}

.modal-header h2 {
  font-size: 1.1rem;
  font-weight: 600;
}

.modal-close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 4px;
}

.modal-close:hover {
  color: var(--text);
}

.modal-body {
  padding: 24px;
}

.detail-section {
  margin-bottom: 24px;
}

.detail-section h3 {
  font-size: 0.85rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border);
}

.site-detail-url {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--blue);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: var(--radius);
  background: var(--blue-bg);
  transition: opacity 0.2s;
}

.site-detail-url:hover {
  opacity: 0.8;
  text-decoration: underline;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.detail-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.detail-value {
  font-size: 0.95rem;
  font-weight: 500;
}

/* === Endpoint List === */
.endpoint-list {
  list-style: none;
}

.endpoint-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.85rem;
}

.endpoint-item:last-child {
  border-bottom: none;
}

.endpoint-url {
  flex: 1;
  font-family: monospace;
  color: var(--text-muted);
}

.endpoint-code {
  font-weight: 600;
  min-width: 36px;
  text-align: center;
}

.endpoint-time {
  color: var(--text-muted);
  min-width: 60px;
  text-align: right;
}

/* === Admin Panel === */
.admin-panel {
  display: none;
  margin-top: 32px;
  padding: 24px;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
}

.admin-panel.active {
  display: block;
}

/* === Admin Page === */
.admin-page {
  margin-top: 24px;
}

.admin-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-page-header h2 {
  font-size: 1.2rem;
  font-weight: 600;
}

.admin-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.admin-header h2 {
  font-size: 1.1rem;
}

/* === Form === */
.admin-form {
  padding: 20px;
  background: var(--bg);
  border-radius: var(--radius);
  margin-bottom: 20px;
}

.admin-form h3 {
  margin-bottom: 16px;
  font-size: 1rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-group label {
  font-size: 0.8rem;
  color: var(--text-muted);
  font-weight: 500;
}

.form-group input,
.form-group textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-card);
  color: var(--text);
  font-size: 0.9rem;
  font-family: inherit;
}

.form-group input:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--blue);
}

.form-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

/* === Admin Site List === */
.admin-site-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 8px;
  background: var(--bg);
}

.admin-site-item.disabled {
  opacity: 0.6;
}

.admin-site-item.disabled .admin-site-name,
.admin-site-item.disabled .admin-site-url {
  color: var(--text-muted);
}

.admin-site-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

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

.admin-site-url {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.admin-site-actions {
  display: flex;
  gap: 8px;
}

/* === Responsive === */
@media (max-width: 768px) {
  .container {
    padding: 12px;
    overflow-x: hidden;
  }

  body {
    overflow-x: hidden;
  }

  /* Header */
  .header {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .header-left {
    width: 100%;
    justify-content: center;
  }

  .header-left a {
    justify-content: center;
    width: 100%;
  }

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

  .header-right {
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
  }

  .header-right .btn {
    flex: 1;
    min-width: auto;
    text-align: center;
  }

  .version-badge {
    margin-left: 0;
    margin-right: 4px;
  }

  /* Time display */
  .time-display {
    display: flex;
    gap: 6px;
    width: 100%;
  }

  .time-block {
    flex: 1;
    padding: 4px 8px;
    text-align: center;
  }

  .time-label {
    font-size: 0.5rem;
  }

  .time-value {
    font-size: 0.75rem;
  }

  .time-block:nth-child(1),
  .time-block:nth-child(3) {
    display: none;
  }

  /* Summary bar */
  .summary-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .summary-item {
    padding: 12px;
  }

  .summary-count {
    font-size: 1.5rem;
  }

  /* Table toolbar */
  .table-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .search-input {
    flex: none;
    width: 100%;
  }

  /* Table */
  .table-wrapper {
    overflow-x: visible;
    -webkit-overflow-scrolling: touch;
    border: none;
    border-radius: 0;
  }

  .sites-table {
    font-size: 0.75rem;
    min-width: 100%;
    width: 100%;
  }

  .sites-table th,
  .sites-table td {
    padding: 8px 6px;
  }

  /* Mobile card view */
  .sites-table thead {
    display: none;
  }

  .sites-table tbody tr {
    display: flex;
    flex-wrap: wrap;
    border: 1px solid var(--border);
    border-radius: var(--radius);
    margin-bottom: 8px;
    padding: 10px;
    background: var(--bg-card);
    gap: 4px;
  }

  .sites-table tbody tr:hover {
    background: var(--bg-hover);
  }

  .sites-table tbody td {
    border: none;
    padding: 2px 4px;
  }

  .sites-table tbody td:nth-child(1) {
    /* Status */
    flex: 0 0 auto;
    width: auto;
  }

  .sites-table tbody td:nth-child(2) {
    /* Pings - right aligned */
    flex: 0 0 auto;
    width: auto;
    margin-left: auto;
  }

  .sites-table tbody td:nth-child(3) {
    /* Site name - full width */
    flex: 1 1 100%;
    min-width: 0;
    padding-top: 6px;
    border-top: 1px solid var(--border);
    margin-top: 4px;
  }

  .sites-table tbody td:nth-child(n+4) {
    /* All other columns - hidden by default */
    display: none;
  }

  .sites-table tbody tr.expanded td:nth-child(n+4) {
    /* Show when expanded */
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 50%;
    padding: 4px;
  }

  .sites-table tbody td:nth-child(4)::before { content: 'Uptime: '; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
  .sites-table tbody td:nth-child(5)::before { content: 'SSL CDN: '; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
  .sites-table tbody td:nth-child(6)::before { content: 'SSL Origin: '; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }
  .sites-table tbody td:nth-child(7)::before { content: 'Domain: '; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

  .sites-table tbody td:nth-child(8) {
    /* Last Check - always visible */
    display: flex;
    align-items: center;
    gap: 6px;
    flex: 0 0 auto;
    font-size: 0.7rem;
    color: var(--text-muted);
  }

  .sites-table tbody td:nth-child(8)::before { content: 'Checked: '; font-size: 0.65rem; color: var(--text-muted); font-weight: 600; }

  .ping-dots {
    gap: 2px;
  }

  .ping-dot {
    width: 6px;
    height: 6px;
  }

  /* Modals */
  .modal {
    width: 95%;
    max-height: 90vh;
  }

  .modal-header {
    padding: 16px;
  }

  .modal-body {
    padding: 16px;
  }

  /* Ping grid */
  .ping-cell {
    width: 16px;
    height: 16px;
  }

  .ping-grid-288 {
    padding: 8px;
    gap: 2px;
  }

  .ping-stats {
    flex-direction: column;
    gap: 8px;
  }

  /* Alerts */
  .alert {
    font-size: 0.8rem;
    padding: 10px 12px;
  }

  /* Admin page */
  .admin-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .admin-toolbar .btn {
    width: 100%;
    text-align: center;
  }

  .admin-site-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .admin-site-actions {
    width: 100%;
  }

  .admin-site-actions .btn {
    flex: 1;
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  /* Detail grid */
  .detail-grid {
    grid-template-columns: 1fr;
  }

  /* Badges */
  .badge {
    font-size: 0.7rem;
    padding: 3px 8px;
  }

  /* Version badge */
  .version-badge {
    font-size: 0.55rem;
  }
}

@media (max-width: 480px) {
  .header-left .logo {
    height: 32px;
    width: 32px;
  }

  .header-title {
    font-size: 1.1rem;
  }

  .header-subtitle {
    font-size: 0.7rem;
  }

  .summary-count {
    font-size: 1.2rem;
  }

  .summary-label {
    font-size: 0.7rem;
  }

  .time-display {
    gap: 4px;
  }

  .time-block {
    padding: 3px 4px;
    flex: 1;
  }

  /* Hide UTC and Today on very small screens */
  .time-block:nth-child(1),
  .time-block:nth-child(3) {
    display: none;
  }

  .btn {
    padding: 6px 10px;
    font-size: 0.75rem;
  }

  .btn-sm {
    padding: 5px 8px;
    font-size: 0.7rem;
  }

  .header-right .btn {
    padding: 6px 6px;
    font-size: 0.7rem;
  }
}
