/* v1.4.5 dashboard UI adjustment: move Export My Notes into Overall progress, replace toolbar slot with To Do List. */
[data-v142-hidden-export-wrap] {
  display: none !important;
}

.overall-export-slot {
  margin-top: 14px;
  display: grid;
}

.overall-export-button,
.todo-toolbar-button {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 7px;
  flex-wrap: wrap;
  text-align: center;
}

.overall-export-button {
  width: 100%;
  min-height: 46px;
  border-color: #27324a;
}

.overall-export-button small,
.todo-toolbar-button small {
  font-size: 10px;
  font-weight: 900;
  opacity: .78;
  line-height: 1.1;
}

.todo-toolbar-button {
  background: #fffaf0;
  border-color: #8b5e34;
  color: #27324a;
}

.todo-list-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9996;
  background: rgba(31, 41, 55, .42);
  display: grid;
  place-items: center;
  padding: 16px;
  opacity: 0;
  transition: opacity .18s ease;
}

.todo-list-backdrop.open { opacity: 1; }
.todo-list-backdrop[hidden] { display: none; }

.todo-list-card {
  width: min(620px, 96vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  background: #fffaf0;
  color: #27324a;
  border: 4px solid #27324a;
  border-radius: 24px;
  box-shadow: 10px 10px 0 rgba(31, 41, 55, .18);
  padding: 22px;
  position: relative;
  transform: translateY(8px) scale(.99);
  transition: transform .18s ease;
  font-family: inherit;
}

.todo-list-backdrop.open .todo-list-card {
  transform: translateY(0) scale(1);
}

.todo-list-x {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 38px;
  height: 38px;
  border: 3px solid #27324a;
  border-radius: 12px;
  background: #fff;
  color: #27324a;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
  font-weight: 900;
}

.todo-list-kicker {
  color: #7c6f5d;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding-right: 48px;
}

.todo-list-card h2 {
  margin: 7px 48px 6px 0;
  font-size: clamp(24px, 4vw, 34px);
}

.todo-list-intro,
.todo-empty {
  color: #5f6979;
  font-weight: 750;
  line-height: 1.5;
}

.todo-add-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  margin: 16px 0 12px;
}

.todo-add-row input {
  min-width: 0;
  border: 3px solid rgba(39, 50, 74, .35);
  border-radius: 14px;
  background: #fff;
  color: #27324a;
  padding: 11px 12px;
  font: inherit;
  font-weight: 800;
}

.todo-add-row input:focus {
  outline: none;
  border-color: #27324a;
  box-shadow: 0 0 0 3px rgba(39, 50, 74, .08);
}

.todo-list-items {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: grid;
  gap: 9px;
}

.todo-list-item {
  border: 3px solid rgba(39, 50, 74, .16);
  background: #fffdf8;
  border-radius: 16px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.todo-list-item.done {
  background: #effaf2;
}

.todo-check-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  font-weight: 850;
  line-height: 1.45;
}

.todo-check-row input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #27324a;
}

.todo-list-item.done .todo-check-row span {
  text-decoration: line-through;
  opacity: .62;
}

.todo-delete {
  width: 34px;
  height: 34px;
  border: 3px solid #b45353;
  border-radius: 12px;
  background: #fff;
  color: #b45353;
  font-size: 21px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

.todo-list-actions {
  margin-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .overall-export-button,
  .todo-toolbar-button,
  .todo-list-actions .pixel-button {
    width: 100%;
  }
  .todo-add-row {
    grid-template-columns: 1fr;
  }
  .todo-list-card {
    padding: 18px;
  }
}
