:root {
  --bg: #f6f7fb;
  --card: #ffffff;
  --text: #1f2937;
  --muted: #667085;
  --accent: #0f766e;
  --accent-strong: #115e59;
  --border: #e5e7eb;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  background: radial-gradient(circle at top right, #ccfbf1 0%, var(--bg) 40%);
  color: var(--text);
}

.container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 2rem 1rem 4rem;
  display: grid;
  gap: 1.25rem;
}

.hero h1 {
  margin: 0.2rem 0 0.8rem;
  font-size: clamp(1.8rem, 5vw, 2.6rem);
}

.hero p {
  margin: 0;
  line-height: 1.6;
}

.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.capacity {
  margin-top: 0.75rem;
  font-weight: 600;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent-strong);
  font-weight: 700;
  margin: 0;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1rem;
  box-shadow: 0 10px 25px rgba(17, 24, 39, 0.05);
}

h2 {
  margin-top: 0;
}

form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.35rem;
  font-weight: 600;
}

input,
select,
button {
  font: inherit;
}

input,
select {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
}

button,
.link-button {
  align-self: end;
  border: 0;
  border-radius: 10px;
  padding: 0.7rem 1rem;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  display: inline-block;
}

button:hover,
.link-button:hover {
  background: var(--accent-strong);
}

button:disabled {
  background: #94a3b8;
  cursor: not-allowed;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
}

th,
td {
  text-align: left;
  padding: 0.65rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: #f8fafc;
}

.muted {
  color: var(--muted);
}

.alerts {
  margin-bottom: 0.75rem;
  display: grid;
  gap: 0.5rem;
}

.alert {
  margin: 0;
  border-radius: 10px;
  padding: 0.6rem 0.75rem;
  font-weight: 600;
}

.alert.success {
  background: #ecfdf3;
  color: #166534;
  border: 1px solid #86efac;
}

.alert.error {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}

.inline-form input {
  min-width: 120px;
}

.button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  align-items: center;
}

.button-row form {
  display: block;
}

.logs {
  margin: 0;
  padding: 0.75rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: #0b1220;
  color: #dbeafe;
  max-height: 420px;
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

.slot-chart-card {
  min-width: 180px;
  display: grid;
  justify-items: center;
  gap: 0.45rem;
  padding: 0.8rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fafc;
}

.slot-chart {
  width: 110px;
  height: 110px;
  transform: rotate(-90deg);
}

.slot-chart-bg,
.slot-chart-used {
  fill: none;
  stroke-width: 3.8;
}

.slot-chart-bg {
  stroke: #e5e7eb;
}

.slot-chart-used {
  stroke: var(--accent);
  stroke-linecap: round;
}
