:where(.sapphire-contract-template) .alert{border:1px solid;border-radius:8px;align-items:flex-start;gap:10px;margin-bottom:16px;padding:11px 13px;display:flex}:where(.sapphire-contract-template) .alert-danger{background:var(--danger-bg);color:#912018;border-color:#fecdca}:where(.sapphire-contract-template) .alert-success{background:var(--success-bg);color:#05603a;border-color:#abefc6}:where(.sapphire-contract-template) .alert strong{margin-bottom:2px;display:block}:where(.sapphire-contract-template) .template-breadcrumb{color:var(--text-3);align-items:center;gap:8px;margin:-6px 0 18px;font-size:13px;display:flex}:where(.sapphire-contract-template) .template-breadcrumb strong{color:var(--text);font-weight:600}:where(.sapphire-contract-template) .template-contract-version{align-items:center;gap:28px;min-height:40px;display:flex}:where(.sapphire-contract-template) .template-contract-version label{cursor:pointer;color:#344054;align-items:center;gap:8px;display:inline-flex}:where(.sapphire-contract-template) .template-contract-version .el-radio{height:auto;margin-right:0}:where(.sapphire-contract-template) .template-contract-version .el-radio__label{padding-left:0}:where(.sapphire-contract-template) .template-list-card{overflow:visible}:where(.sapphire-contract-template) .template-list-card .card-body{padding:0}:where(.sapphire-contract-template) .template-table{min-width:1040px}:where(.sapphire-contract-template) .template-table :is(th,td):is(:nth-child(2),:nth-child(8)),:where(.sapphire-contract-template) .template-table :is(th,td):is(:nth-child(2),:nth-child(8)) .cell{white-space:nowrap}:where(.sapphire-contract-template) .template-table th:last-child,:where(.sapphire-contract-template) .template-table td:last-child{text-align:center;width:230px}:where(.sapphire-contract-template) .template-list-foot{color:var(--text-3);justify-content:space-between;align-items:center;gap:12px;padding:16px 24px;font-size:13px;display:flex}:where(.sapphire-contract-template) .template-editor-layout{grid-template-columns:minmax(0,2fr) minmax(330px,1fr);align-items:start;gap:16px;display:grid}:where(.sapphire-contract-template) .template-editor-main,:where(.sapphire-contract-template) .template-editor-side{min-width:0}:where(.sapphire-contract-template) .template-editor-card{overflow:hidden}:where(.sapphire-contract-template) .template-editor-card .card-head{padding:15px 18px}:where(.sapphire-contract-template) .template-editor-card .card-body{padding:18px}:where(.sapphire-contract-template) .template-editor-textarea{--el-textarea-min-height:395px;width:100%}:where(.sapphire-contract-template) .template-editor-textarea .el-textarea__inner{resize:vertical;line-height:1.8}:where(.sapphire-contract-template) .template-variable-table{overflow:auto}:where(.sapphire-contract-template) .template-variable-table table{min-width:760px}:where(.sapphire-contract-template) .template-variable-table th,:where(.sapphire-contract-template) .template-variable-table td{padding:10px 11px}:where(.sapphire-contract-template) .template-variable-table :is(.el-input,.el-select){min-width:96px}:where(.sapphire-contract-template) .template-variable-table .el-input>.el-input__wrapper{height:34px;padding:0 8px}:where(.sapphire-contract-template) .template-variable-table .el-input .el-input__inner{height:32px}:where(.sapphire-contract-template) .template-variable-table .el-select>.el-select__wrapper{min-height:34px;padding:0 8px}:where(.sapphire-contract-template) .template-variable-table .template-variable-key{min-width:122px}:where(.sapphire-contract-template) .template-variable-table .template-variable-default{min-width:108px}:where(.sapphire-contract-template) .template-variable-empty{text-align:center;color:var(--text-3);padding:25px}:where(.sapphire-contract-template) .template-guide-list{gap:9px;display:grid}:where(.sapphire-contract-template) .template-guide-item{background:#fff;border:1px solid #e7edf7;border-radius:8px;padding:11px 12px}:where(.sapphire-contract-template) .template-guide-item strong{color:var(--text);justify-content:space-between;align-items:center;gap:8px;font-size:12px;display:flex}:where(.sapphire-contract-template) .template-guide-item code{color:#7f56d9;background:#f4f3ff;border-radius:4px;padding:3px 5px;font:12px Consolas,monospace}:where(.sapphire-contract-template) .template-guide-item span{color:var(--text-3);margin-top:4px;font-size:11px;display:block}:where(.sapphire-contract-template) .template-notice{color:#93370d;background:#fffcf0;border:1px solid #fedf89;border-radius:8px;margin-top:12px;padding:12px 14px;font-size:12px}:where(.sapphire-contract-template) .template-notice strong{color:#b54708;margin-bottom:5px;display:block}:where(.sapphire-contract-template) .template-notice ul{margin:0;padding-left:18px}:where(.sapphire-contract-template) .template-number-rule{color:var(--text-3);background:#f8faff;border:1px dashed #b2ccff;border-radius:7px;grid-template-columns:auto auto;align-items:center;gap:4px 8px;margin-top:8px;padding:9px 10px;font-size:11px;display:grid}:where(.sapphire-contract-template) .template-number-rule span{color:var(--text-2);font-weight:600}:where(.sapphire-contract-template) .template-number-rule code{color:var(--primary);font:600 12px Consolas,monospace}:where(.sapphire-contract-template) .template-number-rule small{color:var(--text-3);grid-column:1/-1}:where(.sapphire-contract-template) .template-preview-content{border:1px solid var(--border);white-space:normal;background:#fff;border-radius:8px;min-height:260px;padding:22px;line-height:1.9}:where(.sapphire-contract-template) .template-preview-variable{color:#6941c6;background:#f4f3ff;border-radius:4px;padding:1px 5px;font:12px Consolas,monospace;display:inline-block}:where(.sapphire-contract-template) .template-history-table{width:100%;min-width:560px}@media (width<=1000px){:where(.sapphire-contract-template) .template-editor-layout{grid-template-columns:1fr}:where(.sapphire-contract-template) .template-editor-side{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;gap:16px;display:grid}:where(.sapphire-contract-template) .template-editor-side .card+.card{margin-top:0}}@media (width<=720px){:where(.sapphire-contract-template) .template-list-foot{flex-direction:column;align-items:flex-start}:where(.sapphire-contract-template) .template-editor-side{display:block}:where(.sapphire-contract-template) .template-editor-side .card+.card{margin-top:16px}}:where(.sapphire-contract-template) .summary-box{border:1px solid var(--border);background:#f8fafc;border-radius:8px;padding:14px}:where(.sapphire-contract-template) .summary-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;display:grid}:where(.sapphire-contract-template) .summary-item dt{color:var(--text-3);margin-bottom:4px;font-size:12px}:where(.sapphire-contract-template) .summary-item dd{color:var(--text);word-break:break-word;margin:0;font-weight:600}@media (width<=1280px){:where(.sapphire-contract-template) .summary-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media (width<=768px){:where(.sapphire-contract-template) .summary-grid{grid-template-columns:1fr}}:where(.sapphire-contract-template) .project-invalid{border-color:var(--danger)!important;box-shadow:0 0 0 3px #de404c1a!important}
