body { background: var(--anker-bg); }

/* ─── Topbar ──────────────────────────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md) var(--space-lg);
  background: var(--anker-bg);
  border-bottom: 1px solid var(--anker-border);
}
.topbar .logo {
  height: 36px;
  width: auto;
}
.topbar__title {
  flex: 1;
  font-size: 1.1rem;
  font-family: var(--font-display);
}
.topbar__taskmeta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-size: 0.78rem;
  color: var(--anker-text-muted);
  line-height: 1.3;
}
.task-property { font-weight: 600; color: var(--anker-charcoal); }
.task-id { font-family: 'Menlo', 'Consolas', monospace; font-size: 0.72rem; }

/* ─── Layout (aside + main) ──────────────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: var(--space-xl);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: var(--space-xl) var(--space-lg);
}

.nav {
  position: sticky;
  top: 84px;
  align-self: start;
  max-height: calc(100vh - 100px);
  overflow-y: auto;
}
.nav__list { display: flex; flex-direction: column; gap: 4px; }
.nav__list a {
  display: block;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: var(--anker-text-muted);
  transition: background 120ms ease, color 120ms ease;
  border-left: 3px solid transparent;
}
.nav__list a:hover {
  color: var(--anker-charcoal);
  background: var(--anker-bg-soft);
}
.nav__list a.is-active {
  color: var(--anker-charcoal);
  background: var(--anker-bg-soft);
  border-left-color: var(--anker-gold);
}

.form-main {
  max-width: 800px;
}

/* ─── Section ─────────────────────────────────────────────────────────── */
.section {
  padding-block: var(--space-xl);
  border-bottom: 1px solid var(--anker-border);
}
.section:last-of-type { border-bottom: none; }
.section__header { margin-bottom: var(--space-lg); }
.section__hint {
  margin-top: 4px;
  font-size: 0.88rem;
  color: var(--anker-text-muted);
}

/* ─── Grids ────────────────────────────────────────────────────────────── */
.grid { display: grid; }
.grid--2col {
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-md);
}
.span-2 { grid-column: 1 / -1; }
.full-width { display: block; }

.features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px 24px;
}

.photo-boxes {
  display: flex;
  flex-direction: column;
  gap: var(--space-xl);
}

/* ─── Responsive ──────────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .layout {
    grid-template-columns: 1fr;
    gap: var(--space-md);
  }
  .nav {
    position: static;
    max-height: none;
    border: 1px solid var(--anker-border);
    border-radius: var(--radius-md);
    padding: var(--space-sm);
  }
  .nav__list {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 4px;
  }
  .nav__list a { font-size: 0.82rem; padding: 6px 10px; }
}

@media (max-width: 720px) {
  .topbar { padding: var(--space-sm) var(--space-md); }
  .topbar__title { font-size: 0.95rem; }
  .layout { padding: var(--space-md); }
  .grid--2col { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .submit-actions { flex-direction: column-reverse; }
  .submit-actions .btn { width: 100%; }
}
