/* BOOK-UI-105 · Jelly motion e controles de toque.
 * Carregado APOS cardapio-book3.css. Apenas o editor recebe ferramentas.
 * Todo render de cliente/print ainda usa a mesma .bk3-sheet.
 */
body.bk3-app{--bk3-pop:#ceff73;--bk3-ink-soft:#b3ccad}
.bk3-sidebar .bk3-helper{margin:0;line-height:1.55}
.bk3-sidebar .bk3-helper strong{color:#d9faa8}
.bk3-sidebar .bk3-library{max-height:none;align-content:start;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}
.bk3-preset{min-width:0;border:1px solid #506b53;border-radius:15px;padding:7px;background:#1a291e;display:flex;flex-direction:column;gap:7px;align-items:stretch;transition:transform .2s ease,border-color .2s ease}
.bk3-preset:hover,.bk3-preset:focus-within{transform:translateY(-2px);border-color:#c6ff70}
.bk3-preset-art{height:98px;aspect-ratio:1;max-width:100%;margin:auto;border-radius:12px;display:grid;place-items:center;font-size:46px;box-shadow:inset 0 0 0 1px #ffffff22,0 8px 14px #0004}
.bk3-preset strong{font-size:.73rem;line-height:1.25;overflow-wrap:anywhere}.bk3-preset small{color:#9cba9b;font-size:.64rem;line-height:1.35}
.bk3-preset button{border:1px solid #97bf7b;border-radius:9px;padding:7px;background:#263b28;color:#ddffb7;min-height:37px;font-weight:800;font-size:.72rem}
.bk3-real-products{display:grid;gap:9px;border:1px solid #4d6951;background:#101d14;padding:12px;border-radius:15px}
.bk3-real-products strong{font-size:.82rem;color:#eaffd2}
.bk3-real-products label,.bk3-real-products small{font-size:.69rem;color:#afc2a9;line-height:1.4}
.bk3-real-products button{border:1px solid #97bf7b;background:#ceeF95;color:#162412;border-radius:9px;min-height:44px;font-weight:900}
.bk3-real-products button:disabled{opacity:.55;cursor:not-allowed}
.bk3-media{width:var(--bk3-image-size,110px);height:var(--bk3-image-size,110px);flex:0 0 var(--bk3-image-size,110px);min-width:0;min-height:0;overflow:hidden;aspect-ratio:1 / 1;border-radius:11px;margin:0 0 0 7px;align-self:center;display:grid;place-items:center;background:#2f4b35}
.bk3-media img.bk3-photo{display:block!important;width:100%!important;height:100%!important;aspect-ratio:1 / 1;max-width:none!important;min-width:0!important;object-fit:cover}
.bk3-demo-art{display:grid;place-items:center;width:100%;height:100%;aspect-ratio:1;background:linear-gradient(155deg,#d2eac2,#688669);color:#193128;font-size:clamp(23px,3.5em,85px);font-weight:900}
.bk3-demo-art[data-art=drink],.bk3-preset-art[data-art=drink]{background:radial-gradient(circle at 70% 20%,#ffa07e,#692b4c 55%,#1e2434)}
.bk3-demo-art[data-art=burger],.bk3-preset-art[data-art=burger]{background:radial-gradient(circle at 30% 25%,#efbf77,#795433 66%,#251f20)}
.bk3-demo-art[data-art=vinyl],.bk3-preset-art[data-art=vinyl]{background:radial-gradient(circle,#ddffac 0 11%,#263830 12% 27%,#8fa99e 28% 29%,#101e19 31% 50%,#4b6555 51% 55%,#14251b 58%)}
.bk3-demo-art[data-art=coffee],.bk3-preset-art[data-art=coffee]{background:radial-gradient(circle at 36% 32%,#d9c1a5,#7c5d52 63%,#292e30)}
.bk3-demo-art[data-art=abstract],.bk3-preset-art[data-art=abstract]{background:conic-gradient(from 100deg,#caff87,#538a55,#23322a,#eaeea5,#bd91a3,#caff87)}
.bk3-cell[data-display=title] .bk3-media{display:none!important}
.bk3-cell[data-display=title] .bk3-info{align-items:flex-start;justify-content:center}
.bk3-cell[data-display=media] .bk3-media,.bk3-cell[data-squeeze=media] .bk3-media{margin:auto;width:var(--bk3-image-size)!important;height:var(--bk3-image-size)!important;flex:0 0 var(--bk3-image-size)!important}
.bk3-cell[data-display=media] .bk3-info,.bk3-cell[data-squeeze=media] .bk3-info{display:none!important}
.bk3-cell[data-squeeze=media] .bk3-media{display:grid!important}
.bk3-cell[data-squeeze=compact] .bk3-desc{display:none!important}
.bk3-cell .bk3-info{overflow:hidden}
.bk3-cell[data-small=true] .bk3-media{margin-left:4px;border-radius:8px}
.bk3-cell[data-small=true] .bk3-info{padding:6px}
.bk3-cell[data-small=true] .bk3-name{font-size:13px}
.bk3-cell[data-small=true] .bk3-price{font-size:11px}
.bk3-cell[data-kind=demo] .bk3-block{border:1px solid #d7ac6c;background:#202b25}
.bk3-demo-tag{position:absolute;left:8px;bottom:6px;padding:3px 6px;border:1px solid #d4b47f;border-radius:30px;background:#34291de8;color:#f3d9a7;font-weight:900;letter-spacing:.12em;font-size:8px;pointer-events:none}
.bk3-editor .bk3-cell[data-kind=demo][data-display=media] .bk3-demo-tag{opacity:.9}
.bk3-editor .bk3-cell{will-change:transform;touch-action:none;-webkit-user-select:none;user-select:none}
.bk3-editor .bk3-cell.bk3-dragging{z-index:25}
.bk3-editor .bk3-cell.bk3-dragging .bk3-block{box-shadow:0 20px 42px #000a,0 0 0 2px #c6ff70;border-color:#d1ff97}
.bk3-editor .bk3-cell[data-selected=true] .bk3-block{outline:2px solid #c6ff70;outline-offset:-2px}
.bk3-editor .bk3-cell[data-locked=true] .bk3-block{border-color:#aabc93aa}
.bk3-editor .bk3-cell[data-locked=true]{cursor:not-allowed}
.bk3-locked-flag{position:absolute;left:9px;top:9px;display:grid;place-items:center;width:35px;height:35px;background:#162318e8;border-radius:10px;z-index:4;font-size:20px}
.bk3-editor .bk3-quick,.bk3-editor .bk3-resize{position:absolute;z-index:8;display:grid;place-items:center;width:74px;height:74px;min-height:0;border:1px solid #afd48b;background:#0b1b13e8;color:#d6ffa0;touch-action:none;-webkit-tap-highlight-color:transparent;font-size:33px;line-height:1;box-shadow:0 4px 12px #0007}
.bk3-editor .bk3-quick{top:5px;right:5px;bottom:auto;border-radius:0 11px 0 13px;cursor:pointer}
.bk3-editor .bk3-resize{bottom:5px;right:5px;top:auto;border-radius:13px 0 11px 0;font-size:27px;cursor:nwse-resize}
.bk3-editor .bk3-cell[data-small=true] .bk3-quick{width:57px;height:57px;font-size:28px}
.bk3-editor .bk3-cell[data-small=true] .bk3-resize{width:57px;height:57px;font-size:23px}
.bk3-editor .bk3-cell[data-locked=true] .bk3-quick{background:#233328ee}
.bk3-radial-shade{position:fixed;inset:0;z-index:980;background:#050e07b7;backdrop-filter:blur(3px)}
.bk3-radial{position:fixed;left:0;top:0;width:1px;height:1px;z-index:990;isolation:isolate}
.bk3-radial:before{content:"";position:absolute;left:0;top:0;width:152px;height:152px;transform:translate(-50%,-50%);border-radius:50%;background:radial-gradient(circle,#192e20f5,#223e29d5 65%,#c6ff702a);border:1px solid #7dbb6790;pointer-events:none;box-shadow:0 12px 45px #000a}
.bk3-radial-item{position:absolute;z-index:2;left:0;top:0;transform:translate(-50%,-50%);width:73px;height:73px;padding:5px 3px;border-radius:50%;border:1px solid #a2d789;background:#243c29;color:#f1ffe6;display:flex;flex-direction:column;justify-content:center;align-items:center;gap:2px;font:inherit;box-shadow:0 8px 18px #0008;cursor:pointer;touch-action:manipulation}
.bk3-radial-item span{font-size:24px;line-height:1}.bk3-radial-item small{font-size:10px;line-height:1.1;font-weight:800;text-align:center}
.bk3-radial-item[aria-pressed=true]{background:#d5ff9f;color:#1e3219}
.bk3-radial-item:focus-visible,.bk3-radial-item:hover{border-color:#f1ffb3;box-shadow:0 0 0 3px #c6ff7066}
.bk3-radial-item.bk3-radial-danger{background:#5d2930;border-color:#f0aaa3;color:#ffe2dd}
.bk3-radial-close{position:absolute;z-index:3;left:0;top:0;transform:translate(-50%,-50%);width:57px;height:57px;border:2px solid #d0f0aa;border-radius:50%;background:#102117;color:#e6ffda;font-size:28px;cursor:pointer}
.bk3-radial[hidden],.bk3-radial-shade[hidden]{display:none!important}
.bk3-viewport{overscroll-behavior:contain;-webkit-overflow-scrolling:touch;touch-action:pan-x pan-y}
.bk3-holder .bk3-sheet{transform-origin:top left}
.bk3-bottombar span:first-child{max-width:550px}
@media(max-width:1150px){
 .bk3-layout{grid-template-columns:205px minmax(0,1fr)}
 .bk3-sidebar .bk3-library{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bk3-main{min-width:0}
}
@media(max-width:700px){
 .bk3-top{position:relative;gap:9px;padding:10px 12px}
 .bk3-heading strong{font-size:1.1rem}
 .bk3-actions{width:100%;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));margin-left:0;gap:6px}
 .bk3-actions button{font-size:.69rem;padding:6px 3px;min-height:44px}
 .bk3-actions #bk3-save,.bk3-actions #bk3-publish{grid-column:span 1}
 .bk3-layout{display:flex;flex-direction:column}
 .bk3-main{order:0}
 .bk3-sidebar{order:1;max-height:none}
 .bk3-sidebar .bk3-library{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));max-height:none;overflow:visible}
 .bk3-preset-art{height:77px;font-size:32px}
 .bk3-inspector{order:2}
 .bk3-viewport{height:min(72svh,640px);min-height:360px;overflow:auto}
 .bk3-canvas{padding:6px}
 .bk3-toolbar{padding:10px}
 .bk3-tabs{padding:6px 10px 10px}
 .bk3-radial-item{width:65px;height:65px}
 .bk3-radial-item span{font-size:21px}
 .bk3-radial-item small{font-size:9px}
 .bk3-radial:before{width:130px;height:130px}
}
@media(max-width:380px){
 .bk3-sidebar .bk3-library{grid-template-columns:repeat(2,minmax(0,1fr))}
 .bk3-bottombar{font-size:.64rem}
 .bk3-viewport{min-height:330px}
 .bk3-radial-item{width:57px;height:57px}
 .bk3-radial-close{width:51px;height:51px}
}
@media(prefers-reduced-motion:reduce){
 .bk3-preset,.bk3-editor .bk3-cell,.bk3-radial-item,.bk3-radial-shade{animation:none!important;transition:none!important}
}

/* Resizing desenha o destino sem deformar a mídia quadrada. */
.bk3-editor .bk3-cell.bk3-resizing{z-index:30}
.bk3-editor .bk3-cell.bk3-resizing:after{
 content:"";position:absolute;z-index:15;left:4px;top:4px;
 width:calc(var(--bk3-ghost-w,100%) - 8px);
 height:calc(var(--bk3-ghost-h,100%) - 8px);
 pointer-events:none;border:3px dashed #d7ff9d;border-radius:15px;
 background:#b6ff2810;box-shadow:0 0 22px #b5ff3155
}
.bk3-radial-item:disabled{opacity:.33;cursor:not-allowed;pointer-events:none}
body.bk3-live .bk3-demo-tag{display:none}
@media print{
 .bk3-demo-tag{font-size:7px}
 .bk3-quick,.bk3-radial,.bk3-radial-shade,.bk3-locked-flag{display:none!important}
}

/* BOOK UI-106 · Acabamento de producao: gestos discretos e grade coerente. */
.bk3-grid .bk3-cell{padding:var(--bk3-block-gap,5px)}
.bk3-cell[data-kind=spacer] .bk3-block{border:0;background:transparent;box-shadow:none}
.bk3-editor .bk3-cell[data-kind=spacer][data-has-image=false] .bk3-block{border:1px dashed #a8c69a77;border-radius:12px}
.bk3-cell[data-kind=spacer][data-has-image=true] .bk3-block{display:grid;place-items:center;overflow:hidden}
.bk3-cell[data-kind=spacer][data-has-image=true] .bk3-media{margin:auto;max-width:100%;max-height:100%;display:grid!important}
.bk3-cell[data-kind=divider] .bk3-block{border:0!important;background:transparent!important;box-shadow:none!important;display:grid;place-items:center;padding:0}
.bk3-cell[data-kind=divider][data-direction=horizontal] .bk3-block:after{content:"";height:var(--bk3-line-weight,2px);width:100%;background:var(--bk3-line-color,var(--bk3-accent,#c6ff70));border-radius:4px}
.bk3-cell[data-kind=divider][data-direction=vertical] .bk3-block:after{content:"";width:var(--bk3-line-weight,2px);height:100%;background:var(--bk3-line-color,var(--bk3-accent,#c6ff70));border-radius:4px}
.bk3-cell[data-squeeze=strip] .bk3-block{display:flex;flex-direction:row;align-items:center}
.bk3-cell[data-squeeze=strip] .bk3-info{display:flex!important;padding:3px 8px!important;gap:0;min-width:0}
.bk3-cell[data-squeeze=strip] .bk3-name{font-size:clamp(13px,1.7em,19px);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;max-width:100%}
.bk3-cell[data-squeeze=strip] .bk3-desc,.bk3-cell[data-squeeze=strip] .bk3-price{display:none!important}
.bk3-cell[data-squeeze=strip] .bk3-media{display:grid!important;margin:0 0 0 3px!important}
.bk3-cell[data-squeeze=strip][data-display=title] .bk3-media{display:none!important}
.bk3-cell[data-squeeze=strip][data-kind=product]:is([data-small=true]) .bk3-name,
.bk3-cell[data-squeeze=strip][data-kind=demo]:is([data-small=true]) .bk3-name{font-size:15px}
.bk3-cell[data-squeeze=strip] .bk3-demo-art{font-size:22px}
.bk3-cell[data-squeeze=strip] .bk3-info{flex:1}
.bk3-cell[data-squeeze=strip] .bk3-media{max-width:var(--bk3-image-size)}
/* Rotas de edicao, sem elementos de controle na impressao ou leitura. */
.bk3-editor .bk3-cell{cursor:grab}
.bk3-editor .bk3-cell[data-locked=true]{cursor:default}
.bk3-editor .bk3-quick,.bk3-editor .bk3-resize{
 width:34px;height:34px;min-height:0;font-size:18px;padding:0;
 border:1px solid #c0d5b5a8;border-radius:9px;
 background:#101c15e5;color:#e9ffd7;
 opacity:.92;transition:opacity .14s ease,background .14s ease;
 box-shadow:0 2px 8px #0005
}
.bk3-editor .bk3-quick{top:var(--bk3-block-gap,5px);right:var(--bk3-block-gap,5px);border-radius:0 9px 0 9px}
.bk3-editor .bk3-resize{bottom:var(--bk3-block-gap,5px);right:var(--bk3-block-gap,5px);border-radius:9px 0 9px 0;font-size:17px}
.bk3-editor .bk3-cell[data-small=true] .bk3-quick,
.bk3-editor .bk3-cell[data-small=true] .bk3-resize{width:34px;height:34px;font-size:17px}
.bk3-editor .bk3-quick:focus-visible,.bk3-editor .bk3-resize:focus-visible{opacity:1;outline:3px solid #deffb4;outline-offset:2px}
.bk3-locked-flag{font-size:14px;width:27px;height:27px;left:6px;top:6px}
@media (hover:hover) and (pointer:fine){
 .bk3-editor .bk3-cell .bk3-quick,.bk3-editor .bk3-cell .bk3-resize{opacity:0;pointer-events:auto}
 .bk3-editor .bk3-cell:hover .bk3-quick,.bk3-editor .bk3-cell:hover .bk3-resize,
 .bk3-editor .bk3-cell:focus-within .bk3-quick,.bk3-editor .bk3-cell:focus-within .bk3-resize,
 .bk3-editor .bk3-cell[data-selected=true] .bk3-quick,.bk3-editor .bk3-cell[data-selected=true] .bk3-resize{opacity:1;pointer-events:auto}
}
@media (hover:none),(pointer:coarse){
 .bk3-editor .bk3-cell .bk3-quick,.bk3-editor .bk3-cell .bk3-resize{opacity:0;pointer-events:auto}
 .bk3-editor .bk3-cell[data-selected=true] .bk3-quick,.bk3-editor .bk3-cell[data-selected=true] .bk3-resize,
 .bk3-editor .bk3-cell:focus-within .bk3-quick,.bk3-editor .bk3-cell:focus-within .bk3-resize{opacity:1;pointer-events:auto}
 .bk3-editor .bk3-quick,.bk3-editor .bk3-resize,
 .bk3-editor .bk3-cell[data-small=true] .bk3-quick,.bk3-editor .bk3-cell[data-small=true] .bk3-resize{
  width:60px;height:60px;font-size:25px
 }
}
/* Radial sem botao central: toque fora, Escape ou opcao fecha o menu. */
.bk3-radial-close{display:none!important}
.bk3-radial:before{width:126px;height:126px;border-color:#8bb27d77}
.bk3-radial-item{width:69px;height:69px}
.bk3-radial-item[hidden]{display:none!important}
.bk3-tune{display:inline-flex;gap:5px;align-items:center;color:var(--bk3-muted);font-size:.7rem;font-weight:700}
.bk3-tune input{width:92px;min-height:38px;accent-color:#c6ff70}
.bk3-tune output{min-width:16px;color:var(--bk3-ink);font-variant-numeric:tabular-nums}
@media(max-width:700px){
 .bk3-toolbar-actions{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));width:100%}
 .bk3-toolbar-actions .bk3-tune{justify-content:space-between}
 .bk3-tune input{min-width:45px;flex:1;width:auto}
 .bk3-tune output{min-width:20px}
 .bk3-radial-item{width:62px;height:62px}
}
@media(prefers-reduced-motion:reduce){
 .bk3-editor .bk3-quick,.bk3-editor .bk3-resize{transition:none!important}
}

/* A alça segue clicável durante a transição para hover e não fica sob o
   cabeçalho fixo ao rolar a folha no navegador. */
.bk3-editor .bk3-cell{scroll-margin-top:138px}


/* Pontos discretos e áreas de captura nas bordas do bloco editável. */
.bk3-editor .bk3-cell > .bk3-resize{
 position:absolute;top:auto;right:auto;bottom:auto;left:auto;z-index:6;
 width:24px!important;height:24px!important;min-height:0;border:0;background:none;
 box-shadow:none;border-radius:0;transform:translate(-50%,-50%);touch-action:none;
}
.bk3-editor .bk3-cell > .bk3-resize::after{
 content:"";width:8px;height:8px;border:1px solid #17251b;background:#d4ffa9;
 border-radius:50%;opacity:0;pointer-events:none;
}
.bk3-editor .bk3-cell:is(:hover,:focus-within,[data-selected=true]) > .bk3-resize::after{opacity:1}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=ne],[data-resize=se],[data-resize=e]){left:calc(100% - 5px)}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=nw],[data-resize=sw],[data-resize=w]){left:5px}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=ne],[data-resize=nw],[data-resize=n]){top:5px}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=se],[data-resize=sw],[data-resize=s]){top:calc(100% - 5px)}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=nw],[data-resize=se]){cursor:nwse-resize}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=ne],[data-resize=sw]){cursor:nesw-resize}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=e],[data-resize=w]){top:50%;cursor:ew-resize}
.bk3-editor .bk3-cell > .bk3-resize:is([data-resize=n],[data-resize=s]){left:50%;cursor:ns-resize}
.bk3-editor .bk3-cell > .bk3-resize[hidden]{display:none!important}

/* Em cards pequenos a foto permanece inteira. Os maiores deixam o texto
   ocupar o espaço que sobra sem encobrir título e preço. */
.bk3-sheet .bk3-cell[data-small=true] .bk3-media img.bk3-photo{object-fit:contain}
.bk3-sheet .bk3-cell:is([data-squeeze=media],[data-display=media]) .bk3-media{
 width:100%!important;height:100%!important;flex:1 1 auto!important;margin:0;aspect-ratio:auto;
}
.bk3-sheet .bk3-cell:is([data-squeeze=media],[data-display=media]) .bk3-media img.bk3-photo{object-fit:contain;aspect-ratio:auto}
.bk3-sheet .bk3-cell[data-small=false] .bk3-info{min-height:0;overflow:hidden}
.bk3-sheet .bk3-cell[data-small=false] .bk3-info :is(.bk3-name,.bk3-price){flex-shrink:0}
.bk3-sheet .bk3-cell[data-small=false][data-display=full] .bk3-desc{display:block;min-height:0;overflow:hidden;-webkit-line-clamp:unset}

.bk3-editor .bk3-cell > .bk3-quick{right:17px}

.bk3-editor .bk3-cell[data-kind=divider][data-direction=vertical] > .bk3-quick{top:50%;transform:translateY(-50%)}
.bk3-editor .bk3-cell > .bk3-resize{z-index:9}

.bk3-photo-editor{width:min(max(26rem,calc(var(--photo-width, 0px) + 34px)),calc(100vw - 24px));max-height:calc(100dvh - 24px);box-sizing:border-box;padding:16px;border:1px solid #688263;border-radius:14px;background:#18251c;color:#f4faee}
.bk3-photo-editor::backdrop{background:#050805bb}
.bk3-photo-editor h3,.bk3-photo-editor p{margin:0 0 10px}
.bk3-photo-editor label,.bk3-photo-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.bk3-photo-editor :is(button,select){min-height:44px;padding:8px 12px;border:1px solid #688263;border-radius:8px;background:#243629;color:inherit;font:inherit}
.bk3-photo-actions{justify-content:flex-end;margin-top:10px}
.bk3-photo-actions button:last-child{background:#c6ff70;color:#17251b}
.bk3-photo-frame{position:relative;margin:10px auto 0;width:min(100%,var(--photo-width));overflow:hidden;touch-action:none;cursor:grab;background:#111a14}
.bk3-photo-frame:active{cursor:grabbing}
.bk3-photo-frame img{position:absolute;inset:0;display:block;width:100%;height:100%;pointer-events:none}
.bk3-photo-frame::after{
 content:"";position:absolute;inset:0;pointer-events:none;
 box-shadow:inset 0 0 0 1px #e0ffc4,inset 0 0 0 2px #102014cc;
 background:
  linear-gradient(#e0ffc488,#e0ffc488) center / 1px 100% no-repeat,
  linear-gradient(90deg,#e0ffc488,#e0ffc488) center / 100% 1px no-repeat;
}

.bk3-editor .bk3-cell[data-kind=divider].bk3-resizing .bk3-block{width:var(--bk3-ghost-w);height:var(--bk3-ghost-h)}

.bk3-radial .bk3-radial-properties{left:0;top:0}
.bk3-photo-editor input[type=range]{flex:1;min-width:100px;accent-color:#c6ff70}

/* UI do editor: a folha e o PDF preservam a mesma geometria. */
body[data-book-mode=editor] .bk3-toolbar .bk3-toolbar-actions{display:flex;justify-content:flex-start;width:auto}
body[data-book-mode=editor] .bk3-toolbar{padding-block:5px}
#bk3-hand[aria-pressed=true]{background:#c6ff70;color:#152119}
.bk3-viewport[data-hand],.bk3-viewport[data-hand] *{cursor:grab;touch-action:none}
.bk3-viewport[data-hand]:active,.bk3-viewport[data-hand]:active *{cursor:grabbing}
.bk3-marquee{position:fixed;z-index:120;pointer-events:none;border:1px solid #c6ff70;background:#c6ff702b}
.bk3-inspector-pane{border:1px solid #40503b;border-radius:8px;min-width:0}
.bk3-inspector-pane>summary{cursor:pointer;padding:9px 8px;font-size:.78rem;font-weight:750}
.bk3-inspector-fields{display:grid;gap:8px;padding:0 8px 8px}
.bk3-inspector-pane>.bk3-inspector-section{padding:9px 8px}
.bk3-inspector-pane .bk3-tune{flex-wrap:wrap;justify-content:space-between}
.bk3-inspector-pane .bk3-tune input{width:90px}
#bk3-pages #bk3-add-page{flex:none;min-height:44px}
#bk3-pages .bk3-page-menu>summary{min-height:44px;list-style:none;text-align:center}
#bk3-pages .bk3-page-menu>summary::-webkit-details-marker{display:none}
@media (min-width:931px){
 body[data-book-mode=editor] .bk3-shell .bk3-layout{grid-template-columns:minmax(125px,14%) minmax(0,1fr) minmax(190px,18%);align-items:start}
 body[data-book-mode=editor] .bk3-layout>.bk3-inspector{display:flex;grid-column:3;border-top:0;border-left:1px solid #40503b;align-self:stretch}
 body[data-book-mode=editor] .bk3-sidebar{max-height:none;align-self:stretch}
 body[data-book-mode=editor] .bk3-layout .bk3-viewport{height:auto;min-height:clamp(460px,64vh,920px);overflow:clip;border:0;border-radius:0;background:transparent}
 body[data-book-mode=editor] .bk3-canvas{padding:0 6px}
 body[data-book-mode=editor] .bk3-holder{margin:9px auto}
 .bk3-inspector>.bk3-panel-title{cursor:grab;touch-action:none;user-select:none}
 .bk3-inspector-pane>summary{cursor:grab}
 body[data-book-mode=editor] .bk3-layout>.bk3-inspector[data-floating]{position:fixed;z-index:115;width:min(280px,28vw);max-height:min(80vh,720px);overflow:auto;border:1px solid #688263;border-radius:10px;box-shadow:0 12px 35px #0008}
}
@media(min-width:931px) and (hover:hover) and (pointer:fine){#bk3-selection-mode{display:none}}
@media(max-width:930px){
 body[data-book-mode=editor] .bk3-viewport{scrollbar-width:none}
}
@media print{.bk3-marquee{display:none!important}}

body[data-book-mode=editor] .bk3-panel-title>span{display:none}
@media(min-width:931px){
 body[data-book-mode=editor] .bk3-shell .bk3-layout:has(>.bk3-inspector[data-floating]){grid-template-columns:minmax(125px,14%) minmax(0,1fr)}
}

.bk3-canvas-controls{display:flex;align-items:flex-start;justify-content:space-between;gap:8px;padding:2px 6px 5px}
.bk3-selection-slot{position:relative;min-width:0;min-height:44px;flex:1}
 .bk3-selection-slot>.bk3-selection{
 position:absolute;z-index:25;inset:0 auto auto 0;max-width:100%;height:43px;display:flex;flex-wrap:nowrap;gap:3px;
 box-sizing:border-box;border:1px solid #456044;border-radius:8px;padding:1px 4px
}
.bk3-selection-slot .bk3-selection-tools{display:flex;align-items:center;gap:2px;width:max-content;max-width:100%;padding:0;overflow-x:auto;scrollbar-width:thin}
.bk3-selection-slot .bk3-selection-tools button{min-width:29px;min-height:34px;padding:2px 4px}
.bk3-selection-slot .bk3-selection-tools [hidden]{display:none!important}
.bk3-selection-slot .bk3-align-tools{gap:2px}
.bk3-selection-slot .bk3-align-tools button{width:30px}
.bk3-selection-slot .bk3-align-tools svg{width:19px;height:19px}
@media(pointer:coarse),(max-width:930px){
 .bk3-selection-slot>#bk3-selection-mode{position:absolute;top:0;right:0}
 .bk3-selection-slot>.bk3-selection{max-width:calc(100% - 126px)}
}
.bk3-canvas-history{display:flex;justify-content:flex-end;gap:4px;flex-wrap:wrap}
.bk3-canvas-history button,.bk3-tool-modes button,.bk3-fold-tools,.bk3-palette-catalog>summary{
 min-height:38px;padding:5px 9px;border:1px solid #526c50;border-radius:8px;background:#213125;color:#eef7e8;cursor:pointer
}
.bk3-canvas-history button:disabled{opacity:.45;cursor:default}
.bk3-tool-modes{display:flex;gap:5px;flex-wrap:wrap}
.bk3-sidebar[data-collapsed] .bk3-tool-label{display:none}
.bk3-sidebar[data-collapsed] .bk3-special>.bk3-tool{justify-content:center;padding:4px}
.bk3-sidebar[data-collapsed] .bk3-tool-modes{display:grid}
.bk3-sidebar .bk3-fold-tools{position:absolute;right:-11px;top:30px;z-index:3;width:22px;min-height:36px;padding:0;font-size:20px}
@media(max-width:930px){
 .bk3-sidebar .bk3-fold-tools{right:6px;top:6px}
 .bk3-sidebar:not([data-collapsed]) .bk3-panel-title{padding-right:28px}
 body[data-book-mode=editor][data-editor-panel=products] .bk3-sidebar[data-collapsed]{width:58px;right:auto;padding-inline:6px;max-height:calc(100dvh - 100px);overflow:auto}
 .bk3-sidebar[data-collapsed] .bk3-fold-tools{right:5px;top:4px;min-height:30px}
 .bk3-sidebar[data-collapsed] .bk3-palette-close{width:24px;min-height:30px;padding:0;font-size:0;margin-top:0}
 .bk3-sidebar[data-collapsed] .bk3-palette-close::after{content:"×";font-size:20px}
 .bk3-sidebar[data-collapsed] .bk3-catalog-body{position:fixed;left:72px;bottom:76px;width:min(260px,calc(100vw - 86px));max-height:46dvh;overflow:auto}
}
.bk3-palette-catalog>summary{list-style:none;width:100%;margin:0;min-height:44px;box-sizing:border-box;display:flex;align-items:center;gap:8px}
.bk3-sidebar[data-collapsed] .bk3-palette-catalog>summary{justify-content:center;padding:4px}
.bk3-palette-catalog>summary::-webkit-details-marker{display:none}
.bk3-catalog-body{display:grid;gap:8px;margin:7px 0 0}
.bk3-sidebar[data-collapsed] .bk3-catalog-body{padding:10px;border:1px solid #526c50;border-radius:10px;background:#172119}
#bk3-pages{overflow:visible;flex-wrap:wrap}
#bk3-pages .bk3-page-card{position:relative;align-items:stretch;gap:0;border:1px solid #526c50;border-radius:9px;background:#213125}
#bk3-pages .bk3-page-card>button,#bk3-pages .bk3-page-menu>summary{border:0;border-radius:8px;min-height:38px}
#bk3-pages .bk3-page-menu>summary{padding-inline:8px}
#bk3-pages .bk3-page-menu-body{position:absolute;z-index:30;top:calc(100% + 4px);left:0;width:160px;box-sizing:border-box;padding:7px;border:1px solid #688263;border-radius:9px;background:#172119;box-shadow:0 8px 22px #0007}
#bk3-pages .bk3-page-menu-body>button{width:100%}
#bk3-pages .bk3-page-tools button{min-width:30px}
#bk3-page-panel .bk3-pages-actions{padding:0}
#bk3-page-panel #bk3-document-state{display:none}
@media(min-width:931px){
 body[data-book-mode=editor] .bk3-shell .bk3-layout>:is(.bk3-sidebar,.bk3-inspector:not([data-floating])){
  position:sticky;top:var(--bk3-sticky-top,94px);align-self:start
 }
 body[data-studio-unified][data-book-mode=editor] .bk3-shell{overflow:clip;--bk3-sticky-top:12px}
 body[data-book-mode=editor] .bk3-shell .bk3-layout:has(>.bk3-sidebar[data-collapsed]){
  grid-template-columns:54px minmax(0,1fr) minmax(190px,18%)
 }
 body[data-book-mode=editor] .bk3-shell .bk3-layout:has(>.bk3-sidebar[data-collapsed]):has(>.bk3-inspector[data-floating]){
  grid-template-columns:54px minmax(0,1fr)
 }
 body[data-book-mode=editor] .bk3-layout>.bk3-sidebar[data-collapsed]{padding-inline:6px;z-index:31}
 .bk3-sidebar[data-collapsed] .bk3-catalog-body{
  position:absolute;left:calc(100% + 4px);top:0;width:min(280px,35vw);max-height:calc(100dvh - 116px);overflow:auto;margin:0
 }
 body[data-book-mode=editor] .bk3-layout>.bk3-inspector:not([data-floating]){
  max-height:calc(100dvh - var(--bk3-sticky-top,94px) - 10px);overflow:auto;scrollbar-width:thin
 }
}
@media(max-width:930px){.bk3-canvas-controls{flex-wrap:wrap;justify-content:flex-end}.bk3-selection-slot{flex-basis:100%}}

.bk3-grid:has(>[data-underlay]){isolation:isolate}
.bk3-grid>.bk3-cell[data-underlay]{z-index:-1}
.bk3-editor .bk3-cell[data-underlay][data-selected=true]>.bk3-quick,
.bk3-editor .bk3-cell[data-underlay][data-selected=true]>.bk3-resize{visibility:visible}
.bk3-editor .bk3-cell[data-parallel-resize]>.bk3-resize:not([hidden]){display:grid}
.bk3-editor .bk3-cell[data-custom-appearance][data-selected=true]{outline:2px solid #c6ff70;outline-offset:-2px}
.bk3-block-controls,.bk3-photo-position fieldset{display:grid;gap:8px;min-width:0;border:1px solid #40503b;border-radius:8px;padding:8px}
.bk3-text-alignment{display:flex;gap:4px}
.bk3-text-alignment button{display:grid;place-items:center;min-width:35px;min-height:35px;padding:5px}
.bk3-text-alignment button[aria-pressed=true]{background:#c6ff70;color:#152119}
.bk3-text-alignment svg{width:19px;height:19px}
.bk3-photo-position>summary{cursor:pointer;padding:7px 0}
.bk3-block[data-text-align=center] .bk3-info{text-align:center;align-items:center}
.bk3-block[data-text-align=right] .bk3-info{text-align:right;align-items:flex-end}
.bk3-block[data-text-align=left] .bk3-info{text-align:left;align-items:flex-start}
.bk3-cell .bk3-block[style*="--bk3-product-scale"] .bk3-name{font-size:calc(18px * var(--bk3-product-scale))}
.bk3-cell[data-small=true] .bk3-block[style*="--bk3-product-scale"] .bk3-name{font-size:calc(13px * var(--bk3-product-scale))}
.bk3-cell .bk3-block[style*="--bk3-product-scale"] .bk3-desc{font-size:calc(14px * var(--bk3-product-scale))}
.bk3-cell .bk3-block[style*="--bk3-product-scale"] .bk3-price{font-size:calc(16px * var(--bk3-product-scale))}
.bk3-content :is(.bk3-content-title,.bk3-content-body)[style*="text-align"]{align-self:stretch}

.bk3-cell[data-kind=divider] .bk3-block[style*="--bk3-peer-width"]{flex:none;width:var(--bk3-peer-width);height:var(--bk3-peer-height)}
.bk3-block[style*="--bk3-block-ink"] .bk3-price{color:var(--bk3-block-ink)}
#bk3-underlays{display:grid;gap:5px}

.bk3-cell[data-kind=divider] .bk3-block:after{opacity:var(--bk3-line-opacity,.6)}
