* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #0f1115;
  color: #f0f0f0;
  display: flex;
  justify-content: center;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.screen {
  width: 100%;
  max-width: 420px;
  padding: 32px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

h1 {
  margin: 0 0 4px;
  font-size: 28px;
}

p {
  margin: 0;
  color: #c7c7c7;
  line-height: 1.4;
}

label {
  font-size: 14px;
  color: #9a9a9a;
  margin-top: 8px;
}

input[type='number'] {
  font-size: 20px;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #333;
  background: #1a1d24;
  color: #fff;
}

button {
  font-size: 17px;
  padding: 14px;
  border-radius: 10px;
  border: none;
  cursor: pointer;
  font-weight: 600;
}

button.primary {
  background: #e8482c;
  color: #fff;
}

button.secondary {
  background: #1a1d24;
  color: #fff;
  border: 1px solid #333;
}

button.link {
  background: none;
  color: #777;
  font-weight: 400;
  font-size: 14px;
  text-decoration: underline;
}

.status {
  background: #1a1d24;
  border-radius: 10px;
  padding: 18px;
  margin: 12px 0;
}

.status-line {
  font-size: 22px;
  font-weight: 700;
}

.status-sub {
  color: #9a9a9a;
  margin-top: 4px;
}

.set-list {
  background: #1a1d24;
  border-radius: 10px;
  padding: 16px 16px 16px 36px;
  margin: 0;
}

.set-list li {
  padding: 4px 0;
}

.progress-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.progress-table th,
.progress-table td {
  text-align: left;
  padding: 8px 4px;
  border-bottom: 1px solid #2a2d34;
}

.range-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px;
}

.range-btn {
  background: #1a1d24;
  color: #fff;
  border: 1px solid #333;
  padding: 18px;
  font-size: 18px;
}

.range-btn:last-child {
  grid-column: span 2;
}

.set-overview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.pill {
  background: #1a1d24;
  border: 1px solid #333;
  color: #777;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 13px;
}

.pill.done {
  background: #2a3a2a;
  border-color: #3d5a3d;
  color: #8fd98f;
}

.pill.active {
  background: #e8482c;
  border-color: #e8482c;
  color: #fff;
  font-weight: 700;
}

.set-target {
  font-size: 64px;
  font-weight: 800;
  text-align: center;
  padding: 20px 0 0;
}

.timer {
  font-size: 72px;
  font-weight: 800;
  text-align: center;
  padding: 20px 0;
  color: #e8482c;
}
