* { box-sizing: border-box; }
:root {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #111;
  background: #f5f6f8;
}
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at top right, rgba(6,199,85,.12), transparent 34%),
    #f5f6f8;
}
button, input, textarea { font: inherit; }
button { cursor: pointer; }
.app-shell {
  width: min(100%, 680px);
  margin: 0 auto;
  padding: calc(24px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));
}
.hero {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 4px 20px;
}
.eyebrow, .label {
  margin: 0 0 6px;
  font-size: 11px;
  letter-spacing: .14em;
  font-weight: 800;
  color: #77808a;
}
h1 { margin: 0; font-size: 34px; letter-spacing: -.04em; }
h2 { margin: 0 0 14px; font-size: 20px; }
.muted { color: #77808a; }
.small { font-size: 12px; }
.avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 8px 24px rgba(0,0,0,.12);
}
.hidden { display: none; }
.card {
  background: rgba(255,255,255,.94);
  border: 1px solid rgba(17,17,17,.06);
  border-radius: 20px;
  padding: 18px;
  margin-bottom: 14px;
  box-shadow: 0 10px 28px rgba(30,38,50,.06);
}
.profile-card { padding-top: 16px; padding-bottom: 16px; }
.profile-name { font-size: 22px; font-weight: 800; margin-bottom: 4px; }
.section-head, .footer-row, .diag-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
}
input, textarea {
  width: 100%;
  border: 1px solid #dfe3e8;
  border-radius: 14px;
  background: #fff;
  padding: 13px 14px;
  outline: none;
}
input:focus, textarea:focus {
  border-color: #06c755;
  box-shadow: 0 0 0 3px rgba(6,199,85,.11);
}
textarea { resize: vertical; min-height: 140px; }
.primary {
  border: 0;
  border-radius: 14px;
  padding: 12px 16px;
  background: #06c755;
  color: white;
  font-weight: 800;
}
.text-button {
  border: 0;
  background: transparent;
  color: #06a94a;
  font-weight: 700;
}
.task-list { margin-top: 12px; display: grid; gap: 8px; }
.task {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  background: #f7f8fa;
}
.task.done .task-title {
  text-decoration: line-through;
  color: #9299a1;
}
.task input { width: 20px; height: 20px; }
.task-delete {
  border: 0;
  background: transparent;
  font-size: 18px;
  color: #9aa0a7;
}
.footer-row { margin-top: 10px; }
.diagnostics .diag-row {
  padding: 8px 0;
  border-bottom: 1px solid #eef0f2;
}
.diagnostics .diag-row:last-child { border-bottom: 0; }
@media (max-width: 420px) {
  .app-shell { padding-left: 12px; padding-right: 12px; }
  .card { border-radius: 18px; padding: 16px; }
}

.share-card textarea {
  margin-top: 10px;
}
.share-card .footer-row {
  align-items: flex-end;
}
@media (max-width: 420px) {
  .share-card .footer-row {
    align-items: stretch;
    flex-direction: column;
  }
  .share-card .primary {
    width: 100%;
  }
}
