.pde{width:min(1500px,97vw);max-width:97vw;height:94dvh;max-height:94dvh;padding:0;border:1px solid #b9cbd6;border-radius:16px;color:#172b3a;background:#f3f7f9;box-shadow:0 22px 90px #102d4966;font:14px system-ui,sans-serif}.pde::backdrop,.pde-picker::backdrop{background:#10233699}.pde[open]{display:flex;flex-direction:column}.pde header,.pde footer{display:flex;align-items:center;gap:12px;padding:12px 18px;background:#fff;flex-wrap:wrap}.pde header{justify-content:space-between;border-bottom:1px solid #dbe4e9}.pde h2{font-size:19px;margin:0;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.pde h3{font-size:15px;margin:0 0 12px}.pde button,.pde select,.pde input,.pde textarea{font:inherit;box-sizing:border-box}.pde button{border:1px solid #bacbd5;background:#fff;color:#203d50;border-radius:7px;padding:8px 10px;cursor:pointer;line-height:1.2;box-shadow:none;min-height:34px}.pde button:hover{background:#e4f1ef}.pde button:focus-visible,.pde input:focus-visible,.pde textarea:focus-visible,.pde select:focus-visible{outline:3px solid #4cbda7;outline-offset:2px}.pde button[aria-pressed=true],.pde button[aria-current=true],.pde .pde-primary{background:#087e70;color:white;border-color:#087e70}.pde button:disabled{opacity:.45;cursor:not-allowed}.pde-status{margin:0;padding:9px 18px;min-height:18px;color:#365268;background:#e5f0f5;font-size:13px}.pde-tools{display:flex;gap:5px;align-items:center;flex-wrap:wrap;padding:9px 12px;border-bottom:1px solid #cad8e0;background:white}.pde-tools button{padding:7px 9px;font-size:13px}.pde-tools select{padding:6px;border:1px solid #bacbd5;border-radius:7px}.pde-body{display:grid;grid-template-columns:145px minmax(0,1fr) 225px;flex:1;min-height:0}.pde-pages,.pde-props{padding:12px;overflow:auto;background:#fff}.pde-pages{border-right:1px solid #cad8e0}.pde-page-list>button{display:block;width:100%;margin-bottom:7px;text-align:left}.pde-page-actions{display:grid;gap:7px;margin-top:20px}.pde-area{overflow:auto;padding:24px;background:#d9e1e6;min-width:0}.pde-stage{position:relative;margin:auto;box-shadow:0 3px 18px #18334444;background:white}.pde-stage canvas{display:block;max-width:none}.pde-stage canvas+canvas{position:absolute;inset:0;touch-action:none}.pde-props{border-left:1px solid #cad8e0}.pde-props>label{display:flex;flex-wrap:wrap;align-items:center;gap:6px;margin:10px 0;font-size:12px}.pde-props input:not([type=checkbox]),.pde-props textarea,.pde-props select{width:100%;border:1px solid #b9cad4;padding:7px;border-radius:5px;background:#fff;color:#172b3a}.pde-props input[type=checkbox]{margin-left:auto;width:18px;height:18px}.pde-props input[type=color]{height:36px;padding:3px}.pde-props input[type=range]{padding:0}.pde-props>button{width:100%;margin:4px 0;text-align:left}.pde-props p{font-size:13px;line-height:1.5;color:#4c6574}.pde-objects{border-top:1px solid #d9e1e6;margin-top:14px;padding-top:10px;display:grid;gap:5px}.pde-objects button{overflow:hidden;text-overflow:ellipsis;text-align:left;white-space:nowrap;font-size:12px}.pde footer{border-top:1px solid #cad8e0}.pde footer small{color:#516b79;font-size:11px;flex:1;min-width:200px}.pde-picker{border:1px solid #b9cad4;border-radius:12px;width:min(600px,90vw);max-height:70vh;overflow:auto;padding:20px}.pde-picker>input{width:100%;padding:10px;margin-bottom:12px}.pde-picker>div{display:grid;gap:6px;margin-bottom:15px}.pde-picker button{text-align:left}@media(max-width:800px){.pde-body{grid-template-columns:95px minmax(0,1fr) 170px}.pde-pages,.pde-props{padding:7px}.pde-tools{max-height:120px;overflow:auto}.pde-area{padding:12px}}@media(max-width:550px){.pde-body{grid-template-columns:1fr}.pde-pages{display:flex;overflow:auto;gap:5px;padding:5px;max-height:95px;flex-shrink:0}.pde-page-list>button{min-width:100px;margin:0}.pde-page-actions{display:flex;margin:0}.pde-area{min-height:200px}.pde-props{max-height:150px}.pde footer small{display:none}.pde header{padding:10px}}
/* Isola o espaço de trabalho das regras gerais de painéis e formulários do Lume. */
.pde[open]{gap:0;overflow:hidden}.pde>header,.pde>.pde-status,.pde>.pde-tools,.pde>footer{flex-shrink:0;margin:0}.pde>.pde-body{grid-template-rows:minmax(0,1fr);align-items:stretch;gap:0;overflow:hidden;margin:0}.pde-body>.pde-area,.pde-body>.pde-pages,.pde-body>.pde-props{height:100%;max-height:100%;min-height:0;align-self:stretch;box-sizing:border-box;margin:0;overflow:auto}.pde>footer{position:relative;z-index:2}.pde-props label{justify-content:space-between;line-height:1.35}.pde-props input[type=checkbox]{flex:0 0 18px}.pde textarea{min-height:0}@media(max-width:550px){.pde>.pde-body{grid-template-rows:auto minmax(0,1fr) 150px}.pde-body>.pde-pages{height:auto;max-height:95px}.pde-body>.pde-area{min-height:0}.pde-body>.pde-props{max-height:150px}}

.pde-page-list>button[data-pde-page]{font-size:12px;line-height:1.35;text-align:center}.pde-page-list>button[data-pde-page]>canvas{display:block;max-width:100%;height:auto;margin:0 auto 7px;background:white;border:1px solid #c7d3da;box-sizing:border-box}@media(max-width:550px){.pde-page-list>button[data-pde-page]>canvas{display:none}}

.pde-body>.pde-pages{display:flex;flex-direction:column}.pde-page-list{flex:1;min-height:0;overflow:auto}.pde-page-actions{flex-shrink:0;padding-top:10px;margin-top:8px;border-top:1px solid #d7e1e7}@media(max-width:550px){.pde-body>.pde-pages{flex-direction:row}.pde-page-list{display:flex;gap:5px;min-height:auto;overflow:auto}.pde-page-list>button{flex-shrink:0}.pde-page-actions{border:0;padding:0;margin:0}}
.pde-page-list>button[data-pde-page]>canvas{max-height:70px;width:auto}
