.trstf-dialog{position:fixed;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);box-sizing:border-box;width:min(580px,calc(100% - 28px));max-height:calc(100vh - 32px);max-height:calc(100svh - 32px);padding:24px;border:1px solid #eadbe0;border-radius:14px;background:#fff;color:#382e33;box-shadow:0 18px 60px #25151e33;font:14px/1.6 -apple-system,BlinkMacSystemFont,"PingFang SC","Microsoft YaHei",sans-serif;overflow:auto;overscroll-behavior:contain}
.trstf-dialog::backdrop{background:#29172180}
.trstf-dialog.trstf-fallback[open]{position:fixed;z-index:2147483000;top:50%;left:50%;margin:0;transform:translate(-50%,-50%);box-shadow:0 0 0 100vmax #29172180,0 18px 60px #25151e33}
.trstf-dialog *{box-sizing:border-box}
.trstf-header{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:8px}
.trstf-header h2{margin:0;color:#9d3450;font-size:21px;line-height:1.4;font-weight:700}
.trstf-dialog .trstf-close{flex:0 0 auto;display:grid;place-items:center;width:36px;height:36px;border:1px solid #e9dce2;border-radius:50%;padding:0;background:#fff;color:#775e6a;font:26px/1 sans-serif;cursor:pointer}
.trstf-intro{margin:0 0 20px;color:#76666e;font-size:13px;line-height:1.75}
.trstf-field{margin:0 0 16px}
.trstf-label{display:block;margin:0 0 7px;font-size:14px;font-weight:650;color:#4e3e46}
.trstf-required{color:#bb3658}
.trstf-form input[type="text"],.trstf-form textarea{display:block;width:100%;border:1px solid #d9cbd2;border-radius:7px;padding:10px 11px;color:#382e33;background:#fff;font:inherit;line-height:1.55}
.trstf-form textarea{resize:vertical;min-height:84px}
.trstf-form input::placeholder,.trstf-form textarea::placeholder{color:#a2939b;font-size:13px}
.trstf-dialog .trstf-file{display:block;width:100%;min-width:0;padding:10px;border:1px solid #dbcbd2;border-radius:7px;background:#fffafb;color:#725a67;font:inherit;font-size:13px;line-height:1.6}
.trstf-file::file-selector-button{margin-right:10px;border:1px solid #d8b7c3;border-radius:5px;padding:6px 10px;color:#98344f;background:#fff;font:inherit;cursor:pointer}
.trstf-help{margin:5px 0 0;font-size:12px;color:#88757e}
.trstf-disclosure{margin:18px 0 12px;padding:10px 12px;border-radius:7px;background:#faf5f7;color:#806571;font-size:12px;line-height:1.75}
.trstf-message{margin:12px 0;padding:10px 12px;border:1px solid #d9e5de;border-radius:7px;background:#f4f9f6;color:#3c7054;font-size:13px;line-height:1.7;overflow-wrap:anywhere}
.trstf-message.trstf-error{border-color:#efc6cd;background:#fff6f7;color:#a82e48}
.trstf-actions{display:flex;gap:10px;justify-content:flex-end;margin-top:18px}
.trstf-dialog .trstf-primary,.trstf-dialog .trstf-secondary{min-height:42px;min-width:110px;border-radius:7px;padding:10px 18px;font:inherit;font-size:14px;font-weight:600;line-height:1.4;cursor:pointer}
.trstf-dialog .trstf-primary{border:1px solid #a63452;background:#a63452;color:#fff}
.trstf-dialog .trstf-secondary{border:1px solid #dac8d0;background:#fff;color:#825566}
.trstf-dialog button:disabled,.trstf-dialog input:disabled,.trstf-dialog textarea:disabled{opacity:.55;cursor:default}
.trstf-dialog :focus-visible{outline:3px solid #d3819b;outline-offset:3px}
.trstf-dialog [hidden]{display:none!important}
.trstf-sent .trstf-field,.trstf-sent .trstf-disclosure{display:none}
@media(max-width:480px){.trstf-dialog{width:calc(100% - 20px);padding:18px 16px;max-height:calc(100vh - 20px);max-height:calc(100svh - 20px);border-radius:11px}.trstf-header h2{font-size:20px}.trstf-intro{margin-bottom:16px}.trstf-actions{display:grid;grid-template-columns:1fr 1fr}.trstf-dialog .trstf-primary,.trstf-dialog .trstf-secondary{min-width:0;padding:11px 8px}.trstf-file::file-selector-button{margin-right:6px;padding:6px 8px}}
