/* v24 mobile polish */
html{overscroll-behavior-x:none}
.version-badge23{font-variant-numeric:tabular-nums}
body.is-room23{position:fixed!important;inset:0;overflow:hidden!important;width:100%;overscroll-behavior:none}
body.is-room23 .app{position:fixed!important;left:0;right:0;top:var(--chat-offset24,0px);margin:0 auto;max-width:650px;height:var(--chat-height24,100dvh)!important;max-height:var(--chat-height24,100dvh)!important;overflow:hidden;display:flex;flex-direction:column;padding:0}
body.is-room23 .room-screen23{height:100%;min-height:0;overflow:hidden}
body.is-room23 .room-screen23 .chatbox{overflow-y:auto;overscroll-behavior-y:contain;min-height:0;scroll-behavior:auto}
body.is-room23 .room-bottom23{padding-bottom:max(7px, env(safe-area-inset-bottom))}
body.is-room23 .room-bottom23 textarea{touch-action:pan-y;scroll-margin:0}
/* Meta text is outside the actual rounded message body. */
.room-screen23 .msg-line24{display:flex;align-items:flex-end;gap:6px;max-width:100%;flex-shrink:0}
.room-screen23 .msg-line24.mine24{flex-direction:row-reverse;justify-content:flex-start}
.room-screen23 .msg-line24.other24{flex-direction:row}
.room-screen23 .msg-line24 .bubble{width:fit-content;max-width:min(82%,360px);margin:0;padding:10px 12px}
.room-screen23 .msg-line24 .file-bubble24{padding:3px;border:0;background:transparent;box-shadow:none}
.msg-time24{font-size:10px;line-height:1.3;white-space:nowrap;color:#8b9890;flex:0 0 auto;margin:0 0 3px;align-self:flex-end;font-weight:400}
.room-screen23 .message-body24{font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}
/* Natural photo proportions (no 4:5 cover crop). */
.photo-card23.photo-card24{width:fit-content!important;max-width:min(68vw,270px);gap:0}
.photo-frame23.photo-frame24{position:relative;display:block;width:fit-content;min-width:145px;min-height:145px;max-width:100%;height:auto;max-height:none;aspect-ratio:auto!important;border-radius:11px;overflow:hidden;background:#e7ece8;padding:0}
.photo-frame23.photo-frame24.ready{min-width:0;min-height:0}
.photo-frame23.photo-frame24 img{display:block;width:auto;height:auto;max-width:min(68vw,270px);max-height:370px;object-fit:contain!important;opacity:0;border-radius:11px}
.photo-frame23.photo-frame24.ready img{opacity:1}
.photo-frame23.photo-frame24.ready .photo-loading23{display:none}
.movie-card24{max-width:min(68vw,250px)}
/* Full-bleed dark image viewer with a single download arrow. */
#modal:has(.viewer24){padding:0!important;background:#090a0a;align-items:stretch;justify-content:stretch}
#modal:has(.viewer24) .modalbox{width:100%;max-width:100%;height:100dvh;max-height:100dvh;margin:0;padding:0;border:0;border-radius:0;background:#090a0a;box-shadow:none;overflow:hidden}
.viewer24{height:100%;display:flex;flex-direction:column;color:#fff;min-height:0}
.viewer-head24{display:flex;align-items:center;justify-content:space-between;min-height:56px;padding:7px max(10px,env(safe-area-inset-right));flex-shrink:0;background:#090a0a;gap:10px}
.viewer-head24>span{font-size:13px;font-weight:600;opacity:.7}
.viewer-icon24{display:grid;place-items:center;width:44px;height:44px;border:0;background:transparent;color:#fff;border-radius:50%;font-size:22px}
.viewer-icon24:disabled{opacity:.4}
.viewer-stage24{flex:1;display:flex;min-height:0;align-items:center;justify-content:center;overflow:hidden;background:#080808}
.viewer-stage24 img.viewer-photo24{display:block;width:auto;height:auto;max-width:100vw;max-height:100%;object-fit:contain;-webkit-touch-callout:default}
.viewer-stage24 video.viewer-video24{display:block;max-width:100vw;width:100%;height:auto;max-height:100%;object-fit:contain}
.viewer-wait24{color:#abb3ae;font-size:14px}
.viewer-notice24{min-height:max(48px,env(safe-area-inset-bottom));color:#b6c0bb;text-align:center;font-size:12px;margin:0;padding:8px 18px max(8px,env(safe-area-inset-bottom));line-height:1.4;flex-shrink:0}
/* Event screen with a pinned X / title / Save header. */
#modal.is-event24{padding:0!important;align-items:stretch;justify-content:center;background:rgba(22,29,27,.48)}
#modal.is-event24 .modalbox.event-sheet24{display:flex;flex-direction:column;width:min(100%,650px);max-width:650px;height:100dvh;max-height:100dvh;overflow-y:auto;border-radius:0;padding:0 16px 26px;background:#fffefa;-webkit-overflow-scrolling:touch}
.event-header24{position:sticky;top:0;z-index:7;background:#fffefa;display:grid;grid-template-columns:56px 1fr 60px;align-items:center;gap:5px;border-bottom:1px solid #e8ebe5;margin:0 -16px 15px;padding:6px 12px;min-height:60px}
.event-header24 strong{text-align:center;font-size:16px}
.event-header24 button{min-width:44px;min-height:42px;border:0;background:transparent;font-size:15px}
.event-header24 .event-close24{text-align:left;font-size:23px;color:#3a4b45}
.event-header24 .event-save24{text-align:right;color:#238669;font-weight:800}
.event-form24{gap:14px}
.event-form24 input#etitle{font-size:16px}
.event-pick-label24{font-size:14px;font-weight:750;margin-top:4px}
.event-form24 .event-summary24{margin:0;gap:9px}
.event-form24 .event-summary24 .event-choice{padding:11px 12px;min-width:0}
.event-picker24{margin:5px 0 13px}
.event-picker24 .reserve-tabs button{font-size:14px}
.event-form24 .repeat-options18{border-top:1px solid #e8eee7;padding-top:16px}
@media(min-width:650px){#modal.is-event24 .modalbox.event-sheet24{height:min(90dvh,900px);max-height:90dvh;align-self:center;border-radius:20px}}

/* Event rows borrow TimeTree's compact, tap-to-edit behavior (not its branding). */
.event-form24 .event-summary24{display:flex;flex-direction:column;gap:0;border-top:1px solid #e7ebe6;border-bottom:1px solid #e7ebe6;margin-bottom:5px}
.event-form24 .event-summary24 .event-choice{position:relative;width:100%;border:0;border-radius:0;background:transparent!important;box-shadow:none;display:flex;align-items:center;gap:8px;text-align:left;padding:13px 32px 13px 2px!important;min-height:57px;color:#243d35;flex-wrap:wrap}
.event-form24 .event-summary24 .event-choice+ .event-choice{border-top:1px solid #eef0ec}
.event-choice-label24{width:33px;flex-shrink:0;color:#79877f;font-size:13px;font-weight:600}
.event-choice-date24{font-size:14px;font-weight:700;white-space:nowrap}
.event-choice-time24{font-size:14px;margin-left:auto;white-space:nowrap;color:#355348;font-weight:650}
.event-choice-arrow24{position:absolute;right:4px;top:50%;transform:translateY(-50%);font-size:22px;font-weight:300;color:#909e96}
.event-form24 .event-summary24 .active24 .event-choice-time24,.event-form24 .event-summary24 .active24 .event-choice-date24{color:#138361}
.event-picker24{border:1px solid #dceae1;border-radius:15px;background:#f8faf8;margin:2px 0 14px!important;padding:10px;overflow:hidden}
.event-picker24:empty{display:none}
.event-picker24 .picker{padding:2px;margin:0;border:0;background:transparent}
.event-picker24 .reserve-time-section{margin-top:15px}
.event-picker24 .event-picker-done24{width:100%;border:1px solid #cae1d5;border-radius:11px;padding:10px;background:#fff;color:#137357;font-size:14px;font-weight:750;margin-top:12px}
.event-form24 .event-pick-label24{margin:7px 0 2px;font-size:14px}
.event-form24 .repeat-options18{margin-top:6px}
@media(max-width:370px){.event-choice-date24,.event-choice-time24{font-size:12px}.event-choice-label24{width:29px}}
/* Keep start/end/date/time aligned in one compact TimeTree-style line. */
.event-form24 .event-summary24 .event-choice{display:grid!important;grid-template-columns:30px minmax(0,1fr) auto 12px;column-gap:7px;align-items:center;justify-content:stretch;flex-wrap:nowrap;min-height:64px;padding:13px 4px!important}
.event-choice-label24{width:auto;grid-column:1;white-space:nowrap}
.event-choice-date24{grid-column:2;min-width:0;white-space:normal;line-height:1.35;font-size:13px!important;overflow-wrap:normal!important}
.event-choice-time24{grid-column:3;margin:0;font-size:12px!important}
.event-choice-arrow24{position:static;transform:none;grid-column:4;text-align:right;font-size:20px}
@media(max-width:390px){.event-form24 .event-summary24 .event-choice{grid-template-columns:26px minmax(0,1fr) auto 12px;column-gap:5px}.event-choice-date24{font-size:12px!important}.event-choice-time24{font-size:11px!important}}
