.sheet-dialog{width:min(1100px,96vw);max-width:1100px}
.sheet-dialog .record-fields>.sheet-editor,.sheet-dialog .record-fields>p,.sheet-dialog .record-fields>div:last-child{grid-column:1/-1}
.sheet-editor{display:grid;gap:12px}
.sheet-editor-row{display:grid;grid-template-columns:110px 150px minmax(180px,1fr) auto;align-items:end;gap:12px;padding:14px;border:1px solid var(--border,#dce4f2);border-radius:14px;background:var(--surface,#f8faff)}
.sheet-editor-row .record-field{margin:0;min-width:0}
.sheet-editor-row input,.sheet-editor-row select{width:100%;min-height:42px;border:1px solid #d5dff0;border-radius:9px;padding:9px;background:var(--card,#fff);color:inherit;font:inherit;box-sizing:border-box}
.sheet-dialog .table-wrap{max-width:100%;overflow:auto}
@media(max-width:700px){.sheet-editor-row{grid-template-columns:1fr 1fr}.sheet-editor-row .record-field:nth-child(3){grid-column:1/-1}}
.sheet-page>.form-actions{display:flex;flex-wrap:wrap;gap:8px;margin-block:16px}
.sheet-result{margin-block:20px;padding:20px;border:1px solid var(--border,#dce4f2);border-radius:18px;background:var(--card,#fff);box-shadow:0 4px 20px #21375e08}
.sheet-result h3{margin:0 0 14px;font-size:17px}
.sheet-result .hint{margin-block:12px;line-height:1.9;color:var(--muted,#61728e);font-size:13px}
.sheet-result .table-wrap{overflow:auto;width:100%;margin-block:16px 24px;border:1px solid var(--border,#dce4f2);border-radius:12px}
.sheet-result table{width:100%;border-collapse:collapse;font-size:13px;min-width:600px}
.sheet-result th{padding:13px 16px;background:var(--surface,#f4f7fc);font-weight:700;color:var(--muted,#61728e);text-align:start;white-space:nowrap}
.sheet-result td{padding:14px 16px;line-height:1.8;border-top:1px solid var(--border,#e5eaf3);text-align:start;unicode-bidi:plaintext;white-space:pre-wrap;overflow-wrap:anywhere;min-width:75px}
.sheet-result tbody tr:hover{background:var(--surface,#f8faff)}
@media(max-width:700px){.sheet-result{padding:12px}}
