.brand, .who { color: inherit; text-decoration: none; }
.card-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.4rem; }
.card-head h2 { margin: 0; }
.note { color: var(--muted); font-size: 0.85rem; margin: 0.8rem 0 0; }
.center-text { text-align: center; }

button.small, .editor button {
  border: 1px solid var(--line);
  background: rgba(232, 246, 255, 0.06);
  color: var(--fg);
  border-radius: 999px;
  padding: 0.4rem 0.9rem;
  font: inherit;
  font-size: 0.9rem;
}
.editor button.primary { background: var(--accent); color: #032326; border-color: transparent; font-weight: 700; }
.editor button.danger { color: var(--urgent); border-color: rgba(255, 126, 126, 0.4); }

/* People */
.people .person { border-top: 1px solid var(--line); }
.people .person:first-child { border-top: 0; }
.person-head {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.1rem;
  background: none;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
}
.person-head .dot { flex: none; width: 0.8rem; height: 0.8rem; border-radius: 50%; }
.person-head .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.sub { color: var(--muted); font-size: 0.85rem; display: block; }
.sub.error { color: var(--urgent); }
.badges { display: flex; gap: 0.3rem; flex-wrap: wrap; justify-content: flex-end; }
.badge { font-size: 0.72rem; padding: 0.15rem 0.45rem; border-radius: 999px; background: rgba(232, 246, 255, 0.05); color: var(--muted); white-space: nowrap; }
.badge.on { color: var(--accent); background: rgba(126, 249, 255, 0.1); }

.editor { display: flex; flex-direction: column; gap: 0.7rem; padding: 0.4rem 0 1rem; }
.editor label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; color: var(--muted); }
.editor input:not([type='checkbox']):not([type='color']) {
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: inherit;
  font-size: 1rem;
}
.editor .row { display: grid; grid-template-columns: 5rem minmax(0, 1fr) 3.2rem; gap: 0.6rem; }
.editor input { min-width: 0; width: 100%; box-sizing: border-box; }
.editor .colour input { width: 3rem; height: 2.6rem; border: 0; background: none; padding: 0; }
.editor .check input { width: auto; }
.editor .check { flex-direction: row; align-items: center; gap: 0.5rem; color: var(--fg); font-size: 0.95rem; }
.editor .buttons { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.editor .secondary { padding-top: 0.6rem; border-top: 1px dashed var(--line); }

/* Services */
.service { display: flex; flex-direction: column; gap: 0.2rem; padding: 0.75rem 0; border-top: 1px solid var(--line); align-items: flex-start; }
.service:first-child { border-top: 0; padding-top: 0.2rem; }
.service-top { display: flex; width: 100%; justify-content: space-between; align-items: center; gap: 0.5rem; }
.service button { margin-top: 0.35rem; }
.pill { font-size: 0.72rem; padding: 0.15rem 0.55rem; border-radius: 999px; white-space: nowrap; }
.pill.ok { color: #7effa8; background: rgba(126, 255, 168, 0.1); }
.pill.bad { color: var(--urgent); background: rgba(255, 126, 126, 0.12); }
.pill.off, .pill.unknown { color: var(--muted); background: rgba(232, 246, 255, 0.05); }

/* Toasts */
#toasts { position: fixed; left: 50%; bottom: 1rem; transform: translateX(-50%); z-index: 5; display: flex; flex-direction: column; gap: 0.4rem; width: min(92vw, 30rem); }
.toast { padding: 0.65rem 0.9rem; border-radius: 0.8rem; background: #14202a; border: 1px solid var(--line); box-shadow: 0 6px 24px rgba(0, 0, 0, 0.5); font-size: 0.92rem; }
.toast.good { border-color: rgba(126, 255, 168, 0.4); }
.toast.bad { border-color: rgba(255, 126, 126, 0.5); }
.toast.pending { color: var(--muted); }

/* Waitlist */
.waitlist { max-height: 22rem; overflow-y: auto; }
.signup { display: flex; flex-direction: column; gap: 0.15rem; padding: 0.6rem 0; border-top: 1px solid var(--line); }
.signup:first-child { border-top: 0; }
.signup.late b { color: var(--muted); }
.note-text { font-size: 0.88rem; font-style: italic; color: var(--fg); opacity: 0.85; }

/* Home + places */
.inline-form { display: flex; gap: 0.5rem; margin: 0.2rem 0 0.4rem; }
.inline-form input {
  flex: 1;
  min-width: 0;
  padding: 0.6rem 0.75rem;
  border-radius: 0.7rem;
  border: 1px solid var(--line);
  background: rgba(0, 0, 0, 0.35);
  color: var(--fg);
  font: inherit;
}
.inline-form.two { flex-wrap: wrap; }
.inline-form.two input { flex: 1 1 10rem; }
h3.minor { margin: 1.1rem 0 0.2rem; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted); }
.places { margin: 0.5rem 0; }
.place { display: flex; align-items: center; gap: 0.6rem; padding: 0.5rem 0; border-top: 1px solid var(--line); }
.place:first-child { border-top: 0; }
.place .text { flex: 1; display: flex; flex-direction: column; min-width: 0; }

.steps { margin: 0.6rem 0 0.4rem; padding-left: 1.3rem; color: var(--fg); font-size: 0.92rem; }
.steps li { margin: 0.3rem 0; }
.steps a.download { color: var(--accent, #7ef9ff); font-weight: 600; }

.google-form { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.6rem; }
.google-form label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; color: var(--muted); }
.google-form select {
  font: inherit;
  color: var(--fg);
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  padding: 0.5rem 0.6rem;
}
.google-form button { align-self: flex-start; }

/* Settings is an ordinary scrolling page. (It shares home.css, which makes the phone chat app a
   fixed, full-screen shell; undo that here.) */
html, body { height: auto; }
body { display: block; overflow: auto; }
#app, main { display: block; max-width: 36rem; margin: 0 auto; padding: 0.8rem 0.9rem 3rem; }
#app[hidden] { display: none; }
.top { position: sticky; top: 0; z-index: 2; }
.card.center { max-width: 30rem; margin: 18vh auto 0; }

/* Laptops: two ways to set one up */
.setup-options { display: grid; gap: 0.7rem; margin: 0.7rem 0; }
.setup-option { border: 1px solid var(--line); border-radius: 0.8rem; padding: 0.7rem 0.8rem; }
.setup-option b { display: block; margin-bottom: 0.15rem; }
.setup-option a.download { color: var(--accent, #7ef9ff); font-weight: 600; }
.setup-option .sub { margin-top: 0.25rem; }

.review .place b { font-variant-numeric: tabular-nums; }
.tips { margin: 0.6rem 0 0; padding-left: 1.1rem; color: var(--muted); font-size: 0.88rem; }
.tips li + li { margin-top: 0.3rem; }

/* The household's free trial */
.plan-card .plan-bar { height: 0.55rem; border-radius: 999px; background: rgba(232, 246, 255, 0.08); overflow: hidden; margin: 0.6rem 0 0.8rem; }
.plan-card .plan-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7ef9ff, #a0ffc8); }
.plan-card[data-status="ending"] .plan-bar i { background: linear-gradient(90deg, #ffd37e, #ffb86b); }
.plan-card[data-status="ended"] .plan-bar i { background: #ff8a8a; }
.household.ending b, .household.ended b { color: #ffd37e; }

.toggle { display: flex; gap: 0.6rem; align-items: flex-start; margin-top: 1rem; line-height: 1.45; cursor: pointer; }
.toggle input { margin-top: 0.25rem; width: 1.1rem; height: 1.1rem; flex: none; accent-color: #7ef9ff; }

/* Website traffic (owners) */
.traffic-chart { display: flex; align-items: flex-end; gap: 3px; height: 5rem; margin: 1rem 0; }
.traffic-chart .bar { flex: 1; background: var(--accent); opacity: 0.75; border-radius: 2px 2px 0 0; min-width: 3px; }
.traffic-chart .bar:hover { opacity: 1; }
.traffic-lists { display: grid; grid-template-columns: repeat(auto-fit, minmax(12rem, 1fr)); gap: 1rem 1.5rem; }
.traffic-list h3 { font-size: 0.85rem; color: var(--muted); font-weight: 600; margin: 0 0 0.4rem; text-transform: uppercase; letter-spacing: 0.05em; }
.traffic-list ul { list-style: none; margin: 0; padding: 0; }
.traffic-list li { display: flex; justify-content: space-between; gap: 1rem; padding: 0.25rem 0; border-bottom: 1px solid var(--line); font-size: 0.92rem; }
.traffic-list li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.traffic-list li.muted { color: var(--muted); }

/* WhatsApp groups (experiment) */
.whatsapp-groups { list-style: none; margin: 0.6rem 0 0; padding: 0; max-height: 18rem; overflow-y: auto; }
.whatsapp-groups .toggle { margin-top: 0.5rem; }
#whatsapp-card .actions { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0.6rem 0; }
