:root{
  --theme-sidebar:#123b5d;--theme-sidebar-text:#f2f7fb;--theme-sidebar-muted:#c9d9e7;
  --theme-sidebar-mark-bg:#d9e8f2;--theme-sidebar-mark-text:#153e5c;--theme-primary:#1f5f8b;
  --theme-primary-hover:#174b70;--theme-accent:#2d7fa7;--theme-soft:#f2f7fb;--theme-soft-strong:#dbeaf4;
  --theme-canvas:#f4f7fa;--theme-paper:#fff;--theme-ink:#172f42;--theme-muted:#5e7182;--theme-line:#d5e1ea;
  --theme-chart:#1d6f9f;--theme-tooltip:#111827;--root-scale:1;--changed-bg:#fff4cc;
}
body{font-size:calc(14px * var(--root-scale));color:var(--theme-ink);background:var(--theme-canvas)}html{background:var(--theme-canvas)}
.sidebar{background:var(--theme-sidebar);color:var(--theme-sidebar-text)}.brand-mark{background:var(--theme-sidebar-mark-bg);color:var(--theme-sidebar-mark-text)}
.button{color:var(--theme-ink);background:var(--theme-paper);border-color:var(--theme-line);transition:border-color .16s,color .16s,background .16s,transform .1s,box-shadow .16s}.button:hover{border-color:var(--theme-accent);color:var(--theme-primary-hover)}.button:active{transform:translateY(1px)}.button:focus-visible{outline:3px solid color-mix(in srgb,var(--theme-accent) 34%,transparent);outline-offset:2px}.button.primary{background:var(--theme-primary);border-color:var(--theme-primary)}.button.primary:hover{background:var(--theme-primary-hover);border-color:var(--theme-primary-hover);color:#fff}
.card,.metric,.quote-summary{background:var(--theme-paper);border-color:var(--theme-line)}.table-wrap{border-color:var(--theme-line)}th{background:var(--theme-soft);color:var(--theme-primary-hover)}input,select,textarea{background:var(--theme-paper);color:var(--theme-ink);border-color:var(--theme-line)}input:focus,select:focus,textarea:focus{border-color:var(--theme-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--theme-accent) 22%,transparent)}
.field-grid.three{grid-template-columns:repeat(3,minmax(180px,1fr))}.field-grid.one{grid-template-columns:1fr}
.review-grid,.readonly-results,.fit-metrics,.import-summary{display:grid;grid-template-columns:repeat(3,minmax(150px,1fr));gap:12px;margin-bottom:18px}.review-grid>div,.readonly-results>div,.fit-metrics>div,.import-summary>div{padding:13px;border:1px solid var(--theme-line);border-radius:10px;background:var(--theme-paper)}.review-grid span,.readonly-results span,.fit-metrics span,.import-summary span{display:block;color:var(--theme-muted);font-size:max(13px,calc(13px * var(--root-scale)))}.review-grid strong,.readonly-results strong,.fit-metrics strong,.import-summary strong{display:block;margin-top:3px;color:var(--theme-primary-hover);font-size:calc(16px * var(--root-scale))}.button.large{padding:11px 22px}
.progress-ring{--progress:0;width:178px;height:178px;border-radius:50%;display:grid;place-items:center;background:conic-gradient(var(--theme-primary) calc(var(--progress)*1%),var(--theme-soft-strong) 0);box-shadow:0 14px 38px color-mix(in srgb,var(--theme-primary) 16%,transparent)}.progress-ring:before{content:"";grid-area:1/1;width:138px;height:138px;border-radius:50%;background:var(--theme-paper)}.progress-ring>div{grid-area:1/1;z-index:1;width:138px;height:138px;display:grid;place-items:center}.progress-ring strong{position:static;display:block;margin:0;text-align:center;line-height:1;font-size:calc(30px * var(--root-scale));color:var(--theme-primary-hover)}.progress-count{font-size:calc(18px * var(--root-scale));font-weight:700;color:var(--theme-muted);font-variant-numeric:tabular-nums}
.metric-grid{display:grid;grid-template-columns:repeat(3,minmax(180px,1fr));gap:13px;margin-bottom:18px}.metric.emphasis{border-color:var(--theme-accent);background:var(--theme-soft)}.rule-results{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.rule-result{display:grid;grid-template-columns:1fr auto;gap:5px 15px;padding:13px;border:1px solid var(--theme-line);border-radius:10px}.rule-result small{grid-column:1/-1;color:var(--theme-muted);font-size:max(13px,calc(13px * var(--root-scale)))}.rule-result.pass{border-color:#b9dfce;background:#f4fbf8}.rule-result.fail{border-color:#efc5c5;background:#fff7f7}.result-actions{justify-content:flex-end;margin-top:18px}
.fit-empty{padding:20px}.fit-metrics{margin-top:12px}.run-action-row{display:flex;justify-content:flex-end;margin:16px 0 0}
.probability-chart{display:block;width:100%;height:auto;overflow:visible}.probability-chart text{font-family:"PingFang SC","Microsoft YaHei",sans-serif;fill:var(--theme-muted);font-size:max(12px,calc(12px * var(--root-scale)))}.probability-chart .axis-title{fill:var(--theme-ink);font-size:max(14px,calc(14px * var(--root-scale)));font-weight:700}.chart-grid line{stroke:var(--theme-line);stroke-width:1}.chart-axis{stroke:var(--theme-muted);stroke-width:1.3}.chart-line{fill:none;stroke:var(--theme-accent);stroke-width:3;vector-effect:non-scaling-stroke}.chart-line.exceedance{stroke:var(--theme-chart)}.chart-line.empirical,.chart-legend .empirical{stroke:#ed7d31}.chart-line.fitted,.chart-legend .fitted{stroke:#4472c4}.chart-legend line{stroke:var(--theme-accent);stroke-width:3}.chart-shell{position:relative}.chart-event-layer{fill:transparent;pointer-events:all;cursor:crosshair}.chart-reference{stroke:var(--theme-muted);stroke-width:1.5;stroke-dasharray:5 4}.chart-current{fill:var(--theme-chart);stroke:#fff;stroke-width:2}.chart-tooltip{position:absolute;z-index:4;min-width:190px;padding:10px 12px;border:1px solid #374151;border-radius:9px;background:#111827;color:#fff!important;box-shadow:0 8px 24px rgba(0,0,0,.28);pointer-events:none;font-size:max(12px,calc(12px * var(--root-scale)));line-height:1.45;white-space:nowrap;opacity:0;visibility:hidden;transition:opacity .1s ease}.chart-tooltip.visible{opacity:1;visibility:visible}.chart-tooltip strong,.chart-tooltip span{display:block;color:#fff!important}.threshold-line{stroke:var(--theme-muted);stroke-width:1.5;stroke-dasharray:6 5}.threshold-label{fill:var(--theme-muted);font-weight:700}.chart-note{margin:3px 0 0;color:var(--theme-muted);font-size:max(13px,calc(13px * var(--root-scale)))}.chart-empty{padding:90px 20px;text-align:center;color:var(--theme-muted)}
.backup-export-card{display:grid;grid-template-columns:minmax(240px,.7fr) minmax(0,1.5fr);gap:24px;align-items:start}.backup-copy h3{margin-top:0}.backup-copy p,.import-card p{margin:3px 0;color:var(--theme-muted);font-size:max(13px,calc(13px * var(--root-scale)))}.backup-copy .button{margin-top:18px}.backup-preview{height:250px;max-width:100%;overflow:auto;border:1px solid var(--theme-line);border-radius:10px}.backup-preview table{min-width:720px}.backup-preview thead{position:sticky;top:0}.import-summary{grid-template-columns:repeat(2,minmax(130px,1fr))}.factor-grid>.card{margin-bottom:0;min-width:0}.factor-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:start;margin-bottom:18px}.factor-grid .factor-table-wrap{max-height:320px}.factor-grid table{min-width:100%}
table thead th{font-size:max(14px,calc(14px * var(--root-scale)));font-weight:700}.table-wrap table tbody{font-size:calc(14px * var(--root-scale))}.numeric{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums}
.changed-field{background:var(--changed-bg)!important}.changed-row{box-shadow:inset 4px 0 0 #e3b43b}.changed-list{outline:2px solid #efca68;outline-offset:-2px}
.quote-readonly input,.quote-readonly select,.quote-readonly textarea,.quote-readonly button[data-action^="add-"],.quote-readonly button[data-action^="remove-"],.quote-readonly [data-action="model-modify"],.quote-readonly [data-action="model-keep"],.quote-readonly [data-action="calibrate-quote-model"],.quote-readonly [data-action="run-quote"],.quote-readonly [data-action="judge-quote"],.quote-readonly [data-action="complete-quote"]{color:#6d7778;background:#eef1f1;pointer-events:none}.quote-readonly .bucket-import-label{color:#6d7778;background:#eef1f1;pointer-events:none}.quote-readonly .edit-locked{display:none}
.sidebar-settings{position:relative;margin-top:auto;padding:18px 7px 0}.settings-button{width:42px;height:42px;border:1px solid rgba(255,255,255,.24);border-radius:11px;display:grid;place-items:center;color:var(--theme-sidebar-text);background:rgba(255,255,255,.08);cursor:pointer}.settings-button:hover{background:rgba(255,255,255,.16)}.settings-button:focus-visible{outline:3px solid rgba(255,255,255,.55);outline-offset:2px}.settings-button svg{width:21px;height:21px;fill:currentColor}.settings-popover{position:absolute;left:7px;bottom:52px;width:148px;padding:6px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-paper);box-shadow:0 15px 42px rgba(0,0,0,.2);z-index:50}.settings-popover button{width:100%;border:0;border-radius:8px;padding:10px 12px;text-align:left;color:var(--theme-ink);background:transparent;cursor:pointer}.settings-popover button:hover,.settings-popover button:focus-visible{background:var(--theme-soft);outline:none}
@media(max-width:1100px){.field-grid.three,.metric-grid,.review-grid,.readonly-results,.fit-metrics{grid-template-columns:repeat(2,minmax(170px,1fr))}.severity-input-grid,.backup-export-card{grid-template-columns:1fr}.rule-results{grid-template-columns:1fr}}
@media(max-width:760px){.field-grid.three,.metric-grid,.review-grid,.readonly-results,.fit-metrics,.import-summary{grid-template-columns:1fr}.probability-chart{min-width:660px}.chart-shell{overflow-x:auto}.choice-grid{grid-template-columns:repeat(2,minmax(110px,1fr))}.sidebar-settings{padding-top:12px}.settings-popover{bottom:50px}}
@media(prefers-reduced-motion:reduce){.button{transition:none}}
[hidden]{display:none!important}

/* 报价卡片和录入区域的统一间距。 */
.card{margin-bottom:20px}.card-head{margin-bottom:16px}.validation:empty{display:none}.card>.validation:last-child:empty{margin:0;padding:0}.bucket-total{margin-bottom:0}.field-note{margin:12px 0 0;line-height:1.6}.archive-note{margin:30px 2px 14px;color:var(--theme-muted);font-size:14px;line-height:1.6}.retention-card .field-grid{max-width:100%;gap:20px}.retention-card input{width:100%}.other-exclusion-field{margin-top:22px}.other-exclusion-field textarea{width:100%;min-height:140px;background:var(--changed-bg)}.business-save-actions{gap:14px;flex-wrap:wrap}.cash-period+.cash-period{margin-top:24px}.cash-period h4{margin:0 0 12px}.cash-period .field-grid.two{grid-template-columns:repeat(2,minmax(0,1fr))}.table-currency input{min-width:90px}.table-currency>span{white-space:nowrap}.h09-formula{line-height:1.8;overflow-wrap:anywhere}.chart-note{line-height:1.7;margin-top:12px}.unified-template-toolbar{gap:20px;margin-bottom:26px}
.month-field{position:relative}.month-input{display:flex;align-items:center;position:relative}.month-input input{width:100%;padding-right:44px}.month-picker-toggle{position:absolute;right:8px;display:grid;place-items:center;border:0;background:transparent;color:var(--theme-primary);padding:6px;cursor:pointer}.month-picker-toggle svg{width:22px;height:22px}.month-picker{position:absolute;top:100%;left:0;z-index:60;width:min(290px,calc(100vw - 70px));padding:12px;border:1px solid var(--theme-line);border-radius:12px;background:var(--theme-paper);box-shadow:0 10px 30px #122d4930}.month-picker[hidden]{display:none}.month-picker-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:10px;font-weight:700}.month-picker-head button,.month-grid button{border:0;background:transparent;border-radius:7px;min-height:36px;cursor:pointer;color:var(--theme-ink)}.month-picker-head button{width:36px;font-size:22px}.month-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:6px}.month-grid button:hover,.month-picker-head button:hover{background:var(--theme-soft)}.month-grid .current{box-shadow:inset 0 0 0 1px var(--theme-primary)}.month-grid .selected{background:var(--theme-primary);color:white}.month-picker button:focus-visible{outline:2px solid var(--theme-primary)}
@media(max-width:760px){.cash-period .field-grid.two{grid-template-columns:1fr}.exceedance-controls{align-items:flex-start;gap:14px}.archive-note{margin-top:24px}.business-save-actions{gap:10px}.unified-template-toolbar{gap:14px}}

.severity-observation-wrap{height:390px;overflow:auto;border:1px solid var(--theme-line);border-radius:10px}.severity-observation-table{min-width:480px}.severity-observation-table thead{position:sticky;top:0;z-index:1}.severity-observation-table tr.row-error{background:#fff0f0}.severity-observation-table .row-error-message{color:#a82f2f;font-size:13px}.severity-parameter-row{display:flex;align-items:flex-end;flex-wrap:wrap;gap:12px}.severity-parameter-row .field-grid{flex:1 1 590px}.severity-parameter-row>.button{margin-bottom:1px;white-space:nowrap}.hit-rate-grid{grid-template-columns:repeat(4,minmax(145px,1fr))}.hit-rate-grid strong{font-variant-numeric:tabular-nums}
.severity-table-head{align-items:center}.severity-table-head>label{font-size:max(13px,calc(13px * var(--root-scale)));font-weight:700;color:var(--theme-ink)}.quote-notes-card textarea{min-height:112px;resize:vertical}.quote-readonly .quote-notes-input{color:var(--theme-ink)!important;background:var(--theme-paper)!important;pointer-events:auto!important}

.app-shell{grid-template-columns:242px minmax(0,1fr)}
.sidebar{padding:24px 14px}
#main-nav{display:flex;flex-direction:column;gap:5px;min-height:0;overflow-y:auto}
#main-nav button{width:100%;padding:11px 12px;border:1px solid transparent;border-radius:10px;background:transparent;color:var(--theme-sidebar-text);text-align:left;cursor:pointer;font-weight:700;font-size:calc(14px * var(--root-scale))}
#main-nav button:hover,#main-nav button:focus-visible{background:#ffffff1e;outline:none}
#main-nav button.active{background:#ffffff2c;border-color:#ffffff3e}
#main-nav .nav-history{margin-bottom:10px;font-weight:800}
.workspace-toggle{display:flex;align-items:center;justify-content:space-between}.workspace-toggle span:last-child{transition:transform .16s}.workspace-toggle[aria-expanded="false"] span:last-child{transform:rotate(-90deg)}
.workspace-items{display:grid;gap:4px;margin:-1px 0 10px;padding-left:8px}.workspace-item{display:grid;grid-template-columns:minmax(0,1fr) 28px;align-items:center;border:1px solid transparent;border-radius:9px;background:#ffffff0c}.workspace-item.active{border-color:#ffffff42;background:#ffffff25}.workspace-item>button:first-child{min-width:0;padding:8px 7px!important;font-weight:600!important}.workspace-item>button:first-child span{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.workspace-item .workspace-close{width:26px!important;height:26px;padding:0!important;text-align:center!important;color:#ffd7d7!important;font-size:18px!important;line-height:1}.workspace-item .workspace-close:hover,.workspace-item .workspace-close:focus-visible{background:#8f1d2c!important;color:#fff!important}
.quote-step-nav{margin:0 28px 8px;padding-top:16px;background:var(--theme-canvas)}
.flow-groups,.flow-steps{display:grid;grid-template-columns:repeat(5,minmax(0,1fr))}
.flow-groups{gap:6px;margin-bottom:7px;color:var(--theme-primary-hover);font-size:calc(13px * var(--root-scale));font-weight:800;text-align:center}
.flow-groups span:nth-child(1){grid-column:span 3}.flow-groups span:nth-child(2){grid-column:span 2}
.flow-groups span{padding:6px 5px;background:transparent;border-bottom:2px solid var(--theme-soft-strong)}
.flow-steps{gap:7px}.flow-steps button{min-height:52px;padding:7px 6px;display:flex;align-items:center;justify-content:center;gap:5px;border:1px solid var(--theme-line);border-radius:9px;background:var(--theme-paper);color:var(--theme-ink);font-size:calc(12px * var(--root-scale));font-weight:700;cursor:pointer;box-shadow:0 2px 7px rgba(25,53,52,.04)}
.flow-steps button.active{border-color:var(--theme-primary);color:var(--theme-primary-hover);background:var(--theme-soft-strong)}
.flow-steps button.complete{border-color:#b9dfce;background:#f5fbf8}.flow-steps button.needs-input{border-color:#e7c36d;background:#fffbef}
.flow-steps button.complete .step-status{color:#138254}.flow-steps button.needs-input .step-status{color:#a16b00}.flow-steps .step-status{font-size:15px}
.flow-progress{height:3px;margin-top:10px;border-radius:3px;background:var(--theme-line)}.flow-progress span{display:block;height:100%;border-radius:3px;background:var(--theme-accent);transition:width .15s}
.step-actions{display:flex;justify-content:flex-end;margin:22px 0 0}
.step-actions .button{min-width:122px}
.bucket-table-wrap{height:340px;max-width:100%;overflow:auto;border:1px solid var(--theme-line);border-radius:10px}
.bucket-table-wrap table{min-width:510px}
.bucket-table-wrap thead{position:sticky;top:0;z-index:2}
.bucket-import-label{display:inline-flex;align-items:center;cursor:pointer}
.bucket-table-wrap .table-input{min-width:145px}
.factor-table-wrap{max-height:350px;overflow:auto;border:1px solid var(--theme-line);border-radius:10px}
.factor-table-wrap thead{position:sticky;top:0;z-index:2}
.factor-table-wrap td:first-child{min-width:120px}
.factor-locked{background:#eef1f1!important;color:#5f6b6b!important;cursor:default}
.model-choice .button-row{margin-top:22px}
.progress-inline{display:flex;flex-direction:column;align-items:center;gap:12px;padding:8px 0 15px}
.progress-inline .progress-ring{width:150px;height:150px}
.progress-inline .progress-ring:before,.progress-inline .progress-ring>div{width:116px;height:116px}
.currency-control{position:relative;display:flex;align-items:center;min-width:0}.currency-control>span{position:absolute;left:11px;z-index:1;color:var(--theme-muted);font-weight:700;pointer-events:none}.currency-control>input{width:100%;padding-left:29px!important}.table-currency{min-width:118px}.table-currency>span{left:8px}.table-currency>input{padding-left:24px!important}
.progress-inline .progress-count{font-size:calc(16px * var(--root-scale))}
.loss-table{max-width:100%;overflow:auto}
.loss-table table{min-width:1120px}
.loss-table th,.loss-table td{font-variant-numeric:tabular-nums;white-space:nowrap}
.loss-table tbody td{text-align:right}
.loss-table tbody tr:last-child{font-weight:800;background:var(--theme-soft)}
@media(max-width:1100px){.app-shell{grid-template-columns:225px minmax(0,1fr)}.quote-step-nav{margin:0 16px 8px}.factor-grid{grid-template-columns:repeat(2,minmax(280px,1fr));overflow-x:auto}}
@media(max-width:760px){.app-shell{display:block}.sidebar{position:relative;height:auto}.workspace-items{max-height:180px;overflow-y:auto}.quote-step-nav{overflow-x:auto;margin:0 12px 8px}.flow-groups,.flow-steps{min-width:790px}.content{padding:20px 14px}}

/* Deep-sea-blue default theme and beta.4 refinements */
.unified-template-toolbar{display:flex;justify-content:center;gap:20px;margin:4px 0 30px}.unified-template-toolbar+.card{margin-top:0}.quote-no-preview{margin-top:28px;padding-top:15px;border-top:1px solid var(--theme-line)}
.exceedance-stat-label{font-weight:800;paint-order:stroke;stroke:#fff;stroke-width:3px;stroke-linejoin:round}
.model-settings-card{padding:26px;margin-bottom:24px}.model-settings-card .card-head{margin-bottom:20px}.model-settings-card input[data-scope="default-model"]{background:var(--changed-bg)}.model-table-actions{margin:14px 0 22px}.severity-parameter-row{margin-top:22px;padding-top:20px;border-top:1px solid var(--theme-line);gap:18px}.readonly-results,.fit-metrics{margin-top:20px}.model-save-actions{display:flex;justify-content:center;padding:8px 0 28px}.model-save-actions .button{min-width:180px}
.parameter-history-actions{display:flex;justify-content:center;margin:0 0 24px}.parameter-active{background:#e8f7ef!important}.parameter-history table{min-width:1000px}.parameter-history .actions{white-space:nowrap}.risk-line-label{fill:#dc2626!important;font-weight:700;paint-order:stroke;stroke:#fff;stroke-width:3px}
.h09-table table{min-width:1160px}.h09-table td,.h09-table th{white-space:nowrap;font-variant-numeric:tabular-nums}.h09-table td{text-align:right}.h09-input{width:96px;background:#fff4cc!important}.h09-pass{background:#c6efce;color:#006100}.h09-fail{background:#ffc7ce;color:#9c0006}.h09-section{margin-top:17px}.h09-conclusion{font-size:17px;font-weight:800;color:var(--theme-primary-hover)}.h09-waiting{opacity:.72}

/* beta.4 layout and editing semantics */
.beta-brand{display:grid!important;grid-template-columns:1fr!important;gap:7px!important;padding:15px 13px!important;border:1px solid rgba(255,255,255,.22);border-radius:13px;background:rgba(255,255,255,.08);text-align:center}.beta-brand strong{line-height:1.45}.beta-brand span{font-size:13px;color:var(--theme-sidebar-muted);font-weight:700}
.beta-brand{margin-bottom:24px!important}.nav-history{margin-top:8px!important;margin-bottom:18px!important}
#main-nav button:not(.active):hover,.workspace-item:not(.active):hover{background:rgba(7,43,47,.3)!important}
.sidebar-settings{display:grid;grid-template-columns:1fr 1fr;gap:8px}.sidebar-settings .settings-button{width:100%}.sidebar-settings .settings-popover{grid-column:1/-1}
.workspace-item>button:first-child span{overflow:visible;text-overflow:clip;white-space:normal;overflow-wrap:anywhere;line-height:1.35;font-weight:800}
.flow-groups span{position:relative}.flow-groups span:not(:last-child):after{content:"";position:absolute;right:-4px;top:4px;bottom:4px;width:1px;background:var(--theme-line)}
.quote-editable input[data-scope="quote"]:not([readonly]),.quote-editable select[data-scope="quote"],.quote-editable textarea[data-scope="quote"],.manual-input{background:var(--changed-bg)!important}.changed-row,.changed-list{box-shadow:none!important;outline:0!important}
.h09-table thead th{font-size:max(15px,calc(15px * var(--root-scale)))}
.hit-rate-intro{color:var(--theme-text);line-height:1.55;margin:3px 0 18px}.hit-rate-table{margin:0 0 18px}.hit-rate-table table{min-width:750px}.hit-rate-table th:nth-child(1),.hit-rate-table td:nth-child(1){width:25%}.hit-rate-table th:nth-child(2),.hit-rate-table td:nth-child(2){width:20%;text-align:right;font-variant-numeric:tabular-nums}.hit-rate-table th:nth-child(3),.hit-rate-table td:nth-child(3){white-space:normal;text-align:left}
.charge-add-actions{display:flex;justify-content:flex-end;margin:12px 0}.charge-remove{margin-left:10px;white-space:nowrap}.charge-description{width:125px!important;text-align:left!important}.h09-table .table-currency{display:inline-flex;align-items:center;gap:4px}.h09-table .table-currency .h09-input{width:128px}.h09-table .table-currency span{white-space:nowrap}
.exceedance-controls{display:flex;align-items:center;justify-content:flex-start;flex-wrap:wrap;gap:14px 26px;margin:0 0 18px}.layer-select-label{display:flex;align-items:center;gap:10px;white-space:nowrap;font-weight:700}.layer-select-label select{min-width:120px}.risk-load-control{display:flex;color:#dc2626;font-weight:700}.risk-load-control label{display:flex;align-items:center;gap:4px;white-space:nowrap}.risk-load-control input{width:58px;text-align:center;padding:6px 4px;border:1px solid var(--theme-line);border-radius:6px;color:var(--theme-ink)}
.h09-table th,.h09-table td{min-width:112px;padding:12px 10px;text-align:center!important;vertical-align:middle}.h09-table th:first-child{min-width:225px;text-align:left!important;font-size:max(15px,calc(15px * var(--root-scale)))}.h09-table .h09-input{display:inline-block;text-align:center}.h09-table .h09-total{background:#fff}.h09-section .step-actions{justify-content:center}.h09-divider{margin:30px 0}.h09-conclusion{margin:22px 0}
.bucket-total{margin-top:12px;padding:10px 12px;border-radius:9px;font-weight:700}.bucket-total.match{color:var(--success);background:var(--success-bg)}.bucket-total.mismatch{color:var(--warning);background:var(--warning-bg)}
.mini-row{grid-template-columns:minmax(92px,1fr) minmax(82px,110px) 22px 32px!important;align-items:center;margin-top:4px!important}.mini-row .icon-button{justify-self:end}.mini-list .button{margin-top:9px}
.bucket-table-wrap td{padding-top:7px;padding-bottom:7px}.bucket-table-wrap .icon-button{display:block;margin:auto}
.pricing-center-actions{justify-content:center}
#h09-page>.step-actions:not(:last-child),#h09-confirmed-content>.step-actions{justify-content:center}
.pricing-confirm-actions{margin:28px 0 30px!important}
.questionnaire-toolbar{display:flex;justify-content:flex-end;padding:14px 18px}.questionnaire-toolbar .button-row{margin-left:auto}.mix-warning-list{margin:0 0 18px}.notice.compact{margin-top:10px;padding:10px 12px}
.help-tip{position:relative;display:inline-grid;place-items:center;width:18px;height:18px;margin-left:7px;border:1px solid var(--theme-muted);border-radius:50%;color:var(--theme-muted);font-size:12px;font-weight:800;cursor:help;vertical-align:middle}.help-tip>span{position:absolute;left:50%;bottom:calc(100% + 9px);z-index:30;width:260px;padding:10px 12px;border-radius:8px;background:#111827;color:#fff;font-size:13px;font-weight:500;line-height:1.5;box-shadow:0 8px 24px rgba(0,0,0,.28);opacity:0;visibility:hidden;transform:translateX(-50%);pointer-events:none}.help-tip:hover>span,.help-tip:focus>span{opacity:1;visibility:visible}.help-tip:focus{outline:2px solid var(--theme-accent);outline-offset:2px}
.quote-readonly [data-action^="clear-"],.quote-readonly .questionnaire-toolbar{pointer-events:none}.quote-readonly .questionnaire-toolbar{opacity:.65}
.backup-progress{margin-top:18px;max-width:360px}.backup-progress>div{height:10px;border-radius:999px;background:#dbe7ef;overflow:hidden}.backup-progress span{display:block;height:100%;background:var(--accent,#123b5d);transition:width .18s ease}.backup-progress p{margin:8px 0 0;font-size:13px;color:#34495e}

/* Compact H09 questionnaire and hit-rate calculation tables. */
.h09-questionnaire-table table{width:100%;min-width:620px;table-layout:fixed}.h09-questionnaire-table th,.h09-questionnaire-table td{min-width:0}.h09-questionnaire-table th:first-child,.h09-questionnaire-table td:first-child{width:20%;min-width:0}.h09-questionnaire-table th:nth-child(2),.h09-questionnaire-table td:nth-child(2){width:25%}.h09-questionnaire-table th:nth-child(3),.h09-questionnaire-table td:nth-child(3){width:55%}
.hit-rate-table table{min-width:680px;table-layout:fixed}.hit-rate-table th:nth-child(1),.hit-rate-table td:nth-child(1){width:22%}.hit-rate-table th:nth-child(2),.hit-rate-table td:nth-child(2){width:18%}.hit-rate-table th:nth-child(3),.hit-rate-table td:nth-child(3){width:60%}.hit-rate-table th:first-child{font-size:max(16px,calc(16px * var(--root-scale)));font-weight:700}
.business-structure-card input[type="file"]{margin:10px 0 18px}.business-structure-table table{min-width:860px;table-layout:fixed}.business-structure-table th:first-child{width:22%}.business-structure-table th:nth-child(2){width:25%}.business-structure-table td{padding:7px}.business-structure-table input{width:100%;background:var(--changed-bg);text-align:right}.business-total{background:var(--theme-soft);font-weight:700}.business-total td{text-align:right}.business-save-actions{display:flex;justify-content:center;margin-top:20px}.exclusion-table table{min-width:680px}.exclusion-table th{white-space:normal;text-align:left;font-size:14px}.exclusion-table td:first-child{width:40px}.exclusion-table td:last-child{width:60px;text-align:center}.fee-totals{display:flex;flex-wrap:wrap;gap:18px 36px;margin-top:16px}.fee-totals strong{font-variant-numeric:tabular-nums}
.structured-preview{overflow:auto;max-height:calc(100vh - 230px);border:1px solid #a5a5a5;background:#fff}.structured-preview table{table-layout:fixed;width:max-content;border-collapse:separate;border-spacing:0}.structured-preview th,.structured-preview td{border-right:1px solid #555;border-bottom:1px solid #555;padding:4px;white-space:normal;overflow-wrap:anywhere;text-align:center;vertical-align:middle}.structured-preview thead th{line-height:1.25;font-family:"Microsoft YaHei",sans-serif}.structured-preview thead{position:sticky;top:0;z-index:2}.structured-preview tbody td{font-size:12px;min-height:72px;background:#fff}.structured-preview .structured-select{width:44px;position:sticky;left:0;background:#fff;z-index:3}.structured-preview input[type="checkbox"]{width:17px;height:17px;accent-color:var(--theme-primary)}

.h09-questionnaire-table .table-currency{display:flex;width:100%;max-width:320px;min-width:0;margin-inline:auto}.h09-questionnaire-table .table-currency .h09-input{width:100%;min-width:0;text-align:right;padding-right:12px}.currency-control.currency-suffix>span{position:static;flex:0 0 40px;width:40px;box-sizing:border-box;text-align:right;padding-left:8px;padding-right:4px}.currency-control.currency-suffix>input{padding-left:12px!important}.other-exclusion-row{display:grid;grid-template-columns:minmax(0,1fr) 36px;gap:10px;align-items:start;margin-top:18px}.other-exclusion-row label{display:block;font-size:14px;font-weight:700;margin-bottom:8px}.other-exclusion-row textarea{width:100%;min-height:90px;background:var(--changed-bg)}.other-exclusion-actions{margin-top:16px}.business-source-year{margin:12px 0 0;color:var(--theme-text);font-size:14px}

.h09-rate-control{display:inline-flex;align-items:center;gap:4px;white-space:nowrap}.h09-rate-control>span{flex:none;color:var(--theme-text)}
