.wh-file-picker{width:100%}
.wh-file-drop{position:relative;display:flex;min-height:132px;align-items:center;justify-content:center;border:2px dashed var(--wh-line-strong);border-radius:12px;background:var(--wh-surface-2);padding:20px;transition:border-color .18s,background .18s,box-shadow .18s;overflow:hidden}
.wh-file-drop:hover,.wh-file-drop:focus-within,.wh-file-drop.is-dragging{border-color:#f47c1f;background:var(--tone-orange-soft);box-shadow:0 0 0 3px rgba(244,124,31,.09)}
.wh-file-drop>input[type=file]{position:absolute!important;inset:0!important;width:100%!important;height:100%!important;opacity:0!important;cursor:pointer!important;z-index:2!important;margin:0!important;padding:0!important;border:0!important}
.wh-file-empty{display:flex;flex-direction:column;align-items:center;text-align:center;pointer-events:none}
.wh-file-icon{display:flex;width:42px;height:42px;align-items:center;justify-content:center;border-radius:12px;background:var(--wh-surface);color:var(--wh-faint);box-shadow:0 1px 4px rgba(15,43,78,.08);font-size:18px;margin-bottom:9px}
.wh-file-title{font-size:13px;font-weight:700;color:var(--wh-text)}
.wh-file-hint{font-size:11px;color:var(--wh-faint);margin-top:4px;line-height:1.45}
.wh-file-results{display:none;width:100%;position:relative;z-index:3}
.wh-file-picker.has-files .wh-file-empty{display:none}
.wh-file-picker.has-files .wh-file-results{display:block}
.wh-file-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(92px,1fr));gap:10px}
.wh-file-card{min-width:0;border:1px solid var(--wh-line);border-radius:9px;background:var(--wh-surface);padding:7px;text-align:center}
.wh-file-thumb{width:100%;height:76px;display:block;object-fit:cover;border-radius:6px;background:var(--wh-surface-3)}
.wh-file-doc{height:76px;display:flex;align-items:center;justify-content:center;border-radius:6px;background:var(--wh-surface-3);color:var(--wh-muted);font-size:25px}
.wh-file-name{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:10.5px;font-weight:650;color:var(--wh-text);margin-top:6px}
.wh-file-size{display:block;font-size:9.5px;color:var(--wh-faint);margin-top:2px}
.wh-file-summary{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:10px;font-size:11px;color:var(--wh-muted)}
.wh-file-actions{position:relative;z-index:4;display:flex;align-items:center;gap:7px}
.wh-file-add,.wh-file-clear{border:0;border-radius:7px;padding:6px 9px;font:inherit;font-weight:700;cursor:pointer}
.wh-file-add{background:var(--tone-blue-soft);color:var(--tone-blue-mid)}
.wh-file-add:hover{background:var(--tone-blue-bg)}
.wh-file-add-tile{position:relative;z-index:4;min-height:116px;border:1.5px dashed var(--tone-blue-line);border-radius:9px;background:var(--tone-blue-soft);padding:10px;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:8px;color:var(--tone-blue-mid);font-size:11px;transition:border-color .18s,background .18s,transform .18s}
.wh-file-add-tile:hover{border-color:#2563eb;background:var(--tone-blue-bg);transform:translateY(-1px)}
.wh-file-add-icon{display:flex;width:30px;height:30px;align-items:center;justify-content:center;border-radius:999px;background:var(--wh-surface);box-shadow:0 1px 4px rgba(37,99,235,.16);font-size:12px}
.wh-file-clear{background:var(--tone-red-bg);color:var(--tone-red-mid)}
.wh-file-clear:hover{background:var(--tone-red-bg)}
.wh-file-picker.is-compact .wh-file-drop{min-height:0;justify-content:flex-start;padding:12px 14px}
.is-compact .wh-file-empty{flex-direction:row;gap:14px;text-align:start}
.is-compact .wh-file-icon{flex:none;margin:0}
.is-compact .wh-file-words{display:flex;flex-direction:column;min-width:0}
.is-compact .wh-file-icon.is-current{width:76px;height:76px;overflow:hidden;border:1px solid var(--wh-line);border-radius:10px;background:var(--wh-surface)}
.is-compact .wh-file-icon.is-current img{width:100%;height:100%;object-fit:contain;padding:4px}
.is-compact .wh-file-results{display:none;align-items:center;gap:14px}
.is-compact.has-files .wh-file-results{display:flex}
.is-compact .wh-file-grid{grid-template-columns:96px;flex:none}
.is-compact .wh-file-summary{flex:1;margin:0;flex-wrap:wrap}
@media(max-width:640px){.wh-file-drop{min-height:118px;padding:14px}.wh-file-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.wh-file-thumb,.wh-file-doc{height:64px}.wh-file-add-tile{min-height:104px}.wh-file-summary{align-items:center}.wh-file-clear{padding:6px 9px}}
.wh-file-action{position:relative;z-index:3;pointer-events:auto;flex:none}
.is-compact .wh-file-action{margin-inline-start:auto}
