/* Shared layout safety for Portuguese and English. */
.header-inner,.main-shell,footer{min-width:0}.header-inner>.brand{flex-shrink:0}.header-utilities{margin-left:auto}.hero>*,.tool-layout>*,.tool-guide>*,.fields>*,.tools-grid>*,.task-grid>*,.section-title>*{min-width:0}.breadcrumbs{flex-wrap:wrap;overflow-wrap:anywhere}.tool-heading h1,.workspace h2,.workspace h3,.tool-aside,.faqs,.editorial-note{overflow-wrap:anywhere}.workspace input,.workspace select,.workspace textarea{min-width:0;max-width:100%}.workspace textarea{width:100%;resize:vertical}.workspace input[type=checkbox],.workspace input[type=radio]{width:auto;flex-shrink:0}.workspace img,.workspace video,.workspace canvas{max-width:100%;height:auto}.workspace audio,.workspace iframe{max-width:100%}.workspace pre{max-width:100%;overflow:auto}.workspace table{display:block;max-width:100%;overflow:auto}.filter-tabs{max-width:100%;overflow-x:auto;overscroll-behavior-inline:contain}.file-list,.file-list>*{min-width:0}.file-list span,.file-name{overflow-wrap:anywhere}.result-grid{grid-template-columns:repeat(auto-fit,minmax(min(100%,160px),1fr))}footer nav{flex-wrap:wrap}.install-actions .button{max-width:100%;white-space:normal;text-align:center}
@media(min-width:551px) and (max-width:1000px){.header-inner{flex-wrap:wrap;column-gap:16px;row-gap:12px}.header-inner>.brand{order:0}.header-utilities{order:1}.header-inner nav{order:2;flex-basis:100%;justify-content:center;flex-wrap:wrap;gap:12px 24px}.hero{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:28px}.hero h1{font-size:clamp(38px,6vw,58px);letter-spacing:-2px}.hero-actions{flex-wrap:wrap}.task-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:480px){.main-shell{padding-left:16px;padding-right:16px}.header-inner{padding:14px 16px;gap:8px}.workspace{padding:18px}.fields{grid-template-columns:minmax(0,1fr)}.tool-heading h1{font-size:clamp(25px,7vw,32px);line-height:1.2}.social-result{flex-wrap:wrap}.social-result p{flex-basis:100%}.hero h1{font-size:clamp(38px,11vw,52px);letter-spacing:-2px}.hero-search{max-width:100%;min-width:0}.editorial-note{padding:26px 18px}.tool-guide{gap:24px}.install-actions{align-items:stretch}.install-actions a{text-align:center}}
@media(max-width:360px){.header-inner{padding-left:12px;padding-right:12px;gap:6px}.header-inner .brand{font-size:14px;gap:6px}.header-utilities{gap:4px}.header-utilities .free-badge{padding:5px;font-size:9px;gap:4px}.language-switch{font-size:10px;padding:5px;gap:4px}.language-flag{width:16px;height:11px}.hero-actions{gap:12px}.task-card{padding:18px}.task-card strong{font-size:16px}}
@media(min-width:2000px){.header-inner,.main-shell{max-width:1440px}}

.editorial-note .install-intro,.editorial-note .install-actions,.editorial-note #install-status,.editorial-note #install-help{grid-column:1/-1}.editorial-note .install-actions{justify-content:flex-start;margin:4px 0 0}.editorial-note #install-help{max-width:none;margin:8px 0 0}.editorial-note #install-status:empty{display:none}.editorial-note .install-intro{margin-bottom:0}

@media(max-height:500px) and (max-width:1000px){.site-header{position:static}html{scroll-padding-top:16px}}

.color-picker{display:block;max-width:100%;cursor:crosshair;border:1px solid #ccd5dd;border-radius:12px;margin:12px 0}.color-picker[hidden]{display:none}.brush-canvas{display:block;width:100%;touch-action:none;cursor:crosshair;border:1px solid #ccd5dd;border-radius:12px}.portrait-editor{width:100%;min-width:0}.portrait-editor .actions{flex-wrap:wrap}.portrait-editor input[type=range]{width:100%}.portrait-editor canvas{margin:12px 0}.portrait-editor .button{white-space:normal}
