* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Onest', sans-serif;
  background: radial-gradient(circle at top, #fff6fb, #f7f2ff 55%, #f2f6ff 100%);
  color: #3b2433;
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px 18px 36px;
}

.notebook {
  position: relative;
  width: min(1400px, 100%);
  border-radius: 28px;
  padding: 32px 32px 36px 72px;
  background: repeating-linear-gradient(
      to bottom,
      #fffaf7 0px,
      #fffaf7 30px,
      #f6d4e2 31px,
      #fffaf7 32px
    );
  border: 1px solid rgba(230, 188, 205, 0.5);
  box-shadow: 0 28px 60px rgba(46, 24, 44, 0.2);
  overflow: hidden;
}

.notebook::before {
  content: '';
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 40px;
  width: 3px;
  background: rgba(230, 140, 175, 0.35);
  border-radius: 4px;
}

.notebook::after {
  content: '';
  position: absolute;
  left: 16px;
  top: 80px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fbe7f0;
  box-shadow:
    0 110px 0 0 #fbe7f0,
    0 220px 0 0 #fbe7f0,
    0 330px 0 0 #fbe7f0;
  border: 1px solid rgba(210, 140, 170, 0.35);
}

.notebook__header {
  position: relative;
  margin-bottom: 22px;
}

.notebook__back {
  background: #fff1f7;
  border: none;
  color: #8a4362;
  font-weight: 600;
  border-radius: 999px;
  padding: 6px 14px;
  cursor: pointer;
}

.notebook__eyebrow {
  margin: 16px 0 6px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #b46b8b;
}

.notebook__title {
  margin: 0;
  font-family: 'Caveat', cursive;
  font-size: 40px;
  font-weight: 600;
  color: #432235;
}

.notebook__subtitle {
  margin: 8px 0 0;
  font-size: 14px;
  color: #6b4258;
}

.notebook__tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin: 18px 0 16px;
}

.notebook__tab {
  border: none;
  background: transparent;
  color: #8a4362;
  padding: 6px 2px;
  cursor: pointer;
  font-weight: 600;
  font-size: 14px;
}

.notebook__tab.is-active {
  color: #3d1f31;
  position: relative;
}

.notebook__tab.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 3px;
  border-radius: 999px;
  background: #f2a9c8;
}

.notebook__panel {
  display: none;
}

.notebook__panel.is-active {
  display: block;
}

.notebook__list {
  display: grid;
  gap: 12px;
}

.todo-insights {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.todo-insight {
  margin: 0;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(220, 201, 214, 0.85);
}

.todo-insight__label {
  margin: 0;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #91617a;
}

.todo-insight__value {
  margin: 4px 0 0;
  font-size: 22px;
  font-weight: 700;
  color: #3f2134;
}

.todo-filters {
  display: flex;
  gap: 8px;
  margin: 0 0 14px;
  flex-wrap: wrap;
}

.todo-filter {
  border: 1px solid rgba(208, 184, 198, 0.9);
  border-radius: 999px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.85);
  color: #7f4a66;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.todo-filter.is-active {
  border-color: rgba(228, 129, 176, 0.8);
  background: #ffe7f2;
  color: #4c1f37;
}

.notebook__form {
  display: grid;
  gap: 12px;
  padding: 12px 14px;
  margin-bottom: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(204, 186, 200, 0.8);
  background: rgba(255, 255, 255, 0.75);
}

.notebook__form[hidden] {
  display: none !important;
}

.notebook__composer {
  display: grid;
  gap: 10px;
  margin-bottom: 18px;
}

.notebook__toggle {
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: linear-gradient(120deg, #f3c3d7, #f0adc8);
  color: #3d1f31;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 10px 18px rgba(224, 150, 185, 0.2);
}

.notebook__field {
  display: grid;
  gap: 6px;
}

.notebook__field label {
  font-size: 12px;
  color: #8b4b6e;
}

.notebook__field input,
.notebook__field select {
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(206, 186, 202, 0.9);
  font-family: 'Onest', sans-serif;
  font-size: 13px;
  background: #fff;
}

.notebook__field select {
  appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, #8a4d6f 50%),
    linear-gradient(135deg, #8a4d6f 50%, transparent 50%),
    linear-gradient(to right, rgba(238, 210, 224, 0.6), rgba(238, 210, 224, 0.6));
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%,
    calc(100% - 36px) 50%;
  background-size: 6px 6px, 6px 6px, 1px 18px;
  background-repeat: no-repeat;
  padding-right: 42px;
}

.notebook__submit {
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 8px 18px;
  background: linear-gradient(120deg, #f3c3d7, #f0adc8);
  color: #3d1f31;
  font-weight: 600;
  cursor: pointer;
}

.notebook__error {
  font-size: 12px;
  color: #c6466c;
  margin: 0;
}

.team-board {
  display: grid;
  grid-template-columns: minmax(180px, 240px) 1fr;
  gap: 20px;
  align-items: start;
}

.team-board__notes {
  display: grid;
  gap: 12px;
}

.team-note {
  border: none;
  text-align: left;
  padding: 16px 16px 22px;
  border-radius: 10px 10px 14px 14px;
  cursor: pointer;
  font-family: 'Onest', sans-serif;
  font-weight: 600;
  color: #2f2a2f;
  box-shadow: 0 14px 22px rgba(38, 35, 50, 0.12);
  transform: rotate(-1.5deg);
  position: relative;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.team-note:nth-child(2n) {
  transform: rotate(1.2deg);
}

.team-note:hover,
.team-note.is-active {
  transform: translateY(-2px) rotate(0deg);
  box-shadow: 0 16px 28px rgba(38, 35, 50, 0.2);
}

.team-note::before {
  content: '';
  position: absolute;
  left: 10px;
  right: 10px;
  top: -6px;
  height: 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.08);
}

.team-note::after {
  content: '';
  position: absolute;
  right: 0;
  bottom: 0;
  width: 26px;
  height: 26px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.8) 50%);
  box-shadow: -2px -2px 6px rgba(0, 0, 0, 0.08);
}

.team-note__name {
  font-size: 14px;
}

.team-note__meta {
  font-size: 12px;
  font-weight: 400;
  color: #514b52;
  margin-top: 4px;
}

.team-board__details {
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(220, 215, 225, 0.8);
  border-radius: 18px;
  padding: 16px 18px;
}

.team-board__title {
  margin: 0 0 12px;
  font-size: 18px;
  color: #3c2836;
}

.team-note--mint {
  background: linear-gradient(135deg, #e7f7f1, #d3f0e6);
}

.team-note--butter {
  background: linear-gradient(135deg, #fff6d7, #ffe9b8);
}

.team-note--sky {
  background: linear-gradient(135deg, #e7f2ff, #d7e8ff);
}

.team-note--lilac {
  background: linear-gradient(135deg, #efe9ff, #e1d7ff);
}

.note-task {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 10px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(230, 210, 225, 0.9);
  cursor: default;
  transition: border-color 0.2s ease, transform 0.2s ease;
}

.note-task:hover {
  border-color: rgba(210, 166, 192, 0.95);
  transform: translateY(-1px);
}

.note-task.is-near-due {
  border-color: rgba(236, 140, 140, 0.45);
  background: #fff4f2;
}

.note-task__actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.note-task__checkbox {
  width: 18px;
  height: 18px;
  accent-color: #f19ac3;
}

.note-task__text {
  font-size: 14px;
  color: #3d2835;
}

.note-task__meta-row {
  margin-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.note-task__date {
  font-size: 12px;
  color: #8b647a;
  white-space: nowrap;
}

.note-task__status {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 999px;
  padding: 3px 8px;
}

.note-task__status--overdue {
  background: #fee4e1;
  color: #9f2b2b;
}

.note-task__status--today {
  background: #fff0cf;
  color: #8a5c00;
}

.note-task__status--soon {
  background: #e9f2ff;
  color: #1f5f97;
}

.note-task__sub {
  border: none;
  background: #f7f0ff;
  color: #7a4a73;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
  cursor: pointer;
}

.note-task__move {
  border: none;
  background: #eef6ff;
  color: #3f5c7a;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.note-task__delete {
  border: none;
  background: #fde7f1;
  color: #b14c74;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
}

.note-task.is-done .note-task__text {
  text-decoration: line-through;
  opacity: 0.65;
}

.note-task.is-done .note-task__status {
  background: #e8f7ef;
  color: #2f6f4d;
}

.note-task--sub {
  background: transparent;
  border-style: dashed;
}

.note-list {
  display: grid;
  gap: 12px;
}

.note-list--sub {
  margin: 0;
  padding: 0;
  border: none;
}

.note-task__subtasks {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-left: 34px;
}

.note-subtask {
  background: transparent;
  border: 1px dashed rgba(210, 185, 202, 0.7);
  box-shadow: none;
  padding: 6px 12px;
}

.note-task__meta {
  font-size: 12px;
  color: #8a4d6f;
  margin-top: 2px;
}

.note-task__badge {
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #fce2ee;
  color: #8a4d6f;
}

.notebook__empty {
  margin: 12px 0 0;
  font-size: 13px;
  color: #8b647a;
}

@media (max-width: 720px) {
  .notebook {
    padding: 26px 20px 32px 56px;
  }

  .notebook__title {
    font-size: 32px;
  }

  .todo-insights {
    grid-template-columns: 1fr;
  }

  .team-board {
    grid-template-columns: 1fr;
  }
}
