/* "Mời cả phòng ☕" (public/treat-room-ui.js): a small glass card resting on the middle of the status bar, on a break
   only. Quiet by default, a warm amber only while it asks before spending; the line of who treated sits on top of it.
   On a phone it spans the bar. What else rests above the bar moves up over it, the People panel's foot included. */
.treat-row { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); display: flex; flex-direction: column; gap: 6px; width: min(440px, calc(100vw - 2 * var(--gap))); padding: 8px 10px; border-radius: 16px; text-align: left; }
.treat-row[hidden], .treat-got[hidden], .treat-offer[hidden], .treat-said[hidden], .treat-thanks[hidden] { display: none; }
.treat-got { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 3px 4px 3px 12px; border-radius: 999px; background: color-mix(in srgb, #d99a5b 18%, var(--panel)); color: var(--ink); font-size: 13px; font-weight: 600; }
.treat-line { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.treat-row .treat-thanks { flex: none; min-height: 30px; padding: 3px 14px; border-radius: 999px; font-size: 12.5px; }
.treat-row .treat-thanks::after { content: " ❤️"; }
.treat-row .treat-thanks:disabled::after { content: ""; }
.treat-offer { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 2px; border-radius: 12px; transition: background .2s ease; }
.treat-offer.asking { background: color-mix(in srgb, var(--accent) 12%, transparent); }
.treat-cup { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: color-mix(in srgb, #d99a5b 22%, var(--panel)); font-size: 17px; line-height: 1; }
.treat-words { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.treat-words b { font-size: 13px; line-height: 1.25; }
.treat-words small { color: var(--hud-muted); font-size: 12px; line-height: 1.3; }
.treat-acts { flex: none; display: flex; gap: 6px; }
.treat-acts .btn { min-height: 34px; padding: 3px 14px; font-size: 12.5px; white-space: nowrap; }
.treat-acts .treat-go:not(.primary) { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
.treat-acts .treat-go:disabled { border-style: dashed; background: transparent; color: var(--hud-muted); }
.treat-said { padding: 0 4px; color: var(--hud-muted); font-size: 12px; }
@media (max-width: 760px) {
  .treat-row { left: 0; right: 0; width: auto; transform: none; }
  body.treat-on.in-room .dock { margin-bottom: var(--treat-h, 0px); }
}
@media (max-width: 760px), (pointer: coarse) {
  .treat-acts .btn, .treat-row .treat-thanks { min-height: 44px; }
  .treat-got { min-height: 44px; }
  .treat-words small { white-space: normal; }
}
@media (prefers-reduced-motion: reduce) { .treat-offer { transition: none; } }
body.treat-on .toast, body.treat-on .notify-prompt, body.treat-on .todo-ask:not(.todo-panel .todo-ask) { margin-bottom: var(--treat-h, 0px); }
@media (min-width: 761px) { body.treat-on.in-room .side { bottom: calc(var(--bottom-hud, 0px) + 2 * var(--gap) + var(--treat-h, 0px)); } }
body.pip .treat-row, body.record .treat-row { display: none !important; }
