/* CTR SUITE compact responsive layout. Scoped to application UI, not PDF output. */
body{font-size:13px}
.topbar .shell{height:58px;max-width:1024px}
.brand{font-size:17px;gap:8px;letter-spacing:-.4px}.brand small{font-size:9px;letter-spacing:1.2px}.ctr-brand-logo{width:32px;height:32px}.secure{padding:7px 10px;font-size:11px}
main.shell{max-width:1024px;padding:0 24px}
.ctr-clean-heading{padding:20px 0 8px}.ctr-clean-heading h1{font-size:26px;letter-spacing:-.65px;margin-bottom:6px}.ctr-clean-heading p{font-size:12px;line-height:1.5}
.ctr-step-hint{margin:12px 0 0;font-size:11px;line-height:1.5}
.ctr-main-tabs{max-width:760px;margin:10px auto 16px;gap:4px;padding:4px;border-radius:12px}.ctr-main-tabs button{font-size:12px;min-height:40px;padding:9px 10px;border-radius:9px}
.ctr-clean-layout{max-width:760px;padding-bottom:0}.ctr-clean-layout>[data-ctr-panel]{margin-bottom:14px}
.ctr-clean-layout .workspace,.ctr-clean-layout .tools,.ctr-clean-layout .v4-panel{padding:20px;border-radius:14px!important}
#toolTitle,.tools h2,.v4-panel h2,.v6 h2{font-size:18px;line-height:1.3;letter-spacing:-.3px}
.workspace .intro{font-size:12px;line-height:1.5;margin:6px 0 16px}.tools>p,.v4-panel>p,.v6>p{font-size:12px;line-height:1.55;margin:6px 0 12px}
.selector{grid-template-columns:minmax(0,1fr) 40px minmax(0,1fr);gap:8px}.field label{font-size:11px;margin-bottom:6px}.field select{height:42px;font-size:12px;border-radius:9px;padding:0 28px 0 10px}.switch{height:42px;font-size:20px;border-radius:9px}
.drop{margin-top:14px;min-height:150px;padding:16px;border-radius:12px}.uploadIcon{width:36px;height:36px;border-radius:10px;font-size:22px;margin-bottom:8px}.drop strong{font-size:13px;line-height:1.4}.drop span{font-size:11px;margin-top:4px}.choose{margin-top:10px;font-size:12px;min-height:40px;padding:9px 14px;border-radius:9px}
.file{margin-top:10px;padding:10px 12px;border-radius:10px;min-width:0}.file>div{min-width:0}.filename{font-size:12px;line-height:1.4}.filesize{font-size:11px}.remove{min-width:44px;min-height:40px;font-size:12px;flex-shrink:0}
.actions{flex-direction:row;align-items:center;gap:12px;margin-top:14px}.note{font-size:11px}.convert{min-height:42px;width:auto;font-size:12px;padding:10px 16px;border-radius:9px;white-space:normal;line-height:1.4}.status,.toolstatus,.v4-status,.v6-status{font-size:12px;line-height:1.5;margin-top:10px}.status:empty,.toolstatus:empty,.v4-status:empty,.v6-status:empty{display:none}
.ctr-clean-layout #pdfTools .tooltabs{gap:6px;margin-bottom:12px}.tooltab{min-height:40px;padding:9px 8px;font-size:12px;border-radius:9px}.toolbody{padding:14px;border-radius:11px}.toolbody h3{font-size:14px;line-height:1.4}.toolbody p{font-size:12px;margin:6px 0 12px}
.toolbody input[type=file],.v4-panel input[type=file],.v6 input[type=file]{padding:9px;font-size:12px;border-radius:9px;min-height:44px}.toolbody input[type=file]::file-selector-button,.v4-panel input[type=file]::file-selector-button,.v6 input[type=file]::file-selector-button{font:inherit;min-height:32px;padding:6px 10px;background:#fff;color:#1d4ed8;border:1px solid #cad7eb;border-radius:7px;margin-right:8px;cursor:pointer}
.toolgrid,.v4-grid,.v6-grid{gap:10px;margin:12px 0;grid-template-columns:repeat(2,minmax(0,1fr))}.toolgrid label,.v4-grid label,.v6 label{min-width:0;font-size:11px;line-height:1.5}.toolgrid input,.toolgrid select,.v4-grid select,.v6 select{min-height:42px;font-size:12px;padding:9px;margin-top:5px;max-width:100%;border-radius:9px}
.v4-disclaimer{padding:10px 12px;font-size:11px;line-height:1.6;margin:12px 0;border-radius:9px}.fineprint{font-size:11px;line-height:1.6;margin-top:10px}
.ctr-advanced{max-width:760px;font-size:12px;margin-bottom:20px}.ctr-advanced>summary{padding:12px 14px;min-height:44px;font-size:12px}.ctr-advanced[open]>summary{margin-bottom:12px}.ctr-advanced .v6{padding:18px;margin-bottom:12px;border-radius:14px!important}.v6 button{font-size:12px;min-height:40px;padding:9px 12px;border-radius:9px}.v6-actions{gap:8px}.v6-history{font-size:11px}.v6-history th,.v6-history td{padding:9px}.v6-preview{padding:10px;max-height:280px}
#ctrResult{max-width:760px;margin-top:12px;padding:10px 12px;font-size:12px;border-radius:10px;gap:8px}#ctrResult a{min-height:36px;display:flex;align-items:center;max-width:100%}
.ctr-preview{max-width:760px;padding:16px;margin:14px auto;border-radius:14px!important}.ctr-preview h2{font-size:16px}.ctr-preview-meta,.ctr-preview-message{font-size:11px}.ctr-preview-head{gap:10px}.ctr-preview-head .choose{margin:0}.ctr-preview-toolbar{gap:6px;margin:12px 0}.ctr-preview-toolbar button{font-size:11px;min-width:40px;min-height:40px;padding:8px 10px}.ctr-preview-toolbar span{font-size:11px}.ctr-preview-viewer{padding:10px;max-height:50vh;min-height:80px}
.footer{font-size:11px;padding:0 12px 18px}.v7-toast{font-size:12px;padding:11px 14px;max-width:min(380px,calc(100vw - 24px))}
/* Touch controls retain a 44 px target while spacing stays compact. */
@media(pointer:coarse){.ctr-main-tabs button,.switch,.choose,.convert,.remove,.tooltab,.v6 button,.ctr-preview-toolbar button{min-height:44px}.field select,.toolgrid input,.toolgrid select,.v4-grid select,.v6 select{min-height:44px}}
/* Tablet: centered work area and paired settings. */
@media(min-width:601px) and (max-width:1023px){main.shell{padding:0 20px}.topbar .shell{height:56px}.ctr-clean-heading{padding-top:18px}.ctr-clean-heading h1{font-size:24px}.ctr-clean-layout .workspace,.ctr-clean-layout .tools,.ctr-clean-layout .v4-panel{padding:18px}.drop{min-height:142px}.ctr-clean-layout #pdfTools .tooltabs{grid-template-columns:repeat(4,minmax(0,1fr))}.v4-grid,.toolgrid,.v6-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Mobile: one work panel, paired format fields, full-width main action. */
@media(max-width:600px){main.shell,.topbar .shell{padding-left:12px;padding-right:12px}.topbar .shell{height:52px}.brand{font-size:16px}.ctr-brand-logo{width:29px;height:29px}.brand small{font-size:8px}.secure{display:none}.ctr-step-hint{font-size:10px;margin-top:10px;max-width:350px;margin-left:auto;margin-right:auto}.ctr-clean-heading{padding:14px 0 6px}.ctr-clean-heading h1{font-size:22px;letter-spacing:-.5px}.ctr-clean-heading p{font-size:12px}.ctr-main-tabs{margin:9px auto 12px;gap:3px}.ctr-main-tabs button{font-size:11px;padding:8px 3px}.ctr-clean-layout .workspace,.ctr-clean-layout .tools,.ctr-clean-layout .v4-panel{padding:14px;border-radius:12px!important}#toolTitle,.tools h2,.v4-panel h2,.v6 h2{font-size:17px}.workspace .intro{margin-bottom:12px}.selector{grid-template-columns:minmax(0,1fr) 36px minmax(0,1fr);gap:6px}.field select{font-size:12px;padding-left:7px;padding-right:18px}.field label{font-size:11px}.drop{min-height:136px;padding:12px;margin-top:12px}.uploadIcon{width:30px;height:30px;font-size:20px;margin-bottom:6px}.drop strong{font-size:12px}.drop span{font-size:11px}.choose{margin-top:8px}.actions{flex-direction:column;align-items:stretch;gap:8px;margin-top:12px}.actions .note{font-size:10px}.convert,.actions .convert{font-size:12px;width:100%;min-height:44px}.ctr-clean-layout #pdfTools .tooltabs{grid-template-columns:repeat(2,minmax(0,1fr));gap:5px}.toolbody{padding:11px}.toolgrid{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}.v4-grid,.v6-grid{grid-template-columns:minmax(0,1fr);gap:8px}.v4-grid select,.v6 select{margin-bottom:0}.v4-disclaimer{font-size:11px;padding:9px 10px}.ctr-advanced .v6{padding:14px}.ctr-advanced>summary{font-size:11px;line-height:1.5;padding:11px 12px}.ctr-preview{padding:12px}.ctr-preview h2{font-size:15px}.ctr-preview-toolbar{gap:5px}.ctr-preview-toolbar button{padding:7px 8px}.ctr-preview-toolbar .ctr-preview-save{width:100%}.v7-toast{bottom:10px;right:12px}#ctrResult{font-size:11px}.footer{padding-bottom:16px}}
@media(max-width:359px){.ctr-clean-heading h1{font-size:20px}.field select{font-size:11px}.toolgrid{grid-template-columns:minmax(0,1fr)}}
@media(prefers-reduced-motion:reduce){html{scroll-behavior:auto}*{transition:none!important}}

.format-hint{font-size:11px;color:#64748b;line-height:1.5;margin:10px 0 0}.format-hint:empty{display:none}.switch:disabled{opacity:.35;cursor:not-allowed}
