
.bridge-profile-dialog{width:min(360px,calc(100% - 32px));max-height:85dvh;overflow:auto;box-sizing:border-box;border:1px solid #c8d8cf;border-radius:20px;padding:22px;background:#fafcfb;color:#173e2b;box-shadow:0 16px 60px #0005;font:16px/1.45 system-ui,sans-serif}
.bridge-profile-dialog::backdrop{background:#001b1880;backdrop-filter:blur(3px)}
.bridge-profile-dialog h3{font-size:22px;margin:0 0 18px}.bridge-profile-dialog label{display:block}.bridge-profile-dialog input[name=nickname]{box-sizing:border-box;width:100%;padding:12px;margin:6px 0 16px;border:1px solid #9caf9f;border-radius:10px;font:inherit;background:white;color:#123d2e}
.bridge-profile-dialog fieldset{border:0;padding:0;margin:0}.bridge-profile-dialog legend{margin-bottom:10px}.bridge-icon-choices{display:grid;grid-template-columns:repeat(4,1fr);gap:5px}.bridge-icon-choices label{position:relative;cursor:pointer}.bridge-icon-choices input{position:absolute;opacity:0;width:100%;height:100%;margin:0;cursor:pointer}.bridge-icon-choices span{display:grid;place-items:center;min-height:44px;border:2px solid transparent;border-radius:12px;background:#e8eeea;font-size:25px}.bridge-icon-choices input:checked+span{border-color:#086344;background:#d6eadf}.bridge-icon-choices input:focus-visible+span{outline:3px solid #dca52c;outline-offset:2px}
#bridgeProfileNote{font-size:14px;color:#4a6356;margin:15px 0}.bridge-profile-actions{display:flex;gap:10px;justify-content:flex-end}.bridge-profile-actions button{border:0;border-radius:10px;padding:11px 15px;font:600 16px system-ui;cursor:pointer;background:#e5ece7;color:#214632}.bridge-profile-actions button[type=submit]{background:#07583e;color:white}
.comment-form .bridge-profile-chip{justify-self:start;max-width:100%;overflow-wrap:anywhere;background:transparent;color:#154d36;border:0;padding:3px 2px;font-size:14px;cursor:pointer}.bridge-profile-chip[hidden]{display:none!important}.reply-avatar{display:inline-block;margin-right:5px}.comment-user b{overflow-wrap:anywhere}.comment-user{min-width:0}.comment-avatar{font-size:21px}.chat-composer textarea::placeholder{font-size:14px}
@media(max-width:380px){.bridge-icon-choices{grid-template-columns:repeat(3,1fr);gap:8px}}

#commentBody{caret-color:#123d2e}

.bridge-mask-icon{display:block;width:28px;height:31px;flex-shrink:0}.bridge-icon-choices .bridge-mask-icon{width:30px;height:33px}.bridge-chip-icon{display:inline-flex;vertical-align:middle;align-items:center}.bridge-chip-icon .bridge-mask-icon{width:22px;height:24px}.reply-avatar .bridge-mask-icon{width:22px;height:24px;display:inline-block;vertical-align:middle}

/* Keep chat within phone widths; 16px fields prevent Safari focus auto-zoom. */
.community-drawer{width:100%;max-width:100%;padding-left:env(safe-area-inset-left);padding-right:env(safe-area-inset-right)}
.community-sheet{width:min(100%,480px);max-width:100%;min-width:0}
.comments-list,.comment-form,.chat-composer,.comment,.reply,.reply-form{min-width:0;max-width:100%}
.comment{flex-shrink:0;width:100%}
.comment-header,.comment-user{min-width:0}
.comment-form .chat-composer textarea,.reply-form input,.bridge-profile-dialog input[name=nickname]{font-size:16px}
.chat-composer .emoji-picker,.reply-form .emoji-picker{left:auto;right:0;width:min(240px,calc(100vw - 120px));max-width:calc(100vw - 36px - env(safe-area-inset-left) - env(safe-area-inset-right))}
