/* extras Tailwind doesn't cover */
:root { color-scheme: dark; }

html, body { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }

.tile {
  background: #1a2028;
  border: 1px solid #2a3038;
  border-radius: 8px;
  padding: 16px;
}

.tile-big-num {
  font-size: clamp(1.5rem, 7vw, 2.5rem);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
}
.tile-label { color: #8a9099; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; white-space: nowrap; }
.tile-unit  { color: #8a9099; font-size: 0.85rem; margin-left: 3px; }

table.data { width: 100%; border-collapse: collapse; font-size: 13px; }
table.data th, table.data td { padding: 6px 10px; text-align: right; border-bottom: 1px solid #2a3038; }
table.data th { color: #8a9099; font-weight: normal; text-align: right; }
table.data th:first-child, table.data td:first-child { text-align: left; }

/* Wrap tables that might overflow */
.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-scroll table.data { min-width: 500px; }

@media (max-width: 640px) {
  .tile { padding: 10px 8px; }
  .tile-big-num { font-size: clamp(1.25rem, 5.5vw, 1.6rem); }
  .tile-label { font-size: 0.65rem; }
  table.data { font-size: 12px; }
  table.data th, table.data td { padding: 5px 6px; }
  /* Compact stats/labels on dashboard tiles */
  .tile-unit { font-size: 0.7rem; }
}

.row-clickable { cursor: pointer; }
.row-clickable:hover { background: #232a33; }

.chip { display: inline-block; padding: 2px 8px; border-radius: 12px; font-size: 11px; }
.chip-ok   { background: rgba(78,160,80,.15); color: #4ea050; }
.chip-err  { background: rgba(208,80,80,.15); color: #d05050; }
.chip-warn { background: rgba(224,160,96,.15); color: #e0a060; }

input, select, button {
  font: inherit;
  background: #1a2028;
  color: #e6e6e6;
  border: 1px solid #2a3038;
  border-radius: 4px;
  padding: 6px 10px;
}
button.primary { background: #4ec9b0; color: #0f1419; border-color: #4ec9b0; cursor: pointer; }
button.primary:hover { filter: brightness(1.1); }
