.chat-page-heading{margin-bottom:18px}.couple-chat{position:relative;height:calc(100dvh - 240px);min-height:430px;background:#fff8fb}.couple-chat .chat-heading{padding:14px 20px;background:#fff;flex-wrap:nowrap}.couple-chat .chat-peer{min-width:0;flex:1}.couple-chat .chat-heading h3{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px}.couple-chat .chat-heading p{font-size:11px;color:#b48d9f}.chat-icon{border:0;background:transparent;padding:8px;display:grid;place-items:center;flex-shrink:0;width:40px;height:42px;border-radius:9px;color:#a36f89;touch-action:manipulation}.chat-icon:hover{background:#fff0f6}.chat-icon svg{width:24px;height:24px;stroke-width:1.7}.chat-search-row{padding:9px 17px;background:#fff}.chat-search-row .search{width:100%;font-size:14px}.couple-chat .chat-messages{min-height:0;padding:12px 20px 22px;scroll-behavior:auto;overflow-x:hidden;overscroll-behavior:contain}.chat-date{text-align:center;color:#b4a0ac;font-size:11px;margin:15px 0 22px}.couple-chat .message{max-width:87%;gap:10px;margin-bottom:20px}.couple-chat .message .avatar{width:35px;height:35px;border-radius:12px;font-size:13px;border:1px solid #eed8e4;background:#f9e6ef}.couple-chat .message .avatar.you{background:#e7eef8;border-color:#dce4f0}.couple-chat .chat-bubble{font-size:15px;line-height:1.7;background:#fff;border:1px solid #f0e2e9;color:#654759;border-radius:3px 14px 14px 14px;padding:10px 14px;box-shadow:0 2px 6px #99537504;min-height:42px}.couple-chat .mine .chat-bubble{background:#f9dfe9;border-color:#f4d6e2;border-radius:14px 3px 14px 14px}.chat-message-meta{display:flex;align-items:center;gap:6px;font-size:10px;color:#baa5b1;margin-top:5px}.mine .chat-message-meta{justify-content:flex-end}.couple-chat .message time{margin:0;font-size:10px}.chat-message-meta button{border:0;background:none;color:#b67091;font-size:11px;padding:0 3px;min-height:22px}.chat-failed{color:#bf5b74}.chat-sending{color:#b792a5}.couple-chat .photo-bubble{padding:4px;overflow:hidden;white-space:normal}.chat-photo{padding:0;border:0;background:none;display:block;max-width:100%;border-radius:9px;overflow:hidden;cursor:zoom-in}.chat-photo img{display:block;max-width:100%;width:auto;height:auto;max-height:290px;min-height:60px;object-fit:contain;max-width:min(260px,100%)}.chat-image-fallback{padding:25px 15px;color:#a77690;font-size:12px;display:block}.chat-caption{padding:8px 9px 5px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:14px}.chat-file{display:flex;gap:12px;align-items:center;color:#966581;text-decoration:none;padding:10px;max-width:260px;overflow-wrap:anywhere}.chat-file svg{width:28px;height:28px;flex-shrink:0}.chat-file span{font-size:13px}.chat-file small{display:block;font-size:11px;color:#b797a9;margin-top:4px}.couple-chat .voice-bubble{padding:0;white-space:normal}.chat-voice{width:var(--voice-width,130px);max-width:100%;min-width:115px;min-height:46px;display:flex;align-items:center;gap:15px;border:0;background:transparent;color:#8f5d78;padding:12px 15px;border-radius:inherit;font-size:14px}.mine .chat-voice{flex-direction:row-reverse}.voice-play-label{font-size:10px;opacity:.6;margin-left:auto}.mine .voice-play-label{margin-left:0;margin-right:auto}.voice-waves{height:20px;display:flex;align-items:center;gap:3px}.voice-waves i{width:3px;background:currentColor;border-radius:3px;height:8px}.voice-waves i:nth-child(2){height:14px}.voice-waves i:nth-child(3){height:20px}.chat-voice.playing .voice-waves i{animation:chat-wave .65s ease-in-out infinite alternate}.chat-voice.playing .voice-waves i:nth-child(2){animation-delay:.18s}.chat-voice.playing .voice-waves i:nth-child(3){animation-delay:.35s}.chat-empty{padding:35px 15px;text-align:center;color:#b389a0;font-size:14px}.chat-empty>span{font:50px Georgia;color:#d6a4bc}.chat-empty small{display:block;font-size:12px;color:#c0a4b3;margin-top:8px}.chat-new-messages{position:absolute;right:14px;bottom:108px;border:1px solid #efd9e4;border-radius:20px;background:#fff;color:#b26a8c;padding:7px 14px;box-shadow:0 3px 18px #ad65821a;font-size:12px;z-index:2}.couple-chat .chat-composer{background:#fff9fc;padding:12px 15px 8px;flex-shrink:0}.couple-chat .chat-controls{gap:7px;align-items:flex-end}.couple-chat .chat-controls textarea{background:white;border:1px solid #ecdae5;border-radius:12px;line-height:1.5;height:43px;min-height:43px;padding:9px 12px;max-height:120px;font-size:16px}.chat-send{min-height:42px;height:42px;padding:9px 12px;border-radius:11px;font-size:13px;flex-shrink:0}.chat-send svg{width:17px;height:17px}.chat-hold-record{flex:1;min-width:0;height:43px;border:1px solid #e6d2df;border-radius:11px;color:#99748b;font-size:14px;background:#fff;touch-action:none;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.chat-hold-record.recording{background:#f1d6e4;border-color:#dca7c1;color:#8e4d70}.couple-chat .chat-form .chat-composer-hint{font-size:10px;line-height:1.5;color:#b89aac;margin:6px 0 0 47px}.chat-tools{display:flex;gap:18px;padding:15px 5px 8px}.chat-tools button{border:0;background:none;color:#a67490;padding:0;font-size:11px;display:flex;align-items:center;gap:6px;flex-direction:column}.chat-tools svg{width:48px;height:48px;background:#fff;border:1px solid #efdfE8;padding:12px;border-radius:15px}.chat-photo-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:11px;margin-top:18px}.chat-photo-choice{position:relative;min-width:0}.chat-photo-choice img{display:block;width:100%;height:120px;object-fit:cover;background:#fff1f7;border-radius:10px}.chat-photo-choice button{position:absolute;top:5px;right:5px;border:0;background:#604452b3;color:white;border-radius:50%;width:25px;height:25px;font-size:17px;line-height:1}.chat-photo-choice small{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;margin-top:4px;color:#b28dA1;font-size:10px}#chat-image-viewer{max-width:100vw;width:min(1100px,100%);max-height:100dvh;padding:12px;background:#342b33;border:0;color:#fff;border-radius:12px}#chat-image-viewer::backdrop{background:#201820ed;backdrop-filter:blur(5px)}.chat-viewer-toolbar{display:flex;align-items:center;gap:15px;padding:3px 3px 13px}.chat-viewer-toolbar span{flex:1;font-size:12px;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}.chat-viewer-toolbar a{font-size:12px;color:#f0cadf;white-space:nowrap}.chat-viewer-toolbar .icon-btn{border:0;background:#ffffff18;color:white}#chat-full-image{display:block;max-width:100%;max-height:calc(100dvh - 90px);margin:auto;object-fit:contain}.chat-recording-overlay{position:fixed;z-index:160;inset:0;background:#261d29e8;backdrop-filter:blur(8px);color:#fff;display:flex;flex-direction:column;justify-content:center;align-items:center;pointer-events:none;padding-bottom:80px}.chat-recording-orb{border-radius:35px;background:#e4b2cb;min-width:125px;min-height:125px;display:grid;place-items:center;position:relative;margin-bottom:25px}.chat-recording-orb>svg{width:42px;height:42px;color:#75445d}.chat-recording-overlay strong{font:28px Georgia;letter-spacing:2px}.chat-recording-overlay p{font-size:17px;margin-top:22px}.chat-recording-overlay small{font-size:12px;color:#d0bcc9;margin-top:12px}.chat-recording-overlay.cancel-record .chat-recording-orb{background:#eaa5af}.chat-recording-overlay.cancel-record p{color:#ffbdc6}.record-waves{display:flex;gap:3px;position:absolute;bottom:15px;align-items:center;height:12px}.record-waves i{height:8px;width:3px;border-radius:2px;background:#8d5371;animation:chat-wave .6s ease-in-out infinite alternate}.record-waves i:nth-child(2n){animation-delay:.2s;height:12px}.record-waves i:nth-child(3n){animation-delay:.4s}@keyframes chat-wave{to{transform:scaleY(.35);opacity:.5}}
@media(max-width:640px){body[data-view=chat] main{padding:0;min-height:0}body[data-view=chat] main>.page-heading{display:none}body[data-view=chat] footer{display:none}.couple-chat{border:0;border-radius:0;min-height:230px;max-height:none;height:calc(100dvh - 134px - env(safe-area-inset-top) - env(safe-area-inset-bottom))}.couple-chat .chat-heading{padding:9px 15px;min-height:58px;gap:10px}.couple-chat .chat-messages{padding:5px 12px 20px}.couple-chat .message{max-width:91%;gap:8px;margin-bottom:17px}.couple-chat .chat-bubble{font-size:16px;padding:9px 12px}.couple-chat .message .avatar{width:33px;height:33px}.couple-chat .photo-bubble{padding:3px}.chat-photo img{max-width:min(220px,100%);max-height:260px}.couple-chat .voice-bubble{padding:0}.chat-voice{min-height:45px}.couple-chat .chat-composer{padding:8px 9px 7px}.couple-chat .chat-controls{gap:4px}.chat-icon{width:34px;padding:5px;min-height:43px}.chat-icon svg{width:25px;height:25px}.chat-send{padding:8px 10px;min-height:43px}.chat-send svg{display:none}.couple-chat .chat-form .chat-composer-hint{margin-left:39px;font-size:9px}.chat-tools{gap:25px;padding-left:15px}.chat-photo-grid{gap:9px}.chat-photo-choice img{height:100px}.chat-photo-choice button{min-height:25px}.chat-new-messages{bottom:91px;font-size:11px}.chat-message-meta{font-size:9px;gap:4px}.chat-message-meta button{font-size:10px;min-height:20px}.couple-chat .message time{font-size:9px}#chat-image-viewer{border-radius:0;padding:10px}#chat-photo-preview{padding:20px}.chat-viewer-toolbar{gap:11px}.chat-viewer-toolbar .icon-btn{width:34px;min-height:34px;height:34px}}
@media(prefers-reduced-motion:reduce){.voice-waves i,.record-waves i{animation:none!important}}
.chat-original-preview{height:120px;border-radius:10px;background:#fff1f7;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:9px;color:#b389a1;font-size:12px}.chat-original-preview svg{width:32px;height:32px}.couple-chat .chat-controls textarea:focus{outline:2px solid #e6bbd1;outline-offset:1px}
