.channel-contract-card{display:flex;align-items:center;flex-wrap:wrap;gap:12px 18px;margin-top:16px;padding:16px;border:1px solid #dfe5e9;border-radius:9px;background:#fff}
.channel-contract-file{display:flex;align-items:center;gap:12px;min-width:0;flex:1 1 220px}.channel-contract-icon{display:grid;place-items:center;width:38px;height:46px;flex:0 0 38px;border:1px solid #cfdaeb;border-radius:5px;background:#eef3fb;color:#325887;font:bold 23px Georgia,serif}.channel-contract-file h3{margin:0;color:#263746;font-size:14px;line-height:1.5;overflow-wrap:anywhere}.channel-contract-file p{margin:4px 0 0;color:#7c8794;font-size:11px;line-height:1.5}
.channel-contract-actions{display:flex;flex-wrap:wrap;gap:8px}.channel-contract-actions button,.channel-contract-toolbar button,.channel-contract-edit-actions button{min-height:36px;padding:7px 13px;border:1px solid #d3dce3;border-radius:6px;background:#fff;color:#35495a;font:600 12px "Microsoft YaHei",sans-serif;cursor:pointer;white-space:nowrap}.channel-contract-card button:hover,.channel-contract-toolbar button:hover,.channel-contract-edit-actions button:hover{border-color:#08794c;color:#08794c}.channel-contract-card button:focus-visible,.channel-contract-dialog button:focus-visible{outline:2px solid #08794c;outline-offset:3px}.channel-contract-card button:disabled,.channel-contract-dialog button:disabled{opacity:.5;cursor:wait}.channel-contract-status{flex:1 1 100%;font-size:11px;line-height:1.7;color:#7b6551}.channel-contract-status:has(span:empty):has(button[hidden]){display:none}.channel-contract-status button{margin-left:8px;padding:0;border:0;background:none;color:#08794c;cursor:pointer}.channel-contract-card [hidden],.channel-contract-dialog [hidden]{display:none!important}
.channel-contract-dialog{width:min(900px,calc(100vw - 28px));max-height:92vh;margin:auto;padding:0;border:0;border-radius:12px;background:#f2f4f6;box-shadow:0 22px 80px #10261a55;overflow:auto;overscroll-behavior:contain}.channel-contract-dialog::backdrop{background:#10251c99}.channel-contract-dialog>.channel-dialog-head{position:sticky;top:0;z-index:2;background:#fff;border-bottom:1px solid #e4e8eb}.channel-contract-toolbar{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 24px;background:#fff;color:#7c8794;font-size:12px}.channel-contract-paper-wrap{padding:20px 24px}.channel-contract-paper{max-width:760px;margin:auto;padding:42px 48px;background:#fff;color:#171717;box-shadow:0 2px 8px #1e34410d;overflow-wrap:anywhere}.channel-contract-paper h2{margin:0 0 28px;color:#000;text-align:center;font-size:23px;line-height:1.6}.channel-contract-paper h3{margin:24px 0 10px;color:#000;font-size:16px;line-height:1.65}.channel-contract-paper p{margin:9px 0;font-size:14px;line-height:1.95;white-space:pre-wrap}.channel-contract-paper .contract-signature{margin-top:25px}.channel-contract-result{min-height:20px;margin:0;padding:0 24px 12px;font-size:12px;line-height:1.7;color:#92523d}
.channel-contract-editor{background:#fff}.channel-contract-edit-body{padding:18px 24px}.channel-contract-edit-body>p:first-child{margin:0 0 12px;font-size:12px;line-height:1.8;color:#667584}.channel-contract-variables{margin:0 0 14px;font-size:11px;line-height:1.8;color:#7c8794;overflow-wrap:anywhere}.channel-contract-text-label{display:block;margin-bottom:8px;font-size:12px;font-weight:600;color:#35495a}#channelContractText{display:block;resize:vertical;width:100%;min-height:290px;height:49vh;max-height:65vh;padding:15px 16px;border:1px solid #cfd9e0;border-radius:6px;background:#fbfcfd;color:#1e2d38;font:14px/1.9 "Microsoft YaHei",sans-serif;box-sizing:border-box}#channelContractText:focus{outline:2px solid #d0e9dd;outline-offset:1px;border-color:#08794c}.channel-contract-edit-body .channel-contract-result{padding:10px 0;min-height:22px}.channel-contract-edit-actions{display:flex;justify-content:flex-end;flex-wrap:wrap;gap:8px}.channel-contract-edit-actions #channelContractSave{background:#08794c;border-color:#08794c;color:#fff}.channel-contract-reset-hint{margin:12px 0 0;font-size:11px;color:#8a949c;line-height:1.8}
@media(max-width:600px){.channel-contract-card{padding:13px;gap:12px}.channel-contract-actions{width:100%;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:6px}.channel-contract-actions button{padding:7px 5px;font-size:11px}.channel-contract-paper-wrap{padding:12px}.channel-contract-paper{padding:25px 20px}.channel-contract-paper h2{font-size:19px}.channel-contract-paper h3{font-size:15px}.channel-contract-paper p{font-size:13px}.channel-contract-toolbar{padding:10px 14px}.channel-contract-edit-body{padding:14px}.channel-contract-result{padding-left:14px;padding-right:14px}.channel-contract-edit-actions{justify-content:stretch}.channel-contract-edit-actions button{flex:1}#channelContractText{font-size:16px;height:44vh}.channel-contract-dialog{width:calc(100vw - 20px);max-height:94vh}}
