:root {
  --bg: #f3efe5;
  --surface: rgba(255, 252, 246, 0.92);
  --surface-strong: #fffdf8;
  --line: #d8cfbe;
  --text: #1e1b16;
  --muted: #6c6358;
  --accent: #bd5f2d;
  --accent-strong: #9a4519;
  --danger: #b42318;
  --todo: #6f5ef9;
  --doing: #ff9f1c;
  --done: #2a9d6f;
  --shadow: 0 20px 60px rgba(47, 35, 19, 0.12);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Georgia, "Times New Roman", serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(189, 95, 45, 0.18), transparent 24rem),
    radial-gradient(circle at bottom right, rgba(111, 94, 249, 0.16), transparent 22rem),
    var(--bg);
}

.shell {
  width: min(1400px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1.5rem 0 2rem;
}

.auth-shell {
  min-height: calc(100vh - 3.5rem);
  display: grid;
  place-items: center;
}

.auth-card {
  width: min(100%, 30rem);
  padding: 2rem;
  border: 1px solid var(--line);
  border-radius: 28px;
  background: linear-gradient(160deg, rgba(255, 250, 241, 0.98), rgba(247, 239, 226, 0.92));
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0;
  font-size: clamp(2rem, 5vw, 3rem);
}

.auth-form {
  margin-top: 1.4rem;
}

.auth-message {
  margin: 1rem 0 0;
  color: var(--danger);
}

.hero {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(255, 248, 236, 0.95), rgba(247, 239, 226, 0.9));
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 0.5rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-strong);
  font-size: 0.8rem;
}

.hero h1,
.panel h2,
.column-head h3 {
  font-family: "Palatino Linotype", "Book Antiqua", Palatino, serif;
}

.hero h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.4rem);
}

.lede {
  max-width: 44rem;
  color: var(--muted);
  line-height: 1.5;
}

.hero-card {
  display: flex;
  gap: 1rem;
  align-items: stretch;
}

.metric {
  min-width: 10rem;
  padding: 1rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(189, 95, 45, 0.2);
}

.metric span {
  display: block;
  font-size: 2rem;
  font-weight: 700;
}

.metric label {
  color: var(--muted);
}

.metric-action {
  display: flex;
  align-items: center;
  justify-content: center;
}

.layout {
  display: grid;
  grid-template-columns: 320px 1fr 320px;
  gap: 1rem;
  margin-top: 1rem;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 1rem;
  box-shadow: var(--shadow);
}

.panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1rem;
}

form {
  display: grid;
  gap: 0.85rem;
}

label {
  display: grid;
  gap: 0.45rem;
  color: var(--muted);
  font-size: 0.95rem;
}

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

input,
textarea,
select {
  width: 100%;
  padding: 0.8rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface-strong);
  color: var(--text);
}

textarea {
  resize: vertical;
}

button {
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  transition: transform 120ms ease, opacity 120ms ease;
}

button:hover {
  transform: translateY(-1px);
}

.primary {
  padding: 0.9rem 1.2rem;
  background: var(--accent);
  color: white;
}

.ghost,
.danger {
  padding: 0.55rem 0.9rem;
}

.ghost {
  background: rgba(30, 27, 22, 0.08);
  color: var(--text);
}

.danger {
  background: rgba(180, 35, 24, 0.12);
  color: var(--danger);
}

.hidden {
  display: none;
}

.columns {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.column {
  min-height: 28rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.5);
  overflow: hidden;
}

.column-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid var(--line);
}

.column-body {
  padding: 1rem;
  display: grid;
  gap: 0.85rem;
}

.task-card {
  padding: 0.95rem;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(30, 27, 22, 0.08);
}

.task-top {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  text-transform: uppercase;
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  background: rgba(30, 27, 22, 0.07);
}

.task-title {
  margin: 0.9rem 0 0.4rem;
  font-size: 1.1rem;
}

.task-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.task-meta {
  display: grid;
  gap: 0.45rem;
  margin: 1rem 0 0;
}

.task-meta div {
  display: flex;
  justify-content: space-between;
  gap: 0.8rem;
  font-size: 0.9rem;
}

.task-meta dt {
  color: var(--muted);
}

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

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

.activity-item {
  padding: 0.9rem;
  border-radius: 16px;
  background: var(--surface-strong);
  border: 1px solid rgba(30, 27, 22, 0.08);
  display: grid;
  gap: 0.25rem;
}

.activity-item strong {
  text-transform: capitalize;
}

.activity-item span,
.activity-item small,
.empty,
.api-note {
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 0.5rem;
}

.api-note {
  margin-top: 1rem;
  display: grid;
  gap: 0.4rem;
  font-size: 0.9rem;
}

.api-note code {
  display: inline-block;
  width: fit-content;
  padding: 0.35rem 0.55rem;
  border-radius: 10px;
  background: rgba(30, 27, 22, 0.06);
}

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

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

@media (max-width: 720px) {
  .shell {
    width: min(100% - 1rem, 100%);
    padding-top: 0.5rem;
  }

  .hero {
    flex-direction: column;
  }

  .hero-card {
    width: 100%;
    flex-wrap: wrap;
  }

  .metric {
    flex: 1 1 10rem;
  }
}
