/* FIX246 isolated modal, no change to existing workspace sizing. */
.th246-dialog{width:min(980px,calc(100vw - 28px));max-height:calc(100dvh - 28px);padding:0;border:1px solid #dce4ed;border-radius:18px;background:#f6f8fb;color:#13233b;box-shadow:0 18px 72px #10243b40;font:14px/1.5 system-ui,-apple-system,Segoe UI,sans-serif;overflow:hidden;z-index:2147483000}.th246-dialog::backdrop{background:#14243b78}.th246-shell{display:flex;flex-direction:column;max-height:calc(100dvh - 28px)}.th246-shell>header{background:#fff;display:flex;justify-content:space-between;align-items:start;gap:14px;padding:18px 22px;border-bottom:1px solid #e0e7ee}.th246-shell header small{color:#315f97;font-size:10px;font-weight:800;letter-spacing:.12em}.th246-shell h2{font-size:22px;margin:3px 0}.th246-shell h3{font-size:16px;margin:0 0 7px}.th246-shell p{margin:4px 0 12px;color:#61718a}.th246-shell>main{overflow:auto;padding:12px 18px 20px;min-height:0}.th246-shell>footer{background:#fff;display:flex;align-items:center;justify-content:space-between;gap:10px;border-top:1px solid #dbe4ef;padding:10px 18px;color:#61718a;font-size:12px}.th246-msg{padding:8px 18px;color:#275f50;background:#e8f5ed;font-size:13px}.th246-msg:empty{display:none}.th246-msg.error,.th246-result.error{background:#fceced;color:#9a2929}.th246-card{background:white;padding:16px;border:1px solid #dce5ee;border-radius:13px;margin:0 0 10px}.th246-tabs{display:flex;gap:6px;flex-wrap:wrap;margin-bottom:12px}.th246-dialog button{border:1px solid #cbd8e5;background:#fff;color:#254a73;border-radius:8px;padding:8px 12px;font-weight:650;cursor:pointer}.th246-dialog button[aria-pressed=true],.th246-dialog button.primary{background:#174b82;color:#fff;border-color:#174b82}.th246-dialog button:disabled{opacity:.55;cursor:wait}.th246-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(205px,1fr));gap:10px 16px}.th246-dialog label{font-size:12px;font-weight:650;display:block;color:#435875;margin:6px 0 10px}.th246-dialog input:not([type=checkbox]),.th246-dialog select,.th246-dialog textarea{box-sizing:border-box;width:100%;padding:9px 10px;margin-top:4px;border:1px solid #cbd8e5;border-radius:7px;background:white;color:#172d44;font:14px system-ui}.th246-dialog [hidden]{display:none!important}.th246-dialog hr{border:0;border-top:1px solid #e2e9f1;margin:20px 0}.th246-actions{display:flex;align-items:center;justify-content:space-between;gap:10px}.th246-actions span,.th246-dialog aside,.th246-event small{color:#61718a;font-size:12px}.th246-dialog aside{margin-top:12px;padding:10px;border-radius:8px;background:#f4f7fa}.th246-table{overflow:auto;margin:10px 0 16px;max-height:46vh}.th246-table table{border-collapse:collapse;width:100%;font-size:12px}.th246-table th{background:#254c76;color:white;position:sticky;top:0}.th246-table td,.th246-table th{padding:8px;border:1px solid #e2e8ef;text-align:left}.th246-table tr:nth-child(even){background:#f7f9fc}.th246-event{border-bottom:1px solid #e2e8ef;padding:10px 0;display:grid;gap:3px}.th246-event pre{white-space:pre-wrap;overflow-wrap:anywhere;font-size:11px}.th246-result{margin-top:10px;padding:10px;border-radius:8px;background:#edf4fa}.th246-result:empty{display:none}.th246-launch{border:1px solid #b8cee1;border-radius:8px;padding:8px 12px;color:#164d82;background:#f0f6fc;font-weight:650;cursor:pointer}.th246-head-actions{display:flex;gap:8px;flex-wrap:wrap;align-items:center}@media(max-width:560px){.th246-dialog{width:calc(100vw - 12px);max-height:calc(100dvh - 12px)}.th246-shell{max-height:calc(100dvh - 12px)}.th246-shell>main{padding:10px}.th246-shell>header{padding:12px}.th246-grid{grid-template-columns:1fr}.th246-card{padding:12px}.th246-shell h2{font-size:18px}}
