:root{font-family:Inter,"Microsoft YaHei",system-ui,sans-serif;color:#233548;background:#f3f5f7;font-size:15px;line-height:1.65}*{box-sizing:border-box}body{margin:0}header{height:80px;background:#fff;border-bottom:1px solid #e3e9ef;display:flex;align-items:center;justify-content:space-between;padding:0 5%}.brand{font-weight:800;letter-spacing:2px;color:#183b56}.brand span{font-weight:400;letter-spacing:0;border-left:1px solid #d4dde5;margin-left:16px;padding-left:16px}a{text-decoration:none;color:#176e83}nav{display:flex;align-items:center;gap:24px}nav form{margin:0}main{max-width:1200px;margin:48px auto;padding:0 24px;min-height:65vh}h1{font-size:32px;line-height:1.25;letter-spacing:-.5px;margin:8px 0 16px}h2{font-size:20px;margin:0 0 18px}.eyebrow{font-size:12px;letter-spacing:2px;color:#71859b;font-weight:700}.muted{color:#758496}.small,small{font-size:13px}small{display:block;color:#95a1ad}.heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:28px}.card{background:#fff;border:1px solid #e0e6eb;border-radius:12px;box-shadow:0 4px 18px #16384d04;overflow:hidden}.padded{padding:30px}.columns{display:grid;grid-template-columns:minmax(0,2.4fr) minmax(250px,1fr);gap:24px}.button,button{display:inline-block;border:0;border-radius:6px;background:#176e83;color:#fff;padding:12px 22px;font:inherit;font-weight:600;cursor:pointer}.secondary{background:#eaf1f4;color:#176e83}.quiet{padding:4px;background:transparent;color:#758496}.actions{display:flex;gap:12px;flex-wrap:wrap}label{display:block;font-weight:600;margin:16px 0 8px}input:not([type=checkbox]),textarea{width:100%;padding:12px;border:1px solid #cad5df;border-radius:6px;font:inherit;background:#fcfdfe}input[type=checkbox]{accent-color:#176e83}textarea{font-family:Consolas,monospace;font-size:13px;line-height:1.7;resize:vertical}table{width:100%;border-collapse:collapse;text-align:left}th{font-size:12px;color:#7d8c9a;background:#f9fafb;padding:18px 24px}td{padding:20px 24px;border-top:1px solid #edf0f3}.badge{padding:5px 12px;background:#edf2f6;color:#5c7187;border-radius:25px;font-size:13px;white-space:nowrap}.complete{background:#e5f4ec;color:#267c51}.failed{background:#fbe9e7;color:#b25043}.queued,.running{background:#e5f0fa;color:#316d9d}.alert{background:#fff7e8;border:1px solid #efd9ad;padding:20px 24px;margin-bottom:24px;border-radius:8px}.errorlist{color:#b34439;background:#fdf0ee;padding:12px 28px;border-radius:5px}.login{max-width:450px;margin:70px auto;background:#fff;padding:40px;border:1px solid #e0e6eb;border-radius:12px}.login button{width:100%}.empty{text-align:center;padding:70px;color:#8293a3}footer{text-align:center;color:#95a1ad;font-size:12px;padding:35px}hr{border:0;border-top:1px solid #e5e9ee;margin:24px 0}@media(max-width:800px){.columns{grid-template-columns:1fr}.heading{align-items:flex-start;gap:18px;flex-direction:column}header{padding:0 20px}.brand span{display:none}nav{gap:12px}main{margin-top:28px}td,th{padding:12px;font-size:12px}small{max-width:130px;overflow-wrap:anywhere}.padded{padding:22px}}
.field-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}.field-grid label{font-size:13px}.field-grid input{margin-top:6px}.editor-section{border-bottom:1px solid #e6ecf1;padding-bottom:24px;margin-bottom:28px}.nested{padding:16px;background:#f6f9fb;border-radius:6px;margin-top:18px}summary{cursor:pointer;font-weight:600}.confirm{font-size:14px;line-height:1.8}.confirm input{display:inline-block}#advanced{margin:20px 0}#advanced textarea{margin:12px 0}@media(max-width:600px){.field-grid{grid-template-columns:1fr}}
.upload-workspace{display:grid;gap:20px}.compact-heading{margin-bottom:12px}.compact-heading h2{margin:0}.source-group{padding:10px 0 16px;border-bottom:1px solid #e6ecf1}.source-group h3{margin:4px 0;font-size:15px}.source-group label{margin:8px 0}.template-row{display:grid;grid-template-columns:200px minmax(0,1fr) auto;align-items:center;gap:16px;padding:12px 0;border-bottom:1px solid #e6ecf1}.template-row .type-label{margin:0;font-size:14px}.template-row select{width:100%;min-width:0;font:inherit;padding:9px 12px;border:1px solid #cad5df;border-radius:6px;background:#fcfdfe}.upload-template-button{padding:9px 14px;font-size:14px;white-space:nowrap}.upload-submit{margin-top:20px}.template-history{margin-top:20px}.history-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;margin-top:18px}.history-grid h3{font-size:15px}.history-grid p{font-size:13px;overflow-wrap:anywhere}dialog{width:min(520px,calc(100% - 32px));border:1px solid #e0e6eb;border-radius:12px;padding:28px;color:#233548;max-height:90vh;overflow:auto}dialog::backdrop{background:#102c4666}.modal-error{color:#b34439;white-space:pre-line}button:disabled{opacity:.6;cursor:wait}@media(max-width:650px){.template-row{grid-template-columns:minmax(0,1fr) auto;gap:8px}.template-row .type-label{grid-column:1/-1}.history-grid{grid-template-columns:1fr}.source-card .heading{flex-direction:row}.template-row select{font-size:13px}}
.managed-template{display:flex;align-items:center;gap:20px;flex-wrap:wrap;padding:18px 0;border-top:1px solid #e6ecf1}.managed-template>div{flex:1;min-width:180px}.managed-template p{margin:4px 0}.rename-template{display:flex;align-items:center;gap:8px;flex:1;min-width:240px}.rename-template input{min-width:0}.rename-template button{white-space:nowrap;padding:10px 12px}.delete-button{background:#fff0ed;color:#a54435;padding:10px 14px}
.task-table{overflow-x:auto}.task-table table{min-width:760px}.pi-number{font-weight:600;overflow-wrap:anywhere;max-width:220px}.task-date,.task-link{white-space:nowrap}.source-file{display:flex;align-items:center;gap:10px;margin:5px 0}.source-file>span:last-child{overflow-wrap:anywhere}.file-icon{display:inline-flex;flex:0 0 25px;width:25px;height:29px;align-items:center;justify-content:center;border-radius:3px;background:#738496;color:white;font-size:12px;font-weight:800;line-height:1;box-shadow:inset -4px 0 #ffffff24}.file-icon.excel{background:#217346}.file-icon.word{background:#185abd}.file-icon.pdf{background:#c43d35;font-size:8px}
.page-navigation{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:24px}.breadcrumbs{display:flex;align-items:center;gap:10px;flex-wrap:wrap;font-size:13px;color:#758496}.breadcrumbs [aria-current=page]{color:#233548}.back-link{font-size:13px;white-space:nowrap}@media(max-width:650px){.page-navigation{align-items:flex-start;flex-direction:column;gap:10px}}
.source-group-heading{display:flex;align-items:center;justify-content:space-between;gap:12px}.source-group-heading h3{margin:4px 0}.remove-source{font-size:13px;color:#a54435;padding:6px 10px}.remove-source:disabled{color:#95a1ad;cursor:default;opacity:.5}
.task-name-editor>label{font-size:13px;margin-top:0}.task-name-editor #task-name{font-size:25px;font-weight:700;background:#fff;padding:12px 16px}.task-name-editor #pi-name-options{margin-top:12px}.pi-name-choice{margin:0;padding:8px 14px;border:1px solid #cad5df;border-radius:6px;background:#fff;font-size:14px}.task-display-name{display:block;margin-bottom:8px}
.summary-tabs{display:flex;gap:8px;border-bottom:1px solid #dce5ec;margin:16px 0 20px}.summary-tabs button{background:transparent;color:#758496;border-radius:0;padding:12px 20px;border-bottom:3px solid transparent}.summary-tabs button[aria-selected=true]{color:#176e83;border-color:#176e83;background:#edf5f7}.summary-table-wrap{overflow-x:auto}.summary-table-wrap input{min-width:110px}.wizard-section{margin-top:32px;padding-top:28px;border-top:2px solid #e3e9ef;scroll-margin-top:24px}#wizard-next{margin-top:32px;scroll-margin-top:24px}[hidden]{display:none!important}#structured-editor{scroll-margin-top:24px}
/* Compact editable summaries; styles are scoped to the review tables. */
.review-product-table{table-layout:fixed;min-width:950px}.review-product-table th,.review-product-table td{padding:7px 5px;vertical-align:middle}.review-product-table th{font-size:12px;height:35px}.review-product-table input:not([type=checkbox]),.summary-table-wrap input:not([type=checkbox]){height:34px;padding:5px 7px;font-size:13px;line-height:22px;min-width:0;width:100%}.review-product-table th:nth-child(2){width:100px}.review-product-table th:nth-child(3){width:190px}.review-product-table th:nth-child(4){width:115px}.review-product-table th:nth-child(5){width:75px}.review-product-table th:nth-child(6),.review-product-table th:nth-child(7){width:65px}.review-product-table th:nth-child(8){width:85px}.review-product-table th:nth-child(9){width:90px}.review-product-table th:nth-child(10){width:110px}.product-row-actions{white-space:nowrap}.product-row-actions button{font-size:12px;padding:5px 8px;margin:0 2px 0 0;line-height:24px}.review-product-table .product-detail-row td{padding:12px;background:#f6f9fb}.product-detail-row .field-grid{gap:0 12px}.product-detail-row label{margin:6px 0;font-size:12px}.product-detail-row .nested{margin-top:10px;padding:10px}.summary-table-wrap th,.summary-table-wrap td{padding:8px}.summary-table-wrap table{min-width:660px}
.warning-keyword,.summary-emphasis{color:#b42318;font-weight:700}
.warning-message,#live-totals{color:#237447}.warning-message .warning-keyword,#live-totals .summary-emphasis{color:#b42318}
/* Give descriptive packing columns the space saved by compact numeric fields. */
.summary-table-wrap .packing-summary-table{table-layout:fixed;min-width:800px}.packing-summary-table th:nth-child(1){width:14%}.packing-summary-table th:nth-child(2){width:42%}.packing-summary-table th:nth-child(3){width:9%}.packing-summary-table th:nth-child(4),.packing-summary-table th:nth-child(5){width:11%}.packing-summary-table th:nth-child(6){width:13%}.packing-summary-table td:first-child{white-space:nowrap;overflow-wrap:normal}.packing-summary-table td:nth-child(2){overflow-wrap:break-word}.packing-summary-table td:nth-child(n+3) input{max-width:110px}.packing-summary-table td:nth-child(3) input{max-width:78px}
.order-info .order-field-group{margin:12px 0;padding:0 0 12px;border-bottom:1px solid #edf0f3}.order-info .order-field-group h3,.order-info .order-field-group summary{font-size:14px;margin:4px 0 8px}.order-info .field-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:8px 12px}.order-info .field-grid>:is(label,.order-field){grid-column:span 3;margin:0;font-size:12px}.order-info .field-grid>:is(label,.order-field)[data-field=buyer_name],.order-info .field-grid>:is(label,.order-field)[data-field=consignee],.order-info .field-grid>:is(label,.order-field)[data-field=notify_party],.order-info .field-grid>:is(label,.order-field)[data-field=buyer_address],.order-info .field-grid>:is(label,.order-field)[data-field=seller_name],.order-info .field-grid>:is(label,.order-field)[data-field=seller_address],.order-info .field-grid>:is(label,.order-field)[data-field=bank_name],.order-info .field-grid>:is(label,.order-field)[data-field=bank_address],.order-info .field-grid>:is(label,.order-field)[data-field=payment_term],.order-info .field-grid>:is(label,.order-field)[data-field=payment_terms]{grid-column:span 6}.order-info .field-grid>:is(label,.order-field)[data-field=delivery_term],.order-info .field-grid>:is(label,.order-field)[data-field=trade_terms]{grid-column:span 2}.order-info .field-grid>:is(label,.order-field)[data-field=currency]{grid-column:span 1}.order-info .field-grid input:not([type=checkbox]){height:34px;padding:5px 8px;font-size:13px;margin-top:4px;font-weight:400}.order-info .field-grid>:is(label,.order-field)[data-field=currency] input,.order-info .field-grid>:is(label,.order-field)[data-field=delivery_term] input,.order-info .field-grid>:is(label,.order-field)[data-field=trade_terms] input{max-width:110px}@media(max-width:800px){.order-info .field-grid{grid-template-columns:repeat(4,minmax(0,1fr))}.order-info .field-grid>:is(label,.order-field){grid-column:span 2!important}.order-info .field-grid>:is(label,.order-field)[data-field=buyer_name],.order-info .field-grid>:is(label,.order-field)[data-field=buyer_address],.order-info .field-grid>:is(label,.order-field)[data-field=consignee],.order-info .field-grid>:is(label,.order-field)[data-field=payment_term],.order-info .field-grid>:is(label,.order-field)[data-field=payment_terms]{grid-column:span 4!important}}
.sticky-task-bar{position:sticky;top:0;z-index:30;display:flex;align-items:center;gap:14px;padding:14px 18px;margin:0 0 16px;background:#fffffff5;border:1px solid #dce5ec;border-radius:10px;box-shadow:0 4px 14px #16384d0d;backdrop-filter:blur(8px)}.sticky-task-title{min-width:120px;max-width:32%;flex:0 1 auto}.sticky-task-title .eyebrow{font-size:10px}.sticky-task-title h1{font-size:22px;margin:2px 0;overflow-wrap:anywhere}.uploaded-source-list{display:flex;gap:8px;flex:1;overflow-x:auto;padding:2px 0}.uploaded-source-group{display:flex;gap:6px;align-items:center;flex-shrink:0;max-width:250px;background:#eff5f7;border:1px solid #dce7eb;border-radius:6px;padding:6px 9px;font-size:12px}.uploaded-source-group strong{font-size:11px;color:#758496}.uploaded-source-group form{margin:0}.source-name{display:block;max-width:195px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.remove-source-group{background:transparent;color:#a54435;padding:2px 6px;font-size:20px;line-height:24px}.source-plus{font-size:24px;padding:4px 10px;line-height:32px}.source-upload-panel{margin:0 0 18px;scroll-margin-top:110px}.source-upload-panel>summary{font-size:15px}.source-upload-panel .actions{margin-top:12px}@media(max-width:650px){.sticky-task-bar{gap:7px;padding:10px}.sticky-task-title{min-width:85px;max-width:30%}.sticky-task-title h1{font-size:16px}.sticky-task-bar>.badge{display:none}.uploaded-source-group{max-width:180px}.source-name{max-width:135px}}
.transport-fold{margin:0 0 16px;border:1px solid #e0e6eb;border-radius:8px;background:#f8fafb;padding:12px 16px}.transport-fold>summary{font-size:14px}.transport-fold .editor-section{margin:12px 0 0;padding:0;border:0}.transport-fold label{margin:6px 0;font-size:12px}.transport-fold input:not([type=checkbox]){height:34px;padding:5px 8px}
.sticky-task-bar{flex-wrap:wrap}.sticky-task-bar>.source-upload-panel{flex:0 0 100%;width:100%;margin:0;padding:14px 0 0;border-top:1px solid #e0e6eb;max-height:calc(100vh - 160px);overflow-y:auto;scroll-margin-top:0}.sticky-task-bar>.source-upload-panel h2{font-size:15px;margin:0 0 8px}.sticky-task-bar>#source-mutation-status{flex-basis:100%;margin:0}.sticky-task-bar>#source-mutation-status:empty{display:none}
/* Source filenames sit side by side within each uploaded group. */
.uploaded-source-group{max-width:none}.uploaded-source-group>div{display:flex;align-items:center;gap:10px}.uploaded-source-group strong{white-space:nowrap}.uploaded-source-group .source-name{display:inline-block;max-width:240px}.uploaded-source-group .source-name+.source-name{border-left:1px solid #cddde3;padding-left:10px}@media(max-width:650px){.uploaded-source-group{max-width:none}.uploaded-source-group .source-name{max-width:160px}}
.uploaded-source-group .source-file-inline{display:inline-flex;align-items:center;gap:5px;min-width:0}.uploaded-source-group .source-file-inline+.source-file-inline{border-left:1px solid #cddde3;padding-left:10px}.uploaded-source-group .source-file-inline .file-icon{flex-basis:18px;width:18px;height:22px;font-size:10px}.uploaded-source-group .source-file-inline .file-icon.pdf{font-size:7px}
/* Match source-group captions to the task caption, without a tinted pill. */
.uploaded-source-group{background:transparent;border:0;border-radius:0;padding:0 4px}.uploaded-source-group>div{display:flex;flex-wrap:wrap;align-items:center;gap:4px 10px}.uploaded-source-group>div>strong{flex:0 0 100%;font-size:10px;font-weight:700;letter-spacing:2px;color:#71859b;line-height:1.65}.uploaded-source-group .source-file-inline{margin-top:0}.uploaded-source-group .source-name{font-size:12px}.uploaded-source-list{gap:20px;align-items:center}.sticky-task-title>.eyebrow{display:block;margin:0}
/* Source audit flags appear at the actual fields requiring review. */
#structured-editor input.review-field-issue{background:#fff0f3;border-color:#eaa9b6}#structured-editor input.review-field-issue:focus{outline:2px solid #e8abb9;outline-offset:1px}.row-issue-badge{display:block;width:max-content;font-size:10px;line-height:17px;color:#a13e57;background:#fff0f3;border-radius:3px;padding:0 5px;margin-top:3px;cursor:help}.field-issue-note{display:block;color:#a13e57;font-size:11px;max-width:none;margin:3px 0}
/* Keep short order fields stacked, even when their inputs have a max width. */
.order-info .field-grid>:is(label,.order-field){display:flex;flex-direction:column;align-items:stretch;justify-content:flex-start;gap:0}.order-info .field-grid>:is(label,.order-field) input:not([type=checkbox]){display:block;flex:none}.order-info .field-grid>:is(label,.order-field)[data-field=currency] input,.order-info .field-grid>:is(label,.order-field)[data-field=delivery_term] input,.order-info .field-grid>:is(label,.order-field)[data-field=trade_terms] input{width:100%;margin-top:4px}
.audit-issue-line{display:flex;align-items:baseline;gap:8px;white-space:normal}.audit-issue-line .row-issue-badge{display:inline-block;flex-shrink:0;margin:0;cursor:default}.row-issue-text{font-size:12px;line-height:1.6;color:#237447;overflow-wrap:anywhere}.review-product-table .audit-issue-row td,.packing-summary-table .audit-issue-row td{padding:2px 7px 8px;border-top:0;white-space:normal;background:#fffafb}
.order-info .field-grid>.order-field{font-size:12px;font-weight:600}.order-info .field-grid>.field-with-sources{grid-column:span 6}.field-source-options{display:flex;flex-direction:column;gap:4px;margin-top:6px;padding:7px 9px;border:1px solid #e0e6eb;border-radius:5px;background:#f8fafb}.order-info .field-source-option{display:flex;align-items:flex-start;gap:6px;margin:0;font-size:12px;font-weight:400;line-height:1.6;cursor:pointer}.order-info .field-source-option input[type=radio]{width:14px;min-width:14px;height:14px;padding:0;margin:3px 0 0;accent-color:#176e83;flex:none}.field-source-option span{overflow-wrap:anywhere}.order-info input.has-source-options[readonly]{background:#f3f6f8;color:#425b70}.order-info .field-grid>.field-with-sources input.has-source-options{max-width:none}.field-with-sources .field-issue-note{order:3}@media(max-width:800px){.order-info .field-grid>.field-with-sources{grid-column:span 4!important}}
.order-info .field-grid>.field-with-sources{display:grid;grid-template-columns:minmax(100px,1fr) minmax(150px,1.35fr);gap:4px 10px;align-items:start}.field-with-sources>.order-field-caption{grid-column:1/-1}.field-with-sources>input.has-source-options{grid-column:1;margin-top:0!important}.field-with-sources>.field-source-options{grid-column:2;grid-row:2;margin-top:0}.field-with-sources>.field-issue-note{grid-column:1/-1;grid-row:3}@media(max-width:650px){.order-info .field-grid>.field-with-sources{display:flex}.field-with-sources>.field-source-options{margin-top:6px}}
/* Task, status and file groups align left; only the add button is pushed right. */
.sticky-task-bar>.uploaded-source-list{flex:0 1 auto;min-width:0}.sticky-task-bar>.source-plus{margin-left:auto;flex-shrink:0}.sticky-task-bar>.badge{flex-shrink:0}@media(max-width:650px){.sticky-task-bar>.badge{display:inline-block}.sticky-task-bar>.uploaded-source-list{flex-shrink:1}}
.product-detail-row .field-grid{grid-template-columns:repeat(4,minmax(0,1fr));gap:6px 12px}.product-detail-row .field-grid>label{display:flex;flex-direction:column;align-items:stretch;font-size:12px;margin:0;gap:3px}.review-product-table .product-detail-row td{padding:10px 12px}.product-detail-row .field-grid input:not([type=checkbox]){height:30px;font-size:12px;padding:4px 7px;margin:0;font-weight:400;line-height:20px}.product-detail-row .field-grid>label[data-field=packing],.product-detail-row .field-grid>label[data-field=remarks],.product-detail-row .field-grid>label[data-field=usage],.product-detail-row .field-grid>label[data-field=material],.product-detail-row .field-grid>label[data-field=material_cn],.product-detail-row .field-grid>label[data-field=factory_origin]{grid-column:span 2}.product-detail-row .field-grid>label[data-field=seq_no] input,.product-detail-row .field-grid>label[data-field=pcs_per_ctn] input{max-width:95px}.product-detail-row .nested{padding:8px 10px;margin-top:10px}.product-detail-row summary{font-size:13px;margin-bottom:6px}.product-detail-row .nested summary{font-size:12px}@media(max-width:800px){.product-detail-row .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
/* Product detail widths follow typical content length rather than equal quarters. */
.product-detail-row .field-grid{grid-template-columns:repeat(12,minmax(0,1fr));gap:6px 10px}.product-detail-row .field-grid>label{grid-column:span 3}.product-detail-row .field-grid>label[data-field=seq_no],.product-detail-row .field-grid>label[data-field=pcs_per_ctn]{grid-column:span 1}.product-detail-row .field-grid>label[data-field=color],.product-detail-row .field-grid>label[data-field=hs_code]{grid-column:span 2}.product-detail-row .field-grid>label[data-field=brand],.product-detail-row .field-grid>label[data-field=size_range]{grid-column:span 3}.product-detail-row .field-grid>label[data-field=packing],.product-detail-row .field-grid>label[data-field=material],.product-detail-row .field-grid>label[data-field=material_cn],.product-detail-row .field-grid>label[data-field=factory_origin],.product-detail-row .field-grid>label[data-field=usage]{grid-column:span 4}.product-detail-row .field-grid>label[data-field=remarks]{grid-column:span 8}.product-detail-row .nested[data-group=customs_elements] .field-grid>label[data-field=brand_type],.product-detail-row .nested[data-group=customs_elements] .field-grid>label[data-field=export_preference]{grid-column:span 2}.product-detail-row .nested[data-group=customs_elements] .field-grid>label[data-field=model]{grid-column:span 5}.product-detail-row .field-grid>label[data-field=seq_no] input,.product-detail-row .field-grid>label[data-field=pcs_per_ctn] input{max-width:none}@media(max-width:800px){.product-detail-row .field-grid{grid-template-columns:repeat(6,minmax(0,1fr))}.product-detail-row .field-grid>label{grid-column:span 3!important}.product-detail-row .field-grid>label[data-field=seq_no],.product-detail-row .field-grid>label[data-field=pcs_per_ctn]{grid-column:span 1!important}.product-detail-row .field-grid>label[data-field=color],.product-detail-row .field-grid>label[data-field=hs_code]{grid-column:span 2!important}.product-detail-row .field-grid>label[data-field=remarks],.product-detail-row .field-grid>label[data-field=usage]{grid-column:span 6!important}}
.review-product-table th:nth-child(10){width:170px}.product-row-actions button{padding:5px 6px}
#review-warning-dialog{width:min(760px,calc(100% - 32px))}#review-warning-dialog .alert{margin:12px 0;padding:14px 18px}#review-warning-dialog .warning-message{font-size:13px;margin:8px 0}
/* Keep summary tabs immediately below the task bar; card overflow must not trap sticky. */
.review-editor-card{overflow:visible}#structured-editor>.summary-tabs{position:sticky;top:calc(var(--task-bar-height,80px) + 6px);z-index:20;background:#fff;box-shadow:0 4px 8px #16384d08;padding-top:4px;margin-top:12px}#structured-editor>[role=tabpanel]{scroll-margin-top:calc(var(--task-bar-height,80px) + 70px)}
.review-product-table .merge-notice-row td,.packing-summary-table .merge-notice-row td{background:#f3faf6}.merge-notice-row .row-issue-badge{background:#e4f3e9;color:#237447}
.sticky-task-bar>.reparse-task-form{margin:0;flex-shrink:0}.reparse-task-form button{font-size:12px;padding:7px 10px;white-space:nowrap}

/* Ports share one row; reserve the middle space for destination source choices. */
.order-info .order-port-group .field-grid{grid-template-columns:minmax(130px,1fr) minmax(110px,1fr) minmax(280px,2fr)}
.order-info .order-port-group .field-grid>.order-field{grid-column:auto!important;min-width:0}
.order-info .order-terms-group .field-grid{grid-template-columns:repeat(3,minmax(0,1fr)) 110px 80px}
.order-info .order-terms-group .field-grid>.order-field{grid-column:auto!important;min-width:0}
.order-info .order-terms-group .field-grid>.order-field:is([data-field=payment_term],[data-field=payment_terms]){grid-column:1/-1!important}
@media(max-width:700px){.order-info .order-port-group .field-grid,.order-info .order-terms-group .field-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.order-info .order-port-group .field-grid>.order-field[data-field=port_of_destination]{grid-column:1/-1!important;grid-row:2}.order-info .order-terms-group .field-grid>.field-with-sources{grid-column:1/-1!important}}

.review-product-table .product-row-actions button{background:transparent;padding:5px 3px;border-radius:0}
.review-product-table .product-row-actions .product-details-toggle{color:#233548}
.review-product-table .product-row-actions .product-delete{color:#c73535;margin-left:6px}
.product-row-actions button:hover{text-decoration:underline}
.task-back{display:inline-flex;align-items:center;justify-content:center;flex:none;width:26px;height:36px;color:#233548;border-radius:4px}
.task-back:hover{color:#176e83}.task-back:focus-visible{outline:2px solid #176e83;outline-offset:2px}

.sticky-task-bar>.sticky-task-title{max-width:none;flex:0 1 auto;min-width:0}
.sticky-task-bar>.reparse-task-form{margin-left:auto}
.task-files-fold{flex:0 0 100%;min-width:0;border-top:1px solid #e3e9ef;padding-top:8px}
.task-files-fold>summary{font-size:12px;color:#526b80;cursor:pointer}
.task-files-row{display:flex;align-items:center;gap:14px;padding-top:10px;min-width:0}
.task-files-row>.uploaded-source-list{flex:1;min-width:0}
.task-files-row>.source-plus{flex:none;margin-left:auto}
.task-files-fold>.source-upload-panel{margin:12px 0 0;padding-top:12px;border-top:1px solid #e3e9ef;max-height:55vh;overflow-y:auto}
.task-files-fold>.source-upload-panel h2{font-size:15px}

.task-files-row>.uploaded-source-list{flex-direction:column;align-items:stretch;gap:8px;overflow-x:auto}
.task-files-row .uploaded-source-group{flex-shrink:0;padding:0;align-items:center}
.task-files-row .uploaded-source-group>div{display:grid;grid-template-columns:80px minmax(0,1fr);flex:1;gap:10px;min-width:0}
.task-files-row .uploaded-source-group>div>strong{font-size:11px;letter-spacing:0;white-space:nowrap}
.source-group-files{display:flex;align-items:center;flex-wrap:wrap;gap:6px 10px;min-width:0}
.task-files-row>.source-plus{background:transparent;color:#26834a;font-size:20px;font-weight:600;width:26px;height:26px;padding:0;line-height:26px;border-radius:0}
.task-files-row>.source-plus:hover{color:#176533}

.task-table{overflow-x:auto}.task-table td,.task-table th{padding:12px 14px;font-size:12px}.task-table .task-display-name{font-size:12px;margin-bottom:3px}.task-inline-files{display:flex;align-items:center;gap:8px;flex-wrap:nowrap}.task-inline-files .source-file{display:inline-flex;align-items:center;gap:4px;white-space:nowrap;margin:0;font-size:11px}.task-inline-files .source-file>span:last-child{max-width:210px;overflow:hidden;text-overflow:ellipsis}.task-inline-files .file-icon{width:14px;height:17px;flex:0 0 14px;font-size:8px;line-height:17px}.task-link{white-space:nowrap}.task-link form{display:inline;margin-left:10px}.task-delete{background:transparent;color:#c73535;padding:0;font-size:12px}.task-pagination{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-top:18px;font-size:12px}.task-pagination label{display:inline;margin:0;font-size:12px}.task-pagination select{padding:4px;border:1px solid #cad5df;border-radius:4px}.task-pagination a{padding:3px}

.task-table .task-name-column{min-width:150px;max-width:260px;font-weight:600;overflow-wrap:anywhere}.task-name-column a{color:inherit}

.task-bulk-actions{display:flex;align-items:center;gap:14px;margin:0 0 12px}.task-delete:disabled{opacity:.4;cursor:not-allowed}.task-table .task-select-column{width:35px;padding-right:4px}.task-select-column input{width:15px;height:15px}

.task-bulk-actions{justify-content:flex-end}.task-bulk-actions[hidden]{display:none}

#task-bulk-delete .task-bulk-actions{min-height:22px;margin-bottom:12px}#task-bulk-delete .task-bulk-actions[hidden]{display:flex;visibility:hidden;pointer-events:none}

/* Selection controls never contribute to the table's document-flow height. */
#task-bulk-delete{position:relative;height:0;margin:0;padding:0;border:0}
#task-bulk-delete .task-bulk-actions{position:absolute;right:0;bottom:10px;height:22px;min-height:0;margin:0;white-space:nowrap}

.task-date-filter{display:flex;align-items:center;gap:8px;flex-wrap:wrap;padding-right:150px;margin:0 0 14px;font-size:12px;min-height:32px}.task-date-filter input:not([type=hidden]){width:145px;padding:4px 7px;height:30px;font-size:12px}.task-date-filter input[type=number]{width:85px}.task-date-filter select{padding:5px;border:1px solid #cad5df;border-radius:4px;font-size:12px}.task-date-filter button{padding:4px 10px;font-size:12px}

#task-bulk-delete .task-bulk-actions{opacity:0;pointer-events:none;width:160px;justify-content:flex-end;overflow:hidden}
#task-bulk-delete .task-bulk-actions.has-selection{opacity:1;pointer-events:auto}
#task-selection-count{display:inline-block;min-width:65px;font-variant-numeric:tabular-nums}
html{scrollbar-gutter:stable}

#task-bulk-delete .task-bulk-actions{width:220px}.task-copy{background:transparent;color:#176e83;padding:0;font-size:12px}.task-copy:disabled{opacity:.4;cursor:not-allowed}

/* Lightweight interaction feedback without changing element size or position. */
a,button,summary{transition:color .15s ease,background-color .15s ease,filter .15s ease;}
@media(hover:hover){
 a[href]:not(.button):hover{color:#105669;text-decoration:underline;text-underline-offset:3px}
 button:not(:disabled):hover,a.button:hover{filter:brightness(.9)}
 button.secondary:not(:disabled):hover{background-color:#dce9ee}
 summary:hover{color:#176e83}
}
a[href]:focus-visible,button:focus-visible,summary:focus-visible{outline:2px solid #31869a;outline-offset:3px}
button:disabled{filter:none}
@media(prefers-reduced-motion:reduce){a,button,summary{transition:none}}

.template-card .template-select-all{font-size:13px;margin:0 0 8px;display:flex;align-items:center;gap:5px}

.product-extra-fields>.field-grid{grid-template-columns:repeat(12,minmax(0,1fr));grid-auto-flow:row dense}
.product-extra-fields>.field-grid>label[data-field=brand]{grid-column:span 4}
.product-extra-fields>.field-grid>label[data-field=hs_code]{grid-column:span 3}
.product-extra-fields>.field-grid>label[data-field=pcs_per_ctn]{grid-column:span 2}
.product-extra-fields>.product-variant-rows{margin-top:8px;border-top:1px solid #e2e9ef;padding-top:8px}
.product-detail-row .product-variant-rows>.field-grid{display:flex;flex-direction:column;gap:6px}
.product-detail-row .product-variant-rows>.field-grid>label{display:grid;grid-template-columns:90px minmax(0,1fr);align-items:center;gap:8px;margin:0}
.product-detail-row .product-variant-rows input{width:100%;max-width:none}

.sticky-task-title input.review-task-name{width:310px;max-width:100%;font-size:21px;font-weight:700;line-height:1.3;height:36px;padding:3px 5px;margin:0;border:1px solid transparent;background:transparent}.sticky-task-title input.review-task-name:hover{border-color:#cad5df}.sticky-task-title input.review-task-name:focus{border-color:#31869a;background:#fff;outline:none}

.account-dropdown{position:relative}.account-toggle{background:transparent;color:#233548;padding:7px 4px;font-size:14px;font-weight:400;display:flex;align-items:center;gap:7px}.account-toggle span{font-size:10px;color:#758496}.account-menu{position:absolute;right:0;top:100%;z-index:100;min-width:155px;padding:6px;background:#fff;border:1px solid #e0e6eb;border-radius:7px;box-shadow:0 5px 18px #16384d18}.account-menu>a,.account-menu form button{display:block;width:100%;padding:9px 12px;text-align:left;font-size:13px;background:transparent;border-radius:4px;color:#233548;font-weight:400;white-space:nowrap}.account-menu form{margin:0}.account-menu>a:hover,.account-menu form button:hover{background:#edf4f6;text-decoration:none}.account-menu form button{color:#b64040}

.sticky-task-bar>.sticky-task-title{flex:0 1 auto;display:flex;align-items:center;flex-wrap:wrap;gap:2px 5px}.sticky-task-title>.eyebrow{flex-basis:100%}.sticky-task-title input.review-task-name{width:fit-content;max-width:280px;field-sizing:content}.edit-task-name{background:transparent;color:#758496;padding:3px;font-size:18px}.review-bottom-actions{position:fixed;bottom:0;left:0;right:0;z-index:45;background:#fffffff5;border-top:1px solid #dce5ec;box-shadow:0 -3px 12px #16384d0a;padding:12px max(24px,calc((100vw - 1152px)/2));display:flex;justify-content:space-between;align-items:center;gap:18px}.review-bottom-actions>button{min-height:50px;min-width:210px;font-size:16px;padding:12px 24px}.review-bottom-actions>[data-back-upload]{display:none}body:has(.review-bottom-actions){padding-bottom:85px}@media(max-width:600px){.review-bottom-actions{padding:10px 14px}.review-bottom-actions>button{min-width:0;flex:1;font-size:14px;padding:10px}}

.review-product-table th.product-number,.review-product-table td.product-number{width:40px;text-align:center;color:#758496;font-size:12px;padding:7px 3px}

.template-row .generation-requirements{grid-column:1/-1;margin:0;padding:0 4px 6px;font-size:12px;color:#327a54}.generation-requirements.has-missing{color:#b04a36}.generation-requirements ul{margin:4px 0 0;padding-left:20px;max-height:160px;overflow:auto}.generation-requirements li{line-height:1.65}

.review-bottom-actions{justify-content:flex-start}.review-bottom-actions>#to-templates{margin-left:auto}.review-bottom-actions>.bottom-reparse{min-width:140px;font-size:14px}@media(max-width:600px){.review-bottom-actions{gap:6px}.review-bottom-actions>.bottom-reparse{min-width:0;font-size:12px}.review-bottom-actions>button{padding:8px;font-size:12px}}

.requirement-jump{background:transparent;color:inherit;padding:0;text-align:left;font-size:12px;line-height:1.65;font-weight:400}.requirement-jump:hover{text-decoration:underline}.requirement-focus{outline:2px solid #dc9d43!important;outline-offset:2px}

.template-default-candidates{grid-column:1/-1;font-size:12px;color:#526b80}.template-default-candidates p{margin:4px 0}.template-value-choice{background:#edf5f0;color:#267c51;font-size:12px;padding:3px 8px;margin:3px 5px;border:1px solid #d8e8de}

.customs-reference-box{margin-top:10px;padding-top:8px;border-top:1px solid #dce5ec}.customs-reference-box select{max-width:100%;width:100%;padding:6px;font-size:12px}.customs-reference-box button{margin-top:7px;font-size:12px;padding:6px 10px}.reference-template-preview{font-size:12px;font-family:inherit;white-space:pre-wrap;max-height:160px;overflow:auto;margin:8px 0 0;color:#526b80}.customs-source-note{font-size:11px;color:#758496}

.template-card .template-row{grid-template-columns:210px minmax(0,1fr)}.template-card .compact-heading h2{margin:0}.template-card .compact-heading .button{font-size:13px;padding:7px 12px}@media(max-width:650px){.template-card .template-row{grid-template-columns:1fr}}

.template-workspace-columns{display:grid;grid-template-columns:minmax(340px,5fr) minmax(420px,7fr);gap:20px;align-items:start}.template-list-pane{min-width:0}.template-list-pane>.padded{padding:20px}.template-list-pane .managed-template{gap:10px;padding:14px 0}.template-list-pane .managed-template>div{flex-basis:100%;min-width:0}.template-list-pane .rename-template{min-width:180px}.template-list-pane .managed-template p{overflow-wrap:anywhere;font-size:11px}.template-preview-choice{background:transparent;color:#233548;padding:0;text-align:left;font-size:14px;font-weight:600}.template-preview-choice:hover,.template-preview-choice.is-selected{color:#176e83;text-decoration:underline}.template-preview-pane{position:sticky;top:16px;padding:18px;min-width:0}.template-preview-heading h2{margin:0 0 6px}.template-preview-heading span{overflow-wrap:anywhere}.template-preview-pane iframe{width:100%;height:calc(100vh - 230px);min-height:480px;border:0;background:#f3f5f7}.template-preview-pane progress{width:100%}@media(max-width:1100px){.template-workspace-columns{grid-template-columns:1fr}.template-preview-pane{position:static}.template-preview-pane iframe{height:650px}}

.template-item-title{display:flex;align-items:center;gap:8px}.template-item-title .template-preview-choice{min-width:0;overflow-wrap:anywhere}.template-icon{display:inline-flex;align-items:center;justify-content:center;flex:none;width:30px;height:30px;padding:4px;border-radius:5px;background:transparent;color:#176e83;text-decoration:none}.template-icon:hover{background:#eaf3f5;text-decoration:none}.template-download-icon{margin-left:auto}.rename-template[hidden]{display:none}.template-list-pane .rename-template{flex-basis:100%;order:3}.template-list-pane .rename-template input{flex:1}.template-list-pane .template-item-info{flex:1;min-width:0}.template-item-title .template-icon:focus-visible{outline:2px solid #31869a;outline-offset:2px}

.template-list-pane .template-delete-form{margin:0 0 0 auto}.template-list-pane .template-delete-form .delete-button{background:transparent;border:0;box-shadow:none;color:#b54c40;font-size:12px;font-weight:400;padding:3px 8px;line-height:1.5}.template-list-pane .template-delete-form .delete-button:hover{background:transparent;color:#96372d;text-decoration:underline}

.template-kind-tabs{display:flex;align-items:center;flex-wrap:wrap;gap:4px 12px;padding:4px 0 12px}.template-kind-tabs a{padding:6px 0;border-bottom:2px solid transparent;font-size:12px;color:#758496;white-space:nowrap}.template-kind-tabs a:hover{color:#176e83;text-decoration:none}.template-kind-tabs a[aria-current=page]{color:#176e83;border-bottom-color:#176e83;font-weight:600}

.template-list-heading{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-bottom:16px}.template-list-heading h2{margin:0}.template-list-heading button{padding:9px 14px;font-size:13px;white-space:nowrap}

.template-list-pane .managed-template{padding:12px 0;gap:0}.template-item-meta{display:flex;align-items:center;gap:10px;justify-content:space-between}.template-list-pane .template-item-meta p{display:flex;align-items:center;gap:5px;min-width:0;margin:3px 0 0;line-height:1.6}.template-item-meta p>span:last-child{overflow-wrap:anywhere}.template-item-meta .file-icon{width:14px;height:17px;flex:0 0 14px;font-size:8px}.template-item-meta .template-delete-form{flex:none;align-self:center}.template-list-pane .template-item-meta .delete-button{padding:2px 8px}.template-list-pane .rename-template{margin-top:10px}

.task-status-cell{min-width:220px;max-width:360px}.task-status-details{margin-top:6px;color:#758496;font-size:11px;line-height:1.65;overflow-wrap:anywhere}.task-status-details>div+div{margin-top:2px}

.document-steps{display:flex;flex-wrap:wrap;gap:12px 24px;background:#fff;border:1px solid #dce5ec;border-radius:10px;padding:16px 20px;margin-bottom:20px}.document-steps>button,.document-steps>span{display:inline-flex;align-items:center;gap:8px;background:transparent;color:#526f82;font-size:14px;padding:0;line-height:28px;border:0}.document-steps>button:hover{background:transparent;color:#176e83}.document-steps>button>span,.document-steps>span>span{display:inline-flex;align-items:center;justify-content:center;width:26px;height:26px;border-radius:50%;background:#eaf3f5;color:#176e83;font-weight:600}.document-step-title{font-size:22px;line-height:1.5;font-weight:700;margin:0 0 20px;letter-spacing:0;color:#233548;scroll-margin-top:110px}

.generation-workspace{display:grid;grid-template-columns:minmax(320px,5fr) minmax(400px,7fr);gap:20px;align-items:start}.generation-options{min-width:0}.generation-options .template-row{grid-template-columns:1fr;gap:6px}.generation-options .template-row select{width:100%;min-width:0}.generation-preview{position:sticky;top:16px;min-width:0}.generation-preview-controls{display:flex;gap:8px;align-items:center}.generation-preview-controls select{flex:1;min-width:0}.generation-preview-controls button{padding:10px 12px;white-space:nowrap}.generation-preview iframe{width:100%;height:650px;border:0;background:#f3f5f7}.generation-preview #generated-preview-status{overflow-wrap:anywhere}@media(max-width:1100px){.generation-workspace{grid-template-columns:1fr}.generation-preview{position:static}}

.step-fold>summary,.task-files-fold.step-fold>summary{font-size:18px;font-weight:700;line-height:1.5;color:#233548;letter-spacing:0;cursor:pointer;margin:0;padding:4px 0;list-style:disclosure-closed}.step-fold[open]>summary,.task-files-fold.step-fold[open]>summary{list-style:disclosure-open;margin-bottom:18px}.step-fold>summary:hover{color:#176e83}.step-fold>summary:focus-visible{outline:2px solid #7caebc;outline-offset:4px}.step-fold.wizard-section{scroll-margin-top:110px}

.task-output-jump{margin-left:auto;font-size:13px;white-space:nowrap}#saved-output-files,#download-step{scroll-margin-top:120px;margin-top:20px;margin-bottom:90px}

.task-status-and-files{display:flex;flex-direction:column;align-items:flex-start;gap:5px;flex:1;min-width:0}.task-output-shortcuts{display:flex;align-items:center;flex-wrap:wrap;gap:5px 14px;font-size:12px}.task-output-shortcuts a{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.task-output-shortcuts .file-icon{width:13px;height:16px;flex:0 0 13px;font-size:8px}

.review-step-stack{min-width:0}.review-step-stack #review-form{margin:0}.review-step-stack .step-fold,#task-files-step{margin:0 0 20px;padding:24px;border:1px solid #dce5ec;border-radius:10px;background:#fff}.review-step-stack .wizard-section{border-top:1px solid #dce5ec}.step-fold>summary,.task-files-fold.step-fold>summary,.step-fold[open]>summary,.task-files-fold.step-fold[open]>summary{list-style:none;display:flex;align-items:center;gap:10px;padding:0;min-height:32px;margin:0;font-size:18px;line-height:28px}.step-fold>summary::-webkit-details-marker{display:none}.step-fold>summary::before{content:'';display:block;flex:0 0 7px;width:7px;height:7px;border-right:2px solid currentColor;border-bottom:2px solid currentColor;transform:rotate(-45deg);margin:0 3px 0 2px}.step-fold[open]>summary::before{transform:rotate(45deg)}.step-fold[open]>summary{margin-bottom:18px}#review-data-step[open]>summary,#generation-step[open]>summary{position:sticky;top:var(--task-bar-height,80px);z-index:22;background:#fff;padding:12px 0;box-shadow:0 4px 8px #16384d08}#structured-editor>.summary-tabs{top:calc(var(--task-bar-height,80px) + 56px);z-index:21;margin-top:0}#structured-editor>[role=tabpanel]{scroll-margin-top:calc(var(--task-bar-height,80px) + 120px)}#task-files-step{border-top:1px solid #dce5ec;padding-top:24px}.review-step-stack .wizard-section{padding-top:24px}.review-step-stack .review-bottom-actions{margin:0}@media(max-width:650px){.review-step-stack .step-fold,#task-files-step{padding:18px}}

.authoring-steps{display:flex;flex-wrap:wrap;gap:10px;padding:14px;background:#fff;border-radius:8px;border:1px solid #dce5ec}.authoring-steps button{background:transparent;color:#64798a;padding:8px 12px}.authoring-steps button[aria-current=step]{background:#eaf3f5;color:#176e83}.authoring-layout{display:grid;grid-template-columns:minmax(360px,7fr) minmax(320px,5fr);gap:20px;align-items:start}.author-document{min-width:0}.author-binding{position:sticky;top:12px;min-width:0}.author-binding textarea{width:100%;font-size:14px;font-family:inherit}.author-binding select{width:100%}#author-document-content{overflow:auto;max-height:75vh;margin-top:12px}#author-document-content table{table-layout:auto;width:auto;min-width:100%}#author-document-content th{padding:4px;text-align:center;font-size:11px}#author-document-content td{padding:0;border:1px solid #dce5ec;min-width:85px}.author-node{display:block;width:100%;padding:7px;background:#fff;color:#233548;text-align:left;font-size:12px;font-weight:400;white-space:pre-wrap;overflow-wrap:anywhere;border-radius:0}.author-node:hover{background:#edf5f7}.author-node.is-bound{background:#e6f4ed;box-shadow:inset 3px 0 #3d9673}.author-merged{background:#f0f3f5}.author-paragraph{padding:8px 0;border-bottom:1px solid #e3e9ef}.author-paragraph .author-node{border:1px solid #dce5ec;border-radius:4px}.author-binding-row{display:flex;justify-content:space-between;gap:10px;padding:8px 0;border-bottom:1px solid #e3e9ef;font-size:12px;overflow-wrap:anywhere}.author-binding-row button{flex:none}#author-bindings{max-height:280px;overflow:auto}#author-suggestions button{font-size:12px;padding:5px 8px;margin:0 5px 5px 0}.author-region-row{display:flex;align-items:end;gap:12px;flex-wrap:wrap;margin-bottom:14px}.author-region-row input{width:100px}.author-region-row label{margin:0}#author-original-frame,#author-sample-frame{width:100%;height:650px;border:0;background:#f3f5f7;margin:12px 0}#authoring-message{white-space:pre-wrap;overflow-wrap:anywhere}@media(max-width:1100px){.authoring-layout{grid-template-columns:1fr}.author-binding{position:static}}

.template-author-link{flex:none;font-size:12px;white-space:nowrap;margin-left:auto}.template-item-meta .template-author-link+.template-delete-form{margin-left:0}

.author-sheet-tools{display:flex;align-items:center;gap:10px}.author-sheet-tools select{min-width:0;max-width:65%}.author-sheet-canvas{position:relative}.author-sheet-stage{position:absolute;top:0;left:0;transform-origin:top left}#author-document-content .author-sheet-table{table-layout:fixed;border-collapse:collapse;min-width:0;margin:0;background:#fff}#author-document-content .author-sheet-table th{background:#f5f7fa;color:#8192a2;font:10px/20px Arial,sans-serif;height:24px;padding:0;border:1px solid #e3e9ef}#author-document-content .author-sheet-table td{min-width:0;padding:0 2px;overflow:hidden;border:1px solid #e8edf2;position:relative;box-sizing:border-box}#author-document-content .author-sheet-table .author-node{min-width:0;min-height:16px;height:100%;padding:0 1px;margin:0;background:transparent;color:inherit;font:inherit;text-align:inherit;white-space:inherit;line-height:1.15;border:0;box-shadow:none;border-radius:0;overflow:hidden;overflow-wrap:normal}#author-document-content .author-sheet-table .author-node:hover{outline:2px solid #31869a;outline-offset:-2px;background:#31869a16}#author-document-content .author-sheet-table .author-node.is-bound{box-shadow:inset 3px 0 #3d9673;background:#3d967318}#author-document-content .author-sheet-table .author-control-node{display:inline-block;width:auto;margin-right:5px}.author-sheet-image{position:absolute;pointer-events:none;object-fit:contain}.author-document{padding:18px}#author-document-content{background:#eef2f6;padding:5px;min-height:300px}

#author-document-content .author-sheet-table .author-node.is-selected{outline:2px solid #176e83;outline-offset:-2px;background:#176e8312}

.author-text-selection{position:relative}.author-text-selection textarea{display:block}.author-text-selection #author-text-highlight{position:absolute;pointer-events:none;overflow:hidden;white-space:pre-wrap;overflow-wrap:break-word;color:#233548}.author-text-selection textarea.has-selection-mirror{color:transparent}.author-text-selection mark{background:#ffe08a;color:#233548;border-radius:2px}#author-selected-text{display:block;margin-top:5px;white-space:pre-wrap;overflow-wrap:anywhere;max-height:64px;overflow:auto}

.author-field-picker{position:relative;margin:12px 0}.author-field-picker>label{display:block;margin-bottom:6px}#author-field-toggle{display:flex;align-items:center;justify-content:space-between;gap:10px;width:100%;padding:10px 12px;background:#fcfdfe;color:#233548;border:1px solid #cad5df;border-radius:6px;text-align:left;font-size:14px;font-weight:400}#author-field-toggle:hover{background:#f5f9fa}#author-field-panel{position:absolute;top:100%;left:0;right:0;z-index:50;background:#fff;border:1px solid #cad5df;border-radius:7px;box-shadow:0 8px 24px #16384d24;padding:10px;margin-top:4px}#author-field-panel #author-field-search{width:100%;margin:0;padding:9px 10px}#author-field-panel #author-field-count{margin:5px 2px;font-size:11px}#author-field-options{max-height:320px;overflow:auto}.author-field-group{font-size:11px;font-weight:600;color:#758496;padding:9px 8px 4px}#author-field-options .author-field-option{display:block;width:100%;padding:8px;text-align:left;background:transparent;color:#233548;font-size:13px;font-weight:400;border-radius:4px}#author-field-options .author-field-option:hover,#author-field-options .author-field-option:focus-visible{background:#eaf3f5;color:#176e83;outline:none}#author-field-options .author-field-option[aria-selected=true]{background:#edf5f7;color:#176e83}

#template-authoring button:disabled{cursor:not-allowed}#template-authoring[data-busy=true] button:disabled{cursor:wait}#author-publish-status{white-space:pre-wrap;overflow-wrap:anywhere}

.author-draft-bar{display:flex;align-items:center;gap:14px;position:sticky;top:0;z-index:32;background:#fffffff5;padding:10px 14px;border:1px solid #dce5ec;border-radius:7px;margin:12px 0}.author-draft-bar button{flex:none;padding:9px 14px;font-size:13px}.author-draft-bar p{margin:0}

#author-cell-products[aria-pressed=true]{background:#e4f3ea;color:#24704f;border:1px solid #91c5a9}.author-cell-mode-state{padding:10px 12px;background:#f0f8f3;border:1px solid #b9d9c7;border-radius:6px;font-size:12px;margin:8px 0;overflow-wrap:anywhere}.author-cell-mode-state p{margin:5px 0;white-space:pre-wrap}#author-document-content .author-sheet-table .author-node.is-product-list{outline:2px dashed #3d9673;outline-offset:-3px}

.authoring-steps{position:sticky;top:0;z-index:32;align-items:center;gap:10px}.authoring-steps .author-draft-bar{position:static;margin:0 0 0 auto;padding:0;border:0;background:transparent;gap:10px;flex-wrap:wrap;justify-content:flex-end}.authoring-steps .author-draft-bar #author-save-draft{background:#eaf3f5;color:#176e83;padding:9px 14px;white-space:nowrap}.authoring-steps .author-draft-bar p{font-size:11px;max-width:280px;line-height:1.5}@media(max-width:900px){.authoring-steps .author-draft-bar{width:100%;border-top:1px solid #e3e9ef;padding-top:8px}}

.author-word-page{background:#fff;box-sizing:border-box;font:14px/1.25 Arial,"Microsoft YaHei",sans-serif;color:#000;box-shadow:0 2px 12px #16384d18}#author-document-content .author-word-table{border-collapse:collapse;table-layout:fixed;min-width:0;margin:0 0 8px;background:#fff}#author-document-content .author-word-table td{min-width:0;padding:3px 5px;border:0;overflow-wrap:break-word}#author-document-content .author-word-table.has-grid td{border:1px solid #000}#author-document-content .author-word-paragraph{display:block;min-height:1em;width:100%;padding:0;color:inherit;font:inherit;background:transparent;white-space:pre-wrap;overflow-wrap:break-word;text-align:inherit;border-radius:0;line-height:inherit}#author-document-content .author-word-paragraph:hover{outline:1px solid #31869a;background:#31869a0d}#author-document-content .author-word-paragraph.is-bound{box-shadow:inset 3px 0 #3d9673;background:#3d967310}#author-document-content .author-word-paragraph.is-selected{outline:2px solid #176e83}#author-document-content .author-word-paragraph img{max-width:100%;object-fit:contain;vertical-align:middle}.author-word-header{margin-bottom:14px}.author-word-footer{margin-top:16px}#author-document-content .author-word-table .author-word-table{max-width:100%}

#author-document-content .author-word-paragraph.is-product-prototype{border-left:3px solid #3d9673;background:#3d967310}#author-paragraph-products{border-top:1px solid #dce5ec;margin-top:16px;padding-top:12px}#author-paragraph-products .actions{gap:6px;flex-wrap:wrap}#author-paragraph-products .actions button{font-size:12px;padding:8px}
.author-editor{border:1px solid #dce5ec;border-radius:8px;padding:12px;margin:12px 0;background:#f8fbfc}.author-format-tools{display:flex;flex-wrap:wrap;gap:10px;align-items:center;margin:12px 0}.author-format-tools label{font-size:12px;margin:0}.author-format-tools input[type=number]{width:78px}.author-format-tools input[type=color]{width:48px;height:32px;padding:2px}.author-editor textarea{min-height:70px}.author-editor .actions{flex-wrap:wrap}
