.bce{--bg:#f4f5ef;--surface:#fff;--ink:#183b33;--muted:#576b61;--accent:#245e4b;--line:#d5dfd6;color:var(--ink);background:var(--bg);font:16px/1.5 system-ui,sans-serif;border-radius:24px;padding:clamp(16px,3vw,36px);max-width:1160px;margin:auto;box-sizing:border-box}.bce *{box-sizing:border-box}.bce h2,.bce h3,.bce p{color:inherit;margin:0 0 12px}.bce-heading{border-bottom:1px solid var(--line);padding-bottom:22px;margin-bottom:24px}.bce-heading span,.bce small{font-size:12px;letter-spacing:.06em;color:var(--muted)}.bce-heading h2{font-size:clamp(26px,4vw,42px);letter-spacing:-.04em;margin-top:8px}.bce button,.bce input,.bce textarea,.bce select{font:inherit}.bce button{min-height:44px;border:1px solid var(--line);border-radius:12px;padding:9px 14px;background:var(--surface);color:var(--ink);cursor:pointer;transition:background .15s,transform .15s}.bce button:hover{background:color-mix(in srgb,var(--accent) 12%,var(--surface))}.bce button:active{transform:scale(.97)}.bce button:focus-visible,.bce a:focus-visible{outline:3px solid #b68735;outline-offset:3px}.bce button:disabled{opacity:.55;cursor:wait}.bce button.active,.bce button.primary{background:var(--accent);color:#fff;border-color:transparent}.bce-toolbar,.bce-monthbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-bottom:20px}.bce-toolbar .bce-submit{margin-left:auto}.bce-monthbar strong{flex:1;text-align:center;font-size:20px}.bce-calendar{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:5px;margin-bottom:24px}.bce-weekday{font-size:12px;text-align:center;color:var(--muted);padding:4px}.bce-calendar button{height:clamp(48px,7vw,82px);border-radius:10px;position:relative;padding:4px}.bce-calendar button.today{box-shadow:inset 0 0 0 2px var(--accent)}.bce-calendar button.outside{opacity:.35}.bce-dot{display:block;width:5px;height:5px;border-radius:50%;background:currentColor;margin:2px auto}.bce-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:18px}.bce-card{border:1px solid var(--line);border-radius:18px;background:var(--surface);overflow:hidden;box-shadow:0 5px 16px #0c261509}.bce-card a,.bce-card button{display:block;color:inherit;text-decoration:none;width:100%;text-align:left;border:0;padding:0;background:transparent}.bce-card img{display:block;width:100%;height:240px;object-fit:contain;background:color-mix(in srgb,var(--accent) 7%,var(--surface))}.bce-card div{padding:18px}.bce-card h3{font-size:20px;line-height:1.25;margin:8px 0}.bce-card p{font-size:14px;color:var(--muted)}.bce-empty{padding:36px 16px;text-align:center;color:var(--muted);border:1px dashed var(--line);border-radius:16px}.bce-status{padding:12px;border-radius:10px;background:#fff2d6;color:#674800;margin:12px 0}.bce-dialog{background:var(--surface);color:var(--ink);border:1px solid var(--line);border-radius:22px;width:min(720px,94vw);max-height:92dvh;padding:24px;overflow:auto;overscroll-behavior:contain}.bce-dialog::backdrop{background:#071b29b8;backdrop-filter:blur(5px)}.bce-dialog header{display:flex;gap:12px;align-items:start;justify-content:space-between;margin-bottom:18px}.bce-dialog header h2{font-size:25px}.bce-dialog img{max-width:100%;max-height:65vh;object-fit:contain;margin:auto;display:block}.bce-dialog .bce-poster{border:0;padding:0;display:block;width:100%;margin-bottom:20px;background:transparent}.bce-dialog dl{display:grid;grid-template-columns:100px 1fr;gap:8px}.bce-dialog dt{color:var(--muted)}.bce-dialog dd{margin:0}.bce-form{display:grid;grid-template-columns:1fr 1fr;gap:16px}.bce-form label{display:flex;flex-direction:column;gap:6px;font-size:14px}.bce-form .full{grid-column:1/-1}.bce-form input,.bce-form textarea,.bce-form select{width:100%;color:var(--ink);background:var(--bg);border:1px solid var(--line);border-radius:10px;padding:10px;min-height:44px}.bce-form textarea{min-height:100px;resize:vertical}.bce-form label.check{display:flex;flex-direction:row;align-items:start}.bce-form input[type=checkbox]{width:20px;min-height:20px;flex:none;margin-top:2px}.bce a{color:var(--accent);text-decoration:underline}.bce-trap{position:absolute;left:-10000px;width:1px;height:1px;overflow:hidden}.bce-loading{padding:30px;text-align:center}.bce-admin-row{padding:16px;border:1px solid var(--line);border-radius:14px;margin:12px 0;background:var(--surface)}.bce-admin-row button{margin:8px 8px 0 0}.bce-log{white-space:pre-wrap;overflow-wrap:anywhere;font-size:13px}.bce-zoom{width:min(1100px,96vw)}.bce-zoom img{max-height:78vh}.bce-detail-description{white-space:pre-line}.bce [hidden]{display:none!important}@media(max-width:520px){.bce{padding:16px;border-radius:16px}.bce-toolbar .bce-submit{width:100%;margin-left:0}.bce-grid{grid-template-columns:1fr}.bce-form{grid-template-columns:1fr}.bce-dialog{padding:18px}.bce-card img{height:280px}.bce-calendar{gap:3px}.bce-calendar button{min-width:0;padding:3px}.bce-dialog dl{grid-template-columns:1fr;gap:2px}.bce-dialog dd{margin-bottom:8px}}@media(prefers-reduced-motion:reduce){.bce *{transition:none!important}}
.bce button{height:auto;text-transform:none;letter-spacing:normal;line-height:1.5}.bce .bce-card button,.bce-dialog .bce-poster{height:auto;max-height:none;white-space:normal}.bce .bce-card button{border-radius:0;overflow:visible}
/* Keep theme button dimensions and floats out of the calendar and its dialogs. */
.bce{--bg:#f7f9f8;--ink:#203b34;--muted:#5c7069;--line:#e0e8e3;border-radius:16px;border:1px solid var(--line);box-shadow:none}
.bce-heading{padding-bottom:18px;margin-bottom:22px}.bce-heading h2{font-size:clamp(26px,3vw,34px);font-weight:650;line-height:1.2;letter-spacing:-.025em}.bce-heading p{color:var(--muted);font-size:15px}
.bce button{box-shadow:none;background-image:none;font-size:14px;font-weight:550;border-radius:8px;float:none;max-width:100%;white-space:normal}
.bce .bce-card{border-radius:10px;box-shadow:none;min-width:0;margin:0}
.bce .bce-card button{height:auto!important;min-height:0;max-height:none;display:block;overflow:visible;padding:0;margin:0;line-height:1.5;text-transform:none;text-align:left}
.bce .bce-card img{position:static;float:none;display:block;height:260px;width:100%;max-width:100%;object-fit:contain;margin:0;background:#eef2f0}
.bce .bce-card h3{font-size:18px;font-weight:650;line-height:1.4;overflow-wrap:anywhere}.bce .bce-card div{padding:18px}.bce .bce-card small{letter-spacing:0;font-size:12px}
.bce .bce-dialog{position:fixed;inset:0;margin:auto;height:fit-content;max-height:90dvh;padding:24px;border-radius:14px;box-shadow:0 24px 80px #142c3333;z-index:99999}
.bce .bce-dialog header{position:static;float:none;background:none;padding:0;box-shadow:none;min-height:0}
.bce .bce-dialog header h2{font-size:23px;line-height:1.4;letter-spacing:-.02em;flex:1;margin:0}
.bce .bce-dialog header button{flex:0 0 40px;width:40px;min-height:40px;height:40px;padding:0;border-radius:50%}
.bce .bce-dialog .bce-picture{display:block;position:static;margin:0 0 24px;clear:both}
.bce .bce-dialog .bce-poster{height:auto!important;min-height:0;max-height:none;padding:0;line-height:0;box-shadow:none;border-radius:8px;overflow:hidden;margin:0;float:none;display:block}
.bce .bce-dialog img{position:static;float:none;display:block;width:auto;height:auto;max-width:100%;max-height:58dvh;object-fit:contain;margin:0 auto}
.bce .bce-dialog dl{position:static;clear:both;margin:0 0 20px;padding:0;font-size:15px;line-height:1.5}.bce .bce-dialog dd{overflow-wrap:anywhere}
.bce .bce-dialog .bce-toolbar{margin-top:20px;margin-bottom:0}.bce .bce-detail-description{font-size:16px;line-height:1.65;overflow-wrap:anywhere}
.bce .bce-status{font-size:14px;line-height:1.5;border:1px solid #eddfba;background:#fff9eb}.bce .bce-status ul{margin:8px 0;padding-left:20px}
.bce .bce-form input[type=checkbox]{appearance:auto;min-width:20px;height:20px;padding:0;accent-color:var(--accent)}
.bce-home-link{text-align:right;margin:12px 0 28px;font:14px/1.5 system-ui,sans-serif}.bce-home-link a{color:#245e4b}
.bce .bce-card h3,.bce .bce-card:hover h3,.bce .bce-card button:hover h3,.bce .bce-card a:hover h3{color:var(--ink)!important}.bce .bce-card p,.bce .bce-card small{color:var(--muted)!important}
.bce .bce-submit-footer{position:sticky;bottom:-24px;z-index:2;background:var(--surface);border-top:1px solid var(--line);padding:12px 0 max(12px,env(safe-area-inset-bottom));display:grid;gap:10px}.bce .bce-submit-footer button{width:100%;min-height:48px}.bce .bce-submit-footer .status:empty{display:none}.bce .bce-submit-error{color:#9a3023;font-size:14px;line-height:1.5}.bce [aria-invalid=true]{border:2px solid #9a3023!important}.bce .bce-submit-success{padding:18px 0;color:var(--ink)}.bce .bce-submit-success h3{color:var(--ink)!important}.bce .bce-submit-success button{width:100%;margin-top:12px}@media(max-width:520px){.bce .bce-submit-footer{bottom:-18px}.bce .bce-form input,.bce .bce-form select,.bce .bce-form textarea{font-size:16px}}
@media(max-width:520px){.bce .bce-dialog{padding:18px}.bce .bce-dialog header h2{font-size:20px}.bce .bce-card img{height:280px}.bce .bce-dialog img{max-height:48dvh}.bce .bce-dialog dl{grid-template-columns:1fr}.bce .bce-toolbar button{flex:1}.bce .bce-toolbar .bce-submit{flex-basis:100%}}
