/* Warm paper, coral ink, and a clean working canvas. */
:root {
  --accent: #e8553f;
  --bg: #f7f3e9;
  --surface: #fffdf8;
  --surface-2: #eee9dd;
  --ink: #293832;
  --ink-2: #60665d;
  --radius: 18px;
  --font-display: ui-rounded, 'Trebuchet MS', sans-serif;
  color-scheme: light;
}

/* Studio overview and reusable paper cards. */
.app-main {
  --max: 1080px;
}
.eyebrow {
  font-size: .72rem;
  letter-spacing: .16em;
  color: var(--accent);
  font-weight: 800;
}
.grid > .card {
  margin-top: 0;
}
.card {
  margin-bottom: 16px;
}
.focus {
  border-left: 6px solid var(--accent);
}
.btn {
  margin: 4px 0;
}
.chip {
  min-height: 44px;
}

/* The guided brief keeps one decision in focus. */
.wizard {
  max-width: 640px;
  margin: 24px auto;
  padding: clamp(20px, 5vw, 48px);
}
.dots {
  display: flex;
  gap: 8px;
  margin: 20px 0 32px;
}
.dots span {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--surface-2);
}
.dots .filled {
  background: var(--accent);
}

/* Timeline and reference board. */
/* Task rows stay quiet so dates and completed work are easy to scan. */
.task {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 16px 6px;
  border-top: 1px solid var(--line);
  cursor: pointer;
  min-height: 76px;
}
.task input {
  appearance: none;
  position: relative;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  min-height: 24px;
  padding: 0;
  margin: 2px 0 0;
  border: 1.5px solid #9caaa1;
  border-radius: 50%;
  transition: background .18s ease, border-color .18s ease;
}
.task input:checked {
  background: var(--accent);
  border-color: var(--accent);
}
.task input::after {
  content: '';
  position: absolute;
  left: 7px;
  top: 4px;
  width: 7px;
  height: 11px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform .18s ease;
}
.task input:checked::after {
  transform: rotate(45deg) scale(1);
  animation: task-check .2s ease-out;
}
@keyframes task-check {
  from {
    transform: rotate(45deg) scale(0);
  }
  to {
    transform: rotate(45deg) scale(1);
  }
}
.task-copy {
  min-width: 0;
}
.task-title {
  display: block;
  overflow-wrap: anywhere;
}
.task:has(:checked) .task-title {
  text-decoration: line-through;
  color: var(--ink-2);
}
.due-date {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 7px;
  padding: 2px 7px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink-2);
  font-size: .72rem;
}
.due-date svg {
  width: 14px;
  height: 14px;
}
.due-date.overdue {
  color: #b63732;
  background: #fce7e2;
}
.due-date.this-week {
  color: #b73b29;
  background: #ffede4;
}
progress {
  width: 100%;
  accent-color: var(--accent);
}
.reference svg {
  width: 100%;
  border-radius: 10px;
  margin-bottom: 16px;
}
.reference h2 {
  margin-top: 12px;
}
pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: .85rem;
}

/* Print a portable studio wall plan. */
@media print {
  .app-header, .tabbar, button, .eyebrow, .offline-pill {
    display: none !important;
  }
  .app-main {
    padding: 0;
  }
  .card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* Project index and the working plan. */
.project-list {
  border-top: 1px solid var(--line);
}
.project-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}
.project-row h2 {
  margin: 4px 0 8px;
  overflow-wrap: anywhere;
}
.project-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  background: #f6dc88;
  border-radius: 12px;
}
.compact {
  padding: 24px 8px;
  text-align: left;
}
.plan-heading {
  align-items: flex-start;
  margin-bottom: 24px;
}
.plan-heading h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
  overflow-wrap: anywhere;
}
.plan-layout {
  display: grid;
  gap: 32px;
}
.plan-list, .plan-sidebar {
  min-width: 0;
}
.phase-section {
  margin-bottom: 22px;
}
.phase-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  padding: 0 6px;
  border: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
}
.phase-number, .phase-count {
  font-size: .75rem;
  color: var(--ink-2);
}
.phase-number {
  color: var(--accent);
}
.chevron {
  margin-left: auto;
  font-size: 1.4rem;
}
.plan-sidebar h2 {
  margin-top: 12px;
}
.plan-sidebar small {
  color: var(--ink-2);
}
.status {
  color: #337351;
  font-weight: 700;
}
.overflow {
  position: relative;
  flex-shrink: 0;
}
.overflow summary {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  font-size: 1.6rem;
  cursor: pointer;
  list-style: none;
}
.overflow summary::-webkit-details-marker {
  display: none;
}
.overflow-menu {
  position: absolute;
  right: 0;
  top: 50px;
  z-index: 10;
  width: 240px;
  padding: 8px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow);
}
.overflow-menu .btn {
  width: 100%;
  justify-content: flex-start;
  border: 0;
  border-radius: 10px;
  font-weight: 400;
}
.overflow-menu [data-action="delete"] {
  color: var(--bad);
}
.add-task {
  position: fixed;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  right: calc(24px + env(safe-area-inset-right, 0px));
  z-index: 15;
  width: 58px;
  height: 58px;
  border: 0;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  font-size: 2rem;
  box-shadow: 0 6px 18px #a43a2933;
  cursor: pointer;
}
.tabbar button {
  min-height: 56px;
}
@media (min-width: 800px) {
  .plan-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
  }
}
@media (max-width: 520px) {
  .project-row {
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 12px;
  }
  .project-row > .btn {
    grid-column: 2;
    justify-self: start;
  }
  .project-icon {
    width: 36px;
    height: 36px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .task input, .task input::after {
    transition: none;
    animation: none;
  }
}
