/* App page styles — extends ../style.css (loaded after it). */

main { width: min(980px, 100%); }

/* Toast floats over everything so tx feedback is never missed */
#toast {
  position: fixed;
  top: 0.9rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 60;
  max-width: min(560px, 92vw);
  background: #fffdf2;
  box-shadow: 0 6px 24px rgba(58, 46, 16, 0.18);
}

/* Welcome (disconnected) state */
#welcome { text-align: center; margin: 4rem 0 3rem; }
.welcome-drop { font-size: 3.4rem; line-height: 1; margin-bottom: 0.6rem; }
.welcome-title {
  font-size: clamp(1.7rem, 4.5vw, 2.4rem);
  font-weight: 800;
  color: var(--text);
  text-transform: none;
  letter-spacing: -0.01em;
  margin: 0 0 0.6rem;
}
.welcome-sub {
  color: var(--muted);
  font-size: 1.02rem;
  line-height: 1.6;
  max-width: 460px;
  margin: 0 auto 1.4rem;
}
.welcome-connect { padding: 0.75rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
#welcome .hint { margin-top: 1rem; }

/* Trickle cards — sunnier, status shown as a colored stem on the left */
.card { border-radius: 16px; box-shadow: 0 2px 10px rgba(58, 46, 16, 0.06); }
.trickle { border-left: 5px solid var(--card-edge); }
.trickle.due { border-color: var(--card-edge); border-left-color: var(--accent-dark); }
.trickle.empty { border-color: var(--card-edge); border-left-color: var(--warn); }
.trickle.paused { opacity: 0.82; border-left-color: var(--muted); }

.trickle-amount {
  font-family: "Baloo 2", "Nunito", system-ui, sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
}
.trickle-status {
  display: inline-block;
  background: #f9f1d4;
  border-radius: 999px;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
}
.trickle.due .trickle-status { background: #fdeeb5; color: #7a5200; }
.trickle.empty .trickle-status { background: #fde7cf; color: #8a4a06; }

.actions { margin-top: 0.8rem; }
.actions button { border-radius: 999px; }
.deposit-amt { border-radius: 999px; padding-left: 0.8rem; }

/* Create form */
#create-form { max-width: 520px; }
#create-form button.primary { align-self: flex-start; padding: 0.6rem 1.3rem; }
.label-note { color: var(--muted); font-weight: 400; }

/* Advanced fold — out of the way, for the contract address */
#advanced { margin: 3rem 0 1rem; color: var(--muted); font-size: 0.85rem; }
#advanced summary { cursor: pointer; font-weight: 700; }
#advanced .advanced-row {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-top: 0.6rem;
  max-width: 520px;
}
#advanced .addr-input { width: 100%; max-width: none; }

/* Sunflower field flowing into the footer, same as the landing */
.field { margin-top: 3rem; line-height: 0; }
.field svg { display: block; }
