/* ClosePDF – shared upload skin. Strictly scoped to marked original upload layout. */
#tool-layout[data-cpui="blue"]{--cpui-ink:#16294e;--cpui-blue:#205a9c;grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"heading" "badge" "zone" "cloud" "hint" "actions" "values"!important;gap:16px 20px!important;margin:0!important;font-family:inherit;color:var(--cpui-ink);text-align:left;min-width:0;box-sizing:border-box}
#tool-layout[data-cpui="blue"]:has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"])) {grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr)!important;grid-template-areas:"heading heading" "badge badge" "zone cloud" "hint hint" "actions actions" "values values"!important}
#tool-layout[data-cpui="blue"]> .tool-heading{grid-area:heading;order:1;display:flex;justify-content:center;text-align:center;min-width:0;margin:0!important}
#tool-layout[data-cpui="blue"] .tool-hero-copy{max-width:100%;text-align:center;width:100%}
#tool-layout[data-cpui="blue"] .title{font-family:inherit!important;font-size:clamp(30px,3.3vw,42px)!important;letter-spacing:-.035em!important;font-weight:750!important;line-height:1.15!important;color:var(--cpui-ink)!important;margin:0 0 8px!important;text-align:center!important}
#tool-layout[data-cpui="blue"] .subtitle{font-family:inherit!important;font-size:clamp(14px,1.5vw,17px)!important;line-height:1.6!important;color:#53627c!important;margin:0!important;text-align:center!important}
#tool-layout[data-cpui="blue"]>.card-header-badge{grid-area:badge;order:2;justify-content:center!important;align-items:center;align-self:center;justify-self:center;margin:-5px 0 2px!important;text-align:center}
#tool-layout[data-cpui="blue"] .badge{color:#136973!important;background:#edf8f8!important;border:1px solid #d1e8e9!important;border-radius:999px!important;font-size:10px!important;letter-spacing:.07em!important;padding:5px 11px!important;box-shadow:none!important;line-height:1.5!important}
#tool-layout[data-cpui="blue"]>.upload-zone{grid-area:zone;order:3;min-width:0;box-sizing:border-box;border:2px dashed #bdcfed!important;border-radius:18px!important;min-height:260px!important;background:linear-gradient(145deg,#f7faff,#edf4ff)!important;padding:28px 20px!important;align-items:center;justify-content:center;box-shadow:none!important;text-align:center}
#tool-layout[data-cpui="blue"]>.upload-zone:hover,#tool-layout[data-cpui="blue"]>.upload-zone.dragover{background:#edf5ff!important;border-color:#779ed0!important}
#tool-layout[data-cpui="blue"] .upload-content-wrapper{width:100%;align-items:center;justify-content:center;text-align:center}
#tool-layout[data-cpui="blue"] .upload-icon-small{width:44px!important;height:44px!important;color:#2863a0!important;stroke:currentColor}
#tool-layout[data-cpui="blue"] .upload-text,#tool-layout[data-cpui="blue"] .upload-text strong{font-size:15px!important;color:#16294e!important;font-weight:500!important}
#tool-layout[data-cpui="blue"] .browse-btn{font-family:inherit!important;box-sizing:border-box;display:inline-flex;align-items:center;justify-content:center;gap:8px;min-width:205px;max-width:100%;padding:15px 34px!important;font-size:17px!important;line-height:1.35!important;color:#fff!important;background:linear-gradient(135deg,#2869ad,#174b89)!important;border:1px solid #195491!important;border-radius:12px!important;box-shadow:0 7px 16px #174b8928!important;font-weight:700!important;text-align:center;cursor:pointer}
#tool-layout[data-cpui="blue"] .browse-btn:hover:not(:disabled){background:linear-gradient(135deg,#3477be,#215b9b)!important}
#tool-layout[data-cpui="blue"] .browse-btn:focus-visible,#tool-layout[data-cpui="blue"] .cloud-provider-btn:focus-visible{outline:3px solid #89b8f0;outline-offset:3px}
#tool-layout[data-cpui="blue"]>.cloud-panel{grid-area:cloud;order:4;min-width:0;box-sizing:border-box;flex-direction:column;justify-content:center;gap:12px;padding:18px 16px!important;border:1px solid #dce5f2!important;border-radius:18px!important;background:#fff!important;box-shadow:none!important}
#tool-layout[data-cpui="blue"]>.cloud-panel[hidden]{display:none!important}
#tool-layout[data-cpui="blue"] .cloud-panel-title{display:flex;gap:8px;align-items:center;font-size:15px!important;line-height:1.4;font-weight:700;color:#16294e!important;margin:0 0 8px!important}
#tool-layout[data-cpui="blue"] .cloud-integrations{display:flex;flex-direction:column;gap:12px}
#tool-layout[data-cpui="blue"] .cloud-provider-btn{width:100%;min-height:48px;padding:10px 12px!important;display:flex;align-items:center;gap:10px;border:1px solid #d2dae7!important;border-radius:10px!important;background:#fff!important;box-shadow:none!important;color:#16294e!important;text-align:left}
#tool-layout[data-cpui="blue"] .cloud-provider-btn span{font-family:inherit;font-size:13px!important;font-weight:650;color:inherit}
#tool-layout[data-cpui="blue"] .cloud-provider-btn:hover:not(:disabled){border-color:#8caddc!important;background:#f0f6ff!important}
#tool-layout[data-cpui="blue"] .cloud-privacy{display:flex;gap:8px;align-items:flex-start;margin-top:2px;background:#effbf4!important;border:1px solid #bbebcd!important;border-left:4px solid #22c55e!important;border-radius:10px;padding:10px 9px!important;color:#166534!important;font-size:12px!important;line-height:1.45}
#tool-layout[data-cpui="blue"] .cloud-privacy svg{flex:none}
#tool-layout[data-cpui="blue"]>.upload-local-hint{grid-area:hint;order:5;text-align:center!important;justify-self:stretch;font-size:13px!important;line-height:1.5;color:#60718a!important;margin:8px 0 0!important}
/* Preserve both Merge actions. Never force visibility or submission behavior. */
#tool-layout[data-cpui="blue"]>.form-actions{grid-area:actions;order:6;justify-content:center;min-width:0}
#tool-layout[data-cpui="blue"]>.cp-brand-values{grid-area:values;order:7;width:100%;margin:0!important;padding-top:14px!important}
/* Only style the upload wrapper when the original workspace has not been activated. */
#main-form-card:has(#tool-layout[data-cpui="blue"]):not(:has(#tool-layout[hidden],#tool-layout[style*="display:none"],#tool-layout[style*="display: none"])):not(.has-file,.has-files,.has-result,.workspace-active){border-radius:22px;border-color:#e7ebf3;box-sizing:border-box;background:#fff}
@media(min-width:851px){#main-form-card:has(#tool-layout[data-cpui="blue"]):not(:has(#tool-layout[hidden],#tool-layout[style*="display:none"],#tool-layout[style*="display: none"])):not(.has-file,.has-files,.has-result,.workspace-active){padding:clamp(18px,3.2vw,36px)}}
@media(max-width:850px){#tool-layout[data-cpui="blue"],#tool-layout[data-cpui="blue"]:has(>.cloud-panel:not([hidden])){grid-template-columns:minmax(0,1fr)!important;grid-template-areas:"heading" "badge" "zone" "cloud" "hint" "actions" "values"!important;gap:12px!important}#tool-layout[data-cpui="blue"] .title{font-size:clamp(27px,6vw,36px)!important}#tool-layout[data-cpui="blue"]>.upload-zone{min-height:220px!important;padding:20px 10px!important;width:100%}#tool-layout[data-cpui="blue"]>.cloud-panel{width:100%;padding:14px!important}#tool-layout[data-cpui="blue"] .browse-btn{min-width:180px;padding:13px 24px!important}#tool-layout[data-cpui="blue"]>.cp-brand-values{margin-top:4px!important}}
/* Collapse unused grid rows (Edit has no merge actions; the cloud panel may be disabled). */
#tool-layout[data-cpui="blue"]:not(:has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"]))){grid-template-areas:"heading" "badge" "zone" "hint" "actions" "values"!important}
#tool-layout[data-cpui="blue"]:not(:has(>.form-actions)):not(:has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"]))){grid-template-areas:"heading" "badge" "zone" "hint" "values"!important}
@media(min-width:851px){#tool-layout[data-cpui="blue"]:not(:has(>.form-actions)):has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"])){grid-template-areas:"heading heading" "badge badge" "zone cloud" "hint hint" "values values"!important}}
@media(max-width:850px){#tool-layout[data-cpui="blue"]:not(:has(>.form-actions)):has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"])){grid-template-areas:"heading" "badge" "zone" "cloud" "hint" "values"!important}}

/* CPVE202-EDIT-HEADING-BEGIN | Edit PDF only, shared design asset */
/* Reuses the existing two-column grid. Never changes tools or PDF engines. */
@media(min-width:851px){
  body:has(#editor-panel) #tool-layout[data-cpui="blue"]:has(>.cloud-panel:not([hidden]):not([style*="display:none"]):not([style*="display: none"])){
    grid-template-columns:minmax(0,1.7fr) minmax(265px,1fr)!important;
    grid-template-areas:"heading badge" "zone cloud" "hint hint" "actions actions" "values values"!important;
    align-items:center!important;
  }
  body:has(#editor-panel) #tool-layout[data-cpui="blue"]>.tool-heading{
    justify-content:flex-start!important;
    align-items:center!important;
    text-align:left!important;
    margin:0!important;
  }
  body:has(#editor-panel) #tool-layout[data-cpui="blue"] .tool-hero-copy,
  body:has(#editor-panel) #tool-layout[data-cpui="blue"] .title,
  body:has(#editor-panel) #tool-layout[data-cpui="blue"] .subtitle{
    text-align:left!important;
  }
  body:has(#editor-panel) #tool-layout[data-cpui="blue"]>.card-header-badge{
    justify-content:center!important;
    justify-self:center!important;
    align-self:center!important;
    text-align:center!important;
    margin:0!important;
  }
}
/* CPVE202-EDIT-HEADING-END */
