/* Modo Edição */
#edPanel{position:fixed;top:0;right:0;bottom:0;width:min(380px,92vw);z-index:300;background:#0d1117f7;backdrop-filter:blur(12px);border-left:1px solid #ffffff1f;color:#eee;font:13px/1.45 Poppins,system-ui,sans-serif;display:flex;flex-direction:column;transform:translateX(105%);transition:transform .3s cubic-bezier(.2,.8,.2,1);box-shadow:-20px 0 60px #000a}
#edPanel.open{transform:none}
#edPanel header{display:flex;justify-content:space-between;align-items:center;padding:14px 16px;border-bottom:1px solid #ffffff14;font-size:15px}
#edPanel header b{color:var(--ac)}
#edPanel header button{width:32px;height:32px;border-radius:50%;background:#ffffff12}
#edPanel nav{display:flex;flex-wrap:wrap;gap:4px;padding:10px 12px;border-bottom:1px solid #ffffff14}
#edPanel nav button{padding:6px 10px;border-radius:6px;font-size:12px;color:#aaa}
#edPanel nav button.on{background:var(--ac);color:#001;font-weight:600}
#edPanel .body{flex:1;overflow-y:auto;padding:14px 16px 40px}
#edPanel h4{font-size:12px;letter-spacing:.12em;text-transform:uppercase;color:var(--lime);margin:22px 0 10px}
#edPanel .hint{background:#14ebee14;border:1px solid #14ebee33;padding:10px 12px;border-radius:8px;color:#cde;margin-bottom:6px}
#edPanel .f{display:block;margin-bottom:12px}
#edPanel .f>span{display:flex;justify-content:space-between;font-size:11px;color:#9aa;margin-bottom:4px}
#edPanel input:not([type=checkbox]):not([type=range]):not([type=color]),#edPanel textarea,#edPanel select{width:100%;background:#ffffff0d;border:1px solid #ffffff1f;border-radius:6px;color:#fff;padding:8px 10px;font:inherit}
#edPanel textarea{resize:vertical}
#edPanel input:focus,#edPanel textarea:focus,#edPanel select:focus{outline:0;border-color:var(--ac)}
#edPanel select option{background:#111}
#edPanel input[type=range]{width:100%;accent-color:var(--ac)}
#edPanel output{color:var(--ac)}
#edPanel .ck{display:flex;align-items:center;gap:8px;margin:6px 0;cursor:pointer}
#edPanel .ck input{accent-color:var(--ac);width:16px;height:16px}
#edPanel .chk{display:grid;grid-template-columns:1fr 1fr;gap:0 10px}
#edPanel .clr{display:flex;align-items:center;gap:10px}
#edPanel .clr span{flex:1;margin:0}
#edPanel .clr input{width:44px;height:32px;border:0;background:none;padding:0}
#edPanel code{font-size:11px;color:#9aa}
#edPanel .imgrow{display:flex;gap:8px;align-items:center}
#edPanel .imgrow img{width:54px;height:38px;object-fit:cover;border-radius:4px;flex:none;background:#222}
#edPanel .mini{display:inline-flex;align-items:center;gap:6px;padding:7px 12px;border-radius:6px;background:#ffffff14;font-size:12px;white-space:nowrap;cursor:pointer;margin:4px 6px 4px 0}
#edPanel .mini:hover{background:#ffffff24}
#edPanel .mini.pri{background:var(--ac);color:#001;font-weight:600}
#edPanel .mini.danger{color:#ff8a8a}
#edPanel .btnrow{display:flex;flex-wrap:wrap;margin:4px 0 10px}
#edPanel .li{display:flex;gap:8px;align-items:center;margin-bottom:8px;padding:6px;border-radius:8px;background:#ffffff08}
#edPanel .li img{width:56px;height:40px;object-fit:cover;border-radius:4px;flex:none}
#edPanel .li>div:nth-child(2){flex:1;display:grid;gap:4px}
#edPanel .li input{padding:5px 8px!important;font-size:12px!important}
#edPanel .ord{display:flex;gap:2px;flex:none}
#edPanel .ord button{width:24px;height:24px;border-radius:4px;background:#ffffff12;font-size:12px}
#edPanel .ord button:hover{background:#ffffff2a}
#edPanel .thumbs{display:grid;grid-template-columns:repeat(3,1fr);gap:8px;margin-bottom:6px}
#edPanel .th{position:relative}
#edPanel .th img{width:100%;aspect-ratio:3/4;object-fit:cover;border-radius:6px}
#edPanel .th .ord{position:absolute;bottom:4px;left:4px;right:4px;justify-content:center}
#edPanel .rowbox{padding:10px;border-radius:10px;background:#ffffff08;border:1px solid #ffffff12;margin-bottom:12px}
#edPanel .chips{display:flex;flex-wrap:wrap;gap:6px;margin:10px 0}
#edPanel .chip{display:inline-flex;align-items:center;gap:2px;padding:3px 4px 3px 9px;border-radius:99px;background:#ffffff14;font-size:12px}
#edPanel .chip button{width:18px;height:18px;border-radius:50%;font-size:12px;color:#aaa}
#edPanel .chip button:hover{background:#ffffff24;color:#fff}
#edPanel .steps{padding-left:18px;margin:10px 0;display:grid;gap:8px;color:#ccd}
#edToast{position:fixed;left:50%;bottom:24px;transform:translate(-50%,30px);z-index:400;background:#111;border:1px solid var(--ac);color:#fff;padding:10px 16px;border-radius:10px;font:13px Poppins,sans-serif;opacity:0;pointer-events:none;transition:all .25s;max-width:90vw;text-align:center}
#edToast.on{opacity:1;transform:translate(-50%,0)}
body.editing [contenteditable=true]{outline:1px dashed color-mix(in srgb,var(--ac) 70%,transparent);outline-offset:4px;border-radius:3px;cursor:text}
body.editing [contenteditable=true]:hover{background:#14ebee12}
body.editing [contenteditable=true]:focus{outline:2px solid var(--ac);background:#14ebee1a}
@media(min-width:900px){body.editing{margin-right:380px}body.editing .nav{right:380px}}
