:root {
  color-scheme: light;
  --bg: #f7f3ea;
  --ink: #1c2520;
  --muted: #66726b;
  --panel: #ffffff;
  --line: #d9ded8;
  --accent: #256f5b;
  --accent-strong: #17483c;
  --coral: #d6674f;
  --shadow: 0 20px 60px rgba(25, 35, 30, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    linear-gradient(140deg, rgba(37, 111, 91, 0.16), transparent 38%),
    linear-gradient(320deg, rgba(214, 103, 79, 0.18), transparent 34%),
    var(--bg);
}

button,
input {
  font: inherit;
}

.shell {
  width: min(960px, calc(100% - 32px));
  margin: 0 auto;
  padding: 56px 0;
}

.intro {
  max-width: 720px;
  margin-bottom: 28px;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  max-width: 12ch;
  font-size: clamp(3rem, 12vw, 6.8rem);
}

h2 {
  font-size: 1.7rem;
}

.lede {
  max-width: 62ch;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.7;
}

.board {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
  padding: 24px;
}

.board-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.count {
  display: grid;
  min-width: 56px;
  height: 56px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
}

.form {
  display: grid;
  grid-template-columns: minmax(150px, 0.35fr) minmax(240px, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.form label {
  display: block;
  margin-bottom: 10px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.form input {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px 15px;
  color: var(--ink);
  background: #fff;
}

.form input:focus {
  border-color: var(--accent);
  outline: 3px solid rgba(37, 111, 91, 0.16);
}

.form button {
  min-height: 51px;
  border: 0;
  border-radius: 8px;
  padding: 0 22px;
  color: #fff;
  background: var(--accent);
  font-weight: 800;
  cursor: pointer;
}

.form button:hover,
.form button:focus-visible {
  background: var(--accent-strong);
}

.form button:disabled {
  cursor: wait;
  opacity: 0.72;
}

.win-list {
  display: grid;
  gap: 10px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.win-list li {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 14px;
  background: #fbfcfa;
}

.win-content {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.win-text {
  overflow-wrap: anywhere;
  line-height: 1.4;
}

.win-meta {
  color: var(--muted);
  font-size: 0.84rem;
}

.win-actions {
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.win-list button {
  flex: 0 0 auto;
  border: 0;
  border-radius: 999px;
  padding: 6px 10px;
  cursor: pointer;
}

.thumb-button {
  color: var(--accent-strong);
  background: rgba(37, 111, 91, 0.12);
}

.thumb-button.active {
  color: #fff;
  background: var(--accent);
}

.done-button {
  color: var(--coral);
  background: rgba(214, 103, 79, 0.12);
}

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

.status {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 0.95rem;
}

.pulse {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--coral);
}

.status.ready .pulse {
  background: var(--accent);
}

@media (max-width: 640px) {
  .shell {
    width: min(100% - 24px, 960px);
    padding: 32px 0;
  }

  .board {
    padding: 18px;
  }

  .board-header,
  .form {
    grid-template-columns: 1fr;
  }

  .board-header {
    display: grid;
  }

  .count {
    width: 48px;
    height: 48px;
  }

  .form button {
    min-height: 48px;
  }

  .win-list li,
  .win-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
