/* FYLCORA D3: visual-only all-tool workspace polish. No runtime behavior changes. */
/* Public Beta Image tools: preserve input labels, hidden states and processing controls. */
.workspace-page,.legacy-tool{min-width:0}
.workspace-page .crumb,.legacy-tool .crumbs{overflow-wrap:anywhere;line-height:1.65}
.workspace-page .tool-heading,.legacy-tool .tool-title{min-width:0}
.workspace-page .tool-heading>div,.legacy-tool .tool-title>div{min-width:0}
.workspace-page .tool-heading h1,.legacy-tool .tool-title h1{overflow-wrap:anywhere;text-wrap:balance}
.workspace-page .tool-heading p,.legacy-tool .tool-title p{overflow-wrap:anywhere;line-height:1.65}
.workspace-page .work-grid,.legacy-tool .tool-layout{min-width:0}
.workspace-page .work-grid>*,.legacy-tool .tool-layout>*{min-width:0}
.workspace-page .work-panel,.workspace-page .side-box,.legacy-tool .editor-card,.legacy-tool .info-panel{min-width:0}
.workspace-page .work-panel-head{flex-wrap:wrap;row-gap:10px}
.workspace-page .work-panel-head span{white-space:normal;text-align:center;line-height:1.4}
.workspace-page .work-panel-body{min-width:0}
.workspace-page .drop-area{transition:border-color .15s ease,background-color .15s ease;min-width:0;max-width:100%;overflow-wrap:anywhere}
.workspace-page .drop-area strong,.workspace-page .drop-area small{max-width:100%;overflow-wrap:anywhere}
.workspace-page .drop-area:focus-within{outline:3px solid var(--brand);outline-offset:3px}
.workspace-page #controls,.workspace-page .file-result,.workspace-page .result-area{min-width:0;max-width:100%}
.workspace-page .file-result img{flex-shrink:0;max-width:35%}
.workspace-page .field-grid>*{min-width:0}
.workspace-page .field-grid input,.workspace-page .field-grid select{max-width:100%}
.workspace-page #resultArea img{max-width:100%;height:auto}
.workspace-page .work-panel .btn,.workspace-page .work-panel button{max-width:100%;overflow-wrap:anywhere}
.workspace-page .work-panel a.btn{display:inline-flex;justify-content:center;align-items:center;white-space:normal;text-align:center;min-height:44px}
.workspace-page .result-area{overflow-wrap:anywhere}
.workspace-page .work-side,.workspace-page .popular-tool-list,.workspace-page .popular-tool-link{min-width:0}
.workspace-page .popular-tool-copy strong,.workspace-page .popular-tool-copy small{overflow-wrap:anywhere}
/* Legacy staged QA tool fragments. Selectors are deliberately scoped to avoid sitewide regressions. */
.legacy-tool .container{min-width:0}
.legacy-tool .editor-card-header{row-gap:8px}
.legacy-tool .editor-inner{min-width:0;overflow-wrap:anywhere}
.legacy-tool .dropzone,.legacy-tool .upload-dropzone{min-width:0;max-width:100%;overflow-wrap:anywhere;transition:border-color .15s ease}
.legacy-tool .dropzone:focus-within,.legacy-tool .upload-dropzone:focus-within{outline:3px solid var(--indigo);outline-offset:3px}
.legacy-tool input[type=file]{min-width:0;max-width:100%;font-size:13px}
.legacy-tool input:not([type=checkbox]):not([type=radio]):not([type=range]),.legacy-tool textarea,.legacy-tool select{max-width:100%;min-width:0}
.legacy-tool input[type=range]{max-width:100%}
.legacy-tool .editor-actions{min-width:0}
.legacy-tool .editor-actions .btn,.legacy-tool .btn{overflow-wrap:anywhere;min-height:44px;max-width:100%}
.legacy-tool .editor-card :is(img,canvas,video,iframe){max-width:100%;height:auto}
.legacy-tool :is(pre,code){overflow-wrap:anywhere}
.legacy-tool pre{overflow-x:auto;white-space:pre-wrap}
.legacy-tool :is(table,.table-wrap,.table-responsive){max-width:100%}
.legacy-tool :is(.table-wrap,.table-responsive){overflow-x:auto}
.legacy-tool table{border-collapse:collapse}
.legacy-tool .status-note{overflow-wrap:anywhere}
.legacy-tool .info-panel{overflow-wrap:anywhere}
.legacy-tool .tool-guide{min-width:0}
/* Allow user agent hidden and tool state controls to remain authoritative. */
.workspace-page [hidden],.legacy-tool [hidden]{display:none!important}
@media(min-width:801px){.workspace-page .work-grid{grid-template-columns:minmax(0,1fr) minmax(260px,300px)}.legacy-tool .tool-layout{grid-template-columns:minmax(0,1.72fr) minmax(245px,.8fr)}}
@media(max-width:900px){.workspace-page .work-grid{grid-template-columns:minmax(0,1fr)}.workspace-page .work-side{min-width:0}.legacy-tool .tool-layout{grid-template-columns:minmax(0,1fr)}}
@media(max-width:620px){.workspace-page{padding-top:20px;padding-bottom:55px}.workspace-page .crumb{margin-bottom:20px}.workspace-page .tool-heading{gap:12px;margin-bottom:20px}.workspace-page .tool-heading-icon{flex:0 0 48px;min-width:48px;height:48px}.workspace-page .tool-heading h1{font-size:clamp(24px,7vw,31px)}.workspace-page .work-panel-body{padding:16px}.workspace-page .work-panel-head{padding:15px}.workspace-page .drop-area{min-height:205px;padding:22px 13px;gap:10px}.workspace-page .drop-area strong{font-size:17px}.workspace-page .upload-icon{width:52px;height:52px;font-size:29px}.workspace-page .file-result{flex-wrap:wrap;gap:12px}.workspace-page .file-result img{max-width:100%;width:90px;height:76px}.workspace-page .field-grid{grid-template-columns:minmax(0,1fr);gap:13px}.workspace-page .result-area{padding:16px}.workspace-page .side-box{padding:18px}.legacy-tool{padding-top:18px;padding-bottom:44px}.legacy-tool .container{width:calc(100% - 28px)}.legacy-tool .tool-title{gap:10px;margin-bottom:22px}.legacy-tool .tool-glyph{flex:0 0 43px;width:43px;height:43px;font-size:20px}.legacy-tool .tool-title h1{font-size:clamp(23px,7vw,29px)}.legacy-tool .editor-card-header{padding:14px 15px}.legacy-tool .editor-inner{padding:16px}.legacy-tool .info-panel{padding:17px}.legacy-tool .dropzone,.legacy-tool .upload-dropzone{padding:24px 12px;min-height:155px}.legacy-tool .editor-actions{flex-direction:column;align-items:stretch}.legacy-tool .editor-actions .btn{width:100%;min-width:0}}
@media(max-width:360px){.workspace-page .work-panel-body{padding:12px}.legacy-tool .editor-inner{padding:12px}.workspace-page .tool-heading-icon{display:none}.legacy-tool .tool-glyph{display:none}}
@media(prefers-reduced-motion:reduce){.workspace-page .drop-area,.legacy-tool .dropzone,.legacy-tool .upload-dropzone{transition:none}}
