:root {
  --ink: #13231f;
  --muted: #6c7772;
  --paper: #f4f1e9;
  --white: #fffdf8;
  --line: #dfe2d8;
  --accent: #d96b45;
  --accent-dark: #b95332;
  --mint: #c5ddcf;
  --yellow: #f0d58c;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", sans-serif;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -1;
  content: "";
  opacity: 0.42;
  background-image: radial-gradient(#d2d5c8 0.7px, transparent 0.7px);
  background-size: 18px 18px;
}

.app-shell {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(420px, 1.05fr);
  width: min(1100px, calc(100% - 48px));
  min-height: 680px;
  margin: 48px auto;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(25, 42, 35, 0.14);
}

.app-shell.workspace-mode {
  grid-template-columns: 1fr;
}

.app-shell.workspace-mode .content-panel {
  min-height: 680px;
}

.brand-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 680px;
  padding: 42px;
  overflow: hidden;
  color: var(--white);
  background: var(--ink);
}

.brand-panel::after {
  position: absolute;
  right: -120px;
  bottom: -170px;
  width: 390px;
  height: 390px;
  content: "";
  border: 1px solid rgba(197, 221, 207, 0.25);
  border-radius: 50%;
  box-shadow:
    0 0 0 35px rgba(197, 221, 207, 0.06),
    0 0 0 70px rgba(197, 221, 207, 0.04);
}

.brand-mark {
  z-index: 1;
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.brand-copy {
  z-index: 1;
  max-width: 430px;
}
.eyebrow {
  margin: 0 0 18px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.brand-panel .eyebrow {
  color: var(--mint);
}
h1,
h2 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  letter-spacing: -0.04em;
}
h1 {
  max-width: 450px;
  font-size: clamp(3.3rem, 6vw, 5.6rem);
  line-height: 0.92;
}
h1 span {
  color: var(--mint);
}
.brand-description {
  max-width: 290px;
  margin: 30px 0 0;
  color: #b8c6be;
  font-size: 16px;
  line-height: 1.6;
}
.panel-footer {
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  color: #b8c6be;
  font-size: 12px;
  letter-spacing: 0.04em;
}
.status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 5px rgba(197, 221, 207, 0.12);
}
.content-panel {
  display: grid;
  align-items: center;
  padding: 72px clamp(40px, 8vw, 105px);
  background: var(--white);
}
.login-view,
.workspace-view {
  width: 100%;
  max-width: 760px;
  animation: arrive 500ms ease both;
}
.content-heading h2,
.workspace-header h2 {
  font-size: clamp(2.2rem, 4vw, 3.4rem);
  line-height: 1;
}

.workspace-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.workspace-header h2 span {
  color: var(--accent);
}

.sign-out-button {
  flex: 0 0 auto;
  padding: 10px 0;
  color: var(--muted);
  background: transparent;
  font-size: 12px;
}

.sign-out-button:hover {
  color: var(--accent-dark);
}

.task-form {
  display: flex;
  gap: 10px;
  margin: 34px 0 28px;
}

.task-form input {
  min-width: 0;
}

.add-task-button {
  flex: 0 0 52px;
  color: var(--white);
  background: var(--ink);
  font-size: 26px;
  font-weight: 400;
  line-height: 1;
}

.add-task-button:hover {
  background: var(--accent-dark);
}

.view-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0 0 20px;
}

.view-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.view-toggle input,
.billed-checkbox {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: var(--accent);
  cursor: pointer;
}

.task-board {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
}

.task-column {
  min-width: 0;
  padding: 18px;
  background: #f6f5ef;
  border: 1px solid var(--line);
}

.billed-column {
  background: #edf4ef;
  border-color: #d2e1d7;
}

.column-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 16px;
}

.column-heading h3 {
  margin: 0;
  font-family: "Space Grotesk", sans-serif;
  font-size: 15px;
  line-height: 1.2;
}

.column-heading p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.task-count {
  display: grid;
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  place-items: center;
  color: var(--ink);
  background: var(--yellow);
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
}

.billed-column .task-count {
  background: var(--mint);
}

.task-list {
  display: flex;
  min-height: 155px;
  flex-direction: column;
  gap: 9px;
  padding: 2px;
  border: 1px dashed transparent;
  transition:
    background 180ms ease,
    border-color 180ms ease;
}

.task-column.is-empty .task-list {
  display: none;
}

.task-column.has-one-task .task-list {
  min-height: 0;
}

.task-list.is-over {
  background: rgba(240, 213, 140, 0.25);
  border-color: var(--accent);
}

.task-card {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  min-height: 58px;
  align-items: center;
  gap: 8px;
  padding: 10px 9px;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: 0 3px 8px rgba(25, 42, 35, 0.04);
  cursor: grab;
}

.task-card:active,
.task-card.is-dragging {
  cursor: grabbing;
  opacity: 0.55;
}

.task-title {
  overflow-wrap: anywhere;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.3;
}

.task-copy {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.task-hint {
  color: var(--muted);
  font-family: "Space Grotesk", sans-serif;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.task-actions {
  display: flex;
  min-width: 64px;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.undo-task-button {
  min-height: 36px;
  padding: 7px 9px;
  color: var(--ink);
  background: var(--mint);
  font-size: 11px;
}

.task-actions .delete-task-button {
  width: 64px;
}

.undo-task-button:hover {
  color: var(--white);
  background: var(--ink);
}

.delete-task-button {
  display: inline-flex;
  width: 64px;
  min-height: 36px;
  align-items: center;
  justify-content: center;
  padding: 0;
  color: #8a4b4b;
  background: #f8eaea;
  font-size: 11px;
  justify-self: end;
}

.delete-task-button:hover {
  color: var(--white);
  background: #a94e4e;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.content-heading > p:last-child,
.workspace-copy {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
}
.login-form {
  margin-top: 42px;
}
.field-group {
  margin-bottom: 24px;
}
label {
  display: block;
  margin-bottom: 9px;
  font-size: 13px;
  font-weight: 700;
}
input {
  width: 100%;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 0;
  outline: none;
  color: var(--ink);
  background: #fbfaf5;
  font: inherit;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease;
}
input::placeholder {
  color: #a3aaa4;
}
input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(217, 107, 69, 0.14);
}
.form-message {
  min-height: 20px;
  margin: -4px 0 14px;
  color: var(--accent-dark);
  font-size: 13px;
}
button {
  border: 0;
  border-radius: 0;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.primary-button {
  display: flex;
  width: 100%;
  align-items: center;
  justify-content: space-between;
  padding: 16px 18px;
  color: var(--white);
  background: var(--accent);
  transition:
    background 180ms ease,
    transform 180ms ease;
}
.primary-button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}
.primary-button span {
  font-size: 22px;
  font-weight: 400;
}
.application-note {
  margin: 28px 0 0;
  color: #a3aaa4;
  font-size: 12px;
}
[hidden] {
  display: none !important;
}

@keyframes arrive {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
    width: min(100% - 24px, 560px);
    min-height: auto;
    margin: 12px auto;
  }
  .brand-panel {
    min-height: 360px;
    padding: 28px;
  }
  h1 {
    font-size: clamp(3rem, 14vw, 4.5rem);
  }
  .brand-description {
    margin-top: 20px;
  }
  .content-panel {
    min-height: 620px;
    padding: 56px 16px;
  }
  .task-column {
    padding: 14px;
  }
  .task-card {
    grid-template-columns: 28px minmax(0, 1fr) auto;
  }
  .task-card .billed-checkbox {
    width: 10px;
    height: 10px;
    margin-right: 16px;
  }
  .task-board {
    grid-template-columns: minmax(0, 1fr);
  }
  .task-list {
    min-height: 90px;
  }
  .workspace-header h2 {
    font-size: 2.55rem;
  }
}
