* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #101820;
  color: #eef4f8;
}

button,
input {
  font: inherit;
}

.shell {
  width: min(92vw, 460px);
}

.task-panel {
  background: #192734;
  border: 1px solid #2b3c4c;
  border-radius: 8px;
  padding: 24px;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.28);
}

.header-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
}

h1 {
  margin: 0;
  font-size: 2rem;
  line-height: 1.1;
}

p {
  margin: 6px 0 0;
  color: #91a8b8;
}

.count {
  min-width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #2d80e6;
  font-weight: 700;
}

.add-form {
  display: flex;
  gap: 8px;
  margin: 22px 0;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #33495a;
  border-radius: 8px;
  padding: 11px 12px;
  background: #0f1720;
  color: inherit;
}

input:focus {
  outline: 2px solid #66a9ff;
  outline-offset: 2px;
}

.add-form button,
.delete {
  border: 0;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 700;
}

.add-form button {
  padding: 0 18px;
  background: #2d80e6;
}

.task-list {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 0;
  border-top: 1px solid #2b3c4c;
}

.task-toggle {
  width: 100%;
  min-height: 38px;
  border: 0;
  padding: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  text-align: left;
}

.task-toggle span {
  overflow-wrap: anywhere;
}

.done .task-toggle span {
  color: #91a8b8;
  text-decoration: line-through;
}

.delete {
  min-width: 38px;
  min-height: 34px;
  background: #cf3d3d;
}

.empty {
  padding-top: 12px;
  border-top: 1px solid #2b3c4c;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
