.page-shell {
  max-width: 720px;
  margin: 0 auto;
  padding: 1.2rem;
  background: #fff4ec;
  border-radius: 32px;
  box-shadow: 0 25px 60px rgba(143, 87, 47, 0.18);
  position: relative;
}

.page-header {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  text-align: left;
  margin-bottom: 0.5rem;
}

.top-link {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.2em;
  margin-bottom: 0.3rem;
  font-weight: 600;
}

.top-link a {
  color: var(--terra-cotta);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

.top-link--primary {
  position: absolute;
  top: 0.8rem;
  left: 1rem;
}

.hero-text h1 {
  font-size: 10px;
  margin: 0;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.hero-chip {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  color: var(--heading);
  font-size: 10px;
}

.hero-count {
  margin: 0;
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.hero-subtitle {
  font-size: 10px;
  color: var(--muted);
  margin: 0;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: flex-start;
}

.hero-count-group {
  display: flex;
  align-items: baseline;
  gap: 0.2rem;
}

#section-target-select {
  border-radius: 999px;
  border: 2px solid var(--terra-cotta);
  background: #fff;
  padding: 0.1rem 0.65rem;
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 2px solid var(--terra-cotta);
  background: transparent;
  color: var(--terra-cotta);
  font-size: 10px;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  position: relative;
}

.hero-action-icon::before {
  content: attr(data-icon);
}

.hero-action-icon:focus-visible {
  outline: 2px solid #1d8bff;
  outline-offset: 3px;
}

.hero-action-icon.is-busy {
  cursor: progress;
  opacity: 0.7;
}

.memory-clear-panel {
  margin-top: 1.5rem;
  padding: 1rem;
  background: #fff6f1;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 16px;
}

.memory-clear-panel button {
  margin-top: 0.3rem;
}

.hero-action-delete {
  border-color: var(--danger);
  color: var(--danger);
}

.functions-list {
  margin: 1rem 0;
  padding: 0 0.25rem;
}

.functions-list ul {
  padding-left: 1.3rem;
  margin: 0.25rem 0 0;
}

.functions-list li {
  margin-bottom: 0.25rem;
}

.hero-pill,
.action-button {
  flex: 1;
  min-width: 150px;
  max-width: 180px;
  border-radius: 999px;
  border: 2px solid var(--terra-cotta);
  background: #fff;
  padding: 0.4rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--heading);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
}

.hero-pill:hover,
.action-button:hover {
  transform: translateY(-2px);
}

.hero-pill--accent,
.action-button--accent {
  background: linear-gradient(135deg, var(--sunrise), var(--soft-orange));
  box-shadow: 0 20px 30px rgba(213, 139, 87, 0.4);
  color: #2a1509;
}

.task-row label {
  flex: 1;
  margin: 0;
}

.task-action {
  padding: 0;
  margin-left: 0.2rem;
  background: transparent;
  box-shadow: none;
  border: none;
  border-radius: 6px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: inherit;
}

.task-row .task-action-group {
  display: flex;
  gap: 0.25rem;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
}

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

ul.subtasks {
  list-style: none;
  margin: 0.25rem 0 0;
  padding-left: 1.5rem;
  color: #444;
  font-size: 10px;
}

ul.subtasks li {
  margin-bottom: 0.15rem;
}

.task-date {
  font-size: 9px;
  color: var(--muted);
  margin-left: auto;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

@media (max-width: 640px) {
  .page-shell {
    padding: 0.9rem;
  }

  .hero-actions {
    justify-content: center;
  }

  .hero-pill,
  .action-button {
    min-width: 120px;
    max-width: 100%;
  }
}
