.dtf-editor{--dtf-brown:#8b3d00;--dtf-brown-dark:#713100;--dtf-blue:#006f9f;--dtf-border:#dedede;--dtf-text:#333;--dtf-muted:#777;--dtf-bg:#fff}
/* Escopo forte para neutralizar tipografia e padding de temas/Elementor. */
#dtfEditor{--dtf-css-ready:1;width:100%!important;min-width:0!important;max-width:1120px!important;box-sizing:border-box!important;contain:none}
#dtfEditor .dtf-ribbon,#dtfEditor .dtf-panel,#dtfEditor .dtf-canvas-wrap{width:100%;min-width:0;box-sizing:border-box}
#dtfEditor .dtf-tabs{width:100%;box-sizing:border-box;display:flex;flex-wrap:wrap;overflow:visible}
#dtfEditor .dtf-help-tab{margin-left:auto!important;border-left:1px solid #ccc!important}
#dtfEditor .dtf-version{font:600 12px/1.5 system-ui,sans-serif;color:#713100;margin-bottom:8px}
#dtfEditor button{font-family:system-ui,sans-serif!important;font-size:13px!important;line-height:1.3!important;letter-spacing:normal!important;text-transform:none!important;text-indent:0!important;box-sizing:border-box!important;white-space:normal!important;margin:0!important;box-shadow:none!important}
#dtfEditor .dtf-tool{width:104px!important;min-width:104px!important;height:72px!important;padding:6px!important;flex-shrink:0;overflow:visible}
#dtfEditor .dtf-tool span{font-size:13px!important;line-height:1.3!important;max-width:100%;white-space:normal!important;overflow-wrap:anywhere}
#dtfEditor .dtf-round{display:inline-flex!important;align-items:center!important;justify-content:center!important;width:34px!important;min-width:34px!important;height:34px!important;padding:0!important;font-size:20px!important;flex:0 0 34px}
#dtfEditor .dtf-secondary{height:auto!important;min-height:36px!important;padding:8px 12px!important}
#dtfEditor .dtf-tab{padding:10px 14px!important;min-height:40px;flex-shrink:0}
#dtfEditor .dtf-help-tab[aria-pressed=true]{background:#713100!important;color:white!important;box-shadow:inset 0 3px 6px #321800!important;border:2px solid #321800!important}
#dtfEditor input[type=number],#dtfEditor select{font:400 14px/1.4 system-ui,sans-serif!important;height:38px!important;padding:5px 8px!important;box-sizing:border-box!important;max-width:100%;text-indent:0!important}
#dtfEditor input[type=number]{width:104px!important;min-width:104px!important}
#dtfEditor .dtf-group{min-width:0;max-width:100%;box-sizing:border-box}
#dtfEditor .dtf-panel{height:auto;overflow:visible;max-width:100%}
#dtfEditor .dtf-row,#dtfEditor .dtf-tools{flex-wrap:wrap;max-width:100%}
#dtfEditor .dtf-small{white-space:normal!important;overflow-wrap:anywhere}
#dtfEditor .dtf-workspace-row{display:flex;flex-wrap:nowrap;align-items:center;gap:6px;max-width:100%;overflow-x:auto}
#dtfEditor .dtf-workspace-row>*{flex-shrink:0}
#dtfEditor .dtf-range{min-width:70px;max-width:160px;padding:0!important}
#dtfEditor .dtf-object-fields{display:flex;flex-wrap:wrap;gap:8px}
  .dtf-editor{font-family:Inter,system-ui,Arial,Helvetica,sans-serif;max-width:1120px;margin:0 auto;padding:12px;border:1px solid var(--dtf-border);border-radius:12px;background:#fff;box-sizing:border-box;color:var(--dtf-text)}
  .dtf-ribbon{border:1px solid var(--dtf-border);border-radius:10px 10px 0 0;background:#fff;position:relative;z-index:50}
  .dtf-tabs{display:flex;gap:2px;padding:0 8px;background:#f5f5f5;border-bottom:1px solid var(--dtf-border);overflow:auto}
  .dtf-tab{border:0;background:transparent;color:#555;padding:11px 18px;font:600 13px/1.2 inherit;white-space:nowrap;cursor:pointer;border-bottom:3px solid transparent}
  .dtf-tab:hover{background:#ececec;color:#222}.dtf-tab.active{background:#fff;color:var(--dtf-brown);border-bottom-color:var(--dtf-brown)}
  .dtf-panel{display:none;min-height:82px;padding:10px 12px;gap:16px;align-items:flex-start;flex-wrap:wrap;box-sizing:border-box}.dtf-panel.active{display:flex}
  .dtf-group{display:flex;flex-direction:column;gap:6px;padding-right:16px;border-right:1px solid #e7e7e7;min-height:52px}.dtf-group:last-child{border-right:0}.dtf-grow{flex:1 1 280px}
  .dtf-caption{font-size:10px;font-weight:800;letter-spacing:.08em;color:#777}.dtf-row,.dtf-tools{display:flex;align-items:center;gap:6px;flex-wrap:wrap}.dtf-row label{font-size:12px;color:#555}
  .dtf-tool{width:68px;height:48px;padding:5px 7px;border:1px solid #cfcfcf;border-radius:8px;background:var(--dtf-brown)!important;color:#fff!important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;cursor:pointer;font:600 11px/1.1 inherit;box-sizing:border-box;transition:.12s}
  .dtf-tool:hover{background:var(--dtf-brown-dark)!important}.dtf-tool:disabled{opacity:.48;cursor:not-allowed}.dtf-tool.active{background:var(--dtf-blue)!important;box-shadow:0 0 0 2px rgba(0,111,159,.18)}
  .dtf-icon{font-size:15px;line-height:18px;font-weight:800}.dtf-small{font-size:11px;color:#777;line-height:1.35}.dtf-secondary{height:32px;padding:0 10px;border:1px solid var(--dtf-brown);border-radius:7px;background:#fff;color:var(--dtf-brown);font:600 12px/1 inherit;cursor:pointer}.dtf-secondary:hover{background:#fff4eb}
  .dtf-round{width:30px;height:30px;border-radius:50%;border:1px solid #ccc;background:#f3f3f3;color:#333;font-size:18px;cursor:pointer}
  .dtf-number,.dtf-select{height:32px;border:1px solid #cfcfcf;border-radius:7px;background:#fff;box-sizing:border-box;padding:0 8px;font:500 12px inherit;color:#333}.dtf-number{width:78px}.dtf-select{min-width:95px}
  .dtf-color{width:34px!important;height:32px!important;padding:1px!important;border-radius:7px!important;border:1px solid #ccc!important;background:#fff;cursor:pointer}
  .dtf-range{width:160px;max-width:200px}.dtf-value{min-width:38px;text-align:center;font-weight:700;font-size:12px;color:#555}
  .dtf-size-lock{display:inline-flex;align-items:center;gap:4px;font-size:11px;color:#666}.dtf-size-lock input{margin:0}
  .dtf-workspace-info{display:flex;align-items:center;gap:5px;font-size:11px;color:#777}.dtf-workspace-info b{color:#444}
  .dtf-canvas-wrap{margin-top:10px;padding:12px;background:linear-gradient(180deg,#fff,#fafafa);border-radius:10px;display:flex;justify-content:center;box-sizing:border-box}
  .dtf-viewport{width:100%;max-width:100%;height:66vh;min-height:420px;overflow:auto;border:1px solid #e1e1e1;border-radius:9px;background:#f6f6f6;position:relative;box-sizing:border-box}
  .dtf-viewport.drag-over{outline:2px dashed var(--dtf-blue);outline-offset:-4px;background:#eef8fb}
  .dtf-inner{position:relative;display:inline-block;transform-origin:top left;will-change:transform;margin:18px;box-shadow:0 4px 18px rgba(0,0,0,.08)}
  #dtfCanvas,#dtfCompareCanvas{position:absolute;left:0;top:0;display:block;border:0!important;max-width:none!important;height:auto!important}
  .dtf-checker{background-color:#fff;background-image:linear-gradient(45deg,#e8e8e8 25%,transparent 25%),linear-gradient(-45deg,#e8e8e8 25%,transparent 25%),linear-gradient(45deg,transparent 75%,#e8e8e8 75%),linear-gradient(-45deg,transparent 75%,#e8e8e8 75%);background-size:16px 16px;background-position:0 0,0 8px,8px -8px,-8px 0}
  .dtf-solid-bg{background:#fff}
  .dtf-selection{position:absolute;border:2px solid #0073aa;box-sizing:border-box;pointer-events:none;z-index:20;display:none}
  .dtf-selection.show{display:block}.dtf-selection .dtf-handle{position:absolute;width:16px;height:16px;border:2px solid #0073aa;background:#fff;border-radius:3px;box-sizing:border-box;pointer-events:auto;z-index:25}
  .dtf-h-nw{left:-5px;top:-5px;cursor:nwse-resize}.dtf-h-n{left:50%;top:-5px;margin-left:-5px;cursor:ns-resize}.dtf-h-ne{right:-5px;top:-5px;cursor:nesw-resize}.dtf-h-e{right:-5px;top:50%;margin-top:-5px;cursor:ew-resize}.dtf-h-se{right:-5px;bottom:-5px;cursor:nwse-resize}.dtf-h-s{left:50%;bottom:-5px;margin-left:-5px;cursor:ns-resize}.dtf-h-sw{left:-5px;bottom:-5px;cursor:nesw-resize}.dtf-h-w{left:-5px;top:50%;margin-top:-5px;cursor:ew-resize}
  .dtf-selection-label{position:absolute;left:0;top:-24px;background:#0073aa;color:#fff;padding:4px 7px;border-radius:5px;font-size:11px;white-space:nowrap;pointer-events:none}
  .dtf-eraser-cursor{position:absolute;display:none;z-index:40;pointer-events:none;border:2px solid #0073aa;border-radius:50%;background:rgba(0,111,159,.08);box-shadow:0 0 0 1px #fff,0 1px 5px rgba(0,0,0,.2);box-sizing:border-box}.dtf-eraser-cursor.show{display:block}
  .dtf-compare{position:absolute;inset:0;display:none;z-index:15;pointer-events:none;overflow:hidden}.dtf-compare.show{display:block}.dtf-compare canvas{position:absolute!important;left:0!important;top:0!important}
  .dtf-bottom{margin-top:7px;min-height:28px;display:flex;align-items:center;gap:10px}.dtf-status{flex:1;min-height:22px;line-height:22px;font-size:12px;color:#666;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.dtf-progress{width:270px;height:8px;background:#eee;border-radius:8px;overflow:hidden;display:none}.dtf-progress.show{display:block}.dtf-progress-bar{height:100%;width:0;background:#0073aa;transition:width .15s}.dtf-progress-text{font-size:11px;color:#777;min-width:115px;text-align:right}
  .dtf-error{display:none;margin-top:6px;border:1px solid #e6b6b6;background:#fff5f5;border-radius:8px;padding:8px}.dtf-error.show{display:block}.dtf-error-title{font-weight:700;font-size:12px;color:#a33;display:flex;justify-content:space-between;gap:8px}.dtf-error-log{margin:6px 0 0;max-height:160px;overflow:auto;font:11px/1.4 ui-monospace,Consolas,monospace;white-space:pre-wrap;color:#633}
  .dtf-legacy{display:none!important}
  .dtf-object-badge{position:absolute;right:6px;top:6px;padding:4px 6px;background:rgba(0,0,0,.62);color:#fff;border-radius:5px;font-size:10px;z-index:25;pointer-events:none;display:none}.dtf-object-badge.show{display:block}
  @media(max-width:900px){.dtf-group{border-right:0;border-bottom:1px solid #eee;padding:6px 0 10px;width:100%}.dtf-panel{gap:6px}.dtf-viewport{height:60vh;min-height:360px}}
  @media(max-width:620px){.dtf-tab{padding:9px 12px}.dtf-tool{width:62px}.dtf-range{width:130px}.dtf-progress{width:170px}.dtf-progress-text{min-width:90px}}

  .dtf-workspace-group{min-width:420px;flex:0 0 auto}
  .dtf-workspace-row{display:flex;align-items:center;gap:5px;flex-wrap:nowrap;white-space:nowrap}
  .dtf-label-inline{font-size:12px;color:#555}
  .dtf-mm{font-size:11px;color:#777}
  .dtf-work-number{width:72px!important;min-width:72px!important}
  .dtf-work-apply{height:32px!important;min-width:68px}
  .dtf-help-tab{margin-left:auto}
  .dtf-help-panel{display:none!important}
  .dtf-help-panel.active{display:block!important}
  .dtf-help-layout{width:100%}
  .dtf-help-header{display:flex;justify-content:space-between;align-items:flex-start;margin-bottom:10px}
  .dtf-help-header h3{margin:2px 0 4px;font-size:18px;color:#333}
  .dtf-help-header p{margin:0;color:#777;font-size:12px}
  .dtf-help-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
  .dtf-help-card{border:1px solid #e1e1e1;border-radius:9px;background:#fafafa;padding:11px;box-sizing:border-box}
  .dtf-help-card h4{margin:0 0 7px;font-size:13px;color:var(--dtf-brown)}
  .dtf-help-card p{margin:4px 0;font-size:11px;line-height:1.45;color:#555}
  @media(max-width:760px){
    .dtf-workspace-group{min-width:0;width:100%}
    .dtf-workspace-row{flex-wrap:wrap;white-space:normal}
    .dtf-help-grid{grid-template-columns:1fr}
    .dtf-help-tab{margin-left:0}
  }

  /* ===== Ajustes de layout / ajuda contextual ===== */
  #removeBgPro .dtf-ribbon{width:100%;box-sizing:border-box;overflow:visible}
  #removeBgPro .dtf-panels{width:100%;box-sizing:border-box}
  #removeBgPro .dtf-panel{box-sizing:border-box;width:100%}
  #removeBgPro .dtf-group{box-sizing:border-box}
  #removeBgPro .dtf-workspace-group{min-width:min(100%,620px)!important;flex:1 1 620px}
  #removeBgPro .dtf-workspace-row{display:flex!important;align-items:center!important;gap:6px!important;flex-wrap:nowrap!important;width:100%;box-sizing:border-box}
  #removeBgPro .dtf-work-number{width:86px!important;min-width:86px!important;max-width:86px!important;box-sizing:border-box}
  #removeBgPro .dtf-workspace-row .dtf-work-apply{height:34px!important;min-height:34px!important;white-space:nowrap!important}
  #removeBgPro .dtf-workspace-row .dtf-label-inline{white-space:nowrap!important}
  #removeBgPro .dtf-workspace-row .dtf-mm{white-space:nowrap!important}
  #removeBgPro .dtf-small{display:block;max-width:100%;white-space:normal!important;line-height:1.35!important;margin-top:4px}
  #removeBgPro .dtf-pdf-group,#removeBgPro .dtf-export-bg-group,#removeBgPro .dtf-input-group{flex:1 1 280px;min-width:0}
  #removeBgPro .dtf-pdf-row,#removeBgPro .dtf-bg-row{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important}
  #removeBgPro .dtf-pdf-row select{min-width:90px}
  #removeBgPro .dtf-pdf-row .dtf-secondary{height:34px!important;min-height:34px!important}
  #removeBgPro .dtf-bg-row input[type="color"]{width:40px!important;min-width:40px!important;height:34px!important}
  #removeBgPro .dtf-bg-row label{white-space:nowrap}
  #removeBgPro .dtf-object-fields{display:grid!important;grid-template-columns:repeat(4,minmax(120px,1fr))!important;gap:9px!important;width:100%!important}
  #removeBgPro .dtf-object-field{display:flex!important;flex-direction:column!important;gap:4px!important;min-width:0!important}
  #removeBgPro .dtf-object-field label{font-size:11px!important;font-weight:600!important;color:#666!important}
  #removeBgPro .dtf-object-field input{width:100%!important;min-width:0!important;box-sizing:border-box!important;height:34px!important}
  #removeBgPro .dtf-object-actions{display:flex!important;align-items:center!important;gap:7px!important;flex-wrap:wrap!important;margin-top:8px!important}
  #removeBgPro .dtf-help-panel{padding:12px!important}
  #removeBgPro .dtf-help-layout{width:100%!important}
  #removeBgPro .dtf-help-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;align-items:stretch!important}
  #removeBgPro .dtf-help-card{height:100%!important;box-sizing:border-box!important}
  #removeBgPro .dtf-help-icon{
    width:34px;height:34px;min-width:34px;border-radius:7px;
    display:inline-flex;align-items:center;justify-content:center;
    background:var(--dtf-brown)!important;color:#fff!important;
    font-size:15px;font-weight:800;box-shadow:0 2px 6px rgba(0,0,0,.14)
  }
  #removeBgPro .dtf-help-card-head{display:flex;align-items:center;gap:8px;margin-bottom:7px}
  #removeBgPro .dtf-help-card h4{margin:0!important}
  #removeBgPro .dtf-help-tip{margin-top:7px;padding:7px 8px;border-left:3px solid var(--dtf-brown);background:#fff;border-radius:5px;color:#555;font-size:11px;line-height:1.4}
  #removeBgPro .dtf-help-tip strong{color:#333}
  #removeBgPro .dtf-help-empty{display:none!important}
  @media(max-width:900px){
    #removeBgPro .dtf-workspace-group{min-width:100%!important;flex-basis:100%!important}
    #removeBgPro .dtf-object-fields{grid-template-columns:repeat(2,minmax(120px,1fr))!important}
  }
  @media(max-width:620px){
    #removeBgPro .dtf-workspace-row{flex-wrap:wrap!important}
    #removeBgPro .dtf-object-fields{grid-template-columns:1fr!important}
    #removeBgPro .dtf-help-grid{grid-template-columns:1fr!important}
  }
  .dtf-help-tab::before{content:"?";display:inline-flex;align-items:center;justify-content:center;width:17px;height:17px;margin-right:5px;border-radius:50%;background:var(--dtf-brown);color:#fff;font-size:11px;font-weight:800}
