*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #1e1a16;
  font-family: Outfit, "Segoe UI", sans-serif;
  background:
    radial-gradient(900px 420px at 0% -10%, #e5f3f1 0%, transparent 60%),
    #efeae2;
}

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

.page {
  width: min(1120px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 2.2rem 0 3rem;
}

.mast {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: end;
  margin-bottom: 1.3rem;
}

.kicker {
  margin: 0;
  color: #0c5c56;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

h1,
.panel h2 {
  font-family: Fraunces, Georgia, serif;
  font-weight: 560;
  letter-spacing: -0.03em;
}

h1 {
  margin: 0.15rem 0 0.35rem;
  font-size: clamp(2.3rem, 5vw, 3.6rem);
  line-height: 0.95;
}

.lede,
.hint {
  margin: 0;
  color: #4e463f;
}

.lede {
  max-width: 38rem;
}

.totals {
  display: flex;
  gap: 0.6rem;
}

.totals div {
  min-width: 5.6rem;
  padding: 0.55rem 0.85rem 0.5rem;
  background: #fffdf9;
  border: 1px solid #e3d9cc;
  border-radius: 14px;
}

.totals strong {
  display: block;
  font-family: Fraunces, Georgia, serif;
  font-size: 1.8rem;
  line-height: 1;
}

.totals span {
  color: #6d645c;
  font-size: 0.78rem;
}

.banner {
  margin-bottom: 1rem;
  padding: 0.75rem 1rem;
  border-radius: 12px;
}

.banner[hidden] {
  display: none;
}

.banner-error {
  background: #fde8e1;
  color: #6e2614;
}

.banner-ok {
  background: #e5f4ef;
  color: #0c4f48;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.85fr);
  gap: 1.25rem;
  align-items: start;
}

.filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: end;
}

.filters label,
.panel label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.82rem;
  font-weight: 600;
}

.filters .inline-check {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500;
}

.filter-actions {
  display: flex;
  grid-column: 1 / -1;
  gap: 0.85rem;
  align-items: center;
  justify-content: space-between;
}

input,
select,
textarea {
  width: 100%;
  padding: 0.55rem 0.7rem;
  background: #fff;
  border: 1px solid #d9cec0;
  border-radius: 10px;
}

textarea {
  resize: vertical;
}

.inline-check input,
.check input {
  width: 1.15rem;
  height: 1.15rem;
  accent-color: #0c5c56;
}

.selection-count {
  margin: 0.85rem 0 0.7rem;
  color: #6d645c;
  font-size: 0.92rem;
}

.tasks {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.task,
.panel,
.empty {
  background: #fffdf9;
  border: 1px solid #e3d9cc;
  border-radius: 16px;
}

.task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 0.75rem 0.9rem;
  padding: 0.9rem 1rem;
}

.task.is-done .task-title {
  color: #6d645c;
  text-decoration: line-through;
}

.check {
  display: flex;
  padding-top: 0.15rem;
}

.task-title,
.notes,
.meta {
  margin: 0;
}

.task-title {
  font-weight: 600;
}

.notes {
  margin-top: 0.25rem;
  color: #4e463f;
}

.meta {
  display: flex;
  gap: 0.45rem;
  margin-top: 0.45rem;
  color: #6d645c;
  font-size: 0.92rem;
}

.comments {
  display: grid;
  gap: 0.35rem;
  margin-top: 0.75rem;
}

.comment {
  margin: 0;
  color: #4e463f;
  font-size: 0.92rem;
}

.comment time {
  color: #6d645c;
}

.comment time::after {
  content: ' · ';
  color: #b3a89c;
}

.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
  align-items: end;
  margin-top: 0.2rem;
}

.composer textarea {
  min-height: 2.7rem;
}

.composer .comment-save {
  grid-column: 1 / -1;
  justify-self: start;
}

button.mic {
  color: #0c5c56;
  background: #fffdf9;
  border: 1px solid #0c5c56;
}

button.mic.is-listening {
  color: #fff;
  background: #9d3418;
  border-color: #9d3418;
}

.dot {
  color: #b3a89c;
}

.prio {
  align-self: start;
  padding: 0.25rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
}

.prio-hoog {
  background: #fde8e1;
  color: #9d3418;
}

.prio-normaal {
  background: #f8efd8;
  color: #8a5a12;
}

.prio-laag {
  background: #e7f0ea;
  color: #2f5a40;
}

.empty {
  padding: 1.1rem 1rem;
  color: #6d645c;
  border-style: dashed;
}

.side {
  display: grid;
  gap: 1rem;
}

.panel {
  display: grid;
  gap: 0.75rem;
  padding: 1rem 1.05rem 1.15rem;
}

.panel h2 {
  margin: 0;
  font-size: 1.45rem;
}

.hint {
  font-size: 0.85rem;
  font-weight: 400;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.7rem;
}

button {
  padding: 0.7rem 1rem;
  font-weight: 600;
  color: #f3fffc;
  background: #0c5c56;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

button.secondary {
  color: #3c342c;
  background: transparent;
  border: 1px solid #d3c6b6;
}

button:disabled {
  cursor: wait;
  opacity: 0.6;
}

input:focus-visible,
select:focus-visible,
textarea:focus-visible,
button:focus-visible {
  outline: 2px solid #0c5c56;
  outline-offset: 2px;
}

@media (max-width: 860px) {
  .layout,
  .filters,
  .split,
  .mast {
    grid-template-columns: 1fr;
  }

  .mast {
    display: grid;
  }

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

@media (max-width: 560px) {
  .filters,
  .split {
    grid-template-columns: 1fr;
  }

  .filter-actions {
    align-items: stretch;
    flex-direction: column;
  }
}
