:root {
  --color-bg: #fff7ed;
  --color-surface: #ffffff;
  --color-ink: #7c2d12;
  --color-accent: #c2410c;
  --color-accent-dark: #9a3412;
  --color-border: #fdba74;
  --color-done: #dcfce7;
  --color-open: #fff7ed;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  padding: 24px 16px;
  background: var(--color-bg);
  color: var(--color-ink);
  font-family: "Trebuchet MS", Verdana, sans-serif;
}

.page {
  width: 100%;
  max-width: 760px;
  margin: 0 auto;
}

.hero {
  margin: 0 0 20px;
  padding: 24px;
  background: var(--color-accent-dark);
  color: #fff7ed;
  border-radius: 16px;
}

.hero h1,
.hero p {
  margin: 0 0 8px;
}

.panel {
  margin: 0 0 16px;
  padding: 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
}

.field {
  margin: 0 0 14px;
}

label {
  display: block;
  margin: 0 0 6px;
  font-weight: 700;
}

input[type="text"],
input[type="number"],
select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #fb923c;
  border-radius: 8px;
  font-size: 16px;
  background: #ffffff;
  color: var(--color-ink);
}

.actions,
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 8px 0 12px;
}

button {
  padding: 10px 14px;
  border: 0;
  border-radius: 8px;
  background: var(--color-accent);
  color: #fff7ed;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: background-color 160ms ease, transform 160ms ease;
}

button:hover,
button:focus-visible {
  background: var(--color-accent-dark);
  transform: translateY(-1px);
}

button.danger {
  background: #b91c1c;
}

button.filter {
  background: #fed7aa;
  color: var(--color-ink);
}

button.filter.is-active {
  background: var(--color-accent);
  color: #fff7ed;
}

.status,
.summary {
  margin: 0;
  padding: 12px;
  background: #ffedd5;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-weight: 700;
}

.status.is-ok {
  color: #166534;
}

.status.is-warn {
  color: #b91c1c;
}

.list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.drill-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: 10px;
  background: var(--color-open);
  transition: background-color 180ms ease;
}

.drill-card.is-done {
  background: var(--color-done);
}

.drill-card h3,
.drill-card p {
  margin: 0 0 4px;
}

.drill-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

@media (prefers-reduced-motion: reduce) {
  button,
  .drill-card {
    transition-duration: 0.01ms;
  }
}
