.mb-workbench{grid-column:1/-1;width:100%;margin:10px 0;scroll-margin-top:16px}.mb-toggle{width:100%;padding:12px;border:1px solid #627b47;background:#303f26;border-radius:8px;color:#e4f1cf;font-size:14px;cursor:pointer}.mb-body{padding:14px 0;animation:mb-reveal .2s ease}.mb-body[hidden]{display:none}.mb-info{font-size:12px;color:#b4c3a4}.mb-filters{display:flex;gap:7px;flex-wrap:wrap;margin:12px 0}.mb-filters button{padding:5px 12px;font-size:11px;border-radius:20px}.mb-filters button.active{background:#cbee83;color:#1a2316}.mb-tray{display:flex;gap:10px;overflow-x:auto;padding:4px 2px 14px;align-items:start}.mb-thumb{flex:0 0 96px;width:96px;padding:0;border:1px solid #556344;border-radius:6px;background:#273121;color:#dce8cd;overflow:hidden;cursor:grab}.mb-thumb img,.mb-thumb>.mb-no-image{width:94px;height:85px;object-fit:cover;display:block}.mb-thumb small{display:block;padding:6px;font-size:10px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mb-tools{display:flex;align-items:center;gap:7px;flex-wrap:wrap;margin:10px 0}.mb-tools strong{margin-right:auto;font-size:15px}.mb-tools button{padding:6px 9px;font-size:11px}.mb-status{font-size:10px;color:#acc290}.mb-canvas{position:relative;width:100%;aspect-ratio:1.6;background:#eeeadd;color:#333c2e;overflow:hidden;min-height:300px;border-radius:6px}.mb-board-title{position:absolute;left:3%;top:4%;font:24px Georgia;pointer-events:none}.mb-piece{position:absolute;cursor:move;touch-action:none;box-shadow:5px 8px 14px #0003;background:#d9d6c8;outline:none}.mb-piece.selected{outline:2px solid #90b650;outline-offset:2px}.mb-piece>img{width:100%;height:100%;object-fit:cover;pointer-events:none}.mb-label{position:absolute;bottom:5px;left:5px;right:5px;font-size:10px;background:#ffffffe0;color:#26301e;padding:4px;pointer-events:none}.mb-resize{position:absolute;right:0;bottom:0;background:#cbee83;color:#14220b;width:20px;height:20px;text-align:center;cursor:nwse-resize;touch-action:none}.mb-no-image{font-size:11px;text-align:center;padding-top:25px}.mb-empty{position:absolute;top:48%;width:100%;text-align:center;color:#7b806d;pointer-events:none}@keyframes mb-reveal{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.mb-body{animation:none}}
/* Focus on the board while preserving the table's filters and selection. */
.project-detail.mb-editing>.team-review-tools,
.project-detail.mb-editing>.team-material-table-head,
.project-detail.mb-editing>.team-filter-active,
.project-detail.mb-editing>.project-row,
.project-detail.mb-editing>.empty-state{display:none!important}
.mb-canvas+.mb-tools{justify-content:flex-end;margin:12px 0 0}
/* Compact material tray above the board. */
.mb-body{padding:4px 0}.mb-info{margin:2px 0 4px;font-size:11px;line-height:1.4}.mb-filters{gap:6px;margin:4px 0}.mb-filters button{padding:4px 10px;font-size:10px;min-height:0}.mb-tray{gap:8px;padding:2px 2px 6px}.mb-thumb{flex-basis:82px;width:82px}.mb-thumb img,.mb-thumb>.mb-no-image{box-sizing:border-box;width:80px;height:80px;aspect-ratio:1}.mb-thumb>.mb-no-image{display:flex;align-items:center;justify-content:center;padding:0;font-size:10px}.mb-thumb small{padding:4px 5px;font-size:9px}.mb-board-heading{margin:6px 0 8px}
.mb-options{display:flex;align-items:center;justify-content:flex-end;gap:7px;flex-wrap:wrap;margin-left:auto}.mb-option-tabs{display:flex;gap:5px;align-items:center;flex-wrap:wrap}.mb-option-tabs button.active{background:#cbee83;color:#182313;border-color:#cbee83}.mb-options select{width:auto;padding:6px 8px;font-size:11px;min-height:30px;max-width:220px}.mb-custom-size{display:flex;align-items:center;gap:5px;font-size:11px}.mb-custom-size[hidden]{display:none}.mb-custom-size input{width:64px;padding:6px;font-size:11px}.mb-canvas{min-height:0}.mb-options button{white-space:nowrap}@media(max-width:700px){.mb-options{width:100%;justify-content:flex-start;margin-left:0}}
.mb-options{align-items:center}.mb-options button,.mb-options select,.mb-board-menu>summary{box-sizing:border-box;height:32px;min-height:32px;margin:0;padding:6px 10px;font-size:11px;line-height:18px}.mb-board-menu{position:relative}.mb-board-menu>summary{cursor:pointer;list-style:none;background:#293622;color:#e3efce;border:1px solid #61794b;border-radius:7px;min-width:110px;max-width:190px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.mb-board-menu>summary::-webkit-details-marker{display:none}.mb-board-menu-list{position:absolute;top:38px;left:0;min-width:170px;max-height:240px;overflow:auto;z-index:30;background:#202a1d;padding:6px;border:1px solid #5e704c;border-radius:8px;box-shadow:0 8px 20px #0005}.mb-board-menu-list button{display:block;width:100%;text-align:left;margin:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:230px}
.mb-option-item{position:relative;display:inline-flex;align-items:center}.mb-options .mb-option-item>.mb-option-name{padding-right:23px}.mb-options .mb-option-item>.mb-option-delete{position:absolute;right:2px;top:2px;width:15px;height:15px;min-height:0;padding:0;border:0;background:transparent;font-size:13px;line-height:15px;color:#adba9e;border-radius:3px}.mb-options .mb-option-item>.mb-option-delete:hover{background:#663b31;color:#fff}.mb-options .mb-option-item>.mb-option-delete:disabled{opacity:.25;cursor:default}.mb-board-menu-list .mb-option-item{display:flex}.mb-board-menu-list .mb-option-name{flex:1}.mb-options .mb-board-menu-list .mb-option-delete{top:4px}
.mb-piece>.mb-piece-delete{position:absolute;top:3px;right:3px;width:17px;height:17px;min-height:0;padding:0;display:flex;align-items:center;justify-content:center;border:0;border-radius:3px;background:#f4f3e9dd;color:#38402e;font:14px/1 Arial;cursor:pointer;box-shadow:0 1px 3px #0002}.mb-piece>.mb-piece-delete:hover{background:#853d32;color:white}.mb-piece>.mb-piece-delete:focus-visible{outline:2px solid #789d40;outline-offset:2px}
.mb-piece>.mb-piece-delete{top:6px;right:6px;background:transparent;box-shadow:none;color:#edf3df;text-shadow:0 1px 2px #000,0 0 3px #000;width:16px;height:16px}.mb-piece>.mb-piece-delete:hover{background:transparent;color:#f09a85}.mb-label{pointer-events:auto;cursor:text;padding-right:22px}.mb-label:focus-visible{outline:2px solid #789d40}
.mb-toggle{display:flex;align-items:center;justify-content:center;gap:7px;box-sizing:border-box;height:34px;min-height:34px;padding:6px 12px;border-radius:6px;font-size:12px;line-height:20px;font-weight:500;background:#293622;border-color:#526742}.mb-toggle-icon{width:15px;height:15px;flex:none}.mb-toggle-chevron{width:14px;height:14px;flex:none;transition:transform .18s ease}.mb-toggle[aria-expanded=true] .mb-toggle-chevron{transform:rotate(180deg)}@media(prefers-reduced-motion:reduce){.mb-toggle-chevron{transition:none}}
.mb-options input.mb-option-rename{box-sizing:border-box;width:130px;height:32px;min-height:32px;margin:0;padding:6px 9px;font-size:11px;line-height:18px;border:1px solid #cbee83;border-radius:6px;background:#172013;color:#eff7e3}
.mb-piece>.mb-piece-delete{top:-2px;right:-2px}

/* Compact board option controls. */
.mb-options{gap:6px}.mb-option-tabs{gap:5px}.mb-options button,.mb-options select,.mb-board-menu>summary{height:28px;min-height:28px;padding:4px 8px;line-height:18px}.mb-options .mb-option-item>.mb-option-name{padding-right:20px}.mb-options .mb-option-item>.mb-option-delete{top:-4px;right:-2px}.mb-options .mb-board-menu-list .mb-option-delete{top:-2px;right:-2px}.mb-options input.mb-option-rename{height:28px;min-height:28px;padding:4px 8px}

.mb-options .mb-option-item>.mb-option-name{display:flex;align-items:center;justify-content:center;height:26px;min-height:26px;padding:3px 9px;line-height:18px;text-align:center}

.mb-delete-dialog{box-sizing:border-box;width:min(420px,calc(100vw - 32px));padding:24px;border:1px solid #526044;border-radius:12px;background:#1c241a;color:#e8eddf;box-shadow:0 20px 70px #0007}.mb-delete-dialog::backdrop{background:#0008}.mb-delete-dialog h2{margin:0 0 14px;font-size:20px}.mb-delete-dialog p{font-size:14px;line-height:1.5;margin:0 0 10px}.mb-delete-dialog .mb-delete-note{color:#acb6a1;font-size:12px}.mb-delete-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.mb-delete-actions button{padding:7px 13px;border:1px solid #58644b;border-radius:6px;background:transparent;color:#e8eddf;font-size:13px;cursor:pointer}.mb-delete-actions .mb-delete-confirm{background:#873f35;border-color:#a4594c;color:#fff}.mb-delete-actions button:focus-visible{outline:2px solid #cbee83;outline-offset:3px}

.mb-options .mb-size,.mb-options .mb-sheet-export>summary{height:26px;min-height:26px;padding:3px 7px;font-size:10px;line-height:18px}.mb-options .mb-size{max-width:172px}.mb-sheet-export>summary{min-width:0}.mb-sheet-export .mb-board-menu-list{left:auto;right:0;min-width:150px}.mb-sheet-checks{display:grid;gap:10px;max-height:280px;overflow:auto}.mb-sheet-checks label{display:flex;align-items:center;gap:8px}.mb-sheet-checks input{width:auto;margin:0}

.mb-options .mb-size{width:120px;max-width:120px;padding-left:3px;padding-right:2px}

.mb-board-title{pointer-events:auto;cursor:text;max-width:94%;overflow-wrap:anywhere}.mb-title-editor{position:absolute;z-index:100;top:12%;left:3%;max-width:94%;display:flex;align-items:center;flex-wrap:wrap;gap:6px;padding:10px;background:#20291d;color:#e9efdf;border:1px solid #66794f;border-radius:8px;box-shadow:0 6px 20px #0004}.mb-title-editor input,.mb-title-editor select,.mb-title-editor button{box-sizing:border-box;min-height:28px;height:28px;margin:0;padding:3px 7px;font:12px Arial;width:auto}.mb-title-editor input[aria-label='Board title']{width:180px}.mb-title-editor input[type=number]{width:58px}.mb-title-editor input[type=color]{width:32px;padding:2px}

.mb-text-piece{background:transparent;box-shadow:none}.mb-text-content{line-height:1.2;overflow-wrap:anywhere}.mb-background{display:flex;align-items:center;gap:7px;font-size:11px;border:1px solid #526044;border-radius:6px;padding:4px 8px}.mb-background input{width:24px;height:22px;min-height:0;padding:0;margin:0;border:0;background:transparent}.mb-text-piece:not(.selected)>.mb-piece-delete,.mb-text-piece:not(.selected)>.mb-resize{visibility:hidden}

.mb-image-piece>.mb-label{display:none}.mb-image-piece:not(.selected)>.mb-piece-delete,.mb-image-piece:not(.selected)>.mb-resize{visibility:hidden}

.mb-layer-tools{position:absolute;z-index:90;display:flex;align-items:center;gap:3px;padding:4px;border:1px solid #66794f;border-radius:7px;background:#20291df5;box-shadow:0 3px 12px #0003;max-width:calc(100% - 8px)}.mb-layer-tools button,.mb-layer-tools summary{padding:4px 6px;font:10px/16px Arial;min-height:24px;height:24px;margin:0;color:#e8efdc;background:transparent;border:0;border-radius:4px;white-space:nowrap;cursor:pointer}.mb-layer-tools button:hover,.mb-layer-tools summary:hover{background:#3c4b30}.mb-layer-tools button:disabled{opacity:.35;cursor:default}.mb-layer-more{position:relative}.mb-layer-more summary{list-style:none}.mb-layer-more summary::-webkit-details-marker{display:none}.mb-layer-menu{position:absolute;right:0;top:28px;background:#20291d;border:1px solid #66794f;border-radius:6px;padding:5px;min-width:120px}.mb-layer-menu button{display:block;width:100%;text-align:left}

.mb-delete-dialog>label{display:grid;gap:5px;margin:12px 0;font-size:12px}.mb-delete-dialog>label input,.mb-delete-dialog>label select{width:100%;box-sizing:border-box;padding:7px 9px}

.mb-text-background,.mb-text-transparent{display:flex;align-items:center;gap:5px;font:11px Arial;margin:0}.mb-title-editor .mb-text-transparent input{width:13px;height:13px;min-height:0;padding:0}

.mb-text-content{display:block;width:fit-content;max-width:100%;box-sizing:border-box;padding:3px;line-height:1.2}

.mb-title-editor{width:max-content;max-width:94%;flex-wrap:nowrap;gap:6px;padding:8px;border-radius:8px;overflow-x:auto}.mb-title-editor>*{flex-shrink:0}.mb-title-editor input[aria-label='Board title']{width:138px}.mb-title-editor select{width:94px}.mb-title-editor input[type=number]{width:45px}.mb-title-editor input[type=color]{width:23px;height:23px;min-height:23px;padding:1px;border-radius:4px}.mb-title-editor .mb-text-background{gap:4px;font-size:10px}.mb-title-editor .mb-text-transparent{gap:4px;font-size:10px;padding:4px;border:1px solid #536348;border-radius:4px}.mb-title-editor button{width:26px;padding:2px;font-size:16px}.mb-title-editor .mb-text-done{background:#d0e99b;color:#20291b;border-color:#d0e99b}.mb-title-editor input,.mb-title-editor select{background:#2b3427;color:#edf1e6;border:1px solid #4e5b45;border-radius:5px}

.mb-toolbar-preview{display:flex;align-items:center;gap:6px;margin-right:auto;font-size:10px;color:#b5c3a7}.mb-toolbar-preview select{width:auto;min-height:26px;height:26px;margin:0;padding:3px 6px;font-size:10px}.mb-layer-tools{padding:2px;gap:2px;border-radius:5px}.mb-layer-tools>button,.mb-layer-tools summary{width:24px;height:24px;padding:2px;font-size:16px}.mb-layer-menu{min-width:155px}.mb-layer-menu button{font-size:11px;height:28px}

.mb-layer-tools{padding:1px;gap:1px;border-radius:4px;background:#20291de6;box-shadow:0 2px 5px #0002}.mb-layer-tools>button,.mb-layer-tools summary{box-sizing:border-box;width:18px;height:18px;min-height:18px;padding:0;font:14px/18px Arial;text-align:center}.mb-layer-menu{top:22px}.mb-layer-menu button{font-size:11px;height:28px;padding:4px 7px}

/* Subtle resize corner. */
.mb-piece>.mb-resize{width:14px;height:14px;right:1px;bottom:1px;background:transparent;color:transparent;opacity:0;visibility:hidden;border-radius:0;transition:opacity .15s ease}.mb-piece.selected>.mb-resize,.mb-piece:hover>.mb-resize{opacity:.85;visibility:visible}.mb-piece>.mb-resize::after{content:'';position:absolute;right:2px;bottom:2px;width:7px;height:7px;border-right:1.5px solid #edf2e3;border-bottom:1.5px solid #edf2e3;filter:drop-shadow(0 1px 1px #172013) drop-shadow(0 0 1px #172013)}.mb-piece>.mb-resize:hover{opacity:1;background:#26301e33;border-radius:2px}@media(pointer:coarse){.mb-piece>.mb-resize{width:24px;height:24px}}

.mb-board-stage{position:relative;display:grid;grid-template-columns:minmax(0,1fr);gap:12px;align-items:start}.mb-board-stage.has-image-drawer{grid-template-columns:174px minmax(0,1fr)}.mb-image-drawer{max-height:650px;overflow:auto;padding:12px;background:#1c2519;border:1px solid #48583b;border-radius:8px;color:#dce6d0}.mb-image-drawer[hidden],.mb-drawer-toggle[hidden]{display:none}.mb-image-drawer-heading{display:flex;align-items:center;justify-content:space-between;font-size:12px}.mb-image-drawer-heading button{padding:0 4px;border:0;background:transparent;font-size:16px}.mb-image-drawer p{font-size:11px;line-height:1.45;color:#aebb9f;margin:9px 0 14px}.mb-image-entry{display:grid;gap:7px;padding:10px 0;border-top:1px solid #3c4b32}.mb-image-entry>button:first-child{padding:0;background:transparent;border:0}.mb-image-entry img{display:block;width:100%;height:84px;object-fit:contain;background:#111810;border-radius:4px}.mb-image-entry strong{font-size:11px;overflow-wrap:anywhere}.mb-image-entry select,.mb-image-entry button{width:100%;margin:0;padding:5px;font-size:10px;min-height:26px}.mb-drawer-toggle{margin:0 0 8px;padding:4px 8px;font-size:10px;background:transparent;border:1px solid #526044;border-radius:5px;color:#c4d6af}@media(max-width:700px){.mb-board-stage.has-image-drawer{grid-template-columns:minmax(0,1fr)}.mb-image-drawer{max-height:220px}.mb-image-entry{grid-template-columns:65px 1fr;align-items:center}.mb-image-entry img{height:55px}}

/* Float the image drawer outside the board without resizing its canvas. */
.mb-board-stage,.mb-board-stage.has-image-drawer{grid-template-columns:minmax(0,1fr)}.mb-board-stage>.mb-image-drawer{position:absolute;right:calc(100% + 12px);top:0;width:174px;box-sizing:border-box;max-height:100%;z-index:40;box-shadow:0 8px 24px #0003}.mb-board-stage>.mb-image-drawer .mb-image-entry{display:grid;grid-template-columns:1fr}.mb-board-stage>.mb-image-drawer .mb-image-entry img{height:84px}@media(max-width:850px){.mb-board-stage>.mb-image-drawer{position:fixed;left:8px;right:auto;top:100px;max-height:calc(100dvh - 120px);width:174px;z-index:100}}

/* Full-height outward drawer and a narrow edge handle. */
.mb-board-stage>.mb-image-drawer{position:absolute;left:auto;right:100%;top:0;bottom:0;width:174px;height:100%;max-height:100%;border-radius:0;border-right:0;padding:12px;z-index:40;box-shadow:-6px 0 18px #0002}.mb-board-stage>.mb-drawer-toggle{position:absolute;top:0;bottom:0;right:100%;width:16px;height:100%;min-height:0;padding:0;margin:0;border-radius:4px 0 0 4px;border:1px solid #46563a;background:#202a1de8;color:#c5dca4;font:22px Arial;display:flex;align-items:center;justify-content:center;z-index:41;transition:right .18s ease}.mb-board-stage.has-image-drawer>.mb-drawer-toggle{right:calc(100% + 174px)}.mb-board-stage>.mb-drawer-toggle[hidden]{display:none}.mb-board-stage>.mb-drawer-toggle:hover{background:#33422a}.mb-image-drawer-heading button{display:none}@media(prefers-reduced-motion:reduce){.mb-board-stage>.mb-drawer-toggle{transition:none}}

.mb-board-stage+.mb-tools{justify-content:flex-end;margin:12px 0 0}

.mb-image-entry.active{border-top-color:#91ad64;background:#34422a55;border-radius:4px}

.mb-board-stage>.mb-image-drawer{display:flex;flex-direction:column}.mb-board-stage>.mb-image-drawer[hidden]{display:none}.mb-image-drawer-heading,.mb-image-drawer>p{flex-shrink:0}.mb-image-list{margin-top:auto;flex-shrink:0;width:100%}

.mb-piece>.mb-resize::after{width:9px;height:9px;border-right-width:2px;border-bottom-width:2px}.mb-piece.selected>.mb-resize,.mb-piece:hover>.mb-resize{opacity:1}

.mb-piece>.mb-resize::after{border-right-color:#cbee83;border-bottom-color:#cbee83}

.mb-piece-image{position:absolute;inset:0;overflow:hidden;pointer-events:none}.mb-piece-image img{display:block;width:100%;height:100%;object-fit:cover;transform-origin:center;pointer-events:none}.mb-detail-zoom{display:grid;grid-template-columns:1fr auto;gap:6px;margin:5px 3px;padding:7px 3px;border-bottom:1px solid #46563a;font-size:10px;color:#e0e9d6}.mb-detail-zoom input{grid-column:1/-1;width:100%;height:16px;margin:0;padding:0;accent-color:#cbee83}.mb-detail-zoom small{grid-column:1/-1;font-size:9px;color:#a6b49a}.mb-detail-zoom output{color:#cbee83}

.mb-image-entry,.mb-image-entry.active{border:0;box-shadow:none}

.mb-image-entry,.mb-image-entry.active{background:transparent;border:0;border-radius:0;box-shadow:none;padding-top:0}.mb-image-entry+.mb-image-entry{margin-top:14px}

.mb-piece.mb-crop-active{cursor:grab;outline:2px dashed #cbee83;outline-offset:2px}.mb-piece.mb-crop-active:active{cursor:grabbing}

/* Compact image actions and detail controls. */
.mb-layer-menu{min-width:138px;width:max-content;max-width:190px;padding:4px;border-radius:6px}.mb-layer-menu button{box-sizing:border-box;height:23px;min-height:23px;padding:3px 7px;font-size:10px;line-height:17px}.mb-layer-menu .mb-detail-zoom{gap:3px;margin:1px 2px 4px;padding:5px 3px 6px;font-size:10px}.mb-layer-menu .mb-detail-zoom input{height:12px;min-height:12px}.mb-layer-menu .mb-detail-zoom small{font-size:8px;line-height:11px}.mb-layer-menu .mb-detail-zoom output{font-size:10px}

.mb-piece>.mb-label{top:calc(100% + 5px);bottom:auto;left:0;right:0;background:transparent;color:#374130;padding:0;font:10px/14px Arial;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}

.mb-hide-labels .mb-piece>.mb-label{display:none}.mb-show-labels{display:flex;align-items:center;gap:6px;font-size:11px;color:#dce8cd;cursor:pointer}.mb-show-labels input{appearance:none;width:26px;height:15px;min-height:0;padding:0;margin:0;border:1px solid #63734f;border-radius:12px;background:#35402e;position:relative;cursor:pointer}.mb-show-labels input::after{content:'';position:absolute;top:2px;left:2px;width:9px;height:9px;border-radius:50%;background:#d8e2cd;transition:transform .15s ease}.mb-show-labels input:checked{background:#cbee83;border-color:#cbee83}.mb-show-labels input:checked::after{background:#26351c;transform:translateX(11px)}.mb-show-labels input:focus-visible{outline:2px solid #cbee83;outline-offset:3px}

.mb-tools .mb-clear-template[hidden]{display:none}

.mb-piece>.mb-label{font-family:var(--mb-label-font,Arial);font-size:var(--mb-label-size,10px);line-height:1.4;color:var(--mb-label-color,#374130)}.mb-label-settings{position:relative}.mb-label-settings>summary{list-style:none;cursor:pointer;padding:2px 5px;border:1px solid #526044;border-radius:4px;font:11px/16px Georgia;color:#dce8cd}.mb-label-settings>summary::-webkit-details-marker{display:none}.mb-label-panel{position:absolute;right:0;bottom:calc(100% + 8px);z-index:110;display:flex;align-items:end;gap:8px;padding:10px;background:#20291d;border:1px solid #61734c;border-radius:7px;box-shadow:0 5px 18px #0004}.mb-label-panel label{display:grid;gap:5px;font-size:10px;color:#c7d2bb}.mb-label-panel input,.mb-label-panel select{box-sizing:border-box;height:28px;min-height:28px;margin:0;padding:3px 5px;font-size:11px;width:105px}.mb-label-panel input[type=number]{width:48px}.mb-label-panel input[type=color]{width:30px;padding:2px}

.mb-marquee{position:absolute;pointer-events:none;border:1px solid #a8cc6c;background:#cbee8322;z-index:120}.mb-group-tools{position:absolute;z-index:95;top:8px;right:8px;display:flex;align-items:center;gap:8px;padding:5px 8px;border:1px solid #61734c;border-radius:6px;background:#20291df2;color:#dce8cd;font-size:11px}.mb-group-tools select{width:auto;min-height:26px;height:26px;font-size:11px;padding:3px 6px;margin:0}.mb-canvas{touch-action:none}

.mb-image-entry>strong{display:block;min-width:0;max-width:100%;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}



.mb-lock-badge{position:absolute;right:3px;top:3px;z-index:3;font:11px/16px Arial;color:#d4e8b9;background:#24311ddd;border-radius:3px;width:16px;height:16px;text-align:center}.mb-piece.mb-locked{cursor:default}.mb-piece.mb-locked>.mb-resize,.mb-piece.mb-locked>.mb-piece-delete{display:none}.mb-presentation-controls{display:none}.mb-presentation-open{overflow:hidden}.mb-workbench.mb-presenting{position:fixed;inset:0;z-index:1000;margin:0;padding:24px;background:#111711;box-sizing:border-box;width:100%;height:100dvh;overflow:auto}.mb-presenting>.mb-toggle,.mb-presenting .mb-info,.mb-presenting .mb-filters,.mb-presenting .mb-tray,.mb-presenting .mb-tools,.mb-presenting .mb-image-drawer,.mb-presenting .mb-drawer-toggle{display:none!important}.mb-presenting .mb-body{padding:0;height:calc(100% - 46px);display:flex;align-items:center;justify-content:center}.mb-presenting .mb-board-stage{width:100%;max-width:calc((100dvh - 94px)*var(--mb-board-ratio,1.545));margin:auto}.mb-presenting .mb-canvas{pointer-events:none}.mb-presenting .mb-piece-delete,.mb-presenting .mb-resize,.mb-presenting .mb-layer-tools,.mb-presenting .mb-group-tools,.mb-presenting .mb-lock-badge,.mb-presenting .mb-title-editor{display:none!important}.mb-presenting .mb-piece.selected{outline:none}.mb-presenting>.mb-presentation-controls{display:flex;justify-content:center;align-items:center;gap:14px;height:40px;color:#deead1;font-size:12px}.mb-presentation-controls button{padding:5px 10px;font-size:12px}

.mb-snap-guide{position:absolute;pointer-events:none;background:#a5c96d;z-index:9999}.mb-snap-x{top:0;bottom:0;width:1px}.mb-snap-y{left:0;right:0;height:1px}

.mb-image-missing{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;font:12px Arial;color:#46513e;background:#deddd1}.mb-image-missing button{font-size:11px;padding:5px 9px}.mb-repair-dialog>label{display:flex;gap:10px;margin:14px 0;align-items:center}.mb-repair-dialog input[type=checkbox]{width:auto}.mb-repair-dialog select{max-width:280px}
.mb-image-missing button{pointer-events:auto}.mb-presenting .mb-image-missing button{display:none}

.mb-image-missing button{color:#26321b!important;background:#d5ed98!important;border:1px solid #748653!important}.mb-image-missing{font-size:12px;overflow:hidden}.mb-image-missing span{font-size:12px}

.mb-quick-guide{list-style:none;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:22px;margin:0 0 16px;padding:22px 0 26px;border-bottom:1px solid #394331}
.mb-quick-guide li{display:flex;align-items:flex-start;gap:14px;min-width:0}
.mb-guide-icon{display:flex;align-items:center;justify-content:center;flex:0 0 44px;width:44px;height:44px;border:1px solid #b7c880;border-radius:50%;color:#cbdc9a}
.mb-guide-icon svg{width:23px;height:23px}
.mb-quick-guide strong{display:block;font-size:13px;line-height:1.4;font-weight:600;color:#eef2e7;margin:2px 0 6px}
.mb-quick-guide p{font-size:12px;line-height:1.55;color:#b5bfaa;margin:0}
.mb-presenting .mb-quick-guide{display:none}
@media(max-width:600px){.mb-quick-guide{grid-template-columns:repeat(2,minmax(0,1fr));gap:18px}}
@media(max-width:480px){.mb-quick-guide{gap:18px 12px}.mb-quick-guide li{gap:9px}.mb-guide-icon{flex-basis:32px;width:32px;height:32px}.mb-guide-icon svg{width:19px;height:19px}.mb-quick-guide strong{font-size:12px}.mb-quick-guide p{font-size:11px}}

@media(min-width:601px){.mb-quick-guide{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:14px 0 18px;margin-bottom:14px}.mb-quick-guide li{gap:10px}.mb-guide-icon{flex-basis:36px;width:36px;height:36px}.mb-guide-icon svg{width:20px;height:20px}.mb-quick-guide strong{font-size:12px;margin:0 0 5px}.mb-quick-guide p{font-size:11px;line-height:1.45}}

/* Compact, quiet workflow guide. */
.mb-quick-guide{gap:14px;padding:12px 0 16px;margin-bottom:12px}
.mb-quick-guide li{gap:9px}
.mb-quick-guide .mb-guide-icon{flex:0 0 30px;width:30px;height:30px;border-color:#899965}
.mb-quick-guide .mb-guide-icon svg{width:17px;height:17px}
.mb-quick-guide strong{font-size:11px;line-height:1.4;font-weight:600;margin:0 0 4px}
.mb-quick-guide p{font-size:10px;line-height:1.45;color:#aeb9a3;overflow-wrap:break-word}

.mb-quick-guide{padding-bottom:6px}

.mb-body{padding-top:4px}.mb-quick-guide{padding-top:2px}

/* Compact board option toolbar. */
.mb-options{gap:5px}.mb-option-tabs{gap:4px}
.mb-options>button,.mb-options .mb-option-item>.mb-option-name,.mb-options select.mb-size,.mb-options .mb-board-menu>summary{box-sizing:border-box;height:24px;min-height:24px;padding:2px 7px;font-size:10px;line-height:18px;border-radius:6px}
.mb-options .mb-option-item>.mb-option-name{padding-left:7px;padding-right:12px}
.mb-options select.mb-size{width:116px;max-width:116px;padding-left:4px;padding-right:2px}
.mb-options input.mb-option-rename{height:24px;min-height:24px;padding:2px 7px;font-size:10px}

.mb-options select.mb-size{padding-left:1px;text-align:left}

.mb-quick-guide{margin-bottom:4px}.mb-quick-guide+.mb-info{margin-top:0}

.mb-history-tools{display:flex;align-items:center;gap:4px;margin-right:auto}.mb-tools .mb-history-tools button{display:inline-flex;align-items:center;justify-content:center;box-sizing:border-box;width:28px;height:28px;min-height:28px;padding:4px;border:1px solid transparent;border-radius:6px;background:transparent;color:#cbdc9a}.mb-history-tools svg{width:19px;height:19px}.mb-tools .mb-history-tools button:hover:not(:disabled){background:#303c26;border-color:#526341}.mb-tools .mb-history-tools button:disabled{opacity:.3;cursor:default}

/* Uploaded cutouts retain their alpha without an opaque card behind them. */
.mb-piece.mb-image-piece{background:transparent;box-shadow:none}
.mb-image-entry img{background:transparent}

/* F: paired outlined Undo / Redo buttons. */
.mb-history-tools{gap:6px}
.mb-tools .mb-history-tools button{width:28px;height:28px;min-height:28px;padding:4px;border:1px solid #bfd58f;border-radius:6px;color:#d1e6a1;background:transparent}
.mb-tools .mb-history-tools button:hover:not(:disabled){background:#303c26;border-color:#d1e6a1}
.mb-tools .mb-history-tools button:focus-visible{outline:2px solid #d1e6a1;outline-offset:2px}
.mb-tools .mb-history-tools button:disabled{opacity:.3}

.mb-shortcuts{position:relative;display:flex;align-items:center;gap:7px}.mb-shortcut-caption{font-size:10px;color:#aeb9a3}.mb-tools .mb-shortcuts>button[aria-expanded=true]{background:#cbee83;color:#1b2516;border-color:#cbee83}
.mb-shortcut-panel{position:absolute;left:0;bottom:calc(100% + 10px);z-index:60;box-sizing:border-box;width:300px;max-width:calc(100vw - 32px);max-height:min(440px,65vh);overflow:auto;padding:14px;background:#20291c;border:1px solid #607449;border-radius:8px;box-shadow:0 6px 20px #0004;color:#e4ebdc;text-align:left}
.mb-shortcut-panel[hidden]{display:none}.mb-shortcut-header{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px}.mb-tools .mb-shortcut-header strong{font-size:13px;display:block;margin:0}.mb-tools .mb-shortcut-header button{border:0;width:22px;height:22px;min-height:22px;font-size:18px;padding:0}
.mb-shortcut-row{display:flex;justify-content:space-between;align-items:center;gap:12px;margin:7px 0;font-size:11px}.mb-shortcut-row kbd{font:10px Arial,sans-serif;border:1px solid #53604a;border-radius:4px;padding:3px 5px;white-space:nowrap;color:#d5dfc9}
.mb-shortcut-gestures{border-top:1px solid #46513c;margin-top:10px;padding-top:7px}.mb-shortcut-gestures p{font-size:10px;line-height:1.5;margin:4px 0;color:#bdc8b2}.mb-shortcut-panel>small{display:block;border-top:1px solid #46513c;margin-top:10px;padding-top:9px;font-size:10px;color:#aab79c}
@media(max-width:480px){.mb-shortcut-panel{left:-68px;width:285px}.mb-shortcut-caption{display:none}}

.mb-shortcut-footer{display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #46513c;margin-top:10px;padding-top:9px}
.mb-shortcut-footer small{font-size:10px;color:#aab79c}
.mb-tools .mb-shortcut-footer button{flex:0 0 24px;width:24px;height:24px;min-height:24px;border:0;padding:0;font-size:18px;background:transparent}
.mb-tools .mb-shortcut-header strong{display:block!important}

.mb-tools .mb-add-image{position:relative;display:inline-flex;align-items:center;justify-content:center;gap:6px;background:#303e27;border:1px solid #bbd88a;color:#e0efc6}
.mb-tools .mb-add-image>svg{width:17px;height:17px;flex-shrink:0}
.mb-tools .mb-add-image:hover{background:#3b4b30;border-color:#d2ed9e}
.mb-tools .mb-add-image:focus-visible{outline:2px solid #d2ed9e;outline-offset:2px}
.mb-add-image-tip{position:absolute;bottom:calc(100% + 9px);left:50%;transform:translateX(-50%);z-index:70;display:none;box-sizing:border-box;width:220px;max-width:calc(100vw - 24px);padding:9px 11px;border:1px solid #657b4c;border-radius:7px;background:#20291c;box-shadow:0 4px 12px #0003;text-align:left;white-space:normal;font-size:11px;font-weight:400;line-height:1.4;color:#edf3e4;pointer-events:none}
.mb-add-image-tip small{display:block;margin-top:3px;color:#b7c3aa;font-size:10px}
.mb-add-image:hover .mb-add-image-tip,.mb-add-image:focus-visible .mb-add-image-tip{display:block}

.mb-tools .mb-add-image{gap:4px;padding-left:7px;padding-right:7px}.mb-tools .mb-add-image>svg{width:15px;height:15px}

.board-share-dialog{width:min(700px,94vw)}.board-share-dialog>p{font-size:13px;line-height:1.5}.board-share-dialog input{width:100%;box-sizing:border-box}.board-share-preview{display:block;max-width:100%;max-height:45vh;margin:14px auto;object-fit:contain}.board-share-link{display:flex;align-items:center;gap:8px;padding:8px 0;border-top:1px solid #414b35}.board-share-link a{flex:1;min-width:0;overflow-wrap:anywhere;color:#d5ef93}.board-share-link button{padding:6px 9px;font-size:12px;white-space:nowrap}

.board-share-choices{display:flex;flex-wrap:wrap;gap:8px 16px;margin:12px 0}.board-share-choices label{display:flex;align-items:center;gap:6px;font-size:13px}.board-share-choices input[type=checkbox]{width:auto;margin:0;accent-color:#d5ef93}

/* Refined sharing panel. */
dialog.board-share-dialog{width:min(720px,calc(100vw - 32px));padding:24px;border-radius:16px;border-color:#4a583d;box-shadow:0 24px 80px #0006;box-sizing:border-box}
.board-share-dialog .attachment-heading{margin-bottom:8px}.board-share-dialog .attachment-heading h2{font-size:22px;letter-spacing:-.4px;margin:0}.board-share-dialog button{min-height:32px;font-size:12px;border-radius:7px}.board-share-dialog>.attachment-note{font-size:11px;line-height:1.55;color:#a9b39e;margin:10px 0 18px;padding-left:10px;border-left:2px solid #52613f}.board-share-field{display:flex;flex-direction:column;gap:7px;font-size:12px;color:#c4cdbb}.board-share-field input{height:38px;font-size:13px;padding:8px 11px;margin:0;border-radius:7px}.board-share-section-label{font-size:12px;color:#c4cdbb;margin:16px 0 7px}.board-share-choices{gap:7px;margin:0 0 16px}.board-share-choices label{border:1px solid #435137;border-radius:7px;padding:8px 12px;cursor:pointer;background:#20291d;font-size:12px}.board-share-choices label:has(input:checked){border-color:#a9c977;background:#303e25;color:#e1f5b9}.board-share-choices label:focus-within{outline:2px solid #d5ef93;outline-offset:2px}.board-share-preview-frame{background:#11180f;border:1px solid #35412e;border-radius:10px;padding:12px;min-height:100px}.board-share-preview-label{font-size:9px;letter-spacing:1.3px;color:#96a38b;margin-bottom:10px}.board-share-preview-frame .board-share-preview{margin:0 auto;max-height:36vh;border-radius:4px}.board-share-footer{display:flex;align-items:center;justify-content:space-between;gap:14px;padding-top:16px}.board-share-footer>span{font-size:11px;color:#a9b39e}.board-share-footer .primary{width:auto;margin:0;padding:9px 16px}.board-share-status{font-size:12px;color:#c5d4b4;display:flex;gap:7px;align-items:center;flex-wrap:wrap}.board-share-status input{flex:1;min-width:160px;font-size:12px;padding:8px}.board-share-links{margin-top:18px;padding-top:14px;border-top:1px solid #394530}.board-share-links h3{font-size:12px;margin:0 0 8px;color:#bac6ad}.board-share-link{border:0;padding:7px 0;font-size:12px}.board-share-link button{min-height:28px;padding:4px 9px;font-size:11px}@media(max-width:500px){dialog.board-share-dialog{padding:18px}.board-share-footer{align-items:stretch;flex-direction:column}.board-share-preview-frame .board-share-preview{max-height:30vh}}

.board-share-field{margin-bottom:10px}.board-share-field[hidden]{display:none}.board-share-field select,.board-share-field textarea{width:100%;box-sizing:border-box;font-size:13px;padding:9px;border-radius:7px}.board-share-comment-toggle{display:flex;gap:7px;align-items:center;font-size:12px;margin:12px 0}.board-share-comment-toggle input{width:auto}

.mb-options .mb-highlight-action{background:#344329;border-color:#a7c578;color:#e4f5bf}.mb-options .mb-highlight-action:hover{background:#435632;border-color:#d5ef93;color:#f1ffda}.mb-options .mb-highlight-action:focus-visible{outline:2px solid #d5ef93;outline-offset:2px}

.board-share-link-notice{padding:10px 12px;margin:16px 0 0;border:1px solid #779453;border-radius:7px;background:#2c3b22;color:#dff1bd;font-size:12px;line-height:1.5}.board-share-link-notice.is-error{border-color:#b97b64;background:#3c2a22;color:#f4cbbb}.board-share-link-notice[hidden]{display:none}

dialog.board-revoke-dialog{width:min(420px,calc(100vw - 32px));box-sizing:border-box;padding:24px;border:1px solid #64794b;border-radius:12px;background:#1b231a;color:#edf2e6;box-shadow:0 20px 65px #0007}.board-revoke-dialog::backdrop{background:#0008}.board-revoke-dialog h2{font-size:21px;letter-spacing:-.3px;margin:0 0 12px}.board-revoke-dialog p{font-size:13px;line-height:1.6;color:#bbc6af}.board-revoke-dialog .board-revoke-name{color:#e0edcd;font-size:12px;padding:9px 11px;background:#26321f;border-radius:6px;overflow-wrap:anywhere}.board-revoke-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:22px}.board-revoke-actions button{height:36px;min-height:36px;width:auto;margin:0;padding:0 14px;border-radius:7px;font-size:12px}.board-revoke-actions .board-revoke-confirm{background:#d5ef93;border:1px solid #d5ef93;color:#1b2518;font-weight:600}.board-revoke-actions .board-revoke-confirm:hover{background:#e4f7b9}
