/* ร่วมทาง? + ปุ่มหาปาร์ตี้ + หน้าต่างหาปาร์ตี้ (party-nudge.js · ใบ 162)
   ⚠️ ตำแหน่งบนจอสัมผัสเป็นของ ui-root.js (โซนซ้ายล่าง ก่อนแถบปาร์ตี้) — ไฟล์นี้ตั้ง position เฉพาะคอม (เมาส์) */
#pf-dock { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; width: 228px; max-width: calc(100vw - 16px); font-family: 'Mitr', 'Anuphan', sans-serif; }
#pf-dock[hidden] { display: none; }
html:not(.touch-ui) #pf-dock { position: fixed; right: 6px; top: 176px; z-index: 10; align-items: flex-end; }
/* กว้างเท่าปุ่ม — โซนซ้ายล่างกว้างตามลูกที่กว้างสุด และ --hz-bl-r คือขอบซ้ายของแผงตกปลา/การ์ดได้ปลา/บทสอน (กล่อง 236px เคยบีบแผงพวกนั้นแคบ · ผู้ใช้ 13 ต.ค.) */
html.touch-ui #pf-dock { width: max-content; max-width: min(236px, 44vw); }

#pf-dock .pf-btn { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 4px 12px 4px 9px; border-radius: 999px; border: 2px solid #e2cc98;
  background: linear-gradient(#fffaf0, #fbf1da); color: #4b2d17; font: 600 12.5px/1 'Mitr', 'Anuphan', sans-serif; cursor: pointer; box-shadow: 0 3px 8px rgba(75, 45, 23, .22); }
#pf-dock .pf-btn[hidden] { display: none; }
#pf-dock .pf-btn:hover { background: #ffe9ad; }
html.touch-ui #pf-dock .pf-btn { min-height: 44px; }

#pf-toast { position: relative; width: 236px; max-width: calc(100vw - 16px); font-family: 'Mitr', 'Anuphan', sans-serif; padding: 7px 9px 9px; border-radius: 14px; border: 2px solid #e2cc98; overflow: hidden;
  background: linear-gradient(#fffaf0, #fbf1da); color: #4b2d17; box-shadow: 0 6px 16px rgba(75, 45, 23, .26), inset 0 0 0 2px #fffdf6; font-size: 12px; line-height: 1.3; }
#pf-toast[hidden] { display: none; }
html:not(.touch-ui) #pf-toast { position: fixed; right: 6px; top: 230px; z-index: 10; }
#pf-toast .pf-q { display: flex; flex-direction: column; gap: 2px; }
#pf-toast .pf-q b { font-size: 13.5px; color: #2f6f73; }
#pf-toast .pf-q em { font-style: normal; font-weight: 700; }
#pf-toast .pf-acts { display: flex; gap: 6px; margin-top: 6px; }
#pf-toast .pf-acts button { flex: 1; min-height: 32px; padding: 3px 6px; border-radius: 10px; border: 1px solid #cdb27a; background: #fff3d2; color: #4b2d17; font: 600 12px 'Mitr', 'Anuphan', sans-serif; cursor: pointer; }
#pf-toast .pf-acts .pf-yes { flex: 1.5; background: linear-gradient(#4aa5a1, #2f6f73); border-color: #2a6164; color: #fff8e2; }
html.touch-ui #pf-toast .pf-acts button { min-height: max(44px, calc(44px / var(--ui, 1))); }   /* โซนบนกลางถูก zoom ด้วย --ui (จอเตี้ยหด) — ขนาดจริงบนจอ ≥ 44px (bug-1016-hud-cover) */
html.touch-ui #pf-toast .pf-dont { min-height: max(44px, calc(44px / var(--ui, 1))); margin-top: 0; font-size: 12px; }
html.touch-ui #pf-toast .pf-dont input { width: 18px; height: 18px; }
#pf-toast .pf-dont { display: flex; align-items: center; gap: 5px; margin-top: 5px; font-size: 10.5px; color: #7a6048; cursor: pointer; }
#pf-toast .pf-dont input { margin: 0; width: 14px; height: 14px; }
#pf-toast .pf-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #e8b64a; transform-origin: left; animation: pf-count linear 1; }
@keyframes pf-count { to { transform: scaleX(0); } }
#pf-toast.sent { padding-bottom: 7px; }
@media (prefers-reduced-motion: reduce) { #pf-toast .pf-bar { animation: none; } }


/* คำชวนปาร์ตี้ = การ์ดเล็กบนกลาง (ui.js invite · role=alertdialog → liftAsk ยกชั้น Popup บนจอสัมผัส) */
#inv-card { position: fixed; top: calc(var(--sa-t, 0px) + 8px); left: 50%; transform: translateX(-50%); z-index: var(--z-popup, 300); width: 260px; max-width: calc(100vw - 16px);
  box-sizing: border-box; padding: 8px 10px 10px; border-radius: 14px; border: 2px solid #e2cc98; overflow: hidden; font-family: 'Mitr', 'Anuphan', sans-serif;
  background: linear-gradient(#fffaf0, #fbf1da); color: #4b2d17; box-shadow: 0 6px 16px rgba(75, 45, 23, .3), inset 0 0 0 2px #fffdf6; font-size: 13px; line-height: 1.3; }
#inv-card p { margin: 0 0 6px; }
#inv-card .inv-acts { display: flex; gap: 6px; }
#inv-card .inv-acts button { flex: 1; min-height: 44px; padding: 3px 6px; border-radius: 10px; border: 1px solid #cdb27a; background: #fff3d2; color: #4b2d17; font: 600 13px 'Mitr', 'Anuphan', sans-serif; cursor: pointer; }
#inv-card .inv-acts .main { flex: 1.5; background: linear-gradient(#4aa5a1, #2f6f73); border-color: #2a6164; color: #fff8e2; }
#inv-card .inv-acts small { opacity: .8; font-size: 11px; }
#inv-card .inv-bar { position: absolute; left: 0; bottom: 0; height: 3px; width: 100%; background: #e8b64a; transform-origin: left; animation: pf-count linear 1 forwards; }
@media (prefers-reduced-motion: reduce) { #inv-card .inv-bar { animation: none; } }
/* social-party-1107: การ์ดคำชวนบอกผล (รอ/ล้ม/ไม่มีคำตอบ) — client/party-invite.js */
#inv-card .inv-msg { margin: 0 0 6px; font-size: var(--fs-xs, 12px); font-weight: 600; color: #6b4a24; }
#inv-card .inv-msg.bad { color: #9a3a1c; }
#inv-card .inv-msg.warn { color: #8a5a10; }
#inv-card .inv-acts button:disabled { opacity: .6; cursor: default; }
