.white-tool{margin-top:24px;padding:clamp(10px,2.4vw,22px);background:var(--surface);border:1.5px solid var(--ink);border-radius:18px}
.white-tool [hidden]{display:none}
.white-controls{display:flex;align-items:end;justify-content:space-between;gap:8px 16px;flex-wrap:wrap}
.white-picker{min-width:0;max-width:100%;display:grid;gap:4px}
.white-picker label,.white-settings label{font-size:14px;font-weight:600}
.white-picker input{max-width:100%}
.white-picker input::file-selector-button{margin-right:8px;cursor:pointer}
.white-views{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:clamp(8px,2vw,16px);margin:12px 0}
.white-views figure{min-width:0;margin:0}
.white-guide .white-views figcaption{color:var(--ink);font-weight:600;margin:0 0 4px}
.white-stage{display:grid;grid-template:minmax(0,1fr)/minmax(0,1fr);place-items:center;aspect-ratio:8/5;max-height:278px;border:1px solid var(--line);background:#f3f3f1}
.white-stage img,.white-stage canvas{display:block;min-width:0;min-height:0;max-width:100%;width:100%;height:100%;object-fit:contain;border:0}
.white-stage [hidden]{display:none}
.white-result{background:repeating-conic-gradient(#e0e0e0 0% 25%,#f3f3f1 0% 50%) 0 0/16px 16px}
.white-guide .white-message{margin:6px 0;font-size:13px;line-height:1.5;min-height:20px;overflow-wrap:anywhere}
.white-guide #white-error{color:#b3261e}
.white-guide #white-error:empty,.white-guide #white-status:empty{display:none}
.white-settings{display:grid;gap:0;flex:1;min-width:120px;max-width:420px}
.white-settings label{display:flex;justify-content:space-between;gap:4px}
.white-settings output{font-variant-numeric:tabular-nums}
.white-settings input{height:38px;margin:0}
.white-guide .white-limit{margin:8px 0 0;font-size:13px;color:var(--muted)}
.white-guide .white-card{margin:24px 0}
.white-card img{display:block;width:180px;height:auto;background:#111111}
.white-guide th,.white-guide td{overflow-wrap:anywhere}
@media(max-width:480px){
 .white-tool{margin-top:12px}
 .white-views{margin:8px 0}
 .white-picker input{width:214px}
 .white-controls .action{width:auto}
}
