/* Lote 2: apenas os três pilotos. Tokens, controles e processamento preservados. */
.ux-pilot .tool-hero{padding:32px 0 28px;background:linear-gradient(180deg,#f8fafc,#eff6ff)}
.ux-pilot .tool-hero h1{font-size:clamp(2rem,4.4vw,3.1rem)}
.ux-pilot .tool-category{color:var(--primary)}
.ux-pilot .menu-toggle{display:none;border:0;background:transparent;padding:10px;min-width:44px;min-height:44px;margin-left:auto;cursor:pointer}
.ux-pilot .menu-toggle span{display:block;width:22px;height:2px;margin:4px 0;background:#334155}
.ux-pilot .tool-main{padding-top:24px;padding-bottom:48px}
.ux-pilot .tool-workspace{max-width:1040px;padding:28px;border-radius:18px}
.pilot-journey{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;list-style:none;margin:0 0 18px;padding:0;counter-reset:journey}
.pilot-journey li{display:flex;gap:10px;align-items:center;min-width:0;padding:12px;border:1px solid var(--border);border-radius:12px;background:#f8fafc;color:#475569;font-size:.86rem;font-weight:700;counter-increment:journey}
.pilot-journey li:before{content:counter(journey);display:grid;place-items:center;flex:none;width:28px;height:28px;border-radius:50%;background:#e2e8f0;color:#334155}
.pilot-journey [aria-current=step]{border-color:#93c5fd;background:#eff6ff;color:#1e40af}
.pilot-journey [aria-current=step]:before{background:#2563eb;color:#fff}
.pilot-toolbar{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:44px;margin-bottom:22px}
.pilot-state{display:inline-flex;align-items:center;gap:8px;color:#334155;font-size:.86rem;font-weight:700}
.pilot-state:before{content:"";width:9px;height:9px;flex:none;border-radius:50%;background:#94a3b8}
[data-ux-phase=processing] .pilot-state:before{background:#2563eb;box-shadow:0 0 0 4px #dbeafe}
[data-ux-phase=ready] .pilot-state:before,[data-ux-phase=success] .pilot-state:before{background:#15803d}
[data-ux-phase=error] .pilot-state:before{background:#b91c1c}
.pilot-help{border:1px solid #bfdbfe;border-radius:10px;background:white;color:#1e40af;min-height:44px;padding:9px 14px;cursor:pointer;font:inherit;font-size:.85rem;font-weight:700}
.pilot-help[hidden]{display:none}
.pilot-section-title{margin:0 0 8px;font-size:1.15rem;line-height:1.35;letter-spacing:-.02em}
.pilot-note{margin:0 0 18px;color:#475569;font-size:.9rem;line-height:1.6}
.pilot-next{margin:16px 0 0;padding:14px 16px;border-left:3px solid #2563eb;background:#fff;border-radius:0 10px 10px 0;color:#334155;font-size:.88rem;text-align:left}
.pilot-next a{color:#1e40af;text-underline-offset:3px}
.pilot-retained{display:none}
[data-ux-pilot=image][data-ux-phase=error] .pilot-retained{display:block;padding:12px 14px;border:1px solid #fcd34d;border-radius:10px;background:#fffbeb;color:#92400e;font-size:.88rem}
.ux-pilot .tool-upload-zone{min-height:205px;padding:24px;background:linear-gradient(135deg,#fff,#eff6ff)}
.ux-pilot .tool-upload-zone small{color:#475569}
.ux-pilot .tool-upload-zone:focus-visible{outline:3px solid #2563eb;outline-offset:4px}
.ux-pilot .tool-form,.ux-pilot .tool-control-panel{background:#fff}
.ux-pilot .tool-form-layout{grid-template-columns:minmax(0,1.05fr) minmax(0,1fr);align-items:start}
.ux-pilot .tool-output{min-height:440px;background:#eff6ff;border-color:#bfdbfe;justify-content:flex-start}
/* Não alterar padding/escala do #qrcode: o exportador usa esses valores. */
.ux-pilot .qr-code-surface{min-height:280px;width:280px;max-width:100%;box-sizing:border-box}
.ux-pilot .tool-image-frame{min-height:280px;background:repeating-conic-gradient(#f1f5f9 0% 25%,#fff 0% 50%) 50% / 24px 24px}
.ux-pilot .tool-image-frame img{width:auto;max-width:100%;height:auto;max-height:420px}
.ux-pilot .tool-result,.ux-pilot .pdf-wave-result{padding:24px;border:1px solid #93c5fd;border-radius:16px;background:#eff6ff}
.ux-pilot .tool-result .panel-heading h2,.ux-pilot .pdf-wave-result h2{color:#1e40af}
.ux-pilot .pdf-wave-options:empty{display:none}
.pilot-input-block{margin-bottom:24px}
.pilot-order-block{padding:22px;border:1px solid var(--border);border-radius:16px;background:#f8fafc}
.ux-pilot .pdf-wave-list:empty:after{content:"A lista e os controles de ordem aparecem após a seleção.";display:block;padding:20px;border:1px dashed #cbd5e1;border-radius:10px;color:#475569;font-size:.88rem}
.ux-pilot .pdf-wave-list button{min-height:44px;color:#1e40af;cursor:pointer}
.ux-pilot .pdf-wave-list button:disabled{color:#64748b;cursor:default;opacity:.6}
.ux-pilot .pdf-poc-actions{display:flex;flex-wrap:wrap;gap:10px;margin-top:18px}
.ux-pilot .pdf-wave-status,.ux-pilot #toolStatus,.ux-pilot #qrStatus{padding:14px 16px;border:1px solid #cbd5e1;border-radius:12px;background:#f8fafc;color:#334155;line-height:1.5;min-height:52px}
.ux-pilot [data-state=processing],.ux-pilot [data-state=loading]{border-color:#93c5fd!important;background:#eff6ff!important;color:#1e40af!important}
.ux-pilot [data-state=error]{border-color:#fca5a5!important;background:#fef2f2!important;color:#991b1b!important}
.ux-pilot [data-state=success]{border-color:#86efac!important;background:#f0fdf4!important;color:#166534!important}
.ux-pilot .button:disabled{cursor:not-allowed}
.ux-pilot :focus-visible{outline:3px solid #2563eb;outline-offset:3px}
.ux-pilot .tool-editor{margin-top:24px}
.ux-pilot .tool-info-section{padding-block:28px}
.ux-pilot .tool-benefits{background:#eff6ff;color:#0f172a}
.ux-pilot .tool-benefits article{background:#fff;border-color:#dbeafe}
.ux-pilot .tool-benefits p{color:#475569}
.ux-pilot .tool-benefits article>span{background:#eff6ff;color:#1e40af}
.ux-pilot .tool-button-row .button{flex-basis:140px}
.ux-pilot .tool-main p,.ux-pilot .tool-main h2{overflow-wrap:anywhere}
.ux-pilot.doc-preview-active .tool-main{scroll-margin-bottom:90px}
@media(max-width:960px){.ux-pilot .menu-toggle{display:block}.ux-pilot .main-nav{position:absolute;top:76px;left:0;right:0;display:none;flex-direction:column;align-items:stretch;gap:0;padding:10px 20px 20px;background:#fff;border-bottom:1px solid var(--border);box-shadow:0 8px 20px #0f2d5b15}.ux-pilot .main-nav a{padding:12px}.ux-pilot .menu-toggle[aria-expanded=true]+.main-nav{display:flex}}
@media(max-width:560px){.ux-pilot .main-nav{top:68px}}
@media(max-width:760px){.ux-pilot .tool-form-layout,.ux-pilot .tool-editor-grid{grid-template-columns:minmax(0,1fr)}.ux-pilot .tool-output{min-height:420px}.ux-pilot .tool-workspace{padding:18px}.ux-pilot .tool-form,.ux-pilot .tool-control-panel,.pilot-order-block{padding:18px}.ux-pilot .tool-button-row .button{flex:0 0 auto;width:100%;min-height:46px}}
@media(max-width:480px){.pilot-journey{gap:6px}.pilot-journey li{flex-direction:column;align-items:flex-start;padding:10px;font-size:.77rem;gap:8px}.pilot-toolbar{align-items:flex-start;flex-direction:column;gap:10px}.ux-pilot .tool-hero{padding:26px 0}.ux-pilot .tool-workspace{padding:14px}.ux-pilot .tool-output{padding:16px 10px}.ux-pilot .tool-upload-zone{padding:20px 12px}.ux-pilot .tool-result,.ux-pilot .pdf-wave-result{padding:16px}.ux-pilot .pdf-poc-actions .button{flex:1 1 100%}}
@media(prefers-reduced-motion:reduce){.ux-pilot *{scroll-behavior:auto!important;animation:none!important;transition:none!important}}
