* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", sans-serif;
  background: #f4f1ea;
  color: #1e1f22;
}

.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at top left, rgba(210, 160, 99, 0.25), transparent 32%),
    linear-gradient(135deg, #f7f3ea, #ebe4d6);
}

.login-card {
  width: min(92vw, 480px);
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.8);
  box-shadow: 0 20px 60px rgba(52, 42, 28, 0.12);
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 20px 24px;
  background: #fffdf8;
  border-bottom: 1px solid #dfd6c6;
  position: sticky;
  top: 0;
  z-index: 2;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 4px 0 0;
  color: #6f6557;
}

.topbar-actions {
  display: flex;
  gap: 10px;
}

button {
  border: 0;
  border-radius: 12px;
  padding: 10px 14px;
  font: inherit;
  cursor: pointer;
}

button.secondary {
  background: #ece4d6;
  color: #2f271d;
}

.board {
  display: grid;
  grid-template-columns: repeat(7, minmax(240px, 1fr));
  gap: 16px;
  padding: 20px;
  overflow-x: auto;
}

.column {
  min-height: calc(100vh - 120px);
  background: #f9f5ed;
  border: 1px solid #ded3c2;
  border-radius: 18px;
  padding: 14px;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.column-head h2 {
  margin: 0;
  font-size: 18px;
}

.column-count {
  min-width: 28px;
  text-align: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: #ede3d0;
  color: #6b5d47;
}

.column-body {
  min-height: 240px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.column-body.drag-over {
  outline: 2px dashed #bb7a2b;
  outline-offset: 4px;
  border-radius: 12px;
}

.task-card {
  padding: 14px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2d8c8;
  box-shadow: 0 10px 24px rgba(62, 45, 18, 0.06);
  cursor: grab;
}

.task-card.readonly {
  cursor: default;
  opacity: 0.82;
}

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

.task-priority {
  white-space: nowrap;
  color: #7d6745;
  font-size: 13px;
}

.task-desc {
  color: #554b40;
  margin: 10px 0 14px;
}

.task-meta {
  margin: 0;
  display: grid;
  gap: 8px;
}

.task-meta div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
}

.task-meta dt {
  color: #7b6f61;
}

.task-meta dd {
  margin: 0;
  text-align: right;
}

.task-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.task-action {
  padding: 8px 10px;
  border-radius: 999px;
  background: #2f271d;
  color: #fffaf2;
  font-size: 13px;
}

.task-action:hover {
  background: #68491f;
}

@media (max-width: 1100px) {
  .board {
    grid-template-columns: repeat(3, minmax(240px, 1fr));
  }
}

@media (max-width: 760px) {
  body {
    background: #fbf6ec;
  }

  .topbar {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    padding: 14px;
  }

  .topbar h1 {
    font-size: 22px;
  }

  .topbar p {
    font-size: 14px;
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

  .board {
    display: flex;
    gap: 12px;
    padding: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .column {
    flex: 0 0 calc(100vw - 28px);
    min-height: calc(100vh - 150px);
    scroll-snap-align: start;
    border-radius: 16px;
    padding: 12px;
  }

  .column-head {
    position: sticky;
    top: 0;
    z-index: 1;
    padding-bottom: 8px;
    background: #f9f5ed;
  }

  .column-head h2 {
    font-size: 17px;
  }

  .task-card {
    padding: 13px;
    border-radius: 15px;
  }

  .task-head {
    flex-direction: column;
  }

  .task-priority {
    align-self: flex-start;
    padding: 3px 8px;
    border-radius: 999px;
    background: #f2e7d6;
  }

  .task-desc {
    font-size: 14px;
  }

  .task-meta div {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .task-meta dd {
    text-align: left;
    font-weight: 600;
  }

  .task-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .task-action {
    width: 100%;
    border-radius: 12px;
    padding: 10px;
  }
}
