.fh{display:grid;gap:16px;min-width:0}
.fh label,.fh legend{font-size:13px;color:var(--muted)}
.fh-tabs{display:flex;gap:8px}
.fh button,.fh .fh-btn{font:inherit;min-height:44px;padding:10px 16px;border-radius:10px;border:1px solid var(--line);background:var(--panel2);color:var(--ink);cursor:pointer;font-weight:700;display:inline-flex;align-items:center;justify-content:center}
.fh-tabs button.on,.fh .fh-primary{background:var(--yellow);border-color:var(--yellow);color:var(--yellow-ink)}
.fh button:disabled{opacity:.45;cursor:default}
.fh :focus-visible{outline:2px solid var(--yellow);outline-offset:2px}
.fh-drop{border:2px dashed var(--line);border-radius:14px;padding:30px 14px;text-align:center;background:var(--panel2)}
.fh-drop.over{border-color:var(--yellow)}
.fh-drop p{margin:0 0 14px;color:var(--ink)}
#fileInput{position:absolute;width:1px;height:1px;opacity:0}
.fh-drop:focus-within label{outline:2px solid var(--yellow);outline-offset:2px}
.fh textarea,.fh input[type=text]{display:block;width:100%;min-height:44px;padding:10px 12px;border:1px solid var(--line);border-radius:10px;background:var(--panel2);color:var(--ink);font:inherit;margin-top:6px}
.fh-opts{display:flex;flex-wrap:wrap;gap:12px 24px;align-items:flex-end}
.fh fieldset{border:1px solid var(--line);border-radius:10px;margin:0;padding:4px 12px 8px;display:flex;flex-wrap:wrap;gap:0 6px;min-width:0}
.fh .fh-chk{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding-right:10px;color:var(--ink);font-size:14px}
.fh input[type=checkbox]{width:20px;height:20px;accent-color:var(--yellow)}
.fh-cmp{min-height:20px;margin-top:6px;font-weight:700}
.fh-cmp.ok{color:#6ee787}.fh-cmp.bad{color:#ff8a8a}
.fh progress{width:100%;height:10px;accent-color:var(--yellow)}
.fh-err{padding:12px;border:1px solid #a33;border-radius:10px;color:#ffaaaa}
.fh-file{border:1px solid var(--line);border-radius:12px;padding:12px;margin-bottom:12px;background:var(--panel2);min-width:0}
.fh-file h2{font-size:15px;margin:0 0 8px;overflow-wrap:anywhere}
.fh-file h2 span{color:var(--muted);font-weight:400;font-size:13px}
.fh-h{display:grid;grid-template-columns:auto 1fr auto;gap:8px 12px;align-items:center;padding:6px 0;border-top:1px solid var(--line)}
.fh-h strong{font-size:13px}
.fh-h code{font-size:12px;overflow-wrap:anywhere;word-break:break-all;color:var(--yellow)}
.fh-h code.match{color:#6ee787;font-weight:700}
.fh-h button{min-height:44px;padding:6px 12px}
.fh-row{display:flex;flex-wrap:wrap;gap:10px}
[hidden]{display:none!important}
@media(max-width:480px){.fh-h{grid-template-columns:1fr auto}.fh-h code{grid-column:1/-1;order:3}}
