.has-suber-community{padding-bottom:calc(76px + env(safe-area-inset-bottom))!important}
.suber-community{font:15px/1.4 system-ui,sans-serif;color:var(--ink,#13283a);--community-blue:var(--purple,#084c76)}
.suber-community *{box-sizing:border-box}.suber-community [hidden]{display:none!important}
.community-bar{position:fixed;z-index:1800;bottom:0;left:0;right:0;display:flex;justify-content:center;gap:4px;padding:8px 10px calc(8px + env(safe-area-inset-bottom));background:var(--paper,#fff);border-top:1px solid var(--line,#cad7e0);box-shadow:0 -3px 15px #1028400c}
.community-bar>a,.suber-community button,.suber-community summary{font:inherit;cursor:pointer;min-height:44px;border-radius:8px}
.community-bar>a,.community-bar>button{padding:10px 16px;display:inline-flex;align-items:center;justify-content:center;gap:6px;color:var(--ink,#123b58);text-decoration:none;background:#f1f6fa;border:1px solid #dde6ed;font-weight:650;max-width:30%;overflow-wrap:anywhere}
.community-messenger svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;flex-shrink:0}.community-bar>button{background:var(--purple,#084c76);color:var(--on-accent,#fff)}
.suber-community button:focus-visible,.suber-community a:focus-visible,.suber-community input:focus-visible,.suber-community textarea:focus-visible,.suber-community summary:focus-visible{outline:3px solid #e6a400;outline-offset:2px}
.community-dock{position:fixed;z-index:1799;right:16px;bottom:calc(76px + env(safe-area-inset-bottom));display:flex;align-items:flex-end;gap:10px;max-width:calc(100vw - 32px);pointer-events:none}
.community-dock>section{pointer-events:auto;border:1px solid var(--line,#bfd0dd);border-radius:14px;background:var(--paper,#fff);box-shadow:0 6px 32px #0c25442b;width:320px;max-width:100%;overflow:auto;max-height:min(75vh,720px)}
.community-dock header{position:sticky;top:0;background:var(--subtle,#edf5fa);padding:10px 12px;display:flex;align-items:center;gap:8px;border-bottom:1px solid var(--line,#d8e3eb);z-index:1}.community-dock h2{font-size:16px;margin:0;flex:1;overflow-wrap:anywhere}.community-dock h3{font-size:16px;margin:10px 0}
.community-dock button{padding:8px 12px;background:var(--community-blue);color:var(--paper,#fff);border:1px solid transparent}.community-dock header button{background:var(--paper,#fff);color:var(--ink,#123b58);border-color:var(--line,#bed1df);padding:6px 8px;font-size:12px}.community-dock button:disabled{opacity:.6;cursor:wait}
.community-panel>p,.community-panel>label,.community-panel>details,.community-panel>a,.community-panel>button{margin:12px;display:block}.community-panel>label{display:flex;align-items:center;gap:10px}.community-panel input[type=checkbox]{width:20px;height:20px;accent-color:var(--purple,#084c76)}.community-help{font-size:12px;color:var(--muted,#53697b)}
.community-contacts{display:grid;gap:6px;padding:0 12px}.community-contacts>button{text-align:left;display:flex;align-items:center;gap:8px;background:var(--canvas,#f5f8fb);color:var(--ink,#13283a);border-color:var(--line,#dce6ed)}.community-contacts strong{flex:1}.community-contacts span{font-size:12px}.community-contacts [data-presence=online]{color:#186139}.community-contacts [data-presence=away]{color:#885a05}.community-unread{background:var(--purple,#084c76);color:var(--on-accent,#fff);padding:2px 5px;border-radius:8px}
.community-panel details{border-top:1px solid var(--line,#dbe4eb);padding-top:6px}.community-panel summary{display:list-item;padding:10px 0;font-weight:650}.community-panel form,.community-chat form{display:grid;gap:8px;padding:12px}.community-panel form{padding:4px 0}.community-panel label,.community-chat label{display:grid;gap:5px;font-weight:600}.community-dock input:not([type=checkbox]),.community-dock textarea{display:block;width:100%;font:inherit;color:var(--ink,#13283a);background:var(--paper,#fff);border:1px solid var(--control-line,#8096a7);border-radius:6px;padding:9px;min-height:44px}.community-dock textarea{resize:vertical;max-height:180px}.community-dock a{color:var(--purple,#084c76);min-height:44px;display:inline-flex;align-items:center}.community-panel details p{font-size:13px}
.community-status{font-size:13px;min-height:18px;margin:8px 12px;overflow-wrap:anywhere}.community-messages{height:270px;max-height:40vh;overflow:auto;list-style:none;padding:12px;margin:0;display:flex;flex-direction:column;gap:10px}.community-messages li{background:var(--subtle,#edf1f5);border-radius:10px;padding:8px 10px;max-width:90%;align-self:flex-start;overflow-wrap:anywhere;white-space:pre-wrap}.community-messages li.own{align-self:flex-end;background:var(--lavender,#dceefa)}.community-messages p{margin:0}.community-messages time{font-size:10px;color:var(--muted,#53697b);display:block;margin-top:4px}.community-pending{padding:0 12px;font-size:13px;overflow-wrap:anywhere}.community-pending:empty{display:none}.community-chat.minimized>:not(header){display:none}.community-chat.minimized{width:230px}.community-chat>button{margin:6px 12px}
@media(max-width:800px){.community-bar{padding-left:4px;padding-right:4px}.community-bar>a,.community-bar>button{font-size:12px;padding:9px 8px;flex:1;max-width:30%;min-width:0}.community-messenger svg{width:18px;height:18px}.community-dock{left:6px;right:6px;max-width:none;bottom:calc(72px + env(safe-area-inset-bottom));justify-content:flex-end;gap:4px}.community-dock>section{width:min(100%,430px);max-height:calc(100dvh - 156px)}.community-dock:has(.community-chat:not(.minimized))>.community-panel{display:none}.community-dock>.community-chat:not(:last-child):not(.minimized){display:none}.community-chat.minimized{width:130px;flex-shrink:1}.community-chat.minimized h2{font-size:12px}.community-chat.minimized header>button:last-child{display:none}.community-messages{height:34dvh}.community-dock>.community-chat:not(.minimized){position:absolute;bottom:0;right:0;width:100%;max-width:430px}.community-panel{margin-left:auto}}
/* Shared shell spacing follows actual text/bar height and the visible keyboard. */
.has-suber-community{padding-bottom:calc(var(--community-space,76px) + env(safe-area-inset-bottom))!important}
.suber-community{font-size:1rem;--community-blue:var(--purple,#084c76)}
.community-bar{flex-wrap:wrap}.community-bar>a,.community-bar>button{max-width:none;min-width:0;font-size:.875rem;padding:.625rem .75rem}
.community-dock{bottom:calc(var(--community-bar-height,76px) + var(--community-keyboard,0px) + 6px)}
.community-dock>section{max-height:calc(var(--community-visible-height,100dvh) - var(--community-bar-height,76px) - 12px)}
.community-dock h2{font-size:1rem}.community-help,.community-status,.community-panel details p{font-size:.875rem}.community-messages time{font-size:.75rem}.community-dock header button{font-size:.875rem}
.community-panel details>div{overflow-wrap:anywhere}.community-panel details p,.community-panel details h3{margin:.75rem 0}
.community-dock input:not([type=checkbox]),.community-dock textarea{font-size:max(1rem,16px)}
.suber-community[data-keyboard=true] .community-bar{display:none}
.suber-community[data-keyboard=true] .community-dock{bottom:calc(var(--community-keyboard,0px) + 4px)}
.suber-community[data-keyboard=true] .community-dock>section{max-height:calc(var(--community-visible-height,100dvh) - 8px)}
@media(max-width:800px){.community-bar>a,.community-bar>button{font-size:.8rem;padding:.5rem .25rem;flex:1 1 15%;max-width:none;overflow-wrap:anywhere}.community-messenger svg{display:none}.community-dock{bottom:calc(var(--community-bar-height,76px) + var(--community-keyboard,0px) + 6px)}.community-chat form{padding:.5rem}.community-messages{height:24dvh;max-height:12rem}.community-chat.minimized h2{font-size:.85rem}}
@media(prefers-reduced-motion:reduce){.community-dock *{scroll-behavior:auto!important}}
.community-chat.minimized header{overflow:hidden}.community-chat.minimized h2{white-space:nowrap;text-overflow:ellipsis;overflow:hidden;min-width:0}
@media(max-width:800px){.community-chat.minimized{width:min(60vw,240px)}.community-chat.minimized h2{font-size:1rem}}
.suber-community[data-large-text=true] .community-bar>a,.suber-community[data-large-text=true] .community-bar>button{flex:1 1 28%;font-size:1rem;overflow-wrap:normal;word-break:normal}
.suber-community[data-large-text=true] .community-dock header{flex-wrap:wrap}
.suber-community[data-large-text=true] .community-dock h2{flex-basis:100%}
.suber-community[data-large-text=true] .community-dock>section{max-width:100%;overflow-x:hidden}
@media(max-width:800px){.community-dock:has(>.community-panel)>.community-chat.minimized{display:none}.community-dock>.community-panel{flex:0 0 100%;max-width:100%}}
.suber-community[data-large-text=true] .community-bar>a,.suber-community[data-large-text=true] .community-bar>button{flex-basis:44%;font-size:.875rem}

/* Accent fills and text are a contrast-tested pair in every saved theme. */
.suber-community .community-messenger,.community-dock button,.community-unread{background:var(--accent-fill,#084c76);color:var(--on-accent,#fff)}
.community-dock header button,.community-contacts>button{background:var(--paper,#fff);color:var(--ink,#13283a);border-color:var(--line,#bfd0dd)}
.community-contacts [data-presence=online]{color:var(--success-ink,#186139)}
.community-contacts [data-presence=away]{color:var(--muted,#885a05)}

.suber-community .community-bar>a{background:var(--paper,#fff);color:var(--ink,#13283a);border-color:var(--line,#cad7e0)}

/* Suber's red, yellow and blue identity, with the shared saved palette. */
.suber-community{color:var(--ink,#13283a);--community-blue:var(--accent-fill,#3046bc)}
.community-bar{background:var(--paper,#fff);border-top:3px solid transparent;border-image:linear-gradient(90deg,#bf293e 0 33.33%,#e9bc2e 33.33% 66.66%,#3046bc 66.66%) 1}
.community-bar>a{background:var(--subtle,#f1f6fa);color:var(--ink,#123b58);border-color:var(--line,#dde6ed)}
.community-bar>button,.community-dock button{background:var(--accent-fill,#3046bc);color:var(--on-accent,#fff)}
.community-dock>section{background:var(--paper,#fff);color:var(--ink,#13283a);border-color:var(--line,#bfd0dd)}
.community-dock header{background:var(--subtle,#edf5fa);border-color:var(--line,#d8e3eb);border-top:3px solid #dfb631}
.community-dock header button,.community-contacts>button{background:var(--paper,#fff);color:var(--ink,#13283a);border-color:var(--line,#bed1df)}
.community-dock input:not([type=checkbox]),.community-dock textarea{background:var(--canvas,#fff);color:var(--ink,#13283a);border-color:var(--control-line,#8096a7)}
.community-dock :is(a,.community-contacts [data-presence=online],.community-contacts [data-presence=away]){color:var(--purple,#084c76)}
.community-help,.community-messages time,.community-handle{color:var(--muted,#53697b)}
.community-messages li{background:var(--subtle,#edf1f5)}.community-messages li.own{background:var(--lavender,#dceefa)}
.community-contacts>button{flex-wrap:wrap}.community-contacts strong{flex-basis:65%}.community-handle{flex-basis:100%;font-weight:400}
.community-alert{position:fixed;bottom:calc(var(--community-bar-height,76px) + 12px);left:12px;max-width:min(90vw,340px);background:var(--paper,#fff);color:var(--ink,#13283a);padding:1rem;border:1px solid var(--control-line,#8096a7);border-left:4px solid #dfb631;border-radius:10px;box-shadow:0 4px 24px #0003;z-index:1801}.community-alert p{margin:0 0 .5rem}.community-alert button{margin-right:.5rem;padding:.5rem;background:var(--accent-fill,#3046bc);color:var(--on-accent,#fff);border:0}
/* Original Suber messenger chrome, with private images and real presence. */
.community-dock>section{margin:0;padding:0;flex-shrink:1;min-width:0;border-radius:12px 12px 5px 5px}.community-dock header{padding:7px 9px;gap:6px}.community-avatar{position:relative;overflow:hidden;display:grid;place-items:center;flex:0 0 36px;width:36px;height:36px;border-radius:10px;background:var(--lavender,#dceefa);color:var(--ink,#13283a);border:1px solid var(--control-line,#8096a7);font-size:.85rem;font-weight:800}.community-avatar img{position:absolute;inset:0;width:100%;height:100%;object-fit:cover}.community-me{display:flex;gap:10px;align-items:center;margin:12px}.community-me>div{display:grid;min-width:0;overflow-wrap:anywhere}.community-me .community-avatar{width:44px;height:44px;flex-basis:44px}.community-contact-info{display:grid;flex:1;min-width:0;overflow-wrap:anywhere}.community-contacts>button{flex-wrap:nowrap;padding:8px;text-align:left}.community-contacts .community-contact-info strong{font-size:.9rem;flex-basis:auto}.community-contact-info .community-handle{font-size:.75rem}.community-presence{font-size:.75rem;display:inline-flex;align-items:center;gap:5px;color:var(--muted,#53697b)}.community-presence:before{content:'';display:inline-block;width:7px;height:7px;background:#8592a3;border-radius:50%;border:1px solid var(--paper,#fff)}.community-presence[data-presence=online]:before{background:#35ad75}.community-presence[data-presence=away]:before{background:#e5b542}.community-filter{margin:8px 12px!important;font-size:.8rem;display:grid!important;gap:4px!important}.community-chat-person{flex:1;min-width:0}.community-chat-person h2{font-size:.9rem;line-height:1.3}.community-chat header .community-avatar{flex-basis:30px;width:30px;height:30px;border-radius:8px}.community-dock header button{font-size:.75rem;padding:6px;flex-shrink:0;min-height:44px}.community-chat form{gap:6px;padding:9px}.community-chat label{font-size:.8rem}.community-chat textarea{min-height:58px}.community-chat form>button{justify-self:end;padding:6px 18px}.community-messages{height:240px;gap:8px;padding:10px}.community-messages li{border-radius:13px 13px 13px 3px;max-width:88%;font-size:.9rem;line-height:1.45}.community-messages li.own{border-radius:13px 13px 3px 13px}.community-messages time{font-size:.7rem}.community-chat.minimized .community-chat-person{overflow:hidden}.community-chat.minimized .community-presence{display:none}.community-chat.minimized header .community-avatar{flex-basis:26px;width:26px;height:26px}.community-chat.minimized{width:260px}.community-status:empty{min-height:0;margin:0}.community-chat.minimized .community-chat-person h2{font-size:.85rem}
@media(max-width:800px){.community-dock>.community-chat.minimized{width:min(60vw,230px)}.community-dock>.community-chat:not(.minimized){max-width:430px}.community-messages{height:24dvh;max-height:12rem}.community-chat header{flex-wrap:nowrap}.community-chat-person{min-width:0}.community-chat-person h2{overflow-wrap:anywhere}.community-chat form>button{min-height:44px}}
/* Keep every destination reachable at large text without covering the page. */
.suber-community[data-large-text=true] .community-bar{flex-wrap:nowrap;justify-content:flex-start;overflow-x:auto;scrollbar-width:thin;max-width:100vw}
.suber-community[data-large-text=true] .community-bar>a,.suber-community[data-large-text=true] .community-bar>button{flex:0 0 auto;white-space:nowrap;word-break:normal;overflow-wrap:normal;font-size:.875rem;padding:.5rem .65rem;min-height:44px}
/* Let the person's name keep a readable row when larger text fills the phone. */
.suber-community[data-large-text=true] .community-chat header{flex-wrap:wrap}
.suber-community[data-large-text=true] .community-chat-person{flex:1 1 calc(100% - 48px)}
.suber-community[data-large-text=true] .community-chat header>button{flex:1 1 auto}
/* The forecast drawer must end above the measured navigation, including large text. */
.has-suber-community #suber-weather-bar .weather-bar-details-content,html[data-suber-bookmarks=on]:has(#suber-bookmark-bar) body.has-suber-community #suber-weather-bar .weather-bar-details-content{max-height:min(70vh,640px,calc(100dvh - var(--suber-weather-bar-height,100px) - var(--suber-bookmark-bar-height,0px) - var(--community-space,76px) - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px) - 16px))}
