:root {
  color-scheme: light;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  background: #f4f7f7;
  color: #173337;
}

header {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto;
  padding: 34px 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .04em;
}

.logo {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #00a99d;
  color: white;
  font-size: 19px;
}

main {
  width: min(720px, calc(100% - 32px));
  margin: 0 auto 64px;
}

.hero { margin: 20px 0 28px; }

h1 {
  margin: 0 0 8px;
  font-size: clamp(34px, 7vw, 56px);
  letter-spacing: -.045em;
}

.subtitle {
  margin: 0;
  color: #698184;
  font-size: 17px;
}

.panel, .details {
  overflow: hidden;
  background: white;
  border: 1px solid #dce7e7;
  border-radius: 20px;
  box-shadow: 0 18px 50px rgba(24, 62, 66, .08);
}

form {
  display: flex;
  gap: 10px;
  padding: 18px;
  border-bottom: 1px solid #e5eded;
}

input {
  min-width: 0;
  flex: 1;
  border: 1px solid #cbdada;
  border-radius: 12px;
  padding: 13px 14px;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: #00a99d;
  box-shadow: 0 0 0 3px rgba(0, 169, 157, .13);
}

button {
  border: 0;
  border-radius: 12px;
  background: #00a99d;
  color: white;
  padding: 0 20px;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

button:hover { background: #008f85; }
button:disabled { opacity: .55; cursor: wait; }

#status {
  min-height: 22px;
  padding: 16px 20px 0;
  color: #718689;
  font-size: 14px;
}

#status.error { color: #b33a3a; }

ul { list-style: none; margin: 0; padding: 8px 18px 18px; }

li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 15px 4px;
  border-bottom: 1px solid #edf2f2;
}

li:last-child { border-bottom: 0; }
.dot { width: 10px; height: 10px; flex: 0 0 auto; border: 2px solid #00a99d; border-radius: 50%; }
.todo-text { flex: 1; overflow-wrap: anywhere; }
.delete { width: 36px; height: 36px; padding: 0; background: transparent; color: #8ca0a2; font-size: 22px; font-weight: 400; }
.delete:hover { background: #fff0f0; color: #b33a3a; }
.empty { padding: 30px 4px; color: #718689; text-align: center; }

footer { margin-top: 18px; color: #829597; font-size: 13px; text-align: center; }

@media (max-width: 520px) {
  form { flex-direction: column; }
  form button { min-height: 46px; }
}
