:root {
  font-family: system-ui, Segoe UI, Roboto, sans-serif;
  line-height: 1.5;
  color: #1a1a1a;
  background: #f4f4f5;
}

.wrap {
  max-width: 52rem;
  margin: 0 auto;
  padding: 1.5rem;
}

h1 { font-size: 1.75rem; margin-top: 0; }
h2 { font-size: 1.15rem; margin-top: 0; }

.muted { color: #52525b; font-size: 0.95rem; }
.error { color: #b91c1c; background: #fef2f2; padding: 0.75rem 1rem; border-radius: 6px; }

.card {
  background: #fff;
  border-radius: 8px;
  padding: 1.25rem;
  margin: 1rem 0;
  box-shadow: 0 1px 3px rgba(0,0,0,.08);
}

label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
input[type="file"] { margin-bottom: 1rem; }

button, .linkish {
  font: inherit;
  cursor: pointer;
}

button[type="submit"] {
  background: #18181b;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

button.linkish {
  background: none;
  border: none;
  color: #2563eb;
  text-decoration: underline;
  padding: 0;
}

.toolbar { margin: 1rem 0; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

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

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

th { font-weight: 600; color: #3f3f46; }

.badge.ok {
  background: #dcfce7;
  color: #166534;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

a { color: #2563eb; }

/* FR-005 — bubble timeline (one bubble per lot) */
.bubble-timeline-root {
  margin-top: 0.75rem;
  min-height: 12rem;
}

.bubble-lane {
  position: relative;
  min-height: 11rem;
  margin: 0.5rem 0 0.25rem;
}

.bubble-axis {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  background: linear-gradient(90deg, #d4d4d8, #71717a, #d4d4d8);
  border-radius: 1px;
}

.bubble-wrap {
  position: absolute;
  transform: translateX(-50%);
  z-index: 1;
}

.bubble {
  display: block;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.95);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
  padding: 0;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.bubble:hover,
.bubble:focus-visible {
  transform: scale(1.06);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  outline: none;
}

.bubble--free {
  background: radial-gradient(circle at 30% 30%, #86efac, #22c55e);
}

.bubble--wait {
  background: radial-gradient(circle at 30% 30%, #fde68a, #eab308);
}

.bubble-legend {
  font-size: 0.85rem;
  margin-top: 0.75rem;
}

.footer-links {
  margin-top: 1.5rem;
}

.deploy-choice-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
  align-items: center;
}

.btn-primary {
  font: inherit;
  cursor: pointer;
  background: #18181b;
  color: #fff;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.btn-secondary {
  font: inherit;
  cursor: pointer;
  background: #e4e4e7;
  color: #18181b;
  border: none;
  padding: 0.5rem 1rem;
  border-radius: 6px;
}

.deploy-dismiss {
  margin-top: 0.75rem;
}

.deploy-list {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.deploy-list li {
  margin-bottom: 0.5rem;
}
