.sheet-tool { display:grid; gap:12px; padding:20px; border:1px solid #ddd; border-radius:16px; }
.sheet-tool p { margin:0; }
.sheet-tool label { display:grid; gap:6px; min-width:0; font-weight:600; }
.sheet-tool input,.sheet-tool select,.sheet-tool button,.sheet-tool [data-downloads] a { min-height:44px; max-width:100%; }
.sheet-tool input[type=checkbox] { min-height:24px; width:24px; }
.sheet-tool__controls { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:12px; }
.sheet-tool__wide { grid-column:1/-1; }
.sheet-tool__check { display:flex; align-items:center; gap:8px; }
.sheet-tool [hidden] { display:none !important; }
.sheet-tool [data-preview] { display:block; max-width:100%; max-height:420px; width:auto; height:auto; margin:auto; border:1px solid #ccc; }
.sheet-tool [data-create] { padding:12px 18px; background:#153d35; color:white; border:0; border-radius:8px; cursor:pointer; }
.sheet-tool [data-create]:disabled { opacity:.5; cursor:default; }
.sheet-tool [data-downloads] { list-style:none; padding:0; margin:0; display:grid; gap:8px; }
.sheet-tool [data-downloads] a { display:flex; align-items:center; padding:8px 14px; background:#153d35; color:white; border-radius:8px; }
@media(max-width:600px) {
    .sheet-tool { padding:12px; }
    .sheet-tool__controls { grid-template-columns:repeat(2,minmax(0,1fr)); }
    .sheet-tool [data-preview] { max-height:46svh; }
    .sheet-tool [data-create] { min-height:48px; }
}
.sheet-tool__check { align-self:end; min-height:44px; }
