/* Hive Mind: builds on /shared.css. Mobile first (390px). */
:root { --honey: #f8b229; --honey-soft: #fff6df; }

.hero { color: #fff; text-align: center; padding: 12px 0 16px; }
.hero h1 { font-size: 1.8rem; }
.hero p { opacity: .92; margin: 0; }

.section-title { color: #fff; font-size: 1.05rem; margin: 22px 0 10px; }
.full { width: 100%; }
.wrap { flex-wrap: wrap; }
.playful { font-weight: 700; color: var(--red); margin-bottom: 4px; }

/* progress */
.progress-card { padding: 14px 18px; }
.bar { height: 14px; margin-top: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.bar span { display: block; height: 100%; background: linear-gradient(90deg, var(--honey), var(--red)); border-radius: 999px; transition: width .4s; }

/* driver callout */
.driver-callout {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink);
  background: var(--honey-soft); border-left: 6px solid var(--honey);
}
.driver-icon { font-size: 2rem; }

/* own locked card */
.own-card { border-top: 4px solid var(--red); margin-top: 24px; }
.own-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 8px; }
.own-head p { margin-bottom: 4px; }
.lock { font-size: 2rem; line-height: 1; }
#hints-status { min-height: 1em; }

/* person cards on home */
.person-card { display: block; text-decoration: none; color: inherit; padding: 14px 16px; min-height: 64px; }
.person-card .name { font-size: 1.15rem; color: var(--green); }
.person-card .chips { gap: 6px; justify-content: flex-end; }
.person-card .go { font-size: 1.6rem; line-height: 1; color: var(--muted); }
.person-card.driving { border-left: 6px solid var(--honey); }
.person-card.sorted { background: #f6fbf7; }

.host-tools { margin-top: 28px; border-top: 4px solid var(--honey); }
.host-tools .btn { width: 100%; }
.host-tools .row { flex-wrap: nowrap; }

/* board */
.back { display: inline-flex; align-items: center; min-height: 44px; color: #fff; font-weight: 600; text-decoration: none; margin-bottom: 4px; }
.board-intro h1 { font-size: 1.45rem; color: var(--green); overflow-wrap: anywhere; }
.board-intro p { margin: 0; }
.board-intro.opened { border-top: 4px solid var(--honey); }
.driver-panel { background: var(--honey-soft); border-left: 6px solid var(--honey); }
.driver-panel p { margin: 6px 0 0; }
.hints-card { border-left: 6px solid var(--green); }
.hints-card .label, .pick-banner .label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.hint-text { white-space: pre-wrap; margin: 4px 0 0; overflow-wrap: anywhere; }
.no-hints { color: #fff; opacity: .85; margin: -4px 0 14px; }
.pick-banner { background: var(--red); color: #fff; }
.pick-banner .label { color: #ffe9b0; }
.pick-banner .pick-title { font-size: 1.3rem; font-weight: 800; overflow-wrap: anywhere; }
.pick-banner p { margin: 4px 0 0; opacity: .95; }

details summary { cursor: pointer; color: var(--green); font-weight: 600; min-height: 44px; display: flex; align-items: center; }
.more-fields { padding-top: 6px; }

.empty { text-align: center; color: var(--muted); padding: 24px 18px; }

.idea h3 { font-size: 1.15rem; margin: 0 0 4px; overflow-wrap: anywhere; }
.idea.picked { outline: 4px solid var(--red); }
.idea.starred:not(.picked) { box-shadow: 0 0 0 3px var(--honey), 0 8px 28px rgba(0, 0, 0, .18); }
.idea .tags { margin-bottom: 8px; gap: 6px; }
.idea .meta { color: var(--muted); margin-bottom: 6px; }
.idea .meta a { font-weight: 600; display: inline-block; padding: 6px 0; }
.idea .note { white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 8px; }
.byline { color: var(--muted); margin-bottom: 10px; }
.alias { font-weight: 700; color: var(--green); }
.badge { padding: 1px 8px; font-size: .75rem; vertical-align: 1px; }
.actions { gap: 8px; }
.actions .btn { padding: 8px 12px; font-size: .9375rem; }
/* ▲/▼ sit together as one control; each half is a full 44px tap target. */
.vote-group { display: inline-flex; }
.btn.vote { min-width: 64px; background: var(--green-soft); color: var(--green); border: 2px solid var(--green); font-weight: 700; }
.btn.vote.up { border-radius: 999px 0 0 999px; }
.btn.vote.down { border-radius: 0 999px 999px 0; border-left-width: 1px; color: #5b6770; border-color: #5b6770; background: #eef0f2; }
.btn.vote.up.on { background: var(--green); color: #fff; }
.btn.vote.down.on { background: #5b6770; color: #fff; }
/* Vote to remove: dashed and red, so it never reads as a downvote. */
.btn.flag { background: #fff; color: var(--red); border: 2px dashed var(--red); }
.btn.flag.on { background: #fbeaea; border-style: solid; }
/* Phones keep :hover after a tap; keep each state's own colors (not the shared dark green). */
.btn.vote.up:not(.on):hover { background: var(--green-soft); }
.btn.vote.down:not(.on):hover { background: #eef0f2; }
.btn.vote.up.on:hover { background: var(--green); }
.btn.vote.down.on:hover { background: #5b6770; }
.btn.flag:not(.on):hover { background: #fff; }
.btn.flag.on:hover { background: #fbeaea; }
.btn.vote:disabled, .btn.flag:disabled { background: #c9d1cc; color: #fff; }
.remove-tally { color: var(--red); font-weight: 700; margin: -4px 0 8px; }
.see-it { display: inline-flex; align-items: center; margin-bottom: 10px; text-decoration: none; }
.btn.driver-btn { background: var(--honey-soft); color: #7a4f00; }

.comment-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.link-btn {
  background: none; border: 0; padding: 0 4px; min-height: 44px; min-width: 44px;
  color: var(--muted); text-decoration: underline; font: inherit; cursor: pointer;
}

/* locked own board page */
.locked-page { text-align: center; padding: 28px 18px; }
.big-lock { font-size: 3rem; }

/* nudge to write hints (shown until the viewer has saved some) */
.hint-nudge {
  display: flex; gap: 12px; align-items: center; width: 100%; text-align: left; cursor: pointer;
  font: inherit; color: var(--ink); background: #eef7f0; border: 0; border-left: 6px solid var(--green);
}
.nudge-icon { font-size: 1.8rem; }

/* ---- Phase 1 ---------------------------------------------------------------- */

/* Phase strip: one line, tap for all the dates. */
.phase-strip { background: var(--honey-soft); border-radius: var(--radius); margin: 0 0 14px; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); }
.phase-strip summary {
  list-style: none; display: flex; align-items: center; min-height: 44px; padding: 8px 14px;
  font-weight: 700; color: #6b4500; cursor: pointer; font-size: .85rem; line-height: 1.3;
}
.phase-strip summary::-webkit-details-marker { display: none; }
#phase-dates { padding: 0 14px 10px; }
.date-list { list-style: none; margin: 0 0 6px; padding: 0; }
.date-list li { display: flex; justify-content: space-between; gap: 8px; padding: 4px 0; border-bottom: 1px solid #f1e3bd; }
.date-list li.now { font-weight: 700; color: var(--red); }

/* To-do card and pre-launch */
.todo h2 { font-size: 1.1rem; }
.todo-item {
  display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 4px;
  color: var(--ink); text-decoration: none; border-top: 1px solid var(--line);
}
.todo-n { font-size: 1.3rem; color: var(--red); }
.todo-item .go { margin-left: auto; font-size: 1.6rem; color: var(--muted); }

/* Pokes: the home nudge and the board's poke button */
.nudge-card { border-left: 6px solid var(--red); }
.nudge-card p { margin: 0 0 8px; }
.nudge-card .row { align-items: center; gap: 12px; }
.poke-btn { margin: 0 0 14px; }

/* Profile Card */
.card-title { margin-top: 16px; color: var(--green); font-size: 1.05rem; }
.about-lines { list-style: none; margin: 6px 0 8px; padding: 0; }
.about-lines li { padding: 3px 0; overflow-wrap: anywhere; white-space: pre-wrap; }
.line-label { font-weight: 700; color: var(--green); }
.about-card { border-left: 6px solid var(--green); }
.about-card .label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.address-note { margin-top: 8px; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.wizard h1 { font-size: 1.35rem; color: var(--green); }
.wizard-title { margin-top: 10px; }
.wizard-nav { margin-top: 18px; justify-content: space-between; }
.wizard-nav .btn { flex: 1; }
.chip-field { border: 0; padding: 0; margin: 0; min-width: 0; }
.wish-rows { list-style: none; margin: 0 0 8px; padding: 0; }
.wish-row { display: flex; align-items: center; gap: 8px; border-bottom: 1px solid var(--line); }
.wish-text { flex: 1; min-width: 0; overflow-wrap: anywhere; padding: 6px 0; }
.wish-remove { flex: none; min-width: 44px; min-height: 44px; border: 0; background: none; color: var(--muted); font-size: 1.1rem; cursor: pointer; }
.wish-error { color: var(--red-dark); }
.chip-field legend, .flair-pick legend { font-weight: 600; color: var(--green); margin-bottom: 6px; padding: 0; }
.pick-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 6px 14px;
  border: 2px solid var(--line); border-radius: 999px; background: #fff; color: var(--ink);
  font: inherit; font-weight: 600; cursor: pointer;
}
.pick-chip.on, .pick-chip:has(input:checked) { background: var(--green); border-color: var(--green); color: #fff; }
.pick-chip input { position: absolute; opacity: 0; pointer-events: none; }
.flair-pick { border: 0; padding: 0; margin: 0; }

/* Asks (questions passed on to you) */
.asks-card { border-left: 6px solid var(--red); }
.ask { padding: 10px 0; border-top: 1px solid var(--line); }
.ask-text { font-weight: 700; font-size: 1.05rem; margin-bottom: 6px; overflow-wrap: anywhere; }
.ask textarea { margin-bottom: 8px; }
.ask-answer { overflow-wrap: anywhere; white-space: pre-wrap; }

/* Board: questions, flair, score, 🙏 */
.questions-card { border-left: 6px solid var(--honey); }
.questions-card h2 { font-size: 1.15rem; }
.filter-bar { margin: -2px 0 12px; gap: 6px; }
.filter-bar .pick-chip { background: rgba(255, 255, 255, .92); }
.filter-bar .pick-chip.on { background: var(--honey); border-color: var(--honey); color: #4a3000; }
.flair-chip { background: #f3eefc; color: #5b3d99; }
.vote-group { align-items: stretch; }
.vote-group .score {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; padding: 0 6px;
  border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); font-weight: 800; color: var(--green); background: #fff;
}
.btn.vote { min-width: 52px; }
.btn.vote.up:disabled, .btn.vote.down:disabled { background: #e3e7e4; color: #9aa5a0; border-color: #c9d1cc; cursor: not-allowed; }
.your-idea { align-self: center; }
.driver-counts { margin-top: 8px; }
.ship-to { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.ship-to p { margin: 4px 0 0; }
.date-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.host-tools h3 { color: var(--green); font-size: 1.05rem; margin-top: 18px; }
.digest-box textarea { min-height: 140px; }

/* ---- Phase 2 ---------------------------------------------------------------- */

/* The Driver's checklist and delivery ticks */
.checklist { list-style: none; margin: 10px 0 4px; padding: 0; }
.checklist li { display: flex; justify-content: space-between; gap: 8px; padding: 6px 0; border-bottom: 1px solid #f1e3bd; }
.checklist li.done span:first-child { font-weight: 700; color: var(--green); }
.delivery { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.delivery-acts { gap: 8px; margin-bottom: 8px; }
.delivery-acts .btn { flex: 1 1 140px; }
.delivery textarea { margin: 4px 0 8px; }
.step-down { margin-top: 8px; }

/* The lock-in confirm sheet */
.sheet-backdrop {
  position: fixed; inset: 0; z-index: 60; display: flex; /* above toasts, which would cover its buttons */ align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, .45); padding: 12px; padding-bottom: calc(12px + env(safe-area-inset-bottom, 0px));
}
.sheet { width: 100%; max-width: 520px; max-height: 90vh; overflow-y: auto; margin: 0; border-top: 6px solid var(--red); }
.sheet h2 { color: var(--green); }
.sheet-idea { padding: 10px 12px; border-radius: 10px; background: var(--honey-soft); margin-bottom: 10px; }
.sheet-idea .pick-title { font-size: 1.2rem; font-weight: 800; overflow-wrap: anywhere; }
.commit-list { list-style: none; margin: 0 0 12px; padding: 0; }
.commit-list li { padding: 6px 0; border-bottom: 1px solid var(--line); }
.sheet-actions { gap: 10px; }
.sheet-actions .btn { flex: 1; }

/* Home: on its way, letters, at-risk list */
.gift-card { border-left: 6px solid var(--green); background: #f3fbf5; }
.gift-card h2 { font-size: 1.2rem; }
.letters-line { padding: 12px 16px; }
.notice { background: #fff; }
.risk-card { border-top: 4px solid var(--red); margin-top: 24px; }
.risk-card h3 { color: var(--green); font-size: 1rem; margin-top: 14px; }
.risk-row { padding: 10px 0; border-top: 1px solid var(--line); overflow-wrap: anywhere; }
.reassign-box { margin-top: 8px; display: grid; gap: 6px; }
.risk-log { margin: 4px 0 0; padding-left: 18px; }
select { min-height: 44px; font: inherit; padding: 6px 10px; border: 2px solid var(--line); border-radius: 10px; background: #fff; width: 100%; }

/* Hive Letters on a board */
.letter-card { border-left: 6px solid var(--red); }
.letter-card h2 { font-size: 1.15rem; }
.letter-card textarea { margin: 6px 0 8px; }

/* ---- Phase 3: the reveal ------------------------------------------------------ */

/* Reveal cards: on the host's shared screen, on every phone, on the target's own board */
.reveal-card { border-top: 6px solid var(--honey); }
.reveal-card h2 { font-size: 1.25rem; overflow-wrap: anywhere; }
.reveal-card.mine { border-top-color: var(--red); background: #fffaf0; }
.reveal-card.up { border-top-color: var(--red); text-align: center; }
.reveal-card .label, .stage-kicker { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.reveal-gift { padding: 10px 12px; border-radius: 12px; background: var(--honey-soft); margin: 8px 0; }
.reveal-gift .tags { gap: 6px; margin-top: 6px; align-items: center; }
.reveal-gift .see-it { margin-bottom: 0; }
.reveal-title { font-size: 1.35rem; font-weight: 800; color: var(--green); overflow-wrap: anywhere; }
.reveal-story { color: var(--muted); margin: 4px 0 8px; overflow-wrap: anywhere; }
.reveal-guess { margin: 6px 0 2px; overflow-wrap: anywhere; }
.reveal-wait { font-weight: 700; color: #7a4f00; }
.reveal-driver { font-size: 1.2rem; font-weight: 800; color: var(--red); margin: 6px 0 2px; overflow-wrap: anywhere; }
.reveal-verdict { font-weight: 700; margin: 0 0 6px; }
.reveal-verdict.right { color: var(--green); }
.reveal-verdict.wrong { color: var(--muted); }
.reveal-thanks { font-style: italic; margin: 8px 0 0; overflow-wrap: anywhere; }
.hive-letters { margin: 12px 0; padding-top: 8px; border-top: 1px solid var(--line); }
.hive-letters h3 { color: var(--red); font-size: 1.05rem; margin-bottom: 6px; }
.hive-letters ul { list-style: none; margin: 0 0 6px; padding: 0; }
.hive-letters .letter { padding: 8px 12px; margin-bottom: 6px; border-radius: 10px; background: #fff; border-left: 4px solid var(--red); }
.opened-banner { border-left: 6px solid var(--honey); background: var(--honey-soft); overflow-wrap: anywhere; }
.chip.up-count { font-weight: 800; color: var(--green); }

/* Rating and thank-you */
.rate-card { border-top: 4px solid var(--green); }
.rate-row { display: grid; gap: 8px; margin: 8px 0; }
.btn.rate-btn { width: 100%; min-height: 52px; font-size: 1.05rem; background: #fff; color: var(--green); border: 2px solid var(--green); }
.btn.rate-btn:hover { background: var(--green-soft); }
.thanks-card input { margin: 6px 0 8px; }

/* Guess your Driver and the teaser clue (in "Your board") */
.guess-box { margin: 12px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--green-soft); }
.guess-box h3 { color: var(--green); font-size: 1.05rem; margin: 0 0 4px; }
.guess-box select { margin: 4px 0 8px; }
.clue-box { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--honey-soft); overflow-wrap: anywhere; }
.clue-text { font-style: italic; }
.clue-edit { margin-top: 10px; padding: 10px 12px; border-radius: 10px; background: #fff; }
.clue-edit input { margin: 6px 0 8px; }

/* Reveal Mode (host, shared on the call) */
.stage h1 { font-size: 1.45rem; color: var(--green); }
.stage-up { text-align: center; padding: 18px 8px; }
.stage-name { font-size: 2.4rem; font-weight: 900; color: var(--red); line-height: 1.15; overflow-wrap: anywhere; }
.stage-line { font-size: 1.1rem; margin: 8px 0 0; }
.stage-card .reveal-title { font-size: 1.8rem; }
.stage-card .reveal-driver { font-size: 1.6rem; }
.stage-acts { display: grid; gap: 10px; margin-top: 14px; }
.btn.big-btn { width: 100%; min-height: 56px; font-size: 1.1rem; }
.stage-pick h3 { color: var(--green); font-size: 1rem; margin: 14px 0 6px; }
.pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.btn.pick-person { width: 100%; background: #fff; color: var(--green); border: 2px solid var(--green); overflow-wrap: anywhere; }
.stage-done { text-align: center; padding: 18px 8px; }
.stage-rest { margin-top: 4px; }
.stage-rest .btn { width: 100%; }
@media (min-width: 720px) {
  .stage-name { font-size: 3.4rem; }
  .stage-card .reveal-title { font-size: 2.4rem; }
}

/* Phase 4: the results card on home, the results page, badges */
.results-card {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--ink); min-height: 44px;
  background: var(--honey-soft); border-left: 6px solid var(--honey);
}
.results-trophy { font-size: 2.2rem; line-height: 1; }
.results-mvp { text-align: center; border-top: 6px solid var(--honey); background: linear-gradient(180deg, var(--honey-soft), #fff 70%); }
.results-mvp .label { font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mvp-name { font-size: 2.2rem; margin: 6px 0 4px; overflow-wrap: anywhere; }
.mvp-line { font-weight: 600; }
.golden-bee { margin: 10px 0 0; padding: 10px 12px; border-radius: 12px; background: #fff; border: 2px dashed var(--honey); text-align: left; }
.stars-names { font-size: 1.2rem; overflow-wrap: anywhere; }
.badge-row { display: flex; flex-wrap: wrap; gap: 8px; margin: 6px 0 8px; }
.badge-chip {
  display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 4px; padding: 8px 12px; border-radius: 14px;
  background: var(--honey-soft); border: 2px solid var(--honey); max-width: 100%; overflow-wrap: anywhere;
}
.badge-text { flex-basis: 100%; font-size: .85rem; color: var(--muted); }
.badge-list { list-style: none; padding: 0; margin: 0; }
.badge-list li { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px; padding: 8px 0; border-bottom: 1px solid #eee; }
.badge-person { font-weight: 700; overflow-wrap: anywhere; }
.badge-list .badge-row { margin: 0; gap: 6px; }
.badge-mini { background: var(--honey-soft); color: #5a3d00; }
.badge-key { margin-top: 10px; }
.badge-key summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; color: var(--green); }
.my-badges { margin: 10px 0 4px; padding: 10px 12px; border-radius: 12px; background: var(--honey-soft); }
.my-badges h3 { margin: 0 0 4px; font-size: 1rem; color: var(--green); }
.results-privacy { text-align: center; margin: 6px 8px 18px; }
#after-tools .btn { width: 100%; }
#explainer-text { min-height: 220px; }

/* ---- Chat threads: the pinned Questions and each idea's comments ------------- */

/* Compact bubbles: nickname in small text above, no card chrome per message.
   Yours sit on the right; the target's answer is its own green bubble. */
.chat-list { list-style: none; margin: 10px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.msg { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; }
.msg.mine { align-items: flex-end; }
.msg-by { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; margin: 0 12px 2px; font-size: .75rem; color: var(--muted); }
.msg-by .alias { font-weight: 700; }
.msg-row { display: flex; align-items: center; gap: 2px; max-width: 100%; min-width: 0; }
.msg.mine .msg-row { flex-direction: row-reverse; }
.bubble {
  min-width: 0; max-width: 100%; padding: 7px 12px; border-radius: 16px 16px 16px 4px;
  background: #eef1ef; color: var(--ink); line-height: 1.35; overflow-wrap: anywhere;
}
.msg.mine .bubble { background: var(--honey-soft); border-radius: 16px 16px 4px 16px; }
.msg.open .msg-row .bubble { box-shadow: 0 0 0 2px var(--green); }
.answer.bubble {
  align-self: flex-start; margin-top: 4px; border-left: 4px solid var(--green);
  background: var(--green-soft); border-radius: 4px 16px 16px 16px;
}
.answer-by { font-size: .75rem; font-weight: 700; color: var(--green); }
.msg-edited { font-size: .6875rem; color: var(--muted); text-align: right; }
.msg-edit { align-self: stretch; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.msg-edit textarea { min-height: 72px; }
.msg-edit-acts { justify-content: flex-end; }
.msg-chips { display: flex; flex-wrap: wrap; gap: 4px; margin: 3px 8px 0; }
.msg-acts { gap: 6px; margin-top: 4px; }
.btn.msg-act { padding: 4px 12px; border-radius: 999px; font-size: .8125rem; }

/* The Questions thread scrolls on its own, newest at the bottom. */
.chat {
  max-height: min(56vh, 460px); overflow-y: auto; overscroll-behavior: contain;
  margin: 10px -8px 0; padding: 2px 8px 6px; border-radius: 12px; background: #fafbfa;
}
.chat .chat-list { margin-top: 6px; }
.chat-empty { margin: 8px 4px; }

/* The composer: a box that grows, then Send. */
.composer { display: flex; align-items: flex-end; gap: 6px; margin-top: 10px; }
.composer textarea {
  flex: 1; min-width: 0; min-height: 44px; max-height: 140px; resize: none;
  padding: 10px 14px; border-radius: 22px; line-height: 1.3;
}
.composer .btn { flex: none; border-radius: 22px; }
.btn.close-btn { min-width: 44px; padding: 0; }

/* Edit/Delete hide behind "…", a long-press or a swipe left. */
.btn.more-btn {
  flex: none; min-width: 44px; min-height: 44px; padding: 0; background: transparent;
  color: var(--muted); font-size: 1.3rem; line-height: 1; letter-spacing: 1px;
}
.btn.more-btn:hover, .btn.more-btn[aria-expanded="true"] { background: var(--green-soft); color: var(--green); }
.actions .more-btn { margin-left: auto; }
/* With a mouse it shows on hover or focus; on touch it stays, faint, as the visible way in. */
@media (hover: hover) and (pointer: fine) {
  [data-hold]:not(:hover):not(:focus-within) .more-btn[aria-expanded="false"] { opacity: 0; }
}
[data-hold] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: pan-y pinch-zoom; }
[data-hold] textarea, [data-hold] input { -webkit-user-select: text; user-select: text; }
.post-acts { gap: 8px; margin-top: 6px; animation: post-acts-in .14s ease-out; }
.msg.mine .post-acts { justify-content: flex-end; }
.post-acts .btn { padding: 8px 16px; font-size: .9375rem; }
@keyframes post-acts-in { from { opacity: 0; transform: translateX(16px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .post-acts { animation: none; } }

/* AI suggestions: "✨ Suggested for <name>" */
.suggest-card { border-left: 6px solid var(--honey); }
.suggest-head { display: flex; align-items: baseline; justify-content: space-between; gap: 4px 10px; flex-wrap: wrap; }
.suggest-head h2 { margin: 0; font-size: 1.15rem; color: var(--green); overflow-wrap: anywhere; }
.suggest-intro { margin: 6px 0 4px; }
.suggest-list { list-style: none; margin: 6px 0 12px; padding: 0; }
.suggest-item { border-top: 1px solid var(--line); padding: 10px 0 8px; }
.suggest-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.suggest-title { overflow-wrap: anywhere; }
.suggest-price { color: var(--muted); white-space: nowrap; }
.suggest-why { margin: 4px 0 8px; overflow-wrap: anywhere; }
.suggest-why .chip { margin-right: 4px; }
.suggest-acts .btn { padding: 8px 12px; font-size: .9375rem; }
.suggest-error { color: var(--red); font-weight: 600; margin: 8px 0; }
.suggest-next { margin: 8px 0 0; text-align: center; }
.suggest-wait { display: flex; gap: 10px; align-items: center; margin: 10px 0; color: var(--muted); }
.spinner { width: 22px; height: 22px; flex: none; border: 3px solid var(--line); border-top-color: var(--honey); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 2.4s; } }
