/* PDF workflow: remove nested vertical scrollbars and keep everyday tasks
   above the fold without hiding essential settings or large-document controls. */
@media screen{
  #work.pdf-workspace > .back{margin:3px 0 7px;font-size:12px}
  #work.pdf-workspace > .tool-head{padding:10px 13px;margin:0 0 9px;min-height:0;gap:10px}
  #work.pdf-workspace .tool-head .badge{transform:scale(.83);transform-origin:left center;margin-right:-6px}
  #work.pdf-workspace .tool-head h1{font-size:clamp(20px,2vw,27px);margin:2px 0}
  #work.pdf-workspace .tool-head p{font-size:12px;line-height:1.25;margin:2px 0}
  #work.pdf-workspace > .panel{padding:12px 14px;max-height:none!important;overflow:visible!important;margin-bottom:8px}
  #work.pdf-workspace .panel h2{margin:0 0 8px;font-size:17px}
  #work.pdf-workspace .panel-heading{margin-bottom:8px}
  #work.pdf-workspace .fields{gap:7px 11px}
  #work.pdf-workspace .field{gap:3px}
  #work.pdf-workspace .field :is(input,select){min-height:37px}
  #work.pdf-workspace .actions{margin:9px 0 4px}
  #work.pdf-workspace .drop-tile{padding:9px 12px;display:flex;justify-content:center;align-items:center;flex-wrap:wrap;gap:7px;min-height:57px}
  #work.pdf-workspace .drop-tile .drop-icon{width:26px;height:26px;font-size:17px}
  #work.pdf-workspace .drop-tile strong{font-size:13px}
  #work.pdf-workspace .drop-tile small{font-size:10px}
  #work.pdf-workspace .drop-tile input[type=file]{font-size:10px;max-width:190px}
  #work.pdf-workspace .focus-settings{gap:8px;margin:8px 0}
  #work.pdf-workspace .focused-panel .focus-toolbar{margin:6px 0}
  #work.pdf-workspace .image-queue{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:6px;padding:6px;max-height:none;overflow:visible}
  #work.pdf-workspace .queue-item{padding:5px}
  #work.pdf-workspace .queue-item img{height:60px;object-fit:contain}
  #work.pdf-workspace .queue-item>div:not(.queue-actions){margin:4px 0}
  #work.pdf-workspace .queue-actions .btn{padding:3px 5px;font-size:10px}
  #work.pdf-workspace .pdf-collapsible-preview, #work.pdf-workspace .pdf-quick-preview{margin-top:9px;padding:0;border:1px solid #cbdce7;border-radius:9px;background:#f5f9fc;color:#25445b}
  #work.pdf-workspace .pdf-collapsible-preview summary,#work.pdf-workspace .pdf-quick-preview summary{cursor:pointer;padding:9px 12px;font-size:12px;font-weight:800}
  #work.pdf-workspace .pdf-collapsible-preview iframe,#work.pdf-workspace .pdf-quick-preview iframe{width:100%;height:min(57vh,440px);min-height:280px;border:0;border-top:1px solid #d0e1e9;margin:0;background:#fff}
  #work.pdf-workspace .result:not([hidden]){align-self:start}
  #work.pdf-workspace .placeholder-body{min-height:90px;padding:13px}
  #work.pdf-workspace .result-placeholder .placeholder-body{min-height:90px}
  #work.pdf-workspace .pdf-quick{display:block;width:100%;min-height:0}
  #work.pdf-workspace .pdf-quick-title{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:0 0 10px;font-size:14px}
  #work.pdf-workspace .pdf-quick-title span{font-size:11px;color:#527b70}
  #work.pdf-workspace .pdf-quick-main{display:grid;grid-template-columns:1.18fr 1fr;gap:14px;align-items:stretch}
  #work.pdf-workspace .pdf-quick-upload{align-content:center;min-height:105px}
  #work.pdf-workspace .pdf-quick-target{min-width:0}
  #work.pdf-workspace .pdf-quick-target>label{display:flex;justify-content:space-between;gap:7px;font-size:13px;font-weight:800;margin-bottom:6px;color:inherit}
  #work.pdf-workspace .pdf-quick-target>label small{font-weight:550;font-size:10px;color:#66899b}
  #work.pdf-workspace .pdf-quick-target>input{width:100%;min-height:37px;border:1px solid #bbd1da;border-radius:8px;padding:7px 9px;color:#173b46;background:#fff;font-weight:800}
  #work.pdf-workspace .pdf-target-buttons{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:5px;margin-top:7px}
  #work.pdf-workspace .pdf-target-buttons button{border:1px solid #b7dcd2;background:#f1faf7;color:#0e7263;border-radius:7px;padding:6px 3px;font-size:11px;font-weight:750;white-space:nowrap}
  #work.pdf-workspace .pdf-target-buttons button.active{background:#0e917c;color:white;border-color:#0e917c}
  #work.pdf-workspace .pdf-advanced{border:1px solid #c6e0de;border-radius:8px;margin:10px 0 7px;background:#f6fbfa;font-size:12px;color:#315963}
  #work.pdf-workspace .pdf-advanced summary{cursor:pointer;padding:8px 12px;font-weight:800}
  #work.pdf-workspace .pdf-advanced label{display:inline-flex;align-items:center;gap:6px;margin:7px 12px}
  #work.pdf-workspace .pdf-advanced p{margin:5px 12px 10px;font-size:11px;line-height:1.45}
  #work.pdf-workspace .pdf-quick-footer{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
  #work.pdf-workspace .pdf-quick-footer .status{margin:4px 0;flex:1 1 225px;font-size:12px}
  #work.pdf-workspace .pdf-quick-result{padding:12px 14px}
  #work.pdf-workspace .pdf-quick-metrics{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:6px;margin:10px 0}
  #work.pdf-workspace .pdf-quick-metrics span{display:flex;flex-direction:column;background:#ebf7f4;border:1px solid #ceebe3;color:#14584e;border-radius:8px;gap:3px;padding:9px 8px;min-width:0;overflow-wrap:anywhere}
  #work.pdf-workspace .pdf-quick-metrics small{font-size:10px;color:#507b75}
  #work.pdf-workspace .pdf-quick-metrics strong{font-size:12px}
}
@media(max-width:1000px){#work.pdf-workspace .pdf-quick-metrics{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:600px){#work.pdf-workspace .pdf-quick-main{grid-template-columns:1fr}#work.pdf-workspace .pdf-quick-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}#work.pdf-workspace .pdf-target-buttons{gap:3px}#work.pdf-workspace .pdf-target-buttons button{font-size:9px;padding:7px 1px}#work.pdf-workspace .pdf-quick-footer .btn{flex:1}}
