:root {
  --bg: #f6f8fb;
  --card: #fff;
  --border: #e3e8ef;
  --text: #1a2233;
  --muted: #6b7585;
  --accent: #0b57d0;
  --accent-light: #e8f0fe;
  --ok: #0b8043;
  --warn: #c77700;
  --err: #c5221f;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  margin: 0;
  padding: 0 1rem;
  line-height: 1.5;
}
header {
  max-width: 1000px;
  margin: 2rem auto 1.5rem;
}
header h1 { margin: 0 0 .2rem; font-size: 1.6rem; }
header .sub { color: var(--muted); margin: 0; }
section.card {
  max-width: 1000px;
  margin: 1rem auto;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.2rem 1.4rem;
}
h2 { margin-top: 0; font-size: 1.15rem; }
form label {
  display: block;
  margin: 1rem 0;
}
form label small {
  display: block;
  color: var(--muted);
  font-size: .8rem;
  margin-top: .15rem;
}
input[type=number] {
  width: 120px;
  padding: .4rem .6rem;
  font-size: 1rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  margin-left: .5rem;
}
button {
  background: var(--accent);
  color: #fff;
  border: none;
  padding: .6rem 1.2rem;
  font-size: 1rem;
  border-radius: 5px;
  cursor: pointer;
  margin-top: .5rem;
}
button:hover { background: #0845a8; }
.meta { color: var(--muted); font-size: .9rem; }
.warn { color: var(--warn); font-weight: 500; }
table.runs { border-collapse: collapse; width: 100%; }
table.runs th, table.runs td {
  text-align: left;
  padding: .5rem .7rem;
  border-bottom: 1px solid var(--border);
  font-variant-numeric: tabular-nums;
}
table.runs a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 500;
}
table.runs a:hover { text-decoration: underline; }
code { background: var(--accent-light); padding: 2px 6px; border-radius: 3px; font-size: .88em; }
.stats {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1rem;
  margin-bottom: 1rem;
}
.stats div {
  background: var(--bg);
  border-radius: 6px;
  padding: .6rem .8rem;
}
.stats strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 600;
  margin-bottom: .2rem;
}
.stats small {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  text-transform: uppercase;
  letter-spacing: .03em;
}
.progressbar {
  background: var(--bg);
  height: 10px;
  border-radius: 5px;
  overflow: hidden;
  margin: 1rem 0 .5rem;
}
.progressbar #bar {
  background: linear-gradient(90deg, var(--accent), #4a90e2);
  height: 100%;
  width: 0;
  transition: width .4s ease;
}
.log-last {
  font-family: "SF Mono", Menlo, monospace;
  font-size: .8rem;
  background: var(--bg);
  padding: .5rem .7rem;
  border-radius: 4px;
  color: var(--muted);
  margin: .5rem 0;
  min-height: 1.4em;
}
.cost-estimator {
  background: var(--bg);
  border-radius: 6px;
  padding: 1rem 1.1rem;
  margin: 1rem 0;
}
.cost-estimator h3 {
  margin: 0 0 .5rem;
  font-size: .95rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: .03em;
}
table.cost-table {
  border-collapse: collapse;
  width: 100%;
  margin: .5rem 0;
  font-variant-numeric: tabular-nums;
}
table.cost-table th, table.cost-table td {
  padding: .35rem .6rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  font-weight: 400;
}
table.cost-table thead th {
  font-size: .78rem;
  text-transform: uppercase;
  color: var(--muted);
  letter-spacing: .02em;
}
table.cost-table td:nth-child(3),
table.cost-table td:nth-child(4),
table.cost-table th:nth-child(3),
table.cost-table th:nth-child(4) { text-align: right; }
table.cost-table tr.total th,
table.cost-table tr.total td {
  font-weight: 600;
  border-bottom: none;
  border-top: 1px solid var(--border);
}
table.cost-table small { color: var(--muted); font-size: .75rem; }
