:root {
  --bg: #f1f5f9;
  --ink: #142132;
  --muted: #4e5f72;
  --card: #ffffff;
  --line: #d8e1eb;
  --accent: #0f766e;
  --accent-strong: #0b4f4a;
  --danger: #b42318;
  --shadow: 0 12px 30px rgba(10, 26, 38, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Manrope", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 10% 10%, #e6fffa 0, transparent 42%),
    radial-gradient(circle at 90% 5%, #fef3c7 0, transparent 35%),
    var(--bg);
}

.layout {
  width: min(980px, 94vw);
  margin: 24px auto 40px;
}

.panel {
  background: rgba(255, 255, 255, 0.84);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(6px);
  padding: 22px;
}

.hidden {
  display: none;
}

h1,
h2 {
  margin: 0 0 10px;
}

h1 {
  font-size: 30px;
  letter-spacing: -0.6px;
}

h2 {
  font-size: 20px;
}

.hint {
  color: var(--muted);
  margin: 0 0 16px;
}

.grid-two {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px;
}

label {
  display: grid;
  gap: 8px;
  margin: 10px 0;
  font-weight: 600;
  font-size: 14px;
}

input,
textarea,
select,
button {
  font: inherit;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  background: #fff;
}

textarea {
  resize: vertical;
  min-height: 84px;
}

button,
.actions a {
  border: 0;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  cursor: pointer;
  text-decoration: none;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

button:hover,
.actions a:hover {
  background: var(--accent-strong);
}

button.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--line);
}

button.ghost:hover {
  background: #f8fafc;
}

.status {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.topbar,
.list-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.task-form {
  margin-top: 14px;
}

.tasks {
  margin-top: 14px;
  display: grid;
  gap: 12px;
}

.task {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px;
  background: #fff;
}

.task-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.badge {
  font-size: 12px;
  border-radius: 999px;
  padding: 5px 10px;
  background: #e2f5f3;
  color: #0b4f4a;
  font-weight: 700;
}

.task small {
  color: var(--muted);
}

.task-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

@media (max-width: 820px) {
  .layout {
    width: min(100%, 100vw);
    margin: 0;
  }

  .panel {
    border-radius: 0;
    min-height: 100vh;
    padding: 18px;
  }

  .grid-two {
    grid-template-columns: 1fr;
  }

  .topbar,
  .list-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .actions {
    width: 100%;
  }

  .actions a,
  .actions button {
    flex: 1;
  }
}
