/* HOSE Design System
   Utilitarian, dense, left-aligned layout for data-intensive ops. */

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

/* === Base === */
body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  background: #fff;
  color: #1a1a1a;
  line-height: 1.4;
}

/* === Navigation === */
nav {
  background: #f0f0f0;
  border-bottom: 1px solid #ddd;
  padding: 6px 16px;
  display: flex;
  align-items: center;
  gap: 1.5rem;
  font-size: 13px;
}

nav .brand {
  font-weight: 700;
  font-size: 13px;
  color: #1a1a1a;
  text-decoration: none;
  letter-spacing: 0.05em;
}

nav a {
  color: #666;
  text-decoration: none;
}

nav a:hover,
nav a.active {
  color: #1a1a1a;
}

/* === Page layout === */
.page {
  padding: 16px;
}

/* === Typography === */
h1 {
  font-size: 1.1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 12px;
}

h2 {
  font-size: 1rem;
  font-weight: 600;
  color: #1a1a1a;
  margin-bottom: 8px;
}

/* === Stats row (dashboard) === */
.stats {
  display: flex;
  gap: 2rem;
  margin-bottom: 16px;
}

.stat {
  display: flex;
  align-items: baseline;
  gap: 6px;
}

.stat .value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1a1a1a;
  font-variant-numeric: tabular-nums;
}

.stat .label {
  font-size: 12px;
  color: #666;
}

/* === Section === */
.section {
  background: #f8f8f8;
  border: 1px solid #eee;
  padding: 12px;
  margin-bottom: 12px;
}

/* === Tables === */
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
}

th {
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 8px;
  border-bottom: 1px solid #ddd;
}

td {
  padding: 3px 8px;
  border-bottom: 1px solid #f0f0f0;
  color: #1a1a1a;
}

tr:hover {
  background: #f8f8f8;
}

/* === Links === */
a {
  color: #0055cc;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

/* === Badges === */
.badge {
  display: inline-block;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-weight: 600;
}

.badge-active {
  background: #d4edda;
  color: #155724;
}

.badge-completed {
  background: #e2e3e5;
  color: #555;
}

/* === Monospace elements === */
code {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 12px;
}

pre {
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
  font-size: 12px;
  background: #f8f8f8;
  border: 1px solid #eee;
  padding: 8px;
  overflow-x: auto;
}

/* === Peer tags === */
.peer-list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
}

.peer-tag {
  background: #e9ecef;
  padding: 1px 6px;
  border-radius: 3px;
  font-size: 12px;
  font-family: "SF Mono", "Fira Code", "Fira Mono", Menlo, Consolas, monospace;
}

/* === Empty state === */
.empty {
  text-align: center;
  padding: 2rem;
  color: #999;
  font-size: 13px;
}

/* === Detail page metadata === */
.detail-meta p {
  margin-bottom: 4px;
  font-size: 13px;
}

.detail-meta strong {
  color: #666;
  font-weight: 600;
}

/* === Telemetry sections === */
.telemetry-section {
  margin-top: 16px;
}

.telemetry-section h2 {
  font-size: 0.95rem;
  margin-bottom: 8px;
}

/* === SSE status indicator === */
.sse-status {
  font-size: 12px;
  color: #999;
  margin-bottom: 8px;
}

.sse-status.connected {
  color: #155724;
}

.sse-status.disconnected {
  color: #721c24;
}

/* === Subtitle text === */
.subtitle {
  color: #666;
  font-size: 13px;
  margin-bottom: 12px;
}
