.member-heading{display:flex;justify-content:space-between;align-items:center;gap:16px;flex-wrap:wrap;margin-bottom:24px}.adoption-page .member-heading h1{margin-bottom:8px}.member-empty{text-align:center;padding:64px 16px;color:#806c56}.member-empty h2{font-size:20px;margin-bottom:16px}.chat-layout{display:grid;grid-template-columns:280px minmax(0, 1fr);gap:32px;width:100%}.pet-summary-card{background:#fff8e9;border-radius:24px;padding:32px 20px;align-self:start}.pet-summary-card .adoption-avatar{width:160px;height:160px}.pet-summary-card h2{font-size:20px;font-weight:500}.chat-conversation{min-width:0}.chat-dialogue-panel{border:1px solid #eee5d5;border-radius:20px;overflow:hidden;background:#fff;margin-bottom:24px}.chat-scene{min-height:88px;overflow:hidden;background:#faedcb;position:relative;display:flex;align-items:center}.chat-background{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;object-position:center 35%;opacity:.4}.chat-scene span{z-index:1;margin:16px 24px;padding:6px 12px;background:rgba(255,248,233,0.94);border-radius:10px;color:#806c56;font-size:14px;line-height:1.7}.chat-speech{padding:28px}.chat-speech p{margin:0;font-size:18px;line-height:1.9;white-space:pre-line;overflow-wrap:anywhere}.dialogue-options{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:12px}.furpal-home .dialogue-options .btn,.furpal-home #other-answer{text-align:left;justify-content:flex-start;padding:10px 16px;border-radius:14px;min-height:48px;white-space:normal;color:#6f5a43;background:#fff;border-color:#e8dfd1;line-height:1.7;transition:background .18s ease, border-color .18s ease}.furpal-home .dialogue-options .btn:hover,.furpal-home #other-answer:hover{background:#fff8e9;border-color:#d6b77f}.furpal-home .dialogue-options .btn:disabled,.furpal-home #other-answer:disabled{opacity:.6}.chat-composer{display:grid;grid-template-columns:minmax(0, 1fr) 88px;gap:12px;align-items:center;margin-top:16px;padding:16px;border:1px solid #eee5d5;border-radius:16px;background:#fff}.chat-composer textarea{resize:vertical;min-height:80px;width:100%;min-width:0;font-size:16px;line-height:1.7}.furpal-home .chat-composer .btn{width:88px;min-width:88px;white-space:nowrap}.chat-last-reply{font-size:14px;overflow-wrap:anywhere;margin:20px 28px 0;padding:8px 12px;background:#fff8e9;border-radius:8px}.chat-picture img{max-width:240px;max-height:240px;border-radius:16px;margin-bottom:24px}.dialogue-history{width:100%}.letter-detail{max-width:760px;margin:auto}.history-messages{display:flex;flex-direction:column;gap:24px}.history-message{background:#fff8e9;border-radius:16px;padding:20px;margin-right:48px;overflow-wrap:anywhere;white-space:pre-line}.history-message.from-people{background:#faedcb;margin-right:0;margin-left:48px}.history-picture img{max-width:100%;max-height:280px;border-radius:12px;margin-top:16px}.letter-card{text-decoration:none;color:#493a2c;display:flex;flex-direction:column;height:100%;padding:0;border-radius:16px;overflow:hidden;transition:transform .2s ease;background:#fff;box-shadow:0 2px 5px rgba(73,58,44,0.045),0 10px 28px rgba(73,58,44,0.085)}.letter-body{padding:16px}.letter-card:hover{color:#493a2c}.letter-cover{position:relative;aspect-ratio:1;background:#fff8e9;border:0;border-radius:0;flex-shrink:0;overflow:hidden;display:flex;align-items:center;justify-content:center;margin-bottom:0;transition:transform .2s ease}.letter-cover img{width:100%;height:100%;object-fit:cover}.letter-cover-unread img{filter:blur(4px);transform:scale(1.04);transition:filter .2s ease}.letter-frost{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;background:rgba(255,248,233,0.38);transition:background .2s ease}.letter-open{padding:8px 18px;border-radius:999px;background:rgba(255,253,248,0.94);color:#6f5a43;font-size:14px;box-shadow:0 2px 12px rgba(73,58,44,0.08)}@media (hover: hover) and (pointer: fine){.letter-card:hover{transform:scale(1.02)}.letter-card:hover .letter-frost{background:rgba(255,248,233,0.24)}.letter-card:hover .letter-cover-unread img{filter:blur(3px)}}@media (prefers-reduced-motion: reduce){.letter-card,.letter-cover,.letter-cover-unread img,.letter-frost{transition:none}.letter-card:hover{transform:none}}.letter-card h2{font-size:16px;line-height:1.6;height:3.2em;margin-bottom:8px;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;overflow-wrap:anywhere}.letter-location{font-size:14px;line-height:1.8;color:#806c56;margin-bottom:8px;overflow-wrap:anywhere}.letter-meta{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:4px 12px;font-size:14px;line-height:1.8;color:#806c56}.letter-meta .letter-location{margin-bottom:0;flex:0 1 auto}.letter-date{flex:0 0 auto;white-space:nowrap;margin-left:auto}.letter-unread{color:#a65f16}.letter-pictures{display:grid;gap:24px;margin-top:24px}.letter-pictures .card-button{width:100%}.letter-pictures img{max-width:100%;max-height:65vh;width:auto;height:auto;object-fit:contain;border:5px solid #fff;border-radius:16px}.letter-text{font-size:16px;line-height:1.9;margin:24px 0 32px;white-space:pre-line;overflow-wrap:anywhere}@media (max-width: 767.98px){.chat-layout{grid-template-columns:1fr}.chat-companion{display:none}.chat-scene{min-height:72px}.chat-scene span{margin:12px 16px}.chat-speech{padding:20px}.chat-speech p{font-size:16px}.chat-composer{grid-template-columns:minmax(0, 1fr);padding:12px}.chat-composer .btn{justify-self:end}.chat-last-reply{margin:16px 20px 0}.history-message{margin-right:24px}.history-message.from-people{margin-left:24px}}@media (min-width: 768px) and (max-width: 991.98px){.dialogue-options{grid-template-columns:minmax(0, 1fr)}.chat-composer{grid-template-columns:minmax(0, 1fr)}.chat-composer .btn{justify-self:end}}@media (max-width: 479.98px){.dialogue-options{grid-template-columns:minmax(0, 1fr)}}@media (prefers-reduced-motion: reduce){.furpal-home .dialogue-options .btn,.furpal-home #other-answer{transition:none}}.furpal-home #letter-preview .preview-image{max-height:calc(100vh - 240px);max-height:calc(100dvh - 240px)}#letter-preview-title{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;max-width:760px;overflow-wrap:anywhere}#letter-preview-meta{margin-top:6px;font-size:14px;opacity:.8}.letter-preview-status{color:#fff8e9;text-align:center;pointer-events:auto}.letter-image-controls{display:flex;align-items:center;gap:20px;color:#fff8e9;flex-shrink:0;pointer-events:auto}.letter-preview-retry{pointer-events:auto;flex-shrink:0}@media (max-height: 500px){.furpal-home #letter-preview .modal-dialog{padding-top:32px;padding-bottom:16px}.furpal-home #letter-preview .preview-figure{gap:8px}.furpal-home #letter-preview .preview-image{max-height:calc(100dvh - 190px)}}#letter-preview [hidden]{display:none !important}.chat-messages,.history-messages{display:flex;flex-direction:column;gap:24px;margin-bottom:24px}.chat-message{display:flex;align-items:flex-start;gap:12px;max-width:85%;align-self:flex-start;min-width:0}.message-avatar{width:64px;height:64px;flex:0 0 64px;object-fit:cover;border-radius:12px}.message-bubble{min-width:0;padding:16px 20px;background:#fff8e9;color:#493a2c;border:1px solid #eee1cb;border-radius:4px 18px 18px}.message-text{margin:0;font-size:16px;line-height:1.8;white-space:pre-wrap;overflow-wrap:anywhere}.message-meta{margin:0 0 8px;font-size:12px;line-height:1.5;color:#806c56}.chat-message.from-people{align-self:flex-end}.from-people .message-bubble{border-color:#b88750;background:#b88750;color:#fff;border-radius:18px 4px 18px 18px}.from-people .message-meta{color:#fff4e5}.history-picture{display:block;margin-top:12px}.history-picture img{display:block;max-width:100%;max-height:320px;border-radius:12px;margin:0;object-fit:contain}.dialogue-options{display:flex;flex-direction:column;align-items:flex-end;gap:12px}.furpal-home .dialogue-options .btn,.furpal-home #other-answer{max-width:85%;width:auto;padding:12px 18px;border-radius:18px 18px 4px}.furpal-home #other-answer{display:flex;margin:12px 0 0 auto;text-decoration:none}.pet-profile-card{display:grid;grid-template-columns:280px minmax(0, 1fr);gap:32px;width:100%}.pet-profile-card .adoption-form{min-width:0;padding:32px;border:1px solid #eee5d5;border-radius:24px;background:#fff}@media (max-width: 767.98px){.chat-message{max-width:95%;gap:8px}.message-avatar{width:48px;height:48px;flex-basis:48px;border-radius:10px}.message-bubble{padding:12px 16px}.pet-profile-card{grid-template-columns:1fr;gap:24px}.pet-profile-card .adoption-form{padding:24px}}.furpal-home #other-answer[hidden]{display:none !important}.chat-interaction{display:flex;flex-direction:column;min-height:520px;padding:24px;border:1px solid #eee5d5;border-radius:20px;background:#fff}.chat-interaction .chat-messages{min-height:100px}.chat-interaction #dialogue-form{margin-top:0}.chat-interaction .chat-selected-reply{width:fit-content;margin-left:auto}.chat-interaction [hidden]{display:none !important}#dialogue-status:empty{display:none}.chat-reply-status:not(:has(#dialogue-status:empty)){margin-bottom:12px}.chat-opening-failed .chat-reply-hint{display:none}#chat-messages[aria-busy=true] #pet-message{display:flex;align-items:center;gap:10px;color:#806c56}#chat-messages[aria-busy=true] #pet-message::before{content:'';width:16px;height:16px;flex:0 0 16px;border:2px solid #eadcc4;border-top-color:#b88750;border-radius:50%;animation:dialogue-thinking .8s linear infinite}@keyframes dialogue-thinking{to{transform:rotate(360deg)}}@media (max-width: 767.98px){.chat-interaction{padding:16px;min-height:600px}.chat-interaction .chat-messages{min-height:88px}}@media (prefers-reduced-motion: reduce){#chat-messages[aria-busy=true] #pet-message::before{animation:none}}.chat-interaction .reply-slot-hidden{visibility:hidden !important;pointer-events:none}.furpal-home .dialogue-options .reply-choice-selected:disabled{color:#fff;background:#b88750;border-color:#b88750;opacity:1}.chat-replies-pending .dialogue-options,.chat-replies-pending #other-answer,.chat-replies-pending .chat-composer{visibility:hidden !important;pointer-events:none}.chat-interaction .chat-composer[hidden]{display:grid !important;visibility:hidden;pointer-events:none}.chat-other-slot{display:grid;margin-top:12px}.furpal-home .chat-other-slot #other-answer,.chat-other-slot>.chat-selected-reply{grid-area:1 / 1;align-self:start;justify-self:end;margin:0}@keyframes chat-content-enter{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:translateY(0)}}#chat-messages:not([aria-busy=true]) #pet-message,.chat-selected-reply:not([hidden]),.chat-composer:not([hidden]){animation:chat-content-enter .24s ease-out both}#dialogue-form:not(.chat-replies-pending):not([aria-busy=true]) .dialogue-options .btn,#dialogue-form:not(.chat-replies-pending):not([aria-busy=true]) #other-answer{animation:chat-content-enter .24s ease-out both}#dialogue-form:not(.chat-replies-pending):not([aria-busy=true]) .dialogue-options .btn:nth-child(2){animation-delay:.08s}#dialogue-form:not(.chat-replies-pending):not([aria-busy=true]) #other-answer{animation-delay:.16s}@media (prefers-reduced-motion: reduce){#chat-messages #pet-message,.chat-selected-reply:not([hidden]),.chat-composer:not([hidden]),#dialogue-form .dialogue-options .btn,#dialogue-form #other-answer{animation:none !important}}.chat-reply-hint{margin:0 0 12px;text-align:right;font-size:12px;line-height:1.6;color:#d8a76b}.chat-replies-pending .chat-reply-hint,#dialogue-form[aria-busy=true] .chat-reply-hint{visibility:hidden}#dialogue-form:not(.chat-replies-pending):not([aria-busy=true]) .chat-reply-hint{animation:chat-content-enter .24s ease-out both}@media (prefers-reduced-motion: reduce){#dialogue-form .chat-reply-hint{animation:none !important}}.history-panel{position:relative;border:1px solid #eee5d5;border-radius:20px;background:#fff;overflow:hidden}.history-scroll{height:clamp(440px, 78vh, 900px);overflow-y:auto;overscroll-behavior-y:contain;overflow-anchor:none;padding:24px;scrollbar-color:#ded2bf transparent}.history-load-bar{min-height:20px;text-align:center;margin-bottom:24px;font-size:12px;line-height:1.6}.history-load{color:#a65f16;text-underline-offset:3px}.history-load[aria-disabled=true]{pointer-events:none}.history-start,.history-status{color:#9a856c;margin:0}.history-status:not(:empty){margin-top:8px}.history-panel [hidden]{display:none !important}.history-panel .history-messages{gap:16px;margin:0}.history-time{align-self:center;margin:8px 0 0;color:#9a856c;font-size:12px;line-height:1.6;text-align:center}.furpal-home .history-latest{position:absolute;right:20px;bottom:20px;min-height:36px;padding:6px 14px;font-size:12px;background:#fffdf8;box-shadow:0 3px 12px rgba(73,58,44,0.08)}.history-panel .history-picture img{width:240px;height:240px;max-width:100%;object-fit:contain}.history-scroll:focus-visible{outline:2px solid #d6b77f;outline-offset:-2px}@media (max-width: 767.98px){.history-scroll{height:75vh;height:75dvh;min-height:360px;padding:16px}.history-panel .history-picture img{width:180px;height:180px}.furpal-home .history-latest{right:12px;bottom:12px}}.member-chat .chat-layout{grid-template-columns:minmax(260px, 30%) minmax(0, 1fr);gap:24px;align-items:start}.chat-sidebar{min-width:0}.chat-trip-card{padding:16px;border:1px solid #eaddc6;border-radius:18px;background:#fffdf8}.chat-trip-card h2{margin:0;font-size:17px;line-height:1.55}.chat-trip-stop,.chat-trip-route{margin-top:14px;padding:12px;border-radius:12px;background:#faf1dc}.chat-trip-stop{display:flex;gap:12px;align-items:center}.chat-trip-avatar{display:block;width:64px;height:64px;flex:none;object-fit:contain;object-position:center;border-radius:50%;background:#fff8e9;border:3px solid #fff;box-shadow:0 3px 12px rgba(73,58,44,0.25)}.chat-trip-route{display:grid;grid-template-columns:repeat(2, minmax(0, 1fr));gap:8px 16px}.chat-trip-track{--route-color: #b77923;grid-column:1 / -1;display:grid;place-items:center;position:relative;margin:0 5px}.chat-trip-track::before{content:'';position:absolute;inset:50% 1px auto 0;height:2px;transform:translateY(-50%);background:repeating-linear-gradient(to left, var(--route-color) 0 6px, transparent 6px 11px)}.chat-trip-track .chat-trip-avatar{position:relative}.chat-trip-track::after{content:'';box-sizing:content-box;position:absolute;right:2px;top:50%;width:8px;height:8px;border-top:2px solid var(--route-color);border-right:2px solid var(--route-color);transform:translateY(-50%) rotate(45deg)}.chat-trip-label{display:block;color:#75614a;font-size:12px}.chat-trip-destination{text-align:right}.chat-trip-stop,.chat-trip-route{overflow-wrap:anywhere}@media (prefers-reduced-motion: no-preference){.chat-trip-track .chat-trip-avatar{animation:travel-bob 1.25s ease-in-out infinite}@keyframes travel-bob{50%{transform:translateY(-2px)}}}.member-chat .chat-interaction{height:auto;min-height:clamp(440px, calc(100vh - 220px), 740px);min-height:clamp(440px, calc(100dvh - 220px), 740px);padding:20px}.member-chat .chat-interaction .chat-messages{flex-shrink:0;min-height:80px;margin-bottom:44px}.member-chat #dialogue-form{flex-shrink:0}@media (max-width: 767.98px){.member-heading{margin-bottom:16px;gap:12px}.member-chat .member-heading .btn{padding:6px 14px !important;font-size:14px}.member-chat .chat-layout{grid-template-columns:1fr;gap:16px}.member-chat .chat-interaction{height:auto;min-height:400px;padding:16px}.member-chat .chat-interaction .chat-messages{min-height:64px;margin-bottom:32px}.member-chat .dialogue-options .btn,.member-chat #other-answer{padding:10px 16px}}@media (min-width: 768px){.member-chat .chat-layout{align-items:start}.member-chat .chat-conversation{display:flex}.member-chat .chat-interaction{flex:1;min-width:0;height:640px;min-height:0}}.member-chat .chat-composer textarea{resize:none;height:80px}
