:root {
  font-family: system-ui, sans-serif;
  background: #f5f5f7;
  color: #202124;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
}

main {
  max-width: 1100px;
  margin: auto;
  padding: 30px 18px;
}

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

h1,
h2,
p {
  margin: 0;
}

header p,
.meta,
.desc,
.quick-help {
  color: #6b7280;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
  border-radius: 9px;
  padding: .7rem .9rem;
  background: #202124;
  color: white;
  cursor: pointer;
}

button.ghost {
  background: #eceef1;
  color: #202124;
}

button.danger {
  background: transparent;
  color: #a12626;
}

.grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 24px;
}

.column {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 15px;
  min-height: 470px;
}

.heading span {
  background: #f0f1f2;
  border-radius: 20px;
  padding: 3px 9px;
}

.tasklist {
  display: grid;
  gap: 10px;
  margin-top: 13px;
}

.card {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 13px;
  background: white;
}

.card.done .title {
  text-decoration: line-through;
  color: #6b7280;
}

.title {
  font-weight: 650;
}

.meta {
  font-size: .86rem;
  margin-top: 4px;
}

.desc {
  font-size: .88rem;
  white-space: pre-wrap;
  margin-top: 9px;
}

.actions {
  display: flex;
  gap: 6px;
  margin-top: 11px;
  flex-wrap: wrap;
}

.actions button {
  font-size: .83rem;
  padding: .48rem .65rem;
}

.empty {
  color: #8b8f97;
  text-align: center;
  padding: 30px 0 18px;
}

.quick-add {
  margin-top: 12px;
}

.quick-add > input {
  width: 100%;
  border: 1px dashed #c8ccd2;
  background: #fafafa;
  border-radius: 12px;
  padding: .82rem .9rem;
}

.quick-add > input:focus {
  outline: 2px solid #c9cdd3;
  outline-offset: 2px;
  background: white;
}

.quick-options {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 8px;
  margin-top: 8px;
}

.quick-help {
  font-size: .78rem;
  margin-top: 7px;
}

code {
  background: #f0f1f2;
  padding: 1px 4px;
  border-radius: 4px;
}

label {
  display: grid;
  gap: 6px;
  font-size: .82rem;
  color: #4b5563;
}

input,
textarea {
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: .7rem;
  background: white;
  width: 100%;
}

dialog {
  border: 0;
  border-radius: 14px;
  padding: 0;
  width: min(520px, calc(100% - 28px));
  box-shadow: 0 20px 70px #0004;
}

dialog::backdrop {
  background: #0005;
}

#editForm {
  padding: 20px;
  display: grid;
  gap: 14px;
}

.twocol label {
  flex: 1;
}

.dialogActions {
  justify-content: flex-end;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  transform: translateX(-50%);
  background: #202124;
  color: white;
  padding: 9px 13px;
  border-radius: 9px;
  opacity: 0;
  transition: .2s;
}

#toast.show {
  opacity: 1;
}

@media(max-width:720px) {
  .grid {
    grid-template-columns: 1fr;
  }

  .quick-options {
    grid-template-columns: 1fr;
  }
}

.add-button {
  align-self: end;
  white-space: nowrap;
}

.time24 {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}

.time24 select {
  font: inherit;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: .7rem;
  background: white;
  width: 100%;
}


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

.logout-link {
  color: #4b5563;
  text-decoration: none;
  font-size: .9rem;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background: #f5f5f7;
}

.login-wrap {
  width: min(420px, calc(100% - 28px));
  padding: 0;
}

.login-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  padding: 24px;
}

.login-card > p {
  margin-top: 5px;
  color: #6b7280;
}

.login-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.login-error {
  margin-top: 16px;
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff0f0;
  color: #8b1e1e;
}
