.table-editor section{border:1px solid #cbd5e1;border-radius:12px;background:#fff;padding:24px;margin:20px 0}.table-editor h2{margin-top:0;font-size:1.25rem}.table-editor label{font-weight:600}.table-editor textarea,.table-editor select,.table-editor input[type=text],.table-editor input[type=number]{box-sizing:border-box;width:100%;padding:12px;border:1px solid #94a3b8;border-radius:8px;font:16px/1.6 sans-serif;margin:8px 0 16px}.table-editor textarea{resize:vertical}.te-options{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:center}.te-options input[type=file]{display:block;max-width:100%;margin:12px 0;font-size:16px}.te-actions{display:flex;flex-wrap:wrap;gap:12px}.table-editor button{min-height:44px;padding:10px 16px}.table-editor .te-secondary{background:#eff6ff;color:#1e40af;border:1px solid #93c5fd}.table-editor button:disabled{opacity:.45;cursor:not-allowed}.te-note{font-size:14px;color:#475569;line-height:1.7}.te-columns{padding:0;list-style:none}.te-columns li{display:flex;align-items:center;gap:8px;padding:10px 0;border-bottom:1px solid #e2e8f0}.te-columns label{flex:1;min-width:0;overflow-wrap:anywhere}.te-scroll{overflow:auto;max-height:450px;border:1px solid #cbd5e1;border-radius:8px}.te-scroll table{width:100%;border-collapse:collapse}.te-scroll th,.te-scroll td{border:1px solid #cbd5e1;padding:10px;text-align:left;white-space:pre-wrap;overflow-wrap:anywhere;min-width:90px;max-width:500px}.te-scroll th{background:#eff6ff}.te-scroll caption{padding:12px;font-weight:600}.table-editor fieldset{min-width:0;border:1px solid #cbd5e1;border-radius:8px;margin-top:20px;padding:16px}.table-editor :focus-visible{outline:3px solid #2563eb;outline-offset:3px}.table-editor [hidden]{display:none!important}#teStatus{padding:12px;background:#eff6ff;border-radius:8px;overflow-wrap:anywhere}.te-rules{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,240px),1fr));gap:12px}.te-rules label{display:block;margin:12px 0}.te-rules legend{overflow-wrap:anywhere;max-width:100%}#teCheckPanel{margin:16px 0 24px;border:1px solid #cbd5e1;border-radius:8px;padding:16px}#teCheckPanel summary{cursor:pointer;font-weight:700;min-height:44px;line-height:1.6}@media(max-width:600px){.table-editor section{padding:16px}.te-options{grid-template-columns:1fr;gap:0}.te-columns button{padding:8px}.te-actions button{flex:1}}
#teComparePanel{margin:16px 0 24px;border:1px solid #cbd5e1;border-radius:8px;padding:16px}#teComparePanel summary{cursor:pointer;font-weight:700;min-height:44px;line-height:1.6}
/* Allow native selects and file inputs to shrink inside narrow grid tracks. */
.table-editor .te-options{grid-template-columns:repeat(2,minmax(0,1fr))}
.table-editor .te-options>label{min-width:0;max-width:100%;overflow-wrap:anywhere}
.table-editor select{display:block;min-width:0;max-width:100%;text-overflow:ellipsis}
.table-editor .te-options input[type=file]{box-sizing:border-box;min-width:0;width:100%}
@media(max-width:600px){.table-editor .te-options{grid-template-columns:minmax(0,1fr)}}
