
html{scroll-padding-bottom:calc(76px + env(safe-area-inset-bottom))}
body[data-sb-community]{--sb-community-height:calc(64px + env(safe-area-inset-bottom));padding-bottom:var(--sb-community-height)}
#sb-community-bar{box-sizing:border-box;position:fixed;inset:auto 0 0;z-index:30;height:var(--sb-community-height);padding:0 max(8px,env(safe-area-inset-right)) env(safe-area-inset-bottom) max(8px,env(safe-area-inset-left));border-top:1px solid #3b4c3d;background:#131c18;color:#c4d8c9;font:12px/1.25 system-ui,sans-serif;box-shadow:0 -6px 24px #0002}
#sb-community-bar *{box-sizing:border-box}
#sb-community-bar.sb-language-open{z-index:10020}
#sb-community-bar .sb-community-inner{display:flex;align-items:center;justify-content:center;gap:5px;width:100%;max-width:640px;height:63px;margin:0 auto}
#sb-community-bar a,#sb-community-bar button{display:flex;flex:none;align-items:center;justify-content:center;min-width:44px;min-height:44px;padding:0;border:1px solid transparent;border-radius:11px;color:inherit;text-decoration:none;font:inherit;line-height:1.2;transform:none}
#sb-community-bar button{cursor:pointer;background:transparent;appearance:none;touch-action:manipulation}
#sb-community-bar a:hover,#sb-community-bar button:hover{background:#28382c;border-color:#6c805d}
#sb-community-bar a:focus-visible,#sb-community-bar button:focus-visible{outline:2px solid #d5ff5f;outline-offset:1px}
#sb-community-bar .sb-community-brand{width:44px;flex-direction:column;gap:0;background:#d5ff5f;color:#253517;border-color:#c3ee64;box-shadow:0 2px 0 #799c36;font-size:17px;font-weight:850;letter-spacing:-.7px}
#sb-community-bar .sb-community-brand:hover{background:#e3ff9e;color:#253517}
#sb-community-bar .sb-community-smile{width:24px;height:8px;margin-top:1px}
#sb-community-bar .sb-community-visits{display:flex;flex:1;min-width:50px;max-width:92px;min-height:44px;flex-direction:column;justify-content:center;align-items:center;gap:1px;color:#d7e9dc}
#sb-community-bar .sb-community-visit-line{display:flex;align-items:center;justify-content:center;gap:4px;min-width:0;max-width:100%}
#sb-community-bar .sb-community-visit-line>svg{width:18px;height:18px;flex:none}
#sb-community-bar [data-sb-visits]{font-size:12px;font-weight:700;letter-spacing:-.25px;white-space:nowrap;min-width:10px;font-variant-numeric:tabular-nums}
#sb-community-bar .sb-community-visits>small{font-size:9px;letter-spacing:.5px;color:#90ab99}
#sb-community-bar .sb-community-goal{display:flex;flex:1;max-width:180px;min-width:98px;min-height:46px;flex-direction:column;justify-content:center;gap:3px;padding:5px 8px;border:1px solid #657d3d;border-radius:11px;background:#d5ff5f0b;color:#def792}
#sb-community-bar .sb-community-goal-top{display:flex;align-items:center;justify-content:center;gap:5px;font-size:11px;font-weight:750;font-variant-numeric:tabular-nums;white-space:nowrap;letter-spacing:-.15px}
#sb-community-bar .sb-community-goal-top>svg{width:19px;height:19px;flex:none;overflow:visible}
#sb-community-bar .sb-community-goal-divider{color:#7b9864;font-weight:400}
#sb-community-bar .sb-community-goal-bottom{display:flex;width:100%;align-items:center;justify-content:center;gap:6px;font-size:8px;letter-spacing:.2px;color:#b9cc9c;white-space:nowrap}
#sb-community-bar .sb-community-meter{display:block;flex:1;max-width:64px;height:5px;border-radius:5px;background:#47553a;overflow:hidden}
#sb-community-bar .sb-community-meter>span{display:block;width:3.3333%;height:100%;border-radius:5px;background:#d5ff5f}
#sb-community-bar .sb-community-socials{display:flex;flex:none;gap:0}
#sb-community-bar .sb-community-socials>a{width:44px;height:44px;border-radius:10px}
#sb-community-bar .sb-community-facebook{color:#81b4ff}
#sb-community-bar .sb-community-instagram{color:#f6a4d0}
#sb-community-bar #sb-language-button{width:44px;height:44px;flex-direction:column;gap:2px;border-color:#657d3d;border-radius:9px;font-size:9px;font-weight:700;letter-spacing:.3px}
#sb-community-bar #sb-language-button>svg{width:18px;height:18px}
#sb-community-bar #sb-chat-button{width:44px;height:44px;flex-direction:column;gap:2px;border-color:#657d3d;border-radius:9px;color:#def792;font-size:9px;font-weight:700}
#sb-community-bar #sb-chat-button>svg{width:20px;height:20px}
#sb-chat-panel{box-sizing:border-box;position:fixed;inset:auto max(12px,env(safe-area-inset-right)) calc(var(--sb-community-height) + 10px) auto;width:min(380px,calc(100vw - 24px));height:min(540px,calc(100dvh - var(--sb-community-height) - 24px));max-width:none;max-height:none;margin:0;padding:0;overflow:hidden;border:1px solid #657d3d;border-radius:16px;background:#101914;color:#f0f5e9;box-shadow:0 16px 60px #0008;font:14px/1.5 system-ui,sans-serif;letter-spacing:normal;text-align:left}
#sb-chat-panel[open]{display:flex;flex-direction:column}
#sb-chat-panel:not([open]),#sb-chat-panel [hidden]{display:none!important}
#sb-chat-panel::backdrop{background:#0004}
#sb-chat-panel *{box-sizing:border-box}
#sb-chat-panel .sb-chat-header{display:flex;align-items:center;justify-content:space-between;gap:12px;flex:none;padding:14px 14px 8px 18px;border:0}
#sb-chat-panel .sb-chat-header small{font-size:9px;letter-spacing:1.7px;color:#9eb38d}
#sb-chat-panel h2{margin:3px 0 0;font-size:21px;line-height:1.3;font-weight:650;letter-spacing:-.4px;color:#f0f5e9}
#sb-chat-panel button,#sb-chat-panel a{font:inherit;touch-action:manipulation}
#sb-chat-panel button{cursor:pointer;appearance:none}
#sb-chat-panel button:disabled{cursor:wait;opacity:.6}
#sb-chat-panel :is(button,a,textarea):focus-visible{outline:2px solid #d5ff5f;outline-offset:2px}
#sb-chat-panel #sb-chat-close{display:grid;place-items:center;flex:none;width:44px;height:44px;padding:0;border:1px solid #344c38;border-radius:10px;background:#1b2920;color:#d3e4cc;font-size:26px;line-height:1}
#sb-chat-panel .sb-chat-note{margin:0;padding:0 18px 12px;border-bottom:1px solid #2b3b2e;color:#a9bda3;font-size:11px;flex:none}
#sb-chat-panel #sb-chat-auth{padding:20px 18px;overflow:auto}
#sb-chat-panel #sb-chat-auth p{margin:0 0 16px;color:#b8cbb1;font-size:13px}
#sb-chat-panel #sb-chat-signin{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:10px 16px;border-radius:9px;background:#d5ff5f;color:#223016;font-weight:700;text-decoration:none}
#sb-chat-panel #sb-chat-log{flex:1;min-height:40px;overflow:auto;overscroll-behavior:contain;padding:14px 16px;scroll-padding:12px;outline-offset:-3px}
#sb-chat-panel .sb-chat-message{max-width:92%;width:fit-content;margin:0 0 12px;padding:10px 12px;border:1px solid #344b39;border-radius:12px 12px 12px 2px;background:#1a2b20;overflow-wrap:anywhere}
#sb-chat-panel .sb-chat-message[data-sender="visitor"]{margin-left:auto;border-color:#6c8142;border-radius:12px 12px 2px 12px;background:#29371c}
#sb-chat-panel .sb-chat-message small{display:block;margin-bottom:4px;color:#c7dbaa;font-size:10px}
#sb-chat-panel .sb-chat-message p{margin:0;white-space:pre-wrap;color:#f0f5e9;font-size:13px;line-height:1.6}
#sb-chat-panel .sb-chat-message time{display:block;margin-top:5px;color:#a5b69b;font-size:9px;text-align:right}
#sb-chat-panel #sb-chat-status{flex:none;margin:0;padding:2px 18px 8px;min-height:22px;color:#b4cba6;font-size:11px;white-space:pre-wrap}
#sb-chat-panel #sb-chat-status[data-error="true"]{color:#ffd0b0}
#sb-chat-panel :is(#sb-chat-retry,#sb-chat-earlier){flex:none;align-self:center;min-height:44px;margin:3px 12px;padding:8px 14px;border:1px solid #4a6340;border-radius:8px;background:#1c2b1c;color:#d3e8ba;font-size:12px}
#sb-chat-panel #sb-chat-form{flex:none;margin:0;padding:12px 16px 10px;border-top:1px solid #2b3b2e;background:#142017}
#sb-chat-panel #sb-chat-form label{display:block;margin-bottom:5px;color:#c9dabe;font-size:11px}
#sb-chat-panel #sb-chat-input{display:block;width:100%;min-height:62px;max-height:110px;resize:vertical;margin:0;padding:10px 12px;border:1px solid #48643c;border-radius:9px;background:#0d160f;color:#f0f5e9;font:16px/1.5 system-ui,sans-serif;letter-spacing:normal}
#sb-chat-panel .sb-chat-compose-actions{display:flex;justify-content:space-between;align-items:center;gap:12px;margin-top:7px}
#sb-chat-panel #sb-chat-count{font-size:10px;color:#8da67f}
#sb-chat-panel #sb-chat-send{min-width:76px;min-height:44px;padding:8px 16px;border:1px solid #d5ff5f;border-radius:9px;background:#d5ff5f;color:#243116;font-weight:750;font-size:12px}
#sb-chat-panel .sb-chat-footer{display:flex;flex:none;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:0 14px;margin:0;padding:0 16px;border-top:1px solid #2b3b2e;color:#9cb58d;font-size:10px}
#sb-chat-panel .sb-chat-footer a{display:inline-flex;align-items:center;min-height:44px;color:#bcd5a5;text-decoration:none;font-size:10px}
#sb-chat-panel .sb-chat-footer a:hover{text-decoration:underline}
#sb-chat-panel .sb-chat-social-links{display:flex;gap:14px}
#sb-community-bar #sb-language-menu{position:fixed;right:max(8px,env(safe-area-inset-right));bottom:calc(var(--sb-community-height) + 8px);z-index:100;display:grid;gap:3px;width:170px;max-width:calc(100vw - 16px);max-height:calc(100dvh - var(--sb-community-height) - 16px);overflow-y:auto;padding:6px;border:1px solid #657d3d;border-radius:10px;background:#17231c;color:#e6f2df;box-shadow:0 8px 35px #0005}
#sb-community-bar #sb-language-menu[hidden]{display:none!important}
#sb-community-bar #sb-language-menu>button{width:100%;justify-content:space-between;gap:22px;padding:8px 12px;border-radius:6px;text-align:left;font-size:13px}
#sb-community-bar #sb-language-menu>button[aria-checked="true"]{background:#2b3c24;color:#e4ffa3;font-weight:700}
#sb-community-bar #sb-language-menu small{font-size:10px;color:#a7b99c}
#sb-community-bar svg{display:block;width:22px;height:22px;max-width:none}
#sb-community-bar .sb-peeper-eyes{transform-origin:center;animation:sb-peeper-blink 6s infinite}
#sb-community-bar .sb-coffee-friend{transform-origin:center;animation:sb-coffee-hop 4s ease-in-out infinite}
#sb-community-bar:hover .sb-peeper-eyes,#sb-community-bar:hover .sb-coffee-friend,#sb-community-bar:focus-within .sb-peeper-eyes,#sb-community-bar:focus-within .sb-coffee-friend{animation-play-state:paused}
body[data-sb-community="editor"]{min-height:0}
body[data-sb-community="editor"] .workspace{height:calc(100dvh - 120px - var(--sb-community-height));min-height:0}
body[data-sb-community="editor"] .center-panel{overflow-y:auto}
body[data-sb-community="editor"] .toast{bottom:calc(var(--sb-community-height) + 16px)}
body[data-sb-community="editor"] .statusbar{scroll-margin-bottom:calc(var(--sb-community-height) + 12px)}
@keyframes sb-peeper-blink{0%,89%,93%,100%{transform:scaleY(1)}91%{transform:scaleY(.12)}}
@keyframes sb-coffee-hop{0%,76%,88%,100%{transform:translateY(0) rotate(0)}80%{transform:translateY(-2px) rotate(-5deg)}84%{transform:translateY(-2px) rotate(5deg)}}
@media(min-width:801px) and (min-height:601px){body[data-sb-community]{--sb-community-height:calc(56px + env(safe-area-inset-bottom))}#sb-community-bar .sb-community-inner{height:55px;gap:14px}#sb-community-bar .sb-community-goal{max-width:180px}}
@media(max-width:480px){#sb-community-bar .sb-community-inner{gap:3px}#sb-community-bar .sb-community-goal{min-width:84px;padding-inline:5px}#sb-community-bar .sb-community-goal-top{gap:2px;font-size:10px}#sb-community-bar .sb-community-goal-top>svg{width:14px;height:14px}#sb-community-bar .sb-community-goal-bottom{gap:4px}#sb-community-bar .sb-community-visits{min-width:28px;max-width:48px}#sb-community-bar .sb-community-visit-line{gap:2px}#sb-community-bar .sb-community-visit-line>svg{display:none}#sb-community-bar [data-sb-visits]{font-size:10px;max-width:100%;overflow:hidden;text-overflow:ellipsis}#sb-community-bar .sb-community-visits>small{font-size:8px;letter-spacing:0}}
@media(max-width:380px){#sb-community-bar .sb-community-socials{display:none}}
@media(max-height:460px){#sb-chat-panel .sb-chat-note{display:none}#sb-chat-panel .sb-chat-header{padding-block:4px}#sb-chat-panel .sb-chat-header small{display:none}#sb-chat-panel .sb-chat-footer{display:none}#sb-chat-panel #sb-chat-input{min-height:44px;height:44px}#sb-chat-panel #sb-chat-form{padding-block:6px}#sb-chat-panel #sb-chat-form label{display:none}}
@media(max-width:800px),(max-width:1000px) and (max-height:600px){
 body[data-sb-community="editor"]{height:auto;min-height:100svh;overflow:visible;padding-bottom:var(--sb-community-height)}
 body[data-sb-community="editor"] .workspace{height:auto;min-height:0;overflow:visible}
 body[data-sb-community="editor"] .center-panel{overflow:visible}
 body[data-sb-community="editor"] .workspace.preview-pinned .inspector :is(input,select,textarea,summary,button){scroll-margin-bottom:calc(var(--sb-community-height) + 12px)}
}
@media(max-width:1000px) and (max-height:450px){
 body[data-sb-community="editor"] .workspace.preview-pinned{--preview-height:clamp(96px,25svh,112px);--preview-controls-height:44px}
 body[data-sb-community="editor"] .workspace.preview-pinned>.viewport{min-height:0}
 body[data-sb-community="editor"] .workspace.preview-pinned>.canvas-bottom-bar{min-height:44px;padding-block:0}
 body[data-sb-community="editor"] .workspace.preview-pinned .inspector .panel-heading{height:44px;min-height:44px;padding-block:0}
 body[data-sb-community="editor"] .workspace.preview-pinned .inspector :is(input,select,textarea,summary,button){scroll-margin-top:calc(var(--preview-height) + var(--preview-controls-height) + 56px)}
}
@media(prefers-reduced-motion:reduce){#sb-community-bar .sb-peeper-eyes,#sb-community-bar .sb-coffee-friend{animation:none;transform:none}}
@media print{#sb-community-bar,#sb-chat-panel{display:none!important}body[data-sb-community]{padding-bottom:0!important}}
