/* Account, preferences and PAPITO+ bits of app.papitoco.com (on top of style.css). */
.chips-field { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips-field legend { width: 100%; font-size: 14px; margin-bottom: 6px; color: var(--muted); }
.chip-check { display: inline-flex; align-items: center; gap: 6px; border: 1.5px solid var(--input); border-radius: 999px; padding: 9px 14px; min-height: 44px; font-size: 14px; cursor: pointer; background: #fff; color: var(--ink); }
.chip-check:has(input:checked) { background: var(--teal); border-color: var(--teal); color: #fff; }
.chip-check input { margin: 0; accent-color: var(--teal); width: 18px; height: 18px; min-height: 0; padding: 0; flex: none; }
.kids-field { border: 0; padding: 0; margin: 0; }
.kids-field legend { font-size: 14px; margin-bottom: 4px; color: var(--muted); }
.kids-field #kids-note { margin: 0 0 10px; }
.kid-row { display: grid; gap: 8px; padding: 12px; border: 1.5px solid var(--input); border-radius: 14px; background: #fff; }
.kid-top { display: grid; grid-template-columns: auto auto 1fr auto auto; gap: 8px; align-items: center; }
.kid-top select, .kid-top input { min-height: 44px; }
.kid-remove { color: var(--muted); }
@media (max-width: 560px) { .kid-top { grid-template-columns: 1fr 1fr; } .kid-top input[name=k_label] { grid-column: 1 / -1; } }
/* This week: book and movies picks (TZ-AGT-008.4). */
.picks { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.pick-card h3 { margin: 8px 0 2px; } .pick-card h4 { margin: 12px 0 4px; font-size: 15px; }
.pick-card .qs { margin: 0; padding-left: 20px; display: grid; gap: 4px; font-size: 15px; }
.openings { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 10px; }
.pill.type { margin-right: 8px; }
.invite-model { display: block; width: 120px; height: 120px; border-radius: 50%; object-fit: cover; margin: 0 0 12px; }
.invite-model.small { width: 64px; height: 64px; margin: 0; }
.card.invite { position: relative; } .g-model { position: absolute; right: 18px; top: 14px; } .g-model:empty { display: none; }
.headcount { color: var(--teal); font-weight: 600; margin: 4px 0; }
.g-type { display: inline-block; margin-left: 8px; } .g-type select.small { min-height: 36px; font-size: 14px; padding: 4px 28px 4px 10px; }
/* Floating Ask Papito widget (widget.js): the chibi in the corner; a small chat panel above it. */
#papito-widget { position: fixed; right: 16px; bottom: 16px; z-index: 60; display: grid; justify-items: end; gap: 10px; }
body.has-tabbar #papito-widget { bottom: calc(84px + env(safe-area-inset-bottom)); }
.pw-fab { width: 64px; height: 64px; border-radius: 50%; border: 0; padding: 0; background: #fff; box-shadow: 0 6px 20px rgba(31, 42, 68, .18); cursor: pointer; display: grid; place-items: center; }
.pw-fab img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.pw-fab:hover { transform: translateY(-1px); }
.pw-panel { width: min(380px, calc(100vw - 32px)); max-height: min(70vh, 560px); display: grid; grid-template-rows: auto 1fr auto auto; gap: 8px; background: var(--page, #FBF8F1); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 12px 32px rgba(31, 42, 68, .18); padding: 12px; }
.pw-panel .chat { max-height: none; min-height: 160px; }
.pw-head { display: flex; align-items: center; gap: 8px; } .pw-head img { border-radius: 50%; }
.pw-full { margin-left: auto; font-size: 13px; color: var(--teal); }
.pw-close { border: 0; background: transparent; font-size: 22px; line-height: 1; padding: 4px 8px; cursor: pointer; color: var(--muted); min-height: 0; }
.pw-foot { margin: 0; }
@media (max-width: 560px) { .pw-panel { width: calc(100vw - 32px); } }
.toggle { display: flex; align-items: center; gap: 10px; color: var(--ink); font-size: 15px; }
.toggle input { width: 20px; height: 20px; min-height: 0; accent-color: var(--teal); }
/* Consent box highlighted when a dad heads to PAPITO+ checkout with emails off (HZ-MKT-003). */
.toggle.attention { outline: 2px solid var(--teal); outline-offset: 8px; border-radius: 6px; background: var(--soft); }
.account h2 { margin: 0 0 4px; }
.account .status { margin: 0 0 10px; color: var(--muted); font-size: 14px; }
.account.founder { background: #fff; }
.locked { background: var(--soft); border: 0; }
.settings a { color: var(--teal); }
.danger-zone summary { cursor: pointer; color: var(--muted); font-size: 14px; margin-top: 8px; min-height: 44px; display: flex; align-items: center; }
.danger-zone p { color: var(--muted); }
.danger-zone .del-list { color: var(--muted); margin: 0 0 10px; padding-left: 20px; display: grid; gap: 4px; }
.danger-zone .founder-warn { color: #7A5C22; background: var(--sun-bg); border-radius: 12px; padding: 8px 12px; display: flex; gap: 6px; align-items: flex-start; }
.danger-zone #del-step2 { margin-top: 12px; max-width: 420px; }
.danger-btn { background: var(--coral); border-color: var(--coral); }
.past-due { background: var(--sun-bg); border-color: #F2C46D; }
.quiet { display: flex; align-items: center; gap: 6px; }
.quiet select { flex: 1; }
.idea h3 { margin: 6px 0 2px; }
.idea h3 a { color: inherit; text-decoration: none; }
.idea .rsvp { display: flex; gap: 8px; margin-top: 8px; flex-wrap: wrap; }
.idea .note { background: var(--sun-bg); border: 1px solid #F2C46D; border-radius: 12px; padding: 8px 12px; font-size: 14px; margin: 8px 0 0; }
button.chip { cursor: pointer; font: inherit; font-size: 14px; }
button.chip[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
.chat { display: flex; flex-direction: column; gap: 8px; max-height: 60vh; overflow-y: auto; padding: 4px 0; }
.chat-row { display: flex; gap: 8px; align-items: flex-end; max-width: 100%; }
.chat-row.me { align-self: flex-end; flex-direction: row-reverse; } .chat-row.papito { align-self: flex-start; }
.chat-row .avatar { width: 30px; height: 30px; font-size: 13px; flex: none; }
.chat-row img.papito-av { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: var(--soft); flex: none; }
.bubble { max-width: 88%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; }
.chat-row .bubble { max-width: 100%; }
.bubble.me { align-self: flex-end; background: var(--teal); color: #fff; border-bottom-right-radius: 6px; }
.bubble.papito { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.bubble a { color: var(--teal); }
.chat-cards { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.chat-cards a { font-size: 12.5px; background: var(--soft); border-radius: 999px; padding: 6px 12px; color: var(--teal); text-decoration: none; }

/* Plan mode (ZT-AGT-005 §2): the built weekend inside a Papito bubble. */
.chat-plan { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; }
.chat-plan a { color: var(--teal); }

/* Per-kid reactions under an idea (TZ-AGT-008.5): the kid's label or age, then three small taps. */
.kid-rx { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 6px; }
.kid-rx > span { min-width: 64px; }

/* Pill buttons (reminders form, TD-AGT-002): the same look as a checked chip, driven by aria-pressed. */
button.chip-check.on, button.chip-check[aria-pressed="true"] { background: var(--teal); border-color: var(--teal); color: #fff; }
/* Memory Book empty state (TD-AGT-001.3 / 001.4): the illustration is the invitation. */
.book-head { text-align: center; display: grid; gap: 10px; justify-items: center; padding: 24px 20px; }
.book-head img { max-width: min(100%, 520px); border-radius: 16px; }
.book-head h1 { margin: 0; }
.book-head figure { margin: 8px 0 0; display: grid; gap: 6px; justify-items: center; }
.book-head figure img { max-width: min(100%, 360px); border-radius: 12px; box-shadow: 0 6px 18px rgba(23, 45, 50, .12); }
#add-wrap summary { cursor: pointer; font-weight: 600; color: var(--teal); }
#add-wrap summary::-webkit-details-marker { display: none; }
